headroom-cms 0.1.2 → 0.1.3
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/admin/assets/AdminsPage-DYJhlQnA.js +1 -0
- package/admin/assets/AllContentPage-DShBvFru.js +1 -0
- package/admin/assets/{ApiKeysPage-B7eN8Oy5.js → ApiKeysPage-DONrd-TJ.js} +1 -1
- package/admin/assets/{AuditPage-hd-SaWMS.js → AuditPage-BwhYu96L.js} +1 -1
- package/admin/assets/{BlockEditor-BKqDtxKs.js → BlockEditor-C0KaZUHQ.js} +57 -57
- package/admin/assets/BlockTypeEditPage-BYJfEA6l.js +1 -0
- package/admin/assets/BlockTypesPage-Pf9u78-O.js +1 -0
- package/admin/assets/BulkActionBar-BX-t8fyM.js +1 -0
- package/admin/assets/CollectionEditPage-CQGo9Cbu.js +1 -0
- package/admin/assets/{CollectionsPage-CCtIb9WO.js → CollectionsPage-D-QTkoW_.js} +1 -1
- package/admin/assets/{ContentCreatePage-Ddc6j4WO.js → ContentCreatePage-DujNZXXj.js} +1 -1
- package/admin/assets/ContentEditPage-DyqgEoAe.js +3 -0
- package/admin/assets/ContentListPage-llAlhZTH.js +1 -0
- package/admin/assets/{CustomBlockPreview-A-nwA7RD.js → CustomBlockPreview-CCiZrZhi.js} +1 -1
- package/admin/assets/FieldBuilder-B3-3MTqp.js +3 -0
- package/admin/assets/{LoginPage-B5FcCn1S.js → LoginPage-BlJXP0GH.js} +1 -1
- package/admin/assets/MediaPage-Cad4n33B.js +1 -0
- package/admin/assets/SiteSettingsPage-xfAm3ZKQ.js +1 -0
- package/admin/assets/SitesPage-DnCiSu23.js +1 -0
- package/admin/assets/{TagsPage-CQ9k8IWa.js → TagsPage-DNlaoFCE.js} +1 -1
- package/admin/assets/UsersPage-D_nOx6W9.js +1 -0
- package/admin/assets/{WebhookEditPage-Cj6aTIwf.js → WebhookEditPage-BUvLl4rY.js} +1 -1
- package/admin/assets/{WebhooksPage-wSrRa63x.js → WebhooksPage-CG7WC9Bq.js} +1 -1
- package/admin/assets/{badge-DK6q6X8v.js → badge-ChZ2DZue.js} +1 -1
- package/admin/assets/{card-NiKFR8dW.js → card-DpNr7WTb.js} +1 -1
- package/admin/assets/check-BMpruHpO.js +1 -0
- package/admin/assets/{checkbox-Cv1_Hpta.js → checkbox-VtCfoGic.js} +1 -1
- package/admin/assets/command-98iA8Va4.js +1 -0
- package/admin/assets/contentStatus-BmaiYVOm.js +1 -0
- package/admin/assets/{copy-BIxYwzJE.js → copy-fXL6Ngxi.js} +1 -1
- package/admin/assets/{core.esm-C3N4hsfx.js → core.esm-BtFZvlg0.js} +1 -1
- package/admin/assets/format-C88SDH8g.js +1 -0
- package/admin/assets/index-CwkwXbO-.js +18 -0
- package/admin/assets/index-FYfbavkE.css +1 -0
- package/admin/assets/plus-2Ds_MoqB.js +1 -0
- package/admin/assets/popover-DFInMOpa.js +1 -0
- package/admin/assets/radix-n1vDIPi6.js +51 -0
- package/admin/assets/search-DRNC6QB5.js +1 -0
- package/admin/assets/select-Cj54Wt-H.js +1 -0
- package/admin/assets/{sortable.esm-CL-OXMRL.js → sortable.esm-BUhmZW2_.js} +1 -1
- package/admin/assets/{table-pnzwUf_S.js → table-D4rLgOKa.js} +1 -1
- package/admin/assets/{trash-2-H30Pytad.js → trash-2-CbbWF_O4.js} +1 -1
- package/admin/assets/use-mobile-Cvl5tIVY.js +1 -0
- package/admin/assets/useAdminResolver-B-_1f6SR.js +1 -0
- package/admin/assets/useContent-Cp41wBYR.js +1 -0
- package/admin/assets/useMedia-DjiNKMOU.js +1 -0
- package/admin/assets/{useTags-CiyJ7ytD.js → useTags-BB47vbXO.js} +1 -1
- package/admin/assets/{useWebhooks-D5KIBL2l.js → useWebhooks-DS4Ee8Wk.js} +1 -1
- package/admin/assets/workbox-window.prod.es5-BIl4cyR9.js +2 -0
- package/admin/icons/icon-180x180.png +0 -0
- package/admin/icons/icon-192x192.png +0 -0
- package/admin/icons/icon-512x512.png +0 -0
- package/admin/icons/maskable-icon-512x512.png +0 -0
- package/admin/index.html +11 -6
- package/admin/manifest.webmanifest +1 -0
- package/admin/sw.js +1 -0
- package/admin/workbox-7d58179f.js +1 -0
- package/dist/admin-site.d.ts.map +1 -1
- package/dist/admin-site.js +3 -0
- package/dist/admin-site.js.map +1 -1
- package/dist/image.d.ts.map +1 -1
- package/dist/image.js +3 -0
- package/dist/image.js.map +1 -1
- package/dist/storage.js +1 -1
- package/dist/storage.js.map +1 -1
- package/lambda/api/bootstrap +0 -0
- package/lambda/webhook-worker/bootstrap +0 -0
- package/package.json +2 -2
- package/src/admin-site.ts +3 -0
- package/src/image.ts +3 -0
- package/src/storage.ts +1 -1
- package/admin/assets/AdminsPage-Dc3Rzdwx.js +0 -1
- package/admin/assets/AllContentPage-BhNvrxDQ.js +0 -1
- package/admin/assets/BlockTypeEditPage-Cy3fkD1c.js +0 -1
- package/admin/assets/BlockTypesPage-B8lJ18bi.js +0 -1
- package/admin/assets/BulkActionBar-4v-SYM43.js +0 -1
- package/admin/assets/CollectionEditPage-j3KxUSoP.js +0 -1
- package/admin/assets/ContentEditPage-DOGQTv8S.js +0 -3
- package/admin/assets/ContentListPage-B51lrfUs.js +0 -1
- package/admin/assets/FieldBuilder-B5YuIrq9.js +0 -3
- package/admin/assets/MediaPage-DwVwPIir.js +0 -1
- package/admin/assets/SiteSettingsPage-CimBfAlF.js +0 -1
- package/admin/assets/SitesPage-BBXXQwRM.js +0 -1
- package/admin/assets/UsersPage-j6pRJvSa.js +0 -1
- package/admin/assets/check-UCoo7qN1.js +0 -1
- package/admin/assets/command-Da-hMl-c.js +0 -1
- package/admin/assets/contentStatus-DfWHjFVB.js +0 -1
- package/admin/assets/format-CZ9bpk32.js +0 -1
- package/admin/assets/index-CdJ9sfDz.js +0 -18
- package/admin/assets/index-DOqKbrpW.css +0 -1
- package/admin/assets/media-url-DIg_vSyf.js +0 -1
- package/admin/assets/plus-CTopr28W.js +0 -1
- package/admin/assets/radix-DQ3amgxj.js +0 -51
- package/admin/assets/search-CURbafxm.js +0 -1
- package/admin/assets/select-27FAx7H-.js +0 -1
- package/admin/assets/useAdminResolver-oE0-RZ44.js +0 -1
- package/admin/assets/useContent-CNxWXb6y.js +0 -1
- package/admin/assets/useMedia-BgfZGpqE.js +0 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/LoginPage-BlJXP0GH.js","assets/tanstack-BO6c-AOu.js","assets/react-vendor-DNVhVxD7.js","assets/card-DpNr7WTb.js","assets/radix-n1vDIPi6.js","assets/SitesPage-DnCiSu23.js","assets/badge-ChZ2DZue.js","assets/checkbox-VtCfoGic.js","assets/check-BMpruHpO.js","assets/plus-2Ds_MoqB.js","assets/UsersPage-D_nOx6W9.js","assets/table-D4rLgOKa.js","assets/trash-2-CbbWF_O4.js","assets/AllContentPage-DShBvFru.js","assets/useContent-Cp41wBYR.js","assets/use-mobile-Cvl5tIVY.js","assets/format-C88SDH8g.js","assets/BulkActionBar-BX-t8fyM.js","assets/ContentListPage-llAlhZTH.js","assets/useTags-BB47vbXO.js","assets/useDebouncedValue-Bf8UizjU.js","assets/popover-DFInMOpa.js","assets/select-Cj54Wt-H.js","assets/contentStatus-BmaiYVOm.js","assets/search-DRNC6QB5.js","assets/ContentCreatePage-DujNZXXj.js","assets/ContentEditPage-DyqgEoAe.js","assets/useAdminResolver-B-_1f6SR.js","assets/sortable.esm-BUhmZW2_.js","assets/core.esm-BtFZvlg0.js","assets/useMedia-DjiNKMOU.js","assets/command-98iA8Va4.js","assets/MediaPage-Cad4n33B.js","assets/copy-fXL6Ngxi.js","assets/MediaPage-DfPQBmNf.css","assets/CollectionsPage-D-QTkoW_.js","assets/CollectionEditPage-CQGo9Cbu.js","assets/FieldBuilder-B3-3MTqp.js","assets/BlockTypesPage-Pf9u78-O.js","assets/BlockTypeEditPage-BYJfEA6l.js","assets/CustomBlockPreview-CCiZrZhi.js","assets/ApiKeysPage-DONrd-TJ.js","assets/WebhooksPage-CG7WC9Bq.js","assets/useWebhooks-DS4Ee8Wk.js","assets/WebhookEditPage-BUvLl4rY.js","assets/AdminsPage-DYJhlQnA.js","assets/AuditPage-BwhYu96L.js","assets/TagsPage-DNlaoFCE.js","assets/SiteSettingsPage-xfAm3ZKQ.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{j as A,Q as my,u as $n,a as zt,b as Bt,c as gy}from"./tanstack-BO6c-AOu.js";import{a as py,r as ae,R as ie,c as Km,d as Hc,N as Ts,u as dg,e as vy,f as yy,L as by,O as Sy,h as wy,i as xy}from"./react-vendor-DNVhVxD7.js";import{r as Ey,R as Ay,S as Ty,a as Cy,T as Uy,P as _y,C as Dy,I as Ry,b as Ny,c as hg,d as My,e as mg,f as Fc,g as gg,D as zy,h as pg,O as vg,i as By,L as Oy,j as jy,k as qy,l as ky,m as Ly,V as Hy,n as Fy,o as Vy,p as Ky,q as Yy}from"./radix-n1vDIPi6.js";(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))l(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&l(d)}).observe(document,{childList:!0,subtree:!0});function s(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function l(c){if(c.ep)return;c.ep=!0;const f=s(c);fetch(c.href,f)}})();var Iu={exports:{}},Fr={},Gu={exports:{}},Qu={};var Ym;function Iy(){return Ym||(Ym=1,(function(i){function r(j,Q){var G=j.length;j.push(Q);e:for(;0<G;){var re=G-1>>>1,be=j[re];if(0<c(be,Q))j[re]=Q,j[G]=be,G=re;else break e}}function s(j){return j.length===0?null:j[0]}function l(j){if(j.length===0)return null;var Q=j[0],G=j.pop();if(G!==Q){j[0]=G;e:for(var re=0,be=j.length,Se=be>>>1;re<Se;){var le=2*(re+1)-1,te=j[le],fe=le+1,_e=j[fe];if(0>c(te,G))fe<be&&0>c(_e,te)?(j[re]=_e,j[fe]=G,re=fe):(j[re]=te,j[le]=G,re=le);else if(fe<be&&0>c(_e,G))j[re]=_e,j[fe]=G,re=fe;else break e}}return Q}function c(j,Q){var G=j.sortIndex-Q.sortIndex;return G!==0?G:j.id-Q.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;i.unstable_now=function(){return f.now()}}else{var d=Date,h=d.now();i.unstable_now=function(){return d.now()-h}}var v=[],y=[],w=1,E=null,U=3,S=!1,N=!1,D=!1,I=!1,K=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,J=typeof setImmediate<"u"?setImmediate:null;function $(j){for(var Q=s(y);Q!==null;){if(Q.callback===null)l(y);else if(Q.startTime<=j)l(y),Q.sortIndex=Q.expirationTime,r(v,Q);else break;Q=s(y)}}function oe(j){if(D=!1,$(j),!N)if(s(v)!==null)N=!0,X||(X=!0,ee());else{var Q=s(y);Q!==null&&Ae(oe,Q.startTime-j)}}var X=!1,W=-1,L=5,Z=-1;function ce(){return I?!0:!(i.unstable_now()-Z<L)}function ne(){if(I=!1,X){var j=i.unstable_now();Z=j;var Q=!0;try{e:{N=!1,D&&(D=!1,P(W),W=-1),S=!0;var G=U;try{t:{for($(j),E=s(v);E!==null&&!(E.expirationTime>j&&ce());){var re=E.callback;if(typeof re=="function"){E.callback=null,U=E.priorityLevel;var be=re(E.expirationTime<=j);if(j=i.unstable_now(),typeof be=="function"){E.callback=be,$(j),Q=!0;break t}E===s(v)&&l(v),$(j)}else l(v);E=s(v)}if(E!==null)Q=!0;else{var Se=s(y);Se!==null&&Ae(oe,Se.startTime-j),Q=!1}}break e}finally{E=null,U=G,S=!1}Q=void 0}}finally{Q?ee():X=!1}}}var ee;if(typeof J=="function")ee=function(){J(ne)};else if(typeof MessageChannel<"u"){var se=new MessageChannel,ue=se.port2;se.port1.onmessage=ne,ee=function(){ue.postMessage(null)}}else ee=function(){K(ne,0)};function Ae(j,Q){W=K(function(){j(i.unstable_now())},Q)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(j){j.callback=null},i.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<j?Math.floor(1e3/j):5},i.unstable_getCurrentPriorityLevel=function(){return U},i.unstable_next=function(j){switch(U){case 1:case 2:case 3:var Q=3;break;default:Q=U}var G=U;U=Q;try{return j()}finally{U=G}},i.unstable_requestPaint=function(){I=!0},i.unstable_runWithPriority=function(j,Q){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var G=U;U=j;try{return Q()}finally{U=G}},i.unstable_scheduleCallback=function(j,Q,G){var re=i.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?re+G:re):G=re,j){case 1:var be=-1;break;case 2:be=250;break;case 5:be=1073741823;break;case 4:be=1e4;break;default:be=5e3}return be=G+be,j={id:w++,callback:Q,priorityLevel:j,startTime:G,expirationTime:be,sortIndex:-1},G>re?(j.sortIndex=G,r(y,j),s(v)===null&&j===s(y)&&(D?(P(W),W=-1):D=!0,Ae(oe,G-re))):(j.sortIndex=be,r(v,j),N||S||(N=!0,X||(X=!0,ee()))),j},i.unstable_shouldYield=ce,i.unstable_wrapCallback=function(j){var Q=U;return function(){var G=U;U=Q;try{return j.apply(this,arguments)}finally{U=G}}}})(Qu)),Qu}var Im;function Gy(){return Im||(Im=1,Gu.exports=Iy()),Gu.exports}var Gm;function Qy(){if(Gm)return Fr;Gm=1;var i=Gy(),r=py(),s=Ey();function l(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;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."}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function d(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 h(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function v(e){if(f(e)!==e)throw Error(l(188))}function y(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(l(188));return t!==e?null:e}for(var n=e,a=t;;){var o=n.return;if(o===null)break;var u=o.alternate;if(u===null){if(a=o.return,a!==null){n=a;continue}break}if(o.child===u.child){for(u=o.child;u;){if(u===n)return v(o),e;if(u===a)return v(o),t;u=u.sibling}throw Error(l(188))}if(n.return!==a.return)n=o,a=u;else{for(var m=!1,b=o.child;b;){if(b===n){m=!0,n=o,a=u;break}if(b===a){m=!0,a=o,n=u;break}b=b.sibling}if(!m){for(b=u.child;b;){if(b===n){m=!0,n=u,a=o;break}if(b===a){m=!0,a=u,n=o;break}b=b.sibling}if(!m)throw Error(l(189))}}if(n.alternate!==a)throw Error(l(190))}if(n.tag!==3)throw Error(l(188));return n.stateNode.current===n?e:t}function w(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=w(e),t!==null)return t;e=e.sibling}return null}var E=Object.assign,U=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),K=Symbol.for("react.profiler"),P=Symbol.for("react.consumer"),J=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),oe=Symbol.for("react.suspense"),X=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),Z=Symbol.for("react.activity"),ce=Symbol.for("react.memo_cache_sentinel"),ne=Symbol.iterator;function ee(e){return e===null||typeof e!="object"?null:(e=ne&&e[ne]||e["@@iterator"],typeof e=="function"?e:null)}var se=Symbol.for("react.client.reference");function ue(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===se?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case D:return"Fragment";case K:return"Profiler";case I:return"StrictMode";case oe:return"Suspense";case X:return"SuspenseList";case Z:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case N:return"Portal";case J:return e.displayName||"Context";case P:return(e._context.displayName||"Context")+".Consumer";case $:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case W:return t=e.displayName||null,t!==null?t:ue(e.type)||"Memo";case L:t=e._payload,e=e._init;try{return ue(e(t))}catch{}}return null}var Ae=Array.isArray,j=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G={pending:!1,data:null,method:null,action:null},re=[],be=-1;function Se(e){return{current:e}}function le(e){0>be||(e.current=re[be],re[be]=null,be--)}function te(e,t){be++,re[be]=e.current,e.current=t}var fe=Se(null),_e=Se(null),Je=Se(null),pe=Se(null);function $e(e,t){switch(te(Je,t),te(_e,e),te(fe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?dm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=dm(t),e=hm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}le(fe),te(fe,e)}function Ke(){le(fe),le(_e),le(Je)}function ut(e){e.memoizedState!==null&&te(pe,e);var t=fe.current,n=hm(t,e.type);t!==n&&(te(_e,e),te(fe,n))}function xe(e){_e.current===e&&(le(fe),le(_e)),pe.current===e&&(le(pe),qr._currentValue=G)}var Ye,gn;function pn(e){if(Ye===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ye=t&&t[1]||"",gn=-1<n.stack.indexOf(`
|
|
3
|
+
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
4
|
+
`+Ye+e+gn}var Wn=!1;function vn(e,t){if(!e||Wn)return"";Wn=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var Y=function(){throw Error()};if(Object.defineProperty(Y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Y,[])}catch(q){var O=q}Reflect.construct(e,[],Y)}else{try{Y.call()}catch(q){O=q}e.call(Y.prototype)}}else{try{throw Error()}catch(q){O=q}(Y=e())&&typeof Y.catch=="function"&&Y.catch(function(){})}}catch(q){if(q&&O&&typeof q.stack=="string")return[q.stack,O.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),m=u[0],b=u[1];if(m&&b){var C=m.split(`
|
|
5
|
+
`),B=b.split(`
|
|
6
|
+
`);for(o=a=0;a<C.length&&!C[a].includes("DetermineComponentFrameRoot");)a++;for(;o<B.length&&!B[o].includes("DetermineComponentFrameRoot");)o++;if(a===C.length||o===B.length)for(a=C.length-1,o=B.length-1;1<=a&&0<=o&&C[a]!==B[o];)o--;for(;1<=a&&0<=o;a--,o--)if(C[a]!==B[o]){if(a!==1||o!==1)do if(a--,o--,0>o||C[a]!==B[o]){var k=`
|
|
7
|
+
`+C[a].replace(" at new "," at ");return e.displayName&&k.includes("<anonymous>")&&(k=k.replace("<anonymous>",e.displayName)),k}while(1<=a&&0<=o);break}}}finally{Wn=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?pn(n):""}function Pi(e,t){switch(e.tag){case 26:case 27:case 5:return pn(e.type);case 16:return pn("Lazy");case 13:return e.child!==t&&t!==null?pn("Suspense Fallback"):pn("Suspense");case 19:return pn("SuspenseList");case 0:case 15:return vn(e.type,!1);case 11:return vn(e.type.render,!1);case 1:return vn(e.type,!0);case 31:return pn("Activity");default:return""}}function x(e){try{var t="",n=null;do t+=Pi(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
|
|
8
|
+
Error generating stack: `+a.message+`
|
|
9
|
+
`+a.stack}}var g=Object.prototype.hasOwnProperty,p=i.unstable_scheduleCallback,T=i.unstable_cancelCallback,M=i.unstable_shouldYield,F=i.unstable_requestPaint,V=i.unstable_now,Re=i.unstable_getCurrentPriorityLevel,Te=i.unstable_ImmediatePriority,je=i.unstable_UserBlockingPriority,rt=i.unstable_NormalPriority,Pe=i.unstable_LowPriority,Wt=i.unstable_IdlePriority,ti=i.log,Ra=i.unstable_setDisableYieldValue,Nn=null,dt=null;function yn(e){if(typeof ti=="function"&&Ra(e),dt&&typeof dt.setStrictMode=="function")try{dt.setStrictMode(Nn,e)}catch{}}var ht=Math.clz32?Math.clz32:il,Ns=Math.log,Ms=Math.LN2;function il(e){return e>>>=0,e===0?32:31-(Ns(e)/Ms|0)|0}var Na=256,ni=262144,ea=4194304;function Dt(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ai(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var o=0,u=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var b=a&134217727;return b!==0?(a=b&~u,a!==0?o=Dt(a):(m&=b,m!==0?o=Dt(m):n||(n=b&~e,n!==0&&(o=Dt(n))))):(b=a&~u,b!==0?o=Dt(b):m!==0?o=Dt(m):n||(n=a&~e,n!==0&&(o=Dt(n)))),o===0?0:t!==0&&t!==o&&(t&u)===0&&(u=o&-o,n=t&-t,u>=n||u===32&&(n&4194048)!==0)?t:o}function Ee(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function He(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Xe(){var e=ea;return ea<<=1,(ea&62914560)===0&&(ea=4194304),e}function Rt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Et(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function An(e,t,n,a,o,u){var m=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var b=e.entanglements,C=e.expirationTimes,B=e.hiddenUpdates;for(n=m&~n;0<n;){var k=31-ht(n),Y=1<<k;b[k]=0,C[k]=-1;var O=B[k];if(O!==null)for(B[k]=null,k=0;k<O.length;k++){var q=O[k];q!==null&&(q.lane&=-536870913)}n&=~Y}a!==0&&Tn(e,a,0),u!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=u&~(m&~t))}function Tn(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-ht(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function Ot(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-ht(n),o=1<<a;o&t|e[a]&t&&(e[a]|=t),n&=~o}}function bn(e,t){var n=t&-t;return n=(n&42)!==0?1:zs(n),(n&(e.suspendedLanes|t))!==0?0:n}function zs(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Bs(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Jc(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:jm(e.type))}function Pc(e,t){var n=Q.p;try{return Q.p=e,t()}finally{Q.p=n}}var ta=Math.random().toString(36).slice(2),At="__reactFiber$"+ta,jt="__reactProps$"+ta,ii="__reactContainer$"+ta,Os="__reactEvents$"+ta,ap="__reactListeners$"+ta,ip="__reactHandles$"+ta,$c="__reactResources$"+ta,$i="__reactMarker$"+ta;function js(e){delete e[At],delete e[jt],delete e[Os],delete e[ap],delete e[ip]}function ri(e){var t=e[At];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ii]||n[At]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Sm(e);e!==null;){if(n=e[At])return n;e=Sm(e)}return t}e=n,n=e.parentNode}return null}function li(e){if(e=e[At]||e[ii]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Wi(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(l(33))}function si(e){var t=e[$c];return t||(t=e[$c]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function wt(e){e[$i]=!0}var Wc=new Set,ef={};function Ma(e,t){oi(e,t),oi(e+"Capture",t)}function oi(e,t){for(ef[e]=t,e=0;e<t.length;e++)Wc.add(t[e])}var rp=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),tf={},nf={};function lp(e){return g.call(nf,e)?!0:g.call(tf,e)?!1:rp.test(e)?nf[e]=!0:(tf[e]=!0,!1)}function rl(e,t,n){if(lp(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function ll(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Mn(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function en(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function af(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function sp(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var o=a.get,u=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(m){n=""+m,u.call(this,m)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(m){n=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function qs(e){if(!e._valueTracker){var t=af(e)?"checked":"value";e._valueTracker=sp(e,t,""+e[t])}}function rf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=af(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function sl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var op=/[\n"\\]/g;function tn(e){return e.replace(op,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ks(e,t,n,a,o,u,m,b){e.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.type=m:e.removeAttribute("type"),t!=null?m==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+en(t)):e.value!==""+en(t)&&(e.value=""+en(t)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),t!=null?Ls(e,m,en(t)):n!=null?Ls(e,m,en(n)):a!=null&&e.removeAttribute("value"),o==null&&u!=null&&(e.defaultChecked=!!u),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+en(b):e.removeAttribute("name")}function lf(e,t,n,a,o,u,m,b){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){qs(e);return}n=n!=null?""+en(n):"",t=t!=null?""+en(t):n,b||t===e.value||(e.value=t),e.defaultValue=t}a=a??o,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=b?e.checked:!!a,e.defaultChecked=!!a,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.name=m),qs(e)}function Ls(e,t,n){t==="number"&&sl(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function ui(e,t,n,a){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&a&&(e[n].defaultSelected=!0)}else{for(n=""+en(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,a&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function sf(e,t,n){if(t!=null&&(t=""+en(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+en(n):""}function of(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(l(92));if(Ae(a)){if(1<a.length)throw Error(l(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=en(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),qs(e)}function ci(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var up=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function uf(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||up.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function cf(e,t,n){if(t!=null&&typeof t!="object")throw Error(l(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var o in t)a=t[o],t.hasOwnProperty(o)&&n[o]!==a&&uf(e,o,a)}else for(var u in t)t.hasOwnProperty(u)&&uf(e,u,t[u])}function Hs(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var cp=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),fp=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function ol(e){return fp.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function zn(){}var Fs=null;function Vs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var fi=null,di=null;function ff(e){var t=li(e);if(t&&(e=t.stateNode)){var n=e[jt]||null;e:switch(e=t.stateNode,t.type){case"input":if(ks(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+tn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var o=a[jt]||null;if(!o)throw Error(l(90));ks(a,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&rf(a)}break e;case"textarea":sf(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&ui(e,!!n.multiple,t,!1)}}}var Ks=!1;function df(e,t,n){if(Ks)return e(t,n);Ks=!0;try{var a=e(t);return a}finally{if(Ks=!1,(fi!==null||di!==null)&&(Zl(),fi&&(t=fi,e=di,di=fi=null,ff(t),e)))for(t=0;t<e.length;t++)ff(e[t])}}function er(e,t){var n=e.stateNode;if(n===null)return null;var a=n[jt]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(l(231,t,typeof n));return n}var Bn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ys=!1;if(Bn)try{var tr={};Object.defineProperty(tr,"passive",{get:function(){Ys=!0}}),window.addEventListener("test",tr,tr),window.removeEventListener("test",tr,tr)}catch{Ys=!1}var na=null,Is=null,ul=null;function hf(){if(ul)return ul;var e,t=Is,n=t.length,a,o="value"in na?na.value:na.textContent,u=o.length;for(e=0;e<n&&t[e]===o[e];e++);var m=n-e;for(a=1;a<=m&&t[n-a]===o[u-a];a++);return ul=o.slice(e,1<a?1-a:void 0)}function cl(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 fl(){return!0}function mf(){return!1}function qt(e){function t(n,a,o,u,m){this._reactName=n,this._targetInst=o,this.type=a,this.nativeEvent=u,this.target=m,this.currentTarget=null;for(var b in e)e.hasOwnProperty(b)&&(n=e[b],this[b]=n?n(u):u[b]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?fl:mf,this.isPropagationStopped=mf,this}return E(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=fl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=fl)},persist:function(){},isPersistent:fl}),t}var za={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dl=qt(za),nr=E({},za,{view:0,detail:0}),dp=qt(nr),Gs,Qs,ar,hl=E({},nr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Zs,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!==ar&&(ar&&e.type==="mousemove"?(Gs=e.screenX-ar.screenX,Qs=e.screenY-ar.screenY):Qs=Gs=0,ar=e),Gs)},movementY:function(e){return"movementY"in e?e.movementY:Qs}}),gf=qt(hl),hp=E({},hl,{dataTransfer:0}),mp=qt(hp),gp=E({},nr,{relatedTarget:0}),Xs=qt(gp),pp=E({},za,{animationName:0,elapsedTime:0,pseudoElement:0}),vp=qt(pp),yp=E({},za,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bp=qt(yp),Sp=E({},za,{data:0}),pf=qt(Sp),wp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xp={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"},Ep={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ap(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Ep[e])?!!t[e]:!1}function Zs(){return Ap}var Tp=E({},nr,{key:function(e){if(e.key){var t=wp[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=cl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?xp[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Zs,charCode:function(e){return e.type==="keypress"?cl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?cl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Cp=qt(Tp),Up=E({},hl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),vf=qt(Up),_p=E({},nr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Zs}),Dp=qt(_p),Rp=E({},za,{propertyName:0,elapsedTime:0,pseudoElement:0}),Np=qt(Rp),Mp=E({},hl,{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}),zp=qt(Mp),Bp=E({},za,{newState:0,oldState:0}),Op=qt(Bp),jp=[9,13,27,32],Js=Bn&&"CompositionEvent"in window,ir=null;Bn&&"documentMode"in document&&(ir=document.documentMode);var qp=Bn&&"TextEvent"in window&&!ir,yf=Bn&&(!Js||ir&&8<ir&&11>=ir),bf=" ",Sf=!1;function wf(e,t){switch(e){case"keyup":return jp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var hi=!1;function kp(e,t){switch(e){case"compositionend":return xf(t);case"keypress":return t.which!==32?null:(Sf=!0,bf);case"textInput":return e=t.data,e===bf&&Sf?null:e;default:return null}}function Lp(e,t){if(hi)return e==="compositionend"||!Js&&wf(e,t)?(e=hf(),ul=Is=na=null,hi=!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 yf&&t.locale!=="ko"?null:t.data;default:return null}}var Hp={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ef(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Hp[e.type]:t==="textarea"}function Af(e,t,n,a){fi?di?di.push(a):di=[a]:fi=a,t=ns(t,"onChange"),0<t.length&&(n=new dl("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var rr=null,lr=null;function Fp(e){lm(e,0)}function ml(e){var t=Wi(e);if(rf(t))return e}function Tf(e,t){if(e==="change")return t}var Cf=!1;if(Bn){var Ps;if(Bn){var $s="oninput"in document;if(!$s){var Uf=document.createElement("div");Uf.setAttribute("oninput","return;"),$s=typeof Uf.oninput=="function"}Ps=$s}else Ps=!1;Cf=Ps&&(!document.documentMode||9<document.documentMode)}function _f(){rr&&(rr.detachEvent("onpropertychange",Df),lr=rr=null)}function Df(e){if(e.propertyName==="value"&&ml(lr)){var t=[];Af(t,lr,e,Vs(e)),df(Fp,t)}}function Vp(e,t,n){e==="focusin"?(_f(),rr=t,lr=n,rr.attachEvent("onpropertychange",Df)):e==="focusout"&&_f()}function Kp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ml(lr)}function Yp(e,t){if(e==="click")return ml(t)}function Ip(e,t){if(e==="input"||e==="change")return ml(t)}function Gp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Yt=typeof Object.is=="function"?Object.is:Gp;function sr(e,t){if(Yt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var o=n[a];if(!g.call(t,o)||!Yt(e[o],t[o]))return!1}return!0}function Rf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Nf(e,t){var n=Rf(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Rf(n)}}function Mf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Mf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function zf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=sl(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=sl(e.document)}return t}function Ws(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 Qp=Bn&&"documentMode"in document&&11>=document.documentMode,mi=null,eo=null,or=null,to=!1;function Bf(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;to||mi==null||mi!==sl(a)||(a=mi,"selectionStart"in a&&Ws(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),or&&sr(or,a)||(or=a,a=ns(eo,"onSelect"),0<a.length&&(t=new dl("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=mi)))}function Ba(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var gi={animationend:Ba("Animation","AnimationEnd"),animationiteration:Ba("Animation","AnimationIteration"),animationstart:Ba("Animation","AnimationStart"),transitionrun:Ba("Transition","TransitionRun"),transitionstart:Ba("Transition","TransitionStart"),transitioncancel:Ba("Transition","TransitionCancel"),transitionend:Ba("Transition","TransitionEnd")},no={},Of={};Bn&&(Of=document.createElement("div").style,"AnimationEvent"in window||(delete gi.animationend.animation,delete gi.animationiteration.animation,delete gi.animationstart.animation),"TransitionEvent"in window||delete gi.transitionend.transition);function Oa(e){if(no[e])return no[e];if(!gi[e])return e;var t=gi[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Of)return no[e]=t[n];return e}var jf=Oa("animationend"),qf=Oa("animationiteration"),kf=Oa("animationstart"),Xp=Oa("transitionrun"),Zp=Oa("transitionstart"),Jp=Oa("transitioncancel"),Lf=Oa("transitionend"),Hf=new Map,ao="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");ao.push("scrollEnd");function Sn(e,t){Hf.set(e,t),Ma(t,[e])}var gl=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},nn=[],pi=0,io=0;function pl(){for(var e=pi,t=io=pi=0;t<e;){var n=nn[t];nn[t++]=null;var a=nn[t];nn[t++]=null;var o=nn[t];nn[t++]=null;var u=nn[t];if(nn[t++]=null,a!==null&&o!==null){var m=a.pending;m===null?o.next=o:(o.next=m.next,m.next=o),a.pending=o}u!==0&&Ff(n,o,u)}}function vl(e,t,n,a){nn[pi++]=e,nn[pi++]=t,nn[pi++]=n,nn[pi++]=a,io|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function ro(e,t,n,a){return vl(e,t,n,a),yl(e)}function ja(e,t){return vl(e,null,null,t),yl(e)}function Ff(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var o=!1,u=e.return;u!==null;)u.childLanes|=n,a=u.alternate,a!==null&&(a.childLanes|=n),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(o=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,o&&t!==null&&(o=31-ht(n),e=u.hiddenUpdates,a=e[o],a===null?e[o]=[t]:a.push(t),t.lane=n|536870912),u):null}function yl(e){if(50<Rr)throw Rr=0,gu=null,Error(l(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var vi={};function Pp(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function It(e,t,n,a){return new Pp(e,t,n,a)}function lo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function On(e,t){var n=e.alternate;return n===null?(n=It(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.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,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.refCleanup=e.refCleanup,n}function Vf(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function bl(e,t,n,a,o,u){var m=0;if(a=e,typeof e=="function")lo(e)&&(m=1);else if(typeof e=="string")m=ny(e,n,fe.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Z:return e=It(31,n,t,o),e.elementType=Z,e.lanes=u,e;case D:return qa(n.children,o,u,t);case I:m=8,o|=24;break;case K:return e=It(12,n,t,o|2),e.elementType=K,e.lanes=u,e;case oe:return e=It(13,n,t,o),e.elementType=oe,e.lanes=u,e;case X:return e=It(19,n,t,o),e.elementType=X,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case J:m=10;break e;case P:m=9;break e;case $:m=11;break e;case W:m=14;break e;case L:m=16,a=null;break e}m=29,n=Error(l(130,e===null?"null":typeof e,"")),a=null}return t=It(m,n,t,o),t.elementType=e,t.type=a,t.lanes=u,t}function qa(e,t,n,a){return e=It(7,e,a,t),e.lanes=n,e}function so(e,t,n){return e=It(6,e,null,t),e.lanes=n,e}function Kf(e){var t=It(18,null,null,0);return t.stateNode=e,t}function oo(e,t,n){return t=It(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Yf=new WeakMap;function an(e,t){if(typeof e=="object"&&e!==null){var n=Yf.get(e);return n!==void 0?n:(t={value:e,source:t,stack:x(t)},Yf.set(e,t),t)}return{value:e,source:t,stack:x(t)}}var yi=[],bi=0,Sl=null,ur=0,rn=[],ln=0,aa=null,Cn=1,Un="";function jn(e,t){yi[bi++]=ur,yi[bi++]=Sl,Sl=e,ur=t}function If(e,t,n){rn[ln++]=Cn,rn[ln++]=Un,rn[ln++]=aa,aa=e;var a=Cn;e=Un;var o=32-ht(a)-1;a&=~(1<<o),n+=1;var u=32-ht(t)+o;if(30<u){var m=o-o%5;u=(a&(1<<m)-1).toString(32),a>>=m,o-=m,Cn=1<<32-ht(t)+o|n<<o|a,Un=u+e}else Cn=1<<u|n<<o|a,Un=e}function uo(e){e.return!==null&&(jn(e,1),If(e,1,0))}function co(e){for(;e===Sl;)Sl=yi[--bi],yi[bi]=null,ur=yi[--bi],yi[bi]=null;for(;e===aa;)aa=rn[--ln],rn[ln]=null,Un=rn[--ln],rn[ln]=null,Cn=rn[--ln],rn[ln]=null}function Gf(e,t){rn[ln++]=Cn,rn[ln++]=Un,rn[ln++]=aa,Cn=t.id,Un=t.overflow,aa=e}var Tt=null,We=null,Oe=!1,ia=null,sn=!1,fo=Error(l(519));function ra(e){var t=Error(l(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw cr(an(t,e)),fo}function Qf(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[At]=e,t[jt]=a,n){case"dialog":Me("cancel",t),Me("close",t);break;case"iframe":case"object":case"embed":Me("load",t);break;case"video":case"audio":for(n=0;n<Mr.length;n++)Me(Mr[n],t);break;case"source":Me("error",t);break;case"img":case"image":case"link":Me("error",t),Me("load",t);break;case"details":Me("toggle",t);break;case"input":Me("invalid",t),lf(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":Me("invalid",t);break;case"textarea":Me("invalid",t),of(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||cm(t.textContent,n)?(a.popover!=null&&(Me("beforetoggle",t),Me("toggle",t)),a.onScroll!=null&&Me("scroll",t),a.onScrollEnd!=null&&Me("scrollend",t),a.onClick!=null&&(t.onclick=zn),t=!0):t=!1,t||ra(e,!0)}function Xf(e){for(Tt=e.return;Tt;)switch(Tt.tag){case 5:case 31:case 13:sn=!1;return;case 27:case 3:sn=!0;return;default:Tt=Tt.return}}function Si(e){if(e!==Tt)return!1;if(!Oe)return Xf(e),Oe=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Ru(e.type,e.memoizedProps)),n=!n),n&&We&&ra(e),Xf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));We=bm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));We=bm(e)}else t===27?(t=We,ba(e.type)?(e=Ou,Ou=null,We=e):We=t):We=Tt?un(e.stateNode.nextSibling):null;return!0}function ka(){We=Tt=null,Oe=!1}function ho(){var e=ia;return e!==null&&(Ft===null?Ft=e:Ft.push.apply(Ft,e),ia=null),e}function cr(e){ia===null?ia=[e]:ia.push(e)}var mo=Se(null),La=null,qn=null;function la(e,t,n){te(mo,t._currentValue),t._currentValue=n}function kn(e){e._currentValue=mo.current,le(mo)}function go(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function po(e,t,n,a){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var u=o.dependencies;if(u!==null){var m=o.child;u=u.firstContext;e:for(;u!==null;){var b=u;u=o;for(var C=0;C<t.length;C++)if(b.context===t[C]){u.lanes|=n,b=u.alternate,b!==null&&(b.lanes|=n),go(u.return,n,e),a||(m=null);break e}u=b.next}}else if(o.tag===18){if(m=o.return,m===null)throw Error(l(341));m.lanes|=n,u=m.alternate,u!==null&&(u.lanes|=n),go(m,n,e),m=null}else m=o.child;if(m!==null)m.return=o;else for(m=o;m!==null;){if(m===e){m=null;break}if(o=m.sibling,o!==null){o.return=m.return,m=o;break}m=m.return}o=m}}function wi(e,t,n,a){e=null;for(var o=t,u=!1;o!==null;){if(!u){if((o.flags&524288)!==0)u=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var m=o.alternate;if(m===null)throw Error(l(387));if(m=m.memoizedProps,m!==null){var b=o.type;Yt(o.pendingProps.value,m.value)||(e!==null?e.push(b):e=[b])}}else if(o===pe.current){if(m=o.alternate,m===null)throw Error(l(387));m.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(qr):e=[qr])}o=o.return}e!==null&&po(t,e,n,a),t.flags|=262144}function wl(e){for(e=e.firstContext;e!==null;){if(!Yt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ha(e){La=e,qn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ct(e){return Zf(La,e)}function xl(e,t){return La===null&&Ha(e),Zf(e,t)}function Zf(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},qn===null){if(e===null)throw Error(l(308));qn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else qn=qn.next=t;return n}var $p=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},Wp=i.unstable_scheduleCallback,ev=i.unstable_NormalPriority,mt={$$typeof:J,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function vo(){return{controller:new $p,data:new Map,refCount:0}}function fr(e){e.refCount--,e.refCount===0&&Wp(ev,function(){e.controller.abort()})}var dr=null,yo=0,xi=0,Ei=null;function tv(e,t){if(dr===null){var n=dr=[];yo=0,xi=wu(),Ei={status:"pending",value:void 0,then:function(a){n.push(a)}}}return yo++,t.then(Jf,Jf),t}function Jf(){if(--yo===0&&dr!==null){Ei!==null&&(Ei.status="fulfilled");var e=dr;dr=null,xi=0,Ei=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function nv(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(o){n.push(o)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var o=0;o<n.length;o++)(0,n[o])(t)},function(o){for(a.status="rejected",a.reason=o,o=0;o<n.length;o++)(0,n[o])(void 0)}),a}var Pf=j.S;j.S=function(e,t){Bh=V(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&tv(e,t),Pf!==null&&Pf(e,t)};var Fa=Se(null);function bo(){var e=Fa.current;return e!==null?e:Ze.pooledCache}function El(e,t){t===null?te(Fa,Fa.current):te(Fa,t.pool)}function $f(){var e=bo();return e===null?null:{parent:mt._currentValue,pool:e}}var Ai=Error(l(460)),So=Error(l(474)),Al=Error(l(542)),Tl={then:function(){}};function Wf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function ed(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(zn,zn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,nd(e),e;default:if(typeof t.status=="string")t.then(zn,zn);else{if(e=Ze,e!==null&&100<e.shellSuspendCounter)throw Error(l(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=a}},function(a){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,nd(e),e}throw Ka=t,Ai}}function Va(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Ka=n,Ai):n}}var Ka=null;function td(){if(Ka===null)throw Error(l(459));var e=Ka;return Ka=null,e}function nd(e){if(e===Ai||e===Al)throw Error(l(483))}var Ti=null,hr=0;function Cl(e){var t=hr;return hr+=1,Ti===null&&(Ti=[]),ed(Ti,e,t)}function mr(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ul(e,t){throw t.$$typeof===U?Error(l(525)):(e=Object.prototype.toString.call(t),Error(l(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function ad(e){function t(R,_){if(e){var z=R.deletions;z===null?(R.deletions=[_],R.flags|=16):z.push(_)}}function n(R,_){if(!e)return null;for(;_!==null;)t(R,_),_=_.sibling;return null}function a(R){for(var _=new Map;R!==null;)R.key!==null?_.set(R.key,R):_.set(R.index,R),R=R.sibling;return _}function o(R,_){return R=On(R,_),R.index=0,R.sibling=null,R}function u(R,_,z){return R.index=z,e?(z=R.alternate,z!==null?(z=z.index,z<_?(R.flags|=67108866,_):z):(R.flags|=67108866,_)):(R.flags|=1048576,_)}function m(R){return e&&R.alternate===null&&(R.flags|=67108866),R}function b(R,_,z,H){return _===null||_.tag!==6?(_=so(z,R.mode,H),_.return=R,_):(_=o(_,z),_.return=R,_)}function C(R,_,z,H){var ye=z.type;return ye===D?k(R,_,z.props.children,H,z.key):_!==null&&(_.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===L&&Va(ye)===_.type)?(_=o(_,z.props),mr(_,z),_.return=R,_):(_=bl(z.type,z.key,z.props,null,R.mode,H),mr(_,z),_.return=R,_)}function B(R,_,z,H){return _===null||_.tag!==4||_.stateNode.containerInfo!==z.containerInfo||_.stateNode.implementation!==z.implementation?(_=oo(z,R.mode,H),_.return=R,_):(_=o(_,z.children||[]),_.return=R,_)}function k(R,_,z,H,ye){return _===null||_.tag!==7?(_=qa(z,R.mode,H,ye),_.return=R,_):(_=o(_,z),_.return=R,_)}function Y(R,_,z){if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return _=so(""+_,R.mode,z),_.return=R,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case S:return z=bl(_.type,_.key,_.props,null,R.mode,z),mr(z,_),z.return=R,z;case N:return _=oo(_,R.mode,z),_.return=R,_;case L:return _=Va(_),Y(R,_,z)}if(Ae(_)||ee(_))return _=qa(_,R.mode,z,null),_.return=R,_;if(typeof _.then=="function")return Y(R,Cl(_),z);if(_.$$typeof===J)return Y(R,xl(R,_),z);Ul(R,_)}return null}function O(R,_,z,H){var ye=_!==null?_.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return ye!==null?null:b(R,_,""+z,H);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case S:return z.key===ye?C(R,_,z,H):null;case N:return z.key===ye?B(R,_,z,H):null;case L:return z=Va(z),O(R,_,z,H)}if(Ae(z)||ee(z))return ye!==null?null:k(R,_,z,H,null);if(typeof z.then=="function")return O(R,_,Cl(z),H);if(z.$$typeof===J)return O(R,_,xl(R,z),H);Ul(R,z)}return null}function q(R,_,z,H,ye){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return R=R.get(z)||null,b(_,R,""+H,ye);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case S:return R=R.get(H.key===null?z:H.key)||null,C(_,R,H,ye);case N:return R=R.get(H.key===null?z:H.key)||null,B(_,R,H,ye);case L:return H=Va(H),q(R,_,z,H,ye)}if(Ae(H)||ee(H))return R=R.get(z)||null,k(_,R,H,ye,null);if(typeof H.then=="function")return q(R,_,z,Cl(H),ye);if(H.$$typeof===J)return q(R,_,z,xl(_,H),ye);Ul(_,H)}return null}function de(R,_,z,H){for(var ye=null,qe=null,ve=_,Ue=_=0,Be=null;ve!==null&&Ue<z.length;Ue++){ve.index>Ue?(Be=ve,ve=null):Be=ve.sibling;var ke=O(R,ve,z[Ue],H);if(ke===null){ve===null&&(ve=Be);break}e&&ve&&ke.alternate===null&&t(R,ve),_=u(ke,_,Ue),qe===null?ye=ke:qe.sibling=ke,qe=ke,ve=Be}if(Ue===z.length)return n(R,ve),Oe&&jn(R,Ue),ye;if(ve===null){for(;Ue<z.length;Ue++)ve=Y(R,z[Ue],H),ve!==null&&(_=u(ve,_,Ue),qe===null?ye=ve:qe.sibling=ve,qe=ve);return Oe&&jn(R,Ue),ye}for(ve=a(ve);Ue<z.length;Ue++)Be=q(ve,R,Ue,z[Ue],H),Be!==null&&(e&&Be.alternate!==null&&ve.delete(Be.key===null?Ue:Be.key),_=u(Be,_,Ue),qe===null?ye=Be:qe.sibling=Be,qe=Be);return e&&ve.forEach(function(Aa){return t(R,Aa)}),Oe&&jn(R,Ue),ye}function we(R,_,z,H){if(z==null)throw Error(l(151));for(var ye=null,qe=null,ve=_,Ue=_=0,Be=null,ke=z.next();ve!==null&&!ke.done;Ue++,ke=z.next()){ve.index>Ue?(Be=ve,ve=null):Be=ve.sibling;var Aa=O(R,ve,ke.value,H);if(Aa===null){ve===null&&(ve=Be);break}e&&ve&&Aa.alternate===null&&t(R,ve),_=u(Aa,_,Ue),qe===null?ye=Aa:qe.sibling=Aa,qe=Aa,ve=Be}if(ke.done)return n(R,ve),Oe&&jn(R,Ue),ye;if(ve===null){for(;!ke.done;Ue++,ke=z.next())ke=Y(R,ke.value,H),ke!==null&&(_=u(ke,_,Ue),qe===null?ye=ke:qe.sibling=ke,qe=ke);return Oe&&jn(R,Ue),ye}for(ve=a(ve);!ke.done;Ue++,ke=z.next())ke=q(ve,R,Ue,ke.value,H),ke!==null&&(e&&ke.alternate!==null&&ve.delete(ke.key===null?Ue:ke.key),_=u(ke,_,Ue),qe===null?ye=ke:qe.sibling=ke,qe=ke);return e&&ve.forEach(function(hy){return t(R,hy)}),Oe&&jn(R,Ue),ye}function Qe(R,_,z,H){if(typeof z=="object"&&z!==null&&z.type===D&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case S:e:{for(var ye=z.key;_!==null;){if(_.key===ye){if(ye=z.type,ye===D){if(_.tag===7){n(R,_.sibling),H=o(_,z.props.children),H.return=R,R=H;break e}}else if(_.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===L&&Va(ye)===_.type){n(R,_.sibling),H=o(_,z.props),mr(H,z),H.return=R,R=H;break e}n(R,_);break}else t(R,_);_=_.sibling}z.type===D?(H=qa(z.props.children,R.mode,H,z.key),H.return=R,R=H):(H=bl(z.type,z.key,z.props,null,R.mode,H),mr(H,z),H.return=R,R=H)}return m(R);case N:e:{for(ye=z.key;_!==null;){if(_.key===ye)if(_.tag===4&&_.stateNode.containerInfo===z.containerInfo&&_.stateNode.implementation===z.implementation){n(R,_.sibling),H=o(_,z.children||[]),H.return=R,R=H;break e}else{n(R,_);break}else t(R,_);_=_.sibling}H=oo(z,R.mode,H),H.return=R,R=H}return m(R);case L:return z=Va(z),Qe(R,_,z,H)}if(Ae(z))return de(R,_,z,H);if(ee(z)){if(ye=ee(z),typeof ye!="function")throw Error(l(150));return z=ye.call(z),we(R,_,z,H)}if(typeof z.then=="function")return Qe(R,_,Cl(z),H);if(z.$$typeof===J)return Qe(R,_,xl(R,z),H);Ul(R,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,_!==null&&_.tag===6?(n(R,_.sibling),H=o(_,z),H.return=R,R=H):(n(R,_),H=so(z,R.mode,H),H.return=R,R=H),m(R)):n(R,_)}return function(R,_,z,H){try{hr=0;var ye=Qe(R,_,z,H);return Ti=null,ye}catch(ve){if(ve===Ai||ve===Al)throw ve;var qe=It(29,ve,null,R.mode);return qe.lanes=H,qe.return=R,qe}finally{}}}var Ya=ad(!0),id=ad(!1),sa=!1;function wo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function xo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function oa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ua(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Le&2)!==0){var o=a.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),a.pending=t,t=yl(e),Ff(e,null,n),t}return vl(e,a,t,n),yl(e)}function gr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Ot(e,n)}}function Eo(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var o=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var m={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?o=u=m:u=u.next=m,n=n.next}while(n!==null);u===null?o=u=t:u=u.next=t}else o=u=t;n={baseState:a.baseState,firstBaseUpdate:o,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ao=!1;function pr(){if(Ao){var e=Ei;if(e!==null)throw e}}function vr(e,t,n,a){Ao=!1;var o=e.updateQueue;sa=!1;var u=o.firstBaseUpdate,m=o.lastBaseUpdate,b=o.shared.pending;if(b!==null){o.shared.pending=null;var C=b,B=C.next;C.next=null,m===null?u=B:m.next=B,m=C;var k=e.alternate;k!==null&&(k=k.updateQueue,b=k.lastBaseUpdate,b!==m&&(b===null?k.firstBaseUpdate=B:b.next=B,k.lastBaseUpdate=C))}if(u!==null){var Y=o.baseState;m=0,k=B=C=null,b=u;do{var O=b.lane&-536870913,q=O!==b.lane;if(q?(ze&O)===O:(a&O)===O){O!==0&&O===xi&&(Ao=!0),k!==null&&(k=k.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var de=e,we=b;O=t;var Qe=n;switch(we.tag){case 1:if(de=we.payload,typeof de=="function"){Y=de.call(Qe,Y,O);break e}Y=de;break e;case 3:de.flags=de.flags&-65537|128;case 0:if(de=we.payload,O=typeof de=="function"?de.call(Qe,Y,O):de,O==null)break e;Y=E({},Y,O);break e;case 2:sa=!0}}O=b.callback,O!==null&&(e.flags|=64,q&&(e.flags|=8192),q=o.callbacks,q===null?o.callbacks=[O]:q.push(O))}else q={lane:O,tag:b.tag,payload:b.payload,callback:b.callback,next:null},k===null?(B=k=q,C=Y):k=k.next=q,m|=O;if(b=b.next,b===null){if(b=o.shared.pending,b===null)break;q=b,b=q.next,q.next=null,o.lastBaseUpdate=q,o.shared.pending=null}}while(!0);k===null&&(C=Y),o.baseState=C,o.firstBaseUpdate=B,o.lastBaseUpdate=k,u===null&&(o.shared.lanes=0),ma|=m,e.lanes=m,e.memoizedState=Y}}function rd(e,t){if(typeof e!="function")throw Error(l(191,e));e.call(t)}function ld(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)rd(n[e],t)}var Ci=Se(null),_l=Se(0);function sd(e,t){e=Qn,te(_l,e),te(Ci,t),Qn=e|t.baseLanes}function To(){te(_l,Qn),te(Ci,Ci.current)}function Co(){Qn=_l.current,le(Ci),le(_l)}var Gt=Se(null),on=null;function ca(e){var t=e.alternate;te(ct,ct.current&1),te(Gt,e),on===null&&(t===null||Ci.current!==null||t.memoizedState!==null)&&(on=e)}function Uo(e){te(ct,ct.current),te(Gt,e),on===null&&(on=e)}function od(e){e.tag===22?(te(ct,ct.current),te(Gt,e),on===null&&(on=e)):fa()}function fa(){te(ct,ct.current),te(Gt,Gt.current)}function Qt(e){le(Gt),on===e&&(on=null),le(ct)}var ct=Se(0);function Dl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||zu(n)||Bu(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ln=0,Ce=null,Ie=null,gt=null,Rl=!1,Ui=!1,Ia=!1,Nl=0,yr=0,_i=null,av=0;function lt(){throw Error(l(321))}function _o(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Yt(e[n],t[n]))return!1;return!0}function Do(e,t,n,a,o,u){return Ln=u,Ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,j.H=e===null||e.memoizedState===null?Id:Yo,Ia=!1,u=n(a,o),Ia=!1,Ui&&(u=cd(t,n,a,o)),ud(e),u}function ud(e){j.H=wr;var t=Ie!==null&&Ie.next!==null;if(Ln=0,gt=Ie=Ce=null,Rl=!1,yr=0,_i=null,t)throw Error(l(300));e===null||pt||(e=e.dependencies,e!==null&&wl(e)&&(pt=!0))}function cd(e,t,n,a){Ce=e;var o=0;do{if(Ui&&(_i=null),yr=0,Ui=!1,25<=o)throw Error(l(301));if(o+=1,gt=Ie=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}j.H=Gd,u=t(n,a)}while(Ui);return u}function iv(){var e=j.H,t=e.useState()[0];return t=typeof t.then=="function"?br(t):t,e=e.useState()[0],(Ie!==null?Ie.memoizedState:null)!==e&&(Ce.flags|=1024),t}function Ro(){var e=Nl!==0;return Nl=0,e}function No(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Mo(e){if(Rl){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Rl=!1}Ln=0,gt=Ie=Ce=null,Ui=!1,yr=Nl=0,_i=null}function Nt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return gt===null?Ce.memoizedState=gt=e:gt=gt.next=e,gt}function ft(){if(Ie===null){var e=Ce.alternate;e=e!==null?e.memoizedState:null}else e=Ie.next;var t=gt===null?Ce.memoizedState:gt.next;if(t!==null)gt=t,Ie=e;else{if(e===null)throw Ce.alternate===null?Error(l(467)):Error(l(310));Ie=e,e={memoizedState:Ie.memoizedState,baseState:Ie.baseState,baseQueue:Ie.baseQueue,queue:Ie.queue,next:null},gt===null?Ce.memoizedState=gt=e:gt=gt.next=e}return gt}function Ml(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function br(e){var t=yr;return yr+=1,_i===null&&(_i=[]),e=ed(_i,e,t),t=Ce,(gt===null?t.memoizedState:gt.next)===null&&(t=t.alternate,j.H=t===null||t.memoizedState===null?Id:Yo),e}function zl(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return br(e);if(e.$$typeof===J)return Ct(e)}throw Error(l(438,String(e)))}function zo(e){var t=null,n=Ce.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=Ce.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Ml(),Ce.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=ce;return t.index++,n}function Hn(e,t){return typeof t=="function"?t(e):t}function Bl(e){var t=ft();return Bo(t,Ie,e)}function Bo(e,t,n){var a=e.queue;if(a===null)throw Error(l(311));a.lastRenderedReducer=n;var o=e.baseQueue,u=a.pending;if(u!==null){if(o!==null){var m=o.next;o.next=u.next,u.next=m}t.baseQueue=o=u,a.pending=null}if(u=e.baseState,o===null)e.memoizedState=u;else{t=o.next;var b=m=null,C=null,B=t,k=!1;do{var Y=B.lane&-536870913;if(Y!==B.lane?(ze&Y)===Y:(Ln&Y)===Y){var O=B.revertLane;if(O===0)C!==null&&(C=C.next={lane:0,revertLane:0,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null}),Y===xi&&(k=!0);else if((Ln&O)===O){B=B.next,O===xi&&(k=!0);continue}else Y={lane:0,revertLane:B.revertLane,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},C===null?(b=C=Y,m=u):C=C.next=Y,Ce.lanes|=O,ma|=O;Y=B.action,Ia&&n(u,Y),u=B.hasEagerState?B.eagerState:n(u,Y)}else O={lane:Y,revertLane:B.revertLane,gesture:B.gesture,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},C===null?(b=C=O,m=u):C=C.next=O,Ce.lanes|=Y,ma|=Y;B=B.next}while(B!==null&&B!==t);if(C===null?m=u:C.next=b,!Yt(u,e.memoizedState)&&(pt=!0,k&&(n=Ei,n!==null)))throw n;e.memoizedState=u,e.baseState=m,e.baseQueue=C,a.lastRenderedState=u}return o===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Oo(e){var t=ft(),n=t.queue;if(n===null)throw Error(l(311));n.lastRenderedReducer=e;var a=n.dispatch,o=n.pending,u=t.memoizedState;if(o!==null){n.pending=null;var m=o=o.next;do u=e(u,m.action),m=m.next;while(m!==o);Yt(u,t.memoizedState)||(pt=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,a]}function fd(e,t,n){var a=Ce,o=ft(),u=Oe;if(u){if(n===void 0)throw Error(l(407));n=n()}else n=t();var m=!Yt((Ie||o).memoizedState,n);if(m&&(o.memoizedState=n,pt=!0),o=o.queue,ko(md.bind(null,a,o,e),[e]),o.getSnapshot!==t||m||gt!==null&>.memoizedState.tag&1){if(a.flags|=2048,Di(9,{destroy:void 0},hd.bind(null,a,o,n,t),null),Ze===null)throw Error(l(349));u||(Ln&127)!==0||dd(a,t,n)}return n}function dd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ce.updateQueue,t===null?(t=Ml(),Ce.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function hd(e,t,n,a){t.value=n,t.getSnapshot=a,gd(t)&&pd(e)}function md(e,t,n){return n(function(){gd(t)&&pd(e)})}function gd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Yt(e,n)}catch{return!0}}function pd(e){var t=ja(e,2);t!==null&&Vt(t,e,2)}function jo(e){var t=Nt();if(typeof e=="function"){var n=e;if(e=n(),Ia){yn(!0);try{n()}finally{yn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hn,lastRenderedState:e},t}function vd(e,t,n,a){return e.baseState=n,Bo(e,Ie,typeof a=="function"?a:Hn)}function rv(e,t,n,a,o){if(ql(e))throw Error(l(485));if(e=t.action,e!==null){var u={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){u.listeners.push(m)}};j.T!==null?n(!0):u.isTransition=!1,a(u),n=t.pending,n===null?(u.next=t.pending=u,yd(t,u)):(u.next=n.next,t.pending=n.next=u)}}function yd(e,t){var n=t.action,a=t.payload,o=e.state;if(t.isTransition){var u=j.T,m={};j.T=m;try{var b=n(o,a),C=j.S;C!==null&&C(m,b),bd(e,t,b)}catch(B){qo(e,t,B)}finally{u!==null&&m.types!==null&&(u.types=m.types),j.T=u}}else try{u=n(o,a),bd(e,t,u)}catch(B){qo(e,t,B)}}function bd(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){Sd(e,t,a)},function(a){return qo(e,t,a)}):Sd(e,t,n)}function Sd(e,t,n){t.status="fulfilled",t.value=n,wd(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,yd(e,n)))}function qo(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,wd(t),t=t.next;while(t!==a)}e.action=null}function wd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function xd(e,t){return t}function Ed(e,t){if(Oe){var n=Ze.formState;if(n!==null){e:{var a=Ce;if(Oe){if(We){t:{for(var o=We,u=sn;o.nodeType!==8;){if(!u){o=null;break t}if(o=un(o.nextSibling),o===null){o=null;break t}}u=o.data,o=u==="F!"||u==="F"?o:null}if(o){We=un(o.nextSibling),a=o.data==="F!";break e}}ra(a)}a=!1}a&&(t=n[0])}}return n=Nt(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xd,lastRenderedState:t},n.queue=a,n=Vd.bind(null,Ce,a),a.dispatch=n,a=jo(!1),u=Ko.bind(null,Ce,!1,a.queue),a=Nt(),o={state:t,dispatch:null,action:e,pending:null},a.queue=o,n=rv.bind(null,Ce,o,u,n),o.dispatch=n,a.memoizedState=e,[t,n,!1]}function Ad(e){var t=ft();return Td(t,Ie,e)}function Td(e,t,n){if(t=Bo(e,t,xd)[0],e=Bl(Hn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=br(t)}catch(m){throw m===Ai?Al:m}else a=t;t=ft();var o=t.queue,u=o.dispatch;return n!==t.memoizedState&&(Ce.flags|=2048,Di(9,{destroy:void 0},lv.bind(null,o,n),null)),[a,u,e]}function lv(e,t){e.action=t}function Cd(e){var t=ft(),n=Ie;if(n!==null)return Td(t,n,e);ft(),t=t.memoizedState,n=ft();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function Di(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=Ce.updateQueue,t===null&&(t=Ml(),Ce.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function Ud(){return ft().memoizedState}function Ol(e,t,n,a){var o=Nt();Ce.flags|=e,o.memoizedState=Di(1|t,{destroy:void 0},n,a===void 0?null:a)}function jl(e,t,n,a){var o=ft();a=a===void 0?null:a;var u=o.memoizedState.inst;Ie!==null&&a!==null&&_o(a,Ie.memoizedState.deps)?o.memoizedState=Di(t,u,n,a):(Ce.flags|=e,o.memoizedState=Di(1|t,u,n,a))}function _d(e,t){Ol(8390656,8,e,t)}function ko(e,t){jl(2048,8,e,t)}function sv(e){Ce.flags|=4;var t=Ce.updateQueue;if(t===null)t=Ml(),Ce.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Dd(e){var t=ft().memoizedState;return sv({ref:t,nextImpl:e}),function(){if((Le&2)!==0)throw Error(l(440));return t.impl.apply(void 0,arguments)}}function Rd(e,t){return jl(4,2,e,t)}function Nd(e,t){return jl(4,4,e,t)}function Md(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function zd(e,t,n){n=n!=null?n.concat([e]):null,jl(4,4,Md.bind(null,t,e),n)}function Lo(){}function Bd(e,t){var n=ft();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&_o(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function Od(e,t){var n=ft();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&_o(t,a[1]))return a[0];if(a=e(),Ia){yn(!0);try{e()}finally{yn(!1)}}return n.memoizedState=[a,t],a}function Ho(e,t,n){return n===void 0||(Ln&1073741824)!==0&&(ze&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=jh(),Ce.lanes|=e,ma|=e,n)}function jd(e,t,n,a){return Yt(n,t)?n:Ci.current!==null?(e=Ho(e,n,a),Yt(e,t)||(pt=!0),e):(Ln&42)===0||(Ln&1073741824)!==0&&(ze&261930)===0?(pt=!0,e.memoizedState=n):(e=jh(),Ce.lanes|=e,ma|=e,t)}function qd(e,t,n,a,o){var u=Q.p;Q.p=u!==0&&8>u?u:8;var m=j.T,b={};j.T=b,Ko(e,!1,t,n);try{var C=o(),B=j.S;if(B!==null&&B(b,C),C!==null&&typeof C=="object"&&typeof C.then=="function"){var k=nv(C,a);Sr(e,t,k,Jt(e))}else Sr(e,t,a,Jt(e))}catch(Y){Sr(e,t,{then:function(){},status:"rejected",reason:Y},Jt())}finally{Q.p=u,m!==null&&b.types!==null&&(m.types=b.types),j.T=m}}function ov(){}function Fo(e,t,n,a){if(e.tag!==5)throw Error(l(476));var o=kd(e).queue;qd(e,o,t,G,n===null?ov:function(){return Ld(e),n(a)})}function kd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:G,baseState:G,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hn,lastRenderedState:G},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ld(e){var t=kd(e);t.next===null&&(t=e.alternate.memoizedState),Sr(e,t.next.queue,{},Jt())}function Vo(){return Ct(qr)}function Hd(){return ft().memoizedState}function Fd(){return ft().memoizedState}function uv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Jt();e=oa(n);var a=ua(t,e,n);a!==null&&(Vt(a,t,n),gr(a,t,n)),t={cache:vo()},e.payload=t;return}t=t.return}}function cv(e,t,n){var a=Jt();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ql(e)?Kd(t,n):(n=ro(e,t,n,a),n!==null&&(Vt(n,e,a),Yd(n,t,a)))}function Vd(e,t,n){var a=Jt();Sr(e,t,n,a)}function Sr(e,t,n,a){var o={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(ql(e))Kd(t,o);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var m=t.lastRenderedState,b=u(m,n);if(o.hasEagerState=!0,o.eagerState=b,Yt(b,m))return vl(e,t,o,0),Ze===null&&pl(),!1}catch{}finally{}if(n=ro(e,t,o,a),n!==null)return Vt(n,e,a),Yd(n,t,a),!0}return!1}function Ko(e,t,n,a){if(a={lane:2,revertLane:wu(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ql(e)){if(t)throw Error(l(479))}else t=ro(e,n,a,2),t!==null&&Vt(t,e,2)}function ql(e){var t=e.alternate;return e===Ce||t!==null&&t===Ce}function Kd(e,t){Ui=Rl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Yd(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Ot(e,n)}}var wr={readContext:Ct,use:zl,useCallback:lt,useContext:lt,useEffect:lt,useImperativeHandle:lt,useLayoutEffect:lt,useInsertionEffect:lt,useMemo:lt,useReducer:lt,useRef:lt,useState:lt,useDebugValue:lt,useDeferredValue:lt,useTransition:lt,useSyncExternalStore:lt,useId:lt,useHostTransitionStatus:lt,useFormState:lt,useActionState:lt,useOptimistic:lt,useMemoCache:lt,useCacheRefresh:lt};wr.useEffectEvent=lt;var Id={readContext:Ct,use:zl,useCallback:function(e,t){return Nt().memoizedState=[e,t===void 0?null:t],e},useContext:Ct,useEffect:_d,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Ol(4194308,4,Md.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ol(4194308,4,e,t)},useInsertionEffect:function(e,t){Ol(4,2,e,t)},useMemo:function(e,t){var n=Nt();t=t===void 0?null:t;var a=e();if(Ia){yn(!0);try{e()}finally{yn(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=Nt();if(n!==void 0){var o=n(t);if(Ia){yn(!0);try{n(t)}finally{yn(!1)}}}else o=t;return a.memoizedState=a.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},a.queue=e,e=e.dispatch=cv.bind(null,Ce,e),[a.memoizedState,e]},useRef:function(e){var t=Nt();return e={current:e},t.memoizedState=e},useState:function(e){e=jo(e);var t=e.queue,n=Vd.bind(null,Ce,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Lo,useDeferredValue:function(e,t){var n=Nt();return Ho(n,e,t)},useTransition:function(){var e=jo(!1);return e=qd.bind(null,Ce,e.queue,!0,!1),Nt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=Ce,o=Nt();if(Oe){if(n===void 0)throw Error(l(407));n=n()}else{if(n=t(),Ze===null)throw Error(l(349));(ze&127)!==0||dd(a,t,n)}o.memoizedState=n;var u={value:n,getSnapshot:t};return o.queue=u,_d(md.bind(null,a,u,e),[e]),a.flags|=2048,Di(9,{destroy:void 0},hd.bind(null,a,u,n,t),null),n},useId:function(){var e=Nt(),t=Ze.identifierPrefix;if(Oe){var n=Un,a=Cn;n=(a&~(1<<32-ht(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Nl++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=av++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Vo,useFormState:Ed,useActionState:Ed,useOptimistic:function(e){var t=Nt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ko.bind(null,Ce,!0,n),n.dispatch=t,[e,t]},useMemoCache:zo,useCacheRefresh:function(){return Nt().memoizedState=uv.bind(null,Ce)},useEffectEvent:function(e){var t=Nt(),n={impl:e};return t.memoizedState=n,function(){if((Le&2)!==0)throw Error(l(440));return n.impl.apply(void 0,arguments)}}},Yo={readContext:Ct,use:zl,useCallback:Bd,useContext:Ct,useEffect:ko,useImperativeHandle:zd,useInsertionEffect:Rd,useLayoutEffect:Nd,useMemo:Od,useReducer:Bl,useRef:Ud,useState:function(){return Bl(Hn)},useDebugValue:Lo,useDeferredValue:function(e,t){var n=ft();return jd(n,Ie.memoizedState,e,t)},useTransition:function(){var e=Bl(Hn)[0],t=ft().memoizedState;return[typeof e=="boolean"?e:br(e),t]},useSyncExternalStore:fd,useId:Hd,useHostTransitionStatus:Vo,useFormState:Ad,useActionState:Ad,useOptimistic:function(e,t){var n=ft();return vd(n,Ie,e,t)},useMemoCache:zo,useCacheRefresh:Fd};Yo.useEffectEvent=Dd;var Gd={readContext:Ct,use:zl,useCallback:Bd,useContext:Ct,useEffect:ko,useImperativeHandle:zd,useInsertionEffect:Rd,useLayoutEffect:Nd,useMemo:Od,useReducer:Oo,useRef:Ud,useState:function(){return Oo(Hn)},useDebugValue:Lo,useDeferredValue:function(e,t){var n=ft();return Ie===null?Ho(n,e,t):jd(n,Ie.memoizedState,e,t)},useTransition:function(){var e=Oo(Hn)[0],t=ft().memoizedState;return[typeof e=="boolean"?e:br(e),t]},useSyncExternalStore:fd,useId:Hd,useHostTransitionStatus:Vo,useFormState:Cd,useActionState:Cd,useOptimistic:function(e,t){var n=ft();return Ie!==null?vd(n,Ie,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:zo,useCacheRefresh:Fd};Gd.useEffectEvent=Dd;function Io(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:E({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Go={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Jt(),o=oa(a);o.payload=t,n!=null&&(o.callback=n),t=ua(e,o,a),t!==null&&(Vt(t,e,a),gr(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Jt(),o=oa(a);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=ua(e,o,a),t!==null&&(Vt(t,e,a),gr(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Jt(),a=oa(n);a.tag=2,t!=null&&(a.callback=t),t=ua(e,a,n),t!==null&&(Vt(t,e,n),gr(t,e,n))}};function Qd(e,t,n,a,o,u,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,m):t.prototype&&t.prototype.isPureReactComponent?!sr(n,a)||!sr(o,u):!0}function Xd(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&Go.enqueueReplaceState(t,t.state,null)}function Ga(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=E({},n));for(var o in e)n[o]===void 0&&(n[o]=e[o])}return n}function Zd(e){gl(e)}function Jd(e){console.error(e)}function Pd(e){gl(e)}function kl(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function $d(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Qo(e,t,n){return n=oa(n),n.tag=3,n.payload={element:null},n.callback=function(){kl(e,t)},n}function Wd(e){return e=oa(e),e.tag=3,e}function eh(e,t,n,a){var o=n.type.getDerivedStateFromError;if(typeof o=="function"){var u=a.value;e.payload=function(){return o(u)},e.callback=function(){$d(t,n,a)}}var m=n.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){$d(t,n,a),typeof o!="function"&&(ga===null?ga=new Set([this]):ga.add(this));var b=a.stack;this.componentDidCatch(a.value,{componentStack:b!==null?b:""})})}function fv(e,t,n,a,o){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&wi(t,n,o,!0),n=Gt.current,n!==null){switch(n.tag){case 31:case 13:return on===null?Jl():n.alternate===null&&st===0&&(st=3),n.flags&=-257,n.flags|=65536,n.lanes=o,a===Tl?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),yu(e,a,o)),!1;case 22:return n.flags|=65536,a===Tl?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),yu(e,a,o)),!1}throw Error(l(435,n.tag))}return yu(e,a,o),Jl(),!1}if(Oe)return t=Gt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,a!==fo&&(e=Error(l(422),{cause:a}),cr(an(e,n)))):(a!==fo&&(t=Error(l(423),{cause:a}),cr(an(t,n))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,a=an(a,n),o=Qo(e.stateNode,a,o),Eo(e,o),st!==4&&(st=2)),!1;var u=Error(l(520),{cause:a});if(u=an(u,n),Dr===null?Dr=[u]:Dr.push(u),st!==4&&(st=2),t===null)return!0;a=an(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,e=Qo(n.stateNode,a,e),Eo(n,e),!1;case 1:if(t=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(ga===null||!ga.has(u))))return n.flags|=65536,o&=-o,n.lanes|=o,o=Wd(o),eh(o,e,n,a),Eo(n,o),!1}n=n.return}while(n!==null);return!1}var Xo=Error(l(461)),pt=!1;function Ut(e,t,n,a){t.child=e===null?id(t,null,n,a):Ya(t,e.child,n,a)}function th(e,t,n,a,o){n=n.render;var u=t.ref;if("ref"in a){var m={};for(var b in a)b!=="ref"&&(m[b]=a[b])}else m=a;return Ha(t),a=Do(e,t,n,m,u,o),b=Ro(),e!==null&&!pt?(No(e,t,o),Fn(e,t,o)):(Oe&&b&&uo(t),t.flags|=1,Ut(e,t,a,o),t.child)}function nh(e,t,n,a,o){if(e===null){var u=n.type;return typeof u=="function"&&!lo(u)&&u.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=u,ah(e,t,u,a,o)):(e=bl(n.type,null,a,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!nu(e,o)){var m=u.memoizedProps;if(n=n.compare,n=n!==null?n:sr,n(m,a)&&e.ref===t.ref)return Fn(e,t,o)}return t.flags|=1,e=On(u,a),e.ref=t.ref,e.return=t,t.child=e}function ah(e,t,n,a,o){if(e!==null){var u=e.memoizedProps;if(sr(u,a)&&e.ref===t.ref)if(pt=!1,t.pendingProps=a=u,nu(e,o))(e.flags&131072)!==0&&(pt=!0);else return t.lanes=e.lanes,Fn(e,t,o)}return Zo(e,t,n,a,o)}function ih(e,t,n,a){var o=a.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|n:n,e!==null){for(a=t.child=e.child,o=0;a!==null;)o=o|a.lanes|a.childLanes,a=a.sibling;a=o&~u}else a=0,t.child=null;return rh(e,t,u,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&El(t,u!==null?u.cachePool:null),u!==null?sd(t,u):To(),od(t);else return a=t.lanes=536870912,rh(e,t,u!==null?u.baseLanes|n:n,n,a)}else u!==null?(El(t,u.cachePool),sd(t,u),fa(),t.memoizedState=null):(e!==null&&El(t,null),To(),fa());return Ut(e,t,o,n),t.child}function xr(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function rh(e,t,n,a,o){var u=bo();return u=u===null?null:{parent:mt._currentValue,pool:u},t.memoizedState={baseLanes:n,cachePool:u},e!==null&&El(t,null),To(),od(t),e!==null&&wi(e,t,a,!0),t.childLanes=o,null}function Ll(e,t){return t=Fl({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function lh(e,t,n){return Ya(t,e.child,null,n),e=Ll(t,t.pendingProps),e.flags|=2,Qt(t),t.memoizedState=null,e}function dv(e,t,n){var a=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Oe){if(a.mode==="hidden")return e=Ll(t,a),t.lanes=536870912,xr(null,e);if(Uo(t),(e=We)?(e=ym(e,sn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:aa!==null?{id:Cn,overflow:Un}:null,retryLane:536870912,hydrationErrors:null},n=Kf(e),n.return=t,t.child=n,Tt=t,We=null)):e=null,e===null)throw ra(t);return t.lanes=536870912,null}return Ll(t,a)}var u=e.memoizedState;if(u!==null){var m=u.dehydrated;if(Uo(t),o)if(t.flags&256)t.flags&=-257,t=lh(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(l(558));else if(pt||wi(e,t,n,!1),o=(n&e.childLanes)!==0,pt||o){if(a=Ze,a!==null&&(m=bn(a,n),m!==0&&m!==u.retryLane))throw u.retryLane=m,ja(e,m),Vt(a,e,m),Xo;Jl(),t=lh(e,t,n)}else e=u.treeContext,We=un(m.nextSibling),Tt=t,Oe=!0,ia=null,sn=!1,e!==null&&Gf(t,e),t=Ll(t,a),t.flags|=4096;return t}return e=On(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Hl(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(l(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Zo(e,t,n,a,o){return Ha(t),n=Do(e,t,n,a,void 0,o),a=Ro(),e!==null&&!pt?(No(e,t,o),Fn(e,t,o)):(Oe&&a&&uo(t),t.flags|=1,Ut(e,t,n,o),t.child)}function sh(e,t,n,a,o,u){return Ha(t),t.updateQueue=null,n=cd(t,a,n,o),ud(e),a=Ro(),e!==null&&!pt?(No(e,t,u),Fn(e,t,u)):(Oe&&a&&uo(t),t.flags|=1,Ut(e,t,n,u),t.child)}function oh(e,t,n,a,o){if(Ha(t),t.stateNode===null){var u=vi,m=n.contextType;typeof m=="object"&&m!==null&&(u=Ct(m)),u=new n(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Go,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},wo(t),m=n.contextType,u.context=typeof m=="object"&&m!==null?Ct(m):vi,u.state=t.memoizedState,m=n.getDerivedStateFromProps,typeof m=="function"&&(Io(t,n,m,a),u.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(m=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),m!==u.state&&Go.enqueueReplaceState(u,u.state,null),vr(t,a,u,o),pr(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){u=t.stateNode;var b=t.memoizedProps,C=Ga(n,b);u.props=C;var B=u.context,k=n.contextType;m=vi,typeof k=="object"&&k!==null&&(m=Ct(k));var Y=n.getDerivedStateFromProps;k=typeof Y=="function"||typeof u.getSnapshotBeforeUpdate=="function",b=t.pendingProps!==b,k||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(b||B!==m)&&Xd(t,u,a,m),sa=!1;var O=t.memoizedState;u.state=O,vr(t,a,u,o),pr(),B=t.memoizedState,b||O!==B||sa?(typeof Y=="function"&&(Io(t,n,Y,a),B=t.memoizedState),(C=sa||Qd(t,n,C,a,O,B,m))?(k||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=B),u.props=a,u.state=B,u.context=m,a=C):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,xo(e,t),m=t.memoizedProps,k=Ga(n,m),u.props=k,Y=t.pendingProps,O=u.context,B=n.contextType,C=vi,typeof B=="object"&&B!==null&&(C=Ct(B)),b=n.getDerivedStateFromProps,(B=typeof b=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(m!==Y||O!==C)&&Xd(t,u,a,C),sa=!1,O=t.memoizedState,u.state=O,vr(t,a,u,o),pr();var q=t.memoizedState;m!==Y||O!==q||sa||e!==null&&e.dependencies!==null&&wl(e.dependencies)?(typeof b=="function"&&(Io(t,n,b,a),q=t.memoizedState),(k=sa||Qd(t,n,k,a,O,q,C)||e!==null&&e.dependencies!==null&&wl(e.dependencies))?(B||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,q,C),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,q,C)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||m===e.memoizedProps&&O===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&O===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=q),u.props=a,u.state=q,u.context=C,a=k):(typeof u.componentDidUpdate!="function"||m===e.memoizedProps&&O===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&O===e.memoizedState||(t.flags|=1024),a=!1)}return u=a,Hl(e,t),a=(t.flags&128)!==0,u||a?(u=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&a?(t.child=Ya(t,e.child,null,o),t.child=Ya(t,null,n,o)):Ut(e,t,n,o),t.memoizedState=u.state,e=t.child):e=Fn(e,t,o),e}function uh(e,t,n,a){return ka(),t.flags|=256,Ut(e,t,n,a),t.child}var Jo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Po(e){return{baseLanes:e,cachePool:$f()}}function $o(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Zt),e}function ch(e,t,n){var a=t.pendingProps,o=!1,u=(t.flags&128)!==0,m;if((m=u)||(m=e!==null&&e.memoizedState===null?!1:(ct.current&2)!==0),m&&(o=!0,t.flags&=-129),m=(t.flags&32)!==0,t.flags&=-33,e===null){if(Oe){if(o?ca(t):fa(),(e=We)?(e=ym(e,sn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:aa!==null?{id:Cn,overflow:Un}:null,retryLane:536870912,hydrationErrors:null},n=Kf(e),n.return=t,t.child=n,Tt=t,We=null)):e=null,e===null)throw ra(t);return Bu(e)?t.lanes=32:t.lanes=536870912,null}var b=a.children;return a=a.fallback,o?(fa(),o=t.mode,b=Fl({mode:"hidden",children:b},o),a=qa(a,o,n,null),b.return=t,a.return=t,b.sibling=a,t.child=b,a=t.child,a.memoizedState=Po(n),a.childLanes=$o(e,m,n),t.memoizedState=Jo,xr(null,a)):(ca(t),Wo(t,b))}var C=e.memoizedState;if(C!==null&&(b=C.dehydrated,b!==null)){if(u)t.flags&256?(ca(t),t.flags&=-257,t=eu(e,t,n)):t.memoizedState!==null?(fa(),t.child=e.child,t.flags|=128,t=null):(fa(),b=a.fallback,o=t.mode,a=Fl({mode:"visible",children:a.children},o),b=qa(b,o,n,null),b.flags|=2,a.return=t,b.return=t,a.sibling=b,t.child=a,Ya(t,e.child,null,n),a=t.child,a.memoizedState=Po(n),a.childLanes=$o(e,m,n),t.memoizedState=Jo,t=xr(null,a));else if(ca(t),Bu(b)){if(m=b.nextSibling&&b.nextSibling.dataset,m)var B=m.dgst;m=B,a=Error(l(419)),a.stack="",a.digest=m,cr({value:a,source:null,stack:null}),t=eu(e,t,n)}else if(pt||wi(e,t,n,!1),m=(n&e.childLanes)!==0,pt||m){if(m=Ze,m!==null&&(a=bn(m,n),a!==0&&a!==C.retryLane))throw C.retryLane=a,ja(e,a),Vt(m,e,a),Xo;zu(b)||Jl(),t=eu(e,t,n)}else zu(b)?(t.flags|=192,t.child=e.child,t=null):(e=C.treeContext,We=un(b.nextSibling),Tt=t,Oe=!0,ia=null,sn=!1,e!==null&&Gf(t,e),t=Wo(t,a.children),t.flags|=4096);return t}return o?(fa(),b=a.fallback,o=t.mode,C=e.child,B=C.sibling,a=On(C,{mode:"hidden",children:a.children}),a.subtreeFlags=C.subtreeFlags&65011712,B!==null?b=On(B,b):(b=qa(b,o,n,null),b.flags|=2),b.return=t,a.return=t,a.sibling=b,t.child=a,xr(null,a),a=t.child,b=e.child.memoizedState,b===null?b=Po(n):(o=b.cachePool,o!==null?(C=mt._currentValue,o=o.parent!==C?{parent:C,pool:C}:o):o=$f(),b={baseLanes:b.baseLanes|n,cachePool:o}),a.memoizedState=b,a.childLanes=$o(e,m,n),t.memoizedState=Jo,xr(e.child,a)):(ca(t),n=e.child,e=n.sibling,n=On(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(m=t.deletions,m===null?(t.deletions=[e],t.flags|=16):m.push(e)),t.child=n,t.memoizedState=null,n)}function Wo(e,t){return t=Fl({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Fl(e,t){return e=It(22,e,null,t),e.lanes=0,e}function eu(e,t,n){return Ya(t,e.child,null,n),e=Wo(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function fh(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),go(e.return,t,n)}function tu(e,t,n,a,o,u){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:o,treeForkCount:u}:(m.isBackwards=t,m.rendering=null,m.renderingStartTime=0,m.last=a,m.tail=n,m.tailMode=o,m.treeForkCount=u)}function dh(e,t,n){var a=t.pendingProps,o=a.revealOrder,u=a.tail;a=a.children;var m=ct.current,b=(m&2)!==0;if(b?(m=m&1|2,t.flags|=128):m&=1,te(ct,m),Ut(e,t,a,n),a=Oe?ur:0,!b&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&fh(e,n,t);else if(e.tag===19)fh(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Dl(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),tu(t,!1,o,n,u,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Dl(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}tu(t,!0,n,null,u,a);break;case"together":tu(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Fn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ma|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(wi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(l(153));if(t.child!==null){for(e=t.child,n=On(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=On(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function nu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&wl(e)))}function hv(e,t,n){switch(t.tag){case 3:$e(t,t.stateNode.containerInfo),la(t,mt,e.memoizedState.cache),ka();break;case 27:case 5:ut(t);break;case 4:$e(t,t.stateNode.containerInfo);break;case 10:la(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Uo(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(ca(t),t.flags|=128,null):(n&t.child.childLanes)!==0?ch(e,t,n):(ca(t),e=Fn(e,t,n),e!==null?e.sibling:null);ca(t);break;case 19:var o=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(wi(e,t,n,!1),a=(n&t.childLanes)!==0),o){if(a)return dh(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),te(ct,ct.current),a)break;return null;case 22:return t.lanes=0,ih(e,t,n,t.pendingProps);case 24:la(t,mt,e.memoizedState.cache)}return Fn(e,t,n)}function hh(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)pt=!0;else{if(!nu(e,n)&&(t.flags&128)===0)return pt=!1,hv(e,t,n);pt=(e.flags&131072)!==0}else pt=!1,Oe&&(t.flags&1048576)!==0&&If(t,ur,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Va(t.elementType),t.type=e,typeof e=="function")lo(e)?(a=Ga(e,a),t.tag=1,t=oh(null,t,e,a,n)):(t.tag=0,t=Zo(null,t,e,a,n));else{if(e!=null){var o=e.$$typeof;if(o===$){t.tag=11,t=th(null,t,e,a,n);break e}else if(o===W){t.tag=14,t=nh(null,t,e,a,n);break e}}throw t=ue(e)||e,Error(l(306,t,""))}}return t;case 0:return Zo(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,o=Ga(a,t.pendingProps),oh(e,t,a,o,n);case 3:e:{if($e(t,t.stateNode.containerInfo),e===null)throw Error(l(387));a=t.pendingProps;var u=t.memoizedState;o=u.element,xo(e,t),vr(t,a,null,n);var m=t.memoizedState;if(a=m.cache,la(t,mt,a),a!==u.cache&&po(t,[mt],n,!0),pr(),a=m.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:m.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=uh(e,t,a,n);break e}else if(a!==o){o=an(Error(l(424)),t),cr(o),t=uh(e,t,a,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(We=un(e.firstChild),Tt=t,Oe=!0,ia=null,sn=!0,n=id(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(ka(),a===o){t=Fn(e,t,n);break e}Ut(e,t,a,n)}t=t.child}return t;case 26:return Hl(e,t),e===null?(n=Am(t.type,null,t.pendingProps,null))?t.memoizedState=n:Oe||(n=t.type,e=t.pendingProps,a=as(Je.current).createElement(n),a[At]=t,a[jt]=e,_t(a,n,e),wt(a),t.stateNode=a):t.memoizedState=Am(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ut(t),e===null&&Oe&&(a=t.stateNode=wm(t.type,t.pendingProps,Je.current),Tt=t,sn=!0,o=We,ba(t.type)?(Ou=o,We=un(a.firstChild)):We=o),Ut(e,t,t.pendingProps.children,n),Hl(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Oe&&((o=a=We)&&(a=Kv(a,t.type,t.pendingProps,sn),a!==null?(t.stateNode=a,Tt=t,We=un(a.firstChild),sn=!1,o=!0):o=!1),o||ra(t)),ut(t),o=t.type,u=t.pendingProps,m=e!==null?e.memoizedProps:null,a=u.children,Ru(o,u)?a=null:m!==null&&Ru(o,m)&&(t.flags|=32),t.memoizedState!==null&&(o=Do(e,t,iv,null,null,n),qr._currentValue=o),Hl(e,t),Ut(e,t,a,n),t.child;case 6:return e===null&&Oe&&((e=n=We)&&(n=Yv(n,t.pendingProps,sn),n!==null?(t.stateNode=n,Tt=t,We=null,e=!0):e=!1),e||ra(t)),null;case 13:return ch(e,t,n);case 4:return $e(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Ya(t,null,a,n):Ut(e,t,a,n),t.child;case 11:return th(e,t,t.type,t.pendingProps,n);case 7:return Ut(e,t,t.pendingProps,n),t.child;case 8:return Ut(e,t,t.pendingProps.children,n),t.child;case 12:return Ut(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,la(t,t.type,a.value),Ut(e,t,a.children,n),t.child;case 9:return o=t.type._context,a=t.pendingProps.children,Ha(t),o=Ct(o),a=a(o),t.flags|=1,Ut(e,t,a,n),t.child;case 14:return nh(e,t,t.type,t.pendingProps,n);case 15:return ah(e,t,t.type,t.pendingProps,n);case 19:return dh(e,t,n);case 31:return dv(e,t,n);case 22:return ih(e,t,n,t.pendingProps);case 24:return Ha(t),a=Ct(mt),e===null?(o=bo(),o===null&&(o=Ze,u=vo(),o.pooledCache=u,u.refCount++,u!==null&&(o.pooledCacheLanes|=n),o=u),t.memoizedState={parent:a,cache:o},wo(t),la(t,mt,o)):((e.lanes&n)!==0&&(xo(e,t),vr(t,null,null,n),pr()),o=e.memoizedState,u=t.memoizedState,o.parent!==a?(o={parent:a,cache:a},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),la(t,mt,a)):(a=u.cache,la(t,mt,a),a!==o.cache&&po(t,[mt],n,!0))),Ut(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(l(156,t.tag))}function Vn(e){e.flags|=4}function au(e,t,n,a,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(Hh())e.flags|=8192;else throw Ka=Tl,So}else e.flags&=-16777217}function mh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Dm(t))if(Hh())e.flags|=8192;else throw Ka=Tl,So}function Vl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Xe():536870912,e.lanes|=t,zi|=t)}function Er(e,t){if(!Oe)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 a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function et(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,a|=o.subtreeFlags&65011712,a|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,a|=o.subtreeFlags,a|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function mv(e,t,n){var a=t.pendingProps;switch(co(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return et(t),null;case 1:return et(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),kn(mt),Ke(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Si(t)?Vn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ho())),et(t),null;case 26:var o=t.type,u=t.memoizedState;return e===null?(Vn(t),u!==null?(et(t),mh(t,u)):(et(t),au(t,o,null,a,n))):u?u!==e.memoizedState?(Vn(t),et(t),mh(t,u)):(et(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Vn(t),et(t),au(t,o,e,a,n)),null;case 27:if(xe(t),n=Je.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Vn(t);else{if(!a){if(t.stateNode===null)throw Error(l(166));return et(t),null}e=fe.current,Si(t)?Qf(t):(e=wm(o,a,n),t.stateNode=e,Vn(t))}return et(t),null;case 5:if(xe(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Vn(t);else{if(!a){if(t.stateNode===null)throw Error(l(166));return et(t),null}if(u=fe.current,Si(t))Qf(t);else{var m=as(Je.current);switch(u){case 1:u=m.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:u=m.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":u=m.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":u=m.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":u=m.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?m.createElement("select",{is:a.is}):m.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?m.createElement(o,{is:a.is}):m.createElement(o)}}u[At]=t,u[jt]=a;e:for(m=t.child;m!==null;){if(m.tag===5||m.tag===6)u.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===t)break e;for(;m.sibling===null;){if(m.return===null||m.return===t)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}t.stateNode=u;e:switch(_t(u,o,a),o){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Vn(t)}}return et(t),au(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Vn(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(l(166));if(e=Je.current,Si(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,o=Tt,o!==null)switch(o.tag){case 27:case 5:a=o.memoizedProps}e[At]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||cm(e.nodeValue,n)),e||ra(t,!0)}else e=as(e).createTextNode(a),e[At]=t,t.stateNode=e}return et(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=Si(t),n!==null){if(e===null){if(!a)throw Error(l(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(557));e[At]=t}else ka(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;et(t),e=!1}else n=ho(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Qt(t),t):(Qt(t),null);if((t.flags&128)!==0)throw Error(l(558))}return et(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=Si(t),a!==null&&a.dehydrated!==null){if(e===null){if(!o)throw Error(l(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(l(317));o[At]=t}else ka(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;et(t),o=!1}else o=ho(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Qt(t),t):(Qt(t),null)}return Qt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,o=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(o=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==o&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Vl(t,t.updateQueue),et(t),null);case 4:return Ke(),e===null&&Tu(t.stateNode.containerInfo),et(t),null;case 10:return kn(t.type),et(t),null;case 19:if(le(ct),a=t.memoizedState,a===null)return et(t),null;if(o=(t.flags&128)!==0,u=a.rendering,u===null)if(o)Er(a,!1);else{if(st!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=Dl(e),u!==null){for(t.flags|=128,Er(a,!1),e=u.updateQueue,t.updateQueue=e,Vl(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Vf(n,e),n=n.sibling;return te(ct,ct.current&1|2),Oe&&jn(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&V()>Ql&&(t.flags|=128,o=!0,Er(a,!1),t.lanes=4194304)}else{if(!o)if(e=Dl(u),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Vl(t,e),Er(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!Oe)return et(t),null}else 2*V()-a.renderingStartTime>Ql&&n!==536870912&&(t.flags|=128,o=!0,Er(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(e=a.last,e!==null?e.sibling=u:t.child=u,a.last=u)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=V(),e.sibling=null,n=ct.current,te(ct,o?n&1|2:n&1),Oe&&jn(t,a.treeForkCount),e):(et(t),null);case 22:case 23:return Qt(t),Co(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),n=t.updateQueue,n!==null&&Vl(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&le(Fa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),kn(mt),et(t),null;case 25:return null;case 30:return null}throw Error(l(156,t.tag))}function gv(e,t){switch(co(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return kn(mt),Ke(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return xe(t),null;case 31:if(t.memoizedState!==null){if(Qt(t),t.alternate===null)throw Error(l(340));ka()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Qt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(l(340));ka()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return le(ct),null;case 4:return Ke(),null;case 10:return kn(t.type),null;case 22:case 23:return Qt(t),Co(),e!==null&&le(Fa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return kn(mt),null;case 25:return null;default:return null}}function gh(e,t){switch(co(t),t.tag){case 3:kn(mt),Ke();break;case 26:case 27:case 5:xe(t);break;case 4:Ke();break;case 31:t.memoizedState!==null&&Qt(t);break;case 13:Qt(t);break;case 19:le(ct);break;case 10:kn(t.type);break;case 22:case 23:Qt(t),Co(),e!==null&&le(Fa);break;case 24:kn(mt)}}function Ar(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var o=a.next;n=o;do{if((n.tag&e)===e){a=void 0;var u=n.create,m=n.inst;a=u(),m.destroy=a}n=n.next}while(n!==o)}}catch(b){Ve(t,t.return,b)}}function da(e,t,n){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var u=o.next;a=u;do{if((a.tag&e)===e){var m=a.inst,b=m.destroy;if(b!==void 0){m.destroy=void 0,o=t;var C=n,B=b;try{B()}catch(k){Ve(o,C,k)}}}a=a.next}while(a!==u)}}catch(k){Ve(t,t.return,k)}}function ph(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{ld(t,n)}catch(a){Ve(e,e.return,a)}}}function vh(e,t,n){n.props=Ga(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){Ve(e,t,a)}}function Tr(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(o){Ve(e,t,o)}}function _n(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(o){Ve(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(o){Ve(e,t,o)}else n.current=null}function yh(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(o){Ve(e,e.return,o)}}function iu(e,t,n){try{var a=e.stateNode;qv(a,e.type,n,t),a[jt]=t}catch(o){Ve(e,e.return,o)}}function bh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ba(e.type)||e.tag===4}function ru(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||bh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&ba(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function lu(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=zn));else if(a!==4&&(a===27&&ba(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(lu(e,t,n),e=e.sibling;e!==null;)lu(e,t,n),e=e.sibling}function Kl(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&ba(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Kl(e,t,n),e=e.sibling;e!==null;)Kl(e,t,n),e=e.sibling}function Sh(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);_t(t,a,n),t[At]=e,t[jt]=n}catch(u){Ve(e,e.return,u)}}var Kn=!1,vt=!1,su=!1,wh=typeof WeakSet=="function"?WeakSet:Set,xt=null;function pv(e,t){if(e=e.containerInfo,_u=cs,e=zf(e),Ws(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var o=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var m=0,b=-1,C=-1,B=0,k=0,Y=e,O=null;t:for(;;){for(var q;Y!==n||o!==0&&Y.nodeType!==3||(b=m+o),Y!==u||a!==0&&Y.nodeType!==3||(C=m+a),Y.nodeType===3&&(m+=Y.nodeValue.length),(q=Y.firstChild)!==null;)O=Y,Y=q;for(;;){if(Y===e)break t;if(O===n&&++B===o&&(b=m),O===u&&++k===a&&(C=m),(q=Y.nextSibling)!==null)break;Y=O,O=Y.parentNode}Y=q}n=b===-1||C===-1?null:{start:b,end:C}}else n=null}n=n||{start:0,end:0}}else n=null;for(Du={focusedElem:e,selectionRange:n},cs=!1,xt=t;xt!==null;)if(t=xt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,xt=e;else for(;xt!==null;){switch(t=xt,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)o=e[n],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,n=t,o=u.memoizedProps,u=u.memoizedState,a=n.stateNode;try{var de=Ga(n.type,o);e=a.getSnapshotBeforeUpdate(de,u),a.__reactInternalSnapshotBeforeUpdate=e}catch(we){Ve(n,n.return,we)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Mu(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Mu(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(l(163))}if(e=t.sibling,e!==null){e.return=t.return,xt=e;break}xt=t.return}}function xh(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:In(e,n),a&4&&Ar(5,n);break;case 1:if(In(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(m){Ve(n,n.return,m)}else{var o=Ga(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(m){Ve(n,n.return,m)}}a&64&&ph(n),a&512&&Tr(n,n.return);break;case 3:if(In(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{ld(e,t)}catch(m){Ve(n,n.return,m)}}break;case 27:t===null&&a&4&&Sh(n);case 26:case 5:In(e,n),t===null&&a&4&&yh(n),a&512&&Tr(n,n.return);break;case 12:In(e,n);break;case 31:In(e,n),a&4&&Th(e,n);break;case 13:In(e,n),a&4&&Ch(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Tv.bind(null,n),Iv(e,n))));break;case 22:if(a=n.memoizedState!==null||Kn,!a){t=t!==null&&t.memoizedState!==null||vt,o=Kn;var u=vt;Kn=a,(vt=t)&&!u?Gn(e,n,(n.subtreeFlags&8772)!==0):In(e,n),Kn=o,vt=u}break;case 30:break;default:In(e,n)}}function Eh(e){var t=e.alternate;t!==null&&(e.alternate=null,Eh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&js(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var at=null,kt=!1;function Yn(e,t,n){for(n=n.child;n!==null;)Ah(e,t,n),n=n.sibling}function Ah(e,t,n){if(dt&&typeof dt.onCommitFiberUnmount=="function")try{dt.onCommitFiberUnmount(Nn,n)}catch{}switch(n.tag){case 26:vt||_n(n,t),Yn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:vt||_n(n,t);var a=at,o=kt;ba(n.type)&&(at=n.stateNode,kt=!1),Yn(e,t,n),Br(n.stateNode),at=a,kt=o;break;case 5:vt||_n(n,t);case 6:if(a=at,o=kt,at=null,Yn(e,t,n),at=a,kt=o,at!==null)if(kt)try{(at.nodeType===9?at.body:at.nodeName==="HTML"?at.ownerDocument.body:at).removeChild(n.stateNode)}catch(u){Ve(n,t,u)}else try{at.removeChild(n.stateNode)}catch(u){Ve(n,t,u)}break;case 18:at!==null&&(kt?(e=at,pm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Fi(e)):pm(at,n.stateNode));break;case 4:a=at,o=kt,at=n.stateNode.containerInfo,kt=!0,Yn(e,t,n),at=a,kt=o;break;case 0:case 11:case 14:case 15:da(2,n,t),vt||da(4,n,t),Yn(e,t,n);break;case 1:vt||(_n(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&vh(n,t,a)),Yn(e,t,n);break;case 21:Yn(e,t,n);break;case 22:vt=(a=vt)||n.memoizedState!==null,Yn(e,t,n),vt=a;break;default:Yn(e,t,n)}}function Th(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Fi(e)}catch(n){Ve(t,t.return,n)}}}function Ch(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Fi(e)}catch(n){Ve(t,t.return,n)}}function vv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new wh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new wh),t;default:throw Error(l(435,e.tag))}}function Yl(e,t){var n=vv(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var o=Cv.bind(null,e,a);a.then(o,o)}})}function Lt(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var o=n[a],u=e,m=t,b=m;e:for(;b!==null;){switch(b.tag){case 27:if(ba(b.type)){at=b.stateNode,kt=!1;break e}break;case 5:at=b.stateNode,kt=!1;break e;case 3:case 4:at=b.stateNode.containerInfo,kt=!0;break e}b=b.return}if(at===null)throw Error(l(160));Ah(u,m,o),at=null,kt=!1,u=o.alternate,u!==null&&(u.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Uh(t,e),t=t.sibling}var wn=null;function Uh(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Lt(t,e),Ht(e),a&4&&(da(3,e,e.return),Ar(3,e),da(5,e,e.return));break;case 1:Lt(t,e),Ht(e),a&512&&(vt||n===null||_n(n,n.return)),a&64&&Kn&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var o=wn;if(Lt(t,e),Ht(e),a&512&&(vt||n===null||_n(n,n.return)),a&4){var u=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(a){case"title":u=o.getElementsByTagName("title")[0],(!u||u[$i]||u[At]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=o.createElement(a),o.head.insertBefore(u,o.querySelector("head > title"))),_t(u,a,n),u[At]=e,wt(u),a=u;break e;case"link":var m=Um("link","href",o).get(a+(n.href||""));if(m){for(var b=0;b<m.length;b++)if(u=m[b],u.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&u.getAttribute("rel")===(n.rel==null?null:n.rel)&&u.getAttribute("title")===(n.title==null?null:n.title)&&u.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){m.splice(b,1);break t}}u=o.createElement(a),_t(u,a,n),o.head.appendChild(u);break;case"meta":if(m=Um("meta","content",o).get(a+(n.content||""))){for(b=0;b<m.length;b++)if(u=m[b],u.getAttribute("content")===(n.content==null?null:""+n.content)&&u.getAttribute("name")===(n.name==null?null:n.name)&&u.getAttribute("property")===(n.property==null?null:n.property)&&u.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&u.getAttribute("charset")===(n.charSet==null?null:n.charSet)){m.splice(b,1);break t}}u=o.createElement(a),_t(u,a,n),o.head.appendChild(u);break;default:throw Error(l(468,a))}u[At]=e,wt(u),a=u}e.stateNode=a}else _m(o,e.type,e.stateNode);else e.stateNode=Cm(o,a,e.memoizedProps);else u!==a?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,a===null?_m(o,e.type,e.stateNode):Cm(o,a,e.memoizedProps)):a===null&&e.stateNode!==null&&iu(e,e.memoizedProps,n.memoizedProps)}break;case 27:Lt(t,e),Ht(e),a&512&&(vt||n===null||_n(n,n.return)),n!==null&&a&4&&iu(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Lt(t,e),Ht(e),a&512&&(vt||n===null||_n(n,n.return)),e.flags&32){o=e.stateNode;try{ci(o,"")}catch(de){Ve(e,e.return,de)}}a&4&&e.stateNode!=null&&(o=e.memoizedProps,iu(e,o,n!==null?n.memoizedProps:o)),a&1024&&(su=!0);break;case 6:if(Lt(t,e),Ht(e),a&4){if(e.stateNode===null)throw Error(l(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(de){Ve(e,e.return,de)}}break;case 3:if(ls=null,o=wn,wn=is(t.containerInfo),Lt(t,e),wn=o,Ht(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{Fi(t.containerInfo)}catch(de){Ve(e,e.return,de)}su&&(su=!1,_h(e));break;case 4:a=wn,wn=is(e.stateNode.containerInfo),Lt(t,e),Ht(e),wn=a;break;case 12:Lt(t,e),Ht(e);break;case 31:Lt(t,e),Ht(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Yl(e,a)));break;case 13:Lt(t,e),Ht(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Gl=V()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Yl(e,a)));break;case 22:o=e.memoizedState!==null;var C=n!==null&&n.memoizedState!==null,B=Kn,k=vt;if(Kn=B||o,vt=k||C,Lt(t,e),vt=k,Kn=B,Ht(e),a&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(n===null||C||Kn||vt||Qa(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){C=n=t;try{if(u=C.stateNode,o)m=u.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{b=C.stateNode;var Y=C.memoizedProps.style,O=Y!=null&&Y.hasOwnProperty("display")?Y.display:null;b.style.display=O==null||typeof O=="boolean"?"":(""+O).trim()}}catch(de){Ve(C,C.return,de)}}}else if(t.tag===6){if(n===null){C=t;try{C.stateNode.nodeValue=o?"":C.memoizedProps}catch(de){Ve(C,C.return,de)}}}else if(t.tag===18){if(n===null){C=t;try{var q=C.stateNode;o?vm(q,!0):vm(C.stateNode,!1)}catch(de){Ve(C,C.return,de)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,Yl(e,n))));break;case 19:Lt(t,e),Ht(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Yl(e,a)));break;case 30:break;case 21:break;default:Lt(t,e),Ht(e)}}function Ht(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(bh(a)){n=a;break}a=a.return}if(n==null)throw Error(l(160));switch(n.tag){case 27:var o=n.stateNode,u=ru(e);Kl(e,u,o);break;case 5:var m=n.stateNode;n.flags&32&&(ci(m,""),n.flags&=-33);var b=ru(e);Kl(e,b,m);break;case 3:case 4:var C=n.stateNode.containerInfo,B=ru(e);lu(e,B,C);break;default:throw Error(l(161))}}catch(k){Ve(e,e.return,k)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function _h(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;_h(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function In(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)xh(e,t.alternate,t),t=t.sibling}function Qa(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:da(4,t,t.return),Qa(t);break;case 1:_n(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&vh(t,t.return,n),Qa(t);break;case 27:Br(t.stateNode);case 26:case 5:_n(t,t.return),Qa(t);break;case 22:t.memoizedState===null&&Qa(t);break;case 30:Qa(t);break;default:Qa(t)}e=e.sibling}}function Gn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,o=e,u=t,m=u.flags;switch(u.tag){case 0:case 11:case 15:Gn(o,u,n),Ar(4,u);break;case 1:if(Gn(o,u,n),a=u,o=a.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(B){Ve(a,a.return,B)}if(a=u,o=a.updateQueue,o!==null){var b=a.stateNode;try{var C=o.shared.hiddenCallbacks;if(C!==null)for(o.shared.hiddenCallbacks=null,o=0;o<C.length;o++)rd(C[o],b)}catch(B){Ve(a,a.return,B)}}n&&m&64&&ph(u),Tr(u,u.return);break;case 27:Sh(u);case 26:case 5:Gn(o,u,n),n&&a===null&&m&4&&yh(u),Tr(u,u.return);break;case 12:Gn(o,u,n);break;case 31:Gn(o,u,n),n&&m&4&&Th(o,u);break;case 13:Gn(o,u,n),n&&m&4&&Ch(o,u);break;case 22:u.memoizedState===null&&Gn(o,u,n),Tr(u,u.return);break;case 30:break;default:Gn(o,u,n)}t=t.sibling}}function ou(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&fr(n))}function uu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&fr(e))}function xn(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Dh(e,t,n,a),t=t.sibling}function Dh(e,t,n,a){var o=t.flags;switch(t.tag){case 0:case 11:case 15:xn(e,t,n,a),o&2048&&Ar(9,t);break;case 1:xn(e,t,n,a);break;case 3:xn(e,t,n,a),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&fr(e)));break;case 12:if(o&2048){xn(e,t,n,a),e=t.stateNode;try{var u=t.memoizedProps,m=u.id,b=u.onPostCommit;typeof b=="function"&&b(m,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(C){Ve(t,t.return,C)}}else xn(e,t,n,a);break;case 31:xn(e,t,n,a);break;case 13:xn(e,t,n,a);break;case 23:break;case 22:u=t.stateNode,m=t.alternate,t.memoizedState!==null?u._visibility&2?xn(e,t,n,a):Cr(e,t):u._visibility&2?xn(e,t,n,a):(u._visibility|=2,Ri(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),o&2048&&ou(m,t);break;case 24:xn(e,t,n,a),o&2048&&uu(t.alternate,t);break;default:xn(e,t,n,a)}}function Ri(e,t,n,a,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,m=t,b=n,C=a,B=m.flags;switch(m.tag){case 0:case 11:case 15:Ri(u,m,b,C,o),Ar(8,m);break;case 23:break;case 22:var k=m.stateNode;m.memoizedState!==null?k._visibility&2?Ri(u,m,b,C,o):Cr(u,m):(k._visibility|=2,Ri(u,m,b,C,o)),o&&B&2048&&ou(m.alternate,m);break;case 24:Ri(u,m,b,C,o),o&&B&2048&&uu(m.alternate,m);break;default:Ri(u,m,b,C,o)}t=t.sibling}}function Cr(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,o=a.flags;switch(a.tag){case 22:Cr(n,a),o&2048&&ou(a.alternate,a);break;case 24:Cr(n,a),o&2048&&uu(a.alternate,a);break;default:Cr(n,a)}t=t.sibling}}var Ur=8192;function Ni(e,t,n){if(e.subtreeFlags&Ur)for(e=e.child;e!==null;)Rh(e,t,n),e=e.sibling}function Rh(e,t,n){switch(e.tag){case 26:Ni(e,t,n),e.flags&Ur&&e.memoizedState!==null&&ay(n,wn,e.memoizedState,e.memoizedProps);break;case 5:Ni(e,t,n);break;case 3:case 4:var a=wn;wn=is(e.stateNode.containerInfo),Ni(e,t,n),wn=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Ur,Ur=16777216,Ni(e,t,n),Ur=a):Ni(e,t,n));break;default:Ni(e,t,n)}}function Nh(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function _r(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];xt=a,zh(a,e)}Nh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Mh(e),e=e.sibling}function Mh(e){switch(e.tag){case 0:case 11:case 15:_r(e),e.flags&2048&&da(9,e,e.return);break;case 3:_r(e);break;case 12:_r(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Il(e)):_r(e);break;default:_r(e)}}function Il(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];xt=a,zh(a,e)}Nh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:da(8,t,t.return),Il(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Il(t));break;default:Il(t)}e=e.sibling}}function zh(e,t){for(;xt!==null;){var n=xt;switch(n.tag){case 0:case 11:case 15:da(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:fr(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,xt=a;else e:for(n=e;xt!==null;){a=xt;var o=a.sibling,u=a.return;if(Eh(a),a===n){xt=null;break e}if(o!==null){o.return=u,xt=o;break e}xt=u}}}var yv={getCacheForType:function(e){var t=Ct(mt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Ct(mt).controller.signal}},bv=typeof WeakMap=="function"?WeakMap:Map,Le=0,Ze=null,Ne=null,ze=0,Fe=0,Xt=null,ha=!1,Mi=!1,cu=!1,Qn=0,st=0,ma=0,Xa=0,fu=0,Zt=0,zi=0,Dr=null,Ft=null,du=!1,Gl=0,Bh=0,Ql=1/0,Xl=null,ga=null,bt=0,pa=null,Bi=null,Xn=0,hu=0,mu=null,Oh=null,Rr=0,gu=null;function Jt(){return(Le&2)!==0&&ze!==0?ze&-ze:j.T!==null?wu():Jc()}function jh(){if(Zt===0)if((ze&536870912)===0||Oe){var e=ni;ni<<=1,(ni&3932160)===0&&(ni=262144),Zt=e}else Zt=536870912;return e=Gt.current,e!==null&&(e.flags|=32),Zt}function Vt(e,t,n){(e===Ze&&(Fe===2||Fe===9)||e.cancelPendingCommit!==null)&&(Oi(e,0),va(e,ze,Zt,!1)),Et(e,n),((Le&2)===0||e!==Ze)&&(e===Ze&&((Le&2)===0&&(Xa|=n),st===4&&va(e,ze,Zt,!1)),Dn(e))}function qh(e,t,n){if((Le&6)!==0)throw Error(l(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Ee(e,t),o=a?xv(e,t):vu(e,t,!0),u=a;do{if(o===0){Mi&&!a&&va(e,t,0,!1);break}else{if(n=e.current.alternate,u&&!Sv(n)){o=vu(e,t,!1),u=!1;continue}if(o===2){if(u=t,e.errorRecoveryDisabledLanes&u)var m=0;else m=e.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){t=m;e:{var b=e;o=Dr;var C=b.current.memoizedState.isDehydrated;if(C&&(Oi(b,m).flags|=256),m=vu(b,m,!1),m!==2){if(cu&&!C){b.errorRecoveryDisabledLanes|=u,Xa|=u,o=4;break e}u=Ft,Ft=o,u!==null&&(Ft===null?Ft=u:Ft.push.apply(Ft,u))}o=m}if(u=!1,o!==2)continue}}if(o===1){Oi(e,0),va(e,t,0,!0);break}e:{switch(a=e,u=o,u){case 0:case 1:throw Error(l(345));case 4:if((t&4194048)!==t)break;case 6:va(a,t,Zt,!ha);break e;case 2:Ft=null;break;case 3:case 5:break;default:throw Error(l(329))}if((t&62914560)===t&&(o=Gl+300-V(),10<o)){if(va(a,t,Zt,!ha),ai(a,0,!0)!==0)break e;Xn=t,a.timeoutHandle=mm(kh.bind(null,a,n,Ft,Xl,du,t,Zt,Xa,zi,ha,u,"Throttled",-0,0),o);break e}kh(a,n,Ft,Xl,du,t,Zt,Xa,zi,ha,u,null,-0,0)}}break}while(!0);Dn(e)}function kh(e,t,n,a,o,u,m,b,C,B,k,Y,O,q){if(e.timeoutHandle=-1,Y=t.subtreeFlags,Y&8192||(Y&16785408)===16785408){Y={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:zn},Rh(t,u,Y);var de=(u&62914560)===u?Gl-V():(u&4194048)===u?Bh-V():0;if(de=iy(Y,de),de!==null){Xn=u,e.cancelPendingCommit=de(Gh.bind(null,e,t,u,n,a,o,m,b,C,k,Y,null,O,q)),va(e,u,m,!B);return}}Gh(e,t,u,n,a,o,m,b,C)}function Sv(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var o=n[a],u=o.getSnapshot;o=o.value;try{if(!Yt(u(),o))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function va(e,t,n,a){t&=~fu,t&=~Xa,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var o=t;0<o;){var u=31-ht(o),m=1<<u;a[u]=-1,o&=~m}n!==0&&Tn(e,n,t)}function Zl(){return(Le&6)===0?(Nr(0),!1):!0}function pu(){if(Ne!==null){if(Fe===0)var e=Ne.return;else e=Ne,qn=La=null,Mo(e),Ti=null,hr=0,e=Ne;for(;e!==null;)gh(e.alternate,e),e=e.return;Ne=null}}function Oi(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Hv(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Xn=0,pu(),Ze=e,Ne=n=On(e.current,null),ze=t,Fe=0,Xt=null,ha=!1,Mi=Ee(e,t),cu=!1,zi=Zt=fu=Xa=ma=st=0,Ft=Dr=null,du=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var o=31-ht(a),u=1<<o;t|=e[o],a&=~u}return Qn=t,pl(),n}function Lh(e,t){Ce=null,j.H=wr,t===Ai||t===Al?(t=td(),Fe=3):t===So?(t=td(),Fe=4):Fe=t===Xo?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Xt=t,Ne===null&&(st=1,kl(e,an(t,e.current)))}function Hh(){var e=Gt.current;return e===null?!0:(ze&4194048)===ze?on===null:(ze&62914560)===ze||(ze&536870912)!==0?e===on:!1}function Fh(){var e=j.H;return j.H=wr,e===null?wr:e}function Vh(){var e=j.A;return j.A=yv,e}function Jl(){st=4,ha||(ze&4194048)!==ze&&Gt.current!==null||(Mi=!0),(ma&134217727)===0&&(Xa&134217727)===0||Ze===null||va(Ze,ze,Zt,!1)}function vu(e,t,n){var a=Le;Le|=2;var o=Fh(),u=Vh();(Ze!==e||ze!==t)&&(Xl=null,Oi(e,t)),t=!1;var m=st;e:do try{if(Fe!==0&&Ne!==null){var b=Ne,C=Xt;switch(Fe){case 8:pu(),m=6;break e;case 3:case 2:case 9:case 6:Gt.current===null&&(t=!0);var B=Fe;if(Fe=0,Xt=null,ji(e,b,C,B),n&&Mi){m=0;break e}break;default:B=Fe,Fe=0,Xt=null,ji(e,b,C,B)}}wv(),m=st;break}catch(k){Lh(e,k)}while(!0);return t&&e.shellSuspendCounter++,qn=La=null,Le=a,j.H=o,j.A=u,Ne===null&&(Ze=null,ze=0,pl()),m}function wv(){for(;Ne!==null;)Kh(Ne)}function xv(e,t){var n=Le;Le|=2;var a=Fh(),o=Vh();Ze!==e||ze!==t?(Xl=null,Ql=V()+500,Oi(e,t)):Mi=Ee(e,t);e:do try{if(Fe!==0&&Ne!==null){t=Ne;var u=Xt;t:switch(Fe){case 1:Fe=0,Xt=null,ji(e,t,u,1);break;case 2:case 9:if(Wf(u)){Fe=0,Xt=null,Yh(t);break}t=function(){Fe!==2&&Fe!==9||Ze!==e||(Fe=7),Dn(e)},u.then(t,t);break e;case 3:Fe=7;break e;case 4:Fe=5;break e;case 7:Wf(u)?(Fe=0,Xt=null,Yh(t)):(Fe=0,Xt=null,ji(e,t,u,7));break;case 5:var m=null;switch(Ne.tag){case 26:m=Ne.memoizedState;case 5:case 27:var b=Ne;if(m?Dm(m):b.stateNode.complete){Fe=0,Xt=null;var C=b.sibling;if(C!==null)Ne=C;else{var B=b.return;B!==null?(Ne=B,Pl(B)):Ne=null}break t}}Fe=0,Xt=null,ji(e,t,u,5);break;case 6:Fe=0,Xt=null,ji(e,t,u,6);break;case 8:pu(),st=6;break e;default:throw Error(l(462))}}Ev();break}catch(k){Lh(e,k)}while(!0);return qn=La=null,j.H=a,j.A=o,Le=n,Ne!==null?0:(Ze=null,ze=0,pl(),st)}function Ev(){for(;Ne!==null&&!M();)Kh(Ne)}function Kh(e){var t=hh(e.alternate,e,Qn);e.memoizedProps=e.pendingProps,t===null?Pl(e):Ne=t}function Yh(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=sh(n,t,t.pendingProps,t.type,void 0,ze);break;case 11:t=sh(n,t,t.pendingProps,t.type.render,t.ref,ze);break;case 5:Mo(t);default:gh(n,t),t=Ne=Vf(t,Qn),t=hh(n,t,Qn)}e.memoizedProps=e.pendingProps,t===null?Pl(e):Ne=t}function ji(e,t,n,a){qn=La=null,Mo(t),Ti=null,hr=0;var o=t.return;try{if(fv(e,o,t,n,ze)){st=1,kl(e,an(n,e.current)),Ne=null;return}}catch(u){if(o!==null)throw Ne=o,u;st=1,kl(e,an(n,e.current)),Ne=null;return}t.flags&32768?(Oe||a===1?e=!0:Mi||(ze&536870912)!==0?e=!1:(ha=e=!0,(a===2||a===9||a===3||a===6)&&(a=Gt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Ih(t,e)):Pl(t)}function Pl(e){var t=e;do{if((t.flags&32768)!==0){Ih(t,ha);return}e=t.return;var n=mv(t.alternate,t,Qn);if(n!==null){Ne=n;return}if(t=t.sibling,t!==null){Ne=t;return}Ne=t=e}while(t!==null);st===0&&(st=5)}function Ih(e,t){do{var n=gv(e.alternate,e);if(n!==null){n.flags&=32767,Ne=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ne=e;return}Ne=e=n}while(e!==null);st=6,Ne=null}function Gh(e,t,n,a,o,u,m,b,C){e.cancelPendingCommit=null;do $l();while(bt!==0);if((Le&6)!==0)throw Error(l(327));if(t!==null){if(t===e.current)throw Error(l(177));if(u=t.lanes|t.childLanes,u|=io,An(e,n,u,m,b,C),e===Ze&&(Ne=Ze=null,ze=0),Bi=t,pa=e,Xn=n,hu=u,mu=o,Oh=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Uv(rt,function(){return Ph(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=j.T,j.T=null,o=Q.p,Q.p=2,m=Le,Le|=4;try{pv(e,t,n)}finally{Le=m,Q.p=o,j.T=a}}bt=1,Qh(),Xh(),Zh()}}function Qh(){if(bt===1){bt=0;var e=pa,t=Bi,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=j.T,j.T=null;var a=Q.p;Q.p=2;var o=Le;Le|=4;try{Uh(t,e);var u=Du,m=zf(e.containerInfo),b=u.focusedElem,C=u.selectionRange;if(m!==b&&b&&b.ownerDocument&&Mf(b.ownerDocument.documentElement,b)){if(C!==null&&Ws(b)){var B=C.start,k=C.end;if(k===void 0&&(k=B),"selectionStart"in b)b.selectionStart=B,b.selectionEnd=Math.min(k,b.value.length);else{var Y=b.ownerDocument||document,O=Y&&Y.defaultView||window;if(O.getSelection){var q=O.getSelection(),de=b.textContent.length,we=Math.min(C.start,de),Qe=C.end===void 0?we:Math.min(C.end,de);!q.extend&&we>Qe&&(m=Qe,Qe=we,we=m);var R=Nf(b,we),_=Nf(b,Qe);if(R&&_&&(q.rangeCount!==1||q.anchorNode!==R.node||q.anchorOffset!==R.offset||q.focusNode!==_.node||q.focusOffset!==_.offset)){var z=Y.createRange();z.setStart(R.node,R.offset),q.removeAllRanges(),we>Qe?(q.addRange(z),q.extend(_.node,_.offset)):(z.setEnd(_.node,_.offset),q.addRange(z))}}}}for(Y=[],q=b;q=q.parentNode;)q.nodeType===1&&Y.push({element:q,left:q.scrollLeft,top:q.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<Y.length;b++){var H=Y[b];H.element.scrollLeft=H.left,H.element.scrollTop=H.top}}cs=!!_u,Du=_u=null}finally{Le=o,Q.p=a,j.T=n}}e.current=t,bt=2}}function Xh(){if(bt===2){bt=0;var e=pa,t=Bi,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=j.T,j.T=null;var a=Q.p;Q.p=2;var o=Le;Le|=4;try{xh(e,t.alternate,t)}finally{Le=o,Q.p=a,j.T=n}}bt=3}}function Zh(){if(bt===4||bt===3){bt=0,F();var e=pa,t=Bi,n=Xn,a=Oh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?bt=5:(bt=0,Bi=pa=null,Jh(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(ga=null),Bs(n),t=t.stateNode,dt&&typeof dt.onCommitFiberRoot=="function")try{dt.onCommitFiberRoot(Nn,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=j.T,o=Q.p,Q.p=2,j.T=null;try{for(var u=e.onRecoverableError,m=0;m<a.length;m++){var b=a[m];u(b.value,{componentStack:b.stack})}}finally{j.T=t,Q.p=o}}(Xn&3)!==0&&$l(),Dn(e),o=e.pendingLanes,(n&261930)!==0&&(o&42)!==0?e===gu?Rr++:(Rr=0,gu=e):Rr=0,Nr(0)}}function Jh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,fr(t)))}function $l(){return Qh(),Xh(),Zh(),Ph()}function Ph(){if(bt!==5)return!1;var e=pa,t=hu;hu=0;var n=Bs(Xn),a=j.T,o=Q.p;try{Q.p=32>n?32:n,j.T=null,n=mu,mu=null;var u=pa,m=Xn;if(bt=0,Bi=pa=null,Xn=0,(Le&6)!==0)throw Error(l(331));var b=Le;if(Le|=4,Mh(u.current),Dh(u,u.current,m,n),Le=b,Nr(0,!1),dt&&typeof dt.onPostCommitFiberRoot=="function")try{dt.onPostCommitFiberRoot(Nn,u)}catch{}return!0}finally{Q.p=o,j.T=a,Jh(e,t)}}function $h(e,t,n){t=an(n,t),t=Qo(e.stateNode,t,2),e=ua(e,t,2),e!==null&&(Et(e,2),Dn(e))}function Ve(e,t,n){if(e.tag===3)$h(e,e,n);else for(;t!==null;){if(t.tag===3){$h(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ga===null||!ga.has(a))){e=an(n,e),n=Wd(2),a=ua(t,n,2),a!==null&&(eh(n,a,t,e),Et(a,2),Dn(a));break}}t=t.return}}function yu(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new bv;var o=new Set;a.set(t,o)}else o=a.get(t),o===void 0&&(o=new Set,a.set(t,o));o.has(n)||(cu=!0,o.add(n),e=Av.bind(null,e,t,n),t.then(e,e))}function Av(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ze===e&&(ze&n)===n&&(st===4||st===3&&(ze&62914560)===ze&&300>V()-Gl?(Le&2)===0&&Oi(e,0):fu|=n,zi===ze&&(zi=0)),Dn(e)}function Wh(e,t){t===0&&(t=Xe()),e=ja(e,t),e!==null&&(Et(e,t),Dn(e))}function Tv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Wh(e,n)}function Cv(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(l(314))}a!==null&&a.delete(t),Wh(e,n)}function Uv(e,t){return p(e,t)}var Wl=null,qi=null,bu=!1,es=!1,Su=!1,ya=0;function Dn(e){e!==qi&&e.next===null&&(qi===null?Wl=qi=e:qi=qi.next=e),es=!0,bu||(bu=!0,Dv())}function Nr(e,t){if(!Su&&es){Su=!0;do for(var n=!1,a=Wl;a!==null;){if(e!==0){var o=a.pendingLanes;if(o===0)var u=0;else{var m=a.suspendedLanes,b=a.pingedLanes;u=(1<<31-ht(42|e)+1)-1,u&=o&~(m&~b),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,am(a,u))}else u=ze,u=ai(a,a===Ze?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||Ee(a,u)||(n=!0,am(a,u));a=a.next}while(n);Su=!1}}function _v(){em()}function em(){es=bu=!1;var e=0;ya!==0&&Lv()&&(e=ya);for(var t=V(),n=null,a=Wl;a!==null;){var o=a.next,u=tm(a,t);u===0?(a.next=null,n===null?Wl=o:n.next=o,o===null&&(qi=n)):(n=a,(e!==0||(u&3)!==0)&&(es=!0)),a=o}bt!==0&&bt!==5||Nr(e),ya!==0&&(ya=0)}function tm(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,o=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var m=31-ht(u),b=1<<m,C=o[m];C===-1?((b&n)===0||(b&a)!==0)&&(o[m]=He(b,t)):C<=t&&(e.expiredLanes|=b),u&=~b}if(t=Ze,n=ze,n=ai(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(Fe===2||Fe===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&T(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Ee(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&T(a),Bs(n)){case 2:case 8:n=je;break;case 32:n=rt;break;case 268435456:n=Wt;break;default:n=rt}return a=nm.bind(null,e),n=p(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&T(a),e.callbackPriority=2,e.callbackNode=null,2}function nm(e,t){if(bt!==0&&bt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if($l()&&e.callbackNode!==n)return null;var a=ze;return a=ai(e,e===Ze?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(qh(e,a,t),tm(e,V()),e.callbackNode!=null&&e.callbackNode===n?nm.bind(null,e):null)}function am(e,t){if($l())return null;qh(e,t,!0)}function Dv(){Fv(function(){(Le&6)!==0?p(Te,_v):em()})}function wu(){if(ya===0){var e=xi;e===0&&(e=Na,Na<<=1,(Na&261888)===0&&(Na=256)),ya=e}return ya}function im(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ol(""+e)}function rm(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Rv(e,t,n,a,o){if(t==="submit"&&n&&n.stateNode===o){var u=im((o[jt]||null).action),m=a.submitter;m&&(t=(t=m[jt]||null)?im(t.formAction):m.getAttribute("formAction"),t!==null&&(u=t,m=null));var b=new dl("action","action",null,a,o);e.push({event:b,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(ya!==0){var C=m?rm(o,m):new FormData(o);Fo(n,{pending:!0,data:C,method:o.method,action:u},null,C)}}else typeof u=="function"&&(b.preventDefault(),C=m?rm(o,m):new FormData(o),Fo(n,{pending:!0,data:C,method:o.method,action:u},u,C))},currentTarget:o}]})}}for(var xu=0;xu<ao.length;xu++){var Eu=ao[xu],Nv=Eu.toLowerCase(),Mv=Eu[0].toUpperCase()+Eu.slice(1);Sn(Nv,"on"+Mv)}Sn(jf,"onAnimationEnd"),Sn(qf,"onAnimationIteration"),Sn(kf,"onAnimationStart"),Sn("dblclick","onDoubleClick"),Sn("focusin","onFocus"),Sn("focusout","onBlur"),Sn(Xp,"onTransitionRun"),Sn(Zp,"onTransitionStart"),Sn(Jp,"onTransitionCancel"),Sn(Lf,"onTransitionEnd"),oi("onMouseEnter",["mouseout","mouseover"]),oi("onMouseLeave",["mouseout","mouseover"]),oi("onPointerEnter",["pointerout","pointerover"]),oi("onPointerLeave",["pointerout","pointerover"]),Ma("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ma("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ma("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ma("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ma("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ma("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),zv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Mr));function lm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],o=a.event;a=a.listeners;e:{var u=void 0;if(t)for(var m=a.length-1;0<=m;m--){var b=a[m],C=b.instance,B=b.currentTarget;if(b=b.listener,C!==u&&o.isPropagationStopped())break e;u=b,o.currentTarget=B;try{u(o)}catch(k){gl(k)}o.currentTarget=null,u=C}else for(m=0;m<a.length;m++){if(b=a[m],C=b.instance,B=b.currentTarget,b=b.listener,C!==u&&o.isPropagationStopped())break e;u=b,o.currentTarget=B;try{u(o)}catch(k){gl(k)}o.currentTarget=null,u=C}}}}function Me(e,t){var n=t[Os];n===void 0&&(n=t[Os]=new Set);var a=e+"__bubble";n.has(a)||(sm(t,e,2,!1),n.add(a))}function Au(e,t,n){var a=0;t&&(a|=4),sm(n,e,a,t)}var ts="_reactListening"+Math.random().toString(36).slice(2);function Tu(e){if(!e[ts]){e[ts]=!0,Wc.forEach(function(n){n!=="selectionchange"&&(zv.has(n)||Au(n,!1,e),Au(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ts]||(t[ts]=!0,Au("selectionchange",!1,t))}}function sm(e,t,n,a){switch(jm(t)){case 2:var o=sy;break;case 8:o=oy;break;default:o=Hu}n=o.bind(null,t,n,e),o=void 0,!Ys||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),a?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Cu(e,t,n,a,o){var u=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var m=a.tag;if(m===3||m===4){var b=a.stateNode.containerInfo;if(b===o)break;if(m===4)for(m=a.return;m!==null;){var C=m.tag;if((C===3||C===4)&&m.stateNode.containerInfo===o)return;m=m.return}for(;b!==null;){if(m=ri(b),m===null)return;if(C=m.tag,C===5||C===6||C===26||C===27){a=u=m;continue e}b=b.parentNode}}a=a.return}df(function(){var B=u,k=Vs(n),Y=[];e:{var O=Hf.get(e);if(O!==void 0){var q=dl,de=e;switch(e){case"keypress":if(cl(n)===0)break e;case"keydown":case"keyup":q=Cp;break;case"focusin":de="focus",q=Xs;break;case"focusout":de="blur",q=Xs;break;case"beforeblur":case"afterblur":q=Xs;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":q=gf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=mp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=Dp;break;case jf:case qf:case kf:q=vp;break;case Lf:q=Np;break;case"scroll":case"scrollend":q=dp;break;case"wheel":q=zp;break;case"copy":case"cut":case"paste":q=bp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=vf;break;case"toggle":case"beforetoggle":q=Op}var we=(t&4)!==0,Qe=!we&&(e==="scroll"||e==="scrollend"),R=we?O!==null?O+"Capture":null:O;we=[];for(var _=B,z;_!==null;){var H=_;if(z=H.stateNode,H=H.tag,H!==5&&H!==26&&H!==27||z===null||R===null||(H=er(_,R),H!=null&&we.push(zr(_,H,z))),Qe)break;_=_.return}0<we.length&&(O=new q(O,de,null,n,k),Y.push({event:O,listeners:we}))}}if((t&7)===0){e:{if(O=e==="mouseover"||e==="pointerover",q=e==="mouseout"||e==="pointerout",O&&n!==Fs&&(de=n.relatedTarget||n.fromElement)&&(ri(de)||de[ii]))break e;if((q||O)&&(O=k.window===k?k:(O=k.ownerDocument)?O.defaultView||O.parentWindow:window,q?(de=n.relatedTarget||n.toElement,q=B,de=de?ri(de):null,de!==null&&(Qe=f(de),we=de.tag,de!==Qe||we!==5&&we!==27&&we!==6)&&(de=null)):(q=null,de=B),q!==de)){if(we=gf,H="onMouseLeave",R="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(we=vf,H="onPointerLeave",R="onPointerEnter",_="pointer"),Qe=q==null?O:Wi(q),z=de==null?O:Wi(de),O=new we(H,_+"leave",q,n,k),O.target=Qe,O.relatedTarget=z,H=null,ri(k)===B&&(we=new we(R,_+"enter",de,n,k),we.target=z,we.relatedTarget=Qe,H=we),Qe=H,q&&de)t:{for(we=Bv,R=q,_=de,z=0,H=R;H;H=we(H))z++;H=0;for(var ye=_;ye;ye=we(ye))H++;for(;0<z-H;)R=we(R),z--;for(;0<H-z;)_=we(_),H--;for(;z--;){if(R===_||_!==null&&R===_.alternate){we=R;break t}R=we(R),_=we(_)}we=null}else we=null;q!==null&&om(Y,O,q,we,!1),de!==null&&Qe!==null&&om(Y,Qe,de,we,!0)}}e:{if(O=B?Wi(B):window,q=O.nodeName&&O.nodeName.toLowerCase(),q==="select"||q==="input"&&O.type==="file")var qe=Tf;else if(Ef(O))if(Cf)qe=Ip;else{qe=Kp;var ve=Vp}else q=O.nodeName,!q||q.toLowerCase()!=="input"||O.type!=="checkbox"&&O.type!=="radio"?B&&Hs(B.elementType)&&(qe=Tf):qe=Yp;if(qe&&(qe=qe(e,B))){Af(Y,qe,n,k);break e}ve&&ve(e,O,B),e==="focusout"&&B&&O.type==="number"&&B.memoizedProps.value!=null&&Ls(O,"number",O.value)}switch(ve=B?Wi(B):window,e){case"focusin":(Ef(ve)||ve.contentEditable==="true")&&(mi=ve,eo=B,or=null);break;case"focusout":or=eo=mi=null;break;case"mousedown":to=!0;break;case"contextmenu":case"mouseup":case"dragend":to=!1,Bf(Y,n,k);break;case"selectionchange":if(Qp)break;case"keydown":case"keyup":Bf(Y,n,k)}var Ue;if(Js)e:{switch(e){case"compositionstart":var Be="onCompositionStart";break e;case"compositionend":Be="onCompositionEnd";break e;case"compositionupdate":Be="onCompositionUpdate";break e}Be=void 0}else hi?wf(e,n)&&(Be="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Be="onCompositionStart");Be&&(yf&&n.locale!=="ko"&&(hi||Be!=="onCompositionStart"?Be==="onCompositionEnd"&&hi&&(Ue=hf()):(na=k,Is="value"in na?na.value:na.textContent,hi=!0)),ve=ns(B,Be),0<ve.length&&(Be=new pf(Be,e,null,n,k),Y.push({event:Be,listeners:ve}),Ue?Be.data=Ue:(Ue=xf(n),Ue!==null&&(Be.data=Ue)))),(Ue=qp?kp(e,n):Lp(e,n))&&(Be=ns(B,"onBeforeInput"),0<Be.length&&(ve=new pf("onBeforeInput","beforeinput",null,n,k),Y.push({event:ve,listeners:Be}),ve.data=Ue)),Rv(Y,e,B,n,k)}lm(Y,t)})}function zr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ns(e,t){for(var n=t+"Capture",a=[];e!==null;){var o=e,u=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||u===null||(o=er(e,n),o!=null&&a.unshift(zr(e,o,u)),o=er(e,t),o!=null&&a.push(zr(e,o,u))),e.tag===3)return a;e=e.return}return[]}function Bv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function om(e,t,n,a,o){for(var u=t._reactName,m=[];n!==null&&n!==a;){var b=n,C=b.alternate,B=b.stateNode;if(b=b.tag,C!==null&&C===a)break;b!==5&&b!==26&&b!==27||B===null||(C=B,o?(B=er(n,u),B!=null&&m.unshift(zr(n,B,C))):o||(B=er(n,u),B!=null&&m.push(zr(n,B,C)))),n=n.return}m.length!==0&&e.push({event:t,listeners:m})}var Ov=/\r\n?/g,jv=/\u0000|\uFFFD/g;function um(e){return(typeof e=="string"?e:""+e).replace(Ov,`
|
|
10
|
+
`).replace(jv,"")}function cm(e,t){return t=um(t),um(e)===t}function Ge(e,t,n,a,o,u){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||ci(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&ci(e,""+a);break;case"className":ll(e,"class",a);break;case"tabIndex":ll(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":ll(e,n,a);break;case"style":cf(e,a,u);break;case"data":if(t!=="object"){ll(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=ol(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(n==="formAction"?(t!=="input"&&Ge(e,t,"name",o.name,o,null),Ge(e,t,"formEncType",o.formEncType,o,null),Ge(e,t,"formMethod",o.formMethod,o,null),Ge(e,t,"formTarget",o.formTarget,o,null)):(Ge(e,t,"encType",o.encType,o,null),Ge(e,t,"method",o.method,o,null),Ge(e,t,"target",o.target,o,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=ol(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=zn);break;case"onScroll":a!=null&&Me("scroll",e);break;case"onScrollEnd":a!=null&&Me("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(l(61));if(n=a.__html,n!=null){if(o.children!=null)throw Error(l(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=ol(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":Me("beforetoggle",e),Me("toggle",e),rl(e,"popover",a);break;case"xlinkActuate":Mn(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Mn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Mn(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Mn(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Mn(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Mn(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Mn(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Mn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Mn(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":rl(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=cp.get(n)||n,rl(e,n,a))}}function Uu(e,t,n,a,o,u){switch(n){case"style":cf(e,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(l(61));if(n=a.__html,n!=null){if(o.children!=null)throw Error(l(60));e.innerHTML=n}}break;case"children":typeof a=="string"?ci(e,a):(typeof a=="number"||typeof a=="bigint")&&ci(e,""+a);break;case"onScroll":a!=null&&Me("scroll",e);break;case"onScrollEnd":a!=null&&Me("scrollend",e);break;case"onClick":a!=null&&(e.onclick=zn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ef.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),u=e[jt]||null,u=u!=null?u[n]:null,typeof u=="function"&&e.removeEventListener(t,u,o),typeof a=="function")){typeof u!="function"&&u!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,o);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):rl(e,n,a)}}}function _t(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Me("error",e),Me("load",e);var a=!1,o=!1,u;for(u in n)if(n.hasOwnProperty(u)){var m=n[u];if(m!=null)switch(u){case"src":a=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:Ge(e,t,u,m,n,null)}}o&&Ge(e,t,"srcSet",n.srcSet,n,null),a&&Ge(e,t,"src",n.src,n,null);return;case"input":Me("invalid",e);var b=u=m=o=null,C=null,B=null;for(a in n)if(n.hasOwnProperty(a)){var k=n[a];if(k!=null)switch(a){case"name":o=k;break;case"type":m=k;break;case"checked":C=k;break;case"defaultChecked":B=k;break;case"value":u=k;break;case"defaultValue":b=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(l(137,t));break;default:Ge(e,t,a,k,n,null)}}lf(e,u,b,C,B,m,o,!1);return;case"select":Me("invalid",e),a=m=u=null;for(o in n)if(n.hasOwnProperty(o)&&(b=n[o],b!=null))switch(o){case"value":u=b;break;case"defaultValue":m=b;break;case"multiple":a=b;default:Ge(e,t,o,b,n,null)}t=u,n=m,e.multiple=!!a,t!=null?ui(e,!!a,t,!1):n!=null&&ui(e,!!a,n,!0);return;case"textarea":Me("invalid",e),u=o=a=null;for(m in n)if(n.hasOwnProperty(m)&&(b=n[m],b!=null))switch(m){case"value":a=b;break;case"defaultValue":o=b;break;case"children":u=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(l(91));break;default:Ge(e,t,m,b,n,null)}of(e,a,o,u);return;case"option":for(C in n)if(n.hasOwnProperty(C)&&(a=n[C],a!=null))switch(C){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Ge(e,t,C,a,n,null)}return;case"dialog":Me("beforetoggle",e),Me("toggle",e),Me("cancel",e),Me("close",e);break;case"iframe":case"object":Me("load",e);break;case"video":case"audio":for(a=0;a<Mr.length;a++)Me(Mr[a],e);break;case"image":Me("error",e),Me("load",e);break;case"details":Me("toggle",e);break;case"embed":case"source":case"link":Me("error",e),Me("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(B in n)if(n.hasOwnProperty(B)&&(a=n[B],a!=null))switch(B){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:Ge(e,t,B,a,n,null)}return;default:if(Hs(t)){for(k in n)n.hasOwnProperty(k)&&(a=n[k],a!==void 0&&Uu(e,t,k,a,n,void 0));return}}for(b in n)n.hasOwnProperty(b)&&(a=n[b],a!=null&&Ge(e,t,b,a,n,null))}function qv(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,u=null,m=null,b=null,C=null,B=null,k=null;for(q in n){var Y=n[q];if(n.hasOwnProperty(q)&&Y!=null)switch(q){case"checked":break;case"value":break;case"defaultValue":C=Y;default:a.hasOwnProperty(q)||Ge(e,t,q,null,a,Y)}}for(var O in a){var q=a[O];if(Y=n[O],a.hasOwnProperty(O)&&(q!=null||Y!=null))switch(O){case"type":u=q;break;case"name":o=q;break;case"checked":B=q;break;case"defaultChecked":k=q;break;case"value":m=q;break;case"defaultValue":b=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(l(137,t));break;default:q!==Y&&Ge(e,t,O,q,a,Y)}}ks(e,m,b,C,B,k,u,o);return;case"select":q=m=b=O=null;for(u in n)if(C=n[u],n.hasOwnProperty(u)&&C!=null)switch(u){case"value":break;case"multiple":q=C;default:a.hasOwnProperty(u)||Ge(e,t,u,null,a,C)}for(o in a)if(u=a[o],C=n[o],a.hasOwnProperty(o)&&(u!=null||C!=null))switch(o){case"value":O=u;break;case"defaultValue":b=u;break;case"multiple":m=u;default:u!==C&&Ge(e,t,o,u,a,C)}t=b,n=m,a=q,O!=null?ui(e,!!n,O,!1):!!a!=!!n&&(t!=null?ui(e,!!n,t,!0):ui(e,!!n,n?[]:"",!1));return;case"textarea":q=O=null;for(b in n)if(o=n[b],n.hasOwnProperty(b)&&o!=null&&!a.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:Ge(e,t,b,null,a,o)}for(m in a)if(o=a[m],u=n[m],a.hasOwnProperty(m)&&(o!=null||u!=null))switch(m){case"value":O=o;break;case"defaultValue":q=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(l(91));break;default:o!==u&&Ge(e,t,m,o,a,u)}sf(e,O,q);return;case"option":for(var de in n)if(O=n[de],n.hasOwnProperty(de)&&O!=null&&!a.hasOwnProperty(de))switch(de){case"selected":e.selected=!1;break;default:Ge(e,t,de,null,a,O)}for(C in a)if(O=a[C],q=n[C],a.hasOwnProperty(C)&&O!==q&&(O!=null||q!=null))switch(C){case"selected":e.selected=O&&typeof O!="function"&&typeof O!="symbol";break;default:Ge(e,t,C,O,a,q)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var we in n)O=n[we],n.hasOwnProperty(we)&&O!=null&&!a.hasOwnProperty(we)&&Ge(e,t,we,null,a,O);for(B in a)if(O=a[B],q=n[B],a.hasOwnProperty(B)&&O!==q&&(O!=null||q!=null))switch(B){case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(l(137,t));break;default:Ge(e,t,B,O,a,q)}return;default:if(Hs(t)){for(var Qe in n)O=n[Qe],n.hasOwnProperty(Qe)&&O!==void 0&&!a.hasOwnProperty(Qe)&&Uu(e,t,Qe,void 0,a,O);for(k in a)O=a[k],q=n[k],!a.hasOwnProperty(k)||O===q||O===void 0&&q===void 0||Uu(e,t,k,O,a,q);return}}for(var R in n)O=n[R],n.hasOwnProperty(R)&&O!=null&&!a.hasOwnProperty(R)&&Ge(e,t,R,null,a,O);for(Y in a)O=a[Y],q=n[Y],!a.hasOwnProperty(Y)||O===q||O==null&&q==null||Ge(e,t,Y,O,a,q)}function fm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function kv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var o=n[a],u=o.transferSize,m=o.initiatorType,b=o.duration;if(u&&b&&fm(m)){for(m=0,b=o.responseEnd,a+=1;a<n.length;a++){var C=n[a],B=C.startTime;if(B>b)break;var k=C.transferSize,Y=C.initiatorType;k&&fm(Y)&&(C=C.responseEnd,m+=k*(C<b?1:(b-B)/(C-B)))}if(--a,t+=8*(u+m)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var _u=null,Du=null;function as(e){return e.nodeType===9?e:e.ownerDocument}function dm(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function hm(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Ru(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Nu=null;function Lv(){var e=window.event;return e&&e.type==="popstate"?e===Nu?!1:(Nu=e,!0):(Nu=null,!1)}var mm=typeof setTimeout=="function"?setTimeout:void 0,Hv=typeof clearTimeout=="function"?clearTimeout:void 0,gm=typeof Promise=="function"?Promise:void 0,Fv=typeof queueMicrotask=="function"?queueMicrotask:typeof gm<"u"?function(e){return gm.resolve(null).then(e).catch(Vv)}:mm;function Vv(e){setTimeout(function(){throw e})}function ba(e){return e==="head"}function pm(e,t){var n=t,a=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(o),Fi(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")Br(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Br(n);for(var u=n.firstChild;u;){var m=u.nextSibling,b=u.nodeName;u[$i]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=m}}else n==="body"&&Br(e.ownerDocument.body);n=o}while(n);Fi(t)}function vm(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function Mu(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Mu(n),js(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Kv(e,t,n,a){for(;e.nodeType===1;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[$i])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=un(e.nextSibling),e===null)break}return null}function Yv(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=un(e.nextSibling),e===null))return null;return e}function ym(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=un(e.nextSibling),e===null))return null;return e}function zu(e){return e.data==="$?"||e.data==="$~"}function Bu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Iv(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function un(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Ou=null;function bm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return un(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Sm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function wm(e,t,n){switch(t=as(n),e){case"html":if(e=t.documentElement,!e)throw Error(l(452));return e;case"head":if(e=t.head,!e)throw Error(l(453));return e;case"body":if(e=t.body,!e)throw Error(l(454));return e;default:throw Error(l(451))}}function Br(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);js(e)}var cn=new Map,xm=new Set;function is(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Zn=Q.d;Q.d={f:Gv,r:Qv,D:Xv,C:Zv,L:Jv,m:Pv,X:Wv,S:$v,M:ey};function Gv(){var e=Zn.f(),t=Zl();return e||t}function Qv(e){var t=li(e);t!==null&&t.tag===5&&t.type==="form"?Ld(t):Zn.r(e)}var ki=typeof document>"u"?null:document;function Em(e,t,n){var a=ki;if(a&&typeof t=="string"&&t){var o=tn(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),xm.has(o)||(xm.add(o),e={rel:e,crossOrigin:n,href:t},a.querySelector(o)===null&&(t=a.createElement("link"),_t(t,"link",e),wt(t),a.head.appendChild(t)))}}function Xv(e){Zn.D(e),Em("dns-prefetch",e,null)}function Zv(e,t){Zn.C(e,t),Em("preconnect",e,t)}function Jv(e,t,n){Zn.L(e,t,n);var a=ki;if(a&&e&&t){var o='link[rel="preload"][as="'+tn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+tn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+tn(n.imageSizes)+'"]')):o+='[href="'+tn(e)+'"]';var u=o;switch(t){case"style":u=Li(e);break;case"script":u=Hi(e)}cn.has(u)||(e=E({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),cn.set(u,e),a.querySelector(o)!==null||t==="style"&&a.querySelector(Or(u))||t==="script"&&a.querySelector(jr(u))||(t=a.createElement("link"),_t(t,"link",e),wt(t),a.head.appendChild(t)))}}function Pv(e,t){Zn.m(e,t);var n=ki;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+tn(a)+'"][href="'+tn(e)+'"]',u=o;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Hi(e)}if(!cn.has(u)&&(e=E({rel:"modulepreload",href:e},t),cn.set(u,e),n.querySelector(o)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(jr(u)))return}a=n.createElement("link"),_t(a,"link",e),wt(a),n.head.appendChild(a)}}}function $v(e,t,n){Zn.S(e,t,n);var a=ki;if(a&&e){var o=si(a).hoistableStyles,u=Li(e);t=t||"default";var m=o.get(u);if(!m){var b={loading:0,preload:null};if(m=a.querySelector(Or(u)))b.loading=5;else{e=E({rel:"stylesheet",href:e,"data-precedence":t},n),(n=cn.get(u))&&ju(e,n);var C=m=a.createElement("link");wt(C),_t(C,"link",e),C._p=new Promise(function(B,k){C.onload=B,C.onerror=k}),C.addEventListener("load",function(){b.loading|=1}),C.addEventListener("error",function(){b.loading|=2}),b.loading|=4,rs(m,t,a)}m={type:"stylesheet",instance:m,count:1,state:b},o.set(u,m)}}}function Wv(e,t){Zn.X(e,t);var n=ki;if(n&&e){var a=si(n).hoistableScripts,o=Hi(e),u=a.get(o);u||(u=n.querySelector(jr(o)),u||(e=E({src:e,async:!0},t),(t=cn.get(o))&&qu(e,t),u=n.createElement("script"),wt(u),_t(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(o,u))}}function ey(e,t){Zn.M(e,t);var n=ki;if(n&&e){var a=si(n).hoistableScripts,o=Hi(e),u=a.get(o);u||(u=n.querySelector(jr(o)),u||(e=E({src:e,async:!0,type:"module"},t),(t=cn.get(o))&&qu(e,t),u=n.createElement("script"),wt(u),_t(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(o,u))}}function Am(e,t,n,a){var o=(o=Je.current)?is(o):null;if(!o)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Li(n.href),n=si(o).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Li(n.href);var u=si(o).hoistableStyles,m=u.get(e);if(m||(o=o.ownerDocument||o,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,m),(u=o.querySelector(Or(e)))&&!u._p&&(m.instance=u,m.state.loading=5),cn.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},cn.set(e,n),u||ty(o,e,n,m.state))),t&&a===null)throw Error(l(528,""));return m}if(t&&a!==null)throw Error(l(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Hi(n),n=si(o).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function Li(e){return'href="'+tn(e)+'"'}function Or(e){return'link[rel="stylesheet"]['+e+"]"}function Tm(e){return E({},e,{"data-precedence":e.precedence,precedence:null})}function ty(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),_t(t,"link",n),wt(t),e.head.appendChild(t))}function Hi(e){return'[src="'+tn(e)+'"]'}function jr(e){return"script[async]"+e}function Cm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+tn(n.href)+'"]');if(a)return t.instance=a,wt(a),a;var o=E({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),wt(a),_t(a,"style",o),rs(a,n.precedence,e),t.instance=a;case"stylesheet":o=Li(n.href);var u=e.querySelector(Or(o));if(u)return t.state.loading|=4,t.instance=u,wt(u),u;a=Tm(n),(o=cn.get(o))&&ju(a,o),u=(e.ownerDocument||e).createElement("link"),wt(u);var m=u;return m._p=new Promise(function(b,C){m.onload=b,m.onerror=C}),_t(u,"link",a),t.state.loading|=4,rs(u,n.precedence,e),t.instance=u;case"script":return u=Hi(n.src),(o=e.querySelector(jr(u)))?(t.instance=o,wt(o),o):(a=n,(o=cn.get(u))&&(a=E({},n),qu(a,o)),e=e.ownerDocument||e,o=e.createElement("script"),wt(o),_t(o,"link",a),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(l(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,rs(a,n.precedence,e));return t.instance}function rs(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=a.length?a[a.length-1]:null,u=o,m=0;m<a.length;m++){var b=a[m];if(b.dataset.precedence===t)u=b;else if(u!==o)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function ju(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function qu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ls=null;function Um(e,t,n){if(ls===null){var a=new Map,o=ls=new Map;o.set(n,a)}else o=ls,a=o.get(n),a||(a=new Map,o.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var u=n[o];if(!(u[$i]||u[At]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var m=u.getAttribute(t)||"";m=e+m;var b=a.get(m);b?b.push(u):a.set(m,[u])}}return a}function _m(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function ny(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Dm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function ay(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=Li(a.href),u=t.querySelector(Or(o));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ss.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=u,wt(u);return}u=t.ownerDocument||t,a=Tm(a),(o=cn.get(o))&&ju(a,o),u=u.createElement("link"),wt(u);var m=u;m._p=new Promise(function(b,C){m.onload=b,m.onerror=C}),_t(u,"link",a),n.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=ss.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var ku=0;function iy(e,t){return e.stylesheets&&e.count===0&&us(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&us(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&ku===0&&(ku=62500*kv());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&us(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>ku?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(o)}}:null}function ss(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)us(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var os=null;function us(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,os=new Map,t.forEach(ry,e),os=null,ss.call(e))}function ry(e,t){if(!(t.state.loading&4)){var n=os.get(e);if(n)var a=n.get(null);else{n=new Map,os.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<o.length;u++){var m=o[u];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(n.set(m.dataset.precedence,m),a=m)}a&&n.set(null,a)}o=t.instance,m=o.getAttribute("data-precedence"),u=n.get(m)||a,u===a&&n.set(null,o),n.set(m,o),this.count++,a=ss.bind(this),o.addEventListener("load",a),o.addEventListener("error",a),u?u.parentNode.insertBefore(o,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var qr={$$typeof:J,Provider:null,Consumer:null,_currentValue:G,_currentValue2:G,_threadCount:0};function ly(e,t,n,a,o,u,m,b,C){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Rt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Rt(0),this.hiddenUpdates=Rt(null),this.identifierPrefix=a,this.onUncaughtError=o,this.onCaughtError=u,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=C,this.incompleteTransitions=new Map}function Rm(e,t,n,a,o,u,m,b,C,B,k,Y){return e=new ly(e,t,n,m,C,B,k,Y,b),t=1,u===!0&&(t|=24),u=It(3,null,null,t),e.current=u,u.stateNode=e,t=vo(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:n,cache:t},wo(u),e}function Nm(e){return e?(e=vi,e):vi}function Mm(e,t,n,a,o,u){o=Nm(o),a.context===null?a.context=o:a.pendingContext=o,a=oa(t),a.payload={element:n},u=u===void 0?null:u,u!==null&&(a.callback=u),n=ua(e,a,t),n!==null&&(Vt(n,e,t),gr(n,e,t))}function zm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Lu(e,t){zm(e,t),(e=e.alternate)&&zm(e,t)}function Bm(e){if(e.tag===13||e.tag===31){var t=ja(e,67108864);t!==null&&Vt(t,e,67108864),Lu(e,67108864)}}function Om(e){if(e.tag===13||e.tag===31){var t=Jt();t=zs(t);var n=ja(e,t);n!==null&&Vt(n,e,t),Lu(e,t)}}var cs=!0;function sy(e,t,n,a){var o=j.T;j.T=null;var u=Q.p;try{Q.p=2,Hu(e,t,n,a)}finally{Q.p=u,j.T=o}}function oy(e,t,n,a){var o=j.T;j.T=null;var u=Q.p;try{Q.p=8,Hu(e,t,n,a)}finally{Q.p=u,j.T=o}}function Hu(e,t,n,a){if(cs){var o=Fu(a);if(o===null)Cu(e,t,a,fs,n),qm(e,a);else if(cy(o,e,t,n,a))a.stopPropagation();else if(qm(e,a),t&4&&-1<uy.indexOf(e)){for(;o!==null;){var u=li(o);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var m=Dt(u.pendingLanes);if(m!==0){var b=u;for(b.pendingLanes|=2,b.entangledLanes|=2;m;){var C=1<<31-ht(m);b.entanglements[1]|=C,m&=~C}Dn(u),(Le&6)===0&&(Ql=V()+500,Nr(0))}}break;case 31:case 13:b=ja(u,2),b!==null&&Vt(b,u,2),Zl(),Lu(u,2)}if(u=Fu(a),u===null&&Cu(e,t,a,fs,n),u===o)break;o=u}o!==null&&a.stopPropagation()}else Cu(e,t,a,null,n)}}function Fu(e){return e=Vs(e),Vu(e)}var fs=null;function Vu(e){if(fs=null,e=ri(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=d(t),e!==null)return e;e=null}else if(n===31){if(e=h(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return fs=e,null}function jm(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Re()){case Te:return 2;case je:return 8;case rt:case Pe:return 32;case Wt:return 268435456;default:return 32}default:return 32}}var Ku=!1,Sa=null,wa=null,xa=null,kr=new Map,Lr=new Map,Ea=[],uy="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function qm(e,t){switch(e){case"focusin":case"focusout":Sa=null;break;case"dragenter":case"dragleave":wa=null;break;case"mouseover":case"mouseout":xa=null;break;case"pointerover":case"pointerout":kr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Lr.delete(t.pointerId)}}function Hr(e,t,n,a,o,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:u,targetContainers:[o]},t!==null&&(t=li(t),t!==null&&Bm(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function cy(e,t,n,a,o){switch(t){case"focusin":return Sa=Hr(Sa,e,t,n,a,o),!0;case"dragenter":return wa=Hr(wa,e,t,n,a,o),!0;case"mouseover":return xa=Hr(xa,e,t,n,a,o),!0;case"pointerover":var u=o.pointerId;return kr.set(u,Hr(kr.get(u)||null,e,t,n,a,o)),!0;case"gotpointercapture":return u=o.pointerId,Lr.set(u,Hr(Lr.get(u)||null,e,t,n,a,o)),!0}return!1}function km(e){var t=ri(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=d(n),t!==null){e.blockedOn=t,Pc(e.priority,function(){Om(n)});return}}else if(t===31){if(t=h(n),t!==null){e.blockedOn=t,Pc(e.priority,function(){Om(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ds(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Fu(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);Fs=a,n.target.dispatchEvent(a),Fs=null}else return t=li(n),t!==null&&Bm(t),e.blockedOn=n,!1;t.shift()}return!0}function Lm(e,t,n){ds(e)&&n.delete(t)}function fy(){Ku=!1,Sa!==null&&ds(Sa)&&(Sa=null),wa!==null&&ds(wa)&&(wa=null),xa!==null&&ds(xa)&&(xa=null),kr.forEach(Lm),Lr.forEach(Lm)}function hs(e,t){e.blockedOn===t&&(e.blockedOn=null,Ku||(Ku=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,fy)))}var ms=null;function Hm(e){ms!==e&&(ms=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){ms===e&&(ms=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],o=e[t+2];if(typeof a!="function"){if(Vu(a||n)===null)continue;break}var u=li(n);u!==null&&(e.splice(t,3),t-=3,Fo(u,{pending:!0,data:o,method:n.method,action:a},a,o))}}))}function Fi(e){function t(C){return hs(C,e)}Sa!==null&&hs(Sa,e),wa!==null&&hs(wa,e),xa!==null&&hs(xa,e),kr.forEach(t),Lr.forEach(t);for(var n=0;n<Ea.length;n++){var a=Ea[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Ea.length&&(n=Ea[0],n.blockedOn===null);)km(n),n.blockedOn===null&&Ea.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var o=n[a],u=n[a+1],m=o[jt]||null;if(typeof u=="function")m||Hm(n);else if(m){var b=null;if(u&&u.hasAttribute("formAction")){if(o=u,m=u[jt]||null)b=m.formAction;else if(Vu(o)!==null)continue}else b=m.action;typeof b=="function"?n[a+1]=b:(n.splice(a,3),a-=3),Hm(n)}}}function Fm(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(m){return o=m})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function Yu(e){this._internalRoot=e}gs.prototype.render=Yu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(l(409));var n=t.current,a=Jt();Mm(n,a,e,t,null,null)},gs.prototype.unmount=Yu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Mm(e.current,2,null,e,null,null),Zl(),t[ii]=null}};function gs(e){this._internalRoot=e}gs.prototype.unstable_scheduleHydration=function(e){if(e){var t=Jc();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ea.length&&t!==0&&t<Ea[n].priority;n++);Ea.splice(n,0,e),n===0&&km(e)}};var Vm=r.version;if(Vm!=="19.2.4")throw Error(l(527,Vm,"19.2.4"));Q.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(l(188)):(e=Object.keys(e).join(","),Error(l(268,e)));return e=y(t),e=e!==null?w(e):null,e=e===null?null:e.stateNode,e};var dy={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ps=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ps.isDisabled&&ps.supportsFiber)try{Nn=ps.inject(dy),dt=ps}catch{}}return Fr.createRoot=function(e,t){if(!c(e))throw Error(l(299));var n=!1,a="",o=Zd,u=Jd,m=Pd;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(m=t.onRecoverableError)),t=Rm(e,1,!1,null,null,n,a,null,o,u,m,Fm),e[ii]=t.current,Tu(e),new Yu(t)},Fr.hydrateRoot=function(e,t,n){if(!c(e))throw Error(l(299));var a=!1,o="",u=Zd,m=Jd,b=Pd,C=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(m=n.onCaughtError),n.onRecoverableError!==void 0&&(b=n.onRecoverableError),n.formState!==void 0&&(C=n.formState)),t=Rm(e,1,!0,t,n??null,a,o,C,u,m,b,Fm),t.context=Nm(null),n=t.current,a=Jt(),a=zs(a),o=oa(a),o.callback=null,ua(n,o,a),n=a,t.current.lanes=n,Et(t,n),Dn(t),e[ii]=t.current,Tu(e),new gs(t)},Fr.version="19.2.4",Fr}var Qm;function Xy(){if(Qm)return Iu.exports;Qm=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(r){console.error(r)}}return i(),Iu.exports=Qy(),Iu.exports}var Zy=Xy();const yg=(...i)=>i.filter((r,s,l)=>!!r&&r.trim()!==""&&l.indexOf(r)===s).join(" ").trim();const Jy=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const Py=i=>i.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,s,l)=>l?l.toUpperCase():s.toLowerCase());const Xm=i=>{const r=Py(i);return r.charAt(0).toUpperCase()+r.slice(1)};var $y={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"};const Wy=i=>{for(const r in i)if(r.startsWith("aria-")||r==="role"||r==="title")return!0;return!1};const e1=ae.forwardRef(({color:i="currentColor",size:r=24,strokeWidth:s=2,absoluteStrokeWidth:l,className:c="",children:f,iconNode:d,...h},v)=>ae.createElement("svg",{ref:v,...$y,width:r,height:r,stroke:i,strokeWidth:l?Number(s)*24/Number(r):s,className:yg("lucide",c),...!f&&!Wy(h)&&{"aria-hidden":"true"},...h},[...d.map(([y,w])=>ae.createElement(y,w)),...Array.isArray(f)?f:[f]]));const ot=(i,r)=>{const s=ae.forwardRef(({className:l,...c},f)=>ae.createElement(e1,{ref:f,iconNode:r,className:yg(`lucide-${Jy(Xm(i))}`,`lucide-${i}`,l),...c}));return s.displayName=Xm(i),s};const t1=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],n1=ot("archive",t1);const a1=[["path",{d:"M10 22V7a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5a1 1 0 0 0-1-1H2",key:"1ah6g2"}],["rect",{x:"14",y:"2",width:"8",height:"8",rx:"1",key:"88lufb"}]],i1=ot("blocks",a1);const r1=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],l1=ot("chevrons-up-down",r1);const s1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],o1=ot("circle-check",s1);const u1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]],c1=ot("circle-user",u1);const f1=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],d1=ot("clock",f1);const h1=[["path",{d:"M11 10.27 7 3.34",key:"16pf9h"}],["path",{d:"m11 13.73-4 6.93",key:"794ttg"}],["path",{d:"M12 22v-2",key:"1osdcq"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M14 12h8",key:"4f43i9"}],["path",{d:"m17 20.66-1-1.73",key:"eq3orb"}],["path",{d:"m17 3.34-1 1.73",key:"2wel8s"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"m20.66 17-1.73-1",key:"sg0v6f"}],["path",{d:"m20.66 7-1.73 1",key:"1ow05n"}],["path",{d:"m3.34 17 1.73-1",key:"nuk764"}],["path",{d:"m3.34 7 1.73 1",key:"1ulond"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["circle",{cx:"12",cy:"12",r:"8",key:"46899m"}]],m1=ot("cog",h1);const g1=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],p1=ot("database",g1);const v1=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],y1=ot("file-text",v1);const b1=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],S1=ot("history",b1);const w1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],x1=ot("image",w1);const E1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],A1=ot("info",E1);const T1=[["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"}]],C1=ot("key",T1);const U1=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Pn=ot("loader-circle",U1);const _1=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],D1=ot("menu",_1);const R1=[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],N1=ot("octagon-x",R1);const M1=[["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"}]],bg=ot("settings",M1);const z1=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],B1=ot("tag",z1);const O1=[["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"}]],j1=ot("triangle-alert",O1);const q1=[["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"}]],k1=ot("users",q1);const L1=[["path",{d:"M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2",key:"q3hayz"}],["path",{d:"m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06",key:"1go1hn"}],["path",{d:"m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8",key:"qlwsc0"}]],H1=ot("webhook",L1);const F1=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Sg=ot("x",F1);var V1=(i,r,s,l,c,f,d,h)=>{let v=document.documentElement,y=["light","dark"];function w(S){(Array.isArray(i)?i:[i]).forEach(N=>{let D=N==="class",I=D&&f?c.map(K=>f[K]||K):c;D?(v.classList.remove(...I),v.classList.add(f&&f[S]?f[S]:S)):v.setAttribute(N,S)}),E(S)}function E(S){h&&y.includes(S)&&(v.style.colorScheme=S)}function U(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(l)w(l);else try{let S=localStorage.getItem(r)||s,N=d&&S==="system"?U():S;w(N)}catch{}},K1=ae.createContext(void 0),Y1={setTheme:i=>{},themes:[]},I1=()=>{var i;return(i=ae.useContext(K1))!=null?i:Y1};ae.memo(({forcedTheme:i,storageKey:r,attribute:s,enableSystem:l,enableColorScheme:c,defaultTheme:f,value:d,themes:h,nonce:v,scriptProps:y})=>{let w=JSON.stringify([s,r,f,i,h,d,l,c]).slice(1,-1);return ae.createElement("script",{...y,suppressHydrationWarning:!0,nonce:typeof window>"u"?v:"",dangerouslySetInnerHTML:{__html:`(${V1.toString()})(${w})`}})});var G1=i=>{switch(i){case"success":return Z1;case"info":return P1;case"warning":return J1;case"error":return $1;default:return null}},Q1=Array(12).fill(0),X1=({visible:i,className:r})=>ie.createElement("div",{className:["sonner-loading-wrapper",r].filter(Boolean).join(" "),"data-visible":i},ie.createElement("div",{className:"sonner-spinner"},Q1.map((s,l)=>ie.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${l}`})))),Z1=ie.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ie.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),J1=ie.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},ie.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),P1=ie.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ie.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),$1=ie.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ie.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),W1=ie.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},ie.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),ie.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),eb=()=>{let[i,r]=ie.useState(document.hidden);return ie.useEffect(()=>{let s=()=>{r(document.hidden)};return document.addEventListener("visibilitychange",s),()=>window.removeEventListener("visibilitychange",s)},[]),i},Dc=1,tb=class{constructor(){this.subscribe=i=>(this.subscribers.push(i),()=>{let r=this.subscribers.indexOf(i);this.subscribers.splice(r,1)}),this.publish=i=>{this.subscribers.forEach(r=>r(i))},this.addToast=i=>{this.publish(i),this.toasts=[...this.toasts,i]},this.create=i=>{var r;let{message:s,...l}=i,c=typeof i?.id=="number"||((r=i.id)==null?void 0:r.length)>0?i.id:Dc++,f=this.toasts.find(h=>h.id===c),d=i.dismissible===void 0?!0:i.dismissible;return this.dismissedToasts.has(c)&&this.dismissedToasts.delete(c),f?this.toasts=this.toasts.map(h=>h.id===c?(this.publish({...h,...i,id:c,title:s}),{...h,...i,id:c,dismissible:d,title:s}):h):this.addToast({title:s,...l,dismissible:d,id:c}),c},this.dismiss=i=>(this.dismissedToasts.add(i),i||this.toasts.forEach(r=>{this.subscribers.forEach(s=>s({id:r.id,dismiss:!0}))}),this.subscribers.forEach(r=>r({id:i,dismiss:!0})),i),this.message=(i,r)=>this.create({...r,message:i}),this.error=(i,r)=>this.create({...r,message:i,type:"error"}),this.success=(i,r)=>this.create({...r,type:"success",message:i}),this.info=(i,r)=>this.create({...r,type:"info",message:i}),this.warning=(i,r)=>this.create({...r,type:"warning",message:i}),this.loading=(i,r)=>this.create({...r,type:"loading",message:i}),this.promise=(i,r)=>{if(!r)return;let s;r.loading!==void 0&&(s=this.create({...r,promise:i,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));let l=i instanceof Promise?i:i(),c=s!==void 0,f,d=l.then(async v=>{if(f=["resolve",v],ie.isValidElement(v))c=!1,this.create({id:s,type:"default",message:v});else if(ab(v)&&!v.ok){c=!1;let y=typeof r.error=="function"?await r.error(`HTTP error! status: ${v.status}`):r.error,w=typeof r.description=="function"?await r.description(`HTTP error! status: ${v.status}`):r.description;this.create({id:s,type:"error",message:y,description:w})}else if(r.success!==void 0){c=!1;let y=typeof r.success=="function"?await r.success(v):r.success,w=typeof r.description=="function"?await r.description(v):r.description;this.create({id:s,type:"success",message:y,description:w})}}).catch(async v=>{if(f=["reject",v],r.error!==void 0){c=!1;let y=typeof r.error=="function"?await r.error(v):r.error,w=typeof r.description=="function"?await r.description(v):r.description;this.create({id:s,type:"error",message:y,description:w})}}).finally(()=>{var v;c&&(this.dismiss(s),s=void 0),(v=r.finally)==null||v.call(r)}),h=()=>new Promise((v,y)=>d.then(()=>f[0]==="reject"?y(f[1]):v(f[1])).catch(y));return typeof s!="string"&&typeof s!="number"?{unwrap:h}:Object.assign(s,{unwrap:h})},this.custom=(i,r)=>{let s=r?.id||Dc++;return this.create({jsx:i(s),id:s,...r}),s},this.getActiveToasts=()=>this.toasts.filter(i=>!this.dismissedToasts.has(i.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Kt=new tb,nb=(i,r)=>{let s=r?.id||Dc++;return Kt.addToast({title:i,...r,id:s}),s},ab=i=>i&&typeof i=="object"&&"ok"in i&&typeof i.ok=="boolean"&&"status"in i&&typeof i.status=="number",ib=nb,rb=()=>Kt.toasts,lb=()=>Kt.getActiveToasts(),vs=Object.assign(ib,{success:Kt.success,info:Kt.info,warning:Kt.warning,error:Kt.error,custom:Kt.custom,message:Kt.message,promise:Kt.promise,dismiss:Kt.dismiss,loading:Kt.loading},{getHistory:rb,getToasts:lb});function sb(i,{insertAt:r}={}){if(typeof document>"u")return;let s=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css",r==="top"&&s.firstChild?s.insertBefore(l,s.firstChild):s.appendChild(l),l.styleSheet?l.styleSheet.cssText=i:l.appendChild(document.createTextNode(i))}sb(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
|
|
11
|
+
`);function ys(i){return i.label!==void 0}var ob=3,ub="32px",cb="16px",Zm=4e3,fb=356,db=14,hb=20,mb=200;function En(...i){return i.filter(Boolean).join(" ")}function gb(i){let[r,s]=i.split("-"),l=[];return r&&l.push(r),s&&l.push(s),l}var pb=i=>{var r,s,l,c,f,d,h,v,y,w,E;let{invert:U,toast:S,unstyled:N,interacting:D,setHeights:I,visibleToasts:K,heights:P,index:J,toasts:$,expanded:oe,removeToast:X,defaultRichColors:W,closeButton:L,style:Z,cancelButtonStyle:ce,actionButtonStyle:ne,className:ee="",descriptionClassName:se="",duration:ue,position:Ae,gap:j,loadingIcon:Q,expandByDefault:G,classNames:re,icons:be,closeButtonAriaLabel:Se="Close toast",pauseWhenPageIsHidden:le}=i,[te,fe]=ie.useState(null),[_e,Je]=ie.useState(null),[pe,$e]=ie.useState(!1),[Ke,ut]=ie.useState(!1),[xe,Ye]=ie.useState(!1),[gn,pn]=ie.useState(!1),[Wn,vn]=ie.useState(!1),[Pi,x]=ie.useState(0),[g,p]=ie.useState(0),T=ie.useRef(S.duration||ue||Zm),M=ie.useRef(null),F=ie.useRef(null),V=J===0,Re=J+1<=K,Te=S.type,je=S.dismissible!==!1,rt=S.className||"",Pe=S.descriptionClassName||"",Wt=ie.useMemo(()=>P.findIndex(Ee=>Ee.toastId===S.id)||0,[P,S.id]),ti=ie.useMemo(()=>{var Ee;return(Ee=S.closeButton)!=null?Ee:L},[S.closeButton,L]),Ra=ie.useMemo(()=>S.duration||ue||Zm,[S.duration,ue]),Nn=ie.useRef(0),dt=ie.useRef(0),yn=ie.useRef(0),ht=ie.useRef(null),[Ns,Ms]=Ae.split("-"),il=ie.useMemo(()=>P.reduce((Ee,He,Xe)=>Xe>=Wt?Ee:Ee+He.height,0),[P,Wt]),Na=eb(),ni=S.invert||U,ea=Te==="loading";dt.current=ie.useMemo(()=>Wt*j+il,[Wt,il]),ie.useEffect(()=>{T.current=Ra},[Ra]),ie.useEffect(()=>{$e(!0)},[]),ie.useEffect(()=>{let Ee=F.current;if(Ee){let He=Ee.getBoundingClientRect().height;return p(He),I(Xe=>[{toastId:S.id,height:He,position:S.position},...Xe]),()=>I(Xe=>Xe.filter(Rt=>Rt.toastId!==S.id))}},[I,S.id]),ie.useLayoutEffect(()=>{if(!pe)return;let Ee=F.current,He=Ee.style.height;Ee.style.height="auto";let Xe=Ee.getBoundingClientRect().height;Ee.style.height=He,p(Xe),I(Rt=>Rt.find(Et=>Et.toastId===S.id)?Rt.map(Et=>Et.toastId===S.id?{...Et,height:Xe}:Et):[{toastId:S.id,height:Xe,position:S.position},...Rt])},[pe,S.title,S.description,I,S.id]);let Dt=ie.useCallback(()=>{ut(!0),x(dt.current),I(Ee=>Ee.filter(He=>He.toastId!==S.id)),setTimeout(()=>{X(S)},mb)},[S,X,I,dt]);ie.useEffect(()=>{if(S.promise&&Te==="loading"||S.duration===1/0||S.type==="loading")return;let Ee;return oe||D||le&&Na?(()=>{if(yn.current<Nn.current){let He=new Date().getTime()-Nn.current;T.current=T.current-He}yn.current=new Date().getTime()})():T.current!==1/0&&(Nn.current=new Date().getTime(),Ee=setTimeout(()=>{var He;(He=S.onAutoClose)==null||He.call(S,S),Dt()},T.current)),()=>clearTimeout(Ee)},[oe,D,S,Te,le,Na,Dt]),ie.useEffect(()=>{S.delete&&Dt()},[Dt,S.delete]);function ai(){var Ee,He,Xe;return be!=null&&be.loading?ie.createElement("div",{className:En(re?.loader,(Ee=S?.classNames)==null?void 0:Ee.loader,"sonner-loader"),"data-visible":Te==="loading"},be.loading):Q?ie.createElement("div",{className:En(re?.loader,(He=S?.classNames)==null?void 0:He.loader,"sonner-loader"),"data-visible":Te==="loading"},Q):ie.createElement(X1,{className:En(re?.loader,(Xe=S?.classNames)==null?void 0:Xe.loader),visible:Te==="loading"})}return ie.createElement("li",{tabIndex:0,ref:F,className:En(ee,rt,re?.toast,(r=S?.classNames)==null?void 0:r.toast,re?.default,re?.[Te],(s=S?.classNames)==null?void 0:s[Te]),"data-sonner-toast":"","data-rich-colors":(l=S.richColors)!=null?l:W,"data-styled":!(S.jsx||S.unstyled||N),"data-mounted":pe,"data-promise":!!S.promise,"data-swiped":Wn,"data-removed":Ke,"data-visible":Re,"data-y-position":Ns,"data-x-position":Ms,"data-index":J,"data-front":V,"data-swiping":xe,"data-dismissible":je,"data-type":Te,"data-invert":ni,"data-swipe-out":gn,"data-swipe-direction":_e,"data-expanded":!!(oe||G&&pe),style:{"--index":J,"--toasts-before":J,"--z-index":$.length-J,"--offset":`${Ke?Pi:dt.current}px`,"--initial-height":G?"auto":`${g}px`,...Z,...S.style},onDragEnd:()=>{Ye(!1),fe(null),ht.current=null},onPointerDown:Ee=>{ea||!je||(M.current=new Date,x(dt.current),Ee.target.setPointerCapture(Ee.pointerId),Ee.target.tagName!=="BUTTON"&&(Ye(!0),ht.current={x:Ee.clientX,y:Ee.clientY}))},onPointerUp:()=>{var Ee,He,Xe,Rt;if(gn||!je)return;ht.current=null;let Et=Number(((Ee=F.current)==null?void 0:Ee.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),An=Number(((He=F.current)==null?void 0:He.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Tn=new Date().getTime()-((Xe=M.current)==null?void 0:Xe.getTime()),Ot=te==="x"?Et:An,bn=Math.abs(Ot)/Tn;if(Math.abs(Ot)>=hb||bn>.11){x(dt.current),(Rt=S.onDismiss)==null||Rt.call(S,S),Je(te==="x"?Et>0?"right":"left":An>0?"down":"up"),Dt(),pn(!0),vn(!1);return}Ye(!1),fe(null)},onPointerMove:Ee=>{var He,Xe,Rt,Et;if(!ht.current||!je||((He=window.getSelection())==null?void 0:He.toString().length)>0)return;let An=Ee.clientY-ht.current.y,Tn=Ee.clientX-ht.current.x,Ot=(Xe=i.swipeDirections)!=null?Xe:gb(Ae);!te&&(Math.abs(Tn)>1||Math.abs(An)>1)&&fe(Math.abs(Tn)>Math.abs(An)?"x":"y");let bn={x:0,y:0};te==="y"?(Ot.includes("top")||Ot.includes("bottom"))&&(Ot.includes("top")&&An<0||Ot.includes("bottom")&&An>0)&&(bn.y=An):te==="x"&&(Ot.includes("left")||Ot.includes("right"))&&(Ot.includes("left")&&Tn<0||Ot.includes("right")&&Tn>0)&&(bn.x=Tn),(Math.abs(bn.x)>0||Math.abs(bn.y)>0)&&vn(!0),(Rt=F.current)==null||Rt.style.setProperty("--swipe-amount-x",`${bn.x}px`),(Et=F.current)==null||Et.style.setProperty("--swipe-amount-y",`${bn.y}px`)}},ti&&!S.jsx?ie.createElement("button",{"aria-label":Se,"data-disabled":ea,"data-close-button":!0,onClick:ea||!je?()=>{}:()=>{var Ee;Dt(),(Ee=S.onDismiss)==null||Ee.call(S,S)},className:En(re?.closeButton,(c=S?.classNames)==null?void 0:c.closeButton)},(f=be?.close)!=null?f:W1):null,S.jsx||ae.isValidElement(S.title)?S.jsx?S.jsx:typeof S.title=="function"?S.title():S.title:ie.createElement(ie.Fragment,null,Te||S.icon||S.promise?ie.createElement("div",{"data-icon":"",className:En(re?.icon,(d=S?.classNames)==null?void 0:d.icon)},S.promise||S.type==="loading"&&!S.icon?S.icon||ai():null,S.type!=="loading"?S.icon||be?.[Te]||G1(Te):null):null,ie.createElement("div",{"data-content":"",className:En(re?.content,(h=S?.classNames)==null?void 0:h.content)},ie.createElement("div",{"data-title":"",className:En(re?.title,(v=S?.classNames)==null?void 0:v.title)},typeof S.title=="function"?S.title():S.title),S.description?ie.createElement("div",{"data-description":"",className:En(se,Pe,re?.description,(y=S?.classNames)==null?void 0:y.description)},typeof S.description=="function"?S.description():S.description):null),ae.isValidElement(S.cancel)?S.cancel:S.cancel&&ys(S.cancel)?ie.createElement("button",{"data-button":!0,"data-cancel":!0,style:S.cancelButtonStyle||ce,onClick:Ee=>{var He,Xe;ys(S.cancel)&&je&&((Xe=(He=S.cancel).onClick)==null||Xe.call(He,Ee),Dt())},className:En(re?.cancelButton,(w=S?.classNames)==null?void 0:w.cancelButton)},S.cancel.label):null,ae.isValidElement(S.action)?S.action:S.action&&ys(S.action)?ie.createElement("button",{"data-button":!0,"data-action":!0,style:S.actionButtonStyle||ne,onClick:Ee=>{var He,Xe;ys(S.action)&&((Xe=(He=S.action).onClick)==null||Xe.call(He,Ee),!Ee.defaultPrevented&&Dt())},className:En(re?.actionButton,(E=S?.classNames)==null?void 0:E.actionButton)},S.action.label):null))};function Jm(){if(typeof window>"u"||typeof document>"u")return"ltr";let i=document.documentElement.getAttribute("dir");return i==="auto"||!i?window.getComputedStyle(document.documentElement).direction:i}function vb(i,r){let s={};return[i,r].forEach((l,c)=>{let f=c===1,d=f?"--mobile-offset":"--offset",h=f?cb:ub;function v(y){["top","right","bottom","left"].forEach(w=>{s[`${d}-${w}`]=typeof y=="number"?`${y}px`:y})}typeof l=="number"||typeof l=="string"?v(l):typeof l=="object"?["top","right","bottom","left"].forEach(y=>{l[y]===void 0?s[`${d}-${y}`]=h:s[`${d}-${y}`]=typeof l[y]=="number"?`${l[y]}px`:l[y]}):v(h)}),s}var yb=ae.forwardRef(function(i,r){let{invert:s,position:l="bottom-right",hotkey:c=["altKey","KeyT"],expand:f,closeButton:d,className:h,offset:v,mobileOffset:y,theme:w="light",richColors:E,duration:U,style:S,visibleToasts:N=ob,toastOptions:D,dir:I=Jm(),gap:K=db,loadingIcon:P,icons:J,containerAriaLabel:$="Notifications",pauseWhenPageIsHidden:oe}=i,[X,W]=ie.useState([]),L=ie.useMemo(()=>Array.from(new Set([l].concat(X.filter(le=>le.position).map(le=>le.position)))),[X,l]),[Z,ce]=ie.useState([]),[ne,ee]=ie.useState(!1),[se,ue]=ie.useState(!1),[Ae,j]=ie.useState(w!=="system"?w:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),Q=ie.useRef(null),G=c.join("+").replace(/Key/g,"").replace(/Digit/g,""),re=ie.useRef(null),be=ie.useRef(!1),Se=ie.useCallback(le=>{W(te=>{var fe;return(fe=te.find(_e=>_e.id===le.id))!=null&&fe.delete||Kt.dismiss(le.id),te.filter(({id:_e})=>_e!==le.id)})},[]);return ie.useEffect(()=>Kt.subscribe(le=>{if(le.dismiss){W(te=>te.map(fe=>fe.id===le.id?{...fe,delete:!0}:fe));return}setTimeout(()=>{Ay.flushSync(()=>{W(te=>{let fe=te.findIndex(_e=>_e.id===le.id);return fe!==-1?[...te.slice(0,fe),{...te[fe],...le},...te.slice(fe+1)]:[le,...te]})})})}),[]),ie.useEffect(()=>{if(w!=="system"){j(w);return}if(w==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?j("dark"):j("light")),typeof window>"u")return;let le=window.matchMedia("(prefers-color-scheme: dark)");try{le.addEventListener("change",({matches:te})=>{j(te?"dark":"light")})}catch{le.addListener(({matches:fe})=>{try{j(fe?"dark":"light")}catch(_e){console.error(_e)}})}},[w]),ie.useEffect(()=>{X.length<=1&&ee(!1)},[X]),ie.useEffect(()=>{let le=te=>{var fe,_e;c.every(Je=>te[Je]||te.code===Je)&&(ee(!0),(fe=Q.current)==null||fe.focus()),te.code==="Escape"&&(document.activeElement===Q.current||(_e=Q.current)!=null&&_e.contains(document.activeElement))&&ee(!1)};return document.addEventListener("keydown",le),()=>document.removeEventListener("keydown",le)},[c]),ie.useEffect(()=>{if(Q.current)return()=>{re.current&&(re.current.focus({preventScroll:!0}),re.current=null,be.current=!1)}},[Q.current]),ie.createElement("section",{ref:r,"aria-label":`${$} ${G}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},L.map((le,te)=>{var fe;let[_e,Je]=le.split("-");return X.length?ie.createElement("ol",{key:le,dir:I==="auto"?Jm():I,tabIndex:-1,ref:Q,className:h,"data-sonner-toaster":!0,"data-theme":Ae,"data-y-position":_e,"data-lifted":ne&&X.length>1&&!f,"data-x-position":Je,style:{"--front-toast-height":`${((fe=Z[0])==null?void 0:fe.height)||0}px`,"--width":`${fb}px`,"--gap":`${K}px`,...S,...vb(v,y)},onBlur:pe=>{be.current&&!pe.currentTarget.contains(pe.relatedTarget)&&(be.current=!1,re.current&&(re.current.focus({preventScroll:!0}),re.current=null))},onFocus:pe=>{pe.target instanceof HTMLElement&&pe.target.dataset.dismissible==="false"||be.current||(be.current=!0,re.current=pe.relatedTarget)},onMouseEnter:()=>ee(!0),onMouseMove:()=>ee(!0),onMouseLeave:()=>{se||ee(!1)},onDragEnd:()=>ee(!1),onPointerDown:pe=>{pe.target instanceof HTMLElement&&pe.target.dataset.dismissible==="false"||ue(!0)},onPointerUp:()=>ue(!1)},X.filter(pe=>!pe.position&&te===0||pe.position===le).map((pe,$e)=>{var Ke,ut;return ie.createElement(pb,{key:pe.id,icons:J,index:$e,toast:pe,defaultRichColors:E,duration:(Ke=D?.duration)!=null?Ke:U,className:D?.className,descriptionClassName:D?.descriptionClassName,invert:s,visibleToasts:N,closeButton:(ut=D?.closeButton)!=null?ut:d,interacting:se,position:le,style:D?.style,unstyled:D?.unstyled,classNames:D?.classNames,cancelButtonStyle:D?.cancelButtonStyle,actionButtonStyle:D?.actionButtonStyle,removeToast:Se,toasts:X.filter(xe=>xe.position==pe.position),heights:Z.filter(xe=>xe.position==pe.position),setHeights:ce,expandByDefault:f,gap:K,loadingIcon:P,expanded:ne,pauseWhenPageIsHidden:oe,swipeDirections:i.swipeDirections})})):null}))});const bb=({...i})=>{const{theme:r="system"}=I1();return A.jsx(yb,{theme:r,className:"toaster group",icons:{success:A.jsx(o1,{className:"size-4"}),info:A.jsx(A1,{className:"size-4"}),warning:A.jsx(j1,{className:"size-4"}),error:A.jsx(N1,{className:"size-4"}),loading:A.jsx(Pn,{className:"size-4 animate-spin"})},style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)","--border-radius":"var(--radius)"},...i})},Sb="modulepreload",wb=function(i){return"/"+i},Pm={},yt=function(r,s,l){let c=Promise.resolve();if(s&&s.length>0){let v=function(y){return Promise.all(y.map(w=>Promise.resolve(w).then(E=>({status:"fulfilled",value:E}),E=>({status:"rejected",reason:E}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),h=d?.nonce||d?.getAttribute("nonce");c=v(s.map(y=>{if(y=wb(y),y in Pm)return;Pm[y]=!0;const w=y.endsWith(".css"),E=w?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${y}"]${E}`))return;const U=document.createElement("link");if(U.rel=w?"stylesheet":Sb,w||(U.as="script"),U.crossOrigin="",U.href=y,h&&U.setAttribute("nonce",h),document.head.appendChild(U),w)return new Promise((S,N)=>{U.addEventListener("load",S),U.addEventListener("error",()=>N(new Error(`Unable to preload CSS for ${y}`)))})}))}function f(d){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=d,window.dispatchEvent(h),!h.defaultPrevented)throw d}return c.then(d=>{for(const h of d||[])h.status==="rejected"&&f(h.reason);return r().catch(f)})};function xb(i={}){const{immediate:r=!1,onNeedRefresh:s,onOfflineReady:l,onRegistered:c,onRegisteredSW:f,onRegisterError:d}=i;let h,v;const y=async(E=!0)=>{await v};async function w(){if("serviceWorker"in navigator){if(h=await yt(async()=>{const{Workbox:E}=await import("./workbox-window.prod.es5-BIl4cyR9.js");return{Workbox:E}},[]).then(({Workbox:E})=>new E("/sw.js",{scope:"/",type:"classic"})).catch(E=>{d?.(E)}),!h)return;h.addEventListener("activated",E=>{(E.isUpdate||E.isExternal)&&window.location.reload()}),h.addEventListener("installed",E=>{E.isUpdate||l?.()}),h.register({immediate:r}).then(E=>{f?f("/sw.js",E):c?.(E)}).catch(E=>{d?.(E)})}}return v=w(),y}function Eb(i={}){const{immediate:r=!0,onNeedRefresh:s,onOfflineReady:l,onRegistered:c,onRegisteredSW:f,onRegisterError:d}=i,[h,v]=ae.useState(!1),[y,w]=ae.useState(!1),[E]=ae.useState(()=>xb({immediate:r,onOfflineReady(){w(!0),l?.()},onNeedRefresh(){v(!0),s?.()},onRegistered:c,onRegisteredSW:f,onRegisterError:d}));return{needRefresh:[h,v],offlineReady:[y,w],updateServiceWorker:E}}function Ab(){const{needRefresh:[i],updateServiceWorker:r}=Eb();return i?A.jsxs("div",{className:"fixed bottom-4 right-4 z-50 rounded-lg bg-primary p-4 text-primary-foreground shadow-lg",children:[A.jsx("p",{className:"text-sm font-medium",children:"New version available"}),A.jsx("button",{onClick:()=>r(!0),className:"mt-2 rounded bg-white px-3 py-1 text-sm text-primary",children:"Update now"})]}):null}var Tb=(function(){function i(s){var l=s||{},c=l.ValidationData,f=l.Username,d=l.Password,h=l.AuthParameters,v=l.ClientMetadata;this.validationData=c||{},this.authParameters=h||{},this.clientMetadata=v||{},this.username=f,this.password=d}var r=i.prototype;return r.getUsername=function(){return this.username},r.getPassword=function(){return this.password},r.getValidationData=function(){return this.validationData},r.getAuthParameters=function(){return this.authParameters},r.getClientMetadata=function(){return this.clientMetadata},i})(),Xu={},Vr={},$m;function Cb(){if($m)return Vr;$m=1,Vr.byteLength=h,Vr.toByteArray=y,Vr.fromByteArray=U;for(var i=[],r=[],s=typeof Uint8Array<"u"?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,f=l.length;c<f;++c)i[c]=l[c],r[l.charCodeAt(c)]=c;r[45]=62,r[95]=63;function d(S){var N=S.length;if(N%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var D=S.indexOf("=");D===-1&&(D=N);var I=D===N?0:4-D%4;return[D,I]}function h(S){var N=d(S),D=N[0],I=N[1];return(D+I)*3/4-I}function v(S,N,D){return(N+D)*3/4-D}function y(S){var N,D=d(S),I=D[0],K=D[1],P=new s(v(S,I,K)),J=0,$=K>0?I-4:I,oe;for(oe=0;oe<$;oe+=4)N=r[S.charCodeAt(oe)]<<18|r[S.charCodeAt(oe+1)]<<12|r[S.charCodeAt(oe+2)]<<6|r[S.charCodeAt(oe+3)],P[J++]=N>>16&255,P[J++]=N>>8&255,P[J++]=N&255;return K===2&&(N=r[S.charCodeAt(oe)]<<2|r[S.charCodeAt(oe+1)]>>4,P[J++]=N&255),K===1&&(N=r[S.charCodeAt(oe)]<<10|r[S.charCodeAt(oe+1)]<<4|r[S.charCodeAt(oe+2)]>>2,P[J++]=N>>8&255,P[J++]=N&255),P}function w(S){return i[S>>18&63]+i[S>>12&63]+i[S>>6&63]+i[S&63]}function E(S,N,D){for(var I,K=[],P=N;P<D;P+=3)I=(S[P]<<16&16711680)+(S[P+1]<<8&65280)+(S[P+2]&255),K.push(w(I));return K.join("")}function U(S){for(var N,D=S.length,I=D%3,K=[],P=16383,J=0,$=D-I;J<$;J+=P)K.push(E(S,J,J+P>$?$:J+P));return I===1?(N=S[D-1],K.push(i[N>>2]+i[N<<4&63]+"==")):I===2&&(N=(S[D-2]<<8)+S[D-1],K.push(i[N>>10]+i[N>>4&63]+i[N<<2&63]+"=")),K.join("")}return Vr}var bs={},Wm;function Ub(){return Wm||(Wm=1,bs.read=function(i,r,s,l,c){var f,d,h=c*8-l-1,v=(1<<h)-1,y=v>>1,w=-7,E=s?c-1:0,U=s?-1:1,S=i[r+E];for(E+=U,f=S&(1<<-w)-1,S>>=-w,w+=h;w>0;f=f*256+i[r+E],E+=U,w-=8);for(d=f&(1<<-w)-1,f>>=-w,w+=l;w>0;d=d*256+i[r+E],E+=U,w-=8);if(f===0)f=1-y;else{if(f===v)return d?NaN:(S?-1:1)*(1/0);d=d+Math.pow(2,l),f=f-y}return(S?-1:1)*d*Math.pow(2,f-l)},bs.write=function(i,r,s,l,c,f){var d,h,v,y=f*8-c-1,w=(1<<y)-1,E=w>>1,U=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,S=l?0:f-1,N=l?1:-1,D=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(h=isNaN(r)?1:0,d=w):(d=Math.floor(Math.log(r)/Math.LN2),r*(v=Math.pow(2,-d))<1&&(d--,v*=2),d+E>=1?r+=U/v:r+=U*Math.pow(2,1-E),r*v>=2&&(d++,v/=2),d+E>=w?(h=0,d=w):d+E>=1?(h=(r*v-1)*Math.pow(2,c),d=d+E):(h=r*Math.pow(2,E-1)*Math.pow(2,c),d=0));c>=8;i[s+S]=h&255,S+=N,h/=256,c-=8);for(d=d<<c|h,y+=c;y>0;i[s+S]=d&255,S+=N,d/=256,y-=8);i[s+S-N]|=D*128}),bs}var Zu,e0;function _b(){if(e0)return Zu;e0=1;var i={}.toString;return Zu=Array.isArray||function(r){return i.call(r)=="[object Array]"},Zu}var t0;function Db(){return t0||(t0=1,(function(i){var r=Cb(),s=Ub(),l=_b();i.Buffer=h,i.SlowBuffer=K,i.INSPECT_MAX_BYTES=50,h.TYPED_ARRAY_SUPPORT=Km.TYPED_ARRAY_SUPPORT!==void 0?Km.TYPED_ARRAY_SUPPORT:c(),i.kMaxLength=f();function c(){try{var x=new Uint8Array(1);return x.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},x.foo()===42&&typeof x.subarray=="function"&&x.subarray(1,1).byteLength===0}catch{return!1}}function f(){return h.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function d(x,g){if(f()<g)throw new RangeError("Invalid typed array length");return h.TYPED_ARRAY_SUPPORT?(x=new Uint8Array(g),x.__proto__=h.prototype):(x===null&&(x=new h(g)),x.length=g),x}function h(x,g,p){if(!h.TYPED_ARRAY_SUPPORT&&!(this instanceof h))return new h(x,g,p);if(typeof x=="number"){if(typeof g=="string")throw new Error("If encoding is specified then the first argument must be a string");return E(this,x)}return v(this,x,g,p)}h.poolSize=8192,h._augment=function(x){return x.__proto__=h.prototype,x};function v(x,g,p,T){if(typeof g=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&g instanceof ArrayBuffer?N(x,g,p,T):typeof g=="string"?U(x,g,p):D(x,g)}h.from=function(x,g,p){return v(null,x,g,p)},h.TYPED_ARRAY_SUPPORT&&(h.prototype.__proto__=Uint8Array.prototype,h.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&h[Symbol.species]===h&&Object.defineProperty(h,Symbol.species,{value:null,configurable:!0}));function y(x){if(typeof x!="number")throw new TypeError('"size" argument must be a number');if(x<0)throw new RangeError('"size" argument must not be negative')}function w(x,g,p,T){return y(g),g<=0?d(x,g):p!==void 0?typeof T=="string"?d(x,g).fill(p,T):d(x,g).fill(p):d(x,g)}h.alloc=function(x,g,p){return w(null,x,g,p)};function E(x,g){if(y(g),x=d(x,g<0?0:I(g)|0),!h.TYPED_ARRAY_SUPPORT)for(var p=0;p<g;++p)x[p]=0;return x}h.allocUnsafe=function(x){return E(null,x)},h.allocUnsafeSlow=function(x){return E(null,x)};function U(x,g,p){if((typeof p!="string"||p==="")&&(p="utf8"),!h.isEncoding(p))throw new TypeError('"encoding" must be a valid string encoding');var T=P(g,p)|0;x=d(x,T);var M=x.write(g,p);return M!==T&&(x=x.slice(0,M)),x}function S(x,g){var p=g.length<0?0:I(g.length)|0;x=d(x,p);for(var T=0;T<p;T+=1)x[T]=g[T]&255;return x}function N(x,g,p,T){if(g.byteLength,p<0||g.byteLength<p)throw new RangeError("'offset' is out of bounds");if(g.byteLength<p+(T||0))throw new RangeError("'length' is out of bounds");return p===void 0&&T===void 0?g=new Uint8Array(g):T===void 0?g=new Uint8Array(g,p):g=new Uint8Array(g,p,T),h.TYPED_ARRAY_SUPPORT?(x=g,x.__proto__=h.prototype):x=S(x,g),x}function D(x,g){if(h.isBuffer(g)){var p=I(g.length)|0;return x=d(x,p),x.length===0||g.copy(x,0,0,p),x}if(g){if(typeof ArrayBuffer<"u"&&g.buffer instanceof ArrayBuffer||"length"in g)return typeof g.length!="number"||Pi(g.length)?d(x,0):S(x,g);if(g.type==="Buffer"&&l(g.data))return S(x,g.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function I(x){if(x>=f())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+f().toString(16)+" bytes");return x|0}function K(x){return+x!=x&&(x=0),h.alloc(+x)}h.isBuffer=function(g){return!!(g!=null&&g._isBuffer)},h.compare=function(g,p){if(!h.isBuffer(g)||!h.isBuffer(p))throw new TypeError("Arguments must be Buffers");if(g===p)return 0;for(var T=g.length,M=p.length,F=0,V=Math.min(T,M);F<V;++F)if(g[F]!==p[F]){T=g[F],M=p[F];break}return T<M?-1:M<T?1:0},h.isEncoding=function(g){switch(String(g).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},h.concat=function(g,p){if(!l(g))throw new TypeError('"list" argument must be an Array of Buffers');if(g.length===0)return h.alloc(0);var T;if(p===void 0)for(p=0,T=0;T<g.length;++T)p+=g[T].length;var M=h.allocUnsafe(p),F=0;for(T=0;T<g.length;++T){var V=g[T];if(!h.isBuffer(V))throw new TypeError('"list" argument must be an Array of Buffers');V.copy(M,F),F+=V.length}return M};function P(x,g){if(h.isBuffer(x))return x.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(x)||x instanceof ArrayBuffer))return x.byteLength;typeof x!="string"&&(x=""+x);var p=x.length;if(p===0)return 0;for(var T=!1;;)switch(g){case"ascii":case"latin1":case"binary":return p;case"utf8":case"utf-8":case void 0:return Ye(x).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return p*2;case"hex":return p>>>1;case"base64":return Wn(x).length;default:if(T)return Ye(x).length;g=(""+g).toLowerCase(),T=!0}}h.byteLength=P;function J(x,g,p){var T=!1;if((g===void 0||g<0)&&(g=0),g>this.length||((p===void 0||p>this.length)&&(p=this.length),p<=0)||(p>>>=0,g>>>=0,p<=g))return"";for(x||(x="utf8");;)switch(x){case"hex":return re(this,g,p);case"utf8":case"utf-8":return ue(this,g,p);case"ascii":return Q(this,g,p);case"latin1":case"binary":return G(this,g,p);case"base64":return se(this,g,p);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return be(this,g,p);default:if(T)throw new TypeError("Unknown encoding: "+x);x=(x+"").toLowerCase(),T=!0}}h.prototype._isBuffer=!0;function $(x,g,p){var T=x[g];x[g]=x[p],x[p]=T}h.prototype.swap16=function(){var g=this.length;if(g%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var p=0;p<g;p+=2)$(this,p,p+1);return this},h.prototype.swap32=function(){var g=this.length;if(g%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var p=0;p<g;p+=4)$(this,p,p+3),$(this,p+1,p+2);return this},h.prototype.swap64=function(){var g=this.length;if(g%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var p=0;p<g;p+=8)$(this,p,p+7),$(this,p+1,p+6),$(this,p+2,p+5),$(this,p+3,p+4);return this},h.prototype.toString=function(){var g=this.length|0;return g===0?"":arguments.length===0?ue(this,0,g):J.apply(this,arguments)},h.prototype.equals=function(g){if(!h.isBuffer(g))throw new TypeError("Argument must be a Buffer");return this===g?!0:h.compare(this,g)===0},h.prototype.inspect=function(){var g="",p=i.INSPECT_MAX_BYTES;return this.length>0&&(g=this.toString("hex",0,p).match(/.{2}/g).join(" "),this.length>p&&(g+=" ... ")),"<Buffer "+g+">"},h.prototype.compare=function(g,p,T,M,F){if(!h.isBuffer(g))throw new TypeError("Argument must be a Buffer");if(p===void 0&&(p=0),T===void 0&&(T=g?g.length:0),M===void 0&&(M=0),F===void 0&&(F=this.length),p<0||T>g.length||M<0||F>this.length)throw new RangeError("out of range index");if(M>=F&&p>=T)return 0;if(M>=F)return-1;if(p>=T)return 1;if(p>>>=0,T>>>=0,M>>>=0,F>>>=0,this===g)return 0;for(var V=F-M,Re=T-p,Te=Math.min(V,Re),je=this.slice(M,F),rt=g.slice(p,T),Pe=0;Pe<Te;++Pe)if(je[Pe]!==rt[Pe]){V=je[Pe],Re=rt[Pe];break}return V<Re?-1:Re<V?1:0};function oe(x,g,p,T,M){if(x.length===0)return-1;if(typeof p=="string"?(T=p,p=0):p>2147483647?p=2147483647:p<-2147483648&&(p=-2147483648),p=+p,isNaN(p)&&(p=M?0:x.length-1),p<0&&(p=x.length+p),p>=x.length){if(M)return-1;p=x.length-1}else if(p<0)if(M)p=0;else return-1;if(typeof g=="string"&&(g=h.from(g,T)),h.isBuffer(g))return g.length===0?-1:X(x,g,p,T,M);if(typeof g=="number")return g=g&255,h.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?M?Uint8Array.prototype.indexOf.call(x,g,p):Uint8Array.prototype.lastIndexOf.call(x,g,p):X(x,[g],p,T,M);throw new TypeError("val must be string, number or Buffer")}function X(x,g,p,T,M){var F=1,V=x.length,Re=g.length;if(T!==void 0&&(T=String(T).toLowerCase(),T==="ucs2"||T==="ucs-2"||T==="utf16le"||T==="utf-16le")){if(x.length<2||g.length<2)return-1;F=2,V/=2,Re/=2,p/=2}function Te(ti,Ra){return F===1?ti[Ra]:ti.readUInt16BE(Ra*F)}var je;if(M){var rt=-1;for(je=p;je<V;je++)if(Te(x,je)===Te(g,rt===-1?0:je-rt)){if(rt===-1&&(rt=je),je-rt+1===Re)return rt*F}else rt!==-1&&(je-=je-rt),rt=-1}else for(p+Re>V&&(p=V-Re),je=p;je>=0;je--){for(var Pe=!0,Wt=0;Wt<Re;Wt++)if(Te(x,je+Wt)!==Te(g,Wt)){Pe=!1;break}if(Pe)return je}return-1}h.prototype.includes=function(g,p,T){return this.indexOf(g,p,T)!==-1},h.prototype.indexOf=function(g,p,T){return oe(this,g,p,T,!0)},h.prototype.lastIndexOf=function(g,p,T){return oe(this,g,p,T,!1)};function W(x,g,p,T){p=Number(p)||0;var M=x.length-p;T?(T=Number(T),T>M&&(T=M)):T=M;var F=g.length;if(F%2!==0)throw new TypeError("Invalid hex string");T>F/2&&(T=F/2);for(var V=0;V<T;++V){var Re=parseInt(g.substr(V*2,2),16);if(isNaN(Re))return V;x[p+V]=Re}return V}function L(x,g,p,T){return vn(Ye(g,x.length-p),x,p,T)}function Z(x,g,p,T){return vn(gn(g),x,p,T)}function ce(x,g,p,T){return Z(x,g,p,T)}function ne(x,g,p,T){return vn(Wn(g),x,p,T)}function ee(x,g,p,T){return vn(pn(g,x.length-p),x,p,T)}h.prototype.write=function(g,p,T,M){if(p===void 0)M="utf8",T=this.length,p=0;else if(T===void 0&&typeof p=="string")M=p,T=this.length,p=0;else if(isFinite(p))p=p|0,isFinite(T)?(T=T|0,M===void 0&&(M="utf8")):(M=T,T=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var F=this.length-p;if((T===void 0||T>F)&&(T=F),g.length>0&&(T<0||p<0)||p>this.length)throw new RangeError("Attempt to write outside buffer bounds");M||(M="utf8");for(var V=!1;;)switch(M){case"hex":return W(this,g,p,T);case"utf8":case"utf-8":return L(this,g,p,T);case"ascii":return Z(this,g,p,T);case"latin1":case"binary":return ce(this,g,p,T);case"base64":return ne(this,g,p,T);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ee(this,g,p,T);default:if(V)throw new TypeError("Unknown encoding: "+M);M=(""+M).toLowerCase(),V=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function se(x,g,p){return g===0&&p===x.length?r.fromByteArray(x):r.fromByteArray(x.slice(g,p))}function ue(x,g,p){p=Math.min(x.length,p);for(var T=[],M=g;M<p;){var F=x[M],V=null,Re=F>239?4:F>223?3:F>191?2:1;if(M+Re<=p){var Te,je,rt,Pe;switch(Re){case 1:F<128&&(V=F);break;case 2:Te=x[M+1],(Te&192)===128&&(Pe=(F&31)<<6|Te&63,Pe>127&&(V=Pe));break;case 3:Te=x[M+1],je=x[M+2],(Te&192)===128&&(je&192)===128&&(Pe=(F&15)<<12|(Te&63)<<6|je&63,Pe>2047&&(Pe<55296||Pe>57343)&&(V=Pe));break;case 4:Te=x[M+1],je=x[M+2],rt=x[M+3],(Te&192)===128&&(je&192)===128&&(rt&192)===128&&(Pe=(F&15)<<18|(Te&63)<<12|(je&63)<<6|rt&63,Pe>65535&&Pe<1114112&&(V=Pe))}}V===null?(V=65533,Re=1):V>65535&&(V-=65536,T.push(V>>>10&1023|55296),V=56320|V&1023),T.push(V),M+=Re}return j(T)}var Ae=4096;function j(x){var g=x.length;if(g<=Ae)return String.fromCharCode.apply(String,x);for(var p="",T=0;T<g;)p+=String.fromCharCode.apply(String,x.slice(T,T+=Ae));return p}function Q(x,g,p){var T="";p=Math.min(x.length,p);for(var M=g;M<p;++M)T+=String.fromCharCode(x[M]&127);return T}function G(x,g,p){var T="";p=Math.min(x.length,p);for(var M=g;M<p;++M)T+=String.fromCharCode(x[M]);return T}function re(x,g,p){var T=x.length;(!g||g<0)&&(g=0),(!p||p<0||p>T)&&(p=T);for(var M="",F=g;F<p;++F)M+=xe(x[F]);return M}function be(x,g,p){for(var T=x.slice(g,p),M="",F=0;F<T.length;F+=2)M+=String.fromCharCode(T[F]+T[F+1]*256);return M}h.prototype.slice=function(g,p){var T=this.length;g=~~g,p=p===void 0?T:~~p,g<0?(g+=T,g<0&&(g=0)):g>T&&(g=T),p<0?(p+=T,p<0&&(p=0)):p>T&&(p=T),p<g&&(p=g);var M;if(h.TYPED_ARRAY_SUPPORT)M=this.subarray(g,p),M.__proto__=h.prototype;else{var F=p-g;M=new h(F,void 0);for(var V=0;V<F;++V)M[V]=this[V+g]}return M};function Se(x,g,p){if(x%1!==0||x<0)throw new RangeError("offset is not uint");if(x+g>p)throw new RangeError("Trying to access beyond buffer length")}h.prototype.readUIntLE=function(g,p,T){g=g|0,p=p|0,T||Se(g,p,this.length);for(var M=this[g],F=1,V=0;++V<p&&(F*=256);)M+=this[g+V]*F;return M},h.prototype.readUIntBE=function(g,p,T){g=g|0,p=p|0,T||Se(g,p,this.length);for(var M=this[g+--p],F=1;p>0&&(F*=256);)M+=this[g+--p]*F;return M},h.prototype.readUInt8=function(g,p){return p||Se(g,1,this.length),this[g]},h.prototype.readUInt16LE=function(g,p){return p||Se(g,2,this.length),this[g]|this[g+1]<<8},h.prototype.readUInt16BE=function(g,p){return p||Se(g,2,this.length),this[g]<<8|this[g+1]},h.prototype.readUInt32LE=function(g,p){return p||Se(g,4,this.length),(this[g]|this[g+1]<<8|this[g+2]<<16)+this[g+3]*16777216},h.prototype.readUInt32BE=function(g,p){return p||Se(g,4,this.length),this[g]*16777216+(this[g+1]<<16|this[g+2]<<8|this[g+3])},h.prototype.readIntLE=function(g,p,T){g=g|0,p=p|0,T||Se(g,p,this.length);for(var M=this[g],F=1,V=0;++V<p&&(F*=256);)M+=this[g+V]*F;return F*=128,M>=F&&(M-=Math.pow(2,8*p)),M},h.prototype.readIntBE=function(g,p,T){g=g|0,p=p|0,T||Se(g,p,this.length);for(var M=p,F=1,V=this[g+--M];M>0&&(F*=256);)V+=this[g+--M]*F;return F*=128,V>=F&&(V-=Math.pow(2,8*p)),V},h.prototype.readInt8=function(g,p){return p||Se(g,1,this.length),this[g]&128?(255-this[g]+1)*-1:this[g]},h.prototype.readInt16LE=function(g,p){p||Se(g,2,this.length);var T=this[g]|this[g+1]<<8;return T&32768?T|4294901760:T},h.prototype.readInt16BE=function(g,p){p||Se(g,2,this.length);var T=this[g+1]|this[g]<<8;return T&32768?T|4294901760:T},h.prototype.readInt32LE=function(g,p){return p||Se(g,4,this.length),this[g]|this[g+1]<<8|this[g+2]<<16|this[g+3]<<24},h.prototype.readInt32BE=function(g,p){return p||Se(g,4,this.length),this[g]<<24|this[g+1]<<16|this[g+2]<<8|this[g+3]},h.prototype.readFloatLE=function(g,p){return p||Se(g,4,this.length),s.read(this,g,!0,23,4)},h.prototype.readFloatBE=function(g,p){return p||Se(g,4,this.length),s.read(this,g,!1,23,4)},h.prototype.readDoubleLE=function(g,p){return p||Se(g,8,this.length),s.read(this,g,!0,52,8)},h.prototype.readDoubleBE=function(g,p){return p||Se(g,8,this.length),s.read(this,g,!1,52,8)};function le(x,g,p,T,M,F){if(!h.isBuffer(x))throw new TypeError('"buffer" argument must be a Buffer instance');if(g>M||g<F)throw new RangeError('"value" argument is out of bounds');if(p+T>x.length)throw new RangeError("Index out of range")}h.prototype.writeUIntLE=function(g,p,T,M){if(g=+g,p=p|0,T=T|0,!M){var F=Math.pow(2,8*T)-1;le(this,g,p,T,F,0)}var V=1,Re=0;for(this[p]=g&255;++Re<T&&(V*=256);)this[p+Re]=g/V&255;return p+T},h.prototype.writeUIntBE=function(g,p,T,M){if(g=+g,p=p|0,T=T|0,!M){var F=Math.pow(2,8*T)-1;le(this,g,p,T,F,0)}var V=T-1,Re=1;for(this[p+V]=g&255;--V>=0&&(Re*=256);)this[p+V]=g/Re&255;return p+T},h.prototype.writeUInt8=function(g,p,T){return g=+g,p=p|0,T||le(this,g,p,1,255,0),h.TYPED_ARRAY_SUPPORT||(g=Math.floor(g)),this[p]=g&255,p+1};function te(x,g,p,T){g<0&&(g=65535+g+1);for(var M=0,F=Math.min(x.length-p,2);M<F;++M)x[p+M]=(g&255<<8*(T?M:1-M))>>>(T?M:1-M)*8}h.prototype.writeUInt16LE=function(g,p,T){return g=+g,p=p|0,T||le(this,g,p,2,65535,0),h.TYPED_ARRAY_SUPPORT?(this[p]=g&255,this[p+1]=g>>>8):te(this,g,p,!0),p+2},h.prototype.writeUInt16BE=function(g,p,T){return g=+g,p=p|0,T||le(this,g,p,2,65535,0),h.TYPED_ARRAY_SUPPORT?(this[p]=g>>>8,this[p+1]=g&255):te(this,g,p,!1),p+2};function fe(x,g,p,T){g<0&&(g=4294967295+g+1);for(var M=0,F=Math.min(x.length-p,4);M<F;++M)x[p+M]=g>>>(T?M:3-M)*8&255}h.prototype.writeUInt32LE=function(g,p,T){return g=+g,p=p|0,T||le(this,g,p,4,4294967295,0),h.TYPED_ARRAY_SUPPORT?(this[p+3]=g>>>24,this[p+2]=g>>>16,this[p+1]=g>>>8,this[p]=g&255):fe(this,g,p,!0),p+4},h.prototype.writeUInt32BE=function(g,p,T){return g=+g,p=p|0,T||le(this,g,p,4,4294967295,0),h.TYPED_ARRAY_SUPPORT?(this[p]=g>>>24,this[p+1]=g>>>16,this[p+2]=g>>>8,this[p+3]=g&255):fe(this,g,p,!1),p+4},h.prototype.writeIntLE=function(g,p,T,M){if(g=+g,p=p|0,!M){var F=Math.pow(2,8*T-1);le(this,g,p,T,F-1,-F)}var V=0,Re=1,Te=0;for(this[p]=g&255;++V<T&&(Re*=256);)g<0&&Te===0&&this[p+V-1]!==0&&(Te=1),this[p+V]=(g/Re>>0)-Te&255;return p+T},h.prototype.writeIntBE=function(g,p,T,M){if(g=+g,p=p|0,!M){var F=Math.pow(2,8*T-1);le(this,g,p,T,F-1,-F)}var V=T-1,Re=1,Te=0;for(this[p+V]=g&255;--V>=0&&(Re*=256);)g<0&&Te===0&&this[p+V+1]!==0&&(Te=1),this[p+V]=(g/Re>>0)-Te&255;return p+T},h.prototype.writeInt8=function(g,p,T){return g=+g,p=p|0,T||le(this,g,p,1,127,-128),h.TYPED_ARRAY_SUPPORT||(g=Math.floor(g)),g<0&&(g=255+g+1),this[p]=g&255,p+1},h.prototype.writeInt16LE=function(g,p,T){return g=+g,p=p|0,T||le(this,g,p,2,32767,-32768),h.TYPED_ARRAY_SUPPORT?(this[p]=g&255,this[p+1]=g>>>8):te(this,g,p,!0),p+2},h.prototype.writeInt16BE=function(g,p,T){return g=+g,p=p|0,T||le(this,g,p,2,32767,-32768),h.TYPED_ARRAY_SUPPORT?(this[p]=g>>>8,this[p+1]=g&255):te(this,g,p,!1),p+2},h.prototype.writeInt32LE=function(g,p,T){return g=+g,p=p|0,T||le(this,g,p,4,2147483647,-2147483648),h.TYPED_ARRAY_SUPPORT?(this[p]=g&255,this[p+1]=g>>>8,this[p+2]=g>>>16,this[p+3]=g>>>24):fe(this,g,p,!0),p+4},h.prototype.writeInt32BE=function(g,p,T){return g=+g,p=p|0,T||le(this,g,p,4,2147483647,-2147483648),g<0&&(g=4294967295+g+1),h.TYPED_ARRAY_SUPPORT?(this[p]=g>>>24,this[p+1]=g>>>16,this[p+2]=g>>>8,this[p+3]=g&255):fe(this,g,p,!1),p+4};function _e(x,g,p,T,M,F){if(p+T>x.length)throw new RangeError("Index out of range");if(p<0)throw new RangeError("Index out of range")}function Je(x,g,p,T,M){return M||_e(x,g,p,4),s.write(x,g,p,T,23,4),p+4}h.prototype.writeFloatLE=function(g,p,T){return Je(this,g,p,!0,T)},h.prototype.writeFloatBE=function(g,p,T){return Je(this,g,p,!1,T)};function pe(x,g,p,T,M){return M||_e(x,g,p,8),s.write(x,g,p,T,52,8),p+8}h.prototype.writeDoubleLE=function(g,p,T){return pe(this,g,p,!0,T)},h.prototype.writeDoubleBE=function(g,p,T){return pe(this,g,p,!1,T)},h.prototype.copy=function(g,p,T,M){if(T||(T=0),!M&&M!==0&&(M=this.length),p>=g.length&&(p=g.length),p||(p=0),M>0&&M<T&&(M=T),M===T||g.length===0||this.length===0)return 0;if(p<0)throw new RangeError("targetStart out of bounds");if(T<0||T>=this.length)throw new RangeError("sourceStart out of bounds");if(M<0)throw new RangeError("sourceEnd out of bounds");M>this.length&&(M=this.length),g.length-p<M-T&&(M=g.length-p+T);var F=M-T,V;if(this===g&&T<p&&p<M)for(V=F-1;V>=0;--V)g[V+p]=this[V+T];else if(F<1e3||!h.TYPED_ARRAY_SUPPORT)for(V=0;V<F;++V)g[V+p]=this[V+T];else Uint8Array.prototype.set.call(g,this.subarray(T,T+F),p);return F},h.prototype.fill=function(g,p,T,M){if(typeof g=="string"){if(typeof p=="string"?(M=p,p=0,T=this.length):typeof T=="string"&&(M=T,T=this.length),g.length===1){var F=g.charCodeAt(0);F<256&&(g=F)}if(M!==void 0&&typeof M!="string")throw new TypeError("encoding must be a string");if(typeof M=="string"&&!h.isEncoding(M))throw new TypeError("Unknown encoding: "+M)}else typeof g=="number"&&(g=g&255);if(p<0||this.length<p||this.length<T)throw new RangeError("Out of range index");if(T<=p)return this;p=p>>>0,T=T===void 0?this.length:T>>>0,g||(g=0);var V;if(typeof g=="number")for(V=p;V<T;++V)this[V]=g;else{var Re=h.isBuffer(g)?g:Ye(new h(g,M).toString()),Te=Re.length;for(V=0;V<T-p;++V)this[V+p]=Re[V%Te]}return this};var $e=/[^+\/0-9A-Za-z-_]/g;function Ke(x){if(x=ut(x).replace($e,""),x.length<2)return"";for(;x.length%4!==0;)x=x+"=";return x}function ut(x){return x.trim?x.trim():x.replace(/^\s+|\s+$/g,"")}function xe(x){return x<16?"0"+x.toString(16):x.toString(16)}function Ye(x,g){g=g||1/0;for(var p,T=x.length,M=null,F=[],V=0;V<T;++V){if(p=x.charCodeAt(V),p>55295&&p<57344){if(!M){if(p>56319){(g-=3)>-1&&F.push(239,191,189);continue}else if(V+1===T){(g-=3)>-1&&F.push(239,191,189);continue}M=p;continue}if(p<56320){(g-=3)>-1&&F.push(239,191,189),M=p;continue}p=(M-55296<<10|p-56320)+65536}else M&&(g-=3)>-1&&F.push(239,191,189);if(M=null,p<128){if((g-=1)<0)break;F.push(p)}else if(p<2048){if((g-=2)<0)break;F.push(p>>6|192,p&63|128)}else if(p<65536){if((g-=3)<0)break;F.push(p>>12|224,p>>6&63|128,p&63|128)}else if(p<1114112){if((g-=4)<0)break;F.push(p>>18|240,p>>12&63|128,p>>6&63|128,p&63|128)}else throw new Error("Invalid code point")}return F}function gn(x){for(var g=[],p=0;p<x.length;++p)g.push(x.charCodeAt(p)&255);return g}function pn(x,g){for(var p,T,M,F=[],V=0;V<x.length&&!((g-=2)<0);++V)p=x.charCodeAt(V),T=p>>8,M=p%256,F.push(M),F.push(T);return F}function Wn(x){return r.toByteArray(Ke(x))}function vn(x,g,p,T){for(var M=0;M<T&&!(M+p>=g.length||M>=x.length);++M)g[M+p]=x[M];return M}function Pi(x){return x!==x}})(Xu)),Xu}var tt=Db(),dn;typeof window<"u"&&window.crypto&&(dn=window.crypto);!dn&&typeof window<"u"&&window.msCrypto&&(dn=window.msCrypto);!dn&&typeof global<"u"&&global.crypto&&(dn=global.crypto);if(!dn&&typeof require=="function")try{dn=require("crypto")}catch{}function Rb(){if(dn){if(typeof dn.getRandomValues=="function")try{return dn.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof dn.randomBytes=="function")try{return dn.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")}function Nb(i){for(var r=i.words,s=i.sigBytes,l=[],c=0;c<s;c++){var f=r[c>>>2]>>>24-c%4*8&255;l.push((f>>>4).toString(16)),l.push((f&15).toString(16))}return l.join("")}var Mb=(function(){function i(s,l){s=this.words=s||[],l!=null?this.sigBytes=l:this.sigBytes=s.length*4}var r=i.prototype;return r.random=function(l){for(var c=[],f=0;f<l;f+=4)c.push(Rb());return new i(c,l)},r.toString=function(){return Nb(this)},i})(),Ju={};var Rc=function(i,r){return Rc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var c in l)l.hasOwnProperty(c)&&(s[c]=l[c])},Rc(i,r)};function zb(i,r){Rc(i,r);function s(){this.constructor=i}i.prototype=r===null?Object.create(r):(s.prototype=r.prototype,new s)}var Nc=function(){return Nc=Object.assign||function(r){for(var s,l=1,c=arguments.length;l<c;l++){s=arguments[l];for(var f in s)Object.prototype.hasOwnProperty.call(s,f)&&(r[f]=s[f])}return r},Nc.apply(this,arguments)};function Bb(i,r){var s={};for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&r.indexOf(l)<0&&(s[l]=i[l]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,l=Object.getOwnPropertySymbols(i);c<l.length;c++)r.indexOf(l[c])<0&&Object.prototype.propertyIsEnumerable.call(i,l[c])&&(s[l[c]]=i[l[c]]);return s}function Ob(i,r,s,l){var c=arguments.length,f=c<3?r:l===null?l=Object.getOwnPropertyDescriptor(r,s):l,d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(i,r,s,l);else for(var h=i.length-1;h>=0;h--)(d=i[h])&&(f=(c<3?d(f):c>3?d(r,s,f):d(r,s))||f);return c>3&&f&&Object.defineProperty(r,s,f),f}function jb(i,r){return function(s,l){r(s,l,i)}}function qb(i,r){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,r)}function kb(i,r,s,l){function c(f){return f instanceof s?f:new s(function(d){d(f)})}return new(s||(s=Promise))(function(f,d){function h(w){try{y(l.next(w))}catch(E){d(E)}}function v(w){try{y(l.throw(w))}catch(E){d(E)}}function y(w){w.done?f(w.value):c(w.value).then(h,v)}y((l=l.apply(i,r||[])).next())})}function Lb(i,r){var s={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},l,c,f,d;return d={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function h(y){return function(w){return v([y,w])}}function v(y){if(l)throw new TypeError("Generator is already executing.");for(;s;)try{if(l=1,c&&(f=y[0]&2?c.return:y[0]?c.throw||((f=c.return)&&f.call(c),0):c.next)&&!(f=f.call(c,y[1])).done)return f;switch(c=0,f&&(y=[y[0]&2,f.value]),y[0]){case 0:case 1:f=y;break;case 4:return s.label++,{value:y[1],done:!1};case 5:s.label++,c=y[1],y=[0];continue;case 7:y=s.ops.pop(),s.trys.pop();continue;default:if(f=s.trys,!(f=f.length>0&&f[f.length-1])&&(y[0]===6||y[0]===2)){s=0;continue}if(y[0]===3&&(!f||y[1]>f[0]&&y[1]<f[3])){s.label=y[1];break}if(y[0]===6&&s.label<f[1]){s.label=f[1],f=y;break}if(f&&s.label<f[2]){s.label=f[2],s.ops.push(y);break}f[2]&&s.ops.pop(),s.trys.pop();continue}y=r.call(i,s)}catch(w){y=[6,w],c=0}finally{l=f=0}if(y[0]&5)throw y[1];return{value:y[0]?y[1]:void 0,done:!0}}}function Hb(i,r,s,l){l===void 0&&(l=s),i[l]=r[s]}function Fb(i,r){for(var s in i)s!=="default"&&!r.hasOwnProperty(s)&&(r[s]=i[s])}function Mc(i){var r=typeof Symbol=="function"&&Symbol.iterator,s=r&&i[r],l=0;if(s)return s.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&l>=i.length&&(i=void 0),{value:i&&i[l++],done:!i}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function wg(i,r){var s=typeof Symbol=="function"&&i[Symbol.iterator];if(!s)return i;var l=s.call(i),c,f=[],d;try{for(;(r===void 0||r-- >0)&&!(c=l.next()).done;)f.push(c.value)}catch(h){d={error:h}}finally{try{c&&!c.done&&(s=l.return)&&s.call(l)}finally{if(d)throw d.error}}return f}function Vb(){for(var i=[],r=0;r<arguments.length;r++)i=i.concat(wg(arguments[r]));return i}function Kb(){for(var i=0,r=0,s=arguments.length;r<s;r++)i+=arguments[r].length;for(var l=Array(i),c=0,r=0;r<s;r++)for(var f=arguments[r],d=0,h=f.length;d<h;d++,c++)l[c]=f[d];return l}function tl(i){return this instanceof tl?(this.v=i,this):new tl(i)}function Yb(i,r,s){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var l=s.apply(i,r||[]),c,f=[];return c={},d("next"),d("throw"),d("return"),c[Symbol.asyncIterator]=function(){return this},c;function d(U){l[U]&&(c[U]=function(S){return new Promise(function(N,D){f.push([U,S,N,D])>1||h(U,S)})})}function h(U,S){try{v(l[U](S))}catch(N){E(f[0][3],N)}}function v(U){U.value instanceof tl?Promise.resolve(U.value.v).then(y,w):E(f[0][2],U)}function y(U){h("next",U)}function w(U){h("throw",U)}function E(U,S){U(S),f.shift(),f.length&&h(f[0][0],f[0][1])}}function Ib(i){var r,s;return r={},l("next"),l("throw",function(c){throw c}),l("return"),r[Symbol.iterator]=function(){return this},r;function l(c,f){r[c]=i[c]?function(d){return(s=!s)?{value:tl(i[c](d)),done:c==="return"}:f?f(d):d}:f}}function Gb(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=i[Symbol.asyncIterator],s;return r?r.call(i):(i=typeof Mc=="function"?Mc(i):i[Symbol.iterator](),s={},l("next"),l("throw"),l("return"),s[Symbol.asyncIterator]=function(){return this},s);function l(f){s[f]=i[f]&&function(d){return new Promise(function(h,v){d=i[f](d),c(h,v,d.done,d.value)})}}function c(f,d,h,v){Promise.resolve(v).then(function(y){f({value:y,done:h})},d)}}function Qb(i,r){return Object.defineProperty?Object.defineProperty(i,"raw",{value:r}):i.raw=r,i}function Xb(i){if(i&&i.__esModule)return i;var r={};if(i!=null)for(var s in i)Object.hasOwnProperty.call(i,s)&&(r[s]=i[s]);return r.default=i,r}function Zb(i){return i&&i.__esModule?i:{default:i}}function Jb(i,r){if(!r.has(i))throw new TypeError("attempted to get private field on non-instance");return r.get(i)}function Pb(i,r,s){if(!r.has(i))throw new TypeError("attempted to set private field on non-instance");return r.set(i,s),s}const $b=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return Nc},__asyncDelegator:Ib,__asyncGenerator:Yb,__asyncValues:Gb,__await:tl,__awaiter:kb,__classPrivateFieldGet:Jb,__classPrivateFieldSet:Pb,__createBinding:Hb,__decorate:Ob,__exportStar:Fb,__extends:zb,__generator:Lb,__importDefault:Zb,__importStar:Xb,__makeTemplateObject:Qb,__metadata:qb,__param:jb,__read:wg,__rest:Bb,__spread:Vb,__spreadArrays:Kb,__values:Mc},Symbol.toStringTag,{value:"Module"})),xg=Hc($b);var Kr={},Pt={},n0;function Eg(){return n0||(n0=1,Object.defineProperty(Pt,"__esModule",{value:!0}),Pt.MAX_HASHABLE_LENGTH=Pt.INIT=Pt.KEY=Pt.DIGEST_LENGTH=Pt.BLOCK_SIZE=void 0,Pt.BLOCK_SIZE=64,Pt.DIGEST_LENGTH=32,Pt.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Pt.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],Pt.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1),Pt}var Yr={},a0;function Wb(){if(a0)return Yr;a0=1,Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.RawSha256=void 0;var i=Eg(),r=(function(){function s(){this.state=Int32Array.from(i.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return s.prototype.update=function(l){if(this.finished)throw new Error("Attempted to update an already finished hash.");var c=0,f=l.byteLength;if(this.bytesHashed+=f,this.bytesHashed*8>i.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;f>0;)this.buffer[this.bufferLength++]=l[c++],f--,this.bufferLength===i.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},s.prototype.digest=function(){if(!this.finished){var l=this.bytesHashed*8,c=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),f=this.bufferLength;if(c.setUint8(this.bufferLength++,128),f%i.BLOCK_SIZE>=i.BLOCK_SIZE-8){for(var d=this.bufferLength;d<i.BLOCK_SIZE;d++)c.setUint8(d,0);this.hashBuffer(),this.bufferLength=0}for(var d=this.bufferLength;d<i.BLOCK_SIZE-8;d++)c.setUint8(d,0);c.setUint32(i.BLOCK_SIZE-8,Math.floor(l/4294967296),!0),c.setUint32(i.BLOCK_SIZE-4,l),this.hashBuffer(),this.finished=!0}for(var h=new Uint8Array(i.DIGEST_LENGTH),d=0;d<8;d++)h[d*4]=this.state[d]>>>24&255,h[d*4+1]=this.state[d]>>>16&255,h[d*4+2]=this.state[d]>>>8&255,h[d*4+3]=this.state[d]>>>0&255;return h},s.prototype.hashBuffer=function(){for(var l=this,c=l.buffer,f=l.state,d=f[0],h=f[1],v=f[2],y=f[3],w=f[4],E=f[5],U=f[6],S=f[7],N=0;N<i.BLOCK_SIZE;N++){if(N<16)this.temp[N]=(c[N*4]&255)<<24|(c[N*4+1]&255)<<16|(c[N*4+2]&255)<<8|c[N*4+3]&255;else{var D=this.temp[N-2],I=(D>>>17|D<<15)^(D>>>19|D<<13)^D>>>10;D=this.temp[N-15];var K=(D>>>7|D<<25)^(D>>>18|D<<14)^D>>>3;this.temp[N]=(I+this.temp[N-7]|0)+(K+this.temp[N-16]|0)}var P=(((w>>>6|w<<26)^(w>>>11|w<<21)^(w>>>25|w<<7))+(w&E^~w&U)|0)+(S+(i.KEY[N]+this.temp[N]|0)|0)|0,J=((d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10))+(d&h^d&v^h&v)|0;S=U,U=E,E=w,w=y+P|0,y=v,v=h,h=d,d=P+J|0}f[0]+=d,f[1]+=h,f[2]+=v,f[3]+=y,f[4]+=w,f[5]+=E,f[6]+=U,f[7]+=S},s})();return Yr.RawSha256=r,Yr}var Pu={},Ir={};const eS=i=>{const r=[];for(let s=0,l=i.length;s<l;s++){const c=i.charCodeAt(s);if(c<128)r.push(c);else if(c<2048)r.push(c>>6|192,c&63|128);else if(s+1<i.length&&(c&64512)===55296&&(i.charCodeAt(s+1)&64512)===56320){const f=65536+((c&1023)<<10)+(i.charCodeAt(++s)&1023);r.push(f>>18|240,f>>12&63|128,f>>6&63|128,f&63|128)}else r.push(c>>12|224,c>>6&63|128,c&63|128)}return Uint8Array.from(r)},tS=i=>{let r="";for(let s=0,l=i.length;s<l;s++){const c=i[s];if(c<128)r+=String.fromCharCode(c);else if(192<=c&&c<224){const f=i[++s];r+=String.fromCharCode((c&31)<<6|f&63)}else if(240<=c&&c<365){const d="%"+[c,i[++s],i[++s],i[++s]].map(h=>h.toString(16)).join("%");r+=decodeURIComponent(d)}else r+=String.fromCharCode((c&15)<<12|(i[++s]&63)<<6|i[++s]&63)}return r};function nS(i){return new TextEncoder().encode(i)}function aS(i){return new TextDecoder("utf-8").decode(i)}const iS=i=>typeof TextEncoder=="function"?nS(i):eS(i),rS=i=>typeof TextDecoder=="function"?aS(i):tS(i),lS=Object.freeze(Object.defineProperty({__proto__:null,fromUtf8:iS,toUtf8:rS},Symbol.toStringTag,{value:"Module"})),sS=Hc(lS);var i0;function oS(){if(i0)return Ir;i0=1,Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.convertToBuffer=void 0;var i=sS,r=typeof Buffer<"u"&&Buffer.from?function(l){return Buffer.from(l,"utf8")}:i.fromUtf8;function s(l){return l instanceof Uint8Array?l:typeof l=="string"?r(l):ArrayBuffer.isView(l)?new Uint8Array(l.buffer,l.byteOffset,l.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(l)}return Ir.convertToBuffer=s,Ir}var Gr={},r0;function uS(){if(r0)return Gr;r0=1,Object.defineProperty(Gr,"__esModule",{value:!0}),Gr.isEmptyData=void 0;function i(r){return typeof r=="string"?r.length===0:r.byteLength===0}return Gr.isEmptyData=i,Gr}var Qr={},l0;function cS(){if(l0)return Qr;l0=1,Object.defineProperty(Qr,"__esModule",{value:!0}),Qr.numToUint8=void 0;function i(r){return new Uint8Array([(r&4278190080)>>24,(r&16711680)>>16,(r&65280)>>8,r&255])}return Qr.numToUint8=i,Qr}var Xr={},s0;function fS(){if(s0)return Xr;s0=1,Object.defineProperty(Xr,"__esModule",{value:!0}),Xr.uint32ArrayFrom=void 0;function i(r){if(!Array.from){for(var s=new Uint32Array(r.length),l=0;l<r.length;)s[l]=r[l];return s}return Uint32Array.from(r)}return Xr.uint32ArrayFrom=i,Xr}var o0;function dS(){return o0||(o0=1,(function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.uint32ArrayFrom=i.numToUint8=i.isEmptyData=i.convertToBuffer=void 0;var r=oS();Object.defineProperty(i,"convertToBuffer",{enumerable:!0,get:function(){return r.convertToBuffer}});var s=uS();Object.defineProperty(i,"isEmptyData",{enumerable:!0,get:function(){return s.isEmptyData}});var l=cS();Object.defineProperty(i,"numToUint8",{enumerable:!0,get:function(){return l.numToUint8}});var c=fS();Object.defineProperty(i,"uint32ArrayFrom",{enumerable:!0,get:function(){return c.uint32ArrayFrom}})})(Pu)),Pu}var u0;function hS(){if(u0)return Kr;u0=1,Object.defineProperty(Kr,"__esModule",{value:!0}),Kr.Sha256=void 0;var i=xg,r=Eg(),s=Wb(),l=dS(),c=(function(){function d(h){if(this.hash=new s.RawSha256,h){this.outer=new s.RawSha256;var v=f(h),y=new Uint8Array(r.BLOCK_SIZE);y.set(v);for(var w=0;w<r.BLOCK_SIZE;w++)v[w]^=54,y[w]^=92;this.hash.update(v),this.outer.update(y);for(var w=0;w<v.byteLength;w++)v[w]=0}}return d.prototype.update=function(h){if(!((0,l.isEmptyData)(h)||this.error))try{this.hash.update((0,l.convertToBuffer)(h))}catch(v){this.error=v}},d.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},d.prototype.digest=function(){return(0,i.__awaiter)(this,void 0,void 0,function(){return(0,i.__generator)(this,function(h){return[2,this.digestSync()]})})},d})();Kr.Sha256=c;function f(d){var h=(0,l.convertToBuffer)(d);if(h.byteLength>r.BLOCK_SIZE){var v=new s.RawSha256;v.update(h),h=v.digest()}var y=new Uint8Array(r.BLOCK_SIZE);return y.set(h),y}return Kr}var c0;function mS(){return c0||(c0=1,(function(i){Object.defineProperty(i,"__esModule",{value:!0});var r=xg;(0,r.__exportStar)(hS(),i)})(Ju)),Ju}var el=mS();function he(i,r){i!=null&&this.fromString(i,r)}function Mt(){return new he(null)}var Da,gS=0xdeadbeefcafe,f0=(gS&16777215)==15715070;function pS(i,r,s,l,c,f){for(;--f>=0;){var d=r*this[i++]+s[l]+c;c=Math.floor(d/67108864),s[l++]=d&67108863}return c}function vS(i,r,s,l,c,f){for(var d=r&32767,h=r>>15;--f>=0;){var v=this[i]&32767,y=this[i++]>>15,w=h*v+y*d;v=d*v+((w&32767)<<15)+s[l]+(c&1073741823),c=(v>>>30)+(w>>>15)+h*y+(c>>>30),s[l++]=v&1073741823}return c}function yS(i,r,s,l,c,f){for(var d=r&16383,h=r>>14;--f>=0;){var v=this[i]&16383,y=this[i++]>>14,w=h*v+y*d;v=d*v+((w&16383)<<14)+s[l]+c,c=(v>>28)+(w>>14)+h*y,s[l++]=v&268435455}return c}var d0=typeof navigator<"u";d0&&f0&&navigator.appName=="Microsoft Internet Explorer"?(he.prototype.am=vS,Da=30):d0&&f0&&navigator.appName!="Netscape"?(he.prototype.am=pS,Da=26):(he.prototype.am=yS,Da=28);he.prototype.DB=Da;he.prototype.DM=(1<<Da)-1;he.prototype.DV=1<<Da;var Vc=52;he.prototype.FV=Math.pow(2,Vc);he.prototype.F1=Vc-Da;he.prototype.F2=2*Da-Vc;var bS="0123456789abcdefghijklmnopqrstuvwxyz",_s=new Array,Qi,hn;Qi=48;for(hn=0;hn<=9;++hn)_s[Qi++]=hn;Qi=97;for(hn=10;hn<36;++hn)_s[Qi++]=hn;Qi=65;for(hn=10;hn<36;++hn)_s[Qi++]=hn;function h0(i){return bS.charAt(i)}function SS(i,r){var s=_s[i.charCodeAt(r)];return s??-1}function wS(i){for(var r=this.t-1;r>=0;--r)i[r]=this[r];i.t=this.t,i.s=this.s}function xS(i){this.t=1,this.s=i<0?-1:0,i>0?this[0]=i:i<-1?this[0]=i+this.DV:this.t=0}function Kc(i){var r=Mt();return r.fromInt(i),r}function ES(i,r){var s;if(r==16)s=4;else if(r==8)s=3;else if(r==2)s=1;else if(r==32)s=5;else if(r==4)s=2;else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");this.t=0,this.s=0;for(var l=i.length,c=!1,f=0;--l>=0;){var d=SS(i,l);if(d<0){i.charAt(l)=="-"&&(c=!0);continue}c=!1,f==0?this[this.t++]=d:f+s>this.DB?(this[this.t-1]|=(d&(1<<this.DB-f)-1)<<f,this[this.t++]=d>>this.DB-f):this[this.t-1]|=d<<f,f+=s,f>=this.DB&&(f-=this.DB)}this.clamp(),c&&he.ZERO.subTo(this,this)}function AS(){for(var i=this.s&this.DM;this.t>0&&this[this.t-1]==i;)--this.t}function TS(i){if(this.s<0)return"-"+this.negate().toString(i);var r;if(i==16)r=4;else if(i==8)r=3;else if(i==2)r=1;else if(i==32)r=5;else if(i==4)r=2;else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");var s=(1<<r)-1,l,c=!1,f="",d=this.t,h=this.DB-d*this.DB%r;if(d-- >0)for(h<this.DB&&(l=this[d]>>h)>0&&(c=!0,f=h0(l));d>=0;)h<r?(l=(this[d]&(1<<h)-1)<<r-h,l|=this[--d]>>(h+=this.DB-r)):(l=this[d]>>(h-=r)&s,h<=0&&(h+=this.DB,--d)),l>0&&(c=!0),c&&(f+=h0(l));return c?f:"0"}function CS(){var i=Mt();return he.ZERO.subTo(this,i),i}function US(){return this.s<0?this.negate():this}function _S(i){var r=this.s-i.s;if(r!=0)return r;var s=this.t;if(r=s-i.t,r!=0)return this.s<0?-r:r;for(;--s>=0;)if((r=this[s]-i[s])!=0)return r;return 0}function Yc(i){var r=1,s;return(s=i>>>16)!=0&&(i=s,r+=16),(s=i>>8)!=0&&(i=s,r+=8),(s=i>>4)!=0&&(i=s,r+=4),(s=i>>2)!=0&&(i=s,r+=2),(s=i>>1)!=0&&(i=s,r+=1),r}function DS(){return this.t<=0?0:this.DB*(this.t-1)+Yc(this[this.t-1]^this.s&this.DM)}function RS(i,r){var s;for(s=this.t-1;s>=0;--s)r[s+i]=this[s];for(s=i-1;s>=0;--s)r[s]=0;r.t=this.t+i,r.s=this.s}function NS(i,r){for(var s=i;s<this.t;++s)r[s-i]=this[s];r.t=Math.max(this.t-i,0),r.s=this.s}function MS(i,r){var s=i%this.DB,l=this.DB-s,c=(1<<l)-1,f=Math.floor(i/this.DB),d=this.s<<s&this.DM,h;for(h=this.t-1;h>=0;--h)r[h+f+1]=this[h]>>l|d,d=(this[h]&c)<<s;for(h=f-1;h>=0;--h)r[h]=0;r[f]=d,r.t=this.t+f+1,r.s=this.s,r.clamp()}function zS(i,r){r.s=this.s;var s=Math.floor(i/this.DB);if(s>=this.t){r.t=0;return}var l=i%this.DB,c=this.DB-l,f=(1<<l)-1;r[0]=this[s]>>l;for(var d=s+1;d<this.t;++d)r[d-s-1]|=(this[d]&f)<<c,r[d-s]=this[d]>>l;l>0&&(r[this.t-s-1]|=(this.s&f)<<c),r.t=this.t-s,r.clamp()}function BS(i,r){for(var s=0,l=0,c=Math.min(i.t,this.t);s<c;)l+=this[s]-i[s],r[s++]=l&this.DM,l>>=this.DB;if(i.t<this.t){for(l-=i.s;s<this.t;)l+=this[s],r[s++]=l&this.DM,l>>=this.DB;l+=this.s}else{for(l+=this.s;s<i.t;)l-=i[s],r[s++]=l&this.DM,l>>=this.DB;l-=i.s}r.s=l<0?-1:0,l<-1?r[s++]=this.DV+l:l>0&&(r[s++]=l),r.t=s,r.clamp()}function OS(i,r){var s=this.abs(),l=i.abs(),c=s.t;for(r.t=c+l.t;--c>=0;)r[c]=0;for(c=0;c<l.t;++c)r[c+s.t]=s.am(0,l[c],r,c,0,s.t);r.s=0,r.clamp(),this.s!=i.s&&he.ZERO.subTo(r,r)}function jS(i){for(var r=this.abs(),s=i.t=2*r.t;--s>=0;)i[s]=0;for(s=0;s<r.t-1;++s){var l=r.am(s,r[s],i,2*s,0,1);(i[s+r.t]+=r.am(s+1,2*r[s],i,2*s+1,l,r.t-s-1))>=r.DV&&(i[s+r.t]-=r.DV,i[s+r.t+1]=1)}i.t>0&&(i[i.t-1]+=r.am(s,r[s],i,2*s,0,1)),i.s=0,i.clamp()}function qS(i,r,s){var l=i.abs();if(!(l.t<=0)){var c=this.abs();if(c.t<l.t){r?.fromInt(0),s!=null&&this.copyTo(s);return}s==null&&(s=Mt());var f=Mt(),d=this.s,h=i.s,v=this.DB-Yc(l[l.t-1]);v>0?(l.lShiftTo(v,f),c.lShiftTo(v,s)):(l.copyTo(f),c.copyTo(s));var y=f.t,w=f[y-1];if(w!=0){var E=w*(1<<this.F1)+(y>1?f[y-2]>>this.F2:0),U=this.FV/E,S=(1<<this.F1)/E,N=1<<this.F2,D=s.t,I=D-y,K=r??Mt();for(f.dlShiftTo(I,K),s.compareTo(K)>=0&&(s[s.t++]=1,s.subTo(K,s)),he.ONE.dlShiftTo(y,K),K.subTo(f,f);f.t<y;)f[f.t++]=0;for(;--I>=0;){var P=s[--D]==w?this.DM:Math.floor(s[D]*U+(s[D-1]+N)*S);if((s[D]+=f.am(0,P,s,I,0,y))<P)for(f.dlShiftTo(I,K),s.subTo(K,s);s[D]<--P;)s.subTo(K,s)}r!=null&&(s.drShiftTo(y,r),d!=h&&he.ZERO.subTo(r,r)),s.t=y,s.clamp(),v>0&&s.rShiftTo(v,s),d<0&&he.ZERO.subTo(s,s)}}}function kS(i){var r=Mt();return this.abs().divRemTo(i,null,r),this.s<0&&r.compareTo(he.ZERO)>0&&i.subTo(r,r),r}function LS(){if(this.t<1)return 0;var i=this[0];if((i&1)==0)return 0;var r=i&3;return r=r*(2-(i&15)*r)&15,r=r*(2-(i&255)*r)&255,r=r*(2-((i&65535)*r&65535))&65535,r=r*(2-i*r%this.DV)%this.DV,r>0?this.DV-r:-r}function HS(i){return this.compareTo(i)==0}function FS(i,r){for(var s=0,l=0,c=Math.min(i.t,this.t);s<c;)l+=this[s]+i[s],r[s++]=l&this.DM,l>>=this.DB;if(i.t<this.t){for(l+=i.s;s<this.t;)l+=this[s],r[s++]=l&this.DM,l>>=this.DB;l+=this.s}else{for(l+=this.s;s<i.t;)l+=i[s],r[s++]=l&this.DM,l>>=this.DB;l+=i.s}r.s=l<0?-1:0,l>0?r[s++]=l:l<-1&&(r[s++]=this.DV+l),r.t=s,r.clamp()}function VS(i){var r=Mt();return this.addTo(i,r),r}function KS(i){var r=Mt();return this.subTo(i,r),r}function YS(i){var r=Mt();return this.multiplyTo(i,r),r}function IS(i){var r=Mt();return this.divRemTo(i,r,null),r}function Xi(i){this.m=i,this.mp=i.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<i.DB-15)-1,this.mt2=2*i.t}function GS(i){var r=Mt();return i.abs().dlShiftTo(this.m.t,r),r.divRemTo(this.m,null,r),i.s<0&&r.compareTo(he.ZERO)>0&&this.m.subTo(r,r),r}function QS(i){var r=Mt();return i.copyTo(r),this.reduce(r),r}function XS(i){for(;i.t<=this.mt2;)i[i.t++]=0;for(var r=0;r<this.m.t;++r){var s=i[r]&32767,l=s*this.mpl+((s*this.mph+(i[r]>>15)*this.mpl&this.um)<<15)&i.DM;for(s=r+this.m.t,i[s]+=this.m.am(0,l,i,r,0,this.m.t);i[s]>=i.DV;)i[s]-=i.DV,i[++s]++}i.clamp(),i.drShiftTo(this.m.t,i),i.compareTo(this.m)>=0&&i.subTo(this.m,i)}function ZS(i,r){i.squareTo(r),this.reduce(r)}function JS(i,r,s){i.multiplyTo(r,s),this.reduce(s)}Xi.prototype.convert=GS;Xi.prototype.revert=QS;Xi.prototype.reduce=XS;Xi.prototype.mulTo=JS;Xi.prototype.sqrTo=ZS;function PS(i,r,s){var l=i.bitLength(),c,f=Kc(1),d=new Xi(r);if(l<=0)return f;l<18?c=1:l<48?c=3:l<144?c=4:l<768?c=5:c=6;var h=new Array,v=3,y=c-1,w=(1<<c)-1;if(h[1]=d.convert(this),c>1){var E=Mt();for(d.sqrTo(h[1],E);v<=w;)h[v]=Mt(),d.mulTo(E,h[v-2],h[v]),v+=2}var U=i.t-1,S,N=!0,D=Mt(),I;for(l=Yc(i[U])-1;U>=0;){for(l>=y?S=i[U]>>l-y&w:(S=(i[U]&(1<<l+1)-1)<<y-l,U>0&&(S|=i[U-1]>>this.DB+l-y)),v=c;(S&1)==0;)S>>=1,--v;if((l-=v)<0&&(l+=this.DB,--U),N)h[S].copyTo(f),N=!1;else{for(;v>1;)d.sqrTo(f,D),d.sqrTo(D,f),v-=2;v>0?d.sqrTo(f,D):(I=f,f=D,D=I),d.mulTo(D,h[S],f)}for(;U>=0&&(i[U]&1<<l)==0;)d.sqrTo(f,D),I=f,f=D,D=I,--l<0&&(l=this.DB-1,--U)}var K=d.revert(f);return s(null,K),K}he.prototype.copyTo=wS;he.prototype.fromInt=xS;he.prototype.fromString=ES;he.prototype.clamp=AS;he.prototype.dlShiftTo=RS;he.prototype.drShiftTo=NS;he.prototype.lShiftTo=MS;he.prototype.rShiftTo=zS;he.prototype.subTo=BS;he.prototype.multiplyTo=OS;he.prototype.squareTo=jS;he.prototype.divRemTo=qS;he.prototype.invDigit=LS;he.prototype.addTo=FS;he.prototype.toString=TS;he.prototype.negate=CS;he.prototype.abs=US;he.prototype.compareTo=_S;he.prototype.bitLength=DS;he.prototype.mod=kS;he.prototype.equals=HS;he.prototype.add=VS;he.prototype.subtract=KS;he.prototype.multiply=YS;he.prototype.divide=IS;he.prototype.modPow=PS;he.ZERO=Kc(0);he.ONE=Kc(1);function $u(i){return tt.Buffer.from(new Mb().random(i).toString(),"hex")}var $S=/^[89a-f]/i,WS="FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3DC2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F83655D23DCA3AD961C62F356208552BB9ED529077096966D670C354E4ABC9804F1746C08CA18217C32905E462E36CE3BE39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9DE2BCBF6955817183995497CEA956AE515D2261898FA051015728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6BF12FFA06D98A0864D87602733EC86A64521F2B18177B200CBBE117577A615D6C770988C0BAD946E208E24FA074E5AB3143DB5BFCE0FD108E4B82D120A93AD2CAFFFFFFFFFFFFFFFF",e2="userAttributes.",Vi=(function(){function i(s){this.N=new he(WS,16),this.g=new he("2",16),this.k=new he(this.hexHash(""+this.padHex(this.N)+this.padHex(this.g)),16),this.smallAValue=this.generateRandomSmallA(),this.getLargeAValue(function(){}),this.infoBits=tt.Buffer.from("Caldera Derived Key","utf8"),this.poolName=s}var r=i.prototype;return r.getSmallAValue=function(){return this.smallAValue},r.getLargeAValue=function(l){var c=this;this.largeAValue?l(null,this.largeAValue):this.calculateA(this.smallAValue,function(f,d){f&&l(f,null),c.largeAValue=d,l(null,c.largeAValue)})},r.generateRandomSmallA=function(){var l=$u(128).toString("hex"),c=new he(l,16);return c},r.generateRandomString=function(){return $u(40).toString("base64")},r.getRandomPassword=function(){return this.randomPassword},r.getSaltDevices=function(){return this.SaltToHashDevices},r.getVerifierDevices=function(){return this.verifierDevices},r.generateHashDevice=function(l,c,f){var d=this;this.randomPassword=this.generateRandomString();var h=""+l+c+":"+this.randomPassword,v=this.hash(h),y=$u(16).toString("hex");this.SaltToHashDevices=this.padHex(new he(y,16)),this.g.modPow(new he(this.hexHash(this.SaltToHashDevices+v),16),this.N,function(w,E){w&&f(w,null),d.verifierDevices=d.padHex(E),f(null,null)})},r.calculateA=function(l,c){var f=this;this.g.modPow(l,this.N,function(d,h){d&&c(d,null),h.mod(f.N).equals(he.ZERO)&&c(new Error("Illegal paramater. A mod N cannot be 0."),null),c(null,h)})},r.calculateU=function(l,c){this.UHexHash=this.hexHash(this.padHex(l)+this.padHex(c));var f=new he(this.UHexHash,16);return f},r.hash=function(l){var c=new el.Sha256;c.update(l);var f=c.digestSync(),d=tt.Buffer.from(f).toString("hex");return new Array(64-d.length).join("0")+d},r.hexHash=function(l){return this.hash(tt.Buffer.from(l,"hex"))},r.computehkdf=function(l,c){var f=tt.Buffer.concat([this.infoBits,tt.Buffer.from("","utf8")]),d=new el.Sha256(c);d.update(l);var h=d.digestSync(),v=new el.Sha256(h);v.update(f);var y=v.digestSync(),w=y,E=w.slice(0,16);return E},r.getPasswordAuthenticationKey=function(l,c,f,d,h){var v=this;if(f.mod(this.N).equals(he.ZERO))throw new Error("B cannot be zero.");if(this.UValue=this.calculateU(this.largeAValue,f),this.UValue.equals(he.ZERO))throw new Error("U cannot be zero.");var y=""+this.poolName+l+":"+c,w=this.hash(y),E=new he(this.hexHash(this.padHex(d)+w),16);this.calculateS(E,f,function(U,S){U&&h(U,null);var N=v.computehkdf(tt.Buffer.from(v.padHex(S),"hex"),tt.Buffer.from(v.padHex(v.UValue),"hex"));h(null,N)})},r.calculateS=function(l,c,f){var d=this;this.g.modPow(l,this.N,function(h,v){h&&f(h,null);var y=c.subtract(d.k.multiply(v));y.modPow(d.smallAValue.add(d.UValue.multiply(l)),d.N,function(w,E){w&&f(w,null),f(null,E.mod(d.N))})})},r.getNewPasswordRequiredChallengeUserAttributePrefix=function(){return e2},r.padHex=function(l){if(!(l instanceof he))throw new Error("Not a BigInteger");var c=l.compareTo(he.ZERO)<0,f=l.abs().toString(16);if(f=f.length%2!==0?"0"+f:f,f=$S.test(f)?"00"+f:f,c){var d=f.split("").map(function(v){var y=~parseInt(v,16)&15;return"0123456789ABCDEF".charAt(y)}).join(""),h=new he(d,16).add(he.ONE);f=h.toString(16),f.toUpperCase().startsWith("FF8")&&(f=f.substring(2))}return f},i})();var Ag=(function(){function i(s){this.jwtToken=s||"",this.payload=this.decodePayload()}var r=i.prototype;return r.getJwtToken=function(){return this.jwtToken},r.getExpiration=function(){return this.payload.exp},r.getIssuedAt=function(){return this.payload.iat},r.decodePayload=function(){var l=this.jwtToken.split(".")[1];try{return JSON.parse(tt.Buffer.from(l,"base64").toString("utf8"))}catch{return{}}},i})();function t2(i,r){i.prototype=Object.create(r.prototype),i.prototype.constructor=i,zc(i,r)}function zc(i,r){return zc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,l){return s.__proto__=l,s},zc(i,r)}var m0=(function(i){function r(s){var l=s===void 0?{}:s,c=l.AccessToken;return i.call(this,c||"")||this}return t2(r,i),r})(Ag);function n2(i,r){i.prototype=Object.create(r.prototype),i.prototype.constructor=i,Bc(i,r)}function Bc(i,r){return Bc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,l){return s.__proto__=l,s},Bc(i,r)}var g0=(function(i){function r(s){var l=s===void 0?{}:s,c=l.IdToken;return i.call(this,c||"")||this}return n2(r,i),r})(Ag);var Oc=(function(){function i(s){var l=s===void 0?{}:s,c=l.RefreshToken;this.token=c||""}var r=i.prototype;return r.getToken=function(){return this.token},i})(),a2="5.0.4";var i2="aws-amplify/"+a2,Tg={userAgent:i2,isReactNative:typeof navigator<"u"&&navigator.product==="ReactNative"},r2=function(){return Tg.userAgent};var p0=(function(){function i(s){var l=s===void 0?{}:s,c=l.IdToken,f=l.RefreshToken,d=l.AccessToken,h=l.ClockDrift;if(d==null||c==null)throw new Error("Id token and Access Token must be present.");this.idToken=c,this.refreshToken=f,this.accessToken=d,this.clockDrift=h===void 0?this.calculateClockDrift():h}var r=i.prototype;return r.getIdToken=function(){return this.idToken},r.getRefreshToken=function(){return this.refreshToken},r.getAccessToken=function(){return this.accessToken},r.getClockDrift=function(){return this.clockDrift},r.calculateClockDrift=function(){var l=Math.floor(new Date/1e3),c=Math.min(this.accessToken.getIssuedAt(),this.idToken.getIssuedAt());return l-c},r.isValid=function(){var l=Math.floor(new Date/1e3),c=l-this.clockDrift;return c<this.accessToken.getExpiration()&&c<this.idToken.getExpiration()},i})();var l2=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],s2=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],v0=(function(){function i(){}var r=i.prototype;return r.getNowString=function(){var l=new Date,c=s2[l.getUTCDay()],f=l2[l.getUTCMonth()],d=l.getUTCDate(),h=l.getUTCHours();h<10&&(h="0"+h);var v=l.getUTCMinutes();v<10&&(v="0"+v);var y=l.getUTCSeconds();y<10&&(y="0"+y);var w=l.getUTCFullYear(),E=c+" "+f+" "+d+" "+h+":"+v+":"+y+" UTC "+w;return E},i})();var Cg=(function(){function i(s){var l=s===void 0?{}:s,c=l.Name,f=l.Value;this.Name=c||"",this.Value=f||""}var r=i.prototype;return r.getValue=function(){return this.Value},r.setValue=function(l){return this.Value=l,this},r.getName=function(){return this.Name},r.setName=function(l){return this.Name=l,this},r.toString=function(){return JSON.stringify(this)},r.toJSON=function(){return{Name:this.Name,Value:this.Value}},i})();var Za={},o2=(function(){function i(){}return i.setItem=function(s,l){return Za[s]=l,Za[s]},i.getItem=function(s){return Object.prototype.hasOwnProperty.call(Za,s)?Za[s]:void 0},i.removeItem=function(s){return delete Za[s]},i.clear=function(){return Za={},Za},i})(),Ug=(function(){function i(){try{this.storageWindow=window.localStorage,this.storageWindow.setItem("aws.cognito.test-ls",1),this.storageWindow.removeItem("aws.cognito.test-ls")}catch{this.storageWindow=o2}}var r=i.prototype;return r.getStorage=function(){return this.storageWindow},i})();var u2=typeof navigator<"u",y0=u2?Tg.isReactNative?"react-native":navigator.userAgent:"nodejs",nl=(function(){function i(s){if(s==null||s.Username==null||s.Pool==null)throw new Error("Username and Pool information are required.");this.username=s.Username||"",this.pool=s.Pool,this.Session=null,this.client=s.Pool.client,this.signInUserSession=null,this.authenticationFlowType="USER_SRP_AUTH",this.storage=s.Storage||new Ug().getStorage(),this.keyPrefix="CognitoIdentityServiceProvider."+this.pool.getClientId(),this.userDataKey=this.keyPrefix+"."+this.username+".userData"}var r=i.prototype;return r.setSignInUserSession=function(l){this.clearCachedUserData(),this.signInUserSession=l,this.cacheTokens()},r.getSignInUserSession=function(){return this.signInUserSession},r.getUsername=function(){return this.username},r.getAuthenticationFlowType=function(){return this.authenticationFlowType},r.setAuthenticationFlowType=function(l){this.authenticationFlowType=l},r.initiateAuth=function(l,c){var f=this,d=l.getAuthParameters();d.USERNAME=this.username;var h=Object.keys(l.getValidationData()).length!==0?l.getValidationData():l.getClientMetadata(),v={AuthFlow:"CUSTOM_AUTH",ClientId:this.pool.getClientId(),AuthParameters:d,ClientMetadata:h};this.getUserContextData()&&(v.UserContextData=this.getUserContextData()),this.client.request("InitiateAuth",v,function(y,w){if(y)return c.onFailure(y);var E=w.ChallengeName,U=w.ChallengeParameters;return E==="CUSTOM_CHALLENGE"?(f.Session=w.Session,c.customChallenge(U)):(f.signInUserSession=f.getCognitoUserSession(w.AuthenticationResult),f.cacheTokens(),c.onSuccess(f.signInUserSession))})},r.authenticateUser=function(l,c){return this.authenticationFlowType==="USER_PASSWORD_AUTH"?this.authenticateUserPlainUsernamePassword(l,c):this.authenticationFlowType==="USER_SRP_AUTH"||this.authenticationFlowType==="CUSTOM_AUTH"?this.authenticateUserDefaultAuth(l,c):c.onFailure(new Error("Authentication flow type is invalid."))},r.authenticateUserDefaultAuth=function(l,c){var f=this,d=new Vi(this.pool.getUserPoolName()),h=new v0,v,y,w={};this.deviceKey!=null&&(w.DEVICE_KEY=this.deviceKey),w.USERNAME=this.username,d.getLargeAValue(function(E,U){E&&c.onFailure(E),w.SRP_A=U.toString(16),f.authenticationFlowType==="CUSTOM_AUTH"&&(w.CHALLENGE_NAME="SRP_A");var S=Object.keys(l.getValidationData()).length!==0?l.getValidationData():l.getClientMetadata(),N={AuthFlow:f.authenticationFlowType,ClientId:f.pool.getClientId(),AuthParameters:w,ClientMetadata:S};f.getUserContextData(f.username)&&(N.UserContextData=f.getUserContextData(f.username)),f.client.request("InitiateAuth",N,function(D,I){if(D)return c.onFailure(D);var K=I.ChallengeParameters;f.username=K.USER_ID_FOR_SRP,f.userDataKey=f.keyPrefix+"."+f.username+".userData",v=new he(K.SRP_B,16),y=new he(K.SALT,16),f.getCachedDeviceKeyAndPassword(),d.getPasswordAuthenticationKey(f.username,l.getPassword(),v,y,function(P,J){P&&c.onFailure(P);var $=h.getNowString(),oe=tt.Buffer.concat([tt.Buffer.from(f.pool.getUserPoolName(),"utf8"),tt.Buffer.from(f.username,"utf8"),tt.Buffer.from(K.SECRET_BLOCK,"base64"),tt.Buffer.from($,"utf8")]),X=new el.Sha256(J);X.update(oe);var W=X.digestSync(),L=tt.Buffer.from(W).toString("base64"),Z={};Z.USERNAME=f.username,Z.PASSWORD_CLAIM_SECRET_BLOCK=K.SECRET_BLOCK,Z.TIMESTAMP=$,Z.PASSWORD_CLAIM_SIGNATURE=L,f.deviceKey!=null&&(Z.DEVICE_KEY=f.deviceKey);var ce=function(se,ue){return f.client.request("RespondToAuthChallenge",se,function(Ae,j){return Ae&&Ae.code==="ResourceNotFoundException"&&Ae.message.toLowerCase().indexOf("device")!==-1?(Z.DEVICE_KEY=null,f.deviceKey=null,f.randomPassword=null,f.deviceGroupKey=null,f.clearCachedDeviceKeyAndPassword(),ce(se,ue)):ue(Ae,j)})},ne={ChallengeName:"PASSWORD_VERIFIER",ClientId:f.pool.getClientId(),ChallengeResponses:Z,Session:I.Session,ClientMetadata:S};f.getUserContextData()&&(ne.UserContextData=f.getUserContextData()),ce(ne,function(ee,se){return ee?c.onFailure(ee):f.authenticateUserInternal(se,d,c)})})})})},r.authenticateUserPlainUsernamePassword=function(l,c){var f=this,d={};if(d.USERNAME=this.username,d.PASSWORD=l.getPassword(),!d.PASSWORD){c.onFailure(new Error("PASSWORD parameter is required"));return}var h=new Vi(this.pool.getUserPoolName());this.getCachedDeviceKeyAndPassword(),this.deviceKey!=null&&(d.DEVICE_KEY=this.deviceKey);var v=Object.keys(l.getValidationData()).length!==0?l.getValidationData():l.getClientMetadata(),y={AuthFlow:"USER_PASSWORD_AUTH",ClientId:this.pool.getClientId(),AuthParameters:d,ClientMetadata:v};this.getUserContextData(this.username)&&(y.UserContextData=this.getUserContextData(this.username)),this.client.request("InitiateAuth",y,function(w,E){return w?c.onFailure(w):f.authenticateUserInternal(E,h,c)})},r.authenticateUserInternal=function(l,c,f){var d=this,h=l.ChallengeName,v=l.ChallengeParameters;if(h==="SMS_MFA")return this.Session=l.Session,f.mfaRequired(h,v);if(h==="SELECT_MFA_TYPE")return this.Session=l.Session,f.selectMFAType(h,v);if(h==="MFA_SETUP")return this.Session=l.Session,f.mfaSetup(h,v);if(h==="SOFTWARE_TOKEN_MFA")return this.Session=l.Session,f.totpRequired(h,v);if(h==="CUSTOM_CHALLENGE")return this.Session=l.Session,f.customChallenge(v);if(h==="NEW_PASSWORD_REQUIRED"){this.Session=l.Session;var y=null,w=null,E=[],U=c.getNewPasswordRequiredChallengeUserAttributePrefix();if(v&&(y=JSON.parse(l.ChallengeParameters.userAttributes),w=JSON.parse(l.ChallengeParameters.requiredAttributes)),w)for(var S=0;S<w.length;S++)E[S]=w[S].substr(U.length);return f.newPasswordRequired(y,E)}if(h==="DEVICE_SRP_AUTH"){this.Session=l.Session,this.getDeviceResponse(f);return}this.signInUserSession=this.getCognitoUserSession(l.AuthenticationResult),this.challengeName=h,this.cacheTokens();var N=l.AuthenticationResult.NewDeviceMetadata;if(N==null)return f.onSuccess(this.signInUserSession);c.generateHashDevice(l.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,l.AuthenticationResult.NewDeviceMetadata.DeviceKey,function(D){if(D)return f.onFailure(D);var I={Salt:tt.Buffer.from(c.getSaltDevices(),"hex").toString("base64"),PasswordVerifier:tt.Buffer.from(c.getVerifierDevices(),"hex").toString("base64")};d.verifierDevices=I.PasswordVerifier,d.deviceGroupKey=N.DeviceGroupKey,d.randomPassword=c.getRandomPassword(),d.client.request("ConfirmDevice",{DeviceKey:N.DeviceKey,AccessToken:d.signInUserSession.getAccessToken().getJwtToken(),DeviceSecretVerifierConfig:I,DeviceName:y0},function(K,P){return K?f.onFailure(K):(d.deviceKey=l.AuthenticationResult.NewDeviceMetadata.DeviceKey,d.cacheDeviceKeyAndPassword(),P.UserConfirmationNecessary===!0?f.onSuccess(d.signInUserSession,P.UserConfirmationNecessary):f.onSuccess(d.signInUserSession))})})},r.completeNewPasswordChallenge=function(l,c,f,d){var h=this;if(!l)return f.onFailure(new Error("New password is required."));var v=new Vi(this.pool.getUserPoolName()),y=v.getNewPasswordRequiredChallengeUserAttributePrefix(),w={};c&&Object.keys(c).forEach(function(U){w[y+U]=c[U]}),w.NEW_PASSWORD=l,w.USERNAME=this.username;var E={ChallengeName:"NEW_PASSWORD_REQUIRED",ClientId:this.pool.getClientId(),ChallengeResponses:w,Session:this.Session,ClientMetadata:d};this.getUserContextData()&&(E.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",E,function(U,S){return U?f.onFailure(U):h.authenticateUserInternal(S,v,f)})},r.getDeviceResponse=function(l,c){var f=this,d=new Vi(this.deviceGroupKey),h=new v0,v={};v.USERNAME=this.username,v.DEVICE_KEY=this.deviceKey,d.getLargeAValue(function(y,w){y&&l.onFailure(y),v.SRP_A=w.toString(16);var E={ChallengeName:"DEVICE_SRP_AUTH",ClientId:f.pool.getClientId(),ChallengeResponses:v,ClientMetadata:c,Session:f.Session};f.getUserContextData()&&(E.UserContextData=f.getUserContextData()),f.client.request("RespondToAuthChallenge",E,function(U,S){if(U)return l.onFailure(U);var N=S.ChallengeParameters,D=new he(N.SRP_B,16),I=new he(N.SALT,16);d.getPasswordAuthenticationKey(f.deviceKey,f.randomPassword,D,I,function(K,P){if(K)return l.onFailure(K);var J=h.getNowString(),$=tt.Buffer.concat([tt.Buffer.from(f.deviceGroupKey,"utf8"),tt.Buffer.from(f.deviceKey,"utf8"),tt.Buffer.from(N.SECRET_BLOCK,"base64"),tt.Buffer.from(J,"utf8")]),oe=new el.Sha256(P);oe.update($);var X=oe.digestSync(),W=tt.Buffer.from(X).toString("base64"),L={};L.USERNAME=f.username,L.PASSWORD_CLAIM_SECRET_BLOCK=N.SECRET_BLOCK,L.TIMESTAMP=J,L.PASSWORD_CLAIM_SIGNATURE=W,L.DEVICE_KEY=f.deviceKey;var Z={ChallengeName:"DEVICE_PASSWORD_VERIFIER",ClientId:f.pool.getClientId(),ChallengeResponses:L,Session:S.Session};f.getUserContextData()&&(Z.UserContextData=f.getUserContextData()),f.client.request("RespondToAuthChallenge",Z,function(ce,ne){return ce?l.onFailure(ce):(f.signInUserSession=f.getCognitoUserSession(ne.AuthenticationResult),f.cacheTokens(),l.onSuccess(f.signInUserSession))})})})})},r.confirmRegistration=function(l,c,f,d){var h={ClientId:this.pool.getClientId(),ConfirmationCode:l,Username:this.username,ForceAliasCreation:c,ClientMetadata:d};this.getUserContextData()&&(h.UserContextData=this.getUserContextData()),this.client.request("ConfirmSignUp",h,function(v){return v?f(v,null):f(null,"SUCCESS")})},r.sendCustomChallengeAnswer=function(l,c,f){var d=this,h={};h.USERNAME=this.username,h.ANSWER=l;var v=new Vi(this.pool.getUserPoolName());this.getCachedDeviceKeyAndPassword(),this.deviceKey!=null&&(h.DEVICE_KEY=this.deviceKey);var y={ChallengeName:"CUSTOM_CHALLENGE",ChallengeResponses:h,ClientId:this.pool.getClientId(),Session:this.Session,ClientMetadata:f};this.getUserContextData()&&(y.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",y,function(w,E){return w?c.onFailure(w):d.authenticateUserInternal(E,v,c)})},r.sendMFACode=function(l,c,f,d){var h=this,v={};v.USERNAME=this.username,v.SMS_MFA_CODE=l;var y=f||"SMS_MFA";y==="SOFTWARE_TOKEN_MFA"&&(v.SOFTWARE_TOKEN_MFA_CODE=l),this.deviceKey!=null&&(v.DEVICE_KEY=this.deviceKey);var w={ChallengeName:y,ChallengeResponses:v,ClientId:this.pool.getClientId(),Session:this.Session,ClientMetadata:d};this.getUserContextData()&&(w.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",w,function(E,U){if(E)return c.onFailure(E);var S=U.ChallengeName;if(S==="DEVICE_SRP_AUTH"){h.getDeviceResponse(c);return}if(h.signInUserSession=h.getCognitoUserSession(U.AuthenticationResult),h.cacheTokens(),U.AuthenticationResult.NewDeviceMetadata==null)return c.onSuccess(h.signInUserSession);var N=new Vi(h.pool.getUserPoolName());N.generateHashDevice(U.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,U.AuthenticationResult.NewDeviceMetadata.DeviceKey,function(D){if(D)return c.onFailure(D);var I={Salt:tt.Buffer.from(N.getSaltDevices(),"hex").toString("base64"),PasswordVerifier:tt.Buffer.from(N.getVerifierDevices(),"hex").toString("base64")};h.verifierDevices=I.PasswordVerifier,h.deviceGroupKey=U.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,h.randomPassword=N.getRandomPassword(),h.client.request("ConfirmDevice",{DeviceKey:U.AuthenticationResult.NewDeviceMetadata.DeviceKey,AccessToken:h.signInUserSession.getAccessToken().getJwtToken(),DeviceSecretVerifierConfig:I,DeviceName:y0},function(K,P){return K?c.onFailure(K):(h.deviceKey=U.AuthenticationResult.NewDeviceMetadata.DeviceKey,h.cacheDeviceKeyAndPassword(),P.UserConfirmationNecessary===!0?c.onSuccess(h.signInUserSession,P.UserConfirmationNecessary):c.onSuccess(h.signInUserSession))})})})},r.changePassword=function(l,c,f,d){if(!(this.signInUserSession!=null&&this.signInUserSession.isValid()))return f(new Error("User is not authenticated"),null);this.client.request("ChangePassword",{PreviousPassword:l,ProposedPassword:c,AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:d},function(h){return h?f(h,null):f(null,"SUCCESS")})},r.enableMFA=function(l){if(this.signInUserSession==null||!this.signInUserSession.isValid())return l(new Error("User is not authenticated"),null);var c=[],f={DeliveryMedium:"SMS",AttributeName:"phone_number"};c.push(f),this.client.request("SetUserSettings",{MFAOptions:c,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(d){return d?l(d,null):l(null,"SUCCESS")})},r.setUserMfaPreference=function(l,c,f){if(this.signInUserSession==null||!this.signInUserSession.isValid())return f(new Error("User is not authenticated"),null);this.client.request("SetUserMFAPreference",{SMSMfaSettings:l,SoftwareTokenMfaSettings:c,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(d){return d?f(d,null):f(null,"SUCCESS")})},r.disableMFA=function(l){if(this.signInUserSession==null||!this.signInUserSession.isValid())return l(new Error("User is not authenticated"),null);var c=[];this.client.request("SetUserSettings",{MFAOptions:c,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(f){return f?l(f,null):l(null,"SUCCESS")})},r.deleteUser=function(l,c){var f=this;if(this.signInUserSession==null||!this.signInUserSession.isValid())return l(new Error("User is not authenticated"),null);this.client.request("DeleteUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:c},function(d){return d?l(d,null):(f.clearCachedUser(),l(null,"SUCCESS"))})},r.updateAttributes=function(l,c,f){var d=this;if(this.signInUserSession==null||!this.signInUserSession.isValid())return c(new Error("User is not authenticated"),null);this.client.request("UpdateUserAttributes",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),UserAttributes:l,ClientMetadata:f},function(h,v){return h?c(h,null):d.getUserData(function(){return c(null,"SUCCESS",v)},{bypassCache:!0})})},r.getUserAttributes=function(l){if(!(this.signInUserSession!=null&&this.signInUserSession.isValid()))return l(new Error("User is not authenticated"),null);this.client.request("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(c,f){if(c)return l(c,null);for(var d=[],h=0;h<f.UserAttributes.length;h++){var v={Name:f.UserAttributes[h].Name,Value:f.UserAttributes[h].Value},y=new Cg(v);d.push(y)}return l(null,d)})},r.getMFAOptions=function(l){if(!(this.signInUserSession!=null&&this.signInUserSession.isValid()))return l(new Error("User is not authenticated"),null);this.client.request("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(c,f){return c?l(c,null):l(null,f.MFAOptions)})},r.createGetUserRequest=function(){return this.client.promisifyRequest("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()})},r.refreshSessionIfPossible=function(l){var c=this;return l===void 0&&(l={}),new Promise(function(f){var d=c.signInUserSession.getRefreshToken();d&&d.getToken()?c.refreshSession(d,f,l.clientMetadata):f()})},r.getUserData=function(l,c){var f=this;if(!(this.signInUserSession!=null&&this.signInUserSession.isValid()))return this.clearCachedUserData(),l(new Error("User is not authenticated"),null);var d=this.getUserDataFromCache();if(!d){this.fetchUserData().then(function(h){l(null,h)}).catch(l);return}if(this.isFetchUserDataAndTokenRequired(c)){this.fetchUserData().then(function(h){return f.refreshSessionIfPossible(c).then(function(){return h})}).then(function(h){return l(null,h)}).catch(l);return}try{l(null,JSON.parse(d));return}catch(h){this.clearCachedUserData(),l(h,null);return}},r.getUserDataFromCache=function(){var l=this.storage.getItem(this.userDataKey);return l},r.isFetchUserDataAndTokenRequired=function(l){var c=l||{},f=c.bypassCache,d=f===void 0?!1:f;return d},r.fetchUserData=function(){var l=this;return this.createGetUserRequest().then(function(c){return l.cacheUserData(c),c})},r.deleteAttributes=function(l,c){var f=this;if(!(this.signInUserSession!=null&&this.signInUserSession.isValid()))return c(new Error("User is not authenticated"),null);this.client.request("DeleteUserAttributes",{UserAttributeNames:l,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(d){return d?c(d,null):f.getUserData(function(){return c(null,"SUCCESS")},{bypassCache:!0})})},r.resendConfirmationCode=function(l,c){var f={ClientId:this.pool.getClientId(),Username:this.username,ClientMetadata:c};this.client.request("ResendConfirmationCode",f,function(d,h){return d?l(d,null):l(null,h)})},r.getSession=function(l,c){if(c===void 0&&(c={}),this.username==null)return l(new Error("Username is null. Cannot retrieve a new session"),null);if(this.signInUserSession!=null&&this.signInUserSession.isValid())return l(null,this.signInUserSession);var f="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,d=f+".idToken",h=f+".accessToken",v=f+".refreshToken",y=f+".clockDrift";if(this.storage.getItem(d)){var w=new g0({IdToken:this.storage.getItem(d)}),E=new m0({AccessToken:this.storage.getItem(h)}),U=new Oc({RefreshToken:this.storage.getItem(v)}),S=parseInt(this.storage.getItem(y),0)||0,N={IdToken:w,AccessToken:E,RefreshToken:U,ClockDrift:S},D=new p0(N);if(D.isValid())return this.signInUserSession=D,l(null,this.signInUserSession);if(!U.getToken())return l(new Error("Cannot retrieve a new session. Please authenticate."),null);this.refreshSession(U,l,c.clientMetadata)}else l(new Error("Local storage is missing an ID Token, Please authenticate"),null)},r.refreshSession=function(l,c,f){var d=this,h=this.pool.wrapRefreshSessionCallback?this.pool.wrapRefreshSessionCallback(c):c,v={};v.REFRESH_TOKEN=l.getToken();var y="CognitoIdentityServiceProvider."+this.pool.getClientId(),w=y+".LastAuthUser";if(this.storage.getItem(w)){this.username=this.storage.getItem(w);var E=y+"."+this.username+".deviceKey";this.deviceKey=this.storage.getItem(E),v.DEVICE_KEY=this.deviceKey}var U={ClientId:this.pool.getClientId(),AuthFlow:"REFRESH_TOKEN_AUTH",AuthParameters:v,ClientMetadata:f};this.getUserContextData()&&(U.UserContextData=this.getUserContextData()),this.client.requestWithRetry("InitiateAuth",U,function(S,N){if(S)return S.code==="NotAuthorizedException"&&d.clearCachedUser(),h(S,null);if(N){var D=N.AuthenticationResult;return Object.prototype.hasOwnProperty.call(D,"RefreshToken")||(D.RefreshToken=l.getToken()),d.signInUserSession=d.getCognitoUserSession(D),d.cacheTokens(),h(null,d.signInUserSession)}})},r.cacheTokens=function(){var l="CognitoIdentityServiceProvider."+this.pool.getClientId(),c=l+"."+this.username+".idToken",f=l+"."+this.username+".accessToken",d=l+"."+this.username+".refreshToken",h=l+"."+this.username+".clockDrift",v=l+".LastAuthUser";this.storage.setItem(c,this.signInUserSession.getIdToken().getJwtToken()),this.storage.setItem(f,this.signInUserSession.getAccessToken().getJwtToken()),this.storage.setItem(d,this.signInUserSession.getRefreshToken().getToken()),this.storage.setItem(h,""+this.signInUserSession.getClockDrift()),this.storage.setItem(v,this.username)},r.cacheUserData=function(l){this.storage.setItem(this.userDataKey,JSON.stringify(l))},r.clearCachedUserData=function(){this.storage.removeItem(this.userDataKey)},r.clearCachedUser=function(){this.clearCachedTokens(),this.clearCachedUserData()},r.cacheDeviceKeyAndPassword=function(){var l="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,c=l+".deviceKey",f=l+".randomPasswordKey",d=l+".deviceGroupKey";this.storage.setItem(c,this.deviceKey),this.storage.setItem(f,this.randomPassword),this.storage.setItem(d,this.deviceGroupKey)},r.getCachedDeviceKeyAndPassword=function(){var l="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,c=l+".deviceKey",f=l+".randomPasswordKey",d=l+".deviceGroupKey";this.storage.getItem(c)&&(this.deviceKey=this.storage.getItem(c),this.randomPassword=this.storage.getItem(f),this.deviceGroupKey=this.storage.getItem(d))},r.clearCachedDeviceKeyAndPassword=function(){var l="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,c=l+".deviceKey",f=l+".randomPasswordKey",d=l+".deviceGroupKey";this.storage.removeItem(c),this.storage.removeItem(f),this.storage.removeItem(d)},r.clearCachedTokens=function(){var l="CognitoIdentityServiceProvider."+this.pool.getClientId(),c=l+"."+this.username+".idToken",f=l+"."+this.username+".accessToken",d=l+"."+this.username+".refreshToken",h=l+".LastAuthUser",v=l+"."+this.username+".clockDrift";this.storage.removeItem(c),this.storage.removeItem(f),this.storage.removeItem(d),this.storage.removeItem(h),this.storage.removeItem(v)},r.getCognitoUserSession=function(l){var c=new g0(l),f=new m0(l),d=new Oc(l),h={IdToken:c,AccessToken:f,RefreshToken:d};return new p0(h)},r.forgotPassword=function(l,c){var f={ClientId:this.pool.getClientId(),Username:this.username,ClientMetadata:c};this.getUserContextData()&&(f.UserContextData=this.getUserContextData()),this.client.request("ForgotPassword",f,function(d,h){return d?l.onFailure(d):typeof l.inputVerificationCode=="function"?l.inputVerificationCode(h):l.onSuccess(h)})},r.confirmPassword=function(l,c,f,d){var h={ClientId:this.pool.getClientId(),Username:this.username,ConfirmationCode:l,Password:c,ClientMetadata:d};this.getUserContextData()&&(h.UserContextData=this.getUserContextData()),this.client.request("ConfirmForgotPassword",h,function(v){return v?f.onFailure(v):f.onSuccess("SUCCESS")})},r.getAttributeVerificationCode=function(l,c,f){if(this.signInUserSession==null||!this.signInUserSession.isValid())return c.onFailure(new Error("User is not authenticated"));this.client.request("GetUserAttributeVerificationCode",{AttributeName:l,AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:f},function(d,h){return d?c.onFailure(d):typeof c.inputVerificationCode=="function"?c.inputVerificationCode(h):c.onSuccess("SUCCESS")})},r.verifyAttribute=function(l,c,f){if(this.signInUserSession==null||!this.signInUserSession.isValid())return f.onFailure(new Error("User is not authenticated"));this.client.request("VerifyUserAttribute",{AttributeName:l,Code:c,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(d){return d?f.onFailure(d):f.onSuccess("SUCCESS")})},r.getDevice=function(l){if(this.signInUserSession==null||!this.signInUserSession.isValid())return l.onFailure(new Error("User is not authenticated"));this.client.request("GetDevice",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey},function(c,f){return c?l.onFailure(c):l.onSuccess(f)})},r.forgetSpecificDevice=function(l,c){if(this.signInUserSession==null||!this.signInUserSession.isValid())return c.onFailure(new Error("User is not authenticated"));this.client.request("ForgetDevice",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:l},function(f){return f?c.onFailure(f):c.onSuccess("SUCCESS")})},r.forgetDevice=function(l){var c=this;this.forgetSpecificDevice(this.deviceKey,{onFailure:l.onFailure,onSuccess:function(d){return c.deviceKey=null,c.deviceGroupKey=null,c.randomPassword=null,c.clearCachedDeviceKeyAndPassword(),l.onSuccess(d)}})},r.setDeviceStatusRemembered=function(l){if(this.signInUserSession==null||!this.signInUserSession.isValid())return l.onFailure(new Error("User is not authenticated"));this.client.request("UpdateDeviceStatus",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey,DeviceRememberedStatus:"remembered"},function(c){return c?l.onFailure(c):l.onSuccess("SUCCESS")})},r.setDeviceStatusNotRemembered=function(l){if(this.signInUserSession==null||!this.signInUserSession.isValid())return l.onFailure(new Error("User is not authenticated"));this.client.request("UpdateDeviceStatus",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey,DeviceRememberedStatus:"not_remembered"},function(c){return c?l.onFailure(c):l.onSuccess("SUCCESS")})},r.listDevices=function(l,c,f){if(this.signInUserSession==null||!this.signInUserSession.isValid())return f.onFailure(new Error("User is not authenticated"));var d={AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),Limit:l};c&&(d.PaginationToken=c),this.client.request("ListDevices",d,function(h,v){return h?f.onFailure(h):f.onSuccess(v)})},r.globalSignOut=function(l){var c=this;if(this.signInUserSession==null||!this.signInUserSession.isValid())return l.onFailure(new Error("User is not authenticated"));this.client.request("GlobalSignOut",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(f){return f?l.onFailure(f):(c.clearCachedUser(),l.onSuccess("SUCCESS"))})},r.signOut=function(l){var c=this;if(!l||typeof l!="function"){this.cleanClientData();return}this.getSession(function(f,d){if(f)return l(f);c.revokeTokens(function(h){c.cleanClientData(),l(h)})})},r.revokeTokens=function(l){if(l===void 0&&(l=function(){}),typeof l!="function")throw new Error("Invalid revokeTokenCallback. It should be a function.");if(!this.signInUserSession){var c=new Error("User is not authenticated");return l(c)}if(!this.signInUserSession.getAccessToken()){var f=new Error("No Access token available");return l(f)}var d=this.signInUserSession.getRefreshToken().getToken(),h=this.signInUserSession.getAccessToken();if(this.isSessionRevocable(h)&&d)return this.revokeToken({token:d,callback:l});l()},r.isSessionRevocable=function(l){if(l&&typeof l.decodePayload=="function")try{var c=l.decodePayload(),f=c.origin_jti;return!!f}catch{}return!1},r.cleanClientData=function(){this.signInUserSession=null,this.clearCachedUser()},r.revokeToken=function(l){var c=l.token,f=l.callback;this.client.requestWithRetry("RevokeToken",{Token:c,ClientId:this.pool.getClientId()},function(d){if(d)return f(d);f()})},r.sendMFASelectionAnswer=function(l,c){var f=this,d={};d.USERNAME=this.username,d.ANSWER=l;var h={ChallengeName:"SELECT_MFA_TYPE",ChallengeResponses:d,ClientId:this.pool.getClientId(),Session:this.Session};this.getUserContextData()&&(h.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",h,function(v,y){if(v)return c.onFailure(v);if(f.Session=y.Session,l==="SMS_MFA")return c.mfaRequired(y.ChallengeName,y.ChallengeParameters);if(l==="SOFTWARE_TOKEN_MFA")return c.totpRequired(y.ChallengeName,y.ChallengeParameters)})},r.getUserContextData=function(){var l=this.pool;return l.getUserContextData(this.username)},r.associateSoftwareToken=function(l){var c=this;this.signInUserSession!=null&&this.signInUserSession.isValid()?this.client.request("AssociateSoftwareToken",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(f,d){return f?l.onFailure(f):l.associateSecretCode(d.SecretCode)}):this.client.request("AssociateSoftwareToken",{Session:this.Session},function(f,d){return f?l.onFailure(f):(c.Session=d.Session,l.associateSecretCode(d.SecretCode))})},r.verifySoftwareToken=function(l,c,f){var d=this;this.signInUserSession!=null&&this.signInUserSession.isValid()?this.client.request("VerifySoftwareToken",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),UserCode:l,FriendlyDeviceName:c},function(h,v){return h?f.onFailure(h):f.onSuccess(v)}):this.client.request("VerifySoftwareToken",{Session:this.Session,UserCode:l,FriendlyDeviceName:c},function(h,v){if(h)return f.onFailure(h);d.Session=v.Session;var y={};y.USERNAME=d.username;var w={ChallengeName:"MFA_SETUP",ClientId:d.pool.getClientId(),ChallengeResponses:y,Session:d.Session};d.getUserContextData()&&(w.UserContextData=d.getUserContextData()),d.client.request("RespondToAuthChallenge",w,function(E,U){return E?f.onFailure(E):(d.signInUserSession=d.getCognitoUserSession(U.AuthenticationResult),d.cacheTokens(),f.onSuccess(d.signInUserSession))})})},i})();function c2(i,r){return r=r||{},new Promise(function(s,l){var c=new XMLHttpRequest,f=[],d=[],h={},v=function(){return{ok:(c.status/100|0)==2,statusText:c.statusText,status:c.status,url:c.responseURL,text:function(){return Promise.resolve(c.responseText)},json:function(){return Promise.resolve(c.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([c.response]))},clone:v,headers:{keys:function(){return f},entries:function(){return d},get:function(w){return h[w.toLowerCase()]},has:function(w){return w.toLowerCase()in h}}}};for(var y in c.open(r.method||"get",i,!0),c.onload=function(){c.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(w,E,U){f.push(E=E.toLowerCase()),d.push([E,U]),h[E]=h[E]?h[E]+","+U:U}),s(v())},c.onerror=l,c.withCredentials=r.credentials=="include",r.headers)c.setRequestHeader(y,r.headers[y]);c.send(r.body||null)})}const f2=Object.freeze(Object.defineProperty({__proto__:null,default:c2},Symbol.toStringTag,{value:"Module"})),b0=Hc(f2);var Wu,S0;function d2(){return S0||(S0=1,Wu=self.fetch||(self.fetch=b0.default||b0)),Wu}d2();function Ii(){}Ii.prototype.userAgent=r2();var h2=function(r){var s=Ii.category?" "+Ii.category:"",l=Ii.framework?" framework/"+Ii.framework:"",c=""+Ii.prototype.userAgent+s+l;return c};function m2(i,r){i.prototype=Object.create(r.prototype),i.prototype.constructor=i,al(i,r)}function jc(i){var r=typeof Map=="function"?new Map:void 0;return jc=function(l){if(l===null||!p2(l))return l;if(typeof l!="function")throw new TypeError("Super expression must either be null or a function");if(r!==void 0){if(r.has(l))return r.get(l);r.set(l,c)}function c(){return g2(l,arguments,qc(this).constructor)}return c.prototype=Object.create(l.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),al(c,l)},jc(i)}function g2(i,r,s){if(_g())return Reflect.construct.apply(null,arguments);var l=[null];l.push.apply(l,r);var c=new(i.bind.apply(i,l));return s&&al(c,s.prototype),c}function _g(){try{var i=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_g=function(){return!!i})()}function p2(i){try{return Function.toString.call(i).indexOf("[native code]")!==-1}catch{return typeof i=="function"}}function al(i,r){return al=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,l){return s.__proto__=l,s},al(i,r)}function qc(i){return qc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},qc(i)}var v2=(function(i){function r(s,l,c,f){var d;return d=i.call(this,s)||this,d.code=l,d.name=c,d.statusCode=f,d}return m2(r,i),r})(jc(Error)),y2=(function(){function i(s,l,c){this.endpoint=l||"https://cognito-idp."+s+".amazonaws.com/";var f=c||{},d=f.credentials;this.fetchOptions=d?{credentials:d}:{}}var r=i.prototype;return r.promisifyRequest=function(l,c){var f=this;return new Promise(function(d,h){f.request(l,c,function(v,y){v?h(new v2(v.message,v.code,v.name,v.statusCode)):d(y)})})},r.requestWithRetry=function(l,c,f){var d=this,h=5*1e3;w2(function(v){return new Promise(function(y,w){d.request(l,v,function(E,U){E?w(E):y(U)})})},[c],h).then(function(v){return f(null,v)}).catch(function(v){return f(v)})},r.request=function(l,c,f){var d={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityProviderService."+l,"X-Amz-User-Agent":h2(),"Cache-Control":"no-store"},h=Object.assign({},this.fetchOptions,{headers:d,method:"POST",mode:"cors",body:JSON.stringify(c)}),v;fetch(this.endpoint,h).then(function(y){return v=y,y},function(y){throw y instanceof TypeError?new Error("Network error"):y}).then(function(y){return y.json().catch(function(){return{}})}).then(function(y){if(v.ok)return f(null,y);var w=(y.__type||y.code).split("#").pop(),E=new Error(y.message||y.Message||null);return E.name=w,E.code=w,f(E)}).catch(function(y){if(v&&v.headers&&v.headers.get("x-amzn-errortype"))try{var w=v.headers.get("x-amzn-errortype").split(":")[0],E=new Error(v.status?v.status.toString():null);return E.code=w,E.name=w,E.statusCode=v.status,f(E)}catch{return f(y)}else y instanceof Error&&y.message==="Network error"&&(y.code="NetworkError");return f(y)})},i})(),Ss={debug:function(){}},b2=function(r){var s="nonRetryable";return r&&r[s]};function Dg(i,r,s,l){if(l===void 0&&(l=1),typeof i!="function")throw Error("functionToRetry must be a function");return Ss.debug(i.name+" attempt #"+l+" with args: "+JSON.stringify(r)),i.apply(void 0,r).catch(function(c){if(Ss.debug("error on "+i.name,c),b2(c))throw Ss.debug(i.name+" non retryable error",c),c;var f=s(l,r,c);if(Ss.debug(i.name+" retrying in "+f+" ms"),f!==!1)return new Promise(function(d){return setTimeout(d,f)}).then(function(){return Dg(i,r,s,l+1)});throw c})}function S2(i){var r=100,s=100;return function(l){var c=Math.pow(2,l)*r+s*Math.random();return c>i?!1:c}}function w2(i,r,s){return Dg(i,r,S2(s))}var x2=55,E2=(function(){function i(s,l){var c=s||{},f=c.UserPoolId,d=c.ClientId,h=c.endpoint,v=c.fetchOptions,y=c.AdvancedSecurityDataCollectionFlag;if(!f||!d)throw new Error("Both UserPoolId and ClientId are required.");if(f.length>x2||!/^[\w-]+_[0-9a-zA-Z]+$/.test(f))throw new Error("Invalid UserPoolId format.");var w=f.split("_")[0];this.userPoolId=f,this.clientId=d,this.client=new y2(w,h,v),this.advancedSecurityDataCollectionFlag=y!==!1,this.storage=s.Storage||new Ug().getStorage(),l&&(this.wrapRefreshSessionCallback=l)}var r=i.prototype;return r.getUserPoolId=function(){return this.userPoolId},r.getUserPoolName=function(){return this.getUserPoolId().split("_")[1]},r.getClientId=function(){return this.clientId},r.signUp=function(l,c,f,d,h,v){var y=this,w={ClientId:this.clientId,Username:l,Password:c,UserAttributes:f,ValidationData:d,ClientMetadata:v};this.getUserContextData(l)&&(w.UserContextData=this.getUserContextData(l)),this.client.request("SignUp",w,function(E,U){if(E)return h(E,null);var S={Username:l,Pool:y,Storage:y.storage},N={user:new nl(S),userConfirmed:U.UserConfirmed,userSub:U.UserSub,codeDeliveryDetails:U.CodeDeliveryDetails};return h(null,N)})},r.getCurrentUser=function(){var l="CognitoIdentityServiceProvider."+this.clientId+".LastAuthUser",c=this.storage.getItem(l);if(c){var f={Username:c,Pool:this,Storage:this.storage};return new nl(f)}return null},r.getUserContextData=function(l){if(!(typeof AmazonCognitoAdvancedSecurityData>"u")){var c=AmazonCognitoAdvancedSecurityData;if(this.advancedSecurityDataCollectionFlag){var f=c.getData(l,this.userPoolId,this.clientId);if(f){var d={EncodedData:f};return d}}return{}}},i})(),ec={exports:{}};var w0;function A2(){return w0||(w0=1,(function(i,r){(function(s){var l;if(i.exports=s(),l=!0,!l){var c=window.Cookies,f=window.Cookies=s();f.noConflict=function(){return window.Cookies=c,f}}})(function(){function s(){for(var f=0,d={};f<arguments.length;f++){var h=arguments[f];for(var v in h)d[v]=h[v]}return d}function l(f){return f.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function c(f){function d(){}function h(y,w,E){if(!(typeof document>"u")){E=s({path:"/"},d.defaults,E),typeof E.expires=="number"&&(E.expires=new Date(new Date*1+E.expires*864e5)),E.expires=E.expires?E.expires.toUTCString():"";try{var U=JSON.stringify(w);/^[\{\[]/.test(U)&&(w=U)}catch{}w=f.write?f.write(w,y):encodeURIComponent(String(w)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),y=encodeURIComponent(String(y)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var S="";for(var N in E)E[N]&&(S+="; "+N,E[N]!==!0&&(S+="="+E[N].split(";")[0]));return document.cookie=y+"="+w+S}}function v(y,w){if(!(typeof document>"u")){for(var E={},U=document.cookie?document.cookie.split("; "):[],S=0;S<U.length;S++){var N=U[S].split("="),D=N.slice(1).join("=");!w&&D.charAt(0)==='"'&&(D=D.slice(1,-1));try{var I=l(N[0]);if(D=(f.read||f)(D,I)||l(D),w)try{D=JSON.parse(D)}catch{}if(E[I]=D,y===I)break}catch{}}return y?E[y]:E}}return d.set=h,d.get=function(y){return v(y,!1)},d.getJSON=function(y){return v(y,!0)},d.remove=function(y,w){h(y,"",s(w,{expires:-1}))},d.defaults={},d.withConverter=c,d}return c(function(){})})})(ec)),ec.exports}A2();const mn=new E2({UserPoolId:"__HEADROOM_USER_POOL_ID__",ClientId:"__HEADROOM_USER_POOL_CLIENT_ID__"});function Ds(i,r){const s=i.getIdToken().decodePayload();return{accessToken:i.getAccessToken().getJwtToken(),idToken:i.getIdToken().getJwtToken(),refreshToken:i.getRefreshToken().getToken(),expiresAt:i.getAccessToken().getExpiration()*1e3,email:s.email,sub:r.getUsername()}}function T2(i,r){const s=new nl({Username:i,Pool:mn}),l=new Tb({Username:i,Password:r});return new Promise((c,f)=>{s.authenticateUser(l,{onSuccess(d){c(Ds(d,s))},onFailure(d){f(d)},newPasswordRequired(){c({challenge:"NEW_PASSWORD_REQUIRED",user:s})},totpRequired(){c({challenge:"SOFTWARE_TOKEN_MFA",user:s})}})})}function C2(i,r){return new Promise((s,l)=>{i.completeNewPasswordChallenge(r,{},{onSuccess(c){s(Ds(c,i))},onFailure(c){l(c)}})})}function Rg(i){const r=mn.getCurrentUser();if(!r)return Promise.reject(new Error("No current user"));const s=new Oc({RefreshToken:i});return new Promise((l,c)=>{r.refreshSession(s,(f,d)=>{if(f){c(f);return}l(Ds(d,r))})})}function U2(i,r){const s=mn.getCurrentUser();return s?new Promise((l,c)=>{s.getSession(f=>{if(f){c(f);return}s.changePassword(i,r,d=>{if(d){c(d);return}l()})})}):Promise.reject(new Error("No current user"))}function x0(i){const r=mn.getCurrentUser();return r?new Promise((s,l)=>{r.getSession(c=>{if(c){l(c);return}const f=[new Cg({Name:"email",Value:i})];r.updateAttributes(f,d=>{if(d){l(d);return}s()})})}):Promise.reject(new Error("No current user"))}function _2(i){const r=mn.getCurrentUser();return r?new Promise((s,l)=>{r.getSession(c=>{if(c){l(c);return}r.verifyAttribute("email",i,{onSuccess(){s()},onFailure(f){l(f)}})})}):Promise.reject(new Error("No current user"))}function D2(){const i=mn.getCurrentUser();return i?new Promise((r,s)=>{i.getSession(l=>{if(l){s(l);return}i.associateSoftwareToken({associateSecretCode(c){r(c)},onFailure(c){s(c)}})})}):Promise.reject(new Error("No current user"))}function E0(i){const r=mn.getCurrentUser();return r?new Promise((s,l)=>{r.getSession(c=>{if(c){l(c);return}r.verifySoftwareToken(i,"Headroom CMS",{onSuccess(){s()},onFailure(f){l(f)}})})}):Promise.reject(new Error("No current user"))}function A0(i){const r=mn.getCurrentUser();return r?new Promise((s,l)=>{r.getSession(c=>{if(c){l(c);return}const f={PreferredMfa:i,Enabled:i};r.setUserMfaPreference(null,f,d=>{if(d){l(d);return}s()})})}):Promise.reject(new Error("No current user"))}function R2(){const i=mn.getCurrentUser();return i?new Promise((r,s)=>{i.getSession(l=>{if(l){s(l);return}i.getUserData((c,f)=>{if(c){s(c);return}r(f?.PreferredMfaSetting==="SOFTWARE_TOKEN_MFA")})})}):Promise.reject(new Error("No current user"))}function N2(i,r){return new Promise((s,l)=>{i.sendMFACode(r,{onSuccess(c){s(Ds(c,i))},onFailure(c){l(c)}},"SOFTWARE_TOKEN_MFA")})}function tE(i){const r=new nl({Username:i,Pool:mn});return new Promise((s,l)=>{r.forgotPassword({onSuccess(){s()},onFailure(c){l(c)}})})}function nE(i,r,s){const l=new nl({Username:i,Pool:mn});return new Promise((c,f)=>{l.confirmPassword(r,s,{onSuccess(){c()},onFailure(d){f(d)}})})}function M2(){const i=mn.getCurrentUser();i&&i.signOut()}const Ic="headroom_auth";function Gi(i){localStorage.setItem(Ic,JSON.stringify(i))}function $a(){const i=localStorage.getItem(Ic);if(!i)return null;try{return JSON.parse(i)}catch{return null}}function Cs(){localStorage.removeItem(Ic)}const Ng=300*1e3;function z2(){const i=$a();return i?Date.now()>=i.expiresAt-Ng:!0}function B2(){return $a()?.accessToken??null}let As=null;function Zr(i){kc();const r=$a();if(!r)return;const s=r.expiresAt-Date.now()-Ng;if(s<=0){i();return}As=setTimeout(()=>{i()},s)}function kc(){As!==null&&(clearTimeout(As),As=null)}const Mg=ae.createContext(null);function O2(){const i=$a();return i?Date.now()<i.expiresAt?{status:"authenticated",user:{sub:i.sub,email:i.email},accessToken:i.accessToken}:{status:"loading",user:null,accessToken:null}:{status:"unauthenticated",user:null,accessToken:null}}function j2({children:i}){const[r,s]=ae.useState(O2),l=ae.useRef(void 0),c=ae.useCallback(async()=>{const w=$a();if(!w?.refreshToken){s({status:"unauthenticated",user:null,accessToken:null});return}try{const E=await Rg(w.refreshToken);Gi(E),s({status:"authenticated",user:{sub:E.sub,email:E.email},accessToken:E.accessToken}),Zr(()=>l.current())}catch{Cs(),s({status:"unauthenticated",user:null,accessToken:null})}},[]);ae.useEffect(()=>{l.current=c}),ae.useEffect(()=>(r.status==="loading"?c():r.status==="authenticated"&&Zr(()=>l.current()),()=>kc()),[]);const f=ae.useCallback(async(w,E)=>{const U=await T2(w,E);return"challenge"in U?{challenge:U.challenge,cognitoUser:U.user}:(Gi(U),s({status:"authenticated",user:{sub:U.sub,email:U.email},accessToken:U.accessToken}),Zr(()=>l.current()),{})},[]),d=ae.useCallback(async(w,E)=>{const U=await C2(w,E);Gi(U),s({status:"authenticated",user:{sub:U.sub,email:U.email},accessToken:U.accessToken}),Zr(()=>l.current())},[]),h=ae.useCallback(async(w,E)=>{const U=await N2(w,E);Gi(U),s({status:"authenticated",user:{sub:U.sub,email:U.email},accessToken:U.accessToken}),Zr(()=>l.current())},[]),v=ae.useCallback(w=>{s(U=>U.user?{...U,user:{...U.user,email:w}}:U);const E=$a();E&&Gi({...E,email:w}),c()},[c]),y=ae.useCallback(()=>{M2(),Cs(),kc(),s({status:"unauthenticated",user:null,accessToken:null})},[]);return A.jsx(Mg.Provider,{value:{...r,login:f,completeNewPassword:d,respondToMfaChallenge:h,logout:y,updateUserEmail:v},children:i})}var q2=class extends Error{status;code;constructor(i,r,s){super(s||r),this.name="HeadroomApiError",this.status=i,this.code=r}get detail(){return this.message}},k2={".jpg":"image/jpeg",".jpeg":"image/jpeg",".png":"image/png",".gif":"image/gif",".webp":"image/webp",".svg":"image/svg+xml",".mp4":"video/mp4",".pdf":"application/pdf"};function L2(i){const r=i.includes(".")?"."+i.split(".").pop().toLowerCase():"";return k2[r]||"application/octet-stream"}var H2=class{baseUrl;tokenProvider;constructor(i,r){this.baseUrl=i.replace(/\/+$/,""),this.tokenProvider=r}async apiFetch(i,r){const l={"Content-Type":"application/json",Authorization:`Bearer ${await this.tokenProvider.getToken()}`,...r?.headers},c=await fetch(`${this.baseUrl}${i}`,{...r,headers:l});if(c.status===401&&this.tokenProvider.onUnauthorized){const f=await this.tokenProvider.onUnauthorized();l.Authorization=`Bearer ${f}`;const d=await fetch(`${this.baseUrl}${i}`,{...r,headers:l});return this.handleResponse(d)}return this.handleResponse(c)}async handleResponse(i){if(!i.ok){let r="UNKNOWN",s=`HTTP ${i.status}`;try{const l=await i.json();r=l.code||l.error||r,s=l.message||l.error||s}catch{}throw new q2(i.status,r,s)}if(i.status!==204)return i.json()}async listSites(i=!1){const r=i?"?includeArchived=true":"";return(await this.apiFetch(`/v1/admin/sites${r}`)).items}async createSite(i,r){return this.apiFetch("/v1/admin/sites",{method:"POST",body:JSON.stringify({host:i,name:r})})}async getSite(i){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}`)}async updateSite(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}`,{method:"PUT",body:JSON.stringify(r)})}async deleteSite(i){await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}`,{method:"DELETE"})}async updateSiteAdmins(i,r){await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/admins`,{method:"PUT",body:JSON.stringify({admins:r})})}async purgeSite(i){await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/purge`,{method:"POST"})}async inviteToSite(i,r,s){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/invite`,{method:"POST",body:JSON.stringify({email:r,adminUrl:s})})}async listCollections(i){return(await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/collections`)).collections}async createCollection(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/collections`,{method:"POST",body:JSON.stringify(r)})}async getCollection(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/collections/${encodeURIComponent(r)}`)}async updateCollection(i,r,s){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/collections/${encodeURIComponent(r)}`,{method:"PUT",body:JSON.stringify(s)})}async deleteCollection(i,r){await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/collections/${encodeURIComponent(r)}`,{method:"DELETE"})}async listBlockTypes(i){return(await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/block-types`)).blockTypes}async createBlockType(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/block-types`,{method:"POST",body:JSON.stringify(r)})}async getBlockType(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/block-types/${encodeURIComponent(r)}`)}async updateBlockType(i,r,s){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/block-types/${encodeURIComponent(r)}`,{method:"PUT",body:JSON.stringify(s)})}async deleteBlockType(i,r){await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/block-types/${encodeURIComponent(r)}`,{method:"DELETE"})}async listContent(i,r){const s=new URLSearchParams;r?.collection&&s.set("collection",r.collection),r?.q&&s.set("q",r.q),r?.search&&s.set("search",r.search),r?.tag&&s.set("tag",r.tag),r?.status&&s.set("status",r.status),r?.sort&&s.set("sort",r.sort),r?.relatedTo&&s.set("relatedTo",r.relatedTo),r?.limit&&s.set("limit",String(r.limit)),r?.cursor&&s.set("cursor",r.cursor);const l=s.toString();return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/content${l?`?${l}`:""}`)}async createContent(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/content`,{method:"POST",body:JSON.stringify(r)})}async getContent(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/content/${r}`)}async deleteContent(i,r){await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/content/${r}`,{method:"DELETE"})}async saveDraft(i,r,s){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/content/${r}/draft`,{method:"PUT",body:JSON.stringify(s)})}async publishContent(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/content/${r}/publish`,{method:"POST"})}async unpublishContent(i,r){await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/content/${r}/unpublish`,{method:"POST"})}async discardDraft(i,r){await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/content/${r}/discard`,{method:"POST"})}async getPublishedContent(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/content/${r}/published`)}async listVersions(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/content/${r}/versions`)}async getVersion(i,r,s){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/content/${r}/versions/${s}`)}async getReferences(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/content/${r}/references`)}async listMedia(i,r){const s=new URLSearchParams;r?.tag&&s.set("tag",r.tag),r?.folderId&&s.set("folderId",r.folderId),r?.q&&s.set("q",r.q),r?.sort&&s.set("sort",r.sort),r?.limit&&s.set("limit",String(r.limit)),r?.cursor&&s.set("cursor",r.cursor);const l=s.toString();return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/media${l?`?${l}`:""}`)}async getMedia(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/media/${r}`)}async updateMedia(i,r,s){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/media/${r}`,{method:"PUT",body:JSON.stringify(s)})}async deleteMedia(i,r){await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/media/${r}`,{method:"DELETE"})}async getUploadUrl(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/media/upload-url`,{method:"POST",body:JSON.stringify(r)})}async completeUpload(i,r,s){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/media/${r}/complete`,{method:"POST",body:JSON.stringify(s)})}async uploadFromUrl(i,r,s,l){const c=await fetch(r);if(!c.ok)throw new Error(`Failed to fetch ${r}: ${c.status}`);const f=new Uint8Array(await c.arrayBuffer());let d=c.headers.get("content-type")?.split(";")[0]?.trim()||"";(!d||d==="application/octet-stream")&&(d=L2(s));const{mediaId:h,uploadUrl:v}=await this.getUploadUrl(i,{filename:s,contentType:d,size:f.length}),y=await fetch(v,{method:"PUT",body:f,headers:{"Content-Type":d}});if(!y.ok)throw new Error(`S3 upload failed: ${y.status}`);return this.completeUpload(i,h,{filename:s,alt:l})}async listMediaFolders(i){return(await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/media/folders`)).items}async createMediaFolder(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/media/folders`,{method:"POST",body:JSON.stringify({name:r})})}async updateMediaFolder(i,r,s){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/media/folders/${r}`,{method:"PUT",body:JSON.stringify({name:s})})}async deleteMediaFolder(i,r){await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/media/folders/${r}`,{method:"DELETE"})}async bulkMediaOperation(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/media/bulk`,{method:"POST",body:JSON.stringify(r)})}async checkDuplicate(i,r,s){const l=new URLSearchParams({filename:r,size:String(s)});return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/media/check-duplicate?${l}`)}async getTransformUrl(i,r,s){const l=new URLSearchParams;for(const[c,f]of Object.entries(s))f!==void 0&&l.set(c,String(f));return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/media/${r}/transform-url?${l}`)}async saveTransform(i,r,s){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/media/${r}/save-transform`,{method:"POST",body:JSON.stringify(s)})}async getMediaUsage(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/media/${r}/usage`)}async listApiKeys(i){return(await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/api-keys`)).keys}async createApiKey(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/api-keys`,{method:"POST",body:JSON.stringify({label:r})})}async updateApiKey(i,r,s){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/api-keys/${r}`,{method:"PUT",body:JSON.stringify({label:s})})}async deleteApiKey(i,r){await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/api-keys/${r}`,{method:"DELETE"})}async listWebhooks(i){return(await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/webhooks`)).webhooks}async createWebhook(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/webhooks`,{method:"POST",body:JSON.stringify(r)})}async getWebhook(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/webhooks/${r}`)}async updateWebhook(i,r,s){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/webhooks/${r}`,{method:"PUT",body:JSON.stringify(s)})}async deleteWebhook(i,r){await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/webhooks/${r}`,{method:"DELETE"})}async testWebhook(i,r){await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/webhooks/${r}/test`,{method:"POST"})}async rotateWebhookSecret(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/webhooks/${r}/rotate-secret`,{method:"POST"})}async listWebhookDeliveries(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/webhooks/${r}/deliveries`)}async getWebhookDelivery(i,r,s){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/webhooks/${r}/deliveries/${s}`)}async retryDelivery(i,r,s){await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/webhooks/${r}/deliveries/${s}/retry`,{method:"POST"})}async listTags(i){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/tags`)}async createTag(i,r){await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/tags`,{method:"POST",body:JSON.stringify({tag:r})})}async deleteTag(i,r){await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/tags/${encodeURIComponent(r)}`,{method:"DELETE"})}async listAuditEvents(i,r){const s=new URLSearchParams;r?.action&&s.set("action",r.action),r?.before&&s.set("before",String(r.before));const l=s.toString();return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/audit${l?`?${l}`:""}`)}async listUsers(){return this.apiFetch("/v1/admin/users")}async deleteUser(i){await this.apiFetch(`/v1/admin/users/${i}`,{method:"DELETE"})}async disableUserMfa(i){await this.apiFetch(`/v1/admin/users/${i}/mfa`,{method:"DELETE"})}async resolveAdmins(i){return this.apiFetch("/v1/admin/users/resolve",{method:"POST",body:JSON.stringify({subs:i})})}async listSuperAdmins(){return this.apiFetch("/v1/admin/super-admins")}async updateSuperAdmins(i){await this.apiFetch("/v1/admin/super-admins",{method:"PUT",body:JSON.stringify({superAdminIds:i})})}};class F2{async getToken(){const r=B2();return!r||z2()?this.refresh():r}async onUnauthorized(){try{return await this.refresh()}catch{throw Cs(),window.location.href="/login",new Error("Session expired")}}async refresh(){const r=$a();if(!r?.refreshToken)throw Cs(),window.location.href="/login",new Error("No refresh token");const s=await Rg(r.refreshToken);return Gi(s),s.accessToken}}const zg=ae.createContext(null);function it(){const i=ae.useContext(zg);if(!i)throw new Error("useAdminClient must be used within AdminClientProvider");return i}const V2="__HEADROOM_API_URL__".replace(/\/+$/,"");function K2({children:i}){const r=ae.useMemo(()=>new H2(V2,new F2),[]);return A.jsx(zg.Provider,{value:r,children:i})}const Y2=new my({defaultOptions:{queries:{staleTime:3e4,retry:1,refetchOnWindowFocus:!0}}});function Rs(){const i=ae.useContext(Mg);if(!i)throw new Error("useAuth must be used within an AuthProvider");return i}function Bg(){return A.jsx("div",{className:"flex h-dvh w-dvw items-center justify-center",children:A.jsxs("div",{className:"flex flex-col items-center gap-4",children:[A.jsx(Pn,{className:"text-muted-foreground h-8 w-8 animate-spin"}),A.jsx("p",{className:"text-muted-foreground text-sm",children:"Headroom"})]})})}function tc({children:i}){const{status:r}=Rs();return r==="loading"?A.jsx(Bg,{}):r==="unauthenticated"?A.jsx(Ts,{to:"/login",replace:!0}):A.jsx(A.Fragment,{children:i})}function Og(i=!1){const r=it();return $n({queryKey:["sites",{includeArchived:i}],queryFn:()=>r.apiFetch(`/v1/admin/sites${i?"?includeArchived=true":""}`)})}function aE(i){const r=it();return $n({queryKey:["sites",i],queryFn:()=>r.apiFetch(`/v1/admin/sites/${i}`),enabled:!!i})}function iE(){const i=it(),r=zt();return Bt({mutationFn:s=>i.apiFetch("/v1/admin/sites",{method:"POST",body:JSON.stringify(s)}),onSuccess:()=>r.invalidateQueries({queryKey:["sites"]})})}function rE(i){const r=it(),s=zt();return Bt({mutationFn:l=>r.apiFetch(`/v1/admin/sites/${i}`,{method:"PUT",body:JSON.stringify(l)}),onSuccess:()=>{s.invalidateQueries({queryKey:["sites"]}),s.invalidateQueries({queryKey:["sites",i]})}})}function lE(i){const r=it(),s=zt();return Bt({mutationFn:()=>r.apiFetch(`/v1/admin/sites/${i}`,{method:"DELETE"}),onSuccess:()=>s.invalidateQueries({queryKey:["sites"]})})}function sE(i){const r=it(),s=zt();return Bt({mutationFn:l=>r.apiFetch(`/v1/admin/sites/${i}/admins`,{method:"PUT",body:JSON.stringify(l)}),onSuccess:()=>{s.invalidateQueries({queryKey:["sites",i]})}})}function oE(i){const r=it(),s=zt();return Bt({mutationFn:()=>r.apiFetch(`/v1/admin/sites/${i}/purge`,{method:"POST"}),onSuccess:()=>{s.invalidateQueries({queryKey:["sites"]}),s.invalidateQueries({queryKey:["sites",i]})}})}function uE(i){const r=it(),s=zt();return Bt({mutationFn:l=>r.apiFetch(`/v1/admin/sites/${i}/invite`,{method:"POST",body:JSON.stringify({email:l.email,adminUrl:window.location.origin})}),onSuccess:()=>{s.invalidateQueries({queryKey:["sites",i]}),s.invalidateQueries({queryKey:["users"]})}})}function I2(i){const r=it();return $n({queryKey:["sites",i,"collections"],queryFn:async()=>({items:(await r.apiFetch(`/v1/admin/sites/${i}/collections`)).collections}),enabled:!!i})}function cE(i,r){const s=it();return $n({queryKey:["sites",i,"collections",r],queryFn:()=>s.apiFetch(`/v1/admin/sites/${i}/collections/${r}`),enabled:!!i&&!!r})}function fE(i){const r=it(),s=zt();return Bt({mutationFn:l=>r.apiFetch(`/v1/admin/sites/${i}/collections`,{method:"POST",body:JSON.stringify(l)}),onSuccess:()=>s.invalidateQueries({queryKey:["sites",i,"collections"]})})}function dE(i,r){const s=it(),l=zt();return Bt({mutationFn:c=>s.apiFetch(`/v1/admin/sites/${i}/collections/${r}`,{method:"PUT",body:JSON.stringify(c)}),onSuccess:()=>{l.invalidateQueries({queryKey:["sites",i,"collections"]})}})}function hE(i,r){const s=it(),l=zt();return Bt({mutationFn:()=>s.apiFetch(`/v1/admin/sites/${i}/collections/${r}`,{method:"DELETE"}),onSuccess:()=>l.invalidateQueries({queryKey:["sites",i,"collections"]})})}function G2(i){const r=it();return $n({queryKey:["sites",i,"block-types"],queryFn:async()=>({items:(await r.apiFetch(`/v1/admin/sites/${i}/block-types`)).blockTypes}),enabled:!!i})}function mE(i,r){const s=it();return $n({queryKey:["sites",i,"block-types",r],queryFn:()=>s.apiFetch(`/v1/admin/sites/${i}/block-types/${r}`),enabled:!!i&&!!r})}function gE(i){const r=it(),s=zt();return Bt({mutationFn:l=>r.apiFetch(`/v1/admin/sites/${i}/block-types`,{method:"POST",body:JSON.stringify(l)}),onSuccess:()=>s.invalidateQueries({queryKey:["sites",i,"block-types"]})})}function pE(i,r){const s=it(),l=zt();return Bt({mutationFn:c=>s.apiFetch(`/v1/admin/sites/${i}/block-types/${r}`,{method:"PUT",body:JSON.stringify(c)}),onSuccess:()=>{l.invalidateQueries({queryKey:["sites",i,"block-types"]})}})}function vE(i,r){const s=it(),l=zt();return Bt({mutationFn:()=>s.apiFetch(`/v1/admin/sites/${i}/block-types/${r}`,{method:"DELETE"}),onSuccess:()=>l.invalidateQueries({queryKey:["sites",i,"block-types"]})})}const Gc=ae.createContext(null);function Q2({site:i,children:r}){const{data:s,isLoading:l}=I2(i.host),{data:c,isLoading:f}=G2(i.host),d=l||f;return A.jsx(Gc.Provider,{value:{site:i,collections:s?.items??[],blockTypes:c?.items??[],isLoading:d},children:r})}function Qc(){const i=ae.useContext(Gc);if(!i)throw new Error("useSiteContext must be used within a SiteProvider");return i}function yE(){return ae.useContext(Gc)}function X2({children:i}){const{host:r}=dg(),{data:s,isLoading:l}=Og(!0);if(l)return A.jsx(Bg,{});const c=s?.items.find(f=>f.host===r);return c?A.jsx(Q2,{site:c,children:i}):A.jsx(Ts,{to:"/sites",replace:!0})}function bE(){const i=it();return $n({queryKey:["users"],queryFn:()=>i.apiFetch("/v1/admin/users")})}function SE(){const i=it(),r=zt();return Bt({mutationFn:s=>i.apiFetch(`/v1/admin/users/${s}`,{method:"DELETE"}),onSuccess:()=>r.invalidateQueries({queryKey:["users"]})})}function wE(){const i=it(),r=zt();return Bt({mutationFn:s=>i.apiFetch(`/v1/admin/users/${s}/mfa`,{method:"DELETE"}),onSuccess:()=>r.invalidateQueries({queryKey:["users"]})})}function xE(i){const r=it();return $n({queryKey:["users","resolve",...[...i].sort()],queryFn:()=>r.apiFetch("/v1/admin/users/resolve",{method:"POST",body:JSON.stringify({subs:i})}),enabled:i.length>0,staleTime:300*1e3})}function jg(){const i=it();return $n({queryKey:["super-admins"],queryFn:()=>i.apiFetch("/v1/admin/super-admins")})}function EE(){const i=it(),r=zt();return Bt({mutationFn:s=>i.apiFetch("/v1/admin/super-admins",{method:"PUT",body:JSON.stringify(s)}),onSuccess:()=>r.invalidateQueries({queryKey:["super-admins"]})})}function qg(i){var r,s,l="";if(typeof i=="string"||typeof i=="number")l+=i;else if(typeof i=="object")if(Array.isArray(i)){var c=i.length;for(r=0;r<c;r++)i[r]&&(s=qg(i[r]))&&(l&&(l+=" "),l+=s)}else for(s in i)i[s]&&(l&&(l+=" "),l+=s);return l}function kg(){for(var i,r,s=0,l="",c=arguments.length;s<c;s++)(i=arguments[s])&&(r=qg(i))&&(l&&(l+=" "),l+=r);return l}const T0=i=>typeof i=="boolean"?`${i}`:i===0?"0":i,C0=kg,Lg=(i,r)=>s=>{var l;if(r?.variants==null)return C0(i,s?.class,s?.className);const{variants:c,defaultVariants:f}=r,d=Object.keys(c).map(y=>{const w=s?.[y],E=f?.[y];if(w===null)return null;const U=T0(w)||T0(E);return c[y][U]}),h=s&&Object.entries(s).reduce((y,w)=>{let[E,U]=w;return U===void 0||(y[E]=U),y},{}),v=r==null||(l=r.compoundVariants)===null||l===void 0?void 0:l.reduce((y,w)=>{let{class:E,className:U,...S}=w;return Object.entries(S).every(N=>{let[D,I]=N;return Array.isArray(I)?I.includes({...f,...h}[D]):{...f,...h}[D]===I})?[...y,E,U]:y},[]);return C0(i,d,v,s?.class,s?.className)},Z2=(i,r)=>{const s=new Array(i.length+r.length);for(let l=0;l<i.length;l++)s[l]=i[l];for(let l=0;l<r.length;l++)s[i.length+l]=r[l];return s},J2=(i,r)=>({classGroupId:i,validator:r}),Hg=(i=new Map,r=null,s)=>({nextPart:i,validators:r,classGroupId:s}),Us="-",U0=[],P2="arbitrary..",$2=i=>{const r=ew(i),{conflictingClassGroups:s,conflictingClassGroupModifiers:l}=i;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return W2(d);const h=d.split(Us),v=h[0]===""&&h.length>1?1:0;return Fg(h,v,r)},getConflictingClassGroupIds:(d,h)=>{if(h){const v=l[d],y=s[d];return v?y?Z2(y,v):v:y||U0}return s[d]||U0}}},Fg=(i,r,s)=>{if(i.length-r===0)return s.classGroupId;const c=i[r],f=s.nextPart.get(c);if(f){const y=Fg(i,r+1,f);if(y)return y}const d=s.validators;if(d===null)return;const h=r===0?i.join(Us):i.slice(r).join(Us),v=d.length;for(let y=0;y<v;y++){const w=d[y];if(w.validator(h))return w.classGroupId}},W2=i=>i.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=i.slice(1,-1),s=r.indexOf(":"),l=r.slice(0,s);return l?P2+l:void 0})(),ew=i=>{const{theme:r,classGroups:s}=i;return tw(s,r)},tw=(i,r)=>{const s=Hg();for(const l in i){const c=i[l];Xc(c,s,l,r)}return s},Xc=(i,r,s,l)=>{const c=i.length;for(let f=0;f<c;f++){const d=i[f];nw(d,r,s,l)}},nw=(i,r,s,l)=>{if(typeof i=="string"){aw(i,r,s);return}if(typeof i=="function"){iw(i,r,s,l);return}rw(i,r,s,l)},aw=(i,r,s)=>{const l=i===""?r:Vg(r,i);l.classGroupId=s},iw=(i,r,s,l)=>{if(lw(i)){Xc(i(l),r,s,l);return}r.validators===null&&(r.validators=[]),r.validators.push(J2(s,i))},rw=(i,r,s,l)=>{const c=Object.entries(i),f=c.length;for(let d=0;d<f;d++){const[h,v]=c[d];Xc(v,Vg(r,h),s,l)}},Vg=(i,r)=>{let s=i;const l=r.split(Us),c=l.length;for(let f=0;f<c;f++){const d=l[f];let h=s.nextPart.get(d);h||(h=Hg(),s.nextPart.set(d,h)),s=h}return s},lw=i=>"isThemeGetter"in i&&i.isThemeGetter===!0,sw=i=>{if(i<1)return{get:()=>{},set:()=>{}};let r=0,s=Object.create(null),l=Object.create(null);const c=(f,d)=>{s[f]=d,r++,r>i&&(r=0,l=s,s=Object.create(null))};return{get(f){let d=s[f];if(d!==void 0)return d;if((d=l[f])!==void 0)return c(f,d),d},set(f,d){f in s?s[f]=d:c(f,d)}}},Lc="!",_0=":",ow=[],D0=(i,r,s,l,c)=>({modifiers:i,hasImportantModifier:r,baseClassName:s,maybePostfixModifierPosition:l,isExternal:c}),uw=i=>{const{prefix:r,experimentalParseClassName:s}=i;let l=c=>{const f=[];let d=0,h=0,v=0,y;const w=c.length;for(let D=0;D<w;D++){const I=c[D];if(d===0&&h===0){if(I===_0){f.push(c.slice(v,D)),v=D+1;continue}if(I==="/"){y=D;continue}}I==="["?d++:I==="]"?d--:I==="("?h++:I===")"&&h--}const E=f.length===0?c:c.slice(v);let U=E,S=!1;E.endsWith(Lc)?(U=E.slice(0,-1),S=!0):E.startsWith(Lc)&&(U=E.slice(1),S=!0);const N=y&&y>v?y-v:void 0;return D0(f,S,U,N)};if(r){const c=r+_0,f=l;l=d=>d.startsWith(c)?f(d.slice(c.length)):D0(ow,!1,d,void 0,!0)}if(s){const c=l;l=f=>s({className:f,parseClassName:c})}return l},cw=i=>{const r=new Map;return i.orderSensitiveModifiers.forEach((s,l)=>{r.set(s,1e6+l)}),s=>{const l=[];let c=[];for(let f=0;f<s.length;f++){const d=s[f],h=d[0]==="[",v=r.has(d);h||v?(c.length>0&&(c.sort(),l.push(...c),c=[]),l.push(d)):c.push(d)}return c.length>0&&(c.sort(),l.push(...c)),l}},fw=i=>({cache:sw(i.cacheSize),parseClassName:uw(i),sortModifiers:cw(i),...$2(i)}),dw=/\s+/,hw=(i,r)=>{const{parseClassName:s,getClassGroupId:l,getConflictingClassGroupIds:c,sortModifiers:f}=r,d=[],h=i.trim().split(dw);let v="";for(let y=h.length-1;y>=0;y-=1){const w=h[y],{isExternal:E,modifiers:U,hasImportantModifier:S,baseClassName:N,maybePostfixModifierPosition:D}=s(w);if(E){v=w+(v.length>0?" "+v:v);continue}let I=!!D,K=l(I?N.substring(0,D):N);if(!K){if(!I){v=w+(v.length>0?" "+v:v);continue}if(K=l(N),!K){v=w+(v.length>0?" "+v:v);continue}I=!1}const P=U.length===0?"":U.length===1?U[0]:f(U).join(":"),J=S?P+Lc:P,$=J+K;if(d.indexOf($)>-1)continue;d.push($);const oe=c(K,I);for(let X=0;X<oe.length;++X){const W=oe[X];d.push(J+W)}v=w+(v.length>0?" "+v:v)}return v},mw=(...i)=>{let r=0,s,l,c="";for(;r<i.length;)(s=i[r++])&&(l=Kg(s))&&(c&&(c+=" "),c+=l);return c},Kg=i=>{if(typeof i=="string")return i;let r,s="";for(let l=0;l<i.length;l++)i[l]&&(r=Kg(i[l]))&&(s&&(s+=" "),s+=r);return s},gw=(i,...r)=>{let s,l,c,f;const d=v=>{const y=r.reduce((w,E)=>E(w),i());return s=fw(y),l=s.cache.get,c=s.cache.set,f=h,h(v)},h=v=>{const y=l(v);if(y)return y;const w=hw(v,s);return c(v,w),w};return f=d,(...v)=>f(mw(...v))},pw=[],St=i=>{const r=s=>s[i]||pw;return r.isThemeGetter=!0,r},Yg=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ig=/^\((?:(\w[\w-]*):)?(.+)\)$/i,vw=/^\d+\/\d+$/,yw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,bw=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Sw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ww=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,xw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ki=i=>vw.test(i),De=i=>!!i&&!Number.isNaN(Number(i)),Ta=i=>!!i&&Number.isInteger(Number(i)),nc=i=>i.endsWith("%")&&De(i.slice(0,-1)),Jn=i=>yw.test(i),Ew=()=>!0,Aw=i=>bw.test(i)&&!Sw.test(i),Gg=()=>!1,Tw=i=>ww.test(i),Cw=i=>xw.test(i),Uw=i=>!me(i)&&!ge(i),_w=i=>Zi(i,Zg,Gg),me=i=>Yg.test(i),Ja=i=>Zi(i,Jg,Aw),ac=i=>Zi(i,zw,De),R0=i=>Zi(i,Qg,Gg),Dw=i=>Zi(i,Xg,Cw),ws=i=>Zi(i,Pg,Tw),ge=i=>Ig.test(i),Jr=i=>Ji(i,Jg),Rw=i=>Ji(i,Bw),N0=i=>Ji(i,Qg),Nw=i=>Ji(i,Zg),Mw=i=>Ji(i,Xg),xs=i=>Ji(i,Pg,!0),Zi=(i,r,s)=>{const l=Yg.exec(i);return l?l[1]?r(l[1]):s(l[2]):!1},Ji=(i,r,s=!1)=>{const l=Ig.exec(i);return l?l[1]?r(l[1]):s:!1},Qg=i=>i==="position"||i==="percentage",Xg=i=>i==="image"||i==="url",Zg=i=>i==="length"||i==="size"||i==="bg-size",Jg=i=>i==="length",zw=i=>i==="number",Bw=i=>i==="family-name",Pg=i=>i==="shadow",Ow=()=>{const i=St("color"),r=St("font"),s=St("text"),l=St("font-weight"),c=St("tracking"),f=St("leading"),d=St("breakpoint"),h=St("container"),v=St("spacing"),y=St("radius"),w=St("shadow"),E=St("inset-shadow"),U=St("text-shadow"),S=St("drop-shadow"),N=St("blur"),D=St("perspective"),I=St("aspect"),K=St("ease"),P=St("animate"),J=()=>["auto","avoid","all","avoid-page","page","left","right","column"],$=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],oe=()=>[...$(),ge,me],X=()=>["auto","hidden","clip","visible","scroll"],W=()=>["auto","contain","none"],L=()=>[ge,me,v],Z=()=>[Ki,"full","auto",...L()],ce=()=>[Ta,"none","subgrid",ge,me],ne=()=>["auto",{span:["full",Ta,ge,me]},Ta,ge,me],ee=()=>[Ta,"auto",ge,me],se=()=>["auto","min","max","fr",ge,me],ue=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Ae=()=>["start","end","center","stretch","center-safe","end-safe"],j=()=>["auto",...L()],Q=()=>[Ki,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...L()],G=()=>[i,ge,me],re=()=>[...$(),N0,R0,{position:[ge,me]}],be=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Se=()=>["auto","cover","contain",Nw,_w,{size:[ge,me]}],le=()=>[nc,Jr,Ja],te=()=>["","none","full",y,ge,me],fe=()=>["",De,Jr,Ja],_e=()=>["solid","dashed","dotted","double"],Je=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],pe=()=>[De,nc,N0,R0],$e=()=>["","none",N,ge,me],Ke=()=>["none",De,ge,me],ut=()=>["none",De,ge,me],xe=()=>[De,ge,me],Ye=()=>[Ki,"full",...L()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Jn],breakpoint:[Jn],color:[Ew],container:[Jn],"drop-shadow":[Jn],ease:["in","out","in-out"],font:[Uw],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Jn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Jn],shadow:[Jn],spacing:["px",De],text:[Jn],"text-shadow":[Jn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ki,me,ge,I]}],container:["container"],columns:[{columns:[De,me,ge,h]}],"break-after":[{"break-after":J()}],"break-before":[{"break-before":J()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:oe()}],overflow:[{overflow:X()}],"overflow-x":[{"overflow-x":X()}],"overflow-y":[{"overflow-y":X()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Z()}],"inset-x":[{"inset-x":Z()}],"inset-y":[{"inset-y":Z()}],start:[{start:Z()}],end:[{end:Z()}],top:[{top:Z()}],right:[{right:Z()}],bottom:[{bottom:Z()}],left:[{left:Z()}],visibility:["visible","invisible","collapse"],z:[{z:[Ta,"auto",ge,me]}],basis:[{basis:[Ki,"full","auto",h,...L()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[De,Ki,"auto","initial","none",me]}],grow:[{grow:["",De,ge,me]}],shrink:[{shrink:["",De,ge,me]}],order:[{order:[Ta,"first","last","none",ge,me]}],"grid-cols":[{"grid-cols":ce()}],"col-start-end":[{col:ne()}],"col-start":[{"col-start":ee()}],"col-end":[{"col-end":ee()}],"grid-rows":[{"grid-rows":ce()}],"row-start-end":[{row:ne()}],"row-start":[{"row-start":ee()}],"row-end":[{"row-end":ee()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":se()}],"auto-rows":[{"auto-rows":se()}],gap:[{gap:L()}],"gap-x":[{"gap-x":L()}],"gap-y":[{"gap-y":L()}],"justify-content":[{justify:[...ue(),"normal"]}],"justify-items":[{"justify-items":[...Ae(),"normal"]}],"justify-self":[{"justify-self":["auto",...Ae()]}],"align-content":[{content:["normal",...ue()]}],"align-items":[{items:[...Ae(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Ae(),{baseline:["","last"]}]}],"place-content":[{"place-content":ue()}],"place-items":[{"place-items":[...Ae(),"baseline"]}],"place-self":[{"place-self":["auto",...Ae()]}],p:[{p:L()}],px:[{px:L()}],py:[{py:L()}],ps:[{ps:L()}],pe:[{pe:L()}],pt:[{pt:L()}],pr:[{pr:L()}],pb:[{pb:L()}],pl:[{pl:L()}],m:[{m:j()}],mx:[{mx:j()}],my:[{my:j()}],ms:[{ms:j()}],me:[{me:j()}],mt:[{mt:j()}],mr:[{mr:j()}],mb:[{mb:j()}],ml:[{ml:j()}],"space-x":[{"space-x":L()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":L()}],"space-y-reverse":["space-y-reverse"],size:[{size:Q()}],w:[{w:[h,"screen",...Q()]}],"min-w":[{"min-w":[h,"screen","none",...Q()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[d]},...Q()]}],h:[{h:["screen","lh",...Q()]}],"min-h":[{"min-h":["screen","lh","none",...Q()]}],"max-h":[{"max-h":["screen","lh",...Q()]}],"font-size":[{text:["base",s,Jr,Ja]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[l,ge,ac]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",nc,me]}],"font-family":[{font:[Rw,me,r]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[c,ge,me]}],"line-clamp":[{"line-clamp":[De,"none",ge,ac]}],leading:[{leading:[f,...L()]}],"list-image":[{"list-image":["none",ge,me]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ge,me]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:G()}],"text-color":[{text:G()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[..._e(),"wavy"]}],"text-decoration-thickness":[{decoration:[De,"from-font","auto",ge,Ja]}],"text-decoration-color":[{decoration:G()}],"underline-offset":[{"underline-offset":[De,"auto",ge,me]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ge,me]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ge,me]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:re()}],"bg-repeat":[{bg:be()}],"bg-size":[{bg:Se()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ta,ge,me],radial:["",ge,me],conic:[Ta,ge,me]},Mw,Dw]}],"bg-color":[{bg:G()}],"gradient-from-pos":[{from:le()}],"gradient-via-pos":[{via:le()}],"gradient-to-pos":[{to:le()}],"gradient-from":[{from:G()}],"gradient-via":[{via:G()}],"gradient-to":[{to:G()}],rounded:[{rounded:te()}],"rounded-s":[{"rounded-s":te()}],"rounded-e":[{"rounded-e":te()}],"rounded-t":[{"rounded-t":te()}],"rounded-r":[{"rounded-r":te()}],"rounded-b":[{"rounded-b":te()}],"rounded-l":[{"rounded-l":te()}],"rounded-ss":[{"rounded-ss":te()}],"rounded-se":[{"rounded-se":te()}],"rounded-ee":[{"rounded-ee":te()}],"rounded-es":[{"rounded-es":te()}],"rounded-tl":[{"rounded-tl":te()}],"rounded-tr":[{"rounded-tr":te()}],"rounded-br":[{"rounded-br":te()}],"rounded-bl":[{"rounded-bl":te()}],"border-w":[{border:fe()}],"border-w-x":[{"border-x":fe()}],"border-w-y":[{"border-y":fe()}],"border-w-s":[{"border-s":fe()}],"border-w-e":[{"border-e":fe()}],"border-w-t":[{"border-t":fe()}],"border-w-r":[{"border-r":fe()}],"border-w-b":[{"border-b":fe()}],"border-w-l":[{"border-l":fe()}],"divide-x":[{"divide-x":fe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":fe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[..._e(),"hidden","none"]}],"divide-style":[{divide:[..._e(),"hidden","none"]}],"border-color":[{border:G()}],"border-color-x":[{"border-x":G()}],"border-color-y":[{"border-y":G()}],"border-color-s":[{"border-s":G()}],"border-color-e":[{"border-e":G()}],"border-color-t":[{"border-t":G()}],"border-color-r":[{"border-r":G()}],"border-color-b":[{"border-b":G()}],"border-color-l":[{"border-l":G()}],"divide-color":[{divide:G()}],"outline-style":[{outline:[..._e(),"none","hidden"]}],"outline-offset":[{"outline-offset":[De,ge,me]}],"outline-w":[{outline:["",De,Jr,Ja]}],"outline-color":[{outline:G()}],shadow:[{shadow:["","none",w,xs,ws]}],"shadow-color":[{shadow:G()}],"inset-shadow":[{"inset-shadow":["none",E,xs,ws]}],"inset-shadow-color":[{"inset-shadow":G()}],"ring-w":[{ring:fe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:G()}],"ring-offset-w":[{"ring-offset":[De,Ja]}],"ring-offset-color":[{"ring-offset":G()}],"inset-ring-w":[{"inset-ring":fe()}],"inset-ring-color":[{"inset-ring":G()}],"text-shadow":[{"text-shadow":["none",U,xs,ws]}],"text-shadow-color":[{"text-shadow":G()}],opacity:[{opacity:[De,ge,me]}],"mix-blend":[{"mix-blend":[...Je(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Je()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[De]}],"mask-image-linear-from-pos":[{"mask-linear-from":pe()}],"mask-image-linear-to-pos":[{"mask-linear-to":pe()}],"mask-image-linear-from-color":[{"mask-linear-from":G()}],"mask-image-linear-to-color":[{"mask-linear-to":G()}],"mask-image-t-from-pos":[{"mask-t-from":pe()}],"mask-image-t-to-pos":[{"mask-t-to":pe()}],"mask-image-t-from-color":[{"mask-t-from":G()}],"mask-image-t-to-color":[{"mask-t-to":G()}],"mask-image-r-from-pos":[{"mask-r-from":pe()}],"mask-image-r-to-pos":[{"mask-r-to":pe()}],"mask-image-r-from-color":[{"mask-r-from":G()}],"mask-image-r-to-color":[{"mask-r-to":G()}],"mask-image-b-from-pos":[{"mask-b-from":pe()}],"mask-image-b-to-pos":[{"mask-b-to":pe()}],"mask-image-b-from-color":[{"mask-b-from":G()}],"mask-image-b-to-color":[{"mask-b-to":G()}],"mask-image-l-from-pos":[{"mask-l-from":pe()}],"mask-image-l-to-pos":[{"mask-l-to":pe()}],"mask-image-l-from-color":[{"mask-l-from":G()}],"mask-image-l-to-color":[{"mask-l-to":G()}],"mask-image-x-from-pos":[{"mask-x-from":pe()}],"mask-image-x-to-pos":[{"mask-x-to":pe()}],"mask-image-x-from-color":[{"mask-x-from":G()}],"mask-image-x-to-color":[{"mask-x-to":G()}],"mask-image-y-from-pos":[{"mask-y-from":pe()}],"mask-image-y-to-pos":[{"mask-y-to":pe()}],"mask-image-y-from-color":[{"mask-y-from":G()}],"mask-image-y-to-color":[{"mask-y-to":G()}],"mask-image-radial":[{"mask-radial":[ge,me]}],"mask-image-radial-from-pos":[{"mask-radial-from":pe()}],"mask-image-radial-to-pos":[{"mask-radial-to":pe()}],"mask-image-radial-from-color":[{"mask-radial-from":G()}],"mask-image-radial-to-color":[{"mask-radial-to":G()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":$()}],"mask-image-conic-pos":[{"mask-conic":[De]}],"mask-image-conic-from-pos":[{"mask-conic-from":pe()}],"mask-image-conic-to-pos":[{"mask-conic-to":pe()}],"mask-image-conic-from-color":[{"mask-conic-from":G()}],"mask-image-conic-to-color":[{"mask-conic-to":G()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:re()}],"mask-repeat":[{mask:be()}],"mask-size":[{mask:Se()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ge,me]}],filter:[{filter:["","none",ge,me]}],blur:[{blur:$e()}],brightness:[{brightness:[De,ge,me]}],contrast:[{contrast:[De,ge,me]}],"drop-shadow":[{"drop-shadow":["","none",S,xs,ws]}],"drop-shadow-color":[{"drop-shadow":G()}],grayscale:[{grayscale:["",De,ge,me]}],"hue-rotate":[{"hue-rotate":[De,ge,me]}],invert:[{invert:["",De,ge,me]}],saturate:[{saturate:[De,ge,me]}],sepia:[{sepia:["",De,ge,me]}],"backdrop-filter":[{"backdrop-filter":["","none",ge,me]}],"backdrop-blur":[{"backdrop-blur":$e()}],"backdrop-brightness":[{"backdrop-brightness":[De,ge,me]}],"backdrop-contrast":[{"backdrop-contrast":[De,ge,me]}],"backdrop-grayscale":[{"backdrop-grayscale":["",De,ge,me]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[De,ge,me]}],"backdrop-invert":[{"backdrop-invert":["",De,ge,me]}],"backdrop-opacity":[{"backdrop-opacity":[De,ge,me]}],"backdrop-saturate":[{"backdrop-saturate":[De,ge,me]}],"backdrop-sepia":[{"backdrop-sepia":["",De,ge,me]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":L()}],"border-spacing-x":[{"border-spacing-x":L()}],"border-spacing-y":[{"border-spacing-y":L()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ge,me]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[De,"initial",ge,me]}],ease:[{ease:["linear","initial",K,ge,me]}],delay:[{delay:[De,ge,me]}],animate:[{animate:["none",P,ge,me]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[D,ge,me]}],"perspective-origin":[{"perspective-origin":oe()}],rotate:[{rotate:Ke()}],"rotate-x":[{"rotate-x":Ke()}],"rotate-y":[{"rotate-y":Ke()}],"rotate-z":[{"rotate-z":Ke()}],scale:[{scale:ut()}],"scale-x":[{"scale-x":ut()}],"scale-y":[{"scale-y":ut()}],"scale-z":[{"scale-z":ut()}],"scale-3d":["scale-3d"],skew:[{skew:xe()}],"skew-x":[{"skew-x":xe()}],"skew-y":[{"skew-y":xe()}],transform:[{transform:[ge,me,"","none","gpu","cpu"]}],"transform-origin":[{origin:oe()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ye()}],"translate-x":[{"translate-x":Ye()}],"translate-y":[{"translate-y":Ye()}],"translate-z":[{"translate-z":Ye()}],"translate-none":["translate-none"],accent:[{accent:G()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:G()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ge,me]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ge,me]}],fill:[{fill:["none",...G()]}],"stroke-w":[{stroke:[De,Jr,Ja,ac]}],stroke:[{stroke:["none",...G()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},jw=gw(Ow);function nt(...i){return jw(kg(i))}const qw=Lg("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function $t({className:i,variant:r="default",size:s="default",asChild:l=!1,...c}){const f=l?Ty:"button";return A.jsx(f,{"data-slot":"button","data-variant":r,"data-size":s,className:nt(qw({variant:r,size:s,className:i})),...c})}function M0({...i}){return A.jsx(Cy,{"data-slot":"dropdown-menu",...i})}function z0({...i}){return A.jsx(Uy,{"data-slot":"dropdown-menu-trigger",...i})}function B0({className:i,sideOffset:r=4,...s}){return A.jsx(_y,{children:A.jsx(Dy,{"data-slot":"dropdown-menu-content",sideOffset:r,className:nt("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",i),...s})})}function Pr({className:i,inset:r,variant:s="default",...l}){return A.jsx(Ry,{"data-slot":"dropdown-menu-item","data-inset":r,"data-variant":s,className:nt("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",i),...l})}function O0({className:i,...r}){return A.jsx(Ny,{"data-slot":"dropdown-menu-separator",className:nt("bg-border -mx-1 my-1 h-px",i),...r})}var Yi={},ic,j0;function kw(){return j0||(j0=1,ic=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),ic}var rc={},Ca={},q0;function Wa(){if(q0)return Ca;q0=1;let i;const r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return Ca.getSymbolSize=function(l){if(!l)throw new Error('"version" cannot be null or undefined');if(l<1||l>40)throw new Error('"version" should be in range from 1 to 40');return l*4+17},Ca.getSymbolTotalCodewords=function(l){return r[l]},Ca.getBCHDigit=function(s){let l=0;for(;s!==0;)l++,s>>>=1;return l},Ca.setToSJISFunction=function(l){if(typeof l!="function")throw new Error('"toSJISFunc" is not a valid function.');i=l},Ca.isKanjiModeEnabled=function(){return typeof i<"u"},Ca.toSJIS=function(l){return i(l)},Ca}var lc={},k0;function Zc(){return k0||(k0=1,(function(i){i.L={bit:1},i.M={bit:0},i.Q={bit:3},i.H={bit:2};function r(s){if(typeof s!="string")throw new Error("Param is not a string");switch(s.toLowerCase()){case"l":case"low":return i.L;case"m":case"medium":return i.M;case"q":case"quartile":return i.Q;case"h":case"high":return i.H;default:throw new Error("Unknown EC Level: "+s)}}i.isValid=function(l){return l&&typeof l.bit<"u"&&l.bit>=0&&l.bit<4},i.from=function(l,c){if(i.isValid(l))return l;try{return r(l)}catch{return c}}})(lc)),lc}var sc,L0;function Lw(){if(L0)return sc;L0=1;function i(){this.buffer=[],this.length=0}return i.prototype={get:function(r){const s=Math.floor(r/8);return(this.buffer[s]>>>7-r%8&1)===1},put:function(r,s){for(let l=0;l<s;l++)this.putBit((r>>>s-l-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(r){const s=Math.floor(this.length/8);this.buffer.length<=s&&this.buffer.push(0),r&&(this.buffer[s]|=128>>>this.length%8),this.length++}},sc=i,sc}var oc,H0;function Hw(){if(H0)return oc;H0=1;function i(r){if(!r||r<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=r,this.data=new Uint8Array(r*r),this.reservedBit=new Uint8Array(r*r)}return i.prototype.set=function(r,s,l,c){const f=r*this.size+s;this.data[f]=l,c&&(this.reservedBit[f]=!0)},i.prototype.get=function(r,s){return this.data[r*this.size+s]},i.prototype.xor=function(r,s,l){this.data[r*this.size+s]^=l},i.prototype.isReserved=function(r,s){return this.reservedBit[r*this.size+s]},oc=i,oc}var uc={},F0;function Fw(){return F0||(F0=1,(function(i){const r=Wa().getSymbolSize;i.getRowColCoords=function(l){if(l===1)return[];const c=Math.floor(l/7)+2,f=r(l),d=f===145?26:Math.ceil((f-13)/(2*c-2))*2,h=[f-7];for(let v=1;v<c-1;v++)h[v]=h[v-1]-d;return h.push(6),h.reverse()},i.getPositions=function(l){const c=[],f=i.getRowColCoords(l),d=f.length;for(let h=0;h<d;h++)for(let v=0;v<d;v++)h===0&&v===0||h===0&&v===d-1||h===d-1&&v===0||c.push([f[h],f[v]]);return c}})(uc)),uc}var cc={},V0;function Vw(){if(V0)return cc;V0=1;const i=Wa().getSymbolSize,r=7;return cc.getPositions=function(l){const c=i(l);return[[0,0],[c-r,0],[0,c-r]]},cc}var fc={},K0;function Kw(){return K0||(K0=1,(function(i){i.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const r={N1:3,N2:3,N3:40,N4:10};i.isValid=function(c){return c!=null&&c!==""&&!isNaN(c)&&c>=0&&c<=7},i.from=function(c){return i.isValid(c)?parseInt(c,10):void 0},i.getPenaltyN1=function(c){const f=c.size;let d=0,h=0,v=0,y=null,w=null;for(let E=0;E<f;E++){h=v=0,y=w=null;for(let U=0;U<f;U++){let S=c.get(E,U);S===y?h++:(h>=5&&(d+=r.N1+(h-5)),y=S,h=1),S=c.get(U,E),S===w?v++:(v>=5&&(d+=r.N1+(v-5)),w=S,v=1)}h>=5&&(d+=r.N1+(h-5)),v>=5&&(d+=r.N1+(v-5))}return d},i.getPenaltyN2=function(c){const f=c.size;let d=0;for(let h=0;h<f-1;h++)for(let v=0;v<f-1;v++){const y=c.get(h,v)+c.get(h,v+1)+c.get(h+1,v)+c.get(h+1,v+1);(y===4||y===0)&&d++}return d*r.N2},i.getPenaltyN3=function(c){const f=c.size;let d=0,h=0,v=0;for(let y=0;y<f;y++){h=v=0;for(let w=0;w<f;w++)h=h<<1&2047|c.get(y,w),w>=10&&(h===1488||h===93)&&d++,v=v<<1&2047|c.get(w,y),w>=10&&(v===1488||v===93)&&d++}return d*r.N3},i.getPenaltyN4=function(c){let f=0;const d=c.data.length;for(let v=0;v<d;v++)f+=c.data[v];return Math.abs(Math.ceil(f*100/d/5)-10)*r.N4};function s(l,c,f){switch(l){case i.Patterns.PATTERN000:return(c+f)%2===0;case i.Patterns.PATTERN001:return c%2===0;case i.Patterns.PATTERN010:return f%3===0;case i.Patterns.PATTERN011:return(c+f)%3===0;case i.Patterns.PATTERN100:return(Math.floor(c/2)+Math.floor(f/3))%2===0;case i.Patterns.PATTERN101:return c*f%2+c*f%3===0;case i.Patterns.PATTERN110:return(c*f%2+c*f%3)%2===0;case i.Patterns.PATTERN111:return(c*f%3+(c+f)%2)%2===0;default:throw new Error("bad maskPattern:"+l)}}i.applyMask=function(c,f){const d=f.size;for(let h=0;h<d;h++)for(let v=0;v<d;v++)f.isReserved(v,h)||f.xor(v,h,s(c,v,h))},i.getBestMask=function(c,f){const d=Object.keys(i.Patterns).length;let h=0,v=1/0;for(let y=0;y<d;y++){f(y),i.applyMask(y,c);const w=i.getPenaltyN1(c)+i.getPenaltyN2(c)+i.getPenaltyN3(c)+i.getPenaltyN4(c);i.applyMask(y,c),w<v&&(v=w,h=y)}return h}})(fc)),fc}var Es={},Y0;function $g(){if(Y0)return Es;Y0=1;const i=Zc(),r=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],s=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return Es.getBlocksCount=function(c,f){switch(f){case i.L:return r[(c-1)*4+0];case i.M:return r[(c-1)*4+1];case i.Q:return r[(c-1)*4+2];case i.H:return r[(c-1)*4+3];default:return}},Es.getTotalCodewordsCount=function(c,f){switch(f){case i.L:return s[(c-1)*4+0];case i.M:return s[(c-1)*4+1];case i.Q:return s[(c-1)*4+2];case i.H:return s[(c-1)*4+3];default:return}},Es}var dc={},$r={},I0;function Yw(){if(I0)return $r;I0=1;const i=new Uint8Array(512),r=new Uint8Array(256);return(function(){let l=1;for(let c=0;c<255;c++)i[c]=l,r[l]=c,l<<=1,l&256&&(l^=285);for(let c=255;c<512;c++)i[c]=i[c-255]})(),$r.log=function(l){if(l<1)throw new Error("log("+l+")");return r[l]},$r.exp=function(l){return i[l]},$r.mul=function(l,c){return l===0||c===0?0:i[r[l]+r[c]]},$r}var G0;function Iw(){return G0||(G0=1,(function(i){const r=Yw();i.mul=function(l,c){const f=new Uint8Array(l.length+c.length-1);for(let d=0;d<l.length;d++)for(let h=0;h<c.length;h++)f[d+h]^=r.mul(l[d],c[h]);return f},i.mod=function(l,c){let f=new Uint8Array(l);for(;f.length-c.length>=0;){const d=f[0];for(let v=0;v<c.length;v++)f[v]^=r.mul(c[v],d);let h=0;for(;h<f.length&&f[h]===0;)h++;f=f.slice(h)}return f},i.generateECPolynomial=function(l){let c=new Uint8Array([1]);for(let f=0;f<l;f++)c=i.mul(c,new Uint8Array([1,r.exp(f)]));return c}})(dc)),dc}var hc,Q0;function Gw(){if(Q0)return hc;Q0=1;const i=Iw();function r(s){this.genPoly=void 0,this.degree=s,this.degree&&this.initialize(this.degree)}return r.prototype.initialize=function(l){this.degree=l,this.genPoly=i.generateECPolynomial(this.degree)},r.prototype.encode=function(l){if(!this.genPoly)throw new Error("Encoder not initialized");const c=new Uint8Array(l.length+this.degree);c.set(l);const f=i.mod(c,this.genPoly),d=this.degree-f.length;if(d>0){const h=new Uint8Array(this.degree);return h.set(f,d),h}return f},hc=r,hc}var mc={},gc={},pc={},X0;function Wg(){return X0||(X0=1,pc.isValid=function(r){return!isNaN(r)&&r>=1&&r<=40}),pc}var Rn={},Z0;function ep(){if(Z0)return Rn;Z0=1;const i="[0-9]+",r="[A-Z $%*+\\-./:]+";let s="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";s=s.replace(/u/g,"\\u");const l="(?:(?![A-Z0-9 $%*+\\-./:]|"+s+`)(?:.|[\r
|
|
12
|
+
]))+`;Rn.KANJI=new RegExp(s,"g"),Rn.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Rn.BYTE=new RegExp(l,"g"),Rn.NUMERIC=new RegExp(i,"g"),Rn.ALPHANUMERIC=new RegExp(r,"g");const c=new RegExp("^"+s+"$"),f=new RegExp("^"+i+"$"),d=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return Rn.testKanji=function(v){return c.test(v)},Rn.testNumeric=function(v){return f.test(v)},Rn.testAlphanumeric=function(v){return d.test(v)},Rn}var J0;function ei(){return J0||(J0=1,(function(i){const r=Wg(),s=ep();i.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},i.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},i.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},i.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},i.MIXED={bit:-1},i.getCharCountIndicator=function(f,d){if(!f.ccBits)throw new Error("Invalid mode: "+f);if(!r.isValid(d))throw new Error("Invalid version: "+d);return d>=1&&d<10?f.ccBits[0]:d<27?f.ccBits[1]:f.ccBits[2]},i.getBestModeForData=function(f){return s.testNumeric(f)?i.NUMERIC:s.testAlphanumeric(f)?i.ALPHANUMERIC:s.testKanji(f)?i.KANJI:i.BYTE},i.toString=function(f){if(f&&f.id)return f.id;throw new Error("Invalid mode")},i.isValid=function(f){return f&&f.bit&&f.ccBits};function l(c){if(typeof c!="string")throw new Error("Param is not a string");switch(c.toLowerCase()){case"numeric":return i.NUMERIC;case"alphanumeric":return i.ALPHANUMERIC;case"kanji":return i.KANJI;case"byte":return i.BYTE;default:throw new Error("Unknown mode: "+c)}}i.from=function(f,d){if(i.isValid(f))return f;try{return l(f)}catch{return d}}})(gc)),gc}var P0;function Qw(){return P0||(P0=1,(function(i){const r=Wa(),s=$g(),l=Zc(),c=ei(),f=Wg(),d=7973,h=r.getBCHDigit(d);function v(U,S,N){for(let D=1;D<=40;D++)if(S<=i.getCapacity(D,N,U))return D}function y(U,S){return c.getCharCountIndicator(U,S)+4}function w(U,S){let N=0;return U.forEach(function(D){const I=y(D.mode,S);N+=I+D.getBitsLength()}),N}function E(U,S){for(let N=1;N<=40;N++)if(w(U,N)<=i.getCapacity(N,S,c.MIXED))return N}i.from=function(S,N){return f.isValid(S)?parseInt(S,10):N},i.getCapacity=function(S,N,D){if(!f.isValid(S))throw new Error("Invalid QR Code version");typeof D>"u"&&(D=c.BYTE);const I=r.getSymbolTotalCodewords(S),K=s.getTotalCodewordsCount(S,N),P=(I-K)*8;if(D===c.MIXED)return P;const J=P-y(D,S);switch(D){case c.NUMERIC:return Math.floor(J/10*3);case c.ALPHANUMERIC:return Math.floor(J/11*2);case c.KANJI:return Math.floor(J/13);case c.BYTE:default:return Math.floor(J/8)}},i.getBestVersionForData=function(S,N){let D;const I=l.from(N,l.M);if(Array.isArray(S)){if(S.length>1)return E(S,I);if(S.length===0)return 1;D=S[0]}else D=S;return v(D.mode,D.getLength(),I)},i.getEncodedBits=function(S){if(!f.isValid(S)||S<7)throw new Error("Invalid QR Code version");let N=S<<12;for(;r.getBCHDigit(N)-h>=0;)N^=d<<r.getBCHDigit(N)-h;return S<<12|N}})(mc)),mc}var vc={},$0;function Xw(){if($0)return vc;$0=1;const i=Wa(),r=1335,s=21522,l=i.getBCHDigit(r);return vc.getEncodedBits=function(f,d){const h=f.bit<<3|d;let v=h<<10;for(;i.getBCHDigit(v)-l>=0;)v^=r<<i.getBCHDigit(v)-l;return(h<<10|v)^s},vc}var yc={},bc,W0;function Zw(){if(W0)return bc;W0=1;const i=ei();function r(s){this.mode=i.NUMERIC,this.data=s.toString()}return r.getBitsLength=function(l){return 10*Math.floor(l/3)+(l%3?l%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(l){let c,f,d;for(c=0;c+3<=this.data.length;c+=3)f=this.data.substr(c,3),d=parseInt(f,10),l.put(d,10);const h=this.data.length-c;h>0&&(f=this.data.substr(c),d=parseInt(f,10),l.put(d,h*3+1))},bc=r,bc}var Sc,eg;function Jw(){if(eg)return Sc;eg=1;const i=ei(),r=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function s(l){this.mode=i.ALPHANUMERIC,this.data=l}return s.getBitsLength=function(c){return 11*Math.floor(c/2)+6*(c%2)},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(c){let f;for(f=0;f+2<=this.data.length;f+=2){let d=r.indexOf(this.data[f])*45;d+=r.indexOf(this.data[f+1]),c.put(d,11)}this.data.length%2&&c.put(r.indexOf(this.data[f]),6)},Sc=s,Sc}var wc,tg;function Pw(){if(tg)return wc;tg=1;const i=ei();function r(s){this.mode=i.BYTE,typeof s=="string"?this.data=new TextEncoder().encode(s):this.data=new Uint8Array(s)}return r.getBitsLength=function(l){return l*8},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(s){for(let l=0,c=this.data.length;l<c;l++)s.put(this.data[l],8)},wc=r,wc}var xc,ng;function $w(){if(ng)return xc;ng=1;const i=ei(),r=Wa();function s(l){this.mode=i.KANJI,this.data=l}return s.getBitsLength=function(c){return c*13},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(l){let c;for(c=0;c<this.data.length;c++){let f=r.toSJIS(this.data[c]);if(f>=33088&&f<=40956)f-=33088;else if(f>=57408&&f<=60351)f-=49472;else throw new Error("Invalid SJIS character: "+this.data[c]+`
|
|
13
|
+
Make sure your charset is UTF-8`);f=(f>>>8&255)*192+(f&255),l.put(f,13)}},xc=s,xc}var Ec={exports:{}},ag;function Ww(){return ag||(ag=1,(function(i){var r={single_source_shortest_paths:function(s,l,c){var f={},d={};d[l]=0;var h=r.PriorityQueue.make();h.push(l,0);for(var v,y,w,E,U,S,N,D,I;!h.empty();){v=h.pop(),y=v.value,E=v.cost,U=s[y]||{};for(w in U)U.hasOwnProperty(w)&&(S=U[w],N=E+S,D=d[w],I=typeof d[w]>"u",(I||D>N)&&(d[w]=N,h.push(w,N),f[w]=y))}if(typeof c<"u"&&typeof d[c]>"u"){var K=["Could not find a path from ",l," to ",c,"."].join("");throw new Error(K)}return f},extract_shortest_path_from_predecessor_list:function(s,l){for(var c=[],f=l;f;)c.push(f),s[f],f=s[f];return c.reverse(),c},find_path:function(s,l,c){var f=r.single_source_shortest_paths(s,l,c);return r.extract_shortest_path_from_predecessor_list(f,c)},PriorityQueue:{make:function(s){var l=r.PriorityQueue,c={},f;s=s||{};for(f in l)l.hasOwnProperty(f)&&(c[f]=l[f]);return c.queue=[],c.sorter=s.sorter||l.default_sorter,c},default_sorter:function(s,l){return s.cost-l.cost},push:function(s,l){var c={value:s,cost:l};this.queue.push(c),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};i.exports=r})(Ec)),Ec.exports}var ig;function ex(){return ig||(ig=1,(function(i){const r=ei(),s=Zw(),l=Jw(),c=Pw(),f=$w(),d=ep(),h=Wa(),v=Ww();function y(K){return unescape(encodeURIComponent(K)).length}function w(K,P,J){const $=[];let oe;for(;(oe=K.exec(J))!==null;)$.push({data:oe[0],index:oe.index,mode:P,length:oe[0].length});return $}function E(K){const P=w(d.NUMERIC,r.NUMERIC,K),J=w(d.ALPHANUMERIC,r.ALPHANUMERIC,K);let $,oe;return h.isKanjiModeEnabled()?($=w(d.BYTE,r.BYTE,K),oe=w(d.KANJI,r.KANJI,K)):($=w(d.BYTE_KANJI,r.BYTE,K),oe=[]),P.concat(J,$,oe).sort(function(W,L){return W.index-L.index}).map(function(W){return{data:W.data,mode:W.mode,length:W.length}})}function U(K,P){switch(P){case r.NUMERIC:return s.getBitsLength(K);case r.ALPHANUMERIC:return l.getBitsLength(K);case r.KANJI:return f.getBitsLength(K);case r.BYTE:return c.getBitsLength(K)}}function S(K){return K.reduce(function(P,J){const $=P.length-1>=0?P[P.length-1]:null;return $&&$.mode===J.mode?(P[P.length-1].data+=J.data,P):(P.push(J),P)},[])}function N(K){const P=[];for(let J=0;J<K.length;J++){const $=K[J];switch($.mode){case r.NUMERIC:P.push([$,{data:$.data,mode:r.ALPHANUMERIC,length:$.length},{data:$.data,mode:r.BYTE,length:$.length}]);break;case r.ALPHANUMERIC:P.push([$,{data:$.data,mode:r.BYTE,length:$.length}]);break;case r.KANJI:P.push([$,{data:$.data,mode:r.BYTE,length:y($.data)}]);break;case r.BYTE:P.push([{data:$.data,mode:r.BYTE,length:y($.data)}])}}return P}function D(K,P){const J={},$={start:{}};let oe=["start"];for(let X=0;X<K.length;X++){const W=K[X],L=[];for(let Z=0;Z<W.length;Z++){const ce=W[Z],ne=""+X+Z;L.push(ne),J[ne]={node:ce,lastCount:0},$[ne]={};for(let ee=0;ee<oe.length;ee++){const se=oe[ee];J[se]&&J[se].node.mode===ce.mode?($[se][ne]=U(J[se].lastCount+ce.length,ce.mode)-U(J[se].lastCount,ce.mode),J[se].lastCount+=ce.length):(J[se]&&(J[se].lastCount=ce.length),$[se][ne]=U(ce.length,ce.mode)+4+r.getCharCountIndicator(ce.mode,P))}}oe=L}for(let X=0;X<oe.length;X++)$[oe[X]].end=0;return{map:$,table:J}}function I(K,P){let J;const $=r.getBestModeForData(K);if(J=r.from(P,$),J!==r.BYTE&&J.bit<$.bit)throw new Error('"'+K+'" cannot be encoded with mode '+r.toString(J)+`.
|
|
14
|
+
Suggested mode is: `+r.toString($));switch(J===r.KANJI&&!h.isKanjiModeEnabled()&&(J=r.BYTE),J){case r.NUMERIC:return new s(K);case r.ALPHANUMERIC:return new l(K);case r.KANJI:return new f(K);case r.BYTE:return new c(K)}}i.fromArray=function(P){return P.reduce(function(J,$){return typeof $=="string"?J.push(I($,null)):$.data&&J.push(I($.data,$.mode)),J},[])},i.fromString=function(P,J){const $=E(P,h.isKanjiModeEnabled()),oe=N($),X=D(oe,J),W=v.find_path(X.map,"start","end"),L=[];for(let Z=1;Z<W.length-1;Z++)L.push(X.table[W[Z]].node);return i.fromArray(S(L))},i.rawSplit=function(P){return i.fromArray(E(P,h.isKanjiModeEnabled()))}})(yc)),yc}var rg;function tx(){if(rg)return rc;rg=1;const i=Wa(),r=Zc(),s=Lw(),l=Hw(),c=Fw(),f=Vw(),d=Kw(),h=$g(),v=Gw(),y=Qw(),w=Xw(),E=ei(),U=ex();function S(X,W){const L=X.size,Z=f.getPositions(W);for(let ce=0;ce<Z.length;ce++){const ne=Z[ce][0],ee=Z[ce][1];for(let se=-1;se<=7;se++)if(!(ne+se<=-1||L<=ne+se))for(let ue=-1;ue<=7;ue++)ee+ue<=-1||L<=ee+ue||(se>=0&&se<=6&&(ue===0||ue===6)||ue>=0&&ue<=6&&(se===0||se===6)||se>=2&&se<=4&&ue>=2&&ue<=4?X.set(ne+se,ee+ue,!0,!0):X.set(ne+se,ee+ue,!1,!0))}}function N(X){const W=X.size;for(let L=8;L<W-8;L++){const Z=L%2===0;X.set(L,6,Z,!0),X.set(6,L,Z,!0)}}function D(X,W){const L=c.getPositions(W);for(let Z=0;Z<L.length;Z++){const ce=L[Z][0],ne=L[Z][1];for(let ee=-2;ee<=2;ee++)for(let se=-2;se<=2;se++)ee===-2||ee===2||se===-2||se===2||ee===0&&se===0?X.set(ce+ee,ne+se,!0,!0):X.set(ce+ee,ne+se,!1,!0)}}function I(X,W){const L=X.size,Z=y.getEncodedBits(W);let ce,ne,ee;for(let se=0;se<18;se++)ce=Math.floor(se/3),ne=se%3+L-8-3,ee=(Z>>se&1)===1,X.set(ce,ne,ee,!0),X.set(ne,ce,ee,!0)}function K(X,W,L){const Z=X.size,ce=w.getEncodedBits(W,L);let ne,ee;for(ne=0;ne<15;ne++)ee=(ce>>ne&1)===1,ne<6?X.set(ne,8,ee,!0):ne<8?X.set(ne+1,8,ee,!0):X.set(Z-15+ne,8,ee,!0),ne<8?X.set(8,Z-ne-1,ee,!0):ne<9?X.set(8,15-ne-1+1,ee,!0):X.set(8,15-ne-1,ee,!0);X.set(Z-8,8,1,!0)}function P(X,W){const L=X.size;let Z=-1,ce=L-1,ne=7,ee=0;for(let se=L-1;se>0;se-=2)for(se===6&&se--;;){for(let ue=0;ue<2;ue++)if(!X.isReserved(ce,se-ue)){let Ae=!1;ee<W.length&&(Ae=(W[ee]>>>ne&1)===1),X.set(ce,se-ue,Ae),ne--,ne===-1&&(ee++,ne=7)}if(ce+=Z,ce<0||L<=ce){ce-=Z,Z=-Z;break}}}function J(X,W,L){const Z=new s;L.forEach(function(ue){Z.put(ue.mode.bit,4),Z.put(ue.getLength(),E.getCharCountIndicator(ue.mode,X)),ue.write(Z)});const ce=i.getSymbolTotalCodewords(X),ne=h.getTotalCodewordsCount(X,W),ee=(ce-ne)*8;for(Z.getLengthInBits()+4<=ee&&Z.put(0,4);Z.getLengthInBits()%8!==0;)Z.putBit(0);const se=(ee-Z.getLengthInBits())/8;for(let ue=0;ue<se;ue++)Z.put(ue%2?17:236,8);return $(Z,X,W)}function $(X,W,L){const Z=i.getSymbolTotalCodewords(W),ce=h.getTotalCodewordsCount(W,L),ne=Z-ce,ee=h.getBlocksCount(W,L),se=Z%ee,ue=ee-se,Ae=Math.floor(Z/ee),j=Math.floor(ne/ee),Q=j+1,G=Ae-j,re=new v(G);let be=0;const Se=new Array(ee),le=new Array(ee);let te=0;const fe=new Uint8Array(X.buffer);for(let Ke=0;Ke<ee;Ke++){const ut=Ke<ue?j:Q;Se[Ke]=fe.slice(be,be+ut),le[Ke]=re.encode(Se[Ke]),be+=ut,te=Math.max(te,ut)}const _e=new Uint8Array(Z);let Je=0,pe,$e;for(pe=0;pe<te;pe++)for($e=0;$e<ee;$e++)pe<Se[$e].length&&(_e[Je++]=Se[$e][pe]);for(pe=0;pe<G;pe++)for($e=0;$e<ee;$e++)_e[Je++]=le[$e][pe];return _e}function oe(X,W,L,Z){let ce;if(Array.isArray(X))ce=U.fromArray(X);else if(typeof X=="string"){let Ae=W;if(!Ae){const j=U.rawSplit(X);Ae=y.getBestVersionForData(j,L)}ce=U.fromString(X,Ae||40)}else throw new Error("Invalid data");const ne=y.getBestVersionForData(ce,L);if(!ne)throw new Error("The amount of data is too big to be stored in a QR Code");if(!W)W=ne;else if(W<ne)throw new Error(`
|
|
15
|
+
The chosen QR Code version cannot contain this amount of data.
|
|
16
|
+
Minimum version required to store current data is: `+ne+`.
|
|
17
|
+
`);const ee=J(W,L,ce),se=i.getSymbolSize(W),ue=new l(se);return S(ue,W),N(ue),D(ue,W),K(ue,L,0),W>=7&&I(ue,W),P(ue,ee),isNaN(Z)&&(Z=d.getBestMask(ue,K.bind(null,ue,L))),d.applyMask(Z,ue),K(ue,L,Z),{modules:ue,version:W,errorCorrectionLevel:L,maskPattern:Z,segments:ce}}return rc.create=function(W,L){if(typeof W>"u"||W==="")throw new Error("No input text");let Z=r.M,ce,ne;return typeof L<"u"&&(Z=r.from(L.errorCorrectionLevel,r.M),ce=y.from(L.version),ne=d.from(L.maskPattern),L.toSJISFunc&&i.setToSJISFunction(L.toSJISFunc)),oe(W,ce,Z,ne)},rc}var Ac={},Tc={},lg;function tp(){return lg||(lg=1,(function(i){function r(s){if(typeof s=="number"&&(s=s.toString()),typeof s!="string")throw new Error("Color should be defined as hex string");let l=s.slice().replace("#","").split("");if(l.length<3||l.length===5||l.length>8)throw new Error("Invalid hex color: "+s);(l.length===3||l.length===4)&&(l=Array.prototype.concat.apply([],l.map(function(f){return[f,f]}))),l.length===6&&l.push("F","F");const c=parseInt(l.join(""),16);return{r:c>>24&255,g:c>>16&255,b:c>>8&255,a:c&255,hex:"#"+l.slice(0,6).join("")}}i.getOptions=function(l){l||(l={}),l.color||(l.color={});const c=typeof l.margin>"u"||l.margin===null||l.margin<0?4:l.margin,f=l.width&&l.width>=21?l.width:void 0,d=l.scale||4;return{width:f,scale:f?4:d,margin:c,color:{dark:r(l.color.dark||"#000000ff"),light:r(l.color.light||"#ffffffff")},type:l.type,rendererOpts:l.rendererOpts||{}}},i.getScale=function(l,c){return c.width&&c.width>=l+c.margin*2?c.width/(l+c.margin*2):c.scale},i.getImageWidth=function(l,c){const f=i.getScale(l,c);return Math.floor((l+c.margin*2)*f)},i.qrToImageData=function(l,c,f){const d=c.modules.size,h=c.modules.data,v=i.getScale(d,f),y=Math.floor((d+f.margin*2)*v),w=f.margin*v,E=[f.color.light,f.color.dark];for(let U=0;U<y;U++)for(let S=0;S<y;S++){let N=(U*y+S)*4,D=f.color.light;if(U>=w&&S>=w&&U<y-w&&S<y-w){const I=Math.floor((U-w)/v),K=Math.floor((S-w)/v);D=E[h[I*d+K]?1:0]}l[N++]=D.r,l[N++]=D.g,l[N++]=D.b,l[N]=D.a}}})(Tc)),Tc}var sg;function nx(){return sg||(sg=1,(function(i){const r=tp();function s(c,f,d){c.clearRect(0,0,f.width,f.height),f.style||(f.style={}),f.height=d,f.width=d,f.style.height=d+"px",f.style.width=d+"px"}function l(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}i.render=function(f,d,h){let v=h,y=d;typeof v>"u"&&(!d||!d.getContext)&&(v=d,d=void 0),d||(y=l()),v=r.getOptions(v);const w=r.getImageWidth(f.modules.size,v),E=y.getContext("2d"),U=E.createImageData(w,w);return r.qrToImageData(U.data,f,v),s(E,y,w),E.putImageData(U,0,0),y},i.renderToDataURL=function(f,d,h){let v=h;typeof v>"u"&&(!d||!d.getContext)&&(v=d,d=void 0),v||(v={});const y=i.render(f,d,v),w=v.type||"image/png",E=v.rendererOpts||{};return y.toDataURL(w,E.quality)}})(Ac)),Ac}var Cc={},og;function ax(){if(og)return Cc;og=1;const i=tp();function r(c,f){const d=c.a/255,h=f+'="'+c.hex+'"';return d<1?h+" "+f+'-opacity="'+d.toFixed(2).slice(1)+'"':h}function s(c,f,d){let h=c+f;return typeof d<"u"&&(h+=" "+d),h}function l(c,f,d){let h="",v=0,y=!1,w=0;for(let E=0;E<c.length;E++){const U=Math.floor(E%f),S=Math.floor(E/f);!U&&!y&&(y=!0),c[E]?(w++,E>0&&U>0&&c[E-1]||(h+=y?s("M",U+d,.5+S+d):s("m",v,0),v=0,y=!1),U+1<f&&c[E+1]||(h+=s("h",w),w=0)):v++}return h}return Cc.render=function(f,d,h){const v=i.getOptions(d),y=f.modules.size,w=f.modules.data,E=y+v.margin*2,U=v.color.light.a?"<path "+r(v.color.light,"fill")+' d="M0 0h'+E+"v"+E+'H0z"/>':"",S="<path "+r(v.color.dark,"stroke")+' d="'+l(w,y,v.margin)+'"/>',N='viewBox="0 0 '+E+" "+E+'"',I='<svg xmlns="http://www.w3.org/2000/svg" '+(v.width?'width="'+v.width+'" height="'+v.width+'" ':"")+N+' shape-rendering="crispEdges">'+U+S+`</svg>
|
|
18
|
+
`;return typeof h=="function"&&h(null,I),I},Cc}var ug;function ix(){if(ug)return Yi;ug=1;const i=kw(),r=tx(),s=nx(),l=ax();function c(f,d,h,v,y){const w=[].slice.call(arguments,1),E=w.length,U=typeof w[E-1]=="function";if(!U&&!i())throw new Error("Callback required as last argument");if(U){if(E<2)throw new Error("Too few arguments provided");E===2?(y=h,h=d,d=v=void 0):E===3&&(d.getContext&&typeof y>"u"?(y=v,v=void 0):(y=v,v=h,h=d,d=void 0))}else{if(E<1)throw new Error("Too few arguments provided");return E===1?(h=d,d=v=void 0):E===2&&!d.getContext&&(v=h,h=d,d=void 0),new Promise(function(S,N){try{const D=r.create(h,v);S(f(D,d,v))}catch(D){N(D)}})}try{const S=r.create(h,v);y(null,f(S,d,v))}catch(S){y(S)}}return Yi.create=r.create,Yi.toCanvas=c.bind(null,s.render),Yi.toDataURL=c.bind(null,s.renderToDataURL),Yi.toString=c.bind(null,function(f,d,h){return l.render(f,h)}),Yi}var rx=ix();function lx({...i}){return A.jsx(hg,{"data-slot":"dialog",...i})}function AE({...i}){return A.jsx(My,{"data-slot":"dialog-trigger",...i})}function sx({...i}){return A.jsx(pg,{"data-slot":"dialog-portal",...i})}function ox({className:i,...r}){return A.jsx(vg,{"data-slot":"dialog-overlay",className:nt("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",i),...r})}function ux({className:i,children:r,showCloseButton:s=!0,...l}){return A.jsxs(sx,{"data-slot":"dialog-portal",children:[A.jsx(ox,{}),A.jsxs(mg,{"data-slot":"dialog-content",className:nt("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 outline-none sm:max-w-lg",i),...l,children:[r,s&&A.jsxs(Fc,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[A.jsx(Sg,{}),A.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function cx({className:i,...r}){return A.jsx("div",{"data-slot":"dialog-header",className:nt("flex flex-col gap-2 text-center sm:text-left",i),...r})}function TE({className:i,showCloseButton:r=!1,children:s,...l}){return A.jsxs("div",{"data-slot":"dialog-footer",className:nt("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",i),...l,children:[s,r&&A.jsx(Fc,{asChild:!0,children:A.jsx($t,{variant:"outline",children:"Close"})})]})}function fx({className:i,...r}){return A.jsx(gg,{"data-slot":"dialog-title",className:nt("text-lg leading-none font-semibold",i),...r})}function dx({className:i,...r}){return A.jsx(zy,{"data-slot":"dialog-description",className:nt("text-muted-foreground text-sm",i),...r})}function hx({className:i,orientation:r="horizontal",...s}){return A.jsx(By,{"data-slot":"tabs","data-orientation":r,orientation:r,className:nt("group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",i),...s})}const mx=Lg("rounded-lg p-[3px] group-data-[orientation=horizontal]/tabs:h-9 data-[variant=line]:rounded-none group/tabs-list text-muted-foreground inline-flex w-fit items-center justify-center group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function gx({className:i,variant:r="default",...s}){return A.jsx(Oy,{"data-slot":"tabs-list","data-variant":r,className:nt(mx({variant:r}),i),...s})}function Uc({className:i,...r}){return A.jsx(jy,{"data-slot":"tabs-trigger",className:nt("focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground/60 hover:text-foreground dark:text-muted-foreground dark:hover:text-foreground relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent","data-[state=active]:bg-background dark:data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 data-[state=active]:text-foreground","after:bg-foreground after:absolute after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100",i),...r})}function _c({className:i,...r}){return A.jsx(qy,{"data-slot":"tabs-content",className:nt("flex-1 outline-none",i),...r})}function Ua({className:i,type:r,...s}){return A.jsx("input",{type:r,"data-slot":"input",className:nt("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",i),...s})}function _a({className:i,...r}){return A.jsx(ky,{"data-slot":"label",className:nt("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",i),...r})}const cg=12;function Pa(i,r){if(i&&typeof i=="object"&&"name"in i){const s=i.name;if(s==="NotAuthorizedException")return"Current password is incorrect";if(s==="InvalidPasswordException")return"New password does not meet requirements";if(s==="LimitExceededException")return"Too many attempts. Please try again later.";if(s==="AliasExistsException")return"An account with this email already exists";if(s==="CodeMismatchException")return"Invalid verification code";if(s==="EnableSoftwareTokenMFAException")return"Invalid authentication code"}return r}function px({open:i,onOpenChange:r}){const{user:s,updateUserEmail:l}=Rs(),[c,f]=ae.useState(""),[d,h]=ae.useState(""),[v,y]=ae.useState(""),[w,E]=ae.useState(""),[U,S]=ae.useState(!1),[N,D]=ae.useState("input"),[I,K]=ae.useState(""),[P,J]=ae.useState(""),[$,oe]=ae.useState(""),[X,W]=ae.useState(!1),[L,Z]=ae.useState(null),[ce,ne]=ae.useState("status"),[ee,se]=ae.useState(""),[ue,Ae]=ae.useState(""),[j,Q]=ae.useState(""),[G,re]=ae.useState(!1),[be,Se]=ae.useState("");ae.useEffect(()=>{i&&R2().then(Z).catch(()=>Z(!1))},[i]);function le(){f(""),h(""),y(""),E(""),S(!1),D("input"),K(""),J(""),oe(""),W(!1),Z(null),ne("status"),se(""),Ae(""),Q(""),re(!1),Se("")}async function te(xe){if(xe.preventDefault(),E(""),d.length<cg){E(`Password must be at least ${cg} characters`);return}if(d!==v){E("Passwords do not match");return}if(d===c){E("New password must be different from current password");return}S(!0);try{await U2(c,d),vs.success("Password changed successfully"),f(""),h(""),y(""),E("")}catch(Ye){E(Pa(Ye,"Failed to change password"))}finally{S(!1)}}async function fe(xe){if(xe.preventDefault(),oe(""),!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(I)){oe("Please enter a valid email address");return}if(I===s?.email){oe("New email must be different from current email");return}W(!0);try{await x0(I),D("verify")}catch(gn){oe(Pa(gn,"Failed to send verification code"))}finally{W(!1)}}async function _e(xe){xe.preventDefault(),oe(""),W(!0);try{await _2(P),l(I),vs.success("Email changed successfully"),D("input"),K(""),J("")}catch(Ye){oe(Pa(Ye,"Failed to verify email"))}finally{W(!1)}}async function Je(){oe(""),W(!0);try{await x0(I)}catch(xe){oe(Pa(xe,"Failed to resend verification code"))}finally{W(!1)}}async function pe(){Q(""),re(!0);try{const xe=await D2();se(xe);const Ye=`otpauth://totp/Headroom%20CMS:${encodeURIComponent(s?.email??"")}?secret=${xe}&issuer=Headroom%20CMS`,gn=await rx.toDataURL(Ye);Se(gn),ne("setup")}catch(xe){Q(Pa(xe,"Failed to start 2FA setup"))}finally{re(!1)}}async function $e(xe){xe.preventDefault(),Q(""),re(!0);try{await E0(ue),await A0(!0),Z(!0),ne("status"),se(""),Ae(""),Se(""),vs.success("Two-factor authentication enabled")}catch(Ye){Q(Pa(Ye,"Failed to verify code"))}finally{re(!1)}}async function Ke(xe){xe.preventDefault(),Q(""),re(!0);try{await E0(ue),await A0(!1),Z(!1),ne("status"),Ae(""),vs.success("Two-factor authentication disabled")}catch(Ye){Q(Pa(Ye,"Failed to disable 2FA"))}finally{re(!1)}}function ut(){return ce==="setup"?A.jsxs("div",{className:"space-y-4",children:[A.jsx("p",{className:"text-muted-foreground text-sm",children:"Scan this QR code with your authenticator app, then enter the 6-digit code below."}),be&&A.jsx("div",{className:"flex justify-center",children:A.jsx("img",{src:be,alt:"TOTP QR Code",className:"h-48 w-48"})}),A.jsxs("div",{className:"space-y-1",children:[A.jsx("p",{className:"text-muted-foreground text-xs",children:"Or enter this code manually:"}),A.jsx("code",{className:"bg-muted block rounded p-2 text-center text-sm font-mono break-all",children:ee})]}),A.jsxs("form",{onSubmit:$e,className:"space-y-4",children:[A.jsxs("div",{className:"space-y-2",children:[A.jsx(_a,{htmlFor:"totp-setup-code",children:"Authentication Code"}),A.jsx(Ua,{id:"totp-setup-code",type:"text",inputMode:"numeric",pattern:"[0-9]{6}",maxLength:6,value:ue,onChange:xe=>Ae(xe.target.value),required:!0,autoComplete:"one-time-code"})]}),j&&A.jsx("p",{className:"text-destructive text-sm",role:"alert",children:j}),A.jsxs("div",{className:"flex gap-2",children:[A.jsx($t,{type:"button",variant:"outline",className:"flex-1",onClick:()=>{ne("status"),se(""),Ae(""),Se(""),Q("")},children:"Cancel"}),A.jsxs($t,{type:"submit",className:"flex-1",disabled:G,children:[G&&A.jsx(Pn,{className:"mr-2 h-4 w-4 animate-spin"}),"Enable 2FA"]})]})]})]}):ce==="disable"?A.jsxs("div",{className:"space-y-4",children:[A.jsx("p",{className:"text-muted-foreground text-sm",children:"Enter a code from your authenticator app to confirm disabling two-factor authentication."}),A.jsxs("form",{onSubmit:Ke,className:"space-y-4",children:[A.jsxs("div",{className:"space-y-2",children:[A.jsx(_a,{htmlFor:"totp-disable-code",children:"Authentication Code"}),A.jsx(Ua,{id:"totp-disable-code",type:"text",inputMode:"numeric",pattern:"[0-9]{6}",maxLength:6,value:ue,onChange:xe=>Ae(xe.target.value),required:!0,autoComplete:"one-time-code"})]}),j&&A.jsx("p",{className:"text-destructive text-sm",role:"alert",children:j}),A.jsxs("div",{className:"flex gap-2",children:[A.jsx($t,{type:"button",variant:"outline",className:"flex-1",onClick:()=>{ne("status"),Ae(""),Q("")},children:"Cancel"}),A.jsxs($t,{type:"submit",variant:"destructive",className:"flex-1",disabled:G,children:[G&&A.jsx(Pn,{className:"mr-2 h-4 w-4 animate-spin"}),"Disable 2FA"]})]})]})]}):L===null?A.jsx("div",{className:"flex items-center justify-center py-4",children:A.jsx(Pn,{className:"h-5 w-5 animate-spin"})}):L?A.jsxs("div",{className:"space-y-4",children:[A.jsxs("p",{className:"text-sm",children:["Status: ",A.jsx("span",{className:"font-medium text-green-600",children:"Enabled"})]}),A.jsx($t,{variant:"outline",className:"w-full",onClick:()=>{ne("disable"),Q(""),Ae("")},children:"Disable 2FA"})]}):A.jsxs("div",{className:"space-y-4",children:[A.jsxs("p",{className:"text-sm",children:["Status: ",A.jsx("span",{className:"text-muted-foreground",children:"Not enabled"})]}),j&&A.jsx("p",{className:"text-destructive text-sm",role:"alert",children:j}),A.jsxs($t,{className:"w-full",onClick:pe,disabled:G,children:[G&&A.jsx(Pn,{className:"mr-2 h-4 w-4 animate-spin"}),"Set Up 2FA"]})]})}return A.jsx(lx,{open:i,onOpenChange:xe=>{xe||le(),r(xe)},children:A.jsxs(ux,{className:"sm:max-w-md",children:[A.jsxs(cx,{children:[A.jsx(fx,{children:"Account Settings"}),A.jsx(dx,{className:"sr-only",children:"Manage your password, email, and security settings"})]}),A.jsxs(hx,{defaultValue:"password",children:[A.jsxs(gx,{className:"w-full",children:[A.jsx(Uc,{value:"password",children:"Password"}),A.jsx(Uc,{value:"email",children:"Email"}),A.jsx(Uc,{value:"security",children:"Security"})]}),A.jsx(_c,{value:"password",children:A.jsxs("form",{onSubmit:te,className:"space-y-4 pt-4",children:[A.jsxs("div",{className:"space-y-2",children:[A.jsx(_a,{htmlFor:"current-password",children:"Current Password"}),A.jsx(Ua,{id:"current-password",type:"password",value:c,onChange:xe=>f(xe.target.value),required:!0})]}),A.jsxs("div",{className:"space-y-2",children:[A.jsx(_a,{htmlFor:"new-password",children:"New Password"}),A.jsx(Ua,{id:"new-password",type:"password",value:d,onChange:xe=>h(xe.target.value),required:!0})]}),A.jsxs("div",{className:"space-y-2",children:[A.jsx(_a,{htmlFor:"confirm-password",children:"Confirm New Password"}),A.jsx(Ua,{id:"confirm-password",type:"password",value:v,onChange:xe=>y(xe.target.value),required:!0})]}),w&&A.jsx("p",{className:"text-destructive text-sm",role:"alert",children:w}),A.jsxs($t,{type:"submit",disabled:U,className:"w-full",children:[U&&A.jsx(Pn,{className:"mr-2 h-4 w-4 animate-spin"}),"Change Password"]})]})}),A.jsx(_c,{value:"email",children:A.jsx("div",{className:"pt-4",children:N==="input"?A.jsxs("form",{onSubmit:fe,className:"space-y-4",children:[A.jsxs("div",{className:"space-y-2",children:[A.jsx(_a,{htmlFor:"current-email",children:"Current Email"}),A.jsx(Ua,{id:"current-email",type:"email",value:s?.email??"",disabled:!0})]}),A.jsxs("div",{className:"space-y-2",children:[A.jsx(_a,{htmlFor:"new-email",children:"New Email"}),A.jsx(Ua,{id:"new-email",type:"email",value:I,onChange:xe=>K(xe.target.value),required:!0})]}),$&&A.jsx("p",{className:"text-destructive text-sm",role:"alert",children:$}),A.jsxs($t,{type:"submit",disabled:X,className:"w-full",children:[X&&A.jsx(Pn,{className:"mr-2 h-4 w-4 animate-spin"}),"Send Verification Code"]})]}):A.jsxs("form",{onSubmit:_e,className:"space-y-4",children:[A.jsxs("p",{className:"text-muted-foreground text-sm",children:["A verification code has been sent to"," ",A.jsx("strong",{children:I}),"."]}),A.jsxs("div",{className:"space-y-2",children:[A.jsx(_a,{htmlFor:"verification-code",children:"Verification Code"}),A.jsx(Ua,{id:"verification-code",type:"text",value:P,onChange:xe=>J(xe.target.value),required:!0})]}),$&&A.jsx("p",{className:"text-destructive text-sm",role:"alert",children:$}),A.jsxs($t,{type:"submit",disabled:X,className:"w-full",children:[X&&A.jsx(Pn,{className:"mr-2 h-4 w-4 animate-spin"}),"Verify Email"]}),A.jsx("button",{type:"button",className:"text-muted-foreground hover:text-foreground text-sm underline",onClick:Je,children:"Resend code"})]})})}),A.jsx(_c,{value:"security",children:A.jsxs("div",{className:"pt-4",children:[A.jsx("h3",{className:"mb-4 text-sm font-medium",children:"Two-Factor Authentication"}),ut()]})})]})]})})}function vx({currentSite:i,onMenuClick:r}){const{user:s,logout:l}=Rs(),[c,f]=ae.useState(!1),{data:d}=Og(),{data:h}=jg(),v=vy(),y=d?.items??[],w=s?(h?.superAdminIds??[]).includes(s.sub):!1;return A.jsxs("header",{className:"bg-background sticky top-0 z-30 flex items-center border-b px-4 pt-[env(safe-area-inset-top,0px)] pl-[max(1rem,env(safe-area-inset-left,0px))] pr-[max(1rem,env(safe-area-inset-right,0px))] min-h-14",children:[A.jsxs("div",{className:"flex items-center gap-3",children:[r&&A.jsx($t,{variant:"ghost",size:"icon",className:"md:hidden",onClick:r,"aria-label":"Open menu",children:A.jsx(D1,{className:"h-5 w-5"})}),A.jsx("span",{className:"text-lg font-semibold",children:"Headroom"}),i&&y.length>0&&A.jsxs(M0,{children:[A.jsx(z0,{asChild:!0,children:A.jsxs($t,{variant:"outline",size:"sm",className:"gap-1",children:[i.name||i.host,A.jsx(l1,{className:"h-3 w-3 opacity-50"})]})}),A.jsxs(B0,{align:"start",children:[y.map(E=>A.jsx(Pr,{onSelect:()=>v(`/sites/${E.host}/content`),children:E.name||E.host},E.host)),w&&A.jsxs(A.Fragment,{children:[A.jsx(O0,{}),A.jsx(Pr,{onSelect:()=>v("/sites"),children:"Manage Sites"})]})]})]})]}),A.jsx("div",{className:"ml-auto flex items-center gap-2",children:A.jsxs(M0,{children:[A.jsx(z0,{asChild:!0,children:A.jsxs($t,{variant:"ghost",size:"sm",className:"gap-2",children:[A.jsx(c1,{className:"h-4 w-4"}),A.jsx("span",{className:"text-muted-foreground hidden text-sm md:inline",children:s?.email})]})}),A.jsxs(B0,{align:"end",children:[A.jsx(Pr,{disabled:!0,className:"text-xs",children:s?.email}),A.jsxs(Pr,{onSelect:()=>f(!0),children:[A.jsx(bg,{className:"mr-2 h-4 w-4"}),"Account Settings"]}),A.jsx(O0,{}),A.jsx(Pr,{onSelect:l,children:"Log out"})]})]})}),A.jsx(px,{open:c,onOpenChange:f})]})}function yx({className:i,children:r,...s}){return A.jsxs(Ly,{"data-slot":"scroll-area",className:nt("relative",i),...s,children:[A.jsx(Hy,{"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:r}),A.jsx(bx,{}),A.jsx(Fy,{})]})}function bx({className:i,orientation:r="vertical",...s}){return A.jsx(Vy,{"data-slot":"scroll-area-scrollbar",orientation:r,className:nt("flex touch-none p-px transition-colors select-none",r==="vertical"&&"h-full w-2.5 border-l border-l-transparent",r==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",i),...s,children:A.jsx(Ky,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}function fg({className:i,orientation:r="horizontal",decorative:s=!0,...l}){return A.jsx(Yy,{"data-slot":"separator",decorative:s,orientation:r,className:nt("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",i),...l})}function Sx({className:i,...r}){return A.jsx("div",{"data-slot":"skeleton",className:nt("bg-accent animate-pulse rounded-md",i),...r})}function wx(){const{user:i}=Rs(),{site:r}=Qc(),{data:s}=jg();return i?(s?.superAdminIds??[]).includes(i.sub)?"admin":r.admins?.find(f=>f.id===i.sub)?.role??null:null}function fn({to:i,icon:r,end:s,children:l,onClick:c}){const{host:f}=dg(),d=`/sites/${f}/${i}`;return A.jsxs(yy,{to:d,end:s,onClick:c,className:({isActive:h})=>nt("flex items-center gap-2 rounded-md px-3 py-2 text-sm transition-colors",h?"bg-accent text-accent-foreground font-medium":"text-muted-foreground hover:bg-accent/50 hover:text-accent-foreground"),children:[A.jsx(r,{className:"h-4 w-4"}),l]})}function Wr({title:i,children:r}){return A.jsxs("div",{className:"mb-2",children:[i&&A.jsx("p",{className:"text-muted-foreground mb-1 px-3 text-xs font-medium uppercase tracking-wider",children:i}),A.jsx("div",{className:"space-y-0.5",children:r})]})}function np({onNavigate:i}){const{collections:r,isLoading:s}=Qc(),l=wx(),c=r.filter(h=>!h.singleton),f=r.filter(h=>h.singleton),d=l==="admin";return s?A.jsx("div",{className:"p-4",children:A.jsx("div",{className:"space-y-3",children:Array.from({length:6}).map((h,v)=>A.jsx(Sx,{className:"h-8 w-full"},v))})}):A.jsx(yx,{className:"h-full",children:A.jsxs("nav",{className:"space-y-1 p-3",children:[A.jsx(Wr,{title:"",children:A.jsx(fn,{to:"content",icon:d1,end:!0,onClick:i,children:"Recent"})}),c.length>0&&A.jsx(Wr,{title:"Collections",children:c.map(h=>A.jsx(fn,{to:`content/${h.name}`,icon:y1,onClick:i,children:h.label},h.name))}),f.length>0&&A.jsx(Wr,{title:"Singletons",children:f.map(h=>A.jsx(fn,{to:h.singletonContentId?`content/${h.name}/${h.singletonContentId}`:`content/${h.name}`,icon:bg,onClick:i,children:h.label},h.name))}),A.jsx(fg,{className:"my-2"}),A.jsxs(Wr,{title:"Content",children:[A.jsx(fn,{to:"media",icon:x1,onClick:i,children:"Media"}),A.jsx(fn,{to:"settings/tags",icon:B1,onClick:i,children:"Tags"})]}),d&&A.jsxs(A.Fragment,{children:[A.jsx(fg,{className:"my-2"}),A.jsxs(Wr,{title:"Settings",children:[A.jsx(fn,{to:"settings/collections",icon:p1,onClick:i,children:"Collections"}),A.jsx(fn,{to:"settings/block-types",icon:i1,onClick:i,children:"Block Types"}),A.jsx(fn,{to:"settings/api-keys",icon:C1,onClick:i,children:"API Keys"}),A.jsx(fn,{to:"settings/webhooks",icon:H1,onClick:i,children:"Webhooks"}),A.jsx(fn,{to:"settings/admins",icon:k1,onClick:i,children:"Admins"}),A.jsx(fn,{to:"audit",icon:S1,onClick:i,children:"Audit Log"}),A.jsx(fn,{to:"settings",icon:m1,end:!0,onClick:i,children:"Configuration"})]})]})]})})}function xx(){return A.jsx("div",{className:"w-50 border-r h-[calc(100vh-3.5rem)] pl-[env(safe-area-inset-left,0px)]",children:A.jsx(np,{})})}function Ex({...i}){return A.jsx(hg,{"data-slot":"sheet",...i})}function Ax({...i}){return A.jsx(pg,{"data-slot":"sheet-portal",...i})}function Tx({className:i,...r}){return A.jsx(vg,{"data-slot":"sheet-overlay",className:nt("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",i),...r})}function Cx({className:i,children:r,side:s="right",showCloseButton:l=!0,...c}){return A.jsxs(Ax,{children:[A.jsx(Tx,{}),A.jsxs(mg,{"data-slot":"sheet-content",className:nt("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",s==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",s==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",s==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",s==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",i),...c,children:[r,l&&A.jsxs(Fc,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[A.jsx(Sg,{className:"size-4"}),A.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function CE({className:i,...r}){return A.jsx("div",{"data-slot":"sheet-header",className:nt("flex flex-col gap-1.5 p-4",i),...r})}function Ux({className:i,...r}){return A.jsx(gg,{"data-slot":"sheet-title",className:nt("text-foreground font-semibold",i),...r})}function _x({open:i,onOpenChange:r}){return A.jsx(Ex,{open:i,onOpenChange:r,children:A.jsxs(Cx,{side:"left",className:"w-64 p-0 pt-[env(safe-area-inset-top,0px)] pl-[env(safe-area-inset-left,0px)] [&_[data-slot=sheet-close]]:top-[calc(1rem+env(safe-area-inset-top,0px))]",children:[A.jsx(Ux,{className:"sr-only",children:"Navigation"}),A.jsx(np,{onNavigate:()=>r(!1)})]})})}function Dx(){const{site:i}=Qc(),[r,s]=ae.useState(!1);return A.jsxs("div",{className:"flex w-full flex-col md:h-dvh",children:[A.jsx(vx,{currentSite:i,onMenuClick:()=>s(!0)}),i?.status==="archived"&&A.jsxs("div",{className:"bg-muted border-b px-4 py-2 text-sm flex items-center gap-2",children:[A.jsx(n1,{className:"h-4 w-4"}),"This site is archived. Content is read-only.",A.jsx(by,{to:`/sites/${i.host}/settings`,className:"text-primary underline underline-offset-4",children:"Go to settings"})]}),A.jsxs("div",{className:"flex max-w-full flex-1 md:overflow-hidden",children:[A.jsx("div",{className:"hidden md:block",children:A.jsx(xx,{})}),A.jsx(_x,{open:r,onOpenChange:s}),A.jsx("main",{className:"min-w-0 flex-1 p-2 pb-[max(0.5rem,env(safe-area-inset-bottom,0px))] pl-[max(0.5rem,env(safe-area-inset-left,0px))] pr-[max(0.5rem,env(safe-area-inset-right,0px))] md:overflow-y-auto md:p-6 md:pl-6 md:pr-[max(1.5rem,env(safe-area-inset-right,0px))] md:pb-[max(1.5rem,env(safe-area-inset-bottom,0px))]",children:A.jsx(ae.Suspense,{children:A.jsx(Sy,{})})})]})]})}const Rx=ae.lazy(()=>yt(()=>import("./LoginPage-BlJXP0GH.js"),__vite__mapDeps([0,1,2,3,4])).then(i=>({default:i.LoginPage}))),Nx=ae.lazy(()=>yt(()=>import("./SitesPage-DnCiSu23.js"),__vite__mapDeps([5,1,2,3,6,4,7,8,9])).then(i=>({default:i.SitesPage}))),Mx=ae.lazy(()=>yt(()=>import("./UsersPage-D_nOx6W9.js"),__vite__mapDeps([10,1,2,7,8,4,6,11,12])).then(i=>({default:i.UsersPage}))),zx=ae.lazy(()=>yt(()=>import("./AllContentPage-DShBvFru.js"),__vite__mapDeps([13,1,2,14,15,6,4,3,7,8,11,16,17])).then(i=>({default:i.AllContentPage}))),Bx=ae.lazy(()=>yt(()=>import("./ContentListPage-llAlhZTH.js"),__vite__mapDeps([18,1,2,14,19,20,15,6,4,3,7,8,21,22,11,16,23,17,9,24])).then(i=>({default:i.ContentListPage}))),Ox=ae.lazy(()=>yt(()=>import("./ContentCreatePage-DujNZXXj.js"),__vite__mapDeps([25,1,2,14,3,16,4])).then(i=>({default:i.ContentCreatePage}))),jx=ae.lazy(()=>yt(()=>import("./ContentEditPage-DyqgEoAe.js").then(i=>i.a),__vite__mapDeps([26,1,2,14,27,15,22,8,4,16,28,29,6,3,30,19,21,31,24,20,9,7,12,23])).then(i=>({default:i.ContentEditPage}))),qx=ae.lazy(()=>yt(()=>import("./MediaPage-Cad4n33B.js"),__vite__mapDeps([32,1,2,30,4,6,3,7,8,22,29,16,15,11,33,12,9,24,34])).then(i=>({default:i.MediaPage}))),kx=ae.lazy(()=>yt(()=>import("./CollectionsPage-D-QTkoW_.js"),__vite__mapDeps([35,1,2,6,4,11,9])).then(i=>({default:i.CollectionsPage}))),Lx=ae.lazy(()=>yt(()=>import("./CollectionEditPage-CQGo9Cbu.js"),__vite__mapDeps([36,1,2,37,29,4,28,22,8,16,7,9,12,3])).then(i=>({default:i.CollectionEditPage}))),Hx=ae.lazy(()=>yt(()=>import("./BlockTypesPage-Pf9u78-O.js"),__vite__mapDeps([38,1,2,11,9,4])).then(i=>({default:i.BlockTypesPage}))),Fx=ae.lazy(()=>yt(()=>import("./BlockTypeEditPage-BYJfEA6l.js"),__vite__mapDeps([39,1,2,37,29,4,28,22,8,16,7,9,12,3,40,20])).then(i=>({default:i.BlockTypeEditPage}))),Vx=ae.lazy(()=>yt(()=>import("./ApiKeysPage-DONrd-TJ.js"),__vite__mapDeps([41,1,2,11,16,9,12,33,4])).then(i=>({default:i.ApiKeysPage}))),Kx=ae.lazy(()=>yt(()=>import("./WebhooksPage-CG7WC9Bq.js"),__vite__mapDeps([42,1,2,43,6,4,11,9])).then(i=>({default:i.WebhooksPage}))),Yx=ae.lazy(()=>yt(()=>import("./WebhookEditPage-BUvLl4rY.js"),__vite__mapDeps([44,1,2,43,6,4,3,11,16,12])).then(i=>({default:i.WebhookEditPage}))),Ix=ae.lazy(()=>yt(()=>import("./AdminsPage-DYJhlQnA.js"),__vite__mapDeps([45,1,2,27,11,21,4,31,24,22,8,9,12])).then(i=>({default:i.AdminsPage}))),Gx=ae.lazy(()=>yt(()=>import("./AuditPage-BwhYu96L.js"),__vite__mapDeps([46,1,2,27,11,16,4])).then(i=>({default:i.AuditPage}))),Qx=ae.lazy(()=>yt(()=>import("./TagsPage-DNlaoFCE.js"),__vite__mapDeps([47,1,2,19,11,9,12,4])).then(i=>({default:i.TagsPage}))),Xx=ae.lazy(()=>yt(()=>import("./SiteSettingsPage-xfAm3ZKQ.js"),__vite__mapDeps([48,1,2,6,4,3,16])).then(i=>({default:i.SiteSettingsPage}))),Zx=[{path:"/login",element:A.jsx(ae.Suspense,{children:A.jsx(Rx,{})})},{path:"/",element:A.jsx(Ts,{to:"/sites",replace:!0})},{path:"/sites",element:A.jsx(tc,{children:A.jsx(ae.Suspense,{children:A.jsx(Nx,{})})})},{path:"/users",element:A.jsx(tc,{children:A.jsx(ae.Suspense,{children:A.jsx(Mx,{})})})},{path:"/sites/:host",element:A.jsx(tc,{children:A.jsx(X2,{children:A.jsx(Dx,{})})}),children:[{index:!0,element:A.jsx(Ts,{to:"content",replace:!0})},{path:"content",element:A.jsx(zx,{})},{path:"content/:collection",element:A.jsx(Bx,{})},{path:"content/:collection/new",element:A.jsx(Ox,{})},{path:"content/:collection/:id",element:A.jsx(jx,{})},{path:"media",element:A.jsx(qx,{})},{path:"settings",element:A.jsx(Xx,{})},{path:"settings/collections",element:A.jsx(kx,{})},{path:"settings/collections/:name",element:A.jsx(Lx,{})},{path:"settings/block-types",element:A.jsx(Hx,{})},{path:"settings/block-types/:name",element:A.jsx(Fx,{})},{path:"settings/tags",element:A.jsx(Qx,{})},{path:"settings/api-keys",element:A.jsx(Vx,{})},{path:"settings/webhooks",element:A.jsx(Kx,{})},{path:"settings/webhooks/:id",element:A.jsx(Yx,{})},{path:"settings/admins",element:A.jsx(Ix,{})},{path:"audit",element:A.jsx(Gx,{})}]}],Jx=wy(Zx);function Px(){return A.jsx(gy,{client:Y2,children:A.jsx(j2,{children:A.jsxs(K2,{children:[A.jsx(xy,{router:Jx}),A.jsx(bb,{}),A.jsx(Ab,{})]})})})}Zy.createRoot(document.getElementById("root")).render(A.jsx(ae.StrictMode,{children:A.jsx(Px,{})}));export{fE as $,Cx as A,$t as B,CE as C,lx as D,Ux as E,gx as F,Uc as G,vx as H,Ua as I,_c as J,x1 as K,_a as L,y1 as M,yE as N,M0 as O,z0 as P,d1 as Q,B0 as R,Sx as S,hx as T,k1 as U,Pr as V,fg as W,Sg as X,I2 as Y,cE as Z,yt as _,Pn as a,dE as a0,hE as a1,G2 as a2,mE as a3,gE as a4,pE as a5,vE as a6,wx as a7,aE as a8,sE as a9,uE as aa,xE as ab,rE as ac,oE as ad,lE as ae,n1 as af,Lg as ag,Zy as ah,kg as ai,Og as b,nE as c,jg as d,it as e,tE as f,iE as g,Bg as h,AE as i,ux as j,cx as k,fx as l,dx as m,TE as n,ot as o,bE as p,EE as q,SE as r,wE as s,vs as t,Rs as u,Qc as v,nt as w,q2 as x,B2 as y,Ex as z};
|