@vizzly-testing/cli 0.13.4 → 0.15.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 (143) hide show
  1. package/dist/cli.js +68 -68
  2. package/dist/commands/doctor.js +30 -34
  3. package/dist/commands/finalize.js +24 -23
  4. package/dist/commands/init.js +30 -28
  5. package/dist/commands/login.js +49 -55
  6. package/dist/commands/logout.js +14 -19
  7. package/dist/commands/project.js +83 -103
  8. package/dist/commands/run.js +77 -89
  9. package/dist/commands/status.js +48 -49
  10. package/dist/commands/tdd-daemon.js +90 -86
  11. package/dist/commands/tdd.js +59 -88
  12. package/dist/commands/upload.js +57 -57
  13. package/dist/commands/whoami.js +40 -45
  14. package/dist/index.js +2 -5
  15. package/dist/plugin-loader.js +15 -17
  16. package/dist/reporter/reporter-bundle.css +1 -1
  17. package/dist/reporter/reporter-bundle.iife.js +78 -32
  18. package/dist/sdk/index.js +36 -45
  19. package/dist/server/handlers/api-handler.js +14 -15
  20. package/dist/server/handlers/tdd-handler.js +34 -37
  21. package/dist/server/http-server.js +75 -869
  22. package/dist/server/middleware/cors.js +22 -0
  23. package/dist/server/middleware/json-parser.js +35 -0
  24. package/dist/server/middleware/response.js +79 -0
  25. package/dist/server/routers/assets.js +91 -0
  26. package/dist/server/routers/auth.js +144 -0
  27. package/dist/server/routers/baseline.js +163 -0
  28. package/dist/server/routers/cloud-proxy.js +146 -0
  29. package/dist/server/routers/config.js +126 -0
  30. package/dist/server/routers/dashboard.js +130 -0
  31. package/dist/server/routers/health.js +61 -0
  32. package/dist/server/routers/projects.js +168 -0
  33. package/dist/server/routers/screenshot.js +86 -0
  34. package/dist/services/auth-service.js +1 -1
  35. package/dist/services/build-manager.js +13 -40
  36. package/dist/services/config-service.js +2 -4
  37. package/dist/services/html-report-generator.js +6 -5
  38. package/dist/services/index.js +64 -0
  39. package/dist/services/project-service.js +121 -40
  40. package/dist/services/screenshot-server.js +9 -9
  41. package/dist/services/server-manager.js +11 -18
  42. package/dist/services/static-report-generator.js +3 -4
  43. package/dist/services/tdd-service.js +246 -103
  44. package/dist/services/test-runner.js +24 -25
  45. package/dist/services/uploader.js +5 -4
  46. package/dist/types/commands/init.d.ts +1 -2
  47. package/dist/types/index.d.ts +2 -3
  48. package/dist/types/plugin-loader.d.ts +1 -2
  49. package/dist/types/reporter/src/api/client.d.ts +178 -0
  50. package/dist/types/reporter/src/components/app-router.d.ts +1 -3
  51. package/dist/types/reporter/src/components/code-block.d.ts +4 -0
  52. package/dist/types/reporter/src/components/comparison/comparison-modes/onion-skin-mode.d.ts +10 -0
  53. package/dist/types/reporter/src/components/comparison/comparison-modes/overlay-mode.d.ts +11 -0
  54. package/dist/types/reporter/src/components/comparison/comparison-modes/shared/base-comparison-mode.d.ts +14 -0
  55. package/dist/types/reporter/src/components/comparison/comparison-modes/shared/image-renderer.d.ts +30 -0
  56. package/dist/types/reporter/src/components/comparison/comparison-modes/toggle-view.d.ts +8 -0
  57. package/dist/types/reporter/src/components/comparison/comparison-viewer.d.ts +4 -0
  58. package/dist/types/reporter/src/components/comparison/fullscreen-viewer.d.ts +13 -0
  59. package/dist/types/reporter/src/components/comparison/screenshot-display.d.ts +16 -0
  60. package/dist/types/reporter/src/components/comparison/screenshot-list.d.ts +9 -0
  61. package/dist/types/reporter/src/components/comparison/variant-selector.d.ts +1 -1
  62. package/dist/types/reporter/src/components/design-system/alert.d.ts +9 -0
  63. package/dist/types/reporter/src/components/design-system/badge.d.ts +17 -0
  64. package/dist/types/reporter/src/components/design-system/button.d.ts +19 -0
  65. package/dist/types/reporter/src/components/design-system/card.d.ts +31 -0
  66. package/dist/types/reporter/src/components/design-system/empty-state.d.ts +13 -0
  67. package/dist/types/reporter/src/components/design-system/form-controls.d.ts +44 -0
  68. package/dist/types/reporter/src/components/design-system/health-ring.d.ts +7 -0
  69. package/dist/types/reporter/src/components/design-system/index.d.ts +11 -0
  70. package/dist/types/reporter/src/components/design-system/modal.d.ts +10 -0
  71. package/dist/types/reporter/src/components/design-system/skeleton.d.ts +19 -0
  72. package/dist/types/reporter/src/components/design-system/spinner.d.ts +10 -0
  73. package/dist/types/reporter/src/components/design-system/tabs.d.ts +13 -0
  74. package/dist/types/reporter/src/components/layout/header.d.ts +5 -0
  75. package/dist/types/reporter/src/components/layout/index.d.ts +2 -0
  76. package/dist/types/reporter/src/components/layout/layout.d.ts +6 -0
  77. package/dist/types/reporter/src/components/views/builds-view.d.ts +1 -0
  78. package/dist/types/reporter/src/components/views/comparison-detail-view.d.ts +5 -0
  79. package/dist/types/reporter/src/components/views/comparisons-view.d.ts +5 -6
  80. package/dist/types/reporter/src/components/views/stats-view.d.ts +1 -6
  81. package/dist/types/reporter/src/components/waiting-for-screenshots.d.ts +1 -0
  82. package/dist/types/reporter/src/hooks/queries/use-auth-queries.d.ts +15 -0
  83. package/dist/types/reporter/src/hooks/queries/use-cloud-queries.d.ts +6 -0
  84. package/dist/types/reporter/src/hooks/queries/use-config-queries.d.ts +6 -0
  85. package/dist/types/reporter/src/hooks/queries/use-tdd-queries.d.ts +9 -0
  86. package/dist/types/reporter/src/lib/query-client.d.ts +2 -0
  87. package/dist/types/reporter/src/lib/query-keys.d.ts +13 -0
  88. package/dist/types/sdk/index.d.ts +2 -4
  89. package/dist/types/server/handlers/tdd-handler.d.ts +2 -0
  90. package/dist/types/server/http-server.d.ts +1 -1
  91. package/dist/types/server/middleware/cors.d.ts +11 -0
  92. package/dist/types/server/middleware/json-parser.d.ts +10 -0
  93. package/dist/types/server/middleware/response.d.ts +50 -0
  94. package/dist/types/server/routers/assets.d.ts +6 -0
  95. package/dist/types/server/routers/auth.d.ts +9 -0
  96. package/dist/types/server/routers/baseline.d.ts +13 -0
  97. package/dist/types/server/routers/cloud-proxy.d.ts +11 -0
  98. package/dist/types/server/routers/config.d.ts +9 -0
  99. package/dist/types/server/routers/dashboard.d.ts +6 -0
  100. package/dist/types/server/routers/health.d.ts +11 -0
  101. package/dist/types/server/routers/projects.d.ts +9 -0
  102. package/dist/types/server/routers/screenshot.d.ts +11 -0
  103. package/dist/types/services/build-manager.d.ts +4 -3
  104. package/dist/types/services/config-service.d.ts +2 -3
  105. package/dist/types/services/index.d.ts +7 -0
  106. package/dist/types/services/project-service.d.ts +6 -4
  107. package/dist/types/services/screenshot-server.d.ts +5 -5
  108. package/dist/types/services/server-manager.d.ts +5 -3
  109. package/dist/types/services/tdd-service.d.ts +12 -1
  110. package/dist/types/services/test-runner.d.ts +3 -3
  111. package/dist/types/utils/output.d.ts +84 -0
  112. package/dist/utils/config-loader.js +24 -48
  113. package/dist/utils/global-config.js +2 -17
  114. package/dist/utils/output.js +445 -0
  115. package/dist/utils/security.js +3 -4
  116. package/docs/api-reference.md +0 -1
  117. package/docs/plugins.md +22 -22
  118. package/package.json +3 -2
  119. package/dist/container/index.js +0 -215
  120. package/dist/services/base-service.js +0 -154
  121. package/dist/types/container/index.d.ts +0 -59
  122. package/dist/types/reporter/src/components/comparison/viewer-modes/onion-viewer.d.ts +0 -3
  123. package/dist/types/reporter/src/components/comparison/viewer-modes/overlay-viewer.d.ts +0 -3
  124. package/dist/types/reporter/src/components/comparison/viewer-modes/side-by-side-viewer.d.ts +0 -3
  125. package/dist/types/reporter/src/components/comparison/viewer-modes/toggle-viewer.d.ts +0 -3
  126. package/dist/types/reporter/src/components/dashboard/dashboard-header.d.ts +0 -5
  127. package/dist/types/reporter/src/components/dashboard/dashboard-stats.d.ts +0 -4
  128. package/dist/types/reporter/src/components/dashboard/empty-state.d.ts +0 -8
  129. package/dist/types/reporter/src/components/ui/form-field.d.ts +0 -16
  130. package/dist/types/reporter/src/components/ui/status-badge.d.ts +0 -5
  131. package/dist/types/reporter/src/hooks/use-auth.d.ts +0 -10
  132. package/dist/types/reporter/src/hooks/use-baseline-actions.d.ts +0 -5
  133. package/dist/types/reporter/src/hooks/use-config.d.ts +0 -9
  134. package/dist/types/reporter/src/hooks/use-projects.d.ts +0 -10
  135. package/dist/types/reporter/src/hooks/use-report-data.d.ts +0 -7
  136. package/dist/types/reporter/src/hooks/use-vizzly-api.d.ts +0 -9
  137. package/dist/types/services/base-service.d.ts +0 -71
  138. package/dist/types/utils/console-ui.d.ts +0 -61
  139. package/dist/types/utils/logger-factory.d.ts +0 -26
  140. package/dist/types/utils/logger.d.ts +0 -79
  141. package/dist/utils/console-ui.js +0 -241
  142. package/dist/utils/logger-factory.js +0 -76
  143. package/dist/utils/logger.js +0 -231
@@ -1,34 +1,80 @@
1
- (function(){"use strict";function j0(s,o){for(var d=0;d<o.length;d++){const f=o[d];if(typeof f!="string"&&!Array.isArray(f)){for(const w in f)if(w!=="default"&&!(w in s)){const T=Object.getOwnPropertyDescriptor(f,w);T&&Object.defineProperty(s,w,T.get?T:{enumerable:!0,get:()=>f[w]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}function Us(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var ai={exports:{}},Ra={};var Bs;function N0(){if(Bs)return Ra;Bs=1;var s=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function d(f,w,T){var E=null;if(T!==void 0&&(E=""+T),w.key!==void 0&&(E=""+w.key),"key"in w){T={};for(var R in w)R!=="key"&&(T[R]=w[R])}else T=w;return w=T.ref,{$$typeof:s,type:f,key:E,ref:w!==void 0?w:null,props:T}}return Ra.Fragment=o,Ra.jsx=d,Ra.jsxs=d,Ra}var Hs;function E0(){return Hs||(Hs=1,ai.exports=N0()),ai.exports}var c=E0(),ni={exports:{}},k={};var Ls;function w0(){if(Ls)return k;Ls=1;var s=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),E=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),N=Symbol.for("react.activity"),_=Symbol.iterator;function X(v){return v===null||typeof v!="object"?null:(v=_&&v[_]||v["@@iterator"],typeof v=="function"?v:null)}var B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},V=Object.assign,q={};function $(v,D,L){this.props=v,this.context=D,this.refs=q,this.updater=L||B}$.prototype.isReactComponent={},$.prototype.setState=function(v,D){if(typeof v!="object"&&typeof v!="function"&&v!=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,v,D,"setState")},$.prototype.forceUpdate=function(v){this.updater.enqueueForceUpdate(this,v,"forceUpdate")};function ue(){}ue.prototype=$.prototype;function ye(v,D,L){this.props=v,this.context=D,this.refs=q,this.updater=L||B}var Be=ye.prototype=new ue;Be.constructor=ye,V(Be,$.prototype),Be.isPureReactComponent=!0;var De=Array.isArray;function He(){}var P={H:null,A:null,T:null,S:null},Ke=Object.prototype.hasOwnProperty;function ht(v,D,L){var G=L.ref;return{$$typeof:s,type:v,key:D,ref:G!==void 0?G:null,props:L}}function tl(v,D){return ht(v.type,D,v.props)}function gt(v){return typeof v=="object"&&v!==null&&v.$$typeof===s}function Ne(v){var D={"=":"=0",":":"=2"};return"$"+v.replace(/[=:]/g,function(L){return D[L]})}var $e=/\/+/g;function At(v,D){return typeof v=="object"&&v!==null&&v.key!=null?Ne(""+v.key):D.toString(36)}function Re(v){switch(v.status){case"fulfilled":return v.value;case"rejected":throw v.reason;default:switch(typeof v.status=="string"?v.then(He,He):(v.status="pending",v.then(function(D){v.status==="pending"&&(v.status="fulfilled",v.value=D)},function(D){v.status==="pending"&&(v.status="rejected",v.reason=D)})),v.status){case"fulfilled":return v.value;case"rejected":throw v.reason}}throw v}function z(v,D,L,G,W){var ee=typeof v;(ee==="undefined"||ee==="boolean")&&(v=null);var fe=!1;if(v===null)fe=!0;else switch(ee){case"bigint":case"string":case"number":fe=!0;break;case"object":switch(v.$$typeof){case s:case o:fe=!0;break;case U:return fe=v._init,z(fe(v._payload),D,L,G,W)}}if(fe)return W=W(v),fe=G===""?"."+At(v,0):G,De(W)?(L="",fe!=null&&(L=fe.replace($e,"$&/")+"/"),z(W,D,L,"",function(qa){return qa})):W!=null&&(gt(W)&&(W=tl(W,L+(W.key==null||v&&v.key===W.key?"":(""+W.key).replace($e,"$&/")+"/")+fe)),D.push(W)),1;fe=0;var Je=G===""?".":G+":";if(De(v))for(var Ae=0;Ae<v.length;Ae++)G=v[Ae],ee=Je+At(G,Ae),fe+=z(G,D,L,ee,W);else if(Ae=X(v),typeof Ae=="function")for(v=Ae.call(v),Ae=0;!(G=v.next()).done;)G=G.value,ee=Je+At(G,Ae++),fe+=z(G,D,L,ee,W);else if(ee==="object"){if(typeof v.then=="function")return z(Re(v),D,L,G,W);throw D=String(v),Error("Objects are not valid as a React child (found: "+(D==="[object Object]"?"object with keys {"+Object.keys(v).join(", ")+"}":D)+"). If you meant to render a collection of children, use an array instead.")}return fe}function H(v,D,L){if(v==null)return v;var G=[],W=0;return z(v,G,"","",function(ee){return D.call(L,ee,W++)}),G}function J(v){if(v._status===-1){var D=v._result;D=D(),D.then(function(L){(v._status===0||v._status===-1)&&(v._status=1,v._result=L)},function(L){(v._status===0||v._status===-1)&&(v._status=2,v._result=L)}),v._status===-1&&(v._status=0,v._result=D)}if(v._status===1)return v._result.default;throw v._result}var me=typeof reportError=="function"?reportError:function(v){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var D=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof v=="object"&&v!==null&&typeof v.message=="string"?String(v.message):String(v),error:v});if(!window.dispatchEvent(D))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",v);return}console.error(v)},be={map:H,forEach:function(v,D,L){H(v,function(){D.apply(this,arguments)},L)},count:function(v){var D=0;return H(v,function(){D++}),D},toArray:function(v){return H(v,function(D){return D})||[]},only:function(v){if(!gt(v))throw Error("React.Children.only expected to receive a single React element child.");return v}};return k.Activity=N,k.Children=be,k.Component=$,k.Fragment=d,k.Profiler=w,k.PureComponent=ye,k.StrictMode=f,k.Suspense=S,k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,k.__COMPILER_RUNTIME={__proto__:null,c:function(v){return P.H.useMemoCache(v)}},k.cache=function(v){return function(){return v.apply(null,arguments)}},k.cacheSignal=function(){return null},k.cloneElement=function(v,D,L){if(v==null)throw Error("The argument must be a React element, but you passed "+v+".");var G=V({},v.props),W=v.key;if(D!=null)for(ee in D.key!==void 0&&(W=""+D.key),D)!Ke.call(D,ee)||ee==="key"||ee==="__self"||ee==="__source"||ee==="ref"&&D.ref===void 0||(G[ee]=D[ee]);var ee=arguments.length-2;if(ee===1)G.children=L;else if(1<ee){for(var fe=Array(ee),Je=0;Je<ee;Je++)fe[Je]=arguments[Je+2];G.children=fe}return ht(v.type,W,G)},k.createContext=function(v){return v={$$typeof:E,_currentValue:v,_currentValue2:v,_threadCount:0,Provider:null,Consumer:null},v.Provider=v,v.Consumer={$$typeof:T,_context:v},v},k.createElement=function(v,D,L){var G,W={},ee=null;if(D!=null)for(G in D.key!==void 0&&(ee=""+D.key),D)Ke.call(D,G)&&G!=="key"&&G!=="__self"&&G!=="__source"&&(W[G]=D[G]);var fe=arguments.length-2;if(fe===1)W.children=L;else if(1<fe){for(var Je=Array(fe),Ae=0;Ae<fe;Ae++)Je[Ae]=arguments[Ae+2];W.children=Je}if(v&&v.defaultProps)for(G in fe=v.defaultProps,fe)W[G]===void 0&&(W[G]=fe[G]);return ht(v,ee,W)},k.createRef=function(){return{current:null}},k.forwardRef=function(v){return{$$typeof:R,render:v}},k.isValidElement=gt,k.lazy=function(v){return{$$typeof:U,_payload:{_status:-1,_result:v},_init:J}},k.memo=function(v,D){return{$$typeof:y,type:v,compare:D===void 0?null:D}},k.startTransition=function(v){var D=P.T,L={};P.T=L;try{var G=v(),W=P.S;W!==null&&W(L,G),typeof G=="object"&&G!==null&&typeof G.then=="function"&&G.then(He,me)}catch(ee){me(ee)}finally{D!==null&&L.types!==null&&(D.types=L.types),P.T=D}},k.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},k.use=function(v){return P.H.use(v)},k.useActionState=function(v,D,L){return P.H.useActionState(v,D,L)},k.useCallback=function(v,D){return P.H.useCallback(v,D)},k.useContext=function(v){return P.H.useContext(v)},k.useDebugValue=function(){},k.useDeferredValue=function(v,D){return P.H.useDeferredValue(v,D)},k.useEffect=function(v,D){return P.H.useEffect(v,D)},k.useEffectEvent=function(v){return P.H.useEffectEvent(v)},k.useId=function(){return P.H.useId()},k.useImperativeHandle=function(v,D,L){return P.H.useImperativeHandle(v,D,L)},k.useInsertionEffect=function(v,D){return P.H.useInsertionEffect(v,D)},k.useLayoutEffect=function(v,D){return P.H.useLayoutEffect(v,D)},k.useMemo=function(v,D){return P.H.useMemo(v,D)},k.useOptimistic=function(v,D){return P.H.useOptimistic(v,D)},k.useReducer=function(v,D,L){return P.H.useReducer(v,D,L)},k.useRef=function(v){return P.H.useRef(v)},k.useState=function(v){return P.H.useState(v)},k.useSyncExternalStore=function(v,D,L){return P.H.useSyncExternalStore(v,D,L)},k.useTransition=function(){return P.H.useTransition()},k.version="19.2.0",k}var Ys;function Rn(){return Ys||(Ys=1,ni.exports=w0()),ni.exports}var g=Rn();const A0=j0({__proto__:null,default:Us(g)},[g]);var ui={exports:{}},Ua={},ii={exports:{}},ci={};var qs;function T0(){return qs||(qs=1,function(s){function o(z,H){var J=z.length;z.push(H);e:for(;0<J;){var me=J-1>>>1,be=z[me];if(0<w(be,H))z[me]=H,z[J]=be,J=me;else break e}}function d(z){return z.length===0?null:z[0]}function f(z){if(z.length===0)return null;var H=z[0],J=z.pop();if(J!==H){z[0]=J;e:for(var me=0,be=z.length,v=be>>>1;me<v;){var D=2*(me+1)-1,L=z[D],G=D+1,W=z[G];if(0>w(L,J))G<be&&0>w(W,L)?(z[me]=W,z[G]=J,me=G):(z[me]=L,z[D]=J,me=D);else if(G<be&&0>w(W,J))z[me]=W,z[G]=J,me=G;else break e}}return H}function w(z,H){var J=z.sortIndex-H.sortIndex;return J!==0?J:z.id-H.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var T=performance;s.unstable_now=function(){return T.now()}}else{var E=Date,R=E.now();s.unstable_now=function(){return E.now()-R}}var S=[],y=[],U=1,N=null,_=3,X=!1,B=!1,V=!1,q=!1,$=typeof setTimeout=="function"?setTimeout:null,ue=typeof clearTimeout=="function"?clearTimeout:null,ye=typeof setImmediate<"u"?setImmediate:null;function Be(z){for(var H=d(y);H!==null;){if(H.callback===null)f(y);else if(H.startTime<=z)f(y),H.sortIndex=H.expirationTime,o(S,H);else break;H=d(y)}}function De(z){if(V=!1,Be(z),!B)if(d(S)!==null)B=!0,He||(He=!0,Ne());else{var H=d(y);H!==null&&Re(De,H.startTime-z)}}var He=!1,P=-1,Ke=5,ht=-1;function tl(){return q?!0:!(s.unstable_now()-ht<Ke)}function gt(){if(q=!1,He){var z=s.unstable_now();ht=z;var H=!0;try{e:{B=!1,V&&(V=!1,ue(P),P=-1),X=!0;var J=_;try{t:{for(Be(z),N=d(S);N!==null&&!(N.expirationTime>z&&tl());){var me=N.callback;if(typeof me=="function"){N.callback=null,_=N.priorityLevel;var be=me(N.expirationTime<=z);if(z=s.unstable_now(),typeof be=="function"){N.callback=be,Be(z),H=!0;break t}N===d(S)&&f(S),Be(z)}else f(S);N=d(S)}if(N!==null)H=!0;else{var v=d(y);v!==null&&Re(De,v.startTime-z),H=!1}}break e}finally{N=null,_=J,X=!1}H=void 0}}finally{H?Ne():He=!1}}}var Ne;if(typeof ye=="function")Ne=function(){ye(gt)};else if(typeof MessageChannel<"u"){var $e=new MessageChannel,At=$e.port2;$e.port1.onmessage=gt,Ne=function(){At.postMessage(null)}}else Ne=function(){$(gt,0)};function Re(z,H){P=$(function(){z(s.unstable_now())},H)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(z){z.callback=null},s.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Ke=0<z?Math.floor(1e3/z):5},s.unstable_getCurrentPriorityLevel=function(){return _},s.unstable_next=function(z){switch(_){case 1:case 2:case 3:var H=3;break;default:H=_}var J=_;_=H;try{return z()}finally{_=J}},s.unstable_requestPaint=function(){q=!0},s.unstable_runWithPriority=function(z,H){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var J=_;_=z;try{return H()}finally{_=J}},s.unstable_scheduleCallback=function(z,H,J){var me=s.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?me+J:me):J=me,z){case 1:var be=-1;break;case 2:be=250;break;case 5:be=1073741823;break;case 4:be=1e4;break;default:be=5e3}return be=J+be,z={id:U++,callback:H,priorityLevel:z,startTime:J,expirationTime:be,sortIndex:-1},J>me?(z.sortIndex=J,o(y,z),d(S)===null&&z===d(y)&&(V?(ue(P),P=-1):V=!0,Re(De,J-me))):(z.sortIndex=be,o(S,z),B||X||(B=!0,He||(He=!0,Ne()))),z},s.unstable_shouldYield=tl,s.unstable_wrapCallback=function(z){var H=_;return function(){var J=_;_=H;try{return z.apply(this,arguments)}finally{_=J}}}}(ci)),ci}var Gs;function z0(){return Gs||(Gs=1,ii.exports=T0()),ii.exports}var si={exports:{}},Ze={};var Vs;function C0(){if(Vs)return Ze;Vs=1;var s=Rn();function o(S){var y="https://react.dev/errors/"+S;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var U=2;U<arguments.length;U++)y+="&args[]="+encodeURIComponent(arguments[U])}return"Minified React error #"+S+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(){}var f={d:{f:d,r:function(){throw Error(o(522))},D:d,C:d,L:d,m:d,X:d,S:d,M:d},p:0,findDOMNode:null},w=Symbol.for("react.portal");function T(S,y,U){var N=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:w,key:N==null?null:""+N,children:S,containerInfo:y,implementation:U}}var E=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function R(S,y){if(S==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return Ze.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f,Ze.createPortal=function(S,y){var U=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(o(299));return T(S,y,null,U)},Ze.flushSync=function(S){var y=E.T,U=f.p;try{if(E.T=null,f.p=2,S)return S()}finally{E.T=y,f.p=U,f.d.f()}},Ze.preconnect=function(S,y){typeof S=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,f.d.C(S,y))},Ze.prefetchDNS=function(S){typeof S=="string"&&f.d.D(S)},Ze.preinit=function(S,y){if(typeof S=="string"&&y&&typeof y.as=="string"){var U=y.as,N=R(U,y.crossOrigin),_=typeof y.integrity=="string"?y.integrity:void 0,X=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;U==="style"?f.d.S(S,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:N,integrity:_,fetchPriority:X}):U==="script"&&f.d.X(S,{crossOrigin:N,integrity:_,fetchPriority:X,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},Ze.preinitModule=function(S,y){if(typeof S=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var U=R(y.as,y.crossOrigin);f.d.M(S,{crossOrigin:U,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&f.d.M(S)},Ze.preload=function(S,y){if(typeof S=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var U=y.as,N=R(U,y.crossOrigin);f.d.L(S,U,{crossOrigin:N,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},Ze.preloadModule=function(S,y){if(typeof S=="string")if(y){var U=R(y.as,y.crossOrigin);f.d.m(S,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:U,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else f.d.m(S)},Ze.requestFormReset=function(S){f.d.r(S)},Ze.unstable_batchedUpdates=function(S,y){return S(y)},Ze.useFormState=function(S,y,U){return E.H.useFormState(S,y,U)},Ze.useFormStatus=function(){return E.H.useHostTransitionStatus()},Ze.version="19.2.0",Ze}var Qs;function O0(){if(Qs)return si.exports;Qs=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(o){console.error(o)}}return s(),si.exports=C0(),si.exports}var Xs;function _0(){if(Xs)return Ua;Xs=1;var s=z0(),o=Rn(),d=O0();function f(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function w(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function T(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function E(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function R(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function S(e){if(T(e)!==e)throw Error(f(188))}function y(e){var t=e.alternate;if(!t){if(t=T(e),t===null)throw Error(f(188));return t!==e?null:e}for(var l=e,a=t;;){var n=l.return;if(n===null)break;var u=n.alternate;if(u===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===l)return S(n),e;if(u===a)return S(n),t;u=u.sibling}throw Error(f(188))}if(l.return!==a.return)l=n,a=u;else{for(var i=!1,r=n.child;r;){if(r===l){i=!0,l=n,a=u;break}if(r===a){i=!0,a=n,l=u;break}r=r.sibling}if(!i){for(r=u.child;r;){if(r===l){i=!0,l=u,a=n;break}if(r===a){i=!0,a=u,l=n;break}r=r.sibling}if(!i)throw Error(f(189))}}if(l.alternate!==a)throw Error(f(190))}if(l.tag!==3)throw Error(f(188));return l.stateNode.current===l?e:t}function U(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=U(e),t!==null)return t;e=e.sibling}return null}var N=Object.assign,_=Symbol.for("react.element"),X=Symbol.for("react.transitional.element"),B=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),ue=Symbol.for("react.consumer"),ye=Symbol.for("react.context"),Be=Symbol.for("react.forward_ref"),De=Symbol.for("react.suspense"),He=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),Ke=Symbol.for("react.lazy"),ht=Symbol.for("react.activity"),tl=Symbol.for("react.memo_cache_sentinel"),gt=Symbol.iterator;function Ne(e){return e===null||typeof e!="object"?null:(e=gt&&e[gt]||e["@@iterator"],typeof e=="function"?e:null)}var $e=Symbol.for("react.client.reference");function At(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===$e?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case V:return"Fragment";case $:return"Profiler";case q:return"StrictMode";case De:return"Suspense";case He:return"SuspenseList";case ht:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case B:return"Portal";case ye:return e.displayName||"Context";case ue:return(e._context.displayName||"Context")+".Consumer";case Be:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case P:return t=e.displayName||null,t!==null?t:At(e.type)||"Memo";case Ke:t=e._payload,e=e._init;try{return At(e(t))}catch{}}return null}var Re=Array.isArray,z=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=d.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},me=[],be=-1;function v(e){return{current:e}}function D(e){0>be||(e.current=me[be],me[be]=null,be--)}function L(e,t){be++,me[be]=e.current,e.current=t}var G=v(null),W=v(null),ee=v(null),fe=v(null);function Je(e,t){switch(L(ee,t),L(W,e),L(G,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Zd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Zd(t),e=Kd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}D(G),L(G,e)}function Ae(){D(G),D(W),D(ee)}function qa(e){e.memoizedState!==null&&L(fe,e);var t=G.current,l=Kd(t,e.type);t!==l&&(L(W,e),L(G,l))}function Yn(e){W.current===e&&(D(G),D(W)),fe.current===e&&(D(fe),On._currentValue=J)}var yi,xr;function Cl(e){if(yi===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);yi=t&&t[1]||"",xr=-1<l.stack.indexOf(`
1
+ (function(){"use strict";function V0(n,u){for(var c=0;c<u.length;c++){const o=u[c];if(typeof o!="string"&&!Array.isArray(o)){for(const h in o)if(h!=="default"&&!(h in n)){const g=Object.getOwnPropertyDescriptor(o,h);g&&Object.defineProperty(n,h,g.get?g:{enumerable:!0,get:()=>o[h]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}function Dc(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Qs={exports:{}},an={};var _c;function Z0(){if(_c)return an;_c=1;var n=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function c(o,h,g){var v=null;if(g!==void 0&&(v=""+g),h.key!==void 0&&(v=""+h.key),"key"in h){g={};for(var y in h)y!=="key"&&(g[y]=h[y])}else g=h;return h=g.ref,{$$typeof:n,type:o,key:v,ref:h!==void 0?h:null,props:g}}return an.Fragment=u,an.jsx=c,an.jsxs=c,an}var Uc;function X0(){return Uc||(Uc=1,Qs.exports=Z0()),Qs.exports}var r=X0(),ks={exports:{}},P={};var Lc;function K0(){if(Lc)return P;Lc=1;var n=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),g=Symbol.for("react.consumer"),v=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),A=Symbol.for("react.activity"),B=Symbol.iterator;function V(S){return S===null||typeof S!="object"?null:(S=B&&S[B]||S["@@iterator"],typeof S=="function"?S:null)}var H={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,q={};function L(S,U,Y){this.props=S,this.context=U,this.refs=q,this.updater=Y||H}L.prototype.isReactComponent={},L.prototype.setState=function(S,U){if(typeof S!="object"&&typeof S!="function"&&S!=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,S,U,"setState")},L.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function $(){}$.prototype=L.prototype;function k(S,U,Y){this.props=S,this.context=U,this.refs=q,this.updater=Y||H}var ne=k.prototype=new $;ne.constructor=k,M(ne,L.prototype),ne.isPureReactComponent=!0;var xe=Array.isArray;function de(){}var K={H:null,A:null,T:null,S:null},ee=Object.prototype.hasOwnProperty;function ve(S,U,Y){var Z=Y.ref;return{$$typeof:n,type:S,key:U,ref:Z!==void 0?Z:null,props:Y}}function Me(S,U){return ve(S.type,U,S.props)}function he(S){return typeof S=="object"&&S!==null&&S.$$typeof===n}function J(S){var U={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(Y){return U[Y]})}var oe=/\/+/g;function De(S,U){return typeof S=="object"&&S!==null&&S.key!=null?J(""+S.key):U.toString(36)}function He(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(de,de):(S.status="pending",S.then(function(U){S.status==="pending"&&(S.status="fulfilled",S.value=U)},function(U){S.status==="pending"&&(S.status="rejected",S.reason=U)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function T(S,U,Y,Z,te){var ie=typeof S;(ie==="undefined"||ie==="boolean")&&(S=null);var be=!1;if(S===null)be=!0;else switch(ie){case"bigint":case"string":case"number":be=!0;break;case"object":switch(S.$$typeof){case n:case u:be=!0;break;case N:return be=S._init,T(be(S._payload),U,Y,Z,te)}}if(be)return te=te(S),be=Z===""?"."+De(S,0):Z,xe(te)?(Y="",be!=null&&(Y=be.replace(oe,"$&/")+"/"),T(te,U,Y,"",function(mn){return mn})):te!=null&&(he(te)&&(te=Me(te,Y+(te.key==null||S&&S.key===te.key?"":(""+te.key).replace(oe,"$&/")+"/")+be)),U.push(te)),1;be=0;var it=Z===""?".":Z+":";if(xe(S))for(var Le=0;Le<S.length;Le++)Z=S[Le],ie=it+De(Z,Le),be+=T(Z,U,Y,ie,te);else if(Le=V(S),typeof Le=="function")for(S=Le.call(S),Le=0;!(Z=S.next()).done;)Z=Z.value,ie=it+De(Z,Le++),be+=T(Z,U,Y,ie,te);else if(ie==="object"){if(typeof S.then=="function")return T(He(S),U,Y,Z,te);throw U=String(S),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return be}function Q(S,U,Y){if(S==null)return S;var Z=[],te=0;return T(S,Z,"","",function(ie){return U.call(Y,ie,te++)}),Z}function I(S){if(S._status===-1){var U=S._result;U=U(),U.then(function(Y){(S._status===0||S._status===-1)&&(S._status=1,S._result=Y)},function(Y){(S._status===0||S._status===-1)&&(S._status=2,S._result=Y)}),S._status===-1&&(S._status=0,S._result=U)}if(S._status===1)return S._result.default;throw S._result}var pe=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},Ce={map:Q,forEach:function(S,U,Y){Q(S,function(){U.apply(this,arguments)},Y)},count:function(S){var U=0;return Q(S,function(){U++}),U},toArray:function(S){return Q(S,function(U){return U})||[]},only:function(S){if(!he(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return P.Activity=A,P.Children=Ce,P.Component=L,P.Fragment=c,P.Profiler=h,P.PureComponent=k,P.StrictMode=o,P.Suspense=x,P.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,P.__COMPILER_RUNTIME={__proto__:null,c:function(S){return K.H.useMemoCache(S)}},P.cache=function(S){return function(){return S.apply(null,arguments)}},P.cacheSignal=function(){return null},P.cloneElement=function(S,U,Y){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var Z=M({},S.props),te=S.key;if(U!=null)for(ie in U.key!==void 0&&(te=""+U.key),U)!ee.call(U,ie)||ie==="key"||ie==="__self"||ie==="__source"||ie==="ref"&&U.ref===void 0||(Z[ie]=U[ie]);var ie=arguments.length-2;if(ie===1)Z.children=Y;else if(1<ie){for(var be=Array(ie),it=0;it<ie;it++)be[it]=arguments[it+2];Z.children=be}return ve(S.type,te,Z)},P.createContext=function(S){return S={$$typeof:v,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:g,_context:S},S},P.createElement=function(S,U,Y){var Z,te={},ie=null;if(U!=null)for(Z in U.key!==void 0&&(ie=""+U.key),U)ee.call(U,Z)&&Z!=="key"&&Z!=="__self"&&Z!=="__source"&&(te[Z]=U[Z]);var be=arguments.length-2;if(be===1)te.children=Y;else if(1<be){for(var it=Array(be),Le=0;Le<be;Le++)it[Le]=arguments[Le+2];te.children=it}if(S&&S.defaultProps)for(Z in be=S.defaultProps,be)te[Z]===void 0&&(te[Z]=be[Z]);return ve(S,ie,te)},P.createRef=function(){return{current:null}},P.forwardRef=function(S){return{$$typeof:y,render:S}},P.isValidElement=he,P.lazy=function(S){return{$$typeof:N,_payload:{_status:-1,_result:S},_init:I}},P.memo=function(S,U){return{$$typeof:p,type:S,compare:U===void 0?null:U}},P.startTransition=function(S){var U=K.T,Y={};K.T=Y;try{var Z=S(),te=K.S;te!==null&&te(Y,Z),typeof Z=="object"&&Z!==null&&typeof Z.then=="function"&&Z.then(de,pe)}catch(ie){pe(ie)}finally{U!==null&&Y.types!==null&&(U.types=Y.types),K.T=U}},P.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()},P.use=function(S){return K.H.use(S)},P.useActionState=function(S,U,Y){return K.H.useActionState(S,U,Y)},P.useCallback=function(S,U){return K.H.useCallback(S,U)},P.useContext=function(S){return K.H.useContext(S)},P.useDebugValue=function(){},P.useDeferredValue=function(S,U){return K.H.useDeferredValue(S,U)},P.useEffect=function(S,U){return K.H.useEffect(S,U)},P.useEffectEvent=function(S){return K.H.useEffectEvent(S)},P.useId=function(){return K.H.useId()},P.useImperativeHandle=function(S,U,Y){return K.H.useImperativeHandle(S,U,Y)},P.useInsertionEffect=function(S,U){return K.H.useInsertionEffect(S,U)},P.useLayoutEffect=function(S,U){return K.H.useLayoutEffect(S,U)},P.useMemo=function(S,U){return K.H.useMemo(S,U)},P.useOptimistic=function(S,U){return K.H.useOptimistic(S,U)},P.useReducer=function(S,U,Y){return K.H.useReducer(S,U,Y)},P.useRef=function(S){return K.H.useRef(S)},P.useState=function(S){return K.H.useState(S)},P.useSyncExternalStore=function(S,U,Y){return K.H.useSyncExternalStore(S,U,Y)},P.useTransition=function(){return K.H.useTransition()},P.version="19.2.0",P}var Bc;function ui(){return Bc||(Bc=1,ks.exports=K0()),ks.exports}var m=ui();const J0=V0({__proto__:null,default:Dc(m)},[m]);var Ys={exports:{}},nn={},Gs={exports:{}},Vs={};var qc;function $0(){return qc||(qc=1,function(n){function u(T,Q){var I=T.length;T.push(Q);e:for(;0<I;){var pe=I-1>>>1,Ce=T[pe];if(0<h(Ce,Q))T[pe]=Q,T[I]=Ce,I=pe;else break e}}function c(T){return T.length===0?null:T[0]}function o(T){if(T.length===0)return null;var Q=T[0],I=T.pop();if(I!==Q){T[0]=I;e:for(var pe=0,Ce=T.length,S=Ce>>>1;pe<S;){var U=2*(pe+1)-1,Y=T[U],Z=U+1,te=T[Z];if(0>h(Y,I))Z<Ce&&0>h(te,Y)?(T[pe]=te,T[Z]=I,pe=Z):(T[pe]=Y,T[U]=I,pe=U);else if(Z<Ce&&0>h(te,I))T[pe]=te,T[Z]=I,pe=Z;else break e}}return Q}function h(T,Q){var I=T.sortIndex-Q.sortIndex;return I!==0?I:T.id-Q.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var g=performance;n.unstable_now=function(){return g.now()}}else{var v=Date,y=v.now();n.unstable_now=function(){return v.now()-y}}var x=[],p=[],N=1,A=null,B=3,V=!1,H=!1,M=!1,q=!1,L=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function ne(T){for(var Q=c(p);Q!==null;){if(Q.callback===null)o(p);else if(Q.startTime<=T)o(p),Q.sortIndex=Q.expirationTime,u(x,Q);else break;Q=c(p)}}function xe(T){if(M=!1,ne(T),!H)if(c(x)!==null)H=!0,de||(de=!0,J());else{var Q=c(p);Q!==null&&He(xe,Q.startTime-T)}}var de=!1,K=-1,ee=5,ve=-1;function Me(){return q?!0:!(n.unstable_now()-ve<ee)}function he(){if(q=!1,de){var T=n.unstable_now();ve=T;var Q=!0;try{e:{H=!1,M&&(M=!1,$(K),K=-1),V=!0;var I=B;try{t:{for(ne(T),A=c(x);A!==null&&!(A.expirationTime>T&&Me());){var pe=A.callback;if(typeof pe=="function"){A.callback=null,B=A.priorityLevel;var Ce=pe(A.expirationTime<=T);if(T=n.unstable_now(),typeof Ce=="function"){A.callback=Ce,ne(T),Q=!0;break t}A===c(x)&&o(x),ne(T)}else o(x);A=c(x)}if(A!==null)Q=!0;else{var S=c(p);S!==null&&He(xe,S.startTime-T),Q=!1}}break e}finally{A=null,B=I,V=!1}Q=void 0}}finally{Q?J():de=!1}}}var J;if(typeof k=="function")J=function(){k(he)};else if(typeof MessageChannel<"u"){var oe=new MessageChannel,De=oe.port2;oe.port1.onmessage=he,J=function(){De.postMessage(null)}}else J=function(){L(he,0)};function He(T,Q){K=L(function(){T(n.unstable_now())},Q)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(T){T.callback=null},n.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ee=0<T?Math.floor(1e3/T):5},n.unstable_getCurrentPriorityLevel=function(){return B},n.unstable_next=function(T){switch(B){case 1:case 2:case 3:var Q=3;break;default:Q=B}var I=B;B=Q;try{return T()}finally{B=I}},n.unstable_requestPaint=function(){q=!0},n.unstable_runWithPriority=function(T,Q){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var I=B;B=T;try{return Q()}finally{B=I}},n.unstable_scheduleCallback=function(T,Q,I){var pe=n.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?pe+I:pe):I=pe,T){case 1:var Ce=-1;break;case 2:Ce=250;break;case 5:Ce=1073741823;break;case 4:Ce=1e4;break;default:Ce=5e3}return Ce=I+Ce,T={id:N++,callback:Q,priorityLevel:T,startTime:I,expirationTime:Ce,sortIndex:-1},I>pe?(T.sortIndex=I,u(p,T),c(x)===null&&T===c(p)&&(M?($(K),K=-1):M=!0,He(xe,I-pe))):(T.sortIndex=Ce,u(x,T),H||V||(H=!0,de||(de=!0,J()))),T},n.unstable_shouldYield=Me,n.unstable_wrapCallback=function(T){var Q=B;return function(){var I=B;B=Q;try{return T.apply(this,arguments)}finally{B=I}}}}(Vs)),Vs}var Hc;function F0(){return Hc||(Hc=1,Gs.exports=$0()),Gs.exports}var Zs={exports:{}},tt={};var Qc;function W0(){if(Qc)return tt;Qc=1;var n=ui();function u(x){var p="https://react.dev/errors/"+x;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var N=2;N<arguments.length;N++)p+="&args[]="+encodeURIComponent(arguments[N])}return"Minified React error #"+x+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var o={d:{f:c,r:function(){throw Error(u(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},h=Symbol.for("react.portal");function g(x,p,N){var A=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:h,key:A==null?null:""+A,children:x,containerInfo:p,implementation:N}}var v=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(x,p){if(x==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return tt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,tt.createPortal=function(x,p){var N=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(u(299));return g(x,p,null,N)},tt.flushSync=function(x){var p=v.T,N=o.p;try{if(v.T=null,o.p=2,x)return x()}finally{v.T=p,o.p=N,o.d.f()}},tt.preconnect=function(x,p){typeof x=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,o.d.C(x,p))},tt.prefetchDNS=function(x){typeof x=="string"&&o.d.D(x)},tt.preinit=function(x,p){if(typeof x=="string"&&p&&typeof p.as=="string"){var N=p.as,A=y(N,p.crossOrigin),B=typeof p.integrity=="string"?p.integrity:void 0,V=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;N==="style"?o.d.S(x,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:A,integrity:B,fetchPriority:V}):N==="script"&&o.d.X(x,{crossOrigin:A,integrity:B,fetchPriority:V,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},tt.preinitModule=function(x,p){if(typeof x=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var N=y(p.as,p.crossOrigin);o.d.M(x,{crossOrigin:N,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&o.d.M(x)},tt.preload=function(x,p){if(typeof x=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var N=p.as,A=y(N,p.crossOrigin);o.d.L(x,N,{crossOrigin:A,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},tt.preloadModule=function(x,p){if(typeof x=="string")if(p){var N=y(p.as,p.crossOrigin);o.d.m(x,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:N,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else o.d.m(x)},tt.requestFormReset=function(x){o.d.r(x)},tt.unstable_batchedUpdates=function(x,p){return x(p)},tt.useFormState=function(x,p,N){return v.H.useFormState(x,p,N)},tt.useFormStatus=function(){return v.H.useHostTransitionStatus()},tt.version="19.2.0",tt}var kc;function Yc(){if(kc)return Zs.exports;kc=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(u){console.error(u)}}return n(),Zs.exports=W0(),Zs.exports}var Gc;function I0(){if(Gc)return nn;Gc=1;var n=F0(),u=ui(),c=Yc();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function h(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function g(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function v(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function y(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function x(e){if(g(e)!==e)throw Error(o(188))}function p(e){var t=e.alternate;if(!t){if(t=g(e),t===null)throw Error(o(188));return t!==e?null:e}for(var l=e,a=t;;){var i=l.return;if(i===null)break;var s=i.alternate;if(s===null){if(a=i.return,a!==null){l=a;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===l)return x(i),e;if(s===a)return x(i),t;s=s.sibling}throw Error(o(188))}if(l.return!==a.return)l=i,a=s;else{for(var f=!1,d=i.child;d;){if(d===l){f=!0,l=i,a=s;break}if(d===a){f=!0,a=i,l=s;break}d=d.sibling}if(!f){for(d=s.child;d;){if(d===l){f=!0,l=s,a=i;break}if(d===a){f=!0,a=s,l=i;break}d=d.sibling}if(!f)throw Error(o(189))}}if(l.alternate!==a)throw Error(o(190))}if(l.tag!==3)throw Error(o(188));return l.stateNode.current===l?e:t}function N(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=N(e),t!==null)return t;e=e.sibling}return null}var A=Object.assign,B=Symbol.for("react.element"),V=Symbol.for("react.transitional.element"),H=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),$=Symbol.for("react.consumer"),k=Symbol.for("react.context"),ne=Symbol.for("react.forward_ref"),xe=Symbol.for("react.suspense"),de=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),ve=Symbol.for("react.activity"),Me=Symbol.for("react.memo_cache_sentinel"),he=Symbol.iterator;function J(e){return e===null||typeof e!="object"?null:(e=he&&e[he]||e["@@iterator"],typeof e=="function"?e:null)}var oe=Symbol.for("react.client.reference");function De(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===oe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case M:return"Fragment";case L:return"Profiler";case q:return"StrictMode";case xe:return"Suspense";case de:return"SuspenseList";case ve:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case H:return"Portal";case k:return e.displayName||"Context";case $:return(e._context.displayName||"Context")+".Consumer";case ne:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case K:return t=e.displayName||null,t!==null?t:De(e.type)||"Memo";case ee:t=e._payload,e=e._init;try{return De(e(t))}catch{}}return null}var He=Array.isArray,T=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I={pending:!1,data:null,method:null,action:null},pe=[],Ce=-1;function S(e){return{current:e}}function U(e){0>Ce||(e.current=pe[Ce],pe[Ce]=null,Ce--)}function Y(e,t){Ce++,pe[Ce]=e.current,e.current=t}var Z=S(null),te=S(null),ie=S(null),be=S(null);function it(e,t){switch(Y(ie,t),Y(te,e),Y(Z,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?h0(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=h0(t),e=m0(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}U(Z),Y(Z,e)}function Le(){U(Z),U(te),U(ie)}function mn(e){e.memoizedState!==null&&Y(be,e);var t=Z.current,l=m0(t,e.type);t!==l&&(Y(te,e),Y(Z,l))}function Si(e){te.current===e&&(U(Z),U(te)),be.current===e&&(U(be),ai._currentValue=I)}var gu,Yo;function Jl(e){if(gu===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);gu=t&&t[1]||"",Yo=-1<l.stack.indexOf(`
2
2
  at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
3
- `+yi+e+xr}var bi=!1;function xi(e,t){if(!e||bi)return"";bi=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var M=function(){throw Error()};if(Object.defineProperty(M.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(M,[])}catch(A){var j=A}Reflect.construct(e,[],M)}else{try{M.call()}catch(A){j=A}e.call(M.prototype)}}else{try{throw Error()}catch(A){j=A}(M=e())&&typeof M.catch=="function"&&M.catch(function(){})}}catch(A){if(A&&j&&typeof A.stack=="string")return[A.stack,j.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),i=u[0],r=u[1];if(i&&r){var m=i.split(`
4
- `),p=r.split(`
5
- `);for(n=a=0;a<m.length&&!m[a].includes("DetermineComponentFrameRoot");)a++;for(;n<p.length&&!p[n].includes("DetermineComponentFrameRoot");)n++;if(a===m.length||n===p.length)for(a=m.length-1,n=p.length-1;1<=a&&0<=n&&m[a]!==p[n];)n--;for(;1<=a&&0<=n;a--,n--)if(m[a]!==p[n]){if(a!==1||n!==1)do if(a--,n--,0>n||m[a]!==p[n]){var C=`
6
- `+m[a].replace(" at new "," at ");return e.displayName&&C.includes("<anonymous>")&&(C=C.replace("<anonymous>",e.displayName)),C}while(1<=a&&0<=n);break}}}finally{bi=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Cl(l):""}function Th(e,t){switch(e.tag){case 26:case 27:case 5:return Cl(e.type);case 16:return Cl("Lazy");case 13:return e.child!==t&&t!==null?Cl("Suspense Fallback"):Cl("Suspense");case 19:return Cl("SuspenseList");case 0:case 15:return xi(e.type,!1);case 11:return xi(e.type.render,!1);case 1:return xi(e.type,!0);case 31:return Cl("Activity");default:return""}}function pr(e){try{var t="",l=null;do t+=Th(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
3
+ `+gu+e+Yo}var vu=!1;function yu(e,t){if(!e||vu)return"";vu=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var _=function(){throw Error()};if(Object.defineProperty(_.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_,[])}catch(O){var z=O}Reflect.construct(e,[],_)}else{try{_.call()}catch(O){z=O}e.call(_.prototype)}}else{try{throw Error()}catch(O){z=O}(_=e())&&typeof _.catch=="function"&&_.catch(function(){})}}catch(O){if(O&&z&&typeof O.stack=="string")return[O.stack,z.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=a.DetermineComponentFrameRoot(),f=s[0],d=s[1];if(f&&d){var b=f.split(`
4
+ `),C=d.split(`
5
+ `);for(i=a=0;a<b.length&&!b[a].includes("DetermineComponentFrameRoot");)a++;for(;i<C.length&&!C[i].includes("DetermineComponentFrameRoot");)i++;if(a===b.length||i===C.length)for(a=b.length-1,i=C.length-1;1<=a&&0<=i&&b[a]!==C[i];)i--;for(;1<=a&&0<=i;a--,i--)if(b[a]!==C[i]){if(a!==1||i!==1)do if(a--,i--,0>i||b[a]!==C[i]){var R=`
6
+ `+b[a].replace(" at new "," at ");return e.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",e.displayName)),R}while(1<=a&&0<=i);break}}}finally{vu=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Jl(l):""}function b1(e,t){switch(e.tag){case 26:case 27:case 5:return Jl(e.type);case 16:return Jl("Lazy");case 13:return e.child!==t&&t!==null?Jl("Suspense Fallback"):Jl("Suspense");case 19:return Jl("SuspenseList");case 0:case 15:return yu(e.type,!1);case 11:return yu(e.type.render,!1);case 1:return yu(e.type,!0);case 31:return Jl("Activity");default:return""}}function Go(e){try{var t="",l=null;do t+=b1(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
7
7
  Error generating stack: `+a.message+`
8
- `+a.stack}}var pi=Object.prototype.hasOwnProperty,Si=s.unstable_scheduleCallback,ji=s.unstable_cancelCallback,zh=s.unstable_shouldYield,Ch=s.unstable_requestPaint,nt=s.unstable_now,Oh=s.unstable_getCurrentPriorityLevel,Sr=s.unstable_ImmediatePriority,jr=s.unstable_UserBlockingPriority,qn=s.unstable_NormalPriority,_h=s.unstable_LowPriority,Nr=s.unstable_IdlePriority,Mh=s.log,Dh=s.unstable_setDisableYieldValue,Ga=null,ut=null;function ll(e){if(typeof Mh=="function"&&Dh(e),ut&&typeof ut.setStrictMode=="function")try{ut.setStrictMode(Ga,e)}catch{}}var it=Math.clz32?Math.clz32:Bh,Rh=Math.log,Uh=Math.LN2;function Bh(e){return e>>>=0,e===0?32:31-(Rh(e)/Uh|0)|0}var Gn=256,Vn=262144,Qn=4194304;function Ol(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Xn(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,u=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var r=a&134217727;return r!==0?(a=r&~u,a!==0?n=Ol(a):(i&=r,i!==0?n=Ol(i):l||(l=r&~e,l!==0&&(n=Ol(l))))):(r=a&~u,r!==0?n=Ol(r):i!==0?n=Ol(i):l||(l=a&~e,l!==0&&(n=Ol(l)))),n===0?0:t!==0&&t!==n&&(t&u)===0&&(u=n&-n,l=t&-t,u>=l||u===32&&(l&4194048)!==0)?t:n}function Va(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Hh(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;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 Er(){var e=Qn;return Qn<<=1,(Qn&62914560)===0&&(Qn=4194304),e}function Ni(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Qa(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Lh(e,t,l,a,n,u){var i=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var r=e.entanglements,m=e.expirationTimes,p=e.hiddenUpdates;for(l=i&~l;0<l;){var C=31-it(l),M=1<<C;r[C]=0,m[C]=-1;var j=p[C];if(j!==null)for(p[C]=null,C=0;C<j.length;C++){var A=j[C];A!==null&&(A.lane&=-536870913)}l&=~M}a!==0&&wr(e,a,0),u!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=u&~(i&~t))}function wr(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-it(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function Ar(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-it(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function Tr(e,t){var l=t&-t;return l=(l&42)!==0?1:Ei(l),(l&(e.suspendedLanes|t))!==0?0:l}function Ei(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function wi(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function zr(){var e=H.p;return e!==0?e:(e=window.event,e===void 0?32:g0(e.type))}function Cr(e,t){var l=H.p;try{return H.p=e,t()}finally{H.p=l}}var al=Math.random().toString(36).slice(2),qe="__reactFiber$"+al,We="__reactProps$"+al,Wl="__reactContainer$"+al,Ai="__reactEvents$"+al,Yh="__reactListeners$"+al,qh="__reactHandles$"+al,Or="__reactResources$"+al,Xa="__reactMarker$"+al;function Ti(e){delete e[qe],delete e[We],delete e[Ai],delete e[Yh],delete e[qh]}function Fl(e){var t=e[qe];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Wl]||l[qe]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Pd(e);e!==null;){if(l=e[qe])return l;e=Pd(e)}return t}e=l,l=e.parentNode}return null}function Il(e){if(e=e[qe]||e[Wl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Za(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(f(33))}function Pl(e){var t=e[Or];return t||(t=e[Or]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Le(e){e[Xa]=!0}var _r=new Set,Mr={};function _l(e,t){ea(e,t),ea(e+"Capture",t)}function ea(e,t){for(Mr[e]=t,e=0;e<t.length;e++)_r.add(t[e])}var Gh=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]*$"),Dr={},Rr={};function Vh(e){return pi.call(Rr,e)?!0:pi.call(Dr,e)?!1:Gh.test(e)?Rr[e]=!0:(Dr[e]=!0,!1)}function Zn(e,t,l){if(Vh(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Kn(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Ht(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function vt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ur(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Qh(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,u=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(i){l=""+i,u.call(this,i)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(i){l=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function zi(e){if(!e._valueTracker){var t=Ur(e)?"checked":"value";e._valueTracker=Qh(e,t,""+e[t])}}function Br(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=Ur(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function Jn(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Xh=/[\n"\\]/g;function yt(e){return e.replace(Xh,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ci(e,t,l,a,n,u,i,r){e.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?e.type=i:e.removeAttribute("type"),t!=null?i==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+vt(t)):e.value!==""+vt(t)&&(e.value=""+vt(t)):i!=="submit"&&i!=="reset"||e.removeAttribute("value"),t!=null?Oi(e,i,vt(t)):l!=null?Oi(e,i,vt(l)):a!=null&&e.removeAttribute("value"),n==null&&u!=null&&(e.defaultChecked=!!u),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?e.name=""+vt(r):e.removeAttribute("name")}function Hr(e,t,l,a,n,u,i,r){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){zi(e);return}l=l!=null?""+vt(l):"",t=t!=null?""+vt(t):l,r||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=r?e.checked:!!a,e.defaultChecked=!!a,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.name=i),zi(e)}function Oi(e,t,l){t==="number"&&Jn(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function ta(e,t,l,a){if(e=e.options,t){t={};for(var n=0;n<l.length;n++)t["$"+l[n]]=!0;for(l=0;l<e.length;l++)n=t.hasOwnProperty("$"+e[l].value),e[l].selected!==n&&(e[l].selected=n),n&&a&&(e[l].defaultSelected=!0)}else{for(l=""+vt(l),t=null,n=0;n<e.length;n++){if(e[n].value===l){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function Lr(e,t,l){if(t!=null&&(t=""+vt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+vt(l):""}function Yr(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(f(92));if(Re(a)){if(1<a.length)throw Error(f(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=vt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),zi(e)}function la(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Zh=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 qr(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||Zh.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Gr(e,t,l){if(t!=null&&typeof t!="object")throw Error(f(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var n in t)a=t[n],t.hasOwnProperty(n)&&l[n]!==a&&qr(e,n,a)}else for(var u in t)t.hasOwnProperty(u)&&qr(e,u,t[u])}function _i(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Kh=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"]]),Jh=/^[\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 kn(e){return Jh.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Lt(){}var Mi=null;function Di(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var aa=null,na=null;function Vr(e){var t=Il(e);if(t&&(e=t.stateNode)){var l=e[We]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ci(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+yt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[We]||null;if(!n)throw Error(f(90));Ci(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&Br(a)}break e;case"textarea":Lr(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&ta(e,!!l.multiple,t,!1)}}}var Ri=!1;function Qr(e,t,l){if(Ri)return e(t,l);Ri=!0;try{var a=e(t);return a}finally{if(Ri=!1,(aa!==null||na!==null)&&(Uu(),aa&&(t=aa,e=na,na=aa=null,Vr(t),e)))for(t=0;t<e.length;t++)Vr(e[t])}}function Ka(e,t){var l=e.stateNode;if(l===null)return null;var a=l[We]||null;if(a===null)return null;l=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(f(231,t,typeof l));return l}var Yt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ui=!1;if(Yt)try{var Ja={};Object.defineProperty(Ja,"passive",{get:function(){Ui=!0}}),window.addEventListener("test",Ja,Ja),window.removeEventListener("test",Ja,Ja)}catch{Ui=!1}var nl=null,Bi=null,$n=null;function Xr(){if($n)return $n;var e,t=Bi,l=t.length,a,n="value"in nl?nl.value:nl.textContent,u=n.length;for(e=0;e<l&&t[e]===n[e];e++);var i=l-e;for(a=1;a<=i&&t[l-a]===n[u-a];a++);return $n=n.slice(e,1<a?1-a:void 0)}function Wn(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Fn(){return!0}function Zr(){return!1}function Fe(e){function t(l,a,n,u,i){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=i,this.currentTarget=null;for(var r in e)e.hasOwnProperty(r)&&(l=e[r],this[r]=l?l(u):u[r]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Fn:Zr,this.isPropagationStopped=Zr,this}return N(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Fn)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Fn)},persist:function(){},isPersistent:Fn}),t}var Ml={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},In=Fe(Ml),ka=N({},Ml,{view:0,detail:0}),kh=Fe(ka),Hi,Li,$a,Pn=N({},ka,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qi,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==$a&&($a&&e.type==="mousemove"?(Hi=e.screenX-$a.screenX,Li=e.screenY-$a.screenY):Li=Hi=0,$a=e),Hi)},movementY:function(e){return"movementY"in e?e.movementY:Li}}),Kr=Fe(Pn),$h=N({},Pn,{dataTransfer:0}),Wh=Fe($h),Fh=N({},ka,{relatedTarget:0}),Yi=Fe(Fh),Ih=N({},Ml,{animationName:0,elapsedTime:0,pseudoElement:0}),Ph=Fe(Ih),eg=N({},Ml,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),tg=Fe(eg),lg=N({},Ml,{data:0}),Jr=Fe(lg),ag={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ng={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"},ug={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ig(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ug[e])?!!t[e]:!1}function qi(){return ig}var cg=N({},ka,{key:function(e){if(e.key){var t=ag[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Wn(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ng[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qi,charCode:function(e){return e.type==="keypress"?Wn(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Wn(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),sg=Fe(cg),rg=N({},Pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),kr=Fe(rg),fg=N({},ka,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qi}),og=Fe(fg),dg=N({},Ml,{propertyName:0,elapsedTime:0,pseudoElement:0}),mg=Fe(dg),hg=N({},Pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),gg=Fe(hg),vg=N({},Ml,{newState:0,oldState:0}),yg=Fe(vg),bg=[9,13,27,32],Gi=Yt&&"CompositionEvent"in window,Wa=null;Yt&&"documentMode"in document&&(Wa=document.documentMode);var xg=Yt&&"TextEvent"in window&&!Wa,$r=Yt&&(!Gi||Wa&&8<Wa&&11>=Wa),Wr=" ",Fr=!1;function Ir(e,t){switch(e){case"keyup":return bg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pr(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ua=!1;function pg(e,t){switch(e){case"compositionend":return Pr(t);case"keypress":return t.which!==32?null:(Fr=!0,Wr);case"textInput":return e=t.data,e===Wr&&Fr?null:e;default:return null}}function Sg(e,t){if(ua)return e==="compositionend"||!Gi&&Ir(e,t)?(e=Xr(),$n=Bi=nl=null,ua=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return $r&&t.locale!=="ko"?null:t.data;default:return null}}var jg={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 ef(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!jg[e.type]:t==="textarea"}function tf(e,t,l,a){aa?na?na.push(a):na=[a]:aa=a,t=Vu(t,"onChange"),0<t.length&&(l=new In("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var Fa=null,Ia=null;function Ng(e){Yd(e,0)}function eu(e){var t=Za(e);if(Br(t))return e}function lf(e,t){if(e==="change")return t}var af=!1;if(Yt){var Vi;if(Yt){var Qi="oninput"in document;if(!Qi){var nf=document.createElement("div");nf.setAttribute("oninput","return;"),Qi=typeof nf.oninput=="function"}Vi=Qi}else Vi=!1;af=Vi&&(!document.documentMode||9<document.documentMode)}function uf(){Fa&&(Fa.detachEvent("onpropertychange",cf),Ia=Fa=null)}function cf(e){if(e.propertyName==="value"&&eu(Ia)){var t=[];tf(t,Ia,e,Di(e)),Qr(Ng,t)}}function Eg(e,t,l){e==="focusin"?(uf(),Fa=t,Ia=l,Fa.attachEvent("onpropertychange",cf)):e==="focusout"&&uf()}function wg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return eu(Ia)}function Ag(e,t){if(e==="click")return eu(t)}function Tg(e,t){if(e==="input"||e==="change")return eu(t)}function zg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ct=typeof Object.is=="function"?Object.is:zg;function Pa(e,t){if(ct(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!pi.call(t,n)||!ct(e[n],t[n]))return!1}return!0}function sf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function rf(e,t){var l=sf(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=sf(l)}}function ff(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ff(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function of(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Jn(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=Jn(e.document)}return t}function Xi(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Cg=Yt&&"documentMode"in document&&11>=document.documentMode,ia=null,Zi=null,en=null,Ki=!1;function df(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Ki||ia==null||ia!==Jn(a)||(a=ia,"selectionStart"in a&&Xi(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),en&&Pa(en,a)||(en=a,a=Vu(Zi,"onSelect"),0<a.length&&(t=new In("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=ia)))}function Dl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var ca={animationend:Dl("Animation","AnimationEnd"),animationiteration:Dl("Animation","AnimationIteration"),animationstart:Dl("Animation","AnimationStart"),transitionrun:Dl("Transition","TransitionRun"),transitionstart:Dl("Transition","TransitionStart"),transitioncancel:Dl("Transition","TransitionCancel"),transitionend:Dl("Transition","TransitionEnd")},Ji={},mf={};Yt&&(mf=document.createElement("div").style,"AnimationEvent"in window||(delete ca.animationend.animation,delete ca.animationiteration.animation,delete ca.animationstart.animation),"TransitionEvent"in window||delete ca.transitionend.transition);function Rl(e){if(Ji[e])return Ji[e];if(!ca[e])return e;var t=ca[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in mf)return Ji[e]=t[l];return e}var hf=Rl("animationend"),gf=Rl("animationiteration"),vf=Rl("animationstart"),Og=Rl("transitionrun"),_g=Rl("transitionstart"),Mg=Rl("transitioncancel"),yf=Rl("transitionend"),bf=new Map,ki="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(" ");ki.push("scrollEnd");function Tt(e,t){bf.set(e,t),_l(t,[e])}var tu=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},bt=[],sa=0,$i=0;function lu(){for(var e=sa,t=$i=sa=0;t<e;){var l=bt[t];bt[t++]=null;var a=bt[t];bt[t++]=null;var n=bt[t];bt[t++]=null;var u=bt[t];if(bt[t++]=null,a!==null&&n!==null){var i=a.pending;i===null?n.next=n:(n.next=i.next,i.next=n),a.pending=n}u!==0&&xf(l,n,u)}}function au(e,t,l,a){bt[sa++]=e,bt[sa++]=t,bt[sa++]=l,bt[sa++]=a,$i|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Wi(e,t,l,a){return au(e,t,l,a),nu(e)}function Ul(e,t){return au(e,null,null,t),nu(e)}function xf(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,u=e.return;u!==null;)u.childLanes|=l,a=u.alternate,a!==null&&(a.childLanes|=l),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(n=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,n&&t!==null&&(n=31-it(l),e=u.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),u):null}function nu(e){if(50<Nn)throw Nn=0,us=null,Error(f(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ra={};function Dg(e,t,l,a){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function st(e,t,l,a){return new Dg(e,t,l,a)}function Fi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function qt(e,t){var l=e.alternate;return l===null?(l=st(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function pf(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function uu(e,t,l,a,n,u){var i=0;if(a=e,typeof e=="function")Fi(e)&&(i=1);else if(typeof e=="string")i=Lv(e,l,G.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ht:return e=st(31,l,t,n),e.elementType=ht,e.lanes=u,e;case V:return Bl(l.children,n,u,t);case q:i=8,n|=24;break;case $:return e=st(12,l,t,n|2),e.elementType=$,e.lanes=u,e;case De:return e=st(13,l,t,n),e.elementType=De,e.lanes=u,e;case He:return e=st(19,l,t,n),e.elementType=He,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ye:i=10;break e;case ue:i=9;break e;case Be:i=11;break e;case P:i=14;break e;case Ke:i=16,a=null;break e}i=29,l=Error(f(130,e===null?"null":typeof e,"")),a=null}return t=st(i,l,t,n),t.elementType=e,t.type=a,t.lanes=u,t}function Bl(e,t,l,a){return e=st(7,e,a,t),e.lanes=l,e}function Ii(e,t,l){return e=st(6,e,null,t),e.lanes=l,e}function Sf(e){var t=st(18,null,null,0);return t.stateNode=e,t}function Pi(e,t,l){return t=st(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var jf=new WeakMap;function xt(e,t){if(typeof e=="object"&&e!==null){var l=jf.get(e);return l!==void 0?l:(t={value:e,source:t,stack:pr(t)},jf.set(e,t),t)}return{value:e,source:t,stack:pr(t)}}var fa=[],oa=0,iu=null,tn=0,pt=[],St=0,ul=null,_t=1,Mt="";function Gt(e,t){fa[oa++]=tn,fa[oa++]=iu,iu=e,tn=t}function Nf(e,t,l){pt[St++]=_t,pt[St++]=Mt,pt[St++]=ul,ul=e;var a=_t;e=Mt;var n=32-it(a)-1;a&=~(1<<n),l+=1;var u=32-it(t)+n;if(30<u){var i=n-n%5;u=(a&(1<<i)-1).toString(32),a>>=i,n-=i,_t=1<<32-it(t)+n|l<<n|a,Mt=u+e}else _t=1<<u|l<<n|a,Mt=e}function ec(e){e.return!==null&&(Gt(e,1),Nf(e,1,0))}function tc(e){for(;e===iu;)iu=fa[--oa],fa[oa]=null,tn=fa[--oa],fa[oa]=null;for(;e===ul;)ul=pt[--St],pt[St]=null,Mt=pt[--St],pt[St]=null,_t=pt[--St],pt[St]=null}function Ef(e,t){pt[St++]=_t,pt[St++]=Mt,pt[St++]=ul,_t=t.id,Mt=t.overflow,ul=e}var Ge=null,pe=null,ie=!1,il=null,jt=!1,lc=Error(f(519));function cl(e){var t=Error(f(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ln(xt(t,e)),lc}function wf(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[qe]=e,t[We]=a,l){case"dialog":le("cancel",t),le("close",t);break;case"iframe":case"object":case"embed":le("load",t);break;case"video":case"audio":for(l=0;l<wn.length;l++)le(wn[l],t);break;case"source":le("error",t);break;case"img":case"image":case"link":le("error",t),le("load",t);break;case"details":le("toggle",t);break;case"input":le("invalid",t),Hr(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":le("invalid",t);break;case"textarea":le("invalid",t),Yr(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||Qd(t.textContent,l)?(a.popover!=null&&(le("beforetoggle",t),le("toggle",t)),a.onScroll!=null&&le("scroll",t),a.onScrollEnd!=null&&le("scrollend",t),a.onClick!=null&&(t.onclick=Lt),t=!0):t=!1,t||cl(e,!0)}function Af(e){for(Ge=e.return;Ge;)switch(Ge.tag){case 5:case 31:case 13:jt=!1;return;case 27:case 3:jt=!0;return;default:Ge=Ge.return}}function da(e){if(e!==Ge)return!1;if(!ie)return Af(e),ie=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||ps(e.type,e.memoizedProps)),l=!l),l&&pe&&cl(e),Af(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(f(317));pe=Id(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(f(317));pe=Id(e)}else t===27?(t=pe,Sl(e.type)?(e=ws,ws=null,pe=e):pe=t):pe=Ge?Et(e.stateNode.nextSibling):null;return!0}function Hl(){pe=Ge=null,ie=!1}function ac(){var e=il;return e!==null&&(tt===null?tt=e:tt.push.apply(tt,e),il=null),e}function ln(e){il===null?il=[e]:il.push(e)}var nc=v(null),Ll=null,Vt=null;function sl(e,t,l){L(nc,t._currentValue),t._currentValue=l}function Qt(e){e._currentValue=nc.current,D(nc)}function uc(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function ic(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var u=n.dependencies;if(u!==null){var i=n.child;u=u.firstContext;e:for(;u!==null;){var r=u;u=n;for(var m=0;m<t.length;m++)if(r.context===t[m]){u.lanes|=l,r=u.alternate,r!==null&&(r.lanes|=l),uc(u.return,l,e),a||(i=null);break e}u=r.next}}else if(n.tag===18){if(i=n.return,i===null)throw Error(f(341));i.lanes|=l,u=i.alternate,u!==null&&(u.lanes|=l),uc(i,l,e),i=null}else i=n.child;if(i!==null)i.return=n;else for(i=n;i!==null;){if(i===e){i=null;break}if(n=i.sibling,n!==null){n.return=i.return,i=n;break}i=i.return}n=i}}function ma(e,t,l,a){e=null;for(var n=t,u=!1;n!==null;){if(!u){if((n.flags&524288)!==0)u=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var i=n.alternate;if(i===null)throw Error(f(387));if(i=i.memoizedProps,i!==null){var r=n.type;ct(n.pendingProps.value,i.value)||(e!==null?e.push(r):e=[r])}}else if(n===fe.current){if(i=n.alternate,i===null)throw Error(f(387));i.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(On):e=[On])}n=n.return}e!==null&&ic(t,e,l,a),t.flags|=262144}function cu(e){for(e=e.firstContext;e!==null;){if(!ct(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Yl(e){Ll=e,Vt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ve(e){return Tf(Ll,e)}function su(e,t){return Ll===null&&Yl(e),Tf(e,t)}function Tf(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Vt===null){if(e===null)throw Error(f(308));Vt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Vt=Vt.next=t;return l}var Rg=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},Ug=s.unstable_scheduleCallback,Bg=s.unstable_NormalPriority,Ce={$$typeof:ye,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function cc(){return{controller:new Rg,data:new Map,refCount:0}}function an(e){e.refCount--,e.refCount===0&&Ug(Bg,function(){e.controller.abort()})}var nn=null,sc=0,ha=0,ga=null;function Hg(e,t){if(nn===null){var l=nn=[];sc=0,ha=os(),ga={status:"pending",value:void 0,then:function(a){l.push(a)}}}return sc++,t.then(zf,zf),t}function zf(){if(--sc===0&&nn!==null){ga!==null&&(ga.status="fulfilled");var e=nn;nn=null,ha=0,ga=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Lg(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var n=0;n<l.length;n++)(0,l[n])(t)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var Cf=z.S;z.S=function(e,t){md=nt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Hg(e,t),Cf!==null&&Cf(e,t)};var ql=v(null);function rc(){var e=ql.current;return e!==null?e:xe.pooledCache}function ru(e,t){t===null?L(ql,ql.current):L(ql,t.pool)}function Of(){var e=rc();return e===null?null:{parent:Ce._currentValue,pool:e}}var va=Error(f(460)),fc=Error(f(474)),fu=Error(f(542)),ou={then:function(){}};function _f(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Mf(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Lt,Lt),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Rf(e),e;default:if(typeof t.status=="string")t.then(Lt,Lt);else{if(e=xe,e!==null&&100<e.shellSuspendCounter)throw Error(f(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=a}},function(a){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Rf(e),e}throw Vl=t,va}}function Gl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Vl=l,va):l}}var Vl=null;function Df(){if(Vl===null)throw Error(f(459));var e=Vl;return Vl=null,e}function Rf(e){if(e===va||e===fu)throw Error(f(483))}var ya=null,un=0;function du(e){var t=un;return un+=1,ya===null&&(ya=[]),Mf(ya,e,t)}function cn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function mu(e,t){throw t.$$typeof===_?Error(f(525)):(e=Object.prototype.toString.call(t),Error(f(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Uf(e){function t(b,h){if(e){var x=b.deletions;x===null?(b.deletions=[h],b.flags|=16):x.push(h)}}function l(b,h){if(!e)return null;for(;h!==null;)t(b,h),h=h.sibling;return null}function a(b){for(var h=new Map;b!==null;)b.key!==null?h.set(b.key,b):h.set(b.index,b),b=b.sibling;return h}function n(b,h){return b=qt(b,h),b.index=0,b.sibling=null,b}function u(b,h,x){return b.index=x,e?(x=b.alternate,x!==null?(x=x.index,x<h?(b.flags|=67108866,h):x):(b.flags|=67108866,h)):(b.flags|=1048576,h)}function i(b){return e&&b.alternate===null&&(b.flags|=67108866),b}function r(b,h,x,O){return h===null||h.tag!==6?(h=Ii(x,b.mode,O),h.return=b,h):(h=n(h,x),h.return=b,h)}function m(b,h,x,O){var Z=x.type;return Z===V?C(b,h,x.props.children,O,x.key):h!==null&&(h.elementType===Z||typeof Z=="object"&&Z!==null&&Z.$$typeof===Ke&&Gl(Z)===h.type)?(h=n(h,x.props),cn(h,x),h.return=b,h):(h=uu(x.type,x.key,x.props,null,b.mode,O),cn(h,x),h.return=b,h)}function p(b,h,x,O){return h===null||h.tag!==4||h.stateNode.containerInfo!==x.containerInfo||h.stateNode.implementation!==x.implementation?(h=Pi(x,b.mode,O),h.return=b,h):(h=n(h,x.children||[]),h.return=b,h)}function C(b,h,x,O,Z){return h===null||h.tag!==7?(h=Bl(x,b.mode,O,Z),h.return=b,h):(h=n(h,x),h.return=b,h)}function M(b,h,x){if(typeof h=="string"&&h!==""||typeof h=="number"||typeof h=="bigint")return h=Ii(""+h,b.mode,x),h.return=b,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case X:return x=uu(h.type,h.key,h.props,null,b.mode,x),cn(x,h),x.return=b,x;case B:return h=Pi(h,b.mode,x),h.return=b,h;case Ke:return h=Gl(h),M(b,h,x)}if(Re(h)||Ne(h))return h=Bl(h,b.mode,x,null),h.return=b,h;if(typeof h.then=="function")return M(b,du(h),x);if(h.$$typeof===ye)return M(b,su(b,h),x);mu(b,h)}return null}function j(b,h,x,O){var Z=h!==null?h.key:null;if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return Z!==null?null:r(b,h,""+x,O);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case X:return x.key===Z?m(b,h,x,O):null;case B:return x.key===Z?p(b,h,x,O):null;case Ke:return x=Gl(x),j(b,h,x,O)}if(Re(x)||Ne(x))return Z!==null?null:C(b,h,x,O,null);if(typeof x.then=="function")return j(b,h,du(x),O);if(x.$$typeof===ye)return j(b,h,su(b,x),O);mu(b,x)}return null}function A(b,h,x,O,Z){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return b=b.get(x)||null,r(h,b,""+O,Z);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case X:return b=b.get(O.key===null?x:O.key)||null,m(h,b,O,Z);case B:return b=b.get(O.key===null?x:O.key)||null,p(h,b,O,Z);case Ke:return O=Gl(O),A(b,h,x,O,Z)}if(Re(O)||Ne(O))return b=b.get(x)||null,C(h,b,O,Z,null);if(typeof O.then=="function")return A(b,h,x,du(O),Z);if(O.$$typeof===ye)return A(b,h,x,su(h,O),Z);mu(h,O)}return null}function Y(b,h,x,O){for(var Z=null,ce=null,Q=h,I=h=0,ne=null;Q!==null&&I<x.length;I++){Q.index>I?(ne=Q,Q=null):ne=Q.sibling;var se=j(b,Q,x[I],O);if(se===null){Q===null&&(Q=ne);break}e&&Q&&se.alternate===null&&t(b,Q),h=u(se,h,I),ce===null?Z=se:ce.sibling=se,ce=se,Q=ne}if(I===x.length)return l(b,Q),ie&&Gt(b,I),Z;if(Q===null){for(;I<x.length;I++)Q=M(b,x[I],O),Q!==null&&(h=u(Q,h,I),ce===null?Z=Q:ce.sibling=Q,ce=Q);return ie&&Gt(b,I),Z}for(Q=a(Q);I<x.length;I++)ne=A(Q,b,I,x[I],O),ne!==null&&(e&&ne.alternate!==null&&Q.delete(ne.key===null?I:ne.key),h=u(ne,h,I),ce===null?Z=ne:ce.sibling=ne,ce=ne);return e&&Q.forEach(function(Al){return t(b,Al)}),ie&&Gt(b,I),Z}function K(b,h,x,O){if(x==null)throw Error(f(151));for(var Z=null,ce=null,Q=h,I=h=0,ne=null,se=x.next();Q!==null&&!se.done;I++,se=x.next()){Q.index>I?(ne=Q,Q=null):ne=Q.sibling;var Al=j(b,Q,se.value,O);if(Al===null){Q===null&&(Q=ne);break}e&&Q&&Al.alternate===null&&t(b,Q),h=u(Al,h,I),ce===null?Z=Al:ce.sibling=Al,ce=Al,Q=ne}if(se.done)return l(b,Q),ie&&Gt(b,I),Z;if(Q===null){for(;!se.done;I++,se=x.next())se=M(b,se.value,O),se!==null&&(h=u(se,h,I),ce===null?Z=se:ce.sibling=se,ce=se);return ie&&Gt(b,I),Z}for(Q=a(Q);!se.done;I++,se=x.next())se=A(Q,b,I,se.value,O),se!==null&&(e&&se.alternate!==null&&Q.delete(se.key===null?I:se.key),h=u(se,h,I),ce===null?Z=se:ce.sibling=se,ce=se);return e&&Q.forEach(function($v){return t(b,$v)}),ie&&Gt(b,I),Z}function ve(b,h,x,O){if(typeof x=="object"&&x!==null&&x.type===V&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case X:e:{for(var Z=x.key;h!==null;){if(h.key===Z){if(Z=x.type,Z===V){if(h.tag===7){l(b,h.sibling),O=n(h,x.props.children),O.return=b,b=O;break e}}else if(h.elementType===Z||typeof Z=="object"&&Z!==null&&Z.$$typeof===Ke&&Gl(Z)===h.type){l(b,h.sibling),O=n(h,x.props),cn(O,x),O.return=b,b=O;break e}l(b,h);break}else t(b,h);h=h.sibling}x.type===V?(O=Bl(x.props.children,b.mode,O,x.key),O.return=b,b=O):(O=uu(x.type,x.key,x.props,null,b.mode,O),cn(O,x),O.return=b,b=O)}return i(b);case B:e:{for(Z=x.key;h!==null;){if(h.key===Z)if(h.tag===4&&h.stateNode.containerInfo===x.containerInfo&&h.stateNode.implementation===x.implementation){l(b,h.sibling),O=n(h,x.children||[]),O.return=b,b=O;break e}else{l(b,h);break}else t(b,h);h=h.sibling}O=Pi(x,b.mode,O),O.return=b,b=O}return i(b);case Ke:return x=Gl(x),ve(b,h,x,O)}if(Re(x))return Y(b,h,x,O);if(Ne(x)){if(Z=Ne(x),typeof Z!="function")throw Error(f(150));return x=Z.call(x),K(b,h,x,O)}if(typeof x.then=="function")return ve(b,h,du(x),O);if(x.$$typeof===ye)return ve(b,h,su(b,x),O);mu(b,x)}return typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint"?(x=""+x,h!==null&&h.tag===6?(l(b,h.sibling),O=n(h,x),O.return=b,b=O):(l(b,h),O=Ii(x,b.mode,O),O.return=b,b=O),i(b)):l(b,h)}return function(b,h,x,O){try{un=0;var Z=ve(b,h,x,O);return ya=null,Z}catch(Q){if(Q===va||Q===fu)throw Q;var ce=st(29,Q,null,b.mode);return ce.lanes=O,ce.return=b,ce}finally{}}}var Ql=Uf(!0),Bf=Uf(!1),rl=!1;function oc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function dc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function fl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ol(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(re&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=nu(e),xf(e,null,l),t}return au(e,a,t,l),nu(e)}function sn(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Ar(e,l)}}function mc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var i={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?n=u=i:u=u.next=i,l=l.next}while(l!==null);u===null?n=u=t:u=u.next=t}else n=u=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var hc=!1;function rn(){if(hc){var e=ga;if(e!==null)throw e}}function fn(e,t,l,a){hc=!1;var n=e.updateQueue;rl=!1;var u=n.firstBaseUpdate,i=n.lastBaseUpdate,r=n.shared.pending;if(r!==null){n.shared.pending=null;var m=r,p=m.next;m.next=null,i===null?u=p:i.next=p,i=m;var C=e.alternate;C!==null&&(C=C.updateQueue,r=C.lastBaseUpdate,r!==i&&(r===null?C.firstBaseUpdate=p:r.next=p,C.lastBaseUpdate=m))}if(u!==null){var M=n.baseState;i=0,C=p=m=null,r=u;do{var j=r.lane&-536870913,A=j!==r.lane;if(A?(ae&j)===j:(a&j)===j){j!==0&&j===ha&&(hc=!0),C!==null&&(C=C.next={lane:0,tag:r.tag,payload:r.payload,callback:null,next:null});e:{var Y=e,K=r;j=t;var ve=l;switch(K.tag){case 1:if(Y=K.payload,typeof Y=="function"){M=Y.call(ve,M,j);break e}M=Y;break e;case 3:Y.flags=Y.flags&-65537|128;case 0:if(Y=K.payload,j=typeof Y=="function"?Y.call(ve,M,j):Y,j==null)break e;M=N({},M,j);break e;case 2:rl=!0}}j=r.callback,j!==null&&(e.flags|=64,A&&(e.flags|=8192),A=n.callbacks,A===null?n.callbacks=[j]:A.push(j))}else A={lane:j,tag:r.tag,payload:r.payload,callback:r.callback,next:null},C===null?(p=C=A,m=M):C=C.next=A,i|=j;if(r=r.next,r===null){if(r=n.shared.pending,r===null)break;A=r,r=A.next,A.next=null,n.lastBaseUpdate=A,n.shared.pending=null}}while(!0);C===null&&(m=M),n.baseState=m,n.firstBaseUpdate=p,n.lastBaseUpdate=C,u===null&&(n.shared.lanes=0),vl|=i,e.lanes=i,e.memoizedState=M}}function Hf(e,t){if(typeof e!="function")throw Error(f(191,e));e.call(t)}function Lf(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Hf(l[e],t)}var ba=v(null),hu=v(0);function Yf(e,t){e=It,L(hu,e),L(ba,t),It=e|t.baseLanes}function gc(){L(hu,It),L(ba,ba.current)}function vc(){It=hu.current,D(ba),D(hu)}var rt=v(null),Nt=null;function dl(e){var t=e.alternate;L(Te,Te.current&1),L(rt,e),Nt===null&&(t===null||ba.current!==null||t.memoizedState!==null)&&(Nt=e)}function yc(e){L(Te,Te.current),L(rt,e),Nt===null&&(Nt=e)}function qf(e){e.tag===22?(L(Te,Te.current),L(rt,e),Nt===null&&(Nt=e)):ml()}function ml(){L(Te,Te.current),L(rt,rt.current)}function ft(e){D(rt),Nt===e&&(Nt=null),D(Te)}var Te=v(0);function gu(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Ns(l)||Es(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Xt=0,F=null,he=null,Oe=null,vu=!1,xa=!1,Xl=!1,yu=0,on=0,pa=null,Yg=0;function Ee(){throw Error(f(321))}function bc(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!ct(e[l],t[l]))return!1;return!0}function xc(e,t,l,a,n,u){return Xt=u,F=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,z.H=e===null||e.memoizedState===null?Eo:Rc,Xl=!1,u=l(a,n),Xl=!1,xa&&(u=Vf(t,l,a,n)),Gf(e),u}function Gf(e){z.H=hn;var t=he!==null&&he.next!==null;if(Xt=0,Oe=he=F=null,vu=!1,on=0,pa=null,t)throw Error(f(300));e===null||_e||(e=e.dependencies,e!==null&&cu(e)&&(_e=!0))}function Vf(e,t,l,a){F=e;var n=0;do{if(xa&&(pa=null),on=0,xa=!1,25<=n)throw Error(f(301));if(n+=1,Oe=he=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}z.H=wo,u=t(l,a)}while(xa);return u}function qg(){var e=z.H,t=e.useState()[0];return t=typeof t.then=="function"?dn(t):t,e=e.useState()[0],(he!==null?he.memoizedState:null)!==e&&(F.flags|=1024),t}function pc(){var e=yu!==0;return yu=0,e}function Sc(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function jc(e){if(vu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}vu=!1}Xt=0,Oe=he=F=null,xa=!1,on=yu=0,pa=null}function ke(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Oe===null?F.memoizedState=Oe=e:Oe=Oe.next=e,Oe}function ze(){if(he===null){var e=F.alternate;e=e!==null?e.memoizedState:null}else e=he.next;var t=Oe===null?F.memoizedState:Oe.next;if(t!==null)Oe=t,he=e;else{if(e===null)throw F.alternate===null?Error(f(467)):Error(f(310));he=e,e={memoizedState:he.memoizedState,baseState:he.baseState,baseQueue:he.baseQueue,queue:he.queue,next:null},Oe===null?F.memoizedState=Oe=e:Oe=Oe.next=e}return Oe}function bu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function dn(e){var t=on;return on+=1,pa===null&&(pa=[]),e=Mf(pa,e,t),t=F,(Oe===null?t.memoizedState:Oe.next)===null&&(t=t.alternate,z.H=t===null||t.memoizedState===null?Eo:Rc),e}function xu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return dn(e);if(e.$$typeof===ye)return Ve(e)}throw Error(f(438,String(e)))}function Nc(e){var t=null,l=F.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=F.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=bu(),F.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=tl;return t.index++,l}function Zt(e,t){return typeof t=="function"?t(e):t}function pu(e){var t=ze();return Ec(t,he,e)}function Ec(e,t,l){var a=e.queue;if(a===null)throw Error(f(311));a.lastRenderedReducer=l;var n=e.baseQueue,u=a.pending;if(u!==null){if(n!==null){var i=n.next;n.next=u.next,u.next=i}t.baseQueue=n=u,a.pending=null}if(u=e.baseState,n===null)e.memoizedState=u;else{t=n.next;var r=i=null,m=null,p=t,C=!1;do{var M=p.lane&-536870913;if(M!==p.lane?(ae&M)===M:(Xt&M)===M){var j=p.revertLane;if(j===0)m!==null&&(m=m.next={lane:0,revertLane:0,gesture:null,action:p.action,hasEagerState:p.hasEagerState,eagerState:p.eagerState,next:null}),M===ha&&(C=!0);else if((Xt&j)===j){p=p.next,j===ha&&(C=!0);continue}else M={lane:0,revertLane:p.revertLane,gesture:null,action:p.action,hasEagerState:p.hasEagerState,eagerState:p.eagerState,next:null},m===null?(r=m=M,i=u):m=m.next=M,F.lanes|=j,vl|=j;M=p.action,Xl&&l(u,M),u=p.hasEagerState?p.eagerState:l(u,M)}else j={lane:M,revertLane:p.revertLane,gesture:p.gesture,action:p.action,hasEagerState:p.hasEagerState,eagerState:p.eagerState,next:null},m===null?(r=m=j,i=u):m=m.next=j,F.lanes|=M,vl|=M;p=p.next}while(p!==null&&p!==t);if(m===null?i=u:m.next=r,!ct(u,e.memoizedState)&&(_e=!0,C&&(l=ga,l!==null)))throw l;e.memoizedState=u,e.baseState=i,e.baseQueue=m,a.lastRenderedState=u}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function wc(e){var t=ze(),l=t.queue;if(l===null)throw Error(f(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,u=t.memoizedState;if(n!==null){l.pending=null;var i=n=n.next;do u=e(u,i.action),i=i.next;while(i!==n);ct(u,t.memoizedState)||(_e=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),l.lastRenderedState=u}return[u,a]}function Qf(e,t,l){var a=F,n=ze(),u=ie;if(u){if(l===void 0)throw Error(f(407));l=l()}else l=t();var i=!ct((he||n).memoizedState,l);if(i&&(n.memoizedState=l,_e=!0),n=n.queue,zc(Kf.bind(null,a,n,e),[e]),n.getSnapshot!==t||i||Oe!==null&&Oe.memoizedState.tag&1){if(a.flags|=2048,Sa(9,{destroy:void 0},Zf.bind(null,a,n,l,t),null),xe===null)throw Error(f(349));u||(Xt&127)!==0||Xf(a,t,l)}return l}function Xf(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=F.updateQueue,t===null?(t=bu(),F.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Zf(e,t,l,a){t.value=l,t.getSnapshot=a,Jf(t)&&kf(e)}function Kf(e,t,l){return l(function(){Jf(t)&&kf(e)})}function Jf(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!ct(e,l)}catch{return!0}}function kf(e){var t=Ul(e,2);t!==null&&lt(t,e,2)}function Ac(e){var t=ke();if(typeof e=="function"){var l=e;if(e=l(),Xl){ll(!0);try{l()}finally{ll(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zt,lastRenderedState:e},t}function $f(e,t,l,a){return e.baseState=l,Ec(e,he,typeof a=="function"?a:Zt)}function Gg(e,t,l,a,n){if(Nu(e))throw Error(f(485));if(e=t.action,e!==null){var u={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){u.listeners.push(i)}};z.T!==null?l(!0):u.isTransition=!1,a(u),l=t.pending,l===null?(u.next=t.pending=u,Wf(t,u)):(u.next=l.next,t.pending=l.next=u)}}function Wf(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var u=z.T,i={};z.T=i;try{var r=l(n,a),m=z.S;m!==null&&m(i,r),Ff(e,t,r)}catch(p){Tc(e,t,p)}finally{u!==null&&i.types!==null&&(u.types=i.types),z.T=u}}else try{u=l(n,a),Ff(e,t,u)}catch(p){Tc(e,t,p)}}function Ff(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){If(e,t,a)},function(a){return Tc(e,t,a)}):If(e,t,l)}function If(e,t,l){t.status="fulfilled",t.value=l,Pf(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Wf(e,l)))}function Tc(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,Pf(t),t=t.next;while(t!==a)}e.action=null}function Pf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function eo(e,t){return t}function to(e,t){if(ie){var l=xe.formState;if(l!==null){e:{var a=F;if(ie){if(pe){t:{for(var n=pe,u=jt;n.nodeType!==8;){if(!u){n=null;break t}if(n=Et(n.nextSibling),n===null){n=null;break t}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){pe=Et(n.nextSibling),a=n.data==="F!";break e}}cl(a)}a=!1}a&&(t=l[0])}}return l=ke(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:eo,lastRenderedState:t},l.queue=a,l=So.bind(null,F,a),a.dispatch=l,a=Ac(!1),u=Dc.bind(null,F,!1,a.queue),a=ke(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=Gg.bind(null,F,n,u,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function lo(e){var t=ze();return ao(t,he,e)}function ao(e,t,l){if(t=Ec(e,t,eo)[0],e=pu(Zt)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=dn(t)}catch(i){throw i===va?fu:i}else a=t;t=ze();var n=t.queue,u=n.dispatch;return l!==t.memoizedState&&(F.flags|=2048,Sa(9,{destroy:void 0},Vg.bind(null,n,l),null)),[a,u,e]}function Vg(e,t){e.action=t}function no(e){var t=ze(),l=he;if(l!==null)return ao(t,l,e);ze(),t=t.memoizedState,l=ze();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Sa(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=F.updateQueue,t===null&&(t=bu(),F.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function uo(){return ze().memoizedState}function Su(e,t,l,a){var n=ke();F.flags|=e,n.memoizedState=Sa(1|t,{destroy:void 0},l,a===void 0?null:a)}function ju(e,t,l,a){var n=ze();a=a===void 0?null:a;var u=n.memoizedState.inst;he!==null&&a!==null&&bc(a,he.memoizedState.deps)?n.memoizedState=Sa(t,u,l,a):(F.flags|=e,n.memoizedState=Sa(1|t,u,l,a))}function io(e,t){Su(8390656,8,e,t)}function zc(e,t){ju(2048,8,e,t)}function Qg(e){F.flags|=4;var t=F.updateQueue;if(t===null)t=bu(),F.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function co(e){var t=ze().memoizedState;return Qg({ref:t,nextImpl:e}),function(){if((re&2)!==0)throw Error(f(440));return t.impl.apply(void 0,arguments)}}function so(e,t){return ju(4,2,e,t)}function ro(e,t){return ju(4,4,e,t)}function fo(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function oo(e,t,l){l=l!=null?l.concat([e]):null,ju(4,4,fo.bind(null,t,e),l)}function Cc(){}function mo(e,t){var l=ze();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&bc(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function ho(e,t){var l=ze();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&bc(t,a[1]))return a[0];if(a=e(),Xl){ll(!0);try{e()}finally{ll(!1)}}return l.memoizedState=[a,t],a}function Oc(e,t,l){return l===void 0||(Xt&1073741824)!==0&&(ae&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=gd(),F.lanes|=e,vl|=e,l)}function go(e,t,l,a){return ct(l,t)?l:ba.current!==null?(e=Oc(e,l,a),ct(e,t)||(_e=!0),e):(Xt&42)===0||(Xt&1073741824)!==0&&(ae&261930)===0?(_e=!0,e.memoizedState=l):(e=gd(),F.lanes|=e,vl|=e,t)}function vo(e,t,l,a,n){var u=H.p;H.p=u!==0&&8>u?u:8;var i=z.T,r={};z.T=r,Dc(e,!1,t,l);try{var m=n(),p=z.S;if(p!==null&&p(r,m),m!==null&&typeof m=="object"&&typeof m.then=="function"){var C=Lg(m,a);mn(e,t,C,mt(e))}else mn(e,t,a,mt(e))}catch(M){mn(e,t,{then:function(){},status:"rejected",reason:M},mt())}finally{H.p=u,i!==null&&r.types!==null&&(i.types=r.types),z.T=i}}function Xg(){}function _c(e,t,l,a){if(e.tag!==5)throw Error(f(476));var n=yo(e).queue;vo(e,n,t,J,l===null?Xg:function(){return bo(e),l(a)})}function yo(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zt,lastRenderedState:J},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zt,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function bo(e){var t=yo(e);t.next===null&&(t=e.alternate.memoizedState),mn(e,t.next.queue,{},mt())}function Mc(){return Ve(On)}function xo(){return ze().memoizedState}function po(){return ze().memoizedState}function Zg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=mt();e=fl(l);var a=ol(t,e,l);a!==null&&(lt(a,t,l),sn(a,t,l)),t={cache:cc()},e.payload=t;return}t=t.return}}function Kg(e,t,l){var a=mt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Nu(e)?jo(t,l):(l=Wi(e,t,l,a),l!==null&&(lt(l,e,a),No(l,t,a)))}function So(e,t,l){var a=mt();mn(e,t,l,a)}function mn(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Nu(e))jo(t,n);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var i=t.lastRenderedState,r=u(i,l);if(n.hasEagerState=!0,n.eagerState=r,ct(r,i))return au(e,t,n,0),xe===null&&lu(),!1}catch{}finally{}if(l=Wi(e,t,n,a),l!==null)return lt(l,e,a),No(l,t,a),!0}return!1}function Dc(e,t,l,a){if(a={lane:2,revertLane:os(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Nu(e)){if(t)throw Error(f(479))}else t=Wi(e,l,a,2),t!==null&&lt(t,e,2)}function Nu(e){var t=e.alternate;return e===F||t!==null&&t===F}function jo(e,t){xa=vu=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function No(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Ar(e,l)}}var hn={readContext:Ve,use:xu,useCallback:Ee,useContext:Ee,useEffect:Ee,useImperativeHandle:Ee,useLayoutEffect:Ee,useInsertionEffect:Ee,useMemo:Ee,useReducer:Ee,useRef:Ee,useState:Ee,useDebugValue:Ee,useDeferredValue:Ee,useTransition:Ee,useSyncExternalStore:Ee,useId:Ee,useHostTransitionStatus:Ee,useFormState:Ee,useActionState:Ee,useOptimistic:Ee,useMemoCache:Ee,useCacheRefresh:Ee};hn.useEffectEvent=Ee;var Eo={readContext:Ve,use:xu,useCallback:function(e,t){return ke().memoizedState=[e,t===void 0?null:t],e},useContext:Ve,useEffect:io,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Su(4194308,4,fo.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Su(4194308,4,e,t)},useInsertionEffect:function(e,t){Su(4,2,e,t)},useMemo:function(e,t){var l=ke();t=t===void 0?null:t;var a=e();if(Xl){ll(!0);try{e()}finally{ll(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=ke();if(l!==void 0){var n=l(t);if(Xl){ll(!0);try{l(t)}finally{ll(!1)}}}else n=t;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=Kg.bind(null,F,e),[a.memoizedState,e]},useRef:function(e){var t=ke();return e={current:e},t.memoizedState=e},useState:function(e){e=Ac(e);var t=e.queue,l=So.bind(null,F,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Cc,useDeferredValue:function(e,t){var l=ke();return Oc(l,e,t)},useTransition:function(){var e=Ac(!1);return e=vo.bind(null,F,e.queue,!0,!1),ke().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=F,n=ke();if(ie){if(l===void 0)throw Error(f(407));l=l()}else{if(l=t(),xe===null)throw Error(f(349));(ae&127)!==0||Xf(a,t,l)}n.memoizedState=l;var u={value:l,getSnapshot:t};return n.queue=u,io(Kf.bind(null,a,u,e),[e]),a.flags|=2048,Sa(9,{destroy:void 0},Zf.bind(null,a,u,l,t),null),l},useId:function(){var e=ke(),t=xe.identifierPrefix;if(ie){var l=Mt,a=_t;l=(a&~(1<<32-it(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=yu++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Yg++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Mc,useFormState:to,useActionState:to,useOptimistic:function(e){var t=ke();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Dc.bind(null,F,!0,l),l.dispatch=t,[e,t]},useMemoCache:Nc,useCacheRefresh:function(){return ke().memoizedState=Zg.bind(null,F)},useEffectEvent:function(e){var t=ke(),l={impl:e};return t.memoizedState=l,function(){if((re&2)!==0)throw Error(f(440));return l.impl.apply(void 0,arguments)}}},Rc={readContext:Ve,use:xu,useCallback:mo,useContext:Ve,useEffect:zc,useImperativeHandle:oo,useInsertionEffect:so,useLayoutEffect:ro,useMemo:ho,useReducer:pu,useRef:uo,useState:function(){return pu(Zt)},useDebugValue:Cc,useDeferredValue:function(e,t){var l=ze();return go(l,he.memoizedState,e,t)},useTransition:function(){var e=pu(Zt)[0],t=ze().memoizedState;return[typeof e=="boolean"?e:dn(e),t]},useSyncExternalStore:Qf,useId:xo,useHostTransitionStatus:Mc,useFormState:lo,useActionState:lo,useOptimistic:function(e,t){var l=ze();return $f(l,he,e,t)},useMemoCache:Nc,useCacheRefresh:po};Rc.useEffectEvent=co;var wo={readContext:Ve,use:xu,useCallback:mo,useContext:Ve,useEffect:zc,useImperativeHandle:oo,useInsertionEffect:so,useLayoutEffect:ro,useMemo:ho,useReducer:wc,useRef:uo,useState:function(){return wc(Zt)},useDebugValue:Cc,useDeferredValue:function(e,t){var l=ze();return he===null?Oc(l,e,t):go(l,he.memoizedState,e,t)},useTransition:function(){var e=wc(Zt)[0],t=ze().memoizedState;return[typeof e=="boolean"?e:dn(e),t]},useSyncExternalStore:Qf,useId:xo,useHostTransitionStatus:Mc,useFormState:no,useActionState:no,useOptimistic:function(e,t){var l=ze();return he!==null?$f(l,he,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Nc,useCacheRefresh:po};wo.useEffectEvent=co;function Uc(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:N({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Bc={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=mt(),n=fl(a);n.payload=t,l!=null&&(n.callback=l),t=ol(e,n,a),t!==null&&(lt(t,e,a),sn(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=mt(),n=fl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=ol(e,n,a),t!==null&&(lt(t,e,a),sn(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=mt(),a=fl(l);a.tag=2,t!=null&&(a.callback=t),t=ol(e,a,l),t!==null&&(lt(t,e,l),sn(t,e,l))}};function Ao(e,t,l,a,n,u,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,i):t.prototype&&t.prototype.isPureReactComponent?!Pa(l,a)||!Pa(n,u):!0}function To(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&Bc.enqueueReplaceState(t,t.state,null)}function Zl(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=N({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function zo(e){tu(e)}function Co(e){console.error(e)}function Oo(e){tu(e)}function Eu(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function _o(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function Hc(e,t,l){return l=fl(l),l.tag=3,l.payload={element:null},l.callback=function(){Eu(e,t)},l}function Mo(e){return e=fl(e),e.tag=3,e}function Do(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var u=a.value;e.payload=function(){return n(u)},e.callback=function(){_o(t,l,a)}}var i=l.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(e.callback=function(){_o(t,l,a),typeof n!="function"&&(yl===null?yl=new Set([this]):yl.add(this));var r=a.stack;this.componentDidCatch(a.value,{componentStack:r!==null?r:""})})}function Jg(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&ma(t,l,n,!0),l=rt.current,l!==null){switch(l.tag){case 31:case 13:return Nt===null?Bu():l.alternate===null&&we===0&&(we=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===ou?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),ss(e,a,n)),!1;case 22:return l.flags|=65536,a===ou?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),ss(e,a,n)),!1}throw Error(f(435,l.tag))}return ss(e,a,n),Bu(),!1}if(ie)return t=rt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==lc&&(e=Error(f(422),{cause:a}),ln(xt(e,l)))):(a!==lc&&(t=Error(f(423),{cause:a}),ln(xt(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=xt(a,l),n=Hc(e.stateNode,a,n),mc(e,n),we!==4&&(we=2)),!1;var u=Error(f(520),{cause:a});if(u=xt(u,l),jn===null?jn=[u]:jn.push(u),we!==4&&(we=2),t===null)return!0;a=xt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=Hc(l.stateNode,a,e),mc(l,e),!1;case 1:if(t=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(yl===null||!yl.has(u))))return l.flags|=65536,n&=-n,l.lanes|=n,n=Mo(n),Do(n,e,l,a),mc(l,n),!1}l=l.return}while(l!==null);return!1}var Lc=Error(f(461)),_e=!1;function Qe(e,t,l,a){t.child=e===null?Bf(t,null,l,a):Ql(t,e.child,l,a)}function Ro(e,t,l,a,n){l=l.render;var u=t.ref;if("ref"in a){var i={};for(var r in a)r!=="ref"&&(i[r]=a[r])}else i=a;return Yl(t),a=xc(e,t,l,i,u,n),r=pc(),e!==null&&!_e?(Sc(e,t,n),Kt(e,t,n)):(ie&&r&&ec(t),t.flags|=1,Qe(e,t,a,n),t.child)}function Uo(e,t,l,a,n){if(e===null){var u=l.type;return typeof u=="function"&&!Fi(u)&&u.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=u,Bo(e,t,u,a,n)):(e=uu(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!Kc(e,n)){var i=u.memoizedProps;if(l=l.compare,l=l!==null?l:Pa,l(i,a)&&e.ref===t.ref)return Kt(e,t,n)}return t.flags|=1,e=qt(u,a),e.ref=t.ref,e.return=t,t.child=e}function Bo(e,t,l,a,n){if(e!==null){var u=e.memoizedProps;if(Pa(u,a)&&e.ref===t.ref)if(_e=!1,t.pendingProps=a=u,Kc(e,n))(e.flags&131072)!==0&&(_e=!0);else return t.lanes=e.lanes,Kt(e,t,n)}return Yc(e,t,l,a,n)}function Ho(e,t,l,a){var n=a.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|l:l,e!==null){for(a=t.child=e.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~u}else a=0,t.child=null;return Lo(e,t,u,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ru(t,u!==null?u.cachePool:null),u!==null?Yf(t,u):gc(),qf(t);else return a=t.lanes=536870912,Lo(e,t,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(ru(t,u.cachePool),Yf(t,u),ml(),t.memoizedState=null):(e!==null&&ru(t,null),gc(),ml());return Qe(e,t,n,l),t.child}function gn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Lo(e,t,l,a,n){var u=rc();return u=u===null?null:{parent:Ce._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&ru(t,null),gc(),qf(t),e!==null&&ma(e,t,a,!0),t.childLanes=n,null}function wu(e,t){return t=Tu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Yo(e,t,l){return Ql(t,e.child,null,l),e=wu(t,t.pendingProps),e.flags|=2,ft(t),t.memoizedState=null,e}function kg(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ie){if(a.mode==="hidden")return e=wu(t,a),t.lanes=536870912,gn(null,e);if(yc(t),(e=pe)?(e=Fd(e,jt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ul!==null?{id:_t,overflow:Mt}:null,retryLane:536870912,hydrationErrors:null},l=Sf(e),l.return=t,t.child=l,Ge=t,pe=null)):e=null,e===null)throw cl(t);return t.lanes=536870912,null}return wu(t,a)}var u=e.memoizedState;if(u!==null){var i=u.dehydrated;if(yc(t),n)if(t.flags&256)t.flags&=-257,t=Yo(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(f(558));else if(_e||ma(e,t,l,!1),n=(l&e.childLanes)!==0,_e||n){if(a=xe,a!==null&&(i=Tr(a,l),i!==0&&i!==u.retryLane))throw u.retryLane=i,Ul(e,i),lt(a,e,i),Lc;Bu(),t=Yo(e,t,l)}else e=u.treeContext,pe=Et(i.nextSibling),Ge=t,ie=!0,il=null,jt=!1,e!==null&&Ef(t,e),t=wu(t,a),t.flags|=4096;return t}return e=qt(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Au(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(f(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Yc(e,t,l,a,n){return Yl(t),l=xc(e,t,l,a,void 0,n),a=pc(),e!==null&&!_e?(Sc(e,t,n),Kt(e,t,n)):(ie&&a&&ec(t),t.flags|=1,Qe(e,t,l,n),t.child)}function qo(e,t,l,a,n,u){return Yl(t),t.updateQueue=null,l=Vf(t,a,l,n),Gf(e),a=pc(),e!==null&&!_e?(Sc(e,t,u),Kt(e,t,u)):(ie&&a&&ec(t),t.flags|=1,Qe(e,t,l,u),t.child)}function Go(e,t,l,a,n){if(Yl(t),t.stateNode===null){var u=ra,i=l.contextType;typeof i=="object"&&i!==null&&(u=Ve(i)),u=new l(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Bc,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},oc(t),i=l.contextType,u.context=typeof i=="object"&&i!==null?Ve(i):ra,u.state=t.memoizedState,i=l.getDerivedStateFromProps,typeof i=="function"&&(Uc(t,l,i,a),u.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(i=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),i!==u.state&&Bc.enqueueReplaceState(u,u.state,null),fn(t,a,u,n),rn(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){u=t.stateNode;var r=t.memoizedProps,m=Zl(l,r);u.props=m;var p=u.context,C=l.contextType;i=ra,typeof C=="object"&&C!==null&&(i=Ve(C));var M=l.getDerivedStateFromProps;C=typeof M=="function"||typeof u.getSnapshotBeforeUpdate=="function",r=t.pendingProps!==r,C||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(r||p!==i)&&To(t,u,a,i),rl=!1;var j=t.memoizedState;u.state=j,fn(t,a,u,n),rn(),p=t.memoizedState,r||j!==p||rl?(typeof M=="function"&&(Uc(t,l,M,a),p=t.memoizedState),(m=rl||Ao(t,l,m,a,j,p,i))?(C||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=p),u.props=a,u.state=p,u.context=i,a=m):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,dc(e,t),i=t.memoizedProps,C=Zl(l,i),u.props=C,M=t.pendingProps,j=u.context,p=l.contextType,m=ra,typeof p=="object"&&p!==null&&(m=Ve(p)),r=l.getDerivedStateFromProps,(p=typeof r=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(i!==M||j!==m)&&To(t,u,a,m),rl=!1,j=t.memoizedState,u.state=j,fn(t,a,u,n),rn();var A=t.memoizedState;i!==M||j!==A||rl||e!==null&&e.dependencies!==null&&cu(e.dependencies)?(typeof r=="function"&&(Uc(t,l,r,a),A=t.memoizedState),(C=rl||Ao(t,l,C,a,j,A,m)||e!==null&&e.dependencies!==null&&cu(e.dependencies))?(p||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,A,m),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,A,m)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||i===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=A),u.props=a,u.state=A,u.context=m,a=C):(typeof u.componentDidUpdate!="function"||i===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),a=!1)}return u=a,Au(e,t),a=(t.flags&128)!==0,u||a?(u=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&a?(t.child=Ql(t,e.child,null,n),t.child=Ql(t,null,l,n)):Qe(e,t,l,n),t.memoizedState=u.state,e=t.child):e=Kt(e,t,n),e}function Vo(e,t,l,a){return Hl(),t.flags|=256,Qe(e,t,l,a),t.child}var qc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Gc(e){return{baseLanes:e,cachePool:Of()}}function Vc(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=dt),e}function Qo(e,t,l){var a=t.pendingProps,n=!1,u=(t.flags&128)!==0,i;if((i=u)||(i=e!==null&&e.memoizedState===null?!1:(Te.current&2)!==0),i&&(n=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,e===null){if(ie){if(n?dl(t):ml(),(e=pe)?(e=Fd(e,jt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ul!==null?{id:_t,overflow:Mt}:null,retryLane:536870912,hydrationErrors:null},l=Sf(e),l.return=t,t.child=l,Ge=t,pe=null)):e=null,e===null)throw cl(t);return Es(e)?t.lanes=32:t.lanes=536870912,null}var r=a.children;return a=a.fallback,n?(ml(),n=t.mode,r=Tu({mode:"hidden",children:r},n),a=Bl(a,n,l,null),r.return=t,a.return=t,r.sibling=a,t.child=r,a=t.child,a.memoizedState=Gc(l),a.childLanes=Vc(e,i,l),t.memoizedState=qc,gn(null,a)):(dl(t),Qc(t,r))}var m=e.memoizedState;if(m!==null&&(r=m.dehydrated,r!==null)){if(u)t.flags&256?(dl(t),t.flags&=-257,t=Xc(e,t,l)):t.memoizedState!==null?(ml(),t.child=e.child,t.flags|=128,t=null):(ml(),r=a.fallback,n=t.mode,a=Tu({mode:"visible",children:a.children},n),r=Bl(r,n,l,null),r.flags|=2,a.return=t,r.return=t,a.sibling=r,t.child=a,Ql(t,e.child,null,l),a=t.child,a.memoizedState=Gc(l),a.childLanes=Vc(e,i,l),t.memoizedState=qc,t=gn(null,a));else if(dl(t),Es(r)){if(i=r.nextSibling&&r.nextSibling.dataset,i)var p=i.dgst;i=p,a=Error(f(419)),a.stack="",a.digest=i,ln({value:a,source:null,stack:null}),t=Xc(e,t,l)}else if(_e||ma(e,t,l,!1),i=(l&e.childLanes)!==0,_e||i){if(i=xe,i!==null&&(a=Tr(i,l),a!==0&&a!==m.retryLane))throw m.retryLane=a,Ul(e,a),lt(i,e,a),Lc;Ns(r)||Bu(),t=Xc(e,t,l)}else Ns(r)?(t.flags|=192,t.child=e.child,t=null):(e=m.treeContext,pe=Et(r.nextSibling),Ge=t,ie=!0,il=null,jt=!1,e!==null&&Ef(t,e),t=Qc(t,a.children),t.flags|=4096);return t}return n?(ml(),r=a.fallback,n=t.mode,m=e.child,p=m.sibling,a=qt(m,{mode:"hidden",children:a.children}),a.subtreeFlags=m.subtreeFlags&65011712,p!==null?r=qt(p,r):(r=Bl(r,n,l,null),r.flags|=2),r.return=t,a.return=t,a.sibling=r,t.child=a,gn(null,a),a=t.child,r=e.child.memoizedState,r===null?r=Gc(l):(n=r.cachePool,n!==null?(m=Ce._currentValue,n=n.parent!==m?{parent:m,pool:m}:n):n=Of(),r={baseLanes:r.baseLanes|l,cachePool:n}),a.memoizedState=r,a.childLanes=Vc(e,i,l),t.memoizedState=qc,gn(e.child,a)):(dl(t),l=e.child,e=l.sibling,l=qt(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(i=t.deletions,i===null?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=l,t.memoizedState=null,l)}function Qc(e,t){return t=Tu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Tu(e,t){return e=st(22,e,null,t),e.lanes=0,e}function Xc(e,t,l){return Ql(t,e.child,null,l),e=Qc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Xo(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),uc(e.return,t,l)}function Zc(e,t,l,a,n,u){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:u}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=a,i.tail=l,i.tailMode=n,i.treeForkCount=u)}function Zo(e,t,l){var a=t.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var i=Te.current,r=(i&2)!==0;if(r?(i=i&1|2,t.flags|=128):i&=1,L(Te,i),Qe(e,t,a,l),a=ie?tn:0,!r&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Xo(e,l,t);else if(e.tag===19)Xo(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(n){case"forwards":for(l=t.child,n=null;l!==null;)e=l.alternate,e!==null&&gu(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),Zc(t,!1,n,l,u,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&gu(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}Zc(t,!0,l,null,u,a);break;case"together":Zc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Kt(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),vl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(ma(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(f(153));if(t.child!==null){for(e=t.child,l=qt(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=qt(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Kc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&cu(e)))}function $g(e,t,l){switch(t.tag){case 3:Je(t,t.stateNode.containerInfo),sl(t,Ce,e.memoizedState.cache),Hl();break;case 27:case 5:qa(t);break;case 4:Je(t,t.stateNode.containerInfo);break;case 10:sl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,yc(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(dl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Qo(e,t,l):(dl(t),e=Kt(e,t,l),e!==null?e.sibling:null);dl(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(ma(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return Zo(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),L(Te,Te.current),a)break;return null;case 22:return t.lanes=0,Ho(e,t,l,t.pendingProps);case 24:sl(t,Ce,e.memoizedState.cache)}return Kt(e,t,l)}function Ko(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)_e=!0;else{if(!Kc(e,l)&&(t.flags&128)===0)return _e=!1,$g(e,t,l);_e=(e.flags&131072)!==0}else _e=!1,ie&&(t.flags&1048576)!==0&&Nf(t,tn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Gl(t.elementType),t.type=e,typeof e=="function")Fi(e)?(a=Zl(e,a),t.tag=1,t=Go(null,t,e,a,l)):(t.tag=0,t=Yc(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===Be){t.tag=11,t=Ro(null,t,e,a,l);break e}else if(n===P){t.tag=14,t=Uo(null,t,e,a,l);break e}}throw t=At(e)||e,Error(f(306,t,""))}}return t;case 0:return Yc(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=Zl(a,t.pendingProps),Go(e,t,a,n,l);case 3:e:{if(Je(t,t.stateNode.containerInfo),e===null)throw Error(f(387));a=t.pendingProps;var u=t.memoizedState;n=u.element,dc(e,t),fn(t,a,null,l);var i=t.memoizedState;if(a=i.cache,sl(t,Ce,a),a!==u.cache&&ic(t,[Ce],l,!0),rn(),a=i.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:i.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=Vo(e,t,a,l);break e}else if(a!==n){n=xt(Error(f(424)),t),ln(n),t=Vo(e,t,a,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(pe=Et(e.firstChild),Ge=t,ie=!0,il=null,jt=!0,l=Bf(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Hl(),a===n){t=Kt(e,t,l);break e}Qe(e,t,a,l)}t=t.child}return t;case 26:return Au(e,t),e===null?(l=a0(t.type,null,t.pendingProps,null))?t.memoizedState=l:ie||(l=t.type,e=t.pendingProps,a=Qu(ee.current).createElement(l),a[qe]=t,a[We]=e,Xe(a,l,e),Le(a),t.stateNode=a):t.memoizedState=a0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return qa(t),e===null&&ie&&(a=t.stateNode=e0(t.type,t.pendingProps,ee.current),Ge=t,jt=!0,n=pe,Sl(t.type)?(ws=n,pe=Et(a.firstChild)):pe=n),Qe(e,t,t.pendingProps.children,l),Au(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ie&&((n=a=pe)&&(a=wv(a,t.type,t.pendingProps,jt),a!==null?(t.stateNode=a,Ge=t,pe=Et(a.firstChild),jt=!1,n=!0):n=!1),n||cl(t)),qa(t),n=t.type,u=t.pendingProps,i=e!==null?e.memoizedProps:null,a=u.children,ps(n,u)?a=null:i!==null&&ps(n,i)&&(t.flags|=32),t.memoizedState!==null&&(n=xc(e,t,qg,null,null,l),On._currentValue=n),Au(e,t),Qe(e,t,a,l),t.child;case 6:return e===null&&ie&&((e=l=pe)&&(l=Av(l,t.pendingProps,jt),l!==null?(t.stateNode=l,Ge=t,pe=null,e=!0):e=!1),e||cl(t)),null;case 13:return Qo(e,t,l);case 4:return Je(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Ql(t,null,a,l):Qe(e,t,a,l),t.child;case 11:return Ro(e,t,t.type,t.pendingProps,l);case 7:return Qe(e,t,t.pendingProps,l),t.child;case 8:return Qe(e,t,t.pendingProps.children,l),t.child;case 12:return Qe(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,sl(t,t.type,a.value),Qe(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,Yl(t),n=Ve(n),a=a(n),t.flags|=1,Qe(e,t,a,l),t.child;case 14:return Uo(e,t,t.type,t.pendingProps,l);case 15:return Bo(e,t,t.type,t.pendingProps,l);case 19:return Zo(e,t,l);case 31:return kg(e,t,l);case 22:return Ho(e,t,l,t.pendingProps);case 24:return Yl(t),a=Ve(Ce),e===null?(n=rc(),n===null&&(n=xe,u=cc(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=l),n=u),t.memoizedState={parent:a,cache:n},oc(t),sl(t,Ce,n)):((e.lanes&l)!==0&&(dc(e,t),fn(t,null,null,l),rn()),n=e.memoizedState,u=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),sl(t,Ce,a)):(a=u.cache,sl(t,Ce,a),a!==n.cache&&ic(t,[Ce],l,!0))),Qe(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(f(156,t.tag))}function Jt(e){e.flags|=4}function Jc(e,t,l,a,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(xd())e.flags|=8192;else throw Vl=ou,fc}else e.flags&=-16777217}function Jo(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!s0(t))if(xd())e.flags|=8192;else throw Vl=ou,fc}function zu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Er():536870912,e.lanes|=t,wa|=t)}function vn(e,t){if(!ie)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Se(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function Wg(e,t,l){var a=t.pendingProps;switch(tc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Se(t),null;case 1:return Se(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Qt(Ce),Ae(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(da(t)?Jt(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ac())),Se(t),null;case 26:var n=t.type,u=t.memoizedState;return e===null?(Jt(t),u!==null?(Se(t),Jo(t,u)):(Se(t),Jc(t,n,null,a,l))):u?u!==e.memoizedState?(Jt(t),Se(t),Jo(t,u)):(Se(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Jt(t),Se(t),Jc(t,n,e,a,l)),null;case 27:if(Yn(t),l=ee.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Jt(t);else{if(!a){if(t.stateNode===null)throw Error(f(166));return Se(t),null}e=G.current,da(t)?wf(t):(e=e0(n,a,l),t.stateNode=e,Jt(t))}return Se(t),null;case 5:if(Yn(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Jt(t);else{if(!a){if(t.stateNode===null)throw Error(f(166));return Se(t),null}if(u=G.current,da(t))wf(t);else{var i=Qu(ee.current);switch(u){case 1:u=i.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=i.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=i.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?i.createElement("select",{is:a.is}):i.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?i.createElement(n,{is:a.is}):i.createElement(n)}}u[qe]=t,u[We]=a;e:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)u.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=u;e:switch(Xe(u,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Jt(t)}}return Se(t),Jc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Jt(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(f(166));if(e=ee.current,da(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=Ge,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[qe]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Qd(e.nodeValue,l)),e||cl(t,!0)}else e=Qu(e).createTextNode(a),e[qe]=t,t.stateNode=e}return Se(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=da(t),l!==null){if(e===null){if(!a)throw Error(f(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(f(557));e[qe]=t}else Hl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Se(t),e=!1}else l=ac(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(ft(t),t):(ft(t),null);if((t.flags&128)!==0)throw Error(f(558))}return Se(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=da(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(f(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(f(317));n[qe]=t}else Hl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Se(t),n=!1}else n=ac(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(ft(t),t):(ft(t),null)}return ft(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),zu(t,t.updateQueue),Se(t),null);case 4:return Ae(),e===null&&gs(t.stateNode.containerInfo),Se(t),null;case 10:return Qt(t.type),Se(t),null;case 19:if(D(Te),a=t.memoizedState,a===null)return Se(t),null;if(n=(t.flags&128)!==0,u=a.rendering,u===null)if(n)vn(a,!1);else{if(we!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=gu(e),u!==null){for(t.flags|=128,vn(a,!1),e=u.updateQueue,t.updateQueue=e,zu(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)pf(l,e),l=l.sibling;return L(Te,Te.current&1|2),ie&&Gt(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&nt()>Du&&(t.flags|=128,n=!0,vn(a,!1),t.lanes=4194304)}else{if(!n)if(e=gu(u),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,zu(t,e),vn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!ie)return Se(t),null}else 2*nt()-a.renderingStartTime>Du&&l!==536870912&&(t.flags|=128,n=!0,vn(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(e=a.last,e!==null?e.sibling=u:t.child=u,a.last=u)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=nt(),e.sibling=null,l=Te.current,L(Te,n?l&1|2:l&1),ie&&Gt(t,a.treeForkCount),e):(Se(t),null);case 22:case 23:return ft(t),vc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(Se(t),t.subtreeFlags&6&&(t.flags|=8192)):Se(t),l=t.updateQueue,l!==null&&zu(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&D(ql),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Qt(Ce),Se(t),null;case 25:return null;case 30:return null}throw Error(f(156,t.tag))}function Fg(e,t){switch(tc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Qt(Ce),Ae(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Yn(t),null;case 31:if(t.memoizedState!==null){if(ft(t),t.alternate===null)throw Error(f(340));Hl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ft(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(f(340));Hl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return D(Te),null;case 4:return Ae(),null;case 10:return Qt(t.type),null;case 22:case 23:return ft(t),vc(),e!==null&&D(ql),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Qt(Ce),null;case 25:return null;default:return null}}function ko(e,t){switch(tc(t),t.tag){case 3:Qt(Ce),Ae();break;case 26:case 27:case 5:Yn(t);break;case 4:Ae();break;case 31:t.memoizedState!==null&&ft(t);break;case 13:ft(t);break;case 19:D(Te);break;case 10:Qt(t.type);break;case 22:case 23:ft(t),vc(),e!==null&&D(ql);break;case 24:Qt(Ce)}}function yn(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&e)===e){a=void 0;var u=l.create,i=l.inst;a=u(),i.destroy=a}l=l.next}while(l!==n)}}catch(r){de(t,t.return,r)}}function hl(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&e)===e){var i=a.inst,r=i.destroy;if(r!==void 0){i.destroy=void 0,n=t;var m=l,p=r;try{p()}catch(C){de(n,m,C)}}}a=a.next}while(a!==u)}}catch(C){de(t,t.return,C)}}function $o(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Lf(t,l)}catch(a){de(e,e.return,a)}}}function Wo(e,t,l){l.props=Zl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){de(e,t,a)}}function bn(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(n){de(e,t,n)}}function Dt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){de(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){de(e,t,n)}else l.current=null}function Fo(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){de(e,e.return,n)}}function kc(e,t,l){try{var a=e.stateNode;xv(a,e.type,l,t),a[We]=t}catch(n){de(e,e.return,n)}}function Io(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Sl(e.type)||e.tag===4}function $c(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Io(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Sl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Wc(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=Lt));else if(a!==4&&(a===27&&Sl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Wc(e,t,l),e=e.sibling;e!==null;)Wc(e,t,l),e=e.sibling}function Cu(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&Sl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Cu(e,t,l),e=e.sibling;e!==null;)Cu(e,t,l),e=e.sibling}function Po(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);Xe(t,a,l),t[qe]=e,t[We]=l}catch(u){de(e,e.return,u)}}var kt=!1,Me=!1,Fc=!1,ed=typeof WeakSet=="function"?WeakSet:Set,Ye=null;function Ig(e,t){if(e=e.containerInfo,bs=Wu,e=of(e),Xi(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break e}var i=0,r=-1,m=-1,p=0,C=0,M=e,j=null;t:for(;;){for(var A;M!==l||n!==0&&M.nodeType!==3||(r=i+n),M!==u||a!==0&&M.nodeType!==3||(m=i+a),M.nodeType===3&&(i+=M.nodeValue.length),(A=M.firstChild)!==null;)j=M,M=A;for(;;){if(M===e)break t;if(j===l&&++p===n&&(r=i),j===u&&++C===a&&(m=i),(A=M.nextSibling)!==null)break;M=j,j=M.parentNode}M=A}l=r===-1||m===-1?null:{start:r,end:m}}else l=null}l=l||{start:0,end:0}}else l=null;for(xs={focusedElem:e,selectionRange:l},Wu=!1,Ye=t;Ye!==null;)if(t=Ye,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ye=e;else for(;Ye!==null;){switch(t=Ye,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)n=e[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,l=t,n=u.memoizedProps,u=u.memoizedState,a=l.stateNode;try{var Y=Zl(l.type,n);e=a.getSnapshotBeforeUpdate(Y,u),a.__reactInternalSnapshotBeforeUpdate=e}catch(K){de(l,l.return,K)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)js(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":js(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(f(163))}if(e=t.sibling,e!==null){e.return=t.return,Ye=e;break}Ye=t.return}}function td(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:Wt(e,l),a&4&&yn(5,l);break;case 1:if(Wt(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(i){de(l,l.return,i)}else{var n=Zl(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(i){de(l,l.return,i)}}a&64&&$o(l),a&512&&bn(l,l.return);break;case 3:if(Wt(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Lf(e,t)}catch(i){de(l,l.return,i)}}break;case 27:t===null&&a&4&&Po(l);case 26:case 5:Wt(e,l),t===null&&a&4&&Fo(l),a&512&&bn(l,l.return);break;case 12:Wt(e,l);break;case 31:Wt(e,l),a&4&&nd(e,l);break;case 13:Wt(e,l),a&4&&ud(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=cv.bind(null,l),Tv(e,l))));break;case 22:if(a=l.memoizedState!==null||kt,!a){t=t!==null&&t.memoizedState!==null||Me,n=kt;var u=Me;kt=a,(Me=t)&&!u?Ft(e,l,(l.subtreeFlags&8772)!==0):Wt(e,l),kt=n,Me=u}break;case 30:break;default:Wt(e,l)}}function ld(e){var t=e.alternate;t!==null&&(e.alternate=null,ld(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ti(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var je=null,Ie=!1;function $t(e,t,l){for(l=l.child;l!==null;)ad(e,t,l),l=l.sibling}function ad(e,t,l){if(ut&&typeof ut.onCommitFiberUnmount=="function")try{ut.onCommitFiberUnmount(Ga,l)}catch{}switch(l.tag){case 26:Me||Dt(l,t),$t(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Me||Dt(l,t);var a=je,n=Ie;Sl(l.type)&&(je=l.stateNode,Ie=!1),$t(e,t,l),Tn(l.stateNode),je=a,Ie=n;break;case 5:Me||Dt(l,t);case 6:if(a=je,n=Ie,je=null,$t(e,t,l),je=a,Ie=n,je!==null)if(Ie)try{(je.nodeType===9?je.body:je.nodeName==="HTML"?je.ownerDocument.body:je).removeChild(l.stateNode)}catch(u){de(l,t,u)}else try{je.removeChild(l.stateNode)}catch(u){de(l,t,u)}break;case 18:je!==null&&(Ie?(e=je,$d(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Da(e)):$d(je,l.stateNode));break;case 4:a=je,n=Ie,je=l.stateNode.containerInfo,Ie=!0,$t(e,t,l),je=a,Ie=n;break;case 0:case 11:case 14:case 15:hl(2,l,t),Me||hl(4,l,t),$t(e,t,l);break;case 1:Me||(Dt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Wo(l,t,a)),$t(e,t,l);break;case 21:$t(e,t,l);break;case 22:Me=(a=Me)||l.memoizedState!==null,$t(e,t,l),Me=a;break;default:$t(e,t,l)}}function nd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Da(e)}catch(l){de(t,t.return,l)}}}function ud(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Da(e)}catch(l){de(t,t.return,l)}}function Pg(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ed),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ed),t;default:throw Error(f(435,e.tag))}}function Ou(e,t){var l=Pg(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=sv.bind(null,e,a);a.then(n,n)}})}function Pe(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],u=e,i=t,r=i;e:for(;r!==null;){switch(r.tag){case 27:if(Sl(r.type)){je=r.stateNode,Ie=!1;break e}break;case 5:je=r.stateNode,Ie=!1;break e;case 3:case 4:je=r.stateNode.containerInfo,Ie=!0;break e}r=r.return}if(je===null)throw Error(f(160));ad(u,i,n),je=null,Ie=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)id(t,e),t=t.sibling}var zt=null;function id(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Pe(t,e),et(e),a&4&&(hl(3,e,e.return),yn(3,e),hl(5,e,e.return));break;case 1:Pe(t,e),et(e),a&512&&(Me||l===null||Dt(l,l.return)),a&64&&kt&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=zt;if(Pe(t,e),et(e),a&512&&(Me||l===null||Dt(l,l.return)),a&4){var u=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":u=n.getElementsByTagName("title")[0],(!u||u[Xa]||u[qe]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),Xe(u,a,l),u[qe]=e,Le(u),a=u;break e;case"link":var i=i0("link","href",n).get(a+(l.href||""));if(i){for(var r=0;r<i.length;r++)if(u=i[r],u.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&u.getAttribute("rel")===(l.rel==null?null:l.rel)&&u.getAttribute("title")===(l.title==null?null:l.title)&&u.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){i.splice(r,1);break t}}u=n.createElement(a),Xe(u,a,l),n.head.appendChild(u);break;case"meta":if(i=i0("meta","content",n).get(a+(l.content||""))){for(r=0;r<i.length;r++)if(u=i[r],u.getAttribute("content")===(l.content==null?null:""+l.content)&&u.getAttribute("name")===(l.name==null?null:l.name)&&u.getAttribute("property")===(l.property==null?null:l.property)&&u.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&u.getAttribute("charset")===(l.charSet==null?null:l.charSet)){i.splice(r,1);break t}}u=n.createElement(a),Xe(u,a,l),n.head.appendChild(u);break;default:throw Error(f(468,a))}u[qe]=e,Le(u),a=u}e.stateNode=a}else c0(n,e.type,e.stateNode);else e.stateNode=u0(n,a,e.memoizedProps);else u!==a?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,a===null?c0(n,e.type,e.stateNode):u0(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&kc(e,e.memoizedProps,l.memoizedProps)}break;case 27:Pe(t,e),et(e),a&512&&(Me||l===null||Dt(l,l.return)),l!==null&&a&4&&kc(e,e.memoizedProps,l.memoizedProps);break;case 5:if(Pe(t,e),et(e),a&512&&(Me||l===null||Dt(l,l.return)),e.flags&32){n=e.stateNode;try{la(n,"")}catch(Y){de(e,e.return,Y)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,kc(e,n,l!==null?l.memoizedProps:n)),a&1024&&(Fc=!0);break;case 6:if(Pe(t,e),et(e),a&4){if(e.stateNode===null)throw Error(f(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(Y){de(e,e.return,Y)}}break;case 3:if(Ku=null,n=zt,zt=Xu(t.containerInfo),Pe(t,e),zt=n,et(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Da(t.containerInfo)}catch(Y){de(e,e.return,Y)}Fc&&(Fc=!1,cd(e));break;case 4:a=zt,zt=Xu(e.stateNode.containerInfo),Pe(t,e),et(e),zt=a;break;case 12:Pe(t,e),et(e);break;case 31:Pe(t,e),et(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ou(e,a)));break;case 13:Pe(t,e),et(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Mu=nt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ou(e,a)));break;case 22:n=e.memoizedState!==null;var m=l!==null&&l.memoizedState!==null,p=kt,C=Me;if(kt=p||n,Me=C||m,Pe(t,e),Me=C,kt=p,et(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||m||kt||Me||Kl(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){m=l=t;try{if(u=m.stateNode,n)i=u.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none";else{r=m.stateNode;var M=m.memoizedProps.style,j=M!=null&&M.hasOwnProperty("display")?M.display:null;r.style.display=j==null||typeof j=="boolean"?"":(""+j).trim()}}catch(Y){de(m,m.return,Y)}}}else if(t.tag===6){if(l===null){m=t;try{m.stateNode.nodeValue=n?"":m.memoizedProps}catch(Y){de(m,m.return,Y)}}}else if(t.tag===18){if(l===null){m=t;try{var A=m.stateNode;n?Wd(A,!0):Wd(m.stateNode,!1)}catch(Y){de(m,m.return,Y)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,Ou(e,l))));break;case 19:Pe(t,e),et(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ou(e,a)));break;case 30:break;case 21:break;default:Pe(t,e),et(e)}}function et(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(Io(a)){l=a;break}a=a.return}if(l==null)throw Error(f(160));switch(l.tag){case 27:var n=l.stateNode,u=$c(e);Cu(e,u,n);break;case 5:var i=l.stateNode;l.flags&32&&(la(i,""),l.flags&=-33);var r=$c(e);Cu(e,r,i);break;case 3:case 4:var m=l.stateNode.containerInfo,p=$c(e);Wc(e,p,m);break;default:throw Error(f(161))}}catch(C){de(e,e.return,C)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function cd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;cd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Wt(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)td(e,t.alternate,t),t=t.sibling}function Kl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:hl(4,t,t.return),Kl(t);break;case 1:Dt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Wo(t,t.return,l),Kl(t);break;case 27:Tn(t.stateNode);case 26:case 5:Dt(t,t.return),Kl(t);break;case 22:t.memoizedState===null&&Kl(t);break;case 30:Kl(t);break;default:Kl(t)}e=e.sibling}}function Ft(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,u=t,i=u.flags;switch(u.tag){case 0:case 11:case 15:Ft(n,u,l),yn(4,u);break;case 1:if(Ft(n,u,l),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(p){de(a,a.return,p)}if(a=u,n=a.updateQueue,n!==null){var r=a.stateNode;try{var m=n.shared.hiddenCallbacks;if(m!==null)for(n.shared.hiddenCallbacks=null,n=0;n<m.length;n++)Hf(m[n],r)}catch(p){de(a,a.return,p)}}l&&i&64&&$o(u),bn(u,u.return);break;case 27:Po(u);case 26:case 5:Ft(n,u,l),l&&a===null&&i&4&&Fo(u),bn(u,u.return);break;case 12:Ft(n,u,l);break;case 31:Ft(n,u,l),l&&i&4&&nd(n,u);break;case 13:Ft(n,u,l),l&&i&4&&ud(n,u);break;case 22:u.memoizedState===null&&Ft(n,u,l),bn(u,u.return);break;case 30:break;default:Ft(n,u,l)}t=t.sibling}}function Ic(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&an(l))}function Pc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&an(e))}function Ct(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)sd(e,t,l,a),t=t.sibling}function sd(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Ct(e,t,l,a),n&2048&&yn(9,t);break;case 1:Ct(e,t,l,a);break;case 3:Ct(e,t,l,a),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&an(e)));break;case 12:if(n&2048){Ct(e,t,l,a),e=t.stateNode;try{var u=t.memoizedProps,i=u.id,r=u.onPostCommit;typeof r=="function"&&r(i,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(m){de(t,t.return,m)}}else Ct(e,t,l,a);break;case 31:Ct(e,t,l,a);break;case 13:Ct(e,t,l,a);break;case 23:break;case 22:u=t.stateNode,i=t.alternate,t.memoizedState!==null?u._visibility&2?Ct(e,t,l,a):xn(e,t):u._visibility&2?Ct(e,t,l,a):(u._visibility|=2,ja(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&Ic(i,t);break;case 24:Ct(e,t,l,a),n&2048&&Pc(t.alternate,t);break;default:Ct(e,t,l,a)}}function ja(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,i=t,r=l,m=a,p=i.flags;switch(i.tag){case 0:case 11:case 15:ja(u,i,r,m,n),yn(8,i);break;case 23:break;case 22:var C=i.stateNode;i.memoizedState!==null?C._visibility&2?ja(u,i,r,m,n):xn(u,i):(C._visibility|=2,ja(u,i,r,m,n)),n&&p&2048&&Ic(i.alternate,i);break;case 24:ja(u,i,r,m,n),n&&p&2048&&Pc(i.alternate,i);break;default:ja(u,i,r,m,n)}t=t.sibling}}function xn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,n=a.flags;switch(a.tag){case 22:xn(l,a),n&2048&&Ic(a.alternate,a);break;case 24:xn(l,a),n&2048&&Pc(a.alternate,a);break;default:xn(l,a)}t=t.sibling}}var pn=8192;function Na(e,t,l){if(e.subtreeFlags&pn)for(e=e.child;e!==null;)rd(e,t,l),e=e.sibling}function rd(e,t,l){switch(e.tag){case 26:Na(e,t,l),e.flags&pn&&e.memoizedState!==null&&Yv(l,zt,e.memoizedState,e.memoizedProps);break;case 5:Na(e,t,l);break;case 3:case 4:var a=zt;zt=Xu(e.stateNode.containerInfo),Na(e,t,l),zt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=pn,pn=16777216,Na(e,t,l),pn=a):Na(e,t,l));break;default:Na(e,t,l)}}function fd(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Sn(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Ye=a,dd(a,e)}fd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)od(e),e=e.sibling}function od(e){switch(e.tag){case 0:case 11:case 15:Sn(e),e.flags&2048&&hl(9,e,e.return);break;case 3:Sn(e);break;case 12:Sn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,_u(e)):Sn(e);break;default:Sn(e)}}function _u(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Ye=a,dd(a,e)}fd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:hl(8,t,t.return),_u(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,_u(t));break;default:_u(t)}e=e.sibling}}function dd(e,t){for(;Ye!==null;){var l=Ye;switch(l.tag){case 0:case 11:case 15:hl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:an(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Ye=a;else e:for(l=e;Ye!==null;){a=Ye;var n=a.sibling,u=a.return;if(ld(a),a===l){Ye=null;break e}if(n!==null){n.return=u,Ye=n;break e}Ye=u}}}var ev={getCacheForType:function(e){var t=Ve(Ce),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return Ve(Ce).controller.signal}},tv=typeof WeakMap=="function"?WeakMap:Map,re=0,xe=null,te=null,ae=0,oe=0,ot=null,gl=!1,Ea=!1,es=!1,It=0,we=0,vl=0,Jl=0,ts=0,dt=0,wa=0,jn=null,tt=null,ls=!1,Mu=0,md=0,Du=1/0,Ru=null,yl=null,Ue=0,bl=null,Aa=null,Pt=0,as=0,ns=null,hd=null,Nn=0,us=null;function mt(){return(re&2)!==0&&ae!==0?ae&-ae:z.T!==null?os():zr()}function gd(){if(dt===0)if((ae&536870912)===0||ie){var e=Vn;Vn<<=1,(Vn&3932160)===0&&(Vn=262144),dt=e}else dt=536870912;return e=rt.current,e!==null&&(e.flags|=32),dt}function lt(e,t,l){(e===xe&&(oe===2||oe===9)||e.cancelPendingCommit!==null)&&(Ta(e,0),xl(e,ae,dt,!1)),Qa(e,l),((re&2)===0||e!==xe)&&(e===xe&&((re&2)===0&&(Jl|=l),we===4&&xl(e,ae,dt,!1)),Rt(e))}function vd(e,t,l){if((re&6)!==0)throw Error(f(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Va(e,t),n=a?nv(e,t):cs(e,t,!0),u=a;do{if(n===0){Ea&&!a&&xl(e,t,0,!1);break}else{if(l=e.current.alternate,u&&!lv(l)){n=cs(e,t,!1),u=!1;continue}if(n===2){if(u=t,e.errorRecoveryDisabledLanes&u)var i=0;else i=e.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){t=i;e:{var r=e;n=jn;var m=r.current.memoizedState.isDehydrated;if(m&&(Ta(r,i).flags|=256),i=cs(r,i,!1),i!==2){if(es&&!m){r.errorRecoveryDisabledLanes|=u,Jl|=u,n=4;break e}u=tt,tt=n,u!==null&&(tt===null?tt=u:tt.push.apply(tt,u))}n=i}if(u=!1,n!==2)continue}}if(n===1){Ta(e,0),xl(e,t,0,!0);break}e:{switch(a=e,u=n,u){case 0:case 1:throw Error(f(345));case 4:if((t&4194048)!==t)break;case 6:xl(a,t,dt,!gl);break e;case 2:tt=null;break;case 3:case 5:break;default:throw Error(f(329))}if((t&62914560)===t&&(n=Mu+300-nt(),10<n)){if(xl(a,t,dt,!gl),Xn(a,0,!0)!==0)break e;Pt=t,a.timeoutHandle=Jd(yd.bind(null,a,l,tt,Ru,ls,t,dt,Jl,wa,gl,u,"Throttled",-0,0),n);break e}yd(a,l,tt,Ru,ls,t,dt,Jl,wa,gl,u,null,-0,0)}}break}while(!0);Rt(e)}function yd(e,t,l,a,n,u,i,r,m,p,C,M,j,A){if(e.timeoutHandle=-1,M=t.subtreeFlags,M&8192||(M&16785408)===16785408){M={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Lt},rd(t,u,M);var Y=(u&62914560)===u?Mu-nt():(u&4194048)===u?md-nt():0;if(Y=qv(M,Y),Y!==null){Pt=u,e.cancelPendingCommit=Y(wd.bind(null,e,t,u,l,a,n,i,r,m,C,M,null,j,A)),xl(e,u,i,!p);return}}wd(e,t,u,l,a,n,i,r,m)}function lv(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],u=n.getSnapshot;n=n.value;try{if(!ct(u(),n))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function xl(e,t,l,a){t&=~ts,t&=~Jl,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var u=31-it(n),i=1<<u;a[u]=-1,n&=~i}l!==0&&wr(e,l,t)}function Uu(){return(re&6)===0?(En(0),!1):!0}function is(){if(te!==null){if(oe===0)var e=te.return;else e=te,Vt=Ll=null,jc(e),ya=null,un=0,e=te;for(;e!==null;)ko(e.alternate,e),e=e.return;te=null}}function Ta(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,jv(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Pt=0,is(),xe=e,te=l=qt(e.current,null),ae=t,oe=0,ot=null,gl=!1,Ea=Va(e,t),es=!1,wa=dt=ts=Jl=vl=we=0,tt=jn=null,ls=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var n=31-it(a),u=1<<n;t|=e[n],a&=~u}return It=t,lu(),l}function bd(e,t){F=null,z.H=hn,t===va||t===fu?(t=Df(),oe=3):t===fc?(t=Df(),oe=4):oe=t===Lc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,ot=t,te===null&&(we=1,Eu(e,xt(t,e.current)))}function xd(){var e=rt.current;return e===null?!0:(ae&4194048)===ae?Nt===null:(ae&62914560)===ae||(ae&536870912)!==0?e===Nt:!1}function pd(){var e=z.H;return z.H=hn,e===null?hn:e}function Sd(){var e=z.A;return z.A=ev,e}function Bu(){we=4,gl||(ae&4194048)!==ae&&rt.current!==null||(Ea=!0),(vl&134217727)===0&&(Jl&134217727)===0||xe===null||xl(xe,ae,dt,!1)}function cs(e,t,l){var a=re;re|=2;var n=pd(),u=Sd();(xe!==e||ae!==t)&&(Ru=null,Ta(e,t)),t=!1;var i=we;e:do try{if(oe!==0&&te!==null){var r=te,m=ot;switch(oe){case 8:is(),i=6;break e;case 3:case 2:case 9:case 6:rt.current===null&&(t=!0);var p=oe;if(oe=0,ot=null,za(e,r,m,p),l&&Ea){i=0;break e}break;default:p=oe,oe=0,ot=null,za(e,r,m,p)}}av(),i=we;break}catch(C){bd(e,C)}while(!0);return t&&e.shellSuspendCounter++,Vt=Ll=null,re=a,z.H=n,z.A=u,te===null&&(xe=null,ae=0,lu()),i}function av(){for(;te!==null;)jd(te)}function nv(e,t){var l=re;re|=2;var a=pd(),n=Sd();xe!==e||ae!==t?(Ru=null,Du=nt()+500,Ta(e,t)):Ea=Va(e,t);e:do try{if(oe!==0&&te!==null){t=te;var u=ot;t:switch(oe){case 1:oe=0,ot=null,za(e,t,u,1);break;case 2:case 9:if(_f(u)){oe=0,ot=null,Nd(t);break}t=function(){oe!==2&&oe!==9||xe!==e||(oe=7),Rt(e)},u.then(t,t);break e;case 3:oe=7;break e;case 4:oe=5;break e;case 7:_f(u)?(oe=0,ot=null,Nd(t)):(oe=0,ot=null,za(e,t,u,7));break;case 5:var i=null;switch(te.tag){case 26:i=te.memoizedState;case 5:case 27:var r=te;if(i?s0(i):r.stateNode.complete){oe=0,ot=null;var m=r.sibling;if(m!==null)te=m;else{var p=r.return;p!==null?(te=p,Hu(p)):te=null}break t}}oe=0,ot=null,za(e,t,u,5);break;case 6:oe=0,ot=null,za(e,t,u,6);break;case 8:is(),we=6;break e;default:throw Error(f(462))}}uv();break}catch(C){bd(e,C)}while(!0);return Vt=Ll=null,z.H=a,z.A=n,re=l,te!==null?0:(xe=null,ae=0,lu(),we)}function uv(){for(;te!==null&&!zh();)jd(te)}function jd(e){var t=Ko(e.alternate,e,It);e.memoizedProps=e.pendingProps,t===null?Hu(e):te=t}function Nd(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=qo(l,t,t.pendingProps,t.type,void 0,ae);break;case 11:t=qo(l,t,t.pendingProps,t.type.render,t.ref,ae);break;case 5:jc(t);default:ko(l,t),t=te=pf(t,It),t=Ko(l,t,It)}e.memoizedProps=e.pendingProps,t===null?Hu(e):te=t}function za(e,t,l,a){Vt=Ll=null,jc(t),ya=null,un=0;var n=t.return;try{if(Jg(e,n,t,l,ae)){we=1,Eu(e,xt(l,e.current)),te=null;return}}catch(u){if(n!==null)throw te=n,u;we=1,Eu(e,xt(l,e.current)),te=null;return}t.flags&32768?(ie||a===1?e=!0:Ea||(ae&536870912)!==0?e=!1:(gl=e=!0,(a===2||a===9||a===3||a===6)&&(a=rt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Ed(t,e)):Hu(t)}function Hu(e){var t=e;do{if((t.flags&32768)!==0){Ed(t,gl);return}e=t.return;var l=Wg(t.alternate,t,It);if(l!==null){te=l;return}if(t=t.sibling,t!==null){te=t;return}te=t=e}while(t!==null);we===0&&(we=5)}function Ed(e,t){do{var l=Fg(e.alternate,e);if(l!==null){l.flags&=32767,te=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){te=e;return}te=e=l}while(e!==null);we=6,te=null}function wd(e,t,l,a,n,u,i,r,m){e.cancelPendingCommit=null;do Lu();while(Ue!==0);if((re&6)!==0)throw Error(f(327));if(t!==null){if(t===e.current)throw Error(f(177));if(u=t.lanes|t.childLanes,u|=$i,Lh(e,l,u,i,r,m),e===xe&&(te=xe=null,ae=0),Aa=t,bl=e,Pt=l,as=u,ns=n,hd=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,rv(qn,function(){return Od(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=z.T,z.T=null,n=H.p,H.p=2,i=re,re|=4;try{Ig(e,t,l)}finally{re=i,H.p=n,z.T=a}}Ue=1,Ad(),Td(),zd()}}function Ad(){if(Ue===1){Ue=0;var e=bl,t=Aa,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=z.T,z.T=null;var a=H.p;H.p=2;var n=re;re|=4;try{id(t,e);var u=xs,i=of(e.containerInfo),r=u.focusedElem,m=u.selectionRange;if(i!==r&&r&&r.ownerDocument&&ff(r.ownerDocument.documentElement,r)){if(m!==null&&Xi(r)){var p=m.start,C=m.end;if(C===void 0&&(C=p),"selectionStart"in r)r.selectionStart=p,r.selectionEnd=Math.min(C,r.value.length);else{var M=r.ownerDocument||document,j=M&&M.defaultView||window;if(j.getSelection){var A=j.getSelection(),Y=r.textContent.length,K=Math.min(m.start,Y),ve=m.end===void 0?K:Math.min(m.end,Y);!A.extend&&K>ve&&(i=ve,ve=K,K=i);var b=rf(r,K),h=rf(r,ve);if(b&&h&&(A.rangeCount!==1||A.anchorNode!==b.node||A.anchorOffset!==b.offset||A.focusNode!==h.node||A.focusOffset!==h.offset)){var x=M.createRange();x.setStart(b.node,b.offset),A.removeAllRanges(),K>ve?(A.addRange(x),A.extend(h.node,h.offset)):(x.setEnd(h.node,h.offset),A.addRange(x))}}}}for(M=[],A=r;A=A.parentNode;)A.nodeType===1&&M.push({element:A,left:A.scrollLeft,top:A.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<M.length;r++){var O=M[r];O.element.scrollLeft=O.left,O.element.scrollTop=O.top}}Wu=!!bs,xs=bs=null}finally{re=n,H.p=a,z.T=l}}e.current=t,Ue=2}}function Td(){if(Ue===2){Ue=0;var e=bl,t=Aa,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=z.T,z.T=null;var a=H.p;H.p=2;var n=re;re|=4;try{td(e,t.alternate,t)}finally{re=n,H.p=a,z.T=l}}Ue=3}}function zd(){if(Ue===4||Ue===3){Ue=0,Ch();var e=bl,t=Aa,l=Pt,a=hd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ue=5:(Ue=0,Aa=bl=null,Cd(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(yl=null),wi(l),t=t.stateNode,ut&&typeof ut.onCommitFiberRoot=="function")try{ut.onCommitFiberRoot(Ga,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=z.T,n=H.p,H.p=2,z.T=null;try{for(var u=e.onRecoverableError,i=0;i<a.length;i++){var r=a[i];u(r.value,{componentStack:r.stack})}}finally{z.T=t,H.p=n}}(Pt&3)!==0&&Lu(),Rt(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===us?Nn++:(Nn=0,us=e):Nn=0,En(0)}}function Cd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,an(t)))}function Lu(){return Ad(),Td(),zd(),Od()}function Od(){if(Ue!==5)return!1;var e=bl,t=as;as=0;var l=wi(Pt),a=z.T,n=H.p;try{H.p=32>l?32:l,z.T=null,l=ns,ns=null;var u=bl,i=Pt;if(Ue=0,Aa=bl=null,Pt=0,(re&6)!==0)throw Error(f(331));var r=re;if(re|=4,od(u.current),sd(u,u.current,i,l),re=r,En(0,!1),ut&&typeof ut.onPostCommitFiberRoot=="function")try{ut.onPostCommitFiberRoot(Ga,u)}catch{}return!0}finally{H.p=n,z.T=a,Cd(e,t)}}function _d(e,t,l){t=xt(l,t),t=Hc(e.stateNode,t,2),e=ol(e,t,2),e!==null&&(Qa(e,2),Rt(e))}function de(e,t,l){if(e.tag===3)_d(e,e,l);else for(;t!==null;){if(t.tag===3){_d(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(yl===null||!yl.has(a))){e=xt(l,e),l=Mo(2),a=ol(t,l,2),a!==null&&(Do(l,a,t,e),Qa(a,2),Rt(a));break}}t=t.return}}function ss(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new tv;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(l)||(es=!0,n.add(l),e=iv.bind(null,e,t,l),t.then(e,e))}function iv(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,xe===e&&(ae&l)===l&&(we===4||we===3&&(ae&62914560)===ae&&300>nt()-Mu?(re&2)===0&&Ta(e,0):ts|=l,wa===ae&&(wa=0)),Rt(e)}function Md(e,t){t===0&&(t=Er()),e=Ul(e,t),e!==null&&(Qa(e,t),Rt(e))}function cv(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Md(e,l)}function sv(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(f(314))}a!==null&&a.delete(t),Md(e,l)}function rv(e,t){return Si(e,t)}var Yu=null,Ca=null,rs=!1,qu=!1,fs=!1,pl=0;function Rt(e){e!==Ca&&e.next===null&&(Ca===null?Yu=Ca=e:Ca=Ca.next=e),qu=!0,rs||(rs=!0,ov())}function En(e,t){if(!fs&&qu){fs=!0;do for(var l=!1,a=Yu;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var i=a.suspendedLanes,r=a.pingedLanes;u=(1<<31-it(42|e)+1)-1,u&=n&~(i&~r),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,Bd(a,u))}else u=ae,u=Xn(a,a===xe?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||Va(a,u)||(l=!0,Bd(a,u));a=a.next}while(l);fs=!1}}function fv(){Dd()}function Dd(){qu=rs=!1;var e=0;pl!==0&&Sv()&&(e=pl);for(var t=nt(),l=null,a=Yu;a!==null;){var n=a.next,u=Rd(a,t);u===0?(a.next=null,l===null?Yu=n:l.next=n,n===null&&(Ca=l)):(l=a,(e!==0||(u&3)!==0)&&(qu=!0)),a=n}Ue!==0&&Ue!==5||En(e),pl!==0&&(pl=0)}function Rd(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var i=31-it(u),r=1<<i,m=n[i];m===-1?((r&l)===0||(r&a)!==0)&&(n[i]=Hh(r,t)):m<=t&&(e.expiredLanes|=r),u&=~r}if(t=xe,l=ae,l=Xn(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(oe===2||oe===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&ji(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Va(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&ji(a),wi(l)){case 2:case 8:l=jr;break;case 32:l=qn;break;case 268435456:l=Nr;break;default:l=qn}return a=Ud.bind(null,e),l=Si(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&ji(a),e.callbackPriority=2,e.callbackNode=null,2}function Ud(e,t){if(Ue!==0&&Ue!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Lu()&&e.callbackNode!==l)return null;var a=ae;return a=Xn(e,e===xe?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(vd(e,a,t),Rd(e,nt()),e.callbackNode!=null&&e.callbackNode===l?Ud.bind(null,e):null)}function Bd(e,t){if(Lu())return null;vd(e,t,!0)}function ov(){Nv(function(){(re&6)!==0?Si(Sr,fv):Dd()})}function os(){if(pl===0){var e=ha;e===0&&(e=Gn,Gn<<=1,(Gn&261888)===0&&(Gn=256)),pl=e}return pl}function Hd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:kn(""+e)}function Ld(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function dv(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var u=Hd((n[We]||null).action),i=a.submitter;i&&(t=(t=i[We]||null)?Hd(t.formAction):i.getAttribute("formAction"),t!==null&&(u=t,i=null));var r=new In("action","action",null,a,n);e.push({event:r,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(pl!==0){var m=i?Ld(n,i):new FormData(n);_c(l,{pending:!0,data:m,method:n.method,action:u},null,m)}}else typeof u=="function"&&(r.preventDefault(),m=i?Ld(n,i):new FormData(n),_c(l,{pending:!0,data:m,method:n.method,action:u},u,m))},currentTarget:n}]})}}for(var ds=0;ds<ki.length;ds++){var ms=ki[ds],mv=ms.toLowerCase(),hv=ms[0].toUpperCase()+ms.slice(1);Tt(mv,"on"+hv)}Tt(hf,"onAnimationEnd"),Tt(gf,"onAnimationIteration"),Tt(vf,"onAnimationStart"),Tt("dblclick","onDoubleClick"),Tt("focusin","onFocus"),Tt("focusout","onBlur"),Tt(Og,"onTransitionRun"),Tt(_g,"onTransitionStart"),Tt(Mg,"onTransitionCancel"),Tt(yf,"onTransitionEnd"),ea("onMouseEnter",["mouseout","mouseover"]),ea("onMouseLeave",["mouseout","mouseover"]),ea("onPointerEnter",["pointerout","pointerover"]),ea("onPointerLeave",["pointerout","pointerover"]),_l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),_l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),_l("onBeforeInput",["compositionend","keypress","textInput","paste"]),_l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),_l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),_l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wn="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(" "),gv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(wn));function Yd(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],n=a.event;a=a.listeners;e:{var u=void 0;if(t)for(var i=a.length-1;0<=i;i--){var r=a[i],m=r.instance,p=r.currentTarget;if(r=r.listener,m!==u&&n.isPropagationStopped())break e;u=r,n.currentTarget=p;try{u(n)}catch(C){tu(C)}n.currentTarget=null,u=m}else for(i=0;i<a.length;i++){if(r=a[i],m=r.instance,p=r.currentTarget,r=r.listener,m!==u&&n.isPropagationStopped())break e;u=r,n.currentTarget=p;try{u(n)}catch(C){tu(C)}n.currentTarget=null,u=m}}}}function le(e,t){var l=t[Ai];l===void 0&&(l=t[Ai]=new Set);var a=e+"__bubble";l.has(a)||(qd(t,e,2,!1),l.add(a))}function hs(e,t,l){var a=0;t&&(a|=4),qd(l,e,a,t)}var Gu="_reactListening"+Math.random().toString(36).slice(2);function gs(e){if(!e[Gu]){e[Gu]=!0,_r.forEach(function(l){l!=="selectionchange"&&(gv.has(l)||hs(l,!1,e),hs(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Gu]||(t[Gu]=!0,hs("selectionchange",!1,t))}}function qd(e,t,l,a){switch(g0(t)){case 2:var n=Qv;break;case 8:n=Xv;break;default:n=Os}l=n.bind(null,t,l,e),n=void 0,!Ui||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(t,l,{capture:!0,passive:n}):e.addEventListener(t,l,!0):n!==void 0?e.addEventListener(t,l,{passive:n}):e.addEventListener(t,l,!1)}function vs(e,t,l,a,n){var u=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var i=a.tag;if(i===3||i===4){var r=a.stateNode.containerInfo;if(r===n)break;if(i===4)for(i=a.return;i!==null;){var m=i.tag;if((m===3||m===4)&&i.stateNode.containerInfo===n)return;i=i.return}for(;r!==null;){if(i=Fl(r),i===null)return;if(m=i.tag,m===5||m===6||m===26||m===27){a=u=i;continue e}r=r.parentNode}}a=a.return}Qr(function(){var p=u,C=Di(l),M=[];e:{var j=bf.get(e);if(j!==void 0){var A=In,Y=e;switch(e){case"keypress":if(Wn(l)===0)break e;case"keydown":case"keyup":A=sg;break;case"focusin":Y="focus",A=Yi;break;case"focusout":Y="blur",A=Yi;break;case"beforeblur":case"afterblur":A=Yi;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":A=Kr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":A=Wh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":A=og;break;case hf:case gf:case vf:A=Ph;break;case yf:A=mg;break;case"scroll":case"scrollend":A=kh;break;case"wheel":A=gg;break;case"copy":case"cut":case"paste":A=tg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":A=kr;break;case"toggle":case"beforetoggle":A=yg}var K=(t&4)!==0,ve=!K&&(e==="scroll"||e==="scrollend"),b=K?j!==null?j+"Capture":null:j;K=[];for(var h=p,x;h!==null;){var O=h;if(x=O.stateNode,O=O.tag,O!==5&&O!==26&&O!==27||x===null||b===null||(O=Ka(h,b),O!=null&&K.push(An(h,O,x))),ve)break;h=h.return}0<K.length&&(j=new A(j,Y,null,l,C),M.push({event:j,listeners:K}))}}if((t&7)===0){e:{if(j=e==="mouseover"||e==="pointerover",A=e==="mouseout"||e==="pointerout",j&&l!==Mi&&(Y=l.relatedTarget||l.fromElement)&&(Fl(Y)||Y[Wl]))break e;if((A||j)&&(j=C.window===C?C:(j=C.ownerDocument)?j.defaultView||j.parentWindow:window,A?(Y=l.relatedTarget||l.toElement,A=p,Y=Y?Fl(Y):null,Y!==null&&(ve=T(Y),K=Y.tag,Y!==ve||K!==5&&K!==27&&K!==6)&&(Y=null)):(A=null,Y=p),A!==Y)){if(K=Kr,O="onMouseLeave",b="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(K=kr,O="onPointerLeave",b="onPointerEnter",h="pointer"),ve=A==null?j:Za(A),x=Y==null?j:Za(Y),j=new K(O,h+"leave",A,l,C),j.target=ve,j.relatedTarget=x,O=null,Fl(C)===p&&(K=new K(b,h+"enter",Y,l,C),K.target=x,K.relatedTarget=ve,O=K),ve=O,A&&Y)t:{for(K=vv,b=A,h=Y,x=0,O=b;O;O=K(O))x++;O=0;for(var Z=h;Z;Z=K(Z))O++;for(;0<x-O;)b=K(b),x--;for(;0<O-x;)h=K(h),O--;for(;x--;){if(b===h||h!==null&&b===h.alternate){K=b;break t}b=K(b),h=K(h)}K=null}else K=null;A!==null&&Gd(M,j,A,K,!1),Y!==null&&ve!==null&&Gd(M,ve,Y,K,!0)}}e:{if(j=p?Za(p):window,A=j.nodeName&&j.nodeName.toLowerCase(),A==="select"||A==="input"&&j.type==="file")var ce=lf;else if(ef(j))if(af)ce=Tg;else{ce=wg;var Q=Eg}else A=j.nodeName,!A||A.toLowerCase()!=="input"||j.type!=="checkbox"&&j.type!=="radio"?p&&_i(p.elementType)&&(ce=lf):ce=Ag;if(ce&&(ce=ce(e,p))){tf(M,ce,l,C);break e}Q&&Q(e,j,p),e==="focusout"&&p&&j.type==="number"&&p.memoizedProps.value!=null&&Oi(j,"number",j.value)}switch(Q=p?Za(p):window,e){case"focusin":(ef(Q)||Q.contentEditable==="true")&&(ia=Q,Zi=p,en=null);break;case"focusout":en=Zi=ia=null;break;case"mousedown":Ki=!0;break;case"contextmenu":case"mouseup":case"dragend":Ki=!1,df(M,l,C);break;case"selectionchange":if(Cg)break;case"keydown":case"keyup":df(M,l,C)}var I;if(Gi)e:{switch(e){case"compositionstart":var ne="onCompositionStart";break e;case"compositionend":ne="onCompositionEnd";break e;case"compositionupdate":ne="onCompositionUpdate";break e}ne=void 0}else ua?Ir(e,l)&&(ne="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(ne="onCompositionStart");ne&&($r&&l.locale!=="ko"&&(ua||ne!=="onCompositionStart"?ne==="onCompositionEnd"&&ua&&(I=Xr()):(nl=C,Bi="value"in nl?nl.value:nl.textContent,ua=!0)),Q=Vu(p,ne),0<Q.length&&(ne=new Jr(ne,e,null,l,C),M.push({event:ne,listeners:Q}),I?ne.data=I:(I=Pr(l),I!==null&&(ne.data=I)))),(I=xg?pg(e,l):Sg(e,l))&&(ne=Vu(p,"onBeforeInput"),0<ne.length&&(Q=new Jr("onBeforeInput","beforeinput",null,l,C),M.push({event:Q,listeners:ne}),Q.data=I)),dv(M,e,p,l,C)}Yd(M,t)})}function An(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Vu(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=Ka(e,l),n!=null&&a.unshift(An(e,n,u)),n=Ka(e,t),n!=null&&a.push(An(e,n,u))),e.tag===3)return a;e=e.return}return[]}function vv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Gd(e,t,l,a,n){for(var u=t._reactName,i=[];l!==null&&l!==a;){var r=l,m=r.alternate,p=r.stateNode;if(r=r.tag,m!==null&&m===a)break;r!==5&&r!==26&&r!==27||p===null||(m=p,n?(p=Ka(l,u),p!=null&&i.unshift(An(l,p,m))):n||(p=Ka(l,u),p!=null&&i.push(An(l,p,m)))),l=l.return}i.length!==0&&e.push({event:t,listeners:i})}var yv=/\r\n?/g,bv=/\u0000|\uFFFD/g;function Vd(e){return(typeof e=="string"?e:""+e).replace(yv,`
9
- `).replace(bv,"")}function Qd(e,t){return t=Vd(t),Vd(e)===t}function ge(e,t,l,a,n,u){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||la(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&la(e,""+a);break;case"className":Kn(e,"class",a);break;case"tabIndex":Kn(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Kn(e,l,a);break;case"style":Gr(e,a,u);break;case"data":if(t!=="object"){Kn(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=kn(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"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 u=="function"&&(l==="formAction"?(t!=="input"&&ge(e,t,"name",n.name,n,null),ge(e,t,"formEncType",n.formEncType,n,null),ge(e,t,"formMethod",n.formMethod,n,null),ge(e,t,"formTarget",n.formTarget,n,null)):(ge(e,t,"encType",n.encType,n,null),ge(e,t,"method",n.method,n,null),ge(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=kn(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=Lt);break;case"onScroll":a!=null&&le("scroll",e);break;case"onScrollEnd":a!=null&&le("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(f(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(f(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=kn(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);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":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":le("beforetoggle",e),le("toggle",e),Zn(e,"popover",a);break;case"xlinkActuate":Ht(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Ht(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Ht(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Ht(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Ht(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Ht(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Ht(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Ht(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Ht(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Zn(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Kh.get(l)||l,Zn(e,l,a))}}function ys(e,t,l,a,n,u){switch(l){case"style":Gr(e,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(f(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(f(60));e.innerHTML=l}}break;case"children":typeof a=="string"?la(e,a):(typeof a=="number"||typeof a=="bigint")&&la(e,""+a);break;case"onScroll":a!=null&&le("scroll",e);break;case"onScrollEnd":a!=null&&le("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Lt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Mr.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),u=e[We]||null,u=u!=null?u[l]:null,typeof u=="function"&&e.removeEventListener(t,u,n),typeof a=="function")){typeof u!="function"&&u!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,n);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):Zn(e,l,a)}}}function Xe(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":le("error",e),le("load",e);var a=!1,n=!1,u;for(u in l)if(l.hasOwnProperty(u)){var i=l[u];if(i!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(f(137,t));default:ge(e,t,u,i,l,null)}}n&&ge(e,t,"srcSet",l.srcSet,l,null),a&&ge(e,t,"src",l.src,l,null);return;case"input":le("invalid",e);var r=u=i=n=null,m=null,p=null;for(a in l)if(l.hasOwnProperty(a)){var C=l[a];if(C!=null)switch(a){case"name":n=C;break;case"type":i=C;break;case"checked":m=C;break;case"defaultChecked":p=C;break;case"value":u=C;break;case"defaultValue":r=C;break;case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(f(137,t));break;default:ge(e,t,a,C,l,null)}}Hr(e,u,r,m,p,i,n,!1);return;case"select":le("invalid",e),a=i=u=null;for(n in l)if(l.hasOwnProperty(n)&&(r=l[n],r!=null))switch(n){case"value":u=r;break;case"defaultValue":i=r;break;case"multiple":a=r;default:ge(e,t,n,r,l,null)}t=u,l=i,e.multiple=!!a,t!=null?ta(e,!!a,t,!1):l!=null&&ta(e,!!a,l,!0);return;case"textarea":le("invalid",e),u=n=a=null;for(i in l)if(l.hasOwnProperty(i)&&(r=l[i],r!=null))switch(i){case"value":a=r;break;case"defaultValue":n=r;break;case"children":u=r;break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(f(91));break;default:ge(e,t,i,r,l,null)}Yr(e,a,n,u);return;case"option":for(m in l)if(l.hasOwnProperty(m)&&(a=l[m],a!=null))switch(m){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:ge(e,t,m,a,l,null)}return;case"dialog":le("beforetoggle",e),le("toggle",e),le("cancel",e),le("close",e);break;case"iframe":case"object":le("load",e);break;case"video":case"audio":for(a=0;a<wn.length;a++)le(wn[a],e);break;case"image":le("error",e),le("load",e);break;case"details":le("toggle",e);break;case"embed":case"source":case"link":le("error",e),le("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(p in l)if(l.hasOwnProperty(p)&&(a=l[p],a!=null))switch(p){case"children":case"dangerouslySetInnerHTML":throw Error(f(137,t));default:ge(e,t,p,a,l,null)}return;default:if(_i(t)){for(C in l)l.hasOwnProperty(C)&&(a=l[C],a!==void 0&&ys(e,t,C,a,l,void 0));return}}for(r in l)l.hasOwnProperty(r)&&(a=l[r],a!=null&&ge(e,t,r,a,l,null))}function xv(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,i=null,r=null,m=null,p=null,C=null;for(A in l){var M=l[A];if(l.hasOwnProperty(A)&&M!=null)switch(A){case"checked":break;case"value":break;case"defaultValue":m=M;default:a.hasOwnProperty(A)||ge(e,t,A,null,a,M)}}for(var j in a){var A=a[j];if(M=l[j],a.hasOwnProperty(j)&&(A!=null||M!=null))switch(j){case"type":u=A;break;case"name":n=A;break;case"checked":p=A;break;case"defaultChecked":C=A;break;case"value":i=A;break;case"defaultValue":r=A;break;case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(f(137,t));break;default:A!==M&&ge(e,t,j,A,a,M)}}Ci(e,i,r,m,p,C,u,n);return;case"select":A=i=r=j=null;for(u in l)if(m=l[u],l.hasOwnProperty(u)&&m!=null)switch(u){case"value":break;case"multiple":A=m;default:a.hasOwnProperty(u)||ge(e,t,u,null,a,m)}for(n in a)if(u=a[n],m=l[n],a.hasOwnProperty(n)&&(u!=null||m!=null))switch(n){case"value":j=u;break;case"defaultValue":r=u;break;case"multiple":i=u;default:u!==m&&ge(e,t,n,u,a,m)}t=r,l=i,a=A,j!=null?ta(e,!!l,j,!1):!!a!=!!l&&(t!=null?ta(e,!!l,t,!0):ta(e,!!l,l?[]:"",!1));return;case"textarea":A=j=null;for(r in l)if(n=l[r],l.hasOwnProperty(r)&&n!=null&&!a.hasOwnProperty(r))switch(r){case"value":break;case"children":break;default:ge(e,t,r,null,a,n)}for(i in a)if(n=a[i],u=l[i],a.hasOwnProperty(i)&&(n!=null||u!=null))switch(i){case"value":j=n;break;case"defaultValue":A=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(f(91));break;default:n!==u&&ge(e,t,i,n,a,u)}Lr(e,j,A);return;case"option":for(var Y in l)if(j=l[Y],l.hasOwnProperty(Y)&&j!=null&&!a.hasOwnProperty(Y))switch(Y){case"selected":e.selected=!1;break;default:ge(e,t,Y,null,a,j)}for(m in a)if(j=a[m],A=l[m],a.hasOwnProperty(m)&&j!==A&&(j!=null||A!=null))switch(m){case"selected":e.selected=j&&typeof j!="function"&&typeof j!="symbol";break;default:ge(e,t,m,j,a,A)}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 K in l)j=l[K],l.hasOwnProperty(K)&&j!=null&&!a.hasOwnProperty(K)&&ge(e,t,K,null,a,j);for(p in a)if(j=a[p],A=l[p],a.hasOwnProperty(p)&&j!==A&&(j!=null||A!=null))switch(p){case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(f(137,t));break;default:ge(e,t,p,j,a,A)}return;default:if(_i(t)){for(var ve in l)j=l[ve],l.hasOwnProperty(ve)&&j!==void 0&&!a.hasOwnProperty(ve)&&ys(e,t,ve,void 0,a,j);for(C in a)j=a[C],A=l[C],!a.hasOwnProperty(C)||j===A||j===void 0&&A===void 0||ys(e,t,C,j,a,A);return}}for(var b in l)j=l[b],l.hasOwnProperty(b)&&j!=null&&!a.hasOwnProperty(b)&&ge(e,t,b,null,a,j);for(M in a)j=a[M],A=l[M],!a.hasOwnProperty(M)||j===A||j==null&&A==null||ge(e,t,M,j,a,A)}function Xd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function pv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],u=n.transferSize,i=n.initiatorType,r=n.duration;if(u&&r&&Xd(i)){for(i=0,r=n.responseEnd,a+=1;a<l.length;a++){var m=l[a],p=m.startTime;if(p>r)break;var C=m.transferSize,M=m.initiatorType;C&&Xd(M)&&(m=m.responseEnd,i+=C*(m<r?1:(r-p)/(m-p)))}if(--a,t+=8*(u+i)/(n.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var bs=null,xs=null;function Qu(e){return e.nodeType===9?e:e.ownerDocument}function Zd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Kd(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function ps(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ss=null;function Sv(){var e=window.event;return e&&e.type==="popstate"?e===Ss?!1:(Ss=e,!0):(Ss=null,!1)}var Jd=typeof setTimeout=="function"?setTimeout:void 0,jv=typeof clearTimeout=="function"?clearTimeout:void 0,kd=typeof Promise=="function"?Promise:void 0,Nv=typeof queueMicrotask=="function"?queueMicrotask:typeof kd<"u"?function(e){return kd.resolve(null).then(e).catch(Ev)}:Jd;function Ev(e){setTimeout(function(){throw e})}function Sl(e){return e==="head"}function $d(e,t){var l=t,a=0;do{var n=l.nextSibling;if(e.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(n),Da(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Tn(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Tn(l);for(var u=l.firstChild;u;){var i=u.nextSibling,r=u.nodeName;u[Xa]||r==="SCRIPT"||r==="STYLE"||r==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=i}}else l==="body"&&Tn(e.ownerDocument.body);l=n}while(l);Da(t)}function Wd(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function js(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":js(l),Ti(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function wv(e,t,l,a){for(;e.nodeType===1;){var n=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Xa])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=Et(e.nextSibling),e===null)break}return null}function Av(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Et(e.nextSibling),e===null))return null;return e}function Fd(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Et(e.nextSibling),e===null))return null;return e}function Ns(e){return e.data==="$?"||e.data==="$~"}function Es(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Tv(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Et(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var ws=null;function Id(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return Et(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Pd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function e0(e,t,l){switch(t=Qu(l),e){case"html":if(e=t.documentElement,!e)throw Error(f(452));return e;case"head":if(e=t.head,!e)throw Error(f(453));return e;case"body":if(e=t.body,!e)throw Error(f(454));return e;default:throw Error(f(451))}}function Tn(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ti(e)}var wt=new Map,t0=new Set;function Xu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var el=H.d;H.d={f:zv,r:Cv,D:Ov,C:_v,L:Mv,m:Dv,X:Uv,S:Rv,M:Bv};function zv(){var e=el.f(),t=Uu();return e||t}function Cv(e){var t=Il(e);t!==null&&t.tag===5&&t.type==="form"?bo(t):el.r(e)}var Oa=typeof document>"u"?null:document;function l0(e,t,l){var a=Oa;if(a&&typeof t=="string"&&t){var n=yt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),t0.has(n)||(t0.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),Xe(t,"link",e),Le(t),a.head.appendChild(t)))}}function Ov(e){el.D(e),l0("dns-prefetch",e,null)}function _v(e,t){el.C(e,t),l0("preconnect",e,t)}function Mv(e,t,l){el.L(e,t,l);var a=Oa;if(a&&e&&t){var n='link[rel="preload"][as="'+yt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+yt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+yt(l.imageSizes)+'"]')):n+='[href="'+yt(e)+'"]';var u=n;switch(t){case"style":u=_a(e);break;case"script":u=Ma(e)}wt.has(u)||(e=N({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),wt.set(u,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(zn(u))||t==="script"&&a.querySelector(Cn(u))||(t=a.createElement("link"),Xe(t,"link",e),Le(t),a.head.appendChild(t)))}}function Dv(e,t){el.m(e,t);var l=Oa;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+yt(a)+'"][href="'+yt(e)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Ma(e)}if(!wt.has(u)&&(e=N({rel:"modulepreload",href:e},t),wt.set(u,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Cn(u)))return}a=l.createElement("link"),Xe(a,"link",e),Le(a),l.head.appendChild(a)}}}function Rv(e,t,l){el.S(e,t,l);var a=Oa;if(a&&e){var n=Pl(a).hoistableStyles,u=_a(e);t=t||"default";var i=n.get(u);if(!i){var r={loading:0,preload:null};if(i=a.querySelector(zn(u)))r.loading=5;else{e=N({rel:"stylesheet",href:e,"data-precedence":t},l),(l=wt.get(u))&&As(e,l);var m=i=a.createElement("link");Le(m),Xe(m,"link",e),m._p=new Promise(function(p,C){m.onload=p,m.onerror=C}),m.addEventListener("load",function(){r.loading|=1}),m.addEventListener("error",function(){r.loading|=2}),r.loading|=4,Zu(i,t,a)}i={type:"stylesheet",instance:i,count:1,state:r},n.set(u,i)}}}function Uv(e,t){el.X(e,t);var l=Oa;if(l&&e){var a=Pl(l).hoistableScripts,n=Ma(e),u=a.get(n);u||(u=l.querySelector(Cn(n)),u||(e=N({src:e,async:!0},t),(t=wt.get(n))&&Ts(e,t),u=l.createElement("script"),Le(u),Xe(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Bv(e,t){el.M(e,t);var l=Oa;if(l&&e){var a=Pl(l).hoistableScripts,n=Ma(e),u=a.get(n);u||(u=l.querySelector(Cn(n)),u||(e=N({src:e,async:!0,type:"module"},t),(t=wt.get(n))&&Ts(e,t),u=l.createElement("script"),Le(u),Xe(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function a0(e,t,l,a){var n=(n=ee.current)?Xu(n):null;if(!n)throw Error(f(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=_a(l.href),l=Pl(n).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=_a(l.href);var u=Pl(n).hoistableStyles,i=u.get(e);if(i||(n=n.ownerDocument||n,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,i),(u=n.querySelector(zn(e)))&&!u._p&&(i.instance=u,i.state.loading=5),wt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},wt.set(e,l),u||Hv(n,e,l,i.state))),t&&a===null)throw Error(f(528,""));return i}if(t&&a!==null)throw Error(f(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ma(l),l=Pl(n).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(f(444,e))}}function _a(e){return'href="'+yt(e)+'"'}function zn(e){return'link[rel="stylesheet"]['+e+"]"}function n0(e){return N({},e,{"data-precedence":e.precedence,precedence:null})}function Hv(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),Xe(t,"link",l),Le(t),e.head.appendChild(t))}function Ma(e){return'[src="'+yt(e)+'"]'}function Cn(e){return"script[async]"+e}function u0(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+yt(l.href)+'"]');if(a)return t.instance=a,Le(a),a;var n=N({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Le(a),Xe(a,"style",n),Zu(a,l.precedence,e),t.instance=a;case"stylesheet":n=_a(l.href);var u=e.querySelector(zn(n));if(u)return t.state.loading|=4,t.instance=u,Le(u),u;a=n0(l),(n=wt.get(n))&&As(a,n),u=(e.ownerDocument||e).createElement("link"),Le(u);var i=u;return i._p=new Promise(function(r,m){i.onload=r,i.onerror=m}),Xe(u,"link",a),t.state.loading|=4,Zu(u,l.precedence,e),t.instance=u;case"script":return u=Ma(l.src),(n=e.querySelector(Cn(u)))?(t.instance=n,Le(n),n):(a=l,(n=wt.get(u))&&(a=N({},l),Ts(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),Le(n),Xe(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(f(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Zu(a,l.precedence,e));return t.instance}function Zu(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,i=0;i<a.length;i++){var r=a[i];if(r.dataset.precedence===t)u=r;else if(u!==n)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function As(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ts(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ku=null;function i0(e,t,l){if(Ku===null){var a=new Map,n=Ku=new Map;n.set(l,a)}else n=Ku,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var u=l[n];if(!(u[Xa]||u[qe]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var i=u.getAttribute(t)||"";i=e+i;var r=a.get(i);r?r.push(u):a.set(i,[u])}}return a}function c0(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Lv(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function s0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Yv(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=_a(a.href),u=t.querySelector(zn(n));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ju.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=u,Le(u);return}u=t.ownerDocument||t,a=n0(a),(n=wt.get(n))&&As(a,n),u=u.createElement("link"),Le(u);var i=u;i._p=new Promise(function(r,m){i.onload=r,i.onerror=m}),Xe(u,"link",a),l.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Ju.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var zs=0;function qv(e,t){return e.stylesheets&&e.count===0&&$u(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&$u(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&zs===0&&(zs=62500*pv());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&$u(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>zs?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function Ju(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)$u(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ku=null;function $u(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ku=new Map,t.forEach(Gv,e),ku=null,Ju.call(e))}function Gv(e,t){if(!(t.state.loading&4)){var l=ku.get(e);if(l)var a=l.get(null);else{l=new Map,ku.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var i=n[u];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(l.set(i.dataset.precedence,i),a=i)}a&&l.set(null,a)}n=t.instance,i=n.getAttribute("data-precedence"),u=l.get(i)||a,u===a&&l.set(null,n),l.set(i,n),this.count++,a=Ju.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var On={$$typeof:ye,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function Vv(e,t,l,a,n,u,i,r,m){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ni(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ni(0),this.hiddenUpdates=Ni(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=m,this.incompleteTransitions=new Map}function r0(e,t,l,a,n,u,i,r,m,p,C,M){return e=new Vv(e,t,l,i,m,p,C,M,r),t=1,u===!0&&(t|=24),u=st(3,null,null,t),e.current=u,u.stateNode=e,t=cc(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:t},oc(u),e}function f0(e){return e?(e=ra,e):ra}function o0(e,t,l,a,n,u){n=f0(n),a.context===null?a.context=n:a.pendingContext=n,a=fl(t),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=ol(e,a,t),l!==null&&(lt(l,e,t),sn(l,e,t))}function d0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Cs(e,t){d0(e,t),(e=e.alternate)&&d0(e,t)}function m0(e){if(e.tag===13||e.tag===31){var t=Ul(e,67108864);t!==null&&lt(t,e,67108864),Cs(e,67108864)}}function h0(e){if(e.tag===13||e.tag===31){var t=mt();t=Ei(t);var l=Ul(e,t);l!==null&&lt(l,e,t),Cs(e,t)}}var Wu=!0;function Qv(e,t,l,a){var n=z.T;z.T=null;var u=H.p;try{H.p=2,Os(e,t,l,a)}finally{H.p=u,z.T=n}}function Xv(e,t,l,a){var n=z.T;z.T=null;var u=H.p;try{H.p=8,Os(e,t,l,a)}finally{H.p=u,z.T=n}}function Os(e,t,l,a){if(Wu){var n=_s(a);if(n===null)vs(e,t,a,Fu,l),v0(e,a);else if(Kv(n,e,t,l,a))a.stopPropagation();else if(v0(e,a),t&4&&-1<Zv.indexOf(e)){for(;n!==null;){var u=Il(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var i=Ol(u.pendingLanes);if(i!==0){var r=u;for(r.pendingLanes|=2,r.entangledLanes|=2;i;){var m=1<<31-it(i);r.entanglements[1]|=m,i&=~m}Rt(u),(re&6)===0&&(Du=nt()+500,En(0))}}break;case 31:case 13:r=Ul(u,2),r!==null&&lt(r,u,2),Uu(),Cs(u,2)}if(u=_s(a),u===null&&vs(e,t,a,Fu,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else vs(e,t,a,null,l)}}function _s(e){return e=Di(e),Ms(e)}var Fu=null;function Ms(e){if(Fu=null,e=Fl(e),e!==null){var t=T(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=E(t),e!==null)return e;e=null}else if(l===31){if(e=R(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Fu=e,null}function g0(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Oh()){case Sr:return 2;case jr:return 8;case qn:case _h:return 32;case Nr:return 268435456;default:return 32}default:return 32}}var Ds=!1,jl=null,Nl=null,El=null,_n=new Map,Mn=new Map,wl=[],Zv="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 v0(e,t){switch(e){case"focusin":case"focusout":jl=null;break;case"dragenter":case"dragleave":Nl=null;break;case"mouseover":case"mouseout":El=null;break;case"pointerover":case"pointerout":_n.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Mn.delete(t.pointerId)}}function Dn(e,t,l,a,n,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},t!==null&&(t=Il(t),t!==null&&m0(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function Kv(e,t,l,a,n){switch(t){case"focusin":return jl=Dn(jl,e,t,l,a,n),!0;case"dragenter":return Nl=Dn(Nl,e,t,l,a,n),!0;case"mouseover":return El=Dn(El,e,t,l,a,n),!0;case"pointerover":var u=n.pointerId;return _n.set(u,Dn(_n.get(u)||null,e,t,l,a,n)),!0;case"gotpointercapture":return u=n.pointerId,Mn.set(u,Dn(Mn.get(u)||null,e,t,l,a,n)),!0}return!1}function y0(e){var t=Fl(e.target);if(t!==null){var l=T(t);if(l!==null){if(t=l.tag,t===13){if(t=E(l),t!==null){e.blockedOn=t,Cr(e.priority,function(){h0(l)});return}}else if(t===31){if(t=R(l),t!==null){e.blockedOn=t,Cr(e.priority,function(){h0(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Iu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=_s(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);Mi=a,l.target.dispatchEvent(a),Mi=null}else return t=Il(l),t!==null&&m0(t),e.blockedOn=l,!1;t.shift()}return!0}function b0(e,t,l){Iu(e)&&l.delete(t)}function Jv(){Ds=!1,jl!==null&&Iu(jl)&&(jl=null),Nl!==null&&Iu(Nl)&&(Nl=null),El!==null&&Iu(El)&&(El=null),_n.forEach(b0),Mn.forEach(b0)}function Pu(e,t){e.blockedOn===t&&(e.blockedOn=null,Ds||(Ds=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,Jv)))}var ei=null;function x0(e){ei!==e&&(ei=e,s.unstable_scheduleCallback(s.unstable_NormalPriority,function(){ei===e&&(ei=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],n=e[t+2];if(typeof a!="function"){if(Ms(a||l)===null)continue;break}var u=Il(l);u!==null&&(e.splice(t,3),t-=3,_c(u,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Da(e){function t(m){return Pu(m,e)}jl!==null&&Pu(jl,e),Nl!==null&&Pu(Nl,e),El!==null&&Pu(El,e),_n.forEach(t),Mn.forEach(t);for(var l=0;l<wl.length;l++){var a=wl[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<wl.length&&(l=wl[0],l.blockedOn===null);)y0(l),l.blockedOn===null&&wl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],u=l[a+1],i=n[We]||null;if(typeof u=="function")i||x0(l);else if(i){var r=null;if(u&&u.hasAttribute("formAction")){if(n=u,i=u[We]||null)r=i.formAction;else if(Ms(n)!==null)continue}else r=i.action;typeof r=="function"?l[a+1]=r:(l.splice(a,3),a-=3),x0(l)}}}function p0(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(i){return n=i})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function Rs(e){this._internalRoot=e}ti.prototype.render=Rs.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(f(409));var l=t.current,a=mt();o0(l,a,e,t,null,null)},ti.prototype.unmount=Rs.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;o0(e.current,2,null,e,null,null),Uu(),t[Wl]=null}};function ti(e){this._internalRoot=e}ti.prototype.unstable_scheduleHydration=function(e){if(e){var t=zr();e={blockedOn:null,target:e,priority:t};for(var l=0;l<wl.length&&t!==0&&t<wl[l].priority;l++);wl.splice(l,0,e),l===0&&y0(e)}};var S0=o.version;if(S0!=="19.2.0")throw Error(f(527,S0,"19.2.0"));H.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(f(188)):(e=Object.keys(e).join(","),Error(f(268,e)));return e=y(t),e=e!==null?U(e):null,e=e===null?null:e.stateNode,e};var kv={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var li=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!li.isDisabled&&li.supportsFiber)try{Ga=li.inject(kv),ut=li}catch{}}return Ua.createRoot=function(e,t){if(!w(e))throw Error(f(299));var l=!1,a="",n=zo,u=Co,i=Oo;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=r0(e,1,!1,null,null,l,a,null,n,u,i,p0),e[Wl]=t.current,gs(e),new Rs(t)},Ua.hydrateRoot=function(e,t,l){if(!w(e))throw Error(f(299));var a=!1,n="",u=zo,i=Co,r=Oo,m=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(i=l.onCaughtError),l.onRecoverableError!==void 0&&(r=l.onRecoverableError),l.formState!==void 0&&(m=l.formState)),t=r0(e,1,!0,t,l??null,a,n,m,u,i,r,p0),t.context=f0(null),l=t.current,a=mt(),a=Ei(a),n=fl(a),n.callback=null,ol(l,n,a),l=a,t.current.lanes=l,Qa(t,l),Rt(t),e[Wl]=t.current,gs(e),new ti(t)},Ua.version="19.2.0",Ua}var Zs;function M0(){if(Zs)return ui.exports;Zs=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(o){console.error(o)}}return s(),ui.exports=_0(),ui.exports}var D0=M0();const R0=Us(D0);function U0(s,o){if(s instanceof RegExp)return{keys:!1,pattern:s};var d,f,w,T,E=[],R="",S=s.split("/");for(S[0]||S.shift();w=S.shift();)d=w[0],d==="*"?(E.push(d),R+=w[1]==="?"?"(?:/(.*))?":"/(.*)"):d===":"?(f=w.indexOf("?",1),T=w.indexOf(".",1),E.push(w.substring(1,~f?f:~T?T:w.length)),R+=~f&&!~T?"(?:/([^/]+?))?":"/([^/]+?)",~T&&(R+=(~f?"?":"")+"\\"+w.substring(T))):R+="/"+w;return{keys:E,pattern:new RegExp("^"+R+(o?"(?=$|/)":"/?$"),"i")}}var ri={exports:{}},fi={};var Ks;function B0(){if(Ks)return fi;Ks=1;var s=Rn();function o(N,_){return N===_&&(N!==0||1/N===1/_)||N!==N&&_!==_}var d=typeof Object.is=="function"?Object.is:o,f=s.useState,w=s.useEffect,T=s.useLayoutEffect,E=s.useDebugValue;function R(N,_){var X=_(),B=f({inst:{value:X,getSnapshot:_}}),V=B[0].inst,q=B[1];return T(function(){V.value=X,V.getSnapshot=_,S(V)&&q({inst:V})},[N,X,_]),w(function(){return S(V)&&q({inst:V}),N(function(){S(V)&&q({inst:V})})},[N]),E(X),X}function S(N){var _=N.getSnapshot;N=N.value;try{var X=_();return!d(N,X)}catch{return!0}}function y(N,_){return _()}var U=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?y:R;return fi.useSyncExternalStore=s.useSyncExternalStore!==void 0?s.useSyncExternalStore:U,fi}var Js;function H0(){return Js||(Js=1,ri.exports=B0()),ri.exports}var L0=H0();const Y0=A0.useInsertionEffect,q0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?g.useLayoutEffect:g.useEffect,G0=Y0||q0,ks=s=>{const o=g.useRef([s,(...d)=>o[0](...d)]).current;return G0(()=>{o[0]=s}),o[1]},V0="popstate",oi="pushState",di="replaceState",$s=[V0,oi,di,"hashchange"],Q0=s=>{for(const o of $s)addEventListener(o,s);return()=>{for(const o of $s)removeEventListener(o,s)}},Ws=(s,o)=>L0.useSyncExternalStore(Q0,s,o),X0=()=>location.search,Z0=({ssrSearch:s=""}={})=>Ws(X0,()=>s),Fs=()=>location.pathname,K0=({ssrPath:s}={})=>Ws(Fs,s?()=>s:Fs),J0=(s,{replace:o=!1,state:d=null}={})=>history[o?di:oi](d,"",s),k0=(s={})=>[K0(s),J0],Is=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[Is]>"u"){for(const s of[oi,di]){const o=history[s];history[s]=function(){const d=o.apply(this,arguments),f=new Event(s);return f.arguments=arguments,dispatchEvent(f),d}}Object.defineProperty(window,Is,{value:!0})}const $0=(s,o)=>o.toLowerCase().indexOf(s.toLowerCase())?"~"+o:o.slice(s.length)||"/",Ps=(s="")=>s==="/"?"":s,W0=(s,o)=>s[0]==="~"?s.slice(1):Ps(o)+s,F0=(s="",o)=>$0(er(Ps(s)),er(o)),er=s=>{try{return decodeURI(s)}catch{return s}},tr={hook:k0,searchHook:Z0,parser:U0,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:s=>s},lr=g.createContext(tr),Ba=()=>g.useContext(lr),ar={},nr=g.createContext(ar),I0=()=>g.useContext(nr),Un=s=>{const[o,d]=s.hook(s);return[F0(s.base,o),ks((f,w)=>d(W0(f,s.base),w))]},P0=()=>Un(Ba()),ur=(s,o,d,f)=>{const{pattern:w,keys:T}=o instanceof RegExp?{keys:!1,pattern:o}:s(o||"*",f),E=w.exec(d)||[],[R,...S]=E;return R!==void 0?[!0,(()=>{const y=T!==!1?Object.fromEntries(T.map((N,_)=>[N,S[_]])):E.groups;let U={...S};return y&&Object.assign(U,y),U})(),...f?[R]:[]]:[!1,null]},em=({children:s,...o})=>{const d=Ba(),f=o.hook?tr:d;let w=f;const[T,E]=o.ssrPath?.split("?")??[];E&&(o.ssrSearch=E,o.ssrPath=T),o.hrefs=o.hrefs??o.hook?.hrefs;let R=g.useRef({}),S=R.current,y=S;for(let U in f){const N=U==="base"?f[U]+(o[U]||""):o[U]||f[U];S===y&&N!==y[U]&&(R.current=y={...y}),y[U]=N,(N!==f[U]||N!==w[U])&&(w=y)}return g.createElement(lr.Provider,{value:w,children:s})},ir=({children:s,component:o},d)=>o?g.createElement(o,{params:d}):typeof s=="function"?s(d):s,tm=s=>{let o=g.useRef(ar);const d=o.current;return o.current=Object.keys(s).length!==Object.keys(d).length||Object.entries(s).some(([f,w])=>w!==d[f])?s:d},Bn=({path:s,nest:o,match:d,...f})=>{const w=Ba(),[T]=Un(w),[E,R,S]=d??ur(w.parser,s,T,o),y=tm({...I0(),...R});if(!E)return null;const U=S?g.createElement(em,{base:S},ir(f,y)):ir(f,y);return g.createElement(nr.Provider,{value:y,children:U})};g.forwardRef((s,o)=>{const d=Ba(),[f,w]=Un(d),{to:T="",href:E=T,onClick:R,asChild:S,children:y,className:U,replace:N,state:_,...X}=s,B=ks(q=>{q.ctrlKey||q.metaKey||q.altKey||q.shiftKey||q.button!==0||(R?.(q),q.defaultPrevented||(q.preventDefault(),w(E,s)))}),V=d.hrefs(E[0]==="~"?E.slice(1):d.base+E,d);return S&&g.isValidElement(y)?g.cloneElement(y,{onClick:B,href:V}):g.createElement("a",{...X,onClick:B,href:V,className:U?.call?U(f===E):U,children:y,ref:o})});const cr=s=>Array.isArray(s)?s.flatMap(o=>cr(o&&o.type===g.Fragment?o.props.children:o)):[s],lm=({children:s,location:o})=>{const d=Ba(),[f]=Un(d);for(const w of cr(s)){let T=0;if(g.isValidElement(w)&&(T=ur(d.parser,w.props.path,o||f,w.props.nest))[0])return g.cloneElement(w,{match:T})}return null};function kl(){return typeof window<"u"&&window.VIZZLY_STATIC_MODE===!0}async function am(){if(kl()&&window.VIZZLY_REPORTER_DATA)return window.VIZZLY_REPORTER_DATA;let s=await fetch("/api/report-data");if(!s.ok)throw new Error("Failed to fetch report data");return await s.json()}async function nm(s){if(kl())throw new Error("Cannot accept baselines in static report mode. Use the live dev server.");let o=await fetch("/api/baseline/accept",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:s})});if(!o.ok)throw new Error("Failed to accept baseline");return o.json()}async function sr(){if(kl())throw new Error("Cannot accept baselines in static report mode. Use the live dev server.");let s=await fetch("/api/baseline/accept-all",{method:"POST",headers:{"Content-Type":"application/json"}});if(!s.ok)throw new Error("Failed to accept all baselines");return s.json()}async function um(){if(kl())throw new Error("Cannot reset baselines in static report mode. Use the live dev server.");let s=await fetch("/api/baseline/reset",{method:"POST",headers:{"Content-Type":"application/json"}});if(!s.ok)throw new Error("Failed to reset baselines");return s.json()}function im(s){let[o,d]=g.useState(s),[f,w]=g.useState(!s),[T,E]=g.useState(null),R=g.useRef(null),S=g.useCallback(async(y=!1)=>{if(!kl())try{y||w(!0);let U=await am();JSON.stringify(U)!==JSON.stringify(o)&&d(U),E(null)}catch(U){E(U.message)}finally{y||w(!1)}},[o]);return g.useEffect(()=>{s||S()},[s,S]),g.useEffect(()=>{if(!(!o||kl()))return R.current=setInterval(()=>{S(!0)},2e3),()=>{R.current&&clearInterval(R.current)}},[o,S]),{reportData:o,setReportData:d,loading:f,error:T,refetch:S}}function mi({loading:s,onNavigate:o,currentView:d}){return c.jsx("nav",{className:"bg-black/20 backdrop-blur-sm border-b border-gray-700",children:c.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:c.jsxs("div",{className:"flex items-center justify-between h-16",children:[c.jsxs("div",{className:"flex items-center space-x-6",children:[c.jsx("button",{onClick:()=>o&&o("comparisons"),className:"text-2xl font-bold text-amber-500 hover:text-amber-400 transition-colors",children:"Vizzly TDD"}),o&&c.jsxs("div",{className:"flex items-center space-x-1",children:[c.jsx("button",{onClick:()=>o("comparisons"),className:`px-3 py-1.5 rounded-md text-sm font-medium transition-colors ${d==="comparisons"?"bg-amber-500/20 text-amber-400":"text-gray-400 hover:text-white hover:bg-slate-700/50"}`,children:"Comparisons"}),c.jsx("button",{onClick:()=>o("stats"),className:`px-3 py-1.5 rounded-md text-sm font-medium transition-colors ${d==="stats"?"bg-amber-500/20 text-amber-400":"text-gray-400 hover:text-white hover:bg-slate-700/50"}`,children:"Stats"}),c.jsx("button",{onClick:()=>o("projects"),className:`px-3 py-1.5 rounded-md text-sm font-medium transition-colors ${d==="projects"?"bg-amber-500/20 text-amber-400":"text-gray-400 hover:text-white hover:bg-slate-700/50"}`,children:"Projects"}),c.jsx("button",{onClick:()=>o("settings"),className:`px-3 py-1.5 rounded-md text-sm font-medium transition-colors ${d==="settings"?"bg-amber-500/20 text-amber-400":"text-gray-400 hover:text-white hover:bg-slate-700/50"}`,children:"Settings"})]})]}),c.jsx("div",{className:"flex items-center space-x-4",children:s&&c.jsxs("div",{className:"flex items-center space-x-2 text-amber-400",children:[c.jsx("div",{className:"w-4 h-4 border-2 border-amber-400/30 border-t-amber-400 rounded-full animate-spin"}),c.jsx("span",{className:"text-sm",children:"Refreshing..."})]})})]})})})}function cm({title:s,titleId:o,...d},f){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:f,"aria-labelledby":o},d),s?g.createElement("title",{id:o},s):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 9V5.25A2.25 2.25 0 0 0 13.5 3h-6a2.25 2.25 0 0 0-2.25 2.25v13.5A2.25 2.25 0 0 0 7.5 21h6a2.25 2.25 0 0 0 2.25-2.25V15M12 9l-3 3m0 0 3 3m-3-3h12.75"}))}const sm=g.forwardRef(cm);function rm({title:s,titleId:o,...d},f){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:f,"aria-labelledby":o},d),s?g.createElement("title",{id:o},s):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"}))}const hi=g.forwardRef(rm);function fm({title:s,titleId:o,...d},f){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:f,"aria-labelledby":o},d),s?g.createElement("title",{id:o},s):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 9V5.25A2.25 2.25 0 0 0 13.5 3h-6a2.25 2.25 0 0 0-2.25 2.25v13.5A2.25 2.25 0 0 0 7.5 21h6a2.25 2.25 0 0 0 2.25-2.25V15m3 0 3-3m0 0-3-3m3 3H9"}))}const om=g.forwardRef(fm);function dm({title:s,titleId:o,...d},f){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:f,"aria-labelledby":o},d),s?g.createElement("title",{id:o},s):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.827 6.175A2.31 2.31 0 0 1 5.186 7.23c-.38.054-.757.112-1.134.175C2.999 7.58 2.25 8.507 2.25 9.574V18a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9.574c0-1.067-.75-1.994-1.802-2.169a47.865 47.865 0 0 0-1.134-.175 2.31 2.31 0 0 1-1.64-1.055l-.822-1.316a2.192 2.192 0 0 0-1.736-1.039 48.774 48.774 0 0 0-5.232 0 2.192 2.192 0 0 0-1.736 1.039l-.821 1.316Z"}),g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 12.75a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0ZM18.75 10.5h.008v.008h-.008V10.5Z"}))}const rr=g.forwardRef(dm);function mm({title:s,titleId:o,...d},f){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:f,"aria-labelledby":o},d),s?g.createElement("title",{id:o},s):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 13.125C3 12.504 3.504 12 4.125 12h2.25c.621 0 1.125.504 1.125 1.125v6.75C7.5 20.496 6.996 21 6.375 21h-2.25A1.125 1.125 0 0 1 3 19.875v-6.75ZM9.75 8.625c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125v11.25c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V8.625ZM16.5 4.125c0-.621.504-1.125 1.125-1.125h2.25C20.496 3 21 3.504 21 4.125v15.75c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V4.125Z"}))}const hm=g.forwardRef(mm);function gm({title:s,titleId:o,...d},f){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:f,"aria-labelledby":o},d),s?g.createElement("title",{id:o},s):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const Tl=g.forwardRef(gm);function vm({title:s,titleId:o,...d},f){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:f,"aria-labelledby":o},d),s?g.createElement("title",{id:o},s):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"}))}const fr=g.forwardRef(vm);function ym({title:s,titleId:o,...d},f){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:f,"aria-labelledby":o},d),s?g.createElement("title",{id:o},s):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"}))}const bm=g.forwardRef(ym);function xm({title:s,titleId:o,...d},f){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:f,"aria-labelledby":o},d),s?g.createElement("title",{id:o},s):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 15.75 7.5-7.5 7.5 7.5"}))}const pm=g.forwardRef(xm);function Sm({title:s,titleId:o,...d},f){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:f,"aria-labelledby":o},d),s?g.createElement("title",{id:o},s):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const or=g.forwardRef(Sm);function jm({title:s,titleId:o,...d},f){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:f,"aria-labelledby":o},d),s?g.createElement("title",{id:o},s):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 17.25v1.007a3 3 0 0 1-.879 2.122L7.5 21h9l-.621-.621A3 3 0 0 1 15 18.257V17.25m6-12V15a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 15V5.25m18 0A2.25 2.25 0 0 0 18.75 3H5.25A2.25 2.25 0 0 0 3 5.25m18 0V12a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 12V5.25"}))}const dr=g.forwardRef(jm);function Nm({title:s,titleId:o,...d},f){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:f,"aria-labelledby":o},d),s?g.createElement("title",{id:o},s):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 1.5H8.25A2.25 2.25 0 0 0 6 3.75v16.5a2.25 2.25 0 0 0 2.25 2.25h7.5A2.25 2.25 0 0 0 18 20.25V3.75a2.25 2.25 0 0 0-2.25-2.25H13.5m-3 0V3h3V1.5m-3 0h3m-3 18.75h3"}))}const Em=g.forwardRef(Nm);function wm({title:s,titleId:o,...d},f){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:f,"aria-labelledby":o},d),s?g.createElement("title",{id:o},s):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 19.5h3m-6.75 2.25h10.5a2.25 2.25 0 0 0 2.25-2.25v-15a2.25 2.25 0 0 0-2.25-2.25H6.75A2.25 2.25 0 0 0 4.5 4.5v15a2.25 2.25 0 0 0 2.25 2.25Z"}))}const Am=g.forwardRef(wm);function Tm({title:s,titleId:o,...d},f){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:f,"aria-labelledby":o},d),s?g.createElement("title",{id:o},s):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"}))}const zm=g.forwardRef(Tm);function Cm({title:s,titleId:o,...d},f){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:f,"aria-labelledby":o},d),s?g.createElement("title",{id:o},s):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"}))}const Ha=g.forwardRef(Cm);function Om({title:s,titleId:o,...d},f){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:f,"aria-labelledby":o},d),s?g.createElement("title",{id:o},s):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.75V12A2.25 2.25 0 0 1 4.5 9.75h15A2.25 2.25 0 0 1 21.75 12v.75m-8.69-6.44-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44Z"}))}const _m=g.forwardRef(Om);function Mm({title:s,titleId:o,...d},f){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:f,"aria-labelledby":o},d),s?g.createElement("title",{id:o},s):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}const mr=g.forwardRef(Mm);function Dm({title:s,titleId:o,...d},f){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:f,"aria-labelledby":o},d),s?g.createElement("title",{id:o},s):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"}))}const Rm=g.forwardRef(Dm);function Um({title:s,titleId:o,...d},f){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:f,"aria-labelledby":o},d),s?g.createElement("title",{id:o},s):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"}))}const Bm=g.forwardRef(Um);function Hm({title:s,titleId:o,...d},f){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:f,"aria-labelledby":o},d),s?g.createElement("title",{id:o},s):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const hr=g.forwardRef(Hm);function Lm({title:s,titleId:o,...d},f){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:f,"aria-labelledby":o},d),s?g.createElement("title",{id:o},s):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const La=g.forwardRef(Lm);function Ym({title:s,titleId:o,...d},f){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:f,"aria-labelledby":o},d),s?g.createElement("title",{id:o},s):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))}const gr=g.forwardRef(Ym),Ut={OVERLAY:"overlay",TOGGLE:"toggle",ONION:"onion",SIDE_BY_SIDE:"side-by-side"},Ot={ALL:"all",FAILED:"failed",PASSED:"passed",NEW:"new"},Ya={PRIORITY:"priority",NAME:"name",TIME:"time"},at={PASSED:"passed",FAILED:"failed",NEW:"new",BASELINE_CREATED:"baseline-created",ERROR:"error"},Hn={ACCEPTING:"accepting",ACCEPTED:"accepted",REJECTED:"rejected"},qm={[at.NEW]:{type:"success",label:"New Baseline",description:"First screenshot - baseline created",icon:Tl,colorClass:"green"},[at.BASELINE_CREATED]:{type:"success",label:"Baseline Created",description:"This is the first screenshot for this test",icon:Tl,colorClass:"green"},[at.PASSED]:{type:"success",label:"Passed",description:"Screenshot matches the baseline",icon:Tl,colorClass:"green"},[at.FAILED]:{type:"error",label:"Visual Differences Detected",icon:La,colorClass:"red"},[at.ERROR]:{type:"warning",label:"Comparison Error",description:"An error occurred during comparison",icon:Ha,colorClass:"yellow"}};function Gm(s){let o=qm[s.status]||{type:"warning",label:"Unknown Status",description:"Unable to determine comparison status",icon:Ha,colorClass:"yellow"};if(s.status===at.FAILED){const d=s.diffPercentage?.toFixed(2)||"0.00";o={...o,description:`${d}% difference from baseline`}}return o}function Vm(s){return!s||s.total===0?0:Math.round(s.passed/s.total*100)}function Qm(s,o){return[...s].sort((d,f)=>{if(o==="priority"){const w={[at.FAILED]:3,[at.NEW]:2,[at.PASSED]:1},T=w[d.status]||0,E=w[f.status]||0;return T!==E?E-T:(f.diffPercentage||0)-(d.diffPercentage||0)}return o==="name"?(d.name||"").localeCompare(f.name||""):o==="time"?(f.timestamp||0)-(d.timestamp||0):0})}function Xm(s,o){return o==="failed"?s.filter(d=>d.status===at.FAILED):o==="passed"?s.filter(d=>d.status===at.PASSED):o==="new"?s.filter(d=>d.status===at.NEW||d.status===at.BASELINE_CREATED):s}function Zm({summary:s,baseline:o}){if(!s)return null;let d=Vm(s);return c.jsxs("div",{className:"bg-white/5 backdrop-blur-sm border border-gray-700 rounded-xl p-8 mb-8",children:[c.jsxs("h1",{className:"text-3xl font-bold text-white mb-8 flex items-center",children:[c.jsx("div",{className:"w-12 h-12 bg-amber-500/20 rounded-xl flex items-center justify-center mr-4",children:c.jsx(hm,{className:"w-6 h-6 text-amber-400"})}),"Visual Comparison Report"]}),c.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-6",children:[c.jsxs("div",{className:"text-center",children:[c.jsx("div",{className:"text-3xl font-bold text-white mb-2",children:s.total}),c.jsx("div",{className:"text-sm text-gray-400 uppercase tracking-wider",children:"Total Screenshots"})]}),c.jsxs("div",{className:"text-center",children:[c.jsx("div",{className:"text-3xl font-bold text-green-400 mb-2",children:s.passed}),c.jsx("div",{className:"text-sm text-gray-400 uppercase tracking-wider",children:"Passed"})]}),c.jsxs("div",{className:"text-center",children:[c.jsx("div",{className:"text-3xl font-bold text-amber-400 mb-2",children:s.failed}),c.jsx("div",{className:"text-sm text-gray-400 uppercase tracking-wider",children:"Failed"})]}),c.jsxs("div",{className:"text-center",children:[c.jsxs("div",{className:"text-3xl font-bold text-gray-300 mb-2",children:[d,"%"]}),c.jsx("div",{className:"text-sm text-gray-400 uppercase tracking-wider",children:"Pass Rate"})]})]}),o&&c.jsx("div",{className:"mt-6 pt-6 border-t border-gray-700",children:c.jsxs("div",{className:"text-sm text-gray-400",children:[c.jsx("span",{className:"font-medium",children:"Baseline:"})," ",o]})})]})}let vr=g.createContext(null);function Km({children:s}){let[o,d]=g.useState([]),f=g.useCallback((E,R="success",S={})=>{let y=Date.now();d(N=>[...N,{id:y,message:E,type:R,...S}]);let U=S.duration!==void 0?S.duration:S.actions?null:5e3;return U&&setTimeout(()=>{d(N=>N.filter(_=>_.id!==y))},U),y},[]),w=g.useCallback(E=>{d(R=>R.filter(S=>S.id!==E))},[]),T=g.useCallback((E,R)=>new Promise(S=>{let y=Date.now();d(U=>[...U,{id:y,message:E,title:R,type:"confirm",actions:[{label:"Cancel",variant:"secondary",onClick:()=>{d(N=>N.filter(_=>_.id!==y)),S(!1)}},{label:"OK",variant:"primary",onClick:()=>{d(N=>N.filter(_=>_.id!==y)),S(!0)}}]}])}),[]);return c.jsxs(vr.Provider,{value:{addToast:f,removeToast:w,confirm:T},children:[s,c.jsx(Jm,{toasts:o,onRemove:w})]})}function zl(){let s=g.useContext(vr);if(!s)throw new Error("useToast must be used within ToastProvider");return s}function Jm({toasts:s,onRemove:o}){return s.length===0?null:c.jsx("div",{className:"fixed bottom-4 right-4 z-50 space-y-2 max-w-sm w-full pointer-events-none",children:s.map(d=>c.jsx(km,{toast:d,onRemove:o},d.id))})}function km({toast:s,onRemove:o}){let d=s.type==="success"?Tl:s.type==="confirm"?Ha:La,f=s.type==="success"?"bg-green-500/10 border-green-500/30":s.type==="confirm"?"bg-slate-800/90 border-slate-600":"bg-red-500/10 border-red-500/30",w=s.type==="success"?"text-green-400":s.type==="confirm"?"text-amber-400":"text-red-400";return c.jsx("div",{className:`${f} border rounded-lg p-4 shadow-lg backdrop-blur-sm pointer-events-auto animate-slide-up`,children:c.jsxs("div",{className:"flex items-start gap-3",children:[c.jsx(d,{className:`w-5 h-5 ${w} flex-shrink-0 mt-0.5`}),c.jsxs("div",{className:"flex-1",children:[s.title&&c.jsx("p",{className:"text-white font-medium text-sm mb-1",children:s.title}),c.jsx("p",{className:"text-gray-300 text-sm",children:s.message}),s.actions&&s.actions.length>0&&c.jsx("div",{className:"flex gap-2 mt-3",children:s.actions.map((T,E)=>c.jsx("button",{onClick:T.onClick,className:T.variant==="primary"?"px-4 py-1.5 bg-cyan-500 hover:bg-cyan-600 text-white text-sm font-medium rounded transition-colors":"px-4 py-1.5 bg-slate-700 hover:bg-slate-600 text-white text-sm font-medium rounded transition-colors",children:T.label},E))})]}),!s.actions&&c.jsx("button",{onClick:()=>o(s.id),className:"text-gray-400 hover:text-white transition-colors flex-shrink-0",children:c.jsx(gr,{className:"w-5 h-5"})})]})})}function $m({reportData:s,setReportData:o,onRefresh:d,loading:f}){let{summary:w,comparisons:T,baseline:E}=s,[R,S]=g.useState(!1),[y,U]=g.useState(!1),{addToast:N,confirm:_}=zl(),X=T?.some($=>$.status==="failed"||$.status==="new"),B=T?.filter($=>$.status==="new").length||0,V=g.useCallback(async()=>{if(await _("This will update all failed and new screenshots.","Accept all changes as new baselines?")){S(!0);try{await sr(),o(ue=>({...ue,comparisons:ue.comparisons.map(ye=>ye.status==="failed"||ye.status==="new"?{...ye,status:"passed",diffPercentage:0,diff:null}:ye)})),d?.()}catch(ue){console.error("Failed to accept all baselines:",ue),N("Failed to accept all baselines. Please try again.","error")}finally{S(!1)}}},[o,d,N,_]),q=g.useCallback(async()=>{if(await _("This will delete all baseline images and clear comparison history.","Reset all baselines?")){U(!0);try{await um(),o({timestamp:Date.now(),comparisons:[],summary:{total:0,passed:0,failed:0,errors:0}}),d?.()}catch(ue){console.error("Failed to reset baselines:",ue),N("Failed to reset baselines. Please try again.","error")}finally{U(!1)}}},[o,d,N,_]);return c.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8",children:[c.jsxs("div",{className:"mb-6",children:[c.jsx("h1",{className:"text-3xl font-bold text-white mb-2",children:"Statistics Overview"}),c.jsx("p",{className:"text-gray-400",children:"Visual regression testing statistics"})]}),c.jsx(Zm,{summary:w,baseline:E?.buildName}),E&&c.jsxs("div",{className:"mb-6 bg-slate-800/50 rounded-lg border border-slate-700 p-4",children:[c.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[c.jsxs("div",{children:[c.jsx("div",{className:"text-sm text-gray-400 mb-1",children:"Current Baseline"}),c.jsx("div",{className:"text-white font-medium",children:E.buildName||"default"})]}),c.jsxs("div",{children:[c.jsx("div",{className:"text-sm text-gray-400 mb-1",children:"Created"}),c.jsx("div",{className:"text-white font-medium",children:E.createdAt?new Date(E.createdAt).toLocaleString():"Unknown"})]})]}),B>0&&c.jsx("div",{className:"mt-3 pt-3 border-t border-slate-600",children:c.jsxs("div",{className:"text-sm text-amber-400",children:[B," new screenshot",B!==1?"s":""," without baseline"]})})]}),c.jsxs("div",{className:"mt-8 bg-slate-800/50 rounded-lg border border-slate-700 p-6",children:[c.jsx("h2",{className:"text-xl font-semibold text-white mb-4",children:"Baseline Management"}),c.jsx("p",{className:"text-gray-400 mb-6",children:"Manage your visual regression baselines. Accept changes to update baselines or reset to restore previous state."}),c.jsxs("div",{className:"flex gap-4",children:[c.jsxs("button",{onClick:V,disabled:!X||R||f,className:"inline-flex items-center gap-2 bg-green-600 hover:bg-green-700 disabled:bg-gray-600 text-white text-sm font-medium px-6 py-3 rounded-lg transition-colors disabled:cursor-not-allowed disabled:opacity-50",children:[c.jsx(fr,{className:"w-5 h-5"}),c.jsx("span",{children:R?"Accepting...":X?"Accept All Changes":"No Changes to Accept"})]}),c.jsxs("button",{onClick:q,disabled:y||f,className:"inline-flex items-center gap-2 bg-slate-700 hover:bg-slate-600 disabled:bg-gray-600 text-white text-sm font-medium px-6 py-3 rounded-lg transition-colors disabled:cursor-not-allowed disabled:opacity-50",children:[c.jsx(hi,{className:"w-5 h-5"}),c.jsx("span",{children:y?"Resetting...":"Reset Baselines"})]}),c.jsxs("button",{onClick:d,disabled:f,className:"ml-auto inline-flex items-center gap-2 bg-slate-700 hover:bg-slate-600 text-white text-sm font-medium px-6 py-3 rounded-lg transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[c.jsxs("svg",{className:`w-5 h-5 ${f?"animate-spin":""}`,fill:"none",viewBox:"0 0 24 24",children:[c.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),c.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),c.jsx("span",{children:"Refresh"})]})]})]})]})}let Wm=()=>{let s=new URLSearchParams(window.location.search);return{filter:s.get("filter")||Ot.ALL,sortBy:s.get("sort")||Ya.PRIORITY,searchQuery:s.get("search")||"",selectedBrowser:s.get("browser")||"all",selectedViewport:s.get("viewport")||"all"}};function Fm(s=[]){let o=Wm(),[d,f]=g.useState(o.filter),[w,T]=g.useState(o.sortBy),[E,R]=g.useState(o.searchQuery),[S,y]=g.useState(o.selectedBrowser),[U,N]=g.useState(o.selectedViewport);g.useEffect(()=>{let B=new URLSearchParams;d!==Ot.ALL&&B.set("filter",d),w!==Ya.PRIORITY&&B.set("sort",w),E&&B.set("search",E),S!=="all"&&B.set("browser",S),U!=="all"&&B.set("viewport",U);let V=B.toString()?`?${B.toString()}`:window.location.pathname;window.history.replaceState({},"",V)},[d,w,E,S,U]);let _=g.useMemo(()=>{let B=new Set,V=new Set;return s.forEach(q=>{if(q.properties?.browser&&B.add(q.properties.browser),q.properties?.viewport_width&&q.properties?.viewport_height){let $=`${q.properties.viewport_width}x${q.properties.viewport_height}`;V.add($)}else if(q.properties?.viewport){let $=`${q.properties.viewport.width}x${q.properties.viewport.height}`;V.add($)}}),{browsers:Array.from(B).sort(),viewports:Array.from(V).sort()}},[s]);return{filteredComparisons:g.useMemo(()=>{let B=Xm(s,d);if(E.trim()){let V=E.toLowerCase();B=B.filter(q=>q.name.toLowerCase().includes(V)||q.originalName?.toLowerCase().includes(V))}return S!=="all"&&(B=B.filter(V=>V.properties?.browser===S)),U!=="all"&&(B=B.filter(V=>{let q=null;return V.properties?.viewport_width&&V.properties?.viewport_height?q=`${V.properties.viewport_width}x${V.properties.viewport_height}`:V.properties?.viewport&&(q=`${V.properties.viewport.width}x${V.properties.viewport.height}`),q===U})),Qm(B,w)},[s,d,w,E,S,U]),filter:d,setFilter:f,sortBy:w,setSortBy:T,searchQuery:E,setSearchQuery:R,selectedBrowser:S,setSelectedBrowser:y,selectedViewport:U,setSelectedViewport:N,availableFilters:_,counts:{all:s.length,failed:s.filter(B=>B.status==="failed").length,passed:s.filter(B=>B.status==="passed").length,new:s.filter(B=>B.status==="new").length}}}function Im(s){let[o,d]=g.useState({}),{addToast:f}=zl(),w=g.useCallback(async E=>{d(R=>({...R,[E]:"accepting"}));try{await nm(E),s&&s(R=>({...R,comparisons:R.comparisons.map(S=>S.id===E?{...S,status:"passed",diffPercentage:0,diff:null}:S)})),d(R=>{let S={...R};return delete S[E],S})}catch(R){console.error("Failed to accept baseline:",R),f("Failed to accept baseline. Please try again.","error"),d(S=>{let y={...S};return delete y[E],y})}},[s,f]),T=g.useCallback(E=>{d(R=>({...R,[E]:"rejected"})),s&&s(R=>({...R,comparisons:R.comparisons.map(S=>S.id===E?{...S,userAction:"rejected"}:S)}))},[s]);return{accept:w,reject:T,loadingStates:o}}function Pm({filter:s,setFilter:o,sortBy:d,setSortBy:f,searchQuery:w,setSearchQuery:T,selectedBrowser:E,setSelectedBrowser:R,selectedViewport:S,setSelectedViewport:y,availableFilters:U,counts:N,onRefresh:_,loading:X}){return c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex flex-col sm:flex-row gap-3",children:[c.jsxs("div",{className:"flex-1 relative",children:[c.jsx(mr,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-gray-400"}),c.jsx("input",{type:"text",placeholder:"Search screenshots...",value:w,onChange:B=>T(B.target.value),className:"w-full bg-slate-800 border border-gray-700 rounded-lg pl-10 pr-4 py-2.5 text-white placeholder-gray-500 focus:border-amber-500 focus:ring-1 focus:ring-amber-500 transition-colors"})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsxs("select",{value:d,onChange:B=>f(B.target.value),className:"bg-slate-800 border border-gray-700 rounded-lg px-3 py-2.5 text-sm text-white focus:border-amber-500 focus:ring-1 focus:ring-amber-500 transition-colors",children:[c.jsx("option",{value:Ya.PRIORITY,children:"Priority"}),c.jsx("option",{value:Ya.NAME,children:"Name"}),c.jsx("option",{value:Ya.TIME,children:"Time"})]}),c.jsx("button",{onClick:_,disabled:X,className:"inline-flex items-center justify-center bg-slate-800 hover:bg-slate-700 border border-gray-700 text-gray-300 hover:text-white p-2.5 rounded-lg transition-colors disabled:opacity-50 disabled:cursor-not-allowed",title:"Refresh",children:c.jsx(hi,{className:`w-5 h-5 ${X?"animate-spin":""}`})})]})]}),c.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[c.jsx("span",{className:"text-sm text-gray-400 mr-1",children:"Status:"}),c.jsxs("button",{onClick:()=>o(Ot.ALL),className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-all ${s===Ot.ALL?"bg-amber-500 text-white shadow-lg shadow-amber-500/30":"bg-slate-800 text-gray-400 hover:bg-slate-700 hover:text-white border border-gray-700"}`,children:["All ",c.jsxs("span",{className:"ml-1.5 opacity-75",children:["(",N.all,")"]})]}),c.jsxs("button",{onClick:()=>o(Ot.FAILED),className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-all ${s===Ot.FAILED?"bg-red-500 text-white shadow-lg shadow-red-500/30":"bg-slate-800 text-gray-400 hover:bg-slate-700 hover:text-white border border-gray-700"}`,children:["Failed ",c.jsxs("span",{className:"ml-1.5 opacity-75",children:["(",N.failed,")"]})]}),c.jsxs("button",{onClick:()=>o(Ot.NEW),className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-all ${s===Ot.NEW?"bg-blue-500 text-white shadow-lg shadow-blue-500/30":"bg-slate-800 text-gray-400 hover:bg-slate-700 hover:text-white border border-gray-700"}`,children:["New ",c.jsxs("span",{className:"ml-1.5 opacity-75",children:["(",N.new,")"]})]}),c.jsxs("button",{onClick:()=>o(Ot.PASSED),className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-all ${s===Ot.PASSED?"bg-green-500 text-white shadow-lg shadow-green-500/30":"bg-slate-800 text-gray-400 hover:bg-slate-700 hover:text-white border border-gray-700"}`,children:["Passed ",c.jsxs("span",{className:"ml-1.5 opacity-75",children:["(",N.passed,")"]})]}),U.browsers.length>1&&c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"text-sm text-gray-400 ml-4 mr-1",children:"Browser:"}),c.jsxs("select",{value:E,onChange:B=>R(B.target.value),className:"bg-slate-800 border border-gray-700 rounded-lg px-3 py-1.5 text-sm text-white focus:border-amber-500 focus:ring-1 focus:ring-amber-500 transition-colors",children:[c.jsx("option",{value:"all",children:"All"}),U.browsers.map(B=>c.jsx("option",{value:B,children:B},B))]})]}),U.viewports.length>1&&c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"text-sm text-gray-400 ml-4 mr-1",children:"Viewport:"}),c.jsxs("select",{value:S,onChange:B=>y(B.target.value),className:"bg-slate-800 border border-gray-700 rounded-lg px-3 py-1.5 text-sm text-white focus:border-amber-500 focus:ring-1 focus:ring-amber-500 transition-colors",children:[c.jsx("option",{value:"all",children:"All"}),U.viewports.map(B=>c.jsx("option",{value:B,children:B},B))]})]})]})]})}function eh(s){let[o,d]=g.useState("loading");return g.useEffect(()=>{if(!s){d("missing");return}d("loading");let f=new Image;return f.onload=()=>d("loaded"),f.onerror=()=>d("error"),f.src=s,()=>{f.onload=null,f.onerror=null}},[s]),o}function Bt({src:s,alt:o,className:d,style:f,onClick:w}){let T=eh(s);return T==="missing"?c.jsx("div",{className:"flex items-center justify-center bg-gray-700 border border-gray-600 rounded min-h-[200px]",style:f,children:c.jsxs("div",{className:"text-gray-400 text-center",children:[c.jsx(Rm,{className:"w-12 h-12 mx-auto mb-3"}),c.jsxs("div",{className:"text-sm",children:["No ",o.toLowerCase()," available"]})]})}):T==="loading"?c.jsx("div",{className:"flex items-center justify-center bg-gray-700 border border-gray-600 rounded min-h-[200px]",style:f,children:c.jsxs("div",{className:"text-gray-400 text-center",children:[c.jsx(hi,{className:"w-8 h-8 mx-auto mb-3 animate-spin"}),c.jsxs("div",{className:"text-sm",children:["Loading ",o.toLowerCase(),"..."]})]})}):T==="error"?c.jsx("div",{className:"flex items-center justify-center bg-gray-700 border border-red-500 rounded min-h-[200px]",style:f,children:c.jsxs("div",{className:"text-red-400 text-center",children:[c.jsx(Ha,{className:"w-12 h-12 mx-auto mb-3"}),c.jsxs("div",{className:"text-sm",children:["Failed to load ",o.toLowerCase()]}),c.jsx("div",{className:"text-xs text-gray-500 mt-1 font-mono break-all px-4",children:s})]})}):c.jsx("img",{src:s,alt:o,className:d,style:f,onClick:w})}function th({comparison:s}){let[o,d]=g.useState(!0);return c.jsxs("div",{className:"overlay-container cursor-pointer",onClick:()=>d(!o),title:"Click to toggle diff overlay",children:[c.jsx(Bt,{className:"current-image",src:s.current,alt:"Current"}),c.jsx(Bt,{className:"baseline-image",src:s.baseline,alt:"Baseline"}),s.diff&&c.jsx(Bt,{className:"diff-image",src:s.diff,alt:"Diff",style:{opacity:o?1:0}})]})}function lh({comparison:s}){let[o,d]=g.useState(!0);return c.jsxs("div",{className:"toggle-container",children:[c.jsx(Bt,{className:"toggle-image",src:o?s.baseline:s.current,alt:o?"Baseline":"Current",onClick:()=>d(!o),style:{cursor:"pointer"}}),c.jsxs("div",{className:"toggle-label",children:[o?"Baseline":"Current"," (click to toggle)"]})]})}function ah({comparison:s}){let[o,d]=g.useState(50),[f,w]=g.useState(!1),T=g.useRef(null),E=N=>{if(!T.current)return;let _=T.current.getBoundingClientRect(),X=Math.max(0,Math.min(100,(N-_.left)/_.width*100));d(X)},R=N=>{N.preventDefault(),w(!0),E(N.clientX)},S=()=>{w(!1)},y=N=>{N.preventDefault(),w(!0),E(N.touches[0].clientX)},U=N=>{f&&(N.preventDefault(),E(N.touches[0].clientX))};return g.useEffect(()=>{if(f){let N=X=>{E(X.clientX)},_=()=>{w(!1)};return document.addEventListener("mousemove",N),document.addEventListener("mouseup",_),()=>{document.removeEventListener("mousemove",N),document.removeEventListener("mouseup",_)}}},[f]),c.jsxs("div",{ref:T,className:"onion-container",onMouseDown:R,onTouchStart:y,onTouchMove:U,onTouchEnd:S,style:{cursor:f?"ew-resize":"col-resize"},children:[c.jsx(Bt,{className:"onion-baseline",src:s.baseline,alt:"Baseline"}),c.jsx(Bt,{className:"onion-current",src:s.current,alt:"Current",style:{clipPath:`inset(0 ${100-o}% 0 0)`}}),c.jsx("div",{className:"onion-divider",style:{left:`${o}%`}})]})}function nh({comparison:s}){return c.jsxs("div",{className:"side-by-side-container",children:[c.jsxs("div",{className:"side-by-side-image",children:[c.jsx(Bt,{src:s.baseline,alt:"Baseline"}),c.jsx("label",{children:"Baseline"})]}),c.jsxs("div",{className:"side-by-side-image",children:[c.jsx(Bt,{src:s.current,alt:"Current"}),c.jsx("label",{children:"Current"})]})]})}function uh({comparison:s,viewMode:o}){return s.status==="new"||s.status==="baseline-created"?c.jsx("div",{className:"comparison-viewer new-baseline",children:c.jsxs("div",{className:"text-center py-8",children:[c.jsx("p",{className:"text-gray-400 text-sm mb-4",children:"First screenshot - creating new baseline"}),c.jsx(Bt,{src:s.current,alt:"New baseline screenshot",className:"mx-auto max-w-full"})]})}):c.jsxs("div",{className:"comparison-viewer","data-mode":o,children:[o===Ut.OVERLAY&&c.jsx("div",{className:"mode-container overlay-mode",children:c.jsx(th,{comparison:s})}),o===Ut.TOGGLE&&c.jsx("div",{className:"mode-container toggle-mode",children:c.jsx(lh,{comparison:s})}),o===Ut.ONION&&c.jsx("div",{className:"mode-container onion-mode",children:c.jsx(ah,{comparison:s})}),o===Ut.SIDE_BY_SIDE&&c.jsx("div",{className:"mode-container side-by-side-mode",children:c.jsx(nh,{comparison:s})})]})}function ih({onAccept:s,onReject:o,disabled:d=!1}){return c.jsxs("div",{className:"flex gap-2",children:[c.jsxs("button",{className:"inline-flex items-center justify-center gap-1.5 bg-green-600 hover:bg-green-700 disabled:bg-gray-600 text-white text-sm font-medium px-4 py-2 rounded-md transition-colors disabled:cursor-not-allowed disabled:opacity-50",onClick:s,disabled:d,title:"Accept these changes as the new baseline",children:[c.jsx(fr,{className:"w-4 h-4"}),c.jsx("span",{children:"Accept"})]}),c.jsxs("button",{className:"inline-flex items-center justify-center gap-1.5 bg-slate-700 hover:bg-slate-600 disabled:bg-gray-600 text-gray-300 hover:text-white text-sm font-medium px-4 py-2 rounded-md transition-colors disabled:cursor-not-allowed disabled:opacity-50",onClick:o,disabled:d,title:"Keep the current baseline (reject changes)",children:[c.jsx(gr,{className:"w-4 h-4"}),c.jsx("span",{children:"Reject"})]})]})}function ch({viewMode:s,onChange:o}){let d=[{value:Ut.OVERLAY,label:"Overlay"},{value:Ut.TOGGLE,label:"Toggle"},{value:Ut.ONION,label:"Onion Skin"},{value:Ut.SIDE_BY_SIDE,label:"Side by Side"}];return c.jsx("div",{className:"flex flex-wrap gap-2",children:d.map(f=>c.jsx("button",{className:`px-4 py-2 rounded-lg text-sm font-medium transition-colors ${s===f.value?"bg-amber-500 text-white":"bg-gray-700 text-gray-300 hover:bg-gray-600 hover:text-white"}`,onClick:()=>o(f.value),children:f.label},f.value))})}const sh=({viewportWidth:s,className:o="w-3 h-3"})=>s?s<=768?c.jsx(Em,{className:o,title:"Mobile"}):s<=1024?c.jsx(Am,{className:o,title:"Tablet"}):c.jsx(dr,{className:o,title:"Desktop"}):c.jsx(dr,{className:o});function rh({group:s,selectedIndex:o,onSelect:d}){return!s||!s.comparisons||s.comparisons.length<=1?null:c.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[c.jsx("span",{className:"text-xs text-gray-400 font-medium",children:"Variants:"}),c.jsx("div",{className:"flex gap-1 flex-wrap",children:s.comparisons.map((f,w)=>{let T="",E=null;f.properties?.viewport_width&&f.properties?.viewport_height&&(T=`${f.properties.viewport_width}×${f.properties.viewport_height}`,E=f.properties.viewport_width);let R=f.properties?.browser||null,S=f.status==="failed"||f.status==="new",y=T||`Variant ${w+1}`,U=o===w;return c.jsxs("button",{onClick:()=>d(w),className:`
10
- relative inline-flex items-center gap-1.5 px-3 py-1.5 rounded-md text-xs font-medium
11
- transition-all duration-200
12
- ${U?"bg-blue-500 text-white shadow-md shadow-blue-500/50":"bg-white/5 text-gray-300 hover:bg-white/10 hover:text-white border border-gray-600/50"}
13
- `,title:`${R||"Unknown browser"} - ${T||"Unknown size"}${S?" (Changed)":""}`,children:[S&&c.jsx("span",{className:`absolute -top-1 -right-1 w-2.5 h-2.5 rounded-full ${f.status==="failed"?"bg-red-500":"bg-yellow-500"} border-2 border-gray-900`}),E&&c.jsx(sh,{viewportWidth:E,className:`w-3 h-3 ${U?"text-white":"text-gray-400"}`}),c.jsx("span",{className:"font-mono",children:y}),R&&c.jsx("span",{className:`
14
- px-1.5 py-0.5 rounded text-[10px] font-medium uppercase
15
- ${U?"bg-blue-600 text-white":"bg-gray-700 text-gray-300"}
16
- `,children:R})]},f.id||w)})})]})}function Ln({icon:s,label:o,colorClass:d="gray"}){let f={green:"bg-green-500/20 border-green-500/30 text-green-400",red:"bg-red-500/20 border-red-500/30 text-red-400",yellow:"bg-yellow-500/20 border-yellow-500/30 text-yellow-400",blue:"bg-blue-500/20 border-blue-500/30 text-blue-400",gray:"bg-gray-500/20 border-gray-500/30 text-gray-400"};return c.jsxs("div",{className:`rounded-lg px-3 py-1.5 border flex items-center space-x-2 ${f[d]}`,children:[c.jsx(s,{className:"w-4 h-4"}),c.jsx("span",{className:"text-sm font-medium",children:o})]})}function fh({comparison:s,onAccept:o,onReject:d,userAction:f,variantSelector:w=null}){let[T,E]=g.useState(Ut.OVERLAY),[R,S]=g.useState(s.status==="failed"),y=Gm(s),U=s.status==="failed"&&!f,N=()=>s.status==="failed"?"border-red-500/50 shadow-lg shadow-red-500/10":s.status==="baseline-created"?"border-blue-500/30":"border-gray-700/50",_=()=>s.status==="passed"?"opacity-75":"opacity-100",X=()=>{o(s.id)},B=()=>{d(s.id)};return c.jsxs("div",{className:`bg-white/5 backdrop-blur-sm border rounded-xl transition-all ${N()}`,children:[c.jsx("button",{onClick:()=>S(!R),className:`w-full p-4 text-left hover:bg-white/5 transition-colors ${_()}`,children:c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("div",{className:"flex items-center space-x-3 flex-1 min-w-0",children:[c.jsx("div",{className:`w-8 h-8 rounded-lg flex items-center justify-center flex-shrink-0 ${s.status==="failed"?"bg-red-500/20":s.status==="baseline-created"?"bg-blue-500/20":"bg-green-500/10"}`,children:c.jsx(rr,{className:`w-4 h-4 ${s.status==="failed"?"text-red-400":s.status==="baseline-created"?"text-blue-400":"text-green-400"}`})}),c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsx("h3",{className:"text-lg font-semibold text-white truncate select-text cursor-text",onClick:V=>V.stopPropagation(),title:s.name||s.originalName,children:s.name||s.originalName||"Unknown"}),c.jsxs("div",{className:"flex flex-wrap gap-3 text-xs text-gray-400 mt-1",children:[c.jsx("span",{className:"font-medium",children:y.description}),s.properties?.browser&&c.jsxs("span",{children:["• ",s.properties.browser]}),s.properties?.viewport_width&&s.properties?.viewport_height?c.jsxs("span",{children:["• ",s.properties.viewport_width,"×",s.properties.viewport_height]}):s.properties?.viewport?c.jsxs("span",{children:["• ",s.properties.viewport.width,"×",s.properties.viewport.height]}):null]})]})]}),c.jsxs("div",{className:"flex items-center space-x-3 flex-shrink-0 ml-4",children:[f===Hn.REJECTED&&c.jsx(Ln,{icon:Ha,label:"Rejected",colorClass:"yellow"}),f===Hn.ACCEPTED&&c.jsx(Ln,{icon:y.icon,label:"Accepted",colorClass:"green"}),f===Hn.ACCEPTING&&c.jsx(Ln,{icon:or,label:"Accepting...",colorClass:"blue"}),!f&&c.jsx(Ln,{icon:y.icon,label:y.label,colorClass:y.colorClass}),R?c.jsx(pm,{className:"w-5 h-5 text-gray-400"}):c.jsx(bm,{className:"w-5 h-5 text-gray-400"})]})]})}),R&&c.jsxs("div",{className:"px-4 pb-4 space-y-4 border-t border-gray-700/50",children:[w&&c.jsx("div",{className:"pt-4",children:c.jsx(rh,{group:w.group,selectedIndex:w.selectedIndex,onSelect:w.onSelect})}),U&&c.jsx("div",{className:w?"":"pt-4",children:c.jsx(ih,{onAccept:X,onReject:B,disabled:f===Hn.ACCEPTING})}),c.jsx("div",{className:w||U?"":"pt-2",children:c.jsx(ch,{viewMode:T,onChange:E})}),c.jsx("div",{className:"bg-gray-900/50 border border-gray-600 rounded-lg overflow-hidden",children:c.jsx(uh,{comparison:s,viewMode:T})})]})]})}function oh({group:s,onAccept:o,onReject:d,loadingStates:f}){let[w,T]=g.useState(0);if(!s||!s.comparisons||s.comparisons.length===0)return null;let E=s.comparisons[w]||s.comparisons[0];return c.jsx(fh,{comparison:E,onAccept:o,onReject:d,userAction:f[E.id],variantSelector:s.comparisons.length>1?{group:s,selectedIndex:w,onSelect:T}:null})}function gi(){return c.jsx("div",{className:"min-h-screen bg-slate-900 flex flex-col",children:c.jsx("div",{className:"flex-1 max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12",children:c.jsxs("div",{className:"text-center",children:[c.jsxs("div",{className:"mb-12",children:[c.jsx("div",{className:"w-16 h-16 bg-amber-500/20 rounded-2xl flex items-center justify-center mx-auto mb-6",children:c.jsx(rr,{className:"w-8 h-8 text-amber-400"})}),c.jsx("h1",{className:"text-3xl font-bold text-white mb-4",children:"TDD Server Running"}),c.jsx("p",{className:"text-xl text-gray-300 mb-2",children:"Server is ready to receive screenshots"}),c.jsxs("div",{className:"inline-flex items-center space-x-2 bg-green-500/20 border border-green-500/30 rounded-lg px-4 py-2",children:[c.jsx("div",{className:"w-2 h-2 bg-green-400 rounded-full animate-pulse"}),c.jsx("span",{className:"text-green-400 text-sm font-medium",children:"Ready for connections"})]})]}),c.jsxs("div",{className:"bg-white/5 backdrop-blur-sm border border-gray-700 rounded-xl p-8 mb-8",children:[c.jsx("h3",{className:"text-lg font-semibold text-white mb-6",children:"Waiting for Screenshots"}),c.jsx("p",{className:"text-gray-300 mb-6",children:"Run your tests to start capturing visual comparisons:"}),c.jsxs("div",{className:"space-y-3",children:[c.jsx("div",{className:"bg-gray-800/50 border border-gray-600 rounded-lg p-4 font-mono text-sm text-gray-300",children:"npm test --watch"}),c.jsx("div",{className:"bg-gray-800/50 border border-gray-600 rounded-lg p-4 font-mono text-sm text-gray-300",children:"npm run test:watch"})]})]}),c.jsxs("button",{onClick:()=>window.location.reload(),className:"inline-flex items-center space-x-2 bg-amber-500 hover:bg-amber-600 text-white font-medium px-6 py-3 rounded-lg transition-colors",children:[c.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})}),c.jsx("span",{children:"Refresh"})]})]})})})}function dh(){return c.jsxs("div",{className:"text-center py-16",children:[c.jsx("div",{className:"w-16 h-16 bg-gray-500/20 rounded-2xl flex items-center justify-center mx-auto mb-6",children:c.jsx(mr,{className:"w-8 h-8 text-gray-400"})}),c.jsx("h3",{className:"text-xl font-semibold text-white mb-2",children:"No Results Found"}),c.jsx("p",{className:"text-gray-400",children:"No comparisons match your current filter selection."})]})}function mh({error:s,onRetry:o}){return c.jsx("div",{className:"flex-1 flex items-center justify-center",children:c.jsxs("div",{className:"text-center max-w-md",children:[c.jsx("div",{className:"w-16 h-16 bg-red-500/20 rounded-2xl flex items-center justify-center mx-auto mb-6",children:c.jsx(zm,{className:"w-8 h-8 text-red-400"})}),c.jsx("h2",{className:"text-2xl font-bold text-white mb-4",children:"Error Loading Report"}),c.jsx("p",{className:"text-gray-400 mb-8",children:s}),c.jsxs("button",{onClick:o,className:"inline-flex items-center space-x-2 bg-amber-500 hover:bg-amber-600 text-white font-medium px-6 py-3 rounded-lg transition-colors",children:[c.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})}),c.jsx("span",{children:"Retry"})]})]})})}function hh(){return c.jsx("div",{className:"flex-1 flex items-center justify-center",children:c.jsxs("div",{className:"text-center",children:[c.jsx("div",{className:"w-8 h-8 border-2 border-amber-500/30 border-t-amber-500 rounded-full animate-spin mx-auto mb-4"}),c.jsx("p",{className:"text-gray-300",children:"Loading visual comparison report..."})]})})}function gh(s){let o=new Map;for(let d of s){o.has(d.name)||o.set(d.name,{name:d.name,comparisons:[],browsers:new Set,viewports:new Set,totalVariants:0});let f=o.get(d.name);f.comparisons.push(d),f.totalVariants++,d.properties?.browser&&f.browsers.add(d.properties.browser),d.properties?.viewport_width&&d.properties?.viewport_height&&f.viewports.add(`${d.properties.viewport_width}x${d.properties.viewport_height}`)}return Array.from(o.values()).map(d=>({...d,browsers:Array.from(d.browsers),viewports:Array.from(d.viewports),comparisons:d.comparisons.sort((f,w)=>{let T=(f.properties?.viewport_width||0)*(f.properties?.viewport_height||0);return(w.properties?.viewport_width||0)*(w.properties?.viewport_height||0)-T})})).sort((d,f)=>d.totalVariants>1&&f.totalVariants===1?-1:d.totalVariants===1&&f.totalVariants>1?1:d.name.localeCompare(f.name))}function vh({comparisons:s,onAccept:o,onReject:d,loadingStates:f}){let w=g.useMemo(()=>!s||s.length===0?[]:gh(s),[s]);return!w||w.length===0?c.jsx(dh,{}):c.jsx("div",{className:"space-y-6",children:w.map(T=>c.jsx(oh,{group:T,onAccept:o,onReject:d,loadingStates:f},T.name))})}function yh({reportData:s,setReportData:o,onRefresh:d,loading:f}){let[w,T]=g.useState(!1),{addToast:E,confirm:R}=zl(),{filteredComparisons:S,filter:y,setFilter:U,sortBy:N,setSortBy:_,searchQuery:X,setSearchQuery:B,selectedBrowser:V,setSelectedBrowser:q,selectedViewport:$,setSelectedViewport:ue,availableFilters:ye,counts:Be}=Fm(s?.comparisons),{accept:De,reject:He,loadingStates:P}=Im(o),Ke=g.useCallback(async()=>{if(await R("This will update all failed and new screenshots.","Accept all changes as new baselines?")){T(!0);try{await sr(),o(z=>({...z,comparisons:z.comparisons.map(H=>H.status==="failed"||H.status==="new"?{...H,status:"passed",diffPercentage:0,diff:null}:H)})),d?.()}catch(z){console.error("Failed to accept all baselines:",z),E("Failed to accept all baselines. Please try again.","error")}finally{T(!1)}}},[o,d,E,R]),ht=!s.comparisons||s.comparisons.length===0,tl=y!=="all"||X.trim()||V!=="all"||$!=="all",gt=s.comparisons?.some(Re=>Re.status==="failed"||Re.status==="new"),Ne=s.comparisons?.filter(Re=>Re.status==="failed").length||0,$e=s.comparisons?.filter(Re=>Re.status==="new").length||0,At=Ne+$e;return c.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8",children:ht?c.jsxs("div",{className:"text-center py-16",children:[c.jsx("div",{className:"w-16 h-16 bg-gray-500/20 rounded-2xl flex items-center justify-center mx-auto mb-6",children:c.jsxs("svg",{className:"w-8 h-8 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 9a2 2 0 012-2h.93a2 2 0 001.664-.89l.812-1.22A2 2 0 0110.07 4h3.86a2 2 0 011.664.89l.812 1.22A2 2 0 0018.07 7H19a2 2 0 012 2v9a2 2 0 01-2 2H5a2 2 0 01-2-2V9z"}),c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 13a3 3 0 11-6 0 3 3 0 016 0z"})]})}),c.jsx("h2",{className:"text-2xl font-bold text-white mb-4",children:"No Screenshots Yet"}),c.jsx("p",{className:"text-gray-400 max-w-md mx-auto",children:"Run your tests to start capturing visual comparisons."})]}):c.jsxs("div",{className:"space-y-6",children:[c.jsx(Pm,{filter:y,setFilter:U,sortBy:N,setSortBy:_,searchQuery:X,setSearchQuery:B,selectedBrowser:V,setSelectedBrowser:q,selectedViewport:$,setSelectedViewport:ue,availableFilters:ye,counts:Be,onRefresh:d,loading:f}),gt&&c.jsx("div",{className:"bg-gradient-to-r from-green-500/10 to-emerald-500/10 border border-green-500/30 rounded-lg p-4",children:c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("div",{children:[c.jsx("h3",{className:"text-white font-semibold mb-1",children:Ne>0&&$e>0?`${Ne} Failed • ${$e} New Baseline${$e!==1?"s":""}`:Ne>0?`${Ne} Visual Difference${Ne!==1?"s":""} Detected`:`${$e} New Baseline${$e!==1?"s":""} Created`}),c.jsx("p",{className:"text-sm text-gray-400",children:Ne>0?"Review changes and accept all to update baselines":"All screenshots are ready to be saved as baselines"})]}),c.jsxs("button",{onClick:Ke,disabled:w,className:"flex items-center space-x-2 bg-green-500 hover:bg-green-600 disabled:bg-green-500/50 text-white font-medium px-6 py-3 rounded-lg transition-colors flex-shrink-0",children:[c.jsx(Tl,{className:"w-5 h-5"}),c.jsx("span",{children:w?"Accepting...":`Accept All (${At})`})]})]})}),S.length===0?c.jsxs("div",{className:"bg-slate-800/50 border border-slate-700 rounded-lg p-8 text-center",children:[c.jsx("div",{className:"text-gray-400 mb-2",children:"No comparisons match your filters"}),tl&&c.jsx("button",{onClick:()=>{U("all"),B(""),q("all"),ue("all")},className:"text-amber-400 hover:text-amber-300 text-sm underline",children:"Clear all filters"})]}):c.jsx(vh,{comparisons:S,groups:s?.groups,onAccept:De,onReject:He,loadingStates:P})]})})}function $l({label:s,name:o,type:d="text",value:f,onChange:w,error:T,help:E,disabled:R,required:S,placeholder:y,options:U}){let N=`field-${o}`;return d==="select"?c.jsxs("div",{className:"mb-6",children:[c.jsxs("label",{htmlFor:N,className:"block text-sm font-medium text-gray-300 mb-2",children:[s,S&&c.jsx("span",{className:"text-red-400 ml-1",children:"*"})]}),c.jsx("select",{id:N,name:o,value:f,onChange:_=>w(o,_.target.value),disabled:R,className:`
17
- w-full px-4 py-2 bg-slate-800 border rounded-lg text-gray-100
18
- focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent
19
- disabled:opacity-50 disabled:cursor-not-allowed
20
- ${T?"border-red-500":"border-slate-700"}
21
- `,children:U?.map(_=>c.jsx("option",{value:_.value,children:_.label},_.value))}),E&&c.jsx("p",{className:"mt-1 text-sm text-gray-400",children:E}),T&&c.jsx("p",{className:"mt-1 text-sm text-red-400",children:T})]}):d==="number"?c.jsxs("div",{className:"mb-6",children:[c.jsxs("label",{htmlFor:N,className:"block text-sm font-medium text-gray-300 mb-2",children:[s,S&&c.jsx("span",{className:"text-red-400 ml-1",children:"*"})]}),c.jsx("input",{id:N,type:"number",name:o,value:f,onChange:_=>w(o,parseFloat(_.target.value)),placeholder:y,disabled:R,className:`
22
- w-full px-4 py-2 bg-slate-800 border rounded-lg text-gray-100
23
- focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent
24
- disabled:opacity-50 disabled:cursor-not-allowed
25
- ${T?"border-red-500":"border-slate-700"}
26
- `}),E&&c.jsx("p",{className:"mt-1 text-sm text-gray-400",children:E}),T&&c.jsx("p",{className:"mt-1 text-sm text-red-400",children:T})]}):d==="checkbox"?c.jsxs("div",{className:"mb-6 flex items-start",children:[c.jsx("input",{id:N,type:"checkbox",name:o,checked:f,onChange:_=>w(o,_.target.checked),disabled:R,className:"mt-1 h-4 w-4 bg-slate-800 border-slate-700 rounded text-blue-500 focus:ring-2 focus:ring-blue-500 disabled:opacity-50"}),c.jsxs("div",{className:"ml-3",children:[c.jsxs("label",{htmlFor:N,className:"block text-sm font-medium text-gray-300",children:[s,S&&c.jsx("span",{className:"text-red-400 ml-1",children:"*"})]}),E&&c.jsx("p",{className:"mt-1 text-sm text-gray-400",children:E}),T&&c.jsx("p",{className:"mt-1 text-sm text-red-400",children:T})]})]}):c.jsxs("div",{className:"mb-6",children:[c.jsxs("label",{htmlFor:N,className:"block text-sm font-medium text-gray-300 mb-2",children:[s,S&&c.jsx("span",{className:"text-red-400 ml-1",children:"*"})]}),c.jsx("input",{id:N,type:d,name:o,value:f,onChange:_=>w(o,_.target.value),placeholder:y,disabled:R,className:`
27
- w-full px-4 py-2 bg-slate-800 border rounded-lg text-gray-100
28
- focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent
29
- disabled:opacity-50 disabled:cursor-not-allowed
30
- ${T?"border-red-500":"border-slate-700"}
31
- `}),E&&c.jsx("p",{className:"mt-1 text-sm text-gray-400",children:E}),T&&c.jsx("p",{className:"mt-1 text-sm text-red-400",children:T})]})}function vi({source:s}){let o={default:"bg-gray-600 text-gray-200",project:"bg-blue-600 text-blue-100",global:"bg-purple-600 text-purple-100",env:"bg-green-600 text-green-100",cli:"bg-yellow-600 text-yellow-100"},d={default:"Default",project:"Project",global:"Global",env:"Environment",cli:"CLI Flag"};return c.jsx("span",{className:`inline-flex items-center px-2 py-0.5 rounded text-xs font-medium ${o[s]||o.default}`,children:d[s]||s})}function bh(){let[s,o]=g.useState(null),[d,f]=g.useState(!0),[w,T]=g.useState(null),[E,R]=g.useState(!1),S=g.useCallback(async()=>{f(!0),T(null);try{let N=await fetch("/api/config");if(!N.ok)throw new Error("Failed to fetch config");let _=await N.json();o(_)}catch(N){T(N.message)}finally{f(!1)}},[]),y=g.useCallback(async(N,_)=>{R(!0),T(null);try{let X=await fetch(`/api/config/${N}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(_)});if(!X.ok){let V=await X.json();throw new Error(V.error||"Failed to update config")}let B=await X.json();return await S(),B}catch(X){throw T(X.message),X}finally{R(!1)}},[S]),U=g.useCallback(async N=>{try{let _=await fetch("/api/config/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(N)});if(!_.ok)throw new Error("Failed to validate config");return await _.json()}catch(_){return console.error("Validation error:",_),{valid:!1,errors:[{message:_.message}]}}},[]);return g.useEffect(()=>{S()},[S]),{config:s,loading:d,error:w,saving:E,refetch:S,updateConfig:y,validateConfig:U}}function xh(){let[s,o]=g.useState("general"),[d,f]=g.useState({}),[w,T]=g.useState(!1),{config:E,loading:R,error:S,saving:y,updateConfig:U,refetch:N}=bh(),{addToast:_}=zl(),X=g.useMemo(()=>E?.config?{threshold:E.config.comparison?.threshold??.1,port:E.config.server?.port??47392,timeout:E.config.server?.timeout??3e4,buildName:E.config.build?.name??"Build {timestamp}",environment:E.config.build?.environment??"test",openReport:E.config.tdd?.openReport??!1}:{threshold:.1,port:47392,timeout:3e4,buildName:"Build {timestamp}",environment:"test",openReport:!1},[E]);Object.keys(d).length===0&&Object.keys(X).length>0&&f(X);let B=g.useCallback((ue,ye)=>{f(Be=>({...Be,[ue]:ye})),T(!0)},[]),V=g.useCallback(async()=>{try{let ue={comparison:{threshold:d.threshold},server:{port:d.port,timeout:d.timeout},build:{name:d.buildName,environment:d.environment},tdd:{openReport:d.openReport}};await U("project",ue),T(!1),_("Settings saved successfully!","success")}catch(ue){_(`Failed to save settings: ${ue.message}`,"error")}},[d,U,_]),q=g.useCallback(()=>{E?.config&&(f({threshold:E.config.comparison?.threshold??.1,port:E.config.server?.port??47392,timeout:E.config.server?.timeout??3e4,buildName:E.config.build?.name??"Build {timestamp}",environment:E.config.build?.environment??"test",openReport:E.config.tdd?.openReport??!1}),T(!1))},[E]),$=[{id:"general",label:"General"},{id:"server",label:"Server"},{id:"build",label:"Build"}];return R?c.jsx("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8 py-8",children:c.jsxs("div",{className:"animate-pulse",children:[c.jsx("div",{className:"h-8 bg-slate-700 rounded w-48 mb-8"}),c.jsxs("div",{className:"space-y-4",children:[c.jsx("div",{className:"h-12 bg-slate-700 rounded"}),c.jsx("div",{className:"h-12 bg-slate-700 rounded"}),c.jsx("div",{className:"h-12 bg-slate-700 rounded"})]})]})}):S?c.jsx("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8 py-8",children:c.jsxs("div",{className:"bg-red-500/10 border border-red-500 rounded-lg p-6 text-center",children:[c.jsx(La,{className:"w-12 h-12 text-red-400 mx-auto mb-4"}),c.jsx("h3",{className:"text-lg font-medium text-red-400 mb-2",children:"Failed to load settings"}),c.jsx("p",{className:"text-gray-400 mb-4",children:S}),c.jsx("button",{onClick:N,className:"px-4 py-2 bg-red-600 hover:bg-red-700 text-white rounded-lg transition-colors",children:"Retry"})]})}):c.jsxs("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8 py-8",children:[c.jsxs("div",{className:"mb-8",children:[c.jsx("h1",{className:"text-3xl font-bold text-gray-100 mb-2",children:"Settings"}),c.jsx("p",{className:"text-gray-400",children:"Configure your Vizzly local development server"})]}),c.jsx("div",{className:"border-b border-slate-700 mb-8",children:c.jsx("nav",{className:"flex space-x-8",children:$.map(ue=>c.jsx("button",{onClick:()=>o(ue.id),className:`
32
- pb-4 px-1 border-b-2 font-medium text-sm transition-colors
33
- ${s===ue.id?"border-blue-500 text-blue-400":"border-transparent text-gray-400 hover:text-gray-300 hover:border-gray-600"}
34
- `,children:ue.label},ue.id))})}),c.jsxs("div",{className:"bg-slate-800/50 rounded-lg p-8 mb-6",children:[s==="general"&&c.jsxs("div",{children:[c.jsx("h2",{className:"text-xl font-semibold text-gray-100 mb-6",children:"General Settings"}),c.jsx($l,{label:"Visual Comparison Threshold",name:"threshold",type:"number",value:d.threshold,onChange:B,help:"Percentage of pixel difference allowed before marking as failed (0.0 - 1.0)",placeholder:"0.1"}),c.jsx($l,{label:"Auto-open Report",name:"openReport",type:"checkbox",value:d.openReport,onChange:B,help:"Automatically open the dashboard in your browser when starting TDD mode"}),c.jsx("div",{className:"mt-6 pt-6 border-t border-slate-700",children:c.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-400",children:[c.jsx("span",{children:"Source:"}),c.jsx(vi,{source:E?.sources?.comparison||"default"})]})})]}),s==="server"&&c.jsxs("div",{children:[c.jsx("h2",{className:"text-xl font-semibold text-gray-100 mb-6",children:"Server Settings"}),c.jsx($l,{label:"Server Port",name:"port",type:"number",value:d.port,onChange:B,help:"Port for the local screenshot server",placeholder:"47392"}),c.jsx($l,{label:"Server Timeout",name:"timeout",type:"number",value:d.timeout,onChange:B,help:"Request timeout in milliseconds",placeholder:"30000"}),c.jsx("div",{className:"mt-6 pt-6 border-t border-slate-700",children:c.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-400",children:[c.jsx("span",{children:"Source:"}),c.jsx(vi,{source:E?.sources?.server||"default"})]})})]}),s==="build"&&c.jsxs("div",{children:[c.jsx("h2",{className:"text-xl font-semibold text-gray-100 mb-6",children:"Build Settings"}),c.jsx($l,{label:"Build Name Template",name:"buildName",type:"text",value:d.buildName,onChange:B,help:"Template for build names (use {timestamp} for current time)",placeholder:"Build {timestamp}"}),c.jsx($l,{label:"Environment",name:"environment",type:"select",value:d.environment,onChange:B,help:"Target environment for builds",options:[{value:"test",label:"Test"},{value:"development",label:"Development"},{value:"staging",label:"Staging"},{value:"production",label:"Production"}]}),c.jsx("div",{className:"mt-6 pt-6 border-t border-slate-700",children:c.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-400",children:[c.jsx("span",{children:"Source:"}),c.jsx(vi,{source:E?.sources?.build||"default"})]})})]})]}),w&&c.jsxs("div",{className:"fixed bottom-8 right-8 bg-slate-800 border border-slate-700 rounded-lg shadow-xl p-4 flex items-center gap-4",children:[c.jsx("span",{className:"text-sm text-gray-400",children:"You have unsaved changes"}),c.jsxs("div",{className:"flex gap-3",children:[c.jsx("button",{onClick:q,disabled:y,className:"px-4 py-2 text-gray-300 hover:text-gray-100 transition-colors disabled:opacity-50",children:"Reset"}),c.jsx("button",{onClick:V,disabled:y,className:"px-4 py-2 bg-blue-600 hover:bg-blue-700 text-white rounded-lg transition-colors flex items-center gap-2 disabled:opacity-50",children:y?c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"w-4 h-4 border-2 border-white border-t-transparent rounded-full animate-spin"}),"Saving..."]}):c.jsxs(c.Fragment,{children:[c.jsx(Tl,{className:"w-5 h-5"}),"Save Changes"]})})]})]})]})}function yr(){let[s,o]=g.useState(null),[d,f]=g.useState(!1),[w,T]=g.useState(!0),[E,R]=g.useState(null),S=g.useCallback(async()=>{T(!0),R(null);try{let _=await fetch("/api/auth/status");if(!_.ok)throw new Error("Failed to fetch auth status");let X=await _.json();f(X.authenticated),o(X.user)}catch(_){R(_.message),f(!1),o(null)}finally{T(!1)}},[]),y=g.useCallback(async()=>{try{let _=await fetch("/api/auth/login",{method:"POST"});if(!_.ok)throw new Error("Failed to initiate login");return await _.json()}catch(_){throw R(_.message),_}},[]),U=g.useCallback(async _=>{try{let X=await fetch("/api/auth/poll",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({deviceCode:_})});if(!X.ok)throw new Error("Failed to poll authorization");return await X.json()}catch(X){throw R(X.message),X}},[]),N=g.useCallback(async()=>{try{if(!(await fetch("/api/auth/logout",{method:"POST"})).ok)throw new Error("Failed to logout");f(!1),o(null)}catch(_){throw R(_.message),_}},[]);return g.useEffect(()=>{S()},[S]),{user:s,authenticated:d,loading:w,error:E,refetch:S,initiateLogin:y,pollAuthorization:U,logout:N}}function ph(){let[s,o]=g.useState([]),[d,f]=g.useState([]),[w,T]=g.useState([]),[E,R]=g.useState(!0),[S,y]=g.useState(null),U=g.useCallback(async()=>{try{let q=await fetch("/api/projects");if(!q.ok){if(q.status===503||q.status===400)return;throw new Error("Failed to fetch projects")}let $=await q.json();o($.projects||[])}catch(q){q.message.includes("503")||console.error("Error fetching projects:",q)}},[]),N=g.useCallback(async()=>{try{let q=await fetch("/api/projects/mappings");if(!q.ok){if(q.status===503)return;throw new Error("Failed to fetch mappings")}let $=await q.json();f($.mappings||[])}catch{}},[]),_=g.useCallback(async(q=10)=>{try{let $=await fetch(`/api/builds/recent?limit=${q}`);if(!$.ok)return;let ue=await $.json();T(ue.builds||[])}catch{}},[]),X=g.useCallback(async(q,$,ue,ye,Be)=>{try{let De=await fetch("/api/projects/mappings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({directory:q,projectSlug:$,organizationSlug:ue,token:ye,projectName:Be})});if(!De.ok){let P=await De.json();throw new Error(P.error||"Failed to create mapping")}let He=await De.json();return await N(),He.mapping}catch(De){throw y(De.message),De}},[N]),B=g.useCallback(async q=>{try{let $=await fetch(`/api/projects/mappings/${encodeURIComponent(q)}`,{method:"DELETE"});if(!$.ok){let ue=await $.json();throw new Error(ue.error||"Failed to delete mapping")}await N()}catch($){throw y($.message),$}},[N]),V=g.useCallback(async()=>{R(!0),y(null),await Promise.all([U(),N(),_()]),R(!1)},[U,N,_]);return g.useEffect(()=>{V()},[V]),{projects:s,mappings:d,recentBuilds:w,loading:E,error:S,refetch:V,createMapping:X,deleteMapping:B}}function Sh({onComplete:s}){let[o,d]=g.useState(null),[f,w]=g.useState(!1),[T,E]=g.useState(null),{initiateLogin:R,pollAuthorization:S}=yr(),{addToast:y}=zl();g.useEffect(()=>{async function N(){try{let _=await R();d(_)}catch(_){E(_.message),y(`Failed to start login: ${_.message}`,"error")}}N()},[R,y]);async function U(){if(o?.deviceCode){w(!0),E(null);try{let N=await S(o.deviceCode);N.status==="complete"?(y("Login successful!","success"),s?.()):N.status==="pending"?y("Still waiting for authorization...","info"):E("Unexpected response from server")}catch(N){E(N.message),y(`Check failed: ${N.message}`,"error")}finally{w(!1)}}}return T?c.jsxs("div",{className:"bg-red-500/10 border border-red-500 rounded-lg p-6 text-center",children:[c.jsx(La,{className:"w-12 h-12 text-red-400 mx-auto mb-4"}),c.jsx("p",{className:"text-red-400",children:T})]}):o?c.jsxs("div",{className:"bg-white/5 backdrop-blur-sm border border-gray-700 rounded-xl p-8 text-center",children:[c.jsx("h3",{className:"text-2xl font-semibold text-white mb-6",children:"Sign in to Vizzly"}),c.jsxs("div",{className:"bg-slate-900/80 backdrop-blur rounded-xl p-6 mb-6 border border-gray-700/50",children:[c.jsx("p",{className:"text-sm text-gray-300 mb-4",children:"Click below to authorize:"}),c.jsx("a",{href:o.verificationUriComplete||o.verificationUri,target:"_blank",rel:"noopener noreferrer",className:"px-6 py-3 bg-amber-500 hover:bg-amber-600 text-white font-medium rounded-lg transition-colors inline-flex items-center gap-2 mb-4 shadow-lg shadow-amber-500/20",children:"Open Authorization Page"}),c.jsxs("div",{className:"mt-4 pt-4 border-t border-gray-700",children:[c.jsx("p",{className:"text-xs text-gray-400 mb-2",children:"Or enter this code manually:"}),c.jsx("div",{className:"text-2xl font-mono font-bold text-amber-500 tracking-wider",children:o.userCode})]})]}),c.jsx("p",{className:"text-sm text-gray-300 mb-4",children:"After authorizing in your browser, click the button below to complete sign in."}),c.jsx("button",{onClick:U,disabled:f,className:"px-6 py-3 bg-white/10 hover:bg-white/20 disabled:bg-white/5 disabled:cursor-not-allowed text-white rounded-lg transition-colors inline-flex items-center gap-2 border border-gray-700",children:f?c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"w-5 h-5 border-2 border-white border-t-transparent rounded-full animate-spin"}),"Checking..."]}):"Check Status"})]}):c.jsxs("div",{className:"text-center py-8",children:[c.jsx("div",{className:"w-8 h-8 border-2 border-blue-500 border-t-transparent rounded-full animate-spin mx-auto"}),c.jsx("p",{className:"text-gray-400 mt-4",children:"Starting login flow..."})]})}function jh(){let[s,o]=g.useState(!1),{user:d,authenticated:f,loading:w,logout:T,refetch:E}=yr(),{addToast:R}=zl(),S=g.useCallback(async()=>{try{await T(),R("Logged out successfully","success")}catch(U){R(`Logout failed: ${U.message}`,"error")}},[T,R]),y=g.useCallback(()=>{o(!1),E()},[E]);return w?c.jsxs("div",{className:"bg-slate-800/50 border border-slate-700 rounded-lg p-6 animate-pulse",children:[c.jsx("div",{className:"h-6 bg-slate-700 rounded w-32 mb-4"}),c.jsx("div",{className:"h-4 bg-slate-700 rounded w-48"})]}):s?c.jsxs("div",{children:[c.jsx("button",{onClick:()=>o(!1),className:"text-sm text-gray-400 hover:text-gray-300 mb-4",children:"← Back"}),c.jsx(Sh,{onComplete:y})]}):f?c.jsx("div",{className:"bg-white/5 backdrop-blur-sm border border-gray-700 rounded-xl p-6",children:c.jsxs("div",{className:"flex items-start justify-between",children:[c.jsxs("div",{className:"flex items-start gap-4",children:[c.jsx("div",{className:"w-12 h-12 bg-amber-500 rounded-full flex items-center justify-center shadow-lg shadow-amber-500/20",children:c.jsx(hr,{className:"w-8 h-8 text-white"})}),c.jsxs("div",{children:[c.jsx("h3",{className:"text-lg font-semibold text-white",children:d?.name||"User"}),c.jsx("p",{className:"text-sm text-gray-300",children:d?.email}),d?.organizationName&&c.jsx("p",{className:"text-xs text-gray-400 mt-1",children:d.organizationName})]})]}),c.jsxs("button",{onClick:S,className:"px-4 py-2 text-gray-300 hover:text-white hover:bg-white/10 rounded-lg transition-colors inline-flex items-center gap-2 border border-gray-700",children:[c.jsx(sm,{className:"w-5 h-5"}),"Sign Out"]})]})}):c.jsxs("div",{className:"bg-white/5 backdrop-blur-sm border border-gray-700 rounded-xl p-8 text-center",children:[c.jsx(hr,{className:"w-16 h-16 text-gray-500 mx-auto mb-4"}),c.jsx("h3",{className:"text-lg font-semibold text-white mb-2",children:"Not signed in"}),c.jsx("p",{className:"text-gray-300 mb-6",children:"Sign in to access projects and team features"}),c.jsxs("button",{onClick:()=>o(!0),className:"px-6 py-3 bg-amber-500 hover:bg-amber-600 text-white font-medium rounded-lg transition-colors inline-flex items-center gap-2 shadow-lg shadow-amber-500/20",children:[c.jsx(om,{className:"w-5 h-5"}),"Sign In"]})]})}function Nh({mappings:s,onDelete:o}){let{addToast:d,confirm:f}=zl(),w=g.useCallback(async T=>{if(await f(`Remove project mapping for ${T}?`,"This will not delete any files, only the project association."))try{await o(T),d("Mapping removed successfully","success")}catch(R){d(`Failed to remove mapping: ${R.message}`,"error")}},[o,d,f]);return s.length===0?c.jsxs("div",{className:"text-center py-8",children:[c.jsx(_m,{className:"w-12 h-12 mx-auto mb-4 text-gray-500"}),c.jsx("h3",{className:"text-lg font-medium text-white mb-2",children:"No project mappings"}),c.jsx("p",{className:"text-sm text-gray-300 mb-4 max-w-md mx-auto",children:"Link a directory to a Vizzly project using the CLI from within your project directory."}),c.jsx("div",{className:"bg-slate-900 border border-gray-700 rounded-lg p-4 max-w-md mx-auto",children:c.jsx("code",{className:"text-sm text-amber-500 font-mono",children:"vizzly project:select"})}),c.jsx("p",{className:"text-xs text-gray-400 mt-4",children:"Mappings you create will appear here for easy management."})]}):c.jsx("div",{className:"overflow-x-auto",children:c.jsxs("table",{className:"w-full",children:[c.jsx("thead",{children:c.jsxs("tr",{className:"border-b border-gray-700",children:[c.jsx("th",{className:"text-left py-3 px-4 text-sm font-medium text-gray-300",children:"Directory"}),c.jsx("th",{className:"text-left py-3 px-4 text-sm font-medium text-gray-300",children:"Project"}),c.jsx("th",{className:"text-left py-3 px-4 text-sm font-medium text-gray-300",children:"Organization"}),c.jsx("th",{className:"text-right py-3 px-4 text-sm font-medium text-gray-300",children:"Actions"})]})}),c.jsx("tbody",{children:s.map((T,E)=>c.jsxs("tr",{className:"border-b border-gray-700/50 hover:bg-white/5",children:[c.jsx("td",{className:"py-3 px-4 text-sm text-gray-300 font-mono",children:T.directory}),c.jsx("td",{className:"py-3 px-4 text-sm text-white",children:T.projectName||T.projectSlug}),c.jsx("td",{className:"py-3 px-4 text-sm text-gray-400",children:T.organizationSlug}),c.jsx("td",{className:"py-3 px-4 text-right",children:c.jsx("button",{onClick:()=>w(T.directory),className:"text-red-400 hover:text-red-300 transition-colors",title:"Remove mapping",children:c.jsx(Bm,{className:"w-5 h-5"})})})]},E))})]})})}function Eh({builds:s}){return s.length===0?c.jsxs("div",{className:"text-center py-8 text-gray-400",children:[c.jsx(or,{className:"w-12 h-12 mx-auto mb-4 text-gray-500"}),c.jsx("p",{children:"No recent builds"})]}):c.jsx("div",{className:"space-y-3",children:s.slice(0,5).map((o,d)=>c.jsxs("div",{className:"flex items-center justify-between p-4 bg-white/5 rounded-lg hover:bg-white/10 transition-colors border border-gray-700/50",children:[c.jsxs("div",{className:"flex-1",children:[c.jsx("h4",{className:"text-sm font-medium text-white",children:o.name}),c.jsxs("p",{className:"text-xs text-gray-400 mt-1",children:[o.branch," • ",new Date(o.createdAt).toLocaleString()]})]}),c.jsxs("div",{className:"flex items-center gap-3",children:[o.status==="passed"&&c.jsxs("span",{className:"text-green-400 text-sm flex items-center gap-1",children:[c.jsx(Tl,{className:"w-4 h-4"}),"Passed"]}),o.status==="failed"&&c.jsxs("span",{className:"text-red-400 text-sm flex items-center gap-1",children:[c.jsx(La,{className:"w-4 h-4"}),"Failed"]})]})]},d))})}function wh(){let{mappings:s,recentBuilds:o,loading:d,deleteMapping:f,refetch:w}=ph();return d?c.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8",children:c.jsxs("div",{className:"animate-pulse space-y-6",children:[c.jsx("div",{className:"h-8 bg-slate-700 rounded w-48"}),c.jsx("div",{className:"h-64 bg-slate-700 rounded"}),c.jsx("div",{className:"h-64 bg-slate-700 rounded"})]})}):c.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8",children:[c.jsxs("div",{className:"mb-8",children:[c.jsx("h1",{className:"text-3xl font-bold text-white mb-2",children:"Projects"}),c.jsx("p",{className:"text-gray-300",children:"Manage your Vizzly projects and directory mappings"})]}),c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6 mb-8",children:[c.jsx("div",{className:"lg:col-span-2",children:c.jsx(jh,{})}),c.jsxs("div",{className:"bg-white/5 backdrop-blur-sm border border-gray-700 rounded-xl p-6",children:[c.jsx("h3",{className:"text-lg font-semibold text-white mb-4",children:"Quick Stats"}),c.jsxs("div",{className:"space-y-3",children:[c.jsxs("div",{className:"flex justify-between",children:[c.jsx("span",{className:"text-gray-300",children:"Project Mappings"}),c.jsx("span",{className:"text-white font-medium",children:s.length})]}),c.jsxs("div",{className:"flex justify-between",children:[c.jsx("span",{className:"text-gray-300",children:"Recent Builds"}),c.jsx("span",{className:"text-white font-medium",children:o.length})]})]})]})]}),c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[c.jsxs("div",{className:"bg-white/5 backdrop-blur-sm border border-gray-700 rounded-xl p-6",children:[c.jsxs("div",{className:"flex items-center justify-between mb-6",children:[c.jsx("h2",{className:"text-xl font-semibold text-white",children:"Project Mappings"}),c.jsx("button",{onClick:w,className:"text-sm text-amber-500 hover:text-amber-400 transition-colors font-medium",children:"Refresh"})]}),c.jsx(Nh,{mappings:s,onDelete:f})]}),c.jsxs("div",{className:"bg-white/5 backdrop-blur-sm border border-gray-700 rounded-xl p-6",children:[c.jsx("h2",{className:"text-xl font-semibold text-white mb-6",children:"Recent Builds"}),c.jsx(Eh,{builds:o})]})]})]})}function Ah({initialData:s}){let[o,d]=P0(),{reportData:f,setReportData:w,loading:T,error:E,refetch:R}=im(s),S=o==="/stats"?"stats":o==="/settings"?"settings":o==="/projects"?"projects":"comparisons",y=N=>{d(N==="stats"?"/stats":N==="settings"?"/settings":N==="projects"?"/projects":"/")},U=o==="/settings"||o==="/projects";return T&&!f&&!U?c.jsxs("div",{className:"min-h-screen bg-slate-900 flex flex-col",children:[c.jsx(mi,{loading:T,onNavigate:y,currentView:S}),c.jsx(hh,{})]}):E&&!f&&!U?c.jsxs("div",{className:"min-h-screen bg-slate-900 flex flex-col",children:[c.jsx(mi,{loading:T,onNavigate:y,currentView:S}),c.jsx(mh,{error:E,onRetry:R})]}):!f&&!U?c.jsx(gi,{}):c.jsxs("div",{className:"min-h-screen bg-slate-900",children:[c.jsx(mi,{loading:T,onNavigate:y,currentView:S}),c.jsxs(lm,{children:[c.jsx(Bn,{path:"/stats",children:f?c.jsx($m,{reportData:f,setReportData:w,onRefresh:R,loading:T}):c.jsx(gi,{})}),c.jsx(Bn,{path:"/settings",children:c.jsx(xh,{})}),c.jsx(Bn,{path:"/projects",children:c.jsx(wh,{})}),c.jsx(Bn,{path:"/",children:f?c.jsx(yh,{reportData:f,setReportData:w,onRefresh:R,loading:T}):c.jsx(gi,{})})]})]})}let br=()=>{let s=document.getElementById("vizzly-reporter-root");s||(s=document.createElement("div"),s.id="vizzly-reporter-root",document.body.appendChild(s));let o=window.VIZZLY_REPORTER_DATA||null;R0.createRoot(s).render(c.jsx(g.StrictMode,{children:c.jsx(Km,{children:c.jsx(Ah,{initialData:o})})}))};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",br):br()})();
8
+ `+a.stack}}var pu=Object.prototype.hasOwnProperty,bu=n.unstable_scheduleCallback,xu=n.unstable_cancelCallback,x1=n.unstable_shouldYield,j1=n.unstable_requestPaint,gt=n.unstable_now,S1=n.unstable_getCurrentPriorityLevel,Vo=n.unstable_ImmediatePriority,Zo=n.unstable_UserBlockingPriority,wi=n.unstable_NormalPriority,w1=n.unstable_LowPriority,Xo=n.unstable_IdlePriority,N1=n.log,E1=n.unstable_setDisableYieldValue,gn=null,vt=null;function ml(e){if(typeof N1=="function"&&E1(e),vt&&typeof vt.setStrictMode=="function")try{vt.setStrictMode(gn,e)}catch{}}var yt=Math.clz32?Math.clz32:A1,C1=Math.log,z1=Math.LN2;function A1(e){return e>>>=0,e===0?32:31-(C1(e)/z1|0)|0}var Ni=256,Ei=262144,Ci=4194304;function $l(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function zi(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var i=0,s=e.suspendedLanes,f=e.pingedLanes;e=e.warmLanes;var d=a&134217727;return d!==0?(a=d&~s,a!==0?i=$l(a):(f&=d,f!==0?i=$l(f):l||(l=d&~e,l!==0&&(i=$l(l))))):(d=a&~s,d!==0?i=$l(d):f!==0?i=$l(f):l||(l=a&~e,l!==0&&(i=$l(l)))),i===0?0:t!==0&&t!==i&&(t&s)===0&&(s=i&-i,l=t&-t,s>=l||s===32&&(l&4194048)!==0)?t:i}function vn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function O1(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;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 Ko(){var e=Ci;return Ci<<=1,(Ci&62914560)===0&&(Ci=4194304),e}function ju(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function yn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function T1(e,t,l,a,i,s){var f=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var d=e.entanglements,b=e.expirationTimes,C=e.hiddenUpdates;for(l=f&~l;0<l;){var R=31-yt(l),_=1<<R;d[R]=0,b[R]=-1;var z=C[R];if(z!==null)for(C[R]=null,R=0;R<z.length;R++){var O=z[R];O!==null&&(O.lane&=-536870913)}l&=~_}a!==0&&Jo(e,a,0),s!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=s&~(f&~t))}function Jo(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-yt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function $o(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-yt(l),i=1<<a;i&t|e[a]&t&&(e[a]|=t),l&=~i}}function Fo(e,t){var l=t&-t;return l=(l&42)!==0?1:Su(l),(l&(e.suspendedLanes|t))!==0?0:l}function Su(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function wu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Wo(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:B0(e.type))}function Io(e,t){var l=Q.p;try{return Q.p=e,t()}finally{Q.p=l}}var gl=Math.random().toString(36).slice(2),Fe="__reactFiber$"+gl,rt="__reactProps$"+gl,ba="__reactContainer$"+gl,Nu="__reactEvents$"+gl,M1="__reactListeners$"+gl,R1="__reactHandles$"+gl,Po="__reactResources$"+gl,pn="__reactMarker$"+gl;function Eu(e){delete e[Fe],delete e[rt],delete e[Nu],delete e[M1],delete e[R1]}function xa(e){var t=e[Fe];if(t)return t;for(var l=e.parentNode;l;){if(t=l[ba]||l[Fe]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=j0(e);e!==null;){if(l=e[Fe])return l;e=j0(e)}return t}e=l,l=e.parentNode}return null}function ja(e){if(e=e[Fe]||e[ba]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function bn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function Sa(e){var t=e[Po];return t||(t=e[Po]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Je(e){e[pn]=!0}var ef=new Set,tf={};function Fl(e,t){wa(e,t),wa(e+"Capture",t)}function wa(e,t){for(tf[e]=t,e=0;e<t.length;e++)ef.add(t[e])}var D1=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]*$"),lf={},af={};function _1(e){return pu.call(af,e)?!0:pu.call(lf,e)?!1:D1.test(e)?af[e]=!0:(lf[e]=!0,!1)}function Ai(e,t,l){if(_1(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Oi(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Xt(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function Ct(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function nf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function U1(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var i=a.get,s=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(f){l=""+f,s.call(this,f)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(f){l=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Cu(e){if(!e._valueTracker){var t=nf(e)?"checked":"value";e._valueTracker=U1(e,t,""+e[t])}}function sf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=nf(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function Ti(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var L1=/[\n"\\]/g;function zt(e){return e.replace(L1,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function zu(e,t,l,a,i,s,f,d){e.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.type=f:e.removeAttribute("type"),t!=null?f==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ct(t)):e.value!==""+Ct(t)&&(e.value=""+Ct(t)):f!=="submit"&&f!=="reset"||e.removeAttribute("value"),t!=null?Au(e,f,Ct(t)):l!=null?Au(e,f,Ct(l)):a!=null&&e.removeAttribute("value"),i==null&&s!=null&&(e.defaultChecked=!!s),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.name=""+Ct(d):e.removeAttribute("name")}function uf(e,t,l,a,i,s,f,d){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.type=s),t!=null||l!=null){if(!(s!=="submit"&&s!=="reset"||t!=null)){Cu(e);return}l=l!=null?""+Ct(l):"",t=t!=null?""+Ct(t):l,d||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=d?e.checked:!!a,e.defaultChecked=!!a,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.name=f),Cu(e)}function Au(e,t,l){t==="number"&&Ti(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Na(e,t,l,a){if(e=e.options,t){t={};for(var i=0;i<l.length;i++)t["$"+l[i]]=!0;for(l=0;l<e.length;l++)i=t.hasOwnProperty("$"+e[l].value),e[l].selected!==i&&(e[l].selected=i),i&&a&&(e[l].defaultSelected=!0)}else{for(l=""+Ct(l),t=null,i=0;i<e.length;i++){if(e[i].value===l){e[i].selected=!0,a&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function rf(e,t,l){if(t!=null&&(t=""+Ct(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Ct(l):""}function cf(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(o(92));if(He(a)){if(1<a.length)throw Error(o(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=Ct(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),Cu(e)}function Ea(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var B1=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 of(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||B1.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function ff(e,t,l){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var i in t)a=t[i],t.hasOwnProperty(i)&&l[i]!==a&&of(e,i,a)}else for(var s in t)t.hasOwnProperty(s)&&of(e,s,t[s])}function Ou(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var q1=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"]]),H1=/^[\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 Mi(e){return H1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Kt(){}var Tu=null;function Mu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ca=null,za=null;function df(e){var t=ja(e);if(t&&(e=t.stateNode)){var l=e[rt]||null;e:switch(e=t.stateNode,t.type){case"input":if(zu(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+zt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var i=a[rt]||null;if(!i)throw Error(o(90));zu(a,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&sf(a)}break e;case"textarea":rf(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Na(e,!!l.multiple,t,!1)}}}var Ru=!1;function hf(e,t,l){if(Ru)return e(t,l);Ru=!0;try{var a=e(t);return a}finally{if(Ru=!1,(Ca!==null||za!==null)&&(ps(),Ca&&(t=Ca,e=za,za=Ca=null,df(t),e)))for(t=0;t<e.length;t++)df(e[t])}}function xn(e,t){var l=e.stateNode;if(l===null)return null;var a=l[rt]||null;if(a===null)return null;l=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(o(231,t,typeof l));return l}var Jt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Du=!1;if(Jt)try{var jn={};Object.defineProperty(jn,"passive",{get:function(){Du=!0}}),window.addEventListener("test",jn,jn),window.removeEventListener("test",jn,jn)}catch{Du=!1}var vl=null,_u=null,Ri=null;function mf(){if(Ri)return Ri;var e,t=_u,l=t.length,a,i="value"in vl?vl.value:vl.textContent,s=i.length;for(e=0;e<l&&t[e]===i[e];e++);var f=l-e;for(a=1;a<=f&&t[l-a]===i[s-a];a++);return Ri=i.slice(e,1<a?1-a:void 0)}function Di(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function _i(){return!0}function gf(){return!1}function ct(e){function t(l,a,i,s,f){this._reactName=l,this._targetInst=i,this.type=a,this.nativeEvent=s,this.target=f,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(l=e[d],this[d]=l?l(s):s[d]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?_i:gf,this.isPropagationStopped=gf,this}return A(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=_i)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=_i)},persist:function(){},isPersistent:_i}),t}var Wl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ui=ct(Wl),Sn=A({},Wl,{view:0,detail:0}),Q1=ct(Sn),Uu,Lu,wn,Li=A({},Sn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==wn&&(wn&&e.type==="mousemove"?(Uu=e.screenX-wn.screenX,Lu=e.screenY-wn.screenY):Lu=Uu=0,wn=e),Uu)},movementY:function(e){return"movementY"in e?e.movementY:Lu}}),vf=ct(Li),k1=A({},Li,{dataTransfer:0}),Y1=ct(k1),G1=A({},Sn,{relatedTarget:0}),Bu=ct(G1),V1=A({},Wl,{animationName:0,elapsedTime:0,pseudoElement:0}),Z1=ct(V1),X1=A({},Wl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),K1=ct(X1),J1=A({},Wl,{data:0}),yf=ct(J1),$1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},F1={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"},W1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function I1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=W1[e])?!!t[e]:!1}function qu(){return I1}var P1=A({},Sn,{key:function(e){if(e.key){var t=$1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Di(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?F1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qu,charCode:function(e){return e.type==="keypress"?Di(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Di(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ey=ct(P1),ty=A({},Li,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),pf=ct(ty),ly=A({},Sn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qu}),ay=ct(ly),ny=A({},Wl,{propertyName:0,elapsedTime:0,pseudoElement:0}),iy=ct(ny),sy=A({},Li,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),uy=ct(sy),ry=A({},Wl,{newState:0,oldState:0}),cy=ct(ry),oy=[9,13,27,32],Hu=Jt&&"CompositionEvent"in window,Nn=null;Jt&&"documentMode"in document&&(Nn=document.documentMode);var fy=Jt&&"TextEvent"in window&&!Nn,bf=Jt&&(!Hu||Nn&&8<Nn&&11>=Nn),xf=" ",jf=!1;function Sf(e,t){switch(e){case"keyup":return oy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Aa=!1;function dy(e,t){switch(e){case"compositionend":return wf(t);case"keypress":return t.which!==32?null:(jf=!0,xf);case"textInput":return e=t.data,e===xf&&jf?null:e;default:return null}}function hy(e,t){if(Aa)return e==="compositionend"||!Hu&&Sf(e,t)?(e=mf(),Ri=_u=vl=null,Aa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return bf&&t.locale!=="ko"?null:t.data;default:return null}}var my={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 Nf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!my[e.type]:t==="textarea"}function Ef(e,t,l,a){Ca?za?za.push(a):za=[a]:Ca=a,t=Es(t,"onChange"),0<t.length&&(l=new Ui("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var En=null,Cn=null;function gy(e){u0(e,0)}function Bi(e){var t=bn(e);if(sf(t))return e}function Cf(e,t){if(e==="change")return t}var zf=!1;if(Jt){var Qu;if(Jt){var ku="oninput"in document;if(!ku){var Af=document.createElement("div");Af.setAttribute("oninput","return;"),ku=typeof Af.oninput=="function"}Qu=ku}else Qu=!1;zf=Qu&&(!document.documentMode||9<document.documentMode)}function Of(){En&&(En.detachEvent("onpropertychange",Tf),Cn=En=null)}function Tf(e){if(e.propertyName==="value"&&Bi(Cn)){var t=[];Ef(t,Cn,e,Mu(e)),hf(gy,t)}}function vy(e,t,l){e==="focusin"?(Of(),En=t,Cn=l,En.attachEvent("onpropertychange",Tf)):e==="focusout"&&Of()}function yy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Bi(Cn)}function py(e,t){if(e==="click")return Bi(t)}function by(e,t){if(e==="input"||e==="change")return Bi(t)}function xy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var pt=typeof Object.is=="function"?Object.is:xy;function zn(e,t){if(pt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var i=l[a];if(!pu.call(t,i)||!pt(e[i],t[i]))return!1}return!0}function Mf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Rf(e,t){var l=Mf(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Mf(l)}}function Df(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Df(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function _f(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ti(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=Ti(e.document)}return t}function Yu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var jy=Jt&&"documentMode"in document&&11>=document.documentMode,Oa=null,Gu=null,An=null,Vu=!1;function Uf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Vu||Oa==null||Oa!==Ti(a)||(a=Oa,"selectionStart"in a&&Yu(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),An&&zn(An,a)||(An=a,a=Es(Gu,"onSelect"),0<a.length&&(t=new Ui("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=Oa)))}function Il(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var Ta={animationend:Il("Animation","AnimationEnd"),animationiteration:Il("Animation","AnimationIteration"),animationstart:Il("Animation","AnimationStart"),transitionrun:Il("Transition","TransitionRun"),transitionstart:Il("Transition","TransitionStart"),transitioncancel:Il("Transition","TransitionCancel"),transitionend:Il("Transition","TransitionEnd")},Zu={},Lf={};Jt&&(Lf=document.createElement("div").style,"AnimationEvent"in window||(delete Ta.animationend.animation,delete Ta.animationiteration.animation,delete Ta.animationstart.animation),"TransitionEvent"in window||delete Ta.transitionend.transition);function Pl(e){if(Zu[e])return Zu[e];if(!Ta[e])return e;var t=Ta[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Lf)return Zu[e]=t[l];return e}var Bf=Pl("animationend"),qf=Pl("animationiteration"),Hf=Pl("animationstart"),Sy=Pl("transitionrun"),wy=Pl("transitionstart"),Ny=Pl("transitioncancel"),Qf=Pl("transitionend"),kf=new Map,Xu="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(" ");Xu.push("scrollEnd");function Bt(e,t){kf.set(e,t),Fl(t,[e])}var qi=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},At=[],Ma=0,Ku=0;function Hi(){for(var e=Ma,t=Ku=Ma=0;t<e;){var l=At[t];At[t++]=null;var a=At[t];At[t++]=null;var i=At[t];At[t++]=null;var s=At[t];if(At[t++]=null,a!==null&&i!==null){var f=a.pending;f===null?i.next=i:(i.next=f.next,f.next=i),a.pending=i}s!==0&&Yf(l,i,s)}}function Qi(e,t,l,a){At[Ma++]=e,At[Ma++]=t,At[Ma++]=l,At[Ma++]=a,Ku|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Ju(e,t,l,a){return Qi(e,t,l,a),ki(e)}function ea(e,t){return Qi(e,null,null,t),ki(e)}function Yf(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var i=!1,s=e.return;s!==null;)s.childLanes|=l,a=s.alternate,a!==null&&(a.childLanes|=l),s.tag===22&&(e=s.stateNode,e===null||e._visibility&1||(i=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,i&&t!==null&&(i=31-yt(l),e=s.hiddenUpdates,a=e[i],a===null?e[i]=[t]:a.push(t),t.lane=l|536870912),s):null}function ki(e){if(50<Fn)throw Fn=0,ac=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ra={};function Ey(e,t,l,a){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bt(e,t,l,a){return new Ey(e,t,l,a)}function $u(e){return e=e.prototype,!(!e||!e.isReactComponent)}function $t(e,t){var l=e.alternate;return l===null?(l=bt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Gf(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Yi(e,t,l,a,i,s){var f=0;if(a=e,typeof e=="function")$u(e)&&(f=1);else if(typeof e=="string")f=Tp(e,l,Z.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ve:return e=bt(31,l,t,i),e.elementType=ve,e.lanes=s,e;case M:return ta(l.children,i,s,t);case q:f=8,i|=24;break;case L:return e=bt(12,l,t,i|2),e.elementType=L,e.lanes=s,e;case xe:return e=bt(13,l,t,i),e.elementType=xe,e.lanes=s,e;case de:return e=bt(19,l,t,i),e.elementType=de,e.lanes=s,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case k:f=10;break e;case $:f=9;break e;case ne:f=11;break e;case K:f=14;break e;case ee:f=16,a=null;break e}f=29,l=Error(o(130,e===null?"null":typeof e,"")),a=null}return t=bt(f,l,t,i),t.elementType=e,t.type=a,t.lanes=s,t}function ta(e,t,l,a){return e=bt(7,e,a,t),e.lanes=l,e}function Fu(e,t,l){return e=bt(6,e,null,t),e.lanes=l,e}function Vf(e){var t=bt(18,null,null,0);return t.stateNode=e,t}function Wu(e,t,l){return t=bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Zf=new WeakMap;function Ot(e,t){if(typeof e=="object"&&e!==null){var l=Zf.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Go(t)},Zf.set(e,t),t)}return{value:e,source:t,stack:Go(t)}}var Da=[],_a=0,Gi=null,On=0,Tt=[],Mt=0,yl=null,Yt=1,Gt="";function Ft(e,t){Da[_a++]=On,Da[_a++]=Gi,Gi=e,On=t}function Xf(e,t,l){Tt[Mt++]=Yt,Tt[Mt++]=Gt,Tt[Mt++]=yl,yl=e;var a=Yt;e=Gt;var i=32-yt(a)-1;a&=~(1<<i),l+=1;var s=32-yt(t)+i;if(30<s){var f=i-i%5;s=(a&(1<<f)-1).toString(32),a>>=f,i-=f,Yt=1<<32-yt(t)+i|l<<i|a,Gt=s+e}else Yt=1<<s|l<<i|a,Gt=e}function Iu(e){e.return!==null&&(Ft(e,1),Xf(e,1,0))}function Pu(e){for(;e===Gi;)Gi=Da[--_a],Da[_a]=null,On=Da[--_a],Da[_a]=null;for(;e===yl;)yl=Tt[--Mt],Tt[Mt]=null,Gt=Tt[--Mt],Tt[Mt]=null,Yt=Tt[--Mt],Tt[Mt]=null}function Kf(e,t){Tt[Mt++]=Yt,Tt[Mt++]=Gt,Tt[Mt++]=yl,Yt=t.id,Gt=t.overflow,yl=e}var We=null,Ae=null,fe=!1,pl=null,Rt=!1,er=Error(o(519));function bl(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Tn(Ot(t,e)),er}function Jf(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[Fe]=e,t[rt]=a,l){case"dialog":ue("cancel",t),ue("close",t);break;case"iframe":case"object":case"embed":ue("load",t);break;case"video":case"audio":for(l=0;l<In.length;l++)ue(In[l],t);break;case"source":ue("error",t);break;case"img":case"image":case"link":ue("error",t),ue("load",t);break;case"details":ue("toggle",t);break;case"input":ue("invalid",t),uf(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":ue("invalid",t);break;case"textarea":ue("invalid",t),cf(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||f0(t.textContent,l)?(a.popover!=null&&(ue("beforetoggle",t),ue("toggle",t)),a.onScroll!=null&&ue("scroll",t),a.onScrollEnd!=null&&ue("scrollend",t),a.onClick!=null&&(t.onclick=Kt),t=!0):t=!1,t||bl(e,!0)}function $f(e){for(We=e.return;We;)switch(We.tag){case 5:case 31:case 13:Rt=!1;return;case 27:case 3:Rt=!0;return;default:We=We.return}}function Ua(e){if(e!==We)return!1;if(!fe)return $f(e),fe=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||pc(e.type,e.memoizedProps)),l=!l),l&&Ae&&bl(e),$f(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Ae=x0(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Ae=x0(e)}else t===27?(t=Ae,Dl(e.type)?(e=wc,wc=null,Ae=e):Ae=t):Ae=We?_t(e.stateNode.nextSibling):null;return!0}function la(){Ae=We=null,fe=!1}function tr(){var e=pl;return e!==null&&(ht===null?ht=e:ht.push.apply(ht,e),pl=null),e}function Tn(e){pl===null?pl=[e]:pl.push(e)}var lr=S(null),aa=null,Wt=null;function xl(e,t,l){Y(lr,t._currentValue),t._currentValue=l}function It(e){e._currentValue=lr.current,U(lr)}function ar(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function nr(e,t,l,a){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var s=i.dependencies;if(s!==null){var f=i.child;s=s.firstContext;e:for(;s!==null;){var d=s;s=i;for(var b=0;b<t.length;b++)if(d.context===t[b]){s.lanes|=l,d=s.alternate,d!==null&&(d.lanes|=l),ar(s.return,l,e),a||(f=null);break e}s=d.next}}else if(i.tag===18){if(f=i.return,f===null)throw Error(o(341));f.lanes|=l,s=f.alternate,s!==null&&(s.lanes|=l),ar(f,l,e),f=null}else f=i.child;if(f!==null)f.return=i;else for(f=i;f!==null;){if(f===e){f=null;break}if(i=f.sibling,i!==null){i.return=f.return,f=i;break}f=f.return}i=f}}function La(e,t,l,a){e=null;for(var i=t,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 f=i.alternate;if(f===null)throw Error(o(387));if(f=f.memoizedProps,f!==null){var d=i.type;pt(i.pendingProps.value,f.value)||(e!==null?e.push(d):e=[d])}}else if(i===be.current){if(f=i.alternate,f===null)throw Error(o(387));f.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(ai):e=[ai])}i=i.return}e!==null&&nr(t,e,l,a),t.flags|=262144}function Vi(e){for(e=e.firstContext;e!==null;){if(!pt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function na(e){aa=e,Wt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ie(e){return Ff(aa,e)}function Zi(e,t){return aa===null&&na(e),Ff(e,t)}function Ff(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Wt===null){if(e===null)throw Error(o(308));Wt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Wt=Wt.next=t;return l}var Cy=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},zy=n.unstable_scheduleCallback,Ay=n.unstable_NormalPriority,Qe={$$typeof:k,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ir(){return{controller:new Cy,data:new Map,refCount:0}}function Mn(e){e.refCount--,e.refCount===0&&zy(Ay,function(){e.controller.abort()})}var Rn=null,sr=0,Ba=0,qa=null;function Oy(e,t){if(Rn===null){var l=Rn=[];sr=0,Ba=cc(),qa={status:"pending",value:void 0,then:function(a){l.push(a)}}}return sr++,t.then(Wf,Wf),t}function Wf(){if(--sr===0&&Rn!==null){qa!==null&&(qa.status="fulfilled");var e=Rn;Rn=null,Ba=0,qa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ty(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(i){l.push(i)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var i=0;i<l.length;i++)(0,l[i])(t)},function(i){for(a.status="rejected",a.reason=i,i=0;i<l.length;i++)(0,l[i])(void 0)}),a}var If=T.S;T.S=function(e,t){Uh=gt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Oy(e,t),If!==null&&If(e,t)};var ia=S(null);function ur(){var e=ia.current;return e!==null?e:ze.pooledCache}function Xi(e,t){t===null?Y(ia,ia.current):Y(ia,t.pool)}function Pf(){var e=ur();return e===null?null:{parent:Qe._currentValue,pool:e}}var Ha=Error(o(460)),rr=Error(o(474)),Ki=Error(o(542)),Ji={then:function(){}};function ed(e){return e=e.status,e==="fulfilled"||e==="rejected"}function td(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Kt,Kt),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ad(e),e;default:if(typeof t.status=="string")t.then(Kt,Kt);else{if(e=ze,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=a}},function(a){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ad(e),e}throw ua=t,Ha}}function sa(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(ua=l,Ha):l}}var ua=null;function ld(){if(ua===null)throw Error(o(459));var e=ua;return ua=null,e}function ad(e){if(e===Ha||e===Ki)throw Error(o(483))}var Qa=null,Dn=0;function $i(e){var t=Dn;return Dn+=1,Qa===null&&(Qa=[]),td(Qa,e,t)}function _n(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Fi(e,t){throw t.$$typeof===B?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function nd(e){function t(w,j){if(e){var E=w.deletions;E===null?(w.deletions=[j],w.flags|=16):E.push(j)}}function l(w,j){if(!e)return null;for(;j!==null;)t(w,j),j=j.sibling;return null}function a(w){for(var j=new Map;w!==null;)w.key!==null?j.set(w.key,w):j.set(w.index,w),w=w.sibling;return j}function i(w,j){return w=$t(w,j),w.index=0,w.sibling=null,w}function s(w,j,E){return w.index=E,e?(E=w.alternate,E!==null?(E=E.index,E<j?(w.flags|=67108866,j):E):(w.flags|=67108866,j)):(w.flags|=1048576,j)}function f(w){return e&&w.alternate===null&&(w.flags|=67108866),w}function d(w,j,E,D){return j===null||j.tag!==6?(j=Fu(E,w.mode,D),j.return=w,j):(j=i(j,E),j.return=w,j)}function b(w,j,E,D){var F=E.type;return F===M?R(w,j,E.props.children,D,E.key):j!==null&&(j.elementType===F||typeof F=="object"&&F!==null&&F.$$typeof===ee&&sa(F)===j.type)?(j=i(j,E.props),_n(j,E),j.return=w,j):(j=Yi(E.type,E.key,E.props,null,w.mode,D),_n(j,E),j.return=w,j)}function C(w,j,E,D){return j===null||j.tag!==4||j.stateNode.containerInfo!==E.containerInfo||j.stateNode.implementation!==E.implementation?(j=Wu(E,w.mode,D),j.return=w,j):(j=i(j,E.children||[]),j.return=w,j)}function R(w,j,E,D,F){return j===null||j.tag!==7?(j=ta(E,w.mode,D,F),j.return=w,j):(j=i(j,E),j.return=w,j)}function _(w,j,E){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=Fu(""+j,w.mode,E),j.return=w,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case V:return E=Yi(j.type,j.key,j.props,null,w.mode,E),_n(E,j),E.return=w,E;case H:return j=Wu(j,w.mode,E),j.return=w,j;case ee:return j=sa(j),_(w,j,E)}if(He(j)||J(j))return j=ta(j,w.mode,E,null),j.return=w,j;if(typeof j.then=="function")return _(w,$i(j),E);if(j.$$typeof===k)return _(w,Zi(w,j),E);Fi(w,j)}return null}function z(w,j,E,D){var F=j!==null?j.key:null;if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return F!==null?null:d(w,j,""+E,D);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case V:return E.key===F?b(w,j,E,D):null;case H:return E.key===F?C(w,j,E,D):null;case ee:return E=sa(E),z(w,j,E,D)}if(He(E)||J(E))return F!==null?null:R(w,j,E,D,null);if(typeof E.then=="function")return z(w,j,$i(E),D);if(E.$$typeof===k)return z(w,j,Zi(w,E),D);Fi(w,E)}return null}function O(w,j,E,D,F){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return w=w.get(E)||null,d(j,w,""+D,F);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case V:return w=w.get(D.key===null?E:D.key)||null,b(j,w,D,F);case H:return w=w.get(D.key===null?E:D.key)||null,C(j,w,D,F);case ee:return D=sa(D),O(w,j,E,D,F)}if(He(D)||J(D))return w=w.get(E)||null,R(j,w,D,F,null);if(typeof D.then=="function")return O(w,j,E,$i(D),F);if(D.$$typeof===k)return O(w,j,E,Zi(j,D),F);Fi(j,D)}return null}function G(w,j,E,D){for(var F=null,me=null,X=j,ae=j=0,ce=null;X!==null&&ae<E.length;ae++){X.index>ae?(ce=X,X=null):ce=X.sibling;var ge=z(w,X,E[ae],D);if(ge===null){X===null&&(X=ce);break}e&&X&&ge.alternate===null&&t(w,X),j=s(ge,j,ae),me===null?F=ge:me.sibling=ge,me=ge,X=ce}if(ae===E.length)return l(w,X),fe&&Ft(w,ae),F;if(X===null){for(;ae<E.length;ae++)X=_(w,E[ae],D),X!==null&&(j=s(X,j,ae),me===null?F=X:me.sibling=X,me=X);return fe&&Ft(w,ae),F}for(X=a(X);ae<E.length;ae++)ce=O(X,w,ae,E[ae],D),ce!==null&&(e&&ce.alternate!==null&&X.delete(ce.key===null?ae:ce.key),j=s(ce,j,ae),me===null?F=ce:me.sibling=ce,me=ce);return e&&X.forEach(function(ql){return t(w,ql)}),fe&&Ft(w,ae),F}function W(w,j,E,D){if(E==null)throw Error(o(151));for(var F=null,me=null,X=j,ae=j=0,ce=null,ge=E.next();X!==null&&!ge.done;ae++,ge=E.next()){X.index>ae?(ce=X,X=null):ce=X.sibling;var ql=z(w,X,ge.value,D);if(ql===null){X===null&&(X=ce);break}e&&X&&ql.alternate===null&&t(w,X),j=s(ql,j,ae),me===null?F=ql:me.sibling=ql,me=ql,X=ce}if(ge.done)return l(w,X),fe&&Ft(w,ae),F;if(X===null){for(;!ge.done;ae++,ge=E.next())ge=_(w,ge.value,D),ge!==null&&(j=s(ge,j,ae),me===null?F=ge:me.sibling=ge,me=ge);return fe&&Ft(w,ae),F}for(X=a(X);!ge.done;ae++,ge=E.next())ge=O(X,w,ae,ge.value,D),ge!==null&&(e&&ge.alternate!==null&&X.delete(ge.key===null?ae:ge.key),j=s(ge,j,ae),me===null?F=ge:me.sibling=ge,me=ge);return e&&X.forEach(function(kp){return t(w,kp)}),fe&&Ft(w,ae),F}function Ee(w,j,E,D){if(typeof E=="object"&&E!==null&&E.type===M&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case V:e:{for(var F=E.key;j!==null;){if(j.key===F){if(F=E.type,F===M){if(j.tag===7){l(w,j.sibling),D=i(j,E.props.children),D.return=w,w=D;break e}}else if(j.elementType===F||typeof F=="object"&&F!==null&&F.$$typeof===ee&&sa(F)===j.type){l(w,j.sibling),D=i(j,E.props),_n(D,E),D.return=w,w=D;break e}l(w,j);break}else t(w,j);j=j.sibling}E.type===M?(D=ta(E.props.children,w.mode,D,E.key),D.return=w,w=D):(D=Yi(E.type,E.key,E.props,null,w.mode,D),_n(D,E),D.return=w,w=D)}return f(w);case H:e:{for(F=E.key;j!==null;){if(j.key===F)if(j.tag===4&&j.stateNode.containerInfo===E.containerInfo&&j.stateNode.implementation===E.implementation){l(w,j.sibling),D=i(j,E.children||[]),D.return=w,w=D;break e}else{l(w,j);break}else t(w,j);j=j.sibling}D=Wu(E,w.mode,D),D.return=w,w=D}return f(w);case ee:return E=sa(E),Ee(w,j,E,D)}if(He(E))return G(w,j,E,D);if(J(E)){if(F=J(E),typeof F!="function")throw Error(o(150));return E=F.call(E),W(w,j,E,D)}if(typeof E.then=="function")return Ee(w,j,$i(E),D);if(E.$$typeof===k)return Ee(w,j,Zi(w,E),D);Fi(w,E)}return typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint"?(E=""+E,j!==null&&j.tag===6?(l(w,j.sibling),D=i(j,E),D.return=w,w=D):(l(w,j),D=Fu(E,w.mode,D),D.return=w,w=D),f(w)):l(w,j)}return function(w,j,E,D){try{Dn=0;var F=Ee(w,j,E,D);return Qa=null,F}catch(X){if(X===Ha||X===Ki)throw X;var me=bt(29,X,null,w.mode);return me.lanes=D,me.return=w,me}finally{}}}var ra=nd(!0),id=nd(!1),jl=!1;function cr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function or(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Sl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function wl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(ye&2)!==0){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=ki(e),Yf(e,null,l),t}return Qi(e,a,t,l),ki(e)}function Un(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,$o(e,l)}}function fr(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var i=null,s=null;if(l=l.firstBaseUpdate,l!==null){do{var f={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};s===null?i=s=f:s=s.next=f,l=l.next}while(l!==null);s===null?i=s=t:s=s.next=t}else i=s=t;l={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var dr=!1;function Ln(){if(dr){var e=qa;if(e!==null)throw e}}function Bn(e,t,l,a){dr=!1;var i=e.updateQueue;jl=!1;var s=i.firstBaseUpdate,f=i.lastBaseUpdate,d=i.shared.pending;if(d!==null){i.shared.pending=null;var b=d,C=b.next;b.next=null,f===null?s=C:f.next=C,f=b;var R=e.alternate;R!==null&&(R=R.updateQueue,d=R.lastBaseUpdate,d!==f&&(d===null?R.firstBaseUpdate=C:d.next=C,R.lastBaseUpdate=b))}if(s!==null){var _=i.baseState;f=0,R=C=b=null,d=s;do{var z=d.lane&-536870913,O=z!==d.lane;if(O?(re&z)===z:(a&z)===z){z!==0&&z===Ba&&(dr=!0),R!==null&&(R=R.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var G=e,W=d;z=t;var Ee=l;switch(W.tag){case 1:if(G=W.payload,typeof G=="function"){_=G.call(Ee,_,z);break e}_=G;break e;case 3:G.flags=G.flags&-65537|128;case 0:if(G=W.payload,z=typeof G=="function"?G.call(Ee,_,z):G,z==null)break e;_=A({},_,z);break e;case 2:jl=!0}}z=d.callback,z!==null&&(e.flags|=64,O&&(e.flags|=8192),O=i.callbacks,O===null?i.callbacks=[z]:O.push(z))}else O={lane:z,tag:d.tag,payload:d.payload,callback:d.callback,next:null},R===null?(C=R=O,b=_):R=R.next=O,f|=z;if(d=d.next,d===null){if(d=i.shared.pending,d===null)break;O=d,d=O.next,O.next=null,i.lastBaseUpdate=O,i.shared.pending=null}}while(!0);R===null&&(b=_),i.baseState=b,i.firstBaseUpdate=C,i.lastBaseUpdate=R,s===null&&(i.shared.lanes=0),Al|=f,e.lanes=f,e.memoizedState=_}}function sd(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function ud(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)sd(l[e],t)}var ka=S(null),Wi=S(0);function rd(e,t){e=ul,Y(Wi,e),Y(ka,t),ul=e|t.baseLanes}function hr(){Y(Wi,ul),Y(ka,ka.current)}function mr(){ul=Wi.current,U(ka),U(Wi)}var xt=S(null),Dt=null;function Nl(e){var t=e.alternate;Y(Be,Be.current&1),Y(xt,e),Dt===null&&(t===null||ka.current!==null||t.memoizedState!==null)&&(Dt=e)}function gr(e){Y(Be,Be.current),Y(xt,e),Dt===null&&(Dt=e)}function cd(e){e.tag===22?(Y(Be,Be.current),Y(xt,e),Dt===null&&(Dt=e)):El()}function El(){Y(Be,Be.current),Y(xt,xt.current)}function jt(e){U(xt),Dt===e&&(Dt=null),U(Be)}var Be=S(0);function Ii(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||jc(l)||Sc(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Pt=0,le=null,we=null,ke=null,Pi=!1,Ya=!1,ca=!1,es=0,qn=0,Ga=null,My=0;function _e(){throw Error(o(321))}function vr(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!pt(e[l],t[l]))return!1;return!0}function yr(e,t,l,a,i,s){return Pt=s,le=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,T.H=e===null||e.memoizedState===null?Xd:Rr,ca=!1,s=l(a,i),ca=!1,Ya&&(s=fd(t,l,a,i)),od(e),s}function od(e){T.H=kn;var t=we!==null&&we.next!==null;if(Pt=0,ke=we=le=null,Pi=!1,qn=0,Ga=null,t)throw Error(o(300));e===null||Ye||(e=e.dependencies,e!==null&&Vi(e)&&(Ye=!0))}function fd(e,t,l,a){le=e;var i=0;do{if(Ya&&(Ga=null),qn=0,Ya=!1,25<=i)throw Error(o(301));if(i+=1,ke=we=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}T.H=Kd,s=t(l,a)}while(Ya);return s}function Ry(){var e=T.H,t=e.useState()[0];return t=typeof t.then=="function"?Hn(t):t,e=e.useState()[0],(we!==null?we.memoizedState:null)!==e&&(le.flags|=1024),t}function pr(){var e=es!==0;return es=0,e}function br(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function xr(e){if(Pi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Pi=!1}Pt=0,ke=we=le=null,Ya=!1,qn=es=0,Ga=null}function st(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ke===null?le.memoizedState=ke=e:ke=ke.next=e,ke}function qe(){if(we===null){var e=le.alternate;e=e!==null?e.memoizedState:null}else e=we.next;var t=ke===null?le.memoizedState:ke.next;if(t!==null)ke=t,we=e;else{if(e===null)throw le.alternate===null?Error(o(467)):Error(o(310));we=e,e={memoizedState:we.memoizedState,baseState:we.baseState,baseQueue:we.baseQueue,queue:we.queue,next:null},ke===null?le.memoizedState=ke=e:ke=ke.next=e}return ke}function ts(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Hn(e){var t=qn;return qn+=1,Ga===null&&(Ga=[]),e=td(Ga,e,t),t=le,(ke===null?t.memoizedState:ke.next)===null&&(t=t.alternate,T.H=t===null||t.memoizedState===null?Xd:Rr),e}function ls(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Hn(e);if(e.$$typeof===k)return Ie(e)}throw Error(o(438,String(e)))}function jr(e){var t=null,l=le.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=le.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=ts(),le.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=Me;return t.index++,l}function el(e,t){return typeof t=="function"?t(e):t}function as(e){var t=qe();return Sr(t,we,e)}function Sr(e,t,l){var a=e.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=l;var i=e.baseQueue,s=a.pending;if(s!==null){if(i!==null){var f=i.next;i.next=s.next,s.next=f}t.baseQueue=i=s,a.pending=null}if(s=e.baseState,i===null)e.memoizedState=s;else{t=i.next;var d=f=null,b=null,C=t,R=!1;do{var _=C.lane&-536870913;if(_!==C.lane?(re&_)===_:(Pt&_)===_){var z=C.revertLane;if(z===0)b!==null&&(b=b.next={lane:0,revertLane:0,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null}),_===Ba&&(R=!0);else if((Pt&z)===z){C=C.next,z===Ba&&(R=!0);continue}else _={lane:0,revertLane:C.revertLane,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},b===null?(d=b=_,f=s):b=b.next=_,le.lanes|=z,Al|=z;_=C.action,ca&&l(s,_),s=C.hasEagerState?C.eagerState:l(s,_)}else z={lane:_,revertLane:C.revertLane,gesture:C.gesture,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},b===null?(d=b=z,f=s):b=b.next=z,le.lanes|=_,Al|=_;C=C.next}while(C!==null&&C!==t);if(b===null?f=s:b.next=d,!pt(s,e.memoizedState)&&(Ye=!0,R&&(l=qa,l!==null)))throw l;e.memoizedState=s,e.baseState=f,e.baseQueue=b,a.lastRenderedState=s}return i===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function wr(e){var t=qe(),l=t.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=e;var a=l.dispatch,i=l.pending,s=t.memoizedState;if(i!==null){l.pending=null;var f=i=i.next;do s=e(s,f.action),f=f.next;while(f!==i);pt(s,t.memoizedState)||(Ye=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),l.lastRenderedState=s}return[s,a]}function dd(e,t,l){var a=le,i=qe(),s=fe;if(s){if(l===void 0)throw Error(o(407));l=l()}else l=t();var f=!pt((we||i).memoizedState,l);if(f&&(i.memoizedState=l,Ye=!0),i=i.queue,Cr(gd.bind(null,a,i,e),[e]),i.getSnapshot!==t||f||ke!==null&&ke.memoizedState.tag&1){if(a.flags|=2048,Va(9,{destroy:void 0},md.bind(null,a,i,l,t),null),ze===null)throw Error(o(349));s||(Pt&127)!==0||hd(a,t,l)}return l}function hd(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=le.updateQueue,t===null?(t=ts(),le.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function md(e,t,l,a){t.value=l,t.getSnapshot=a,vd(t)&&yd(e)}function gd(e,t,l){return l(function(){vd(t)&&yd(e)})}function vd(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!pt(e,l)}catch{return!0}}function yd(e){var t=ea(e,2);t!==null&&mt(t,e,2)}function Nr(e){var t=st();if(typeof e=="function"){var l=e;if(e=l(),ca){ml(!0);try{l()}finally{ml(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:el,lastRenderedState:e},t}function pd(e,t,l,a){return e.baseState=l,Sr(e,we,typeof a=="function"?a:el)}function Dy(e,t,l,a,i){if(ss(e))throw Error(o(485));if(e=t.action,e!==null){var s={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){s.listeners.push(f)}};T.T!==null?l(!0):s.isTransition=!1,a(s),l=t.pending,l===null?(s.next=t.pending=s,bd(t,s)):(s.next=l.next,t.pending=l.next=s)}}function bd(e,t){var l=t.action,a=t.payload,i=e.state;if(t.isTransition){var s=T.T,f={};T.T=f;try{var d=l(i,a),b=T.S;b!==null&&b(f,d),xd(e,t,d)}catch(C){Er(e,t,C)}finally{s!==null&&f.types!==null&&(s.types=f.types),T.T=s}}else try{s=l(i,a),xd(e,t,s)}catch(C){Er(e,t,C)}}function xd(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){jd(e,t,a)},function(a){return Er(e,t,a)}):jd(e,t,l)}function jd(e,t,l){t.status="fulfilled",t.value=l,Sd(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,bd(e,l)))}function Er(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,Sd(t),t=t.next;while(t!==a)}e.action=null}function Sd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function wd(e,t){return t}function Nd(e,t){if(fe){var l=ze.formState;if(l!==null){e:{var a=le;if(fe){if(Ae){t:{for(var i=Ae,s=Rt;i.nodeType!==8;){if(!s){i=null;break t}if(i=_t(i.nextSibling),i===null){i=null;break t}}s=i.data,i=s==="F!"||s==="F"?i:null}if(i){Ae=_t(i.nextSibling),a=i.data==="F!";break e}}bl(a)}a=!1}a&&(t=l[0])}}return l=st(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:wd,lastRenderedState:t},l.queue=a,l=Gd.bind(null,le,a),a.dispatch=l,a=Nr(!1),s=Mr.bind(null,le,!1,a.queue),a=st(),i={state:t,dispatch:null,action:e,pending:null},a.queue=i,l=Dy.bind(null,le,i,s,l),i.dispatch=l,a.memoizedState=e,[t,l,!1]}function Ed(e){var t=qe();return Cd(t,we,e)}function Cd(e,t,l){if(t=Sr(e,t,wd)[0],e=as(el)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Hn(t)}catch(f){throw f===Ha?Ki:f}else a=t;t=qe();var i=t.queue,s=i.dispatch;return l!==t.memoizedState&&(le.flags|=2048,Va(9,{destroy:void 0},_y.bind(null,i,l),null)),[a,s,e]}function _y(e,t){e.action=t}function zd(e){var t=qe(),l=we;if(l!==null)return Cd(t,l,e);qe(),t=t.memoizedState,l=qe();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Va(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=le.updateQueue,t===null&&(t=ts(),le.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function Ad(){return qe().memoizedState}function ns(e,t,l,a){var i=st();le.flags|=e,i.memoizedState=Va(1|t,{destroy:void 0},l,a===void 0?null:a)}function is(e,t,l,a){var i=qe();a=a===void 0?null:a;var s=i.memoizedState.inst;we!==null&&a!==null&&vr(a,we.memoizedState.deps)?i.memoizedState=Va(t,s,l,a):(le.flags|=e,i.memoizedState=Va(1|t,s,l,a))}function Od(e,t){ns(8390656,8,e,t)}function Cr(e,t){is(2048,8,e,t)}function Uy(e){le.flags|=4;var t=le.updateQueue;if(t===null)t=ts(),le.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Td(e){var t=qe().memoizedState;return Uy({ref:t,nextImpl:e}),function(){if((ye&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function Md(e,t){return is(4,2,e,t)}function Rd(e,t){return is(4,4,e,t)}function Dd(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function _d(e,t,l){l=l!=null?l.concat([e]):null,is(4,4,Dd.bind(null,t,e),l)}function zr(){}function Ud(e,t){var l=qe();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&vr(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function Ld(e,t){var l=qe();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&vr(t,a[1]))return a[0];if(a=e(),ca){ml(!0);try{e()}finally{ml(!1)}}return l.memoizedState=[a,t],a}function Ar(e,t,l){return l===void 0||(Pt&1073741824)!==0&&(re&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Bh(),le.lanes|=e,Al|=e,l)}function Bd(e,t,l,a){return pt(l,t)?l:ka.current!==null?(e=Ar(e,l,a),pt(e,t)||(Ye=!0),e):(Pt&42)===0||(Pt&1073741824)!==0&&(re&261930)===0?(Ye=!0,e.memoizedState=l):(e=Bh(),le.lanes|=e,Al|=e,t)}function qd(e,t,l,a,i){var s=Q.p;Q.p=s!==0&&8>s?s:8;var f=T.T,d={};T.T=d,Mr(e,!1,t,l);try{var b=i(),C=T.S;if(C!==null&&C(d,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){var R=Ty(b,a);Qn(e,t,R,Nt(e))}else Qn(e,t,a,Nt(e))}catch(_){Qn(e,t,{then:function(){},status:"rejected",reason:_},Nt())}finally{Q.p=s,f!==null&&d.types!==null&&(f.types=d.types),T.T=f}}function Ly(){}function Or(e,t,l,a){if(e.tag!==5)throw Error(o(476));var i=Hd(e).queue;qd(e,i,t,I,l===null?Ly:function(){return Qd(e),l(a)})}function Hd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:el,lastRenderedState:I},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:el,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Qd(e){var t=Hd(e);t.next===null&&(t=e.alternate.memoizedState),Qn(e,t.next.queue,{},Nt())}function Tr(){return Ie(ai)}function kd(){return qe().memoizedState}function Yd(){return qe().memoizedState}function By(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Nt();e=Sl(l);var a=wl(t,e,l);a!==null&&(mt(a,t,l),Un(a,t,l)),t={cache:ir()},e.payload=t;return}t=t.return}}function qy(e,t,l){var a=Nt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},ss(e)?Vd(t,l):(l=Ju(e,t,l,a),l!==null&&(mt(l,e,a),Zd(l,t,a)))}function Gd(e,t,l){var a=Nt();Qn(e,t,l,a)}function Qn(e,t,l,a){var i={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(ss(e))Vd(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var f=t.lastRenderedState,d=s(f,l);if(i.hasEagerState=!0,i.eagerState=d,pt(d,f))return Qi(e,t,i,0),ze===null&&Hi(),!1}catch{}finally{}if(l=Ju(e,t,i,a),l!==null)return mt(l,e,a),Zd(l,t,a),!0}return!1}function Mr(e,t,l,a){if(a={lane:2,revertLane:cc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ss(e)){if(t)throw Error(o(479))}else t=Ju(e,l,a,2),t!==null&&mt(t,e,2)}function ss(e){var t=e.alternate;return e===le||t!==null&&t===le}function Vd(e,t){Ya=Pi=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Zd(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,$o(e,l)}}var kn={readContext:Ie,use:ls,useCallback:_e,useContext:_e,useEffect:_e,useImperativeHandle:_e,useLayoutEffect:_e,useInsertionEffect:_e,useMemo:_e,useReducer:_e,useRef:_e,useState:_e,useDebugValue:_e,useDeferredValue:_e,useTransition:_e,useSyncExternalStore:_e,useId:_e,useHostTransitionStatus:_e,useFormState:_e,useActionState:_e,useOptimistic:_e,useMemoCache:_e,useCacheRefresh:_e};kn.useEffectEvent=_e;var Xd={readContext:Ie,use:ls,useCallback:function(e,t){return st().memoizedState=[e,t===void 0?null:t],e},useContext:Ie,useEffect:Od,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,ns(4194308,4,Dd.bind(null,t,e),l)},useLayoutEffect:function(e,t){return ns(4194308,4,e,t)},useInsertionEffect:function(e,t){ns(4,2,e,t)},useMemo:function(e,t){var l=st();t=t===void 0?null:t;var a=e();if(ca){ml(!0);try{e()}finally{ml(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=st();if(l!==void 0){var i=l(t);if(ca){ml(!0);try{l(t)}finally{ml(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=qy.bind(null,le,e),[a.memoizedState,e]},useRef:function(e){var t=st();return e={current:e},t.memoizedState=e},useState:function(e){e=Nr(e);var t=e.queue,l=Gd.bind(null,le,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:zr,useDeferredValue:function(e,t){var l=st();return Ar(l,e,t)},useTransition:function(){var e=Nr(!1);return e=qd.bind(null,le,e.queue,!0,!1),st().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=le,i=st();if(fe){if(l===void 0)throw Error(o(407));l=l()}else{if(l=t(),ze===null)throw Error(o(349));(re&127)!==0||hd(a,t,l)}i.memoizedState=l;var s={value:l,getSnapshot:t};return i.queue=s,Od(gd.bind(null,a,s,e),[e]),a.flags|=2048,Va(9,{destroy:void 0},md.bind(null,a,s,l,t),null),l},useId:function(){var e=st(),t=ze.identifierPrefix;if(fe){var l=Gt,a=Yt;l=(a&~(1<<32-yt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=es++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=My++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Tr,useFormState:Nd,useActionState:Nd,useOptimistic:function(e){var t=st();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Mr.bind(null,le,!0,l),l.dispatch=t,[e,t]},useMemoCache:jr,useCacheRefresh:function(){return st().memoizedState=By.bind(null,le)},useEffectEvent:function(e){var t=st(),l={impl:e};return t.memoizedState=l,function(){if((ye&2)!==0)throw Error(o(440));return l.impl.apply(void 0,arguments)}}},Rr={readContext:Ie,use:ls,useCallback:Ud,useContext:Ie,useEffect:Cr,useImperativeHandle:_d,useInsertionEffect:Md,useLayoutEffect:Rd,useMemo:Ld,useReducer:as,useRef:Ad,useState:function(){return as(el)},useDebugValue:zr,useDeferredValue:function(e,t){var l=qe();return Bd(l,we.memoizedState,e,t)},useTransition:function(){var e=as(el)[0],t=qe().memoizedState;return[typeof e=="boolean"?e:Hn(e),t]},useSyncExternalStore:dd,useId:kd,useHostTransitionStatus:Tr,useFormState:Ed,useActionState:Ed,useOptimistic:function(e,t){var l=qe();return pd(l,we,e,t)},useMemoCache:jr,useCacheRefresh:Yd};Rr.useEffectEvent=Td;var Kd={readContext:Ie,use:ls,useCallback:Ud,useContext:Ie,useEffect:Cr,useImperativeHandle:_d,useInsertionEffect:Md,useLayoutEffect:Rd,useMemo:Ld,useReducer:wr,useRef:Ad,useState:function(){return wr(el)},useDebugValue:zr,useDeferredValue:function(e,t){var l=qe();return we===null?Ar(l,e,t):Bd(l,we.memoizedState,e,t)},useTransition:function(){var e=wr(el)[0],t=qe().memoizedState;return[typeof e=="boolean"?e:Hn(e),t]},useSyncExternalStore:dd,useId:kd,useHostTransitionStatus:Tr,useFormState:zd,useActionState:zd,useOptimistic:function(e,t){var l=qe();return we!==null?pd(l,we,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:jr,useCacheRefresh:Yd};Kd.useEffectEvent=Td;function Dr(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:A({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var _r={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=Nt(),i=Sl(a);i.payload=t,l!=null&&(i.callback=l),t=wl(e,i,a),t!==null&&(mt(t,e,a),Un(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=Nt(),i=Sl(a);i.tag=1,i.payload=t,l!=null&&(i.callback=l),t=wl(e,i,a),t!==null&&(mt(t,e,a),Un(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Nt(),a=Sl(l);a.tag=2,t!=null&&(a.callback=t),t=wl(e,a,l),t!==null&&(mt(t,e,l),Un(t,e,l))}};function Jd(e,t,l,a,i,s,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,s,f):t.prototype&&t.prototype.isPureReactComponent?!zn(l,a)||!zn(i,s):!0}function $d(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&_r.enqueueReplaceState(t,t.state,null)}function oa(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=A({},l));for(var i in e)l[i]===void 0&&(l[i]=e[i])}return l}function Fd(e){qi(e)}function Wd(e){console.error(e)}function Id(e){qi(e)}function us(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Pd(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function Ur(e,t,l){return l=Sl(l),l.tag=3,l.payload={element:null},l.callback=function(){us(e,t)},l}function eh(e){return e=Sl(e),e.tag=3,e}function th(e,t,l,a){var i=l.type.getDerivedStateFromError;if(typeof i=="function"){var s=a.value;e.payload=function(){return i(s)},e.callback=function(){Pd(t,l,a)}}var f=l.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(e.callback=function(){Pd(t,l,a),typeof i!="function"&&(Ol===null?Ol=new Set([this]):Ol.add(this));var d=a.stack;this.componentDidCatch(a.value,{componentStack:d!==null?d:""})})}function Hy(e,t,l,a,i){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&La(t,l,i,!0),l=xt.current,l!==null){switch(l.tag){case 31:case 13:return Dt===null?bs():l.alternate===null&&Ue===0&&(Ue=3),l.flags&=-257,l.flags|=65536,l.lanes=i,a===Ji?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),sc(e,a,i)),!1;case 22:return l.flags|=65536,a===Ji?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),sc(e,a,i)),!1}throw Error(o(435,l.tag))}return sc(e,a,i),bs(),!1}if(fe)return t=xt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,a!==er&&(e=Error(o(422),{cause:a}),Tn(Ot(e,l)))):(a!==er&&(t=Error(o(423),{cause:a}),Tn(Ot(t,l))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,a=Ot(a,l),i=Ur(e.stateNode,a,i),fr(e,i),Ue!==4&&(Ue=2)),!1;var s=Error(o(520),{cause:a});if(s=Ot(s,l),$n===null?$n=[s]:$n.push(s),Ue!==4&&(Ue=2),t===null)return!0;a=Ot(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=i&-i,l.lanes|=e,e=Ur(l.stateNode,a,e),fr(l,e),!1;case 1:if(t=l.type,s=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(Ol===null||!Ol.has(s))))return l.flags|=65536,i&=-i,l.lanes|=i,i=eh(i),th(i,e,l,a),fr(l,i),!1}l=l.return}while(l!==null);return!1}var Lr=Error(o(461)),Ye=!1;function Pe(e,t,l,a){t.child=e===null?id(t,null,l,a):ra(t,e.child,l,a)}function lh(e,t,l,a,i){l=l.render;var s=t.ref;if("ref"in a){var f={};for(var d in a)d!=="ref"&&(f[d]=a[d])}else f=a;return na(t),a=yr(e,t,l,f,s,i),d=pr(),e!==null&&!Ye?(br(e,t,i),tl(e,t,i)):(fe&&d&&Iu(t),t.flags|=1,Pe(e,t,a,i),t.child)}function ah(e,t,l,a,i){if(e===null){var s=l.type;return typeof s=="function"&&!$u(s)&&s.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=s,nh(e,t,s,a,i)):(e=Yi(l.type,null,a,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!Vr(e,i)){var f=s.memoizedProps;if(l=l.compare,l=l!==null?l:zn,l(f,a)&&e.ref===t.ref)return tl(e,t,i)}return t.flags|=1,e=$t(s,a),e.ref=t.ref,e.return=t,t.child=e}function nh(e,t,l,a,i){if(e!==null){var s=e.memoizedProps;if(zn(s,a)&&e.ref===t.ref)if(Ye=!1,t.pendingProps=a=s,Vr(e,i))(e.flags&131072)!==0&&(Ye=!0);else return t.lanes=e.lanes,tl(e,t,i)}return Br(e,t,l,a,i)}function ih(e,t,l,a){var i=a.children,s=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(s=s!==null?s.baseLanes|l:l,e!==null){for(a=t.child=e.child,i=0;a!==null;)i=i|a.lanes|a.childLanes,a=a.sibling;a=i&~s}else a=0,t.child=null;return sh(e,t,s,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Xi(t,s!==null?s.cachePool:null),s!==null?rd(t,s):hr(),cd(t);else return a=t.lanes=536870912,sh(e,t,s!==null?s.baseLanes|l:l,l,a)}else s!==null?(Xi(t,s.cachePool),rd(t,s),El(),t.memoizedState=null):(e!==null&&Xi(t,null),hr(),El());return Pe(e,t,i,l),t.child}function Yn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function sh(e,t,l,a,i){var s=ur();return s=s===null?null:{parent:Qe._currentValue,pool:s},t.memoizedState={baseLanes:l,cachePool:s},e!==null&&Xi(t,null),hr(),cd(t),e!==null&&La(e,t,a,!0),t.childLanes=i,null}function rs(e,t){return t=os({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function uh(e,t,l){return ra(t,e.child,null,l),e=rs(t,t.pendingProps),e.flags|=2,jt(t),t.memoizedState=null,e}function Qy(e,t,l){var a=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(fe){if(a.mode==="hidden")return e=rs(t,a),t.lanes=536870912,Yn(null,e);if(gr(t),(e=Ae)?(e=b0(e,Rt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:yl!==null?{id:Yt,overflow:Gt}:null,retryLane:536870912,hydrationErrors:null},l=Vf(e),l.return=t,t.child=l,We=t,Ae=null)):e=null,e===null)throw bl(t);return t.lanes=536870912,null}return rs(t,a)}var s=e.memoizedState;if(s!==null){var f=s.dehydrated;if(gr(t),i)if(t.flags&256)t.flags&=-257,t=uh(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(Ye||La(e,t,l,!1),i=(l&e.childLanes)!==0,Ye||i){if(a=ze,a!==null&&(f=Fo(a,l),f!==0&&f!==s.retryLane))throw s.retryLane=f,ea(e,f),mt(a,e,f),Lr;bs(),t=uh(e,t,l)}else e=s.treeContext,Ae=_t(f.nextSibling),We=t,fe=!0,pl=null,Rt=!1,e!==null&&Kf(t,e),t=rs(t,a),t.flags|=4096;return t}return e=$t(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function cs(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(o(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Br(e,t,l,a,i){return na(t),l=yr(e,t,l,a,void 0,i),a=pr(),e!==null&&!Ye?(br(e,t,i),tl(e,t,i)):(fe&&a&&Iu(t),t.flags|=1,Pe(e,t,l,i),t.child)}function rh(e,t,l,a,i,s){return na(t),t.updateQueue=null,l=fd(t,a,l,i),od(e),a=pr(),e!==null&&!Ye?(br(e,t,s),tl(e,t,s)):(fe&&a&&Iu(t),t.flags|=1,Pe(e,t,l,s),t.child)}function ch(e,t,l,a,i){if(na(t),t.stateNode===null){var s=Ra,f=l.contextType;typeof f=="object"&&f!==null&&(s=Ie(f)),s=new l(a,s),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=_r,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=a,s.state=t.memoizedState,s.refs={},cr(t),f=l.contextType,s.context=typeof f=="object"&&f!==null?Ie(f):Ra,s.state=t.memoizedState,f=l.getDerivedStateFromProps,typeof f=="function"&&(Dr(t,l,f,a),s.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(f=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),f!==s.state&&_r.enqueueReplaceState(s,s.state,null),Bn(t,a,s,i),Ln(),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){s=t.stateNode;var d=t.memoizedProps,b=oa(l,d);s.props=b;var C=s.context,R=l.contextType;f=Ra,typeof R=="object"&&R!==null&&(f=Ie(R));var _=l.getDerivedStateFromProps;R=typeof _=="function"||typeof s.getSnapshotBeforeUpdate=="function",d=t.pendingProps!==d,R||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(d||C!==f)&&$d(t,s,a,f),jl=!1;var z=t.memoizedState;s.state=z,Bn(t,a,s,i),Ln(),C=t.memoizedState,d||z!==C||jl?(typeof _=="function"&&(Dr(t,l,_,a),C=t.memoizedState),(b=jl||Jd(t,l,b,a,z,C,f))?(R||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"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=C),s.props=a,s.state=C,s.context=f,a=b):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{s=t.stateNode,or(e,t),f=t.memoizedProps,R=oa(l,f),s.props=R,_=t.pendingProps,z=s.context,C=l.contextType,b=Ra,typeof C=="object"&&C!==null&&(b=Ie(C)),d=l.getDerivedStateFromProps,(C=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(f!==_||z!==b)&&$d(t,s,a,b),jl=!1,z=t.memoizedState,s.state=z,Bn(t,a,s,i),Ln();var O=t.memoizedState;f!==_||z!==O||jl||e!==null&&e.dependencies!==null&&Vi(e.dependencies)?(typeof d=="function"&&(Dr(t,l,d,a),O=t.memoizedState),(R=jl||Jd(t,l,R,a,z,O,b)||e!==null&&e.dependencies!==null&&Vi(e.dependencies))?(C||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(a,O,b),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(a,O,b)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||f===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=O),s.props=a,s.state=O,s.context=b,a=R):(typeof s.componentDidUpdate!="function"||f===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),a=!1)}return s=a,cs(e,t),a=(t.flags&128)!==0,s||a?(s=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:s.render(),t.flags|=1,e!==null&&a?(t.child=ra(t,e.child,null,i),t.child=ra(t,null,l,i)):Pe(e,t,l,i),t.memoizedState=s.state,e=t.child):e=tl(e,t,i),e}function oh(e,t,l,a){return la(),t.flags|=256,Pe(e,t,l,a),t.child}var qr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Hr(e){return{baseLanes:e,cachePool:Pf()}}function Qr(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=wt),e}function fh(e,t,l){var a=t.pendingProps,i=!1,s=(t.flags&128)!==0,f;if((f=s)||(f=e!==null&&e.memoizedState===null?!1:(Be.current&2)!==0),f&&(i=!0,t.flags&=-129),f=(t.flags&32)!==0,t.flags&=-33,e===null){if(fe){if(i?Nl(t):El(),(e=Ae)?(e=b0(e,Rt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:yl!==null?{id:Yt,overflow:Gt}:null,retryLane:536870912,hydrationErrors:null},l=Vf(e),l.return=t,t.child=l,We=t,Ae=null)):e=null,e===null)throw bl(t);return Sc(e)?t.lanes=32:t.lanes=536870912,null}var d=a.children;return a=a.fallback,i?(El(),i=t.mode,d=os({mode:"hidden",children:d},i),a=ta(a,i,l,null),d.return=t,a.return=t,d.sibling=a,t.child=d,a=t.child,a.memoizedState=Hr(l),a.childLanes=Qr(e,f,l),t.memoizedState=qr,Yn(null,a)):(Nl(t),kr(t,d))}var b=e.memoizedState;if(b!==null&&(d=b.dehydrated,d!==null)){if(s)t.flags&256?(Nl(t),t.flags&=-257,t=Yr(e,t,l)):t.memoizedState!==null?(El(),t.child=e.child,t.flags|=128,t=null):(El(),d=a.fallback,i=t.mode,a=os({mode:"visible",children:a.children},i),d=ta(d,i,l,null),d.flags|=2,a.return=t,d.return=t,a.sibling=d,t.child=a,ra(t,e.child,null,l),a=t.child,a.memoizedState=Hr(l),a.childLanes=Qr(e,f,l),t.memoizedState=qr,t=Yn(null,a));else if(Nl(t),Sc(d)){if(f=d.nextSibling&&d.nextSibling.dataset,f)var C=f.dgst;f=C,a=Error(o(419)),a.stack="",a.digest=f,Tn({value:a,source:null,stack:null}),t=Yr(e,t,l)}else if(Ye||La(e,t,l,!1),f=(l&e.childLanes)!==0,Ye||f){if(f=ze,f!==null&&(a=Fo(f,l),a!==0&&a!==b.retryLane))throw b.retryLane=a,ea(e,a),mt(f,e,a),Lr;jc(d)||bs(),t=Yr(e,t,l)}else jc(d)?(t.flags|=192,t.child=e.child,t=null):(e=b.treeContext,Ae=_t(d.nextSibling),We=t,fe=!0,pl=null,Rt=!1,e!==null&&Kf(t,e),t=kr(t,a.children),t.flags|=4096);return t}return i?(El(),d=a.fallback,i=t.mode,b=e.child,C=b.sibling,a=$t(b,{mode:"hidden",children:a.children}),a.subtreeFlags=b.subtreeFlags&65011712,C!==null?d=$t(C,d):(d=ta(d,i,l,null),d.flags|=2),d.return=t,a.return=t,a.sibling=d,t.child=a,Yn(null,a),a=t.child,d=e.child.memoizedState,d===null?d=Hr(l):(i=d.cachePool,i!==null?(b=Qe._currentValue,i=i.parent!==b?{parent:b,pool:b}:i):i=Pf(),d={baseLanes:d.baseLanes|l,cachePool:i}),a.memoizedState=d,a.childLanes=Qr(e,f,l),t.memoizedState=qr,Yn(e.child,a)):(Nl(t),l=e.child,e=l.sibling,l=$t(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(f=t.deletions,f===null?(t.deletions=[e],t.flags|=16):f.push(e)),t.child=l,t.memoizedState=null,l)}function kr(e,t){return t=os({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function os(e,t){return e=bt(22,e,null,t),e.lanes=0,e}function Yr(e,t,l){return ra(t,e.child,null,l),e=kr(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function dh(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),ar(e.return,t,l)}function Gr(e,t,l,a,i,s){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:i,treeForkCount:s}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=a,f.tail=l,f.tailMode=i,f.treeForkCount=s)}function hh(e,t,l){var a=t.pendingProps,i=a.revealOrder,s=a.tail;a=a.children;var f=Be.current,d=(f&2)!==0;if(d?(f=f&1|2,t.flags|=128):f&=1,Y(Be,f),Pe(e,t,a,l),a=fe?On:0,!d&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&dh(e,l,t);else if(e.tag===19)dh(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"forwards":for(l=t.child,i=null;l!==null;)e=l.alternate,e!==null&&Ii(e)===null&&(i=l),l=l.sibling;l=i,l===null?(i=t.child,t.child=null):(i=l.sibling,l.sibling=null),Gr(t,!1,i,l,s,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Ii(e)===null){t.child=i;break}e=i.sibling,i.sibling=l,l=i,i=e}Gr(t,!0,l,null,s,a);break;case"together":Gr(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function tl(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Al|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(La(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,l=$t(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=$t(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Vr(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Vi(e)))}function ky(e,t,l){switch(t.tag){case 3:it(t,t.stateNode.containerInfo),xl(t,Qe,e.memoizedState.cache),la();break;case 27:case 5:mn(t);break;case 4:it(t,t.stateNode.containerInfo);break;case 10:xl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,gr(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Nl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?fh(e,t,l):(Nl(t),e=tl(e,t,l),e!==null?e.sibling:null);Nl(t);break;case 19:var i=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(La(e,t,l,!1),a=(l&t.childLanes)!==0),i){if(a)return hh(e,t,l);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Y(Be,Be.current),a)break;return null;case 22:return t.lanes=0,ih(e,t,l,t.pendingProps);case 24:xl(t,Qe,e.memoizedState.cache)}return tl(e,t,l)}function mh(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ye=!0;else{if(!Vr(e,l)&&(t.flags&128)===0)return Ye=!1,ky(e,t,l);Ye=(e.flags&131072)!==0}else Ye=!1,fe&&(t.flags&1048576)!==0&&Xf(t,On,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=sa(t.elementType),t.type=e,typeof e=="function")$u(e)?(a=oa(e,a),t.tag=1,t=ch(null,t,e,a,l)):(t.tag=0,t=Br(null,t,e,a,l));else{if(e!=null){var i=e.$$typeof;if(i===ne){t.tag=11,t=lh(null,t,e,a,l);break e}else if(i===K){t.tag=14,t=ah(null,t,e,a,l);break e}}throw t=De(e)||e,Error(o(306,t,""))}}return t;case 0:return Br(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,i=oa(a,t.pendingProps),ch(e,t,a,i,l);case 3:e:{if(it(t,t.stateNode.containerInfo),e===null)throw Error(o(387));a=t.pendingProps;var s=t.memoizedState;i=s.element,or(e,t),Bn(t,a,null,l);var f=t.memoizedState;if(a=f.cache,xl(t,Qe,a),a!==s.cache&&nr(t,[Qe],l,!0),Ln(),a=f.element,s.isDehydrated)if(s={element:a,isDehydrated:!1,cache:f.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=oh(e,t,a,l);break e}else if(a!==i){i=Ot(Error(o(424)),t),Tn(i),t=oh(e,t,a,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ae=_t(e.firstChild),We=t,fe=!0,pl=null,Rt=!0,l=id(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(la(),a===i){t=tl(e,t,l);break e}Pe(e,t,a,l)}t=t.child}return t;case 26:return cs(e,t),e===null?(l=E0(t.type,null,t.pendingProps,null))?t.memoizedState=l:fe||(l=t.type,e=t.pendingProps,a=Cs(ie.current).createElement(l),a[Fe]=t,a[rt]=e,et(a,l,e),Je(a),t.stateNode=a):t.memoizedState=E0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return mn(t),e===null&&fe&&(a=t.stateNode=S0(t.type,t.pendingProps,ie.current),We=t,Rt=!0,i=Ae,Dl(t.type)?(wc=i,Ae=_t(a.firstChild)):Ae=i),Pe(e,t,t.pendingProps.children,l),cs(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&fe&&((i=a=Ae)&&(a=yp(a,t.type,t.pendingProps,Rt),a!==null?(t.stateNode=a,We=t,Ae=_t(a.firstChild),Rt=!1,i=!0):i=!1),i||bl(t)),mn(t),i=t.type,s=t.pendingProps,f=e!==null?e.memoizedProps:null,a=s.children,pc(i,s)?a=null:f!==null&&pc(i,f)&&(t.flags|=32),t.memoizedState!==null&&(i=yr(e,t,Ry,null,null,l),ai._currentValue=i),cs(e,t),Pe(e,t,a,l),t.child;case 6:return e===null&&fe&&((e=l=Ae)&&(l=pp(l,t.pendingProps,Rt),l!==null?(t.stateNode=l,We=t,Ae=null,e=!0):e=!1),e||bl(t)),null;case 13:return fh(e,t,l);case 4:return it(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=ra(t,null,a,l):Pe(e,t,a,l),t.child;case 11:return lh(e,t,t.type,t.pendingProps,l);case 7:return Pe(e,t,t.pendingProps,l),t.child;case 8:return Pe(e,t,t.pendingProps.children,l),t.child;case 12:return Pe(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,xl(t,t.type,a.value),Pe(e,t,a.children,l),t.child;case 9:return i=t.type._context,a=t.pendingProps.children,na(t),i=Ie(i),a=a(i),t.flags|=1,Pe(e,t,a,l),t.child;case 14:return ah(e,t,t.type,t.pendingProps,l);case 15:return nh(e,t,t.type,t.pendingProps,l);case 19:return hh(e,t,l);case 31:return Qy(e,t,l);case 22:return ih(e,t,l,t.pendingProps);case 24:return na(t),a=Ie(Qe),e===null?(i=ur(),i===null&&(i=ze,s=ir(),i.pooledCache=s,s.refCount++,s!==null&&(i.pooledCacheLanes|=l),i=s),t.memoizedState={parent:a,cache:i},cr(t),xl(t,Qe,i)):((e.lanes&l)!==0&&(or(e,t),Bn(t,null,null,l),Ln()),i=e.memoizedState,s=t.memoizedState,i.parent!==a?(i={parent:a,cache:a},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),xl(t,Qe,a)):(a=s.cache,xl(t,Qe,a),a!==i.cache&&nr(t,[Qe],l,!0))),Pe(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function ll(e){e.flags|=4}function Zr(e,t,l,a,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(kh())e.flags|=8192;else throw ua=Ji,rr}else e.flags&=-16777217}function gh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!T0(t))if(kh())e.flags|=8192;else throw ua=Ji,rr}function fs(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ko():536870912,e.lanes|=t,Ja|=t)}function Gn(e,t){if(!fe)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Oe(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var i=e.child;i!==null;)l|=i.lanes|i.childLanes,a|=i.subtreeFlags&65011712,a|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)l|=i.lanes|i.childLanes,a|=i.subtreeFlags,a|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function Yy(e,t,l){var a=t.pendingProps;switch(Pu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Oe(t),null;case 1:return Oe(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),It(Qe),Le(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Ua(t)?ll(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,tr())),Oe(t),null;case 26:var i=t.type,s=t.memoizedState;return e===null?(ll(t),s!==null?(Oe(t),gh(t,s)):(Oe(t),Zr(t,i,null,a,l))):s?s!==e.memoizedState?(ll(t),Oe(t),gh(t,s)):(Oe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&ll(t),Oe(t),Zr(t,i,e,a,l)),null;case 27:if(Si(t),l=ie.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&ll(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return Oe(t),null}e=Z.current,Ua(t)?Jf(t):(e=S0(i,a,l),t.stateNode=e,ll(t))}return Oe(t),null;case 5:if(Si(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&ll(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return Oe(t),null}if(s=Z.current,Ua(t))Jf(t);else{var f=Cs(ie.current);switch(s){case 1:s=f.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:s=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":s=f.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":s=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":s=f.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof a.is=="string"?f.createElement("select",{is:a.is}):f.createElement("select"),a.multiple?s.multiple=!0:a.size&&(s.size=a.size);break;default:s=typeof a.is=="string"?f.createElement(i,{is:a.is}):f.createElement(i)}}s[Fe]=t,s[rt]=a;e:for(f=t.child;f!==null;){if(f.tag===5||f.tag===6)s.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===t)break e;for(;f.sibling===null;){if(f.return===null||f.return===t)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}t.stateNode=s;e:switch(et(s,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&ll(t)}}return Oe(t),Zr(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&ll(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(o(166));if(e=ie.current,Ua(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,i=We,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[Fe]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||f0(e.nodeValue,l)),e||bl(t,!0)}else e=Cs(e).createTextNode(a),e[Fe]=t,t.stateNode=e}return Oe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=Ua(t),l!==null){if(e===null){if(!a)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[Fe]=t}else la(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Oe(t),e=!1}else l=tr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(jt(t),t):(jt(t),null);if((t.flags&128)!==0)throw Error(o(558))}return Oe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Ua(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(o(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(o(317));i[Fe]=t}else la(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Oe(t),i=!1}else i=tr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(jt(t),t):(jt(t),null)}return jt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),s=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(s=a.memoizedState.cachePool.pool),s!==i&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),fs(t,t.updateQueue),Oe(t),null);case 4:return Le(),e===null&&hc(t.stateNode.containerInfo),Oe(t),null;case 10:return It(t.type),Oe(t),null;case 19:if(U(Be),a=t.memoizedState,a===null)return Oe(t),null;if(i=(t.flags&128)!==0,s=a.rendering,s===null)if(i)Gn(a,!1);else{if(Ue!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=Ii(e),s!==null){for(t.flags|=128,Gn(a,!1),e=s.updateQueue,t.updateQueue=e,fs(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Gf(l,e),l=l.sibling;return Y(Be,Be.current&1|2),fe&&Ft(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&gt()>vs&&(t.flags|=128,i=!0,Gn(a,!1),t.lanes=4194304)}else{if(!i)if(e=Ii(s),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,fs(t,e),Gn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!s.alternate&&!fe)return Oe(t),null}else 2*gt()-a.renderingStartTime>vs&&l!==536870912&&(t.flags|=128,i=!0,Gn(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(e=a.last,e!==null?e.sibling=s:t.child=s,a.last=s)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=gt(),e.sibling=null,l=Be.current,Y(Be,i?l&1|2:l&1),fe&&Ft(t,a.treeForkCount),e):(Oe(t),null);case 22:case 23:return jt(t),mr(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(Oe(t),t.subtreeFlags&6&&(t.flags|=8192)):Oe(t),l=t.updateQueue,l!==null&&fs(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&U(ia),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),It(Qe),Oe(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function Gy(e,t){switch(Pu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return It(Qe),Le(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Si(t),null;case 31:if(t.memoizedState!==null){if(jt(t),t.alternate===null)throw Error(o(340));la()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(jt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));la()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(Be),null;case 4:return Le(),null;case 10:return It(t.type),null;case 22:case 23:return jt(t),mr(),e!==null&&U(ia),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return It(Qe),null;case 25:return null;default:return null}}function vh(e,t){switch(Pu(t),t.tag){case 3:It(Qe),Le();break;case 26:case 27:case 5:Si(t);break;case 4:Le();break;case 31:t.memoizedState!==null&&jt(t);break;case 13:jt(t);break;case 19:U(Be);break;case 10:It(t.type);break;case 22:case 23:jt(t),mr(),e!==null&&U(ia);break;case 24:It(Qe)}}function Vn(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var i=a.next;l=i;do{if((l.tag&e)===e){a=void 0;var s=l.create,f=l.inst;a=s(),f.destroy=a}l=l.next}while(l!==i)}}catch(d){Se(t,t.return,d)}}function Cl(e,t,l){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var s=i.next;a=s;do{if((a.tag&e)===e){var f=a.inst,d=f.destroy;if(d!==void 0){f.destroy=void 0,i=t;var b=l,C=d;try{C()}catch(R){Se(i,b,R)}}}a=a.next}while(a!==s)}}catch(R){Se(t,t.return,R)}}function yh(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{ud(t,l)}catch(a){Se(e,e.return,a)}}}function ph(e,t,l){l.props=oa(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Se(e,t,a)}}function Zn(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(i){Se(e,t,i)}}function Vt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(i){Se(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(i){Se(e,t,i)}else l.current=null}function bh(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(i){Se(e,e.return,i)}}function Xr(e,t,l){try{var a=e.stateNode;fp(a,e.type,l,t),a[rt]=t}catch(i){Se(e,e.return,i)}}function xh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Dl(e.type)||e.tag===4}function Kr(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||xh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Dl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Jr(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=Kt));else if(a!==4&&(a===27&&Dl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Jr(e,t,l),e=e.sibling;e!==null;)Jr(e,t,l),e=e.sibling}function ds(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&Dl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(ds(e,t,l),e=e.sibling;e!==null;)ds(e,t,l),e=e.sibling}function jh(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);et(t,a,l),t[Fe]=e,t[rt]=l}catch(s){Se(e,e.return,s)}}var al=!1,Ge=!1,$r=!1,Sh=typeof WeakSet=="function"?WeakSet:Set,$e=null;function Vy(e,t){if(e=e.containerInfo,vc=Ds,e=_f(e),Yu(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var i=a.anchorOffset,s=a.focusNode;a=a.focusOffset;try{l.nodeType,s.nodeType}catch{l=null;break e}var f=0,d=-1,b=-1,C=0,R=0,_=e,z=null;t:for(;;){for(var O;_!==l||i!==0&&_.nodeType!==3||(d=f+i),_!==s||a!==0&&_.nodeType!==3||(b=f+a),_.nodeType===3&&(f+=_.nodeValue.length),(O=_.firstChild)!==null;)z=_,_=O;for(;;){if(_===e)break t;if(z===l&&++C===i&&(d=f),z===s&&++R===a&&(b=f),(O=_.nextSibling)!==null)break;_=z,z=_.parentNode}_=O}l=d===-1||b===-1?null:{start:d,end:b}}else l=null}l=l||{start:0,end:0}}else l=null;for(yc={focusedElem:e,selectionRange:l},Ds=!1,$e=t;$e!==null;)if(t=$e,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$e=e;else for(;$e!==null;){switch(t=$e,s=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)i=e[l],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&s!==null){e=void 0,l=t,i=s.memoizedProps,s=s.memoizedState,a=l.stateNode;try{var G=oa(l.type,i);e=a.getSnapshotBeforeUpdate(G,s),a.__reactInternalSnapshotBeforeUpdate=e}catch(W){Se(l,l.return,W)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)xc(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":xc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,$e=e;break}$e=t.return}}function wh(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:il(e,l),a&4&&Vn(5,l);break;case 1:if(il(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(f){Se(l,l.return,f)}else{var i=oa(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(f){Se(l,l.return,f)}}a&64&&yh(l),a&512&&Zn(l,l.return);break;case 3:if(il(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{ud(e,t)}catch(f){Se(l,l.return,f)}}break;case 27:t===null&&a&4&&jh(l);case 26:case 5:il(e,l),t===null&&a&4&&bh(l),a&512&&Zn(l,l.return);break;case 12:il(e,l);break;case 31:il(e,l),a&4&&Ch(e,l);break;case 13:il(e,l),a&4&&zh(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Py.bind(null,l),bp(e,l))));break;case 22:if(a=l.memoizedState!==null||al,!a){t=t!==null&&t.memoizedState!==null||Ge,i=al;var s=Ge;al=a,(Ge=t)&&!s?sl(e,l,(l.subtreeFlags&8772)!==0):il(e,l),al=i,Ge=s}break;case 30:break;default:il(e,l)}}function Nh(e){var t=e.alternate;t!==null&&(e.alternate=null,Nh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Eu(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Re=null,ot=!1;function nl(e,t,l){for(l=l.child;l!==null;)Eh(e,t,l),l=l.sibling}function Eh(e,t,l){if(vt&&typeof vt.onCommitFiberUnmount=="function")try{vt.onCommitFiberUnmount(gn,l)}catch{}switch(l.tag){case 26:Ge||Vt(l,t),nl(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Ge||Vt(l,t);var a=Re,i=ot;Dl(l.type)&&(Re=l.stateNode,ot=!1),nl(e,t,l),ei(l.stateNode),Re=a,ot=i;break;case 5:Ge||Vt(l,t);case 6:if(a=Re,i=ot,Re=null,nl(e,t,l),Re=a,ot=i,Re!==null)if(ot)try{(Re.nodeType===9?Re.body:Re.nodeName==="HTML"?Re.ownerDocument.body:Re).removeChild(l.stateNode)}catch(s){Se(l,t,s)}else try{Re.removeChild(l.stateNode)}catch(s){Se(l,t,s)}break;case 18:Re!==null&&(ot?(e=Re,y0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),ln(e)):y0(Re,l.stateNode));break;case 4:a=Re,i=ot,Re=l.stateNode.containerInfo,ot=!0,nl(e,t,l),Re=a,ot=i;break;case 0:case 11:case 14:case 15:Cl(2,l,t),Ge||Cl(4,l,t),nl(e,t,l);break;case 1:Ge||(Vt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&ph(l,t,a)),nl(e,t,l);break;case 21:nl(e,t,l);break;case 22:Ge=(a=Ge)||l.memoizedState!==null,nl(e,t,l),Ge=a;break;default:nl(e,t,l)}}function Ch(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ln(e)}catch(l){Se(t,t.return,l)}}}function zh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ln(e)}catch(l){Se(t,t.return,l)}}function Zy(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Sh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Sh),t;default:throw Error(o(435,e.tag))}}function hs(e,t){var l=Zy(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var i=ep.bind(null,e,a);a.then(i,i)}})}function ft(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var i=l[a],s=e,f=t,d=f;e:for(;d!==null;){switch(d.tag){case 27:if(Dl(d.type)){Re=d.stateNode,ot=!1;break e}break;case 5:Re=d.stateNode,ot=!1;break e;case 3:case 4:Re=d.stateNode.containerInfo,ot=!0;break e}d=d.return}if(Re===null)throw Error(o(160));Eh(s,f,i),Re=null,ot=!1,s=i.alternate,s!==null&&(s.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Ah(t,e),t=t.sibling}var qt=null;function Ah(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ft(t,e),dt(e),a&4&&(Cl(3,e,e.return),Vn(3,e),Cl(5,e,e.return));break;case 1:ft(t,e),dt(e),a&512&&(Ge||l===null||Vt(l,l.return)),a&64&&al&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var i=qt;if(ft(t,e),dt(e),a&512&&(Ge||l===null||Vt(l,l.return)),a&4){var s=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,i=i.ownerDocument||i;t:switch(a){case"title":s=i.getElementsByTagName("title")[0],(!s||s[pn]||s[Fe]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=i.createElement(a),i.head.insertBefore(s,i.querySelector("head > title"))),et(s,a,l),s[Fe]=e,Je(s),a=s;break e;case"link":var f=A0("link","href",i).get(a+(l.href||""));if(f){for(var d=0;d<f.length;d++)if(s=f[d],s.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&s.getAttribute("rel")===(l.rel==null?null:l.rel)&&s.getAttribute("title")===(l.title==null?null:l.title)&&s.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){f.splice(d,1);break t}}s=i.createElement(a),et(s,a,l),i.head.appendChild(s);break;case"meta":if(f=A0("meta","content",i).get(a+(l.content||""))){for(d=0;d<f.length;d++)if(s=f[d],s.getAttribute("content")===(l.content==null?null:""+l.content)&&s.getAttribute("name")===(l.name==null?null:l.name)&&s.getAttribute("property")===(l.property==null?null:l.property)&&s.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&s.getAttribute("charset")===(l.charSet==null?null:l.charSet)){f.splice(d,1);break t}}s=i.createElement(a),et(s,a,l),i.head.appendChild(s);break;default:throw Error(o(468,a))}s[Fe]=e,Je(s),a=s}e.stateNode=a}else O0(i,e.type,e.stateNode);else e.stateNode=z0(i,a,e.memoizedProps);else s!==a?(s===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):s.count--,a===null?O0(i,e.type,e.stateNode):z0(i,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Xr(e,e.memoizedProps,l.memoizedProps)}break;case 27:ft(t,e),dt(e),a&512&&(Ge||l===null||Vt(l,l.return)),l!==null&&a&4&&Xr(e,e.memoizedProps,l.memoizedProps);break;case 5:if(ft(t,e),dt(e),a&512&&(Ge||l===null||Vt(l,l.return)),e.flags&32){i=e.stateNode;try{Ea(i,"")}catch(G){Se(e,e.return,G)}}a&4&&e.stateNode!=null&&(i=e.memoizedProps,Xr(e,i,l!==null?l.memoizedProps:i)),a&1024&&($r=!0);break;case 6:if(ft(t,e),dt(e),a&4){if(e.stateNode===null)throw Error(o(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(G){Se(e,e.return,G)}}break;case 3:if(Os=null,i=qt,qt=zs(t.containerInfo),ft(t,e),qt=i,dt(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{ln(t.containerInfo)}catch(G){Se(e,e.return,G)}$r&&($r=!1,Oh(e));break;case 4:a=qt,qt=zs(e.stateNode.containerInfo),ft(t,e),dt(e),qt=a;break;case 12:ft(t,e),dt(e);break;case 31:ft(t,e),dt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,hs(e,a)));break;case 13:ft(t,e),dt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(gs=gt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,hs(e,a)));break;case 22:i=e.memoizedState!==null;var b=l!==null&&l.memoizedState!==null,C=al,R=Ge;if(al=C||i,Ge=R||b,ft(t,e),Ge=R,al=C,dt(e),a&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(l===null||b||al||Ge||fa(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){b=l=t;try{if(s=b.stateNode,i)f=s.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{d=b.stateNode;var _=b.memoizedProps.style,z=_!=null&&_.hasOwnProperty("display")?_.display:null;d.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(G){Se(b,b.return,G)}}}else if(t.tag===6){if(l===null){b=t;try{b.stateNode.nodeValue=i?"":b.memoizedProps}catch(G){Se(b,b.return,G)}}}else if(t.tag===18){if(l===null){b=t;try{var O=b.stateNode;i?p0(O,!0):p0(b.stateNode,!1)}catch(G){Se(b,b.return,G)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,hs(e,l))));break;case 19:ft(t,e),dt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,hs(e,a)));break;case 30:break;case 21:break;default:ft(t,e),dt(e)}}function dt(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(xh(a)){l=a;break}a=a.return}if(l==null)throw Error(o(160));switch(l.tag){case 27:var i=l.stateNode,s=Kr(e);ds(e,s,i);break;case 5:var f=l.stateNode;l.flags&32&&(Ea(f,""),l.flags&=-33);var d=Kr(e);ds(e,d,f);break;case 3:case 4:var b=l.stateNode.containerInfo,C=Kr(e);Jr(e,C,b);break;default:throw Error(o(161))}}catch(R){Se(e,e.return,R)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Oh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Oh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function il(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)wh(e,t.alternate,t),t=t.sibling}function fa(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Cl(4,t,t.return),fa(t);break;case 1:Vt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&ph(t,t.return,l),fa(t);break;case 27:ei(t.stateNode);case 26:case 5:Vt(t,t.return),fa(t);break;case 22:t.memoizedState===null&&fa(t);break;case 30:fa(t);break;default:fa(t)}e=e.sibling}}function sl(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,i=e,s=t,f=s.flags;switch(s.tag){case 0:case 11:case 15:sl(i,s,l),Vn(4,s);break;case 1:if(sl(i,s,l),a=s,i=a.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(C){Se(a,a.return,C)}if(a=s,i=a.updateQueue,i!==null){var d=a.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(C){Se(a,a.return,C)}}l&&f&64&&yh(s),Zn(s,s.return);break;case 27:jh(s);case 26:case 5:sl(i,s,l),l&&a===null&&f&4&&bh(s),Zn(s,s.return);break;case 12:sl(i,s,l);break;case 31:sl(i,s,l),l&&f&4&&Ch(i,s);break;case 13:sl(i,s,l),l&&f&4&&zh(i,s);break;case 22:s.memoizedState===null&&sl(i,s,l),Zn(s,s.return);break;case 30:break;default:sl(i,s,l)}t=t.sibling}}function Fr(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&Mn(l))}function Wr(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Mn(e))}function Ht(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Th(e,t,l,a),t=t.sibling}function Th(e,t,l,a){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Ht(e,t,l,a),i&2048&&Vn(9,t);break;case 1:Ht(e,t,l,a);break;case 3:Ht(e,t,l,a),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Mn(e)));break;case 12:if(i&2048){Ht(e,t,l,a),e=t.stateNode;try{var s=t.memoizedProps,f=s.id,d=s.onPostCommit;typeof d=="function"&&d(f,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(b){Se(t,t.return,b)}}else Ht(e,t,l,a);break;case 31:Ht(e,t,l,a);break;case 13:Ht(e,t,l,a);break;case 23:break;case 22:s=t.stateNode,f=t.alternate,t.memoizedState!==null?s._visibility&2?Ht(e,t,l,a):Xn(e,t):s._visibility&2?Ht(e,t,l,a):(s._visibility|=2,Za(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),i&2048&&Fr(f,t);break;case 24:Ht(e,t,l,a),i&2048&&Wr(t.alternate,t);break;default:Ht(e,t,l,a)}}function Za(e,t,l,a,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var s=e,f=t,d=l,b=a,C=f.flags;switch(f.tag){case 0:case 11:case 15:Za(s,f,d,b,i),Vn(8,f);break;case 23:break;case 22:var R=f.stateNode;f.memoizedState!==null?R._visibility&2?Za(s,f,d,b,i):Xn(s,f):(R._visibility|=2,Za(s,f,d,b,i)),i&&C&2048&&Fr(f.alternate,f);break;case 24:Za(s,f,d,b,i),i&&C&2048&&Wr(f.alternate,f);break;default:Za(s,f,d,b,i)}t=t.sibling}}function Xn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,i=a.flags;switch(a.tag){case 22:Xn(l,a),i&2048&&Fr(a.alternate,a);break;case 24:Xn(l,a),i&2048&&Wr(a.alternate,a);break;default:Xn(l,a)}t=t.sibling}}var Kn=8192;function Xa(e,t,l){if(e.subtreeFlags&Kn)for(e=e.child;e!==null;)Mh(e,t,l),e=e.sibling}function Mh(e,t,l){switch(e.tag){case 26:Xa(e,t,l),e.flags&Kn&&e.memoizedState!==null&&Mp(l,qt,e.memoizedState,e.memoizedProps);break;case 5:Xa(e,t,l);break;case 3:case 4:var a=qt;qt=zs(e.stateNode.containerInfo),Xa(e,t,l),qt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Kn,Kn=16777216,Xa(e,t,l),Kn=a):Xa(e,t,l));break;default:Xa(e,t,l)}}function Rh(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Jn(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];$e=a,_h(a,e)}Rh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Dh(e),e=e.sibling}function Dh(e){switch(e.tag){case 0:case 11:case 15:Jn(e),e.flags&2048&&Cl(9,e,e.return);break;case 3:Jn(e);break;case 12:Jn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ms(e)):Jn(e);break;default:Jn(e)}}function ms(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];$e=a,_h(a,e)}Rh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Cl(8,t,t.return),ms(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,ms(t));break;default:ms(t)}e=e.sibling}}function _h(e,t){for(;$e!==null;){var l=$e;switch(l.tag){case 0:case 11:case 15:Cl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Mn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,$e=a;else e:for(l=e;$e!==null;){a=$e;var i=a.sibling,s=a.return;if(Nh(a),a===l){$e=null;break e}if(i!==null){i.return=s,$e=i;break e}$e=s}}}var Xy={getCacheForType:function(e){var t=Ie(Qe),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return Ie(Qe).controller.signal}},Ky=typeof WeakMap=="function"?WeakMap:Map,ye=0,ze=null,se=null,re=0,je=0,St=null,zl=!1,Ka=!1,Ir=!1,ul=0,Ue=0,Al=0,da=0,Pr=0,wt=0,Ja=0,$n=null,ht=null,ec=!1,gs=0,Uh=0,vs=1/0,ys=null,Ol=null,Ze=0,Tl=null,$a=null,rl=0,tc=0,lc=null,Lh=null,Fn=0,ac=null;function Nt(){return(ye&2)!==0&&re!==0?re&-re:T.T!==null?cc():Wo()}function Bh(){if(wt===0)if((re&536870912)===0||fe){var e=Ei;Ei<<=1,(Ei&3932160)===0&&(Ei=262144),wt=e}else wt=536870912;return e=xt.current,e!==null&&(e.flags|=32),wt}function mt(e,t,l){(e===ze&&(je===2||je===9)||e.cancelPendingCommit!==null)&&(Fa(e,0),Ml(e,re,wt,!1)),yn(e,l),((ye&2)===0||e!==ze)&&(e===ze&&((ye&2)===0&&(da|=l),Ue===4&&Ml(e,re,wt,!1)),Zt(e))}function qh(e,t,l){if((ye&6)!==0)throw Error(o(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||vn(e,t),i=a?Fy(e,t):ic(e,t,!0),s=a;do{if(i===0){Ka&&!a&&Ml(e,t,0,!1);break}else{if(l=e.current.alternate,s&&!Jy(l)){i=ic(e,t,!1),s=!1;continue}if(i===2){if(s=t,e.errorRecoveryDisabledLanes&s)var f=0;else f=e.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){t=f;e:{var d=e;i=$n;var b=d.current.memoizedState.isDehydrated;if(b&&(Fa(d,f).flags|=256),f=ic(d,f,!1),f!==2){if(Ir&&!b){d.errorRecoveryDisabledLanes|=s,da|=s,i=4;break e}s=ht,ht=i,s!==null&&(ht===null?ht=s:ht.push.apply(ht,s))}i=f}if(s=!1,i!==2)continue}}if(i===1){Fa(e,0),Ml(e,t,0,!0);break}e:{switch(a=e,s=i,s){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:Ml(a,t,wt,!zl);break e;case 2:ht=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(i=gs+300-gt(),10<i)){if(Ml(a,t,wt,!zl),zi(a,0,!0)!==0)break e;rl=t,a.timeoutHandle=g0(Hh.bind(null,a,l,ht,ys,ec,t,wt,da,Ja,zl,s,"Throttled",-0,0),i);break e}Hh(a,l,ht,ys,ec,t,wt,da,Ja,zl,s,null,-0,0)}}break}while(!0);Zt(e)}function Hh(e,t,l,a,i,s,f,d,b,C,R,_,z,O){if(e.timeoutHandle=-1,_=t.subtreeFlags,_&8192||(_&16785408)===16785408){_={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Kt},Mh(t,s,_);var G=(s&62914560)===s?gs-gt():(s&4194048)===s?Uh-gt():0;if(G=Rp(_,G),G!==null){rl=s,e.cancelPendingCommit=G(Kh.bind(null,e,t,s,l,a,i,f,d,b,R,_,null,z,O)),Ml(e,s,f,!C);return}}Kh(e,t,s,l,a,i,f,d,b)}function Jy(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var i=l[a],s=i.getSnapshot;i=i.value;try{if(!pt(s(),i))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ml(e,t,l,a){t&=~Pr,t&=~da,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var i=t;0<i;){var s=31-yt(i),f=1<<s;a[s]=-1,i&=~f}l!==0&&Jo(e,l,t)}function ps(){return(ye&6)===0?(Wn(0),!1):!0}function nc(){if(se!==null){if(je===0)var e=se.return;else e=se,Wt=aa=null,xr(e),Qa=null,Dn=0,e=se;for(;e!==null;)vh(e.alternate,e),e=e.return;se=null}}function Fa(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,mp(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),rl=0,nc(),ze=e,se=l=$t(e.current,null),re=t,je=0,St=null,zl=!1,Ka=vn(e,t),Ir=!1,Ja=wt=Pr=da=Al=Ue=0,ht=$n=null,ec=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var i=31-yt(a),s=1<<i;t|=e[i],a&=~s}return ul=t,Hi(),l}function Qh(e,t){le=null,T.H=kn,t===Ha||t===Ki?(t=ld(),je=3):t===rr?(t=ld(),je=4):je=t===Lr?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,St=t,se===null&&(Ue=1,us(e,Ot(t,e.current)))}function kh(){var e=xt.current;return e===null?!0:(re&4194048)===re?Dt===null:(re&62914560)===re||(re&536870912)!==0?e===Dt:!1}function Yh(){var e=T.H;return T.H=kn,e===null?kn:e}function Gh(){var e=T.A;return T.A=Xy,e}function bs(){Ue=4,zl||(re&4194048)!==re&&xt.current!==null||(Ka=!0),(Al&134217727)===0&&(da&134217727)===0||ze===null||Ml(ze,re,wt,!1)}function ic(e,t,l){var a=ye;ye|=2;var i=Yh(),s=Gh();(ze!==e||re!==t)&&(ys=null,Fa(e,t)),t=!1;var f=Ue;e:do try{if(je!==0&&se!==null){var d=se,b=St;switch(je){case 8:nc(),f=6;break e;case 3:case 2:case 9:case 6:xt.current===null&&(t=!0);var C=je;if(je=0,St=null,Wa(e,d,b,C),l&&Ka){f=0;break e}break;default:C=je,je=0,St=null,Wa(e,d,b,C)}}$y(),f=Ue;break}catch(R){Qh(e,R)}while(!0);return t&&e.shellSuspendCounter++,Wt=aa=null,ye=a,T.H=i,T.A=s,se===null&&(ze=null,re=0,Hi()),f}function $y(){for(;se!==null;)Vh(se)}function Fy(e,t){var l=ye;ye|=2;var a=Yh(),i=Gh();ze!==e||re!==t?(ys=null,vs=gt()+500,Fa(e,t)):Ka=vn(e,t);e:do try{if(je!==0&&se!==null){t=se;var s=St;t:switch(je){case 1:je=0,St=null,Wa(e,t,s,1);break;case 2:case 9:if(ed(s)){je=0,St=null,Zh(t);break}t=function(){je!==2&&je!==9||ze!==e||(je=7),Zt(e)},s.then(t,t);break e;case 3:je=7;break e;case 4:je=5;break e;case 7:ed(s)?(je=0,St=null,Zh(t)):(je=0,St=null,Wa(e,t,s,7));break;case 5:var f=null;switch(se.tag){case 26:f=se.memoizedState;case 5:case 27:var d=se;if(f?T0(f):d.stateNode.complete){je=0,St=null;var b=d.sibling;if(b!==null)se=b;else{var C=d.return;C!==null?(se=C,xs(C)):se=null}break t}}je=0,St=null,Wa(e,t,s,5);break;case 6:je=0,St=null,Wa(e,t,s,6);break;case 8:nc(),Ue=6;break e;default:throw Error(o(462))}}Wy();break}catch(R){Qh(e,R)}while(!0);return Wt=aa=null,T.H=a,T.A=i,ye=l,se!==null?0:(ze=null,re=0,Hi(),Ue)}function Wy(){for(;se!==null&&!x1();)Vh(se)}function Vh(e){var t=mh(e.alternate,e,ul);e.memoizedProps=e.pendingProps,t===null?xs(e):se=t}function Zh(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=rh(l,t,t.pendingProps,t.type,void 0,re);break;case 11:t=rh(l,t,t.pendingProps,t.type.render,t.ref,re);break;case 5:xr(t);default:vh(l,t),t=se=Gf(t,ul),t=mh(l,t,ul)}e.memoizedProps=e.pendingProps,t===null?xs(e):se=t}function Wa(e,t,l,a){Wt=aa=null,xr(t),Qa=null,Dn=0;var i=t.return;try{if(Hy(e,i,t,l,re)){Ue=1,us(e,Ot(l,e.current)),se=null;return}}catch(s){if(i!==null)throw se=i,s;Ue=1,us(e,Ot(l,e.current)),se=null;return}t.flags&32768?(fe||a===1?e=!0:Ka||(re&536870912)!==0?e=!1:(zl=e=!0,(a===2||a===9||a===3||a===6)&&(a=xt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Xh(t,e)):xs(t)}function xs(e){var t=e;do{if((t.flags&32768)!==0){Xh(t,zl);return}e=t.return;var l=Yy(t.alternate,t,ul);if(l!==null){se=l;return}if(t=t.sibling,t!==null){se=t;return}se=t=e}while(t!==null);Ue===0&&(Ue=5)}function Xh(e,t){do{var l=Gy(e.alternate,e);if(l!==null){l.flags&=32767,se=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){se=e;return}se=e=l}while(e!==null);Ue=6,se=null}function Kh(e,t,l,a,i,s,f,d,b){e.cancelPendingCommit=null;do js();while(Ze!==0);if((ye&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(s=t.lanes|t.childLanes,s|=Ku,T1(e,l,s,f,d,b),e===ze&&(se=ze=null,re=0),$a=t,Tl=e,rl=l,tc=s,lc=i,Lh=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,tp(wi,function(){return Ih(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=T.T,T.T=null,i=Q.p,Q.p=2,f=ye,ye|=4;try{Vy(e,t,l)}finally{ye=f,Q.p=i,T.T=a}}Ze=1,Jh(),$h(),Fh()}}function Jh(){if(Ze===1){Ze=0;var e=Tl,t=$a,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=T.T,T.T=null;var a=Q.p;Q.p=2;var i=ye;ye|=4;try{Ah(t,e);var s=yc,f=_f(e.containerInfo),d=s.focusedElem,b=s.selectionRange;if(f!==d&&d&&d.ownerDocument&&Df(d.ownerDocument.documentElement,d)){if(b!==null&&Yu(d)){var C=b.start,R=b.end;if(R===void 0&&(R=C),"selectionStart"in d)d.selectionStart=C,d.selectionEnd=Math.min(R,d.value.length);else{var _=d.ownerDocument||document,z=_&&_.defaultView||window;if(z.getSelection){var O=z.getSelection(),G=d.textContent.length,W=Math.min(b.start,G),Ee=b.end===void 0?W:Math.min(b.end,G);!O.extend&&W>Ee&&(f=Ee,Ee=W,W=f);var w=Rf(d,W),j=Rf(d,Ee);if(w&&j&&(O.rangeCount!==1||O.anchorNode!==w.node||O.anchorOffset!==w.offset||O.focusNode!==j.node||O.focusOffset!==j.offset)){var E=_.createRange();E.setStart(w.node,w.offset),O.removeAllRanges(),W>Ee?(O.addRange(E),O.extend(j.node,j.offset)):(E.setEnd(j.node,j.offset),O.addRange(E))}}}}for(_=[],O=d;O=O.parentNode;)O.nodeType===1&&_.push({element:O,left:O.scrollLeft,top:O.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<_.length;d++){var D=_[d];D.element.scrollLeft=D.left,D.element.scrollTop=D.top}}Ds=!!vc,yc=vc=null}finally{ye=i,Q.p=a,T.T=l}}e.current=t,Ze=2}}function $h(){if(Ze===2){Ze=0;var e=Tl,t=$a,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=T.T,T.T=null;var a=Q.p;Q.p=2;var i=ye;ye|=4;try{wh(e,t.alternate,t)}finally{ye=i,Q.p=a,T.T=l}}Ze=3}}function Fh(){if(Ze===4||Ze===3){Ze=0,j1();var e=Tl,t=$a,l=rl,a=Lh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ze=5:(Ze=0,$a=Tl=null,Wh(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(Ol=null),wu(l),t=t.stateNode,vt&&typeof vt.onCommitFiberRoot=="function")try{vt.onCommitFiberRoot(gn,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=T.T,i=Q.p,Q.p=2,T.T=null;try{for(var s=e.onRecoverableError,f=0;f<a.length;f++){var d=a[f];s(d.value,{componentStack:d.stack})}}finally{T.T=t,Q.p=i}}(rl&3)!==0&&js(),Zt(e),i=e.pendingLanes,(l&261930)!==0&&(i&42)!==0?e===ac?Fn++:(Fn=0,ac=e):Fn=0,Wn(0)}}function Wh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Mn(t)))}function js(){return Jh(),$h(),Fh(),Ih()}function Ih(){if(Ze!==5)return!1;var e=Tl,t=tc;tc=0;var l=wu(rl),a=T.T,i=Q.p;try{Q.p=32>l?32:l,T.T=null,l=lc,lc=null;var s=Tl,f=rl;if(Ze=0,$a=Tl=null,rl=0,(ye&6)!==0)throw Error(o(331));var d=ye;if(ye|=4,Dh(s.current),Th(s,s.current,f,l),ye=d,Wn(0,!1),vt&&typeof vt.onPostCommitFiberRoot=="function")try{vt.onPostCommitFiberRoot(gn,s)}catch{}return!0}finally{Q.p=i,T.T=a,Wh(e,t)}}function Ph(e,t,l){t=Ot(l,t),t=Ur(e.stateNode,t,2),e=wl(e,t,2),e!==null&&(yn(e,2),Zt(e))}function Se(e,t,l){if(e.tag===3)Ph(e,e,l);else for(;t!==null;){if(t.tag===3){Ph(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Ol===null||!Ol.has(a))){e=Ot(l,e),l=eh(2),a=wl(t,l,2),a!==null&&(th(l,a,t,e),yn(a,2),Zt(a));break}}t=t.return}}function sc(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Ky;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(l)||(Ir=!0,i.add(l),e=Iy.bind(null,e,t,l),t.then(e,e))}function Iy(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,ze===e&&(re&l)===l&&(Ue===4||Ue===3&&(re&62914560)===re&&300>gt()-gs?(ye&2)===0&&Fa(e,0):Pr|=l,Ja===re&&(Ja=0)),Zt(e)}function e0(e,t){t===0&&(t=Ko()),e=ea(e,t),e!==null&&(yn(e,t),Zt(e))}function Py(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),e0(e,l)}function ep(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(l=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(o(314))}a!==null&&a.delete(t),e0(e,l)}function tp(e,t){return bu(e,t)}var Ss=null,Ia=null,uc=!1,ws=!1,rc=!1,Rl=0;function Zt(e){e!==Ia&&e.next===null&&(Ia===null?Ss=Ia=e:Ia=Ia.next=e),ws=!0,uc||(uc=!0,ap())}function Wn(e,t){if(!rc&&ws){rc=!0;do for(var l=!1,a=Ss;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var s=0;else{var f=a.suspendedLanes,d=a.pingedLanes;s=(1<<31-yt(42|e)+1)-1,s&=i&~(f&~d),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(l=!0,n0(a,s))}else s=re,s=zi(a,a===ze?s:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(s&3)===0||vn(a,s)||(l=!0,n0(a,s));a=a.next}while(l);rc=!1}}function lp(){t0()}function t0(){ws=uc=!1;var e=0;Rl!==0&&hp()&&(e=Rl);for(var t=gt(),l=null,a=Ss;a!==null;){var i=a.next,s=l0(a,t);s===0?(a.next=null,l===null?Ss=i:l.next=i,i===null&&(Ia=l)):(l=a,(e!==0||(s&3)!==0)&&(ws=!0)),a=i}Ze!==0&&Ze!==5||Wn(e),Rl!==0&&(Rl=0)}function l0(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var f=31-yt(s),d=1<<f,b=i[f];b===-1?((d&l)===0||(d&a)!==0)&&(i[f]=O1(d,t)):b<=t&&(e.expiredLanes|=d),s&=~d}if(t=ze,l=re,l=zi(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(je===2||je===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&xu(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||vn(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&xu(a),wu(l)){case 2:case 8:l=Zo;break;case 32:l=wi;break;case 268435456:l=Xo;break;default:l=wi}return a=a0.bind(null,e),l=bu(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&xu(a),e.callbackPriority=2,e.callbackNode=null,2}function a0(e,t){if(Ze!==0&&Ze!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(js()&&e.callbackNode!==l)return null;var a=re;return a=zi(e,e===ze?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(qh(e,a,t),l0(e,gt()),e.callbackNode!=null&&e.callbackNode===l?a0.bind(null,e):null)}function n0(e,t){if(js())return null;qh(e,t,!0)}function ap(){gp(function(){(ye&6)!==0?bu(Vo,lp):t0()})}function cc(){if(Rl===0){var e=Ba;e===0&&(e=Ni,Ni<<=1,(Ni&261888)===0&&(Ni=256)),Rl=e}return Rl}function i0(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Mi(""+e)}function s0(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function np(e,t,l,a,i){if(t==="submit"&&l&&l.stateNode===i){var s=i0((i[rt]||null).action),f=a.submitter;f&&(t=(t=f[rt]||null)?i0(t.formAction):f.getAttribute("formAction"),t!==null&&(s=t,f=null));var d=new Ui("action","action",null,a,i);e.push({event:d,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Rl!==0){var b=f?s0(i,f):new FormData(i);Or(l,{pending:!0,data:b,method:i.method,action:s},null,b)}}else typeof s=="function"&&(d.preventDefault(),b=f?s0(i,f):new FormData(i),Or(l,{pending:!0,data:b,method:i.method,action:s},s,b))},currentTarget:i}]})}}for(var oc=0;oc<Xu.length;oc++){var fc=Xu[oc],ip=fc.toLowerCase(),sp=fc[0].toUpperCase()+fc.slice(1);Bt(ip,"on"+sp)}Bt(Bf,"onAnimationEnd"),Bt(qf,"onAnimationIteration"),Bt(Hf,"onAnimationStart"),Bt("dblclick","onDoubleClick"),Bt("focusin","onFocus"),Bt("focusout","onBlur"),Bt(Sy,"onTransitionRun"),Bt(wy,"onTransitionStart"),Bt(Ny,"onTransitionCancel"),Bt(Qf,"onTransitionEnd"),wa("onMouseEnter",["mouseout","mouseover"]),wa("onMouseLeave",["mouseout","mouseover"]),wa("onPointerEnter",["pointerout","pointerover"]),wa("onPointerLeave",["pointerout","pointerover"]),Fl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Fl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Fl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Fl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Fl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Fl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var In="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(" "),up=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(In));function u0(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],i=a.event;a=a.listeners;e:{var s=void 0;if(t)for(var f=a.length-1;0<=f;f--){var d=a[f],b=d.instance,C=d.currentTarget;if(d=d.listener,b!==s&&i.isPropagationStopped())break e;s=d,i.currentTarget=C;try{s(i)}catch(R){qi(R)}i.currentTarget=null,s=b}else for(f=0;f<a.length;f++){if(d=a[f],b=d.instance,C=d.currentTarget,d=d.listener,b!==s&&i.isPropagationStopped())break e;s=d,i.currentTarget=C;try{s(i)}catch(R){qi(R)}i.currentTarget=null,s=b}}}}function ue(e,t){var l=t[Nu];l===void 0&&(l=t[Nu]=new Set);var a=e+"__bubble";l.has(a)||(r0(t,e,2,!1),l.add(a))}function dc(e,t,l){var a=0;t&&(a|=4),r0(l,e,a,t)}var Ns="_reactListening"+Math.random().toString(36).slice(2);function hc(e){if(!e[Ns]){e[Ns]=!0,ef.forEach(function(l){l!=="selectionchange"&&(up.has(l)||dc(l,!1,e),dc(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ns]||(t[Ns]=!0,dc("selectionchange",!1,t))}}function r0(e,t,l,a){switch(B0(t)){case 2:var i=Up;break;case 8:i=Lp;break;default:i=Ac}l=i.bind(null,t,l,e),i=void 0,!Du||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),a?i!==void 0?e.addEventListener(t,l,{capture:!0,passive:i}):e.addEventListener(t,l,!0):i!==void 0?e.addEventListener(t,l,{passive:i}):e.addEventListener(t,l,!1)}function mc(e,t,l,a,i){var s=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var f=a.tag;if(f===3||f===4){var d=a.stateNode.containerInfo;if(d===i)break;if(f===4)for(f=a.return;f!==null;){var b=f.tag;if((b===3||b===4)&&f.stateNode.containerInfo===i)return;f=f.return}for(;d!==null;){if(f=xa(d),f===null)return;if(b=f.tag,b===5||b===6||b===26||b===27){a=s=f;continue e}d=d.parentNode}}a=a.return}hf(function(){var C=s,R=Mu(l),_=[];e:{var z=kf.get(e);if(z!==void 0){var O=Ui,G=e;switch(e){case"keypress":if(Di(l)===0)break e;case"keydown":case"keyup":O=ey;break;case"focusin":G="focus",O=Bu;break;case"focusout":G="blur",O=Bu;break;case"beforeblur":case"afterblur":O=Bu;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":O=vf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":O=Y1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":O=ay;break;case Bf:case qf:case Hf:O=Z1;break;case Qf:O=iy;break;case"scroll":case"scrollend":O=Q1;break;case"wheel":O=uy;break;case"copy":case"cut":case"paste":O=K1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":O=pf;break;case"toggle":case"beforetoggle":O=cy}var W=(t&4)!==0,Ee=!W&&(e==="scroll"||e==="scrollend"),w=W?z!==null?z+"Capture":null:z;W=[];for(var j=C,E;j!==null;){var D=j;if(E=D.stateNode,D=D.tag,D!==5&&D!==26&&D!==27||E===null||w===null||(D=xn(j,w),D!=null&&W.push(Pn(j,D,E))),Ee)break;j=j.return}0<W.length&&(z=new O(z,G,null,l,R),_.push({event:z,listeners:W}))}}if((t&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",O=e==="mouseout"||e==="pointerout",z&&l!==Tu&&(G=l.relatedTarget||l.fromElement)&&(xa(G)||G[ba]))break e;if((O||z)&&(z=R.window===R?R:(z=R.ownerDocument)?z.defaultView||z.parentWindow:window,O?(G=l.relatedTarget||l.toElement,O=C,G=G?xa(G):null,G!==null&&(Ee=g(G),W=G.tag,G!==Ee||W!==5&&W!==27&&W!==6)&&(G=null)):(O=null,G=C),O!==G)){if(W=vf,D="onMouseLeave",w="onMouseEnter",j="mouse",(e==="pointerout"||e==="pointerover")&&(W=pf,D="onPointerLeave",w="onPointerEnter",j="pointer"),Ee=O==null?z:bn(O),E=G==null?z:bn(G),z=new W(D,j+"leave",O,l,R),z.target=Ee,z.relatedTarget=E,D=null,xa(R)===C&&(W=new W(w,j+"enter",G,l,R),W.target=E,W.relatedTarget=Ee,D=W),Ee=D,O&&G)t:{for(W=rp,w=O,j=G,E=0,D=w;D;D=W(D))E++;D=0;for(var F=j;F;F=W(F))D++;for(;0<E-D;)w=W(w),E--;for(;0<D-E;)j=W(j),D--;for(;E--;){if(w===j||j!==null&&w===j.alternate){W=w;break t}w=W(w),j=W(j)}W=null}else W=null;O!==null&&c0(_,z,O,W,!1),G!==null&&Ee!==null&&c0(_,Ee,G,W,!0)}}e:{if(z=C?bn(C):window,O=z.nodeName&&z.nodeName.toLowerCase(),O==="select"||O==="input"&&z.type==="file")var me=Cf;else if(Nf(z))if(zf)me=by;else{me=yy;var X=vy}else O=z.nodeName,!O||O.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?C&&Ou(C.elementType)&&(me=Cf):me=py;if(me&&(me=me(e,C))){Ef(_,me,l,R);break e}X&&X(e,z,C),e==="focusout"&&C&&z.type==="number"&&C.memoizedProps.value!=null&&Au(z,"number",z.value)}switch(X=C?bn(C):window,e){case"focusin":(Nf(X)||X.contentEditable==="true")&&(Oa=X,Gu=C,An=null);break;case"focusout":An=Gu=Oa=null;break;case"mousedown":Vu=!0;break;case"contextmenu":case"mouseup":case"dragend":Vu=!1,Uf(_,l,R);break;case"selectionchange":if(jy)break;case"keydown":case"keyup":Uf(_,l,R)}var ae;if(Hu)e:{switch(e){case"compositionstart":var ce="onCompositionStart";break e;case"compositionend":ce="onCompositionEnd";break e;case"compositionupdate":ce="onCompositionUpdate";break e}ce=void 0}else Aa?Sf(e,l)&&(ce="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(ce="onCompositionStart");ce&&(bf&&l.locale!=="ko"&&(Aa||ce!=="onCompositionStart"?ce==="onCompositionEnd"&&Aa&&(ae=mf()):(vl=R,_u="value"in vl?vl.value:vl.textContent,Aa=!0)),X=Es(C,ce),0<X.length&&(ce=new yf(ce,e,null,l,R),_.push({event:ce,listeners:X}),ae?ce.data=ae:(ae=wf(l),ae!==null&&(ce.data=ae)))),(ae=fy?dy(e,l):hy(e,l))&&(ce=Es(C,"onBeforeInput"),0<ce.length&&(X=new yf("onBeforeInput","beforeinput",null,l,R),_.push({event:X,listeners:ce}),X.data=ae)),np(_,e,C,l,R)}u0(_,t)})}function Pn(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Es(e,t){for(var l=t+"Capture",a=[];e!==null;){var i=e,s=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||s===null||(i=xn(e,l),i!=null&&a.unshift(Pn(e,i,s)),i=xn(e,t),i!=null&&a.push(Pn(e,i,s))),e.tag===3)return a;e=e.return}return[]}function rp(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function c0(e,t,l,a,i){for(var s=t._reactName,f=[];l!==null&&l!==a;){var d=l,b=d.alternate,C=d.stateNode;if(d=d.tag,b!==null&&b===a)break;d!==5&&d!==26&&d!==27||C===null||(b=C,i?(C=xn(l,s),C!=null&&f.unshift(Pn(l,C,b))):i||(C=xn(l,s),C!=null&&f.push(Pn(l,C,b)))),l=l.return}f.length!==0&&e.push({event:t,listeners:f})}var cp=/\r\n?/g,op=/\u0000|\uFFFD/g;function o0(e){return(typeof e=="string"?e:""+e).replace(cp,`
9
+ `).replace(op,"")}function f0(e,t){return t=o0(t),o0(e)===t}function Ne(e,t,l,a,i,s){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Ea(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Ea(e,""+a);break;case"className":Oi(e,"class",a);break;case"tabIndex":Oi(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Oi(e,l,a);break;case"style":ff(e,a,s);break;case"data":if(t!=="object"){Oi(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Mi(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"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"&&(l==="formAction"?(t!=="input"&&Ne(e,t,"name",i.name,i,null),Ne(e,t,"formEncType",i.formEncType,i,null),Ne(e,t,"formMethod",i.formMethod,i,null),Ne(e,t,"formTarget",i.formTarget,i,null)):(Ne(e,t,"encType",i.encType,i,null),Ne(e,t,"method",i.method,i,null),Ne(e,t,"target",i.target,i,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Mi(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=Kt);break;case"onScroll":a!=null&&ue("scroll",e);break;case"onScrollEnd":a!=null&&ue("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(i.children!=null)throw Error(o(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=Mi(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);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":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":ue("beforetoggle",e),ue("toggle",e),Ai(e,"popover",a);break;case"xlinkActuate":Xt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Xt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Xt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Xt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Xt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Xt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Xt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Xt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Xt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Ai(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=q1.get(l)||l,Ai(e,l,a))}}function gc(e,t,l,a,i,s){switch(l){case"style":ff(e,a,s);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(i.children!=null)throw Error(o(60));e.innerHTML=l}}break;case"children":typeof a=="string"?Ea(e,a):(typeof a=="number"||typeof a=="bigint")&&Ea(e,""+a);break;case"onScroll":a!=null&&ue("scroll",e);break;case"onScrollEnd":a!=null&&ue("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Kt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!tf.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(i=l.endsWith("Capture"),t=l.slice(2,i?l.length-7:void 0),s=e[rt]||null,s=s!=null?s[l]:null,typeof s=="function"&&e.removeEventListener(t,s,i),typeof a=="function")){typeof s!="function"&&s!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,i);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):Ai(e,l,a)}}}function et(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ue("error",e),ue("load",e);var a=!1,i=!1,s;for(s in l)if(l.hasOwnProperty(s)){var f=l[s];if(f!=null)switch(s){case"src":a=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Ne(e,t,s,f,l,null)}}i&&Ne(e,t,"srcSet",l.srcSet,l,null),a&&Ne(e,t,"src",l.src,l,null);return;case"input":ue("invalid",e);var d=s=f=i=null,b=null,C=null;for(a in l)if(l.hasOwnProperty(a)){var R=l[a];if(R!=null)switch(a){case"name":i=R;break;case"type":f=R;break;case"checked":b=R;break;case"defaultChecked":C=R;break;case"value":s=R;break;case"defaultValue":d=R;break;case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(o(137,t));break;default:Ne(e,t,a,R,l,null)}}uf(e,s,d,b,C,f,i,!1);return;case"select":ue("invalid",e),a=f=s=null;for(i in l)if(l.hasOwnProperty(i)&&(d=l[i],d!=null))switch(i){case"value":s=d;break;case"defaultValue":f=d;break;case"multiple":a=d;default:Ne(e,t,i,d,l,null)}t=s,l=f,e.multiple=!!a,t!=null?Na(e,!!a,t,!1):l!=null&&Na(e,!!a,l,!0);return;case"textarea":ue("invalid",e),s=i=a=null;for(f in l)if(l.hasOwnProperty(f)&&(d=l[f],d!=null))switch(f){case"value":a=d;break;case"defaultValue":i=d;break;case"children":s=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(o(91));break;default:Ne(e,t,f,d,l,null)}cf(e,a,i,s);return;case"option":for(b in l)if(l.hasOwnProperty(b)&&(a=l[b],a!=null))switch(b){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Ne(e,t,b,a,l,null)}return;case"dialog":ue("beforetoggle",e),ue("toggle",e),ue("cancel",e),ue("close",e);break;case"iframe":case"object":ue("load",e);break;case"video":case"audio":for(a=0;a<In.length;a++)ue(In[a],e);break;case"image":ue("error",e),ue("load",e);break;case"details":ue("toggle",e);break;case"embed":case"source":case"link":ue("error",e),ue("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(C in l)if(l.hasOwnProperty(C)&&(a=l[C],a!=null))switch(C){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Ne(e,t,C,a,l,null)}return;default:if(Ou(t)){for(R in l)l.hasOwnProperty(R)&&(a=l[R],a!==void 0&&gc(e,t,R,a,l,void 0));return}}for(d in l)l.hasOwnProperty(d)&&(a=l[d],a!=null&&Ne(e,t,d,a,l,null))}function fp(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,s=null,f=null,d=null,b=null,C=null,R=null;for(O in l){var _=l[O];if(l.hasOwnProperty(O)&&_!=null)switch(O){case"checked":break;case"value":break;case"defaultValue":b=_;default:a.hasOwnProperty(O)||Ne(e,t,O,null,a,_)}}for(var z in a){var O=a[z];if(_=l[z],a.hasOwnProperty(z)&&(O!=null||_!=null))switch(z){case"type":s=O;break;case"name":i=O;break;case"checked":C=O;break;case"defaultChecked":R=O;break;case"value":f=O;break;case"defaultValue":d=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(o(137,t));break;default:O!==_&&Ne(e,t,z,O,a,_)}}zu(e,f,d,b,C,R,s,i);return;case"select":O=f=d=z=null;for(s in l)if(b=l[s],l.hasOwnProperty(s)&&b!=null)switch(s){case"value":break;case"multiple":O=b;default:a.hasOwnProperty(s)||Ne(e,t,s,null,a,b)}for(i in a)if(s=a[i],b=l[i],a.hasOwnProperty(i)&&(s!=null||b!=null))switch(i){case"value":z=s;break;case"defaultValue":d=s;break;case"multiple":f=s;default:s!==b&&Ne(e,t,i,s,a,b)}t=d,l=f,a=O,z!=null?Na(e,!!l,z,!1):!!a!=!!l&&(t!=null?Na(e,!!l,t,!0):Na(e,!!l,l?[]:"",!1));return;case"textarea":O=z=null;for(d in l)if(i=l[d],l.hasOwnProperty(d)&&i!=null&&!a.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:Ne(e,t,d,null,a,i)}for(f in a)if(i=a[f],s=l[f],a.hasOwnProperty(f)&&(i!=null||s!=null))switch(f){case"value":z=i;break;case"defaultValue":O=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(o(91));break;default:i!==s&&Ne(e,t,f,i,a,s)}rf(e,z,O);return;case"option":for(var G in l)if(z=l[G],l.hasOwnProperty(G)&&z!=null&&!a.hasOwnProperty(G))switch(G){case"selected":e.selected=!1;break;default:Ne(e,t,G,null,a,z)}for(b in a)if(z=a[b],O=l[b],a.hasOwnProperty(b)&&z!==O&&(z!=null||O!=null))switch(b){case"selected":e.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:Ne(e,t,b,z,a,O)}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 W in l)z=l[W],l.hasOwnProperty(W)&&z!=null&&!a.hasOwnProperty(W)&&Ne(e,t,W,null,a,z);for(C in a)if(z=a[C],O=l[C],a.hasOwnProperty(C)&&z!==O&&(z!=null||O!=null))switch(C){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(o(137,t));break;default:Ne(e,t,C,z,a,O)}return;default:if(Ou(t)){for(var Ee in l)z=l[Ee],l.hasOwnProperty(Ee)&&z!==void 0&&!a.hasOwnProperty(Ee)&&gc(e,t,Ee,void 0,a,z);for(R in a)z=a[R],O=l[R],!a.hasOwnProperty(R)||z===O||z===void 0&&O===void 0||gc(e,t,R,z,a,O);return}}for(var w in l)z=l[w],l.hasOwnProperty(w)&&z!=null&&!a.hasOwnProperty(w)&&Ne(e,t,w,null,a,z);for(_ in a)z=a[_],O=l[_],!a.hasOwnProperty(_)||z===O||z==null&&O==null||Ne(e,t,_,z,a,O)}function d0(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function dp(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var i=l[a],s=i.transferSize,f=i.initiatorType,d=i.duration;if(s&&d&&d0(f)){for(f=0,d=i.responseEnd,a+=1;a<l.length;a++){var b=l[a],C=b.startTime;if(C>d)break;var R=b.transferSize,_=b.initiatorType;R&&d0(_)&&(b=b.responseEnd,f+=R*(b<d?1:(d-C)/(b-C)))}if(--a,t+=8*(s+f)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var vc=null,yc=null;function Cs(e){return e.nodeType===9?e:e.ownerDocument}function h0(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function m0(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function pc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var bc=null;function hp(){var e=window.event;return e&&e.type==="popstate"?e===bc?!1:(bc=e,!0):(bc=null,!1)}var g0=typeof setTimeout=="function"?setTimeout:void 0,mp=typeof clearTimeout=="function"?clearTimeout:void 0,v0=typeof Promise=="function"?Promise:void 0,gp=typeof queueMicrotask=="function"?queueMicrotask:typeof v0<"u"?function(e){return v0.resolve(null).then(e).catch(vp)}:g0;function vp(e){setTimeout(function(){throw e})}function Dl(e){return e==="head"}function y0(e,t){var l=t,a=0;do{var i=l.nextSibling;if(e.removeChild(l),i&&i.nodeType===8)if(l=i.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(i),ln(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")ei(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,ei(l);for(var s=l.firstChild;s;){var f=s.nextSibling,d=s.nodeName;s[pn]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&s.rel.toLowerCase()==="stylesheet"||l.removeChild(s),s=f}}else l==="body"&&ei(e.ownerDocument.body);l=i}while(l);ln(t)}function p0(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function xc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":xc(l),Eu(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function yp(e,t,l,a){for(;e.nodeType===1;){var i=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[pn])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(s!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(s=e.getAttribute("src"),(s!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var s=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;if(e=_t(e.nextSibling),e===null)break}return null}function pp(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=_t(e.nextSibling),e===null))return null;return e}function b0(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=_t(e.nextSibling),e===null))return null;return e}function jc(e){return e.data==="$?"||e.data==="$~"}function Sc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function bp(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function _t(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var wc=null;function x0(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return _t(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function j0(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function S0(e,t,l){switch(t=Cs(l),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function ei(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Eu(e)}var Ut=new Map,w0=new Set;function zs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var cl=Q.d;Q.d={f:xp,r:jp,D:Sp,C:wp,L:Np,m:Ep,X:zp,S:Cp,M:Ap};function xp(){var e=cl.f(),t=ps();return e||t}function jp(e){var t=ja(e);t!==null&&t.tag===5&&t.type==="form"?Qd(t):cl.r(e)}var Pa=typeof document>"u"?null:document;function N0(e,t,l){var a=Pa;if(a&&typeof t=="string"&&t){var i=zt(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof l=="string"&&(i+='[crossorigin="'+l+'"]'),w0.has(i)||(w0.add(i),e={rel:e,crossOrigin:l,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),et(t,"link",e),Je(t),a.head.appendChild(t)))}}function Sp(e){cl.D(e),N0("dns-prefetch",e,null)}function wp(e,t){cl.C(e,t),N0("preconnect",e,t)}function Np(e,t,l){cl.L(e,t,l);var a=Pa;if(a&&e&&t){var i='link[rel="preload"][as="'+zt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(i+='[imagesrcset="'+zt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(i+='[imagesizes="'+zt(l.imageSizes)+'"]')):i+='[href="'+zt(e)+'"]';var s=i;switch(t){case"style":s=en(e);break;case"script":s=tn(e)}Ut.has(s)||(e=A({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Ut.set(s,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(ti(s))||t==="script"&&a.querySelector(li(s))||(t=a.createElement("link"),et(t,"link",e),Je(t),a.head.appendChild(t)))}}function Ep(e,t){cl.m(e,t);var l=Pa;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+zt(a)+'"][href="'+zt(e)+'"]',s=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=tn(e)}if(!Ut.has(s)&&(e=A({rel:"modulepreload",href:e},t),Ut.set(s,e),l.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(li(s)))return}a=l.createElement("link"),et(a,"link",e),Je(a),l.head.appendChild(a)}}}function Cp(e,t,l){cl.S(e,t,l);var a=Pa;if(a&&e){var i=Sa(a).hoistableStyles,s=en(e);t=t||"default";var f=i.get(s);if(!f){var d={loading:0,preload:null};if(f=a.querySelector(ti(s)))d.loading=5;else{e=A({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Ut.get(s))&&Nc(e,l);var b=f=a.createElement("link");Je(b),et(b,"link",e),b._p=new Promise(function(C,R){b.onload=C,b.onerror=R}),b.addEventListener("load",function(){d.loading|=1}),b.addEventListener("error",function(){d.loading|=2}),d.loading|=4,As(f,t,a)}f={type:"stylesheet",instance:f,count:1,state:d},i.set(s,f)}}}function zp(e,t){cl.X(e,t);var l=Pa;if(l&&e){var a=Sa(l).hoistableScripts,i=tn(e),s=a.get(i);s||(s=l.querySelector(li(i)),s||(e=A({src:e,async:!0},t),(t=Ut.get(i))&&Ec(e,t),s=l.createElement("script"),Je(s),et(s,"link",e),l.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},a.set(i,s))}}function Ap(e,t){cl.M(e,t);var l=Pa;if(l&&e){var a=Sa(l).hoistableScripts,i=tn(e),s=a.get(i);s||(s=l.querySelector(li(i)),s||(e=A({src:e,async:!0,type:"module"},t),(t=Ut.get(i))&&Ec(e,t),s=l.createElement("script"),Je(s),et(s,"link",e),l.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},a.set(i,s))}}function E0(e,t,l,a){var i=(i=ie.current)?zs(i):null;if(!i)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=en(l.href),l=Sa(i).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=en(l.href);var s=Sa(i).hoistableStyles,f=s.get(e);if(f||(i=i.ownerDocument||i,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,f),(s=i.querySelector(ti(e)))&&!s._p&&(f.instance=s,f.state.loading=5),Ut.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Ut.set(e,l),s||Op(i,e,l,f.state))),t&&a===null)throw Error(o(528,""));return f}if(t&&a!==null)throw Error(o(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=tn(l),l=Sa(i).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function en(e){return'href="'+zt(e)+'"'}function ti(e){return'link[rel="stylesheet"]['+e+"]"}function C0(e){return A({},e,{"data-precedence":e.precedence,precedence:null})}function Op(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),et(t,"link",l),Je(t),e.head.appendChild(t))}function tn(e){return'[src="'+zt(e)+'"]'}function li(e){return"script[async]"+e}function z0(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+zt(l.href)+'"]');if(a)return t.instance=a,Je(a),a;var i=A({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Je(a),et(a,"style",i),As(a,l.precedence,e),t.instance=a;case"stylesheet":i=en(l.href);var s=e.querySelector(ti(i));if(s)return t.state.loading|=4,t.instance=s,Je(s),s;a=C0(l),(i=Ut.get(i))&&Nc(a,i),s=(e.ownerDocument||e).createElement("link"),Je(s);var f=s;return f._p=new Promise(function(d,b){f.onload=d,f.onerror=b}),et(s,"link",a),t.state.loading|=4,As(s,l.precedence,e),t.instance=s;case"script":return s=tn(l.src),(i=e.querySelector(li(s)))?(t.instance=i,Je(i),i):(a=l,(i=Ut.get(s))&&(a=A({},l),Ec(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),Je(i),et(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,As(a,l.precedence,e));return t.instance}function As(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,s=i,f=0;f<a.length;f++){var d=a[f];if(d.dataset.precedence===t)s=d;else if(s!==i)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Nc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ec(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Os=null;function A0(e,t,l){if(Os===null){var a=new Map,i=Os=new Map;i.set(l,a)}else i=Os,a=i.get(l),a||(a=new Map,i.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),i=0;i<l.length;i++){var s=l[i];if(!(s[pn]||s[Fe]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var f=s.getAttribute(t)||"";f=e+f;var d=a.get(f);d?d.push(s):a.set(f,[s])}}return a}function O0(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Tp(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function T0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Mp(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var i=en(a.href),s=t.querySelector(ti(i));if(s){t=s._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ts.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=s,Je(s);return}s=t.ownerDocument||t,a=C0(a),(i=Ut.get(i))&&Nc(a,i),s=s.createElement("link"),Je(s);var f=s;f._p=new Promise(function(d,b){f.onload=d,f.onerror=b}),et(s,"link",a),l.instance=s}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Ts.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Cc=0;function Rp(e,t){return e.stylesheets&&e.count===0&&Rs(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&Rs(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4+t);0<e.imgBytes&&Cc===0&&(Cc=62500*dp());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Rs(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>Cc?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function Ts(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Rs(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ms=null;function Rs(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ms=new Map,t.forEach(Dp,e),Ms=null,Ts.call(e))}function Dp(e,t){if(!(t.state.loading&4)){var l=Ms.get(e);if(l)var a=l.get(null);else{l=new Map,Ms.set(e,l);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<i.length;s++){var f=i[s];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(l.set(f.dataset.precedence,f),a=f)}a&&l.set(null,a)}i=t.instance,f=i.getAttribute("data-precedence"),s=l.get(f)||a,s===a&&l.set(null,i),l.set(f,i),this.count++,a=Ts.bind(this),i.addEventListener("load",a),i.addEventListener("error",a),s?s.parentNode.insertBefore(i,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var ai={$$typeof:k,Provider:null,Consumer:null,_currentValue:I,_currentValue2:I,_threadCount:0};function _p(e,t,l,a,i,s,f,d,b){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ju(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ju(0),this.hiddenUpdates=ju(null),this.identifierPrefix=a,this.onUncaughtError=i,this.onCaughtError=s,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map}function M0(e,t,l,a,i,s,f,d,b,C,R,_){return e=new _p(e,t,l,f,b,C,R,_,d),t=1,s===!0&&(t|=24),s=bt(3,null,null,t),e.current=s,s.stateNode=e,t=ir(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:a,isDehydrated:l,cache:t},cr(s),e}function R0(e){return e?(e=Ra,e):Ra}function D0(e,t,l,a,i,s){i=R0(i),a.context===null?a.context=i:a.pendingContext=i,a=Sl(t),a.payload={element:l},s=s===void 0?null:s,s!==null&&(a.callback=s),l=wl(e,a,t),l!==null&&(mt(l,e,t),Un(l,e,t))}function _0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function zc(e,t){_0(e,t),(e=e.alternate)&&_0(e,t)}function U0(e){if(e.tag===13||e.tag===31){var t=ea(e,67108864);t!==null&&mt(t,e,67108864),zc(e,67108864)}}function L0(e){if(e.tag===13||e.tag===31){var t=Nt();t=Su(t);var l=ea(e,t);l!==null&&mt(l,e,t),zc(e,t)}}var Ds=!0;function Up(e,t,l,a){var i=T.T;T.T=null;var s=Q.p;try{Q.p=2,Ac(e,t,l,a)}finally{Q.p=s,T.T=i}}function Lp(e,t,l,a){var i=T.T;T.T=null;var s=Q.p;try{Q.p=8,Ac(e,t,l,a)}finally{Q.p=s,T.T=i}}function Ac(e,t,l,a){if(Ds){var i=Oc(a);if(i===null)mc(e,t,a,_s,l),q0(e,a);else if(qp(i,e,t,l,a))a.stopPropagation();else if(q0(e,a),t&4&&-1<Bp.indexOf(e)){for(;i!==null;){var s=ja(i);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var f=$l(s.pendingLanes);if(f!==0){var d=s;for(d.pendingLanes|=2,d.entangledLanes|=2;f;){var b=1<<31-yt(f);d.entanglements[1]|=b,f&=~b}Zt(s),(ye&6)===0&&(vs=gt()+500,Wn(0))}}break;case 31:case 13:d=ea(s,2),d!==null&&mt(d,s,2),ps(),zc(s,2)}if(s=Oc(a),s===null&&mc(e,t,a,_s,l),s===i)break;i=s}i!==null&&a.stopPropagation()}else mc(e,t,a,null,l)}}function Oc(e){return e=Mu(e),Tc(e)}var _s=null;function Tc(e){if(_s=null,e=xa(e),e!==null){var t=g(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=v(t),e!==null)return e;e=null}else if(l===31){if(e=y(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return _s=e,null}function B0(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(S1()){case Vo:return 2;case Zo:return 8;case wi:case w1:return 32;case Xo:return 268435456;default:return 32}default:return 32}}var Mc=!1,_l=null,Ul=null,Ll=null,ni=new Map,ii=new Map,Bl=[],Bp="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 q0(e,t){switch(e){case"focusin":case"focusout":_l=null;break;case"dragenter":case"dragleave":Ul=null;break;case"mouseover":case"mouseout":Ll=null;break;case"pointerover":case"pointerout":ni.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ii.delete(t.pointerId)}}function si(e,t,l,a,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:s,targetContainers:[i]},t!==null&&(t=ja(t),t!==null&&U0(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function qp(e,t,l,a,i){switch(t){case"focusin":return _l=si(_l,e,t,l,a,i),!0;case"dragenter":return Ul=si(Ul,e,t,l,a,i),!0;case"mouseover":return Ll=si(Ll,e,t,l,a,i),!0;case"pointerover":var s=i.pointerId;return ni.set(s,si(ni.get(s)||null,e,t,l,a,i)),!0;case"gotpointercapture":return s=i.pointerId,ii.set(s,si(ii.get(s)||null,e,t,l,a,i)),!0}return!1}function H0(e){var t=xa(e.target);if(t!==null){var l=g(t);if(l!==null){if(t=l.tag,t===13){if(t=v(l),t!==null){e.blockedOn=t,Io(e.priority,function(){L0(l)});return}}else if(t===31){if(t=y(l),t!==null){e.blockedOn=t,Io(e.priority,function(){L0(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Us(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Oc(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);Tu=a,l.target.dispatchEvent(a),Tu=null}else return t=ja(l),t!==null&&U0(t),e.blockedOn=l,!1;t.shift()}return!0}function Q0(e,t,l){Us(e)&&l.delete(t)}function Hp(){Mc=!1,_l!==null&&Us(_l)&&(_l=null),Ul!==null&&Us(Ul)&&(Ul=null),Ll!==null&&Us(Ll)&&(Ll=null),ni.forEach(Q0),ii.forEach(Q0)}function Ls(e,t){e.blockedOn===t&&(e.blockedOn=null,Mc||(Mc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Hp)))}var Bs=null;function k0(e){Bs!==e&&(Bs=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Bs===e&&(Bs=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],i=e[t+2];if(typeof a!="function"){if(Tc(a||l)===null)continue;break}var s=ja(l);s!==null&&(e.splice(t,3),t-=3,Or(s,{pending:!0,data:i,method:l.method,action:a},a,i))}}))}function ln(e){function t(b){return Ls(b,e)}_l!==null&&Ls(_l,e),Ul!==null&&Ls(Ul,e),Ll!==null&&Ls(Ll,e),ni.forEach(t),ii.forEach(t);for(var l=0;l<Bl.length;l++){var a=Bl[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Bl.length&&(l=Bl[0],l.blockedOn===null);)H0(l),l.blockedOn===null&&Bl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var i=l[a],s=l[a+1],f=i[rt]||null;if(typeof s=="function")f||k0(l);else if(f){var d=null;if(s&&s.hasAttribute("formAction")){if(i=s,f=s[rt]||null)d=f.formAction;else if(Tc(i)!==null)continue}else d=f.action;typeof d=="function"?l[a+1]=d:(l.splice(a,3),a-=3),k0(l)}}}function Y0(){function e(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(f){return i=f})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),a||setTimeout(l,20)}function l(){if(!a&&!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 a=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function Rc(e){this._internalRoot=e}qs.prototype.render=Rc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var l=t.current,a=Nt();D0(l,a,e,t,null,null)},qs.prototype.unmount=Rc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;D0(e.current,2,null,e,null,null),ps(),t[ba]=null}};function qs(e){this._internalRoot=e}qs.prototype.unstable_scheduleHydration=function(e){if(e){var t=Wo();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Bl.length&&t!==0&&t<Bl[l].priority;l++);Bl.splice(l,0,e),l===0&&H0(e)}};var G0=u.version;if(G0!=="19.2.0")throw Error(o(527,G0,"19.2.0"));Q.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=p(t),e=e!==null?N(e):null,e=e===null?null:e.stateNode,e};var Qp={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:T,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Hs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Hs.isDisabled&&Hs.supportsFiber)try{gn=Hs.inject(Qp),vt=Hs}catch{}}return nn.createRoot=function(e,t){if(!h(e))throw Error(o(299));var l=!1,a="",i=Fd,s=Wd,f=Id;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(f=t.onRecoverableError)),t=M0(e,1,!1,null,null,l,a,null,i,s,f,Y0),e[ba]=t.current,hc(e),new Rc(t)},nn.hydrateRoot=function(e,t,l){if(!h(e))throw Error(o(299));var a=!1,i="",s=Fd,f=Wd,d=Id,b=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(i=l.identifierPrefix),l.onUncaughtError!==void 0&&(s=l.onUncaughtError),l.onCaughtError!==void 0&&(f=l.onCaughtError),l.onRecoverableError!==void 0&&(d=l.onRecoverableError),l.formState!==void 0&&(b=l.formState)),t=M0(e,1,!0,t,l??null,a,i,b,s,f,d,Y0),t.context=R0(null),l=t.current,a=Nt(),a=Su(a),i=Sl(a),i.callback=null,wl(l,i,a),l=a,t.current.lanes=l,yn(t,l),Zt(t),e[ba]=t.current,hc(e),new qs(t)},nn.version="19.2.0",nn}var Vc;function P0(){if(Vc)return Ys.exports;Vc=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(u){console.error(u)}}return n(),Ys.exports=I0(),Ys.exports}var em=P0();const tm=Dc(em);var ha=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},lm={setTimeout:(n,u)=>setTimeout(n,u),clearTimeout:n=>clearTimeout(n),setInterval:(n,u)=>setInterval(n,u),clearInterval:n=>clearInterval(n)},am=class{#e=lm;#t=!1;setTimeoutProvider(n){this.#e=n}setTimeout(n,u){return this.#e.setTimeout(n,u)}clearTimeout(n){this.#e.clearTimeout(n)}setInterval(n,u){return this.#e.setInterval(n,u)}clearInterval(n){this.#e.clearInterval(n)}},Hl=new am;function nm(n){setTimeout(n,0)}var Ql=typeof window>"u"||"Deno"in globalThis;function at(){}function im(n,u){return typeof n=="function"?n(u):n}function Xs(n){return typeof n=="number"&&n>=0&&n!==1/0}function Zc(n,u){return Math.max(n+(u||0)-Date.now(),0)}function ol(n,u){return typeof n=="function"?n(u):n}function Et(n,u){return typeof n=="function"?n(u):n}function Xc(n,u){const{type:c="all",exact:o,fetchStatus:h,predicate:g,queryKey:v,stale:y}=n;if(v){if(o){if(u.queryHash!==Ks(v,u.options))return!1}else if(!sn(u.queryKey,v))return!1}if(c!=="all"){const x=u.isActive();if(c==="active"&&!x||c==="inactive"&&x)return!1}return!(typeof y=="boolean"&&u.isStale()!==y||h&&h!==u.state.fetchStatus||g&&!g(u))}function Kc(n,u){const{exact:c,status:o,predicate:h,mutationKey:g}=n;if(g){if(!u.options.mutationKey)return!1;if(c){if(kl(u.options.mutationKey)!==kl(g))return!1}else if(!sn(u.options.mutationKey,g))return!1}return!(o&&u.state.status!==o||h&&!h(u))}function Ks(n,u){return(u?.queryKeyHashFn||kl)(n)}function kl(n){return JSON.stringify(n,(u,c)=>Js(c)?Object.keys(c).sort().reduce((o,h)=>(o[h]=c[h],o),{}):c)}function sn(n,u){return n===u?!0:typeof n!=typeof u?!1:n&&u&&typeof n=="object"&&typeof u=="object"?Object.keys(u).every(c=>sn(n[c],u[c])):!1}var sm=Object.prototype.hasOwnProperty;function Jc(n,u){if(n===u)return n;const c=$c(n)&&$c(u);if(!c&&!(Js(n)&&Js(u)))return u;const h=(c?n:Object.keys(n)).length,g=c?u:Object.keys(u),v=g.length,y=c?new Array(v):{};let x=0;for(let p=0;p<v;p++){const N=c?p:g[p],A=n[N],B=u[N];if(A===B){y[N]=A,(c?p<h:sm.call(n,N))&&x++;continue}if(A===null||B===null||typeof A!="object"||typeof B!="object"){y[N]=B;continue}const V=Jc(A,B);y[N]=V,V===A&&x++}return h===v&&x===h?n:y}function ri(n,u){if(!u||Object.keys(n).length!==Object.keys(u).length)return!1;for(const c in n)if(n[c]!==u[c])return!1;return!0}function $c(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function Js(n){if(!Fc(n))return!1;const u=n.constructor;if(u===void 0)return!0;const c=u.prototype;return!(!Fc(c)||!c.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function Fc(n){return Object.prototype.toString.call(n)==="[object Object]"}function um(n){return new Promise(u=>{Hl.setTimeout(u,n)})}function $s(n,u,c){return typeof c.structuralSharing=="function"?c.structuralSharing(n,u):c.structuralSharing!==!1?Jc(n,u):u}function rm(n,u,c=0){const o=[...n,u];return c&&o.length>c?o.slice(1):o}function cm(n,u,c=0){const o=[u,...n];return c&&o.length>c?o.slice(0,-1):o}var Fs=Symbol();function Wc(n,u){return!n.queryFn&&u?.initialPromise?()=>u.initialPromise:!n.queryFn||n.queryFn===Fs?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function Ic(n,u){return typeof n=="function"?n(...u):!!n}var om=class extends ha{#e;#t;#l;constructor(){super(),this.#l=n=>{if(!Ql&&window.addEventListener){const u=()=>n();return window.addEventListener("visibilitychange",u,!1),()=>{window.removeEventListener("visibilitychange",u)}}}}onSubscribe(){this.#t||this.setEventListener(this.#l)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#l=n,this.#t?.(),this.#t=n(u=>{typeof u=="boolean"?this.setFocused(u):this.onFocus()})}setFocused(n){this.#e!==n&&(this.#e=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(u=>{u(n)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Ws=new om;function Is(){let n,u;const c=new Promise((h,g)=>{n=h,u=g});c.status="pending",c.catch(()=>{});function o(h){Object.assign(c,h),delete c.resolve,delete c.reject}return c.resolve=h=>{o({status:"fulfilled",value:h}),n(h)},c.reject=h=>{o({status:"rejected",reason:h}),u(h)},c}var fm=nm;function dm(){let n=[],u=0,c=y=>{y()},o=y=>{y()},h=fm;const g=y=>{u?n.push(y):h(()=>{c(y)})},v=()=>{const y=n;n=[],y.length&&h(()=>{o(()=>{y.forEach(x=>{c(x)})})})};return{batch:y=>{let x;u++;try{x=y()}finally{u--,u||v()}return x},batchCalls:y=>(...x)=>{g(()=>{y(...x)})},schedule:g,setNotifyFunction:y=>{c=y},setBatchNotifyFunction:y=>{o=y},setScheduler:y=>{h=y}}}var Ve=dm(),hm=class extends ha{#e=!0;#t;#l;constructor(){super(),this.#l=n=>{if(!Ql&&window.addEventListener){const u=()=>n(!0),c=()=>n(!1);return window.addEventListener("online",u,!1),window.addEventListener("offline",c,!1),()=>{window.removeEventListener("online",u),window.removeEventListener("offline",c)}}}}onSubscribe(){this.#t||this.setEventListener(this.#l)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#l=n,this.#t?.(),this.#t=n(this.setOnline.bind(this))}setOnline(n){this.#e!==n&&(this.#e=n,this.listeners.forEach(c=>{c(n)}))}isOnline(){return this.#e}},ci=new hm;function mm(n){return Math.min(1e3*2**n,3e4)}function Pc(n){return(n??"online")==="online"?ci.isOnline():!0}var Ps=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function eo(n){let u=!1,c=0,o;const h=Is(),g=()=>h.status!=="pending",v=M=>{if(!g()){const q=new Ps(M);B(q),n.onCancel?.(q)}},y=()=>{u=!0},x=()=>{u=!1},p=()=>Ws.isFocused()&&(n.networkMode==="always"||ci.isOnline())&&n.canRun(),N=()=>Pc(n.networkMode)&&n.canRun(),A=M=>{g()||(o?.(),h.resolve(M))},B=M=>{g()||(o?.(),h.reject(M))},V=()=>new Promise(M=>{o=q=>{(g()||p())&&M(q)},n.onPause?.()}).then(()=>{o=void 0,g()||n.onContinue?.()}),H=()=>{if(g())return;let M;const q=c===0?n.initialPromise:void 0;try{M=q??n.fn()}catch(L){M=Promise.reject(L)}Promise.resolve(M).then(A).catch(L=>{if(g())return;const $=n.retry??(Ql?0:3),k=n.retryDelay??mm,ne=typeof k=="function"?k(c,L):k,xe=$===!0||typeof $=="number"&&c<$||typeof $=="function"&&$(c,L);if(u||!xe){B(L);return}c++,n.onFail?.(c,L),um(ne).then(()=>p()?void 0:V()).then(()=>{u?B(L):H()})})};return{promise:h,status:()=>h.status,cancel:v,continue:()=>(o?.(),h),cancelRetry:y,continueRetry:x,canStart:N,start:()=>(N()?H():V().then(H),h)}}var to=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Xs(this.gcTime)&&(this.#e=Hl.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(Ql?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Hl.clearTimeout(this.#e),this.#e=void 0)}},gm=class extends to{#e;#t;#l;#n;#a;#s;#u;constructor(n){super(),this.#u=!1,this.#s=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#n=n.client,this.#l=this.#n.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#e=no(this.options),this.state=n.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(n){if(this.options={...this.#s,...n},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const u=no(this.options);u.data!==void 0&&(this.setState(ao(u.data,u.dataUpdatedAt)),this.#e=u)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#l.remove(this)}setData(n,u){const c=$s(this.state.data,n,this.options);return this.#i({data:c,type:"success",dataUpdatedAt:u?.updatedAt,manual:u?.manual}),c}setState(n,u){this.#i({type:"setState",state:n,setStateOptions:u})}cancel(n){const u=this.#a?.promise;return this.#a?.cancel(n),u?u.then(at).catch(at):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(n=>Et(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Fs||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>ol(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!Zc(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(u=>u.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(u=>u.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#l.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(u=>u!==n),this.observers.length||(this.#a&&(this.#u?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#l.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(n,u){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&u?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(n&&this.setOptions(n),!this.options.queryFn){const y=this.observers.find(x=>x.options.queryFn);y&&this.setOptions(y.options)}const c=new AbortController,o=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(this.#u=!0,c.signal)})},h=()=>{const y=Wc(this.options,u),p=(()=>{const N={client:this.#n,queryKey:this.queryKey,meta:this.meta};return o(N),N})();return this.#u=!1,this.options.persister?this.options.persister(y,p,this):y(p)},v=(()=>{const y={fetchOptions:u,options:this.options,queryKey:this.queryKey,client:this.#n,state:this.state,fetchFn:h};return o(y),y})();this.options.behavior?.onFetch(v,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==v.fetchOptions?.meta)&&this.#i({type:"fetch",meta:v.fetchOptions?.meta}),this.#a=eo({initialPromise:u?.initialPromise,fn:v.fetchFn,onCancel:y=>{y instanceof Ps&&y.revert&&this.setState({...this.#t,fetchStatus:"idle"}),c.abort()},onFail:(y,x)=>{this.#i({type:"failed",failureCount:y,error:x})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:v.options.retry,retryDelay:v.options.retryDelay,networkMode:v.options.networkMode,canRun:()=>!0});try{const y=await this.#a.start();if(y===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(y),this.#l.config.onSuccess?.(y,this),this.#l.config.onSettled?.(y,this.state.error,this),y}catch(y){if(y instanceof Ps){if(y.silent)return this.#a.promise;if(y.revert){if(this.state.data===void 0)throw y;return this.state.data}}throw this.#i({type:"error",error:y}),this.#l.config.onError?.(y,this),this.#l.config.onSettled?.(this.state.data,y,this),y}finally{this.scheduleGc()}}#i(n){const u=c=>{switch(n.type){case"failed":return{...c,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...c,fetchStatus:"paused"};case"continue":return{...c,fetchStatus:"fetching"};case"fetch":return{...c,...lo(c.data,this.options),fetchMeta:n.meta??null};case"success":const o={...c,...ao(n.data,n.dataUpdatedAt),dataUpdateCount:c.dataUpdateCount+1,...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=n.manual?o:void 0,o;case"error":const h=n.error;return{...c,error:h,errorUpdateCount:c.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:c.fetchFailureCount+1,fetchFailureReason:h,fetchStatus:"idle",status:"error"};case"invalidate":return{...c,isInvalidated:!0};case"setState":return{...c,...n.state}}};this.state=u(this.state),Ve.batch(()=>{this.observers.forEach(c=>{c.onQueryUpdate()}),this.#l.notify({query:this,type:"updated",action:n})})}};function lo(n,u){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Pc(u.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function ao(n,u){return{data:n,dataUpdatedAt:u??Date.now(),error:null,isInvalidated:!1,status:"success"}}function no(n){const u=typeof n.initialData=="function"?n.initialData():n.initialData,c=u!==void 0,o=c?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:u,dataUpdateCount:0,dataUpdatedAt:c?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:c?"success":"pending",fetchStatus:"idle"}}var vm=class extends ha{constructor(n,u){super(),this.options=u,this.#e=n,this.#i=null,this.#u=Is(),this.bindMethods(),this.setOptions(u)}#e;#t=void 0;#l=void 0;#n=void 0;#a;#s;#u;#i;#g;#d;#h;#c;#o;#r;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),io(this.#t,this.options)?this.#f():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return eu(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return eu(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#j(),this.#t.removeObserver(this)}setOptions(n){const u=this.options,c=this.#t;if(this.options=this.#e.defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Et(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#t.setOptions(this.options),u._defaulted&&!ri(this.options,u)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const o=this.hasListeners();o&&so(this.#t,c,this.options,u)&&this.#f(),this.updateResult(),o&&(this.#t!==c||Et(this.options.enabled,this.#t)!==Et(u.enabled,this.#t)||ol(this.options.staleTime,this.#t)!==ol(u.staleTime,this.#t))&&this.#v();const h=this.#y();o&&(this.#t!==c||Et(this.options.enabled,this.#t)!==Et(u.enabled,this.#t)||h!==this.#r)&&this.#p(h)}getOptimisticResult(n){const u=this.#e.getQueryCache().build(this.#e,n),c=this.createResult(u,n);return pm(this,c)&&(this.#n=c,this.#s=this.options,this.#a=this.#t.state),c}getCurrentResult(){return this.#n}trackResult(n,u){return new Proxy(n,{get:(c,o)=>(this.trackProp(o),u?.(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#u.status==="pending"&&this.#u.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(c,o))})}trackProp(n){this.#m.add(n)}getCurrentQuery(){return this.#t}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const u=this.#e.defaultQueryOptions(n),c=this.#e.getQueryCache().build(this.#e,u);return c.fetch().then(()=>this.createResult(c,u))}fetch(n){return this.#f({...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#n))}#f(n){this.#S();let u=this.#t.fetch(this.options,n);return n?.throwOnError||(u=u.catch(at)),u}#v(){this.#x();const n=ol(this.options.staleTime,this.#t);if(Ql||this.#n.isStale||!Xs(n))return;const c=Zc(this.#n.dataUpdatedAt,n)+1;this.#c=Hl.setTimeout(()=>{this.#n.isStale||this.updateResult()},c)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#p(n){this.#j(),this.#r=n,!(Ql||Et(this.options.enabled,this.#t)===!1||!Xs(this.#r)||this.#r===0)&&(this.#o=Hl.setInterval(()=>{(this.options.refetchIntervalInBackground||Ws.isFocused())&&this.#f()},this.#r))}#b(){this.#v(),this.#p(this.#y())}#x(){this.#c&&(Hl.clearTimeout(this.#c),this.#c=void 0)}#j(){this.#o&&(Hl.clearInterval(this.#o),this.#o=void 0)}createResult(n,u){const c=this.#t,o=this.options,h=this.#n,g=this.#a,v=this.#s,x=n!==c?n.state:this.#l,{state:p}=n;let N={...p},A=!1,B;if(u._optimisticResults){const ee=this.hasListeners(),ve=!ee&&io(n,u),Me=ee&&so(n,c,u,o);(ve||Me)&&(N={...N,...lo(p.data,n.options)}),u._optimisticResults==="isRestoring"&&(N.fetchStatus="idle")}let{error:V,errorUpdatedAt:H,status:M}=N;B=N.data;let q=!1;if(u.placeholderData!==void 0&&B===void 0&&M==="pending"){let ee;h?.isPlaceholderData&&u.placeholderData===v?.placeholderData?(ee=h.data,q=!0):ee=typeof u.placeholderData=="function"?u.placeholderData(this.#h?.state.data,this.#h):u.placeholderData,ee!==void 0&&(M="success",B=$s(h?.data,ee,u),A=!0)}if(u.select&&B!==void 0&&!q)if(h&&B===g?.data&&u.select===this.#g)B=this.#d;else try{this.#g=u.select,B=u.select(B),B=$s(h?.data,B,u),this.#d=B,this.#i=null}catch(ee){this.#i=ee}this.#i&&(V=this.#i,B=this.#d,H=Date.now(),M="error");const L=N.fetchStatus==="fetching",$=M==="pending",k=M==="error",ne=$&&L,xe=B!==void 0,K={status:M,fetchStatus:N.fetchStatus,isPending:$,isSuccess:M==="success",isError:k,isInitialLoading:ne,isLoading:ne,data:B,dataUpdatedAt:N.dataUpdatedAt,error:V,errorUpdatedAt:H,failureCount:N.fetchFailureCount,failureReason:N.fetchFailureReason,errorUpdateCount:N.errorUpdateCount,isFetched:N.dataUpdateCount>0||N.errorUpdateCount>0,isFetchedAfterMount:N.dataUpdateCount>x.dataUpdateCount||N.errorUpdateCount>x.errorUpdateCount,isFetching:L,isRefetching:L&&!$,isLoadingError:k&&!xe,isPaused:N.fetchStatus==="paused",isPlaceholderData:A,isRefetchError:k&&xe,isStale:tu(n,u),refetch:this.refetch,promise:this.#u,isEnabled:Et(u.enabled,n)!==!1};if(this.options.experimental_prefetchInRender){const ee=he=>{K.status==="error"?he.reject(K.error):K.data!==void 0&&he.resolve(K.data)},ve=()=>{const he=this.#u=K.promise=Is();ee(he)},Me=this.#u;switch(Me.status){case"pending":n.queryHash===c.queryHash&&ee(Me);break;case"fulfilled":(K.status==="error"||K.data!==Me.value)&&ve();break;case"rejected":(K.status!=="error"||K.error!==Me.reason)&&ve();break}}return K}updateResult(){const n=this.#n,u=this.createResult(this.#t,this.options);if(this.#a=this.#t.state,this.#s=this.options,this.#a.data!==void 0&&(this.#h=this.#t),ri(u,n))return;this.#n=u;const c=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,h=typeof o=="function"?o():o;if(h==="all"||!h&&!this.#m.size)return!0;const g=new Set(h??this.#m);return this.options.throwOnError&&g.add("error"),Object.keys(this.#n).some(v=>{const y=v;return this.#n[y]!==n[y]&&g.has(y)})};this.#w({listeners:c()})}#S(){const n=this.#e.getQueryCache().build(this.#e,this.options);if(n===this.#t)return;const u=this.#t;this.#t=n,this.#l=n.state,this.hasListeners()&&(u?.removeObserver(this),n.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#w(n){Ve.batch(()=>{n.listeners&&this.listeners.forEach(u=>{u(this.#n)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function ym(n,u){return Et(u.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&u.retryOnMount===!1)}function io(n,u){return ym(n,u)||n.state.data!==void 0&&eu(n,u,u.refetchOnMount)}function eu(n,u,c){if(Et(u.enabled,n)!==!1&&ol(u.staleTime,n)!=="static"){const o=typeof c=="function"?c(n):c;return o==="always"||o!==!1&&tu(n,u)}return!1}function so(n,u,c,o){return(n!==u||Et(o.enabled,n)===!1)&&(!c.suspense||n.state.status!=="error")&&tu(n,c)}function tu(n,u){return Et(u.enabled,n)!==!1&&n.isStaleByTime(ol(u.staleTime,n))}function pm(n,u){return!ri(n.getCurrentResult(),u)}function uo(n){return{onFetch:(u,c)=>{const o=u.options,h=u.fetchOptions?.meta?.fetchMore?.direction,g=u.state.data?.pages||[],v=u.state.data?.pageParams||[];let y={pages:[],pageParams:[]},x=0;const p=async()=>{let N=!1;const A=H=>{Object.defineProperty(H,"signal",{enumerable:!0,get:()=>(u.signal.aborted?N=!0:u.signal.addEventListener("abort",()=>{N=!0}),u.signal)})},B=Wc(u.options,u.fetchOptions),V=async(H,M,q)=>{if(N)return Promise.reject();if(M==null&&H.pages.length)return Promise.resolve(H);const $=(()=>{const de={client:u.client,queryKey:u.queryKey,pageParam:M,direction:q?"backward":"forward",meta:u.options.meta};return A(de),de})(),k=await B($),{maxPages:ne}=u.options,xe=q?cm:rm;return{pages:xe(H.pages,k,ne),pageParams:xe(H.pageParams,M,ne)}};if(h&&g.length){const H=h==="backward",M=H?bm:ro,q={pages:g,pageParams:v},L=M(o,q);y=await V(q,L,H)}else{const H=n??g.length;do{const M=x===0?v[0]??o.initialPageParam:ro(o,y);if(x>0&&M==null)break;y=await V(y,M),x++}while(x<H)}return y};u.options.persister?u.fetchFn=()=>u.options.persister?.(p,{client:u.client,queryKey:u.queryKey,meta:u.options.meta,signal:u.signal},c):u.fetchFn=p}}}function ro(n,{pages:u,pageParams:c}){const o=u.length-1;return u.length>0?n.getNextPageParam(u[o],u,c[o],c):void 0}function bm(n,{pages:u,pageParams:c}){return u.length>0?n.getPreviousPageParam?.(u[0],u,c[0],c):void 0}var xm=class extends to{#e;#t;#l;#n;constructor(n){super(),this.#e=n.client,this.mutationId=n.mutationId,this.#l=n.mutationCache,this.#t=[],this.state=n.state||co(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#t.includes(n)||(this.#t.push(n),this.clearGcTimeout(),this.#l.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#t=this.#t.filter(u=>u!==n),this.scheduleGc(),this.#l.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#l.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(n){const u=()=>{this.#a({type:"continue"})},c={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#n=eo({fn:()=>this.options.mutationFn?this.options.mutationFn(n,c):Promise.reject(new Error("No mutationFn found")),onFail:(g,v)=>{this.#a({type:"failed",failureCount:g,error:v})},onPause:()=>{this.#a({type:"pause"})},onContinue:u,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#l.canRun(this)});const o=this.state.status==="pending",h=!this.#n.canStart();try{if(o)u();else{this.#a({type:"pending",variables:n,isPaused:h}),await this.#l.config.onMutate?.(n,this,c);const v=await this.options.onMutate?.(n,c);v!==this.state.context&&this.#a({type:"pending",context:v,variables:n,isPaused:h})}const g=await this.#n.start();return await this.#l.config.onSuccess?.(g,n,this.state.context,this,c),await this.options.onSuccess?.(g,n,this.state.context,c),await this.#l.config.onSettled?.(g,null,this.state.variables,this.state.context,this,c),await this.options.onSettled?.(g,null,n,this.state.context,c),this.#a({type:"success",data:g}),g}catch(g){try{throw await this.#l.config.onError?.(g,n,this.state.context,this,c),await this.options.onError?.(g,n,this.state.context,c),await this.#l.config.onSettled?.(void 0,g,this.state.variables,this.state.context,this,c),await this.options.onSettled?.(void 0,g,n,this.state.context,c),g}finally{this.#a({type:"error",error:g})}}finally{this.#l.runNext(this)}}#a(n){const u=c=>{switch(n.type){case"failed":return{...c,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...c,isPaused:!0};case"continue":return{...c,isPaused:!1};case"pending":return{...c,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...c,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...c,data:void 0,error:n.error,failureCount:c.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=u(this.state),Ve.batch(()=>{this.#t.forEach(c=>{c.onMutationUpdate(n)}),this.#l.notify({mutation:this,type:"updated",action:n})})}};function co(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var jm=class extends ha{constructor(n={}){super(),this.config=n,this.#e=new Set,this.#t=new Map,this.#l=0}#e;#t;#l;build(n,u,c){const o=new xm({client:n,mutationCache:this,mutationId:++this.#l,options:n.defaultMutationOptions(u),state:c});return this.add(o),o}add(n){this.#e.add(n);const u=oi(n);if(typeof u=="string"){const c=this.#t.get(u);c?c.push(n):this.#t.set(u,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#e.delete(n)){const u=oi(n);if(typeof u=="string"){const c=this.#t.get(u);if(c)if(c.length>1){const o=c.indexOf(n);o!==-1&&c.splice(o,1)}else c[0]===n&&this.#t.delete(u)}}this.notify({type:"removed",mutation:n})}canRun(n){const u=oi(n);if(typeof u=="string"){const o=this.#t.get(u)?.find(h=>h.state.status==="pending");return!o||o===n}else return!0}runNext(n){const u=oi(n);return typeof u=="string"?this.#t.get(u)?.find(o=>o!==n&&o.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Ve.batch(()=>{this.#e.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(n){const u={exact:!0,...n};return this.getAll().find(c=>Kc(u,c))}findAll(n={}){return this.getAll().filter(u=>Kc(n,u))}notify(n){Ve.batch(()=>{this.listeners.forEach(u=>{u(n)})})}resumePausedMutations(){const n=this.getAll().filter(u=>u.state.isPaused);return Ve.batch(()=>Promise.all(n.map(u=>u.continue().catch(at))))}};function oi(n){return n.options.scope?.id}var Sm=class extends ha{#e;#t=void 0;#l;#n;constructor(n,u){super(),this.#e=n,this.setOptions(u),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){const u=this.options;this.options=this.#e.defaultMutationOptions(n),ri(this.options,u)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#l,observer:this}),u?.mutationKey&&this.options.mutationKey&&kl(u.mutationKey)!==kl(this.options.mutationKey)?this.reset():this.#l?.state.status==="pending"&&this.#l.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#l?.removeObserver(this)}onMutationUpdate(n){this.#a(),this.#s(n)}getCurrentResult(){return this.#t}reset(){this.#l?.removeObserver(this),this.#l=void 0,this.#a(),this.#s()}mutate(n,u){return this.#n=u,this.#l?.removeObserver(this),this.#l=this.#e.getMutationCache().build(this.#e,this.options),this.#l.addObserver(this),this.#l.execute(n)}#a(){const n=this.#l?.state??co();this.#t={...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset}}#s(n){Ve.batch(()=>{if(this.#n&&this.hasListeners()){const u=this.#t.variables,c=this.#t.context,o={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};n?.type==="success"?(this.#n.onSuccess?.(n.data,u,c,o),this.#n.onSettled?.(n.data,null,u,c,o)):n?.type==="error"&&(this.#n.onError?.(n.error,u,c,o),this.#n.onSettled?.(void 0,n.error,u,c,o))}this.listeners.forEach(u=>{u(this.#t)})})}},wm=class extends ha{constructor(n={}){super(),this.config=n,this.#e=new Map}#e;build(n,u,c){const o=u.queryKey,h=u.queryHash??Ks(o,u);let g=this.get(h);return g||(g=new gm({client:n,queryKey:o,queryHash:h,options:n.defaultQueryOptions(u),state:c,defaultOptions:n.getQueryDefaults(o)}),this.add(g)),g}add(n){this.#e.has(n.queryHash)||(this.#e.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const u=this.#e.get(n.queryHash);u&&(n.destroy(),u===n&&this.#e.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){Ve.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#e.get(n)}getAll(){return[...this.#e.values()]}find(n){const u={exact:!0,...n};return this.getAll().find(c=>Xc(u,c))}findAll(n={}){const u=this.getAll();return Object.keys(n).length>0?u.filter(c=>Xc(n,c)):u}notify(n){Ve.batch(()=>{this.listeners.forEach(u=>{u(n)})})}onFocus(){Ve.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){Ve.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},Nm=class{#e;#t;#l;#n;#a;#s;#u;#i;constructor(n={}){this.#e=n.queryCache||new wm,this.#t=n.mutationCache||new jm,this.#l=n.defaultOptions||{},this.#n=new Map,this.#a=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#u=Ws.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=ci.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#u?.(),this.#u=void 0,this.#i?.(),this.#i=void 0)}isFetching(n){return this.#e.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#t.findAll({...n,status:"pending"}).length}getQueryData(n){const u=this.defaultQueryOptions({queryKey:n});return this.#e.get(u.queryHash)?.state.data}ensureQueryData(n){const u=this.defaultQueryOptions(n),c=this.#e.build(this,u),o=c.state.data;return o===void 0?this.fetchQuery(n):(n.revalidateIfStale&&c.isStaleByTime(ol(u.staleTime,c))&&this.prefetchQuery(u),Promise.resolve(o))}getQueriesData(n){return this.#e.findAll(n).map(({queryKey:u,state:c})=>{const o=c.data;return[u,o]})}setQueryData(n,u,c){const o=this.defaultQueryOptions({queryKey:n}),g=this.#e.get(o.queryHash)?.state.data,v=im(u,g);if(v!==void 0)return this.#e.build(this,o).setData(v,{...c,manual:!0})}setQueriesData(n,u,c){return Ve.batch(()=>this.#e.findAll(n).map(({queryKey:o})=>[o,this.setQueryData(o,u,c)]))}getQueryState(n){const u=this.defaultQueryOptions({queryKey:n});return this.#e.get(u.queryHash)?.state}removeQueries(n){const u=this.#e;Ve.batch(()=>{u.findAll(n).forEach(c=>{u.remove(c)})})}resetQueries(n,u){const c=this.#e;return Ve.batch(()=>(c.findAll(n).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...n},u)))}cancelQueries(n,u={}){const c={revert:!0,...u},o=Ve.batch(()=>this.#e.findAll(n).map(h=>h.cancel(c)));return Promise.all(o).then(at).catch(at)}invalidateQueries(n,u={}){return Ve.batch(()=>(this.#e.findAll(n).forEach(c=>{c.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},u)))}refetchQueries(n,u={}){const c={...u,cancelRefetch:u.cancelRefetch??!0},o=Ve.batch(()=>this.#e.findAll(n).filter(h=>!h.isDisabled()&&!h.isStatic()).map(h=>{let g=h.fetch(void 0,c);return c.throwOnError||(g=g.catch(at)),h.state.fetchStatus==="paused"?Promise.resolve():g}));return Promise.all(o).then(at)}fetchQuery(n){const u=this.defaultQueryOptions(n);u.retry===void 0&&(u.retry=!1);const c=this.#e.build(this,u);return c.isStaleByTime(ol(u.staleTime,c))?c.fetch(u):Promise.resolve(c.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(at).catch(at)}fetchInfiniteQuery(n){return n.behavior=uo(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(at).catch(at)}ensureInfiniteQueryData(n){return n.behavior=uo(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return ci.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#l}setDefaultOptions(n){this.#l=n}setQueryDefaults(n,u){this.#n.set(kl(n),{queryKey:n,defaultOptions:u})}getQueryDefaults(n){const u=[...this.#n.values()],c={};return u.forEach(o=>{sn(n,o.queryKey)&&Object.assign(c,o.defaultOptions)}),c}setMutationDefaults(n,u){this.#a.set(kl(n),{mutationKey:n,defaultOptions:u})}getMutationDefaults(n){const u=[...this.#a.values()],c={};return u.forEach(o=>{sn(n,o.mutationKey)&&Object.assign(c,o.defaultOptions)}),c}defaultQueryOptions(n){if(n._defaulted)return n;const u={...this.#l.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return u.queryHash||(u.queryHash=Ks(u.queryKey,u)),u.refetchOnReconnect===void 0&&(u.refetchOnReconnect=u.networkMode!=="always"),u.throwOnError===void 0&&(u.throwOnError=!!u.suspense),!u.networkMode&&u.persister&&(u.networkMode="offlineFirst"),u.queryFn===Fs&&(u.enabled=!1),u}defaultMutationOptions(n){return n?._defaulted?n:{...this.#l.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},oo=m.createContext(void 0),Lt=n=>{const u=m.useContext(oo);if(!u)throw new Error("No QueryClient set, use QueryClientProvider to set one");return u},Em=({client:n,children:u})=>(m.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),r.jsx(oo.Provider,{value:n,children:u})),fo=m.createContext(!1),Cm=()=>m.useContext(fo);fo.Provider;function zm(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var Am=m.createContext(zm()),Om=()=>m.useContext(Am),Tm=(n,u)=>{(n.suspense||n.throwOnError||n.experimental_prefetchInRender)&&(u.isReset()||(n.retryOnMount=!1))},Mm=n=>{m.useEffect(()=>{n.clearReset()},[n])},Rm=({result:n,errorResetBoundary:u,throwOnError:c,query:o,suspense:h})=>n.isError&&!u.isReset()&&!n.isFetching&&o&&(h&&n.data===void 0||Ic(c,[n.error,o])),Dm=n=>{if(n.suspense){const c=h=>h==="static"?h:Math.max(h??1e3,1e3),o=n.staleTime;n.staleTime=typeof o=="function"?(...h)=>c(o(...h)):c(o),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},_m=(n,u)=>n.isLoading&&n.isFetching&&!u,Um=(n,u)=>n?.suspense&&u.isPending,ho=(n,u,c)=>u.fetchOptimistic(n).catch(()=>{c.clearReset()});function Lm(n,u,c){const o=Cm(),h=Om(),g=Lt(),v=g.defaultQueryOptions(n);g.getDefaultOptions().queries?._experimental_beforeQuery?.(v),v._optimisticResults=o?"isRestoring":"optimistic",Dm(v),Tm(v,h),Mm(h);const y=!g.getQueryCache().get(v.queryHash),[x]=m.useState(()=>new u(g,v)),p=x.getOptimisticResult(v),N=!o&&n.subscribed!==!1;if(m.useSyncExternalStore(m.useCallback(A=>{const B=N?x.subscribe(Ve.batchCalls(A)):at;return x.updateResult(),B},[x,N]),()=>x.getCurrentResult(),()=>x.getCurrentResult()),m.useEffect(()=>{x.setOptions(v)},[v,x]),Um(v,p))throw ho(v,x,h);if(Rm({result:p,errorResetBoundary:h,throwOnError:v.throwOnError,query:g.getQueryCache().get(v.queryHash),suspense:v.suspense}))throw p.error;return g.getDefaultOptions().queries?._experimental_afterQuery?.(v,p),v.experimental_prefetchInRender&&!Ql&&_m(p,o)&&(y?ho(v,x,h):g.getQueryCache().get(v.queryHash)?.promise)?.catch(at).finally(()=>{x.updateResult()}),v.notifyOnChangeProps?p:x.trackResult(p)}function ma(n,u){return Lm(n,vm)}function Qt(n,u){const c=Lt(),[o]=m.useState(()=>new Sm(c,n));m.useEffect(()=>{o.setOptions(n)},[o,n]);const h=m.useSyncExternalStore(m.useCallback(v=>o.subscribe(Ve.batchCalls(v)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),g=m.useCallback((v,y)=>{o.mutate(v,y).catch(at)},[o]);if(h.error&&Ic(o.options.throwOnError,[h.error]))throw h.error;return{...h,mutate:g,mutateAsync:h.mutate}}let Bm=new Nm({defaultOptions:{queries:{staleTime:5*1e3,refetchOnWindowFocus:!0,retry:1}}});function qm(n,u){if(n instanceof RegExp)return{keys:!1,pattern:n};var c,o,h,g,v=[],y="",x=n.split("/");for(x[0]||x.shift();h=x.shift();)c=h[0],c==="*"?(v.push(c),y+=h[1]==="?"?"(?:/(.*))?":"/(.*)"):c===":"?(o=h.indexOf("?",1),g=h.indexOf(".",1),v.push(h.substring(1,~o?o:~g?g:h.length)),y+=~o&&!~g?"(?:/([^/]+?))?":"/([^/]+?)",~g&&(y+=(~o?"?":"")+"\\"+h.substring(g))):y+="/"+h;return{keys:v,pattern:new RegExp("^"+y+(u?"(?=$|/)":"/?$"),"i")}}var lu={exports:{}},au={};var mo;function Hm(){if(mo)return au;mo=1;var n=ui();function u(A,B){return A===B&&(A!==0||1/A===1/B)||A!==A&&B!==B}var c=typeof Object.is=="function"?Object.is:u,o=n.useState,h=n.useEffect,g=n.useLayoutEffect,v=n.useDebugValue;function y(A,B){var V=B(),H=o({inst:{value:V,getSnapshot:B}}),M=H[0].inst,q=H[1];return g(function(){M.value=V,M.getSnapshot=B,x(M)&&q({inst:M})},[A,V,B]),h(function(){return x(M)&&q({inst:M}),A(function(){x(M)&&q({inst:M})})},[A]),v(V),V}function x(A){var B=A.getSnapshot;A=A.value;try{var V=B();return!c(A,V)}catch{return!0}}function p(A,B){return B()}var N=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:y;return au.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:N,au}var go;function Qm(){return go||(go=1,lu.exports=Hm()),lu.exports}var km=Qm();const Ym=J0.useInsertionEffect,Gm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?m.useLayoutEffect:m.useEffect,Vm=Ym||Gm,vo=n=>{const u=m.useRef([n,(...c)=>u[0](...c)]).current;return Vm(()=>{u[0]=n}),u[1]},Zm="popstate",nu="pushState",iu="replaceState",yo=[Zm,nu,iu,"hashchange"],Xm=n=>{for(const u of yo)addEventListener(u,n);return()=>{for(const u of yo)removeEventListener(u,n)}},po=(n,u)=>km.useSyncExternalStore(Xm,n,u),Km=()=>location.search,Jm=({ssrSearch:n=""}={})=>po(Km,()=>n),bo=()=>location.pathname,$m=({ssrPath:n}={})=>po(bo,n?()=>n:bo),Fm=(n,{replace:u=!1,state:c=null}={})=>history[u?iu:nu](c,"",n),Wm=(n={})=>[$m(n),Fm],xo=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[xo]>"u"){for(const n of[nu,iu]){const u=history[n];history[n]=function(){const c=u.apply(this,arguments),o=new Event(n);return o.arguments=arguments,dispatchEvent(o),c}}Object.defineProperty(window,xo,{value:!0})}const Im=(n,u)=>u.toLowerCase().indexOf(n.toLowerCase())?"~"+u:u.slice(n.length)||"/",jo=(n="")=>n==="/"?"":n,Pm=(n,u)=>n[0]==="~"?n.slice(1):jo(u)+n,eg=(n="",u)=>Im(So(jo(n)),So(u)),So=n=>{try{return decodeURI(n)}catch{return n}},wo={hook:Wm,searchHook:Jm,parser:qm,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:n=>n},No=m.createContext(wo),ga=()=>m.useContext(No),Eo={},Co=m.createContext(Eo),tg=()=>m.useContext(Co),fi=n=>{const[u,c]=n.hook(n);return[eg(n.base,u),vo((o,h)=>c(Pm(o,n.base),h))]},di=()=>fi(ga()),su=(n,u,c,o)=>{const{pattern:h,keys:g}=u instanceof RegExp?{keys:!1,pattern:u}:n(u||"*",o),v=h.exec(c)||[],[y,...x]=v;return y!==void 0?[!0,(()=>{const p=g!==!1?Object.fromEntries(g.map((A,B)=>[A,x[B]])):v.groups;let N={...x};return p&&Object.assign(N,p),N})(),...o?[y]:[]]:[!1,null]},lg=n=>su(ga().parser,n,di()[0]),ag=({children:n,...u})=>{const c=ga(),o=u.hook?wo:c;let h=o;const[g,v]=u.ssrPath?.split("?")??[];v&&(u.ssrSearch=v,u.ssrPath=g),u.hrefs=u.hrefs??u.hook?.hrefs;let y=m.useRef({}),x=y.current,p=x;for(let N in o){const A=N==="base"?o[N]+(u[N]||""):u[N]||o[N];x===p&&A!==p[N]&&(y.current=p={...p}),p[N]=A,(A!==o[N]||A!==h[N])&&(h=p)}return m.createElement(No.Provider,{value:h,children:n})},zo=({children:n,component:u},c)=>u?m.createElement(u,{params:c}):typeof n=="function"?n(c):n,ng=n=>{let u=m.useRef(Eo);const c=u.current;return u.current=Object.keys(n).length!==Object.keys(c).length||Object.entries(n).some(([o,h])=>h!==c[o])?n:c},va=({path:n,nest:u,match:c,...o})=>{const h=ga(),[g]=fi(h),[v,y,x]=c??su(h.parser,n,g,u),p=ng({...tg(),...y});if(!v)return null;const N=x?m.createElement(ag,{base:x},zo(o,p)):zo(o,p);return m.createElement(Co.Provider,{value:p,children:N})};m.forwardRef((n,u)=>{const c=ga(),[o,h]=fi(c),{to:g="",href:v=g,onClick:y,asChild:x,children:p,className:N,replace:A,state:B,...V}=n,H=vo(q=>{q.ctrlKey||q.metaKey||q.altKey||q.shiftKey||q.button!==0||(y?.(q),q.defaultPrevented||(q.preventDefault(),h(v,n)))}),M=c.hrefs(v[0]==="~"?v.slice(1):c.base+v,c);return x&&m.isValidElement(p)?m.cloneElement(p,{onClick:H,href:M}):m.createElement("a",{...V,onClick:H,href:M,className:N?.call?N(o===v):N,children:p,ref:u})});const Ao=n=>Array.isArray(n)?n.flatMap(u=>Ao(u&&u.type===m.Fragment?u.props.children:u)):[n],Oo=({children:n,location:u})=>{const c=ga(),[o]=fi(c);for(const h of Ao(n)){let g=0;if(m.isValidElement(h)&&(g=su(c.parser,h.props.path,u||o,h.props.nest))[0])return m.cloneElement(h,{match:g})}return null};async function Xe(n,u={}){let c=await fetch(n,{...u,headers:{"Content-Type":"application/json",...u.headers}}),o=await c.json();if(!c.ok){let h=new Error(o.error||"Request failed");throw h.status=c.status,h.data=o,h}return o}let un={async getReportData(){return Xe("/api/report-data")},async getStatus(){return Xe("/api/status")},async acceptBaseline(n){return Xe("/api/baseline/accept",{method:"POST",body:JSON.stringify({id:n})})},async acceptAllBaselines(){return Xe("/api/baseline/accept-all",{method:"POST"})},async resetBaselines(){return Xe("/api/baseline/reset",{method:"POST"})},async downloadBaselines(n,u,c){return Xe("/api/baselines/download",{method:"POST",body:JSON.stringify({buildId:n,organizationSlug:u,projectSlug:c})})}},To={async get(){return Xe("/api/config")},async updateProject(n){return Xe("/api/config/project",{method:"POST",body:JSON.stringify(n)})}},hi={async getStatus(){return Xe("/api/auth/status")},async initiateLogin(){return Xe("/api/auth/login",{method:"POST"})},async pollAuthorization(n){return Xe("/api/auth/poll",{method:"POST",body:JSON.stringify({deviceCode:n})})},async logout(){return Xe("/api/auth/logout",{method:"POST"})}},mi={async list(){return Xe("/api/projects")},async listMappings(){return Xe("/api/projects/mappings")},async createMapping(n){return Xe("/api/projects/mappings",{method:"POST",body:JSON.stringify(n)})},async deleteMapping(n){return Xe(`/api/projects/mappings/${encodeURIComponent(n)}`,{method:"DELETE"})},async getRecentBuilds(n={}){let u=new URLSearchParams;n.limit&&u.append("limit",String(n.limit)),n.branch&&u.append("branch",n.branch);let c=u.toString();return Xe(`/api/builds/recent${c?`?${c}`:""}`)},async getBuilds(n,u,c={}){let o=new URLSearchParams;c.limit&&o.append("limit",String(c.limit)),c.branch&&o.append("branch",c.branch);let h=o.toString(),g=`/api/projects/${encodeURIComponent(n)}/${encodeURIComponent(u)}/builds${h?`?${h}`:""}`;return Xe(g)}},Te={auth:["auth"],authStatus:()=>[...Te.auth,"status"],config:["config"],projectConfig:()=>[...Te.config,"project"],globalConfig:()=>[...Te.config,"global"],tdd:["tdd"],reportData:()=>[...Te.tdd,"report"],status:()=>[...Te.tdd,"status"],cloud:["cloud"],projects:()=>[...Te.cloud,"projects"],builds:(n,u)=>[...Te.cloud,"builds",n,u]};function rn(){return typeof window<"u"&&window.VIZZLY_STATIC_MODE===!0}function ig(){return typeof window<"u"&&window.VIZZLY_REPORTER_DATA?window.VIZZLY_REPORTER_DATA:null}function gi(n={}){let u=ig(),c=rn();return ma({queryKey:Te.reportData(),queryFn:async()=>c&&u?u:un.getReportData(),initialData:u||void 0,refetchInterval:c?!1:n.polling!==!1?2e3:!1,refetchOnWindowFocus:!c,...n})}function sg(){let n=Lt();return Qt({mutationFn:u=>{if(rn())throw new Error("Cannot accept baselines in static report mode. Use the live dev server.");return un.acceptBaseline(u)},onSuccess:()=>{n.invalidateQueries({queryKey:Te.tdd})}})}function Mo(){let n=Lt();return Qt({mutationFn:()=>{if(rn())throw new Error("Cannot accept baselines in static report mode. Use the live dev server.");return un.acceptAllBaselines()},onSuccess:()=>{n.invalidateQueries({queryKey:Te.tdd})}})}function ug(){let n=Lt();return Qt({mutationFn:()=>{if(rn())throw new Error("Cannot reset baselines in static report mode. Use the live dev server.");return un.resetBaselines()},onSuccess:()=>{n.invalidateQueries({queryKey:Te.tdd})}})}function rg(){return Qt({mutationFn:async n=>{if(rn())throw new Error("Cannot reject baselines in static report mode. Use the live dev server.");return{success:!0,id:n}}})}function cg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 6h9.75M10.5 6a1.5 1.5 0 1 1-3 0m3 0a1.5 1.5 0 1 0-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-9.75 0h9.75"}))}const og=m.forwardRef(cg);function fg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3"}))}const dg=m.forwardRef(fg);function hg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 9V5.25A2.25 2.25 0 0 0 13.5 3h-6a2.25 2.25 0 0 0-2.25 2.25v13.5A2.25 2.25 0 0 0 7.5 21h6a2.25 2.25 0 0 0 2.25-2.25V15M12 9l-3 3m0 0 3 3m-3-3h12.75"}))}const mg=m.forwardRef(hg);function gg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"}))}const fl=m.forwardRef(gg);function vg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 9V5.25A2.25 2.25 0 0 0 13.5 3h-6a2.25 2.25 0 0 0-2.25 2.25v13.5A2.25 2.25 0 0 0 7.5 21h6a2.25 2.25 0 0 0 2.25-2.25V15m3 0 3-3m0 0-3-3m3 3H9"}))}const Ro=m.forwardRef(vg);function yg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 9V4.5M9 9H4.5M9 9 3.75 3.75M9 15v4.5M9 15H4.5M9 15l-5.25 5.25M15 9h4.5M15 9V4.5M15 9l5.25-5.25M15 15h4.5M15 15v4.5m0-4.5 5.25 5.25"}))}const pg=m.forwardRef(yg);function bg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"}))}const xg=m.forwardRef(bg);function jg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6.042A8.967 8.967 0 0 0 6 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 0 1 6 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 0 1 6-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0 0 18 18a8.967 8.967 0 0 0-6 2.292m0-14.25v14.25"}))}const Sg=m.forwardRef(jg);function wg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 21h16.5M4.5 3h15M5.25 3v18m13.5-18v18M9 6.75h1.5m-1.5 3h1.5m-1.5 3h1.5m3-6H15m-1.5 3H15m-1.5 3H15M9 21v-3.375c0-.621.504-1.125 1.125-1.125h3.75c.621 0 1.125.504 1.125 1.125V21"}))}const Ng=m.forwardRef(wg);function Eg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.827 6.175A2.31 2.31 0 0 1 5.186 7.23c-.38.054-.757.112-1.134.175C2.999 7.58 2.25 8.507 2.25 9.574V18a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9.574c0-1.067-.75-1.994-1.802-2.169a47.865 47.865 0 0 0-1.134-.175 2.31 2.31 0 0 1-1.64-1.055l-.822-1.316a2.192 2.192 0 0 0-1.736-1.039 48.774 48.774 0 0 0-5.232 0 2.192 2.192 0 0 0-1.736 1.039l-.821 1.316Z"}),m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 12.75a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0ZM18.75 10.5h.008v.008h-.008V10.5Z"}))}const Cg=m.forwardRef(Eg);function zg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 13.125C3 12.504 3.504 12 4.125 12h2.25c.621 0 1.125.504 1.125 1.125v6.75C7.5 20.496 6.996 21 6.375 21h-2.25A1.125 1.125 0 0 1 3 19.875v-6.75ZM9.75 8.625c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125v11.25c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V8.625ZM16.5 4.125c0-.621.504-1.125 1.125-1.125h2.25C20.496 3 21 3.504 21 4.125v15.75c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V4.125Z"}))}const Ag=m.forwardRef(zg);function Og({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const Yl=m.forwardRef(Og);function Tg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"}))}const Do=m.forwardRef(Tg);function Mg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"}))}const uu=m.forwardRef(Mg);function Rg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5 8.25 12l7.5-7.5"}))}const Dg=m.forwardRef(Rg);function _g({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"}))}const ru=m.forwardRef(_g);function Ug({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const vi=m.forwardRef(Ug);function Lg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 15a4.5 4.5 0 0 0 4.5 4.5H18a3.75 3.75 0 0 0 1.332-7.257 3 3 0 0 0-3.758-3.848 5.25 5.25 0 0 0-10.233 2.33A4.502 4.502 0 0 0 2.25 15Z"}))}const Bg=m.forwardRef(Lg);function qg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z"}),m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const cu=m.forwardRef(qg);function Hg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"}))}const Qg=m.forwardRef(Hg);function kg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"}))}const dl=m.forwardRef(kg);function Yg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.75V12A2.25 2.25 0 0 1 4.5 9.75h15A2.25 2.25 0 0 1 21.75 12v.75m-8.69-6.44-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44Z"}))}const cn=m.forwardRef(Yg);function Gg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 0 1-.659 1.591l-5.432 5.432a2.25 2.25 0 0 0-.659 1.591v2.927a2.25 2.25 0 0 1-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 0 0-.659-1.591L3.659 7.409A2.25 2.25 0 0 1 3 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 0 0 1 12 3Z"}))}const Vg=m.forwardRef(Gg);function Zg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"}))}const Xg=m.forwardRef(Zg);function Kg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607ZM13.5 10.5h-6"}))}const Jg=m.forwardRef(Kg);function $g({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607ZM10.5 7.5v6m3-3h-6"}))}const Fg=m.forwardRef($g);function Wg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}const Ig=m.forwardRef(Wg);function Pg({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"}))}const ou=m.forwardRef(Pg);function ev({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.75 17.25v-.228a4.5 4.5 0 0 0-.12-1.03l-2.268-9.64a3.375 3.375 0 0 0-3.285-2.602H7.923a3.375 3.375 0 0 0-3.285 2.602l-2.268 9.64a4.5 4.5 0 0 0-.12 1.03v.228m19.5 0a3 3 0 0 1-3 3H5.25a3 3 0 0 1-3-3m19.5 0a3 3 0 0 0-3-3H5.25a3 3 0 0 0-3 3m16.5 0h.008v.008h-.008v-.008Zm-3 0h.008v.008h-.008v-.008Z"}))}const _o=m.forwardRef(ev);function tv({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09ZM18.259 8.715 18 9.75l-.259-1.035a3.375 3.375 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 0 0 2.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 0 0-2.456 2.456ZM16.894 20.567 16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394-1.183.394a2.25 2.25 0 0 0-1.423 1.423Z"}))}const lv=m.forwardRef(tv);function av({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"}))}const nv=m.forwardRef(av);function iv({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const fu=m.forwardRef(iv);function sv({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.42 15.17 17.25 21A2.652 2.652 0 0 0 21 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 1 1-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14a4.5 4.5 0 0 0 4.486-6.336l-3.276 3.277a3.004 3.004 0 0 1-2.25-2.25l3.276-3.276a4.5 4.5 0 0 0-6.336 4.486c.091 1.076-.071 2.264-.904 2.95l-.102.085m-1.745 1.437L5.909 7.5H4.5L2.25 3.75l1.5-1.5L7.5 4.5v1.409l4.26 4.26m-1.745 1.437 1.745-1.437m6.615 8.206L15.75 15.75M4.867 19.125h.008v.008h-.008v-.008Z"}))}const Uo=m.forwardRef(sv);function uv({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const du=m.forwardRef(uv);function rv({title:n,titleId:u,...c},o){return m.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":u},c),n?m.createElement("title",{id:u},n):null,m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))}const yi=m.forwardRef(rv);function Ke({children:n,variant:u="primary",size:c="md",disabled:o=!1,loading:h=!1,icon:g,iconPosition:v="left",fullWidth:y=!1,className:x="",...p}){let N="vz-btn inline-flex items-center justify-center gap-2 font-medium rounded-lg transition-all duration-150 focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-offset-slate-900",A={primary:"bg-amber-500 hover:bg-amber-400 text-slate-900 focus-visible:ring-amber-500",secondary:"bg-white/10 hover:bg-white/15 text-white border border-white/10 hover:border-white/20 focus-visible:ring-white/50",ghost:"bg-transparent hover:bg-white/5 text-slate-300 hover:text-white focus-visible:ring-white/30",danger:"bg-red-500/10 hover:bg-red-500/20 text-red-400 hover:text-red-300 focus-visible:ring-red-500",warning:"bg-amber-500/10 hover:bg-amber-500/20 text-amber-400 hover:text-amber-300 focus-visible:ring-amber-500",success:"bg-emerald-500/10 hover:bg-emerald-500/20 text-emerald-400 hover:text-emerald-300 focus-visible:ring-emerald-500"},B={sm:"text-xs px-3 py-1.5 h-7",md:"text-sm px-4 py-2 h-9",lg:"text-base px-6 py-3 h-11"},V=[N,A[u],B[c],y?"w-full":"",o||h?"opacity-50 cursor-not-allowed pointer-events-none":"",x].filter(Boolean).join(" ");return r.jsxs("button",{className:V,disabled:o||h,...p,children:[h&&r.jsxs("svg",{className:"animate-spin h-4 w-4",viewBox:"0 0 24 24",children:[r.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),r.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),g&&v==="left"&&!h&&r.jsx(g,{className:"w-4 h-4"}),n,g&&v==="right"&&!h&&r.jsx(g,{className:"w-4 h-4"})]})}function on({children:n,variant:u="default",size:c="sm",dot:o=!1,pulseDot:h=!1,className:g="",...v}){let y={default:"bg-slate-500/15 text-slate-300 border-slate-500/20",success:"bg-emerald-500/10 text-emerald-400 border-emerald-500/20",warning:"bg-amber-500/10 text-amber-400 border-amber-500/20",danger:"bg-red-500/10 text-red-400 border-red-500/20",info:"bg-blue-500/10 text-blue-400 border-blue-500/20",purple:"bg-purple-500/10 text-purple-400 border-purple-500/20"},x={default:"bg-slate-400",success:"bg-emerald-400",warning:"bg-amber-400",danger:"bg-red-400",info:"bg-blue-400",purple:"bg-purple-400"},p={sm:"text-xs px-2 py-0.5",md:"text-sm px-2.5 py-1"},N=["inline-flex items-center gap-1.5 font-medium rounded-full border",y[u],p[c],g].filter(Boolean).join(" ");return r.jsxs("span",{className:N,...v,children:[o&&r.jsxs("span",{className:"relative flex h-2 w-2",children:[h&&r.jsx("span",{className:`animate-ping absolute inline-flex h-full w-full rounded-full opacity-75 ${x[u]}`}),r.jsx("span",{className:`relative inline-flex rounded-full h-2 w-2 ${x[u]}`})]}),n]})}function pi({label:n,hint:u,error:c,icon:o,size:h="md",className:g="",...v}){let x=["w-full bg-white/[0.03] border rounded-lg text-white placeholder-slate-500 transition-all duration-150","focus:outline-none focus:border-amber-500/50 focus:ring-2 focus:ring-amber-500/20","hover:border-slate-600",c?"border-red-500/50 focus:border-red-500/50 focus:ring-red-500/20":"border-slate-700",{sm:"h-8 text-sm px-3",md:"h-10 text-sm px-4",lg:"h-12 text-base px-4"}[h],o?"pl-10":"",v.disabled?"opacity-50 cursor-not-allowed":"",g].filter(Boolean).join(" ");return r.jsxs("div",{className:"space-y-1.5",children:[n&&r.jsxs("label",{className:"block text-sm font-medium text-slate-300",children:[n,v.required&&r.jsx("span",{className:"text-red-400 ml-1",children:"*"})]}),r.jsxs("div",{className:"relative",children:[o&&r.jsx("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-500",children:r.jsx(o,{className:"w-4 h-4"})}),r.jsx("input",{className:x,...v})]}),u&&!c&&r.jsx("p",{className:"text-xs text-slate-500",children:u}),c&&r.jsx("p",{className:"text-xs text-red-400",children:c})]})}function cv({label:n,hint:u,error:c,options:o=[],placeholder:h="Select an option",size:g="md",className:v="",...y}){let p=["w-full bg-white/[0.03] border rounded-lg text-white transition-all duration-150 appearance-none cursor-pointer","focus:outline-none focus:border-amber-500/50 focus:ring-2 focus:ring-amber-500/20","hover:border-slate-600",c?"border-red-500/50":"border-slate-700",{sm:"h-8 text-sm px-3",md:"h-10 text-sm px-4",lg:"h-12 text-base px-4"}[g],y.disabled?"opacity-50 cursor-not-allowed":"",v].filter(Boolean).join(" ");return r.jsxs("div",{className:"space-y-1.5",children:[n&&r.jsxs("label",{className:"block text-sm font-medium text-slate-300",children:[n,y.required&&r.jsx("span",{className:"text-red-400 ml-1",children:"*"})]}),r.jsxs("div",{className:"relative",children:[r.jsxs("select",{className:p,...y,children:[h&&r.jsx("option",{value:"",disabled:!0,children:h}),o.map(N=>r.jsx("option",{value:N.value,children:N.label},N.value))]}),r.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none text-slate-500",children:r.jsx("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})})]}),u&&!c&&r.jsx("p",{className:"text-xs text-slate-500",children:u}),c&&r.jsx("p",{className:"text-xs text-red-400",children:c})]})}function ov({label:n,description:u,checked:c,onChange:o,disabled:h=!1,size:g="md",className:v="",...y}){let x={sm:{track:"w-8 h-5",thumb:"w-3.5 h-3.5",translate:"peer-checked:translate-x-3.5"},md:{track:"w-11 h-6",thumb:"w-4 h-4",translate:"peer-checked:translate-x-5"},lg:{track:"w-14 h-7",thumb:"w-5 h-5",translate:"peer-checked:translate-x-7"}},{track:p,thumb:N,translate:A}=x[g];return r.jsxs("label",{className:`flex items-center justify-between gap-3 cursor-pointer group ${h?"opacity-50 cursor-not-allowed":""} ${v}`,children:[r.jsxs("div",{className:"flex-1",children:[n&&r.jsx("span",{className:"text-sm font-medium text-white",children:n}),u&&r.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:u})]}),r.jsxs("div",{className:"relative",children:[r.jsx("input",{type:"checkbox",checked:c,onChange:o,disabled:h,className:"sr-only peer",...y}),r.jsx("div",{className:`${p} rounded-full bg-slate-700 transition-colors peer-checked:bg-amber-500 peer-focus-visible:ring-2 peer-focus-visible:ring-amber-500/50 peer-focus-visible:ring-offset-2 peer-focus-visible:ring-offset-slate-900`}),r.jsx("div",{className:`absolute left-1 top-1 ${N} rounded-full bg-white shadow-sm transition-transform ${A}`})]})]})}function lt({children:n,variant:u,hover:c=!0,className:o="",...h}){let v=["bg-white/[0.03] backdrop-blur-sm border border-slate-700/50 rounded-xl overflow-hidden",u?{default:"",success:"border-l-2 border-l-emerald-500",warning:"border-l-2 border-l-amber-500",danger:"border-l-2 border-l-red-500",info:"border-l-2 border-l-blue-500",purple:"border-l-2 border-l-purple-500"}[u]:"",c?"transition-all duration-200 hover:border-slate-600 hover:bg-white/[0.05]":"",o].filter(Boolean).join(" ");return r.jsx("div",{className:v,...h,children:n})}function Gl({icon:n,title:u,description:c,iconColor:o="bg-amber-500/10 text-amber-400",actions:h,className:g=""}){return r.jsx("div",{className:`px-6 py-5 border-b border-slate-700/50 ${g}`,children:r.jsxs("div",{className:`flex items-center ${h?"justify-between":""}`,children:[r.jsxs("div",{className:"flex items-center gap-3",children:[n&&r.jsx("div",{className:`w-10 h-10 rounded-lg flex items-center justify-center ${o}`,children:r.jsx(n,{className:"w-5 h-5"})}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-lg font-semibold text-white",children:u}),c&&r.jsx("p",{className:"text-sm text-slate-400 mt-0.5",children:c})]})]}),h&&r.jsx("div",{className:"flex items-center gap-2",children:h})]})})}function nt({children:n,className:u="",padding:c="p-6"}){return r.jsx("div",{className:`${c} ${u}`,children:n})}function fv({children:n,className:u=""}){return r.jsx("div",{className:`px-6 py-4 bg-slate-900/30 border-t border-slate-700/50 ${u}`,children:n})}let dv={success:{icon:Yl,bg:"bg-emerald-500/10",border:"border-emerald-500/20",iconColor:"text-emerald-400",textColor:"text-emerald-300"},warning:{icon:dl,bg:"bg-amber-500/10",border:"border-amber-500/20",iconColor:"text-amber-400",textColor:"text-amber-300"},danger:{icon:du,bg:"bg-red-500/10",border:"border-red-500/20",iconColor:"text-red-400",textColor:"text-red-300"},info:{icon:Xg,bg:"bg-blue-500/10",border:"border-blue-500/20",iconColor:"text-blue-400",textColor:"text-blue-300"}};function hu({variant:n="info",title:u,children:c,icon:o,dismissible:h=!1,onDismiss:g,className:v=""}){let y=dv[n],x=o||y.icon;return r.jsx("div",{className:`rounded-xl border ${y.bg} ${y.border} p-4 ${v}`,role:"alert",children:r.jsxs("div",{className:"flex gap-3",children:[r.jsx("div",{className:`flex-shrink-0 ${y.iconColor}`,children:r.jsx(x,{className:"w-5 h-5"})}),r.jsxs("div",{className:"flex-1 min-w-0",children:[u&&r.jsx("h3",{className:`text-sm font-medium ${y.textColor}`,children:u}),c&&r.jsx("div",{className:`text-sm ${u?"mt-1":""} text-slate-400`,children:c})]}),h&&g&&r.jsx("button",{onClick:g,className:"flex-shrink-0 text-slate-500 hover:text-slate-300 transition-colors",children:r.jsx(yi,{className:"w-5 h-5"})})]})})}function hv({value:n=0,label:u,size:c=120,strokeWidth:o=8,className:h=""}){let[g,v]=m.useState(0);m.useEffect(()=>{if(typeof window>"u")return;let A=g,B=Math.min(100,Math.max(0,n)),V=1e3,H=window.performance.now();function M(q){let L=q-H,$=Math.min(L/V,1),k=1-Math.pow(1-$,3),ne=A+(B-A)*k;v(Math.round(ne)),$<1&&window.requestAnimationFrame(M)}window.requestAnimationFrame(M)},[n,g]);let y=(c-o)/2,x=y*2*Math.PI,p=x-g/100*x,N=g>=80?"health-ring__progress--success":g>=50?"health-ring__progress--warning":"health-ring__progress--danger";return r.jsxs("div",{className:`health-ring ${h}`,style:{width:c,height:c,"--ring-size":`${c}px`,"--ring-stroke":`${o}px`},children:[r.jsxs("svg",{className:"health-ring__svg",viewBox:`0 0 ${c} ${c}`,children:[r.jsx("circle",{className:"health-ring__track",cx:c/2,cy:c/2,r:y}),r.jsx("circle",{className:`health-ring__progress ${N}`,cx:c/2,cy:c/2,r:y,strokeDasharray:x,strokeDashoffset:p})]}),r.jsxs("div",{className:"health-ring__value",children:[r.jsxs("span",{className:"health-ring__percentage",children:[g,"%"]}),u&&r.jsx("span",{className:"health-ring__label",children:u})]})]})}function mv({tabs:n=[],activeTab:u,onChange:c,variant:o="default",className:h=""}){let v={default:{container:"border-b border-slate-700/50",tab:"px-4 py-3 text-sm font-medium transition-colors relative",active:"text-amber-400",inactive:"text-slate-400 hover:text-white",indicator:"absolute bottom-0 left-0 right-0 h-0.5 bg-amber-500"},pills:{container:"bg-slate-800/50 p-1 rounded-lg inline-flex gap-1",tab:"px-4 py-2 text-sm font-medium rounded-md transition-all",active:"bg-amber-500 text-slate-900",inactive:"text-slate-400 hover:text-white hover:bg-white/5",indicator:""},underline:{container:"flex gap-6",tab:"pb-3 text-sm font-medium transition-colors relative",active:"text-white",inactive:"text-slate-400 hover:text-white",indicator:"absolute bottom-0 left-0 right-0 h-0.5 bg-amber-500"}}[o];return r.jsx("div",{className:`${v.container} ${h}`,children:n.map(y=>{let x=u===y.key;return r.jsxs("button",{onClick:()=>c?.(y.key),className:`${v.tab} ${x?v.active:v.inactive}`,children:[r.jsxs("span",{className:"flex items-center gap-2",children:[y.icon&&r.jsx(y.icon,{className:"w-4 h-4"}),y.label,y.count!==void 0&&r.jsx("span",{className:`text-xs px-1.5 py-0.5 rounded-full ${x?o==="pills"?"bg-slate-900/20 text-slate-900":"bg-amber-500/20 text-amber-400":"bg-slate-700 text-slate-400"}`,children:y.count})]}),x&&v.indicator&&r.jsx("div",{className:v.indicator})]},y.key)})})}function ut({variant:n="text",className:u="",count:c=1}){let o={text:"h-4 w-full",heading:"h-6 w-3/5",avatar:"w-10 h-10 rounded-full",button:"h-9 w-24 rounded-lg",badge:"h-5 w-16 rounded-full",card:"h-32 w-full rounded-xl"},h=Array.from({length:c},(g,v)=>v);return r.jsx(r.Fragment,{children:h.map(g=>r.jsx("div",{className:`skeleton ${o[n]} ${u}`},g))})}function Vl({className:n=""}){return r.jsxs("div",{className:`vz-card vz-card--no-hover p-6 space-y-4 ${n}`,children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx(ut,{variant:"avatar"}),r.jsxs("div",{className:"flex-1 space-y-2",children:[r.jsx(ut,{variant:"heading"}),r.jsx(ut,{variant:"text",className:"w-2/3"})]})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx(ut,{variant:"text"}),r.jsx(ut,{variant:"text"}),r.jsx(ut,{variant:"text",className:"w-4/5"})]})]})}function ya({icon:n,title:u,description:c,action:o,className:h=""}){return r.jsxs("div",{className:`flex flex-col items-center justify-center py-16 px-6 text-center ${h}`,children:[n&&r.jsx("div",{className:"w-16 h-16 rounded-2xl bg-slate-800/50 flex items-center justify-center mb-6",children:r.jsx(n,{className:"w-8 h-8 text-slate-500"})}),u&&r.jsx("h3",{className:"text-lg font-semibold text-white mb-2",children:u}),c&&r.jsx("p",{className:"text-sm text-slate-400 max-w-sm mb-6",children:c}),o&&r.jsx("div",{children:o})]})}Yc();function fn({size:n="md",className:u=""}){let c={sm:"w-4 h-4",md:"w-6 h-6",lg:"w-8 h-8",xl:"w-12 h-12"};return r.jsxs("svg",{className:`animate-spin ${c[n]} ${u}`,viewBox:"0 0 24 24",fill:"none",children:[r.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),r.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}let Lo=[{key:"comparisons",label:"Comparisons",icon:ou},{key:"stats",label:"Stats",icon:Ag},{key:"builds",label:"Builds",icon:Bg},{key:"projects",label:"Projects",icon:cn},{key:"settings",label:"Settings",icon:cu}];function gv({currentView:n,onNavigate:u,loading:c}){let[o,h]=m.useState(!1),g=v=>{u?.(v),h(!1)};return r.jsx("header",{className:"sticky top-0 z-40 bg-slate-900/95 backdrop-blur-sm border-b border-slate-700/50",children:r.jsxs("nav",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[r.jsxs("div",{className:"flex items-center justify-between h-16",children:[r.jsxs("button",{onClick:()=>g("comparisons"),className:"flex items-center gap-2 group touch-manipulation",children:[r.jsx("div",{className:"w-8 h-8 rounded-lg bg-amber-500 flex items-center justify-center",children:r.jsxs("svg",{className:"w-5 h-5 text-slate-900",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.036 12.322a1.012 1.012 0 010-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178z"}),r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]})}),r.jsx("span",{className:"text-lg font-semibold text-white group-hover:text-amber-400 transition-colors",children:"Vizzly"}),r.jsx("span",{className:"text-xs font-medium text-slate-500 bg-slate-800 px-2 py-0.5 rounded",children:"TDD"})]}),u&&r.jsx("div",{className:"hidden md:flex items-center gap-1",children:Lo.map(v=>{let y=n===v.key;return r.jsxs("button",{onClick:()=>g(v.key),className:`flex items-center gap-2 px-3 py-2 rounded-lg text-sm font-medium transition-all ${y?"bg-amber-500/10 text-amber-400":"text-slate-400 hover:text-white hover:bg-white/5"}`,children:[r.jsx(v.icon,{className:"w-4 h-4"}),v.label]},v.key)})}),r.jsxs("div",{className:"flex items-center gap-3",children:[c&&r.jsxs("div",{className:"flex items-center gap-2 text-amber-400",children:[r.jsx(fn,{size:"sm"}),r.jsx("span",{className:"hidden sm:inline text-sm",children:"Syncing..."})]}),u&&r.jsx("button",{onClick:()=>h(!o),className:"md:hidden p-2 text-slate-400 hover:text-white rounded-lg hover:bg-white/5 transition-colors touch-manipulation","aria-label":"Toggle menu",children:o?r.jsx(yi,{className:"w-6 h-6"}):r.jsx(xg,{className:"w-6 h-6"})})]})]}),u&&o&&r.jsx("div",{className:"md:hidden border-t border-slate-700/50 py-3 animate-slide-down",children:r.jsx("div",{className:"flex flex-col gap-1",children:Lo.map(v=>{let y=n===v.key;return r.jsxs("button",{onClick:()=>g(v.key),className:`flex items-center gap-3 w-full px-4 py-3 rounded-lg text-base font-medium transition-colors touch-manipulation ${y?"bg-amber-500/10 text-amber-400":"text-slate-300 hover:text-white hover:bg-white/5"}`,children:[r.jsx(v.icon,{className:"w-5 h-5"}),v.label]},v.key)})})})]})})}function dn({children:n,currentView:u,onNavigate:c,loading:o}){return r.jsxs("div",{className:"min-h-screen bg-slate-900 flex flex-col",children:[r.jsx(gv,{currentView:u,onNavigate:c,loading:o}),r.jsx("main",{className:"flex-1",children:r.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6 md:py-8",children:n})})]})}let Bo=m.createContext(null);function vv({children:n}){let[u,c]=m.useState([]),o=m.useCallback((v,y="success",x={})=>{let p=Date.now();c(A=>[...A,{id:p,message:v,type:y,...x}]);let N=x.duration!==void 0?x.duration:x.actions?null:5e3;return N&&setTimeout(()=>{c(A=>A.filter(B=>B.id!==p))},N),p},[]),h=m.useCallback(v=>{c(y=>y.filter(x=>x.id!==v))},[]),g=m.useCallback((v,y)=>new Promise(x=>{let p=Date.now();c(N=>[...N,{id:p,message:v,title:y,type:"confirm",actions:[{label:"Cancel",variant:"secondary",onClick:()=>{c(A=>A.filter(B=>B.id!==p)),x(!1)}},{label:"OK",variant:"primary",onClick:()=>{c(A=>A.filter(B=>B.id!==p)),x(!0)}}]}])}),[]);return r.jsxs(Bo.Provider,{value:{addToast:o,removeToast:h,confirm:g},children:[n,r.jsx(yv,{toasts:u,onRemove:h})]})}function Zl(){let n=m.useContext(Bo);if(!n)throw new Error("useToast must be used within ToastProvider");return n}function yv({toasts:n,onRemove:u}){return n.length===0?null:r.jsx("div",{className:"fixed bottom-4 right-4 z-50 space-y-2 max-w-sm w-full pointer-events-none",children:n.map(c=>r.jsx(pv,{toast:c,onRemove:u},c.id))})}function pv({toast:n,onRemove:u}){let c=n.type==="success"?Yl:n.type==="confirm"?dl:du,o=n.type==="success"?"bg-green-500/10 border-green-500/30":n.type==="confirm"?"bg-slate-800/90 border-slate-600":"bg-red-500/10 border-red-500/30",h=n.type==="success"?"text-green-400":n.type==="confirm"?"text-amber-400":"text-red-400";return r.jsx("div",{className:`${o} border rounded-lg p-4 shadow-lg backdrop-blur-sm pointer-events-auto animate-slide-up`,children:r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(c,{className:`w-5 h-5 ${h} flex-shrink-0 mt-0.5`}),r.jsxs("div",{className:"flex-1",children:[n.title&&r.jsx("p",{className:"text-white font-medium text-sm mb-1",children:n.title}),r.jsx("p",{className:"text-gray-300 text-sm",children:n.message}),n.actions&&n.actions.length>0&&r.jsx("div",{className:"flex gap-2 mt-3",children:n.actions.map((g,v)=>r.jsx("button",{onClick:g.onClick,className:g.variant==="primary"?"px-4 py-1.5 bg-cyan-500 hover:bg-cyan-600 text-white text-sm font-medium rounded transition-colors":"px-4 py-1.5 bg-slate-700 hover:bg-slate-600 text-white text-sm font-medium rounded transition-colors",children:g.label},v))})]}),!n.actions&&r.jsx("button",{onClick:()=>u(n.id),className:"text-gray-400 hover:text-white transition-colors flex-shrink-0",children:r.jsx(yi,{className:"w-5 h-5"})})]})})}function bi({icon:n,label:u,value:c,subvalue:o,variant:h,iconColor:g}){return r.jsx(lt,{variant:h,hover:!1,children:r.jsx(nt,{padding:"p-5",children:r.jsxs("div",{className:"flex items-start justify-between",children:[r.jsxs("div",{children:[r.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase tracking-wide mb-1",children:u}),r.jsx("p",{className:"text-2xl font-semibold font-mono text-white",children:c}),o&&r.jsx("p",{className:"text-xs text-slate-400 mt-1",children:o})]}),r.jsx("div",{className:`w-10 h-10 rounded-lg flex items-center justify-center ${g}`,children:r.jsx(n,{className:"w-5 h-5"})})]})})})}function bv(){let{addToast:n,confirm:u}=Zl(),{data:c,isLoading:o,refetch:h}=gi(),g=Mo(),v=ug(),y=c?.comparisons,x=c?.baseline,p=y?.length||0,N=y?.filter(L=>L.status==="passed").length||0,A=y?.filter(L=>L.status==="failed").length||0,B=y?.filter(L=>L.status==="new").length||0,V=p>0?Math.round(N/p*100):0,H=y?.some(L=>L.status==="failed"||L.status==="new"),M=m.useCallback(async()=>{await u("This will update all failed and new screenshots.","Accept all changes as new baselines?")&&g.mutate(void 0,{onSuccess:()=>{n("All baselines accepted successfully","success")},onError:$=>{console.error("Failed to accept all baselines:",$),n("Failed to accept all baselines. Please try again.","error")}})},[g,n,u]),q=m.useCallback(async()=>{await u("This will delete all baseline images and clear comparison history.","Reset all baselines?")&&v.mutate(void 0,{onSuccess:()=>{n("Baselines reset successfully","success")},onError:$=>{console.error("Failed to reset baselines:",$),n("Failed to reset baselines. Please try again.","error")}})},[v,n,u]);return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold text-white",children:"Statistics"}),r.jsx("p",{className:"text-slate-400 mt-1",children:"Visual regression testing overview"})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[r.jsx(lt,{hover:!1,children:r.jsxs(nt,{className:"flex flex-col items-center justify-center py-8",children:[r.jsx(hv,{value:V,label:"Pass Rate"}),r.jsxs("p",{className:"text-sm text-slate-400 mt-4",children:[N," of ",p," screenshots passing"]})]})}),r.jsxs("div",{className:"lg:col-span-2 grid grid-cols-2 gap-4",children:[r.jsx(bi,{icon:ou,label:"Total Screenshots",value:p,iconColor:"bg-slate-700/50 text-slate-400"}),r.jsx(bi,{icon:Do,label:"Passed",value:N,variant:"success",iconColor:"bg-emerald-500/10 text-emerald-400"}),r.jsx(bi,{icon:dl,label:"Failed",value:A,variant:A>0?"danger":void 0,iconColor:"bg-red-500/10 text-red-400"}),r.jsx(bi,{icon:lv,label:"New",value:B,variant:B>0?"info":void 0,iconColor:"bg-blue-500/10 text-blue-400"})]})]}),x&&r.jsxs(lt,{hover:!1,children:[r.jsx(Gl,{icon:vi,title:"Current Baseline",iconColor:"bg-amber-500/10 text-amber-400",actions:B>0&&r.jsxs(on,{variant:"warning",dot:!0,children:[B," new without baseline"]})}),r.jsx(nt,{children:r.jsxs("div",{className:"grid grid-cols-2 gap-6",children:[r.jsxs("div",{children:[r.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase tracking-wide mb-1",children:"Build Name"}),r.jsx("p",{className:"text-white font-medium",children:x.buildName||"default"})]}),r.jsxs("div",{children:[r.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase tracking-wide mb-1",children:"Created"}),r.jsx("p",{className:"text-white font-medium",children:x.createdAt?new Date(x.createdAt).toLocaleString():"Unknown"})]})]})})]}),r.jsxs(lt,{hover:!1,children:[r.jsx(Gl,{title:"Baseline Management",description:"Accept changes to update baselines or reset to restore previous state"}),r.jsxs(fv,{className:"flex flex-wrap gap-3",children:[r.jsx(Ke,{variant:"success",onClick:M,loading:g.isPending,disabled:!H||o,icon:Do,children:H?"Accept All Changes":"No Changes to Accept"}),r.jsx(Ke,{variant:"secondary",onClick:q,loading:v.isPending,disabled:o,icon:fl,children:"Reset Baselines"}),r.jsx(Ke,{variant:"ghost",onClick:()=>h(),loading:o,icon:fl,className:"ml-auto",children:"Refresh"})]})]})]})}const hn={OVERLAY:"overlay",TOGGLE:"toggle",ONION:"onion"},kt={ALL:"all",FAILED:"failed",PASSED:"passed",NEW:"new"},hl={PRIORITY:"priority",NAME:"name",TIME:"time"},Xl={PASSED:"passed",FAILED:"failed",NEW:"new",BASELINE_CREATED:"baseline-created"};function xv(n,u){return[...n].sort((c,o)=>{if(u==="priority"){const h={[Xl.FAILED]:3,[Xl.NEW]:2,[Xl.PASSED]:1},g=h[c.status]||0,v=h[o.status]||0;return g!==v?v-g:(o.diffPercentage||0)-(c.diffPercentage||0)}return u==="name"?(c.name||"").localeCompare(o.name||""):u==="time"?(o.timestamp||0)-(c.timestamp||0):0})}function jv(n,u){return u==="failed"?n.filter(c=>c.status===Xl.FAILED):u==="passed"?n.filter(c=>c.status===Xl.PASSED):u==="new"?n.filter(c=>c.status===Xl.NEW||c.status===Xl.BASELINE_CREATED):n}let Sv=()=>{let n=new URLSearchParams(window.location.search);return{filter:n.get("filter")||kt.ALL,sortBy:n.get("sort")||hl.PRIORITY,searchQuery:n.get("search")||"",selectedBrowser:n.get("browser")||"all",selectedViewport:n.get("viewport")||"all"}};function wv(n=[]){let u=Sv(),[c,o]=m.useState(u.filter),[h,g]=m.useState(u.sortBy),[v,y]=m.useState(u.searchQuery),[x,p]=m.useState(u.selectedBrowser),[N,A]=m.useState(u.selectedViewport);m.useEffect(()=>{let H=new URLSearchParams;c!==kt.ALL&&H.set("filter",c),h!==hl.PRIORITY&&H.set("sort",h),v&&H.set("search",v),x!=="all"&&H.set("browser",x),N!=="all"&&H.set("viewport",N);let M=H.toString()?`?${H.toString()}`:window.location.pathname;window.history.replaceState({},"",M)},[c,h,v,x,N]);let B=m.useMemo(()=>{let H=new Set,M=new Set;return n.forEach(q=>{if(q.properties?.browser&&H.add(q.properties.browser),q.properties?.viewport_width&&q.properties?.viewport_height){let L=`${q.properties.viewport_width}x${q.properties.viewport_height}`;M.add(L)}else if(q.properties?.viewport){let L=`${q.properties.viewport.width}x${q.properties.viewport.height}`;M.add(L)}}),{browsers:Array.from(H).sort(),viewports:Array.from(M).sort()}},[n]);return{filteredComparisons:m.useMemo(()=>{let H=jv(n,c);if(v.trim()){let M=v.toLowerCase();H=H.filter(q=>q.name.toLowerCase().includes(M)||q.originalName?.toLowerCase().includes(M))}return x!=="all"&&(H=H.filter(M=>M.properties?.browser===x)),N!=="all"&&(H=H.filter(M=>{let q=null;return M.properties?.viewport_width&&M.properties?.viewport_height?q=`${M.properties.viewport_width}x${M.properties.viewport_height}`:M.properties?.viewport&&(q=`${M.properties.viewport.width}x${M.properties.viewport.height}`),q===N})),xv(H,h)},[n,c,h,v,x,N]),filter:c,setFilter:o,sortBy:h,setSortBy:g,searchQuery:v,setSearchQuery:y,selectedBrowser:x,setSelectedBrowser:p,selectedViewport:N,setSelectedViewport:A,availableFilters:B,counts:{all:n.length,failed:n.filter(H=>H.status==="failed").length,passed:n.filter(H=>H.status==="passed").length,new:n.filter(H=>H.status==="new").length}}}function Nv({filter:n,setFilter:u,sortBy:c,setSortBy:o,searchQuery:h,setSearchQuery:g,selectedBrowser:v,setSelectedBrowser:y,selectedViewport:x,setSelectedViewport:p,availableFilters:N,counts:A,onRefresh:B,loading:V}){let[H,M]=m.useState(!1),q=N.browsers.length>1||N.viewports.length>1;return r.jsxs("div",{className:"space-y-3 md:space-y-4",children:[r.jsxs("div",{className:"flex gap-2",children:[r.jsxs("div",{className:"flex-1 relative",children:[r.jsx(Ig,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-slate-400"}),r.jsx("input",{type:"text",placeholder:"Search screenshots...",value:h,onChange:L=>g(L.target.value),className:"w-full bg-slate-800 border border-slate-700 rounded-lg pl-10 pr-4 py-3 md:py-2.5 text-white placeholder-slate-500 focus:border-amber-500 focus:ring-1 focus:ring-amber-500 transition-colors text-base md:text-sm"})]}),q&&r.jsx("button",{onClick:()=>M(!H),className:`md:hidden inline-flex items-center justify-center bg-slate-800 border border-slate-700 p-3 rounded-lg transition-colors touch-manipulation ${H?"text-amber-400 border-amber-500":"text-slate-300 hover:text-white"}`,title:"Filters",children:r.jsx(og,{className:"w-5 h-5"})}),r.jsxs("div",{className:"hidden md:flex items-center gap-2",children:[r.jsxs("select",{value:c,onChange:L=>o(L.target.value),className:"bg-slate-800 border border-slate-700 rounded-lg px-3 py-2.5 text-sm text-white focus:border-amber-500 focus:ring-1 focus:ring-amber-500 transition-colors",children:[r.jsx("option",{value:hl.PRIORITY,children:"Priority"}),r.jsx("option",{value:hl.NAME,children:"Name"}),r.jsx("option",{value:hl.TIME,children:"Time"})]}),r.jsx("button",{onClick:B,disabled:V,className:"inline-flex items-center justify-center bg-slate-800 hover:bg-slate-700 border border-slate-700 text-slate-300 hover:text-white p-2.5 rounded-lg transition-colors disabled:opacity-50 disabled:cursor-not-allowed",title:"Refresh",children:r.jsx(fl,{className:`w-5 h-5 ${V?"animate-spin":""}`})})]}),r.jsx("button",{onClick:B,disabled:V,className:"md:hidden inline-flex items-center justify-center bg-slate-800 hover:bg-slate-700 border border-slate-700 text-slate-300 hover:text-white p-3 rounded-lg transition-colors disabled:opacity-50 disabled:cursor-not-allowed touch-manipulation",title:"Refresh",children:r.jsx(fl,{className:`w-5 h-5 ${V?"animate-spin":""}`})})]}),r.jsxs("div",{className:"flex items-center gap-2 overflow-x-auto scrollbar-hide pb-1 -mx-1 px-1 scroll-snap-x md:flex-wrap md:overflow-visible",children:[r.jsx("span",{className:"hidden md:inline text-sm text-slate-400 mr-1 flex-shrink-0",children:"Status:"}),r.jsxs("button",{onClick:()=>u(kt.ALL),className:`flex-shrink-0 px-3 py-2 md:py-1.5 rounded-lg text-sm font-medium transition-all touch-manipulation scroll-snap-item ${n===kt.ALL?"bg-amber-500 text-slate-900 shadow-lg shadow-amber-500/30":"bg-slate-800 text-slate-400 hover:bg-slate-700 active:bg-slate-600 hover:text-white border border-slate-700"}`,children:["All ",r.jsxs("span",{className:"ml-1 md:ml-1.5 opacity-75",children:["(",A.all,")"]})]}),r.jsxs("button",{onClick:()=>u(kt.FAILED),className:`flex-shrink-0 px-3 py-2 md:py-1.5 rounded-lg text-sm font-medium transition-all touch-manipulation scroll-snap-item ${n===kt.FAILED?"bg-red-500 text-white shadow-lg shadow-red-500/30":"bg-slate-800 text-slate-400 hover:bg-slate-700 active:bg-slate-600 hover:text-white border border-slate-700"}`,children:["Failed"," ",r.jsxs("span",{className:"ml-1 md:ml-1.5 opacity-75",children:["(",A.failed,")"]})]}),r.jsxs("button",{onClick:()=>u(kt.NEW),className:`flex-shrink-0 px-3 py-2 md:py-1.5 rounded-lg text-sm font-medium transition-all touch-manipulation scroll-snap-item ${n===kt.NEW?"bg-blue-500 text-white shadow-lg shadow-blue-500/30":"bg-slate-800 text-slate-400 hover:bg-slate-700 active:bg-slate-600 hover:text-white border border-slate-700"}`,children:["New ",r.jsxs("span",{className:"ml-1 md:ml-1.5 opacity-75",children:["(",A.new,")"]})]}),r.jsxs("button",{onClick:()=>u(kt.PASSED),className:`flex-shrink-0 px-3 py-2 md:py-1.5 rounded-lg text-sm font-medium transition-all touch-manipulation scroll-snap-item ${n===kt.PASSED?"bg-emerald-500 text-white shadow-lg shadow-emerald-500/30":"bg-slate-800 text-slate-400 hover:bg-slate-700 active:bg-slate-600 hover:text-white border border-slate-700"}`,children:["Passed"," ",r.jsxs("span",{className:"ml-1 md:ml-1.5 opacity-75",children:["(",A.passed,")"]})]}),N.browsers.length>1&&r.jsxs("div",{className:"hidden md:flex items-center",children:[r.jsx("span",{className:"text-sm text-slate-400 ml-4 mr-1",children:"Browser:"}),r.jsxs("select",{value:v,onChange:L=>y(L.target.value),className:"bg-slate-800 border border-slate-700 rounded-lg px-3 py-1.5 text-sm text-white focus:border-amber-500 focus:ring-1 focus:ring-amber-500 transition-colors",children:[r.jsx("option",{value:"all",children:"All"}),N.browsers.map(L=>r.jsx("option",{value:L,children:L},L))]})]}),N.viewports.length>1&&r.jsxs("div",{className:"hidden md:flex items-center",children:[r.jsx("span",{className:"text-sm text-slate-400 ml-4 mr-1",children:"Viewport:"}),r.jsxs("select",{value:x,onChange:L=>p(L.target.value),className:"bg-slate-800 border border-slate-700 rounded-lg px-3 py-1.5 text-sm text-white focus:border-amber-500 focus:ring-1 focus:ring-amber-500 transition-colors",children:[r.jsx("option",{value:"all",children:"All"}),N.viewports.map(L=>r.jsx("option",{value:L,children:L},L))]})]})]}),H&&q&&r.jsxs("div",{className:"md:hidden bg-slate-800/50 border border-slate-700 rounded-lg p-3 space-y-3 animate-slide-down",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("span",{className:"text-sm text-slate-400",children:"Sort by:"}),r.jsxs("select",{value:c,onChange:L=>o(L.target.value),className:"bg-slate-800 border border-slate-700 rounded-lg px-3 py-2 text-sm text-white focus:border-amber-500 focus:ring-1 focus:ring-amber-500 transition-colors",children:[r.jsx("option",{value:hl.PRIORITY,children:"Priority"}),r.jsx("option",{value:hl.NAME,children:"Name"}),r.jsx("option",{value:hl.TIME,children:"Time"})]})]}),N.browsers.length>1&&r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("span",{className:"text-sm text-slate-400",children:"Browser:"}),r.jsxs("select",{value:v,onChange:L=>y(L.target.value),className:"bg-slate-800 border border-slate-700 rounded-lg px-3 py-2 text-sm text-white focus:border-amber-500 focus:ring-1 focus:ring-amber-500 transition-colors",children:[r.jsx("option",{value:"all",children:"All"}),N.browsers.map(L=>r.jsx("option",{value:L,children:L},L))]})]}),N.viewports.length>1&&r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("span",{className:"text-sm text-slate-400",children:"Viewport:"}),r.jsxs("select",{value:x,onChange:L=>p(L.target.value),className:"bg-slate-800 border border-slate-700 rounded-lg px-3 py-2 text-sm text-white focus:border-amber-500 focus:ring-1 focus:ring-amber-500 transition-colors",children:[r.jsx("option",{value:"all",children:"All"}),N.viewports.map(L=>r.jsx("option",{value:L,children:L},L))]})]})]})]})}function Ev(n){let[u,c]=m.useState("loading");return m.useEffect(()=>{if(!n){c("missing");return}c("loading");let o=new Image;return o.onload=()=>c("loaded"),o.onerror=()=>c("error"),o.src=n,()=>{o.onload=null,o.onerror=null}},[n]),u}function Cv({src:n,alt:u,className:c,style:o,onClick:h}){let g=Ev(n);return g==="missing"?r.jsx("div",{className:"flex items-center justify-center bg-gray-700 border border-gray-600 rounded min-h-[200px]",style:o,children:r.jsxs("div",{className:"text-gray-400 text-center",children:[r.jsx(ou,{className:"w-12 h-12 mx-auto mb-3"}),r.jsxs("div",{className:"text-sm",children:["No ",u.toLowerCase()," available"]})]})}):g==="loading"?r.jsx("div",{className:"flex items-center justify-center bg-gray-700 border border-gray-600 rounded min-h-[200px]",style:o,children:r.jsxs("div",{className:"text-gray-400 text-center",children:[r.jsx(fl,{className:"w-8 h-8 mx-auto mb-3 animate-spin"}),r.jsxs("div",{className:"text-sm",children:["Loading ",u.toLowerCase(),"..."]})]})}):g==="error"?r.jsx("div",{className:"flex items-center justify-center bg-gray-700 border border-red-500 rounded min-h-[200px]",style:o,children:r.jsxs("div",{className:"text-red-400 text-center",children:[r.jsx(dl,{className:"w-12 h-12 mx-auto mb-3"}),r.jsxs("div",{className:"text-sm",children:["Failed to load ",u.toLowerCase()]}),r.jsx("div",{className:"text-xs text-gray-500 mt-1 font-mono break-all px-4",children:n})]})}):r.jsx("img",{src:n,alt:u,className:c,style:o,onClick:h})}function zv(n,u){return n.id||n.signature||`comparison-${u}`}function Av({status:n}){let u={failed:"bg-red-500",passed:"bg-emerald-500",new:"bg-blue-500","baseline-created":"bg-blue-500"};return r.jsx("span",{className:`w-2.5 h-2.5 rounded-full ${u[n]||"bg-slate-500"}`})}function Ov({userAction:n}){return n==="accepted"?r.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-medium bg-emerald-500/20 text-emerald-400",children:[r.jsx(Yl,{className:"w-3 h-3"}),"Accepted"]}):n==="rejected"?r.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-medium bg-amber-500/20 text-amber-400",children:[r.jsx(Qg,{className:"w-3 h-3"}),"Rejected"]}):null}function Tv(n){return n.properties?.viewport_width&&n.properties?.viewport_height?`${n.properties.viewport_width}×${n.properties.viewport_height}`:n.properties?.viewport?`${n.properties.viewport.width}×${n.properties.viewport.height}`:null}function Mv({comparison:n,onClick:u,userAction:c}){let o=Tv(n),h=n.properties?.browser,g=n.status==="failed",v=n.status==="new"||n.status==="baseline-created",y=n.current||n.baseline;return r.jsxs("button",{onClick:()=>u(n),className:`
10
+ w-full flex items-center gap-3 md:gap-4 p-3 md:p-4
11
+ bg-white/5 hover:bg-white/10 active:bg-white/15
12
+ border rounded-lg transition-all duration-150
13
+ touch-manipulation text-left
14
+ ${g?"border-red-500/40 hover:border-red-500/60":"border-slate-700/50 hover:border-slate-600"}
15
+ `,children:[r.jsxs("div",{className:`
16
+ relative w-16 h-12 md:w-20 md:h-14 rounded-md overflow-hidden flex-shrink-0 bg-slate-800
17
+ ${g?"ring-2 ring-red-500/50":v?"ring-2 ring-blue-500/50":""}
18
+ `,children:[y?r.jsx(Cv,{src:y,alt:n.name||"Screenshot",className:"w-full h-full object-cover object-top"}):r.jsx("div",{className:"w-full h-full flex items-center justify-center text-slate-600",children:r.jsx("svg",{className:"w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})})}),g&&r.jsx("div",{className:"absolute inset-0 bg-red-500/20 flex items-center justify-center",children:r.jsx("div",{className:"w-2 h-2 bg-red-500 rounded-full"})}),v&&r.jsx("div",{className:"absolute inset-0 bg-blue-500/20 flex items-center justify-center",children:r.jsx("span",{className:"text-[10px] font-bold text-blue-400 bg-blue-900/80 px-1.5 py-0.5 rounded",children:"NEW"})})]}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("h3",{className:"text-base md:text-lg font-medium text-white truncate",children:n.name||n.originalName||"Unknown"}),r.jsx(Av,{status:n.status})]}),r.jsxs("div",{className:"flex flex-wrap items-center gap-2 mt-1 text-xs text-slate-400",children:[h&&r.jsx("span",{className:"bg-slate-700/50 px-2 py-0.5 rounded",children:h}),o&&r.jsx("span",{className:"bg-slate-700/50 px-2 py-0.5 rounded",children:o}),n.diffPercentage>0&&r.jsxs("span",{className:"text-red-400",children:[n.diffPercentage.toFixed(2),"% diff"]})]})]}),r.jsx("div",{className:"flex-shrink-0",children:r.jsx(Ov,{userAction:c})}),r.jsx("div",{className:"flex-shrink-0 text-slate-500",children:r.jsx("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})})]})}function Rv({comparisons:n,onSelectComparison:u,loadingStates:c={}}){return!n||n.length===0?r.jsx("div",{className:"text-center py-12 text-slate-400",children:"No screenshots to display"}):r.jsx("div",{className:"space-y-2",children:n.map((o,h)=>{let g=zv(o,h);return r.jsx(Mv,{comparison:{...o,id:g},onClick:u,userAction:c[g]},g)})})}function Dv(){let[,n]=di(),{addToast:u,confirm:c}=Zl(),{data:o,isLoading:h,refetch:g}=gi(),v=Mo(),{filteredComparisons:y,filter:x,setFilter:p,sortBy:N,setSortBy:A,searchQuery:B,setSearchQuery:V,selectedBrowser:H,setSelectedBrowser:M,selectedViewport:q,setSelectedViewport:L,availableFilters:$,counts:k}=wv(o?.comparisons),ne=m.useCallback(J=>{let oe=y.findIndex(He=>He===J),De=J.id||J.signature||(oe>=0?`comparison-${oe}`:null);De&&n(`/comparison/${De}`)},[y,n]),xe=m.useCallback(async()=>{await c("This will update all failed and new screenshots.","Accept all changes as new baselines?")&&v.mutate(void 0,{onSuccess:()=>{u("All baselines accepted successfully","success")},onError:oe=>{console.error("Failed to accept all baselines:",oe),u("Failed to accept all baselines. Please try again.","error")}})},[v,u,c]),de=!o?.comparisons||o.comparisons.length===0,K=x!=="all"||B.trim()||H!=="all"||q!=="all",ee=o?.comparisons?.some(J=>J.status==="failed"||J.status==="new"),ve=o?.comparisons?.filter(J=>J.status==="failed").length||0,Me=o?.comparisons?.filter(J=>J.status==="new").length||0,he=ve+Me;return de?r.jsx(ya,{icon:Cg,title:"No Screenshots Yet",description:"Run your tests with vizzlyScreenshot() to start capturing visual comparisons."}):r.jsxs("div",{className:"space-y-6",children:[r.jsx(Nv,{filter:x,setFilter:p,sortBy:N,setSortBy:A,searchQuery:B,setSearchQuery:V,selectedBrowser:H,setSelectedBrowser:M,selectedViewport:q,setSelectedViewport:L,availableFilters:$,counts:k,onRefresh:g,loading:h}),ee&&r.jsx(hu,{variant:"success",title:_v(ve,Me),children:r.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center gap-4 mt-3",children:[r.jsx("p",{className:"text-sm text-slate-400 flex-1",children:ve>0?"Review changes and accept all to update baselines":"All screenshots are ready to be saved as baselines"}),r.jsxs(Ke,{variant:"success",onClick:xe,loading:v.isPending,icon:Yl,className:"w-full sm:w-auto",children:["Accept All (",he,")"]})]})}),y.length===0?r.jsx(lt,{hover:!1,children:r.jsx(nt,{className:"py-12",children:r.jsx(ya,{icon:Vg,title:"No matches",description:"No comparisons match your current filters.",action:K&&r.jsx(Ke,{variant:"ghost",size:"sm",onClick:()=>{p("all"),V(""),M("all"),L("all")},children:"Clear all filters"})})})}):r.jsx(Rv,{comparisons:y,onSelectComparison:ne,loadingStates:{}})]})}function _v(n,u){return n>0&&u>0?`${n} Failed, ${u} New`:n>0?`${n} Visual Difference${n!==1?"s":""}`:`${u} New Baseline${u!==1?"s":""}`}function Uv({children:n,containerClassName:u="",onClick:c,style:o={},...h}){let v=`relative inline-block ${u}`;return r.jsx("div",{className:v,style:o,onClick:c,...h,children:n})}function xi({children:n,containerClassName:u="",interactive:c=!1,onClick:o,style:h={}}){let g=c?"cursor-pointer":"";return r.jsx(Uv,{containerClassName:`${u} ${g}`,onClick:o,style:h,children:n})}function Lv({imageKey:n,url:u,alt:c,position:o="absolute",className:h="",onError:g,onLoad:v,imageErrors:y,style:x={},loading:p="lazy",...N}){let A={absolute:"absolute block",relative:"block"},B=o==="absolute"&&!h.includes("top-")&&!h.includes("left-")?"top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2":"",V=`${A[o]} ${B} ${h}`.trim();if(y&&y.has(n))return r.jsx("div",{className:"absolute inset-0 bg-gray-700 flex items-center justify-center",children:r.jsxs("div",{className:"text-center text-gray-400",children:[r.jsx(dl,{className:"w-8 h-8 mx-auto mb-2"}),r.jsx("div",{className:"text-sm",children:"Failed to load image"})]})});let{screenshot:H,zoom:M,...q}=N;return r.jsx("img",{src:u,alt:c,className:V,style:x,loading:p,decoding:"async",onError:()=>g&&g(n),onLoad:()=>v&&v(n),...q})}function Kl({imageKey:n,url:u,alt:c,position:o="absolute",className:h="",onError:g,onLoad:v,imageErrors:y,showErrorPlaceholder:x=!0,loading:p="lazy",...N}){return y&&y.has(n)&&!x?null:r.jsx(Lv,{imageKey:n,url:u,alt:c,position:o,className:h,onError:g,onLoad:v,imageErrors:y,loading:p,...N})}function Bv({baselineImageUrl:n,currentImageUrl:u,screenshot:c,onImageError:o,onImageLoad:h,imageErrors:g=new Set}){let[v,y]=m.useState(!0),x=()=>{y(p=>!p)};return r.jsxs(xi,{interactive:!0,onClick:x,children:[r.jsx("div",{className:"absolute top-2 left-2 bg-black/70 text-white px-2 py-1 rounded text-xs z-10",children:v?"Showing Baseline":"Showing Current"}),r.jsx("div",{className:"absolute top-2 right-2 bg-black/70 text-white px-2 py-1 rounded text-xs z-10",children:"Click to toggle"}),r.jsxs("div",{className:"relative inline-block",children:[r.jsx(Kl,{imageKey:`baseline-${c?.id||"unknown"}`,url:n,alt:"Baseline",position:v?"relative":"absolute",className:`transition-opacity duration-300 ${v?"":"top-0 left-0"} ${v?"opacity-100":"opacity-0"}`,loading:"eager",onError:o,onLoad:h,imageErrors:g,showErrorPlaceholder:!1,screenshot:c}),r.jsx(Kl,{imageKey:`current-${c?.id||"unknown"}`,url:u,alt:"Current",position:v?"absolute":"relative",className:`transition-opacity duration-300 ${v?"top-0 left-0":""} ${v?"opacity-0":"opacity-100"}`,loading:"eager",onError:o,onLoad:h,imageErrors:g,showErrorPlaceholder:!1,screenshot:c})]})]})}function qv({baselineImageUrl:n,currentImageUrl:u,diffImageUrl:c,showDiffOverlay:o=!1,screenshot:h,onImageError:g,onImageLoad:v,imageErrors:y,onDiffToggle:x}){let p=()=>{c&&x&&x()};return n?r.jsxs(xi,{interactive:!!c,onClick:p,children:[r.jsx(Kl,{imageKey:`current-${h?.id||"unknown"}`,url:u,alt:h?.name||"Current",position:"relative",loading:"eager",onError:g,onLoad:v,imageErrors:y,screenshot:h}),o&&c&&r.jsx(Kl,{imageKey:`diff-${h?.id||"unknown"}`,url:c,alt:"Diff",position:"absolute",className:"top-0 left-0",loading:"eager",onError:g,onLoad:v,imageErrors:y,showErrorPlaceholder:!1,screenshot:h}),o&&c&&y?.has(`diff-${h?.id||"unknown"}`)&&r.jsx("div",{className:"absolute top-4 left-1/2 transform -translate-x-1/2 bg-amber-900/90 border border-amber-600/50 rounded-lg px-3 py-2 text-amber-200 text-sm backdrop-blur-sm",children:r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.732-.833-2.5 0L4.232 14.5c-.77.833.192 2.5 1.732 2.5z"})}),r.jsx("span",{children:"Diff image not available"})]})}),c&&r.jsxs("div",{className:"absolute bottom-2 left-1/2 transform -translate-x-1/2 bg-black/70 text-white px-3 py-1 rounded text-xs z-10",children:[o?"Diff On":"Diff Off"," (click to toggle)"]})]}):r.jsx(xi,{interactive:!!c,onClick:p,children:r.jsx(Kl,{imageKey:`current-${h?.id||"unknown"}`,url:u,alt:h?.name||"Current",position:"relative",loading:"eager",onError:g,onLoad:v,imageErrors:y,screenshot:h})})}function Hv({baselineImageUrl:n,currentImageUrl:u,sliderPosition:c=50,onSliderChange:o,screenshot:h,onImageError:g,onImageLoad:v,imageErrors:y=new Set}){return r.jsxs(xi,{containerClassName:"cursor-col-resize",children:[r.jsxs("div",{className:"relative inline-block",children:[r.jsx(Kl,{imageKey:`baseline-${h?.id||"unknown"}`,url:n,alt:"Baseline",position:"relative",loading:"eager",onError:g,onLoad:v,imageErrors:y,screenshot:h}),r.jsx("div",{className:"absolute top-0 left-0 overflow-hidden",style:{width:`${c}%`,height:"100%"},children:r.jsx(Kl,{imageKey:`current-${h?.id||"unknown"}`,url:u,alt:"Current",position:"absolute",className:"top-0 left-0",loading:"eager",style:{width:c>0?`${1e4/c}%`:"10000%",maxWidth:"none"},onError:g,onLoad:v,imageErrors:y,screenshot:h})}),r.jsx("div",{className:"absolute top-0 bottom-0 w-0.5 bg-white shadow-lg pointer-events-none z-10",style:{left:`${c}%`,transform:"translateX(-50%)"}}),r.jsx("div",{className:"absolute inset-0 z-20",children:r.jsx("input",{type:"range",min:"0",max:"100",value:c,onChange:x=>o(parseInt(x.target.value)),className:"absolute inset-0 w-full h-full opacity-0 cursor-col-resize",title:`Slide to compare: ${Math.round(c)}% current visible`})})]}),r.jsx("div",{className:"absolute top-2 left-2 bg-black/70 text-white px-2 py-1 rounded text-xs z-10",children:"Baseline"}),r.jsx("div",{className:"absolute top-2 right-2 bg-black/70 text-white px-2 py-1 rounded text-xs z-10",children:"Current"}),r.jsxs("div",{className:"absolute bottom-2 left-1/2 transform -translate-x-1/2 bg-black/70 text-white px-3 py-1 rounded text-xs z-10",children:[Math.round(c),"% current"]})]})}function Qv({comparison:n,viewMode:u="overlay",showDiffOverlay:c=!0,onionSkinPosition:o=50,onOnionSkinChange:h,onDiffToggle:g,disableLoadingOverlay:v=!1,zoom:y="fit",className:x=""}){let[p,N]=m.useState(new Set),[A,B]=m.useState(new Map),[V,H]=m.useState(1),[M,q]=m.useState({width:0,height:0}),L=m.useRef(null),$=m.useRef(null);m.useEffect(()=>{let ee=()=>{let he=L.current,J=he?.querySelector("img");if(!he||!J||!J.naturalWidth)return;q({width:J.naturalWidth,height:J.naturalHeight});let oe=he.getBoundingClientRect(),De=40,He=oe.width-De,T=oe.height-De,Q=He/J.naturalWidth,I=T/J.naturalHeight,pe=Math.min(Q,I,1);H(pe)};ee();let ve=new window.ResizeObserver(ee);L.current&&ve.observe(L.current);let Me=L.current?.querySelectorAll("img")||[];return Me.forEach(he=>he.addEventListener("load",ee)),()=>{ve.disconnect(),Me.forEach(he=>he.removeEventListener("load",ee))}},[A]);let k=m.useMemo(()=>{let ee=y==="fit",ve=ee?V:typeof y=="number"?y:1,Me=!ee&&ve>V;return{isFit:ee,scale:ve,allowsOverflow:Me,containerClass:Me?"overflow-auto":"overflow-hidden"}},[y,V]),ne=m.useCallback(ee=>{N(ve=>new Set([...ve,ee]))},[]),xe=m.useCallback(ee=>{B(ve=>new Map(ve).set(ee,"loaded"))},[]),de=n?{current:n.current,baseline:n.baseline,diff:n.diff}:{},K=m.useMemo(()=>n?{id:n.id||n.signature||"unknown",name:n.name||n.originalName||"Screenshot"}:null,[n]);return!n||n.status==="new"||n.status==="baseline-created"?r.jsx("div",{className:`h-full ${x}`,children:r.jsxs("div",{ref:L,className:`bg-gray-800 relative h-full ${k.containerClass}`,style:{backgroundImage:`
19
+ linear-gradient(45deg, #1f2937 25%, transparent 25%),
20
+ linear-gradient(-45deg, #1f2937 25%, transparent 25%),
21
+ linear-gradient(45deg, transparent 75%, #1f2937 75%),
22
+ linear-gradient(-45deg, transparent 75%, #1f2937 75%)
23
+ `,backgroundSize:"16px 16px",backgroundPosition:"0 0, 0 8px, 8px -8px, -8px 0px",backgroundColor:"#111827"},children:[r.jsx("div",{className:`relative ${k.allowsOverflow?"flex justify-center items-start":"min-w-full min-h-full flex justify-center items-center"}`,style:{...k.allowsOverflow?{minWidth:M.width*k.scale+40,minHeight:M.height*k.scale+40,padding:"20px"}:{zoom:k.scale,padding:"20px"}},children:r.jsx("div",{ref:$,className:"relative inline-block",style:k.allowsOverflow?{transform:`scale(${k.scale})`,transformOrigin:"top center"}:{},children:n&&r.jsx("img",{src:n.current,alt:n.name||"New screenshot",className:"block",onLoad:()=>xe(`current-${K?.id}`),onError:()=>ne(`current-${K?.id}`)})})}),!v&&n&&!A.has(`current-${K?.id}`)&&r.jsx("div",{className:"absolute inset-0 bg-gray-700 animate-pulse flex items-center justify-center",children:r.jsx("div",{className:"text-gray-400",children:"Loading..."})}),n&&p.has(`current-${K?.id}`)&&r.jsx("div",{className:"absolute inset-0 bg-gray-700 flex items-center justify-center",children:r.jsxs("div",{className:"text-center text-gray-400",children:[r.jsx(dl,{className:"w-8 h-8 mx-auto mb-2"}),r.jsx("div",{className:"text-sm",children:"Failed to load image"})]})})]})}):r.jsx("div",{className:`h-full ${x}`,children:r.jsxs("div",{ref:L,className:`bg-gray-800 relative unified-screenshot-container h-full ${k.containerClass}`,style:{backgroundImage:`
24
+ linear-gradient(45deg, #1f2937 25%, transparent 25%),
25
+ linear-gradient(-45deg, #1f2937 25%, transparent 25%),
26
+ linear-gradient(45deg, transparent 75%, #1f2937 75%),
27
+ linear-gradient(-45deg, transparent 75%, #1f2937 75%)
28
+ `,backgroundSize:"16px 16px",backgroundPosition:"0 0, 0 8px, 8px -8px, -8px 0px",backgroundColor:"#111827"},children:[r.jsx("div",{className:`relative ${k.allowsOverflow?"flex justify-center items-start":"min-w-full min-h-full flex justify-center items-center"}`,style:{...k.allowsOverflow?{minWidth:M.width*k.scale+40,minHeight:M.height*k.scale+40,padding:"20px"}:{zoom:k.scale,padding:"20px"}},children:r.jsx("div",{ref:$,className:"relative inline-block",style:k.allowsOverflow?{transform:`scale(${k.scale})`,transformOrigin:"top center"}:{},children:u==="toggle"&&de.baseline?r.jsx(Bv,{baselineImageUrl:de.baseline,currentImageUrl:de.current,screenshot:K,onImageError:ne,onImageLoad:xe,imageErrors:p}):u==="onion-skin"&&de.baseline?r.jsx(Hv,{baselineImageUrl:de.baseline,currentImageUrl:de.current,sliderPosition:o,onSliderChange:h,screenshot:K,onImageError:ne,onImageLoad:xe,imageErrors:p}):r.jsx(qv,{baselineImageUrl:de.baseline,currentImageUrl:de.current,diffImageUrl:de.diff,showDiffOverlay:c,screenshot:K,onImageError:ne,onImageLoad:xe,imageErrors:p,onDiffToggle:g})})}),!v&&!A.has(`current-${K?.id}`)&&r.jsx("div",{className:"absolute inset-0 bg-gray-700 animate-pulse flex items-center justify-center",children:r.jsx("div",{className:"text-gray-400",children:"Loading..."})}),p.has(`current-${K?.id}`)&&r.jsx("div",{className:"absolute inset-0 bg-gray-700 flex items-center justify-center",children:r.jsxs("div",{className:"text-center text-gray-400",children:[r.jsx(dl,{className:"w-8 h-8 mx-auto mb-2"}),r.jsx("div",{className:"text-sm",children:"Failed to load image"})]})})]})})}function pa(n,u=0){return n?.id||n?.signature||`comparison-${u}`}function kv({zoom:n,onZoomChange:u}){let c=m.useCallback(()=>{u(n==="fit"?.75:Math.min(3,n+.25))},[n,u]),o=m.useCallback(()=>{u(n==="fit"?.5:Math.max(.1,n-.25))},[n,u]),h=m.useCallback(()=>{u("fit")},[u]),g=m.useCallback(()=>{u(1)},[u]),v=n==="fit"?"Fit":`${Math.round(n*100)}%`;return r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsxs("div",{className:"flex items-center bg-gray-800/90 backdrop-blur-md rounded-lg border border-gray-600/40 shadow-lg",children:[r.jsx("button",{onClick:o,className:"p-2 text-gray-300 hover:text-white hover:bg-gray-700/60 rounded-l-lg transition-colors",title:"Zoom out (−)",children:r.jsx(Jg,{className:"w-4 h-4"})}),r.jsx("div",{className:"px-3 py-1.5 min-w-[60px] text-center text-sm font-medium text-gray-200",children:v}),r.jsx("button",{onClick:c,className:"p-2 text-gray-300 hover:text-white hover:bg-gray-700/60 rounded-r-lg transition-colors",title:"Zoom in (+)",children:r.jsx(Fg,{className:"w-4 h-4"})})]}),r.jsx("button",{onClick:h,className:`p-2 rounded-lg transition-colors ${n==="fit"?"bg-blue-600/30 text-blue-400 border border-blue-500/40":"bg-gray-800/90 text-gray-300 hover:text-white hover:bg-gray-700/60 border border-gray-600/40"}`,title:"Fit to screen",children:r.jsx(pg,{className:"w-4 h-4"})}),r.jsx("button",{onClick:g,className:`p-2 rounded-lg transition-colors ${n===1?"bg-blue-600/30 text-blue-400 border border-blue-500/40":"bg-gray-800/90 text-gray-300 hover:text-white hover:bg-gray-700/60 border border-gray-600/40"}`,title:"Actual size",children:r.jsx("span",{className:"text-xs font-bold w-4 h-4 flex items-center justify-center",children:"1:1"})})]})}function Yv({comparison:n,isActive:u,onClick:c,index:o}){let h=n.current||n.baseline,g=n.status==="failed",v=n.status==="new"||n.status==="baseline-created";return r.jsxs("button",{onClick:c,className:`relative flex-shrink-0 group transition-all duration-200 ${u?"ring-2 ring-blue-500 ring-offset-2 ring-offset-gray-900 rounded-lg scale-110":"hover:ring-2 hover:ring-gray-500 hover:ring-offset-2 hover:ring-offset-gray-900 rounded-lg opacity-60 hover:opacity-100"}`,title:n.name||`Screenshot ${o+1}`,children:[r.jsxs("div",{className:"relative w-14 h-20 bg-gray-800 rounded-lg overflow-hidden",children:[h?r.jsx("img",{src:h,alt:n.name||"Thumbnail",className:"absolute inset-0 w-full h-full object-cover object-top",loading:"lazy"}):r.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-gray-800 to-gray-700 flex items-center justify-center",children:r.jsx("span",{className:"text-lg font-medium text-gray-500",children:n.name?n.name.charAt(0).toUpperCase():"?"})}),v&&r.jsx("div",{className:"absolute bottom-1 left-1 px-1 py-0.5 bg-blue-600/90 rounded text-[9px] font-bold text-white shadow-sm",children:"NEW"}),g&&!v&&r.jsx("div",{className:"absolute bottom-1 left-1 px-1 py-0.5 bg-amber-600/90 rounded text-[9px] font-bold text-white shadow-sm",children:"DIFF"})]}),r.jsx("div",{className:"absolute bottom-full left-1/2 -translate-x-1/2 mb-2 px-2 py-1 bg-gray-800 border border-gray-700 text-xs text-gray-200 rounded whitespace-nowrap opacity-0 group-hover:opacity-100 transition-opacity pointer-events-none z-20 shadow-lg",children:n.name||`Screenshot ${o+1}`})]})}function Gv({comparison:n,comparisons:u=[],onClose:c,onAccept:o,onReject:h,onNavigate:g,userAction:v}){let[y,x]=m.useState(hn.OVERLAY),[p,N]=m.useState(!1),[A,B]=m.useState("fit"),[V,H]=m.useState(!0),[M,q]=m.useState(50),L=m.useRef(null),$=m.useMemo(()=>{let J={failed:0,new:1,"baseline-created":1,passed:2};return[...u].sort((oe,De)=>{let He=J[oe.status]??3,T=J[De.status]??3;return He-T})},[u]),k=m.useMemo(()=>{let J=pa(n);return $.findIndex((oe,De)=>pa(oe,De)===J)},[n,$]),ne=m.useMemo(()=>({prev:k>0,next:k<$.length-1}),[k,$.length]),xe=m.useCallback(()=>{ne.prev&&$[k-1]&&g($[k-1])},[ne.prev,$,k,g]),de=m.useCallback(()=>{ne.next&&$[k+1]&&g($[k+1])},[ne.next,$,k,g]);if(m.useEffect(()=>{if(L.current&&k>=0){let J=L.current,oe=J.children;if(oe[k]){let De=oe[k],He=J.getBoundingClientRect(),T=De.getBoundingClientRect();(T.left<He.left||T.right>He.right)&&De.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})}}},[k]),m.useEffect(()=>{let J=oe=>{if(!(oe.target.tagName==="INPUT"||oe.target.tagName==="TEXTAREA"))switch(oe.key){case"ArrowLeft":oe.preventDefault(),ne.prev&&xe();break;case"ArrowRight":oe.preventDefault(),ne.next&&de();break;case"Escape":oe.preventDefault(),c();break}};return window.addEventListener("keydown",J),()=>window.removeEventListener("keydown",J)},[ne,xe,de,c]),!n)return r.jsx("div",{className:"fixed inset-0 bg-gray-900 z-50 flex items-center justify-center",children:r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"text-lg text-white font-medium mb-2",children:"Comparison not found"}),r.jsx("button",{onClick:c,className:"text-blue-400 hover:text-blue-300 font-medium transition-colors",children:"Return to list"})]})});let K=n.status==="failed"||n.status==="passed",ee=v==="accepted"||n.status==="passed"&&v!=="rejected",ve=v==="rejected",Me=[{value:hn.OVERLAY,label:"Overlay"},{value:hn.TOGGLE,label:"Toggle"},{value:hn.ONION,label:"Slide"}],he=[];return n.properties?.browser&&he.push({key:"Browser",value:n.properties.browser}),n.properties?.viewport_width&&n.properties?.viewport_height&&he.push({key:"Viewport",value:`${n.properties.viewport_width}×${n.properties.viewport_height}`}),n.properties?.device&&he.push({key:"Device",value:n.properties.device}),r.jsxs("div",{className:"fixed inset-0 bg-gray-900 z-50 flex flex-col","data-testid":"fullscreen-viewer",children:[r.jsxs("div",{className:"flex-shrink-0 bg-gray-900/95 backdrop-blur-md border-b border-gray-800/50 z-30",children:[r.jsxs("div",{className:"px-4 py-2.5 flex items-center justify-between gap-2",children:[r.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[r.jsx("button",{onClick:c,className:"p-1.5 text-gray-400 hover:text-white rounded-lg hover:bg-gray-700/60 transition-colors",title:"Back (Esc)",children:r.jsx(yi,{className:"w-5 h-5"})}),r.jsxs("div",{className:"flex items-center gap-1",children:[r.jsx("button",{onClick:xe,disabled:!ne.prev,className:"p-1.5 text-gray-400 hover:text-white disabled:opacity-30 disabled:cursor-not-allowed rounded-lg hover:bg-gray-700/60 transition-colors",title:"Previous (←)",children:r.jsx(Dg,{className:"w-4 h-4"})}),r.jsxs("span",{className:"text-xs text-gray-500 font-medium tabular-nums min-w-[3rem] text-center",children:[k+1,"/",$.length]}),r.jsx("button",{onClick:de,disabled:!ne.next,className:"p-1.5 text-gray-400 hover:text-white disabled:opacity-30 disabled:cursor-not-allowed rounded-lg hover:bg-gray-700/60 transition-colors",title:"Next (→)",children:r.jsx(ru,{className:"w-4 h-4"})})]}),r.jsx("div",{className:"h-5 w-px bg-gray-700/50"}),r.jsx("h1",{className:"text-sm font-medium text-gray-200 truncate max-w-[300px]",children:n.name||n.originalName||"Unknown"}),he.length>0&&r.jsxs("button",{onClick:()=>N(!p),className:"flex items-center gap-1 px-2 py-1 text-xs text-gray-500 hover:text-gray-300 transition-colors",children:[r.jsxs("span",{children:[he.length," props"]}),r.jsx(uu,{className:`w-3 h-3 transition-transform ${p?"rotate-180":""}`})]})]}),K&&r.jsxs("div",{className:"flex items-center bg-gray-800/60 rounded-lg p-0.5 border border-gray-700/50",children:[r.jsxs("button",{onClick:()=>h(pa(n)),className:`flex items-center gap-1 px-3 py-1.5 text-xs font-medium rounded-md transition-all ${ve?"bg-red-600 text-white":"text-red-400 hover:text-red-300 hover:bg-red-600/20"}`,children:[r.jsx("span",{className:"w-1.5 h-1.5 bg-current rounded-full"}),"Reject"]}),r.jsxs("button",{onClick:()=>o(pa(n)),className:`flex items-center gap-1 px-3 py-1.5 text-xs font-medium rounded-md transition-all ${ee?"bg-green-600 text-white":"text-green-400 hover:text-green-300 hover:bg-green-600/20"}`,children:[r.jsx("span",{className:"w-1.5 h-1.5 bg-current rounded-full"}),"Approve"]})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(kv,{zoom:A,onZoomChange:B}),r.jsx("div",{className:"flex items-center bg-gray-800/60 rounded-lg p-0.5 border border-gray-700/50",children:Me.map(J=>r.jsx("button",{onClick:()=>n.diff&&x(J.value),disabled:!n.diff,className:`px-2.5 py-1 text-xs font-medium rounded-md transition-all ${n.diff?y===J.value?"bg-blue-600 text-white":"text-gray-400 hover:text-white hover:bg-gray-700/60":"text-gray-600 cursor-not-allowed"}`,children:J.label},J.value))})]})]}),p&&he.length>0&&r.jsx("div",{className:"px-4 py-2 border-t border-gray-800/50 bg-gray-900/50",children:r.jsx("div",{className:"flex flex-wrap gap-2",children:he.map((J,oe)=>r.jsxs("span",{className:"inline-flex items-center px-2 py-0.5 bg-gray-800/60 text-xs rounded-md",children:[r.jsxs("span",{className:"text-gray-500",children:[J.key,":"]}),r.jsx("span",{className:"ml-1 text-gray-300",children:J.value})]},oe))})})]}),r.jsx("div",{className:"flex-1 min-h-0 overflow-hidden",children:r.jsx(Qv,{comparison:n,viewMode:y===hn.ONION?"onion-skin":y,showDiffOverlay:V,onDiffToggle:()=>H(J=>!J),onionSkinPosition:M,onOnionSkinChange:q,zoom:A,disableLoadingOverlay:!0,className:"w-full h-full"},pa(n))}),r.jsx("div",{className:"flex-shrink-0 bg-gray-900 border-t border-gray-800/50",children:r.jsx("div",{className:"px-4 py-3",children:r.jsxs("div",{className:"flex items-center gap-4",children:[r.jsxs("div",{className:"text-sm text-gray-500 flex-shrink-0",children:[k+1," of ",$.length]}),r.jsx("div",{ref:L,className:"flex-1 flex items-center gap-2 overflow-x-auto scrollbar-hide py-1",children:$.map((J,oe)=>r.jsx(Yv,{comparison:J,index:oe,isActive:oe===k,onClick:()=>g(J)},pa(J,oe)))}),r.jsxs("div",{className:"hidden md:flex items-center gap-3 text-xs text-gray-500 flex-shrink-0",children:[r.jsxs("span",{children:["Use"," ",r.jsx("kbd",{className:"px-1 py-0.5 bg-gray-800 rounded text-gray-400",children:"←"})," ",r.jsx("kbd",{className:"px-1 py-0.5 bg-gray-800 rounded text-gray-400",children:"→"})," ","to navigate"]}),r.jsx(uu,{className:"w-4 h-4 rotate-[-90deg]"})]})]})})})]})}function Vv(){let[,n]=di(),[,u]=lg("/comparison/:id"),[c,o]=m.useState({}),{data:h}=gi(),g=sg(),v=rg(),y=m.useMemo(()=>h?.comparisons||[],[h?.comparisons]),{comparison:x,currentIndex:p}=m.useMemo(()=>{let M=u?.id;if(!M||y.length===0)return{comparison:null,currentIndex:-1};let q=y.findIndex((L,$)=>L.id===M||L.signature===M||`comparison-${$}`===M);return{comparison:q>=0?y[q]:null,currentIndex:q}},[u,y]),N=m.useCallback(M=>{let q=y.findIndex(L=>L===M);if(q>=0){let L=M.id||M.signature||`comparison-${q}`;n(`/comparison/${L}`)}},[y,n]),A=m.useCallback(()=>{n("/")},[n]),B=m.useMemo(()=>x?x.id||x.signature||`comparison-${p}`:null,[x,p]),V=m.useCallback(M=>{o(q=>({...q,[M]:"accepting"})),g.mutate(M,{onSettled:()=>{o(q=>({...q,[M]:void 0}))}})},[g]),H=m.useCallback(M=>{o(q=>({...q,[M]:"rejecting"})),v.mutate(M,{onSettled:()=>{o(q=>({...q,[M]:void 0}))}})},[v]);return x?r.jsx(Gv,{comparison:x,comparisons:y,onClose:A,onAccept:V,onReject:H,onNavigate:N,userAction:c[B]}):r.jsx("div",{className:"fixed inset-0 bg-gray-900 z-50 flex items-center justify-center",children:r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"text-lg text-white font-medium mb-2",children:"Comparison not found"}),r.jsxs("p",{className:"text-sm text-gray-400 mb-4",children:["ID: ",u?.id||"none"]}),r.jsx("button",{onClick:A,className:"text-blue-400 hover:text-blue-300 font-medium transition-colors",children:"Return to list"})]})})}function Zv(n={}){return ma({queryKey:Te.config,queryFn:To.get,...n})}function Xv(){let n=Lt();return Qt({mutationFn:To.updateProject,onSuccess:()=>{n.invalidateQueries({queryKey:Te.config})}})}function qo(n){return{threshold:n?.comparison?.threshold??.1,port:n?.server?.port??47392,timeout:n?.server?.timeout??3e4,buildName:n?.build?.name??"Build {timestamp}",environment:n?.build?.environment??"test",openReport:n?.tdd?.openReport??!1}}function mu({source:n}){let u={default:"default",project:"info",global:"purple",env:"success",cli:"warning"},c={default:"Default",project:"Project",global:"Global",env:"Environment",cli:"CLI Flag"};return r.jsx(on,{variant:u[n]||"default",size:"sm",children:c[n]||n})}function Kv({config:n,sources:u,onSave:c,isSaving:o}){let h=qo(n),[g,v]=m.useState(h),[y,x]=m.useState(!1),[p,N]=m.useState("general"),A=m.useCallback((M,q)=>{v(L=>({...L,[M]:q})),x(!0)},[]),B=m.useCallback(()=>{v(qo(n)),x(!1)},[n]),V=m.useCallback(()=>{let M={comparison:{threshold:g.threshold},server:{port:g.port,timeout:g.timeout},build:{name:g.buildName,environment:g.environment},tdd:{openReport:g.openReport}};c(M,()=>x(!1))},[g,c]),H=[{key:"general",label:"General",icon:cu},{key:"server",label:"Server",icon:_o},{key:"build",label:"Build",icon:Uo}];return r.jsxs("div",{className:"space-y-6",children:[r.jsx(mv,{tabs:H,activeTab:p,onChange:N,variant:"default"}),p==="general"&&r.jsxs(lt,{hover:!1,children:[r.jsx(Gl,{icon:cu,title:"General Settings",description:"Configure visual comparison and TDD behavior",iconColor:"bg-amber-500/10 text-amber-400"}),r.jsxs(nt,{className:"space-y-6",children:[r.jsx(pi,{label:"Visual Comparison Threshold",type:"number",value:g.threshold,onChange:M=>A("threshold",parseFloat(M.target.value)),hint:"Percentage of pixel difference allowed before marking as failed (0.0 - 1.0)",step:"0.01",min:"0",max:"1"}),r.jsx(ov,{label:"Auto-open Report",description:"Automatically open the dashboard in your browser when starting TDD mode",checked:g.openReport,onChange:M=>A("openReport",M.target.checked)}),r.jsxs("div",{className:"pt-4 border-t border-slate-700/50 flex items-center gap-2",children:[r.jsx("span",{className:"text-sm text-slate-500",children:"Config source:"}),r.jsx(mu,{source:u?.comparison||"default"})]})]})]}),p==="server"&&r.jsxs(lt,{hover:!1,children:[r.jsx(Gl,{icon:_o,title:"Server Settings",description:"Local screenshot server configuration",iconColor:"bg-blue-500/10 text-blue-400"}),r.jsxs(nt,{className:"space-y-6",children:[r.jsx(pi,{label:"Server Port",type:"number",value:g.port,onChange:M=>A("port",parseInt(M.target.value,10)),hint:"Port for the local screenshot server"}),r.jsx(pi,{label:"Server Timeout",type:"number",value:g.timeout,onChange:M=>A("timeout",parseInt(M.target.value,10)),hint:"Request timeout in milliseconds"}),r.jsxs("div",{className:"pt-4 border-t border-slate-700/50 flex items-center gap-2",children:[r.jsx("span",{className:"text-sm text-slate-500",children:"Config source:"}),r.jsx(mu,{source:u?.server||"default"})]})]})]}),p==="build"&&r.jsxs(lt,{hover:!1,children:[r.jsx(Gl,{icon:Uo,title:"Build Settings",description:"Configure build naming and environment",iconColor:"bg-purple-500/10 text-purple-400"}),r.jsxs(nt,{className:"space-y-6",children:[r.jsx(pi,{label:"Build Name Template",type:"text",value:g.buildName,onChange:M=>A("buildName",M.target.value),hint:"Template for build names (use {timestamp} for current time)"}),r.jsx(cv,{label:"Environment",value:g.environment,onChange:M=>A("environment",M.target.value),hint:"Target environment for builds",options:[{value:"test",label:"Test"},{value:"development",label:"Development"},{value:"staging",label:"Staging"},{value:"production",label:"Production"}]}),r.jsxs("div",{className:"pt-4 border-t border-slate-700/50 flex items-center gap-2",children:[r.jsx("span",{className:"text-sm text-slate-500",children:"Config source:"}),r.jsx(mu,{source:u?.build||"default"})]})]})]}),y&&r.jsx("div",{className:"fixed bottom-6 right-6 left-6 md:left-auto md:w-auto",children:r.jsxs("div",{className:"bg-slate-800 border border-slate-700 rounded-xl shadow-2xl p-4 flex items-center gap-4",children:[r.jsx("span",{className:"text-sm text-slate-400 hidden md:inline",children:"Unsaved changes"}),r.jsxs("div",{className:"flex gap-3 flex-1 md:flex-initial",children:[r.jsx(Ke,{variant:"ghost",onClick:B,disabled:o,className:"flex-1 md:flex-initial",children:"Reset"}),r.jsx(Ke,{variant:"primary",onClick:V,loading:o,icon:Yl,className:"flex-1 md:flex-initial",children:"Save Changes"})]})]})})]})}function Jv(){let{data:n,isLoading:u,error:c,refetch:o}=Zv(),h=Xv(),{addToast:g}=Zl(),v=m.useCallback((y,x)=>{h.mutate(y,{onSuccess:()=>{x(),g("Settings saved successfully!","success")},onError:p=>{g(`Failed to save settings: ${p.message}`,"error")}})},[h,g]);return u?r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx(ut,{variant:"heading",className:"w-32 mb-2"}),r.jsx(ut,{variant:"text",className:"w-64"})]}),r.jsx(ut,{variant:"text",className:"w-96 h-10"}),r.jsx(Vl,{})]}):c?r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold text-white",children:"Settings"}),r.jsx("p",{className:"text-slate-400 mt-1",children:"Configure your Vizzly local development server"})]}),r.jsxs(hu,{variant:"danger",title:"Failed to load settings",dismissible:!0,onDismiss:()=>o(),children:[c.message,r.jsx(Ke,{variant:"danger",size:"sm",onClick:()=>o(),className:"mt-3",children:"Retry"})]})]}):r.jsxs("div",{className:"space-y-6 pb-24",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold text-white",children:"Settings"}),r.jsx("p",{className:"text-slate-400 mt-1",children:"Configure your Vizzly local development server"})]}),r.jsx(Kv,{config:n?.config,sources:n?.sources,onSave:v,isSaving:h.isPending},JSON.stringify(n?.config))]})}function Ho(){return ma({queryKey:Te.authStatus(),queryFn:hi.getStatus,staleTime:30*1e3})}function $v(){return Qt({mutationFn:hi.initiateLogin})}function Fv(){let n=Lt();return Qt({mutationFn:u=>hi.pollAuthorization(u),onSuccess:u=>{u.status==="complete"&&(n.invalidateQueries({queryKey:Te.auth}),n.invalidateQueries({queryKey:Te.cloud}))}})}function Wv(){let n=Lt();return Qt({mutationFn:hi.logout,onSuccess:()=>{n.invalidateQueries({queryKey:Te.auth}),n.invalidateQueries({queryKey:Te.cloud})}})}function Iv(n={}){return ma({queryKey:Te.projects(),queryFn:mi.list,staleTime:60*1e3,...n})}function Pv(n,u,c={}){return ma({queryKey:Te.builds(n,u),queryFn:()=>mi.getBuilds(n,u,{limit:20}),enabled:!!(n&&u),staleTime:30*1e3,...c})}function e1(){let n=Lt();return Qt({mutationFn:({buildId:u,organizationSlug:c,projectSlug:o})=>un.downloadBaselines(u,c,o),onSuccess:()=>{n.invalidateQueries({queryKey:Te.tdd})}})}function t1(n={}){return ma({queryKey:[...Te.projects(),"mappings"],queryFn:mi.listMappings,staleTime:60*1e3,...n})}function l1(){let n=Lt();return Qt({mutationFn:u=>mi.deleteMapping(u),onSuccess:()=>{n.invalidateQueries({queryKey:Te.projects()})}})}function a1({onComplete:n}){let[u,c]=m.useState(null),[o,h]=m.useState(null),g=$v(),v=Fv(),{addToast:y}=Zl();m.useEffect(()=>{async function p(){try{let N=await g.mutateAsync();c(N)}catch(N){h(N.message),y(`Failed to start login: ${N.message}`,"error")}}p()},[]);async function x(){if(u?.deviceCode){h(null);try{let p=await v.mutateAsync(u.deviceCode);p.status==="complete"?(y("Login successful!","success"),n?.()):p.status==="pending"?y("Still waiting for authorization...","info"):h("Unexpected response from server")}catch(p){h(p.message),y(`Check failed: ${p.message}`,"error")}}}return o?r.jsx(hu,{variant:"danger",title:"Login Error",children:o}):u?r.jsx(lt,{hover:!1,children:r.jsxs(nt,{className:"text-center py-8",children:[r.jsx("h3",{className:"text-xl font-semibold text-white mb-6",children:"Sign in to Vizzly"}),r.jsxs("div",{className:"bg-slate-900/50 rounded-xl p-6 mb-6 border border-slate-700/50 max-w-sm mx-auto",children:[r.jsx("p",{className:"text-sm text-slate-400 mb-4",children:"Click below to authorize:"}),r.jsx("a",{href:u.verificationUriComplete||u.verificationUri,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-6 py-3 bg-amber-500 hover:bg-amber-400 text-slate-900 font-medium rounded-lg transition-colors mb-4",children:"Open Authorization Page"}),r.jsxs("div",{className:"mt-4 pt-4 border-t border-slate-700/50",children:[r.jsx("p",{className:"text-xs text-slate-500 mb-2",children:"Or enter this code manually:"}),r.jsx("div",{className:"text-2xl font-mono font-bold text-amber-400 tracking-wider",children:u.userCode})]})]}),r.jsx("p",{className:"text-sm text-slate-400 mb-4",children:"After authorizing in your browser, click the button below to complete sign in."}),r.jsx(Ke,{variant:"secondary",onClick:x,loading:v.isPending,children:"Check Status"})]})}):r.jsxs("div",{className:"flex flex-col items-center justify-center py-12",children:[r.jsx(fn,{size:"lg",className:"text-amber-400 mb-4"}),r.jsx("p",{className:"text-slate-400",children:"Starting login flow..."})]})}function n1(){let[n,u]=m.useState(!1),c=Lt(),{data:o,isLoading:h}=Ho(),g=Wv(),{addToast:v}=Zl(),y=o?.user,x=o?.authenticated,p=m.useCallback(async()=>{try{await g.mutateAsync(),v("Logged out successfully","success")}catch(A){v(`Logout failed: ${A.message}`,"error")}},[g,v]),N=m.useCallback(()=>{u(!1),c.invalidateQueries({queryKey:Te.auth})},[c]);return h?r.jsx(Vl,{}):n?r.jsxs("div",{className:"space-y-4",children:[r.jsx(Ke,{variant:"ghost",size:"sm",onClick:()=>u(!1),children:"← Back"}),r.jsx(a1,{onComplete:N})]}):x?r.jsx(lt,{hover:!1,children:r.jsx(nt,{children:r.jsxs("div",{className:"flex items-start justify-between",children:[r.jsxs("div",{className:"flex items-start gap-4",children:[r.jsx("div",{className:"w-12 h-12 bg-amber-500 rounded-full flex items-center justify-center",children:r.jsx(fu,{className:"w-7 h-7 text-slate-900"})}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-lg font-semibold text-white",children:y?.name||"User"}),r.jsx("p",{className:"text-sm text-slate-400",children:y?.email}),y?.organizationName&&r.jsx(on,{variant:"default",className:"mt-2",children:y.organizationName})]})]}),r.jsx(Ke,{variant:"ghost",onClick:p,loading:g.isPending,icon:mg,children:"Sign Out"})]})})}):r.jsx(lt,{hover:!1,children:r.jsxs(nt,{className:"text-center py-12",children:[r.jsx("div",{className:"w-16 h-16 rounded-2xl bg-slate-700/50 flex items-center justify-center mx-auto mb-4",children:r.jsx(fu,{className:"w-8 h-8 text-slate-400"})}),r.jsx("h3",{className:"text-lg font-semibold text-white mb-2",children:"Not signed in"}),r.jsx("p",{className:"text-slate-400 mb-6 max-w-sm mx-auto",children:"Sign in to access projects and team features"}),r.jsx(Ke,{variant:"primary",onClick:()=>u(!0),icon:Ro,children:"Sign In"})]})})}function i1({mappings:n,onDelete:u,deleting:c}){let{addToast:o,confirm:h}=Zl(),g=m.useCallback(async v=>{if(await h(`Remove project mapping for ${v}?`,"This will not delete any files, only the project association."))try{await u(v),o("Mapping removed successfully","success")}catch(x){o(`Failed to remove mapping: ${x.message}`,"error")}},[u,o,h]);return n.length===0?r.jsx(ya,{icon:cn,title:"No project mappings",description:"Link a directory to a Vizzly project using the CLI.",action:r.jsx("div",{className:"bg-slate-900/50 border border-slate-700/50 rounded-lg p-4 max-w-md mx-auto",children:r.jsx("code",{className:"text-sm text-amber-400 font-mono",children:"vizzly project:select"})})}):r.jsx("div",{className:"overflow-x-auto",children:r.jsxs("table",{className:"vz-table",children:[r.jsx("thead",{children:r.jsxs("tr",{children:[r.jsx("th",{children:"Directory"}),r.jsx("th",{children:"Project"}),r.jsx("th",{children:"Organization"}),r.jsx("th",{className:"text-right",children:"Actions"})]})}),r.jsx("tbody",{children:n.map((v,y)=>r.jsxs("tr",{children:[r.jsx("td",{className:"font-mono text-sm",children:v.directory}),r.jsx("td",{className:"text-white",children:v.projectName||v.projectSlug}),r.jsx("td",{children:v.organizationSlug}),r.jsx("td",{className:"text-right",children:r.jsx(Ke,{variant:"danger",size:"sm",onClick:()=>g(v.directory),disabled:c,icon:nv,className:"!p-2"})})]},y))})]})})}function s1(){let{data:n,isLoading:u,refetch:c}=t1(),o=l1(),h=n?.mappings||[],g=m.useCallback(async v=>{await o.mutateAsync(v)},[o]);return u?r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx(ut,{variant:"heading",className:"w-32 mb-2"}),r.jsx(ut,{variant:"text",className:"w-64"})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[r.jsx("div",{className:"lg:col-span-2",children:r.jsx(Vl,{})}),r.jsx(Vl,{})]}),r.jsx(Vl,{})]}):r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold text-white",children:"Projects"}),r.jsx("p",{className:"text-slate-400 mt-1",children:"Manage your Vizzly account and directory mappings"})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[r.jsx("div",{className:"lg:col-span-2",children:r.jsx(n1,{})}),r.jsxs(lt,{hover:!1,children:[r.jsx(Gl,{title:"Quick Stats"}),r.jsx(nt,{children:r.jsxs("div",{className:"flex justify-between items-center",children:[r.jsx("span",{className:"text-slate-400",children:"Project Mappings"}),r.jsx("span",{className:"text-2xl font-semibold font-mono text-white",children:h.length})]})})]})]}),r.jsxs(lt,{hover:!1,children:[r.jsx(Gl,{icon:cn,title:"Project Mappings",iconColor:"bg-amber-500/10 text-amber-400",actions:r.jsx(Ke,{variant:"ghost",size:"sm",onClick:()=>c(),icon:fl,children:"Refresh"})}),r.jsx(nt,{padding:"p-0",children:r.jsx(i1,{mappings:h,onDelete:g,deleting:o.isPending})})]})]})}function u1({status:n}){let u={passed:{variant:"success",icon:Yl},completed:{variant:"success",icon:Yl},failed:{variant:"danger",icon:du},pending:{variant:"warning",icon:vi},processing:{variant:"info",icon:fl}},c=u[n]||u.pending;return r.jsx(on,{variant:c.variant,dot:!0,pulseDot:n==="processing",children:n})}function r1(n){let u=Math.floor((new Date-n)/1e3);return u<60?"just now":u<3600?`${Math.floor(u/60)}m ago`:u<86400?`${Math.floor(u/3600)}h ago`:u<604800?`${Math.floor(u/86400)}d ago`:n.toLocaleDateString()}function c1({build:n,project:u,onDownload:c,downloading:o}){let h=new Date(n.createdAt||n.created_at),g=r1(h);return r.jsxs("div",{className:"flex items-center justify-between p-4 vz-card",children:[r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("h4",{className:"text-sm font-medium text-white truncate",children:n.name||"Unnamed build"}),r.jsx(u1,{status:n.status})]}),r.jsxs("div",{className:"flex items-center gap-4 mt-2 text-xs text-slate-400",children:[r.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[r.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-slate-500"}),n.branch||"main"]}),r.jsx("span",{children:g}),n.screenshot_count>0&&r.jsxs("span",{children:[n.screenshot_count," screenshots"]})]})]}),r.jsx(Ke,{variant:"ghost",size:"sm",onClick:()=>c(n,u),loading:o,icon:dg,title:"Download baselines from this build"})]})}function o1({project:n,onExpand:u,expanded:c,onDownload:o,downloadingBuildId:h}){let{data:g,isLoading:v}=Pv(c?n.organizationSlug:null,c?n.slug:null),y=g?.builds||[];return r.jsxs(lt,{hover:!1,children:[r.jsxs("button",{onClick:()=>u(n.organizationSlug,n.slug),className:"w-full flex items-center justify-between p-5 text-left hover:bg-white/[0.02] transition-colors",children:[r.jsxs("div",{className:"flex items-center gap-4",children:[r.jsx("div",{className:"w-10 h-10 rounded-lg bg-amber-500/10 flex items-center justify-center",children:r.jsx(cn,{className:"w-5 h-5 text-amber-400"})}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-base font-semibold text-white",children:n.name||n.slug}),r.jsxs("p",{className:"text-sm text-slate-400 mt-0.5",children:[n.organizationSlug," / ",n.slug]})]})]}),r.jsxs("div",{className:"flex items-center gap-3",children:[v&&r.jsx(fn,{size:"sm",className:"text-amber-400"}),c?r.jsx(uu,{className:"w-5 h-5 text-slate-400"}):r.jsx(ru,{className:"w-5 h-5 text-slate-400"})]})]}),c&&r.jsx(nt,{padding:"p-4",className:"bg-slate-900/30 border-t border-slate-700/50",children:v?r.jsxs("div",{className:"flex flex-col items-center justify-center py-8",children:[r.jsx(fn,{size:"md",className:"text-amber-400 mb-3"}),r.jsx("p",{className:"text-sm text-slate-400",children:"Loading builds..."})]}):y&&y.length>0?r.jsx("div",{className:"space-y-3",children:y.map((x,p)=>r.jsx(c1,{build:x,project:n,onDownload:o,downloading:h===x.id},x.id||p))}):r.jsx(ya,{icon:vi,title:"No builds yet",description:r.jsxs(r.Fragment,{children:["Run ",r.jsx("code",{className:"text-amber-400",children:"vizzly run"})," to create your first build"]})})})]})}function f1({org:n,expandedProjects:u,onExpand:c,onDownload:o,downloadingBuildId:h}){return r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("div",{className:"w-8 h-8 rounded-lg bg-slate-700/50 flex items-center justify-center",children:r.jsx(Ng,{className:"w-4 h-4 text-slate-400"})}),r.jsx("h2",{className:"text-lg font-semibold text-white",children:n.name}),r.jsxs(on,{variant:"default",children:[n.projects.length," project",n.projects.length!==1?"s":""]})]}),r.jsx("div",{className:"space-y-3 pl-11",children:n.projects.map(g=>{let v=`${g.organizationSlug}/${g.slug}`;return r.jsx(o1,{project:g,expanded:u[v],onExpand:c,onDownload:o,downloadingBuildId:h},v)})})]})}function d1({onLogin:n}){return r.jsx(lt,{hover:!1,children:r.jsxs(nt,{className:"text-center py-12",children:[r.jsx("div",{className:"w-16 h-16 rounded-2xl bg-slate-700/50 flex items-center justify-center mx-auto mb-4",children:r.jsx(fu,{className:"w-8 h-8 text-slate-400"})}),r.jsx("h3",{className:"text-xl font-semibold text-white mb-2",children:"Sign in required"}),r.jsx("p",{className:"text-slate-400 mb-6 max-w-md mx-auto",children:"Sign in to your Vizzly account to browse your projects and download baselines from cloud builds."}),r.jsx(Ke,{variant:"primary",onClick:n,icon:Ro,children:"Sign In"})]})})}function h1(){let[n,u]=m.useState({}),[c,o]=m.useState(null),{addToast:h}=Zl(),{data:g,isLoading:v}=Ho(),{data:y,isLoading:x,refetch:p}=Iv(),N=e1(),A=g?.authenticated,B=m.useMemo(()=>{let q=y?.projects||[],L={};for(let $ of q){let k=$.organizationSlug||"unknown";L[k]||(L[k]={slug:k,name:$.organizationName||k,projects:[]}),L[k].projects.push($)}return Object.values(L)},[y?.projects]),V=m.useCallback((q,L)=>{let $=`${q}/${L}`;u(k=>({...k,[$]:!k[$]}))},[]),H=m.useCallback((q,L)=>{o(q.id),N.mutate({buildId:q.id,organizationSlug:L?.organizationSlug,projectSlug:L?.slug},{onSuccess:()=>{h(`Baselines downloaded from "${q.name||q.id}"`,"success"),o(null)},onError:$=>{h(`Failed to download baselines: ${$.message}`,"error"),o(null)}})},[N,h]),M=m.useCallback(()=>{window.location.href="/projects"},[]);return x||v?r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsx(ut,{variant:"heading",className:"w-40 mb-2"}),r.jsx(ut,{variant:"text",className:"w-72"})]}),r.jsx(ut,{variant:"button"})]}),r.jsx(Vl,{}),r.jsx(Vl,{})]}):r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold text-white",children:"Remote Builds"}),r.jsx("p",{className:"text-slate-400 mt-1",children:"Browse your cloud builds and download baselines for local TDD"})]}),r.jsx(Ke,{variant:"secondary",onClick:()=>p(),icon:fl,children:"Refresh"})]}),A?B.length===0?r.jsx(lt,{hover:!1,children:r.jsx(nt,{children:r.jsx(ya,{icon:cn,title:"No projects found",description:"You don't have any Vizzly projects yet. Create a project in the Vizzly dashboard to get started.",action:r.jsx("a",{href:"https://app.vizzly.dev",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2",children:r.jsx(Ke,{variant:"secondary",icon:ru,iconPosition:"right",children:"Open Vizzly Dashboard"})})})})}):r.jsx("div",{className:"space-y-8",children:B.map(q=>r.jsx(f1,{org:q,expandedProjects:n,onExpand:V,onDownload:H,downloadingBuildId:c},q.slug))}):r.jsx(d1,{onLogin:M})]})}function m1(n,u){let c=[];if(u==="shell")return n.split(`
29
+ `).forEach((v,y)=>{let x=n.split(`
30
+ `).slice(0,y).join(`
31
+ `).length+(y>0?1:0);v.trim().startsWith("#")?c.push({type:"comment",start:x,end:x+v.length}):(v.trim().startsWith("npm")||v.trim().startsWith("npx"))&&c.push({type:"command",start:x,end:x+v.length})}),c;[{type:"comment",regex:/\/\/.*$/gm},{type:"comment",regex:/\/\*[\s\S]*?\*\//g},{type:"string",regex:/'([^'\\]|\\.)*'/g},{type:"string",regex:/"([^"\\]|\\.)*"/g},{type:"string",regex:/`([^`\\]|\\.)*`/g},{type:"keyword",regex:/\b(import|export|from|const|let|var|function|class|if|else|return|await|async|test|it|describe|expect|func|let|class|import|require|RSpec|do|end|def|Vizzly)\b/g},{type:"function",regex:/\b([a-zA-Z_][a-zA-Z0-9_]*)\s*\(/g},{type:"number",regex:/\b\d+\.?\d*\b/g}].forEach(({type:v,regex:y})=>{let x;for(;(x=y.exec(n))!==null;)c.push({type:v,start:x.index,end:x.index+x[0].length})}),c.sort((v,y)=>v.start-y.start);let h=[],g=0;return c.forEach(v=>{v.start>=g&&(h.push(v),g=v.end)}),h}function g1({code:n,language:u="javascript"}){let c=m.useRef(null),o=u==="shell"||n.trim().startsWith("#")||n.trim().startsWith("npm");return m.useEffect(()=>{if(typeof window>"u"||!window.CSS?.highlights||!c.current)return;let h=c.current.firstChild;if(!h||h.nodeType!==window.Node.TEXT_NODE)return;let v=m1(n,o?"shell":u).map(p=>{let N=new window.Range;return N.setStart(h,p.start),N.setEnd(h,p.end),{type:p.type,range:N}}),y=new Map;v.forEach(({type:p,range:N})=>{y.has(p)||y.set(p,[]),y.get(p).push(N)});let x=new Map;for(let[p,N]of y){let A=new window.Highlight(...N);x.set(p,A),window.CSS.highlights.set(`code-${p}`,A)}return()=>{for(let[p]of x)window.CSS.highlights.delete(`code-${p}`)}},[n,u,o]),r.jsx("pre",{className:"bg-slate-950 rounded-lg p-4 overflow-x-auto text-sm",children:r.jsx("code",{ref:c,className:"font-mono text-slate-300 block whitespace-pre",children:n})})}let Qo=[{id:"playwright",name:"Playwright",code:`import { vizzlyScreenshot } from '@vizzly-testing/cli/client';
32
+
33
+ test('homepage', async ({ page }) => {
34
+ await page.goto('/');
35
+ const screenshot = await page.screenshot();
36
+ await vizzlyScreenshot('homepage', screenshot);
37
+ });`},{id:"vitest",name:"Vitest",code:`// Uses native Vitest browser mode API
38
+ import { expect, test } from 'vitest';
39
+ import { page } from '@vitest/browser/context';
40
+
41
+ test('homepage', async () => {
42
+ await page.goto('/');
43
+ await expect(page).toMatchScreenshot('homepage.png');
44
+ });`},{id:"cypress",name:"Cypress",code:`import { vizzlyScreenshot } from '@vizzly-testing/cli/client';
45
+
46
+ it('homepage', () => {
47
+ cy.visit('/');
48
+ cy.screenshot().then((screenshot) => {
49
+ vizzlyScreenshot('homepage', screenshot);
50
+ });
51
+ });`},{id:"puppeteer",name:"Puppeteer",code:`import { vizzlyScreenshot } from '@vizzly-testing/cli/client';
52
+
53
+ test('homepage', async () => {
54
+ await page.goto('http://localhost:3000');
55
+ const screenshot = await page.screenshot();
56
+ await vizzlyScreenshot('homepage', screenshot);
57
+ });`},{id:"ruby",name:"Ruby",code:`require 'vizzly'
58
+
59
+ RSpec.describe 'Homepage' do
60
+ it 'looks correct' do
61
+ visit '/'
62
+ screenshot = page.driver.browser.screenshot_as(:png)
63
+ Vizzly.screenshot('homepage', screenshot)
64
+ end
65
+ end`},{id:"ios",name:"iOS",code:`import XCTest
66
+ import Vizzly
67
+
68
+ class VisualTests: XCTestCase {
69
+ func testHomepage() {
70
+ let app = XCUIApplication()
71
+ app.launch()
72
+
73
+ let screenshot = app.screenshot().pngRepresentation
74
+ Vizzly.screenshot("homepage", screenshot)
75
+ }
76
+ }`},{id:"storybook",name:"Storybook",code:`# No code changes needed!
77
+ # Just run the CLI against your Storybook build:
78
+
79
+ npm run build-storybook
80
+ npx vizzly storybook ./storybook-static`}];function ji(){let[n,u]=m.useState("playwright"),c=Qo.find(o=>o.id===n);return r.jsx("div",{className:"flex flex-col items-center justify-center py-12 px-6",children:r.jsxs("div",{className:"max-w-2xl w-full",children:[r.jsxs("div",{className:"text-center mb-8",children:[r.jsx("div",{className:"w-16 h-16 rounded-2xl bg-amber-500/10 flex items-center justify-center mx-auto mb-5",children:r.jsx(vi,{className:"w-8 h-8 text-amber-400"})}),r.jsx("h1",{className:"text-2xl font-bold text-white mb-2",children:"Waiting for Screenshots"}),r.jsx("p",{className:"text-slate-400",children:"Run your tests to start capturing visual comparisons"}),r.jsxs("div",{className:"mt-4 flex items-center justify-center gap-2 text-sm text-slate-500",children:[r.jsx("div",{className:"w-2 h-2 rounded-full bg-amber-500 animate-pulse"}),"Listening for screenshots..."]})]}),r.jsxs("div",{className:"vz-card overflow-hidden",children:[r.jsx("div",{className:"border-b border-slate-700/50 px-4 pt-4",children:r.jsx("div",{className:"flex items-center gap-1 overflow-x-auto scrollbar-hide -mb-px",children:Qo.map(o=>r.jsx("button",{onClick:()=>u(o.id),className:`px-4 py-2.5 text-sm font-medium rounded-t-lg transition-colors whitespace-nowrap ${n===o.id?"bg-slate-800 text-white border-t border-x border-slate-700/50":"text-slate-400 hover:text-white hover:bg-slate-800/50"}`,children:o.name},o.id))})}),r.jsx("div",{className:"p-4",children:r.jsx(g1,{code:c?.code||""})})]}),r.jsx("div",{className:"mt-6 text-center",children:r.jsxs("a",{href:"https://docs.vizzly.dev/",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-sm text-slate-400 hover:text-amber-400 transition-colors",children:[r.jsx(Sg,{className:"w-4 h-4"}),"View full documentation"]})})]})})}function v1(){return r.jsxs("div",{className:"flex flex-col items-center justify-center py-32",children:[r.jsx(fn,{size:"lg",className:"text-amber-400 mb-4"}),r.jsx("p",{className:"text-slate-400 text-sm",children:"Loading report data..."})]})}function y1({error:n,onRetry:u}){return r.jsx(ya,{icon:dl,title:"Failed to load report",description:n||"An unexpected error occurred while loading the report data.",action:r.jsx("button",{onClick:u,className:"px-4 py-2 bg-amber-500 hover:bg-amber-400 text-slate-900 font-medium rounded-lg transition-colors",children:"Try Again"})})}function p1(){let[n,u]=di(),{data:c,isLoading:o,error:h,refetch:g}=gi(),v=n.startsWith("/comparison/"),y=n==="/stats"?"stats":n==="/settings"?"settings":n==="/projects"?"projects":n==="/builds"?"builds":"comparisons",x=N=>{u(N==="stats"?"/stats":N==="settings"?"/settings":N==="projects"?"/projects":N==="builds"?"/builds":"/")},p=n==="/settings"||n==="/projects"||n==="/builds";return o&&!c&&!p?r.jsx(dn,{currentView:y,onNavigate:x,loading:o,children:r.jsx(v1,{})}):h&&!c&&!p?r.jsx(dn,{currentView:y,onNavigate:x,loading:o,children:r.jsx(y1,{error:h.message,onRetry:g})}):!c&&!p?r.jsx(dn,{currentView:y,onNavigate:x,loading:o,children:r.jsx(ji,{})}):v?c?r.jsx(Oo,{children:r.jsx(va,{path:"/comparison/:id",children:r.jsx(Vv,{})})}):r.jsx(dn,{currentView:"comparisons",onNavigate:x,loading:o,children:r.jsx(ji,{})}):r.jsx(dn,{currentView:y,onNavigate:x,loading:o,children:r.jsxs(Oo,{children:[r.jsx(va,{path:"/stats",children:c?r.jsx(bv,{}):r.jsx(ji,{})}),r.jsx(va,{path:"/settings",children:r.jsx(Jv,{})}),r.jsx(va,{path:"/projects",children:r.jsx(s1,{})}),r.jsx(va,{path:"/builds",children:r.jsx(h1,{})}),r.jsx(va,{path:"/",children:c?r.jsx(Dv,{}):r.jsx(ji,{})})]})})}let ko=()=>{let n=document.getElementById("vizzly-reporter-root");n||(n=document.createElement("div"),n.id="vizzly-reporter-root",document.body.appendChild(n));let u=window.VIZZLY_REPORTER_DATA||null;tm.createRoot(n).render(r.jsx(m.StrictMode,{children:r.jsx(Em,{client:Bm,children:r.jsx(vv,{children:r.jsx(p1,{initialData:u})})})}))};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",ko):ko()})();