most-box 0.2.0 → 0.2.1
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/README.md +3 -3
- package/out/admin/index.html +0 -0
- package/out/app/index.html +0 -0
- package/out/assets/{AppShell-CQhg6DJU.js → AppShell-OiOEqXPr.js} +1 -1
- package/out/assets/ChatUi-Cif5LRF3.js +1 -0
- package/out/assets/CopyButton-Dm7krgbq.js +1 -0
- package/out/assets/LanguageToggle-B4ZNuBCV.js +1 -0
- package/out/assets/LogoIcon-B2fFe0l1.js +1 -0
- package/out/assets/MarketingHeader-yIZuQP7m.js +1 -0
- package/out/assets/MarketingLayout-DVH0Nx7S.js +1 -0
- package/out/assets/{MarketingThemeToggle-DBaC9bjz.js → MarketingThemeToggle-qlwCZU1o.js} +1 -1
- package/out/assets/{MilkdownEditor-BqJzntYE.js → MilkdownEditor-_TGlDyA_.js} +1 -1
- package/out/assets/MoveModal-BVr4Q7-b.js +1 -0
- package/out/assets/Nav-5xeettNJ.js +1 -0
- package/out/assets/NoteSidebar-DpniUKmy.js +1 -0
- package/out/assets/OpenSidebarButton-BfgG2HIT.js +1 -0
- package/out/assets/PemBlock-CxwIepth.js +1 -0
- package/out/assets/SidebarAccount-Zg5DZblE.js +1 -0
- package/out/assets/arrow-right-CL9YSDVS.js +1 -0
- package/out/assets/channelApi-DNdJfsJ-.js +1 -0
- package/out/assets/chevron-down-CnLh_-aO.js +1 -0
- package/out/assets/{circle-alert-W0iyN4sC.js → circle-alert-oiiRDvhx.js} +1 -1
- package/out/assets/cloud-BEe2N89j.js +1 -0
- package/out/assets/code-9LB8QqxL.js +1 -0
- package/out/assets/{copy-C1MttOli.js → copy-giX4rmFJ.js} +1 -1
- package/out/assets/{download-y7SZXu6E.js → download-D0oMEYQZ.js} +1 -1
- package/out/assets/{downloadValidation-B0p9Ai_9.js → downloadValidation-Bk1VsBBo.js} +1 -1
- package/out/assets/external-link-Cm2WCUxv.js +1 -0
- package/out/assets/filePreview-BZ50vZZf.js +1 -0
- package/out/assets/game-Bvz4dspe.js +1 -0
- package/out/assets/{hard-drive-D13Qbobu.js → hard-drive-B3CQbcp2.js} +1 -1
- package/out/assets/index-BkZvz4WA.css +1 -0
- package/out/assets/index-WCK14Vja.js +34 -0
- package/out/assets/index.lazy-5Q6GuMNT.js +1 -0
- package/out/assets/index.lazy-5jq6EFXa.js +3 -0
- package/out/assets/index.lazy-7n1Q-NrA.js +3 -0
- package/out/assets/index.lazy-BFnOyQFj.js +1 -0
- package/out/assets/index.lazy-B_oPp6qK.js +1 -0
- package/out/assets/index.lazy-BvY50KVz.js +1 -0
- package/out/assets/index.lazy-C0Kn_amZ.js +1 -0
- package/out/assets/index.lazy-C3cek3Gn.js +1 -0
- package/out/assets/index.lazy-CLpPkdy1.js +1 -0
- package/out/assets/index.lazy-Cpr1kApf.js +2 -0
- package/out/assets/index.lazy-CuwLZiUK.js +1 -0
- package/out/assets/index.lazy-DDc3Ylgf.js +2 -0
- package/out/assets/index.lazy-Dg3aqOss.js +1 -0
- package/out/assets/{key-round-CZniN9lv.js → key-round-CzuljhND.js} +1 -1
- package/out/assets/{lock-D5OSNhep.js → lock-D2NhNoJW.js} +1 -1
- package/out/assets/message-square-DwBq_Go5.js +1 -0
- package/out/assets/mp-Bln2MB9G.js +1 -0
- package/out/assets/{music-CbUskKgg.js → music-CB73K5Gz.js} +1 -1
- package/out/assets/{notebook-pen-DqKDQ6MJ.js → notebook-pen-Up7r5zoI.js} +1 -1
- package/out/assets/play-OszVgROb.js +1 -0
- package/out/assets/plus-BbxQG_Ai.js +1 -0
- package/out/assets/{save-DkH1n_Ov.js → save-CiqyiifY.js} +1 -1
- package/out/assets/search-gqAPOsgS.js +1 -0
- package/out/assets/{send-Cl6NtD2T.js → send-vwCWsZGP.js} +1 -1
- package/out/assets/shield-check-CxWxsNLc.js +1 -0
- package/out/assets/{trash-2-BBjpgK_f.js → trash-2-DNGr8IgF.js} +1 -1
- package/out/assets/{triangle-alert-l98G8u9O.js → triangle-alert-B_1BlX1b.js} +1 -1
- package/out/assets/{upload-ByP6Ydde.js → upload-Dxl7GUzb.js} +1 -1
- package/out/assets/useChannelMessages-7bYKXU_R.js +3 -0
- package/out/assets/useGameRoom-DqA1mkfk.js +1 -0
- package/out/assets/wallet-DlkawdPJ.js +1 -0
- package/out/assets/{wifi-Bm4biAjc.js → wifi-sBOKcPFM.js} +1 -1
- package/out/avatars/default/LICENSE.md +7 -0
- package/out/avatars/default/dusk.svg +100 -0
- package/out/avatars/default/ember.svg +55 -0
- package/out/avatars/default/mint.svg +29 -0
- package/out/avatars/default/ocean.svg +25 -0
- package/out/avatars/default/sage.svg +34 -0
- package/out/avatars/default/violet.svg +60 -0
- package/out/chat/index.html +0 -0
- package/out/chat/join/index.html +0 -0
- package/out/demo/index.html +0 -0
- package/out/download/index.html +4 -3
- package/out/game/gandengyan/index.html +0 -0
- package/out/game/index.html +0 -0
- package/out/game/zhajinhua/index.html +0 -0
- package/out/index.html +4 -3
- package/out/note/index.html +0 -0
- package/out/ping/index.html +4 -3
- package/out/profile/index.html +0 -0
- package/out/web3/index.html +0 -0
- package/package.json +1 -1
- package/public/avatars/default/LICENSE.md +7 -0
- package/public/avatars/default/dusk.svg +100 -0
- package/public/avatars/default/ember.svg +55 -0
- package/public/avatars/default/mint.svg +29 -0
- package/public/avatars/default/ocean.svg +25 -0
- package/public/avatars/default/sage.svg +34 -0
- package/public/avatars/default/violet.svg +60 -0
- package/server/src/core/channelIdentity.js +2 -13
- package/server/src/http/app.js +1 -3
- package/server/src/index.js +286 -249
- package/server/src/utils/avatar.js +44 -3
- package/out/assets/ChatUi-BepWs-ZU.js +0 -1
- package/out/assets/LanguageToggle-CtzCCAYv.js +0 -1
- package/out/assets/LogoIcon-Dxto3Sb4.js +0 -1
- package/out/assets/MarketingLayout-BQw0IS2i.js +0 -1
- package/out/assets/MoveModal-4D9n11Kw.js +0 -1
- package/out/assets/Nav-9MDdvgNs.js +0 -1
- package/out/assets/NoteSidebar-C-rIt32H.js +0 -1
- package/out/assets/OpenSidebarButton-Dd0JmKuE.js +0 -1
- package/out/assets/PemBlock-C8dEIzu-.js +0 -1
- package/out/assets/SidebarAccount-ClS-N0lq.js +0 -1
- package/out/assets/arrow-right-urE9Rd7j.js +0 -1
- package/out/assets/channelApi-BwQU0-h1.js +0 -1
- package/out/assets/check-DUNsD2t6.js +0 -1
- package/out/assets/chevron-down-D6mpsfv4.js +0 -1
- package/out/assets/cloud-BMyOoC2x.js +0 -1
- package/out/assets/code-B1Cb_Icm.js +0 -1
- package/out/assets/filePreview-UI9NH34f.js +0 -1
- package/out/assets/game-CdU3xnZo.js +0 -1
- package/out/assets/image-DJCA16l_.js +0 -1
- package/out/assets/index-BdaFEQG-.css +0 -1
- package/out/assets/index-QxXZzOUL.js +0 -33
- package/out/assets/index.lazy-BBTTFanX.js +0 -1
- package/out/assets/index.lazy-BG4ZylHD.js +0 -2
- package/out/assets/index.lazy-Bi-6ZXZX.js +0 -1
- package/out/assets/index.lazy-BixWVr0B.js +0 -1
- package/out/assets/index.lazy-BjFwNYy5.js +0 -3
- package/out/assets/index.lazy-C8EIQsXY.js +0 -2
- package/out/assets/index.lazy-CarNe2uu.js +0 -1
- package/out/assets/index.lazy-DEuGu3H3.js +0 -1
- package/out/assets/index.lazy-GPyILCA7.js +0 -3
- package/out/assets/index.lazy-I8ofndXl.js +0 -1
- package/out/assets/index.lazy-TxhWsA7y.js +0 -1
- package/out/assets/index.lazy-azfky8k7.js +0 -1
- package/out/assets/log-out-B6phyZ5z.js +0 -1
- package/out/assets/play-BIl8q9eU.js +0 -1
- package/out/assets/plus-BxxbpH6Q.js +0 -1
- package/out/assets/search-BQi5Z0E-.js +0 -1
- package/out/assets/useChannelMessages-BgbYfF2c.js +0 -3
- package/out/assets/useGameRoom-DPmweWwe.js +0 -1
- package/out/assets/wallet-c7zIhNSM.js +0 -1
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/game-Bvz4dspe.js","assets/jsx-runtime-Bt-cYkS5.js","assets/index.lazy-BFnOyQFj.js","assets/arrow-right-CL9YSDVS.js","assets/LanguageToggle-B4ZNuBCV.js","assets/download-D0oMEYQZ.js","assets/external-link-Cm2WCUxv.js","assets/hard-drive-B3CQbcp2.js","assets/message-square-DwBq_Go5.js","assets/notebook-pen-Up7r5zoI.js","assets/wallet-DlkawdPJ.js","assets/MarketingLayout-DVH0Nx7S.js","assets/Nav-5xeettNJ.js","assets/MarketingThemeToggle-qlwCZU1o.js","assets/LogoIcon-B2fFe0l1.js","assets/index.lazy-7n1Q-NrA.js","assets/AppShell-OiOEqXPr.js","assets/chevron-down-CnLh_-aO.js","assets/mp-Bln2MB9G.js","assets/dayjs.min-Dcc0B6Je.js","assets/key-round-CzuljhND.js","assets/lock-D2NhNoJW.js","assets/PemBlock-CxwIepth.js","assets/CopyButton-Dm7krgbq.js","assets/copy-giX4rmFJ.js","assets/index.lazy-BvY50KVz.js","assets/save-CiqyiifY.js","assets/shield-check-CxWxsNLc.js","assets/MarketingHeader-yIZuQP7m.js","assets/index.lazy-C3cek3Gn.js","assets/cloud-BEe2N89j.js","assets/music-CB73K5Gz.js","assets/play-OszVgROb.js","assets/search-gqAPOsgS.js","assets/send-vwCWsZGP.js","assets/wifi-sBOKcPFM.js","assets/index.lazy-Cpr1kApf.js","assets/upload-Dxl7GUzb.js","assets/plus-BbxQG_Ai.js","assets/trash-2-DNGr8IgF.js","assets/OpenSidebarButton-BfgG2HIT.js","assets/NoteSidebar-DpniUKmy.js","assets/triangle-alert-B_1BlX1b.js","assets/SidebarAccount-Zg5DZblE.js","assets/index.lazy-CLpPkdy1.js","assets/code-9LB8QqxL.js","assets/format-CR8oUWq6.js","assets/index.lazy-5jq6EFXa.js","assets/MoveModal-BVr4Q7-b.js","assets/filePreview-BZ50vZZf.js","assets/ChatUi-Cif5LRF3.js","assets/circle-alert-oiiRDvhx.js","assets/index.lazy-5Q6GuMNT.js","assets/downloadValidation-Bk1VsBBo.js","assets/useChannelMessages-7bYKXU_R.js","assets/channelApi-DNdJfsJ-.js","assets/index.lazy-CuwLZiUK.js","assets/index.lazy-DDc3Ylgf.js","assets/index.lazy-Dg3aqOss.js","assets/useGameRoom-DqA1mkfk.js","assets/index-BZc4blbW.css","assets/index.lazy-C0Kn_amZ.js","assets/index-8eWJAjpY.css","assets/index.lazy-B_oPp6qK.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{a as e,i as t,n,o as r,r as i,t as a}from"./jsx-runtime-Bt-cYkS5.js";var o=i((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,k());else{var t=n(l);t!==null&&M(x,t.startTime-e)}}var S=!1,C=-1,w=5,E=-1;function D(){return g?!0:!(e.unstable_now()-E<w)}function O(){if(g=!1,S){var t=e.unstable_now();E=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&D());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&M(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?k():S=!1}}}var k;if(typeof y==`function`)k=function(){y(O)};else if(typeof MessageChannel<`u`){var A=new MessageChannel,j=A.port2;A.port1.onmessage=O,k=function(){j.postMessage(null)}}else k=function(){_(O,0)};function M(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,M(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,k()))),r},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),s=i(((e,t)=>{t.exports=o()})),c=i((e=>{var t=n();function r(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 i(){}var a={d:{f:i,r:function(){throw Error(r(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for(`react.portal`);function s(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var c=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(r(299));return s(e,t,null,n)},e.flushSync=function(e){var t=c.T,n=a.p;try{if(c.T=null,a.p=2,e)return e()}finally{c.T=t,a.p=n,a.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,a.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&a.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin),i=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?a.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):n===`script`&&a.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=l(t.as,t.crossOrigin);a.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??a.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin);a.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=l(t.as,t.crossOrigin);a.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else a.d.m(e)},e.requestFormReset=function(e){a.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return c.H.useFormState(e,t,n)},e.useFormStatus=function(){return c.H.useHostTransitionStatus()},e.version=`19.2.7`})),l=i(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=c()})),u=i((e=>{var t=s(),r=n(),i=l();function a(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 o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function u(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 d(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 f(e){if(c(e)!==e)throw Error(a(188))}function p(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(a(188));return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return f(i),e;if(o===r)return f(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(n.tag!==3)throw Error(a(188));return n.stateNode.current===n?e:t}function m(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=m(e),t!==null)return t;e=e.sibling}return null}var h=Object.assign,g=Symbol.for(`react.element`),_=Symbol.for(`react.transitional.element`),v=Symbol.for(`react.portal`),y=Symbol.for(`react.fragment`),b=Symbol.for(`react.strict_mode`),x=Symbol.for(`react.profiler`),S=Symbol.for(`react.consumer`),C=Symbol.for(`react.context`),w=Symbol.for(`react.forward_ref`),E=Symbol.for(`react.suspense`),D=Symbol.for(`react.suspense_list`),O=Symbol.for(`react.memo`),k=Symbol.for(`react.lazy`),A=Symbol.for(`react.activity`),j=Symbol.for(`react.memo_cache_sentinel`),M=Symbol.iterator;function N(e){return typeof e!=`object`||!e?null:(e=M&&e[M]||e[`@@iterator`],typeof e==`function`?e:null)}var P=Symbol.for(`react.client.reference`);function F(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===P?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case y:return`Fragment`;case x:return`Profiler`;case b:return`StrictMode`;case E:return`Suspense`;case D:return`SuspenseList`;case A:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case v:return`Portal`;case C:return e.displayName||`Context`;case S:return(e._context.displayName||`Context`)+`.Consumer`;case w:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case O:return t=e.displayName||null,t===null?F(e.type)||`Memo`:t;case k:t=e._payload,e=e._init;try{return F(e(t))}catch{}}return null}var I=Array.isArray,L=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,R=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z={pending:!1,data:null,method:null,action:null},B=[],V=-1;function H(e){return{current:e}}function U(e){0>V||(e.current=B[V],B[V]=null,V--)}function W(e,t){V++,B[V]=e.current,e.current=t}var G=H(null),ee=H(null),te=H(null),K=H(null);function ne(e,t){switch(W(te,t),W(ee,e),W(G,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Gd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Gd(t),e=Kd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}U(G),W(G,e)}function re(){U(G),U(ee),U(te)}function ie(e){e.memoizedState!==null&&W(K,e);var t=G.current,n=Kd(t,e.type);t!==n&&(W(ee,e),W(G,n))}function ae(e){ee.current===e&&(U(G),U(ee)),K.current===e&&(U(K),np._currentValue=z)}var oe,se;function ce(e){if(oe===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);oe=t&&t[1]||``,se=-1<e.stack.indexOf(`
|
|
3
|
+
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
4
|
+
`+oe+e+se}var le=!1;function ue(e,t){if(!e||le)return``;le=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|
5
|
+
`),l=s.split(`
|
|
6
|
+
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
|
|
7
|
+
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{le=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?ce(n):``}function de(e,t){switch(e.tag){case 26:case 27:case 5:return ce(e.type);case 16:return ce(`Lazy`);case 13:return e.child!==t&&t!==null?ce(`Suspense Fallback`):ce(`Suspense`);case 19:return ce(`SuspenseList`);case 0:case 15:return ue(e.type,!1);case 11:return ue(e.type.render,!1);case 1:return ue(e.type,!0);case 31:return ce(`Activity`);default:return``}}function fe(e){try{var t=``,n=null;do t+=de(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
|
8
|
+
Error generating stack: `+e.message+`
|
|
9
|
+
`+e.stack}}var pe=Object.prototype.hasOwnProperty,me=t.unstable_scheduleCallback,he=t.unstable_cancelCallback,ge=t.unstable_shouldYield,_e=t.unstable_requestPaint,ve=t.unstable_now,ye=t.unstable_getCurrentPriorityLevel,be=t.unstable_ImmediatePriority,xe=t.unstable_UserBlockingPriority,Se=t.unstable_NormalPriority,Ce=t.unstable_LowPriority,we=t.unstable_IdlePriority,Te=t.log,Ee=t.unstable_setDisableYieldValue,De=null,Oe=null;function ke(e){if(typeof Te==`function`&&Ee(e),Oe&&typeof Oe.setStrictMode==`function`)try{Oe.setStrictMode(De,e)}catch{}}var Ae=Math.clz32?Math.clz32:Ne,je=Math.log,Me=Math.LN2;function Ne(e){return e>>>=0,e===0?32:31-(je(e)/Me|0)|0}var Pe=256,Fe=262144,Ie=4194304;function Le(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 Re(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Le(n))):i=Le(o):i=Le(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Le(n))):i=Le(o)):i=Le(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function ze(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Be(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 Ve(){var e=Ie;return Ie<<=1,!(Ie&62914560)&&(Ie=4194304),e}function He(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ue(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function We(e,t,n,r,i,a){var o=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 s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Ae(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&Ge(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function Ge(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ae(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function Ke(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ae(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function qe(e,t){var n=t&-t;return n=n&42?1:Je(n),(n&(e.suspendedLanes|t))===0?n:0}function Je(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 Ye(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function Xe(){var e=R.p;return e===0?(e=window.event,e===void 0?32:$(e.type)):e}function Ze(e,t){var n=R.p;try{return R.p=e,t()}finally{R.p=n}}var Qe=Math.random().toString(36).slice(2),$e=`__reactFiber$`+Qe,et=`__reactProps$`+Qe,tt=`__reactContainer$`+Qe,nt=`__reactEvents$`+Qe,rt=`__reactListeners$`+Qe,it=`__reactHandles$`+Qe,at=`__reactResources$`+Qe,ot=`__reactMarker$`+Qe;function st(e){delete e[$e],delete e[et],delete e[nt],delete e[rt],delete e[it]}function ct(e){var t=e[$e];if(t)return t;for(var n=e.parentNode;n;){if(t=n[tt]||n[$e]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=hf(e);e!==null;){if(n=e[$e])return n;e=hf(e)}return t}e=n,n=e.parentNode}return null}function lt(e){if(e=e[$e]||e[tt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ut(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(a(33))}function dt(e){var t=e[at];return t||=e[at]={hoistableStyles:new Map,hoistableScripts:new Map},t}function ft(e){e[ot]=!0}var pt=new Set,mt={};function ht(e,t){gt(e,t),gt(e+`Capture`,t)}function gt(e,t){for(mt[e]=t,e=0;e<t.length;e++)pt.add(t[e])}var _t=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]*$`),vt={},yt={};function bt(e){return pe.call(yt,e)?!0:pe.call(vt,e)?!1:_t.test(e)?yt[e]=!0:(vt[e]=!0,!1)}function xt(e,t,n){if(bt(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function St(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 Ct(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function wt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Tt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Et(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Dt(e){if(!e._valueTracker){var t=Tt(e)?`checked`:`value`;e._valueTracker=Et(e,t,``+e[t])}}function Ot(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Tt(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function kt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var At=/[\n"\\]/g;function jt(e){return e.replace(At,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Mt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+wt(t)):e.value!==``+wt(t)&&(e.value=``+wt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Pt(e,o,wt(n)):Pt(e,o,wt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+wt(s):e.removeAttribute(`name`)}function Nt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Dt(e);return}n=n==null?``:``+wt(n),t=t==null?n:``+wt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Dt(e)}function Pt(e,t,n){t===`number`&&kt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Ft(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+wt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function It(e,t,n){if(t!=null&&(t=``+wt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+wt(n)}function Lt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(a(92));if(I(r)){if(1<r.length)throw Error(a(93));r=r[0]}n=r}n??=``,t=n}n=wt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Dt(e)}function Rt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var zt=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 Bt(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||zt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Vt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(a(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var i in t)r=t[i],t.hasOwnProperty(i)&&n[i]!==r&&Bt(e,i,r)}else for(var o in t)t.hasOwnProperty(o)&&Bt(e,o,t[o])}function Ht(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 Ut=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`]]),Wt=/^[\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 Gt(e){return Wt.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function Kt(){}var qt=null;function Jt(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Yt=null,Xt=null;function Zt(e){var t=lt(e);if(t&&(e=t.stateNode)){var n=e[et]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Mt(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="`+jt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[et]||null;if(!i)throw Error(a(90));Mt(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Ot(r)}break a;case`textarea`:It(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Ft(e,!!n.multiple,t,!1)}}}var Qt=!1;function $t(e,t,n){if(Qt)return e(t,n);Qt=!0;try{return e(t)}finally{if(Qt=!1,(Yt!==null||Xt!==null)&&(xu(),Yt&&(t=Yt,e=Xt,Xt=Yt=null,Zt(t),e)))for(t=0;t<e.length;t++)Zt(e[t])}}function en(e,t){var n=e.stateNode;if(n===null)return null;var r=n[et]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(a(231,t,typeof n));return n}var tn=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),nn=!1;if(tn)try{var rn={};Object.defineProperty(rn,"passive",{get:function(){nn=!0}}),window.addEventListener(`test`,rn,rn),window.removeEventListener(`test`,rn,rn)}catch{nn=!1}var an=null,on=null,sn=null;function cn(){if(sn)return sn;var e,t=on,n=t.length,r,i=`value`in an?an.value:an.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return sn=i.slice(e,1<r?1-r:void 0)}function ln(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 un(){return!0}function dn(){return!1}function fn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?un:dn,this.isPropagationStopped=dn,this}return h(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=un)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=un)},persist:function(){},isPersistent:un}),t}var pn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},mn=fn(pn),hn=h({},pn,{view:0,detail:0}),gn=fn(hn),_n,vn,yn,bn=h({},hn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:jn,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!==yn&&(yn&&e.type===`mousemove`?(_n=e.screenX-yn.screenX,vn=e.screenY-yn.screenY):vn=_n=0,yn=e),_n)},movementY:function(e){return`movementY`in e?e.movementY:vn}}),xn=fn(bn),Sn=fn(h({},bn,{dataTransfer:0})),Cn=fn(h({},hn,{relatedTarget:0})),wn=fn(h({},pn,{animationName:0,elapsedTime:0,pseudoElement:0})),Tn=fn(h({},pn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),En=fn(h({},pn,{data:0})),Dn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},On={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`},kn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function An(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=kn[e])?!!t[e]:!1}function jn(){return An}var Mn=fn(h({},hn,{key:function(e){if(e.key){var t=Dn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=ln(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?On[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:jn,charCode:function(e){return e.type===`keypress`?ln(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?ln(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Nn=fn(h({},bn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=fn(h({},hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:jn})),Fn=fn(h({},pn,{propertyName:0,elapsedTime:0,pseudoElement:0})),q=fn(h({},bn,{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})),In=fn(h({},pn,{newState:0,oldState:0})),Ln=[9,13,27,32],Rn=tn&&`CompositionEvent`in window,zn=null;tn&&`documentMode`in document&&(zn=document.documentMode);var Bn=tn&&`TextEvent`in window&&!zn,Vn=tn&&(!Rn||zn&&8<zn&&11>=zn),Hn=` `,Un=!1;function Wn(e,t){switch(e){case`keyup`:return Ln.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Gn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Kn=!1;function qn(e,t){switch(e){case`compositionend`:return Gn(t);case`keypress`:return t.which===32?(Un=!0,Hn):null;case`textInput`:return e=t.data,e===Hn&&Un?null:e;default:return null}}function Jn(e,t){if(Kn)return e===`compositionend`||!Rn&&Wn(e,t)?(e=cn(),sn=on=an=null,Kn=!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 Vn&&t.locale!==`ko`?null:t.data;default:return null}}var Yn={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 Xn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!Yn[e.type]:t===`textarea`}function Zn(e,t,n,r){Yt?Xt?Xt.push(r):Xt=[r]:Yt=r,t=kd(t,`onChange`),0<t.length&&(n=new mn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var Qn=null,$n=null;function er(e){xd(e,0)}function tr(e){if(Ot(ut(e)))return e}function nr(e,t){if(e===`change`)return t}var rr=!1;if(tn){var ir;if(tn){var ar=`oninput`in document;if(!ar){var or=document.createElement(`div`);or.setAttribute(`oninput`,`return;`),ar=typeof or.oninput==`function`}ir=ar}else ir=!1;rr=ir&&(!document.documentMode||9<document.documentMode)}function sr(){Qn&&(Qn.detachEvent(`onpropertychange`,cr),$n=Qn=null)}function cr(e){if(e.propertyName===`value`&&tr($n)){var t=[];Zn(t,$n,e,Jt(e)),$t(er,t)}}function lr(e,t,n){e===`focusin`?(sr(),Qn=t,$n=n,Qn.attachEvent(`onpropertychange`,cr)):e===`focusout`&&sr()}function ur(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return tr($n)}function dr(e,t){if(e===`click`)return tr(t)}function fr(e,t){if(e===`input`||e===`change`)return tr(t)}function pr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var mr=typeof Object.is==`function`?Object.is:pr;function hr(e,t){if(mr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!pe.call(t,i)||!mr(e[i],t[i]))return!1}return!0}function gr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function _r(e,t){var n=gr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=gr(n)}}function vr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?vr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function yr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=kt(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=kt(e.document)}return t}function br(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 xr=tn&&`documentMode`in document&&11>=document.documentMode,Sr=null,Cr=null,wr=null,Tr=!1;function Er(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Tr||Sr==null||Sr!==kt(r)||(r=Sr,`selectionStart`in r&&br(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),wr&&hr(wr,r)||(wr=r,r=kd(Cr,`onSelect`),0<r.length&&(t=new mn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Sr)))}function Dr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Or={animationend:Dr(`Animation`,`AnimationEnd`),animationiteration:Dr(`Animation`,`AnimationIteration`),animationstart:Dr(`Animation`,`AnimationStart`),transitionrun:Dr(`Transition`,`TransitionRun`),transitionstart:Dr(`Transition`,`TransitionStart`),transitioncancel:Dr(`Transition`,`TransitionCancel`),transitionend:Dr(`Transition`,`TransitionEnd`)},kr={},Ar={};tn&&(Ar=document.createElement(`div`).style,`AnimationEvent`in window||(delete Or.animationend.animation,delete Or.animationiteration.animation,delete Or.animationstart.animation),`TransitionEvent`in window||delete Or.transitionend.transition);function jr(e){if(kr[e])return kr[e];if(!Or[e])return e;var t=Or[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Ar)return kr[e]=t[n];return e}var Mr=jr(`animationend`),Nr=jr(`animationiteration`),Pr=jr(`animationstart`),Fr=jr(`transitionrun`),Ir=jr(`transitionstart`),Lr=jr(`transitioncancel`),Rr=jr(`transitionend`),zr=new Map,Br=`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(` `);Br.push(`scrollEnd`);function Vr(e,t){zr.set(e,t),ht(t,[e])}var Hr=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&&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)},Ur=[],Wr=0,Gr=0;function Kr(){for(var e=Wr,t=Gr=Wr=0;t<e;){var n=Ur[t];Ur[t++]=null;var r=Ur[t];Ur[t++]=null;var i=Ur[t];Ur[t++]=null;var a=Ur[t];if(Ur[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&Xr(n,i,a)}}function qr(e,t,n,r){Ur[Wr++]=e,Ur[Wr++]=t,Ur[Wr++]=n,Ur[Wr++]=r,Gr|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Jr(e,t,n,r){return qr(e,t,n,r),Zr(e)}function Yr(e,t){return qr(e,null,null,t),Zr(e)}function Xr(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Ae(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Zr(e){if(50<fu)throw fu=0,pu=null,Error(a(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Qr={};function $r(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ei(e,t,n,r){return new $r(e,t,n,r)}function ti(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ni(e,t){var n=e.alternate;return n===null?(n=ei(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 ri(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 ii(e,t,n,r,i,o){var s=0;if(r=e,typeof e==`function`)ti(e)&&(s=1);else if(typeof e==`string`)s=qf(e,n,G.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case A:return e=ei(31,n,t,i),e.elementType=A,e.lanes=o,e;case y:return ai(n.children,i,o,t);case b:s=8,i|=24;break;case x:return e=ei(12,n,t,i|2),e.elementType=x,e.lanes=o,e;case E:return e=ei(13,n,t,i),e.elementType=E,e.lanes=o,e;case D:return e=ei(19,n,t,i),e.elementType=D,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case C:s=10;break a;case S:s=9;break a;case w:s=11;break a;case O:s=14;break a;case k:s=16,r=null;break a}s=29,n=Error(a(130,e===null?`null`:typeof e,``)),r=null}return t=ei(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function ai(e,t,n,r){return e=ei(7,e,r,t),e.lanes=n,e}function oi(e,t,n){return e=ei(6,e,null,t),e.lanes=n,e}function si(e){var t=ei(18,null,null,0);return t.stateNode=e,t}function ci(e,t,n){return t=ei(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var li=new WeakMap;function ui(e,t){if(typeof e==`object`&&e){var n=li.get(e);return n===void 0?(t={value:e,source:t,stack:fe(t)},li.set(e,t),t):n}return{value:e,source:t,stack:fe(t)}}var di=[],fi=0,pi=null,mi=0,hi=[],gi=0,_i=null,vi=1,yi=``;function bi(e,t){di[fi++]=mi,di[fi++]=pi,pi=e,mi=t}function xi(e,t,n){hi[gi++]=vi,hi[gi++]=yi,hi[gi++]=_i,_i=e;var r=vi;e=yi;var i=32-Ae(r)-1;r&=~(1<<i),n+=1;var a=32-Ae(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,vi=1<<32-Ae(t)+i|n<<i|r,yi=a+e}else vi=1<<a|n<<i|r,yi=e}function Si(e){e.return!==null&&(bi(e,1),xi(e,1,0))}function Ci(e){for(;e===pi;)pi=di[--fi],di[fi]=null,mi=di[--fi],di[fi]=null;for(;e===_i;)_i=hi[--gi],hi[gi]=null,yi=hi[--gi],hi[gi]=null,vi=hi[--gi],hi[gi]=null}function wi(e,t){hi[gi++]=vi,hi[gi++]=yi,hi[gi++]=_i,vi=t.id,yi=t.overflow,_i=e}var Ti=null,Ei=null,Di=!1,Oi=null,ki=!1,Ai=Error(a(519));function ji(e){throw Li(ui(Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Ai}function Mi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[$e]=e,t[et]=r,n){case`dialog`:Sd(`cancel`,t),Sd(`close`,t);break;case`iframe`:case`object`:case`embed`:Sd(`load`,t);break;case`video`:case`audio`:for(n=0;n<yd.length;n++)Sd(yd[n],t);break;case`source`:Sd(`error`,t);break;case`img`:case`image`:case`link`:Sd(`error`,t),Sd(`load`,t);break;case`details`:Sd(`toggle`,t);break;case`input`:Sd(`invalid`,t),Nt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Sd(`invalid`,t);break;case`textarea`:Sd(`invalid`,t),Lt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Fd(t.textContent,n)?(r.popover!=null&&(Sd(`beforetoggle`,t),Sd(`toggle`,t)),r.onScroll!=null&&Sd(`scroll`,t),r.onScrollEnd!=null&&Sd(`scrollend`,t),r.onClick!=null&&(t.onclick=Kt),t=!0):t=!1,t||ji(e,!0)}function Ni(e){for(Ti=e.return;Ti;)switch(Ti.tag){case 5:case 31:case 13:ki=!1;return;case 27:case 3:ki=!0;return;default:Ti=Ti.return}}function Pi(e){if(e!==Ti)return!1;if(!Di)return Ni(e),Di=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||qd(e.type,e.memoizedProps)),n=!n),n&&Ei&&ji(e),Ni(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(317));Ei=mf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(317));Ei=mf(e)}else t===27?(t=Ei,tf(e.type)?(e=pf,pf=null,Ei=e):Ei=t):Ei=Ti?ff(e.stateNode.nextSibling):null;return!0}function Fi(){Ei=Ti=null,Di=!1}function Ii(){var e=Oi;return e!==null&&(Ql===null?Ql=e:Ql.push.apply(Ql,e),Oi=null),e}function Li(e){Oi===null?Oi=[e]:Oi.push(e)}var Ri=H(null),zi=null,Bi=null;function Vi(e,t,n){W(Ri,t._currentValue),t._currentValue=n}function Hi(e){e._currentValue=Ri.current,U(Ri)}function Ui(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Wi(e,t,n,r){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var o=i.dependencies;if(o!==null){var s=i.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=i;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Ui(o.return,n,e),r||(s=null);break a}o=c.next}}else if(i.tag===18){if(s=i.return,s===null)throw Error(a(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Ui(s,n,e),s=null}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===e){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}}function Gi(e,t,n,r){e=null;for(var i=t,o=!1;i!==null;){if(!o){if(i.flags&524288)o=!0;else if(i.flags&262144)break}if(i.tag===10){var s=i.alternate;if(s===null)throw Error(a(387));if(s=s.memoizedProps,s!==null){var c=i.type;mr(i.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(i===K.current){if(s=i.alternate,s===null)throw Error(a(387));s.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e===null?e=[np]:e.push(np))}i=i.return}e!==null&&Wi(t,e,n,r),t.flags|=262144}function Ki(e){for(e=e.firstContext;e!==null;){if(!mr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function qi(e){zi=e,Bi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ji(e){return Xi(zi,e)}function Yi(e,t){return zi===null&&qi(e),Xi(e,t)}function Xi(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Bi===null){if(e===null)throw Error(a(308));Bi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Bi=Bi.next=t;return n}var Zi=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Qi=t.unstable_scheduleCallback,$i=t.unstable_NormalPriority,ea={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ta(){return{controller:new Zi,data:new Map,refCount:0}}function na(e){e.refCount--,e.refCount===0&&Qi($i,function(){e.controller.abort()})}var ra=null,ia=0,aa=0,oa=null;function sa(e,t){if(ra===null){var n=ra=[];ia=0,aa=pd(),oa={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return ia++,t.then(ca,ca),t}function ca(){if(--ia===0&&ra!==null){oa!==null&&(oa.status=`fulfilled`);var e=ra;ra=null,aa=0,oa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function la(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var ua=L.S;L.S=function(e,t){tu=ve(),typeof t==`object`&&t&&typeof t.then==`function`&&sa(e,t),ua!==null&&ua(e,t)};var da=H(null);function fa(){var e=da.current;return e===null?Il.pooledCache:e}function pa(e,t){t===null?W(da,da.current):W(da,t.pool)}function ma(){var e=fa();return e===null?null:{parent:ea._currentValue,pool:e}}var ha=Error(a(460)),ga=Error(a(474)),_a=Error(a(542)),va={then:function(){}};function ya(e){return e=e.status,e===`fulfilled`||e===`rejected`}function ba(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Kt,Kt),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,wa(e),e;default:if(typeof t.status==`string`)t.then(Kt,Kt);else{if(e=Il,e!==null&&100<e.shellSuspendCounter)throw Error(a(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,wa(e),e}throw Sa=t,ha}}function xa(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Sa=e,ha):e}}var Sa=null;function Ca(){if(Sa===null)throw Error(a(459));var e=Sa;return Sa=null,e}function wa(e){if(e===ha||e===_a)throw Error(a(483))}var Ta=null,Ea=0;function Da(e){var t=Ea;return Ea+=1,Ta===null&&(Ta=[]),ba(Ta,e,t)}function Oa(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function ka(e,t){throw t.$$typeof===g?Error(a(525)):(e=Object.prototype.toString.call(t),Error(a(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Aa(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function i(e,t){return e=ni(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=oi(n,e.mode,r),t.return=e,t):(t=i(t,n),t.return=e,t)}function l(e,t,n,r){var a=n.type;return a===y?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===a||typeof a==`object`&&a&&a.$$typeof===k&&xa(a)===t.type)?(t=i(t,n.props),Oa(t,n),t.return=e,t):(t=ii(n.type,n.key,n.props,null,e.mode,r),Oa(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=ci(n,e.mode,r),t.return=e,t):(t=i(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,a){return t===null||t.tag!==7?(t=ai(n,e.mode,r,a),t.return=e,t):(t=i(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=oi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case _:return n=ii(t.type,t.key,t.props,null,e.mode,n),Oa(n,t),n.return=e,n;case v:return t=ci(t,e.mode,n),t.return=e,t;case k:return t=xa(t),f(e,t,n)}if(I(t)||N(t))return t=ai(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Da(t),n);if(t.$$typeof===C)return f(e,Yi(e,t),n);ka(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case _:return n.key===i?l(e,t,n,r):null;case v:return n.key===i?u(e,t,n,r):null;case k:return n=xa(n),p(e,t,n,r)}if(I(n)||N(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Da(n),r);if(n.$$typeof===C)return p(e,t,Yi(e,n),r);ka(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case _:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case v:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case k:return r=xa(r),m(e,t,n,r,i)}if(I(r)||N(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Da(r),i);if(r.$$typeof===C)return m(e,t,n,Yi(t,r),i);ka(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),Di&&bi(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return Di&&bi(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),Di&&bi(i,h),l}function g(i,s,c,l){if(c==null)throw Error(a(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(i,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(i,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(i,h),Di&&bi(i,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(i,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Di&&bi(i,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,i,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),Di&&bi(i,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===y&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case _:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===y){if(r.tag===7){n(e,r.sibling),c=i(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===k&&xa(l)===r.type){n(e,r.sibling),c=i(r,o.props),Oa(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===y?(c=ai(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=ii(o.type,o.key,o.props,null,e.mode,c),Oa(c,o),c.return=e,e=c)}return s(e);case v:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=i(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=ci(o,e.mode,c),c.return=e,e=c}return s(e);case k:return o=xa(o),b(e,r,o,c)}if(I(o))return h(e,r,o,c);if(N(o)){if(l=N(o),typeof l!=`function`)throw Error(a(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Da(o),c);if(o.$$typeof===C)return b(e,r,Yi(e,o),c);ka(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=i(r,o),c.return=e,e=c):(n(e,r),c=oi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Ea=0;var i=b(e,t,n,r);return Ta=null,i}catch(t){if(t===ha||t===_a)throw t;var a=ei(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var ja=Aa(!0),Ma=Aa(!1),Na=!1;function Pa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Fa(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 Ia(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function La(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Fl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Zr(e),Xr(e,null,n),t}return qr(e,r,t,n),Zr(e)}function Ra(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ke(e,n)}}function za(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ba=!1;function Va(){if(Ba){var e=oa;if(e!==null)throw e}}function Ha(e,t,n,r){Ba=!1;var i=e.updateQueue;Na=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(Rl&f)===f:(r&f)===f){f!==0&&f===aa&&(Ba=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(m=g.payload,typeof m==`function`){d=m.call(_,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,f=typeof m==`function`?m.call(_,d,f):m,f==null)break a;d=h({},d,f);break a;case 2:Na=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Kl|=o,e.lanes=o,e.memoizedState=d}}function Ua(e,t){if(typeof e!=`function`)throw Error(a(191,e));e.call(t)}function Wa(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Ua(n[e],t)}var Ga=H(null),Ka=H(0);function qa(e,t){e=Wl,W(Ka,e),W(Ga,t),Wl=e|t.baseLanes}function Ja(){W(Ka,Wl),W(Ga,Ga.current)}function Ya(){Wl=Ka.current,U(Ga),U(Ka)}var Xa=H(null),Za=null;function Qa(e){var t=e.alternate;W(ro,ro.current&1),W(Xa,e),Za===null&&(t===null||Ga.current!==null||t.memoizedState!==null)&&(Za=e)}function $a(e){W(ro,ro.current),W(Xa,e),Za===null&&(Za=e)}function eo(e){e.tag===22?(W(ro,ro.current),W(Xa,e),Za===null&&(Za=e)):to(e)}function to(){W(ro,ro.current),W(Xa,Xa.current)}function no(e){U(Xa),Za===e&&(Za=null),U(ro)}var ro=H(0);function io(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||lf(n)||uf(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)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 ao=0,J=null,oo=null,so=null,co=!1,lo=!1,uo=!1,fo=0,po=0,mo=null,ho=0;function go(){throw Error(a(321))}function _o(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!mr(e[n],t[n]))return!1;return!0}function vo(e,t,n,r,i,a){return ao=a,J=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,L.H=e===null||e.memoizedState===null?Ns:Ps,uo=!1,a=n(r,i),uo=!1,lo&&(a=bo(t,n,r,i)),yo(e),a}function yo(e){L.H=Ms;var t=oo!==null&&oo.next!==null;if(ao=0,so=oo=J=null,co=!1,po=0,mo=null,t)throw Error(a(300));e===null||Zs||(e=e.dependencies,e!==null&&Ki(e)&&(Zs=!0))}function bo(e,t,n,r){J=e;var i=0;do{if(lo&&(mo=null),po=0,lo=!1,25<=i)throw Error(a(301));if(i+=1,so=oo=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}L.H=Fs,o=t(n,r)}while(lo);return o}function xo(){var e=L.H,t=e.useState()[0];return t=typeof t.then==`function`?Oo(t):t,e=e.useState()[0],(oo===null?null:oo.memoizedState)!==e&&(J.flags|=1024),t}function So(){var e=fo!==0;return fo=0,e}function Co(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function wo(e){if(co){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}co=!1}ao=0,so=oo=J=null,lo=!1,po=fo=0,mo=null}function To(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return so===null?J.memoizedState=so=e:so=so.next=e,so}function Eo(){if(oo===null){var e=J.alternate;e=e===null?null:e.memoizedState}else e=oo.next;var t=so===null?J.memoizedState:so.next;if(t!==null)so=t,oo=e;else{if(e===null)throw J.alternate===null?Error(a(467)):Error(a(310));oo=e,e={memoizedState:oo.memoizedState,baseState:oo.baseState,baseQueue:oo.baseQueue,queue:oo.queue,next:null},so===null?J.memoizedState=so=e:so=so.next=e}return so}function Do(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Oo(e){var t=po;return po+=1,mo===null&&(mo=[]),e=ba(mo,e,t),t=J,(so===null?t.memoizedState:so.next)===null&&(t=t.alternate,L.H=t===null||t.memoizedState===null?Ns:Ps),e}function ko(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Oo(e);if(e.$$typeof===C)return Ji(e)}throw Error(a(438,String(e)))}function Ao(e){var t=null,n=J.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=J.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=Do(),J.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=j;return t.index++,n}function jo(e,t){return typeof t==`function`?t(e):t}function Mo(e){return No(Eo(),oo,e)}function No(e,t,n){var r=e.queue;if(r===null)throw Error(a(311));r.lastRenderedReducer=n;var i=e.baseQueue,o=r.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}t.baseQueue=i=o,r.pending=null}if(o=e.baseState,i===null)e.memoizedState=o;else{t=i.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(ao&f)===f:(Rl&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===aa&&(d=!0);else if((ao&p)===p){u=u.next,p===aa&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,J.lanes|=p,Kl|=p;f=u.action,uo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,J.lanes|=f,Kl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!mr(o,e.memoizedState)&&(Zs=!0,d&&(n=oa,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return i===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Po(e){var t=Eo(),n=t.queue;if(n===null)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);mr(o,t.memoizedState)||(Zs=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Fo(e,t,n){var r=J,i=Eo(),o=Di;if(o){if(n===void 0)throw Error(a(407));n=n()}else n=t();var s=!mr((oo||i).memoizedState,n);if(s&&(i.memoizedState=n,Zs=!0),i=i.queue,is(Ro.bind(null,r,i,e),[e]),i.getSnapshot!==t||s||so!==null&&so.memoizedState.tag&1){if(r.flags|=2048,X(9,{destroy:void 0},Lo.bind(null,r,i,n,t),null),Il===null)throw Error(a(349));o||ao&127||Io(r,t,n)}return n}function Io(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=J.updateQueue,t===null?(t=Do(),J.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Lo(e,t,n,r){t.value=n,t.getSnapshot=r,zo(t)&&Bo(e)}function Ro(e,t,n){return n(function(){zo(t)&&Bo(e)})}function zo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!mr(e,n)}catch{return!0}}function Bo(e){var t=Yr(e,2);t!==null&&gu(t,e,2)}function Vo(e){var t=To();if(typeof e==`function`){var n=e;if(e=n(),uo){ke(!0);try{n()}finally{ke(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:jo,lastRenderedState:e},t}function Ho(e,t,n,r){return e.baseState=n,No(e,oo,typeof r==`function`?r:jo)}function Uo(e,t,n,r,i){if(ks(e))throw Error(a(485));if(e=t.action,e!==null){var o={payload:i,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};L.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Wo(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Wo(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=L.T,o={};L.T=o;try{var s=n(i,r),c=L.S;c!==null&&c(o,s),Go(e,t,s)}catch(n){qo(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),L.T=a}}else try{a=n(i,r),Go(e,t,a)}catch(n){qo(e,t,n)}}function Go(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Ko(e,t,n)},function(n){return qo(e,t,n)}):Ko(e,t,n)}function Ko(e,t,n){t.status=`fulfilled`,t.value=n,Jo(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Wo(e,n)))}function qo(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Jo(t),t=t.next;while(t!==r)}e.action=null}function Jo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Y(e,t){return t}function Yo(e,t){if(Di){var n=Il.formState;if(n!==null){a:{var r=J;if(Di){if(Ei){b:{for(var i=Ei,a=ki;i.nodeType!==8;){if(!a){i=null;break b}if(i=ff(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Ei=ff(i.nextSibling),r=i.data===`F!`;break a}}ji(r)}r=!1}r&&(t=n[0])}}return n=To(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Y,lastRenderedState:t},n.queue=r,n=Es.bind(null,J,r),r.dispatch=n,r=Vo(!1),a=Os.bind(null,J,!1,r.queue),r=To(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Uo.bind(null,J,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Xo(e){return Zo(Eo(),oo,e)}function Zo(e,t,n){if(t=No(e,t,Y)[0],e=Mo(jo)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Oo(t)}catch(e){throw e===ha?_a:e}else r=t;t=Eo();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(J.flags|=2048,X(9,{destroy:void 0},Qo.bind(null,i,n),null)),[r,a,e]}function Qo(e,t){e.action=t}function $o(e){var t=Eo(),n=oo;if(n!==null)return Zo(t,n,e);Eo(),t=t.memoizedState,n=Eo();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function X(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=J.updateQueue,t===null&&(t=Do(),J.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function es(){return Eo().memoizedState}function ts(e,t,n,r){var i=To();J.flags|=e,i.memoizedState=X(1|t,{destroy:void 0},n,r===void 0?null:r)}function ns(e,t,n,r){var i=Eo();r=r===void 0?null:r;var a=i.memoizedState.inst;oo!==null&&r!==null&&_o(r,oo.memoizedState.deps)?i.memoizedState=X(t,a,n,r):(J.flags|=e,i.memoizedState=X(1|t,a,n,r))}function rs(e,t){ts(8390656,8,e,t)}function is(e,t){ns(2048,8,e,t)}function as(e){J.flags|=4;var t=J.updateQueue;if(t===null)t=Do(),J.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function os(e){var t=Eo().memoizedState;return as({ref:t,nextImpl:e}),function(){if(Fl&2)throw Error(a(440));return t.impl.apply(void 0,arguments)}}function ss(e,t){return ns(4,2,e,t)}function cs(e,t){return ns(4,4,e,t)}function ls(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 us(e,t,n){n=n==null?null:n.concat([e]),ns(4,4,ls.bind(null,t,e),n)}function ds(){}function fs(e,t){var n=Eo();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&_o(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ps(e,t){var n=Eo();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&_o(t,r[1]))return r[0];if(r=e(),uo){ke(!0);try{e()}finally{ke(!1)}}return n.memoizedState=[r,t],r}function ms(e,t,n){return n===void 0||ao&1073741824&&!(Rl&261930)?e.memoizedState=t:(e.memoizedState=n,e=hu(),J.lanes|=e,Kl|=e,n)}function hs(e,t,n,r){return mr(n,t)?n:Ga.current===null?!(ao&42)||ao&1073741824&&!(Rl&261930)?(Zs=!0,e.memoizedState=n):(e=hu(),J.lanes|=e,Kl|=e,t):(e=ms(e,n,r),mr(e,t)||(Zs=!0),e)}function gs(e,t,n,r,i){var a=R.p;R.p=a!==0&&8>a?a:8;var o=L.T,s={};L.T=s,Os(e,!1,t,n);try{var c=i(),l=L.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Ds(e,t,la(c,r),mu(e)):Ds(e,t,r,mu(e))}catch(n){Ds(e,t,{then:function(){},status:`rejected`,reason:n},mu())}finally{R.p=a,o!==null&&s.types!==null&&(o.types=s.types),L.T=o}}function _s(){}function vs(e,t,n,r){if(e.tag!==5)throw Error(a(476));var i=ys(e).queue;gs(e,i,t,z,n===null?_s:function(){return bs(e),n(r)})}function ys(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:z,baseState:z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:jo,lastRenderedState:z},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:jo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function bs(e){var t=ys(e);t.next===null&&(t=e.alternate.memoizedState),Ds(e,t.next.queue,{},mu())}function xs(){return Ji(np)}function Ss(){return Eo().memoizedState}function Cs(){return Eo().memoizedState}function ws(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=mu();e=Ia(n);var r=La(t,e,n);r!==null&&(gu(r,t,n),Ra(r,t,n)),t={cache:ta()},e.payload=t;return}t=t.return}}function Ts(e,t,n){var r=mu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ks(e)?As(t,n):(n=Jr(e,t,n,r),n!==null&&(gu(n,e,r),js(n,t,r)))}function Es(e,t,n){Ds(e,t,n,mu())}function Ds(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(ks(e))As(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,mr(s,o))return qr(e,t,i,0),Il===null&&Kr(),!1}catch{}if(n=Jr(e,t,i,r),n!==null)return gu(n,e,r),js(n,t,r),!0}return!1}function Os(e,t,n,r){if(r={lane:2,revertLane:pd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},ks(e)){if(t)throw Error(a(479))}else t=Jr(e,n,r,2),t!==null&&gu(t,e,2)}function ks(e){var t=e.alternate;return e===J||t!==null&&t===J}function As(e,t){lo=co=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function js(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ke(e,n)}}var Ms={readContext:Ji,use:ko,useCallback:go,useContext:go,useEffect:go,useImperativeHandle:go,useLayoutEffect:go,useInsertionEffect:go,useMemo:go,useReducer:go,useRef:go,useState:go,useDebugValue:go,useDeferredValue:go,useTransition:go,useSyncExternalStore:go,useId:go,useHostTransitionStatus:go,useFormState:go,useActionState:go,useOptimistic:go,useMemoCache:go,useCacheRefresh:go};Ms.useEffectEvent=go;var Ns={readContext:Ji,use:ko,useCallback:function(e,t){return To().memoizedState=[e,t===void 0?null:t],e},useContext:Ji,useEffect:rs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ts(4194308,4,ls.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ts(4194308,4,e,t)},useInsertionEffect:function(e,t){ts(4,2,e,t)},useMemo:function(e,t){var n=To();t=t===void 0?null:t;var r=e();if(uo){ke(!0);try{e()}finally{ke(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=To();if(n!==void 0){var i=n(t);if(uo){ke(!0);try{n(t)}finally{ke(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ts.bind(null,J,e),[r.memoizedState,e]},useRef:function(e){var t=To();return e={current:e},t.memoizedState=e},useState:function(e){e=Vo(e);var t=e.queue,n=Es.bind(null,J,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ds,useDeferredValue:function(e,t){return ms(To(),e,t)},useTransition:function(){var e=Vo(!1);return e=gs.bind(null,J,e.queue,!0,!1),To().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=J,i=To();if(Di){if(n===void 0)throw Error(a(407));n=n()}else{if(n=t(),Il===null)throw Error(a(349));Rl&127||Io(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,rs(Ro.bind(null,r,o,e),[e]),r.flags|=2048,X(9,{destroy:void 0},Lo.bind(null,r,o,n,t),null),n},useId:function(){var e=To(),t=Il.identifierPrefix;if(Di){var n=yi,r=vi;n=(r&~(1<<32-Ae(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=fo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=ho++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:xs,useFormState:Yo,useActionState:Yo,useOptimistic:function(e){var t=To();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Os.bind(null,J,!0,n),n.dispatch=t,[e,t]},useMemoCache:Ao,useCacheRefresh:function(){return To().memoizedState=ws.bind(null,J)},useEffectEvent:function(e){var t=To(),n={impl:e};return t.memoizedState=n,function(){if(Fl&2)throw Error(a(440));return n.impl.apply(void 0,arguments)}}},Ps={readContext:Ji,use:ko,useCallback:fs,useContext:Ji,useEffect:is,useImperativeHandle:us,useInsertionEffect:ss,useLayoutEffect:cs,useMemo:ps,useReducer:Mo,useRef:es,useState:function(){return Mo(jo)},useDebugValue:ds,useDeferredValue:function(e,t){return hs(Eo(),oo.memoizedState,e,t)},useTransition:function(){var e=Mo(jo)[0],t=Eo().memoizedState;return[typeof e==`boolean`?e:Oo(e),t]},useSyncExternalStore:Fo,useId:Ss,useHostTransitionStatus:xs,useFormState:Xo,useActionState:Xo,useOptimistic:function(e,t){return Ho(Eo(),oo,e,t)},useMemoCache:Ao,useCacheRefresh:Cs};Ps.useEffectEvent=os;var Fs={readContext:Ji,use:ko,useCallback:fs,useContext:Ji,useEffect:is,useImperativeHandle:us,useInsertionEffect:ss,useLayoutEffect:cs,useMemo:ps,useReducer:Po,useRef:es,useState:function(){return Po(jo)},useDebugValue:ds,useDeferredValue:function(e,t){var n=Eo();return oo===null?ms(n,e,t):hs(n,oo.memoizedState,e,t)},useTransition:function(){var e=Po(jo)[0],t=Eo().memoizedState;return[typeof e==`boolean`?e:Oo(e),t]},useSyncExternalStore:Fo,useId:Ss,useHostTransitionStatus:xs,useFormState:$o,useActionState:$o,useOptimistic:function(e,t){var n=Eo();return oo===null?(n.baseState=e,[e,n.queue.dispatch]):Ho(n,oo,e,t)},useMemoCache:Ao,useCacheRefresh:Cs};Fs.useEffectEvent=os;function Is(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:h({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ls={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=mu(),i=Ia(r);i.payload=t,n!=null&&(i.callback=n),t=La(e,i,r),t!==null&&(gu(t,e,r),Ra(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=mu(),i=Ia(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=La(e,i,r),t!==null&&(gu(t,e,r),Ra(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=mu(),r=Ia(n);r.tag=2,t!=null&&(r.callback=t),t=La(e,r,n),t!==null&&(gu(t,e,n),Ra(t,e,n))}};function Rs(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!hr(n,r)||!hr(i,a):!0}function zs(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ls.enqueueReplaceState(t,t.state,null)}function Bs(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=h({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Vs(e){Hr(e)}function Hs(e){console.error(e)}function Us(e){Hr(e)}function Ws(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Gs(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Ks(e,t,n){return n=Ia(n),n.tag=3,n.payload={element:null},n.callback=function(){Ws(e,t)},n}function qs(e){return e=Ia(e),e.tag=3,e}function Js(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Gs(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Gs(t,n,r),typeof i!=`function`&&(iu===null?iu=new Set([this]):iu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Ys(e,t,n,r,i){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Gi(t,n,i,!0),n=Xa.current,n!==null){switch(n.tag){case 31:case 13:return Za===null?Ou():n.alternate===null&&Gl===0&&(Gl=3),n.flags&=-257,n.flags|=65536,n.lanes=i,r===va?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),qu(e,r,i)),!1;case 22:return n.flags|=65536,r===va?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),qu(e,r,i)),!1}throw Error(a(435,n.tag))}return qu(e,r,i),Ou(),!1}if(Di)return t=Xa.current,t===null?(r!==Ai&&(t=Error(a(423),{cause:r}),Li(ui(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=ui(r,n),i=Ks(e.stateNode,r,i),za(e,i),Gl!==4&&(Gl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==Ai&&(e=Error(a(422),{cause:r}),Li(ui(e,n)))),!1;var o=Error(a(520),{cause:r});if(o=ui(o,n),Zl===null?Zl=[o]:Zl.push(o),Gl!==4&&(Gl=2),t===null)return!0;r=ui(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=Ks(n.stateNode,r,e),za(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(iu===null||!iu.has(o))))return n.flags|=65536,i&=-i,n.lanes|=i,i=qs(i),Js(i,e,n,r),za(n,i),!1}n=n.return}while(n!==null);return!1}var Xs=Error(a(461)),Zs=!1;function Qs(e,t,n,r){t.child=e===null?Ma(t,null,n,r):ja(t,e.child,n,r)}function $s(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return qi(t),r=vo(e,t,n,o,a,i),s=So(),e!==null&&!Zs?(Co(e,t,i),Cc(e,t,i)):(Di&&s&&Si(t),t.flags|=1,Qs(e,t,r,i),t.child)}function ec(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ti(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,tc(e,t,a,r,i)):(e=ii(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!wc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?hr:n,n(o,r)&&e.ref===t.ref)return Cc(e,t,i)}return t.flags|=1,e=ni(a,r),e.ref=t.ref,e.return=t,t.child=e}function tc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(hr(a,r)&&e.ref===t.ref)if(Zs=!1,t.pendingProps=r=a,wc(e,i))e.flags&131072&&(Zs=!0);else return t.lanes=e.lanes,Cc(e,t,i)}return lc(e,t,n,r,i)}function nc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return ic(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&pa(t,a===null?null:a.cachePool),a===null?Ja():qa(t,a),eo(t);else return r=t.lanes=536870912,ic(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&pa(t,null),Ja(),to(t)):(pa(t,a.cachePool),qa(t,a),to(t),t.memoizedState=null);return Qs(e,t,i,n),t.child}function rc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ic(e,t,n,r,i){var a=fa();return a=a===null?null:{parent:ea._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&pa(t,null),Ja(),eo(t),e!==null&&Gi(e,t,r,!0),t.childLanes=i,null}function ac(e,t){return t=vc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function oc(e,t,n){return ja(t,e.child,null,n),e=ac(t,t.pendingProps),e.flags|=2,no(t),t.memoizedState=null,e}function sc(e,t,n){var r=t.pendingProps,i=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(Di){if(r.mode===`hidden`)return e=ac(t,r),t.lanes=536870912,rc(null,e);if($a(t),(e=Ei)?(e=cf(e,ki),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:_i===null?null:{id:vi,overflow:yi},retryLane:536870912,hydrationErrors:null},n=si(e),n.return=t,t.child=n,Ti=t,Ei=null)):e=null,e===null)throw ji(t);return t.lanes=536870912,null}return ac(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if($a(t),i)if(t.flags&256)t.flags&=-257,t=oc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(a(558));else if(Zs||Gi(e,t,n,!1),i=(n&e.childLanes)!==0,Zs||i){if(r=Il,r!==null&&(s=qe(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,Yr(e,s),gu(r,e,s),Xs;Ou(),t=oc(e,t,n)}else e=o.treeContext,Ei=ff(s.nextSibling),Ti=t,Di=!0,Oi=null,ki=!1,e!==null&&wi(t,e),t=ac(t,r),t.flags|=4096;return t}return e=ni(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function cc(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(a(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function lc(e,t,n,r,i){return qi(t),n=vo(e,t,n,r,void 0,i),r=So(),e!==null&&!Zs?(Co(e,t,i),Cc(e,t,i)):(Di&&r&&Si(t),t.flags|=1,Qs(e,t,n,i),t.child)}function uc(e,t,n,r,i,a){return qi(t),t.updateQueue=null,n=bo(t,r,n,i),yo(e),r=So(),e!==null&&!Zs?(Co(e,t,a),Cc(e,t,a)):(Di&&r&&Si(t),t.flags|=1,Qs(e,t,n,a),t.child)}function dc(e,t,n,r,i){if(qi(t),t.stateNode===null){var a=Qr,o=n.contextType;typeof o==`object`&&o&&(a=Ji(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Ls,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Pa(t),o=n.contextType,a.context=typeof o==`object`&&o?Ji(o):Qr,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Is(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Ls.enqueueReplaceState(a,a.state,null),Ha(t,r,a,i),Va(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Bs(n,s);a.props=c;var l=a.context,u=n.contextType;o=Qr,typeof u==`object`&&u&&(o=Ji(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&zs(t,a,r,o),Na=!1;var f=t.memoizedState;a.state=f,Ha(t,r,a,i),Va(),l=t.memoizedState,s||f!==l||Na?(typeof d==`function`&&(Is(t,n,d,r),l=t.memoizedState),(c=Na||Rs(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Fa(e,t),o=t.memoizedProps,u=Bs(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=Qr,typeof l==`object`&&l&&(c=Ji(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&zs(t,a,r,c),Na=!1,f=t.memoizedState,a.state=f,Ha(t,r,a,i),Va();var p=t.memoizedState;o!==d||f!==p||Na||e!==null&&e.dependencies!==null&&Ki(e.dependencies)?(typeof s==`function`&&(Is(t,n,s,r),p=t.memoizedState),(u=Na||Rs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Ki(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,cc(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=ja(t,e.child,null,i),t.child=ja(t,null,n,i)):Qs(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Cc(e,t,i),e}function fc(e,t,n,r){return Fi(),t.flags|=256,Qs(e,t,n,r),t.child}var pc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function mc(e){return{baseLanes:e,cachePool:ma()}}function hc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Yl),e}function gc(e,t,n){var r=t.pendingProps,i=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(ro.current&2)!=0),s&&(i=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(Di){if(i?Qa(t):to(t),(e=Ei)?(e=cf(e,ki),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:_i===null?null:{id:vi,overflow:yi},retryLane:536870912,hydrationErrors:null},n=si(e),n.return=t,t.child=n,Ti=t,Ei=null)):e=null,e===null)throw ji(t);return uf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,i?(to(t),i=t.mode,c=vc({mode:`hidden`,children:c},i),r=ai(r,i,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=mc(n),r.childLanes=hc(e,s,n),t.memoizedState=pc,rc(null,r)):(Qa(t),_c(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(Qa(t),t.flags&=-257,t=yc(e,t,n)):t.memoizedState===null?(to(t),c=r.fallback,i=t.mode,r=vc({mode:`visible`,children:r.children},i),c=ai(c,i,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,ja(t,e.child,null,n),r=t.child,r.memoizedState=mc(n),r.childLanes=hc(e,s,n),t.memoizedState=pc,t=rc(null,r)):(to(t),t.child=e.child,t.flags|=128,t=null);else if(Qa(t),uf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(a(419)),r.stack=``,r.digest=s,Li({value:r,source:null,stack:null}),t=yc(e,t,n)}else if(Zs||Gi(e,t,n,!1),s=(n&e.childLanes)!==0,Zs||s){if(s=Il,s!==null&&(r=qe(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,Yr(e,r),gu(s,e,r),Xs;lf(c)||Ou(),t=yc(e,t,n)}else lf(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Ei=ff(c.nextSibling),Ti=t,Di=!0,Oi=null,ki=!1,e!==null&&wi(t,e),t=_c(t,r.children),t.flags|=4096);return t}return i?(to(t),c=r.fallback,i=t.mode,l=e.child,u=l.sibling,r=ni(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=ai(c,i,n,null),c.flags|=2):c=ni(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,rc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=mc(n):(i=c.cachePool,i===null?i=ma():(l=ea._currentValue,i=i.parent===l?i:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:i}),r.memoizedState=c,r.childLanes=hc(e,s,n),t.memoizedState=pc,rc(e.child,r)):(Qa(t),n=e.child,e=n.sibling,n=ni(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function _c(e,t){return t=vc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function vc(e,t){return e=ei(22,e,null,t),e.lanes=0,e}function yc(e,t,n){return ja(t,e.child,null,n),e=_c(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function bc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ui(e.return,t,n)}function xc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function Sc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=ro.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,W(ro,o),Qs(e,t,r,n),r=Di?mi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&bc(e,n,t);else if(e.tag===19)bc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&io(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),xc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&io(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}xc(t,!0,n,null,a,r);break;case`together`:xc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Cc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Kl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Gi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(a(153));if(t.child!==null){for(e=t.child,n=ni(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ni(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function wc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&Ki(e))):!0}function Tc(e,t,n){switch(t.tag){case 3:ne(t,t.stateNode.containerInfo),Vi(t,ea,e.memoizedState.cache),Fi();break;case 27:case 5:ie(t);break;case 4:ne(t,t.stateNode.containerInfo);break;case 10:Vi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,$a(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(Qa(t),e=Cc(e,t,n),e===null?null:e.sibling):gc(e,t,n):(Qa(t),t.flags|=128,null);Qa(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(Gi(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Sc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),W(ro,ro.current),r)break;return null;case 22:return t.lanes=0,nc(e,t,n,t.pendingProps);case 24:Vi(t,ea,e.memoizedState.cache)}return Cc(e,t,n)}function Ec(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Zs=!0;else{if(!wc(e,n)&&!(t.flags&128))return Zs=!1,Tc(e,t,n);Zs=!!(e.flags&131072)}else Zs=!1,Di&&t.flags&1048576&&xi(t,mi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=xa(t.elementType),t.type=e,typeof e==`function`)ti(e)?(r=Bs(e,r),t.tag=1,t=dc(null,t,e,r,n)):(t.tag=0,t=lc(null,t,e,r,n));else{if(e!=null){var i=e.$$typeof;if(i===w){t.tag=11,t=$s(null,t,e,r,n);break a}else if(i===O){t.tag=14,t=ec(null,t,e,r,n);break a}}throw t=F(e)||e,Error(a(306,t,``))}}return t;case 0:return lc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=Bs(r,t.pendingProps),dc(e,t,r,i,n);case 3:a:{if(ne(t,t.stateNode.containerInfo),e===null)throw Error(a(387));r=t.pendingProps;var o=t.memoizedState;i=o.element,Fa(e,t),Ha(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Vi(t,ea,r),r!==o.cache&&Wi(t,[ea],n,!0),Va(),r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=fc(e,t,r,n);break a}else if(r!==i){i=ui(Error(a(424)),t),Li(i),t=fc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Ei=ff(e.firstChild),Ti=t,Di=!0,Oi=null,ki=!0,n=Ma(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Fi(),r===i){t=Cc(e,t,n);break a}Qs(e,t,r,n)}t=t.child}return t;case 26:return cc(e,t),e===null?(n=Nf(t.type,null,t.pendingProps,null))?t.memoizedState=n:Di||(n=t.type,e=t.pendingProps,r=Wd(te.current).createElement(n),r[$e]=t,r[et]=e,Rd(r,n,e),ft(r),t.stateNode=r):t.memoizedState=Nf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ie(t),e===null&&Di&&(r=t.stateNode=gf(t.type,t.pendingProps,te.current),Ti=t,ki=!0,i=Ei,tf(t.type)?(pf=i,Ei=ff(r.firstChild)):Ei=i),Qs(e,t,t.pendingProps.children,n),cc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Di&&((i=r=Ei)&&(r=of(r,t.type,t.pendingProps,ki),r===null?i=!1:(t.stateNode=r,Ti=t,Ei=ff(r.firstChild),ki=!1,i=!0)),i||ji(t)),ie(t),i=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,qd(i,o)?r=null:s!==null&&qd(i,s)&&(t.flags|=32),t.memoizedState!==null&&(i=vo(e,t,xo,null,null,n),np._currentValue=i),cc(e,t),Qs(e,t,r,n),t.child;case 6:return e===null&&Di&&((e=n=Ei)&&(n=sf(n,t.pendingProps,ki),n===null?e=!1:(t.stateNode=n,Ti=t,Ei=null,e=!0)),e||ji(t)),null;case 13:return gc(e,t,n);case 4:return ne(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ja(t,null,r,n):Qs(e,t,r,n),t.child;case 11:return $s(e,t,t.type,t.pendingProps,n);case 7:return Qs(e,t,t.pendingProps,n),t.child;case 8:return Qs(e,t,t.pendingProps.children,n),t.child;case 12:return Qs(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Vi(t,t.type,r.value),Qs(e,t,r.children,n),t.child;case 9:return i=t.type._context,r=t.pendingProps.children,qi(t),i=Ji(i),r=r(i),t.flags|=1,Qs(e,t,r,n),t.child;case 14:return ec(e,t,t.type,t.pendingProps,n);case 15:return tc(e,t,t.type,t.pendingProps,n);case 19:return Sc(e,t,n);case 31:return sc(e,t,n);case 22:return nc(e,t,n,t.pendingProps);case 24:return qi(t),r=Ji(ea),e===null?(i=fa(),i===null&&(i=Il,o=ta(),i.pooledCache=o,o.refCount++,o!==null&&(i.pooledCacheLanes|=n),i=o),t.memoizedState={parent:r,cache:i},Pa(t),Vi(t,ea,i)):((e.lanes&n)!==0&&(Fa(e,t),Ha(t,null,null,n),Va()),i=e.memoizedState,o=t.memoizedState,i.parent===r?(r=o.cache,Vi(t,ea,r),r!==i.cache&&Wi(t,[ea],n,!0)):(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Vi(t,ea,r))),Qs(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(a(156,t.tag))}function Dc(e){e.flags|=4}function Oc(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Tu())e.flags|=8192;else throw Sa=va,ga}else e.flags&=-16777217}function kc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Jf(t))if(Tu())e.flags|=8192;else throw Sa=va,ga}function Ac(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Ve(),e.lanes|=t,Xl|=t)}function jc(e,t){if(!Di)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Mc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Nc(e,t,n){var r=t.pendingProps;switch(Ci(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Mc(t),null;case 1:return Mc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Hi(ea),re(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Pi(t)?Dc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ii())),Mc(t),null;case 26:var i=t.type,o=t.memoizedState;return e===null?(Dc(t),o===null?(Mc(t),Oc(t,i,null,r,n)):(Mc(t),kc(t,o))):o?o===e.memoizedState?(Mc(t),t.flags&=-16777217):(Dc(t),Mc(t),kc(t,o)):(e=e.memoizedProps,e!==r&&Dc(t),Mc(t),Oc(t,i,e,r,n)),null;case 27:if(ae(t),n=te.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Dc(t);else{if(!r){if(t.stateNode===null)throw Error(a(166));return Mc(t),null}e=G.current,Pi(t)?Mi(t,e):(e=gf(i,r,n),t.stateNode=e,Dc(t))}return Mc(t),null;case 5:if(ae(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Dc(t);else{if(!r){if(t.stateNode===null)throw Error(a(166));return Mc(t),null}if(o=G.current,Pi(t))Mi(t,o);else{var s=Wd(te.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,i);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,i);break;default:switch(i){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,i);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,i);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(i,{is:r.is}):s.createElement(i)}}o[$e]=t,o[et]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Rd(o,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Dc(t)}}return Mc(t),Oc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Dc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(a(166));if(e=te.current,Pi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=Ti,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[$e]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Fd(e.nodeValue,n)),e||ji(t,!0)}else e=Wd(e).createTextNode(r),e[$e]=t,t.stateNode=e}return Mc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Pi(t),n!==null){if(e===null){if(!r)throw Error(a(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(557));e[$e]=t}else Fi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Mc(t),e=!1}else n=Ii(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(no(t),t):(no(t),null);if(t.flags&128)throw Error(a(558))}return Mc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Pi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(a(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(a(317));i[$e]=t}else Fi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Mc(t),i=!1}else i=Ii(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(no(t),t):(no(t),null)}return no(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Ac(t,t.updateQueue),Mc(t),null);case 4:return re(),e===null&&Td(t.stateNode.containerInfo),Mc(t),null;case 10:return Hi(t.type),Mc(t),null;case 19:if(U(ro),r=t.memoizedState,r===null)return Mc(t),null;if(i=(t.flags&128)!=0,o=r.rendering,o===null)if(i)jc(r,!1);else{if(Gl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=io(e),o!==null){for(t.flags|=128,jc(r,!1),e=o.updateQueue,t.updateQueue=e,Ac(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ri(n,e),n=n.sibling;return W(ro,ro.current&1|2),Di&&bi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&ve()>nu&&(t.flags|=128,i=!0,jc(r,!1),t.lanes=4194304)}else{if(!i)if(e=io(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Ac(t,e),jc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!Di)return Mc(t),null}else 2*ve()-r.renderingStartTime>nu&&n!==536870912&&(t.flags|=128,i=!0,jc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Mc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=ve(),e.sibling=null,n=ro.current,W(ro,i?n&1|2:n&1),Di&&bi(t,r.treeForkCount),e);case 22:case 23:return no(t),Ya(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Mc(t),t.subtreeFlags&6&&(t.flags|=8192)):Mc(t),n=t.updateQueue,n!==null&&Ac(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&U(da),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Hi(ea),Mc(t),null;case 25:return null;case 30:return null}throw Error(a(156,t.tag))}function Pc(e,t){switch(Ci(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Hi(ea),re(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ae(t),null;case 31:if(t.memoizedState!==null){if(no(t),t.alternate===null)throw Error(a(340));Fi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(no(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));Fi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(ro),null;case 4:return re(),null;case 10:return Hi(t.type),null;case 22:case 23:return no(t),Ya(),e!==null&&U(da),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Hi(ea),null;case 25:return null;default:return null}}function Fc(e,t){switch(Ci(t),t.tag){case 3:Hi(ea),re();break;case 26:case 27:case 5:ae(t);break;case 4:re();break;case 31:t.memoizedState!==null&&no(t);break;case 13:no(t);break;case 19:U(ro);break;case 10:Hi(t.type);break;case 22:case 23:no(t),Ya(),e!==null&&U(da);break;case 24:Hi(ea)}}function Ic(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Ku(t,t.return,e)}}function Lc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Ku(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Ku(t,t.return,e)}}function Rc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Wa(t,n)}catch(t){Ku(e,e.return,t)}}}function zc(e,t,n){n.props=Bs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Ku(e,t,n)}}function Bc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Ku(e,t,n)}}function Vc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Ku(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Ku(e,t,n)}else n.current=null}function Hc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Ku(e,e.return,t)}}function Uc(e,t,n){try{var r=e.stateNode;zd(r,e.type,n,t),r[et]=t}catch(t){Ku(e,e.return,t)}}function Wc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&tf(e.type)||e.tag===4}function Gc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Wc(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&&tf(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Kc(e,t,n){var r=e.tag;if(r===5||r===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=Kt));else if(r!==4&&(r===27&&tf(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Kc(e,t,n),e=e.sibling;e!==null;)Kc(e,t,n),e=e.sibling}function qc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&tf(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(qc(e,t,n),e=e.sibling;e!==null;)qc(e,t,n),e=e.sibling}function Jc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Rd(t,r,n),t[$e]=e,t[et]=n}catch(t){Ku(e,e.return,t)}}var Yc=!1,Xc=!1,Zc=!1,Qc=typeof WeakSet==`function`?WeakSet:Set,$c=null;function el(e,t){if(e=e.containerInfo,Hd=up,e=yr(e),br(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||i!==0&&f.nodeType!==3||(c=s+i),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===i&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Ud={focusedElem:e,selectionRange:n},up=!1,$c=t;$c!==null;)if(t=$c,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,$c=e;else for(;$c!==null;){switch(t=$c,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,i=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=Bs(n.type,i);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Ku(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)af(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:af(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(a(163))}if(e=t.sibling,e!==null){e.return=t.return,$c=e;break}$c=t.return}}function tl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:gl(e,n),r&4&&Ic(5,n);break;case 1:if(gl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Ku(n,n.return,e)}else{var i=Bs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Ku(n,n.return,e)}}r&64&&Rc(n),r&512&&Bc(n,n.return);break;case 3:if(gl(e,n),r&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{Wa(e,t)}catch(e){Ku(n,n.return,e)}}break;case 27:t===null&&r&4&&Jc(n);case 26:case 5:gl(e,n),t===null&&r&4&&Hc(n),r&512&&Bc(n,n.return);break;case 12:gl(e,n);break;case 31:gl(e,n),r&4&&sl(e,n);break;case 13:gl(e,n),r&4&&cl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Xu.bind(null,n),df(e,n))));break;case 22:if(r=n.memoizedState!==null||Yc,!r){t=t!==null&&t.memoizedState!==null||Xc,i=Yc;var a=Xc;Yc=r,(Xc=t)&&!a?vl(e,n,(n.subtreeFlags&8772)!=0):gl(e,n),Yc=i,Xc=a}break;case 30:break;default:gl(e,n)}}function nl(e){var t=e.alternate;t!==null&&(e.alternate=null,nl(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&st(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 rl=null,il=!1;function al(e,t,n){for(n=n.child;n!==null;)ol(e,t,n),n=n.sibling}function ol(e,t,n){if(Oe&&typeof Oe.onCommitFiberUnmount==`function`)try{Oe.onCommitFiberUnmount(De,n)}catch{}switch(n.tag){case 26:Xc||Vc(n,t),al(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Xc||Vc(n,t);var r=rl,i=il;tf(n.type)&&(rl=n.stateNode,il=!1),al(e,t,n),_f(n.stateNode),rl=r,il=i;break;case 5:Xc||Vc(n,t);case 6:if(r=rl,i=il,rl=null,al(e,t,n),rl=r,il=i,rl!==null)if(il)try{(rl.nodeType===9?rl.body:rl.nodeName===`HTML`?rl.ownerDocument.body:rl).removeChild(n.stateNode)}catch(e){Ku(n,t,e)}else try{rl.removeChild(n.stateNode)}catch(e){Ku(n,t,e)}break;case 18:rl!==null&&(il?(e=rl,nf(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Pp(e)):nf(rl,n.stateNode));break;case 4:r=rl,i=il,rl=n.stateNode.containerInfo,il=!0,al(e,t,n),rl=r,il=i;break;case 0:case 11:case 14:case 15:Lc(2,n,t),Xc||Lc(4,n,t),al(e,t,n);break;case 1:Xc||(Vc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&zc(n,t,r)),al(e,t,n);break;case 21:al(e,t,n);break;case 22:Xc=(r=Xc)||n.memoizedState!==null,al(e,t,n),Xc=r;break;default:al(e,t,n)}}function sl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Pp(e)}catch(e){Ku(t,t.return,e)}}}function cl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Pp(e)}catch(e){Ku(t,t.return,e)}}function ll(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Qc),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Qc),t;default:throw Error(a(435,e.tag))}}function ul(e,t){var n=ll(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Zu.bind(null,e,t);t.then(r,r)}})}function dl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(tf(c.type)){rl=c.stateNode,il=!1;break a}break;case 5:rl=c.stateNode,il=!1;break a;case 3:case 4:rl=c.stateNode.containerInfo,il=!0;break a}c=c.return}if(rl===null)throw Error(a(160));ol(o,s,i),rl=null,il=!1,o=i.alternate,o!==null&&(o.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)pl(t,e),t=t.sibling}var fl=null;function pl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:dl(t,e),ml(e),r&4&&(Lc(3,e,e.return),Ic(3,e),Lc(5,e,e.return));break;case 1:dl(t,e),ml(e),r&512&&(Xc||n===null||Vc(n,n.return)),r&64&&Yc&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var i=fl;if(dl(t,e),ml(e),r&512&&(Xc||n===null||Vc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,i=i.ownerDocument||i;b:switch(r){case`title`:o=i.getElementsByTagName(`title`)[0],(!o||o[ot]||o[$e]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=i.createElement(r),i.head.insertBefore(o,i.querySelector(`head > title`))),Rd(o,r,n),o[$e]=e,ft(o),r=o;break a;case`link`:var s=Gf(`link`,`href`,i).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=i.createElement(r),Rd(o,r,n),i.head.appendChild(o);break;case`meta`:if(s=Gf(`meta`,`content`,i).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=i.createElement(r),Rd(o,r,n),i.head.appendChild(o);break;default:throw Error(a(468,r))}o[$e]=e,ft(o),r=o}e.stateNode=r}else Kf(i,e.type,e.stateNode);else e.stateNode=Bf(i,r,e.memoizedProps);else o===r?r===null&&e.stateNode!==null&&Uc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Kf(i,e.type,e.stateNode):Bf(i,r,e.memoizedProps))}break;case 27:dl(t,e),ml(e),r&512&&(Xc||n===null||Vc(n,n.return)),n!==null&&r&4&&Uc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(dl(t,e),ml(e),r&512&&(Xc||n===null||Vc(n,n.return)),e.flags&32){i=e.stateNode;try{Rt(i,``)}catch(t){Ku(e,e.return,t)}}r&4&&e.stateNode!=null&&(i=e.memoizedProps,Uc(e,i,n===null?i:n.memoizedProps)),r&1024&&(Zc=!0);break;case 6:if(dl(t,e),ml(e),r&4){if(e.stateNode===null)throw Error(a(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Ku(e,e.return,t)}}break;case 3:if(Wf=null,i=fl,fl=bf(t.containerInfo),dl(t,e),fl=i,ml(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Pp(t.containerInfo)}catch(t){Ku(e,e.return,t)}Zc&&(Zc=!1,hl(e));break;case 4:r=fl,fl=bf(e.stateNode.containerInfo),dl(t,e),ml(e),fl=r;break;case 12:dl(t,e),ml(e);break;case 31:dl(t,e),ml(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ul(e,r)));break;case 13:dl(t,e),ml(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(eu=ve()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ul(e,r)));break;case 22:i=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=Yc,d=Xc;if(Yc=u||i,Xc=d||l,dl(t,e),Xc=d,Yc=u,ml(e),r&8192)a:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(n===null||l||Yc||Xc||_l(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,i)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Ku(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=i?``:l.memoizedProps}catch(e){Ku(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;i?rf(m,!0):rf(l.stateNode,!1)}catch(e){Ku(l,l.return,e)}}}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 a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,ul(e,n))));break;case 19:dl(t,e),ml(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ul(e,r)));break;case 30:break;case 21:break;default:dl(t,e),ml(e)}}function ml(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Wc(r)){n=r;break}r=r.return}if(n==null)throw Error(a(160));switch(n.tag){case 27:var i=n.stateNode;qc(e,Gc(e),i);break;case 5:var o=n.stateNode;n.flags&32&&(Rt(o,``),n.flags&=-33),qc(e,Gc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;Kc(e,Gc(e),s);break;default:throw Error(a(161))}}catch(t){Ku(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function hl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;hl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function gl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)tl(e,t.alternate,t),t=t.sibling}function _l(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Lc(4,t,t.return),_l(t);break;case 1:Vc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&zc(t,t.return,n),_l(t);break;case 27:_f(t.stateNode);case 26:case 5:Vc(t,t.return),_l(t);break;case 22:t.memoizedState===null&&_l(t);break;case 30:_l(t);break;default:_l(t)}e=e.sibling}}function vl(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:vl(i,a,n),Ic(4,a);break;case 1:if(vl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Ku(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Ua(c[i],s)}catch(e){Ku(r,r.return,e)}}n&&o&64&&Rc(a),Bc(a,a.return);break;case 27:Jc(a);case 26:case 5:vl(i,a,n),n&&r===null&&o&4&&Hc(a),Bc(a,a.return);break;case 12:vl(i,a,n);break;case 31:vl(i,a,n),n&&o&4&&sl(i,a);break;case 13:vl(i,a,n),n&&o&4&&cl(i,a);break;case 22:a.memoizedState===null&&vl(i,a,n),Bc(a,a.return);break;case 30:break;default:vl(i,a,n)}t=t.sibling}}function yl(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&&na(n))}function bl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&na(e))}function xl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Sl(e,t,n,r),t=t.sibling}function Sl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:xl(e,t,n,r),i&2048&&Ic(9,t);break;case 1:xl(e,t,n,r);break;case 3:xl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&na(e)));break;case 12:if(i&2048){xl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Ku(t,t.return,e)}}else xl(e,t,n,r);break;case 31:xl(e,t,n,r);break;case 13:xl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?xl(e,t,n,r):(a._visibility|=2,Cl(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?xl(e,t,n,r):wl(e,t),i&2048&&yl(o,t);break;case 24:xl(e,t,n,r),i&2048&&bl(t.alternate,t);break;default:xl(e,t,n,r)}}function Cl(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Cl(a,o,s,c,i),Ic(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Cl(a,o,s,c,i)):u._visibility&2?Cl(a,o,s,c,i):wl(a,o),i&&l&2048&&yl(o.alternate,o);break;case 24:Cl(a,o,s,c,i),i&&l&2048&&bl(o.alternate,o);break;default:Cl(a,o,s,c,i)}t=t.sibling}}function wl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:wl(n,r),i&2048&&yl(r.alternate,r);break;case 24:wl(n,r),i&2048&&bl(r.alternate,r);break;default:wl(n,r)}t=t.sibling}}var Tl=8192;function El(e,t,n){if(e.subtreeFlags&Tl)for(e=e.child;e!==null;)Dl(e,t,n),e=e.sibling}function Dl(e,t,n){switch(e.tag){case 26:El(e,t,n),e.flags&Tl&&e.memoizedState!==null&&Yf(n,fl,e.memoizedState,e.memoizedProps);break;case 5:El(e,t,n);break;case 3:case 4:var r=fl;fl=bf(e.stateNode.containerInfo),El(e,t,n),fl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Tl,Tl=16777216,El(e,t,n),Tl=r):El(e,t,n));break;default:El(e,t,n)}}function Ol(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 kl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];$c=r,Ml(r,e)}Ol(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Al(e),e=e.sibling}function Al(e){switch(e.tag){case 0:case 11:case 15:kl(e),e.flags&2048&&Lc(9,e,e.return);break;case 3:kl(e);break;case 12:kl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,jl(e)):kl(e);break;default:kl(e)}}function jl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];$c=r,Ml(r,e)}Ol(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Lc(8,t,t.return),jl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,jl(t));break;default:jl(t)}e=e.sibling}}function Ml(e,t){for(;$c!==null;){var n=$c;switch(n.tag){case 0:case 11:case 15:Lc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:na(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,$c=r;else a:for(n=e;$c!==null;){r=$c;var i=r.sibling,a=r.return;if(nl(r),r===n){$c=null;break a}if(i!==null){i.return=a,$c=i;break a}$c=a}}}var Nl={getCacheForType:function(e){var t=Ji(ea),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Ji(ea).controller.signal}},Pl=typeof WeakMap==`function`?WeakMap:Map,Fl=0,Il=null,Ll=null,Rl=0,zl=0,Bl=null,Vl=!1,Hl=!1,Ul=!1,Wl=0,Gl=0,Kl=0,ql=0,Jl=0,Yl=0,Xl=0,Zl=null,Ql=null,$l=!1,eu=0,tu=0,nu=1/0,ru=null,iu=null,au=0,ou=null,su=null,cu=0,lu=0,uu=null,du=null,fu=0,pu=null;function mu(){return Fl&2&&Rl!==0?Rl&-Rl:L.T===null?Xe():pd()}function hu(){if(Yl===0)if(!(Rl&536870912)||Di){var e=Fe;Fe<<=1,!(Fe&3932160)&&(Fe=262144),Yl=e}else Yl=536870912;return e=Xa.current,e!==null&&(e.flags|=32),Yl}function gu(e,t,n){(e===Il&&(zl===2||zl===9)||e.cancelPendingCommit!==null)&&(Cu(e,0),bu(e,Rl,Yl,!1)),Ue(e,n),(!(Fl&2)||e!==Il)&&(e===Il&&(!(Fl&2)&&(ql|=n),Gl===4&&bu(e,Rl,Yl,!1)),ad(e))}function _u(e,t,n){if(Fl&6)throw Error(a(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||ze(e,t),i=r?ju(e,t):ku(e,t,!0),o=r;do{if(i===0){Hl&&!r&&bu(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!yu(n)){i=ku(e,t,!1),o=!1;continue}if(i===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;i=Zl;var l=c.current.memoizedState.isDehydrated;if(l&&(Cu(c,s).flags|=256),s=ku(c,s,!1),s!==2){if(Ul&&!l){c.errorRecoveryDisabledLanes|=o,ql|=o,i=4;break a}o=Ql,Ql=i,o!==null&&(Ql===null?Ql=o:Ql.push.apply(Ql,o))}i=s}if(o=!1,i!==2)continue}}if(i===1){Cu(e,0),bu(e,t,0,!0);break}a:{switch(r=e,o=i,o){case 0:case 1:throw Error(a(345));case 4:if((t&4194048)!==t)break;case 6:bu(r,t,Yl,!Vl);break a;case 2:Ql=null;break;case 3:case 5:break;default:throw Error(a(329))}if((t&62914560)===t&&(i=eu+300-ve(),10<i)){if(bu(r,t,Yl,!Vl),Re(r,0,!0)!==0)break a;cu=t,r.timeoutHandle=Xd(vu.bind(null,r,n,Ql,ru,$l,t,Yl,ql,Xl,Vl,o,`Throttled`,-0,0),i);break a}vu(r,n,Ql,ru,$l,t,Yl,ql,Xl,Vl,o,null,-0,0)}}break}while(1);ad(e)}function vu(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Kt},Dl(t,a,d);var m=(a&62914560)===a?eu-ve():(a&4194048)===a?tu-ve():0;if(m=Zf(d,m),m!==null){cu=a,e.cancelPendingCommit=m(Ru.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),bu(e,a,o,!l);return}}Ru(e,t,a,n,r,i,o,s,c)}function yu(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 r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!mr(a(),i))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 bu(e,t,n,r){t&=~Jl,t&=~ql,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Ae(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&Ge(e,n,t)}function xu(){return Fl&6?!0:(od(0,!1),!1)}function Su(){if(Ll!==null){if(zl===0)var e=Ll.return;else e=Ll,Bi=zi=null,wo(e),Ta=null,Ea=0,e=Ll;for(;e!==null;)Fc(e.alternate,e),e=e.return;Ll=null}}function Cu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Zd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),cu=0,Su(),Il=e,Ll=n=ni(e.current,null),Rl=t,zl=0,Bl=null,Vl=!1,Hl=ze(e,t),Ul=!1,Xl=Yl=Jl=ql=Kl=Gl=0,Ql=Zl=null,$l=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Ae(r),a=1<<i;t|=e[i],r&=~a}return Wl=t,Kr(),n}function wu(e,t){J=null,L.H=Ms,t===ha||t===_a?(t=Ca(),zl=3):t===ga?(t=Ca(),zl=4):zl=t===Xs?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Bl=t,Ll===null&&(Gl=1,Ws(e,ui(t,e.current)))}function Tu(){var e=Xa.current;return e===null?!0:(Rl&4194048)===Rl?Za===null:(Rl&62914560)===Rl||Rl&536870912?e===Za:!1}function Eu(){var e=L.H;return L.H=Ms,e===null?Ms:e}function Du(){var e=L.A;return L.A=Nl,e}function Ou(){Gl=4,Vl||(Rl&4194048)!==Rl&&Xa.current!==null||(Hl=!0),!(Kl&134217727)&&!(ql&134217727)||Il===null||bu(Il,Rl,Yl,!1)}function ku(e,t,n){var r=Fl;Fl|=2;var i=Eu(),a=Du();(Il!==e||Rl!==t)&&(ru=null,Cu(e,t)),t=!1;var o=Gl;a:do try{if(zl!==0&&Ll!==null){var s=Ll,c=Bl;switch(zl){case 8:Su(),o=6;break a;case 3:case 2:case 9:case 6:Xa.current===null&&(t=!0);var l=zl;if(zl=0,Bl=null,Fu(e,s,c,l),n&&Hl){o=0;break a}break;default:l=zl,zl=0,Bl=null,Fu(e,s,c,l)}}Au(),o=Gl;break}catch(t){wu(e,t)}while(1);return t&&e.shellSuspendCounter++,Bi=zi=null,Fl=r,L.H=i,L.A=a,Ll===null&&(Il=null,Rl=0,Kr()),o}function Au(){for(;Ll!==null;)Nu(Ll)}function ju(e,t){var n=Fl;Fl|=2;var r=Eu(),i=Du();Il!==e||Rl!==t?(ru=null,nu=ve()+500,Cu(e,t)):Hl=ze(e,t);a:do try{if(zl!==0&&Ll!==null){t=Ll;var o=Bl;b:switch(zl){case 1:zl=0,Bl=null,Fu(e,t,o,1);break;case 2:case 9:if(ya(o)){zl=0,Bl=null,Pu(t);break}t=function(){zl!==2&&zl!==9||Il!==e||(zl=7),ad(e)},o.then(t,t);break a;case 3:zl=7;break a;case 4:zl=5;break a;case 7:ya(o)?(zl=0,Bl=null,Pu(t)):(zl=0,Bl=null,Fu(e,t,o,7));break;case 5:var s=null;switch(Ll.tag){case 26:s=Ll.memoizedState;case 5:case 27:var c=Ll;if(s?Jf(s):c.stateNode.complete){zl=0,Bl=null;var l=c.sibling;if(l!==null)Ll=l;else{var u=c.return;u===null?Ll=null:(Ll=u,Iu(u))}break b}}zl=0,Bl=null,Fu(e,t,o,5);break;case 6:zl=0,Bl=null,Fu(e,t,o,6);break;case 8:Su(),Gl=6;break a;default:throw Error(a(462))}}Mu();break}catch(t){wu(e,t)}while(1);return Bi=zi=null,L.H=r,L.A=i,Fl=n,Ll===null?(Il=null,Rl=0,Kr(),Gl):0}function Mu(){for(;Ll!==null&&!ge();)Nu(Ll)}function Nu(e){var t=Ec(e.alternate,e,Wl);e.memoizedProps=e.pendingProps,t===null?Iu(e):Ll=t}function Pu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=uc(n,t,t.pendingProps,t.type,void 0,Rl);break;case 11:t=uc(n,t,t.pendingProps,t.type.render,t.ref,Rl);break;case 5:wo(t);default:Fc(n,t),t=Ll=ri(t,Wl),t=Ec(n,t,Wl)}e.memoizedProps=e.pendingProps,t===null?Iu(e):Ll=t}function Fu(e,t,n,r){Bi=zi=null,wo(t),Ta=null,Ea=0;var i=t.return;try{if(Ys(e,i,t,n,Rl)){Gl=1,Ws(e,ui(n,e.current)),Ll=null;return}}catch(t){if(i!==null)throw Ll=i,t;Gl=1,Ws(e,ui(n,e.current)),Ll=null;return}t.flags&32768?(Di||r===1?e=!0:Hl||Rl&536870912?e=!1:(Vl=e=!0,(r===2||r===9||r===3||r===6)&&(r=Xa.current,r!==null&&r.tag===13&&(r.flags|=16384))),Lu(t,e)):Iu(t)}function Iu(e){var t=e;do{if(t.flags&32768){Lu(t,Vl);return}e=t.return;var n=Nc(t.alternate,t,Wl);if(n!==null){Ll=n;return}if(t=t.sibling,t!==null){Ll=t;return}Ll=t=e}while(t!==null);Gl===0&&(Gl=5)}function Lu(e,t){do{var n=Pc(e.alternate,e);if(n!==null){n.flags&=32767,Ll=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ll=e;return}Ll=e=n}while(e!==null);Gl=6,Ll=null}function Ru(e,t,n,r,i,o,s,c,l){e.cancelPendingCommit=null;do Uu();while(au!==0);if(Fl&6)throw Error(a(327));if(t!==null){if(t===e.current)throw Error(a(177));if(o=t.lanes|t.childLanes,o|=Gr,We(e,n,o,s,c,l),e===Il&&(Ll=Il=null,Rl=0),su=t,ou=e,cu=n,lu=o,uu=i,du=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Qu(Se,function(){return Wu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=L.T,L.T=null,i=R.p,R.p=2,s=Fl,Fl|=4;try{el(e,t,n)}finally{Fl=s,R.p=i,L.T=r}}au=1,zu(),Bu(),Vu()}}function zu(){if(au===1){au=0;var e=ou,t=su,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=L.T,L.T=null;var r=R.p;R.p=2;var i=Fl;Fl|=4;try{pl(t,e);var a=Ud,o=yr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&vr(s.ownerDocument.documentElement,s)){if(c!==null&&br(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=_r(s,h),v=_r(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}up=!!Hd,Ud=Hd=null}finally{Fl=i,R.p=r,L.T=n}}e.current=t,au=2}}function Bu(){if(au===2){au=0;var e=ou,t=su,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=L.T,L.T=null;var r=R.p;R.p=2;var i=Fl;Fl|=4;try{tl(e,t.alternate,t)}finally{Fl=i,R.p=r,L.T=n}}au=3}}function Vu(){if(au===4||au===3){au=0,_e();var e=ou,t=su,n=cu,r=du;t.subtreeFlags&10256||t.flags&10256?au=5:(au=0,su=ou=null,Hu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(iu=null),Ye(n),t=t.stateNode,Oe&&typeof Oe.onCommitFiberRoot==`function`)try{Oe.onCommitFiberRoot(De,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=L.T,i=R.p,R.p=2,L.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{L.T=t,R.p=i}}cu&3&&Uu(),ad(e),i=e.pendingLanes,n&261930&&i&42?e===pu?fu++:(fu=0,pu=e):fu=0,od(0,!1)}}function Hu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,na(t)))}function Uu(){return zu(),Bu(),Vu(),Wu()}function Wu(){if(au!==5)return!1;var e=ou,t=lu;lu=0;var n=Ye(cu),r=L.T,i=R.p;try{R.p=32>n?32:n,L.T=null,n=uu,uu=null;var o=ou,s=cu;if(au=0,su=ou=null,cu=0,Fl&6)throw Error(a(331));var c=Fl;if(Fl|=4,Al(o.current),Sl(o,o.current,s,n),Fl=c,od(0,!1),Oe&&typeof Oe.onPostCommitFiberRoot==`function`)try{Oe.onPostCommitFiberRoot(De,o)}catch{}return!0}finally{R.p=i,L.T=r,Hu(e,t)}}function Gu(e,t,n){t=ui(n,t),t=Ks(e.stateNode,t,2),e=La(e,t,2),e!==null&&(Ue(e,2),ad(e))}function Ku(e,t,n){if(e.tag===3)Gu(e,e,n);else for(;t!==null;){if(t.tag===3){Gu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(iu===null||!iu.has(r))){e=ui(n,e),n=qs(2),r=La(t,n,2),r!==null&&(Js(n,r,t,e),Ue(r,2),ad(r));break}}t=t.return}}function qu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Pl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Ul=!0,i.add(n),e=Ju.bind(null,e,t,n),t.then(e,e))}function Ju(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Il===e&&(Rl&n)===n&&(Gl===4||Gl===3&&(Rl&62914560)===Rl&&300>ve()-eu?!(Fl&2)&&Cu(e,0):Jl|=n,Xl===Rl&&(Xl=0)),ad(e)}function Yu(e,t){t===0&&(t=Ve()),e=Yr(e,t),e!==null&&(Ue(e,t),ad(e))}function Xu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Yu(e,n)}function Zu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(a(314))}r!==null&&r.delete(t),Yu(e,n)}function Qu(e,t){return me(e,t)}var $u=null,ed=null,td=!1,nd=!1,rd=!1,id=0;function ad(e){e!==ed&&e.next===null&&(ed===null?$u=ed=e:ed=ed.next=e),nd=!0,td||(td=!0,fd())}function od(e,t){if(!rd&&nd){rd=!0;do for(var n=!1,r=$u;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Ae(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,dd(r,a))}else a=Rl,a=Re(r,r===Il?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||ze(r,a)||(n=!0,dd(r,a));r=r.next}while(n);rd=!1}}function sd(){cd()}function cd(){nd=td=!1;var e=0;id!==0&&Yd()&&(e=id);for(var t=ve(),n=null,r=$u;r!==null;){var i=r.next,a=ld(r,t);a===0?(r.next=null,n===null?$u=i:n.next=i,i===null&&(ed=n)):(n=r,(e!==0||a&3)&&(nd=!0)),r=i}au!==0&&au!==5||od(e,!1),id!==0&&(id=0)}function ld(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Ae(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Be(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Il,n=Rl,n=Re(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(zl===2||zl===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&he(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||ze(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&he(r),Ye(n)){case 2:case 8:n=xe;break;case 32:n=Se;break;case 268435456:n=we;break;default:n=Se}return r=ud.bind(null,e),n=me(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&he(r),e.callbackPriority=2,e.callbackNode=null,2}function ud(e,t){if(au!==0&&au!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Uu()&&e.callbackNode!==n)return null;var r=Rl;return r=Re(e,e===Il?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(_u(e,r,t),ld(e,ve()),e.callbackNode!=null&&e.callbackNode===n?ud.bind(null,e):null)}function dd(e,t){if(Uu())return null;_u(e,t,!0)}function fd(){$d(function(){Fl&6?me(be,sd):cd()})}function pd(){if(id===0){var e=aa;e===0&&(e=Pe,Pe<<=1,!(Pe&261888)&&(Pe=256)),id=e}return id}function md(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:Gt(``+e)}function hd(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 gd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=md((i[et]||null).action),o=r.submitter;o&&(t=(t=o[et]||null)?md(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new mn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(id!==0){var e=o?hd(i,o):new FormData(i);vs(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?hd(i,o):new FormData(i),vs(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var _d=0;_d<Br.length;_d++){var vd=Br[_d];Vr(vd.toLowerCase(),`on`+(vd[0].toUpperCase()+vd.slice(1)))}Vr(Mr,`onAnimationEnd`),Vr(Nr,`onAnimationIteration`),Vr(Pr,`onAnimationStart`),Vr(`dblclick`,`onDoubleClick`),Vr(`focusin`,`onFocus`),Vr(`focusout`,`onBlur`),Vr(Fr,`onTransitionRun`),Vr(Ir,`onTransitionStart`),Vr(Lr,`onTransitionCancel`),Vr(Rr,`onTransitionEnd`),gt(`onMouseEnter`,[`mouseout`,`mouseover`]),gt(`onMouseLeave`,[`mouseout`,`mouseover`]),gt(`onPointerEnter`,[`pointerout`,`pointerover`]),gt(`onPointerLeave`,[`pointerout`,`pointerover`]),ht(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),ht(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),ht(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),ht(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),ht(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),ht(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var yd=`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(` `),bd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(yd));function xd(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Hr(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Hr(e)}i.currentTarget=null,a=c}}}}function Sd(e,t){var n=t[nt];n===void 0&&(n=t[nt]=new Set);var r=e+`__bubble`;n.has(r)||(Ed(t,e,2,!1),n.add(r))}function Cd(e,t,n){var r=0;t&&(r|=4),Ed(n,e,r,t)}var wd=`_reactListening`+Math.random().toString(36).slice(2);function Td(e){if(!e[wd]){e[wd]=!0,pt.forEach(function(t){t!==`selectionchange`&&(bd.has(t)||Cd(t,!1,e),Cd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[wd]||(t[wd]=!0,Cd(`selectionchange`,!1,t))}}function Ed(e,t,n,r){switch($(t)){case 2:var i=dp;break;case 8:i=Q;break;default:i=fp}n=i.bind(null,t,n,e),i=void 0,!nn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Dd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;s!==null;){if(o=ct(s),o===null)return;if(l=o.tag,l===5||l===6||l===26||l===27){r=a=o;continue a}s=s.parentNode}}r=r.return}$t(function(){var r=a,i=Jt(n),o=[];a:{var s=zr.get(e);if(s!==void 0){var l=mn,u=e;switch(e){case`keypress`:if(ln(n)===0)break a;case`keydown`:case`keyup`:l=Mn;break;case`focusin`:u=`focus`,l=Cn;break;case`focusout`:u=`blur`,l=Cn;break;case`beforeblur`:case`afterblur`:l=Cn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=xn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Sn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Pn;break;case Mr:case Nr:case Pr:l=wn;break;case Rr:l=Fn;break;case`scroll`:case`scrollend`:l=gn;break;case`wheel`:l=q;break;case`copy`:case`cut`:case`paste`:l=Tn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Nn;break;case`toggle`:case`beforetoggle`:l=In}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?s===null?null:s+`Capture`:s;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=en(m,p),g!=null&&d.push(Od(m,g,h))),f)break;m=m.return}0<d.length&&(s=new l(s,u,null,n,i),o.push({event:s,listeners:d}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,s&&n!==qt&&(u=n.relatedTarget||n.fromElement)&&(ct(u)||u[tt]))break a;if((l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?ct(u):null,u!==null&&(f=c(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=xn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Nn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?s:ut(l),h=u==null?s:ut(u),s=new d(g,m+`leave`,l,n,i),s.target=f,s.relatedTarget=h,g=null,ct(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Ad,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&jd(o,s,l,d,!1),u!==null&&f!==null&&jd(o,f,u,d,!0)}}a:{if(s=r?ut(r):window,l=s.nodeName&&s.nodeName.toLowerCase(),l===`select`||l===`input`&&s.type===`file`)var v=nr;else if(Xn(s))if(rr)v=fr;else{v=ur;var y=lr}else l=s.nodeName,!l||l.toLowerCase()!==`input`||s.type!==`checkbox`&&s.type!==`radio`?r&&Ht(r.elementType)&&(v=nr):v=dr;if(v&&=v(e,r)){Zn(o,v,n,i);break a}y&&y(e,s,r),e===`focusout`&&r&&s.type===`number`&&r.memoizedProps.value!=null&&Pt(s,`number`,s.value)}switch(y=r?ut(r):window,e){case`focusin`:(Xn(y)||y.contentEditable===`true`)&&(Sr=y,Cr=r,wr=null);break;case`focusout`:wr=Cr=Sr=null;break;case`mousedown`:Tr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Tr=!1,Er(o,n,i);break;case`selectionchange`:if(xr)break;case`keydown`:case`keyup`:Er(o,n,i)}var b;if(Rn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else Kn?Wn(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Vn&&n.locale!==`ko`&&(Kn||x!==`onCompositionStart`?x===`onCompositionEnd`&&Kn&&(b=cn()):(an=i,on=`value`in an?an.value:an.textContent,Kn=!0)),y=kd(r,x),0<y.length&&(x=new En(x,e,null,n,i),o.push({event:x,listeners:y}),b?x.data=b:(b=Gn(n),b!==null&&(x.data=b)))),(b=Bn?qn(e,n):Jn(e,n))&&(x=kd(r,`onBeforeInput`),0<x.length&&(y=new En(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:y,listeners:x}),y.data=b)),gd(o,e,r,n,i)}xd(o,t)})}function Od(e,t,n){return{instance:e,listener:t,currentTarget:n}}function kd(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=en(e,n),i!=null&&r.unshift(Od(e,i,a)),i=en(e,t),i!=null&&r.push(Od(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Ad(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function jd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=en(n,a),l!=null&&o.unshift(Od(n,l,c))):i||(l=en(n,a),l!=null&&o.push(Od(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Md=/\r\n?/g,Nd=/\u0000|\uFFFD/g;function Pd(e){return(typeof e==`string`?e:``+e).replace(Md,`
|
|
10
|
+
`).replace(Nd,``)}function Fd(e,t){return t=Pd(t),Pd(e)===t}function Id(e,t,n,r,i,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Rt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Rt(e,``+r);break;case`className`:St(e,`class`,r);break;case`tabIndex`:St(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:St(e,n,r);break;case`style`:Vt(e,r,o);break;case`data`:if(t!==`object`){St(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Gt(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`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 o==`function`&&(n===`formAction`?(t!==`input`&&Id(e,t,`name`,i.name,i,null),Id(e,t,`formEncType`,i.formEncType,i,null),Id(e,t,`formMethod`,i.formMethod,i,null),Id(e,t,`formTarget`,i.formTarget,i,null)):(Id(e,t,`encType`,i.encType,i,null),Id(e,t,`method`,i.method,i,null),Id(e,t,`target`,i.target,i,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Gt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=Kt);break;case`onScroll`:r!=null&&Sd(`scroll`,e);break;case`onScrollEnd`:r!=null&&Sd(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(a(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(a(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=Gt(``+r),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`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):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`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Sd(`beforetoggle`,e),Sd(`toggle`,e),xt(e,`popover`,r);break;case`xlinkActuate`:Ct(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Ct(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Ct(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Ct(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Ct(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Ct(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Ct(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Ct(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Ct(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:xt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=Ut.get(n)||n,xt(e,n,r))}}function Ld(e,t,n,r,i,o){switch(n){case`style`:Vt(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(a(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(a(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Rt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Rt(e,``+r);break;case`onScroll`:r!=null&&Sd(`scroll`,e);break;case`onScrollEnd`:r!=null&&Sd(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=Kt);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!mt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(i=n.endsWith(`Capture`),t=n.slice(2,i?n.length-7:void 0),o=e[et]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,i),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,i);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):xt(e,n,r)}}}function Rd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Sd(`error`,e),Sd(`load`,e);var r=!1,i=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:i=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(a(137,t));default:Id(e,t,o,s,n,null)}}i&&Id(e,t,`srcSet`,n.srcSet,n,null),r&&Id(e,t,`src`,n.src,n,null);return;case`input`:Sd(`invalid`,e);var c=o=s=i=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:i=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(a(137,t));break;default:Id(e,t,r,d,n,null)}}Nt(e,o,c,l,u,s,i,!1);return;case`select`:for(i in Sd(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(i)&&(c=n[i],c!=null))switch(i){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Id(e,t,i,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Ft(e,!!r,n,!0):Ft(e,!!r,t,!1);return;case`textarea`:for(s in Sd(`invalid`,e),o=i=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:i=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(a(91));break;default:Id(e,t,s,c,n,null)}Lt(e,r,i,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Id(e,t,l,r,n,null)}return;case`dialog`:Sd(`beforetoggle`,e),Sd(`toggle`,e),Sd(`cancel`,e),Sd(`close`,e);break;case`iframe`:case`object`:Sd(`load`,e);break;case`video`:case`audio`:for(r=0;r<yd.length;r++)Sd(yd[r],e);break;case`image`:Sd(`error`,e),Sd(`load`,e);break;case`details`:Sd(`toggle`,e);break;case`embed`:case`source`:case`link`:Sd(`error`,e),Sd(`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(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(a(137,t));default:Id(e,t,u,r,n,null)}return;default:if(Ht(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Ld(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Id(e,t,c,r,n,null))}function zd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var i=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Id(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:i=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(a(137,t));break;default:m!==f&&Id(e,t,p,m,r,f)}}Mt(e,s,c,l,u,d,o,i);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Id(e,t,o,null,r,l)}for(i in r)if(o=r[i],l=n[i],r.hasOwnProperty(i)&&(o!=null||l!=null))switch(i){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Id(e,t,i,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Ft(e,!!n,n?[]:``,!1):Ft(e,!!n,t,!0)):Ft(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(i=n[c],n.hasOwnProperty(c)&&i!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Id(e,t,c,null,r,i)}for(s in r)if(i=r[s],o=n[s],r.hasOwnProperty(s)&&(i!=null||o!=null))switch(s){case`value`:p=i;break;case`defaultValue`:m=i;break;case`children`:break;case`dangerouslySetInnerHTML`:if(i!=null)throw Error(a(91));break;default:i!==o&&Id(e,t,s,i,r,o)}It(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Id(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Id(e,t,l,p,r,m)}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 g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Id(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(a(137,t));break;default:Id(e,t,u,p,r,m)}return;default:if(Ht(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Ld(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Ld(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Id(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Id(e,t,f,p,r,m)}function Bd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Vd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Bd(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Bd(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Hd=null,Ud=null;function Wd(e){return e.nodeType===9?e:e.ownerDocument}function Gd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Kd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function qd(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 Jd=null;function Yd(){var e=window.event;return e&&e.type===`popstate`?e===Jd?!1:(Jd=e,!0):(Jd=null,!1)}var Xd=typeof setTimeout==`function`?setTimeout:void 0,Zd=typeof clearTimeout==`function`?clearTimeout:void 0,Qd=typeof Promise==`function`?Promise:void 0,$d=typeof queueMicrotask==`function`?queueMicrotask:Qd===void 0?Xd:function(e){return Qd.resolve(null).then(e).catch(ef)};function ef(e){setTimeout(function(){throw e})}function tf(e){return e===`head`}function nf(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Pp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)_f(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,_f(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[ot]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&_f(e.ownerDocument.body);n=i}while(n);Pp(t)}function rf(e,t){var n=e;e=0;do{var r=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||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function af(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`:af(n),st(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function of(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[ot])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=ff(e.nextSibling),e===null)break}return null}function sf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=ff(e.nextSibling),e===null))return null;return e}function cf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=ff(e.nextSibling),e===null))return null;return e}function lf(e){return e.data===`$?`||e.data===`$~`}function uf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function df(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function ff(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 pf=null;function mf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return ff(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function hf(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 gf(e,t,n){switch(t=Wd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(a(452));return e;case`head`:if(e=t.head,!e)throw Error(a(453));return e;case`body`:if(e=t.body,!e)throw Error(a(454));return e;default:throw Error(a(451))}}function _f(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);st(e)}var vf=new Map,yf=new Set;function bf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var xf=R.d;R.d={f:Sf,r:Cf,D:Ef,C:Df,L:Of,m:kf,X:jf,S:Af,M:Mf};function Sf(){var e=xf.f(),t=xu();return e||t}function Cf(e){var t=lt(e);t!==null&&t.tag===5&&t.type===`form`?bs(t):xf.r(e)}var wf=typeof document>`u`?null:document;function Tf(e,t,n){var r=wf;if(r&&typeof t==`string`&&t){var i=jt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),yf.has(i)||(yf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Rd(t,`link`,e),ft(t),r.head.appendChild(t)))}}function Ef(e){xf.D(e),Tf(`dns-prefetch`,e,null)}function Df(e,t){xf.C(e,t),Tf(`preconnect`,e,t)}function Of(e,t,n){xf.L(e,t,n);var r=wf;if(r&&e&&t){var i=`link[rel="preload"][as="`+jt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+jt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+jt(n.imageSizes)+`"]`)):i+=`[href="`+jt(e)+`"]`;var a=i;switch(t){case`style`:a=Pf(e);break;case`script`:a=Rf(e)}vf.has(a)||(e=h({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),vf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Ff(a))||t===`script`&&r.querySelector(zf(a))||(t=r.createElement(`link`),Rd(t,`link`,e),ft(t),r.head.appendChild(t)))}}function kf(e,t){xf.m(e,t);var n=wf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+jt(r)+`"][href="`+jt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Rf(e)}if(!vf.has(a)&&(e=h({rel:`modulepreload`,href:e},t),vf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(zf(a)))return}r=n.createElement(`link`),Rd(r,`link`,e),ft(r),n.head.appendChild(r)}}}function Af(e,t,n){xf.S(e,t,n);var r=wf;if(r&&e){var i=dt(r).hoistableStyles,a=Pf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Ff(a)))s.loading=5;else{e=h({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=vf.get(a))&&Hf(e,n);var c=o=r.createElement(`link`);ft(c),Rd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Vf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function jf(e,t){xf.X(e,t);var n=wf;if(n&&e){var r=dt(n).hoistableScripts,i=Rf(e),a=r.get(i);a||(a=n.querySelector(zf(i)),a||(e=h({src:e,async:!0},t),(t=vf.get(i))&&Uf(e,t),a=n.createElement(`script`),ft(a),Rd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Mf(e,t){xf.M(e,t);var n=wf;if(n&&e){var r=dt(n).hoistableScripts,i=Rf(e),a=r.get(i);a||(a=n.querySelector(zf(i)),a||(e=h({src:e,async:!0,type:`module`},t),(t=vf.get(i))&&Uf(e,t),a=n.createElement(`script`),ft(a),Rd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Nf(e,t,n,r){var i=(i=te.current)?bf(i):null;if(!i)throw Error(a(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Pf(n.href),n=dt(i).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Pf(n.href);var o=dt(i).hoistableStyles,s=o.get(e);if(s||(i=i.ownerDocument||i,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=i.querySelector(Ff(e)))&&!o._p&&(s.instance=o,s.state.loading=5),vf.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},vf.set(e,n),o||Lf(i,e,n,s.state))),t&&r===null)throw Error(a(528,``));return s}if(t&&r!==null)throw Error(a(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Rf(n),n=dt(i).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(a(444,e))}}function Pf(e){return`href="`+jt(e)+`"`}function Ff(e){return`link[rel="stylesheet"][`+e+`]`}function If(e){return h({},e,{"data-precedence":e.precedence,precedence:null})}function Lf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Rd(t,`link`,n),ft(t),e.head.appendChild(t))}function Rf(e){return`[src="`+jt(e)+`"]`}function zf(e){return`script[async]`+e}function Bf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+jt(n.href)+`"]`);if(r)return t.instance=r,ft(r),r;var i=h({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),ft(r),Rd(r,`style`,i),Vf(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Pf(n.href);var o=e.querySelector(Ff(i));if(o)return t.state.loading|=4,t.instance=o,ft(o),o;r=If(n),(i=vf.get(i))&&Hf(r,i),o=(e.ownerDocument||e).createElement(`link`),ft(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Rd(o,`link`,r),t.state.loading|=4,Vf(o,n.precedence,e),t.instance=o;case`script`:return o=Rf(n.src),(i=e.querySelector(zf(o)))?(t.instance=i,ft(i),i):(r=n,(i=vf.get(o))&&(r=h({},n),Uf(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),ft(i),Rd(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(a(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Vf(r,n.precedence,e));return t.instance}function Vf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Hf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Uf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Wf=null;function Gf(e,t,n){if(Wf===null){var r=new Map,i=Wf=new Map;i.set(n,r)}else i=Wf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[ot]||a[$e]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Kf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function qf(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 Jf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Yf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Pf(r.href),a=t.querySelector(Ff(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Qf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,ft(a);return}a=t.ownerDocument||t,r=If(r),(i=vf.get(i))&&Hf(r,i),a=a.createElement(`link`),ft(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Rd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Qf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Xf=0;function Zf(e,t){return e.stylesheets&&e.count===0&&ep(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&ep(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Xf===0&&(Xf=62500*Vd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ep(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Xf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Qf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ep(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var $f=null;function ep(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,$f=new Map,t.forEach(tp,e),$f=null,Qf.call(e))}function tp(e,t){if(!(t.state.loading&4)){var n=$f.get(e);if(n)var r=n.get(null);else{n=new Map,$f.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=Qf.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var np={$$typeof:C,Provider:null,Consumer:null,_currentValue:z,_currentValue2:z,_threadCount:0};function rp(e,t,n,r,i,a,o,s,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=He(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=He(0),this.hiddenUpdates=He(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function ip(e,t,n,r,i,a,o,s,c,l,u,d){return e=new rp(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=ei(3,null,null,t),e.current=a,a.stateNode=e,t=ta(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Pa(a),e}function ap(e){return e?(e=Qr,e):Qr}function op(e,t,n,r,i,a){i=ap(i),r.context===null?r.context=i:r.pendingContext=i,r=Ia(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=La(e,r,t),n!==null&&(gu(n,e,t),Ra(n,e,t))}function sp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Z(e,t){sp(e,t),(e=e.alternate)&&sp(e,t)}function cp(e){if(e.tag===13||e.tag===31){var t=Yr(e,67108864);t!==null&&gu(t,e,67108864),Z(e,67108864)}}function lp(e){if(e.tag===13||e.tag===31){var t=mu();t=Je(t);var n=Yr(e,t);n!==null&&gu(n,e,t),Z(e,t)}}var up=!0;function dp(e,t,n,r){var i=L.T;L.T=null;var a=R.p;try{R.p=2,fp(e,t,n,r)}finally{R.p=a,L.T=i}}function Q(e,t,n,r){var i=L.T;L.T=null;var a=R.p;try{R.p=8,fp(e,t,n,r)}finally{R.p=a,L.T=i}}function fp(e,t,n,r){if(up){var i=pp(r);if(i===null)Dd(e,t,r,mp,n),wp(e,r);else if(Ep(i,e,t,n,r))r.stopPropagation();else if(wp(e,r),t&4&&-1<Cp.indexOf(e)){for(;i!==null;){var a=lt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Le(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Ae(o);s.entanglements[1]|=c,o&=~c}ad(a),!(Fl&6)&&(nu=ve()+500,od(0,!1))}}break;case 31:case 13:s=Yr(a,2),s!==null&&gu(s,a,2),xu(),Z(a,2)}if(a=pp(r),a===null&&Dd(e,t,r,mp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Dd(e,t,r,null,n)}}function pp(e){return e=Jt(e),hp(e)}var mp=null;function hp(e){if(mp=null,e=ct(e),e!==null){var t=c(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=u(t),e!==null)return e;e=null}else if(n===31){if(e=d(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 mp=e,null}function $(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(ye()){case be:return 2;case xe:return 8;case Se:case Ce:return 32;case we:return 268435456;default:return 32}default:return 32}}var gp=!1,_p=null,vp=null,yp=null,bp=new Map,xp=new Map,Sp=[],Cp=`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 wp(e,t){switch(e){case`focusin`:case`focusout`:_p=null;break;case`dragenter`:case`dragleave`:vp=null;break;case`mouseover`:case`mouseout`:yp=null;break;case`pointerover`:case`pointerout`:bp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:xp.delete(t.pointerId)}}function Tp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=lt(t),t!==null&&cp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ep(e,t,n,r,i){switch(t){case`focusin`:return _p=Tp(_p,e,t,n,r,i),!0;case`dragenter`:return vp=Tp(vp,e,t,n,r,i),!0;case`mouseover`:return yp=Tp(yp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return bp.set(a,Tp(bp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,xp.set(a,Tp(xp.get(a)||null,e,t,n,r,i)),!0}return!1}function Dp(e){var t=ct(e.target);if(t!==null){var n=c(t);if(n!==null){if(t=n.tag,t===13){if(t=u(n),t!==null){e.blockedOn=t,Ze(e.priority,function(){lp(n)});return}}else if(t===31){if(t=d(n),t!==null){e.blockedOn=t,Ze(e.priority,function(){lp(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 Op(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=pp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);qt=r,n.target.dispatchEvent(r),qt=null}else return t=lt(n),t!==null&&cp(t),e.blockedOn=n,!1;t.shift()}return!0}function kp(e,t,n){Op(e)&&n.delete(t)}function Ap(){gp=!1,_p!==null&&Op(_p)&&(_p=null),vp!==null&&Op(vp)&&(vp=null),yp!==null&&Op(yp)&&(yp=null),bp.forEach(kp),xp.forEach(kp)}function jp(e,n){e.blockedOn===n&&(e.blockedOn=null,gp||(gp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Ap)))}var Mp=null;function Np(e){Mp!==e&&(Mp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Mp===e&&(Mp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(hp(r||n)===null)continue;break}var a=lt(n);a!==null&&(e.splice(t,3),t-=3,vs(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Pp(e){function t(t){return jp(t,e)}_p!==null&&jp(_p,e),vp!==null&&jp(vp,e),yp!==null&&jp(yp,e),bp.forEach(t),xp.forEach(t);for(var n=0;n<Sp.length;n++){var r=Sp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Sp.length&&(n=Sp[0],n.blockedOn===null);)Dp(n),n.blockedOn===null&&Sp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[et]||null;if(typeof a==`function`)o||Np(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[et]||null)s=o.formAction;else if(hp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Np(n)}}}function Fp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Ip(e){this._internalRoot=e}Lp.prototype.render=Ip.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(a(409));var n=t.current;op(n,mu(),e,t,null,null)},Lp.prototype.unmount=Ip.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;op(e.current,2,null,e,null,null),xu(),t[tt]=null}};function Lp(e){this._internalRoot=e}Lp.prototype.unstable_scheduleHydration=function(e){if(e){var t=Xe();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Sp.length&&t!==0&&t<Sp[n].priority;n++);Sp.splice(n,0,e),n===0&&Dp(e)}};var Rp=r.version;if(Rp!==`19.2.7`)throw Error(a(527,Rp,`19.2.7`));R.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(a(188)):(e=Object.keys(e).join(`,`),Error(a(268,e)));return e=p(t),e=e===null?null:m(e),e=e===null?null:e.stateNode,e};var zp={bundleType:0,version:`19.2.7`,rendererPackageName:`react-dom`,currentDispatcherRef:L,reconcilerVersion:`19.2.7`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Bp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Bp.isDisabled&&Bp.supportsFiber)try{De=Bp.inject(zp),Oe=Bp}catch{}}e.hydrateRoot=function(e,t,n){if(!o(e))throw Error(a(299));var r=!1,i=``,s=Vs,c=Hs,l=Us,u=null;return n!=null&&(!0===n.unstable_strictMode&&(r=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(s=n.onUncaughtError),n.onCaughtError!==void 0&&(c=n.onCaughtError),n.onRecoverableError!==void 0&&(l=n.onRecoverableError),n.formState!==void 0&&(u=n.formState)),t=ip(e,1,!0,t,n??null,r,i,u,s,c,l,Fp),t.context=ap(null),n=t.current,r=mu(),r=Je(r),i=Ia(r),i.callback=null,La(n,i,r),n=r,t.current.lanes=n,Ue(t,n),ad(t),e[tt]=t.current,Td(e),new Lp(t)}})),d=i(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=u()})),f=`__TSS_CONTEXT`,p=Symbol.for(`TSS_SERVER_FUNCTION`),m=`application/x-tss-framed`,h={JSON:0,CHUNK:1,END:2,ERROR:3};`${m}`;var g=/;\s*v=(\d+)/;function _(e){let t=e.match(g);return t?parseInt(t[1],10):void 0}function v(e){let t=_(e);if(t!==void 0&&t!==1)throw Error(`Incompatible framed protocol version: server=${t}, client=1. Please ensure client and server are using compatible versions.`)}var y=()=>window.__TSS_START_OPTIONS__;function b(e){return e[e.length-1]}function x(e){return typeof e==`function`}function S(e,t){return x(e)?e(t):e}var C=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;function E(e){for(let t in e)if(C.call(e,t))return!0;return!1}var D=()=>Object.create(null),O=(e,t)=>k(e,t,D);function k(e,t,n=()=>({}),r=0){if(e===t)return e;if(r>500)return t;let i=t,a=N(e)&&N(i);if(!a&&!(j(e)&&j(i)))return i;let o=a?e:A(e);if(!o)return i;let s=a?i:A(i);if(!s)return i;let c=o.length,l=s.length,u=a?Array(l):n(),d=0;for(let t=0;t<l;t++){let o=a?t:s[t],l=e[o],f=i[o];if(l===f){u[o]=l,(a?t<c:C.call(e,o))&&d++;continue}if(l===null||f===null||typeof l!=`object`||typeof f!=`object`){u[o]=f;continue}let p=k(l,f,n,r+1);u[o]=p,p===l&&d++}return c===l&&d===c?e:u}function A(e){let t=Object.getOwnPropertyNames(e);for(let n of t)if(!w.call(e,n))return!1;let n=Object.getOwnPropertySymbols(e);if(n.length===0)return t;let r=t;for(let t of n){if(!w.call(e,t))return!1;r.push(t)}return r}function j(e){if(!M(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!M(n)||!n.hasOwnProperty(`isPrototypeOf`))}function M(e){return Object.prototype.toString.call(e)===`[object Object]`}function N(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function P(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0,i=e.length;r<i;r++)if(!P(e[r],t[r],n))return!1;return!0}if(j(e)&&j(t)){let r=n?.ignoreUndefined??!0;if(n?.partial){for(let i in t)if((!r||t[i]!==void 0)&&!P(e[i],t[i],n))return!1;return!0}let i=0;if(!r)i=Object.keys(e).length;else for(let t in e)e[t]!==void 0&&i++;let a=0;for(let o in t)if((!r||t[o]!==void 0)&&(a++,a>i||!P(e[o],t[o],n)))return!1;return i===a}return!1}function F(e){let t,n,r=new Promise((e,r)=>{t=e,n=r});return r.status=`pending`,r.resolve=n=>{r.status=`resolved`,r.value=n,t(n),e?.(n)},r.reject=e=>{r.status=`rejected`,n(e)},r}function I(e){return typeof e?.message==`string`?e.message.startsWith(`Failed to fetch dynamically imported module`)||e.message.startsWith(`error loading dynamically imported module`)||e.message.startsWith(`Importing a module script failed`):!1}function L(e){return!!(e&&typeof e==`object`&&typeof e.then==`function`)}function R(e){return e.replace(/[\x00-\x1f\x7f]/g,``)}function z(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,e=>{try{return decodeURI(e)}catch{return e}})}return R(t)}var B=[`http:`,`https:`,`mailto:`,`tel:`];function V(e,t){if(!e)return!1;try{let n=new URL(e);return!t.has(n.protocol)}catch{return!1}}var H={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},U=/[&><\u2028\u2029]/g;function W(e){return e.replace(U,e=>H[e])}function G(e){if(!e||!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith(`//`))return{path:e,handledProtocolRelativeURL:!1};let t=/%25|%5C/gi,n=0,r=``,i;for(;(i=t.exec(e))!==null;)r+=z(e.slice(n,i.index))+i[0],n=t.lastIndex;r+=z(n?e.slice(n):e);let a=!1;return r.startsWith(`//`)&&(a=!0,r=`/`+r.replace(/^\/+/,``)),{path:r,handledProtocolRelativeURL:a}}function ee(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function te(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function K(){throw Error(`Invariant failed`)}function ne(e){let t=new Map,n,r,i=e=>{e.next&&(e.prev?(e.prev.next=e.next,e.next.prev=e.prev,e.next=void 0,r&&(r.next=e,e.prev=r)):(e.next.prev=void 0,n=e.next,e.next=void 0,r&&(e.prev=r,r.next=e)),r=e)};return{get(e){let n=t.get(e);if(n)return i(n),n.value},set(a,o){if(t.size>=e&&n){let e=n;t.delete(e.key),e.next&&(n=e.next,e.next.prev=void 0),e===r&&(r=void 0)}let s=t.get(a);if(s)s.value=o,i(s);else{let e={key:a,value:o,prev:r};r&&(r.next=e),r=e,n||=e,t.set(a,e)}},clear(){t.clear(),n=void 0,r=void 0}}}var re=4,ie=5;function ae(e){let t=e.indexOf(`{`);if(t===-1)return null;let n=e.indexOf(`}`,t);return n===-1||t+1>=e.length?null:[t,n]}function oe(e,t,n=new Uint16Array(6)){let r=e.indexOf(`/`,t),i=r===-1?e.length:r,a=e.substring(t,i);if(!a||!a.includes(`$`))return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n;if(a===`$`){let r=e.length;return n[0]=2,n[1]=t,n[2]=t,n[3]=r,n[4]=r,n[5]=r,n}if(a.charCodeAt(0)===36)return n[0]=1,n[1]=t,n[2]=t+1,n[3]=i,n[4]=i,n[5]=i,n;let o=ae(a);if(o){let[r,s]=o,c=a.charCodeAt(r+1);if(c===45){if(r+2<a.length&&a.charCodeAt(r+2)===36){let e=r+3,a=s;if(e<a)return n[0]=3,n[1]=t+r,n[2]=t+e,n[3]=t+a,n[4]=t+s+1,n[5]=i,n}}else if(c===36){let a=r+1,o=r+2;return o===s?(n[0]=2,n[1]=t+r,n[2]=t+a,n[3]=t+o,n[4]=t+s+1,n[5]=e.length,n):(n[0]=1,n[1]=t+r,n[2]=t+o,n[3]=t+s,n[4]=t+s+1,n[5]=i,n)}}return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n}function se(e,t,n,r,i,a,o){o?.(n);let s=r;{let r=n.fullPath??n.from,o=r.length,c=n.options?.caseSensitive??e,l=n.options?.params?.parse??n.options?.parseParams;for(;s<o;){let e=oe(r,s,t),o,u=s,d=e[5];switch(s=d+1,a++,e[0]){case 0:{let t=r.substring(e[2],e[3]);if(c){let e=i.static?.get(t);if(e)o=e;else{i.static??=new Map;let e=ue(n.fullPath??n.from);e.parent=i,e.depth=a,o=e,i.static.set(t,e)}}else{let e=t.toLowerCase(),r=i.staticInsensitive?.get(e);if(r)o=r;else{i.staticInsensitive??=new Map;let t=ue(n.fullPath??n.from);t.parent=i,t.depth=a,o=t,i.staticInsensitive.set(e,t)}}break}case 1:{let t=r.substring(u,e[1]),s=r.substring(e[4],d),f=c&&!!(t||s),p=t?f?t:t.toLowerCase():void 0,m=s?f?s:s.toLowerCase():void 0,h=!l&&i.dynamic?.find(e=>!e.parse&&e.caseSensitive===f&&e.prefix===p&&e.suffix===m);if(h)o=h;else{let e=de(1,n.fullPath??n.from,f,p,m);o=e,e.depth=a,e.parent=i,i.dynamic??=[],i.dynamic.push(e)}break}case 3:{let t=r.substring(u,e[1]),s=r.substring(e[4],d),f=c&&!!(t||s),p=t?f?t:t.toLowerCase():void 0,m=s?f?s:s.toLowerCase():void 0,h=!l&&i.optional?.find(e=>!e.parse&&e.caseSensitive===f&&e.prefix===p&&e.suffix===m);if(h)o=h;else{let e=de(3,n.fullPath??n.from,f,p,m);o=e,e.parent=i,e.depth=a,i.optional??=[],i.optional.push(e)}break}case 2:{let t=r.substring(u,e[1]),s=r.substring(e[4],d),l=c&&!!(t||s),f=t?l?t:t.toLowerCase():void 0,p=s?l?s:s.toLowerCase():void 0,m=de(2,n.fullPath??n.from,l,f,p);o=m,m.parent=i,m.depth=a,i.wildcard??=[],i.wildcard.push(m)}}i=o}if(l&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf(`/`)+1)===95){let e=ue(n.fullPath??n.from);e.kind=ie,e.parent=i,a++,e.depth=a,i.pathless??=[],i.pathless.push(e),i=e}let u=(n.path||!n.children)&&!n.isRoot;if(u&&r.endsWith(`/`)){let e=ue(n.fullPath??n.from);e.kind=re,e.parent=i,a++,e.depth=a,i.index=e,i=e}i.parse=l??null,i.priority=n.options?.params?.priority??0,u&&!i.route&&(i.route=n,i.fullPath=n.fullPath??n.from)}if(n.children)for(let r of n.children)se(e,t,r,s,i,a,o)}function ce(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function le(e){if(e.pathless)for(let t of e.pathless)le(t);if(e.static)for(let t of e.static.values())le(t);if(e.staticInsensitive)for(let t of e.staticInsensitive.values())le(t);if(e.dynamic?.length){e.dynamic.sort(ce);for(let t of e.dynamic)le(t)}if(e.optional?.length){e.optional.sort(ce);for(let t of e.optional)le(t)}if(e.wildcard?.length){e.wildcard.sort(ce);for(let t of e.wildcard)le(t)}}function ue(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,priority:0}}function de(e,t,n,r,i){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,priority:0,caseSensitive:n,prefix:r,suffix:i}}function fe(e,t){let n=ue(`/`),r=new Uint16Array(6);for(let t of e)se(!1,r,t,1,n,0);le(n),t.masksTree=n,t.flatCache=ne(1e3)}function pe(e,t){e||=`/`;let n=t.flatCache.get(e);if(n)return n;let r=ve(e,t.masksTree);return t.flatCache.set(e,r),r}function me(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=ue(`/`),se(t,new Uint16Array(6),{from:e},1,o,0),i.singleCache.set(a,o)),ve(r,o,n)}function he(e,t,n=!1){let r=n?e:`nofuzz\0${e}`,i=t.matchCache.get(r);if(i!==void 0)return i;e||=`/`;let a;try{a=ve(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=be(a.route)),t.matchCache.set(r,a),a}function ge(e){return e===`/`?e:e.replace(/\/{1,}$/,``)}function _e(e,t=!1,n){let r=ue(e.fullPath),i=new Uint16Array(6),a={},o={},s=0;return se(t,i,e,1,r,0,e=>{if(n?.(e,s),e.id in a&&K(),a[e.id]=e,s!==0&&e.path){let t=ge(e.fullPath);(!o[t]||e.fullPath.endsWith(`/`))&&(o[t]=e)}s++}),le(r),{processedTree:{segmentTree:r,singleCache:ne(1e3),matchCache:ne(1e3),flatCache:null,masksTree:null},routesById:a,routesByPath:o}}function ve(e,t,n=!1){let r=e.split(`/`),i=Se(e,r,t,n);if(!i)return null;let[a]=ye(e,r,i);return{route:i.node.route,rawParams:a}}function ye(e,t,n){let r=xe(n.node),i=null,a=Object.create(null),o=n.extract?.part??0,s=n.extract?.node??0,c=n.extract?.path??0,l=n.extract?.segment??0;for(;s<r.length;o++,s++,c++,l++){let u=r[s];if(u.kind===re)break;if(u.kind===ie){l--,o--,c--;continue}let d=t[o],f=c;if(d&&(c+=d.length),u.kind===1){i??=n.node.fullPath.split(`/`);let e=i[l],t=u.prefix?.length??0;if(e.charCodeAt(t)===123){let n=u.suffix?.length??0,r=e.substring(t+2,e.length-n-1),i=d.substring(t,d.length-n);a[r]=decodeURIComponent(i)}else{let t=e.substring(1);a[t]=decodeURIComponent(d)}}else if(u.kind===3){if(n.skipped&1<<s){o--,c=f-1;continue}i??=n.node.fullPath.split(`/`);let e=i[l],t=u.prefix?.length??0,r=u.suffix?.length??0,p=e.substring(t+3,e.length-r-1),m=u.suffix||u.prefix?d.substring(t,d.length-r):d;m&&(a[p]=decodeURIComponent(m))}else if(u.kind===2){let t=u,n=e.substring(f+(t.prefix?.length??0),e.length-(t.suffix?.length??0)),r=decodeURIComponent(n);a[`*`]=r,a._splat=r;break}}return n.rawParams&&Object.assign(a,n.rawParams),[a,{part:o,node:s,path:c,segment:l}]}function be(e){let t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function xe(e){let t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function Se(e,t,n,r){if(e===`/`&&n.index)return{node:n.index,skipped:0};let i=!b(t),a=i&&e!==`/`,o=t.length-+!!i,s=[{node:n,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}],c=null,l=null;for(;s.length;){let n=s.pop(),{node:i,index:u,skipped:d,depth:f,statics:p,dynamics:m,optionals:h}=n,{extract:g,rawParams:_}=n;if(i.kind===2&&i.route&&!Ee(l,n))continue;if(i.parse){if(!Te(e,t,n))continue;_=n.rawParams,g=n.extract}r&&i.route&&i.kind!==re&&Ee(c,n)&&(c=n);let v=u===o;if(v&&(i.route&&(!a||i.kind===re||i.kind===2)&&Ee(l,n)&&(l=n),!i.optional&&!i.wildcard&&!i.index&&!i.pathless))continue;let y=v?void 0:t[u],b;if(v&&i.index){let n={node:i.index,index:u,skipped:d,depth:f+1,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_},r=!0;if(i.index.parse&&(Te(e,t,n)||(r=!1)),r){if(!m&&!h&&!d&&we(p,o))return n;Ee(l,n)&&(l=n)}}if(i.wildcard)for(let e=i.wildcard.length-1;e>=0;e--){let n=i.wildcard[e],{prefix:r,suffix:a}=n;if(!(r&&(v||!(n.caseSensitive?y:b??=y.toLowerCase()).startsWith(r)))){if(a){if(v)continue;let e=t.slice(u).join(`/`).slice(-a.length);if((n.caseSensitive?e:e.toLowerCase())!==a)continue}s.push({node:n,index:o,skipped:d,depth:f+1,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_})}}if(i.optional){let e=d|1<<f,t=f+1;for(let n=i.optional.length-1;n>=0;n--){let r=i.optional[n];s.push({node:r,index:u,skipped:e,depth:t,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_})}if(!v)for(let e=i.optional.length-1;e>=0;e--){let n=i.optional[e],{prefix:r,suffix:a}=n;if(r||a){let e=n.caseSensitive?y:b??=y.toLowerCase();if(r&&!e.startsWith(r)||a&&!e.endsWith(a))continue}s.push({node:n,index:u+1,skipped:d,depth:t,statics:p,dynamics:m,optionals:h+Ce(o,u),extract:g,rawParams:_})}}if(!v&&i.dynamic&&y)for(let e=i.dynamic.length-1;e>=0;e--){let t=i.dynamic[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?y:b??=y.toLowerCase();if(n&&!e.startsWith(n)||r&&!e.endsWith(r))continue}s.push({node:t,index:u+1,skipped:d,depth:f+1,statics:p,dynamics:m+Ce(o,u),optionals:h,extract:g,rawParams:_})}if(!v&&i.staticInsensitive){let e=i.staticInsensitive.get(b??=y.toLowerCase());e&&s.push({node:e,index:u+1,skipped:d,depth:f+1,statics:p+Ce(o,u),dynamics:m,optionals:h,extract:g,rawParams:_})}if(!v&&i.static){let e=i.static.get(y);e&&s.push({node:e,index:u+1,skipped:d,depth:f+1,statics:p+Ce(o,u),dynamics:m,optionals:h,extract:g,rawParams:_})}if(i.pathless){let e=f+1;for(let t=i.pathless.length-1;t>=0;t--){let n=i.pathless[t];s.push({node:n,index:u,skipped:d,depth:e,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_})}}}if(l)return l;if(r&&c){let n=c.index;for(let e=0;e<c.index;e++)n+=t[e].length;let r=n===e.length?`/`:e.slice(n);return c.rawParams??=Object.create(null),c.rawParams[`**`]=decodeURIComponent(r),c}return null}function Ce(e,t){return 2**(e-t-1)}function we(e,t){return e===2**(t-1)-1}function Te(e,t,n){let r,i;try{[r,i]=ye(e,t,n)}catch{return null}if(n.rawParams=r,n.extract=i,!n.node.parse)return!0;try{if(n.node.parse(r)===!1)return null}catch{}return!0}function Ee(e,t){return e?t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===re)>(e.node.kind===re)||t.node.kind===re==(e.node.kind===re)&&t.depth>e.depth))):!0}function De(e){return Oe(e.filter(e=>e!==void 0).join(`/`))}function Oe(e){return e.replace(/\/{2,}/g,`/`)}function ke(e){return e===`/`?e:e.replace(/^\/{1,}/,``)}function Ae(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/{1,}$/,``):e}function je(e){return Ae(ke(e))}function Me(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function Ne(e,t,n){return Me(e,n)===Me(t,n)}function Pe({base:e,to:t,trailingSlash:n=`never`,cache:r}){let i=t.startsWith(`/`),a=!i&&t===`.`,o;if(r){o=i?t:a?e:e+`\0`+t;let n=r.get(o);if(n)return n}let s;if(a)s=e.split(`/`);else if(i)s=t.split(`/`);else{for(s=e.split(`/`);s.length>1&&b(s)===``;)s.pop();let n=t.split(`/`);for(let e=0,t=n.length;e<t;e++){let r=n[e];r===``?e?e===t-1&&s.push(r):s=[r]:r===`..`?s.pop():r===`.`||s.push(r)}}s.length>1&&(b(s)===``?n===`never`&&s.pop():n===`always`&&s.push(``));let c=Oe(s.join(`/`))||`/`;return o&&r&&r.set(o,c),c}function Fe(e){let t=new Map(e.map(e=>[encodeURIComponent(e),e])),n=Array.from(t.keys()).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),r=new RegExp(n,`g`);return e=>e.replace(r,e=>t.get(e)??e)}function Ie(e,t,n){let r=t[e];return typeof r==`string`?e===`_splat`?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split(`/`).map(e=>Re(e,n)).join(`/`):Re(r,n):r}function Le({path:e,params:t,decoder:n,...r}){let i=!1,a=Object.create(null);if(!e||e===`/`)return{interpolatedPath:`/`,usedParams:a,isMissingParams:i};if(!e.includes(`$`))return{interpolatedPath:e,usedParams:a,isMissingParams:i};let o=e.length,s=0,c,l=``;for(;s<o;){let r=s;c=oe(e,r,c);let o=c[5];if(s=o+1,r===o)continue;let u=c[0];if(u===0){l+=`/`+e.substring(r,o);continue}if(u===2){let s=t._splat;a._splat=s,a[`*`]=s;let u=e.substring(r,c[1]),d=e.substring(c[4],o);if(!s){i=!0,(u||d)&&(l+=`/`+u+d);continue}let f=Ie(`_splat`,t,n);l+=`/`+u+f+d;continue}if(u===1){let s=e.substring(c[2],c[3]);!i&&!(s in t)&&(i=!0),a[s]=t[s];let u=e.substring(r,c[1]),d=e.substring(c[4],o),f=Ie(s,t,n)??`undefined`;l+=`/`+u+f+d;continue}if(u===3){let i=e.substring(c[2],c[3]),s=t[i];if(s==null)continue;a[i]=s;let u=e.substring(r,c[1]),d=e.substring(c[4],o),f=Ie(i,t,n)??``;l+=`/`+u+f+d;continue}}return e.endsWith(`/`)&&(l+=`/`),{usedParams:a,interpolatedPath:l||`/`,isMissingParams:i}}function Re(e,t){let n=encodeURIComponent(e);return t?.(n)??n}function ze(e){return e?.isNotFound===!0}function Be(e,t=String){let n=new URLSearchParams;for(let r in e){let i=e[r];i!==void 0&&n.set(r,t(i))}return n.toString()}function Ve(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function He(e){let t=new URLSearchParams(e),n=Object.create(null);for(let[e,r]of t.entries()){let t=n[e];t==null?n[e]=Ve(r):Array.isArray(t)?t.push(Ve(r)):n[e]=[t,Ve(r)]}return n}var Ue=Ge(JSON.parse),We=Ke(JSON.stringify,JSON.parse);function Ge(e){return t=>{t[0]===`?`&&(t=t.substring(1));let n=He(t);for(let t in n){let r=n[t];if(typeof r==`string`)try{n[t]=e(r)}catch{}}return n}}function Ke(e,t){let n=typeof t==`function`;function r(r){if(typeof r==`object`&&r)try{return e(r)}catch{}else if(n&&typeof r==`string`)try{return t(r),e(r)}catch{}return r}return e=>{let t=Be(e,r);return t?`?${t}`:``}}var qe=`__root__`;function Je(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&typeof e.href==`string`)try{new URL(e.href),e.reloadDocument=!0}catch{}let t=new Headers(e.headers);e.href&&t.get(`Location`)===null&&t.set(`Location`,e.href);let n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function Ye(e){return e instanceof Response&&!!e.options}function Xe(e){if(typeof e==`object`&&e&&e.isSerializedRedirect)return Je(e)}var Ze=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},Qe=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),$e=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),et=(e,t,n=!0)=>{let r={...e.router.options.context??{}},i=n?t:t-1;for(let t=0;t<=i;t++){let n=e.matches[t];if(!n)continue;let i=e.router.getMatch(n.id);i&&Object.assign(r,i.__routeContext,i.__beforeLoadContext)}return r},tt=(e,t)=>{if(!e.matches.length)return;let n=t.routeId,r=e.matches.findIndex(t=>t.routeId===e.router.routeTree.id),i=r>=0?r:0,a=n?e.matches.findIndex(e=>e.routeId===n):e.firstBadMatchIndex??e.matches.length-1;a<0&&(a=i);for(let t=a;t>=0;t--){let n=e.matches[t];if(e.router.looseRoutesById[n.routeId].options.notFoundComponent)return t}return n?a:i},nt=(e,t,n)=>{if(!(!Ye(n)&&!ze(n)))throw Ye(n)&&n.redirectHandled&&!n.options.reloadDocument?n:(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=n,e.updateMatch(t.id,r=>({...r,status:Ye(n)?`redirected`:ze(n)?`notFound`:r.status===`pending`?`success`:r.status,context:et(e,t.index),isFetching:!1,error:n})),ze(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),Ye(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n)),n)},rt=(e,t)=>{let n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},it=(e,t,n)=>{let r=et(e,n);e.updateMatch(t,e=>({...e,context:r}))},at=(e,t,n)=>{let{id:r,routeId:i}=e.matches[t],a=e.router.looseRoutesById[i];if(n instanceof Promise)throw n;e.firstBadMatchIndex??=t,nt(e,e.router.getMatch(r),n);try{a.options.onError?.(n)}catch(t){n=t,nt(e,e.router.getMatch(r),n)}e.updateMatch(r,e=>(e._nonReactive.beforeLoadPromise?.resolve(),e._nonReactive.beforeLoadPromise=void 0,e._nonReactive.loadPromise?.resolve(),{...e,error:n,status:`error`,isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!Ye(n)&&!ze(n)&&(e.serialError??=n)},ot=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;let i=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!$e(e,t)&&(n.options.loader||n.options.beforeLoad||_t(n))&&typeof i==`number`&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){let t=setTimeout(()=>{Ze(e)},i);r._nonReactive.pendingTimeout=t}},st=(e,t,n)=>{let r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;ot(e,t,n,r);let i=()=>{let n=e.router.getMatch(t);n.preload&&(n.status===`redirected`||n.status===`notFound`)&&nt(e,n,n.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},ct=(e,t,n,r)=>{let i=e.router.getMatch(t),a=i._nonReactive.loadPromise;i._nonReactive.loadPromise=F(()=>{a?.resolve(),a=void 0});let{paramsError:o,searchError:s}=i;o&&at(e,n,o),s&&at(e,n,s),ot(e,t,r,i);let c=new AbortController,l=!1,u=()=>{l||(l=!0,e.updateMatch(t,e=>({...e,isFetching:`beforeLoad`,fetchCount:e.fetchCount+1,abortController:c})))},d=()=>{i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,e=>({...e,isFetching:!1}))};if(!r.options.beforeLoad){e.router.batch(()=>{u(),d()});return}i._nonReactive.beforeLoadPromise=F();let f={...et(e,n,!1),...i.__routeContext},{search:p,params:m,cause:h}=i,g=$e(e,t),_={search:p,abortController:c,params:m,preload:g,context:f,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:g?`preload`:h,matches:e.matches,routeId:r.id,...e.router.options.additionalContext},v=r=>{if(r===void 0){e.router.batch(()=>{u(),d()});return}(Ye(r)||ze(r))&&(u(),at(e,n,r)),e.router.batch(()=>{u(),e.updateMatch(t,e=>({...e,__beforeLoadContext:r})),d()})},y;try{if(y=r.options.beforeLoad(_),L(y))return u(),y.catch(t=>{at(e,n,t)}).then(v)}catch(t){u(),at(e,n,t)}v(y)},lt=(e,t)=>{let{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],a=()=>s(),o=()=>ct(e,n,t,i),s=()=>{if(rt(e,n))return;let t=st(e,n,i);return L(t)?t.then(o):o()};return a()},ut=(e,t,n)=>{let r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;let i={ssr:e.router.options.ssr,matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(i),n.options.scripts?.(i),n.options.headers?.(i)]).then(([e,t,n])=>({meta:e?.meta,links:e?.links,headScripts:e?.scripts,headers:n,scripts:t,styles:e?.styles}))},dt=(e,t,n,r,i)=>{let a=t[r-1],{params:o,loaderDeps:s,abortController:c,cause:l}=e.router.getMatch(n),u=et(e,r),d=$e(e,n);return{params:o,deps:s,preload:!!d,parentMatchPromise:a,abortController:c,context:u,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),cause:d?`preload`:l,route:i,...e.router.options.additionalContext}},ft=async(e,t,n,r,i)=>{try{let a=e.router.getMatch(n);try{gt(i);let o=i.options.loader,s=typeof o==`function`?o:o?.handler,c=s?.(dt(e,t,n,r,i)),l=!!s&&L(c);if((l||i._lazyPromise||i._componentsPromise||i.options.head||i.options.scripts||i.options.headers||a._nonReactive.minPendingPromise)&&e.updateMatch(n,e=>({...e,isFetching:`loader`})),s){let t=l?await c:c;nt(e,e.router.getMatch(n),t),t!==void 0&&e.updateMatch(n,e=>({...e,loaderData:t}))}i._lazyPromise&&await i._lazyPromise;let u=a._nonReactive.minPendingPromise;u&&await u,i._componentsPromise&&await i._componentsPromise,e.updateMatch(n,t=>({...t,error:void 0,context:et(e,r),status:`success`,isFetching:!1,updatedAt:Date.now()}))}catch(t){let o=t;if(o?.name===`AbortError`){if(a.abortController.signal.aborted){a._nonReactive.loaderPromise?.resolve(),a._nonReactive.loaderPromise=void 0;return}e.updateMatch(n,t=>({...t,status:t.status===`pending`?`success`:t.status,isFetching:!1,context:et(e,r)}));return}let s=a._nonReactive.minPendingPromise;s&&await s,ze(t)&&await i.options.notFoundComponent?.preload?.(),nt(e,e.router.getMatch(n),t);try{i.options.onError?.(t)}catch(t){o=t,nt(e,e.router.getMatch(n),t)}!Ye(o)&&!ze(o)&&await gt(i,[`errorComponent`]),e.updateMatch(n,t=>({...t,error:o,context:et(e,r),status:`error`,isFetching:!1}))}}catch(t){let r=e.router.getMatch(n);r&&(r._nonReactive.loaderPromise=void 0),nt(e,r,t)}},pt=async(e,t,n)=>{async function r(r,a,c,l,d){let f=Date.now()-a.updatedAt,p=r?d.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:d.options.staleTime??e.router.options.defaultStaleTime??0,m=d.options.shouldReload,h=typeof m==`function`?m(dt(e,t,i,n,d)):m,{status:g,invalid:_}=l,v=f>=p&&(!!e.forceStaleReload||l.cause===`enter`||c!==void 0&&c!==l.id);o=g===`success`&&(_||(h??v)),r&&d.options.preload===!1||(o&&!e.sync&&u?(s=!0,(async()=>{try{await ft(e,t,i,n,d);let r=e.router.getMatch(i);r._nonReactive.loaderPromise?.resolve(),r._nonReactive.loadPromise?.resolve(),r._nonReactive.loaderPromise=void 0,r._nonReactive.loadPromise=void 0}catch(t){Ye(t)&&await e.router.navigate(t.options)}})()):g!==`success`||o?await ft(e,t,i,n,d):it(e,i,n))}let{id:i,routeId:a}=e.matches[n],o=!1,s=!1,c=e.router.looseRoutesById[a],l=c.options.loader,u=((typeof l==`function`?void 0:l?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!==`blocking`;if(rt(e,i)){if(!e.router.getMatch(i))return e.matches[n];it(e,i,n)}else{let t=e.router.getMatch(i),o=e.router.stores.matchesId.get()[n],s=(o&&e.router.stores.matchStores.get(o)||null)?.routeId===a?o:e.router.stores.matches.get().find(e=>e.routeId===a)?.id,l=$e(e,i);if(t._nonReactive.loaderPromise){if(t.status===`success`&&!e.sync&&!t.preload&&u)return t;await t._nonReactive.loaderPromise;let n=e.router.getMatch(i),a=n._nonReactive.error||n.error;a&&nt(e,n,a),n.status===`pending`&&await r(l,t,s,n,c)}else{let n=l&&!e.router.stores.matchStores.has(i),a=e.router.getMatch(i);a._nonReactive.loaderPromise=F(),n!==a.preload&&e.updateMatch(i,e=>({...e,preload:n})),await r(l,t,s,a,c)}}let d=e.router.getMatch(i);s||(d._nonReactive.loaderPromise?.resolve(),d._nonReactive.loadPromise?.resolve(),d._nonReactive.loadPromise=void 0),clearTimeout(d._nonReactive.pendingTimeout),d._nonReactive.pendingTimeout=void 0,s||(d._nonReactive.loaderPromise=void 0),d._nonReactive.dehydrated=void 0;let f=s?d.isFetching:!1;return f!==d.isFetching||d.invalid!==!1?(e.updateMatch(i,e=>({...e,isFetching:f,invalid:!1})),e.router.getMatch(i)):d};async function mt(e){let t=e,n=[];Qe(t.router)&&Ze(t);let r;for(let e=0;e<t.matches.length;e++){try{let n=lt(t,e);L(n)&&await n}catch(e){if(Ye(e))throw e;if(ze(e))r=e;else if(!t.preload)throw e;break}if(t.serialError||t.firstBadMatchIndex!=null)break}let i=t.firstBadMatchIndex??t.matches.length,a=r&&!t.preload?tt(t,r):void 0,o=r&&t.preload?0:a===void 0?i:Math.min(a+1,i),s,c;for(let e=0;e<o;e++)n.push(pt(t,n,e));try{await Promise.all(n)}catch{let e=await Promise.allSettled(n);for(let t of e){if(t.status!==`rejected`)continue;let e=t.reason;if(Ye(e))throw e;ze(e)?s??=e:c??=e}if(c!==void 0)throw c}let l=s??(r&&!t.preload?r:void 0),u=t.firstBadMatchIndex===void 0?t.matches.length-1:t.firstBadMatchIndex;if(!l&&r&&t.preload)return t.matches;if(l){let e=tt(t,l);e===void 0&&K();let n=t.matches[e],r=t.router.looseRoutesById[n.routeId],i=t.router.options?.defaultNotFoundComponent;!r.options.notFoundComponent&&i&&(r.options.notFoundComponent=i),l.routeId=n.routeId;let a=n.routeId===t.router.routeTree.id;t.updateMatch(n.id,e=>({...e,...a?{status:`success`,globalNotFound:!0,error:void 0}:{status:`notFound`,error:l},isFetching:!1})),u=e,await gt(r,[`notFoundComponent`])}else if(!t.preload){let e=t.matches[0];e.globalNotFound||t.router.getMatch(e.id)?.globalNotFound&&t.updateMatch(e.id,e=>({...e,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){let e=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await gt(e,[`errorComponent`])}for(let e=0;e<=u;e++){let{id:n,routeId:r}=t.matches[e],i=t.router.looseRoutesById[r];try{let e=ut(t,n,i);if(e){let r=await e;t.updateMatch(n,e=>({...e,...r}))}}catch(e){console.error(`Error executing head for route ${r}:`,e)}}let d=Ze(t);if(L(d)&&await d,l)throw l;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function ht(e,t){let n=t.map(t=>e.options[t]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function gt(e,t=vt){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);let n=()=>e._componentsLoaded?void 0:t===vt?(()=>{if(e._componentsPromise===void 0){let t=ht(e,vt);t?e._componentsPromise=t.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():ht(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function _t(e){for(let t of vt)if(e.options[t]?.preload)return!0;return!1}var vt=[`component`,`errorComponent`,`pendingComponent`,`notFoundComponent`];function yt(e){return{input:({url:t})=>{for(let n of e)t=xt(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=St(e[n],t);return t}}}function bt(e){let t=je(e.basepath),n=`/${t}`,r=e.caseSensitive?n:n.toLowerCase(),i=`${r}/`;return{input:({url:t})=>{let a=e.caseSensitive?t.pathname:t.pathname.toLowerCase();return a===r?t.pathname=`/`:a.startsWith(i)&&(t.pathname=t.pathname.slice(n.length)),t},output:({url:e})=>(e.pathname=De([`/`,t,e.pathname]),e)}}function xt(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function St(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function Ct(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i,init:a}=t,o=new Map,s=new Map,c=new Map,l=n(e.status),u=n(e.loadedAt),d=n(e.isLoading),f=n(e.isTransitioning),p=n(e.location),m=n(e.resolvedLocation),h=n(e.statusCode),g=n(e.redirect),_=n([]),v=n([]),y=n([]),b=r(()=>wt(o,_.get())),x=r(()=>wt(s,v.get())),S=r(()=>wt(c,y.get())),C=r(()=>_.get()[0]),w=r(()=>_.get().some(e=>o.get(e)?.get().status===`pending`)),E=r(()=>({locationHref:p.get().href,resolvedLocationHref:m.get()?.href,status:l.get()})),D=r(()=>({status:l.get(),loadedAt:u.get(),isLoading:d.get(),isTransitioning:f.get(),matches:b.get(),location:p.get(),resolvedLocation:m.get(),statusCode:h.get(),redirect:g.get()})),O=ne(64);function k(e){let t=O.get(e);return t||(t=r(()=>{let t=_.get();for(let n of t){let t=o.get(n);if(t&&t.routeId===e)return t.get()}}),O.set(e,t)),t}let A={status:l,loadedAt:u,isLoading:d,isTransitioning:f,location:p,resolvedLocation:m,statusCode:h,redirect:g,matchesId:_,pendingIds:v,cachedIds:y,matches:b,pendingMatches:x,cachedMatches:S,firstId:C,hasPending:w,matchRouteDeps:E,matchStores:o,pendingMatchStores:s,cachedMatchStores:c,__store:D,getRouteMatchStore:k,setMatches:j,setPending:M,setCached:N};j(e.matches),a?.(A);function j(e){Tt(e,o,_,n,i)}function M(e){Tt(e,s,v,n,i)}function N(e){Tt(e,c,y,n,i)}return A}function wt(e,t){let n=[];for(let r of t){let t=e.get(r);t&&n.push(t.get())}return n}function Tt(e,t,n,r,i){let a=e.map(e=>e.id),o=new Set(a);i(()=>{for(let e of t.keys())o.has(e)||t.delete(e);for(let n of e){let e=t.get(n.id);if(!e){let e=r(n);e.routeId=n.routeId,t.set(n.id,e);continue}e.routeId=n.routeId,e.get()!==n&&e.set(n)}te(n.get(),a)||n.set(a)})}var Et=`__TSR_index`,Dt=`popstate`,Ot=`beforeunload`;function kt(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async({task:n,navigateOpts:r,...i})=>{if(r?.ignoreBlocker??!1){n();return}let a=e.getBlockers?.()??[],o=i.type===`PUSH`||i.type===`REPLACE`;if(typeof document<`u`&&a.length&&o)for(let n of a){let r=Nt(i.path,i.state);if(await n.blockerFn({currentLocation:t,nextLocation:r,action:i.type})){e.onBlocked?.();return}}n()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[Et];i=At(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[Et];i=At(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[Et]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function At(e,t){t||={};let n=Pt();return{...t,key:n,__TSR_key:n,[Et]:e}}function jt(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=e?.createHref??(e=>e),c=e?.parseLocation??(()=>Nt(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=Pt();t.history.replaceState({[Et]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_,v=()=>{g&&(C._ignoreSubscribers=!0,(g.isPush?t.history.pushState:t.history.replaceState)(g.state,``,g.href),C._ignoreSubscribers=!1,g=void 0,_=void 0,u=void 0)},y=(e,t,n)=>{let r=s(t);_||(u=l),l=Nt(t,n),g={href:r,state:n,isPush:g?.isPush||e===`push`},_||=Promise.resolve().then(()=>v())},b=e=>{l=c(),C.notify({type:e})},x=async()=>{if(f){f=!1;return}let e=c(),n=e.state[Et]-l.state[Et],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let n=a();if(typeof document<`u`&&n.length){for(let r of n)if(await r.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(1),C.notify(u);return}}}l=c(),C.notify(u)},S=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0){t=!0;break}if(typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},C=kt({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>y(`push`,e,t),replaceState:(e,t)=>y(`replace`,e,t),back:e=>(e&&(p=!0),m=!0,t.history.back()),forward:e=>{e&&(p=!0),m=!0,t.history.forward()},go:e=>{d=!0,t.history.go(e)},createHref:e=>s(e),flush:v,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(Ot,S,{capture:!0}),t.removeEventListener(Dt,x)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(Ot,S,{capture:!0}),t.addEventListener(Dt,x),t.history.pushState=function(...e){let r=n.apply(t.history,e);return C._ignoreSubscribers||b(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return C._ignoreSubscribers||b(`REPLACE`),n},C}function Mt(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function Nt(e,t){let n=Mt(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=Pt();return{href:n,pathname:n.substring(0,r>0?i>0?Math.min(r,i):r:i>0?i:n.length),hash:r>-1?n.substring(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t||{[Et]:0,key:a,__TSR_key:a}}}function Pt(){return(Math.random()+1).toString(36).substring(7)}function Ft(e){return e instanceof Error?{name:e.name,message:e.message}:{data:e}}function It(e,t){let n=t,r=e;return{fromLocation:n,toLocation:r,pathChanged:n?.pathname!==r.pathname,hrefChanged:n?.href!==r.href,hashChanged:n?.hash!==r.hash}}var Lt=new WeakMap,Rt=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={next:!0},this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.routeBranchCache=new WeakMap,this.startTransition=e=>e(),this.update=e=>{let t=this.options,n=this.basepath??t?.basepath??`/`,r=this.basepath===void 0,i=t?.rewrite;if(this.options={...t,...e},this.isServer=this.options.isServer??typeof document>`u`,this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=Fe(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=jt()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!==`null`?this.origin=window.origin:this.origin=`http://localhost`),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;this.resolvePathCache=ne(1e3),e=this.buildRouteTree(),this.setRoutes(e)}if(!this.stores&&this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=Ct(Vt(this.latestLocation),e),cn(this)}let a=!1,o=this.options.basepath??`/`,s=this.options.rewrite;if(r||n!==o||i!==s){this.basepath=o;let e=[],t=je(o);t&&t!==`/`&&e.push(bt({basepath:o})),s&&e.push(s),this.rewrite=e.length===0?void 0:e.length===1?e[0]:yt(e),this.history&&this.updateLatestLocation(),a=!0}a&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<`u`&&`CSS`in window&&typeof window.CSS?.supports==`function`&&(this.isViewTransitionTypesSupported=window.CSS.supports(`selector(:active-view-transition-type(a))`))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=_e(this.routeTree,this.options.caseSensitive,(e,t)=>{e.init({originalIndex:t})});return this.options.routeMasks&&fe(this.options.routeMasks,e.processedTree),e},this.subscribe=(e,t)=>{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{this.subscribers.forEach(t=>{t.eventType===e.type&&t.fn(e)})},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i,state:a})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let i=this.options.parseSearch(n),o=this.options.stringifySearch(i);return{href:e+o+r,publicHref:e+o+r,pathname:G(e).path,external:!1,searchStr:o,search:O(t?.search,i),hash:G(r.slice(1)).path,state:k(t?.state,a)}}let o=new URL(i,this.origin),s=xt(this.rewrite,o),c=this.options.parseSearch(s.search),l=this.options.stringifySearch(c);return s.search=l,{href:s.href.replace(s.origin,``),publicHref:i,pathname:G(s.pathname).path,external:!!this.rewrite&&s.origin!==this.origin,searchStr:l,search:O(t?.search,c),hash:G(s.hash.slice(1)).path,state:k(t?.state,a)}},r=n(e),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i);return e.state.key=r.state.key,e.state.__TSR_key=r.state.__TSR_key,delete e.state.__tempLocation,{...e,maskedLocation:r}}return r},this.resolvePathWithBase=(e,t)=>Pe({base:e,to:t.includes(`//`)?Oe(t):t,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>Ut({pathname:e,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=e=>{let t=this.getMatch(e);t&&(t.abortController.abort(),clearTimeout(t._nonReactive.pendingTimeout),t._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(e=>{this.cancelMatch(e)}),this.stores.matchesId.get().forEach(e=>{if(this.stores.pendingMatchStores.has(e))return;let t=this.stores.matchStores.get(e)?.get();t&&(t.status===`pending`||t.isFetching===`loader`)&&this.cancelMatch(e)})},this.buildLocation=e=>{let t=(t={})=>{let n=t._fromLocation||this.pendingBuiltLocation||this.latestLocation,r=this.matchRoutesLightweight(n);t.from;let i=t.unsafeRelative===`path`?n.pathname:t.from??r.fullPath,a=t.to?`${t.to}`:void 0,o=r.search,s=Object.assign(Object.create(null),r.params),c=a?.charCodeAt(0)===47?`/`:this.resolvePathWithBase(i,`.`),l=a?this.resolvePathWithBase(c,a):c,u=t.params===!1||t.params===null?Object.create(null):(t.params??!0)===!0?s:Object.assign(s,S(t.params,s)),d=this.routesByPath[Ae(l)],f;if(d)f=this.getRouteBranch(d);else if(l.includes(`$`))f=[];else{let e=this.getMatchedRoutes(l);f=e.matchedRoutes,this.options.notFoundRoute&&(!e.foundRoute||e.foundRoute.path!==`/`&&e.routeParams[`**`])&&(f=[...f,this.options.notFoundRoute])}if(f.length&&E(u))for(let e of f){let t=e.options.params?.stringify??e.options.stringifyParams;if(t)try{Object.assign(u,t(u))}catch{}}let p=e.leaveParams?l:G(Le({path:l,params:u,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path,m=o;if(e._includeValidateSearch&&this.options.search?.strict){let e={};f.forEach(t=>{if(t.options.validateSearch)try{Object.assign(e,Ht(t.options.validateSearch,{...e,...m}))}catch{}}),m=e}m=Wt({search:m,dest:t,destRoutes:f,_includeValidateSearch:e._includeValidateSearch}),m=O(o,m);let h=this.options.stringifySearch(m),g=t.hash===!0?n.hash:t.hash?S(t.hash,n.hash):void 0,_=g?`#${g}`:``,v=t.state===!0?n.state:t.state?S(t.state,n.state):{};v=k(n.state,v);let y=`${p}${h}${_}`,b,x,C=!1;if(this.rewrite){let e=new URL(y,this.origin),t=St(this.rewrite,e);b=e.href.replace(e.origin,``),t.origin===this.origin?x=t.pathname+t.search+t.hash:(x=t.href,C=!0)}else b=ee(y),x=b;return{publicHref:x,href:b,pathname:p,search:m,searchStr:h,state:v,hash:g??``,external:C,unmaskOnReload:t.unmaskOnReload}},n=(n={},r)=>{let i=t(n),a=r?t(r):void 0;if(!a){let n=Object.create(null);if(this.options.routeMasks){let o=pe(i.pathname,this.processedTree);if(o){Object.assign(n,o.rawParams);let{from:i,params:s,...c}=o.route,l=s===!1||s===null?Object.create(null):(s??!0)===!0?n:Object.assign(n,S(s,n));r={from:e.from,...c,params:l},a=t(r)}}}return a&&(i.maskedLocation=a),i};return e.mask?n(e,{from:e.from,...e.mask}):n(e)},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r,i=()=>{let e=[`key`,`__TSR_key`,`__TSR_index`,`__hashScrollIntoViewOptions`];e.forEach(e=>{n.state[e]=this.latestLocation.state[e]});let t=P(n.state,this.latestLocation.state);return e.forEach(e=>{delete n.state[e]}),t},a=Ae(this.latestLocation.href)===Ae(n.href),o=this.commitLocationPromise;if(this.commitLocationPromise=F(()=>{o?.resolve(),o=void 0}),a&&i())this.load();else{let{maskedLocation:i,hashScrollIntoView:a,...o}=n;i&&(o={...i,state:{...i.state,__tempKey:void 0,__tempLocation:{...o,search:o.searchStr,state:{...o.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(o.unmaskOnReload??this.options.unmaskOnReload??!1)&&(o.state.__tempKey=this.tempLocationKey)),o.state.__hashScrollIntoViewOptions=a??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=e,r=n.replace?`REPLACE`:`PUSH`,this.history[r===`REPLACE`?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t})}return this._scroll.next=n.resetScroll??!0,this.history.subscribers.size||this.load(r?{action:{type:r}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,href:a,...o}={})=>{if(a){let t=this.history.location.state.__TSR_index,n=Nt(a,{__TSR_index:e?t:t+1}),r=new URL(n.pathname,this.origin);o.to=xt(this.rewrite,r).pathname,o.search=this.options.parseSearch(n.search),o.hash=n.hash.slice(1)}let s=this.buildLocation({...o,_includeValidateSearch:!0});this.pendingBuiltLocation=s;let c=this.commitLocation({...s,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return Promise.resolve().then(()=>{this.pendingBuiltLocation===s&&(this.pendingBuiltLocation=void 0)}),c},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=!1;if(n)try{new URL(`${n}`),a=!0}catch{}if(a&&!t&&(t=!0),t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i});n??=t.publicHref,r??=t.publicHref}let t=!a&&r?r:n;if(V(t,this.protocolAllowlist))return Promise.resolve();if(!i.ignoreBlocker){let e=this.history.getBlockers?.()??[];for(let t of e)if(t?.blockerFn&&await t.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:`PUSH`}))return Promise.resolve()}return i.replace?window.location.replace(t):window.location.href=t,Promise.resolve()}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();let e=this.matchRoutes(this.latestLocation),t=this.stores.cachedMatches.get().filter(t=>!e.some(e=>e.id===t.id));this.batch(()=>{this.stores.status.set(`pending`),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(e),this.stores.setCached(t)})},this.load=async e=>{let t=e?.action?.type,n,r,i,a=this.stores.resolvedLocation.get()??this.stores.location.get();for(i=new Promise(o=>{this.startTransition(async()=>{try{this.beforeLoad(),t?Lt.set(this.latestLocation,t):Lt.delete(this.latestLocation);let n=this.latestLocation,r=It(n,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:`onBeforeNavigate`,...r}),this.emit({type:`onBeforeLoad`,...r}),await mt({router:this,sync:e?.sync,forceStaleReload:a.href===n.href,matches:this.stores.pendingMatches.get(),location:n,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let e=null,t=null,n=null,r=null;this.batch(()=>{let i=this.stores.pendingMatches.get(),a=i.length,o=this.stores.matches.get();e=a?o.filter(e=>!this.stores.pendingMatchStores.has(e.id)):null;let s=new Set;for(let e of this.stores.pendingMatchStores.values())e.routeId&&s.add(e.routeId);let c=new Set;for(let e of this.stores.matchStores.values())e.routeId&&c.add(e.routeId);t=a?o.filter(e=>!s.has(e.routeId)):null,n=a?i.filter(e=>!c.has(e.routeId)):null,r=a?i.filter(e=>c.has(e.routeId)):o,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),a&&(this.stores.setMatches(i),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...e.filter(e=>e.status!==`error`&&e.status!==`notFound`&&e.status!==`redirected`)]),this.clearExpiredCache())});for(let[e,i]of[[t,`onLeave`],[n,`onEnter`],[r,`onStay`]])if(e)for(let t of e)this.looseRoutesById[t.routeId].options[i]?.(t)})})}})}catch(e){Ye(e)?(n=e,this.navigate({...n.options,replace:!0,ignoreBlocker:!0})):ze(e)&&(r=e);let t=n?n.status:r?404:this.stores.matches.get().some(e=>e.status===`error`)?500:200;this.batch(()=>{this.stores.statusCode.set(t),this.stores.redirect.set(n)})}this.latestLoadPromise===i&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),o()})}),this.latestLoadPromise=i,await i;this.latestLoadPromise&&i!==this.latestLoadPromise;)await this.latestLoadPromise;let o;this.hasNotFoundMatch()?o=404:this.stores.matches.get().some(e=>e.status===`error`)&&(o=500),o!==void 0&&this.stores.statusCode.set(o)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document<`u`&&`startViewTransition`in document&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&this.isViewTransitionTypesSupported){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(It(r,i)):t.types;if(a===!1){e();return}n={update:e,types:a}}else n=e;document.startViewTransition(n)}else e()},this.updateMatch=(e,t)=>{this.startTransition(()=>{let n=this.stores.pendingMatchStores.get(e);if(n){n.set(t);return}let r=this.stores.matchStores.get(e);if(r){r.set(t);return}let i=this.stores.cachedMatchStores.get(e);if(i){let n=t(i.get());n.status===`redirected`?this.stores.cachedMatchStores.delete(e)&&this.stores.cachedIds.set(t=>t.filter(t=>t!==e)):i.set(n)}})},this.getMatch=e=>this.stores.cachedMatchStores.get(e)?.get()??this.stores.pendingMatchStores.get(e)?.get()??this.stores.matchStores.get(e)?.get(),this.invalidate=e=>{let t=t=>e?.filter?.(t)??!0?{...t,invalid:!0,...e?.forcePending||t.status===`error`||t.status===`notFound`?{status:`pending`,error:void 0}:void 0}:t;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(t)),this.stores.setCached(this.stores.cachedMatches.get().map(t)),this.stores.setPending(this.stores.pendingMatches.get().map(t))}),this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.getParsedLocationHref=e=>e.publicHref||`/`,this.resolveRedirect=e=>{let t=e.headers.get(`Location`);if(!e.options.href||e.options._builtLocation){let t=e.options._builtLocation??this.buildLocation(e.options),n=this.getParsedLocationHref(t);e.options.href=n,e.headers.set(`Location`,n)}else if(t)try{let n=new URL(t);if(this.origin&&n.origin===this.origin){let t=n.pathname+n.search+n.hash;e.options.href=t,e.headers.set(`Location`,t)}}catch{}if(e.options.href&&!e.options._builtLocation&&V(e.options.href,this.protocolAllowlist))throw Error(`Redirect blocked: unsafe protocol`);return e.headers.get(`Location`)||e.headers.set(`Location`,e.options.href),e},this.clearCache=e=>{let t=e?.filter;t===void 0?this.stores.setCached([]):this.stores.setCached(this.stores.cachedMatches.get().filter(e=>!t(e)))},this.clearExpiredCache=()=>{let e=Date.now();this.clearCache({filter:t=>{let n=this.looseRoutesById[t.routeId];if(!n.options.loader)return!0;let r=(t.preload?n.options.preloadGcTime??this.options.defaultPreloadGcTime:n.options.gcTime??this.options.defaultGcTime)??300*1e3;return t.status===`error`?!0:e-t.updatedAt>=r}})},this.loadRouteChunk=gt,this.preloadRoute=async e=>{let t=e._builtLocation??this.buildLocation(e),n=this.matchRoutes(t,{throwOnError:!0,preload:!0,dest:e}),r=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),i=new Set([...r,...this.stores.cachedIds.get()]),a=n.filter(e=>!i.has(e.id));if(a.length){let e=this.stores.cachedMatches.get();this.stores.setCached([...e,...a])}try{return n=await mt({router:this,matches:n,location:t,preload:!0,updateMatch:(e,t)=>{r.has(e)?n=n.map(n=>n.id===e?t(n):n):this.updateMatch(e,t)}}),n}catch(e){if(Ye(e))return e.options.reloadDocument?void 0:await this.preloadRoute({...e.options,_fromLocation:t});ze(e)||console.error(e);return}},this.matchRoute=(e,t)=>{let n={...e,to:e.to?this.resolvePathWithBase(e.from||``,e.to):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n);if(t?.pending&&this.stores.status.get()!==`pending`)return!1;let i=(t?.pending===void 0?!this.stores.isLoading.get():t.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),a=me(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,i.pathname,this.processedTree);return!a||e.params&&!P(a.rawParams,e.params,{partial:!0})?!1:t?.includeSearch??!0?P(i.search,r.search,{partial:!0})?a.rawParams:!1:a.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(e=>e.status===`notFound`||e.globalNotFound),this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??We,parseSearch:e.parseSearch??Ue,protocolAllowlist:e.protocolAllowlist??B}),typeof document<`u`&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;let r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=be(e),this.routeBranchCache.set(e,t)),t}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){let n=this.getMatchedRoutes(e.pathname),{foundRoute:r,routeParams:i}=n,{matchedRoutes:a}=n,o=!1;(r?r.path!==`/`&&i[`**`]:Ae(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let s=o?Kt(this.options.notFoundMode,a):void 0,c=Array(a.length),l=new Map;for(let e of this.stores.matchStores.values())e.routeId&&l.set(e.routeId,e.get());for(let n=0;n<a.length;n++){let r=a[n],o=c[n-1],u,d,f;{let n=o?.search??e.search,i=o?._strictSearch??void 0;try{let e=Ht(r.options.validateSearch,{...n})??void 0;u={...n,...e},d={...i,...e},f=void 0}catch(e){let r=e;if(e instanceof zt||(r=new zt(e.message,{cause:e})),t?.throwOnError)throw r;u=n,d={},f=r}}let p=r.options.loaderDeps?.({search:u})??``,m=p?JSON.stringify(p):``,{interpolatedPath:h,usedParams:g}=Le({path:r.fullPath,params:i,decoder:this.pathParamsDecoder,server:this.isServer}),_=r.id+h+m,v=this.getMatch(_),y=l.get(r.id),b=v?._strictParams??g,x;if(!v)try{qt(r,b)}catch(e){if(x=ze(e)||Ye(e)?e:new Bt(e.message,{cause:e}),t?.throwOnError)throw x}Object.assign(i,b);let S=y?`stay`:`enter`,C;if(v)C={...v,cause:S,params:y?.params??i,_strictParams:b,search:O(y?y.search:v.search,u),_strictSearch:d};else{let e=r.options.loader||r.options.beforeLoad||r.lazyFn||_t(r)?`pending`:`success`;C={id:_,ssr:r.options.ssr,index:n,routeId:r.id,params:y?.params??i,_strictParams:b,pathname:h,updatedAt:Date.now(),search:y?O(y.search,u):u,_strictSearch:d,searchError:void 0,status:e,isFetching:!1,error:void 0,paramsError:x,__routeContext:void 0,_nonReactive:{loadPromise:F()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:S,loaderDeps:y?k(y.loaderDeps,p):p,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:r.options.staticData||{},fullPath:r.fullPath}}t?.preload||(C.globalNotFound=s===r.id),C.searchError=f;let w=this.getParentContext(o);C.context={...w,...C.__routeContext,...C.__beforeLoadContext},c[n]=C}for(let t=0;t<c.length;t++){let n=c[t],r=this.looseRoutesById[n.routeId],a=this.getMatch(n.id),o=l.get(n.routeId);if(n.params=o?O(o.params,i):i,!a){let i=c[t-1],a=this.getParentContext(i);if(r.options.context){let t={deps:n.loaderDeps,params:n.params,context:a??{},location:e,navigate:t=>this.navigate({...t,_fromLocation:e}),buildLocation:this.buildLocation,cause:n.cause,abortController:n.abortController,preload:!!n.preload,matches:c,routeId:r.id};n.__routeContext=r.options.context(t)??void 0}n.context={...a,...n.__routeContext,...n.__beforeLoadContext}}}return c}matchRoutesLightweight(e){let{matchedRoutes:t,routeParams:n}=this.getMatchedRoutes(e.pathname),r=b(t),i={...e.search};for(let e of t)try{Object.assign(i,Ht(e.options.validateSearch,i))}catch{}let a=b(this.stores.matchesId.get()),o=a&&this.stores.matchStores.get(a)?.get(),s=o&&o.routeId===r.id&&o.pathname===e.pathname,c;if(s)c=o.params;else{let e=Object.assign(Object.create(null),n);for(let n of t)try{qt(n,e)}catch{}c=e}return{matchedRoutes:t,fullPath:r.fullPath,search:i,params:c}}},zt=class extends Error{},Bt=class extends Error{};function Vt(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:`idle`,resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function Ht(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new zt(`Async validation not supported`);if(n.issues)throw new zt(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return`parse`in e?e.parse(t):typeof e==`function`?e(t):{}}function Ut({pathname:e,routesById:t,processedTree:n}){let r=Object.create(null),i=Ae(e),a,o=he(i,n,!0);return o&&(a=o.route,Object.assign(r,o.rawParams)),{matchedRoutes:o?.branch||[t.__root__],routeParams:r,foundRoute:a}}function Wt({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return Gt(n)(e,t,r??!1)}function Gt(e){let t,n,r=[];for(let t of e){let e=t.options;`search`in e?e.search?.middlewares&&r.push(...e.search.middlewares):(e.preSearchFilters||e.postSearchFilters)&&r.push(({search:t,next:n})=>{let r=n(e.preSearchFilters?e.preSearchFilters.reduce((e,t)=>t(e),t):t);return e.postSearchFilters?e.postSearchFilters.reduce((e,t)=>t(e),r):r});let i=e.validateSearch;i&&r.push(({search:e,next:t,meta:r})=>{let a=t(e);if(n)try{let e=Ht(i,a);if(r&&e)for(let t in e)t in a||(r.defaulted||=new Map).set(t,e[t]);return{...a,...e}}catch{}return a})}let i=(e,n,a)=>{if(e>=r.length){if(!t.search)return{};if(t.search===!0)return n;let e=S(t.search,n);return a&&(a.explicit=e),e}return r[e]({search:n,next:(t,n)=>{if(n){let n=a||{};return{search:i(e+1,t,n),meta:n}}return i(e+1,t,a)},meta:a})};return function(e,r,a){return t=r,n=a,i(0,e)}}function Kt(e,t){if(e!==`root`)for(let e=t.length-1;e>=0;e--){let n=t[e];if(n.children)return n.id}return qe}function qt(e,t){let n=e.options.params?.parse??e.options.parseParams;if(n){let e=n(t);if(e===!1)throw Error(`Route params.parse returned false for a matched route`);Object.assign(t,e)}}function Jt(){try{return sessionStorage}catch{return}}var Yt=`tsr-scroll-restoration-v1_3`,Xt=Jt();function Zt(){try{return JSON.parse(Xt?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}function Qt(){try{Xt?.setItem(Yt,JSON.stringify($t))}catch{}}var $t=Zt(),en=`data-scroll-restoration-id`,tn=e=>e.state.__TSR_key||e.href;function nn(e){let t=e.getAttribute(en);if(t)return`[${en}="${t}"]`;let n=``,r=e,i;for(;i=r.parentNode;){let e=1,t=r;for(;t=t.previousElementSibling;)e++;let a=`${r.localName}:nth-child(${e})`;n=n?`${a} > ${n}`:a,r=i}return n}var rn=!1,an=`window`;function on(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function sn(e){let t=[];for(let n of e){if(n===an)continue;let e=on(n);e&&t.push(e)}return t}function cn(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.restoring=!0);let i=e.options.getScrollRestorationKey||tn,a=new Map,o=(e,t,n)=>{let r=a.get(e)||{};r.scrollX=t,r.scrollY=n,a.set(e,r)},s=e=>{if(!(rn||!r.restoring))if(e.target===document)o(an,scrollX,scrollY);else{let t=e.target;o(t,t.scrollLeft,t.scrollTop)}},c=e=>{if(!r.restoring)return;let t=$t[e]||={};for(let[e,n]of a)e===an?t[an]=n:e.isConnected&&(t[nn(e)]=n)};n&&!r.restoration&&(r.restoration=!0,rn=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,s,!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&c(i(e.fromLocation)),a.clear()}),addEventListener(`pagehide`,()=>{c(i(e.stores.resolvedLocation.get()??e.stores.location.get())),Qt()})),!r.reset&&(r.reset=!0,e.subscribe(`onRendered`,t=>{let n=e.options.scrollRestorationBehavior,o=e.options.scrollToTopSelectors,s=r.next,c;if(a.clear(),s||(r.next=!0),typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let l=i(t.toLocation),u=t.fromLocation&&i(t.fromLocation);if(r.restoring&&u&&u!==l){let e=$t[u];if(e){let t=$t[l];for(let n in e){if(n===an){if(s)continue}else{let e=on(n);if(!e||s&&o&&(c??=sn(o),c.includes(e)))continue}t||=$t[l]={},t[n]??=e[n]}}}rn=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){let s=Lt.get(t.toLocation),u=e&&i&&(s===`PUSH`||s===`REPLACE`),d=r.restoring?$t[l]:void 0;if(d)for(let e in d){let{scrollX:t,scrollY:r}=d[e];if(e===an){if(u)continue;scrollTo({top:r,left:t,behavior:n}),a=!0}else{let n=on(e);n&&(n.scrollLeft=t,n.scrollTop=r)}}if(!a&&!e){let e={top:0,left:0,behavior:n};if(scrollTo(e),o){c??=sn(o);for(let t of c)t.scrollTo(e)}}}!a&&e&&i&&document.getElementById(e)?.scrollIntoView(i)}finally{rn=!1}}))}var ln=Symbol.for(`TSR_DEFERRED_PROMISE`);function un(e,t){let n=e;return n[ln]?n:(n[ln]={status:`pending`},n.then(e=>{n[ln].status=`success`,n[ln].data=e}).catch(e=>{n[ln].status=`error`,n[ln].error={data:(t?.serializeError??Ft)(e),__isServerError:!0}}),n)}var dn=`Error preloading route! ☝️`;function fn(e,t){if(e)return typeof e==`string`?e:e[t]}function pn(e){return e?.scriptFormat??`module`}function mn(e,t,n){let r=hn(t),i=fn(n,`script`)??r.crossOrigin;return{...pn(e)===`iife`?{rel:`preload`,as:`script`}:{rel:`modulepreload`},href:r.href,...i?{crossOrigin:i}:{}}}function hn(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function gn(e,t){if(t.length===0)return;if(t.length===1){e.push(t[0]);return}let n=new Set;for(let r of t){let t=JSON.stringify(r);n.has(t)||(n.add(t),e.push(r))}}function _n(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}var vn=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e.originalIndex;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=qe:this.parentRoute||K();let r=n?qe:t?.path;r&&r!==`/`&&(r=ke(r));let i=t?.id||r,a=n?qe:De([this.parentRoute.id===`__root__`?``:this.parentRoute.id,i]);r===`__root__`&&(r=`/`),a!==`__root__`&&(a=De([`/`,a]));let o=a===`__root__`?`/`:De([this.parentRoute.fullPath,r]);this._path=r,this._id=a,this._fullPath=o,this._to=Ae(o)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>Je({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},yn=class extends vn{constructor(e){super(e)}},bn=(e=>(e[e.AggregateError=1]=`AggregateError`,e[e.ArrowFunction=2]=`ArrowFunction`,e[e.ErrorPrototypeStack=4]=`ErrorPrototypeStack`,e[e.ObjectAssign=8]=`ObjectAssign`,e[e.BigIntTypedArray=16]=`BigIntTypedArray`,e[e.RegExp=32]=`RegExp`,e))(bn||{}),xn=Symbol.asyncIterator,Sn=Symbol.hasInstance,Cn=Symbol.isConcatSpreadable,wn=Symbol.iterator,Tn=Symbol.match,En=Symbol.matchAll,Dn=Symbol.replace,On=Symbol.search,kn=Symbol.species,An=Symbol.split,jn=Symbol.toPrimitive,Mn=Symbol.toStringTag,Nn=Symbol.unscopables,Pn={[xn]:0,[Sn]:1,[Cn]:2,[wn]:3,[Tn]:4,[En]:5,[Dn]:6,[On]:7,[kn]:8,[An]:9,[jn]:10,[Mn]:11,[Nn]:12},Fn={0:xn,1:Sn,2:Cn,3:wn,4:Tn,5:En,6:Dn,7:On,8:kn,9:An,10:jn,11:Mn,12:Nn},q=void 0,In={2:!0,3:!1,1:q,0:null,4:-0,5:1/0,6:-1/0,7:NaN},Ln={0:`Error`,1:`EvalError`,2:`RangeError`,3:`ReferenceError`,4:`SyntaxError`,5:`TypeError`,6:`URIError`},Rn={0:Error,1:EvalError,2:RangeError,3:ReferenceError,4:SyntaxError,5:TypeError,6:URIError};function zn(e,t,n,r,i,a,o,s,c,l,u,d){return{t:e,i:t,s:n,c:r,m:i,p:a,e:o,a:s,f:c,b:l,o:u,l:d}}function Bn(e){return zn(2,q,e,q,q,q,q,q,q,q,q,q)}var Vn=Bn(2),Hn=Bn(3),Un=Bn(1),Wn=Bn(0),Gn=Bn(4),Kn=Bn(5),qn=Bn(6),Jn=Bn(7);function Yn(e){switch(e){case`"`:return`\\"`;case`\\`:return`\\\\`;case`
|
|
11
|
+
`:return`\\n`;case`\r`:return`\\r`;case`\b`:return`\\b`;case` `:return`\\t`;case`\f`:return`\\f`;case`<`:return`\\x3C`;case`\u2028`:return`\\u2028`;case`\u2029`:return`\\u2029`;default:return q}}function Xn(e){let t=``,n=0,r;for(let i=0,a=e.length;i<a;i++)r=Yn(e[i]),r&&(t+=e.slice(n,i)+r,n=i+1);return n===0?t=e:t+=e.slice(n),t}function Zn(e){switch(e){case`\\\\`:return`\\`;case`\\"`:return`"`;case`\\n`:return`
|
|
12
|
+
`;case`\\r`:return`\r`;case`\\b`:return`\b`;case`\\t`:return` `;case`\\f`:return`\f`;case`\\x3C`:return`<`;case`\\u2028`:return`\u2028`;case`\\u2029`:return`\u2029`;default:return e}}function Qn(e){return e.replace(/(\\\\|\\"|\\n|\\r|\\b|\\t|\\f|\\u2028|\\u2029|\\x3C)/g,Zn)}var $n=`__SEROVAL_REFS__`,er=new Map,tr=new Map;function nr(e){return er.has(e)}function rr(e){return tr.has(e)}function ir(e){if(nr(e))return er.get(e);throw new Kr(e)}function ar(e){if(rr(e))return tr.get(e);throw new qr(e)}typeof globalThis<`u`?Object.defineProperty(globalThis,$n,{value:tr,configurable:!0,writable:!1,enumerable:!1}):typeof window<`u`?Object.defineProperty(window,$n,{value:tr,configurable:!0,writable:!1,enumerable:!1}):typeof self<`u`?Object.defineProperty(self,$n,{value:tr,configurable:!0,writable:!1,enumerable:!1}):typeof global<`u`&&Object.defineProperty(global,$n,{value:tr,configurable:!0,writable:!1,enumerable:!1});function or(e){return e instanceof EvalError?1:e instanceof RangeError?2:e instanceof ReferenceError?3:e instanceof SyntaxError?4:e instanceof TypeError?5:e instanceof URIError?6:0}function sr(e){let t=Ln[or(e)];return e.name===t?e.constructor.name===t?{}:{name:e.constructor.name}:{name:e.name}}function cr(e,t){let n=sr(e),r=Object.getOwnPropertyNames(e);for(let i=0,a=r.length,o;i<a;i++)o=r[i],o!==`name`&&o!==`message`&&(o===`stack`?t&4&&(n||={},n[o]=e[o]):(n||={},n[o]=e[o]));return n}function lr(e){return Object.isFrozen(e)?3:Object.isSealed(e)?2:+!Object.isExtensible(e)}function ur(e){switch(e){case 1/0:return Kn;case-1/0:return qn}return e===e?Object.is(e,-0)?Gn:zn(0,q,e,q,q,q,q,q,q,q,q,q):Jn}function dr(e){return zn(1,q,Xn(e),q,q,q,q,q,q,q,q,q)}function fr(e){return zn(3,q,``+e,q,q,q,q,q,q,q,q,q)}function pr(e){return zn(4,e,q,q,q,q,q,q,q,q,q,q)}function mr(e,t){let n=t.valueOf();return zn(5,e,n===n?t.toISOString():``,q,q,q,q,q,q,q,q,q)}function hr(e,t){return zn(6,e,q,Xn(t.source),t.flags,q,q,q,q,q,q,q)}function gr(e,t){return zn(17,e,Pn[t],q,q,q,q,q,q,q,q,q)}function _r(e,t){return zn(18,e,Xn(ir(t)),q,q,q,q,q,q,q,q,q)}function vr(e,t,n){return zn(25,e,n,Xn(t),q,q,q,q,q,q,q,q)}function yr(e,t,n){return zn(9,e,q,q,q,q,q,n,q,q,lr(t),q)}function br(e,t){return zn(21,e,q,q,q,q,q,q,t,q,q,q)}function xr(e,t,n){return zn(15,e,q,t.constructor.name,q,q,q,q,n,t.byteOffset,q,t.length)}function Sr(e,t,n){return zn(16,e,q,t.constructor.name,q,q,q,q,n,t.byteOffset,q,t.byteLength)}function Cr(e,t,n){return zn(20,e,q,q,q,q,q,q,n,t.byteOffset,q,t.byteLength)}function wr(e,t,n){return zn(13,e,or(t),q,Xn(t.message),n,q,q,q,q,q,q)}function Tr(e,t,n){return zn(14,e,or(t),q,Xn(t.message),n,q,q,q,q,q,q)}function Er(e,t){return zn(7,e,q,q,q,q,q,t,q,q,q,q)}function Dr(e,t){return zn(28,q,q,q,q,q,q,[e,t],q,q,q,q)}function Or(e,t){return zn(30,q,q,q,q,q,q,[e,t],q,q,q,q)}function kr(e,t,n){return zn(31,e,q,q,q,q,q,n,t,q,q,q)}function Ar(e,t){return zn(32,e,q,q,q,q,q,q,t,q,q,q)}function jr(e,t){return zn(33,e,q,q,q,q,q,q,t,q,q,q)}function Mr(e,t){return zn(34,e,q,q,q,q,q,q,t,q,q,q)}function Nr(e,t,n,r){return zn(35,e,n,q,q,q,q,t,q,q,q,r)}var{toString:Pr}=Object.prototype,Fr={parsing:1,serialization:2,deserialization:3};function Ir(e){return`Seroval Error (step: ${Fr[e]})`}var Lr=(e,t)=>Ir(e),Rr=class extends Error{constructor(e,t){super(Lr(e,t)),this.cause=t}},zr=class extends Rr{constructor(e){super(`parsing`,e)}},Br=class extends Rr{constructor(e){super(`deserialization`,e)}};function Vr(e){return`Seroval Error (specific: ${e})`}var Hr=class extends Error{constructor(e){super(Vr(1)),this.value=e}},Ur=class extends Error{constructor(e){super(Vr(2))}},Wr=class extends Error{constructor(e){super(Vr(3))}},Gr=class extends Error{constructor(e){super(Vr(4))}},Kr=class extends Error{constructor(e){super(Vr(5)),this.value=e}},qr=class extends Error{constructor(e){super(Vr(6))}},Jr=class extends Error{constructor(e){super(Vr(7))}},Yr=class extends Error{constructor(e){super(Vr(8))}},Xr=class extends Error{constructor(e){super(Vr(9))}},Zr=class{constructor(e,t){this.value=e,this.replacement=t}},Qr=()=>{let e={p:0,s:0,f:0};return e.p=new Promise((t,n)=>{e.s=t,e.f=n}),e};Qr.toString(),((e,t)=>{e.s(t),e.p.s=1,e.p.v=t}).toString(),((e,t)=>{e.f(t),e.p.s=2,e.p.v=t}).toString();var $r=()=>{let e=[],t=[],n=!0,r=!1,i=0,a=(e,n,r)=>{for(r=0;r<i;r++)t[r]&&t[r][n](e)},o=(t,i,a,o)=>{for(i=0,a=e.length;i<a;i++)o=e[i],!n&&i===a-1?t[r?`return`:`throw`](o):t.next(o)},s=(e,r)=>(n&&(r=i++,t[r]=e),o(e),()=>{n&&(t[r]=t[i],t[i--]=void 0)});return{__SEROVAL_STREAM__:!0,on:e=>s(e),next:t=>{n&&(e.push(t),a(t,`next`))},throw:i=>{n&&(e.push(i),a(i,`throw`),n=!1,r=!1,t.length=0)},return:i=>{n&&(e.push(i),a(i,`return`),n=!1,r=!0,t.length=0)}}};$r.toString();var ei=e=>t=>()=>{let n=0,r={[e]:()=>r,next:()=>{if(n>t.d)return{done:!0,value:void 0};let e=n++,r=t.v[e];if(e===t.t)throw r;return{done:e===t.d,value:r}}};return r};ei.toString();var ti=(e,t)=>n=>()=>{let r=0,i=-1,a=!1,o=[],s=[],c=(e=0,t=s.length)=>{for(;e<t;e++)s[e].s({done:!0,value:void 0})};n.on({next:e=>{let t=s.shift();t&&t.s({done:!1,value:e}),o.push(e)},throw:e=>{let t=s.shift();t&&t.f(e),c(),i=o.length,a=!0,o.push(e)},return:e=>{let t=s.shift();t&&t.s({done:!0,value:e}),c(),i=o.length,o.push(e)}});let l={[e]:()=>l,next:()=>{if(i===-1){let e=r++;if(e>=o.length){let e=t();return s.push(e),e.p}return{done:!1,value:o[e]}}if(r>i)return{done:!0,value:void 0};let e=r++,n=o[e];if(e!==i)return{done:!1,value:n};if(a)throw n;return{done:!0,value:n}}};return l};ti.toString();var ni=e=>{let t=atob(e),n=t.length,r=new Uint8Array(n);for(let e=0;e<n;e++)r[e]=t.charCodeAt(e);return r.buffer};ni.toString();function ri(e){return`__SEROVAL_SEQUENCE__`in e}function ii(e,t,n){return{__SEROVAL_SEQUENCE__:!0,v:e,t,d:n}}function ai(e){let t=[],n=-1,r=-1,i=e[wn]();for(;;)try{let e=i.next();if(t.push(e.value),e.done){r=t.length-1;break}}catch(e){n=t.length,t.push(e)}return ii(t,n,r)}var oi=ei(wn);function si(e){return oi(e)}var ci={},li={},ui={0:{},1:{},2:{},3:{},4:{},5:{}};function di(e){return`__SEROVAL_STREAM__`in e}function fi(){return $r()}function pi(e){let t=fi(),n=e[xn]();async function r(){try{let e=await n.next();e.done?t.return(e.value):(t.next(e.value),await r())}catch(e){t.throw(e)}}return r().catch(()=>{}),t}var mi=ti(xn,Qr);function hi(e){return mi(e)}async function gi(e){try{return[1,await e]}catch(e){return[0,e]}}function _i(e,t){return{plugins:t.plugins,mode:e,marked:new Set,features:63^(t.disabledFeatures||0),refs:t.refs||new Map,depthLimit:t.depthLimit||1e3}}function vi(e,t){e.marked.add(t)}function yi(e,t){let n=e.refs.size;return e.refs.set(t,n),n}function bi(e,t){let n=e.refs.get(t);return n==null?{type:0,value:yi(e,t)}:(vi(e,n),{type:1,value:pr(n)})}function xi(e,t){let n=bi(e,t);return n.type===1?n:nr(t)?{type:2,value:_r(n.value,t)}:n}function Si(e,t){let n=xi(e,t);if(n.type!==0)return n.value;if(t in Pn)return gr(n.value,t);throw new Hr(t)}function Ci(e,t){let n=bi(e,ui[t]);return n.type===1?n.value:zn(26,n.value,t,q,q,q,q,q,q,q,q,q)}function wi(e){let t=bi(e,ci);return t.type===1?t.value:zn(27,t.value,q,q,q,q,q,q,Si(e,wn),q,q,q)}function Ti(e){let t=bi(e,li);return t.type===1?t.value:zn(29,t.value,q,q,q,q,q,[Ci(e,1),Si(e,xn)],q,q,q,q)}function Ei(e,t,n,r){return zn(n?11:10,e,q,q,q,r,q,q,q,q,lr(t),q)}function Di(e,t,n,r){return zn(8,t,q,q,q,q,{k:n,v:r},q,Ci(e,0),q,q,q)}function Oi(e,t,n){let r=new Uint8Array(n),i=``;for(let e=0,t=r.length;e<t;e++)i+=String.fromCharCode(r[e]);return zn(19,t,Xn(btoa(i)),q,q,q,q,q,Ci(e,5),q,q,q)}function ki(e,t){return{base:_i(e,t),child:void 0}}var Ai=class{constructor(e,t){this._p=e,this.depth=t}parse(e){return Xi(this._p,this.depth,e)}};async function ji(e,t,n){let r=[];for(let i=0,a=n.length;i<a;i++)i in n?r[i]=await Xi(e,t,n[i]):r[i]=0;return r}async function Mi(e,t,n,r){return yr(n,r,await ji(e,t,r))}async function Ni(e,t,n){let r=Object.entries(n),i=[],a=[];for(let n=0,o=r.length;n<o;n++)i.push(Xn(r[n][0])),a.push(await Xi(e,t,r[n][1]));return wn in n&&(i.push(Si(e.base,wn)),a.push(Dr(wi(e.base),await Xi(e,t,ai(n))))),xn in n&&(i.push(Si(e.base,xn)),a.push(Or(Ti(e.base),await Xi(e,t,pi(n))))),Mn in n&&(i.push(Si(e.base,Mn)),a.push(dr(n[Mn]))),Cn in n&&(i.push(Si(e.base,Cn)),a.push(n[Cn]?Vn:Hn)),{k:i,v:a}}async function Pi(e,t,n,r,i){return Ei(n,r,i,await Ni(e,t,r))}async function Fi(e,t,n,r){return br(n,await Xi(e,t,r.valueOf()))}async function Ii(e,t,n,r){return xr(n,r,await Xi(e,t,r.buffer))}async function Li(e,t,n,r){return Sr(n,r,await Xi(e,t,r.buffer))}async function Ri(e,t,n,r){return Cr(n,r,await Xi(e,t,r.buffer))}async function zi(e,t,n,r){let i=cr(r,e.base.features);return wr(n,r,i?await Ni(e,t,i):q)}async function Bi(e,t,n,r){let i=cr(r,e.base.features);return Tr(n,r,i?await Ni(e,t,i):q)}async function Vi(e,t,n,r){let i=[],a=[];for(let[n,o]of r.entries())i.push(await Xi(e,t,n)),a.push(await Xi(e,t,o));return Di(e.base,n,i,a)}async function Hi(e,t,n,r){let i=[];for(let n of r.keys())i.push(await Xi(e,t,n));return Er(n,i)}async function Ui(e,t,n,r){let i=e.base.plugins;if(i)for(let a=0,o=i.length;a<o;a++){let o=i[a];if(o.parse.async&&o.test(r))return vr(n,o.tag,await o.parse.async(r,new Ai(e,t),{id:n}))}return q}async function Wi(e,t,n,r){let[i,a]=await gi(r);return zn(12,n,i,q,q,q,q,q,await Xi(e,t,a),q,q,q)}function Gi(e,t,n,r,i){let a=[],o=n.on({next:n=>{vi(this.base,t),Xi(this,e,n).then(e=>{a.push(Ar(t,e))},e=>{i(e),o()})},throw:n=>{vi(this.base,t),Xi(this,e,n).then(e=>{a.push(jr(t,e)),r(a),o()},e=>{i(e),o()})},return:n=>{vi(this.base,t),Xi(this,e,n).then(e=>{a.push(Mr(t,e)),r(a),o()},e=>{i(e),o()})}})}async function Ki(e,t,n,r){return kr(n,Ci(e.base,4),await new Promise(Gi.bind(e,t,n,r)))}async function qi(e,t,n,r){let i=[];for(let n=0,a=r.v.length;n<a;n++)i[n]=await Xi(e,t,r.v[n]);return Nr(n,i,r.t,r.d)}async function Ji(e,t,n,r){if(Array.isArray(r))return Mi(e,t,n,r);if(di(r))return Ki(e,t,n,r);if(ri(r))return qi(e,t,n,r);let i=r.constructor;if(i===Zr)return Xi(e,t,r.replacement);let a=await Ui(e,t,n,r);if(a)return a;switch(i){case Object:return Pi(e,t,n,r,!1);case q:return Pi(e,t,n,r,!0);case Date:return mr(n,r);case Error:case EvalError:case RangeError:case ReferenceError:case SyntaxError:case TypeError:case URIError:return zi(e,t,n,r);case Number:case Boolean:case String:case BigInt:return Fi(e,t,n,r);case ArrayBuffer:return Oi(e.base,n,r);case Int8Array:case Int16Array:case Int32Array:case Uint8Array:case Uint16Array:case Uint32Array:case Uint8ClampedArray:case Float32Array:case Float64Array:return Ii(e,t,n,r);case DataView:return Ri(e,t,n,r);case Map:return Vi(e,t,n,r);case Set:return Hi(e,t,n,r);default:break}if(i===Promise||r instanceof Promise)return Wi(e,t,n,r);let o=e.base.features;if(o&32&&i===RegExp)return hr(n,r);if(o&16)switch(i){case BigInt64Array:case BigUint64Array:return Li(e,t,n,r);default:break}if(o&1&&typeof AggregateError<`u`&&(i===AggregateError||r instanceof AggregateError))return Bi(e,t,n,r);if(r instanceof Error)return zi(e,t,n,r);if(wn in r||xn in r)return Pi(e,t,n,r,!!i);throw new Hr(r)}async function Yi(e,t,n){let r=xi(e.base,n);if(r.type!==0)return r.value;let i=await Ui(e,t,r.value,n);if(i)return i;throw new Hr(n)}async function Xi(e,t,n){switch(typeof n){case`boolean`:return n?Vn:Hn;case`undefined`:return Un;case`string`:return dr(n);case`number`:return ur(n);case`bigint`:return fr(n);case`object`:if(n){let r=xi(e.base,n);return r.type===0?await Ji(e,t+1,r.value,n):r.value}return Wn;case`symbol`:return Si(e.base,n);case`function`:return Yi(e,t,n);default:throw new Hr(n)}}async function Zi(e,t){try{return await Xi(e,0,t)}catch(e){throw e instanceof zr?e:new zr(e)}}var Qi=(e=>(e[e.Vanilla=1]=`Vanilla`,e[e.Cross=2]=`Cross`,e))(Qi||{});function $i(e){return e}function ea(e,t){for(let n=0,r=t.length;n<r;n++){let r=t[n];e.has(r)||(e.add(r),r.extends&&ea(e,r.extends))}}function ta(e){if(e){let t=new Set;return ea(t,e),[...t]}}function na(e){switch(e){case`Int8Array`:return Int8Array;case`Int16Array`:return Int16Array;case`Int32Array`:return Int32Array;case`Uint8Array`:return Uint8Array;case`Uint16Array`:return Uint16Array;case`Uint32Array`:return Uint32Array;case`Uint8ClampedArray`:return Uint8ClampedArray;case`Float32Array`:return Float32Array;case`Float64Array`:return Float64Array;case`BigInt64Array`:return BigInt64Array;case`BigUint64Array`:return BigUint64Array;default:throw new Jr(e)}}var ra=1e6,ia=1e4,aa=2e4;function oa(e,t){switch(t){case 3:return Object.freeze(e);case 1:return Object.preventExtensions(e);case 2:return Object.seal(e);default:return e}}var sa=1e3;function ca(e,t){let n=t.refs||new Map;return`types`in n||Object.assign(n,{types:new Map}),{mode:e,plugins:t.plugins,refs:n,features:t.features??63^(t.disabledFeatures||0),depthLimit:t.depthLimit||sa}}function la(e){return{mode:2,base:ca(2,e),child:q}}var ua=class{constructor(e,t){this._p=e,this.depth=t}deserialize(e){return Za(this._p,this.depth,e)}};function da(e,t){if(t<0||!Number.isFinite(t)||!Number.isInteger(t))throw new Yr({t:4,i:t});if(e.refs.has(t))throw Error(`Conflicted ref id: `+t)}function fa(e,t,n){return da(e.base,t),e.state.marked.has(t)&&e.base.refs.set(t,n),n}function pa(e,t,n){return da(e.base,t),e.base.refs.set(t,n),n}function ma(e,t,n){return e.mode===1?fa(e,t,n):pa(e,t,n)}function ha(e,t,n){if(Object.hasOwn(t,n))return t[n];throw new Yr(e)}function ga(e,t){return ma(e,t.i,ar(Qn(t.s)))}function _a(e,t,n){let r=n.a,i=r.length,a=ma(e,n.i,Array(i));for(let n=0,o;n<i;n++)o=r[n],o&&(a[n]=Za(e,t,o));return oa(a,n.o),a}function va(e){switch(e){case`constructor`:case`__proto__`:case`prototype`:case`__defineGetter__`:case`__defineSetter__`:case`__lookupGetter__`:case`__lookupSetter__`:return!1;default:return!0}}function ya(e){switch(e){case xn:case Cn:case Mn:case wn:return!0;default:return!1}}function ba(e,t,n){va(t)?e[t]=n:Object.defineProperty(e,t,{value:n,configurable:!0,enumerable:!0,writable:!0})}function xa(e,t,n,r,i){if(typeof r==`string`)ba(n,Qn(r),Za(e,t,i));else{let a=Za(e,t,r);switch(typeof a){case`string`:ba(n,a,Za(e,t,i));break;case`symbol`:ya(a)&&(n[a]=Za(e,t,i));break;default:throw new Yr(r)}}}function Sa(e,t,n){e.base.refs.types.set(t,n)}function Ca(e,t,n,r){if(e.base.refs.types.get(n)!==r)throw new Yr(t)}function wa(e,t,n,r){let i=n.k;if(i.length>0)for(let a=0,o=n.v,s=i.length;a<s;a++)xa(e,t,r,i[a],o[a]);return r}function Ta(e,t,n){let r=ma(e,n.i,n.t===10?{}:Object.create(null));return wa(e,t,n.p,r),oa(r,n.o),r}function Ea(e,t){return ma(e,t.i,new Date(t.s))}function Da(e,t){if(e.base.features&32){let n=Qn(t.c);if(n.length>aa)throw new Yr(t);return ma(e,t.i,new RegExp(n,t.m))}throw new Ur(t)}function Oa(e,t,n){let r=ma(e,n.i,new Set);for(let i=0,a=n.a,o=a.length;i<o;i++)r.add(Za(e,t,a[i]));return r}function ka(e,t,n){let r=ma(e,n.i,new Map);for(let i=0,a=n.e.k,o=n.e.v,s=a.length;i<s;i++)r.set(Za(e,t,a[i]),Za(e,t,o[i]));return r}function Aa(e,t){if(t.s.length>ra)throw new Yr(t);return ma(e,t.i,ni(Qn(t.s)))}function ja(e,t,n){let r=na(n.c),i=Za(e,t,n.f),a=n.b??0;if(a<0||a>i.byteLength)throw new Yr(n);return ma(e,n.i,new r(i,a,n.l))}function Ma(e,t,n){let r=Za(e,t,n.f),i=n.b??0;if(i<0||i>r.byteLength)throw new Yr(n);return ma(e,n.i,new DataView(r,i,n.l))}function Na(e,t,n,r){if(n.p){let i=wa(e,t,n.p,{});Object.defineProperties(r,Object.getOwnPropertyDescriptors(i))}return r}function Pa(e,t,n){return Na(e,t,n,ma(e,n.i,AggregateError([],Qn(n.m))))}function Fa(e,t,n){let r=ha(n,Rn,n.s);return Na(e,t,n,ma(e,n.i,new r(Qn(n.m))))}function Ia(e,t,n){let r=Qr(),i=ma(e,n.i,r.p),a=Za(e,t,n.f);return n.s?r.s(a):r.f(a),i}function La(e,t,n){return ma(e,n.i,Object(Za(e,t,n.f)))}function Ra(e,t,n){let r=e.base.plugins;if(r){let i=Qn(n.c);for(let a=0,o=r.length;a<o;a++){let o=r[a];if(o.tag===i)return ma(e,n.i,o.deserialize(n.s,new ua(e,t),{id:n.i}))}}throw new Wr(n.c)}function za(e,t){let n=ma(e,t.i,ma(e,t.s,Qr()).p);return Sa(e,t.s,22),n}function Ba(e,t,n){let r=e.base.refs.get(n.i);if(r)return Ca(e,n,n.i,22),r.s(Za(e,t,n.a[1])),q;throw new Gr(`Promise`)}function Va(e,t,n){let r=e.base.refs.get(n.i);if(r)return Ca(e,n,n.i,22),r.f(Za(e,t,n.a[1])),q;throw new Gr(`Promise`)}function Ha(e,t,n){return Za(e,t,n.a[0]),si(Za(e,t,n.a[1]))}function Ua(e,t,n){return Za(e,t,n.a[0]),hi(Za(e,t,n.a[1]))}function Wa(e,t,n){let r=ma(e,n.i,fi());Sa(e,n.i,31);let i=n.a,a=i.length;if(a)for(let n=0;n<a;n++)Za(e,t,i[n]);return r}function Ga(e,t,n){let r=e.base.refs.get(n.i);if(r)return Ca(e,n,n.i,31),r.next(Za(e,t,n.f)),q;throw new Gr(`Stream`)}function Ka(e,t,n){let r=e.base.refs.get(n.i);if(r)return Ca(e,n,n.i,31),r.throw(Za(e,t,n.f)),q;throw new Gr(`Stream`)}function qa(e,t,n){let r=e.base.refs.get(n.i);if(r)return Ca(e,n,n.i,31),r.return(Za(e,t,n.f)),q;throw new Gr(`Stream`)}function Ja(e,t,n){return Za(e,t,n.f),q}function Ya(e,t,n){return Za(e,t,n.a[1]),q}function Xa(e,t,n){let r=ma(e,n.i,ii([],n.s,n.l));for(let i=0,a=n.a.length;i<a;i++)r.v[i]=Za(e,t,n.a[i]);return r}function Za(e,t,n){if(t>e.base.depthLimit)throw new Xr(e.base.depthLimit);switch(t+=1,n.t){case 2:return ha(n,In,n.s);case 0:return Number(n.s);case 1:return Qn(String(n.s));case 3:if(String(n.s).length>ia)throw new Yr(n);return BigInt(n.s);case 4:return e.base.refs.get(n.i);case 18:return ga(e,n);case 9:return _a(e,t,n);case 10:case 11:return Ta(e,t,n);case 5:return Ea(e,n);case 6:return Da(e,n);case 7:return Oa(e,t,n);case 8:return ka(e,t,n);case 19:return Aa(e,n);case 16:case 15:return ja(e,t,n);case 20:return Ma(e,t,n);case 14:return Pa(e,t,n);case 13:return Fa(e,t,n);case 12:return Ia(e,t,n);case 17:return ha(n,Fn,n.s);case 21:return La(e,t,n);case 25:return Ra(e,t,n);case 22:return za(e,n);case 23:return Ba(e,t,n);case 24:return Va(e,t,n);case 28:return Ha(e,t,n);case 30:return Ua(e,t,n);case 31:return Wa(e,t,n);case 32:return Ga(e,t,n);case 33:return Ka(e,t,n);case 34:return qa(e,t,n);case 27:return Ja(e,t,n);case 29:return Ya(e,t,n);case 35:return Xa(e,t,n);default:throw new Ur(n)}}function Qa(e,t){try{return Za(e,0,t)}catch(e){throw new Br(e)}}var $a=(()=>T).toString();/=>/.test($a);function eo(e,t){return Qa(la({plugins:ta(t.plugins),refs:t.refs,features:t.features,disabledFeatures:t.disabledFeatures,depthLimit:t.depthLimit}),e)}async function to(e,t={}){let n=ki(1,{plugins:ta(t.plugins),disabledFeatures:t.disabledFeatures});return{t:await Zi(n,e),f:n.base.features,m:Array.from(n.base.marked)}}function no(e){return e}function ro(e){return $i({tag:`$TSR/t/`+e.key,test:e.test,parse:{sync(t,n,r){return{v:n.parse(e.toSerializable(t))}},async async(t,n,r){return{v:await n.parse(e.toSerializable(t))}},stream(t,n,r){return{v:n.parse(e.toSerializable(t))}}},serialize:void 0,deserialize(t,n,r){return e.fromSerializable(n.deserialize(t.v))}})}var io=class{constructor(e,t){this.stream=e,this.hint=t?.hint??`binary`}},ao=globalThis.Buffer,J=!!ao&&typeof ao.from==`function`;function oo(e){if(e.length===0)return``;if(J)return ao.from(e).toString(`base64`);let t=32768,n=[];for(let r=0;r<e.length;r+=t){let i=e.subarray(r,r+t);n.push(String.fromCharCode.apply(null,i))}return btoa(n.join(``))}function so(e){if(e.length===0)return new Uint8Array;if(J){let t=ao.from(e,`base64`);return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}var co=Object.create(null),lo=Object.create(null),uo=e=>new ReadableStream({start(t){e.on({next(e){try{t.enqueue(so(e))}catch{}},throw(e){t.error(e)},return(){try{t.close()}catch{}}})}}),fo=new TextEncoder,po=e=>new ReadableStream({start(t){e.on({next(e){try{typeof e==`string`?t.enqueue(fo.encode(e)):t.enqueue(so(e.$b64))}catch{}},throw(e){t.error(e)},return(){try{t.close()}catch{}}})}}),mo=`(s=>new ReadableStream({start(c){s.on({next(b){try{const d=atob(b),a=new Uint8Array(d.length);for(let i=0;i<d.length;i++)a[i]=d.charCodeAt(i);c.enqueue(a)}catch(_){}},throw(e){c.error(e)},return(){try{c.close()}catch(_){}}})}}))`,ho=`(s=>{const e=new TextEncoder();return new ReadableStream({start(c){s.on({next(v){try{if(typeof v==='string'){c.enqueue(e.encode(v))}else{const d=atob(v.$b64),a=new Uint8Array(d.length);for(let i=0;i<d.length;i++)a[i]=d.charCodeAt(i);c.enqueue(a)}}catch(_){}},throw(x){c.error(x)},return(){try{c.close()}catch(_){}}})}})})`;function go(e){let t=fi(),n=e.getReader();return(async()=>{try{for(;;){let{done:e,value:r}=await n.read();if(e){t.return(void 0);break}t.next(oo(r))}}catch(e){t.throw(e)}finally{n.releaseLock()}})(),t}function _o(e){let t=fi(),n=e.getReader(),r=new TextDecoder(`utf-8`,{fatal:!0});return(async()=>{try{for(;;){let{done:e,value:i}=await n.read();if(e){try{let e=r.decode();e.length>0&&t.next(e)}catch{}t.return(void 0);break}try{let e=r.decode(i,{stream:!0});e.length>0&&t.next(e)}catch{t.next({$b64:oo(i)})}}}catch(e){t.throw(e)}finally{n.releaseLock()}})(),t}var vo=$i({tag:`tss/RawStream`,extends:[$i({tag:`tss/RawStreamFactory`,test(e){return e===co},parse:{sync(e,t,n){return{}},async async(e,t,n){return{}},stream(e,t,n){return{}}},serialize(e,t,n){return mo},deserialize(e,t,n){return co}}),$i({tag:`tss/RawStreamFactoryText`,test(e){return e===lo},parse:{sync(e,t,n){return{}},async async(e,t,n){return{}},stream(e,t,n){return{}}},serialize(e,t,n){return ho},deserialize(e,t,n){return lo}})],test(e){return e instanceof io},parse:{sync(e,t,n){let r=e.hint===`text`?lo:co;return{hint:t.parse(e.hint),factory:t.parse(r),stream:t.parse(fi())}},async async(e,t,n){let r=e.hint===`text`?lo:co,i=e.hint===`text`?_o(e.stream):go(e.stream);return{hint:await t.parse(e.hint),factory:await t.parse(r),stream:await t.parse(i)}},stream(e,t,n){let r=e.hint===`text`?lo:co,i=e.hint===`text`?_o(e.stream):go(e.stream);return{hint:t.parse(e.hint),factory:t.parse(r),stream:t.parse(i)}}},serialize(e,t,n){return`(`+t.serialize(e.factory)+`)(`+t.serialize(e.stream)+`)`},deserialize(e,t,n){let r=t.deserialize(e.stream);return t.deserialize(e.hint)===`text`?po(r):uo(r)}});function yo(e){return $i({tag:`tss/RawStream`,test:()=>!1,parse:{},serialize(){throw Error(`RawStreamDeserializePlugin.serialize should not be called. Client only deserializes.`)},deserialize(t,n,r){return e(typeof n?.deserialize==`function`?n.deserialize(t.streamId):t.streamId)}})}var bo=$i({tag:`$TSR/Error`,test(e){return e instanceof Error},parse:{sync(e,t){return{message:t.parse(e.message)}},async async(e,t){return{message:await t.parse(e.message)}},stream(e,t){return{message:t.parse(e.message)}}},serialize(e,t){return`new Error(`+t.serialize(e.message)+`)`},deserialize(e,t){return Error(t.deserialize(e.message))}}),xo={},So=e=>new ReadableStream({start:t=>{e.on({next:e=>{try{t.enqueue(e)}catch{}},throw:e=>{t.error(e)},return:()=>{try{t.close()}catch{}}})}}),Co=$i({tag:`seroval-plugins/web/ReadableStreamFactory`,test(e){return e===xo},parse:{sync(){return xo},async async(){return await Promise.resolve(xo)},stream(){return xo}},serialize(){return So.toString()},deserialize(){return xo}});function wo(e){let t=fi(),n=e.getReader();async function r(){try{let e=await n.read();e.done?t.return(e.value):(t.next(e.value),await r())}catch(e){t.throw(e)}}return r().catch(()=>{}),t}var To=[bo,vo,$i({tag:`seroval/plugins/web/ReadableStream`,extends:[Co],test(e){return typeof ReadableStream>`u`?!1:e instanceof ReadableStream},parse:{sync(e,t){return{factory:t.parse(xo),stream:t.parse(fi())}},async async(e,t){return{factory:await t.parse(xo),stream:await t.parse(wo(e))}},stream(e,t){return{factory:t.parse(xo),stream:t.parse(wo(e))}}},serialize(e,t){return`(`+t.serialize(e.factory)+`)(`+t.serialize(e.stream)+`)`},deserialize(e,t){return So(t.deserialize(e.stream))}})];function Eo(){return[...(y()?.serializationAdapters)?.map(ro)??[],...To]}var Do=new TextDecoder,Oo=new Uint8Array,ko=16*1024*1024,Ao=32*1024*1024,jo=1024,Mo=1e5;function No(e){let t=new Map,n=new Map,r=new Set,i=!1,a=null,o=0,s,c=new ReadableStream({start(e){s=e},cancel(){i=!0;try{a?.cancel()}catch{}t.forEach(e=>{try{e.error(Error(`Framed response cancelled`))}catch{}}),t.clear(),n.clear(),r.clear()}});function l(e){let i=n.get(e);if(i)return i;if(r.has(e))return new ReadableStream({start(e){e.close()}});if(n.size>=jo)throw Error(`Too many raw streams in framed response (max ${jo})`);let a=new ReadableStream({start(n){t.set(e,n)},cancel(){r.add(e),t.delete(e),n.delete(e)}});return n.set(e,a),a}function u(e){return l(e),t.get(e)}return(async()=>{let n=e.getReader();a=n;let c=[],l=0;function d(){if(l<9)return null;let e=c[0];if(e.length>=9)return{type:e[0],streamId:(e[1]<<24|e[2]<<16|e[3]<<8|e[4])>>>0,length:(e[5]<<24|e[6]<<16|e[7]<<8|e[8])>>>0};let t=new Uint8Array(9),n=0,r=9;for(let e=0;e<c.length&&r>0;e++){let i=c[e],a=Math.min(i.length,r);t.set(i.subarray(0,a),n),n+=a,r-=a}return{type:t[0],streamId:(t[1]<<24|t[2]<<16|t[3]<<8|t[4])>>>0,length:(t[5]<<24|t[6]<<16|t[7]<<8|t[8])>>>0}}function f(e){if(e===0)return Oo;let t=new Uint8Array(e),n=0,r=e;for(;r>0&&c.length>0;){let e=c[0];if(!e)break;let i=Math.min(e.length,r);t.set(e.subarray(0,i),n),n+=i,r-=i,i===e.length?c.shift():c[0]=e.subarray(i)}return l-=e,t}try{for(;;){let{done:e,value:a}=await n.read();if(i||e)break;if(a){if(l+a.length>Ao)throw Error(`Framed response buffer exceeded ${Ao} bytes`);for(c.push(a),l+=a.length;;){let e=d();if(!e)break;let{type:n,streamId:i,length:a}=e;if(n!==h.JSON&&n!==h.CHUNK&&n!==h.END&&n!==h.ERROR)throw Error(`Unknown frame type: ${n}`);if(n===h.JSON){if(i!==0)throw Error(`Invalid JSON frame streamId (expected 0)`)}else if(i===0)throw Error(`Invalid raw frame streamId (expected non-zero)`);if(a>ko)throw Error(`Frame payload too large: ${a} bytes (max ${ko})`);let c=9+a;if(l<c)break;if(++o>Mo)throw Error(`Too many frames in framed response (max ${Mo})`);f(9);let p=f(a);switch(n){case h.JSON:try{s.enqueue(Do.decode(p))}catch{}break;case h.CHUNK:{let e=u(i);e&&e.enqueue(p);break}case h.END:{let e=u(i);if(r.add(i),e){try{e.close()}catch{}t.delete(i)}break}case h.ERROR:{let e=u(i);if(r.add(i),e){let n=Do.decode(p);e.error(Error(n)),t.delete(i)}break}}}}}if(l!==0)throw Error(`Incomplete frame at end of framed response`);try{s.close()}catch{}t.forEach(e=>{try{e.close()}catch{}}),t.clear()}catch(e){try{s.error(e)}catch{}t.forEach(t=>{try{t.error(e)}catch{}}),t.clear()}finally{try{n.releaseLock()}catch{}a=null}})(),{getOrCreateStream:l,jsonChunks:c}}var Po=null;async function Fo(e){e.length>0&&await Promise.allSettled(e)}var Io=Object.prototype.hasOwnProperty;function Lo(e){for(let t in e)if(Io.call(e,t))return!0;return!1}async function Ro(e,t,n){Po||=Eo();let r=t[0],i=r.fetch??n,a=r.data instanceof FormData?`formData`:`payload`,o=r.headers?new Headers(r.headers):new Headers;if(o.set(`x-tsr-serverFn`,`true`),a===`payload`&&o.set(`accept`,`${m}, application/x-ndjson, application/json`),r.method===`GET`){if(a===`formData`)throw Error(`FormData is not supported with GET requests`);let t=await zo(r);if(t!==void 0){let n=Be({payload:t});e.includes(`?`)?e+=`&${n}`:e+=`?${n}`}}let s;if(r.method===`POST`){let e=await Vo(r);e?.contentType&&o.set(`content-type`,e.contentType),s=e?.body}return await Ho(async()=>i(e,{method:r.method,headers:o,signal:r.signal,body:s}))}async function zo(e){let t=!1,n={};if(e.data!==void 0&&(t=!0,n.data=e.data),e.context&&Lo(e.context)&&(t=!0,n.context=e.context),t)return Bo(n)}async function Bo(e){return JSON.stringify(await Promise.resolve(to(e,{plugins:Po})))}async function Vo(e){if(e.data instanceof FormData){let t;return e.context&&Lo(e.context)&&(t=await Bo(e.context)),t!==void 0&&e.data.set(f,t),{body:e.data}}let t=await zo(e);if(t)return{body:t,contentType:`application/json`}}async function Ho(e){let t;try{t=await e()}catch(e){if(e instanceof Response)t=e;else throw console.log(e),e}if(t.headers.get(`x-tss-raw`)===`true`)return t;let n=t.headers.get(`content-type`);if(n||K(),t.headers.get(`x-tss-serialized`)){let e;if(n.includes(`application/x-tss-framed`)){if(v(n),!t.body)throw Error(`No response body for framed response`);let{getOrCreateStream:r,jsonChunks:i}=No(t.body),a=[yo(r),...Po||[]],o=new Map;e=await Uo({jsonStream:i,onMessage:e=>eo(e,{refs:o,plugins:a}),onError(e,t){console.error(e,t)}})}else if(n.includes(`application/json`)){let n=await t.json(),r=[];try{e=eo(n,{plugins:Po})}finally{}await Fo(r)}if(e||K(),e instanceof Error)throw e;return e}if(n.includes(`application/json`)){let e=await t.json(),n=Xe(e);if(n)throw n;if(ze(e))throw e;return e}if(!t.ok)throw Error(await t.text());return t}async function Uo({jsonStream:e,onMessage:t,onError:n}){let r=e.getReader(),{value:i,done:a}=await r.read();if(a||!i)throw Error(`Stream ended before first object`);let o=JSON.parse(i),s=!1,c=(async()=>{try{for(;;){let{value:e,done:i}=await r.read();if(i)break;if(e)try{let n=[];try{t(JSON.parse(e))}finally{}await Fo(n)}catch(t){n?.(`Invalid JSON: ${e}`,t)}}}catch(e){s||n?.(`Stream processing error:`,e)}})(),l,u=[];try{l=t(o)}catch(e){throw s=!0,r.cancel().catch(()=>{}),e}return await Fo(u),Promise.resolve(l).catch(()=>{s=!0,r.cancel().catch(()=>{})}),c.finally(()=>{try{r.releaseLock()}catch{}}),l}function Wo(e){let t=`/_serverFn/`+e;return Object.assign((...e)=>{let n=y()?.serverFns?.fetch;return Ro(t,e,n??fetch)},{url:t,serverFnMeta:{id:e},[p]:!0})}var Go=no({key:`$TSS/serverfn`,test:e=>typeof e!=`function`||!(p in e)?!1:!!e[p],toSerializable:({serverFnMeta:e})=>({functionId:e.id}),fromSerializable:({functionId:e})=>Wo(e)});function Ko(e){return e.replaceAll(`\0`,`/`).replaceAll(`�`,`/`)}function qo(e,t){e.id=t.i,e.__beforeLoadContext=t.b,e.loaderData=t.l,e.status=t.s,e.ssr=t.ssr,e.updatedAt=t.u,e.error=t.e,t.g!==void 0&&(e.globalNotFound=t.g)}async function Jo(e){window.$_TSR||K();let t=e.options.serializationAdapters;if(t?.length){let e=new Map;t.forEach(t=>{e.set(t.key,t.fromSerializable)}),window.$_TSR.t=e,window.$_TSR.buffer.forEach(e=>e())}window.$_TSR.initialized=!0,window.$_TSR.router||K();let n=window.$_TSR.router;n.matches.forEach(e=>{e.i=Ko(e.i)}),n.lastMatchId&&=Ko(n.lastMatchId);let{manifest:r,dehydratedData:i,lastMatchId:a}=n;e.ssr={manifest:r};let o=document.querySelector(`meta[property="csp-nonce"]`)?.content;e.options.ssr={nonce:o},await e.options.hydrate?.(i);let s=e.matchRoutes(e.stores.location.get()),c=Promise.all(s.map(t=>e.loadRouteChunk(e.looseRoutesById[t.routeId])));function l(t){let n=e.looseRoutesById[t.routeId].options.pendingMinMs??e.options.defaultPendingMinMs;if(n){let r=F();t._nonReactive.minPendingPromise=r,t._forcePending=!0,setTimeout(()=>{r.resolve(),e.updateMatch(t.id,e=>(e._nonReactive.minPendingPromise=void 0,{...e,_forcePending:void 0}))},n)}}function u(t){let n=e.looseRoutesById[t.routeId];n&&(n.options.ssr=t.ssr)}let d;s.forEach(e=>{let t=n.matches.find(t=>t.i===e.id);if(!t){e._nonReactive.dehydrated=!1,e.ssr=!1,u(e);return}qo(e,t),u(e),e._nonReactive.dehydrated=e.ssr!==!1,(e.ssr===`data-only`||e.ssr===!1)&&d===void 0&&(d=e.index,l(e))}),e.stores.setMatches(s);let f=e.stores.matches.get(),p=e.stores.location.get();await Promise.all(f.map(async t=>{try{let n=e.looseRoutesById[t.routeId],r=f[t.index-1]?.context??e.options.context;if(n.options.context){let i={deps:t.loaderDeps,params:t.params,context:r??{},location:p,navigate:t=>e.navigate({...t,_fromLocation:p}),buildLocation:e.buildLocation,cause:t.cause,abortController:t.abortController,preload:!1,matches:s,routeId:n.id};t.__routeContext=n.options.context(i)??void 0}t.context={...r,...t.__routeContext,...t.__beforeLoadContext};let i={ssr:e.options.ssr,matches:f,match:t,params:t.params,loaderData:t.loaderData},a=await n.options.head?.(i),o=await n.options.scripts?.(i);t.meta=a?.meta,t.links=a?.links,t.headScripts=a?.scripts,t.styles=a?.styles,t.scripts=o}catch(e){if(ze(e))t.error={isNotFound:!0},console.error(`NotFound error during hydration for routeId: ${t.routeId}`,e);else throw t.error=e,console.error(`Error during hydration for route ${t.routeId}:`,e),e}}));let m=s[s.length-1].id!==a;if(!s.some(e=>e.ssr===!1)&&!m)return s.forEach(e=>{e._nonReactive.dehydrated=void 0}),e.stores.resolvedLocation.set(e.stores.location.get()),c;let h=Promise.resolve().then(()=>e.load()).catch(e=>{console.error(`Error during router hydration:`,e)});if(m){let t=s[1];t||K(),l(t),t._displayPending=!0,t._nonReactive.displayPendingPromise=h,h.then(()=>{e.batch(()=>{e.stores.status.get()===`pending`&&(e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())),e.updateMatch(t.id,e=>({...e,_displayPending:void 0,displayPendingPromise:void 0}))})})}return c}var Y=r(n(),1),Yo=Y.use,Xo=typeof window<`u`?Y.useLayoutEffect:Y.useEffect;function Zo(e){let t=Y.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function Qo(e,t,n={},r={}){Y.useEffect(()=>{if(!e.current||r.disabled||typeof IntersectionObserver!=`function`)return;let i=new IntersectionObserver(([e])=>{t(e)},n);return i.observe(e.current),()=>{i.disconnect()}},[t,n,r.disabled,e])}function $o(e){let t=Y.useRef(null);return Y.useImperativeHandle(e,()=>t.current,[]),t}var X=a();function es({promise:e}){if(Yo)return Yo(e);let t=un(e);if(t[ln].status===`pending`)throw t;if(t[ln].status===`error`)throw t[ln].error;return t[ln].data}function ts(e){let t=(0,X.jsx)(ns,{...e});return e.fallback?(0,X.jsx)(Y.Suspense,{fallback:e.fallback,children:t}):t}function ns(e){let t=es(e);return e.children(t)}function rs(e){let t=e.errorComponent??as;return(0,X.jsx)(is,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?Y.createElement(t,{error:n,reset:r}):e.children})}var is=class extends Y.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function as({error:e}){let[t,n]=Y.useState(!1);return(0,X.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,X.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,X.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,X.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,X.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,X.jsx)(`div`,{children:(0,X.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e.message?(0,X.jsx)(`code`,{children:e.message}):null})}):null]})}function os({children:e,fallback:t=null}){return ss()?(0,X.jsx)(Y.Fragment,{children:e}):(0,X.jsx)(Y.Fragment,{children:t})}function ss(){return Y.useSyncExternalStore(cs,()=>!0,()=>!1)}function cs(){return()=>{}}var ls=Y.createContext(null);function us(e){return Y.useContext(ls)}var ds=Y.createContext(void 0),fs=Y.createContext(void 0),ps=(e=>(e[e.None=0]=`None`,e[e.Mutable=1]=`Mutable`,e[e.Watching=2]=`Watching`,e[e.RecursedCheck=4]=`RecursedCheck`,e[e.Recursed=8]=`Recursed`,e[e.Dirty=16]=`Dirty`,e[e.Pending=32]=`Pending`,e))(ps||{});function ms({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0){n=e.nextSub;continue}for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}while(!0)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(!0)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function hs(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var gs=[],_s=0,{link:vs,unlink:ys,propagate:bs,checkDirty:xs,shallowPropagate:Ss}=ms({update(e){return e._update()},notify(e){gs[ws++]=e,e.flags&=~ps.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=ps.Mutable|ps.Dirty,Os(e))}}),Cs=0,ws=0,Ts,Es=0;function Ds(e){try{++Es,e()}finally{--Es||ks()}}function Os(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=ys(n,e)}function ks(){if(!(Es>0)){for(;Cs<ws;){let e=gs[Cs];gs[Cs++]=void 0,e.notify()}Cs=0,ws=0}}function As(e,t){let n=typeof e==`function`,r=e,i={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:n?ps.None:ps.Mutable,get(){return Ts!==void 0&&vs(i,Ts,_s),i._snapshot},subscribe(e){let t=hs(e),n={current:!1},r=js(()=>{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=Ts,o=t?.compare??Object.is;if(n)Ts=i,++_s,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=ps.Mutable|ps.RecursedCheck);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{Ts=a,n&&(i.flags&=~ps.RecursedCheck),Os(i)}}};return n?(i.flags=ps.Mutable|ps.Dirty,i.get=function(){let e=i.flags;if(e&ps.Dirty||e&ps.Pending&&xs(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&Ss(e)}}else e&ps.Pending&&(i.flags=e&~ps.Pending);return Ts!==void 0&&vs(i,Ts,_s),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(bs(e),Ss(e),ks())}},i}function js(e){let t=()=>{let t=Ts;Ts=n,++_s,n.depsTail=void 0,n.flags=ps.Watching|ps.RecursedCheck;try{return e()}finally{Ts=t,n.flags&=~ps.RecursedCheck,Os(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:ps.Watching|ps.RecursedCheck,notify(){let e=this.flags;e&ps.Dirty||e&ps.Pending&&xs(this.deps,this)?t():this.flags=ps.Watching},stop(){this.flags=ps.None,this.depsTail=void 0,Os(this)}};return t(),n}var Ms=i((e=>{var t=n();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=t.useState,o=t.useEffect,s=t.useLayoutEffect,c=t.useDebugValue;function l(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&l({inst:i})},[e,n,t]),o(function(){return u(i)&&l({inst:i}),e(function(){u(i)&&l({inst:i})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),Ns=i(((e,t)=>{t.exports=Ms()})),Ps=i((e=>{var t=n(),r=Ns();function i(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var a=typeof Object.is==`function`?Object.is:i,o=r.useSyncExternalStore,s=t.useRef,c=t.useEffect,l=t.useMemo,u=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!o){if(o=!0,s=e,e=r(e),i!==void 0&&f.hasValue){var t=f.value;if(i(t,e))return c=t}return c=e}if(t=c,a(s,e))return t;var n=r(e);return i!==void 0&&i(t,n)?(s=e,t):(s=e,c=n)}var o=!1,s,c,l=n===void 0?null:n;return[function(){return e(t())},l===null?void 0:function(){return e(l())}]},[t,n,r,i]);var p=o(e,d[0],d[1]);return c(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}})),Fs=i(((e,t)=>{t.exports=Ps()}))();function Is(e,t){return e===t}function Ls(e,t,n=Is){let r=(0,Y.useCallback)(t=>{if(!e)return()=>{};let{unsubscribe:n}=e.subscribe(t);return n},[e]),i=(0,Y.useCallback)(()=>e?.get(),[e]);return(0,Fs.useSyncExternalStoreWithSelector)(r,i,i,t,n)}var Rs={get:()=>void 0,subscribe:()=>({unsubscribe:()=>{}})};function zs(e){let t=us(),n=Y.useContext(e.from?fs:ds),r=e.from??n,i=r?e.from?t.stores.getRouteMatchStore(r):t.stores.matchStores.get(r):void 0,a=Y.useRef(void 0);return Ls(i??Rs,n=>{if((e.shouldThrow??!0)&&!n&&K(),n===void 0)return;let r=e.select?e.select(n):n;if(e.structuralSharing??t.options.defaultStructuralSharing){let e=k(a.current,r);return a.current=e,e}return r})}function Bs(e){return zs({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function Vs(e){let{select:t,...n}=e;return zs({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function Hs(e){return zs({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function Us(e){return zs({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function Ws(e){let t=us();return Y.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function Gs(e){let t=us(),n=Ws(),r=Y.useRef(null);return Xo(()=>{r.current!==e&&(n(e),r.current=e)},[t,e,n]),null}function Ks(e){return zs({...e,select:t=>e.select?e.select(t.context):t.context})}var qs=l();function Js(e,t){let n=us(),r=$o(t),{activeProps:i,inactiveProps:a,activeOptions:o,to:s,preload:c,preloadDelay:l,preloadIntentProximity:u,hashScrollIntoView:d,replace:f,startTransition:p,resetScroll:m,viewTransition:h,children:g,target:_,disabled:v,style:y,className:b,onClick:x,onBlur:C,onFocus:w,onMouseEnter:E,onMouseLeave:D,onTouchStart:O,ignoreBlocker:k,params:A,search:j,hash:M,state:N,mask:F,reloadDocument:I,unsafeRelative:L,from:R,_fromLocation:z,...B}=e,H=ss(),U=Y.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),W=Ls(n.stores.location,e=>e,(e,t)=>e.href===t.href),G=Y.useMemo(()=>{let e={_fromLocation:W,...U};return n.buildLocation(e)},[n,W,U]),ee=G.maskedLocation?G.maskedLocation.publicHref:G.publicHref,te=G.maskedLocation?G.maskedLocation.external:G.external,K=Y.useMemo(()=>rc(ee,te,n.history,v),[v,te,ee,n.history]),ne=Y.useMemo(()=>{if(K?.external)return V(K.href,n.protocolAllowlist)?void 0:K.href;if(!ic(s)&&!(typeof s!=`string`||s.indexOf(`:`)===-1))try{return new URL(s),V(s,n.protocolAllowlist)?void 0:s}catch{}},[s,K,n.protocolAllowlist]),re=Y.useMemo(()=>{if(ne)return!1;if(o?.exact){if(!Ne(W.pathname,G.pathname,n.basepath))return!1}else{let e=Me(W.pathname,n.basepath),t=Me(G.pathname,n.basepath);if(!(e.startsWith(t)&&(e.length===t.length||e[t.length]===`/`)))return!1}return(o?.includeSearch??!0)&&!P(W.search,G.search,{partial:!o?.exact,ignoreUndefined:!o?.explicitUndefined})?!1:o?.includeHash?H&&W.hash===G.hash:!0},[o?.exact,o?.explicitUndefined,o?.includeHash,o?.includeSearch,W,ne,H,G.hash,G.pathname,G.search,n.basepath]),ie=re?S(i,{})??Xs:Ys,ae=re?Ys:S(a,{})??Ys,oe=[b,ie.className,ae.className].filter(Boolean).join(` `),se=(y||ie.style||ae.style)&&{...y,...ie.style,...ae.style},[ce,le]=Y.useState(!1),ue=Y.useRef(!1),de=e.reloadDocument||ne?!1:c??n.options.defaultPreload,fe=l??n.options.defaultPreloadDelay??0,pe=Y.useCallback(()=>{n.preloadRoute({...U,_builtLocation:G}).catch(e=>{console.warn(e),console.warn(dn)})},[n,U,G]);Qo(r,Y.useCallback(e=>{e?.isIntersecting&&pe()},[pe]),tc,{disabled:!!v||de!==`viewport`}),Y.useEffect(()=>{ue.current||!v&&de===`render`&&(pe(),ue.current=!0)},[v,pe,de]);let me=e=>{let t=e.currentTarget.getAttribute(`target`),r=_===void 0?t:_;if(!v&&!oc(e)&&!e.defaultPrevented&&(!r||r===`_self`)&&e.button===0){e.preventDefault(),(0,qs.flushSync)(()=>{le(!0)});let t=n.subscribe(`onResolved`,()=>{t(),le(!1)});n.navigate({...U,replace:f,resetScroll:m,hashScrollIntoView:d,startTransition:p,viewTransition:h,ignoreBlocker:k})}};if(ne)return{...B,ref:r,href:ne,...g&&{children:g},..._&&{target:_},...v&&{disabled:v},...y&&{style:y},...b&&{className:b},...x&&{onClick:x},...C&&{onBlur:C},...w&&{onFocus:w},...E&&{onMouseEnter:E},...D&&{onMouseLeave:D},...O&&{onTouchStart:O}};let he=e=>{if(v||de!==`intent`)return;if(!fe){pe();return}let t=e.currentTarget;if(ec.has(t))return;let n=setTimeout(()=>{ec.delete(t),pe()},fe);ec.set(t,n)},ge=e=>{v||de!==`intent`||pe()},_e=e=>{if(v||!de||!fe)return;let t=e.currentTarget,n=ec.get(t);n&&(clearTimeout(n),ec.delete(t))};return{...B,...ie,...ae,href:K?.href,ref:r,onClick:nc([x,me]),onBlur:nc([C,_e]),onFocus:nc([w,he]),onMouseEnter:nc([E,he]),onMouseLeave:nc([D,_e]),onTouchStart:nc([O,ge]),disabled:!!v,target:_,...se&&{style:se},...oe&&{className:oe},...v&&Zs,...re&&Qs,...H&&ce&&$s}}var Ys={},Xs={className:`active`},Zs={role:`link`,"aria-disabled":!0},Qs={"data-status":`active`,"aria-current":`page`},$s={"data-transitioning":`transitioning`},ec=new WeakMap,tc={rootMargin:`100px`},nc=e=>t=>{for(let n of e)if(n){if(t.defaultPrevented)return;n(t)}};function rc(e,t,n,r){if(!r)return t?{href:e,external:!0}:{href:n.createHref(e)||`/`,external:!1}}function ic(e){if(typeof e!=`string`)return!1;let t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var ac=Y.forwardRef((e,t)=>{let{_asChild:n,...r}=e,{type:i,...a}=Js(r,t),o=typeof r.children==`function`?r.children({isActive:a[`data-status`]===`active`}):r.children;if(!n){let{disabled:e,...t}=a;return Y.createElement(`a`,t,o)}return Y.createElement(n,a,o)});function oc(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var sc=class extends vn{constructor(e){super(e),this.useMatch=e=>zs({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>Ks({...e,from:this.id}),this.useSearch=e=>Us({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>Hs({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>Vs({...e,from:this.id}),this.useLoaderData=e=>Bs({...e,from:this.id}),this.useNavigate=()=>Ws({from:this.fullPath}),this.Link=Y.forwardRef((e,t)=>(0,X.jsx)(ac,{ref:t,from:this.fullPath,...e}))}};function cc(e){return new sc(e)}var lc=class extends yn{constructor(e){super(e),this.useMatch=e=>zs({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>Ks({...e,from:this.id}),this.useSearch=e=>Us({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>Hs({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>Vs({...e,from:this.id}),this.useLoaderData=e=>Bs({...e,from:this.id}),this.useNavigate=()=>Ws({from:this.fullPath}),this.Link=Y.forwardRef((e,t)=>(0,X.jsx)(ac,{ref:t,from:this.fullPath,...e}))}};function uc(e){return new lc(e)}function dc(e){return new fc(e,{silent:!0}).createRoute}var fc=class{constructor(e,t){this.path=e,this.createRoute=e=>{let t=cc(e);return t.isRoot=!1,t},this.silent=t?.silent}},pc=class{constructor(e){this.useMatch=e=>zs({select:e?.select,from:this.options.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>Ks({...e,from:this.options.id}),this.useSearch=e=>Us({select:e?.select,structuralSharing:e?.structuralSharing,from:this.options.id}),this.useParams=e=>Hs({select:e?.select,structuralSharing:e?.structuralSharing,from:this.options.id}),this.useLoaderDeps=e=>Vs({...e,from:this.options.id}),this.useLoaderData=e=>Bs({...e,from:this.options.id}),this.useNavigate=()=>Ws({from:us().routesById[this.options.id].fullPath}),this.options=e}};function mc(e){return typeof e==`object`?new pc(e):t=>new pc({id:e,...t})}function hc(e,t){let n,r,i,a,o=()=>(n||=e().then(e=>{n=void 0,r=e[t??`default`]}).catch(e=>{if(i=e,I(i)&&i instanceof Error&&typeof window<`u`&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;sessionStorage.getItem(e)||(sessionStorage.setItem(e,`1`),a=!0)}}),n),s=function(e){if(a)throw window.location.reload(),new Promise(()=>{});if(i)throw i;if(!r)if(Yo)Yo(o());else throw o();return Y.createElement(r,e)};return s.preload=o,s}function gc(e){let t=us(),n=`not-found-${Ls(t.stores.location,e=>e.pathname)}-${Ls(t.stores.status,e=>e)}`;return(0,X.jsx)(rs,{getResetKey:()=>n,onCatch:(t,n)=>{if(ze(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(ze(t))return e.fallback?.(t);throw t},children:e.children})}function _c(){return(0,X.jsx)(`p`,{children:`Not Found`})}function vc(e){return(0,X.jsx)(X.Fragment,{children:e.children})}function yc(e,t,n){return t.options.notFoundComponent?(0,X.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,X.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,X.jsx)(_c,{})}var bc=Y.memo(function({matchId:e}){let t=us(),n=t.stores.matchStores.get(e);n||K();let r=Ls(t.stores.loadedAt,e=>e),i=Ls(n,e=>e);return(0,X.jsx)(xc,{router:t,matchId:e,resetKey:r,matchState:Y.useMemo(()=>{let e=i.routeId,n=t.routesById[e].parentRoute?.id;return{routeId:e,ssr:i.ssr,_displayPending:i._displayPending,parentRouteId:n}},[i._displayPending,i.routeId,i.ssr,t.routesById])})});function xc({router:e,matchId:t,resetKey:n,matchState:r}){let i=e.routesById[r.routeId],a=i.options.pendingComponent??e.options.defaultPendingComponent,o=a?(0,X.jsx)(a,{}):null,s=i.options.errorComponent??e.options.defaultErrorComponent,c=i.options.onCatch??e.options.defaultOnCatch,l=i.isRoot?i.options.notFoundComponent??e.options.notFoundRoute?.options.component:i.options.notFoundComponent,u=r.ssr===!1||r.ssr===`data-only`,d=(!i.isRoot||i.options.wrapInSuspense||u)&&(i.options.wrapInSuspense??a??(i.options.errorComponent?.preload||u))?Y.Suspense:vc,f=s?rs:vc,p=l?gc:vc;return(0,X.jsxs)(i.isRoot?i.options.shellComponent??vc:vc,{children:[(0,X.jsx)(ds.Provider,{value:t,children:(0,X.jsx)(d,{fallback:o,children:(0,X.jsx)(f,{getResetKey:()=>n,errorComponent:s||as,onCatch:(e,t)=>{if(ze(e))throw e.routeId??=r.routeId,e;c?.(e,t)},children:(0,X.jsx)(p,{fallback:e=>{if(e.routeId??=r.routeId,!l||e.routeId&&e.routeId!==r.routeId||!e.routeId&&!i.isRoot)throw e;return Y.createElement(l,e)},children:u||r._displayPending?(0,X.jsx)(os,{fallback:o,children:(0,X.jsx)(Cc,{matchId:t})}):(0,X.jsx)(Cc,{matchId:t})})})})}),r.parentRouteId===`__root__`?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(Sc,{resetKey:n}),(e.options.scrollRestoration,null)]}):null]})}function Sc({resetKey:e}){let t=us(),n=Y.useRef(void 0);return Xo(()=>{let e=t.latestLocation.href;(n.current===void 0||n.current!==e)&&(t.emit({type:`onRendered`,...It(t.stores.location.get(),t.stores.resolvedLocation.get())}),n.current=e)},[t.latestLocation.state.__TSR_key,e,t]),null}var Cc=Y.memo(function({matchId:e}){let t=us(),n=(e,n)=>t.getMatch(e.id)?._nonReactive[n]??e._nonReactive[n],r=t.stores.matchStores.get(e);r||K();let i=Ls(r,e=>e),a=i.routeId,o=t.routesById[a],s=Y.useMemo(()=>{let e=(t.routesById[a].options.remountDeps??t.options.defaultRemountDeps)?.({routeId:a,loaderDeps:i.loaderDeps,params:i._strictParams,search:i._strictSearch});return e?JSON.stringify(e):void 0},[a,i.loaderDeps,i._strictParams,i._strictSearch,t.options.defaultRemountDeps,t.routesById]),c=Y.useMemo(()=>{let e=o.options.component??t.options.defaultComponent;return e?(0,X.jsx)(e,{},s):(0,X.jsx)(wc,{})},[s,o.options.component,t.options.defaultComponent]);if(i._displayPending)throw n(i,`displayPendingPromise`);if(i._forcePending)throw n(i,`minPendingPromise`);if(i.status===`pending`){let e=o.options.pendingMinMs??t.options.defaultPendingMinMs;if(e){let n=t.getMatch(i.id);if(n&&!n._nonReactive.minPendingPromise){let t=F();n._nonReactive.minPendingPromise=t,setTimeout(()=>{t.resolve(),n._nonReactive.minPendingPromise=void 0},e)}}throw n(i,`loadPromise`)}if(i.status===`notFound`)return ze(i.error)||K(),yc(t,o,i.error);if(i.status===`redirected`)throw Ye(i.error)||K(),n(i,`loadPromise`);if(i.status===`error`)throw i.error;return c}),wc=Y.memo(function(){let e=us(),t=Y.useContext(ds),n,r=!1,i;{let a=t?e.stores.matchStores.get(t):void 0;[n,r]=Ls(a,e=>[e?.routeId,e?.globalNotFound??!1]),i=Ls(e.stores.matchesId,e=>e[e.findIndex(e=>e===t)+1])}let a=n?e.routesById[n]:void 0,o=e.options.defaultPendingComponent?(0,X.jsx)(e.options.defaultPendingComponent,{}):null;if(r)return a||K(),yc(e,a,void 0);if(!i)return null;let s=(0,X.jsx)(bc,{matchId:i});return n===`__root__`?(0,X.jsx)(Y.Suspense,{fallback:o,children:s}):s});function Tc(){let e=us(),t=Y.useRef({router:e,mounted:!1}),[n,r]=Y.useState(!1),i=Ls(e.stores.isLoading,e=>e),a=Ls(e.stores.hasPending,e=>e),o=Zo(i),s=i||n||a,c=Zo(s),l=i||a,u=Zo(l);return e.startTransition=e=>{r(!0),Y.startTransition(()=>{e(),r(!1)})},Y.useEffect(()=>{let t=e.history.subscribe(e.load),n=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return Ae(e.latestLocation.publicHref)!==Ae(n.publicHref)&&e.commitLocation({...n,replace:!0}),()=>{t()}},[e,e.history]),Xo(()=>{typeof window<`u`&&e.ssr||t.current.router===e&&t.current.mounted||(t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(e){console.error(e)}})())},[e]),Xo(()=>{o&&!i&&e.emit({type:`onLoad`,...It(e.stores.location.get(),e.stores.resolvedLocation.get())})},[o,e,i]),Xo(()=>{u&&!l&&e.emit({type:`onBeforeRouteMount`,...It(e.stores.location.get(),e.stores.resolvedLocation.get())})},[l,u,e]),Xo(()=>{if(c&&!s){let t=It(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:`onResolved`,...t}),Ds(()=>{e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())})}},[s,c,e]),null}function Ec(){let e=us(),t=e.routesById.__root__.options.pendingComponent??e.options.defaultPendingComponent,n=t?(0,X.jsx)(t,{}):null,r=(0,X.jsxs)(typeof document<`u`&&e.ssr?vc:Y.Suspense,{fallback:n,children:[(0,X.jsx)(Tc,{}),(0,X.jsx)(Dc,{})]});return e.options.InnerWrap?(0,X.jsx)(e.options.InnerWrap,{children:r}):r}function Dc(){let e=us(),t=Ls(e.stores.firstId,e=>e),n=Ls(e.stores.loadedAt,e=>e),r=t?(0,X.jsx)(bc,{matchId:t}):null;return(0,X.jsx)(ds.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:(0,X.jsx)(rs,{getResetKey:()=>n,errorComponent:as,onCatch:void 0,children:r})})}var Oc=e=>({createMutableStore:As,createReadonlyStore:As,batch:Ds}),kc=e=>new Ac(e),Ac=class extends Rt{constructor(e){super(e,Oc)}};function jc({router:e,children:t,...n}){E(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,X.jsx)(ls.Provider,{value:e,children:t});return e.options.Wrap?(0,X.jsx)(e.options.Wrap,{children:r}):r}function Mc({router:e,...t}){return(0,X.jsx)(jc,{router:e,...t,children:(0,X.jsx)(Ec,{})})}function Nc(e){let t=us(),n=(0,Y.useRef)(void 0);return Ls(t.stores.location,r=>{let i=e?.select?e.select(r):r;if(e?.structuralSharing??t.options.defaultStructuralSharing){let e=k(n.current,i);return n.current=e,e}return i})}function Pc(e,t){if(t)for(let[n,r]of Object.entries(t))n!==`suppressHydrationWarning`&&r!==void 0&&r!==!1&&e.setAttribute(n,typeof r==`boolean`?``:String(r))}function Fc(e){let{attrs:t,children:n,nonce:r,preventScriptHoist:i}=e;switch(e.tag){case`title`:return(0,X.jsx)(`title`,{...t,suppressHydrationWarning:!0,children:n});case`meta`:return(0,X.jsx)(`meta`,{...t,suppressHydrationWarning:!0});case`link`:return(0,X.jsx)(`link`,{...t,precedence:t?.precedence??(t?.rel===`stylesheet`?`default`:void 0),nonce:r,suppressHydrationWarning:!0});case`style`:return e.inlineCss,(0,X.jsx)(`style`,{...t,dangerouslySetInnerHTML:{__html:n},nonce:r});case`script`:return(0,X.jsx)(Ic,{attrs:t,preventScriptHoist:i,children:n});default:return null}}function Ic({attrs:e,children:t,preventScriptHoist:n}){us();let r=ss(),i=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;if(Y.useEffect(()=>{if(!i){if(e?.src){let t=(()=>{try{let t=document.baseURI||window.location.href;return new URL(e.src,t).href}catch{return e.src}})();for(let e of document.querySelectorAll(`script[src]`))if(e.src===t)return;let n=document.createElement(`script`);return Pc(n,e),document.head.appendChild(n),()=>n.remove()}if(typeof t==`string`){let n=typeof e?.type==`string`?e.type:`text/javascript`,r=typeof e?.nonce==`string`?e.nonce:void 0;for(let e of document.querySelectorAll(`script:not([src])`)){if(!(e instanceof HTMLScriptElement))continue;let i=e.getAttribute(`type`)??`text/javascript`,a=e.getAttribute(`nonce`)??void 0;if(e.textContent===t&&i===n&&a===r)return}let i=document.createElement(`script`);return i.textContent=t,Pc(i,e),document.head.appendChild(i),()=>i.remove()}}},[e,t,i]),i&&typeof t==`string`)return(0,X.jsx)(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}});if(!r){if(e?.src)return(0,X.jsx)(`script`,{...e,suppressHydrationWarning:!0});if(typeof t==`string`)return(0,X.jsx)(`script`,{...e,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0})}return null}var Lc=e=>{let t=us(),n=t.options.ssr?.nonce,r=Ls(t.stores.matches,e=>e.map(e=>e.meta).filter(e=>e!==void 0),P),i=Y.useMemo(()=>{let e=[],t={},i;for(let a=r.length-1;a>=0;a--){let o=r[a];for(let r=o.length-1;r>=0;r--){let a=o[r];if(a)if(a.title)i||={tag:`title`,children:a.title};else if(`script:ld+json`in a)try{let t=JSON.stringify(a[`script:ld+json`]);e.push({tag:`script`,attrs:{type:`application/ld+json`},children:W(t)})}catch{}else{let r=a.name??a.property;if(r){if(t[r])continue;t[r]=!0}e.push({tag:`meta`,attrs:{...a,nonce:n}})}}}return i&&e.push(i),n&&e.push({tag:`meta`,attrs:{property:`csp-nonce`,content:n}}),e.reverse(),e},[r,n]),a=Ls(t.stores.matches,e=>e.flatMap(e=>e.links??[]).filter(e=>e!==void 0).map(e=>({tag:`link`,attrs:{...e,nonce:n}})),P),o=Ls(t.stores.matches,r=>{let i=t.ssr?.manifest,a=[];return i?(r.forEach(t=>{i.routes[t.routeId]?.css?.forEach(t=>{let r=_n(t);a.push({tag:`link`,attrs:{rel:`stylesheet`,...r,crossOrigin:fn(e,`stylesheet`)??r.crossOrigin,suppressHydrationWarning:!0,nonce:n}})})}),i.inlineStyle&&a.push({tag:`style`,attrs:{...i.inlineStyle.attrs,nonce:n},children:i.inlineStyle.children,inlineCss:!0}),a):a},P),s=Ls(t.stores.matches,r=>{let i=[],a=t.ssr?.manifest;return a&&r.forEach(t=>{a.routes[t.routeId]?.preloads?.forEach(t=>{i.push({tag:`link`,attrs:{...mn(a,t,e),nonce:n}})})}),i},P),c=Ls(t.stores.matches,e=>e.flatMap(e=>e.styles??[]).filter(e=>e!==void 0).map(({children:e,...t})=>({tag:`style`,attrs:{...t,nonce:n},children:e})),P),l=Ls(t.stores.matches,e=>e.flatMap(e=>e.headScripts??[]).filter(e=>e!==void 0).map(({children:e,...t})=>({tag:`script`,attrs:{...t,nonce:n},children:e})),P),u=[];return gn(u,i),u.push(...s),gn(u,a),u.push(...o),gn(u,c),gn(u,l),u};function Rc(e){let t=Lc(e.assetCrossOrigin),n=us().options.ssr?.nonce;return(0,X.jsx)(X.Fragment,{children:t.map(e=>(0,Y.createElement)(Fc,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:n}))})}var zc=()=>{let e=us(),t=e.options.ssr?.nonce,n=n=>{let r=[],i=e.ssr?.manifest;if(!i)return[];for(let e of n){let n=i.routes[e.routeId]?.scripts;if(n)for(let e of n)r.push({tag:`script`,attrs:{...e.attrs,nonce:t},children:e.children,...typeof e.attrs?.src==`string`?{preventScriptHoist:!0}:{}})}return r},r=e=>e.map(e=>e.scripts).flat(1).filter(Boolean).map(({children:e,...n})=>({tag:`script`,attrs:{...n,suppressHydrationWarning:!0,nonce:t},children:e})),i=Ls(e.stores.matches,n,P);return Bc(e,Ls(e.stores.matches,r,P),i)};function Bc(e,t,n){let r=[...t,...n];return(0,X.jsx)(X.Fragment,{children:r.map((e,t)=>(0,Y.createElement)(Fc,{...e,key:`tsr-scripts-${e.tag}-${t}`}))})}var Vc={"common.brand":`MOST PEOPLE`,"common.product":`MostBox`,"common.web3":`Web3`,"common.cancel":`取消`,"common.confirm":`确认`,"common.processing":`处理中...`,"common.copy":`复制`,"common.download":`下载`,"common.open":`打开`,"common.close":`关闭`,"common.copied":`已复制`,"common.back":`上一页`,"common.backHome":`回首页`,"common.moreActions":`更多操作`,"common.theme.toggle":`切换主题`,"common.locale.choose":`选择语言`,"common.locale.current":`当前语言`,"common.locale.switchToChinese":`切换到中文`,"common.locale.switchToEnglish":`切换到英文`,"common.status.checking":`检测中`,"common.status.connected":`已连接`,"common.status.needsConnection":`需连接`,"common.status.ready":`已就绪`,"nav.downloadClient":`下载客户端`,"nav.openWeb":`打开 Web`,"nav.getStarted":`开始使用`,"nav.profile":`个人资料`,"nav.accountMenu":`账号菜单`,"nav.editDisplayName":`修改名称`,"nav.displayNamePlaceholder":`输入显示名称`,"nav.changeAvatar":`修改头像`,"nav.avatarUrlPlaceholder":`输入头像 URL`,"nav.avatarUrlInvalid":`请输入 http 或 https 头像 URL`,"footer.about":`关于`,"footer.network":`网络`,"errorBoundary.title":`出错了`,"errorBoundary.desc":`发生了意外错误,请尝试重新加载页面`,"errorBoundary.reload":`重新加载`,"notFound.title":`页面未找到`,"notFound.desc":`你访问的页面似乎已经迷失在 P2P 网络中了`,"appGlobals.syncStartFailed":`账号同步启动失败`,"appShell.openMenu":`打开菜单`,"appShell.expandSidebar":`展开侧边栏`,"appShell.collapseSidebar":`收起侧边栏`,"appShell.openSidebar":`打开侧边栏`},Hc={"common.brand":`MOST PEOPLE`,"common.product":`MostBox`,"common.web3":`Web3`,"common.cancel":`取消`,"common.confirm":`確認`,"common.processing":`處理中...`,"common.copy":`複製`,"common.download":`下載`,"common.open":`開啟`,"common.close":`關閉`,"common.copied":`已複製`,"common.back":`上一頁`,"common.backHome":`回首頁`,"common.moreActions":`更多操作`,"common.theme.toggle":`切換主題`,"common.locale.choose":`選擇語言`,"common.locale.current":`目前語言`,"common.locale.switchToChinese":`切換到中文`,"common.locale.switchToEnglish":`切換到英文`,"common.status.checking":`檢測中`,"common.status.connected":`已連線`,"common.status.needsConnection":`需連線`,"common.status.ready":`已就緒`,"nav.downloadClient":`下載用戶端`,"nav.openWeb":`開啟 Web`,"nav.getStarted":`開始使用`,"nav.profile":`個人資料`,"nav.accountMenu":`帳號選單`,"nav.editDisplayName":`修改名稱`,"nav.displayNamePlaceholder":`輸入顯示名稱`,"nav.changeAvatar":`修改頭像`,"nav.avatarUrlPlaceholder":`輸入頭像 URL`,"nav.avatarUrlInvalid":`請輸入 http 或 https 頭像 URL`,"footer.about":`關於`,"footer.network":`網路`,"errorBoundary.title":`出錯了`,"errorBoundary.desc":`發生了意外錯誤,請嘗試重新載入頁面`,"errorBoundary.reload":`重新載入`,"notFound.title":`頁面未找到`,"notFound.desc":`你訪問的頁面似乎已經迷失在 P2P 網路中了`,"appGlobals.syncStartFailed":`帳號同步啟動失敗`,"appShell.openMenu":`開啟選單`,"appShell.expandSidebar":`展開側邊欄`,"appShell.collapseSidebar":`收起側邊欄`,"appShell.openSidebar":`開啟側邊欄`},Uc={"common.brand":`MOST PEOPLE`,"common.product":`MostBox`,"common.web3":`Web3`,"common.cancel":`Cancel`,"common.confirm":`Confirm`,"common.processing":`Processing...`,"common.copy":`Copy`,"common.download":`Download`,"common.open":`Open`,"common.close":`Close`,"common.copied":`Copied`,"common.back":`Back`,"common.backHome":`Back home`,"common.moreActions":`More actions`,"common.theme.toggle":`Toggle theme`,"common.locale.choose":`Choose language`,"common.locale.current":`Current language`,"common.locale.switchToChinese":`Switch to Chinese`,"common.locale.switchToEnglish":`Switch to English`,"common.status.checking":`Checking`,"common.status.connected":`Connected`,"common.status.needsConnection":`Needs connection`,"common.status.ready":`Ready`,"nav.downloadClient":`Download client`,"nav.openWeb":`Open Web`,"nav.getStarted":`Get Started`,"nav.profile":`Profile`,"nav.accountMenu":`Account menu`,"nav.editDisplayName":`Edit display name`,"nav.displayNamePlaceholder":`Enter a display name`,"nav.changeAvatar":`Change avatar`,"nav.avatarUrlPlaceholder":`Enter an avatar URL`,"nav.avatarUrlInvalid":`Enter an http or https avatar URL`,"footer.about":`About`,"footer.network":`Network`,"errorBoundary.title":`Something went wrong`,"errorBoundary.desc":`An unexpected error occurred. Try reloading the page.`,"errorBoundary.reload":`Reload`,"notFound.title":`Page not found`,"notFound.desc":`The page you opened seems to be lost in the P2P network.`,"appGlobals.syncStartFailed":`Failed to start account sync`,"appShell.openMenu":`Open menu`,"appShell.expandSidebar":`Expand sidebar`,"appShell.collapseSidebar":`Collapse sidebar`,"appShell.openSidebar":`Open sidebar`},Wc={"download.meta.title":`下载 MostBox 桌面客户端`,"download.meta.desc":`下载 MostBox 桌面客户端,获得完整的 P2P 文件分享、下载校验和持续做种能力`,"download.hero.title":`下载客户端`,"download.hero.desc":`桌面客户端是当前 MVP 的首选入口,内置本地 P2P 节点,提供发布、下载校验和持续做种的完整能力。Web 端只连接已有 MostBox 节点。`,"download.platforms.title":`选择你的平台`,"download.comparison.title":`Web 端 vs 桌面端`,"download.comparison.feature":`功能`,"download.comparison.web":`Web 端`,"download.comparison.desktop":`桌面端`,"download.comparison.node":`节点能力`,"download.comparison.fileSharing":`P2P 文件分享`,"download.comparison.verification":`下载校验`,"download.comparison.seeding":`持续做种`,"download.comparison.largeFiles":`大文件传输`,"download.comparison.webConnectsNode":`连接已有节点`,"download.comparison.webDependsNode":`依赖所连节点`,"download.comparison.desktopBuiltinNode":`内置本地节点`,"download.comparison.desktopFull":`完整支持`,"download.comparison.desktopDefaultOn":`默认开启`,"download.comparison.desktop10gb":`10GB 上限内`,"download.npmNote":`使用 npm 入口请先安装 Node.js >= 22.12,然后运行 npx most-box@latest 启动本机完整节点。`,"download.source.label":`下载来源`,"download.source.r2Mirror":`Cloudflare R2 高速镜像`,"download.source.loading":`正在获取 Cloudflare R2 高速镜像。`,"download.source.ready":`当前版本 {version},可切换 Cloudflare R2 或 GitHub Releases 下载。`,"download.source.fallback":`无法获取高速镜像信息,已切换到 GitHub Releases 备用下载。`,"download.platform.windows.desc":`Windows 10 或更高版本`,"download.platform.macos.desc":`macOS 12 Monterey 或更高版本`,"download.platform.linux.desc":`Ubuntu 20.04+ / Debian 11+ / 其他主流发行版`,"download.platform.source":`来源`,"download.platform.size":`大小`,"download.platform.action":`下载 {ext}`,"download.platform.current":`当前`},Gc={"download.meta.title":`下載 MostBox 桌面用戶端`,"download.meta.desc":`下載 MostBox 桌面用戶端,獲得完整的 P2P 檔案分享、下載校驗和持續做種能力`,"download.hero.title":`下載用戶端`,"download.hero.desc":`桌面用戶端是當前 MVP 的首選入口,內建本機 P2P 節點,提供發布、下載校驗和持續做種的完整能力。Web 端只連線已有 MostBox 節點。`,"download.platforms.title":`選擇你的平臺`,"download.comparison.title":`Web 端 vs 桌面端`,"download.comparison.feature":`功能`,"download.comparison.web":`Web 端`,"download.comparison.desktop":`桌面端`,"download.comparison.node":`節點能力`,"download.comparison.fileSharing":`P2P 檔案分享`,"download.comparison.verification":`下載校驗`,"download.comparison.seeding":`持續做種`,"download.comparison.largeFiles":`大檔案傳輸`,"download.comparison.webConnectsNode":`連線已有節點`,"download.comparison.webDependsNode":`依賴所連節點`,"download.comparison.desktopBuiltinNode":`內建本機節點`,"download.comparison.desktopFull":`完整支援`,"download.comparison.desktopDefaultOn":`預設開啟`,"download.comparison.desktop10gb":`10GB 上限內`,"download.npmNote":`使用 npm 入口請先安裝 Node.js >= 22.12,然後執行 npx most-box@latest 啟動本機完整節點。`,"download.source.label":`下載來源`,"download.source.r2Mirror":`Cloudflare R2 高速映象`,"download.source.loading":`正在取得 Cloudflare R2 高速映象。`,"download.source.ready":`當前版本 {version},可切換 Cloudflare R2 或 GitHub Releases 下載。`,"download.source.fallback":`無法取得高速映象資訊,已切換到 GitHub Releases 備用下載。`,"download.platform.windows.desc":`Windows 10 或更高版本`,"download.platform.macos.desc":`macOS 12 Monterey 或更高版本`,"download.platform.linux.desc":`Ubuntu 20.04+ / Debian 11+ / 其他主流發行版`,"download.platform.source":`來源`,"download.platform.size":`大小`,"download.platform.action":`下載 {ext}`,"download.platform.current":`當前`},Kc={"download.meta.title":`Download the MostBox desktop client`,"download.meta.desc":`Download the MostBox desktop client for full P2P sharing, verification, and continuous seeding.`,"download.hero.title":`Download client`,"download.hero.desc":`The desktop client is the preferred MVP entry point. It includes a local P2P node and full publish, download verification, and continuous seeding support. The Web entry only connects to existing MostBox nodes.`,"download.platforms.title":`Choose your platform`,"download.comparison.title":`Web vs desktop`,"download.comparison.feature":`Feature`,"download.comparison.web":`Web`,"download.comparison.desktop":`Desktop`,"download.comparison.node":`Node capability`,"download.comparison.fileSharing":`P2P file sharing`,"download.comparison.verification":`Download verification`,"download.comparison.seeding":`Continuous seeding`,"download.comparison.largeFiles":`Large file transfer`,"download.comparison.webConnectsNode":`Connects to existing nodes`,"download.comparison.webDependsNode":`Depends on the connected node`,"download.comparison.desktopBuiltinNode":`Built-in local node`,"download.comparison.desktopFull":`Fully supported`,"download.comparison.desktopDefaultOn":`On by default`,"download.comparison.desktop10gb":`Within the 10GB limit`,"download.npmNote":`For the npm entry, install Node.js >= 22.12 first, then run npx most-box@latest to start a full local node.`,"download.source.label":`Download source`,"download.source.r2Mirror":`Cloudflare R2 mirror`,"download.source.loading":`Fetching the Cloudflare R2 mirror.`,"download.source.ready":`Current version {version}. You can switch between Cloudflare R2 and GitHub Releases.`,"download.source.fallback":`Mirror information is unavailable, so GitHub Releases is selected as fallback.`,"download.platform.windows.desc":`Windows 10 or later`,"download.platform.macos.desc":`macOS 12 Monterey or later`,"download.platform.linux.desc":`Ubuntu 20.04+ / Debian 11+ / other mainstream distributions`,"download.platform.source":`Source`,"download.platform.size":`Size`,"download.platform.action":`Download {ext}`,"download.platform.current":`Current`},qc={"ping.meta.title":`MostBox - 网络连通性`,"ping.meta.desc":`测试到全球主流网站的网络连通性和延迟`,"ping.title":`网络连通性`,"ping.subtitle":`通过向对应网站发送请求进行测试,延迟值仅供参考。`,"ping.retryAll":`重新测试全部`,"ping.retryOne":`重新测试 {name}`,"ping.retry":`重新测试`,"ping.available":`可用`,"ping.unavailable":`不可用`,"ping.timeout":`超时`},Jc={"ping.meta.title":`MostBox - 網路連通性`,"ping.meta.desc":`測試到全球主流網站的網路連通性和延遲`,"ping.title":`網路連通性`,"ping.subtitle":`通過向對應網站傳送請求進行測試,延遲值僅供參考。`,"ping.retryAll":`重新測試全部`,"ping.retryOne":`重新測試 {name}`,"ping.retry":`重新測試`,"ping.available":`可用`,"ping.unavailable":`不可用`,"ping.timeout":`超時`},Yc={"ping.meta.title":`MostBox - Network connectivity`,"ping.meta.desc":`Test connectivity and latency to major global websites`,"ping.title":`Network connectivity`,"ping.subtitle":`Tests send requests to the corresponding websites. Latency is for reference only.`,"ping.retryAll":`Retest all`,"ping.retryOne":`Retest {name}`,"ping.retry":`Retest`,"ping.available":`Available`,"ping.unavailable":`Unavailable`,"ping.timeout":`Timeout`},Xc={"portal.hero.subtitle":`去中心化 P2P 工具箱`,"portal.nodeEntry":`节点入口`,"portal.webConnectNode":`Web 连接节点`,"portal.nodeAdmin":`节点管理`,"portal.enterFeature":`进入 {title}`,"portal.openFeature":`打开{title}`,"portal.feature.app.title":`MostBox`,"portal.feature.app.subtitle":`P2P 文件分享`,"portal.feature.app.hero":`P2P 文件分享,无需注册`,"portal.feature.app.desc":`基于 Hyperswarm 的去中心化文件传输,让文件分享回归点对点。MostBox 不是云盘;链接来自 CID,可用性来自当前在线种子。当前 MVP 优先使用桌面客户端。`,"portal.feature.app.bullet.localIdentity":`无需云端账号,使用本地身份隔离数据`,"portal.feature.app.bullet.hyperswarm":`Hyperswarm P2P 直连传输`,"portal.feature.app.bullet.largeFiles":`GB 级大文件流式处理`,"portal.feature.app.bullet.cid":`相同文件 = 相同 CID,链接可反复校验`,"portal.feature.app.bullet.seedAfterDownload":`下载完成后默认继续做种`,"portal.feature.app.bullet.noCloud":`相比微信、QQ 或网盘,不依赖中心化账号和云端托管`,"portal.feature.app.bullet.desktop":`Web 端只连接已有节点,桌面端提供完整 P2P 能力`,"portal.feature.app.bullet.openSource":`MIT 开源,自托管,数据完全自主掌控`,"portal.feature.app.step.download.title":`下载客户端`,"portal.feature.app.step.download.desc":`支持 Windows、macOS 和 Linux,桌面端提供完整的 P2P 能力。`,"portal.feature.app.step.download.link":`前往下载页`,"portal.feature.app.step.install.title":`安装并运行`,"portal.feature.app.step.install.desc":`安装后打开应用,无需单独安装 Node.js。`,"portal.feature.app.step.share.title":`开始分享`,"portal.feature.app.step.share.desc":`发布文件生成 most:// 链接,朋友下载校验通过后也会成为新的种子。`,"portal.feature.chat.title":`P2P 聊天`,"portal.feature.chat.subtitle":`频道加密通讯`,"portal.feature.chat.hero":`去中心化频道聊天`,"portal.feature.chat.desc":`基于 Hypercore 的 P2P 加密即时通讯。创建频道,邀请朋友,端到端加密,无需服务器中转。`,"portal.feature.chat.bullet.encrypted":`P2P 加密频道消息`,"portal.feature.chat.bullet.identity":`本地登录身份保护消息署名`,"portal.feature.chat.bullet.sync":`消息通过 Hyperswarm 网络同步`,"portal.feature.chat.bullet.offline":`离线消息自动同步`,"portal.feature.chat.bullet.noAccount":`无需中心化账号注册`,"portal.feature.chat.step.download.title":`下载客户端`,"portal.feature.chat.step.download.desc":`支持 Windows、macOS 和 Linux。`,"portal.feature.chat.step.download.link":`前往下载页`,"portal.feature.chat.step.create.title":`创建频道`,"portal.feature.chat.step.create.desc":`输入任意频道名即可加入或创建。`,"portal.feature.chat.step.send.title":`开始聊天`,"portal.feature.chat.step.send.desc":`发送消息,P2P 网络自动同步给所有在线节点。`,"portal.feature.note.title":`笔记`,"portal.feature.note.subtitle":`加密云备份`,"portal.feature.note.hero":`Web3 加密笔记`,"portal.feature.note.desc":`使用本地 Web3 密钥加密 Markdown 笔记,可在浏览器本地保存并按需同步到云端备份。`,"portal.feature.note.bullet.markdown":`Markdown 块编辑器`,"portal.feature.note.bullet.privacy":`公开 / 私密笔记切换`,"portal.feature.note.bullet.folders":`文件夹、搜索和移动`,"portal.feature.note.bullet.web3":`Web3 登录态加密`,"portal.feature.note.bullet.backup":`云端备份与恢复`,"portal.feature.note.bullet.independent":`独立于 P2P 文件分享`,"portal.feature.note.step.account.title":`生成 Web3 账号`,"portal.feature.note.step.account.desc":`用用户名和密码派生本地密钥。`,"portal.feature.note.step.create.title":`创建笔记`,"portal.feature.note.step.create.desc":`写 Markdown,按需切换为私密内容。`,"portal.feature.note.step.backup.title":`备份恢复`,"portal.feature.note.step.backup.desc":`登录后可把加密笔记同步到云端。`,"portal.feature.game.title":`游戏`,"portal.feature.game.subtitle":`P2P 牌桌`,"portal.feature.game.hero":`常驻节点里的在线牌桌`,"portal.feature.game.desc":`把干瞪眼作为 MostBox 的独立页面接入,复用现有频道消息、Web3 登录身份和桌面端常驻入口。`,"portal.feature.game.bullet.account":`使用 MostBox 本地账号进入房间`,"portal.feature.game.bullet.channel":`复用 /chat/ 的频道后端,不新增游戏后端接口`,"portal.feature.game.bullet.link":`房间链接可直接分享到群组`,"portal.feature.game.bullet.rules":`支持 1-2 副牌、2-6 人和人机陪测`,"portal.feature.game.bullet.maintain":`游戏规则、频道事件和页面样式拆分维护`,"portal.feature.game.step.login.title":`登录账号`,"portal.feature.game.step.login.desc":`使用现有 MostBox Web3 本地账号作为牌桌身份。`,"portal.feature.game.step.create.title":`创建房间`,"portal.feature.game.step.create.desc":`创建房间后复制链接,发给朋友加入。`,"portal.feature.game.step.test.title":`开始调试`,"portal.feature.game.step.test.desc":`可先用人机补位测试出牌、计分和房间同步。`,"portal.feature.web3.title":`Web3`,"portal.feature.web3.subtitle":`账户工具箱`,"portal.feature.web3.hero":`确定性密钥派生工具箱`,"portal.feature.web3.desc":`纯前端运行的 Web3 账户工具。输入用户名和密码,即可生成 Ed25519 / x25519 密钥对、助记词、以太坊地址,支持 PEM 导出和地址派生。`,"portal.feature.web3.bullet.frontend":`纯前端运行,无需后端`,"portal.feature.web3.bullet.keys":`Ed25519 / x25519 密钥对生成`,"portal.feature.web3.bullet.mnemonic":`BIP-39 助记词派生`,"portal.feature.web3.bullet.eth":`以太坊地址与私钥导出`,"portal.feature.web3.bullet.pem":`PEM 格式密钥导出`,"portal.feature.web3.bullet.qr":`二维码展示地址与助记词`,"portal.feature.web3.step.username.title":`输入用户名`,"portal.feature.web3.step.username.desc":`用户名 + 密码(可选)作为种子。`,"portal.feature.web3.step.keys.title":`查看密钥`,"portal.feature.web3.step.keys.desc":`即时生成 Ed25519、x25519 公钥与 IPNS ID。`,"portal.feature.web3.step.export.title":`导出使用`,"portal.feature.web3.step.export.desc":`复制地址、导出 PEM、派生子地址。`},Zc={"portal.hero.subtitle":`去中心化 P2P 工具箱`,"portal.nodeEntry":`節點入口`,"portal.webConnectNode":`Web 連線節點`,"portal.nodeAdmin":`節點管理`,"portal.enterFeature":`進入 {title}`,"portal.openFeature":`開啟{title}`,"portal.feature.app.title":`MostBox`,"portal.feature.app.subtitle":`P2P 檔案分享`,"portal.feature.app.hero":`P2P 檔案分享,無需註冊`,"portal.feature.app.desc":`基於 Hyperswarm 的去中心化檔案傳輸,讓檔案分享迴歸點對點。MostBox 不是雲盤;連結來自 CID,可用性來自當前線上種子。當前 MVP 優先使用桌面用戶端。`,"portal.feature.app.bullet.localIdentity":`無需雲端帳號,使用本機身份隔離資料`,"portal.feature.app.bullet.hyperswarm":`Hyperswarm P2P 直連傳輸`,"portal.feature.app.bullet.largeFiles":`GB 級大檔案流式處理`,"portal.feature.app.bullet.cid":`相同檔案 = 相同 CID,連結可反覆校驗`,"portal.feature.app.bullet.seedAfterDownload":`下載完成後預設繼續做種`,"portal.feature.app.bullet.noCloud":`相比微信、QQ 或網盤,不依賴中心化帳號和雲端託管`,"portal.feature.app.bullet.desktop":`Web 端只連線已有節點,桌面端提供完整 P2P 能力`,"portal.feature.app.bullet.openSource":`MIT 開源,自託管,資料完全自主掌控`,"portal.feature.app.step.download.title":`下載用戶端`,"portal.feature.app.step.download.desc":`支援 Windows、macOS 和 Linux,桌面端提供完整的 P2P 能力。`,"portal.feature.app.step.download.link":`前往下載頁`,"portal.feature.app.step.install.title":`安裝並執行`,"portal.feature.app.step.install.desc":`安裝後開啟應用,無需單獨安裝 Node.js。`,"portal.feature.app.step.share.title":`開始分享`,"portal.feature.app.step.share.desc":`發布檔案生成 most:// 連結,朋友下載校驗通過後也會成為新的種子。`,"portal.feature.chat.title":`P2P 聊天`,"portal.feature.chat.subtitle":`頻道加密通訊`,"portal.feature.chat.hero":`去中心化頻道聊天`,"portal.feature.chat.desc":`基於 Hypercore 的 P2P 加密即時通訊。建立頻道,邀請朋友,端到端加密,無需伺服器中轉。`,"portal.feature.chat.bullet.encrypted":`P2P 加密頻道訊息`,"portal.feature.chat.bullet.identity":`本機登入身份保護訊息署名`,"portal.feature.chat.bullet.sync":`訊息通過 Hyperswarm 網路同步`,"portal.feature.chat.bullet.offline":`離線訊息自動同步`,"portal.feature.chat.bullet.noAccount":`無需中心化帳號註冊`,"portal.feature.chat.step.download.title":`下載用戶端`,"portal.feature.chat.step.download.desc":`支援 Windows、macOS 和 Linux。`,"portal.feature.chat.step.download.link":`前往下載頁`,"portal.feature.chat.step.create.title":`建立頻道`,"portal.feature.chat.step.create.desc":`輸入任意頻道名即可加入或建立。`,"portal.feature.chat.step.send.title":`開始聊天`,"portal.feature.chat.step.send.desc":`傳送訊息,P2P 網路自動同步給所有線上節點。`,"portal.feature.note.title":`筆記`,"portal.feature.note.subtitle":`加密雲備份`,"portal.feature.note.hero":`Web3 加密筆記`,"portal.feature.note.desc":`使用本機 Web3 金鑰加密 Markdown 筆記,可在瀏覽器本機儲存並按需同步到雲端備份。`,"portal.feature.note.bullet.markdown":`Markdown 塊編輯器`,"portal.feature.note.bullet.privacy":`公開 / 私密筆記切換`,"portal.feature.note.bullet.folders":`資料夾、搜尋和移動`,"portal.feature.note.bullet.web3":`Web3 登入態加密`,"portal.feature.note.bullet.backup":`雲端備份與恢復`,"portal.feature.note.bullet.independent":`獨立於 P2P 檔案分享`,"portal.feature.note.step.account.title":`生成 Web3 帳號`,"portal.feature.note.step.account.desc":`用使用者名稱和密碼派生本機金鑰。`,"portal.feature.note.step.create.title":`建立筆記`,"portal.feature.note.step.create.desc":`寫 Markdown,按需切換為私密內容。`,"portal.feature.note.step.backup.title":`備份恢復`,"portal.feature.note.step.backup.desc":`登入後可把加密筆記同步到雲端。`,"portal.feature.game.title":`遊戲`,"portal.feature.game.subtitle":`P2P 牌桌`,"portal.feature.game.hero":`常駐節點裡的線上牌桌`,"portal.feature.game.desc":`把乾瞪眼作為 MostBox 的獨立頁面接入,複用現有頻道訊息、Web3 登入身份和桌面端常駐入口。`,"portal.feature.game.bullet.account":`使用 MostBox 本機帳號進入房間`,"portal.feature.game.bullet.channel":`複用 /chat/ 的頻道後端,不新增遊戲後端介面`,"portal.feature.game.bullet.link":`房間連結可直接分享到群組`,"portal.feature.game.bullet.rules":`支援 1-2 副牌、2-6 人和人機陪測`,"portal.feature.game.bullet.maintain":`遊戲規則、頻道事件和頁面樣式拆分維護`,"portal.feature.game.step.login.title":`登入帳號`,"portal.feature.game.step.login.desc":`使用現有 MostBox Web3 本機帳號作為牌桌身份。`,"portal.feature.game.step.create.title":`建立房間`,"portal.feature.game.step.create.desc":`建立房間後複製連結,發給朋友加入。`,"portal.feature.game.step.test.title":`開始除錯`,"portal.feature.game.step.test.desc":`可先用人機補位測試出牌、計分和房間同步。`,"portal.feature.web3.title":`Web3`,"portal.feature.web3.subtitle":`帳戶工具箱`,"portal.feature.web3.hero":`確定性金鑰派生工具箱`,"portal.feature.web3.desc":`純前端執行的 Web3 帳戶工具。輸入使用者名稱和密碼,即可生成 Ed25519 / x25519 金鑰對、助記詞、以太坊地址,支援 PEM 匯出和地址派生。`,"portal.feature.web3.bullet.frontend":`純前端執行,無需後端`,"portal.feature.web3.bullet.keys":`Ed25519 / x25519 金鑰對生成`,"portal.feature.web3.bullet.mnemonic":`BIP-39 助記詞派生`,"portal.feature.web3.bullet.eth":`以太坊地址與私鑰匯出`,"portal.feature.web3.bullet.pem":`PEM 格式金鑰匯出`,"portal.feature.web3.bullet.qr":`二維碼展示地址與助記詞`,"portal.feature.web3.step.username.title":`輸入使用者名稱`,"portal.feature.web3.step.username.desc":`使用者名稱 + 密碼(可選)作為種子。`,"portal.feature.web3.step.keys.title":`檢視金鑰`,"portal.feature.web3.step.keys.desc":`即時生成 Ed25519、x25519 公鑰與 IPNS ID。`,"portal.feature.web3.step.export.title":`匯出使用`,"portal.feature.web3.step.export.desc":`複製地址、匯出 PEM、派生子地址。`},Qc={"portal.hero.subtitle":`Decentralized P2P toolbox`,"portal.nodeEntry":`Node entry`,"portal.webConnectNode":`Connect Web node`,"portal.nodeAdmin":`Node admin`,"portal.enterFeature":`Open {title}`,"portal.openFeature":`Open {title}`,"portal.feature.app.title":`MostBox`,"portal.feature.app.subtitle":`P2P file sharing`,"portal.feature.app.hero":`P2P file sharing, no signup required`,"portal.feature.app.desc":`Decentralized file transfer powered by Hyperswarm. MostBox is not cloud storage; links come from CIDs and availability comes from online seeders. The current MVP is best experienced in the desktop client.`,"portal.feature.app.bullet.localIdentity":`No cloud account required; local identity keeps data separated`,"portal.feature.app.bullet.hyperswarm":`Direct Hyperswarm P2P transfer`,"portal.feature.app.bullet.largeFiles":`Streaming support for GB-scale files`,"portal.feature.app.bullet.cid":`Same file means same CID, and links can be verified repeatedly`,"portal.feature.app.bullet.seedAfterDownload":`Downloads keep seeding by default after completion`,"portal.feature.app.bullet.noCloud":`Unlike chat apps or cloud drives, it does not depend on centralized accounts or hosted storage`,"portal.feature.app.bullet.desktop":`The Web app connects to existing nodes; the desktop app provides full P2P capability`,"portal.feature.app.bullet.openSource":`MIT open source, self-hostable, and fully under your control`,"portal.feature.app.step.download.title":`Download client`,"portal.feature.app.step.download.desc":`Supports Windows, macOS, and Linux. The desktop app provides full P2P capability.`,"portal.feature.app.step.download.link":`Go to downloads`,"portal.feature.app.step.install.title":`Install and run`,"portal.feature.app.step.install.desc":`Open the app after installation. No separate Node.js install is required.`,"portal.feature.app.step.share.title":`Start sharing`,"portal.feature.app.step.share.desc":`Publish a file to create a most:// link. Friends who complete and verify the download become new seeders.`,"portal.feature.chat.title":`P2P chat`,"portal.feature.chat.subtitle":`Encrypted channels`,"portal.feature.chat.hero":`Decentralized channel chat`,"portal.feature.chat.desc":`P2P encrypted messaging powered by Hypercore. Create a channel, invite friends, and chat without a relay server.`,"portal.feature.chat.bullet.encrypted":`Encrypted P2P channel messages`,"portal.feature.chat.bullet.identity":`Local login identity protects message signatures`,"portal.feature.chat.bullet.sync":`Messages sync through the Hyperswarm network`,"portal.feature.chat.bullet.offline":`Offline messages sync automatically`,"portal.feature.chat.bullet.noAccount":`No centralized account registration required`,"portal.feature.chat.step.download.title":`Download client`,"portal.feature.chat.step.download.desc":`Supports Windows, macOS, and Linux.`,"portal.feature.chat.step.download.link":`Go to downloads`,"portal.feature.chat.step.create.title":`Create channel`,"portal.feature.chat.step.create.desc":`Enter any channel name to join or create it.`,"portal.feature.chat.step.send.title":`Start chatting`,"portal.feature.chat.step.send.desc":`Send messages and the P2P network syncs them to online nodes.`,"portal.feature.note.title":`Notes`,"portal.feature.note.subtitle":`Encrypted cloud backup`,"portal.feature.note.hero":`Web3 encrypted notes`,"portal.feature.note.desc":`Encrypt Markdown notes with local Web3 keys, save them in the browser, and sync encrypted backups when needed.`,"portal.feature.note.bullet.markdown":`Markdown block editor`,"portal.feature.note.bullet.privacy":`Public/private note switching`,"portal.feature.note.bullet.folders":`Folders, search, and move`,"portal.feature.note.bullet.web3":`Web3 login-based encryption`,"portal.feature.note.bullet.backup":`Cloud backup and restore`,"portal.feature.note.bullet.independent":`Independent from P2P file sharing`,"portal.feature.note.step.account.title":`Generate Web3 account`,"portal.feature.note.step.account.desc":`Derive local keys from a username and password.`,"portal.feature.note.step.create.title":`Create note`,"portal.feature.note.step.create.desc":`Write Markdown and switch content to private when needed.`,"portal.feature.note.step.backup.title":`Backup and restore`,"portal.feature.note.step.backup.desc":`After login, encrypted notes can sync to the cloud.`,"portal.feature.game.title":`Games`,"portal.feature.game.subtitle":`P2P card table`,"portal.feature.game.hero":`Online card tables in a resident node`,"portal.feature.game.desc":`Gandengyan is integrated as an independent MostBox page, reusing channel messages, Web3 login identity, and the desktop resident node.`,"portal.feature.game.bullet.account":`Enter rooms with your local MostBox account`,"portal.feature.game.bullet.channel":`Reuses the /chat/ channel backend without adding game-only APIs`,"portal.feature.game.bullet.link":`Room links can be shared directly to groups`,"portal.feature.game.bullet.rules":`Supports 1-2 decks, 2-6 players, and bot testing`,"portal.feature.game.bullet.maintain":`Game rules, channel events, and page styles are maintained separately`,"portal.feature.game.step.login.title":`Sign in`,"portal.feature.game.step.login.desc":`Use your existing local MostBox Web3 account as the table identity.`,"portal.feature.game.step.create.title":`Create room`,"portal.feature.game.step.create.desc":`Create a room, copy the link, and send it to friends.`,"portal.feature.game.step.test.title":`Start testing`,"portal.feature.game.step.test.desc":`Use bot seats to test plays, scoring, and room sync first.`,"portal.feature.web3.title":`Web3`,"portal.feature.web3.subtitle":`Account toolbox`,"portal.feature.web3.hero":`Deterministic key derivation toolbox`,"portal.feature.web3.desc":`A front-end only Web3 account tool. Enter a username and password to generate Ed25519/x25519 key pairs, a mnemonic, an Ethereum address, PEM exports, and derived addresses.`,"portal.feature.web3.bullet.frontend":`Runs fully in the browser, no backend`,"portal.feature.web3.bullet.keys":`Ed25519 / x25519 key pair generation`,"portal.feature.web3.bullet.mnemonic":`BIP-39 mnemonic derivation`,"portal.feature.web3.bullet.eth":`Ethereum address and private key export`,"portal.feature.web3.bullet.pem":`PEM key export`,"portal.feature.web3.bullet.qr":`QR codes for addresses and mnemonics`,"portal.feature.web3.step.username.title":`Enter username`,"portal.feature.web3.step.username.desc":`Use username plus optional password as the seed.`,"portal.feature.web3.step.keys.title":`View keys`,"portal.feature.web3.step.keys.desc":`Instantly generate Ed25519 and x25519 public keys plus an IPNS ID.`,"portal.feature.web3.step.export.title":`Export and use`,"portal.feature.web3.step.export.desc":`Copy addresses, export PEM, and derive child addresses.`},$c={"remote.title.edit":`修改远程节点`,"remote.title.connect":`连接远程节点`,"remote.hint":`Web 端只连接已有 MostBox 节点。输入别人部署好的节点地址和邀请码后,可通过该节点使用文件分享和聊天;本机完整 P2P 能力请使用桌面客户端。`,"remote.invite.placeholder":`邀请码`,"remote.connecting":`连接中...`,"remote.updateConnection":`更新连接`,"remote.connectNode":`连接节点`,"remote.disconnect":`断开连接`,"remote.currentNode":`当前远程节点:{url}`,"remote.error.invalidUrl":`请输入有效的 http(s) 节点地址`,"remote.error.http":`远程节点 HTTP 不可达,请检查地址`,"remote.error.ws":`远程节点 WebSocket 不可达,请检查地址或代理配置`,"remote.error.failed":`远程节点连接失败,请检查地址和邀请码`,"remote.connected":`远程节点已连接`,"remote.connectFailed":`远程节点连接失败`,"remote.cleared":`已清除远程节点,优先使用本地节点`,"connectModal.title":`连接节点`,"account.notSignedIn":`未登录`,"account.signIn":`登录`,"account.actions":`账号操作`,"account.logout":`退出`,"account.logoutTitle":`退出登录`,"account.logoutConfirm":`确定要退出当前账号吗?`},el={"remote.title.edit":`修改遠端節點`,"remote.title.connect":`連線遠端節點`,"remote.hint":`Web 端只連線已有 MostBox 節點。輸入別人部署好的節點地址和邀請碼後,可通過該節點使用檔案分享和聊天;本機完整 P2P 能力請使用桌面用戶端。`,"remote.invite.placeholder":`邀請碼`,"remote.connecting":`連線中...`,"remote.updateConnection":`更新連線`,"remote.connectNode":`連線節點`,"remote.disconnect":`斷開連線`,"remote.currentNode":`當前遠端節點:{url}`,"remote.error.invalidUrl":`請輸入有效的 http(s) 節點地址`,"remote.error.http":`遠端節點 HTTP 不可達,請檢查地址`,"remote.error.ws":`遠端節點 WebSocket 不可達,請檢查地址或代理設定`,"remote.error.failed":`遠端節點連線失敗,請檢查地址和邀請碼`,"remote.connected":`遠端節點已連線`,"remote.connectFailed":`遠端節點連線失敗`,"remote.cleared":`已清除遠端節點,優先使用本機節點`,"connectModal.title":`連線節點`,"account.notSignedIn":`未登入`,"account.signIn":`登入`,"account.actions":`帳號操作`,"account.logout":`退出`,"account.logoutTitle":`登出`,"account.logoutConfirm":`確定要退出當前帳號嗎?`},tl={"remote.title.edit":`Edit remote node`,"remote.title.connect":`Connect remote node`,"remote.hint":`The Web app only connects to an existing MostBox node. Enter a deployed node URL and invite code to use file sharing and chat through that node; use the desktop client for full local P2P capability.`,"remote.invite.placeholder":`Invite code`,"remote.connecting":`Connecting...`,"remote.updateConnection":`Update connection`,"remote.connectNode":`Connect node`,"remote.disconnect":`Disconnect`,"remote.currentNode":`Current remote node: {url}`,"remote.error.invalidUrl":`Please enter a valid http(s) node URL`,"remote.error.http":`The remote node HTTP endpoint is unreachable`,"remote.error.ws":`The remote node WebSocket endpoint is unreachable. Check the URL or proxy.`,"remote.error.failed":`Remote node connection failed. Check the URL and invite code.`,"remote.connected":`Remote node connected`,"remote.connectFailed":`Remote node connection failed`,"remote.cleared":`Remote node cleared; local node will be preferred`,"connectModal.title":`Connect node`,"account.notSignedIn":`Not signed in`,"account.signIn":`Sign in`,"account.actions":`Account actions`,"account.logout":`Sign out`,"account.logoutTitle":`Sign out`,"account.logoutConfirm":`Sign out of the current account?`},nl={"chat.unread":`有新消息`,"chat.channelActions":`频道操作`,"chat.pin":`置顶`,"chat.unpin":`取消置顶`,"chat.rename":`重命名`,"chat.delete":`删除`,"chat.loadingMembers":`正在读取成员...`,"chat.noMembers":`暂无成员`,"chat.attachmentType":`附件类型`,"chat.attachment.add":`添加附件`,"chat.attachment.image":`图片`,"chat.attachment.video":`视频`,"chat.attachment.file":`文件`,"chat.sendMessage":`发送消息`,"chat.sending":`发送中...`,"chat.checking":`检测中`,"chat.mostboxFile":`MostBox 文件`,"chat.attachment.downloadStarted":`开始下载附件`,"chat.attachment.downloadCompleted":`{fileName} 下载完成`,"chat.attachment.downloadCancelled":`附件下载已取消`,"chat.attachment.downloadFailed":`附件下载失败`,"chat.attachment.localAvailable":`本机已有`,"chat.attachment.previewAvailable":`可预览`,"chat.attachment.noSeedsTitle":`暂时没有在线种子`,"chat.attachment.noSeedsFallback":`暂时没有发现在线种子。请确认分享者或其他下载者仍在线做种。`,"chat.attachment.retryCheck":`再次检测`,"chat.channel.createdAt":`创建时间`,"chat.title":`聊天`,"chat.search.placeholder":`搜索频道`,"chat.empty.noChannels":`暂无频道`,"chat.empty.noMatches":`未找到频道`,"chat.joinChannel":`加入频道`,"chat.channelSettings":`频道设置`,"chat.empty.noMessages":`暂无消息,开始聊天吧!`,"chat.composer.placeholder":`输入消息...`,"chat.composer.signInPlaceholder":`请先登录后发言`,"chat.restoring.title":`正在打开频道`,"chat.restoring.desc":`正在恢复聊天内容...`,"chat.select.title":`选择频道`,"chat.select.desc":`从左侧边栏选择一个频道开始聊天,或创建一个新频道`,"chat.openChannelList":`打开频道列表`,"chat.join.placeholder":`频道ID:3-20 位字母、数字、_ 或 -`,"chat.join.confirm":`加入`,"chat.join.joining":`加入中...`,"chat.renameChannel":`重命名频道`,"chat.remark.placeholder":`输入备注名称`,"chat.remark.save":`保存`,"chat.remark.saving":`保存中...`,"chat.remark.tooLong":`备注名称最多 50 个字符`,"chat.leaveChannel":`退出频道`,"chat.leaveConfirm":`确定要退出频道 "{channel}" 吗?`,"chat.leaving":`退出中...`,"chat.details.title":`频道详情`,"chat.details.members":`群成员 ({count})`,"chat.details.showAddressSuffix":`显示 #地址后四位`,"chat.details.channelId":`频道 ID`,"chat.attachment.published":`{fileName} 已发布`,"chat.error.members":`无法读取频道成员`,"chat.error.messages":`无法读取频道消息`,"chat.error.nodeId":`无法读取节点 ID`,"chat.error.channelList":`无法读取频道列表`,"chat.error.leave":`退出频道失败`,"chat.error.pin":`置顶失败`,"chat.error.unpin":`取消置顶失败`,"chat.error.join":`加入频道失败`,"chat.error.send":`发送失败`,"chat.error.attachmentSend":`附件发送失败`,"chat.error.remark":`设置备注失败`,"chat.error.rename":`重命名失败`,"chat.validation.nameMin":`频道名至少 {count} 个字符`,"chat.validation.nameMax":`频道名最多 {count} 个字符`,"chat.validation.dotReserved":`点号为系统保留,不能用于手动频道 ID`,"chat.validation.allowedChars":`频道名只能包含字母、数字、下划线和连字符`},rl={"chat.unread":`有新訊息`,"chat.channelActions":`頻道操作`,"chat.pin":`置頂`,"chat.unpin":`取消置頂`,"chat.rename":`重新命名`,"chat.delete":`刪除`,"chat.loadingMembers":`正在讀取成員...`,"chat.noMembers":`暫無成員`,"chat.attachmentType":`附件型別`,"chat.attachment.add":`新增附件`,"chat.attachment.image":`圖片`,"chat.attachment.video":`影片`,"chat.attachment.file":`檔案`,"chat.sendMessage":`傳送訊息`,"chat.sending":`傳送中...`,"chat.checking":`檢測中`,"chat.mostboxFile":`MostBox 檔案`,"chat.attachment.downloadStarted":`開始下載附件`,"chat.attachment.downloadCompleted":`{fileName} 下載完成`,"chat.attachment.downloadCancelled":`附件下載已取消`,"chat.attachment.downloadFailed":`附件下載失敗`,"chat.attachment.localAvailable":`本機已有`,"chat.attachment.previewAvailable":`可預覽`,"chat.attachment.noSeedsTitle":`暫時沒有線上種子`,"chat.attachment.noSeedsFallback":`暫時沒有發現線上種子。請確認分享者或其他下載者仍線上做種。`,"chat.attachment.retryCheck":`再次檢測`,"chat.channel.createdAt":`建立時間`,"chat.title":`聊天`,"chat.search.placeholder":`搜尋頻道`,"chat.empty.noChannels":`暫無頻道`,"chat.empty.noMatches":`未找到頻道`,"chat.joinChannel":`加入頻道`,"chat.channelSettings":`頻道設定`,"chat.empty.noMessages":`暫無訊息,開始聊天吧!`,"chat.composer.placeholder":`輸入訊息...`,"chat.composer.signInPlaceholder":`請先登入後發言`,"chat.restoring.title":`正在開啟頻道`,"chat.restoring.desc":`正在恢復聊天內容...`,"chat.select.title":`選擇頻道`,"chat.select.desc":`從左側邊欄選擇一個頻道開始聊天,或建立一個新頻道`,"chat.openChannelList":`開啟頻道列表`,"chat.join.placeholder":`頻道ID:3-20 位字母、數字、_ 或 -`,"chat.join.confirm":`加入`,"chat.join.joining":`加入中...`,"chat.renameChannel":`重新命名頻道`,"chat.remark.placeholder":`輸入備註名稱`,"chat.remark.save":`儲存`,"chat.remark.saving":`儲存中...`,"chat.remark.tooLong":`備註名稱最多 50 個字元`,"chat.leaveChannel":`退出頻道`,"chat.leaveConfirm":`確定要退出頻道 "{channel}" 嗎?`,"chat.leaving":`退出中...`,"chat.details.title":`頻道詳情`,"chat.details.members":`群成員 ({count})`,"chat.details.showAddressSuffix":`顯示 #地址後四位`,"chat.details.channelId":`頻道 ID`,"chat.attachment.published":`{fileName} 已發布`,"chat.error.members":`無法讀取頻道成員`,"chat.error.messages":`無法讀取頻道訊息`,"chat.error.nodeId":`無法讀取節點 ID`,"chat.error.channelList":`無法讀取頻道列表`,"chat.error.leave":`退出頻道失敗`,"chat.error.pin":`置頂失敗`,"chat.error.unpin":`取消置頂失敗`,"chat.error.join":`加入頻道失敗`,"chat.error.send":`傳送失敗`,"chat.error.attachmentSend":`附件傳送失敗`,"chat.error.remark":`設定備註失敗`,"chat.error.rename":`重新命名失敗`,"chat.validation.nameMin":`頻道名至少 {count} 個字元`,"chat.validation.nameMax":`頻道名最多 {count} 個字元`,"chat.validation.dotReserved":`點號為系統保留,不能用於手動頻道 ID`,"chat.validation.allowedChars":`頻道名只能包含字母、數字、下劃線和連字元`},il={"chat.unread":`New messages`,"chat.channelActions":`Channel actions`,"chat.pin":`Pin`,"chat.unpin":`Unpin`,"chat.rename":`Rename`,"chat.delete":`Delete`,"chat.loadingMembers":`Loading members...`,"chat.noMembers":`No members yet`,"chat.attachmentType":`Attachment type`,"chat.attachment.add":`Add attachment`,"chat.attachment.image":`Image`,"chat.attachment.video":`Video`,"chat.attachment.file":`File`,"chat.sendMessage":`Send message`,"chat.sending":`Sending...`,"chat.checking":`Checking`,"chat.mostboxFile":`MostBox file`,"chat.attachment.downloadStarted":`Attachment download started`,"chat.attachment.downloadCompleted":`{fileName} downloaded`,"chat.attachment.downloadCancelled":`Attachment download cancelled`,"chat.attachment.downloadFailed":`Attachment download failed`,"chat.attachment.localAvailable":`Already on this device`,"chat.attachment.previewAvailable":`Ready to preview`,"chat.attachment.noSeedsTitle":`No online seeders right now`,"chat.attachment.noSeedsFallback":`No online seeders were found. Make sure the sharer or another downloader is still seeding.`,"chat.attachment.retryCheck":`Check again`,"chat.channel.createdAt":`Created`,"chat.title":`Chat`,"chat.search.placeholder":`Search channels`,"chat.empty.noChannels":`No channels yet`,"chat.empty.noMatches":`No channels found`,"chat.joinChannel":`Join channel`,"chat.channelSettings":`Channel settings`,"chat.empty.noMessages":`No messages yet. Start the conversation.`,"chat.composer.placeholder":`Type a message...`,"chat.composer.signInPlaceholder":`Sign in before sending messages`,"chat.restoring.title":`Opening channel`,"chat.restoring.desc":`Restoring chat content...`,"chat.select.title":`Select a channel`,"chat.select.desc":`Choose a channel from the sidebar to start chatting, or create a new one.`,"chat.openChannelList":`Open channel list`,"chat.join.placeholder":`Channel ID: 3-20 letters, numbers, _ or -`,"chat.join.confirm":`Join`,"chat.join.joining":`Joining...`,"chat.renameChannel":`Rename channel`,"chat.remark.placeholder":`Enter remark name`,"chat.remark.save":`Save`,"chat.remark.saving":`Saving...`,"chat.remark.tooLong":`Remark name must be 50 characters or fewer`,"chat.leaveChannel":`Leave channel`,"chat.leaveConfirm":`Leave channel "{channel}"?`,"chat.leaving":`Leaving...`,"chat.details.title":`Channel details`,"chat.details.members":`Members ({count})`,"chat.details.showAddressSuffix":`Show #address suffix`,"chat.details.channelId":`Channel ID`,"chat.attachment.published":`{fileName} published`,"chat.error.members":`Failed to read channel members`,"chat.error.messages":`Failed to read channel messages`,"chat.error.nodeId":`Failed to read node ID`,"chat.error.channelList":`Failed to read channel list`,"chat.error.leave":`Failed to leave channel`,"chat.error.pin":`Failed to pin channel`,"chat.error.unpin":`Failed to unpin channel`,"chat.error.join":`Failed to join channel`,"chat.error.send":`Failed to send message`,"chat.error.attachmentSend":`Failed to send attachment`,"chat.error.remark":`Failed to set remark`,"chat.error.rename":`Failed to rename channel`,"chat.validation.nameMin":`Channel name must be at least {count} characters`,"chat.validation.nameMax":`Channel name must be at most {count} characters`,"chat.validation.dotReserved":`Dots are reserved for the system and cannot be used in manual channel IDs`,"chat.validation.allowedChars":`Channel names can only contain letters, numbers, underscores, and hyphens`},al={"chatJoin.title":`加入频道`,"chatJoin.status.checkingBackend":`正在检测后端连接...`,"chatJoin.status.connectingRemote":`正在连接远程节点...`,"chatJoin.status.signingIn":`正在登录邀请账号...`,"chatJoin.status.joiningChannel":`正在加入频道...`,"chatJoin.status.openingChannel":`加入成功,正在打开频道...`,"chatJoin.status.loadingFixture":`正在载入 {name} 预设邀请...`,"chatJoin.status.decryptingInvite":`正在解密邀请...`,"chatJoin.status.decrypting":`正在解密...`,"chatJoin.status.decryptSuccess":`解密成功`,"chatJoin.error.unknownFixture":`未知预设邀请:{fixture}`,"chatJoin.error.missingToken":`缺少 token 参数`,"chatJoin.error.missingPub":`缺少 pub 参数`,"chatJoin.error.remoteConnectFailed":`远程节点连接失败`,"chatJoin.error.noBackend":`未连接后端,邀请中也没有 node_url`,"chatJoin.error.decrypt":`解密失败`,"chatJoin.error.invalidInvite":`邀请内容缺少 uid 或 channels[].id`,"chatJoin.error.request":`请求出错: {message}`,"chatJoin.specTitle":`支持字段`,"chatJoin.field.required":`必填`,"chatJoin.field.optional":`可选`,"chatJoin.field.nodeUrl":`Web 端未连接后端时,用于连接远程节点。`,"chatJoin.field.nodeInvite":`配合 node_url 作为远程节点邀请码。`,"chatJoin.field.uid":`作为用户名,密码为空,用于生成账户并自动登录。`,"chatJoin.field.identity":`邀请身份类型;user 为普通用户,service 为服务账号。`,"chatJoin.field.logo":`覆盖邀请用户聊天页顶部 logo。`,"chatJoin.field.avatar":`覆盖默认头像。`,"chatJoin.field.name":`覆盖默认昵称。`,"chatJoin.field.locale":`指定邀请流程自动切换的界面语言,支持 zh-CN、zh-TW、en。`,"chatJoin.field.channelId":`频道 ID,用于自动加入频道。`,"chatJoin.field.channelName":`频道备注,不作为频道 ID。`,"chatJoin.testPublicKey":`测试公钥`,"chatJoin.openWeb3":`前往 Web3 工具箱`},ol={"chatJoin.title":`加入頻道`,"chatJoin.status.checkingBackend":`正在檢測後端連線...`,"chatJoin.status.connectingRemote":`正在連線遠端節點...`,"chatJoin.status.signingIn":`正在登入邀請帳號...`,"chatJoin.status.joiningChannel":`正在加入頻道...`,"chatJoin.status.openingChannel":`加入成功,正在開啟頻道...`,"chatJoin.status.loadingFixture":`正在載入 {name} 預設邀請...`,"chatJoin.status.decryptingInvite":`正在解密邀請...`,"chatJoin.status.decrypting":`正在解密...`,"chatJoin.status.decryptSuccess":`解密成功`,"chatJoin.error.unknownFixture":`未知預設邀請:{fixture}`,"chatJoin.error.missingToken":`缺少 token 參數`,"chatJoin.error.missingPub":`缺少 pub 參數`,"chatJoin.error.remoteConnectFailed":`遠端節點連線失敗`,"chatJoin.error.noBackend":`未連線後端,邀請中也沒有 node_url`,"chatJoin.error.decrypt":`解密失敗`,"chatJoin.error.invalidInvite":`邀請內容缺少 uid 或 channels[].id`,"chatJoin.error.request":`請求出錯: {message}`,"chatJoin.specTitle":`支援欄位`,"chatJoin.field.required":`必填`,"chatJoin.field.optional":`可選`,"chatJoin.field.nodeUrl":`Web 端未連線後端時,用於連線遠端節點。`,"chatJoin.field.nodeInvite":`配合 node_url 作為遠端節點邀請碼。`,"chatJoin.field.uid":`作為使用者名稱,密碼為空,用於生成帳戶並自動登入。`,"chatJoin.field.identity":`邀請身份型別;user 為普通使用者,service 為服務帳號。`,"chatJoin.field.logo":`覆蓋邀請使用者聊天頁頂部 logo。`,"chatJoin.field.avatar":`覆蓋預設頭像。`,"chatJoin.field.name":`覆蓋預設暱稱。`,"chatJoin.field.locale":`指定邀請流程自動切換的介面語言,支援 zh-CN、zh-TW、en。`,"chatJoin.field.channelId":`頻道 ID,用於自動加入頻道。`,"chatJoin.field.channelName":`頻道備註,不作為頻道 ID。`,"chatJoin.testPublicKey":`測試公鑰`,"chatJoin.openWeb3":`前往 Web3 工具箱`},sl={"chatJoin.title":`Join channel`,"chatJoin.status.checkingBackend":`Checking backend connection...`,"chatJoin.status.connectingRemote":`Connecting to remote node...`,"chatJoin.status.signingIn":`Signing in with invited account...`,"chatJoin.status.joiningChannel":`Joining channel...`,"chatJoin.status.openingChannel":`Joined. Opening channel...`,"chatJoin.status.loadingFixture":`Loading {name} preset invite...`,"chatJoin.status.decryptingInvite":`Decrypting invite...`,"chatJoin.status.decrypting":`Decrypting...`,"chatJoin.status.decryptSuccess":`Decrypted`,"chatJoin.error.unknownFixture":`Unknown preset invite: {fixture}`,"chatJoin.error.missingToken":`Missing token parameter`,"chatJoin.error.missingPub":`Missing pub parameter`,"chatJoin.error.remoteConnectFailed":`Failed to connect to remote node`,"chatJoin.error.noBackend":`No backend is connected and the invite has no node_url`,"chatJoin.error.decrypt":`Decrypt failed`,"chatJoin.error.invalidInvite":`Invite is missing uid or channels[].id`,"chatJoin.error.request":`Request failed: {message}`,"chatJoin.specTitle":`Supported fields`,"chatJoin.field.required":`Required`,"chatJoin.field.optional":`Optional`,"chatJoin.field.nodeUrl":`Used to connect to a remote node when the web app has no backend.`,"chatJoin.field.nodeInvite":`Remote node invite code used together with node_url.`,"chatJoin.field.uid":`Used as the username. The password is empty for automatic sign-in.`,"chatJoin.field.identity":`Invite identity type. user is a normal user, service is a service account.`,"chatJoin.field.logo":`Overrides the invited user logo in the chat header.`,"chatJoin.field.avatar":`Overrides the default avatar.`,"chatJoin.field.name":`Overrides the default display name.`,"chatJoin.field.locale":`Automatically switches the invite flow UI language. Supported values: zh-CN, zh-TW, en.`,"chatJoin.field.channelId":`Channel ID to join automatically.`,"chatJoin.field.channelName":`Channel remark. It is not used as the channel ID.`,"chatJoin.testPublicKey":`Test public key`,"chatJoin.openWeb3":`Open Web3 toolbox`},cl={"preview.close":`关闭预览`,"preview.loadFailed":`加载失败`,"preview.audioLoading":`正在加载音频预览...`,"preview.unsupported":`无法预览`,"preview.textLoading":`正在加载文本预览...`,"preview.firstSyncHint":`如果是初次预览,可能需要等待 P2P 网络同步`,"preview.emptyFile":`(文件为空)`,"move.title":`移动到`,"move.selectedCount":`已选 {count} 个项目`,"move.pathPlaceholder":`输入路径创建嵌套文件夹`,"move.pathExample":`如 图片/壁纸`,"move.noSubfolders":`该目录下没有子文件夹`,"move.action":`移动`,"move.root":`全部内容`,"app.nav.local":`本地`,"app.nav.favorites":`收藏`,"app.nav.trash":`回收站`,"app.search.placeholder":`搜索...`,"app.emptyTrash":`清空回收站`,"app.publishFile":`发布文件`,"app.downloadFile":`下载文件`,"app.allContent":`全部内容`,"app.noMatches":`未找到相关文件`,"app.trashEmpty":`回收站是空的`,"app.noFavorites":`暂无的收藏`,"app.noLocalFiles":`暂无本地文件`,"app.openFileNavigation":`打开文件导航`,"app.deletedOn":`删除于 {date}`,"app.shareLink":`分享链接`,"app.shareSeedNote":`本机在线时可下载;下载者完成后会默认继续做种。`,"app.downloadLink.placeholder":`输入 most:// 链接`,"app.download.validation.empty":`请先粘贴 most:// 分享链接。`,"app.download.validation.invalidUrl":`链接格式不正确,请粘贴完整的 most:// 分享链接。`,"app.download.validation.protocol":`链接协议不正确,应以 most:// 开头。`,"app.download.validation.path":`链接路径不受支持,请使用 most://<CID>?filename=... 格式。`,"app.download.validation.invalidCid":`链接中的 CID 格式不正确。`,"app.download.validation.cidV1":`链接中的 CID 必须是 CID v1。`,"app.download.validation.cidDigest":`链接中的 CID digest 长度不正确。`,"app.download.validation.filenameRequired":`分享链接缺少 filename 参数。`,"app.download.validation.unsupportedParam":`分享链接包含不支持的参数:{param}。`,"app.download.validation.generic":`分享链接无效,请检查后重试。`,"app.check":`检测`,"app.checking":`检测中...`,"app.passed":`已通过`,"app.startDownload":`开始下载`,"app.downloading":`下载中...`,"app.selectedItems":`已选 {count} 项`,"app.restore":`恢复`,"app.permanentDelete":`永久删除`,"app.preview":`预览`,"app.favorite":`收藏`,"app.rename":`重命名`,"app.move":`移动`,"app.delete":`删除`,"app.pullToLocal":`拉取到本机`,"app.share":`分享`,"app.saveAs":`另存为`,"app.transfers":`传输`,"app.noTransfers":`暂无传输`,"app.completed":`完成`,"app.failed":`失败`,"app.cancelled":`已取消`,"app.cancelling":`取消中`,"app.transferProgress":`{fileName} 传输进度`,"app.clearTrash.title":`清空回收站`,"app.clearTrash.message":`确定要清空回收站吗?此操作不可恢复!`,"app.clear":`清空`,"app.batchDelete":`批量删除`,"app.deleteSelectedPermanent":`确定要永久删除选中的 {count} 个项目吗?此操作不可恢复!`,"app.deleteSelected":`确定要删除选中的 {count} 个项目吗?`,"app.renameFolder":`重命名文件夹`,"app.renameFile":`重命名文件`,"app.enterNewName":`请输入新名称`,"app.fileAlreadyExists":`{fileName} 已存在`,"app.fileAddedLocal":`{fileName} 已添加到本地`,"app.fileAlreadyLocal":`{fileName} 已在本机`,"app.fileAvailable":`{fileName} 可下载`,"app.fileDownloadCompleted":`{fileName} 下载完成`,"app.publishFailedWithFile":`发布失败: {fileName}`,"app.downloadFailedWithError":`下载失败: {error}`,"app.saveFailedWithError":`保存失败: {error}`,"app.toast.restored":`已恢复`,"app.toast.restoreFailed":`恢复失败`,"app.toast.trashEmptied":`回收站已清空`,"app.toast.emptyFailed":`清空失败`,"app.toast.favorited":`已收藏`,"app.toast.unfavorited":`已取消收藏`,"app.toast.actionFailed":`操作失败`,"app.toast.deletedPermanently":`已永久删除`,"app.toast.deleted":`已删除`,"app.toast.deleteFailed":`删除失败`,"app.toast.moved":`已移动`,"app.toast.moveFailed":`移动失败`,"app.toast.renamed":`已重命名`,"app.toast.renameFailed":`重命名失败`,"app.toast.signInBeforePublish":`请先登录后发布文件`,"app.toast.signInBeforeDownload":`请先登录后下载文件`,"app.toast.checkLinkFirst":`请先检测链接可用性`,"app.toast.downloadStarted":`下载已开始`,"app.toast.downloadFailed":`下载失败`,"app.toast.cancelFailed":`取消失败`,"app.toast.fileNotLocal":`文件尚未保存在本机,请先拉取到本机`,"app.toast.getFileFailed":`获取文件失败`,"app.toast.fileSaved":`文件已保存`,"app.toast.fileDownloaded":`文件已下载`,"app.toast.startPullLocal":`开始拉取到本机`,"app.toast.pulledAndSeeding":`已拉取到本机并开始做种`,"app.toast.pullFailed":`拉取失败`,"app.toast.downloadCancelled":`下载已取消`,"app.toast.checkPassed":`检测通过`,"app.downloadFallbackName":`下载文件`},ll={"preview.close":`關閉預覽`,"preview.loadFailed":`載入失敗`,"preview.audioLoading":`正在載入音訊預覽...`,"preview.unsupported":`無法預覽`,"preview.textLoading":`正在載入文字預覽...`,"preview.firstSyncHint":`如果是初次預覽,可能需要等待 P2P 網路同步`,"preview.emptyFile":`(檔案為空)`,"move.title":`移動到`,"move.selectedCount":`已選 {count} 個項目`,"move.pathPlaceholder":`輸入路徑建立巢狀資料夾`,"move.pathExample":`如 圖片/桌布`,"move.noSubfolders":`該目錄下沒有子資料夾`,"move.action":`移動`,"move.root":`全部內容`,"app.nav.local":`本機`,"app.nav.favorites":`收藏`,"app.nav.trash":`垃圾桶`,"app.search.placeholder":`搜尋...`,"app.emptyTrash":`清空垃圾桶`,"app.publishFile":`發布檔案`,"app.downloadFile":`下載檔案`,"app.allContent":`全部內容`,"app.noMatches":`未找到相關檔案`,"app.trashEmpty":`垃圾桶是空的`,"app.noFavorites":`暫無的收藏`,"app.noLocalFiles":`暫無本機檔案`,"app.openFileNavigation":`開啟檔案導覽`,"app.deletedOn":`刪除於 {date}`,"app.shareLink":`分享連結`,"app.shareSeedNote":`本機線上時可下載;下載者完成後會預設繼續做種。`,"app.downloadLink.placeholder":`輸入 most:// 連結`,"app.download.validation.empty":`請先貼上 most:// 分享連結。`,"app.download.validation.invalidUrl":`連結格式不正確,請貼上完整的 most:// 分享連結。`,"app.download.validation.protocol":`連結協議不正確,應以 most:// 開頭。`,"app.download.validation.path":`連結路徑不受支援,請使用 most://<CID>?filename=... 格式。`,"app.download.validation.invalidCid":`連結中的 CID 格式不正確。`,"app.download.validation.cidV1":`連結中的 CID 必須是 CID v1。`,"app.download.validation.cidDigest":`連結中的 CID digest 長度不正確。`,"app.download.validation.filenameRequired":`分享連結缺少 filename 參數。`,"app.download.validation.unsupportedParam":`分享連結包含不支援的參數:{param}。`,"app.download.validation.generic":`分享連結無效,請檢查後重試。`,"app.check":`檢測`,"app.checking":`檢測中...`,"app.passed":`已通過`,"app.startDownload":`開始下載`,"app.downloading":`下載中...`,"app.selectedItems":`已選 {count} 項`,"app.restore":`恢復`,"app.permanentDelete":`永久刪除`,"app.preview":`預覽`,"app.favorite":`收藏`,"app.rename":`重新命名`,"app.move":`移動`,"app.delete":`刪除`,"app.pullToLocal":`拉取到本機`,"app.share":`分享`,"app.saveAs":`另存新檔`,"app.transfers":`傳輸`,"app.noTransfers":`暫無傳輸`,"app.completed":`完成`,"app.failed":`失敗`,"app.cancelled":`已取消`,"app.cancelling":`取消中`,"app.transferProgress":`{fileName} 傳輸進度`,"app.clearTrash.title":`清空垃圾桶`,"app.clearTrash.message":`確定要清空垃圾桶嗎?此操作不可恢復!`,"app.clear":`清空`,"app.batchDelete":`批次刪除`,"app.deleteSelectedPermanent":`確定要永久刪除選中的 {count} 個項目嗎?此操作不可恢復!`,"app.deleteSelected":`確定要刪除選中的 {count} 個項目嗎?`,"app.renameFolder":`重新命名資料夾`,"app.renameFile":`重新命名檔案`,"app.enterNewName":`請輸入新名稱`,"app.fileAlreadyExists":`{fileName} 已存在`,"app.fileAddedLocal":`{fileName} 已新增到本機`,"app.fileAlreadyLocal":`{fileName} 已在本機`,"app.fileAvailable":`{fileName} 可下載`,"app.fileDownloadCompleted":`{fileName} 下載完成`,"app.publishFailedWithFile":`發布失敗: {fileName}`,"app.downloadFailedWithError":`下載失敗: {error}`,"app.saveFailedWithError":`儲存失敗: {error}`,"app.toast.restored":`已恢復`,"app.toast.restoreFailed":`恢復失敗`,"app.toast.trashEmptied":`垃圾桶已清空`,"app.toast.emptyFailed":`清空失敗`,"app.toast.favorited":`已收藏`,"app.toast.unfavorited":`已取消收藏`,"app.toast.actionFailed":`操作失敗`,"app.toast.deletedPermanently":`已永久刪除`,"app.toast.deleted":`已刪除`,"app.toast.deleteFailed":`刪除失敗`,"app.toast.moved":`已移動`,"app.toast.moveFailed":`移動失敗`,"app.toast.renamed":`已重新命名`,"app.toast.renameFailed":`重新命名失敗`,"app.toast.signInBeforePublish":`請先登入後發布檔案`,"app.toast.signInBeforeDownload":`請先登入後下載檔案`,"app.toast.checkLinkFirst":`請先檢測連結可用性`,"app.toast.downloadStarted":`下載已開始`,"app.toast.downloadFailed":`下載失敗`,"app.toast.cancelFailed":`取消失敗`,"app.toast.fileNotLocal":`檔案尚未儲存在本機,請先拉取到本機`,"app.toast.getFileFailed":`取得檔案失敗`,"app.toast.fileSaved":`檔案已儲存`,"app.toast.fileDownloaded":`檔案已下載`,"app.toast.startPullLocal":`開始拉取到本機`,"app.toast.pulledAndSeeding":`已拉取到本機並開始做種`,"app.toast.pullFailed":`拉取失敗`,"app.toast.downloadCancelled":`下載已取消`,"app.toast.checkPassed":`檢測通過`,"app.downloadFallbackName":`下載檔案`},ul={"preview.close":`Close preview`,"preview.loadFailed":`Failed to load`,"preview.audioLoading":`Loading audio preview...`,"preview.unsupported":`Preview unavailable`,"preview.textLoading":`Loading text preview...`,"preview.firstSyncHint":`For a first preview, P2P sync may take a moment.`,"preview.emptyFile":`(File is empty)`,"move.title":`Move to`,"move.selectedCount":`Selected {count} items`,"move.pathPlaceholder":`Enter a path to create nested folders`,"move.pathExample":`Example: Images/Wallpapers`,"move.noSubfolders":`No subfolders in this folder`,"move.action":`Move`,"move.root":`All content`,"app.nav.local":`Local`,"app.nav.favorites":`Favorites`,"app.nav.trash":`Trash`,"app.search.placeholder":`Search...`,"app.emptyTrash":`Empty trash`,"app.publishFile":`Publish file`,"app.downloadFile":`Download file`,"app.allContent":`All content`,"app.noMatches":`No matching files found`,"app.trashEmpty":`Trash is empty`,"app.noFavorites":`No favorites yet`,"app.noLocalFiles":`No local files yet`,"app.openFileNavigation":`Open file navigation`,"app.deletedOn":`Deleted on {date}`,"app.shareLink":`Share link`,"app.shareSeedNote":`Available while this device is online. Completed downloaders keep seeding by default.`,"app.downloadLink.placeholder":`Enter a most:// link`,"app.download.validation.empty":`Paste a most:// share link first.`,"app.download.validation.invalidUrl":`The link format is invalid. Paste a complete most:// share link.`,"app.download.validation.protocol":`The link must start with most://.`,"app.download.validation.path":`Link paths are not supported. Use most://<CID>?filename=...`,"app.download.validation.invalidCid":`The CID in this link is invalid.`,"app.download.validation.cidV1":`The CID in this link must be CID v1.`,"app.download.validation.cidDigest":`The CID digest in this link has the wrong length.`,"app.download.validation.filenameRequired":`The share link is missing the filename parameter.`,"app.download.validation.unsupportedParam":`The share link contains an unsupported parameter: {param}.`,"app.download.validation.generic":`This share link is invalid. Check it and try again.`,"app.check":`Check`,"app.checking":`Checking...`,"app.passed":`Passed`,"app.startDownload":`Start download`,"app.downloading":`Downloading...`,"app.selectedItems":`Selected {count} items`,"app.restore":`Restore`,"app.permanentDelete":`Delete permanently`,"app.preview":`Preview`,"app.favorite":`Favorite`,"app.rename":`Rename`,"app.move":`Move`,"app.delete":`Delete`,"app.pullToLocal":`Pull to this device`,"app.share":`Share`,"app.saveAs":`Save as`,"app.transfers":`Transfers`,"app.noTransfers":`No transfers`,"app.completed":`Completed`,"app.failed":`Failed`,"app.cancelled":`Cancelled`,"app.cancelling":`Cancelling`,"app.transferProgress":`{fileName} transfer progress`,"app.clearTrash.title":`Empty trash`,"app.clearTrash.message":`Empty trash? This cannot be undone.`,"app.clear":`Empty`,"app.batchDelete":`Delete selected`,"app.deleteSelectedPermanent":`Permanently delete {count} selected items? This cannot be undone.`,"app.deleteSelected":`Delete {count} selected items?`,"app.renameFolder":`Rename folder`,"app.renameFile":`Rename file`,"app.enterNewName":`Enter a new name`,"app.fileAlreadyExists":`{fileName} already exists`,"app.fileAddedLocal":`{fileName} added locally`,"app.fileAlreadyLocal":`{fileName} is already on this device`,"app.fileAvailable":`{fileName} is available to download`,"app.fileDownloadCompleted":`{fileName} download completed`,"app.publishFailedWithFile":`Publish failed: {fileName}`,"app.downloadFailedWithError":`Download failed: {error}`,"app.saveFailedWithError":`Save failed: {error}`,"app.toast.restored":`Restored`,"app.toast.restoreFailed":`Restore failed`,"app.toast.trashEmptied":`Trash emptied`,"app.toast.emptyFailed":`Empty failed`,"app.toast.favorited":`Added to favorites`,"app.toast.unfavorited":`Removed from favorites`,"app.toast.actionFailed":`Action failed`,"app.toast.deletedPermanently":`Deleted permanently`,"app.toast.deleted":`Deleted`,"app.toast.deleteFailed":`Delete failed`,"app.toast.moved":`Moved`,"app.toast.moveFailed":`Move failed`,"app.toast.renamed":`Renamed`,"app.toast.renameFailed":`Rename failed`,"app.toast.signInBeforePublish":`Sign in before publishing files`,"app.toast.signInBeforeDownload":`Sign in before downloading files`,"app.toast.checkLinkFirst":`Check link availability first`,"app.toast.downloadStarted":`Download started`,"app.toast.downloadFailed":`Download failed`,"app.toast.cancelFailed":`Cancel failed`,"app.toast.fileNotLocal":`This file is not saved on this device yet. Pull it locally first.`,"app.toast.getFileFailed":`Failed to get file`,"app.toast.fileSaved":`File saved`,"app.toast.fileDownloaded":`File downloaded`,"app.toast.startPullLocal":`Pulling to this device`,"app.toast.pulledAndSeeding":`Pulled to this device and started seeding`,"app.toast.pullFailed":`Pull failed`,"app.toast.downloadCancelled":`Download cancelled`,"app.toast.checkPassed":`Check passed`,"app.downloadFallbackName":`Download file`},dl={"note.title":`笔记`,"note.count":`{count} 篇`,"note.listLabel":`笔记列表`,"note.root":`全部笔记`,"note.preview.encrypted":`私密内容已加密`,"note.preview.empty":`空白笔记`,"note.privacy.secret":`私密`,"note.privacy.public":`公开`,"note.mode.edit":`编辑模式`,"note.mode.read":`阅读模式`,"note.search.placeholder":`搜索笔记`,"note.empty.noMatches":`未找到笔记`,"note.empty.noNotes":`还没有笔记`,"note.folder":`文件夹`,"note.newNote":`新笔记`,"note.namePlaceholder":`笔记名称`,"note.untitled":`未命名笔记`,"note.editorLabel.edit":`笔记编辑器`,"note.editorLabel.read":`笔记阅读器`,"note.noOpen.title":`没有打开的笔记`,"note.noOpen.select":`选择一篇笔记继续`,"note.noOpen.createFirst":`创建第一篇笔记`,"note.openList":`打开笔记列表`,"note.loading":`加载中...`,"note.create.title":`新建笔记`,"note.create.action":`创建`,"note.delete.folderTitle":`删除文件夹`,"note.delete.noteTitle":`删除笔记`,"note.delete.message":`确定要删除「{name}」吗?此操作不可撤销。`,"note.action.save":`保存`,"note.action.saving":`保存中`,"note.action.move":`移动`,"note.action.delete":`删除`,"note.action.edit":`编辑`,"note.toast.notFound":`笔记不存在`,"note.toast.nameRequired":`请输入笔记名称`,"note.toast.saved":`笔记已保存`,"note.toast.saveFailed":`保存失败`,"note.toast.created":`笔记已创建`,"note.toast.createFailed":`创建失败`,"note.toast.renamed":`已重命名`,"note.toast.renameFailed":`重命名失败`,"note.toast.moved":`已移动`,"note.toast.moveFailed":`移动失败`,"note.toast.deleted":`已删除`,"note.error.notFound":`笔记不存在`,"note.error.loginToDecrypt":`请先登录 Web3 账号以解密此笔记`,"note.error.decryptFailed":`无法解密,请确认当前 Web3 账号正确`,"note.error.nameRequired":`请输入名称`,"note.error.nameNoSlash":`名称不能包含 /`,"note.error.nameNoBackslash":`名称不能包含 \\`,"note.error.nameInvalid":`名称无效`,"note.error.nameConflict":`目标位置已存在同名笔记`,"note.error.moveIntoSelf":`不能移动到自身子目录`,"note.move.title":`移动笔记`,"note.move.moving":`正在移动`,"note.move.noFolders":`还没有可选文件夹`,"note.move.pathPlaceholder":`或输入新目录路径,如 文章/摘录`,"note.move.destinationLabel":`目标位置:`,"note.move.destination":`目标位置:{path}`,"note.sync.title":`云同步`,"note.sync.status.disabled":`未登录`,"note.sync.status.checking":`检查中`,"note.sync.status.uploading":`同步中`,"note.sync.status.restoring":`恢复中`,"note.sync.status.synced":`已同步`,"note.sync.status.conflict":`有冲突`,"note.sync.status.error":`同步失败`,"note.sync.status.idle":`待同步`,"note.sync.exportLocal":`本地导出`,"note.sync.importLocal":`本地导入`,"note.sync.confirm.uploadConflict":`本地数据与云端不一致,本地修改将会覆盖云端数据,是否继续?`,"note.sync.confirm.restoreConflict":`云端备份与本地笔记不一致。恢复会覆盖本地笔记,是否继续?`,"note.sync.confirm.importOverwrite":`恢复将覆盖当前本地笔记,是否继续?`,"note.sync.toast.cancelSync":`已取消同步`,"note.sync.toast.cloudUpdated":`云端备份已更新`,"note.sync.toast.noCloudBackup":`云端暂无备份`,"note.sync.toast.cancelRestore":`已取消恢复`,"note.sync.toast.restoredCloud":`已从云端恢复`,"note.sync.toast.exportedLocal":`笔记已导出到本地`,"note.sync.toast.restoredLocal":`已从本地恢复笔记`,"note.sync.error.backupFailed":`云备份失败`,"note.sync.error.restoreCloudFailed":`云端恢复失败`,"note.sync.error.exportFailed":`导出失败`,"note.sync.error.importFailed":`导入失败`,"milkdown.placeholder":`输入 / 以使用命令...`,"milkdown.image.upload":`上传图片`,"milkdown.image.placeholder":`或粘贴图片链接...`,"milkdown.image.captionPlaceholder":`添加标题...`,"milkdown.group.basic":`基础`,"milkdown.group.list":`列表`,"milkdown.group.advanced":`高级`,"milkdown.block.text":`文本`,"milkdown.block.h1":`一级标题`,"milkdown.block.h2":`二级标题`,"milkdown.block.h3":`三级标题`,"milkdown.block.h4":`四级标题`,"milkdown.block.h5":`五级标题`,"milkdown.block.h6":`六级标题`,"milkdown.block.quote":`引用`,"milkdown.block.divider":`分割线`,"milkdown.block.bulletList":`无序列表`,"milkdown.block.orderedList":`有序列表`,"milkdown.block.taskList":`任务列表`,"milkdown.block.image":`图片`,"milkdown.block.codeBlock":`代码块`,"milkdown.block.table":`表格`,"milkdown.block.math":`数学公式`},fl={"note.title":`筆記`,"note.count":`{count} 篇`,"note.listLabel":`筆記列表`,"note.root":`全部筆記`,"note.preview.encrypted":`私密內容已加密`,"note.preview.empty":`空白筆記`,"note.privacy.secret":`私密`,"note.privacy.public":`公開`,"note.mode.edit":`編輯模式`,"note.mode.read":`閱讀模式`,"note.search.placeholder":`搜尋筆記`,"note.empty.noMatches":`未找到筆記`,"note.empty.noNotes":`還沒有筆記`,"note.folder":`資料夾`,"note.newNote":`新筆記`,"note.namePlaceholder":`筆記名稱`,"note.untitled":`未命名筆記`,"note.editorLabel.edit":`筆記編輯器`,"note.editorLabel.read":`筆記閱讀器`,"note.noOpen.title":`沒有開啟的筆記`,"note.noOpen.select":`選擇一篇筆記繼續`,"note.noOpen.createFirst":`建立第一篇筆記`,"note.openList":`開啟筆記列表`,"note.loading":`載入中...`,"note.create.title":`新建筆記`,"note.create.action":`建立`,"note.delete.folderTitle":`刪除資料夾`,"note.delete.noteTitle":`刪除筆記`,"note.delete.message":`確定要刪除「{name}」嗎?此操作不可撤銷。`,"note.action.save":`儲存`,"note.action.saving":`儲存中`,"note.action.move":`移動`,"note.action.delete":`刪除`,"note.action.edit":`編輯`,"note.toast.notFound":`筆記不存在`,"note.toast.nameRequired":`請輸入筆記名稱`,"note.toast.saved":`筆記已儲存`,"note.toast.saveFailed":`儲存失敗`,"note.toast.created":`筆記已建立`,"note.toast.createFailed":`建立失敗`,"note.toast.renamed":`已重新命名`,"note.toast.renameFailed":`重新命名失敗`,"note.toast.moved":`已移動`,"note.toast.moveFailed":`移動失敗`,"note.toast.deleted":`已刪除`,"note.error.notFound":`筆記不存在`,"note.error.loginToDecrypt":`請先登入 Web3 帳號以解密此筆記`,"note.error.decryptFailed":`無法解密,請確認當前 Web3 帳號正確`,"note.error.nameRequired":`請輸入名稱`,"note.error.nameNoSlash":`名稱不能包含 /`,"note.error.nameNoBackslash":`名稱不能包含 \\\\`,"note.error.nameInvalid":`名稱無效`,"note.error.nameConflict":`目標位置已存在同名筆記`,"note.error.moveIntoSelf":`不能移動到自身子目錄`,"note.move.title":`移動筆記`,"note.move.moving":`正在移動`,"note.move.noFolders":`還沒有可選資料夾`,"note.move.pathPlaceholder":`或輸入新目錄路徑,如 文章/摘錄`,"note.move.destinationLabel":`目標位置:`,"note.move.destination":`目標位置:{path}`,"note.sync.title":`雲同步`,"note.sync.status.disabled":`未登入`,"note.sync.status.checking":`檢查中`,"note.sync.status.uploading":`同步中`,"note.sync.status.restoring":`恢復中`,"note.sync.status.synced":`已同步`,"note.sync.status.conflict":`有衝突`,"note.sync.status.error":`同步失敗`,"note.sync.status.idle":`待同步`,"note.sync.exportLocal":`本機匯出`,"note.sync.importLocal":`本機匯入`,"note.sync.confirm.uploadConflict":`本機資料與雲端不一致,本機修改將會覆蓋雲端資料,是否繼續?`,"note.sync.confirm.restoreConflict":`雲端備份與本機筆記不一致。恢復會覆蓋本機筆記,是否繼續?`,"note.sync.confirm.importOverwrite":`恢復將覆蓋當前本機筆記,是否繼續?`,"note.sync.toast.cancelSync":`已取消同步`,"note.sync.toast.cloudUpdated":`雲端備份已更新`,"note.sync.toast.noCloudBackup":`雲端暫無備份`,"note.sync.toast.cancelRestore":`已取消恢復`,"note.sync.toast.restoredCloud":`已從雲端恢復`,"note.sync.toast.exportedLocal":`筆記已匯出到本機`,"note.sync.toast.restoredLocal":`已從本機恢復筆記`,"note.sync.error.backupFailed":`雲備份失敗`,"note.sync.error.restoreCloudFailed":`雲端恢復失敗`,"note.sync.error.exportFailed":`匯出失敗`,"note.sync.error.importFailed":`匯入失敗`,"milkdown.placeholder":`輸入 / 以使用命令...`,"milkdown.image.upload":`上傳圖片`,"milkdown.image.placeholder":`或貼上圖片連結...`,"milkdown.image.captionPlaceholder":`新增標題...`,"milkdown.group.basic":`基礎`,"milkdown.group.list":`列表`,"milkdown.group.advanced":`高階`,"milkdown.block.text":`文字`,"milkdown.block.h1":`一級標題`,"milkdown.block.h2":`二級標題`,"milkdown.block.h3":`三級標題`,"milkdown.block.h4":`四級標題`,"milkdown.block.h5":`五級標題`,"milkdown.block.h6":`六級標題`,"milkdown.block.quote":`引用`,"milkdown.block.divider":`分割線`,"milkdown.block.bulletList":`無序列表`,"milkdown.block.orderedList":`有序列表`,"milkdown.block.taskList":`任務列表`,"milkdown.block.image":`圖片`,"milkdown.block.codeBlock":`程式碼塊`,"milkdown.block.table":`表格`,"milkdown.block.math":`數學公式`},pl={"note.title":`Notes`,"note.count":`{count} notes`,"note.listLabel":`Note list`,"note.root":`All notes`,"note.preview.encrypted":`Private content is encrypted`,"note.preview.empty":`Blank note`,"note.privacy.secret":`Private`,"note.privacy.public":`Public`,"note.mode.edit":`Edit mode`,"note.mode.read":`Read mode`,"note.search.placeholder":`Search notes`,"note.empty.noMatches":`No notes found`,"note.empty.noNotes":`No notes yet`,"note.folder":`Folder`,"note.newNote":`New note`,"note.namePlaceholder":`Note name`,"note.untitled":`Untitled note`,"note.editorLabel.edit":`Note editor`,"note.editorLabel.read":`Note reader`,"note.noOpen.title":`No note open`,"note.noOpen.select":`Select a note to continue`,"note.noOpen.createFirst":`Create your first note`,"note.openList":`Open note list`,"note.loading":`Loading...`,"note.create.title":`New note`,"note.create.action":`Create`,"note.delete.folderTitle":`Delete folder`,"note.delete.noteTitle":`Delete note`,"note.delete.message":`Delete "{name}"? This cannot be undone.`,"note.action.save":`Save`,"note.action.saving":`Saving`,"note.action.move":`Move`,"note.action.delete":`Delete`,"note.action.edit":`Edit`,"note.toast.notFound":`Note not found`,"note.toast.nameRequired":`Enter a note name`,"note.toast.saved":`Note saved`,"note.toast.saveFailed":`Save failed`,"note.toast.created":`Note created`,"note.toast.createFailed":`Create failed`,"note.toast.renamed":`Renamed`,"note.toast.renameFailed":`Rename failed`,"note.toast.moved":`Moved`,"note.toast.moveFailed":`Move failed`,"note.toast.deleted":`Deleted`,"note.error.notFound":`Note not found`,"note.error.loginToDecrypt":`Sign in with a Web3 account to decrypt this note`,"note.error.decryptFailed":`Could not decrypt. Make sure the current Web3 account is correct.`,"note.error.nameRequired":`Enter a name`,"note.error.nameNoSlash":`Names cannot contain /`,"note.error.nameNoBackslash":`Names cannot contain \\`,"note.error.nameInvalid":`Invalid name`,"note.error.nameConflict":`A note with this name already exists there`,"note.error.moveIntoSelf":`Cannot move a folder into itself`,"note.move.title":`Move note`,"note.move.moving":`Moving`,"note.move.noFolders":`No folders available`,"note.move.pathPlaceholder":`Or enter a new folder path, e.g. Articles/Clips`,"note.move.destinationLabel":`Destination: `,"note.move.destination":`Destination: {path}`,"note.sync.title":`Cloud sync`,"note.sync.status.disabled":`Not signed in`,"note.sync.status.checking":`Checking`,"note.sync.status.uploading":`Syncing`,"note.sync.status.restoring":`Restoring`,"note.sync.status.synced":`Synced`,"note.sync.status.conflict":`Conflict`,"note.sync.status.error":`Sync failed`,"note.sync.status.idle":`Pending sync`,"note.sync.exportLocal":`Export local backup`,"note.sync.importLocal":`Import local backup`,"note.sync.confirm.uploadConflict":`Local data differs from the cloud backup. Uploading will overwrite the cloud backup. Continue?`,"note.sync.confirm.restoreConflict":`The cloud backup differs from local notes. Restoring will overwrite local notes. Continue?`,"note.sync.confirm.importOverwrite":`Restoring will overwrite current local notes. Continue?`,"note.sync.toast.cancelSync":`Sync cancelled`,"note.sync.toast.cloudUpdated":`Cloud backup updated`,"note.sync.toast.noCloudBackup":`No cloud backup yet`,"note.sync.toast.cancelRestore":`Restore cancelled`,"note.sync.toast.restoredCloud":`Restored from cloud`,"note.sync.toast.exportedLocal":`Notes exported locally`,"note.sync.toast.restoredLocal":`Notes restored from local backup`,"note.sync.error.backupFailed":`Cloud backup failed`,"note.sync.error.restoreCloudFailed":`Cloud restore failed`,"note.sync.error.exportFailed":`Export failed`,"note.sync.error.importFailed":`Import failed`,"milkdown.placeholder":`Type / for commands...`,"milkdown.image.upload":`Upload image`,"milkdown.image.placeholder":`Or paste an image link...`,"milkdown.image.captionPlaceholder":`Add caption...`,"milkdown.group.basic":`Basic`,"milkdown.group.list":`List`,"milkdown.group.advanced":`Advanced`,"milkdown.block.text":`Text`,"milkdown.block.h1":`Heading 1`,"milkdown.block.h2":`Heading 2`,"milkdown.block.h3":`Heading 3`,"milkdown.block.h4":`Heading 4`,"milkdown.block.h5":`Heading 5`,"milkdown.block.h6":`Heading 6`,"milkdown.block.quote":`Quote`,"milkdown.block.divider":`Divider`,"milkdown.block.bulletList":`Bullet list`,"milkdown.block.orderedList":`Ordered list`,"milkdown.block.taskList":`Task list`,"milkdown.block.image":`Image`,"milkdown.block.codeBlock":`Code block`,"milkdown.block.table":`Table`,"milkdown.block.math":`Math`},ml={"login.title":`登录`,"login.username.placeholder":`用户名`,"login.password.placeholder":`密码`,"login.preview":`登录`,"login.previewed":`检查地址`,"login.loading":`登录中`,"login.toast.signedIn":`已登录 {username}`,"login.error.credentialsRequired":`请输入用户名和密码`,"login.error.previewRequired":`请先预览并确认头像`,"login.error.failed":`登录失败`},hl={"login.title":`登入`,"login.username.placeholder":`使用者名稱`,"login.password.placeholder":`密碼`,"login.preview":`登入`,"login.previewed":`檢查地址`,"login.loading":`登入中`,"login.toast.signedIn":`已登入 {username}`,"login.error.credentialsRequired":`請輸入使用者名稱和密碼`,"login.error.previewRequired":`請先預覽並確認頭像`,"login.error.failed":`登入失敗`},gl={"login.title":`Sign in`,"login.username.placeholder":`Username`,"login.password.placeholder":`Password`,"login.preview":`Sign in`,"login.previewed":`Check address`,"login.loading":`Signing in`,"login.toast.signedIn":`Signed in as {username}`,"login.error.credentialsRequired":`Enter a username and password`,"login.error.previewRequired":`Preview and confirm the avatar first`,"login.error.failed":`Sign-in failed`},_l={"web3.view.wallet":`Web3`,"web3.view.pem":`PEM 导出`,"web3.view.export":`Wallet 导出`,"web3.view.asymmetric":`非对称加密`,"web3.login.passwordOptional":`密码(可选)`,"web3.login.generating":`生成中...`,"web3.login.generateAndSignIn":`生成并登录`,"web3.toast.accountGenerated":`账号已生成`,"web3.error.accountsRequired":`请先生成 A 和 B 两个账号`,"web3.error.messageRequired":`请输入要加密的消息`,"web3.error.cipherRequired":`请先生成或粘贴密文`,"web3.error.decryptFailed":`解密失败,请确认发送方公钥、接收方私钥和密文匹配`,"web3.error.senderPublicRequired":`请输入发送方公钥`,"web3.error.recipientPrivateRequired":`请输入接收方私钥`,"web3.error.senderPrivateRequired":`请输入发送方私钥`,"web3.error.recipientPublicRequired":`请输入接收方公钥`,"web3.empty.pem":`请输入用户名和密码以生成 PEM 密钥`,"web3.empty.identity":`请输入用户名和密码以查看身份信息`,"web3.empty.walletTools":`请输入用户名和密码以使用钱包工具`,"web3.notSignedIn":`未登录`,"web3.action.view":`查看`,"web3.action.show":`显示`,"web3.action.hide":`隐藏`,"web3.action.showPrivateKey":`显示私钥`,"web3.action.hidePrivateKey":`隐藏私钥`,"web3.action.showAddressQr":`显示地址二维码`,"web3.action.hideAddressQr":`隐藏地址二维码`,"web3.action.showMnemonic":`显示助记词`,"web3.action.hideMnemonic":`隐藏助记词`,"web3.action.showMnemonicQr":`显示助记词二维码`,"web3.action.hideMnemonicQr":`隐藏助记词二维码`,"web3.action.deriveAddresses":`派生 {count} 个地址`,"web3.warning.mnemonic":`任何拥有您助记词的人都可以窃取您账户中的任何资产,切勿泄露!`,"web3.warning.privateKey":`任何拥有您私钥的人都可以窃取您地址中的任何资产,切勿泄露!`,"web3.label.account":`账户`,"web3.label.address":`地址`,"web3.label.ed25519Public":`Ed25519 公钥`,"web3.label.x25519Public":`x25519 公钥`,"web3.label.x25519Private":`x25519 私钥`,"web3.label.combinedPrivate":`x25519 & Ed25519 私钥`,"web3.label.privateKeyToggle":`私钥(点击{action})`,"web3.box.accountA":`A 账号`,"web3.box.accountB":`B 账号`,"web3.box.account.desc":`用户名和密码会确定性生成 x25519 密钥对。`,"web3.box.account.generate":`生成账号`,"web3.box.flowAB.desc":`加密使用 A 私钥 + B 公钥;解密使用 A 公钥 + B 私钥。`,"web3.box.flowAB.encrypt":`用 A 私钥 + B 公钥加密`,"web3.box.flowAB.decrypt":`用 A 公钥 + B 私钥解密`,"web3.box.flowAB.messagePlaceholder":`输入要从 A 发给 B 的消息`,"web3.box.flowBA.desc":`加密使用 B 私钥 + A 公钥;解密使用 B 公钥 + A 私钥。`,"web3.box.flowBA.encrypt":`用 B 私钥 + A 公钥加密`,"web3.box.flowBA.decrypt":`用 B 公钥 + A 私钥解密`,"web3.box.flowBA.messagePlaceholder":`输入要从 B 发给 A 的消息`,"web3.box.cipherPlaceholder":`加密后生成密文,或粘贴已有密文`,"web3.box.plaintext":`明文`,"web3.box.ciphertext":`密文`,"web3.box.decryptResult":`解密结果`,"web3.box.decryptResultPlaceholder":`解密成功后显示明文`,"web3.box.timestamp":`时间戳`,"web3.box.nonce":`随机数`,"web3.box.encryptTitle":`加密`,"web3.box.encryptDesc":`只输入发送方私钥和接收方公钥即可加密,无需生成完整账号。`,"web3.box.decryptTitle":`解密`,"web3.box.decryptDesc":`只输入发送方公钥和接收方私钥即可解密,无需生成完整账号。`,"web3.box.sender":`发送方`,"web3.box.recipient":`接收方`,"web3.box.senderPrivatePlaceholder":`发送方 x25519 私钥`,"web3.box.senderPublicPlaceholder":`发送方 x25519 公钥`,"web3.box.recipientPrivatePlaceholder":`接收方 x25519 私钥`,"web3.box.recipientPublicPlaceholder":`接收方 x25519 公钥`,"web3.box.messagePlaceholder":`输入要加密的消息`,"web3.box.encryptResultPlaceholder":`加密成功后显示密文`,"web3.box.cipherDecryptPlaceholder":`粘贴要解密的密文`},vl={"web3.view.wallet":`Web3`,"web3.view.pem":`PEM 匯出`,"web3.view.export":`Wallet 匯出`,"web3.view.asymmetric":`非對稱加密`,"web3.login.passwordOptional":`密碼(可選)`,"web3.login.generating":`生成中...`,"web3.login.generateAndSignIn":`生成並登入`,"web3.toast.accountGenerated":`帳號已生成`,"web3.error.accountsRequired":`請先生成 A 和 B 兩個帳號`,"web3.error.messageRequired":`請輸入要加密的訊息`,"web3.error.cipherRequired":`請先生成或貼上密文`,"web3.error.decryptFailed":`解密失敗,請確認傳送方公鑰、接收方私鑰和密文匹配`,"web3.error.senderPublicRequired":`請輸入傳送方公鑰`,"web3.error.recipientPrivateRequired":`請輸入接收方私鑰`,"web3.error.senderPrivateRequired":`請輸入傳送方私鑰`,"web3.error.recipientPublicRequired":`請輸入接收方公鑰`,"web3.empty.pem":`請輸入使用者名稱和密碼以生成 PEM 金鑰`,"web3.empty.identity":`請輸入使用者名稱和密碼以檢視身份資訊`,"web3.empty.walletTools":`請輸入使用者名稱和密碼以使用錢包工具`,"web3.notSignedIn":`未登入`,"web3.action.view":`檢視`,"web3.action.show":`顯示`,"web3.action.hide":`隱藏`,"web3.action.showPrivateKey":`顯示私鑰`,"web3.action.hidePrivateKey":`隱藏私鑰`,"web3.action.showAddressQr":`顯示地址二維碼`,"web3.action.hideAddressQr":`隱藏地址二維碼`,"web3.action.showMnemonic":`顯示助記詞`,"web3.action.hideMnemonic":`隱藏助記詞`,"web3.action.showMnemonicQr":`顯示助記詞二維碼`,"web3.action.hideMnemonicQr":`隱藏助記詞二維碼`,"web3.action.deriveAddresses":`派生 {count} 個地址`,"web3.warning.mnemonic":`任何擁有您助記詞的人都可以竊取您帳戶中的任何資產,切勿洩露!`,"web3.warning.privateKey":`任何擁有您私鑰的人都可以竊取您地址中的任何資產,切勿洩露!`,"web3.label.account":`帳戶`,"web3.label.address":`地址`,"web3.label.ed25519Public":`Ed25519 公鑰`,"web3.label.x25519Public":`x25519 公鑰`,"web3.label.x25519Private":`x25519 私鑰`,"web3.label.combinedPrivate":`x25519 & Ed25519 私鑰`,"web3.label.privateKeyToggle":`私鑰(點選{action})`,"web3.box.accountA":`A 帳號`,"web3.box.accountB":`B 帳號`,"web3.box.account.desc":`使用者名稱和密碼會確定性生成 x25519 金鑰對。`,"web3.box.account.generate":`生成帳號`,"web3.box.flowAB.desc":`加密使用 A 私鑰 + B 公鑰;解密使用 A 公鑰 + B 私鑰。`,"web3.box.flowAB.encrypt":`用 A 私鑰 + B 公鑰加密`,"web3.box.flowAB.decrypt":`用 A 公鑰 + B 私鑰解密`,"web3.box.flowAB.messagePlaceholder":`輸入要從 A 發給 B 的訊息`,"web3.box.flowBA.desc":`加密使用 B 私鑰 + A 公鑰;解密使用 B 公鑰 + A 私鑰。`,"web3.box.flowBA.encrypt":`用 B 私鑰 + A 公鑰加密`,"web3.box.flowBA.decrypt":`用 B 公鑰 + A 私鑰解密`,"web3.box.flowBA.messagePlaceholder":`輸入要從 B 發給 A 的訊息`,"web3.box.cipherPlaceholder":`加密後生成密文,或貼上已有密文`,"web3.box.plaintext":`明文`,"web3.box.ciphertext":`密文`,"web3.box.decryptResult":`解密結果`,"web3.box.decryptResultPlaceholder":`解密成功後顯示明文`,"web3.box.timestamp":`時間戳`,"web3.box.nonce":`隨機數`,"web3.box.encryptTitle":`加密`,"web3.box.encryptDesc":`只輸入傳送方私鑰和接收方公鑰即可加密,無需生成完整帳號。`,"web3.box.decryptTitle":`解密`,"web3.box.decryptDesc":`只輸入傳送方公鑰和接收方私鑰即可解密,無需生成完整帳號。`,"web3.box.sender":`傳送方`,"web3.box.recipient":`接收方`,"web3.box.senderPrivatePlaceholder":`傳送方 x25519 私鑰`,"web3.box.senderPublicPlaceholder":`傳送方 x25519 公鑰`,"web3.box.recipientPrivatePlaceholder":`接收方 x25519 私鑰`,"web3.box.recipientPublicPlaceholder":`接收方 x25519 公鑰`,"web3.box.messagePlaceholder":`輸入要加密的訊息`,"web3.box.encryptResultPlaceholder":`加密成功後顯示密文`,"web3.box.cipherDecryptPlaceholder":`貼上要解密的密文`},yl={"web3.view.wallet":`Web3`,"web3.view.pem":`PEM export`,"web3.view.export":`Wallet export`,"web3.view.asymmetric":`Asymmetric encryption`,"web3.login.passwordOptional":`Password (optional)`,"web3.login.generating":`Generating...`,"web3.login.generateAndSignIn":`Generate and sign in`,"web3.toast.accountGenerated":`Account generated`,"web3.error.accountsRequired":`Generate both A and B accounts first`,"web3.error.messageRequired":`Enter a message to encrypt`,"web3.error.cipherRequired":`Generate or paste ciphertext first`,"web3.error.decryptFailed":`Decrypt failed. Check the sender public key, recipient private key, and ciphertext.`,"web3.error.senderPublicRequired":`Enter the sender public key`,"web3.error.recipientPrivateRequired":`Enter the recipient private key`,"web3.error.senderPrivateRequired":`Enter the sender private key`,"web3.error.recipientPublicRequired":`Enter the recipient public key`,"web3.empty.pem":`Enter a username and password to generate PEM keys`,"web3.empty.identity":`Enter a username and password to view identity info`,"web3.empty.walletTools":`Enter a username and password to use wallet tools`,"web3.notSignedIn":`Not signed in`,"web3.action.view":`View`,"web3.action.show":`show`,"web3.action.hide":`hide`,"web3.action.showPrivateKey":`Show private key`,"web3.action.hidePrivateKey":`Hide private key`,"web3.action.showAddressQr":`Show address QR`,"web3.action.hideAddressQr":`Hide address QR`,"web3.action.showMnemonic":`Show mnemonic`,"web3.action.hideMnemonic":`Hide mnemonic`,"web3.action.showMnemonicQr":`Show mnemonic QR`,"web3.action.hideMnemonicQr":`Hide mnemonic QR`,"web3.action.deriveAddresses":`Derive {count} addresses`,"web3.warning.mnemonic":`Anyone with your mnemonic can steal assets from your account. Never disclose it.`,"web3.warning.privateKey":`Anyone with your private key can steal assets from your address. Never disclose it.`,"web3.label.account":`Account`,"web3.label.address":`Address`,"web3.label.ed25519Public":`Ed25519 public key`,"web3.label.x25519Public":`x25519 public key`,"web3.label.x25519Private":`x25519 private key`,"web3.label.combinedPrivate":`x25519 & Ed25519 private key`,"web3.label.privateKeyToggle":`Private key (click to {action})`,"web3.box.accountA":`Account A`,"web3.box.accountB":`Account B`,"web3.box.account.desc":`The username and password deterministically generate an x25519 key pair.`,"web3.box.account.generate":`Generate account`,"web3.box.flowAB.desc":`Encrypt with A private key + B public key. Decrypt with A public key + B private key.`,"web3.box.flowAB.encrypt":`Encrypt with A private + B public`,"web3.box.flowAB.decrypt":`Decrypt with A public + B private`,"web3.box.flowAB.messagePlaceholder":`Message from A to B`,"web3.box.flowBA.desc":`Encrypt with B private key + A public key. Decrypt with B public key + A private key.`,"web3.box.flowBA.encrypt":`Encrypt with B private + A public`,"web3.box.flowBA.decrypt":`Decrypt with B public + A private`,"web3.box.flowBA.messagePlaceholder":`Message from B to A`,"web3.box.cipherPlaceholder":`Ciphertext appears after encryption, or paste existing ciphertext`,"web3.box.plaintext":`Plaintext`,"web3.box.ciphertext":`Ciphertext`,"web3.box.decryptResult":`Decrypted result`,"web3.box.decryptResultPlaceholder":`Plaintext appears after decryption`,"web3.box.timestamp":`Timestamp`,"web3.box.nonce":`Nonce`,"web3.box.encryptTitle":`Encrypt`,"web3.box.encryptDesc":`Encrypt with only the sender private key and recipient public key. A full account is not required.`,"web3.box.decryptTitle":`Decrypt`,"web3.box.decryptDesc":`Decrypt with only the sender public key and recipient private key. A full account is not required.`,"web3.box.sender":`Sender`,"web3.box.recipient":`Recipient`,"web3.box.senderPrivatePlaceholder":`Sender x25519 private key`,"web3.box.senderPublicPlaceholder":`Sender x25519 public key`,"web3.box.recipientPrivatePlaceholder":`Recipient x25519 private key`,"web3.box.recipientPublicPlaceholder":`Recipient x25519 public key`,"web3.box.messagePlaceholder":`Enter a message to encrypt`,"web3.box.encryptResultPlaceholder":`Ciphertext appears after encryption`,"web3.box.cipherDecryptPlaceholder":`Paste ciphertext to decrypt`},bl={"game.gandengyan.title":`干瞪眼`,"game.zhajinhua.title":`炸金花`,"game.toast.joinedRoom":`已进入房间`,"game.toast.roomCreated":`房间已创建`,"game.action.shareRoom":`分享房间`,"game.action.createRoom":`创建房间`,"game.action.joinRoom":`加入房间`,"game.action.startRound":`开始本局`,"game.action.nextRound":`再来一局`,"game.hero.desc":`创建房间码邀请朋友加入,房间状态通过 MostBox P2P 频道同步。`,"game.currentAccount":`当前账号`,"game.roomCode":`房间号`,"game.roomCode.placeholder":`输入房间号`,"game.status.nodeConnected":`节点已连接`,"game.status.nodeConnecting":`正在连接节点...`,"game.status.playing":`进行中`,"game.status.finished":`本局结束`,"game.status.waitingStart":`等待开局`,"game.status.title":`状态`,"game.actions":`操作`,"game.waitingHost":`等待房主开始或继续牌局。`,"game.waitingPlayers":`等待玩家加入`,"game.host":`房主`,"game.round":`本轮`,"game.hint":`提示`,"game.player":`玩家`,"game.card":`牌`,"game.roomLabel":`房间 {room}`,"game.status.online":`在线`,"game.status.offline":`离线`,"game.toast.playerLeft":`{player} 已退出房间`,"game.gandengyan.mark":`干`,"game.gandengyan.hero.title":`干瞪眼牌桌`,"game.gandengyan.speech.gameOver":`游戏结束`,"game.gandengyan.error.playFailed":`出牌失败`,"game.gandengyan.error.actionFailed":`操作失败`,"game.gandengyan.deck":`牌堆`,"game.gandengyan.tablePlay":`{player} 出 {combo}`,"game.gandengyan.waitingLead":`等待领出`,"game.gandengyan.baseScore":`底分`,"game.gandengyan.result.winnerGain":`{player} 获胜,赢 {score} 分`,"game.gandengyan.result.bombCount":`({count} 个炸弹)`,"game.gandengyan.result.sealedLoss":`{player}(封牌)扣 {loss} 分`,"game.gandengyan.result.cardsLeftLoss":`{player} 剩 {cards} 张,扣 {loss} 分`,"game.gandengyan.result.winner":`{player} 获胜`,"game.gandengyan.status.yourTurn":`轮到你出牌`,"game.gandengyan.roundPanel":`牌局`,"game.gandengyan.score":`分数`,"game.gandengyan.bombCount":`炸弹 {count} 次`,"game.gandengyan.discardCount":`弃牌 {count} 张`,"game.gandengyan.log":`牌局记录`,"game.gandengyan.invalidCombo":`牌型不合法`,"game.gandengyan.selectCards":`先选牌`,"game.gandengyan.jokerOrderHint":`按选择顺序解释大小王`,"game.gandengyan.action.play":`出牌`,"game.gandengyan.action.pass":`不要`,"game.gandengyan.handCount":`{count} 张`,"game.gandengyan.position.seat":`座位 {seat}`,"game.gandengyan.position.me":`我`,"game.gandengyan.position.opponent":`对手位`,"game.gandengyan.position.nextOpponent":`下家/对手位`,"game.gandengyan.position.prevOpponent":`上家/对手位`,"game.gandengyan.position.partner":`对家/队友位`,"game.gandengyan.position.seatPartner":`座位 {seat}/队友位`,"game.gandengyan.position.seatOpponent":`座位 {seat}/对手位`,"game.zhajinhua.hero.title":`炸金花牌桌`,"game.zhajinhua.toast.roundStarted":`新一局已开始`,"game.zhajinhua.error.notEnoughPlayers":`至少需要 2 名有足够筹码的玩家`,"game.zhajinhua.error.startFailed":`开局失败`,"game.zhajinhua.error.tooManyLowChips":`筹码不足的玩家太多,无法开局`,"game.zhajinhua.status.yourTurn":`轮到你操作`,"game.zhajinhua.status.waitingPlayer":`等待 {player}`,"game.zhajinhua.result.winChips":`{player} 赢得 {amount} 筹码`,"game.zhajinhua.result.winner":`{player} 胜出`,"game.zhajinhua.pot":`底池`,"game.zhajinhua.currentBet":`当前注 {amount}`,"game.zhajinhua.chips":`{amount} 筹码`,"game.zhajinhua.player.folded":`已弃牌`,"game.zhajinhua.player.looked":`已看牌`,"game.zhajinhua.player.inRound":`在局中`,"game.zhajinhua.myHand":`我的手牌`,"game.zhajinhua.myChips":`我的筹码`,"game.zhajinhua.hand.unlooked":`未看牌`,"game.zhajinhua.hand.waitingDeal":`等待房主发牌`,"game.zhajinhua.action.look":`看牌`,"game.zhajinhua.action.call":`跟注`,"game.zhajinhua.action.fold":`弃牌`,"game.zhajinhua.action.raiseOption":`加 {amount}`,"game.zhajinhua.action.raise":`加注`,"game.zhajinhua.action.comparePlaceholder":`选择比牌对象`,"game.zhajinhua.action.compare":`比牌`,"game.zhajinhua.compareResult":`比牌结果`},xl={"game.gandengyan.title":`乾瞪眼`,"game.zhajinhua.title":`炸金花`,"game.toast.joinedRoom":`已進入房間`,"game.toast.roomCreated":`房間已建立`,"game.action.shareRoom":`分享房間`,"game.action.createRoom":`建立房間`,"game.action.joinRoom":`加入房間`,"game.action.startRound":`開始本局`,"game.action.nextRound":`再來一局`,"game.hero.desc":`建立房間碼邀請朋友加入,房間狀態通過 MostBox P2P 頻道同步。`,"game.currentAccount":`當前帳號`,"game.roomCode":`房間號`,"game.roomCode.placeholder":`輸入房間號`,"game.status.nodeConnected":`節點已連線`,"game.status.nodeConnecting":`正在連線節點...`,"game.status.playing":`進行中`,"game.status.finished":`本局結束`,"game.status.waitingStart":`等待開局`,"game.status.title":`狀態`,"game.actions":`操作`,"game.waitingHost":`等待房主開始或繼續牌局。`,"game.waitingPlayers":`等待玩家加入`,"game.host":`房主`,"game.round":`本輪`,"game.hint":`提示`,"game.player":`玩家`,"game.card":`牌`,"game.roomLabel":`房間 {room}`,"game.status.online":`線上`,"game.status.offline":`離線`,"game.toast.playerLeft":`{player} 已退出房間`,"game.gandengyan.mark":`幹`,"game.gandengyan.hero.title":`乾瞪眼牌桌`,"game.gandengyan.speech.gameOver":`遊戲結束`,"game.gandengyan.error.playFailed":`出牌失敗`,"game.gandengyan.error.actionFailed":`操作失敗`,"game.gandengyan.deck":`牌堆`,"game.gandengyan.tablePlay":`{player} 出 {combo}`,"game.gandengyan.waitingLead":`等待領出`,"game.gandengyan.baseScore":`底分`,"game.gandengyan.result.winnerGain":`{player} 獲勝,贏 {score} 分`,"game.gandengyan.result.bombCount":`({count} 個炸彈)`,"game.gandengyan.result.sealedLoss":`{player}(封牌)扣 {loss} 分`,"game.gandengyan.result.cardsLeftLoss":`{player} 剩 {cards} 張,扣 {loss} 分`,"game.gandengyan.result.winner":`{player} 獲勝`,"game.gandengyan.status.yourTurn":`輪到你出牌`,"game.gandengyan.roundPanel":`牌局`,"game.gandengyan.score":`分數`,"game.gandengyan.bombCount":`炸彈 {count} 次`,"game.gandengyan.discardCount":`棄牌 {count} 張`,"game.gandengyan.log":`牌局記錄`,"game.gandengyan.invalidCombo":`牌型不合法`,"game.gandengyan.selectCards":`先選牌`,"game.gandengyan.jokerOrderHint":`按選擇順序解釋大小王`,"game.gandengyan.action.play":`出牌`,"game.gandengyan.action.pass":`不要`,"game.gandengyan.handCount":`{count} 張`,"game.gandengyan.position.seat":`座位 {seat}`,"game.gandengyan.position.me":`我`,"game.gandengyan.position.opponent":`對手位`,"game.gandengyan.position.nextOpponent":`下家/對手位`,"game.gandengyan.position.prevOpponent":`上家/對手位`,"game.gandengyan.position.partner":`對家/隊友位`,"game.gandengyan.position.seatPartner":`座位 {seat}/隊友位`,"game.gandengyan.position.seatOpponent":`座位 {seat}/對手位`,"game.zhajinhua.hero.title":`炸金花牌桌`,"game.zhajinhua.toast.roundStarted":`新一局已開始`,"game.zhajinhua.error.notEnoughPlayers":`至少需要 2 名有足夠籌碼的玩家`,"game.zhajinhua.error.startFailed":`開局失敗`,"game.zhajinhua.error.tooManyLowChips":`籌碼不足的玩家太多,無法開局`,"game.zhajinhua.status.yourTurn":`輪到你操作`,"game.zhajinhua.status.waitingPlayer":`等待 {player}`,"game.zhajinhua.result.winChips":`{player} 贏得 {amount} 籌碼`,"game.zhajinhua.result.winner":`{player} 勝出`,"game.zhajinhua.pot":`底池`,"game.zhajinhua.currentBet":`當前注 {amount}`,"game.zhajinhua.chips":`{amount} 籌碼`,"game.zhajinhua.player.folded":`已棄牌`,"game.zhajinhua.player.looked":`已看牌`,"game.zhajinhua.player.inRound":`在局中`,"game.zhajinhua.myHand":`我的手牌`,"game.zhajinhua.myChips":`我的籌碼`,"game.zhajinhua.hand.unlooked":`未看牌`,"game.zhajinhua.hand.waitingDeal":`等待房主發牌`,"game.zhajinhua.action.look":`看牌`,"game.zhajinhua.action.call":`跟注`,"game.zhajinhua.action.fold":`棄牌`,"game.zhajinhua.action.raiseOption":`加 {amount}`,"game.zhajinhua.action.raise":`加註`,"game.zhajinhua.action.comparePlaceholder":`選擇比牌物件`,"game.zhajinhua.action.compare":`比牌`,"game.zhajinhua.compareResult":`比牌結果`},Sl={"game.gandengyan.title":`Gan Deng Yan`,"game.zhajinhua.title":`Zha Jin Hua`,"game.toast.joinedRoom":`Joined room`,"game.toast.roomCreated":`Room created`,"game.action.shareRoom":`Share room`,"game.action.createRoom":`Create room`,"game.action.joinRoom":`Join room`,"game.action.startRound":`Start round`,"game.action.nextRound":`Next round`,"game.hero.desc":`Create a room code and invite friends. Room state syncs through the MostBox P2P channel.`,"game.currentAccount":`Current account`,"game.roomCode":`Room code`,"game.roomCode.placeholder":`Enter room code`,"game.status.nodeConnected":`Node connected`,"game.status.nodeConnecting":`Connecting node...`,"game.status.playing":`In progress`,"game.status.finished":`Round finished`,"game.status.waitingStart":`Waiting to start`,"game.status.title":`Status`,"game.actions":`Actions`,"game.waitingHost":`Waiting for the host to start or continue.`,"game.waitingPlayers":`Waiting for players`,"game.host":`Host`,"game.round":`Round`,"game.hint":`Hint`,"game.player":`Player`,"game.card":`cards`,"game.roomLabel":`Room {room}`,"game.status.online":`Online`,"game.status.offline":`Offline`,"game.toast.playerLeft":`{player} left the room`,"game.gandengyan.mark":`G`,"game.gandengyan.hero.title":`Gan Deng Yan table`,"game.gandengyan.speech.gameOver":`Game over`,"game.gandengyan.error.playFailed":`Failed to play cards`,"game.gandengyan.error.actionFailed":`Action failed`,"game.gandengyan.deck":`Deck`,"game.gandengyan.tablePlay":`{player} played {combo}`,"game.gandengyan.waitingLead":`Waiting for lead`,"game.gandengyan.baseScore":`Base score`,"game.gandengyan.result.winnerGain":`{player} wins {score} points`,"game.gandengyan.result.bombCount":` ({count} bombs)`,"game.gandengyan.result.sealedLoss":`{player} sealed, loses {loss} points`,"game.gandengyan.result.cardsLeftLoss":`{player} has {cards} cards left, loses {loss} points`,"game.gandengyan.result.winner":`{player} wins`,"game.gandengyan.status.yourTurn":`Your turn to play`,"game.gandengyan.roundPanel":`Round`,"game.gandengyan.score":`Score`,"game.gandengyan.bombCount":`{count} bombs`,"game.gandengyan.discardCount":`{count} discarded`,"game.gandengyan.log":`Round log`,"game.gandengyan.invalidCombo":`Invalid combo`,"game.gandengyan.selectCards":`Select cards first`,"game.gandengyan.jokerOrderHint":`Jokers are interpreted in the selected order`,"game.gandengyan.action.play":`Play`,"game.gandengyan.action.pass":`Pass`,"game.gandengyan.handCount":`{count} cards`,"game.gandengyan.position.seat":`Seat {seat}`,"game.gandengyan.position.me":`Me`,"game.gandengyan.position.opponent":`Opponent`,"game.gandengyan.position.nextOpponent":`Next / opponent`,"game.gandengyan.position.prevOpponent":`Previous / opponent`,"game.gandengyan.position.partner":`Across / partner`,"game.gandengyan.position.seatPartner":`Seat {seat} / partner`,"game.gandengyan.position.seatOpponent":`Seat {seat} / opponent`,"game.zhajinhua.hero.title":`Zha Jin Hua table`,"game.zhajinhua.toast.roundStarted":`New round started`,"game.zhajinhua.error.notEnoughPlayers":`At least 2 players with enough chips are required`,"game.zhajinhua.error.startFailed":`Failed to start round`,"game.zhajinhua.error.tooManyLowChips":`Too many players are short on chips to start`,"game.zhajinhua.status.yourTurn":`Your turn`,"game.zhajinhua.status.waitingPlayer":`Waiting for {player}`,"game.zhajinhua.result.winChips":`{player} won {amount} chips`,"game.zhajinhua.result.winner":`{player} wins`,"game.zhajinhua.pot":`Pot`,"game.zhajinhua.currentBet":`Current bet {amount}`,"game.zhajinhua.chips":`{amount} chips`,"game.zhajinhua.player.folded":`Folded`,"game.zhajinhua.player.looked":`Looked`,"game.zhajinhua.player.inRound":`In round`,"game.zhajinhua.myHand":`My hand`,"game.zhajinhua.myChips":`My chips`,"game.zhajinhua.hand.unlooked":`Not looked`,"game.zhajinhua.hand.waitingDeal":`Waiting for host to deal`,"game.zhajinhua.action.look":`Look`,"game.zhajinhua.action.call":`Call`,"game.zhajinhua.action.fold":`Fold`,"game.zhajinhua.action.raiseOption":`Raise {amount}`,"game.zhajinhua.action.raise":`Raise`,"game.zhajinhua.action.comparePlaceholder":`Choose compare target`,"game.zhajinhua.action.compare":`Compare`,"game.zhajinhua.compareResult":`Compare result`},Cl={"admin.title":`节点管理`,"admin.status.online":`在线`,"admin.status.waiting":`等待`,"admin.action.refresh":`刷新`,"admin.action.copyNodeId":`复制节点 ID`,"admin.action.clear":`清除`,"admin.action.saveConfig":`保存配置`,"admin.action.exportDiagnostics":`导出诊断`,"admin.action.clearLogs":`清空日志`,"admin.toast.backendChecking":`正在检测后端连接,请稍后再试`,"admin.toast.backendDisconnected":`未连接后端`,"admin.toast.statusRefreshed":`节点状态已刷新`,"admin.toast.configSavedRestart":`节点配置已保存。修改了数据目录,需要重启 daemon 生效。`,"admin.toast.configSaved":`节点配置已保存`,"admin.toast.nodeIdCopied":`节点 ID 已复制`,"admin.toast.logsCleared":`节点日志已清空`,"admin.toast.diagnosticsExported":`诊断已导出`,"admin.toast.userDataCleared":`用户数据已清除`,"admin.error.readStatus":`无法读取节点状态`,"admin.error.saveConfig":`保存配置失败`,"admin.error.clearLogs":`清空日志失败`,"admin.error.exportDiagnostics":`导出诊断失败`,"admin.error.clearUserData":`清除用户数据失败`,"admin.error.localDaemonDisconnected":`未连接本地 daemon`,"admin.remoteUnavailable.title":`远程节点管理不可用`,"admin.remoteUnavailable.desc":`当前连接的是别人部署的远程节点,普通邀请码不能查看或修改节点管理数据。`,"admin.confirm.clearUserData":`确定清除用户 {address} 的文件记录和回收站吗?无人引用的副本也会被清理。`,"admin.metric.nodeId":`节点 ID`,"admin.metric.connections":`连接`,"admin.metric.peers":`{count} peers`,"admin.metric.capacity":`容量`,"admin.metric.uptime":`运行`,"admin.uptime.daysHours":`{days} 天 {hours} 小时`,"admin.uptime.hoursMinutes":`{hours} 小时 {minutes} 分钟`,"admin.uptime.minutes":`{minutes} 分钟`,"admin.nodeStatus.title":`节点状态`,"admin.nodeStatus.version":`版本`,"admin.nodeStatus.listen":`监听`,"admin.nodeStatus.dataPath":`数据目录`,"admin.userData.title":`用户数据`,"admin.userData.user":`用户`,"admin.userData.files":`文件`,"admin.userData.trash":`回收站`,"admin.userData.actions":`操作`,"admin.userData.empty":`暂无用户数据`,"admin.settings.title":`节点设置`,"admin.settings.dataPath":`数据目录`,"admin.settings.capacityGiB":`容量上限 GiB`,"admin.settings.maxFileSizeGiB":`单文件最大 GiB`,"admin.settings.remoteInvites":`远程访问邀请码`,"admin.settings.remoteInvitesPlaceholder":`每行一个,或用英文逗号分隔`,"admin.settings.hint":`数据目录变更保存后需要重启 daemon。修改邀请码后新请求立即生效。发布和下载成功后会固定做种;MostBox 不设同时做种数或传输限速。`,"admin.holdings.title":`持有副本`,"admin.holdings.hiddenCount":`当前仅展示前 100 个副本,另有 {count} 个仍在后台做种。`,"admin.holdings.file":`文件`,"admin.holdings.size":`大小`,"admin.holdings.lastServed":`最近服务`,"admin.holdings.status":`状态`,"admin.holdings.empty":`暂无持有副本`,"admin.seedHelp.label":`做种状态说明`,"admin.seedHelp.active.label":`做种中`,"admin.seedHelp.active.desc":`已加入 CID topic,可被其他节点发现并提供完整副本。`,"admin.seedHelp.pending.label":`队列中 / 加入中`,"admin.seedHelp.pending.desc":`正在等待或重连 topic,通常会自动进入做种中。`,"admin.seedHelp.paused.label":`已暂停 / 未 join`,"admin.seedHelp.paused.desc":`本机仍持有文件,但当前不会对外提供下载。`,"admin.seedHelp.error.label":`错误`,"admin.seedHelp.error.desc":`加入或做种失败,请查看下方节点日志里的 seed 事件。`,"admin.seedStatus.queued":`队列中`,"admin.seedStatus.joining":`加入中`,"admin.seedStatus.active":`做种中`,"admin.seedStatus.paused":`已暂停`,"admin.seedStatus.error":`错误`,"admin.seedStatus.errorWithMessage":`错误:{message}`,"admin.seedStatus.notJoined":`未 join`,"admin.time.never":`从未`,"admin.time.justNow":`刚刚`,"admin.logs.title":`节点日志`,"admin.logs.filterLabel":`日志筛选`,"admin.logs.empty":`暂无日志`,"admin.logFilter.all":`全部`,"admin.logFilter.join":`Join`,"admin.logFilter.pull":`Pull`,"admin.logFilter.verify":`Verify`,"admin.logFilter.serve":`Serve`,"admin.logFilter.error":`Error`},wl={"admin.title":`節點管理`,"admin.status.online":`線上`,"admin.status.waiting":`等待`,"admin.action.refresh":`重新整理`,"admin.action.copyNodeId":`複製節點 ID`,"admin.action.clear":`清除`,"admin.action.saveConfig":`儲存設定`,"admin.action.exportDiagnostics":`匯出診斷`,"admin.action.clearLogs":`清空日誌`,"admin.toast.backendChecking":`正在檢測後端連線,請稍後再試`,"admin.toast.backendDisconnected":`未連線後端`,"admin.toast.statusRefreshed":`節點狀態已重新整理`,"admin.toast.configSavedRestart":`節點設定已儲存。修改了資料目錄,需要重啟 daemon 生效。`,"admin.toast.configSaved":`節點設定已儲存`,"admin.toast.nodeIdCopied":`節點 ID 已複製`,"admin.toast.logsCleared":`節點日誌已清空`,"admin.toast.diagnosticsExported":`診斷已匯出`,"admin.toast.userDataCleared":`使用者資料已清除`,"admin.error.readStatus":`無法讀取節點狀態`,"admin.error.saveConfig":`儲存設定失敗`,"admin.error.clearLogs":`清空日誌失敗`,"admin.error.exportDiagnostics":`匯出診斷失敗`,"admin.error.clearUserData":`清除使用者資料失敗`,"admin.error.localDaemonDisconnected":`未連線本機 daemon`,"admin.remoteUnavailable.title":`遠端節點管理不可用`,"admin.remoteUnavailable.desc":`當前連線的是別人部署的遠端節點,普通邀請碼不能檢視或修改節點管理資料。`,"admin.confirm.clearUserData":`確定清除使用者 {address} 的檔案記錄和垃圾桶嗎?無人引用的副本也會被清理。`,"admin.metric.nodeId":`節點 ID`,"admin.metric.connections":`連線`,"admin.metric.peers":`{count} peers`,"admin.metric.capacity":`容量`,"admin.metric.uptime":`執行`,"admin.uptime.daysHours":`{days} 天 {hours} 小時`,"admin.uptime.hoursMinutes":`{hours} 小時 {minutes} 分鐘`,"admin.uptime.minutes":`{minutes} 分鐘`,"admin.nodeStatus.title":`節點狀態`,"admin.nodeStatus.version":`版本`,"admin.nodeStatus.listen":`監聽`,"admin.nodeStatus.dataPath":`資料目錄`,"admin.userData.title":`使用者資料`,"admin.userData.user":`使用者`,"admin.userData.files":`檔案`,"admin.userData.trash":`垃圾桶`,"admin.userData.actions":`操作`,"admin.userData.empty":`暫無使用者資料`,"admin.settings.title":`節點設定`,"admin.settings.dataPath":`資料目錄`,"admin.settings.capacityGiB":`容量上限 GiB`,"admin.settings.maxFileSizeGiB":`單檔案最大 GiB`,"admin.settings.remoteInvites":`遠端訪問邀請碼`,"admin.settings.remoteInvitesPlaceholder":`每行一個,或用英文逗號分隔`,"admin.settings.hint":`資料目錄變更儲存後需要重啟 daemon。修改邀請碼後新請求立即生效。發布和下載成功後會固定做種;MostBox 不設同時做種數或傳輸限速。`,"admin.holdings.title":`持有副本`,"admin.holdings.hiddenCount":`當前僅展示前 100 個副本,另有 {count} 個仍在後臺做種。`,"admin.holdings.file":`檔案`,"admin.holdings.size":`大小`,"admin.holdings.lastServed":`最近服務`,"admin.holdings.status":`狀態`,"admin.holdings.empty":`暫無持有副本`,"admin.seedHelp.label":`做種狀態說明`,"admin.seedHelp.active.label":`做種中`,"admin.seedHelp.active.desc":`已加入 CID topic,可被其他節點發現並提供完整副本。`,"admin.seedHelp.pending.label":`佇列中 / 加入中`,"admin.seedHelp.pending.desc":`正在等待或重連 topic,通常會自動進入做種中。`,"admin.seedHelp.paused.label":`已暫停 / 未 join`,"admin.seedHelp.paused.desc":`本機仍持有檔案,但當前不會對外提供下載。`,"admin.seedHelp.error.label":`錯誤`,"admin.seedHelp.error.desc":`加入或做種失敗,請檢視下方節點日誌裡的 seed 事件。`,"admin.seedStatus.queued":`佇列中`,"admin.seedStatus.joining":`加入中`,"admin.seedStatus.active":`做種中`,"admin.seedStatus.paused":`已暫停`,"admin.seedStatus.error":`錯誤`,"admin.seedStatus.errorWithMessage":`錯誤:{message}`,"admin.seedStatus.notJoined":`未 join`,"admin.time.never":`從未`,"admin.time.justNow":`剛剛`,"admin.logs.title":`節點日誌`,"admin.logs.filterLabel":`日誌篩選`,"admin.logs.empty":`暫無日誌`,"admin.logFilter.all":`全部`,"admin.logFilter.join":`Join`,"admin.logFilter.pull":`Pull`,"admin.logFilter.verify":`Verify`,"admin.logFilter.serve":`Serve`,"admin.logFilter.error":`Error`},Tl={"admin.title":`Node admin`,"admin.status.online":`Online`,"admin.status.waiting":`Waiting`,"admin.action.refresh":`Refresh`,"admin.action.copyNodeId":`Copy node ID`,"admin.action.clear":`Clear`,"admin.action.saveConfig":`Save config`,"admin.action.exportDiagnostics":`Export diagnostics`,"admin.action.clearLogs":`Clear logs`,"admin.toast.backendChecking":`Checking backend connection. Try again soon.`,"admin.toast.backendDisconnected":`Backend is not connected`,"admin.toast.statusRefreshed":`Node status refreshed`,"admin.toast.configSavedRestart":`Node config saved. Restart the daemon for the data directory change to take effect.`,"admin.toast.configSaved":`Node config saved`,"admin.toast.nodeIdCopied":`Node ID copied`,"admin.toast.logsCleared":`Node logs cleared`,"admin.toast.diagnosticsExported":`Diagnostics exported`,"admin.toast.userDataCleared":`User data cleared`,"admin.error.readStatus":`Failed to read node status`,"admin.error.saveConfig":`Failed to save config`,"admin.error.clearLogs":`Failed to clear logs`,"admin.error.exportDiagnostics":`Failed to export diagnostics`,"admin.error.clearUserData":`Failed to clear user data`,"admin.error.localDaemonDisconnected":`Local daemon is not connected`,"admin.remoteUnavailable.title":`Remote node admin unavailable`,"admin.remoteUnavailable.desc":`You are connected to a remote node deployed by someone else. A regular invite cannot view or edit node admin data.`,"admin.confirm.clearUserData":`Clear file records and trash for user {address}? Unreferenced local copies may also be removed.`,"admin.metric.nodeId":`Node ID`,"admin.metric.connections":`Connections`,"admin.metric.peers":`{count} peers`,"admin.metric.capacity":`Capacity`,"admin.metric.uptime":`Uptime`,"admin.uptime.daysHours":`{days} d {hours} h`,"admin.uptime.hoursMinutes":`{hours} h {minutes} min`,"admin.uptime.minutes":`{minutes} min`,"admin.nodeStatus.title":`Node status`,"admin.nodeStatus.version":`Version`,"admin.nodeStatus.listen":`Listen`,"admin.nodeStatus.dataPath":`Data directory`,"admin.userData.title":`User data`,"admin.userData.user":`User`,"admin.userData.files":`Files`,"admin.userData.trash":`Trash`,"admin.userData.actions":`Actions`,"admin.userData.empty":`No user data`,"admin.settings.title":`Node settings`,"admin.settings.dataPath":`Data directory`,"admin.settings.capacityGiB":`Capacity limit GiB`,"admin.settings.maxFileSizeGiB":`Max file GiB`,"admin.settings.remoteInvites":`Remote access invites`,"admin.settings.remoteInvitesPlaceholder":`One per line, or separate with commas`,"admin.settings.hint":`Restart the daemon after saving a data directory change. Invite changes apply to new requests immediately. Publishing and downloading always seed afterward; MostBox does not set a product-level seed count or transfer throttle.`,"admin.holdings.title":`Held copies`,"admin.holdings.hiddenCount":`Only the first 100 copies are shown. {count} more are still seeding in the background.`,"admin.holdings.file":`File`,"admin.holdings.size":`Size`,"admin.holdings.lastServed":`Last served`,"admin.holdings.status":`Status`,"admin.holdings.empty":`No held copies`,"admin.seedHelp.label":`Seeding status help`,"admin.seedHelp.active.label":`Seeding`,"admin.seedHelp.active.desc":`Joined the CID topic and can be discovered by other nodes to provide a full copy.`,"admin.seedHelp.pending.label":`Queued / joining`,"admin.seedHelp.pending.desc":`Waiting for or reconnecting to the topic. It usually becomes active automatically.`,"admin.seedHelp.paused.label":`Paused / not joined`,"admin.seedHelp.paused.desc":`This device still holds the file, but is not currently serving downloads.`,"admin.seedHelp.error.label":`Error`,"admin.seedHelp.error.desc":`Joining or seeding failed. Check seed events in the node logs below.`,"admin.seedStatus.queued":`Queued`,"admin.seedStatus.joining":`Joining`,"admin.seedStatus.active":`Seeding`,"admin.seedStatus.paused":`Paused`,"admin.seedStatus.error":`Error`,"admin.seedStatus.errorWithMessage":`Error: {message}`,"admin.seedStatus.notJoined":`Not joined`,"admin.time.never":`Never`,"admin.time.justNow":`Just now`,"admin.logs.title":`Node logs`,"admin.logs.filterLabel":`Log filter`,"admin.logs.empty":`No logs`,"admin.logFilter.all":`All`,"admin.logFilter.join":`Join`,"admin.logFilter.pull":`Pull`,"admin.logFilter.verify":`Verify`,"admin.logFilter.serve":`Serve`,"admin.logFilter.error":`Error`},El={"profile.meta.title":`个人资料 | MostBox`,"profile.meta.desc":`管理 MostBox 账号头像、显示名称和本地身份信息。`,"profile.kicker":`个人资料`,"profile.signedOut.title":`请先登录`,"profile.signedOut.desc":`登录后可以管理头像、显示名称,并查看当前用户地址和公钥信息。`,"profile.section.account":`账号资料`,"profile.section.account.desc":`这些信息只保存在本机,用于聊天、游戏和工具箱里的身份展示。`,"profile.section.avatar":`头像`,"profile.section.avatar.desc":`选择一个内置头像,或继续使用自己的头像 URL。`,"profile.section.identity":`身份信息`,"profile.section.identity.desc":`以下信息来自当前本地账号,可用于识别和复制公开身份。`,"profile.label.displayName":`显示名称`,"profile.label.username":`用户名`,"profile.label.customAvatar":`自定义头像 URL`,"profile.action.save":`保存`,"profile.action.openWallet":`打开 Web3 钱包`,"profile.toast.saved":`资料已保存`,"profile.toast.avatarUpdated":`头像已更新`,"profile.avatar.address":`地址头像`,"profile.avatar.mint":`熊猫`,"profile.avatar.violet":`猫头鹰`,"profile.avatar.ocean":`海豚`,"profile.avatar.ember":`老虎`,"profile.avatar.sage":`海龟`,"profile.avatar.dusk":`雪山`},Dl={"profile.meta.title":`個人資料 | MostBox`,"profile.meta.desc":`管理 MostBox 帳號頭像、顯示名稱和本機身份資訊。`,"profile.kicker":`個人資料`,"profile.signedOut.title":`請先登入`,"profile.signedOut.desc":`登入後可以管理頭像、顯示名稱,並查看目前使用者地址和公鑰資訊。`,"profile.section.account":`帳號資料`,"profile.section.account.desc":`這些資訊只保存在本機,用於聊天、遊戲和工具箱裡的身份展示。`,"profile.section.avatar":`頭像`,"profile.section.avatar.desc":`選擇一個內建頭像,或繼續使用自己的頭像 URL。`,"profile.section.identity":`身份資訊`,"profile.section.identity.desc":`以下資訊來自目前本機帳號,可用於識別和複製公開身份。`,"profile.label.displayName":`顯示名稱`,"profile.label.username":`使用者名稱`,"profile.label.customAvatar":`自訂頭像 URL`,"profile.action.save":`儲存`,"profile.action.openWallet":`開啟 Web3 錢包`,"profile.toast.saved":`資料已儲存`,"profile.toast.avatarUpdated":`頭像已更新`,"profile.avatar.address":`地址頭像`,"profile.avatar.mint":`熊貓`,"profile.avatar.violet":`貓頭鷹`,"profile.avatar.ocean":`海豚`,"profile.avatar.ember":`老虎`,"profile.avatar.sage":`海龜`,"profile.avatar.dusk":`雪山`},Ol={"profile.meta.title":`Profile | MostBox`,"profile.meta.desc":`Manage the MostBox account avatar, display name, and local identity.`,"profile.kicker":`Profile`,"profile.signedOut.title":`Sign in first`,"profile.signedOut.desc":`After signing in, you can manage your avatar, display name, address, and public identity.`,"profile.section.account":`Account`,"profile.section.account.desc":`These details stay on this device and are used for identity display across chat, games, and tools.`,"profile.section.avatar":`Avatar`,"profile.section.avatar.desc":`Choose a built-in avatar, or keep using your own avatar URL.`,"profile.section.identity":`Identity`,"profile.section.identity.desc":`These details come from the current local account and are safe to copy as public identity.`,"profile.label.displayName":`Display name`,"profile.label.username":`Username`,"profile.label.customAvatar":`Custom avatar URL`,"profile.action.save":`Save`,"profile.action.openWallet":`Open Web3 wallet`,"profile.toast.saved":`Profile saved`,"profile.toast.avatarUpdated":`Avatar updated`,"profile.avatar.address":`Address avatar`,"profile.avatar.mint":`Panda`,"profile.avatar.violet":`Owl`,"profile.avatar.ocean":`Dolphin`,"profile.avatar.ember":`Tiger`,"profile.avatar.sage":`Turtle`,"profile.avatar.dusk":`Snow mountain`},kl=`zh-CN`,Al=`mostbox.locale`,jl=[`zh-CN`,`zh-TW`,`en`],Ml={"zh-CN":`简体中文`,"zh-TW":`繁體中文`,en:`English`},Nl={...Vc,...Wc,...qc,...Xc,...$c,...nl,...al,...cl,...dl,...ml,..._l,...bl,...Cl,...El},Pl={...Uc,...Kc,...Yc,...Qc,...tl,...il,...sl,...ul,...pl,...gl,...yl,...Sl,...Tl,...Ol},Fl={"zh-CN":Nl,"zh-TW":{...Hc,...Gc,...Jc,...Zc,...el,...rl,...ol,...ll,...fl,...hl,...vl,...xl,...wl,...Dl},en:Pl},Il=(0,Y.createContext)(null);function Ll(e){return typeof e==`string`&&jl.includes(e)}function Rl(e){return Ll(e)?e:kl}function zl(e){let t=jl.indexOf(e);return jl[t<0?0:(t+1)%jl.length]??`zh-CN`}function Bl(e,t){return t?e.replace(/\{(\w+)\}/g,(e,n)=>t[n]===void 0?`{${n}}`:String(t[n])):e}function Vl(e,t=kl,n){return Bl(Fl[t][e]||Fl[`zh-CN`][e],n)}function Hl(){if(typeof window>`u`)return kl;try{return Rl(window.localStorage.getItem(Al))}catch{return kl}}function Ul(e){if(!(typeof window>`u`))try{window.localStorage.setItem(Al,e)}catch{}}function Wl(e){typeof document>`u`||(document.documentElement.lang=e,document.documentElement.dataset.locale=e)}function Gl(e){return e instanceof Date?e:new Date(e)}function Kl({children:e}){let[t,n]=(0,Y.useState)(kl);(0,Y.useEffect)(()=>{n(Hl())},[]);let r=(0,Y.useCallback)(e=>{n(e),Ul(e),Wl(e)},[]);(0,Y.useEffect)(()=>{Wl(t)},[t]),(0,Y.useEffect)(()=>{if(typeof window>`u`)return;function e(e){e.key===`mostbox.locale`&&n(Hl())}return window.addEventListener(`storage`,e),()=>window.removeEventListener(`storage`,e)},[]);let i=(0,Y.useMemo)(()=>{let e=zl(t),n=new Intl.DateTimeFormat(t),i=new Intl.DateTimeFormat(t,{hour:`2-digit`,minute:`2-digit`}),a=new Intl.DateTimeFormat(t,{dateStyle:`medium`,timeStyle:`short`}),o=new Intl.NumberFormat(t),s=new Intl.Collator(t);return{locale:t,localeName:Ml[t],nextLocale:e,nextLocaleName:Ml[e],setLocale:r,t:(e,n)=>Vl(e,t,n),formatDate:(e,r)=>r?new Intl.DateTimeFormat(t,r).format(Gl(e)):n.format(Gl(e)),formatTime:(e,n)=>n?new Intl.DateTimeFormat(t,n).format(Gl(e)):i.format(Gl(e)),formatDateTime:(e,n)=>n?new Intl.DateTimeFormat(t,n).format(Gl(e)):a.format(Gl(e)),formatNumber:(e,n)=>n?new Intl.NumberFormat(t,n).format(e):o.format(e),compareStrings:(e,t)=>s.compare(e,t)}},[t,r]);return(0,X.jsx)(Il.Provider,{value:i,children:e})}function ql(){let e=(0,Y.useContext)(Il);if(!e)throw Error(`useI18n must be used within I18nProvider`);return e}function Jl(){if(!(typeof window>`u`))try{return Rl(window.localStorage.getItem(Al))}catch{return}}function Yl(e){return Vl(e,Jl())}var Xl=class extends Y.Component{constructor(e){super(e),this.handleReload=()=>{window.location.reload()},this.state={hasError:!1,error:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){console.error(`[ErrorBoundary]`,e,t)}render(){return this.state.hasError?(0,X.jsxs)(`div`,{className:`error-boundary-page`,children:[(0,X.jsx)(`h1`,{className:`error-boundary-title`,children:Yl(`errorBoundary.title`)}),(0,X.jsx)(`p`,{className:`error-boundary-desc`,children:Yl(`errorBoundary.desc`)}),(0,X.jsx)(`button`,{onClick:this.handleReload,className:`error-boundary-btn`,children:Yl(`errorBoundary.reload`)})]}):this.props.children}},Zl=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),Ql=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),$l=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),eu=e=>{let t=$l(e);return t.charAt(0).toUpperCase()+t.slice(1)},tu={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`},nu=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},ru=(0,Y.createContext)({}),iu=()=>(0,Y.useContext)(ru),au=(0,Y.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>{let{size:l=24,strokeWidth:u=2,absoluteStrokeWidth:d=!1,color:f=`currentColor`,className:p=``}=iu()??{},m=r??d?Number(n??u)*24/Number(t??l):n??u;return(0,Y.createElement)(`svg`,{ref:c,...tu,width:t??l??tu.width,height:t??l??tu.height,stroke:e??f,strokeWidth:m,className:Zl(`lucide`,p,i),...!a&&!nu(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,Y.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),ou=(e,t)=>{let n=(0,Y.forwardRef)(({className:n,...r},i)=>(0,Y.createElement)(au,{ref:i,iconNode:t,className:Zl(`lucide-${Ql(eu(e))}`,`lucide-${e}`,n),...r}));return n.displayName=eu(e),n},su=ou(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),cu=ou(`compass`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z`,key:`9ktpf1`}]]),lu=ou(`eye-off`,[[`path`,{d:`M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49`,key:`ct8e1f`}],[`path`,{d:`M14.084 14.158a3 3 0 0 1-4.242-4.242`,key:`151rxh`}],[`path`,{d:`M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143`,key:`13bj9a`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),uu=ou(`eye`,[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),du=ou(`house`,[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]]),fu=ou(`server`,[[`rect`,{width:`20`,height:`8`,x:`2`,y:`2`,rx:`2`,ry:`2`,key:`ngkwjq`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,ry:`2`,key:`iecqi9`}],[`line`,{x1:`6`,x2:`6.01`,y1:`6`,y2:`6`,key:`16zg32`}],[`line`,{x1:`6`,x2:`6.01`,y1:`18`,y2:`18`,key:`nzw8ys`}]]),pu=ou(`unplug`,[[`path`,{d:`m19 5 3-3`,key:`yk6iyv`}],[`path`,{d:`m2 22 3-3`,key:`19mgm9`}],[`path`,{d:`M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z`,key:`goz73y`}],[`path`,{d:`M7.5 13.5 10 11`,key:`7xgeeb`}],[`path`,{d:`M10.5 16.5 13 14`,key:`10btkg`}],[`path`,{d:`m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z`,key:`1snsnr`}]]),mu=ou(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]);function hu(){let e=Ws(),{t}=ql();function n(){if(window.history.length>1){window.history.back();return}e({to:`/`})}return(0,X.jsx)(`div`,{className:`not-found-page`,children:(0,X.jsxs)(`div`,{className:`not-found-card`,children:[(0,X.jsx)(`div`,{className:`not-found-icon`,children:(0,X.jsx)(cu,{size:48,strokeWidth:1.5})}),(0,X.jsx)(`h1`,{className:`not-found-title`,children:t(`notFound.title`)}),(0,X.jsx)(`p`,{className:`not-found-desc`,children:t(`notFound.desc`)}),(0,X.jsxs)(`div`,{className:`not-found-actions`,children:[(0,X.jsxs)(`button`,{onClick:n,className:`btn btn-secondary`,children:[(0,X.jsx)(su,{size:16}),t(`common.back`)]}),(0,X.jsxs)(ac,{to:`/`,className:`btn btn-primary`,children:[(0,X.jsx)(du,{size:16}),t(`common.backHome`)]})]})]})})}function gu(e,t){if(e===t)return!0;if(e.byteLength!==t.byteLength)return!1;for(let n=0;n<e.byteLength;n++)if(e[n]!==t[n])return!1;return!0}function _u(e){if(e instanceof Uint8Array&&e.constructor.name===`Uint8Array`)return yu(e);if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return yu(new Uint8Array(e.buffer,e.byteOffset,e.byteLength));throw Error(`Unknown type, must be binary type`)}function vu(e){return e?.buffer instanceof ArrayBuffer}function yu(e){return vu(e)?e:e.slice()}function bu(e,t){if(e.length>=255)throw TypeError(`Alphabet too long`);for(var n=new Uint8Array(256),r=0;r<n.length;r++)n[r]=255;for(var i=0;i<e.length;i++){var a=e.charAt(i),o=a.charCodeAt(0);if(n[o]!==255)throw TypeError(a+` is ambiguous`);n[o]=i}var s=e.length,c=e.charAt(0),l=Math.log(s)/Math.log(256),u=Math.log(256)/Math.log(s);function d(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw TypeError(`Expected Uint8Array`);if(t.length===0)return``;for(var n=0,r=0,i=0,a=t.length;i!==a&&t[i]===0;)i++,n++;for(var o=(a-i)*u+1>>>0,l=new Uint8Array(o);i!==a;){for(var d=t[i],f=0,p=o-1;(d!==0||f<r)&&p!==-1;p--,f++)d+=256*l[p]>>>0,l[p]=d%s>>>0,d=d/s>>>0;if(d!==0)throw Error(`Non-zero carry`);r=f,i++}for(var m=o-r;m!==o&&l[m]===0;)m++;for(var h=c.repeat(n);m<o;++m)h+=e.charAt(l[m]);return h}function f(e){if(typeof e!=`string`)throw TypeError(`Expected String`);if(e.length===0)return new Uint8Array;var t=0;if(e[t]!==` `){for(var r=0,i=0;e[t]===c;)r++,t++;for(var a=(e.length-t)*l+1>>>0,o=new Uint8Array(a);e[t];){var u=n[e.charCodeAt(t)];if(u===255)return;for(var d=0,f=a-1;(u!==0||d<i)&&f!==-1;f--,d++)u+=s*o[f]>>>0,o[f]=u%256>>>0,u=u/256>>>0;if(u!==0)throw Error(`Non-zero carry`);i=d,t++}if(e[t]!==` `){for(var p=a-i;p!==a&&o[p]===0;)p++;for(var m=new Uint8Array(r+(a-p)),h=r;p!==a;)m[h++]=o[p++];return m}}}function p(e){var n=f(e);if(n)return n;throw Error(`Non-${t} character`)}return{encode:d,decodeUnsafe:f,decode:p}}var xu=bu,Su=class{name;prefix;baseEncode;constructor(e,t,n){this.name=e,this.prefix=t,this.baseEncode=n}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error(`Unknown type, must be binary type`)}},Cu=class{name;prefix;baseDecode;prefixCodePoint;constructor(e,t,n){this.name=e,this.prefix=t;let r=t.codePointAt(0);if(r===void 0)throw Error(`Invalid prefix character`);this.prefixCodePoint=r,this.baseDecode=n}decode(e){if(typeof e==`string`){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}else throw Error(`Can only multibase decode strings`)}or(e){return Tu(this,e)}},wu=class{decoders;constructor(e){this.decoders=e}or(e){return Tu(this,e)}decode(e){let t=e[0],n=this.decoders[t];if(n!=null)return n.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}};function Tu(e,t){return new wu({...e.decoders??{[e.prefix]:e},...t.decoders??{[t.prefix]:t}})}var Eu=class{name;prefix;baseEncode;baseDecode;encoder;decoder;constructor(e,t,n,r){this.name=e,this.prefix=t,this.baseEncode=n,this.baseDecode=r,this.encoder=new Su(e,t,n),this.decoder=new Cu(e,t,r)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}};function Du({name:e,prefix:t,encode:n,decode:r}){return new Eu(e,t,n,r)}function Ou({name:e,prefix:t,alphabet:n}){let{encode:r,decode:i}=xu(n,e);return Du({prefix:t,name:e,encode:r,decode:e=>_u(i(e))})}function ku(e,t,n,r){let i=e.length;for(;e[i-1]===`=`;)--i;let a=new Uint8Array(i*n/8|0),o=0,s=0,c=0;for(let l=0;l<i;++l){let i=t[e[l]];if(i===void 0)throw SyntaxError(`Non-${r} character`);s=s<<n|i,o+=n,o>=8&&(o-=8,a[c++]=255&s>>o)}if(o>=n||255&s<<8-o)throw SyntaxError(`Unexpected end of data`);return a}function Au(e,t,n){let r=t[t.length-1]===`=`,i=(1<<n)-1,a=``,o=0,s=0;for(let r=0;r<e.length;++r)for(s=s<<8|e[r],o+=8;o>n;)o-=n,a+=t[i&s>>o];if(o!==0&&(a+=t[i&s<<n-o]),r)for(;a.length*n&7;)a+=`=`;return a}function ju(e){let t={};for(let n=0;n<e.length;++n)t[e[n]]=n;return t}function Mu({name:e,prefix:t,bitsPerChar:n,alphabet:r}){let i=ju(r);return Du({prefix:t,name:e,encode(e){return Au(e,r,n)},decode(t){return ku(t,i,n,e)}})}var Nu=Mu({prefix:`b`,name:`base32`,alphabet:`abcdefghijklmnopqrstuvwxyz234567`,bitsPerChar:5});Mu({prefix:`B`,name:`base32upper`,alphabet:`ABCDEFGHIJKLMNOPQRSTUVWXYZ234567`,bitsPerChar:5}),Mu({prefix:`c`,name:`base32pad`,alphabet:`abcdefghijklmnopqrstuvwxyz234567=`,bitsPerChar:5}),Mu({prefix:`C`,name:`base32padupper`,alphabet:`ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=`,bitsPerChar:5}),Mu({prefix:`v`,name:`base32hex`,alphabet:`0123456789abcdefghijklmnopqrstuv`,bitsPerChar:5}),Mu({prefix:`V`,name:`base32hexupper`,alphabet:`0123456789ABCDEFGHIJKLMNOPQRSTUV`,bitsPerChar:5}),Mu({prefix:`t`,name:`base32hexpad`,alphabet:`0123456789abcdefghijklmnopqrstuv=`,bitsPerChar:5}),Mu({prefix:`T`,name:`base32hexpadupper`,alphabet:`0123456789ABCDEFGHIJKLMNOPQRSTUV=`,bitsPerChar:5}),Mu({prefix:`h`,name:`base32z`,alphabet:`ybndrfg8ejkmcpqxot1uwisza345h769`,bitsPerChar:5});var Pu=Ou({prefix:`k`,name:`base36`,alphabet:`0123456789abcdefghijklmnopqrstuvwxyz`});Ou({prefix:`K`,name:`base36upper`,alphabet:`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ`});var Fu=Ou({name:`base58btc`,prefix:`z`,alphabet:`123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz`});Ou({name:`base58flickr`,prefix:`Z`,alphabet:`123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ`});var Iu=Bu,Lu=128,Ru=-128,zu=2**31;function Bu(e,t,n){t||=[],n||=0;for(var r=n;e>=zu;)t[n++]=e&255|Lu,e/=128;for(;e&Ru;)t[n++]=e&255|Lu,e>>>=7;return t[n]=e|0,Bu.bytes=n-r+1,t}var Vu=Wu,Hu=128,Uu=127;function Wu(e,t){var n=0,t=t||0,r=0,i=t,a,o=e.length;do{if(i>=o)throw Wu.bytes=0,RangeError(`Could not decode varint`);a=e[i++],n+=r<28?(a&Uu)<<r:(a&Uu)*2**r,r+=7}while(a>=Hu);return Wu.bytes=i-t,n}var Gu=2**7,Ku=2**14,qu=2**21,Ju=2**28,Yu=2**35,Xu=2**42,Zu=2**49,Qu=2**56,$u=2**63,ed={encode:Iu,decode:Vu,encodingLength:function(e){return e<Gu?1:e<Ku?2:e<qu?3:e<Ju?4:e<Yu?5:e<Xu?6:e<Zu?7:e<Qu?8:e<$u?9:10}};function td(e,t=0){return[ed.decode(e,t),ed.decode.bytes]}function nd(e,t,n=0){return ed.encode(e,t,n),t}function rd(e){return ed.encodingLength(e)}function id(e,t){let n=t.byteLength,r=rd(e),i=r+rd(n),a=new Uint8Array(i+n);return nd(e,a,0),nd(n,a,r),a.set(t,i),new sd(e,n,t,a)}function ad(e){let t=_u(e),[n,r]=td(t),[i,a]=td(t.subarray(r)),o=t.subarray(r+a);if(o.byteLength!==i)throw Error(`Incorrect length`);return new sd(n,i,o,t)}function od(e,t){if(e===t)return!0;{let n=t;return e.code===n.code&&e.size===n.size&&n.bytes instanceof Uint8Array&&gu(e.bytes,n.bytes)}}var sd=class{code;size;digest;bytes;constructor(e,t,n,r){this.code=e,this.size=t,this.digest=yu(n),this.bytes=yu(r)}};function cd(e,t){let{bytes:n,version:r}=e;switch(r){case 0:return pd(n,ud(e),t??Fu.encoder);default:return md(n,ud(e),t??Nu.encoder)}}var ld=new WeakMap;function ud(e){let t=ld.get(e);if(t==null){let t=new Map;return ld.set(e,t),t}return t}var dd=class e{code;version;multihash;bytes;"/";constructor(e,t,n,r){this.code=t,this.version=e,this.multihash=n,this.bytes=yu(r),this[`/`]=this.bytes}get asCID(){return this}get byteOffset(){return this.bytes.byteOffset}get byteLength(){return this.bytes.byteLength}toV0(){switch(this.version){case 0:return this;case 1:{let{code:t,multihash:n}=this;if(t!==hd)throw Error(`Cannot convert a non dag-pb CID to CIDv0`);if(n.code!==gd)throw Error(`Cannot convert non sha2-256 multihash CID to CIDv0`);return e.createV0(n)}default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}toV1(){switch(this.version){case 0:{let{code:t,digest:n}=this.multihash,r=id(t,n);return e.createV1(this.code,r)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 1. This is a bug please report`)}}equals(t){return e.equals(this,t)}static equals(e,t){let n=t;return n!=null&&e.code===n.code&&e.version===n.version&&od(e.multihash,n.multihash)}toString(e){return cd(this,e)}toJSON(){return{"/":cd(this)}}link(){return this}[Symbol.toStringTag]=`CID`;[Symbol.for(`nodejs.util.inspect.custom`)](){return`CID(${this.toString()})`}static asCID(t){if(t==null)return null;let n=t;if(n instanceof e)return n;if(n[`/`]!=null&&n[`/`]===n.bytes||n.asCID===n){let{version:t,code:r,multihash:i,bytes:a}=n;return new e(t,r,i,a??_d(t,r,i.bytes))}else if(n[vd]===!0){let{version:t,multihash:r,code:i}=n,a=ad(r);return e.create(t,i,a)}else return null}static create(t,n,r){if(typeof n!=`number`)throw Error(`String codecs are no longer supported`);if(!(r.bytes instanceof Uint8Array))throw Error(`Invalid digest`);switch(t){case 0:if(n!==hd)throw Error(`Version 0 CID must use dag-pb (code: ${hd}) block encoding`);return new e(t,n,r,r.bytes);case 1:return new e(t,n,r,_d(t,n,r.bytes));default:throw Error(`Invalid version`)}}static createV0(t){return e.create(0,hd,t)}static createV1(t,n){return e.create(1,t,n)}static decode(t){let[n,r]=e.decodeFirst(t);if(r.length!==0)throw Error(`Incorrect length`);return n}static decodeFirst(t){let n=e.inspectBytes(t),r=n.size-n.multihashSize,i=_u(t.subarray(r,r+n.multihashSize));if(i.byteLength!==n.multihashSize)throw Error(`Incorrect length`);let a=i.subarray(n.multihashSize-n.digestSize),o=new sd(n.multihashCode,n.digestSize,a,i);return[n.version===0?e.createV0(o):e.createV1(n.codec,o),t.subarray(n.size)]}static inspectBytes(e){let t=0,n=()=>{let[n,r]=td(e.subarray(t));return t+=r,n},r=n(),i=hd;if(r===18?(r=0,t=0):i=n(),r!==0&&r!==1)throw RangeError(`Invalid CID version ${r}`);let a=t,o=n(),s=n(),c=t+s,l=c-a;return{version:r,codec:i,multihashCode:o,digestSize:s,multihashSize:l,size:c}}static parse(t,n){let[r,i]=fd(t,n),a=e.decode(i);if(a.version===0&&t[0]!==`Q`)throw Error(`Version 0 CID string must not include multibase prefix`);return ud(a).set(r,t),a}};function fd(e,t){switch(e[0]){case`Q`:{let n=t??Fu;return[Fu.prefix,n.decode(`${Fu.prefix}${e}`)]}case Fu.prefix:{let n=t??Fu;return[Fu.prefix,n.decode(e)]}case Nu.prefix:{let n=t??Nu;return[Nu.prefix,n.decode(e)]}case Pu.prefix:{let n=t??Pu;return[Pu.prefix,n.decode(e)]}default:if(t==null)throw Error(`To parse non base32, base36 or base58btc encoded CID multibase decoder must be provided`);return[e[0],t.decode(e)]}}function pd(e,t,n){let{prefix:r}=n;if(r!==Fu.prefix)throw Error(`Cannot string encode V0 in ${n.name} encoding`);let i=t.get(r);if(i==null){let i=n.encode(e).slice(1);return t.set(r,i),i}else return i}function md(e,t,n){let{prefix:r}=n,i=t.get(r);if(i==null){let i=n.encode(e);return t.set(r,i),i}else return i}var hd=112,gd=18;function _d(e,t,n){let r=rd(e),i=r+rd(t),a=new Uint8Array(i+n.byteLength);return nd(e,a,0),nd(t,a,r),a.set(n,i),a}var vd=Symbol.for(`@ipld/js-cid/CID`),yd=20;function bd({name:e,code:t,encode:n,minDigestLength:r,maxDigestLength:i}){return new xd(e,t,n,r,i)}var xd=class{name;code;encode;minDigestLength;maxDigestLength;constructor(e,t,n,r,i){this.name=e,this.code=t,this.encode=n,this.minDigestLength=r??yd,this.maxDigestLength=i}digest(e,t){if(t?.truncate!=null){if(t.truncate<this.minDigestLength)throw Error(`Invalid truncate option, must be greater than or equal to ${this.minDigestLength}`);if(this.maxDigestLength!=null&&t.truncate>this.maxDigestLength)throw Error(`Invalid truncate option, must be less than or equal to ${this.maxDigestLength}`)}if(e instanceof Uint8Array){let n=this.encode(e);return n instanceof Uint8Array?Sd(n,this.code,t?.truncate):n.then(e=>Sd(e,this.code,t?.truncate))}else throw Error(`Unknown type, must be binary type`)}};function Sd(e,t,n){if(n!=null&&n!==e.byteLength){if(n>e.byteLength)throw Error(`Invalid truncate option, must be less than or equal to ${e.byteLength}`);e=e.subarray(0,n)}return id(t,e)}function Cd(e){return async t=>new Uint8Array(await crypto.subtle.digest(e,t))}var wd=bd({name:`sha2-256`,code:18,encode:Cd(`SHA-256`)});bd({name:`sha2-512`,code:19,encode:Cd(`SHA-512`)});function Td(e=``){return String(e).replace(/\\/g,`/`).split(`/`).map(e=>e.trim()).filter(e=>e&&e!==`.`).filter(e=>e!==`..`).join(`/`)}function Ed(e){let t=Td(e?.path||``),n=String(e?.name||``).trim();return t?`${t}/${n}`:n}var Dd={EMPTY:`empty`,SLASH:`slash`,BACKSLASH:`backslash`};function Od(e){let t=String(e||``).trim();return t?t.includes(`/`)?{valid:!1,errorCode:Dd.SLASH,error:`Name cannot contain /`}:t.includes(`\\`)?{valid:!1,errorCode:Dd.BACKSLASH,error:`Name cannot contain \\`}:{valid:!0,name:t}:{valid:!1,errorCode:Dd.EMPTY,error:`Name is required`}}async function kd(e=``){let t=new TextEncoder().encode(String(e)),n=await wd.digest(t);return dd.create(1,85,n).toString()}function Ad(e,t=``,n=``){let r=Td(t),i=n.trim().toLowerCase(),a=Array.isArray(e)?e:[];if(i)return a.filter(e=>String(e.name||``).toLowerCase().includes(i)).sort(Md);let o=[],s=new Map;for(let e of a){let t=Td(e.path||``);if(t===r){o.push(e);continue}if(r===``||t.startsWith(`${r}/`)){let n=(r===``?t:t.slice(r.length+1)).split(`/`).filter(Boolean)[0];n&&!s.has(n)&&s.set(n,{name:n,type:`directory`,path:r,size:0,cid:`__dir__${r}/${n}`,created_at:e.created_at||Date.now(),updated_at:e.updated_at||e.created_at||Date.now()})}}return[...s.values(),...o].sort(Md)}function jd(e,t,n,r){let i=Td(t),a=Td(n),o=String(r||``).trim(),s=Td(a?`${a}/${o}`:o),c=Date.now();return e.map(e=>{let t=Ed(e);if(t===i)return{...e,path:a,name:o,updated_at:c};if(t.startsWith(`${i}/`)){let n=Td(`${s}/${t.slice(i.length+1)}`),r=n.lastIndexOf(`/`);return{...e,path:r===-1?``:n.slice(0,r),name:n.slice(r+1),updated_at:c}}return e})}function Md(e,t){return e.type===`directory`&&t.type!==`directory`?-1:e.type!==`directory`&&t.type===`directory`?1:(t.updated_at||t.created_at||0)-(e.updated_at||e.created_at||0)}var Nd=e=>{let t,n=new Set,r=(e,r)=>{let i=typeof e==`function`?e(t):e;if(!Object.is(i,t)){let e=t;t=r??(typeof i!=`object`||!i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e))},o=t=e(r,i,a);return a},Pd=(e=>e?Nd(e):Nd),Fd=e=>e;function Id(e,t=Fd){let n=Y.useSyncExternalStore(e.subscribe,Y.useCallback(()=>t(e.getState()),[e,t]),Y.useCallback(()=>t(e.getInitialState()),[e,t]));return Y.useDebugValue(n),n}var Ld=e=>{let t=Pd(e),n=e=>Id(t,e);return Object.assign(n,t),n},Rd=(e=>e?Ld(e):Ld),zd=class extends Error{name=`KyError`;get isKyError(){return!0}},Bd=class extends zd{name=`HTTPError`;response;request;options;data;constructor(e,t,n){let r=`${e.status||e.status===0?e.status:``} ${e.statusText??``}`.trim(),i=r?`status code ${r}`:`an unknown error`;super(`Request failed with ${i}: ${t.method} ${t.url}`),this.response=e,this.request=t,this.options=n}},Vd=class extends zd{name=`NetworkError`;request;constructor(e,t){super(`Request failed due to a network error: ${e.method} ${e.url}`,t),this.request=e}},Hd=class extends Error{name=`NonError`;value;constructor(e){let t=`Non-error value was thrown`;try{typeof e==`string`?t=e:e&&typeof e==`object`&&`message`in e&&typeof e.message==`string`&&(t=e.message)}catch{}super(t),this.value=e}},Ud=class extends zd{name=`ForceRetryError`;customDelay;code;customRequest;constructor(e){let t=e?.cause?e.cause instanceof Error?e.cause:new Hd(e.cause):void 0;super(e?.code?`Forced retry: ${e.code}`:`Forced retry`,t?{cause:t}:void 0),this.customDelay=e?.delay,this.code=e?.code,this.customRequest=e?.request}},Wd=class extends Error{name=`SchemaValidationError`;issues;constructor(e){super(`Response schema validation failed`),this.issues=e}},Gd=class extends zd{name=`TimeoutError`;request;constructor(e){super(`Request timed out: ${e.method} ${e.url}`),this.request=e}},Kd=(()=>{let e=!1,t=!1,n=typeof globalThis.ReadableStream==`function`,r=typeof globalThis.Request==`function`;if(n&&r)try{t=new globalThis.Request(`https://empty.invalid`,{body:new globalThis.ReadableStream,method:`POST`,get duplex(){return e=!0,`half`}}).headers.has(`Content-Type`)}catch(e){if(e instanceof Error&&e.message===`unsupported BodyInit type`)return!1;throw e}return e&&!t})(),qd=typeof globalThis.AbortController==`function`,Jd=typeof globalThis.AbortSignal==`function`&&typeof globalThis.AbortSignal.any==`function`,Yd=typeof globalThis.ReadableStream==`function`,Xd=typeof globalThis.FormData==`function`,Zd=[`get`,`post`,`put`,`patch`,`head`,`delete`],Qd={json:`application/json`,text:`text/*`,formData:`multipart/form-data`,arrayBuffer:`*/*`,blob:`*/*`,bytes:`*/*`},$d=2147483647,ef=Symbol(`stop`),tf=class{options;constructor(e){this.options=e}},nf=e=>new tf(e),rf={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,baseUrl:!0,prefix:!0,retry:!0,timeout:!0,totalTimeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,onUploadProgress:!0,fetch:!0,context:!0},af={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,duplex:!0},of=new TextEncoder,sf=e=>{if(!e)return 0;if(e instanceof FormData){let t=0;for(let[n,r]of e)t+=40,t+=of.encode(`Content-Disposition: form-data; name="${n}"`).byteLength,t+=typeof r==`string`?of.encode(r).byteLength:r.size;return t}return e instanceof Blob?e.size:e instanceof ArrayBuffer||ArrayBuffer.isView(e)?e.byteLength:typeof e==`string`?of.encode(e).byteLength:e instanceof URLSearchParams?of.encode(e.toString()).byteLength:0},cf=(e,t,n)=>{let r,i=0;return e.pipeThrough(new TransformStream({transform(e,a){if(a.enqueue(e),r){i+=r.byteLength;let e=t===0?0:i/t;e>=1&&(e=1-2**-52),n?.({percent:e,totalBytes:Math.max(t,i),transferredBytes:i},r)}r=e},flush(){r&&(i+=r.byteLength,n?.({percent:1,totalBytes:Math.max(t,i),transferredBytes:i},r))}}))},lf=(e,t)=>{if(!e.body)return e;let n={status:e.status,statusText:e.statusText,headers:e.headers};if(e.status===204)return new Response(null,n);let r=Math.max(0,Number(e.headers.get(`content-length`))||0);return new Response(cf(e.body,r,t),n)},uf=(e,t,n)=>{if(!e.body)return e;let r=sf(n??e.body);return new Request(e,{duplex:`half`,body:cf(e.body,r,t)})},df=e=>typeof e==`object`&&!!e,ff=Symbol(`replaceOption`),pf=e=>df(e)&&e[ff]===!0?{isReplace:!0,value:e.value}:{isReplace:!1,value:e},mf=(...e)=>{for(let t of e)if((!df(t)||Array.isArray(t))&&t!==void 0)throw TypeError("The `options` argument must be an object");return wf({},...e)},hf=(e={},t={})=>{let n=new globalThis.Headers(e),r=t instanceof globalThis.Headers,i=new globalThis.Headers(t);for(let[e,t]of i.entries())r&&t===`undefined`||t===void 0?n.delete(e):n.set(e,t);return n},gf=e=>{if(!df(e)||Array.isArray(e))return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null},_f=e=>{if(e instanceof URLSearchParams){let t=new URLSearchParams(e),n=e[Sf];return n&&(t[Sf]=new Set(n)),t}return e instanceof globalThis.Headers?new globalThis.Headers(e):Array.isArray(e)?[...e]:gf(e)?{...e}:e},vf=e=>Object.fromEntries(Object.entries(e).filter(e=>e[1]!==void 0)),yf=(e,t)=>gf(e)&&gf(t)?vf({...e,...t}):hf(e,t);function bf(e,t,n){return Object.hasOwn(t,n)&&t[n]===void 0?[]:wf(e[n]??[],t[n]??[])}var xf=(e={},t={})=>({init:bf(e,t,`init`),beforeRequest:bf(e,t,`beforeRequest`),beforeRetry:bf(e,t,`beforeRetry`),beforeError:bf(e,t,`beforeError`),afterResponse:bf(e,t,`afterResponse`)}),Sf=Symbol(`deletedParameters`),Cf=(e,t)=>{let n=new URLSearchParams,r=new Set;for(let i of[e,t])if(i!==void 0)if(i instanceof URLSearchParams){for(let[e,t]of i.entries())n.append(e,t),r.delete(e);let e=i[Sf];if(e)for(let t of e)n.delete(t),r.add(t)}else if(Array.isArray(i))for(let e of i){if(!Array.isArray(e)||e.length!==2)throw TypeError(`Array search parameters must be provided in [[key, value], ...] format`);n.append(String(e[0]),String(e[1])),r.delete(String(e[0]))}else if(df(i))for(let[e,t]of Object.entries(i))t===void 0?(n.delete(e),r.add(e)):(n.append(e,String(t)),r.delete(e));else{let e=new URLSearchParams(i);for(let[t,i]of e.entries())n.append(t,i),r.delete(t)}return r.size>0&&(n[Sf]=r),n},wf=(...e)=>{let t={},n={},r={},i,a=[];for(let o of e)if(Array.isArray(o))Array.isArray(t)||(t=[]),t=[...t,...o];else if(df(o)){for(let[e,n]of Object.entries(o)){if(e===`signal`&&n instanceof globalThis.AbortSignal){a.push(n);continue}let r=pf(n),{isReplace:o}=r;if(n=r.value,e===`context`){if(n!=null&&(!df(n)||Array.isArray(n)))throw TypeError("The `context` option must be an object");t={...t,context:n==null?{}:o?{...n}:{...t.context,...n}};continue}if(e===`searchParams`){i=n==null?void 0:o||i===void 0?n:Cf(i,n);continue}df(n)&&!o&&e in t&&(n=wf(t[e],n)),t={...t,[e]:n}}if(df(o.hooks)){let{value:e,isReplace:n}=pf(o.hooks);r=xf(n?{}:r,e),t.hooks=r}if(df(o.headers)){let{value:e,isReplace:r}=pf(o.headers);n=r?_f(e):yf(n,e),t.headers=n}}return i!==void 0&&(t.searchParams=i),a.length>0&&(a.length===1?t.signal=a[0]:Jd?t.signal=AbortSignal.any(a):t.signal=a.at(-1)),t},Tf=e=>Zd.includes(e)?e.toUpperCase():e,Ef={limit:2,methods:[`get`,`put`,`head`,`delete`,`options`,`trace`],statusCodes:[408,413,429,500,502,503,504],afterStatusCodes:[413,429,503],maxRetryAfter:1/0,backoffLimit:1/0,delay:e=>.3*2**(e-1)*1e3,jitter:void 0,retryOnTimeout:!1},Df=(e={})=>{if(typeof e==`number`)return{...Ef,limit:e};if(e.methods&&!Array.isArray(e.methods))throw Error(`retry.methods must be an array`);if(e.statusCodes&&!Array.isArray(e.statusCodes))throw Error(`retry.statusCodes must be an array`);let t=Object.fromEntries(Object.entries({...e,methods:e.methods?.map(e=>e.toLowerCase())}).filter(([,e])=>e!==void 0));return{...Ef,...t}};async function Of(e,t,n,r){return new Promise((i,a)=>{let o=setTimeout(()=>{n&&n.abort(),a(new Gd(e))},r.timeout);r.fetch(e,t).then(i).catch(a).then(()=>{clearTimeout(o)})})}async function kf(e,{signal:t}){return new Promise((n,r)=>{t&&(t.throwIfAborted(),t.addEventListener(`abort`,i,{once:!0}));function i(){clearTimeout(a),r(t.reason)}let a=setTimeout(()=>{t?.removeEventListener(`abort`,i),n()},e)})}var Af=e=>{let t={};for(let n in e)Object.hasOwn(e,n)&&!(n in af)&&!(n in rf)&&(t[n]=e[n]);return t},jf=e=>e===void 0?!1:Array.isArray(e)?e.length>0:e instanceof URLSearchParams?e.size>0||!!e[Sf]?.size:typeof e==`object`?Object.keys(e).length>0:typeof e==`string`?e.trim().length>0:!!e,Mf=Object.prototype.toString,Nf=e=>Mf.call(e)===`[object Error]`,Pf=new Set([`network error`,`NetworkError when attempting to fetch resource.`,`The Internet connection appears to be offline.`,`Network request failed`,`fetch failed`,`terminated`,` A network error occurred.`,`Network connection lost`]);function Ff(e){if(!(e&&Nf(e)&&e.name===`TypeError`&&typeof e.message==`string`))return!1;let{message:t,stack:n}=e;return t===`Load failed`?n===void 0||`__sentry_captured__`in e:t.startsWith(`error sending request for url`)||t===`Failed to fetch`||t.startsWith(`Failed to fetch (`)&&t.endsWith(`)`)?!0:Pf.has(t)}var If=(e,t)=>e instanceof t||e?.name===t.name;function Lf(e){return If(e,Bd)}function Rf(e){return If(e,Vd)}function zf(e){return If(e,Gd)}var Bf=10*1024*1024,Vf="The `prefixUrl` option has been renamed `prefix` in v2 and enhanced to allow slashes in input. See also the new `baseUrl` option for improved flexibility with standard URL resolution: https://github.com/sindresorhus/ky#baseurl",Hf=Symbol(`timedOutResponseData`),Uf=e=>{let t=/;\s*charset\s*=\s*(?:"([^"]+)"|([^;,\s]+))/i.exec(e),n=t?.[1]??t?.[2];if(n)try{return new TextDecoder(n)}catch{}return new TextDecoder},Wf="The `schema` argument must follow the Standard Schema specification",Gf=e=>typeof e==`object`?{...e,...e.methods&&{methods:[...e.methods]},...e.statusCodes&&{statusCodes:[...e.statusCodes]},...e.afterStatusCodes&&{afterStatusCodes:[...e.afterStatusCodes]}}:e,Kf=Object.prototype.toString,qf=e=>e instanceof globalThis.Request||Kf.call(e)===`[object Request]`,Jf=e=>e instanceof globalThis.Response||Kf.call(e)===`[object Response]`,Yf=e=>Array.isArray(e)?e.map(e=>[...e]):_f(e);function Xf(e){let t={...e,json:_f(e.json),context:_f(e.context),headers:_f(e.headers),searchParams:Yf(e.searchParams)};return e.retry!==void 0&&(t.retry=Gf(e.retry)),t}var Zf=async(e,t)=>{if(typeof t!=`object`&&typeof t!=`function`||t===null)throw TypeError(Wf);let n=t[`~standard`];if(typeof n!=`object`||!n||typeof n.validate!=`function`)throw TypeError(Wf);let r=await n.validate(e);if(r.issues)throw new Wd(r.issues);return r.value},Qf=class e{static create(t,n){let r=n.hooks?.init??[],i=r.length>0?Xf(n):n;for(let e of r)e(i);let a=new e(t,i),o=async()=>{if(typeof a.#i.timeout==`number`&&a.#i.timeout>2147483647)throw RangeError(`The \`timeout\` option cannot be greater than ${$d}`);if(typeof a.#i.totalTimeout==`number`&&a.#i.totalTimeout>2147483647)throw RangeError(`The \`totalTimeout\` option cannot be greater than ${$d}`);await Promise.resolve();let e=await a.#w(),t=e??await a.#E(async()=>a.#k()),n=e!==void 0||a.#O();for(;;){if(t===void 0)return t;if(Jf(t))try{t=await a.#T(t)}catch(e){if(!(e instanceof Ud))throw e;let r=await a.#D(e,async()=>a.#k());if(r===void 0)return r;t=r,n=a.#O();continue}let e=t;if(!e.ok&&e.type!==`opaque`&&(typeof a.#i.throwHttpErrors==`function`?a.#i.throwHttpErrors(e.status):a.#i.throwHttpErrors)){let r=new Bd(e,a.#P(e),a.#M()),i=r;if(r.data=await a.#h(e),n)throw i;let o=await a.#D(r,async()=>a.#k());if(o===void 0)return o;t=o,n=a.#O();continue}break}if(!Jf(t))return t;if(a.#m(t),a.#i.onDownloadProgress){if(typeof a.#i.onDownloadProgress!=`function`)throw TypeError("The `onDownloadProgress` option must be a function");if(!Yd)throw Error("Streams are not supported in your environment. `ReadableStream` is missing.");let e=t.clone();return a.#x(t),lf(e,a.#i.onDownloadProgress)}return t},s=(async()=>{try{return await o()}catch(e){if(!(e instanceof Error)||a.#s.has(e))throw e;let t=e;for(let e of a.#i.hooks.beforeError){let n=await e({request:a.request,options:a.#M(),error:t,retryCount:a.#n});n instanceof Error&&(t=n)}throw t}finally{let e=a.#a;a.#b(e?.body??void 0),a.request!==e&&a.#b(a.request.body??void 0)}})();for(let[e,t]of Object.entries(Qd))e===`bytes`&&typeof globalThis.Response?.prototype?.bytes!=`function`||(s[e]=async n=>{a.request.headers.set(`accept`,a.request.headers.get(`accept`)||t);let r=await s;if(e!==`json`)return r[e]();let o=await r.text();if(o===``)return n===void 0?JSON.parse(o):Zf(void 0,n);let c=i.parseJson?await i.parseJson(o,{request:a.#P(r),response:r}):JSON.parse(o);return n===void 0?c:Zf(c,n)});return s}static#e(e){return e&&typeof e==`object`&&!Array.isArray(e)&&!(e instanceof URLSearchParams)?Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0)):e}request;#t;#n=0;#r;#i;#a;#o;#s=new WeakSet;#c;#l;#u=!1;#d=new WeakMap;constructor(t,n={}){if(this.#r=t,Object.hasOwn(n,`prefixUrl`))throw Error(Vf);if(this.#i={...n,headers:hf(this.#r.headers,n.headers),hooks:xf({},n.hooks),method:Tf(n.method??this.#r.method??`GET`),prefix:String(n.prefix||``),retry:Df(n.retry),throwHttpErrors:n.throwHttpErrors??!0,timeout:n.timeout??1e4,totalTimeout:n.totalTimeout??!1,fetch:n.fetch??globalThis.fetch.bind(globalThis),context:n.context??{}},typeof this.#r!=`string`&&!(this.#r instanceof URL||this.#r instanceof globalThis.Request))throw TypeError("`input` must be a string, URL, or Request");if(typeof this.#r==`string`){if(this.#i.prefix){let e=this.#i.prefix.replace(/\/+$/,``),t=this.#r.replace(/^\/+/,``);this.#r=`${e}/${t}`}if(this.#i.baseUrl){let e;try{e=new URL(this.#r)}catch{}e||(this.#r=new URL(this.#r,new Request(this.#i.baseUrl).url))}}qd&&Jd&&(this.#o=this.#i.signal??this.#r.signal,this.#t=new globalThis.AbortController,this.#i.signal=this.#S()),Kd&&(this.#i.duplex=`half`),this.#i.json!==void 0&&(this.#i.body=this.#i.stringifyJson?.(this.#i.json)??JSON.stringify(this.#i.json),this.#i.headers.set(`content-type`,this.#i.headers.get(`content-type`)??`application/json`));let r=n.headers&&new globalThis.Headers(n.headers).has(`content-type`);if(this.#r instanceof globalThis.Request&&(Xd&&this.#i.body instanceof globalThis.FormData||this.#i.body instanceof URLSearchParams)&&!r&&this.#i.headers.delete(`content-type`),this.request=new globalThis.Request(this.#r,this.#i),jf(this.#i.searchParams)){let t=new URL(this.request.url),n=this.#i.searchParams?.[Sf];if(n)for(let e of n)t.searchParams.delete(e);if(typeof this.#i.searchParams==`string`){let e=this.#i.searchParams.replace(/^\?/,``);e!==``&&(t.search=t.search?`${t.search}&${e}`:`?${e}`)}else{let n=new URLSearchParams(e.#e(this.#i.searchParams));for(let[e,r]of n.entries())t.searchParams.append(e,r)}if(this.#i.searchParams&&typeof this.#i.searchParams==`object`&&!Array.isArray(this.#i.searchParams)&&!(this.#i.searchParams instanceof URLSearchParams))for(let[e,n]of Object.entries(this.#i.searchParams))n===void 0&&t.searchParams.delete(e);this.request=new globalThis.Request(t,this.#i)}if(this.#i.onUploadProgress&&typeof this.#i.onUploadProgress!=`function`)throw TypeError("The `onUploadProgress` option must be a function");this.#l=typeof this.#i.totalTimeout==`number`?this.#j():void 0}#f(){let e=this.#i.retry.delay(this.#n+1),t=e;return this.#i.retry.jitter===!0?t=Math.random()*e:typeof this.#i.retry.jitter==`function`&&(t=this.#i.retry.jitter(e),(!Number.isFinite(t)||t<0)&&(t=e)),Math.min(this.#i.retry.backoffLimit,t)}async#p(e){if(this.#n>=this.#i.retry.limit)throw e;let t=e instanceof Error?e:new Hd(e);if(t instanceof Ud)return t.customDelay??this.#f();if(!this.#i.retry.methods.includes(this.request.method.toLowerCase()))throw e;if(this.#i.retry.shouldRetry!==void 0){let n=await this.#i.retry.shouldRetry({error:t,retryCount:this.#n+1});if(n===!1)throw e;if(n===!0)return this.#f()}if(zf(e)){if(!this.#i.retry.retryOnTimeout)throw e;return this.#f()}if(Lf(e)){if(!this.#i.retry.statusCodes.includes(e.response.status))throw e;let t=e.response.headers.get(`Retry-After`)??e.response.headers.get(`RateLimit-Reset`)??e.response.headers.get(`X-RateLimit-Retry-After`)??e.response.headers.get(`X-RateLimit-Reset`)??e.response.headers.get(`X-Rate-Limit-Reset`);if(t&&this.#i.retry.afterStatusCodes.includes(e.response.status)){let e=Number(t)*1e3;return Number.isNaN(e)?e=Date.parse(t)-Date.now():e>=Date.parse(`2024-01-01`)&&(e-=Date.now()),Number.isFinite(e)?(e=Math.max(0,e),Math.min(this.#i.retry.maxRetryAfter,e)):Math.min(this.#i.retry.maxRetryAfter,this.#f())}if(e.response.status===413)throw e;return this.#f()}if(!Rf(e))throw e;return this.#f()}#m(e){let t=this.#P(e);return this.#i.parseJson&&(e.json=async()=>{let n=await e.text();return n===``?JSON.parse(n):this.#i.parseJson(n,{request:t,response:e})}),e}async#h(e){let t=await this.#v(e,this.#g());if(t===Hf){this.#C();return}if(!t)return;if(!this.#_(e.headers.get(`content-type`)??``))return t;let n=await this.#y(t,e,this.#g(),this.#P(e));if(n===Hf){this.#C();return}return n}#g(){let e=this.#i.timeout===!1?1e4:this.#i.timeout,t=this.#A();if(t===void 0)return e;if(t<=0)throw new Gd(this.request);return Math.min(e,t)}#_(e){let t=(e.split(`;`,1)[0]??``).trim().toLowerCase();return/\/(?:.*[.+-])?json$/.test(t)}async#v(e,t){let{body:n}=e;if(!n)try{return await e.text()}catch{return}let r;try{r=n.getReader()}catch{return}let i=Uf(e.headers.get(`content-type`)??``),a=[],o=0,s=(async()=>{try{for(;;){let{done:e,value:t}=await r.read();if(e)break;if(o+=t.byteLength,o>Bf){r.cancel().catch(()=>void 0);return}a.push(i.decode(t,{stream:!0}))}}catch{return}return a.push(i.decode()),a.join(``)})(),c=new Promise(e=>{let n=setTimeout(()=>{e(Hf)},t);s.finally(()=>{clearTimeout(n)})}),l=await Promise.race([s,c]);return l===Hf&&r.cancel().catch(()=>void 0),l}async#y(e,t,n,r){let i;try{return await Promise.race([Promise.resolve().then(()=>this.#i.parseJson?this.#i.parseJson(e,{request:r,response:t}):JSON.parse(e)),new Promise(e=>{i=setTimeout(()=>{e(Hf)},n)})])}catch{return}finally{clearTimeout(i)}}#b(e){e&&e.cancel().catch(()=>void 0)}#x(e){this.#b(e.body??void 0)}#S(){return this.#o?AbortSignal.any([this.#o,this.#t.signal]):this.#t.signal}#C(){let e=this.#A();if(e!==void 0&&e<=0)throw new Gd(this.request)}async#w(){for(let e of this.#i.hooks.beforeRequest){let t=await e({request:this.request,options:this.#M(),retryCount:0});if(qf(t))this.#N(t);else if(Jf(t))return t}}async#T(e){let t=this.#P(e);for(let n of this.#i.hooks.afterResponse){let r=this.#F(e.clone(),t);this.#m(r);let i;try{i=await n({request:this.request,options:this.#M(),response:r,retryCount:this.#n})}catch(t){throw r!==e&&this.#x(r),this.#x(e),t}if(i instanceof tf)throw r!==e&&this.#x(r),this.#x(e),new Ud(i.options);let a=Jf(i)?this.#F(i,t):e;r!==e&&r!==a&&r.body!==a.body&&this.#x(r),e!==a&&e.body!==a.body&&this.#x(e),e=a}return e}async#E(e){try{return await e()}catch(t){return this.#D(t,e)}}async#D(e,t){this.#u=!1;let n=Math.min(await this.#p(e),$d),r={signal:this.#o},i=this.#A();if(i!==void 0){if(i<=0)throw new Gd(this.request);if(n>=i)throw await kf(i,r),new Gd(this.request)}if(await kf(n,r),this.#C(),e instanceof Ud&&e.customRequest){let t=new globalThis.Request(e.customRequest,this.#i.signal?{signal:this.#i.signal}:void 0);this.#N(t)}for(let t of this.#i.hooks.beforeRetry){let n;try{n=await t({request:this.request,options:this.#M(),error:e,retryCount:this.#n+1})}catch(t){throw t instanceof Error&&t!==e&&this.#s.add(t),t}if(qf(n)){this.#N(n);break}if(Jf(n))return this.#u=!0,this.#n++,n;if(n===ef)return}return this.#C(),this.#n++,this.#E(t)}#O(){let e=this.#u;return this.#u=!1,e}async#k(){this.#t?.signal.aborted&&(this.#t=new globalThis.AbortController,this.#i.signal=this.#S(),this.request=new globalThis.Request(this.request,{signal:this.#i.signal}));let e=Af(this.#i),t=this.#i.retry.limit>0?this.request.clone():void 0,n=this.#I(this.request,this.#i.body??void 0);this.#a=n,t&&(this.request=t);try{let t=this.#A();if(t!==void 0&&t<=0)throw new Gd(this.request);let r=this.#i.timeout===!1?t:t===void 0?this.#i.timeout:Math.min(this.#i.timeout,t),i=r===void 0?await this.#i.fetch(n,e):await Of(n,e,this.#t,{timeout:r,fetch:this.#i.fetch});return this.#F(i,n)}catch(e){throw Ff(e)?new Vd(this.request,{cause:e}):e}}#A(){if(this.#l===void 0)return;let e=this.#j()-this.#l;return Math.max(0,this.#i.totalTimeout-e)}#j(){return globalThis.performance?.now()??Date.now()}#M(){if(!this.#c){let{hooks:e,json:t,parseJson:n,stringifyJson:r,searchParams:i,timeout:a,totalTimeout:o,throwHttpErrors:s,fetch:c,...l}=this.#i;this.#c=Object.freeze(l)}return this.#c}#N(e){this.#c=void 0,this.request=e}#P(e){return this.#d.get(e)??this.request}#F(e,t){return this.#d.set(e,t),e}#I(e,t){return!this.#i.onUploadProgress||!e.body||!Kd?e:uf(e,this.#i.onUploadProgress,t??this.#i.body??void 0)}},$f=e=>{let t=(t,n)=>Qf.create(t,mf(e,n));for(let n of Zd)t[n]=(t,r)=>Qf.create(t,mf(e,r,{method:n}));return t.create=e=>$f(mf(e)),t.extend=t=>(typeof t==`function`&&(t=t(e??{})),$f(mf(e,t))),t.stop=ef,t.retry=nf,t},ep=$f(),tp=`6.16.0`;function np(e,t,n){let r=t.split(`|`).map(e=>e.trim());for(let n=0;n<r.length;n++)switch(t){case`any`:return;case`bigint`:case`boolean`:case`number`:case`string`:if(typeof e===t)return}let i=Error(`invalid value for type ${t}`);throw i.code=`INVALID_ARGUMENT`,i.argument=`value.${n}`,i.value=e,i}async function rp(e){let t=Object.keys(e);return(await Promise.all(t.map(t=>Promise.resolve(e[t])))).reduce((e,n,r)=>(e[t[r]]=n,e),{})}function ip(e,t,n){for(let r in t){let i=t[r],a=n?n[r]:null;a&&np(i,a,r),Object.defineProperty(e,r,{enumerable:!0,value:i,writable:!1})}}function ap(e,t){if(e==null)return`null`;if(t??=new Set,typeof e==`object`){if(t.has(e))return`[Circular]`;t.add(e)}if(Array.isArray(e))return`[ `+e.map(e=>ap(e,t)).join(`, `)+` ]`;if(e instanceof Uint8Array){let t=`0123456789abcdef`,n=`0x`;for(let r=0;r<e.length;r++)n+=t[e[r]>>4],n+=t[e[r]&15];return n}if(typeof e==`object`&&typeof e.toJSON==`function`)return ap(e.toJSON(),t);switch(typeof e){case`boolean`:case`number`:case`symbol`:return e.toString();case`bigint`:return BigInt(e).toString();case`string`:return JSON.stringify(e);case`object`:{let n=Object.keys(e);return n.sort(),`{ `+n.map(n=>`${ap(n,t)}: ${ap(e[n],t)}`).join(`, `)+` }`}}return`[ COULD NOT SERIALIZE ]`}function op(e,t,n){let r=e;{let r=[];if(n){if(`message`in n||`code`in n||`name`in n)throw Error(`value will overwrite populated values: ${ap(n)}`);for(let e in n){if(e===`shortMessage`)continue;let t=n[e];r.push(e+`=`+ap(t))}}r.push(`code=${t}`),r.push(`version=${tp}`),r.length&&(e+=` (`+r.join(`, `)+`)`)}let i;switch(t){case`INVALID_ARGUMENT`:i=TypeError(e);break;case`NUMERIC_FAULT`:case`BUFFER_OVERRUN`:i=RangeError(e);break;default:i=Error(e)}return ip(i,{code:t}),n&&Object.assign(i,n),i.shortMessage??ip(i,{shortMessage:r}),i}function sp(e,t,n,r){if(!e)throw op(t,n,r)}function Z(e,t,n,r){sp(e,t,`INVALID_ARGUMENT`,{argument:n,value:r})}var cp=[`NFD`,`NFC`,`NFKD`,`NFKC`].reduce((e,t)=>{try{if(`test`.normalize(t)!==`test`)throw Error(`bad`);if(t===`NFD`&&`é`.normalize(`NFD`)!==`é`)throw Error(`broken`);e.push(t)}catch{}return e},[]);function lp(e){sp(cp.indexOf(e)>=0,`platform missing String.prototype.normalize`,`UNSUPPORTED_OPERATION`,{operation:`String.prototype.normalize`,info:{form:e}})}function up(e,t,n){if(n??=``,e!==t){let e=n,t=`new`;n&&(e+=`.`,t+=` `+n),sp(!1,`private constructor; use ${e}from* methods`,`UNSUPPORTED_OPERATION`,{operation:t})}}function dp(e,t,n){if(e instanceof Uint8Array)return n?new Uint8Array(e):e;if(typeof e==`string`&&e.length%2==0&&e.match(/^0x[0-9a-f]*$/i)){let t=new Uint8Array((e.length-2)/2),n=2;for(let r=0;r<t.length;r++)t[r]=parseInt(e.substring(n,n+2),16),n+=2;return t}Z(!1,`invalid BytesLike value`,t||`value`,e)}function Q(e,t){return dp(e,t,!1)}function fp(e,t){return dp(e,t,!0)}function pp(e,t){return!(typeof e!=`string`||!e.match(/^0x[0-9A-Fa-f]*$/)||typeof t==`number`&&e.length!==2+2*t||t===!0&&e.length%2!=0)}function mp(e){return pp(e,!0)||e instanceof Uint8Array}var hp=`0123456789abcdef`;function $(e){let t=Q(e),n=`0x`;for(let e=0;e<t.length;e++){let r=t[e];n+=hp[(r&240)>>4]+hp[r&15]}return n}function gp(e){return`0x`+e.map(e=>$(e).substring(2)).join(``)}function _p(e){return pp(e,!0)?(e.length-2)/2:Q(e).length}function vp(e,t,n){let r=Q(e);return n!=null&&n>r.length&&sp(!1,`cannot slice beyond data bounds`,`BUFFER_OVERRUN`,{buffer:r,length:r.length,offset:n}),$(r.slice(t??0,n??r.length))}function yp(e,t,n){let r=Q(e);sp(t>=r.length,`padding exceeds data length`,`BUFFER_OVERRUN`,{buffer:new Uint8Array(r),length:t,offset:t+1});let i=new Uint8Array(t);return i.fill(0),n?i.set(r,t-r.length):i.set(r,0),$(i)}function bp(e,t){return yp(e,t,!0)}var xp=BigInt(0),Sp=BigInt(1),Cp=9007199254740991;function wp(e,t){let n=Ep(e,`value`),r=BigInt(Ap(t,`width`)),i=Sp<<r-Sp;if(n<xp){n=-n,sp(n<=i,`too low`,`NUMERIC_FAULT`,{operation:`toTwos`,fault:`overflow`,value:e});let t=(Sp<<r)-Sp;return(~n&t)+Sp}else sp(n<i,`too high`,`NUMERIC_FAULT`,{operation:`toTwos`,fault:`overflow`,value:e});return n}function Tp(e,t){return Dp(e,`value`)&(Sp<<BigInt(Ap(t,`bits`)))-Sp}function Ep(e,t){switch(typeof e){case`bigint`:return e;case`number`:return Z(Number.isInteger(e),`underflow`,t||`value`,e),Z(e>=-9007199254740991&&e<=Cp,`overflow`,t||`value`,e),BigInt(e);case`string`:try{if(e===``)throw Error(`empty string`);return e[0]===`-`&&e[1]!==`-`?-BigInt(e.substring(1)):BigInt(e)}catch(n){Z(!1,`invalid BigNumberish string: ${n.message}`,t||`value`,e)}}Z(!1,`invalid BigNumberish value`,t||`value`,e)}function Dp(e,t){let n=Ep(e,t);return sp(n>=xp,`unsigned value cannot be negative`,`NUMERIC_FAULT`,{fault:`overflow`,operation:`getUint`,value:e}),n}var Op=`0123456789abcdef`;function kp(e){if(e instanceof Uint8Array){let t=`0x0`;for(let n of e)t+=Op[n>>4],t+=Op[n&15];return BigInt(t)}return Ep(e)}function Ap(e,t){switch(typeof e){case`bigint`:return Z(e>=-9007199254740991&&e<=Cp,`overflow`,t||`value`,e),Number(e);case`number`:return Z(Number.isInteger(e),`underflow`,t||`value`,e),Z(e>=-9007199254740991&&e<=Cp,`overflow`,t||`value`,e),e;case`string`:try{if(e===``)throw Error(`empty string`);return Ap(BigInt(e),t)}catch(n){Z(!1,`invalid numeric string: ${n.message}`,t||`value`,e)}}Z(!1,`invalid numeric value`,t||`value`,e)}function jp(e,t){let n=Dp(e,`value`),r=n.toString(16);if(t==null)r.length%2&&(r=`0`+r);else{let i=Ap(t,`width`);if(i===0&&n===xp)return`0x`;for(sp(i*2>=r.length,`value exceeds width (${i} bytes)`,`NUMERIC_FAULT`,{operation:`toBeHex`,fault:`overflow`,value:e});r.length<i*2;)r=`0`+r}return`0x`+r}function Mp(e,t){let n=Dp(e,`value`);if(n===xp){let e=t==null?0:Ap(t,`width`);return new Uint8Array(e)}let r=n.toString(16);if(r.length%2&&(r=`0`+r),t!=null){let n=Ap(t,`width`);for(;r.length<n*2;)r=`00`+r;sp(n*2===r.length,`value exceeds width (${n} bytes)`,`NUMERIC_FAULT`,{operation:`toBeArray`,fault:`overflow`,value:e})}let i=new Uint8Array(r.length/2);for(let e=0;e<i.length;e++){let t=e*2;i[e]=parseInt(r.substring(t,t+2),16)}return i}function Np(e){let t=$(mp(e)?e:Mp(e)).substring(2);for(;t.startsWith(`0`);)t=t.substring(1);return t===``&&(t=`0`),`0x`+t}var Pp=`123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz`,Fp=null;function Ip(e){if(Fp==null){Fp={};for(let e=0;e<58;e++)Fp[Pp[e]]=BigInt(e)}let t=Fp[e];return Z(t!=null,`invalid base58 value`,`letter`,e),t}var Lp=BigInt(0),Rp=BigInt(58);function zp(e){let t=Q(e),n=kp(t),r=``;for(;n;)r=Pp[Number(n%Rp)]+r,n/=Rp;for(let e=0;e<t.length&&!t[e];e++)r=Pp[0]+r;return r}function Bp(e){let t=Lp;for(let n=0;n<e.length;n++)t*=Rp,t+=Ip(e[n]);return t}function Vp(e){e=atob(e);let t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return Q(t)}function Hp(e){let t=Q(e),n=``;for(let e=0;e<t.length;e++)n+=String.fromCharCode(t[e]);return btoa(n)}function Up(e,t,n,r,i){Z(!1,`invalid codepoint at offset ${t}; ${e}`,`bytes`,n)}function Wp(e,t,n,r,i){if(e===`BAD_PREFIX`||e===`UNEXPECTED_CONTINUE`){let e=0;for(let r=t+1;r<n.length&&n[r]>>6==2;r++)e++;return e}return e===`OVERRUN`?n.length-t-1:0}function Gp(e,t,n,r,i){return e===`OVERLONG`?(Z(typeof i==`number`,`invalid bad code point for replacement`,`badCodepoint`,i),r.push(i),0):(r.push(65533),Wp(e,t,n,r,i))}Object.freeze({error:Up,ignore:Wp,replace:Gp});function Kp(e,t){Z(typeof e==`string`,`invalid string value`,`str`,e),t!=null&&(lp(t),e=e.normalize(t));let n=[];for(let t=0;t<e.length;t++){let r=e.charCodeAt(t);if(r<128)n.push(r);else if(r<2048)n.push(r>>6|192),n.push(r&63|128);else if((r&64512)==55296){t++;let i=e.charCodeAt(t);Z(t<e.length&&(i&64512)==56320,`invalid surrogate pair`,`str`,e);let a=65536+((r&1023)<<10)+(i&1023);n.push(a>>18|240),n.push(a>>12&63|128),n.push(a>>6&63|128),n.push(a&63|128)}else n.push(r>>12|224),n.push(r>>6&63|128),n.push(r&63|128)}return new Uint8Array(n)}function qp(e){let t=e.toString(16);for(;t.length<2;)t=`0`+t;return`0x`+t}function Jp(e,t,n){let r=0;for(let i=0;i<n;i++)r=r*256+e[t+i];return r}function Yp(e,t,n,r){let i=[];for(;n<t+1+r;){let a=Xp(e,n);i.push(a.result),n+=a.consumed,sp(n<=t+1+r,`child data too short`,`BUFFER_OVERRUN`,{buffer:e,length:r,offset:t})}return{consumed:1+r,result:i}}function Xp(e,t){sp(e.length!==0,`data too short`,`BUFFER_OVERRUN`,{buffer:e,length:0,offset:1});let n=t=>{sp(t<=e.length,`data short segment too short`,`BUFFER_OVERRUN`,{buffer:e,length:e.length,offset:t})};if(e[t]>=248){let r=e[t]-247;n(t+1+r);let i=Jp(e,t+1,r);return n(t+1+r+i),Yp(e,t,t+1+r,r+i)}else if(e[t]>=192){let r=e[t]-192;return n(t+1+r),Yp(e,t,t+1,r)}else if(e[t]>=184){let r=e[t]-183;n(t+1+r);let i=Jp(e,t+1,r);n(t+1+r+i);let a=$(e.slice(t+1+r,t+1+r+i));return{consumed:1+r+i,result:a}}else if(e[t]>=128){let r=e[t]-128;n(t+1+r);let i=$(e.slice(t+1,t+1+r));return{consumed:1+r,result:i}}return{consumed:1,result:qp(e[t])}}function Zp(e){let t=Q(e,`data`),n=Xp(t,0);return Z(n.consumed===t.length,`unexpected junk after rlp payload`,`data`,e),n.result}function Qp(e){let t=[];for(;e;)t.unshift(e&255),e>>=8;return t}function $p(e){if(Array.isArray(e)){let t=[];if(e.forEach(function(e){t=t.concat($p(e))}),t.length<=55)return t.unshift(192+t.length),t;let n=Qp(t.length);return n.unshift(247+n.length),n.concat(t)}let t=Array.prototype.slice.call(Q(e,`object`));if(t.length===1&&t[0]<=127)return t;if(t.length<=55)return t.unshift(128+t.length),t;let n=Qp(t.length);return n.unshift(183+n.length),n.concat(t)}var em=`0123456789abcdef`;function tm(e){let t=`0x`;for(let n of $p(e))t+=em[n>>4],t+=em[n&15];return t}function nm(e){let t=Q(e,`randomBytes`);t[6]=t[6]&15|64,t[8]=t[8]&63|128;let n=$(t);return[n.substring(2,10),n.substring(10,14),n.substring(14,18),n.substring(18,22),n.substring(22,34)].join(`-`)}function rm(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`Wrong positive integer: ${e}`)}function im(e,...t){if(!(e instanceof Uint8Array))throw Error(`Expected Uint8Array`);if(t.length>0&&!t.includes(e.length))throw Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function am(e){if(typeof e!=`function`||typeof e.create!=`function`)throw Error(`Hash should be wrapped by utils.wrapConstructor`);rm(e.outputLen),rm(e.blockLen)}function om(e,t=!0){if(e.destroyed)throw Error(`Hash instance has been destroyed`);if(t&&e.finished)throw Error(`Hash#digest() has already been called`)}function sm(e,t){im(e);let n=t.outputLen;if(e.length<n)throw Error(`digestInto() expects output buffer of length at least ${n}`)}var cm=e=>e instanceof Uint8Array,lm=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),um=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),dm=(e,t)=>e<<32-t|e>>>t;if(new Uint8Array(new Uint32Array([287454020]).buffer)[0]!==68)throw Error(`Non little-endian hardware is not supported`);var fm=async()=>{};async function pm(e,t,n){let r=Date.now();for(let i=0;i<e;i++){n(i);let e=Date.now()-r;e>=0&&e<t||(await fm(),r+=e)}}function mm(e){if(typeof e!=`string`)throw Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function hm(e){if(typeof e==`string`&&(e=mm(e)),!cm(e))throw Error(`expected Uint8Array, got ${typeof e}`);return e}var gm=class{clone(){return this._cloneInto()}},_m={}.toString;function vm(e,t){if(t!==void 0&&_m.call(t)!==`[object Object]`)throw Error(`Options should be object or undefined`);return Object.assign(e,t)}function ym(e){let t=t=>e().update(hm(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}var bm=class extends gm{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,am(e);let n=hm(t);if(this.iHash=e.create(),typeof this.iHash.update!=`function`)throw Error(`Expected instance of class which extends utils.Hash`);this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let r=this.blockLen,i=new Uint8Array(r);i.set(n.length>r?e.create().update(n).digest():n);for(let e=0;e<i.length;e++)i[e]^=54;this.iHash.update(i),this.oHash=e.create();for(let e=0;e<i.length;e++)i[e]^=106;this.oHash.update(i),i.fill(0)}update(e){return om(this),this.iHash.update(e),this}digestInto(e){om(this),im(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){let e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||=Object.create(Object.getPrototypeOf(this),{});let{oHash:t,iHash:n,finished:r,destroyed:i,blockLen:a,outputLen:o}=this;return e=e,e.finished=r,e.destroyed=i,e.blockLen=a,e.outputLen=o,e.oHash=t._cloneInto(e.oHash),e.iHash=n._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}},xm=(e,t,n)=>new bm(e,t).update(n).digest();xm.create=(e,t)=>new bm(e,t);function Sm(e,t,n,r){am(e);let{c:i,dkLen:a,asyncTick:o}=vm({dkLen:32,asyncTick:10},r);if(rm(i),rm(a),rm(o),i<1)throw Error(`PBKDF2: iterations (c) should be >= 1`);let s=hm(t),c=hm(n),l=new Uint8Array(a),u=xm.create(e,s);return{c:i,dkLen:a,asyncTick:o,DK:l,PRF:u,PRFSalt:u._cloneInto().update(c)}}function Cm(e,t,n,r,i){return e.destroy(),t.destroy(),r&&r.destroy(),i.fill(0),n}function wm(e,t,n,r){let{c:i,dkLen:a,DK:o,PRF:s,PRFSalt:c}=Sm(e,t,n,r),l,u=new Uint8Array(4),d=um(u),f=new Uint8Array(s.outputLen);for(let e=1,t=0;t<a;e++,t+=s.outputLen){let n=o.subarray(t,t+s.outputLen);d.setInt32(0,e,!1),(l=c._cloneInto(l)).update(u).digestInto(f),n.set(f.subarray(0,n.length));for(let e=1;e<i;e++){s._cloneInto(l).update(f).digestInto(f);for(let e=0;e<n.length;e++)n[e]^=f[e]}}return Cm(s,c,o,l,f)}function Tm(e,t,n,r){if(typeof e.setBigUint64==`function`)return e.setBigUint64(t,n,r);let i=BigInt(32),a=BigInt(4294967295),o=Number(n>>i&a),s=Number(n&a),c=r?4:0,l=r?0:4;e.setUint32(t+c,o,r),e.setUint32(t+l,s,r)}var Em=class extends gm{constructor(e,t,n,r){super(),this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=r,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=um(this.buffer)}update(e){om(this);let{view:t,buffer:n,blockLen:r}=this;e=hm(e);let i=e.length;for(let a=0;a<i;){let o=Math.min(r-this.pos,i-a);if(o===r){let t=um(e);for(;r<=i-a;a+=r)this.process(t,a);continue}n.set(e.subarray(a,a+o),this.pos),this.pos+=o,a+=o,this.pos===r&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){om(this),sm(e,this),this.finished=!0;let{buffer:t,view:n,blockLen:r,isLE:i}=this,{pos:a}=this;t[a++]=128,this.buffer.subarray(a).fill(0),this.padOffset>r-a&&(this.process(n,0),a=0);for(let e=a;e<r;e++)t[e]=0;Tm(n,r-8,BigInt(this.length*8),i),this.process(n,0);let o=um(e),s=this.outputLen;if(s%4)throw Error(`_sha2: outputLen should be aligned to 32bit`);let c=s/4,l=this.get();if(c>l.length)throw Error(`_sha2: outputLen bigger than state`);for(let e=0;e<c;e++)o.setUint32(4*e,l[e],i)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let n=e.slice(0,t);return this.destroy(),n}_cloneInto(e){e||=new this.constructor,e.set(...this.get());let{blockLen:t,buffer:n,length:r,finished:i,destroyed:a,pos:o}=this;return e.length=r,e.pos=o,e.finished=i,e.destroyed=a,r%t&&e.buffer.set(n),e}},Dm=(e,t,n)=>e&t^~e&n,Om=(e,t,n)=>e&t^e&n^t&n,km=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]),Am=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),jm=new Uint32Array(64),Mm=class extends Em{constructor(){super(64,32,8,!1),this.A=Am[0]|0,this.B=Am[1]|0,this.C=Am[2]|0,this.D=Am[3]|0,this.E=Am[4]|0,this.F=Am[5]|0,this.G=Am[6]|0,this.H=Am[7]|0}get(){let{A:e,B:t,C:n,D:r,E:i,F:a,G:o,H:s}=this;return[e,t,n,r,i,a,o,s]}set(e,t,n,r,i,a,o,s){this.A=e|0,this.B=t|0,this.C=n|0,this.D=r|0,this.E=i|0,this.F=a|0,this.G=o|0,this.H=s|0}process(e,t){for(let n=0;n<16;n++,t+=4)jm[n]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=jm[e-15],n=jm[e-2],r=dm(t,7)^dm(t,18)^t>>>3;jm[e]=(dm(n,17)^dm(n,19)^n>>>10)+jm[e-7]+r+jm[e-16]|0}let{A:n,B:r,C:i,D:a,E:o,F:s,G:c,H:l}=this;for(let e=0;e<64;e++){let t=dm(o,6)^dm(o,11)^dm(o,25),u=l+t+Dm(o,s,c)+km[e]+jm[e]|0,d=(dm(n,2)^dm(n,13)^dm(n,22))+Om(n,r,i)|0;l=c,c=s,s=o,o=a+u|0,a=i,i=r,r=n,n=u+d|0}n=n+this.A|0,r=r+this.B|0,i=i+this.C|0,a=a+this.D|0,o=o+this.E|0,s=s+this.F|0,c=c+this.G|0,l=l+this.H|0,this.set(n,r,i,a,o,s,c,l)}roundClean(){jm.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}},Nm=ym(()=>new Mm),Pm=BigInt(2**32-1),Fm=BigInt(32);function Im(e,t=!1){return t?{h:Number(e&Pm),l:Number(e>>Fm&Pm)}:{h:Number(e>>Fm&Pm)|0,l:Number(e&Pm)|0}}function Lm(e,t=!1){let n=new Uint32Array(e.length),r=new Uint32Array(e.length);for(let i=0;i<e.length;i++){let{h:a,l:o}=Im(e[i],t);[n[i],r[i]]=[a,o]}return[n,r]}var Rm=(e,t)=>BigInt(e>>>0)<<Fm|BigInt(t>>>0),zm=(e,t,n)=>e>>>n,Bm=(e,t,n)=>e<<32-n|t>>>n,Vm=(e,t,n)=>e>>>n|t<<32-n,Hm=(e,t,n)=>e<<32-n|t>>>n,Um=(e,t,n)=>e<<64-n|t>>>n-32,Wm=(e,t,n)=>e>>>n-32|t<<64-n,Gm=(e,t)=>t,Km=(e,t)=>e,qm=(e,t,n)=>e<<n|t>>>32-n,Jm=(e,t,n)=>t<<n|e>>>32-n,Ym=(e,t,n)=>t<<n-32|e>>>64-n,Xm=(e,t,n)=>e<<n-32|t>>>64-n;function Zm(e,t,n,r){let i=(t>>>0)+(r>>>0);return{h:e+n+(i/2**32|0)|0,l:i|0}}var Qm={fromBig:Im,split:Lm,toBig:Rm,shrSH:zm,shrSL:Bm,rotrSH:Vm,rotrSL:Hm,rotrBH:Um,rotrBL:Wm,rotr32H:Gm,rotr32L:Km,rotlSH:qm,rotlSL:Jm,rotlBH:Ym,rotlBL:Xm,add:Zm,add3L:(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0),add3H:(e,t,n,r)=>t+n+r+(e/2**32|0)|0,add4L:(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0),add4H:(e,t,n,r,i)=>t+n+r+i+(e/2**32|0)|0,add5H:(e,t,n,r,i,a)=>t+n+r+i+a+(e/2**32|0)|0,add5L:(e,t,n,r,i)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(i>>>0)},[$m,eh]=Qm.split(`0x428a2f98d728ae22.0x7137449123ef65cd.0xb5c0fbcfec4d3b2f.0xe9b5dba58189dbbc.0x3956c25bf348b538.0x59f111f1b605d019.0x923f82a4af194f9b.0xab1c5ed5da6d8118.0xd807aa98a3030242.0x12835b0145706fbe.0x243185be4ee4b28c.0x550c7dc3d5ffb4e2.0x72be5d74f27b896f.0x80deb1fe3b1696b1.0x9bdc06a725c71235.0xc19bf174cf692694.0xe49b69c19ef14ad2.0xefbe4786384f25e3.0x0fc19dc68b8cd5b5.0x240ca1cc77ac9c65.0x2de92c6f592b0275.0x4a7484aa6ea6e483.0x5cb0a9dcbd41fbd4.0x76f988da831153b5.0x983e5152ee66dfab.0xa831c66d2db43210.0xb00327c898fb213f.0xbf597fc7beef0ee4.0xc6e00bf33da88fc2.0xd5a79147930aa725.0x06ca6351e003826f.0x142929670a0e6e70.0x27b70a8546d22ffc.0x2e1b21385c26c926.0x4d2c6dfc5ac42aed.0x53380d139d95b3df.0x650a73548baf63de.0x766a0abb3c77b2a8.0x81c2c92e47edaee6.0x92722c851482353b.0xa2bfe8a14cf10364.0xa81a664bbc423001.0xc24b8b70d0f89791.0xc76c51a30654be30.0xd192e819d6ef5218.0xd69906245565a910.0xf40e35855771202a.0x106aa07032bbd1b8.0x19a4c116b8d2d0c8.0x1e376c085141ab53.0x2748774cdf8eeb99.0x34b0bcb5e19b48a8.0x391c0cb3c5c95a63.0x4ed8aa4ae3418acb.0x5b9cca4f7763e373.0x682e6ff3d6b2b8a3.0x748f82ee5defb2fc.0x78a5636f43172f60.0x84c87814a1f0ab72.0x8cc702081a6439ec.0x90befffa23631e28.0xa4506cebde82bde9.0xbef9a3f7b2c67915.0xc67178f2e372532b.0xca273eceea26619c.0xd186b8c721c0c207.0xeada7dd6cde0eb1e.0xf57d4f7fee6ed178.0x06f067aa72176fba.0x0a637dc5a2c898a6.0x113f9804bef90dae.0x1b710b35131c471b.0x28db77f523047d84.0x32caab7b40c72493.0x3c9ebe0a15c9bebc.0x431d67c49c100d4c.0x4cc5d4becb3e42b6.0x597f299cfc657e2a.0x5fcb6fab3ad6faec.0x6c44198c4a475817`.split(`.`).map(e=>BigInt(e))),th=new Uint32Array(80),nh=new Uint32Array(80),rh=class extends Em{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){let{Ah:e,Al:t,Bh:n,Bl:r,Ch:i,Cl:a,Dh:o,Dl:s,Eh:c,El:l,Fh:u,Fl:d,Gh:f,Gl:p,Hh:m,Hl:h}=this;return[e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h]}set(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h){this.Ah=e|0,this.Al=t|0,this.Bh=n|0,this.Bl=r|0,this.Ch=i|0,this.Cl=a|0,this.Dh=o|0,this.Dl=s|0,this.Eh=c|0,this.El=l|0,this.Fh=u|0,this.Fl=d|0,this.Gh=f|0,this.Gl=p|0,this.Hh=m|0,this.Hl=h|0}process(e,t){for(let n=0;n<16;n++,t+=4)th[n]=e.getUint32(t),nh[n]=e.getUint32(t+=4);for(let e=16;e<80;e++){let t=th[e-15]|0,n=nh[e-15]|0,r=Qm.rotrSH(t,n,1)^Qm.rotrSH(t,n,8)^Qm.shrSH(t,n,7),i=Qm.rotrSL(t,n,1)^Qm.rotrSL(t,n,8)^Qm.shrSL(t,n,7),a=th[e-2]|0,o=nh[e-2]|0,s=Qm.rotrSH(a,o,19)^Qm.rotrBH(a,o,61)^Qm.shrSH(a,o,6),c=Qm.rotrSL(a,o,19)^Qm.rotrBL(a,o,61)^Qm.shrSL(a,o,6),l=Qm.add4L(i,c,nh[e-7],nh[e-16]);th[e]=Qm.add4H(l,r,s,th[e-7],th[e-16])|0,nh[e]=l|0}let{Ah:n,Al:r,Bh:i,Bl:a,Ch:o,Cl:s,Dh:c,Dl:l,Eh:u,El:d,Fh:f,Fl:p,Gh:m,Gl:h,Hh:g,Hl:_}=this;for(let e=0;e<80;e++){let t=Qm.rotrSH(u,d,14)^Qm.rotrSH(u,d,18)^Qm.rotrBH(u,d,41),v=Qm.rotrSL(u,d,14)^Qm.rotrSL(u,d,18)^Qm.rotrBL(u,d,41),y=u&f^~u&m,b=d&p^~d&h,x=Qm.add5L(_,v,b,eh[e],nh[e]),S=Qm.add5H(x,g,t,y,$m[e],th[e]),C=x|0,w=Qm.rotrSH(n,r,28)^Qm.rotrBH(n,r,34)^Qm.rotrBH(n,r,39),E=Qm.rotrSL(n,r,28)^Qm.rotrBL(n,r,34)^Qm.rotrBL(n,r,39),D=n&i^n&o^i&o,O=r&a^r&s^a&s;g=m|0,_=h|0,m=f|0,h=p|0,f=u|0,p=d|0,{h:u,l:d}=Qm.add(c|0,l|0,S|0,C|0),c=o|0,l=s|0,o=i|0,s=a|0,i=n|0,a=r|0;let k=Qm.add3L(C,E,O);n=Qm.add3H(k,S,w,D),r=k|0}({h:n,l:r}=Qm.add(this.Ah|0,this.Al|0,n|0,r|0)),{h:i,l:a}=Qm.add(this.Bh|0,this.Bl|0,i|0,a|0),{h:o,l:s}=Qm.add(this.Ch|0,this.Cl|0,o|0,s|0),{h:c,l}=Qm.add(this.Dh|0,this.Dl|0,c|0,l|0),{h:u,l:d}=Qm.add(this.Eh|0,this.El|0,u|0,d|0),{h:f,l:p}=Qm.add(this.Fh|0,this.Fl|0,f|0,p|0),{h:m,l:h}=Qm.add(this.Gh|0,this.Gl|0,m|0,h|0),{h:g,l:_}=Qm.add(this.Hh|0,this.Hl|0,g|0,_|0),this.set(n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_)}roundClean(){th.fill(0),nh.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}},ih=ym(()=>new rh);function ah(){if(typeof self<`u`)return self;if(typeof window<`u`)return window;if(typeof global<`u`)return global;throw Error(`unable to locate global object`)}var oh=ah(),sh=oh.crypto||oh.msCrypto;function ch(e){switch(e){case`sha256`:return Nm.create();case`sha512`:return ih.create()}Z(!1,`invalid hashing algorithm name`,`algorithm`,e)}function lh(e,t){let n={sha256:Nm,sha512:ih}[e];return Z(n!=null,`invalid hmac algorithm`,`algorithm`,e),xm.create(n,t)}function uh(e,t,n,r,i){let a={sha256:Nm,sha512:ih}[i];return Z(a!=null,`invalid pbkdf2 algorithm`,`algorithm`,i),wm(a,e,t,{c:n,dkLen:r})}function dh(e){sp(sh!=null,`platform does not support secure random numbers`,`UNSUPPORTED_OPERATION`,{operation:`randomBytes`}),Z(Number.isInteger(e)&&e>0&&e<=1024,`invalid length`,`length`,e);let t=new Uint8Array(e);return sh.getRandomValues(t),t}var fh=!1,ph=function(e,t,n){return lh(e,t).update(n).digest()},mh=ph;function hh(e,t,n){let r=Q(t,`key`),i=Q(n,`data`);return $(mh(e,r,i))}hh._=ph,hh.lock=function(){fh=!0},hh.register=function(e){if(fh)throw Error(`computeHmac is locked`);mh=e},Object.freeze(hh);var[gh,_h,vh]=[[],[],[]],yh=BigInt(0),bh=BigInt(1),xh=BigInt(2),Sh=BigInt(7),Ch=BigInt(256),wh=BigInt(113);for(let e=0,t=bh,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],gh.push(2*(5*r+n)),_h.push((e+1)*(e+2)/2%64);let i=yh;for(let e=0;e<7;e++)t=(t<<bh^(t>>Sh)*wh)%Ch,t&xh&&(i^=bh<<(bh<<BigInt(e))-bh);vh.push(i)}var[Th,Eh]=Lm(vh,!0),Dh=(e,t,n)=>n>32?Ym(e,t,n):qm(e,t,n),Oh=(e,t,n)=>n>32?Xm(e,t,n):Jm(e,t,n);function kh(e,t=24){let n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let t=0;t<10;t++)n[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let r=(t+8)%10,i=(t+2)%10,a=n[i],o=n[i+1],s=Dh(a,o,1)^n[r],c=Oh(a,o,1)^n[r+1];for(let n=0;n<50;n+=10)e[t+n]^=s,e[t+n+1]^=c}let t=e[2],i=e[3];for(let n=0;n<24;n++){let r=_h[n],a=Dh(t,i,r),o=Oh(t,i,r),s=gh[n];t=e[s],i=e[s+1],e[s]=a,e[s+1]=o}for(let t=0;t<50;t+=10){for(let r=0;r<10;r++)n[r]=e[t+r];for(let r=0;r<10;r++)e[t+r]^=~n[(r+2)%10]&n[(r+4)%10]}e[0]^=Th[r],e[1]^=Eh[r]}n.fill(0)}var Ah=class e extends gm{constructor(e,t,n,r=!1,i=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=n,this.enableXOF=r,this.rounds=i,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,rm(n),0>=this.blockLen||this.blockLen>=200)throw Error(`Sha3 supports only keccak-f1600 function`);this.state=new Uint8Array(200),this.state32=lm(this.state)}keccak(){kh(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){om(this);let{blockLen:t,state:n}=this;e=hm(e);let r=e.length;for(let i=0;i<r;){let a=Math.min(t-this.pos,r-i);for(let t=0;t<a;t++)n[this.pos++]^=e[i++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:n,blockLen:r}=this;e[n]^=t,t&128&&n===r-1&&this.keccak(),e[r-1]^=128,this.keccak()}writeInto(e){om(this,!1),im(e),this.finish();let t=this.state,{blockLen:n}=this;for(let r=0,i=e.length;r<i;){this.posOut>=n&&this.keccak();let a=Math.min(n-this.posOut,i-r);e.set(t.subarray(this.posOut,this.posOut+a),r),this.posOut+=a,r+=a}return e}xofInto(e){if(!this.enableXOF)throw Error(`XOF is not possible for this instance`);return this.writeInto(e)}xof(e){return rm(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(sm(e,this),this.finished)throw Error(`digest() was already called`);return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(t){let{blockLen:n,suffix:r,outputLen:i,rounds:a,enableXOF:o}=this;return t||=new e(n,r,i,o,a),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=a,t.suffix=r,t.outputLen=i,t.enableXOF=o,t.destroyed=this.destroyed,t}},jh=((e,t,n)=>ym(()=>new Ah(t,e,n)))(1,136,256/8),Mh=!1,Nh=function(e){return jh(e)},Ph=Nh;function Fh(e){let t=Q(e,`data`);return $(Ph(t))}Fh._=Nh,Fh.lock=function(){Mh=!0},Fh.register=function(e){if(Mh)throw TypeError(`keccak256 is locked`);Ph=e},Object.freeze(Fh);var Ih=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),Lh=Uint8Array.from({length:16},(e,t)=>t),Rh=Lh.map(e=>(9*e+5)%16),zh=[Lh],Bh=[Rh];for(let e=0;e<4;e++)for(let t of[zh,Bh])t.push(t[e].map(e=>Ih[e]));var Vh=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(e=>new Uint8Array(e)),Hh=zh.map((e,t)=>e.map(e=>Vh[t][e])),Uh=Bh.map((e,t)=>e.map(e=>Vh[t][e])),Wh=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),Gh=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),Kh=(e,t)=>e<<t|e>>>32-t;function qh(e,t,n,r){return e===0?t^n^r:e===1?t&n|~t&r:e===2?(t|~n)^r:e===3?t&r|n&~r:t^(n|~r)}var Jh=new Uint32Array(16),Yh=class extends Em{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){let{h0:e,h1:t,h2:n,h3:r,h4:i}=this;return[e,t,n,r,i]}set(e,t,n,r,i){this.h0=e|0,this.h1=t|0,this.h2=n|0,this.h3=r|0,this.h4=i|0}process(e,t){for(let n=0;n<16;n++,t+=4)Jh[n]=e.getUint32(t,!0);let n=this.h0|0,r=n,i=this.h1|0,a=i,o=this.h2|0,s=o,c=this.h3|0,l=c,u=this.h4|0,d=u;for(let e=0;e<5;e++){let t=4-e,f=Wh[e],p=Gh[e],m=zh[e],h=Bh[e],g=Hh[e],_=Uh[e];for(let t=0;t<16;t++){let r=Kh(n+qh(e,i,o,c)+Jh[m[t]]+f,g[t])+u|0;n=u,u=c,c=Kh(o,10)|0,o=i,i=r}for(let e=0;e<16;e++){let n=Kh(r+qh(t,a,s,l)+Jh[h[e]]+p,_[e])+d|0;r=d,d=l,l=Kh(s,10)|0,s=a,a=n}}this.set(this.h1+o+l|0,this.h2+c+d|0,this.h3+u+r|0,this.h4+n+a|0,this.h0+i+s|0)}roundClean(){Jh.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}},Xh=ym(()=>new Yh),Zh=!1,Qh=function(e){return Xh(e)},$h=Qh;function eg(e){let t=Q(e,`data`);return $($h(t))}eg._=Qh,eg.lock=function(){Zh=!0},eg.register=function(e){if(Zh)throw TypeError(`ripemd160 is locked`);$h=e},Object.freeze(eg);var tg=!1,ng=function(e,t,n,r,i){return uh(e,t,n,r,i)},rg=ng;function ig(e,t,n,r,i){let a=Q(e,`password`),o=Q(t,`salt`);return $(rg(a,o,n,r,i))}ig._=ng,ig.lock=function(){tg=!0},ig.register=function(e){if(tg)throw Error(`pbkdf2 is locked`);rg=e},Object.freeze(ig);var ag=!1,og=function(e){return new Uint8Array(dh(e))},sg=og;function cg(e){return sg(e)}cg._=og,cg.lock=function(){ag=!0},cg.register=function(e){if(ag)throw Error(`randomBytes is locked`);sg=e},Object.freeze(cg);var lg=(e,t)=>e<<t|e>>>32-t;function ug(e,t,n,r,i,a){let o=e[t++]^n[r++],s=e[t++]^n[r++],c=e[t++]^n[r++],l=e[t++]^n[r++],u=e[t++]^n[r++],d=e[t++]^n[r++],f=e[t++]^n[r++],p=e[t++]^n[r++],m=e[t++]^n[r++],h=e[t++]^n[r++],g=e[t++]^n[r++],_=e[t++]^n[r++],v=e[t++]^n[r++],y=e[t++]^n[r++],b=e[t++]^n[r++],x=e[t++]^n[r++],S=o,C=s,w=c,E=l,D=u,O=d,k=f,A=p,j=m,M=h,N=g,P=_,F=v,I=y,L=b,R=x;for(let e=0;e<8;e+=2)D^=lg(S+F|0,7),j^=lg(D+S|0,9),F^=lg(j+D|0,13),S^=lg(F+j|0,18),M^=lg(O+C|0,7),I^=lg(M+O|0,9),C^=lg(I+M|0,13),O^=lg(C+I|0,18),L^=lg(N+k|0,7),w^=lg(L+N|0,9),k^=lg(w+L|0,13),N^=lg(k+w|0,18),E^=lg(R+P|0,7),A^=lg(E+R|0,9),P^=lg(A+E|0,13),R^=lg(P+A|0,18),C^=lg(S+E|0,7),w^=lg(C+S|0,9),E^=lg(w+C|0,13),S^=lg(E+w|0,18),k^=lg(O+D|0,7),A^=lg(k+O|0,9),D^=lg(A+k|0,13),O^=lg(D+A|0,18),P^=lg(N+M|0,7),j^=lg(P+N|0,9),M^=lg(j+P|0,13),N^=lg(M+j|0,18),F^=lg(R+L|0,7),I^=lg(F+R|0,9),L^=lg(I+F|0,13),R^=lg(L+I|0,18);i[a++]=o+S|0,i[a++]=s+C|0,i[a++]=c+w|0,i[a++]=l+E|0,i[a++]=u+D|0,i[a++]=d+O|0,i[a++]=f+k|0,i[a++]=p+A|0,i[a++]=m+j|0,i[a++]=h+M|0,i[a++]=g+N|0,i[a++]=_+P|0,i[a++]=v+F|0,i[a++]=y+I|0,i[a++]=b+L|0,i[a++]=x+R|0}function dg(e,t,n,r,i){let a=r+0,o=r+16*i;for(let r=0;r<16;r++)n[o+r]=e[t+(2*i-1)*16+r];for(let r=0;r<i;r++,a+=16,t+=16)ug(n,o,e,t,n,a),r>0&&(o+=16),ug(n,a,e,t+=16,n,o)}function fg(e,t,n){let{N:r,r:i,p:a,dkLen:o,asyncTick:s,maxmem:c,onProgress:l}=vm({dkLen:32,asyncTick:10,maxmem:1024**3+1024},n);if(rm(r),rm(i),rm(a),rm(o),rm(s),rm(c),l!==void 0&&typeof l!=`function`)throw Error(`progressCb should be function`);let u=128*i,d=u/4;if(r<=1||r&r-1||r>=2**(u/8)||r>2**32)throw Error(`Scrypt: N must be larger than 1, a power of 2, less than 2^(128 * r / 8) and less than 2^32`);if(a<0||a>(2**32-1)*32/u)throw Error(`Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)`);if(o<0||o>(2**32-1)*32)throw Error(`Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32`);let f=u*(r+a);if(f>c)throw Error(`Scrypt: parameters too large, ${f} (128 * r * (N + p)) > ${c} (maxmem)`);let p=wm(Nm,e,t,{c:1,dkLen:u*a}),m=lm(p),h=lm(new Uint8Array(u*r)),g=lm(new Uint8Array(u)),_=()=>{};if(l){let e=2*r*a,t=Math.max(Math.floor(e/1e4),1),n=0;_=()=>{n++,l&&(!(n%t)||n===e)&&l(n/e)}}return{N:r,r:i,p:a,dkLen:o,blockSize32:d,V:h,B32:m,B:p,tmp:g,blockMixCb:_,asyncTick:s}}function pg(e,t,n,r,i){let a=wm(Nm,e,n,{c:1,dkLen:t});return n.fill(0),r.fill(0),i.fill(0),a}function mg(e,t,n){let{N:r,r:i,p:a,dkLen:o,blockSize32:s,V:c,B32:l,B:u,tmp:d,blockMixCb:f}=fg(e,t,n);for(let e=0;e<a;e++){let t=s*e;for(let e=0;e<s;e++)c[e]=l[t+e];for(let e=0,t=0;e<r-1;e++)dg(c,t,c,t+=s,i),f();dg(c,(r-1)*s,l,t,i),f();for(let e=0;e<r;e++){let e=l[t+s-16]%r;for(let n=0;n<s;n++)d[n]=l[t+n]^c[e*s+n];dg(d,0,l,t,i),f()}}return pg(e,o,u,c,d)}async function hg(e,t,n){let{N:r,r:i,p:a,dkLen:o,blockSize32:s,V:c,B32:l,B:u,tmp:d,blockMixCb:f,asyncTick:p}=fg(e,t,n);for(let e=0;e<a;e++){let t=s*e;for(let e=0;e<s;e++)c[e]=l[t+e];let n=0;await pm(r-1,p,()=>{dg(c,n,c,n+=s,i),f()}),dg(c,(r-1)*s,l,t,i),f(),await pm(r,p,()=>{let e=l[t+s-16]%r;for(let n=0;n<s;n++)d[n]=l[t+n]^c[e*s+n];dg(d,0,l,t,i),f()})}return pg(e,o,u,c,d)}var gg=!1,_g=!1,vg=async function(e,t,n,r,i,a,o){return await hg(e,t,{N:n,r,p:i,dkLen:a,onProgress:o})},yg=function(e,t,n,r,i,a){return mg(e,t,{N:n,r,p:i,dkLen:a})},bg=vg,xg=yg;async function Sg(e,t,n,r,i,a,o){let s=Q(e,`passwd`),c=Q(t,`salt`);return $(await bg(s,c,n,r,i,a,o))}Sg._=vg,Sg.lock=function(){_g=!0},Sg.register=function(e){if(_g)throw Error(`scrypt is locked`);bg=e},Object.freeze(Sg);function Cg(e,t,n,r,i,a){let o=Q(e,`passwd`),s=Q(t,`salt`);return $(xg(o,s,n,r,i,a))}Cg._=yg,Cg.lock=function(){gg=!0},Cg.register=function(e){if(gg)throw Error(`scryptSync is locked`);xg=e},Object.freeze(Cg);var wg=function(e){return ch(`sha256`).update(e).digest()},Tg=function(e){return ch(`sha512`).update(e).digest()},Eg=wg,Dg=Tg,Og=!1,kg=!1;function Ag(e){let t=Q(e,`data`);return $(Eg(t))}Ag._=wg,Ag.lock=function(){Og=!0},Ag.register=function(e){if(Og)throw Error(`sha256 is locked`);Eg=e},Object.freeze(Ag);function jg(e){let t=Q(e,`data`);return $(Dg(t))}jg._=Tg,jg.lock=function(){kg=!0},jg.register=function(e){if(kg)throw Error(`sha512 is locked`);Dg=e},Object.freeze(Ag);function Mg(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`Wrong positive integer: ${e}`)}function Ng(e,...t){if(!(e instanceof Uint8Array))throw Error(`Expected Uint8Array`);if(t.length>0&&!t.includes(e.length))throw Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function Pg(e){if(typeof e!=`function`||typeof e.create!=`function`)throw Error(`Hash should be wrapped by utils.wrapConstructor`);Mg(e.outputLen),Mg(e.blockLen)}function Fg(e,t=!0){if(e.destroyed)throw Error(`Hash instance has been destroyed`);if(t&&e.finished)throw Error(`Hash#digest() has already been called`)}function Ig(e,t){Ng(e);let n=t.outputLen;if(e.length<n)throw Error(`digestInto() expects output buffer of length at least ${n}`)}var Lg=typeof globalThis==`object`&&`crypto`in globalThis?globalThis.crypto:void 0,Rg=e=>e instanceof Uint8Array,zg=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),Bg=(e,t)=>e<<32-t|e>>>t;if(new Uint8Array(new Uint32Array([287454020]).buffer)[0]!==68)throw Error(`Non little-endian hardware is not supported`);function Vg(e){if(typeof e!=`string`)throw Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function Hg(e){if(typeof e==`string`&&(e=Vg(e)),!Rg(e))throw Error(`expected Uint8Array, got ${typeof e}`);return e}function Ug(...e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),n=0;return e.forEach(e=>{if(!Rg(e))throw Error(`Uint8Array expected`);t.set(e,n),n+=e.length}),t}var Wg=class{clone(){return this._cloneInto()}};({}).toString;function Gg(e){let t=t=>e().update(Hg(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function Kg(e=32){if(Lg&&typeof Lg.getRandomValues==`function`)return Lg.getRandomValues(new Uint8Array(e));throw Error(`crypto.getRandomValues must be defined`)}function qg(e,t,n,r){if(typeof e.setBigUint64==`function`)return e.setBigUint64(t,n,r);let i=BigInt(32),a=BigInt(4294967295),o=Number(n>>i&a),s=Number(n&a),c=r?4:0,l=r?0:4;e.setUint32(t+c,o,r),e.setUint32(t+l,s,r)}var Jg=class extends Wg{constructor(e,t,n,r){super(),this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=r,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=zg(this.buffer)}update(e){Fg(this);let{view:t,buffer:n,blockLen:r}=this;e=Hg(e);let i=e.length;for(let a=0;a<i;){let o=Math.min(r-this.pos,i-a);if(o===r){let t=zg(e);for(;r<=i-a;a+=r)this.process(t,a);continue}n.set(e.subarray(a,a+o),this.pos),this.pos+=o,a+=o,this.pos===r&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){Fg(this),Ig(e,this),this.finished=!0;let{buffer:t,view:n,blockLen:r,isLE:i}=this,{pos:a}=this;t[a++]=128,this.buffer.subarray(a).fill(0),this.padOffset>r-a&&(this.process(n,0),a=0);for(let e=a;e<r;e++)t[e]=0;qg(n,r-8,BigInt(this.length*8),i),this.process(n,0);let o=zg(e),s=this.outputLen;if(s%4)throw Error(`_sha2: outputLen should be aligned to 32bit`);let c=s/4,l=this.get();if(c>l.length)throw Error(`_sha2: outputLen bigger than state`);for(let e=0;e<c;e++)o.setUint32(4*e,l[e],i)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let n=e.slice(0,t);return this.destroy(),n}_cloneInto(e){e||=new this.constructor,e.set(...this.get());let{blockLen:t,buffer:n,length:r,finished:i,destroyed:a,pos:o}=this;return e.length=r,e.pos=o,e.finished=i,e.destroyed=a,r%t&&e.buffer.set(n),e}},Yg=(e,t,n)=>e&t^~e&n,Xg=(e,t,n)=>e&t^e&n^t&n,Zg=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]),Qg=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),$g=new Uint32Array(64),e_=class extends Jg{constructor(){super(64,32,8,!1),this.A=Qg[0]|0,this.B=Qg[1]|0,this.C=Qg[2]|0,this.D=Qg[3]|0,this.E=Qg[4]|0,this.F=Qg[5]|0,this.G=Qg[6]|0,this.H=Qg[7]|0}get(){let{A:e,B:t,C:n,D:r,E:i,F:a,G:o,H:s}=this;return[e,t,n,r,i,a,o,s]}set(e,t,n,r,i,a,o,s){this.A=e|0,this.B=t|0,this.C=n|0,this.D=r|0,this.E=i|0,this.F=a|0,this.G=o|0,this.H=s|0}process(e,t){for(let n=0;n<16;n++,t+=4)$g[n]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=$g[e-15],n=$g[e-2],r=Bg(t,7)^Bg(t,18)^t>>>3;$g[e]=(Bg(n,17)^Bg(n,19)^n>>>10)+$g[e-7]+r+$g[e-16]|0}let{A:n,B:r,C:i,D:a,E:o,F:s,G:c,H:l}=this;for(let e=0;e<64;e++){let t=Bg(o,6)^Bg(o,11)^Bg(o,25),u=l+t+Yg(o,s,c)+Zg[e]+$g[e]|0,d=(Bg(n,2)^Bg(n,13)^Bg(n,22))+Xg(n,r,i)|0;l=c,c=s,s=o,o=a+u|0,a=i,i=r,r=n,n=u+d|0}n=n+this.A|0,r=r+this.B|0,i=i+this.C|0,a=a+this.D|0,o=o+this.E|0,s=s+this.F|0,c=c+this.G|0,l=l+this.H|0,this.set(n,r,i,a,o,s,c,l)}roundClean(){$g.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}},t_=Gg(()=>new e_),n_=t({bitGet:()=>S_,bitLen:()=>x_,bitMask:()=>w_,bitSet:()=>C_,bytesToHex:()=>c_,bytesToNumberBE:()=>f_,bytesToNumberLE:()=>p_,concatBytes:()=>v_,createHmacDrbg:()=>D_,ensureBytes:()=>__,equalBytes:()=>y_,hexToBytes:()=>d_,hexToNumber:()=>u_,numberToBytesBE:()=>m_,numberToBytesLE:()=>h_,numberToHexUnpadded:()=>l_,numberToVarBytesBE:()=>g_,utf8ToBytes:()=>b_,validateObject:()=>k_}),r_=BigInt(0),i_=BigInt(1),a_=BigInt(2),o_=e=>e instanceof Uint8Array,s_=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,`0`));function c_(e){if(!o_(e))throw Error(`Uint8Array expected`);let t=``;for(let n=0;n<e.length;n++)t+=s_[e[n]];return t}function l_(e){let t=e.toString(16);return t.length&1?`0${t}`:t}function u_(e){if(typeof e!=`string`)throw Error(`hex string expected, got `+typeof e);return BigInt(e===``?`0`:`0x${e}`)}function d_(e){if(typeof e!=`string`)throw Error(`hex string expected, got `+typeof e);let t=e.length;if(t%2)throw Error(`padded hex string expected, got unpadded hex of length `+t);let n=new Uint8Array(t/2);for(let t=0;t<n.length;t++){let r=t*2,i=e.slice(r,r+2),a=Number.parseInt(i,16);if(Number.isNaN(a)||a<0)throw Error(`Invalid byte sequence`);n[t]=a}return n}function f_(e){return u_(c_(e))}function p_(e){if(!o_(e))throw Error(`Uint8Array expected`);return u_(c_(Uint8Array.from(e).reverse()))}function m_(e,t){return d_(e.toString(16).padStart(t*2,`0`))}function h_(e,t){return m_(e,t).reverse()}function g_(e){return d_(l_(e))}function __(e,t,n){let r;if(typeof t==`string`)try{r=d_(t)}catch(n){throw Error(`${e} must be valid hex string, got "${t}". Cause: ${n}`)}else if(o_(t))r=Uint8Array.from(t);else throw Error(`${e} must be hex string or Uint8Array`);let i=r.length;if(typeof n==`number`&&i!==n)throw Error(`${e} expected ${n} bytes, got ${i}`);return r}function v_(...e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),n=0;return e.forEach(e=>{if(!o_(e))throw Error(`Uint8Array expected`);t.set(e,n),n+=e.length}),t}function y_(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function b_(e){if(typeof e!=`string`)throw Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function x_(e){let t;for(t=0;e>r_;e>>=i_,t+=1);return t}function S_(e,t){return e>>BigInt(t)&i_}var C_=(e,t,n)=>e|(n?i_:r_)<<BigInt(t),w_=e=>(a_<<BigInt(e-1))-i_,T_=e=>new Uint8Array(e),E_=e=>Uint8Array.from(e);function D_(e,t,n){if(typeof e!=`number`||e<2)throw Error(`hashLen must be a number`);if(typeof t!=`number`||t<2)throw Error(`qByteLen must be a number`);if(typeof n!=`function`)throw Error(`hmacFn must be a function`);let r=T_(e),i=T_(e),a=0,o=()=>{r.fill(1),i.fill(0),a=0},s=(...e)=>n(i,r,...e),c=(e=T_())=>{i=s(E_([0]),e),r=s(),e.length!==0&&(i=s(E_([1]),e),r=s())},l=()=>{if(a++>=1e3)throw Error(`drbg: tried 1000 values`);let e=0,n=[];for(;e<t;){r=s();let t=r.slice();n.push(t),e+=r.length}return v_(...n)};return(e,t)=>{o(),c(e);let n;for(;!(n=t(l()));)c();return o(),n}}var O_={bigint:e=>typeof e==`bigint`,function:e=>typeof e==`function`,boolean:e=>typeof e==`boolean`,string:e=>typeof e==`string`,stringOrUint8Array:e=>typeof e==`string`||e instanceof Uint8Array,isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>typeof e==`function`&&Number.isSafeInteger(e.outputLen)};function k_(e,t,n={}){let r=(t,n,r)=>{let i=O_[n];if(typeof i!=`function`)throw Error(`Invalid validator "${n}", expected function`);let a=e[t];if(!(r&&a===void 0)&&!i(a,e))throw Error(`Invalid param ${String(t)}=${a} (${typeof a}), expected ${n}`)};for(let[e,n]of Object.entries(t))r(e,n,!1);for(let[e,t]of Object.entries(n))r(e,t,!0);return e}var A_=BigInt(0),j_=BigInt(1),M_=BigInt(2),N_=BigInt(3),P_=BigInt(4),F_=BigInt(5),I_=BigInt(8),L_=BigInt(16);function R_(e,t){let n=e%t;return n>=A_?n:t+n}function z_(e,t,n){if(n<=A_||t<A_)throw Error(`Expected power/modulo > 0`);if(n===j_)return A_;let r=j_;for(;t>A_;)t&j_&&(r=r*e%n),e=e*e%n,t>>=j_;return r}function B_(e,t,n){let r=e;for(;t-- >A_;)r*=r,r%=n;return r}function V_(e,t){if(e===A_||t<=A_)throw Error(`invert: expected positive integers, got n=${e} mod=${t}`);let n=R_(e,t),r=t,i=A_,a=j_,o=j_,s=A_;for(;n!==A_;){let e=r/n,t=r%n,c=i-o*e,l=a-s*e;r=n,n=t,i=o,a=s,o=c,s=l}if(r!==j_)throw Error(`invert: does not exist`);return R_(i,t)}function H_(e){let t=(e-j_)/M_,n,r,i;for(n=e-j_,r=0;n%M_===A_;n/=M_,r++);for(i=M_;i<e&&z_(i,t,e)!==e-j_;i++);if(r===1){let t=(e+j_)/P_;return function(e,n){let r=e.pow(n,t);if(!e.eql(e.sqr(r),n))throw Error(`Cannot find square root`);return r}}let a=(n+j_)/M_;return function(e,o){if(e.pow(o,t)===e.neg(e.ONE))throw Error(`Cannot find square root`);let s=r,c=e.pow(e.mul(e.ONE,i),n),l=e.pow(o,a),u=e.pow(o,n);for(;!e.eql(u,e.ONE);){if(e.eql(u,e.ZERO))return e.ZERO;let t=1;for(let n=e.sqr(u);t<s&&!e.eql(n,e.ONE);t++)n=e.sqr(n);let n=e.pow(c,j_<<BigInt(s-t-1));c=e.sqr(n),l=e.mul(l,n),u=e.mul(u,c),s=t}return l}}function U_(e){if(e%P_===N_){let t=(e+j_)/P_;return function(e,n){let r=e.pow(n,t);if(!e.eql(e.sqr(r),n))throw Error(`Cannot find square root`);return r}}if(e%I_===F_){let t=(e-F_)/I_;return function(e,n){let r=e.mul(n,M_),i=e.pow(r,t),a=e.mul(n,i),o=e.mul(e.mul(a,M_),i),s=e.mul(a,e.sub(o,e.ONE));if(!e.eql(e.sqr(s),n))throw Error(`Cannot find square root`);return s}}return e%L_,H_(e)}var W_=[`create`,`isValid`,`is0`,`neg`,`inv`,`sqrt`,`sqr`,`eql`,`add`,`sub`,`mul`,`pow`,`div`,`addN`,`subN`,`mulN`,`sqrN`];function G_(e){return k_(e,W_.reduce((e,t)=>(e[t]=`function`,e),{ORDER:`bigint`,MASK:`bigint`,BYTES:`isSafeInteger`,BITS:`isSafeInteger`}))}function K_(e,t,n){if(n<A_)throw Error(`Expected power > 0`);if(n===A_)return e.ONE;if(n===j_)return t;let r=e.ONE,i=t;for(;n>A_;)n&j_&&(r=e.mul(r,i)),i=e.sqr(i),n>>=j_;return r}function q_(e,t){let n=Array(t.length),r=t.reduce((t,r,i)=>e.is0(r)?t:(n[i]=t,e.mul(t,r)),e.ONE),i=e.inv(r);return t.reduceRight((t,r,i)=>e.is0(r)?t:(n[i]=e.mul(t,n[i]),e.mul(t,r)),i),n}function J_(e,t){let n=t===void 0?e.toString(2).length:t;return{nBitLength:n,nByteLength:Math.ceil(n/8)}}function Y_(e,t,n=!1,r={}){if(e<=A_)throw Error(`Expected Field ORDER > 0, got ${e}`);let{nBitLength:i,nByteLength:a}=J_(e,t);if(a>2048)throw Error(`Field lengths over 2048 bytes are not supported`);let o=U_(e),s=Object.freeze({ORDER:e,BITS:i,BYTES:a,MASK:w_(i),ZERO:A_,ONE:j_,create:t=>R_(t,e),isValid:t=>{if(typeof t!=`bigint`)throw Error(`Invalid field element: expected bigint, got ${typeof t}`);return A_<=t&&t<e},is0:e=>e===A_,isOdd:e=>(e&j_)===j_,neg:t=>R_(-t,e),eql:(e,t)=>e===t,sqr:t=>R_(t*t,e),add:(t,n)=>R_(t+n,e),sub:(t,n)=>R_(t-n,e),mul:(t,n)=>R_(t*n,e),pow:(e,t)=>K_(s,e,t),div:(t,n)=>R_(t*V_(n,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>V_(t,e),sqrt:r.sqrt||(e=>o(s,e)),invertBatch:e=>q_(s,e),cmov:(e,t,n)=>n?t:e,toBytes:e=>n?h_(e,a):m_(e,a),fromBytes:e=>{if(e.length!==a)throw Error(`Fp.fromBytes: expected ${a}, got ${e.length}`);return n?p_(e):f_(e)}});return Object.freeze(s)}function X_(e){if(typeof e!=`bigint`)throw Error(`field order must be bigint`);let t=e.toString(2).length;return Math.ceil(t/8)}function Z_(e){let t=X_(e);return t+Math.ceil(t/2)}function Q_(e,t,n=!1){let r=e.length,i=X_(t),a=Z_(t);if(r<16||r<a||r>1024)throw Error(`expected ${a}-1024 bytes of input, got ${r}`);let o=R_(n?f_(e):p_(e),t-j_)+j_;return n?h_(o,i):m_(o,i)}var $_=BigInt(0),ev=BigInt(1);function tv(e,t){let n=(e,t)=>{let n=t.negate();return e?n:t},r=e=>({windows:Math.ceil(t/e)+1,windowSize:2**(e-1)});return{constTimeNegate:n,unsafeLadder(t,n){let r=e.ZERO,i=t;for(;n>$_;)n&ev&&(r=r.add(i)),i=i.double(),n>>=ev;return r},precomputeWindow(e,t){let{windows:n,windowSize:i}=r(t),a=[],o=e,s=o;for(let e=0;e<n;e++){s=o,a.push(s);for(let e=1;e<i;e++)s=s.add(o),a.push(s);o=s.double()}return a},wNAF(t,i,a){let{windows:o,windowSize:s}=r(t),c=e.ZERO,l=e.BASE,u=BigInt(2**t-1),d=2**t,f=BigInt(t);for(let e=0;e<o;e++){let t=e*s,r=Number(a&u);a>>=f,r>s&&(r-=d,a+=ev);let o=t,p=t+Math.abs(r)-1,m=e%2!=0,h=r<0;r===0?l=l.add(n(m,i[o])):c=c.add(n(h,i[p]))}return{p:c,f:l}},wNAFCached(e,t,n,r){let i=e._WINDOW_SIZE||1,a=t.get(e);return a||(a=this.precomputeWindow(e,i),i!==1&&t.set(e,r(a))),this.wNAF(i,a,n)}}}function nv(e){return G_(e.Fp),k_(e,{n:`bigint`,h:`bigint`,Gx:`field`,Gy:`field`},{nBitLength:`isSafeInteger`,nByteLength:`isSafeInteger`}),Object.freeze({...J_(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}function rv(e){let t=nv(e);k_(t,{a:`field`,b:`field`},{allowedPrivateKeyLengths:`array`,wrapPrivateKey:`boolean`,isTorsionFree:`function`,clearCofactor:`function`,allowInfinityPoint:`boolean`,fromBytes:`function`,toBytes:`function`});let{endo:n,Fp:r,a:i}=t;if(n){if(!r.eql(i,r.ZERO))throw Error(`Endomorphism can only be defined for Koblitz curves that have a=0`);if(typeof n!=`object`||typeof n.beta!=`bigint`||typeof n.splitScalar!=`function`)throw Error(`Expected endomorphism with beta: bigint and splitScalar: function`)}return Object.freeze({...t})}var{bytesToNumberBE:iv,hexToBytes:av}=n_,ov={Err:class extends Error{constructor(e=``){super(e)}},_parseInt(e){let{Err:t}=ov;if(e.length<2||e[0]!==2)throw new t(`Invalid signature integer tag`);let n=e[1],r=e.subarray(2,n+2);if(!n||r.length!==n)throw new t(`Invalid signature integer: wrong length`);if(r[0]&128)throw new t(`Invalid signature integer: negative`);if(r[0]===0&&!(r[1]&128))throw new t(`Invalid signature integer: unnecessary leading zero`);return{d:iv(r),l:e.subarray(n+2)}},toSig(e){let{Err:t}=ov,n=typeof e==`string`?av(e):e;if(!(n instanceof Uint8Array))throw Error(`ui8a expected`);let r=n.length;if(r<2||n[0]!=48)throw new t(`Invalid signature tag`);if(n[1]!==r-2)throw new t(`Invalid signature: incorrect length`);let{d:i,l:a}=ov._parseInt(n.subarray(2)),{d:o,l:s}=ov._parseInt(a);if(s.length)throw new t(`Invalid signature: left bytes after parsing`);return{r:i,s:o}},hexFromSig(e){let t=e=>Number.parseInt(e[0],16)&8?`00`+e:e,n=e=>{let t=e.toString(16);return t.length&1?`0${t}`:t},r=t(n(e.s)),i=t(n(e.r)),a=r.length/2,o=i.length/2,s=n(a),c=n(o);return`30${n(o+a+4)}02${c}${i}02${s}${r}`}},sv=BigInt(0),cv=BigInt(1),lv=BigInt(3);function uv(e){let t=rv(e),{Fp:n}=t,r=t.toBytes||((e,t,r)=>{let i=t.toAffine();return v_(Uint8Array.from([4]),n.toBytes(i.x),n.toBytes(i.y))}),i=t.fromBytes||(e=>{let t=e.subarray(1);return{x:n.fromBytes(t.subarray(0,n.BYTES)),y:n.fromBytes(t.subarray(n.BYTES,2*n.BYTES))}});function a(e){let{a:r,b:i}=t,a=n.sqr(e),o=n.mul(a,e);return n.add(n.add(o,n.mul(e,r)),i)}if(!n.eql(n.sqr(t.Gy),a(t.Gx)))throw Error(`bad generator point: equation left != right`);function o(e){return typeof e==`bigint`&&sv<e&&e<t.n}function s(e){if(!o(e))throw Error(`Expected valid bigint: 0 < bigint < curve.n`)}function c(e){let{allowedPrivateKeyLengths:n,nByteLength:r,wrapPrivateKey:i,n:a}=t;if(n&&typeof e!=`bigint`){if(e instanceof Uint8Array&&(e=c_(e)),typeof e!=`string`||!n.includes(e.length))throw Error(`Invalid key`);e=e.padStart(r*2,`0`)}let o;try{o=typeof e==`bigint`?e:f_(__(`private key`,e,r))}catch{throw Error(`private key must be ${r} bytes, hex or bigint, not ${typeof e}`)}return i&&(o=R_(o,a)),s(o),o}let l=new Map;function u(e){if(!(e instanceof d))throw Error(`ProjectivePoint expected`)}class d{constructor(e,t,r){if(this.px=e,this.py=t,this.pz=r,e==null||!n.isValid(e))throw Error(`x required`);if(t==null||!n.isValid(t))throw Error(`y required`);if(r==null||!n.isValid(r))throw Error(`z required`)}static fromAffine(e){let{x:t,y:r}=e||{};if(!e||!n.isValid(t)||!n.isValid(r))throw Error(`invalid affine point`);if(e instanceof d)throw Error(`projective point not allowed`);let i=e=>n.eql(e,n.ZERO);return i(t)&&i(r)?d.ZERO:new d(t,r,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){let t=n.invertBatch(e.map(e=>e.pz));return e.map((e,n)=>e.toAffine(t[n])).map(d.fromAffine)}static fromHex(e){let t=d.fromAffine(i(__(`pointHex`,e)));return t.assertValidity(),t}static fromPrivateKey(e){return d.BASE.multiply(c(e))}_setWindowSize(e){this._WINDOW_SIZE=e,l.delete(this)}assertValidity(){if(this.is0()){if(t.allowInfinityPoint&&!n.is0(this.py))return;throw Error(`bad point: ZERO`)}let{x:e,y:r}=this.toAffine();if(!n.isValid(e)||!n.isValid(r))throw Error(`bad point: x or y not FE`);let i=n.sqr(r),o=a(e);if(!n.eql(i,o))throw Error(`bad point: equation left != right`);if(!this.isTorsionFree())throw Error(`bad point: not in prime-order subgroup`)}hasEvenY(){let{y:e}=this.toAffine();if(n.isOdd)return!n.isOdd(e);throw Error(`Field doesn't support isOdd`)}equals(e){u(e);let{px:t,py:r,pz:i}=this,{px:a,py:o,pz:s}=e,c=n.eql(n.mul(t,s),n.mul(a,i)),l=n.eql(n.mul(r,s),n.mul(o,i));return c&&l}negate(){return new d(this.px,n.neg(this.py),this.pz)}double(){let{a:e,b:r}=t,i=n.mul(r,lv),{px:a,py:o,pz:s}=this,c=n.ZERO,l=n.ZERO,u=n.ZERO,f=n.mul(a,a),p=n.mul(o,o),m=n.mul(s,s),h=n.mul(a,o);return h=n.add(h,h),u=n.mul(a,s),u=n.add(u,u),c=n.mul(e,u),l=n.mul(i,m),l=n.add(c,l),c=n.sub(p,l),l=n.add(p,l),l=n.mul(c,l),c=n.mul(h,c),u=n.mul(i,u),m=n.mul(e,m),h=n.sub(f,m),h=n.mul(e,h),h=n.add(h,u),u=n.add(f,f),f=n.add(u,f),f=n.add(f,m),f=n.mul(f,h),l=n.add(l,f),m=n.mul(o,s),m=n.add(m,m),f=n.mul(m,h),c=n.sub(c,f),u=n.mul(m,p),u=n.add(u,u),u=n.add(u,u),new d(c,l,u)}add(e){u(e);let{px:r,py:i,pz:a}=this,{px:o,py:s,pz:c}=e,l=n.ZERO,f=n.ZERO,p=n.ZERO,m=t.a,h=n.mul(t.b,lv),g=n.mul(r,o),_=n.mul(i,s),v=n.mul(a,c),y=n.add(r,i),b=n.add(o,s);y=n.mul(y,b),b=n.add(g,_),y=n.sub(y,b),b=n.add(r,a);let x=n.add(o,c);return b=n.mul(b,x),x=n.add(g,v),b=n.sub(b,x),x=n.add(i,a),l=n.add(s,c),x=n.mul(x,l),l=n.add(_,v),x=n.sub(x,l),p=n.mul(m,b),l=n.mul(h,v),p=n.add(l,p),l=n.sub(_,p),p=n.add(_,p),f=n.mul(l,p),_=n.add(g,g),_=n.add(_,g),v=n.mul(m,v),b=n.mul(h,b),_=n.add(_,v),v=n.sub(g,v),v=n.mul(m,v),b=n.add(b,v),g=n.mul(_,b),f=n.add(f,g),g=n.mul(x,b),l=n.mul(y,l),l=n.sub(l,g),g=n.mul(y,_),p=n.mul(x,p),p=n.add(p,g),new d(l,f,p)}subtract(e){return this.add(e.negate())}is0(){return this.equals(d.ZERO)}wNAF(e){return p.wNAFCached(this,l,e,e=>{let t=n.invertBatch(e.map(e=>e.pz));return e.map((e,n)=>e.toAffine(t[n])).map(d.fromAffine)})}multiplyUnsafe(e){let r=d.ZERO;if(e===sv)return r;if(s(e),e===cv)return this;let{endo:i}=t;if(!i)return p.unsafeLadder(this,e);let{k1neg:a,k1:o,k2neg:c,k2:l}=i.splitScalar(e),u=r,f=r,m=this;for(;o>sv||l>sv;)o&cv&&(u=u.add(m)),l&cv&&(f=f.add(m)),m=m.double(),o>>=cv,l>>=cv;return a&&(u=u.negate()),c&&(f=f.negate()),f=new d(n.mul(f.px,i.beta),f.py,f.pz),u.add(f)}multiply(e){s(e);let r=e,i,a,{endo:o}=t;if(o){let{k1neg:e,k1:t,k2neg:s,k2:c}=o.splitScalar(r),{p:l,f:u}=this.wNAF(t),{p:f,f:m}=this.wNAF(c);l=p.constTimeNegate(e,l),f=p.constTimeNegate(s,f),f=new d(n.mul(f.px,o.beta),f.py,f.pz),i=l.add(f),a=u.add(m)}else{let{p:e,f:t}=this.wNAF(r);i=e,a=t}return d.normalizeZ([i,a])[0]}multiplyAndAddUnsafe(e,t,n){let r=d.BASE,i=(e,t)=>t===sv||t===cv||!e.equals(r)?e.multiplyUnsafe(t):e.multiply(t),a=i(this,t).add(i(e,n));return a.is0()?void 0:a}toAffine(e){let{px:t,py:r,pz:i}=this,a=this.is0();e??=a?n.ONE:n.inv(i);let o=n.mul(t,e),s=n.mul(r,e),c=n.mul(i,e);if(a)return{x:n.ZERO,y:n.ZERO};if(!n.eql(c,n.ONE))throw Error(`invZ was invalid`);return{x:o,y:s}}isTorsionFree(){let{h:e,isTorsionFree:n}=t;if(e===cv)return!0;if(n)return n(d,this);throw Error(`isTorsionFree() has not been declared for the elliptic curve`)}clearCofactor(){let{h:e,clearCofactor:n}=t;return e===cv?this:n?n(d,this):this.multiplyUnsafe(t.h)}toRawBytes(e=!0){return this.assertValidity(),r(d,this,e)}toHex(e=!0){return c_(this.toRawBytes(e))}}d.BASE=new d(t.Gx,t.Gy,n.ONE),d.ZERO=new d(n.ZERO,n.ONE,n.ZERO);let f=t.nBitLength,p=tv(d,t.endo?Math.ceil(f/2):f);return{CURVE:t,ProjectivePoint:d,normPrivateKeyToScalar:c,weierstrassEquation:a,isWithinCurveOrder:o}}function dv(e){let t=nv(e);return k_(t,{hash:`hash`,hmac:`function`,randomBytes:`function`},{bits2int:`function`,bits2int_modN:`function`,lowS:`boolean`}),Object.freeze({lowS:!0,...t})}function fv(e){let t=dv(e),{Fp:n,n:r}=t,i=n.BYTES+1,a=2*n.BYTES+1;function o(e){return sv<e&&e<n.ORDER}function s(e){return R_(e,r)}function c(e){return V_(e,r)}let{ProjectivePoint:l,normPrivateKeyToScalar:u,weierstrassEquation:d,isWithinCurveOrder:f}=uv({...t,toBytes(e,t,r){let i=t.toAffine(),a=n.toBytes(i.x),o=v_;return r?o(Uint8Array.from([t.hasEvenY()?2:3]),a):o(Uint8Array.from([4]),a,n.toBytes(i.y))},fromBytes(e){let t=e.length,r=e[0],s=e.subarray(1);if(t===i&&(r===2||r===3)){let e=f_(s);if(!o(e))throw Error(`Point is not on curve`);let t=d(e),i=n.sqrt(t),a=(i&cv)===cv;return(r&1)==1!==a&&(i=n.neg(i)),{x:e,y:i}}else if(t===a&&r===4)return{x:n.fromBytes(s.subarray(0,n.BYTES)),y:n.fromBytes(s.subarray(n.BYTES,2*n.BYTES))};else throw Error(`Point of length ${t} was invalid. Expected ${i} compressed bytes or ${a} uncompressed bytes`)}}),p=e=>c_(m_(e,t.nByteLength));function m(e){return e>r>>cv}function h(e){return m(e)?s(-e):e}let g=(e,t,n)=>f_(e.slice(t,n));class _{constructor(e,t,n){this.r=e,this.s=t,this.recovery=n,this.assertValidity()}static fromCompact(e){let n=t.nByteLength;return e=__(`compactSignature`,e,n*2),new _(g(e,0,n),g(e,n,2*n))}static fromDER(e){let{r:t,s:n}=ov.toSig(__(`DER`,e));return new _(t,n)}assertValidity(){if(!f(this.r))throw Error(`r must be 0 < r < CURVE.n`);if(!f(this.s))throw Error(`s must be 0 < s < CURVE.n`)}addRecoveryBit(e){return new _(this.r,this.s,e)}recoverPublicKey(e){let{r,s:i,recovery:a}=this,o=C(__(`msgHash`,e));if(a==null||![0,1,2,3].includes(a))throw Error(`recovery id invalid`);let u=a===2||a===3?r+t.n:r;if(u>=n.ORDER)throw Error(`recovery id 2 or 3 invalid`);let d=a&1?`03`:`02`,f=l.fromHex(d+p(u)),m=c(u),h=s(-o*m),g=s(i*m),_=l.BASE.multiplyAndAddUnsafe(f,h,g);if(!_)throw Error(`point at infinify`);return _.assertValidity(),_}hasHighS(){return m(this.s)}normalizeS(){return this.hasHighS()?new _(this.r,s(-this.s),this.recovery):this}toDERRawBytes(){return d_(this.toDERHex())}toDERHex(){return ov.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return d_(this.toCompactHex())}toCompactHex(){return p(this.r)+p(this.s)}}let v={isValidPrivateKey(e){try{return u(e),!0}catch{return!1}},normPrivateKeyToScalar:u,randomPrivateKey:()=>{let e=Z_(t.n);return Q_(t.randomBytes(e),t.n)},precompute(e=8,t=l.BASE){return t._setWindowSize(e),t.multiply(BigInt(3)),t}};function y(e,t=!0){return l.fromPrivateKey(e).toRawBytes(t)}function b(e){let t=e instanceof Uint8Array,n=typeof e==`string`,r=(t||n)&&e.length;return t?r===i||r===a:n?r===2*i||r===2*a:e instanceof l}function x(e,t,n=!0){if(b(e))throw Error(`first arg must be private key`);if(!b(t))throw Error(`second arg must be public key`);return l.fromHex(t).multiply(u(e)).toRawBytes(n)}let S=t.bits2int||function(e){let n=f_(e),r=e.length*8-t.nBitLength;return r>0?n>>BigInt(r):n},C=t.bits2int_modN||function(e){return s(S(e))},w=w_(t.nBitLength);function E(e){if(typeof e!=`bigint`)throw Error(`bigint expected`);if(!(sv<=e&&e<w))throw Error(`bigint expected < 2^${t.nBitLength}`);return m_(e,t.nByteLength)}function D(e,r,i=O){if([`recovered`,`canonical`].some(e=>e in i))throw Error(`sign() legacy options not supported`);let{hash:a,randomBytes:o}=t,{lowS:d,prehash:p,extraEntropy:g}=i;d??=!0,e=__(`msgHash`,e),p&&(e=__(`prehashed msgHash`,a(e)));let v=C(e),y=u(r),b=[E(y),E(v)];if(g!=null){let e=g===!0?o(n.BYTES):g;b.push(__(`extraEntropy`,e))}let x=v_(...b),w=v;function D(e){let t=S(e);if(!f(t))return;let n=c(t),r=l.BASE.multiply(t).toAffine(),i=s(r.x);if(i===sv)return;let a=s(n*s(w+i*y));if(a===sv)return;let o=(r.x===i?0:2)|Number(r.y&cv),u=a;return d&&m(a)&&(u=h(a),o^=1),new _(i,u,o)}return{seed:x,k2sig:D}}let O={lowS:t.lowS,prehash:!1},k={lowS:t.lowS,prehash:!1};function A(e,n,r=O){let{seed:i,k2sig:a}=D(e,n,r),o=t;return D_(o.hash.outputLen,o.nByteLength,o.hmac)(i,a)}l.BASE._setWindowSize(8);function j(e,n,r,i=k){let a=e;if(n=__(`msgHash`,n),r=__(`publicKey`,r),`strict`in i)throw Error(`options.strict was renamed to lowS`);let{lowS:o,prehash:u}=i,d,f;try{if(typeof a==`string`||a instanceof Uint8Array)try{d=_.fromDER(a)}catch(e){if(!(e instanceof ov.Err))throw e;d=_.fromCompact(a)}else if(typeof a==`object`&&typeof a.r==`bigint`&&typeof a.s==`bigint`){let{r:e,s:t}=a;d=new _(e,t)}else throw Error(`PARSE`);f=l.fromHex(r)}catch(e){if(e.message===`PARSE`)throw Error(`signature must be Signature instance, Uint8Array or hex string`);return!1}if(o&&d.hasHighS())return!1;u&&(n=t.hash(n));let{r:p,s:m}=d,h=C(n),g=c(m),v=s(h*g),y=s(p*g),b=l.BASE.multiplyAndAddUnsafe(f,v,y)?.toAffine();return b?s(b.x)===p:!1}return{CURVE:t,getPublicKey:y,getSharedSecret:x,sign:A,verify:j,ProjectivePoint:l,Signature:_,utils:v}}var pv=class extends Wg{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,Pg(e);let n=Hg(t);if(this.iHash=e.create(),typeof this.iHash.update!=`function`)throw Error(`Expected instance of class which extends utils.Hash`);this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let r=this.blockLen,i=new Uint8Array(r);i.set(n.length>r?e.create().update(n).digest():n);for(let e=0;e<i.length;e++)i[e]^=54;this.iHash.update(i),this.oHash=e.create();for(let e=0;e<i.length;e++)i[e]^=106;this.oHash.update(i),i.fill(0)}update(e){return Fg(this),this.iHash.update(e),this}digestInto(e){Fg(this),Ng(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){let e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||=Object.create(Object.getPrototypeOf(this),{});let{oHash:t,iHash:n,finished:r,destroyed:i,blockLen:a,outputLen:o}=this;return e=e,e.finished=r,e.destroyed=i,e.blockLen=a,e.outputLen=o,e.oHash=t._cloneInto(e.oHash),e.iHash=n._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}},mv=(e,t,n)=>new pv(e,t).update(n).digest();mv.create=(e,t)=>new pv(e,t);function hv(e){return{hash:e,hmac:(t,...n)=>mv(e,t,Ug(...n)),randomBytes:Kg}}function gv(e,t){let n=t=>fv({...e,...hv(t)});return Object.freeze({...n(t),create:n})}var _v=BigInt(`0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f`),vv=BigInt(`0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141`),yv=BigInt(1),bv=BigInt(2),xv=(e,t)=>(e+t/bv)/t;function Sv(e){let t=_v,n=BigInt(3),r=BigInt(6),i=BigInt(11),a=BigInt(22),o=BigInt(23),s=BigInt(44),c=BigInt(88),l=e*e*e%t,u=l*l*e%t,d=B_(B_(B_(u,n,t)*u%t,n,t)*u%t,bv,t)*l%t,f=B_(d,i,t)*d%t,p=B_(f,a,t)*f%t,m=B_(p,s,t)*p%t,h=B_(B_(B_(B_(B_(B_(m,c,t)*m%t,s,t)*p%t,n,t)*u%t,o,t)*f%t,r,t)*l%t,bv,t);if(!Cv.eql(Cv.sqr(h),e))throw Error(`Cannot find square root`);return h}var Cv=Y_(_v,void 0,void 0,{sqrt:Sv}),wv=gv({a:BigInt(0),b:BigInt(7),Fp:Cv,n:vv,Gx:BigInt(`55066263022277343669578718895168534326250603453777594175500187360389116729240`),Gy:BigInt(`32670510020758816978083085130507043184471273380659243275938904335757337482424`),h:BigInt(1),lowS:!0,endo:{beta:BigInt(`0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee`),splitScalar:e=>{let t=vv,n=BigInt(`0x3086d221a7d46bcde86c90e49284eb15`),r=-yv*BigInt(`0xe4437ed6010e88286f547fa90abfe4c3`),i=BigInt(`0x114ca50f7a8e2f3f657c1108d9d44cfd8`),a=n,o=BigInt(`0x100000000000000000000000000000000`),s=xv(a*e,t),c=xv(-r*e,t),l=R_(e-s*n-c*i,t),u=R_(-s*r-c*a,t),d=l>o,f=u>o;if(d&&(l=t-l),f&&(u=t-u),l>o||u>o)throw Error(`splitScalar: Endomorphism failed, k=`+e);return{k1neg:d,k1:l,k2neg:f,k2:u}}}},t_);wv.ProjectivePoint;var Tv=`0x0000000000000000000000000000000000000000`,Ev=`0x0000000000000000000000000000000000000000000000000000000000000000`,Dv=`Ethereum Signed Message:
|
|
13
|
+
`,Ov=BigInt(0),kv=BigInt(1),Av=BigInt(2),jv=BigInt(27),Mv=BigInt(28),Nv=BigInt(35),Pv=BigInt(`0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141`),Fv=Pv/Av,Iv=Symbol.for(`nodejs.util.inspect.custom`),Lv={};function Rv(e){return bp(Mp(e),32)}var zv=class e{#e;#t;#n;#r;get r(){return this.#e}set r(e){Z(_p(e)===32,`invalid r`,`value`,e),this.#e=$(e)}get s(){return Z(parseInt(this.#t.substring(0,3))<8,`non-canonical s; use ._s`,`s`,this.#t),this.#t}set s(e){Z(_p(e)===32,`invalid s`,`value`,e),this.#t=$(e)}get _s(){return this.#t}isValid(){return BigInt(this.#t)<=Fv}get v(){return this.#n}set v(e){let t=Ap(e,`value`);Z(t===27||t===28,`invalid v`,`v`,e),this.#n=t}get networkV(){return this.#r}get legacyChainId(){let t=this.networkV;return t==null?null:e.getChainId(t)}get yParity(){return this.v===27?0:1}get yParityAndS(){let e=Q(this.s);return this.yParity&&(e[0]|=128),$(e)}get compactSerialized(){return gp([this.r,this.yParityAndS])}get serialized(){return gp([this.r,this.s,this.yParity?`0x1c`:`0x1b`])}constructor(e,t,n,r){up(e,Lv,`Signature`),this.#e=t,this.#t=n,this.#n=r,this.#r=null}getCanonical(){if(this.isValid())return this;let t=Pv-BigInt(this._s),n=55-this.v,r=new e(Lv,this.r,Rv(t),n);return this.networkV&&(r.#r=this.networkV),r}clone(){let t=new e(Lv,this.r,this._s,this.v);return this.networkV&&(t.#r=this.networkV),t}toJSON(){let e=this.networkV;return{_type:`signature`,networkV:e==null?null:e.toString(),r:this.r,s:this._s,v:this.v}}[Iv](){return this.toString()}toString(){return this.isValid()?`Signature { r: ${this.r}, s: ${this._s}, v: ${this.v} }`:`Signature { r: ${this.r}, s: ${this._s}, v: ${this.v}, valid: false }`}static getChainId(e){let t=Ep(e,`v`);return t==jv||t==Mv?Ov:(Z(t>=Nv,`invalid EIP-155 v`,`v`,e),(t-Nv)/Av)}static getChainIdV(e,t){return Ep(e)*Av+BigInt(35+t-27)}static getNormalizedV(e){let t=Ep(e);return t===Ov||t===jv?27:t===kv||t===Mv?28:(Z(t>=Nv,`invalid v`,`v`,e),t&kv?27:28)}static from(t){function n(e,n){Z(e,n,`signature`,t)}if(t==null)return new e(Lv,Ev,Ev,27);if(typeof t==`string`){let r=Q(t,`signature`);if(r.length===64){let t=$(r.slice(0,32)),n=r.slice(32,64),i=n[0]&128?28:27;return n[0]&=127,new e(Lv,t,$(n),i)}if(r.length===65)return new e(Lv,$(r.slice(0,32)),$(r.slice(32,64)),e.getNormalizedV(r[64]));n(!1,`invalid raw signature length`)}if(t instanceof e)return t.clone();let r=t.r;n(r!=null,`missing r`);let i=Rv(r),a=(function(e,t){if(e!=null)return Rv(e);if(t!=null){n(pp(t,32),`invalid yParityAndS`);let e=Q(t);return e[0]&=127,$(e)}n(!1,`missing s`)})(t.s,t.yParityAndS),{networkV:o,v:s}=(function(t,r,i){if(t!=null){let n=Ep(t);return{networkV:n>=Nv?n:void 0,v:e.getNormalizedV(n)}}if(r!=null)return n(pp(r,32),`invalid yParityAndS`),{v:Q(r)[0]&128?28:27};if(i!=null){switch(Ap(i,`sig.yParity`)){case 0:return{v:27};case 1:return{v:28}}n(!1,`invalid yParity`)}n(!1,`missing v`)})(t.v,t.yParityAndS,t.yParity),c=new e(Lv,i,a,s);return o&&(c.#r=o),n(t.yParity==null||Ap(t.yParity,`sig.yParity`)===c.yParity,`yParity mismatch`),n(t.yParityAndS==null||t.yParityAndS===c.yParityAndS,`yParityAndS mismatch`),c}},Bv=class e{#e;constructor(e){Z(_p(e)===32,`invalid private key`,`privateKey`,`[REDACTED]`),this.#e=$(e)}get privateKey(){return this.#e}get publicKey(){return e.computePublicKey(this.#e)}get compressedPublicKey(){return e.computePublicKey(this.#e,!0)}sign(e){Z(_p(e)===32,`invalid digest length`,`digest`,e);let t=wv.sign(fp(e),fp(this.#e),{lowS:!0});return zv.from({r:jp(t.r,32),s:jp(t.s,32),v:t.recovery?28:27})}computeSharedSecret(t){let n=e.computePublicKey(t);return $(wv.getSharedSecret(fp(this.#e),Q(n),!1))}static computePublicKey(e,t){let n=Q(e,`key`);if(n.length===32)return $(wv.getPublicKey(n,!!t));if(n.length===64){let e=new Uint8Array(65);e[0]=4,e.set(n,1),n=e}return $(wv.ProjectivePoint.fromHex(n).toRawBytes(t))}static recoverPublicKey(e,t){Z(_p(e)===32,`invalid digest length`,`digest`,e);let n=zv.from(t),r=wv.Signature.fromCompact(fp(gp([n.r,n.s])));r=r.addRecoveryBit(n.yParity);let i=r.recoverPublicKey(fp(e));return Z(i!=null,`invalid signature for digest`,`signature`,t),`0x`+i.toHex(!1)}static addPoints(t,n,r){let i=wv.ProjectivePoint.fromHex(e.computePublicKey(t).substring(2)),a=wv.ProjectivePoint.fromHex(e.computePublicKey(n).substring(2));return`0x`+i.add(a).toHex(!!r)}},Vv=BigInt(0),Hv=BigInt(36);function Uv(e){e=e.toLowerCase();let t=e.substring(2).split(``),n=new Uint8Array(40);for(let e=0;e<40;e++)n[e]=t[e].charCodeAt(0);let r=Q(Fh(n));for(let e=0;e<40;e+=2)r[e>>1]>>4>=8&&(t[e]=t[e].toUpperCase()),(r[e>>1]&15)>=8&&(t[e+1]=t[e+1].toUpperCase());return`0x`+t.join(``)}var Wv={};for(let e=0;e<10;e++)Wv[String(e)]=String(e);for(let e=0;e<26;e++)Wv[String.fromCharCode(65+e)]=String(10+e);var Gv=15;function Kv(e){e=e.toUpperCase(),e=e.substring(4)+e.substring(0,2)+`00`;let t=e.split(``).map(e=>Wv[e]).join(``);for(;t.length>=Gv;){let e=t.substring(0,Gv);t=parseInt(e,10)%97+t.substring(e.length)}let n=String(98-parseInt(t,10)%97);for(;n.length<2;)n=`0`+n;return n}var qv=(function(){let e={};for(let t=0;t<36;t++){let n=`0123456789abcdefghijklmnopqrstuvwxyz`[t];e[n]=BigInt(t)}return e})();function Jv(e){e=e.toLowerCase();let t=Vv;for(let n=0;n<e.length;n++)t=t*Hv+qv[e[n]];return t}function Yv(e){if(Z(typeof e==`string`,`invalid address`,`address`,e),e.match(/^(0x)?[0-9a-fA-F]{40}$/)){e.startsWith(`0x`)||(e=`0x`+e);let t=Uv(e);return Z(!e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)||t===e,`bad address checksum`,`address`,e),t}if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){Z(e.substring(2,4)===Kv(e),`bad icap checksum`,`address`,e);let t=Jv(e.substring(4)).toString(16);for(;t.length<40;)t=`0`+t;return Uv(`0x`+t)}Z(!1,`invalid address`,`address`,e)}function Xv(e){return e&&typeof e.getAddress==`function`}async function Zv(e,t){let n=await t;return(n==null||n===`0x0000000000000000000000000000000000000000`)&&(sp(typeof e!=`string`,`unconfigured name`,`UNCONFIGURED_NAME`,{value:e}),Z(!1,`invalid AddressLike value; did not resolve to a value address`,`target`,e)),Yv(n)}function Qv(e,t){if(typeof e==`string`)return e.match(/^0x[0-9a-f]{40}$/i)?Yv(e):(sp(t!=null,`ENS resolution requires a provider`,`UNSUPPORTED_OPERATION`,{operation:`resolveName`}),Zv(e,t.resolveName(e)));if(Xv(e))return Zv(e,e.getAddress());if(e&&typeof e.then==`function`)return Zv(e,e);Z(!1,`unsupported addressable value`,`target`,e)}function $v(e,t){return{address:Yv(e),storageKeys:t.map((e,t)=>(Z(pp(e,32),`invalid slot`,`storageKeys[${t}]`,e),e.toLowerCase()))}}function ey(e){if(Array.isArray(e))return e.map((t,n)=>Array.isArray(t)?(Z(t.length===2,`invalid slot set`,`value[${n}]`,t),$v(t[0],t[1])):(Z(typeof t==`object`&&!!t,`invalid address-slot set`,`value`,e),$v(t.address,t.storageKeys)));Z(typeof e==`object`&&!!e,`invalid access list`,`value`,e);let t=Object.keys(e).map(t=>{let n=e[t].reduce((e,t)=>(e[t]=!0,e),{});return $v(t,Object.keys(n).sort())});return t.sort((e,t)=>e.address.localeCompare(t.address)),t}function ty(e){return{address:Yv(e.address),nonce:Ep(e.nonce==null?0:e.nonce),chainId:Ep(e.chainId==null?0:e.chainId),signature:zv.from(e.signature)}}function ny(e){let t;return t=typeof e==`string`?Bv.computePublicKey(e,!1):e.publicKey,Yv(Fh(`0x`+t.substring(4)).substring(26))}function ry(e,t){return ny(Bv.recoverPublicKey(e,t))}var iy=BigInt(0),ay=BigInt(2),oy=BigInt(27),sy=BigInt(28),cy=BigInt(35),ly=BigInt(`0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff`),uy=Symbol.for(`nodejs.util.inspect.custom`),dy=4096*32,fy=128;function py(e){return{blobToKzgCommitment:t=>{if(`computeBlobProof`in e){if(`blobToKzgCommitment`in e&&typeof e.blobToKzgCommitment==`function`)return Q(e.blobToKzgCommitment($(t)))}else if(`blobToKzgCommitment`in e&&typeof e.blobToKzgCommitment==`function`)return Q(e.blobToKzgCommitment(t));if(`blobToKZGCommitment`in e&&typeof e.blobToKZGCommitment==`function`)return Q(e.blobToKZGCommitment($(t)));Z(!1,`unsupported KZG library`,`kzg`,e)},computeBlobKzgProof:(t,n)=>{if(`computeBlobProof`in e&&typeof e.computeBlobProof==`function`)return Q(e.computeBlobProof($(t),$(n)));if(`computeBlobKzgProof`in e&&typeof e.computeBlobKzgProof==`function`)return e.computeBlobKzgProof(t,n);if(`computeBlobKZGProof`in e&&typeof e.computeBlobKZGProof==`function`)return Q(e.computeBlobKZGProof($(t),$(n)));Z(!1,`unsupported KZG library`,`kzg`,e)}}}function my(e,t){let n=e.toString(16);for(;n.length<2;)n=`0`+n;return n+=Ag(t).substring(4),`0x`+n}function hy(e){return e===`0x`?null:Yv(e)}function gy(e,t){try{return ey(e)}catch(n){Z(!1,n.message,t,e)}}function _y(e,t){try{if(!Array.isArray(e))throw Error(`authorizationList: invalid array`);let t=[];for(let n=0;n<e.length;n++){let r=e[n];if(!Array.isArray(r))throw Error(`authorization[${n}]: invalid array`);if(r.length!==6)throw Error(`authorization[${n}]: wrong length`);if(!r[1])throw Error(`authorization[${n}]: null address`);t.push({address:hy(r[1]),nonce:yy(r[2],`nonce`),chainId:yy(r[0],`chainId`),signature:zv.from({yParity:vy(r[3],`yParity`),r:bp(r[4],32),s:bp(r[5],32)})})}return t}catch(n){Z(!1,n.message,t,e)}}function vy(e,t){return e===`0x`?0:Ap(e,t)}function yy(e,t){if(e===`0x`)return iy;let n=Ep(e,t);return Z(n<=ly,`value exceeds uint size`,t,n),n}function by(e,t){let n=Ep(e,`value`),r=Mp(n);return Z(r.length<=32,`value too large`,`tx.${t}`,n),r}function xy(e){return ey(e).map(e=>[e.address,e.storageKeys])}function Sy(e){return e.map(e=>[by(e.chainId,`chainId`),e.address,by(e.nonce,`nonce`),by(e.signature.yParity,`yParity`),Mp(e.signature.r),Mp(e.signature._s)])}function Cy(e,t){Z(Array.isArray(e),`invalid ${t}`,`value`,e);for(let t=0;t<e.length;t++)Z(pp(e[t],32),"invalid ${ param } hash",`value[${t}]`,e[t]);return e}function wy(e){let t=Zp(e);Z(Array.isArray(t)&&(t.length===9||t.length===6),`invalid field count for legacy transaction`,`data`,e);let n={type:0,nonce:vy(t[0],`nonce`),gasPrice:yy(t[1],`gasPrice`),gasLimit:yy(t[2],`gasLimit`),to:hy(t[3]),value:yy(t[4],`value`),data:$(t[5]),chainId:iy};if(t.length===6)return n;let r=yy(t[6],`v`),i=yy(t[7],`r`),a=yy(t[8],`s`);if(i===iy&&a===iy)n.chainId=r;else{let e=(r-cy)/ay;e<iy&&(e=iy),n.chainId=e,Z(e!==iy||r===oy||r===sy,`non-canonical legacy v`,`v`,t[6]),n.signature=zv.from({r:bp(t[7],32),s:bp(t[8],32),v:r})}return n}function Ty(e,t){let n=[by(e.nonce,`nonce`),by(e.gasPrice||0,`gasPrice`),by(e.gasLimit,`gasLimit`),e.to||`0x`,by(e.value,`value`),e.data],r=iy;if(e.chainId!=iy)r=Ep(e.chainId,`tx.chainId`),Z(!t||t.networkV==null||t.legacyChainId===r,`tx.chainId/sig.v mismatch`,`sig`,t);else if(e.signature){let t=e.signature.legacyChainId;t!=null&&(r=t)}if(!t)return r!==iy&&(n.push(Mp(r)),n.push(`0x`),n.push(`0x`)),tm(n);let i=BigInt(27+t.yParity);return r===iy?BigInt(t.v)!==i&&Z(!1,`tx.chainId/sig.v mismatch`,`sig`,t):i=zv.getChainIdV(r,t.v),n.push(Mp(i)),n.push(Mp(t.r)),n.push(Mp(t._s)),tm(n)}function Ey(e,t){let n;try{if(n=vy(t[0],`yParity`),n!==0&&n!==1)throw Error(`bad yParity`)}catch{Z(!1,`invalid yParity`,`yParity`,t[0])}let r=bp(t[1],32),i=bp(t[2],32);e.signature=zv.from({r,s:i,yParity:n})}function Dy(e){let t=Zp(Q(e).slice(1));Z(Array.isArray(t)&&(t.length===9||t.length===12),`invalid field count for transaction type: 2`,`data`,$(e));let n={type:2,chainId:yy(t[0],`chainId`),nonce:vy(t[1],`nonce`),maxPriorityFeePerGas:yy(t[2],`maxPriorityFeePerGas`),maxFeePerGas:yy(t[3],`maxFeePerGas`),gasPrice:null,gasLimit:yy(t[4],`gasLimit`),to:hy(t[5]),value:yy(t[6],`value`),data:$(t[7]),accessList:gy(t[8],`accessList`)};return t.length===9||Ey(n,t.slice(9)),n}function Oy(e,t){let n=[by(e.chainId,`chainId`),by(e.nonce,`nonce`),by(e.maxPriorityFeePerGas||0,`maxPriorityFeePerGas`),by(e.maxFeePerGas||0,`maxFeePerGas`),by(e.gasLimit,`gasLimit`),e.to||`0x`,by(e.value,`value`),e.data,xy(e.accessList||[])];return t&&(n.push(by(t.yParity,`yParity`)),n.push(Mp(t.r)),n.push(Mp(t.s))),gp([`0x02`,tm(n)])}function ky(e){let t=Zp(Q(e).slice(1));Z(Array.isArray(t)&&(t.length===8||t.length===11),`invalid field count for transaction type: 1`,`data`,$(e));let n={type:1,chainId:yy(t[0],`chainId`),nonce:vy(t[1],`nonce`),gasPrice:yy(t[2],`gasPrice`),gasLimit:yy(t[3],`gasLimit`),to:hy(t[4]),value:yy(t[5],`value`),data:$(t[6]),accessList:gy(t[7],`accessList`)};return t.length===8||Ey(n,t.slice(8)),n}function Ay(e,t){let n=[by(e.chainId,`chainId`),by(e.nonce,`nonce`),by(e.gasPrice||0,`gasPrice`),by(e.gasLimit,`gasLimit`),e.to||`0x`,by(e.value,`value`),e.data,xy(e.accessList||[])];return t&&(n.push(by(t.yParity,`recoveryParam`)),n.push(Mp(t.r)),n.push(Mp(t.s))),gp([`0x01`,tm(n)])}function jy(e){let t=Zp(Q(e).slice(1)),n=`3`,r=null,i=null;if(t.length===4&&Array.isArray(t[0])){n=`3 (network format)`;let e=t[1],r=t[2],a=t[3];Z(Array.isArray(e),`invalid network format: blobs not an array`,`fields[1]`,e),Z(Array.isArray(r),`invalid network format: commitments not an array`,`fields[2]`,r),Z(Array.isArray(a),`invalid network format: proofs not an array`,`fields[3]`,a),Z(e.length===r.length,`invalid network format: blobs/commitments length mismatch`,`fields`,t),Z(e.length===a.length,`invalid network format: blobs/proofs length mismatch`,`fields`,t),i=[];for(let n=0;n<t[1].length;n++)i.push({data:e[n],commitment:r[n],proof:a[n]});t=t[0]}else if(t.length===5&&Array.isArray(t[0])){n=`3 (EIP-7594 network format)`,r=Ap(t[1]);let e=t[2],a=t[3],o=t[4];Z(r===1,`unsupported EIP-7594 network format version: ${r}`,`fields[1]`,r),Z(Array.isArray(e),`invalid EIP-7594 network format: blobs not an array`,`fields[2]`,e),Z(Array.isArray(a),`invalid EIP-7594 network format: commitments not an array`,`fields[3]`,a),Z(Array.isArray(o),`invalid EIP-7594 network format: proofs not an array`,`fields[4]`,o),Z(e.length===a.length,`invalid network format: blobs/commitments length mismatch`,`fields`,t),Z(e.length*fy===o.length,`invalid network format: blobs/proofs length mismatch`,`fields`,t),i=[];for(let t=0;t<e.length;t++){let n=[];for(let e=0;e<fy;e++)n.push(o[t*fy+e]);i.push({data:e[t],commitment:a[t],proof:gp(n)})}t=t[0]}Z(Array.isArray(t)&&(t.length===11||t.length===14),`invalid field count for transaction type: ${n}`,`data`,$(e));let a={type:3,chainId:yy(t[0],`chainId`),nonce:vy(t[1],`nonce`),maxPriorityFeePerGas:yy(t[2],`maxPriorityFeePerGas`),maxFeePerGas:yy(t[3],`maxFeePerGas`),gasPrice:null,gasLimit:yy(t[4],`gasLimit`),to:hy(t[5]),value:yy(t[6],`value`),data:$(t[7]),accessList:gy(t[8],`accessList`),maxFeePerBlobGas:yy(t[9],`maxFeePerBlobGas`),blobVersionedHashes:t[10],blobWrapperVersion:r};i&&(a.blobs=i),Z(a.to!=null,`invalid address for transaction type: ${n}`,`data`,e),Z(Array.isArray(a.blobVersionedHashes),`invalid blobVersionedHashes: must be an array`,`data`,e);for(let t=0;t<a.blobVersionedHashes.length;t++)Z(pp(a.blobVersionedHashes[t],32),`invalid blobVersionedHash at index ${t}: must be length 32`,`data`,e);return t.length===11||Ey(a,t.slice(11)),a}function My(e,t,n){let r=[by(e.chainId,`chainId`),by(e.nonce,`nonce`),by(e.maxPriorityFeePerGas||0,`maxPriorityFeePerGas`),by(e.maxFeePerGas||0,`maxFeePerGas`),by(e.gasLimit,`gasLimit`),e.to||`0x0000000000000000000000000000000000000000`,by(e.value,`value`),e.data,xy(e.accessList||[]),by(e.maxFeePerBlobGas||0,`maxFeePerBlobGas`),Cy(e.blobVersionedHashes||[],`blobVersionedHashes`)];if(t&&(r.push(by(t.yParity,`yParity`)),r.push(Mp(t.r)),r.push(Mp(t.s)),n)){if(e.blobWrapperVersion!=null){let t=Mp(e.blobWrapperVersion),i=[];for(let{proof:e}of n){let t=Q(e),n=t.length/fy;for(let e=0;e<t.length;e+=n)i.push(t.subarray(e,e+n))}return gp([`0x03`,tm([r,t,n.map(e=>e.data),n.map(e=>e.commitment),i])])}return gp([`0x03`,tm([r,n.map(e=>e.data),n.map(e=>e.commitment),n.map(e=>e.proof)])])}return gp([`0x03`,tm(r)])}function Ny(e){let t=Zp(Q(e).slice(1));Z(Array.isArray(t)&&(t.length===10||t.length===13),`invalid field count for transaction type: 4`,`data`,$(e));let n={type:4,chainId:yy(t[0],`chainId`),nonce:vy(t[1],`nonce`),maxPriorityFeePerGas:yy(t[2],`maxPriorityFeePerGas`),maxFeePerGas:yy(t[3],`maxFeePerGas`),gasPrice:null,gasLimit:yy(t[4],`gasLimit`),to:hy(t[5]),value:yy(t[6],`value`),data:$(t[7]),accessList:gy(t[8],`accessList`),authorizationList:_y(t[9],`authorizationList`)};return t.length===10||Ey(n,t.slice(10)),n}function Py(e,t){let n=[by(e.chainId,`chainId`),by(e.nonce,`nonce`),by(e.maxPriorityFeePerGas||0,`maxPriorityFeePerGas`),by(e.maxFeePerGas||0,`maxFeePerGas`),by(e.gasLimit,`gasLimit`),e.to||`0x`,by(e.value,`value`),e.data,xy(e.accessList||[]),Sy(e.authorizationList||[])];return t&&(n.push(by(t.yParity,`yParity`)),n.push(Mp(t.r)),n.push(Mp(t.s))),gp([`0x04`,tm(n)])}var Fy=class e{#e;#t;#n;#r;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m;#h;#g;#_;get type(){return this.#e}set type(e){switch(e){case null:this.#e=null;break;case 0:case`legacy`:this.#e=0;break;case 1:case`berlin`:case`eip-2930`:this.#e=1;break;case 2:case`london`:case`eip-1559`:this.#e=2;break;case 3:case`cancun`:case`eip-4844`:this.#e=3;break;case 4:case`pectra`:case`eip-7702`:this.#e=4;break;default:Z(!1,`unsupported transaction type`,`type`,e)}}get typeName(){switch(this.type){case 0:return`legacy`;case 1:return`eip-2930`;case 2:return`eip-1559`;case 3:return`eip-4844`;case 4:return`eip-7702`}return null}get to(){let e=this.#t;return e==null&&this.type===3?Tv:e}set to(e){this.#t=e==null?null:Yv(e)}get nonce(){return this.#r}set nonce(e){this.#r=Ap(e,`value`)}get gasLimit(){return this.#i}set gasLimit(e){this.#i=Ep(e)}get gasPrice(){let e=this.#a;return e==null&&(this.type===0||this.type===1)?iy:e}set gasPrice(e){this.#a=e==null?null:Ep(e,`gasPrice`)}get maxPriorityFeePerGas(){return this.#o??(this.type===2||this.type===3?iy:null)}set maxPriorityFeePerGas(e){this.#o=e==null?null:Ep(e,`maxPriorityFeePerGas`)}get maxFeePerGas(){return this.#s??(this.type===2||this.type===3?iy:null)}set maxFeePerGas(e){this.#s=e==null?null:Ep(e,`maxFeePerGas`)}get data(){return this.#n}set data(e){this.#n=$(e)}get value(){return this.#c}set value(e){this.#c=Ep(e,`value`)}get chainId(){return this.#l}set chainId(e){this.#l=Ep(e)}get signature(){return this.#u||null}set signature(e){this.#u=e==null?null:zv.from(e)}isValid(){let e=this.signature;if(e&&!e.isValid())return!1;let t=this.authorizationList;if(t){for(let e of t)if(!e.signature.isValid())return!1}return!0}get accessList(){return(this.#d||null)??(this.type===1||this.type===2||this.type===3?[]:null)}set accessList(e){this.#d=e==null?null:ey(e)}get authorizationList(){let e=this.#g||null;return e==null&&this.type===4?[]:e}set authorizationList(e){this.#g=e==null?null:e.map(e=>ty(e))}get maxFeePerBlobGas(){let e=this.#f;return e==null&&this.type===3?iy:e}set maxFeePerBlobGas(e){this.#f=e==null?null:Ep(e,`maxFeePerBlobGas`)}get blobVersionedHashes(){let e=this.#p;return e==null&&this.type===3?[]:e}set blobVersionedHashes(e){if(e!=null){Z(Array.isArray(e),`blobVersionedHashes must be an Array`,`value`,e),e=e.slice();for(let t=0;t<e.length;t++)Z(pp(e[t],32),`invalid blobVersionedHash`,`value[${t}]`,e[t])}this.#p=e}get blobs(){return this.#h==null?null:this.#h.map(e=>Object.assign({},e))}set blobs(e){if(e==null){this.#h=null;return}let t=[],n=[];for(let r=0;r<e.length;r++){let i=e[r];if(mp(i)){sp(this.#m,`adding a raw blob requires a KZG library`,`UNSUPPORTED_OPERATION`,{operation:`set blobs()`});let e=Q(i);if(Z(e.length<=dy,`blob is too large`,`blobs[${r}]`,i),e.length!==dy){let t=new Uint8Array(dy);t.set(e),e=t}let a=this.#m.blobToKzgCommitment(e),o=$(this.#m.computeBlobKzgProof(e,a));t.push({data:$(e),commitment:$(a),proof:o}),n.push(my(1,a))}else{let e=$(i.data),r=$(i.commitment),a=$(i.proof);t.push({data:e,commitment:r,proof:a}),n.push(my(1,r))}}this.#h=t,this.#p=n}get kzg(){return this.#m}set kzg(e){e==null?this.#m=null:this.#m=py(e)}get blobWrapperVersion(){return this.#_}set blobWrapperVersion(e){this.#_=e}constructor(){this.#e=null,this.#t=null,this.#r=0,this.#i=iy,this.#a=null,this.#o=null,this.#s=null,this.#n=`0x`,this.#c=iy,this.#l=iy,this.#u=null,this.#d=null,this.#f=null,this.#p=null,this.#m=null,this.#h=null,this.#g=null,this.#_=null}get hash(){return this.signature==null?null:Fh(this.#v(!0,!1))}get unsignedHash(){return Fh(this.unsignedSerialized)}get from(){return this.signature==null?null:ry(this.unsignedHash,this.signature.getCanonical())}get fromPublicKey(){return this.signature==null?null:Bv.recoverPublicKey(this.unsignedHash,this.signature.getCanonical())}isSigned(){return this.signature!=null}#v(e,t){sp(!e||this.signature!=null,`cannot serialize unsigned transaction; maybe you meant .unsignedSerialized`,`UNSUPPORTED_OPERATION`,{operation:`.serialized`});let n=e?this.signature:null;switch(this.inferType()){case 0:return Ty(this,n);case 1:return Ay(this,n);case 2:return Oy(this,n);case 3:return My(this,n,t?this.blobs:null);case 4:return Py(this,n)}sp(!1,`unsupported transaction type`,`UNSUPPORTED_OPERATION`,{operation:`.serialized`})}get serialized(){return this.#v(!0,!0)}get unsignedSerialized(){return this.#v(!1,!1)}inferType(){let e=this.inferTypes();return e.indexOf(2)>=0?2:e.pop()}inferTypes(){let e=this.gasPrice!=null,t=this.maxFeePerGas!=null||this.maxPriorityFeePerGas!=null,n=this.accessList!=null,r=this.#f!=null||this.#p;this.maxFeePerGas!=null&&this.maxPriorityFeePerGas!=null&&sp(this.maxFeePerGas>=this.maxPriorityFeePerGas,`priorityFee cannot be more than maxFee`,`BAD_DATA`,{value:this}),sp(!t||this.type!==0&&this.type!==1,`transaction type cannot have maxFeePerGas or maxPriorityFeePerGas`,`BAD_DATA`,{value:this}),sp(this.type!==0||!n,`legacy transaction cannot have accessList`,`BAD_DATA`,{value:this});let i=[];return this.type==null?this.authorizationList&&this.authorizationList.length?i.push(4):t?i.push(2):e?(i.push(1),n||i.push(0)):n?(i.push(1),i.push(2)):r&&this.to?i.push(3):(i.push(0),i.push(1),i.push(2),i.push(3)):i.push(this.type),i.sort(),i}isLegacy(){return this.type===0}isBerlin(){return this.type===1}isLondon(){return this.type===2}isCancun(){return this.type===3}clone(){return e.from(this)}toJSON(){let e=e=>e==null?null:e.toString();return{type:this.type,to:this.to,data:this.data,nonce:this.nonce,gasLimit:e(this.gasLimit),gasPrice:e(this.gasPrice),maxPriorityFeePerGas:e(this.maxPriorityFeePerGas),maxFeePerGas:e(this.maxFeePerGas),value:e(this.value),chainId:e(this.chainId),sig:this.signature?this.signature.toJSON():null,accessList:this.accessList}}[uy](){return this.toString()}toString(){let e=[],t=t=>{let n=this[t];typeof n==`string`&&(n=JSON.stringify(n)),e.push(`${t}: ${n}`)};this.type&&t(`type`),t(`to`),t(`data`),t(`nonce`),t(`gasLimit`),t(`value`),this.chainId!=null&&t(`chainId`),this.signature&&(t(`from`),e.push(`signature: ${this.signature.toString()}`));let n=this.authorizationList;if(n){let t=[];for(let e of n){let n=[];n.push(`address: ${JSON.stringify(e.address)}`),e.nonce!=null&&n.push(`nonce: ${e.nonce}`),e.chainId!=null&&n.push(`chainId: ${e.chainId}`),e.signature&&n.push(`signature: ${e.signature.toString()}`),t.push(`Authorization { ${n.join(`, `)} }`)}e.push(`authorizations: [ ${t.join(`, `)} ]`)}return`Transaction { ${e.join(`, `)} }`}static from(t){if(t==null)return new e;if(typeof t==`string`){let n=Q(t);if(n[0]>=127)return e.from(wy(n));switch(n[0]){case 1:return e.from(ky(n));case 2:return e.from(Dy(n));case 3:return e.from(jy(n));case 4:return e.from(Ny(n))}sp(!1,`unsupported transaction type`,`UNSUPPORTED_OPERATION`,{operation:`from`})}let n=new e;return t.type!=null&&(n.type=t.type),t.to!=null&&(n.to=t.to),t.nonce!=null&&(n.nonce=t.nonce),t.gasLimit!=null&&(n.gasLimit=t.gasLimit),t.gasPrice!=null&&(n.gasPrice=t.gasPrice),t.maxPriorityFeePerGas!=null&&(n.maxPriorityFeePerGas=t.maxPriorityFeePerGas),t.maxFeePerGas!=null&&(n.maxFeePerGas=t.maxFeePerGas),t.maxFeePerBlobGas!=null&&(n.maxFeePerBlobGas=t.maxFeePerBlobGas),t.data!=null&&(n.data=t.data),t.value!=null&&(n.value=t.value),t.chainId!=null&&(n.chainId=t.chainId),t.signature!=null&&(n.signature=zv.from(t.signature)),t.accessList!=null&&(n.accessList=t.accessList),t.authorizationList!=null&&(n.authorizationList=t.authorizationList),t.blobVersionedHashes!=null&&(n.blobVersionedHashes=t.blobVersionedHashes),t.kzg!=null&&(n.kzg=t.kzg),t.blobWrapperVersion!=null&&(n.blobWrapperVersion=t.blobWrapperVersion),t.blobs!=null&&(n.blobs=t.blobs),t.hash!=null&&(Z(n.isSigned(),`unsigned transaction cannot define '.hash'`,`tx`,t),Z(n.hash===t.hash,`hash mismatch`,`tx`,t)),t.from!=null&&(Z(n.isSigned(),`unsigned transaction cannot define '.from'`,`tx`,t),Z(n.from.toLowerCase()===(t.from||``).toLowerCase(),`from mismatch`,`tx`,t)),n}};function Iy(e){return Z(typeof e.address==`string`,`invalid address for hashAuthorization`,`auth.address`,e),Fh(gp([`0x05`,tm([e.chainId==null?`0x`:Mp(e.chainId),Yv(e.address),e.nonce==null?`0x`:Mp(e.nonce)])]))}function Ly(e){return Fh(Kp(e))}function Ry(e){return typeof e==`string`&&(e=Kp(e)),Fh(gp([Kp(Dv),Kp(String(e.length)),e]))}var zy=new Uint8Array(32);zy.fill(0);var By=BigInt(-1),Vy=BigInt(0),Hy=BigInt(1),Uy=BigInt(`0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff`);function Wy(e){let t=Q(e),n=t.length%32;return n?gp([t,zy.slice(n)]):$(t)}var Gy=jp(Hy,32),Ky=jp(Vy,32),qy={name:`string`,version:`string`,chainId:`uint256`,verifyingContract:`address`,salt:`bytes32`},Jy=[`name`,`version`,`chainId`,`verifyingContract`,`salt`];function Yy(e){return function(t){return Z(typeof t==`string`,`invalid domain value for ${JSON.stringify(e)}`,`domain.${e}`,t),t}}var Xy={name:Yy(`name`),version:Yy(`version`),chainId:function(e){let t=Ep(e,`domain.chainId`);return Z(t>=0,`invalid chain ID`,`domain.chainId`,e),Number.isSafeInteger(t)?Number(t):Np(t)},verifyingContract:function(e){try{return Yv(e).toLowerCase()}catch{}Z(!1,`invalid domain value "verifyingContract"`,`domain.verifyingContract`,e)},salt:function(e){let t=Q(e,`domain.salt`);return Z(t.length===32,`invalid domain value "salt"`,`domain.salt`,e),$(t)}};function Zy(e){{let t=e.match(/^(u?)int(\d+)$/);if(t){let n=t[1]===``,r=parseInt(t[2]);Z(r%8==0&&r!==0&&r<=256&&t[2]===String(r),`invalid numeric width`,`type`,e);let i=Tp(Uy,n?r-1:r),a=n?(i+Hy)*By:Vy;return function(t){let r=Ep(t,`value`);return Z(r>=a&&r<=i,`value out-of-bounds for ${e}`,`value`,r),jp(n?wp(r,256):r,32)}}}{let t=e.match(/^bytes(\d+)$/);if(t){let n=parseInt(t[1]);return Z(n!==0&&n<=32&&t[1]===String(n),`invalid bytes width`,`type`,e),function(t){return Z(Q(t).length===n,`invalid length for ${e}`,`value`,t),Wy(t)}}}switch(e){case`address`:return function(e){return bp(Yv(e),32)};case`bool`:return function(e){return e?Gy:Ky};case`bytes`:return function(e){return Fh(e)};case`string`:return function(e){return Ly(e)}}return null}function Qy(e,t){return`${e}(${t.map(({name:e,type:t})=>t+` `+e).join(`,`)})`}function $y(e){let t=e.match(/^([^\x5b]*)((\x5b\d*\x5d)*)(\x5b(\d*)\x5d)$/);return t?{base:t[1],index:t[2]+t[4],array:{base:t[1],prefix:t[1]+t[2],count:t[5]?parseInt(t[5]):-1}}:{base:e}}var eb=class e{primaryType;#e;get types(){return JSON.parse(this.#e)}#t;#n;constructor(e){this.#t=new Map,this.#n=new Map;let t=new Map,n=new Map,r=new Map,i={};Object.keys(e).forEach(a=>{i[a]=e[a].map(({name:t,type:n})=>{let{base:r,index:i}=$y(n);return r===`int`&&!e.int&&(r=`int256`),r===`uint`&&!e.uint&&(r=`uint256`),{name:t,type:r+(i||``)}}),t.set(a,new Set),n.set(a,[]),r.set(a,new Set)}),this.#e=JSON.stringify(i);for(let r in i){let a=new Set;for(let o of i[r]){Z(!a.has(o.name),`duplicate variable name ${JSON.stringify(o.name)} in ${JSON.stringify(r)}`,`types`,e),a.add(o.name);let i=$y(o.type).base;Z(i!==r,`circular type reference to ${JSON.stringify(i)}`,`types`,e),!Zy(i)&&(Z(n.has(i),`unknown type ${JSON.stringify(i)}`,`types`,e),n.get(i).push(r),t.get(r).add(i))}}let a=Array.from(n.keys()).filter(e=>n.get(e).length===0);Z(a.length!==0,`missing primary type`,`types`,e),Z(a.length===1,`ambiguous primary types or unused types: ${a.map(e=>JSON.stringify(e)).join(`, `)}`,`types`,e),ip(this,{primaryType:a[0]});function o(i,a){Z(!a.has(i),`circular type reference to ${JSON.stringify(i)}`,`types`,e),a.add(i);for(let e of t.get(i))if(n.has(e)){o(e,a);for(let t of a)r.get(t).add(e)}a.delete(i)}o(this.primaryType,new Set);for(let[e,t]of r){let n=Array.from(t);n.sort(),this.#t.set(e,Qy(e,i[e])+n.map(e=>Qy(e,i[e])).join(``))}}getEncoder(e){let t=this.#n.get(e);return t||(t=this.#r(e),this.#n.set(e,t)),t}#r(e){{let t=Zy(e);if(t)return t}let t=$y(e).array;if(t){let e=t.prefix,n=this.getEncoder(e);return r=>{Z(t.count===-1||t.count===r.length,`array length mismatch; expected length ${t.count}`,`value`,r);let i=r.map(n);return this.#t.has(e)&&(i=i.map(Fh)),Fh(gp(i))}}let n=this.types[e];if(n){let t=Ly(this.#t.get(e));return e=>{let r=n.map(({name:t,type:n})=>{let r=this.getEncoder(n)(e[t]);return this.#t.has(n)?Fh(r):r});return r.unshift(t),gp(r)}}Z(!1,`unknown type: ${e}`,`type`,e)}encodeType(e){let t=this.#t.get(e);return Z(t,`unknown type: ${JSON.stringify(e)}`,`name`,e),t}encodeData(e,t){return this.getEncoder(e)(t)}hashStruct(e,t){return Fh(this.encodeData(e,t))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,t,n){if(Zy(e))return n(e,t);let r=$y(e).array;if(r)return Z(r.count===-1||r.count===t.length,`array length mismatch; expected length ${r.count}`,`value`,t),t.map(e=>this._visit(r.prefix,e,n));let i=this.types[e];if(i)return i.reduce((e,{name:r,type:i})=>(e[r]=this._visit(i,t[r],n),e),{});Z(!1,`unknown type: ${e}`,`type`,e)}visit(e,t){return this._visit(this.primaryType,e,t)}static from(t){return new e(t)}static getPrimaryType(t){return e.from(t).primaryType}static hashStruct(t,n,r){return e.from(n).hashStruct(t,r)}static hashDomain(t){let n=[];for(let e in t){if(t[e]==null)continue;let r=qy[e];Z(r,`invalid typed-data domain key: ${JSON.stringify(e)}`,`domain`,t),n.push({name:e,type:r})}return n.sort((e,t)=>Jy.indexOf(e.name)-Jy.indexOf(t.name)),e.hashStruct(`EIP712Domain`,{EIP712Domain:n},t)}static encode(t,n,r){return gp([`0x1901`,e.hashDomain(t),e.from(n).hash(r)])}static hash(t,n,r){return Fh(e.encode(t,n,r))}static async resolveNames(t,n,r,i){t=Object.assign({},t);for(let e in t)t[e]??delete t[e];let a={};t.verifyingContract&&!pp(t.verifyingContract,20)&&(a[t.verifyingContract]=`0x`);let o=e.from(n);o.visit(r,(e,t)=>(e===`address`&&!pp(t,20)&&(a[t]=`0x`),t));for(let e in a)a[e]=await i(e);return t.verifyingContract&&a[t.verifyingContract]&&(t.verifyingContract=a[t.verifyingContract]),r=o.visit(r,(e,t)=>e===`address`&&a[t]?a[t]:t),{domain:t,value:r}}static getPayload(t,n,r){e.hashDomain(t);let i={},a=[];Jy.forEach(e=>{let n=t[e];n!=null&&(i[e]=Xy[e](n),a.push({name:e,type:qy[e]}))});let o=e.from(n);n=o.types;let s=Object.assign({},n);return Z(s.EIP712Domain==null,`types must not contain EIP712Domain type`,`types.EIP712Domain`,n),s.EIP712Domain=a,o.encode(r),{types:s,domain:i,primaryType:o.primaryType,message:o.visit(r,(e,t)=>{if(e.match(/^bytes(\d*)/))return $(Q(t));if(e.match(/^u?int/))return Ep(t).toString();switch(e){case`address`:return t.toLowerCase();case`bool`:return!!t;case`string`:return Z(typeof t==`string`,`invalid string`,`value`,t),t}Z(!1,`unsupported type`,`type`,e)})}}};function tb(e){let t={};e.to&&(t.to=e.to),e.from&&(t.from=e.from),e.data&&(t.data=$(e.data));let n=`chainId,gasLimit,gasPrice,maxFeePerBlobGas,maxFeePerGas,maxPriorityFeePerGas,value`.split(/,/);for(let r of n)!(r in e)||e[r]==null||(t[r]=Ep(e[r],`request.${r}`));let r=`type,nonce`.split(/,/);for(let n of r)!(n in e)||e[n]==null||(t[n]=Ap(e[n],`request.${n}`));return e.accessList&&(t.accessList=ey(e.accessList)),e.authorizationList&&(t.authorizationList=e.authorizationList.slice()),`blockTag`in e&&(t.blockTag=e.blockTag),`enableCcipRead`in e&&(t.enableCcipRead=!!e.enableCcipRead),`customData`in e&&(t.customData=e.customData),`blobVersionedHashes`in e&&e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes.slice()),`kzg`in e&&(t.kzg=e.kzg),`blobWrapperVersion`in e&&(t.blobWrapperVersion=e.blobWrapperVersion),`blobs`in e&&e.blobs&&(t.blobs=e.blobs.map(e=>mp(e)?$(e):Object.assign({},e))),t}function nb(e,t){if(e.provider)return e.provider;sp(!1,`missing provider`,`UNSUPPORTED_OPERATION`,{operation:t})}async function rb(e,t){let n=tb(t);if(n.to!=null&&(n.to=Qv(n.to,e)),n.from!=null){let t=n.from;n.from=Promise.all([e.getAddress(),Qv(t,e)]).then(([e,t])=>(Z(e.toLowerCase()===t.toLowerCase(),`transaction from mismatch`,`tx.from`,t),e))}else n.from=e.getAddress();return await rp(n)}var ib=class{provider;constructor(e){ip(this,{provider:e||null})}async getNonce(e){return nb(this,`getTransactionCount`).getTransactionCount(await this.getAddress(),e)}async populateCall(e){return await rb(this,e)}async populateTransaction(e){let t=nb(this,`populateTransaction`),n=await rb(this,e);n.nonce??=await this.getNonce(`pending`),n.gasLimit??=await this.estimateGas(n);let r=await this.provider.getNetwork();n.chainId==null?n.chainId=r.chainId:Z(Ep(n.chainId)===r.chainId,`transaction chainId mismatch`,`tx.chainId`,e.chainId);let i=n.maxFeePerGas!=null||n.maxPriorityFeePerGas!=null;if(n.gasPrice!=null&&(n.type===2||i)?Z(!1,`eip-1559 transaction do not support gasPrice`,`tx`,e):(n.type===0||n.type===1)&&i&&Z(!1,`pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas`,`tx`,e),(n.type===2||n.type==null)&&n.maxFeePerGas!=null&&n.maxPriorityFeePerGas!=null)n.type=2;else if(n.type===0||n.type===1){let e=await t.getFeeData();sp(e.gasPrice!=null,`network does not support gasPrice`,`UNSUPPORTED_OPERATION`,{operation:`getGasPrice`}),n.gasPrice??=e.gasPrice}else{let e=await t.getFeeData();if(n.type==null)if(e.maxFeePerGas!=null&&e.maxPriorityFeePerGas!=null)if(n.authorizationList&&n.authorizationList.length?n.type=4:n.type=2,n.gasPrice!=null){let e=n.gasPrice;delete n.gasPrice,n.maxFeePerGas=e,n.maxPriorityFeePerGas=e}else n.maxFeePerGas??=e.maxFeePerGas,n.maxPriorityFeePerGas??=e.maxPriorityFeePerGas;else e.gasPrice==null?sp(!1,`failed to get consistent fee data`,`UNSUPPORTED_OPERATION`,{operation:`signer.getFeeData`}):(sp(!i,`network does not support EIP-1559`,`UNSUPPORTED_OPERATION`,{operation:`populateTransaction`}),n.gasPrice??=e.gasPrice,n.type=0);else (n.type===2||n.type===3||n.type===4)&&(n.maxFeePerGas??=e.maxFeePerGas,n.maxPriorityFeePerGas??=e.maxPriorityFeePerGas)}return await rp(n)}async populateAuthorization(e){let t=Object.assign({},e);return t.chainId??=(await nb(this,`getNetwork`).getNetwork()).chainId,t.nonce??=await this.getNonce(),t}async estimateGas(e){return nb(this,`estimateGas`).estimateGas(await this.populateCall(e))}async call(e){return nb(this,`call`).call(await this.populateCall(e))}async resolveName(e){return await nb(this,`resolveName`).resolveName(e)}async sendTransaction(e){let t=nb(this,`sendTransaction`),n=await this.populateTransaction(e);delete n.from;let r=Fy.from(n);return await t.broadcastTransaction(await this.signTransaction(r))}authorize(e){sp(!1,`authorization not implemented for this signer`,`UNSUPPORTED_OPERATION`,{operation:`authorize`})}},ab=class e extends ib{address;constructor(e,t){super(t),ip(this,{address:e})}async getAddress(){return this.address}connect(t){return new e(this.address,t)}#e(e,t){sp(!1,`VoidSigner cannot sign ${e}`,`UNSUPPORTED_OPERATION`,{operation:t})}async signTransaction(e){this.#e(`transactions`,`signTransaction`)}async signMessage(e){this.#e(`messages`,`signMessage`)}async signTypedData(e,t,n){this.#e(`typed-data`,`signTypedData`)}},ob=class e extends ib{address;#e;constructor(e,t){super(t),Z(e&&typeof e.sign==`function`,`invalid private key`,`privateKey`,`[ REDACTED ]`),this.#e=e;let n=ny(this.signingKey.publicKey);ip(this,{address:n})}get signingKey(){return this.#e}get privateKey(){return this.signingKey.privateKey}async getAddress(){return this.address}connect(t){return new e(this.#e,t)}async signTransaction(e){e=tb(e);let{to:t,from:n}=await rp({to:e.to?Qv(e.to,this):void 0,from:e.from?Qv(e.from,this):void 0});t!=null&&(e.to=t),n!=null&&(e.from=n),e.from!=null&&(Z(Yv(e.from)===this.address,`transaction from address mismatch`,`tx.from`,e.from),delete e.from);let r=Fy.from(e);return r.signature=this.signingKey.sign(r.unsignedHash),r.serialized}async signMessage(e){return this.signMessageSync(e)}signMessageSync(e){return this.signingKey.sign(Ry(e)).serialized}authorizeSync(e){Z(typeof e.address==`string`,`invalid address for authorizeSync`,`auth.address`,e);let t=this.signingKey.sign(Iy(e));return Object.assign({},{address:Yv(e.address),nonce:Ep(e.nonce||0),chainId:Ep(e.chainId||0)},{signature:t})}async authorize(e){return e=Object.assign({},e,{address:await Qv(e.address,this)}),this.authorizeSync(await this.populateAuthorization(e))}async signTypedData(e,t,n){let r=await eb.resolveNames(e,t,n,async e=>{sp(this.provider!=null,`cannot resolve ENS names without a provider`,`UNSUPPORTED_OPERATION`,{operation:`resolveName`,info:{name:e}});let t=await this.provider.resolveName(e);return sp(t!=null,`unconfigured ENS name`,`UNCONFIGURED_NAME`,{value:e}),t});return this.signingKey.sign(eb.hash(r.domain,t,r.value)).serialized}},sb=" !#$%&'()*+,-./<=>?@[]^_`{|}~",cb=/^[a-z]*$/i;function lb(e,t){let n=97;return e.reduce((e,r)=>(r===t?n++:r.match(cb)?e.push(String.fromCharCode(n)+r):(n=97,e.push(r)),e),[])}function ub(e,t){for(let n=28;n>=0;n--)e=e.split(sb[n]).join(t.substring(2*n,2*n+2));let n=[],r=e.replace(/(:|([0-9])|([A-Z][a-z]*))/g,(e,t,r,i)=>{if(r)for(let e=parseInt(r);e>=0;e--)n.push(`;`);else n.push(t.toLowerCase());return``});if(r)throw Error(`leftovers: ${JSON.stringify(r)}`);return lb(lb(n,`;`),`:`)}function db(e){return Z(e[0]===`0`,`unsupported auwl data`,`data`,e),ub(e.substring(59),e.substring(1,59))}var fb=class{locale;constructor(e){ip(this,{locale:e})}split(e){return e.toLowerCase().split(/\s+/g)}join(e){return e.join(` `)}},pb=class extends fb{#e;#t;constructor(e,t,n){super(e),this.#e=t,this.#t=n,this.#n=null}get _data(){return this.#e}_decodeWords(){return db(this.#e)}#n;#r(){if(this.#n==null){let e=this._decodeWords();if(Ly(e.join(`
|
|
14
|
+
`)+`
|
|
15
|
+
`)!==this.#t)throw Error(`BIP39 Wordlist for ${this.locale} FAILED`);this.#n=e}return this.#n}getWord(e){let t=this.#r();return Z(e>=0&&e<t.length,`invalid word index: ${e}`,`index`,e),t[e]}getWordIndex(e){return this.#r().indexOf(e)}},mb="0erleonalorenseinceregesticitStanvetearctssi#ch2Athck&tneLl0And#Il.yLeOutO=S|S%b/ra@SurdU'0Ce[Cid|CountCu'Hie=IdOu,-Qui*Ro[TT]T%T*[Tu$0AptDD-tD*[Ju,M.UltV<)Vi)0Rob-0FairF%dRaid0A(EEntRee0Ead0MRRp%tS!_rmBumCoholErtI&LLeyLowMo,O}PhaReadySoT Ways0A>urAz(gOngOuntU'd0Aly,Ch%Ci|G G!GryIm$K!Noun)Nu$O` Sw T&naTiqueXietyY1ArtOlogyPe?P!Pro=Ril1ChCt-EaEnaGueMMedM%MyOundR<+Re,Ri=RowTTefa@Ti,Tw%k0KPe@SaultSetSi,SumeThma0H!>OmTa{T&dT.udeTra@0Ct]D.Gu,NtTh%ToTumn0Era+OcadoOid0AkeA*AyEsomeFulKw?d0Is:ByChel%C#D+GL<)Lc#y~MbooN<aNn RRelyRga(R*lSeS-SketTt!3A^AnAutyCau'ComeEfF%eG(Ha=H(dLie=LowLtN^Nef./TrayTt Twe&Y#d3Cyc!DKeNdOlogyRdR`Tt _{AdeAmeAnketA,EakE[IndOodO[omOu'UeUrUsh_rdAtDyIlMbNeNusOkO,Rd R(gRrowSsTtomUn)XY_{etA(AndA[A=EadEezeI{Id+IefIghtIngIskOccoliOk&OnzeOomO` OwnUsh2Bb!DdyD+tFf$oIldLbLkL!tNd!Nk Rd&Rg R,SS(e[SyTt Y Zz:Bba+B(B!CtusGeKe~LmM aMpNN$N)lNdyNn#NoeNvasNy#Pab!P.$Pta(RRb#RdRgoRpetRryRtSeShS(o/!Su$TT$ogT^Teg%yTt!UghtU'Ut]Ve3Il(gL yM|NsusNturyRe$Rta(_irAlkAmp]An+AosApt Ar+A'AtEapE{Ee'EfErryE,I{&IefIldIm}yOi)Oo'R#-U{!UnkUrn0G?Nnam#Rc!Tiz&TyVil_imApArifyAwAyE<ErkEv I{I|IffImbIn-IpO{OgO'O`OudOwnUbUmpU, Ut^_^A,C#utDeFfeeIlInL!@L%LumnMb(eMeMf%tM-Mm#Mp<yNc tNdu@NfirmNg*[N}@Nsid NtrolNv()OkOlPp PyR$ReRnR*@/Tt#U^UntryUp!Ur'Us(V Yo>_{Ad!AftAmA}AshAt AwlAzyEamEd.EekEwI{etImeIspIt-OpO[Ou^OwdUci$UelUi'Umb!Un^UshYY,$2BeLtu*PPbo?dRiousRr|Rta(R=Sh]/omTe3C!:DMa+MpN)Ng R(gShUght WnY3AlBa>BrisCadeCemb CideCl(eC%a>C*a'ErF&'F(eFyG*eLayLiv M<dMi'Ni$Nti,NyP?tP&dPos.P`PutyRi=ScribeS tSignSkSpair/royTailTe@VelopVi)Vo>3AgramAlAm#dAryCeE'lEtFf G.$Gn.yLemmaNn NosaurRe@RtSag*eScov Sea'ShSmi[S%d Splay/<)V tVideV%)Zzy5Ct%Cum|G~Lph(Ma(Na>NkeyN%OrSeUb!Ve_ftAg#AmaA,-AwEamE[IftIllInkIpI=OpUmY2CkMbNeR(g/T^Ty1Arf1Nam-:G G!RlyRnR`Sily/Sy1HoOlogyOnomy0GeItUca>1F%t0G1GhtTh 2BowD E@r-Eg<tEm|Eph<tEvat%I>Se0B?kBodyBra)Er+Ot]PloyPow Pty0Ab!A@DD![D%'EmyErgyF%)Ga+G(eH<)JoyLi,OughR-hRollSu*T Ti*TryVelope1Isode0U$Uip0AA'OdeOs]R%Upt0CapeSayS&)Ta>0Ern$H-s1Id&)IlOkeOl=1A@Amp!Ce[Ch<+C.eCludeCu'Ecu>Erci'Hau,Hib.I!I,ItOt-P<dPe@Pi*Pla(Po'P*[T&dTra0EEbrow:Br-CeCultyDeIntI`~L'MeMilyMousNNcyNtasyRmSh]TT$Th TigueUltV%.e3Atu*Bru?yD $EEdElMa!N)/iv$T^V W3B Ct]EldGu*LeLmLt N$NdNeNg NishReRmR,Sc$ShTT}[X_gAmeAshAtAv%EeIghtIpOatO{O%Ow UidUshY_mCusGIlLd~owOdOtR)Re,R+tRkRtu}RumRw?dSsil/ UndX_gi!AmeEqu|EshI&dIn+OgOntO,OwnOz&U.2ElNNnyRna)RyTu*:D+tInLaxy~ yMePRa+Rba+Rd&Rl-Rm|SSpTeTh U+Ze3N $NiusN*Nt!Nu(e/u*2O,0AntFtGg!Ng RaffeRlVe_dAn)A*A[IdeImp'ObeOomOryO=OwUe_tDde[LdOdO'RillaSpelSsipV nWn_bA)A(AntApeA[Av.yEatE&IdIefItOc yOupOwUnt_rdE[IdeIltIt?N3M:B.IrLfMm M, NdPpyRb%RdRshR=,TVeWkZ?d3AdAl`ArtAvyD+hogIght~oLmetLpNRo3Dd&Gh~NtPRe/%y5BbyCkeyLdLeLiday~owMeNeyOdPeRnRr%R'Sp.$/TelUrV 5BGeM<Mb!M%Nd*dNgryNtRd!RryRtSb<d3Brid:1EOn0EaEntifyLe2N%e4LLeg$L}[0A+Ita>M&'Mu}Pa@Po'Pro=Pul'0ChCludeComeC*a'DexD-a>Do%Du,ryF<tFl-tF%mHa!H .Iti$Je@JuryMa>N Noc|PutQuiryS<eSe@SideSpi*/$lTa@T e,ToVe,V.eVol=3On0L<dOla>Sue0Em1Ory:CketGu?RZz3AlousAns~yWel9BInKeUr}yY5D+I)MpNg!Ni%Nk/:Ng?oo3EnEpT^upY3CkDD}yNdNgdomSsTT^&TeTt&Wi4EeIfeO{Ow:BBelB%Dd DyKeMpNgua+PtopR+T T(UghUndryVaWWnWsu.Y Zy3Ad AfArnA=Ctu*FtGG$G&dIsu*M#NdNg`NsOp?dSs#Tt Vel3ArB tyBr?yC&'FeFtGhtKeMbM.NkOnQuid/Tt!VeZ?d5AdAnB, C$CkG-NelyNgOpTt yUdUn+VeY$5CkyGga+Mb N?N^Xury3R-s:Ch(eDG-G}tIdIlInJ%KeMm$NNa+Nda>NgoNs]Nu$P!Rb!R^Rg(R(eRketRria+SkSs/ T^T i$ThTrixTt XimumZe3AdowAnAsu*AtCh<-D$DiaLodyLtMb M%yNt]NuRcyR+R.RryShSsa+T$Thod3Dd!DnightLk~]M-NdNimumN%Nu>Rac!Rr%S ySs/akeXXedXtu*5Bi!DelDifyMM|N.%NkeyN, N`OnR$ReRn(gSqu.oTh T]T%Unta(U'VeVie5ChFf(LeLtiplySc!SeumShroomS-/Tu$3Self/ yTh:I=MePk(Rrow/yT]Tu*3ArCkEdGati=G!@I` PhewR=/TTw%kUtr$V WsXt3CeGht5B!I'M(eeOd!Rm$R`SeTab!TeTh(gTi)VelW5C!?Mb R'T:K0EyJe@Li+Scu*S =Ta(Vious0CurE<Tob 0Or1FF Fi)T&2L1Ay0DI=Ymp-0It0CeEI#L(eLy1EnEraIn]Po'T]1An+B.Ch?dD D(?yG<I|Ig($Ph<0Tr-h0H 0Tdo%T TputTside0AlEnEr0NN 0Yg&0/ 0O}:CtDd!GeIrLa)LmNdaNelN-N` P RadeR|RkRrotRtySsT^ThTi|TrolTt nU'VeYm|3A)AnutArAs<tL-<NN$tyNcilOp!Pp Rfe@Rm.Rs#T2O}OtoRa'Ys-$0AnoCn-Ctu*E)GGe#~LotNkO} Pe/olT^Zza_)A}tA,-A>AyEa'Ed+U{UgUn+2EmEtIntL?LeLi)NdNyOlPul?Rt]S.]Ssib!/TatoTt yV tyWd W _@i)Ai'Ed-tEf Epa*Es|EttyEv|I)IdeIm?yIntI%.yIs#Iva>IzeOb!mO)[Odu)Of.OgramOje@Omo>OofOp tyOsp O>@OudOvide2Bl-Dd(g~LpL'Mpk(N^PilPpyR^a'R.yRpo'R'ShTZz!3Ramid:99Al.yAntumArt E,]I{ItIzO>:Bb.Cco#CeCkD?DioIlInI'~yMpN^NdomN+PidReTeTh V&WZ%3AdyAlAs#BelBuildC$lCei=CipeC%dCyc!Du)F!@F%mFu'G]G*tGul?Je@LaxLea'LiefLyMa(Memb M(dMo=Nd NewNtOp&PairPeatPla)P%tQui*ScueSemb!Si,Sour)Sp#'SultTi*T*atTurnUn]Ve$ViewW?d2Y`m0BBb#CeChDeD+F!GhtGidNgOtPp!SkTu$V$V 5AdA,BotBu,CketM<)OfOkieOmSeTa>UghUndU>Y$5Bb DeGLeNNwayR$:DDd!D}[FeIlLadLm#L#LtLu>MeMp!NdTisfyToshiU)Usa+VeY1A!AnA*Att E}HemeHoolI&)I[%sOrp]OutRapRe&RiptRub1AAr^As#AtC#dC*tCt]Cur.yEdEkGm|Le@~M(?Ni%N'Nt&)RiesRvi)Ss]Tt!TupV&_dowAftAllowA*EdEllEriffIeldIftI}IpIv O{OeOotOpOrtOuld O=RimpRugUff!Y0Bl(gCkDeE+GhtGnL|Lk~yLv Mil?Mp!N)NgR&/ Tua>XZe1A>Et^IIllInIrtUll0AbAmEepEnd I)IdeIghtImOg<OtOwUsh0AllArtI!OkeOo`0A{AkeApIffOw0ApCc Ci$CkDaFtL?Ldi LidLut]L=Me#eNgOnRryRtUlUndUpUr)U`0A)A*Ati$AwnEakEci$EedEllEndH eI)Id IkeInIr.L.OilOns%O#OrtOtRayReadR(gY0Ua*UeezeUir*l_b!AdiumAffA+AirsAmpAndArtA>AyEakEelEmEpE*oI{IllIngO{Oma^O}OolOryO=Ra>gyReetRikeR#gRugg!Ud|UffUmb!Y!0Bje@Bm.BwayC)[ChDd&Ff G?G+,ItMm NNnyN'tP PplyP*meReRfa)R+Rpri'RroundR=ySpe@/a(1AllowAmpApArmE?EetIftImIngIt^Ord1MbolMptomRup/em:B!Ck!GIlL|LkNkPeR+tSk/eTtooXi3A^Am~NN<tNnisNtRm/Xt_nkAtEmeEnE%yE*EyIngIsOughtReeRi=RowUmbUnd 0CketDeG LtMb MeNyPRedSsueT!5A,BaccoDayDdl EGe` I!tK&MatoM%rowNeNgueNightOlO`PP-Pp!R^RnadoRtoi'SsT$Uri,W?dW WnY_{AdeAff-Ag-A(Ansf ApAshA=lAyEatEeEndI$IbeI{Igg ImIpOphyOub!U{UeUlyUmpetU,U`Y2BeIt]Mb!NaN}lRkeyRnRt!1El=EntyI)InI,O1PeP-$:5Ly5B*lla0Ab!Awa*C!Cov D DoFairFoldHappyIf%mIqueItIv 'KnownLo{TilUsu$Veil1Da>GradeHoldOnP Set1B<Ge0A+EEdEfulE![U$0Il.y:C<tCuumGueLidL!yL=NNishP%Rious/Ult3H-!L=tNd%Ntu*NueRbRifyRs]RyS'lT <3Ab!Br<tCiousCt%yDeoEw~a+Nta+Ol(Rtu$RusSaS.Su$T$Vid5C$I)IdLc<oLumeTeYa+:GeG#ItLk~LnutNtRfa*RmRri%ShSp/eT VeY3Al`Ap#ArA'lA` BDd(gEk&dIrdLcome/T_!AtEatEelEnE*IpIsp 0DeD`FeLd~NNdowNeNgNkNn Nt ReSdomSeShT}[5LfM<Nd OdOlRdRkRldRryR`_pE{E,!I,I>Ong::Rd3Ar~ow9UUngU`:3BraRo9NeO",hb=`0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60`,gb=null,_b=class e extends pb{constructor(){super(`en`,mb,hb)}static wordlist(){return gb??=new e,gb}};function vb(e){return(1<<e)-1<<8-e&255}function yb(e){return(1<<e)-1&255}function bb(e,t){lp(`NFKD`),t??=_b.wordlist();let n=t.split(e);Z(n.length%3==0&&n.length>=12&&n.length<=24,`invalid mnemonic length`,`mnemonic`,`[ REDACTED ]`);let r=new Uint8Array(Math.ceil(11*n.length/8)),i=0;for(let e=0;e<n.length;e++){let a=t.getWordIndex(n[e].normalize(`NFKD`));Z(a>=0,`invalid mnemonic word at index ${e}`,`mnemonic`,`[ REDACTED ]`);for(let e=0;e<11;e++)a&1<<10-e&&(r[i>>3]|=1<<7-i%8),i++}let a=32*n.length/3,o=vb(n.length/3);return Z((Q(Ag(r.slice(0,a/8)))[0]&o)===(r[r.length-1]&o),`invalid mnemonic checksum`,`mnemonic`,`[ REDACTED ]`),$(r.slice(0,a/8))}function xb(e,t){Z(e.length%4==0&&e.length>=16&&e.length<=32,`invalid entropy size`,`entropy`,`[ REDACTED ]`),t??=_b.wordlist();let n=[0],r=11;for(let t=0;t<e.length;t++)r>8?(n[n.length-1]<<=8,n[n.length-1]|=e[t],r-=8):(n[n.length-1]<<=r,n[n.length-1]|=e[t]>>8-r,n.push(e[t]&yb(8-r)),r+=3);let i=e.length/4,a=parseInt(Ag(e).substring(2,4),16)&vb(i);return n[n.length-1]<<=i,n[n.length-1]|=a>>8-i,t.join(n.map(e=>t.getWord(e)))}var Sb={},Cb=class e{phrase;password;wordlist;entropy;constructor(e,t,n,r,i){r??=``,i??=_b.wordlist(),up(e,Sb,`Mnemonic`),ip(this,{phrase:n,password:r,wordlist:i,entropy:t})}computeSeed(){let e=Kp(`mnemonic`+this.password,`NFKD`);return ig(Kp(this.phrase,`NFKD`),e,2048,64,`sha512`)}static fromPhrase(t,n,r){let i=bb(t,r);return t=xb(Q(i),r),new e(Sb,i,t,n,r)}static fromEntropy(t,n,r){let i=Q(t,`entropy`),a=xb(i,r);return new e(Sb,$(i),a,n,r)}static entropyToPhrase(e,t){return xb(Q(e,`entropy`),t)}static phraseToEntropy(e,t){return bb(e,t)}static isValidMnemonic(e,t){try{return bb(e,t),!0}catch{}return!1}},wb=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},Tb=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},Eb,Db,Ob,kb={16:10,24:12,32:14},Ab=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],jb=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],Mb=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],Nb=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],Pb=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],Fb=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],Ib=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],Lb=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],Rb=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],zb=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],Bb=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],Vb=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],Hb=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],Ub=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],Wb=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function Gb(e){let t=[];for(let n=0;n<e.length;n+=4)t.push(e[n]<<24|e[n+1]<<16|e[n+2]<<8|e[n+3]);return t}var Kb=class e{get key(){return wb(this,Eb,`f`).slice()}constructor(t){if(Eb.set(this,void 0),Db.set(this,void 0),Ob.set(this,void 0),!(this instanceof e))throw Error("AES must be instanitated with `new`");Tb(this,Eb,new Uint8Array(t),`f`);let n=kb[this.key.length];if(n==null)throw TypeError(`invalid key size (must be 16, 24 or 32 bytes)`);Tb(this,Ob,[],`f`),Tb(this,Db,[],`f`);for(let e=0;e<=n;e++)wb(this,Ob,`f`).push([0,0,0,0]),wb(this,Db,`f`).push([0,0,0,0]);let r=(n+1)*4,i=this.key.length/4,a=Gb(this.key),o;for(let e=0;e<i;e++)o=e>>2,wb(this,Ob,`f`)[o][e%4]=a[e],wb(this,Db,`f`)[n-o][e%4]=a[e];let s=0,c=i,l;for(;c<r;){if(l=a[i-1],a[0]^=jb[l>>16&255]<<24^jb[l>>8&255]<<16^jb[l&255]<<8^jb[l>>24&255]^Ab[s]<<24,s+=1,i!=8)for(let e=1;e<i;e++)a[e]^=a[e-1];else{for(let e=1;e<i/2;e++)a[e]^=a[e-1];l=a[i/2-1],a[i/2]^=jb[l&255]^jb[l>>8&255]<<8^jb[l>>16&255]<<16^jb[l>>24&255]<<24;for(let e=i/2+1;e<i;e++)a[e]^=a[e-1]}let e=0,t,o;for(;e<i&&c<r;)t=c>>2,o=c%4,wb(this,Ob,`f`)[t][o]=a[e],wb(this,Db,`f`)[n-t][o]=a[e++],c++}for(let e=1;e<n;e++)for(let t=0;t<4;t++)l=wb(this,Db,`f`)[e][t],wb(this,Db,`f`)[e][t]=Vb[l>>24&255]^Hb[l>>16&255]^Ub[l>>8&255]^Wb[l&255]}encrypt(e){if(e.length!=16)throw TypeError(`invalid plaintext size (must be 16 bytes)`);let t=wb(this,Ob,`f`).length-1,n=[0,0,0,0],r=Gb(e);for(let e=0;e<4;e++)r[e]^=wb(this,Ob,`f`)[0][e];for(let e=1;e<t;e++){for(let t=0;t<4;t++)n[t]=Nb[r[t]>>24&255]^Pb[r[(t+1)%4]>>16&255]^Fb[r[(t+2)%4]>>8&255]^Ib[r[(t+3)%4]&255]^wb(this,Ob,`f`)[e][t];r=n.slice()}let i=new Uint8Array(16),a=0;for(let e=0;e<4;e++)a=wb(this,Ob,`f`)[t][e],i[4*e]=(jb[r[e]>>24&255]^a>>24)&255,i[4*e+1]=(jb[r[(e+1)%4]>>16&255]^a>>16)&255,i[4*e+2]=(jb[r[(e+2)%4]>>8&255]^a>>8)&255,i[4*e+3]=(jb[r[(e+3)%4]&255]^a)&255;return i}decrypt(e){if(e.length!=16)throw TypeError(`invalid ciphertext size (must be 16 bytes)`);let t=wb(this,Db,`f`).length-1,n=[0,0,0,0],r=Gb(e);for(let e=0;e<4;e++)r[e]^=wb(this,Db,`f`)[0][e];for(let e=1;e<t;e++){for(let t=0;t<4;t++)n[t]=Lb[r[t]>>24&255]^Rb[r[(t+3)%4]>>16&255]^zb[r[(t+2)%4]>>8&255]^Bb[r[(t+1)%4]&255]^wb(this,Db,`f`)[e][t];r=n.slice()}let i=new Uint8Array(16),a=0;for(let e=0;e<4;e++)a=wb(this,Db,`f`)[t][e],i[4*e]=(Mb[r[e]>>24&255]^a>>24)&255,i[4*e+1]=(Mb[r[(e+3)%4]>>16&255]^a>>16)&255,i[4*e+2]=(Mb[r[(e+2)%4]>>8&255]^a>>8)&255,i[4*e+3]=(Mb[r[(e+1)%4]&255]^a)&255;return i}};Eb=new WeakMap,Db=new WeakMap,Ob=new WeakMap;var qb=class{constructor(e,t,n){if(n&&!(this instanceof n))throw Error(`${e} must be instantiated with "new"`);Object.defineProperties(this,{aes:{enumerable:!0,value:new Kb(t)},name:{enumerable:!0,value:e}})}},Jb=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},Yb=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},Xb,Zb,Qb,$b=class e extends qb{constructor(t,n){super(`CTR`,t,e),Xb.set(this,void 0),Zb.set(this,void 0),Qb.set(this,void 0),Jb(this,Qb,new Uint8Array(16),`f`),Yb(this,Qb,`f`).fill(0),Jb(this,Xb,Yb(this,Qb,`f`),`f`),Jb(this,Zb,16,`f`),n??=1,typeof n==`number`?this.setCounterValue(n):this.setCounterBytes(n)}get counter(){return new Uint8Array(Yb(this,Qb,`f`))}setCounterValue(e){if(!Number.isInteger(e)||e<0||e>2**53-1)throw TypeError(`invalid counter initial integer value`);for(let t=15;t>=0;--t)Yb(this,Qb,`f`)[t]=e%256,e=Math.floor(e/256)}setCounterBytes(e){if(e.length!==16)throw TypeError(`invalid counter initial Uint8Array value length`);Yb(this,Qb,`f`).set(e)}increment(){for(let e=15;e>=0;e--)if(Yb(this,Qb,`f`)[e]===255)Yb(this,Qb,`f`)[e]=0;else{Yb(this,Qb,`f`)[e]++;break}}encrypt(e){var t,n;let r=new Uint8Array(e);for(let e=0;e<r.length;e++)Yb(this,Zb,`f`)===16&&(Jb(this,Xb,this.aes.encrypt(Yb(this,Qb,`f`)),`f`),Jb(this,Zb,0,`f`),this.increment()),r[e]^=Yb(this,Xb,`f`)[Jb(this,Zb,(n=Yb(this,Zb,`f`),t=n++,n),`f`),t];return r}decrypt(e){return this.encrypt(e)}};Xb=new WeakMap,Zb=new WeakMap,Qb=new WeakMap;function ex(e,t){for(e=String(e);e.length<t;)e=`0`+e;return e}function tx(e){return typeof e==`string`?Kp(e,`NFKC`):fp(e)}var nx=`m/44'/60'/0'/0/0`;function rx(e){let t=e.salt==null?cg(32):Q(e.salt,`options.salt`),n=1<<17,r=8,i=1;return e.scrypt&&(e.scrypt.N&&(n=e.scrypt.N),e.scrypt.r&&(r=e.scrypt.r),e.scrypt.p&&(i=e.scrypt.p)),Z(typeof n==`number`&&n>0&&Number.isSafeInteger(n)&&(BigInt(n)&BigInt(n-1))===BigInt(0),`invalid scrypt N parameter`,`options.N`,n),Z(typeof r==`number`&&r>0&&Number.isSafeInteger(r),`invalid scrypt r parameter`,`options.r`,r),Z(typeof i==`number`&&i>0&&Number.isSafeInteger(i),`invalid scrypt p parameter`,`options.p`,i),{name:`scrypt`,dkLen:32,salt:t,N:n,r,p:i}}function ix(e,t,n,r){let i=Q(n.privateKey,`privateKey`),a=r.iv==null?cg(16):Q(r.iv,`options.iv`);Z(a.length===16,`invalid options.iv length`,`options.iv`,r.iv);let o=r.uuid==null?cg(16):Q(r.uuid,`options.uuid`);Z(o.length===16,`invalid options.uuid length`,`options.uuid`,r.iv);let s=e.slice(0,16),c=e.slice(16,32),l=Q(new $b(s,a).encrypt(i)),u=Fh(gp([c,l])),d={address:n.address.substring(2).toLowerCase(),id:nm(o),version:3,Crypto:{cipher:`aes-128-ctr`,cipherparams:{iv:$(a).substring(2)},ciphertext:$(l).substring(2),kdf:`scrypt`,kdfparams:{salt:$(t.salt).substring(2),n:t.N,dklen:32,p:t.p,r:t.r},mac:u.substring(2)}};if(n.mnemonic){let t=r.client==null?`ethers/${tp}`:r.client,i=n.mnemonic.path||nx,a=n.mnemonic.locale||`en`,o=e.slice(32,64),s=Q(n.mnemonic.entropy,`account.mnemonic.entropy`),c=cg(16),l=Q(new $b(o,c).encrypt(s)),u=new Date;d[`x-ethers`]={client:t,gethFilename:`UTC--`+(u.getUTCFullYear()+`-`+ex(u.getUTCMonth()+1,2)+`-`+ex(u.getUTCDate(),2)+`T`+ex(u.getUTCHours(),2)+`-`+ex(u.getUTCMinutes(),2)+`-`+ex(u.getUTCSeconds(),2)+`.0Z`)+`--`+d.address,path:i,locale:a,mnemonicCounter:$(c).substring(2),mnemonicCiphertext:$(l).substring(2),version:`0.1`}}return JSON.stringify(d)}function ax(e,t,n){n??={};let r=tx(t),i=rx(n);return ix(Q(Cg(r,i.salt,i.N,i.r,i.p,64)),i,e,n)}async function ox(e,t,n){n??={};let r=tx(t),i=rx(n);return ix(Q(await Sg(r,i.salt,i.N,i.r,i.p,64,n.progressCallback)),i,e,n)}var sx=`m/44'/60'/0'/0/0`,cx=new Uint8Array([66,105,116,99,111,105,110,32,115,101,101,100]),lx=2147483648,ux=BigInt(`0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141`),dx=`0123456789abcdef`;function fx(e,t){let n=``;for(;e;)n=dx[e%16]+n,e=Math.trunc(e/16);for(;n.length<t*2;)n=`0`+n;return`0x`+n}function px(e){let t=Q(e);return zp(gp([t,vp(Ag(Ag(t)),0,4)]))}var mx={};function hx(e,t,n,r){let i=new Uint8Array(37);e&lx?(sp(r!=null,`cannot derive child of neutered node`,`UNSUPPORTED_OPERATION`,{operation:`deriveChild`}),i.set(Q(r),1)):i.set(Q(n));for(let t=24;t>=0;t-=8)i[33+(t>>3)]=e>>24-t&255;let a=Q(hh(`sha512`,t,i));return{IL:a.slice(0,32),IR:a.slice(32)}}function gx(e,t){let n=t.split(`/`);Z(n.length>0,`invalid path`,`path`,t),n[0]===`m`&&(Z(e.depth===0,`cannot derive root path (i.e. path starting with "m/") for a node at non-zero depth ${e.depth}`,`path`,t),n.shift());let r=e;for(let e=0;e<n.length;e++){let t=n[e];if(t.match(/^[0-9]+'$/)){let n=parseInt(t.substring(0,t.length-1));Z(n<lx,`invalid path index`,`path[${e}]`,t),r=r.deriveChild(lx+n)}else if(t.match(/^[0-9]+$/)){let n=parseInt(t);Z(n<lx,`invalid path index`,`path[${e}]`,t),r=r.deriveChild(n)}else Z(!1,`invalid path component`,`path[${e}]`,t)}return r}var _x=class e extends ob{publicKey;fingerprint;parentFingerprint;mnemonic;chainCode;path;index;depth;constructor(e,t,n,r,i,a,o,s,c){super(t,c),up(e,mx,`HDNodeWallet`),ip(this,{publicKey:t.compressedPublicKey});let l=vp(eg(Ag(this.publicKey)),0,4);ip(this,{parentFingerprint:n,fingerprint:l,chainCode:r,path:i,index:a,depth:o}),ip(this,{mnemonic:s})}connect(t){return new e(mx,this.signingKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,this.mnemonic,t)}#e(){let e={address:this.address,privateKey:this.privateKey},t=this.mnemonic;return this.path&&t&&t.wordlist.locale===`en`&&t.password===``&&(e.mnemonic={path:this.path,locale:`en`,entropy:t.entropy}),e}async encrypt(e,t){return await ox(this.#e(),e,{progressCallback:t})}encryptSync(e){return ax(this.#e(),e)}get extendedKey(){return sp(this.depth<256,`Depth too deep`,`UNSUPPORTED_OPERATION`,{operation:`extendedKey`}),px(gp([`0x0488ADE4`,fx(this.depth,1),this.parentFingerprint,fx(this.index,4),this.chainCode,gp([`0x00`,this.privateKey])]))}hasPath(){return this.path!=null}neuter(){return new vx(mx,this.address,this.publicKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,this.provider)}deriveChild(t){let n=Ap(t,`index`);Z(n<=4294967295,`invalid index`,`index`,n);let r=this.path;r&&(r+=`/`+(n&2147483647),n&lx&&(r+=`'`));let{IR:i,IL:a}=hx(n,this.chainCode,this.publicKey,this.privateKey);return new e(mx,new Bv(jp((kp(a)+BigInt(this.privateKey))%ux,32)),this.fingerprint,$(i),r,n,this.depth+1,this.mnemonic,this.provider)}derivePath(e){return gx(this,e)}static#t(t,n){Z(mp(t),`invalid seed`,`seed`,`[REDACTED]`);let r=Q(t,`seed`);Z(r.length>=16&&r.length<=64,`invalid seed`,`seed`,`[REDACTED]`);let i=Q(hh(`sha512`,cx,r));return new e(mx,new Bv($(i.slice(0,32))),`0x00000000`,$(i.slice(32)),`m`,0,0,n,null)}static fromExtendedKey(t){let n=Mp(Bp(t));Z(n.length===82||px(n.slice(0,78))===t,`invalid extended key`,`extendedKey`,`[ REDACTED ]`);let r=n[4],i=$(n.slice(5,9)),a=parseInt($(n.slice(9,13)).substring(2),16),o=$(n.slice(13,45)),s=n.slice(45,78);switch($(n.slice(0,4))){case`0x0488b21e`:case`0x043587cf`:{let e=$(s);return new vx(mx,ny(e),e,i,o,null,a,r,null)}case`0x0488ade4`:case`0x04358394 `:if(s[0]!==0)break;return new e(mx,new Bv(s.slice(1)),i,o,null,a,r,null,null)}Z(!1,`invalid extended key prefix`,`extendedKey`,`[ REDACTED ]`)}static createRandom(t,n,r){t??=``,n??=sx,r??=_b.wordlist();let i=Cb.fromEntropy(cg(16),t,r);return e.#t(i.computeSeed(),i).derivePath(n)}static fromMnemonic(t,n){return n||=sx,e.#t(t.computeSeed(),t).derivePath(n)}static fromPhrase(t,n,r,i){n??=``,r??=sx,i??=_b.wordlist();let a=Cb.fromPhrase(t,n,i);return e.#t(a.computeSeed(),a).derivePath(r)}static fromSeed(t){return e.#t(t,null)}},vx=class e extends ab{publicKey;fingerprint;parentFingerprint;chainCode;path;index;depth;constructor(e,t,n,r,i,a,o,s,c){super(t,c),up(e,mx,`HDNodeVoidWallet`),ip(this,{publicKey:n});let l=vp(eg(Ag(n)),0,4);ip(this,{publicKey:n,fingerprint:l,parentFingerprint:r,chainCode:i,path:a,index:o,depth:s})}connect(t){return new e(mx,this.address,this.publicKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,t)}get extendedKey(){return sp(this.depth<256,`Depth too deep`,`UNSUPPORTED_OPERATION`,{operation:`extendedKey`}),px(gp([`0x0488B21E`,fx(this.depth,1),this.parentFingerprint,fx(this.index,4),this.chainCode,this.publicKey]))}hasPath(){return this.path!=null}deriveChild(t){let n=Ap(t,`index`);Z(n<=4294967295,`invalid index`,`index`,n);let r=this.path;r&&(r+=`/`+(n&2147483647),n&lx&&(r+=`'`));let{IR:i,IL:a}=hx(n,this.chainCode,this.publicKey,null),o=Bv.addPoints(a,this.publicKey,!0);return new e(mx,ny(o),o,this.fingerprint,$(i),r,n,this.depth+1,this.provider)}derivePath(e){return gx(this,e)}},yx=i(((e,t)=>{t.exports={}})),bx=i(((t,n)=>{(function(t){var n=function(e){var t,n=new Float64Array(16);if(e)for(t=0;t<e.length;t++)n[t]=e[t];return n},r=function(){throw Error(`no PRNG`)},i=new Uint8Array(16),a=new Uint8Array(32);a[0]=9;var o=n(),s=n([1]),c=n([56129,1]),l=n([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),u=n([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),d=n([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),f=n([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),p=n([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function m(e,t,n,r){e[t]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=n&255,e[t+4]=r>>24&255,e[t+5]=r>>16&255,e[t+6]=r>>8&255,e[t+7]=r&255}function h(e,t,n,r,i){var a,o=0;for(a=0;a<i;a++)o|=e[t+a]^n[r+a];return(1&o-1>>>8)-1}function g(e,t,n,r){return h(e,t,n,r,16)}function _(e,t,n,r){return h(e,t,n,r,32)}function v(e,t,n,r){for(var i=r[0]&255|(r[1]&255)<<8|(r[2]&255)<<16|(r[3]&255)<<24,a=n[0]&255|(n[1]&255)<<8|(n[2]&255)<<16|(n[3]&255)<<24,o=n[4]&255|(n[5]&255)<<8|(n[6]&255)<<16|(n[7]&255)<<24,s=n[8]&255|(n[9]&255)<<8|(n[10]&255)<<16|(n[11]&255)<<24,c=n[12]&255|(n[13]&255)<<8|(n[14]&255)<<16|(n[15]&255)<<24,l=r[4]&255|(r[5]&255)<<8|(r[6]&255)<<16|(r[7]&255)<<24,u=t[0]&255|(t[1]&255)<<8|(t[2]&255)<<16|(t[3]&255)<<24,d=t[4]&255|(t[5]&255)<<8|(t[6]&255)<<16|(t[7]&255)<<24,f=t[8]&255|(t[9]&255)<<8|(t[10]&255)<<16|(t[11]&255)<<24,p=t[12]&255|(t[13]&255)<<8|(t[14]&255)<<16|(t[15]&255)<<24,m=r[8]&255|(r[9]&255)<<8|(r[10]&255)<<16|(r[11]&255)<<24,h=n[16]&255|(n[17]&255)<<8|(n[18]&255)<<16|(n[19]&255)<<24,g=n[20]&255|(n[21]&255)<<8|(n[22]&255)<<16|(n[23]&255)<<24,_=n[24]&255|(n[25]&255)<<8|(n[26]&255)<<16|(n[27]&255)<<24,v=n[28]&255|(n[29]&255)<<8|(n[30]&255)<<16|(n[31]&255)<<24,y=r[12]&255|(r[13]&255)<<8|(r[14]&255)<<16|(r[15]&255)<<24,b=i,x=a,S=o,C=s,w=c,E=l,D=u,O=d,k=f,A=p,j=m,M=h,N=g,P=_,F=v,I=y,L,R=0;R<20;R+=2)L=b+N|0,w^=L<<7|L>>>25,L=w+b|0,k^=L<<9|L>>>23,L=k+w|0,N^=L<<13|L>>>19,L=N+k|0,b^=L<<18|L>>>14,L=E+x|0,A^=L<<7|L>>>25,L=A+E|0,P^=L<<9|L>>>23,L=P+A|0,x^=L<<13|L>>>19,L=x+P|0,E^=L<<18|L>>>14,L=j+D|0,F^=L<<7|L>>>25,L=F+j|0,S^=L<<9|L>>>23,L=S+F|0,D^=L<<13|L>>>19,L=D+S|0,j^=L<<18|L>>>14,L=I+M|0,C^=L<<7|L>>>25,L=C+I|0,O^=L<<9|L>>>23,L=O+C|0,M^=L<<13|L>>>19,L=M+O|0,I^=L<<18|L>>>14,L=b+C|0,x^=L<<7|L>>>25,L=x+b|0,S^=L<<9|L>>>23,L=S+x|0,C^=L<<13|L>>>19,L=C+S|0,b^=L<<18|L>>>14,L=E+w|0,D^=L<<7|L>>>25,L=D+E|0,O^=L<<9|L>>>23,L=O+D|0,w^=L<<13|L>>>19,L=w+O|0,E^=L<<18|L>>>14,L=j+A|0,M^=L<<7|L>>>25,L=M+j|0,k^=L<<9|L>>>23,L=k+M|0,A^=L<<13|L>>>19,L=A+k|0,j^=L<<18|L>>>14,L=I+F|0,N^=L<<7|L>>>25,L=N+I|0,P^=L<<9|L>>>23,L=P+N|0,F^=L<<13|L>>>19,L=F+P|0,I^=L<<18|L>>>14;b=b+i|0,x=x+a|0,S=S+o|0,C=C+s|0,w=w+c|0,E=E+l|0,D=D+u|0,O=O+d|0,k=k+f|0,A=A+p|0,j=j+m|0,M=M+h|0,N=N+g|0,P=P+_|0,F=F+v|0,I=I+y|0,e[0]=b>>>0&255,e[1]=b>>>8&255,e[2]=b>>>16&255,e[3]=b>>>24&255,e[4]=x>>>0&255,e[5]=x>>>8&255,e[6]=x>>>16&255,e[7]=x>>>24&255,e[8]=S>>>0&255,e[9]=S>>>8&255,e[10]=S>>>16&255,e[11]=S>>>24&255,e[12]=C>>>0&255,e[13]=C>>>8&255,e[14]=C>>>16&255,e[15]=C>>>24&255,e[16]=w>>>0&255,e[17]=w>>>8&255,e[18]=w>>>16&255,e[19]=w>>>24&255,e[20]=E>>>0&255,e[21]=E>>>8&255,e[22]=E>>>16&255,e[23]=E>>>24&255,e[24]=D>>>0&255,e[25]=D>>>8&255,e[26]=D>>>16&255,e[27]=D>>>24&255,e[28]=O>>>0&255,e[29]=O>>>8&255,e[30]=O>>>16&255,e[31]=O>>>24&255,e[32]=k>>>0&255,e[33]=k>>>8&255,e[34]=k>>>16&255,e[35]=k>>>24&255,e[36]=A>>>0&255,e[37]=A>>>8&255,e[38]=A>>>16&255,e[39]=A>>>24&255,e[40]=j>>>0&255,e[41]=j>>>8&255,e[42]=j>>>16&255,e[43]=j>>>24&255,e[44]=M>>>0&255,e[45]=M>>>8&255,e[46]=M>>>16&255,e[47]=M>>>24&255,e[48]=N>>>0&255,e[49]=N>>>8&255,e[50]=N>>>16&255,e[51]=N>>>24&255,e[52]=P>>>0&255,e[53]=P>>>8&255,e[54]=P>>>16&255,e[55]=P>>>24&255,e[56]=F>>>0&255,e[57]=F>>>8&255,e[58]=F>>>16&255,e[59]=F>>>24&255,e[60]=I>>>0&255,e[61]=I>>>8&255,e[62]=I>>>16&255,e[63]=I>>>24&255}function y(e,t,n,r){for(var i=r[0]&255|(r[1]&255)<<8|(r[2]&255)<<16|(r[3]&255)<<24,a=n[0]&255|(n[1]&255)<<8|(n[2]&255)<<16|(n[3]&255)<<24,o=n[4]&255|(n[5]&255)<<8|(n[6]&255)<<16|(n[7]&255)<<24,s=n[8]&255|(n[9]&255)<<8|(n[10]&255)<<16|(n[11]&255)<<24,c=n[12]&255|(n[13]&255)<<8|(n[14]&255)<<16|(n[15]&255)<<24,l=r[4]&255|(r[5]&255)<<8|(r[6]&255)<<16|(r[7]&255)<<24,u=t[0]&255|(t[1]&255)<<8|(t[2]&255)<<16|(t[3]&255)<<24,d=t[4]&255|(t[5]&255)<<8|(t[6]&255)<<16|(t[7]&255)<<24,f=t[8]&255|(t[9]&255)<<8|(t[10]&255)<<16|(t[11]&255)<<24,p=t[12]&255|(t[13]&255)<<8|(t[14]&255)<<16|(t[15]&255)<<24,m=r[8]&255|(r[9]&255)<<8|(r[10]&255)<<16|(r[11]&255)<<24,h=n[16]&255|(n[17]&255)<<8|(n[18]&255)<<16|(n[19]&255)<<24,g=n[20]&255|(n[21]&255)<<8|(n[22]&255)<<16|(n[23]&255)<<24,_=n[24]&255|(n[25]&255)<<8|(n[26]&255)<<16|(n[27]&255)<<24,v=n[28]&255|(n[29]&255)<<8|(n[30]&255)<<16|(n[31]&255)<<24,y=r[12]&255|(r[13]&255)<<8|(r[14]&255)<<16|(r[15]&255)<<24,b=i,x=a,S=o,C=s,w=c,E=l,D=u,O=d,k=f,A=p,j=m,M=h,N=g,P=_,F=v,I=y,L,R=0;R<20;R+=2)L=b+N|0,w^=L<<7|L>>>25,L=w+b|0,k^=L<<9|L>>>23,L=k+w|0,N^=L<<13|L>>>19,L=N+k|0,b^=L<<18|L>>>14,L=E+x|0,A^=L<<7|L>>>25,L=A+E|0,P^=L<<9|L>>>23,L=P+A|0,x^=L<<13|L>>>19,L=x+P|0,E^=L<<18|L>>>14,L=j+D|0,F^=L<<7|L>>>25,L=F+j|0,S^=L<<9|L>>>23,L=S+F|0,D^=L<<13|L>>>19,L=D+S|0,j^=L<<18|L>>>14,L=I+M|0,C^=L<<7|L>>>25,L=C+I|0,O^=L<<9|L>>>23,L=O+C|0,M^=L<<13|L>>>19,L=M+O|0,I^=L<<18|L>>>14,L=b+C|0,x^=L<<7|L>>>25,L=x+b|0,S^=L<<9|L>>>23,L=S+x|0,C^=L<<13|L>>>19,L=C+S|0,b^=L<<18|L>>>14,L=E+w|0,D^=L<<7|L>>>25,L=D+E|0,O^=L<<9|L>>>23,L=O+D|0,w^=L<<13|L>>>19,L=w+O|0,E^=L<<18|L>>>14,L=j+A|0,M^=L<<7|L>>>25,L=M+j|0,k^=L<<9|L>>>23,L=k+M|0,A^=L<<13|L>>>19,L=A+k|0,j^=L<<18|L>>>14,L=I+F|0,N^=L<<7|L>>>25,L=N+I|0,P^=L<<9|L>>>23,L=P+N|0,F^=L<<13|L>>>19,L=F+P|0,I^=L<<18|L>>>14;e[0]=b>>>0&255,e[1]=b>>>8&255,e[2]=b>>>16&255,e[3]=b>>>24&255,e[4]=E>>>0&255,e[5]=E>>>8&255,e[6]=E>>>16&255,e[7]=E>>>24&255,e[8]=j>>>0&255,e[9]=j>>>8&255,e[10]=j>>>16&255,e[11]=j>>>24&255,e[12]=I>>>0&255,e[13]=I>>>8&255,e[14]=I>>>16&255,e[15]=I>>>24&255,e[16]=D>>>0&255,e[17]=D>>>8&255,e[18]=D>>>16&255,e[19]=D>>>24&255,e[20]=O>>>0&255,e[21]=O>>>8&255,e[22]=O>>>16&255,e[23]=O>>>24&255,e[24]=k>>>0&255,e[25]=k>>>8&255,e[26]=k>>>16&255,e[27]=k>>>24&255,e[28]=A>>>0&255,e[29]=A>>>8&255,e[30]=A>>>16&255,e[31]=A>>>24&255}function b(e,t,n,r){v(e,t,n,r)}function x(e,t,n,r){y(e,t,n,r)}var S=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function C(e,t,n,r,i,a,o){var s=new Uint8Array(16),c=new Uint8Array(64),l,u;for(u=0;u<16;u++)s[u]=0;for(u=0;u<8;u++)s[u]=a[u];for(;i>=64;){for(b(c,s,o,S),u=0;u<64;u++)e[t+u]=n[r+u]^c[u];for(l=1,u=8;u<16;u++)l=l+(s[u]&255)|0,s[u]=l&255,l>>>=8;i-=64,t+=64,r+=64}if(i>0)for(b(c,s,o,S),u=0;u<i;u++)e[t+u]=n[r+u]^c[u];return 0}function w(e,t,n,r,i){var a=new Uint8Array(16),o=new Uint8Array(64),s,c;for(c=0;c<16;c++)a[c]=0;for(c=0;c<8;c++)a[c]=r[c];for(;n>=64;){for(b(o,a,i,S),c=0;c<64;c++)e[t+c]=o[c];for(s=1,c=8;c<16;c++)s=s+(a[c]&255)|0,a[c]=s&255,s>>>=8;n-=64,t+=64}if(n>0)for(b(o,a,i,S),c=0;c<n;c++)e[t+c]=o[c];return 0}function E(e,t,n,r,i){var a=new Uint8Array(32);x(a,r,i,S);for(var o=new Uint8Array(8),s=0;s<8;s++)o[s]=r[s+16];return w(e,t,n,o,a)}function D(e,t,n,r,i,a,o){var s=new Uint8Array(32);x(s,a,o,S);for(var c=new Uint8Array(8),l=0;l<8;l++)c[l]=a[l+16];return C(e,t,n,r,i,c,s)}var O=function(e){this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0;var t=e[0]&255|(e[1]&255)<<8,n,r,i,a,o,s,c;this.r[0]=t&8191,n=e[2]&255|(e[3]&255)<<8,this.r[1]=(t>>>13|n<<3)&8191,r=e[4]&255|(e[5]&255)<<8,this.r[2]=(n>>>10|r<<6)&7939,i=e[6]&255|(e[7]&255)<<8,this.r[3]=(r>>>7|i<<9)&8191,a=e[8]&255|(e[9]&255)<<8,this.r[4]=(i>>>4|a<<12)&255,this.r[5]=a>>>1&8190,o=e[10]&255|(e[11]&255)<<8,this.r[6]=(a>>>14|o<<2)&8191,s=e[12]&255|(e[13]&255)<<8,this.r[7]=(o>>>11|s<<5)&8065,c=e[14]&255|(e[15]&255)<<8,this.r[8]=(s>>>8|c<<8)&8191,this.r[9]=c>>>5&127,this.pad[0]=e[16]&255|(e[17]&255)<<8,this.pad[1]=e[18]&255|(e[19]&255)<<8,this.pad[2]=e[20]&255|(e[21]&255)<<8,this.pad[3]=e[22]&255|(e[23]&255)<<8,this.pad[4]=e[24]&255|(e[25]&255)<<8,this.pad[5]=e[26]&255|(e[27]&255)<<8,this.pad[6]=e[28]&255|(e[29]&255)<<8,this.pad[7]=e[30]&255|(e[31]&255)<<8};O.prototype.blocks=function(e,t,n){for(var r=this.fin?0:2048,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C=this.h[0],w=this.h[1],E=this.h[2],D=this.h[3],O=this.h[4],k=this.h[5],A=this.h[6],j=this.h[7],M=this.h[8],N=this.h[9],P=this.r[0],F=this.r[1],I=this.r[2],L=this.r[3],R=this.r[4],z=this.r[5],B=this.r[6],V=this.r[7],H=this.r[8],U=this.r[9];n>=16;)i=e[t+0]&255|(e[t+1]&255)<<8,C+=i&8191,a=e[t+2]&255|(e[t+3]&255)<<8,w+=(i>>>13|a<<3)&8191,o=e[t+4]&255|(e[t+5]&255)<<8,E+=(a>>>10|o<<6)&8191,s=e[t+6]&255|(e[t+7]&255)<<8,D+=(o>>>7|s<<9)&8191,c=e[t+8]&255|(e[t+9]&255)<<8,O+=(s>>>4|c<<12)&8191,k+=c>>>1&8191,l=e[t+10]&255|(e[t+11]&255)<<8,A+=(c>>>14|l<<2)&8191,u=e[t+12]&255|(e[t+13]&255)<<8,j+=(l>>>11|u<<5)&8191,d=e[t+14]&255|(e[t+15]&255)<<8,M+=(u>>>8|d<<8)&8191,N+=d>>>5|r,f=0,p=f,p+=C*P,p+=5*U*w,p+=5*H*E,p+=5*V*D,p+=5*B*O,f=p>>>13,p&=8191,p+=5*z*k,p+=5*R*A,p+=5*L*j,p+=5*I*M,p+=5*F*N,f+=p>>>13,p&=8191,m=f,m+=C*F,m+=w*P,m+=5*U*E,m+=5*H*D,m+=5*V*O,f=m>>>13,m&=8191,m+=5*B*k,m+=5*z*A,m+=5*R*j,m+=5*L*M,m+=5*I*N,f+=m>>>13,m&=8191,h=f,h+=C*I,h+=w*F,h+=E*P,h+=5*U*D,h+=5*H*O,f=h>>>13,h&=8191,h+=5*V*k,h+=5*B*A,h+=5*z*j,h+=5*R*M,h+=5*L*N,f+=h>>>13,h&=8191,g=f,g+=C*L,g+=w*I,g+=E*F,g+=D*P,g+=5*U*O,f=g>>>13,g&=8191,g+=5*H*k,g+=5*V*A,g+=5*B*j,g+=5*z*M,g+=5*R*N,f+=g>>>13,g&=8191,_=f,_+=C*R,_+=w*L,_+=E*I,_+=D*F,_+=O*P,f=_>>>13,_&=8191,_+=5*U*k,_+=5*H*A,_+=5*V*j,_+=5*B*M,_+=5*z*N,f+=_>>>13,_&=8191,v=f,v+=C*z,v+=w*R,v+=E*L,v+=D*I,v+=O*F,f=v>>>13,v&=8191,v+=k*P,v+=5*U*A,v+=5*H*j,v+=5*V*M,v+=5*B*N,f+=v>>>13,v&=8191,y=f,y+=C*B,y+=w*z,y+=E*R,y+=D*L,y+=O*I,f=y>>>13,y&=8191,y+=k*F,y+=A*P,y+=5*U*j,y+=5*H*M,y+=5*V*N,f+=y>>>13,y&=8191,b=f,b+=C*V,b+=w*B,b+=E*z,b+=D*R,b+=O*L,f=b>>>13,b&=8191,b+=k*I,b+=A*F,b+=j*P,b+=5*U*M,b+=5*H*N,f+=b>>>13,b&=8191,x=f,x+=C*H,x+=w*V,x+=E*B,x+=D*z,x+=O*R,f=x>>>13,x&=8191,x+=k*L,x+=A*I,x+=j*F,x+=M*P,x+=5*U*N,f+=x>>>13,x&=8191,S=f,S+=C*U,S+=w*H,S+=E*V,S+=D*B,S+=O*z,f=S>>>13,S&=8191,S+=k*R,S+=A*L,S+=j*I,S+=M*F,S+=N*P,f+=S>>>13,S&=8191,f=(f<<2)+f|0,f=f+p|0,p=f&8191,f>>>=13,m+=f,C=p,w=m,E=h,D=g,O=_,k=v,A=y,j=b,M=x,N=S,t+=16,n-=16;this.h[0]=C,this.h[1]=w,this.h[2]=E,this.h[3]=D,this.h[4]=O,this.h[5]=k,this.h[6]=A,this.h[7]=j,this.h[8]=M,this.h[9]=N},O.prototype.finish=function(e,t){var n=new Uint16Array(10),r,i,a,o;if(this.leftover){for(o=this.leftover,this.buffer[o++]=1;o<16;o++)this.buffer[o]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(r=this.h[1]>>>13,this.h[1]&=8191,o=2;o<10;o++)this.h[o]+=r,r=this.h[o]>>>13,this.h[o]&=8191;for(this.h[0]+=r*5,r=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=r,r=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=r,n[0]=this.h[0]+5,r=n[0]>>>13,n[0]&=8191,o=1;o<10;o++)n[o]=this.h[o]+r,r=n[o]>>>13,n[o]&=8191;for(n[9]-=8192,i=(r^1)-1,o=0;o<10;o++)n[o]&=i;for(i=~i,o=0;o<10;o++)this.h[o]=this.h[o]&i|n[o];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,a=this.h[0]+this.pad[0],this.h[0]=a&65535,o=1;o<8;o++)a=(this.h[o]+this.pad[o]|0)+(a>>>16)|0,this.h[o]=a&65535;e[t+0]=this.h[0]>>>0&255,e[t+1]=this.h[0]>>>8&255,e[t+2]=this.h[1]>>>0&255,e[t+3]=this.h[1]>>>8&255,e[t+4]=this.h[2]>>>0&255,e[t+5]=this.h[2]>>>8&255,e[t+6]=this.h[3]>>>0&255,e[t+7]=this.h[3]>>>8&255,e[t+8]=this.h[4]>>>0&255,e[t+9]=this.h[4]>>>8&255,e[t+10]=this.h[5]>>>0&255,e[t+11]=this.h[5]>>>8&255,e[t+12]=this.h[6]>>>0&255,e[t+13]=this.h[6]>>>8&255,e[t+14]=this.h[7]>>>0&255,e[t+15]=this.h[7]>>>8&255},O.prototype.update=function(e,t,n){var r,i;if(this.leftover){for(i=16-this.leftover,i>n&&(i=n),r=0;r<i;r++)this.buffer[this.leftover+r]=e[t+r];if(n-=i,t+=i,this.leftover+=i,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(n>=16&&(i=n-n%16,this.blocks(e,t,i),t+=i,n-=i),n){for(r=0;r<n;r++)this.buffer[this.leftover+r]=e[t+r];this.leftover+=n}};function k(e,t,n,r,i,a){var o=new O(a);return o.update(n,r,i),o.finish(e,t),0}function A(e,t,n,r,i,a){var o=new Uint8Array(16);return k(o,0,n,r,i,a),g(e,t,o,0)}function j(e,t,n,r,i){var a;if(n<32)return-1;for(D(e,0,t,0,n,r,i),k(e,16,e,32,n-32,e),a=0;a<16;a++)e[a]=0;return 0}function M(e,t,n,r,i){var a,o=new Uint8Array(32);if(n<32||(E(o,0,32,r,i),A(t,16,t,32,n-32,o)!==0))return-1;for(D(e,0,t,0,n,r,i),a=0;a<32;a++)e[a]=0;return 0}function N(e,t){var n;for(n=0;n<16;n++)e[n]=t[n]|0}function P(e){var t,n,r=1;for(t=0;t<16;t++)n=e[t]+r+65535,r=Math.floor(n/65536),e[t]=n-r*65536;e[0]+=r-1+37*(r-1)}function F(e,t,n){for(var r,i=~(n-1),a=0;a<16;a++)r=i&(e[a]^t[a]),e[a]^=r,t[a]^=r}function I(e,t){var r,i,a,o=n(),s=n();for(r=0;r<16;r++)s[r]=t[r];for(P(s),P(s),P(s),i=0;i<2;i++){for(o[0]=s[0]-65517,r=1;r<15;r++)o[r]=s[r]-65535-(o[r-1]>>16&1),o[r-1]&=65535;o[15]=s[15]-32767-(o[14]>>16&1),a=o[15]>>16&1,o[14]&=65535,F(s,o,1-a)}for(r=0;r<16;r++)e[2*r]=s[r]&255,e[2*r+1]=s[r]>>8}function L(e,t){var n=new Uint8Array(32),r=new Uint8Array(32);return I(n,e),I(r,t),_(n,0,r,0)}function R(e){var t=new Uint8Array(32);return I(t,e),t[0]&1}function z(e,t){var n;for(n=0;n<16;n++)e[n]=t[2*n]+(t[2*n+1]<<8);e[15]&=32767}function B(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]+n[r]}function V(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]-n[r]}function H(e,t,n){var r,i,a=0,o=0,s=0,c=0,l=0,u=0,d=0,f=0,p=0,m=0,h=0,g=0,_=0,v=0,y=0,b=0,x=0,S=0,C=0,w=0,E=0,D=0,O=0,k=0,A=0,j=0,M=0,N=0,P=0,F=0,I=0,L=n[0],R=n[1],z=n[2],B=n[3],V=n[4],H=n[5],U=n[6],W=n[7],G=n[8],ee=n[9],te=n[10],K=n[11],ne=n[12],re=n[13],ie=n[14],ae=n[15];r=t[0],a+=r*L,o+=r*R,s+=r*z,c+=r*B,l+=r*V,u+=r*H,d+=r*U,f+=r*W,p+=r*G,m+=r*ee,h+=r*te,g+=r*K,_+=r*ne,v+=r*re,y+=r*ie,b+=r*ae,r=t[1],o+=r*L,s+=r*R,c+=r*z,l+=r*B,u+=r*V,d+=r*H,f+=r*U,p+=r*W,m+=r*G,h+=r*ee,g+=r*te,_+=r*K,v+=r*ne,y+=r*re,b+=r*ie,x+=r*ae,r=t[2],s+=r*L,c+=r*R,l+=r*z,u+=r*B,d+=r*V,f+=r*H,p+=r*U,m+=r*W,h+=r*G,g+=r*ee,_+=r*te,v+=r*K,y+=r*ne,b+=r*re,x+=r*ie,S+=r*ae,r=t[3],c+=r*L,l+=r*R,u+=r*z,d+=r*B,f+=r*V,p+=r*H,m+=r*U,h+=r*W,g+=r*G,_+=r*ee,v+=r*te,y+=r*K,b+=r*ne,x+=r*re,S+=r*ie,C+=r*ae,r=t[4],l+=r*L,u+=r*R,d+=r*z,f+=r*B,p+=r*V,m+=r*H,h+=r*U,g+=r*W,_+=r*G,v+=r*ee,y+=r*te,b+=r*K,x+=r*ne,S+=r*re,C+=r*ie,w+=r*ae,r=t[5],u+=r*L,d+=r*R,f+=r*z,p+=r*B,m+=r*V,h+=r*H,g+=r*U,_+=r*W,v+=r*G,y+=r*ee,b+=r*te,x+=r*K,S+=r*ne,C+=r*re,w+=r*ie,E+=r*ae,r=t[6],d+=r*L,f+=r*R,p+=r*z,m+=r*B,h+=r*V,g+=r*H,_+=r*U,v+=r*W,y+=r*G,b+=r*ee,x+=r*te,S+=r*K,C+=r*ne,w+=r*re,E+=r*ie,D+=r*ae,r=t[7],f+=r*L,p+=r*R,m+=r*z,h+=r*B,g+=r*V,_+=r*H,v+=r*U,y+=r*W,b+=r*G,x+=r*ee,S+=r*te,C+=r*K,w+=r*ne,E+=r*re,D+=r*ie,O+=r*ae,r=t[8],p+=r*L,m+=r*R,h+=r*z,g+=r*B,_+=r*V,v+=r*H,y+=r*U,b+=r*W,x+=r*G,S+=r*ee,C+=r*te,w+=r*K,E+=r*ne,D+=r*re,O+=r*ie,k+=r*ae,r=t[9],m+=r*L,h+=r*R,g+=r*z,_+=r*B,v+=r*V,y+=r*H,b+=r*U,x+=r*W,S+=r*G,C+=r*ee,w+=r*te,E+=r*K,D+=r*ne,O+=r*re,k+=r*ie,A+=r*ae,r=t[10],h+=r*L,g+=r*R,_+=r*z,v+=r*B,y+=r*V,b+=r*H,x+=r*U,S+=r*W,C+=r*G,w+=r*ee,E+=r*te,D+=r*K,O+=r*ne,k+=r*re,A+=r*ie,j+=r*ae,r=t[11],g+=r*L,_+=r*R,v+=r*z,y+=r*B,b+=r*V,x+=r*H,S+=r*U,C+=r*W,w+=r*G,E+=r*ee,D+=r*te,O+=r*K,k+=r*ne,A+=r*re,j+=r*ie,M+=r*ae,r=t[12],_+=r*L,v+=r*R,y+=r*z,b+=r*B,x+=r*V,S+=r*H,C+=r*U,w+=r*W,E+=r*G,D+=r*ee,O+=r*te,k+=r*K,A+=r*ne,j+=r*re,M+=r*ie,N+=r*ae,r=t[13],v+=r*L,y+=r*R,b+=r*z,x+=r*B,S+=r*V,C+=r*H,w+=r*U,E+=r*W,D+=r*G,O+=r*ee,k+=r*te,A+=r*K,j+=r*ne,M+=r*re,N+=r*ie,P+=r*ae,r=t[14],y+=r*L,b+=r*R,x+=r*z,S+=r*B,C+=r*V,w+=r*H,E+=r*U,D+=r*W,O+=r*G,k+=r*ee,A+=r*te,j+=r*K,M+=r*ne,N+=r*re,P+=r*ie,F+=r*ae,r=t[15],b+=r*L,x+=r*R,S+=r*z,C+=r*B,w+=r*V,E+=r*H,D+=r*U,O+=r*W,k+=r*G,A+=r*ee,j+=r*te,M+=r*K,N+=r*ne,P+=r*re,F+=r*ie,I+=r*ae,a+=38*x,o+=38*S,s+=38*C,c+=38*w,l+=38*E,u+=38*D,d+=38*O,f+=38*k,p+=38*A,m+=38*j,h+=38*M,g+=38*N,_+=38*P,v+=38*F,y+=38*I,i=1,r=a+i+65535,i=Math.floor(r/65536),a=r-i*65536,r=o+i+65535,i=Math.floor(r/65536),o=r-i*65536,r=s+i+65535,i=Math.floor(r/65536),s=r-i*65536,r=c+i+65535,i=Math.floor(r/65536),c=r-i*65536,r=l+i+65535,i=Math.floor(r/65536),l=r-i*65536,r=u+i+65535,i=Math.floor(r/65536),u=r-i*65536,r=d+i+65535,i=Math.floor(r/65536),d=r-i*65536,r=f+i+65535,i=Math.floor(r/65536),f=r-i*65536,r=p+i+65535,i=Math.floor(r/65536),p=r-i*65536,r=m+i+65535,i=Math.floor(r/65536),m=r-i*65536,r=h+i+65535,i=Math.floor(r/65536),h=r-i*65536,r=g+i+65535,i=Math.floor(r/65536),g=r-i*65536,r=_+i+65535,i=Math.floor(r/65536),_=r-i*65536,r=v+i+65535,i=Math.floor(r/65536),v=r-i*65536,r=y+i+65535,i=Math.floor(r/65536),y=r-i*65536,r=b+i+65535,i=Math.floor(r/65536),b=r-i*65536,a+=i-1+37*(i-1),i=1,r=a+i+65535,i=Math.floor(r/65536),a=r-i*65536,r=o+i+65535,i=Math.floor(r/65536),o=r-i*65536,r=s+i+65535,i=Math.floor(r/65536),s=r-i*65536,r=c+i+65535,i=Math.floor(r/65536),c=r-i*65536,r=l+i+65535,i=Math.floor(r/65536),l=r-i*65536,r=u+i+65535,i=Math.floor(r/65536),u=r-i*65536,r=d+i+65535,i=Math.floor(r/65536),d=r-i*65536,r=f+i+65535,i=Math.floor(r/65536),f=r-i*65536,r=p+i+65535,i=Math.floor(r/65536),p=r-i*65536,r=m+i+65535,i=Math.floor(r/65536),m=r-i*65536,r=h+i+65535,i=Math.floor(r/65536),h=r-i*65536,r=g+i+65535,i=Math.floor(r/65536),g=r-i*65536,r=_+i+65535,i=Math.floor(r/65536),_=r-i*65536,r=v+i+65535,i=Math.floor(r/65536),v=r-i*65536,r=y+i+65535,i=Math.floor(r/65536),y=r-i*65536,r=b+i+65535,i=Math.floor(r/65536),b=r-i*65536,a+=i-1+37*(i-1),e[0]=a,e[1]=o,e[2]=s,e[3]=c,e[4]=l,e[5]=u,e[6]=d,e[7]=f,e[8]=p,e[9]=m,e[10]=h,e[11]=g,e[12]=_,e[13]=v,e[14]=y,e[15]=b}function U(e,t){H(e,t,t)}function W(e,t){var r=n(),i;for(i=0;i<16;i++)r[i]=t[i];for(i=253;i>=0;i--)U(r,r),i!==2&&i!==4&&H(r,r,t);for(i=0;i<16;i++)e[i]=r[i]}function G(e,t){var r=n(),i;for(i=0;i<16;i++)r[i]=t[i];for(i=250;i>=0;i--)U(r,r),i!==1&&H(r,r,t);for(i=0;i<16;i++)e[i]=r[i]}function ee(e,t,r){var i=new Uint8Array(32),a=new Float64Array(80),o,s,l=n(),u=n(),d=n(),f=n(),p=n(),m=n();for(s=0;s<31;s++)i[s]=t[s];for(i[31]=t[31]&127|64,i[0]&=248,z(a,r),s=0;s<16;s++)u[s]=a[s],f[s]=l[s]=d[s]=0;for(l[0]=f[0]=1,s=254;s>=0;--s)o=i[s>>>3]>>>(s&7)&1,F(l,u,o),F(d,f,o),B(p,l,d),V(l,l,d),B(d,u,f),V(u,u,f),U(f,p),U(m,l),H(l,d,l),H(d,u,p),B(p,l,d),V(l,l,d),U(u,l),V(d,f,m),H(l,d,c),B(l,l,f),H(d,d,l),H(l,f,m),H(f,u,a),U(u,p),F(l,u,o),F(d,f,o);for(s=0;s<16;s++)a[s+16]=l[s],a[s+32]=d[s],a[s+48]=u[s],a[s+64]=f[s];var h=a.subarray(32),g=a.subarray(16);return W(h,h),H(g,g,h),I(e,g),0}function te(e,t){return ee(e,t,a)}function K(e,t){return r(t,32),te(e,t)}function ne(e,t,n){var r=new Uint8Array(32);return ee(r,n,t),x(e,i,r,S)}var re=j,ie=M;function ae(e,t,n,r,i,a){var o=new Uint8Array(32);return ne(o,i,a),re(e,t,n,r,o)}function oe(e,t,n,r,i,a){var o=new Uint8Array(32);return ne(o,i,a),ie(e,t,n,r,o)}var se=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function ce(e,t,n,r){for(var i=new Int32Array(16),a=new Int32Array(16),o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,E,D,O,k,A,j,M,N=e[0],P=e[1],F=e[2],I=e[3],L=e[4],R=e[5],z=e[6],B=e[7],V=t[0],H=t[1],U=t[2],W=t[3],G=t[4],ee=t[5],te=t[6],K=t[7],ne=0;r>=128;){for(w=0;w<16;w++)E=8*w+ne,i[w]=n[E+0]<<24|n[E+1]<<16|n[E+2]<<8|n[E+3],a[w]=n[E+4]<<24|n[E+5]<<16|n[E+6]<<8|n[E+7];for(w=0;w<80;w++)if(o=N,s=P,c=F,l=I,u=L,d=R,f=z,p=B,m=V,h=H,g=U,_=W,v=G,y=ee,b=te,x=K,D=B,O=K,k=O&65535,A=O>>>16,j=D&65535,M=D>>>16,D=(L>>>14|G<<18)^(L>>>18|G<<14)^(G>>>9|L<<23),O=(G>>>14|L<<18)^(G>>>18|L<<14)^(L>>>9|G<<23),k+=O&65535,A+=O>>>16,j+=D&65535,M+=D>>>16,D=L&R^~L&z,O=G&ee^~G&te,k+=O&65535,A+=O>>>16,j+=D&65535,M+=D>>>16,D=se[w*2],O=se[w*2+1],k+=O&65535,A+=O>>>16,j+=D&65535,M+=D>>>16,D=i[w%16],O=a[w%16],k+=O&65535,A+=O>>>16,j+=D&65535,M+=D>>>16,A+=k>>>16,j+=A>>>16,M+=j>>>16,S=j&65535|M<<16,C=k&65535|A<<16,D=S,O=C,k=O&65535,A=O>>>16,j=D&65535,M=D>>>16,D=(N>>>28|V<<4)^(V>>>2|N<<30)^(V>>>7|N<<25),O=(V>>>28|N<<4)^(N>>>2|V<<30)^(N>>>7|V<<25),k+=O&65535,A+=O>>>16,j+=D&65535,M+=D>>>16,D=N&P^N&F^P&F,O=V&H^V&U^H&U,k+=O&65535,A+=O>>>16,j+=D&65535,M+=D>>>16,A+=k>>>16,j+=A>>>16,M+=j>>>16,p=j&65535|M<<16,x=k&65535|A<<16,D=l,O=_,k=O&65535,A=O>>>16,j=D&65535,M=D>>>16,D=S,O=C,k+=O&65535,A+=O>>>16,j+=D&65535,M+=D>>>16,A+=k>>>16,j+=A>>>16,M+=j>>>16,l=j&65535|M<<16,_=k&65535|A<<16,P=o,F=s,I=c,L=l,R=u,z=d,B=f,N=p,H=m,U=h,W=g,G=_,ee=v,te=y,K=b,V=x,w%16==15)for(E=0;E<16;E++)D=i[E],O=a[E],k=O&65535,A=O>>>16,j=D&65535,M=D>>>16,D=i[(E+9)%16],O=a[(E+9)%16],k+=O&65535,A+=O>>>16,j+=D&65535,M+=D>>>16,S=i[(E+1)%16],C=a[(E+1)%16],D=(S>>>1|C<<31)^(S>>>8|C<<24)^S>>>7,O=(C>>>1|S<<31)^(C>>>8|S<<24)^(C>>>7|S<<25),k+=O&65535,A+=O>>>16,j+=D&65535,M+=D>>>16,S=i[(E+14)%16],C=a[(E+14)%16],D=(S>>>19|C<<13)^(C>>>29|S<<3)^S>>>6,O=(C>>>19|S<<13)^(S>>>29|C<<3)^(C>>>6|S<<26),k+=O&65535,A+=O>>>16,j+=D&65535,M+=D>>>16,A+=k>>>16,j+=A>>>16,M+=j>>>16,i[E]=j&65535|M<<16,a[E]=k&65535|A<<16;D=N,O=V,k=O&65535,A=O>>>16,j=D&65535,M=D>>>16,D=e[0],O=t[0],k+=O&65535,A+=O>>>16,j+=D&65535,M+=D>>>16,A+=k>>>16,j+=A>>>16,M+=j>>>16,e[0]=N=j&65535|M<<16,t[0]=V=k&65535|A<<16,D=P,O=H,k=O&65535,A=O>>>16,j=D&65535,M=D>>>16,D=e[1],O=t[1],k+=O&65535,A+=O>>>16,j+=D&65535,M+=D>>>16,A+=k>>>16,j+=A>>>16,M+=j>>>16,e[1]=P=j&65535|M<<16,t[1]=H=k&65535|A<<16,D=F,O=U,k=O&65535,A=O>>>16,j=D&65535,M=D>>>16,D=e[2],O=t[2],k+=O&65535,A+=O>>>16,j+=D&65535,M+=D>>>16,A+=k>>>16,j+=A>>>16,M+=j>>>16,e[2]=F=j&65535|M<<16,t[2]=U=k&65535|A<<16,D=I,O=W,k=O&65535,A=O>>>16,j=D&65535,M=D>>>16,D=e[3],O=t[3],k+=O&65535,A+=O>>>16,j+=D&65535,M+=D>>>16,A+=k>>>16,j+=A>>>16,M+=j>>>16,e[3]=I=j&65535|M<<16,t[3]=W=k&65535|A<<16,D=L,O=G,k=O&65535,A=O>>>16,j=D&65535,M=D>>>16,D=e[4],O=t[4],k+=O&65535,A+=O>>>16,j+=D&65535,M+=D>>>16,A+=k>>>16,j+=A>>>16,M+=j>>>16,e[4]=L=j&65535|M<<16,t[4]=G=k&65535|A<<16,D=R,O=ee,k=O&65535,A=O>>>16,j=D&65535,M=D>>>16,D=e[5],O=t[5],k+=O&65535,A+=O>>>16,j+=D&65535,M+=D>>>16,A+=k>>>16,j+=A>>>16,M+=j>>>16,e[5]=R=j&65535|M<<16,t[5]=ee=k&65535|A<<16,D=z,O=te,k=O&65535,A=O>>>16,j=D&65535,M=D>>>16,D=e[6],O=t[6],k+=O&65535,A+=O>>>16,j+=D&65535,M+=D>>>16,A+=k>>>16,j+=A>>>16,M+=j>>>16,e[6]=z=j&65535|M<<16,t[6]=te=k&65535|A<<16,D=B,O=K,k=O&65535,A=O>>>16,j=D&65535,M=D>>>16,D=e[7],O=t[7],k+=O&65535,A+=O>>>16,j+=D&65535,M+=D>>>16,A+=k>>>16,j+=A>>>16,M+=j>>>16,e[7]=B=j&65535|M<<16,t[7]=K=k&65535|A<<16,ne+=128,r-=128}return r}function le(e,t,n){var r=new Int32Array(8),i=new Int32Array(8),a=new Uint8Array(256),o,s=n;for(r[0]=1779033703,r[1]=3144134277,r[2]=1013904242,r[3]=2773480762,r[4]=1359893119,r[5]=2600822924,r[6]=528734635,r[7]=1541459225,i[0]=4089235720,i[1]=2227873595,i[2]=4271175723,i[3]=1595750129,i[4]=2917565137,i[5]=725511199,i[6]=4215389547,i[7]=327033209,ce(r,i,t,n),n%=128,o=0;o<n;o++)a[o]=t[s-n+o];for(a[n]=128,n=256-128*(n<112),a[n-9]=0,m(a,n-8,s/536870912|0,s<<3),ce(r,i,a,n),o=0;o<8;o++)m(e,8*o,r[o],i[o]);return 0}function ue(e,t){var r=n(),i=n(),a=n(),o=n(),s=n(),c=n(),l=n(),d=n(),f=n();V(r,e[1],e[0]),V(f,t[1],t[0]),H(r,r,f),B(i,e[0],e[1]),B(f,t[0],t[1]),H(i,i,f),H(a,e[3],t[3]),H(a,a,u),H(o,e[2],t[2]),B(o,o,o),V(s,i,r),V(c,o,a),B(l,o,a),B(d,i,r),H(e[0],s,c),H(e[1],d,l),H(e[2],l,c),H(e[3],s,d)}function de(e,t,n){var r;for(r=0;r<4;r++)F(e[r],t[r],n)}function fe(e,t){var r=n(),i=n(),a=n();W(a,t[2]),H(r,t[0],a),H(i,t[1],a),I(e,i),e[31]^=R(r)<<7}function pe(e,t,n){var r,i;for(N(e[0],o),N(e[1],s),N(e[2],s),N(e[3],o),i=255;i>=0;--i)r=n[i/8|0]>>(i&7)&1,de(e,t,r),ue(t,e),ue(e,e),de(e,t,r)}function me(e,t){var r=[n(),n(),n(),n()];N(r[0],d),N(r[1],f),N(r[2],s),H(r[3],d,f),pe(e,r,t)}function he(e,t,i){var a=new Uint8Array(64),o=[n(),n(),n(),n()],s;for(i||r(t,32),le(a,t,32),a[0]&=248,a[31]&=127,a[31]|=64,me(o,a),fe(e,o),s=0;s<32;s++)t[s+32]=e[s];return 0}var ge=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function _e(e,t){var n,r,i,a;for(r=63;r>=32;--r){for(n=0,i=r-32,a=r-12;i<a;++i)t[i]+=n-16*t[r]*ge[i-(r-32)],n=Math.floor((t[i]+128)/256),t[i]-=n*256;t[i]+=n,t[r]=0}for(n=0,i=0;i<32;i++)t[i]+=n-(t[31]>>4)*ge[i],n=t[i]>>8,t[i]&=255;for(i=0;i<32;i++)t[i]-=n*ge[i];for(r=0;r<32;r++)t[r+1]+=t[r]>>8,e[r]=t[r]&255}function ve(e){var t=new Float64Array(64),n;for(n=0;n<64;n++)t[n]=e[n];for(n=0;n<64;n++)e[n]=0;_e(e,t)}function ye(e,t,r,i){var a=new Uint8Array(64),o=new Uint8Array(64),s=new Uint8Array(64),c,l,u=new Float64Array(64),d=[n(),n(),n(),n()];le(a,i,32),a[0]&=248,a[31]&=127,a[31]|=64;var f=r+64;for(c=0;c<r;c++)e[64+c]=t[c];for(c=0;c<32;c++)e[32+c]=a[32+c];for(le(s,e.subarray(32),r+32),ve(s),me(d,s),fe(e,d),c=32;c<64;c++)e[c]=i[c];for(le(o,e,r+64),ve(o),c=0;c<64;c++)u[c]=0;for(c=0;c<32;c++)u[c]=s[c];for(c=0;c<32;c++)for(l=0;l<32;l++)u[c+l]+=o[c]*a[l];return _e(e.subarray(32),u),f}function be(e,t){var r=n(),i=n(),a=n(),c=n(),u=n(),d=n(),f=n();return N(e[2],s),z(e[1],t),U(a,e[1]),H(c,a,l),V(a,a,e[2]),B(c,e[2],c),U(u,c),U(d,u),H(f,d,u),H(r,f,a),H(r,r,c),G(r,r),H(r,r,a),H(r,r,c),H(r,r,c),H(e[0],r,c),U(i,e[0]),H(i,i,c),L(i,a)&&H(e[0],e[0],p),U(i,e[0]),H(i,i,c),L(i,a)?-1:(R(e[0])===t[31]>>7&&V(e[0],o,e[0]),H(e[3],e[0],e[1]),0)}function xe(e,t,r,i){var a,o=new Uint8Array(32),s=new Uint8Array(64),c=[n(),n(),n(),n()],l=[n(),n(),n(),n()];if(r<64||be(l,i))return-1;for(a=0;a<r;a++)e[a]=t[a];for(a=0;a<32;a++)e[a+32]=i[a];if(le(s,e,r),ve(s),pe(c,l,s),me(l,t.subarray(32)),ue(c,l),fe(o,c),r-=64,_(t,0,o,0)){for(a=0;a<r;a++)e[a]=0;return-1}for(a=0;a<r;a++)e[a]=t[a+64];return r}var Se=32,Ce=24,we=32,Te=16,Ee=32,De=32,Oe=32,ke=32,Ae=32,je=Ce,Me=we,Ne=Te,Pe=64,Fe=32,Ie=64,Le=32,Re=64;t.lowlevel={crypto_core_hsalsa20:x,crypto_stream_xor:D,crypto_stream:E,crypto_stream_salsa20_xor:C,crypto_stream_salsa20:w,crypto_onetimeauth:k,crypto_onetimeauth_verify:A,crypto_verify_16:g,crypto_verify_32:_,crypto_secretbox:j,crypto_secretbox_open:M,crypto_scalarmult:ee,crypto_scalarmult_base:te,crypto_box_beforenm:ne,crypto_box_afternm:re,crypto_box:ae,crypto_box_open:oe,crypto_box_keypair:K,crypto_hash:le,crypto_sign:ye,crypto_sign_keypair:he,crypto_sign_open:xe,crypto_secretbox_KEYBYTES:Se,crypto_secretbox_NONCEBYTES:Ce,crypto_secretbox_ZEROBYTES:we,crypto_secretbox_BOXZEROBYTES:Te,crypto_scalarmult_BYTES:Ee,crypto_scalarmult_SCALARBYTES:De,crypto_box_PUBLICKEYBYTES:Oe,crypto_box_SECRETKEYBYTES:ke,crypto_box_BEFORENMBYTES:Ae,crypto_box_NONCEBYTES:je,crypto_box_ZEROBYTES:Me,crypto_box_BOXZEROBYTES:Ne,crypto_sign_BYTES:Pe,crypto_sign_PUBLICKEYBYTES:Fe,crypto_sign_SECRETKEYBYTES:Ie,crypto_sign_SEEDBYTES:Le,crypto_hash_BYTES:Re,gf:n,D:l,L:ge,pack25519:I,unpack25519:z,M:H,A:B,S:U,Z:V,pow2523:G,add:ue,set25519:N,modL:_e,scalarmult:pe,scalarbase:me};function ze(e,t){if(e.length!==Se)throw Error(`bad key size`);if(t.length!==Ce)throw Error(`bad nonce size`)}function Be(e,t){if(e.length!==Oe)throw Error(`bad public key size`);if(t.length!==ke)throw Error(`bad secret key size`)}function Ve(){for(var e=0;e<arguments.length;e++)if(!(arguments[e]instanceof Uint8Array))throw TypeError(`unexpected type, use Uint8Array`)}function He(e){for(var t=0;t<e.length;t++)e[t]=0}t.randomBytes=function(e){var t=new Uint8Array(e);return r(t,e),t},t.secretbox=function(e,t,n){Ve(e,t,n),ze(n,t);for(var r=new Uint8Array(we+e.length),i=new Uint8Array(r.length),a=0;a<e.length;a++)r[a+we]=e[a];return j(i,r,r.length,t,n),i.subarray(Te)},t.secretbox.open=function(e,t,n){Ve(e,t,n),ze(n,t);for(var r=new Uint8Array(Te+e.length),i=new Uint8Array(r.length),a=0;a<e.length;a++)r[a+Te]=e[a];return r.length<32||M(i,r,r.length,t,n)!==0?null:i.subarray(we)},t.secretbox.keyLength=Se,t.secretbox.nonceLength=Ce,t.secretbox.overheadLength=Te,t.scalarMult=function(e,t){if(Ve(e,t),e.length!==De)throw Error(`bad n size`);if(t.length!==Ee)throw Error(`bad p size`);var n=new Uint8Array(Ee);return ee(n,e,t),n},t.scalarMult.base=function(e){if(Ve(e),e.length!==De)throw Error(`bad n size`);var t=new Uint8Array(Ee);return te(t,e),t},t.scalarMult.scalarLength=De,t.scalarMult.groupElementLength=Ee,t.box=function(e,n,r,i){var a=t.box.before(r,i);return t.secretbox(e,n,a)},t.box.before=function(e,t){Ve(e,t),Be(e,t);var n=new Uint8Array(Ae);return ne(n,e,t),n},t.box.after=t.secretbox,t.box.open=function(e,n,r,i){var a=t.box.before(r,i);return t.secretbox.open(e,n,a)},t.box.open.after=t.secretbox.open,t.box.keyPair=function(){var e=new Uint8Array(Oe),t=new Uint8Array(ke);return K(e,t),{publicKey:e,secretKey:t}},t.box.keyPair.fromSecretKey=function(e){if(Ve(e),e.length!==ke)throw Error(`bad secret key size`);var t=new Uint8Array(Oe);return te(t,e),{publicKey:t,secretKey:new Uint8Array(e)}},t.box.publicKeyLength=Oe,t.box.secretKeyLength=ke,t.box.sharedKeyLength=Ae,t.box.nonceLength=je,t.box.overheadLength=t.secretbox.overheadLength,t.sign=function(e,t){if(Ve(e,t),t.length!==Ie)throw Error(`bad secret key size`);var n=new Uint8Array(Pe+e.length);return ye(n,e,e.length,t),n},t.sign.open=function(e,t){if(Ve(e,t),t.length!==Fe)throw Error(`bad public key size`);var n=new Uint8Array(e.length),r=xe(n,e,e.length,t);if(r<0)return null;for(var i=new Uint8Array(r),a=0;a<i.length;a++)i[a]=n[a];return i},t.sign.detached=function(e,n){for(var r=t.sign(e,n),i=new Uint8Array(Pe),a=0;a<i.length;a++)i[a]=r[a];return i},t.sign.detached.verify=function(e,t,n){if(Ve(e,t,n),t.length!==Pe)throw Error(`bad signature size`);if(n.length!==Fe)throw Error(`bad public key size`);var r=new Uint8Array(Pe+e.length),i=new Uint8Array(Pe+e.length),a;for(a=0;a<Pe;a++)r[a]=t[a];for(a=0;a<e.length;a++)r[a+Pe]=e[a];return xe(i,r,r.length,n)>=0},t.sign.keyPair=function(){var e=new Uint8Array(Fe),t=new Uint8Array(Ie);return he(e,t),{publicKey:e,secretKey:t}},t.sign.keyPair.fromSecretKey=function(e){if(Ve(e),e.length!==Ie)throw Error(`bad secret key size`);for(var t=new Uint8Array(Fe),n=0;n<t.length;n++)t[n]=e[32+n];return{publicKey:t,secretKey:new Uint8Array(e)}},t.sign.keyPair.fromSeed=function(e){if(Ve(e),e.length!==Le)throw Error(`bad seed size`);for(var t=new Uint8Array(Fe),n=new Uint8Array(Ie),r=0;r<32;r++)n[r]=e[r];return he(t,n,!0),{publicKey:t,secretKey:n}},t.sign.publicKeyLength=Fe,t.sign.secretKeyLength=Ie,t.sign.seedLength=Le,t.sign.signatureLength=Pe,t.hash=function(e){Ve(e);var t=new Uint8Array(Re);return le(t,e,e.length),t},t.hash.hashLength=Re,t.verify=function(e,t){return Ve(e,t),e.length===0||t.length===0||e.length!==t.length?!1:h(e,0,t,0,e.length)===0},t.setPRNG=function(e){r=e},(function(){var n=typeof self<`u`?self.crypto||self.msCrypto:null;if(n&&n.getRandomValues){var r=65536;t.setPRNG(function(e,t){var i,a=new Uint8Array(t);for(i=0;i<t;i+=r)n.getRandomValues(a.subarray(i,i+Math.min(t-i,r)));for(i=0;i<t;i++)e[i]=a[i];He(a)})}else e!==void 0&&(n=yx(),n&&n.randomBytes&&t.setPRNG(function(e,t){var r,i=n.randomBytes(t);for(r=0;r<t;r++)e[r]=i[r];He(i)}))})()})(n!==void 0&&n.exports?n.exports:self.nacl=self.nacl||{})})),xx=r(bx(),1),Sx=`/most.box/`,Cx=5e4,wx=32,Tx=1,Ex=8,Dx=9+xx.default.secretbox.nonceLength,Ox=Dx+xx.default.secretbox.overheadLength,kx=new TextEncoder().encode(`MP-AE`);function Ax(e,t){let n=Kp(Sx+e),r=Q(Ag(Q(ig(Kp(t),n,Cx,wx,`sha512`)))),i=Cb.entropyToPhrase(r);return{username:e,address:_x.fromPhrase(i).address,danger:$(r)}}function jx(e){return Cb.entropyToPhrase(Q(e))}function Mx(e){let t=xx.default.box.keyPair.fromSecretKey(Q(e)),n=xx.default.sign.keyPair.fromSeed(Q(e));return{public_key:$(t.publicKey),private_key:$(t.secretKey),ed_public_key:$(n.publicKey)}}async function Nx(e,t){let n=_x.fromPhrase(jx(e));return{address:n.address,signature:await n.signMessage(t)}}function Px(e,t){let n=new TextEncoder().encode(e),r=xx.default.randomBytes(xx.default.secretbox.nonceLength),i=Q(t).slice(0,xx.default.secretbox.keyLength),a=xx.default.secretbox(n,r,i);return[`mp://1`,Hp(r),Hp(a)].join(`.`)}function Fx(e,t){let[n,r,i]=String(e||``).split(`.`);if(n!==`mp://1`||!r||!i)return``;let a=Q(t).slice(0,xx.default.secretbox.keyLength),o=xx.default.secretbox.open(Vp(i),Vp(r),a);return o?new TextDecoder().decode(o):``}function Ix(e){let t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.length;return n}function Lx(e){return Hp(e).replaceAll(`+`,`-`).replaceAll(`/`,`_`).replaceAll(`=`,``)}function Rx(e){let t=String(e||``).trim();if(!t||!/^[A-Za-z0-9_-]+$/.test(t))return null;try{return Vp(t.replaceAll(`-`,`+`).replaceAll(`_`,`/`).padEnd(Math.ceil(t.length/4)*4,`=`))}catch{return null}}function zx(e){let t=new Uint8Array(Ex);return new DataView(t.buffer).setBigUint64(0,BigInt(e),!1),t}function Bx(e){let t=new DataView(e.buffer,e.byteOffset,e.byteLength);return Number(t.getBigUint64(0,!1))}function Vx(e){let t=Rx(e);if(!t||t.length<Ox||t[0]!==Tx)return null;let n=t.slice(1,9),r=t.slice(9,Dx),i=t.slice(Dx);return{version:t[0],timestampMs:Bx(n),nonce:r,encrypted:i}}function Hx(e,t,n){return xx.default.hash(Ix([kx,e,t,n])).slice(0,xx.default.secretbox.keyLength)}function Ux(e,{senderPrivateKey:t,recipientPublicKey:n}){let r=Q(t),i=xx.default.box.keyPair.fromSecretKey(r).publicKey,a=Q(n),o=Hx(i,a,xx.default.box.before(a,r)),s=xx.default.randomBytes(xx.default.secretbox.nonceLength),c=xx.default.secretbox(new TextEncoder().encode(e),s,o);return Lx(Ix([new Uint8Array([Tx]),zx(Date.now()),s,c]))}function Wx(e){let t=Vx(e);return t?{version:t.version,timestampMs:t.timestampMs,nonce:Lx(t.nonce)}:null}function Gx(e,{senderPublicKey:t,recipientPrivateKey:n}){let r=Vx(e);if(!r)return``;try{let e=Q(n),i=xx.default.box.keyPair.fromSecretKey(e).publicKey,a=Q(t),o=Hx(a,i,xx.default.box.before(a,e)),s=xx.default.secretbox.open(r.encrypted,r.nonce,o);return s?new TextDecoder().decode(s):``}catch{return``}}function Kx(e,t,n){return`${e}:${String(t||`GET`).toUpperCase()}:${qx(n)}`}function qx(e){try{return new URL(e,`http://most.box`).pathname}catch{return String(e||``).split(`?`)[0]||`/`}}async function Jx(e,t,n){if(!e?.danger)return{};let r=Date.now().toString(),i=Kx(r,t,n),{address:a,signature:o}=await Nx(e.danger,i);return{Authorization:`${a},${r},${o}`}}var Yx=`mostbox_backend_url`,Xx=`mostbox_backend_invite`,Zx=`http://localhost:1976`;function Qx(){return typeof window>`u`?!1:[`localhost`,`127.0.0.1`].includes(window.location.hostname)}function $x(){return Qx()?Zx:``}function eS(){return typeof window>`u`?``:localStorage.getItem(Yx)||$x()}function tS(){return typeof window>`u`?``:localStorage.getItem(Yx)||``}function nS(){let e=tS();if(!e)return``;try{let{hostname:t}=new URL(e);return[`localhost`,`127.0.0.1`,`::1`].includes(t)?``:e}catch{return e}}function rS(){return typeof window>`u`?``:localStorage.getItem(Xx)||``}function iS(e){return(e||``).trim().replace(/\/+$/,``)}function aS(e){let t=iS(e);if(!t)return!1;try{let{hostname:e}=new URL(t),n=e.toLowerCase();return n===`localhost`||n===`::1`||n===`[::1]`||n===`127.0.0.1`||n.startsWith(`127.`)}catch{return!1}}function oS(e=eS()){return!!rS()&&!aS(e)}function sS(){if(typeof window>`u`)return null;try{let e=localStorage.getItem(`mostbox_identity`);return e?JSON.parse(e):null}catch{return null}}function cS(e){return e.startsWith(`/`)?e:`/${e}`}function lS(e){let t=qx(e),n=eS();if(!n)return t;try{let e=new URL(n).pathname.replace(/\/+$/,``);if(!e||e===`/`)return t;if(t===e)return`/`;if(t.startsWith(`${e}/`))return t.slice(e.length)}catch{}return t}function uS(e,t=`/ws`){let n=new URL(e),r=n.protocol===`https:`?`wss:`:`ws:`,i=n.pathname.replace(/\/+$/,``);return`${r}//${n.host}${i}${cS(t)}`}function dS(){let e=ep.create({hooks:{beforeRequest:[async({request:e})=>{let t=new Headers(e.headers||{}),n=rS();n&&oS(e.url)&&t.set(`x-mostbox-invite`,n);let r=sS();if(r?.danger)try{let n=await Jx(r,e.method,lS(e.url));for(let[e,r]of Object.entries(n))t.set(e,r)}catch{}return new Request(e,{headers:t})}]}});return new Proxy(e,{get(e,t,n){let r=Reflect.get(e,t,n);return[`get`,`post`,`put`,`patch`,`delete`,`head`].includes(t)?(t,n)=>{let i=typeof t==`string`?SS(t):t;return r.call(e,i,n)}:r}})}var fS=dS();async function pS(e){let t=e&&typeof e==`object`&&`response`in e?e.response:e instanceof Response?e:null;if(!t)return{};let n=t.bodyUsed?null:await t.clone().json().catch(()=>null);return{status:t.status,code:typeof n?.code==`string`?n.code:void 0,error:typeof n?.error==`string`?n.error:typeof n?.message==`string`?n.message:void 0}}async function mS(e,t=`请求失败`){let n=await pS(e);return n.error?n.error:(e&&typeof e==`object`&&`name`in e?String(e.name):``)===`TimeoutError`?`请求超时,请稍后重试`:e instanceof Error&&e.message?e.message:t}function hS(e){let t=iS(e);t?localStorage.setItem(Yx,t):localStorage.removeItem(Yx),fS=dS()}function gS(e){let t=(e||``).trim();t?localStorage.setItem(Xx,t):localStorage.removeItem(Xx),fS=dS()}function _S({url:e,invite:t}){hS(e),gS(t)}function vS(){hS(``),gS(``)}function yS(){return eS()}function bS(){return nS()}function xS(){return rS()}function SS(e){return`${eS()}${cS(e)}`}async function CS(e=`GET`,t=`/`){let n={},r=rS();r&&oS()&&(n[`x-mostbox-invite`]=r);try{Object.assign(n,await Jx(sS(),e,qx(t)))}catch{}return n}async function wS(e=`/ws`){if(typeof window>`u`)return cS(e);let t=eS()||window.location.origin,n=new URL(uS(t,e)),r=rS();r&&oS(n.toString())&&n.searchParams.set(`invite`,r);let i=sS();if(i?.danger)try{let t=await Jx(i,`GET`,qx(e)),[r,a,o]=String(t.Authorization||``).split(`,`);r&&o&&(n.searchParams.set(`address`,r),n.searchParams.set(`timestamp`,a),n.searchParams.set(`signature`,o))}catch{}return n.toString()}async function TS(){let e=eS();return OS({url:e,invite:oS(e)?rS():``})}async function ES(e,t,n){try{let r={};t&&(r[`x-mostbox-invite`]=t);try{Object.assign(r,await Jx(n,`GET`,`/api/remote/capabilities`))}catch{}return(await fetch(`${e}/api/remote/capabilities`,{method:`GET`,headers:r,signal:AbortSignal.timeout(3e3)})).ok?{ok:!0}:{ok:!1,reason:`http`}}catch{return{ok:!1,reason:`http`}}}async function DS(e,t,n){if(typeof WebSocket>`u`||!n?.danger)return{ok:!0};try{let r=new URL(uS(e));if(t&&r.searchParams.set(`invite`,t),n?.danger)try{let e=await Jx(n,`GET`,qx(`/ws`)),[t,i,a]=String(e.Authorization||``).split(`,`);t&&a&&(r.searchParams.set(`address`,t),r.searchParams.set(`timestamp`,i),r.searchParams.set(`signature`,a))}catch{}return await new Promise(e=>{let t=new WebSocket(r.toString()),n=setTimeout(()=>{t.close(),e({ok:!1,reason:`ws`})},4e3);t.onopen=()=>{clearTimeout(n),t.close(),e({ok:!0})},t.onerror=()=>{clearTimeout(n),e({ok:!1,reason:`ws`})}})}catch{return{ok:!1,reason:`ws`}}}async function OS({url:e,invite:t=``}){let n=iS(e);if(!n)return{ok:!1,reason:`http`};let r=sS(),[i,a]=await Promise.all([ES(n,t,r),DS(n,t,r)]);return i.ok?a.ok?{ok:!0}:a:i}async function kS(){try{return(await fetch(`${Zx}/api/node-id`,{method:`GET`,signal:AbortSignal.timeout(2e3)})).ok}catch{return!1}}var AS=`mostbox`,jS=1,MS=`notes`;function NS(){return new Promise((e,t)=>{let n=indexedDB.open(AS,jS);n.onupgradeneeded=()=>{let e=n.result;e.objectStoreNames.contains(MS)||e.createObjectStore(MS,{keyPath:`address`})},n.onsuccess=()=>e(n.result),n.onerror=()=>t(n.error)})}async function PS(e){let t=await NS();return new Promise((n,r)=>{let i=t.transaction(MS,`readonly`).objectStore(MS).get(e);i.onsuccess=()=>{let e=i.result;n(e?{notes:e.notes,notesPath:e.notesPath}:null)},i.onerror=()=>r(i.error)})}async function FS(e,t,n){let r=await NS();return new Promise((i,a)=>{let o=r.transaction(MS,`readwrite`).objectStore(MS).put({address:e,notes:t,notesPath:n});o.onsuccess=()=>i(),o.onerror=()=>a(o.error)})}function IS(e){return Array.isArray(e)?e.filter(e=>{if(!e||typeof e!=`object`)return!1;let t=e;return t.type===`file`||t.content!==void 0}).map(e=>({name:String(e.name||`Untitled`),cid:String(e.cid||``),path:Td(e.path||``),content:String(e.content||``),size:Number(e.size||0),type:`file`,created_at:Number(e.created_at||e.updated_at||Date.now()),updated_at:Number(e.updated_at||e.created_at||Date.now()),isSecret:e.isSecret===!0||String(e.content||``).startsWith(`mp://1`)})):[]}function LS(e,t,n){e&&FS(e,t,Td(n)).catch(e=>{console.warn(`Failed to persist notes:`,e)})}function RS(e){switch(e){case Dd.EMPTY:return`note.error.nameRequired`;case Dd.SLASH:return`note.error.nameNoSlash`;case Dd.BACKSLASH:return`note.error.nameNoBackslash`;default:return`note.error.nameInvalid`}}var zS=Rd((e,t)=>({hasBackend:null,checkBackend:async()=>{let t=yS();if(t){let{ok:n}=await TS();if(n){hS(t),e({hasBackend:!0});return}}await kS()?(hS(`http://localhost:1976`),e({hasBackend:!0})):e({hasBackend:!1})},isDarkMode:!1,setIsDarkMode:t=>{e({isDarkMode:t}),document.documentElement.setAttribute(`data-theme`,t?`dark`:`light`),localStorage.setItem(`theme`,t?`dark`:`light`)},toasts:[],addToast:(t,n=`info`)=>{e(e=>({toasts:[...e.toasts,{id:Date.now(),message:t,type:n}]}))},removeToast:t=>{e(e=>({toasts:e.toasts.filter(e=>e.id!==t)}))},showConnectModal:!1,openConnectModal:()=>e({showConnectModal:!0}),closeConnectModal:()=>e({showConnectModal:!1}),localDataReady:!1,initializeLocalData:()=>{e({notes:[],notesPath:``,notesAddress:``,localDataReady:!0})},notes:[],notesPath:``,notesAddress:``,loadUserNotes:async t=>{try{let n=await PS(t);e({notes:n?IS(n.notes):[],notesPath:Td(n?.notesPath||``),notesAddress:t})}catch(n){console.warn(`Failed to load notes from IndexedDB:`,n),e({notes:[],notesPath:``,notesAddress:t})}},resetAppState:()=>{e({notes:[],notesPath:``,notesAddress:``,toasts:[],showConnectModal:!1})},setNotesPath:n=>{let r=Td(n);e({notesPath:r}),LS(t().notesAddress,t().notes,r)},saveNote:async n=>{let r=Od(n.name);if(!r.valid)throw Error(RS(r.errorCode));let i=Td(n.path||``),a=String(n.content||``),o=await kd(a),s=new TextEncoder().encode(a).length,c=Date.now(),l=t().notes,u=n.cid?l.findIndex(e=>e.cid===n.cid):l.findIndex(e=>Td(e.path)===i&&e.name===r.name),d=Td(i?`${i}/${r.name}`:r.name);if(l.some((e,t)=>t!==u&&Ed(e)===d))throw Error(`note.error.nameConflict`);let f=u>=0?l[u]:null,p={name:r.name,cid:o,path:i,content:a,size:s,type:`file`,created_at:f?.created_at||c,updated_at:c,isSecret:n.isSecret===!0||a.startsWith(`mp://1`)},m=u>=0?l.map((e,t)=>t===u?p:e):[...l,p];return e({notes:m}),LS(t().notesAddress,m,t().notesPath),o},deleteNote:(n,r,i)=>{let a=r!==void 0&&i!==void 0?Td(`${r}/${i}`):``,o=t().notes.filter(e=>{if(n&&e.cid===n)return!1;if(a){let t=Ed(e);return t!==a&&!t.startsWith(`${a}/`)}return!0});e({notes:o}),LS(t().notesAddress,o,t().notesPath)},renameNote:(n,r,i)=>{let a=Od(i);if(!a.valid)throw Error(RS(a.errorCode));let o=Td(n),s=Td(r),c=Td(s?`${s}/${a.name}`:a.name);if(c.startsWith(`${o}/`))throw Error(`note.error.moveIntoSelf`);if(t().notes.some(e=>{let t=Ed(e);return t!==o&&t===c}))throw Error(`note.error.nameConflict`);let l=jd(t().notes,o,s,a.name);e({notes:l}),LS(t().notesAddress,l,t().notesPath)},importNotes:n=>{let r=IS(n);e({notes:r}),LS(t().notesAddress,r,t().notesPath)}}));if(typeof window<`u`){let e=localStorage.getItem(`theme`),t=typeof window<`u`&&window.matchMedia(`(prefers-color-scheme: dark)`).matches;(e===`dark`||!e&&t)&&zS.setState({isDarkMode:!0})}function BS(e,t){let{address:n,danger:r}=Ax(e,t);return{username:e,address:n,danger:r,displayName:`${e}#${n.slice(-4).toUpperCase()}`}}function VS(){if(typeof localStorage>`u`)return null;try{let e=localStorage.getItem(`mostbox_identity`);return e?JSON.parse(e):null}catch{return null}}function HS(e){typeof localStorage>`u`||localStorage.setItem(`mostbox_identity`,JSON.stringify(e))}function US(){typeof localStorage>`u`||(localStorage.removeItem(`mostbox_identity`),localStorage.removeItem(`mostbox_guest_identity`))}var WS=`匿名`;function GS(e){return e.displayName?e.displayName:`${e.username}#${e.address.slice(-4).toUpperCase()}`}function KS(e){if(!e||typeof e!=`object`)return null;let t=e;return!t.username||!t.address||!t.danger||t.username===WS?null:{username:t.username,address:t.address,danger:t.danger,displayName:GS(t),logo:typeof t.logo==`string`?t.logo:void 0,avatar:typeof t.avatar==`string`?t.avatar:void 0,identity:t.identity===`user`||t.identity===`service`||t.identity===`service_ai`?t.identity:void 0}}function qS(){return{loginUsername:``,loginPassword:``,showPassword:!1,loginPreviewAddress:``,hasPreviewedAvatar:!1,loginLoading:!1,loginError:``}}var JS=Rd((e,t)=>({identity:null,wallet:void 0,showLoginModal:!1,loginUsername:``,loginPassword:``,showPassword:!1,loginPreviewAddress:``,hasPreviewedAvatar:!1,loginLoading:!1,loginError:``,initializeUser:()=>{let t=KS(VS());t||US(),e({identity:t,wallet:t||void 0})},openLoginModal:()=>{e({showLoginModal:!0,loginError:``})},closeLoginModal:()=>{e({showLoginModal:!1,...qS()})},setLoginUsername:t=>{e({loginUsername:t,loginPreviewAddress:``,hasPreviewedAvatar:!1,loginError:``})},setLoginPassword:t=>{e({loginPassword:t,loginPreviewAddress:``,hasPreviewedAvatar:!1,loginError:``})},togglePassword:()=>{e(e=>({showPassword:!e.showPassword}))},previewLoginIdentity:()=>{let{loginUsername:n,loginPassword:r}=t();if(!n.trim()||!r.trim())return e({loginError:`login.error.credentialsRequired`}),null;let i=BS(n.trim(),r);return e({loginPreviewAddress:i.address,hasPreviewedAvatar:!0,loginError:``}),i},loginUser:()=>{let{loginUsername:n,loginPassword:r,hasPreviewedAvatar:i}=t();if(!n.trim()||!r.trim())return e({loginError:`login.error.credentialsRequired`}),null;if(!i)return e({loginError:`login.error.previewRequired`}),null;e({loginLoading:!0,loginError:``});try{let t=BS(n.trim(),r);return HS(t),e({identity:t,wallet:t,showLoginModal:!1,...qS()}),t}catch{return e({loginLoading:!1,loginError:`login.error.failed`}),null}},setUserIdentity:t=>{let n=KS(t);n&&(HS(n),e({identity:n,wallet:n}))},logoutUser:()=>{US(),e({identity:null,wallet:void 0})}})),YS={" ":`space`,ArrowLeft:`arrowleft`,ArrowRight:`arrowright`,ArrowUp:`arrowup`,ArrowDown:`arrowdown`,Escape:`escape`,Esc:`escape`,esc:`escape`,Enter:`enter`,Tab:`tab`,Backspace:`backspace`,Delete:`delete`,Insert:`insert`,Home:`home`,End:`end`,PageUp:`pageup`,PageDown:`pagedown`,"+":`plus`,"-":`minus`,"*":`asterisk`,"/":`slash`};function XS(e){let t=e.replace(`Key`,``).toLowerCase();return YS[e]||t}function ZS(e){let t=e.toLowerCase().split(`+`).map(e=>e.trim()),n={alt:t.includes(`alt`),ctrl:t.includes(`ctrl`),meta:t.includes(`meta`),mod:t.includes(`mod`),shift:t.includes(`shift`)},r=[`alt`,`ctrl`,`meta`,`shift`,`mod`],i=t.find(e=>!r.includes(e));return{...n,key:i===`[plus]`?`+`:i}}function QS(e,t,n){let{alt:r,ctrl:i,meta:a,mod:o,shift:s,key:c}=e,{altKey:l,ctrlKey:u,metaKey:d,shiftKey:f,key:p,code:m}=t;if(r!==l)return!1;if(o){if(!u&&!d)return!1}else if(i!==u||a!==d)return!1;return s===f?!!(c&&(n?XS(m)===XS(c):XS(p??m)===XS(c))):!1}function $S(e,t){return n=>QS(ZS(e),n,t)}function eC(e,t,n=!1){return e.target instanceof HTMLElement?(n||!e.target.isContentEditable)&&!t.includes(e.target.tagName):!0}function tC(e,t=[`INPUT`,`TEXTAREA`,`SELECT`],n=!1){let r=(0,Y.useEffectEvent)(r=>{e.forEach(([e,i,a={preventDefault:!0,usePhysicalKeys:!1}])=>{$S(e,a.usePhysicalKeys)(r)&&eC(r,t,n)&&(a.preventDefault&&r.preventDefault(),i(r))})});(0,Y.useEffect)(()=>(document.documentElement.addEventListener(`keydown`,r),()=>document.documentElement.removeEventListener(`keydown`,r)),[])}function nC(){return typeof window>`u`?!1:window.electronAPI?.isElectron===!0}function rC(){let[e,t]=(0,Y.useState)(!1);return(0,Y.useEffect)(()=>{t(nC())},[]),e}function iC({children:e,onClose:t,className:n=``}){tC(t?[[`Escape`,t]]:[]),(0,Y.useEffect)(()=>{let e=window.visualViewport;if(!e)return;let t=()=>{document.documentElement.style.setProperty(`--modal-visual-height`,`${e.height}px`),document.documentElement.style.setProperty(`--modal-visual-top`,`${e.offsetTop}px`)};return t(),e.addEventListener(`resize`,t),e.addEventListener(`scroll`,t),()=>{e.removeEventListener(`resize`,t),e.removeEventListener(`scroll`,t),document.documentElement.style.removeProperty(`--modal-visual-height`),document.documentElement.style.removeProperty(`--modal-visual-top`)}},[]);let r=(0,X.jsxs)(`div`,{className:[`modal-overlay`,n].filter(Boolean).join(` `),children:[(0,X.jsx)(`div`,{className:`modal-overlay-backdrop`}),(0,X.jsx)(`div`,{className:`modal-glass`,children:e})]});return typeof document>`u`?r:(0,qs.createPortal)(r,document.body)}function aC({message:e,type:t,onDone:n,index:r}){return(0,Y.useEffect)(()=>{let e=setTimeout(n,3e3);return()=>clearTimeout(e)},[]),(0,X.jsx)(`div`,{className:`toast ${t} toast-stack-${Math.min(Math.max(r,0),5)}`,children:e})}function oC({title:e,message:t,confirmText:n,onConfirm:r,onClose:i,danger:a}){let{t:o}=ql();return(0,X.jsx)(iC,{onClose:i,children:(0,X.jsxs)(`div`,{className:`confirm-modal`,onClick:e=>e.stopPropagation(),children:[(0,X.jsxs)(`div`,{className:`modal-header`,children:[(0,X.jsx)(`h3`,{children:e}),(0,X.jsx)(`button`,{onClick:i,className:`btn btn-icon`,children:(0,X.jsx)(mu,{size:18})})]}),(0,X.jsx)(`p`,{children:t}),(0,X.jsxs)(`div`,{className:`modal-actions`,children:[(0,X.jsx)(`button`,{onClick:i,className:`btn btn-secondary`,children:o(`common.cancel`)}),(0,X.jsx)(`button`,{onClick:r,className:`btn ${a?`btn-danger`:`btn-primary`}`,children:n})]})]})})}function sC({title:e,placeholder:t,defaultValue:n,confirmText:r,onConfirm:i,onClose:a,isLoading:o,loadingText:s,validate:c,allowEmpty:l=!1}){let{t:u}=ql(),[d,f]=(0,Y.useState)(n||``),p=d.trim(),m=p&&c?c(p):``,h=(l||!!p)&&!m&&!o;function g(){h&&i(p)}return(0,X.jsx)(iC,{onClose:a,children:(0,X.jsxs)(`div`,{className:`input-modal`,onClick:e=>e.stopPropagation(),children:[(0,X.jsxs)(`div`,{className:`modal-header`,children:[(0,X.jsx)(`h3`,{children:e}),(0,X.jsx)(`button`,{onClick:a,className:`btn btn-icon`,children:(0,X.jsx)(mu,{size:18})})]}),(0,X.jsx)(`input`,{type:`text`,value:d,onChange:e=>f(e.target.value),placeholder:t,autoFocus:!0,onKeyDown:e=>{e.key===`Enter`&&g()},className:`input input-compact`,"aria-invalid":!!m,"aria-describedby":m?`input-modal-error`:void 0}),m&&(0,X.jsx)(`p`,{className:`input-modal-error`,id:`input-modal-error`,children:m}),(0,X.jsxs)(`div`,{className:`modal-actions`,children:[(0,X.jsx)(`button`,{onClick:a,disabled:o,className:`btn btn-secondary`,children:u(`common.cancel`)}),(0,X.jsx)(`button`,{onClick:g,disabled:!h,className:`btn btn-primary ${o?`btn-loading`:``}`,children:o?s||u(`common.processing`):r})]})]})})}var cC=8,lC=8;function uC({ariaLabel:e,items:t,renderTrigger:n,placement:r=`bottom-end`,disabled:i=!1,className:a=``,menuClassName:o=``}){let s=(0,Y.useId)(),c=(0,Y.useRef)(null),l=(0,Y.useRef)(null),[u,d]=(0,Y.useState)(!1),[f,p]=(0,Y.useState)(!1),[m,h]=(0,Y.useState)(!1),g=(0,Y.useCallback)(e=>{c.current=e},[]),_=(0,Y.useCallback)(()=>{p(!1),h(!1)},[]),v=(0,Y.useCallback)(()=>{let e=c.current,t=l.current;if(!e||!t)return;let n=e.getBoundingClientRect(),i=t.getBoundingClientRect(),a=window.innerWidth,o=window.innerHeight,s=r.startsWith(`top`),u=r.endsWith(`end`),d=s?n.top-i.height-cC:n.bottom+cC,f=u?n.right-i.width:n.left,p=Math.max(lC,a-i.width-lC),m=Math.max(lC,o-i.height-lC),g={top:Math.min(Math.max(d,lC),m),left:Math.min(Math.max(f,lC),p)};t.style.setProperty(`--action-menu-top`,`${g.top}px`),t.style.setProperty(`--action-menu-left`,`${g.left}px`),h(!0)},[r]);(0,Y.useEffect)(()=>{d(!0)},[]),(0,Y.useEffect)(()=>{i&&_()},[_,i]),(0,Y.useLayoutEffect)(()=>{f&&(h(!1),v())},[f,t.length,v]),(0,Y.useEffect)(()=>{if(!f)return;let e=window.requestAnimationFrame(()=>{(l.current?.querySelector(`.ui-action-menu-item:not(:disabled)`))?.focus({preventScroll:!0})});return()=>window.cancelAnimationFrame(e)},[f]),(0,Y.useEffect)(()=>{if(!f)return;function e(e){let t=e.target;t instanceof Node&&(c.current?.contains(t)||l.current?.contains(t)||_())}function t(e){e.key===`Escape`&&(_(),c.current?.focus({preventScroll:!0}))}return document.addEventListener(`pointerdown`,e,!0),document.addEventListener(`keydown`,t),window.addEventListener(`resize`,v),window.addEventListener(`scroll`,v,!0),()=>{document.removeEventListener(`pointerdown`,e,!0),document.removeEventListener(`keydown`,t),window.removeEventListener(`resize`,v),window.removeEventListener(`scroll`,v,!0)}},[_,f,v]);function y(e){e.stopPropagation(),!i&&p(e=>!e)}function b(e){e.key===`ArrowDown`&&(e.preventDefault(),i||p(!0))}let x=u&&f?(0,qs.createPortal)((0,X.jsx)(`div`,{ref:l,id:s,className:[`ui-action-menu`,m?`is-positioned`:``,o].filter(Boolean).join(` `),role:`menu`,"aria-label":e,onClick:e=>e.stopPropagation(),children:t.map(e=>(0,X.jsxs)(`button`,{type:`button`,className:[`ui-action-menu-item`,e.icon?`has-icon`:``,e.description?`has-description`:``,e.danger?`danger`:``].filter(Boolean).join(` `),role:`menuitem`,disabled:e.disabled,onClick:t=>{t.stopPropagation(),_(),e.onSelect()},children:[e.icon&&(0,X.jsx)(`span`,{className:`ui-action-menu-item-icon`,children:e.icon}),(0,X.jsx)(`span`,{className:`ui-action-menu-item-label`,children:e.label}),e.description&&(0,X.jsx)(`span`,{className:`ui-action-menu-item-description`,children:e.description})]},e.key))}),document.body):null;return(0,X.jsxs)(`span`,{className:[`ui-action-menu-anchor`,a].filter(Boolean).join(` `),children:[n({ref:g,type:`button`,disabled:i,onClick:y,onKeyDown:b,"aria-haspopup":`menu`,"aria-expanded":f,"aria-controls":s}),x]})}function dC(e){return e.replace(/&/g,`&`).replace(/'/g,`'`).replace(/"/g,`"`).replace(/</g,`<`).replace(/>/g,`>`)}function fC(e){let t=e.meta?.title,n=e.meta?.creator,r=e.meta?.source,i=e.meta?.license?.url,a=pC(e);return!t&&!n&&!r&&!i&&!a?``:`<metadata xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/"><rdf:RDF><rdf:Description>`+(t?`<dc:title>${dC(t)}</dc:title>`:``)+(n?`<dc:creator>${dC(n)}</dc:creator>`:``)+(r?`<dc:source xsi:type="dcterms:URI">${dC(e.meta?.source??``)}</dc:source>`:``)+(i?`<dcterms:license xsi:type="dcterms:URI">${dC(i)}</dcterms:license>`:``)+(a?`<dc:rights>${dC(a)}</dc:rights>`:``)+`</rdf:Description></rdf:RDF></metadata>`}function pC(e){let t=e.meta?.title?`„${e.meta?.title}”`:`Design`,n=`„${e.meta?.creator??`Unknown`}”`;e.meta?.source&&(t+=` (${e.meta.source})`);let r=``;return e.meta?.license?.name!==`MIT`&&e.meta?.creator!==`DiceBear`&&e.meta?.title&&(r+=`Remix of `),r+=`${t} by ${n}`,e.meta?.license?.name&&(r+=`, licensed under „${e.meta?.license?.name}”`,e.meta?.license?.url&&(r+=` (${e.meta.license.url})`)),r}var mC=-2147483648,hC=2147483647,gC=1024;function _C(e){return e^=e<<13,e^=e>>17,e^=e<<5,e}function vC(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n)|0,t=_C(t);return t}function yC(e=``){e=e.toString().slice(0,gC);let t=vC(e)||1,n=()=>t=_C(t),r=(e,t)=>Math.floor((n()-mC)/(hC-mC)*(t+1-e)+e);return{seed:e,next:n,bool(e=50){return r(1,100)<=e},integer(e,t){return r(e,t)},pick(e,t){return e.length===0?(n(),t):e[r(0,e.length-1)]??t},shuffle(e){let t=yC(n().toString()),r=[...e];for(let e=r.length-1;e>0;e--){let n=t.integer(0,e);[r[e],r[n]]=[r[n],r[e]]}return r},string(e,t=`abcdefghijklmnopqrstuvwxyz1234567890`){let r=yC(n().toString()),i=``;for(let n=0;n<e;n++)i+=t[r.integer(0,t.length-1)];return i}}}function bC(e){let t=e.attributes.viewBox.split(` `);return{x:parseInt(t[0]),y:parseInt(t[1]),width:parseInt(t[2]),height:parseInt(t[3])}}function xC(e,t,n,r,i){let{width:a,height:o,x:s,y:c}=bC(e),l=`<rect fill="${dC(t)}" width="${a}" height="${o}" x="${s}" y="${c}" />`;switch(r){case`solid`:return l+e.body;case`gradientLinear`:return`<rect fill="url(#backgroundLinear)" width="${a}" height="${o}" x="${s}" y="${c}" /><defs><linearGradient id="backgroundLinear" gradientTransform="rotate(${i} 0.5 0.5)"><stop stop-color="${dC(t)}"/><stop offset="1" stop-color="${dC(n)}"/></linearGradient></defs>`+e.body}}function SC(e,t){let{width:n,height:r,x:i,y:a}=bC(e),o=t?(t-100)/100:0;return`<g transform="translate(${(n/2+i)*o*-1} ${(r/2+a)*o*-1}) scale(${t/100})">${e.body}</g>`}function CC(e,t,n){let r=bC(e);return`<g transform="translate(${(r.width+r.x*2)*((t??0)/100)} ${(r.height+r.y*2)*((n??0)/100)})">${e.body}</g>`}function wC(e,t){let{width:n,height:r,x:i,y:a}=bC(e);return`<g transform="rotate(${t}, ${n/2+i}, ${r/2+a})">${e.body}</g>`}function TC(e){let{width:t,x:n}=bC(e);return`<g transform="scale(-1 1) translate(${t*-1-n*2} 0)">${e.body}</g>`}function EC(e,t){let{width:n,height:r,x:i,y:a}=bC(e);return`<mask id="viewboxMask"><rect width="${n}" height="${r}" rx="${t?n*t/100:0}" ry="${t?r*t/100:0}" x="${i}" y="${a}" fill="#fff" /></mask><g mask="url(#viewboxMask)">${e.body}</g>`}function DC(e){let t={xmlns:`http://www.w3.org/2000/svg`,...e.attributes};return Object.keys(t).map(e=>`${dC(e)}="${dC(t[e])}"`).join(` `)}function OC(e){let t=yC(Math.random().toString()),n={};return e.body.replace(/(id="|url\(#)([a-z0-9-_]+)([")])/gi,(e,r,i,a)=>(n[i]=n[i]||t.string(8),`${r}${n[i]}${a}`))}var kC={type:`object`,$schema:`http://json-schema.org/draft-07/schema#`,properties:{seed:{type:`string`},flip:{type:`boolean`,default:!1},rotate:{type:`integer`,minimum:0,maximum:360,default:0},scale:{type:`integer`,minimum:0,maximum:200,default:100},radius:{type:`integer`,minimum:0,maximum:50,default:0},size:{type:`integer`,minimum:1},backgroundColor:{type:`array`,items:{type:`string`,pattern:`^(transparent|[a-fA-F0-9]{6})$`}},backgroundType:{type:`array`,items:{type:`string`,enum:[`solid`,`gradientLinear`]},default:[`solid`]},backgroundRotation:{type:`array`,items:{type:`integer`,minimum:-360,maximum:360},default:[0,360]},translateX:{type:`integer`,minimum:-100,maximum:100,default:0},translateY:{type:`integer`,minimum:-100,maximum:100,default:0},clip:{type:`boolean`,default:!0},randomizeIds:{type:`boolean`,default:!1}}};function AC(e){let t={},n=e.properties??{};return Object.keys(n).forEach(e=>{let r=n[e];typeof r==`object`&&r.default!==void 0&&(Array.isArray(r.default)?t[e]=[...r.default]:typeof r.default==`object`?t[e]={...r.default}:t[e]=r.default)}),t}function jC(e,t){let n={...AC(kC),...AC(e.schema??{}),...t};return JSON.parse(JSON.stringify(n))}function MC(e){return e===`transparent`?e:`#${e}`}function NC(e,t,n){let r=e.shuffle(t);r.length<=1||t.length==2&&n==`gradientLinear`?(r=t,e.next()):r=e.shuffle(t),r.length===0&&(r=[`transparent`]);let i=r[0],a=r[1]??r[0];return{primary:MC(i),secondary:MC(a)}}function PC(e,t={}){t=jC(e,t);let n=yC(t.seed),r=e.create({prng:n,options:t}),i=n.pick(t.backgroundType??[],`solid`),{primary:a,secondary:o}=NC(n,t.backgroundColor??[],i),s=n.integer(t.backgroundRotation?.length?Math.min(...t.backgroundRotation):0,t.backgroundRotation?.length?Math.max(...t.backgroundRotation):0);t.size&&(r.attributes.width=t.size.toString(),r.attributes.height=t.size.toString()),t.scale!==void 0&&t.scale!==100&&(r.body=SC(r,t.scale)),t.flip&&(r.body=TC(r)),t.rotate&&(r.body=wC(r,t.rotate)),(t.translateX||t.translateY)&&(r.body=CC(r,t.translateX,t.translateY)),a!==`transparent`&&o!==`transparent`&&(r.body=xC(r,a,o,i,s)),(t.radius||t.clip)&&(r.body=EC(r,t.radius??0)),t.randomizeIds&&(r.body=OC(r));let c=`<svg ${DC(r)}>${fC(e)}${r.body}</svg>`;return{toString:()=>c,toJson:()=>({svg:c,extra:{primaryBackgroundColor:a,secondaryBackgroundColor:o,backgroundType:i,backgroundRotation:s,...r.extra?.call(r)}}),toDataUri:()=>`data:image/svg+xml;utf8,${encodeURIComponent(c)}`}}var FC={bite:(e,t)=>`<rect x="4" y="5" width="68" height="22" rx="5" fill="#000" fill-opacity=".2"/><rect x="8" y="9" width="60" height="14" rx="2" fill="#000" fill-opacity=".6"/><path fill-rule="evenodd" clip-rule="evenodd" d="m20 17 6-8H14l6 8ZM32 17l6-8H26l6 8ZM44 17l6-8H38l6 8ZM56 17l6-8H50l6 8Z" fill="#E1E6E8"/>`,diagram:(e,t)=>`<rect x="4" y="4" width="68" height="24" rx="5" fill="#000" fill-opacity=".2"/><rect x="8" y="8" width="60" height="16" rx="2" fill="#000" fill-opacity=".8"/><path d="M9 17h11l2-4 3 7 4-8 2 9 3-11 3 10 3-3h15l3-4 2 7 3-3h4" stroke="#4EFAC9" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>`,grill01:(e,t)=>`<g fill="#000" fill-opacity=".6"><rect x="12" y="12" width="4" height="8" rx="2"/><rect x="36" y="12" width="4" height="8" rx="2"/><rect x="24" y="12" width="4" height="8" rx="2"/><rect x="48" y="12" width="4" height="8" rx="2"/><rect x="60" y="12" width="4" height="8" rx="2"/></g>`,grill02:(e,t)=>`<g fill="#000" fill-opacity=".6"><rect x="28" y="10" width="6" height="14" rx="2"/><rect x="14" y="10" width="6" height="14" rx="2"/><rect x="42" y="10" width="6" height="14" rx="2"/><rect x="56" y="10" width="6" height="14" rx="2"/></g>`,grill03:(e,t)=>`<rect x="4" y="5" width="68" height="22" rx="5" fill="#000" fill-opacity=".2"/><rect x="8" y="9" width="60" height="14" rx="2" fill="#fff"/><path fill="#000" fill-opacity=".1" d="M18 9h4v14h-4zM42 9h4v14h-4zM30 9h4v14h-4zM54 9h4v14h-4z"/>`,smile01:(e,t)=>`<path d="M27.05 8.44a2 2 0 1 1 3.9-.88C31.72 10.96 34.4 13 38 13c3.6 0 6.28-2.04 7.05-5.44a2 2 0 1 1 3.9.88C47.75 13.7 43.43 17 38 17s-9.76-3.3-10.95-8.56Z" fill="#000" fill-opacity=".6"/>`,smile02:(e,t)=>`<path fill-rule="evenodd" clip-rule="evenodd" d="M18 10.22C18 21.78 24.47 28 38 28c13.52 0 20-6.34 20-17.78C58 9.5 57.17 8 55 8H21c-2.05 0-3 1.38-3 2.22Z" fill="#000" fill-opacity=".8"/><mask id="mouthSmile02-a" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="18" y="8" width="40" height="20"><path fill-rule="evenodd" clip-rule="evenodd" d="M18 10.22C18 21.78 24.47 28 38 28c13.52 0 20-6.34 20-17.78C58 9.5 57.17 8 55 8H21c-2.05 0-3 1.38-3 2.22Z" fill="#fff"/></mask><g mask="url(#mouthSmile02-a)"><rect x="30" y="2" width="16" height="14" rx="2" fill="#fff"/></g>`,square01:(e,t)=>`<rect x="24" y="6" width="27" height="8" rx="4" fill="#000" fill-opacity=".8"/>`,square02:(e,t)=>`<rect x="16" y="8" width="44" height="4" rx="2" fill="#000" fill-opacity=".8"/>`},IC={bulging:(e,t)=>`<circle cx="28" cy="24" r="18" fill="#000" fill-opacity=".2"/><circle cx="74" cy="24" r="18" fill="#000" fill-opacity=".2"/><circle cx="28" cy="24" r="15" fill="#F1EEDA"/><circle cx="74" cy="24" r="15" fill="#F1EEDA"/><rect x="26" y="15" width="10" height="10" rx="2" fill="#000" fill-opacity=".8"/><rect x="74" y="15" width="10" height="10" rx="2" fill="#000" fill-opacity=".8"/>`,dizzy:(e,t)=>`<path d="m25 27.2 5.5 5.5c.5.4 1.2.4 1.6 0l1.6-1.6c.4-.5.4-1.2 0-1.6L28.2 24l5.5-5.5c.4-.5.4-1.2 0-1.6l-1.6-1.6c-.5-.4-1.2-.4-1.6 0L25 20.8l-5.5-5.5c-.5-.4-1.2-.4-1.6 0l-1.6 1.6c-.4.4-.4 1.1 0 1.6l5.5 5.5-5.5 5.5c-.4.5-.4 1.2 0 1.6l1.6 1.6c.5.4 1.2.4 1.6 0l5.5-5.5ZM79 27.2l5.5 5.5c.5.4 1.2.4 1.6 0l1.6-1.6c.4-.5.4-1.2 0-1.6L82.2 24l5.5-5.5c.4-.5.4-1.2 0-1.6l-1.6-1.6c-.5-.4-1.2-.4-1.6 0L79 20.8l-5.5-5.5c-.5-.4-1.2-.4-1.6 0l-1.6 1.6c-.4.4-.4 1.1 0 1.6l5.5 5.5-5.5 5.5c-.4.5-.4 1.2 0 1.6l1.6 1.6c.5.4 1.2.4 1.6 0l5.5-5.5Z" fill="#000" fill-opacity=".8"/>`,eva:(e,t)=>`<g fill-rule="evenodd" clip-rule="evenodd"><path d="M53 0c34.75 0 49 17.47 49 31 0 13.53-19.59 17-49 17-29.05 0-51-3.47-51-17S17.11 0 53 0Z" fill="#000" fill-opacity=".8"/><path d="M28.82 34.65c-6.53-1.35-11.24-6.34-10.52-11.14.72-4.79 6.6-7.58 13.12-6.23 6.53 1.36 11.24 6.35 10.52 11.15-.72 4.8-6.6 7.59-13.12 6.23ZM75.42 34.65c-6.52 1.36-12.4-1.43-13.12-6.23-.72-4.8 4-9.8 10.52-11.15 6.52-1.35 12.4 1.44 13.12 6.24.72 4.81-4 9.8-10.52 11.15Z" fill="#25A6F5"/></g>`,frame1:(e,t)=>`<rect y="4" width="104" height="42" rx="4" fill="#000" fill-opacity=".8"/><rect x="28" y="25" width="10" height="11" rx="2" fill="#8BDDFF"/><rect x="66" y="25" width="10" height="11" rx="2" fill="#8BDDFF"/><path fill-rule="evenodd" clip-rule="evenodd" d="M21 4h8L12 46H4L21 4Z" fill="#fff" fill-opacity=".4"/>`,frame2:(e,t)=>`<rect x="8" y="10" width="88" height="36" rx="4" fill="#000" fill-opacity=".8"/><rect x="28" y="21" width="10" height="17" rx="2" fill="#5EF2B8"/><rect x="66" y="21" width="10" height="17" rx="2" fill="#5EF2B8"/><path fill-rule="evenodd" clip-rule="evenodd" d="M83 10h5L76 46h-5l12-36Z" fill="#fff" fill-opacity=".4"/>`,glow:(e,t)=>`<g fill="#fff"><circle cx="21" cy="30" r="15" fill-opacity=".1"/><circle cx="83" cy="30" r="15" fill-opacity=".1"/><circle cx="21" cy="30" r="12" fill-opacity=".1"/><circle cx="83" cy="30" r="12" fill-opacity=".1"/><circle cx="21" cy="30" r="6" fill-opacity=".8"/><circle cx="83" cy="30" r="6" fill-opacity=".8"/><circle cx="21" cy="30" r="3" fill-opacity=".8"/><circle cx="83" cy="30" r="3" fill-opacity=".8"/></g>`,happy:(e,t)=>`<path d="m18 19 12-2M20 31c0-3.31 2.9-6 7-6 3.1 0 6 2.69 6 6M86 20l-12-3M84 31c0-3.31-2.9-6-6-6-4.1 0-7 2.69-7 6" stroke="#000" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/>`,hearts:(e,t)=>`<path d="M29.27 9.68c-2.55.13-4.96 2.24-6.25 4.15-1.48-1.76-4.1-3.6-6.65-3.47-5.48.28-8.85 3.8-8.63 8.1.3 5.72 4.88 8.89 9.7 12.24 1.71 1.15 5 4.15 5.42 4.82.42.67 2.14.6 2.58-.13a37.8 37.8 0 0 1 4.9-5.36c4.43-3.84 8.66-7.47 8.36-13.2-.23-4.3-3.95-7.44-9.43-7.15ZM87.63 10.36c-2.55-.14-5.17 1.7-6.65 3.47-1.3-1.9-3.7-4.02-6.25-4.15-5.48-.29-9.2 2.86-9.43 7.16-.3 5.72 3.93 9.35 8.36 13.19 1.6 1.32 4.55 4.64 4.9 5.36.35.7 2.06.82 2.58.13.51-.7 3.7-3.67 5.42-4.82 4.81-3.35 9.4-6.52 9.7-12.24.22-4.3-3.15-7.82-8.63-8.1Z" fill="#FF5353" fill-opacity=".8"/>`,robocop:(e,t)=>`<rect x="7" y="16" width="91" height="16" rx="4" fill="#000" fill-opacity=".8"/><mask id="eyesRobocop-a" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="7" y="16" width="91" height="16"><rect x="7" y="16" width="91" height="16" rx="4" fill="#fff"/></mask><g mask="url(#eyesRobocop-a)" fill-rule="evenodd" clip-rule="evenodd" fill="#fff" fill-opacity=".8"><path d="M76 7h18L82 37H64L76 7ZM52 7h9L49 37h-9L52 7Z"/></g>`,round:(e,t)=>`<g fill="#fff"><circle cx="24" cy="30" r="6"/><circle cx="80" cy="30" r="6"/></g>`,roundFrame01:(e,t)=>`<rect y="12" width="104" height="32" rx="16" fill="#000" fill-opacity=".8"/><rect x="24" y="22" width="10" height="12" rx="2" fill="#F4F4F4"/><rect x="70" y="22" width="10" height="12" rx="2" fill="#F4F4F4"/>`,roundFrame02:(e,t)=>`<rect y="11" width="104" height="34" rx="17" fill="#000" fill-opacity=".8"/><circle cx="29" cy="28" r="13" fill="#F1EEDA"/><circle cx="75" cy="28" r="13" fill="#F1EEDA"/><rect x="24" y="23" width="10" height="10" rx="2" fill="#000" fill-opacity=".8"/><rect x="70" y="23" width="10" height="10" rx="2" fill="#000" fill-opacity=".8"/>`,sensor:(e,t)=>`<path d="M28 44a20 20 0 0 0 19.9-18h41.52a5 5 0 1 0 0-4H47.9A20 20 0 1 0 28 44Z" fill="#000" fill-opacity=".2"/><circle cx="94" cy="24" r="2" fill="#fff"/><circle cx="28" cy="24" r="16" fill="#000" fill-opacity=".6"/><circle cx="34" cy="16" r="3" fill="#fff"/>`,shade01:(e,t)=>`<path d="M96 2H8c-4.5 0-8 3.5-8 8.03V28c0 4.5 3.5 8 8 8h13c8 0 11 8 18 8h27c7 0 9-8 17-8h13c4.5 0 8-3.5 8-8V10c0-4.5-3.5-8-8-8Z" fill="#000" fill-opacity=".8"/><path d="M87 14H17c-3.5 0-5 3-5 5v2c0 2 1.5 5 5 5h12c6 0 11.62 8 17 8h14c5.38 0 9-8 15-8h12c3.5 0 5-3 5-5v-2c0-2-1.5-5-5-5Z" fill="#FF3D3D"/><path d="M22.44 36.09 37.26 2h11L31.4 40.78l-.76-.58c-2.38-1.82-4.83-3.69-8.2-4.11ZM11.48 36 26.26 2h4L15.48 36h-4Z" fill="#fff" fill-opacity=".2"/>`},LC=t({eyes:()=>IC,mouth:()=>FC});function RC({prng:e,group:t,values:n=[]}){let r=LC,i=e.pick(n);if(i&&r[t][i])return{name:i,value:r[t][i]}}function zC({prng:e,options:t}){return{mouth:RC({prng:e,group:`mouth`,values:t.mouth}),eyes:RC({prng:e,group:`eyes`,values:t.eyes})}}function BC({prng:e,options:t}){return{}}var VC={$schema:`http://json-schema.org/draft-07/schema#`,properties:{backgroundColor:{type:`array`,items:{type:`string`,pattern:`^(transparent|[a-fA-F0-9]{6})$`},default:[`ffb300`,`1e88e5`,`546e7a`,`6d4c41`,`00acc1`,`f4511e`,`5e35b1`,`43a047`,`757575`,`3949ab`,`039be5`,`7cb342`,`c0ca33`,`fb8c00`,`d81b60`,`8e24aa`,`e53935`,`00897b`,`fdd835`]},eyes:{type:`array`,items:{type:`string`,enum:[`bulging`,`dizzy`,`eva`,`frame1`,`frame2`,`glow`,`happy`,`hearts`,`robocop`,`round`,`roundFrame01`,`roundFrame02`,`sensor`,`shade01`]},default:[`bulging`,`dizzy`,`eva`,`frame1`,`frame2`,`glow`,`happy`,`hearts`,`robocop`,`round`,`roundFrame01`,`roundFrame02`,`sensor`,`shade01`]},mouth:{type:`array`,items:{type:`string`,enum:[`bite`,`diagram`,`grill01`,`grill02`,`grill03`,`smile01`,`smile02`,`square01`,`square02`]},default:[`bite`,`diagram`,`grill01`,`grill02`,`grill03`,`smile01`,`smile02`,`square01`,`square02`]}}},HC=t({create:()=>WC,meta:()=>UC,schema:()=>VC}),UC={title:`Bottts`,creator:`Pablo Stanley`,source:`https://bottts.com/`,homepage:`https://twitter.com/pablostanley`,license:{name:`Free for personal and commercial use`,url:`https://bottts.com/`}},WC=({prng:e,options:t})=>{let n=zC({prng:e,options:t}),r=BC({prng:e,options:t});return{attributes:{viewBox:`0 0 120 120`,fill:`none`,"shape-rendering":`auto`},body:`<g transform="translate(22 68)">${n.mouth?.value(n,r)??``}</g><g transform="translate(8 20)">${n.eyes?.value(n,r)??``}</g>`,extra:()=>({...Object.entries(n).reduce((e,[t,n])=>(e[t]=n?.name,e),{}),...Object.entries(r).reduce((e,[t,n])=>(e[`${t}Color`]=n,e),{})})}},GC=`most-avatar:`,KC=[`mint`,`violet`,`ocean`,`ember`,`sage`,`dusk`];function qC(e){return`${GC}${e}`}function JC(e){return`/avatars/default/${e}.svg`}function YC(e){if(typeof e!=`string`||!e.startsWith(`most-avatar:`))return``;let t=e.slice(12);return KC.includes(t)?t:``}function XC(e){return!!YC(e)}function ZC(e){return PC(HC,{seed:`most.box@`+e,flip:!0,backgroundType:[`gradientLinear`]}).toDataUri()}function QC(e,t){let n=YC(t);return n?JC(n):typeof t==`string`&&t.startsWith(`most-avatar:`)?e?ZC(e):`/avatar.png`:t||(e?ZC(e):`/avatar.png`)}function $C(){let{t:e}=ql(),t=zS(e=>e.addToast),n=JS(e=>e.showLoginModal),r=JS(e=>e.closeLoginModal),i=JS(e=>e.loginUsername),a=JS(e=>e.loginPassword),o=JS(e=>e.showPassword),s=JS(e=>e.loginPreviewAddress),c=JS(e=>e.hasPreviewedAvatar),l=JS(e=>e.loginLoading),u=JS(e=>e.loginError),d=JS(e=>e.setLoginUsername),f=JS(e=>e.setLoginPassword),p=JS(e=>e.togglePassword),m=JS(e=>e.previewLoginIdentity),h=JS(e=>e.loginUser);if(!n)return null;let g=s?`${s.slice(0,6)}...${s.slice(-4)}`:`Most People`;function _(){let n=h();n&&t(e(`login.toast.signedIn`,{username:n.username}),`success`)}return(0,qs.createPortal)((0,X.jsx)(iC,{onClose:r,className:`login-modal-overlay`,children:(0,X.jsxs)(`form`,{className:`login-modal`,onSubmit:e=>{e.preventDefault(),_()},children:[(0,X.jsxs)(`div`,{className:`login-modal-header`,children:[(0,X.jsx)(`h3`,{children:e(`login.title`)}),(0,X.jsx)(`button`,{className:`login-modal-close`,onClick:r,type:`button`,children:(0,X.jsx)(mu,{size:18})})]}),(0,X.jsxs)(`div`,{className:`login-modal-body`,children:[(0,X.jsx)(`img`,{className:`login-avatar-preview`,src:s?QC(s):`/avatar.png`,alt:`avatar`}),(0,X.jsx)(`p`,{className:`login-tip`,children:g}),u&&(0,X.jsx)(`p`,{className:`login-error`,children:e(u)}),(0,X.jsx)(`input`,{type:`text`,className:`input input-compact`,placeholder:e(`login.username.placeholder`),value:i,onChange:e=>d(e.target.value),autoFocus:!0}),(0,X.jsxs)(`div`,{className:`login-password-wrapper`,children:[(0,X.jsx)(`input`,{type:o?`text`:`password`,className:`input input-compact`,placeholder:e(`login.password.placeholder`),value:a,onChange:e=>f(e.target.value)}),(0,X.jsx)(`button`,{className:`login-password-toggle`,type:`button`,onClick:p,children:o?(0,X.jsx)(lu,{size:16}):(0,X.jsx)(uu,{size:16})})]}),(0,X.jsxs)(`div`,{className:`login-buttons-row`,children:[(0,X.jsx)(`button`,{className:`btn btn-secondary`,onClick:m,disabled:c||l,type:`button`,children:e(c?`login.previewed`:`login.preview`)}),(0,X.jsx)(`button`,{className:`btn btn-primary`,disabled:!c||l,type:`submit`,children:e(l?`login.loading`:`common.confirm`)})]})]})]})}),document.body)}function ew(e){return e.trim().replace(/\/+$/,``)}function tw(e){try{let t=new URL(e);return t.protocol===`http:`||t.protocol===`https:`}catch{return!1}}function nw({variant:e=`page`}){let t=zS(e=>e.checkBackend),n=zS(e=>e.addToast),r=bS(),[i,a]=(0,Y.useState)(r),[o,s]=(0,Y.useState)(xS()),[c,l]=(0,Y.useState)(!1),{t:u}=ql(),d=u(r?`remote.title.edit`:`remote.title.connect`),f=u(`remote.hint`),p=e===`page`;async function m(){let e=ew(i);if(!tw(e)){n(u(`remote.error.invalidUrl`),`warning`);return}l(!0);try{let{ok:t,reason:r}=await OS({url:e,invite:o});if(!t){n(u(r===`http`?`remote.error.http`:r===`ws`?`remote.error.ws`:`remote.error.failed`),`error`);return}_S({url:e,invite:o}),a(e),hS(e),zS.setState({hasBackend:!0}),n(u(`remote.connected`),`success`)}catch{n(u(`remote.connectFailed`),`error`)}finally{l(!1)}}async function h(){vS(),a(``),s(``),await t(),n(u(`remote.cleared`),`success`)}return(0,X.jsxs)(`div`,{className:`remote-node-connect remote-node-connect-${e}`,children:[p?(0,X.jsxs)(`div`,{className:`remote-node-connect-heading`,children:[(0,X.jsx)(fu,{size:20}),(0,X.jsxs)(`div`,{children:[(0,X.jsx)(`h2`,{children:d}),(0,X.jsx)(`p`,{children:f})]})]}):(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(`label`,{className:`drawer-label`,children:[(0,X.jsx)(fu,{size:14,className:`icon-inline`}),d]}),(0,X.jsx)(`p`,{className:`drawer-hint drawer-hint-spaced`,children:f})]}),(0,X.jsxs)(`div`,{className:`remote-node-form`,children:[(0,X.jsx)(`input`,{className:`input input-compact`,placeholder:`https://node.example.com`,value:i,onChange:e=>a(e.target.value)}),(0,X.jsx)(`input`,{className:`input input-compact`,placeholder:u(`remote.invite.placeholder`),value:o,onChange:e=>s(e.target.value)}),(0,X.jsxs)(`button`,{className:`btn btn-primary btn-full`,onClick:m,disabled:c||!i.trim(),children:[(0,X.jsx)(fu,{size:16}),u(c?`remote.connecting`:r?`remote.updateConnection`:`remote.connectNode`)]}),r&&(0,X.jsxs)(`button`,{className:`btn btn-secondary btn-full`,onClick:h,disabled:c,children:[(0,X.jsx)(pu,{size:16}),u(`remote.disconnect`)]})]}),r&&(0,X.jsx)(`p`,{className:p?`remote-node-status`:`drawer-status`,children:u(`remote.currentNode`,{url:r})})]})}function rw(){let e=zS(e=>e.showConnectModal),t=zS(e=>e.closeConnectModal),{t:n}=ql();return e?(0,qs.createPortal)((0,X.jsx)(iC,{onClose:t,children:(0,X.jsxs)(`div`,{className:`connect-modal`,children:[(0,X.jsxs)(`div`,{className:`connect-modal-header`,children:[(0,X.jsx)(`h3`,{children:n(`connectModal.title`)}),(0,X.jsx)(`button`,{className:`connect-modal-close`,onClick:t,type:`button`,children:(0,X.jsx)(mu,{size:18})})]}),(0,X.jsx)(`div`,{className:`connect-modal-body`,children:(0,X.jsx)(nw,{variant:`drawer`})})]})}),document.body):null}function iw(e,t){return Ag(gp([Q(e.danger),Kp(`mostbox:user-sync:v1:${e.address.toLowerCase()}:${t}`)]))}function aw(e){return{syncTopicKey:iw(e,`topic`),syncCipherKey:iw(e,`cipher`),syncMacKey:iw(e,`mac`)}}function ow(e){return fS.post(`/api/user/sync/start`,{json:aw(e)}).json()}function sw(){let{t:e}=ql(),t=Nc({select:e=>e.pathname}),n=t===`/demo`||t.startsWith(`/demo/`),r=zS(e=>e.checkBackend),i=zS(e=>e.hasBackend),a=zS(e=>e.initializeLocalData),o=JS(e=>e.initializeUser),s=JS(e=>e.identity),c=zS(e=>e.loadUserNotes),l=zS(e=>e.resetAppState),u=zS(e=>e.addToast),d=zS(e=>e.toasts),f=zS(e=>e.removeToast),p=(0,Y.useRef)(``);return(0,Y.useEffect)(()=>{n||(a(),o(),r())},[r,a,o,n]),(0,Y.useEffect)(()=>{n||(s?c(s.address):l())},[s?.address,n,c,l]),(0,Y.useEffect)(()=>{if(n||i!==!0||!s){p.current=``;return}let t=s.address.toLowerCase();p.current!==t&&(p.current=t,ow(s).catch(async t=>{p.current=``,u(await mS(t,e(`appGlobals.syncStartFailed`)),`error`)}))},[u,i,s,s?.address,n,e]),n?null:(0,X.jsxs)(X.Fragment,{children:[d.map((e,t)=>(0,X.jsx)(aC,{message:e.message,type:e.type,onDone:()=>f(e.id),index:t},e.id)),(0,X.jsx)($C,{}),(0,X.jsx)(rw,{})]})}var cw=uc({head:()=>({meta:[{charSet:`utf-8`},{name:`viewport`,content:`width=device-width, initial-scale=1.0`},{name:`theme-color`,content:`#5e6ad2`},{title:`MostBox`},{name:`description`,content:Vl(`portal.feature.app.hero`)}],links:[{rel:`icon`,href:`/logo.svg`,type:`image/svg+xml`}]}),component:lw,notFoundComponent:hu});function lw(){return(0,X.jsx)(uw,{children:(0,X.jsx)(Kl,{children:(0,X.jsxs)(Xl,{children:[(0,X.jsx)(os,{children:(0,X.jsx)(sw,{})}),(0,X.jsx)(dw,{}),(0,X.jsx)(wc,{})]})})})}function uw({children:e}){return(0,X.jsxs)(`html`,{lang:`zh-CN`,suppressHydrationWarning:!0,"data-scroll-behavior":`smooth`,children:[(0,X.jsxs)(`head`,{children:[(0,X.jsx)(Rc,{}),(0,X.jsx)(`script`,{dangerouslySetInnerHTML:{__html:`
|
|
16
|
+
(function() {
|
|
17
|
+
var theme = localStorage.getItem('theme');
|
|
18
|
+
if (theme === 'dark' || (!theme && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
|
|
19
|
+
document.documentElement.setAttribute('data-theme', 'dark');
|
|
20
|
+
}
|
|
21
|
+
var locale = localStorage.getItem('mostbox.locale');
|
|
22
|
+
var supportedLocales = ['zh-CN', 'zh-TW', 'en'];
|
|
23
|
+
var normalizedLocale = supportedLocales.indexOf(locale) >= 0 ? locale : 'zh-CN';
|
|
24
|
+
document.documentElement.setAttribute('lang', normalizedLocale);
|
|
25
|
+
document.documentElement.setAttribute('data-locale', normalizedLocale);
|
|
26
|
+
})();
|
|
27
|
+
`}})]}),(0,X.jsxs)(`body`,{children:[e,(0,X.jsx)(zc,{})]})]})}function dw(){return(0,X.jsx)(`script`,{dangerouslySetInnerHTML:{__html:`
|
|
28
|
+
window.onerror = function(message, source, lineno, colno, error) {
|
|
29
|
+
console.error('[Global Error]', { message, source, lineno, colno, error });
|
|
30
|
+
};
|
|
31
|
+
window.onunhandledrejection = function(event) {
|
|
32
|
+
console.error('[Unhandled Promise Rejection]', event.reason);
|
|
33
|
+
};
|
|
34
|
+
`}})}var fw=dc(`/`)({}),pw=dc(`/web3/`)({}),mw=dc(`/profile/`)({head:()=>({meta:[{title:Vl(`profile.meta.title`)},{name:`description`,content:Vl(`profile.meta.desc`)}]})}),hw=dc(`/ping/`)({head:()=>({meta:[{title:Vl(`ping.meta.title`)},{name:`description`,content:Vl(`ping.meta.desc`)}]})}),gw=dc(`/note/`)({validateSearch:e=>({cid:typeof e.cid==`string`?e.cid:void 0,mode:e.mode===`edit`?`edit`:void 0})}),_w=`modulepreload`,vw=function(e){return`/`+e},yw={},bw=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=vw(t,n),t in yw)return;yw[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:_w,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},xw=dc(`/game/`)({component:hc(()=>bw(()=>import(`./game-Bvz4dspe.js`),__vite__mapDeps([0,1])),`component`)}),Sw=dc(`/download/`)({head:()=>({meta:[{title:Vl(`download.meta.title`)},{name:`description`,content:Vl(`download.meta.desc`)}]})}),Cw=dc(`/demo/`)({}),ww=dc(`/chat/`)({}),Tw=dc(`/app/`)({}),Ew=dc(`/admin/`)({}),Dw=dc(`/game/zhajinhua/`)({}),Ow=dc(`/game/gandengyan/`)({}),kw=dc(`/chat/join/`)({validateSearch:e=>({token:typeof e.token==`string`?e.token:void 0,pub:typeof e.pub==`string`?e.pub:void 0,fixture:typeof e.fixture==`string`?e.fixture:void 0})}),Aw=fw.update({id:`/`,path:`/`,getParentRoute:()=>cw}).lazy(()=>bw(()=>import(`./index.lazy-BFnOyQFj.js`).then(e=>e.Route),__vite__mapDeps([2,1,3,4,5,6,7,8,9,10,11,12,13,14]))),jw=pw.update({id:`/web3/`,path:`/web3/`,getParentRoute:()=>cw}).lazy(()=>bw(()=>import(`./index.lazy-7n1Q-NrA.js`).then(e=>e.Route),__vite__mapDeps([15,1,16,4,17,6,18,19,20,21,22,5,23,24,10]))),Mw=mw.update({id:`/profile/`,path:`/profile/`,getParentRoute:()=>cw}).lazy(()=>bw(()=>import(`./index.lazy-BvY50KVz.js`).then(e=>e.Route),__vite__mapDeps([25,1,4,6,18,19,20,26,27,23,24,28,13,11,12,5,14]))),Nw=hw.update({id:`/ping/`,path:`/ping/`,getParentRoute:()=>cw}).lazy(()=>bw(()=>import(`./index.lazy-C3cek3Gn.js`).then(e=>e.Route),__vite__mapDeps([29,1,30,8,31,32,33,34,35,11,12,4,5,13,14]))),Pw=gw.update({id:`/note/`,path:`/note/`,getParentRoute:()=>cw}).lazy(()=>bw(()=>import(`./index.lazy-Cpr1kApf.js`).then(e=>e.Route),__vite__mapDeps([36,1,16,4,37,38,39,21,9,40,26,33,41,17,42,30,5,43]))),Fw=xw.update({id:`/game/`,path:`/game/`,getParentRoute:()=>cw}),Iw=Sw.update({id:`/download/`,path:`/download/`,getParentRoute:()=>cw}).lazy(()=>bw(()=>import(`./index.lazy-CLpPkdy1.js`).then(e=>e.Route),__vite__mapDeps([44,1,30,45,5,28,4,13,46]))),Lw=Cw.update({id:`/demo/`,path:`/demo/`,getParentRoute:()=>cw}).lazy(()=>bw(()=>import(`./index.lazy-5jq6EFXa.js`).then(e=>e.Route),__vite__mapDeps([47,1,4,37,42,30,45,38,39,48,49,31,8,50,3,51,5,33,22,23,24,35,12,13,14,41,17,43]))),Rw=ww.update({id:`/chat/`,path:`/chat/`,getParentRoute:()=>cw}).lazy(()=>bw(()=>import(`./index.lazy-5Q6GuMNT.js`).then(e=>e.Route),__vite__mapDeps([52,1,16,4,38,49,8,40,50,3,51,5,39,31,33,53,43,14,54,55]))),zw=Tw.update({id:`/app/`,path:`/app/`,getParentRoute:()=>cw}).lazy(()=>bw(()=>import(`./index.lazy-CuwLZiUK.js`).then(e=>e.Route),__vite__mapDeps([56,1,16,4,37,24,5,39,49,48,31,40,33,53,43,46]))),Bw=Ew.update({id:`/admin/`,path:`/admin/`,getParentRoute:()=>cw}).lazy(()=>bw(()=>import(`./index.lazy-DDc3Ylgf.js`).then(e=>e.Route),__vite__mapDeps([57,1,19,42,5,39,7,26,27,35,28,4,13,46]))),Vw=Dw.update({id:`/game/zhajinhua/`,path:`/game/zhajinhua/`,getParentRoute:()=>cw}).lazy(()=>bw(()=>import(`./index.lazy-Dg3aqOss.js`).then(e=>e.Route),__vite__mapDeps([58,1,16,4,24,32,59,43,54,55,60]))),Hw=Ow.update({id:`/game/gandengyan/`,path:`/game/gandengyan/`,getParentRoute:()=>cw}).lazy(()=>bw(()=>import(`./index.lazy-C0Kn_amZ.js`).then(e=>e.Route),__vite__mapDeps([61,1,16,4,24,32,34,59,43,54,55,62]))),Uw={IndexRoute:Aw,AdminIndexRoute:Bw,AppIndexRoute:zw,ChatIndexRoute:Rw,DemoIndexRoute:Lw,DownloadIndexRoute:Iw,GameIndexRoute:Fw,NoteIndexRoute:Pw,PingIndexRoute:Nw,ProfileIndexRoute:Mw,Web3IndexRoute:jw,ChatJoinIndexRoute:kw.update({id:`/chat/join/`,path:`/chat/join/`,getParentRoute:()=>cw}).lazy(()=>bw(()=>import(`./index.lazy-B_oPp6qK.js`).then(e=>e.Route),__vite__mapDeps([63,1,16,4,51,20,55]))),GameGandengyanIndexRoute:Hw,GameZhajinhuaIndexRoute:Vw},Ww=cw._addFileChildren(Uw);function Gw(){return kc({routeTree:Ww,defaultPreload:`intent`,scrollRestoration:!0,trailingSlash:`always`})}async function Kw(){let e=await Gw(),t=[];return window.__TSS_START_OPTIONS__={serializationAdapters:t},t.push(Go),e.options.serializationAdapters&&t.push(...e.options.serializationAdapters),e.update({basepath:``,serializationAdapters:t}),e.stores.matchesId.get().length||await Jo(e),e}var qw=Kw;async function Jw(){let e=await qw();return window.$_TSR?.h(),e}var Yw;function Xw(){return Yw||=Jw(),(0,X.jsx)(ts,{promise:Yw,children:e=>(0,X.jsx)(Mc,{router:e})})}var Zw=d();(0,Y.startTransition)(()=>{(0,Zw.hydrateRoot)(document,(0,X.jsx)(Y.StrictMode,{children:(0,X.jsx)(Xw,{})}))});export{Ml as $,Px as A,Ed as B,SS as C,Gx as D,Mx as E,bx as F,uu as G,dd as H,_x as I,ou as J,lu as K,Q as L,Nx as M,Ax as N,Ux as O,Wx as P,jl as Q,kd as R,CS as S,yS as T,mu as U,Td as V,fu as W,Vl as X,Ll as Y,ql as Z,fS as _,QC as a,mS as b,uC as c,aC as d,Nc as et,iC as f,zS as g,BS as h,KC as i,Ws as it,jx as j,Fx as k,sC as l,JS as m,rw as n,ac as nt,qC as o,rC as p,su as q,$C as r,Gs as rt,XC as s,bw as t,mc as tt,oC as u,OS as v,wS as w,pS as x,_S as y,Ad as z};
|