diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a48dc0d8..e51775e82 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,9 +8,11 @@ All notable changes to Bambuddy will be documented in this file. - **Spool Inventory — AMS Slot Assignment** — Assign inventory spools to AMS slots for filament tracking. Hover over any non-Bambu-Lab AMS slot to assign or unassign spools. The assign modal filters out Bambu Lab spools (tracked via RFID) and spools already assigned to other slots. Bambu Lab spool slots automatically hide assign/unassign UI since they are managed by the AMS. When a Bambu Lab spool is inserted into a slot with a manual assignment, the assignment is automatically unlinked. - **Spool Inventory — Remaining Weight Editing** — Edit the remaining filament weight when adding or editing a spool. The new "Remaining Weight" field in the Additional section shows current weight (label weight minus consumed) with a max reference. Edits are stored as `weight_used` internally. - **Spool Inventory — 3MF-Based Usage Tracking for Non-BL Spools** — Non-Bambu-Lab spools (no RFID) cannot use AMS remain% for usage tracking. Now falls back to per-filament weight estimates from the archived 3MF file (`used_g` per filament slot). For completed prints, uses the full slicer estimate. For failed or aborted prints, scales by print progress percentage. Bambu Lab spools continue using AMS remain% delta tracking as before. +- **Printer Status Summary Bar — Next Available & Availability Count** ([#354](https://github.com/maziggy/bambuddy/issues/354)) — The status bar on the Printers page now shows an availability count ("X available") alongside the printing/offline counts, and a "Next available" indicator showing which printing printer will finish soonest — with printer name, mini progress bar, completion percentage, and remaining time. Useful for print farms to quickly identify the next free printer. Updates in real-time via WebSocket. Translated in all 4 locales (en, de, ja, it). - **Nozzle-Aware AMS Filament Mapping for Dual-Nozzle Printers** ([#318](https://github.com/maziggy/bambuddy/issues/318)) — On dual-nozzle printers (H2D, H2D Pro), each AMS unit is physically connected to either the left or right nozzle. Bambuddy now reads nozzle assignments from the 3MF file (`filament_nozzle_map` + `physical_extruder_map` in `project_settings.config`) and constrains filament matching to only AMS trays connected to the correct nozzle via `ams_extruder_map`. Applies to the print scheduler, reprint modal, queue modal, and multi-printer selection. Falls back gracefully to unfiltered matching when no trays exist on the target nozzle. The filament mapping UI shows L/R nozzle badges for dual-nozzle prints. Translated in all 4 locales (en, de, ja, it). ### Fixed +- **Bulk Archive Delete Leaves Orphaned Database Records** — When bulk-deleting archives, the files were removed from disk before the database commit. If concurrent SQLite writes caused a lock timeout, the commit failed and rolled back — leaving database records pointing to deleted files (broken thumbnails, 404 errors). Fixed by deleting the database record first and only removing files after a successful commit. - **Model-Specific Maintenance Tasks for Carbon Rods vs Linear Rails** ([#351](https://github.com/maziggy/bambuddy/issues/351)) — Maintenance tasks "Clean Carbon Rods" and "Lubricate Linear Rails" were shown for all printers regardless of motion system. H2 and A1 series use linear rails (not carbon rods), and X1/P1/P2S series use carbon rods (not linear rails). Maintenance types are now classified by rod/rail type: "Lubricate Carbon Rods" and "Clean Carbon Rods" for X1/P1/P2S, "Lubricate Linear Rails" and "Clean Linear Rails" for A1/H2. Stale and duplicate system types are automatically cleaned up on startup. Includes model-specific wiki links and i18n keys for all 4 locales. - **AMS Slot Configuration Overwritten on Startup** — Bambuddy was resetting AMS slot filament presets on every startup and reconnection. The `on_ams_change` callback unconditionally unlinked Bambu Lab spool assignments on each MQTT push-all response, then re-assigned them by sending `ams_filament_setting` without a `setting_id`, which cleared the printer's filament preset. Now compares spool RFID identifiers (`tray_uuid` / `tag_uid`) before unlinking — if the same spool is still in the slot, the assignment is preserved and no `ams_filament_setting` command is sent. - **Bambu Lab Spool Detection False Positives** — The `is_bambu_lab_spool()` function (backend) and `isBambuLabSpool()` (frontend) incorrectly identified third-party spools as Bambu Lab spools when they used Bambu generic filament presets (e.g., "Generic PLA"). The `tray_info_idx` field (e.g., "GFA00") identifies the filament *type*, not the spool manufacturer — third-party spools using Bambu presets also have GF-prefixed values. Removed `tray_info_idx` from detection logic; now uses only hardware RFID identifiers (`tray_uuid` and `tag_uid`) which are physically embedded in genuine Bambu Lab spools. diff --git a/backend/app/services/archive.py b/backend/app/services/archive.py index 599041262..b497bc8ec 100644 --- a/backend/app/services/archive.py +++ b/backend/app/services/archive.py @@ -1026,8 +1026,9 @@ class ArchiveService: if not archive: return False - # Delete files - with CRITICAL safety checks to prevent accidental deletion - # of parent directories (e.g., /opt) if file_path is empty/malformed + # Resolve the directory to delete BEFORE committing the DB change + dir_to_delete: Path | None = None + if archive.file_path and archive.file_path.strip(): file_path = settings.base_dir / archive.file_path if file_path.exists(): @@ -1041,13 +1042,11 @@ class ArchiveService: f"SECURITY: Refusing to delete archive {archive_id} - " f"path {archive_dir} is outside archive directory {settings.archive_dir}" ) - # Still delete the database record, just not the files await self.db.delete(archive) await self.db.commit() return True # Safety check 2: archive_dir must be at least 1 level deep inside archive_dir - # (should be archive_dir/uuid/file.3mf, so parent should be archive_dir/uuid) try: relative_path = archive_dir.resolve().relative_to(settings.archive_dir.resolve()) if len(relative_path.parts) < 1: @@ -1061,16 +1060,22 @@ class ArchiveService: except ValueError: pass # Already handled above - shutil.rmtree(archive_dir, ignore_errors=True) + dir_to_delete = archive_dir else: logger.error( f"SECURITY: Refusing to delete files for archive {archive_id} - " f"file_path is empty or invalid: '{archive.file_path}'" ) - # Delete database record + # Delete database record FIRST — if the commit fails (e.g. database locked + # during concurrent bulk deletes), the files stay on disk and nothing is lost. await self.db.delete(archive) await self.db.commit() + + # Only delete files AFTER the DB commit succeeds to avoid orphaned records + if dir_to_delete: + shutil.rmtree(dir_to_delete, ignore_errors=True) + return True async def attach_timelapse( diff --git a/frontend/src/i18n/locales/de.ts b/frontend/src/i18n/locales/de.ts index da59c6a3f..470934b84 100644 --- a/frontend/src/i18n/locales/de.ts +++ b/frontend/src/i18n/locales/de.ts @@ -124,6 +124,7 @@ export default { nozzleCount: 'Düsenanzahl', autoArchive: 'Automatische Archivierung', status: { + available: 'Verfügbar', idle: 'Bereit', printing: 'Druckt', paused: 'Pausiert', @@ -163,6 +164,7 @@ export default { }, // Controls hideOffline: 'Offline ausblenden', + nextAvailable: 'Nächster verfügbar', powerOn: 'Einschalten', offlinePrintersWithPlugs: 'Offline-Drucker mit Smart-Plugs', noPrintersConfigured: 'Noch keine Drucker konfiguriert', diff --git a/frontend/src/i18n/locales/en.ts b/frontend/src/i18n/locales/en.ts index c009cd98f..2075fad81 100644 --- a/frontend/src/i18n/locales/en.ts +++ b/frontend/src/i18n/locales/en.ts @@ -124,6 +124,7 @@ export default { nozzleCount: 'Nozzle Count', autoArchive: 'Auto Archive', status: { + available: 'Available', idle: 'Idle', printing: 'Printing', paused: 'Paused', @@ -163,6 +164,7 @@ export default { }, // Controls hideOffline: 'Hide offline', + nextAvailable: 'Next available', powerOn: 'Power On', offlinePrintersWithPlugs: 'Offline printers with smart plugs', noPrintersConfigured: 'No printers configured yet', diff --git a/frontend/src/i18n/locales/it.ts b/frontend/src/i18n/locales/it.ts index f1545d89a..32edbcae8 100644 --- a/frontend/src/i18n/locales/it.ts +++ b/frontend/src/i18n/locales/it.ts @@ -121,6 +121,7 @@ export default { nozzleCount: 'Numero Ugelli', autoArchive: 'Auto Archiviazione', status: { + available: 'Disponibile', idle: 'Inattiva', printing: 'In stampa', paused: 'In pausa', @@ -160,6 +161,7 @@ export default { }, // Controls hideOffline: 'Nascondi offline', + nextAvailable: 'Prossima disponibile', powerOn: 'Accendi', offlinePrintersWithPlugs: 'Stampanti offline con smart plug', noPrintersConfigured: 'Nessuna stampante configurata', diff --git a/frontend/src/i18n/locales/ja.ts b/frontend/src/i18n/locales/ja.ts index 4c3d5bdd2..602ddc13d 100644 --- a/frontend/src/i18n/locales/ja.ts +++ b/frontend/src/i18n/locales/ja.ts @@ -133,6 +133,7 @@ export default { nozzleCount: 'ノズル数', autoArchive: '自動アーカイブ', status: { + available: '利用可能', idle: '待機中', printing: '印刷中', paused: '一時停止', @@ -167,6 +168,7 @@ export default { extraLarge: '特大', }, hideOffline: 'オフラインを非表示', + nextAvailable: '次に完了', powerOn: '電源オン', noPrintersConfigured: 'プリンターが設定されていません', readyToPrint: '印刷可能', diff --git a/frontend/src/pages/PrintersPage.tsx b/frontend/src/pages/PrintersPage.tsx index 57c739560..ee1ea69ac 100644 --- a/frontend/src/pages/PrintersPage.tsx +++ b/frontend/src/pages/PrintersPage.tsx @@ -1236,39 +1236,16 @@ function StatusSummaryBar({ printers }: { printers: Printer[] | undefined }) { const { t } = useTranslation(); const queryClient = useQueryClient(); - const counts = useMemo(() => { - let printing = 0; - let idle = 0; - let offline = 0; - let loading = 0; - - printers?.forEach((printer) => { - const status = queryClient.getQueryData<{ connected: boolean; state: string | null }>(['printerStatus', printer.id]); - if (status === undefined) { - // Status not yet loaded - don't count as offline yet - loading++; - } else if (!status.connected) { - offline++; - } else if (status.state === 'RUNNING') { - printing++; - } else { - idle++; - } - }); - - return { printing, idle, offline, loading, total: (printers?.length || 0) }; - }, [printers, queryClient]); - // Subscribe to query cache changes to re-render when status updates // Throttled to prevent rapid re-renders from causing tab crashes - const [, setTick] = useState(0); + const [cacheTick, setCacheTick] = useState(0); useEffect(() => { let pending = false; const unsubscribe = queryClient.getQueryCache().subscribe(() => { if (!pending) { pending = true; requestAnimationFrame(() => { - setTick(t => t + 1); + setCacheTick(t => t + 1); pending = false; }); } @@ -1276,10 +1253,53 @@ function StatusSummaryBar({ printers }: { printers: Printer[] | undefined }) { return () => unsubscribe(); }, [queryClient]); + const { counts, nextFinish } = useMemo(() => { + let printing = 0; + let idle = 0; + let offline = 0; + let loading = 0; + let nextPrinterName: string | null = null; + let nextRemainingMin: number | null = null; + let nextProgress: number = 0; + + printers?.forEach((printer) => { + const status = queryClient.getQueryData<{ connected: boolean; state: string | null; remaining_time: number | null; progress: number | null }>(['printerStatus', printer.id]); + if (status === undefined) { + // Status not yet loaded - don't count as offline yet + loading++; + } else if (!status.connected) { + offline++; + } else if (status.state === 'RUNNING') { + printing++; + if (status.remaining_time != null && status.remaining_time > 0) { + if (nextRemainingMin === null || status.remaining_time < nextRemainingMin) { + nextRemainingMin = status.remaining_time; + nextPrinterName = printer.name; + nextProgress = status.progress || 0; + } + } + } else { + idle++; + } + }); + + return { + counts: { printing, idle, offline, loading, total: (printers?.length || 0) }, + nextFinish: nextPrinterName && nextRemainingMin ? { name: nextPrinterName, remainingMin: nextRemainingMin, progress: nextProgress } : null, + }; + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [printers, queryClient, cacheTick]); + if (!printers?.length) return null; return (
+
+
0 ? 'bg-bambu-green' : 'bg-gray-500'}`} /> + + {counts.idle} {t('printers.status.available').toLowerCase()} + +
{counts.printing > 0 && (
@@ -1288,14 +1308,6 @@ function StatusSummaryBar({ printers }: { printers: Printer[] | undefined }) {
)} - {counts.idle > 0 && ( -
-
- - {counts.idle} {t('printers.status.idle').toLowerCase()} - -
- )} {counts.offline > 0 && (
@@ -1304,6 +1316,23 @@ function StatusSummaryBar({ printers }: { printers: Printer[] | undefined }) {
)} + {nextFinish && ( + <> +
+
+ {t('printers.nextAvailable')}: + {nextFinish.name} +
+
+
+ {Math.round(nextFinish.progress)}% + ({formatTime(nextFinish.remainingMin * 60)}) +
+ + )}
); } diff --git a/static/assets/index-D1nHfvlC.js b/static/assets/index-DIy2OgxD.js similarity index 84% rename from static/assets/index-D1nHfvlC.js rename to static/assets/index-DIy2OgxD.js index f7c40e248..2d5c46ec8 100644 --- a/static/assets/index-D1nHfvlC.js +++ b/static/assets/index-DIy2OgxD.js @@ -1,18 +1,18 @@ -function mse(t,e){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();var Gw=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wl(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var cA={exports:{}},zx={};var pU;function pse(){if(pU)return zx;pU=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(r,i,s){var o=null;if(s!==void 0&&(o=""+s),i.key!==void 0&&(o=""+i.key),"key"in i){s={};for(var l in i)l!=="key"&&(s[l]=i[l])}else s=i;return i=s.ref,{$$typeof:t,type:r,key:o,ref:i!==void 0?i:null,props:s}}return zx.Fragment=e,zx.jsx=n,zx.jsxs=n,zx}var gU;function gse(){return gU||(gU=1,cA.exports=pse()),cA.exports}var a=gse(),uA={exports:{}},Nn={};var bU;function bse(){if(bU)return Nn;bU=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),o=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.activity"),p=Symbol.iterator;function m(V){return V===null||typeof V!="object"?null:(V=p&&V[p]||V["@@iterator"],typeof V=="function"?V:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,b={};function v(V,W,ie){this.props=V,this.context=W,this.refs=b,this.updater=ie||x}v.prototype.isReactComponent={},v.prototype.setState=function(V,W){if(typeof V!="object"&&typeof V!="function"&&V!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,V,W,"setState")},v.prototype.forceUpdate=function(V){this.updater.enqueueForceUpdate(this,V,"forceUpdate")};function S(){}S.prototype=v.prototype;function k(V,W,ie){this.props=V,this.context=W,this.refs=b,this.updater=ie||x}var A=k.prototype=new S;A.constructor=k,y(A,v.prototype),A.isPureReactComponent=!0;var N=Array.isArray;function E(){}var M={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function T(V,W,ie){var J=ie.ref;return{$$typeof:t,type:V,key:W,ref:J!==void 0?J:null,props:ie}}function j(V,W){return T(V.type,W,V.props)}function z(V){return typeof V=="object"&&V!==null&&V.$$typeof===t}function F(V){var W={"=":"=0",":":"=2"};return"$"+V.replace(/[=:]/g,function(ie){return W[ie]})}var $=/\/+/g;function D(V,W){return typeof V=="object"&&V!==null&&V.key!=null?F(""+V.key):W.toString(36)}function H(V){switch(V.status){case"fulfilled":return V.value;case"rejected":throw V.reason;default:switch(typeof V.status=="string"?V.then(E,E):(V.status="pending",V.then(function(W){V.status==="pending"&&(V.status="fulfilled",V.value=W)},function(W){V.status==="pending"&&(V.status="rejected",V.reason=W)})),V.status){case"fulfilled":return V.value;case"rejected":throw V.reason}}throw V}function q(V,W,ie,J,pe){var fe=typeof V;(fe==="undefined"||fe==="boolean")&&(V=null);var ve=!1;if(V===null)ve=!0;else switch(fe){case"bigint":case"string":case"number":ve=!0;break;case"object":switch(V.$$typeof){case t:case e:ve=!0;break;case d:return ve=V._init,q(ve(V._payload),W,ie,J,pe)}}if(ve)return pe=pe(V),ve=J===""?"."+D(V,0):J,N(pe)?(ie="",ve!=null&&(ie=ve.replace($,"$&/")+"/"),q(pe,W,ie,"",function(ce){return ce})):pe!=null&&(z(pe)&&(pe=j(pe,ie+(pe.key==null||V&&V.key===pe.key?"":(""+pe.key).replace($,"$&/")+"/")+ve)),W.push(pe)),1;ve=0;var Le=J===""?".":J+":";if(N(V))for(var de=0;de>>1,se=q[Z];if(0>>1;Zi(ie,K))Ji(pe,ie)?(q[Z]=pe,q[J]=K,Z=J):(q[Z]=ie,q[W]=K,Z=W);else if(Ji(pe,K))q[Z]=pe,q[J]=K,Z=J;else break e}}return I}function i(q,I){var K=q.sortIndex-I.sortIndex;return K!==0?K:q.id-I.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var o=Date,l=o.now();t.unstable_now=function(){return o.now()-l}}var c=[],u=[],d=1,h=null,p=3,m=!1,x=!1,y=!1,b=!1,v=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function A(q){for(var I=n(u);I!==null;){if(I.callback===null)r(u);else if(I.startTime<=q)r(u),I.sortIndex=I.expirationTime,e(c,I);else break;I=n(u)}}function N(q){if(y=!1,A(q),!x)if(n(c)!==null)x=!0,E||(E=!0,F());else{var I=n(u);I!==null&&H(N,I.startTime-q)}}var E=!1,M=-1,P=5,T=-1;function j(){return b?!0:!(t.unstable_now()-Tq&&j());){var Z=h.callback;if(typeof Z=="function"){h.callback=null,p=h.priorityLevel;var se=Z(h.expirationTime<=q);if(q=t.unstable_now(),typeof se=="function"){h.callback=se,A(q),I=!0;break t}h===n(c)&&r(c),A(q)}else r(c);h=n(c)}if(h!==null)I=!0;else{var V=n(u);V!==null&&H(N,V.startTime-q),I=!1}}break e}finally{h=null,p=K,m=!1}I=void 0}}finally{I?F():E=!1}}}var F;if(typeof k=="function")F=function(){k(z)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,D=$.port2;$.port1.onmessage=z,F=function(){D.postMessage(null)}}else F=function(){v(z,0)};function H(q,I){M=v(function(){q(t.unstable_now())},I)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(q){q.callback=null},t.unstable_forceFrameRate=function(q){0>q||125Z?(q.sortIndex=K,e(u,q),n(c)===null&&q===n(u)&&(y?(S(M),M=-1):y=!0,H(N,K-Z))):(q.sortIndex=se,e(c,q),x||m||(x=!0,E||(E=!0,F()))),q},t.unstable_shouldYield=j,t.unstable_wrapCallback=function(q){var I=p;return function(){var K=p;p=I;try{return q.apply(this,arguments)}finally{p=K}}}})(fA)),fA}var vU;function vse(){return vU||(vU=1,hA.exports=yse()),hA.exports}var mA={exports:{}},ns={};var wU;function wse(){if(wU)return ns;wU=1;var t=Cb();function e(c){var u="https://react.dev/errors/"+c;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),mA.exports=wse(),mA.exports}var SU;function _se(){if(SU)return Ux;SU=1;var t=vse(),e=Cb(),n=nW();function r(f){var g="https://react.dev/errors/"+f;if(1se||(f.current=Z[se],Z[se]=null,se--)}function ie(f,g){se++,Z[se]=f.current,f.current=g}var J=V(null),pe=V(null),fe=V(null),ve=V(null);function Le(f,g){switch(ie(fe,g),ie(pe,f),ie(J,null),g.nodeType){case 9:case 11:f=(f=g.documentElement)&&(f=f.namespaceURI)?Iz(f):0;break;default:if(f=g.tagName,g=g.namespaceURI)g=Iz(g),f=zz(g,f);else switch(f){case"svg":f=1;break;case"math":f=2;break;default:f=0}}W(J),ie(J,f)}function de(){W(J),W(pe),W(fe)}function ce(f){f.memoizedState!==null&&ie(ve,f);var g=J.current,_=zz(g,f.type);g!==_&&(ie(pe,f),ie(J,_))}function Ee(f){pe.current===f&&(W(J),W(pe)),ve.current===f&&(W(ve),Lx._currentValue=K)}var re,Ie;function G(f){if(re===void 0)try{throw Error()}catch(_){var g=_.stack.trim().match(/\n( *(at )?)/);re=g&&g[1]||"",Ie=-1<_.stack.indexOf(` +function pse(t,e){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();var Gw=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wl(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var cA={exports:{}},zx={};var pU;function gse(){if(pU)return zx;pU=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(r,i,s){var o=null;if(s!==void 0&&(o=""+s),i.key!==void 0&&(o=""+i.key),"key"in i){s={};for(var l in i)l!=="key"&&(s[l]=i[l])}else s=i;return i=s.ref,{$$typeof:t,type:r,key:o,ref:i!==void 0?i:null,props:s}}return zx.Fragment=e,zx.jsx=n,zx.jsxs=n,zx}var gU;function bse(){return gU||(gU=1,cA.exports=gse()),cA.exports}var a=bse(),uA={exports:{}},Nn={};var bU;function xse(){if(bU)return Nn;bU=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),o=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.activity"),p=Symbol.iterator;function m(V){return V===null||typeof V!="object"?null:(V=p&&V[p]||V["@@iterator"],typeof V=="function"?V:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,b={};function v(V,W,ie){this.props=V,this.context=W,this.refs=b,this.updater=ie||x}v.prototype.isReactComponent={},v.prototype.setState=function(V,W){if(typeof V!="object"&&typeof V!="function"&&V!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,V,W,"setState")},v.prototype.forceUpdate=function(V){this.updater.enqueueForceUpdate(this,V,"forceUpdate")};function S(){}S.prototype=v.prototype;function k(V,W,ie){this.props=V,this.context=W,this.refs=b,this.updater=ie||x}var A=k.prototype=new S;A.constructor=k,y(A,v.prototype),A.isPureReactComponent=!0;var N=Array.isArray;function E(){}var M={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function T(V,W,ie){var J=ie.ref;return{$$typeof:t,type:V,key:W,ref:J!==void 0?J:null,props:ie}}function j(V,W){return T(V.type,W,V.props)}function z(V){return typeof V=="object"&&V!==null&&V.$$typeof===t}function F(V){var W={"=":"=0",":":"=2"};return"$"+V.replace(/[=:]/g,function(ie){return W[ie]})}var $=/\/+/g;function D(V,W){return typeof V=="object"&&V!==null&&V.key!=null?F(""+V.key):W.toString(36)}function H(V){switch(V.status){case"fulfilled":return V.value;case"rejected":throw V.reason;default:switch(typeof V.status=="string"?V.then(E,E):(V.status="pending",V.then(function(W){V.status==="pending"&&(V.status="fulfilled",V.value=W)},function(W){V.status==="pending"&&(V.status="rejected",V.reason=W)})),V.status){case"fulfilled":return V.value;case"rejected":throw V.reason}}throw V}function q(V,W,ie,J,pe){var fe=typeof V;(fe==="undefined"||fe==="boolean")&&(V=null);var ve=!1;if(V===null)ve=!0;else switch(fe){case"bigint":case"string":case"number":ve=!0;break;case"object":switch(V.$$typeof){case t:case e:ve=!0;break;case d:return ve=V._init,q(ve(V._payload),W,ie,J,pe)}}if(ve)return pe=pe(V),ve=J===""?"."+D(V,0):J,N(pe)?(ie="",ve!=null&&(ie=ve.replace($,"$&/")+"/"),q(pe,W,ie,"",function(ce){return ce})):pe!=null&&(z(pe)&&(pe=j(pe,ie+(pe.key==null||V&&V.key===pe.key?"":(""+pe.key).replace($,"$&/")+"/")+ve)),W.push(pe)),1;ve=0;var Le=J===""?".":J+":";if(N(V))for(var de=0;de>>1,se=q[Z];if(0>>1;Zi(ie,K))Ji(pe,ie)?(q[Z]=pe,q[J]=K,Z=J):(q[Z]=ie,q[W]=K,Z=W);else if(Ji(pe,K))q[Z]=pe,q[J]=K,Z=J;else break e}}return I}function i(q,I){var K=q.sortIndex-I.sortIndex;return K!==0?K:q.id-I.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var o=Date,l=o.now();t.unstable_now=function(){return o.now()-l}}var c=[],u=[],d=1,h=null,p=3,m=!1,x=!1,y=!1,b=!1,v=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function A(q){for(var I=n(u);I!==null;){if(I.callback===null)r(u);else if(I.startTime<=q)r(u),I.sortIndex=I.expirationTime,e(c,I);else break;I=n(u)}}function N(q){if(y=!1,A(q),!x)if(n(c)!==null)x=!0,E||(E=!0,F());else{var I=n(u);I!==null&&H(N,I.startTime-q)}}var E=!1,M=-1,P=5,T=-1;function j(){return b?!0:!(t.unstable_now()-Tq&&j());){var Z=h.callback;if(typeof Z=="function"){h.callback=null,p=h.priorityLevel;var se=Z(h.expirationTime<=q);if(q=t.unstable_now(),typeof se=="function"){h.callback=se,A(q),I=!0;break t}h===n(c)&&r(c),A(q)}else r(c);h=n(c)}if(h!==null)I=!0;else{var V=n(u);V!==null&&H(N,V.startTime-q),I=!1}}break e}finally{h=null,p=K,m=!1}I=void 0}}finally{I?F():E=!1}}}var F;if(typeof k=="function")F=function(){k(z)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,D=$.port2;$.port1.onmessage=z,F=function(){D.postMessage(null)}}else F=function(){v(z,0)};function H(q,I){M=v(function(){q(t.unstable_now())},I)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(q){q.callback=null},t.unstable_forceFrameRate=function(q){0>q||125Z?(q.sortIndex=K,e(u,q),n(c)===null&&q===n(u)&&(y?(S(M),M=-1):y=!0,H(N,K-Z))):(q.sortIndex=se,e(c,q),x||m||(x=!0,E||(E=!0,F()))),q},t.unstable_shouldYield=j,t.unstable_wrapCallback=function(q){var I=p;return function(){var K=p;p=I;try{return q.apply(this,arguments)}finally{p=K}}}})(fA)),fA}var vU;function wse(){return vU||(vU=1,hA.exports=vse()),hA.exports}var mA={exports:{}},ns={};var wU;function _se(){if(wU)return ns;wU=1;var t=Cb();function e(c){var u="https://react.dev/errors/"+c;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),mA.exports=_se(),mA.exports}var SU;function Sse(){if(SU)return Ux;SU=1;var t=wse(),e=Cb(),n=nW();function r(f){var g="https://react.dev/errors/"+f;if(1se||(f.current=Z[se],Z[se]=null,se--)}function ie(f,g){se++,Z[se]=f.current,f.current=g}var J=V(null),pe=V(null),fe=V(null),ve=V(null);function Le(f,g){switch(ie(fe,g),ie(pe,f),ie(J,null),g.nodeType){case 9:case 11:f=(f=g.documentElement)&&(f=f.namespaceURI)?Iz(f):0;break;default:if(f=g.tagName,g=g.namespaceURI)g=Iz(g),f=zz(g,f);else switch(f){case"svg":f=1;break;case"math":f=2;break;default:f=0}}W(J),ie(J,f)}function de(){W(J),W(pe),W(fe)}function ce(f){f.memoizedState!==null&&ie(ve,f);var g=J.current,_=zz(g,f.type);g!==_&&(ie(pe,f),ie(J,_))}function Ee(f){pe.current===f&&(W(J),W(pe)),ve.current===f&&(W(ve),Lx._currentValue=K)}var re,Ie;function G(f){if(re===void 0)try{throw Error()}catch(_){var g=_.stack.trim().match(/\n( *(at )?)/);re=g&&g[1]||"",Ie=-1<_.stack.indexOf(` at`)?" ()":-1<_.stack.indexOf("@")?"@unknown:0:0":""}return` `+re+f+Ie}var Y=!1;function ue(f,g){if(!f||Y)return"";Y=!0;var _=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var C={DetermineComponentFrameRoot:function(){try{if(g){var kt=function(){throw Error()};if(Object.defineProperty(kt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(kt,[])}catch(xt){var ft=xt}Reflect.construct(f,[],kt)}else{try{kt.call()}catch(xt){ft=xt}f.call(kt.prototype)}}else{try{throw Error()}catch(xt){ft=xt}(kt=f())&&typeof kt.catch=="function"&&kt.catch(function(){})}}catch(xt){if(xt&&ft&&typeof xt.stack=="string")return[xt.stack,ft.stack]}return[null,null]}};C.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var R=Object.getOwnPropertyDescriptor(C.DetermineComponentFrameRoot,"name");R&&R.configurable&&Object.defineProperty(C.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var O=C.DetermineComponentFrameRoot(),ne=O[0],Se=O[1];if(ne&&Se){var Be=ne.split(` `),ut=Se.split(` `);for(R=C=0;CR||Be[C]!==ut[R]){var vt=` `+Be[C].replace(" at new "," at ");return f.displayName&&vt.includes("")&&(vt=vt.replace("",f.displayName)),vt}while(1<=C&&0<=R);break}}}finally{Y=!1,Error.prepareStackTrace=_}return(_=f?f.displayName||f.name:"")?G(_):""}function B(f,g){switch(f.tag){case 26:case 27:case 5:return G(f.type);case 16:return G("Lazy");case 13:return f.child!==g&&g!==null?G("Suspense Fallback"):G("Suspense");case 19:return G("SuspenseList");case 0:case 15:return ue(f.type,!1);case 11:return ue(f.type.render,!1);case 1:return ue(f.type,!0);case 31:return G("Activity");default:return""}}function ee(f){try{var g="",_=null;do g+=B(f,_),_=f,f=f.return;while(f);return g}catch(C){return` Error generating stack: `+C.message+` -`+C.stack}}var Q=Object.prototype.hasOwnProperty,le=t.unstable_scheduleCallback,he=t.unstable_cancelCallback,te=t.unstable_shouldYield,U=t.unstable_requestPaint,L=t.unstable_now,X=t.unstable_getCurrentPriorityLevel,ge=t.unstable_ImmediatePriority,_e=t.unstable_UserBlockingPriority,Ae=t.unstable_NormalPriority,$e=t.unstable_LowPriority,Ce=t.unstable_IdlePriority,He=t.log,Qe=t.unstable_setDisableYieldValue,xe=null,ye=null;function we(f){if(typeof He=="function"&&Qe(f),ye&&typeof ye.setStrictMode=="function")try{ye.setStrictMode(xe,f)}catch{}}var Ue=Math.clz32?Math.clz32:ke,Pe=Math.log,Ve=Math.LN2;function ke(f){return f>>>=0,f===0?32:31-(Pe(f)/Ve|0)|0}var Ze=256,je=262144,Xe=4194304;function Re(f){var g=f&42;if(g!==0)return g;switch(f&-f){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return f&261888;case 262144:case 524288:case 1048576:case 2097152:return f&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return f&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return f}}function Oe(f,g,_){var C=f.pendingLanes;if(C===0)return 0;var R=0,O=f.suspendedLanes,ne=f.pingedLanes;f=f.warmLanes;var Se=C&134217727;return Se!==0?(C=Se&~O,C!==0?R=Re(C):(ne&=Se,ne!==0?R=Re(ne):_||(_=Se&~f,_!==0&&(R=Re(_))))):(Se=C&~O,Se!==0?R=Re(Se):ne!==0?R=Re(ne):_||(_=C&~f,_!==0&&(R=Re(_)))),R===0?0:g!==0&&g!==R&&(g&O)===0&&(O=R&-R,_=g&-g,O>=_||O===32&&(_&4194048)!==0)?g:R}function Ne(f,g){return(f.pendingLanes&~(f.suspendedLanes&~f.pingedLanes)&g)===0}function Je(f,g){switch(f){case 1:case 2:case 4:case 8:case 64:return g+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return g+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function yt(){var f=Xe;return Xe<<=1,(Xe&62914560)===0&&(Xe=4194304),f}function At(f){for(var g=[],_=0;31>_;_++)g.push(f);return g}function an(f,g){f.pendingLanes|=g,g!==268435456&&(f.suspendedLanes=0,f.pingedLanes=0,f.warmLanes=0)}function jt(f,g,_,C,R,O){var ne=f.pendingLanes;f.pendingLanes=_,f.suspendedLanes=0,f.pingedLanes=0,f.warmLanes=0,f.expiredLanes&=_,f.entangledLanes&=_,f.errorRecoveryDisabledLanes&=_,f.shellSuspendCounter=0;var Se=f.entanglements,Be=f.expirationTimes,ut=f.hiddenUpdates;for(_=ne&~_;0<_;){var vt=31-Ue(_),kt=1<"u")return null;try{return f.activeElement||f.body}catch{return f.body}}var Vr=/[\n"\\]/g;function Tn(f){return f.replace(Vr,function(g){return"\\"+g.charCodeAt(0).toString(16)+" "})}function _n(f,g,_,C,R,O,ne,Se){f.name="",ne!=null&&typeof ne!="function"&&typeof ne!="symbol"&&typeof ne!="boolean"?f.type=ne:f.removeAttribute("type"),g!=null?ne==="number"?(g===0&&f.value===""||f.value!=g)&&(f.value=""+Cn(g)):f.value!==""+Cn(g)&&(f.value=""+Cn(g)):ne!=="submit"&&ne!=="reset"||f.removeAttribute("value"),g!=null?mi(f,ne,Cn(g)):_!=null?mi(f,ne,Cn(_)):C!=null&&f.removeAttribute("value"),R==null&&O!=null&&(f.defaultChecked=!!O),R!=null&&(f.checked=R&&typeof R!="function"&&typeof R!="symbol"),Se!=null&&typeof Se!="function"&&typeof Se!="symbol"&&typeof Se!="boolean"?f.name=""+Cn(Se):f.removeAttribute("name")}function $n(f,g,_,C,R,O,ne,Se){if(O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"&&(f.type=O),g!=null||_!=null){if(!(O!=="submit"&&O!=="reset"||g!=null)){mn(f);return}_=_!=null?""+Cn(_):"",g=g!=null?""+Cn(g):_,Se||g===f.value||(f.value=g),f.defaultValue=g}C=C??R,C=typeof C!="function"&&typeof C!="symbol"&&!!C,f.checked=Se?f.checked:!!C,f.defaultChecked=!!C,ne!=null&&typeof ne!="function"&&typeof ne!="symbol"&&typeof ne!="boolean"&&(f.name=ne),mn(f)}function mi(f,g,_){g==="number"&&Hr(f.ownerDocument)===f||f.defaultValue===""+_||(f.defaultValue=""+_)}function hr(f,g,_,C){if(f=f.options,g){g={};for(var R=0;R<_.length;R++)g["$"+_[R]]=!0;for(_=0;_"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),kl=!1;if(Sa)try{var Ml={};Object.defineProperty(Ml,"passive",{get:function(){kl=!0}}),window.addEventListener("test",Ml,Ml),window.removeEventListener("test",Ml,Ml)}catch{kl=!1}var Ia=null,Si=null,rc=null;function Gr(){if(rc)return rc;var f,g=Si,_=g.length,C,R="value"in Ia?Ia.value:Ia.textContent,O=R.length;for(f=0;f<_&&g[f]===R[f];f++);var ne=_-f;for(C=1;C<=ne&&g[_-C]===R[O-C];C++);return rc=R.slice(f,1=nx),GF=" ",qF=!1;function WF(f,g){switch(f){case"keyup":return Oie.indexOf(g.keyCode)!==-1;case"keydown":return g.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function KF(f){return f=f.detail,typeof f=="object"&&"data"in f?f.data:null}var Zm=!1;function Iie(f,g){switch(f){case"compositionend":return KF(g);case"keypress":return g.which!==32?null:(qF=!0,GF);case"textInput":return f=g.data,f===GF&&qF?null:f;default:return null}}function zie(f,g){if(Zm)return f==="compositionend"||!pC&&WF(f,g)?(f=Gr(),rc=Si=Ia=null,Zm=!1,f):null;switch(f){case"paste":return null;case"keypress":if(!(g.ctrlKey||g.altKey||g.metaKey)||g.ctrlKey&&g.altKey){if(g.char&&1=g)return{node:_,offset:g-f};f=C}e:{for(;_;){if(_.nextSibling){_=_.nextSibling;break e}_=_.parentNode}_=void 0}_=nI(_)}}function iI(f,g){return f&&g?f===g?!0:f&&f.nodeType===3?!1:g&&g.nodeType===3?iI(f,g.parentNode):"contains"in f?f.contains(g):f.compareDocumentPosition?!!(f.compareDocumentPosition(g)&16):!1:!1}function aI(f){f=f!=null&&f.ownerDocument!=null&&f.ownerDocument.defaultView!=null?f.ownerDocument.defaultView:window;for(var g=Hr(f.document);g instanceof f.HTMLIFrameElement;){try{var _=typeof g.contentWindow.location.href=="string"}catch{_=!1}if(_)f=g.contentWindow;else break;g=Hr(f.document)}return g}function xC(f){var g=f&&f.nodeName&&f.nodeName.toLowerCase();return g&&(g==="input"&&(f.type==="text"||f.type==="search"||f.type==="tel"||f.type==="url"||f.type==="password")||g==="textarea"||f.contentEditable==="true")}var Wie=Sa&&"documentMode"in document&&11>=document.documentMode,Jm=null,yC=null,sx=null,vC=!1;function sI(f,g,_){var C=_.window===_?_.document:_.nodeType===9?_:_.ownerDocument;vC||Jm==null||Jm!==Hr(C)||(C=Jm,"selectionStart"in C&&xC(C)?C={start:C.selectionStart,end:C.selectionEnd}:(C=(C.ownerDocument&&C.ownerDocument.defaultView||window).getSelection(),C={anchorNode:C.anchorNode,anchorOffset:C.anchorOffset,focusNode:C.focusNode,focusOffset:C.focusOffset}),sx&&ax(sx,C)||(sx=C,C=Tw(yC,"onSelect"),0>=ne,R-=ne,ac=1<<32-Ue(g)+R|_<En?(Qn=Yt,Yt=null):Qn=Yt.sibling;var lr=ft(tt,Yt,ct[En],St);if(lr===null){Yt===null&&(Yt=Qn);break}f&&Yt&&lr.alternate===null&&g(tt,Yt),qe=O(lr,qe,En),or===null?nn=lr:or.sibling=lr,or=lr,Yt=Qn}if(En===ct.length)return _(tt,Yt),Jn&&qc(tt,En),nn;if(Yt===null){for(;EnEn?(Qn=Yt,Yt=null):Qn=Yt.sibling;var Id=ft(tt,Yt,lr.value,St);if(Id===null){Yt===null&&(Yt=Qn);break}f&&Yt&&Id.alternate===null&&g(tt,Yt),qe=O(Id,qe,En),or===null?nn=Id:or.sibling=Id,or=Id,Yt=Qn}if(lr.done)return _(tt,Yt),Jn&&qc(tt,En),nn;if(Yt===null){for(;!lr.done;En++,lr=ct.next())lr=kt(tt,lr.value,St),lr!==null&&(qe=O(lr,qe,En),or===null?nn=lr:or.sibling=lr,or=lr);return Jn&&qc(tt,En),nn}for(Yt=C(Yt);!lr.done;En++,lr=ct.next())lr=xt(Yt,tt,En,lr.value,St),lr!==null&&(f&&lr.alternate!==null&&Yt.delete(lr.key===null?En:lr.key),qe=O(lr,qe,En),or===null?nn=lr:or.sibling=lr,or=lr);return f&&Yt.forEach(function(fse){return g(tt,fse)}),Jn&&qc(tt,En),nn}function Cr(tt,qe,ct,St){if(typeof ct=="object"&&ct!==null&&ct.type===y&&ct.key===null&&(ct=ct.props.children),typeof ct=="object"&&ct!==null){switch(ct.$$typeof){case m:e:{for(var nn=ct.key;qe!==null;){if(qe.key===nn){if(nn=ct.type,nn===y){if(qe.tag===7){_(tt,qe.sibling),St=R(qe,ct.props.children),St.return=tt,tt=St;break e}}else if(qe.elementType===nn||typeof nn=="object"&&nn!==null&&nn.$$typeof===P&&gf(nn)===qe.type){_(tt,qe.sibling),St=R(qe,ct.props),hx(St,ct),St.return=tt,tt=St;break e}_(tt,qe);break}else g(tt,qe);qe=qe.sibling}ct.type===y?(St=df(ct.props.children,tt.mode,St,ct.key),St.return=tt,tt=St):(St=Wv(ct.type,ct.key,ct.props,null,tt.mode,St),hx(St,ct),St.return=tt,tt=St)}return ne(tt);case x:e:{for(nn=ct.key;qe!==null;){if(qe.key===nn)if(qe.tag===4&&qe.stateNode.containerInfo===ct.containerInfo&&qe.stateNode.implementation===ct.implementation){_(tt,qe.sibling),St=R(qe,ct.children||[]),St.return=tt,tt=St;break e}else{_(tt,qe);break}else g(tt,qe);qe=qe.sibling}St=CC(ct,tt.mode,St),St.return=tt,tt=St}return ne(tt);case P:return ct=gf(ct),Cr(tt,qe,ct,St)}if(H(ct))return Wt(tt,qe,ct,St);if(F(ct)){if(nn=F(ct),typeof nn!="function")throw Error(r(150));return ct=nn.call(ct),dn(tt,qe,ct,St)}if(typeof ct.then=="function")return Cr(tt,qe,ew(ct),St);if(ct.$$typeof===k)return Cr(tt,qe,Yv(tt,ct),St);tw(tt,ct)}return typeof ct=="string"&&ct!==""||typeof ct=="number"||typeof ct=="bigint"?(ct=""+ct,qe!==null&&qe.tag===6?(_(tt,qe.sibling),St=R(qe,ct),St.return=tt,tt=St):(_(tt,qe),St=MC(ct,tt.mode,St),St.return=tt,tt=St),ne(tt)):_(tt,qe)}return function(tt,qe,ct,St){try{dx=0;var nn=Cr(tt,qe,ct,St);return up=null,nn}catch(Yt){if(Yt===cp||Yt===Zv)throw Yt;var or=lo(29,Yt,null,tt.mode);return or.lanes=St,or.return=tt,or}finally{}}}var xf=EI(!0),TI=EI(!1),wd=!1;function zC(f){f.updateQueue={baseState:f.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function UC(f,g){f=f.updateQueue,g.updateQueue===f&&(g.updateQueue={baseState:f.baseState,firstBaseUpdate:f.firstBaseUpdate,lastBaseUpdate:f.lastBaseUpdate,shared:f.shared,callbacks:null})}function _d(f){return{lane:f,tag:0,payload:null,callback:null,next:null}}function Sd(f,g,_){var C=f.updateQueue;if(C===null)return null;if(C=C.shared,(fr&2)!==0){var R=C.pending;return R===null?g.next=g:(g.next=R.next,R.next=g),C.pending=g,g=qv(f),fI(f,null,_),g}return Gv(f,C,g,_),qv(f)}function fx(f,g,_){if(g=g.updateQueue,g!==null&&(g=g.shared,(_&4194048)!==0)){var C=g.lanes;C&=f.pendingLanes,_|=C,g.lanes=_,gt(f,_)}}function BC(f,g){var _=f.updateQueue,C=f.alternate;if(C!==null&&(C=C.updateQueue,_===C)){var R=null,O=null;if(_=_.firstBaseUpdate,_!==null){do{var ne={lane:_.lane,tag:_.tag,payload:_.payload,callback:null,next:null};O===null?R=O=ne:O=O.next=ne,_=_.next}while(_!==null);O===null?R=O=g:O=O.next=g}else R=O=g;_={baseState:C.baseState,firstBaseUpdate:R,lastBaseUpdate:O,shared:C.shared,callbacks:C.callbacks},f.updateQueue=_;return}f=_.lastBaseUpdate,f===null?_.firstBaseUpdate=g:f.next=g,_.lastBaseUpdate=g}var $C=!1;function mx(){if($C){var f=lp;if(f!==null)throw f}}function px(f,g,_,C){$C=!1;var R=f.updateQueue;wd=!1;var O=R.firstBaseUpdate,ne=R.lastBaseUpdate,Se=R.shared.pending;if(Se!==null){R.shared.pending=null;var Be=Se,ut=Be.next;Be.next=null,ne===null?O=ut:ne.next=ut,ne=Be;var vt=f.alternate;vt!==null&&(vt=vt.updateQueue,Se=vt.lastBaseUpdate,Se!==ne&&(Se===null?vt.firstBaseUpdate=ut:Se.next=ut,vt.lastBaseUpdate=Be))}if(O!==null){var kt=R.baseState;ne=0,vt=ut=Be=null,Se=O;do{var ft=Se.lane&-536870913,xt=ft!==Se.lane;if(xt?(Yn&ft)===ft:(C&ft)===ft){ft!==0&&ft===op&&($C=!0),vt!==null&&(vt=vt.next={lane:0,tag:Se.tag,payload:Se.payload,callback:null,next:null});e:{var Wt=f,dn=Se;ft=g;var Cr=_;switch(dn.tag){case 1:if(Wt=dn.payload,typeof Wt=="function"){kt=Wt.call(Cr,kt,ft);break e}kt=Wt;break e;case 3:Wt.flags=Wt.flags&-65537|128;case 0:if(Wt=dn.payload,ft=typeof Wt=="function"?Wt.call(Cr,kt,ft):Wt,ft==null)break e;kt=h({},kt,ft);break e;case 2:wd=!0}}ft=Se.callback,ft!==null&&(f.flags|=64,xt&&(f.flags|=8192),xt=R.callbacks,xt===null?R.callbacks=[ft]:xt.push(ft))}else xt={lane:ft,tag:Se.tag,payload:Se.payload,callback:Se.callback,next:null},vt===null?(ut=vt=xt,Be=kt):vt=vt.next=xt,ne|=ft;if(Se=Se.next,Se===null){if(Se=R.shared.pending,Se===null)break;xt=Se,Se=xt.next,xt.next=null,R.lastBaseUpdate=xt,R.shared.pending=null}}while(!0);vt===null&&(Be=kt),R.baseState=Be,R.firstBaseUpdate=ut,R.lastBaseUpdate=vt,O===null&&(R.shared.lanes=0),Ad|=ne,f.lanes=ne,f.memoizedState=kt}}function jI(f,g){if(typeof f!="function")throw Error(r(191,f));f.call(g)}function PI(f,g){var _=f.callbacks;if(_!==null)for(f.callbacks=null,f=0;f<_.length;f++)jI(_[f],g)}var dp=V(null),nw=V(0);function DI(f,g){f=ru,ie(nw,f),ie(dp,g),ru=f|g.baseLanes}function HC(){ie(nw,ru),ie(dp,dp.current)}function VC(){ru=nw.current,W(dp),W(nw)}var co=V(null),Ho=null;function Nd(f){var g=f.alternate;ie(Li,Li.current&1),ie(co,f),Ho===null&&(g===null||dp.current!==null||g.memoizedState!==null)&&(Ho=f)}function GC(f){ie(Li,Li.current),ie(co,f),Ho===null&&(Ho=f)}function RI(f){f.tag===22?(ie(Li,Li.current),ie(co,f),Ho===null&&(Ho=f)):kd()}function kd(){ie(Li,Li.current),ie(co,co.current)}function uo(f){W(co),Ho===f&&(Ho=null),W(Li)}var Li=V(0);function rw(f){for(var g=f;g!==null;){if(g.tag===13){var _=g.memoizedState;if(_!==null&&(_=_.dehydrated,_===null||Q2(_)||Z2(_)))return g}else if(g.tag===19&&(g.memoizedProps.revealOrder==="forwards"||g.memoizedProps.revealOrder==="backwards"||g.memoizedProps.revealOrder==="unstable_legacy-backwards"||g.memoizedProps.revealOrder==="together")){if((g.flags&128)!==0)return g}else if(g.child!==null){g.child.return=g,g=g.child;continue}if(g===f)break;for(;g.sibling===null;){if(g.return===null||g.return===f)return null;g=g.return}g.sibling.return=g.return,g=g.sibling}return null}var Xc=0,An=null,kr=null,Vi=null,iw=!1,hp=!1,yf=!1,aw=0,gx=0,fp=null,rae=0;function ki(){throw Error(r(321))}function qC(f,g){if(g===null)return!1;for(var _=0;_O?O:8;var ne=q.T,Se={};q.T=Se,o2(f,!1,g,_);try{var Be=R(),ut=q.S;if(ut!==null&&ut(Se,Be),Be!==null&&typeof Be=="object"&&typeof Be.then=="function"){var vt=nae(Be,C);xx(f,g,vt,mo(f))}else xx(f,g,C,mo(f))}catch(kt){xx(f,g,{then:function(){},status:"rejected",reason:kt},mo())}finally{I.p=O,ne!==null&&Se.types!==null&&(ne.types=Se.types),q.T=ne}}function lae(){}function a2(f,g,_,C){if(f.tag!==5)throw Error(r(476));var R=u5(f).queue;c5(f,R,g,K,_===null?lae:function(){return d5(f),_(C)})}function u5(f){var g=f.memoizedState;if(g!==null)return g;g={memoizedState:K,baseState:K,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yc,lastRenderedState:K},next:null};var _={};return g.next={memoizedState:_,baseState:_,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yc,lastRenderedState:_},next:null},f.memoizedState=g,f=f.alternate,f!==null&&(f.memoizedState=g),g}function d5(f){var g=u5(f);g.next===null&&(g=f.alternate.memoizedState),xx(f,g.next.queue,{},mo())}function s2(){return Ua(Lx)}function h5(){return Oi().memoizedState}function f5(){return Oi().memoizedState}function cae(f){for(var g=f.return;g!==null;){switch(g.tag){case 24:case 3:var _=mo();f=_d(_);var C=Sd(g,f,_);C!==null&&($s(C,g,_),fx(C,g,_)),g={cache:LC()},f.payload=g;return}g=g.return}}function uae(f,g,_){var C=mo();_={lane:C,revertLane:0,gesture:null,action:_,hasEagerState:!1,eagerState:null,next:null},dw(f)?p5(g,_):(_=NC(f,g,_,C),_!==null&&($s(_,f,C),g5(_,g,C)))}function m5(f,g,_){var C=mo();xx(f,g,_,C)}function xx(f,g,_,C){var R={lane:C,revertLane:0,gesture:null,action:_,hasEagerState:!1,eagerState:null,next:null};if(dw(f))p5(g,R);else{var O=f.alternate;if(f.lanes===0&&(O===null||O.lanes===0)&&(O=g.lastRenderedReducer,O!==null))try{var ne=g.lastRenderedState,Se=O(ne,_);if(R.hasEagerState=!0,R.eagerState=Se,oo(Se,ne))return Gv(f,g,R,0),Fr===null&&Vv(),!1}catch{}finally{}if(_=NC(f,g,R,C),_!==null)return $s(_,f,C),g5(_,g,C),!0}return!1}function o2(f,g,_,C){if(C={lane:2,revertLane:z2(),gesture:null,action:C,hasEagerState:!1,eagerState:null,next:null},dw(f)){if(g)throw Error(r(479))}else g=NC(f,_,C,2),g!==null&&$s(g,f,2)}function dw(f){var g=f.alternate;return f===An||g!==null&&g===An}function p5(f,g){hp=iw=!0;var _=f.pending;_===null?g.next=g:(g.next=_.next,_.next=g),f.pending=g}function g5(f,g,_){if((_&4194048)!==0){var C=g.lanes;C&=f.pendingLanes,_|=C,g.lanes=_,gt(f,_)}}var yx={readContext:Ua,use:ow,useCallback:ki,useContext:ki,useEffect:ki,useImperativeHandle:ki,useLayoutEffect:ki,useInsertionEffect:ki,useMemo:ki,useReducer:ki,useRef:ki,useState:ki,useDebugValue:ki,useDeferredValue:ki,useTransition:ki,useSyncExternalStore:ki,useId:ki,useHostTransitionStatus:ki,useFormState:ki,useActionState:ki,useOptimistic:ki,useMemoCache:ki,useCacheRefresh:ki};yx.useEffectEvent=ki;var b5={readContext:Ua,use:ow,useCallback:function(f,g){return ws().memoizedState=[f,g===void 0?null:g],f},useContext:Ua,useEffect:e5,useImperativeHandle:function(f,g,_){_=_!=null?_.concat([f]):null,cw(4194308,4,i5.bind(null,g,f),_)},useLayoutEffect:function(f,g){return cw(4194308,4,f,g)},useInsertionEffect:function(f,g){cw(4,2,f,g)},useMemo:function(f,g){var _=ws();g=g===void 0?null:g;var C=f();if(yf){we(!0);try{f()}finally{we(!1)}}return _.memoizedState=[C,g],C},useReducer:function(f,g,_){var C=ws();if(_!==void 0){var R=_(g);if(yf){we(!0);try{_(g)}finally{we(!1)}}}else R=g;return C.memoizedState=C.baseState=R,f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:f,lastRenderedState:R},C.queue=f,f=f.dispatch=uae.bind(null,An,f),[C.memoizedState,f]},useRef:function(f){var g=ws();return f={current:f},g.memoizedState=f},useState:function(f){f=e2(f);var g=f.queue,_=m5.bind(null,An,g);return g.dispatch=_,[f.memoizedState,_]},useDebugValue:r2,useDeferredValue:function(f,g){var _=ws();return i2(_,f,g)},useTransition:function(){var f=e2(!1);return f=c5.bind(null,An,f.queue,!0,!1),ws().memoizedState=f,[!1,f]},useSyncExternalStore:function(f,g,_){var C=An,R=ws();if(Jn){if(_===void 0)throw Error(r(407));_=_()}else{if(_=g(),Fr===null)throw Error(r(349));(Yn&127)!==0||II(C,g,_)}R.memoizedState=_;var O={value:_,getSnapshot:g};return R.queue=O,e5(UI.bind(null,C,O,f),[f]),C.flags|=2048,mp(9,{destroy:void 0},zI.bind(null,C,O,_,g),null),_},useId:function(){var f=ws(),g=Fr.identifierPrefix;if(Jn){var _=sc,C=ac;_=(C&~(1<<32-Ue(C)-1)).toString(32)+_,g="_"+g+"R_"+_,_=aw++,0<_&&(g+="H"+_.toString(32)),g+="_"}else _=rae++,g="_"+g+"r_"+_.toString(32)+"_";return f.memoizedState=g},useHostTransitionStatus:s2,useFormState:XI,useActionState:XI,useOptimistic:function(f){var g=ws();g.memoizedState=g.baseState=f;var _={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return g.queue=_,g=o2.bind(null,An,!0,_),_.dispatch=g,[f,g]},useMemoCache:QC,useCacheRefresh:function(){return ws().memoizedState=cae.bind(null,An)},useEffectEvent:function(f){var g=ws(),_={impl:f};return g.memoizedState=_,function(){if((fr&2)!==0)throw Error(r(440));return _.impl.apply(void 0,arguments)}}},l2={readContext:Ua,use:ow,useCallback:s5,useContext:Ua,useEffect:n2,useImperativeHandle:a5,useInsertionEffect:n5,useLayoutEffect:r5,useMemo:o5,useReducer:lw,useRef:JI,useState:function(){return lw(Yc)},useDebugValue:r2,useDeferredValue:function(f,g){var _=Oi();return l5(_,kr.memoizedState,f,g)},useTransition:function(){var f=lw(Yc)[0],g=Oi().memoizedState;return[typeof f=="boolean"?f:bx(f),g]},useSyncExternalStore:FI,useId:h5,useHostTransitionStatus:s2,useFormState:YI,useActionState:YI,useOptimistic:function(f,g){var _=Oi();return HI(_,kr,f,g)},useMemoCache:QC,useCacheRefresh:f5};l2.useEffectEvent=t5;var x5={readContext:Ua,use:ow,useCallback:s5,useContext:Ua,useEffect:n2,useImperativeHandle:a5,useInsertionEffect:n5,useLayoutEffect:r5,useMemo:o5,useReducer:JC,useRef:JI,useState:function(){return JC(Yc)},useDebugValue:r2,useDeferredValue:function(f,g){var _=Oi();return kr===null?i2(_,f,g):l5(_,kr.memoizedState,f,g)},useTransition:function(){var f=JC(Yc)[0],g=Oi().memoizedState;return[typeof f=="boolean"?f:bx(f),g]},useSyncExternalStore:FI,useId:h5,useHostTransitionStatus:s2,useFormState:ZI,useActionState:ZI,useOptimistic:function(f,g){var _=Oi();return kr!==null?HI(_,kr,f,g):(_.baseState=f,[f,_.queue.dispatch])},useMemoCache:QC,useCacheRefresh:f5};x5.useEffectEvent=t5;function c2(f,g,_,C){g=f.memoizedState,_=_(C,g),_=_==null?g:h({},g,_),f.memoizedState=_,f.lanes===0&&(f.updateQueue.baseState=_)}var u2={enqueueSetState:function(f,g,_){f=f._reactInternals;var C=mo(),R=_d(C);R.payload=g,_!=null&&(R.callback=_),g=Sd(f,R,C),g!==null&&($s(g,f,C),fx(g,f,C))},enqueueReplaceState:function(f,g,_){f=f._reactInternals;var C=mo(),R=_d(C);R.tag=1,R.payload=g,_!=null&&(R.callback=_),g=Sd(f,R,C),g!==null&&($s(g,f,C),fx(g,f,C))},enqueueForceUpdate:function(f,g){f=f._reactInternals;var _=mo(),C=_d(_);C.tag=2,g!=null&&(C.callback=g),g=Sd(f,C,_),g!==null&&($s(g,f,_),fx(g,f,_))}};function y5(f,g,_,C,R,O,ne){return f=f.stateNode,typeof f.shouldComponentUpdate=="function"?f.shouldComponentUpdate(C,O,ne):g.prototype&&g.prototype.isPureReactComponent?!ax(_,C)||!ax(R,O):!0}function v5(f,g,_,C){f=g.state,typeof g.componentWillReceiveProps=="function"&&g.componentWillReceiveProps(_,C),typeof g.UNSAFE_componentWillReceiveProps=="function"&&g.UNSAFE_componentWillReceiveProps(_,C),g.state!==f&&u2.enqueueReplaceState(g,g.state,null)}function vf(f,g){var _=g;if("ref"in g){_={};for(var C in g)C!=="ref"&&(_[C]=g[C])}if(f=f.defaultProps){_===g&&(_=h({},_));for(var R in f)_[R]===void 0&&(_[R]=f[R])}return _}function w5(f){Hv(f)}function _5(f){console.error(f)}function S5(f){Hv(f)}function hw(f,g){try{var _=f.onUncaughtError;_(g.value,{componentStack:g.stack})}catch(C){setTimeout(function(){throw C})}}function N5(f,g,_){try{var C=f.onCaughtError;C(_.value,{componentStack:_.stack,errorBoundary:g.tag===1?g.stateNode:null})}catch(R){setTimeout(function(){throw R})}}function d2(f,g,_){return _=_d(_),_.tag=3,_.payload={element:null},_.callback=function(){hw(f,g)},_}function k5(f){return f=_d(f),f.tag=3,f}function M5(f,g,_,C){var R=_.type.getDerivedStateFromError;if(typeof R=="function"){var O=C.value;f.payload=function(){return R(O)},f.callback=function(){N5(g,_,C)}}var ne=_.stateNode;ne!==null&&typeof ne.componentDidCatch=="function"&&(f.callback=function(){N5(g,_,C),typeof R!="function"&&(Ed===null?Ed=new Set([this]):Ed.add(this));var Se=C.stack;this.componentDidCatch(C.value,{componentStack:Se!==null?Se:""})})}function dae(f,g,_,C,R){if(_.flags|=32768,C!==null&&typeof C=="object"&&typeof C.then=="function"){if(g=_.alternate,g!==null&&sp(g,_,R,!0),_=co.current,_!==null){switch(_.tag){case 31:case 13:return Ho===null?Nw():_.alternate===null&&Mi===0&&(Mi=3),_.flags&=-257,_.flags|=65536,_.lanes=R,C===Jv?_.flags|=16384:(g=_.updateQueue,g===null?_.updateQueue=new Set([C]):g.add(C),O2(f,C,R)),!1;case 22:return _.flags|=65536,C===Jv?_.flags|=16384:(g=_.updateQueue,g===null?(g={transitions:null,markerInstances:null,retryQueue:new Set([C])},_.updateQueue=g):(_=g.retryQueue,_===null?g.retryQueue=new Set([C]):_.add(C)),O2(f,C,R)),!1}throw Error(r(435,_.tag))}return O2(f,C,R),Nw(),!1}if(Jn)return g=co.current,g!==null?((g.flags&65536)===0&&(g.flags|=256),g.flags|=65536,g.lanes=R,C!==TC&&(f=Error(r(422),{cause:C}),lx(zo(f,_)))):(C!==TC&&(g=Error(r(423),{cause:C}),lx(zo(g,_))),f=f.current.alternate,f.flags|=65536,R&=-R,f.lanes|=R,C=zo(C,_),R=d2(f.stateNode,C,R),BC(f,R),Mi!==4&&(Mi=2)),!1;var O=Error(r(520),{cause:C});if(O=zo(O,_),Cx===null?Cx=[O]:Cx.push(O),Mi!==4&&(Mi=2),g===null)return!0;C=zo(C,_),_=g;do{switch(_.tag){case 3:return _.flags|=65536,f=R&-R,_.lanes|=f,f=d2(_.stateNode,C,f),BC(_,f),!1;case 1:if(g=_.type,O=_.stateNode,(_.flags&128)===0&&(typeof g.getDerivedStateFromError=="function"||O!==null&&typeof O.componentDidCatch=="function"&&(Ed===null||!Ed.has(O))))return _.flags|=65536,R&=-R,_.lanes|=R,R=k5(R),M5(R,f,_,C),BC(_,R),!1}_=_.return}while(_!==null);return!1}var h2=Error(r(461)),Gi=!1;function Ba(f,g,_,C){g.child=f===null?TI(g,null,_,C):xf(g,f.child,_,C)}function C5(f,g,_,C,R){_=_.render;var O=g.ref;if("ref"in C){var ne={};for(var Se in C)Se!=="ref"&&(ne[Se]=C[Se])}else ne=C;return mf(g),C=WC(f,g,_,ne,O,R),Se=KC(),f!==null&&!Gi?(XC(f,g,R),Qc(f,g,R)):(Jn&&Se&&AC(g),g.flags|=1,Ba(f,g,C,R),g.child)}function A5(f,g,_,C,R){if(f===null){var O=_.type;return typeof O=="function"&&!kC(O)&&O.defaultProps===void 0&&_.compare===null?(g.tag=15,g.type=O,E5(f,g,O,C,R)):(f=Wv(_.type,null,C,g,g.mode,R),f.ref=g.ref,f.return=g,g.child=f)}if(O=f.child,!v2(f,R)){var ne=O.memoizedProps;if(_=_.compare,_=_!==null?_:ax,_(ne,C)&&f.ref===g.ref)return Qc(f,g,R)}return g.flags|=1,f=Gc(O,C),f.ref=g.ref,f.return=g,g.child=f}function E5(f,g,_,C,R){if(f!==null){var O=f.memoizedProps;if(ax(O,C)&&f.ref===g.ref)if(Gi=!1,g.pendingProps=C=O,v2(f,R))(f.flags&131072)!==0&&(Gi=!0);else return g.lanes=f.lanes,Qc(f,g,R)}return f2(f,g,_,C,R)}function T5(f,g,_,C){var R=C.children,O=f!==null?f.memoizedState:null;if(f===null&&g.stateNode===null&&(g.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),C.mode==="hidden"){if((g.flags&128)!==0){if(O=O!==null?O.baseLanes|_:_,f!==null){for(C=g.child=f.child,R=0;C!==null;)R=R|C.lanes|C.childLanes,C=C.sibling;C=R&~O}else C=0,g.child=null;return j5(f,g,O,_,C)}if((_&536870912)!==0)g.memoizedState={baseLanes:0,cachePool:null},f!==null&&Qv(g,O!==null?O.cachePool:null),O!==null?DI(g,O):HC(),RI(g);else return C=g.lanes=536870912,j5(f,g,O!==null?O.baseLanes|_:_,_,C)}else O!==null?(Qv(g,O.cachePool),DI(g,O),kd(),g.memoizedState=null):(f!==null&&Qv(g,null),HC(),kd());return Ba(f,g,R,_),g.child}function vx(f,g){return f!==null&&f.tag===22||g.stateNode!==null||(g.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),g.sibling}function j5(f,g,_,C,R){var O=FC();return O=O===null?null:{parent:Hi._currentValue,pool:O},g.memoizedState={baseLanes:_,cachePool:O},f!==null&&Qv(g,null),HC(),RI(g),f!==null&&sp(f,g,C,!0),g.childLanes=R,null}function fw(f,g){return g=pw({mode:g.mode,children:g.children},f.mode),g.ref=f.ref,f.child=g,g.return=f,g}function P5(f,g,_){return xf(g,f.child,null,_),f=fw(g,g.pendingProps),f.flags|=2,uo(g),g.memoizedState=null,f}function hae(f,g,_){var C=g.pendingProps,R=(g.flags&128)!==0;if(g.flags&=-129,f===null){if(Jn){if(C.mode==="hidden")return f=fw(g,C),g.lanes=536870912,vx(null,f);if(GC(g),(f=Zr)?(f=Vz(f,$o),f=f!==null&&f.data==="&"?f:null,f!==null&&(g.memoizedState={dehydrated:f,treeContext:bd!==null?{id:ac,overflow:sc}:null,retryLane:536870912,hydrationErrors:null},_=pI(f),_.return=g,g.child=_,za=g,Zr=null)):f=null,f===null)throw yd(g);return g.lanes=536870912,null}return fw(g,C)}var O=f.memoizedState;if(O!==null){var ne=O.dehydrated;if(GC(g),R)if(g.flags&256)g.flags&=-257,g=P5(f,g,_);else if(g.memoizedState!==null)g.child=f.child,g.flags|=128,g=null;else throw Error(r(558));else if(Gi||sp(f,g,_,!1),R=(_&f.childLanes)!==0,Gi||R){if(C=Fr,C!==null&&(ne=Qt(C,_),ne!==0&&ne!==O.retryLane))throw O.retryLane=ne,uf(f,ne),$s(C,f,ne),h2;Nw(),g=P5(f,g,_)}else f=O.treeContext,Zr=Vo(ne.nextSibling),za=g,Jn=!0,xd=null,$o=!1,f!==null&&xI(g,f),g=fw(g,C),g.flags|=4096;return g}return f=Gc(f.child,{mode:C.mode,children:C.children}),f.ref=g.ref,g.child=f,f.return=g,f}function mw(f,g){var _=g.ref;if(_===null)f!==null&&f.ref!==null&&(g.flags|=4194816);else{if(typeof _!="function"&&typeof _!="object")throw Error(r(284));(f===null||f.ref!==_)&&(g.flags|=4194816)}}function f2(f,g,_,C,R){return mf(g),_=WC(f,g,_,C,void 0,R),C=KC(),f!==null&&!Gi?(XC(f,g,R),Qc(f,g,R)):(Jn&&C&&AC(g),g.flags|=1,Ba(f,g,_,R),g.child)}function D5(f,g,_,C,R,O){return mf(g),g.updateQueue=null,_=OI(g,C,_,R),LI(f),C=KC(),f!==null&&!Gi?(XC(f,g,O),Qc(f,g,O)):(Jn&&C&&AC(g),g.flags|=1,Ba(f,g,_,O),g.child)}function R5(f,g,_,C,R){if(mf(g),g.stateNode===null){var O=np,ne=_.contextType;typeof ne=="object"&&ne!==null&&(O=Ua(ne)),O=new _(C,O),g.memoizedState=O.state!==null&&O.state!==void 0?O.state:null,O.updater=u2,g.stateNode=O,O._reactInternals=g,O=g.stateNode,O.props=C,O.state=g.memoizedState,O.refs={},zC(g),ne=_.contextType,O.context=typeof ne=="object"&&ne!==null?Ua(ne):np,O.state=g.memoizedState,ne=_.getDerivedStateFromProps,typeof ne=="function"&&(c2(g,_,ne,C),O.state=g.memoizedState),typeof _.getDerivedStateFromProps=="function"||typeof O.getSnapshotBeforeUpdate=="function"||typeof O.UNSAFE_componentWillMount!="function"&&typeof O.componentWillMount!="function"||(ne=O.state,typeof O.componentWillMount=="function"&&O.componentWillMount(),typeof O.UNSAFE_componentWillMount=="function"&&O.UNSAFE_componentWillMount(),ne!==O.state&&u2.enqueueReplaceState(O,O.state,null),px(g,C,O,R),mx(),O.state=g.memoizedState),typeof O.componentDidMount=="function"&&(g.flags|=4194308),C=!0}else if(f===null){O=g.stateNode;var Se=g.memoizedProps,Be=vf(_,Se);O.props=Be;var ut=O.context,vt=_.contextType;ne=np,typeof vt=="object"&&vt!==null&&(ne=Ua(vt));var kt=_.getDerivedStateFromProps;vt=typeof kt=="function"||typeof O.getSnapshotBeforeUpdate=="function",Se=g.pendingProps!==Se,vt||typeof O.UNSAFE_componentWillReceiveProps!="function"&&typeof O.componentWillReceiveProps!="function"||(Se||ut!==ne)&&v5(g,O,C,ne),wd=!1;var ft=g.memoizedState;O.state=ft,px(g,C,O,R),mx(),ut=g.memoizedState,Se||ft!==ut||wd?(typeof kt=="function"&&(c2(g,_,kt,C),ut=g.memoizedState),(Be=wd||y5(g,_,Be,C,ft,ut,ne))?(vt||typeof O.UNSAFE_componentWillMount!="function"&&typeof O.componentWillMount!="function"||(typeof O.componentWillMount=="function"&&O.componentWillMount(),typeof O.UNSAFE_componentWillMount=="function"&&O.UNSAFE_componentWillMount()),typeof O.componentDidMount=="function"&&(g.flags|=4194308)):(typeof O.componentDidMount=="function"&&(g.flags|=4194308),g.memoizedProps=C,g.memoizedState=ut),O.props=C,O.state=ut,O.context=ne,C=Be):(typeof O.componentDidMount=="function"&&(g.flags|=4194308),C=!1)}else{O=g.stateNode,UC(f,g),ne=g.memoizedProps,vt=vf(_,ne),O.props=vt,kt=g.pendingProps,ft=O.context,ut=_.contextType,Be=np,typeof ut=="object"&&ut!==null&&(Be=Ua(ut)),Se=_.getDerivedStateFromProps,(ut=typeof Se=="function"||typeof O.getSnapshotBeforeUpdate=="function")||typeof O.UNSAFE_componentWillReceiveProps!="function"&&typeof O.componentWillReceiveProps!="function"||(ne!==kt||ft!==Be)&&v5(g,O,C,Be),wd=!1,ft=g.memoizedState,O.state=ft,px(g,C,O,R),mx();var xt=g.memoizedState;ne!==kt||ft!==xt||wd||f!==null&&f.dependencies!==null&&Xv(f.dependencies)?(typeof Se=="function"&&(c2(g,_,Se,C),xt=g.memoizedState),(vt=wd||y5(g,_,vt,C,ft,xt,Be)||f!==null&&f.dependencies!==null&&Xv(f.dependencies))?(ut||typeof O.UNSAFE_componentWillUpdate!="function"&&typeof O.componentWillUpdate!="function"||(typeof O.componentWillUpdate=="function"&&O.componentWillUpdate(C,xt,Be),typeof O.UNSAFE_componentWillUpdate=="function"&&O.UNSAFE_componentWillUpdate(C,xt,Be)),typeof O.componentDidUpdate=="function"&&(g.flags|=4),typeof O.getSnapshotBeforeUpdate=="function"&&(g.flags|=1024)):(typeof O.componentDidUpdate!="function"||ne===f.memoizedProps&&ft===f.memoizedState||(g.flags|=4),typeof O.getSnapshotBeforeUpdate!="function"||ne===f.memoizedProps&&ft===f.memoizedState||(g.flags|=1024),g.memoizedProps=C,g.memoizedState=xt),O.props=C,O.state=xt,O.context=Be,C=vt):(typeof O.componentDidUpdate!="function"||ne===f.memoizedProps&&ft===f.memoizedState||(g.flags|=4),typeof O.getSnapshotBeforeUpdate!="function"||ne===f.memoizedProps&&ft===f.memoizedState||(g.flags|=1024),C=!1)}return O=C,mw(f,g),C=(g.flags&128)!==0,O||C?(O=g.stateNode,_=C&&typeof _.getDerivedStateFromError!="function"?null:O.render(),g.flags|=1,f!==null&&C?(g.child=xf(g,f.child,null,R),g.child=xf(g,null,_,R)):Ba(f,g,_,R),g.memoizedState=O.state,f=g.child):f=Qc(f,g,R),f}function L5(f,g,_,C){return hf(),g.flags|=256,Ba(f,g,_,C),g.child}var m2={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function p2(f){return{baseLanes:f,cachePool:NI()}}function g2(f,g,_){return f=f!==null?f.childLanes&~_:0,g&&(f|=fo),f}function O5(f,g,_){var C=g.pendingProps,R=!1,O=(g.flags&128)!==0,ne;if((ne=O)||(ne=f!==null&&f.memoizedState===null?!1:(Li.current&2)!==0),ne&&(R=!0,g.flags&=-129),ne=(g.flags&32)!==0,g.flags&=-33,f===null){if(Jn){if(R?Nd(g):kd(),(f=Zr)?(f=Vz(f,$o),f=f!==null&&f.data!=="&"?f:null,f!==null&&(g.memoizedState={dehydrated:f,treeContext:bd!==null?{id:ac,overflow:sc}:null,retryLane:536870912,hydrationErrors:null},_=pI(f),_.return=g,g.child=_,za=g,Zr=null)):f=null,f===null)throw yd(g);return Z2(f)?g.lanes=32:g.lanes=536870912,null}var Se=C.children;return C=C.fallback,R?(kd(),R=g.mode,Se=pw({mode:"hidden",children:Se},R),C=df(C,R,_,null),Se.return=g,C.return=g,Se.sibling=C,g.child=Se,C=g.child,C.memoizedState=p2(_),C.childLanes=g2(f,ne,_),g.memoizedState=m2,vx(null,C)):(Nd(g),b2(g,Se))}var Be=f.memoizedState;if(Be!==null&&(Se=Be.dehydrated,Se!==null)){if(O)g.flags&256?(Nd(g),g.flags&=-257,g=x2(f,g,_)):g.memoizedState!==null?(kd(),g.child=f.child,g.flags|=128,g=null):(kd(),Se=C.fallback,R=g.mode,C=pw({mode:"visible",children:C.children},R),Se=df(Se,R,_,null),Se.flags|=2,C.return=g,Se.return=g,C.sibling=Se,g.child=C,xf(g,f.child,null,_),C=g.child,C.memoizedState=p2(_),C.childLanes=g2(f,ne,_),g.memoizedState=m2,g=vx(null,C));else if(Nd(g),Z2(Se)){if(ne=Se.nextSibling&&Se.nextSibling.dataset,ne)var ut=ne.dgst;ne=ut,C=Error(r(419)),C.stack="",C.digest=ne,lx({value:C,source:null,stack:null}),g=x2(f,g,_)}else if(Gi||sp(f,g,_,!1),ne=(_&f.childLanes)!==0,Gi||ne){if(ne=Fr,ne!==null&&(C=Qt(ne,_),C!==0&&C!==Be.retryLane))throw Be.retryLane=C,uf(f,C),$s(ne,f,C),h2;Q2(Se)||Nw(),g=x2(f,g,_)}else Q2(Se)?(g.flags|=192,g.child=f.child,g=null):(f=Be.treeContext,Zr=Vo(Se.nextSibling),za=g,Jn=!0,xd=null,$o=!1,f!==null&&xI(g,f),g=b2(g,C.children),g.flags|=4096);return g}return R?(kd(),Se=C.fallback,R=g.mode,Be=f.child,ut=Be.sibling,C=Gc(Be,{mode:"hidden",children:C.children}),C.subtreeFlags=Be.subtreeFlags&65011712,ut!==null?Se=Gc(ut,Se):(Se=df(Se,R,_,null),Se.flags|=2),Se.return=g,C.return=g,C.sibling=Se,g.child=C,vx(null,C),C=g.child,Se=f.child.memoizedState,Se===null?Se=p2(_):(R=Se.cachePool,R!==null?(Be=Hi._currentValue,R=R.parent!==Be?{parent:Be,pool:Be}:R):R=NI(),Se={baseLanes:Se.baseLanes|_,cachePool:R}),C.memoizedState=Se,C.childLanes=g2(f,ne,_),g.memoizedState=m2,vx(f.child,C)):(Nd(g),_=f.child,f=_.sibling,_=Gc(_,{mode:"visible",children:C.children}),_.return=g,_.sibling=null,f!==null&&(ne=g.deletions,ne===null?(g.deletions=[f],g.flags|=16):ne.push(f)),g.child=_,g.memoizedState=null,_)}function b2(f,g){return g=pw({mode:"visible",children:g},f.mode),g.return=f,f.child=g}function pw(f,g){return f=lo(22,f,null,g),f.lanes=0,f}function x2(f,g,_){return xf(g,f.child,null,_),f=b2(g,g.pendingProps.children),f.flags|=2,g.memoizedState=null,f}function F5(f,g,_){f.lanes|=g;var C=f.alternate;C!==null&&(C.lanes|=g),DC(f.return,g,_)}function y2(f,g,_,C,R,O){var ne=f.memoizedState;ne===null?f.memoizedState={isBackwards:g,rendering:null,renderingStartTime:0,last:C,tail:_,tailMode:R,treeForkCount:O}:(ne.isBackwards=g,ne.rendering=null,ne.renderingStartTime=0,ne.last=C,ne.tail=_,ne.tailMode=R,ne.treeForkCount=O)}function I5(f,g,_){var C=g.pendingProps,R=C.revealOrder,O=C.tail;C=C.children;var ne=Li.current,Se=(ne&2)!==0;if(Se?(ne=ne&1|2,g.flags|=128):ne&=1,ie(Li,ne),Ba(f,g,C,_),C=Jn?ox:0,!Se&&f!==null&&(f.flags&128)!==0)e:for(f=g.child;f!==null;){if(f.tag===13)f.memoizedState!==null&&F5(f,_,g);else if(f.tag===19)F5(f,_,g);else if(f.child!==null){f.child.return=f,f=f.child;continue}if(f===g)break e;for(;f.sibling===null;){if(f.return===null||f.return===g)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}switch(R){case"forwards":for(_=g.child,R=null;_!==null;)f=_.alternate,f!==null&&rw(f)===null&&(R=_),_=_.sibling;_=R,_===null?(R=g.child,g.child=null):(R=_.sibling,_.sibling=null),y2(g,!1,R,_,O,C);break;case"backwards":case"unstable_legacy-backwards":for(_=null,R=g.child,g.child=null;R!==null;){if(f=R.alternate,f!==null&&rw(f)===null){g.child=R;break}f=R.sibling,R.sibling=_,_=R,R=f}y2(g,!0,_,null,O,C);break;case"together":y2(g,!1,null,null,void 0,C);break;default:g.memoizedState=null}return g.child}function Qc(f,g,_){if(f!==null&&(g.dependencies=f.dependencies),Ad|=g.lanes,(_&g.childLanes)===0)if(f!==null){if(sp(f,g,_,!1),(_&g.childLanes)===0)return null}else return null;if(f!==null&&g.child!==f.child)throw Error(r(153));if(g.child!==null){for(f=g.child,_=Gc(f,f.pendingProps),g.child=_,_.return=g;f.sibling!==null;)f=f.sibling,_=_.sibling=Gc(f,f.pendingProps),_.return=g;_.sibling=null}return g.child}function v2(f,g){return(f.lanes&g)!==0?!0:(f=f.dependencies,!!(f!==null&&Xv(f)))}function fae(f,g,_){switch(g.tag){case 3:Le(g,g.stateNode.containerInfo),vd(g,Hi,f.memoizedState.cache),hf();break;case 27:case 5:ce(g);break;case 4:Le(g,g.stateNode.containerInfo);break;case 10:vd(g,g.type,g.memoizedProps.value);break;case 31:if(g.memoizedState!==null)return g.flags|=128,GC(g),null;break;case 13:var C=g.memoizedState;if(C!==null)return C.dehydrated!==null?(Nd(g),g.flags|=128,null):(_&g.child.childLanes)!==0?O5(f,g,_):(Nd(g),f=Qc(f,g,_),f!==null?f.sibling:null);Nd(g);break;case 19:var R=(f.flags&128)!==0;if(C=(_&g.childLanes)!==0,C||(sp(f,g,_,!1),C=(_&g.childLanes)!==0),R){if(C)return I5(f,g,_);g.flags|=128}if(R=g.memoizedState,R!==null&&(R.rendering=null,R.tail=null,R.lastEffect=null),ie(Li,Li.current),C)break;return null;case 22:return g.lanes=0,T5(f,g,_,g.pendingProps);case 24:vd(g,Hi,f.memoizedState.cache)}return Qc(f,g,_)}function z5(f,g,_){if(f!==null)if(f.memoizedProps!==g.pendingProps)Gi=!0;else{if(!v2(f,_)&&(g.flags&128)===0)return Gi=!1,fae(f,g,_);Gi=(f.flags&131072)!==0}else Gi=!1,Jn&&(g.flags&1048576)!==0&&bI(g,ox,g.index);switch(g.lanes=0,g.tag){case 16:e:{var C=g.pendingProps;if(f=gf(g.elementType),g.type=f,typeof f=="function")kC(f)?(C=vf(f,C),g.tag=1,g=R5(null,g,f,C,_)):(g.tag=0,g=f2(null,g,f,C,_));else{if(f!=null){var R=f.$$typeof;if(R===A){g.tag=11,g=C5(null,g,f,C,_);break e}else if(R===M){g.tag=14,g=A5(null,g,f,C,_);break e}}throw g=D(f)||f,Error(r(306,g,""))}}return g;case 0:return f2(f,g,g.type,g.pendingProps,_);case 1:return C=g.type,R=vf(C,g.pendingProps),R5(f,g,C,R,_);case 3:e:{if(Le(g,g.stateNode.containerInfo),f===null)throw Error(r(387));C=g.pendingProps;var O=g.memoizedState;R=O.element,UC(f,g),px(g,C,null,_);var ne=g.memoizedState;if(C=ne.cache,vd(g,Hi,C),C!==O.cache&&RC(g,[Hi],_,!0),mx(),C=ne.element,O.isDehydrated)if(O={element:C,isDehydrated:!1,cache:ne.cache},g.updateQueue.baseState=O,g.memoizedState=O,g.flags&256){g=L5(f,g,C,_);break e}else if(C!==R){R=zo(Error(r(424)),g),lx(R),g=L5(f,g,C,_);break e}else{switch(f=g.stateNode.containerInfo,f.nodeType){case 9:f=f.body;break;default:f=f.nodeName==="HTML"?f.ownerDocument.body:f}for(Zr=Vo(f.firstChild),za=g,Jn=!0,xd=null,$o=!0,_=TI(g,null,C,_),g.child=_;_;)_.flags=_.flags&-3|4096,_=_.sibling}else{if(hf(),C===R){g=Qc(f,g,_);break e}Ba(f,g,C,_)}g=g.child}return g;case 26:return mw(f,g),f===null?(_=Yz(g.type,null,g.pendingProps,null))?g.memoizedState=_:Jn||(_=g.type,f=g.pendingProps,C=jw(fe.current).createElement(_),C[Xt]=g,C[sr]=f,$a(C,_,f),Ge(C),g.stateNode=C):g.memoizedState=Yz(g.type,f.memoizedProps,g.pendingProps,f.memoizedState),null;case 27:return ce(g),f===null&&Jn&&(C=g.stateNode=Wz(g.type,g.pendingProps,fe.current),za=g,$o=!0,R=Zr,Dd(g.type)?(J2=R,Zr=Vo(C.firstChild)):Zr=R),Ba(f,g,g.pendingProps.children,_),mw(f,g),f===null&&(g.flags|=4194304),g.child;case 5:return f===null&&Jn&&((R=C=Zr)&&(C=Hae(C,g.type,g.pendingProps,$o),C!==null?(g.stateNode=C,za=g,Zr=Vo(C.firstChild),$o=!1,R=!0):R=!1),R||yd(g)),ce(g),R=g.type,O=g.pendingProps,ne=f!==null?f.memoizedProps:null,C=O.children,K2(R,O)?C=null:ne!==null&&K2(R,ne)&&(g.flags|=32),g.memoizedState!==null&&(R=WC(f,g,iae,null,null,_),Lx._currentValue=R),mw(f,g),Ba(f,g,C,_),g.child;case 6:return f===null&&Jn&&((f=_=Zr)&&(_=Vae(_,g.pendingProps,$o),_!==null?(g.stateNode=_,za=g,Zr=null,f=!0):f=!1),f||yd(g)),null;case 13:return O5(f,g,_);case 4:return Le(g,g.stateNode.containerInfo),C=g.pendingProps,f===null?g.child=xf(g,null,C,_):Ba(f,g,C,_),g.child;case 11:return C5(f,g,g.type,g.pendingProps,_);case 7:return Ba(f,g,g.pendingProps,_),g.child;case 8:return Ba(f,g,g.pendingProps.children,_),g.child;case 12:return Ba(f,g,g.pendingProps.children,_),g.child;case 10:return C=g.pendingProps,vd(g,g.type,C.value),Ba(f,g,C.children,_),g.child;case 9:return R=g.type._context,C=g.pendingProps.children,mf(g),R=Ua(R),C=C(R),g.flags|=1,Ba(f,g,C,_),g.child;case 14:return A5(f,g,g.type,g.pendingProps,_);case 15:return E5(f,g,g.type,g.pendingProps,_);case 19:return I5(f,g,_);case 31:return hae(f,g,_);case 22:return T5(f,g,_,g.pendingProps);case 24:return mf(g),C=Ua(Hi),f===null?(R=FC(),R===null&&(R=Fr,O=LC(),R.pooledCache=O,O.refCount++,O!==null&&(R.pooledCacheLanes|=_),R=O),g.memoizedState={parent:C,cache:R},zC(g),vd(g,Hi,R)):((f.lanes&_)!==0&&(UC(f,g),px(g,null,null,_),mx()),R=f.memoizedState,O=g.memoizedState,R.parent!==C?(R={parent:C,cache:C},g.memoizedState=R,g.lanes===0&&(g.memoizedState=g.updateQueue.baseState=R),vd(g,Hi,C)):(C=O.cache,vd(g,Hi,C),C!==R.cache&&RC(g,[Hi],_,!0))),Ba(f,g,g.pendingProps.children,_),g.child;case 29:throw g.pendingProps}throw Error(r(156,g.tag))}function Zc(f){f.flags|=4}function w2(f,g,_,C,R){if((g=(f.mode&32)!==0)&&(g=!1),g){if(f.flags|=16777216,(R&335544128)===R)if(f.stateNode.complete)f.flags|=8192;else if(hz())f.flags|=8192;else throw bf=Jv,IC}else f.flags&=-16777217}function U5(f,g){if(g.type!=="stylesheet"||(g.state.loading&4)!==0)f.flags&=-16777217;else if(f.flags|=16777216,!tU(g))if(hz())f.flags|=8192;else throw bf=Jv,IC}function gw(f,g){g!==null&&(f.flags|=4),f.flags&16384&&(g=f.tag!==22?yt():536870912,f.lanes|=g,xp|=g)}function wx(f,g){if(!Jn)switch(f.tailMode){case"hidden":g=f.tail;for(var _=null;g!==null;)g.alternate!==null&&(_=g),g=g.sibling;_===null?f.tail=null:_.sibling=null;break;case"collapsed":_=f.tail;for(var C=null;_!==null;)_.alternate!==null&&(C=_),_=_.sibling;C===null?g||f.tail===null?f.tail=null:f.tail.sibling=null:C.sibling=null}}function Jr(f){var g=f.alternate!==null&&f.alternate.child===f.child,_=0,C=0;if(g)for(var R=f.child;R!==null;)_|=R.lanes|R.childLanes,C|=R.subtreeFlags&65011712,C|=R.flags&65011712,R.return=f,R=R.sibling;else for(R=f.child;R!==null;)_|=R.lanes|R.childLanes,C|=R.subtreeFlags,C|=R.flags,R.return=f,R=R.sibling;return f.subtreeFlags|=C,f.childLanes=_,g}function mae(f,g,_){var C=g.pendingProps;switch(EC(g),g.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Jr(g),null;case 1:return Jr(g),null;case 3:return _=g.stateNode,C=null,f!==null&&(C=f.memoizedState.cache),g.memoizedState.cache!==C&&(g.flags|=2048),Kc(Hi),de(),_.pendingContext&&(_.context=_.pendingContext,_.pendingContext=null),(f===null||f.child===null)&&(ap(g)?Zc(g):f===null||f.memoizedState.isDehydrated&&(g.flags&256)===0||(g.flags|=1024,jC())),Jr(g),null;case 26:var R=g.type,O=g.memoizedState;return f===null?(Zc(g),O!==null?(Jr(g),U5(g,O)):(Jr(g),w2(g,R,null,C,_))):O?O!==f.memoizedState?(Zc(g),Jr(g),U5(g,O)):(Jr(g),g.flags&=-16777217):(f=f.memoizedProps,f!==C&&Zc(g),Jr(g),w2(g,R,f,C,_)),null;case 27:if(Ee(g),_=fe.current,R=g.type,f!==null&&g.stateNode!=null)f.memoizedProps!==C&&Zc(g);else{if(!C){if(g.stateNode===null)throw Error(r(166));return Jr(g),null}f=J.current,ap(g)?yI(g):(f=Wz(R,C,_),g.stateNode=f,Zc(g))}return Jr(g),null;case 5:if(Ee(g),R=g.type,f!==null&&g.stateNode!=null)f.memoizedProps!==C&&Zc(g);else{if(!C){if(g.stateNode===null)throw Error(r(166));return Jr(g),null}if(O=J.current,ap(g))yI(g);else{var ne=jw(fe.current);switch(O){case 1:O=ne.createElementNS("http://www.w3.org/2000/svg",R);break;case 2:O=ne.createElementNS("http://www.w3.org/1998/Math/MathML",R);break;default:switch(R){case"svg":O=ne.createElementNS("http://www.w3.org/2000/svg",R);break;case"math":O=ne.createElementNS("http://www.w3.org/1998/Math/MathML",R);break;case"script":O=ne.createElement("div"),O.innerHTML=" +