spana-test 0.2.0 → 0.3.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 (132) hide show
  1. package/README.md +47 -12
  2. package/dist/accessibility-audit-RS3VIWRT.js +140 -0
  3. package/dist/accessibility-audit-RS3VIWRT.js.map +1 -0
  4. package/dist/agent/index.d.ts +8 -26
  5. package/dist/agent/index.js +12 -15
  6. package/dist/{allure-PTTVORQ6.js → allure-RNMEYTXS.js} +42 -2
  7. package/dist/allure-RNMEYTXS.js.map +1 -0
  8. package/dist/appium-server-66GVUL24.js +119 -0
  9. package/dist/appium-server-66GVUL24.js.map +1 -0
  10. package/dist/baseline-manager-5TIUCNP5.js +38 -0
  11. package/dist/baseline-manager-5TIUCNP5.js.map +1 -0
  12. package/dist/{chunk-S2XNAKSO.js → chunk-24KSKK2I.js} +536 -334
  13. package/dist/chunk-24KSKK2I.js.map +1 -0
  14. package/dist/chunk-3J4NG7JU.js +80 -0
  15. package/dist/chunk-3J4NG7JU.js.map +1 -0
  16. package/dist/{chunk-MRH7SK52.js → chunk-3TRMQCUT.js} +3 -2
  17. package/dist/chunk-3TRMQCUT.js.map +1 -0
  18. package/dist/{chunk-SFBRFB2N.js → chunk-4OHBO7LD.js} +19 -12
  19. package/dist/chunk-4OHBO7LD.js.map +1 -0
  20. package/dist/chunk-5245YBLL.js +127 -0
  21. package/dist/chunk-5245YBLL.js.map +1 -0
  22. package/dist/{chunk-S4R4OR7T.js → chunk-7IA2XG3G.js} +66 -71
  23. package/dist/chunk-7IA2XG3G.js.map +1 -0
  24. package/dist/{chunk-L7MFJF46.js → chunk-7VOWF42B.js} +29 -5
  25. package/dist/chunk-7VOWF42B.js.map +1 -0
  26. package/dist/{chunk-AEKDFFPJ.js → chunk-DSTUWLSW.js} +15 -4
  27. package/dist/chunk-DSTUWLSW.js.map +1 -0
  28. package/dist/{chunk-P7JQRLP4.js → chunk-FJAJ4YNC.js} +14 -2
  29. package/dist/chunk-FJAJ4YNC.js.map +1 -0
  30. package/dist/chunk-IHVZKQQW.js +24 -0
  31. package/dist/chunk-IHVZKQQW.js.map +1 -0
  32. package/dist/{chunk-WQ4GXUUE.js → chunk-KAKHFSVA.js} +212 -34
  33. package/dist/chunk-KAKHFSVA.js.map +1 -0
  34. package/dist/chunk-OBCFACUW.js +28 -0
  35. package/dist/chunk-OBCFACUW.js.map +1 -0
  36. package/dist/{chunk-3YR4GUGE.js → chunk-QPIE3IMG.js} +65 -70
  37. package/dist/chunk-QPIE3IMG.js.map +1 -0
  38. package/dist/{chunk-VNYF5BHX.js → chunk-X2TJP7LB.js} +1 -3
  39. package/dist/{chunk-YBZCOQXJ.js → chunk-YXQEPVEW.js} +127 -66
  40. package/dist/chunk-YXQEPVEW.js.map +1 -0
  41. package/dist/cli.js +40 -25
  42. package/dist/cli.js.map +1 -1
  43. package/dist/{compiler-74VGKZO6.js → compiler-X6WTFMYF.js} +15 -7
  44. package/dist/compiler-X6WTFMYF.js.map +1 -0
  45. package/dist/config-loader-QM72GKEL.js +9 -0
  46. package/dist/{console-XWKUTP3D.js → console-7UW7VROK.js} +71 -1
  47. package/dist/console-7UW7VROK.js.map +1 -0
  48. package/dist/{discover-KZKXHZZA.js → discover-NPNF6SWQ.js} +4 -3
  49. package/dist/doctor-command-C3SEQGRQ.js +71 -0
  50. package/dist/doctor-command-C3SEQGRQ.js.map +1 -0
  51. package/dist/{flow-BUC9Mf8W.d.ts → flow-CW0_j7tw.d.ts} +47 -29
  52. package/dist/gherkin/steps.d.ts +2 -2
  53. package/dist/{html-GE6Q4DCG.js → html-F3X3XPSX.js} +78 -7
  54. package/dist/html-F3X3XPSX.js.map +1 -0
  55. package/dist/index.d.ts +4 -8
  56. package/dist/index.js +4 -4
  57. package/dist/index.js.map +1 -1
  58. package/dist/{init-command-GVMRXIMY.js → init-command-U66XCM66.js} +19 -34
  59. package/dist/init-command-U66XCM66.js.map +1 -0
  60. package/dist/init-flow-command-PR7J5FBM.js +37 -0
  61. package/dist/init-flow-command-PR7J5FBM.js.map +1 -0
  62. package/dist/{installer-YZJ4DV3F.js → installer-W5DITECS.js} +3 -4
  63. package/dist/{ios-ZW6XVNLG.js → ios-3GRECXAP.js} +3 -4
  64. package/dist/json-JMRPUVY2.js +20 -0
  65. package/dist/json-JMRPUVY2.js.map +1 -0
  66. package/dist/machine-6H25TRTU.js +16 -0
  67. package/dist/{provider-A57C3MU6.js → provider-YIPU5K42.js} +2 -2
  68. package/dist/{runner-UXNHVVGG.js → runner-6HK62Q7B.js} +2 -2
  69. package/dist/screenshot-compare-JFHH2WR4.js +75 -0
  70. package/dist/screenshot-compare-JFHH2WR4.js.map +1 -0
  71. package/dist/{server-W7OA3DDN.js → server-MZERO364.js} +362 -55
  72. package/dist/server-MZERO364.js.map +1 -0
  73. package/dist/session-3UZ5WAAD.js +17 -0
  74. package/dist/{coordinator-BbUjvvnX.d.ts → storybook-BK2JE4ld.d.ts} +95 -31
  75. package/dist/{studio-command-6VHTHDUK.js → studio-command-5BUER2RH.js} +2 -2
  76. package/dist/{test-command-AHMOZLV4.js → test-command-2PXTHASW.js} +871 -562
  77. package/dist/test-command-2PXTHASW.js.map +1 -0
  78. package/dist/{validator-35624P7S.js → validator-HZ2A3NEI.js} +3 -6
  79. package/dist/validator-HZ2A3NEI.js.map +1 -0
  80. package/package.json +6 -1
  81. package/studio-dist/assets/index-C-Io44gy.js +193 -0
  82. package/studio-dist/assets/index-DfM9lK4p.css +1 -0
  83. package/studio-dist/index.html +2 -2
  84. package/dist/allure-PTTVORQ6.js.map +0 -1
  85. package/dist/chunk-3YR4GUGE.js.map +0 -1
  86. package/dist/chunk-AEKDFFPJ.js.map +0 -1
  87. package/dist/chunk-BF37W5EG.js +0 -125
  88. package/dist/chunk-BF37W5EG.js.map +0 -1
  89. package/dist/chunk-EXLUY7KT.js +0 -21
  90. package/dist/chunk-EXLUY7KT.js.map +0 -1
  91. package/dist/chunk-FNDOEMOL.js +0 -62
  92. package/dist/chunk-FNDOEMOL.js.map +0 -1
  93. package/dist/chunk-HWFDXIXR.js +0 -183
  94. package/dist/chunk-HWFDXIXR.js.map +0 -1
  95. package/dist/chunk-IJIASIX5.js +0 -314
  96. package/dist/chunk-IJIASIX5.js.map +0 -1
  97. package/dist/chunk-L7MFJF46.js.map +0 -1
  98. package/dist/chunk-MRH7SK52.js.map +0 -1
  99. package/dist/chunk-P7JQRLP4.js.map +0 -1
  100. package/dist/chunk-S2XNAKSO.js.map +0 -1
  101. package/dist/chunk-S4R4OR7T.js.map +0 -1
  102. package/dist/chunk-SFBRFB2N.js.map +0 -1
  103. package/dist/chunk-WBU34APM.js +0 -38
  104. package/dist/chunk-WBU34APM.js.map +0 -1
  105. package/dist/chunk-WQ4GXUUE.js.map +0 -1
  106. package/dist/chunk-YBZCOQXJ.js.map +0 -1
  107. package/dist/compiler-74VGKZO6.js.map +0 -1
  108. package/dist/config-loader-BJJ3IJJ7.js +0 -9
  109. package/dist/console-XWKUTP3D.js.map +0 -1
  110. package/dist/doctor-command-T2UX5RV5.js +0 -732
  111. package/dist/doctor-command-T2UX5RV5.js.map +0 -1
  112. package/dist/html-GE6Q4DCG.js.map +0 -1
  113. package/dist/init-command-GVMRXIMY.js.map +0 -1
  114. package/dist/init-flow-command-R76AXF4Z.js +0 -34
  115. package/dist/init-flow-command-R76AXF4Z.js.map +0 -1
  116. package/dist/json-KS67BZYU.js +0 -39
  117. package/dist/json-KS67BZYU.js.map +0 -1
  118. package/dist/server-W7OA3DDN.js.map +0 -1
  119. package/dist/session-TMNOKYLG.js +0 -17
  120. package/dist/test-command-AHMOZLV4.js.map +0 -1
  121. package/studio-dist/assets/index-DC6DIXfl.js +0 -188
  122. package/studio-dist/assets/index-DDKsnBwD.css +0 -1
  123. /package/dist/{chunk-VNYF5BHX.js.map → chunk-X2TJP7LB.js.map} +0 -0
  124. /package/dist/{config-loader-BJJ3IJJ7.js.map → config-loader-QM72GKEL.js.map} +0 -0
  125. /package/dist/{discover-KZKXHZZA.js.map → discover-NPNF6SWQ.js.map} +0 -0
  126. /package/dist/{installer-YZJ4DV3F.js.map → installer-W5DITECS.js.map} +0 -0
  127. /package/dist/{ios-ZW6XVNLG.js.map → ios-3GRECXAP.js.map} +0 -0
  128. /package/dist/{provider-A57C3MU6.js.map → machine-6H25TRTU.js.map} +0 -0
  129. /package/dist/{runner-UXNHVVGG.js.map → provider-YIPU5K42.js.map} +0 -0
  130. /package/dist/{session-TMNOKYLG.js.map → runner-6HK62Q7B.js.map} +0 -0
  131. /package/dist/{validator-35624P7S.js.map → session-3UZ5WAAD.js.map} +0 -0
  132. /package/dist/{studio-command-6VHTHDUK.js.map → studio-command-5BUER2RH.js.map} +0 -0
@@ -0,0 +1,193 @@
1
+ var Kp=Object.defineProperty;var im=u=>{throw TypeError(u)};var Zp=(u,l,r)=>l in u?Kp(u,l,{enumerable:!0,configurable:!0,writable:!0,value:r}):u[l]=r;var le=(u,l,r)=>Zp(u,typeof l!="symbol"?l+"":l,r),Ro=(u,l,r)=>l.has(u)||im("Cannot "+r);var S=(u,l,r)=>(Ro(u,l,"read from private field"),r?r.call(u):l.get(u)),it=(u,l,r)=>l.has(u)?im("Cannot add the same private member more than once"):l instanceof WeakSet?l.add(u):l.set(u,r),F=(u,l,r,c)=>(Ro(u,l,"write to private field"),c?c.call(u,r):l.set(u,r),r),pt=(u,l,r)=>(Ro(u,l,"access private method"),r);var ac=(u,l,r,c)=>({set _(f){F(u,l,f,r)},get _(){return S(u,l,c)}});(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))c(f);new MutationObserver(f=>{for(const h of f)if(h.type==="childList")for(const p of h.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&c(p)}).observe(document,{childList:!0,subtree:!0});function r(f){const h={};return f.integrity&&(h.integrity=f.integrity),f.referrerPolicy&&(h.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?h.credentials="include":f.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function c(f){if(f.ep)return;f.ep=!0;const h=r(f);fetch(f.href,h)}})();function Vm(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var Mo={exports:{}},Eu={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and 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 um;function Vp(){if(um)return Eu;um=1;var u=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function r(c,f,h){var p=null;if(h!==void 0&&(p=""+h),f.key!==void 0&&(p=""+f.key),"key"in f){h={};for(var x in f)x!=="key"&&(h[x]=f[x])}else h=f;return f=h.ref,{$$typeof:u,type:c,key:p,ref:f!==void 0?f:null,props:h}}return Eu.Fragment=l,Eu.jsx=r,Eu.jsxs=r,Eu}var sm;function kp(){return sm||(sm=1,Mo.exports=Vp()),Mo.exports}var y=kp(),jo={exports:{}},yt={};/**
10
+ * @license React
11
+ * react.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and 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 cm;function Jp(){if(cm)return yt;cm=1;var u=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),p=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),D=Symbol.iterator;function G(E){return E===null||typeof E!="object"?null:(E=D&&E[D]||E["@@iterator"],typeof E=="function"?E:null)}var V={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},I=Object.assign,k={};function L(E,j,B){this.props=E,this.context=j,this.refs=k,this.updater=B||V}L.prototype.isReactComponent={},L.prototype.setState=function(E,j){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,j,"setState")},L.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function st(){}st.prototype=L.prototype;function P(E,j,B){this.props=E,this.context=j,this.refs=k,this.updater=B||V}var Z=P.prototype=new st;Z.constructor=P,I(Z,L.prototype),Z.isPureReactComponent=!0;var K=Array.isArray;function nt(){}var $={H:null,A:null,T:null,S:null},tt=Object.prototype.hasOwnProperty;function ot(E,j,B){var U=B.ref;return{$$typeof:u,type:E,key:j,ref:U!==void 0?U:null,props:B}}function dt(E,j){return ot(E.type,j,E.props)}function mt(E){return typeof E=="object"&&E!==null&&E.$$typeof===u}function zt(E){var j={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(B){return j[B]})}var Mt=/\/+/g;function Xt(E,j){return typeof E=="object"&&E!==null&&E.key!=null?zt(""+E.key):j.toString(36)}function Yt(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(nt,nt):(E.status="pending",E.then(function(j){E.status==="pending"&&(E.status="fulfilled",E.value=j)},function(j){E.status==="pending"&&(E.status="rejected",E.reason=j)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function _(E,j,B,U,W){var at=typeof E;(at==="undefined"||at==="boolean")&&(E=null);var xt=!1;if(E===null)xt=!0;else switch(at){case"bigint":case"string":case"number":xt=!0;break;case"object":switch(E.$$typeof){case u:case l:xt=!0;break;case C:return xt=E._init,_(xt(E._payload),j,B,U,W)}}if(xt)return W=W(E),xt=U===""?"."+Xt(E,0):U,K(W)?(B="",xt!=null&&(B=xt.replace(Mt,"$&/")+"/"),_(W,j,B,"",function(pa){return pa})):W!=null&&(mt(W)&&(W=dt(W,B+(W.key==null||E&&E.key===W.key?"":(""+W.key).replace(Mt,"$&/")+"/")+xt)),j.push(W)),1;xt=0;var bt=U===""?".":U+":";if(K(E))for(var Ut=0;Ut<E.length;Ut++)U=E[Ut],at=bt+Xt(U,Ut),xt+=_(U,j,B,at,W);else if(Ut=G(E),typeof Ut=="function")for(E=Ut.call(E),Ut=0;!(U=E.next()).done;)U=U.value,at=bt+Xt(U,Ut++),xt+=_(U,j,B,at,W);else if(at==="object"){if(typeof E.then=="function")return _(Yt(E),j,B,U,W);throw j=String(E),Error("Objects are not valid as a React child (found: "+(j==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":j)+"). If you meant to render a collection of children, use an array instead.")}return xt}function X(E,j,B){if(E==null)return E;var U=[],W=0;return _(E,U,"","",function(at){return j.call(B,at,W++)}),U}function Y(E){if(E._status===-1){var j=E._result;j=j(),j.then(function(B){(E._status===0||E._status===-1)&&(E._status=1,E._result=B)},function(B){(E._status===0||E._status===-1)&&(E._status=2,E._result=B)}),E._status===-1&&(E._status=0,E._result=j)}if(E._status===1)return E._result.default;throw E._result}var ct=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var j=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof E=="object"&&E!==null&&typeof E.message=="string"?String(E.message):String(E),error:E});if(!window.dispatchEvent(j))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},ft={map:X,forEach:function(E,j,B){X(E,function(){j.apply(this,arguments)},B)},count:function(E){var j=0;return X(E,function(){j++}),j},toArray:function(E){return X(E,function(j){return j})||[]},only:function(E){if(!mt(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return yt.Activity=v,yt.Children=ft,yt.Component=L,yt.Fragment=r,yt.Profiler=f,yt.PureComponent=P,yt.StrictMode=c,yt.Suspense=g,yt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,yt.__COMPILER_RUNTIME={__proto__:null,c:function(E){return $.H.useMemoCache(E)}},yt.cache=function(E){return function(){return E.apply(null,arguments)}},yt.cacheSignal=function(){return null},yt.cloneElement=function(E,j,B){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var U=I({},E.props),W=E.key;if(j!=null)for(at in j.key!==void 0&&(W=""+j.key),j)!tt.call(j,at)||at==="key"||at==="__self"||at==="__source"||at==="ref"&&j.ref===void 0||(U[at]=j[at]);var at=arguments.length-2;if(at===1)U.children=B;else if(1<at){for(var xt=Array(at),bt=0;bt<at;bt++)xt[bt]=arguments[bt+2];U.children=xt}return ot(E.type,W,U)},yt.createContext=function(E){return E={$$typeof:p,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:h,_context:E},E},yt.createElement=function(E,j,B){var U,W={},at=null;if(j!=null)for(U in j.key!==void 0&&(at=""+j.key),j)tt.call(j,U)&&U!=="key"&&U!=="__self"&&U!=="__source"&&(W[U]=j[U]);var xt=arguments.length-2;if(xt===1)W.children=B;else if(1<xt){for(var bt=Array(xt),Ut=0;Ut<xt;Ut++)bt[Ut]=arguments[Ut+2];W.children=bt}if(E&&E.defaultProps)for(U in xt=E.defaultProps,xt)W[U]===void 0&&(W[U]=xt[U]);return ot(E,at,W)},yt.createRef=function(){return{current:null}},yt.forwardRef=function(E){return{$$typeof:x,render:E}},yt.isValidElement=mt,yt.lazy=function(E){return{$$typeof:C,_payload:{_status:-1,_result:E},_init:Y}},yt.memo=function(E,j){return{$$typeof:m,type:E,compare:j===void 0?null:j}},yt.startTransition=function(E){var j=$.T,B={};$.T=B;try{var U=E(),W=$.S;W!==null&&W(B,U),typeof U=="object"&&U!==null&&typeof U.then=="function"&&U.then(nt,ct)}catch(at){ct(at)}finally{j!==null&&B.types!==null&&(j.types=B.types),$.T=j}},yt.unstable_useCacheRefresh=function(){return $.H.useCacheRefresh()},yt.use=function(E){return $.H.use(E)},yt.useActionState=function(E,j,B){return $.H.useActionState(E,j,B)},yt.useCallback=function(E,j){return $.H.useCallback(E,j)},yt.useContext=function(E){return $.H.useContext(E)},yt.useDebugValue=function(){},yt.useDeferredValue=function(E,j){return $.H.useDeferredValue(E,j)},yt.useEffect=function(E,j){return $.H.useEffect(E,j)},yt.useEffectEvent=function(E){return $.H.useEffectEvent(E)},yt.useId=function(){return $.H.useId()},yt.useImperativeHandle=function(E,j,B){return $.H.useImperativeHandle(E,j,B)},yt.useInsertionEffect=function(E,j){return $.H.useInsertionEffect(E,j)},yt.useLayoutEffect=function(E,j){return $.H.useLayoutEffect(E,j)},yt.useMemo=function(E,j){return $.H.useMemo(E,j)},yt.useOptimistic=function(E,j){return $.H.useOptimistic(E,j)},yt.useReducer=function(E,j,B){return $.H.useReducer(E,j,B)},yt.useRef=function(E){return $.H.useRef(E)},yt.useState=function(E){return $.H.useState(E)},yt.useSyncExternalStore=function(E,j,B){return $.H.useSyncExternalStore(E,j,B)},yt.useTransition=function(){return $.H.useTransition()},yt.version="19.2.4",yt}var rm;function uf(){return rm||(rm=1,jo.exports=Jp()),jo.exports}var Q=uf();const J=Vm(Q);var Do={exports:{}},zu={},Uo={exports:{}},qo={};/**
18
+ * @license React
19
+ * scheduler.production.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var om;function $p(){return om||(om=1,(function(u){function l(_,X){var Y=_.length;_.push(X);t:for(;0<Y;){var ct=Y-1>>>1,ft=_[ct];if(0<f(ft,X))_[ct]=X,_[Y]=ft,Y=ct;else break t}}function r(_){return _.length===0?null:_[0]}function c(_){if(_.length===0)return null;var X=_[0],Y=_.pop();if(Y!==X){_[0]=Y;t:for(var ct=0,ft=_.length,E=ft>>>1;ct<E;){var j=2*(ct+1)-1,B=_[j],U=j+1,W=_[U];if(0>f(B,Y))U<ft&&0>f(W,B)?(_[ct]=W,_[U]=Y,ct=U):(_[ct]=B,_[j]=Y,ct=j);else if(U<ft&&0>f(W,Y))_[ct]=W,_[U]=Y,ct=U;else break t}}return X}function f(_,X){var Y=_.sortIndex-X.sortIndex;return Y!==0?Y:_.id-X.id}if(u.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;u.unstable_now=function(){return h.now()}}else{var p=Date,x=p.now();u.unstable_now=function(){return p.now()-x}}var g=[],m=[],C=1,v=null,D=3,G=!1,V=!1,I=!1,k=!1,L=typeof setTimeout=="function"?setTimeout:null,st=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;function Z(_){for(var X=r(m);X!==null;){if(X.callback===null)c(m);else if(X.startTime<=_)c(m),X.sortIndex=X.expirationTime,l(g,X);else break;X=r(m)}}function K(_){if(I=!1,Z(_),!V)if(r(g)!==null)V=!0,nt||(nt=!0,zt());else{var X=r(m);X!==null&&Yt(K,X.startTime-_)}}var nt=!1,$=-1,tt=5,ot=-1;function dt(){return k?!0:!(u.unstable_now()-ot<tt)}function mt(){if(k=!1,nt){var _=u.unstable_now();ot=_;var X=!0;try{t:{V=!1,I&&(I=!1,st($),$=-1),G=!0;var Y=D;try{e:{for(Z(_),v=r(g);v!==null&&!(v.expirationTime>_&&dt());){var ct=v.callback;if(typeof ct=="function"){v.callback=null,D=v.priorityLevel;var ft=ct(v.expirationTime<=_);if(_=u.unstable_now(),typeof ft=="function"){v.callback=ft,Z(_),X=!0;break e}v===r(g)&&c(g),Z(_)}else c(g);v=r(g)}if(v!==null)X=!0;else{var E=r(m);E!==null&&Yt(K,E.startTime-_),X=!1}}break t}finally{v=null,D=Y,G=!1}X=void 0}}finally{X?zt():nt=!1}}}var zt;if(typeof P=="function")zt=function(){P(mt)};else if(typeof MessageChannel<"u"){var Mt=new MessageChannel,Xt=Mt.port2;Mt.port1.onmessage=mt,zt=function(){Xt.postMessage(null)}}else zt=function(){L(mt,0)};function Yt(_,X){$=L(function(){_(u.unstable_now())},X)}u.unstable_IdlePriority=5,u.unstable_ImmediatePriority=1,u.unstable_LowPriority=4,u.unstable_NormalPriority=3,u.unstable_Profiling=null,u.unstable_UserBlockingPriority=2,u.unstable_cancelCallback=function(_){_.callback=null},u.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):tt=0<_?Math.floor(1e3/_):5},u.unstable_getCurrentPriorityLevel=function(){return D},u.unstable_next=function(_){switch(D){case 1:case 2:case 3:var X=3;break;default:X=D}var Y=D;D=X;try{return _()}finally{D=Y}},u.unstable_requestPaint=function(){k=!0},u.unstable_runWithPriority=function(_,X){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var Y=D;D=_;try{return X()}finally{D=Y}},u.unstable_scheduleCallback=function(_,X,Y){var ct=u.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?ct+Y:ct):Y=ct,_){case 1:var ft=-1;break;case 2:ft=250;break;case 5:ft=1073741823;break;case 4:ft=1e4;break;default:ft=5e3}return ft=Y+ft,_={id:C++,callback:X,priorityLevel:_,startTime:Y,expirationTime:ft,sortIndex:-1},Y>ct?(_.sortIndex=Y,l(m,_),r(g)===null&&_===r(m)&&(I?(st($),$=-1):I=!0,Yt(K,Y-ct))):(_.sortIndex=ft,l(g,_),V||G||(V=!0,nt||(nt=!0,zt()))),_},u.unstable_shouldYield=dt,u.unstable_wrapCallback=function(_){var X=D;return function(){var Y=D;D=X;try{return _.apply(this,arguments)}finally{D=Y}}}})(qo)),qo}var fm;function Fp(){return fm||(fm=1,Uo.exports=$p()),Uo.exports}var Ho={exports:{}},pe={};/**
26
+ * @license React
27
+ * react-dom.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and 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 dm;function Wp(){if(dm)return pe;dm=1;var u=uf();function l(g){var m="https://react.dev/errors/"+g;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var C=2;C<arguments.length;C++)m+="&args[]="+encodeURIComponent(arguments[C])}return"Minified React error #"+g+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var c={d:{f:r,r:function(){throw Error(l(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},f=Symbol.for("react.portal");function h(g,m,C){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:v==null?null:""+v,children:g,containerInfo:m,implementation:C}}var p=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function x(g,m){if(g==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return pe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,pe.createPortal=function(g,m){var C=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(l(299));return h(g,m,null,C)},pe.flushSync=function(g){var m=p.T,C=c.p;try{if(p.T=null,c.p=2,g)return g()}finally{p.T=m,c.p=C,c.d.f()}},pe.preconnect=function(g,m){typeof g=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,c.d.C(g,m))},pe.prefetchDNS=function(g){typeof g=="string"&&c.d.D(g)},pe.preinit=function(g,m){if(typeof g=="string"&&m&&typeof m.as=="string"){var C=m.as,v=x(C,m.crossOrigin),D=typeof m.integrity=="string"?m.integrity:void 0,G=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;C==="style"?c.d.S(g,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:v,integrity:D,fetchPriority:G}):C==="script"&&c.d.X(g,{crossOrigin:v,integrity:D,fetchPriority:G,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},pe.preinitModule=function(g,m){if(typeof g=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var C=x(m.as,m.crossOrigin);c.d.M(g,{crossOrigin:C,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&c.d.M(g)},pe.preload=function(g,m){if(typeof g=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var C=m.as,v=x(C,m.crossOrigin);c.d.L(g,C,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},pe.preloadModule=function(g,m){if(typeof g=="string")if(m){var C=x(m.as,m.crossOrigin);c.d.m(g,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:C,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else c.d.m(g)},pe.requestFormReset=function(g){c.d.r(g)},pe.unstable_batchedUpdates=function(g,m){return g(m)},pe.useFormState=function(g,m,C){return p.H.useFormState(g,m,C)},pe.useFormStatus=function(){return p.H.useHostTransitionStatus()},pe.version="19.2.4",pe}var hm;function km(){if(hm)return Ho.exports;hm=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(l){console.error(l)}}return u(),Ho.exports=Wp(),Ho.exports}/**
34
+ * @license React
35
+ * react-dom-client.production.js
36
+ *
37
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var mm;function Ip(){if(mm)return zu;mm=1;var u=Fp(),l=uf(),r=km();function c(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)e+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function h(t){var e=t,a=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(a=e.return),t=e.return;while(t)}return e.tag===3?a:null}function p(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function x(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function g(t){if(h(t)!==t)throw Error(c(188))}function m(t){var e=t.alternate;if(!e){if(e=h(t),e===null)throw Error(c(188));return e!==t?null:t}for(var a=t,n=e;;){var i=a.return;if(i===null)break;var s=i.alternate;if(s===null){if(n=i.return,n!==null){a=n;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===a)return g(i),t;if(s===n)return g(i),e;s=s.sibling}throw Error(c(188))}if(a.return!==n.return)a=i,n=s;else{for(var o=!1,d=i.child;d;){if(d===a){o=!0,a=i,n=s;break}if(d===n){o=!0,n=i,a=s;break}d=d.sibling}if(!o){for(d=s.child;d;){if(d===a){o=!0,a=s,n=i;break}if(d===n){o=!0,n=s,a=i;break}d=d.sibling}if(!o)throw Error(c(189))}}if(a.alternate!==n)throw Error(c(190))}if(a.tag!==3)throw Error(c(188));return a.stateNode.current===a?t:e}function C(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=C(t),e!==null)return e;t=t.sibling}return null}var v=Object.assign,D=Symbol.for("react.element"),G=Symbol.for("react.transitional.element"),V=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),st=Symbol.for("react.consumer"),P=Symbol.for("react.context"),Z=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),nt=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),tt=Symbol.for("react.lazy"),ot=Symbol.for("react.activity"),dt=Symbol.for("react.memo_cache_sentinel"),mt=Symbol.iterator;function zt(t){return t===null||typeof t!="object"?null:(t=mt&&t[mt]||t["@@iterator"],typeof t=="function"?t:null)}var Mt=Symbol.for("react.client.reference");function Xt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Mt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case I:return"Fragment";case L:return"Profiler";case k:return"StrictMode";case K:return"Suspense";case nt:return"SuspenseList";case ot:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case V:return"Portal";case P:return t.displayName||"Context";case st:return(t._context.displayName||"Context")+".Consumer";case Z:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case $:return e=t.displayName||null,e!==null?e:Xt(t.type)||"Memo";case tt:e=t._payload,t=t._init;try{return Xt(t(e))}catch{}}return null}var Yt=Array.isArray,_=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y={pending:!1,data:null,method:null,action:null},ct=[],ft=-1;function E(t){return{current:t}}function j(t){0>ft||(t.current=ct[ft],ct[ft]=null,ft--)}function B(t,e){ft++,ct[ft]=t.current,t.current=e}var U=E(null),W=E(null),at=E(null),xt=E(null);function bt(t,e){switch(B(at,e),B(W,t),B(U,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?_0(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=_0(e),t=C0(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}j(U),B(U,t)}function Ut(){j(U),j(W),j(at)}function pa(t){t.memoizedState!==null&&B(xt,t);var e=U.current,a=C0(e,t.type);e!==a&&(B(W,t),B(U,a))}function Ra(t){W.current===t&&(j(U),j(W)),xt.current===t&&(j(xt),gu._currentValue=Y)}var ga,Lu;function ra(t){if(ga===void 0)try{throw Error()}catch(a){var e=a.stack.trim().match(/\n( *(at )?)/);ga=e&&e[1]||"",Lu=-1<a.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+ga+t+Lu}var Ai=!1;function zl(t,e){if(!t||Ai)return"";Ai=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(e){var H=function(){throw Error()};if(Object.defineProperty(H.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(H,[])}catch(R){var w=R}Reflect.construct(t,[],H)}else{try{H.call()}catch(R){w=R}t.call(H.prototype)}}else{try{throw Error()}catch(R){w=R}(H=t())&&typeof H.catch=="function"&&H.catch(function(){})}}catch(R){if(R&&w&&typeof R.stack=="string")return[R.stack,w.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=n.DetermineComponentFrameRoot(),o=s[0],d=s[1];if(o&&d){var b=o.split(`
44
+ `),A=d.split(`
45
+ `);for(i=n=0;n<b.length&&!b[n].includes("DetermineComponentFrameRoot");)n++;for(;i<A.length&&!A[i].includes("DetermineComponentFrameRoot");)i++;if(n===b.length||i===A.length)for(n=b.length-1,i=A.length-1;1<=n&&0<=i&&b[n]!==A[i];)i--;for(;1<=n&&0<=i;n--,i--)if(b[n]!==A[i]){if(n!==1||i!==1)do if(n--,i--,0>i||b[n]!==A[i]){var M=`
46
+ `+b[n].replace(" at new "," at ");return t.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",t.displayName)),M}while(1<=n&&0<=i);break}}}finally{Ai=!1,Error.prepareStackTrace=a}return(a=t?t.displayName||t.name:"")?ra(a):""}function Gn(t,e){switch(t.tag){case 26:case 27:case 5:return ra(t.type);case 16:return ra("Lazy");case 13:return t.child!==e&&e!==null?ra("Suspense Fallback"):ra("Suspense");case 19:return ra("SuspenseList");case 0:case 15:return zl(t.type,!1);case 11:return zl(t.type.render,!1);case 1:return zl(t.type,!0);case 31:return ra("Activity");default:return""}}function _i(t){try{var e="",a=null;do e+=Gn(t,a),a=t,t=t.return;while(t);return e}catch(n){return`
47
+ Error generating stack: `+n.message+`
48
+ `+n.stack}}var Ye=Object.prototype.hasOwnProperty,Ci=u.unstable_scheduleCallback,wi=u.unstable_cancelCallback,xe=u.unstable_shouldYield,an=u.unstable_requestPaint,Se=u.unstable_now,gc=u.unstable_getCurrentPriorityLevel,Xn=u.unstable_ImmediatePriority,Gu=u.unstable_UserBlockingPriority,Kn=u.unstable_NormalPriority,Ri=u.unstable_LowPriority,Ma=u.unstable_IdlePriority,Xu=u.log,nn=u.unstable_setDisableYieldValue,Zn=null,Ee=null;function oa(t){if(typeof Xu=="function"&&nn(t),Ee&&typeof Ee.setStrictMode=="function")try{Ee.setStrictMode(Zn,t)}catch{}}var ye=Math.clz32?Math.clz32:ba,bc=Math.log,Mi=Math.LN2;function ba(t){return t>>>=0,t===0?32:31-(bc(t)/Mi|0)|0}var Tl=256,Nl=262144,Vn=4194304;function xa(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function ht(t,e,a){var n=t.pendingLanes;if(n===0)return 0;var i=0,s=t.suspendedLanes,o=t.pingedLanes;t=t.warmLanes;var d=n&134217727;return d!==0?(n=d&~s,n!==0?i=xa(n):(o&=d,o!==0?i=xa(o):a||(a=d&~t,a!==0&&(i=xa(a))))):(d=n&~s,d!==0?i=xa(d):o!==0?i=xa(o):a||(a=n&~t,a!==0&&(i=xa(a)))),i===0?0:e!==0&&e!==i&&(e&s)===0&&(s=i&-i,a=e&-e,s>=a||s===32&&(a&4194048)!==0)?e:i}function Kt(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function ie(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ve(){var t=Vn;return Vn<<=1,(Vn&62914560)===0&&(Vn=4194304),t}function ln(t){for(var e=[],a=0;31>a;a++)e.push(t);return e}function Vt(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Oe(t,e,a,n,i,s){var o=t.pendingLanes;t.pendingLanes=a,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=a,t.entangledLanes&=a,t.errorRecoveryDisabledLanes&=a,t.shellSuspendCounter=0;var d=t.entanglements,b=t.expirationTimes,A=t.hiddenUpdates;for(a=o&~a;0<a;){var M=31-ye(a),H=1<<M;d[M]=0,b[M]=-1;var w=A[M];if(w!==null)for(A[M]=null,M=0;M<w.length;M++){var R=w[M];R!==null&&(R.lane&=-536870913)}a&=~H}n!==0&&kn(t,n,0),s!==0&&i===0&&t.tag!==0&&(t.suspendedLanes|=s&~(o&~e))}function kn(t,e,a){t.pendingLanes|=e,t.suspendedLanes&=~e;var n=31-ye(e);t.entangledLanes|=e,t.entanglements[n]=t.entanglements[n]|1073741824|a&261930}function Ae(t,e){var a=t.entangledLanes|=e;for(t=t.entanglements;a;){var n=31-ye(a),i=1<<n;i&e|t[n]&e&&(t[n]|=e),a&=~i}}function _e(t,e){var a=e&-e;return a=(a&42)!==0?1:Ol(a),(a&(t.suspendedLanes|e))!==0?0:a}function Ol(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function fa(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function xc(){var t=X.p;return t!==0?t:(t=window.event,t===void 0?32:I0(t.type))}function mf(t,e){var a=X.p;try{return X.p=t,e()}finally{X.p=a}}var un=Math.random().toString(36).slice(2),re="__reactFiber$"+un,Ce="__reactProps$"+un,Al="__reactContainer$"+un,Sc="__reactEvents$"+un,jy="__reactListeners$"+un,Dy="__reactHandles$"+un,yf="__reactResources$"+un,ji="__reactMarker$"+un;function Ec(t){delete t[re],delete t[Ce],delete t[Sc],delete t[jy],delete t[Dy]}function _l(t){var e=t[re];if(e)return e;for(var a=t.parentNode;a;){if(e=a[Al]||a[re]){if(a=e.alternate,e.child!==null||a!==null&&a.child!==null)for(t=q0(t);t!==null;){if(a=t[re])return a;t=q0(t)}return e}t=a,a=t.parentNode}return null}function Cl(t){if(t=t[re]||t[Al]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Di(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(c(33))}function wl(t){var e=t[yf];return e||(e=t[yf]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function ue(t){t[ji]=!0}var vf=new Set,pf={};function Jn(t,e){Rl(t,e),Rl(t+"Capture",e)}function Rl(t,e){for(pf[t]=e,t=0;t<e.length;t++)vf.add(e[t])}var Uy=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),gf={},bf={};function qy(t){return Ye.call(bf,t)?!0:Ye.call(gf,t)?!1:Uy.test(t)?bf[t]=!0:(gf[t]=!0,!1)}function Ku(t,e,a){if(qy(e))if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var n=e.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+a)}}function Zu(t,e,a){if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+a)}}function ja(t,e,a,n){if(n===null)t.removeAttribute(a);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}t.setAttributeNS(e,a,""+n)}}function We(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function xf(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Hy(t,e,a){var n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(o){a=""+o,s.call(this,o)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(o){a=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function zc(t){if(!t._valueTracker){var e=xf(t)?"checked":"value";t._valueTracker=Hy(t,e,""+t[e])}}function Sf(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var a=e.getValue(),n="";return t&&(n=xf(t)?t.checked?"true":"false":t.value),t=n,t!==a?(e.setValue(t),!0):!1}function Vu(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var By=/[\n"\\]/g;function Ie(t){return t.replace(By,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Tc(t,e,a,n,i,s,o,d){t.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?t.type=o:t.removeAttribute("type"),e!=null?o==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+We(e)):t.value!==""+We(e)&&(t.value=""+We(e)):o!=="submit"&&o!=="reset"||t.removeAttribute("value"),e!=null?Nc(t,o,We(e)):a!=null?Nc(t,o,We(a)):n!=null&&t.removeAttribute("value"),i==null&&s!=null&&(t.defaultChecked=!!s),i!=null&&(t.checked=i&&typeof i!="function"&&typeof i!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?t.name=""+We(d):t.removeAttribute("name")}function Ef(t,e,a,n,i,s,o,d){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(t.type=s),e!=null||a!=null){if(!(s!=="submit"&&s!=="reset"||e!=null)){zc(t);return}a=a!=null?""+We(a):"",e=e!=null?""+We(e):a,d||e===t.value||(t.value=e),t.defaultValue=e}n=n??i,n=typeof n!="function"&&typeof n!="symbol"&&!!n,t.checked=d?t.checked:!!n,t.defaultChecked=!!n,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(t.name=o),zc(t)}function Nc(t,e,a){e==="number"&&Vu(t.ownerDocument)===t||t.defaultValue===""+a||(t.defaultValue=""+a)}function Ml(t,e,a,n){if(t=t.options,e){e={};for(var i=0;i<a.length;i++)e["$"+a[i]]=!0;for(a=0;a<t.length;a++)i=e.hasOwnProperty("$"+t[a].value),t[a].selected!==i&&(t[a].selected=i),i&&n&&(t[a].defaultSelected=!0)}else{for(a=""+We(a),e=null,i=0;i<t.length;i++){if(t[i].value===a){t[i].selected=!0,n&&(t[i].defaultSelected=!0);return}e!==null||t[i].disabled||(e=t[i])}e!==null&&(e.selected=!0)}}function zf(t,e,a){if(e!=null&&(e=""+We(e),e!==t.value&&(t.value=e),a==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=a!=null?""+We(a):""}function Tf(t,e,a,n){if(e==null){if(n!=null){if(a!=null)throw Error(c(92));if(Yt(n)){if(1<n.length)throw Error(c(93));n=n[0]}a=n}a==null&&(a=""),e=a}a=We(e),t.defaultValue=a,n=t.textContent,n===a&&n!==""&&n!==null&&(t.value=n),zc(t)}function jl(t,e){if(e){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=e;return}}t.textContent=e}var Qy=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Nf(t,e,a){var n=e.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?n?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":n?t.setProperty(e,a):typeof a!="number"||a===0||Qy.has(e)?e==="float"?t.cssFloat=a:t[e]=(""+a).trim():t[e]=a+"px"}function Of(t,e,a){if(e!=null&&typeof e!="object")throw Error(c(62));if(t=t.style,a!=null){for(var n in a)!a.hasOwnProperty(n)||e!=null&&e.hasOwnProperty(n)||(n.indexOf("--")===0?t.setProperty(n,""):n==="float"?t.cssFloat="":t[n]="");for(var i in e)n=e[i],e.hasOwnProperty(i)&&a[i]!==n&&Nf(t,i,n)}else for(var s in e)e.hasOwnProperty(s)&&Nf(t,s,e[s])}function Oc(t){if(t.indexOf("-")===-1)return!1;switch(t){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 Yy=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Ly=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function ku(t){return Ly.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Da(){}var Ac=null;function _c(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Dl=null,Ul=null;function Af(t){var e=Cl(t);if(e&&(t=e.stateNode)){var a=t[Ce]||null;t:switch(t=e.stateNode,e.type){case"input":if(Tc(t,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),e=a.name,a.type==="radio"&&e!=null){for(a=t;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Ie(""+e)+'"][type="radio"]'),e=0;e<a.length;e++){var n=a[e];if(n!==t&&n.form===t.form){var i=n[Ce]||null;if(!i)throw Error(c(90));Tc(n,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(e=0;e<a.length;e++)n=a[e],n.form===t.form&&Sf(n)}break t;case"textarea":zf(t,a.value,a.defaultValue);break t;case"select":e=a.value,e!=null&&Ml(t,!!a.multiple,e,!1)}}}var Cc=!1;function _f(t,e,a){if(Cc)return t(e,a);Cc=!0;try{var n=t(e);return n}finally{if(Cc=!1,(Dl!==null||Ul!==null)&&(Ds(),Dl&&(e=Dl,t=Ul,Ul=Dl=null,Af(e),t)))for(e=0;e<t.length;e++)Af(t[e])}}function Ui(t,e){var a=t.stateNode;if(a===null)return null;var n=a[Ce]||null;if(n===null)return null;a=n[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(t=t.type,n=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!n;break t;default:t=!1}if(t)return null;if(a&&typeof a!="function")throw Error(c(231,e,typeof a));return a}var Ua=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wc=!1;if(Ua)try{var qi={};Object.defineProperty(qi,"passive",{get:function(){wc=!0}}),window.addEventListener("test",qi,qi),window.removeEventListener("test",qi,qi)}catch{wc=!1}var sn=null,Rc=null,Ju=null;function Cf(){if(Ju)return Ju;var t,e=Rc,a=e.length,n,i="value"in sn?sn.value:sn.textContent,s=i.length;for(t=0;t<a&&e[t]===i[t];t++);var o=a-t;for(n=1;n<=o&&e[a-n]===i[s-n];n++);return Ju=i.slice(t,1<n?1-n:void 0)}function $u(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Fu(){return!0}function wf(){return!1}function we(t){function e(a,n,i,s,o){this._reactName=a,this._targetInst=i,this.type=n,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var d in t)t.hasOwnProperty(d)&&(a=t[d],this[d]=a?a(s):s[d]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Fu:wf,this.isPropagationStopped=wf,this}return v(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Fu)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Fu)},persist:function(){},isPersistent:Fu}),e}var $n={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wu=we($n),Hi=v({},$n,{view:0,detail:0}),Gy=we(Hi),Mc,jc,Bi,Iu=v({},Hi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Uc,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Bi&&(Bi&&t.type==="mousemove"?(Mc=t.screenX-Bi.screenX,jc=t.screenY-Bi.screenY):jc=Mc=0,Bi=t),Mc)},movementY:function(t){return"movementY"in t?t.movementY:jc}}),Rf=we(Iu),Xy=v({},Iu,{dataTransfer:0}),Ky=we(Xy),Zy=v({},Hi,{relatedTarget:0}),Dc=we(Zy),Vy=v({},$n,{animationName:0,elapsedTime:0,pseudoElement:0}),ky=we(Vy),Jy=v({},$n,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),$y=we(Jy),Fy=v({},$n,{data:0}),Mf=we(Fy),Wy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Iy={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"},Py={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function tv(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Py[t])?!!e[t]:!1}function Uc(){return tv}var ev=v({},Hi,{key:function(t){if(t.key){var e=Wy[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=$u(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Iy[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Uc,charCode:function(t){return t.type==="keypress"?$u(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?$u(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),av=we(ev),nv=v({},Iu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),jf=we(nv),lv=v({},Hi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Uc}),iv=we(lv),uv=v({},$n,{propertyName:0,elapsedTime:0,pseudoElement:0}),sv=we(uv),cv=v({},Iu,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),rv=we(cv),ov=v({},$n,{newState:0,oldState:0}),fv=we(ov),dv=[9,13,27,32],qc=Ua&&"CompositionEvent"in window,Qi=null;Ua&&"documentMode"in document&&(Qi=document.documentMode);var hv=Ua&&"TextEvent"in window&&!Qi,Df=Ua&&(!qc||Qi&&8<Qi&&11>=Qi),Uf=" ",qf=!1;function Hf(t,e){switch(t){case"keyup":return dv.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bf(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ql=!1;function mv(t,e){switch(t){case"compositionend":return Bf(e);case"keypress":return e.which!==32?null:(qf=!0,Uf);case"textInput":return t=e.data,t===Uf&&qf?null:t;default:return null}}function yv(t,e){if(ql)return t==="compositionend"||!qc&&Hf(t,e)?(t=Cf(),Ju=Rc=sn=null,ql=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Df&&e.locale!=="ko"?null:e.data;default:return null}}var vv={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 Qf(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!vv[t.type]:e==="textarea"}function Yf(t,e,a,n){Dl?Ul?Ul.push(n):Ul=[n]:Dl=n,e=Ls(e,"onChange"),0<e.length&&(a=new Wu("onChange","change",null,a,n),t.push({event:a,listeners:e}))}var Yi=null,Li=null;function pv(t){E0(t,0)}function Pu(t){var e=Di(t);if(Sf(e))return t}function Lf(t,e){if(t==="change")return e}var Gf=!1;if(Ua){var Hc;if(Ua){var Bc="oninput"in document;if(!Bc){var Xf=document.createElement("div");Xf.setAttribute("oninput","return;"),Bc=typeof Xf.oninput=="function"}Hc=Bc}else Hc=!1;Gf=Hc&&(!document.documentMode||9<document.documentMode)}function Kf(){Yi&&(Yi.detachEvent("onpropertychange",Zf),Li=Yi=null)}function Zf(t){if(t.propertyName==="value"&&Pu(Li)){var e=[];Yf(e,Li,t,_c(t)),_f(pv,e)}}function gv(t,e,a){t==="focusin"?(Kf(),Yi=e,Li=a,Yi.attachEvent("onpropertychange",Zf)):t==="focusout"&&Kf()}function bv(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Pu(Li)}function xv(t,e){if(t==="click")return Pu(e)}function Sv(t,e){if(t==="input"||t==="change")return Pu(e)}function Ev(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Le=typeof Object.is=="function"?Object.is:Ev;function Gi(t,e){if(Le(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var a=Object.keys(t),n=Object.keys(e);if(a.length!==n.length)return!1;for(n=0;n<a.length;n++){var i=a[n];if(!Ye.call(e,i)||!Le(t[i],e[i]))return!1}return!0}function Vf(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function kf(t,e){var a=Vf(t);t=0;for(var n;a;){if(a.nodeType===3){if(n=t+a.textContent.length,t<=e&&n>=e)return{node:a,offset:e-t};t=n}t:{for(;a;){if(a.nextSibling){a=a.nextSibling;break t}a=a.parentNode}a=void 0}a=Vf(a)}}function Jf(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Jf(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function $f(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Vu(t.document);e instanceof t.HTMLIFrameElement;){try{var a=typeof e.contentWindow.location.href=="string"}catch{a=!1}if(a)t=e.contentWindow;else break;e=Vu(t.document)}return e}function Qc(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var zv=Ua&&"documentMode"in document&&11>=document.documentMode,Hl=null,Yc=null,Xi=null,Lc=!1;function Ff(t,e,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Lc||Hl==null||Hl!==Vu(n)||(n=Hl,"selectionStart"in n&&Qc(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Xi&&Gi(Xi,n)||(Xi=n,n=Ls(Yc,"onSelect"),0<n.length&&(e=new Wu("onSelect","select",null,e,a),t.push({event:e,listeners:n}),e.target=Hl)))}function Fn(t,e){var a={};return a[t.toLowerCase()]=e.toLowerCase(),a["Webkit"+t]="webkit"+e,a["Moz"+t]="moz"+e,a}var Bl={animationend:Fn("Animation","AnimationEnd"),animationiteration:Fn("Animation","AnimationIteration"),animationstart:Fn("Animation","AnimationStart"),transitionrun:Fn("Transition","TransitionRun"),transitionstart:Fn("Transition","TransitionStart"),transitioncancel:Fn("Transition","TransitionCancel"),transitionend:Fn("Transition","TransitionEnd")},Gc={},Wf={};Ua&&(Wf=document.createElement("div").style,"AnimationEvent"in window||(delete Bl.animationend.animation,delete Bl.animationiteration.animation,delete Bl.animationstart.animation),"TransitionEvent"in window||delete Bl.transitionend.transition);function Wn(t){if(Gc[t])return Gc[t];if(!Bl[t])return t;var e=Bl[t],a;for(a in e)if(e.hasOwnProperty(a)&&a in Wf)return Gc[t]=e[a];return t}var If=Wn("animationend"),Pf=Wn("animationiteration"),td=Wn("animationstart"),Tv=Wn("transitionrun"),Nv=Wn("transitionstart"),Ov=Wn("transitioncancel"),ed=Wn("transitionend"),ad=new Map,Xc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Xc.push("scrollEnd");function da(t,e){ad.set(t,e),Jn(e,[t])}var ts=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Pe=[],Ql=0,Kc=0;function es(){for(var t=Ql,e=Kc=Ql=0;e<t;){var a=Pe[e];Pe[e++]=null;var n=Pe[e];Pe[e++]=null;var i=Pe[e];Pe[e++]=null;var s=Pe[e];if(Pe[e++]=null,n!==null&&i!==null){var o=n.pending;o===null?i.next=i:(i.next=o.next,o.next=i),n.pending=i}s!==0&&nd(a,i,s)}}function as(t,e,a,n){Pe[Ql++]=t,Pe[Ql++]=e,Pe[Ql++]=a,Pe[Ql++]=n,Kc|=n,t.lanes|=n,t=t.alternate,t!==null&&(t.lanes|=n)}function Zc(t,e,a,n){return as(t,e,a,n),ns(t)}function In(t,e){return as(t,null,null,e),ns(t)}function nd(t,e,a){t.lanes|=a;var n=t.alternate;n!==null&&(n.lanes|=a);for(var i=!1,s=t.return;s!==null;)s.childLanes|=a,n=s.alternate,n!==null&&(n.childLanes|=a),s.tag===22&&(t=s.stateNode,t===null||t._visibility&1||(i=!0)),t=s,s=s.return;return t.tag===3?(s=t.stateNode,i&&e!==null&&(i=31-ye(a),t=s.hiddenUpdates,n=t[i],n===null?t[i]=[e]:n.push(e),e.lane=a|536870912),s):null}function ns(t){if(50<fu)throw fu=0,to=null,Error(c(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Yl={};function Av(t,e,a,n){this.tag=t,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ge(t,e,a,n){return new Av(t,e,a,n)}function Vc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function qa(t,e){var a=t.alternate;return a===null?(a=Ge(t.tag,e,t.key,t.mode),a.elementType=t.elementType,a.type=t.type,a.stateNode=t.stateNode,a.alternate=t,t.alternate=a):(a.pendingProps=e,a.type=t.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=t.flags&65011712,a.childLanes=t.childLanes,a.lanes=t.lanes,a.child=t.child,a.memoizedProps=t.memoizedProps,a.memoizedState=t.memoizedState,a.updateQueue=t.updateQueue,e=t.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},a.sibling=t.sibling,a.index=t.index,a.ref=t.ref,a.refCleanup=t.refCleanup,a}function ld(t,e){t.flags&=65011714;var a=t.alternate;return a===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=a.childLanes,t.lanes=a.lanes,t.child=a.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=a.memoizedProps,t.memoizedState=a.memoizedState,t.updateQueue=a.updateQueue,t.type=a.type,e=a.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function ls(t,e,a,n,i,s){var o=0;if(n=t,typeof t=="function")Vc(t)&&(o=1);else if(typeof t=="string")o=Mp(t,a,U.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case ot:return t=Ge(31,a,e,i),t.elementType=ot,t.lanes=s,t;case I:return Pn(a.children,i,s,e);case k:o=8,i|=24;break;case L:return t=Ge(12,a,e,i|2),t.elementType=L,t.lanes=s,t;case K:return t=Ge(13,a,e,i),t.elementType=K,t.lanes=s,t;case nt:return t=Ge(19,a,e,i),t.elementType=nt,t.lanes=s,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case P:o=10;break t;case st:o=9;break t;case Z:o=11;break t;case $:o=14;break t;case tt:o=16,n=null;break t}o=29,a=Error(c(130,t===null?"null":typeof t,"")),n=null}return e=Ge(o,a,e,i),e.elementType=t,e.type=n,e.lanes=s,e}function Pn(t,e,a,n){return t=Ge(7,t,n,e),t.lanes=a,t}function kc(t,e,a){return t=Ge(6,t,null,e),t.lanes=a,t}function id(t){var e=Ge(18,null,null,0);return e.stateNode=t,e}function Jc(t,e,a){return e=Ge(4,t.children!==null?t.children:[],t.key,e),e.lanes=a,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var ud=new WeakMap;function ta(t,e){if(typeof t=="object"&&t!==null){var a=ud.get(t);return a!==void 0?a:(e={value:t,source:e,stack:_i(e)},ud.set(t,e),e)}return{value:t,source:e,stack:_i(e)}}var Ll=[],Gl=0,is=null,Ki=0,ea=[],aa=0,cn=null,Sa=1,Ea="";function Ha(t,e){Ll[Gl++]=Ki,Ll[Gl++]=is,is=t,Ki=e}function sd(t,e,a){ea[aa++]=Sa,ea[aa++]=Ea,ea[aa++]=cn,cn=t;var n=Sa;t=Ea;var i=32-ye(n)-1;n&=~(1<<i),a+=1;var s=32-ye(e)+i;if(30<s){var o=i-i%5;s=(n&(1<<o)-1).toString(32),n>>=o,i-=o,Sa=1<<32-ye(e)+i|a<<i|n,Ea=s+t}else Sa=1<<s|a<<i|n,Ea=t}function $c(t){t.return!==null&&(Ha(t,1),sd(t,1,0))}function Fc(t){for(;t===is;)is=Ll[--Gl],Ll[Gl]=null,Ki=Ll[--Gl],Ll[Gl]=null;for(;t===cn;)cn=ea[--aa],ea[aa]=null,Ea=ea[--aa],ea[aa]=null,Sa=ea[--aa],ea[aa]=null}function cd(t,e){ea[aa++]=Sa,ea[aa++]=Ea,ea[aa++]=cn,Sa=e.id,Ea=e.overflow,cn=t}var oe=null,Lt=null,Ot=!1,rn=null,na=!1,Wc=Error(c(519));function on(t){var e=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Zi(ta(e,t)),Wc}function rd(t){var e=t.stateNode,a=t.type,n=t.memoizedProps;switch(e[re]=t,e[Ce]=n,a){case"dialog":Et("cancel",e),Et("close",e);break;case"iframe":case"object":case"embed":Et("load",e);break;case"video":case"audio":for(a=0;a<hu.length;a++)Et(hu[a],e);break;case"source":Et("error",e);break;case"img":case"image":case"link":Et("error",e),Et("load",e);break;case"details":Et("toggle",e);break;case"input":Et("invalid",e),Ef(e,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":Et("invalid",e);break;case"textarea":Et("invalid",e),Tf(e,n.value,n.defaultValue,n.children)}a=n.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||e.textContent===""+a||n.suppressHydrationWarning===!0||O0(e.textContent,a)?(n.popover!=null&&(Et("beforetoggle",e),Et("toggle",e)),n.onScroll!=null&&Et("scroll",e),n.onScrollEnd!=null&&Et("scrollend",e),n.onClick!=null&&(e.onclick=Da),e=!0):e=!1,e||on(t,!0)}function od(t){for(oe=t.return;oe;)switch(oe.tag){case 5:case 31:case 13:na=!1;return;case 27:case 3:na=!0;return;default:oe=oe.return}}function Xl(t){if(t!==oe)return!1;if(!Ot)return od(t),Ot=!0,!1;var e=t.tag,a;if((a=e!==3&&e!==27)&&((a=e===5)&&(a=t.type,a=!(a!=="form"&&a!=="button")||vo(t.type,t.memoizedProps)),a=!a),a&&Lt&&on(t),od(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(317));Lt=U0(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(317));Lt=U0(t)}else e===27?(e=Lt,Tn(t.type)?(t=So,So=null,Lt=t):Lt=e):Lt=oe?ia(t.stateNode.nextSibling):null;return!0}function tl(){Lt=oe=null,Ot=!1}function Ic(){var t=rn;return t!==null&&(De===null?De=t:De.push.apply(De,t),rn=null),t}function Zi(t){rn===null?rn=[t]:rn.push(t)}var Pc=E(null),el=null,Ba=null;function fn(t,e,a){B(Pc,e._currentValue),e._currentValue=a}function Qa(t){t._currentValue=Pc.current,j(Pc)}function tr(t,e,a){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,n!==null&&(n.childLanes|=e)):n!==null&&(n.childLanes&e)!==e&&(n.childLanes|=e),t===a)break;t=t.return}}function er(t,e,a,n){var i=t.child;for(i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){var o=i.child;s=s.firstContext;t:for(;s!==null;){var d=s;s=i;for(var b=0;b<e.length;b++)if(d.context===e[b]){s.lanes|=a,d=s.alternate,d!==null&&(d.lanes|=a),tr(s.return,a,t),n||(o=null);break t}s=d.next}}else if(i.tag===18){if(o=i.return,o===null)throw Error(c(341));o.lanes|=a,s=o.alternate,s!==null&&(s.lanes|=a),tr(o,a,t),o=null}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}}function Kl(t,e,a,n){t=null;for(var i=e,s=!1;i!==null;){if(!s){if((i.flags&524288)!==0)s=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var o=i.alternate;if(o===null)throw Error(c(387));if(o=o.memoizedProps,o!==null){var d=i.type;Le(i.pendingProps.value,o.value)||(t!==null?t.push(d):t=[d])}}else if(i===xt.current){if(o=i.alternate,o===null)throw Error(c(387));o.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(t!==null?t.push(gu):t=[gu])}i=i.return}t!==null&&er(e,t,a,n),e.flags|=262144}function us(t){for(t=t.firstContext;t!==null;){if(!Le(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function al(t){el=t,Ba=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function fe(t){return fd(el,t)}function ss(t,e){return el===null&&al(t),fd(t,e)}function fd(t,e){var a=e._currentValue;if(e={context:e,memoizedValue:a,next:null},Ba===null){if(t===null)throw Error(c(308));Ba=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Ba=Ba.next=e;return a}var _v=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(a,n){t.push(n)}};this.abort=function(){e.aborted=!0,t.forEach(function(a){return a()})}},Cv=u.unstable_scheduleCallback,wv=u.unstable_NormalPriority,Pt={$$typeof:P,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ar(){return{controller:new _v,data:new Map,refCount:0}}function Vi(t){t.refCount--,t.refCount===0&&Cv(wv,function(){t.controller.abort()})}var ki=null,nr=0,Zl=0,Vl=null;function Rv(t,e){if(ki===null){var a=ki=[];nr=0,Zl=uo(),Vl={status:"pending",value:void 0,then:function(n){a.push(n)}}}return nr++,e.then(dd,dd),e}function dd(){if(--nr===0&&ki!==null){Vl!==null&&(Vl.status="fulfilled");var t=ki;ki=null,Zl=0,Vl=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Mv(t,e){var a=[],n={status:"pending",value:null,reason:null,then:function(i){a.push(i)}};return t.then(function(){n.status="fulfilled",n.value=e;for(var i=0;i<a.length;i++)(0,a[i])(e)},function(i){for(n.status="rejected",n.reason=i,i=0;i<a.length;i++)(0,a[i])(void 0)}),n}var hd=_.S;_.S=function(t,e){Fh=Se(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Rv(t,e),hd!==null&&hd(t,e)};var nl=E(null);function lr(){var t=nl.current;return t!==null?t:Qt.pooledCache}function cs(t,e){e===null?B(nl,nl.current):B(nl,e.pool)}function md(){var t=lr();return t===null?null:{parent:Pt._currentValue,pool:t}}var kl=Error(c(460)),ir=Error(c(474)),rs=Error(c(542)),os={then:function(){}};function yd(t){return t=t.status,t==="fulfilled"||t==="rejected"}function vd(t,e,a){switch(a=t[a],a===void 0?t.push(e):a!==e&&(e.then(Da,Da),e=a),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,gd(t),t;default:if(typeof e.status=="string")e.then(Da,Da);else{if(t=Qt,t!==null&&100<t.shellSuspendCounter)throw Error(c(482));t=e,t.status="pending",t.then(function(n){if(e.status==="pending"){var i=e;i.status="fulfilled",i.value=n}},function(n){if(e.status==="pending"){var i=e;i.status="rejected",i.reason=n}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,gd(t),t}throw il=e,kl}}function ll(t){try{var e=t._init;return e(t._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(il=a,kl):a}}var il=null;function pd(){if(il===null)throw Error(c(459));var t=il;return il=null,t}function gd(t){if(t===kl||t===rs)throw Error(c(483))}var Jl=null,Ji=0;function fs(t){var e=Ji;return Ji+=1,Jl===null&&(Jl=[]),vd(Jl,t,e)}function $i(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function ds(t,e){throw e.$$typeof===D?Error(c(525)):(t=Object.prototype.toString.call(e),Error(c(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function bd(t){function e(T,z){if(t){var O=T.deletions;O===null?(T.deletions=[z],T.flags|=16):O.push(z)}}function a(T,z){if(!t)return null;for(;z!==null;)e(T,z),z=z.sibling;return null}function n(T){for(var z=new Map;T!==null;)T.key!==null?z.set(T.key,T):z.set(T.index,T),T=T.sibling;return z}function i(T,z){return T=qa(T,z),T.index=0,T.sibling=null,T}function s(T,z,O){return T.index=O,t?(O=T.alternate,O!==null?(O=O.index,O<z?(T.flags|=67108866,z):O):(T.flags|=67108866,z)):(T.flags|=1048576,z)}function o(T){return t&&T.alternate===null&&(T.flags|=67108866),T}function d(T,z,O,q){return z===null||z.tag!==6?(z=kc(O,T.mode,q),z.return=T,z):(z=i(z,O),z.return=T,z)}function b(T,z,O,q){var ut=O.type;return ut===I?M(T,z,O.props.children,q,O.key):z!==null&&(z.elementType===ut||typeof ut=="object"&&ut!==null&&ut.$$typeof===tt&&ll(ut)===z.type)?(z=i(z,O.props),$i(z,O),z.return=T,z):(z=ls(O.type,O.key,O.props,null,T.mode,q),$i(z,O),z.return=T,z)}function A(T,z,O,q){return z===null||z.tag!==4||z.stateNode.containerInfo!==O.containerInfo||z.stateNode.implementation!==O.implementation?(z=Jc(O,T.mode,q),z.return=T,z):(z=i(z,O.children||[]),z.return=T,z)}function M(T,z,O,q,ut){return z===null||z.tag!==7?(z=Pn(O,T.mode,q,ut),z.return=T,z):(z=i(z,O),z.return=T,z)}function H(T,z,O){if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return z=kc(""+z,T.mode,O),z.return=T,z;if(typeof z=="object"&&z!==null){switch(z.$$typeof){case G:return O=ls(z.type,z.key,z.props,null,T.mode,O),$i(O,z),O.return=T,O;case V:return z=Jc(z,T.mode,O),z.return=T,z;case tt:return z=ll(z),H(T,z,O)}if(Yt(z)||zt(z))return z=Pn(z,T.mode,O,null),z.return=T,z;if(typeof z.then=="function")return H(T,fs(z),O);if(z.$$typeof===P)return H(T,ss(T,z),O);ds(T,z)}return null}function w(T,z,O,q){var ut=z!==null?z.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return ut!==null?null:d(T,z,""+O,q);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case G:return O.key===ut?b(T,z,O,q):null;case V:return O.key===ut?A(T,z,O,q):null;case tt:return O=ll(O),w(T,z,O,q)}if(Yt(O)||zt(O))return ut!==null?null:M(T,z,O,q,null);if(typeof O.then=="function")return w(T,z,fs(O),q);if(O.$$typeof===P)return w(T,z,ss(T,O),q);ds(T,O)}return null}function R(T,z,O,q,ut){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return T=T.get(O)||null,d(z,T,""+q,ut);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case G:return T=T.get(q.key===null?O:q.key)||null,b(z,T,q,ut);case V:return T=T.get(q.key===null?O:q.key)||null,A(z,T,q,ut);case tt:return q=ll(q),R(T,z,O,q,ut)}if(Yt(q)||zt(q))return T=T.get(O)||null,M(z,T,q,ut,null);if(typeof q.then=="function")return R(T,z,O,fs(q),ut);if(q.$$typeof===P)return R(T,z,O,ss(z,q),ut);ds(z,q)}return null}function et(T,z,O,q){for(var ut=null,_t=null,lt=z,gt=z=0,Nt=null;lt!==null&&gt<O.length;gt++){lt.index>gt?(Nt=lt,lt=null):Nt=lt.sibling;var Ct=w(T,lt,O[gt],q);if(Ct===null){lt===null&&(lt=Nt);break}t&&lt&&Ct.alternate===null&&e(T,lt),z=s(Ct,z,gt),_t===null?ut=Ct:_t.sibling=Ct,_t=Ct,lt=Nt}if(gt===O.length)return a(T,lt),Ot&&Ha(T,gt),ut;if(lt===null){for(;gt<O.length;gt++)lt=H(T,O[gt],q),lt!==null&&(z=s(lt,z,gt),_t===null?ut=lt:_t.sibling=lt,_t=lt);return Ot&&Ha(T,gt),ut}for(lt=n(lt);gt<O.length;gt++)Nt=R(lt,T,gt,O[gt],q),Nt!==null&&(t&&Nt.alternate!==null&&lt.delete(Nt.key===null?gt:Nt.key),z=s(Nt,z,gt),_t===null?ut=Nt:_t.sibling=Nt,_t=Nt);return t&&lt.forEach(function(Cn){return e(T,Cn)}),Ot&&Ha(T,gt),ut}function rt(T,z,O,q){if(O==null)throw Error(c(151));for(var ut=null,_t=null,lt=z,gt=z=0,Nt=null,Ct=O.next();lt!==null&&!Ct.done;gt++,Ct=O.next()){lt.index>gt?(Nt=lt,lt=null):Nt=lt.sibling;var Cn=w(T,lt,Ct.value,q);if(Cn===null){lt===null&&(lt=Nt);break}t&&lt&&Cn.alternate===null&&e(T,lt),z=s(Cn,z,gt),_t===null?ut=Cn:_t.sibling=Cn,_t=Cn,lt=Nt}if(Ct.done)return a(T,lt),Ot&&Ha(T,gt),ut;if(lt===null){for(;!Ct.done;gt++,Ct=O.next())Ct=H(T,Ct.value,q),Ct!==null&&(z=s(Ct,z,gt),_t===null?ut=Ct:_t.sibling=Ct,_t=Ct);return Ot&&Ha(T,gt),ut}for(lt=n(lt);!Ct.done;gt++,Ct=O.next())Ct=R(lt,T,gt,Ct.value,q),Ct!==null&&(t&&Ct.alternate!==null&&lt.delete(Ct.key===null?gt:Ct.key),z=s(Ct,z,gt),_t===null?ut=Ct:_t.sibling=Ct,_t=Ct);return t&&lt.forEach(function(Xp){return e(T,Xp)}),Ot&&Ha(T,gt),ut}function Bt(T,z,O,q){if(typeof O=="object"&&O!==null&&O.type===I&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case G:t:{for(var ut=O.key;z!==null;){if(z.key===ut){if(ut=O.type,ut===I){if(z.tag===7){a(T,z.sibling),q=i(z,O.props.children),q.return=T,T=q;break t}}else if(z.elementType===ut||typeof ut=="object"&&ut!==null&&ut.$$typeof===tt&&ll(ut)===z.type){a(T,z.sibling),q=i(z,O.props),$i(q,O),q.return=T,T=q;break t}a(T,z);break}else e(T,z);z=z.sibling}O.type===I?(q=Pn(O.props.children,T.mode,q,O.key),q.return=T,T=q):(q=ls(O.type,O.key,O.props,null,T.mode,q),$i(q,O),q.return=T,T=q)}return o(T);case V:t:{for(ut=O.key;z!==null;){if(z.key===ut)if(z.tag===4&&z.stateNode.containerInfo===O.containerInfo&&z.stateNode.implementation===O.implementation){a(T,z.sibling),q=i(z,O.children||[]),q.return=T,T=q;break t}else{a(T,z);break}else e(T,z);z=z.sibling}q=Jc(O,T.mode,q),q.return=T,T=q}return o(T);case tt:return O=ll(O),Bt(T,z,O,q)}if(Yt(O))return et(T,z,O,q);if(zt(O)){if(ut=zt(O),typeof ut!="function")throw Error(c(150));return O=ut.call(O),rt(T,z,O,q)}if(typeof O.then=="function")return Bt(T,z,fs(O),q);if(O.$$typeof===P)return Bt(T,z,ss(T,O),q);ds(T,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,z!==null&&z.tag===6?(a(T,z.sibling),q=i(z,O),q.return=T,T=q):(a(T,z),q=kc(O,T.mode,q),q.return=T,T=q),o(T)):a(T,z)}return function(T,z,O,q){try{Ji=0;var ut=Bt(T,z,O,q);return Jl=null,ut}catch(lt){if(lt===kl||lt===rs)throw lt;var _t=Ge(29,lt,null,T.mode);return _t.lanes=q,_t.return=T,_t}finally{}}}var ul=bd(!0),xd=bd(!1),dn=!1;function ur(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function sr(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function hn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function mn(t,e,a){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,(wt&2)!==0){var i=n.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),n.pending=e,e=ns(t),nd(t,null,a),e}return as(t,n,e,a),ns(t)}function Fi(t,e,a){if(e=e.updateQueue,e!==null&&(e=e.shared,(a&4194048)!==0)){var n=e.lanes;n&=t.pendingLanes,a|=n,e.lanes=a,Ae(t,a)}}function cr(t,e){var a=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,a===n)){var i=null,s=null;if(a=a.firstBaseUpdate,a!==null){do{var o={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};s===null?i=s=o:s=s.next=o,a=a.next}while(a!==null);s===null?i=s=e:s=s.next=e}else i=s=e;a={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:n.shared,callbacks:n.callbacks},t.updateQueue=a;return}t=a.lastBaseUpdate,t===null?a.firstBaseUpdate=e:t.next=e,a.lastBaseUpdate=e}var rr=!1;function Wi(){if(rr){var t=Vl;if(t!==null)throw t}}function Ii(t,e,a,n){rr=!1;var i=t.updateQueue;dn=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,d=i.shared.pending;if(d!==null){i.shared.pending=null;var b=d,A=b.next;b.next=null,o===null?s=A:o.next=A,o=b;var M=t.alternate;M!==null&&(M=M.updateQueue,d=M.lastBaseUpdate,d!==o&&(d===null?M.firstBaseUpdate=A:d.next=A,M.lastBaseUpdate=b))}if(s!==null){var H=i.baseState;o=0,M=A=b=null,d=s;do{var w=d.lane&-536870913,R=w!==d.lane;if(R?(Tt&w)===w:(n&w)===w){w!==0&&w===Zl&&(rr=!0),M!==null&&(M=M.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});t:{var et=t,rt=d;w=e;var Bt=a;switch(rt.tag){case 1:if(et=rt.payload,typeof et=="function"){H=et.call(Bt,H,w);break t}H=et;break t;case 3:et.flags=et.flags&-65537|128;case 0:if(et=rt.payload,w=typeof et=="function"?et.call(Bt,H,w):et,w==null)break t;H=v({},H,w);break t;case 2:dn=!0}}w=d.callback,w!==null&&(t.flags|=64,R&&(t.flags|=8192),R=i.callbacks,R===null?i.callbacks=[w]:R.push(w))}else R={lane:w,tag:d.tag,payload:d.payload,callback:d.callback,next:null},M===null?(A=M=R,b=H):M=M.next=R,o|=w;if(d=d.next,d===null){if(d=i.shared.pending,d===null)break;R=d,d=R.next,R.next=null,i.lastBaseUpdate=R,i.shared.pending=null}}while(!0);M===null&&(b=H),i.baseState=b,i.firstBaseUpdate=A,i.lastBaseUpdate=M,s===null&&(i.shared.lanes=0),bn|=o,t.lanes=o,t.memoizedState=H}}function Sd(t,e){if(typeof t!="function")throw Error(c(191,t));t.call(e)}function Ed(t,e){var a=t.callbacks;if(a!==null)for(t.callbacks=null,t=0;t<a.length;t++)Sd(a[t],e)}var $l=E(null),hs=E(0);function zd(t,e){t=Ja,B(hs,t),B($l,e),Ja=t|e.baseLanes}function or(){B(hs,Ja),B($l,$l.current)}function fr(){Ja=hs.current,j($l),j(hs)}var Xe=E(null),la=null;function yn(t){var e=t.alternate;B(Wt,Wt.current&1),B(Xe,t),la===null&&(e===null||$l.current!==null||e.memoizedState!==null)&&(la=t)}function dr(t){B(Wt,Wt.current),B(Xe,t),la===null&&(la=t)}function Td(t){t.tag===22?(B(Wt,Wt.current),B(Xe,t),la===null&&(la=t)):vn()}function vn(){B(Wt,Wt.current),B(Xe,Xe.current)}function Ke(t){j(Xe),la===t&&(la=null),j(Wt)}var Wt=E(0);function ms(t){for(var e=t;e!==null;){if(e.tag===13){var a=e.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||bo(a)||xo(a)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Ya=0,vt=null,qt=null,te=null,ys=!1,Fl=!1,sl=!1,vs=0,Pi=0,Wl=null,jv=0;function kt(){throw Error(c(321))}function hr(t,e){if(e===null)return!1;for(var a=0;a<e.length&&a<t.length;a++)if(!Le(t[a],e[a]))return!1;return!0}function mr(t,e,a,n,i,s){return Ya=s,vt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,_.H=t===null||t.memoizedState===null?sh:Cr,sl=!1,s=a(n,i),sl=!1,Fl&&(s=Od(e,a,n,i)),Nd(t),s}function Nd(t){_.H=au;var e=qt!==null&&qt.next!==null;if(Ya=0,te=qt=vt=null,ys=!1,Pi=0,Wl=null,e)throw Error(c(300));t===null||ee||(t=t.dependencies,t!==null&&us(t)&&(ee=!0))}function Od(t,e,a,n){vt=t;var i=0;do{if(Fl&&(Wl=null),Pi=0,Fl=!1,25<=i)throw Error(c(301));if(i+=1,te=qt=null,t.updateQueue!=null){var s=t.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}_.H=ch,s=e(a,n)}while(Fl);return s}function Dv(){var t=_.H,e=t.useState()[0];return e=typeof e.then=="function"?tu(e):e,t=t.useState()[0],(qt!==null?qt.memoizedState:null)!==t&&(vt.flags|=1024),e}function yr(){var t=vs!==0;return vs=0,t}function vr(t,e,a){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~a}function pr(t){if(ys){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}ys=!1}Ya=0,te=qt=vt=null,Fl=!1,Pi=vs=0,Wl=null}function ze(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return te===null?vt.memoizedState=te=t:te=te.next=t,te}function It(){if(qt===null){var t=vt.alternate;t=t!==null?t.memoizedState:null}else t=qt.next;var e=te===null?vt.memoizedState:te.next;if(e!==null)te=e,qt=t;else{if(t===null)throw vt.alternate===null?Error(c(467)):Error(c(310));qt=t,t={memoizedState:qt.memoizedState,baseState:qt.baseState,baseQueue:qt.baseQueue,queue:qt.queue,next:null},te===null?vt.memoizedState=te=t:te=te.next=t}return te}function ps(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function tu(t){var e=Pi;return Pi+=1,Wl===null&&(Wl=[]),t=vd(Wl,t,e),e=vt,(te===null?e.memoizedState:te.next)===null&&(e=e.alternate,_.H=e===null||e.memoizedState===null?sh:Cr),t}function gs(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return tu(t);if(t.$$typeof===P)return fe(t)}throw Error(c(438,String(t)))}function gr(t){var e=null,a=vt.updateQueue;if(a!==null&&(e=a.memoCache),e==null){var n=vt.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(e={data:n.data.map(function(i){return i.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),a===null&&(a=ps(),vt.updateQueue=a),a.memoCache=e,a=e.data[e.index],a===void 0)for(a=e.data[e.index]=Array(t),n=0;n<t;n++)a[n]=dt;return e.index++,a}function La(t,e){return typeof e=="function"?e(t):e}function bs(t){var e=It();return br(e,qt,t)}function br(t,e,a){var n=t.queue;if(n===null)throw Error(c(311));n.lastRenderedReducer=a;var i=t.baseQueue,s=n.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}e.baseQueue=i=s,n.pending=null}if(s=t.baseState,i===null)t.memoizedState=s;else{e=i.next;var d=o=null,b=null,A=e,M=!1;do{var H=A.lane&-536870913;if(H!==A.lane?(Tt&H)===H:(Ya&H)===H){var w=A.revertLane;if(w===0)b!==null&&(b=b.next={lane:0,revertLane:0,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null}),H===Zl&&(M=!0);else if((Ya&w)===w){A=A.next,w===Zl&&(M=!0);continue}else H={lane:0,revertLane:A.revertLane,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},b===null?(d=b=H,o=s):b=b.next=H,vt.lanes|=w,bn|=w;H=A.action,sl&&a(s,H),s=A.hasEagerState?A.eagerState:a(s,H)}else w={lane:H,revertLane:A.revertLane,gesture:A.gesture,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},b===null?(d=b=w,o=s):b=b.next=w,vt.lanes|=H,bn|=H;A=A.next}while(A!==null&&A!==e);if(b===null?o=s:b.next=d,!Le(s,t.memoizedState)&&(ee=!0,M&&(a=Vl,a!==null)))throw a;t.memoizedState=s,t.baseState=o,t.baseQueue=b,n.lastRenderedState=s}return i===null&&(n.lanes=0),[t.memoizedState,n.dispatch]}function xr(t){var e=It(),a=e.queue;if(a===null)throw Error(c(311));a.lastRenderedReducer=t;var n=a.dispatch,i=a.pending,s=e.memoizedState;if(i!==null){a.pending=null;var o=i=i.next;do s=t(s,o.action),o=o.next;while(o!==i);Le(s,e.memoizedState)||(ee=!0),e.memoizedState=s,e.baseQueue===null&&(e.baseState=s),a.lastRenderedState=s}return[s,n]}function Ad(t,e,a){var n=vt,i=It(),s=Ot;if(s){if(a===void 0)throw Error(c(407));a=a()}else a=e();var o=!Le((qt||i).memoizedState,a);if(o&&(i.memoizedState=a,ee=!0),i=i.queue,zr(wd.bind(null,n,i,t),[t]),i.getSnapshot!==e||o||te!==null&&te.memoizedState.tag&1){if(n.flags|=2048,Il(9,{destroy:void 0},Cd.bind(null,n,i,a,e),null),Qt===null)throw Error(c(349));s||(Ya&127)!==0||_d(n,e,a)}return a}function _d(t,e,a){t.flags|=16384,t={getSnapshot:e,value:a},e=vt.updateQueue,e===null?(e=ps(),vt.updateQueue=e,e.stores=[t]):(a=e.stores,a===null?e.stores=[t]:a.push(t))}function Cd(t,e,a,n){e.value=a,e.getSnapshot=n,Rd(e)&&Md(t)}function wd(t,e,a){return a(function(){Rd(e)&&Md(t)})}function Rd(t){var e=t.getSnapshot;t=t.value;try{var a=e();return!Le(t,a)}catch{return!0}}function Md(t){var e=In(t,2);e!==null&&Ue(e,t,2)}function Sr(t){var e=ze();if(typeof t=="function"){var a=t;if(t=a(),sl){oa(!0);try{a()}finally{oa(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:La,lastRenderedState:t},e}function jd(t,e,a,n){return t.baseState=a,br(t,qt,typeof n=="function"?n:La)}function Uv(t,e,a,n,i){if(Es(t))throw Error(c(485));if(t=e.action,t!==null){var s={payload:i,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){s.listeners.push(o)}};_.T!==null?a(!0):s.isTransition=!1,n(s),a=e.pending,a===null?(s.next=e.pending=s,Dd(e,s)):(s.next=a.next,e.pending=a.next=s)}}function Dd(t,e){var a=e.action,n=e.payload,i=t.state;if(e.isTransition){var s=_.T,o={};_.T=o;try{var d=a(i,n),b=_.S;b!==null&&b(o,d),Ud(t,e,d)}catch(A){Er(t,e,A)}finally{s!==null&&o.types!==null&&(s.types=o.types),_.T=s}}else try{s=a(i,n),Ud(t,e,s)}catch(A){Er(t,e,A)}}function Ud(t,e,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(n){qd(t,e,n)},function(n){return Er(t,e,n)}):qd(t,e,a)}function qd(t,e,a){e.status="fulfilled",e.value=a,Hd(e),t.state=a,e=t.pending,e!==null&&(a=e.next,a===e?t.pending=null:(a=a.next,e.next=a,Dd(t,a)))}function Er(t,e,a){var n=t.pending;if(t.pending=null,n!==null){n=n.next;do e.status="rejected",e.reason=a,Hd(e),e=e.next;while(e!==n)}t.action=null}function Hd(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Bd(t,e){return e}function Qd(t,e){if(Ot){var a=Qt.formState;if(a!==null){t:{var n=vt;if(Ot){if(Lt){e:{for(var i=Lt,s=na;i.nodeType!==8;){if(!s){i=null;break e}if(i=ia(i.nextSibling),i===null){i=null;break e}}s=i.data,i=s==="F!"||s==="F"?i:null}if(i){Lt=ia(i.nextSibling),n=i.data==="F!";break t}}on(n)}n=!1}n&&(e=a[0])}}return a=ze(),a.memoizedState=a.baseState=e,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bd,lastRenderedState:e},a.queue=n,a=lh.bind(null,vt,n),n.dispatch=a,n=Sr(!1),s=_r.bind(null,vt,!1,n.queue),n=ze(),i={state:e,dispatch:null,action:t,pending:null},n.queue=i,a=Uv.bind(null,vt,i,s,a),i.dispatch=a,n.memoizedState=t,[e,a,!1]}function Yd(t){var e=It();return Ld(e,qt,t)}function Ld(t,e,a){if(e=br(t,e,Bd)[0],t=bs(La)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var n=tu(e)}catch(o){throw o===kl?rs:o}else n=e;e=It();var i=e.queue,s=i.dispatch;return a!==e.memoizedState&&(vt.flags|=2048,Il(9,{destroy:void 0},qv.bind(null,i,a),null)),[n,s,t]}function qv(t,e){t.action=e}function Gd(t){var e=It(),a=qt;if(a!==null)return Ld(e,a,t);It(),e=e.memoizedState,a=It();var n=a.queue.dispatch;return a.memoizedState=t,[e,n,!1]}function Il(t,e,a,n){return t={tag:t,create:a,deps:n,inst:e,next:null},e=vt.updateQueue,e===null&&(e=ps(),vt.updateQueue=e),a=e.lastEffect,a===null?e.lastEffect=t.next=t:(n=a.next,a.next=t,t.next=n,e.lastEffect=t),t}function Xd(){return It().memoizedState}function xs(t,e,a,n){var i=ze();vt.flags|=t,i.memoizedState=Il(1|e,{destroy:void 0},a,n===void 0?null:n)}function Ss(t,e,a,n){var i=It();n=n===void 0?null:n;var s=i.memoizedState.inst;qt!==null&&n!==null&&hr(n,qt.memoizedState.deps)?i.memoizedState=Il(e,s,a,n):(vt.flags|=t,i.memoizedState=Il(1|e,s,a,n))}function Kd(t,e){xs(8390656,8,t,e)}function zr(t,e){Ss(2048,8,t,e)}function Hv(t){vt.flags|=4;var e=vt.updateQueue;if(e===null)e=ps(),vt.updateQueue=e,e.events=[t];else{var a=e.events;a===null?e.events=[t]:a.push(t)}}function Zd(t){var e=It().memoizedState;return Hv({ref:e,nextImpl:t}),function(){if((wt&2)!==0)throw Error(c(440));return e.impl.apply(void 0,arguments)}}function Vd(t,e){return Ss(4,2,t,e)}function kd(t,e){return Ss(4,4,t,e)}function Jd(t,e){if(typeof e=="function"){t=t();var a=e(t);return function(){typeof a=="function"?a():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function $d(t,e,a){a=a!=null?a.concat([t]):null,Ss(4,4,Jd.bind(null,e,t),a)}function Tr(){}function Fd(t,e){var a=It();e=e===void 0?null:e;var n=a.memoizedState;return e!==null&&hr(e,n[1])?n[0]:(a.memoizedState=[t,e],t)}function Wd(t,e){var a=It();e=e===void 0?null:e;var n=a.memoizedState;if(e!==null&&hr(e,n[1]))return n[0];if(n=t(),sl){oa(!0);try{t()}finally{oa(!1)}}return a.memoizedState=[n,e],n}function Nr(t,e,a){return a===void 0||(Ya&1073741824)!==0&&(Tt&261930)===0?t.memoizedState=e:(t.memoizedState=a,t=Ih(),vt.lanes|=t,bn|=t,a)}function Id(t,e,a,n){return Le(a,e)?a:$l.current!==null?(t=Nr(t,a,n),Le(t,e)||(ee=!0),t):(Ya&42)===0||(Ya&1073741824)!==0&&(Tt&261930)===0?(ee=!0,t.memoizedState=a):(t=Ih(),vt.lanes|=t,bn|=t,e)}function Pd(t,e,a,n,i){var s=X.p;X.p=s!==0&&8>s?s:8;var o=_.T,d={};_.T=d,_r(t,!1,e,a);try{var b=i(),A=_.S;if(A!==null&&A(d,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){var M=Mv(b,n);eu(t,e,M,ke(t))}else eu(t,e,n,ke(t))}catch(H){eu(t,e,{then:function(){},status:"rejected",reason:H},ke())}finally{X.p=s,o!==null&&d.types!==null&&(o.types=d.types),_.T=o}}function Bv(){}function Or(t,e,a,n){if(t.tag!==5)throw Error(c(476));var i=th(t).queue;Pd(t,i,e,Y,a===null?Bv:function(){return eh(t),a(n)})}function th(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:Y,baseState:Y,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:La,lastRenderedState:Y},next:null};var a={};return e.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:La,lastRenderedState:a},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function eh(t){var e=th(t);e.next===null&&(e=t.alternate.memoizedState),eu(t,e.next.queue,{},ke())}function Ar(){return fe(gu)}function ah(){return It().memoizedState}function nh(){return It().memoizedState}function Qv(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var a=ke();t=hn(a);var n=mn(e,t,a);n!==null&&(Ue(n,e,a),Fi(n,e,a)),e={cache:ar()},t.payload=e;return}e=e.return}}function Yv(t,e,a){var n=ke();a={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Es(t)?ih(e,a):(a=Zc(t,e,a,n),a!==null&&(Ue(a,t,n),uh(a,e,n)))}function lh(t,e,a){var n=ke();eu(t,e,a,n)}function eu(t,e,a,n){var i={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Es(t))ih(e,i);else{var s=t.alternate;if(t.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var o=e.lastRenderedState,d=s(o,a);if(i.hasEagerState=!0,i.eagerState=d,Le(d,o))return as(t,e,i,0),Qt===null&&es(),!1}catch{}finally{}if(a=Zc(t,e,i,n),a!==null)return Ue(a,t,n),uh(a,e,n),!0}return!1}function _r(t,e,a,n){if(n={lane:2,revertLane:uo(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Es(t)){if(e)throw Error(c(479))}else e=Zc(t,a,n,2),e!==null&&Ue(e,t,2)}function Es(t){var e=t.alternate;return t===vt||e!==null&&e===vt}function ih(t,e){Fl=ys=!0;var a=t.pending;a===null?e.next=e:(e.next=a.next,a.next=e),t.pending=e}function uh(t,e,a){if((a&4194048)!==0){var n=e.lanes;n&=t.pendingLanes,a|=n,e.lanes=a,Ae(t,a)}}var au={readContext:fe,use:gs,useCallback:kt,useContext:kt,useEffect:kt,useImperativeHandle:kt,useLayoutEffect:kt,useInsertionEffect:kt,useMemo:kt,useReducer:kt,useRef:kt,useState:kt,useDebugValue:kt,useDeferredValue:kt,useTransition:kt,useSyncExternalStore:kt,useId:kt,useHostTransitionStatus:kt,useFormState:kt,useActionState:kt,useOptimistic:kt,useMemoCache:kt,useCacheRefresh:kt};au.useEffectEvent=kt;var sh={readContext:fe,use:gs,useCallback:function(t,e){return ze().memoizedState=[t,e===void 0?null:e],t},useContext:fe,useEffect:Kd,useImperativeHandle:function(t,e,a){a=a!=null?a.concat([t]):null,xs(4194308,4,Jd.bind(null,e,t),a)},useLayoutEffect:function(t,e){return xs(4194308,4,t,e)},useInsertionEffect:function(t,e){xs(4,2,t,e)},useMemo:function(t,e){var a=ze();e=e===void 0?null:e;var n=t();if(sl){oa(!0);try{t()}finally{oa(!1)}}return a.memoizedState=[n,e],n},useReducer:function(t,e,a){var n=ze();if(a!==void 0){var i=a(e);if(sl){oa(!0);try{a(e)}finally{oa(!1)}}}else i=e;return n.memoizedState=n.baseState=i,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:i},n.queue=t,t=t.dispatch=Yv.bind(null,vt,t),[n.memoizedState,t]},useRef:function(t){var e=ze();return t={current:t},e.memoizedState=t},useState:function(t){t=Sr(t);var e=t.queue,a=lh.bind(null,vt,e);return e.dispatch=a,[t.memoizedState,a]},useDebugValue:Tr,useDeferredValue:function(t,e){var a=ze();return Nr(a,t,e)},useTransition:function(){var t=Sr(!1);return t=Pd.bind(null,vt,t.queue,!0,!1),ze().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,a){var n=vt,i=ze();if(Ot){if(a===void 0)throw Error(c(407));a=a()}else{if(a=e(),Qt===null)throw Error(c(349));(Tt&127)!==0||_d(n,e,a)}i.memoizedState=a;var s={value:a,getSnapshot:e};return i.queue=s,Kd(wd.bind(null,n,s,t),[t]),n.flags|=2048,Il(9,{destroy:void 0},Cd.bind(null,n,s,a,e),null),a},useId:function(){var t=ze(),e=Qt.identifierPrefix;if(Ot){var a=Ea,n=Sa;a=(n&~(1<<32-ye(n)-1)).toString(32)+a,e="_"+e+"R_"+a,a=vs++,0<a&&(e+="H"+a.toString(32)),e+="_"}else a=jv++,e="_"+e+"r_"+a.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Ar,useFormState:Qd,useActionState:Qd,useOptimistic:function(t){var e=ze();e.memoizedState=e.baseState=t;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=a,e=_r.bind(null,vt,!0,a),a.dispatch=e,[t,e]},useMemoCache:gr,useCacheRefresh:function(){return ze().memoizedState=Qv.bind(null,vt)},useEffectEvent:function(t){var e=ze(),a={impl:t};return e.memoizedState=a,function(){if((wt&2)!==0)throw Error(c(440));return a.impl.apply(void 0,arguments)}}},Cr={readContext:fe,use:gs,useCallback:Fd,useContext:fe,useEffect:zr,useImperativeHandle:$d,useInsertionEffect:Vd,useLayoutEffect:kd,useMemo:Wd,useReducer:bs,useRef:Xd,useState:function(){return bs(La)},useDebugValue:Tr,useDeferredValue:function(t,e){var a=It();return Id(a,qt.memoizedState,t,e)},useTransition:function(){var t=bs(La)[0],e=It().memoizedState;return[typeof t=="boolean"?t:tu(t),e]},useSyncExternalStore:Ad,useId:ah,useHostTransitionStatus:Ar,useFormState:Yd,useActionState:Yd,useOptimistic:function(t,e){var a=It();return jd(a,qt,t,e)},useMemoCache:gr,useCacheRefresh:nh};Cr.useEffectEvent=Zd;var ch={readContext:fe,use:gs,useCallback:Fd,useContext:fe,useEffect:zr,useImperativeHandle:$d,useInsertionEffect:Vd,useLayoutEffect:kd,useMemo:Wd,useReducer:xr,useRef:Xd,useState:function(){return xr(La)},useDebugValue:Tr,useDeferredValue:function(t,e){var a=It();return qt===null?Nr(a,t,e):Id(a,qt.memoizedState,t,e)},useTransition:function(){var t=xr(La)[0],e=It().memoizedState;return[typeof t=="boolean"?t:tu(t),e]},useSyncExternalStore:Ad,useId:ah,useHostTransitionStatus:Ar,useFormState:Gd,useActionState:Gd,useOptimistic:function(t,e){var a=It();return qt!==null?jd(a,qt,t,e):(a.baseState=t,[t,a.queue.dispatch])},useMemoCache:gr,useCacheRefresh:nh};ch.useEffectEvent=Zd;function wr(t,e,a,n){e=t.memoizedState,a=a(n,e),a=a==null?e:v({},e,a),t.memoizedState=a,t.lanes===0&&(t.updateQueue.baseState=a)}var Rr={enqueueSetState:function(t,e,a){t=t._reactInternals;var n=ke(),i=hn(n);i.payload=e,a!=null&&(i.callback=a),e=mn(t,i,n),e!==null&&(Ue(e,t,n),Fi(e,t,n))},enqueueReplaceState:function(t,e,a){t=t._reactInternals;var n=ke(),i=hn(n);i.tag=1,i.payload=e,a!=null&&(i.callback=a),e=mn(t,i,n),e!==null&&(Ue(e,t,n),Fi(e,t,n))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var a=ke(),n=hn(a);n.tag=2,e!=null&&(n.callback=e),e=mn(t,n,a),e!==null&&(Ue(e,t,a),Fi(e,t,a))}};function rh(t,e,a,n,i,s,o){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(n,s,o):e.prototype&&e.prototype.isPureReactComponent?!Gi(a,n)||!Gi(i,s):!0}function oh(t,e,a,n){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(a,n),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(a,n),e.state!==t&&Rr.enqueueReplaceState(e,e.state,null)}function cl(t,e){var a=e;if("ref"in e){a={};for(var n in e)n!=="ref"&&(a[n]=e[n])}if(t=t.defaultProps){a===e&&(a=v({},a));for(var i in t)a[i]===void 0&&(a[i]=t[i])}return a}function fh(t){ts(t)}function dh(t){console.error(t)}function hh(t){ts(t)}function zs(t,e){try{var a=t.onUncaughtError;a(e.value,{componentStack:e.stack})}catch(n){setTimeout(function(){throw n})}}function mh(t,e,a){try{var n=t.onCaughtError;n(a.value,{componentStack:a.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function Mr(t,e,a){return a=hn(a),a.tag=3,a.payload={element:null},a.callback=function(){zs(t,e)},a}function yh(t){return t=hn(t),t.tag=3,t}function vh(t,e,a,n){var i=a.type.getDerivedStateFromError;if(typeof i=="function"){var s=n.value;t.payload=function(){return i(s)},t.callback=function(){mh(e,a,n)}}var o=a.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(t.callback=function(){mh(e,a,n),typeof i!="function"&&(xn===null?xn=new Set([this]):xn.add(this));var d=n.stack;this.componentDidCatch(n.value,{componentStack:d!==null?d:""})})}function Lv(t,e,a,n,i){if(a.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(e=a.alternate,e!==null&&Kl(e,a,i,!0),a=Xe.current,a!==null){switch(a.tag){case 31:case 13:return la===null?Us():a.alternate===null&&Jt===0&&(Jt=3),a.flags&=-257,a.flags|=65536,a.lanes=i,n===os?a.flags|=16384:(e=a.updateQueue,e===null?a.updateQueue=new Set([n]):e.add(n),no(t,n,i)),!1;case 22:return a.flags|=65536,n===os?a.flags|=16384:(e=a.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([n])},a.updateQueue=e):(a=e.retryQueue,a===null?e.retryQueue=new Set([n]):a.add(n)),no(t,n,i)),!1}throw Error(c(435,a.tag))}return no(t,n,i),Us(),!1}if(Ot)return e=Xe.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=i,n!==Wc&&(t=Error(c(422),{cause:n}),Zi(ta(t,a)))):(n!==Wc&&(e=Error(c(423),{cause:n}),Zi(ta(e,a))),t=t.current.alternate,t.flags|=65536,i&=-i,t.lanes|=i,n=ta(n,a),i=Mr(t.stateNode,n,i),cr(t,i),Jt!==4&&(Jt=2)),!1;var s=Error(c(520),{cause:n});if(s=ta(s,a),ou===null?ou=[s]:ou.push(s),Jt!==4&&(Jt=2),e===null)return!0;n=ta(n,a),a=e;do{switch(a.tag){case 3:return a.flags|=65536,t=i&-i,a.lanes|=t,t=Mr(a.stateNode,n,t),cr(a,t),!1;case 1:if(e=a.type,s=a.stateNode,(a.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(xn===null||!xn.has(s))))return a.flags|=65536,i&=-i,a.lanes|=i,i=yh(i),vh(i,t,a,n),cr(a,i),!1}a=a.return}while(a!==null);return!1}var jr=Error(c(461)),ee=!1;function de(t,e,a,n){e.child=t===null?xd(e,null,a,n):ul(e,t.child,a,n)}function ph(t,e,a,n,i){a=a.render;var s=e.ref;if("ref"in n){var o={};for(var d in n)d!=="ref"&&(o[d]=n[d])}else o=n;return al(e),n=mr(t,e,a,o,s,i),d=yr(),t!==null&&!ee?(vr(t,e,i),Ga(t,e,i)):(Ot&&d&&$c(e),e.flags|=1,de(t,e,n,i),e.child)}function gh(t,e,a,n,i){if(t===null){var s=a.type;return typeof s=="function"&&!Vc(s)&&s.defaultProps===void 0&&a.compare===null?(e.tag=15,e.type=s,bh(t,e,s,n,i)):(t=ls(a.type,null,n,e,e.mode,i),t.ref=e.ref,t.return=e,e.child=t)}if(s=t.child,!Lr(t,i)){var o=s.memoizedProps;if(a=a.compare,a=a!==null?a:Gi,a(o,n)&&t.ref===e.ref)return Ga(t,e,i)}return e.flags|=1,t=qa(s,n),t.ref=e.ref,t.return=e,e.child=t}function bh(t,e,a,n,i){if(t!==null){var s=t.memoizedProps;if(Gi(s,n)&&t.ref===e.ref)if(ee=!1,e.pendingProps=n=s,Lr(t,i))(t.flags&131072)!==0&&(ee=!0);else return e.lanes=t.lanes,Ga(t,e,i)}return Dr(t,e,a,n,i)}function xh(t,e,a,n){var i=n.children,s=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((e.flags&128)!==0){if(s=s!==null?s.baseLanes|a:a,t!==null){for(n=e.child=t.child,i=0;n!==null;)i=i|n.lanes|n.childLanes,n=n.sibling;n=i&~s}else n=0,e.child=null;return Sh(t,e,s,a,n)}if((a&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&cs(e,s!==null?s.cachePool:null),s!==null?zd(e,s):or(),Td(e);else return n=e.lanes=536870912,Sh(t,e,s!==null?s.baseLanes|a:a,a,n)}else s!==null?(cs(e,s.cachePool),zd(e,s),vn(),e.memoizedState=null):(t!==null&&cs(e,null),or(),vn());return de(t,e,i,a),e.child}function nu(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Sh(t,e,a,n,i){var s=lr();return s=s===null?null:{parent:Pt._currentValue,pool:s},e.memoizedState={baseLanes:a,cachePool:s},t!==null&&cs(e,null),or(),Td(e),t!==null&&Kl(t,e,n,!0),e.childLanes=i,null}function Ts(t,e){return e=Os({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Eh(t,e,a){return ul(e,t.child,null,a),t=Ts(e,e.pendingProps),t.flags|=2,Ke(e),e.memoizedState=null,t}function Gv(t,e,a){var n=e.pendingProps,i=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(Ot){if(n.mode==="hidden")return t=Ts(e,n),e.lanes=536870912,nu(null,t);if(dr(e),(t=Lt)?(t=D0(t,na),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:cn!==null?{id:Sa,overflow:Ea}:null,retryLane:536870912,hydrationErrors:null},a=id(t),a.return=e,e.child=a,oe=e,Lt=null)):t=null,t===null)throw on(e);return e.lanes=536870912,null}return Ts(e,n)}var s=t.memoizedState;if(s!==null){var o=s.dehydrated;if(dr(e),i)if(e.flags&256)e.flags&=-257,e=Eh(t,e,a);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(c(558));else if(ee||Kl(t,e,a,!1),i=(a&t.childLanes)!==0,ee||i){if(n=Qt,n!==null&&(o=_e(n,a),o!==0&&o!==s.retryLane))throw s.retryLane=o,In(t,o),Ue(n,t,o),jr;Us(),e=Eh(t,e,a)}else t=s.treeContext,Lt=ia(o.nextSibling),oe=e,Ot=!0,rn=null,na=!1,t!==null&&cd(e,t),e=Ts(e,n),e.flags|=4096;return e}return t=qa(t.child,{mode:n.mode,children:n.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Ns(t,e){var a=e.ref;if(a===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(c(284));(t===null||t.ref!==a)&&(e.flags|=4194816)}}function Dr(t,e,a,n,i){return al(e),a=mr(t,e,a,n,void 0,i),n=yr(),t!==null&&!ee?(vr(t,e,i),Ga(t,e,i)):(Ot&&n&&$c(e),e.flags|=1,de(t,e,a,i),e.child)}function zh(t,e,a,n,i,s){return al(e),e.updateQueue=null,a=Od(e,n,a,i),Nd(t),n=yr(),t!==null&&!ee?(vr(t,e,s),Ga(t,e,s)):(Ot&&n&&$c(e),e.flags|=1,de(t,e,a,s),e.child)}function Th(t,e,a,n,i){if(al(e),e.stateNode===null){var s=Yl,o=a.contextType;typeof o=="object"&&o!==null&&(s=fe(o)),s=new a(n,s),e.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Rr,e.stateNode=s,s._reactInternals=e,s=e.stateNode,s.props=n,s.state=e.memoizedState,s.refs={},ur(e),o=a.contextType,s.context=typeof o=="object"&&o!==null?fe(o):Yl,s.state=e.memoizedState,o=a.getDerivedStateFromProps,typeof o=="function"&&(wr(e,a,o,n),s.state=e.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(o=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),o!==s.state&&Rr.enqueueReplaceState(s,s.state,null),Ii(e,n,s,i),Wi(),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308),n=!0}else if(t===null){s=e.stateNode;var d=e.memoizedProps,b=cl(a,d);s.props=b;var A=s.context,M=a.contextType;o=Yl,typeof M=="object"&&M!==null&&(o=fe(M));var H=a.getDerivedStateFromProps;M=typeof H=="function"||typeof s.getSnapshotBeforeUpdate=="function",d=e.pendingProps!==d,M||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(d||A!==o)&&oh(e,s,n,o),dn=!1;var w=e.memoizedState;s.state=w,Ii(e,n,s,i),Wi(),A=e.memoizedState,d||w!==A||dn?(typeof H=="function"&&(wr(e,a,H,n),A=e.memoizedState),(b=dn||rh(e,a,b,n,w,A,o))?(M||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(e.flags|=4194308)):(typeof s.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=n,e.memoizedState=A),s.props=n,s.state=A,s.context=o,n=b):(typeof s.componentDidMount=="function"&&(e.flags|=4194308),n=!1)}else{s=e.stateNode,sr(t,e),o=e.memoizedProps,M=cl(a,o),s.props=M,H=e.pendingProps,w=s.context,A=a.contextType,b=Yl,typeof A=="object"&&A!==null&&(b=fe(A)),d=a.getDerivedStateFromProps,(A=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(o!==H||w!==b)&&oh(e,s,n,b),dn=!1,w=e.memoizedState,s.state=w,Ii(e,n,s,i),Wi();var R=e.memoizedState;o!==H||w!==R||dn||t!==null&&t.dependencies!==null&&us(t.dependencies)?(typeof d=="function"&&(wr(e,a,d,n),R=e.memoizedState),(M=dn||rh(e,a,M,n,w,R,b)||t!==null&&t.dependencies!==null&&us(t.dependencies))?(A||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(n,R,b),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(n,R,b)),typeof s.componentDidUpdate=="function"&&(e.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof s.componentDidUpdate!="function"||o===t.memoizedProps&&w===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||o===t.memoizedProps&&w===t.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=R),s.props=n,s.state=R,s.context=b,n=M):(typeof s.componentDidUpdate!="function"||o===t.memoizedProps&&w===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||o===t.memoizedProps&&w===t.memoizedState||(e.flags|=1024),n=!1)}return s=n,Ns(t,e),n=(e.flags&128)!==0,s||n?(s=e.stateNode,a=n&&typeof a.getDerivedStateFromError!="function"?null:s.render(),e.flags|=1,t!==null&&n?(e.child=ul(e,t.child,null,i),e.child=ul(e,null,a,i)):de(t,e,a,i),e.memoizedState=s.state,t=e.child):t=Ga(t,e,i),t}function Nh(t,e,a,n){return tl(),e.flags|=256,de(t,e,a,n),e.child}var Ur={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function qr(t){return{baseLanes:t,cachePool:md()}}function Hr(t,e,a){return t=t!==null?t.childLanes&~a:0,e&&(t|=Ve),t}function Oh(t,e,a){var n=e.pendingProps,i=!1,s=(e.flags&128)!==0,o;if((o=s)||(o=t!==null&&t.memoizedState===null?!1:(Wt.current&2)!==0),o&&(i=!0,e.flags&=-129),o=(e.flags&32)!==0,e.flags&=-33,t===null){if(Ot){if(i?yn(e):vn(),(t=Lt)?(t=D0(t,na),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:cn!==null?{id:Sa,overflow:Ea}:null,retryLane:536870912,hydrationErrors:null},a=id(t),a.return=e,e.child=a,oe=e,Lt=null)):t=null,t===null)throw on(e);return xo(t)?e.lanes=32:e.lanes=536870912,null}var d=n.children;return n=n.fallback,i?(vn(),i=e.mode,d=Os({mode:"hidden",children:d},i),n=Pn(n,i,a,null),d.return=e,n.return=e,d.sibling=n,e.child=d,n=e.child,n.memoizedState=qr(a),n.childLanes=Hr(t,o,a),e.memoizedState=Ur,nu(null,n)):(yn(e),Br(e,d))}var b=t.memoizedState;if(b!==null&&(d=b.dehydrated,d!==null)){if(s)e.flags&256?(yn(e),e.flags&=-257,e=Qr(t,e,a)):e.memoizedState!==null?(vn(),e.child=t.child,e.flags|=128,e=null):(vn(),d=n.fallback,i=e.mode,n=Os({mode:"visible",children:n.children},i),d=Pn(d,i,a,null),d.flags|=2,n.return=e,d.return=e,n.sibling=d,e.child=n,ul(e,t.child,null,a),n=e.child,n.memoizedState=qr(a),n.childLanes=Hr(t,o,a),e.memoizedState=Ur,e=nu(null,n));else if(yn(e),xo(d)){if(o=d.nextSibling&&d.nextSibling.dataset,o)var A=o.dgst;o=A,n=Error(c(419)),n.stack="",n.digest=o,Zi({value:n,source:null,stack:null}),e=Qr(t,e,a)}else if(ee||Kl(t,e,a,!1),o=(a&t.childLanes)!==0,ee||o){if(o=Qt,o!==null&&(n=_e(o,a),n!==0&&n!==b.retryLane))throw b.retryLane=n,In(t,n),Ue(o,t,n),jr;bo(d)||Us(),e=Qr(t,e,a)}else bo(d)?(e.flags|=192,e.child=t.child,e=null):(t=b.treeContext,Lt=ia(d.nextSibling),oe=e,Ot=!0,rn=null,na=!1,t!==null&&cd(e,t),e=Br(e,n.children),e.flags|=4096);return e}return i?(vn(),d=n.fallback,i=e.mode,b=t.child,A=b.sibling,n=qa(b,{mode:"hidden",children:n.children}),n.subtreeFlags=b.subtreeFlags&65011712,A!==null?d=qa(A,d):(d=Pn(d,i,a,null),d.flags|=2),d.return=e,n.return=e,n.sibling=d,e.child=n,nu(null,n),n=e.child,d=t.child.memoizedState,d===null?d=qr(a):(i=d.cachePool,i!==null?(b=Pt._currentValue,i=i.parent!==b?{parent:b,pool:b}:i):i=md(),d={baseLanes:d.baseLanes|a,cachePool:i}),n.memoizedState=d,n.childLanes=Hr(t,o,a),e.memoizedState=Ur,nu(t.child,n)):(yn(e),a=t.child,t=a.sibling,a=qa(a,{mode:"visible",children:n.children}),a.return=e,a.sibling=null,t!==null&&(o=e.deletions,o===null?(e.deletions=[t],e.flags|=16):o.push(t)),e.child=a,e.memoizedState=null,a)}function Br(t,e){return e=Os({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Os(t,e){return t=Ge(22,t,null,e),t.lanes=0,t}function Qr(t,e,a){return ul(e,t.child,null,a),t=Br(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Ah(t,e,a){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),tr(t.return,e,a)}function Yr(t,e,a,n,i,s){var o=t.memoizedState;o===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:a,tailMode:i,treeForkCount:s}:(o.isBackwards=e,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=a,o.tailMode=i,o.treeForkCount=s)}function _h(t,e,a){var n=e.pendingProps,i=n.revealOrder,s=n.tail;n=n.children;var o=Wt.current,d=(o&2)!==0;if(d?(o=o&1|2,e.flags|=128):o&=1,B(Wt,o),de(t,e,n,a),n=Ot?Ki:0,!d&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Ah(t,a,e);else if(t.tag===19)Ah(t,a,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(i){case"forwards":for(a=e.child,i=null;a!==null;)t=a.alternate,t!==null&&ms(t)===null&&(i=a),a=a.sibling;a=i,a===null?(i=e.child,e.child=null):(i=a.sibling,a.sibling=null),Yr(e,!1,i,a,s,n);break;case"backwards":case"unstable_legacy-backwards":for(a=null,i=e.child,e.child=null;i!==null;){if(t=i.alternate,t!==null&&ms(t)===null){e.child=i;break}t=i.sibling,i.sibling=a,a=i,i=t}Yr(e,!0,a,null,s,n);break;case"together":Yr(e,!1,null,null,void 0,n);break;default:e.memoizedState=null}return e.child}function Ga(t,e,a){if(t!==null&&(e.dependencies=t.dependencies),bn|=e.lanes,(a&e.childLanes)===0)if(t!==null){if(Kl(t,e,a,!1),(a&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(c(153));if(e.child!==null){for(t=e.child,a=qa(t,t.pendingProps),e.child=a,a.return=e;t.sibling!==null;)t=t.sibling,a=a.sibling=qa(t,t.pendingProps),a.return=e;a.sibling=null}return e.child}function Lr(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&us(t)))}function Xv(t,e,a){switch(e.tag){case 3:bt(e,e.stateNode.containerInfo),fn(e,Pt,t.memoizedState.cache),tl();break;case 27:case 5:pa(e);break;case 4:bt(e,e.stateNode.containerInfo);break;case 10:fn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,dr(e),null;break;case 13:var n=e.memoizedState;if(n!==null)return n.dehydrated!==null?(yn(e),e.flags|=128,null):(a&e.child.childLanes)!==0?Oh(t,e,a):(yn(e),t=Ga(t,e,a),t!==null?t.sibling:null);yn(e);break;case 19:var i=(t.flags&128)!==0;if(n=(a&e.childLanes)!==0,n||(Kl(t,e,a,!1),n=(a&e.childLanes)!==0),i){if(n)return _h(t,e,a);e.flags|=128}if(i=e.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),B(Wt,Wt.current),n)break;return null;case 22:return e.lanes=0,xh(t,e,a,e.pendingProps);case 24:fn(e,Pt,t.memoizedState.cache)}return Ga(t,e,a)}function Ch(t,e,a){if(t!==null)if(t.memoizedProps!==e.pendingProps)ee=!0;else{if(!Lr(t,a)&&(e.flags&128)===0)return ee=!1,Xv(t,e,a);ee=(t.flags&131072)!==0}else ee=!1,Ot&&(e.flags&1048576)!==0&&sd(e,Ki,e.index);switch(e.lanes=0,e.tag){case 16:t:{var n=e.pendingProps;if(t=ll(e.elementType),e.type=t,typeof t=="function")Vc(t)?(n=cl(t,n),e.tag=1,e=Th(null,e,t,n,a)):(e.tag=0,e=Dr(null,e,t,n,a));else{if(t!=null){var i=t.$$typeof;if(i===Z){e.tag=11,e=ph(null,e,t,n,a);break t}else if(i===$){e.tag=14,e=gh(null,e,t,n,a);break t}}throw e=Xt(t)||t,Error(c(306,e,""))}}return e;case 0:return Dr(t,e,e.type,e.pendingProps,a);case 1:return n=e.type,i=cl(n,e.pendingProps),Th(t,e,n,i,a);case 3:t:{if(bt(e,e.stateNode.containerInfo),t===null)throw Error(c(387));n=e.pendingProps;var s=e.memoizedState;i=s.element,sr(t,e),Ii(e,n,null,a);var o=e.memoizedState;if(n=o.cache,fn(e,Pt,n),n!==s.cache&&er(e,[Pt],a,!0),Wi(),n=o.element,s.isDehydrated)if(s={element:n,isDehydrated:!1,cache:o.cache},e.updateQueue.baseState=s,e.memoizedState=s,e.flags&256){e=Nh(t,e,n,a);break t}else if(n!==i){i=ta(Error(c(424)),e),Zi(i),e=Nh(t,e,n,a);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Lt=ia(t.firstChild),oe=e,Ot=!0,rn=null,na=!0,a=xd(e,null,n,a),e.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(tl(),n===i){e=Ga(t,e,a);break t}de(t,e,n,a)}e=e.child}return e;case 26:return Ns(t,e),t===null?(a=Y0(e.type,null,e.pendingProps,null))?e.memoizedState=a:Ot||(a=e.type,t=e.pendingProps,n=Gs(at.current).createElement(a),n[re]=e,n[Ce]=t,he(n,a,t),ue(n),e.stateNode=n):e.memoizedState=Y0(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return pa(e),t===null&&Ot&&(n=e.stateNode=H0(e.type,e.pendingProps,at.current),oe=e,na=!0,i=Lt,Tn(e.type)?(So=i,Lt=ia(n.firstChild)):Lt=i),de(t,e,e.pendingProps.children,a),Ns(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&Ot&&((i=n=Lt)&&(n=bp(n,e.type,e.pendingProps,na),n!==null?(e.stateNode=n,oe=e,Lt=ia(n.firstChild),na=!1,i=!0):i=!1),i||on(e)),pa(e),i=e.type,s=e.pendingProps,o=t!==null?t.memoizedProps:null,n=s.children,vo(i,s)?n=null:o!==null&&vo(i,o)&&(e.flags|=32),e.memoizedState!==null&&(i=mr(t,e,Dv,null,null,a),gu._currentValue=i),Ns(t,e),de(t,e,n,a),e.child;case 6:return t===null&&Ot&&((t=a=Lt)&&(a=xp(a,e.pendingProps,na),a!==null?(e.stateNode=a,oe=e,Lt=null,t=!0):t=!1),t||on(e)),null;case 13:return Oh(t,e,a);case 4:return bt(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=ul(e,null,n,a):de(t,e,n,a),e.child;case 11:return ph(t,e,e.type,e.pendingProps,a);case 7:return de(t,e,e.pendingProps,a),e.child;case 8:return de(t,e,e.pendingProps.children,a),e.child;case 12:return de(t,e,e.pendingProps.children,a),e.child;case 10:return n=e.pendingProps,fn(e,e.type,n.value),de(t,e,n.children,a),e.child;case 9:return i=e.type._context,n=e.pendingProps.children,al(e),i=fe(i),n=n(i),e.flags|=1,de(t,e,n,a),e.child;case 14:return gh(t,e,e.type,e.pendingProps,a);case 15:return bh(t,e,e.type,e.pendingProps,a);case 19:return _h(t,e,a);case 31:return Gv(t,e,a);case 22:return xh(t,e,a,e.pendingProps);case 24:return al(e),n=fe(Pt),t===null?(i=lr(),i===null&&(i=Qt,s=ar(),i.pooledCache=s,s.refCount++,s!==null&&(i.pooledCacheLanes|=a),i=s),e.memoizedState={parent:n,cache:i},ur(e),fn(e,Pt,i)):((t.lanes&a)!==0&&(sr(t,e),Ii(e,null,null,a),Wi()),i=t.memoizedState,s=e.memoizedState,i.parent!==n?(i={parent:n,cache:n},e.memoizedState=i,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=i),fn(e,Pt,n)):(n=s.cache,fn(e,Pt,n),n!==i.cache&&er(e,[Pt],a,!0))),de(t,e,e.pendingProps.children,a),e.child;case 29:throw e.pendingProps}throw Error(c(156,e.tag))}function Xa(t){t.flags|=4}function Gr(t,e,a,n,i){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(i&335544128)===i)if(t.stateNode.complete)t.flags|=8192;else if(a0())t.flags|=8192;else throw il=os,ir}else t.flags&=-16777217}function wh(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Z0(e))if(a0())t.flags|=8192;else throw il=os,ir}function As(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?ve():536870912,t.lanes|=e,ai|=e)}function lu(t,e){if(!Ot)switch(t.tailMode){case"hidden":e=t.tail;for(var a=null;e!==null;)e.alternate!==null&&(a=e),e=e.sibling;a===null?t.tail=null:a.sibling=null;break;case"collapsed":a=t.tail;for(var n=null;a!==null;)a.alternate!==null&&(n=a),a=a.sibling;n===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:n.sibling=null}}function Gt(t){var e=t.alternate!==null&&t.alternate.child===t.child,a=0,n=0;if(e)for(var i=t.child;i!==null;)a|=i.lanes|i.childLanes,n|=i.subtreeFlags&65011712,n|=i.flags&65011712,i.return=t,i=i.sibling;else for(i=t.child;i!==null;)a|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=t,i=i.sibling;return t.subtreeFlags|=n,t.childLanes=a,e}function Kv(t,e,a){var n=e.pendingProps;switch(Fc(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gt(e),null;case 1:return Gt(e),null;case 3:return a=e.stateNode,n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),Qa(Pt),Ut(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(Xl(e)?Xa(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Ic())),Gt(e),null;case 26:var i=e.type,s=e.memoizedState;return t===null?(Xa(e),s!==null?(Gt(e),wh(e,s)):(Gt(e),Gr(e,i,null,n,a))):s?s!==t.memoizedState?(Xa(e),Gt(e),wh(e,s)):(Gt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==n&&Xa(e),Gt(e),Gr(e,i,t,n,a)),null;case 27:if(Ra(e),a=at.current,i=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&Xa(e);else{if(!n){if(e.stateNode===null)throw Error(c(166));return Gt(e),null}t=U.current,Xl(e)?rd(e):(t=H0(i,n,a),e.stateNode=t,Xa(e))}return Gt(e),null;case 5:if(Ra(e),i=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&Xa(e);else{if(!n){if(e.stateNode===null)throw Error(c(166));return Gt(e),null}if(s=U.current,Xl(e))rd(e);else{var o=Gs(at.current);switch(s){case 1:s=o.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:s=o.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":s=o.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":s=o.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":s=o.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof n.is=="string"?o.createElement("select",{is:n.is}):o.createElement("select"),n.multiple?s.multiple=!0:n.size&&(s.size=n.size);break;default:s=typeof n.is=="string"?o.createElement(i,{is:n.is}):o.createElement(i)}}s[re]=e,s[Ce]=n;t:for(o=e.child;o!==null;){if(o.tag===5||o.tag===6)s.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===e)break t;for(;o.sibling===null;){if(o.return===null||o.return===e)break t;o=o.return}o.sibling.return=o.return,o=o.sibling}e.stateNode=s;t:switch(he(s,i,n),i){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break t;case"img":n=!0;break t;default:n=!1}n&&Xa(e)}}return Gt(e),Gr(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,a),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==n&&Xa(e);else{if(typeof n!="string"&&e.stateNode===null)throw Error(c(166));if(t=at.current,Xl(e)){if(t=e.stateNode,a=e.memoizedProps,n=null,i=oe,i!==null)switch(i.tag){case 27:case 5:n=i.memoizedProps}t[re]=e,t=!!(t.nodeValue===a||n!==null&&n.suppressHydrationWarning===!0||O0(t.nodeValue,a)),t||on(e,!0)}else t=Gs(t).createTextNode(n),t[re]=e,e.stateNode=t}return Gt(e),null;case 31:if(a=e.memoizedState,t===null||t.memoizedState!==null){if(n=Xl(e),a!==null){if(t===null){if(!n)throw Error(c(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(557));t[re]=e}else tl(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Gt(e),t=!1}else a=Ic(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),t=!0;if(!t)return e.flags&256?(Ke(e),e):(Ke(e),null);if((e.flags&128)!==0)throw Error(c(558))}return Gt(e),null;case 13:if(n=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(i=Xl(e),n!==null&&n.dehydrated!==null){if(t===null){if(!i)throw Error(c(318));if(i=e.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(c(317));i[re]=e}else tl(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Gt(e),i=!1}else i=Ic(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),i=!0;if(!i)return e.flags&256?(Ke(e),e):(Ke(e),null)}return Ke(e),(e.flags&128)!==0?(e.lanes=a,e):(a=n!==null,t=t!==null&&t.memoizedState!==null,a&&(n=e.child,i=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(i=n.alternate.memoizedState.cachePool.pool),s=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),s!==i&&(n.flags|=2048)),a!==t&&a&&(e.child.flags|=8192),As(e,e.updateQueue),Gt(e),null);case 4:return Ut(),t===null&&oo(e.stateNode.containerInfo),Gt(e),null;case 10:return Qa(e.type),Gt(e),null;case 19:if(j(Wt),n=e.memoizedState,n===null)return Gt(e),null;if(i=(e.flags&128)!==0,s=n.rendering,s===null)if(i)lu(n,!1);else{if(Jt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(s=ms(t),s!==null){for(e.flags|=128,lu(n,!1),t=s.updateQueue,e.updateQueue=t,As(e,t),e.subtreeFlags=0,t=a,a=e.child;a!==null;)ld(a,t),a=a.sibling;return B(Wt,Wt.current&1|2),Ot&&Ha(e,n.treeForkCount),e.child}t=t.sibling}n.tail!==null&&Se()>Ms&&(e.flags|=128,i=!0,lu(n,!1),e.lanes=4194304)}else{if(!i)if(t=ms(s),t!==null){if(e.flags|=128,i=!0,t=t.updateQueue,e.updateQueue=t,As(e,t),lu(n,!0),n.tail===null&&n.tailMode==="hidden"&&!s.alternate&&!Ot)return Gt(e),null}else 2*Se()-n.renderingStartTime>Ms&&a!==536870912&&(e.flags|=128,i=!0,lu(n,!1),e.lanes=4194304);n.isBackwards?(s.sibling=e.child,e.child=s):(t=n.last,t!==null?t.sibling=s:e.child=s,n.last=s)}return n.tail!==null?(t=n.tail,n.rendering=t,n.tail=t.sibling,n.renderingStartTime=Se(),t.sibling=null,a=Wt.current,B(Wt,i?a&1|2:a&1),Ot&&Ha(e,n.treeForkCount),t):(Gt(e),null);case 22:case 23:return Ke(e),fr(),n=e.memoizedState!==null,t!==null?t.memoizedState!==null!==n&&(e.flags|=8192):n&&(e.flags|=8192),n?(a&536870912)!==0&&(e.flags&128)===0&&(Gt(e),e.subtreeFlags&6&&(e.flags|=8192)):Gt(e),a=e.updateQueue,a!==null&&As(e,a.retryQueue),a=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),n=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),n!==a&&(e.flags|=2048),t!==null&&j(nl),null;case 24:return a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),Qa(Pt),Gt(e),null;case 25:return null;case 30:return null}throw Error(c(156,e.tag))}function Zv(t,e){switch(Fc(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Qa(Pt),Ut(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Ra(e),null;case 31:if(e.memoizedState!==null){if(Ke(e),e.alternate===null)throw Error(c(340));tl()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Ke(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(c(340));tl()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return j(Wt),null;case 4:return Ut(),null;case 10:return Qa(e.type),null;case 22:case 23:return Ke(e),fr(),t!==null&&j(nl),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Qa(Pt),null;case 25:return null;default:return null}}function Rh(t,e){switch(Fc(e),e.tag){case 3:Qa(Pt),Ut();break;case 26:case 27:case 5:Ra(e);break;case 4:Ut();break;case 31:e.memoizedState!==null&&Ke(e);break;case 13:Ke(e);break;case 19:j(Wt);break;case 10:Qa(e.type);break;case 22:case 23:Ke(e),fr(),t!==null&&j(nl);break;case 24:Qa(Pt)}}function iu(t,e){try{var a=e.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var i=n.next;a=i;do{if((a.tag&t)===t){n=void 0;var s=a.create,o=a.inst;n=s(),o.destroy=n}a=a.next}while(a!==i)}}catch(d){Dt(e,e.return,d)}}function pn(t,e,a){try{var n=e.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var s=i.next;n=s;do{if((n.tag&t)===t){var o=n.inst,d=o.destroy;if(d!==void 0){o.destroy=void 0,i=e;var b=a,A=d;try{A()}catch(M){Dt(i,b,M)}}}n=n.next}while(n!==s)}}catch(M){Dt(e,e.return,M)}}function Mh(t){var e=t.updateQueue;if(e!==null){var a=t.stateNode;try{Ed(e,a)}catch(n){Dt(t,t.return,n)}}}function jh(t,e,a){a.props=cl(t.type,t.memoizedProps),a.state=t.memoizedState;try{a.componentWillUnmount()}catch(n){Dt(t,e,n)}}function uu(t,e){try{var a=t.ref;if(a!==null){switch(t.tag){case 26:case 27:case 5:var n=t.stateNode;break;case 30:n=t.stateNode;break;default:n=t.stateNode}typeof a=="function"?t.refCleanup=a(n):a.current=n}}catch(i){Dt(t,e,i)}}function za(t,e){var a=t.ref,n=t.refCleanup;if(a!==null)if(typeof n=="function")try{n()}catch(i){Dt(t,e,i)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(i){Dt(t,e,i)}else a.current=null}function Dh(t){var e=t.type,a=t.memoizedProps,n=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break t;case"img":a.src?n.src=a.src:a.srcSet&&(n.srcset=a.srcSet)}}catch(i){Dt(t,t.return,i)}}function Xr(t,e,a){try{var n=t.stateNode;hp(n,t.type,a,e),n[Ce]=e}catch(i){Dt(t,t.return,i)}}function Uh(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Tn(t.type)||t.tag===4}function Kr(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Uh(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Tn(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Zr(t,e,a){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(t,e):(e=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,e.appendChild(t),a=a._reactRootContainer,a!=null||e.onclick!==null||(e.onclick=Da));else if(n!==4&&(n===27&&Tn(t.type)&&(a=t.stateNode,e=null),t=t.child,t!==null))for(Zr(t,e,a),t=t.sibling;t!==null;)Zr(t,e,a),t=t.sibling}function _s(t,e,a){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?a.insertBefore(t,e):a.appendChild(t);else if(n!==4&&(n===27&&Tn(t.type)&&(a=t.stateNode),t=t.child,t!==null))for(_s(t,e,a),t=t.sibling;t!==null;)_s(t,e,a),t=t.sibling}function qh(t){var e=t.stateNode,a=t.memoizedProps;try{for(var n=t.type,i=e.attributes;i.length;)e.removeAttributeNode(i[0]);he(e,n,a),e[re]=t,e[Ce]=a}catch(s){Dt(t,t.return,s)}}var Ka=!1,ae=!1,Vr=!1,Hh=typeof WeakSet=="function"?WeakSet:Set,se=null;function Vv(t,e){if(t=t.containerInfo,mo=$s,t=$f(t),Qc(t)){if("selectionStart"in t)var a={start:t.selectionStart,end:t.selectionEnd};else t:{a=(a=t.ownerDocument)&&a.defaultView||window;var n=a.getSelection&&a.getSelection();if(n&&n.rangeCount!==0){a=n.anchorNode;var i=n.anchorOffset,s=n.focusNode;n=n.focusOffset;try{a.nodeType,s.nodeType}catch{a=null;break t}var o=0,d=-1,b=-1,A=0,M=0,H=t,w=null;e:for(;;){for(var R;H!==a||i!==0&&H.nodeType!==3||(d=o+i),H!==s||n!==0&&H.nodeType!==3||(b=o+n),H.nodeType===3&&(o+=H.nodeValue.length),(R=H.firstChild)!==null;)w=H,H=R;for(;;){if(H===t)break e;if(w===a&&++A===i&&(d=o),w===s&&++M===n&&(b=o),(R=H.nextSibling)!==null)break;H=w,w=H.parentNode}H=R}a=d===-1||b===-1?null:{start:d,end:b}}else a=null}a=a||{start:0,end:0}}else a=null;for(yo={focusedElem:t,selectionRange:a},$s=!1,se=e;se!==null;)if(e=se,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,se=t;else for(;se!==null;){switch(e=se,s=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(a=0;a<t.length;a++)i=t[a],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&s!==null){t=void 0,a=e,i=s.memoizedProps,s=s.memoizedState,n=a.stateNode;try{var et=cl(a.type,i);t=n.getSnapshotBeforeUpdate(et,s),n.__reactInternalSnapshotBeforeUpdate=t}catch(rt){Dt(a,a.return,rt)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,a=t.nodeType,a===9)go(t);else if(a===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":go(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(c(163))}if(t=e.sibling,t!==null){t.return=e.return,se=t;break}se=e.return}}function Bh(t,e,a){var n=a.flags;switch(a.tag){case 0:case 11:case 15:Va(t,a),n&4&&iu(5,a);break;case 1:if(Va(t,a),n&4)if(t=a.stateNode,e===null)try{t.componentDidMount()}catch(o){Dt(a,a.return,o)}else{var i=cl(a.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(i,e,t.__reactInternalSnapshotBeforeUpdate)}catch(o){Dt(a,a.return,o)}}n&64&&Mh(a),n&512&&uu(a,a.return);break;case 3:if(Va(t,a),n&64&&(t=a.updateQueue,t!==null)){if(e=null,a.child!==null)switch(a.child.tag){case 27:case 5:e=a.child.stateNode;break;case 1:e=a.child.stateNode}try{Ed(t,e)}catch(o){Dt(a,a.return,o)}}break;case 27:e===null&&n&4&&qh(a);case 26:case 5:Va(t,a),e===null&&n&4&&Dh(a),n&512&&uu(a,a.return);break;case 12:Va(t,a);break;case 31:Va(t,a),n&4&&Lh(t,a);break;case 13:Va(t,a),n&4&&Gh(t,a),n&64&&(t=a.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(a=ep.bind(null,a),Sp(t,a))));break;case 22:if(n=a.memoizedState!==null||Ka,!n){e=e!==null&&e.memoizedState!==null||ae,i=Ka;var s=ae;Ka=n,(ae=e)&&!s?ka(t,a,(a.subtreeFlags&8772)!==0):Va(t,a),Ka=i,ae=s}break;case 30:break;default:Va(t,a)}}function Qh(t){var e=t.alternate;e!==null&&(t.alternate=null,Qh(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Ec(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Zt=null,Re=!1;function Za(t,e,a){for(a=a.child;a!==null;)Yh(t,e,a),a=a.sibling}function Yh(t,e,a){if(Ee&&typeof Ee.onCommitFiberUnmount=="function")try{Ee.onCommitFiberUnmount(Zn,a)}catch{}switch(a.tag){case 26:ae||za(a,e),Za(t,e,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:ae||za(a,e);var n=Zt,i=Re;Tn(a.type)&&(Zt=a.stateNode,Re=!1),Za(t,e,a),yu(a.stateNode),Zt=n,Re=i;break;case 5:ae||za(a,e);case 6:if(n=Zt,i=Re,Zt=null,Za(t,e,a),Zt=n,Re=i,Zt!==null)if(Re)try{(Zt.nodeType===9?Zt.body:Zt.nodeName==="HTML"?Zt.ownerDocument.body:Zt).removeChild(a.stateNode)}catch(s){Dt(a,e,s)}else try{Zt.removeChild(a.stateNode)}catch(s){Dt(a,e,s)}break;case 18:Zt!==null&&(Re?(t=Zt,M0(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,a.stateNode),oi(t)):M0(Zt,a.stateNode));break;case 4:n=Zt,i=Re,Zt=a.stateNode.containerInfo,Re=!0,Za(t,e,a),Zt=n,Re=i;break;case 0:case 11:case 14:case 15:pn(2,a,e),ae||pn(4,a,e),Za(t,e,a);break;case 1:ae||(za(a,e),n=a.stateNode,typeof n.componentWillUnmount=="function"&&jh(a,e,n)),Za(t,e,a);break;case 21:Za(t,e,a);break;case 22:ae=(n=ae)||a.memoizedState!==null,Za(t,e,a),ae=n;break;default:Za(t,e,a)}}function Lh(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{oi(t)}catch(a){Dt(e,e.return,a)}}}function Gh(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{oi(t)}catch(a){Dt(e,e.return,a)}}function kv(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Hh),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Hh),e;default:throw Error(c(435,t.tag))}}function Cs(t,e){var a=kv(t);e.forEach(function(n){if(!a.has(n)){a.add(n);var i=ap.bind(null,t,n);n.then(i,i)}})}function Me(t,e){var a=e.deletions;if(a!==null)for(var n=0;n<a.length;n++){var i=a[n],s=t,o=e,d=o;t:for(;d!==null;){switch(d.tag){case 27:if(Tn(d.type)){Zt=d.stateNode,Re=!1;break t}break;case 5:Zt=d.stateNode,Re=!1;break t;case 3:case 4:Zt=d.stateNode.containerInfo,Re=!0;break t}d=d.return}if(Zt===null)throw Error(c(160));Yh(s,o,i),Zt=null,Re=!1,s=i.alternate,s!==null&&(s.return=null),i.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Xh(e,t),e=e.sibling}var ha=null;function Xh(t,e){var a=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Me(e,t),je(t),n&4&&(pn(3,t,t.return),iu(3,t),pn(5,t,t.return));break;case 1:Me(e,t),je(t),n&512&&(ae||a===null||za(a,a.return)),n&64&&Ka&&(t=t.updateQueue,t!==null&&(n=t.callbacks,n!==null&&(a=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=a===null?n:a.concat(n))));break;case 26:var i=ha;if(Me(e,t),je(t),n&512&&(ae||a===null||za(a,a.return)),n&4){var s=a!==null?a.memoizedState:null;if(n=t.memoizedState,a===null)if(n===null)if(t.stateNode===null){t:{n=t.type,a=t.memoizedProps,i=i.ownerDocument||i;e:switch(n){case"title":s=i.getElementsByTagName("title")[0],(!s||s[ji]||s[re]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=i.createElement(n),i.head.insertBefore(s,i.querySelector("head > title"))),he(s,n,a),s[re]=t,ue(s),n=s;break t;case"link":var o=X0("link","href",i).get(n+(a.href||""));if(o){for(var d=0;d<o.length;d++)if(s=o[d],s.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&s.getAttribute("rel")===(a.rel==null?null:a.rel)&&s.getAttribute("title")===(a.title==null?null:a.title)&&s.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){o.splice(d,1);break e}}s=i.createElement(n),he(s,n,a),i.head.appendChild(s);break;case"meta":if(o=X0("meta","content",i).get(n+(a.content||""))){for(d=0;d<o.length;d++)if(s=o[d],s.getAttribute("content")===(a.content==null?null:""+a.content)&&s.getAttribute("name")===(a.name==null?null:a.name)&&s.getAttribute("property")===(a.property==null?null:a.property)&&s.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&s.getAttribute("charset")===(a.charSet==null?null:a.charSet)){o.splice(d,1);break e}}s=i.createElement(n),he(s,n,a),i.head.appendChild(s);break;default:throw Error(c(468,n))}s[re]=t,ue(s),n=s}t.stateNode=n}else K0(i,t.type,t.stateNode);else t.stateNode=G0(i,n,t.memoizedProps);else s!==n?(s===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):s.count--,n===null?K0(i,t.type,t.stateNode):G0(i,n,t.memoizedProps)):n===null&&t.stateNode!==null&&Xr(t,t.memoizedProps,a.memoizedProps)}break;case 27:Me(e,t),je(t),n&512&&(ae||a===null||za(a,a.return)),a!==null&&n&4&&Xr(t,t.memoizedProps,a.memoizedProps);break;case 5:if(Me(e,t),je(t),n&512&&(ae||a===null||za(a,a.return)),t.flags&32){i=t.stateNode;try{jl(i,"")}catch(et){Dt(t,t.return,et)}}n&4&&t.stateNode!=null&&(i=t.memoizedProps,Xr(t,i,a!==null?a.memoizedProps:i)),n&1024&&(Vr=!0);break;case 6:if(Me(e,t),je(t),n&4){if(t.stateNode===null)throw Error(c(162));n=t.memoizedProps,a=t.stateNode;try{a.nodeValue=n}catch(et){Dt(t,t.return,et)}}break;case 3:if(Zs=null,i=ha,ha=Xs(e.containerInfo),Me(e,t),ha=i,je(t),n&4&&a!==null&&a.memoizedState.isDehydrated)try{oi(e.containerInfo)}catch(et){Dt(t,t.return,et)}Vr&&(Vr=!1,Kh(t));break;case 4:n=ha,ha=Xs(t.stateNode.containerInfo),Me(e,t),je(t),ha=n;break;case 12:Me(e,t),je(t);break;case 31:Me(e,t),je(t),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,Cs(t,n)));break;case 13:Me(e,t),je(t),t.child.flags&8192&&t.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Rs=Se()),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,Cs(t,n)));break;case 22:i=t.memoizedState!==null;var b=a!==null&&a.memoizedState!==null,A=Ka,M=ae;if(Ka=A||i,ae=M||b,Me(e,t),ae=M,Ka=A,je(t),n&8192)t:for(e=t.stateNode,e._visibility=i?e._visibility&-2:e._visibility|1,i&&(a===null||b||Ka||ae||rl(t)),a=null,e=t;;){if(e.tag===5||e.tag===26){if(a===null){b=a=e;try{if(s=b.stateNode,i)o=s.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{d=b.stateNode;var H=b.memoizedProps.style,w=H!=null&&H.hasOwnProperty("display")?H.display:null;d.style.display=w==null||typeof w=="boolean"?"":(""+w).trim()}}catch(et){Dt(b,b.return,et)}}}else if(e.tag===6){if(a===null){b=e;try{b.stateNode.nodeValue=i?"":b.memoizedProps}catch(et){Dt(b,b.return,et)}}}else if(e.tag===18){if(a===null){b=e;try{var R=b.stateNode;i?j0(R,!0):j0(b.stateNode,!1)}catch(et){Dt(b,b.return,et)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;a===e&&(a=null),e=e.return}a===e&&(a=null),e.sibling.return=e.return,e=e.sibling}n&4&&(n=t.updateQueue,n!==null&&(a=n.retryQueue,a!==null&&(n.retryQueue=null,Cs(t,a))));break;case 19:Me(e,t),je(t),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,Cs(t,n)));break;case 30:break;case 21:break;default:Me(e,t),je(t)}}function je(t){var e=t.flags;if(e&2){try{for(var a,n=t.return;n!==null;){if(Uh(n)){a=n;break}n=n.return}if(a==null)throw Error(c(160));switch(a.tag){case 27:var i=a.stateNode,s=Kr(t);_s(t,s,i);break;case 5:var o=a.stateNode;a.flags&32&&(jl(o,""),a.flags&=-33);var d=Kr(t);_s(t,d,o);break;case 3:case 4:var b=a.stateNode.containerInfo,A=Kr(t);Zr(t,A,b);break;default:throw Error(c(161))}}catch(M){Dt(t,t.return,M)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Kh(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Kh(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Va(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Bh(t,e.alternate,e),e=e.sibling}function rl(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:pn(4,e,e.return),rl(e);break;case 1:za(e,e.return);var a=e.stateNode;typeof a.componentWillUnmount=="function"&&jh(e,e.return,a),rl(e);break;case 27:yu(e.stateNode);case 26:case 5:za(e,e.return),rl(e);break;case 22:e.memoizedState===null&&rl(e);break;case 30:rl(e);break;default:rl(e)}t=t.sibling}}function ka(t,e,a){for(a=a&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var n=e.alternate,i=t,s=e,o=s.flags;switch(s.tag){case 0:case 11:case 15:ka(i,s,a),iu(4,s);break;case 1:if(ka(i,s,a),n=s,i=n.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(A){Dt(n,n.return,A)}if(n=s,i=n.updateQueue,i!==null){var d=n.stateNode;try{var b=i.shared.hiddenCallbacks;if(b!==null)for(i.shared.hiddenCallbacks=null,i=0;i<b.length;i++)Sd(b[i],d)}catch(A){Dt(n,n.return,A)}}a&&o&64&&Mh(s),uu(s,s.return);break;case 27:qh(s);case 26:case 5:ka(i,s,a),a&&n===null&&o&4&&Dh(s),uu(s,s.return);break;case 12:ka(i,s,a);break;case 31:ka(i,s,a),a&&o&4&&Lh(i,s);break;case 13:ka(i,s,a),a&&o&4&&Gh(i,s);break;case 22:s.memoizedState===null&&ka(i,s,a),uu(s,s.return);break;case 30:break;default:ka(i,s,a)}e=e.sibling}}function kr(t,e){var a=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==a&&(t!=null&&t.refCount++,a!=null&&Vi(a))}function Jr(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Vi(t))}function ma(t,e,a,n){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Zh(t,e,a,n),e=e.sibling}function Zh(t,e,a,n){var i=e.flags;switch(e.tag){case 0:case 11:case 15:ma(t,e,a,n),i&2048&&iu(9,e);break;case 1:ma(t,e,a,n);break;case 3:ma(t,e,a,n),i&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Vi(t)));break;case 12:if(i&2048){ma(t,e,a,n),t=e.stateNode;try{var s=e.memoizedProps,o=s.id,d=s.onPostCommit;typeof d=="function"&&d(o,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(b){Dt(e,e.return,b)}}else ma(t,e,a,n);break;case 31:ma(t,e,a,n);break;case 13:ma(t,e,a,n);break;case 23:break;case 22:s=e.stateNode,o=e.alternate,e.memoizedState!==null?s._visibility&2?ma(t,e,a,n):su(t,e):s._visibility&2?ma(t,e,a,n):(s._visibility|=2,Pl(t,e,a,n,(e.subtreeFlags&10256)!==0||!1)),i&2048&&kr(o,e);break;case 24:ma(t,e,a,n),i&2048&&Jr(e.alternate,e);break;default:ma(t,e,a,n)}}function Pl(t,e,a,n,i){for(i=i&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var s=t,o=e,d=a,b=n,A=o.flags;switch(o.tag){case 0:case 11:case 15:Pl(s,o,d,b,i),iu(8,o);break;case 23:break;case 22:var M=o.stateNode;o.memoizedState!==null?M._visibility&2?Pl(s,o,d,b,i):su(s,o):(M._visibility|=2,Pl(s,o,d,b,i)),i&&A&2048&&kr(o.alternate,o);break;case 24:Pl(s,o,d,b,i),i&&A&2048&&Jr(o.alternate,o);break;default:Pl(s,o,d,b,i)}e=e.sibling}}function su(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var a=t,n=e,i=n.flags;switch(n.tag){case 22:su(a,n),i&2048&&kr(n.alternate,n);break;case 24:su(a,n),i&2048&&Jr(n.alternate,n);break;default:su(a,n)}e=e.sibling}}var cu=8192;function ti(t,e,a){if(t.subtreeFlags&cu)for(t=t.child;t!==null;)Vh(t,e,a),t=t.sibling}function Vh(t,e,a){switch(t.tag){case 26:ti(t,e,a),t.flags&cu&&t.memoizedState!==null&&jp(a,ha,t.memoizedState,t.memoizedProps);break;case 5:ti(t,e,a);break;case 3:case 4:var n=ha;ha=Xs(t.stateNode.containerInfo),ti(t,e,a),ha=n;break;case 22:t.memoizedState===null&&(n=t.alternate,n!==null&&n.memoizedState!==null?(n=cu,cu=16777216,ti(t,e,a),cu=n):ti(t,e,a));break;default:ti(t,e,a)}}function kh(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function ru(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var a=0;a<e.length;a++){var n=e[a];se=n,$h(n,t)}kh(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Jh(t),t=t.sibling}function Jh(t){switch(t.tag){case 0:case 11:case 15:ru(t),t.flags&2048&&pn(9,t,t.return);break;case 3:ru(t);break;case 12:ru(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,ws(t)):ru(t);break;default:ru(t)}}function ws(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var a=0;a<e.length;a++){var n=e[a];se=n,$h(n,t)}kh(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:pn(8,e,e.return),ws(e);break;case 22:a=e.stateNode,a._visibility&2&&(a._visibility&=-3,ws(e));break;default:ws(e)}t=t.sibling}}function $h(t,e){for(;se!==null;){var a=se;switch(a.tag){case 0:case 11:case 15:pn(8,a,e);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var n=a.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:Vi(a.memoizedState.cache)}if(n=a.child,n!==null)n.return=a,se=n;else t:for(a=t;se!==null;){n=se;var i=n.sibling,s=n.return;if(Qh(n),n===a){se=null;break t}if(i!==null){i.return=s,se=i;break t}se=s}}}var Jv={getCacheForType:function(t){var e=fe(Pt),a=e.data.get(t);return a===void 0&&(a=t(),e.data.set(t,a)),a},cacheSignal:function(){return fe(Pt).controller.signal}},$v=typeof WeakMap=="function"?WeakMap:Map,wt=0,Qt=null,St=null,Tt=0,jt=0,Ze=null,gn=!1,ei=!1,$r=!1,Ja=0,Jt=0,bn=0,ol=0,Fr=0,Ve=0,ai=0,ou=null,De=null,Wr=!1,Rs=0,Fh=0,Ms=1/0,js=null,xn=null,ne=0,Sn=null,ni=null,$a=0,Ir=0,Pr=null,Wh=null,fu=0,to=null;function ke(){return(wt&2)!==0&&Tt!==0?Tt&-Tt:_.T!==null?uo():xc()}function Ih(){if(Ve===0)if((Tt&536870912)===0||Ot){var t=Nl;Nl<<=1,(Nl&3932160)===0&&(Nl=262144),Ve=t}else Ve=536870912;return t=Xe.current,t!==null&&(t.flags|=32),Ve}function Ue(t,e,a){(t===Qt&&(jt===2||jt===9)||t.cancelPendingCommit!==null)&&(li(t,0),En(t,Tt,Ve,!1)),Vt(t,a),((wt&2)===0||t!==Qt)&&(t===Qt&&((wt&2)===0&&(ol|=a),Jt===4&&En(t,Tt,Ve,!1)),Ta(t))}function Ph(t,e,a){if((wt&6)!==0)throw Error(c(327));var n=!a&&(e&127)===0&&(e&t.expiredLanes)===0||Kt(t,e),i=n?Iv(t,e):ao(t,e,!0),s=n;do{if(i===0){ei&&!n&&En(t,e,0,!1);break}else{if(a=t.current.alternate,s&&!Fv(a)){i=ao(t,e,!1),s=!1;continue}if(i===2){if(s=e,t.errorRecoveryDisabledLanes&s)var o=0;else o=t.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){e=o;t:{var d=t;i=ou;var b=d.current.memoizedState.isDehydrated;if(b&&(li(d,o).flags|=256),o=ao(d,o,!1),o!==2){if($r&&!b){d.errorRecoveryDisabledLanes|=s,ol|=s,i=4;break t}s=De,De=i,s!==null&&(De===null?De=s:De.push.apply(De,s))}i=o}if(s=!1,i!==2)continue}}if(i===1){li(t,0),En(t,e,0,!0);break}t:{switch(n=t,s=i,s){case 0:case 1:throw Error(c(345));case 4:if((e&4194048)!==e)break;case 6:En(n,e,Ve,!gn);break t;case 2:De=null;break;case 3:case 5:break;default:throw Error(c(329))}if((e&62914560)===e&&(i=Rs+300-Se(),10<i)){if(En(n,e,Ve,!gn),ht(n,0,!0)!==0)break t;$a=e,n.timeoutHandle=w0(t0.bind(null,n,a,De,js,Wr,e,Ve,ol,ai,gn,s,"Throttled",-0,0),i);break t}t0(n,a,De,js,Wr,e,Ve,ol,ai,gn,s,null,-0,0)}}break}while(!0);Ta(t)}function t0(t,e,a,n,i,s,o,d,b,A,M,H,w,R){if(t.timeoutHandle=-1,H=e.subtreeFlags,H&8192||(H&16785408)===16785408){H={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Da},Vh(e,s,H);var et=(s&62914560)===s?Rs-Se():(s&4194048)===s?Fh-Se():0;if(et=Dp(H,et),et!==null){$a=s,t.cancelPendingCommit=et(c0.bind(null,t,e,s,a,n,i,o,d,b,M,H,null,w,R)),En(t,s,o,!A);return}}c0(t,e,s,a,n,i,o,d,b)}function Fv(t){for(var e=t;;){var a=e.tag;if((a===0||a===11||a===15)&&e.flags&16384&&(a=e.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var n=0;n<a.length;n++){var i=a[n],s=i.getSnapshot;i=i.value;try{if(!Le(s(),i))return!1}catch{return!1}}if(a=e.child,e.subtreeFlags&16384&&a!==null)a.return=e,e=a;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function En(t,e,a,n){e&=~Fr,e&=~ol,t.suspendedLanes|=e,t.pingedLanes&=~e,n&&(t.warmLanes|=e),n=t.expirationTimes;for(var i=e;0<i;){var s=31-ye(i),o=1<<s;n[s]=-1,i&=~o}a!==0&&kn(t,a,e)}function Ds(){return(wt&6)===0?(du(0),!1):!0}function eo(){if(St!==null){if(jt===0)var t=St.return;else t=St,Ba=el=null,pr(t),Jl=null,Ji=0,t=St;for(;t!==null;)Rh(t.alternate,t),t=t.return;St=null}}function li(t,e){var a=t.timeoutHandle;a!==-1&&(t.timeoutHandle=-1,vp(a)),a=t.cancelPendingCommit,a!==null&&(t.cancelPendingCommit=null,a()),$a=0,eo(),Qt=t,St=a=qa(t.current,null),Tt=e,jt=0,Ze=null,gn=!1,ei=Kt(t,e),$r=!1,ai=Ve=Fr=ol=bn=Jt=0,De=ou=null,Wr=!1,(e&8)!==0&&(e|=e&32);var n=t.entangledLanes;if(n!==0)for(t=t.entanglements,n&=e;0<n;){var i=31-ye(n),s=1<<i;e|=t[i],n&=~s}return Ja=e,es(),a}function e0(t,e){vt=null,_.H=au,e===kl||e===rs?(e=pd(),jt=3):e===ir?(e=pd(),jt=4):jt=e===jr?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Ze=e,St===null&&(Jt=1,zs(t,ta(e,t.current)))}function a0(){var t=Xe.current;return t===null?!0:(Tt&4194048)===Tt?la===null:(Tt&62914560)===Tt||(Tt&536870912)!==0?t===la:!1}function n0(){var t=_.H;return _.H=au,t===null?au:t}function l0(){var t=_.A;return _.A=Jv,t}function Us(){Jt=4,gn||(Tt&4194048)!==Tt&&Xe.current!==null||(ei=!0),(bn&134217727)===0&&(ol&134217727)===0||Qt===null||En(Qt,Tt,Ve,!1)}function ao(t,e,a){var n=wt;wt|=2;var i=n0(),s=l0();(Qt!==t||Tt!==e)&&(js=null,li(t,e)),e=!1;var o=Jt;t:do try{if(jt!==0&&St!==null){var d=St,b=Ze;switch(jt){case 8:eo(),o=6;break t;case 3:case 2:case 9:case 6:Xe.current===null&&(e=!0);var A=jt;if(jt=0,Ze=null,ii(t,d,b,A),a&&ei){o=0;break t}break;default:A=jt,jt=0,Ze=null,ii(t,d,b,A)}}Wv(),o=Jt;break}catch(M){e0(t,M)}while(!0);return e&&t.shellSuspendCounter++,Ba=el=null,wt=n,_.H=i,_.A=s,St===null&&(Qt=null,Tt=0,es()),o}function Wv(){for(;St!==null;)i0(St)}function Iv(t,e){var a=wt;wt|=2;var n=n0(),i=l0();Qt!==t||Tt!==e?(js=null,Ms=Se()+500,li(t,e)):ei=Kt(t,e);t:do try{if(jt!==0&&St!==null){e=St;var s=Ze;e:switch(jt){case 1:jt=0,Ze=null,ii(t,e,s,1);break;case 2:case 9:if(yd(s)){jt=0,Ze=null,u0(e);break}e=function(){jt!==2&&jt!==9||Qt!==t||(jt=7),Ta(t)},s.then(e,e);break t;case 3:jt=7;break t;case 4:jt=5;break t;case 7:yd(s)?(jt=0,Ze=null,u0(e)):(jt=0,Ze=null,ii(t,e,s,7));break;case 5:var o=null;switch(St.tag){case 26:o=St.memoizedState;case 5:case 27:var d=St;if(o?Z0(o):d.stateNode.complete){jt=0,Ze=null;var b=d.sibling;if(b!==null)St=b;else{var A=d.return;A!==null?(St=A,qs(A)):St=null}break e}}jt=0,Ze=null,ii(t,e,s,5);break;case 6:jt=0,Ze=null,ii(t,e,s,6);break;case 8:eo(),Jt=6;break t;default:throw Error(c(462))}}Pv();break}catch(M){e0(t,M)}while(!0);return Ba=el=null,_.H=n,_.A=i,wt=a,St!==null?0:(Qt=null,Tt=0,es(),Jt)}function Pv(){for(;St!==null&&!xe();)i0(St)}function i0(t){var e=Ch(t.alternate,t,Ja);t.memoizedProps=t.pendingProps,e===null?qs(t):St=e}function u0(t){var e=t,a=e.alternate;switch(e.tag){case 15:case 0:e=zh(a,e,e.pendingProps,e.type,void 0,Tt);break;case 11:e=zh(a,e,e.pendingProps,e.type.render,e.ref,Tt);break;case 5:pr(e);default:Rh(a,e),e=St=ld(e,Ja),e=Ch(a,e,Ja)}t.memoizedProps=t.pendingProps,e===null?qs(t):St=e}function ii(t,e,a,n){Ba=el=null,pr(e),Jl=null,Ji=0;var i=e.return;try{if(Lv(t,i,e,a,Tt)){Jt=1,zs(t,ta(a,t.current)),St=null;return}}catch(s){if(i!==null)throw St=i,s;Jt=1,zs(t,ta(a,t.current)),St=null;return}e.flags&32768?(Ot||n===1?t=!0:ei||(Tt&536870912)!==0?t=!1:(gn=t=!0,(n===2||n===9||n===3||n===6)&&(n=Xe.current,n!==null&&n.tag===13&&(n.flags|=16384))),s0(e,t)):qs(e)}function qs(t){var e=t;do{if((e.flags&32768)!==0){s0(e,gn);return}t=e.return;var a=Kv(e.alternate,e,Ja);if(a!==null){St=a;return}if(e=e.sibling,e!==null){St=e;return}St=e=t}while(e!==null);Jt===0&&(Jt=5)}function s0(t,e){do{var a=Zv(t.alternate,t);if(a!==null){a.flags&=32767,St=a;return}if(a=t.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!e&&(t=t.sibling,t!==null)){St=t;return}St=t=a}while(t!==null);Jt=6,St=null}function c0(t,e,a,n,i,s,o,d,b){t.cancelPendingCommit=null;do Hs();while(ne!==0);if((wt&6)!==0)throw Error(c(327));if(e!==null){if(e===t.current)throw Error(c(177));if(s=e.lanes|e.childLanes,s|=Kc,Oe(t,a,s,o,d,b),t===Qt&&(St=Qt=null,Tt=0),ni=e,Sn=t,$a=a,Ir=s,Pr=i,Wh=n,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,np(Kn,function(){return h0(),null})):(t.callbackNode=null,t.callbackPriority=0),n=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||n){n=_.T,_.T=null,i=X.p,X.p=2,o=wt,wt|=4;try{Vv(t,e,a)}finally{wt=o,X.p=i,_.T=n}}ne=1,r0(),o0(),f0()}}function r0(){if(ne===1){ne=0;var t=Sn,e=ni,a=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||a){a=_.T,_.T=null;var n=X.p;X.p=2;var i=wt;wt|=4;try{Xh(e,t);var s=yo,o=$f(t.containerInfo),d=s.focusedElem,b=s.selectionRange;if(o!==d&&d&&d.ownerDocument&&Jf(d.ownerDocument.documentElement,d)){if(b!==null&&Qc(d)){var A=b.start,M=b.end;if(M===void 0&&(M=A),"selectionStart"in d)d.selectionStart=A,d.selectionEnd=Math.min(M,d.value.length);else{var H=d.ownerDocument||document,w=H&&H.defaultView||window;if(w.getSelection){var R=w.getSelection(),et=d.textContent.length,rt=Math.min(b.start,et),Bt=b.end===void 0?rt:Math.min(b.end,et);!R.extend&&rt>Bt&&(o=Bt,Bt=rt,rt=o);var T=kf(d,rt),z=kf(d,Bt);if(T&&z&&(R.rangeCount!==1||R.anchorNode!==T.node||R.anchorOffset!==T.offset||R.focusNode!==z.node||R.focusOffset!==z.offset)){var O=H.createRange();O.setStart(T.node,T.offset),R.removeAllRanges(),rt>Bt?(R.addRange(O),R.extend(z.node,z.offset)):(O.setEnd(z.node,z.offset),R.addRange(O))}}}}for(H=[],R=d;R=R.parentNode;)R.nodeType===1&&H.push({element:R,left:R.scrollLeft,top:R.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<H.length;d++){var q=H[d];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}$s=!!mo,yo=mo=null}finally{wt=i,X.p=n,_.T=a}}t.current=e,ne=2}}function o0(){if(ne===2){ne=0;var t=Sn,e=ni,a=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||a){a=_.T,_.T=null;var n=X.p;X.p=2;var i=wt;wt|=4;try{Bh(t,e.alternate,e)}finally{wt=i,X.p=n,_.T=a}}ne=3}}function f0(){if(ne===4||ne===3){ne=0,an();var t=Sn,e=ni,a=$a,n=Wh;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?ne=5:(ne=0,ni=Sn=null,d0(t,t.pendingLanes));var i=t.pendingLanes;if(i===0&&(xn=null),fa(a),e=e.stateNode,Ee&&typeof Ee.onCommitFiberRoot=="function")try{Ee.onCommitFiberRoot(Zn,e,void 0,(e.current.flags&128)===128)}catch{}if(n!==null){e=_.T,i=X.p,X.p=2,_.T=null;try{for(var s=t.onRecoverableError,o=0;o<n.length;o++){var d=n[o];s(d.value,{componentStack:d.stack})}}finally{_.T=e,X.p=i}}($a&3)!==0&&Hs(),Ta(t),i=t.pendingLanes,(a&261930)!==0&&(i&42)!==0?t===to?fu++:(fu=0,to=t):fu=0,du(0)}}function d0(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Vi(e)))}function Hs(){return r0(),o0(),f0(),h0()}function h0(){if(ne!==5)return!1;var t=Sn,e=Ir;Ir=0;var a=fa($a),n=_.T,i=X.p;try{X.p=32>a?32:a,_.T=null,a=Pr,Pr=null;var s=Sn,o=$a;if(ne=0,ni=Sn=null,$a=0,(wt&6)!==0)throw Error(c(331));var d=wt;if(wt|=4,Jh(s.current),Zh(s,s.current,o,a),wt=d,du(0,!1),Ee&&typeof Ee.onPostCommitFiberRoot=="function")try{Ee.onPostCommitFiberRoot(Zn,s)}catch{}return!0}finally{X.p=i,_.T=n,d0(t,e)}}function m0(t,e,a){e=ta(a,e),e=Mr(t.stateNode,e,2),t=mn(t,e,2),t!==null&&(Vt(t,2),Ta(t))}function Dt(t,e,a){if(t.tag===3)m0(t,t,a);else for(;e!==null;){if(e.tag===3){m0(e,t,a);break}else if(e.tag===1){var n=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(xn===null||!xn.has(n))){t=ta(a,t),a=yh(2),n=mn(e,a,2),n!==null&&(vh(a,n,e,t),Vt(n,2),Ta(n));break}}e=e.return}}function no(t,e,a){var n=t.pingCache;if(n===null){n=t.pingCache=new $v;var i=new Set;n.set(e,i)}else i=n.get(e),i===void 0&&(i=new Set,n.set(e,i));i.has(a)||($r=!0,i.add(a),t=tp.bind(null,t,e,a),e.then(t,t))}function tp(t,e,a){var n=t.pingCache;n!==null&&n.delete(e),t.pingedLanes|=t.suspendedLanes&a,t.warmLanes&=~a,Qt===t&&(Tt&a)===a&&(Jt===4||Jt===3&&(Tt&62914560)===Tt&&300>Se()-Rs?(wt&2)===0&&li(t,0):Fr|=a,ai===Tt&&(ai=0)),Ta(t)}function y0(t,e){e===0&&(e=ve()),t=In(t,e),t!==null&&(Vt(t,e),Ta(t))}function ep(t){var e=t.memoizedState,a=0;e!==null&&(a=e.retryLane),y0(t,a)}function ap(t,e){var a=0;switch(t.tag){case 31:case 13:var n=t.stateNode,i=t.memoizedState;i!==null&&(a=i.retryLane);break;case 19:n=t.stateNode;break;case 22:n=t.stateNode._retryCache;break;default:throw Error(c(314))}n!==null&&n.delete(e),y0(t,a)}function np(t,e){return Ci(t,e)}var Bs=null,ui=null,lo=!1,Qs=!1,io=!1,zn=0;function Ta(t){t!==ui&&t.next===null&&(ui===null?Bs=ui=t:ui=ui.next=t),Qs=!0,lo||(lo=!0,ip())}function du(t,e){if(!io&&Qs){io=!0;do for(var a=!1,n=Bs;n!==null;){if(t!==0){var i=n.pendingLanes;if(i===0)var s=0;else{var o=n.suspendedLanes,d=n.pingedLanes;s=(1<<31-ye(42|t)+1)-1,s&=i&~(o&~d),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(a=!0,b0(n,s))}else s=Tt,s=ht(n,n===Qt?s:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(s&3)===0||Kt(n,s)||(a=!0,b0(n,s));n=n.next}while(a);io=!1}}function lp(){v0()}function v0(){Qs=lo=!1;var t=0;zn!==0&&yp()&&(t=zn);for(var e=Se(),a=null,n=Bs;n!==null;){var i=n.next,s=p0(n,e);s===0?(n.next=null,a===null?Bs=i:a.next=i,i===null&&(ui=a)):(a=n,(t!==0||(s&3)!==0)&&(Qs=!0)),n=i}ne!==0&&ne!==5||du(t),zn!==0&&(zn=0)}function p0(t,e){for(var a=t.suspendedLanes,n=t.pingedLanes,i=t.expirationTimes,s=t.pendingLanes&-62914561;0<s;){var o=31-ye(s),d=1<<o,b=i[o];b===-1?((d&a)===0||(d&n)!==0)&&(i[o]=ie(d,e)):b<=e&&(t.expiredLanes|=d),s&=~d}if(e=Qt,a=Tt,a=ht(t,t===e?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n=t.callbackNode,a===0||t===e&&(jt===2||jt===9)||t.cancelPendingCommit!==null)return n!==null&&n!==null&&wi(n),t.callbackNode=null,t.callbackPriority=0;if((a&3)===0||Kt(t,a)){if(e=a&-a,e===t.callbackPriority)return e;switch(n!==null&&wi(n),fa(a)){case 2:case 8:a=Gu;break;case 32:a=Kn;break;case 268435456:a=Ma;break;default:a=Kn}return n=g0.bind(null,t),a=Ci(a,n),t.callbackPriority=e,t.callbackNode=a,e}return n!==null&&n!==null&&wi(n),t.callbackPriority=2,t.callbackNode=null,2}function g0(t,e){if(ne!==0&&ne!==5)return t.callbackNode=null,t.callbackPriority=0,null;var a=t.callbackNode;if(Hs()&&t.callbackNode!==a)return null;var n=Tt;return n=ht(t,t===Qt?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n===0?null:(Ph(t,n,e),p0(t,Se()),t.callbackNode!=null&&t.callbackNode===a?g0.bind(null,t):null)}function b0(t,e){if(Hs())return null;Ph(t,e,!0)}function ip(){pp(function(){(wt&6)!==0?Ci(Xn,lp):v0()})}function uo(){if(zn===0){var t=Zl;t===0&&(t=Tl,Tl<<=1,(Tl&261888)===0&&(Tl=256)),zn=t}return zn}function x0(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:ku(""+t)}function S0(t,e){var a=e.ownerDocument.createElement("input");return a.name=e.name,a.value=e.value,t.id&&a.setAttribute("form",t.id),e.parentNode.insertBefore(a,e),t=new FormData(t),a.parentNode.removeChild(a),t}function up(t,e,a,n,i){if(e==="submit"&&a&&a.stateNode===i){var s=x0((i[Ce]||null).action),o=n.submitter;o&&(e=(e=o[Ce]||null)?x0(e.formAction):o.getAttribute("formAction"),e!==null&&(s=e,o=null));var d=new Wu("action","action",null,n,i);t.push({event:d,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(zn!==0){var b=o?S0(i,o):new FormData(i);Or(a,{pending:!0,data:b,method:i.method,action:s},null,b)}}else typeof s=="function"&&(d.preventDefault(),b=o?S0(i,o):new FormData(i),Or(a,{pending:!0,data:b,method:i.method,action:s},s,b))},currentTarget:i}]})}}for(var so=0;so<Xc.length;so++){var co=Xc[so],sp=co.toLowerCase(),cp=co[0].toUpperCase()+co.slice(1);da(sp,"on"+cp)}da(If,"onAnimationEnd"),da(Pf,"onAnimationIteration"),da(td,"onAnimationStart"),da("dblclick","onDoubleClick"),da("focusin","onFocus"),da("focusout","onBlur"),da(Tv,"onTransitionRun"),da(Nv,"onTransitionStart"),da(Ov,"onTransitionCancel"),da(ed,"onTransitionEnd"),Rl("onMouseEnter",["mouseout","mouseover"]),Rl("onMouseLeave",["mouseout","mouseover"]),Rl("onPointerEnter",["pointerout","pointerover"]),Rl("onPointerLeave",["pointerout","pointerover"]),Jn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Jn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Jn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Jn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Jn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Jn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var hu="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(" "),rp=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(hu));function E0(t,e){e=(e&4)!==0;for(var a=0;a<t.length;a++){var n=t[a],i=n.event;n=n.listeners;t:{var s=void 0;if(e)for(var o=n.length-1;0<=o;o--){var d=n[o],b=d.instance,A=d.currentTarget;if(d=d.listener,b!==s&&i.isPropagationStopped())break t;s=d,i.currentTarget=A;try{s(i)}catch(M){ts(M)}i.currentTarget=null,s=b}else for(o=0;o<n.length;o++){if(d=n[o],b=d.instance,A=d.currentTarget,d=d.listener,b!==s&&i.isPropagationStopped())break t;s=d,i.currentTarget=A;try{s(i)}catch(M){ts(M)}i.currentTarget=null,s=b}}}}function Et(t,e){var a=e[Sc];a===void 0&&(a=e[Sc]=new Set);var n=t+"__bubble";a.has(n)||(z0(e,t,2,!1),a.add(n))}function ro(t,e,a){var n=0;e&&(n|=4),z0(a,t,n,e)}var Ys="_reactListening"+Math.random().toString(36).slice(2);function oo(t){if(!t[Ys]){t[Ys]=!0,vf.forEach(function(a){a!=="selectionchange"&&(rp.has(a)||ro(a,!1,t),ro(a,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Ys]||(e[Ys]=!0,ro("selectionchange",!1,e))}}function z0(t,e,a,n){switch(I0(e)){case 2:var i=Hp;break;case 8:i=Bp;break;default:i=Oo}a=i.bind(null,e,a,t),i=void 0,!wc||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(i=!0),n?i!==void 0?t.addEventListener(e,a,{capture:!0,passive:i}):t.addEventListener(e,a,!0):i!==void 0?t.addEventListener(e,a,{passive:i}):t.addEventListener(e,a,!1)}function fo(t,e,a,n,i){var s=n;if((e&1)===0&&(e&2)===0&&n!==null)t:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var d=n.stateNode.containerInfo;if(d===i)break;if(o===4)for(o=n.return;o!==null;){var b=o.tag;if((b===3||b===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;d!==null;){if(o=_l(d),o===null)return;if(b=o.tag,b===5||b===6||b===26||b===27){n=s=o;continue t}d=d.parentNode}}n=n.return}_f(function(){var A=s,M=_c(a),H=[];t:{var w=ad.get(t);if(w!==void 0){var R=Wu,et=t;switch(t){case"keypress":if($u(a)===0)break t;case"keydown":case"keyup":R=av;break;case"focusin":et="focus",R=Dc;break;case"focusout":et="blur",R=Dc;break;case"beforeblur":case"afterblur":R=Dc;break;case"click":if(a.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":R=Rf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":R=Ky;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":R=iv;break;case If:case Pf:case td:R=ky;break;case ed:R=sv;break;case"scroll":case"scrollend":R=Gy;break;case"wheel":R=rv;break;case"copy":case"cut":case"paste":R=$y;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":R=jf;break;case"toggle":case"beforetoggle":R=fv}var rt=(e&4)!==0,Bt=!rt&&(t==="scroll"||t==="scrollend"),T=rt?w!==null?w+"Capture":null:w;rt=[];for(var z=A,O;z!==null;){var q=z;if(O=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||O===null||T===null||(q=Ui(z,T),q!=null&&rt.push(mu(z,q,O))),Bt)break;z=z.return}0<rt.length&&(w=new R(w,et,null,a,M),H.push({event:w,listeners:rt}))}}if((e&7)===0){t:{if(w=t==="mouseover"||t==="pointerover",R=t==="mouseout"||t==="pointerout",w&&a!==Ac&&(et=a.relatedTarget||a.fromElement)&&(_l(et)||et[Al]))break t;if((R||w)&&(w=M.window===M?M:(w=M.ownerDocument)?w.defaultView||w.parentWindow:window,R?(et=a.relatedTarget||a.toElement,R=A,et=et?_l(et):null,et!==null&&(Bt=h(et),rt=et.tag,et!==Bt||rt!==5&&rt!==27&&rt!==6)&&(et=null)):(R=null,et=A),R!==et)){if(rt=Rf,q="onMouseLeave",T="onMouseEnter",z="mouse",(t==="pointerout"||t==="pointerover")&&(rt=jf,q="onPointerLeave",T="onPointerEnter",z="pointer"),Bt=R==null?w:Di(R),O=et==null?w:Di(et),w=new rt(q,z+"leave",R,a,M),w.target=Bt,w.relatedTarget=O,q=null,_l(M)===A&&(rt=new rt(T,z+"enter",et,a,M),rt.target=O,rt.relatedTarget=Bt,q=rt),Bt=q,R&&et)e:{for(rt=op,T=R,z=et,O=0,q=T;q;q=rt(q))O++;q=0;for(var ut=z;ut;ut=rt(ut))q++;for(;0<O-q;)T=rt(T),O--;for(;0<q-O;)z=rt(z),q--;for(;O--;){if(T===z||z!==null&&T===z.alternate){rt=T;break e}T=rt(T),z=rt(z)}rt=null}else rt=null;R!==null&&T0(H,w,R,rt,!1),et!==null&&Bt!==null&&T0(H,Bt,et,rt,!0)}}t:{if(w=A?Di(A):window,R=w.nodeName&&w.nodeName.toLowerCase(),R==="select"||R==="input"&&w.type==="file")var _t=Lf;else if(Qf(w))if(Gf)_t=Sv;else{_t=bv;var lt=gv}else R=w.nodeName,!R||R.toLowerCase()!=="input"||w.type!=="checkbox"&&w.type!=="radio"?A&&Oc(A.elementType)&&(_t=Lf):_t=xv;if(_t&&(_t=_t(t,A))){Yf(H,_t,a,M);break t}lt&&lt(t,w,A),t==="focusout"&&A&&w.type==="number"&&A.memoizedProps.value!=null&&Nc(w,"number",w.value)}switch(lt=A?Di(A):window,t){case"focusin":(Qf(lt)||lt.contentEditable==="true")&&(Hl=lt,Yc=A,Xi=null);break;case"focusout":Xi=Yc=Hl=null;break;case"mousedown":Lc=!0;break;case"contextmenu":case"mouseup":case"dragend":Lc=!1,Ff(H,a,M);break;case"selectionchange":if(zv)break;case"keydown":case"keyup":Ff(H,a,M)}var gt;if(qc)t:{switch(t){case"compositionstart":var Nt="onCompositionStart";break t;case"compositionend":Nt="onCompositionEnd";break t;case"compositionupdate":Nt="onCompositionUpdate";break t}Nt=void 0}else ql?Hf(t,a)&&(Nt="onCompositionEnd"):t==="keydown"&&a.keyCode===229&&(Nt="onCompositionStart");Nt&&(Df&&a.locale!=="ko"&&(ql||Nt!=="onCompositionStart"?Nt==="onCompositionEnd"&&ql&&(gt=Cf()):(sn=M,Rc="value"in sn?sn.value:sn.textContent,ql=!0)),lt=Ls(A,Nt),0<lt.length&&(Nt=new Mf(Nt,t,null,a,M),H.push({event:Nt,listeners:lt}),gt?Nt.data=gt:(gt=Bf(a),gt!==null&&(Nt.data=gt)))),(gt=hv?mv(t,a):yv(t,a))&&(Nt=Ls(A,"onBeforeInput"),0<Nt.length&&(lt=new Mf("onBeforeInput","beforeinput",null,a,M),H.push({event:lt,listeners:Nt}),lt.data=gt)),up(H,t,A,a,M)}E0(H,e)})}function mu(t,e,a){return{instance:t,listener:e,currentTarget:a}}function Ls(t,e){for(var a=e+"Capture",n=[];t!==null;){var i=t,s=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||s===null||(i=Ui(t,a),i!=null&&n.unshift(mu(t,i,s)),i=Ui(t,e),i!=null&&n.push(mu(t,i,s))),t.tag===3)return n;t=t.return}return[]}function op(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function T0(t,e,a,n,i){for(var s=e._reactName,o=[];a!==null&&a!==n;){var d=a,b=d.alternate,A=d.stateNode;if(d=d.tag,b!==null&&b===n)break;d!==5&&d!==26&&d!==27||A===null||(b=A,i?(A=Ui(a,s),A!=null&&o.unshift(mu(a,A,b))):i||(A=Ui(a,s),A!=null&&o.push(mu(a,A,b)))),a=a.return}o.length!==0&&t.push({event:e,listeners:o})}var fp=/\r\n?/g,dp=/\u0000|\uFFFD/g;function N0(t){return(typeof t=="string"?t:""+t).replace(fp,`
49
+ `).replace(dp,"")}function O0(t,e){return e=N0(e),N0(t)===e}function Ht(t,e,a,n,i,s){switch(a){case"children":typeof n=="string"?e==="body"||e==="textarea"&&n===""||jl(t,n):(typeof n=="number"||typeof n=="bigint")&&e!=="body"&&jl(t,""+n);break;case"className":Zu(t,"class",n);break;case"tabIndex":Zu(t,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":Zu(t,a,n);break;case"style":Of(t,n,s);break;case"data":if(e!=="object"){Zu(t,"data",n);break}case"src":case"href":if(n===""&&(e!=="a"||a!=="href")){t.removeAttribute(a);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(a);break}n=ku(""+n),t.setAttribute(a,n);break;case"action":case"formAction":if(typeof n=="function"){t.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof s=="function"&&(a==="formAction"?(e!=="input"&&Ht(t,e,"name",i.name,i,null),Ht(t,e,"formEncType",i.formEncType,i,null),Ht(t,e,"formMethod",i.formMethod,i,null),Ht(t,e,"formTarget",i.formTarget,i,null)):(Ht(t,e,"encType",i.encType,i,null),Ht(t,e,"method",i.method,i,null),Ht(t,e,"target",i.target,i,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(a);break}n=ku(""+n),t.setAttribute(a,n);break;case"onClick":n!=null&&(t.onclick=Da);break;case"onScroll":n!=null&&Et("scroll",t);break;case"onScrollEnd":n!=null&&Et("scrollend",t);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(c(61));if(a=n.__html,a!=null){if(i.children!=null)throw Error(c(60));t.innerHTML=a}}break;case"multiple":t.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":t.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){t.removeAttribute("xlink:href");break}a=ku(""+n),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(a,""+n):t.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(a,""):t.removeAttribute(a);break;case"capture":case"download":n===!0?t.setAttribute(a,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(a,n):t.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?t.setAttribute(a,n):t.removeAttribute(a);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?t.removeAttribute(a):t.setAttribute(a,n);break;case"popover":Et("beforetoggle",t),Et("toggle",t),Ku(t,"popover",n);break;case"xlinkActuate":ja(t,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":ja(t,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":ja(t,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":ja(t,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":ja(t,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":ja(t,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":ja(t,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":ja(t,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":ja(t,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":Ku(t,"is",n);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Yy.get(a)||a,Ku(t,a,n))}}function ho(t,e,a,n,i,s){switch(a){case"style":Of(t,n,s);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(c(61));if(a=n.__html,a!=null){if(i.children!=null)throw Error(c(60));t.innerHTML=a}}break;case"children":typeof n=="string"?jl(t,n):(typeof n=="number"||typeof n=="bigint")&&jl(t,""+n);break;case"onScroll":n!=null&&Et("scroll",t);break;case"onScrollEnd":n!=null&&Et("scrollend",t);break;case"onClick":n!=null&&(t.onclick=Da);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!pf.hasOwnProperty(a))t:{if(a[0]==="o"&&a[1]==="n"&&(i=a.endsWith("Capture"),e=a.slice(2,i?a.length-7:void 0),s=t[Ce]||null,s=s!=null?s[a]:null,typeof s=="function"&&t.removeEventListener(e,s,i),typeof n=="function")){typeof s!="function"&&s!==null&&(a in t?t[a]=null:t.hasAttribute(a)&&t.removeAttribute(a)),t.addEventListener(e,n,i);break t}a in t?t[a]=n:n===!0?t.setAttribute(a,""):Ku(t,a,n)}}}function he(t,e,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Et("error",t),Et("load",t);var n=!1,i=!1,s;for(s in a)if(a.hasOwnProperty(s)){var o=a[s];if(o!=null)switch(s){case"src":n=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,e));default:Ht(t,e,s,o,a,null)}}i&&Ht(t,e,"srcSet",a.srcSet,a,null),n&&Ht(t,e,"src",a.src,a,null);return;case"input":Et("invalid",t);var d=s=o=i=null,b=null,A=null;for(n in a)if(a.hasOwnProperty(n)){var M=a[n];if(M!=null)switch(n){case"name":i=M;break;case"type":o=M;break;case"checked":b=M;break;case"defaultChecked":A=M;break;case"value":s=M;break;case"defaultValue":d=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(c(137,e));break;default:Ht(t,e,n,M,a,null)}}Ef(t,s,d,b,A,o,i,!1);return;case"select":Et("invalid",t),n=o=s=null;for(i in a)if(a.hasOwnProperty(i)&&(d=a[i],d!=null))switch(i){case"value":s=d;break;case"defaultValue":o=d;break;case"multiple":n=d;default:Ht(t,e,i,d,a,null)}e=s,a=o,t.multiple=!!n,e!=null?Ml(t,!!n,e,!1):a!=null&&Ml(t,!!n,a,!0);return;case"textarea":Et("invalid",t),s=i=n=null;for(o in a)if(a.hasOwnProperty(o)&&(d=a[o],d!=null))switch(o){case"value":n=d;break;case"defaultValue":i=d;break;case"children":s=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(c(91));break;default:Ht(t,e,o,d,a,null)}Tf(t,n,i,s);return;case"option":for(b in a)if(a.hasOwnProperty(b)&&(n=a[b],n!=null))switch(b){case"selected":t.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:Ht(t,e,b,n,a,null)}return;case"dialog":Et("beforetoggle",t),Et("toggle",t),Et("cancel",t),Et("close",t);break;case"iframe":case"object":Et("load",t);break;case"video":case"audio":for(n=0;n<hu.length;n++)Et(hu[n],t);break;case"image":Et("error",t),Et("load",t);break;case"details":Et("toggle",t);break;case"embed":case"source":case"link":Et("error",t),Et("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(A in a)if(a.hasOwnProperty(A)&&(n=a[A],n!=null))switch(A){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,e));default:Ht(t,e,A,n,a,null)}return;default:if(Oc(e)){for(M in a)a.hasOwnProperty(M)&&(n=a[M],n!==void 0&&ho(t,e,M,n,a,void 0));return}}for(d in a)a.hasOwnProperty(d)&&(n=a[d],n!=null&&Ht(t,e,d,n,a,null))}function hp(t,e,a,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,s=null,o=null,d=null,b=null,A=null,M=null;for(R in a){var H=a[R];if(a.hasOwnProperty(R)&&H!=null)switch(R){case"checked":break;case"value":break;case"defaultValue":b=H;default:n.hasOwnProperty(R)||Ht(t,e,R,null,n,H)}}for(var w in n){var R=n[w];if(H=a[w],n.hasOwnProperty(w)&&(R!=null||H!=null))switch(w){case"type":s=R;break;case"name":i=R;break;case"checked":A=R;break;case"defaultChecked":M=R;break;case"value":o=R;break;case"defaultValue":d=R;break;case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(c(137,e));break;default:R!==H&&Ht(t,e,w,R,n,H)}}Tc(t,o,d,b,A,M,s,i);return;case"select":R=o=d=w=null;for(s in a)if(b=a[s],a.hasOwnProperty(s)&&b!=null)switch(s){case"value":break;case"multiple":R=b;default:n.hasOwnProperty(s)||Ht(t,e,s,null,n,b)}for(i in n)if(s=n[i],b=a[i],n.hasOwnProperty(i)&&(s!=null||b!=null))switch(i){case"value":w=s;break;case"defaultValue":d=s;break;case"multiple":o=s;default:s!==b&&Ht(t,e,i,s,n,b)}e=d,a=o,n=R,w!=null?Ml(t,!!a,w,!1):!!n!=!!a&&(e!=null?Ml(t,!!a,e,!0):Ml(t,!!a,a?[]:"",!1));return;case"textarea":R=w=null;for(d in a)if(i=a[d],a.hasOwnProperty(d)&&i!=null&&!n.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:Ht(t,e,d,null,n,i)}for(o in n)if(i=n[o],s=a[o],n.hasOwnProperty(o)&&(i!=null||s!=null))switch(o){case"value":w=i;break;case"defaultValue":R=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(c(91));break;default:i!==s&&Ht(t,e,o,i,n,s)}zf(t,w,R);return;case"option":for(var et in a)if(w=a[et],a.hasOwnProperty(et)&&w!=null&&!n.hasOwnProperty(et))switch(et){case"selected":t.selected=!1;break;default:Ht(t,e,et,null,n,w)}for(b in n)if(w=n[b],R=a[b],n.hasOwnProperty(b)&&w!==R&&(w!=null||R!=null))switch(b){case"selected":t.selected=w&&typeof w!="function"&&typeof w!="symbol";break;default:Ht(t,e,b,w,n,R)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var rt in a)w=a[rt],a.hasOwnProperty(rt)&&w!=null&&!n.hasOwnProperty(rt)&&Ht(t,e,rt,null,n,w);for(A in n)if(w=n[A],R=a[A],n.hasOwnProperty(A)&&w!==R&&(w!=null||R!=null))switch(A){case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(c(137,e));break;default:Ht(t,e,A,w,n,R)}return;default:if(Oc(e)){for(var Bt in a)w=a[Bt],a.hasOwnProperty(Bt)&&w!==void 0&&!n.hasOwnProperty(Bt)&&ho(t,e,Bt,void 0,n,w);for(M in n)w=n[M],R=a[M],!n.hasOwnProperty(M)||w===R||w===void 0&&R===void 0||ho(t,e,M,w,n,R);return}}for(var T in a)w=a[T],a.hasOwnProperty(T)&&w!=null&&!n.hasOwnProperty(T)&&Ht(t,e,T,null,n,w);for(H in n)w=n[H],R=a[H],!n.hasOwnProperty(H)||w===R||w==null&&R==null||Ht(t,e,H,w,n,R)}function A0(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function mp(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,a=performance.getEntriesByType("resource"),n=0;n<a.length;n++){var i=a[n],s=i.transferSize,o=i.initiatorType,d=i.duration;if(s&&d&&A0(o)){for(o=0,d=i.responseEnd,n+=1;n<a.length;n++){var b=a[n],A=b.startTime;if(A>d)break;var M=b.transferSize,H=b.initiatorType;M&&A0(H)&&(b=b.responseEnd,o+=M*(b<d?1:(d-A)/(b-A)))}if(--n,e+=8*(s+o)/(i.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var mo=null,yo=null;function Gs(t){return t.nodeType===9?t:t.ownerDocument}function _0(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function C0(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function vo(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var po=null;function yp(){var t=window.event;return t&&t.type==="popstate"?t===po?!1:(po=t,!0):(po=null,!1)}var w0=typeof setTimeout=="function"?setTimeout:void 0,vp=typeof clearTimeout=="function"?clearTimeout:void 0,R0=typeof Promise=="function"?Promise:void 0,pp=typeof queueMicrotask=="function"?queueMicrotask:typeof R0<"u"?function(t){return R0.resolve(null).then(t).catch(gp)}:w0;function gp(t){setTimeout(function(){throw t})}function Tn(t){return t==="head"}function M0(t,e){var a=e,n=0;do{var i=a.nextSibling;if(t.removeChild(a),i&&i.nodeType===8)if(a=i.data,a==="/$"||a==="/&"){if(n===0){t.removeChild(i),oi(e);return}n--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")n++;else if(a==="html")yu(t.ownerDocument.documentElement);else if(a==="head"){a=t.ownerDocument.head,yu(a);for(var s=a.firstChild;s;){var o=s.nextSibling,d=s.nodeName;s[ji]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&s.rel.toLowerCase()==="stylesheet"||a.removeChild(s),s=o}}else a==="body"&&yu(t.ownerDocument.body);a=i}while(a);oi(e)}function j0(t,e){var a=t;t=0;do{var n=a.nextSibling;if(a.nodeType===1?e?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(e?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),n&&n.nodeType===8)if(a=n.data,a==="/$"){if(t===0)break;t--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||t++;a=n}while(a)}function go(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var a=e;switch(e=e.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":go(a),Ec(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}t.removeChild(a)}}function bp(t,e,a,n){for(;t.nodeType===1;){var i=a;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!n&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(n){if(!t[ji])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(s=t.getAttribute("rel"),s==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(s!==i.rel||t.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||t.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||t.getAttribute("title")!==(i.title==null?null:i.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(s=t.getAttribute("src"),(s!==(i.src==null?null:i.src)||t.getAttribute("type")!==(i.type==null?null:i.type)||t.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&s&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var s=i.name==null?null:""+i.name;if(i.type==="hidden"&&t.getAttribute("name")===s)return t}else return t;if(t=ia(t.nextSibling),t===null)break}return null}function xp(t,e,a){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=ia(t.nextSibling),t===null))return null;return t}function D0(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=ia(t.nextSibling),t===null))return null;return t}function bo(t){return t.data==="$?"||t.data==="$~"}function xo(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Sp(t,e){var a=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||a.readyState!=="loading")e();else{var n=function(){e(),a.removeEventListener("DOMContentLoaded",n)};a.addEventListener("DOMContentLoaded",n),t._reactRetry=n}}function ia(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var So=null;function U0(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var a=t.data;if(a==="/$"||a==="/&"){if(e===0)return ia(t.nextSibling);e--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||e++}t=t.nextSibling}return null}function q0(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var a=t.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(e===0)return t;e--}else a!=="/$"&&a!=="/&"||e++}t=t.previousSibling}return null}function H0(t,e,a){switch(e=Gs(a),t){case"html":if(t=e.documentElement,!t)throw Error(c(452));return t;case"head":if(t=e.head,!t)throw Error(c(453));return t;case"body":if(t=e.body,!t)throw Error(c(454));return t;default:throw Error(c(451))}}function yu(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Ec(t)}var ua=new Map,B0=new Set;function Xs(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Fa=X.d;X.d={f:Ep,r:zp,D:Tp,C:Np,L:Op,m:Ap,X:Cp,S:_p,M:wp};function Ep(){var t=Fa.f(),e=Ds();return t||e}function zp(t){var e=Cl(t);e!==null&&e.tag===5&&e.type==="form"?eh(e):Fa.r(t)}var si=typeof document>"u"?null:document;function Q0(t,e,a){var n=si;if(n&&typeof e=="string"&&e){var i=Ie(e);i='link[rel="'+t+'"][href="'+i+'"]',typeof a=="string"&&(i+='[crossorigin="'+a+'"]'),B0.has(i)||(B0.add(i),t={rel:t,crossOrigin:a,href:e},n.querySelector(i)===null&&(e=n.createElement("link"),he(e,"link",t),ue(e),n.head.appendChild(e)))}}function Tp(t){Fa.D(t),Q0("dns-prefetch",t,null)}function Np(t,e){Fa.C(t,e),Q0("preconnect",t,e)}function Op(t,e,a){Fa.L(t,e,a);var n=si;if(n&&t&&e){var i='link[rel="preload"][as="'+Ie(e)+'"]';e==="image"&&a&&a.imageSrcSet?(i+='[imagesrcset="'+Ie(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(i+='[imagesizes="'+Ie(a.imageSizes)+'"]')):i+='[href="'+Ie(t)+'"]';var s=i;switch(e){case"style":s=ci(t);break;case"script":s=ri(t)}ua.has(s)||(t=v({rel:"preload",href:e==="image"&&a&&a.imageSrcSet?void 0:t,as:e},a),ua.set(s,t),n.querySelector(i)!==null||e==="style"&&n.querySelector(vu(s))||e==="script"&&n.querySelector(pu(s))||(e=n.createElement("link"),he(e,"link",t),ue(e),n.head.appendChild(e)))}}function Ap(t,e){Fa.m(t,e);var a=si;if(a&&t){var n=e&&typeof e.as=="string"?e.as:"script",i='link[rel="modulepreload"][as="'+Ie(n)+'"][href="'+Ie(t)+'"]',s=i;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=ri(t)}if(!ua.has(s)&&(t=v({rel:"modulepreload",href:t},e),ua.set(s,t),a.querySelector(i)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(pu(s)))return}n=a.createElement("link"),he(n,"link",t),ue(n),a.head.appendChild(n)}}}function _p(t,e,a){Fa.S(t,e,a);var n=si;if(n&&t){var i=wl(n).hoistableStyles,s=ci(t);e=e||"default";var o=i.get(s);if(!o){var d={loading:0,preload:null};if(o=n.querySelector(vu(s)))d.loading=5;else{t=v({rel:"stylesheet",href:t,"data-precedence":e},a),(a=ua.get(s))&&Eo(t,a);var b=o=n.createElement("link");ue(b),he(b,"link",t),b._p=new Promise(function(A,M){b.onload=A,b.onerror=M}),b.addEventListener("load",function(){d.loading|=1}),b.addEventListener("error",function(){d.loading|=2}),d.loading|=4,Ks(o,e,n)}o={type:"stylesheet",instance:o,count:1,state:d},i.set(s,o)}}}function Cp(t,e){Fa.X(t,e);var a=si;if(a&&t){var n=wl(a).hoistableScripts,i=ri(t),s=n.get(i);s||(s=a.querySelector(pu(i)),s||(t=v({src:t,async:!0},e),(e=ua.get(i))&&zo(t,e),s=a.createElement("script"),ue(s),he(s,"link",t),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},n.set(i,s))}}function wp(t,e){Fa.M(t,e);var a=si;if(a&&t){var n=wl(a).hoistableScripts,i=ri(t),s=n.get(i);s||(s=a.querySelector(pu(i)),s||(t=v({src:t,async:!0,type:"module"},e),(e=ua.get(i))&&zo(t,e),s=a.createElement("script"),ue(s),he(s,"link",t),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},n.set(i,s))}}function Y0(t,e,a,n){var i=(i=at.current)?Xs(i):null;if(!i)throw Error(c(446));switch(t){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(e=ci(a.href),a=wl(i).hoistableStyles,n=a.get(e),n||(n={type:"style",instance:null,count:0,state:null},a.set(e,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){t=ci(a.href);var s=wl(i).hoistableStyles,o=s.get(t);if(o||(i=i.ownerDocument||i,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(t,o),(s=i.querySelector(vu(t)))&&!s._p&&(o.instance=s,o.state.loading=5),ua.has(t)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},ua.set(t,a),s||Rp(i,t,a,o.state))),e&&n===null)throw Error(c(528,""));return o}if(e&&n!==null)throw Error(c(529,""));return null;case"script":return e=a.async,a=a.src,typeof a=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=ri(a),a=wl(i).hoistableScripts,n=a.get(e),n||(n={type:"script",instance:null,count:0,state:null},a.set(e,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,t))}}function ci(t){return'href="'+Ie(t)+'"'}function vu(t){return'link[rel="stylesheet"]['+t+"]"}function L0(t){return v({},t,{"data-precedence":t.precedence,precedence:null})}function Rp(t,e,a,n){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?n.loading=1:(e=t.createElement("link"),n.preload=e,e.addEventListener("load",function(){return n.loading|=1}),e.addEventListener("error",function(){return n.loading|=2}),he(e,"link",a),ue(e),t.head.appendChild(e))}function ri(t){return'[src="'+Ie(t)+'"]'}function pu(t){return"script[async]"+t}function G0(t,e,a){if(e.count++,e.instance===null)switch(e.type){case"style":var n=t.querySelector('style[data-href~="'+Ie(a.href)+'"]');if(n)return e.instance=n,ue(n),n;var i=v({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return n=(t.ownerDocument||t).createElement("style"),ue(n),he(n,"style",i),Ks(n,a.precedence,t),e.instance=n;case"stylesheet":i=ci(a.href);var s=t.querySelector(vu(i));if(s)return e.state.loading|=4,e.instance=s,ue(s),s;n=L0(a),(i=ua.get(i))&&Eo(n,i),s=(t.ownerDocument||t).createElement("link"),ue(s);var o=s;return o._p=new Promise(function(d,b){o.onload=d,o.onerror=b}),he(s,"link",n),e.state.loading|=4,Ks(s,a.precedence,t),e.instance=s;case"script":return s=ri(a.src),(i=t.querySelector(pu(s)))?(e.instance=i,ue(i),i):(n=a,(i=ua.get(s))&&(n=v({},a),zo(n,i)),t=t.ownerDocument||t,i=t.createElement("script"),ue(i),he(i,"link",n),t.head.appendChild(i),e.instance=i);case"void":return null;default:throw Error(c(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(n=e.instance,e.state.loading|=4,Ks(n,a.precedence,t));return e.instance}function Ks(t,e,a){for(var n=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=n.length?n[n.length-1]:null,s=i,o=0;o<n.length;o++){var d=n[o];if(d.dataset.precedence===e)s=d;else if(s!==i)break}s?s.parentNode.insertBefore(t,s.nextSibling):(e=a.nodeType===9?a.head:a,e.insertBefore(t,e.firstChild))}function Eo(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function zo(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Zs=null;function X0(t,e,a){if(Zs===null){var n=new Map,i=Zs=new Map;i.set(a,n)}else i=Zs,n=i.get(a),n||(n=new Map,i.set(a,n));if(n.has(t))return n;for(n.set(t,null),a=a.getElementsByTagName(t),i=0;i<a.length;i++){var s=a[i];if(!(s[ji]||s[re]||t==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var o=s.getAttribute(e)||"";o=t+o;var d=n.get(o);d?d.push(s):n.set(o,[s])}}return n}function K0(t,e,a){t=t.ownerDocument||t,t.head.insertBefore(a,e==="title"?t.querySelector("head > title"):null)}function Mp(t,e,a){if(a===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Z0(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function jp(t,e,a,n){if(a.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var i=ci(n.href),s=e.querySelector(vu(i));if(s){e=s._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Vs.bind(t),e.then(t,t)),a.state.loading|=4,a.instance=s,ue(s);return}s=e.ownerDocument||e,n=L0(n),(i=ua.get(i))&&Eo(n,i),s=s.createElement("link"),ue(s);var o=s;o._p=new Promise(function(d,b){o.onload=d,o.onerror=b}),he(s,"link",n),a.instance=s}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(a,e),(e=a.state.preload)&&(a.state.loading&3)===0&&(t.count++,a=Vs.bind(t),e.addEventListener("load",a),e.addEventListener("error",a))}}var To=0;function Dp(t,e){return t.stylesheets&&t.count===0&&Js(t,t.stylesheets),0<t.count||0<t.imgCount?function(a){var n=setTimeout(function(){if(t.stylesheets&&Js(t,t.stylesheets),t.unsuspend){var s=t.unsuspend;t.unsuspend=null,s()}},6e4+e);0<t.imgBytes&&To===0&&(To=62500*mp());var i=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Js(t,t.stylesheets),t.unsuspend)){var s=t.unsuspend;t.unsuspend=null,s()}},(t.imgBytes>To?50:800)+e);return t.unsuspend=a,function(){t.unsuspend=null,clearTimeout(n),clearTimeout(i)}}:null}function Vs(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Js(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var ks=null;function Js(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,ks=new Map,e.forEach(Up,t),ks=null,Vs.call(t))}function Up(t,e){if(!(e.state.loading&4)){var a=ks.get(t);if(a)var n=a.get(null);else{a=new Map,ks.set(t,a);for(var i=t.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<i.length;s++){var o=i[s];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(a.set(o.dataset.precedence,o),n=o)}n&&a.set(null,n)}i=e.instance,o=i.getAttribute("data-precedence"),s=a.get(o)||n,s===n&&a.set(null,i),a.set(o,i),this.count++,n=Vs.bind(this),i.addEventListener("load",n),i.addEventListener("error",n),s?s.parentNode.insertBefore(i,s.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(i,t.firstChild)),e.state.loading|=4}}var gu={$$typeof:P,Provider:null,Consumer:null,_currentValue:Y,_currentValue2:Y,_threadCount:0};function qp(t,e,a,n,i,s,o,d,b){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ln(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ln(0),this.hiddenUpdates=ln(null),this.identifierPrefix=n,this.onUncaughtError=i,this.onCaughtError=s,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map}function V0(t,e,a,n,i,s,o,d,b,A,M,H){return t=new qp(t,e,a,o,b,A,M,H,d),e=1,s===!0&&(e|=24),s=Ge(3,null,null,e),t.current=s,s.stateNode=t,e=ar(),e.refCount++,t.pooledCache=e,e.refCount++,s.memoizedState={element:n,isDehydrated:a,cache:e},ur(s),t}function k0(t){return t?(t=Yl,t):Yl}function J0(t,e,a,n,i,s){i=k0(i),n.context===null?n.context=i:n.pendingContext=i,n=hn(e),n.payload={element:a},s=s===void 0?null:s,s!==null&&(n.callback=s),a=mn(t,n,e),a!==null&&(Ue(a,t,e),Fi(a,t,e))}function $0(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var a=t.retryLane;t.retryLane=a!==0&&a<e?a:e}}function No(t,e){$0(t,e),(t=t.alternate)&&$0(t,e)}function F0(t){if(t.tag===13||t.tag===31){var e=In(t,67108864);e!==null&&Ue(e,t,67108864),No(t,67108864)}}function W0(t){if(t.tag===13||t.tag===31){var e=ke();e=Ol(e);var a=In(t,e);a!==null&&Ue(a,t,e),No(t,e)}}var $s=!0;function Hp(t,e,a,n){var i=_.T;_.T=null;var s=X.p;try{X.p=2,Oo(t,e,a,n)}finally{X.p=s,_.T=i}}function Bp(t,e,a,n){var i=_.T;_.T=null;var s=X.p;try{X.p=8,Oo(t,e,a,n)}finally{X.p=s,_.T=i}}function Oo(t,e,a,n){if($s){var i=Ao(n);if(i===null)fo(t,e,n,Fs,a),P0(t,n);else if(Yp(i,t,e,a,n))n.stopPropagation();else if(P0(t,n),e&4&&-1<Qp.indexOf(t)){for(;i!==null;){var s=Cl(i);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var o=xa(s.pendingLanes);if(o!==0){var d=s;for(d.pendingLanes|=2,d.entangledLanes|=2;o;){var b=1<<31-ye(o);d.entanglements[1]|=b,o&=~b}Ta(s),(wt&6)===0&&(Ms=Se()+500,du(0))}}break;case 31:case 13:d=In(s,2),d!==null&&Ue(d,s,2),Ds(),No(s,2)}if(s=Ao(n),s===null&&fo(t,e,n,Fs,a),s===i)break;i=s}i!==null&&n.stopPropagation()}else fo(t,e,n,null,a)}}function Ao(t){return t=_c(t),_o(t)}var Fs=null;function _o(t){if(Fs=null,t=_l(t),t!==null){var e=h(t);if(e===null)t=null;else{var a=e.tag;if(a===13){if(t=p(e),t!==null)return t;t=null}else if(a===31){if(t=x(e),t!==null)return t;t=null}else if(a===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Fs=t,null}function I0(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(gc()){case Xn:return 2;case Gu:return 8;case Kn:case Ri:return 32;case Ma:return 268435456;default:return 32}default:return 32}}var Co=!1,Nn=null,On=null,An=null,bu=new Map,xu=new Map,_n=[],Qp="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function P0(t,e){switch(t){case"focusin":case"focusout":Nn=null;break;case"dragenter":case"dragleave":On=null;break;case"mouseover":case"mouseout":An=null;break;case"pointerover":case"pointerout":bu.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":xu.delete(e.pointerId)}}function Su(t,e,a,n,i,s){return t===null||t.nativeEvent!==s?(t={blockedOn:e,domEventName:a,eventSystemFlags:n,nativeEvent:s,targetContainers:[i]},e!==null&&(e=Cl(e),e!==null&&F0(e)),t):(t.eventSystemFlags|=n,e=t.targetContainers,i!==null&&e.indexOf(i)===-1&&e.push(i),t)}function Yp(t,e,a,n,i){switch(e){case"focusin":return Nn=Su(Nn,t,e,a,n,i),!0;case"dragenter":return On=Su(On,t,e,a,n,i),!0;case"mouseover":return An=Su(An,t,e,a,n,i),!0;case"pointerover":var s=i.pointerId;return bu.set(s,Su(bu.get(s)||null,t,e,a,n,i)),!0;case"gotpointercapture":return s=i.pointerId,xu.set(s,Su(xu.get(s)||null,t,e,a,n,i)),!0}return!1}function tm(t){var e=_l(t.target);if(e!==null){var a=h(e);if(a!==null){if(e=a.tag,e===13){if(e=p(a),e!==null){t.blockedOn=e,mf(t.priority,function(){W0(a)});return}}else if(e===31){if(e=x(a),e!==null){t.blockedOn=e,mf(t.priority,function(){W0(a)});return}}else if(e===3&&a.stateNode.current.memoizedState.isDehydrated){t.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Ws(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var a=Ao(t.nativeEvent);if(a===null){a=t.nativeEvent;var n=new a.constructor(a.type,a);Ac=n,a.target.dispatchEvent(n),Ac=null}else return e=Cl(a),e!==null&&F0(e),t.blockedOn=a,!1;e.shift()}return!0}function em(t,e,a){Ws(t)&&a.delete(e)}function Lp(){Co=!1,Nn!==null&&Ws(Nn)&&(Nn=null),On!==null&&Ws(On)&&(On=null),An!==null&&Ws(An)&&(An=null),bu.forEach(em),xu.forEach(em)}function Is(t,e){t.blockedOn===e&&(t.blockedOn=null,Co||(Co=!0,u.unstable_scheduleCallback(u.unstable_NormalPriority,Lp)))}var Ps=null;function am(t){Ps!==t&&(Ps=t,u.unstable_scheduleCallback(u.unstable_NormalPriority,function(){Ps===t&&(Ps=null);for(var e=0;e<t.length;e+=3){var a=t[e],n=t[e+1],i=t[e+2];if(typeof n!="function"){if(_o(n||a)===null)continue;break}var s=Cl(a);s!==null&&(t.splice(e,3),e-=3,Or(s,{pending:!0,data:i,method:a.method,action:n},n,i))}}))}function oi(t){function e(b){return Is(b,t)}Nn!==null&&Is(Nn,t),On!==null&&Is(On,t),An!==null&&Is(An,t),bu.forEach(e),xu.forEach(e);for(var a=0;a<_n.length;a++){var n=_n[a];n.blockedOn===t&&(n.blockedOn=null)}for(;0<_n.length&&(a=_n[0],a.blockedOn===null);)tm(a),a.blockedOn===null&&_n.shift();if(a=(t.ownerDocument||t).$$reactFormReplay,a!=null)for(n=0;n<a.length;n+=3){var i=a[n],s=a[n+1],o=i[Ce]||null;if(typeof s=="function")o||am(a);else if(o){var d=null;if(s&&s.hasAttribute("formAction")){if(i=s,o=s[Ce]||null)d=o.formAction;else if(_o(i)!==null)continue}else d=o.action;typeof d=="function"?a[n+1]=d:(a.splice(n,3),n-=3),am(a)}}}function nm(){function t(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(o){return i=o})},focusReset:"manual",scroll:"manual"})}function e(){i!==null&&(i(),i=null),n||setTimeout(a,20)}function a(){if(!n&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,i=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(a,100),function(){n=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),i!==null&&(i(),i=null)}}}function wo(t){this._internalRoot=t}tc.prototype.render=wo.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(c(409));var a=e.current,n=ke();J0(a,n,t,e,null,null)},tc.prototype.unmount=wo.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;J0(t.current,2,null,t,null,null),Ds(),e[Al]=null}};function tc(t){this._internalRoot=t}tc.prototype.unstable_scheduleHydration=function(t){if(t){var e=xc();t={blockedOn:null,target:t,priority:e};for(var a=0;a<_n.length&&e!==0&&e<_n[a].priority;a++);_n.splice(a,0,t),a===0&&tm(t)}};var lm=l.version;if(lm!=="19.2.4")throw Error(c(527,lm,"19.2.4"));X.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(c(188)):(t=Object.keys(t).join(","),Error(c(268,t)));return t=m(e),t=t!==null?C(t):null,t=t===null?null:t.stateNode,t};var Gp={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ec=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ec.isDisabled&&ec.supportsFiber)try{Zn=ec.inject(Gp),Ee=ec}catch{}}return zu.createRoot=function(t,e){if(!f(t))throw Error(c(299));var a=!1,n="",i=fh,s=dh,o=hh;return e!=null&&(e.unstable_strictMode===!0&&(a=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onUncaughtError!==void 0&&(i=e.onUncaughtError),e.onCaughtError!==void 0&&(s=e.onCaughtError),e.onRecoverableError!==void 0&&(o=e.onRecoverableError)),e=V0(t,1,!1,null,null,a,n,null,i,s,o,nm),t[Al]=e.current,oo(t),new wo(e)},zu.hydrateRoot=function(t,e,a){if(!f(t))throw Error(c(299));var n=!1,i="",s=fh,o=dh,d=hh,b=null;return a!=null&&(a.unstable_strictMode===!0&&(n=!0),a.identifierPrefix!==void 0&&(i=a.identifierPrefix),a.onUncaughtError!==void 0&&(s=a.onUncaughtError),a.onCaughtError!==void 0&&(o=a.onCaughtError),a.onRecoverableError!==void 0&&(d=a.onRecoverableError),a.formState!==void 0&&(b=a.formState)),e=V0(t,1,!0,e,a??null,n,i,b,s,o,d,nm),e.context=k0(null),a=e.current,n=ke(),n=Ol(n),i=hn(n),i.callback=null,mn(a,i,n),a=n,e.current.lanes=a,Vt(e,a),Ta(e),t[Al]=e.current,oo(t),new tc(e)},zu.version="19.2.4",zu}var ym;function Pp(){if(ym)return Do.exports;ym=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(l){console.error(l)}}return u(),Do.exports=Ip(),Do.exports}var tg=Pp(),Yu=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(u){return this.listeners.add(u),this.onSubscribe(),()=>{this.listeners.delete(u),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},dl,Rn,hi,qm,eg=(qm=class extends Yu{constructor(){super();it(this,dl);it(this,Rn);it(this,hi);F(this,hi,l=>{if(typeof window<"u"&&window.addEventListener){const r=()=>l();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){S(this,Rn)||this.setEventListener(S(this,hi))}onUnsubscribe(){var l;this.hasListeners()||((l=S(this,Rn))==null||l.call(this),F(this,Rn,void 0))}setEventListener(l){var r;F(this,hi,l),(r=S(this,Rn))==null||r.call(this),F(this,Rn,l(c=>{typeof c=="boolean"?this.setFocused(c):this.onFocus()}))}setFocused(l){S(this,dl)!==l&&(F(this,dl,l),this.onFocus())}onFocus(){const l=this.isFocused();this.listeners.forEach(r=>{r(l)})}isFocused(){var l;return typeof S(this,dl)=="boolean"?S(this,dl):((l=globalThis.document)==null?void 0:l.visibilityState)!=="hidden"}},dl=new WeakMap,Rn=new WeakMap,hi=new WeakMap,qm),sf=new eg,ag={setTimeout:(u,l)=>setTimeout(u,l),clearTimeout:u=>clearTimeout(u),setInterval:(u,l)=>setInterval(u,l),clearInterval:u=>clearInterval(u)},Mn,lf,Hm,ng=(Hm=class{constructor(){it(this,Mn,ag);it(this,lf,!1)}setTimeoutProvider(u){F(this,Mn,u)}setTimeout(u,l){return S(this,Mn).setTimeout(u,l)}clearTimeout(u){S(this,Mn).clearTimeout(u)}setInterval(u,l){return S(this,Mn).setInterval(u,l)}clearInterval(u){S(this,Mn).clearInterval(u)}},Mn=new WeakMap,lf=new WeakMap,Hm),fl=new ng;function lg(u){setTimeout(u,0)}var ig=typeof window>"u"||"Deno"in globalThis;function Qe(){}function ug(u,l){return typeof u=="function"?u(l):u}function Bo(u){return typeof u=="number"&&u>=0&&u!==1/0}function Jm(u,l){return Math.max(u+(l||0)-Date.now(),0)}function Yn(u,l){return typeof u=="function"?u(l):u}function ca(u,l){return typeof u=="function"?u(l):u}function vm(u,l){const{type:r="all",exact:c,fetchStatus:f,predicate:h,queryKey:p,stale:x}=u;if(p){if(c){if(l.queryHash!==cf(p,l.options))return!1}else if(!wu(l.queryKey,p))return!1}if(r!=="all"){const g=l.isActive();if(r==="active"&&!g||r==="inactive"&&g)return!1}return!(typeof x=="boolean"&&l.isStale()!==x||f&&f!==l.state.fetchStatus||h&&!h(l))}function pm(u,l){const{exact:r,status:c,predicate:f,mutationKey:h}=u;if(h){if(!l.options.mutationKey)return!1;if(r){if(Cu(l.options.mutationKey)!==Cu(h))return!1}else if(!wu(l.options.mutationKey,h))return!1}return!(c&&l.state.status!==c||f&&!f(l))}function cf(u,l){return((l==null?void 0:l.queryKeyHashFn)||Cu)(u)}function Cu(u){return JSON.stringify(u,(l,r)=>Yo(r)?Object.keys(r).sort().reduce((c,f)=>(c[f]=r[f],c),{}):r)}function wu(u,l){return u===l?!0:typeof u!=typeof l?!1:u&&l&&typeof u=="object"&&typeof l=="object"?Object.keys(l).every(r=>wu(u[r],l[r])):!1}var sg=Object.prototype.hasOwnProperty;function $m(u,l,r=0){if(u===l)return u;if(r>500)return l;const c=gm(u)&&gm(l);if(!c&&!(Yo(u)&&Yo(l)))return l;const h=(c?u:Object.keys(u)).length,p=c?l:Object.keys(l),x=p.length,g=c?new Array(x):{};let m=0;for(let C=0;C<x;C++){const v=c?C:p[C],D=u[v],G=l[v];if(D===G){g[v]=D,(c?C<h:sg.call(u,v))&&m++;continue}if(D===null||G===null||typeof D!="object"||typeof G!="object"){g[v]=G;continue}const V=$m(D,G,r+1);g[v]=V,V===D&&m++}return h===x&&m===h?u:g}function Qo(u,l){if(!l||Object.keys(u).length!==Object.keys(l).length)return!1;for(const r in u)if(u[r]!==l[r])return!1;return!0}function gm(u){return Array.isArray(u)&&u.length===Object.keys(u).length}function Yo(u){if(!bm(u))return!1;const l=u.constructor;if(l===void 0)return!0;const r=l.prototype;return!(!bm(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(u)!==Object.prototype)}function bm(u){return Object.prototype.toString.call(u)==="[object Object]"}function cg(u){return new Promise(l=>{fl.setTimeout(l,u)})}function Lo(u,l,r){return typeof r.structuralSharing=="function"?r.structuralSharing(u,l):r.structuralSharing!==!1?$m(u,l):l}function rg(u,l,r=0){const c=[...u,l];return r&&c.length>r?c.slice(1):c}function og(u,l,r=0){const c=[l,...u];return r&&c.length>r?c.slice(0,-1):c}var $e=Symbol();function Fm(u,l){return!u.queryFn&&(l!=null&&l.initialPromise)?()=>l.initialPromise:!u.queryFn||u.queryFn===$e?()=>Promise.reject(new Error(`Missing queryFn: '${u.queryHash}'`)):u.queryFn}function Wm(u,l){return typeof u=="function"?u(...l):!!u}function fg(u,l,r){let c=!1,f;return Object.defineProperty(u,"signal",{enumerable:!0,get:()=>(f??(f=l()),c||(c=!0,f.aborted?r():f.addEventListener("abort",r,{once:!0})),f)}),u}var Ru=(()=>{let u=()=>ig;return{isServer(){return u()},setIsServer(l){u=l}}})();function Go(){let u,l;const r=new Promise((f,h)=>{u=f,l=h});r.status="pending",r.catch(()=>{});function c(f){Object.assign(r,f),delete r.resolve,delete r.reject}return r.resolve=f=>{c({status:"fulfilled",value:f}),u(f)},r.reject=f=>{c({status:"rejected",reason:f}),l(f)},r}var dg=lg;function hg(){let u=[],l=0,r=x=>{x()},c=x=>{x()},f=dg;const h=x=>{l?u.push(x):f(()=>{r(x)})},p=()=>{const x=u;u=[],x.length&&f(()=>{c(()=>{x.forEach(g=>{r(g)})})})};return{batch:x=>{let g;l++;try{g=x()}finally{l--,l||p()}return g},batchCalls:x=>(...g)=>{h(()=>{x(...g)})},schedule:h,setNotifyFunction:x=>{r=x},setBatchNotifyFunction:x=>{c=x},setScheduler:x=>{f=x}}}var me=hg(),mi,jn,yi,Bm,mg=(Bm=class extends Yu{constructor(){super();it(this,mi,!0);it(this,jn);it(this,yi);F(this,yi,l=>{if(typeof window<"u"&&window.addEventListener){const r=()=>l(!0),c=()=>l(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",c,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",c)}}})}onSubscribe(){S(this,jn)||this.setEventListener(S(this,yi))}onUnsubscribe(){var l;this.hasListeners()||((l=S(this,jn))==null||l.call(this),F(this,jn,void 0))}setEventListener(l){var r;F(this,yi,l),(r=S(this,jn))==null||r.call(this),F(this,jn,l(this.setOnline.bind(this)))}setOnline(l){S(this,mi)!==l&&(F(this,mi,l),this.listeners.forEach(c=>{c(l)}))}isOnline(){return S(this,mi)}},mi=new WeakMap,jn=new WeakMap,yi=new WeakMap,Bm),dc=new mg;function yg(u){return Math.min(1e3*2**u,3e4)}function Im(u){return(u??"online")==="online"?dc.isOnline():!0}var Xo=class extends Error{constructor(u){super("CancelledError"),this.revert=u==null?void 0:u.revert,this.silent=u==null?void 0:u.silent}};function Pm(u){let l=!1,r=0,c;const f=Go(),h=()=>f.status!=="pending",p=I=>{var k;if(!h()){const L=new Xo(I);D(L),(k=u.onCancel)==null||k.call(u,L)}},x=()=>{l=!0},g=()=>{l=!1},m=()=>sf.isFocused()&&(u.networkMode==="always"||dc.isOnline())&&u.canRun(),C=()=>Im(u.networkMode)&&u.canRun(),v=I=>{h()||(c==null||c(),f.resolve(I))},D=I=>{h()||(c==null||c(),f.reject(I))},G=()=>new Promise(I=>{var k;c=L=>{(h()||m())&&I(L)},(k=u.onPause)==null||k.call(u)}).then(()=>{var I;c=void 0,h()||(I=u.onContinue)==null||I.call(u)}),V=()=>{if(h())return;let I;const k=r===0?u.initialPromise:void 0;try{I=k??u.fn()}catch(L){I=Promise.reject(L)}Promise.resolve(I).then(v).catch(L=>{var nt;if(h())return;const st=u.retry??(Ru.isServer()?0:3),P=u.retryDelay??yg,Z=typeof P=="function"?P(r,L):P,K=st===!0||typeof st=="number"&&r<st||typeof st=="function"&&st(r,L);if(l||!K){D(L);return}r++,(nt=u.onFail)==null||nt.call(u,r,L),cg(Z).then(()=>m()?void 0:G()).then(()=>{l?D(L):V()})})};return{promise:f,status:()=>f.status,cancel:p,continue:()=>(c==null||c(),f),cancelRetry:x,continueRetry:g,canStart:C,start:()=>(C()?V():G().then(V),f)}}var hl,Qm,ty=(Qm=class{constructor(){it(this,hl)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Bo(this.gcTime)&&F(this,hl,fl.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(u){this.gcTime=Math.max(this.gcTime||0,u??(Ru.isServer()?1/0:300*1e3))}clearGcTimeout(){S(this,hl)&&(fl.clearTimeout(S(this,hl)),F(this,hl,void 0))}},hl=new WeakMap,Qm),ml,vi,sa,yl,ce,Du,vl,Fe,ey,Wa,Ym,vg=(Ym=class extends ty{constructor(l){super();it(this,Fe);it(this,ml);it(this,vi);it(this,sa);it(this,yl);it(this,ce);it(this,Du);it(this,vl);F(this,vl,!1),F(this,Du,l.defaultOptions),this.setOptions(l.options),this.observers=[],F(this,yl,l.client),F(this,sa,S(this,yl).getQueryCache()),this.queryKey=l.queryKey,this.queryHash=l.queryHash,F(this,ml,Sm(this.options)),this.state=l.state??S(this,ml),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var l;return(l=S(this,ce))==null?void 0:l.promise}setOptions(l){if(this.options={...S(this,Du),...l},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=Sm(this.options);r.data!==void 0&&(this.setState(xm(r.data,r.dataUpdatedAt)),F(this,ml,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&S(this,sa).remove(this)}setData(l,r){const c=Lo(this.state.data,l,this.options);return pt(this,Fe,Wa).call(this,{data:c,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),c}setState(l,r){pt(this,Fe,Wa).call(this,{type:"setState",state:l,setStateOptions:r})}cancel(l){var c,f;const r=(c=S(this,ce))==null?void 0:c.promise;return(f=S(this,ce))==null||f.cancel(l),r?r.then(Qe).catch(Qe):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return S(this,ml)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(l=>ca(l.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===$e||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(l=>Yn(l.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(l=>l.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(l=0){return this.state.data===void 0?!0:l==="static"?!1:this.state.isInvalidated?!0:!Jm(this.state.dataUpdatedAt,l)}onFocus(){var r;const l=this.observers.find(c=>c.shouldFetchOnWindowFocus());l==null||l.refetch({cancelRefetch:!1}),(r=S(this,ce))==null||r.continue()}onOnline(){var r;const l=this.observers.find(c=>c.shouldFetchOnReconnect());l==null||l.refetch({cancelRefetch:!1}),(r=S(this,ce))==null||r.continue()}addObserver(l){this.observers.includes(l)||(this.observers.push(l),this.clearGcTimeout(),S(this,sa).notify({type:"observerAdded",query:this,observer:l}))}removeObserver(l){this.observers.includes(l)&&(this.observers=this.observers.filter(r=>r!==l),this.observers.length||(S(this,ce)&&(S(this,vl)||pt(this,Fe,ey).call(this)?S(this,ce).cancel({revert:!0}):S(this,ce).cancelRetry()),this.scheduleGc()),S(this,sa).notify({type:"observerRemoved",query:this,observer:l}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||pt(this,Fe,Wa).call(this,{type:"invalidate"})}async fetch(l,r){var g,m,C,v,D,G,V,I,k,L,st,P;if(this.state.fetchStatus!=="idle"&&((g=S(this,ce))==null?void 0:g.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(S(this,ce))return S(this,ce).continueRetry(),S(this,ce).promise}if(l&&this.setOptions(l),!this.options.queryFn){const Z=this.observers.find(K=>K.options.queryFn);Z&&this.setOptions(Z.options)}const c=new AbortController,f=Z=>{Object.defineProperty(Z,"signal",{enumerable:!0,get:()=>(F(this,vl,!0),c.signal)})},h=()=>{const Z=Fm(this.options,r),nt=(()=>{const $={client:S(this,yl),queryKey:this.queryKey,meta:this.meta};return f($),$})();return F(this,vl,!1),this.options.persister?this.options.persister(Z,nt,this):Z(nt)},x=(()=>{const Z={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:S(this,yl),state:this.state,fetchFn:h};return f(Z),Z})();(m=this.options.behavior)==null||m.onFetch(x,this),F(this,vi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((C=x.fetchOptions)==null?void 0:C.meta))&&pt(this,Fe,Wa).call(this,{type:"fetch",meta:(v=x.fetchOptions)==null?void 0:v.meta}),F(this,ce,Pm({initialPromise:r==null?void 0:r.initialPromise,fn:x.fetchFn,onCancel:Z=>{Z instanceof Xo&&Z.revert&&this.setState({...S(this,vi),fetchStatus:"idle"}),c.abort()},onFail:(Z,K)=>{pt(this,Fe,Wa).call(this,{type:"failed",failureCount:Z,error:K})},onPause:()=>{pt(this,Fe,Wa).call(this,{type:"pause"})},onContinue:()=>{pt(this,Fe,Wa).call(this,{type:"continue"})},retry:x.options.retry,retryDelay:x.options.retryDelay,networkMode:x.options.networkMode,canRun:()=>!0}));try{const Z=await S(this,ce).start();if(Z===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(Z),(G=(D=S(this,sa).config).onSuccess)==null||G.call(D,Z,this),(I=(V=S(this,sa).config).onSettled)==null||I.call(V,Z,this.state.error,this),Z}catch(Z){if(Z instanceof Xo){if(Z.silent)return S(this,ce).promise;if(Z.revert){if(this.state.data===void 0)throw Z;return this.state.data}}throw pt(this,Fe,Wa).call(this,{type:"error",error:Z}),(L=(k=S(this,sa).config).onError)==null||L.call(k,Z,this),(P=(st=S(this,sa).config).onSettled)==null||P.call(st,this.state.data,Z,this),Z}finally{this.scheduleGc()}}},ml=new WeakMap,vi=new WeakMap,sa=new WeakMap,yl=new WeakMap,ce=new WeakMap,Du=new WeakMap,vl=new WeakMap,Fe=new WeakSet,ey=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Wa=function(l){const r=c=>{switch(l.type){case"failed":return{...c,fetchFailureCount:l.failureCount,fetchFailureReason:l.error};case"pause":return{...c,fetchStatus:"paused"};case"continue":return{...c,fetchStatus:"fetching"};case"fetch":return{...c,...ay(c.data,this.options),fetchMeta:l.meta??null};case"success":const f={...c,...xm(l.data,l.dataUpdatedAt),dataUpdateCount:c.dataUpdateCount+1,...!l.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return F(this,vi,l.manual?f:void 0),f;case"error":const h=l.error;return{...c,error:h,errorUpdateCount:c.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:c.fetchFailureCount+1,fetchFailureReason:h,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...c,isInvalidated:!0};case"setState":return{...c,...l.state}}};this.state=r(this.state),me.batch(()=>{this.observers.forEach(c=>{c.onQueryUpdate()}),S(this,sa).notify({query:this,type:"updated",action:l})})},Ym);function ay(u,l){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Im(l.networkMode)?"fetching":"paused",...u===void 0&&{error:null,status:"pending"}}}function xm(u,l){return{data:u,dataUpdatedAt:l??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Sm(u){const l=typeof u.initialData=="function"?u.initialData():u.initialData,r=l!==void 0,c=r?typeof u.initialDataUpdatedAt=="function"?u.initialDataUpdatedAt():u.initialDataUpdatedAt:0;return{data:l,dataUpdateCount:0,dataUpdatedAt:r?c??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var He,At,Uu,Te,pl,pi,Ia,Dn,qu,gi,bi,gl,bl,Un,xi,Rt,Ou,Ko,Zo,Vo,ko,Jo,$o,Fo,ny,Lm,pg=(Lm=class extends Yu{constructor(l,r){super();it(this,Rt);it(this,He);it(this,At);it(this,Uu);it(this,Te);it(this,pl);it(this,pi);it(this,Ia);it(this,Dn);it(this,qu);it(this,gi);it(this,bi);it(this,gl);it(this,bl);it(this,Un);it(this,xi,new Set);this.options=r,F(this,He,l),F(this,Dn,null),F(this,Ia,Go()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(S(this,At).addObserver(this),Em(S(this,At),this.options)?pt(this,Rt,Ou).call(this):this.updateResult(),pt(this,Rt,ko).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Wo(S(this,At),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Wo(S(this,At),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,pt(this,Rt,Jo).call(this),pt(this,Rt,$o).call(this),S(this,At).removeObserver(this)}setOptions(l){const r=this.options,c=S(this,At);if(this.options=S(this,He).defaultQueryOptions(l),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ca(this.options.enabled,S(this,At))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");pt(this,Rt,Fo).call(this),S(this,At).setOptions(this.options),r._defaulted&&!Qo(this.options,r)&&S(this,He).getQueryCache().notify({type:"observerOptionsUpdated",query:S(this,At),observer:this});const f=this.hasListeners();f&&zm(S(this,At),c,this.options,r)&&pt(this,Rt,Ou).call(this),this.updateResult(),f&&(S(this,At)!==c||ca(this.options.enabled,S(this,At))!==ca(r.enabled,S(this,At))||Yn(this.options.staleTime,S(this,At))!==Yn(r.staleTime,S(this,At)))&&pt(this,Rt,Ko).call(this);const h=pt(this,Rt,Zo).call(this);f&&(S(this,At)!==c||ca(this.options.enabled,S(this,At))!==ca(r.enabled,S(this,At))||h!==S(this,Un))&&pt(this,Rt,Vo).call(this,h)}getOptimisticResult(l){const r=S(this,He).getQueryCache().build(S(this,He),l),c=this.createResult(r,l);return bg(this,c)&&(F(this,Te,c),F(this,pi,this.options),F(this,pl,S(this,At).state)),c}getCurrentResult(){return S(this,Te)}trackResult(l,r){return new Proxy(l,{get:(c,f)=>(this.trackProp(f),r==null||r(f),f==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&S(this,Ia).status==="pending"&&S(this,Ia).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(c,f))})}trackProp(l){S(this,xi).add(l)}getCurrentQuery(){return S(this,At)}refetch({...l}={}){return this.fetch({...l})}fetchOptimistic(l){const r=S(this,He).defaultQueryOptions(l),c=S(this,He).getQueryCache().build(S(this,He),r);return c.fetch().then(()=>this.createResult(c,r))}fetch(l){return pt(this,Rt,Ou).call(this,{...l,cancelRefetch:l.cancelRefetch??!0}).then(()=>(this.updateResult(),S(this,Te)))}createResult(l,r){var ot;const c=S(this,At),f=this.options,h=S(this,Te),p=S(this,pl),x=S(this,pi),m=l!==c?l.state:S(this,Uu),{state:C}=l;let v={...C},D=!1,G;if(r._optimisticResults){const dt=this.hasListeners(),mt=!dt&&Em(l,r),zt=dt&&zm(l,c,r,f);(mt||zt)&&(v={...v,...ay(C.data,l.options)}),r._optimisticResults==="isRestoring"&&(v.fetchStatus="idle")}let{error:V,errorUpdatedAt:I,status:k}=v;G=v.data;let L=!1;if(r.placeholderData!==void 0&&G===void 0&&k==="pending"){let dt;h!=null&&h.isPlaceholderData&&r.placeholderData===(x==null?void 0:x.placeholderData)?(dt=h.data,L=!0):dt=typeof r.placeholderData=="function"?r.placeholderData((ot=S(this,bi))==null?void 0:ot.state.data,S(this,bi)):r.placeholderData,dt!==void 0&&(k="success",G=Lo(h==null?void 0:h.data,dt,r),D=!0)}if(r.select&&G!==void 0&&!L)if(h&&G===(p==null?void 0:p.data)&&r.select===S(this,qu))G=S(this,gi);else try{F(this,qu,r.select),G=r.select(G),G=Lo(h==null?void 0:h.data,G,r),F(this,gi,G),F(this,Dn,null)}catch(dt){F(this,Dn,dt)}S(this,Dn)&&(V=S(this,Dn),G=S(this,gi),I=Date.now(),k="error");const st=v.fetchStatus==="fetching",P=k==="pending",Z=k==="error",K=P&&st,nt=G!==void 0,tt={status:k,fetchStatus:v.fetchStatus,isPending:P,isSuccess:k==="success",isError:Z,isInitialLoading:K,isLoading:K,data:G,dataUpdatedAt:v.dataUpdatedAt,error:V,errorUpdatedAt:I,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:l.isFetched(),isFetchedAfterMount:v.dataUpdateCount>m.dataUpdateCount||v.errorUpdateCount>m.errorUpdateCount,isFetching:st,isRefetching:st&&!P,isLoadingError:Z&&!nt,isPaused:v.fetchStatus==="paused",isPlaceholderData:D,isRefetchError:Z&&nt,isStale:rf(l,r),refetch:this.refetch,promise:S(this,Ia),isEnabled:ca(r.enabled,l)!==!1};if(this.options.experimental_prefetchInRender){const dt=tt.data!==void 0,mt=tt.status==="error"&&!dt,zt=Yt=>{mt?Yt.reject(tt.error):dt&&Yt.resolve(tt.data)},Mt=()=>{const Yt=F(this,Ia,tt.promise=Go());zt(Yt)},Xt=S(this,Ia);switch(Xt.status){case"pending":l.queryHash===c.queryHash&&zt(Xt);break;case"fulfilled":(mt||tt.data!==Xt.value)&&Mt();break;case"rejected":(!mt||tt.error!==Xt.reason)&&Mt();break}}return tt}updateResult(){const l=S(this,Te),r=this.createResult(S(this,At),this.options);if(F(this,pl,S(this,At).state),F(this,pi,this.options),S(this,pl).data!==void 0&&F(this,bi,S(this,At)),Qo(r,l))return;F(this,Te,r);const c=()=>{if(!l)return!0;const{notifyOnChangeProps:f}=this.options,h=typeof f=="function"?f():f;if(h==="all"||!h&&!S(this,xi).size)return!0;const p=new Set(h??S(this,xi));return this.options.throwOnError&&p.add("error"),Object.keys(S(this,Te)).some(x=>{const g=x;return S(this,Te)[g]!==l[g]&&p.has(g)})};pt(this,Rt,ny).call(this,{listeners:c()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&pt(this,Rt,ko).call(this)}},He=new WeakMap,At=new WeakMap,Uu=new WeakMap,Te=new WeakMap,pl=new WeakMap,pi=new WeakMap,Ia=new WeakMap,Dn=new WeakMap,qu=new WeakMap,gi=new WeakMap,bi=new WeakMap,gl=new WeakMap,bl=new WeakMap,Un=new WeakMap,xi=new WeakMap,Rt=new WeakSet,Ou=function(l){pt(this,Rt,Fo).call(this);let r=S(this,At).fetch(this.options,l);return l!=null&&l.throwOnError||(r=r.catch(Qe)),r},Ko=function(){pt(this,Rt,Jo).call(this);const l=Yn(this.options.staleTime,S(this,At));if(Ru.isServer()||S(this,Te).isStale||!Bo(l))return;const c=Jm(S(this,Te).dataUpdatedAt,l)+1;F(this,gl,fl.setTimeout(()=>{S(this,Te).isStale||this.updateResult()},c))},Zo=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(S(this,At)):this.options.refetchInterval)??!1},Vo=function(l){pt(this,Rt,$o).call(this),F(this,Un,l),!(Ru.isServer()||ca(this.options.enabled,S(this,At))===!1||!Bo(S(this,Un))||S(this,Un)===0)&&F(this,bl,fl.setInterval(()=>{(this.options.refetchIntervalInBackground||sf.isFocused())&&pt(this,Rt,Ou).call(this)},S(this,Un)))},ko=function(){pt(this,Rt,Ko).call(this),pt(this,Rt,Vo).call(this,pt(this,Rt,Zo).call(this))},Jo=function(){S(this,gl)&&(fl.clearTimeout(S(this,gl)),F(this,gl,void 0))},$o=function(){S(this,bl)&&(fl.clearInterval(S(this,bl)),F(this,bl,void 0))},Fo=function(){const l=S(this,He).getQueryCache().build(S(this,He),this.options);if(l===S(this,At))return;const r=S(this,At);F(this,At,l),F(this,Uu,l.state),this.hasListeners()&&(r==null||r.removeObserver(this),l.addObserver(this))},ny=function(l){me.batch(()=>{l.listeners&&this.listeners.forEach(r=>{r(S(this,Te))}),S(this,He).getQueryCache().notify({query:S(this,At),type:"observerResultsUpdated"})})},Lm);function gg(u,l){return ca(l.enabled,u)!==!1&&u.state.data===void 0&&!(u.state.status==="error"&&l.retryOnMount===!1)}function Em(u,l){return gg(u,l)||u.state.data!==void 0&&Wo(u,l,l.refetchOnMount)}function Wo(u,l,r){if(ca(l.enabled,u)!==!1&&Yn(l.staleTime,u)!=="static"){const c=typeof r=="function"?r(u):r;return c==="always"||c!==!1&&rf(u,l)}return!1}function zm(u,l,r,c){return(u!==l||ca(c.enabled,u)===!1)&&(!r.suspense||u.state.status!=="error")&&rf(u,r)}function rf(u,l){return ca(l.enabled,u)!==!1&&u.isStaleByTime(Yn(l.staleTime,u))}function bg(u,l){return!Qo(u.getCurrentResult(),l)}function Tm(u){return{onFetch:(l,r)=>{var C,v,D,G,V;const c=l.options,f=(D=(v=(C=l.fetchOptions)==null?void 0:C.meta)==null?void 0:v.fetchMore)==null?void 0:D.direction,h=((G=l.state.data)==null?void 0:G.pages)||[],p=((V=l.state.data)==null?void 0:V.pageParams)||[];let x={pages:[],pageParams:[]},g=0;const m=async()=>{let I=!1;const k=P=>{fg(P,()=>l.signal,()=>I=!0)},L=Fm(l.options,l.fetchOptions),st=async(P,Z,K)=>{if(I)return Promise.reject();if(Z==null&&P.pages.length)return Promise.resolve(P);const $=(()=>{const mt={client:l.client,queryKey:l.queryKey,pageParam:Z,direction:K?"backward":"forward",meta:l.options.meta};return k(mt),mt})(),tt=await L($),{maxPages:ot}=l.options,dt=K?og:rg;return{pages:dt(P.pages,tt,ot),pageParams:dt(P.pageParams,Z,ot)}};if(f&&h.length){const P=f==="backward",Z=P?xg:Nm,K={pages:h,pageParams:p},nt=Z(c,K);x=await st(K,nt,P)}else{const P=u??h.length;do{const Z=g===0?p[0]??c.initialPageParam:Nm(c,x);if(g>0&&Z==null)break;x=await st(x,Z),g++}while(g<P)}return x};l.options.persister?l.fetchFn=()=>{var I,k;return(k=(I=l.options).persister)==null?void 0:k.call(I,m,{client:l.client,queryKey:l.queryKey,meta:l.options.meta,signal:l.signal},r)}:l.fetchFn=m}}}function Nm(u,{pages:l,pageParams:r}){const c=l.length-1;return l.length>0?u.getNextPageParam(l[c],l,r[c],r):void 0}function xg(u,{pages:l,pageParams:r}){var c;return l.length>0?(c=u.getPreviousPageParam)==null?void 0:c.call(u,l[0],l,r[0],r):void 0}var Hu,Oa,be,xl,Aa,wn,Gm,Sg=(Gm=class extends ty{constructor(l){super();it(this,Aa);it(this,Hu);it(this,Oa);it(this,be);it(this,xl);F(this,Hu,l.client),this.mutationId=l.mutationId,F(this,be,l.mutationCache),F(this,Oa,[]),this.state=l.state||Eg(),this.setOptions(l.options),this.scheduleGc()}setOptions(l){this.options=l,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(l){S(this,Oa).includes(l)||(S(this,Oa).push(l),this.clearGcTimeout(),S(this,be).notify({type:"observerAdded",mutation:this,observer:l}))}removeObserver(l){F(this,Oa,S(this,Oa).filter(r=>r!==l)),this.scheduleGc(),S(this,be).notify({type:"observerRemoved",mutation:this,observer:l})}optionalRemove(){S(this,Oa).length||(this.state.status==="pending"?this.scheduleGc():S(this,be).remove(this))}continue(){var l;return((l=S(this,xl))==null?void 0:l.continue())??this.execute(this.state.variables)}async execute(l){var p,x,g,m,C,v,D,G,V,I,k,L,st,P,Z,K,nt,$;const r=()=>{pt(this,Aa,wn).call(this,{type:"continue"})},c={client:S(this,Hu),meta:this.options.meta,mutationKey:this.options.mutationKey};F(this,xl,Pm({fn:()=>this.options.mutationFn?this.options.mutationFn(l,c):Promise.reject(new Error("No mutationFn found")),onFail:(tt,ot)=>{pt(this,Aa,wn).call(this,{type:"failed",failureCount:tt,error:ot})},onPause:()=>{pt(this,Aa,wn).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>S(this,be).canRun(this)}));const f=this.state.status==="pending",h=!S(this,xl).canStart();try{if(f)r();else{pt(this,Aa,wn).call(this,{type:"pending",variables:l,isPaused:h}),S(this,be).config.onMutate&&await S(this,be).config.onMutate(l,this,c);const ot=await((x=(p=this.options).onMutate)==null?void 0:x.call(p,l,c));ot!==this.state.context&&pt(this,Aa,wn).call(this,{type:"pending",context:ot,variables:l,isPaused:h})}const tt=await S(this,xl).start();return await((m=(g=S(this,be).config).onSuccess)==null?void 0:m.call(g,tt,l,this.state.context,this,c)),await((v=(C=this.options).onSuccess)==null?void 0:v.call(C,tt,l,this.state.context,c)),await((G=(D=S(this,be).config).onSettled)==null?void 0:G.call(D,tt,null,this.state.variables,this.state.context,this,c)),await((I=(V=this.options).onSettled)==null?void 0:I.call(V,tt,null,l,this.state.context,c)),pt(this,Aa,wn).call(this,{type:"success",data:tt}),tt}catch(tt){try{await((L=(k=S(this,be).config).onError)==null?void 0:L.call(k,tt,l,this.state.context,this,c))}catch(ot){Promise.reject(ot)}try{await((P=(st=this.options).onError)==null?void 0:P.call(st,tt,l,this.state.context,c))}catch(ot){Promise.reject(ot)}try{await((K=(Z=S(this,be).config).onSettled)==null?void 0:K.call(Z,void 0,tt,this.state.variables,this.state.context,this,c))}catch(ot){Promise.reject(ot)}try{await(($=(nt=this.options).onSettled)==null?void 0:$.call(nt,void 0,tt,l,this.state.context,c))}catch(ot){Promise.reject(ot)}throw pt(this,Aa,wn).call(this,{type:"error",error:tt}),tt}finally{S(this,be).runNext(this)}}},Hu=new WeakMap,Oa=new WeakMap,be=new WeakMap,xl=new WeakMap,Aa=new WeakSet,wn=function(l){const r=c=>{switch(l.type){case"failed":return{...c,failureCount:l.failureCount,failureReason:l.error};case"pause":return{...c,isPaused:!0};case"continue":return{...c,isPaused:!1};case"pending":return{...c,context:l.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:l.isPaused,status:"pending",variables:l.variables,submittedAt:Date.now()};case"success":return{...c,data:l.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...c,data:void 0,error:l.error,failureCount:c.failureCount+1,failureReason:l.error,isPaused:!1,status:"error"}}};this.state=r(this.state),me.batch(()=>{S(this,Oa).forEach(c=>{c.onMutationUpdate(l)}),S(this,be).notify({mutation:this,type:"updated",action:l})})},Gm);function Eg(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Pa,ya,Bu,Xm,zg=(Xm=class extends Yu{constructor(l={}){super();it(this,Pa);it(this,ya);it(this,Bu);this.config=l,F(this,Pa,new Set),F(this,ya,new Map),F(this,Bu,0)}build(l,r,c){const f=new Sg({client:l,mutationCache:this,mutationId:++ac(this,Bu)._,options:l.defaultMutationOptions(r),state:c});return this.add(f),f}add(l){S(this,Pa).add(l);const r=nc(l);if(typeof r=="string"){const c=S(this,ya).get(r);c?c.push(l):S(this,ya).set(r,[l])}this.notify({type:"added",mutation:l})}remove(l){if(S(this,Pa).delete(l)){const r=nc(l);if(typeof r=="string"){const c=S(this,ya).get(r);if(c)if(c.length>1){const f=c.indexOf(l);f!==-1&&c.splice(f,1)}else c[0]===l&&S(this,ya).delete(r)}}this.notify({type:"removed",mutation:l})}canRun(l){const r=nc(l);if(typeof r=="string"){const c=S(this,ya).get(r),f=c==null?void 0:c.find(h=>h.state.status==="pending");return!f||f===l}else return!0}runNext(l){var c;const r=nc(l);if(typeof r=="string"){const f=(c=S(this,ya).get(r))==null?void 0:c.find(h=>h!==l&&h.state.isPaused);return(f==null?void 0:f.continue())??Promise.resolve()}else return Promise.resolve()}clear(){me.batch(()=>{S(this,Pa).forEach(l=>{this.notify({type:"removed",mutation:l})}),S(this,Pa).clear(),S(this,ya).clear()})}getAll(){return Array.from(S(this,Pa))}find(l){const r={exact:!0,...l};return this.getAll().find(c=>pm(r,c))}findAll(l={}){return this.getAll().filter(r=>pm(l,r))}notify(l){me.batch(()=>{this.listeners.forEach(r=>{r(l)})})}resumePausedMutations(){const l=this.getAll().filter(r=>r.state.isPaused);return me.batch(()=>Promise.all(l.map(r=>r.continue().catch(Qe))))}},Pa=new WeakMap,ya=new WeakMap,Bu=new WeakMap,Xm);function nc(u){var l;return(l=u.options.scope)==null?void 0:l.id}var _a,Km,Tg=(Km=class extends Yu{constructor(l={}){super();it(this,_a);this.config=l,F(this,_a,new Map)}build(l,r,c){const f=r.queryKey,h=r.queryHash??cf(f,r);let p=this.get(h);return p||(p=new vg({client:l,queryKey:f,queryHash:h,options:l.defaultQueryOptions(r),state:c,defaultOptions:l.getQueryDefaults(f)}),this.add(p)),p}add(l){S(this,_a).has(l.queryHash)||(S(this,_a).set(l.queryHash,l),this.notify({type:"added",query:l}))}remove(l){const r=S(this,_a).get(l.queryHash);r&&(l.destroy(),r===l&&S(this,_a).delete(l.queryHash),this.notify({type:"removed",query:l}))}clear(){me.batch(()=>{this.getAll().forEach(l=>{this.remove(l)})})}get(l){return S(this,_a).get(l)}getAll(){return[...S(this,_a).values()]}find(l){const r={exact:!0,...l};return this.getAll().find(c=>vm(r,c))}findAll(l={}){const r=this.getAll();return Object.keys(l).length>0?r.filter(c=>vm(l,c)):r}notify(l){me.batch(()=>{this.listeners.forEach(r=>{r(l)})})}onFocus(){me.batch(()=>{this.getAll().forEach(l=>{l.onFocus()})})}onOnline(){me.batch(()=>{this.getAll().forEach(l=>{l.onOnline()})})}},_a=new WeakMap,Km),$t,qn,Hn,Si,Ei,Bn,zi,Ti,Zm,Ng=(Zm=class{constructor(u={}){it(this,$t);it(this,qn);it(this,Hn);it(this,Si);it(this,Ei);it(this,Bn);it(this,zi);it(this,Ti);F(this,$t,u.queryCache||new Tg),F(this,qn,u.mutationCache||new zg),F(this,Hn,u.defaultOptions||{}),F(this,Si,new Map),F(this,Ei,new Map),F(this,Bn,0)}mount(){ac(this,Bn)._++,S(this,Bn)===1&&(F(this,zi,sf.subscribe(async u=>{u&&(await this.resumePausedMutations(),S(this,$t).onFocus())})),F(this,Ti,dc.subscribe(async u=>{u&&(await this.resumePausedMutations(),S(this,$t).onOnline())})))}unmount(){var u,l;ac(this,Bn)._--,S(this,Bn)===0&&((u=S(this,zi))==null||u.call(this),F(this,zi,void 0),(l=S(this,Ti))==null||l.call(this),F(this,Ti,void 0))}isFetching(u){return S(this,$t).findAll({...u,fetchStatus:"fetching"}).length}isMutating(u){return S(this,qn).findAll({...u,status:"pending"}).length}getQueryData(u){var r;const l=this.defaultQueryOptions({queryKey:u});return(r=S(this,$t).get(l.queryHash))==null?void 0:r.state.data}ensureQueryData(u){const l=this.defaultQueryOptions(u),r=S(this,$t).build(this,l),c=r.state.data;return c===void 0?this.fetchQuery(u):(u.revalidateIfStale&&r.isStaleByTime(Yn(l.staleTime,r))&&this.prefetchQuery(l),Promise.resolve(c))}getQueriesData(u){return S(this,$t).findAll(u).map(({queryKey:l,state:r})=>{const c=r.data;return[l,c]})}setQueryData(u,l,r){const c=this.defaultQueryOptions({queryKey:u}),f=S(this,$t).get(c.queryHash),h=f==null?void 0:f.state.data,p=ug(l,h);if(p!==void 0)return S(this,$t).build(this,c).setData(p,{...r,manual:!0})}setQueriesData(u,l,r){return me.batch(()=>S(this,$t).findAll(u).map(({queryKey:c})=>[c,this.setQueryData(c,l,r)]))}getQueryState(u){var r;const l=this.defaultQueryOptions({queryKey:u});return(r=S(this,$t).get(l.queryHash))==null?void 0:r.state}removeQueries(u){const l=S(this,$t);me.batch(()=>{l.findAll(u).forEach(r=>{l.remove(r)})})}resetQueries(u,l){const r=S(this,$t);return me.batch(()=>(r.findAll(u).forEach(c=>{c.reset()}),this.refetchQueries({type:"active",...u},l)))}cancelQueries(u,l={}){const r={revert:!0,...l},c=me.batch(()=>S(this,$t).findAll(u).map(f=>f.cancel(r)));return Promise.all(c).then(Qe).catch(Qe)}invalidateQueries(u,l={}){return me.batch(()=>(S(this,$t).findAll(u).forEach(r=>{r.invalidate()}),(u==null?void 0:u.refetchType)==="none"?Promise.resolve():this.refetchQueries({...u,type:(u==null?void 0:u.refetchType)??(u==null?void 0:u.type)??"active"},l)))}refetchQueries(u,l={}){const r={...l,cancelRefetch:l.cancelRefetch??!0},c=me.batch(()=>S(this,$t).findAll(u).filter(f=>!f.isDisabled()&&!f.isStatic()).map(f=>{let h=f.fetch(void 0,r);return r.throwOnError||(h=h.catch(Qe)),f.state.fetchStatus==="paused"?Promise.resolve():h}));return Promise.all(c).then(Qe)}fetchQuery(u){const l=this.defaultQueryOptions(u);l.retry===void 0&&(l.retry=!1);const r=S(this,$t).build(this,l);return r.isStaleByTime(Yn(l.staleTime,r))?r.fetch(l):Promise.resolve(r.state.data)}prefetchQuery(u){return this.fetchQuery(u).then(Qe).catch(Qe)}fetchInfiniteQuery(u){return u.behavior=Tm(u.pages),this.fetchQuery(u)}prefetchInfiniteQuery(u){return this.fetchInfiniteQuery(u).then(Qe).catch(Qe)}ensureInfiniteQueryData(u){return u.behavior=Tm(u.pages),this.ensureQueryData(u)}resumePausedMutations(){return dc.isOnline()?S(this,qn).resumePausedMutations():Promise.resolve()}getQueryCache(){return S(this,$t)}getMutationCache(){return S(this,qn)}getDefaultOptions(){return S(this,Hn)}setDefaultOptions(u){F(this,Hn,u)}setQueryDefaults(u,l){S(this,Si).set(Cu(u),{queryKey:u,defaultOptions:l})}getQueryDefaults(u){const l=[...S(this,Si).values()],r={};return l.forEach(c=>{wu(u,c.queryKey)&&Object.assign(r,c.defaultOptions)}),r}setMutationDefaults(u,l){S(this,Ei).set(Cu(u),{mutationKey:u,defaultOptions:l})}getMutationDefaults(u){const l=[...S(this,Ei).values()],r={};return l.forEach(c=>{wu(u,c.mutationKey)&&Object.assign(r,c.defaultOptions)}),r}defaultQueryOptions(u){if(u._defaulted)return u;const l={...S(this,Hn).queries,...this.getQueryDefaults(u.queryKey),...u,_defaulted:!0};return l.queryHash||(l.queryHash=cf(l.queryKey,l)),l.refetchOnReconnect===void 0&&(l.refetchOnReconnect=l.networkMode!=="always"),l.throwOnError===void 0&&(l.throwOnError=!!l.suspense),!l.networkMode&&l.persister&&(l.networkMode="offlineFirst"),l.queryFn===$e&&(l.enabled=!1),l}defaultMutationOptions(u){return u!=null&&u._defaulted?u:{...S(this,Hn).mutations,...(u==null?void 0:u.mutationKey)&&this.getMutationDefaults(u.mutationKey),...u,_defaulted:!0}}clear(){S(this,$t).clear(),S(this,qn).clear()}},$t=new WeakMap,qn=new WeakMap,Hn=new WeakMap,Si=new WeakMap,Ei=new WeakMap,Bn=new WeakMap,zi=new WeakMap,Ti=new WeakMap,Zm),ly=Q.createContext(void 0),Og=u=>{const l=Q.useContext(ly);if(!l)throw new Error("No QueryClient set, use QueryClientProvider to set one");return l},Ag=({client:u,children:l})=>(Q.useEffect(()=>(u.mount(),()=>{u.unmount()}),[u]),y.jsx(ly.Provider,{value:u,children:l})),iy=Q.createContext(!1),_g=()=>Q.useContext(iy);iy.Provider;function Cg(){let u=!1;return{clearReset:()=>{u=!1},reset:()=>{u=!0},isReset:()=>u}}var wg=Q.createContext(Cg()),Rg=()=>Q.useContext(wg),Mg=(u,l,r)=>{const c=r!=null&&r.state.error&&typeof u.throwOnError=="function"?Wm(u.throwOnError,[r.state.error,r]):u.throwOnError;(u.suspense||u.experimental_prefetchInRender||c)&&(l.isReset()||(u.retryOnMount=!1))},jg=u=>{Q.useEffect(()=>{u.clearReset()},[u])},Dg=({result:u,errorResetBoundary:l,throwOnError:r,query:c,suspense:f})=>u.isError&&!l.isReset()&&!u.isFetching&&c&&(f&&u.data===void 0||Wm(r,[u.error,c])),Ug=u=>{if(u.suspense){const r=f=>f==="static"?f:Math.max(f??1e3,1e3),c=u.staleTime;u.staleTime=typeof c=="function"?(...f)=>r(c(...f)):r(c),typeof u.gcTime=="number"&&(u.gcTime=Math.max(u.gcTime,1e3))}},qg=(u,l)=>u.isLoading&&u.isFetching&&!l,Hg=(u,l)=>(u==null?void 0:u.suspense)&&l.isPending,Om=(u,l,r)=>l.fetchOptimistic(u).catch(()=>{r.clearReset()});function Bg(u,l,r){var D,G,V,I;const c=_g(),f=Rg(),h=Og(),p=h.defaultQueryOptions(u);(G=(D=h.getDefaultOptions().queries)==null?void 0:D._experimental_beforeQuery)==null||G.call(D,p);const x=h.getQueryCache().get(p.queryHash);p._optimisticResults=c?"isRestoring":"optimistic",Ug(p),Mg(p,f,x),jg(f);const g=!h.getQueryCache().get(p.queryHash),[m]=Q.useState(()=>new l(h,p)),C=m.getOptimisticResult(p),v=!c&&u.subscribed!==!1;if(Q.useSyncExternalStore(Q.useCallback(k=>{const L=v?m.subscribe(me.batchCalls(k)):Qe;return m.updateResult(),L},[m,v]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),Q.useEffect(()=>{m.setOptions(p)},[p,m]),Hg(p,C))throw Om(p,m,f);if(Dg({result:C,errorResetBoundary:f,throwOnError:p.throwOnError,query:x,suspense:p.suspense}))throw C.error;if((I=(V=h.getDefaultOptions().queries)==null?void 0:V._experimental_afterQuery)==null||I.call(V,p,C),p.experimental_prefetchInRender&&!Ru.isServer()&&qg(C,c)){const k=g?Om(p,m,f):x==null?void 0:x.promise;k==null||k.catch(Qe).finally(()=>{m.updateResult()})}return p.notifyOnChangeProps?C:m.trackResult(C)}function tn(u,l){return Bg(u,pg)}const Qg=new Ng({defaultOptions:{queries:{retry:3,staleTime:5e3}}});function Yg(u){return u[0]??{}}function Mu(u){return Array.isArray(u)?u:u==null?[]:[u]}const Am="orpc",Lg="@orpc/shared",Gg="1.13.13";class Xg extends Error{constructor(...l){super(...l),this.name="AbortError"}}function Kg(u){let l;return()=>{if(l)return l.result;const r=u();return l={result:r},r}}function Zg(u){let l=Promise.resolve();return(...r)=>l=l.catch(()=>{}).then(()=>u(...r))}const Vg=2,kg=`__${Lg}@${Gg}/otel/config__`;function vc(){return globalThis[kg]}function of(u,l={},r){var f;const c=(f=vc())==null?void 0:f.tracer;return c==null?void 0:c.startSpan(u,l,r)}function Sl(u,l,r={}){var f;if(!u)return;const c=Jg(l);u.recordException(c),(!((f=r.signal)!=null&&f.aborted)||r.signal.reason!==l)&&u.setStatus({code:Vg,message:c.message})}function Jg(u){if(u instanceof Error){const l={message:u.message,name:u.name,stack:u.stack};return"code"in u&&(typeof u.code=="string"||typeof u.code=="number")&&(l.code=u.code),l}return{message:String(u)}}async function Au({name:u,context:l,...r},c){var p;const f=(p=vc())==null?void 0:p.tracer;if(!f)return c();const h=async x=>{try{return await c(x)}catch(g){throw Sl(x,g,r),g}finally{x.end()}};return l?f.startActiveSpan(u,r,l,h):f.startActiveSpan(u,r,h)}async function Ni(u,l){const r=vc();if(!u||!r)return l();const c=r.trace.setSpan(r.context.active(),u);return r.context.with(c,l)}function Ln(u){return!u||typeof u!="object"?!1:"next"in u&&typeof u.next=="function"&&Symbol.asyncIterator in u&&typeof u[Symbol.asyncIterator]=="function"}const $g=Symbol.for("asyncDispose"),Fg=Symbol.asyncDispose??$g;var Ca,va,Qn,Qu;class ff{constructor(l,r){it(this,Ca,!1);it(this,va,!1);it(this,Qn);it(this,Qu);F(this,Qn,r),F(this,Qu,Zg(async()=>{if(S(this,Ca))return{done:!0,value:void 0};try{const c=await l();return c.done&&F(this,Ca,!0),c}catch(c){throw F(this,Ca,!0),c}finally{S(this,Ca)&&!S(this,va)&&(F(this,va,!0),await S(this,Qn).call(this,"next"))}}))}next(){return S(this,Qu).call(this)}async return(l){return F(this,Ca,!0),S(this,va)||(F(this,va,!0),await S(this,Qn).call(this,"return")),{done:!0,value:l}}async throw(l){throw F(this,Ca,!0),S(this,va)||(F(this,va,!0),await S(this,Qn).call(this,"throw")),l}async[Fg](){F(this,Ca,!0),S(this,va)||(F(this,va,!0),await S(this,Qn).call(this,"dispose"))}[Symbol.asyncIterator](){return this}}Ca=new WeakMap,va=new WeakMap,Qn=new WeakMap,Qu=new WeakMap;function _m({name:u,...l},r){let c;return new ff(async()=>{c??(c=of(u));try{const f=await Ni(c,()=>r.next());return c==null||c.addEvent(f.done?"completed":"yielded"),f}catch(f){throw Sl(c,f,l),f}},async f=>{try{f!=="next"&&await Ni(c,()=>{var h;return(h=r.return)==null?void 0:h.call(r)})}catch(h){throw Sl(c,h,l),h}finally{c==null||c.end()}})}function Io(u,l,r){const c=(f,h)=>{const p=u[h];return p?p({...f,next:(x=f)=>c(x,h+1)}):r(f)};return c(l,0)}function cc(u){if(u)return JSON.parse(u)}function Oi(u){return JSON.stringify(u)}function Wg(u){var l;return El(u)?(l=Object.getPrototypeOf(u))==null?void 0:l.constructor:null}function uy(u){if(!u||typeof u!="object")return!1;const l=Object.getPrototypeOf(u);return l===Object.prototype||!l||!l.constructor}function El(u){return!!u&&(typeof u=="object"||typeof u=="function")}function Ig(u,l){let r=u;for(const c of l){if(!El(r))return;r=r[c]}return r}function lc(u,...l){return typeof u=="function"?u(...l):u}function sy(u){return new Proxy(u,{get(l,r,c){const f=Reflect.get(l,r,c);return r!=="then"||typeof f!="function"?f:new Proxy(f,{apply(h,p,x){if(x.length!==2||x.some(m=>!t1(m)))return Reflect.apply(h,p,x);let g=!0;x[0].call(p,sy(new Proxy(l,{get:(m,C,v)=>{if(g&&C==="then"){g=!1;return}return Reflect.get(m,C,v)}})))}})}})}const Pg=/^\s*function\s*\(\)\s*\{\s*\[native code\]\s*\}\s*$/;function t1(u){return typeof u=="function"&&Pg.test(u.toString())}function e1(u){try{return decodeURIComponent(u)}catch{return u}}const a1="@orpc/client",n1="1.13.13",df={BAD_REQUEST:{status:400,message:"Bad Request"},UNAUTHORIZED:{status:401,message:"Unauthorized"},FORBIDDEN:{status:403,message:"Forbidden"},NOT_FOUND:{status:404,message:"Not Found"},METHOD_NOT_SUPPORTED:{status:405,message:"Method Not Supported"},NOT_ACCEPTABLE:{status:406,message:"Not Acceptable"},TIMEOUT:{status:408,message:"Request Timeout"},CONFLICT:{status:409,message:"Conflict"},PRECONDITION_FAILED:{status:412,message:"Precondition Failed"},PAYLOAD_TOO_LARGE:{status:413,message:"Payload Too Large"},UNSUPPORTED_MEDIA_TYPE:{status:415,message:"Unsupported Media Type"},UNPROCESSABLE_CONTENT:{status:422,message:"Unprocessable Content"},TOO_MANY_REQUESTS:{status:429,message:"Too Many Requests"},CLIENT_CLOSED_REQUEST:{status:499,message:"Client Closed Request"},INTERNAL_SERVER_ERROR:{status:500,message:"Internal Server Error"},NOT_IMPLEMENTED:{status:501,message:"Not Implemented"},BAD_GATEWAY:{status:502,message:"Bad Gateway"},SERVICE_UNAVAILABLE:{status:503,message:"Service Unavailable"},GATEWAY_TIMEOUT:{status:504,message:"Gateway Timeout"}};function l1(u,l){var r;return l??((r=df[u])==null?void 0:r.status)??500}function i1(u,l){var r;return l||((r=df[u])==null?void 0:r.message)||u}const rc=Symbol.for(`__${a1}@${n1}/error/ORPC_ERROR_CONSTRUCTORS__`);globalThis[rc]??(globalThis[rc]=new WeakSet);const Po=globalThis[rc];class ju extends Error{constructor(r,...c){const f=Yg(c);if(f.status!==void 0&&!hf(f.status))throw new Error("[ORPCError] Invalid error status code.");const h=i1(r,f.message);super(h,f);le(this,"defined");le(this,"code");le(this,"status");le(this,"data");this.code=r,this.status=l1(r,f.status),this.defined=f.defined??!1,this.data=f.data}toJSON(){return{defined:this.defined,code:this.code,status:this.status,message:this.message,data:this.data}}static[Symbol.hasInstance](r){if(Po.has(this)){const c=Wg(r);if(c&&Po.has(c))return!0}return super[Symbol.hasInstance](r)}}Po.add(ju);function u1(u){return u instanceof ju?u:new ju("INTERNAL_SERVER_ERROR",{message:"Internal server error",cause:u})}function hf(u){return u<200||u>=400}function cy(u){if(!uy(u))return!1;const l=["defined","code","status","message","data"];return Object.keys(u).some(r=>!l.includes(r))?!1:"defined"in u&&typeof u.defined=="boolean"&&"code"in u&&typeof u.code=="string"&&"status"in u&&typeof u.status=="number"&&hf(u.status)&&"message"in u&&typeof u.message=="string"}function ry(u,l={}){return new ju(u.code,{...l,...u})}class pc extends TypeError{}class s1 extends TypeError{}class di extends Error{constructor(r){super((r==null?void 0:r.message)??"An error event was received",r);le(this,"data");this.data=r==null?void 0:r.data}}function c1(u){var c;const l=u.replace(/\n+$/,"").split(/\n/),r={data:void 0,event:void 0,id:void 0,retry:void 0,comments:[]};for(const f of l){const h=f.indexOf(":"),p=h===-1?f:f.slice(0,h),x=h===-1?"":f.slice(h+1).replace(/^\s/,"");if(h===0)r.comments.push(x);else if(p==="data")r.data??(r.data=""),r.data+=`${x}
50
+ `;else if(p==="event")r.event=x;else if(p==="id")r.id=x;else if(p==="retry"){const g=Number.parseInt(x);Number.isInteger(g)&&g>=0&&g.toString()===x&&(r.retry=g)}}return r.data=(c=r.data)==null?void 0:c.replace(/\n$/,""),r}class r1{constructor(l={}){le(this,"incomplete","");this.options=l}feed(l){this.incomplete+=l;const r=this.incomplete.lastIndexOf(`
51
+
52
+ `);if(r===-1)return;const c=this.incomplete.slice(0,r).split(/\n\n/);this.incomplete=this.incomplete.slice(r+2);for(const f of c){const h=c1(`${f}
53
+
54
+ `);this.options.onEvent&&this.options.onEvent(h)}}end(){if(this.incomplete)throw new s1("Event Iterator ended before complete")}}class o1 extends TransformStream{constructor(){let l;super({start(r){l=new r1({onEvent:c=>{r.enqueue(c)}})},transform(r){l.feed(r)},flush(){l.end()}})}}function oy(u){if(u.includes(`
55
+ `))throw new pc("Event's id must not contain a newline character")}function f1(u){if(u.includes(`
56
+ `))throw new pc("Event's event must not contain a newline character")}function fy(u){if(!Number.isInteger(u)||u<0)throw new pc("Event's retry must be a integer and >= 0")}function dy(u){if(u.includes(`
57
+ `))throw new pc("Event's comment must not contain a newline character")}function d1(u){const l=(u==null?void 0:u.split(/\n/))??[];let r="";for(const c of l)r+=`data: ${c}
58
+ `;return r}function h1(u){let l="";for(const r of u??[])dy(r),l+=`: ${r}
59
+ `;return l}function ic(u){let l="";return l+=h1(u.comments),u.event!==void 0&&(f1(u.event),l+=`event: ${u.event}
60
+ `),u.retry!==void 0&&(fy(u.retry),l+=`retry: ${u.retry}
61
+ `),u.id!==void 0&&(oy(u.id),l+=`id: ${u.id}
62
+ `),l+=d1(u.data),l+=`
63
+ `,l}const hy=Symbol("ORPC_EVENT_SOURCE_META");function _u(u,l){var r;if(l.id===void 0&&l.retry===void 0&&!((r=l.comments)!=null&&r.length))return u;if(l.id!==void 0&&oy(l.id),l.retry!==void 0&&fy(l.retry),l.comments!==void 0)for(const c of l.comments)dy(c);return new Proxy(u,{get(c,f,h){return f===hy?l:Reflect.get(c,f,h)}})}function hc(u){return El(u)?Reflect.get(u,hy):void 0}function m1(u){const l=u.replace(/[^\x20-\x7E]/g,"_").replace(/"/g,'\\"'),r=encodeURIComponent(u).replace(/['()*]/g,c=>`%${c.charCodeAt(0).toString(16).toUpperCase()}`).replace(/%(7C|60|5E)/g,(c,f)=>String.fromCharCode(Number.parseInt(f,16)));return`inline; filename="${l}"; filename*=utf-8''${r}`}function y1(u){const l=u.match(/filename\*=(UTF-8'')?([^;]*)/i);if(l&&typeof l[2]=="string")return e1(l[2]);const r=u.match(/filename="((?:\\"|[^"])*)"/i);if(r&&typeof r[1]=="string")return r[1].replace(/\\"/g,'"')}function v1(u,l){const r={...u};for(const c in l)Array.isArray(l[c])?r[c]=[...Mu(r[c]),...l[c]]:l[c]!==void 0&&(Array.isArray(r[c])?r[c]=[...r[c],l[c]]:r[c]!==void 0?r[c]=[r[c],l[c]]:r[c]=l[c]);return r}function Cm(u,l){const r=async c=>{let f=await l.error(c);if(f!==c){const h=hc(c);h&&El(f)&&(f=_u(f,h))}return f};return new ff(async()=>{const{done:c,value:f}=await(async()=>{try{return await u.next()}catch(p){throw await r(p)}})();let h=await l.value(f,c);if(h!==f){const p=hc(f);p&&El(h)&&(h=_u(h,p))}return{done:c,value:h}},async()=>{var c;try{await((c=u.return)==null?void 0:c.call(u))}catch(f){throw await r(f)}})}function p1(u){return{...u,context:u.context??{}}}function my(u,l={}){const r=l.path??[],c=async(...[h,p={}])=>await u.call(r,h,p1(p)),f=new Proxy(c,{get(h,p){return typeof p!="string"?Reflect.get(h,p):my(u,{...l,path:[...r,p]})}});return sy(f)}function g1(u,l={}){const r=u==null?void 0:u.pipeThrough(new TextDecoderStream).pipeThrough(new o1),c=r==null?void 0:r.getReader();let f,h=!1;return new ff(async()=>{f??(f=of("consume_event_iterator_stream"));try{for(;;){if(c===void 0)return{done:!0,value:void 0};const{done:p,value:x}=await Ni(f,()=>c.read());if(p){if(h)throw new Xg("Stream was cancelled");return{done:!0,value:void 0}}switch(x.event){case"message":{let g=cc(x.data);return El(g)&&(g=_u(g,x)),f==null||f.addEvent("message"),{done:!1,value:g}}case"error":{let g=new di({data:cc(x.data)});throw g=_u(g,x),f==null||f.addEvent("error"),g}case"done":{let g=cc(x.data);return El(g)&&(g=_u(g,x)),f==null||f.addEvent("done"),{done:!0,value:g}}default:f==null||f.addEvent("maybe_keepalive")}}}catch(p){throw p instanceof di||Sl(f,p,l),p}},async p=>{try{p!=="next"&&(h=!0,f==null||f.addEvent("cancelled")),await Ni(f,()=>c==null?void 0:c.cancel())}catch(x){throw Sl(f,x,l),x}finally{f==null||f.end()}})}function b1(u,l={}){const r=l.eventIteratorKeepAliveEnabled??!0,c=l.eventIteratorKeepAliveInterval??5e3,f=l.eventIteratorKeepAliveComment??"",h=l.eventIteratorInitialCommentEnabled??!0,p=l.eventIteratorInitialComment??"";let x=!1,g,m;return new ReadableStream({start(v){m=of("stream_event_iterator"),h&&v.enqueue(ic({comments:[p]}))},async pull(v){try{r&&(g=setInterval(()=>{v.enqueue(ic({comments:[f]})),m==null||m.addEvent("keepalive")},c));const D=await Ni(m,()=>u.next());if(clearInterval(g),x)return;const G=hc(D.value);if(!D.done||D.value!==void 0||G!==void 0){const V=D.done?"done":"message";v.enqueue(ic({...G,event:V,data:Oi(D.value)})),m==null||m.addEvent(V)}D.done&&(v.close(),m==null||m.end())}catch(D){if(clearInterval(g),x)return;D instanceof di?(v.enqueue(ic({...hc(D),event:"error",data:Oi(D.data)})),m==null||m.addEvent("error"),v.close()):(Sl(m,D),v.error(D)),m==null||m.end()}},async cancel(){try{x=!0,clearInterval(g),m==null||m.addEvent("cancelled"),await Ni(m,()=>{var v;return(v=u.return)==null?void 0:v.call(u)})}catch(v){throw Sl(m,v),v}finally{m==null||m.end()}}}).pipeThrough(new TextEncoderStream)}function x1(u,l={}){return Au({name:"parse_standard_body",signal:l.signal},async()=>{const r=u.headers.get("content-disposition");if(typeof r=="string"){const h=y1(r)??"blob",p=await u.blob();return new File([p],h,{type:p.type})}const c=u.headers.get("content-type");if(!c||c.startsWith("application/json")){const h=await u.text();return cc(h)}if(c.startsWith("multipart/form-data"))return await u.formData();if(c.startsWith("application/x-www-form-urlencoded")){const h=await u.text();return new URLSearchParams(h)}if(c.startsWith("text/event-stream"))return g1(u.body,l);if(c.startsWith("text/plain"))return await u.text();const f=await u.blob();return new File([f],"blob",{type:f.type})})}function S1(u,l,r={}){const c=l.get("content-disposition");if(l.delete("content-type"),l.delete("content-disposition"),u!==void 0)return u instanceof Blob?(l.set("content-type",u.type),l.set("content-length",u.size.toString()),l.set("content-disposition",c??m1(u instanceof File?u.name:"blob")),u):u instanceof FormData||u instanceof URLSearchParams?u:Ln(u)?(l.set("content-type","text/event-stream"),b1(u,r)):(l.set("content-type","application/json"),Oi(u))}function yy(u,l={}){return u.forEach((r,c)=>{Array.isArray(l[c])?l[c].push(r):l[c]!==void 0?l[c]=[l[c],r]:l[c]=r}),l}function E1(u,l=new Headers){for(const[r,c]of Object.entries(u))if(Array.isArray(c))for(const f of c)l.append(r,f);else c!==void 0&&l.append(r,c);return l}function z1(u,l={}){const r=E1(u.headers),c=S1(u.body,r,l);return new Request(u.url,{signal:u.signal,method:u.method,headers:r,body:c})}function T1(u,l={}){return{body:Kg(()=>x1(u,l)),status:u.status,get headers(){const r=yy(u.headers);return Object.defineProperty(this,"headers",{value:r,writable:!0}),r},set headers(r){Object.defineProperty(this,"headers",{value:r,writable:!0})}}}class vy{constructor(l=[]){le(this,"plugins");this.plugins=[...l].sort((r,c)=>(r.order??0)-(c.order??0))}init(l){var r;for(const c of this.plugins)(r=c.init)==null||r.call(c,l)}}class N1{constructor(l,r,c={}){le(this,"interceptors");le(this,"clientInterceptors");this.codec=l,this.sender=r,new vy(c.plugins).init(c),this.interceptors=Mu(c.interceptors),this.clientInterceptors=Mu(c.clientInterceptors)}call(l,r,c){return Au({name:`${Am}.${l.join("/")}`,signal:c.signal},f=>(f==null||f.setAttribute("rpc.system",Am),f==null||f.setAttribute("rpc.method",l.join(".")),Ln(r)&&(r=_m({name:"consume_event_iterator_input",signal:c.signal},r)),Io(this.interceptors,{...c,path:l,input:r},async({path:h,input:p,...x})=>{const g=vc();let m;const C=(g==null?void 0:g.trace.getActiveSpan())??f;C&&g&&(m=g==null?void 0:g.trace.setSpan(g.context.active(),C));const v=await Au({name:"encode_request",context:m},()=>this.codec.encode(h,p,x)),D=await Io(this.clientInterceptors,{...x,input:p,path:h,request:v},({input:V,path:I,request:k,...L})=>Au({name:"send_request",signal:L.signal,context:m},()=>this.sender.call(k,L,I,V))),G=await Au({name:"decode_response",context:m},()=>this.codec.decode(D,x,h,p));return Ln(G)?_m({name:"consume_event_iterator_output",signal:x.signal},G):G})))}}const ge={BIGINT:0,DATE:1,NAN:2,UNDEFINED:3,URL:4,REGEXP:5,SET:6,MAP:7};class O1{constructor(l={}){le(this,"customSerializers");if(this.customSerializers=l.customJsonSerializers??[],this.customSerializers.length!==new Set(this.customSerializers.map(r=>r.type)).size)throw new Error("Custom serializer type must be unique.")}serialize(l,r=[],c=[],f=[],h=[]){for(const p of this.customSerializers)if(p.condition(l)){const x=this.serialize(p.serialize(l),r,c,f,h);return c.push([p.type,...r]),x}if(l instanceof Blob)return f.push(r),h.push(l),[l,c,f,h];if(typeof l=="bigint")return c.push([ge.BIGINT,...r]),[l.toString(),c,f,h];if(l instanceof Date)return c.push([ge.DATE,...r]),Number.isNaN(l.getTime())?[null,c,f,h]:[l.toISOString(),c,f,h];if(Number.isNaN(l))return c.push([ge.NAN,...r]),[null,c,f,h];if(l instanceof URL)return c.push([ge.URL,...r]),[l.toString(),c,f,h];if(l instanceof RegExp)return c.push([ge.REGEXP,...r]),[l.toString(),c,f,h];if(l instanceof Set){const p=this.serialize(Array.from(l),r,c,f,h);return c.push([ge.SET,...r]),p}if(l instanceof Map){const p=this.serialize(Array.from(l.entries()),r,c,f,h);return c.push([ge.MAP,...r]),p}if(Array.isArray(l))return[l.map((x,g)=>x===void 0?(c.push([ge.UNDEFINED,...r,g]),null):this.serialize(x,[...r,g],c,f,h)[0]),c,f,h];if(uy(l)){const p={};for(const x in l)x==="toJSON"&&typeof l[x]=="function"||(p[x]=this.serialize(l[x],[...r,x],c,f,h)[0]);return[p,c,f,h]}return[l,c,f,h]}deserialize(l,r,c,f){const h={data:l};c&&f&&c.forEach((p,x)=>{let g=h,m="data";p.forEach(C=>{if(g=g[m],m=C,!Object.hasOwn(g,m))throw new Error(`Security error: accessing non-existent path during deserialization. Path segment: ${m}`)}),g[m]=f(x)});for(const p of r){const x=p[0];let g=h,m="data";for(let C=1;C<p.length;C++)if(g=g[m],m=p[C],!Object.hasOwn(g,m))throw new Error(`Security error: accessing non-existent path during deserialization. Path segment: ${m}`);for(const C of this.customSerializers)if(C.type===x){g[m]=C.deserialize(g[m]);break}switch(x){case ge.BIGINT:g[m]=BigInt(g[m]);break;case ge.DATE:g[m]=new Date(g[m]??"Invalid Date");break;case ge.NAN:g[m]=Number.NaN;break;case ge.UNDEFINED:g[m]=void 0;break;case ge.URL:g[m]=new URL(g[m]);break;case ge.REGEXP:{const[,C,v]=g[m].match(/^\/(.*)\/([a-z]*)$/);g[m]=new RegExp(C,v);break}case ge.SET:g[m]=new Set(g[m]);break;case ge.MAP:g[m]=new Map(g[m]);break}}return h.data}}function A1(u){return`/${u.map(encodeURIComponent).join("/")}`}function _1(u){return typeof u.forEach=="function"?yy(u):u}function C1(u){var l;return((l=Object.entries(df).find(([,r])=>r.status===u))==null?void 0:l[0])??"MALFORMED_ORPC_ERROR_RESPONSE"}class w1{constructor(l,r){le(this,"baseUrl");le(this,"maxUrlLength");le(this,"fallbackMethod");le(this,"expectedMethod");le(this,"headers");this.serializer=l,this.baseUrl=r.url,this.maxUrlLength=r.maxUrlLength??2083,this.fallbackMethod=r.fallbackMethod??"POST",this.expectedMethod=r.method??this.fallbackMethod,this.headers=r.headers??{}}async encode(l,r,c){let f=_1(await lc(this.headers,c,l,r));c.lastEventId!==void 0&&(f=v1(f,{"last-event-id":c.lastEventId}));const h=await lc(this.expectedMethod,c,l,r),p=await lc(this.baseUrl,c,l,r),x=new URL(p);x.pathname=`${x.pathname.replace(/\/$/,"")}${A1(l)}`;const g=this.serializer.serialize(r);if(h==="GET"&&!(g instanceof FormData)&&!Ln(g)){const m=await lc(this.maxUrlLength,c,l,r),C=new URL(x);if(C.searchParams.append("data",Oi(g)),C.toString().length<=m)return{body:void 0,method:h,headers:f,url:C,signal:c.signal}}return{url:x,method:h==="GET"?this.fallbackMethod:h,headers:f,body:g,signal:c.signal}}async decode(l){const r=!hf(l.status),c=await(async()=>{let f=!1;try{const h=await l.body();return f=!0,this.serializer.deserialize(h)}catch(h){throw f?new Error("Invalid RPC response format.",{cause:h}):new Error("Cannot parse response body, please check the response body and content-type.",{cause:h})}})();if(!r)throw cy(c)?ry(c):new ju(C1(l.status),{status:l.status,data:{...l,body:c}});return c}}var wa,oc,fc;class R1{constructor(l){it(this,wa);this.jsonSerializer=l}serialize(l){return Ln(l)?Cm(l,{value:async r=>pt(this,wa,oc).call(this,r,!1),error:async r=>new di({data:pt(this,wa,oc).call(this,u1(r).toJSON(),!1),cause:r})}):pt(this,wa,oc).call(this,l,!0)}deserialize(l){return Ln(l)?Cm(l,{value:async r=>pt(this,wa,fc).call(this,r),error:async r=>{if(!(r instanceof di))return r;const c=pt(this,wa,fc).call(this,r.data);return cy(c)?ry(c,{cause:r}):new di({data:c,cause:r})}}):pt(this,wa,fc).call(this,l)}}wa=new WeakSet,oc=function(l,r){const[c,f,h,p]=this.jsonSerializer.serialize(l),x=f.length===0?void 0:f;if(!r||p.length===0)return{json:c,meta:x};const g=new FormData;return g.set("data",Oi({json:c,meta:x,maps:h})),p.forEach((m,C)=>{g.set(C.toString(),m)}),g},fc=function(l){if(l===void 0)return;if(!(l instanceof FormData))return this.jsonSerializer.deserialize(l.json,l.meta??[]);const r=JSON.parse(l.get("data"));return this.jsonSerializer.deserialize(r.json,r.meta??[],r.maps,c=>l.get(c.toString()))};class M1 extends N1{constructor(l,r){const c=new O1(r),f=new R1(c),h=new w1(f,r);super(h,l,r)}}class j1 extends vy{initRuntimeAdapter(l){var r;for(const c of this.plugins)(r=c.initRuntimeAdapter)==null||r.call(c,l)}}class D1{constructor(l){le(this,"fetch");le(this,"toFetchRequestOptions");le(this,"adapterInterceptors");new j1(l.plugins).initRuntimeAdapter(l),this.fetch=l.fetch??globalThis.fetch.bind(globalThis),this.toFetchRequestOptions=l,this.adapterInterceptors=Mu(l.adapterInterceptors)}async call(l,r,c,f){const h=z1(l,this.toFetchRequestOptions),p=await Io(this.adapterInterceptors,{...r,request:h,path:c,input:f,init:{redirect:"manual"}},({request:g,path:m,input:C,init:v,...D})=>this.fetch(g,v,D,m,C));return T1(p,{signal:h.signal})}}class U1 extends M1{constructor(l){const r=new D1(l);super(r,l)}}function fi(u,l={}){return[u,{...l.input!==void 0?{input:l.input}:{},...l.type!==void 0?{type:l.type}:{},...l.fnOptions!==void 0?{fnOptions:l.fnOptions}:{}}]}function q1(u){return{key(l){return fi(u,l)}}}function H1(u){return async l=>{const r=await u(l);let c;for await(const f of r){if(l.signal.aborted)throw l.signal.reason;c={chunk:f},l.client.setQueryData(l.queryKey,f)}if(!c)throw new Error(`Live query for ${Oi(l.queryKey)} did not yield any data. Ensure the query function returns an AsyncIterable with at least one chunk.`);return c.chunk}}function B1(u,{refetchMode:l="reset",maxChunks:r=Number.POSITIVE_INFINITY}={}){return async c=>{const f=c.client.getQueryCache().find({queryKey:c.queryKey,exact:!0}),h=!!f&&f.state.data!==void 0;h&&(l==="reset"?f.setState({status:"pending",data:void 0,error:null,fetchStatus:"fetching"}):c.client.setQueryData(c.queryKey,(C=[])=>Tu(C,r)));let p=[];const x=await u(c),g=!h||l!=="replace";c.client.setQueryData(c.queryKey,(C=[])=>Tu(C,r));for await(const C of x){if(c.signal.aborted)throw c.signal.reason;p.push(C),p=Tu(p,r),g&&c.client.setQueryData(c.queryKey,(v=[])=>Tu([...v,C],r))}g||c.client.setQueryData(c.queryKey,p);const m=c.client.getQueryData(c.queryKey);return m?Tu(m,r):p}}function Tu(u,l){return u.length<=l?u:u.slice(u.length-l)}const Nu=Symbol("ORPC_OPERATION_CONTEXT");function Q1(u,l){const r={call:u,queryKey(...[c={}]){var h;return c={...(h=l.experimental_defaults)==null?void 0:h.queryKey,...c},c.queryKey??fi(l.path,{type:"query",input:c.input})},queryOptions(...[c={}]){var h;c={...(h=l.experimental_defaults)==null?void 0:h.queryOptions,...c};const f=r.queryKey(c);return{queryFn:({signal:p})=>{if(c.input===$e)throw new Error("queryFn should not be called with skipToken used as input");return u(c.input,{signal:p,context:{[Nu]:{key:f,type:"query"},...c.context}})},...c.input===$e?{enabled:!1}:{},...c,queryKey:f}},experimental_streamedKey(...[c={}]){var h;return c={...(h=l.experimental_defaults)==null?void 0:h.experimental_streamedKey,...c},c.queryKey??fi(l.path,{type:"streamed",input:c.input,fnOptions:c.queryFnOptions})},experimental_streamedOptions(...[c={}]){var h;c={...(h=l.experimental_defaults)==null?void 0:h.experimental_streamedOptions,...c};const f=r.experimental_streamedKey(c);return{queryFn:B1(async({signal:p})=>{if(c.input===$e)throw new Error("queryFn should not be called with skipToken used as input");const x=await u(c.input,{signal:p,context:{[Nu]:{key:f,type:"streamed"},...c.context}});if(!Ln(x))throw new Error("streamedQuery requires an event iterator output");return x},c.queryFnOptions),...c.input===$e?{enabled:!1}:{},...c,queryKey:f}},experimental_liveKey(...[c={}]){var h;return c={...(h=l.experimental_defaults)==null?void 0:h.experimental_liveKey,...c},c.queryKey??fi(l.path,{type:"live",input:c.input})},experimental_liveOptions(...[c={}]){var h;c={...(h=l.experimental_defaults)==null?void 0:h.experimental_liveOptions,...c};const f=r.experimental_liveKey(c);return{queryFn:H1(async({signal:p})=>{if(c.input===$e)throw new Error("queryFn should not be called with skipToken used as input");const x=await u(c.input,{signal:p,context:{[Nu]:{key:f,type:"live"},...c.context}});if(!Ln(x))throw new Error("liveQuery requires an event iterator output");return x}),...c.input===$e?{enabled:!1}:{},...c,queryKey:f}},infiniteKey(c){var h;return c={...(h=l.experimental_defaults)==null?void 0:h.infiniteKey,...c},c.queryKey??fi(l.path,{type:"infinite",input:c.input===$e?$e:c.input(c.initialPageParam)})},infiniteOptions(c){var h;c={...(h=l.experimental_defaults)==null?void 0:h.infiniteOptions,...c};const f=r.infiniteKey(c);return{queryFn:({pageParam:p,signal:x})=>{if(c.input===$e)throw new Error("queryFn should not be called with skipToken used as input");return u(c.input(p),{signal:x,context:{[Nu]:{key:f,type:"infinite"},...c.context}})},...c.input===$e?{enabled:!1}:{},...c,queryKey:f}},mutationKey(...[c={}]){var h;return c={...(h=l.experimental_defaults)==null?void 0:h.mutationKey,...c},c.mutationKey??fi(l.path,{type:"mutation"})},mutationOptions(...[c={}]){var h;c={...(h=l.experimental_defaults)==null?void 0:h.mutationOptions,...c};const f=r.mutationKey(c);return{mutationFn:p=>u(p,{context:{[Nu]:{key:f,type:"mutation"},...c.context}}),...c,mutationKey:f}}};return r}function py(u,l={}){const r=Mu(l.path),c=q1(r),f=Q1(u,{path:r,experimental_defaults:l.experimental_defaults});return new Proxy({...c,...f},{get(p,x){const g=Reflect.get(p,x);if(typeof x!="string")return g;const m=py(u[x],{...l,path:[...r,x],experimental_defaults:Ig(l.experimental_defaults,[x])});return typeof g!="function"?m:new Proxy(g,{get(C,v){return Reflect.get(m,v)}})}})}const Y1=typeof window>"u"?"http://localhost:4400/rpc":new URL("/rpc",window.location.origin).toString(),L1=new U1({url:Y1}),qe=my(L1),en=py(qe);/**
64
+ * @license lucide-react v0.546.0 - ISC
65
+ *
66
+ * This source code is licensed under the ISC license.
67
+ * See the LICENSE file in the root directory of this source tree.
68
+ */const G1=u=>u.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),X1=u=>u.replace(/^([A-Z])|[\s-_]+(\w)/g,(l,r,c)=>c?c.toUpperCase():r.toLowerCase()),wm=u=>{const l=X1(u);return l.charAt(0).toUpperCase()+l.slice(1)},gy=(...u)=>u.filter((l,r,c)=>!!l&&l.trim()!==""&&c.indexOf(l)===r).join(" ").trim(),K1=u=>{for(const l in u)if(l.startsWith("aria-")||l==="role"||l==="title")return!0};/**
69
+ * @license lucide-react v0.546.0 - ISC
70
+ *
71
+ * This source code is licensed under the ISC license.
72
+ * See the LICENSE file in the root directory of this source tree.
73
+ */var Z1={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"};/**
74
+ * @license lucide-react v0.546.0 - ISC
75
+ *
76
+ * This source code is licensed under the ISC license.
77
+ * See the LICENSE file in the root directory of this source tree.
78
+ */const V1=Q.forwardRef(({color:u="currentColor",size:l=24,strokeWidth:r=2,absoluteStrokeWidth:c,className:f="",children:h,iconNode:p,...x},g)=>Q.createElement("svg",{ref:g,...Z1,width:l,height:l,stroke:u,strokeWidth:c?Number(r)*24/Number(l):r,className:gy("lucide",f),...!h&&!K1(x)&&{"aria-hidden":"true"},...x},[...p.map(([m,C])=>Q.createElement(m,C)),...Array.isArray(h)?h:[h]]));/**
79
+ * @license lucide-react v0.546.0 - ISC
80
+ *
81
+ * This source code is licensed under the ISC license.
82
+ * See the LICENSE file in the root directory of this source tree.
83
+ */const Ft=(u,l)=>{const r=Q.forwardRef(({className:c,...f},h)=>Q.createElement(V1,{ref:h,iconNode:l,className:gy(`lucide-${G1(wm(u))}`,`lucide-${u}`,c),...f}));return r.displayName=wm(u),r};/**
84
+ * @license lucide-react v0.546.0 - ISC
85
+ *
86
+ * This source code is licensed under the ISC license.
87
+ * See the LICENSE file in the root directory of this source tree.
88
+ */const k1=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],J1=Ft("check",k1);/**
89
+ * @license lucide-react v0.546.0 - ISC
90
+ *
91
+ * This source code is licensed under the ISC license.
92
+ * See the LICENSE file in the root directory of this source tree.
93
+ */const $1=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],by=Ft("chevron-down",$1);/**
94
+ * @license lucide-react v0.546.0 - ISC
95
+ *
96
+ * This source code is licensed under the ISC license.
97
+ * See the LICENSE file in the root directory of this source tree.
98
+ */const F1=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],xy=Ft("chevron-right",F1);/**
99
+ * @license lucide-react v0.546.0 - ISC
100
+ *
101
+ * This source code is licensed under the ISC license.
102
+ * See the LICENSE file in the root directory of this source tree.
103
+ */const W1=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Sy=Ft("circle-check-big",W1);/**
104
+ * @license lucide-react v0.546.0 - ISC
105
+ *
106
+ * This source code is licensed under the ISC license.
107
+ * See the LICENSE file in the root directory of this source tree.
108
+ */const I1=[["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"}]],Ey=Ft("circle-x",I1);/**
109
+ * @license lucide-react v0.546.0 - ISC
110
+ *
111
+ * This source code is licensed under the ISC license.
112
+ * See the LICENSE file in the root directory of this source tree.
113
+ */const P1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],zy=Ft("circle",P1);/**
114
+ * @license lucide-react v0.546.0 - ISC
115
+ *
116
+ * This source code is licensed under the ISC license.
117
+ * See the LICENSE file in the root directory of this source tree.
118
+ */const tb=[["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"}]],Ty=Ft("copy",tb);/**
119
+ * @license lucide-react v0.546.0 - ISC
120
+ *
121
+ * This source code is licensed under the ISC license.
122
+ * See the LICENSE file in the root directory of this source tree.
123
+ */const eb=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],ab=Ft("funnel",eb);/**
124
+ * @license lucide-react v0.546.0 - ISC
125
+ *
126
+ * This source code is licensed under the ISC license.
127
+ * See the LICENSE file in the root directory of this source tree.
128
+ */const nb=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],lb=Ft("image",nb);/**
129
+ * @license lucide-react v0.546.0 - ISC
130
+ *
131
+ * This source code is licensed under the ISC license.
132
+ * See the LICENSE file in the root directory of this source tree.
133
+ */const ib=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],tf=Ft("loader-circle",ib);/**
134
+ * @license lucide-react v0.546.0 - ISC
135
+ *
136
+ * This source code is licensed under the ISC license.
137
+ * See the LICENSE file in the root directory of this source tree.
138
+ */const ub=[["path",{d:"M17 17H4a2 2 0 0 1-2-2V5c0-1.5 1-2 1-2",key:"k0q8oc"}],["path",{d:"M22 15V5a2 2 0 0 0-2-2H9",key:"cp1ac0"}],["path",{d:"M8 21h8",key:"1ev6f3"}],["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],sb=Ft("monitor-off",ub);/**
139
+ * @license lucide-react v0.546.0 - ISC
140
+ *
141
+ * This source code is licensed under the ISC license.
142
+ * See the LICENSE file in the root directory of this source tree.
143
+ */const cb=[["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"}]],rb=Ft("monitor",cb);/**
144
+ * @license lucide-react v0.546.0 - ISC
145
+ *
146
+ * This source code is licensed under the ISC license.
147
+ * See the LICENSE file in the root directory of this source tree.
148
+ */const ob=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],fb=Ft("play",ob);/**
149
+ * @license lucide-react v0.546.0 - ISC
150
+ *
151
+ * This source code is licensed under the ISC license.
152
+ * See the LICENSE file in the root directory of this source tree.
153
+ */const db=[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],hb=Ft("radio",db);/**
154
+ * @license lucide-react v0.546.0 - ISC
155
+ *
156
+ * This source code is licensed under the ISC license.
157
+ * See the LICENSE file in the root directory of this source tree.
158
+ */const mb=[["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"}]],yb=Ft("refresh-cw",mb);/**
159
+ * @license lucide-react v0.546.0 - ISC
160
+ *
161
+ * This source code is licensed under the ISC license.
162
+ * See the LICENSE file in the root directory of this source tree.
163
+ */const vb=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],pb=Ft("rotate-ccw",vb);/**
164
+ * @license lucide-react v0.546.0 - ISC
165
+ *
166
+ * This source code is licensed under the ISC license.
167
+ * See the LICENSE file in the root directory of this source tree.
168
+ */const gb=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],bb=Ft("search",gb);/**
169
+ * @license lucide-react v0.546.0 - ISC
170
+ *
171
+ * This source code is licensed under the ISC license.
172
+ * See the LICENSE file in the root directory of this source tree.
173
+ */const xb=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],Sb=Ft("smartphone",xb);/**
174
+ * @license lucide-react v0.546.0 - ISC
175
+ *
176
+ * This source code is licensed under the ISC license.
177
+ * See the LICENSE file in the root directory of this source tree.
178
+ */const Eb=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],zb=Ft("square",Eb);/**
179
+ * @license lucide-react v0.546.0 - ISC
180
+ *
181
+ * This source code is licensed under the ISC license.
182
+ * See the LICENSE file in the root directory of this source tree.
183
+ */const Tb=[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["line",{x1:"12",x2:"12.01",y1:"18",y2:"18",key:"1dp563"}]],Nb=Ft("tablet",Tb);/**
184
+ * @license lucide-react v0.546.0 - ISC
185
+ *
186
+ * This source code is licensed under the ISC license.
187
+ * See the LICENSE file in the root directory of this source tree.
188
+ */const Ob=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Ny=Ft("trash-2",Ob);/**
189
+ * @license lucide-react v0.546.0 - ISC
190
+ *
191
+ * This source code is licensed under the ISC license.
192
+ * See the LICENSE file in the root directory of this source tree.
193
+ */const Ab=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],_b=Ft("x",Ab);function N(u){return{"data-testid":u}}function Ne(u){return u.trim().toLowerCase().replaceAll(/[^a-z0-9]+/g,"-").replaceAll(/^-+|-+$/g,"")||"item"}const Cb={web:y.jsx(rb,{className:"w-4 h-4"}),android:y.jsx(Sb,{className:"w-4 h-4"}),ios:y.jsx(Nb,{className:"w-4 h-4"})};function Oy({platform:u,deviceId:l,onSelect:r,testIdPrefix:c}){const f=c??"studio-device",{data:h,isLoading:p}=tn(en.devices.list.queryOptions({input:{}})),x=(h??[]).filter(m=>m.platform===u),g=m=>{const C=m.target.value;if(C===""){r(u,void 0);return}r(u,C)};return y.jsxs("div",{className:"flex items-center gap-2",...N(`${f}-${u}`),children:[y.jsxs("span",{className:"text-zinc-400 text-sm flex items-center gap-1.5",...N(`${f}-label-${u}`),children:[Cb[u],"Device:"]}),y.jsxs("select",{value:l??"",onChange:g,disabled:p,...N(`${f}-select-${u}`),className:"bg-zinc-800 border border-zinc-700 rounded px-2 py-1 text-sm text-zinc-100 focus:outline-none focus:ring-1 focus:ring-blue-500",children:[p&&y.jsx("option",{children:"Loading..."}),!p&&y.jsxs(y.Fragment,{children:[y.jsx("option",{value:"",children:"default"}),x.map(m=>y.jsx("option",{value:m.id,children:m.name},m.id))]})]})]})}const wb=(u,l)=>u&&l&&u.x===l.x&&u.y===l.y&&u.width===l.width&&u.height===l.height;function Rb({image:u,selectedBounds:l,hoveredBounds:r,onClickPoint:c,onHoverPoint:f,onHoverEnd:h,testIdPrefix:p="studio-device-screenshot"}){const x=Q.useRef(null),g=Q.useCallback(D=>{const G=x.current;if(!G)return null;const V=G.getBoundingClientRect(),I=G.naturalWidth/V.width,k=G.naturalHeight/V.height,L=(D.clientX-V.left)*I,st=(D.clientY-V.top)*k;return{x:L,y:st}},[]),m=Q.useCallback(D=>{const G=g(D);G&&c(G.x,G.y)},[g,c]),C=Q.useCallback(D=>{const G=g(D);G&&f(G.x,G.y)},[g,f]),v=Q.useCallback(D=>{const G=x.current;if(!G)return null;const V=G.getBoundingClientRect(),I=V.width/G.naturalWidth,k=V.height/G.naturalHeight;return{position:"absolute",left:D.x*I,top:D.y*k,width:D.width*I,height:D.height*k,pointerEvents:"none"}},[]);return u?y.jsxs("div",{className:"relative inline-block bg-zinc-900 rounded-lg border border-zinc-800 overflow-hidden",...N(`${p}-container`),children:[y.jsx("img",{ref:x,src:`data:image/png;base64,${u}`,alt:"Device screenshot",className:"max-w-full max-h-[600px] object-contain cursor-crosshair",onClick:m,onMouseMove:C,onMouseLeave:h,draggable:!1,...N(`${p}-image`)}),l&&(()=>{const D=v(l);return D?y.jsx("div",{style:D,className:"border-2 border-blue-500 bg-blue-500/15 rounded-sm",...N(`${p}-selected-bounds`)}):null})(),r&&!wb(r,l)&&(()=>{const D=v(r);return D?y.jsx("div",{style:D,className:"border border-orange-400 bg-orange-400/10 rounded-sm",...N(`${p}-hovered-bounds`)}):null})()]}):y.jsxs("div",{className:"flex flex-col items-center justify-center h-full min-h-[400px] bg-zinc-900 rounded-lg border border-zinc-800 text-zinc-500",...N(`${p}-empty`),children:[y.jsx(sb,{className:"w-12 h-12 mb-3"}),y.jsx("p",{className:"text-sm",...N(`${p}-empty-title`),children:"No screenshot available"}),y.jsx("p",{className:"text-xs mt-1",...N(`${p}-empty-subtitle`),children:"Select a device and connect to start inspecting"})]})}function Mb({text:u}){const[l,r]=Q.useState(!1),c=Q.useCallback(async()=>{await navigator.clipboard.writeText(u),r(!0),setTimeout(()=>r(!1),1500)},[u]);return y.jsx("button",{onClick:c,className:"p-1 rounded hover:bg-zinc-700 text-zinc-400 hover:text-zinc-200 transition-colors",title:"Copy to clipboard",...N(`studio-copy-button-${Ne(u)}`),children:l?y.jsx(J1,{className:"w-3.5 h-3.5 text-green-400"}):y.jsx(Ty,{className:"w-3.5 h-3.5"})})}function Je({label:u,value:l}){if(l==null)return null;const r=typeof l=="boolean"?l?"true":"false":String(l);return y.jsxs("div",{className:"flex items-start gap-2 py-1",...N(`studio-element-detail-${u}`),children:[y.jsx("span",{className:"text-zinc-500 text-xs min-w-[120px] font-mono",children:u}),y.jsx("span",{className:"text-zinc-200 text-xs font-mono break-all",children:r})]})}function jb({element:u,selectors:l}){if(!u)return y.jsx("div",{className:"h-full flex items-center justify-center text-zinc-500 text-sm p-4",...N("studio-element-details-empty"),children:y.jsx("p",{children:"Click an element in the screenshot or tree to view its details"})});const{bounds:r}=u;return y.jsxs("div",{className:"p-4 space-y-4 overflow-y-auto h-full",...N("studio-element-details"),children:[y.jsxs("div",{children:[y.jsx("h3",{className:"text-sm font-semibold text-zinc-300 mb-2",...N("studio-element-properties-title"),children:"Element Properties"}),y.jsxs("div",{className:"space-y-0.5",children:[y.jsx(Je,{label:"elementType",value:u.elementType}),y.jsx(Je,{label:"resourceId",value:u.resourceId}),y.jsx(Je,{label:"text",value:u.text}),y.jsx(Je,{label:"accessibilityLabel",value:u.accessibilityLabel}),y.jsx(Je,{label:"id",value:u.id}),y.jsx(Je,{label:"enabled",value:u.enabled}),y.jsx(Je,{label:"visible",value:u.visible}),y.jsx(Je,{label:"clickable",value:u.clickable}),y.jsx(Je,{label:"focused",value:u.focused})]})]}),y.jsxs("div",{children:[y.jsx("h3",{className:"text-sm font-semibold text-zinc-300 mb-2",...N("studio-element-bounds-title"),children:"Bounds"}),y.jsxs("div",{className:"grid grid-cols-2 gap-x-4 gap-y-0.5",children:[y.jsx(Je,{label:"x",value:r==null?void 0:r.x}),y.jsx(Je,{label:"y",value:r==null?void 0:r.y}),y.jsx(Je,{label:"width",value:r==null?void 0:r.width}),y.jsx(Je,{label:"height",value:r==null?void 0:r.height})]})]}),l.length>0&&y.jsxs("div",{children:[y.jsx("h3",{className:"text-sm font-semibold text-zinc-300 mb-2",...N("studio-element-selectors-title"),children:"Suggested Selectors"}),y.jsx("div",{className:"space-y-1.5",children:l.map((c,f)=>y.jsxs("div",{className:"flex items-center gap-2 bg-zinc-800/50 rounded px-2 py-1.5 group",...N(`studio-element-selector-${Ne(`${c.strategy}-${c.value}`)}`),children:[y.jsx("span",{className:"text-zinc-500 text-xs min-w-[60px]",children:c.strategy}),y.jsx("code",{className:"text-xs text-emerald-400 font-mono flex-1 break-all",children:c.value}),y.jsx(Mb,{text:c.value})]},f))})]})]})}function mc(u){return u.join("-")}function Ay(u,l){var c,f,h,p;const r=l.toLowerCase();return!!((c=u.text)!=null&&c.toLowerCase().includes(r))||!!((f=u.resourceId)!=null&&f.toLowerCase().includes(r))||!!((h=u.accessibilityLabel)!=null&&h.toLowerCase().includes(r))||!!((p=u.elementType)!=null&&p.toLowerCase().includes(r))}function _y(u,l){var r;return Ay(u,l)?!0:!!((r=u.children)!=null&&r.some(c=>_y(c,l)))}function Db(u){const r=[u.elementType||"Element"];if(u.resourceId&&r.push(`#${u.resourceId}`),u.text){const c=u.text.length>30?u.text.slice(0,30)+"...":u.text;r.push(`"${c}"`)}return r.join(" ")}function Ub(u,l){const r=l.resourceId??l.id??l.accessibilityLabel??l.text??`${l.elementType??"element"}-${mc(u)||"root"}`;return`studio-element-tree-node-${Ne(r)}`}function Cy({element:u,path:l,depth:r,selectedPath:c,expandedPaths:f,toggleExpand:h,onSelect:p,searchQuery:x}){var I;const g=mc(l),m=f.has(g),C=!!((I=u.children)!=null&&I.length),v=c&&mc(c)===g,D=x&&Ay(u,x),G=Q.useCallback(k=>{k.stopPropagation(),h(g)},[h,g]),V=Q.useCallback(()=>{p(l)},[p,l]);return x&&!_y(u,x)?null:y.jsxs("div",{children:[y.jsxs("div",{onClick:V,...N(Ub(l,u)),className:`flex items-center gap-1 py-0.5 px-1 rounded cursor-pointer text-xs font-mono hover:bg-zinc-800 ${v?"bg-zinc-700 text-blue-400":"text-zinc-300"} ${D?"ring-1 ring-amber-500/50":""}`,style:{paddingLeft:r*16+4},children:[C?y.jsx("button",{onClick:G,className:"p-0.5 hover:bg-zinc-700 rounded shrink-0",children:m?y.jsx(by,{className:"w-3 h-3 text-zinc-500"}):y.jsx(xy,{className:"w-3 h-3 text-zinc-500"})}):y.jsx("span",{className:"w-4"}),y.jsx("span",{className:"truncate",children:Db(u)})]}),m&&C&&u.children.map((k,L)=>y.jsx(Cy,{element:k,path:[...l,L],depth:r+1,selectedPath:c,expandedPaths:f,toggleExpand:h,onSelect:p,searchQuery:x},L))]})}function qb({root:u,selectedPath:l,onSelect:r}){const[c,f]=Q.useState(""),[h,p]=Q.useState(()=>new Set([""])),x=Q.useCallback(g=>{p(m=>{const C=new Set(m);return C.has(g)?C.delete(g):C.add(g),C})},[]);return Q.useEffect(()=>{l&&p(g=>{const m=new Set(g);for(let C=0;C<l.length;C++)m.add(mc(l.slice(0,C)));return m})},[l]),u?y.jsxs("div",{className:"flex flex-col h-full",...N("studio-element-tree"),children:[y.jsx("div",{className:"px-3 py-2 border-b border-zinc-800",...N("studio-element-tree-toolbar"),children:y.jsxs("div",{className:"relative",children:[y.jsx(bb,{className:"absolute left-2 top-1/2 -translate-y-1/2 w-3.5 h-3.5 text-zinc-500"}),y.jsx("input",{type:"text",placeholder:"Search elements...",value:c,onChange:g=>f(g.target.value),...N("studio-element-tree-search"),className:"w-full bg-zinc-800 border border-zinc-700 rounded pl-7 pr-2 py-1 text-xs text-zinc-100 placeholder-zinc-500 focus:outline-none focus:ring-1 focus:ring-blue-500"})]})}),y.jsx("div",{className:"flex-1 overflow-y-auto p-1",...N("studio-element-tree-scroll"),children:y.jsx(Cy,{element:u,path:[],depth:0,selectedPath:l,expandedPaths:h,toggleExpand:x,onSelect:r,searchQuery:c})})]}):y.jsx("div",{className:"flex items-center justify-center h-full text-zinc-500 text-sm p-4",...N("studio-element-tree-empty"),children:"No element hierarchy available"})}function wy(u,l=0,r=[]){const c=[{element:u,depth:l,path:r}];if(u.children)for(let f=0;f<u.children.length;f++)c.push(...wy(u.children[f],l+1,[...r,f]));return c}function Rm(u,l){var c;let r=u;for(const f of l){if(!((c=r.children)!=null&&c[f]))return;r=r.children[f]}return r}function ef(u,l,r){return wy(u).filter(({element:c})=>{if(!c.bounds)return!1;const{x:f,y:h,width:p,height:x}=c.bounds;return l>=f&&l<=f+p&&r>=h&&r<=h+x}).toReversed()}function Hb(){const[u,l]=Q.useState("web"),[r,c]=Q.useState(void 0),[f,h]=Q.useState(!1),[p,x]=Q.useState(void 0),[g,m]=Q.useState(void 0),C={platform:u,deviceId:r},{data:v,refetch:D}=tn(en.inspector.screenshot.queryOptions({input:C,refetchInterval:f?1e3:!1})),{data:G,refetch:V}=tn(en.inspector.hierarchy.queryOptions({input:C,refetchInterval:f?2e3:!1})),{data:I}=tn(en.inspector.selectors.queryOptions({input:C,enabled:!!G})),k=G,L=k&&p?Rm(k,p):void 0,st=k&&g?Rm(k,g):void 0,P=(()=>{if(!L)return[];const dt=[];if(L.resourceId&&dt.push({strategy:"resourceId",value:L.resourceId}),L.accessibilityLabel&&dt.push({strategy:"accessibility",value:L.accessibilityLabel}),L.text&&dt.push({strategy:"text",value:L.text}),I&&Array.isArray(I))for(const mt of I)mt&&typeof mt=="object"&&"strategy"in mt&&"value"in mt&&dt.push(mt);return dt})(),Z=Q.useCallback((dt,mt)=>{l(dt),c(mt),x(void 0),m(void 0)},[]),K=Q.useCallback((dt,mt)=>{if(!k)return;const zt=ef(k,dt,mt);zt.length>0&&x(zt[0].path)},[k]),nt=Q.useCallback((dt,mt)=>{if(!k)return;const zt=ef(k,dt,mt);zt.length>0?m(zt[0].path):m(void 0)},[k]),$=Q.useCallback(()=>{m(void 0)},[]),tt=Q.useCallback(dt=>{x(dt)},[]),ot=Q.useCallback(()=>{D(),V()},[D,V]);return y.jsxs("div",{className:"flex flex-col gap-4 h-[calc(100vh-64px)]",...N("studio-inspector-page"),children:[y.jsxs("div",{className:"flex items-center gap-4 flex-wrap",...N("studio-inspector-toolbar"),children:[y.jsx(Oy,{platform:u,deviceId:r,onSelect:Z,testIdPrefix:"studio-inspector-device"}),y.jsxs("div",{className:"flex items-center gap-2 ml-auto",...N("studio-inspector-actions"),children:[y.jsxs("button",{onClick:()=>h(!f),...N("studio-inspector-live"),className:`flex items-center gap-1.5 px-3 py-1.5 rounded text-sm transition-colors ${f?"bg-emerald-600/20 text-emerald-400 border border-emerald-600/40":"bg-zinc-800 text-zinc-400 border border-zinc-700 hover:text-zinc-200"}`,children:[y.jsx(hb,{className:`w-3.5 h-3.5 ${f?"animate-pulse":""}`}),"Live"]}),y.jsxs("button",{onClick:ot,...N("studio-inspector-refresh"),className:"flex items-center gap-1.5 px-3 py-1.5 rounded text-sm bg-zinc-800 text-zinc-400 border border-zinc-700 hover:text-zinc-200 transition-colors",children:[y.jsx(yb,{className:"w-3.5 h-3.5"}),"Refresh"]})]})]}),y.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[1fr_350px] gap-4 flex-1 min-h-0",...N("studio-inspector-layout"),children:[y.jsx("div",{className:"min-h-0 overflow-auto",...N("studio-inspector-screenshot-panel"),children:y.jsx(Rb,{image:v==null?void 0:v.image,selectedBounds:L==null?void 0:L.bounds,hoveredBounds:st==null?void 0:st.bounds,onClickPoint:K,onHoverPoint:nt,onHoverEnd:$,testIdPrefix:"studio-inspector-screenshot"})}),y.jsxs("div",{className:"bg-zinc-900 rounded-lg border border-zinc-800 min-h-0 overflow-hidden",...N("studio-inspector-details-panel"),children:[y.jsx("div",{className:"px-4 py-2 border-b border-zinc-800",...N("studio-inspector-details-header"),children:y.jsx("h2",{className:"text-sm font-semibold text-zinc-300",...N("studio-inspector-details-title"),children:"Element Details"})}),y.jsx(jb,{element:L,selectors:P})]})]}),y.jsx("div",{className:"bg-zinc-900 rounded-lg border border-zinc-800 h-[250px] min-h-0 overflow-hidden",...N("studio-inspector-tree-panel"),children:y.jsx(qb,{root:k,selectedPath:p,onSelect:tt})})]})}function Bb({flows:u,selectedFlows:l,onToggleFlow:r,onSelectAll:c,onDeselectAll:f}){const h=u.length>0&&u.every(p=>l.has(p.name));return y.jsxs("div",{className:"flex flex-col h-full",...N("studio-runner-flow-list"),children:[y.jsxs("div",{className:"flex items-center justify-between px-4 py-2 border-b border-zinc-800",children:[y.jsx("h2",{className:"text-sm font-semibold text-zinc-300",...N("studio-runner-flow-list-title"),children:"Flows"}),y.jsxs("div",{className:"flex gap-2",children:[y.jsx("button",{onClick:c,disabled:h,...N("studio-runner-select-all"),className:"text-xs text-zinc-400 hover:text-zinc-200 disabled:opacity-40 disabled:cursor-default",children:"Select all"}),y.jsx("button",{onClick:f,disabled:l.size===0,...N("studio-runner-deselect-all"),className:"text-xs text-zinc-400 hover:text-zinc-200 disabled:opacity-40 disabled:cursor-default",children:"Deselect all"})]})]}),y.jsxs("div",{className:"flex-1 overflow-y-auto p-2",...N("studio-runner-flow-list-scroll"),children:[u.length===0&&y.jsx("p",{className:"text-sm text-zinc-500 px-2 py-4 text-center",...N("studio-runner-flow-list-empty"),children:"No flows discovered"}),u.map(p=>y.jsxs("label",{...N(`studio-runner-flow-${Ne(p.name)}`),className:"flex items-start gap-2.5 px-2 py-1.5 rounded hover:bg-zinc-800/50 cursor-pointer",children:[y.jsx("input",{type:"checkbox",checked:l.has(p.name),onChange:()=>r(p.name),...N(`studio-runner-flow-checkbox-${Ne(p.name)}`),className:"mt-0.5 accent-emerald-500"}),y.jsxs("div",{className:"min-w-0",children:[y.jsx("span",{className:"text-sm text-zinc-200 block truncate",...N(`studio-runner-flow-name-${Ne(p.name)}`),children:p.name}),p.tags.length>0&&y.jsx("div",{className:"flex flex-wrap gap-1 mt-0.5",children:p.tags.map(x=>y.jsx("span",{...N(`studio-runner-flow-tag-${Ne(p.name)}-${Ne(x)}`),className:"text-[10px] px-1.5 py-0.5 rounded bg-zinc-800 text-zinc-400",children:x},x))})]})]},p.name))]})]})}function Qb({platform:u,done:l,total:r}){const c=r>0?Math.round(l/r*100):0;return y.jsxs("div",{className:"flex items-center gap-2 text-xs",...N(`studio-runner-progress-${u}`),children:[y.jsx("span",{className:"text-zinc-400 w-16",...N(`studio-runner-progress-label-${u}`),children:u}),y.jsx("div",{className:"flex-1 h-1.5 bg-zinc-800 rounded-full overflow-hidden",children:y.jsx("div",{className:"h-full bg-emerald-500 rounded-full transition-all duration-300",style:{width:`${c}%`},...N(`studio-runner-progress-bar-${u}`)})}),y.jsxs("span",{className:"text-zinc-500 tabular-nums w-20 text-right",...N(`studio-runner-progress-value-${u}`),children:[l,"/",r," (",c,"%)"]})]})}function uc({label:u,active:l,onClick:r,color:c}){return y.jsx("button",{onClick:r,...N(`studio-runner-filter-${Ne(u)}`),className:`px-2 py-0.5 rounded text-xs transition-colors border ${l?`${c} border-current`:"text-zinc-600 border-zinc-800 hover:text-zinc-400"}`,children:u})}function Yb({status:u}){switch(u){case"passed":return y.jsx(Sy,{className:"w-4 h-4 text-emerald-400 shrink-0"});case"failed":return y.jsx(Ey,{className:"w-4 h-4 text-red-400 shrink-0"});case"running":return y.jsx(tf,{className:"w-4 h-4 text-blue-400 animate-spin shrink-0"});case"skipped":return y.jsx(zy,{className:"w-4 h-4 text-zinc-500 shrink-0"})}}function af(u){return u<1e3?`${u}ms`:`${(u/1e3).toFixed(1)}s`}function Mm({attachments:u,testIdPrefix:l}){const r=u.filter(h=>h.contentType==="image/png"),[c,f]=Q.useState(null);return r.length===0?null:y.jsxs("div",{...N(`${l}-screenshots`),children:[y.jsx("div",{className:"flex gap-2 overflow-x-auto pb-1",...N(`${l}-thumbnails`),children:r.map((h,p)=>y.jsxs("button",{onClick:()=>f(c===h.url?null:h.url),className:"shrink-0 rounded border border-zinc-700 hover:border-zinc-500 transition-colors overflow-hidden",...N(`${l}-thumbnail-${Ne(h.name)}`),children:[y.jsx("img",{src:h.url,alt:h.name,loading:"lazy",className:"h-20 w-auto object-contain bg-zinc-900",...N(`${l}-thumbnail-image-${Ne(h.name)}`)}),y.jsx("div",{className:"text-[10px] text-zinc-500 px-1 py-0.5 truncate max-w-[100px]",...N(`${l}-thumbnail-name-${Ne(h.name)}`),children:h.name})]},p))}),c&&y.jsx("div",{className:"mt-2 rounded border border-zinc-700 overflow-hidden cursor-pointer",onClick:()=>f(null),...N(`${l}-expanded`),children:y.jsx("img",{src:c,alt:"Expanded screenshot",className:"w-full h-auto bg-zinc-900",...N(`${l}-expanded-image`)})})]})}function Lb({result:u,resultKey:l}){const r=u.status==="passed"?"text-emerald-400":u.status==="failed"?"text-red-400":"text-zinc-500";return y.jsxs("div",{className:"p-3 space-y-3 border-t border-zinc-800 bg-zinc-800/20",...N(`${l}-details`),children:[y.jsx("div",{children:y.jsxs("div",{className:"flex items-center gap-3 text-xs",...N(`${l}-summary`),children:[y.jsx("span",{className:"text-zinc-400",...N(`${l}-platform`),children:u.platform}),y.jsx("span",{className:r,...N(`${l}-status`),children:u.status}),y.jsx("span",{className:"text-zinc-500",...N(`${l}-duration`),children:af(u.durationMs)})]})}),u.error&&y.jsxs("div",{className:"rounded border border-red-900/50 bg-red-950/30 p-2",...N(`${l}-error`),children:[y.jsx("p",{className:"text-xs font-medium text-red-400 mb-1",...N(`${l}-error-title`),children:"Error"}),y.jsx("pre",{className:"text-xs text-red-300 whitespace-pre-wrap break-words font-mono",...N(`${l}-error-message`),children:u.error.message})]}),u.attachments&&u.attachments.length>0&&y.jsx(Mm,{attachments:u.attachments,testIdPrefix:`${l}-attachments`}),u.steps&&u.steps.length>0&&y.jsxs("div",{...N(`${l}-steps`),children:[y.jsx("p",{className:"text-xs font-medium text-zinc-400 mb-2",...N(`${l}-steps-title`),children:"Steps"}),y.jsx("div",{className:"space-y-1",...N(`${l}-steps-list`),children:u.steps.map((c,f)=>y.jsxs("div",{...N(`${l}-step-${f+1}`),children:[y.jsxs("div",{className:"flex items-start gap-2 px-2 py-1.5 rounded bg-zinc-800/40",children:[c.status==="passed"?y.jsx(Sy,{className:"w-3.5 h-3.5 text-emerald-400 mt-0.5 shrink-0"}):y.jsx(Ey,{className:"w-3.5 h-3.5 text-red-400 mt-0.5 shrink-0"}),y.jsxs("div",{className:"min-w-0 flex-1",children:[y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("span",{className:"text-xs text-zinc-300 truncate",...N(`${l}-step-command-${f+1}`),children:c.command}),c.attachments&&c.attachments.length>0&&y.jsx(lb,{className:"w-3 h-3 text-zinc-500 shrink-0"}),y.jsx("span",{className:"text-[10px] text-zinc-500 tabular-nums shrink-0",...N(`${l}-step-duration-${f+1}`),children:af(c.durationMs)})]}),c.error&&y.jsx("p",{className:"text-[11px] text-red-400 mt-0.5 break-words",...N(`${l}-step-error-${f+1}`),children:c.error})]})]}),c.attachments&&c.attachments.length>0&&y.jsx("div",{className:"ml-6 mt-1 mb-2",...N(`${l}-step-attachments-${f+1}`),children:y.jsx(Mm,{attachments:c.attachments,testIdPrefix:`${l}-step-${f+1}-attachments`})})]},f))})]})]})}function Gb({results:u,isRunning:l,onSelectResult:r,onRemoveResult:c,onClearResults:f,selectedResult:h,progress:p}){const[x,g]=Q.useState(new Set),[m,C]=Q.useState(new Set),[v,D]=Q.useState(new Set),G=K=>{C(nt=>{const $=new Set(nt);return $.has(K)?$.delete(K):$.add(K),$})},V=K=>{D(nt=>{const $=new Set(nt);return $.has(K)?$.delete(K):$.add(K),$})},I=K=>{g(nt=>{const $=new Set(nt);return $.has(K)?$.delete(K):$.add(K),$})},k=u.filter(K=>K.status==="passed").length,L=u.filter(K=>K.status==="failed").length,st=u.filter(K=>K.status==="skipped").length,P=u.filter(K=>!(m.size>0&&!m.has(K.platform)||v.size>0&&!v.has(K.status))),Z=[...new Set(u.map(K=>K.platform))];return y.jsxs("div",{className:"flex flex-col h-full",...N("studio-runner-results"),children:[y.jsxs("div",{className:"flex items-center justify-between px-4 py-2 border-b border-zinc-800 shrink-0",children:[y.jsx("h2",{className:"text-sm font-semibold text-zinc-300",...N("studio-runner-results-title"),children:"Results"}),(u.length>0||l)&&y.jsxs("div",{className:"flex items-center gap-3 text-xs",...N("studio-runner-results-summary"),children:[l&&y.jsx(tf,{className:"w-3.5 h-3.5 text-blue-400 animate-spin",...N("studio-runner-results-running")}),k>0&&y.jsxs("span",{className:"text-emerald-400",...N("studio-runner-results-passed"),children:[k," passed"]}),L>0&&y.jsxs("span",{className:"text-red-400",...N("studio-runner-results-failed"),children:[L," failed"]}),st>0&&y.jsxs("span",{className:"text-zinc-500",...N("studio-runner-results-skipped"),children:[st," skipped"]}),u.length>0&&!l&&f&&y.jsx("button",{onClick:f,className:"text-zinc-500 hover:text-zinc-300 transition-colors ml-1",title:"Clear all results",...N("studio-runner-clear-results"),children:y.jsx(Ny,{className:"w-3.5 h-3.5"})})]})]}),p&&Object.keys(p).length>0&&l&&y.jsx("div",{className:"px-4 py-2 space-y-1.5 border-b border-zinc-800",...N("studio-runner-progress"),children:Object.entries(p).map(([K,{done:nt,total:$}])=>y.jsx(Qb,{platform:K,done:nt,total:$},K))}),u.length>0&&y.jsxs("div",{className:"flex items-center gap-2 px-4 py-1.5 border-b border-zinc-800",...N("studio-runner-filters"),children:[y.jsx(ab,{className:"w-3 h-3 text-zinc-500",...N("studio-runner-filters-icon")}),Z.map(K=>y.jsx(uc,{label:K,active:m.has(K),onClick:()=>G(K),color:"text-blue-400"},K)),Z.length>0&&y.jsx("span",{className:"text-zinc-800",children:"|"}),k>0&&y.jsx(uc,{label:"passed",active:v.has("passed"),onClick:()=>V("passed"),color:"text-emerald-400"}),L>0&&y.jsx(uc,{label:"failed",active:v.has("failed"),onClick:()=>V("failed"),color:"text-red-400"}),st>0&&y.jsx(uc,{label:"skipped",active:v.has("skipped"),onClick:()=>V("skipped"),color:"text-zinc-400"}),(m.size>0||v.size>0)&&y.jsx("button",{onClick:()=>{C(new Set),D(new Set)},className:"text-xs text-zinc-600 hover:text-zinc-400 ml-1",...N("studio-runner-filters-clear"),children:"clear"})]}),y.jsxs("div",{className:"flex-1 overflow-y-auto",...N("studio-runner-results-scroll"),children:[u.length===0&&!l&&y.jsx("p",{className:"text-sm text-zinc-500 px-2 py-4 text-center",...N("studio-runner-results-empty"),children:"No results yet"}),u.length===0&&l&&y.jsxs("p",{className:"text-sm text-zinc-500 px-2 py-4 text-center flex items-center justify-center gap-2",...N("studio-runner-results-running-message"),children:[y.jsx(tf,{className:"w-3.5 h-3.5 animate-spin"}),"Running tests..."]}),y.jsx("div",{className:"divide-y divide-zinc-800/50",...N("studio-runner-results-list"),children:P.map(K=>{const nt=u.indexOf(K),$=`${K.name}-${K.platform}-${nt}`,tt=`studio-runner-result-${Ne(`${K.name}-${K.platform}-${nt}`)}`,ot=x.has($),dt=(h==null?void 0:h.name)===K.name&&(h==null?void 0:h.platform)===K.platform;return y.jsxs("div",{...N(tt),children:[y.jsxs("div",{className:`group flex items-center gap-0.5 transition-colors ${dt?"bg-zinc-800":"hover:bg-zinc-800/50"}`,...N(`${tt}-row`),children:[y.jsxs("button",{onClick:()=>{r==null||r(K),I($)},className:"flex-1 flex items-center gap-2.5 px-2 py-2 text-left min-w-0",...N(`${tt}-toggle`),children:[ot?y.jsx(by,{className:"w-4 h-4 text-zinc-500 shrink-0"}):y.jsx(xy,{className:"w-4 h-4 text-zinc-500 shrink-0"}),y.jsx(Yb,{status:K.status}),y.jsx("span",{className:"text-sm text-zinc-200 truncate flex-1",...N(`${tt}-name`),children:K.name}),y.jsx("span",{className:"text-xs text-zinc-500",...N(`${tt}-platform`),children:K.platform}),y.jsx("span",{className:"text-xs text-zinc-500 tabular-nums",...N(`${tt}-duration`),children:af(K.durationMs)})]}),c&&!l&&y.jsx("button",{onClick:mt=>{mt.stopPropagation(),c(nt)},className:"opacity-0 group-hover:opacity-100 p-2 mr-1 text-zinc-600 hover:text-zinc-300 transition-all shrink-0",title:"Remove result",...N(`${tt}-remove`),children:y.jsx(_b,{className:"w-3 h-3"})})]}),y.jsx("div",{className:`overflow-hidden transition-all duration-300 ease-in-out ${ot?"max-h-[1000px] opacity-100":"max-h-0 opacity-0"}`,...N(`${tt}-details-container`),children:y.jsx(Lb,{result:K,resultKey:tt})})]},$)})})]})]})}const Xb=["web","android","ios"],Ry="spana-studio-runner";function Kb(){try{const u=sessionStorage.getItem(Ry);return u?JSON.parse(u):{runId:null,results:[],platforms:["web"]}}catch{return{runId:null,results:[],platforms:["web"]}}}function yc(u){try{sessionStorage.setItem(Ry,JSON.stringify(u))}catch{}}function Zb(){const u=Q.useRef(Kb()),[l,r]=Q.useState(u.current.runId),[c,f]=Q.useState(u.current.results),[h,p]=Q.useState(new Set(u.current.platforms)),x=Q.useCallback((m,C)=>{C&&m.length>0&&(f(m),yc({runId:l,results:m,platforms:[...h]}))},[l,h]),g=Q.useCallback(()=>{f([]),r(null),yc({runId:null,results:[],platforms:[...h]})},[h]);return{runId:l,setRunId:r,cachedResults:c,setCachedResults:f,platforms:h,setPlatforms:p,saveResults:x,clearSession:g}}function Vb(u){const[l,r]=Q.useState(!1),c=Q.useCallback(async()=>{if(!(u.platforms.size===0||u.selectedFlows.size===0)){r(!0);try{const h=u.selectedFlows.size===u.flowCount,p=[...u.platforms].map(g=>({platform:g,deviceId:u.deviceIds[g]})).filter(g=>g.deviceId),x=await qe.tests.run({platforms:[...u.platforms],grep:h?void 0:[...u.selectedFlows][0],captureScreenshots:u.captureScreenshots||void 0,captureSteps:u.captureSteps||void 0,devices:p.length>0?p:void 0});u.onRunStarted(x.runId)}finally{r(!1)}}},[u.platforms,u.selectedFlows,u.flowCount,u.deviceIds,u.captureScreenshots,u.captureSteps,u.onRunStarted]),f=Q.useCallback(async h=>{const p=h.filter(x=>x.status==="failed").map(x=>x.name);if(!(p.length===0||u.platforms.size===0)){r(!0);try{const x=p.join("|"),g=await qe.tests.run({platforms:[...u.platforms],grep:x});u.onRunStarted(g.runId)}finally{r(!1)}}},[u.platforms,u.onRunStarted]);return{isStarting:l,handleRun:c,handleRerunFailed:f}}function kb(){const{runId:u,setRunId:l,cachedResults:r,setCachedResults:c,platforms:f,setPlatforms:h,saveResults:p,clearSession:x}=Zb(),[g,m]=Q.useState(new Set),[C,v]=Q.useState(void 0),[D,G]=Q.useState(!1),[V,I]=Q.useState(!1),[k,L]=Q.useState(()=>({web:void 0,android:void 0,ios:void 0})),{data:st}=tn(en.tests.listFlows.queryOptions({input:{}})),P=(st==null?void 0:st.flows)??[],{data:Z}=tn(en.tests.status.queryOptions({input:{runId:u},enabled:!!u,refetchInterval:u?1e3:!1})),K=!!u&&(Z==null?void 0:Z.status)==="running",nt=(Z==null?void 0:Z.results)??[],$=(Z==null?void 0:Z.status)==="completed",tt=Z==null?void 0:Z.progress,ot=nt.length>0?nt:r;Q.useEffect(()=>{p(nt,$)},[$,nt.length]);const dt=Q.useCallback(U=>{l(U),c([]),yc({runId:U,results:[],platforms:[...f]})},[l,c,f]),{isStarting:mt,handleRun:zt,handleRerunFailed:Mt}=Vb({platforms:f,selectedFlows:g,flowCount:P.length,deviceIds:k,captureScreenshots:D,captureSteps:V,onRunStarted:dt});Q.useEffect(()=>{P.length>0&&g.size===0&&m(new Set(P.map(U=>U.name)))},[P.length]);const Xt=Q.useCallback(async()=>{v(void 0),await zt()},[zt]),Yt=Q.useCallback(async()=>{v(void 0),await Mt(ot)},[Mt,ot]),_=Q.useCallback((U,W)=>{L(at=>({...at,[U]:W}))},[]),X=Q.useCallback(U=>{h(W=>{const at=new Set(W);return at.has(U)?at.size>1&&at.delete(U):at.add(U),at})},[]),Y=Q.useCallback(U=>{m(W=>{const at=new Set(W);return at.has(U)?at.delete(U):at.add(U),at})},[]),ct=Q.useCallback(()=>{m(new Set(P.map(U=>U.name)))},[P]),ft=Q.useCallback(()=>{m(new Set)},[]),E=ot.some(U=>U.status==="failed"),j=Q.useCallback(U=>{const W=ot.filter((at,xt)=>xt!==U);c(W),yc({runId:u,results:W,platforms:[...f]}),C&&ot[U]===C&&v(void 0)},[ot,u,f,C,c]),B=Q.useCallback(()=>{x(),v(void 0)},[x]);return y.jsxs("div",{className:"flex flex-col gap-4 h-[calc(100vh-64px)]",...N("studio-runner-page"),children:[y.jsxs("div",{className:"flex items-center gap-4 flex-wrap",...N("studio-runner-toolbar"),children:[y.jsxs("div",{className:"flex items-center gap-2",...N("studio-runner-platforms"),children:[y.jsx("span",{className:"text-xs text-zinc-400",...N("studio-runner-platforms-label"),children:"Platforms:"}),Xb.map(U=>y.jsx("button",{onClick:()=>X(U),...N(`studio-runner-platform-${U}`),className:`px-3 py-1.5 rounded text-sm transition-colors ${f.has(U)?"bg-zinc-800 text-zinc-100 border border-zinc-600":"text-zinc-500 border border-zinc-800 hover:text-zinc-300 hover:border-zinc-700"}`,children:U},U))]}),y.jsx("div",{className:"flex items-center gap-3 border-l border-zinc-800 pl-4 ml-2",...N("studio-runner-device-selectors"),children:[...f].map(U=>y.jsx(Oy,{platform:U,deviceId:k[U],onSelect:_,testIdPrefix:"studio-runner-device"},U))}),y.jsxs("div",{className:"flex items-center gap-3 border-l border-zinc-800 pl-4 ml-2",...N("studio-runner-capture-options"),children:[y.jsxs("label",{className:"flex items-center gap-1.5 text-xs text-zinc-400 cursor-pointer select-none",...N("studio-runner-capture-screenshots"),children:[y.jsx("input",{type:"checkbox",checked:D,onChange:U=>G(U.target.checked),className:"rounded border-zinc-600",...N("studio-runner-capture-screenshots-input")}),"Screenshots"]}),y.jsxs("label",{className:"flex items-center gap-1.5 text-xs text-zinc-400 cursor-pointer select-none",...N("studio-runner-capture-steps"),children:[y.jsx("input",{type:"checkbox",checked:V,onChange:U=>I(U.target.checked),className:"rounded border-zinc-600",...N("studio-runner-capture-steps-input")}),"Step captures"]})]}),y.jsxs("div",{className:"flex items-center gap-2 ml-auto",...N("studio-runner-actions"),children:[E&&$&&y.jsxs("button",{onClick:Yt,disabled:mt||K,...N("studio-runner-rerun-failed"),className:"flex items-center gap-1.5 px-3 py-1.5 rounded text-sm bg-zinc-800 text-zinc-400 border border-zinc-700 hover:text-zinc-200 transition-colors disabled:opacity-40",children:[y.jsx(pb,{className:"w-3.5 h-3.5"}),"Re-run Failed"]}),y.jsxs("button",{onClick:Xt,disabled:mt||K||g.size===0||f.size===0,...N("studio-runner-run"),className:"flex items-center gap-1.5 px-4 py-1.5 rounded text-sm bg-emerald-600 text-white hover:bg-emerald-500 transition-colors disabled:opacity-40 disabled:cursor-default",children:[y.jsx(fb,{className:"w-3.5 h-3.5"}),mt?"Starting...":K?"Running...":"Run"]})]})]}),y.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-4 flex-1 min-h-0",...N("studio-runner-layout"),children:[y.jsx("div",{className:"bg-zinc-900 rounded-lg border border-zinc-800 min-h-0 overflow-hidden lg:col-span-1",...N("studio-runner-flows-panel"),children:y.jsx(Bb,{flows:P,selectedFlows:g,onToggleFlow:Y,onSelectAll:ct,onDeselectAll:ft})}),y.jsx("div",{className:"bg-zinc-900 rounded-lg border border-zinc-800 min-h-0 overflow-hidden lg:col-span-3",...N("studio-runner-results-panel"),children:y.jsx(Gb,{results:ot,isRunning:K||mt,onSelectResult:v,onRemoveResult:j,onClearResults:B,selectedResult:C,progress:tt})})]})]})}function My({x:u,y:l,onPick:r,onDismiss:c}){const f=["tap","doubleTap","longPress","inputText","expect.toBeVisible"];return y.jsxs(y.Fragment,{children:[y.jsx("div",{style:{position:"fixed",inset:0,zIndex:49},onClick:c,...N("studio-recorder-action-picker-backdrop")}),y.jsx("div",{style:{position:"fixed",left:Math.min(u,window.innerWidth-200),top:Math.min(l,window.innerHeight-200),zIndex:50,background:"#1a1a1a",border:"1px solid #333",borderRadius:8,padding:"4px",display:"flex",flexDirection:"column",gap:2,minWidth:160,boxShadow:"0 4px 24px rgba(0,0,0,0.5)"},...N("studio-recorder-action-picker"),children:f.map(h=>y.jsx("button",{onClick:()=>r(h),...N(`studio-recorder-action-picker-${Ne(h)}`),style:{background:"transparent",border:"none",color:"#e5e5e5",padding:"6px 12px",borderRadius:4,textAlign:"left",cursor:"pointer",fontSize:13},onMouseEnter:p=>{p.currentTarget.style.background="#262626"},onMouseLeave:p=>{p.currentTarget.style.background="transparent"},children:h},h))})]})}function Jb(){const[u,l]=Q.useState("android"),[r,c]=Q.useState("idle"),[f,h]=Q.useState(void 0),[p,x]=Q.useState([]),[g,m]=Q.useState(""),[C,v]=Q.useState(""),[D,G]=Q.useState(void 0),[V,I]=Q.useState(!1),[k,L]=Q.useState(!1),st=Q.useRef(""),[P,Z]=Q.useState(null),{data:K}=tn(en.inspector.screenshot.queryOptions({input:{platform:u},refetchInterval:r==="recording"?1e3:!1,enabled:r==="recording"})),{data:nt}=tn(en.inspector.hierarchy.queryOptions({input:{platform:u},enabled:r==="recording"}));tn(en.inspector.selectors.queryOptions({input:{platform:u},enabled:r==="recording"&&!!nt})),Q.useEffect(()=>{if(!V||r!=="recording")return;const Y=setInterval(async()=>{try{const ct=await qe.inspector.hierarchy({platform:u}),ft=JSON.stringify(ct).length.toString()+JSON.stringify(ct).slice(0,100);st.current&&ft!==st.current&&L(!0),st.current=ft}catch{}},1500);return()=>clearInterval(Y)},[V,r,u]),Q.useEffect(()=>{if(!f||p.length===0){v("");return}qe.recording.generateCode({sessionId:f,flowName:g||"Recorded flow"}).then(Y=>v(Y.code)).catch(()=>{})},[f,p,g]);const $=Q.useCallback(async()=>{try{const Y=await qe.recording.start({platform:u});h(Y.sessionId),x([]),v(""),G(void 0),c("recording"),st.current=""}catch(Y){console.error("Failed to start recording:",Y)}},[u]),tt=Q.useCallback(async()=>{if(f)try{await qe.recording.stop({sessionId:f}),c("stopped")}catch(Y){console.error("Failed to stop recording:",Y)}},[f]),ot=Q.useCallback(async Y=>{if(f)try{await qe.recording.deleteAction({sessionId:f,actionId:Y}),x(ct=>ct.filter(ft=>ft.id!==Y))}catch(ct){console.error("Failed to delete action:",ct)}},[f]),dt=Q.useCallback(async()=>{if(f)try{const Y=await qe.recording.generateCode({sessionId:f,flowName:g||"Recorded flow"});v(Y.code)}catch(Y){console.error("Failed to generate code:",Y)}},[f,g]),mt=Q.useCallback(async()=>{if(f)try{const Y=await qe.recording.save({sessionId:f,flowName:g||"Recorded flow"});v(Y.code),G(Y.filePath)}catch(Y){console.error("Failed to save:",Y)}},[f,g]),zt=Q.useCallback(()=>{h(void 0),x([]),v(""),G(void 0),m(""),c("idle"),st.current="",L(!1)},[]),Mt=Q.useCallback(async()=>{if(f)try{const Y=await qe.recording.getSession({sessionId:f});Y&&Array.isArray(Y.actions)&&x(Y.actions)}catch{}},[f]),Xt=Q.useCallback(async(Y,ct)=>{if(!f)return;Z(null);const ft=nt;let E;if(ft){const j=ef(ft,ct.x,ct.y);if(j.length>0){const B=j[0].element;E=B.resourceId||B.accessibilityLabel||B.text||void 0}}try{const j=await qe.recording.executeAction({sessionId:f,platform:u,actionType:Y,selector:E,params:{x:ct.x,y:ct.y}})}catch{}try{await qe.recording.addAction({sessionId:f,action:{type:Y,selector:E,params:{x:ct.x,y:ct.y}}}),await Mt()}catch(j){console.error("Failed to add action:",j)}},[f,nt,u,Mt]),Yt=Q.useCallback(async Y=>{if(f){L(!1);try{await qe.recording.addAction({sessionId:f,action:{type:Y}}),await Mt()}catch{}}},[f,Mt]),_=Q.useCallback(()=>{C&&navigator.clipboard.writeText(C).catch(()=>{})},[C]),X=Q.useRef(null);return y.jsxs("div",{className:"flex flex-col gap-4 h-[calc(100vh-64px)]",...N("studio-recorder-page"),children:[y.jsxs("div",{className:"flex items-center gap-3 flex-wrap",...N("studio-recorder-toolbar"),children:[r==="idle"&&y.jsxs(y.Fragment,{children:[y.jsx("label",{className:"text-xs text-zinc-400",...N("studio-recorder-platform-label"),children:"Platform:"}),y.jsxs("select",{value:u,onChange:Y=>l(Y.target.value),className:"bg-zinc-800 border border-zinc-700 text-zinc-200 rounded px-2 py-1.5 text-sm",...N("studio-recorder-platform-select"),children:[y.jsx("option",{value:"web",children:"web"}),y.jsx("option",{value:"android",children:"android"}),y.jsx("option",{value:"ios",children:"ios"})]}),y.jsxs("button",{onClick:$,className:"flex items-center gap-1.5 px-4 py-1.5 rounded text-sm bg-red-600 text-white hover:bg-red-500 transition-colors",...N("studio-recorder-start"),children:[y.jsx(zy,{className:"w-3.5 h-3.5 fill-white"}),"Start Recording"]})]}),r==="recording"&&y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("span",{className:"w-2.5 h-2.5 rounded-full bg-red-500 animate-pulse",...N("studio-recorder-recording-indicator")}),y.jsx("span",{className:"text-sm text-red-400 font-medium",...N("studio-recorder-recording-status"),children:"Recording"})]}),y.jsxs("label",{className:"flex items-center gap-1.5 text-xs text-zinc-400 cursor-pointer select-none ml-2",...N("studio-recorder-watch-mode"),children:[y.jsx("input",{type:"checkbox",checked:V,onChange:Y=>I(Y.target.checked),className:"rounded border-zinc-600",...N("studio-recorder-watch-mode-input")}),"Watch mode"]}),y.jsxs("button",{onClick:tt,className:"flex items-center gap-1.5 px-4 py-1.5 rounded text-sm bg-zinc-700 text-zinc-200 hover:bg-zinc-600 transition-colors ml-auto",...N("studio-recorder-stop"),children:[y.jsx(zb,{className:"w-3.5 h-3.5 fill-zinc-200"}),"Stop"]})]}),r==="stopped"&&y.jsxs(y.Fragment,{children:[y.jsx("input",{type:"text",value:g,onChange:Y=>m(Y.target.value),placeholder:"Flow name...",className:"bg-zinc-800 border border-zinc-700 text-zinc-200 rounded px-3 py-1.5 text-sm w-48 placeholder-zinc-500",...N("studio-recorder-flow-name")}),y.jsx("button",{onClick:dt,className:"px-3 py-1.5 rounded text-sm bg-zinc-700 text-zinc-200 hover:bg-zinc-600 transition-colors",...N("studio-recorder-generate"),children:"Generate"}),y.jsx("button",{onClick:mt,className:"px-3 py-1.5 rounded text-sm bg-emerald-600 text-white hover:bg-emerald-500 transition-colors",...N("studio-recorder-save"),children:"Save"}),y.jsx("button",{onClick:zt,className:"px-3 py-1.5 rounded text-sm bg-zinc-800 text-zinc-400 border border-zinc-700 hover:text-zinc-200 transition-colors ml-auto",...N("studio-recorder-new"),children:"New"})]})]}),k&&r==="recording"&&y.jsxs("div",{style:{background:"#1a1a1a",border:"1px solid #333",borderRadius:8,padding:"10px 16px",display:"flex",alignItems:"center",gap:12},...N("studio-recorder-watch-prompt"),children:[y.jsx("span",{style:{color:"#e5e5e5",fontSize:13},...N("studio-recorder-watch-prompt-text"),children:"Screen changed — what did you just do?"}),["tap","inputText","scroll","swipe","back"].map(Y=>y.jsx("button",{onClick:()=>Yt(Y),...N(`studio-recorder-watch-prompt-${Ne(Y)}`),style:{background:"#262626",border:"1px solid #333",color:"#e5e5e5",padding:"4px 10px",borderRadius:4,fontSize:12,cursor:"pointer"},children:Y},Y)),y.jsx("button",{onClick:()=>L(!1),...N("studio-recorder-watch-prompt-dismiss"),style:{background:"transparent",border:"none",color:"#666",fontSize:12,cursor:"pointer",marginLeft:"auto"},children:"Dismiss"})]}),D&&y.jsxs("div",{style:{background:"#0f2a1a",border:"1px solid #1a4a2a",borderRadius:6,padding:"8px 14px",fontSize:13,color:"#4ade80"},...N("studio-recorder-save-success"),children:["Saved to:"," ",y.jsx("span",{style:{fontFamily:"monospace"},...N("studio-recorder-save-path"),children:D})]}),y.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4 flex-1 min-h-0",...N("studio-recorder-layout"),children:[y.jsxs("div",{className:"flex flex-col gap-3 min-h-0",...N("studio-recorder-left-panel"),children:[r==="recording"&&(K!=null&&K.image)?y.jsx("div",{ref:X,className:"min-h-0 overflow-auto",onClick:()=>{},...N("studio-recorder-screenshot-panel"),children:y.jsx($b,{image:K.image,onActionPick:Xt,hierarchyData:nt,state:r})}):y.jsx(jm,{actions:p,onDelete:ot,state:r}),r==="recording"&&y.jsx(jm,{actions:p,onDelete:ot,state:r,compact:!0})]}),y.jsxs("div",{style:{background:"#0a0a0a",border:"1px solid #262626",borderRadius:8,display:"flex",flexDirection:"column",minHeight:0,overflow:"hidden"},...N("studio-recorder-code-preview"),children:[y.jsxs("div",{style:{padding:"8px 14px",borderBottom:"1px solid #262626",display:"flex",alignItems:"center",justifyContent:"space-between"},...N("studio-recorder-code-preview-header"),children:[y.jsx("span",{style:{fontSize:13,fontWeight:600,color:"#a1a1aa"},...N("studio-recorder-code-preview-title"),children:"Code Preview"}),C&&y.jsxs("button",{onClick:_,...N("studio-recorder-copy-code"),style:{background:"transparent",border:"none",color:"#71717a",cursor:"pointer",display:"flex",alignItems:"center",gap:4,fontSize:12},children:[y.jsx(Ty,{className:"w-3.5 h-3.5"}),"Copy"]})]}),y.jsx("div",{style:{flex:1,overflow:"auto",padding:16},...N("studio-recorder-code-preview-body"),children:C?y.jsx("pre",{style:{fontFamily:"monospace",fontSize:12,color:"#e5e5e5",whiteSpace:"pre-wrap",wordBreak:"break-word",margin:0},...N("studio-recorder-code"),children:C}):y.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",color:"#52525b",fontSize:13},...N("studio-recorder-code-empty"),children:r==="idle"?"Start recording to generate code":r==="recording"?"Code will appear here as you record actions":"Click Generate or Save to produce code"})})]})]}),P&&y.jsx(My,{x:P.screenX,y:P.screenY,onPick:Y=>Xt(Y,{x:P.screenX,y:P.screenY}),onDismiss:()=>Z(null)})]})}function $b({image:u,onActionPick:l,hierarchyData:r,state:c}){const[f,h]=Q.useState(null),[p,x]=Q.useState(null),g=Q.useCallback(m=>{h(null),p&&l(m,p)},[p,l]);return y.jsxs("div",{style:{position:"relative",display:"inline-block"},onClickCapture:()=>{c==="recording"&&x(null)},...N("studio-recorder-clickable-screenshot"),children:[y.jsx(Fb,{image:u,onClickWithCoords:(m,C,v,D)=>{c==="recording"&&(x({x:v,y:D}),h({screenX:m,screenY:C,deviceX:v,deviceY:D}))}}),f&&y.jsx(My,{x:f.screenX,y:f.screenY,onPick:g,onDismiss:()=>h(null)})]})}function Fb({image:u,onClickWithCoords:l}){const r=Q.useRef(null),c=Q.useCallback(f=>{const h=r.current;if(!h)return;const p=h.getBoundingClientRect(),x=h.naturalWidth/p.width,g=h.naturalHeight/p.height,m=(f.clientX-p.left)*x,C=(f.clientY-p.top)*g;l(f.clientX,f.clientY,m,C)},[l]);return y.jsx("div",{style:{background:"#111",borderRadius:8,border:"1px solid #262626",overflow:"hidden",display:"inline-block"},children:y.jsx("img",{ref:r,src:`data:image/png;base64,${u}`,alt:"Device screenshot",style:{maxWidth:"100%",maxHeight:500,objectFit:"contain",cursor:"crosshair",display:"block"},onClick:c,draggable:!1,...N("studio-recorder-clickable-screenshot-image")})})}function jm({actions:u,onDelete:l,state:r,compact:c}){const f=c?"studio-recorder-action-timeline-compact":"studio-recorder-action-timeline";return y.jsxs("div",{style:{background:"#0a0a0a",border:"1px solid #262626",borderRadius:8,display:"flex",flexDirection:"column",minHeight:c?120:0,flex:c?"0 0 auto":1,overflow:"hidden",maxHeight:c?180:void 0},...N(f),children:[y.jsxs("div",{style:{padding:"8px 14px",borderBottom:"1px solid #262626",fontSize:13,fontWeight:600,color:"#a1a1aa",flexShrink:0},...N(`${f}-header`),children:["Action Timeline",u.length>0&&y.jsxs("span",{style:{marginLeft:8,fontSize:11,color:"#52525b",fontWeight:400},...N(`${f}-count`),children:[u.length," action",u.length!==1?"s":""]})]}),y.jsx("div",{style:{flex:1,overflow:"auto",padding:"8px 0"},...N(`${f}-body`),children:u.length===0?y.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",minHeight:60,color:"#52525b",fontSize:13},...N(`${f}-empty`),children:r==="recording"?"Click elements to record actions":"No actions recorded"}):u.map((h,p)=>y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"6px 14px",borderBottom:"1px solid #1a1a1a"},...N(`${f}-action-${p+1}`),onMouseEnter:x=>{x.currentTarget.style.background="#111"},onMouseLeave:x=>{x.currentTarget.style.background="transparent"},children:[y.jsx("span",{style:{width:22,height:22,borderRadius:"50%",background:"#262626",color:"#71717a",display:"flex",alignItems:"center",justifyContent:"center",fontSize:10,fontWeight:600,flexShrink:0},children:p+1}),y.jsxs("div",{style:{flex:1,minWidth:0},children:[y.jsx("span",{style:{fontSize:13,color:"#e5e5e5",fontWeight:500},children:h.type}),h.selector&&y.jsx("span",{style:{marginLeft:8,fontSize:11,color:"#71717a",fontFamily:"monospace",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:200,display:"inline-block",verticalAlign:"middle"},children:h.selector})]}),y.jsx("button",{onClick:()=>l(h.id),...N(`${f}-delete-${p+1}`),style:{background:"transparent",border:"none",color:"#52525b",cursor:"pointer",padding:4,borderRadius:4,display:"flex",alignItems:"center",flexShrink:0},onMouseEnter:x=>{x.currentTarget.style.color="#ef4444"},onMouseLeave:x=>{x.currentTarget.style.color="#52525b"},children:y.jsx(Ny,{style:{width:14,height:14}})})]},h.id))})]})}var Wb=km();const Ib=Vm(Wb);function Pb(u){if(typeof document>"u")return;let l=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",l.appendChild(r),r.styleSheet?r.styleSheet.cssText=u:r.appendChild(document.createTextNode(u))}const tx=u=>{switch(u){case"success":return nx;case"info":return ix;case"warning":return lx;case"error":return ux;default:return null}},ex=Array(12).fill(0),ax=({visible:u,className:l})=>J.createElement("div",{className:["sonner-loading-wrapper",l].filter(Boolean).join(" "),"data-visible":u},J.createElement("div",{className:"sonner-spinner"},ex.map((r,c)=>J.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${c}`})))),nx=J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},J.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),lx=J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},J.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),ix=J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},J.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),ux=J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},J.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),sx=J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},J.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),J.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),cx=()=>{const[u,l]=J.useState(document.hidden);return J.useEffect(()=>{const r=()=>{l(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),u};let nf=1;class rx{constructor(){this.subscribe=l=>(this.subscribers.push(l),()=>{const r=this.subscribers.indexOf(l);this.subscribers.splice(r,1)}),this.publish=l=>{this.subscribers.forEach(r=>r(l))},this.addToast=l=>{this.publish(l),this.toasts=[...this.toasts,l]},this.create=l=>{var r;const{message:c,...f}=l,h=typeof(l==null?void 0:l.id)=="number"||((r=l.id)==null?void 0:r.length)>0?l.id:nf++,p=this.toasts.find(g=>g.id===h),x=l.dismissible===void 0?!0:l.dismissible;return this.dismissedToasts.has(h)&&this.dismissedToasts.delete(h),p?this.toasts=this.toasts.map(g=>g.id===h?(this.publish({...g,...l,id:h,title:c}),{...g,...l,id:h,dismissible:x,title:c}):g):this.addToast({title:c,...f,dismissible:x,id:h}),h},this.dismiss=l=>(l?(this.dismissedToasts.add(l),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:l,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(c=>c({id:r.id,dismiss:!0}))}),l),this.message=(l,r)=>this.create({...r,message:l}),this.error=(l,r)=>this.create({...r,message:l,type:"error"}),this.success=(l,r)=>this.create({...r,type:"success",message:l}),this.info=(l,r)=>this.create({...r,type:"info",message:l}),this.warning=(l,r)=>this.create({...r,type:"warning",message:l}),this.loading=(l,r)=>this.create({...r,type:"loading",message:l}),this.promise=(l,r)=>{if(!r)return;let c;r.loading!==void 0&&(c=this.create({...r,promise:l,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const f=Promise.resolve(l instanceof Function?l():l);let h=c!==void 0,p;const x=f.then(async m=>{if(p=["resolve",m],J.isValidElement(m))h=!1,this.create({id:c,type:"default",message:m});else if(fx(m)&&!m.ok){h=!1;const v=typeof r.error=="function"?await r.error(`HTTP error! status: ${m.status}`):r.error,D=typeof r.description=="function"?await r.description(`HTTP error! status: ${m.status}`):r.description,V=typeof v=="object"&&!J.isValidElement(v)?v:{message:v};this.create({id:c,type:"error",description:D,...V})}else if(m instanceof Error){h=!1;const v=typeof r.error=="function"?await r.error(m):r.error,D=typeof r.description=="function"?await r.description(m):r.description,V=typeof v=="object"&&!J.isValidElement(v)?v:{message:v};this.create({id:c,type:"error",description:D,...V})}else if(r.success!==void 0){h=!1;const v=typeof r.success=="function"?await r.success(m):r.success,D=typeof r.description=="function"?await r.description(m):r.description,V=typeof v=="object"&&!J.isValidElement(v)?v:{message:v};this.create({id:c,type:"success",description:D,...V})}}).catch(async m=>{if(p=["reject",m],r.error!==void 0){h=!1;const C=typeof r.error=="function"?await r.error(m):r.error,v=typeof r.description=="function"?await r.description(m):r.description,G=typeof C=="object"&&!J.isValidElement(C)?C:{message:C};this.create({id:c,type:"error",description:v,...G})}}).finally(()=>{h&&(this.dismiss(c),c=void 0),r.finally==null||r.finally.call(r)}),g=()=>new Promise((m,C)=>x.then(()=>p[0]==="reject"?C(p[1]):m(p[1])).catch(C));return typeof c!="string"&&typeof c!="number"?{unwrap:g}:Object.assign(c,{unwrap:g})},this.custom=(l,r)=>{const c=(r==null?void 0:r.id)||nf++;return this.create({jsx:l(c),id:c,...r}),c},this.getActiveToasts=()=>this.toasts.filter(l=>!this.dismissedToasts.has(l.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Be=new rx,ox=(u,l)=>{const r=(l==null?void 0:l.id)||nf++;return Be.addToast({title:u,...l,id:r}),r},fx=u=>u&&typeof u=="object"&&"ok"in u&&typeof u.ok=="boolean"&&"status"in u&&typeof u.status=="number",dx=ox,hx=()=>Be.toasts,mx=()=>Be.getActiveToasts();Object.assign(dx,{success:Be.success,info:Be.info,warning:Be.warning,error:Be.error,custom:Be.custom,message:Be.message,promise:Be.promise,dismiss:Be.dismiss,loading:Be.loading},{getHistory:hx,getToasts:mx});Pb("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function sc(u){return u.label!==void 0}const yx=3,vx="24px",px="16px",Dm=4e3,gx=356,bx=14,xx=45,Sx=200;function Na(...u){return u.filter(Boolean).join(" ")}function Ex(u){const[l,r]=u.split("-"),c=[];return l&&c.push(l),r&&c.push(r),c}const zx=u=>{var l,r,c,f,h,p,x,g,m;const{invert:C,toast:v,unstyled:D,interacting:G,setHeights:V,visibleToasts:I,heights:k,index:L,toasts:st,expanded:P,removeToast:Z,defaultRichColors:K,closeButton:nt,style:$,cancelButtonStyle:tt,actionButtonStyle:ot,className:dt="",descriptionClassName:mt="",duration:zt,position:Mt,gap:Xt,expandByDefault:Yt,classNames:_,icons:X,closeButtonAriaLabel:Y="Close toast"}=u,[ct,ft]=J.useState(null),[E,j]=J.useState(null),[B,U]=J.useState(!1),[W,at]=J.useState(!1),[xt,bt]=J.useState(!1),[Ut,pa]=J.useState(!1),[Ra,ga]=J.useState(!1),[Lu,ra]=J.useState(0),[Ai,zl]=J.useState(0),Gn=J.useRef(v.duration||zt||Dm),_i=J.useRef(null),Ye=J.useRef(null),Ci=L===0,wi=L+1<=I,xe=v.type,an=v.dismissible!==!1,Se=v.className||"",gc=v.descriptionClassName||"",Xn=J.useMemo(()=>k.findIndex(ht=>ht.toastId===v.id)||0,[k,v.id]),Gu=J.useMemo(()=>{var ht;return(ht=v.closeButton)!=null?ht:nt},[v.closeButton,nt]),Kn=J.useMemo(()=>v.duration||zt||Dm,[v.duration,zt]),Ri=J.useRef(0),Ma=J.useRef(0),Xu=J.useRef(0),nn=J.useRef(null),[Zn,Ee]=Mt.split("-"),oa=J.useMemo(()=>k.reduce((ht,Kt,ie)=>ie>=Xn?ht:ht+Kt.height,0),[k,Xn]),ye=cx(),bc=v.invert||C,Mi=xe==="loading";Ma.current=J.useMemo(()=>Xn*Xt+oa,[Xn,oa]),J.useEffect(()=>{Gn.current=Kn},[Kn]),J.useEffect(()=>{U(!0)},[]),J.useEffect(()=>{const ht=Ye.current;if(ht){const Kt=ht.getBoundingClientRect().height;return zl(Kt),V(ie=>[{toastId:v.id,height:Kt,position:v.position},...ie]),()=>V(ie=>ie.filter(ve=>ve.toastId!==v.id))}},[V,v.id]),J.useLayoutEffect(()=>{if(!B)return;const ht=Ye.current,Kt=ht.style.height;ht.style.height="auto";const ie=ht.getBoundingClientRect().height;ht.style.height=Kt,zl(ie),V(ve=>ve.find(Vt=>Vt.toastId===v.id)?ve.map(Vt=>Vt.toastId===v.id?{...Vt,height:ie}:Vt):[{toastId:v.id,height:ie,position:v.position},...ve])},[B,v.title,v.description,V,v.id,v.jsx,v.action,v.cancel]);const ba=J.useCallback(()=>{at(!0),ra(Ma.current),V(ht=>ht.filter(Kt=>Kt.toastId!==v.id)),setTimeout(()=>{Z(v)},Sx)},[v,Z,V,Ma]);J.useEffect(()=>{if(v.promise&&xe==="loading"||v.duration===1/0||v.type==="loading")return;let ht;return P||G||ye?(()=>{if(Xu.current<Ri.current){const ve=new Date().getTime()-Ri.current;Gn.current=Gn.current-ve}Xu.current=new Date().getTime()})():(()=>{Gn.current!==1/0&&(Ri.current=new Date().getTime(),ht=setTimeout(()=>{v.onAutoClose==null||v.onAutoClose.call(v,v),ba()},Gn.current))})(),()=>clearTimeout(ht)},[P,G,v,xe,ye,ba]),J.useEffect(()=>{v.delete&&(ba(),v.onDismiss==null||v.onDismiss.call(v,v))},[ba,v.delete]);function Tl(){var ht;if(X!=null&&X.loading){var Kt;return J.createElement("div",{className:Na(_==null?void 0:_.loader,v==null||(Kt=v.classNames)==null?void 0:Kt.loader,"sonner-loader"),"data-visible":xe==="loading"},X.loading)}return J.createElement(ax,{className:Na(_==null?void 0:_.loader,v==null||(ht=v.classNames)==null?void 0:ht.loader),visible:xe==="loading"})}const Nl=v.icon||(X==null?void 0:X[xe])||tx(xe);var Vn,xa;return J.createElement("li",{tabIndex:0,ref:Ye,className:Na(dt,Se,_==null?void 0:_.toast,v==null||(l=v.classNames)==null?void 0:l.toast,_==null?void 0:_.default,_==null?void 0:_[xe],v==null||(r=v.classNames)==null?void 0:r[xe]),"data-sonner-toast":"","data-rich-colors":(Vn=v.richColors)!=null?Vn:K,"data-styled":!(v.jsx||v.unstyled||D),"data-mounted":B,"data-promise":!!v.promise,"data-swiped":Ra,"data-removed":W,"data-visible":wi,"data-y-position":Zn,"data-x-position":Ee,"data-index":L,"data-front":Ci,"data-swiping":xt,"data-dismissible":an,"data-type":xe,"data-invert":bc,"data-swipe-out":Ut,"data-swipe-direction":E,"data-expanded":!!(P||Yt&&B),"data-testid":v.testId,style:{"--index":L,"--toasts-before":L,"--z-index":st.length-L,"--offset":`${W?Lu:Ma.current}px`,"--initial-height":Yt?"auto":`${Ai}px`,...$,...v.style},onDragEnd:()=>{bt(!1),ft(null),nn.current=null},onPointerDown:ht=>{ht.button!==2&&(Mi||!an||(_i.current=new Date,ra(Ma.current),ht.target.setPointerCapture(ht.pointerId),ht.target.tagName!=="BUTTON"&&(bt(!0),nn.current={x:ht.clientX,y:ht.clientY})))},onPointerUp:()=>{var ht,Kt,ie;if(Ut||!an)return;nn.current=null;const ve=Number(((ht=Ye.current)==null?void 0:ht.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),ln=Number(((Kt=Ye.current)==null?void 0:Kt.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Vt=new Date().getTime()-((ie=_i.current)==null?void 0:ie.getTime()),Oe=ct==="x"?ve:ln,kn=Math.abs(Oe)/Vt;if(Math.abs(Oe)>=xx||kn>.11){ra(Ma.current),v.onDismiss==null||v.onDismiss.call(v,v),j(ct==="x"?ve>0?"right":"left":ln>0?"down":"up"),ba(),pa(!0);return}else{var Ae,_e;(Ae=Ye.current)==null||Ae.style.setProperty("--swipe-amount-x","0px"),(_e=Ye.current)==null||_e.style.setProperty("--swipe-amount-y","0px")}ga(!1),bt(!1),ft(null)},onPointerMove:ht=>{var Kt,ie,ve;if(!nn.current||!an||((Kt=window.getSelection())==null?void 0:Kt.toString().length)>0)return;const Vt=ht.clientY-nn.current.y,Oe=ht.clientX-nn.current.x;var kn;const Ae=(kn=u.swipeDirections)!=null?kn:Ex(Mt);!ct&&(Math.abs(Oe)>1||Math.abs(Vt)>1)&&ft(Math.abs(Oe)>Math.abs(Vt)?"x":"y");let _e={x:0,y:0};const Ol=fa=>1/(1.5+Math.abs(fa)/20);if(ct==="y"){if(Ae.includes("top")||Ae.includes("bottom"))if(Ae.includes("top")&&Vt<0||Ae.includes("bottom")&&Vt>0)_e.y=Vt;else{const fa=Vt*Ol(Vt);_e.y=Math.abs(fa)<Math.abs(Vt)?fa:Vt}}else if(ct==="x"&&(Ae.includes("left")||Ae.includes("right")))if(Ae.includes("left")&&Oe<0||Ae.includes("right")&&Oe>0)_e.x=Oe;else{const fa=Oe*Ol(Oe);_e.x=Math.abs(fa)<Math.abs(Oe)?fa:Oe}(Math.abs(_e.x)>0||Math.abs(_e.y)>0)&&ga(!0),(ie=Ye.current)==null||ie.style.setProperty("--swipe-amount-x",`${_e.x}px`),(ve=Ye.current)==null||ve.style.setProperty("--swipe-amount-y",`${_e.y}px`)}},Gu&&!v.jsx&&xe!=="loading"?J.createElement("button",{"aria-label":Y,"data-disabled":Mi,"data-close-button":!0,onClick:Mi||!an?()=>{}:()=>{ba(),v.onDismiss==null||v.onDismiss.call(v,v)},className:Na(_==null?void 0:_.closeButton,v==null||(c=v.classNames)==null?void 0:c.closeButton)},(xa=X==null?void 0:X.close)!=null?xa:sx):null,(xe||v.icon||v.promise)&&v.icon!==null&&((X==null?void 0:X[xe])!==null||v.icon)?J.createElement("div",{"data-icon":"",className:Na(_==null?void 0:_.icon,v==null||(f=v.classNames)==null?void 0:f.icon)},v.promise||v.type==="loading"&&!v.icon?v.icon||Tl():null,v.type!=="loading"?Nl:null):null,J.createElement("div",{"data-content":"",className:Na(_==null?void 0:_.content,v==null||(h=v.classNames)==null?void 0:h.content)},J.createElement("div",{"data-title":"",className:Na(_==null?void 0:_.title,v==null||(p=v.classNames)==null?void 0:p.title)},v.jsx?v.jsx:typeof v.title=="function"?v.title():v.title),v.description?J.createElement("div",{"data-description":"",className:Na(mt,gc,_==null?void 0:_.description,v==null||(x=v.classNames)==null?void 0:x.description)},typeof v.description=="function"?v.description():v.description):null),J.isValidElement(v.cancel)?v.cancel:v.cancel&&sc(v.cancel)?J.createElement("button",{"data-button":!0,"data-cancel":!0,style:v.cancelButtonStyle||tt,onClick:ht=>{sc(v.cancel)&&an&&(v.cancel.onClick==null||v.cancel.onClick.call(v.cancel,ht),ba())},className:Na(_==null?void 0:_.cancelButton,v==null||(g=v.classNames)==null?void 0:g.cancelButton)},v.cancel.label):null,J.isValidElement(v.action)?v.action:v.action&&sc(v.action)?J.createElement("button",{"data-button":!0,"data-action":!0,style:v.actionButtonStyle||ot,onClick:ht=>{sc(v.action)&&(v.action.onClick==null||v.action.onClick.call(v.action,ht),!ht.defaultPrevented&&ba())},className:Na(_==null?void 0:_.actionButton,v==null||(m=v.classNames)==null?void 0:m.actionButton)},v.action.label):null)};function Um(){if(typeof window>"u"||typeof document>"u")return"ltr";const u=document.documentElement.getAttribute("dir");return u==="auto"||!u?window.getComputedStyle(document.documentElement).direction:u}function Tx(u,l){const r={};return[u,l].forEach((c,f)=>{const h=f===1,p=h?"--mobile-offset":"--offset",x=h?px:vx;function g(m){["top","right","bottom","left"].forEach(C=>{r[`${p}-${C}`]=typeof m=="number"?`${m}px`:m})}typeof c=="number"||typeof c=="string"?g(c):typeof c=="object"?["top","right","bottom","left"].forEach(m=>{c[m]===void 0?r[`${p}-${m}`]=x:r[`${p}-${m}`]=typeof c[m]=="number"?`${c[m]}px`:c[m]}):g(x)}),r}const Nx=J.forwardRef(function(l,r){const{id:c,invert:f,position:h="bottom-right",hotkey:p=["altKey","KeyT"],expand:x,closeButton:g,className:m,offset:C,mobileOffset:v,theme:D="light",richColors:G,duration:V,style:I,visibleToasts:k=yx,toastOptions:L,dir:st=Um(),gap:P=bx,icons:Z,containerAriaLabel:K="Notifications"}=l,[nt,$]=J.useState([]),tt=J.useMemo(()=>c?nt.filter(B=>B.toasterId===c):nt.filter(B=>!B.toasterId),[nt,c]),ot=J.useMemo(()=>Array.from(new Set([h].concat(tt.filter(B=>B.position).map(B=>B.position)))),[tt,h]),[dt,mt]=J.useState([]),[zt,Mt]=J.useState(!1),[Xt,Yt]=J.useState(!1),[_,X]=J.useState(D!=="system"?D:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),Y=J.useRef(null),ct=p.join("+").replace(/Key/g,"").replace(/Digit/g,""),ft=J.useRef(null),E=J.useRef(!1),j=J.useCallback(B=>{$(U=>{var W;return(W=U.find(at=>at.id===B.id))!=null&&W.delete||Be.dismiss(B.id),U.filter(({id:at})=>at!==B.id)})},[]);return J.useEffect(()=>Be.subscribe(B=>{if(B.dismiss){requestAnimationFrame(()=>{$(U=>U.map(W=>W.id===B.id?{...W,delete:!0}:W))});return}setTimeout(()=>{Ib.flushSync(()=>{$(U=>{const W=U.findIndex(at=>at.id===B.id);return W!==-1?[...U.slice(0,W),{...U[W],...B},...U.slice(W+1)]:[B,...U]})})})}),[nt]),J.useEffect(()=>{if(D!=="system"){X(D);return}if(D==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?X("dark"):X("light")),typeof window>"u")return;const B=window.matchMedia("(prefers-color-scheme: dark)");try{B.addEventListener("change",({matches:U})=>{X(U?"dark":"light")})}catch{B.addListener(({matches:W})=>{try{X(W?"dark":"light")}catch(at){console.error(at)}})}},[D]),J.useEffect(()=>{nt.length<=1&&Mt(!1)},[nt]),J.useEffect(()=>{const B=U=>{var W;if(p.every(bt=>U[bt]||U.code===bt)){var xt;Mt(!0),(xt=Y.current)==null||xt.focus()}U.code==="Escape"&&(document.activeElement===Y.current||(W=Y.current)!=null&&W.contains(document.activeElement))&&Mt(!1)};return document.addEventListener("keydown",B),()=>document.removeEventListener("keydown",B)},[p]),J.useEffect(()=>{if(Y.current)return()=>{ft.current&&(ft.current.focus({preventScroll:!0}),ft.current=null,E.current=!1)}},[Y.current]),J.createElement("section",{ref:r,"aria-label":`${K} ${ct}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},ot.map((B,U)=>{var W;const[at,xt]=B.split("-");return tt.length?J.createElement("ol",{key:B,dir:st==="auto"?Um():st,tabIndex:-1,ref:Y,className:m,"data-sonner-toaster":!0,"data-sonner-theme":_,"data-y-position":at,"data-x-position":xt,style:{"--front-toast-height":`${((W=dt[0])==null?void 0:W.height)||0}px`,"--width":`${gx}px`,"--gap":`${P}px`,...I,...Tx(C,v)},onBlur:bt=>{E.current&&!bt.currentTarget.contains(bt.relatedTarget)&&(E.current=!1,ft.current&&(ft.current.focus({preventScroll:!0}),ft.current=null))},onFocus:bt=>{bt.target instanceof HTMLElement&&bt.target.dataset.dismissible==="false"||E.current||(E.current=!0,ft.current=bt.relatedTarget)},onMouseEnter:()=>Mt(!0),onMouseMove:()=>Mt(!0),onMouseLeave:()=>{Xt||Mt(!1)},onDragEnd:()=>Mt(!1),onPointerDown:bt=>{bt.target instanceof HTMLElement&&bt.target.dataset.dismissible==="false"||Yt(!0)},onPointerUp:()=>Yt(!1)},tt.filter(bt=>!bt.position&&U===0||bt.position===B).map((bt,Ut)=>{var pa,Ra;return J.createElement(zx,{key:bt.id,icons:Z,index:Ut,toast:bt,defaultRichColors:G,duration:(pa=L==null?void 0:L.duration)!=null?pa:V,className:L==null?void 0:L.className,descriptionClassName:L==null?void 0:L.descriptionClassName,invert:f,visibleToasts:k,closeButton:(Ra=L==null?void 0:L.closeButton)!=null?Ra:g,interacting:Xt,position:B,style:L==null?void 0:L.style,unstyled:L==null?void 0:L.unstyled,classNames:L==null?void 0:L.classNames,cancelButtonStyle:L==null?void 0:L.cancelButtonStyle,actionButtonStyle:L==null?void 0:L.actionButtonStyle,closeButtonAriaLabel:L==null?void 0:L.closeButtonAriaLabel,removeToast:j,toasts:tt.filter(ga=>ga.position==bt.position),heights:dt.filter(ga=>ga.position==bt.position),setHeights:mt,expandByDefault:x,gap:P,expanded:zt,swipeDirections:l.swipeDirections})})):null}))});function Ox(){const[u,l]=Q.useState("inspector");return Q.useEffect(()=>{console.log("[studio] App mounted, page:",u)},[u]),y.jsxs(Ag,{client:Qg,children:[y.jsxs("div",{className:"min-h-screen bg-zinc-950 text-zinc-100 flex flex-col",...N("studio-app"),children:[y.jsxs("header",{className:"border-b border-zinc-800 px-6 py-3 flex items-center gap-6",children:[y.jsx("h1",{className:"text-lg font-bold",...N("studio-title"),children:"Spana Studio"}),y.jsxs("nav",{className:"flex gap-1",...N("studio-nav"),children:[y.jsx("button",{onClick:()=>l("inspector"),...N("studio-nav-inspector"),className:`px-3 py-1.5 rounded text-sm ${u==="inspector"?"bg-zinc-800 text-zinc-100":"text-zinc-400 hover:text-zinc-200"}`,children:"Inspector"}),y.jsx("button",{onClick:()=>l("runner"),...N("studio-nav-runner"),className:`px-3 py-1.5 rounded text-sm ${u==="runner"?"bg-zinc-800 text-zinc-100":"text-zinc-400 hover:text-zinc-200"}`,children:"Test Runner"}),y.jsx("button",{onClick:()=>l("recorder"),...N("studio-nav-recorder"),className:`px-3 py-1.5 rounded text-sm ${u==="recorder"?"bg-zinc-800 text-zinc-100":"text-zinc-400 hover:text-zinc-200"}`,children:"Recorder"})]})]}),y.jsxs("main",{className:"flex-1 p-6",...N("studio-main"),children:[y.jsx("div",{className:u==="inspector"?"":"hidden",children:y.jsx(Hb,{})}),y.jsx("div",{className:u==="runner"?"":"hidden",children:y.jsx(kb,{})}),y.jsx("div",{className:u==="recorder"?"":"hidden",children:y.jsx(Jb,{})})]})]}),y.jsx(Nx,{theme:"dark"})]})}tg.createRoot(document.getElementById("root")).render(y.jsx(Q.StrictMode,{children:y.jsx(Ox,{})}));