@xenon-device-management/xenon 2.11.0 → 2.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/package.json +1 -1
- package/lib/public/assets/{AnnotationOverlay-BQPQ5bPF.js → AnnotationOverlay-Crkn72_3.js} +1 -1
- package/lib/public/assets/{ApiKeyGate-Bd7Pumwv.js → ApiKeyGate-BThVlj_j.js} +1 -1
- package/lib/public/assets/{BugReportButton-iC7fxPxl.js → BugReportButton-Dwa0GnBh.js} +1 -1
- package/lib/public/assets/DeviceMosaicView-Ccc-pOls.js +2 -0
- package/lib/public/assets/{EmptyState-wZeJbGhN.js → EmptyState-BeuTrlN_.js} +1 -1
- package/lib/public/assets/{FieldGroup-tpRfmhlE.js → FieldGroup-DBIaNxl1.js} +1 -1
- package/lib/public/assets/{FilterMenu-BZwOppId.js → FilterMenu-BgSAS6iT.js} +1 -1
- package/lib/public/assets/{Menu-CahoAx8L.js → Menu-GCbP6gYN.js} +1 -1
- package/lib/public/assets/{Modal-mcM5W_Ji.js → Modal-ByESeBRC.js} +1 -1
- package/lib/public/assets/RecordingPage-Bwyf3WMl.js +1 -0
- package/lib/public/assets/{RecordingsPage-BOez3f_9.js → RecordingsPage-7kM1rB3i.js} +2 -2
- package/lib/public/assets/{SegmentedControl-qMSiMN1d.js → SegmentedControl-B8tTU8kD.js} +1 -1
- package/lib/public/assets/{SettingCard-rcPtJ7HG.js → SettingCard-Clg_Ijbc.js} +1 -1
- package/lib/public/assets/{Table-J3uognu0.js → Table-CIaR0QWV.js} +1 -1
- package/lib/public/assets/{activity-_5pNSfKT.js → activity-Bengh9SD.js} +1 -1
- package/lib/public/assets/{ai-settings-DTPRbkei.js → ai-settings-G9SymiPH.js} +2 -2
- package/lib/public/assets/{api-keys-CxkIUo76.js → api-keys-CrGlbfn-.js} +1 -1
- package/lib/public/assets/{apps-Bv0pAfxz.js → apps-DIbcGVlU.js} +3 -3
- package/lib/public/assets/{arrow-left-uY7F6z1K.js → arrow-left-BtJIXXMY.js} +1 -1
- package/lib/public/assets/{arrow-right-BbAm_2Wa.js → arrow-right-zm-NagQh.js} +1 -1
- package/lib/public/assets/{arrow-up-right-x4H5NuvE.js → arrow-up-right-DdU8YEYp.js} +1 -1
- package/lib/public/assets/{auth-shell-CtMFhbnC.js → auth-shell-CHmBFmOz.js} +2 -2
- package/lib/public/assets/{builds-page-B_O5uBSZ.js → builds-page-JkzWKRpU.js} +1 -1
- package/lib/public/assets/{button-CQoMQEj_.js → button-CqhPBGRj.js} +1 -1
- package/lib/public/assets/{calendar-BZkpCqlL.js → calendar-C7eYYJTo.js} +1 -1
- package/lib/public/assets/{check-CAB6RYuc.js → check-DpbIM4E0.js} +1 -1
- package/lib/public/assets/{chevron-right-ec0unu3u.js → chevron-right-Dl4X1PRz.js} +1 -1
- package/lib/public/assets/{circle-check-Dfg-gpjg.js → circle-check-Du3sjbfV.js} +1 -1
- package/lib/public/assets/{circle-x-cbPq6Btp.js → circle-x-BSSqhpXi.js} +1 -1
- package/lib/public/assets/{clock-DU9cBLi8.js → clock-DMT60v1C.js} +1 -1
- package/lib/public/assets/{copy-VM9kWPpE.js → copy-BKNyOehd.js} +1 -1
- package/lib/public/assets/device-explorer-CHv1miyr.css +1 -0
- package/lib/public/assets/device-explorer-CoPR8DW3.js +279 -0
- package/lib/public/assets/{download-WgW4AVid.js → download-BM6Xn22t.js} +1 -1
- package/lib/public/assets/{forgot-password-BGRpjTtt.js → forgot-password-B8WqMqBT.js} +1 -1
- package/lib/public/assets/{index-DQa193-A.css → index-BTYMAqNW.css} +1 -1
- package/lib/public/assets/index-ClrpAMAT.js +219 -0
- package/lib/public/assets/{index-DNDdHt3h.js → index-DauQh6ie.js} +1 -1
- package/lib/public/assets/{input-DwiVcO3Q.js → input-CyKdLnEx.js} +1 -1
- package/lib/public/assets/{line-chart-PE5e9PeN.js → line-chart-EIBXwYGo.js} +1 -1
- package/lib/public/assets/{list-checks-Bgn9GEEO.js → list-checks-fWsgD9bI.js} +1 -1
- package/lib/public/assets/{lock-Cb7My6hc.js → lock-CVCe56TH.js} +1 -1
- package/lib/public/assets/{login-CDmyzSpl.js → login-BJ8a7yVD.js} +1 -1
- package/lib/public/assets/{maintenance-settings-Bq6pKoBt.js → maintenance-settings-DcRmTLS6.js} +1 -1
- package/lib/public/assets/{monitor-BZSwrnPV.js → monitor-Bw1YQZnL.js} +1 -1
- package/lib/public/assets/{mouse-pointer-2-BbFj8y8i.js → mouse-pointer-2-C01jbqkO.js} +1 -1
- package/lib/public/assets/{network-DpwYGB0-.js → network-CBGUjJDJ.js} +1 -1
- package/lib/public/assets/{overview-B4_IO-X8.js → overview-Cxe8aQ7C.js} +1 -1
- package/lib/public/assets/{page-header-BpLEuo7i.js → page-header-B92DKLiq.js} +1 -1
- package/lib/public/assets/play-Ck0L-0_m.js +11 -0
- package/lib/public/assets/{plus-DHZS0EGU.js → plus-Dq3tCy2N.js} +1 -1
- package/lib/public/assets/{profile-page-DsHDIq-Y.js → profile-page--dkDiKbr.js} +2 -2
- package/lib/public/assets/recording-group-store-5BYIFFN9.js +26 -0
- package/lib/public/assets/{reset-password-DuUjhw_l.js → reset-password-KYWlfjia.js} +1 -1
- package/lib/public/assets/{runbook-page-BI_ayvLd.js → runbook-page-mnsxgS1d.js} +1 -1
- package/lib/public/assets/{select-xiba9PSx.js → select-BBOIZTYm.js} +1 -1
- package/lib/public/assets/{selector-detail-redirect-Emz2obK_.js → selector-detail-redirect-CcI2j_Su.js} +1 -1
- package/lib/public/assets/{selector-health-page-zpwrgalC.js → selector-health-page-BdJb_x5L.js} +2 -2
- package/lib/public/assets/{session-detail-page-BhlTJ1Oq.js → session-detail-page-BjLaJy8z.js} +1 -1
- package/lib/public/assets/{settings-B-mabJFm.js → settings-B6cpMhsx.js} +1 -1
- package/lib/public/assets/{stat-tile-lT8WcPgu.js → stat-tile-BU9e4s36.js} +1 -1
- package/lib/public/assets/{tablet-DM8dp75P.js → tablet-hgbEwrWq.js} +1 -1
- package/lib/public/assets/{teams-CRkb5-Fe.js → teams-uiiG4hZM.js} +1 -1
- package/lib/public/assets/{trash-2-Dxgryn4o.js → trash-2-NK_Iazmg.js} +1 -1
- package/lib/public/assets/{upload-Ci0vz0BP.js → upload-BUX8TNFi.js} +1 -1
- package/lib/public/assets/{use-builds-data-DaaqMjjL.js → use-builds-data-DZszmFyl.js} +1 -1
- package/lib/public/assets/{use-password-reset-mode-BvIyZtaF.js → use-password-reset-mode-BK4B9kRC.js} +1 -1
- package/lib/public/assets/{users-CWYHk75q.js → users-BDh1xjad.js} +1 -1
- package/lib/public/assets/{users-BT8qx3ea.js → users-BU4XBbMT.js} +1 -1
- package/lib/public/assets/{video-off-BvY08g6I.js → video-off-BOjNwT4R.js} +1 -1
- package/lib/public/assets/webhook-settings-BMzyUcx5.js +1 -0
- package/lib/public/assets/{zap-qG2Li6rI.js → zap-DTWwVMUg.js} +1 -1
- package/lib/public/index.html +2 -2
- package/lib/src/device-managers/iOSTracker.js +14 -1
- package/lib/src/device-managers/ios/IOSDiscoveryService.js +9 -5
- package/lib/src/device-managers/ios/usbmuxd.js +46 -0
- package/lib/src/gateway/nodeSessionMetrics.js +5 -2
- package/lib/src/services/metrics/NodeMetricsCollector.js +4 -2
- package/lib/src/services/metrics/SessionMetricsService.js +5 -1
- package/lib/src/services/metrics/nodeMetrics.js +33 -3
- package/lib/src/sessions/RemoteSession.js +1 -1
- package/lib/test/unit/dashboard-events-metrics.spec.js +1 -0
- package/lib/test/unit/hub-node-session-metrics.spec.js +83 -13
- package/lib/test/unit/ios-usbmuxd-missing.spec.js +111 -0
- package/lib/test/unit/node-metrics-collector.spec.js +53 -0
- package/lib/test/unit/node-session-metrics-route.spec.js +2 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/lib/public/assets/DeviceMosaicView-CNdES7nm.js +0 -2
- package/lib/public/assets/RecordingPage-B4dFBndn.js +0 -11
- package/lib/public/assets/device-explorer-D2AqrrLN.css +0 -1
- package/lib/public/assets/device-explorer-ai0usQ8m.js +0 -268
- package/lib/public/assets/index-C33GjwPr.js +0 -219
- package/lib/public/assets/keycodes-CvCtpVJD.js +0 -26
- package/lib/public/assets/webhook-settings-aHIlSJFP.js +0 -1
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/overview-Cxe8aQ7C.js","assets/labels-C21SA4JG.js","assets/arrow-right-zm-NagQh.js","assets/tablet-hgbEwrWq.js","assets/monitor-Bw1YQZnL.js","assets/activity-Bengh9SD.js","assets/page-header-B92DKLiq.js","assets/page-header-TkpFo69t.css","assets/device-explorer-CoPR8DW3.js","assets/BugReportButton-Dwa0GnBh.js","assets/BugReportButton-CPBjfiv4.css","assets/recording-group-store-5BYIFFN9.js","assets/button-CqhPBGRj.js","assets/utils-CDN07tui.js","assets/button-yDi2prIR.css","assets/select-BBOIZTYm.js","assets/select-_gbV-uJG.css","assets/Menu-GCbP6gYN.js","assets/index-DauQh6ie.js","assets/check-DpbIM4E0.js","assets/Menu-BJJGF7ek.css","assets/Modal-ByESeBRC.js","assets/Modal-CkhpaXeX.css","assets/FieldGroup-DBIaNxl1.js","assets/FieldGroup-trY-2qmW.css","assets/clock-DMT60v1C.js","assets/plus-Dq3tCy2N.js","assets/copy-BKNyOehd.js","assets/SegmentedControl-B8tTU8kD.js","assets/SegmentedControl-lDNf6HQr.css","assets/Table-CIaR0QWV.js","assets/Table-BIjXN_-_.css","assets/list-checks-fWsgD9bI.js","assets/chevron-right-Dl4X1PRz.js","assets/mouse-pointer-2-C01jbqkO.js","assets/zap-DTWwVMUg.js","assets/circle-check-Du3sjbfV.js","assets/circle-x-BSSqhpXi.js","assets/EmptyState-BeuTrlN_.js","assets/EmptyState-BSDHFxd1.css","assets/input-CyKdLnEx.js","assets/input-B5edaXfx.css","assets/play-Ck0L-0_m.js","assets/download-BM6Xn22t.js","assets/upload-BUX8TNFi.js","assets/arrow-left-BtJIXXMY.js","assets/AnnotationOverlay-Crkn72_3.js","assets/trash-2-NK_Iazmg.js","assets/lock-CVCe56TH.js","assets/FilterMenu-BgSAS6iT.js","assets/FilterMenu-D1i9jhjZ.css","assets/device-explorer-CHv1miyr.css","assets/builds-page-JkzWKRpU.js","assets/use-builds-data-DZszmFyl.js","assets/time-D-gjmE1o.js","assets/stat-tile-BU9e4s36.js","assets/session-detail-page-BjLaJy8z.js","assets/arrow-up-right-DdU8YEYp.js","assets/line-chart-EIBXwYGo.js","assets/line-chart-Bzzc3bMl.css","assets/video-off-BOjNwT4R.js","assets/network-CBGUjJDJ.js","assets/runbook-page-mnsxgS1d.js","assets/runbook-page-BFqSC-Ta.css","assets/apps-DIbcGVlU.js","assets/apps-BQKfuN3J.css","assets/webhook-settings-BMzyUcx5.js","assets/webhook-settings-CAfLaykw.css","assets/settings-Dep_3kbA.css","assets/settings-B6cpMhsx.js","assets/SettingCard-Clg_Ijbc.js","assets/SettingCard-CiKM8yKg.css","assets/calendar-C7eYYJTo.js","assets/ai-settings-G9SymiPH.js","assets/maintenance-settings-DcRmTLS6.js","assets/api-keys-CrGlbfn-.js","assets/teams-uiiG4hZM.js","assets/users-BU4XBbMT.js","assets/selector-health-page-BdJb_x5L.js","assets/view-state-83Z1gFME.js","assets/selector-detail-redirect-CcI2j_Su.js","assets/DeviceMosaicView-Ccc-pOls.js","assets/recordings-BWe1ydXm.js","assets/profile-page--dkDiKbr.js","assets/users-BDh1xjad.js","assets/RecordingsPage-7kM1rB3i.js","assets/recordings-n-GTW3aT.js","assets/recordings-B2Am-bZy.css","assets/RecordingPage-Bwyf3WMl.js","assets/login-BJ8a7yVD.js","assets/use-password-reset-mode-BK4B9kRC.js","assets/auth-shell-CHmBFmOz.js","assets/forgot-password-B8WqMqBT.js","assets/reset-password-KYWlfjia.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
function id(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 _u(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Su={exports:{}},yr={};/*
|
|
3
|
+
object-assign
|
|
4
|
+
(c) Sindre Sorhus
|
|
5
|
+
@license MIT
|
|
6
|
+
*/var Pl=Object.getOwnPropertySymbols,od=Object.prototype.hasOwnProperty,sd=Object.prototype.propertyIsEnumerable;function ld(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function ad(){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 Cu=ad()?Object.assign:function(e,t){for(var n,r=ld(e),i,o=1;o<arguments.length;o++){n=Object(arguments[o]);for(var s in n)od.call(n,s)&&(r[s]=n[s]);if(Pl){i=Pl(n);for(var l=0;l<i.length;l++)sd.call(n,i[l])&&(r[i[l]]=n[i[l]])}}return r},Tu={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 ks=Cu,ln=60103,Ru=60106;M.Fragment=60107;M.StrictMode=60108;M.Profiler=60114;var Pu=60109,Nu=60110,Ou=60112;M.Suspense=60113;var Lu=60115,ju=60116;if(typeof Symbol=="function"&&Symbol.for){var Ce=Symbol.for;ln=Ce("react.element"),Ru=Ce("react.portal"),M.Fragment=Ce("react.fragment"),M.StrictMode=Ce("react.strict_mode"),M.Profiler=Ce("react.profiler"),Pu=Ce("react.provider"),Nu=Ce("react.context"),Ou=Ce("react.forward_ref"),M.Suspense=Ce("react.suspense"),Lu=Ce("react.memo"),ju=Ce("react.lazy")}var Nl=typeof Symbol=="function"&&Symbol.iterator;function ud(e){return e===null||typeof e!="object"?null:(e=Nl&&e[Nl]||e["@@iterator"],typeof e=="function"?e:null)}function gr(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 Au={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Iu={};function an(e,t,n){this.props=e,this.context=t,this.refs=Iu,this.updater=n||Au}an.prototype.isReactComponent={};an.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(gr(85));this.updater.enqueueSetState(this,e,t,"setState")};an.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Du(){}Du.prototype=an.prototype;function xs(e,t,n){this.props=e,this.context=t,this.refs=Iu,this.updater=n||Au}var Es=xs.prototype=new Du;Es.constructor=xs;ks(Es,an.prototype);Es.isPureReactComponent=!0;var _s={current:null},Mu=Object.prototype.hasOwnProperty,$u={key:!0,ref:!0,__self:!0,__source:!0};function Uu(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)Mu.call(t,r)&&!$u.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:ln,type:e,key:o,ref:s,props:i,_owner:_s.current}}function cd(e,t){return{$$typeof:ln,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ss(e){return typeof e=="object"&&e!==null&&e.$$typeof===ln}function fd(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Ol=/\/+/g;function Hi(e,t){return typeof e=="object"&&e!==null&&e.key!=null?fd(""+e.key):t.toString(36)}function Ur(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 ln:case Ru:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+Hi(s,0):r,Array.isArray(i)?(n="",e!=null&&(n=e.replace(Ol,"$&/")+"/"),Ur(i,t,n,"",function(u){return u})):i!=null&&(Ss(i)&&(i=cd(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(Ol,"$&/")+"/")+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+Hi(o,l);s+=Ur(o,t,n,a,i)}else if(a=ud(e),typeof a=="function")for(e=a.call(e),l=0;!(o=e.next()).done;)o=o.value,a=r+Hi(o,l++),s+=Ur(o,t,n,a,i);else if(o==="object")throw t=""+e,Error(gr(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t));return s}function Sr(e,t,n){if(e==null)return e;var r=[],i=0;return Ur(e,r,"","",function(o){return t.call(n,o,i++)}),r}function dd(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 Bu={current:null};function Ve(){var e=Bu.current;if(e===null)throw Error(gr(321));return e}var pd={ReactCurrentDispatcher:Bu,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:_s,IsSomeRendererActing:{current:!1},assign:ks};M.Children={map:Sr,forEach:function(e,t,n){Sr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Sr(e,function(){t++}),t},toArray:function(e){return Sr(e,function(t){return t})||[]},only:function(e){if(!Ss(e))throw Error(gr(143));return e}};M.Component=an;M.PureComponent=xs;M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=pd;M.cloneElement=function(e,t,n){if(e==null)throw Error(gr(267,e));var r=ks({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=_s.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)Mu.call(t,a)&&!$u.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:ln,type:e.type,key:i,ref:o,props:r,_owner:s}};M.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:Nu,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:Pu,_context:e},e.Consumer=e};M.createElement=Uu;M.createFactory=function(e){var t=Uu.bind(null,e);return t.type=e,t};M.createRef=function(){return{current:null}};M.forwardRef=function(e){return{$$typeof:Ou,render:e}};M.isValidElement=Ss;M.lazy=function(e){return{$$typeof:ju,_payload:{_status:-1,_result:e},_init:dd}};M.memo=function(e,t){return{$$typeof:Lu,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";Tu.exports=M;var y=Tu.exports;const hd=_u(y),md=id({__proto__:null,default:hd},[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 yd=y,zu=60103;yr.Fragment=60107;if(typeof Symbol=="function"&&Symbol.for){var Ll=Symbol.for;zu=Ll("react.element"),yr.Fragment=Ll("react.fragment")}var gd=yd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,vd=Object.prototype.hasOwnProperty,wd={key:!0,ref:!0,__self:!0,__source:!0};function bu(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)vd.call(t,r)&&!wd.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:zu,type:e,key:o,ref:s,props:i,_owner:gd.current}}yr.jsx=bu;yr.jsxs=bu;Su.exports=yr;var p=Su.exports,Fu={exports:{}},Se={},Vu={exports:{}},qu={};/** @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 wt=2*(H+1)-1,kt=C[wt],wn=wt+1,Dt=C[wn];if(kt!==void 0&&0>A(kt,I))Dt!==void 0&&0>A(Dt,kt)?(C[H]=Dt,C[wn]=I,H=wn):(C[H]=kt,C[wt]=I,H=wt);else if(Dt!==void 0&&0>A(Dt,I))C[H]=Dt,C[wn]=I,H=wn;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=[],Fi=1,ge=null,ie=3,_r=!1,vt=!1,vn=!1;function Vi(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 qi(C){if(vn=!1,Vi(C),!vt)if(S(N)!==null)vt=!0,t(Wi);else{var j=S(Z);j!==null&&n(qi,j.startTime-C)}}function Wi(C,j){vt=!1,vn&&(vn=!1,r()),_r=!0;var I=ie;try{for(Vi(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),Vi(j)}else O(N);ge=S(N)}if(ge!==null)var wt=!0;else{var kt=S(Z);kt!==null&&n(qi,kt.startTime-j),wt=!1}return wt}finally{ge=null,ie=I,_r=!1}}var rd=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(){vt||_r||(vt=!0,t(Wi))},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=rd,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:Fi++,callback:j,priorityLevel:C,startTime:I,expirationTime:ee,sortIndex:-1},I>H?(C.sortIndex=I,P(Z,C),S(N)===null&&C===S(Z)&&(vn?r():vn=!0,n(qi,I-H))):(C.sortIndex=ee,P(N,C),vt||_r||(vt=!0,t(Wi))),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}}}})(qu);Vu.exports=qu;var kd=Vu.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 Si=y,F=Cu,J=kd;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(!Si)throw Error(_(227));var Wu=new Set,Zn={};function Lt(e,t){nn(e,t),nn(e+"Capture",t)}function nn(e,t){for(Zn[e]=t,e=0;e<t.length;e++)Wu.add(t[e])}var Fe=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xd=/^[: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]*$/,jl=Object.prototype.hasOwnProperty,Al={},Il={};function Ed(e){return jl.call(Il,e)?!0:jl.call(Al,e)?!1:xd.test(e)?Il[e]=!0:(Al[e]=!0,!1)}function _d(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 Sd(e,t,n,r){if(t===null||typeof t>"u"||_d(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 Cs=/[\-:]([a-z])/g;function Ts(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(Cs,Ts);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(Cs,Ts);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(Cs,Ts);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 Rs(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||(Sd(t,n,i,r)&&(n=null),r||i===null?Ed(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 jt=Si.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,In=60103,Et=60106,Qe=60107,Ps=60108,bn=60114,Ns=60109,Os=60110,Ci=60112,Fn=60113,ei=60120,Ti=60115,Ls=60116,js=60121,As=60128,Hu=60129,Is=60130,_o=60131;if(typeof Symbol=="function"&&Symbol.for){var X=Symbol.for;In=X("react.element"),Et=X("react.portal"),Qe=X("react.fragment"),Ps=X("react.strict_mode"),bn=X("react.profiler"),Ns=X("react.provider"),Os=X("react.context"),Ci=X("react.forward_ref"),Fn=X("react.suspense"),ei=X("react.suspense_list"),Ti=X("react.memo"),Ls=X("react.lazy"),js=X("react.block"),X("react.scope"),As=X("react.opaque.id"),Hu=X("react.debug_trace_mode"),Is=X("react.offscreen"),_o=X("react.legacy_hidden")}var Dl=typeof Symbol=="function"&&Symbol.iterator;function kn(e){return e===null||typeof e!="object"?null:(e=Dl&&e[Dl]||e["@@iterator"],typeof e=="function"?e:null)}var Ki;function Dn(e){if(Ki===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ki=t&&t[1]||""}return`
|
|
35
|
+
`+Ki+e}var Qi=!1;function Cr(e,t){if(!e||Qi)return"";Qi=!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{Qi=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Dn(e):""}function Cd(e){switch(e.tag){case 5:return Dn(e.type);case 16:return Dn("Lazy");case 13:return Dn("Suspense");case 19:return Dn("SuspenseList");case 0:case 2:case 15:return e=Cr(e.type,!1),e;case 11:return e=Cr(e.type.render,!1),e;case 22:return e=Cr(e.type._render,!1),e;case 1:return e=Cr(e.type,!0),e;default:return""}}function Ht(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 Qe:return"Fragment";case Et:return"Portal";case bn:return"Profiler";case Ps:return"StrictMode";case Fn:return"Suspense";case ei:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Os:return(e.displayName||"Context")+".Consumer";case Ns:return(e._context.displayName||"Context")+".Provider";case Ci:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case Ti:return Ht(e.type);case js:return Ht(e._render);case Ls:t=e._payload,e=e._init;try{return Ht(e(t))}catch{}}return null}function ut(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Ku(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Td(e){var t=Ku(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 Tr(e){e._valueTracker||(e._valueTracker=Td(e))}function Qu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ku(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ti(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function So(e,t){var n=t.checked;return F({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ml(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ut(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 Gu(e,t){t=t.checked,t!=null&&Rs(e,"checked",t,!1)}function Co(e,t){Gu(e,t);var n=ut(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")?To(e,t.type,n):t.hasOwnProperty("defaultValue")&&To(e,t.type,ut(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function $l(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 To(e,t,n){(t!=="number"||ti(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Rd(e){var t="";return Si.Children.forEach(e,function(n){n!=null&&(t+=n)}),t}function Ro(e,t){return e=F({children:void 0},t),(t=Rd(t.children))&&(e.children=t),e}function Kt(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=""+ut(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 Po(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(_(91));return F({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ul(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:ut(n)}}function Yu(e,t){var n=ut(t.value),r=ut(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 Bl(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var No={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"};function Xu(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 Oo(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Xu(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Rr,Ju=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!==No.svg||"innerHTML"in e)e.innerHTML=t;else{for(Rr=Rr||document.createElement("div"),Rr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Rr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function er(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Vn={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},Pd=["Webkit","ms","Moz","O"];Object.keys(Vn).forEach(function(e){Pd.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Vn[t]=Vn[e]})});function Zu(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Vn.hasOwnProperty(e)&&Vn[e]?(""+t).trim():t+"px"}function ec(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Zu(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Nd=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 Lo(e,t){if(t){if(Nd[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 jo(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 Ds(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ao=null,Qt=null,Gt=null;function zl(e){if(e=wr(e)){if(typeof Ao!="function")throw Error(_(280));var t=e.stateNode;t&&(t=ji(t),Ao(e.stateNode,e.type,t))}}function tc(e){Qt?Gt?Gt.push(e):Gt=[e]:Qt=e}function nc(){if(Qt){var e=Qt,t=Gt;if(Gt=Qt=null,zl(e),t)for(e=0;e<t.length;e++)zl(t[e])}}function Ms(e,t){return e(t)}function rc(e,t,n,r,i){return e(t,n,r,i)}function $s(){}var ic=Ms,_t=!1,Gi=!1;function Us(){(Qt!==null||Gt!==null)&&($s(),nc())}function Od(e,t,n){if(Gi)return e(t,n);Gi=!0;try{return ic(e,t,n)}finally{Gi=!1,Us()}}function tr(e,t){var n=e.stateNode;if(n===null)return null;var r=ji(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 Io=!1;if(Fe)try{var xn={};Object.defineProperty(xn,"passive",{get:function(){Io=!0}}),window.addEventListener("test",xn,xn),window.removeEventListener("test",xn,xn)}catch{Io=!1}function Ld(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 qn=!1,ni=null,ri=!1,Do=null,jd={onError:function(e){qn=!0,ni=e}};function Ad(e,t,n,r,i,o,s,l,a){qn=!1,ni=null,Ld.apply(jd,arguments)}function Id(e,t,n,r,i,o,s,l,a){if(Ad.apply(this,arguments),qn){if(qn){var u=ni;qn=!1,ni=null}else throw Error(_(198));ri||(ri=!0,Do=u)}}function At(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 oc(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 bl(e){if(At(e)!==e)throw Error(_(188))}function Dd(e){var t=e.alternate;if(!t){if(t=At(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 bl(i),e;if(o===r)return bl(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 sc(e){if(e=Dd(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 Fl(e,t){for(var n=e.alternate;t!==null;){if(t===e||t===n)return!0;t=t.return}return!1}var lc,Bs,ac,uc,Mo=!1,Ne=[],Ze=null,et=null,tt=null,nr=new Map,rr=new Map,En=[],Vl="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 $o(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:n|16,nativeEvent:i,targetContainers:[r]}}function ql(e,t){switch(e){case"focusin":case"focusout":Ze=null;break;case"dragenter":case"dragleave":et=null;break;case"mouseover":case"mouseout":tt=null;break;case"pointerover":case"pointerout":nr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":rr.delete(t.pointerId)}}function _n(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e=$o(t,n,r,i,o),t!==null&&(t=wr(t),t!==null&&Bs(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Md(e,t,n,r,i){switch(t){case"focusin":return Ze=_n(Ze,e,t,n,r,i),!0;case"dragenter":return et=_n(et,e,t,n,r,i),!0;case"mouseover":return tt=_n(tt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return nr.set(o,_n(nr.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,rr.set(o,_n(rr.get(o)||null,e,t,n,r,i)),!0}return!1}function $d(e){var t=St(e.target);if(t!==null){var n=At(t);if(n!==null){if(t=n.tag,t===13){if(t=oc(n),t!==null){e.blockedOn=t,uc(e.lanePriority,function(){J.unstable_runWithPriority(e.priority,function(){ac(n)})});return}}else if(t===3&&n.stateNode.hydrate){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Br(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Vs(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null)return t=wr(n),t!==null&&Bs(t),e.blockedOn=n,!1;t.shift()}return!0}function Wl(e,t,n){Br(e)&&n.delete(t)}function Ud(){for(Mo=!1;0<Ne.length;){var e=Ne[0];if(e.blockedOn!==null){e=wr(e.blockedOn),e!==null&&lc(e);break}for(var t=e.targetContainers;0<t.length;){var n=Vs(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null){e.blockedOn=n;break}t.shift()}e.blockedOn===null&&Ne.shift()}Ze!==null&&Br(Ze)&&(Ze=null),et!==null&&Br(et)&&(et=null),tt!==null&&Br(tt)&&(tt=null),nr.forEach(Wl),rr.forEach(Wl)}function Sn(e,t){e.blockedOn===t&&(e.blockedOn=null,Mo||(Mo=!0,J.unstable_scheduleCallback(J.unstable_NormalPriority,Ud)))}function cc(e){function t(i){return Sn(i,e)}if(0<Ne.length){Sn(Ne[0],e);for(var n=1;n<Ne.length;n++){var r=Ne[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Ze!==null&&Sn(Ze,e),et!==null&&Sn(et,e),tt!==null&&Sn(tt,e),nr.forEach(t),rr.forEach(t),n=0;n<En.length;n++)r=En[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<En.length&&(n=En[0],n.blockedOn===null);)$d(n),n.blockedOn===null&&En.shift()}function Pr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Bt={animationend:Pr("Animation","AnimationEnd"),animationiteration:Pr("Animation","AnimationIteration"),animationstart:Pr("Animation","AnimationStart"),transitionend:Pr("Transition","TransitionEnd")},Yi={},fc={};Fe&&(fc=document.createElement("div").style,"AnimationEvent"in window||(delete Bt.animationend.animation,delete Bt.animationiteration.animation,delete Bt.animationstart.animation),"TransitionEvent"in window||delete Bt.transitionend.transition);function Ri(e){if(Yi[e])return Yi[e];if(!Bt[e])return e;var t=Bt[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in fc)return Yi[e]=t[n];return e}var dc=Ri("animationend"),pc=Ri("animationiteration"),hc=Ri("animationstart"),mc=Ri("transitionend"),yc=new Map,zs=new Map,Bd=["abort","abort",dc,"animationEnd",pc,"animationIteration",hc,"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",mc,"transitionEnd","waiting","waiting"];function bs(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)),zs.set(r,t),yc.set(r,i),Lt(i,[r])}}var zd=J.unstable_now;zd();var U=8;function $t(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 bd(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 Fd(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 ir(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=$t(a),i=U):(l&=o,l!==0&&(r=$t(l),i=U))}else o=n&~s,o!==0?(r=$t(o),i=U):l!==0&&(r=$t(l),i=U);if(r===0)return 0;if(r=31-ct(r),r=n&((0>r?0:1<<r)<<1)-1,t!==0&&t!==r&&!(t&s)){if($t(t),i<=U)return t;U=i}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-ct(t),i=1<<n,r|=e[n],t&=~i;return r}function gc(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function ii(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return e=Ut(24&~t),e===0?ii(10,t):e;case 10:return e=Ut(192&~t),e===0?ii(8,t):e;case 8:return e=Ut(3584&~t),e===0&&(e=Ut(4186112&~t),e===0&&(e=512)),e;case 2:return t=Ut(805306368&~t),t===0&&(t=268435456),t}throw Error(_(358,e))}function Ut(e){return e&-e}function Xi(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Pi(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,e=e.eventTimes,t=31-ct(t),e[t]=n}var ct=Math.clz32?Math.clz32:Wd,Vd=Math.log,qd=Math.LN2;function Wd(e){return e===0?32:31-(Vd(e)/qd|0)|0}var Hd=J.unstable_UserBlockingPriority,Kd=J.unstable_runWithPriority,zr=!0;function Qd(e,t,n,r){_t||$s();var i=Fs,o=_t;_t=!0;try{rc(i,e,t,n,r)}finally{(_t=o)||Us()}}function Gd(e,t,n,r){Kd(Hd,Fs.bind(null,e,t,n,r))}function Fs(e,t,n,r){if(zr){var i;if((i=(t&4)===0)&&0<Ne.length&&-1<Vl.indexOf(e))e=$o(null,e,t,n,r),Ne.push(e);else{var o=Vs(e,t,n,r);if(o===null)i&&ql(e,r);else{if(i){if(-1<Vl.indexOf(e)){e=$o(o,e,t,n,r),Ne.push(e);return}if(Md(o,e,t,n,r))return;ql(e,r)}Nc(e,t,r,null,n)}}}}function Vs(e,t,n,r){var i=Ds(r);if(i=St(i),i!==null){var o=At(i);if(o===null)i=null;else{var s=o.tag;if(s===13){if(i=oc(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 Nc(e,t,r,i,n),null}var Ge=null,qs=null,br=null;function vc(){if(br)return br;var e,t=qs,n=t.length,r,i="value"in Ge?Ge.value:Ge.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 br=i.slice(e,1<r?1-r:void 0)}function Fr(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 Nr(){return!0}function Hl(){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)?Nr:Hl,this.isPropagationStopped=Hl,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=Nr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Nr)},persist:function(){},isPersistent:Nr}),t}var un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ws=ye(un),vr=F({},un,{view:0,detail:0}),Yd=ye(vr),Ji,Zi,Cn,Ni=F({},vr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Hs,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!==Cn&&(Cn&&e.type==="mousemove"?(Ji=e.screenX-Cn.screenX,Zi=e.screenY-Cn.screenY):Zi=Ji=0,Cn=e),Ji)},movementY:function(e){return"movementY"in e?e.movementY:Zi}}),Kl=ye(Ni),Xd=F({},Ni,{dataTransfer:0}),Jd=ye(Xd),Zd=F({},vr,{relatedTarget:0}),eo=ye(Zd),ep=F({},un,{animationName:0,elapsedTime:0,pseudoElement:0}),tp=ye(ep),np=F({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),rp=ye(np),ip=F({},un,{data:0}),Ql=ye(ip),op={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sp={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"},lp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ap(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=lp[e])?!!t[e]:!1}function Hs(){return ap}var up=F({},vr,{key:function(e){if(e.key){var t=op[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Fr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?sp[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Hs,charCode:function(e){return e.type==="keypress"?Fr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Fr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),cp=ye(up),fp=F({},Ni,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Gl=ye(fp),dp=F({},vr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Hs}),pp=ye(dp),hp=F({},un,{propertyName:0,elapsedTime:0,pseudoElement:0}),mp=ye(hp),yp=F({},Ni,{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}),gp=ye(yp),vp=[9,13,27,32],Ks=Fe&&"CompositionEvent"in window,Wn=null;Fe&&"documentMode"in document&&(Wn=document.documentMode);var wp=Fe&&"TextEvent"in window&&!Wn,wc=Fe&&(!Ks||Wn&&8<Wn&&11>=Wn),Yl=" ",Xl=!1;function kc(e,t){switch(e){case"keyup":return vp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var zt=!1;function kp(e,t){switch(e){case"compositionend":return xc(t);case"keypress":return t.which!==32?null:(Xl=!0,Yl);case"textInput":return e=t.data,e===Yl&&Xl?null:e;default:return null}}function xp(e,t){if(zt)return e==="compositionend"||!Ks&&kc(e,t)?(e=vc(),br=qs=Ge=null,zt=!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 wc&&t.locale!=="ko"?null:t.data;default:return null}}var Ep={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 Jl(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Ep[e.type]:t==="textarea"}function Ec(e,t,n,r){tc(r),t=oi(t,"onChange"),0<t.length&&(n=new Ws("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Hn=null,or=null;function _p(e){Tc(e,0)}function Oi(e){var t=Ft(e);if(Qu(t))return e}function Sp(e,t){if(e==="change")return t}var _c=!1;if(Fe){var to;if(Fe){var no="oninput"in document;if(!no){var Zl=document.createElement("div");Zl.setAttribute("oninput","return;"),no=typeof Zl.oninput=="function"}to=no}else to=!1;_c=to&&(!document.documentMode||9<document.documentMode)}function ea(){Hn&&(Hn.detachEvent("onpropertychange",Sc),or=Hn=null)}function Sc(e){if(e.propertyName==="value"&&Oi(or)){var t=[];if(Ec(t,or,e,Ds(e)),e=_p,_t)e(t);else{_t=!0;try{Ms(e,t)}finally{_t=!1,Us()}}}}function Cp(e,t,n){e==="focusin"?(ea(),Hn=t,or=n,Hn.attachEvent("onpropertychange",Sc)):e==="focusout"&&ea()}function Tp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Oi(or)}function Rp(e,t){if(e==="click")return Oi(t)}function Pp(e,t){if(e==="input"||e==="change")return Oi(t)}function Np(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var we=typeof Object.is=="function"?Object.is:Np,Op=Object.prototype.hasOwnProperty;function sr(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(!Op.call(t,n[r])||!we(e[n[r]],t[n[r]]))return!1;return!0}function ta(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function na(e,t){var n=ta(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=ta(n)}}function Cc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Cc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ra(){for(var e=window,t=ti();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ti(e.document)}return t}function Uo(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 Lp=Fe&&"documentMode"in document&&11>=document.documentMode,bt=null,Bo=null,Kn=null,zo=!1;function ia(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;zo||bt==null||bt!==ti(r)||(r=bt,"selectionStart"in r&&Uo(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}),Kn&&sr(Kn,r)||(Kn=r,r=oi(Bo,"onSelect"),0<r.length&&(t=new Ws("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=bt)))}bs("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);bs("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);bs(Bd,2);for(var oa="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),ro=0;ro<oa.length;ro++)zs.set(oa[ro],0);nn("onMouseEnter",["mouseout","mouseover"]);nn("onMouseLeave",["mouseout","mouseover"]);nn("onPointerEnter",["pointerout","pointerover"]);nn("onPointerLeave",["pointerout","pointerover"]);Lt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Lt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Lt("onBeforeInput",["compositionend","keypress","textInput","paste"]);Lt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Lt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Lt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mn="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),jp=new Set("cancel close invalid load scroll toggle".split(" ").concat(Mn));function sa(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Id(r,t,void 0,e),e.currentTarget=null}function Tc(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;sa(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;sa(i,l,u),o=a}}}if(ri)throw e=Do,ri=!1,Do=null,e}function z(e,t){var n=Lc(t),r=e+"__bubble";n.has(r)||(Pc(t,e,2,!1),n.add(r))}var la="_reactListening"+Math.random().toString(36).slice(2);function Rc(e){e[la]||(e[la]=!0,Wu.forEach(function(t){jp.has(t)||aa(t,!1,e,null),aa(t,!0,e,null)}))}function aa(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=Lc(o),l=e+"__"+(t?"capture":"bubble");s.has(l)||(t&&(i|=4),Pc(o,e,i,t),s.add(l))}function Pc(e,t,n,r){var i=zs.get(t);switch(i===void 0?2:i){case 0:i=Qd;break;case 1:i=Gd;break;default:i=Fs}n=i.bind(null,t,n,e),i=void 0,!Io||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 Nc(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=St(l),s===null)return;if(a=s.tag,a===5||a===6){r=o=s;continue e}l=l.parentNode}}r=r.return}Od(function(){var u=o,m=Ds(n),v=[];e:{var h=yc.get(e);if(h!==void 0){var E=Ws,x=e;switch(e){case"keypress":if(Fr(n)===0)break e;case"keydown":case"keyup":E=cp;break;case"focusin":x="focus",E=eo;break;case"focusout":x="blur",E=eo;break;case"beforeblur":case"afterblur":E=eo;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=Kl;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":E=Jd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":E=pp;break;case dc:case pc:case hc:E=tp;break;case mc:E=mp;break;case"scroll":E=Yd;break;case"wheel":E=gp;break;case"copy":case"cut":case"paste":E=rp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":E=Gl}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=tr(d,f),w!=null&&k.push(lr(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)&&(St(x)||x[cn]))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?St(x):null,x!==null&&(c=At(x),x!==c||x.tag!==5&&x.tag!==6)&&(x=null)):(E=null,x=u),E!==x)){if(k=Kl,w="onMouseLeave",f="onMouseEnter",d="mouse",(e==="pointerout"||e==="pointerover")&&(k=Gl,w="onPointerLeave",f="onPointerEnter",d="pointer"),c=E==null?h:Ft(E),g=x==null?h:Ft(x),h=new k(w,d+"leave",E,n,m),h.target=c,h.relatedTarget=g,w=null,St(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=Mt(g))d++;for(g=0,w=f;w;w=Mt(w))g++;for(;0<d-g;)k=Mt(k),d--;for(;0<g-d;)f=Mt(f),g--;for(;d--;){if(k===f||f!==null&&k===f.alternate)break t;k=Mt(k),f=Mt(f)}k=null}else k=null;E!==null&&ua(v,h,E,k,!1),x!==null&&c!==null&&ua(v,c,x,k,!0)}}e:{if(h=u?Ft(u):window,E=h.nodeName&&h.nodeName.toLowerCase(),E==="select"||E==="input"&&h.type==="file")var P=Sp;else if(Jl(h))if(_c)P=Pp;else{P=Tp;var S=Cp}else(E=h.nodeName)&&E.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(P=Rp);if(P&&(P=P(e,u))){Ec(v,P,n,m);break e}S&&S(e,h,u),e==="focusout"&&(S=h._wrapperState)&&S.controlled&&h.type==="number"&&To(h,"number",h.value)}switch(S=u?Ft(u):window,e){case"focusin":(Jl(S)||S.contentEditable==="true")&&(bt=S,Bo=u,Kn=null);break;case"focusout":Kn=Bo=bt=null;break;case"mousedown":zo=!0;break;case"contextmenu":case"mouseup":case"dragend":zo=!1,ia(v,n,m);break;case"selectionchange":if(Lp)break;case"keydown":case"keyup":ia(v,n,m)}var O;if(Ks)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 zt?kc(e,n)&&(A="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(A="onCompositionStart");A&&(wc&&n.locale!=="ko"&&(zt||A!=="onCompositionStart"?A==="onCompositionEnd"&&zt&&(O=vc()):(Ge=m,qs="value"in Ge?Ge.value:Ge.textContent,zt=!0)),S=oi(u,A),0<S.length&&(A=new Ql(A,e,null,n,m),v.push({event:A,listeners:S}),O?A.data=O:(O=xc(n),O!==null&&(A.data=O)))),(O=wp?kp(e,n):xp(e,n))&&(u=oi(u,"onBeforeInput"),0<u.length&&(m=new Ql("onBeforeInput","beforeinput",null,n,m),v.push({event:m,listeners:u}),m.data=O))}Tc(v,t)})}function lr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function oi(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=tr(e,n),o!=null&&r.unshift(lr(e,o,i)),o=tr(e,t),o!=null&&r.push(lr(e,o,i))),e=e.return}return r}function Mt(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ua(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=tr(n,o),a!=null&&s.unshift(lr(n,a,l))):i||(a=tr(n,o),a!=null&&s.push(lr(n,a,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}function si(){}var io=null,oo=null;function Oc(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 ca=typeof setTimeout=="function"?setTimeout:void 0,Ap=typeof clearTimeout=="function"?clearTimeout:void 0;function Qs(e){e.nodeType===1?e.textContent="":e.nodeType===9&&(e=e.body,e!=null&&(e.textContent=""))}function Yt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function fa(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 so=0;function Ip(e){return{$$typeof:As,toString:e,valueOf:e}}var Li=Math.random().toString(36).slice(2),Ye="__reactFiber$"+Li,li="__reactProps$"+Li,cn="__reactContainer$"+Li,da="__reactEvents$"+Li;function St(e){var t=e[Ye];if(t)return t;for(var n=e.parentNode;n;){if(t=n[cn]||n[Ye]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=fa(e);e!==null;){if(n=e[Ye])return n;e=fa(e)}return t}e=n,n=e.parentNode}return null}function wr(e){return e=e[Ye]||e[cn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ft(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(_(33))}function ji(e){return e[li]||null}function Lc(e){var t=e[da];return t===void 0&&(t=e[da]=new Set),t}var Fo=[],Vt=-1;function ht(e){return{current:e}}function b(e){0>Vt||(e.current=Fo[Vt],Fo[Vt]=null,Vt--)}function W(e,t){Vt++,Fo[Vt]=e.current,e.current=t}var ft={},ae=ht(ft),pe=ht(!1),Pt=ft;function rn(e,t){var n=e.type.contextTypes;if(!n)return ft;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 ai(){b(pe),b(ae)}function pa(e,t,n){if(ae.current!==ft)throw Error(_(168));W(ae,t),W(pe,n)}function jc(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,Ht(t)||"Unknown",i));return F({},n,r)}function Vr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ft,Pt=ae.current,W(ae,e),W(pe,pe.current),!0}function ha(e,t,n){var r=e.stateNode;if(!r)throw Error(_(169));n?(e=jc(e,t,Pt),r.__reactInternalMemoizedMergedChildContext=e,b(pe),b(ae),W(ae,e)):b(pe),W(pe,n)}var Gs=null,Rt=null,Dp=J.unstable_runWithPriority,Ys=J.unstable_scheduleCallback,Vo=J.unstable_cancelCallback,Mp=J.unstable_shouldYield,ma=J.unstable_requestPaint,qo=J.unstable_now,$p=J.unstable_getCurrentPriorityLevel,Ai=J.unstable_ImmediatePriority,Ac=J.unstable_UserBlockingPriority,Ic=J.unstable_NormalPriority,Dc=J.unstable_LowPriority,Mc=J.unstable_IdlePriority,lo={},Up=ma!==void 0?ma:function(){},$e=null,qr=null,ao=!1,ya=qo(),se=1e4>ya?qo:function(){return qo()-ya};function on(){switch($p()){case Ai:return 99;case Ac:return 98;case Ic:return 97;case Dc:return 96;case Mc:return 95;default:throw Error(_(332))}}function $c(e){switch(e){case 99:return Ai;case 98:return Ac;case 97:return Ic;case 96:return Dc;case 95:return Mc;default:throw Error(_(332))}}function Nt(e,t){return e=$c(e),Dp(e,t)}function ar(e,t,n){return e=$c(e),Ys(e,t,n)}function Me(){if(qr!==null){var e=qr;qr=null,Vo(e)}Uc()}function Uc(){if(!ao&&$e!==null){ao=!0;var e=0;try{var t=$e;Nt(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)),Ys(Ai,Me),n}finally{ao=!1}}}var Bp=jt.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 ui=ht(null),ci=null,qt=null,fi=null;function Xs(){fi=qt=ci=null}function Js(e){var t=ui.current;b(ui),e.type._context._currentValue=t}function Bc(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 Xt(e,t){ci=e,fi=qt=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Pe=!0),e.firstContext=null)}function Ee(e,t){if(fi!==e&&t!==!1&&t!==0)if((typeof t!="number"||t===1073741823)&&(fi=e,t=1073741823),t={context:e,observedBits:t,next:null},qt===null){if(ci===null)throw Error(_(308));qt=t,ci.dependencies={lanes:0,firstContext:t,responders:null}}else qt=qt.next=t;return e._currentValue}var Ke=!1;function Zs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function zc(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 nt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function rt(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 ga(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 ur(e,t,n,r){var i=e.updateQueue;Ke=!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:Ke=!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,xr|=s,e.lanes=s,e.memoizedState=v}}function va(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 bc=new Si.Component().refs;function di(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 Ii={isMounted:function(e){return(e=e._reactInternals)?At(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=me(),i=it(e),o=nt(r,i);o.payload=t,n!=null&&(o.callback=n),rt(e,o),ot(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=me(),i=it(e),o=nt(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),rt(e,o),ot(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=me(),r=it(e),i=nt(n,r);i.tag=2,t!=null&&(i.callback=t),rt(e,i),ot(e,r,n)}};function wa(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?!sr(n,r)||!sr(i,o):!0}function Fc(e,t,n){var r=!1,i=ft,o=t.contextType;return typeof o=="object"&&o!==null?o=Ee(o):(i=he(t)?Pt:ae.current,r=t.contextTypes,o=(r=r!=null)?rn(e,i):ft),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ii,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function ka(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&&Ii.enqueueReplaceState(t,t.state,null)}function Wo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=bc,Zs(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=Ee(o):(o=he(t)?Pt:ae.current,i.context=rn(e,o)),ur(e,n,i,r),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(di(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&&Ii.enqueueReplaceState(i,i.state,null),ur(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4)}var Or=Array.isArray;function Tn(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===bc&&(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 Lr(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 Vc(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=pt(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=ho(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=Tn(c,f,d),g.return=c,g):(g=Qr(d.type,d.key,d.props,null,c.mode,g),g.ref=Tn(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=mo(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=tn(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=ho(""+f,c.mode,d),f.return=c,f;if(typeof f=="object"&&f!==null){switch(f.$$typeof){case In:return d=Qr(f.type,f.key,f.props,null,c.mode,d),d.ref=Tn(c,null,f),d.return=c,d;case Et:return f=mo(f,c.mode,d),f.return=c,f}if(Or(f)||kn(f))return f=tn(f,c.mode,d,null),f.return=c,f;Lr(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 In:return d.key===w?d.type===Qe?m(c,f,d.props.children,g,w):a(c,f,d,g):null;case Et:return d.key===w?u(c,f,d,g):null}if(Or(d)||kn(d))return w!==null?null:m(c,f,d,g,null);Lr(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 In:return c=c.get(g.key===null?d:g.key)||null,g.type===Qe?m(f,c,g.props.children,w,g.key):a(f,c,g,w);case Et:return c=c.get(g.key===null?d:g.key)||null,u(f,c,g,w)}if(Or(g)||kn(g))return c=c.get(d)||null,m(f,c,g,w,null);Lr(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=kn(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(Fi){return t(c,Fi)}),w}return function(c,f,d,g){var w=typeof d=="object"&&d!==null&&d.type===Qe&&d.key===null;w&&(d=d.props.children);var P=typeof d=="object"&&d!==null;if(P)switch(d.$$typeof){case In:e:{for(P=d.key,w=f;w!==null;){if(w.key===P){switch(w.tag){case 7:if(d.type===Qe){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=Tn(c,w,d),f.return=c,c=f;break e}}n(c,w);break}else t(c,w);w=w.sibling}d.type===Qe?(f=tn(d.props.children,c.mode,g,d.key),f.return=c,c=f):(g=Qr(d.type,d.key,d.props,null,c.mode,g),g.ref=Tn(c,f,d),g.return=c,c=g)}return s(c);case Et: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=mo(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=ho(d,c.mode,g),f.return=c,c=f),s(c);if(Or(d))return x(c,f,d,g);if(kn(d))return k(c,f,d,g);if(P&&Lr(c,d),typeof d>"u"&&!w)switch(c.tag){case 1:case 22:case 0:case 11:case 15:throw Error(_(152,Ht(c.type)||"Component"))}return n(c,f)}}var pi=Vc(!0),qc=Vc(!1),kr={},je=ht(kr),cr=ht(kr),fr=ht(kr);function Ct(e){if(e===kr)throw Error(_(174));return e}function Ho(e,t){switch(W(fr,t),W(cr,e),W(je,kr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Oo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Oo(t,e)}b(je),W(je,t)}function sn(){b(je),b(cr),b(fr)}function xa(e){Ct(fr.current);var t=Ct(je.current),n=Oo(t,e.type);t!==n&&(W(cr,e),W(je,n))}function el(e){cr.current===e&&(b(je),b(cr))}var q=ht(0);function hi(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,Xe=null,Ae=!1;function Wc(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 Ea(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 Ko(e){if(Ae){var t=Xe;if(t){var n=t;if(!Ea(e,t)){if(t=Yt(n.nextSibling),!t||!Ea(e,t)){e.flags=e.flags&-1025|2,Ae=!1,Be=e;return}Wc(Be,n)}Be=e,Xe=Yt(t.firstChild)}else e.flags=e.flags&-1025|2,Ae=!1,Be=e}}function _a(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Be=e}function jr(e){if(e!==Be)return!1;if(!Ae)return _a(e),Ae=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!bo(t,e.memoizedProps))for(t=Xe;t;)Wc(e,t),t=Yt(t.nextSibling);if(_a(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){Xe=Yt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Xe=null}}else Xe=Be?Yt(e.stateNode.nextSibling):null;return!0}function uo(){Xe=Be=null,Ae=!1}var Jt=[];function tl(){for(var e=0;e<Jt.length;e++)Jt[e]._workInProgressVersionPrimary=null;Jt.length=0}var Qn=jt.ReactCurrentDispatcher,xe=jt.ReactCurrentBatchConfig,dr=0,K=null,oe=null,te=null,mi=!1,Gn=!1;function fe(){throw Error(_(321))}function nl(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 rl(e,t,n,r,i,o){if(dr=o,K=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Qn.current=e===null||e.memoizedState===null?bp:Fp,e=n(r,i),Gn){o=0;do{if(Gn=!1,!(25>o))throw Error(_(301));o+=1,te=oe=null,t.updateQueue=null,Qn.current=Vp,e=n(r,i)}while(Gn)}if(Qn.current=wi,t=oe!==null&&oe.next!==null,dr=0,te=oe=K=null,mi=!1,t)throw Error(_(300));return e}function Tt(){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 It(){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 Rn(e){var t=It(),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((dr&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,xr|=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 Pn(e){var t=It(),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 Sa(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=(dr&e)===e)&&(t._workInProgressVersionPrimary=r,Jt.push(t))),e)return n(t._source);throw Jt.push(t),Error(_(350))}function Hc(e,t,n,r){var i=ue;if(i===null)throw Error(_(349));var o=t._getVersion,s=o(t._source),l=Qn.current,a=l.useState(function(){return Sa(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=it(k),i.mutableReadLanes|=c&i.pendingLanes),c=i.mutableReadLanes,i.entangledLanes|=c;for(var f=i.entanglements,d=c;0<d;){var g=31-ct(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=it(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=sl.bind(null,K,e),a.queue=e,a.baseQueue=null,m=Sa(i,t,n),a.memoizedState=a.baseState=m),m}function Kc(e,t,n){var r=It();return Hc(r,e,t,n)}function Nn(e){var t=Tt();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=sl.bind(null,K,e),[t.memoizedState,e]}function yi(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 Ca(e){var t=Tt();return e={current:e},t.memoizedState=e}function gi(){return It().memoizedState}function Qo(e,t,n,r){var i=Tt();K.flags|=e,i.memoizedState=yi(1|t,n,void 0,r===void 0?null:r)}function il(e,t,n,r){var i=It();r=r===void 0?null:r;var o=void 0;if(oe!==null){var s=oe.memoizedState;if(o=s.destroy,r!==null&&nl(r,s.deps)){yi(t,n,o,r);return}}K.flags|=e,i.memoizedState=yi(1|t,n,o,r)}function Ta(e,t){return Qo(516,4,e,t)}function vi(e,t){return il(516,4,e,t)}function Qc(e,t){return il(4,2,e,t)}function Gc(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 Yc(e,t,n){return n=n!=null?n.concat([e]):null,il(4,2,Gc.bind(null,t,e),n)}function ol(){}function Xc(e,t){var n=It();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&nl(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Jc(e,t){var n=It();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&nl(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function zp(e,t){var n=on();Nt(98>n?98:n,function(){e(!0)}),Nt(97<n?97:n,function(){var r=xe.transition;xe.transition=1;try{e(!1),t()}finally{xe.transition=r}})}function sl(e,t,n){var r=me(),i=it(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)Gn=mi=!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{}ot(e,i,r)}}var wi={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},bp={readContext:Ee,useCallback:function(e,t){return Tt().memoizedState=[e,t===void 0?null:t],e},useContext:Ee,useEffect:Ta,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Qo(4,2,Gc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Qo(4,2,e,t)},useMemo:function(e,t){var n=Tt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Tt();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=sl.bind(null,K,e),[r.memoizedState,e]},useRef:Ca,useState:Nn,useDebugValue:ol,useDeferredValue:function(e){var t=Nn(e),n=t[0],r=t[1];return Ta(function(){var i=xe.transition;xe.transition=1;try{r(e)}finally{xe.transition=i}},[e]),n},useTransition:function(){var e=Nn(!1),t=e[0];return e=zp.bind(null,e[1]),Ca(e),[e,t]},useMutableSource:function(e,t,n){var r=Tt();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},Hc(r,e,t,n)},useOpaqueIdentifier:function(){if(Ae){var e=!1,t=Ip(function(){throw e||(e=!0,n("r:"+(so++).toString(36))),Error(_(355))}),n=Nn(t)[1];return!(K.mode&2)&&(K.flags|=516,yi(5,function(){n("r:"+(so++).toString(36))},void 0,null)),t}return t="r:"+(so++).toString(36),Nn(t),t},unstable_isNewReconciler:!1},Fp={readContext:Ee,useCallback:Xc,useContext:Ee,useEffect:vi,useImperativeHandle:Yc,useLayoutEffect:Qc,useMemo:Jc,useReducer:Rn,useRef:gi,useState:function(){return Rn(Oe)},useDebugValue:ol,useDeferredValue:function(e){var t=Rn(Oe),n=t[0],r=t[1];return vi(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[gi().current,e]},useMutableSource:Kc,useOpaqueIdentifier:function(){return Rn(Oe)[0]},unstable_isNewReconciler:!1},Vp={readContext:Ee,useCallback:Xc,useContext:Ee,useEffect:vi,useImperativeHandle:Yc,useLayoutEffect:Qc,useMemo:Jc,useReducer:Pn,useRef:gi,useState:function(){return Pn(Oe)},useDebugValue:ol,useDeferredValue:function(e){var t=Pn(Oe),n=t[0],r=t[1];return vi(function(){var i=xe.transition;xe.transition=1;try{r(e)}finally{xe.transition=i}},[e]),n},useTransition:function(){var e=Pn(Oe)[0];return[gi().current,e]},useMutableSource:Kc,useOpaqueIdentifier:function(){return Pn(Oe)[0]},unstable_isNewReconciler:!1},qp=jt.ReactCurrentOwner,Pe=!1;function de(e,t,n,r){t.child=e===null?qc(t,null,n,r):pi(t,e.child,n,r)}function Ra(e,t,n,r,i){n=n.render;var o=t.ref;return Xt(t,i),r=rl(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 Pa(e,t,n,r,i,o){if(e===null){var s=n.type;return typeof s=="function"&&!dl(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,Zc(e,t,s,r,i,o)):(e=Qr(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:sr,n(i,r)&&e.ref===t.ref)?ze(e,t,o):(t.flags|=1,e=pt(s,r),e.ref=t.ref,e.return=t,t.child=e)}function Zc(e,t,n,r,i,o){if(e!==null&&sr(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 Go(e,t,n,r,o)}function co(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},Ir(t,n);else if(n&1073741824)t.memoizedState={baseLanes:0},Ir(t,o!==null?o.baseLanes:n);else return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},Ir(t,e),null;else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Ir(t,r);return de(e,t,i,n),t.child}function ef(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=128)}function Go(e,t,n,r,i){var o=he(n)?Pt:ae.current;return o=rn(t,o),Xt(t,i),n=rl(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 Na(e,t,n,r,i){if(he(n)){var o=!0;Vr(t)}else o=!1;if(Xt(t,i),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),Fc(t,n,r),Wo(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)?Pt:ae.current,u=rn(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)&&ka(t,s,r,u),Ke=!1;var h=t.memoizedState;s.state=h,ur(t,r,s,i),a=t.memoizedState,l!==r||h!==a||pe.current||Ke?(typeof m=="function"&&(di(t,n,m,r),a=t.memoizedState),(l=Ke||wa(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,zc(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)?Pt:ae.current,a=rn(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)&&ka(t,s,r,a),Ke=!1,h=t.memoizedState,s.state=h,ur(t,r,s,i);var x=t.memoizedState;l!==v||h!==x||pe.current||Ke?(typeof E=="function"&&(di(t,n,E,r),x=t.memoizedState),(u=Ke||wa(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 Yo(e,t,n,r,o,i)}function Yo(e,t,n,r,i,o){ef(e,t);var s=(t.flags&64)!==0;if(!r&&!s)return i&&ha(t,n,!1),ze(e,t,o);r=t.stateNode,qp.current=t;var l=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=pi(t,e.child,null,o),t.child=pi(t,null,l,o)):de(e,t,l,o),t.memoizedState=r.state,i&&ha(t,n,!0),t.child}function Oa(e){var t=e.stateNode;t.pendingContext?pa(e,t.pendingContext,t.pendingContext!==t.context):t.context&&pa(e,t.context,!1),Ho(e,t.containerInfo)}var Ar={dehydrated:null,retryLane:0};function La(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&&Ko(t),e=r.children,i=r.fallback,o?(e=ja(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ar,e):typeof r.unstable_expectedLoadTime=="number"?(e=ja(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ar,t.lanes=33554432,e):(n=pl({mode:"visible",children:e},t.mode,n,null),n.return=t,t.child=n)):e.memoizedState!==null?o?(r=Ia(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=Ar,r):(n=Aa(e,t,r.children,n),t.memoizedState=null,n):o?(r=Ia(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=Ar,r):(n=Aa(e,t,r.children,n),t.memoizedState=null,n)}function ja(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=pl(t,i,0,null),n=tn(n,i,r,null),o.return=e,n.return=e,o.sibling=n,e.child=o,n}function Aa(e,t,n,r){var i=e.child;return e=i.sibling,n=pt(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 Ia(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=pt(s,l),e!==null?r=pt(e,r):(r=tn(r,o,i,null),r.flags|=2),r.return=t,n.return=t,n.sibling=r,t.child=n,r}function Da(e,t){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Bc(e.return,t)}function fo(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 Ma(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&&Da(e,n);else if(e.tag===19)Da(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&&hi(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),fo(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&&hi(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}fo(t,!0,n,null,o,t.lastEffect);break;case"together":fo(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),xr|=t.lanes,n&t.childLanes){if(e!==null&&t.child!==e.child)throw Error(_(153));if(t.child!==null){for(e=t.child,n=pt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=pt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}return null}var tf,Xo,nf,rf;tf=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}};Xo=function(){};nf=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Ct(je.current);var o=null;switch(n){case"input":i=So(e,i),r=So(e,r),o=[];break;case"option":i=Ro(e,i),r=Ro(e,r),o=[];break;case"select":i=F({},i,{value:void 0}),r=F({},r,{value:void 0}),o=[];break;case"textarea":i=Po(e,i),r=Po(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=si)}Lo(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"&&(Zn.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"&&(Zn.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&z("scroll",e),o||l===a||(o=[])):typeof a=="object"&&a!==null&&a.$$typeof===As?a.toString():(o=o||[]).push(u,a))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};rf=function(e,t,n,r){n!==r&&(t.flags|=4)};function On(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 Wp(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)&&ai(),null;case 3:return sn(),b(pe),b(ae),tl(),r=t.stateNode,r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(jr(t)?t.flags|=4:r.hydrate||(t.flags|=256)),Xo(t),null;case 5:el(t);var i=Ct(fr.current);if(n=t.type,e!==null&&t.stateNode!=null)nf(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=Ct(je.current),jr(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Ye]=t,r[li]=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<Mn.length;e++)z(Mn[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":Ml(r,o),z("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},z("invalid",r);break;case"textarea":Ul(r,o),z("invalid",r)}Lo(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]):Zn.hasOwnProperty(s)&&i!=null&&s==="onScroll"&&z("scroll",r));switch(n){case"input":Tr(r),$l(r,o,!0);break;case"textarea":Tr(r),Bl(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=si)}r=e,t.updateQueue=r,r!==null&&(t.flags|=4)}else{switch(s=i.nodeType===9?i:i.ownerDocument,e===No.html&&(e=Xu(n)),e===No.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[Ye]=t,e[li]=r,tf(e,t,!1,!1),t.stateNode=e,s=jo(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<Mn.length;i++)z(Mn[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":Ml(e,r),i=So(e,r),z("invalid",e);break;case"option":i=Ro(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=F({},r,{value:void 0}),z("invalid",e);break;case"textarea":Ul(e,r),i=Po(e,r),z("invalid",e);break;default:i=r}Lo(n,i);var l=i;for(o in l)if(l.hasOwnProperty(o)){var a=l[o];o==="style"?ec(e,a):o==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Ju(e,a)):o==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&er(e,a):typeof a=="number"&&er(e,""+a):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Zn.hasOwnProperty(o)?a!=null&&o==="onScroll"&&z("scroll",e):a!=null&&Rs(e,o,a,s))}switch(n){case"input":Tr(e),$l(e,r,!1);break;case"textarea":Tr(e),Bl(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ut(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Kt(e,!!r.multiple,o,!1):r.defaultValue!=null&&Kt(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=si)}Oc(n,r)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)rf(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(_(166));n=Ct(fr.current),Ct(je.current),jr(t)?(r=t.stateNode,n=t.memoizedProps,r[Ye]=t,r.nodeValue!==n&&(t.flags|=4)):(r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ye]=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&&jr(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||!(xr&134217727)&&!(dn&134217727)||Zt(ue,le))),(r||n)&&(t.flags|=4),null);case 4:return sn(),Xo(t),e===null&&Rc(t.stateNode.containerInfo),null;case 10:return Js(t),null;case 17:return he(t.type)&&ai(),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)On(r,!1);else{if(ne!==0||e!==null&&e.flags&64)for(e=t.child;e!==null;){if(s=hi(e),s!==null){for(t.flags|=64,On(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()>rs&&(t.flags|=64,o=!0,On(r,!1),t.lanes=33554432)}else{if(!o)if(e=hi(s),e!==null){if(t.flags|=64,o=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),On(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>rs&&n!==1073741824&&(t.flags|=64,o=!0,On(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 fl(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&r.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(_(156,t.tag))}function Hp(e){switch(e.tag){case 1:he(e.type)&&ai();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(sn(),b(pe),b(ae),tl(),t=e.flags,t&64)throw Error(_(285));return e.flags=t&-4097|64,e;case 5:return el(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 sn(),null;case 10:return Js(e),null;case 23:case 24:return fl(),null;default:return null}}function ll(e,t){try{var n="",r=t;do n+=Cd(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 Jo(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Kp=typeof WeakMap=="function"?WeakMap:Map;function of(e,t,n){n=nt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){xi||(xi=!0,is=r),Jo(e,t)},n}function sf(e,t,n){n=nt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return Jo(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),Jo(e,t));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}var Qp=typeof WeakSet=="function"?WeakSet:Set;function $a(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(n){st(e,n)}else t.current=null}function Gp(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&&Qs(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(_(163))}function Yp(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&&(mf(n,e),ih(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&&va(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}va(n,t,e)}return;case 5:e=n.stateNode,t===null&&n.flags&4&&Oc(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&&cc(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(_(163))}function Ua(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=Zu("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 Ba(e,t){if(Rt&&typeof Rt.onCommitFiberUnmount=="function")try{Rt.onCommitFiberUnmount(Gs,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)mf(t,n);else{r=t;try{i()}catch(o){st(r,o)}}n=n.next}while(n!==e)}break;case 1:if($a(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(o){st(t,o)}break;case 5:$a(t);break;case 4:lf(e,t)}}function za(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 ba(e){return e.tag===5||e.tag===3||e.tag===4}function Fa(e){e:{for(var t=e.return;t!==null;){if(ba(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&&(er(t,""),n.flags&=-17);e:t:for(n=e;;){for(;n.sibling===null;){if(n.return===null||ba(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?Zo(e,n,t):es(e,n,t)}function Zo(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=si));else if(r!==4&&(e=e.child,e!==null))for(Zo(e,t,n),e=e.sibling;e!==null;)Zo(e,t,n),e=e.sibling}function es(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(es(e,t,n),e=e.sibling;e!==null;)es(e,t,n),e=e.sibling}function lf(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(Ba(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(Ba(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 po(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[li]=r,e==="input"&&r.type==="radio"&&r.name!=null&&Gu(n,r),jo(e,i),t=jo(e,r),i=0;i<o.length;i+=2){var s=o[i],l=o[i+1];s==="style"?ec(n,l):s==="dangerouslySetInnerHTML"?Ju(n,l):s==="children"?er(n,l):Rs(n,s,l,t)}switch(e){case"input":Co(n,r);break;case"textarea":Yu(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,o=r.value,o!=null?Kt(n,!!r.multiple,o,!1):e!==!!r.multiple&&(r.defaultValue!=null?Kt(n,!!r.multiple,r.defaultValue,!0):Kt(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,cc(n.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(cl=se(),Ua(t.child,!0)),Va(t);return;case 19:Va(t);return;case 17:return;case 23:case 24:Ua(t,t.memoizedState!==null);return}throw Error(_(163))}function Va(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Qp),t.forEach(function(r){var i=lh.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Xp(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var Jp=Math.ceil,ki=jt.ReactCurrentDispatcher,al=jt.ReactCurrentOwner,L=0,ue=null,Y=null,le=0,Ot=0,ts=ht(0),ne=0,Di=null,fn=0,xr=0,dn=0,ul=0,ns=null,cl=0,rs=1/0;function pn(){rs=se()+500}var T=null,xi=!1,is=null,Le=null,dt=!1,Yn=null,$n=90,os=[],ss=[],be=null,Xn=0,ls=null,Wr=-1,Ue=0,Hr=0,Jn=null,Kr=!1;function me(){return L&48?se():Wr!==-1?Wr:Wr=se()}function it(e){if(e=e.mode,!(e&2))return 1;if(!(e&4))return on()===99?1:2;if(Ue===0&&(Ue=fn),Bp.transition!==0){Hr!==0&&(Hr=ns!==null?ns.pendingLanes:0),e=Ue;var t=4186112&~Hr;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=on(),L&4&&e===98?e=ii(12,Ue):(e=bd(e),e=ii(e,Ue)),e}function ot(e,t,n){if(50<Xn)throw Xn=0,ls=null,Error(_(185));if(e=Mi(e,t),e===null)return null;Pi(e,t,n),e===ue&&(dn|=t,ne===4&&Zt(e,le));var r=on();t===1?L&8&&!(L&48)?as(e):(_e(e,n),L===0&&(pn(),Me())):(!(L&4)||r!==98&&r!==99||(be===null?be=new Set([e]):be.add(e)),_e(e,n)),ns=e}function Mi(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-ct(s),a=1<<l,u=o[l];if(u===-1){if(!(a&r)||a&i){u=t,$t(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=ir(e,e===ue?le:0),t=U,r===0)n!==null&&(n!==lo&&Vo(n),e.callbackNode=null,e.callbackPriority=0);else{if(n!==null){if(e.callbackPriority===t)return;n!==lo&&Vo(n)}t===15?(n=as.bind(null,e),$e===null?($e=[n],qr=Ys(Ai,Uc)):$e.push(n),n=lo):t===14?n=ar(99,as.bind(null,e)):(n=Fd(t),n=ar(n,af.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function af(e){if(Wr=-1,Hr=Ue=0,L&48)throw Error(_(327));var t=e.callbackNode;if(mt()&&e.callbackNode!==t)return null;var n=ir(e,e===ue?le:0);if(n===0)return null;var r=n,i=L;L|=16;var o=df();(ue!==e||le!==r)&&(pn(),en(e,r));do try{th();break}catch(l){ff(e,l)}while(!0);if(Xs(),ki.current=o,L=i,Y!==null?r=0:(ue=null,le=0,r=ne),fn&dn)en(e,0);else if(r!==0){if(r===2&&(L|=64,e.hydrate&&(e.hydrate=!1,Qs(e.containerInfo)),n=gc(e),n!==0&&(r=Un(e,n))),r===1)throw t=Di,en(e,0),Zt(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:xt(e);break;case 3:if(Zt(e,n),(n&62914560)===n&&(r=cl+500-se(),10<r)){if(ir(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){me(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ca(xt.bind(null,e),r);break}xt(e);break;case 4:if(Zt(e,n),(n&4186112)===n)break;for(r=e.eventTimes,i=-1;0<n;){var s=31-ct(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*Jp(n/1960))-n,10<n){e.timeoutHandle=ca(xt.bind(null,e),n);break}xt(e);break;case 5:xt(e);break;default:throw Error(_(329))}}return _e(e,se()),e.callbackNode===t?af.bind(null,e):null}function Zt(e,t){for(t&=~ul,t&=~dn,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ct(t),r=1<<n;e[n]=-1,t&=~r}}function as(e){if(L&48)throw Error(_(327));if(mt(),e===ue&&e.expiredLanes&le){var t=le,n=Un(e,t);fn&dn&&(t=ir(e,t),n=Un(e,t))}else t=ir(e,0),n=Un(e,t);if(e.tag!==0&&n===2&&(L|=64,e.hydrate&&(e.hydrate=!1,Qs(e.containerInfo)),t=gc(e),t!==0&&(n=Un(e,t))),n===1)throw n=Di,en(e,0),Zt(e,t),_e(e,se()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,xt(e),_e(e,se()),null}function Zp(){if(be!==null){var e=be;be=null,e.forEach(function(t){t.expiredLanes|=24&t.pendingLanes,_e(t,se())})}Me()}function uf(e,t){var n=L;L|=1;try{return e(t)}finally{L=n,L===0&&(pn(),Me())}}function cf(e,t){var n=L;L&=-2,L|=8;try{return e(t)}finally{L=n,L===0&&(pn(),Me())}}function Ir(e,t){W(ts,Ot),Ot|=t,fn|=t}function fl(){Ot=ts.current,b(ts)}function en(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Ap(n)),Y!==null)for(n=Y.return;n!==null;){var r=n;switch(r.tag){case 1:r=r.type.childContextTypes,r!=null&&ai();break;case 3:sn(),b(pe),b(ae),tl();break;case 5:el(r);break;case 4:sn();break;case 13:b(q);break;case 19:b(q);break;case 10:Js(r);break;case 23:case 24:fl()}n=n.return}ue=e,Y=pt(e.current,null),le=Ot=fn=t,ne=0,Di=null,ul=dn=xr=0}function ff(e,t){do{var n=Y;try{if(Xs(),Qn.current=wi,mi){for(var r=K.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}mi=!1}if(dr=0,te=oe=K=null,Gn=!1,al.current=null,n===null||n.return===null){ne=1,Di=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=nt(-1,1);d.tag=2,rt(l,d)}l.lanes|=1;break e}a=void 0,l=t;var g=o.pingCache;if(g===null?(g=o.pingCache=new Kp,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=sh.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((Ht(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=ll(a,l),h=s;do{switch(h.tag){case 3:o=a,h.flags|=4096,t&=-t,h.lanes|=t;var P=of(h,o,t);ga(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=sf(h,o,t);ga(h,A);break e}}h=h.return}while(h!==null)}hf(n)}catch(N){t=N,Y===n&&n!==null&&(Y=n=n.return);continue}break}while(!0)}function df(){var e=ki.current;return ki.current=wi,e===null?wi:e}function Un(e,t){var n=L;L|=16;var r=df();ue===e&&le===t||en(e,t);do try{eh();break}catch(i){ff(e,i)}while(!0);if(Xs(),L=n,ki.current=r,Y!==null)throw Error(_(261));return ue=null,le=0,ne}function eh(){for(;Y!==null;)pf(Y)}function th(){for(;Y!==null&&!Mp();)pf(Y)}function pf(e){var t=yf(e.alternate,e,Ot);e.memoizedProps=e.pendingProps,t===null?hf(e):Y=t,al.current=null}function hf(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&2048){if(n=Hp(t),n!==null){n.flags&=2047,Y=n;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(n=Wp(n,t,Ot),n!==null){Y=n;return}if(n=t,n.tag!==24&&n.tag!==23||n.memoizedState===null||Ot&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 xt(e){var t=on();return Nt(99,nh.bind(null,e,t)),null}function nh(e,t){do mt();while(Yn!==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-ct(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,al.current=null,io=zr,s=ra(),Uo(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;oo={focusedElem:s,selectionRange:l},zr=!1,Jn=null,Kr=!1,T=r;do try{rh()}catch(N){if(T===null)throw Error(_(330));st(T,N),T=T.nextEffect}while(T!==null);Jn=null,T=r;do try{for(s=e;T!==null;){var d=T.flags;if(d&16&&er(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:Fa(T),T.flags&=-3;break;case 6:Fa(T),T.flags&=-3,po(T.alternate,T);break;case 1024:T.flags&=-1025;break;case 1028:T.flags&=-1025,po(T.alternate,T);break;case 4:po(T.alternate,T);break;case 8:l=T,lf(s,l);var P=l.alternate;za(l),P!==null&&za(P)}T=T.nextEffect}}catch(N){if(T===null)throw Error(_(330));st(T,N),T=T.nextEffect}while(T!==null);if(w=oo,g=ra(),d=w.focusedElem,s=w.selectionRange,g!==d&&d&&d.ownerDocument&&Cc(d.ownerDocument.documentElement,d)){for(s!==null&&Uo(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=na(d,P),o=na(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}zr=!!io,oo=io=null,e.current=n,T=r;do try{for(d=e;T!==null;){var S=T.flags;if(S&36&&Yp(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));st(T,N),T=T.nextEffect}while(T!==null);T=null,Up(),L=i}else e.current=n;if(dt)dt=!1,Yn=e,$n=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===ls?Xn++:(Xn=0,ls=e):Xn=0,n=n.stateNode,Rt&&typeof Rt.onCommitFiberRoot=="function")try{Rt.onCommitFiberRoot(Gs,n,void 0,(n.current.flags&64)===64)}catch{}if(_e(e,se()),xi)throw xi=!1,e=is,is=null,e;return L&8||Me(),null}function rh(){for(;T!==null;){var e=T.alternate;Kr||Jn===null||(T.flags&8?Fl(T,Jn)&&(Kr=!0):T.tag===13&&Xp(e,T)&&Fl(T,Jn)&&(Kr=!0));var t=T.flags;t&256&&Gp(e,T),!(t&512)||dt||(dt=!0,ar(97,function(){return mt(),null})),T=T.nextEffect}}function mt(){if($n!==90){var e=97<$n?97:$n;return $n=90,Nt(e,oh)}return!1}function ih(e,t){os.push(t,e),dt||(dt=!0,ar(97,function(){return mt(),null}))}function mf(e,t){ss.push(t,e),dt||(dt=!0,ar(97,function(){return mt(),null}))}function oh(){if(Yn===null)return!1;var e=Yn;if(Yn=null,L&48)throw Error(_(331));var t=L;L|=32;var n=ss;ss=[];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));st(o,a)}}for(n=os,os=[],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));st(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 qa(e,t,n){t=ll(n,t),t=of(e,t,1),rt(e,t),t=me(),e=Mi(e,1),e!==null&&(Pi(e,1,t),_e(e,t))}function st(e,t){if(e.tag===3)qa(e,e,t);else for(var n=e.return;n!==null;){if(n.tag===3){qa(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=ll(t,e);var i=sf(n,e,1);if(rt(n,i),i=me(),n=Mi(n,1),n!==null)Pi(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 sh(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()-cl?en(e,0):ul|=n),_e(e,t)}function lh(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=fn),t=Ut(62914560&~Ue),t===0&&(t=4194304)):t=on()===99?1:2:t=1),n=me(),e=Mi(e,t),e!==null&&(Pi(e,t,n),_e(e,n))}var yf;yf=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:Oa(t),uo();break;case 5:xa(t);break;case 1:he(t.type)&&Vr(t);break;case 4:Ho(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;W(ui,i._currentValue),i._currentValue=r;break;case 13:if(t.memoizedState!==null)return n&t.child.childLanes?La(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 Ma(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,co(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=rn(t,ae.current),Xt(t,n),i=rl(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;Vr(t)}else o=!1;t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Zs(t);var s=r.getDerivedStateFromProps;typeof s=="function"&&di(t,r,s,e),i.updater=Ii,t.stateNode=i,i._reactInternals=t,Wo(t,r,e,n),t=Yo(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=uh(i),e=Te(i,e),o){case 0:t=Go(null,t,i,e,n);break e;case 1:t=Na(null,t,i,e,n);break e;case 11:t=Ra(null,t,i,e,n);break e;case 14:t=Pa(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),Go(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Te(r,i),Na(e,t,r,i,n);case 3:if(Oa(t),r=t.updateQueue,e===null||r===null)throw Error(_(282));if(r=t.pendingProps,i=t.memoizedState,i=i!==null?i.element:null,zc(e,t),ur(t,r,null,n),r=t.memoizedState.element,r===i)uo(),t=ze(e,t,n);else{if(i=t.stateNode,(o=i.hydrate)&&(Xe=Yt(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],Jt.push(o);for(n=qc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|1024,n=n.sibling}else de(e,t,r,n),uo();t=t.child}return t;case 5:return xa(t),e===null&&Ko(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),ef(e,t),de(e,t,s,n),t.child;case 6:return e===null&&Ko(t),null;case 13:return La(e,t,n);case 4:return Ho(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=pi(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),Ra(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(ui,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=nt(-1,n&-n),u.tag=2,rt(l,u)),l.lanes|=n,u=l.alternate,u!==null&&(u.lanes|=n),Bc(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,Xt(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),Pa(e,t,i,o,r,n);case 15:return Zc(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,Vr(t)):e=!1,Xt(t,n),Fc(t,r,i),Wo(t,r,i,n),Yo(null,t,r,!0,e,n);case 19:return Ma(e,t,n);case 23:return co(e,t,n);case 24:return co(e,t,n)}throw Error(_(156,t.tag))};function ah(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 ah(e,t,n,r)}function dl(e){return e=e.prototype,!(!e||!e.isReactComponent)}function uh(e){if(typeof e=="function")return dl(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ci)return 11;if(e===Ti)return 14}return 2}function pt(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 Qr(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")dl(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Qe:return tn(n.children,i,o,t);case Hu:s=8,i|=16;break;case Ps:s=8,i|=1;break;case bn:return e=ke(12,n,t,i|8),e.elementType=bn,e.type=bn,e.lanes=o,e;case Fn:return e=ke(13,n,t,i),e.type=Fn,e.elementType=Fn,e.lanes=o,e;case ei:return e=ke(19,n,t,i),e.elementType=ei,e.lanes=o,e;case Is:return pl(n,i,o,t);case _o:return e=ke(24,n,t,i),e.elementType=_o,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ns:s=10;break e;case Os:s=9;break e;case Ci:s=11;break e;case Ti:s=14;break e;case Ls:s=16,r=null;break e;case js: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 tn(e,t,n,r){return e=ke(7,e,r,t),e.lanes=n,e}function pl(e,t,n,r){return e=ke(23,e,r,t),e.elementType=Is,e.lanes=n,e}function ho(e,t,n){return e=ke(6,e,null,t),e.lanes=n,e}function mo(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 ch(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=Xi(0),this.expirationTimes=Xi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xi(0),this.mutableSourceEagerHydrationData=null}function fh(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Et,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Ei(e,t,n,r){var i=t.current,o=me(),s=it(i);e:if(n){n=n._reactInternals;t:{if(At(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=jc(n,a,l);break e}}n=l}else n=ft;return t.context===null?t.context=n:t.pendingContext=n,t=nt(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),rt(i,t),ot(i,s,o),s}function yo(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 Wa(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function hl(e,t){Wa(e,t),(e=e.alternate)&&Wa(e,t)}function dh(){return null}function ml(e,t,n){var r=n!=null&&n.hydrationOptions!=null&&n.hydrationOptions.mutableSources||null;if(n=new ch(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,Zs(t),e[cn]=n.current,Rc(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}ml.prototype.render=function(e){Ei(e,this._internalRoot,null,null)};ml.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Ei(null,e,null,function(){t[cn]=null})};function Er(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function ph(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 ml(e,0,t?{hydrate:!0}:void 0)}function $i(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=yo(s);l.call(u)}}Ei(t,s,e,i)}else{if(o=n._reactRootContainer=ph(n,r),s=o._internalRoot,typeof i=="function"){var a=i;i=function(){var u=yo(s);a.call(u)}}cf(function(){Ei(t,s,e,i)})}return yo(s)}lc=function(e){if(e.tag===13){var t=me();ot(e,4,t),hl(e,4)}};Bs=function(e){if(e.tag===13){var t=me();ot(e,67108864,t),hl(e,67108864)}};ac=function(e){if(e.tag===13){var t=me(),n=it(e);ot(e,n,t),hl(e,n)}};uc=function(e,t){return t()};Ao=function(e,t,n){switch(t){case"input":if(Co(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=ji(r);if(!i)throw Error(_(90));Qu(r),Co(r,i)}}}break;case"textarea":Yu(e,n);break;case"select":t=n.value,t!=null&&Kt(e,!!n.multiple,t,!1)}};Ms=uf;rc=function(e,t,n,r,i){var o=L;L|=4;try{return Nt(98,e.bind(null,t,n,r,i))}finally{L=o,L===0&&(pn(),Me())}};$s=function(){!(L&49)&&(Zp(),mt())};ic=function(e,t){var n=L;L|=2;try{return e(t)}finally{L=n,L===0&&(pn(),Me())}};function gf(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Er(t))throw Error(_(200));return fh(e,t,null,n)}var hh={Events:[wr,Ft,ji,tc,nc,mt,{current:!1}]},Ln={findFiberByHostInstance:St,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},mh={bundleType:Ln.bundleType,version:Ln.version,rendererPackageName:Ln.rendererPackageName,rendererConfig:Ln.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:jt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=sc(e),e===null?null:e.stateNode},findFiberByHostInstance:Ln.findFiberByHostInstance||dh,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Dr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Dr.isDisabled&&Dr.supportsFiber)try{Gs=Dr.inject(mh),Rt=Dr}catch{}}Se.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=hh;Se.createPortal=gf;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=sc(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 Nt(99,e.bind(null,t))}finally{L=n,Me()}};Se.hydrate=function(e,t,n){if(!Er(t))throw Error(_(200));return $i(null,e,t,!0,n)};Se.render=function(e,t,n){if(!Er(t))throw Error(_(200));return $i(null,e,t,!1,n)};Se.unmountComponentAtNode=function(e){if(!Er(e))throw Error(_(40));return e._reactRootContainer?(cf(function(){$i(null,null,e,!1,function(){e._reactRootContainer=null,e[cn]=null})}),!0):!1};Se.unstable_batchedUpdates=uf;Se.unstable_createPortal=function(e,t){return gf(e,t,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)};Se.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Er(n))throw Error(_(200));if(e==null||e._reactInternals===void 0)throw Error(_(38));return $i(e,t,n,!1,r)};Se.version="17.0.2";function vf(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(vf)}catch(e){console.error(e)}}vf(),Fu.exports=Se;var wf=Fu.exports;const Rv=_u(wf),yh="modulepreload",gh=function(e){return"/xenon/"+e},Ha={},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=gh(a),a in Ha)return;Ha[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":yh,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 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)}var Je;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Je||(Je={}));const Ka="popstate";function vh(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:s,hash:l}=r.location;return us("",{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:_i(i)}return kh(t,n,null,e)}function Q(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function yl(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function wh(){return Math.random().toString(36).substr(2,8)}function Qa(e,t){return{usr:e.state,key:e.key,idx:t}}function us(e,t,n,r){return n===void 0&&(n=null),pr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?hn(t):t,{state:n,key:t&&t.key||r||wh()})}function _i(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 hn(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 kh(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,l=Je.Pop,a=null,u=m();u==null&&(u=0,s.replaceState(pr({},s.state,{idx:u}),""));function m(){return(s.state||{idx:null}).idx}function v(){l=Je.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=Je.Push;let d=us(k.location,c,f);u=m()+1;let g=Qa(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=Je.Replace;let d=us(k.location,c,f);u=m();let g=Qa(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:_i(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(Ka,v),a=c,()=>{i.removeEventListener(Ka,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 Ga;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ga||(Ga={}));function xh(e,t,n){return n===void 0&&(n="/"),Eh(e,t,n)}function Eh(e,t,n,r){let i=typeof t=="string"?hn(t):t,o=gl(i.pathname||"/",n);if(o==null)return null;let s=kf(e);_h(s);let l=null;for(let a=0;l==null&&a<s.length;++a){let u=Dh(o);l=jh(s[a],u)}return l}function kf(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=lt([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+'".')),kf(o.children,t,m,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:Oh(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 xf(o.path))i(o,s,a)}),t}function xf(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=xf(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 _h(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Lh(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Sh=/^:[\w-]+$/,Ch=3,Th=2,Rh=1,Ph=10,Nh=-2,Ya=e=>e==="*";function Oh(e,t){let n=e.split("/"),r=n.length;return n.some(Ya)&&(r+=Nh),t&&(r+=Th),n.filter(i=>!Ya(i)).reduce((i,o)=>i+(Sh.test(o)?Ch:o===""?Rh:Ph),r)}function Lh(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 jh(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=Ah({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:lt([o,v.pathname]),pathnameBase:zh(lt([o,v.pathnameBase])),route:h}),v.pathnameBase!=="/"&&(o=lt([o,v.pathnameBase]))}return s}function Ah(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Ih(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 Ih(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),yl(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 Dh(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return yl(!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 gl(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 Mh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,$h=e=>Mh.test(e);function Uh(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?hn(e):e,o;if(n)if($h(n))o=n;else{if(n.includes("//")){let s=n;n=n.replace(/\/\/+/g,"/"),yl(!1,"Pathnames cannot have embedded double slashes - normalizing "+(s+" -> "+n))}n.startsWith("/")?o=Xa(n.substring(1),"/"):o=Xa(n,t)}else o=t;return{pathname:o,search:bh(r),hash:Fh(i)}}function Xa(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 go(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 Bh(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function vl(e,t){let n=Bh(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function wl(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=hn(e):(i=pr({},e),Q(!i.pathname||!i.pathname.includes("?"),go("?","pathname","search",i)),Q(!i.pathname||!i.pathname.includes("#"),go("#","pathname","hash",i)),Q(!i.search||!i.search.includes("#"),go("#","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=Uh(i,l),u=s&&s!=="/"&&s.endsWith("/"),m=(o||s===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||m)&&(a.pathname+="/"),a}const lt=e=>e.join("/").replace(/\/\/+/g,"/"),zh=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),bh=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Fh=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Vh(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Ef=["post","put","patch","delete"];new Set(Ef);const qh=["get",...Ef];new Set(qh);/**
|
|
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 hr(){return hr=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},hr.apply(this,arguments)}const kl=y.createContext(null),Wh=y.createContext(null),yt=y.createContext(null),Ui=y.createContext(null),qe=y.createContext({outlet:null,matches:[],isDataRoute:!1}),_f=y.createContext(null);function Hh(e,t){let{relative:n}=t===void 0?{}:t;mn()||Q(!1);let{basename:r,navigator:i}=y.useContext(yt),{hash:o,pathname:s,search:l}=Cf(e,{relative:n}),a=s;return r!=="/"&&(a=s==="/"?r:lt([r,s])),i.createHref({pathname:a,search:l,hash:o})}function mn(){return y.useContext(Ui)!=null}function We(){return mn()||Q(!1),y.useContext(Ui).location}function Sf(e){y.useContext(yt).static||y.useLayoutEffect(e)}function yn(){let{isDataRoute:e}=y.useContext(qe);return e?om():Kh()}function Kh(){mn()||Q(!1);let e=y.useContext(kl),{basename:t,future:n,navigator:r}=y.useContext(yt),{matches:i}=y.useContext(qe),{pathname:o}=We(),s=JSON.stringify(vl(i,n.v7_relativeSplatPath)),l=y.useRef(!1);return Sf(()=>{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=wl(u,JSON.parse(s),o,m.relative==="path");e==null&&t!=="/"&&(v.pathname=v.pathname==="/"?t:lt([t,v.pathname])),(m.replace?r.replace:r.push)(v,m.state,m)},[t,r,s,o,e])}function Pv(){let{matches:e}=y.useContext(qe),t=e[e.length-1];return t?t.params:{}}function Cf(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=y.useContext(yt),{matches:i}=y.useContext(qe),{pathname:o}=We(),s=JSON.stringify(vl(i,r.v7_relativeSplatPath));return y.useMemo(()=>wl(e,JSON.parse(s),o,n==="path"),[e,s,o,n])}function Qh(e,t){return Gh(e,t)}function Gh(e,t,n,r){mn()||Q(!1);let{navigator:i}=y.useContext(yt),{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"?hn(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=xh(e,{pathname:E}),k=em(x&&x.map(c=>Object.assign({},c,{params:Object.assign({},l,c.params),pathname:lt([a,i.encodeLocation?i.encodeLocation(c.pathname).pathname:c.pathname]),pathnameBase:c.pathnameBase==="/"?a:lt([a,i.encodeLocation?i.encodeLocation(c.pathnameBase).pathname:c.pathnameBase])})),o,n,r);return t&&k?y.createElement(Ui.Provider,{value:{location:hr({pathname:"/",search:"",hash:"",state:null,key:"default"},m),navigationType:Je.Pop}},k):k}function Yh(){let e=im(),t=Vh(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 Xh=y.createElement(Yh,null);class Jh 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(_f.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Zh(e){let{routeContext:t,match:n,children:r}=e,i=y.useContext(kl);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 em(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||Xh,a&&(u<0&&h===0?(sm("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(Zh,{match:v,routeContext:{outlet:m,matches:f,isDataRoute:n!=null},children:g})};return n&&(v.route.ErrorBoundary||v.route.errorElement||h===0)?y.createElement(Jh,{location:n.location,revalidation:n.revalidation,component:k,error:E,children:d(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):d()},null)}var Tf=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Tf||{}),Rf=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}(Rf||{});function tm(e){let t=y.useContext(kl);return t||Q(!1),t}function nm(e){let t=y.useContext(Wh);return t||Q(!1),t}function rm(e){let t=y.useContext(qe);return t||Q(!1),t}function Pf(e){let t=rm(),n=t.matches[t.matches.length-1];return n.route.id||Q(!1),n.route.id}function im(){var e;let t=y.useContext(_f),n=nm(),r=Pf();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function om(){let{router:e}=tm(Tf.UseNavigateStable),t=Pf(Rf.UseNavigateStable),n=y.useRef(!1);return Sf(()=>{n.current=!0}),y.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,hr({fromRouteId:t},o)))},[e,t])}const Ja={};function sm(e,t,n){Ja[e]||(Ja[e]=!0)}function lm(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Wt(e){let{to:t,replace:n,state:r,relative:i}=e;mn()||Q(!1);let{future:o,static:s}=y.useContext(yt),{matches:l}=y.useContext(qe),{pathname:a}=We(),u=yn(),m=wl(t,vl(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 am(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Je.Pop,navigator:o,static:s=!1,future:l}=e;mn()&&Q(!1);let a=t.replace(/^\/*/,"/"),u=y.useMemo(()=>({basename:a,navigator:o,static:s,future:hr({v7_relativeSplatPath:!1},l)}),[a,l,o,s]);typeof r=="string"&&(r=hn(r));let{pathname:m="/",search:v="",hash:h="",state:E=null,key:x="default"}=r,k=y.useMemo(()=>{let c=gl(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(yt.Provider,{value:u},y.createElement(Ui.Provider,{children:n,value:k}))}function Nf(e){let{children:t,location:n}=e;return Qh(cs(t),n)}new Promise(()=>{});function cs(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,cs(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=cs(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 fs(){return fs=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},fs.apply(this,arguments)}function um(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 cm(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function fm(e,t){return e.button===0&&(!t||t==="_self")&&!cm(e)}function ds(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 dm(e,t){let n=ds(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(o=>{n.append(i,o)})}),n}const pm=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],hm="6";try{window.__reactRouterVersion=hm}catch{}const mm="startTransition",Za=md[mm];function ym(e){let{basename:t,children:n,future:r,window:i}=e,o=y.useRef();o.current==null&&(o.current=vh({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&&Za?Za(()=>a(v)):a(v)},[a,u]);return y.useLayoutEffect(()=>s.listen(m),[s,m]),y.useEffect(()=>lm(r),[r]),y.createElement(am,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:s,future:r})}const gm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",vm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Nv=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=um(t,pm),{basename:E}=y.useContext(yt),x,k=!1;if(typeof u=="string"&&vm.test(u)&&(x=u,gm))try{let g=new URL(window.location.href),w=u.startsWith("//")?new URL(g.protocol+u):new URL(u),P=gl(w.pathname,E);w.origin===g.origin&&P!=null?u=P+w.search+w.hash:k=!0}catch{}let c=Hh(u,{relative:i}),f=wm(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",fs({},h,{href:x||c,onClick:k||o?r:d,ref:n,target:a}))});var eu;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(eu||(eu={}));var tu;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(tu||(tu={}));function wm(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s,viewTransition:l}=t===void 0?{}:t,a=yn(),u=We(),m=Cf(e,{relative:s});return y.useCallback(v=>{if(fm(v,n)){v.preventDefault();let h=r!==void 0?r:_i(u)===_i(m);a(e,{replace:h,state:i,preventScrollReset:o,relative:s,viewTransition:l})}},[u,a,m,r,i,n,e,o,s,l])}function Ov(e){let t=y.useRef(ds(e)),n=y.useRef(!1),r=We(),i=y.useMemo(()=>dm(r.search,n.current?null:t.current),[r.search]),o=yn(),s=y.useCallback((l,a)=>{const u=ds(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 km=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),xm=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),nu=e=>{const t=xm(e);return t.charAt(0).toUpperCase()+t.slice(1)},Of=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),Em=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 _m={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 Sm=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,..._m,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Of("lucide",i),...!o&&!Em(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(Sm,{ref:o,iconNode:t,className:Of(`lucide-${km(nu(e))}`,`lucide-${e}`,r),...i}));return n.displayName=nu(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 Cm=[["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"}]],Tm=B("app-window",Cm);/**
|
|
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 Rm=[["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"}]],Pm=B("bell",Rm);/**
|
|
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 Nm=[["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"}]],Om=B("book-open",Nm);/**
|
|
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 Lm=[["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"}]],jm=B("brain",Lm);/**
|
|
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 Am=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Im=B("chevron-down",Am);/**
|
|
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 Dm=[["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"}]],Mm=B("circle-alert",Dm);/**
|
|
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 $m=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Um=B("circle-check-big",$m);/**
|
|
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 Bm=[["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"}]],zm=B("film",Bm);/**
|
|
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 bm=[["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"}]],Fm=B("heart-pulse",bm);/**
|
|
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 Vm=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],qm=B("info",Vm);/**
|
|
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 Wm=[["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"}]],Hm=B("key",Wm);/**
|
|
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 Km=[["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"}]],Qm=B("layout-grid",Km);/**
|
|
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 Gm=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Ym=B("loader-circle",Gm);/**
|
|
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 Xm=[["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"}]],Jm=B("log-out",Xm);/**
|
|
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 Zm=[["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"}]],ey=B("monitor-play",Zm);/**
|
|
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 ty=[["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"}]],Lf=B("refresh-cw",ty);/**
|
|
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 ny=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],jf=B("search",ny);/**
|
|
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 ry=[["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"}]],iy=B("settings",ry);/**
|
|
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 oy=[["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"}]],sy=B("shield-check",oy);/**
|
|
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 ly=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],ay=B("smartphone",ly);/**
|
|
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 uy=[["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"}]],cy=B("triangle-alert",uy);/**
|
|
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 fy=[["path",{d:"m17 2-5 5-5-5",key:"16satq"}],["rect",{width:"20",height:"15",x:"2",y:"7",rx:"2",key:"1e6viu"}]],dy=B("tv",fy);/**
|
|
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 py=[["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"}]],hy=B("user-cog",py);/**
|
|
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 my=[["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"}]],yy=B("user",my);/**
|
|
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 gy=[["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"}]],vy=B("users",gy);/**
|
|
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 wy=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ky=B("x",wy),Bi={"X-Appium-Is-Sensitive":"true"},gt="/xenon/api/auth";class ru extends Error{constructor(t,n,r=null){super(t),this.status=n,this.retryAfterSec=r,this.name="LoginError"}}async function Lv(e,t){let n;try{n=await fetch(`${gt}/login`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json",...Bi},body:JSON.stringify({email:e,password:t})})}catch(r){throw new ru(r.message||"Network error",0)}if(!n.ok){const r=await n.json().catch(()=>({})),i=Number(n.headers.get("Retry-After"));throw new ru(r.error||`Login failed (${n.status})`,n.status,Number.isFinite(i)&&i>0?i:null)}}async function jv(){try{const e=await fetch(`${gt}/options`,{credentials:"include"});return e.ok?{passwordReset:(await e.json()).passwordReset==="email"?"email":"admin"}:{passwordReset:"admin"}}catch{return{passwordReset:"admin"}}}async function xy(){await fetch(`${gt}/logout`,{method:"POST",credentials:"include"})}async function Ey(){const e=await fetch(`${gt}/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 Av(e,t){const n=await fetch(`${gt}/change-password`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json",...Bi},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 Iv(e){const t=await fetch(`${gt}/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 Dv(e){return(await fetch(`${gt}/reset-password/check`,{method:"POST",headers:{"Content-Type":"application/json",...Bi},body:JSON.stringify({token:e})})).ok}async function Mv(e,t){const n=await fetch(`${gt}/reset-password`,{method:"POST",headers:{"Content-Type":"application/json",...Bi},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 Af="xenon-screenshots",He="captures",ps="udid";function If(e,t){return t.takenAt-e.takenAt||t.n-e.n}function iu(){const e=new Map;return{persistent:!1,async list(t){return Array.from(e.values()).filter(n=>n.udid===t).sort(If)},async put(t){e.set(t.id,t)},async delete(t){t.forEach(n=>e.delete(n))},async clear(t){Array.from(e.values()).filter(n=>n.udid===t).forEach(n=>e.delete(n.id))}}}function ou(e){return new Promise((t,n)=>{e.onsuccess=()=>t(e.result),e.onerror=()=>n(e.error)})}function su(e){return new Promise((t,n)=>{e.oncomplete=()=>t(),e.onerror=()=>n(e.error),e.onabort=()=>n(e.error??new Error("transaction aborted"))})}function _y(e){return new Promise((t,n)=>{const r=e.open(Af,1);r.onupgradeneeded=()=>{r.result.createObjectStore(He,{keyPath:"id"}).createIndex(ps,"udid")},r.onsuccess=()=>{const i=r.result;i.onversionchange=()=>i.close(),t(i)},r.onerror=()=>n(r.error),r.onblocked=()=>n(new Error("blocked"))})}function Sy(e){const t=async n=>{const r=e.transaction(He,"readwrite");n(r.objectStore(He)),await su(r)};return{persistent:!0,async list(n){const r=e.transaction(He,"readonly");return(await ou(r.objectStore(He).index(ps).getAll(n))).sort(If)},put:n=>t(r=>r.put(n)),delete:n=>t(r=>n.forEach(i=>r.delete(i))),async clear(n){const r=e.transaction(He,"readwrite"),i=r.objectStore(He).index(ps);(await ou(i.getAllKeys(n))).forEach(s=>r.objectStore(He).delete(s)),await su(r)}}}function Df(){try{return typeof indexedDB>"u"?void 0:indexedDB}catch{return}}async function Cy(e=Df()){if(!e)return iu();try{return Sy(await _y(e))}catch{return iu()}}let Gr=null;function $v(){return Gr||(Gr=Cy()),Gr}async function Ty(e=Df(),t=1e3){if(Gr=null,!e)return;const n=new Promise(r=>{try{const i=e.deleteDatabase(Af);i.onsuccess=()=>r(),i.onerror=()=>r(),i.onblocked=()=>r()}catch{r()}});await Promise.race([n,new Promise(r=>setTimeout(r,t))])}const xl="xenon.hadSession";function Ry(){try{localStorage.setItem(xl,"1")}catch{}}function Py(){try{localStorage.removeItem(xl)}catch{}}function Ny(){try{return localStorage.getItem(xl)==="1"}catch{return!1}}const Mf=y.createContext(null);function Oy({children:e}){const[t,n]=y.useState(!0),[r,i]=y.useState(null);async function o(){try{const l=await Ey();l&&Ry(),i(l)}finally{n(!1)}}async function s(){Py(),await Promise.all([xy(),Ty()]),i(null),window.location.href="/xenon/login"}return y.useEffect(()=>{o()},[]),p.jsx(Mf.Provider,{value:{loading:t,me:r,refresh:o,signOut:s},children:e})}function El(){const e=y.useContext(Mf);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 Yr=Object.create(null);Object.keys(De).forEach(e=>{Yr[De[e]]=e});const hs={type:"error",data:"parser error"},$f=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Uf=typeof ArrayBuffer=="function",Bf=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,_l=({type:e,data:t},n,r)=>$f&&t instanceof Blob?n?r(t):lu(t,r):Uf&&(t instanceof ArrayBuffer||Bf(t))?n?r(t):lu(new Blob([t]),r):r(De[e]+(t||"")),lu=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function au(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let vo;function Ly(e,t){if($f&&e.data instanceof Blob)return e.data.arrayBuffer().then(au).then(t);if(Uf&&(e.data instanceof ArrayBuffer||Bf(e.data)))return t(au(e.data));_l(e,!1,n=>{vo||(vo=new TextEncoder),t(vo.encode(n))})}const uu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Bn=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<uu.length;e++)Bn[uu.charCodeAt(e)]=e;const jy=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=Bn[e.charCodeAt(r)],s=Bn[e.charCodeAt(r+1)],l=Bn[e.charCodeAt(r+2)],a=Bn[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},Ay=typeof ArrayBuffer=="function",Sl=(e,t)=>{if(typeof e!="string")return{type:"message",data:zf(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:Iy(e.substring(1),t)}:Yr[n]?e.length>1?{type:Yr[n],data:e.substring(1)}:{type:Yr[n]}:hs},Iy=(e,t)=>{if(Ay){const n=jy(e);return zf(n,t)}else return{base64:!0,data:e}},zf=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},bf="",Dy=(e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach((o,s)=>{_l(o,!1,l=>{r[s]=l,++i===n&&t(r.join(bf))})})},My=(e,t)=>{const n=e.split(bf),r=[];for(let i=0;i<n.length;i++){const o=Sl(n[i],t);if(r.push(o),o.type==="error")break}return r};function $y(){return new TransformStream({transform(e,t){Ly(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 wo;function Mr(e){return e.reduce((t,n)=>t+n.length,0)}function $r(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 Uy(e,t){wo||(wo=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(Mr(n)<1)break;const a=$r(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(Mr(n)<2)break;const a=$r(n,2);i=new DataView(a.buffer,a.byteOffset,a.length).getUint16(0),r=3}else if(r===2){if(Mr(n)<8)break;const a=$r(n,8),u=new DataView(a.buffer,a.byteOffset,a.length),m=u.getUint32(0);if(m>Math.pow(2,21)-1){l.enqueue(hs);break}i=m*Math.pow(2,32)+u.getUint32(4),r=3}else{if(Mr(n)<i)break;const a=$r(n,i);l.enqueue(Sl(o?a:wo.decode(a),t)),r=0}if(i===0||i>e){l.enqueue(hs);break}}}})}const Ff=4;function G(e){if(e)return By(e)}function By(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 zi=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")(),zy="arraybuffer";function Vf(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const by=ve.setTimeout,Fy=ve.clearTimeout;function bi(e,t){t.useNativeTimers?(e.setTimeoutFn=by.bind(ve),e.clearTimeoutFn=Fy.bind(ve)):(e.setTimeoutFn=ve.setTimeout.bind(ve),e.clearTimeoutFn=ve.clearTimeout.bind(ve))}const Vy=1.33;function qy(e){return typeof e=="string"?Wy(e):Math.ceil((e.byteLength||e.size)*Vy)}function Wy(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 qf(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Hy(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function Ky(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 Qy extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class Cl 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 Qy(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=Sl(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=Hy(t);return n.length?"?"+n:""}}class Gy extends Cl{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)};My(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,Dy(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]=qf()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let Wf=!1;try{Wf=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Yy=Wf;function Xy(){}class Jy extends Gy{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=Vf(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=Xy,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",cu);else if(typeof addEventListener=="function"){const e="onpagehide"in ve?"pagehide":"unload";addEventListener(e,cu,!1)}}function cu(){for(let e in Ie.requests)Ie.requests.hasOwnProperty(e)&&Ie.requests[e].abort()}const Zy=function(){const e=Hf({xdomain:!1});return e&&e.responseType!==null}();class eg extends Jy{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(Hf,this.uri(),t)}}function Hf(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||Yy))return new XMLHttpRequest}catch{}if(!t)try{return new ve[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const Kf=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class tg extends Cl{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,r=Kf?{}:Vf(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;_l(r,this.supportsBinary,o=>{try{this.doWrite(r,o)}catch{}i&&zi(()=>{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]=qf()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const ko=ve.WebSocket||ve.MozWebSocket;class ng extends tg{createSocket(t,n,r){return Kf?new ko(t,n,r):n?new ko(t,n):new ko(t)}doWrite(t,n){this.ws.send(n)}}class rg extends Cl{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=Uy(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),i=$y();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&&zi(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const ig={websocket:ng,webtransport:rg,polling:eg},og=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,sg=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function ms(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=og.exec(e||""),o={},s=14;for(;s--;)o[sg[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=lg(o,o.path),o.queryKey=ag(o,o.query),o}function lg(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 ag(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,o){i&&(n[i]=o)}),n}const ys=typeof addEventListener=="function"&&typeof removeEventListener=="function",Xr=[];ys&&addEventListener("offline",()=>{Xr.forEach(e=>e())},!1);class at extends G{constructor(t,n){if(super(),this.binaryType=zy,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=ms(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=ms(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=Ky(this.opts.query)),ys&&(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"})},Xr.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=Ff,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&&at.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",at.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+=qy(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,zi(()=>{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(at.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(),ys&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=Xr.indexOf(this._offlineEventListener);r!==-1&&Xr.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}at.protocol=Ff;class ug extends at{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;at.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;at.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 cg=class extends ug{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=>ig[i]).filter(i=>!!i)),super(t,r)}};function fg(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=ms(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 dg=typeof ArrayBuffer=="function",pg=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,Qf=Object.prototype.toString,hg=typeof Blob=="function"||typeof Blob<"u"&&Qf.call(Blob)==="[object BlobConstructor]",mg=typeof File=="function"||typeof File<"u"&&Qf.call(File)==="[object FileConstructor]";function Tl(e){return dg&&(e instanceof ArrayBuffer||pg(e))||hg&&e instanceof Blob||mg&&e instanceof File}function Jr(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(Jr(e[n]))return!0;return!1}if(Tl(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Jr(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&Jr(e[n]))return!0;return!1}function yg(e){const t=[],n=e.data,r=e;return r.data=gs(n,t),r.attachments=t.length,{packet:r,buffers:t}}function gs(e,t){if(!e)return e;if(Tl(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]=gs(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]=gs(e[r],t));return n}return e}function gg(e,t){return e.data=vs(e.data,t),delete e.attachments,e}function vs(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]=vs(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=vs(e[n],t));return e}const vg=["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 wg{constructor(t){this.replacer=t}encode(t){return(t.type===D.EVENT||t.type===D.ACK)&&Jr(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=yg(t),r=this.encodeAsString(n.packet),i=n.buffers;return i.unshift(r),i}}class Rl 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 kg(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(Tl(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(Rl.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 fu(n);case D.DISCONNECT:return n===void 0;case D.CONNECT_ERROR:return typeof n=="string"||fu(n);case D.EVENT:case D.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&vg.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 kg{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=gg(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function fu(e){return Object.prototype.toString.call(e)==="[object Object]"}const xg=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Rl,Encoder:wg,get PacketType(){return D}},Symbol.toStringTag,{value:"Module"}));function Re(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const Eg=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Gf 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(Eg.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 gn(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}gn.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};gn.prototype.reset=function(){this.attempts=0};gn.prototype.setMin=function(e){this.ms=e};gn.prototype.setMax=function(e){this.max=e};gn.prototype.setJitter=function(e){this.jitter=e};class ws 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 gn({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||xg;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 cg(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){zi(()=>{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 Gf(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 jn={};function Zr(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=fg(e,t.path||"/socket.io"),r=n.source,i=n.id,o=n.path,s=jn[i]&&o in jn[i].nsps,l=t.forceNew||t["force new connection"]||t.multiplex===!1||s;let a;return l?a=new ws(r,t):(jn[i]||(jn[i]=new ws(r,t)),a=jn[i]),n.query&&!t.query&&(t.query=n.queryKey),a.socket(n.path,t)}Object.assign(Zr,{Manager:ws,Socket:Gf,io:Zr,connect:Zr});let xo=null;const zn=new Map;function _g(e,t){const n=zn.get(e);n&&Array.from(n).forEach(r=>r(t))}function Sg(){if(xo)return xo;const e=Zr(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)=>_g(t,n)),xo=e,e}function Cg(e,t){let n=zn.get(e);return n||(n=new Set,zn.set(e,n)),n.add(t),()=>{const r=zn.get(e);r&&(r.delete(t),r.size===0&&zn.delete(e))}}const Tg=()=>{const[e]=y.useState(Sg),[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)=>Cg(i,o),[]);return{socket:e,isConnected:t,on:r}},Rg=6e4;function Pg(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<Rg)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 Ng(){const{isConnected:e}=Tg(),[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]),Pg(e,t,r,o)}const Yf="xenon.theme",du="dark",Xf="(prefers-color-scheme: light)";function Og(){try{const e=localStorage.getItem(Yf);return e==="light"||e==="system"||e==="dark"?e:du}catch{return du}}function Jf(e,t){return e==="system"?t?"light":"dark":e}function Lg(){return typeof window.matchMedia=="function"&&window.matchMedia(Xf).matches}function Zf(e){document.documentElement.setAttribute("data-theme",e)}function jg(e){try{localStorage.setItem(Yf,e)}catch{}Zf(Jf(e,Lg()))}function Ag(){const[e,t]=y.useState(Og);return y.useEffect(()=>{var o;if(e!=="system"||typeof window.matchMedia!="function")return;const r=window.matchMedia(Xf),i=()=>Zf(Jf("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=>{jg(r),t(r)}]}function Ig({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 Dg=[{value:"dark",label:"Dark"},{value:"light",label:"Light"},{value:"system",label:"System"}],Mg=()=>{const e=yn(),{me:t,signOut:n}=El(),r=Ng(),[i,o]=Ag(),[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(Ig,{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(jf,{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(Im,{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.12.0"]})]})]}),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:Dg.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(yy,{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(Jm,{className:"h-3.5 w-3.5"}),"Logout"]})]})]})]})]})})};class $g 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(cy,{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(Lf,{size:18}),"Reload application"]})]}):this.props.children}}const Ug=y.lazy(()=>V(()=>import("./overview-Cxe8aQ7C.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]))),pu=y.lazy(()=>V(()=>import("./device-explorer-CoPR8DW3.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,43,44,45,2,46,47,48,49,50,51]))),hu=y.lazy(()=>V(()=>import("./builds-page-JkzWKRpU.js"),__vite__mapDeps([52,53,54,40,13,41,32,12,14,43,1,37,36,33,3,4,55,6,7,15,16,38,39]))),Bg=y.lazy(()=>V(()=>import("./session-detail-page-BjLaJy8z.js"),__vite__mapDeps([56,53,54,45,33,1,9,10,37,36,55,27,57,2,58,59,38,39,5,60,43,30,31,21,18,22,61]))),zg=y.lazy(()=>V(()=>import("./runbook-page-mnsxgS1d.js"),__vite__mapDeps([62,45,63]))),bg=y.lazy(()=>V(()=>import("./apps-DIbcGVlU.js"),__vite__mapDeps([64,54,12,13,14,6,7,15,16,21,18,22,23,24,44,19,27,35,43,47,65]))),Fg=y.lazy(()=>V(()=>import("./webhook-settings-BMzyUcx5.js"),__vite__mapDeps([66,23,24,6,7,47,26,37,36,35,5,67,68])).then(e=>({default:e.WebhookSettings}))),Vg=y.lazy(()=>V(()=>import("./settings-B6cpMhsx.js"),__vite__mapDeps([69,70,12,13,14,71,21,18,22,6,7,36,25,34,19,5,72,57,68])).then(e=>({default:e.Settings}))),qg=y.lazy(()=>V(()=>import("./ai-settings-G9SymiPH.js"),__vite__mapDeps([73,70,12,13,14,71,6,7,48,36,5,68])).then(e=>({default:e.AISettings}))),Wg=y.lazy(()=>V(()=>import("./maintenance-settings-DcRmTLS6.js"),__vite__mapDeps([74,70,12,13,14,71,6,7,47,19,72,68])).then(e=>({default:e.MaintenanceSettings}))),Hg=y.lazy(()=>V(()=>import("./api-keys-CrGlbfn-.js"),__vite__mapDeps([75,54,30,31,23,24,6,7,21,18,22,12,13,14,40,41,15,16,26,47,19,27,68])).then(e=>({default:e.ApiKeys}))),Kg=y.lazy(()=>V(()=>import("./teams-uiiG4hZM.js"),__vite__mapDeps([76,54,30,31,23,24,6,7,21,18,22,12,13,14,40,41,15,16,77,26,45,47,68])).then(e=>({default:e.Teams}))),Qg=y.lazy(()=>V(()=>import("./selector-health-page-BdJb_x5L.js"),__vite__mapDeps([78,6,7,28,29,12,13,14,55,58,59,38,39,40,41,15,16,79,1,21,18,22,19,27]))),Gg=y.lazy(()=>V(()=>import("./selector-detail-redirect-CcI2j_Su.js"),__vite__mapDeps([80,79]))),Yg=y.lazy(()=>V(()=>import("./DeviceMosaicView-Ccc-pOls.js"),__vite__mapDeps([81,11,1,36,46,60,26,28,29,82,43,12,13,14,25,6,7]))),Xg=y.lazy(()=>V(()=>import("./profile-page--dkDiKbr.js"),__vite__mapDeps([83,6,7,54,15,13,16,27,47]))),Jg=y.lazy(()=>V(()=>import("./users-BDh1xjad.js"),__vite__mapDeps([84,77,54,6,7,12,13,14,40,41,15,16,26,47]))),Zg=y.lazy(()=>V(()=>import("./RecordingsPage-7kM1rB3i.js"),__vite__mapDeps([85,6,7,30,31,12,13,14,38,39,40,41,49,17,18,19,20,26,50,82,86,87]))),ev=y.lazy(()=>V(()=>import("./RecordingPage-Bwyf3WMl.js"),__vite__mapDeps([88,82,6,7,12,13,14,38,39,21,18,22,17,19,20,46,86,87,45,47,42,43]))),tv=()=>p.jsxs("div",{className:"flex items-center justify-center gap-2 h-full text-xs text-[var(--text-dim)]",children:[p.jsx(Lf,{className:"animate-spin",size:14}),p.jsx("span",{children:"Hydrating view…"})]}),nv=()=>p.jsx($g,{children:p.jsx(y.Suspense,{fallback:p.jsx(tv,{}),children:p.jsxs(Nf,{children:[p.jsx($,{path:"/",element:p.jsx(Wt,{to:"/overview",replace:!0})}),p.jsx($,{path:"/overview",element:p.jsx(Ug,{})}),p.jsx($,{path:"/devices",element:p.jsx(pu,{})}),p.jsx($,{path:"/devices/:udid/control/:tab?",element:p.jsx(pu,{})}),p.jsx($,{path:"/apps",element:p.jsx(bg,{})}),p.jsx($,{path:"/sessions",element:p.jsx(Wt,{to:"/builds",replace:!0})}),p.jsx($,{path:"/sessions/*",element:p.jsx(Wt,{to:"/builds",replace:!0})}),p.jsx($,{path:"/builds",element:p.jsx(hu,{})}),p.jsx($,{path:"/builds/:buildId",element:p.jsx(hu,{})}),p.jsx($,{path:"/builds/:buildId/sessions/:sessionId",element:p.jsx(Bg,{})}),p.jsx($,{path:"/notifications",element:p.jsx(Fg,{})}),p.jsx($,{path:"/settings",element:p.jsx(Vg,{})}),p.jsx($,{path:"/ai-settings",element:p.jsx(qg,{})}),p.jsx($,{path:"/maintenance",element:p.jsx(Wg,{})}),p.jsx($,{path:"/api-keys",element:p.jsx(Hg,{})}),p.jsx($,{path:"/teams",element:p.jsx(Kg,{})}),p.jsx($,{path:"/users",element:p.jsx(Jg,{})}),p.jsx($,{path:"/selector-health",element:p.jsx(Qg,{})}),p.jsx($,{path:"/selector-health/detail",element:p.jsx(Gg,{})}),p.jsx($,{path:"/devices/live",element:p.jsx(Yg,{})}),p.jsx($,{path:"/recordings",element:p.jsx(Zg,{})}),p.jsx($,{path:"/recordings/:groupId",element:p.jsx(ev,{})}),p.jsx($,{path:"/runbooks/:category",element:p.jsx(zg,{})}),p.jsx($,{path:"/profile",element:p.jsx(Xg,{})}),p.jsx($,{path:"*",element:p.jsx(Wt,{to:"/overview",replace:!0})})]})})});let mr=null;function mu(e){mr=e}const rv=new Set(["device_held_by_another_user","device_in_use_by_session"]),iv=new Set(["not_available_through_hub","not_available_for_cloud_phone"]);function ov(e){return!e||typeof e!="object"?!1:rv.has(e.error??"")}const sv=5e3,yu=new Map;function gu(e){if(!mr)return;const t=Date.now(),n=yu.get(e)??0;t-n<sv||(yu.set(e,t),mr(e,"error"))}class ed extends Error{constructor(t,n,r){super(t),this.status=n,this.body=r,this.name="ApiError"}}async function Eo(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.";mr&&mr(r,"error")}if(e.status===409){const n=await e.clone().json().catch(()=>({}));ov(n)&&gu(n.message||"This device is in use by another user.")}if(e.status===501){const n=await e.clone().json().catch(()=>({}));iv.has(n==null?void 0:n.error)&&n.message&&gu(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 ed(String(r),e.status,n)}return e.json()}class lv{makeGETRequest(t){return fetch(this.formatUrl(t)).then(n=>Eo(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=>Eo(s,!o.resolveErrors))}makeDELETERequest(t,n={}){return fetch(this.formatUrl(t),{method:"DELETE"}).then(r=>Eo(r,!n.resolveErrors))}formatUrl(t){return`/xenon/api${t}`}}const R=new lv;function Bv(e){return e instanceof ed?`The server rejected the change: ${e.message}`:"Couldn't reach the Xenon server. Check your connection and try again."}const td=y.createContext(void 0),zv=()=>{const e=y.useContext(td);if(!e)throw new Error("useToast must be used within a ToastProvider");return e},av=({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,a)=>{const u=Math.random().toString(36).substring(2,9);return n(m=>[...m,{id:u,message:o,type:s,duration:l,action:a}]),s!=="loading"&&l>0&&setTimeout(()=>{r(u)},l),u},[r]);return y.useEffect(()=>(mu((o,s="info")=>i(o,s)),()=>mu(null)),[i]),p.jsxs(td.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(Um,{size:18}),o.type==="error"&&p.jsx(Mm,{size:18}),o.type==="info"&&p.jsx(qm,{size:18}),o.type==="loading"&&p.jsx(Ym,{size:18,className:"animate-spin"})]}),p.jsx("div",{className:"toast-message",children:o.message}),o.action&&p.jsx("button",{className:"toast-action",onClick:()=>{var s;r(o.id),(s=o.action)==null||s.onClick()},children:o.action.label}),p.jsx("button",{className:"toast-close",onClick:()=>r(o.id),"aria-label":`Close ${o.type} notification`,children:p.jsx(ky,{size:14})})]},o.id))})]})},uv=[{id:"overview",label:"Overview",icon:Qm,path:"/overview"},{id:"devices",label:"Devices",icon:ay,path:"/devices"},{id:"live-devices",label:"Live devices",icon:dy,path:"/devices/live"},{id:"recordings",label:"Recordings",icon:zm,path:"/recordings"},{id:"apps",label:"Apps",icon:Tm,path:"/apps"},{id:"sessions",label:"Sessions",icon:ey,path:"/builds"},{id:"selector-health",label:"Selector health",icon:Fm,path:"/selector-health"},{id:"notifications",label:"Notifications",icon:Pm,path:"/notifications"},{id:"settings",label:"Settings",icon:iy,path:"/settings",minRole:"ADMIN"},{id:"ai",label:"AI engine",icon:jm,path:"/ai-settings",minRole:"ADMIN"},{id:"maintenance",label:"Maintenance",icon:sy,path:"/maintenance",minRole:"ADMIN"},{id:"teams",label:"Teams",icon:vy,path:"/teams",minRole:"ADMIN"},{id:"users",label:"Users",icon:hy,path:"/users",minRole:"ADMIN"},{id:"apikeys",label:"API keys",icon:Hm,path:"/api-keys",minRole:"ADMIN"}],vu={SUPER_ADMIN:3,ADMIN:2,MEMBER:1};function cv(e,t){return t?(e?vu[e]??0:0)>=vu[t]:!0}const fv=()=>{const e=yn(),t=We(),{me:n}=El(),r=uv.filter(l=>cv(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(Om,{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 An{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 dv(e){if(!(e instanceof HTMLElement))return!1;if(e.isContentEditable)return!0;const t=e.tagName;return t==="INPUT"||t==="TEXTAREA"||t==="SELECT"}function pv(){const[e,t]=y.useState(!1);return y.useEffect(()=>{const n=i=>{(i.metaKey||i.ctrlKey)&&i.key.toLowerCase()==="k"&&!dv(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 wu(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 ku=[{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 hv{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()?[...ku,...this.devices,...this.builds,...this.sessions,...this.teams,...this.keys,...this.apps].map(i=>{const o=wu(t,i.label),s=i.sub?wu(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):ku.slice(0,n)}}const mv={nav:"Navigation",device:"Devices",build:"Builds",session:"Running sessions",team:"Teams",key:"API keys",app:"Apps"},yv=["nav","device","build","session","team","key","app"],gv=()=>{const{open:e,setOpen:t}=pv(),[n,r]=y.useState(""),[i,o]=y.useState(0),s=yn(),l=y.useRef(new hv),a=y.useRef(null);y.useEffect(()=>{if(!e)return;Promise.all([An.getDevices().catch(()=>[]),An.getSessions().catch(()=>[]),An.getApps().catch(()=>[]),An.listTeams().catch(()=>[]),An.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(jf,{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."}),yv.filter(x=>m.has(x)).map(x=>p.jsxs("div",{className:"cp-group",children:[p.jsx("div",{className:"cp-group-head",children:mv[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 vv({children:e}){const{loading:t,me:n}=El(),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=Ny()?"&reason=expired":"";return p.jsx(Wt,{to:`/login?next=${i}${o}`,replace:!0})}return p.jsx(p.Fragment,{children:e})}const xu="Xenon",wv={"/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"},nd=new Map;function bv(e,t){t&&nd.set(e,t)}function kv(e){const t=e.replace(/\/+$/,"")||"/";let n=wv[t];if(!n){let r;if(r=t.match(/^\/devices\/([^/]+)\/control/)){const i=decodeURIComponent(r[1]);n=`${nd.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} · ${xu}`:xu}function xv(){const{pathname:e}=We();return y.useEffect(()=>{document.title=kv(e)},[e]),null}const Ev=y.lazy(()=>V(()=>import("./login-BJ8a7yVD.js"),__vite__mapDeps([89,13,90,91,61,48,25,2]))),_v=y.lazy(()=>V(()=>import("./forgot-password-B8WqMqBT.js"),__vite__mapDeps([92,90,91,61]))),Eu=y.lazy(()=>V(()=>import("./reset-password-KYWlfjia.js"),__vite__mapDeps([93,91,61]))),Sv=y.lazy(()=>V(()=>import("./ApiKeyGate-BThVlj_j.js"),[]).then(e=>({default:e.ApiKeyGate})));function Cv(){return p.jsx(av,{children:p.jsxs("div",{className:"min-h-screen w-full bg-[var(--bg)] text-[var(--text)]",children:[p.jsx(fv,{}),p.jsx(Mg,{}),p.jsx("main",{className:"pl-14 pt-14 h-screen overflow-y-auto",children:p.jsx(nv,{})}),p.jsx(gv,{})]})})}function Tv(){return p.jsxs(ym,{basename:"/xenon",children:[p.jsx(xv,{}),p.jsx(Oy,{children:p.jsx(y.Suspense,{fallback:p.jsx("div",{style:{padding:40},children:"Loading…"}),children:p.jsxs(Nf,{children:[p.jsx($,{path:"/login",element:p.jsx(Ev,{})}),p.jsx($,{path:"/forgot-password",element:p.jsx(_v,{})}),p.jsx($,{path:"/reset-password",element:p.jsx(Eu,{})}),p.jsx($,{path:"/reset-password/:token",element:p.jsx(Eu,{})}),p.jsx($,{path:"/api-key-gate",element:p.jsx(Sv,{children:p.jsx(Wt,{to:"/overview",replace:!0})})}),p.jsx($,{path:"*",element:p.jsx(vv,{children:p.jsx(Cv,{})})})]})})})]})}wf.render(p.jsx(y.StrictMode,{children:p.jsx(Tv,{})}),document.getElementById("root"));export{Av as $,Lf as A,$v as B,Mm as C,bv as D,kv as E,Ov as F,_u as G,Om as H,qm as I,Tm as J,Pm as K,ru as L,ey as M,Wt as N,Fm as O,iy as P,jm as Q,hd as R,sy as S,dy as T,yy as U,Bv as V,Hm as W,An as X,vy as Y,zm as Z,ov as _,We as a,hy as a0,Rv as a1,md as a2,El as b,B as c,Py as d,Nv as e,Ym as f,Iv as g,jv as h,Pv as i,p as j,Dv as k,Lv as l,Mv as m,Ig as n,Bi as o,Tg as p,ay as q,y as r,Qm as s,zv as t,yn as u,ky as v,Im as w,wf as x,cy as y,jf as z};
|