@xenon-device-management/xenon 2.11.1 → 2.13.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 (153) hide show
  1. package/lib/package.json +2 -2
  2. package/lib/public/assets/{AnnotationOverlay-Dt5AmXCR.js → AnnotationOverlay-CzbFYtPI.js} +1 -1
  3. package/lib/public/assets/{ApiKeyGate-CS05jXd7.js → ApiKeyGate-CA5KFHHJ.js} +1 -1
  4. package/lib/public/assets/{BugReportButton-ejWk5lof.js → BugReportButton-D-DSGg8C.js} +1 -1
  5. package/lib/public/assets/DeviceMosaicView-paDEFU4B.js +2 -0
  6. package/lib/public/assets/{EmptyState-DyojFa86.js → EmptyState-BE_5f8Vw.js} +1 -1
  7. package/lib/public/assets/{FieldGroup-Dm-U3Ucr.js → FieldGroup-DqMf7Rf3.js} +1 -1
  8. package/lib/public/assets/{FilterMenu-B3hgDfy_.js → FilterMenu-BQY75Su3.js} +1 -1
  9. package/lib/public/assets/{Menu-DFNsTx2i.js → Menu-BiW3os9u.js} +1 -1
  10. package/lib/public/assets/{Modal-BdWYrwfK.js → Modal-DfawTxih.js} +1 -1
  11. package/lib/public/assets/RecordingPage-BvemyRiy.js +1 -0
  12. package/lib/public/assets/{RecordingsPage-FAUS-RwG.js → RecordingsPage-CXfw7wpd.js} +2 -2
  13. package/lib/public/assets/{SegmentedControl-EBzIUjnM.js → SegmentedControl-B7m9kpom.js} +1 -1
  14. package/lib/public/assets/{SettingCard-BQ8wMHrz.js → SettingCard-Cw6lDD0l.js} +1 -1
  15. package/lib/public/assets/{Table-DDahAwGb.js → Table-DlEuFgv-.js} +1 -1
  16. package/lib/public/assets/{activity-CFEfukVD.js → activity-CnLvNwae.js} +1 -1
  17. package/lib/public/assets/{ai-settings-iPPNZMnS.js → ai-settings-D7Te8o-a.js} +2 -2
  18. package/lib/public/assets/{api-keys-DS979X_e.js → api-keys-DphSVzBr.js} +1 -1
  19. package/lib/public/assets/{apps-DQnxhScG.js → apps-vUfu15lX.js} +3 -3
  20. package/lib/public/assets/{arrow-left-CIqcStpJ.js → arrow-left-CLQWAiCY.js} +1 -1
  21. package/lib/public/assets/{arrow-right-Pw0XgjBJ.js → arrow-right-K6A5e_Ee.js} +1 -1
  22. package/lib/public/assets/{arrow-up-right-DWaEiSQf.js → arrow-up-right-DUA_lq6f.js} +1 -1
  23. package/lib/public/assets/{auth-shell-DvJ8qKdR.js → auth-shell-BYRHcZd6.js} +2 -2
  24. package/lib/public/assets/{builds-page-BIWuhGph.js → builds-page-C0fTvIG8.js} +1 -1
  25. package/lib/public/assets/{button-B1XDl_TT.js → button-BxnHCCsX.js} +1 -1
  26. package/lib/public/assets/{calendar-BPrY2NZL.js → calendar-CqVsn28A.js} +1 -1
  27. package/lib/public/assets/{check-DjbzNVbd.js → check-R6V3bot0.js} +1 -1
  28. package/lib/public/assets/{chevron-right-J_WfelGu.js → chevron-right-BA2Fntu-.js} +1 -1
  29. package/lib/public/assets/{circle-check-CGwn46BE.js → circle-check-D4EzyGzs.js} +1 -1
  30. package/lib/public/assets/{circle-x-Rfn2Zmq3.js → circle-x-Cf6AF2B2.js} +1 -1
  31. package/lib/public/assets/{clock-BAD4KA9j.js → clock-EZfet0sS.js} +1 -1
  32. package/lib/public/assets/{copy-CcNlsrXH.js → copy-Bc6P8v9V.js} +1 -1
  33. package/lib/public/assets/device-explorer-BFXpRq6d.js +279 -0
  34. package/lib/public/assets/device-explorer-CHv1miyr.css +1 -0
  35. package/lib/public/assets/{download-CoBA2mT_.js → download-Bd8OGLzi.js} +1 -1
  36. package/lib/public/assets/{forgot-password-BrV3pKRK.js → forgot-password-CoE7Ugtx.js} +1 -1
  37. package/lib/public/assets/{index-DQa193-A.css → index-BTYMAqNW.css} +1 -1
  38. package/lib/public/assets/{index-BHI_dBXi.js → index-BiL0Enl_.js} +1 -1
  39. package/lib/public/assets/index-CHOr4JCs.js +219 -0
  40. package/lib/public/assets/{input-Bo2b9153.js → input-CJ8z3IO5.js} +1 -1
  41. package/lib/public/assets/{line-chart-X7ZCpjWB.js → line-chart-CPK0ObjV.js} +1 -1
  42. package/lib/public/assets/{list-checks-Cqso6ROH.js → list-checks-mXGHUVbB.js} +1 -1
  43. package/lib/public/assets/{lock-D9WyaPyU.js → lock-BSXM1xvq.js} +1 -1
  44. package/lib/public/assets/{login-DqIYeZ2q.js → login-Ct2iW066.js} +1 -1
  45. package/lib/public/assets/{maintenance-settings-C7pWE0--.js → maintenance-settings-DaOs00P6.js} +1 -1
  46. package/lib/public/assets/{monitor-ZC2MoScA.js → monitor-D8WQK8md.js} +1 -1
  47. package/lib/public/assets/{mouse-pointer-2-DXh-LIn9.js → mouse-pointer-2-Cw2tWzDX.js} +1 -1
  48. package/lib/public/assets/{network-CivILLOW.js → network-Ba_uFxWo.js} +1 -1
  49. package/lib/public/assets/{overview-ClDfJNL5.js → overview-CxrZ7_6k.js} +1 -1
  50. package/lib/public/assets/{page-header-CV-WOQ7B.js → page-header-Cm1XL49f.js} +1 -1
  51. package/lib/public/assets/play-C0CuKLXj.js +11 -0
  52. package/lib/public/assets/{plus-DOp8RUCs.js → plus-CIIvR_6Z.js} +1 -1
  53. package/lib/public/assets/{profile-page-Ckx1bcSx.js → profile-page-BZ_e-Bgw.js} +2 -2
  54. package/lib/public/assets/recording-group-store-BWeeNs2_.js +26 -0
  55. package/lib/public/assets/{reset-password-CZDSfFZ6.js → reset-password-lfNz8Rm1.js} +1 -1
  56. package/lib/public/assets/{runbook-page-BXe7SL5K.js → runbook-page-Cnec3VSx.js} +1 -1
  57. package/lib/public/assets/{select-Bo_2fqDM.js → select-CZuCnold.js} +1 -1
  58. package/lib/public/assets/{selector-detail-redirect-D_aNBNim.js → selector-detail-redirect-BG3pxFLw.js} +1 -1
  59. package/lib/public/assets/{selector-health-page-BP4XhSI4.js → selector-health-page-DsyL58tb.js} +2 -2
  60. package/lib/public/assets/{session-detail-page-DN8MPDsL.js → session-detail-page-ZZyGM413.js} +1 -1
  61. package/lib/public/assets/{settings-rFQ6qW9Q.js → settings-DGZ7B_AR.js} +1 -1
  62. package/lib/public/assets/{stat-tile-D8taj4dL.js → stat-tile-DFhv8JoI.js} +1 -1
  63. package/lib/public/assets/{tablet-Cz9pTLGh.js → tablet-68J5f6zh.js} +1 -1
  64. package/lib/public/assets/{teams-DkFhPU6N.js → teams-eHSyEpbD.js} +1 -1
  65. package/lib/public/assets/{trash-2-DMkIlO0b.js → trash-2-CcSsv4fS.js} +1 -1
  66. package/lib/public/assets/{upload-Dg76vQUo.js → upload-BYf26K71.js} +1 -1
  67. package/lib/public/assets/{use-builds-data-iSxxYh9G.js → use-builds-data-CHW-MhaP.js} +1 -1
  68. package/lib/public/assets/{use-password-reset-mode-DsNcDXiv.js → use-password-reset-mode-DozShXkk.js} +1 -1
  69. package/lib/public/assets/{users-BShiNYd9.js → users-BpYnpOl2.js} +1 -1
  70. package/lib/public/assets/{users-Bu1HulwN.js → users-CcSQRoK9.js} +1 -1
  71. package/lib/public/assets/{video-off-BJ_s_mLK.js → video-off-dFKgps73.js} +1 -1
  72. package/lib/public/assets/webhook-settings-DD1XjiOD.js +1 -0
  73. package/lib/public/assets/{zap-BXZlQKN8.js → zap-COC2tZaH.js} +1 -1
  74. package/lib/public/index.html +2 -2
  75. package/lib/src/app/apiErrors.js +118 -0
  76. package/lib/src/app/index.js +6 -1
  77. package/lib/src/app/openapi/control.yaml +3129 -0
  78. package/lib/src/app/openapi/grid.yaml +2295 -0
  79. package/lib/src/app/openapi/identity.yaml +2168 -0
  80. package/lib/src/app/openapi/platform.yaml +2885 -0
  81. package/lib/src/app/openapi/sessions.yaml +3784 -0
  82. package/lib/src/app/routers/bug-report.js +4 -1
  83. package/lib/src/app/routers/config.js +6 -107
  84. package/lib/src/app/routers/control.js +117 -59
  85. package/lib/src/app/routers/dashboard.js +13 -7
  86. package/lib/src/app/routers/grid.js +54 -14
  87. package/lib/src/app/routers/profile.js +27 -13
  88. package/lib/src/app/routers/recordings.js +11 -5
  89. package/lib/src/app/routers/reservation.js +63 -15
  90. package/lib/src/app/routers/users.js +4 -0
  91. package/lib/src/app/routers/webhook.js +17 -8
  92. package/lib/src/app/swagger.js +259 -177
  93. package/lib/src/data-service/device-service.js +4 -1
  94. package/lib/src/data-service/deviceFieldOwners.js +1 -0
  95. package/lib/src/device-managers/AndroidDeviceManager.js +5 -2
  96. package/lib/src/device-managers/iOSTracker.js +14 -1
  97. package/lib/src/device-managers/ios/IOSDiscoveryService.js +9 -5
  98. package/lib/src/device-managers/ios/WDAClient.js +32 -32
  99. package/lib/src/device-managers/ios/usbmuxd.js +46 -0
  100. package/lib/src/generated/client/edge.js +4 -3
  101. package/lib/src/generated/client/index-browser.js +1 -0
  102. package/lib/src/generated/client/index.d.ts +38 -0
  103. package/lib/src/generated/client/index.js +4 -3
  104. package/lib/src/generated/client/package.json +1 -1
  105. package/lib/src/generated/client/schema.prisma +2 -0
  106. package/lib/src/generated/client/wasm.js +1 -0
  107. package/lib/src/middleware/csrfMiddleware.js +13 -5
  108. package/lib/src/middleware/rateLimitMiddleware.js +19 -5
  109. package/lib/src/middleware/roleGuard.js +20 -0
  110. package/lib/src/services/AIService.js +13 -3
  111. package/lib/src/services/NotificationService.js +28 -28
  112. package/lib/src/services/bug-report/BugReportService.js +8 -2
  113. package/lib/src/services/lease/LeaseService.js +71 -20
  114. package/lib/src/services/omni-vision/OmniVisionService.js +14 -5
  115. package/lib/src/services/recording/RecordingOrchestrator.js +16 -2
  116. package/lib/test/helpers/expressRoutes.js +41 -0
  117. package/lib/test/integration/team-visibility-control.spec.js +2 -2
  118. package/lib/test/unit/access-scopes.spec.js +227 -0
  119. package/lib/test/unit/api-error-handling.spec.js +179 -0
  120. package/lib/test/unit/bug-report/route.spec.js +29 -0
  121. package/lib/test/unit/bug-report/service.spec.js +30 -0
  122. package/lib/test/unit/control-honest-answers.spec.js +134 -0
  123. package/lib/test/unit/device-allocation-routes.spec.js +232 -0
  124. package/lib/test/unit/healing-state-endpoints.spec.js +8 -5
  125. package/lib/test/unit/install-repository-app-team.spec.js +4 -1
  126. package/lib/test/unit/ios-usbmuxd-missing.spec.js +111 -0
  127. package/lib/test/unit/lease/LeaseService.spec.js +5 -4
  128. package/lib/test/unit/lease/lease-device-match.spec.js +161 -0
  129. package/lib/test/unit/lease/lease-session-ownership.spec.js +10 -9
  130. package/lib/test/unit/omni-vision-failures.spec.js +81 -0
  131. package/lib/test/unit/openapi-coverage.spec.js +114 -0
  132. package/lib/test/unit/profile-router.test.js +42 -0
  133. package/lib/test/unit/rateLimitMiddleware.test.js +49 -0
  134. package/lib/test/unit/recording-orchestrator.spec.js +80 -0
  135. package/lib/test/unit/recordings-library-routes.spec.js +37 -0
  136. package/lib/test/unit/reservation-team-visibility.spec.js +4 -3
  137. package/lib/test/unit/reset-link.test.js +2 -1
  138. package/lib/test/unit/stream-ticket-identity.spec.js +1 -1
  139. package/lib/test/unit/users-router.test.js +14 -1
  140. package/lib/test/unit/wda-client-failures.spec.js +90 -0
  141. package/lib/test/unit/webhook-delivery.spec.js +142 -0
  142. package/lib/tsconfig.tsbuildinfo +1 -1
  143. package/package.json +2 -2
  144. package/prisma/migrations/20261004120000_reservation_holder/migration.sql +2 -0
  145. package/prisma/schema.prisma +2 -0
  146. package/lib/public/assets/DeviceMosaicView-C9AypMcW.js +0 -2
  147. package/lib/public/assets/RecordingPage-FIRd8b5d.js +0 -11
  148. package/lib/public/assets/device-explorer-D2AqrrLN.css +0 -1
  149. package/lib/public/assets/device-explorer-Dl1QGKQN.js +0 -268
  150. package/lib/public/assets/index-DklX18ye.js +0 -219
  151. package/lib/public/assets/keycodes-B5mWBGMd.js +0 -26
  152. package/lib/public/assets/webhook-settings-CJxMc7-Q.js +0 -1
  153. package/lib/src/app/swagger-docs.js +0 -1701
@@ -1,219 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/overview-ClDfJNL5.js","assets/labels-C21SA4JG.js","assets/arrow-right-Pw0XgjBJ.js","assets/tablet-Cz9pTLGh.js","assets/monitor-ZC2MoScA.js","assets/activity-CFEfukVD.js","assets/page-header-CV-WOQ7B.js","assets/page-header-TkpFo69t.css","assets/device-explorer-Dl1QGKQN.js","assets/BugReportButton-ejWk5lof.js","assets/BugReportButton-CPBjfiv4.css","assets/keycodes-B5mWBGMd.js","assets/button-B1XDl_TT.js","assets/utils-CDN07tui.js","assets/button-yDi2prIR.css","assets/select-Bo_2fqDM.js","assets/select-_gbV-uJG.css","assets/Menu-DFNsTx2i.js","assets/index-BHI_dBXi.js","assets/check-DjbzNVbd.js","assets/Menu-BJJGF7ek.css","assets/Modal-BdWYrwfK.js","assets/Modal-CkhpaXeX.css","assets/FieldGroup-Dm-U3Ucr.js","assets/FieldGroup-trY-2qmW.css","assets/clock-BAD4KA9j.js","assets/plus-DOp8RUCs.js","assets/copy-CcNlsrXH.js","assets/SegmentedControl-EBzIUjnM.js","assets/SegmentedControl-lDNf6HQr.css","assets/Table-DDahAwGb.js","assets/Table-BIjXN_-_.css","assets/time-D-gjmE1o.js","assets/list-checks-Cqso6ROH.js","assets/chevron-right-J_WfelGu.js","assets/mouse-pointer-2-DXh-LIn9.js","assets/zap-BXZlQKN8.js","assets/circle-check-CGwn46BE.js","assets/circle-x-Rfn2Zmq3.js","assets/download-CoBA2mT_.js","assets/trash-2-DMkIlO0b.js","assets/upload-Dg76vQUo.js","assets/arrow-left-CIqcStpJ.js","assets/lock-D9WyaPyU.js","assets/FilterMenu-B3hgDfy_.js","assets/FilterMenu-D1i9jhjZ.css","assets/device-explorer-D2AqrrLN.css","assets/builds-page-BIWuhGph.js","assets/use-builds-data-iSxxYh9G.js","assets/input-Bo2b9153.js","assets/input-B5edaXfx.css","assets/stat-tile-D8taj4dL.js","assets/EmptyState-DyojFa86.js","assets/EmptyState-BSDHFxd1.css","assets/session-detail-page-DN8MPDsL.js","assets/arrow-up-right-DWaEiSQf.js","assets/line-chart-X7ZCpjWB.js","assets/line-chart-Bzzc3bMl.css","assets/video-off-BJ_s_mLK.js","assets/network-CivILLOW.js","assets/runbook-page-BXe7SL5K.js","assets/runbook-page-BFqSC-Ta.css","assets/apps-DQnxhScG.js","assets/apps-BQKfuN3J.css","assets/webhook-settings-CJxMc7-Q.js","assets/webhook-settings-CAfLaykw.css","assets/settings-Dep_3kbA.css","assets/settings-rFQ6qW9Q.js","assets/SettingCard-BQ8wMHrz.js","assets/SettingCard-CiKM8yKg.css","assets/calendar-BPrY2NZL.js","assets/ai-settings-iPPNZMnS.js","assets/maintenance-settings-C7pWE0--.js","assets/api-keys-DS979X_e.js","assets/teams-DkFhPU6N.js","assets/users-BShiNYd9.js","assets/selector-health-page-BP4XhSI4.js","assets/view-state-83Z1gFME.js","assets/selector-detail-redirect-D_aNBNim.js","assets/DeviceMosaicView-C9AypMcW.js","assets/AnnotationOverlay-Dt5AmXCR.js","assets/recordings-BWe1ydXm.js","assets/profile-page-Ckx1bcSx.js","assets/users-Bu1HulwN.js","assets/RecordingsPage-FAUS-RwG.js","assets/recordings-n-GTW3aT.js","assets/recordings-B2Am-bZy.css","assets/RecordingPage-FIRd8b5d.js","assets/login-DqIYeZ2q.js","assets/use-password-reset-mode-DsNcDXiv.js","assets/auth-shell-DvJ8qKdR.js","assets/forgot-password-BrV3pKRK.js","assets/reset-password-CZDSfFZ6.js"])))=>i.map(i=>d[i]);
2
- function Gf(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function gu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var vu={exports:{}},mr={};/*
3
- object-assign
4
- (c) Sindre Sorhus
5
- @license MIT
6
- */var Cl=Object.getOwnPropertySymbols,Yf=Object.prototype.hasOwnProperty,Xf=Object.prototype.propertyIsEnumerable;function Jf(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Zf(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(o){return t[o]});if(r.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(o){i[o]=o}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var wu=Zf()?Object.assign:function(e,t){for(var n,r=Jf(e),i,o=1;o<arguments.length;o++){n=Object(arguments[o]);for(var s in n)Yf.call(n,s)&&(r[s]=n[s]);if(Cl){i=Cl(n);for(var l=0;l<i.length;l++)Xf.call(n,i[l])&&(r[i[l]]=n[i[l]])}}return r},ku={exports:{}},M={};/** @license React v17.0.2
7
- * react.production.min.js
8
- *
9
- * Copyright (c) Facebook, Inc. and its affiliates.
10
- *
11
- * This source code is licensed under the MIT license found in the
12
- * LICENSE file in the root directory of this source tree.
13
- */var gs=wu,sn=60103,xu=60106;M.Fragment=60107;M.StrictMode=60108;M.Profiler=60114;var Eu=60109,_u=60110,Su=60112;M.Suspense=60113;var Cu=60115,Tu=60116;if(typeof Symbol=="function"&&Symbol.for){var Ce=Symbol.for;sn=Ce("react.element"),xu=Ce("react.portal"),M.Fragment=Ce("react.fragment"),M.StrictMode=Ce("react.strict_mode"),M.Profiler=Ce("react.profiler"),Eu=Ce("react.provider"),_u=Ce("react.context"),Su=Ce("react.forward_ref"),M.Suspense=Ce("react.suspense"),Cu=Ce("react.memo"),Tu=Ce("react.lazy")}var Tl=typeof Symbol=="function"&&Symbol.iterator;function ed(e){return e===null||typeof e!="object"?null:(e=Tl&&e[Tl]||e["@@iterator"],typeof e=="function"?e:null)}function yr(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Ru={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Pu={};function ln(e,t,n){this.props=e,this.context=t,this.refs=Pu,this.updater=n||Ru}ln.prototype.isReactComponent={};ln.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(yr(85));this.updater.enqueueSetState(this,e,t,"setState")};ln.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Nu(){}Nu.prototype=ln.prototype;function vs(e,t,n){this.props=e,this.context=t,this.refs=Pu,this.updater=n||Ru}var ws=vs.prototype=new Nu;ws.constructor=vs;gs(ws,ln.prototype);ws.isPureReactComponent=!0;var ks={current:null},Ou=Object.prototype.hasOwnProperty,Lu={key:!0,ref:!0,__self:!0,__source:!0};function ju(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)Ou.call(t,r)&&!Lu.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var a=Array(l),u=0;u<l;u++)a[u]=arguments[u+2];i.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)i[r]===void 0&&(i[r]=l[r]);return{$$typeof:sn,type:e,key:o,ref:s,props:i,_owner:ks.current}}function td(e,t){return{$$typeof:sn,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function xs(e){return typeof e=="object"&&e!==null&&e.$$typeof===sn}function nd(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Rl=/\/+/g;function qi(e,t){return typeof e=="object"&&e!==null&&e.key!=null?nd(""+e.key):t.toString(36)}function $r(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case sn:case xu:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+qi(s,0):r,Array.isArray(i)?(n="",e!=null&&(n=e.replace(Rl,"$&/")+"/"),$r(i,t,n,"",function(u){return u})):i!=null&&(xs(i)&&(i=td(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(Rl,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",Array.isArray(e))for(var l=0;l<e.length;l++){o=e[l];var a=r+qi(o,l);s+=$r(o,t,n,a,i)}else if(a=ed(e),typeof a=="function")for(e=a.call(e),l=0;!(o=e.next()).done;)o=o.value,a=r+qi(o,l++),s+=$r(o,t,n,a,i);else if(o==="object")throw t=""+e,Error(yr(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t));return s}function _r(e,t,n){if(e==null)return e;var r=[],i=0;return $r(e,r,"","",function(o){return t.call(n,o,i++)}),r}function rd(e){if(e._status===-1){var t=e._result;t=t(),e._status=0,e._result=t,t.then(function(n){e._status===0&&(n=n.default,e._status=1,e._result=n)},function(n){e._status===0&&(e._status=2,e._result=n)})}if(e._status===1)return e._result;throw e._result}var Au={current:null};function Ve(){var e=Au.current;if(e===null)throw Error(yr(321));return e}var id={ReactCurrentDispatcher:Au,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:ks,IsSomeRendererActing:{current:!1},assign:gs};M.Children={map:_r,forEach:function(e,t,n){_r(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return _r(e,function(){t++}),t},toArray:function(e){return _r(e,function(t){return t})||[]},only:function(e){if(!xs(e))throw Error(yr(143));return e}};M.Component=ln;M.PureComponent=vs;M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=id;M.cloneElement=function(e,t,n){if(e==null)throw Error(yr(267,e));var r=gs({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=ks.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)Ou.call(t,a)&&!Lu.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&l!==void 0?l[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){l=Array(a);for(var u=0;u<a;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:sn,type:e.type,key:i,ref:o,props:r,_owner:s}};M.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:_u,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:Eu,_context:e},e.Consumer=e};M.createElement=ju;M.createFactory=function(e){var t=ju.bind(null,e);return t.type=e,t};M.createRef=function(){return{current:null}};M.forwardRef=function(e){return{$$typeof:Su,render:e}};M.isValidElement=xs;M.lazy=function(e){return{$$typeof:Tu,_payload:{_status:-1,_result:e},_init:rd}};M.memo=function(e,t){return{$$typeof:Cu,type:e,compare:t===void 0?null:t}};M.useCallback=function(e,t){return Ve().useCallback(e,t)};M.useContext=function(e,t){return Ve().useContext(e,t)};M.useDebugValue=function(){};M.useEffect=function(e,t){return Ve().useEffect(e,t)};M.useImperativeHandle=function(e,t,n){return Ve().useImperativeHandle(e,t,n)};M.useLayoutEffect=function(e,t){return Ve().useLayoutEffect(e,t)};M.useMemo=function(e,t){return Ve().useMemo(e,t)};M.useReducer=function(e,t,n){return Ve().useReducer(e,t,n)};M.useRef=function(e){return Ve().useRef(e)};M.useState=function(e){return Ve().useState(e)};M.version="17.0.2";ku.exports=M;var y=ku.exports;const od=gu(y),sd=Gf({__proto__:null,default:od},[y]);/** @license React v17.0.2
14
- * react-jsx-runtime.production.min.js
15
- *
16
- * Copyright (c) Facebook, Inc. and its affiliates.
17
- *
18
- * This source code is licensed under the MIT license found in the
19
- * LICENSE file in the root directory of this source tree.
20
- */var ld=y,Iu=60103;mr.Fragment=60107;if(typeof Symbol=="function"&&Symbol.for){var Pl=Symbol.for;Iu=Pl("react.element"),mr.Fragment=Pl("react.fragment")}var ad=ld.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ud=Object.prototype.hasOwnProperty,cd={key:!0,ref:!0,__self:!0,__source:!0};function Du(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)ud.call(t,r)&&!cd.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Iu,type:e,key:o,ref:s,props:i,_owner:ad.current}}mr.jsx=Du;mr.jsxs=Du;vu.exports=mr;var p=vu.exports,Mu={exports:{}},Se={},$u={exports:{}},Uu={};/** @license React v0.20.2
21
- * scheduler.production.min.js
22
- *
23
- * Copyright (c) Facebook, Inc. and its affiliates.
24
- *
25
- * This source code is licensed under the MIT license found in the
26
- * LICENSE file in the root directory of this source tree.
27
- */(function(e){var t,n,r,i;if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}if(typeof window>"u"||typeof MessageChannel!="function"){var a=null,u=null,m=function(){if(a!==null)try{var C=e.unstable_now();a(!0,C),a=null}catch(j){throw setTimeout(m,0),j}};t=function(C){a!==null?setTimeout(t,0,C):(a=C,setTimeout(m,0))},n=function(C,j){u=setTimeout(C,j)},r=function(){clearTimeout(u)},e.unstable_shouldYield=function(){return!1},i=e.unstable_forceFrameRate=function(){}}else{var v=window.setTimeout,h=window.clearTimeout;if(typeof console<"u"){var E=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof E!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var x=!1,k=null,c=-1,f=5,d=0;e.unstable_shouldYield=function(){return e.unstable_now()>=d},i=function(){},e.unstable_forceFrameRate=function(C){0>C||125<C?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):f=0<C?Math.floor(1e3/C):5};var g=new MessageChannel,w=g.port2;g.port1.onmessage=function(){if(k!==null){var C=e.unstable_now();d=C+f;try{k(!0,C)?w.postMessage(null):(x=!1,k=null)}catch(j){throw w.postMessage(null),j}}else x=!1},t=function(C){k=C,x||(x=!0,w.postMessage(null))},n=function(C,j){c=v(function(){C(e.unstable_now())},j)},r=function(){h(c),c=-1}}function P(C,j){var I=C.length;C.push(j);e:for(;;){var H=I-1>>>1,ee=C[H];if(ee!==void 0&&0<A(ee,j))C[H]=j,C[I]=ee,I=H;else break e}}function S(C){return C=C[0],C===void 0?null:C}function O(C){var j=C[0];if(j!==void 0){var I=C.pop();if(I!==j){C[0]=I;e:for(var H=0,ee=C.length;H<ee;){var vt=2*(H+1)-1,wt=C[vt],vn=vt+1,It=C[vn];if(wt!==void 0&&0>A(wt,I))It!==void 0&&0>A(It,wt)?(C[H]=It,C[vn]=I,H=vn):(C[H]=wt,C[vt]=I,H=vt);else if(It!==void 0&&0>A(It,I))C[H]=It,C[vn]=I,H=vn;else break e}}return j}return null}function A(C,j){var I=C.sortIndex-j.sortIndex;return I!==0?I:C.id-j.id}var N=[],Z=[],zi=1,ge=null,ie=3,Er=!1,gt=!1,gn=!1;function bi(C){for(var j=S(Z);j!==null;){if(j.callback===null)O(Z);else if(j.startTime<=C)O(Z),j.sortIndex=j.expirationTime,P(N,j);else break;j=S(Z)}}function Fi(C){if(gn=!1,bi(C),!gt)if(S(N)!==null)gt=!0,t(Vi);else{var j=S(Z);j!==null&&n(Fi,j.startTime-C)}}function Vi(C,j){gt=!1,gn&&(gn=!1,r()),Er=!0;var I=ie;try{for(bi(j),ge=S(N);ge!==null&&(!(ge.expirationTime>j)||C&&!e.unstable_shouldYield());){var H=ge.callback;if(typeof H=="function"){ge.callback=null,ie=ge.priorityLevel;var ee=H(ge.expirationTime<=j);j=e.unstable_now(),typeof ee=="function"?ge.callback=ee:ge===S(N)&&O(N),bi(j)}else O(N);ge=S(N)}if(ge!==null)var vt=!0;else{var wt=S(Z);wt!==null&&n(Fi,wt.startTime-j),vt=!1}return vt}finally{ge=null,ie=I,Er=!1}}var Qf=i;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(C){C.callback=null},e.unstable_continueExecution=function(){gt||Er||(gt=!0,t(Vi))},e.unstable_getCurrentPriorityLevel=function(){return ie},e.unstable_getFirstCallbackNode=function(){return S(N)},e.unstable_next=function(C){switch(ie){case 1:case 2:case 3:var j=3;break;default:j=ie}var I=ie;ie=j;try{return C()}finally{ie=I}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=Qf,e.unstable_runWithPriority=function(C,j){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var I=ie;ie=C;try{return j()}finally{ie=I}},e.unstable_scheduleCallback=function(C,j,I){var H=e.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?H+I:H):I=H,C){case 1:var ee=-1;break;case 2:ee=250;break;case 5:ee=1073741823;break;case 4:ee=1e4;break;default:ee=5e3}return ee=I+ee,C={id:zi++,callback:j,priorityLevel:C,startTime:I,expirationTime:ee,sortIndex:-1},I>H?(C.sortIndex=I,P(Z,C),S(N)===null&&C===S(Z)&&(gn?r():gn=!0,n(Fi,I-H))):(C.sortIndex=ee,P(N,C),gt||Er||(gt=!0,t(Vi))),C},e.unstable_wrapCallback=function(C){var j=ie;return function(){var I=ie;ie=j;try{return C.apply(this,arguments)}finally{ie=I}}}})(Uu);$u.exports=Uu;var fd=$u.exports;/** @license React v17.0.2
28
- * react-dom.production.min.js
29
- *
30
- * Copyright (c) Facebook, Inc. and its affiliates.
31
- *
32
- * This source code is licensed under the MIT license found in the
33
- * LICENSE file in the root directory of this source tree.
34
- */var Ei=y,F=wu,J=fd;function _(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!Ei)throw Error(_(227));var Bu=new Set,Jn={};function Ot(e,t){tn(e,t),tn(e+"Capture",t)}function tn(e,t){for(Jn[e]=t,e=0;e<t.length;e++)Bu.add(t[e])}var Fe=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),dd=/^[: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]*$/,Nl=Object.prototype.hasOwnProperty,Ol={},Ll={};function pd(e){return Nl.call(Ll,e)?!0:Nl.call(Ol,e)?!1:dd.test(e)?Ll[e]=!0:(Ol[e]=!0,!1)}function hd(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function md(e,t,n,r){if(t===null||typeof t>"u"||hd(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ce(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var re={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){re[e]=new ce(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];re[t]=new ce(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){re[e]=new ce(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){re[e]=new ce(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){re[e]=new ce(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){re[e]=new ce(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){re[e]=new ce(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){re[e]=new ce(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){re[e]=new ce(e,5,!1,e.toLowerCase(),null,!1,!1)});var Es=/[\-:]([a-z])/g;function _s(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Es,_s);re[t]=new ce(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Es,_s);re[t]=new ce(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Es,_s);re[t]=new ce(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){re[e]=new ce(e,1,!1,e.toLowerCase(),null,!1,!1)});re.xlinkHref=new ce("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){re[e]=new ce(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ss(e,t,n,r){var i=re.hasOwnProperty(t)?re[t]:null,o=i!==null?i.type===0:r?!1:!(!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N");o||(md(t,n,i,r)&&(n=null),r||i===null?pd(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Lt=Ei.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,An=60103,xt=60106,Ke=60107,Cs=60108,zn=60114,Ts=60109,Rs=60110,_i=60112,bn=60113,Jr=60120,Si=60115,Ps=60116,Ns=60121,Os=60128,zu=60129,Ls=60130,xo=60131;if(typeof Symbol=="function"&&Symbol.for){var X=Symbol.for;An=X("react.element"),xt=X("react.portal"),Ke=X("react.fragment"),Cs=X("react.strict_mode"),zn=X("react.profiler"),Ts=X("react.provider"),Rs=X("react.context"),_i=X("react.forward_ref"),bn=X("react.suspense"),Jr=X("react.suspense_list"),Si=X("react.memo"),Ps=X("react.lazy"),Ns=X("react.block"),X("react.scope"),Os=X("react.opaque.id"),zu=X("react.debug_trace_mode"),Ls=X("react.offscreen"),xo=X("react.legacy_hidden")}var jl=typeof Symbol=="function"&&Symbol.iterator;function wn(e){return e===null||typeof e!="object"?null:(e=jl&&e[jl]||e["@@iterator"],typeof e=="function"?e:null)}var Wi;function In(e){if(Wi===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Wi=t&&t[1]||""}return`
35
- `+Wi+e}var Hi=!1;function Sr(e,t){if(!e||Hi)return"";Hi=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(a){var r=a}Reflect.construct(e,[],t)}else{try{t.call()}catch(a){r=a}e.call(t.prototype)}else{try{throw Error()}catch(a){r=a}e()}}catch(a){if(a&&r&&typeof a.stack=="string"){for(var i=a.stack.split(`
36
- `),o=r.stack.split(`
37
- `),s=i.length-1,l=o.length-1;1<=s&&0<=l&&i[s]!==o[l];)l--;for(;1<=s&&0<=l;s--,l--)if(i[s]!==o[l]){if(s!==1||l!==1)do if(s--,l--,0>l||i[s]!==o[l])return`
38
- `+i[s].replace(" at new "," at ");while(1<=s&&0<=l);break}}}finally{Hi=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?In(e):""}function yd(e){switch(e.tag){case 5:return In(e.type);case 16:return In("Lazy");case 13:return In("Suspense");case 19:return In("SuspenseList");case 0:case 2:case 15:return e=Sr(e.type,!1),e;case 11:return e=Sr(e.type.render,!1),e;case 22:return e=Sr(e.type._render,!1),e;case 1:return e=Sr(e.type,!0),e;default:return""}}function Wt(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ke:return"Fragment";case xt:return"Portal";case zn:return"Profiler";case Cs:return"StrictMode";case bn:return"Suspense";case Jr:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Rs:return(e.displayName||"Context")+".Consumer";case Ts:return(e._context.displayName||"Context")+".Provider";case _i:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case Si:return Wt(e.type);case Ns:return Wt(e._render);case Ps:t=e._payload,e=e._init;try{return Wt(e(t))}catch{}}return null}function at(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function bu(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function gd(e){var t=bu(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Cr(e){e._valueTracker||(e._valueTracker=gd(e))}function Fu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=bu(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Zr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Eo(e,t){var n=t.checked;return F({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Al(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=at(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Vu(e,t){t=t.checked,t!=null&&Ss(e,"checked",t,!1)}function _o(e,t){Vu(e,t);var n=at(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?So(e,t.type,n):t.hasOwnProperty("defaultValue")&&So(e,t.type,at(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Il(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function So(e,t,n){(t!=="number"||Zr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function vd(e){var t="";return Ei.Children.forEach(e,function(n){n!=null&&(t+=n)}),t}function Co(e,t){return e=F({children:void 0},t),(t=vd(t.children))&&(e.children=t),e}function Ht(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+at(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function To(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(_(91));return F({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Dl(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(_(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(_(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:at(n)}}function qu(e,t){var n=at(t.value),r=at(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Ml(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var Ro={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"};function Wu(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Po(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Wu(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Tr,Hu=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!==Ro.svg||"innerHTML"in e)e.innerHTML=t;else{for(Tr=Tr||document.createElement("div"),Tr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Tr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Zn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Fn={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},wd=["Webkit","ms","Moz","O"];Object.keys(Fn).forEach(function(e){wd.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Fn[t]=Fn[e]})});function Ku(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Fn.hasOwnProperty(e)&&Fn[e]?(""+t).trim():t+"px"}function Qu(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Ku(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var kd=F({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function No(e,t){if(t){if(kd[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(_(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(_(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(_(61))}if(t.style!=null&&typeof t.style!="object")throw Error(_(62))}}function Oo(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function js(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Lo=null,Kt=null,Qt=null;function $l(e){if(e=vr(e)){if(typeof Lo!="function")throw Error(_(280));var t=e.stateNode;t&&(t=Oi(t),Lo(e.stateNode,e.type,t))}}function Gu(e){Kt?Qt?Qt.push(e):Qt=[e]:Kt=e}function Yu(){if(Kt){var e=Kt,t=Qt;if(Qt=Kt=null,$l(e),t)for(e=0;e<t.length;e++)$l(t[e])}}function As(e,t){return e(t)}function Xu(e,t,n,r,i){return e(t,n,r,i)}function Is(){}var Ju=As,Et=!1,Ki=!1;function Ds(){(Kt!==null||Qt!==null)&&(Is(),Yu())}function xd(e,t,n){if(Ki)return e(t,n);Ki=!0;try{return Ju(e,t,n)}finally{Ki=!1,Ds()}}function er(e,t){var n=e.stateNode;if(n===null)return null;var r=Oi(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(_(231,t,typeof n));return n}var jo=!1;if(Fe)try{var kn={};Object.defineProperty(kn,"passive",{get:function(){jo=!0}}),window.addEventListener("test",kn,kn),window.removeEventListener("test",kn,kn)}catch{jo=!1}function Ed(e,t,n,r,i,o,s,l,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(m){this.onError(m)}}var Vn=!1,ei=null,ti=!1,Ao=null,_d={onError:function(e){Vn=!0,ei=e}};function Sd(e,t,n,r,i,o,s,l,a){Vn=!1,ei=null,Ed.apply(_d,arguments)}function Cd(e,t,n,r,i,o,s,l,a){if(Sd.apply(this,arguments),Vn){if(Vn){var u=ei;Vn=!1,ei=null}else throw Error(_(198));ti||(ti=!0,Ao=u)}}function jt(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&1026&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Zu(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 Ul(e){if(jt(e)!==e)throw Error(_(188))}function Td(e){var t=e.alternate;if(!t){if(t=jt(e),t===null)throw Error(_(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Ul(i),e;if(o===r)return Ul(i),t;o=o.sibling}throw Error(_(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s)throw Error(_(189))}}if(n.alternate!==r)throw Error(_(190))}if(n.tag!==3)throw Error(_(188));return n.stateNode.current===n?e:t}function ec(e){if(e=Td(e),!e)return null;for(var t=e;;){if(t.tag===5||t.tag===6)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Bl(e,t){for(var n=e.alternate;t!==null;){if(t===e||t===n)return!0;t=t.return}return!1}var tc,Ms,nc,rc,Io=!1,Ne=[],Je=null,Ze=null,et=null,tr=new Map,nr=new Map,xn=[],zl="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Do(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:n|16,nativeEvent:i,targetContainers:[r]}}function bl(e,t){switch(e){case"focusin":case"focusout":Je=null;break;case"dragenter":case"dragleave":Ze=null;break;case"mouseover":case"mouseout":et=null;break;case"pointerover":case"pointerout":tr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":nr.delete(t.pointerId)}}function En(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e=Do(t,n,r,i,o),t!==null&&(t=vr(t),t!==null&&Ms(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Rd(e,t,n,r,i){switch(t){case"focusin":return Je=En(Je,e,t,n,r,i),!0;case"dragenter":return Ze=En(Ze,e,t,n,r,i),!0;case"mouseover":return et=En(et,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return tr.set(o,En(tr.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,nr.set(o,En(nr.get(o)||null,e,t,n,r,i)),!0}return!1}function Pd(e){var t=_t(e.target);if(t!==null){var n=jt(t);if(n!==null){if(t=n.tag,t===13){if(t=Zu(n),t!==null){e.blockedOn=t,rc(e.lanePriority,function(){J.unstable_runWithPriority(e.priority,function(){nc(n)})});return}}else if(t===3&&n.stateNode.hydrate){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ur(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=zs(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null)return t=vr(n),t!==null&&Ms(t),e.blockedOn=n,!1;t.shift()}return!0}function Fl(e,t,n){Ur(e)&&n.delete(t)}function Nd(){for(Io=!1;0<Ne.length;){var e=Ne[0];if(e.blockedOn!==null){e=vr(e.blockedOn),e!==null&&tc(e);break}for(var t=e.targetContainers;0<t.length;){var n=zs(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null){e.blockedOn=n;break}t.shift()}e.blockedOn===null&&Ne.shift()}Je!==null&&Ur(Je)&&(Je=null),Ze!==null&&Ur(Ze)&&(Ze=null),et!==null&&Ur(et)&&(et=null),tr.forEach(Fl),nr.forEach(Fl)}function _n(e,t){e.blockedOn===t&&(e.blockedOn=null,Io||(Io=!0,J.unstable_scheduleCallback(J.unstable_NormalPriority,Nd)))}function ic(e){function t(i){return _n(i,e)}if(0<Ne.length){_n(Ne[0],e);for(var n=1;n<Ne.length;n++){var r=Ne[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Je!==null&&_n(Je,e),Ze!==null&&_n(Ze,e),et!==null&&_n(et,e),tr.forEach(t),nr.forEach(t),n=0;n<xn.length;n++)r=xn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<xn.length&&(n=xn[0],n.blockedOn===null);)Pd(n),n.blockedOn===null&&xn.shift()}function Rr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ut={animationend:Rr("Animation","AnimationEnd"),animationiteration:Rr("Animation","AnimationIteration"),animationstart:Rr("Animation","AnimationStart"),transitionend:Rr("Transition","TransitionEnd")},Qi={},oc={};Fe&&(oc=document.createElement("div").style,"AnimationEvent"in window||(delete Ut.animationend.animation,delete Ut.animationiteration.animation,delete Ut.animationstart.animation),"TransitionEvent"in window||delete Ut.transitionend.transition);function Ci(e){if(Qi[e])return Qi[e];if(!Ut[e])return e;var t=Ut[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in oc)return Qi[e]=t[n];return e}var sc=Ci("animationend"),lc=Ci("animationiteration"),ac=Ci("animationstart"),uc=Ci("transitionend"),cc=new Map,$s=new Map,Od=["abort","abort",sc,"animationEnd",lc,"animationIteration",ac,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",uc,"transitionEnd","waiting","waiting"];function Us(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),$s.set(r,t),cc.set(r,i),Ot(i,[r])}}var Ld=J.unstable_now;Ld();var U=8;function Mt(e){if(1&e)return U=15,1;if(2&e)return U=14,2;if(4&e)return U=13,4;var t=24&e;return t!==0?(U=12,t):e&32?(U=11,32):(t=192&e,t!==0?(U=10,t):e&256?(U=9,256):(t=3584&e,t!==0?(U=8,t):e&4096?(U=7,4096):(t=4186112&e,t!==0?(U=6,t):(t=62914560&e,t!==0?(U=5,t):e&67108864?(U=4,67108864):e&134217728?(U=3,134217728):(t=805306368&e,t!==0?(U=2,t):1073741824&e?(U=1,1073741824):(U=8,e))))))}function jd(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function Ad(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(_(358,e))}}function rr(e,t){var n=e.pendingLanes;if(n===0)return U=0;var r=0,i=0,o=e.expiredLanes,s=e.suspendedLanes,l=e.pingedLanes;if(o!==0)r=o,i=U=15;else if(o=n&134217727,o!==0){var a=o&~s;a!==0?(r=Mt(a),i=U):(l&=o,l!==0&&(r=Mt(l),i=U))}else o=n&~s,o!==0?(r=Mt(o),i=U):l!==0&&(r=Mt(l),i=U);if(r===0)return 0;if(r=31-ut(r),r=n&((0>r?0:1<<r)<<1)-1,t!==0&&t!==r&&!(t&s)){if(Mt(t),i<=U)return t;U=i}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-ut(t),i=1<<n,r|=e[n],t&=~i;return r}function fc(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function ni(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return e=$t(24&~t),e===0?ni(10,t):e;case 10:return e=$t(192&~t),e===0?ni(8,t):e;case 8:return e=$t(3584&~t),e===0&&(e=$t(4186112&~t),e===0&&(e=512)),e;case 2:return t=$t(805306368&~t),t===0&&(t=268435456),t}throw Error(_(358,e))}function $t(e){return e&-e}function Gi(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ti(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,e=e.eventTimes,t=31-ut(t),e[t]=n}var ut=Math.clz32?Math.clz32:Md,Id=Math.log,Dd=Math.LN2;function Md(e){return e===0?32:31-(Id(e)/Dd|0)|0}var $d=J.unstable_UserBlockingPriority,Ud=J.unstable_runWithPriority,Br=!0;function Bd(e,t,n,r){Et||Is();var i=Bs,o=Et;Et=!0;try{Xu(i,e,t,n,r)}finally{(Et=o)||Ds()}}function zd(e,t,n,r){Ud($d,Bs.bind(null,e,t,n,r))}function Bs(e,t,n,r){if(Br){var i;if((i=(t&4)===0)&&0<Ne.length&&-1<zl.indexOf(e))e=Do(null,e,t,n,r),Ne.push(e);else{var o=zs(e,t,n,r);if(o===null)i&&bl(e,r);else{if(i){if(-1<zl.indexOf(e)){e=Do(o,e,t,n,r),Ne.push(e);return}if(Rd(o,e,t,n,r))return;bl(e,r)}_c(e,t,r,null,n)}}}}function zs(e,t,n,r){var i=js(r);if(i=_t(i),i!==null){var o=jt(i);if(o===null)i=null;else{var s=o.tag;if(s===13){if(i=Zu(o),i!==null)return i;i=null}else if(s===3){if(o.stateNode.hydrate)return o.tag===3?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return _c(e,t,r,i,n),null}var Qe=null,bs=null,zr=null;function dc(){if(zr)return zr;var e,t=bs,n=t.length,r,i="value"in Qe?Qe.value:Qe.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[o-r];r++);return zr=i.slice(e,1<r?1-r:void 0)}function br(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 Pr(){return!0}function Vl(){return!1}function ye(e){function t(n,r,i,o,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Pr:Vl,this.isPropagationStopped=Vl,this}return F(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Pr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Pr)},persist:function(){},isPersistent:Pr}),t}var an={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fs=ye(an),gr=F({},an,{view:0,detail:0}),bd=ye(gr),Yi,Xi,Sn,Ri=F({},gr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vs,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!==Sn&&(Sn&&e.type==="mousemove"?(Yi=e.screenX-Sn.screenX,Xi=e.screenY-Sn.screenY):Xi=Yi=0,Sn=e),Yi)},movementY:function(e){return"movementY"in e?e.movementY:Xi}}),ql=ye(Ri),Fd=F({},Ri,{dataTransfer:0}),Vd=ye(Fd),qd=F({},gr,{relatedTarget:0}),Ji=ye(qd),Wd=F({},an,{animationName:0,elapsedTime:0,pseudoElement:0}),Hd=ye(Wd),Kd=F({},an,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Qd=ye(Kd),Gd=F({},an,{data:0}),Wl=ye(Gd),Yd={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Xd={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"},Jd={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Zd(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Jd[e])?!!t[e]:!1}function Vs(){return Zd}var ep=F({},gr,{key:function(e){if(e.key){var t=Yd[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=br(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Xd[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vs,charCode:function(e){return e.type==="keypress"?br(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?br(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),tp=ye(ep),np=F({},Ri,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Hl=ye(np),rp=F({},gr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vs}),ip=ye(rp),op=F({},an,{propertyName:0,elapsedTime:0,pseudoElement:0}),sp=ye(op),lp=F({},Ri,{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}),ap=ye(lp),up=[9,13,27,32],qs=Fe&&"CompositionEvent"in window,qn=null;Fe&&"documentMode"in document&&(qn=document.documentMode);var cp=Fe&&"TextEvent"in window&&!qn,pc=Fe&&(!qs||qn&&8<qn&&11>=qn),Kl=" ",Ql=!1;function hc(e,t){switch(e){case"keyup":return up.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function mc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Bt=!1;function fp(e,t){switch(e){case"compositionend":return mc(t);case"keypress":return t.which!==32?null:(Ql=!0,Kl);case"textInput":return e=t.data,e===Kl&&Ql?null:e;default:return null}}function dp(e,t){if(Bt)return e==="compositionend"||!qs&&hc(e,t)?(e=dc(),zr=bs=Qe=null,Bt=!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 pc&&t.locale!=="ko"?null:t.data;default:return null}}var pp={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 Gl(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!pp[e.type]:t==="textarea"}function yc(e,t,n,r){Gu(r),t=ri(t,"onChange"),0<t.length&&(n=new Fs("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Wn=null,ir=null;function hp(e){kc(e,0)}function Pi(e){var t=bt(e);if(Fu(t))return e}function mp(e,t){if(e==="change")return t}var gc=!1;if(Fe){var Zi;if(Fe){var eo="oninput"in document;if(!eo){var Yl=document.createElement("div");Yl.setAttribute("oninput","return;"),eo=typeof Yl.oninput=="function"}Zi=eo}else Zi=!1;gc=Zi&&(!document.documentMode||9<document.documentMode)}function Xl(){Wn&&(Wn.detachEvent("onpropertychange",vc),ir=Wn=null)}function vc(e){if(e.propertyName==="value"&&Pi(ir)){var t=[];if(yc(t,ir,e,js(e)),e=hp,Et)e(t);else{Et=!0;try{As(e,t)}finally{Et=!1,Ds()}}}}function yp(e,t,n){e==="focusin"?(Xl(),Wn=t,ir=n,Wn.attachEvent("onpropertychange",vc)):e==="focusout"&&Xl()}function gp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Pi(ir)}function vp(e,t){if(e==="click")return Pi(t)}function wp(e,t){if(e==="input"||e==="change")return Pi(t)}function kp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var we=typeof Object.is=="function"?Object.is:kp,xp=Object.prototype.hasOwnProperty;function or(e,t){if(we(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!xp.call(t,n[r])||!we(e[n[r]],t[n[r]]))return!1;return!0}function Jl(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Zl(e,t){var n=Jl(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Jl(n)}}function wc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?wc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ea(){for(var e=window,t=Zr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Zr(e.document)}return t}function Mo(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 Ep=Fe&&"documentMode"in document&&11>=document.documentMode,zt=null,$o=null,Hn=null,Uo=!1;function ta(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Uo||zt==null||zt!==Zr(r)||(r=zt,"selectionStart"in r&&Mo(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Hn&&or(Hn,r)||(Hn=r,r=ri($o,"onSelect"),0<r.length&&(t=new Fs("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=zt)))}Us("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0);Us("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1);Us(Od,2);for(var na="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),to=0;to<na.length;to++)$s.set(na[to],0);tn("onMouseEnter",["mouseout","mouseover"]);tn("onMouseLeave",["mouseout","mouseover"]);tn("onPointerEnter",["pointerout","pointerover"]);tn("onPointerLeave",["pointerout","pointerover"]);Ot("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ot("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ot("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ot("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ot("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ot("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Dn="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),_p=new Set("cancel close invalid load scroll toggle".split(" ").concat(Dn));function ra(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Cd(r,t,void 0,e),e.currentTarget=null}function kc(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var l=r[s],a=l.instance,u=l.currentTarget;if(l=l.listener,a!==o&&i.isPropagationStopped())break e;ra(i,l,u),o=a}else for(s=0;s<r.length;s++){if(l=r[s],a=l.instance,u=l.currentTarget,l=l.listener,a!==o&&i.isPropagationStopped())break e;ra(i,l,u),o=a}}}if(ti)throw e=Ao,ti=!1,Ao=null,e}function z(e,t){var n=Cc(t),r=e+"__bubble";n.has(r)||(Ec(t,e,2,!1),n.add(r))}var ia="_reactListening"+Math.random().toString(36).slice(2);function xc(e){e[ia]||(e[ia]=!0,Bu.forEach(function(t){_p.has(t)||oa(t,!1,e,null),oa(t,!0,e,null)}))}function oa(e,t,n,r){var i=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,o=n;e==="selectionchange"&&n.nodeType!==9&&(o=n.ownerDocument);var s=Cc(o),l=e+"__"+(t?"capture":"bubble");s.has(l)||(t&&(i|=4),Ec(o,e,i,t),s.add(l))}function Ec(e,t,n,r){var i=$s.get(t);switch(i===void 0?2:i){case 0:i=Bd;break;case 1:i=zd;break;default:i=Bs}n=i.bind(null,t,n,e),i=void 0,!jo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function _c(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var l=r.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var a=s.tag;if((a===3||a===4)&&(a=s.stateNode.containerInfo,a===i||a.nodeType===8&&a.parentNode===i))return;s=s.return}for(;l!==null;){if(s=_t(l),s===null)return;if(a=s.tag,a===5||a===6){r=o=s;continue e}l=l.parentNode}}r=r.return}xd(function(){var u=o,m=js(n),v=[];e:{var h=cc.get(e);if(h!==void 0){var E=Fs,x=e;switch(e){case"keypress":if(br(n)===0)break e;case"keydown":case"keyup":E=tp;break;case"focusin":x="focus",E=Ji;break;case"focusout":x="blur",E=Ji;break;case"beforeblur":case"afterblur":E=Ji;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":E=ql;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":E=Vd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":E=ip;break;case sc:case lc:case ac:E=Hd;break;case uc:E=sp;break;case"scroll":E=bd;break;case"wheel":E=ap;break;case"copy":case"cut":case"paste":E=Qd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":E=Hl}var k=(t&4)!==0,c=!k&&e==="scroll",f=k?h!==null?h+"Capture":null:h;k=[];for(var d=u,g;d!==null;){g=d;var w=g.stateNode;if(g.tag===5&&w!==null&&(g=w,f!==null&&(w=er(d,f),w!=null&&k.push(sr(d,w,g)))),c)break;d=d.return}0<k.length&&(h=new E(h,x,null,n,m),v.push({event:h,listeners:k}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",E=e==="mouseout"||e==="pointerout",h&&!(t&16)&&(x=n.relatedTarget||n.fromElement)&&(_t(x)||x[un]))break e;if((E||h)&&(h=m.window===m?m:(h=m.ownerDocument)?h.defaultView||h.parentWindow:window,E?(x=n.relatedTarget||n.toElement,E=u,x=x?_t(x):null,x!==null&&(c=jt(x),x!==c||x.tag!==5&&x.tag!==6)&&(x=null)):(E=null,x=u),E!==x)){if(k=ql,w="onMouseLeave",f="onMouseEnter",d="mouse",(e==="pointerout"||e==="pointerover")&&(k=Hl,w="onPointerLeave",f="onPointerEnter",d="pointer"),c=E==null?h:bt(E),g=x==null?h:bt(x),h=new k(w,d+"leave",E,n,m),h.target=c,h.relatedTarget=g,w=null,_t(m)===u&&(k=new k(f,d+"enter",x,n,m),k.target=g,k.relatedTarget=c,w=k),c=w,E&&x)t:{for(k=E,f=x,d=0,g=k;g;g=Dt(g))d++;for(g=0,w=f;w;w=Dt(w))g++;for(;0<d-g;)k=Dt(k),d--;for(;0<g-d;)f=Dt(f),g--;for(;d--;){if(k===f||f!==null&&k===f.alternate)break t;k=Dt(k),f=Dt(f)}k=null}else k=null;E!==null&&sa(v,h,E,k,!1),x!==null&&c!==null&&sa(v,c,x,k,!0)}}e:{if(h=u?bt(u):window,E=h.nodeName&&h.nodeName.toLowerCase(),E==="select"||E==="input"&&h.type==="file")var P=mp;else if(Gl(h))if(gc)P=wp;else{P=gp;var S=yp}else(E=h.nodeName)&&E.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(P=vp);if(P&&(P=P(e,u))){yc(v,P,n,m);break e}S&&S(e,h,u),e==="focusout"&&(S=h._wrapperState)&&S.controlled&&h.type==="number"&&So(h,"number",h.value)}switch(S=u?bt(u):window,e){case"focusin":(Gl(S)||S.contentEditable==="true")&&(zt=S,$o=u,Hn=null);break;case"focusout":Hn=$o=zt=null;break;case"mousedown":Uo=!0;break;case"contextmenu":case"mouseup":case"dragend":Uo=!1,ta(v,n,m);break;case"selectionchange":if(Ep)break;case"keydown":case"keyup":ta(v,n,m)}var O;if(qs)e:{switch(e){case"compositionstart":var A="onCompositionStart";break e;case"compositionend":A="onCompositionEnd";break e;case"compositionupdate":A="onCompositionUpdate";break e}A=void 0}else Bt?hc(e,n)&&(A="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(A="onCompositionStart");A&&(pc&&n.locale!=="ko"&&(Bt||A!=="onCompositionStart"?A==="onCompositionEnd"&&Bt&&(O=dc()):(Qe=m,bs="value"in Qe?Qe.value:Qe.textContent,Bt=!0)),S=ri(u,A),0<S.length&&(A=new Wl(A,e,null,n,m),v.push({event:A,listeners:S}),O?A.data=O:(O=mc(n),O!==null&&(A.data=O)))),(O=cp?fp(e,n):dp(e,n))&&(u=ri(u,"onBeforeInput"),0<u.length&&(m=new Wl("onBeforeInput","beforeinput",null,n,m),v.push({event:m,listeners:u}),m.data=O))}kc(v,t)})}function sr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ri(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=er(e,n),o!=null&&r.unshift(sr(e,o,i)),o=er(e,t),o!=null&&r.push(sr(e,o,i))),e=e.return}return r}function Dt(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function sa(e,t,n,r,i){for(var o=t._reactName,s=[];n!==null&&n!==r;){var l=n,a=l.alternate,u=l.stateNode;if(a!==null&&a===r)break;l.tag===5&&u!==null&&(l=u,i?(a=er(n,o),a!=null&&s.unshift(sr(n,a,l))):i||(a=er(n,o),a!=null&&s.push(sr(n,a,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}function ii(){}var no=null,ro=null;function Sc(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Bo(e,t){return e==="textarea"||e==="option"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var la=typeof setTimeout=="function"?setTimeout:void 0,Sp=typeof clearTimeout=="function"?clearTimeout:void 0;function Ws(e){e.nodeType===1?e.textContent="":e.nodeType===9&&(e=e.body,e!=null&&(e.textContent=""))}function Gt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function aa(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var io=0;function Cp(e){return{$$typeof:Os,toString:e,valueOf:e}}var Ni=Math.random().toString(36).slice(2),Ge="__reactFiber$"+Ni,oi="__reactProps$"+Ni,un="__reactContainer$"+Ni,ua="__reactEvents$"+Ni;function _t(e){var t=e[Ge];if(t)return t;for(var n=e.parentNode;n;){if(t=n[un]||n[Ge]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=aa(e);e!==null;){if(n=e[Ge])return n;e=aa(e)}return t}e=n,n=e.parentNode}return null}function vr(e){return e=e[Ge]||e[un],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function bt(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(_(33))}function Oi(e){return e[oi]||null}function Cc(e){var t=e[ua];return t===void 0&&(t=e[ua]=new Set),t}var zo=[],Ft=-1;function pt(e){return{current:e}}function b(e){0>Ft||(e.current=zo[Ft],zo[Ft]=null,Ft--)}function W(e,t){Ft++,zo[Ft]=e.current,e.current=t}var ct={},ae=pt(ct),pe=pt(!1),Rt=ct;function nn(e,t){var n=e.type.contextTypes;if(!n)return ct;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function he(e){return e=e.childContextTypes,e!=null}function si(){b(pe),b(ae)}function ca(e,t,n){if(ae.current!==ct)throw Error(_(168));W(ae,t),W(pe,n)}function Tc(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in e))throw Error(_(108,Wt(t)||"Unknown",i));return F({},n,r)}function Fr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ct,Rt=ae.current,W(ae,e),W(pe,pe.current),!0}function fa(e,t,n){var r=e.stateNode;if(!r)throw Error(_(169));n?(e=Tc(e,t,Rt),r.__reactInternalMemoizedMergedChildContext=e,b(pe),b(ae),W(ae,e)):b(pe),W(pe,n)}var Hs=null,Tt=null,Tp=J.unstable_runWithPriority,Ks=J.unstable_scheduleCallback,bo=J.unstable_cancelCallback,Rp=J.unstable_shouldYield,da=J.unstable_requestPaint,Fo=J.unstable_now,Pp=J.unstable_getCurrentPriorityLevel,Li=J.unstable_ImmediatePriority,Rc=J.unstable_UserBlockingPriority,Pc=J.unstable_NormalPriority,Nc=J.unstable_LowPriority,Oc=J.unstable_IdlePriority,oo={},Np=da!==void 0?da:function(){},$e=null,Vr=null,so=!1,pa=Fo(),se=1e4>pa?Fo:function(){return Fo()-pa};function rn(){switch(Pp()){case Li:return 99;case Rc:return 98;case Pc:return 97;case Nc:return 96;case Oc:return 95;default:throw Error(_(332))}}function Lc(e){switch(e){case 99:return Li;case 98:return Rc;case 97:return Pc;case 96:return Nc;case 95:return Oc;default:throw Error(_(332))}}function Pt(e,t){return e=Lc(e),Tp(e,t)}function lr(e,t,n){return e=Lc(e),Ks(e,t,n)}function Me(){if(Vr!==null){var e=Vr;Vr=null,bo(e)}jc()}function jc(){if(!so&&$e!==null){so=!0;var e=0;try{var t=$e;Pt(99,function(){for(;e<t.length;e++){var n=t[e];do n=n(!0);while(n!==null)}}),$e=null}catch(n){throw $e!==null&&($e=$e.slice(e+1)),Ks(Li,Me),n}finally{so=!1}}}var Op=Lt.ReactCurrentBatchConfig;function Te(e,t){if(e&&e.defaultProps){t=F({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var li=pt(null),ai=null,Vt=null,ui=null;function Qs(){ui=Vt=ai=null}function Gs(e){var t=li.current;b(li),e.type._context._currentValue=t}function Ac(e,t){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)===t){if(n===null||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,n!==null&&(n.childLanes|=t);e=e.return}}function Yt(e,t){ai=e,ui=Vt=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Pe=!0),e.firstContext=null)}function Ee(e,t){if(ui!==e&&t!==!1&&t!==0)if((typeof t!="number"||t===1073741823)&&(ui=e,t=1073741823),t={context:e,observedBits:t,next:null},Vt===null){if(ai===null)throw Error(_(308));Vt=t,ai.dependencies={lanes:0,firstContext:t,responders:null}}else Vt=Vt.next=t;return e._currentValue}var He=!1;function Ys(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function Ic(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function tt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function nt(e,t){if(e=e.updateQueue,e!==null){e=e.shared;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function ha(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ar(e,t,n,r){var i=e.updateQueue;He=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var a=l,u=a.next;a.next=null,s===null?o=u:s.next=u,s=a;var m=e.alternate;if(m!==null){m=m.updateQueue;var v=m.lastBaseUpdate;v!==s&&(v===null?m.firstBaseUpdate=u:v.next=u,m.lastBaseUpdate=a)}}if(o!==null){v=i.baseState,s=0,m=u=a=null;do{l=o.lane;var h=o.eventTime;if((r&l)===l){m!==null&&(m=m.next={eventTime:h,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var E=e,x=o;switch(l=t,h=n,x.tag){case 1:if(E=x.payload,typeof E=="function"){v=E.call(h,v,l);break e}v=E;break e;case 3:E.flags=E.flags&-4097|64;case 0:if(E=x.payload,l=typeof E=="function"?E.call(h,v,l):E,l==null)break e;v=F({},v,l);break e;case 2:He=!0}}o.callback!==null&&(e.flags|=32,l=i.effects,l===null?i.effects=[o]:l.push(o))}else h={eventTime:h,lane:l,tag:o.tag,payload:o.payload,callback:o.callback,next:null},m===null?(u=m=h,a=v):m=m.next=h,s|=l;if(o=o.next,o===null){if(l=i.shared.pending,l===null)break;o=l.next,l.next=null,i.lastBaseUpdate=l,i.shared.pending=null}}while(!0);m===null&&(a=v),i.baseState=a,i.firstBaseUpdate=u,i.lastBaseUpdate=m,kr|=s,e.lanes=s,e.memoizedState=v}}function ma(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(_(191,i));i.call(r)}}}var Dc=new Ei.Component().refs;function ci(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:F({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ji={isMounted:function(e){return(e=e._reactInternals)?jt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=me(),i=rt(e),o=tt(r,i);o.payload=t,n!=null&&(o.callback=n),nt(e,o),it(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=me(),i=rt(e),o=tt(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),nt(e,o),it(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=me(),r=rt(e),i=tt(n,r);i.tag=2,t!=null&&(i.callback=t),nt(e,i),it(e,r,n)}};function ya(e,t,n,r,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,s):t.prototype&&t.prototype.isPureReactComponent?!or(n,r)||!or(i,o):!0}function Mc(e,t,n){var r=!1,i=ct,o=t.contextType;return typeof o=="object"&&o!==null?o=Ee(o):(i=he(t)?Rt:ae.current,r=t.contextTypes,o=(r=r!=null)?nn(e,i):ct),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ji,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function ga(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ji.enqueueReplaceState(t,t.state,null)}function Vo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=Dc,Ys(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=Ee(o):(o=he(t)?Rt:ae.current,i.context=nn(e,o)),ar(e,n,i,r),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(ci(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&ji.enqueueReplaceState(i,i.state,null),ar(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4)}var Nr=Array.isArray;function Cn(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(_(309));var r=n.stateNode}if(!r)throw Error(_(147,e));var i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var s=r.refs;s===Dc&&(s=r.refs={}),o===null?delete s[i]:s[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(_(284));if(!n._owner)throw Error(_(290,e))}return e}function Or(e,t){if(e.type!=="textarea")throw Error(_(31,Object.prototype.toString.call(t)==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function $c(e){function t(c,f){if(e){var d=c.lastEffect;d!==null?(d.nextEffect=f,c.lastEffect=f):c.firstEffect=c.lastEffect=f,f.nextEffect=null,f.flags=8}}function n(c,f){if(!e)return null;for(;f!==null;)t(c,f),f=f.sibling;return null}function r(c,f){for(c=new Map;f!==null;)f.key!==null?c.set(f.key,f):c.set(f.index,f),f=f.sibling;return c}function i(c,f){return c=dt(c,f),c.index=0,c.sibling=null,c}function o(c,f,d){return c.index=d,e?(d=c.alternate,d!==null?(d=d.index,d<f?(c.flags=2,f):d):(c.flags=2,f)):f}function s(c){return e&&c.alternate===null&&(c.flags=2),c}function l(c,f,d,g){return f===null||f.tag!==6?(f=fo(d,c.mode,g),f.return=c,f):(f=i(f,d),f.return=c,f)}function a(c,f,d,g){return f!==null&&f.elementType===d.type?(g=i(f,d.props),g.ref=Cn(c,f,d),g.return=c,g):(g=Kr(d.type,d.key,d.props,null,c.mode,g),g.ref=Cn(c,f,d),g.return=c,g)}function u(c,f,d,g){return f===null||f.tag!==4||f.stateNode.containerInfo!==d.containerInfo||f.stateNode.implementation!==d.implementation?(f=po(d,c.mode,g),f.return=c,f):(f=i(f,d.children||[]),f.return=c,f)}function m(c,f,d,g,w){return f===null||f.tag!==7?(f=en(d,c.mode,g,w),f.return=c,f):(f=i(f,d),f.return=c,f)}function v(c,f,d){if(typeof f=="string"||typeof f=="number")return f=fo(""+f,c.mode,d),f.return=c,f;if(typeof f=="object"&&f!==null){switch(f.$$typeof){case An:return d=Kr(f.type,f.key,f.props,null,c.mode,d),d.ref=Cn(c,null,f),d.return=c,d;case xt:return f=po(f,c.mode,d),f.return=c,f}if(Nr(f)||wn(f))return f=en(f,c.mode,d,null),f.return=c,f;Or(c,f)}return null}function h(c,f,d,g){var w=f!==null?f.key:null;if(typeof d=="string"||typeof d=="number")return w!==null?null:l(c,f,""+d,g);if(typeof d=="object"&&d!==null){switch(d.$$typeof){case An:return d.key===w?d.type===Ke?m(c,f,d.props.children,g,w):a(c,f,d,g):null;case xt:return d.key===w?u(c,f,d,g):null}if(Nr(d)||wn(d))return w!==null?null:m(c,f,d,g,null);Or(c,d)}return null}function E(c,f,d,g,w){if(typeof g=="string"||typeof g=="number")return c=c.get(d)||null,l(f,c,""+g,w);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case An:return c=c.get(g.key===null?d:g.key)||null,g.type===Ke?m(f,c,g.props.children,w,g.key):a(f,c,g,w);case xt:return c=c.get(g.key===null?d:g.key)||null,u(f,c,g,w)}if(Nr(g)||wn(g))return c=c.get(d)||null,m(f,c,g,w,null);Or(f,g)}return null}function x(c,f,d,g){for(var w=null,P=null,S=f,O=f=0,A=null;S!==null&&O<d.length;O++){S.index>O?(A=S,S=null):A=S.sibling;var N=h(c,S,d[O],g);if(N===null){S===null&&(S=A);break}e&&S&&N.alternate===null&&t(c,S),f=o(N,f,O),P===null?w=N:P.sibling=N,P=N,S=A}if(O===d.length)return n(c,S),w;if(S===null){for(;O<d.length;O++)S=v(c,d[O],g),S!==null&&(f=o(S,f,O),P===null?w=S:P.sibling=S,P=S);return w}for(S=r(c,S);O<d.length;O++)A=E(S,c,O,d[O],g),A!==null&&(e&&A.alternate!==null&&S.delete(A.key===null?O:A.key),f=o(A,f,O),P===null?w=A:P.sibling=A,P=A);return e&&S.forEach(function(Z){return t(c,Z)}),w}function k(c,f,d,g){var w=wn(d);if(typeof w!="function")throw Error(_(150));if(d=w.call(d),d==null)throw Error(_(151));for(var P=w=null,S=f,O=f=0,A=null,N=d.next();S!==null&&!N.done;O++,N=d.next()){S.index>O?(A=S,S=null):A=S.sibling;var Z=h(c,S,N.value,g);if(Z===null){S===null&&(S=A);break}e&&S&&Z.alternate===null&&t(c,S),f=o(Z,f,O),P===null?w=Z:P.sibling=Z,P=Z,S=A}if(N.done)return n(c,S),w;if(S===null){for(;!N.done;O++,N=d.next())N=v(c,N.value,g),N!==null&&(f=o(N,f,O),P===null?w=N:P.sibling=N,P=N);return w}for(S=r(c,S);!N.done;O++,N=d.next())N=E(S,c,O,N.value,g),N!==null&&(e&&N.alternate!==null&&S.delete(N.key===null?O:N.key),f=o(N,f,O),P===null?w=N:P.sibling=N,P=N);return e&&S.forEach(function(zi){return t(c,zi)}),w}return function(c,f,d,g){var w=typeof d=="object"&&d!==null&&d.type===Ke&&d.key===null;w&&(d=d.props.children);var P=typeof d=="object"&&d!==null;if(P)switch(d.$$typeof){case An:e:{for(P=d.key,w=f;w!==null;){if(w.key===P){switch(w.tag){case 7:if(d.type===Ke){n(c,w.sibling),f=i(w,d.props.children),f.return=c,c=f;break e}break;default:if(w.elementType===d.type){n(c,w.sibling),f=i(w,d.props),f.ref=Cn(c,w,d),f.return=c,c=f;break e}}n(c,w);break}else t(c,w);w=w.sibling}d.type===Ke?(f=en(d.props.children,c.mode,g,d.key),f.return=c,c=f):(g=Kr(d.type,d.key,d.props,null,c.mode,g),g.ref=Cn(c,f,d),g.return=c,c=g)}return s(c);case xt:e:{for(w=d.key;f!==null;){if(f.key===w)if(f.tag===4&&f.stateNode.containerInfo===d.containerInfo&&f.stateNode.implementation===d.implementation){n(c,f.sibling),f=i(f,d.children||[]),f.return=c,c=f;break e}else{n(c,f);break}else t(c,f);f=f.sibling}f=po(d,c.mode,g),f.return=c,c=f}return s(c)}if(typeof d=="string"||typeof d=="number")return d=""+d,f!==null&&f.tag===6?(n(c,f.sibling),f=i(f,d),f.return=c,c=f):(n(c,f),f=fo(d,c.mode,g),f.return=c,c=f),s(c);if(Nr(d))return x(c,f,d,g);if(wn(d))return k(c,f,d,g);if(P&&Or(c,d),typeof d>"u"&&!w)switch(c.tag){case 1:case 22:case 0:case 11:case 15:throw Error(_(152,Wt(c.type)||"Component"))}return n(c,f)}}var fi=$c(!0),Uc=$c(!1),wr={},je=pt(wr),ur=pt(wr),cr=pt(wr);function St(e){if(e===wr)throw Error(_(174));return e}function qo(e,t){switch(W(cr,t),W(ur,e),W(je,wr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Po(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Po(t,e)}b(je),W(je,t)}function on(){b(je),b(ur),b(cr)}function va(e){St(cr.current);var t=St(je.current),n=Po(t,e.type);t!==n&&(W(ur,e),W(je,n))}function Xs(e){ur.current===e&&(b(je),b(ur))}var q=pt(0);function di(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&64)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 Be=null,Ye=null,Ae=!1;function Bc(e,t){var n=ke(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function wa(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function Wo(e){if(Ae){var t=Ye;if(t){var n=t;if(!wa(e,t)){if(t=Gt(n.nextSibling),!t||!wa(e,t)){e.flags=e.flags&-1025|2,Ae=!1,Be=e;return}Bc(Be,n)}Be=e,Ye=Gt(t.firstChild)}else e.flags=e.flags&-1025|2,Ae=!1,Be=e}}function ka(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Be=e}function Lr(e){if(e!==Be)return!1;if(!Ae)return ka(e),Ae=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!Bo(t,e.memoizedProps))for(t=Ye;t;)Bc(e,t),t=Gt(t.nextSibling);if(ka(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(_(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ye=Gt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ye=null}}else Ye=Be?Gt(e.stateNode.nextSibling):null;return!0}function lo(){Ye=Be=null,Ae=!1}var Xt=[];function Js(){for(var e=0;e<Xt.length;e++)Xt[e]._workInProgressVersionPrimary=null;Xt.length=0}var Kn=Lt.ReactCurrentDispatcher,xe=Lt.ReactCurrentBatchConfig,fr=0,K=null,oe=null,te=null,pi=!1,Qn=!1;function fe(){throw Error(_(321))}function Zs(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!we(e[n],t[n]))return!1;return!0}function el(e,t,n,r,i,o){if(fr=o,K=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Kn.current=e===null||e.memoizedState===null?jp:Ap,e=n(r,i),Qn){o=0;do{if(Qn=!1,!(25>o))throw Error(_(301));o+=1,te=oe=null,t.updateQueue=null,Kn.current=Ip,e=n(r,i)}while(Qn)}if(Kn.current=gi,t=oe!==null&&oe.next!==null,fr=0,te=oe=K=null,pi=!1,t)throw Error(_(300));return e}function Ct(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return te===null?K.memoizedState=te=e:te=te.next=e,te}function At(){if(oe===null){var e=K.alternate;e=e!==null?e.memoizedState:null}else e=oe.next;var t=te===null?K.memoizedState:te.next;if(t!==null)te=t,oe=e;else{if(e===null)throw Error(_(310));oe=e,e={memoizedState:oe.memoizedState,baseState:oe.baseState,baseQueue:oe.baseQueue,queue:oe.queue,next:null},te===null?K.memoizedState=te=e:te=te.next=e}return te}function Oe(e,t){return typeof t=="function"?t(e):t}function Tn(e){var t=At(),n=t.queue;if(n===null)throw Error(_(311));n.lastRenderedReducer=e;var r=oe,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(i!==null){i=i.next,r=r.baseState;var l=s=o=null,a=i;do{var u=a.lane;if((fr&u)===u)l!==null&&(l=l.next={lane:0,action:a.action,eagerReducer:a.eagerReducer,eagerState:a.eagerState,next:null}),r=a.eagerReducer===e?a.eagerState:e(r,a.action);else{var m={lane:u,action:a.action,eagerReducer:a.eagerReducer,eagerState:a.eagerState,next:null};l===null?(s=l=m,o=r):l=l.next=m,K.lanes|=u,kr|=u}a=a.next}while(a!==null&&a!==i);l===null?o=r:l.next=s,we(r,t.memoizedState)||(Pe=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Rn(e){var t=At(),n=t.queue;if(n===null)throw Error(_(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);we(o,t.memoizedState)||(Pe=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function xa(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(i!==null?e=i===r:(e=e.mutableReadLanes,(e=(fr&e)===e)&&(t._workInProgressVersionPrimary=r,Xt.push(t))),e)return n(t._source);throw Xt.push(t),Error(_(350))}function zc(e,t,n,r){var i=ue;if(i===null)throw Error(_(349));var o=t._getVersion,s=o(t._source),l=Kn.current,a=l.useState(function(){return xa(i,t,n)}),u=a[1],m=a[0];a=te;var v=e.memoizedState,h=v.refs,E=h.getSnapshot,x=v.source;v=v.subscribe;var k=K;return e.memoizedState={refs:h,source:t,subscribe:r},l.useEffect(function(){h.getSnapshot=n,h.setSnapshot=u;var c=o(t._source);if(!we(s,c)){c=n(t._source),we(m,c)||(u(c),c=rt(k),i.mutableReadLanes|=c&i.pendingLanes),c=i.mutableReadLanes,i.entangledLanes|=c;for(var f=i.entanglements,d=c;0<d;){var g=31-ut(d),w=1<<g;f[g]|=c,d&=~w}}},[n,t,r]),l.useEffect(function(){return r(t._source,function(){var c=h.getSnapshot,f=h.setSnapshot;try{f(c(t._source));var d=rt(k);i.mutableReadLanes|=d&i.pendingLanes}catch(g){f(function(){throw g})}})},[t,r]),we(E,n)&&we(x,t)&&we(v,r)||(e={pending:null,dispatch:null,lastRenderedReducer:Oe,lastRenderedState:m},e.dispatch=u=rl.bind(null,K,e),a.queue=e,a.baseQueue=null,m=xa(i,t,n),a.memoizedState=a.baseState=m),m}function bc(e,t,n){var r=At();return zc(r,e,t,n)}function Pn(e){var t=Ct();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Oe,lastRenderedState:e},e=e.dispatch=rl.bind(null,K,e),[t.memoizedState,e]}function hi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=K.updateQueue,t===null?(t={lastEffect:null},K.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Ea(e){var t=Ct();return e={current:e},t.memoizedState=e}function mi(){return At().memoizedState}function Ho(e,t,n,r){var i=Ct();K.flags|=e,i.memoizedState=hi(1|t,n,void 0,r===void 0?null:r)}function tl(e,t,n,r){var i=At();r=r===void 0?null:r;var o=void 0;if(oe!==null){var s=oe.memoizedState;if(o=s.destroy,r!==null&&Zs(r,s.deps)){hi(t,n,o,r);return}}K.flags|=e,i.memoizedState=hi(1|t,n,o,r)}function _a(e,t){return Ho(516,4,e,t)}function yi(e,t){return tl(516,4,e,t)}function Fc(e,t){return tl(4,2,e,t)}function Vc(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function qc(e,t,n){return n=n!=null?n.concat([e]):null,tl(4,2,Vc.bind(null,t,e),n)}function nl(){}function Wc(e,t){var n=At();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Zs(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Hc(e,t){var n=At();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Zs(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Lp(e,t){var n=rn();Pt(98>n?98:n,function(){e(!0)}),Pt(97<n?97:n,function(){var r=xe.transition;xe.transition=1;try{e(!1),t()}finally{xe.transition=r}})}function rl(e,t,n){var r=me(),i=rt(e),o={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},s=t.pending;if(s===null?o.next=o:(o.next=s.next,s.next=o),t.pending=o,s=e.alternate,e===K||s!==null&&s===K)Qn=pi=!0;else{if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var l=t.lastRenderedState,a=s(l,n);if(o.eagerReducer=s,o.eagerState=a,we(a,l))return}catch{}finally{}it(e,i,r)}}var gi={readContext:Ee,useCallback:fe,useContext:fe,useEffect:fe,useImperativeHandle:fe,useLayoutEffect:fe,useMemo:fe,useReducer:fe,useRef:fe,useState:fe,useDebugValue:fe,useDeferredValue:fe,useTransition:fe,useMutableSource:fe,useOpaqueIdentifier:fe,unstable_isNewReconciler:!1},jp={readContext:Ee,useCallback:function(e,t){return Ct().memoizedState=[e,t===void 0?null:t],e},useContext:Ee,useEffect:_a,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ho(4,2,Vc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ho(4,2,e,t)},useMemo:function(e,t){var n=Ct();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ct();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},e=e.dispatch=rl.bind(null,K,e),[r.memoizedState,e]},useRef:Ea,useState:Pn,useDebugValue:nl,useDeferredValue:function(e){var t=Pn(e),n=t[0],r=t[1];return _a(function(){var i=xe.transition;xe.transition=1;try{r(e)}finally{xe.transition=i}},[e]),n},useTransition:function(){var e=Pn(!1),t=e[0];return e=Lp.bind(null,e[1]),Ea(e),[e,t]},useMutableSource:function(e,t,n){var r=Ct();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},zc(r,e,t,n)},useOpaqueIdentifier:function(){if(Ae){var e=!1,t=Cp(function(){throw e||(e=!0,n("r:"+(io++).toString(36))),Error(_(355))}),n=Pn(t)[1];return!(K.mode&2)&&(K.flags|=516,hi(5,function(){n("r:"+(io++).toString(36))},void 0,null)),t}return t="r:"+(io++).toString(36),Pn(t),t},unstable_isNewReconciler:!1},Ap={readContext:Ee,useCallback:Wc,useContext:Ee,useEffect:yi,useImperativeHandle:qc,useLayoutEffect:Fc,useMemo:Hc,useReducer:Tn,useRef:mi,useState:function(){return Tn(Oe)},useDebugValue:nl,useDeferredValue:function(e){var t=Tn(Oe),n=t[0],r=t[1];return yi(function(){var i=xe.transition;xe.transition=1;try{r(e)}finally{xe.transition=i}},[e]),n},useTransition:function(){var e=Tn(Oe)[0];return[mi().current,e]},useMutableSource:bc,useOpaqueIdentifier:function(){return Tn(Oe)[0]},unstable_isNewReconciler:!1},Ip={readContext:Ee,useCallback:Wc,useContext:Ee,useEffect:yi,useImperativeHandle:qc,useLayoutEffect:Fc,useMemo:Hc,useReducer:Rn,useRef:mi,useState:function(){return Rn(Oe)},useDebugValue:nl,useDeferredValue:function(e){var t=Rn(Oe),n=t[0],r=t[1];return yi(function(){var i=xe.transition;xe.transition=1;try{r(e)}finally{xe.transition=i}},[e]),n},useTransition:function(){var e=Rn(Oe)[0];return[mi().current,e]},useMutableSource:bc,useOpaqueIdentifier:function(){return Rn(Oe)[0]},unstable_isNewReconciler:!1},Dp=Lt.ReactCurrentOwner,Pe=!1;function de(e,t,n,r){t.child=e===null?Uc(t,null,n,r):fi(t,e.child,n,r)}function Sa(e,t,n,r,i){n=n.render;var o=t.ref;return Yt(t,i),r=el(e,t,n,r,o,i),e!==null&&!Pe?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,ze(e,t,i)):(t.flags|=1,de(e,t,r,i),t.child)}function Ca(e,t,n,r,i,o){if(e===null){var s=n.type;return typeof s=="function"&&!ul(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,Kc(e,t,s,r,i,o)):(e=Kr(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}return s=e.child,!(i&o)&&(i=s.memoizedProps,n=n.compare,n=n!==null?n:or,n(i,r)&&e.ref===t.ref)?ze(e,t,o):(t.flags|=1,e=dt(s,r),e.ref=t.ref,e.return=t,t.child=e)}function Kc(e,t,n,r,i,o){if(e!==null&&or(e.memoizedProps,r)&&e.ref===t.ref)if(Pe=!1,(o&i)!==0)e.flags&16384&&(Pe=!0);else return t.lanes=e.lanes,ze(e,t,o);return Ko(e,t,n,r,o)}function ao(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden"||r.mode==="unstable-defer-without-hiding")if(!(t.mode&4))t.memoizedState={baseLanes:0},Ar(t,n);else if(n&1073741824)t.memoizedState={baseLanes:0},Ar(t,o!==null?o.baseLanes:n);else return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},Ar(t,e),null;else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Ar(t,r);return de(e,t,i,n),t.child}function Qc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=128)}function Ko(e,t,n,r,i){var o=he(n)?Rt:ae.current;return o=nn(t,o),Yt(t,i),n=el(e,t,n,r,o,i),e!==null&&!Pe?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,ze(e,t,i)):(t.flags|=1,de(e,t,n,i),t.child)}function Ta(e,t,n,r,i){if(he(n)){var o=!0;Fr(t)}else o=!1;if(Yt(t,i),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),Mc(t,n,r),Vo(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var a=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=Ee(u):(u=he(n)?Rt:ae.current,u=nn(t,u));var m=n.getDerivedStateFromProps,v=typeof m=="function"||typeof s.getSnapshotBeforeUpdate=="function";v||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==r||a!==u)&&ga(t,s,r,u),He=!1;var h=t.memoizedState;s.state=h,ar(t,r,s,i),a=t.memoizedState,l!==r||h!==a||pe.current||He?(typeof m=="function"&&(ci(t,n,m,r),a=t.memoizedState),(l=He||ya(t,n,l,r,h,a,u))?(v||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|=4)):(typeof s.componentDidMount=="function"&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=a),s.props=r,s.state=a,s.context=u,r=l):(typeof s.componentDidMount=="function"&&(t.flags|=4),r=!1)}else{s=t.stateNode,Ic(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Te(t.type,l),s.props=u,v=t.pendingProps,h=s.context,a=n.contextType,typeof a=="object"&&a!==null?a=Ee(a):(a=he(n)?Rt:ae.current,a=nn(t,a));var E=n.getDerivedStateFromProps;(m=typeof E=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==v||h!==a)&&ga(t,s,r,a),He=!1,h=t.memoizedState,s.state=h,ar(t,r,s,i);var x=t.memoizedState;l!==v||h!==x||pe.current||He?(typeof E=="function"&&(ci(t,n,E,r),x=t.memoizedState),(u=He||ya(t,n,u,r,h,x,a))?(m||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,x,a),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,x,a)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=256)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=x),s.props=r,s.state=x,s.context=a,r=u):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=256),r=!1)}return Qo(e,t,n,r,o,i)}function Qo(e,t,n,r,i,o){Qc(e,t);var s=(t.flags&64)!==0;if(!r&&!s)return i&&fa(t,n,!1),ze(e,t,o);r=t.stateNode,Dp.current=t;var l=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=fi(t,e.child,null,o),t.child=fi(t,null,l,o)):de(e,t,l,o),t.memoizedState=r.state,i&&fa(t,n,!0),t.child}function Ra(e){var t=e.stateNode;t.pendingContext?ca(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ca(e,t.context,!1),qo(e,t.containerInfo)}var jr={dehydrated:null,retryLane:0};function Pa(e,t,n){var r=t.pendingProps,i=q.current,o=!1,s;return(s=(t.flags&64)!==0)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(o=!0,t.flags&=-65):e!==null&&e.memoizedState===null||r.fallback===void 0||r.unstable_avoidThisFallback===!0||(i|=1),W(q,i&1),e===null?(r.fallback!==void 0&&Wo(t),e=r.children,i=r.fallback,o?(e=Na(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=jr,e):typeof r.unstable_expectedLoadTime=="number"?(e=Na(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=jr,t.lanes=33554432,e):(n=cl({mode:"visible",children:e},t.mode,n,null),n.return=t,t.child=n)):e.memoizedState!==null?o?(r=La(e,t,r.children,r.fallback,n),o=t.child,i=e.child.memoizedState,o.memoizedState=i===null?{baseLanes:n}:{baseLanes:i.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=jr,r):(n=Oa(e,t,r.children,n),t.memoizedState=null,n):o?(r=La(e,t,r.children,r.fallback,n),o=t.child,i=e.child.memoizedState,o.memoizedState=i===null?{baseLanes:n}:{baseLanes:i.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=jr,r):(n=Oa(e,t,r.children,n),t.memoizedState=null,n)}function Na(e,t,n,r){var i=e.mode,o=e.child;return t={mode:"hidden",children:t},!(i&2)&&o!==null?(o.childLanes=0,o.pendingProps=t):o=cl(t,i,0,null),n=en(n,i,r,null),o.return=e,n.return=e,o.sibling=n,e.child=o,n}function Oa(e,t,n,r){var i=e.child;return e=i.sibling,n=dt(i,{mode:"visible",children:n}),!(t.mode&2)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function La(e,t,n,r,i){var o=t.mode,s=e.child;e=s.sibling;var l={mode:"hidden",children:n};return!(o&2)&&t.child!==s?(n=t.child,n.childLanes=0,n.pendingProps=l,s=n.lastEffect,s!==null?(t.firstEffect=n.firstEffect,t.lastEffect=s,s.nextEffect=null):t.firstEffect=t.lastEffect=null):n=dt(s,l),e!==null?r=dt(e,r):(r=en(r,o,i,null),r.flags|=2),r.return=t,n.return=t,n.sibling=r,t.child=n,r}function ja(e,t){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Ac(e.return,t)}function uo(e,t,n,r,i,o){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:o}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i,s.lastEffect=o)}function Aa(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(de(e,t,r.children,n),r=q.current,r&2)r=r&1|2,t.flags|=64;else{if(e!==null&&e.flags&64)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ja(e,n);else if(e.tag===19)ja(e,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(W(q,r),!(t.mode&2))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&di(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),uo(t,!1,i,n,o,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&di(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}uo(t,!0,n,null,o,t.lastEffect);break;case"together":uo(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function ze(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),kr|=t.lanes,n&t.childLanes){if(e!==null&&t.child!==e.child)throw Error(_(153));if(t.child!==null){for(e=t.child,n=dt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=dt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}return null}var Gc,Go,Yc,Xc;Gc=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Go=function(){};Yc=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,St(je.current);var o=null;switch(n){case"input":i=Eo(e,i),r=Eo(e,r),o=[];break;case"option":i=Co(e,i),r=Co(e,r),o=[];break;case"select":i=F({},i,{value:void 0}),r=F({},r,{value:void 0}),o=[];break;case"textarea":i=To(e,i),r=To(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ii)}No(n,r);var s;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var l=i[u];for(s in l)l.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Jn.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var a=r[u];if(l=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&a!==l&&(a!=null||l!=null))if(u==="style")if(l){for(s in l)!l.hasOwnProperty(s)||a&&a.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in a)a.hasOwnProperty(s)&&l[s]!==a[s]&&(n||(n={}),n[s]=a[s])}else n||(o||(o=[]),o.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(o=o||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(o=o||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Jn.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&z("scroll",e),o||l===a||(o=[])):typeof a=="object"&&a!==null&&a.$$typeof===Os?a.toString():(o=o||[]).push(u,a))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};Xc=function(e,t,n,r){n!==r&&(t.flags|=4)};function Nn(e,t){if(!Ae)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Mp(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return he(t.type)&&si(),null;case 3:return on(),b(pe),b(ae),Js(),r=t.stateNode,r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Lr(t)?t.flags|=4:r.hydrate||(t.flags|=256)),Go(t),null;case 5:Xs(t);var i=St(cr.current);if(n=t.type,e!==null&&t.stateNode!=null)Yc(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(t.stateNode===null)throw Error(_(166));return null}if(e=St(je.current),Lr(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Ge]=t,r[oi]=o,n){case"dialog":z("cancel",r),z("close",r);break;case"iframe":case"object":case"embed":z("load",r);break;case"video":case"audio":for(e=0;e<Dn.length;e++)z(Dn[e],r);break;case"source":z("error",r);break;case"img":case"image":case"link":z("error",r),z("load",r);break;case"details":z("toggle",r);break;case"input":Al(r,o),z("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},z("invalid",r);break;case"textarea":Dl(r,o),z("invalid",r)}No(n,o),e=null;for(var s in o)o.hasOwnProperty(s)&&(i=o[s],s==="children"?typeof i=="string"?r.textContent!==i&&(e=["children",i]):typeof i=="number"&&r.textContent!==""+i&&(e=["children",""+i]):Jn.hasOwnProperty(s)&&i!=null&&s==="onScroll"&&z("scroll",r));switch(n){case"input":Cr(r),Il(r,o,!0);break;case"textarea":Cr(r),Ml(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=ii)}r=e,t.updateQueue=r,r!==null&&(t.flags|=4)}else{switch(s=i.nodeType===9?i:i.ownerDocument,e===Ro.html&&(e=Wu(n)),e===Ro.html?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Ge]=t,e[oi]=r,Gc(e,t,!1,!1),t.stateNode=e,s=Oo(n,r),n){case"dialog":z("cancel",e),z("close",e),i=r;break;case"iframe":case"object":case"embed":z("load",e),i=r;break;case"video":case"audio":for(i=0;i<Dn.length;i++)z(Dn[i],e);i=r;break;case"source":z("error",e),i=r;break;case"img":case"image":case"link":z("error",e),z("load",e),i=r;break;case"details":z("toggle",e),i=r;break;case"input":Al(e,r),i=Eo(e,r),z("invalid",e);break;case"option":i=Co(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=F({},r,{value:void 0}),z("invalid",e);break;case"textarea":Dl(e,r),i=To(e,r),z("invalid",e);break;default:i=r}No(n,i);var l=i;for(o in l)if(l.hasOwnProperty(o)){var a=l[o];o==="style"?Qu(e,a):o==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Hu(e,a)):o==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Zn(e,a):typeof a=="number"&&Zn(e,""+a):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Jn.hasOwnProperty(o)?a!=null&&o==="onScroll"&&z("scroll",e):a!=null&&Ss(e,o,a,s))}switch(n){case"input":Cr(e),Il(e,r,!1);break;case"textarea":Cr(e),Ml(e);break;case"option":r.value!=null&&e.setAttribute("value",""+at(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Ht(e,!!r.multiple,o,!1):r.defaultValue!=null&&Ht(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=ii)}Sc(n,r)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)Xc(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(_(166));n=St(cr.current),St(je.current),Lr(t)?(r=t.stateNode,n=t.memoizedProps,r[Ge]=t,r.nodeValue!==n&&(t.flags|=4)):(r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ge]=t,t.stateNode=r)}return null;case 13:return b(q),r=t.memoizedState,t.flags&64?(t.lanes=n,t):(r=r!==null,n=!1,e===null?t.memoizedProps.fallback!==void 0&&Lr(t):n=e.memoizedState!==null,r&&!n&&t.mode&2&&(e===null&&t.memoizedProps.unstable_avoidThisFallback!==!0||q.current&1?ne===0&&(ne=3):((ne===0||ne===3)&&(ne=4),ue===null||!(kr&134217727)&&!(fn&134217727)||Jt(ue,le))),(r||n)&&(t.flags|=4),null);case 4:return on(),Go(t),e===null&&xc(t.stateNode.containerInfo),null;case 10:return Gs(t),null;case 17:return he(t.type)&&si(),null;case 19:if(b(q),r=t.memoizedState,r===null)return null;if(o=(t.flags&64)!==0,s=r.rendering,s===null)if(o)Nn(r,!1);else{if(ne!==0||e!==null&&e.flags&64)for(e=t.child;e!==null;){if(s=di(e),s!==null){for(t.flags|=64,Nn(r,!1),o=s.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),r.lastEffect===null&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return W(q,q.current&1|2),t.child}e=e.sibling}r.tail!==null&&se()>ts&&(t.flags|=64,o=!0,Nn(r,!1),t.lanes=33554432)}else{if(!o)if(e=di(s),e!==null){if(t.flags|=64,o=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Nn(r,!0),r.tail===null&&r.tailMode==="hidden"&&!s.alternate&&!Ae)return t=t.lastEffect=r.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*se()-r.renderingStartTime>ts&&n!==1073741824&&(t.flags|=64,o=!0,Nn(r,!1),t.lanes=33554432);r.isBackwards?(s.sibling=t.child,t.child=s):(n=r.last,n!==null?n.sibling=s:t.child=s,r.last=s)}return r.tail!==null?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=se(),n.sibling=null,t=q.current,W(q,o?t&1|2:t&1),n):null;case 23:case 24:return al(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&r.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(_(156,t.tag))}function $p(e){switch(e.tag){case 1:he(e.type)&&si();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(on(),b(pe),b(ae),Js(),t=e.flags,t&64)throw Error(_(285));return e.flags=t&-4097|64,e;case 5:return Xs(e),null;case 13:return b(q),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return b(q),null;case 4:return on(),null;case 10:return Gs(e),null;case 23:case 24:return al(),null;default:return null}}function il(e,t){try{var n="",r=t;do n+=yd(r),r=r.return;while(r);var i=n}catch(o){i=`
39
- Error generating stack: `+o.message+`
40
- `+o.stack}return{value:e,source:t,stack:i}}function Yo(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Up=typeof WeakMap=="function"?WeakMap:Map;function Jc(e,t,n){n=tt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){wi||(wi=!0,ns=r),Yo(e,t)},n}function Zc(e,t,n){n=tt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return Yo(e,t),r(i)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){typeof r!="function"&&(Le===null?Le=new Set([this]):Le.add(this),Yo(e,t));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}var Bp=typeof WeakSet=="function"?WeakSet:Set;function Ia(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(n){ot(e,n)}else t.current=null}function zp(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var n=e.memoizedProps,r=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?n:Te(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&Ws(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(_(163))}function bp(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{if((e.tag&3)===3){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var i=e;r=i.next,i=i.tag,i&4&&i&1&&(uf(n,e),Gp(n,e)),e=r}while(e!==t)}return;case 1:e=n.stateNode,n.flags&4&&(t===null?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Te(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=n.updateQueue,t!==null&&ma(n,t,e);return;case 3:if(t=n.updateQueue,t!==null){if(e=null,n.child!==null)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}ma(n,t,e)}return;case 5:e=n.stateNode,t===null&&n.flags&4&&Sc(n.type,n.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:n.memoizedState===null&&(n=n.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&ic(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(_(163))}function Da(e,t){for(var n=e;;){if(n.tag===5){var r=n.stateNode;if(t)r=r.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=i!=null&&i.hasOwnProperty("display")?i.display:null,r.style.display=Ku("display",i)}}else if(n.tag===6)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((n.tag!==23&&n.tag!==24||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function Ma(e,t){if(Tt&&typeof Tt.onCommitFiberUnmount=="function")try{Tt.onCommitFiberUnmount(Hs,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,i!==void 0)if(r&4)uf(t,n);else{r=t;try{i()}catch(o){ot(r,o)}}n=n.next}while(n!==e)}break;case 1:if(Ia(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(o){ot(t,o)}break;case 5:Ia(t);break;case 4:ef(e,t)}}function $a(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Ua(e){return e.tag===5||e.tag===3||e.tag===4}function Ba(e){e:{for(var t=e.return;t!==null;){if(Ua(t))break e;t=t.return}throw Error(_(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:t=t.containerInfo,r=!0;break;case 4:t=t.containerInfo,r=!0;break;default:throw Error(_(161))}n.flags&16&&(Zn(t,""),n.flags&=-17);e:t:for(n=e;;){for(;n.sibling===null;){if(n.return===null||Ua(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue t;n.child.return=n,n=n.child}if(!(n.flags&2)){n=n.stateNode;break e}}r?Xo(e,n,t):Jo(e,n,t)}function Xo(e,t,n){var r=e.tag,i=r===5||r===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ii));else if(r!==4&&(e=e.child,e!==null))for(Xo(e,t,n),e=e.sibling;e!==null;)Xo(e,t,n),e=e.sibling}function Jo(e,t,n){var r=e.tag,i=r===5||r===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Jo(e,t,n),e=e.sibling;e!==null;)Jo(e,t,n),e=e.sibling}function ef(e,t){for(var n=t,r=!1,i,o;;){if(!r){r=n.return;e:for(;;){if(r===null)throw Error(_(160));switch(i=r.stateNode,r.tag){case 5:o=!1;break e;case 3:i=i.containerInfo,o=!0;break e;case 4:i=i.containerInfo,o=!0;break e}r=r.return}r=!0}if(n.tag===5||n.tag===6){e:for(var s=e,l=n,a=l;;)if(Ma(s,a),a.child!==null&&a.tag!==4)a.child.return=a,a=a.child;else{if(a===l)break e;for(;a.sibling===null;){if(a.return===null||a.return===l)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}o?(s=i,l=n.stateNode,s.nodeType===8?s.parentNode.removeChild(l):s.removeChild(l)):i.removeChild(n.stateNode)}else if(n.tag===4){if(n.child!==null){i=n.stateNode.containerInfo,o=!0,n.child.return=n,n=n.child;continue}}else if(Ma(e,n),n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return,n.tag===4&&(r=!1)}n.sibling.return=n.return,n=n.sibling}}function co(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var r=n=n.next;do(r.tag&3)===3&&(e=r.destroy,r.destroy=void 0,e!==void 0&&e()),r=r.next;while(r!==n)}return;case 1:return;case 5:if(n=t.stateNode,n!=null){r=t.memoizedProps;var i=e!==null?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,o!==null){for(n[oi]=r,e==="input"&&r.type==="radio"&&r.name!=null&&Vu(n,r),Oo(e,i),t=Oo(e,r),i=0;i<o.length;i+=2){var s=o[i],l=o[i+1];s==="style"?Qu(n,l):s==="dangerouslySetInnerHTML"?Hu(n,l):s==="children"?Zn(n,l):Ss(n,s,l,t)}switch(e){case"input":_o(n,r);break;case"textarea":qu(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,o=r.value,o!=null?Ht(n,!!r.multiple,o,!1):e!==!!r.multiple&&(r.defaultValue!=null?Ht(n,!!r.multiple,r.defaultValue,!0):Ht(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(t.stateNode===null)throw Error(_(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:n=t.stateNode,n.hydrate&&(n.hydrate=!1,ic(n.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(ll=se(),Da(t.child,!0)),za(t);return;case 19:za(t);return;case 17:return;case 23:case 24:Da(t,t.memoizedState!==null);return}throw Error(_(163))}function za(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Bp),t.forEach(function(r){var i=Jp.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Fp(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var Vp=Math.ceil,vi=Lt.ReactCurrentDispatcher,ol=Lt.ReactCurrentOwner,L=0,ue=null,Y=null,le=0,Nt=0,Zo=pt(0),ne=0,Ai=null,cn=0,kr=0,fn=0,sl=0,es=null,ll=0,ts=1/0;function dn(){ts=se()+500}var T=null,wi=!1,ns=null,Le=null,ft=!1,Gn=null,Mn=90,rs=[],is=[],be=null,Yn=0,os=null,qr=-1,Ue=0,Wr=0,Xn=null,Hr=!1;function me(){return L&48?se():qr!==-1?qr:qr=se()}function rt(e){if(e=e.mode,!(e&2))return 1;if(!(e&4))return rn()===99?1:2;if(Ue===0&&(Ue=cn),Op.transition!==0){Wr!==0&&(Wr=es!==null?es.pendingLanes:0),e=Ue;var t=4186112&~Wr;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=rn(),L&4&&e===98?e=ni(12,Ue):(e=jd(e),e=ni(e,Ue)),e}function it(e,t,n){if(50<Yn)throw Yn=0,os=null,Error(_(185));if(e=Ii(e,t),e===null)return null;Ti(e,t,n),e===ue&&(fn|=t,ne===4&&Jt(e,le));var r=rn();t===1?L&8&&!(L&48)?ss(e):(_e(e,n),L===0&&(dn(),Me())):(!(L&4)||r!==98&&r!==99||(be===null?be=new Set([e]):be.add(e)),_e(e,n)),es=e}function Ii(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}function _e(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var l=31-ut(s),a=1<<l,u=o[l];if(u===-1){if(!(a&r)||a&i){u=t,Mt(a);var m=U;o[l]=10<=m?u+250:6<=m?u+5e3:-1}}else u<=t&&(e.expiredLanes|=a);s&=~a}if(r=rr(e,e===ue?le:0),t=U,r===0)n!==null&&(n!==oo&&bo(n),e.callbackNode=null,e.callbackPriority=0);else{if(n!==null){if(e.callbackPriority===t)return;n!==oo&&bo(n)}t===15?(n=ss.bind(null,e),$e===null?($e=[n],Vr=Ks(Li,jc)):$e.push(n),n=oo):t===14?n=lr(99,ss.bind(null,e)):(n=Ad(t),n=lr(n,tf.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function tf(e){if(qr=-1,Wr=Ue=0,L&48)throw Error(_(327));var t=e.callbackNode;if(ht()&&e.callbackNode!==t)return null;var n=rr(e,e===ue?le:0);if(n===0)return null;var r=n,i=L;L|=16;var o=sf();(ue!==e||le!==r)&&(dn(),Zt(e,r));do try{Hp();break}catch(l){of(e,l)}while(!0);if(Qs(),vi.current=o,L=i,Y!==null?r=0:(ue=null,le=0,r=ne),cn&fn)Zt(e,0);else if(r!==0){if(r===2&&(L|=64,e.hydrate&&(e.hydrate=!1,Ws(e.containerInfo)),n=fc(e),n!==0&&(r=$n(e,n))),r===1)throw t=Ai,Zt(e,0),Jt(e,n),_e(e,se()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(_(345));case 2:kt(e);break;case 3:if(Jt(e,n),(n&62914560)===n&&(r=ll+500-se(),10<r)){if(rr(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){me(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=la(kt.bind(null,e),r);break}kt(e);break;case 4:if(Jt(e,n),(n&4186112)===n)break;for(r=e.eventTimes,i=-1;0<n;){var s=31-ut(n);o=1<<s,s=r[s],s>i&&(i=s),n&=~o}if(n=i,n=se()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Vp(n/1960))-n,10<n){e.timeoutHandle=la(kt.bind(null,e),n);break}kt(e);break;case 5:kt(e);break;default:throw Error(_(329))}}return _e(e,se()),e.callbackNode===t?tf.bind(null,e):null}function Jt(e,t){for(t&=~sl,t&=~fn,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ut(t),r=1<<n;e[n]=-1,t&=~r}}function ss(e){if(L&48)throw Error(_(327));if(ht(),e===ue&&e.expiredLanes&le){var t=le,n=$n(e,t);cn&fn&&(t=rr(e,t),n=$n(e,t))}else t=rr(e,0),n=$n(e,t);if(e.tag!==0&&n===2&&(L|=64,e.hydrate&&(e.hydrate=!1,Ws(e.containerInfo)),t=fc(e),t!==0&&(n=$n(e,t))),n===1)throw n=Ai,Zt(e,0),Jt(e,t),_e(e,se()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,kt(e),_e(e,se()),null}function qp(){if(be!==null){var e=be;be=null,e.forEach(function(t){t.expiredLanes|=24&t.pendingLanes,_e(t,se())})}Me()}function nf(e,t){var n=L;L|=1;try{return e(t)}finally{L=n,L===0&&(dn(),Me())}}function rf(e,t){var n=L;L&=-2,L|=8;try{return e(t)}finally{L=n,L===0&&(dn(),Me())}}function Ar(e,t){W(Zo,Nt),Nt|=t,cn|=t}function al(){Nt=Zo.current,b(Zo)}function Zt(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Sp(n)),Y!==null)for(n=Y.return;n!==null;){var r=n;switch(r.tag){case 1:r=r.type.childContextTypes,r!=null&&si();break;case 3:on(),b(pe),b(ae),Js();break;case 5:Xs(r);break;case 4:on();break;case 13:b(q);break;case 19:b(q);break;case 10:Gs(r);break;case 23:case 24:al()}n=n.return}ue=e,Y=dt(e.current,null),le=Nt=cn=t,ne=0,Ai=null,sl=fn=kr=0}function of(e,t){do{var n=Y;try{if(Qs(),Kn.current=gi,pi){for(var r=K.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}pi=!1}if(fr=0,te=oe=K=null,Qn=!1,ol.current=null,n===null||n.return===null){ne=1,Ai=t,Y=null;break}e:{var o=e,s=n.return,l=n,a=t;if(t=le,l.flags|=2048,l.firstEffect=l.lastEffect=null,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a;if(!(l.mode&2)){var m=l.alternate;m?(l.updateQueue=m.updateQueue,l.memoizedState=m.memoizedState,l.lanes=m.lanes):(l.updateQueue=null,l.memoizedState=null)}var v=(q.current&1)!==0,h=s;do{var E;if(E=h.tag===13){var x=h.memoizedState;if(x!==null)E=x.dehydrated!==null;else{var k=h.memoizedProps;E=k.fallback===void 0?!1:k.unstable_avoidThisFallback!==!0?!0:!v}}if(E){var c=h.updateQueue;if(c===null){var f=new Set;f.add(u),h.updateQueue=f}else c.add(u);if(!(h.mode&2)){if(h.flags|=64,l.flags|=16384,l.flags&=-2981,l.tag===1)if(l.alternate===null)l.tag=17;else{var d=tt(-1,1);d.tag=2,nt(l,d)}l.lanes|=1;break e}a=void 0,l=t;var g=o.pingCache;if(g===null?(g=o.pingCache=new Up,a=new Set,g.set(u,a)):(a=g.get(u),a===void 0&&(a=new Set,g.set(u,a))),!a.has(l)){a.add(l);var w=Xp.bind(null,o,u,l);u.then(w,w)}h.flags|=4096,h.lanes=t;break e}h=h.return}while(h!==null);a=Error((Wt(l.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
41
-
42
- Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}ne!==5&&(ne=2),a=il(a,l),h=s;do{switch(h.tag){case 3:o=a,h.flags|=4096,t&=-t,h.lanes|=t;var P=Jc(h,o,t);ha(h,P);break e;case 1:o=a;var S=h.type,O=h.stateNode;if(!(h.flags&64)&&(typeof S.getDerivedStateFromError=="function"||O!==null&&typeof O.componentDidCatch=="function"&&(Le===null||!Le.has(O)))){h.flags|=4096,t&=-t,h.lanes|=t;var A=Zc(h,o,t);ha(h,A);break e}}h=h.return}while(h!==null)}af(n)}catch(N){t=N,Y===n&&n!==null&&(Y=n=n.return);continue}break}while(!0)}function sf(){var e=vi.current;return vi.current=gi,e===null?gi:e}function $n(e,t){var n=L;L|=16;var r=sf();ue===e&&le===t||Zt(e,t);do try{Wp();break}catch(i){of(e,i)}while(!0);if(Qs(),L=n,vi.current=r,Y!==null)throw Error(_(261));return ue=null,le=0,ne}function Wp(){for(;Y!==null;)lf(Y)}function Hp(){for(;Y!==null&&!Rp();)lf(Y)}function lf(e){var t=cf(e.alternate,e,Nt);e.memoizedProps=e.pendingProps,t===null?af(e):Y=t,ol.current=null}function af(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&2048){if(n=$p(t),n!==null){n.flags&=2047,Y=n;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(n=Mp(n,t,Nt),n!==null){Y=n;return}if(n=t,n.tag!==24&&n.tag!==23||n.memoizedState===null||Nt&1073741824||!(n.mode&4)){for(var r=0,i=n.child;i!==null;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}e!==null&&!(e.flags&2048)&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(e.lastEffect!==null?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}if(t=t.sibling,t!==null){Y=t;return}Y=t=e}while(t!==null);ne===0&&(ne=5)}function kt(e){var t=rn();return Pt(99,Kp.bind(null,e,t)),null}function Kp(e,t){do ht();while(Gn!==null);if(L&48)throw Error(_(327));var n=e.finishedWork;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(_(177));e.callbackNode=null;var r=n.lanes|n.childLanes,i=r,o=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var s=e.eventTimes,l=e.expirationTimes;0<o;){var a=31-ut(o),u=1<<a;i[a]=0,s[a]=-1,l[a]=-1,o&=~u}if(be!==null&&!(r&24)&&be.has(e)&&be.delete(e),e===ue&&(Y=ue=null,le=0),1<n.flags?n.lastEffect!==null?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,r!==null){if(i=L,L|=32,ol.current=null,no=Br,s=ea(),Mo(s)){if("selectionStart"in s)l={start:s.selectionStart,end:s.selectionEnd};else e:if(l=(l=s.ownerDocument)&&l.defaultView||window,(u=l.getSelection&&l.getSelection())&&u.rangeCount!==0){l=u.anchorNode,o=u.anchorOffset,a=u.focusNode,u=u.focusOffset;try{l.nodeType,a.nodeType}catch{l=null;break e}var m=0,v=-1,h=-1,E=0,x=0,k=s,c=null;t:for(;;){for(var f;k!==l||o!==0&&k.nodeType!==3||(v=m+o),k!==a||u!==0&&k.nodeType!==3||(h=m+u),k.nodeType===3&&(m+=k.nodeValue.length),(f=k.firstChild)!==null;)c=k,k=f;for(;;){if(k===s)break t;if(c===l&&++E===o&&(v=m),c===a&&++x===u&&(h=m),(f=k.nextSibling)!==null)break;k=c,c=k.parentNode}k=f}l=v===-1||h===-1?null:{start:v,end:h}}else l=null;l=l||{start:0,end:0}}else l=null;ro={focusedElem:s,selectionRange:l},Br=!1,Xn=null,Hr=!1,T=r;do try{Qp()}catch(N){if(T===null)throw Error(_(330));ot(T,N),T=T.nextEffect}while(T!==null);Xn=null,T=r;do try{for(s=e;T!==null;){var d=T.flags;if(d&16&&Zn(T.stateNode,""),d&128){var g=T.alternate;if(g!==null){var w=g.ref;w!==null&&(typeof w=="function"?w(null):w.current=null)}}switch(d&1038){case 2:Ba(T),T.flags&=-3;break;case 6:Ba(T),T.flags&=-3,co(T.alternate,T);break;case 1024:T.flags&=-1025;break;case 1028:T.flags&=-1025,co(T.alternate,T);break;case 4:co(T.alternate,T);break;case 8:l=T,ef(s,l);var P=l.alternate;$a(l),P!==null&&$a(P)}T=T.nextEffect}}catch(N){if(T===null)throw Error(_(330));ot(T,N),T=T.nextEffect}while(T!==null);if(w=ro,g=ea(),d=w.focusedElem,s=w.selectionRange,g!==d&&d&&d.ownerDocument&&wc(d.ownerDocument.documentElement,d)){for(s!==null&&Mo(d)&&(g=s.start,w=s.end,w===void 0&&(w=g),"selectionStart"in d?(d.selectionStart=g,d.selectionEnd=Math.min(w,d.value.length)):(w=(g=d.ownerDocument||document)&&g.defaultView||window,w.getSelection&&(w=w.getSelection(),l=d.textContent.length,P=Math.min(s.start,l),s=s.end===void 0?P:Math.min(s.end,l),!w.extend&&P>s&&(l=s,s=P,P=l),l=Zl(d,P),o=Zl(d,s),l&&o&&(w.rangeCount!==1||w.anchorNode!==l.node||w.anchorOffset!==l.offset||w.focusNode!==o.node||w.focusOffset!==o.offset)&&(g=g.createRange(),g.setStart(l.node,l.offset),w.removeAllRanges(),P>s?(w.addRange(g),w.extend(o.node,o.offset)):(g.setEnd(o.node,o.offset),w.addRange(g)))))),g=[],w=d;w=w.parentNode;)w.nodeType===1&&g.push({element:w,left:w.scrollLeft,top:w.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<g.length;d++)w=g[d],w.element.scrollLeft=w.left,w.element.scrollTop=w.top}Br=!!no,ro=no=null,e.current=n,T=r;do try{for(d=e;T!==null;){var S=T.flags;if(S&36&&bp(d,T.alternate,T),S&128){g=void 0;var O=T.ref;if(O!==null){var A=T.stateNode;switch(T.tag){case 5:g=A;break;default:g=A}typeof O=="function"?O(g):O.current=g}}T=T.nextEffect}}catch(N){if(T===null)throw Error(_(330));ot(T,N),T=T.nextEffect}while(T!==null);T=null,Np(),L=i}else e.current=n;if(ft)ft=!1,Gn=e,Mn=t;else for(T=r;T!==null;)t=T.nextEffect,T.nextEffect=null,T.flags&8&&(S=T,S.sibling=null,S.stateNode=null),T=t;if(r=e.pendingLanes,r===0&&(Le=null),r===1?e===os?Yn++:(Yn=0,os=e):Yn=0,n=n.stateNode,Tt&&typeof Tt.onCommitFiberRoot=="function")try{Tt.onCommitFiberRoot(Hs,n,void 0,(n.current.flags&64)===64)}catch{}if(_e(e,se()),wi)throw wi=!1,e=ns,ns=null,e;return L&8||Me(),null}function Qp(){for(;T!==null;){var e=T.alternate;Hr||Xn===null||(T.flags&8?Bl(T,Xn)&&(Hr=!0):T.tag===13&&Fp(e,T)&&Bl(T,Xn)&&(Hr=!0));var t=T.flags;t&256&&zp(e,T),!(t&512)||ft||(ft=!0,lr(97,function(){return ht(),null})),T=T.nextEffect}}function ht(){if(Mn!==90){var e=97<Mn?97:Mn;return Mn=90,Pt(e,Yp)}return!1}function Gp(e,t){rs.push(t,e),ft||(ft=!0,lr(97,function(){return ht(),null}))}function uf(e,t){is.push(t,e),ft||(ft=!0,lr(97,function(){return ht(),null}))}function Yp(){if(Gn===null)return!1;var e=Gn;if(Gn=null,L&48)throw Error(_(331));var t=L;L|=32;var n=is;is=[];for(var r=0;r<n.length;r+=2){var i=n[r],o=n[r+1],s=i.destroy;if(i.destroy=void 0,typeof s=="function")try{s()}catch(a){if(o===null)throw Error(_(330));ot(o,a)}}for(n=rs,rs=[],r=0;r<n.length;r+=2){i=n[r],o=n[r+1];try{var l=i.create;i.destroy=l()}catch(a){if(o===null)throw Error(_(330));ot(o,a)}}for(l=e.current.firstEffect;l!==null;)e=l.nextEffect,l.nextEffect=null,l.flags&8&&(l.sibling=null,l.stateNode=null),l=e;return L=t,Me(),!0}function ba(e,t,n){t=il(n,t),t=Jc(e,t,1),nt(e,t),t=me(),e=Ii(e,1),e!==null&&(Ti(e,1,t),_e(e,t))}function ot(e,t){if(e.tag===3)ba(e,e,t);else for(var n=e.return;n!==null;){if(n.tag===3){ba(n,e,t);break}else if(n.tag===1){var r=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Le===null||!Le.has(r))){e=il(t,e);var i=Zc(n,e,1);if(nt(n,i),i=me(),n=Ii(n,1),n!==null)Ti(n,1,i),_e(n,i);else if(typeof r.componentDidCatch=="function"&&(Le===null||!Le.has(r)))try{r.componentDidCatch(t,e)}catch{}break}}n=n.return}}function Xp(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=me(),e.pingedLanes|=e.suspendedLanes&n,ue===e&&(le&n)===n&&(ne===4||ne===3&&(le&62914560)===le&&500>se()-ll?Zt(e,0):sl|=n),_e(e,t)}function Jp(e,t){var n=e.stateNode;n!==null&&n.delete(t),t=0,t===0&&(t=e.mode,t&2?t&4?(Ue===0&&(Ue=cn),t=$t(62914560&~Ue),t===0&&(t=4194304)):t=rn()===99?1:2:t=1),n=me(),e=Ii(e,t),e!==null&&(Ti(e,t,n),_e(e,n))}var cf;cf=function(e,t,n){var r=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||pe.current)Pe=!0;else if(n&r)Pe=!!(e.flags&16384);else{switch(Pe=!1,t.tag){case 3:Ra(t),lo();break;case 5:va(t);break;case 1:he(t.type)&&Fr(t);break;case 4:qo(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;W(li,i._currentValue),i._currentValue=r;break;case 13:if(t.memoizedState!==null)return n&t.child.childLanes?Pa(e,t,n):(W(q,q.current&1),t=ze(e,t,n),t!==null?t.sibling:null);W(q,q.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&64){if(r)return Aa(e,t,n);t.flags|=64}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),W(q,q.current),r)break;return null;case 23:case 24:return t.lanes=0,ao(e,t,n)}return ze(e,t,n)}else Pe=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=nn(t,ae.current),Yt(t,n),i=el(null,t,r,e,i,n),t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,he(r)){var o=!0;Fr(t)}else o=!1;t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Ys(t);var s=r.getDerivedStateFromProps;typeof s=="function"&&ci(t,r,s,e),i.updater=ji,t.stateNode=i,i._reactInternals=t,Vo(t,r,e,n),t=Qo(null,t,r,!0,o,n)}else t.tag=0,de(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=i._init,i=o(i._payload),t.type=i,o=t.tag=eh(i),e=Te(i,e),o){case 0:t=Ko(null,t,i,e,n);break e;case 1:t=Ta(null,t,i,e,n);break e;case 11:t=Sa(null,t,i,e,n);break e;case 14:t=Ca(null,t,i,Te(i.type,e),r,n);break e}throw Error(_(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Te(r,i),Ko(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Te(r,i),Ta(e,t,r,i,n);case 3:if(Ra(t),r=t.updateQueue,e===null||r===null)throw Error(_(282));if(r=t.pendingProps,i=t.memoizedState,i=i!==null?i.element:null,Ic(e,t),ar(t,r,null,n),r=t.memoizedState.element,r===i)lo(),t=ze(e,t,n);else{if(i=t.stateNode,(o=i.hydrate)&&(Ye=Gt(t.stateNode.containerInfo.firstChild),Be=t,o=Ae=!0),o){if(e=i.mutableSourceEagerHydrationData,e!=null)for(i=0;i<e.length;i+=2)o=e[i],o._workInProgressVersionPrimary=e[i+1],Xt.push(o);for(n=Uc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|1024,n=n.sibling}else de(e,t,r,n),lo();t=t.child}return t;case 5:return va(t),e===null&&Wo(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,Bo(r,i)?s=null:o!==null&&Bo(r,o)&&(t.flags|=16),Qc(e,t),de(e,t,s,n),t.child;case 6:return e===null&&Wo(t),null;case 13:return Pa(e,t,n);case 4:return qo(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=fi(t,null,r,n):de(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Te(r,i),Sa(e,t,r,i,n);case 7:return de(e,t,t.pendingProps,n),t.child;case 8:return de(e,t,t.pendingProps.children,n),t.child;case 12:return de(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value;var l=t.type._context;if(W(li,l._currentValue),l._currentValue=o,s!==null)if(l=s.value,o=we(l,o)?0:(typeof r._calculateChangedBits=="function"?r._calculateChangedBits(l,o):1073741823)|0,o===0){if(s.children===i.children&&!pe.current){t=ze(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var a=l.dependencies;if(a!==null){s=l.child;for(var u=a.firstContext;u!==null;){if(u.context===r&&u.observedBits&o){l.tag===1&&(u=tt(-1,n&-n),u.tag=2,nt(l,u)),l.lanes|=n,u=l.alternate,u!==null&&(u.lanes|=n),Ac(l.return,n),a.lanes|=n;break}u=u.next}}else s=l.tag===10&&l.type===t.type?null:l.child;if(s!==null)s.return=l;else for(s=l;s!==null;){if(s===t){s=null;break}if(l=s.sibling,l!==null){l.return=s.return,s=l;break}s=s.return}l=s}de(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,o=t.pendingProps,r=o.children,Yt(t,n),i=Ee(i,o.unstable_observedBits),r=r(i),t.flags|=1,de(e,t,r,n),t.child;case 14:return i=t.type,o=Te(i,t.pendingProps),o=Te(i.type,o),Ca(e,t,i,o,r,n);case 15:return Kc(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Te(r,i),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,he(r)?(e=!0,Fr(t)):e=!1,Yt(t,n),Mc(t,r,i),Vo(t,r,i,n),Qo(null,t,r,!0,e,n);case 19:return Aa(e,t,n);case 23:return ao(e,t,n);case 24:return ao(e,t,n)}throw Error(_(156,t.tag))};function Zp(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function ke(e,t,n,r){return new Zp(e,t,n,r)}function ul(e){return e=e.prototype,!(!e||!e.isReactComponent)}function eh(e){if(typeof e=="function")return ul(e)?1:0;if(e!=null){if(e=e.$$typeof,e===_i)return 11;if(e===Si)return 14}return 2}function dt(e,t){var n=e.alternate;return n===null?(n=ke(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Kr(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")ul(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Ke:return en(n.children,i,o,t);case zu:s=8,i|=16;break;case Cs:s=8,i|=1;break;case zn:return e=ke(12,n,t,i|8),e.elementType=zn,e.type=zn,e.lanes=o,e;case bn:return e=ke(13,n,t,i),e.type=bn,e.elementType=bn,e.lanes=o,e;case Jr:return e=ke(19,n,t,i),e.elementType=Jr,e.lanes=o,e;case Ls:return cl(n,i,o,t);case xo:return e=ke(24,n,t,i),e.elementType=xo,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ts:s=10;break e;case Rs:s=9;break e;case _i:s=11;break e;case Si:s=14;break e;case Ps:s=16,r=null;break e;case Ns:s=22;break e}throw Error(_(130,e==null?e:typeof e,""))}return t=ke(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function en(e,t,n,r){return e=ke(7,e,r,t),e.lanes=n,e}function cl(e,t,n,r){return e=ke(23,e,r,t),e.elementType=Ls,e.lanes=n,e}function fo(e,t,n){return e=ke(6,e,null,t),e.lanes=n,e}function po(e,t,n){return t=ke(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function th(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Gi(0),this.expirationTimes=Gi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gi(0),this.mutableSourceEagerHydrationData=null}function nh(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:xt,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function ki(e,t,n,r){var i=t.current,o=me(),s=rt(i);e:if(n){n=n._reactInternals;t:{if(jt(n)!==n||n.tag!==1)throw Error(_(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(he(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(l!==null);throw Error(_(171))}if(n.tag===1){var a=n.type;if(he(a)){n=Tc(n,a,l);break e}}n=l}else n=ct;return t.context===null?t.context=n:t.pendingContext=n,t=tt(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),nt(i,t),it(i,s,o),s}function ho(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Fa(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function fl(e,t){Fa(e,t),(e=e.alternate)&&Fa(e,t)}function rh(){return null}function dl(e,t,n){var r=n!=null&&n.hydrationOptions!=null&&n.hydrationOptions.mutableSources||null;if(n=new th(e,t,n!=null&&n.hydrate===!0),t=ke(3,null,null,t===2?7:t===1?3:0),n.current=t,t.stateNode=n,Ys(t),e[un]=n.current,xc(e.nodeType===8?e.parentNode:e),r)for(e=0;e<r.length;e++){t=r[e];var i=t._getVersion;i=i(t._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}dl.prototype.render=function(e){ki(e,this._internalRoot,null,null)};dl.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;ki(null,e,null,function(){t[un]=null})};function xr(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function ih(e,t){if(t||(t=e?e.nodeType===9?e.documentElement:e.firstChild:null,t=!(!t||t.nodeType!==1||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new dl(e,0,t?{hydrate:!0}:void 0)}function Di(e,t,n,r,i){var o=n._reactRootContainer;if(o){var s=o._internalRoot;if(typeof i=="function"){var l=i;i=function(){var u=ho(s);l.call(u)}}ki(t,s,e,i)}else{if(o=n._reactRootContainer=ih(n,r),s=o._internalRoot,typeof i=="function"){var a=i;i=function(){var u=ho(s);a.call(u)}}rf(function(){ki(t,s,e,i)})}return ho(s)}tc=function(e){if(e.tag===13){var t=me();it(e,4,t),fl(e,4)}};Ms=function(e){if(e.tag===13){var t=me();it(e,67108864,t),fl(e,67108864)}};nc=function(e){if(e.tag===13){var t=me(),n=rt(e);it(e,n,t),fl(e,n)}};rc=function(e,t){return t()};Lo=function(e,t,n){switch(t){case"input":if(_o(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Oi(r);if(!i)throw Error(_(90));Fu(r),_o(r,i)}}}break;case"textarea":qu(e,n);break;case"select":t=n.value,t!=null&&Ht(e,!!n.multiple,t,!1)}};As=nf;Xu=function(e,t,n,r,i){var o=L;L|=4;try{return Pt(98,e.bind(null,t,n,r,i))}finally{L=o,L===0&&(dn(),Me())}};Is=function(){!(L&49)&&(qp(),ht())};Ju=function(e,t){var n=L;L|=2;try{return e(t)}finally{L=n,L===0&&(dn(),Me())}};function ff(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!xr(t))throw Error(_(200));return nh(e,t,null,n)}var oh={Events:[vr,bt,Oi,Gu,Yu,ht,{current:!1}]},On={findFiberByHostInstance:_t,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},sh={bundleType:On.bundleType,version:On.version,rendererPackageName:On.rendererPackageName,rendererConfig:On.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Lt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=ec(e),e===null?null:e.stateNode},findFiberByHostInstance:On.findFiberByHostInstance||rh,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ir=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ir.isDisabled&&Ir.supportsFiber)try{Hs=Ir.inject(sh),Tt=Ir}catch{}}Se.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=oh;Se.createPortal=ff;Se.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(_(188)):Error(_(268,Object.keys(e)));return e=ec(t),e=e===null?null:e.stateNode,e};Se.flushSync=function(e,t){var n=L;if(n&48)return e(t);L|=1;try{if(e)return Pt(99,e.bind(null,t))}finally{L=n,Me()}};Se.hydrate=function(e,t,n){if(!xr(t))throw Error(_(200));return Di(null,e,t,!0,n)};Se.render=function(e,t,n){if(!xr(t))throw Error(_(200));return Di(null,e,t,!1,n)};Se.unmountComponentAtNode=function(e){if(!xr(e))throw Error(_(40));return e._reactRootContainer?(rf(function(){Di(null,null,e,!1,function(){e._reactRootContainer=null,e[un]=null})}),!0):!1};Se.unstable_batchedUpdates=nf;Se.unstable_createPortal=function(e,t){return ff(e,t,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)};Se.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!xr(n))throw Error(_(200));if(e==null||e._reactInternals===void 0)throw Error(_(38));return Di(e,t,n,!1,r)};Se.version="17.0.2";function df(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(df)}catch(e){console.error(e)}}df(),Mu.exports=Se;var pf=Mu.exports;const hv=gu(pf),lh="modulepreload",ah=function(e){return"/xenon/"+e},Va={},V=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),l=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));i=Promise.allSettled(n.map(a=>{if(a=ah(a),a in Va)return;Va[a]=!0;const u=a.endsWith(".css"),m=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${a}"]${m}`))return;const v=document.createElement("link");if(v.rel=u?"stylesheet":lh,u||(v.as="script"),v.crossOrigin="",v.href=a,l&&v.setAttribute("nonce",l),document.head.appendChild(v),u)return new Promise((h,E)=>{v.addEventListener("load",h),v.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${a}`)))})}))}function o(s){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=s,window.dispatchEvent(l),!l.defaultPrevented)throw s}return i.then(s=>{for(const l of s||[])l.status==="rejected"&&o(l.reason);return t().catch(o)})};/**
43
- * @remix-run/router v1.23.1
44
- *
45
- * Copyright (c) Remix Software Inc.
46
- *
47
- * This source code is licensed under the MIT license found in the
48
- * LICENSE.md file in the root directory of this source tree.
49
- *
50
- * @license MIT
51
- */function dr(){return dr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dr.apply(this,arguments)}var Xe;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Xe||(Xe={}));const qa="popstate";function uh(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:s,hash:l}=r.location;return ls("",{pathname:o,search:s,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:xi(i)}return fh(t,n,null,e)}function Q(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function pl(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function ch(){return Math.random().toString(36).substr(2,8)}function Wa(e,t){return{usr:e.state,key:e.key,idx:t}}function ls(e,t,n,r){return n===void 0&&(n=null),dr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?pn(t):t,{state:n,key:t&&t.key||r||ch()})}function xi(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function pn(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function fh(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,l=Xe.Pop,a=null,u=m();u==null&&(u=0,s.replaceState(dr({},s.state,{idx:u}),""));function m(){return(s.state||{idx:null}).idx}function v(){l=Xe.Pop;let c=m(),f=c==null?null:c-u;u=c,a&&a({action:l,location:k.location,delta:f})}function h(c,f){l=Xe.Push;let d=ls(k.location,c,f);u=m()+1;let g=Wa(d,u),w=k.createHref(d);try{s.pushState(g,"",w)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;i.location.assign(w)}o&&a&&a({action:l,location:k.location,delta:1})}function E(c,f){l=Xe.Replace;let d=ls(k.location,c,f);u=m();let g=Wa(d,u),w=k.createHref(d);s.replaceState(g,"",w),o&&a&&a({action:l,location:k.location,delta:0})}function x(c){let f=i.location.origin!=="null"?i.location.origin:i.location.href,d=typeof c=="string"?c:xi(c);return d=d.replace(/ $/,"%20"),Q(f,"No window.location.(origin|href) available to create URL for href: "+d),new URL(d,f)}let k={get action(){return l},get location(){return e(i,s)},listen(c){if(a)throw new Error("A history only accepts one active listener");return i.addEventListener(qa,v),a=c,()=>{i.removeEventListener(qa,v),a=null}},createHref(c){return t(i,c)},createURL:x,encodeLocation(c){let f=x(c);return{pathname:f.pathname,search:f.search,hash:f.hash}},push:h,replace:E,go(c){return s.go(c)}};return k}var Ha;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ha||(Ha={}));function dh(e,t,n){return n===void 0&&(n="/"),ph(e,t,n)}function ph(e,t,n,r){let i=typeof t=="string"?pn(t):t,o=hl(i.pathname||"/",n);if(o==null)return null;let s=hf(e);hh(s);let l=null;for(let a=0;l==null&&a<s.length;++a){let u=Th(o);l=_h(s[a],u)}return l}function hf(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,s,l)=>{let a={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};a.relativePath.startsWith("/")&&(Q(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let u=st([r,a.relativePath]),m=n.concat(a);o.children&&o.children.length>0&&(Q(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),hf(o.children,t,m,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:xh(u,o.index),routesMeta:m})};return e.forEach((o,s)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))i(o,s);else for(let a of mf(o.path))i(o,s,a)}),t}function mf(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let s=mf(r.join("/")),l=[];return l.push(...s.map(a=>a===""?o:[o,a].join("/"))),i&&l.push(...s),l.map(a=>e.startsWith("/")&&a===""?"/":a)}function hh(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Eh(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const mh=/^:[\w-]+$/,yh=3,gh=2,vh=1,wh=10,kh=-2,Ka=e=>e==="*";function xh(e,t){let n=e.split("/"),r=n.length;return n.some(Ka)&&(r+=kh),t&&(r+=gh),n.filter(i=>!Ka(i)).reduce((i,o)=>i+(mh.test(o)?yh:o===""?vh:wh),r)}function Eh(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function _h(e,t,n){let{routesMeta:r}=e,i={},o="/",s=[];for(let l=0;l<r.length;++l){let a=r[l],u=l===r.length-1,m=o==="/"?t:t.slice(o.length)||"/",v=Sh({path:a.relativePath,caseSensitive:a.caseSensitive,end:u},m),h=a.route;if(!v)return null;Object.assign(i,v.params),s.push({params:i,pathname:st([o,v.pathname]),pathnameBase:Lh(st([o,v.pathnameBase])),route:h}),v.pathnameBase!=="/"&&(o=st([o,v.pathnameBase]))}return s}function Sh(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Ch(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],s=o.replace(/(.)\/+$/,"$1"),l=i.slice(1);return{params:r.reduce((u,m,v)=>{let{paramName:h,isOptional:E}=m;if(h==="*"){let k=l[v]||"";s=o.slice(0,o.length-k.length).replace(/(.)\/+$/,"$1")}const x=l[v];return E&&!x?u[h]=void 0:u[h]=(x||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:s,pattern:e}}function Ch(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),pl(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,l,a)=>(r.push({paramName:l,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function Th(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return pl(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function hl(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const Rh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ph=e=>Rh.test(e);function Nh(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?pn(e):e,o;if(n)if(Ph(n))o=n;else{if(n.includes("//")){let s=n;n=n.replace(/\/\/+/g,"/"),pl(!1,"Pathnames cannot have embedded double slashes - normalizing "+(s+" -> "+n))}n.startsWith("/")?o=Qa(n.substring(1),"/"):o=Qa(n,t)}else o=t;return{pathname:o,search:jh(r),hash:Ah(i)}}function Qa(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function mo(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Oh(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function ml(e,t){let n=Oh(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function yl(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=pn(e):(i=dr({},e),Q(!i.pathname||!i.pathname.includes("?"),mo("?","pathname","search",i)),Q(!i.pathname||!i.pathname.includes("#"),mo("#","pathname","hash",i)),Q(!i.search||!i.search.includes("#"),mo("#","search","hash",i)));let o=e===""||i.pathname==="",s=o?"/":i.pathname,l;if(s==null)l=n;else{let v=t.length-1;if(!r&&s.startsWith("..")){let h=s.split("/");for(;h[0]==="..";)h.shift(),v-=1;i.pathname=h.join("/")}l=v>=0?t[v]:"/"}let a=Nh(i,l),u=s&&s!=="/"&&s.endsWith("/"),m=(o||s===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||m)&&(a.pathname+="/"),a}const st=e=>e.join("/").replace(/\/\/+/g,"/"),Lh=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),jh=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Ah=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Ih(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const yf=["post","put","patch","delete"];new Set(yf);const Dh=["get",...yf];new Set(Dh);/**
52
- * React Router v6.30.2
53
- *
54
- * Copyright (c) Remix Software Inc.
55
- *
56
- * This source code is licensed under the MIT license found in the
57
- * LICENSE.md file in the root directory of this source tree.
58
- *
59
- * @license MIT
60
- */function pr(){return pr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pr.apply(this,arguments)}const gl=y.createContext(null),Mh=y.createContext(null),mt=y.createContext(null),Mi=y.createContext(null),qe=y.createContext({outlet:null,matches:[],isDataRoute:!1}),gf=y.createContext(null);function $h(e,t){let{relative:n}=t===void 0?{}:t;hn()||Q(!1);let{basename:r,navigator:i}=y.useContext(mt),{hash:o,pathname:s,search:l}=wf(e,{relative:n}),a=s;return r!=="/"&&(a=s==="/"?r:st([r,s])),i.createHref({pathname:a,search:l,hash:o})}function hn(){return y.useContext(Mi)!=null}function We(){return hn()||Q(!1),y.useContext(Mi).location}function vf(e){y.useContext(mt).static||y.useLayoutEffect(e)}function mn(){let{isDataRoute:e}=y.useContext(qe);return e?Yh():Uh()}function Uh(){hn()||Q(!1);let e=y.useContext(gl),{basename:t,future:n,navigator:r}=y.useContext(mt),{matches:i}=y.useContext(qe),{pathname:o}=We(),s=JSON.stringify(ml(i,n.v7_relativeSplatPath)),l=y.useRef(!1);return vf(()=>{l.current=!0}),y.useCallback(function(u,m){if(m===void 0&&(m={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let v=yl(u,JSON.parse(s),o,m.relative==="path");e==null&&t!=="/"&&(v.pathname=v.pathname==="/"?t:st([t,v.pathname])),(m.replace?r.replace:r.push)(v,m.state,m)},[t,r,s,o,e])}function mv(){let{matches:e}=y.useContext(qe),t=e[e.length-1];return t?t.params:{}}function wf(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=y.useContext(mt),{matches:i}=y.useContext(qe),{pathname:o}=We(),s=JSON.stringify(ml(i,r.v7_relativeSplatPath));return y.useMemo(()=>yl(e,JSON.parse(s),o,n==="path"),[e,s,o,n])}function Bh(e,t){return zh(e,t)}function zh(e,t,n,r){hn()||Q(!1);let{navigator:i}=y.useContext(mt),{matches:o}=y.useContext(qe),s=o[o.length-1],l=s?s.params:{};s&&s.pathname;let a=s?s.pathnameBase:"/";s&&s.route;let u=We(),m;if(t){var v;let c=typeof t=="string"?pn(t):t;a==="/"||(v=c.pathname)!=null&&v.startsWith(a)||Q(!1),m=c}else m=u;let h=m.pathname||"/",E=h;if(a!=="/"){let c=a.replace(/^\//,"").split("/");E="/"+h.replace(/^\//,"").split("/").slice(c.length).join("/")}let x=dh(e,{pathname:E}),k=Wh(x&&x.map(c=>Object.assign({},c,{params:Object.assign({},l,c.params),pathname:st([a,i.encodeLocation?i.encodeLocation(c.pathname).pathname:c.pathname]),pathnameBase:c.pathnameBase==="/"?a:st([a,i.encodeLocation?i.encodeLocation(c.pathnameBase).pathname:c.pathnameBase])})),o,n,r);return t&&k?y.createElement(Mi.Provider,{value:{location:pr({pathname:"/",search:"",hash:"",state:null,key:"default"},m),navigationType:Xe.Pop}},k):k}function bh(){let e=Gh(),t=Ih(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},t),n?y.createElement("pre",{style:i},n):null,null)}const Fh=y.createElement(bh,null);class Vh extends y.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?y.createElement(qe.Provider,{value:this.props.routeContext},y.createElement(gf.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function qh(e){let{routeContext:t,match:n,children:r}=e,i=y.useContext(gl);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),y.createElement(qe.Provider,{value:t},r)}function Wh(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,l=(i=n)==null?void 0:i.errors;if(l!=null){let m=s.findIndex(v=>v.route.id&&(l==null?void 0:l[v.route.id])!==void 0);m>=0||Q(!1),s=s.slice(0,Math.min(s.length,m+1))}let a=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let m=0;m<s.length;m++){let v=s[m];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(u=m),v.route.id){let{loaderData:h,errors:E}=n,x=v.route.loader&&h[v.route.id]===void 0&&(!E||E[v.route.id]===void 0);if(v.route.lazy||x){a=!0,u>=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((m,v,h)=>{let E,x=!1,k=null,c=null;n&&(E=l&&v.route.id?l[v.route.id]:void 0,k=v.route.errorElement||Fh,a&&(u<0&&h===0?(Xh("route-fallback"),x=!0,c=null):u===h&&(x=!0,c=v.route.hydrateFallbackElement||null)));let f=t.concat(s.slice(0,h+1)),d=()=>{let g;return E?g=k:x?g=c:v.route.Component?g=y.createElement(v.route.Component,null):v.route.element?g=v.route.element:g=m,y.createElement(qh,{match:v,routeContext:{outlet:m,matches:f,isDataRoute:n!=null},children:g})};return n&&(v.route.ErrorBoundary||v.route.errorElement||h===0)?y.createElement(Vh,{location:n.location,revalidation:n.revalidation,component:k,error:E,children:d(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):d()},null)}var kf=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(kf||{}),xf=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(xf||{});function Hh(e){let t=y.useContext(gl);return t||Q(!1),t}function Kh(e){let t=y.useContext(Mh);return t||Q(!1),t}function Qh(e){let t=y.useContext(qe);return t||Q(!1),t}function Ef(e){let t=Qh(),n=t.matches[t.matches.length-1];return n.route.id||Q(!1),n.route.id}function Gh(){var e;let t=y.useContext(gf),n=Kh(),r=Ef();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Yh(){let{router:e}=Hh(kf.UseNavigateStable),t=Ef(xf.UseNavigateStable),n=y.useRef(!1);return vf(()=>{n.current=!0}),y.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,pr({fromRouteId:t},o)))},[e,t])}const Ga={};function Xh(e,t,n){Ga[e]||(Ga[e]=!0)}function Jh(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function qt(e){let{to:t,replace:n,state:r,relative:i}=e;hn()||Q(!1);let{future:o,static:s}=y.useContext(mt),{matches:l}=y.useContext(qe),{pathname:a}=We(),u=mn(),m=yl(t,ml(l,o.v7_relativeSplatPath),a,i==="path"),v=JSON.stringify(m);return y.useEffect(()=>u(JSON.parse(v),{replace:n,state:r,relative:i}),[u,v,i,n,r]),null}function $(e){Q(!1)}function Zh(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Xe.Pop,navigator:o,static:s=!1,future:l}=e;hn()&&Q(!1);let a=t.replace(/^\/*/,"/"),u=y.useMemo(()=>({basename:a,navigator:o,static:s,future:pr({v7_relativeSplatPath:!1},l)}),[a,l,o,s]);typeof r=="string"&&(r=pn(r));let{pathname:m="/",search:v="",hash:h="",state:E=null,key:x="default"}=r,k=y.useMemo(()=>{let c=hl(m,a);return c==null?null:{location:{pathname:c,search:v,hash:h,state:E,key:x},navigationType:i}},[a,m,v,h,E,x,i]);return k==null?null:y.createElement(mt.Provider,{value:u},y.createElement(Mi.Provider,{children:n,value:k}))}function _f(e){let{children:t,location:n}=e;return Bh(as(t),n)}new Promise(()=>{});function as(e,t){t===void 0&&(t=[]);let n=[];return y.Children.forEach(e,(r,i)=>{if(!y.isValidElement(r))return;let o=[...t,i];if(r.type===y.Fragment){n.push.apply(n,as(r.props.children,o));return}r.type!==$&&Q(!1),!r.props.index||!r.props.children||Q(!1);let s={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=as(r.props.children,o)),n.push(s)}),n}/**
61
- * React Router DOM v6.30.2
62
- *
63
- * Copyright (c) Remix Software Inc.
64
- *
65
- * This source code is licensed under the MIT license found in the
66
- * LICENSE.md file in the root directory of this source tree.
67
- *
68
- * @license MIT
69
- */function us(){return us=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},us.apply(this,arguments)}function em(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function tm(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function nm(e,t){return e.button===0&&(!t||t==="_self")&&!tm(e)}function cs(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function rm(e,t){let n=cs(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(o=>{n.append(i,o)})}),n}const im=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],om="6";try{window.__reactRouterVersion=om}catch{}const sm="startTransition",Ya=sd[sm];function lm(e){let{basename:t,children:n,future:r,window:i}=e,o=y.useRef();o.current==null&&(o.current=uh({window:i,v5Compat:!0}));let s=o.current,[l,a]=y.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},m=y.useCallback(v=>{u&&Ya?Ya(()=>a(v)):a(v)},[a,u]);return y.useLayoutEffect(()=>s.listen(m),[s,m]),y.useEffect(()=>Jh(r),[r]),y.createElement(Zh,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:s,future:r})}const am=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",um=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,yv=y.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:s,state:l,target:a,to:u,preventScrollReset:m,viewTransition:v}=t,h=em(t,im),{basename:E}=y.useContext(mt),x,k=!1;if(typeof u=="string"&&um.test(u)&&(x=u,am))try{let g=new URL(window.location.href),w=u.startsWith("//")?new URL(g.protocol+u):new URL(u),P=hl(w.pathname,E);w.origin===g.origin&&P!=null?u=P+w.search+w.hash:k=!0}catch{}let c=$h(u,{relative:i}),f=cm(u,{replace:s,state:l,target:a,preventScrollReset:m,relative:i,viewTransition:v});function d(g){r&&r(g),g.defaultPrevented||f(g)}return y.createElement("a",us({},h,{href:x||c,onClick:k||o?r:d,ref:n,target:a}))});var Xa;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Xa||(Xa={}));var Ja;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Ja||(Ja={}));function cm(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s,viewTransition:l}=t===void 0?{}:t,a=mn(),u=We(),m=wf(e,{relative:s});return y.useCallback(v=>{if(nm(v,n)){v.preventDefault();let h=r!==void 0?r:xi(u)===xi(m);a(e,{replace:h,state:i,preventScrollReset:o,relative:s,viewTransition:l})}},[u,a,m,r,i,n,e,o,s,l])}function gv(e){let t=y.useRef(cs(e)),n=y.useRef(!1),r=We(),i=y.useMemo(()=>rm(r.search,n.current?null:t.current),[r.search]),o=mn(),s=y.useCallback((l,a)=>{const u=cs(typeof l=="function"?l(i):l);n.current=!0,o("?"+u,a)},[o,i]);return[i,s]}/**
70
- * @license lucide-react v0.555.0 - ISC
71
- *
72
- * This source code is licensed under the ISC license.
73
- * See the LICENSE file in the root directory of this source tree.
74
- */const fm=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),dm=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),Za=e=>{const t=dm(e);return t.charAt(0).toUpperCase()+t.slice(1)},Sf=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),pm=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
75
- * @license lucide-react v0.555.0 - ISC
76
- *
77
- * This source code is licensed under the ISC license.
78
- * See the LICENSE file in the root directory of this source tree.
79
- */var hm={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
80
- * @license lucide-react v0.555.0 - ISC
81
- *
82
- * This source code is licensed under the ISC license.
83
- * See the LICENSE file in the root directory of this source tree.
84
- */const mm=y.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:o,iconNode:s,...l},a)=>y.createElement("svg",{ref:a,...hm,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Sf("lucide",i),...!o&&!pm(l)&&{"aria-hidden":"true"},...l},[...s.map(([u,m])=>y.createElement(u,m)),...Array.isArray(o)?o:[o]]));/**
85
- * @license lucide-react v0.555.0 - ISC
86
- *
87
- * This source code is licensed under the ISC license.
88
- * See the LICENSE file in the root directory of this source tree.
89
- */const B=(e,t)=>{const n=y.forwardRef(({className:r,...i},o)=>y.createElement(mm,{ref:o,iconNode:t,className:Sf(`lucide-${fm(Za(e))}`,`lucide-${e}`,r),...i}));return n.displayName=Za(e),n};/**
90
- * @license lucide-react v0.555.0 - ISC
91
- *
92
- * This source code is licensed under the ISC license.
93
- * See the LICENSE file in the root directory of this source tree.
94
- */const ym=[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}],["path",{d:"M10 4v4",key:"pp8u80"}],["path",{d:"M2 8h20",key:"d11cs7"}],["path",{d:"M6 4v4",key:"1svtjw"}]],gm=B("app-window",ym);/**
95
- * @license lucide-react v0.555.0 - ISC
96
- *
97
- * This source code is licensed under the ISC license.
98
- * See the LICENSE file in the root directory of this source tree.
99
- */const vm=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],wm=B("bell",vm);/**
100
- * @license lucide-react v0.555.0 - ISC
101
- *
102
- * This source code is licensed under the ISC license.
103
- * See the LICENSE file in the root directory of this source tree.
104
- */const km=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],xm=B("book-open",km);/**
105
- * @license lucide-react v0.555.0 - ISC
106
- *
107
- * This source code is licensed under the ISC license.
108
- * See the LICENSE file in the root directory of this source tree.
109
- */const Em=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],_m=B("brain",Em);/**
110
- * @license lucide-react v0.555.0 - ISC
111
- *
112
- * This source code is licensed under the ISC license.
113
- * See the LICENSE file in the root directory of this source tree.
114
- */const Sm=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Cm=B("chevron-down",Sm);/**
115
- * @license lucide-react v0.555.0 - ISC
116
- *
117
- * This source code is licensed under the ISC license.
118
- * See the LICENSE file in the root directory of this source tree.
119
- */const Tm=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Rm=B("circle-alert",Tm);/**
120
- * @license lucide-react v0.555.0 - ISC
121
- *
122
- * This source code is licensed under the ISC license.
123
- * See the LICENSE file in the root directory of this source tree.
124
- */const Pm=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Nm=B("circle-check-big",Pm);/**
125
- * @license lucide-react v0.555.0 - ISC
126
- *
127
- * This source code is licensed under the ISC license.
128
- * See the LICENSE file in the root directory of this source tree.
129
- */const Om=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]],Lm=B("film",Om);/**
130
- * @license lucide-react v0.555.0 - ISC
131
- *
132
- * This source code is licensed under the ISC license.
133
- * See the LICENSE file in the root directory of this source tree.
134
- */const jm=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}],["path",{d:"M3.22 13H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27",key:"auskq0"}]],Am=B("heart-pulse",jm);/**
135
- * @license lucide-react v0.555.0 - ISC
136
- *
137
- * This source code is licensed under the ISC license.
138
- * See the LICENSE file in the root directory of this source tree.
139
- */const Im=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Dm=B("info",Im);/**
140
- * @license lucide-react v0.555.0 - ISC
141
- *
142
- * This source code is licensed under the ISC license.
143
- * See the LICENSE file in the root directory of this source tree.
144
- */const Mm=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],$m=B("key",Mm);/**
145
- * @license lucide-react v0.555.0 - ISC
146
- *
147
- * This source code is licensed under the ISC license.
148
- * See the LICENSE file in the root directory of this source tree.
149
- */const Um=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],Bm=B("layout-grid",Um);/**
150
- * @license lucide-react v0.555.0 - ISC
151
- *
152
- * This source code is licensed under the ISC license.
153
- * See the LICENSE file in the root directory of this source tree.
154
- */const zm=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],bm=B("loader-circle",zm);/**
155
- * @license lucide-react v0.555.0 - ISC
156
- *
157
- * This source code is licensed under the ISC license.
158
- * See the LICENSE file in the root directory of this source tree.
159
- */const Fm=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],Vm=B("log-out",Fm);/**
160
- * @license lucide-react v0.555.0 - ISC
161
- *
162
- * This source code is licensed under the ISC license.
163
- * See the LICENSE file in the root directory of this source tree.
164
- */const qm=[["path",{d:"M15.033 9.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56V7.648a.645.645 0 0 1 .967-.56z",key:"vbtd3f"}],["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"M8 21h8",key:"1ev6f3"}],["rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",key:"x3v2xh"}]],Wm=B("monitor-play",qm);/**
165
- * @license lucide-react v0.555.0 - ISC
166
- *
167
- * This source code is licensed under the ISC license.
168
- * See the LICENSE file in the root directory of this source tree.
169
- */const Hm=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Cf=B("refresh-cw",Hm);/**
170
- * @license lucide-react v0.555.0 - ISC
171
- *
172
- * This source code is licensed under the ISC license.
173
- * See the LICENSE file in the root directory of this source tree.
174
- */const Km=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Tf=B("search",Km);/**
175
- * @license lucide-react v0.555.0 - ISC
176
- *
177
- * This source code is licensed under the ISC license.
178
- * See the LICENSE file in the root directory of this source tree.
179
- */const Qm=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Gm=B("settings",Qm);/**
180
- * @license lucide-react v0.555.0 - ISC
181
- *
182
- * This source code is licensed under the ISC license.
183
- * See the LICENSE file in the root directory of this source tree.
184
- */const Ym=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Xm=B("shield-check",Ym);/**
185
- * @license lucide-react v0.555.0 - ISC
186
- *
187
- * This source code is licensed under the ISC license.
188
- * See the LICENSE file in the root directory of this source tree.
189
- */const Jm=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],Zm=B("smartphone",Jm);/**
190
- * @license lucide-react v0.555.0 - ISC
191
- *
192
- * This source code is licensed under the ISC license.
193
- * See the LICENSE file in the root directory of this source tree.
194
- */const ey=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],ty=B("triangle-alert",ey);/**
195
- * @license lucide-react v0.555.0 - ISC
196
- *
197
- * This source code is licensed under the ISC license.
198
- * See the LICENSE file in the root directory of this source tree.
199
- */const ny=[["path",{d:"m17 2-5 5-5-5",key:"16satq"}],["rect",{width:"20",height:"15",x:"2",y:"7",rx:"2",key:"1e6viu"}]],ry=B("tv",ny);/**
200
- * @license lucide-react v0.555.0 - ISC
201
- *
202
- * This source code is licensed under the ISC license.
203
- * See the LICENSE file in the root directory of this source tree.
204
- */const iy=[["path",{d:"M10 15H6a4 4 0 0 0-4 4v2",key:"1nfge6"}],["path",{d:"m14.305 16.53.923-.382",key:"1itpsq"}],["path",{d:"m15.228 13.852-.923-.383",key:"eplpkm"}],["path",{d:"m16.852 12.228-.383-.923",key:"13v3q0"}],["path",{d:"m16.852 17.772-.383.924",key:"1i8mnm"}],["path",{d:"m19.148 12.228.383-.923",key:"1q8j1v"}],["path",{d:"m19.53 18.696-.382-.924",key:"vk1qj3"}],["path",{d:"m20.772 13.852.924-.383",key:"n880s0"}],["path",{d:"m20.772 16.148.924.383",key:"1g6xey"}],["circle",{cx:"18",cy:"15",r:"3",key:"gjjjvw"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],oy=B("user-cog",iy);/**
205
- * @license lucide-react v0.555.0 - ISC
206
- *
207
- * This source code is licensed under the ISC license.
208
- * See the LICENSE file in the root directory of this source tree.
209
- */const sy=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],ly=B("user",sy);/**
210
- * @license lucide-react v0.555.0 - ISC
211
- *
212
- * This source code is licensed under the ISC license.
213
- * See the LICENSE file in the root directory of this source tree.
214
- */const ay=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],uy=B("users",ay);/**
215
- * @license lucide-react v0.555.0 - ISC
216
- *
217
- * This source code is licensed under the ISC license.
218
- * See the LICENSE file in the root directory of this source tree.
219
- */const cy=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],fy=B("x",cy),$i={"X-Appium-Is-Sensitive":"true"},yt="/xenon/api/auth";class eu extends Error{constructor(t,n,r=null){super(t),this.status=n,this.retryAfterSec=r,this.name="LoginError"}}async function vv(e,t){let n;try{n=await fetch(`${yt}/login`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json",...$i},body:JSON.stringify({email:e,password:t})})}catch(r){throw new eu(r.message||"Network error",0)}if(!n.ok){const r=await n.json().catch(()=>({})),i=Number(n.headers.get("Retry-After"));throw new eu(r.error||`Login failed (${n.status})`,n.status,Number.isFinite(i)&&i>0?i:null)}}async function wv(){try{const e=await fetch(`${yt}/options`,{credentials:"include"});return e.ok?{passwordReset:(await e.json()).passwordReset==="email"?"email":"admin"}:{passwordReset:"admin"}}catch{return{passwordReset:"admin"}}}async function dy(){await fetch(`${yt}/logout`,{method:"POST",credentials:"include"})}async function py(){const e=await fetch(`${yt}/me`,{credentials:"include"});if(e.status===401)return null;if(!e.ok)throw new Error(`Failed to fetch /me (${e.status})`);return e.json()}async function kv(e,t){const n=await fetch(`${yt}/change-password`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json",...$i},body:JSON.stringify({oldPassword:e,newPassword:t})});if(!n.ok){const r=await n.json().catch(()=>({}));throw new Error(r.error||`Change password failed (${n.status})`)}}async function xv(e){const t=await fetch(`${yt}/forgot-password`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e})});if(!t.ok&&t.status!==204)throw t.status===429?new Error("Too many attempts — try again later."):new Error(`Request failed (${t.status})`)}async function Ev(e){return(await fetch(`${yt}/reset-password/check`,{method:"POST",headers:{"Content-Type":"application/json",...$i},body:JSON.stringify({token:e})})).ok}async function _v(e,t){const n=await fetch(`${yt}/reset-password`,{method:"POST",headers:{"Content-Type":"application/json",...$i},body:JSON.stringify({token:e,newPassword:t})});if(!n.ok&&n.status!==204){const r=await n.json().catch(()=>({}));throw new Error(r.error||`Reset failed (${n.status})`)}}const vl="xenon.hadSession";function hy(){try{localStorage.setItem(vl,"1")}catch{}}function my(){try{localStorage.removeItem(vl)}catch{}}function yy(){try{return localStorage.getItem(vl)==="1"}catch{return!1}}const Rf=y.createContext(null);function gy({children:e}){const[t,n]=y.useState(!0),[r,i]=y.useState(null);async function o(){try{const l=await py();l&&hy(),i(l)}finally{n(!1)}}async function s(){my(),await dy(),i(null),window.location.href="/xenon/login"}return y.useEffect(()=>{o()},[]),p.jsx(Rf.Provider,{value:{loading:t,me:r,refresh:o,signOut:s},children:e})}function wl(){const e=y.useContext(Rf);if(!e)throw new Error("useAuth must be used inside AuthProvider");return e}const De=Object.create(null);De.open="0";De.close="1";De.ping="2";De.pong="3";De.message="4";De.upgrade="5";De.noop="6";const Qr=Object.create(null);Object.keys(De).forEach(e=>{Qr[De[e]]=e});const fs={type:"error",data:"parser error"},Pf=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Nf=typeof ArrayBuffer=="function",Of=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,kl=({type:e,data:t},n,r)=>Pf&&t instanceof Blob?n?r(t):tu(t,r):Nf&&(t instanceof ArrayBuffer||Of(t))?n?r(t):tu(new Blob([t]),r):r(De[e]+(t||"")),tu=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function nu(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let yo;function vy(e,t){if(Pf&&e.data instanceof Blob)return e.data.arrayBuffer().then(nu).then(t);if(Nf&&(e.data instanceof ArrayBuffer||Of(e.data)))return t(nu(e.data));kl(e,!1,n=>{yo||(yo=new TextEncoder),t(yo.encode(n))})}const ru="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Un=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<ru.length;e++)Un[ru.charCodeAt(e)]=e;const wy=e=>{let t=e.length*.75,n=e.length,r,i=0,o,s,l,a;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const u=new ArrayBuffer(t),m=new Uint8Array(u);for(r=0;r<n;r+=4)o=Un[e.charCodeAt(r)],s=Un[e.charCodeAt(r+1)],l=Un[e.charCodeAt(r+2)],a=Un[e.charCodeAt(r+3)],m[i++]=o<<2|s>>4,m[i++]=(s&15)<<4|l>>2,m[i++]=(l&3)<<6|a&63;return u},ky=typeof ArrayBuffer=="function",xl=(e,t)=>{if(typeof e!="string")return{type:"message",data:Lf(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:xy(e.substring(1),t)}:Qr[n]?e.length>1?{type:Qr[n],data:e.substring(1)}:{type:Qr[n]}:fs},xy=(e,t)=>{if(ky){const n=wy(e);return Lf(n,t)}else return{base64:!0,data:e}},Lf=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},jf="",Ey=(e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach((o,s)=>{kl(o,!1,l=>{r[s]=l,++i===n&&t(r.join(jf))})})},_y=(e,t)=>{const n=e.split(jf),r=[];for(let i=0;i<n.length;i++){const o=xl(n[i],t);if(r.push(o),o.type==="error")break}return r};function Sy(){return new TransformStream({transform(e,t){vy(e,n=>{const r=n.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const o=new DataView(i.buffer);o.setUint8(0,126),o.setUint16(1,r)}else{i=new Uint8Array(9);const o=new DataView(i.buffer);o.setUint8(0,127),o.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}let go;function Dr(e){return e.reduce((t,n)=>t+n.length,0)}function Mr(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let i=0;i<t;i++)n[i]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function Cy(e,t){go||(go=new TextDecoder);const n=[];let r=0,i=-1,o=!1;return new TransformStream({transform(s,l){for(n.push(s);;){if(r===0){if(Dr(n)<1)break;const a=Mr(n,1);o=(a[0]&128)===128,i=a[0]&127,i<126?r=3:i===126?r=1:r=2}else if(r===1){if(Dr(n)<2)break;const a=Mr(n,2);i=new DataView(a.buffer,a.byteOffset,a.length).getUint16(0),r=3}else if(r===2){if(Dr(n)<8)break;const a=Mr(n,8),u=new DataView(a.buffer,a.byteOffset,a.length),m=u.getUint32(0);if(m>Math.pow(2,21)-1){l.enqueue(fs);break}i=m*Math.pow(2,32)+u.getUint32(4),r=3}else{if(Dr(n)<i)break;const a=Mr(n,i);l.enqueue(xl(o?a:go.decode(a),t)),r=0}if(i===0||i>e){l.enqueue(fs);break}}}})}const Af=4;function G(e){if(e)return Ty(e)}function Ty(e){for(var t in G.prototype)e[t]=G.prototype[t];return e}G.prototype.on=G.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};G.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};G.prototype.off=G.prototype.removeListener=G.prototype.removeAllListeners=G.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,i=0;i<n.length;i++)if(r=n[i],r===t||r.fn===t){n.splice(i,1);break}return n.length===0&&delete this._callbacks["$"+e],this};G.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,t)}return this};G.prototype.emitReserved=G.prototype.emit;G.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};G.prototype.hasListeners=function(e){return!!this.listeners(e).length};const Ui=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),ve=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),Ry="arraybuffer";function If(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const Py=ve.setTimeout,Ny=ve.clearTimeout;function Bi(e,t){t.useNativeTimers?(e.setTimeoutFn=Py.bind(ve),e.clearTimeoutFn=Ny.bind(ve)):(e.setTimeoutFn=ve.setTimeout.bind(ve),e.clearTimeoutFn=ve.clearTimeout.bind(ve))}const Oy=1.33;function Ly(e){return typeof e=="string"?jy(e):Math.ceil((e.byteLength||e.size)*Oy)}function jy(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function Df(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Ay(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function Iy(e){let t={},n=e.split("&");for(let r=0,i=n.length;r<i;r++){let o=n[r].split("=");t[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return t}class Dy extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class El extends G{constructor(t){super(),this.writable=!1,Bi(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,r){return super.emitReserved("error",new Dy(t,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=xl(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=Ay(t);return n.length?"?"+n:""}}class My extends El{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};_y(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,Ey(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=Df()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let Mf=!1;try{Mf=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const $y=Mf;function Uy(){}class By extends My{constructor(t){if(super(t),typeof location<"u"){const n=location.protocol==="https:";let r=location.port;r||(r=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||r!==t.port}}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(i,o)=>{this.onError("xhr post error",i,o)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class Ie extends G{constructor(t,n,r){super(),this.createRequest=t,Bi(this,r),this._opts=r,this._method=r.method||"GET",this._uri=n,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var t;const n=If(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this._opts.extraHeaders[i])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var i;r.readyState===3&&((i=this._opts.cookieJar)===null||i===void 0||i.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(i){this.setTimeoutFn(()=>{this._onError(i)},0);return}typeof document<"u"&&(this._index=Ie.requestsCount++,Ie.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=Uy,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Ie.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Ie.requestsCount=0;Ie.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",iu);else if(typeof addEventListener=="function"){const e="onpagehide"in ve?"pagehide":"unload";addEventListener(e,iu,!1)}}function iu(){for(let e in Ie.requests)Ie.requests.hasOwnProperty(e)&&Ie.requests[e].abort()}const zy=function(){const e=$f({xdomain:!1});return e&&e.responseType!==null}();class by extends By{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=zy&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Ie($f,this.uri(),t)}}function $f(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||$y))return new XMLHttpRequest}catch{}if(!t)try{return new ve[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const Uf=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Fy extends El{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,r=Uf?{}:If(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],i=n===t.length-1;kl(r,this.supportsBinary,o=>{try{this.doWrite(r,o)}catch{}i&&Ui(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=Df()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const vo=ve.WebSocket||ve.MozWebSocket;class Vy extends Fy{createSocket(t,n,r){return Uf?new vo(t,n,r):n?new vo(t,n):new vo(t)}doWrite(t,n){this.ws.send(n)}}class qy extends El{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=Cy(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),i=Sy();i.readable.pipeTo(t.writable),this._writer=i.writable.getWriter();const o=()=>{r.read().then(({done:l,value:a})=>{l||(this.onPacket(a),o())}).catch(l=>{})};o();const s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this._writer.write(s).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],i=n===t.length-1;this._writer.write(r).then(()=>{i&&Ui(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const Wy={websocket:Vy,webtransport:qy,polling:by},Hy=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Ky=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function ds(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=Hy.exec(e||""),o={},s=14;for(;s--;)o[Ky[s]]=i[s]||"";return n!=-1&&r!=-1&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=Qy(o,o.path),o.queryKey=Gy(o,o.query),o}function Qy(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function Gy(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,o){i&&(n[i]=o)}),n}const ps=typeof addEventListener=="function"&&typeof removeEventListener=="function",Gr=[];ps&&addEventListener("offline",()=>{Gr.forEach(e=>e())},!1);class lt extends G{constructor(t,n){if(super(),this.binaryType=Ry,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const r=ds(t);n.hostname=r.host,n.secure=r.protocol==="https"||r.protocol==="wss",n.port=r.port,r.query&&(n.query=r.query)}else n.host&&(n.hostname=ds(n.host).host);Bi(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(r=>{const i=r.prototype.name;this.transports.push(i),this._transportsByName[i]=r}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Iy(this.opts.query)),ps&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Gr.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=Af,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&lt.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",lt.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const i=this.writeBuffer[r].data;if(i&&(n+=Ly(i)),r>0&&n>this._maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,Ui(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,r){return this._sendPacket("message",t,n,r),this}send(t,n,r){return this._sendPacket("message",t,n,r),this}_sendPacket(t,n,r,i){if(typeof n=="function"&&(i=n,n=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const o={type:t,data:n,options:r};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),i&&this.once("flush",i),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}_onError(t){if(lt.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),ps&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=Gr.indexOf(this._offlineEventListener);r!==-1&&Gr.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}lt.protocol=Af;class Yy extends lt{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),r=!1;lt.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",v=>{if(!r)if(v.type==="pong"&&v.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;lt.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(m(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const h=new Error("probe error");h.transport=n.name,this.emitReserved("upgradeError",h)}}))};function o(){r||(r=!0,m(),n.close(),n=null)}const s=v=>{const h=new Error("probe error: "+v);h.transport=n.name,o(),this.emitReserved("upgradeError",h)};function l(){s("transport closed")}function a(){s("socket closed")}function u(v){n&&v.name!==n.name&&o()}const m=()=>{n.removeListener("open",i),n.removeListener("error",s),n.removeListener("close",l),this.off("close",a),this.off("upgrading",u)};n.once("open",i),n.once("error",s),n.once("close",l),this.once("close",a),this.once("upgrading",u),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let r=0;r<t.length;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}}let Xy=class extends Yy{constructor(t,n={}){const r=typeof t=="object"?t:n;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(i=>Wy[i]).filter(i=>!!i)),super(t,r)}};function Jy(e,t="",n){let r=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),r=ds(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const o=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+o+":"+r.port+t,r.href=r.protocol+"://"+o+(n&&n.port===r.port?"":":"+r.port),r}const Zy=typeof ArrayBuffer=="function",eg=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,Bf=Object.prototype.toString,tg=typeof Blob=="function"||typeof Blob<"u"&&Bf.call(Blob)==="[object BlobConstructor]",ng=typeof File=="function"||typeof File<"u"&&Bf.call(File)==="[object FileConstructor]";function _l(e){return Zy&&(e instanceof ArrayBuffer||eg(e))||tg&&e instanceof Blob||ng&&e instanceof File}function Yr(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(Yr(e[n]))return!0;return!1}if(_l(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Yr(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&Yr(e[n]))return!0;return!1}function rg(e){const t=[],n=e.data,r=e;return r.data=hs(n,t),r.attachments=t.length,{packet:r,buffers:t}}function hs(e,t){if(!e)return e;if(_l(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=hs(e[r],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=hs(e[r],t));return n}return e}function ig(e,t){return e.data=ms(e.data,t),delete e.attachments,e}function ms(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=ms(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=ms(e[n],t));return e}const og=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var D;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(D||(D={}));class sg{constructor(t){this.replacer=t}encode(t){return(t.type===D.EVENT||t.type===D.ACK)&&Yr(t)?this.encodeAsBinary({type:t.type===D.EVENT?D.BINARY_EVENT:D.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===D.BINARY_EVENT||t.type===D.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=rg(t),r=this.encodeAsString(n.packet),i=n.buffers;return i.unshift(r),i}}class Sl extends G{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const r=n.type===D.BINARY_EVENT;r||n.type===D.BINARY_ACK?(n.type=r?D.EVENT:D.ACK,this.reconstructor=new lg(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(_l(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const r={type:Number(t.charAt(0))};if(D[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===D.BINARY_EVENT||r.type===D.BINARY_ACK){const o=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const s=t.substring(o,n);if(s!=Number(s)||t.charAt(n)!=="-")throw new Error("Illegal attachments");r.attachments=Number(s)}if(t.charAt(n+1)==="/"){const o=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(o,n)}else r.nsp="/";const i=t.charAt(n+1);if(i!==""&&Number(i)==i){const o=n+1;for(;++n;){const s=t.charAt(n);if(s==null||Number(s)!=s){--n;break}if(n===t.length)break}r.id=Number(t.substring(o,n+1))}if(t.charAt(++n)){const o=this.tryParse(t.substr(n));if(Sl.isPayloadValid(r.type,o))r.data=o;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case D.CONNECT:return ou(n);case D.DISCONNECT:return n===void 0;case D.CONNECT_ERROR:return typeof n=="string"||ou(n);case D.EVENT:case D.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&og.indexOf(n[0])===-1);case D.ACK:case D.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class lg{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=ig(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function ou(e){return Object.prototype.toString.call(e)==="[object Object]"}const ag=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Sl,Encoder:sg,get PacketType(){return D}},Symbol.toStringTag,{value:"Module"}));function Re(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const ug=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class zf extends G{constructor(t,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[Re(t,"open",this.onopen.bind(this)),Re(t,"packet",this.onpacket.bind(this)),Re(t,"error",this.onerror.bind(this)),Re(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){var r,i,o;if(ug.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const s={type:D.EVENT,data:n};if(s.options={},s.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const m=this.ids++,v=n.pop();this._registerAckCallback(m,v),s.id=m}const l=(i=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||i===void 0?void 0:i.writable,a=this.connected&&!(!((o=this.io.engine)===null||o===void 0)&&o._hasPingExpired());return this.flags.volatile&&!l||(a?(this.notifyOutgoingListeners(s),this.packet(s)):this.sendBuffer.push(s)),this.flags={},this}_registerAckCallback(t,n){var r;const i=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(i===void 0){this.acks[t]=n;return}const o=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let l=0;l<this.sendBuffer.length;l++)this.sendBuffer[l].id===t&&this.sendBuffer.splice(l,1);n.call(this,new Error("operation has timed out"))},i),s=(...l)=>{this.io.clearTimeoutFn(o),n.apply(this,l)};s.withError=!0,this.acks[t]=s}emitWithAck(t,...n){return new Promise((r,i)=>{const o=(s,l)=>s?i(s):r(l);o.withError=!0,n.push(o),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((i,...o)=>(this._queue[0],i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...o)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:D.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case D.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case D.EVENT:case D.BINARY_EVENT:this.onevent(t);break;case D.ACK:case D.BINARY_ACK:this.onack(t);break;case D.DISCONNECT:this.ondisconnect();break;case D.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...i){r||(r=!0,n.packet({type:D.ACK,id:t,data:i}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:D.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,t.data)}}}function yn(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}yn.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};yn.prototype.reset=function(){this.attempts=0};yn.prototype.setMin=function(e){this.ms=e};yn.prototype.setMax=function(e){this.max=e};yn.prototype.setJitter=function(e){this.jitter=e};class ys extends G{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Bi(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new yn({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const i=n.parser||ag;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new Xy(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=Re(n,"open",function(){r.onopen(),t&&t()}),o=l=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",l),t?t(l):this.maybeReconnectOnOpen()},s=Re(n,"error",o);if(this._timeout!==!1){const l=this._timeout,a=this.setTimeoutFn(()=>{i(),o(new Error("timeout")),n.close()},l);this.opts.autoUnref&&a.unref(),this.subs.push(()=>{this.clearTimeoutFn(a)})}return this.subs.push(i),this.subs.push(s),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Re(t,"ping",this.onping.bind(this)),Re(t,"data",this.ondata.bind(this)),Re(t,"error",this.onerror.bind(this)),Re(t,"close",this.onclose.bind(this)),Re(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){Ui(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new zf(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(i=>{i?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",i)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Ln={};function Xr(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=Jy(e,t.path||"/socket.io"),r=n.source,i=n.id,o=n.path,s=Ln[i]&&o in Ln[i].nsps,l=t.forceNew||t["force new connection"]||t.multiplex===!1||s;let a;return l?a=new ys(r,t):(Ln[i]||(Ln[i]=new ys(r,t)),a=Ln[i]),n.query&&!t.query&&(t.query=n.queryKey),a.socket(n.path,t)}Object.assign(Xr,{Manager:ys,Socket:zf,io:Xr,connect:Xr});let wo=null;const Bn=new Map;function cg(e,t){const n=Bn.get(e);n&&Array.from(n).forEach(r=>r(t))}function fg(){if(wo)return wo;const e=Xr(window.location.origin,{path:"/socket.io",reconnection:!0,withCredentials:!0});return e.on("connect",()=>{console.log("[Socket] Connected to Hub"),e.emit("register_dashboard")}),e.on("disconnect",()=>{console.log("[Socket] Disconnected from Hub")}),e.onAny((t,n)=>cg(t,n)),wo=e,e}function dg(e,t){let n=Bn.get(e);return n||(n=new Set,Bn.set(e,n)),n.add(t),()=>{const r=Bn.get(e);r&&(r.delete(t),r.size===0&&Bn.delete(e))}}const pg=()=>{const[e]=y.useState(fg),[t,n]=y.useState(e.connected);y.useEffect(()=>{const i=()=>n(!0),o=()=>n(!1);return e.on("connect",i),e.on("disconnect",o),n(e.connected),()=>{e.off("connect",i),e.off("disconnect",o)}},[e]);const r=y.useCallback((i,o)=>dg(i,o),[]);return{socket:e,isConnected:t,on:r}},hg=6e4;function mg(e,t,n,r=!0){if(e)return{tone:"live",label:"Live",title:"Connected to the Xenon server. Updates stream in as they happen."};const i=t??n;if(n-i<hg)return r?{tone:"reconnecting",label:"Reconnecting…",title:"Lost the connection to the Xenon server. Retrying automatically."}:{tone:"reconnecting",label:"Connecting…",title:"Connecting to the Xenon server."};const o=new Date(i).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"});return{tone:"down",label:`Disconnected · since ${o}`,title:`No connection to the Xenon server since ${o}. What's on screen may be out of date.`}}function yg(){const{isConnected:e}=pg(),[t,n]=y.useState(null),[r,i]=y.useState(()=>Date.now()),[o,s]=y.useState(e);return y.useEffect(()=>{n(e?null:Date.now()),e&&s(!0)},[e]),y.useEffect(()=>{if(e)return;const l=window.setInterval(()=>i(Date.now()),5e3);return()=>window.clearInterval(l)},[e]),mg(e,t,r,o)}const bf="xenon.theme",su="dark",Ff="(prefers-color-scheme: light)";function gg(){try{const e=localStorage.getItem(bf);return e==="light"||e==="system"||e==="dark"?e:su}catch{return su}}function Vf(e,t){return e==="system"?t?"light":"dark":e}function vg(){return typeof window.matchMedia=="function"&&window.matchMedia(Ff).matches}function qf(e){document.documentElement.setAttribute("data-theme",e)}function wg(e){try{localStorage.setItem(bf,e)}catch{}qf(Vf(e,vg()))}function kg(){const[e,t]=y.useState(gg);return y.useEffect(()=>{var o;if(e!=="system"||typeof window.matchMedia!="function")return;const r=window.matchMedia(Ff),i=()=>qf(Vf("system",r.matches));return(o=r.addEventListener)==null||o.call(r,"change",i),()=>{var s;return(s=r.removeEventListener)==null?void 0:s.call(r,"change",i)}},[e]),[e,r=>{wg(r),t(r)}]}function xg({className:e,alt:t="Xenon"}){const n="/xenon/";return p.jsxs(p.Fragment,{children:[p.jsx("img",{src:`${n}logo.svg`,alt:t,className:`logo-for-dark ${e??""}`}),p.jsx("img",{src:`${n}logo-light.svg`,alt:t,className:`logo-for-light ${e??""}`})]})}const Eg=[{value:"dark",label:"Dark"},{value:"light",label:"Light"},{value:"system",label:"System"}],_g=()=>{const e=mn(),{me:t,signOut:n}=wl(),r=yg(),[i,o]=kg(),[s,l]=y.useState(!1),a=y.useRef(null),u=((t==null?void 0:t.name)??"A").split(" ").map(h=>h[0]).slice(0,2).join("").toUpperCase(),m=(t==null?void 0:t.role)==="SUPER_ADMIN"?"Super admin":(t==null?void 0:t.role)==="ADMIN"?"Admin":"Member";y.useEffect(()=>{const h=E=>{a.current&&!a.current.contains(E.target)&&l(!1)};return document.addEventListener("mousedown",h),()=>document.removeEventListener("mousedown",h)},[]);const v=()=>window.dispatchEvent(new CustomEvent("xenon.open-command-palette"));return p.jsx("header",{className:"fixed top-0 left-14 right-0 z-20 h-14 border-b border-[var(--border)] bg-[var(--bg)]/80 backdrop-blur-md",children:p.jsxs("div",{className:"flex items-center h-full px-4 gap-4",children:[p.jsx("button",{type:"button",onClick:()=>e("/overview"),className:"flex items-center gap-3 min-w-0 cursor-pointer","aria-label":"Xenon home",children:p.jsx("div",{className:"flex items-center gap-2",children:p.jsx(xg,{alt:"Xenon Logo",className:"h-8 w-auto object-contain"})})}),p.jsx("div",{className:"flex-1 max-w-xl mx-auto",children:p.jsxs("button",{type:"button",onClick:v,className:"relative w-full h-9 flex items-center text-left","aria-label":"Open command palette",children:[p.jsx("div",{className:"w-full h-9 pl-9 pr-14 rounded-md bg-[var(--surface)] border border-[var(--border)] text-sm text-[var(--text-dim)] hover:border-[var(--border-strong)] hover:text-[var(--text)] transition-colors flex items-center",children:"Search devices, sessions, settings…"}),p.jsx(Tf,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-[var(--text-dim)]"}),p.jsx("kbd",{className:"absolute right-3 top-1/2 -translate-y-1/2 font-mono text-[10px] text-[var(--text-dim)] border border-[var(--border)] rounded px-1.5 py-0.5",children:"⌘K"})]})}),p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsxs("div",{role:"status",title:r.title,className:`flex items-center gap-1.5 px-2.5 py-1 rounded-full border ${r.tone==="live"?"bg-[var(--color-success)]/10 border-[var(--color-success)]/20 text-[var(--color-success)]":r.tone==="reconnecting"?"bg-[var(--amber)]/10 border-[var(--amber)]/25 text-[var(--amber)]":"bg-[var(--red)]/10 border-[var(--red)]/25 text-[var(--red)]"}`,children:[p.jsx("span",{className:`h-1.5 w-1.5 rounded-full bg-current ${r.tone==="live"?"pulse-dot":""}`,"aria-hidden":"true"}),p.jsx("span",{className:"text-[11px] font-medium",children:r.label})]}),p.jsxs("div",{className:"relative",ref:a,children:[p.jsxs("button",{type:"button",className:"flex items-center gap-2 h-9 pl-1.5 pr-2.5 rounded-md border border-[var(--border)] hover:border-[var(--border-strong)] hover:bg-[var(--surface)] transition-colors",onClick:()=>l(h=>!h),"aria-haspopup":"true","aria-expanded":s,children:[p.jsx("span",{className:"h-6 w-6 rounded-full bg-[var(--color-accent)]/15 text-[var(--color-accent)] text-[11px] font-semibold flex items-center justify-center",children:u}),p.jsxs("span",{className:"flex flex-col items-start leading-tight",children:[p.jsx("span",{className:"text-xs text-[var(--text)]",children:(t==null?void 0:t.name)??"Account"}),p.jsx("span",{className:"text-[10px] text-[var(--text-dim)]",children:m})]}),p.jsx(Cm,{className:"h-3.5 w-3.5 text-[var(--text-dim)]"})]}),s&&p.jsxs("div",{className:"absolute top-full right-0 mt-2 w-64 rounded-md border border-[var(--border)] bg-[var(--surface)] shadow-lg overflow-hidden",children:[p.jsxs("div",{className:"px-3 py-2",children:[p.jsx("div",{className:"text-[11px] text-[var(--text-dim)] mb-1",children:"System"}),p.jsxs("div",{className:"flex items-center justify-between text-xs text-[var(--text)]",children:[p.jsx("span",{className:"text-[var(--text-muted)]",children:"Version"}),p.jsxs("span",{className:"font-mono text-[var(--text-muted)]",children:["v","2.11.1"]})]})]}),p.jsx("div",{className:"h-px bg-[var(--border)]"}),p.jsxs("div",{className:"px-3 py-2 flex items-center justify-between gap-2",children:[p.jsx("span",{id:"theme-label",className:"text-xs text-[var(--text-muted)]",children:"Theme"}),p.jsx("div",{className:"seg seg-sm",role:"radiogroup","aria-labelledby":"theme-label",children:Eg.map(h=>p.jsx("button",{type:"button",role:"radio","aria-checked":i===h.value,className:`seg-btn${i===h.value?" seg-btn-active":""}`,onClick:()=>o(h.value),children:h.label},h.value))})]}),p.jsx("div",{className:"h-px bg-[var(--border)]"}),p.jsxs("button",{type:"button",onClick:()=>{l(!1),e("/profile")},className:"w-full flex items-center gap-2 px-3 py-2 text-xs text-[var(--text)] hover:bg-[var(--bg)] text-left",children:[p.jsx(ly,{className:"h-3.5 w-3.5 text-[var(--text-dim)]"}),"Profile"]}),t!=null&&t.authDisabled?p.jsx("p",{className:"px-3 py-2 text-xs text-[var(--text-muted)]",children:"Sign-in is off on this server."}):p.jsxs("button",{type:"button",onClick:()=>{l(!1),n()},className:"w-full flex items-center gap-2 px-3 py-2 text-xs text-[var(--red)] hover:bg-[var(--bg)] text-left",children:[p.jsx(Vm,{className:"h-3.5 w-3.5"}),"Logout"]})]})]})]})]})})};class Sg extends y.Component{constructor(){super(...arguments),this.state={hasError:!1},this.handleReset=()=>{this.setState({hasError:!1}),window.location.reload()}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Uncaught error:",t,n)}render(){return this.state.hasError?this.props.fallback||p.jsxs("div",{className:"error-boundary-container",style:{padding:"4rem 2rem",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",gap:"1.5rem",color:"var(--text)",background:"var(--bg-main)",minHeight:"100vh"},children:[p.jsx("div",{style:{color:"var(--accent-red)"},children:p.jsx(ty,{size:64})}),p.jsx("h2",{style:{fontSize:"2rem",fontWeight:700,margin:0},children:"Component exception detected"}),p.jsx("p",{style:{color:"var(--text-muted)",maxWidth:"500px",lineHeight:1.6},children:"An unexpected error occurred while rendering this section. Xenon's isolation engine has contained the fault to prevent a total system crash."}),this.state.error&&p.jsx("pre",{style:{background:"rgb(var(--rgb-black) / 0.3)",padding:"1rem",borderRadius:"8px",fontSize:"0.8rem",color:"var(--accent-red)",maxWidth:"80%",overflowX:"auto"},children:this.state.error.message}),p.jsxs("button",{onClick:this.handleReset,style:{background:"var(--color-accent)",color:"var(--secondary)",border:"none",padding:"0.75rem 2rem",borderRadius:"8px",fontWeight:700,cursor:"pointer",display:"flex",alignItems:"center",gap:"0.5rem",transition:"all 0.2s"},onMouseOver:t=>t.currentTarget.style.transform="translateY(-2px)",onMouseOut:t=>t.currentTarget.style.transform="translateY(0)",children:[p.jsx(Cf,{size:18}),"Reload application"]})]}):this.props.children}}const Cg=y.lazy(()=>V(()=>import("./overview-ClDfJNL5.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]))),lu=y.lazy(()=>V(()=>import("./device-explorer-Dl1QGKQN.js"),__vite__mapDeps([8,6,7,9,10,5,11,1,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,3,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,2,43,44,45,46]))),au=y.lazy(()=>V(()=>import("./builds-page-BIWuhGph.js"),__vite__mapDeps([47,48,32,49,13,50,33,12,14,39,1,38,37,34,3,4,51,6,7,15,16,52,53]))),Tg=y.lazy(()=>V(()=>import("./session-detail-page-DN8MPDsL.js"),__vite__mapDeps([54,48,32,42,34,1,9,10,38,37,51,27,55,2,56,57,52,53,5,58,39,30,31,21,18,22,59]))),Rg=y.lazy(()=>V(()=>import("./runbook-page-BXe7SL5K.js"),__vite__mapDeps([60,42,61]))),Pg=y.lazy(()=>V(()=>import("./apps-DQnxhScG.js"),__vite__mapDeps([62,32,12,13,14,6,7,15,16,21,18,22,23,24,41,19,27,36,39,40,63]))),Ng=y.lazy(()=>V(()=>import("./webhook-settings-CJxMc7-Q.js"),__vite__mapDeps([64,23,24,6,7,40,26,38,37,36,5,65,66])).then(e=>({default:e.WebhookSettings}))),Og=y.lazy(()=>V(()=>import("./settings-rFQ6qW9Q.js"),__vite__mapDeps([67,68,12,13,14,69,21,18,22,6,7,37,25,35,19,5,70,55,66])).then(e=>({default:e.Settings}))),Lg=y.lazy(()=>V(()=>import("./ai-settings-iPPNZMnS.js"),__vite__mapDeps([71,68,12,13,14,69,6,7,43,37,5,66])).then(e=>({default:e.AISettings}))),jg=y.lazy(()=>V(()=>import("./maintenance-settings-C7pWE0--.js"),__vite__mapDeps([72,68,12,13,14,69,6,7,40,19,70,66])).then(e=>({default:e.MaintenanceSettings}))),Ag=y.lazy(()=>V(()=>import("./api-keys-DS979X_e.js"),__vite__mapDeps([73,32,30,31,23,24,6,7,21,18,22,12,13,14,49,50,15,16,26,40,19,27,66])).then(e=>({default:e.ApiKeys}))),Ig=y.lazy(()=>V(()=>import("./teams-DkFhPU6N.js"),__vite__mapDeps([74,32,30,31,23,24,6,7,21,18,22,12,13,14,49,50,15,16,75,26,42,40,66])).then(e=>({default:e.Teams}))),Dg=y.lazy(()=>V(()=>import("./selector-health-page-BP4XhSI4.js"),__vite__mapDeps([76,6,7,28,29,12,13,14,51,56,57,52,53,49,50,15,16,77,1,21,18,22,19,27]))),Mg=y.lazy(()=>V(()=>import("./selector-detail-redirect-D_aNBNim.js"),__vite__mapDeps([78,77]))),$g=y.lazy(()=>V(()=>import("./DeviceMosaicView-C9AypMcW.js"),__vite__mapDeps([79,1,37,11,80,58,26,28,29,81,39,12,13,14,25,6,7]))),Ug=y.lazy(()=>V(()=>import("./profile-page-Ckx1bcSx.js"),__vite__mapDeps([82,6,7,32,15,13,16,27,40]))),Bg=y.lazy(()=>V(()=>import("./users-Bu1HulwN.js"),__vite__mapDeps([83,75,32,6,7,12,13,14,49,50,15,16,26,40]))),zg=y.lazy(()=>V(()=>import("./RecordingsPage-FAUS-RwG.js"),__vite__mapDeps([84,6,7,30,31,12,13,14,52,53,49,50,44,17,18,19,20,26,45,81,85,86]))),bg=y.lazy(()=>V(()=>import("./RecordingPage-FIRd8b5d.js"),__vite__mapDeps([87,81,6,7,12,13,14,52,53,21,18,22,17,19,20,80,85,86,42,40,39]))),Fg=()=>p.jsxs("div",{className:"flex items-center justify-center gap-2 h-full text-xs text-[var(--text-dim)]",children:[p.jsx(Cf,{className:"animate-spin",size:14}),p.jsx("span",{children:"Hydrating view…"})]}),Vg=()=>p.jsx(Sg,{children:p.jsx(y.Suspense,{fallback:p.jsx(Fg,{}),children:p.jsxs(_f,{children:[p.jsx($,{path:"/",element:p.jsx(qt,{to:"/overview",replace:!0})}),p.jsx($,{path:"/overview",element:p.jsx(Cg,{})}),p.jsx($,{path:"/devices",element:p.jsx(lu,{})}),p.jsx($,{path:"/devices/:udid/control/:tab?",element:p.jsx(lu,{})}),p.jsx($,{path:"/apps",element:p.jsx(Pg,{})}),p.jsx($,{path:"/sessions",element:p.jsx(qt,{to:"/builds",replace:!0})}),p.jsx($,{path:"/sessions/*",element:p.jsx(qt,{to:"/builds",replace:!0})}),p.jsx($,{path:"/builds",element:p.jsx(au,{})}),p.jsx($,{path:"/builds/:buildId",element:p.jsx(au,{})}),p.jsx($,{path:"/builds/:buildId/sessions/:sessionId",element:p.jsx(Tg,{})}),p.jsx($,{path:"/notifications",element:p.jsx(Ng,{})}),p.jsx($,{path:"/settings",element:p.jsx(Og,{})}),p.jsx($,{path:"/ai-settings",element:p.jsx(Lg,{})}),p.jsx($,{path:"/maintenance",element:p.jsx(jg,{})}),p.jsx($,{path:"/api-keys",element:p.jsx(Ag,{})}),p.jsx($,{path:"/teams",element:p.jsx(Ig,{})}),p.jsx($,{path:"/users",element:p.jsx(Bg,{})}),p.jsx($,{path:"/selector-health",element:p.jsx(Dg,{})}),p.jsx($,{path:"/selector-health/detail",element:p.jsx(Mg,{})}),p.jsx($,{path:"/devices/live",element:p.jsx($g,{})}),p.jsx($,{path:"/recordings",element:p.jsx(zg,{})}),p.jsx($,{path:"/recordings/:groupId",element:p.jsx(bg,{})}),p.jsx($,{path:"/runbooks/:category",element:p.jsx(Rg,{})}),p.jsx($,{path:"/profile",element:p.jsx(Ug,{})}),p.jsx($,{path:"*",element:p.jsx(qt,{to:"/overview",replace:!0})})]})})});let hr=null;function uu(e){hr=e}const qg=new Set(["device_held_by_another_user","device_in_use_by_session"]),Wg=new Set(["not_available_through_hub","not_available_for_cloud_phone"]);function Hg(e){return!e||typeof e!="object"?!1:qg.has(e.error??"")}const Kg=5e3,cu=new Map;function fu(e){if(!hr)return;const t=Date.now(),n=cu.get(e)??0;t-n<Kg||(cu.set(e,t),hr(e,"error"))}class Wf extends Error{constructor(t,n,r){super(t),this.status=n,this.body=r,this.name="ApiError"}}async function ko(e,t){if(e.status===403){const n=await e.clone().json().catch(()=>({})),r=n&&(n.error||n.message)||"You do not have permission for this action.";hr&&hr(r,"error")}if(e.status===409){const n=await e.clone().json().catch(()=>({}));Hg(n)&&fu(n.message||"This device is in use by another user.")}if(e.status===501){const n=await e.clone().json().catch(()=>({}));Wg.has(n==null?void 0:n.error)&&n.message&&fu(n.message)}if(e.status===204||e.status===205)return null;if(t&&(e.status<200||e.status>=300)){const n=await e.json().catch(()=>null),r=n&&typeof n=="object"&&(n.error||n.message)||`Request failed (${e.status})`;throw new Wf(String(r),e.status,n)}return e.json()}class Qg{makeGETRequest(t){return fetch(this.formatUrl(t)).then(n=>ko(n,!1))}makePOSTRequest(t,n,r,i={},o={}){return fetch(this.formatUrl(t),{method:"POST",body:JSON.stringify(r||{}),headers:{"Content-Type":"application/json"},...i}).then(s=>ko(s,!o.resolveErrors))}makeDELETERequest(t,n={}){return fetch(this.formatUrl(t),{method:"DELETE"}).then(r=>ko(r,!n.resolveErrors))}formatUrl(t){return`/xenon/api${t}`}}const R=new Qg;function Cv(e){return e instanceof Wf?`The server rejected the change: ${e.message}`:"Couldn't reach the Xenon server. Check your connection and try again."}const Hf=y.createContext(void 0),Tv=()=>{const e=y.useContext(Hf);if(!e)throw new Error("useToast must be used within a ToastProvider");return e},Gg=({children:e})=>{const[t,n]=y.useState([]),r=y.useCallback(o=>{n(s=>s.filter(l=>l.id!==o))},[]),i=y.useCallback((o,s="info",l=4e3)=>{const a=Math.random().toString(36).substring(2,9);return n(u=>[...u,{id:a,message:o,type:s,duration:l}]),s!=="loading"&&l>0&&setTimeout(()=>{r(a)},l),a},[r]);return y.useEffect(()=>(uu((o,s="info")=>i(o,s)),()=>uu(null)),[i]),p.jsxs(Hf.Provider,{value:{toast:i,removeToast:r},children:[e,p.jsx("div",{className:"toast-container","aria-live":"polite","aria-atomic":"true",role:"status",children:t.map(o=>p.jsxs("div",{className:`toast-item toast-${o.type} animate-slide-in`,children:[p.jsxs("div",{className:"toast-icon",children:[o.type==="success"&&p.jsx(Nm,{size:18}),o.type==="error"&&p.jsx(Rm,{size:18}),o.type==="info"&&p.jsx(Dm,{size:18}),o.type==="loading"&&p.jsx(bm,{size:18,className:"animate-spin"})]}),p.jsx("div",{className:"toast-message",children:o.message}),p.jsx("button",{className:"toast-close",onClick:()=>r(o.id),"aria-label":`Close ${o.type} notification`,children:p.jsx(fy,{size:14})})]},o.id))})]})},Yg=[{id:"overview",label:"Overview",icon:Bm,path:"/overview"},{id:"devices",label:"Devices",icon:Zm,path:"/devices"},{id:"live-devices",label:"Live devices",icon:ry,path:"/devices/live"},{id:"recordings",label:"Recordings",icon:Lm,path:"/recordings"},{id:"apps",label:"Apps",icon:gm,path:"/apps"},{id:"sessions",label:"Sessions",icon:Wm,path:"/builds"},{id:"selector-health",label:"Selector health",icon:Am,path:"/selector-health"},{id:"notifications",label:"Notifications",icon:wm,path:"/notifications"},{id:"settings",label:"Settings",icon:Gm,path:"/settings",minRole:"ADMIN"},{id:"ai",label:"AI engine",icon:_m,path:"/ai-settings",minRole:"ADMIN"},{id:"maintenance",label:"Maintenance",icon:Xm,path:"/maintenance",minRole:"ADMIN"},{id:"teams",label:"Teams",icon:uy,path:"/teams",minRole:"ADMIN"},{id:"users",label:"Users",icon:oy,path:"/users",minRole:"ADMIN"},{id:"apikeys",label:"API keys",icon:$m,path:"/api-keys",minRole:"ADMIN"}],du={SUPER_ADMIN:3,ADMIN:2,MEMBER:1};function Xg(e,t){return t?(e?du[e]??0:0)>=du[t]:!0}const Jg=()=>{const e=mn(),t=We(),{me:n}=wl(),r=Yg.filter(l=>Xg(n==null?void 0:n.role,l.minRole)),i=t.pathname.replace(/\/$/,"")||"/",o=r.filter(l=>i===l.path||i.startsWith(l.path+"/")).sort((l,a)=>a.path.length-l.path.length)[0],s=l=>(o==null?void 0:o.path)===l;return p.jsxs("aside",{className:"fixed inset-y-0 left-0 z-30 w-14 border-r border-[var(--border)] bg-[var(--surface)] flex flex-col items-center py-3",children:[p.jsx("nav",{className:"flex-1 flex flex-col gap-1 w-full items-center",children:r.map(l=>{const a=l.icon,u=s(l.path);return p.jsxs("button",{type:"button",onClick:()=>e(l.path),className:`group relative w-full flex justify-center py-2.5 mx-1 rounded-md transition-colors ${u?"bg-[var(--surface-2)]":"hover:bg-[var(--surface-2)]/60"}`,"aria-label":l.label,"aria-current":u?"page":void 0,children:[p.jsx("span",{className:`absolute left-0 top-1 bottom-1 w-[3px] rounded-r transition-all ${u?"bg-[var(--color-accent)]":"bg-transparent"}`}),p.jsx(a,{className:`h-[18px] w-[18px] transition-colors ${u?"text-[var(--color-accent)]":"text-[var(--text-dim)] group-hover:text-[var(--text)]"}`,strokeWidth:u?2.25:2}),p.jsx("span",{className:"pointer-events-none absolute left-full ml-2 top-1/2 -translate-y-1/2 whitespace-nowrap rounded-md bg-[var(--surface-2)] border border-[var(--border-strong)] px-2 py-1 text-xs text-[var(--text)] opacity-0 group-hover:opacity-100 transition-opacity z-50 shadow-lg",children:l.label})]},l.id)})}),p.jsxs("button",{type:"button",className:"group relative w-full flex justify-center py-2.5 mt-2","aria-label":"API docs",onClick:()=>window.open(window.location.origin+"/xenon/api-docs","_blank"),children:[p.jsx(xm,{className:"h-[18px] w-[18px] text-[var(--text-dim)] group-hover:text-[var(--text)] transition-colors"}),p.jsx("span",{className:"pointer-events-none absolute left-full ml-2 top-1/2 -translate-y-1/2 whitespace-nowrap rounded-md bg-[var(--surface-2)] border border-[var(--border-strong)] px-2 py-1 text-xs text-[var(--text)] opacity-0 group-hover:opacity-100 transition-opacity z-50 shadow-lg",children:"API docs"})]})]})};class jn{static getDevices(){return R.makeGETRequest(`/device?t=${Date.now()}`)}static getPendingSessionsCount(){return R.makeGETRequest("/queue/length")}static getPendingSessions(){return R.makeGETRequest("/queue")}static getQueueSummary(){return R.makeGETRequest("/queue/summary")}static getQueueStatus(t){return R.makeGETRequest(`/queue/status/${t}`)}static getBuilds(){return R.makeGETRequest("/build")}static getSessions(t={}){var i;let r=`/session?t=${Date.now()}`;return t.buildId&&(r+=`&buildId=${encodeURIComponent(t.buildId)}`),t.since&&(r+=`&since=${encodeURIComponent(t.since)}`),t.limit&&(r+=`&limit=${t.limit}`),t.before&&(r+=`&before=${encodeURIComponent(t.before)}`),t.beforeId&&(r+=`&beforeId=${encodeURIComponent(t.beforeId)}`),t.query&&(r+=`&query=${encodeURIComponent(t.query)}`),t.status&&(r+=`&status=${encodeURIComponent(t.status)}`),t.platform&&(r+=`&platform=${encodeURIComponent(t.platform)}`),(i=t.ids)!=null&&i.length&&(r+=`&ids=${t.ids.map(encodeURIComponent).join(",")}`),R.makeGETRequest(r)}static getSessionSummary(t={}){let n=`/session-summary?t=${Date.now()}`;return t.since&&(n+=`&since=${encodeURIComponent(t.since)}`),t.buildId&&(n+=`&buildId=${encodeURIComponent(t.buildId)}`),R.makeGETRequest(n)}static getSession(t){return R.makeGETRequest(`/session/${t}`)}static getSessionLogs(t){return R.makeGETRequest(`/session/${t}/session_log`)}static getDeviceLogs(t){return R.makeGETRequest(`/session/${t}/logs/device`)}static getDebugLogs(t){return R.makeGETRequest(`/session/${t}/logs/debug`)}static getProfilingData(t){return R.makeGETRequest(`/session/${t}/profiling`)}static getSessionMetrics(t){return R.makeGETRequest(`/session/${t}/metrics`)}static omniScan(t){return R.makeGETRequest(`/session/${t}/xenon/omni-scan`)}static omniScanControl(t){return R.makeGETRequest(`/control/${t}/omni-scan`)}static testAiLocator(t,n,r){return R.makePOSTRequest(`/session/${t}/xenon/test-locator`,{},{strategy:n,selector:r})}static getDisplayState(t){return R.makeGETRequest(`/control/${t}/display`)}static getAppiumSession(t){return R.makeGETRequest(`/control/${t}/appium-session`)}static async verifyLocator(t,n,r){const i=t.startsWith("/")?t:`/${t}`,s=await(await fetch(`${i}/session/${n}/xenon/verify-locator`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)})).json().catch(()=>({}));return(s==null?void 0:s.value)??s}static testAiLocatorControl(t,n,r){return R.makePOSTRequest(`/control/${t}/test-locator`,{},{strategy:n,selector:r})}static blockDevice(t,n){return R.makePOSTRequest("/block",{},{udid:t,host:n})}static unblockDevice(t,n){return R.makePOSTRequest("/unblock",{},{udid:t,host:n})}static updateDeviceTags(t,n,r){return R.makePOSTRequest("/device/tags",{},{udid:t,host:n,tags:r})}static async listTeams(){const t=await fetch("/xenon/api/teams",{credentials:"include"});if(!t.ok)throw new Error(`listTeams failed (${t.status})`);return(await t.json()).map(r=>({id:r.id,name:r.name}))}static async setDeviceTeam(t,n){const r=await fetch(`/xenon/api/grid/device/${encodeURIComponent(t)}/team`,{method:"PUT",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({teamId:n})});if(!r.ok&&r.status!==204){const i=await r.json().catch(()=>({}));throw new Error(i.error||`setDeviceTeam failed (${r.status})`)}}static getSessionLiveVideoUrl(t){return R.formatUrl(`/session/${t}/live_video`)}static getReservations(){return R.makeGETRequest("/reservation")}static reserveDevice(t,n,r,i,o){return R.makePOSTRequest("/reservation",{},{udid:t,host:n,reservedBy:r,duration:i,reason:o},{},{resolveErrors:!0})}static releaseReservation(t,n){return R.makeDELETERequest(`/reservation/${t}/${encodeURIComponent(n)}`)}static extendReservation(t,n,r){return R.makePOSTRequest(`/reservation/${t}/${encodeURIComponent(n)}/extend`,{},{duration:r})}static getAssetUrl(t){const n=(t??"").replace(/^[\\/]+/,"").split(/[\\/]/);if(n.length!==3||n.some(s=>!s))return"";const[r,i,o]=n;return["screenshots","video","performance"].includes(i)?`/xenon/api/session/${encodeURIComponent(r)}/asset/${i}/${encodeURIComponent(o)}`:""}static tap(t,n,r){return R.makePOSTRequest(`/control/${t}/tap`,{},{x:n,y:r})}static swipe(t,n,r,i,o){return R.makePOSTRequest(`/control/${t}/swipe`,{},{x:n,y:r,endX:i,endY:o})}static typeText(t,n){return R.makePOSTRequest(`/control/${t}/text`,{},{text:n})}static pressKey(t,n){return R.makePOSTRequest(`/control/${t}/keyevent`,{},{keyCode:n})}static getClipboard(t){return R.makeGETRequest(`/control/${t}/clipboard`)}static setClipboard(t,n){return R.makePOSTRequest(`/control/${t}/clipboard`,{},{content:n})}static getScreenshot(t){return R.makeGETRequest(`/control/${t}/screenshot`)}static touchAndHold(t,n,r,i){return R.makePOSTRequest(`/control/${t}/touchAndHold`,{},{x:n,y:r,duration:i})}static lock(t){return R.makePOSTRequest(`/control/${t}/lock`,{},{})}static unlock(t){return R.makePOSTRequest(`/control/${t}/unlock`,{},{})}static installApp(t,n){return R.makePOSTRequest(`/control/${t}/install`,{},{appPath:n})}static startStream(t){return R.makePOSTRequest(`/control/${t}/stream/start`,{},{},{},{resolveErrors:!0})}static stopStream(t){return R.makePOSTRequest(`/control/${t}/stream/stop`,{},{},{keepalive:!0})}static leaveStream(t){return R.makePOSTRequest(`/control/${t}/stream/leave`,{},{},{keepalive:!0})}static uninstallApp(t,n){return R.makePOSTRequest(`/control/${t}/uninstall`,{},{bundleId:n})}static uploadAndInstallApp(t,n){const r=new FormData;return r.append("app",n),fetch(`/xenon/api/control/${t}/upload-install`,{method:"POST",body:r}).then(i=>i.json())}static listApps(t){return R.makeGETRequest(`/control/${t}/apps`)}static getLogs(t){return R.makeGETRequest(`/control/${t}/logs`)}static getApps(){return R.makeGETRequest("/apps")}static uploadApp(t,n=null){const r=new FormData;return r.append("app",t),n&&r.append("teamId",n),fetch("/xenon/api/apps/upload",{method:"POST",body:r}).then(i=>i.json())}static async setAppTeam(t,n){const r=await fetch(`/xenon/api/apps/${encodeURIComponent(t)}/team`,{method:"PUT",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({teamId:n})});if(!r.ok){const i=await r.json().catch(()=>({}));throw new Error(i.error||`setAppTeam failed (${r.status})`)}}static deleteApp(t){return R.makeDELETERequest(`/apps/${t}`)}static installRepositoryApp(t,n){return R.makePOSTRequest(`/control/${t}/install-repository-app`,{},{appId:n},{},{resolveErrors:!0})}static executeShell(t,n){return R.makePOSTRequest(`/control/${t}/shell`,{},{command:n},{},{resolveErrors:!0})}static getInspectorSnapshot(t){return R.makeGETRequest(`/control/${t}/inspector/snapshot`)}static getWebhookConfigs(){return R.makeGETRequest("/webhook")}static addWebhookConfig(t,n,r,i){return R.makePOSTRequest("/webhook",{},{url:t,events:n,type:r,payloadTemplate:i})}static deleteWebhookConfig(t){return R.makeDELETERequest(`/webhook/${t}`)}static testWebhook(t,n){return R.makePOSTRequest("/webhook/test",{},{url:t,type:n})}static getGlobalConfig(){return R.makeGETRequest("/config")}static updateGlobalConfig(t){return R.makePOSTRequest("/config",{},t)}static testAIConfig(t){return R.makePOSTRequest("/config/test-ai",{},t,{},{resolveErrors:!0})}static resetMetrics(){return R.makePOSTRequest("/config/reset-metrics",{},{})}static getRecentHealingEvents(t=50){return R.makeGETRequest(`/healing/events?limit=${t}&t=${Date.now()}`)}static getHealingSummary(t=30,n=0){return R.makeGETRequest(`/healing/summary?windowDays=${t}&tz=${n}&t=${Date.now()}`)}static getHealingSelectors(t){const n=new URLSearchParams({tab:t.tab,days:String(t.days),sort:t.sort??"heals",page:String(t.page??1),pageSize:String(t.pageSize??50),t:String(Date.now())});return t.q&&n.set("q",t.q),t.platform&&n.set("platform",t.platform),t.method&&n.set("method",t.method),R.makeGETRequest(`/healing/selectors?${n.toString()}`)}static async getSelectorPanel(t,n,r,i){const o=new URLSearchParams({strategy:t,selector:n,days:String(r),tz:String(i),t:String(Date.now())}),s=await fetch(`/xenon/api/healing/selectors/detail?${o.toString()}`,{credentials:"include"}),l=await s.json().catch(()=>null);return{status:s.status,body:l}}static async postSelectorStateAction(t){const n=await fetch("/xenon/api/healing/selector/state",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!n.ok){const r=await n.json().catch(()=>({})),i=new Error(r.error??`Selector state action failed (${n.status})`);throw i.status=n.status,i.currentStatus=r.currentStatus??null,i}return n.json()}static sendHealingDigest(t={}){return R.makePOSTRequest("/healing/digest/send",{},t)}static async exportBuild(t,n,r){const i=await fetch(`/xenon/api/build/${encodeURIComponent(t)}/export`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({format:n,...r?{sessionIds:r}:{}})});if(!i.ok){const u=await i.text().catch(()=>i.statusText);throw new Error(`Export failed (${i.status}): ${u||i.statusText}`)}const o=i.headers.get("Content-Disposition")||"",s=/filename="?([^";]+)"?/.exec(o),l=s?s[1]:`build-${t}-sessions.${n}`;return{blob:await i.blob(),filename:l}}}function Zg(e){if(!(e instanceof HTMLElement))return!1;if(e.isContentEditable)return!0;const t=e.tagName;return t==="INPUT"||t==="TEXTAREA"||t==="SELECT"}function ev(){const[e,t]=y.useState(!1);return y.useEffect(()=>{const n=i=>{(i.metaKey||i.ctrlKey)&&i.key.toLowerCase()==="k"&&!Zg(i.target)&&(i.preventDefault(),t(o=>!o)),i.key==="Escape"&&t(!1)},r=()=>t(!0);return window.addEventListener("keydown",n),window.addEventListener("xenon.open-command-palette",r),()=>{window.removeEventListener("keydown",n),window.removeEventListener("xenon.open-command-palette",r)}},[]),{open:e,setOpen:t}}function pu(e,t){if(!e)return 0;const n=e.toLowerCase(),r=t.toLowerCase();if(r===n)return 1e4;if(r.startsWith(n))return 5e3-(r.length-n.length);let i=0,o=0,s=0;for(let l=0;l<n.length;l++){const a=n[l],u=r.indexOf(a,i);if(u===-1)return 0;u===i?(s+=1,o+=20+s*5):(s=0,o+=10-Math.min(u-i,10)),i=u+1}return Math.max(o,1)}const hu=[{id:"nav:overview",kind:"nav",label:"Overview",path:"/overview"},{id:"nav:devices",kind:"nav",label:"Devices",path:"/devices"},{id:"nav:live",kind:"nav",label:"Live devices",path:"/devices/live"},{id:"nav:builds",kind:"nav",label:"Sessions",path:"/builds"},{id:"nav:apps",kind:"nav",label:"Apps",path:"/apps"},{id:"nav:selector-health",kind:"nav",label:"Selector health",path:"/selector-health"},{id:"nav:notifications",kind:"nav",label:"Notifications",path:"/notifications"},{id:"nav:settings",kind:"nav",label:"Settings",path:"/settings"},{id:"nav:ai-settings",kind:"nav",label:"AI engine",path:"/ai-settings"},{id:"nav:maintenance",kind:"nav",label:"Maintenance",path:"/maintenance"},{id:"nav:teams",kind:"nav",label:"Teams",path:"/teams"},{id:"nav:api-keys",kind:"nav",label:"API keys",path:"/api-keys"},{id:"nav:users",kind:"nav",label:"Users",path:"/users"},{id:"nav:profile",kind:"nav",label:"Profile",path:"/profile"}];class tv{constructor(){this.devices=[],this.builds=[],this.sessions=[],this.teams=[],this.keys=[],this.apps=[]}setDevices(t){this.devices=t.map(n=>({id:`device:${n.udid}`,kind:"device",label:n.name||n.udid,sub:n.udid,path:`/devices/${n.udid}/control`}))}setBuilds(t){this.builds=t.map(n=>({id:`build:${n.id}`,kind:"build",label:n.name||n.id,sub:typeof n.sessionCount=="number"?`${n.sessionCount} session${n.sessionCount===1?"":"s"}${n.failedCount?` · ${n.failedCount} failed`:""}`:n.id,path:`/builds/${encodeURIComponent(n.id)}`}))}setSessions(t){this.sessions=t.map(n=>({id:`session:${n.id}`,kind:"session",label:n.name||n.id,sub:n.id,path:`/builds?session=${encodeURIComponent(n.id)}`}))}setTeams(t){this.teams=t.map(n=>({id:`team:${n.id}`,kind:"team",label:n.name||n.id,sub:n.id,path:`/teams?team=${encodeURIComponent(n.id)}`}))}setKeys(t){this.keys=t.map(n=>({id:`key:${n.id}`,kind:"key",label:n.name||n.id,sub:n.id,path:`/api-keys?key=${encodeURIComponent(n.id)}`}))}setApps(t){this.apps=t.map(n=>({id:`app:${n.id}`,kind:"app",label:n.name||n.id,sub:n.id,path:`/apps?app=${encodeURIComponent(n.id)}`}))}search(t,n=8){return t.trim()?[...hu,...this.devices,...this.builds,...this.sessions,...this.teams,...this.keys,...this.apps].map(i=>{const o=pu(t,i.label),s=i.sub?pu(t,i.sub):0;return{it:i,score:Math.max(o,s)}}).filter(i=>i.score>0).sort((i,o)=>o.score-i.score).slice(0,n).map(i=>i.it):hu.slice(0,n)}}const nv={nav:"Navigation",device:"Devices",build:"Builds",session:"Running sessions",team:"Teams",key:"API keys",app:"Apps"},rv=["nav","device","build","session","team","key","app"],iv=()=>{const{open:e,setOpen:t}=ev(),[n,r]=y.useState(""),[i,o]=y.useState(0),s=mn(),l=y.useRef(new tv),a=y.useRef(null);y.useEffect(()=>{if(!e)return;Promise.all([jn.getDevices().catch(()=>[]),jn.getSessions().catch(()=>[]),jn.getApps().catch(()=>[]),jn.listTeams().catch(()=>[]),jn.getBuilds().catch(()=>[])]).then(([k,c,f,d,g])=>{Array.isArray(k)&&l.current.setDevices(k),Array.isArray(g)&&l.current.setBuilds(g),Array.isArray(c)&&l.current.setSessions(c),Array.isArray(f)&&l.current.setApps(f),Array.isArray(d)&&l.current.setTeams(d)});const x=setTimeout(()=>{var k;return(k=a.current)==null?void 0:k.focus()},0);return()=>clearTimeout(x)},[e]),y.useEffect(()=>{e||(r(""),o(0))},[e]);const u=y.useMemo(()=>l.current.search(n,8),[n,e]),m=y.useMemo(()=>{const x=new Map;return u.forEach(k=>{const c=x.get(k.kind)||[];c.push(k),x.set(k.kind,c)}),x},[u]),v=y.useCallback(x=>{s(x.path),t(!1)},[s,t]),h=x=>{x.key==="ArrowDown"?(x.preventDefault(),o(k=>Math.min(k+1,Math.max(u.length-1,0)))):x.key==="ArrowUp"?(x.preventDefault(),o(k=>Math.max(k-1,0))):x.key==="Enter"&&(x.preventDefault(),u[i]&&v(u[i]))};if(!e)return null;let E=-1;return p.jsx("div",{className:"cp-overlay",onClick:()=>t(!1),children:p.jsxs("div",{className:"cp",role:"dialog","aria-modal":!0,"aria-label":"Command palette",onClick:x=>x.stopPropagation(),children:[p.jsxs("div",{className:"cp-input-row",children:[p.jsx(Tf,{size:14}),p.jsx("input",{ref:a,className:"cp-input",placeholder:"Search devices, sessions, settings…",value:n,onChange:x=>{r(x.target.value),o(0)},onKeyDown:h}),p.jsx("span",{className:"cp-esc",children:"ESC"})]}),p.jsxs("div",{className:"cp-results",children:[u.length===0&&p.jsx("div",{className:"cp-empty",children:"No results."}),rv.filter(x=>m.has(x)).map(x=>p.jsxs("div",{className:"cp-group",children:[p.jsx("div",{className:"cp-group-head",children:nv[x]}),m.get(x).map(k=>{E+=1;const c=E===i;return p.jsxs("button",{type:"button",className:`cp-item${c?" cp-item-active":""}`,onMouseEnter:()=>{o(E)},onClick:()=>v(k),children:[p.jsx("span",{className:"cp-item-label",children:k.label}),k.sub&&p.jsx("span",{className:"cp-item-sub",children:k.sub})]},k.id)})]},x))]})]})})};function ov({children:e}){const{loading:t,me:n}=wl(),r=We();if(t)return p.jsx("div",{style:{padding:40,textAlign:"center",color:"var(--text-dim)"},children:"Loading…"});if(!n){const i=encodeURIComponent(r.pathname+r.search),o=yy()?"&reason=expired":"";return p.jsx(qt,{to:`/login?next=${i}${o}`,replace:!0})}return p.jsx(p.Fragment,{children:e})}const mu="Xenon",sv={"/overview":"Overview","/devices":"Devices","/devices/live":"Live devices","/recordings":"Recordings","/apps":"Apps","/builds":"Sessions","/selector-health":"Selector health","/selector-health/detail":"Selector health","/notifications":"Notifications","/settings":"Settings","/ai-settings":"AI engine","/maintenance":"Maintenance","/teams":"Teams","/users":"Users","/api-keys":"API keys","/profile":"Profile","/login":"Sign in","/forgot-password":"Forgot password","/reset-password":"Reset password"},Kf=new Map;function Rv(e,t){t&&Kf.set(e,t)}function lv(e){const t=e.replace(/\/+$/,"")||"/";let n=sv[t];if(!n){let r;if(r=t.match(/^\/devices\/([^/]+)\/control/)){const i=decodeURIComponent(r[1]);n=`${Kf.get(i)||i} · Device`}else/^\/builds\/[^/]+\/sessions\//.test(t)?n="Session":/^\/builds\/[^/]+$/.test(t)?n="Sessions":/^\/recordings\/[^/]+$/.test(t)?n="Recording":(r=t.match(/^\/runbooks\/([^/]+)/))?n=`Runbook · ${decodeURIComponent(r[1])}`:t.startsWith("/reset-password/")&&(n="Reset password")}return n?`${n} · ${mu}`:mu}function av(){const{pathname:e}=We();return y.useEffect(()=>{document.title=lv(e)},[e]),null}const uv=y.lazy(()=>V(()=>import("./login-DqIYeZ2q.js"),__vite__mapDeps([88,13,89,90,59,43,25,2]))),cv=y.lazy(()=>V(()=>import("./forgot-password-BrV3pKRK.js"),__vite__mapDeps([91,89,90,59]))),yu=y.lazy(()=>V(()=>import("./reset-password-CZDSfFZ6.js"),__vite__mapDeps([92,90,59]))),fv=y.lazy(()=>V(()=>import("./ApiKeyGate-CS05jXd7.js"),[]).then(e=>({default:e.ApiKeyGate})));function dv(){return p.jsx(Gg,{children:p.jsxs("div",{className:"min-h-screen w-full bg-[var(--bg)] text-[var(--text)]",children:[p.jsx(Jg,{}),p.jsx(_g,{}),p.jsx("main",{className:"pl-14 pt-14 h-screen overflow-y-auto",children:p.jsx(Vg,{})}),p.jsx(iv,{})]})})}function pv(){return p.jsxs(lm,{basename:"/xenon",children:[p.jsx(av,{}),p.jsx(gy,{children:p.jsx(y.Suspense,{fallback:p.jsx("div",{style:{padding:40},children:"Loading…"}),children:p.jsxs(_f,{children:[p.jsx($,{path:"/login",element:p.jsx(uv,{})}),p.jsx($,{path:"/forgot-password",element:p.jsx(cv,{})}),p.jsx($,{path:"/reset-password",element:p.jsx(yu,{})}),p.jsx($,{path:"/reset-password/:token",element:p.jsx(yu,{})}),p.jsx($,{path:"/api-key-gate",element:p.jsx(fv,{children:p.jsx(qt,{to:"/overview",replace:!0})})}),p.jsx($,{path:"*",element:p.jsx(ov,{children:p.jsx(dv,{})})})]})})})]})}pf.render(p.jsx(y.StrictMode,{children:p.jsx(pv,{})}),document.getElementById("root"));export{oy as $,Cf as A,Rv as B,Rm as C,lv as D,gv as E,gu as F,xm as G,gm as H,Dm as I,wm as J,Am as K,eu as L,Wm as M,qt as N,Gm as O,_m as P,Cv as Q,od as R,Xm as S,ry as T,ly as U,$m as V,uy as W,jn as X,Lm as Y,Hg as Z,kv as _,We as a,hv as a0,sd as a1,wl as b,B as c,my as d,yv as e,bm as f,xv as g,wv as h,mv as i,p as j,Ev as k,vv as l,_v as m,xg as n,$i as o,pg as p,Zm as q,y as r,Bm as s,Tv as t,mn as u,fy as v,Cm as w,pf as x,ty as y,Tf as z};