home-atom 1.0.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.
Files changed (169) hide show
  1. package/README.md +25 -0
  2. package/bin/home-atom.js +135 -0
  3. package/dist/client/.vite/manifest.json +184 -0
  4. package/dist/client/_next/static/chunks/app-top-nav-Dh0jEt8u.js +1 -0
  5. package/dist/client/_next/static/chunks/chevron-left-Dn3noAqV.js +1 -0
  6. package/dist/client/_next/static/chunks/framework-BQUlGUOV.js +9 -0
  7. package/dist/client/_next/static/chunks/hls-CgexCc5Z.js +40 -0
  8. package/dist/client/_next/static/chunks/house-DQz6VeTk.js +1 -0
  9. package/dist/client/_next/static/chunks/index-hn3AiVww.js +33 -0
  10. package/dist/client/_next/static/chunks/layout-segment-context-DRM8YCgm.js +1 -0
  11. package/dist/client/_next/static/chunks/manage-profiles-modal-Doi6QM4e.js +1 -0
  12. package/dist/client/_next/static/chunks/navigation-errors-C_V42-00.js +1 -0
  13. package/dist/client/_next/static/chunks/netflix-browser-L_Vb9wXK.js +2 -0
  14. package/dist/client/_next/static/chunks/playback-activity-Dug3BRYr.js +1 -0
  15. package/dist/client/_next/static/chunks/playback-activity-track-switcher-CbO6kl8K.js +1 -0
  16. package/dist/client/_next/static/chunks/rolldown-runtime-QTnfLwEv.js +1 -0
  17. package/dist/client/_next/static/chunks/spotify-app-f93K4FG_.js +1 -0
  18. package/dist/client/_next/static/chunks/step-forward-CV8I5pPb.js +1 -0
  19. package/dist/client/_next/static/chunks/storefront-C_nmcuvH.js +1 -0
  20. package/dist/client/_next/static/chunks/streamed-icons-DwsKSgMb.js +1 -0
  21. package/dist/client/_next/static/css/index.BGXy8e6j.css +1 -0
  22. package/dist/client/_next/static/css/layout.AKSLtSR6.css +1 -0
  23. package/dist/client/_next/static/css/layout.D8T68cCD.css +1 -0
  24. package/dist/client/_next/static/css/manage-profiles-modal.BAVyxRRR.css +1 -0
  25. package/dist/client/_next/static/e1ce9af7-d770-43d6-845a-511443f19971/_buildManifest.js +1 -0
  26. package/dist/client/_next/static/e1ce9af7-d770-43d6-845a-511443f19971/_ssgManifest.js +1 -0
  27. package/dist/client/_next/static/media/roboto-cyrillic-ext-wght-normal.BCp_3N7R.woff2 +0 -0
  28. package/dist/client/_next/static/media/roboto-cyrillic-wght-normal.fOt7epNf.woff2 +0 -0
  29. package/dist/client/_next/static/media/roboto-greek-ext-wght-normal.Bgw4czJT.woff2 +0 -0
  30. package/dist/client/_next/static/media/roboto-greek-wght-normal.DlT9XTxE.woff2 +0 -0
  31. package/dist/client/_next/static/media/roboto-latin-ext-wght-normal.DYIxWhlt.woff2 +0 -0
  32. package/dist/client/_next/static/media/roboto-latin-wght-normal.ccAYIvAh.woff2 +0 -0
  33. package/dist/client/_next/static/media/roboto-math-wght-normal.4a3xuzGk.woff2 +0 -0
  34. package/dist/client/_next/static/media/roboto-symbols-wght-normal.B7iHSfaG.woff2 +0 -0
  35. package/dist/client/_next/static/media/roboto-vietnamese-wght-normal._f1XEJpo.woff2 +0 -0
  36. package/dist/client/icons/home.ico +0 -0
  37. package/dist/client/icons/keyboard.ico +0 -0
  38. package/dist/client/icons/netflix.ico +0 -0
  39. package/dist/client/icons/remote-screen.ico +0 -0
  40. package/dist/client/icons/spotify.ico +0 -0
  41. package/dist/client/vinext-client-entry-manifest.json +3 -0
  42. package/dist/server/BUILD_ID +1 -0
  43. package/dist/server/__vite_rsc_assets_manifest.js +162 -0
  44. package/dist/server/_next/static/app-page-cache-DcrtN14Y.js +1 -0
  45. package/dist/server/_next/static/app-page-cache-render-DoCquoNb.js +1 -0
  46. package/dist/server/_next/static/app-prerender-endpoints-rDLH8gfm.js +1 -0
  47. package/dist/server/_next/static/app-route-handler-dispatch-Be2YIqVp.js +1 -0
  48. package/dist/server/_next/static/app-static-generation-BX8cz43B.js +1 -0
  49. package/dist/server/_next/static/app-top-nav-aGPkB57A.js +1 -0
  50. package/dist/server/_next/static/automation-UGP78ei5.js +172 -0
  51. package/dist/server/_next/static/automation-tAN_1u1H.js +118 -0
  52. package/dist/server/_next/static/base-path-Cmiu3HvG.js +1 -0
  53. package/dist/server/_next/static/cache-headers-BQ-QuzWN.js +1 -0
  54. package/dist/server/_next/static/catalog-BS93IoWO.js +1 -0
  55. package/dist/server/_next/static/css/index.BGXy8e6j.css +1 -0
  56. package/dist/server/_next/static/css/layout.AKSLtSR6.css +1 -0
  57. package/dist/server/_next/static/css/layout.D8T68cCD.css +1 -0
  58. package/dist/server/_next/static/database-BNnYfHmT.js +114 -0
  59. package/dist/server/_next/static/db-BE1J0NNS.js +98 -0
  60. package/dist/server/_next/static/downloader-DgnjNL5T.js +21 -0
  61. package/dist/server/_next/static/framework~index-B2E_Di_-.js +18 -0
  62. package/dist/server/_next/static/framework~index~layout~layout~page~page~page~layout~page~app-page-cache-render~app-page-cac~nvd6h53m-ydvR7YSg.js +1 -0
  63. package/dist/server/_next/static/http-B2HyuWoI.js +1 -0
  64. package/dist/server/_next/static/input-platform-C0756QEt.js +1 -0
  65. package/dist/server/_next/static/instrumentation-BV3gg-L-.js +1 -0
  66. package/dist/server/_next/static/isr-decision-D1zHgPSI.js +1 -0
  67. package/dist/server/_next/static/layout-ClEWbCcj.js +1 -0
  68. package/dist/server/_next/static/layout-Ds3pFa6r.js +1 -0
  69. package/dist/server/_next/static/media/roboto-cyrillic-ext-wght-normal.BCp_3N7R.woff2 +0 -0
  70. package/dist/server/_next/static/media/roboto-cyrillic-wght-normal.fOt7epNf.woff2 +0 -0
  71. package/dist/server/_next/static/media/roboto-greek-ext-wght-normal.Bgw4czJT.woff2 +0 -0
  72. package/dist/server/_next/static/media/roboto-greek-wght-normal.DlT9XTxE.woff2 +0 -0
  73. package/dist/server/_next/static/media/roboto-latin-ext-wght-normal.DYIxWhlt.woff2 +0 -0
  74. package/dist/server/_next/static/media/roboto-latin-wght-normal.ccAYIvAh.woff2 +0 -0
  75. package/dist/server/_next/static/media/roboto-math-wght-normal.4a3xuzGk.woff2 +0 -0
  76. package/dist/server/_next/static/media/roboto-symbols-wght-normal.B7iHSfaG.woff2 +0 -0
  77. package/dist/server/_next/static/media/roboto-vietnamese-wght-normal._f1XEJpo.woff2 +0 -0
  78. package/dist/server/_next/static/netflix-page-BRbORN1F.js +1 -0
  79. package/dist/server/_next/static/page-C457kN_n.js +1 -0
  80. package/dist/server/_next/static/page-Cs-erYTy.js +1 -0
  81. package/dist/server/_next/static/page-DlBGATQp.js +1 -0
  82. package/dist/server/_next/static/page-DlRXyzSQ.js +1 -0
  83. package/dist/server/_next/static/providers-B3YELr_F.js +108 -0
  84. package/dist/server/_next/static/providers-CMBIwNGs.js +1 -0
  85. package/dist/server/_next/static/request-context-C1ZJzkex.js +1 -0
  86. package/dist/server/_next/static/request-profile-B1yGQ0l6.js +1 -0
  87. package/dist/server/_next/static/rolldown-runtime-DaDcL9Zw.js +1 -0
  88. package/dist/server/_next/static/route-96DdgJBs.js +1 -0
  89. package/dist/server/_next/static/route-B0WNLJZp.js +1 -0
  90. package/dist/server/_next/static/route-BBmE0xf12.js +1 -0
  91. package/dist/server/_next/static/route-BPcAdbz_.js +1 -0
  92. package/dist/server/_next/static/route-BWk9YK7r.js +1 -0
  93. package/dist/server/_next/static/route-BdG5ojMj2.js +1 -0
  94. package/dist/server/_next/static/route-BovNctFc.js +1 -0
  95. package/dist/server/_next/static/route-C2LuSjoh.js +1 -0
  96. package/dist/server/_next/static/route-C74RA7va.js +1 -0
  97. package/dist/server/_next/static/route-CCUsQ7AG.js +1 -0
  98. package/dist/server/_next/static/route-CHJzaQu2.js +73 -0
  99. package/dist/server/_next/static/route-CN6VdJwN.js +1 -0
  100. package/dist/server/_next/static/route-CNNiXZoM2.js +1 -0
  101. package/dist/server/_next/static/route-CVPPmUto.js +1 -0
  102. package/dist/server/_next/static/route-CeVsDcbj2.js +1 -0
  103. package/dist/server/_next/static/route-Cim7D4XQ.js +1 -0
  104. package/dist/server/_next/static/route-CjUCKwSj2.js +1 -0
  105. package/dist/server/_next/static/route-CkH7Cg-p.js +1 -0
  106. package/dist/server/_next/static/route-Cn40NftM.js +1 -0
  107. package/dist/server/_next/static/route-DAyF4BHS.js +1 -0
  108. package/dist/server/_next/static/route-DWAMZHLa.js +1 -0
  109. package/dist/server/_next/static/route-DXTJyFWD.js +1 -0
  110. package/dist/server/_next/static/route-D_G2SOlz.js +1 -0
  111. package/dist/server/_next/static/route-Dbs39TkC.js +1 -0
  112. package/dist/server/_next/static/route-DiT9UYUd.js +1 -0
  113. package/dist/server/_next/static/route-DslPFTAK.js +1 -0
  114. package/dist/server/_next/static/route-UWQN8uYr.js +1 -0
  115. package/dist/server/_next/static/route-ipFkK3iA.js +1 -0
  116. package/dist/server/_next/static/route-jMq6H_yh.js +1 -0
  117. package/dist/server/_next/static/route-mzLdjDCs2.js +1 -0
  118. package/dist/server/_next/static/route-vD15s2A8.js +1 -0
  119. package/dist/server/_next/static/route-xtz48fti.js +1 -0
  120. package/dist/server/_next/static/route-zazqen-A2.js +1 -0
  121. package/dist/server/_next/static/seed-cache-oCd9Lfdw.js +1 -0
  122. package/dist/server/_next/static/server-CS40XqUP.js +1 -0
  123. package/dist/server/_next/static/storage-D1zF0J_t.js +288 -0
  124. package/dist/server/_next/static/streamer-B1PRR-dj.js +2 -0
  125. package/dist/server/_next/static/subtitles-DYBlMnha.js +2 -0
  126. package/dist/server/_next/static/title-progress-CQBrSxvN.js +1 -0
  127. package/dist/server/_next/static/unified-request-context-CgIMz2dD.js +1 -0
  128. package/dist/server/index.js +17 -0
  129. package/dist/server/prerendered-routes/404.html +2 -0
  130. package/dist/server/prerendered-routes/index.html +2 -0
  131. package/dist/server/prerendered-routes/index.rsc +13 -0
  132. package/dist/server/ssr/__vite_rsc_assets_manifest.js +162 -0
  133. package/dist/server/ssr/_next/static/app-elements-Psr6bSdJ.js +1 -0
  134. package/dist/server/ssr/_next/static/app-prefetch-fetch-queue-Dm_lGOGz.js +1 -0
  135. package/dist/server/ssr/_next/static/app-router-context-QPmikWPX.js +1 -0
  136. package/dist/server/ssr/_next/static/app-router-scroll-C0MNOLz-.js +1 -0
  137. package/dist/server/ssr/_next/static/app-top-nav-a5vUAoEs.js +1 -0
  138. package/dist/server/ssr/_next/static/base-path-DtcGyvwb.js +1 -0
  139. package/dist/server/ssr/_next/static/chevron-left-CkBJG8E2.js +1 -0
  140. package/dist/server/ssr/_next/static/css/refresh-cw.BAVyxRRR.css +1 -0
  141. package/dist/server/ssr/_next/static/default-global-error-B62cHCkh.js +31 -0
  142. package/dist/server/ssr/_next/static/error-boundary-C28whqLB.js +1 -0
  143. package/dist/server/ssr/_next/static/hls-CgexCc5Z.js +40 -0
  144. package/dist/server/ssr/_next/static/house-l1u9dUbj.js +1 -0
  145. package/dist/server/ssr/_next/static/layout-segment-context-DK0O-NeY.js +1 -0
  146. package/dist/server/ssr/_next/static/minimize-C9JLgte-.js +1 -0
  147. package/dist/server/ssr/_next/static/navigation-BCDRWdBm.js +1 -0
  148. package/dist/server/ssr/_next/static/navigation-context-state-BnWorqxb.js +1 -0
  149. package/dist/server/ssr/_next/static/navigation-errors-BRIEcp79.js +1 -0
  150. package/dist/server/ssr/_next/static/navigation-server-CCLiCOcy.js +1 -0
  151. package/dist/server/ssr/_next/static/netflix-browser-CMAehdwi.js +2 -0
  152. package/dist/server/ssr/_next/static/pin-BQre-tQY.js +1 -0
  153. package/dist/server/ssr/_next/static/playback-activity-D5TYX2Ae.js +1 -0
  154. package/dist/server/ssr/_next/static/refresh-cw-CWdWHjqY.js +1 -0
  155. package/dist/server/ssr/_next/static/rolldown-runtime-DSjMdhoD.js +1 -0
  156. package/dist/server/ssr/_next/static/slot-CE_M6qTT.js +1 -0
  157. package/dist/server/ssr/_next/static/spotify-app-CE-RaTjZ.js +1 -0
  158. package/dist/server/ssr/_next/static/storefront-C5NNzPMa.js +1 -0
  159. package/dist/server/ssr/_next/static/streamed-icons-D2p1hUS_.js +1 -0
  160. package/dist/server/ssr/_next/static/url-safety-CnwxMXYX.js +1 -0
  161. package/dist/server/ssr/index.js +3 -0
  162. package/dist/server/ssr/vinext-client-assets.js +1 -0
  163. package/dist/server/ssr/vinext-server.json +1 -0
  164. package/dist/server/vinext-client-assets.js +1 -0
  165. package/dist/server/vinext-externals.json +5 -0
  166. package/dist/server/vinext-prerender-paths.json +7 -0
  167. package/dist/server/vinext-prerender.json +219 -0
  168. package/dist/server/vinext-server.json +1 -0
  169. package/package.json +66 -0
@@ -0,0 +1 @@
1
+ import{n as e}from"./chevron-left-Dn3noAqV.js";var t=e(`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`}]]);export{t};
@@ -0,0 +1,33 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_next/static/chunks/layout-segment-context-DRM8YCgm.js","_next/static/chunks/rolldown-runtime-QTnfLwEv.js","_next/static/chunks/framework-BQUlGUOV.js","_next/static/chunks/navigation-errors-C_V42-00.js","_next/static/chunks/netflix-browser-L_Vb9wXK.js","_next/static/chunks/chevron-left-Dn3noAqV.js","_next/static/chunks/step-forward-CV8I5pPb.js","_next/static/chunks/playback-activity-Dug3BRYr.js","_next/static/chunks/manage-profiles-modal-Doi6QM4e.js","_next/static/css/manage-profiles-modal.BAVyxRRR.css","_next/static/chunks/spotify-app-f93K4FG_.js","_next/static/chunks/playback-activity-track-switcher-CbO6kl8K.js","_next/static/chunks/house-DQz6VeTk.js","_next/static/chunks/streamed-icons-DwsKSgMb.js","_next/static/chunks/app-top-nav-Dh0jEt8u.js","_next/static/chunks/storefront-C_nmcuvH.js"])))=>i.map(i=>d[i]);
2
+ import{n as e,r as t,t as n}from"./rolldown-runtime-QTnfLwEv.js";import{i as r,n as i,r as a,t as o}from"./framework-BQUlGUOV.js";import{a as s,c,i as l,l as u,n as d,o as f,r as p,t as m}from"./navigation-errors-C_V42-00.js";function h(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var g=Symbol.for(`vinext.navigationRuntime`),_=[`boundaries`,`defaults`,`interceptions`,`interceptionsBySlotId`,`layouts`,`pages`,`rootBoundaries`,`routeHandlers`,`routes`,`slotBindings`,`slots`,`templates`];function v(){return{bootstrap:{routeManifest:null,rsc:void 0},functions:{}}}function y(){return window}function b(e){return h(e)?O(Reflect.get(e,`clearNavigationCaches`))&&O(Reflect.get(e,`commitHashNavigation`))&&O(Reflect.get(e,`navigateExternal`))&&O(Reflect.get(e,`navigate`))&&O(Reflect.get(e,`getPrefetchRouterState`))&&O(Reflect.get(e,`notifyLinkNavigationStart`))&&O(Reflect.get(e,`pingVisibleLinks`))&&O(Reflect.get(e,`preparePrefetchResponse`)):!1}function x(e){return typeof e==`string`||Array.isArray(e)&&e.length===2&&e[0]===3&&typeof e[1]==`string`}function ee(e){if(!h(e))return!1;let t=Reflect.get(e,`pathname`),n=Reflect.get(e,`searchParams`);return typeof t==`string`&&Array.isArray(n)&&n.every(e=>Array.isArray(e)&&e.length===2&&typeof e[0]==`string`&&typeof e[1]==`string`)}function te(e){return h(e)?Object.values(e).every(e=>typeof e==`string`||Array.isArray(e)&&e.every(e=>typeof e==`string`)):!1}function ne(e){if(!h(e))return!1;let t=Reflect.get(e,`done`),n=Reflect.get(e,`dynamicStaleTimeSeconds`),r=Reflect.get(e,`initialCacheKind`),i=Reflect.get(e,`nav`),a=Reflect.get(e,`params`),o=Reflect.get(e,`rsc`);return(t===void 0||typeof t==`boolean`)&&(n===void 0||typeof n==`number`&&Number.isFinite(n)&&n>=0)&&(r===void 0||r===`dynamic`||r===`static`)&&(i===void 0||ee(i))&&(a===void 0||te(a))&&Array.isArray(o)&&o.every(x)}function S(e){return Array.isArray(e)&&e.every(e=>typeof e==`string`)}function C(e){return e===null||typeof e==`string`}function w(e){return h(e)?typeof e.id==`string`&&typeof e.sourcePattern==`string`&&S(e.sourcePatternParts)&&typeof e.targetPattern==`string`&&S(e.targetPatternParts)&&typeof e.slotId==`string`&&C(e.ownerLayoutId)&&C(e.interceptingRouteId)&&C(e.targetRouteId):!1}function T(e){return Array.isArray(e)&&e.every(w)}function E(e){if(!h(e))return!1;let t=Reflect.get(e,`graphVersion`),n=Reflect.get(e,`segmentGraph`);if(typeof t!=`string`||!h(n))return!1;let r=Reflect.get(n,`interceptions`),i=Reflect.get(n,`interceptionsBySlotId`);if(!_.every(e=>Reflect.get(n,e)instanceof Map)||!(r instanceof Map)||!(i instanceof Map))return!1;for(let e of r.values())if(!w(e))return!1;for(let e of i.values())if(!T(e))return!1;return!0}function D(e){if(!h(e))return!1;let t=Reflect.get(e,`routeManifest`),n=Reflect.get(e,`rsc`);return(t===null||E(t))&&(n===void 0||ne(n))}function re(e){if(!h(e)||!(`bootstrap`in e)||!(`functions`in e))return!1;let{bootstrap:t,functions:n}=e;return D(t)&&b(n)}function O(e){return e===void 0||typeof e==`function`}function k(){let e=y();if(e===null)return null;let t=Reflect.get(e,g);return re(t)?t:null}function A(){let e=y();if(e===null)return v();let t=Reflect.get(e,g),n=re(t)?t:v();return Reflect.set(e,g,n),n}function j(e){let t=A();return t.bootstrap={...t.bootstrap,...e},t}function ie(e){let t=A();return t.functions={...t.functions,...e},t}function M(){return N(A())}function N(e){let t=e.bootstrap.rsc;if(t===void 0){let t={rsc:[]};return e.bootstrap.rsc=t,t}return t}function ae(){return typeof k()?.functions.navigate==`function`}var oe=`X-Vinext-Params`,P=`X-Vinext-Mounted-Slots`,F=`X-Vinext-Dynamic-Stale-Time`,se=`X-Vinext-Rendered-Path-And-Search`,ce=`X-Vinext-Interception-Context`,le=`X-Vinext-Rsc-Render-Mode`,ue=`X-Vinext-Client-Reuse-Manifest`,de=`X-Vinext-Rsc-Redirect`,fe=`X-Vinext-Rsc-Redirect-Type`,pe=`Next-Router-State-Tree`,I=`Next-Router-Prefetch`,me=`Next-Router-Segment-Prefetch`,he=`Next-Url`;function ge(e){return e.startsWith(`/`)&&!e.startsWith(`//`)&&!e.includes(`?`)&&!e.includes(`#`)&&!e.includes(`\0`)}function _e(e){if(e===`/`||e.length>1&&e[0]===`/`&&!e.includes(`//`)&&!e.includes(`/./`)&&!e.includes(`/../`)&&!e.endsWith(`/.`)&&!e.endsWith(`/..`))return e;let t=e.split(`/`),n=[];for(let e of t)e===``||e===`.`||(e===`..`?n.pop():n.push(e));return`/`+n.join(`/`)}var ve=(e,t)=>e<t?-1:+(e>t);function ye(e){let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=t*16777619>>>0;let n=84696351;for(let t=0;t<e.length;t++)n^=e.charCodeAt(t),n=n*16777619>>>0;return t.toString(16).padStart(8,`0`)+n.toString(16).padStart(8,`0`)}var be=[`schemaVersion`,`graphVersion`,`deploymentVersion`,`appElementsSchemaVersion`,`rscPayloadSchemaVersion`,`rootBoundaryId`,`renderEpoch`];function xe(e={}){return{schemaVersion:1,graphVersion:e.graphVersion??null,deploymentVersion:e.deploymentVersion??null,appElementsSchemaVersion:1,rscPayloadSchemaVersion:1,rootBoundaryId:e.rootBoundaryId??null,renderEpoch:e.renderEpoch??null}}function Se(e){return typeof e==`string`||e===null}function Ce(e){return e.schemaVersion===1&&e.appElementsSchemaVersion===1&&e.rscPayloadSchemaVersion===1}function L(e){return!h(e)||!Ce(e)||!Se(e.graphVersion)||!Se(e.deploymentVersion)||!Se(e.rootBoundaryId)||!Se(e.renderEpoch)?null:{schemaVersion:1,graphVersion:e.graphVersion,deploymentVersion:e.deploymentVersion,appElementsSchemaVersion:1,rscPayloadSchemaVersion:1,rootBoundaryId:e.rootBoundaryId,renderEpoch:e.renderEpoch}}var R=r(),we=new WeakMap;function Te(e,t){we.get(e)?.get(t)?.release()}var z=t(a(),1),Ee=`\0`,De=`__artifactCompatibility`,Oe=`__cacheEntryReuseProof`,ke=`__dynamicStaleTime`,Ae=`__interception`,je=`__interceptionContext`,Me=`__layoutIds`,Ne=`__layoutFlags`,Pe=`__renderObservation`,Fe=`__route`,Ie=`__rootLayout`,Le=`__skippedLayoutIds`,Re=`__sourcePage`,ze=`__slotBindings`,Be=`__VINEXT_UNMATCHED_SLOT__`,Ve=Symbol.for(`vinext.unmatchedSlot`),He=new Set;function Ue(e){return new Set(e)}var We=Ue(`CP_CACHE_ENTRY_PROOF_MISSING.CP_MODEL_DISABLED.CP_ARTIFACT_COMPATIBILITY_INCOMPATIBLE.CP_ARTIFACT_COMPATIBILITY_UNKNOWN.CP_DIMENSION_COUNT_EXCEEDED.CP_DIMENSION_NAME_MISSING.CP_DIMENSION_NAME_TOO_LONG.CP_DIMENSION_VALUE_COUNT_EXCEEDED.CP_DIMENSION_VALUE_TOO_LONG.CP_DIMENSION_VALUES_MISSING.CP_ENCODED_VARIANT_TOO_LONG.CP_INVALID_VARIANT_BUDGET.CP_ROUTE_VARIANT_BUDGET_ROUTE_MISMATCH.CP_ROUTE_VARIANT_CEILING_EXCEEDED.CP_UNSAFE_PUBLIC_DIMENSION.CP_BOUNDARY_OUTCOME_MISMATCH.CP_BOUNDARY_OUTCOME_UNKNOWN.CP_PRIVATE_DYNAMIC_DOWNGRADE.CP_STATIC_LAYOUT_CANDIDATE_OUTPUT_KIND.CP_STATIC_LAYOUT_CURRENT_OUTPUT_KIND.CP_STATIC_LAYOUT_ID_MISMATCH.CP_STATIC_LAYOUT_OBSERVATION_OUTPUT_KIND.CP_STATIC_LAYOUT_OBSERVATION_OUTPUT_MISMATCH.CP_STATIC_LAYOUT_PRIVATE_DYNAMIC_DOWNGRADE.CP_STATIC_LAYOUT_REQUEST_API_OBSERVED.CP_STATIC_LAYOUT_REQUEST_API_UNKNOWN.CP_STATIC_LAYOUT_ROOT_BOUNDARY_MISMATCH.CP_STATIC_LAYOUT_ROOT_BOUNDARY_UNKNOWN.CP_STATIC_LAYOUT_VARIANT_DIMENSION_UNPROVEN`.split(`.`)),Ge=ve;function Ke(e,t){return Ge(e.slotId,t.slotId)}function qe(e,t={}){let n=t.layoutIds?new Set(t.layoutIds):null,r=new Set,i=[];for(let t of e){if(r.has(t.slotId))throw Error(`[vinext] Invalid __slotBindings in App Router payload: duplicate slot id`);if(r.add(t.slotId),n&&t.ownerLayoutId!==null&&!n.has(t.ownerLayoutId))throw Error(`[vinext] Invalid __slotBindings in App Router payload: owner layout id missing from __layoutIds`);i.push({...t})}return i.sort(Ke)}function Je(e,t){return t===null?e:`${e}${Ee}${t}`}function Ye(e,t){return Je(`route:${e}`,t)}function Xe(e,t){return Je(`page:${e}`,t)}function Ze(e){return`layout:${e}`}function Qe(e){return`template:${e}`}function $e(e,t){return`slot:${e}:${t}`}function et(e,t){return Je(e,t)}function tt(e){let t=e.indexOf(Ee),n=t===-1?e:e.slice(0,t);return n.startsWith(`/`)?{interceptionContext:t===-1?null:e.slice(t+1),path:n}:null}function nt(e){return e.startsWith(`/`)?e:null}function rt(e){if(e.startsWith(`route:`)){let t=tt(e.slice(6));return t?{interceptionContext:t.interceptionContext,kind:`route`,path:t.path}:null}if(e.startsWith(`page:`)){let t=tt(e.slice(5));return t?{interceptionContext:t.interceptionContext,kind:`page`,path:t.path}:null}if(e.startsWith(`layout:`)){let t=nt(e.slice(7));return t?{kind:`layout`,treePath:t}:null}if(e.startsWith(`template:`)){let t=nt(e.slice(9));return t?{kind:`template`,treePath:t}:null}if(e.startsWith(`slot:`)){let t=e.slice(5),n=t.indexOf(`:`);if(n<=0)return null;let r=t.slice(0,n),i=nt(t.slice(n+1));return i?{kind:`slot`,name:r,treePath:i}:null}return null}function it(e){if(!e.startsWith(`slot:`))return!1;let t=e.slice(5),n=t.indexOf(`:`);return n>0&&t.charCodeAt(n+1)===47}function at(e){let t=[...e.layoutIds??[]],n={[Fe]:e.routeId,[je]:e.interceptionContext,[Me]:t,[Ie]:e.rootLayoutTreePath,...e.dynamicStaleTimeSeconds===void 0?{}:{[ke]:e.dynamicStaleTimeSeconds},...e.sourcePage===null||e.sourcePage===void 0?{}:{[Re]:e.sourcePage}},r=e.interception?{...n,[Ae]:e.interception}:n;return e.slotBindings&&e.slotBindings.length>0?{...r,[ze]:qe(e.slotBindings,{layoutIds:t})}:r}function ot(e){let t=!1;for(let[n,r]of Object.entries(e))if(it(n)&&r===`__VINEXT_UNMATCHED_SLOT__`){t=!0;break}if(!t)return e;let n={};for(let[t,r]of Object.entries(e))n[t]=it(t)&&r===`__VINEXT_UNMATCHED_SLOT__`?Ve:r;return n}function st(e){if(typeof e!=`object`||!e||Array.isArray(e))return!1;for(let t of Object.values(e))if(t!==`s`&&t!==`d`)return!1;return!0}function ct(e){return st(e)?e:{}}function lt(e,t){if(e===void 0)return[];if(!Array.isArray(e))throw Error(`[vinext] Invalid ${t} in App Router payload: expected layout id string[]`);let n=[];for(let r of e){if(typeof r!=`string`)throw Error(`[vinext] Invalid ${t} in App Router payload: expected layout id string[]`);if(rt(r)?.kind!==`layout`)throw Error(`[vinext] Invalid ${t} in App Router payload: expected layout ids`);n.push(r)}return n}function ut(e){return lt(e,Me)}function dt(e){return lt(e,Le)}function ft(e){return e===`active`||e==="default"||e===`unmatched`}function pt(e,t={}){if(e===void 0)return[];if(!Array.isArray(e))throw Error(`[vinext] Invalid __slotBindings in App Router payload: expected array`);let n=[];for(let t of e){if(!h(t))throw Error(`[vinext] Invalid __slotBindings in App Router payload: expected objects`);let e=t.slotId;if(typeof e!=`string`||rt(e)?.kind!==`slot`)throw Error(`[vinext] Invalid __slotBindings in App Router payload: expected slot ids`);let r=t.ownerLayoutId;if(r!==null&&(typeof r!=`string`||rt(r)?.kind!==`layout`))throw Error(`[vinext] Invalid __slotBindings in App Router payload: expected owner layout ids`);let i=t.state;if(!ft(i))throw Error(`[vinext] Invalid __slotBindings in App Router payload: expected state`);let a=t.activeRouteId;if(a!=null&&(typeof a!=`string`||rt(a)?.kind!==`route`))throw Error(`[vinext] Invalid __slotBindings in App Router payload: expected route ids`);n.push({...a===void 0?{}:{activeRouteId:a},ownerLayoutId:r,slotId:e,state:i})}return qe(n,t)}function mt(e,t){let n=e[t];if(typeof n!=`string`)throw Error(`[vinext] Invalid __interception in App Router payload: expected strings`);return n}function ht(e){if(!ge(e))throw Error(`[vinext] Invalid __interception in App Router payload: expected path URLs`);return e}function gt(e,t){let n=rt(e);if(n?.kind!==`route`||n.path!==t||n.interceptionContext!==null)throw Error(`[vinext] Invalid __interception in App Router payload: expected route ids`);return e}function _t(e){if(rt(e)?.kind!==`slot`)throw Error(`[vinext] Invalid __interception in App Router payload: expected slot id`);return e}function vt(e){if(e==null)return null;if(!h(e))throw Error(`[vinext] Invalid __interception in App Router payload: expected object`);let t=ht(mt(e,`sourceMatchedUrl`)),n=ht(mt(e,`targetMatchedUrl`));return{sourceMatchedUrl:t,sourceRouteId:gt(mt(e,`sourceRouteId`),t),slotId:_t(mt(e,`slotId`)),targetMatchedUrl:n,targetRouteId:gt(mt(e,`targetRouteId`),n)}}function yt(e){return!(typeof e!=`object`||!e||Array.isArray(e)||(0,z.isValidElement)(e))}function bt(e,t){return{...e,[Ne]:t}}function xt(e){if(!yt(e.element))return e.element;let t=St(e.skipDisposition),n={};for(let[r,i]of Object.entries(e.element)){if(t.has(r)){Te(e.element,r);continue}n[r]=i===Ve?Be:i}return n[Ne]=e.layoutFlags,t.size>0&&(n[Le]=[...t]),n[De]=e.artifactCompatibility??xe(),e.cacheEntryReuseProof&&(n[Oe]=e.cacheEntryReuseProof),e.dynamicStaleTimeSeconds!==void 0&&(n[ke]=e.dynamicStaleTimeSeconds),e.renderObservation&&(n[Pe]=e.renderObservation),n}function St(e){if(e?.enabled!==!0)return He;let t=new Set;for(let n of e.skippedEntryIds)rt(n)?.kind===`layout`&&t.add(n);return t}function Ct(e){return e===void 0?xe():L(e)??xe()}function wt(e){return e==null||typeof e!=`string`||!e.startsWith(`/`)?null:e}function Tt(){return{kind:`runtime-cache-entry`,decision:null}}function Et(e){return typeof e==`string`&&We.has(e)}function Dt(e){return e===`renderFresh`||e===`privateUncacheable`}function Ot(e){return e===`affectedOutput`||e===`route`}function kt(e){if(e===void 0)return null;if(!h(e)||e.kind!==`runtime-cache-entry`)return Tt();let t=e.decision;return t===null||!h(t)?Tt():t.kind===`reuse`&&t.canReuse===!0&&t.code===`CP_STATIC_LAYOUT_REUSE_PROVEN`&&t.reuseClass===`static-layout`?{kind:`runtime-cache-entry`,decision:{canReuse:!0,code:t.code,kind:`reuse`,reuseClass:t.reuseClass}}:t.kind===`reject`&&t.canReuse===!1&&Et(t.code)&&Dt(t.mode)&&Ot(t.scope)?{kind:`runtime-cache-entry`,decision:{canReuse:!1,code:t.code,kind:`reject`,mode:t.mode,scope:t.scope}}:Tt()}function At(e){let t=e[Fe];if(typeof t!=`string`)throw Error(`[vinext] Missing __route string in App Router payload`);let n=e[je];if(n!=null&&typeof n!=`string`)throw Error(`[vinext] Invalid __interceptionContext in App Router payload`);let r=e[Ie];if(r===void 0)throw Error(`[vinext] Missing __rootLayout key in App Router payload`);if(r!==null&&typeof r!=`string`)throw Error(`[vinext] Invalid __rootLayout in App Router payload: expected string or null`);let i=ct(e[Ne]),a=ut(e[Me]),o=dt(e[Le]),s=pt(e[ze],{layoutIds:a}),c=vt(e[Ae]),l=Ct(e[De]),u=kt(e[Oe]),d=e[ke],f=typeof d==`number`&&Number.isFinite(d)&&d>=0?d:void 0,p=wt(e[Re]);return{artifactCompatibility:l,...u?{cacheEntryReuseProof:u}:{},...f===void 0?{}:{dynamicStaleTimeSeconds:f},interception:c,interceptionContext:n??null,layoutIds:a,layoutFlags:i,routeId:t,rootLayoutTreePath:r,skippedLayoutIds:o,slotBindings:s,sourcePage:p}}var B={keys:{artifactCompatibility:De,cacheEntryReuseProof:Oe,dynamicStaleTime:ke,interception:Ae,interceptionContext:je,layoutIds:Me,layoutFlags:Ne,renderObservation:Pe,rootLayout:Ie,route:Fe,skippedLayoutIds:Le,slotBindings:ze,sourcePage:Re},unmatchedSlotValue:Be,createMetadataEntries:at,decode:ot,encodeCacheKey:et,encodeLayoutId:Ze,encodeOutgoingPayload:xt,encodePageId:Xe,encodeRouteId:Ye,encodeSlotId:$e,encodeTemplateId:Qe,isSlotId:it,parseElementKey:rt,readMetadata:At,withLayoutFlags:bt},jt=4096,Mt=256,Nt=16;function Pt(e){return e.length===0||e.length>Mt?!1:B.isSlotId(e)}function Ft(e){if(!e||e.length>jt)return null;let t=e.split(/\s+/).filter(e=>e&&Pt(e));return t.length===0?null:Array.from(new Set(t)).sort().slice(0,Nt).join(` `)||null}function It(e){return Object.keys(e).filter(t=>{let n=e[t],r=B.parseElementKey(t);return r?.kind===`slot`&&r.name!==`children`&&n!=null&&n!==Ve}).sort()}function Lt(e){return Ft(It(e).join(` `))}function Rt(e,t){return t??e}var zt=Symbol.for(`vinext.appRouterContext`),Bt=Symbol.for(`vinext.globalLayoutRouterContext`),Vt=Symbol.for(`vinext.layoutRouterContext`),Ht=Symbol.for(`vinext.missingSlotContext`),Ut=Symbol.for(`vinext.templateContext`);function Wt(e,t){if(typeof z.createContext!=`function`)return null;let n=globalThis;return n[e]||(n[e]=z.createContext(t)),n[e]??null}var Gt=Wt(zt,null);Wt(Bt,null),Wt(Vt,null),Wt(Ht,new Set),Wt(Ut,null);var Kt=`1.0.0-beta.4`;function qt(e){let t=window.next;if(t){e.version!==void 0&&(t.version=e.version),e.appDir!==void 0&&(t.appDir=e.appDir),e.router!==void 0&&(t.router=e.router),e.__pendingUrl!==void 0&&(t.__pendingUrl=e.__pendingUrl),e.__internal_src_page!==void 0&&(t.__internal_src_page=e.__internal_src_page);return}window.next={version:e.version??Kt,...e}}function Jt(e){if(qt({}),e===null){delete window.next?.__internal_src_page;return}let t=window.next;t&&(t.__internal_src_page=e)}function Yt(e){try{return decodeURIComponent(e)}catch{return e}}function Xt(e){let t=Yt(e.startsWith(`#`)?e.slice(1):e);if(t===``||t===`top`){window.scrollTo(0,0);return}let n=document.getElementById(t);if(n){n.scrollIntoView({behavior:`auto`});return}let r=document.getElementsByName(t)[0];if(r){r.scrollIntoView({behavior:`auto`});return}window.scrollTo(0,0)}function Zt(e,t){requestAnimationFrame(()=>{t&&!t()||Xt(e)})}function Qt(e,t,n){let r=n?.minFrames??0,i=n?.shouldContinue??(()=>!0),a=0,o=()=>{if(!i())return;window.scrollTo(e,t);let n=Math.abs(window.scrollY-t)<=1;!i()||n&&a>=r||a>=60||(a+=1,requestAnimationFrame(o))};o()}var $t=e({default:()=>an}),en={container:{fontFamily:`system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"`,height:`100vh`,display:`flex`,alignItems:`center`,justifyContent:`center`},card:{marginTop:`-32px`,maxWidth:`325px`,padding:`32px 28px`,textAlign:`left`},icon:{marginBottom:`24px`},title:{fontSize:`24px`,fontWeight:500,letterSpacing:`-0.02em`,lineHeight:`32px`,margin:`0 0 12px 0`,color:`var(--next-error-title)`},message:{fontSize:`14px`,fontWeight:400,lineHeight:`21px`,margin:`0 0 20px 0`,color:`var(--next-error-message)`},form:{margin:0},buttonGroup:{display:`flex`,gap:`8px`,alignItems:`center`},button:{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,height:`32px`,padding:`0 12px`,fontSize:`14px`,fontWeight:500,lineHeight:`20px`,borderRadius:`6px`,cursor:`pointer`,color:`var(--next-error-btn-text)`,background:`var(--next-error-btn-bg)`,border:`var(--next-error-btn-border)`},buttonSecondary:{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,height:`32px`,padding:`0 12px`,fontSize:`14px`,fontWeight:500,lineHeight:`20px`,borderRadius:`6px`,cursor:`pointer`,color:`var(--next-error-btn-secondary-text)`,background:`var(--next-error-btn-secondary-bg)`,border:`var(--next-error-btn-secondary-border)`},digestFooter:{position:`fixed`,bottom:`32px`,left:`0`,right:`0`,textAlign:`center`,fontFamily:`ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace`,fontSize:`12px`,lineHeight:`18px`,fontWeight:400,margin:`0`,color:`var(--next-error-digest)`}},tn=`
3
+ :root {
4
+ --next-error-bg: #fff;
5
+ --next-error-text: #171717;
6
+ --next-error-title: #171717;
7
+ --next-error-message: #171717;
8
+ --next-error-digest: #666666;
9
+ --next-error-btn-text: #fff;
10
+ --next-error-btn-bg: #171717;
11
+ --next-error-btn-border: none;
12
+ --next-error-btn-secondary-text: #171717;
13
+ --next-error-btn-secondary-bg: transparent;
14
+ --next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);
15
+ }
16
+ @media (prefers-color-scheme: dark) {
17
+ :root {
18
+ --next-error-bg: #0a0a0a;
19
+ --next-error-text: #ededed;
20
+ --next-error-title: #ededed;
21
+ --next-error-message: #ededed;
22
+ --next-error-digest: #a0a0a0;
23
+ --next-error-btn-text: #0a0a0a;
24
+ --next-error-btn-bg: #ededed;
25
+ --next-error-btn-border: none;
26
+ --next-error-btn-secondary-text: #ededed;
27
+ --next-error-btn-secondary-bg: transparent;
28
+ --next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);
29
+ }
30
+ }
31
+ body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }
32
+ `.replace(/\n\s*/g,``);function nn(){return(0,R.jsx)(`svg`,{width:`32`,height:`32`,viewBox:`-0.2 -1.5 32 32`,fill:`none`,style:en.icon,children:(0,R.jsx)(`path`,{d:`M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z`,fill:`var(--next-error-title)`})})}function rn(){window.history.length>1?window.history.back():window.location.href=`/`}function an({error:e}){let t=e?.digest,n=!!t,r=n?`A server error occurred. Reload to try again.`:`Reload to try again, or go back.`;return(0,R.jsxs)(`html`,{id:`__next_error__`,children:[(0,R.jsx)(`head`,{children:(0,R.jsx)(`style`,{dangerouslySetInnerHTML:{__html:tn}})}),(0,R.jsxs)(`body`,{children:[(0,R.jsx)(`div`,{style:en.container,children:(0,R.jsxs)(`div`,{style:en.card,children:[(0,R.jsx)(nn,{}),(0,R.jsx)(`h1`,{style:en.title,children:`This page couldn’t load`}),(0,R.jsx)(`p`,{style:en.message,children:r}),(0,R.jsxs)(`div`,{style:en.buttonGroup,children:[(0,R.jsx)(`form`,{style:en.form,children:(0,R.jsx)(`button`,{type:`submit`,style:en.button,children:`Reload`})}),!n&&(0,R.jsx)(`button`,{type:`button`,style:en.buttonSecondary,onClick:rn,children:`Back`})]})]})}),t&&(0,R.jsxs)(`p`,{style:en.digestFooter,children:[`ERROR `,t]})]})]})}function on(){return window.next?.__pendingUrl??null}function sn(e){let t=on();return t===null?null:t.href===new URL(e,window.location.href).href?t:null}function cn(e){if(window.next?.__pendingUrl!==void 0){if(e instanceof URL){if(window.next.__pendingUrl!==e)return}else if(e!==void 0&&window.next.__pendingUrl.href!==new URL(e,window.location.href).href)return;delete window.next.__pendingUrl}}function ln(e){return!1}function un(e,t){return t?e===t||e.startsWith(t+`/`):!1}function V(e,t){return un(e,t)?e.slice(t.length)||`/`:e}var dn=class{run(e,t,...n){return t(...n)}getStore(){}enterWith(){}exit(e,...t){return e(...t)}disable(){}},fn=globalThis,pn=class{getStore(){}run(e,t,...n){return t(...n)}exit(e,...t){return e(...t)}enterWith(e){}disable(){}};function mn(e){let t=Symbol.for(e);return fn[t]??=typeof dn==`function`?new dn:new pn}mn(`vinext.pprFallbackShell.als`),mn(`vinext.pprFallbackShell.cacheTaskStack.als`);var hn=Symbol.for(`vinext.clientNavigationState`),gn=Symbol.for(`vinext.clientNavigationRenderContext`),_n=``;function vn(){return globalThis[hn]}function yn(){return vn()?.cachedPathname??V(window.location.pathname,_n)}function bn(){return c()?.pathname??`/`}function xn(e){let t=vn();return t?(t.listeners.add(e),()=>t.listeners.delete(e)):()=>{}}function Sn(){let e=globalThis;return e[gn]??=z.createContext(null)}function Cn(){let e=z.useContext(Sn()),t=z.useSyncExternalStore(xn,yn,bn);return e&&(vn()?.navigationSnapshotActiveCount??0)>0?e.pathname:t}function wn(){if(!Gt||typeof z.useContext!=`function`)throw Error(`invariant expected app router to be mounted`);let e=z.useContext(Gt);if(e===null)throw Error(`invariant expected app router to be mounted`);return e}var Tn=`vinext:dev-error-recovery`;function En(e){return!e||typeof e!=`object`||!(`digest`in e)?null:String(e.digest)}function Dn(e){let t=En(e);return t===null?!1:t===`NEXT_NOT_FOUND`||t.startsWith(`NEXT_HTTP_ERROR_FALLBACK;`)||t.startsWith(`NEXT_REDIRECT;`)}var On=e({DevRecoveryBoundary:()=>qn,ErrorBoundary:()=>zn,ErrorBoundaryInner:()=>Rn,ForbiddenBoundary:()=>Wn,ForbiddenBoundaryInner:()=>Un,GlobalErrorBoundary:()=>Bn,NotFoundBoundary:()=>Hn,RedirectBoundary:()=>Ln,RedirectErrorBoundary:()=>In,SerializedErrorBoundary:()=>kn,UnauthorizedBoundary:()=>Kn,UnauthorizedBoundaryInner:()=>Gn});function kn({fallback:e,error:t}){return(0,R.jsx)(e,{error:Object.assign(Error(t.message),{digest:t.digest,name:t.name??`Error`,stack:t.stack}),reset:()=>globalThis.location?.reload()})}function An(e){return e==null||e===``?null:e}function jn(e){return{previousPathname:e.pathname,previousResetKey:An(e.resetKey)}}function Mn(e,t){let n=An(e.previousResetKey),r=An(t.previousResetKey);return n!==null||r!==null?n!==r:e.previousPathname!==t.previousPathname}function Nn(e){window.addEventListener(Tn,e)}function Pn(e){window.removeEventListener(Tn,e)}function Fn({redirect:e,redirectType:t,reset:n}){let r=wn();return z.useEffect(()=>{z.startTransition(()=>{t===`push`?r.push(e):r.replace(e),n()})},[e,t,n,r]),null}var In=class extends z.Component{constructor(e){super(e),this.state={redirect:null,redirectType:null}}static getDerivedStateFromError(e){if(d(e)){if(`handled`in e&&e.handled)return{redirect:null,redirectType:null};let t=m(e.digest);if(!t)throw e;return{redirect:t.url,redirectType:t.type}}throw e}render(){let{redirect:e,redirectType:t}=this.state;return e!==null&&t!==null?(0,R.jsx)(Fn,{redirect:e,redirectType:t,reset:()=>this.setState({redirect:null,redirectType:null})}):this.props.children}};function Ln({children:e}){return(0,R.jsx)(In,{children:e})}var Rn=class extends z.Component{constructor(e){super(e),this.state={error:null,...jn(e)}}static getDerivedStateFromProps(e,t){let n=jn(e);return t.error&&ln(t.error.thrownValue)||t.error&&Mn(n,t)?{error:null,...n}:{error:t.error,...n}}static getDerivedStateFromError(e){if(Dn(e))throw e;return{error:{thrownValue:e}}}handleDevErrorRecovery=()=>{this.state.error&&this.setState({error:null,...jn(this.props)})};componentDidMount(){Nn(this.handleDevErrorRecovery)}componentWillUnmount(){Pn(this.handleDevErrorRecovery)}reset=()=>{this.setState({error:null})};render(){if(this.state.error){let e=this.props.fallback;return(0,R.jsx)(e,{error:this.state.error.thrownValue,reset:this.reset})}return this.props.children}};function zn({fallback:e,children:t,resetKey:n}){return(0,R.jsx)(Rn,{pathname:Cn(),resetKey:n,fallback:e,children:t})}function Bn({fallback:e,children:t}){return(0,R.jsx)(Rn,{pathname:Cn(),fallback:e,isImplicitRootErrorBoundary:e===an,children:t})}var Vn=class extends z.Component{constructor(e){super(e),this.state={notFound:!1,...jn(e)}}static getDerivedStateFromProps(e,t){let n=jn(e);return t.notFound&&Mn(n,t)?{notFound:!1,...n}:{notFound:t.notFound,...n}}static getDerivedStateFromError(e){if(e&&typeof e==`object`&&`digest`in e){let t=String(e.digest);if(t===`NEXT_NOT_FOUND`||t===`NEXT_HTTP_ERROR_FALLBACK;404`)return{notFound:!0}}throw e}render(){return this.state.notFound?(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(`meta`,{name:`robots`,content:`noindex`}),this.props.fallback]}):this.props.children}};function Hn({fallback:e,children:t,resetKey:n}){return(0,R.jsx)(Vn,{pathname:Cn(),resetKey:n,fallback:e,children:t})}var Un=class extends z.Component{constructor(e){super(e),this.state={forbidden:!1,...jn(e)}}static getDerivedStateFromProps(e,t){let n=jn(e);return t.forbidden&&Mn(n,t)?{forbidden:!1,...n}:{forbidden:t.forbidden,...n}}static getDerivedStateFromError(e){if(e&&typeof e==`object`&&`digest`in e&&String(e.digest)===`NEXT_HTTP_ERROR_FALLBACK;403`)return{forbidden:!0};throw e}render(){return this.state.forbidden?(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(`meta`,{name:`robots`,content:`noindex`}),this.props.fallback]}):this.props.children}};function Wn({fallback:e,children:t,resetKey:n}){return(0,R.jsx)(Un,{pathname:Cn(),resetKey:n,fallback:e,children:t})}var Gn=class extends z.Component{constructor(e){super(e),this.state={unauthorized:!1,...jn(e)}}static getDerivedStateFromProps(e,t){let n=jn(e);return t.unauthorized&&Mn(n,t)?{unauthorized:!1,...n}:{unauthorized:t.unauthorized,...n}}static getDerivedStateFromError(e){if(e&&typeof e==`object`&&`digest`in e&&String(e.digest)===`NEXT_HTTP_ERROR_FALLBACK;401`)return{unauthorized:!0};throw e}render(){return this.state.unauthorized?(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(`meta`,{name:`robots`,content:`noindex`}),this.props.fallback]}):this.props.children}};function Kn({fallback:e,children:t,resetKey:n}){return(0,R.jsx)(Gn,{pathname:Cn(),resetKey:n,fallback:e,children:t})}var qn=class extends z.Component{constructor(e){super(e),this.state={error:null,previousResetKey:e.resetKey}}static getDerivedStateFromProps(e,t){return e.resetKey===t.previousResetKey?null:{error:null,previousResetKey:e.resetKey}}static getDerivedStateFromError(e){if(Dn(e))throw e;return{error:{thrownValue:e}}}handleDevErrorRecovery=()=>{this.state.error&&this.setState({error:null,previousResetKey:this.props.resetKey})};componentDidMount(){Nn(this.handleDevErrorRecovery)}componentWillUnmount(){Pn(this.handleDevErrorRecovery)}componentDidCatch(){this.props.onCatch?.(this.props.resetKey)}render(){return this.state.error?null:this.props.children}},Jn=Symbol.for(`vinext.appRouterScrollIntent`);function Yn(){let e=globalThis;return e[Jn]??={nextId:0,pending:null},e[Jn]}function Xn(e){let t=Yn();t.nextId+=1;let n={commitId:null,hash:e,headElements:typeof document>`u`?null:new Set(document.head?.children??[]),id:t.nextId,targetHoistedInHead:!1};return t.pending=n,n}function Zn(){let e=Yn();e.nextId+=1,e.pending=null}function Qn(){return Yn().pending}function $n(e){return e!=null&&Yn().nextId===e.id}function er(e,t){let n=Yn(),r=n.pending;e==null||r===null||r.id===e.id&&(n.pending={...r,commitId:t})}function tr(e,t){let n=Yn(),r=n.pending;e==null||r===null||r.id===e.id&&r.commitId===t&&(n.pending={...r,targetHoistedInHead:!0})}function nr(e,t){if(e==null)return null;let n=Yn(),r=n.pending;return r===null||r.id!==e.id||t!==void 0&&r.commitId!==t?null:(n.pending=null,r)}var rr=e({AppRouterScrollCommitProvider:()=>_r,AppRouterScrollTarget:()=>vr,AppRouterScrollTargetInner:()=>gr}),ir=t(i(),1),ar=z.createContext(null),or=`__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE`,sr=[`bottom`,`height`,`left`,`right`,`top`,`width`,`x`,`y`];function cr(){let e=Reflect.get(ir,or);if(typeof e!=`object`||!e)return null;let t=Reflect.get(e,`findDOMNode`);return typeof t==`function`?t:null}function lr(e){let t=cr();if(!t)return null;let n=t(e);return n instanceof Element||n instanceof Text?n:null}function ur(e){let t=getComputedStyle(e).position;if(t===`fixed`||t===`sticky`)return!0;let n=e.getBoundingClientRect();return sr.every(e=>n[e]===0)}function dr(e,t){let n=e.getClientRects();if(n.length===0)return!1;let r=1/0;for(let e of n)e.top<r&&(r=e.top);return r>=0&&r<=t}function fr(e){let t=Yt(e.startsWith(`#`)?e.slice(1):e);return t===`top`?document.body:document.getElementById(t)??document.getElementsByName(t)[0]??null}function pr(e){let t=e.ownerDocument?.head;return t!=null&&t.contains(e)}function mr(e){if(!(e instanceof Element)||pr(e))return null;let t=e;for(;!(t instanceof HTMLElement)||ur(t);){if(t.nextElementSibling===null)return null;t=t.nextElementSibling}return{kind:`element`,element:t}}function hr(e,t){if(t!==null){e.scrollIntoView({behavior:`auto`});return}let n=document.documentElement,r=n.clientHeight;dr(e,r)||(n.scrollTop=0,dr(e,r)||e.scrollIntoView({behavior:`auto`,block:`start`,inline:`nearest`}))}var gr=class extends z.Component{scheduledCommitId=null;schedulePotentialScroll=()=>{let e=this.props.commitId;this.scheduledCommitId=e,queueMicrotask(()=>{this.scheduledCommitId===e&&this.handlePotentialScroll()})};handlePotentialScroll=()=>{let e=Qn();if(e===null||this.props.commitId===null||e.commitId!==this.props.commitId)return;let t;if(t=e.hash===null?null:fr(e.hash),t===null){t=lr(this);let n=t instanceof Element?t:t?.parentElement;if(t!==null&&n!=null&&pr(t)&&!e.headElements?.has(n)){tr(e,this.props.commitId);return}}let n=mr(t);if(n===null)return;let r=n.element,i=nr(e,this.props.commitId);i!==null&&(hr(r,i.hash),r.focus())};componentDidMount(){this.schedulePotentialScroll()}componentDidUpdate(){this.schedulePotentialScroll()}componentWillUnmount(){this.scheduledCommitId=null}render(){return this.props.children}};function _r({children:e,commitId:t}){return(0,R.jsx)(ar.Provider,{value:t,children:e})}function vr({children:e}){return(0,R.jsx)(gr,{commitId:z.useContext(ar),children:e})}var yr=e({BfcacheStateKeyMapContext:()=>kr,Children:()=>Zr,ChildrenContext:()=>Sr,ElementsContext:()=>xr,ParallelSlot:()=>Qr,ParallelSlotsContext:()=>Cr,Slot:()=>Xr,UNMATCHED_SLOT:()=>Ve,getNonCacheComponentsSegmentKey:()=>qr,mergeElements:()=>Yr,updateBfcacheSlotEntryOrder:()=>Nr}),br=Object.freeze({}),xr=z.createContext(br),Sr=z.createContext(null),Cr=z.createContext(null),wr=s(),Tr=f(),Er=Object.freeze({}),Dr=3,Or=1,kr=z.createContext(Er);function Ar(){return!1}function jr(){return Ar()?Dr:Or}function Mr(e){return Number.isFinite(e)?Math.max(1,Math.trunc(e)):1}function Nr(e,t,n=jr()){let r=Mr(n),i=[t];for(let n of e){if(i.length>=r)break;n!==t&&i.push(n)}return i}function Pr(e,t){let n=new Set(t);for(let t of e.keys())n.has(t)||e.delete(t)}function Fr(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 Ir(e){if(typeof e!=`object`||!e||Array.isArray(e))return!1;let t=Object.values(e);return t.length>0&&t.every(e=>e===`s`||e===`d`)}function Lr(e){return typeof e!=`object`||!e||Array.isArray(e)?!1:`schemaVersion`in e&&`appElementsSchemaVersion`in e&&`rscPayloadSchemaVersion`in e&&`graphVersion`in e&&`deploymentVersion`in e&&`rootBoundaryId`in e&&`renderEpoch`in e}function Rr(e){return typeof e!=`object`||!e||Array.isArray(e)?!1:`ownerLayoutId`in e&&`slotId`in e&&`state`in e}function zr(e){return Array.isArray(e)&&e.length>0&&e.every(Rr)}function Br(e,t){return e===`__skippedLayoutIds`&&Array.isArray(t)&&t.every(e=>typeof e==`string`)}function Vr(e){return typeof e!=`object`||!e||Array.isArray(e)?!1:`sourceMatchedUrl`in e&&typeof e.sourceMatchedUrl==`string`&&`sourceRouteId`in e&&typeof e.sourceRouteId==`string`&&`slotId`in e&&typeof e.slotId==`string`&&`targetMatchedUrl`in e&&typeof e.targetMatchedUrl==`string`&&`targetRouteId`in e&&typeof e.targetRouteId==`string`}function Hr(e){return typeof e!=`object`||!e||Array.isArray(e)?!1:`kind`in e&&e.kind===`runtime-cache-entry`&&`decision`in e}function Ur(e,t){return Ir(t)||Lr(t)||Hr(t)||Vr(t)||Br(e,t)||zr(t)}function Wr({entry:e,fallbackElements:t,fallbackSegmentId:n,fallbackStateKeyMap:r,SegmentContext:i}){return(0,R.jsx)(kr.Provider,{value:e.stateKeyMap??r,children:(0,R.jsx)(xr.Provider,{value:e.elements??t,children:(0,R.jsx)(i.Provider,{value:e.segmentId??n,children:e.content})})})}function Gr(e){let t=z.useRef(new Map),[n,r]=z.useState(()=>[e.stateKey]);t.current.set(e.stateKey,e);let i=Nr(n,e.stateKey),a=!Fr(n,i),o=a?i:n;return Pr(t.current,o),a&&r(i),o.map(e=>t.current.get(e)).filter(e=>e!==void 0)}function Kr({activeStateKey:e,content:t,elements:n,id:r,SegmentContext:i,stateKeyMap:a}){return(0,R.jsx)(R.Fragment,{children:Gr({content:t,elements:n,segmentId:r,stateKey:e,stateKeyMap:a}).map(t=>(0,R.jsx)(z.Activity,{mode:t.stateKey===e?`visible`:`hidden`,children:(0,R.jsx)(Wr,{entry:t,fallbackElements:n,fallbackSegmentId:r,fallbackStateKeyMap:a,SegmentContext:i})},t.stateKey))})}function qr(e,t){let n=B.parseElementKey(e);return n?.kind===`page`||n?.kind===`slot`&&n.name===`children`?t:void 0}function Jr({content:e,id:t}){let n=Tr,r=z.useContext(xr),i=z.useContext(kr),a=i[t];return n?a===void 0?(0,R.jsx)(n.Provider,{value:t,children:e}):Ar()?(0,R.jsx)(Kr,{activeStateKey:a,content:e,elements:r,id:t,SegmentContext:n,stateKeyMap:i}):(0,R.jsx)(n.Provider,{value:t,children:e},qr(t,a)):(0,R.jsx)(R.Fragment,{children:e})}function Yr(e,t,n={}){let r=typeof n==`boolean`?n:n.clearAbsentSlots??!1,i=typeof n==`boolean`?!n:n.preserveAbsentSlots??!0,a=typeof n==`boolean`?[]:n.preserveElementIds??[],o=typeof n==`boolean`?[]:n.preservePreviousSlotIds??[],s={...t};for(let t of a)if(Object.hasOwn(e,t)){let n=e[t];n!==void 0&&(s[t]=n)}let c=new Set([...Object.keys(e),...Object.keys(t)].filter(e=>B.isSlotId(e)));if(r)for(let e of c)Object.hasOwn(t,e)||delete s[e];else if(i){for(let t of c)if(!Object.hasOwn(s,t)&&Object.hasOwn(e,t)){let n=e[t];n!==void 0&&(s[t]=n)}}for(let t of o){if(!B.isSlotId(t)||!Object.hasOwn(e,t))continue;let n=e[t];n!==void 0&&n!==Ve&&(s[t]=n)}return s}function Xr({id:e,children:t,parallelSlots:n}){let r=z.useContext(xr);if(!Object.hasOwn(r,e))return null;let i=r[e];if(Ur(e,i)||(i===Ve&&p(),i===null))return null;let a=(0,R.jsx)(Cr.Provider,{value:n??null,children:(0,R.jsx)(Sr.Provider,{value:t??null,children:i})});return wr&&Tr?(0,R.jsx)(Jr,{id:e,content:a}):a}function Zr(){return z.useContext(Sr)}function Qr({name:e}){return z.useContext(Cr)?.[e]??null}var $r=`navigation`,ei=`prefetch-empty`,ti=`prefetch-dynamic-shell`,ni=`prefetch-loading-shell`;function ri(e){switch(e){case ei:return ei;case ti:return ti;case ni:return ni;default:return $r}}var ii=`x-deployment-id`;function ai(e,t=void 0){t&&e.set(ii,t)}var oi=`_rsc`,si=`X-Vinext-RSC-Compatibility-Id`,ci=`text/x-component`;[`RSC`,pe,I,me,he,ce,P,le].join(`, `);var li=12,ui=new TextEncoder;function di(e){let t=``;for(let n of e)t+=String.fromCharCode(n);return btoa(t).replaceAll(`+`,`-`).replaceAll(`/`,`_`).replace(/=+$/,``)}function fi(e){return e??`0`}function pi(e){return e&&e.length>0?e:null}function mi(){return pi(`0f01a76b-2e9c-4417-887f-ef74be791cea`)}function hi(e,t=mi()){let n=pi(e),r=pi(t);return r===null||n!==null&&n===r}function gi(e,t,n){if(!e)return t;let r=new URL(e,n);Ti(r);let i=new URL(t,n),a=Ei(r.pathname);i.pathname.length>1&&i.pathname.endsWith(`/`)&&!a.endsWith(`/`)&&(a+=`/`);let o=a+r.search;return i.hash&&(o+=i.hash),o}function _i(e){return hi(e.responseCompatibilityId,e.clientCompatibilityId)?{kind:`compatible`}:{hardNavigationTarget:gi(e.responseUrl,e.currentHref,e.origin),kind:`hard-navigate`}}function vi(e){let t=ri(e);return t===`navigation`?null:t}function yi(e,t={}){let n=[e.get(I),e.get(me),e.get(pe),e.get(he),e.get(ce),e.get(P),...t.includeRenderModeHeader===!1?[]:[vi(e.get(le))]];return n.every(e=>e===null)?null:n.map(fi).join(`,`)}async function bi(e){let t=await globalThis.crypto.subtle.digest(`SHA-256`,ui.encode(e));return di(new Uint8Array(t).subarray(0,li))}function xi(e){return(e.search.startsWith(`?`)?e.search.slice(1):e.search).split(`&`).filter(e=>e.length>0&&!Si(e))}function Si(e){let t=e.indexOf(`=`),n=t===-1?e:e.slice(0,t);try{return decodeURIComponent(n.replaceAll(`+`,` `))===oi}catch{return n===oi}}async function Ci(e){let t=yi(e);return t===null?``:bi(t)}function wi(e,t){let n=xi(e);n.push(t.length>0?`${oi}=${t}`:oi),e.search=`?${n.join(`&`)}`}function Ti(e){let t=xi(e);e.search=t.length>0?`?${t.join(`&`)}`:``}function Ei(e){return e.endsWith(`.rsc`)?e.slice(0,-4):e}function Di(e={}){let t=new Headers({Accept:ci,RSC:`1`});ai(t),e.prefetchRouterState&&(e.includePrefetchHeader!==!1&&t.set(I,`1`),t.set(pe,encodeURIComponent(JSON.stringify(e.prefetchRouterState)))),e.nextUrl&&t.set(he,e.nextUrl),e.interceptionContext!==void 0&&e.interceptionContext!==null&&t.set(ce,e.interceptionContext),e.mountedSlotsHeader!==void 0&&e.mountedSlotsHeader!==null&&t.set(P,e.mountedSlotsHeader),e.clientReuseManifestHeader!==void 0&&e.clientReuseManifestHeader!==null&&t.set(ue,e.clientReuseManifestHeader);let n=e.renderMode??`navigation`;return n!==`navigation`&&t.set(le,n),t}function Oi(e){let t=e.indexOf(`#`);return t===-1?e:e.slice(0,t)}async function ki(e,t){let n=new URL(Oi(e),`http://vinext.local`);return wi(n,await Ci(t)),`${n.pathname}${n.search}`}var Ai=null;function ji(e){return Object.values(e).some(e=>typeof e==`function`)?e:null}function Mi(e){return Ai=e,Ai}function Ni(e,t){Ai?.onRouterTransitionStart?.(e,t)}Mi(ji(e({})));var Pi=/([/#?\\]|%(2f|23|3f|5c))/gi;function Fi(e){return e.replace(Pi,e=>encodeURIComponent(e))}function Ii(e){try{return Fi(decodeURIComponent(e))}catch{return e}}function Li(e){return e.split(`/`).map(e=>Ii(e)).join(`/`)}function Ri(e){return Li(e).split(`/`).filter(Boolean)}function zi(e){try{return decodeURIComponent(e)}catch{return e}}function Bi(e){let t=Object.create(null);for(let[n,r]of e)t[n]=r;return t}function Vi(e){for(let t of Object.keys(e)){let n=e[t];Array.isArray(n)?e[t]=n.map(zi):e[t]=zi(n)}}function Hi(e){return!!(e===`.`||e.startsWith(`(`)&&e.endsWith(`)`)||e.startsWith(`@`))}function Ui(e){return e.split(`/`).filter(Boolean)}function Wi(e){return e.startsWith(`[...`)&&e.endsWith(`]`)&&e.length>5}function Gi(e){return e.startsWith(`[[...`)&&e.endsWith(`]]`)&&e.length>7}function Ki(e,t){let n=0;for(let r of e){if(Wi(r)||Gi(r))return Math.max(n,t);n+=1}return n}var qi=`_b_0_`,Ji=0;function Yi(e){let t=/^_b_(\d+)_$/.exec(e);t&&(Ji=Math.max(Ji,Number(t[1])))}function Xi(){return Ji+=1,`_b_${Ji}_`}function Zi(e){return Ui(e).filter(e=>!Hi(e))}function Qi(e,t){let n=Ui(e),r=Ki(Zi(t),n.length);return r===0?`/`:`/${n.slice(0,r).join(`/`)}`}function $i(e){let t=new Map;for(let n of e.slotBindings)t.set(n.slotId,n);return{metadata:e,slotBindingsBySlotId:t}}function ea(e){let t;try{t=B.readMetadata(e)}catch{return null}return $i(t)}function ta(e){let t=B.parseElementKey(e);return t!==null&&t.kind!==`route`?t:null}function na(e,t){let n=t?.slotBindingsBySlotId.get(e);if(n?.activeRouteId!=null)return`${e}@${n.activeRouteId}`;let r=t?.metadata.interception;return r?.slotId===e?`${e}@${r.targetRouteId}`:null}function ra(e){if(e?.metadata.interception!=null||e?.metadata.sourcePage==null)return null;let t=B.parseElementKey(e.metadata.routeId);return t?.kind===`route`?t.path:null}function ia(e,t){let n=t?.metadata.interception;if(n==null){let n=ra(t);return n===e.path?n:null}for(let[t,r]of[[n.sourceRouteId,n.sourceMatchedUrl],[n.targetRouteId,n.targetMatchedUrl]]){let n=B.parseElementKey(t);if(n?.kind===`route`&&n.path===e.path)return r}return null}function aa(e,t){let n=t?.metadata.interception;if(n==null)return ra(t);let r=B.parseElementKey(n.slotId);if(r?.kind!==`slot`)return n.sourceMatchedUrl;let i=Ui(e),a=Ui(r.treePath);return i.length>a.length&&a.every((e,t)=>i[t]===e)&&i[a.length]===`@${r.name}`?n.targetMatchedUrl:n.sourceMatchedUrl}function oa(e,t,n){if(t.kind===`page`)return`${e}@${ia(t,n.metadata)??n.pathname}`;if(t.kind===`slot`){let r=na(e,n.metadata);return r===null?`${e}@${Qi(n.pathname,t.treePath)}`:r}return t.kind===`layout`||t.kind===`template`?`${e}@${Qi(aa(t.treePath,n.metadata)??n.pathname,t.treePath)}`:null}function sa(e,t=ea(e)){let n=new Set(Object.keys(e));for(let e of t?.metadata.layoutIds??[])n.add(e);return n}function ca(e){let t={};for(let n of sa(e))ta(n)!==null&&(t[n]=`0`);return t}function la(e){let t=_e(Li(e));return t.length>1?t.replace(/\/$/,``):t}function ua(e){let t=ea(e.elements),n=la(e.pathname),r={};for(let i of sa(e.elements,t)){let e=ta(i);if(e===null)continue;let a=oa(i,e,{metadata:t,pathname:n});a!==null&&(r[i]=a)}return r}function da(e){let t=e.reuseCurrent===!1?{}:e.current;for(let e of Object.values(t))Yi(e);for(let t of Object.values(e.restored??{}))Yi(t);let n=ea(e.currentElements),r=ea(e.elements),i=la(e.currentPathname),a=la(e.nextPathname),o={};for(let s of sa(e.elements,r)){let c=ta(s);if(c===null)continue;let l=oa(s,c,{metadata:n,pathname:i})===oa(s,c,{metadata:r,pathname:a})?t[s]:void 0,u=e.restored?.[s]??l??Xi();o[s]=u,Yi(u)}return o}function fa(e){let t={};for(let n of sa(e.elements)){if(ta(n)===null)continue;let r=e.next[n]??e.previous[n];r!==void 0&&(t[n]=r,Yi(r))}return t}function pa(e){return e===`none`?`server-action`:`refresh`}function ma(e){return e!==`none`}function ha(e,t){let n=0,r=e.length;for(;n<r;){let i=n+Math.floor((r-n)/2);if(e[i]===t)return{found:!0,index:i};e[i]<t?n=i+1:r=i}return{found:!1,index:n}}var ga={maxDimensionCount:8,maxDimensionNameLength:64,maxDimensionValueLength:256,maxEncodedLength:1024,maxValuesPerDimension:8,maxVariantsPerRoute:64},_a=new Set([`auth`,`cookie`,`draft-mode`,`header`,`session`]);function H(e,t={},n=`renderFresh`,r=`affectedOutput`){return{kind:`breakerFallback`,code:e,mode:n,scope:r,fields:t}}function va(e){return[...new Set(e)].sort()}function ya(e){return e.trim().toLowerCase()}function ba(e){return`h:${ye(e)}`}function xa(e){return JSON.stringify(e)}function Sa(e,t){return e.source.localeCompare(t.source)||e.name.localeCompare(t.name)||e.privacy.localeCompare(t.privacy)}function Ca(e){return e}function wa(e){throw Error(`Unhandled cache proof variant: ${String(e)}`)}function Ta(e){switch(e.kind){case`app-html`:return xa([e.kind,e.routeId,Ca(e.rootBoundaryId),Ca(e.renderEpoch)]);case`app-rsc`:return xa([e.kind,e.routeId,Ca(e.rootBoundaryId),Ca(e.renderEpoch),Ca(e.mountedSlotsFingerprint)]);case`layout`:return xa([e.kind,e.routeId,e.layoutId,Ca(e.rootBoundaryId)]);case`page`:return xa([e.kind,e.routeId,e.pageId,Ca(e.rootBoundaryId)]);case`route-handler`:return xa([e.kind,e.routeId,e.routeHandlerId]);case`slot`:return xa([e.kind,e.routeId,e.slotId,Ca(e.rootBoundaryId)]);case`template`:return xa([e.kind,e.routeId,e.templateId,Ca(e.rootBoundaryId)]);default:return wa(e)}}function Ea(e,t){return Number.isInteger(t)&&t>=0?null:H(`CP_INVALID_VARIANT_BUDGET`,{budgetField:e})}function Da(e){return Ea(`maxDimensionCount`,e.maxDimensionCount)??Ea(`maxDimensionNameLength`,e.maxDimensionNameLength)??Ea(`maxDimensionValueLength`,e.maxDimensionValueLength)??Ea(`maxEncodedLength`,e.maxEncodedLength)??Ea(`maxValuesPerDimension`,e.maxValuesPerDimension)??Ea(`maxVariantsPerRoute`,e.maxVariantsPerRoute)}function Oa(e,t){let n=ya(e.name);if(n.length===0)return H(`CP_DIMENSION_NAME_MISSING`,{source:e.source});if(n.length>t.maxDimensionNameLength)return H(`CP_DIMENSION_NAME_TOO_LONG`,{maxLength:t.maxDimensionNameLength,nameHash:ba(n),source:e.source});if(e.privacy===`public`&&_a.has(e.source))return H(`CP_UNSAFE_PUBLIC_DIMENSION`,{name:n,source:e.source},`privateUncacheable`);let r=va(e.values);if(r.length===0)return H(`CP_DIMENSION_VALUES_MISSING`,{name:n,source:e.source});if(r.length>t.maxValuesPerDimension)return H(`CP_DIMENSION_VALUE_COUNT_EXCEEDED`,{maxValues:t.maxValuesPerDimension,name:n,source:e.source,valueCount:r.length});for(let i of r)if(i.length>t.maxDimensionValueLength)return H(`CP_DIMENSION_VALUE_TOO_LONG`,{maxLength:t.maxDimensionValueLength,name:n,source:e.source,valueHash:ba(i)});let i=r.map(ba);return{encoded:xa([e.source,e.privacy,n,i]),name:n,privacy:e.privacy,source:e.source,valueCount:i.length,valueHashes:i}}function ka(e){return`code`in e}function Aa(e,t,n){let r=e.get(t),i=r??new Map;r||e.set(t,i);let a=i.get(n),o=a??new Map;return a||i.set(n,o),o}function ja(e){let t=new Map,n=[];for(let r of e){let e=ya(r.name),i=Aa(t,r.source,r.privacy),a=i.get(e);if(a){a.values.push(...r.values);continue}let o={name:e,privacy:r.privacy,source:r.source,values:[...r.values]};i.set(e,o),n.push(o)}return n}function Ma(e){let t=Da(e.budget);if(t)return{kind:`breakerFallback`,fallback:t};let n=ja(e.dimensions);if(n.length>e.budget.maxDimensionCount)return{kind:`breakerFallback`,fallback:H(`CP_DIMENSION_COUNT_EXCEEDED`,{dimensionCount:n.length,maxDimensionCount:e.budget.maxDimensionCount,routeId:e.output.routeId})};let r=[];for(let t of n){let n=Oa(t,e.budget);if(ka(n))return{kind:`breakerFallback`,fallback:n};r.push(n)}r.sort(Sa);let i=[`schema:1`,Ta(e.output),...r.map(e=>e.encoded)].join(`|`);return i.length>e.budget.maxEncodedLength?{kind:`breakerFallback`,fallback:H(`CP_ENCODED_VARIANT_TOO_LONG`,{encodedHash:ba(i),encodedLength:i.length,maxEncodedLength:e.budget.maxEncodedLength,routeId:e.output.routeId})}:{kind:`variant`,variant:{schemaVersion:1,cacheKey:`cp1:${ye(i)}`,output:e.output,dimensions:r,encodedLength:i.length,budget:{...e.budget}}}}function Na(e){return{routeId:e.routeId,variantCacheKeys:va(e.variantCacheKeys)}}function Pa(e,t){return H(`CP_ROUTE_VARIANT_CEILING_EXCEEDED`,{existingVariantCount:t,maxVariantsPerRoute:e.budget.maxVariantsPerRoute,routeId:e.output.routeId},`privateUncacheable`,`route`)}function Fa(e){if(e.routeBudget&&e.routeBudget.routeId!==e.variant.output.routeId)return{kind:`breakerFallback`,routeBudget:Na(e.routeBudget),fallback:H(`CP_ROUTE_VARIANT_BUDGET_ROUTE_MISMATCH`,{budgetRouteId:e.routeBudget.routeId,routeId:e.variant.output.routeId},`privateUncacheable`,`route`)};let t=Na(e.routeBudget??{routeId:e.variant.output.routeId,variantCacheKeys:[]}),n=t.variantCacheKeys.length,r=ha(t.variantCacheKeys,e.variant.cacheKey);return n>e.variant.budget.maxVariantsPerRoute?{kind:`breakerFallback`,routeBudget:t,fallback:Pa(e.variant,n)}:r.found?{kind:`variant`,variant:e.variant,routeBudget:t,didConsumeRouteVariantBudget:!1}:n>=e.variant.budget.maxVariantsPerRoute?{kind:`breakerFallback`,routeBudget:t,fallback:Pa(e.variant,n)}:{kind:`variant`,variant:e.variant,routeBudget:{routeId:t.routeId,variantCacheKeys:[...t.variantCacheKeys.slice(0,r.index),e.variant.cacheKey,...t.variantCacheKeys.slice(r.index)]},didConsumeRouteVariantBudget:!0}}function Ia(e){let t=Ma({budget:e.budget,dimensions:e.dimensions,output:e.output});return t.kind===`breakerFallback`?{kind:`breakerFallback`,routeBudget:e.routeBudget?Na(e.routeBudget):null,fallback:t.fallback}:Fa({routeBudget:e.routeBudget,variant:t.variant})}function La(e){if(e===null)return{kind:`runtime-cache-entry`,decision:null};switch(e.kind){case`reuse`:return{kind:`runtime-cache-entry`,decision:{canReuse:!0,code:e.proof.code,kind:`reuse`,reuseClass:e.proof.reuseClass}};case`fallback`:return{kind:`runtime-cache-entry`,decision:{canReuse:!1,code:e.fallback.code,kind:`reject`,mode:e.fallback.mode,scope:e.fallback.scope}};default:return wa(e)}}function Ra(e){return typeof e==`number`&&Number.isSafeInteger(e)&&e>=0}var za=`fnv1a64`,Ba={maxEntryCount:64,maxEntryIdLength:512,maxManifestBytes:4096,maxPayloadHashLength:16,maxVariantCacheKeyLength:256},Va=new TextEncoder;function Ha(e,t){return e.id<t.id?-1:+(e.id>t.id)}function Ua(e){let t=new Map;for(let n of e)t.has(n.id)||t.set(n.id,n);return Array.from(t.values()).sort(Ha)}function Wa(e){return Va.encode(e).length}function Ga(e){return ye(e)}function Ka(e){let t=e.replayWindow??{validFromVisibleCommitVersion:e.visibleCommitVersion,validUntilVisibleCommitVersion:e.visibleCommitVersion};return{entries:Ua(e.entries),hashAlgorithm:za,replayWindow:t,schemaVersion:1,visibleCommitVersion:e.visibleCommitVersion}}function qa(e){return JSON.stringify(Ka(e))}function Ja(e){return`static-layout:${Ga(e)}`}function Ya(e){return be.map(t=>[t,e.artifactCompatibility[t]])}function Xa(e){return Ga(JSON.stringify({artifactCompatibilityPairs:Ya(e),layoutId:e.layoutId,rootBoundaryId:e.rootBoundaryId,variantCacheKey:e.variantCacheKey}))}function Za(e){return{...e.artifactCompatibility,graphVersion:`static-layout-graph:${Ga(JSON.stringify({layoutId:e.layoutId,rootBoundaryId:e.rootBoundaryId}))}`,renderEpoch:`static-layout:${Ga(JSON.stringify({layoutId:e.layoutId,rootBoundaryId:e.rootBoundaryId,variantCacheKey:e.variantCacheKey}))}`}}function Qa(e){return{...e,maxEntryCount:Math.min(e.maxEntryCount,8)}}function $a(e){let t=e.entries.slice(0,e.limits.maxEntryCount),n=1,r=t.length,i=null;for(;n<=r;){let a=Math.floor((n+r)/2),o=qa({entries:t.slice(0,a),replayWindow:{validFromVisibleCommitVersion:e.visibleCommitVersion,validUntilVisibleCommitVersion:e.visibleCommitVersion},visibleCommitVersion:e.visibleCommitVersion});Wa(o)<=e.limits.maxManifestBytes?(i=o,n=a+1):r=a-1}return i}function eo(e,t){return Object.hasOwn(e,t)}function to(e){let t=Ja(e.layoutId),n={kind:`layout`,layoutId:e.layoutId,rootBoundaryId:e.artifactCompatibility.rootBoundaryId,routeId:t},r=Ia({budget:ga,dimensions:[],output:n,routeBudget:{routeId:n.routeId,variantCacheKeys:[]}});if(r.kind!==`variant`)return null;let i=Za({artifactCompatibility:e.artifactCompatibility,layoutId:e.layoutId,rootBoundaryId:n.rootBoundaryId,routeId:n.routeId,variantCacheKey:r.variant.cacheKey});return{artifactCompatibility:i,id:e.layoutId,payloadHash:Xa({artifactCompatibility:i,layoutId:e.layoutId,rootBoundaryId:n.rootBoundaryId,routeId:n.routeId,variantCacheKey:r.variant.cacheKey}),privacy:`public`,variantCacheKey:r.variant.cacheKey}}function no(e,t={}){let n=Qa(t.limits??Ba),r=B.readMetadata(e.elements),i=[];for(let t of r.layoutIds){if(i.length>=n.maxEntryCount)break;if(t.length>n.maxEntryIdLength||r.layoutFlags[t]!==`s`||!eo(e.elements,t)||B.parseElementKey(t)?.kind!==`layout`)continue;let a=to({artifactCompatibility:r.artifactCompatibility,layoutId:t});a&&i.push(a)}return i.length===0?null:$a({entries:i,limits:n,visibleCommitVersion:e.visibleCommitVersion})}function ro(e,t){let n=io(e,t);return n&&Vi(n),n}function io(e,t){let n=Object.create(null);function r(i,a){if(a===t.length)return i===e.length;let o=t[a];if(o.startsWith(`:`)&&(o.endsWith(`+`)||o.endsWith(`*`))){let t=o.slice(1,-1),s=+!!o.endsWith(`+`);for(let o=i+s;o<=e.length;o++){let s=e.slice(i,o);if(s.length>0?n[t]=s:delete n[t],r(o,a+1))return!0}return delete n[t],!1}if(o.startsWith(`:`)){if(i>=e.length)return!1;let t=o.slice(1);return n[t]=e[i],r(i+1,a+1)?!0:(delete n[t],!1)}return i>=e.length||e[i]!==o?!1:r(i+1,a+1)}return r(0,0)?n:null}function ao(e,t){let n=0;for(let r=0;r<t.length;r++){let i=t[r],a=r===t.length-1;if(i.startsWith(`:`)&&i.endsWith(`+`))return a&&e.length-n>=1;if(i.startsWith(`:`)&&i.endsWith(`*`))return a;if(n>=e.length)return!1;if(i.startsWith(`:`)){n++;continue}if(e[n]!==i)return!1;n++}return!0}function oo(e,t){function n(r,i){if(i===t.length)return r===e.length;let a=t[i];if(a.startsWith(`:`)&&(a.endsWith(`+`)||a.endsWith(`*`))){let t=+!!a.endsWith(`+`);for(let a=r+t;a<=e.length;a++)if(n(a,i+1))return!0;return!1}return a.startsWith(`:`)?n(r,i+1)||r<e.length&&n(r+1,i+1):r>=e.length||e[r]!==a?!1:n(r+1,i+1)}return n(0,0)}function so(e){if(e.routeManifest===null)return null;let t=V(e.currentPathname,e.basePath),n=V(e.targetPathname,e.basePath),r=Ri(t),i=Ri(n);for(let n of e.routeManifest.segmentGraph.interceptions.values())if(ao(r,n.sourcePatternParts)&&ro(i,n.targetPatternParts)!==null)return t;return null}function co(e){if(e.routeManifest===null)return null;let t=V(e.currentPathname,e.basePath),n=e.currentMatchedPathname?V(e.currentMatchedPathname,e.basePath):null,r=V(e.targetPathname,e.basePath),i=Ri(t),a=n?Ri(n):null,o=Ri(r);for(let r of e.routeManifest.segmentGraph.interceptions.values())if(oo(o,r.targetPatternParts)){if(ao(i,r.sourcePatternParts))return t;if(n!==null&&a!==null&&ao(a,r.sourcePatternParts))return n}return null}var lo=`__vinext_previousNextUrl`,uo=`__vinext_historyIndex`,fo=`__vinext_bfcacheIds`,po=`__vinext_bfcacheVersion`,mo=class{#e;#t=new Map;constructor(e){this.#e=e.maxEntries}clear(){this.#t.clear()}remember(e){if(e.historyIndex===null||(this.#t.delete(e.historyIndex),this.#t.set(e.historyIndex,{bfcacheVersion:e.bfcacheVersion,state:e.state}),this.#t.size<=this.#e))return;let t=this.#t.keys().next().value;typeof t==`number`&&this.#t.delete(t)}resolveRestore(e){let t=Eo(e.historyState);if(t===null)return{kind:`skip`,reason:`missing-history-index`,targetHistoryIndex:t};let n=this.#t.get(t);return n?e.guarded?{kind:`skip`,reason:`guarded`,targetHistoryIndex:t}:n.bfcacheVersion===e.currentBfcacheVersion?{kind:`restore`,state:n.state,targetHistoryIndex:t}:(this.#t.delete(t),{kind:`skip`,reason:`stale-bfcache-version`,targetHistoryIndex:t}):{kind:`skip`,reason:`missing-snapshot`,targetHistoryIndex:t}}},ho=class{#e;#t=0;#n;constructor(e){let t=Co(e.initialHistoryState);this.#e=t===null?0:t+1,this.#n=new mo({maxEntries:e.maxHistoryStateSnapshots})}get currentBfcacheVersion(){return this.#e}beginCacheInvalidationGuard(){this.#t+=1;let e=!1;return()=>{e||(e=!0,this.#t=Math.max(0,this.#t-1))}}isCacheInvalidationGuarded(){return this.#t>0}isCurrentBfcacheVersion(e){return wo(e,this.#e)}readCurrentBfcacheVersionHistoryIds(e){if(this.isCacheInvalidationGuarded())return null;let t=So(e);return t===null?null:this.isCurrentBfcacheVersion(e)?t:null}#r(){this.#e+=1}invalidateClientState(){this.#n.clear(),this.#r()}rememberHistoryStateSnapshot(e){this.#n.remember({bfcacheVersion:this.#e,historyIndex:e.historyIndex,state:e.state})}resolveHistoryStateSnapshotRestore(e){return this.#n.resolveRestore({currentBfcacheVersion:this.#e,guarded:this.isCacheInvalidationGuarded(),historyState:e})}};function go(e){if(!e||typeof e!=`object`)return{};let t={};for(let[n,r]of Object.entries(e))t[n]=r;return t}function _o(e){return!e||typeof e!=`object`||Array.isArray(e)?null:e}function vo(e,t){let n=go(e),r=t.bfcacheIds!==void 0&&(t.bfcacheIds===null||Object.keys(t.bfcacheIds).length===0);return t.previousNextUrl===null?delete n[lo]:n[lo]=t.previousNextUrl,t.traversalIndex!==void 0&&(Ra(t.traversalIndex)?n[uo]=t.traversalIndex:delete n[uo]),t.bfcacheIds!==void 0&&(r?(delete n[fo],delete n[po]):n[fo]={...t.bfcacheIds}),t.bfcacheVersion!==void 0&&(r?delete n[po]:Ra(t.bfcacheVersion)?n[po]=t.bfcacheVersion:delete n[po]),Object.keys(n).length>0?n:null}function yo(e,t){let n=bo(t),r=Eo(t),i=So(t),a=Co(t);return n===null&&r===null&&i===null?e:vo(e,{bfcacheIds:i,bfcacheVersion:i===null?void 0:a,previousNextUrl:n,traversalIndex:r})}function bo(e){let t=_o(e)?.[lo];return typeof t==`string`?t:null}function xo(e){let t=B.parseElementKey(e);return t?.kind===`layout`||t?.kind===`page`||t?.kind===`slot`||t?.kind===`template`}function So(e){let t=_o(e)?.[fo];if(!t||typeof t!=`object`||Array.isArray(t))return null;let n={};for(let[e,r]of Object.entries(t)){if(!xo(e)||typeof r!=`string`)return null;n[e]=r}return n}function Co(e){let t=_o(e)?.[po];return Ra(t)?t:null}function wo(e,t){let n=Co(e);return n!==null&&n===t}function To(e){let t=bo(e),n=So(e),r=Co(e);return t===null&&n===null?null:vo(null,{bfcacheIds:n,bfcacheVersion:n===null?void 0:r,previousNextUrl:t})}function Eo(e){let t=_o(e)?.[uo];return Ra(t)?t:null}function Do(e){let t=Eo(e.historyState),n=`unknown`;return e.currentHistoryIndex!==null&&t!==null&&(t<e.currentHistoryIndex?n=`back`:t>e.currentHistoryIndex&&(n=`forward`)),{direction:n,historyState:e.historyState,targetHistoryIndex:t}}var Oo=`__next-page-redirect`;function ko(e){if(typeof e!=`object`||!e||!(`getElementById`in e))return!1;let{getElementById:t}=e;return typeof t==`function`&&t.call(e,Oo)!==null}var Ao=class{#e=null;#t=0;reset(){this.#e=null}navigate(e,t,n){let r=this.#e;if(r?.href===t&&r.historyUpdateMode===n)return;let i=this.#t+1;this.#t=i,this.#e={href:t,historyUpdateMode:n,token:i};let a=()=>{let r=this.#e;r?.href!==t||r.historyUpdateMode!==n||r.token!==i||(n===`replace`?e.location.replace(t):e.location.assign(t))};if(typeof e.requestAnimationFrame==`function`){e.requestAnimationFrame(()=>{e.setTimeout(a,0)});return}e.setTimeout(a,0)}},jo=`[\\u0000-\\u001F \\u200B\\uFEFF]*`,Mo=`[\\r\\n\\t]*`;function No(e){let t=e.split(``).join(Mo);return RegExp(`^${jo}${t}${Mo}:`,`i`)}var Po=[No(`javascript`),No(`data`),No(`vbscript`)],Fo=`Next.js has blocked a javascript: URL as a security precaution.`;function Io(e){let t=``+e;return Po.some(e=>e.test(t))}function Lo(){console.error(Fo)}function Ro(e,t=Error){if(Io(e))throw Lo(),new t(Fo)}var zo=10;function Bo(e,t){return t===null||!Io(t)?!1:(e.body?.cancel().catch(()=>{}),Lo(),!0)}function Vo(e,t){let n=new URL(e,t);return Ti(n),`${Ei(n.pathname)}${n.search}${n.hash}`}function Ho(e,t){let n=new URL(e,t);return`${n.pathname}${n.search}${n.hash}`}function Uo(e){if(e.targetUrl.origin!==e.origin)return{href:e.targetUrl.href,kind:`terminal-hard-navigation`,reason:`externalRedirect`,redirectDepth:e.redirectDepth};let t=e.redirectedHref;if(t===Vo(e.currentHref,e.origin))return{href:t,kind:`no-redirect`};let n=e.maxRedirectDepth??zo;return e.redirectDepth>=n?{href:t,kind:`terminal-hard-navigation`,reason:`maxRedirectsExceeded`,redirectDepth:e.redirectDepth}:{href:t,historyUpdateMode:e.historyUpdateMode,kind:`follow`,previousNextUrl:e.requestPreviousNextUrl,redirectDepth:e.redirectDepth+1}}function Wo(e){let t=new URL(e.responseUrl,e.origin);return Uo({...e,redirectedHref:gi(t.href,e.currentHref,e.origin),targetUrl:t})}function Go(e){let t=new URL(e.streamedRedirectTarget,e.origin);return Uo({...e,redirectedHref:Ho(e.streamedRedirectTarget,e.origin),targetUrl:t})}var U={cacheProofRejected:`NC_CACHE_REJECT`,cacheReuseTokenRejected:`NC_CACHE_TOKEN_REJECT`,commitCurrent:`NC_COMMIT`,crossDocumentFlight:`NC_CROSS_DOC_FLIGHT`,fetchFresh:`NC_FETCH_FRESH`,invalidRscPayload:`NC_RSC_INVALID`,interceptedCommitCurrent:`NC_INTERCEPT_COMMIT`,interceptedRejectedIncompatibleRoot:`NC_INTERCEPT_REJECT_ROOT`,interceptedRejectedMissingProof:`NC_INTERCEPT_REJECT_MISSING_PROOF`,interceptedRejectedMissingSlotProof:`NC_INTERCEPT_REJECT_SLOT`,interceptedRejectedTargetMismatch:`NC_INTERCEPT_REJECT_TARGET`,interceptedRejectedUndeclaredTopology:`NC_INTERCEPT_REJECT_GRAPH`,interceptedRejectedUnknownSource:`NC_INTERCEPT_REJECT_SOURCE`,optimisticRouteShell:`NC_OPTIMISTIC_SHELL`,prefetchOnly:`NC_PREFETCH_ONLY`,prefetchResponseReuse:`NC_PREFETCH_REUSE`,proceedToCommit:`NC_RSC_PROCEED`,redirectFollow:`NC_RSC_REDIRECT_FOLLOW`,redirectTerminalDepth:`NC_RSC_REDIRECT_DEPTH`,redirectTerminalExternal:`NC_RSC_REDIRECT_EXTERNAL`,requestWork:`NC_REQUEST`,rootBoundaryChanged:`NC_ROOT`,rootBoundaryUnknown:`NC_ROOT_UNKNOWN`,rscCompatibilityMismatch:`NC_RSC_COMPAT_MISMATCH`,rscNavigationError:`NC_RSC_NAV_ERROR`,sameDocumentScroll:`NC_SAME_DOC_SCROLL`,samePageSearch:`NC_SAME_PAGE_SEARCH`,serverActionRedirectCompatibilityMismatch:`NC_SA_REDIRECT_COMPAT`,serverActionRscCompatibilityMismatch:`NC_SA_RSC_COMPAT`,staleOperation:`NC_STALE`,streamedRedirectLoop:`NC_RSC_STREAMED_REDIRECT_LOOP`,visitedResponseReuse:`NC_VISITED_REUSE`},Ko={hardNavigate:`NT_HARD_NAVIGATE`,noCommit:`NT_NO_COMMIT`,visibleCommit:`NT_VISIBLE_COMMIT`};function qo(e){return{...e.activeNavigationId===void 0?{}:{activeNavigationId:e.activeNavigationId},currentRootLayoutTreePath:e.currentRootLayoutTreePath,currentVisibleCommitVersion:e.currentVisibleCommitVersion,nextRootLayoutTreePath:e.nextRootLayoutTreePath,...e.startedNavigationId===void 0?{}:{startedNavigationId:e.startedNavigationId},startedVisibleCommitVersion:e.startedVisibleCommitVersion}}function Jo(e,t={}){return{code:e,fields:{...t}}}function W(e,t={}){return{schemaVersion:0,entries:[Jo(e,t)]}}function Yo(e,t,n={}){return{schemaVersion:e.schemaVersion,entries:[Jo(t,n),...e.entries]}}var Xo=[`navigation`,`visibleCommit`,`graphVersion`,`cacheVariant`];function Zo(e,t,n){switch(e){case`navigation`:return t.navigationId===n.activeNavigationId?{kind:`satisfied`}:{kind:`mismatch`,reason:`staleNavigation`};case`visibleCommit`:return t.baseVisibleCommitVersion===n.visibleCommitVersion?{kind:`satisfied`}:{kind:`mismatch`,reason:`staleVisibleCommit`};case`graphVersion`:return t.graphVersion===null||n.graphVersion===null?{kind:`absent`,missingReason:`graphVersionMissing`}:t.graphVersion===n.graphVersion?{kind:`satisfied`}:{kind:`mismatch`,reason:`graphVersionMismatch`};case`cacheVariant`:{let e=t.cacheVariantFingerprint,r=n.installedCacheVariantFingerprint;return e===void 0||r===null?{kind:`absent`,missingReason:`cacheVariantMissing`}:e===r?{kind:`satisfied`}:{kind:`mismatch`,reason:`cacheVariantMismatch`}}default:throw Error(`[vinext] Unknown operation-token dimension: `+String(e))}}function Qo(e,t,n){let r=new Set(n.require),i=new Set([...n.check,...n.require]);for(let n of Xo){if(!i.has(n))continue;let a=Zo(n,e,t);if(a.kind===`mismatch`)return{authorized:!1,reason:a.reason};if(a.kind===`absent`&&r.has(n))return{authorized:!1,reason:a.missingReason}}return{authorized:!0,token:e}}function $o(e,t){return Qo(e,{activeNavigationId:t.activeNavigationId,visibleCommitVersion:t.visibleCommitVersion,graphVersion:e.graphVersion,installedCacheVariantFingerprint:e.cacheVariantFingerprint??null},{check:[`navigation`,`visibleCommit`],require:[`navigation`,`visibleCommit`]})}function es(e,t){return Qo(e,{activeNavigationId:e.navigationId,visibleCommitVersion:e.baseVisibleCommitVersion,graphVersion:t.graphVersion,installedCacheVariantFingerprint:t.installedCacheVariantFingerprint},{check:[`graphVersion`,`cacheVariant`],require:[]})}function ts(e,t){return e===`push`||t===`push`?`push`:`replace`}var ns=`\0`,rs=`CP_CACHE_ENTRY_PROOF_MISSING`;function is(e){let t=e.work.kind===`traverseFlight`?{traverseDirection:e.work.direction}:{};return{kind:`requestWork`,token:e.state.nextOperationToken,work:e.work,trace:W(U.requestWork,{eventKind:e.eventKind,targetHref:as(e.work),...t})}}function as(e){switch(e.kind){case`flight`:case`prefetch`:return e.href;case`traverseFlight`:return null;default:throw Error(`[vinext] Unknown requested navigation work: `+String(e))}}function os(e,t={}){return{fetchResultSource:e.source,...t}}function ss(e){return{discardBody:e.discardBody,kind:`hardNavigate`,...e.hardNavigationMode===void 0?{}:{hardNavigationMode:e.hardNavigationMode},reason:e.reason,trace:W(e.reasonCode,os(e.facts,{...e.redirectSignal===void 0?{}:{redirectSignal:e.redirectSignal},redirectDepth:e.facts.redirectDepth,targetHref:e.url})),url:e.url}}function cs(e){return{discardBody:e.discardBody,kind:`followRedirect`,redirect:e.redirect,trace:W(U.redirectFollow,os(e.facts,{redirectDepth:e.redirect.redirectDepth,redirectSignal:e.redirectSignal,targetHref:e.redirect.href}))}}function ls(e){switch(e){case`externalRedirect`:return{hardNavigationReason:`externalRedirectTarget`,traceReasonCode:U.redirectTerminalExternal};case`maxRedirectsExceeded`:return{hardNavigationReason:`redirectDepthExhausted`,traceReasonCode:U.redirectTerminalDepth};default:throw Error(`[vinext] Unknown RSC redirect terminal reason: `+String(e))}}function us(e){if(!e.responseOk||!e.isRscContentType||!e.hasBody){let t=gi(e.responseUrl,e.currentHref,e.origin);return ss({discardBody:!1,facts:e,reason:`invalidRscPayload`,reasonCode:U.invalidRscPayload,url:t})}let t=_i({clientCompatibilityId:e.clientCompatibilityId,currentHref:e.currentHref,origin:e.origin,responseCompatibilityId:e.compatibilityIdHeader,responseUrl:e.responseUrl});if(t.kind===`hard-navigate`)return ss({discardBody:!1,facts:e,reason:`rscCompatibilityMismatch`,reasonCode:U.rscCompatibilityMismatch,url:t.hardNavigationTarget});if(e.responseUrl!==null){let t=Wo({currentHref:e.currentHref,historyUpdateMode:e.effectiveHistoryUpdateMode,origin:e.origin,redirectDepth:e.redirectDepth,requestPreviousNextUrl:e.requestPreviousNextUrl,responseUrl:e.responseUrl});if(t.kind===`terminal-hard-navigation`){let n=ls(t.reason);return ss({discardBody:!1,facts:e,reason:n.hardNavigationReason,reasonCode:n.traceReasonCode,redirectSignal:`response-url`,url:t.href})}if(t.kind===`follow`)return cs({discardBody:!1,facts:e,redirect:{href:t.href,historyUpdateMode:e.effectiveHistoryUpdateMode,previousNextUrl:t.previousNextUrl,redirectDepth:t.redirectDepth},redirectSignal:`response-url`})}if(e.streamedRedirectTarget!==null){let t=ts(e.effectiveHistoryUpdateMode,e.streamedRedirectType),n=Go({currentHref:e.currentHref,historyUpdateMode:t,origin:e.origin,redirectDepth:e.redirectDepth,requestPreviousNextUrl:e.requestPreviousNextUrl,streamedRedirectTarget:e.streamedRedirectTarget});if(n.kind===`terminal-hard-navigation`){let r=ls(n.reason);return ss({discardBody:!0,facts:e,reason:r.hardNavigationReason,reasonCode:r.traceReasonCode,redirectSignal:`streamed-header`,hardNavigationMode:t===`push`?`assign`:`replace`,url:n.href})}return n.kind===`follow`?cs({discardBody:!0,facts:e,redirect:{href:n.href,historyUpdateMode:t,previousNextUrl:n.previousNextUrl,redirectDepth:n.redirectDepth},redirectSignal:`streamed-header`}):ss({discardBody:!0,facts:e,reason:`streamedRedirectLoop`,reasonCode:U.streamedRedirectLoop,redirectSignal:`streamed-header`,url:n.href})}return{discardBody:!1,kind:`proceedToCommit`,trace:W(U.proceedToCommit,os(e))}}function ds(e,t){return W(e,{targetHref:t.targetHref})}function fs(e){let t,n;try{t=new URL(e.currentHref),n=new URL(e.targetHref,e.currentHref)}catch{return{bypassNavigationCache:!1,kind:`flightNavigation`,trace:ds(U.crossDocumentFlight,e)}}let r=t.origin===n.origin&&V(t.pathname,e.basePath)===V(n.pathname,e.basePath),i=t.searchParams.toString()===n.searchParams.toString();return r&&i&&n.hash!==``?{hash:n.hash,kind:`sameDocumentScroll`,mode:e.mode,scroll:e.scroll,trace:ds(U.sameDocumentScroll,e)}:r&&!i?{bypassNavigationCache:!0,kind:`flightNavigation`,trace:ds(U.samePageSearch,e)}:{bypassNavigationCache:!1,kind:`flightNavigation`,trace:ds(U.crossDocumentFlight,e)}}function ps(e){return e.candidate===`missing`?{kind:`miss`}:e.mountedSlotsMatch?e.navigationKind===`refresh`?{kind:`evict`,reason:`refresh`}:e.fresh?{kind:`reuse`}:{kind:`evict`,reason:`stale`}:{kind:`evict`,reason:`mountedSlotsMismatch`}}function ms(e,t,n={}){return W(e,{eventKind:t.navigationKind,targetHref:t.targetHref,...n})}function hs(e,t){return{kind:`fetchFresh`,reason:t,trace:ms(U.fetchFresh,e,{freshFetchReason:t})}}function gs(e){return e.navigationKind===`refresh`?hs(e,`refresh`):!e.bypassNavigationCache&&e.visitedResponse.status===`available`?{kind:`reuseVisitedResponse`,trace:ms(U.visitedResponseReuse,e)}:!e.bypassNavigationCache&&e.prefetch.status===`available`?{kind:`consumePrefetch`,trace:ms(U.prefetchResponseReuse,e)}:e.navigationKind===`navigate`?e.optimisticRouteShell.status===`available`?{kind:`attemptOptimisticRouteShell`,trace:ms(U.optimisticRouteShell,e)}:hs(e,e.bypassNavigationCache?`cacheBypassed`:e.optimisticRouteShell.reason):e.bypassNavigationCache?hs(e,`cacheBypassed`):hs(e,`cacheMiss`)}function _s(e){return e.visitedResponse.status===`available`?{kind:`skip`,reason:`visitedResponseAvailable`}:e.navigationKind===`refresh`?{kind:`skip`,reason:`refresh`}:e.bypassNavigationCache?{kind:`skip`,reason:`cacheBypassed`}:{kind:`probe`}}function vs(e){return{layoutIds:e.layoutIds,rootBoundaryId:e.rootBoundaryId,rootLayoutTreePath:e.rootBoundaryId,slotBindings:e.slotBindings}}function ys(e){let t=e.indexOf(ns);return t===-1?e:e.slice(0,t)}function bs(e){let t=ys(e);return t.startsWith(`route:/`)?t.slice(6):null}function xs(e){try{return new URL(e,`https://vinext.local`).pathname}catch{let[t=``]=e.split(`#`),[n=``]=t.split(`?`);return n===``?`/`:n}}function Ss(e){return Ri(xs(e))}function Cs(e,t){let n=Ss(t);for(let t of e.segmentGraph.routes.values())if(ro(n,t.patternParts)!==null)return t;return null}function ws(e,t){return ro(Ss(t),e.patternParts)!==null}function Ts(e){let t=ys(e.routeId),n=e.routeManifest.segmentGraph.routes.get(t);if(n&&ws(n,e.matchedUrl))return n;let r=n===void 0?bs(e.routeId):null;if(r!==null){let t=Cs(e.routeManifest,r);if(t!==null)return t}return Cs(e.routeManifest,e.matchedUrl)}function Es(e,t){return t.interception===null?Ts({matchedUrl:t.matchedUrl,routeId:t.routeId,routeManifest:e}):Ts({matchedUrl:t.interception.sourceMatchedUrl,routeId:t.interception.sourceRouteId,routeManifest:e})}function Ds(e,t){let n=[];for(let r of t.slotIds){let i=e.segmentGraph.slotBindings.get(`${t.id}::${r}`);i&&n.push({ownerLayoutId:i.ownerLayoutId,slotId:i.slotId,state:i.state})}return n.sort((e,t)=>Ge(e.slotId,t.slotId))}function Os(e,t){return t.rootBoundaryId===null?null:e.segmentGraph.rootBoundaries.get(t.rootBoundaryId)?.treePath??null}function ks(e){let t=e.routeManifest===null?null:Es(e.routeManifest,e.snapshot);if(t===null||e.routeManifest===null)return{kind:`unknown`};let n=e.slotBindingSource===`manifestTarget`&&e.snapshot.interception===null;return{kind:`known`,topology:{layoutIds:t.layoutIds,rootBoundaryId:t.rootBoundaryId,rootLayoutTreePath:Os(e.routeManifest,t),slotBindings:n?Ds(e.routeManifest,t):e.snapshot.slotBindings}}}function As(e,t){let n=Ss(t.sourceMatchedUrl),r=Ss(t.targetMatchedUrl),i=Ts({matchedUrl:t.targetMatchedUrl,routeId:t.targetRouteId,routeManifest:e}),a=e.segmentGraph.interceptionsBySlotId.get(t.slotId)??[];for(let e of a){if(!ao(n,e.sourcePatternParts))continue;let t=ro(r,e.targetPatternParts),a=t===null&&oo(r,e.targetPatternParts);if(!(t===null&&!a)&&!(!a&&e.targetRouteId!==null&&i?.id!==e.targetRouteId))return e}return null}function js(e){return e.state.traceFields?{...e.state.traceFields,currentRootLayoutTreePath:e.currentRootLayoutTreePath,nextRootLayoutTreePath:e.nextRootLayoutTreePath}:qo({currentRootLayoutTreePath:e.currentRootLayoutTreePath,currentVisibleCommitVersion:e.state.visibleCommitVersion,nextRootLayoutTreePath:e.nextRootLayoutTreePath,startedVisibleCommitVersion:e.event.token.baseVisibleCommitVersion})}function Ms(e,t){return e===null||t===null?`rootBoundaryUnknown`:e===t?`currentRootBoundary`:`rootBoundaryChanged`}function Ns(e,t){return Ps(vs(e),vs(t))}function Ps(e,t){if(Ms(e.rootBoundaryId,t.rootBoundaryId)!==`currentRootBoundary`)return[];let n=[],r=Math.min(e.layoutIds.length,t.layoutIds.length);for(let i=0;i<r;i++){let r=e.layoutIds[i];if(r!==t.layoutIds[i])break;n.push(r)}return n}function Fs(e,t){return Is(e,Ns(e,t))}function Is(e,t){if(t.length===0)return[];let n=new Set(t),r=[],i=new Set;for(let t of e.mountedParallelSlots)t.ownerLayoutId!==null&&n.has(t.ownerLayoutId)&&(i.has(t.slotId)||(r.push(t.slotId),i.add(t.slotId)));return r}function Ls(e,t){let n=Ns(e,t);return[...n,...Is(e,n)]}function Rs(e){return Ps(e.currentTopology,e.targetTopology)}function zs(e){if(e.lane===`traverse`)return[];let t=Ps(e.currentTopology,e.targetTopology);return t.length===0?[]:Bs({currentSlotBindings:e.currentTopology.slotBindings,preservedLayoutIds:t,targetSlotBindings:e.targetTopology.slotBindings})}function Bs(e){let t=new Set(e.preservedLayoutIds),n=new Set;for(let t of e.currentSlotBindings)t.state!==`unmatched`&&n.add(t.slotId);let r=[],i=new Set;for(let a of e.targetSlotBindings)a.ownerLayoutId!==null&&t.has(a.ownerLayoutId)&&a.state!==`active`&&n.has(a.slotId)&&(i.has(a.slotId)||(r.push(a.slotId),i.add(a.slotId)));return r.sort(Ge)}function Vs(e){return e.interception?{matchedUrl:e.interception.sourceMatchedUrl,routeId:e.interception.sourceRouteId}:{matchedUrl:bs(e.routeId)??e.matchedUrl,routeId:e.routeId}}function Hs(e){return{kind:`hardNavigate`,reason:`interceptionProofRejected`,token:e.event.token,trace:W(e.reasonCode,e.traceFields),url:e.event.result.href}}function Us(e){return e===void 0?{kind:`accepted`,decision:null}:e.decision===null?{kind:`rejected`,decision:null}:e.decision.canReuse?{kind:`accepted`,decision:e.decision}:{kind:`rejected`,decision:e.decision}}function Ws(e,t){return t===null?{...e,cacheProofCode:rs}:{...e,cacheProofCode:t.code,cacheProofMode:t.mode,cacheProofScope:t.scope}}function Gs(e){return{kind:`hardNavigate`,reason:`cacheProofRejected`,token:e.event.token,trace:W(U.cacheProofRejected,Ws(e.traceFields,e.rejection.decision)),url:e.event.result.href}}function Ks(e){return{kind:`hardNavigate`,reason:`cacheReuseTokenRejected`,token:e.event.token,trace:W(U.cacheReuseTokenRejected,{...e.traceFields,cacheReuseTokenReason:e.reason}),url:e.event.result.href}}function qs(e,t){return t===null?e:{...e,cacheProofCode:t.code,cacheProofReuseClass:t.reuseClass}}function Js(e){return e===null?{}:{cacheEntryReuseDecision:e}}function Ys(e){let t=e.targetSnapshot.interception;if(!t)return{kind:`rejected`,reasonCode:U.interceptedRejectedMissingProof};if(t.targetMatchedUrl!==e.targetSnapshot.matchedUrl)return{kind:`rejected`,reasonCode:U.interceptedRejectedTargetMismatch};let n=Vs(e.currentSnapshot);if(!e.restoredHistorySnapshot&&(t.sourceMatchedUrl!==n.matchedUrl||t.sourceRouteId!==n.routeId))return{kind:`rejected`,reasonCode:U.interceptedRejectedUnknownSource};let r=e.routeManifest===null?null:As(e.routeManifest,t);if(e.routeManifest!==null&&r===null)return{kind:`rejected`,reasonCode:U.interceptedRejectedUndeclaredTopology};let i=Ps(e.currentTopology,e.targetTopology);if(i.length===0)return{kind:`rejected`,reasonCode:U.interceptedRejectedIncompatibleRoot};let a=new Set(i),o=e.targetTopology.slotBindings.find(e=>e.slotId===t.slotId);return!o||o.state!==`active`||o.ownerLayoutId===null||!a.has(o.ownerLayoutId)?{kind:`rejected`,reasonCode:U.interceptedRejectedMissingSlotProof}:r!==null&&o.ownerLayoutId!==r.ownerLayoutId?{kind:`rejected`,reasonCode:U.interceptedRejectedUndeclaredTopology}:{kind:`approved`,preserveElementIds:i,preservePreviousSlotIds:Bs({currentSlotBindings:e.currentTopology.slotBindings,preservedLayoutIds:i,targetSlotBindings:e.targetTopology.slotBindings}).filter(e=>e!==t.slotId)}}function Xs(e){let t=e.event.result.targetSnapshot,n=ks({routeManifest:e.routeManifest,slotBindingSource:`snapshot`,snapshot:e.state.visibleSnapshot}),r=ks({routeManifest:e.routeManifest,slotBindingSource:`manifestTarget`,snapshot:t}),i=js({currentRootLayoutTreePath:n.kind===`known`?n.topology.rootLayoutTreePath:null,event:e.event,nextRootLayoutTreePath:r.kind===`known`?r.topology.rootLayoutTreePath:null,state:e.state});if(e.event.token.lane===`prefetch`)return{kind:`noCommit`,reason:`prefetchOnly`,token:e.event.token,trace:W(U.prefetchOnly,i)};let a=Us(e.event.result.cacheEntryReuseProof);if(a.kind===`rejected`)return Gs({event:e.event,rejection:a,traceFields:i});let o=a.decision;if(o!==null){let t=es(e.event.token,{graphVersion:e.routeManifest?.graphVersion??null,installedCacheVariantFingerprint:null});if(!t.authorized)return Ks({event:e.event,reason:t.reason,traceFields:i})}let s=qs(i,o),c=Js(o);if(t.interception!==null){if(n.kind===`unknown`||r.kind===`unknown`)return Hs({event:e.event,reasonCode:U.interceptedRejectedUndeclaredTopology,traceFields:s});let i=Ys({currentSnapshot:e.state.visibleSnapshot,currentTopology:n.topology,restoredHistorySnapshot:e.event.result.restoredHistorySnapshot===!0,routeManifest:e.routeManifest,targetSnapshot:t,targetTopology:r.topology});return i.kind===`rejected`?Hs({event:e.event,reasonCode:i.reasonCode,traceFields:s}):{kind:`proposeCommit`,proposal:{...c,preserveAbsentSlots:!1,preserveElementIds:i.preserveElementIds,preservePreviousSlotIds:i.preservePreviousSlotIds,reason:`interceptedCurrentRootBoundary`,targetSnapshot:t},token:e.event.token,trace:W(U.interceptedCommitCurrent,s)}}let l=n.kind===`unknown`||r.kind===`unknown`?`rootBoundaryUnknown`:Ms(n.topology.rootBoundaryId,r.topology.rootBoundaryId);if(l===`rootBoundaryChanged`)return{kind:`hardNavigate`,reason:`rootBoundaryChanged`,token:e.event.token,trace:W(U.rootBoundaryChanged,s),url:e.event.result.href};if(l===`rootBoundaryUnknown`)return{kind:`proposeCommit`,proposal:{...c,preserveAbsentSlots:!1,preserveElementIds:[],preservePreviousSlotIds:[],reason:`unprovenTopologyFallback`,targetSnapshot:t},token:e.event.token,trace:W(U.rootBoundaryUnknown,s)};if(n.kind!==`known`||r.kind!==`known`)throw Error(`[vinext] Current-root navigation planning requires manifest topology`);return{kind:`proposeCommit`,proposal:{...c,preserveAbsentSlots:!1,preserveElementIds:Rs({currentTopology:n.topology,lane:e.event.token.lane,targetTopology:r.topology}),preservePreviousSlotIds:zs({currentTopology:n.topology,lane:e.event.token.lane,targetTopology:r.topology}),reason:`currentRootBoundary`,targetSnapshot:t},token:e.event.token,trace:W(U.commitCurrent,s)}}function Zs(e){switch(e.event.kind){case`navigate`:return is({eventKind:e.event.kind,state:e.state,work:{href:e.event.href,kind:`flight`,mode:e.event.mode}});case`refresh`:return is({eventKind:e.event.kind,state:e.state,work:{href:e.state.visibleSnapshot.displayUrl,kind:`flight`,mode:`refresh`}});case`traverse`:return is({eventKind:e.event.kind,state:e.state,work:{direction:e.event.direction,historyState:e.event.historyState,kind:`traverseFlight`}});case`prefetch`:return is({eventKind:e.event.kind,state:e.state,work:{href:e.event.href,kind:`prefetch`}});case`flightResponseArrived`:return Xs({event:e.event,routeManifest:e.routeManifest,state:e.state});default:{let t=e.event;throw Error(`[vinext] Unknown navigation event: `+String(t))}}}function Qs(e){if(e.clientCompatibilityId===null||!e.isRscContentType||_i({clientCompatibilityId:e.clientCompatibilityId,currentHref:e.currentHref,origin:e.origin,responseCompatibilityId:e.compatibilityIdHeader,responseUrl:e.responseUrl}).kind===`compatible`)return{kind:`proceed`,trace:W(U.proceedToCommit,{})};if(e.actionRedirectHref!==null)return{kind:`hardNavigate`,url:e.actionRedirectHref,historyMode:e.actionRedirectType===`push`?`assign`:`replace`,clearClientNavigationCaches:!0,reason:`serverActionRedirectCompatibilityMismatch`,trace:W(U.serverActionRedirectCompatibilityMismatch,{targetHref:e.actionRedirectHref})};let t=e.currentHref;return{kind:`hardNavigate`,url:t,clearClientNavigationCaches:!1,reason:`serverActionRscCompatibilityMismatch`,trace:W(U.serverActionRscCompatibilityMismatch,{targetHref:t})}}function $s(e){return{kind:`hardNavigate`,url:e.currentHref,reason:`rscNavigationError`,trace:W(U.rscNavigationError,{targetHref:e.currentHref})}}var G={classifyEarlyNavigationIntent:fs,classifyNavigationPrefetchProbe:_s,classifyNavigationReuse:gs,classifyRscFetchResult:us,classifyRscNavigationError:$s,classifyRootBoundaryTransition:Ms,classifyServerActionResult:Qs,classifyVisitedResponseCacheCandidate:ps,plan:Zs,resolveCurrentRootBoundaryElementPersistence:Ls,resolveMountedParallelSlotPersistence:Fs,resolveSameLayoutAncestorPersistence:Ns};function ec(e){return/^[a-z][a-z0-9+.-]*:/i.test(e)||e.startsWith(`//`)}var tc=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/;function nc(e){let t=e.charCodeAt(0);return(t>=65&&t<=90||t>=97&&t<=122)&&tc.test(e)}function rc(e){return nc(e)||e.startsWith(`//`)}function ic(){let{origin:e,href:t}=window.location;if(e)return e;try{return new URL(t).origin}catch{return null}}function ac(e){let t=ic();if(!t)return null;try{let n=e.startsWith(`//`)?new URL(e,t):new URL(e);if(n.origin===t)return n.pathname+n.search+n.hash}catch{}return null}function oc(e,t){let n=ac(e);if(n==null||!t)return n;try{let e=new URL(n,`http://vinext.local`);return un(e.pathname,t)?V(e.pathname,t)+e.search+e.hash:null}catch{return n}}function sc(e,t){return!t||!e.startsWith(`/`)||rc(e)?e:t+e}function cc(e,t,n=``){let r=t??window.location.href;if(!r||e.startsWith(`/`)||rc(e))return e;try{let t=new URL(e,r);return(n&&t.pathname===n?``:n?V(t.pathname,n):t.pathname)+t.search+t.hash}catch{return e}}function lc(e,t,n=``){let r=cc(e,t,n);return n?r===``?n:r.startsWith(`?`)||r.startsWith(`#`)?n+r:sc(r,n):sc(r,n)}var uc=String.raw`[\w-]+-Google|Google-[\w-]+|Chrome-Lighthouse|Slurp|DuckDuckBot|baiduspider|yandex|sogou|bitlybot|tumblr|vkShare|quora link preview|redditbot|ia_archiver|Bingbot|BingPreview|applebot|facebookexternalhit|facebookcatalog|meta-externalagent|meta-externalfetcher|Twitterbot|LinkedInBot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|Yeti|googleweblight`,dc=/Googlebot(?!-)|Googlebot$/i,fc=new Map;function pc(e){let t=e||uc,n=fc.get(t);if(n)return n;let r=new RegExp(t,`i`);return fc.set(t,r),r}function mc(e,t){return e?dc.test(e)?!0:pc(t).test(e):!1}var hc=class extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}},gc=class extends URLSearchParams{append(){throw new hc}delete(){throw new hc}set(){throw new hc}sort(){throw new hc}},_c=Symbol.for(`vinext.navigation.pagesNavigationContextAccessor`);function vc(){let e=globalThis[_c];if(!e)return null;try{return e()}catch{return null}}var yc=e({releaseAppPrefetchFetchSlot:()=>Dc,scheduleAppPrefetchFetch:()=>Oc}),bc=Symbol.for(`vinext.appPrefetchFetchSlotRelease`),xc=4,Sc=[],Cc=0,wc=!1;function Tc(){for(wc=!1;Cc<xc;){let e=Sc.shift();if(!e)return;Cc+=1,e()}}function Ec(){wc||(wc=!0,queueMicrotask(Tc))}function Dc(e){let t=e[bc];t!==void 0&&(e[bc]=void 0,t())}function Oc(e,t){return t===`high`?e():new Promise((t,n)=>{Sc.push(()=>{let r=!1,i=()=>{r||(r=!0,--Cc,Tc())};try{e().then(e=>{e[bc]=i,t(e)},e=>{i(),n(e)})}catch(e){i(),n(e)}}),Ec()})}var kc=`modulepreload`,Ac=function(e){return`/`+e},jc={},K=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}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=Ac(t,n),t=s(t),t in jc)return;jc[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:kc,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.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)})};function Mc(e){return null}var Nc=Symbol.for(`vinext.navigation.pagesNavigationNotify`),Pc=50*1024*1024*.9;function Fc(e,t){if(e===void 0||e===``)return t;let n=Number(e);return!Number.isFinite(n)||n<0?t:n*1e3}var Ic=Fc(`0`,3e4),Lc=Fc(`300`,3e4),Rc=3e4;function zc(e){let t;try{t=new URL(e,window.location.href)}catch{return null}return so({basePath:``,currentPathname:window.location.pathname,routeManifest:k()?.bootstrap.routeManifest??null,targetPathname:t.pathname})}function Bc(){return window.location.pathname+window.location.search}function Vc(e){let t=k()?.functions.getPrefetchRouterState?.()??null;return Di({...e,nextUrl:Bc(),includePrefetchHeader:e.prefetchKind!==`full`,prefetchRouterState:t})}function q(){return window.__VINEXT_RSC_PREFETCH_CACHE__||(window.__VINEXT_RSC_PREFETCH_CACHE__=new Map),window.__VINEXT_RSC_PREFETCH_CACHE__}function J(){return window.__VINEXT_RSC_PREFETCHED_URLS__||(window.__VINEXT_RSC_PREFETCHED_URLS__=new Set),window.__VINEXT_RSC_PREFETCHED_URLS__}function Hc(e){return typeof e==`number`&&Number.isFinite(e)&&Number.isInteger(e)&&e>=0}function Uc(e){return typeof e==`number`&&Number.isFinite(e)&&e>=0}function Wc(e){if(e===null||e===``)return;let t=Number(e);return Hc(t)?t:void 0}function Gc(e,t){let n=e.dynamicStaleTimeSeconds;return Hc(n)?n*1e3:t}function Kc(e,t,n){return Uc(t.expiresAt)?t.expiresAt:e+Gc(t,n)}function qc(e,t,n,r=Rc){if(Uc(t.expiresAt))return t.expiresAt;let i=t.dynamicStaleTimeSeconds;return Hc(i)?e+Math.max(i*1e3,r):e+Math.max(n,r)}function Jc(e){return e.expiresAt===void 0?e.snapshot?Kc(e.timestamp,e.snapshot,Lc):e.timestamp+Lc:e.expiresAt}function Yc(e){return e.mountedSlotsHeader===void 0?e.snapshot?.mountedSlotsHeader??null:e.mountedSlotsHeader}function Xc(e){try{let t=new URL(e,`http://vinext.local`);return Ti(t),`${t.pathname}${t.search}`}catch{return null}}function Zc(e){let t=e.indexOf(`\0`);return t===-1?{interceptionContext:null,rscUrl:e}:{interceptionContext:e.slice(t+1),rscUrl:e.slice(0,t)}}function Qc(e,t){return Yc(e)===t||(e.snapshot?.mountedSlotsHeader??null)===t}function $c(e,t,n,r=[]){let i=q(),a=[e,...r];for(let e of a){let r=B.encodeCacheKey(e,t),a=i.get(r);if(a&&a.cacheForNavigation!==!1&&Qc(a,n))return{cacheKey:r,entry:a}}let o=new Set(a.map(e=>Xc(e)).filter(e=>e!==null));if(o.size===0)return null;for(let[e,r]of i){if(r.cacheForNavigation===!1)continue;let i=Zc(e);if(i.interceptionContext!==t)continue;let a=Xc(i.rscUrl);if(!(a===null||!o.has(a))&&Qc(r,n))return{cacheKey:e,entry:r}}return null}function el(e,t=null,n=null,r={}){let i=$c(e,t,n,r.additionalRscUrls);return i===null?!1:i.entry.pending!==void 0||Jc(i.entry)>Date.now()?(ol(q(),i.cacheKey,i.entry),!0):(Y(q(),J(),i.cacheKey,i.entry,r.notifyInvalidation??!0),!1)}function tl(e){return e.snapshot?.buffer.byteLength??e.size??0}var nl=null,rl=0;function il(e){if(nl===e)return rl;let t=0,n=new Set;for(let r of e.values())n.has(r)||(n.add(r),t+=tl(r));return nl=e,rl=t,t}function al(e,t){nl===e&&(rl=Math.max(0,rl+t))}function ol(e,t,n){if(e.get(t)===n){e.delete(t),e.set(t,n);for(let r of n.cacheKeys??[])r===t||e.get(r)!==n||(e.delete(r),e.set(r,n))}}function sl(){let e=q(),t=il(e);if(t<=52428800)return;let n=Date.now(),r=J();for(let[t,i]of e)Jc(i)<=n&&Y(e,r,t,i,!0);if(t=il(e),t<=52428800)return;let i=0;for(;t>Pc&&i<e.size;){let n=e.keys().next().value;if(n!==void 0){let a=e.get(n);if(a){let o=tl(a);if(a.pending!==void 0&&o===0){ol(e,n,a),i+=1;continue}t-=o,Y(e,r,n,a,!0),i=0}else e.delete(n),r.delete(n),i+=1}else break}}function cl(e){e.invalidationTimer!==void 0&&(clearTimeout(e.invalidationTimer),e.invalidationTimer=void 0)}function ll(e){cl(e);let t=e.onInvalidateCallbacks;if(e.onInvalidateCallbacks=void 0,t!==void 0)for(let e of t)try{e()}catch(e){typeof reportError==`function`?reportError(e):console.error(e)}}function Y(e,t,n,r,i){let a=r.cacheKeys??new Set([n]),o=!1;for(let n of a)e.get(n)===r&&(e.delete(n),t.delete(n),o=!0);o&&(al(e,-tl(r)),r.cacheKeys=void 0,i?ll(r):(cl(r),r.onInvalidateCallbacks=void 0))}function ul(e){let t=q(),n=t.get(e);n&&Y(t,J(),e,n,!0)}function dl(e,t){if(t.onInvalidateCallbacks===void 0||t.onInvalidateCallbacks.size===0)return;cl(t);let n=Math.max(0,Jc(t)-Date.now());t.invalidationTimer=setTimeout(()=>{ul(e)},n)}function fl(e,t){t!==void 0&&(e.onInvalidateCallbacks===void 0&&(e.onInvalidateCallbacks=new Set),e.onInvalidateCallbacks.add(t))}function pl(e,t){if(t===void 0)return;let n=q().get(e);n&&(fl(n,t),n.outcome===`cache-seeded`&&dl(e,n))}function ml(){let e=q(),t=J();for(let[n,r]of e)Y(e,t,n,r,!0);t.clear(),k()?.functions.pingVisibleLinks?.()}function hl(e,t,n=null,r=null,i=Ic){let a=B.encodeCacheKey(e,n),o=q(),s=o.get(a);s&&Y(o,J(),a,s,!1);let c=Date.now(),l={cacheForNavigation:!0,cacheKeys:new Set([a]),expiresAt:Kc(c,t,i),mountedSlotsHeader:r,outcome:`cache-seeded`,size:t.buffer.byteLength,snapshot:t,timestamp:c};o.set(a,l),al(o,t.buffer.byteLength),J().add(a),dl(a,l),sl()}function gl(e,t,n=null){let r=B.encodeCacheKey(e,n),i=q(),a=i.get(r);a?.snapshot===t&&Y(i,J(),r,a,!1)}function _l(e,t,n=null){let r=Wc(e.headers.get(F));return{compatibilityIdHeader:e.headers.get(si),buffer:t,contentType:e.headers.get(`content-type`)??`text/x-component`,...r===void 0?{}:{dynamicStaleTimeSeconds:r},mountedSlotsHeader:e.headers.get(P),paramsHeader:e.headers.get(oe),renderedPathAndSearch:vl(e.headers.get(se)),url:n??e.url}}function vl(e){if(e===null||e===``)return null;try{let t=decodeURIComponent(e);return t.startsWith(`/`)?t:null}catch{return null}}async function yl(e){try{return _l(e,await e.arrayBuffer())}finally{Dc(e)}}function bl(e,t=!0){let n=new Headers({"content-type":e.contentType});return e.mountedSlotsHeader!=null&&n.set(P,e.mountedSlotsHeader),e.compatibilityIdHeader!=null&&n.set(si,e.compatibilityIdHeader),Hc(e.dynamicStaleTimeSeconds)&&n.set(F,String(e.dynamicStaleTimeSeconds)),e.paramsHeader!=null&&n.set(oe,e.paramsHeader),e.renderedPathAndSearch!=null&&n.set(se,encodeURIComponent(e.renderedPathAndSearch)),new Response(t?e.buffer.slice(0):e.buffer,{status:200,headers:n})}function xl(e,t,n=null,r=null,i,a={}){let o=B.encodeCacheKey(e,n),s=q(),c=J(),l=Date.now(),u=s.get(o);u&&Y(s,c,o,u,!1);let d={cacheForNavigation:a.cacheForNavigation??!0,cacheKeys:new Set([o]),mountedSlotsHeader:r,optimisticRouteShell:a.optimisticRouteShell===!0,outcome:`pending`,prefetchKind:a.prefetchKind??(a.optimisticRouteShell===!0?`loading-shell`:`navigation`),searchAgnosticShell:a.searchAgnosticShell===!0,timestamp:l};fl(d,i?.onInvalidate),d.pending=t.then(async e=>{if(e.ok){let t=await yl(e);if(s.get(o)!==d)return;let n=tl(d);if(d.snapshot=t,d.size=t.buffer.byteLength,al(s,d.size-n),d.expiresAt=qc(d.timestamp,d.snapshot,a.fallbackTtlMs??Lc,a.minimumTtlMs),a.prepareSnapshot)try{let e=await a.prepareSnapshot(t);if(s.get(o)!==d)return;d.preparedElements=e}catch{}Sl(s,c,o,d),sl()}else Dc(e),Y(s,c,o,d,!1)}).catch(()=>{Y(s,c,o,d,!1)}).finally(()=>{s.get(o)===d&&(d.pending=void 0,d.snapshot&&(d.outcome=`cache-seeded`,dl(o,d)))}),s.set(o,d),sl()}function Sl(e,t,n,r){if(r.cacheForNavigation===!1)return;let i=r.snapshot?.renderedPathAndSearch;if(!i)return;let a=Zc(n),o=B.encodeCacheKey(i,a.interceptionContext);if(o===n)return;let s=e.get(o);s&&s!==r&&Y(e,t,o,s,!1),r.cacheKeys??=new Set([n]),r.cacheKeys.add(o),e.set(o,r),t.add(o)}function Cl(e,t=null,n=null,r){let i=q(),a=B.encodeCacheKey(e,t),o=i.get(a);o&&o.cacheForNavigation!==!1&&!Qc(o,n)&&Y(i,J(),a,o,!1);let s=$c(e,t,n,r?.additionalRscUrls);if(!s)return null;let{cacheKey:c,entry:l}=s;return wl(c,l,n)}function wl(e,t,n){let r=q();if(t.pending||t.outcome!==`cache-seeded`||t.cacheForNavigation===!1)return null;if(t.snapshot){if(!Qc(t,n))return null;if(Jc(t)<=Date.now())return Y(r,J(),e,t,!1),null;Y(r,J(),e,t,!1);let i=t.snapshot;return t.expiresAt!==void 0||t.snapshot.expiresAt!==void 0?{...i,expiresAt:Jc(t),...t.preparedElements?{preparedElements:t.preparedElements}:{}}:t.preparedElements?{...i,preparedElements:t.preparedElements}:i}return null}async function Tl(e,t=null,n=null,r){let i=q(),a=$c(e,t,n,r?.additionalRscUrls);if(!a)return null;let{cacheKey:o,entry:s}=a;return s.pending!==void 0&&(await s.pending.catch(()=>{}),i.get(o)!==s)||r?.shouldConsume?.()===!1?null:wl(o,s,n)}var El=Symbol.for(`vinext.clientNavigationState`),Dl=Symbol.for(`vinext.mountedSlotsHeader`);function Ol(e){let t=window;t[Dl]=e}function kl(){return window[Dl]??null}function X(){let e=window;return e[El]??={listeners:new Set,cachedSearch:window.location.search,cachedReadonlySearchParams:new gc(window.location.search),cachedPathname:V(window.location.pathname,``),clientParams:{},clientParamsJson:`{}`,pendingClientParams:null,pendingClientParamsJson:null,pendingPathname:null,pendingPathnameNavId:null,originalPushState:window.history.pushState.bind(window.history),originalReplaceState:window.history.replaceState.bind(window.history),patchInstalled:!1,hasPendingNavigationUpdate:!1,suppressUrlNotifyCount:0,navigationSnapshotActiveCount:0},e[El]}function Al(){let e=X();if(e)for(let t of e.listeners)t()}globalThis[Nc]=Al;function jl(){let e=vc();return e?e.pathname:X()?.cachedPathname??`/`}function Ml(){let e=X();if(!e)return!1;let t=!1,n=V(window.location.pathname,``);n!==e.cachedPathname&&(e.cachedPathname=n,t=!0);let r=window.location.search;return r!==e.cachedSearch&&(e.cachedSearch=r,e.cachedReadonlySearchParams=new gc(r),t=!0),t}function Nl(){let e=X();e&&e.navigationSnapshotActiveCount++}var Pl=Symbol.for(`vinext.clientNavigationRenderContext`);function Fl(){if(typeof z.createContext!=`function`)return null;let e=globalThis;return e[Pl]||(e[Pl]=z.createContext(null)),e[Pl]??null}function Il(){let e=Fl();if(!e||typeof z.useContext!=`function`)return null;try{return z.useContext(e)}catch{return null}}function Ll(e,t){let n=window.location.origin,r=new URL(e,n);return{pathname:V(r.pathname,``),searchParams:new gc(r.search),params:t}}function Rl(e){let t=e.searchParams.toString();return t===``?e.pathname:`${e.pathname}?${t}`}var zl=`{}`;function Bl(e){let t=X();if(!t){let t=JSON.stringify(e);t!==zl&&(zl=t);return}let n=JSON.stringify(e);n!==t.clientParamsJson&&(t.clientParams=e,t.clientParamsJson=n,t.pendingClientParams=null,t.pendingClientParamsJson=null,Al())}function Vl(e){let t=X();if(!t)return;let n=JSON.stringify(e);n!==t.clientParamsJson&&n!==t.pendingClientParamsJson&&(t.pendingClientParams=e,t.pendingClientParamsJson=n,t.hasPendingNavigationUpdate=!0)}function Hl(e,t){let n=X();n&&(n.pendingPathname=V(e,``),n.pendingPathnameNavId=t)}function Ul(e){let t=X();t&&(t.pendingPathnameNavId===null||t.pendingPathnameNavId===e)&&(t.pendingPathname=null,t.pendingPathnameNavId=null)}function Wl(e){let t=X();return t?(t.listeners.add(e),()=>{t.listeners.delete(e)}):()=>{}}function Gl(){let e=Il(),t=z.useSyncExternalStore(Wl,jl,()=>{let e=c();if(e)return e.pathname;let t=vc();return t?t.pathname:`/`});return e&&(X()?.navigationSnapshotActiveCount??0)>0?e.pathname:t}function Kl(e){let t=X();if(!t)return e();t.suppressUrlNotifyCount+=1;try{return e()}finally{--t.suppressUrlNotifyCount}}function ql(e,t){let n=X();if(!n)return;(t?.releaseSnapshot??e!==void 0)&&n.navigationSnapshotActiveCount>0&&--n.navigationSnapshotActiveCount;let r=Ml(),i=!1;n.pendingClientParams!==null&&n.pendingClientParamsJson!==null&&(n.clientParams=n.pendingClientParams,n.clientParamsJson=n.pendingClientParamsJson,n.pendingClientParams=null,n.pendingClientParamsJson=null,i=!0),(n.pendingPathnameNavId===null||e!==void 0&&n.pendingPathnameNavId===e)&&(n.pendingPathname=null,n.pendingPathnameNavId=null);let a=r||n.hasPendingNavigationUpdate;n.hasPendingNavigationUpdate=!1,(r||i)&&l(),a&&Al()}function Jl(e,t,n){Kl(()=>{X()?.originalPushState.call(window.history,e,t,n)})}function Yl(e,t,n){Kl(()=>{X()?.originalReplaceState.call(window.history,e,t,n)})}function Xl(){Yl({...window.history.state??{},__vinext_scrollX:window.scrollX,__vinext_scrollY:window.scrollY},``)}function Zl(e,t,n){let r=k()?.functions.commitHashNavigation;if(r){r(e,t,n);return}let i=To(window.history.state);t===`replace`?Yl(i,``,e):Jl(i,``,e)}function Ql(e){if(!(typeof document>`u`)){if(e.hash!==null){Zt(e.hash,()=>$n(e));return}e.targetHoistedInHead||(document.documentElement.scrollTop=0)}}function $l(e){queueMicrotask(()=>{let t=Qn();if(t===null||t.id!==e.id)return;let n=nr(e);n&&Ql(n)})}function eu(e){if(e&&typeof e==`object`&&`__vinext_scrollY`in e){let{__vinext_scrollX:t,__vinext_scrollY:n}=e;Promise.resolve().then(()=>{let e=window.__VINEXT_RSC_PENDING__??null;e?e.then(()=>Qt(t,n)):Qt(t,n)})}}function tu(e,t){t===`replace`?window.location.replace(e):window.location.assign(e)}async function nu(e,t,n,r=!1,i=`transition`){k()?.functions.notifyLinkNavigationStart?.();let a=e;if(ec(e)){let n=oc(e,``);if(n==null){Ni(e,t);let n=k()?.functions.navigateExternal;if(n){await n(e,t);return}tu(e,t),await new Promise(()=>{});return}a=n}let o=Mc(a);if(o===`pages`||o===`document`){let e=lc(a,window.location.href,``);Ni(e,t),t===`push`&&Xl(),tu(e,t),await new Promise(()=>{});return}let s=lc(a,window.location.href,``);Ni(s,t),t===`push`&&Xl();let c=G.classifyEarlyNavigationIntent({basePath:``,currentHref:window.location.href,mode:t,scroll:n,targetHref:s});if(c.kind===`sameDocumentScroll`){Zn(),Zl(s,c.mode,c.scroll),cn(s),ql(),c.scroll&&Xt(c.hash);return}if(ko(typeof document>`u`?void 0:document)){let e=k()?.functions.navigateExternal;if(e){await e(s,t);return}tu(s,t),await new Promise(()=>{});return}let l=s.indexOf(`#`),u=l===-1?``:s.slice(l),d=n?Xn(u||null):null;n||Zn();let f=k()?.functions.navigate;try{f?await f(s,0,`navigate`,t,void 0,r,void 0,d,i):(t===`replace`?Yl(null,``,s):Jl(null,``,s),ql())}catch(e){throw d&&nr(d),e}d&&$l(d)}var ru=0;function iu(){ru+=1;let e=!1;return()=>{e||(e=!0,ru=Math.max(0,ru-1))}}function au(){return ru>0}function ou(e){queueMicrotask(e)}var su={bfcacheId:`0`,push(e,t){Ro(e),k()?.functions.notifyLinkNavigationStart?.();let n=iu();try{z.startTransition(()=>{nu(e,`push`,t?.scroll!==!1,!0)})}catch(e){throw n(),e}ou(n)},replace(e,t){Ro(e),k()?.functions.notifyLinkNavigationStart?.();let n=iu();try{z.startTransition(()=>{nu(e,`replace`,t?.scroll!==!1,!0)})}catch(e){throw n(),e}ou(n)},back(){window.history.back()},forward(){window.history.forward()},refresh(){if(k()?.functions.clearNavigationCaches?.(),au())return;let e=k()?.functions.navigate;e&&z.startTransition(()=>{e(window.location.href,0,`refresh`,void 0,void 0,!0)})},prefetch(e,t){if(Ro(e),!mc(window.navigator?.userAgent??``)){try{new URL(sc(e,``),window.location.href)}catch{throw Error(`Cannot prefetch '${e}' because it cannot be converted to a URL.`)}(async()=>{let n=e;if(ec(e)){let t=oc(e,``);if(t==null)return;n=t}let r=Mc(n);if(r===`pages`||r===`document`)return;let i=lc(n,window.location.href,``),a=zc(i),o=kl(),s=Vc({fetchPriority:`low`,interceptionContext:a});o&&s.set(P,o);let c=await ki(i,s),l=B.encodeCacheKey(c,a),u=J();if(u.has(l)){pl(l,t?.onInvalidate);return}u.add(l),xl(c,Oc(()=>fetch(c,{headers:s,credentials:`include`,priority:`low`}),`low`),a,o,t,{cacheForNavigation:!1,optimisticRouteShell:!0,prefetchKind:`navigation`})})().catch(e=>{console.error(`[vinext] RSC prefetch setup error:`,e)})}}};function cu(e){return!e||e===`0`?qi:e}function lu(){let e=f(),t=s();if(!e||!t||typeof z.useContext!=`function`)return cu(null);try{let n=z.useContext(e),r=z.useContext(t);return cu(n===null?null:r?.[n])}catch{return cu(null)}}var uu=su;function du(){if(!Gt||typeof z.useContext!=`function`||typeof z.useMemo!=`function`)throw Error(`invariant expected app router to be mounted`);let e=z.useContext(Gt);if(e===null)throw Error(`invariant expected app router to be mounted`);let t=lu();return z.useMemo(()=>({...e,bfcacheId:t}),[e,t])}{let e=X();e&&!e.patchInstalled&&(e.patchInstalled=!0,window.addEventListener(`popstate`,()=>{k()?.functions.notifyLinkNavigationStart?.()}),window.addEventListener(`popstate`,e=>{ae()||(ql(),eu(e.state))}),window.history.pushState=function(t,n,r){e.originalPushState.call(window.history,yo(t,window.history.state),n,r),e.suppressUrlNotifyCount===0&&(k()?.functions.notifyLinkNavigationStart?.(),ql())},window.history.replaceState=function(t,n,r){e.originalReplaceState.call(window.history,yo(t,window.history.state),n,r),e.suppressUrlNotifyCount===0&&(k()?.functions.notifyLinkNavigationStart?.(),ql())})}var fu=new TextEncoder;function pu(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}function mu(e){return typeof e==`string`?fu.encode(e):pu(e[1])}function hu(){return globalThis}function gu(){return Error(`The connection to the page was unexpectedly closed, possibly due to the stop button being clicked, loss of Wi-Fi, or an unstable internet connection.`)}function _u(e){return new ReadableStream({start(t){for(let n of e)t.enqueue(mu(n));t.close()}})}function vu(){return k()?.bootstrap.rsc??null}function yu(){let e;return new ReadableStream({start(t){let n=hu(),r=vu(),i=r?.rsc??n.__VINEXT_RSC_CHUNKS__??[];for(let e of i)t.enqueue(mu(e));if(r?.done||n.__VINEXT_RSC_DONE__){t.close();return}let a=!1,o,s=()=>{let e=o;o=void 0,e?.()},c=()=>{a||(a=!0,s(),t.close())},l=()=>{typeof queueMicrotask==`function`?queueMicrotask(c):Promise.resolve().then(c)},u=()=>{a||(a=!0,s(),t.error(gu()))};e=()=>{a||(a=!0,s())};let d=k()===null?null:M(),f=d?.rsc??(n.__VINEXT_RSC_CHUNKS__??=[]);if(f.push=function(...e){let r=Array.prototype.push.apply(this,e);if(a)return r;for(let n of e)t.enqueue(mu(n));return(d?.done||n.__VINEXT_RSC_DONE__)&&c(),r},d){let e=!!d.done;Object.defineProperty(d,"done",{configurable:!0,enumerable:!0,get(){return e},set(t){e=!!t,e&&l()}})}else{let e=!!n.__VINEXT_RSC_DONE__;Object.defineProperty(n,"__VINEXT_RSC_DONE__",{configurable:!0,enumerable:!0,get(){return e},set(t){e=!!t,e&&l()}})}if(typeof document<`u`)if(document.readyState===`loading`)document.addEventListener(`DOMContentLoaded`,u),o=()=>document.removeEventListener(`DOMContentLoaded`,u);else{let e=setTimeout(u);o=()=>clearTimeout(e)}},cancel(){e?.()}})}var bu={origin:`committed-cache`},xu={origin:`fresh`},Su={origin:`visited-cache`};function Cu(e){return{id:e.id,lane:e.lane,...e.navigationCommitKind===void 0?{}:{navigationCommitKind:e.navigationCommitKind},...e.navigationId===void 0?{}:{navigationId:e.navigationId},startedVisibleCommitVersion:e.startedVisibleCommitVersion,state:`pending`}}function wu(e){return e.skippedLayoutIds.length===0}function Tu(e){return e.cacheEntryReuseProof!==void 0&&wu(e)}function Eu(e){switch(e.origin){case`committed-cache`:case`fresh`:return!1;case`visited-cache`:return!0;default:throw Error(`[vinext] Unknown App Router payload origin: `+String(e))}}function Du(e){return _e(Li(e))}function Ou(e){if(e.interception!==null)return e.routeId;let t=B.parseElementKey(e.routeId);return t?.kind!==`route`||t.interceptionContext===null?e.routeId:B.encodeRouteId(t.path,null)}function ku(e,t=``){return e===null?null:V(new URL(e,`http://localhost`).pathname,t)}function Au(e){let t=ju(e),n=Pu(e.pending),r=Fu({pending:e.pending,routeManifest:e.routeManifest??null,startedNavigationId:e.startedNavigationId,targetSnapshot:n});if(e.pending.action.operation.navigationCommitKind===`detached`&&e.currentState.activeOperation?.navigationId===e.startedNavigationId&&e.currentState.activeOperation.navigationCommitKind===`authoritative`)return{disposition:`skip`,preserveElementIds:[],trace:W(U.staleOperation,t)};let i=e.currentState.activeOperation?.navigationId===e.startedNavigationId&&e.currentState.activeOperation.navigationCommitKind===`detached`&&e.pending.action.operation.navigationCommitKind===`authoritative`?e.pending.action.operation.startedVisibleCommitVersion:e.currentState.visibleCommitVersion,a=$o(r,{activeNavigationId:e.activeNavigationId,visibleCommitVersion:i});if(!a.authorized)return{disposition:`skip`,preserveElementIds:[],trace:W(U.staleOperation,t)};let o=Ru(Lu({currentState:e.currentState,pending:e.pending,routeManifest:e.routeManifest??null,targetHref:e.targetHref,targetSnapshot:n,token:a.token,traceFields:t}));return zu({currentState:e.currentState,decision:o,pending:e.pending})}function ju(e){return{...qo({activeNavigationId:e.activeNavigationId,currentRootLayoutTreePath:e.currentState.rootLayoutTreePath,currentVisibleCommitVersion:e.currentState.visibleCommitVersion,nextRootLayoutTreePath:e.pending.rootLayoutTreePath,startedNavigationId:e.startedNavigationId,startedVisibleCommitVersion:e.pending.action.operation.startedVisibleCommitVersion}),...e.targetHref===void 0?{}:{targetHref:e.targetHref}}}function Mu(e){let t=[];for(let n of It(e)){let e=B.parseElementKey(n);e?.kind===`slot`&&t.push({ownerLayoutId:B.encodeLayoutId(e.treePath),slotId:n})}return t}function Nu(e){let t=Rl(e.navigationSnapshot),n=e.interception?.targetMatchedUrl??Du(e.navigationSnapshot.pathname);return{displayUrl:t,interception:e.interception,interceptionContext:e.interceptionContext,layoutIds:e.layoutIds,matchedUrl:n,mountedParallelSlots:Mu(e.elements),rootBoundaryId:e.rootLayoutTreePath,routeId:Ou({interception:e.interception,routeId:e.routeId}),slotBindings:e.slotBindings}}function Pu(e){let t=Rl(e.action.navigationSnapshot),n=e.action.interception?.targetMatchedUrl??Du(e.action.navigationSnapshot.pathname);return{displayUrl:t,interception:e.action.interception,interceptionContext:e.action.interceptionContext,layoutIds:e.action.layoutIds,matchedUrl:n,mountedParallelSlots:Mu(e.action.elements),rootBoundaryId:e.rootLayoutTreePath,routeId:Ou({interception:e.action.interception,routeId:e.routeId}),slotBindings:e.action.slotBindings}}function Fu(e){return{baseVisibleCommitVersion:e.pending.action.operation.startedVisibleCommitVersion,deploymentVersion:null,graphVersion:e.routeManifest?.graphVersion??null,lane:e.pending.action.operation.lane,navigationId:e.startedNavigationId,operationId:e.pending.action.operation.id,targetSnapshotFingerprint:Iu(e.targetSnapshot)}}function Iu(e){return`${e.routeId}|root:${e.rootBoundaryId??`unknown`}`}function Lu(e){let t=e.pending.cacheEntryReuseProof;return G.plan({routeManifest:e.routeManifest,state:{nextOperationToken:e.token,traceFields:e.traceFields,visibleCommitVersion:e.currentState.visibleCommitVersion,visibleSnapshot:Nu(e.currentState)},event:{kind:`flightResponseArrived`,result:{...t?{cacheEntryReuseProof:t}:{},...e.pending.restoredHistorySnapshot?{restoredHistorySnapshot:!0}:{},href:e.targetHref??e.targetSnapshot.displayUrl,targetSnapshot:e.targetSnapshot},token:e.token}})}function Ru(e){switch(e.kind){case`proposeCommit`:return{disposition:`dispatch`,preserveAbsentSlots:e.proposal.preserveAbsentSlots,preserveElementIds:e.proposal.preserveElementIds,preservePreviousSlotIds:e.proposal.preservePreviousSlotIds,trace:e.trace};case`hardNavigate`:return{disposition:`hard-navigate`,preserveElementIds:[],trace:e.trace};case`noCommit`:return{disposition:`skip`,preserveElementIds:[],trace:e.trace};case`requestWork`:throw Error(`[vinext] Root-boundary commit planning returned requestWork (${e.work.kind}); flightResponseArrived should never request work`);default:throw Error(`[vinext] Unknown navigation decision: `+String(e))}}function zu(e){if(e.decision.disposition!==`dispatch`||e.pending.skippedLayoutIds.length===0)return e.decision;let t=new Set(e.currentState.layoutIds),n=new Set(e.pending.action.layoutIds),r=[...e.decision.preserveElementIds],i=new Set(r),a=[];for(let o of e.pending.skippedLayoutIds)i.has(o)||B.parseElementKey(o)?.kind===`layout`&&(!t.has(o)||!n.has(o)||Object.hasOwn(e.currentState.elements,o)&&(r.push(o),i.add(o),a.push(o)));if(a.length===0)return e.decision;let o=Bu({currentSlotBindings:e.currentState.slotBindings,preservePreviousSlotIds:e.decision.preservePreviousSlotIds,skippedLayoutIds:a,targetSlotBindings:e.pending.action.slotBindings});return{...e.decision,preserveElementIds:r,preservePreviousSlotIds:o}}function Bu(e){let t=Bs({currentSlotBindings:e.currentSlotBindings,preservedLayoutIds:e.skippedLayoutIds,targetSlotBindings:e.targetSlotBindings});if(t.length===0)return e.preservePreviousSlotIds;let n=[...e.preservePreviousSlotIds],r=new Set(n);for(let e of t)r.has(e)||(n.push(e),r.add(e));return n}function Vu(e){let t=e.nextElements,n=B.readMetadata(t),r=n.cacheEntryReuseProof??(Eu(e.payloadOrigin)?La(null):void 0),i=e.previousNextUrl===void 0?e.currentState.previousNextUrl:e.previousNextUrl,a=n.interception===null?null:i;return{action:{bfcacheIds:da({current:e.currentState.bfcacheIds,currentElements:e.currentState.elements,currentPathname:e.currentState.navigationSnapshot.pathname,elements:t,nextPathname:e.navigationSnapshot.pathname,restored:e.restoredBfcacheIds,reuseCurrent:e.reuseCurrentBfcacheIds}),...r?{cacheEntryReuseProof:r}:{},elements:t,interception:n.interception,interceptionContext:n.interceptionContext,layoutIds:n.layoutIds,layoutFlags:n.layoutFlags,slotBindings:n.slotBindings,navigationSnapshot:e.navigationSnapshot,operation:Cu({id:e.renderId,lane:e.operationLane,navigationCommitKind:e.navigationCommitKind,navigationId:e.navigationId,startedVisibleCommitVersion:e.currentState.visibleCommitVersion}),previousNextUrl:a,renderId:e.renderId,rootLayoutTreePath:n.rootLayoutTreePath,reuseCurrentBfcacheIds:e.reuseCurrentBfcacheIds??!0,routeId:n.routeId,skippedLayoutIds:n.skippedLayoutIds,type:e.type},...r?{cacheEntryReuseProof:r}:{},interception:n.interception,interceptionContext:n.interceptionContext,previousNextUrl:a,rootLayoutTreePath:n.rootLayoutTreePath,routeId:n.routeId,skippedLayoutIds:n.skippedLayoutIds}}async function Hu(e){return Vu({...e,nextElements:await e.nextElements})}var Uu=Symbol(`ApprovedVisibleCommit`);function Wu(e,t){return Gu(t),Yu(e,t)}function Gu(e){if(e[Uu]!==!0)throw Error(`[vinext] Visible router state mutation requires ApprovedVisibleCommit`)}function Ku(e,t){return{id:e.id,lane:e.lane,...e.navigationCommitKind===void 0?{}:{navigationCommitKind:e.navigationCommitKind},...e.navigationId===void 0?{}:{navigationId:e.navigationId},startedVisibleCommitVersion:e.startedVisibleCommitVersion,state:`committed`,visibleCommitVersion:t}}function qu(e,t,n){let r=e.visibleCommitVersion+1;return{...t,activeOperation:Ku(n,r),visibleCommitVersion:r}}function Ju(e,t,n,r){if(r.length===0)return t;let i=new Set(r),a=new Map;for(let t of e)i.has(t.slotId)&&a.set(t.slotId,t);let o=[],s=new Set;for(let e of t){let t=a.get(e.slotId);o.push(t??e),s.add(e.slotId)}for(let e of r){if(s.has(e))continue;let t=a.get(e);t&&o.push(t)}return qe(o,{layoutIds:n})}function Yu(e,t){let{action:n}=t;switch(n.type){case`traverse`:case`navigate`:case`replace`:{let r=n.reuseCurrentBfcacheIds&&n.operation.lane!==`refresh`?t.decision.preserveElementIds.filter(t=>{let r=e.bfcacheIds[t];return r!==void 0&&n.bfcacheIds[t]===r}):[],i=new Set(r),a=n.reuseCurrentBfcacheIds?t.decision.preservePreviousSlotIds.filter(e=>{let t=n.slotBindings.find(t=>t.slotId===e);return t?.ownerLayoutId!==null&&t?.ownerLayoutId!==void 0&&i.has(t.ownerLayoutId)}):[],o=n.operation.lane===`hmr`?r.filter(e=>a.some(t=>n.slotBindings.find(e=>e.slotId===t)?.ownerLayoutId===e)):[],s=n.operation.lane===`hmr`&&e.routeId===n.routeId&&Object.hasOwn(e.elements,e.routeId)?[e.routeId,...o]:o,c=s.length>1?[...new Set(s)]:s,l=n.operation.lane===`hmr`?c:r,u=Yr(e.elements,n.elements,{clearAbsentSlots:n.type===`traverse`||!n.reuseCurrentBfcacheIds,preserveAbsentSlots:n.reuseCurrentBfcacheIds&&t.decision.preserveAbsentSlots,preserveElementIds:l,preservePreviousSlotIds:a});return qu(e,{bfcacheIds:fa({elements:u,next:n.bfcacheIds,previous:n.reuseCurrentBfcacheIds?e.bfcacheIds:{}}),elements:u,interception:n.interception,interceptionContext:n.interceptionContext,layoutFlags:Qu(e.layoutFlags,n.layoutFlags,l),layoutIds:n.layoutIds,navigationSnapshot:n.navigationSnapshot,previousNextUrl:n.previousNextUrl,renderId:n.renderId,rootLayoutTreePath:n.rootLayoutTreePath,routeId:n.routeId,slotBindings:Ju(e.slotBindings,n.slotBindings,n.layoutIds,a)},n.operation)}default:{let e=n.type;throw Error(`[vinext] Unknown router action: `+String(e))}}}function Xu(e){let t=Au(e);switch(t.disposition){case`skip`:return{disposition:`no-commit`,trace:t.trace};case`hard-navigate`:return{disposition:`hard-navigate`,trace:t.trace};case`dispatch`:return Zu(t.trace,t.preserveElementIds,t.preserveAbsentSlots,t.preservePreviousSlotIds);default:throw Error(`[vinext] Unknown navigation commit disposition: `+String(t))}}function Zu(e=W(U.commitCurrent),t=[],n=!1,r=[]){return{disposition:`commit`,preserveAbsentSlots:n,preserveElementIds:[...t],preservePreviousSlotIds:[...r],trace:e}}function Qu(e,t,n){let r={...t};for(let t of n){if(Object.hasOwn(r,t))continue;let n=e[t];n&&(r[t]=n)}return r}function $u(e){return{[Uu]:!0,action:e.pending.action,decision:e.decision,interception:e.pending.interception,interceptionContext:e.pending.interceptionContext,previousNextUrl:e.pending.previousNextUrl,rootLayoutTreePath:e.pending.rootLayoutTreePath,routeId:e.pending.routeId}}function ed(e){return{operationLane:e.action.operation.lane,pendingOperationId:e.action.operation.id,startedVisibleCommitVersion:e.action.operation.startedVisibleCommitVersion}}function td(e,t,n){return Yo(e,t,ed(n))}function nd(e,t){switch(e.disposition){case`commit`:return{...e,trace:td(e.trace,Ko.visibleCommit,t)};case`hard-navigate`:return{...e,trace:td(e.trace,Ko.hardNavigate,t)};case`no-commit`:return{...e,trace:td(e.trace,Ko.noCommit,t)};default:throw Error(`[vinext] Unknown commit decision: `+String(e))}}function rd(e){let{currentState:t,pending:n}=e;if(n.action.operation.lane!==`hmr`)throw Error(`[vinext] HMR visible commit approval requires an HMR pending operation`);let r=nd(Xu({activeNavigationId:n.action.operation.id,currentState:t,pending:n,routeManifest:e.routeManifest,startedNavigationId:n.action.operation.id,targetHref:e.targetHref}),n);return r.disposition===`commit`?{approvedCommit:$u({decision:r,pending:n}),decision:r}:{approvedCommit:null,decision:r}}function id(e){let t=nd(Xu({activeNavigationId:e.activeNavigationId,currentState:e.currentState,pending:e.pending,routeManifest:e.routeManifest??null,startedNavigationId:e.startedNavigationId,targetHref:e.targetHref}),e.pending);switch(t.disposition){case`commit`:return{approvedCommit:$u({decision:t,pending:e.pending}),decision:t};case`hard-navigate`:case`no-commit`:return{approvedCommit:null,decision:t};default:throw Error(`[vinext] Unknown commit decision: `+String(t))}}async function ad(e){let t=await Hu({currentState:e.currentState,navigationCommitKind:void 0,navigationId:e.startedNavigationId,nextElements:e.nextElements,navigationSnapshot:e.navigationSnapshot,operationLane:e.operationLane,payloadOrigin:e.payloadOrigin,previousNextUrl:e.previousNextUrl,renderId:e.renderId,type:e.type}),n=e.getCurrentStateForApproval?.()??e.currentState,r=id({activeNavigationId:e.getActiveNavigationId?.()??e.activeNavigationId,currentState:n,pending:t,routeManifest:e.routeManifest??null,startedNavigationId:e.startedNavigationId,targetHref:e.targetHref});return{approvedCommit:r.approvedCommit,decision:r.decision,pending:t,trace:r.decision.trace}}var od=`__vinext_hard_navigation_target__`;function sd(e){try{return new URL(e,window.location.href).href}catch{return e}}function cd(){try{return window.sessionStorage.getItem(od)}catch{return null}}function ld(e){try{return window.sessionStorage.setItem(od,e),window.sessionStorage.getItem(od)===e}catch{return!1}}function ud(){try{window.sessionStorage.removeItem(od)}catch{}}function dd(e,t=`assign`){let n=sd(e),r=sd(window.location.href);return cd()===n&&r===n?(ud(),console.error(`[vinext] Prevented repeated hard navigation to ${n}; leaving the current document in place to avoid a reload loop.`),!1):!ld(n)&&r===n?(console.error(`[vinext] Hard navigation to ${n} requires a reload-loop guard, but sessionStorage is unavailable; leaving the current document in place.`),!1):(t===`replace`?window.location.replace(e):window.location.assign(e),!0)}function fd(e,t){let n=V(e.pathname,t),r=new URLSearchParams(e.search).toString();return r===``?n:`${n}?${r}`}function pd(e,t,n){try{let r=window.location.href;return fd(new URL(n,r),e)===Rl(t)}catch{return!1}}function md(e={}){let t=e.basePath??``,n=e.commitClientNavigationState??ql,r=e.performHardNavigation??dd,i=e.getRouteManifest??(()=>null),a=e.syncHistoryStatePreviousNextUrl??(()=>{}),o=0,s=0,c=null,l=null,u=0,d=new Map,f=new Map,p=new Map,m=null,h=null,g=null,_=null,v=null,y=!1;function b(){if(!m)throw Error(`[vinext] Browser router state setter is not initialized`);return m}function x(){if(!h)throw Error(`[vinext] Browser router state is not initialized`);return h.current}function ee(){return h||y?Promise.resolve():(v||=new Promise(e=>{_=e}),v)}function te(){y=!0;let e=_;_=null,v=null,e?.()}function ne(){return u+=1,s+=1,c=s,l=null,s}function S(){return s}function C(){return o+=1,o}function w(){return h!==null}function T(e){return e===s}function E(){let e=b();g&&!g.settled&&(g.settled=!0,g.resolve(x()));let t,n=new Promise(e=>{t=e});if(!t)throw Error(`[vinext] Failed to initialize browser router promise`);let r={promise:n,resolve:t,settled:!1};return g=r,e(n),r}function D(e){!e||e.settled||(e.settled=!0,e.resolve(x()),g===e&&(g=null))}function re(e,t){D(t),T(e)&&(c=null,l=null,Ul(e))}function O(e,t){t&&p.set(e,t)}function k(e){for(let[t,r]of p)t>e||(p.delete(t),t===e?r():n(void 0,{releaseSnapshot:!0}))}function A(e,t){for(let[n,r]of d){if(n>e)continue;d.delete(n);let i=t&&n===e;i&&r.committedState!==null&&r.onCommittedState?.(r.committedState),r.resolve(i)}}function j(e){for(let[t,n]of f)t>e||(f.delete(t),cn(n))}async function ie(t,n){let i=++u,a=l===`navigation`;if(!w())return;let o=await Hu({currentState:x(),nextElements:t,navigationSnapshot:n,operationLane:`hmr`,payloadOrigin:xu,renderId:C(),type:`replace`});if(i!==u||a||!w())return;let s=rd({currentState:x(),pending:o,routeManifest:e.getRouteManifest?.()??null,targetHref:Rl(n)});s.approvedCommit?ae(s.approvedCommit):s.decision.disposition===`hard-navigate`&&r(Rl(n))}function M({renderId:e,children:t}){return(0,z.useInsertionEffect)(()=>{j(e)},[e]),(0,z.useLayoutEffect)(()=>(k(e),A(e,!0),()=>{A(e,!1)}),[e]),t}function N(e,t,n,r){let i=b(),a=d.get(e),o=e=>(a&&(a.committedState=e),e);if(n){if(n.settled)return;let e=o(Wu(x(),t));n.settled=!0,n.resolve(e),g===n&&(g=null),r===`synchronous`&&(0,ir.flushSync)(()=>{i(e)});return}if(r===`synchronous`){(0,ir.flushSync)(()=>{let e=o(Wu(x(),t));i(e)});return}(0,z.startTransition)(()=>{let e=o(Wu(x(),t));i(e)})}function ae(e){b()(Wu(x(),e))}function oe(e){let t={id:e.renderId,lane:`traverse`,startedVisibleCommitVersion:e.currentState.visibleCommitVersion,state:`pending`};return{action:{bfcacheIds:e.restoredState.bfcacheIds,elements:e.restoredState.elements,interception:e.restoredState.interception,interceptionContext:e.restoredState.interceptionContext,layoutFlags:e.restoredState.layoutFlags,layoutIds:e.restoredState.layoutIds,navigationSnapshot:e.restoredState.navigationSnapshot,operation:t,previousNextUrl:e.restoredState.previousNextUrl,renderId:e.renderId,rootLayoutTreePath:e.restoredState.rootLayoutTreePath,reuseCurrentBfcacheIds:!1,routeId:e.restoredState.routeId,skippedLayoutIds:[],slotBindings:e.restoredState.slotBindings,type:`traverse`},interception:e.restoredState.interception,interceptionContext:e.restoredState.interceptionContext,previousNextUrl:e.restoredState.previousNextUrl,rootLayoutTreePath:e.restoredState.rootLayoutTreePath,routeId:e.restoredState.routeId,restoredHistorySnapshot:!0,skippedLayoutIds:[]}}function P(e){if(!pd(t,e.state.navigationSnapshot,e.targetHref))return!1;let n=x(),r=oe({currentState:n,renderId:C(),restoredState:e.state}),a=id({activeNavigationId:s,currentState:n,pending:r,routeManifest:i(),startedNavigationId:e.navId,targetHref:e.targetHref});return a.approvedCommit===null?!1:(e.beforeCommit?.(),ae(a.approvedCommit),!0)}function F(e){ma(e?.revalidation??`none`)&&e?.onDiscardedRevalidation?.()}function se(e){try{let t=new URL(window.location.href),n=new URL(e,t.href);return n.origin===t.origin&&n.pathname===t.pathname&&n.search!==t.search&&n.hash!==``}catch{return!1}}function ce(e){return e.actionType===`traverse`||e.historyUpdateMode===void 0||e.scrollIntent?.hash==null?!1:se(e.targetHref)}async function le(e){e.navId===c&&(l=e.operationLane);let t=C(),a=sn(e.targetHref);a&&f.set(t,a);let o,u=new Promise(n=>{o=n,d.set(t,{committedState:null,onCommittedState:e.onCommittedState,resolve:n})}),m=!1;try{let n={currentState:e.navigationInitiationState,navigationCommitKind:e.navigationCommitKind,navigationId:e.navId,navigationSnapshot:e.navigationSnapshot,operationLane:e.operationLane,payloadOrigin:e.payloadOrigin,previousNextUrl:e.previousNextUrl,renderId:t,restoredBfcacheIds:e.restoredBfcacheIds,reuseCurrentBfcacheIds:e.reuseCurrentBfcacheIds,type:e.actionType},c=e.nextElements instanceof Promise?await Hu({...n,nextElements:e.nextElements}):Vu({...n,nextElements:e.nextElements}),l=id({activeNavigationId:s,currentState:x(),pending:c,routeManifest:i(),startedNavigationId:e.navId,targetHref:e.targetHref});if(l.decision.disposition===`no-commit`)return D(e.pendingRouterState),f.delete(t),a&&cn(a),d.delete(t),o?.(!1),nr(e.scrollIntent??null),`no-commit`;if(l.decision.disposition===`hard-navigate`)return D(e.pendingRouterState),f.delete(t),d.delete(t),nr(e.scrollIntent??null),r(e.targetHref)?`hard-navigate`:(a&&cn(a),`no-commit`);let u=l.approvedCommit;if(u===null)throw Error(`[vinext] Commit decision did not approve a visible commit`);O(t,e.createNavigationCommitEffect({bfcacheIds:u.action.bfcacheIds,href:e.targetHref,historyUpdateMode:e.historyUpdateMode,navId:e.navId,params:e.params,previousNextUrl:u.previousNextUrl,targetHistoryIndex:e.targetHistoryIndex})),er(e.scrollIntent,t),Nl(),m=!0,N(t,u,e.pendingRouterState,ce(e)?`synchronous`:e.visibleCommitMode??`transition`)}catch(r){throw f.delete(t),p.delete(t),d.delete(t),m&&n(e.navId),D(e.pendingRouterState),o?.(!1),r}return u.then(e=>e?`committed`:`no-commit`)}async function ue(e,t,n,o,c){let l=o??x(),u=c?.startedNavigationId??s,d=c?.targetHref??window.location.href,{approvedCommit:f,decision:p,pending:m,trace:h}=await ad({activeNavigationId:s,currentState:l,getActiveNavigationId:()=>s,getCurrentStateForApproval:x,navigationSnapshot:t,nextElements:e,renderId:C(),operationLane:pa(c?.revalidation??`none`),payloadOrigin:xu,startedNavigationId:u,routeManifest:i(),targetHref:d,type:`navigate`});if(p.disposition===`hard-navigate`){r(d);return}if(f){let e=id({activeNavigationId:s,currentState:x(),pending:m,routeManifest:i(),startedNavigationId:u,targetHref:d});if(e.decision.disposition===`hard-navigate`){r(d);return}if(e.approvedCommit){let t=e.approvedCommit;(0,z.startTransition)(()=>{ae(t)}),a(t.previousNextUrl,t.action.bfcacheIds)}else F(c)}else p.disposition===`no-commit`&&F(c);if(n){if(!n.ok)throw n.data;return n.data}}function de(e,t){return m=e,h=t,te(),()=>{m===e&&(m=null),h===t&&(h=null,y=!1)}}return{beginNavigation:ne,getActiveNavigationId:S,hasBrowserRouterState:w,getBrowserRouterState:x,isCurrentNavigation:T,performHardNavigation:r,waitForBrowserRouterStateReady:ee,attachBrowserRouterState:de,beginPendingBrowserRouterState:E,finalizeNavigation:re,restoreHistorySnapshotVisibleState:P,renderNavigationPayload:le,commitSameUrlNavigatePayload:ue,hmrReplaceTree:ie,drainPrePaintEffects:k,clearCommittedNavigationFailureTargets:j,NavigationCommitSignal:M}}var hd=`__VINEXT_RSC_FORM_STATE__`;function gd(e){let t=e.__VINEXT_RSC_FORM_STATE__??null;return delete e[hd],t}function _d(e){let t={formState:e.formState,...e.onRecoverableError?{onRecoverableError:e.onRecoverableError}:{},onUncaughtError:e.onUncaughtError};return e.onCaughtError?{...t,onCaughtError:e.onCaughtError}:t}function vd(e){let t;if(e.startTransition(()=>{t=e.hydrateRoot(e.container,e.children,e.options)}),t===void 0)throw Error(`[vinext] React.startTransition did not synchronously start hydration`);return t}function yd(e){let t=new URL(e);return`${t.pathname}${t.search}${t.hash}`}function bd(e){if(!e||typeof e!=`object`)return e;let t={};for(let[n,r]of Object.entries(e))n===`__vinext_scrollX`||n===`__vinext_scrollY`||(t[n]=r);return Object.keys(t).length>0?t:null}var xd=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){this.#t=e.readHistoryState,this.#n=e.readCurrentHref,this.#r=e.pushHistoryState,this.#i=e.replaceHistoryState,this.#a=e.readVisibleNavigationMetadata,this.#e=new ho({initialHistoryState:e.initialHistoryState,maxHistoryStateSnapshots:e.maxHistoryStateSnapshots}),this.#o=Eo(e.initialHistoryState)??0,this.#s=this.#o}get currentHistoryTraversalIndex(){return this.#o}allocateNavigationHistoryTraversalIndex(e){switch(e){case`push`:return this.#s+1;case`replace`:return this.#o;case void 0:return null;default:throw Error(`[vinext] Unknown history update mode: `+String(e))}}commitHistoryTraversalIndex(e){this.#o=e,e!==null&&(this.#s=Math.max(this.#s,e))}commitTraversalIndexFromHistoryState(e){this.commitHistoryTraversalIndex(Eo(e))}resolveTraversalIntent(e){return Do({currentHistoryIndex:this.#o,historyState:e})}readCurrentBfcacheVersionHistoryIds(e){return this.#e.readCurrentBfcacheVersionHistoryIds(e)}isCacheInvalidationGuarded(){return this.#e.isCacheInvalidationGuarded()}isCurrentBfcacheVersion(e){return this.#e.isCurrentBfcacheVersion(e)}beginCacheInvalidationGuard(){return this.#e.beginCacheInvalidationGuard()}invalidateRestorableClientState(){this.#e.invalidateClientState()}rememberHistoryStateSnapshot(e){this.#e.rememberHistoryStateSnapshot({historyIndex:this.#o,state:e})}commitHashOnlyNavigation(e,t,n){let r=this.allocateNavigationHistoryTraversalIndex(t),i=this.#t(),a=this.#a(),o=a?a.previousNextUrl:bo(i),s=a?a.bfcacheIds:this.#e.readCurrentBfcacheVersionHistoryIds(i),c=vo(this.#c(t,n),{bfcacheIds:s,bfcacheVersion:s===null?void 0:this.#e.currentBfcacheVersion,previousNextUrl:o,traversalIndex:r});t===`replace`?this.#i(c,e):this.#r(c,e),this.commitHistoryTraversalIndex(r)}#c(e,t){if(e!==`replace`)return null;let n=this.#t();return t?bd(n):n}commitNavigationHistory(e){let t=this.#n(),n=new URL(t).origin,r=new URL(e.href,n).href,i=e.historyUpdateMode===`replace`,a=e.targetHistoryIndex===void 0?this.allocateNavigationHistoryTraversalIndex(e.historyUpdateMode):e.targetHistoryIndex,o=vo(i?this.#t():null,{bfcacheIds:e.bfcacheIds,bfcacheVersion:this.#e.currentBfcacheVersion,previousNextUrl:e.previousNextUrl,traversalIndex:a}),s=!1;e.historyUpdateMode===`replace`&&t!==r?(e.stageClientParams(),this.#i(o,e.href),s=!0,this.commitHistoryTraversalIndex(a)):e.historyUpdateMode===`push`&&t!==r&&(e.stageClientParams(),this.#r(o,e.href),s=!0,this.commitHistoryTraversalIndex(a)),s||(this.syncCurrentHistoryStatePreviousNextUrl(e.previousNextUrl,e.bfcacheIds),e.stageClientParams(),e.targetHistoryIndex!==void 0&&this.commitHistoryTraversalIndex(e.targetHistoryIndex))}syncCurrentHistoryStatePreviousNextUrl(e,t){if(this.#l(this.#t(),e,t))return;let n=vo(this.#t(),{bfcacheIds:t,bfcacheVersion:t===void 0?void 0:this.#e.currentBfcacheVersion,previousNextUrl:e});this.#i(n),!this.#l(this.#t(),e,t)&&this.#i(n)}#l(e,t,n){return bo(e)===t&&(n===void 0||Sd(So(e),n)&&this.#e.isCurrentBfcacheVersion(e))}writeBootstrapHistoryMetadata(){this.#i(vo(this.#t(),{previousNextUrl:null,traversalIndex:this.#o}),yd(this.#n()))}writeHydratedHistoryMetadata(e){this.#i(vo(this.#t(),{bfcacheIds:e.bfcacheIds,bfcacheVersion:this.#e.currentBfcacheVersion,previousNextUrl:e.previousNextUrl,traversalIndex:this.#o}))}restoreHistorySnapshot(e){let t=this.#e.resolveHistoryStateSnapshotRestore(e.historyState);return t.kind!==`skip`&&e.approveVisibleRestore({state:t.state,beforeCommit:()=>{this.commitHistoryTraversalIndex(t.targetHistoryIndex),e.stageClientParams(t.state.navigationSnapshot.params)}})}};function Sd(e,t){if(e===t)return!0;if(e===null||t===null)return!1;let n=Object.entries(e),r=Object.entries(t);return n.length===r.length&&n.every(([e,n])=>t[e]===n)}var Cd=30*6e4;function wd(e){return{createdAt:e.now,...e.elements?{elements:e.elements}:{},expiresAt:Kc(e.now,e.response,e.fallbackTtlMs??3e5),mountedSlotsHeader:e.mountedSlotsHeader??null,params:e.params,response:e.response}}function Td(e,t){return t.navigationKind===`refresh`?!1:t.navigationKind===`traverse`?t.now-e.createdAt<Cd:e.expiresAt>t.now}function Ed(e){try{let t=new URL(e,`http://vinext.local`);return Ti(t),`${t.pathname}${t.search}`}catch{return null}}function Dd(e){let t=e.indexOf(`\0`);return t===-1?{interceptionContext:null,rscUrl:e}:{interceptionContext:e.slice(t+1),rscUrl:e.slice(0,t)}}function Od(e,t,n){let r=B.encodeCacheKey(t,n),i=e.get(r);if(i)return{cacheKey:r,entry:i};let a=Ed(t);if(a===null)return null;for(let[t,r]of e){let e=Dd(t);if(e.interceptionContext===n&&Ed(e.rscUrl)===a)return{cacheKey:t,entry:r}}return null}function kd(e,t,n){let r=Od(e,t,n);return r?e.delete(r.cacheKey):!1}function Ad(e){return!!(e&&typeof e==`object`&&`__vinext_scrollY`in e)}function jd(e,t){let n=e.getActiveNavigationId();e.markScrollRestoreConsumed(n),e.restorePopstateScrollPosition(t,{shouldContinue:()=>e.isCurrentNavigation(n)})}function Md(e){if(typeof window.requestAnimationFrame==`function`){window.requestAnimationFrame(e);return}queueMicrotask(e)}function Nd(e){return{direction:`unknown`,historyState:e,targetHistoryIndex:Eo(e)}}function Pd(e){return t=>{e.notifyAppRouterTransitionStart(window.location.href);let n=e.getNavigate()?.(window.location.href,0,`traverse`,void 0,void 0,!1,Nd(t.state))??Promise.resolve(),r=e.getActiveNavigationId();e.setPendingNavigation(n);let i=Ad(t.state),a=()=>e.isCurrentNavigation(r)&&!e.shouldSkipScrollRestore(r);i&&Md(()=>{a()&&e.restorePopstateScrollPosition(t.state,{shouldContinue:a})}),n.finally(()=>{a()&&!i&&e.restorePopstateScrollPosition(t.state),e.getPendingNavigation()===n&&e.setPendingNavigation(null)})}}function Fd(e){if(!h(e.errorBoundary))return!1;let t=e.errorBoundary.props;return h(t)&&t.isImplicitRootErrorBoundary===!0}function Id(e,t){console.error(e),t?.componentStack&&console.error(`The above error occurred in a React component:
33
+ `+t.componentStack)}function Ld(e){if(typeof globalThis.reportError==`function`){globalThis.reportError(e);return}console.error(e)}function Rd(){return e=>{Ld(e)}}function zd(e){return(t,n)=>{if(!Dn(t)){if(Fd(n)){e(t,n);return}Id(t,n)}}}function Bd(e){Ld(e instanceof Error&&e.cause!==void 0?e.cause:e)}function Vd(){let e=`pending`,t=null,n=null,r=()=>{if(e!==`committed`&&e!==`complete`||t===null)return;let r=t;t=null,n=r()};return{commit(){e===`pending`&&(e=`committed`,r())},complete(){e===`committed`&&(e=`complete`)},fail(){e===`complete`||e===`invalidated`||(e=`invalidated`,t=null,n?.(),n=null)},invalidate(){e!==`invalidated`&&(e=`invalidated`,t=null,n?.(),n=null)},publish(n){e!==`invalidated`&&(t=n,r())}}}function Hd(e,t){if(!e)return null;try{let n=new URL(e,t);return Ti(n),`${n.pathname}${n.search}`}catch{return null}}function Ud(e,t){try{return new URL(e,t).origin===new URL(t).origin}catch{return!1}}function Wd(e,t){try{let n=new URL(e,t);if(n.origin===new URL(t).origin)return`${n.pathname}${n.search}`}catch{}return e}function Gd(e){let t=Hd(e.responseUrl,e.origin);return t!==null&&Ud(e.responseUrl,e.origin)&&e.additionalRscUrls.some(n=>Hd(n,e.origin)===t)?e.visibleRscUrl:Wd(e.responseUrl,e.origin)}var Kd=new WeakMap,qd=new Promise(()=>{});function Jd(e){return`${e.routeId}\0${e.interceptionContext??``}\0${e.mountedSlotsHeader??``}`}function Yd(e){return`${e.cacheKey}\0${e.interceptionContext??``}\0${e.mountedSlotsHeader??``}`}function Xd(){return{catchAllChild:null,dynamicChild:null,optionalCatchAllChild:null,route:null,staticChildren:new Map}}function Zd(e){let t=Xd();for(let n of e.segmentGraph.routes.values()){let e=t,r=n.patternParts;if(r.length===0){e.route??=n;continue}for(let[t,i]of r.entries()){let a=t===r.length-1;if(i.startsWith(`:`)&&i.endsWith(`+`)){a&&e.catchAllChild===null&&(e.catchAllChild={paramName:i.slice(1,-1),route:n});break}if(i.startsWith(`:`)&&i.endsWith(`*`)){a&&e.optionalCatchAllChild===null&&(e.optionalCatchAllChild={paramName:i.slice(1,-1),route:n});break}if(i.startsWith(`:`)){let t=i.slice(1);e.dynamicChild===null?e.dynamicChild={node:Xd(),paramName:t}:e.dynamicChild.paramName,e=e.dynamicChild.node,a&&(e.route??=n);continue}let o=e.staticChildren.get(i);o===void 0&&(o=Xd(),e.staticChildren.set(i,o)),e=o,a&&(e.route??=n)}}return t}function Qd(e){let t=Kd.get(e);if(t)return t;let n=Zd(e);return Kd.set(e,n),n}function $d(e,t,n,r){if(n===t.length)return e.route===null?e.optionalCatchAllChild===null?null:{route:e.optionalCatchAllChild.route,params:Bi(r)}:{route:e.route,params:Bi(r)};let i=t[n],a=e.staticChildren.get(i);if(a!==void 0)return $d(a,t,n+1,r);if(e.dynamicChild!==null){r.push([e.dynamicChild.paramName,i]);let a=$d(e.dynamicChild.node,t,n+1,r);if(a!==null)return a;r.pop()}if(e.catchAllChild!==null){let i=Bi(r);return i[e.catchAllChild.paramName]=t.slice(n),{route:e.catchAllChild.route,params:i}}if(e.optionalCatchAllChild!==null){let i=Bi(r);return i[e.optionalCatchAllChild.paramName]=t.slice(n),{route:e.optionalCatchAllChild.route,params:i}}return null}function ef(e,t){let n;try{n=new URL(e,`https://vinext.local`)}catch{return null}Ti(n);let r=V(Ei(n.pathname),t);return Ri(r===``?`/`:r)}function tf(e){let t=ef(e.href,e.basePath);if(t===null)return null;let n=$d(Qd(e.routeManifest),t,0,[]);return n===null?null:(Vi(n.params),n)}function nf(e,t){for(let[n,r]of Object.entries(t))e[n]=r}function rf(e){let t={...e.match.params};for(let n of e.routeManifest.segmentGraph.slotBindings.values()){if(n.routeId!==e.match.route.id||n.state!==`active`)continue;let r=n.slotPatternParts;if(!r)continue;let i=ro(e.urlParts,r);i&&nf(t,i)}return t}function af(e,t=0){if(t>100)return!1;if(Array.isArray(e))return e.some(e=>af(e,t+1));if(!(0,z.isValidElement)(e))return!1;let n=Reflect.get(e,`props`);return e.type===z.Suspense&&h(n)&&Reflect.get(n,`fallback`)!=null?!0:h(n)?af(Reflect.get(n,`children`),t+1):!1}function of(e,t){let n=new Set;t.pageId&&Object.hasOwn(e,t.pageId)&&n.add(t.pageId);for(let r of t.slotIds){let t=B.parseElementKey(r);t?.kind===`slot`&&t.name===`children`&&Object.hasOwn(e,r)&&n.add(r)}for(let t of Object.keys(e))B.parseElementKey(t)?.kind===`page`&&n.add(t);return Array.from(n).sort()}function sf(){throw qd}function cf(e){let t=tf({basePath:e.basePath,href:e.href,routeManifest:e.routeManifest});if(t===null||!e.allowLoadingShell&&!t.route.isDynamic||e.interceptionContext!==null)return null;let n=B.readMetadata(e.elements);if(n.interception!==null||n.interceptionContext!==null)return null;let r=e.elements[n.routeId];if(!e.allowLoadingShell&&!af(r)||e.allowLoadingShell&&e.elements.__prefetchLoadingShell!==`LoadingBoundary`||e.allowLoadingShell&&r==null)return null;let i=of(e.elements,t.route);return i.length===0?null:{elements:e.elements,mountedSlotsHeader:e.mountedSlotsHeader,pageElementIds:i,routeId:t.route.id}}function lf(e){let t={...e.elements};for(let n of e.pageElementIds)t[n]=(0,z.createElement)(sf);return t}function uf(e){if(e.interceptionContext!==null)return null;let t=ef(e.href,e.basePath);if(t===null)return null;let n=tf({basePath:e.basePath,href:e.href,routeManifest:e.routeManifest});if(n===null)return null;let r=e.templates.get(Jd({interceptionContext:e.interceptionContext,mountedSlotsHeader:e.mountedSlotsHeader,routeId:n.route.id}));return r===void 0||r.mountedSlotsHeader!==e.mountedSlotsHeader?null:{elements:lf(r),params:rf({match:n,routeManifest:e.routeManifest,urlParts:t}),template:r}}var df=/[\t\n\f\r ]+/;function ff(e,t){return e!==null&&e.split(df).some(e=>e.length>0&&e.toLowerCase()===t.toLowerCase())}function pf(e,t){for(let n of e.split(/\s+/)){if(n===t)return!0;try{let e=new URL(n,window.location.href),r=new URL(t,window.location.href);if(e.href===r.href)return!0}catch{}}return!1}function mf(e){return ff(e.getAttribute(`rel`),`stylesheet`)&&e.hasAttribute(`href`)&&(e.hasAttribute(`data-precedence`)||e.hasAttribute(`precedence`))}function hf(){let e=document.head.querySelectorAll(`style[data-vinext-inline-css][data-href]`);if(e.length===0)return;let t=document.head.querySelectorAll(`link[rel][href]`);for(let n of t){if(!mf(n))continue;let t=n.getAttribute(`href`);if(t)for(let r of e){let e=r.getAttribute(`data-href`);if(e&&pf(e,t)){n.remove();break}}}}var gf=o();function _f(e){return e}function vf(e,t){let n=t?.keyFn??((...e)=>e[0]),r=t?.cache??new Map;return _f(function(...t){let i=n(...t),a=r.get(i);if(a!==void 0)return a;let o=e.apply(this,t);return r.set(i,o),o})}function yf(e){return e.split(`$$cache=`)[0]}function bf(){globalThis.__vite_rsc_require__=e=>e.startsWith(`$$server:`)?(e=e.slice(9),globalThis.__vite_rsc_server_require__(e)):globalThis.__vite_rsc_client_require__(e)}var xf=!1;function Sf(e){if(xf)return;xf=!0;let t=vf(t=>e.load(yf(t)));globalThis.__vite_rsc_client_require__=t,bf()}var Cf=n((e=>{var t=i(),n={stream:!0},r=Object.prototype.hasOwnProperty;function a(e,t){if(e){var n=e[t[0]];if(e=n&&n[t[2]])n=e.name;else{if(e=n&&n[`*`],!e)throw Error(`Could not find the module "`+t[0]+`" in the React Server Consumer Manifest. This is probably a bug in the React Server Components bundler.`);n=t[2]}return t.length===4?[e.id,e.chunks,n,1]:[e.id,e.chunks,n]}return t}function o(e,t){var n=``,r=e[t];if(r)n=r.name;else{var i=t.lastIndexOf(`#`);if(i!==-1&&(n=t.slice(i+1),r=e[t.slice(0,i)]),!r)throw Error(`Could not find the module "`+t+`" in the React Server Manifest. This is probably a bug in the React Server Components bundler.`)}return r.async?[r.id,r.chunks,n,1]:[r.id,r.chunks,n]}var s=new Map;function c(e){var t=__vite_rsc_require__(e);return typeof t.then!=`function`||t.status===`fulfilled`?null:(t.then(function(e){t.status=`fulfilled`,t.value=e},function(e){t.status=`rejected`,t.reason=e}),t)}function l(){}function u(e){for(var t=e[1],n=[],r=0;r<t.length;){var i=t[r++],a=t[r++],o=s.get(i);o===void 0?(f.set(i,a),a=__webpack_chunk_load__(i),n.push(a),o=s.set.bind(s,i,null),a.then(o,l),s.set(i,a)):o!==null&&n.push(o)}return e.length===4?n.length===0?c(e[0]):Promise.all(n).then(function(){return c(e[0])}):0<n.length?Promise.all(n):null}function d(e){var t=__vite_rsc_require__(e[0]);if(e.length===4&&typeof t.then==`function`)if(t.status===`fulfilled`)t=t.value;else throw t.reason;if(e[2]===`*`)return t;if(e[2]===``)return t.__esModule?t.default:t;if(r.call(t,e[2]))return t[e[2]]}var f=new Map,p={}.u;({}).u=function(e){var t=f.get(e);return t===void 0?p(e):t};var m=t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,h=Symbol.for(`react.transitional.element`),g=Symbol.for(`react.lazy`),_=Symbol.asyncIterator;Array.isArray;var v=new WeakMap;function y(e,t,n){v.has(e)||v.set(e,{id:t,originalBind:e.bind,bound:n})}function b(e,t){function n(){var e=Array.prototype.slice.call(arguments);return i?i.status===`fulfilled`?t(r,i.value.concat(e)):Promise.resolve(i).then(function(n){return t(r,n.concat(e))}):t(r,e)}var r=e.id,i=e.bound;return y(n,r,i),n}function x(e,t,n){this.status=e,this.value=t,this.reason=n}x.prototype=Object.create(Promise.prototype),x.prototype.then=function(e,t){switch(this.status){case`resolved_model`:k(this);break;case`resolved_module`:A(this)}switch(this.status){case`fulfilled`:typeof e==`function`&&e(this.value);break;case`pending`:case`blocked`:typeof e==`function`&&(this.value===null&&(this.value=[]),this.value.push(e)),typeof t==`function`&&(this.reason===null&&(this.reason=[]),this.reason.push(t));break;case`halted`:break;default:typeof t==`function`&&t(this.reason)}};function ee(e){switch(e.status){case`resolved_model`:k(e);break;case`resolved_module`:A(e)}switch(e.status){case`fulfilled`:return e.value;case`pending`:case`blocked`:case`halted`:throw e;default:throw e.reason}}function te(e,t,n){for(var r=0;r<e.length;r++){var i=e[r];typeof i==`function`?i(t):N(i,t,n)}}function ne(e,t){for(var n=0;n<e.length;n++){var r=e[n];typeof r==`function`?r(t):ae(r,t)}}function S(e,t){var n=t.handler.chunk;if(n===null)return null;if(n===e)return t.handler;if(t=n.value,t!==null)for(n=0;n<t.length;n++){var r=t[n];if(typeof r!=`function`&&(r=S(e,r),r!==null))return r}return null}function C(e,t,n){switch(e.status){case`fulfilled`:te(t,e.value,e);break;case`blocked`:for(var r=0;r<t.length;r++){var i=t[r];if(typeof i!=`function`){var a=S(e,i);if(a!==null)switch(N(i,a.value,e),t.splice(r,1),r--,n!==null&&(i=n.indexOf(i),i!==-1&&n.splice(i,1)),e.status){case`fulfilled`:te(t,e.value,e);return;case`rejected`:n!==null&&ne(n,e.reason);return}}}case`pending`:if(e.value)for(r=0;r<t.length;r++)e.value.push(t[r]);else e.value=t;if(e.reason){if(n)for(t=0;t<n.length;t++)e.reason.push(n[t])}else e.reason=n;break;case`rejected`:n&&ne(n,e.reason)}}function w(e,t,n){t.status!==`pending`&&t.status!==`blocked`?t.reason.error(n):(e=t.reason,t.status=`rejected`,t.reason=n,e!==null&&ne(e,n))}function T(e,t,n){return new x(`resolved_model`,(n?`{"done":true,"value":`:`{"done":false,"value":`)+t+`}`,e)}function E(e,t,n,r){D(e,t,(r?`{"done":true,"value":`:`{"done":false,"value":`)+n+`}`)}function D(e,t,n){if(t.status!==`pending`)t.reason.enqueueModel(n);else{var r=t.value,i=t.reason;t.status=`resolved_model`,t.value=n,t.reason=e,r!==null&&(k(t),C(t,r,i))}}function re(e,t,n){if(t.status===`pending`||t.status===`blocked`){e=t.value;var r=t.reason;t.status=`resolved_module`,t.value=n,t.reason=null,e!==null&&(A(t),C(t,e,r))}}var O=null;function k(e){var t=O;O=null;var n=e.value,r=e.reason;e.status=`blocked`,e.value=null,e.reason=null;try{var i=JSON.parse(n,r._fromJSON),a=e.value;if(a!==null)for(e.value=null,e.reason=null,n=0;n<a.length;n++){var o=a[n];typeof o==`function`?o(i):N(o,i,e)}if(O!==null){if(O.errored)throw O.reason;if(0<O.deps){O.value=i,O.chunk=e;return}}e.status=`fulfilled`,e.value=i}catch(t){e.status=`rejected`,e.reason=t}finally{O=t}}function A(e){try{var t=d(e.value);e.status=`fulfilled`,e.value=t}catch(t){e.status=`rejected`,e.reason=t}}function j(e,t){e._closed=!0,e._closedReason=t,e._chunks.forEach(function(n){n.status===`pending`?w(e,n,t):n.status===`fulfilled`&&n.reason!==null&&n.reason.error(t)})}function ie(e){return{$$typeof:g,_payload:e,_init:ee}}function M(e,t){var n=e._chunks,r=n.get(t);return r||(r=e._closed?new x(`rejected`,null,e._closedReason):new x(`pending`,null,null),n.set(t,r)),r}function N(e,t){var n=e.response,i=e.handler,a=e.parentObject,o=e.key,s=e.map,c=e.path;try{for(var l=1;l<c.length;l++){for(;typeof t==`object`&&t&&t.$$typeof===g;){var u=t._payload;if(u===i.chunk)t=i.value;else{switch(u.status){case`resolved_model`:k(u);break;case`resolved_module`:A(u)}switch(u.status){case`fulfilled`:t=u.value;continue;case`blocked`:var d=S(u,e);if(d!==null){t=d.value;continue}case`pending`:c.splice(0,l-1),u.value===null?u.value=[e]:u.value.push(e),u.reason===null?u.reason=[e]:u.reason.push(e);return;case`halted`:return;default:ae(e,u.reason);return}}}var f=c[l];if(typeof t==`object`&&t&&r.call(t,f))t=t[f];else throw Error(`Invalid reference.`)}for(;typeof t==`object`&&t&&t.$$typeof===g;){var p=t._payload;if(p===i.chunk)t=i.value;else{switch(p.status){case`resolved_model`:k(p);break;case`resolved_module`:A(p)}switch(p.status){case`fulfilled`:t=p.value;continue}break}}var m=s(n,t,a,o);if(o!==`__proto__`&&(a[o]=m),o===``&&i.value===null&&(i.value=m),a[0]===h&&typeof i.value==`object`&&i.value!==null&&i.value.$$typeof===h){var _=i.value;switch(o){case`3`:_.props=m}}}catch(t){ae(e,t);return}i.deps--,i.deps===0&&(e=i.chunk,e!==null&&e.status===`blocked`&&(t=e.value,e.status=`fulfilled`,e.value=i.value,e.reason=i.reason,t!==null&&te(t,i.value,e)))}function ae(e,t){var n=e.handler;e=e.response,n.errored||(n.errored=!0,n.value=null,n.reason=t,n=n.chunk,n!==null&&n.status===`blocked`&&w(e,n,t))}function oe(e,t,n,r,i,a){if(O){var o=O;o.deps++}else o=O={parent:null,chunk:null,value:null,reason:null,deps:1,errored:!1};return t={response:r,handler:o,parentObject:t,key:n,map:i,path:a},e.value===null?e.value=[t]:e.value.push(t),e.reason===null?e.reason=[t]:e.reason.push(t),null}function P(e,t,n,r){if(!e._serverReferenceConfig)return b(t,e._callServer);var i=o(e._serverReferenceConfig,t.id),a=u(i);if(a)t.bound&&(a=Promise.all([a,t.bound]));else if(t.bound)a=Promise.resolve(t.bound);else return a=d(i),y(a,t.id,t.bound),a;if(O){var s=O;s.deps++}else s=O={parent:null,chunk:null,value:null,reason:null,deps:1,errored:!1};return a.then(function(){var e=d(i);if(t.bound){var a=t.bound.value.slice(0);a.unshift(null),e=e.bind.apply(e,a)}if(y(e,t.id,t.bound),r!==`__proto__`&&(n[r]=e),r===``&&s.value===null&&(s.value=e),n[0]===h&&typeof s.value==`object`&&s.value!==null&&s.value.$$typeof===h)switch(a=s.value,r){case`3`:a.props=e}s.deps--,s.deps===0&&(e=s.chunk,e!==null&&e.status===`blocked`&&(a=e.value,e.status=`fulfilled`,e.value=s.value,e.reason=null,a!==null&&te(a,s.value,e)))},function(t){if(!s.errored){s.errored=!0,s.value=null,s.reason=t;var n=s.chunk;n!==null&&n.status===`blocked`&&w(e,n,t)}}),null}function F(e,t,n,r,i){t=t.split(`:`);var a=parseInt(t[0],16);switch(a=M(e,a),a.status){case`resolved_model`:k(a);break;case`resolved_module`:A(a)}switch(a.status){case`fulfilled`:a=a.value;for(var o=1;o<t.length;o++){for(;typeof a==`object`&&a&&a.$$typeof===g;){switch(a=a._payload,a.status){case`resolved_model`:k(a);break;case`resolved_module`:A(a)}switch(a.status){case`fulfilled`:a=a.value;break;case`blocked`:case`pending`:return oe(a,n,r,e,i,t.slice(o-1));case`halted`:return O?(e=O,e.deps++):O={parent:null,chunk:null,value:null,reason:null,deps:1,errored:!1},null;default:return O?(O.errored=!0,O.value=null,O.reason=a.reason):O={parent:null,chunk:null,value:null,reason:a.reason,deps:0,errored:!0},null}}a=a[t[o]]}for(;typeof a==`object`&&a&&a.$$typeof===g;){switch(t=a._payload,t.status){case`resolved_model`:k(t);break;case`resolved_module`:A(t)}switch(t.status){case`fulfilled`:a=t.value;continue}break}return i(e,a,n,r);case`pending`:case`blocked`:return oe(a,n,r,e,i,t);case`halted`:return O?(e=O,e.deps++):O={parent:null,chunk:null,value:null,reason:null,deps:1,errored:!1},null;default:return O?(O.errored=!0,O.value=null,O.reason=a.reason):O={parent:null,chunk:null,value:null,reason:a.reason,deps:0,errored:!0},null}}function se(e,t){return new Map(t)}function ce(e,t){return new Set(t)}function le(e,t){return new Blob(t.slice(1),{type:t[0]})}function ue(e,t){e=new FormData;for(var n=0;n<t.length;n++)e.append(t[n][0],t[n][1]);return e}function de(e,t){return t[Symbol.iterator]()}function fe(e,t){return t}function pe(e,t,n,r){if(r[0]===`$`){if(r===`$`)return O!==null&&n===`0`&&(O={parent:O,chunk:null,value:null,reason:null,deps:0,errored:!1}),h;switch(r[1]){case`$`:return r.slice(1);case`L`:return t=parseInt(r.slice(2),16),e=M(e,t),ie(e);case`@`:return t=parseInt(r.slice(2),16),M(e,t);case`S`:return Symbol.for(r.slice(2));case`h`:return r=r.slice(2),F(e,r,t,n,P);case`T`:if(t=`$`+r.slice(2),e=e._tempRefs,e==null)throw Error(`Missing a temporary reference set but the RSC response returned a temporary reference. Pass a temporaryReference option with the set that was used with the reply.`);return e.get(t);case`Q`:return r=r.slice(2),F(e,r,t,n,se);case`W`:return r=r.slice(2),F(e,r,t,n,ce);case`B`:return r=r.slice(2),F(e,r,t,n,le);case`K`:return r=r.slice(2),F(e,r,t,n,ue);case`Z`:return Se();case`i`:return r=r.slice(2),F(e,r,t,n,de);case`I`:return 1/0;case`-`:return r===`$-0`?-0:-1/0;case`N`:return NaN;case`u`:return;case`D`:return new Date(Date.parse(r.slice(2)));case`n`:return BigInt(r.slice(2));default:return r=r.slice(1),F(e,r,t,n,fe)}}return r}function I(){throw Error(`Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.`)}function me(e,t,n,r,i,a,o){var s=new Map;this._bundlerConfig=e,this._serverReferenceConfig=t,this._moduleLoading=n,this._callServer=r===void 0?I:r,this._encodeFormAction=i,this._nonce=a,this._chunks=s,this._stringDecoder=new TextDecoder,this._fromJSON=null,this._closed=!1,this._closedReason=null,this._tempRefs=o,this._fromJSON=we(this)}function he(e,t,n){e=e._chunks;var r=e.get(t);r&&r.status!==`pending`?r.reason.enqueueValue(n):(n=new x(`fulfilled`,n,null),e.set(t,n))}function ge(e,t,n){var r=e._chunks,i=r.get(t);n=JSON.parse(n,e._fromJSON);var o=a(e._bundlerConfig,n);if(n=u(o)){if(i){var s=i;s.status=`blocked`}else s=new x(`blocked`,null,null),r.set(t,s);n.then(function(){return re(e,s,o)},function(t){return w(e,s,t)})}else i?re(e,i,o):(i=new x(`resolved_module`,o,null),r.set(t,i))}function _e(e,t,n,r){e=e._chunks;var i=e.get(t);i?i.status===`pending`&&(t=i.value,i.status=`fulfilled`,i.value=n,i.reason=r,t!==null&&te(t,i.value,i)):(n=new x(`fulfilled`,n,r),e.set(t,n))}function ve(e,t,n){var r=null,i=!1;n=new ReadableStream({type:n,start:function(e){r=e}});var a=null;_e(e,t,n,{enqueueValue:function(e){a===null?r.enqueue(e):a.then(function(){r.enqueue(e)})},enqueueModel:function(t){if(a===null){var n=new x(`resolved_model`,t,e);k(n),n.status===`fulfilled`?r.enqueue(n.value):(n.then(function(e){return r.enqueue(e)},function(e){return r.error(e)}),a=n)}else{n=a;var i=new x(`pending`,null,null);i.then(function(e){return r.enqueue(e)},function(e){return r.error(e)}),a=i,n.then(function(){a===i&&(a=null),D(e,i,t)})}},close:function(){if(!i)if(i=!0,a===null)r.close();else{var e=a;a=null,e.then(function(){return r.close()})}},error:function(e){if(!i)if(i=!0,a===null)r.error(e);else{var t=a;a=null,t.then(function(){return r.error(e)})}}})}function ye(){return this}function be(e){return e={next:e},e[_]=ye,e}function xe(e,t,n){var r=[],i=!1,a=0,o={};o[_]=function(){var e=0;return be(function(t){if(t!==void 0)throw Error(`Values cannot be passed to next() of AsyncIterables passed to Client Components.`);if(e===r.length){if(i)return new x(`fulfilled`,{done:!0,value:void 0},null);r[e]=new x(`pending`,null,null)}return r[e++]})},_e(e,t,n?o[_]():o,{enqueueValue:function(e){if(a===r.length)r[a]=new x(`fulfilled`,{done:!1,value:e},null);else{var t=r[a],n=t.value,i=t.reason;t.status=`fulfilled`,t.value={done:!1,value:e},t.reason=null,n!==null&&C(t,n,i)}a++},enqueueModel:function(t){a===r.length?r[a]=T(e,t,!1):E(e,r[a],t,!1),a++},close:function(t){if(!i)for(i=!0,a===r.length?r[a]=T(e,t,!0):E(e,r[a],t,!0),a++;a<r.length;)E(e,r[a++],`"$undefined"`,!0)},error:function(t){if(!i)for(i=!0,a===r.length&&(r[a]=new x(`pending`,null,null));a<r.length;)w(e,r[a++],t)}})}function Se(){var e=Error(`An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.`);return e.stack=`Error: `+e.message,e}function Ce(e,t){for(var n=e.length,r=t.length,i=0;i<n;i++)r+=e[i].byteLength;r=new Uint8Array(r);for(var a=i=0;a<n;a++){var o=e[a];r.set(o,i),i+=o.byteLength}return r.set(t,i),r}function L(e,t,n,r,i,a){n=n.length===0&&r.byteOffset%a===0?r:Ce(n,r),i=new i(n.buffer,n.byteOffset,n.byteLength/a),he(e,t,i)}function R(e,t,r,i,a,o){switch(i){case 65:he(e,r,Ce(a,o).buffer);return;case 79:L(e,r,a,o,Int8Array,1);return;case 111:he(e,r,a.length===0?o:Ce(a,o));return;case 85:L(e,r,a,o,Uint8ClampedArray,1);return;case 83:L(e,r,a,o,Int16Array,2);return;case 115:L(e,r,a,o,Uint16Array,2);return;case 76:L(e,r,a,o,Int32Array,4);return;case 108:L(e,r,a,o,Uint32Array,4);return;case 71:L(e,r,a,o,Float32Array,4);return;case 103:L(e,r,a,o,Float64Array,8);return;case 77:L(e,r,a,o,BigInt64Array,8);return;case 109:L(e,r,a,o,BigUint64Array,8);return;case 86:L(e,r,a,o,DataView,1);return}t=e._stringDecoder;for(var s=``,c=0;c<a.length;c++)s+=t.decode(a[c],n);switch(a=s+=t.decode(o),i){case 73:ge(e,r,a);break;case 72:switch(r=a[0],a=a.slice(1),e=JSON.parse(a,e._fromJSON),a=m.d,r){case`D`:a.D(e);break;case`C`:typeof e==`string`?a.C(e):a.C(e[0],e[1]);break;case`L`:r=e[0],i=e[1],e.length===3?a.L(r,i,e[2]):a.L(r,i);break;case`m`:typeof e==`string`?a.m(e):a.m(e[0],e[1]);break;case`X`:typeof e==`string`?a.X(e):a.X(e[0],e[1]);break;case`S`:typeof e==`string`?a.S(e):a.S(e[0],e[1]===0?void 0:e[1],e.length===3?e[2]:void 0);break;case`M`:typeof e==`string`?a.M(e):a.M(e[0],e[1])}break;case 69:i=e._chunks,o=i.get(r),a=JSON.parse(a),t=Se(),t.digest=a.digest,o?w(e,o,t):(e=new x(`rejected`,null,t),i.set(r,e));break;case 84:e=e._chunks,(i=e.get(r))&&i.status!==`pending`?i.reason.enqueueValue(a):(a=new x(`fulfilled`,a,null),e.set(r,a));break;case 78:case 68:case 74:case 87:throw Error(`Failed to read a RSC payload created by a development version of React on the server while using a production version on the client. Always use matching versions on the server and the client.`);case 82:ve(e,r,void 0);break;case 114:ve(e,r,`bytes`);break;case 88:xe(e,r,!1);break;case 120:xe(e,r,!0);break;case 67:(r=e._chunks.get(r))&&r.status===`fulfilled`&&r.reason.close(a===``?`"$undefined"`:a);break;default:i=e._chunks,(o=i.get(r))?D(e,o,a):(e=new x(`resolved_model`,a,e),i.set(r,e))}}function we(e){return function(t,n){if(t!==`__proto__`){if(typeof n==`string`)return pe(e,this,t,n);if(typeof n==`object`&&n){if(n[0]===h){if(t={$$typeof:h,type:n[1],key:n[2],ref:null,props:n[3]},O!==null){if(n=O,O=n.parent,n.errored)t=new x(`rejected`,null,n.reason),t=ie(t);else if(0<n.deps){var r=new x(`blocked`,null,null);n.value=t,n.chunk=r,t=ie(r)}}}else t=n;return t}return n}}}function Te(e){j(e,Error(`Connection closed.`))}function z(e){return new me(null,null,null,e&&e.callServer?e.callServer:void 0,void 0,void 0,e&&e.temporaryReferences?e.temporaryReferences:void 0)}function Ee(e,t,n){function r(t){var s=t.value;if(t.done)return n();var c=0,l=a._rowState;t=a._rowID;for(var u=a._rowTag,d=a._rowLength,f=a._buffer,p=s.length;c<p;){var m=-1;switch(l){case 0:m=s[c++],m===58?l=1:t=t<<4|(96<m?m-87:m-48);continue;case 1:l=s[c],l===84||l===65||l===79||l===111||l===85||l===83||l===115||l===76||l===108||l===71||l===103||l===77||l===109||l===86?(u=l,l=2,c++):64<l&&91>l||l===35||l===114||l===120?(u=l,l=3,c++):(u=0,l=3);continue;case 2:m=s[c++],m===44?l=4:d=d<<4|(96<m?m-87:m-48);continue;case 3:m=s.indexOf(10,c);break;case 4:m=c+d,m>s.length&&(m=-1)}var h=s.byteOffset+c;if(-1<m)d=new Uint8Array(s.buffer,h,m-c),R(e,a,t,u,f,d),c=m,l===3&&c++,d=t=u=l=0,f.length=0;else{s=new Uint8Array(s.buffer,h,s.byteLength-c),f.push(s),d-=s.byteLength;break}}return a._rowState=l,a._rowID=t,a._rowTag=u,a._rowLength=d,o.read().then(r).catch(i)}function i(t){j(e,t)}var a={_rowState:0,_rowID:0,_rowTag:0,_rowLength:0,_buffer:[]},o=t.getReader();o.read().then(r).catch(i)}e.createFromFetch=function(e,t){var n=z(t);return e.then(function(e){Ee(n,e.body,Te.bind(null,n))},function(e){j(n,e)}),M(n,0)},e.createFromReadableStream=function(e,t){return t=z(t),Ee(t,e,Te.bind(null,t)),M(t,0)}})),wf=t(n(((e,t)=>{t.exports=Cf()}))(),1);function Tf(e,t={}){return wf.createFromReadableStream(e,{callServer:Df,findSourceMapURL:Of,...t})}function Ef(e,t={}){return wf.createFromFetch(e,{callServer:Df,findSourceMapURL:Of,...t})}function Df(...e){return globalThis.__viteRscCallServer(...e)}function Of(e,t){let n=new URL(`/__vite_rsc_findSourceMapURL`,import.meta.url);return n.searchParams.set(`filename`,e),n.searchParams.set(`environmentName`,t),n.toString()}var kf={"0b874ad30386":async()=>{let e=await K(()=>Promise.resolve().then(()=>$t),void 0);return{get default(){return e.default}}},"15c18cfaeeff":async()=>{let e=await K(()=>import(`./layout-segment-context-DRM8YCgm.js`),__vite__mapDeps([0,1,2,3]));return{get LayoutSegmentProvider(){return e.LayoutSegmentProvider}}},"278c117307e7":async()=>{let e=await K(()=>import(`./netflix-browser-L_Vb9wXK.js`),__vite__mapDeps([4,1,2,5,6,7,8,9]));return{get NetflixBrowser(){return e.NetflixBrowser}}},"593f344dc510":async()=>{let e=await K(()=>Promise.resolve().then(()=>On),void 0);return{get ErrorBoundary(){return e.ErrorBoundary},get ForbiddenBoundary(){return e.ForbiddenBoundary},get GlobalErrorBoundary(){return e.GlobalErrorBoundary},get NotFoundBoundary(){return e.NotFoundBoundary},get RedirectBoundary(){return e.RedirectBoundary},get SerializedErrorBoundary(){return e.SerializedErrorBoundary},get UnauthorizedBoundary(){return e.UnauthorizedBoundary}}},"6fda1fc439ba":async()=>{let e=await K(()=>import(`./spotify-app-f93K4FG_.js`),__vite__mapDeps([10,1,2,5,11,8,9,7,12]));return{get SpotifyApp(){return e.SpotifyApp}}},"89c3cac48cb5":async()=>{let e=await K(()=>import(`./streamed-icons-DwsKSgMb.js`),__vite__mapDeps([13,1,2]));return{get StreamedIconsInsertion(){return e.StreamedIconsInsertion}}},"8c0f216c4604":async()=>{let e=await K(()=>Promise.resolve().then(()=>yr),void 0);return{get Children(){return e.Children},get ParallelSlot(){return e.ParallelSlot},get Slot(){return e.Slot}}},"9276801271d6":async()=>{let e=await K(()=>Promise.resolve().then(()=>rr),void 0);return{get AppRouterScrollTarget(){return e.AppRouterScrollTarget}}},a340ac14ea46:async()=>{let e=await K(()=>import(`./app-top-nav-Dh0jEt8u.js`),__vite__mapDeps([14,2,1,5,12]));return{get AppTopNav(){return e.AppTopNav}}},bad85346fc72:async()=>(await K(()=>Promise.resolve().then(()=>yc),void 0),{}),f1da2b17eb86:async()=>{let e=await K(()=>import(`./storefront-C_nmcuvH.js`),__vite__mapDeps([15,1,2,5,6,11,8,9]));return{get Storefront(){return e.Storefront}}}};Af();function Af(){Sf({load:async e=>{{let t=kf[e];if(!t)throw Error(`client reference not found '${e}'`);return t()}}})}function jf(e){return e===`traverse`?`traverse`:`navigate`}function Mf(e){switch(e){case`navigate`:return`navigation`;case`refresh`:return`refresh`;case`traverse`:return`traverse`;default:throw Error(`[vinext] Unknown navigation kind: `+String(e))}}var Nf=50,Pf=mi(),Ff=new Map,If=new Set,Lf=new Map;function Rf(){return window.__VINEXT_RSC_ROOT__||window.__VINEXT_RSC_BOOTSTRAP_STATE__?!1:(window.__VINEXT_RSC_BOOTSTRAP_STATE__=`starting`,!0)}function zf(){window.__VINEXT_RSC_BOOTSTRAP_STATE__=`hydrated`}function Bf(){return k()?.bootstrap.routeManifest??null}var Z=new xd({initialHistoryState:window.history.state,maxHistoryStateSnapshots:50,readHistoryState:()=>window.history.state,readCurrentHref:()=>window.location.href,pushHistoryState:(e,t)=>Jl(e,``,t),replaceHistoryState:(e,t)=>Yl(e,``,t),readVisibleNavigationMetadata:()=>{if(!rp())return null;let e=np();return{bfcacheIds:e.bfcacheIds,previousNextUrl:e.previousNextUrl}}}),Q=md({basePath:``,getRouteManifest:Bf,syncHistoryStatePreviousNextUrl:(e,t)=>Z.syncCurrentHistoryStatePreviousNextUrl(e,t)}),Vf={markNavigationSettled(){},markNavigationStart(){},schedule(){}},Hf=Q.NavigationCommitSignal,Uf=`data-vinext-action-http-fallback`;function Wf(e){if(document.head.querySelectorAll(`meta[${Uf}="robots"]`).forEach(e=>e.remove()),e!==404)return;let t=document.createElement(`meta`);t.name=`robots`,t.content=`noindex`,t.setAttribute(Uf,`robots`),document.head.appendChild(t)}var Gf=s();function Kf(e){if(!e)return null;try{return JSON.parse(decodeURIComponent(e))}catch{return null}}function qf(e){return e instanceof Promise}var Jf={},$=new Map,Yf=0,Xf=null,Zf=new Ao,Qf=new Promise(()=>{}),$f=an,ep=null;function tp(e,t,n){let r=!1;return(0,ir.flushSync)(()=>{r=Z.restoreHistorySnapshot({historyState:e,stageClientParams:sp,approveVisibleRestore:({state:e,beforeCommit:r})=>Q.restoreHistorySnapshotVisibleState({beforeCommit:()=>{n?.(),r()},navId:t,state:e,targetHref:window.location.href})})}),r?(ql(t,{releaseSnapshot:!1}),!0):!1}function np(){return Q.getBrowserRouterState()}function rp(){return Q.hasBrowserRouterState()}function ip(){return Q.waitForBrowserRouterStateReady()}function ap(){return Q.beginPendingBrowserRouterState()}function op(e){Jf=e,Bl(e)}function sp(e){Jf=e,Vl(e)}function cp(){$.clear()}function lp(){ml(),Ff.clear(),If.clear(),Lf.clear()}function up(){Yf+=1,cp(),lp(),Z.invalidateRestorableClientState()}function dp(e){return e.outcome===`cache-seeded`&&e.pending===void 0&&e.snapshot!==void 0}function fp(e){let t=e.indexOf(`\0`);return t===-1?{interceptionContext:null,rscUrl:e}:{interceptionContext:e.slice(t+1),rscUrl:e.slice(0,t)}}async function pp(e){let t=fp(e.cacheKey);if(t.interceptionContext!==e.interceptionContext||Yc(e.entry)!==e.mountedSlotsHeader||e.interceptionContext!==null)return!1;let n=await Op(Ef(Promise.resolve(bl(e.entry.snapshot)))),r=cf({allowLoadingShell:e.entry.optimisticRouteShell===!0,basePath:``,elements:n,href:e.entry.snapshot.url||t.rscUrl,interceptionContext:e.interceptionContext,mountedSlotsHeader:e.mountedSlotsHeader,routeManifest:e.routeManifest});return r===null?!1:(Ff.set(Jd({interceptionContext:e.interceptionContext,mountedSlotsHeader:e.mountedSlotsHeader,routeId:r.routeId}),r),!0)}async function mp(e){if(e.routeManifest===null)return;let t=[...Lf.values()];for(let[n,r]of q()){let i=Yd({cacheKey:n,interceptionContext:e.interceptionContext,mountedSlotsHeader:e.mountedSlotsHeader});if(If.has(i)||Lf.has(i)||!dp(r)||r.prefetchKind===`route-tree`)continue;let a=pp({cacheKey:n,entry:r,interceptionContext:e.interceptionContext,mountedSlotsHeader:e.mountedSlotsHeader,routeManifest:e.routeManifest}).then(e=>{e&&If.add(i)}).finally(()=>{Lf.delete(i)});Lf.set(i,a),t.push(a)}t.length!==0&&await Promise.allSettled(t)}function hp(e){let{bfcacheIds:t,href:n,historyUpdateMode:r,navId:i,params:a,previousNextUrl:o,targetHistoryIndex:s}=e;return()=>{if(!Q.isCurrentNavigation(i)){ql(void 0,{releaseSnapshot:!0});return}Z.commitNavigationHistory({bfcacheIds:t,href:n,historyUpdateMode:r,previousNextUrl:o,stageClientParams:()=>sp(a),targetHistoryIndex:s}),cn(n),ql(i)}}async function gp(e){return Wf(null),Q.renderNavigationPayload({actionType:e.actionType??`navigate`,createNavigationCommitEffect:hp,historyUpdateMode:e.historyUpdateMode,navigationCommitKind:e.navigationCommitKind,navigationInitiationState:e.navigationInitiationState,navigationSnapshot:e.navigationSnapshot,navId:e.navId,nextElements:e.payload,onCommittedState:e.onCommittedState,operationLane:e.operationLane??`navigation`,params:e.params,payloadOrigin:e.payloadOrigin,pendingRouterState:e.pendingRouterState,previousNextUrl:e.previousNextUrl,restoredBfcacheIds:e.restoredBfcacheIds??null,reuseCurrentBfcacheIds:e.reuseCurrentBfcacheIds??!0,scrollIntent:e.scrollIntent??null,targetHistoryIndex:e.traversalIntent?.targetHistoryIndex,targetHref:e.targetHref,visibleCommitMode:e.visibleCommitMode??`transition`})}function _p(){for(;$.size>=Nf;){let e=$.keys().next().value;if(e===void 0)return;$.delete(e)}}function vp(e,t,n,r){let i=B.encodeCacheKey(e,t),a=Od($,e,t);return a?{cacheKey:a.cacheKey,entry:a.entry,facts:{candidate:`present`,fresh:Td(a.entry,{navigationKind:r,now:Date.now()}),mountedSlotsMatch:a.entry.elements!==void 0||a.entry.mountedSlotsHeader===n,navigationKind:r}}:{cacheKey:i,entry:null,facts:{candidate:`missing`,navigationKind:r}}}function yp(e,t){return e.entry===null?null:t.kind===`reuse`?($.delete(e.cacheKey),$.set(e.cacheKey,e.entry),e.entry):($.delete(e.cacheKey),null)}function bp(e,t){kd($,e,t)}function xp(e,t,n,r,i=Ic,a=n.mountedSlotsHeader??null,o,s=!0){let c=B.encodeCacheKey(e,t);$.delete(c),_p();let l=wd({fallbackTtlMs:i,elements:o,now:Date.now(),mountedSlotsHeader:a,params:r,response:n});return $.set(c,l),s&&hl(e,n,t,a,i),()=>{$.get(c)===l&&$.delete(c),s&&gl(e,n,t)}}function Sp(e){return`${window.location.origin}${Rl(e)}`}function Cp(){let e=B.parseElementKey(np().routeId);return e?.kind===`route`?e.path:null}function wp(e,t,n,r){if(n!==void 0)return{interceptionContext:ku(n,``),previousNextUrl:n};switch(e){case`navigate`:{let e=np().previousNextUrl;if(e!==null)return{interceptionContext:ku(e,``),previousNextUrl:e};let n=so({basePath:``,currentPathname:window.location.pathname,routeManifest:Bf(),targetPathname:t});if(n!==null)return{interceptionContext:n,previousNextUrl:window.location.pathname+window.location.search};let r=co({basePath:``,currentMatchedPathname:Cp(),currentPathname:window.location.pathname,routeManifest:Bf(),targetPathname:t});return r===null?{interceptionContext:null,previousNextUrl:null}:{interceptionContext:r,previousNextUrl:window.location.pathname+window.location.search}}case`traverse`:{let e=bo(r??window.history.state);return{interceptionContext:ku(e,``),previousNextUrl:e}}case`refresh`:{let e=np().previousNextUrl;return{interceptionContext:ku(e,``),previousNextUrl:e}}default:throw Error(`[vinext] Unknown navigation kind: `+String(e))}}function Tp(e){return typeof e==`object`&&!!e&&`kind`in e&&e.kind===`mpa-navigation`}function Ep(e,t){Zf.navigate(window,e,t)}function Dp({children:e}){let t=du();return(0,z.useEffect)(()=>{let e=e=>{let n=`reason`in e?e.reason:e.error;if(!d(n))return;let r=m(n.digest);r&&(e.preventDefault(),(0,z.startTransition)(()=>{r.type===`push`?t.push(r.url):t.replace(r.url)}))};return window.addEventListener(`error`,e),window.addEventListener(`unhandledrejection`,e),()=>{window.removeEventListener(`error`,e),window.removeEventListener(`unhandledrejection`,e)}},[t]),e??null}function Op(e){return Promise.resolve(e).then(e=>B.decode(e))}function kp({hydrationCachePublication:e,initialElements:t,initialNavigationSnapshot:n}){let r=(0,z.use)(t),i=B.readMetadata(r),[a,o]=(0,z.useState)(()=>({activeOperation:null,bfcacheIds:ca(r),elements:r,interception:i.interception,interceptionContext:i.interceptionContext,layoutIds:i.layoutIds,layoutFlags:i.layoutFlags,navigationSnapshot:n,previousNextUrl:null,renderId:0,rootLayoutTreePath:i.rootLayoutTreePath,routeId:i.routeId,slotBindings:i.slotBindings,visibleCommitVersion:0}));if(Tp(a))throw Ep(a.href,a.historyUpdateMode),Qf;let s=qf(a)?(0,z.use)(a):a,c=(0,z.useRef)(s);c.current=s,(0,z.useLayoutEffect)(()=>{let t=Q.attachBrowserRouterState(e=>{o(e)},c);return ie({navigateExternal:(e,t)=>(o({href:e,historyUpdateMode:t,kind:`mpa-navigation`}),new Promise(()=>{}))}),e.commit(),()=>{e.invalidate(),ie({navigateExternal:void 0}),t(),Ol(null)}},[e,o]),(0,z.useEffect)(()=>{e.complete();let t=performance.now();window.__VINEXT_HYDRATED_AT=t,window.__NEXT_HYDRATED=!0,window.__NEXT_HYDRATED_AT=t,window.__NEXT_HYDRATED_CB?.()},[e]),(0,z.useLayoutEffect)(()=>{Z.rememberHistoryStateSnapshot(s)},[s]),(0,z.useEffect)(()=>{Jt(B.readMetadata(s.elements).sourcePage)},[s.elements]),(0,z.useLayoutEffect)(()=>{let e=kl(),t=Lt(c.current.elements);if(Ol(t),hf(),e===t)return;let n=window.setTimeout(()=>{k()?.functions.pingVisibleLinks?.()},0);return()=>{window.clearTimeout(n)}},[s.elements]),(0,z.useLayoutEffect)(()=>{s.renderId===0&&Z.writeHydratedHistoryMetadata({bfcacheIds:s.bfcacheIds,previousNextUrl:s.previousNextUrl})},[s.bfcacheIds,s.previousNextUrl,s.renderId]);let l=(0,z.createElement)(Ln,null,(0,z.createElement)(Hf,{renderId:s.renderId},(0,z.createElement)(xr.Provider,{value:s.elements},(0,z.createElement)(Xr,{id:s.routeId})))),u=(0,z.useMemo)(()=>ua({elements:s.elements,pathname:s.navigationSnapshot.pathname}),[s.elements,s.navigationSnapshot.pathname]),d=(0,z.createElement)(kr.Provider,{value:u},l),f=(0,z.createElement)(Dp,null,Gf?(0,z.createElement)(Gf.Provider,{value:s.bfcacheIds},d):d),p=Gt?(0,z.createElement)(Gt.Provider,{value:uu},f):f,m=(0,z.createElement)(_r,{commitId:s.renderId},p),h=(0,z.createElement)(Bn,{fallback:$f,children:m}),g=Fl();return g?(0,z.createElement)(g.Provider,{value:s.navigationSnapshot},h):h}function Ap(e,t,n){u({pathname:e,searchParams:new URLSearchParams(t),params:n})}function jp(e,t){let n=t?.shouldContinue??(()=>!0);if(!n())return;if(!(e&&typeof e==`object`&&`__vinext_scrollY`in e)){window.location.hash&&Zt(window.location.hash);return}let r=Number(e.__vinext_scrollY);Qt(`__vinext_scrollX`in e?Number(e.__vinext_scrollX):0,r,{minFrames:1,shouldContinue:n})}function Mp(e){if(!rp())return!1;let t=new URL(e,window.location.origin),n=np();return fd(t,``)===Rl(n.navigationSnapshot)}var Np=!1,Pp=`__vinext_rsc_initial_reload__`;function Fp(){try{return sessionStorage.getItem(Pp)}catch{return null}}function Ip(e){try{sessionStorage.setItem(Pp,e)}catch{}}function Lp(){try{sessionStorage.removeItem(Pp)}catch{}}function Rp(e){let t=window.location.pathname+window.location.search;return Fp()===t?(Lp(),console.error(`[vinext] Initial RSC fetch ${e} after reload; aborting hydration. Server-rendered HTML remains visible; client components will not hydrate.`),null):(Ip(t),Fp()===t?(console.warn(`[vinext] Initial RSC fetch ${e}; reloading once to let the server render the HTML error page`),window.location.reload(),null):(console.error(`[vinext] Initial RSC fetch ${e}; sessionStorage unavailable so the reload-loop guard cannot persist — aborting hydration. Server-rendered HTML remains visible; client components will not hydrate.`),null))}async function zp(){let e=hu(),t=k()?.bootstrap.rsc;if(t||e.__VINEXT_RSC_CHUNKS__||e.__VINEXT_RSC_DONE__){if(Lp(),ud(),t)return Bp(t),t.done?(j({rsc:void 0}),_u(t.rsc)):yu();let n=e.__VINEXT_RSC_PARAMS__??{};return e.__VINEXT_RSC_PARAMS__&&op(e.__VINEXT_RSC_PARAMS__),e.__VINEXT_RSC_NAV__&&Ap(e.__VINEXT_RSC_NAV__.pathname,e.__VINEXT_RSC_NAV__.searchParams,n),yu()}let n=Di(),r=await fetch(await ki(window.location.pathname+window.location.search,n),{credentials:`include`,headers:n});if(!r.ok)return Rp(`returned ${r.status}`);let i=r.headers.get(`content-type`)??``;if(!i.startsWith(`text/x-component`))return Rp(`returned non-RSC content-type "${i||`(missing)`}"`);if(!r.body)return Rp(`returned empty body`);Lp(),ud();let a=Kf(r.headers.get(oe)),o=a??{};if(a)try{op(a)}catch{}return Ap(window.location.pathname,window.location.search,o),r.body}function Bp(e){let t=e.params??{};e.params&&op(e.params),e.nav&&Ap(e.nav.pathname,e.nav.searchParams,t)}async function Vp(){if(!Rf())return;let e=k()?.bootstrap.rsc,t=await zp();t!==null&&Hp(t,null,e)}function Hp(e,t,n){let r=Vd(),i=Yf,[a,o]=e.tee(),s=Op(Tf(a)),c=Ll(window.location.href,Jf),l=c.params,u=Rl(c),d=new Response(o).arrayBuffer();Promise.all([s,d]).then(async([e,t])=>{if(i!==Yf)return;let a=B.readMetadata(e);if(Xf={pathAndSearch:u,routeId:a.routeId},!wu(a))return;let o=Lt(e),s=Di({mountedSlotsHeader:o}),c=await ki(u,s);if(i!==Yf)return;let d={compatibilityIdHeader:Pf,buffer:t,contentType:ci,...n?.dynamicStaleTimeSeconds===void 0?{}:{dynamicStaleTimeSeconds:n.dynamicStaleTimeSeconds},mountedSlotsHeader:o,paramsHeader:encodeURIComponent(JSON.stringify(l)),renderedPathAndSearch:null,url:c},f=n?.initialCacheKind===`static`?Lc:Ic;r.publish(()=>i===Yf?xp(c,a.interceptionContext,d,l,f,o,e,!1):()=>{})}).catch(()=>{}),Z.writeBootstrapHistoryMetadata();let f=Rd(),p=(...e)=>{r.fail(),f(...e)},m=_d({formState:gd(hu()),onCaughtError:(e=>((...t)=>{r.fail(),e(...t)}))(zd(p)),onRecoverableError:(...e)=>{r.fail(),Bd(...e)},onUncaughtError:p}),h=(0,z.createElement)(kp,{hydrationCachePublication:r,initialElements:s,initialNavigationSnapshot:c}),g=document.querySelectorAll(`style[data-vinext-error-shell-style]`);if(document.documentElement.id===`__next_error__`){let{formState:e,...t}=m;for(let e of g)e.remove();(0,z.startTransition)(()=>{let e=(0,gf.createRoot)(document,t);e.render(h),window.__VINEXT_RSC_ROOT__=e})}else window.__VINEXT_RSC_ROOT__=vd({children:h,container:document,hydrateRoot:gf.hydrateRoot,options:m,startTransition:z.startTransition});zf();let _=null;function v(){_?.abort(),_=null}ie({clearNavigationCaches:up,commitHashNavigation:(e,t,n)=>Z.commitHashOnlyNavigation(e,t,n),getPrefetchRouterState:()=>{if(!Q.hasBrowserRouterState()){if(Xf)return Xf;let e=k()?.bootstrap.routeManifest??null,t=e?tf({basePath:``,href:window.location.href,routeManifest:e}):null;return t?{pathAndSearch:fd(new URL(window.location.href),``),routeId:t.route.id}:null}let e=Q.getBrowserRouterState();return{pathAndSearch:Rl(e.navigationSnapshot),routeId:e.routeId}},navigate:async function(e,t=0,n=`navigate`,r,i,a=!1,o,s,c=`transition`){v();let l=new AbortController;_=l;let u=null,d=Q.beginNavigation(),f=Yf;Vf.markNavigationStart();let p=e,m=r,h=i,g=t,y=!1,b=n===`traverse`?o??Z.resolveTraversalIntent(window.history.state):null,x=(e,t)=>{nr(s??null);let n=Q.performHardNavigation(e,t);return n||cn(e),n},ee=n===`traverse`?Z.readCurrentBfcacheVersionHistoryIds(b?.historyState??window.history.state):null,te=n!==`traverse`||!Z.isCacheInvalidationGuarded()&&Z.isCurrentBfcacheVersion(b?.historyState??window.history.state);try{let e=a;if(rp())e&&(u=ap());else{if(await ip(),!Q.isCurrentNavigation(d))return;e&&(u=ap())}let t=np(),r=Lt(t.elements);for(;;){let e=new URL(p,window.location.origin),i=wp(n,e.pathname,h,b?.historyState),a=i.interceptionContext,o=i.previousNextUrl;n===`refresh`&&Z.syncCurrentHistoryStatePreviousNextUrl(o,np().bfcacheIds),Hl(e.pathname,d);let v=n===`navigate`?G.classifyEarlyNavigationIntent({basePath:``,currentHref:Sp(t.navigationSnapshot),mode:`push`,scroll:!1,targetHref:e.href}):null,ne=v?.kind===`flightNavigation`&&v.bypassNavigationCache,S=Di({fetchPriority:`auto`,interceptionContext:a,mountedSlotsHeader:r}),C=e.pathname+e.search,w=[],T=n===`navigate`&&!ne?Cl(C,a,r,{additionalRscUrls:w}):null,E=T?Gd({additionalRscUrls:w,origin:window.location.origin,responseUrl:T.url,visibleRscUrl:C}):await ki(C,S),D=T?w:await Promise.all(w.map(e=>ki(e,S))),re=ne?{cacheKey:B.encodeCacheKey(E,a),entry:null,facts:{candidate:`missing`,navigationKind:n}}:vp(E,a,r,n),O=yp(re,G.classifyVisitedResponseCacheCandidate(re.facts)),k=O===null?{status:`unavailable`}:{status:`available`},A=G.classifyNavigationPrefetchProbe({bypassNavigationCache:ne,navigationKind:n,visitedResponse:k}),j=n===`navigate`?Bf():null,ie=T!==null||A.kind===`probe`&&el(E,a,r,{additionalRscUrls:D,notifyInvalidation:!1}),M=G.classifyNavigationReuse({bypassNavigationCache:ne,navigationKind:n,optimisticRouteShell:j===null?{reason:`routeManifestMissing`,status:`unavailable`}:{status:`available`},prefetch:ie?{status:`available`}:{status:`unavailable`},targetHref:p,visitedResponse:k});if(M.kind===`reuseVisitedResponse`&&O){let e=G.classifyRscFetchResult({clientCompatibilityId:Pf,compatibilityIdHeader:O.response.compatibilityIdHeader??null,currentHref:p,effectiveHistoryUpdateMode:m??`replace`,hasBody:!0,isRscContentType:!0,origin:window.location.origin,redirectDepth:g,requestPreviousNextUrl:o,responseOk:!0,responseUrl:O.response.url,source:`cached`,streamedRedirectTarget:null});if(e.kind===`hardNavigate`){e.reason===`redirectDepthExhausted`&&console.error(`[vinext] Too many RSC redirects — aborting navigation to prevent infinite loop.`),x(e.url);return}if(e.kind===`followRedirect`){n===`traverse`&&(ee=null),p=e.redirect.href,m=e.redirect.historyUpdateMode,h=e.redirect.previousNextUrl,g=e.redirect.redirectDepth;continue}if(!Q.isCurrentNavigation(d))return;let r=O.params,i=Ll(p,r),l=O.elements?Promise.resolve(O.elements):Op(Ef(Promise.resolve(bl(O.response))));if(!Q.isCurrentNavigation(d))return;if(await gp({actionType:jf(n),historyUpdateMode:m,navigationCommitKind:y?`authoritative`:void 0,navigationInitiationState:t,navigationSnapshot:i,navId:d,operationLane:Mf(n),params:r,payload:l,payloadOrigin:O.elements?bu:Su,pendingRouterState:y?null:u,previousNextUrl:o,restoredBfcacheIds:ee,reuseCurrentBfcacheIds:te,scrollIntent:s,targetHref:p,traversalIntent:b,visibleCommitMode:c})===`no-commit`){if(!Q.isCurrentNavigation(d))return;bp(E,a);continue}return}let N,ae,oe=null,P,F=M;if(M.kind===`consumePrefetch`){let e=T??await Tl(E,a,r,{additionalRscUrls:D,shouldConsume:()=>Q.isCurrentNavigation(d)});if(!Q.isCurrentNavigation(d))return;e&&(P=e.preparedElements,N=bl(e,!1),ae=e.expiresAt,oe=Gd({additionalRscUrls:D,origin:window.location.origin,responseUrl:e.url,visibleRscUrl:E})),N||(j=n===`navigate`?Bf():null,F=G.classifyNavigationReuse({bypassNavigationCache:ne,navigationKind:n,optimisticRouteShell:j===null?{reason:`routeManifestMissing`,status:`unavailable`}:{status:`available`},prefetch:{status:`unavailable`},targetHref:p,visitedResponse:{status:`unavailable`}}))}if(!N&&F.kind===`attemptOptimisticRouteShell`){if(await mp({interceptionContext:a,mountedSlotsHeader:r,routeManifest:j}),!Q.isCurrentNavigation(d))return;if(j!==null){let e=uf({basePath:``,href:p,interceptionContext:a,mountedSlotsHeader:r,routeManifest:j,templates:Ff});if(e!==null){y=!0;let r=Ll(p,e.params);gp({actionType:jf(n),historyUpdateMode:m,navigationCommitKind:`detached`,navigationInitiationState:t,navigationSnapshot:r,navId:d,operationLane:Mf(n),params:e.params,payload:Promise.resolve(e.elements),payloadOrigin:xu,pendingRouterState:null,previousNextUrl:o,restoredBfcacheIds:ee,reuseCurrentBfcacheIds:te,scrollIntent:s,targetHref:p,traversalIntent:b,visibleCommitMode:c}).catch(e=>{Q.isCurrentNavigation(d)&&console.error(`[vinext] Optimistic RSC navigation error:`,e)})}}}if(!N){if(n===`navigate`){let e=no(t);e!==null&&S.set(ue,e)}N=await fetch(E,{headers:S,credentials:`include`,priority:`auto`,signal:l.signal})}if(!Q.isCurrentNavigation(d))return;let se=N.headers.get(`content-type`)??``,ce=N.headers.get(de),le=N.headers.get(fe),pe=le===`push`||le===`replace`?le:null;if(Bo(N,ce))return;let I=G.classifyRscFetchResult({clientCompatibilityId:Pf,compatibilityIdHeader:N.headers.get(si),currentHref:p,effectiveHistoryUpdateMode:m??`replace`,hasBody:N.body!==null,isRscContentType:se.startsWith(ci),origin:window.location.origin,redirectDepth:g,requestPreviousNextUrl:o,responseOk:N.ok,responseUrl:oe??N.url,source:`live`,streamedRedirectTarget:ce,streamedRedirectType:pe});if(I.kind===`hardNavigate`){I.discardBody&&N.body?.cancel().catch(()=>{}),I.reason===`redirectDepthExhausted`&&console.error(`[vinext] Too many RSC redirects — aborting navigation to prevent infinite loop.`),I.reason===`streamedRedirectLoop`&&console.error(`[vinext] RSC streamed redirect resolved to the current URL — aborting navigation to prevent infinite loop.`),x(I.url,I.hardNavigationMode);return}if(I.kind===`followRedirect`){I.discardBody&&N.body?.cancel().catch(()=>{}),n===`traverse`&&(ee=null),p=I.redirect.href,m=I.redirect.historyUpdateMode,h=I.redirect.previousNextUrl,g=I.redirect.redirectDepth;continue}let me=Kf(N.headers.get(`X-Vinext-Params`))??{},he=Ll(p,me),ge=N.body;if(!ge)return;let[_e,ve]=ge.tee(),ye=new Response(_e,{status:N.status,headers:N.headers}),be=new Response(ve).arrayBuffer();if(be.catch(()=>{}),!Q.isCurrentNavigation(d))return;P&&_e.cancel().catch(()=>{});let xe=P||Op(Ef(Promise.resolve(ye)));if(!Q.isCurrentNavigation(d))return;let Se=null;if(await gp({actionType:jf(n),historyUpdateMode:m,navigationCommitKind:y?`authoritative`:void 0,navigationInitiationState:t,navigationSnapshot:he,navId:d,onCommittedState:e=>{Se=e,_===l&&(_=null)},operationLane:Mf(n),params:me,payload:xe,payloadOrigin:xu,pendingRouterState:y?null:u,previousNextUrl:o,restoredBfcacheIds:ee,reuseCurrentBfcacheIds:te,scrollIntent:s,targetHref:p,traversalIntent:b,visibleCommitMode:P?`synchronous`:c})!==`committed`)return;Se??=np();try{let e=await xe;if(f!==Yf)return;let t=B.readMetadata(e),n=await be;if(f!==Yf)return;let i=_l(N,n,oe),{dynamicStaleTimeSeconds:o,...s}=i,c={...Tu(t)?s:{...i,...i.dynamicStaleTimeSeconds===void 0&&t.dynamicStaleTimeSeconds!==void 0?{dynamicStaleTimeSeconds:t.dynamicStaleTimeSeconds}:{}},...ae===void 0?{}:{expiresAt:ae},mountedSlotsHeader:Lt(e)},l=Rt(a,t.interceptionContext);if(Tu(t)){if(f!==Yf)return;xp(E,l,c,me,Lc,r)}else{let e=Se,t={...e.elements,[B.keys.layoutFlags]:e.layoutFlags,[B.keys.layoutIds]:e.layoutIds,[B.keys.skippedLayoutIds]:[],[B.keys.slotBindings]:e.slotBindings};if(f!==Yf)return;xp(E,l,c,me,Ic,r,t)}}catch{}return}}catch(e){if(!Q.isCurrentNavigation(d))return;Np||console.error(`[vinext] RSC navigation error:`,e),x(G.classifyRscNavigationError({currentHref:p}).url)}finally{_===l&&(_=null),Q.finalizeNavigation(d,u),Vf.markNavigationSettled()}},preparePrefetchResponse:e=>Op(Ef(Promise.resolve(e)))});let y=Pd({getActiveNavigationId:Q.getActiveNavigationId.bind(Q),getPendingNavigation:()=>window.__VINEXT_RSC_PENDING__,getNavigate:()=>k()?.functions.navigate,isCurrentNavigation:Q.isCurrentNavigation.bind(Q),notifyAppRouterTransitionStart:e=>{Ni(e,`traverse`)},restorePopstateScrollPosition:jp,setPendingNavigation:e=>{window.__VINEXT_RSC_PENDING__=e},shouldSkipScrollRestore:e=>ep===e});window.addEventListener(`popstate`,e=>{let t=window.location.href;if(Mp(t)){Ni(t,`traverse`),Z.commitTraversalIndexFromHistoryState(e.state),jp(e.state);return}let n=Q.beginNavigation();if(tp(e.state,n,()=>{v(),Ni(t,`traverse`)})){window.__VINEXT_RSC_PENDING__=null,jd({getActiveNavigationId:()=>Q.getActiveNavigationId(),isCurrentNavigation:e=>Q.isCurrentNavigation(e),markScrollRestoreConsumed:e=>{ep=e},restorePopstateScrollPosition:jp},e.state),Q.finalizeNavigation(n,null);return}Q.finalizeNavigation(n,null),y(e)})}typeof document<`u`&&(qt({appDir:!0,router:uu}),window.addEventListener(`pagehide`,()=>{Np=!0}),window.addEventListener(`pageshow`,e=>{Np=!1,e.persisted&&Zf.reset()}),Vp()),window.__VINEXT_LINK_PREFETCH_ROUTES__=[{canPrefetchLoadingShell:!1,documentOnly:!0,patternParts:[`api`,`netflix`,`activity`,`:sessionId`,`commands`],isDynamic:!0},{canPrefetchLoadingShell:!1,documentOnly:!0,patternParts:[`api`,`netflix`,`profiles`,`:id`,`library`],isDynamic:!0},{canPrefetchLoadingShell:!1,documentOnly:!0,patternParts:[`api`,`netflix`,`profiles`,`:id`,`select`],isDynamic:!0},{canPrefetchLoadingShell:!1,documentOnly:!0,patternParts:[`api`,`netflix`,`providers`,`:providerId`,`sync`],isDynamic:!0},{canPrefetchLoadingShell:!1,documentOnly:!0,patternParts:[`api`,`spotify`,`providers`,`:id`,`sync`],isDynamic:!0},{canPrefetchLoadingShell:!1,documentOnly:!0,patternParts:[`api`,`spotify`,`tracks`,`:id`,`audio`],isDynamic:!0},{canPrefetchLoadingShell:!1,documentOnly:!0,patternParts:[`api`,`netflix`,`profiles`,`:id`],isDynamic:!0},{canPrefetchLoadingShell:!1,documentOnly:!0,patternParts:[`api`,`netflix`,`stream`,`:id`],isDynamic:!0},{canPrefetchLoadingShell:!1,documentOnly:!0,patternParts:[`api`,`netflix`,`titles`,`:id`],isDynamic:!0},{canPrefetchLoadingShell:!1,patternParts:[],isDynamic:!1},{canPrefetchLoadingShell:!1,documentOnly:!0,patternParts:[`api`,`access`],isDynamic:!1},{canPrefetchLoadingShell:!1,documentOnly:!0,patternParts:[`api`,`keyboard`],isDynamic:!1},{canPrefetchLoadingShell:!1,documentOnly:!0,patternParts:[`api`,`netflix`,`activity`],isDynamic:!1},{canPrefetchLoadingShell:!1,documentOnly:!0,patternParts:[`api`,`netflix`,`activity`,`titles`],isDynamic:!1},{canPrefetchLoadingShell:!1,documentOnly:!0,patternParts:[`api`,`netflix`,`library`],isDynamic:!1},{canPrefetchLoadingShell:!1,documentOnly:!0,patternParts:[`api`,`netflix`,`markers`],isDynamic:!1},{canPrefetchLoadingShell:!1,documentOnly:!0,patternParts:[`api`,`netflix`,`movies`,`import`],isDynamic:!1},{canPrefetchLoadingShell:!1,documentOnly:!0,patternParts:[`api`,`netflix`,`profiles`],isDynamic:!1},{canPrefetchLoadingShell:!1,documentOnly:!0,patternParts:[`api`,`netflix`,`progress`],isDynamic:!1},{canPrefetchLoadingShell:!1,documentOnly:!0,patternParts:[`api`,`netflix`,`search`],isDynamic:!1},{canPrefetchLoadingShell:!1,documentOnly:!0,patternParts:[`api`,`netflix`,`subtitle-preferences`],isDynamic:!1},{canPrefetchLoadingShell:!1,documentOnly:!0,patternParts:[`api`,`remote-screen`],isDynamic:!1},{canPrefetchLoadingShell:!1,documentOnly:!0,patternParts:[`api`,`remote-screen`,`control`],isDynamic:!1},{canPrefetchLoadingShell:!1,documentOnly:!0,patternParts:[`api`,`remote-screen`,`frame`],isDynamic:!1},{canPrefetchLoadingShell:!1,documentOnly:!0,patternParts:[`api`,`spotify`,`downloads`],isDynamic:!1},{canPrefetchLoadingShell:!1,documentOnly:!0,patternParts:[`api`,`spotify`,`music`],isDynamic:!1},{canPrefetchLoadingShell:!1,documentOnly:!0,patternParts:[`api`,`spotify`,`playlists`],isDynamic:!1},{canPrefetchLoadingShell:!1,documentOnly:!0,patternParts:[`api`,`spotify`,`providers`],isDynamic:!1},{canPrefetchLoadingShell:!1,documentOnly:!0,patternParts:[`api`,`spotify`,`recently-played`],isDynamic:!1},{canPrefetchLoadingShell:!1,documentOnly:!0,patternParts:[`api`,`spotify`,`tracks`],isDynamic:!1},{canPrefetchLoadingShell:!1,documentOnly:!0,patternParts:[`api`,`trackpad`],isDynamic:!1},{canPrefetchLoadingShell:!1,patternParts:[`netflix`],isDynamic:!1},{canPrefetchLoadingShell:!1,patternParts:[`netflix`,`search`],isDynamic:!1},{canPrefetchLoadingShell:!1,patternParts:[`spotify`],isDynamic:!1},{canPrefetchLoadingShell:!1,documentOnly:!0,patternParts:[`api`,`netflix`,`subtitles`,`:id`,`:ownerId`,`:track`],isDynamic:!0},{canPrefetchLoadingShell:!1,documentOnly:!0,patternParts:[`api`,`netflix`,`media`,`:id`,`:path+`],isDynamic:!0},{canPrefetchLoadingShell:!1,documentOnly:!0,patternParts:[`api`,`netflix`,`stream`,`:id`,`:path+`],isDynamic:!0}],window.__VINEXT_PAGES_LINK_PREFETCH_ROUTES__=[],window.__VINEXT_CLIENT_REWRITES__={beforeFiles:[],afterFiles:[],fallback:[]},j({routeManifest:{graphVersion:`graph:2f8940fcd910db2168d8c2e0acb1afcca76efe9704fbd2362d593fd2ecd4235a`,segmentGraph:{routes:new Map([[`route:/api/netflix/activity/:sessionId/commands`,{id:`route:/api/netflix/activity/:sessionId/commands`,pattern:`/api/netflix/activity/:sessionId/commands`,patternParts:[`api`,`netflix`,`activity`,`:sessionId`,`commands`],isDynamic:!0,paramNames:[`sessionId`],rootParamNames:[],rootBoundaryId:`root-boundary:/`,pageId:null,routeHandlerId:`route-handler:/api/netflix/activity/:sessionId/commands`,layoutIds:[`layout:/`],templateIds:[],slotIds:[]}],[`route:/api/netflix/profiles/:id/library`,{id:`route:/api/netflix/profiles/:id/library`,pattern:`/api/netflix/profiles/:id/library`,patternParts:[`api`,`netflix`,`profiles`,`:id`,`library`],isDynamic:!0,paramNames:[`id`],rootParamNames:[],rootBoundaryId:`root-boundary:/`,pageId:null,routeHandlerId:`route-handler:/api/netflix/profiles/:id/library`,layoutIds:[`layout:/`],templateIds:[],slotIds:[]}],[`route:/api/netflix/profiles/:id/select`,{id:`route:/api/netflix/profiles/:id/select`,pattern:`/api/netflix/profiles/:id/select`,patternParts:[`api`,`netflix`,`profiles`,`:id`,`select`],isDynamic:!0,paramNames:[`id`],rootParamNames:[],rootBoundaryId:`root-boundary:/`,pageId:null,routeHandlerId:`route-handler:/api/netflix/profiles/:id/select`,layoutIds:[`layout:/`],templateIds:[],slotIds:[]}],[`route:/api/netflix/providers/:providerId/sync`,{id:`route:/api/netflix/providers/:providerId/sync`,pattern:`/api/netflix/providers/:providerId/sync`,patternParts:[`api`,`netflix`,`providers`,`:providerId`,`sync`],isDynamic:!0,paramNames:[`providerId`],rootParamNames:[],rootBoundaryId:`root-boundary:/`,pageId:null,routeHandlerId:`route-handler:/api/netflix/providers/:providerId/sync`,layoutIds:[`layout:/`],templateIds:[],slotIds:[]}],[`route:/api/spotify/providers/:id/sync`,{id:`route:/api/spotify/providers/:id/sync`,pattern:`/api/spotify/providers/:id/sync`,patternParts:[`api`,`spotify`,`providers`,`:id`,`sync`],isDynamic:!0,paramNames:[`id`],rootParamNames:[],rootBoundaryId:`root-boundary:/`,pageId:null,routeHandlerId:`route-handler:/api/spotify/providers/:id/sync`,layoutIds:[`layout:/`],templateIds:[],slotIds:[]}],[`route:/api/spotify/tracks/:id/audio`,{id:`route:/api/spotify/tracks/:id/audio`,pattern:`/api/spotify/tracks/:id/audio`,patternParts:[`api`,`spotify`,`tracks`,`:id`,`audio`],isDynamic:!0,paramNames:[`id`],rootParamNames:[],rootBoundaryId:`root-boundary:/`,pageId:null,routeHandlerId:`route-handler:/api/spotify/tracks/:id/audio`,layoutIds:[`layout:/`],templateIds:[],slotIds:[]}],[`route:/api/netflix/profiles/:id`,{id:`route:/api/netflix/profiles/:id`,pattern:`/api/netflix/profiles/:id`,patternParts:[`api`,`netflix`,`profiles`,`:id`],isDynamic:!0,paramNames:[`id`],rootParamNames:[],rootBoundaryId:`root-boundary:/`,pageId:null,routeHandlerId:`route-handler:/api/netflix/profiles/:id`,layoutIds:[`layout:/`],templateIds:[],slotIds:[]}],[`route:/api/netflix/stream/:id`,{id:`route:/api/netflix/stream/:id`,pattern:`/api/netflix/stream/:id`,patternParts:[`api`,`netflix`,`stream`,`:id`],isDynamic:!0,paramNames:[`id`],rootParamNames:[],rootBoundaryId:`root-boundary:/`,pageId:null,routeHandlerId:`route-handler:/api/netflix/stream/:id`,layoutIds:[`layout:/`],templateIds:[],slotIds:[]}],[`route:/api/netflix/titles/:id`,{id:`route:/api/netflix/titles/:id`,pattern:`/api/netflix/titles/:id`,patternParts:[`api`,`netflix`,`titles`,`:id`],isDynamic:!0,paramNames:[`id`],rootParamNames:[],rootBoundaryId:`root-boundary:/`,pageId:null,routeHandlerId:`route-handler:/api/netflix/titles/:id`,layoutIds:[`layout:/`],templateIds:[],slotIds:[]}],[`route:/`,{id:`route:/`,pattern:`/`,patternParts:[],isDynamic:!1,paramNames:[],rootParamNames:[],rootBoundaryId:`root-boundary:/`,pageId:`page:/`,routeHandlerId:null,layoutIds:[`layout:/`],templateIds:[],slotIds:[]}],[`route:/api/access`,{id:`route:/api/access`,pattern:`/api/access`,patternParts:[`api`,`access`],isDynamic:!1,paramNames:[],rootParamNames:[],rootBoundaryId:`root-boundary:/`,pageId:null,routeHandlerId:`route-handler:/api/access`,layoutIds:[`layout:/`],templateIds:[],slotIds:[]}],[`route:/api/keyboard`,{id:`route:/api/keyboard`,pattern:`/api/keyboard`,patternParts:[`api`,`keyboard`],isDynamic:!1,paramNames:[],rootParamNames:[],rootBoundaryId:`root-boundary:/`,pageId:null,routeHandlerId:`route-handler:/api/keyboard`,layoutIds:[`layout:/`],templateIds:[],slotIds:[]}],[`route:/api/netflix/activity`,{id:`route:/api/netflix/activity`,pattern:`/api/netflix/activity`,patternParts:[`api`,`netflix`,`activity`],isDynamic:!1,paramNames:[],rootParamNames:[],rootBoundaryId:`root-boundary:/`,pageId:null,routeHandlerId:`route-handler:/api/netflix/activity`,layoutIds:[`layout:/`],templateIds:[],slotIds:[]}],[`route:/api/netflix/activity/titles`,{id:`route:/api/netflix/activity/titles`,pattern:`/api/netflix/activity/titles`,patternParts:[`api`,`netflix`,`activity`,`titles`],isDynamic:!1,paramNames:[],rootParamNames:[],rootBoundaryId:`root-boundary:/`,pageId:null,routeHandlerId:`route-handler:/api/netflix/activity/titles`,layoutIds:[`layout:/`],templateIds:[],slotIds:[]}],[`route:/api/netflix/library`,{id:`route:/api/netflix/library`,pattern:`/api/netflix/library`,patternParts:[`api`,`netflix`,`library`],isDynamic:!1,paramNames:[],rootParamNames:[],rootBoundaryId:`root-boundary:/`,pageId:null,routeHandlerId:`route-handler:/api/netflix/library`,layoutIds:[`layout:/`],templateIds:[],slotIds:[]}],[`route:/api/netflix/markers`,{id:`route:/api/netflix/markers`,pattern:`/api/netflix/markers`,patternParts:[`api`,`netflix`,`markers`],isDynamic:!1,paramNames:[],rootParamNames:[],rootBoundaryId:`root-boundary:/`,pageId:null,routeHandlerId:`route-handler:/api/netflix/markers`,layoutIds:[`layout:/`],templateIds:[],slotIds:[]}],[`route:/api/netflix/movies/import`,{id:`route:/api/netflix/movies/import`,pattern:`/api/netflix/movies/import`,patternParts:[`api`,`netflix`,`movies`,`import`],isDynamic:!1,paramNames:[],rootParamNames:[],rootBoundaryId:`root-boundary:/`,pageId:null,routeHandlerId:`route-handler:/api/netflix/movies/import`,layoutIds:[`layout:/`],templateIds:[],slotIds:[]}],[`route:/api/netflix/profiles`,{id:`route:/api/netflix/profiles`,pattern:`/api/netflix/profiles`,patternParts:[`api`,`netflix`,`profiles`],isDynamic:!1,paramNames:[],rootParamNames:[],rootBoundaryId:`root-boundary:/`,pageId:null,routeHandlerId:`route-handler:/api/netflix/profiles`,layoutIds:[`layout:/`],templateIds:[],slotIds:[]}],[`route:/api/netflix/progress`,{id:`route:/api/netflix/progress`,pattern:`/api/netflix/progress`,patternParts:[`api`,`netflix`,`progress`],isDynamic:!1,paramNames:[],rootParamNames:[],rootBoundaryId:`root-boundary:/`,pageId:null,routeHandlerId:`route-handler:/api/netflix/progress`,layoutIds:[`layout:/`],templateIds:[],slotIds:[]}],[`route:/api/netflix/search`,{id:`route:/api/netflix/search`,pattern:`/api/netflix/search`,patternParts:[`api`,`netflix`,`search`],isDynamic:!1,paramNames:[],rootParamNames:[],rootBoundaryId:`root-boundary:/`,pageId:null,routeHandlerId:`route-handler:/api/netflix/search`,layoutIds:[`layout:/`],templateIds:[],slotIds:[]}],[`route:/api/netflix/subtitle-preferences`,{id:`route:/api/netflix/subtitle-preferences`,pattern:`/api/netflix/subtitle-preferences`,patternParts:[`api`,`netflix`,`subtitle-preferences`],isDynamic:!1,paramNames:[],rootParamNames:[],rootBoundaryId:`root-boundary:/`,pageId:null,routeHandlerId:`route-handler:/api/netflix/subtitle-preferences`,layoutIds:[`layout:/`],templateIds:[],slotIds:[]}],[`route:/api/remote-screen`,{id:`route:/api/remote-screen`,pattern:`/api/remote-screen`,patternParts:[`api`,`remote-screen`],isDynamic:!1,paramNames:[],rootParamNames:[],rootBoundaryId:`root-boundary:/`,pageId:null,routeHandlerId:`route-handler:/api/remote-screen`,layoutIds:[`layout:/`],templateIds:[],slotIds:[]}],[`route:/api/remote-screen/control`,{id:`route:/api/remote-screen/control`,pattern:`/api/remote-screen/control`,patternParts:[`api`,`remote-screen`,`control`],isDynamic:!1,paramNames:[],rootParamNames:[],rootBoundaryId:`root-boundary:/`,pageId:null,routeHandlerId:`route-handler:/api/remote-screen/control`,layoutIds:[`layout:/`],templateIds:[],slotIds:[]}],[`route:/api/remote-screen/frame`,{id:`route:/api/remote-screen/frame`,pattern:`/api/remote-screen/frame`,patternParts:[`api`,`remote-screen`,`frame`],isDynamic:!1,paramNames:[],rootParamNames:[],rootBoundaryId:`root-boundary:/`,pageId:null,routeHandlerId:`route-handler:/api/remote-screen/frame`,layoutIds:[`layout:/`],templateIds:[],slotIds:[]}],[`route:/api/spotify/downloads`,{id:`route:/api/spotify/downloads`,pattern:`/api/spotify/downloads`,patternParts:[`api`,`spotify`,`downloads`],isDynamic:!1,paramNames:[],rootParamNames:[],rootBoundaryId:`root-boundary:/`,pageId:null,routeHandlerId:`route-handler:/api/spotify/downloads`,layoutIds:[`layout:/`],templateIds:[],slotIds:[]}],[`route:/api/spotify/music`,{id:`route:/api/spotify/music`,pattern:`/api/spotify/music`,patternParts:[`api`,`spotify`,`music`],isDynamic:!1,paramNames:[],rootParamNames:[],rootBoundaryId:`root-boundary:/`,pageId:null,routeHandlerId:`route-handler:/api/spotify/music`,layoutIds:[`layout:/`],templateIds:[],slotIds:[]}],[`route:/api/spotify/playlists`,{id:`route:/api/spotify/playlists`,pattern:`/api/spotify/playlists`,patternParts:[`api`,`spotify`,`playlists`],isDynamic:!1,paramNames:[],rootParamNames:[],rootBoundaryId:`root-boundary:/`,pageId:null,routeHandlerId:`route-handler:/api/spotify/playlists`,layoutIds:[`layout:/`],templateIds:[],slotIds:[]}],[`route:/api/spotify/providers`,{id:`route:/api/spotify/providers`,pattern:`/api/spotify/providers`,patternParts:[`api`,`spotify`,`providers`],isDynamic:!1,paramNames:[],rootParamNames:[],rootBoundaryId:`root-boundary:/`,pageId:null,routeHandlerId:`route-handler:/api/spotify/providers`,layoutIds:[`layout:/`],templateIds:[],slotIds:[]}],[`route:/api/spotify/recently-played`,{id:`route:/api/spotify/recently-played`,pattern:`/api/spotify/recently-played`,patternParts:[`api`,`spotify`,`recently-played`],isDynamic:!1,paramNames:[],rootParamNames:[],rootBoundaryId:`root-boundary:/`,pageId:null,routeHandlerId:`route-handler:/api/spotify/recently-played`,layoutIds:[`layout:/`],templateIds:[],slotIds:[]}],[`route:/api/spotify/tracks`,{id:`route:/api/spotify/tracks`,pattern:`/api/spotify/tracks`,patternParts:[`api`,`spotify`,`tracks`],isDynamic:!1,paramNames:[],rootParamNames:[],rootBoundaryId:`root-boundary:/`,pageId:null,routeHandlerId:`route-handler:/api/spotify/tracks`,layoutIds:[`layout:/`],templateIds:[],slotIds:[]}],[`route:/api/trackpad`,{id:`route:/api/trackpad`,pattern:`/api/trackpad`,patternParts:[`api`,`trackpad`],isDynamic:!1,paramNames:[],rootParamNames:[],rootBoundaryId:`root-boundary:/`,pageId:null,routeHandlerId:`route-handler:/api/trackpad`,layoutIds:[`layout:/`],templateIds:[],slotIds:[]}],[`route:/netflix`,{id:`route:/netflix`,pattern:`/netflix`,patternParts:[`netflix`],isDynamic:!1,paramNames:[],rootParamNames:[],rootBoundaryId:`root-boundary:/`,pageId:`page:/netflix`,routeHandlerId:null,layoutIds:[`layout:/`,`layout:/netflix`],templateIds:[],slotIds:[]}],[`route:/netflix/search`,{id:`route:/netflix/search`,pattern:`/netflix/search`,patternParts:[`netflix`,`search`],isDynamic:!1,paramNames:[],rootParamNames:[],rootBoundaryId:`root-boundary:/`,pageId:`page:/netflix/search`,routeHandlerId:null,layoutIds:[`layout:/`,`layout:/netflix`],templateIds:[],slotIds:[]}],[`route:/spotify`,{id:`route:/spotify`,pattern:`/spotify`,patternParts:[`spotify`],isDynamic:!1,paramNames:[],rootParamNames:[],rootBoundaryId:`root-boundary:/`,pageId:`page:/spotify`,routeHandlerId:null,layoutIds:[`layout:/`,`layout:/spotify`],templateIds:[],slotIds:[]}],[`route:/api/netflix/subtitles/:id/:ownerId/:track`,{id:`route:/api/netflix/subtitles/:id/:ownerId/:track`,pattern:`/api/netflix/subtitles/:id/:ownerId/:track`,patternParts:[`api`,`netflix`,`subtitles`,`:id`,`:ownerId`,`:track`],isDynamic:!0,paramNames:[`id`,`ownerId`,`track`],rootParamNames:[],rootBoundaryId:`root-boundary:/`,pageId:null,routeHandlerId:`route-handler:/api/netflix/subtitles/:id/:ownerId/:track`,layoutIds:[`layout:/`],templateIds:[],slotIds:[]}],[`route:/api/netflix/media/:id/:path+`,{id:`route:/api/netflix/media/:id/:path+`,pattern:`/api/netflix/media/:id/:path+`,patternParts:[`api`,`netflix`,`media`,`:id`,`:path+`],isDynamic:!0,paramNames:[`id`,`path`],rootParamNames:[],rootBoundaryId:`root-boundary:/`,pageId:null,routeHandlerId:`route-handler:/api/netflix/media/:id/:path+`,layoutIds:[`layout:/`],templateIds:[],slotIds:[]}],[`route:/api/netflix/stream/:id/:path+`,{id:`route:/api/netflix/stream/:id/:path+`,pattern:`/api/netflix/stream/:id/:path+`,patternParts:[`api`,`netflix`,`stream`,`:id`,`:path+`],isDynamic:!0,paramNames:[`id`,`path`],rootParamNames:[],rootBoundaryId:`root-boundary:/`,pageId:null,routeHandlerId:`route-handler:/api/netflix/stream/:id/:path+`,layoutIds:[`layout:/`],templateIds:[],slotIds:[]}]]),pages:new Map([[`page:/`,{id:`page:/`,routeId:`route:/`,pattern:`/`}],[`page:/netflix`,{id:`page:/netflix`,routeId:`route:/netflix`,pattern:`/netflix`}],[`page:/netflix/search`,{id:`page:/netflix/search`,routeId:`route:/netflix/search`,pattern:`/netflix/search`}],[`page:/spotify`,{id:`page:/spotify`,routeId:`route:/spotify`,pattern:`/spotify`}]]),routeHandlers:new Map([[`route-handler:/api/netflix/activity/:sessionId/commands`,{id:`route-handler:/api/netflix/activity/:sessionId/commands`,routeId:`route:/api/netflix/activity/:sessionId/commands`,pattern:`/api/netflix/activity/:sessionId/commands`}],[`route-handler:/api/netflix/profiles/:id/library`,{id:`route-handler:/api/netflix/profiles/:id/library`,routeId:`route:/api/netflix/profiles/:id/library`,pattern:`/api/netflix/profiles/:id/library`}],[`route-handler:/api/netflix/profiles/:id/select`,{id:`route-handler:/api/netflix/profiles/:id/select`,routeId:`route:/api/netflix/profiles/:id/select`,pattern:`/api/netflix/profiles/:id/select`}],[`route-handler:/api/netflix/providers/:providerId/sync`,{id:`route-handler:/api/netflix/providers/:providerId/sync`,routeId:`route:/api/netflix/providers/:providerId/sync`,pattern:`/api/netflix/providers/:providerId/sync`}],[`route-handler:/api/spotify/providers/:id/sync`,{id:`route-handler:/api/spotify/providers/:id/sync`,routeId:`route:/api/spotify/providers/:id/sync`,pattern:`/api/spotify/providers/:id/sync`}],[`route-handler:/api/spotify/tracks/:id/audio`,{id:`route-handler:/api/spotify/tracks/:id/audio`,routeId:`route:/api/spotify/tracks/:id/audio`,pattern:`/api/spotify/tracks/:id/audio`}],[`route-handler:/api/netflix/profiles/:id`,{id:`route-handler:/api/netflix/profiles/:id`,routeId:`route:/api/netflix/profiles/:id`,pattern:`/api/netflix/profiles/:id`}],[`route-handler:/api/netflix/stream/:id`,{id:`route-handler:/api/netflix/stream/:id`,routeId:`route:/api/netflix/stream/:id`,pattern:`/api/netflix/stream/:id`}],[`route-handler:/api/netflix/titles/:id`,{id:`route-handler:/api/netflix/titles/:id`,routeId:`route:/api/netflix/titles/:id`,pattern:`/api/netflix/titles/:id`}],[`route-handler:/api/access`,{id:`route-handler:/api/access`,routeId:`route:/api/access`,pattern:`/api/access`}],[`route-handler:/api/keyboard`,{id:`route-handler:/api/keyboard`,routeId:`route:/api/keyboard`,pattern:`/api/keyboard`}],[`route-handler:/api/netflix/activity`,{id:`route-handler:/api/netflix/activity`,routeId:`route:/api/netflix/activity`,pattern:`/api/netflix/activity`}],[`route-handler:/api/netflix/activity/titles`,{id:`route-handler:/api/netflix/activity/titles`,routeId:`route:/api/netflix/activity/titles`,pattern:`/api/netflix/activity/titles`}],[`route-handler:/api/netflix/library`,{id:`route-handler:/api/netflix/library`,routeId:`route:/api/netflix/library`,pattern:`/api/netflix/library`}],[`route-handler:/api/netflix/markers`,{id:`route-handler:/api/netflix/markers`,routeId:`route:/api/netflix/markers`,pattern:`/api/netflix/markers`}],[`route-handler:/api/netflix/movies/import`,{id:`route-handler:/api/netflix/movies/import`,routeId:`route:/api/netflix/movies/import`,pattern:`/api/netflix/movies/import`}],[`route-handler:/api/netflix/profiles`,{id:`route-handler:/api/netflix/profiles`,routeId:`route:/api/netflix/profiles`,pattern:`/api/netflix/profiles`}],[`route-handler:/api/netflix/progress`,{id:`route-handler:/api/netflix/progress`,routeId:`route:/api/netflix/progress`,pattern:`/api/netflix/progress`}],[`route-handler:/api/netflix/search`,{id:`route-handler:/api/netflix/search`,routeId:`route:/api/netflix/search`,pattern:`/api/netflix/search`}],[`route-handler:/api/netflix/subtitle-preferences`,{id:`route-handler:/api/netflix/subtitle-preferences`,routeId:`route:/api/netflix/subtitle-preferences`,pattern:`/api/netflix/subtitle-preferences`}],[`route-handler:/api/remote-screen`,{id:`route-handler:/api/remote-screen`,routeId:`route:/api/remote-screen`,pattern:`/api/remote-screen`}],[`route-handler:/api/remote-screen/control`,{id:`route-handler:/api/remote-screen/control`,routeId:`route:/api/remote-screen/control`,pattern:`/api/remote-screen/control`}],[`route-handler:/api/remote-screen/frame`,{id:`route-handler:/api/remote-screen/frame`,routeId:`route:/api/remote-screen/frame`,pattern:`/api/remote-screen/frame`}],[`route-handler:/api/spotify/downloads`,{id:`route-handler:/api/spotify/downloads`,routeId:`route:/api/spotify/downloads`,pattern:`/api/spotify/downloads`}],[`route-handler:/api/spotify/music`,{id:`route-handler:/api/spotify/music`,routeId:`route:/api/spotify/music`,pattern:`/api/spotify/music`}],[`route-handler:/api/spotify/playlists`,{id:`route-handler:/api/spotify/playlists`,routeId:`route:/api/spotify/playlists`,pattern:`/api/spotify/playlists`}],[`route-handler:/api/spotify/providers`,{id:`route-handler:/api/spotify/providers`,routeId:`route:/api/spotify/providers`,pattern:`/api/spotify/providers`}],[`route-handler:/api/spotify/recently-played`,{id:`route-handler:/api/spotify/recently-played`,routeId:`route:/api/spotify/recently-played`,pattern:`/api/spotify/recently-played`}],[`route-handler:/api/spotify/tracks`,{id:`route-handler:/api/spotify/tracks`,routeId:`route:/api/spotify/tracks`,pattern:`/api/spotify/tracks`}],[`route-handler:/api/trackpad`,{id:`route-handler:/api/trackpad`,routeId:`route:/api/trackpad`,pattern:`/api/trackpad`}],[`route-handler:/api/netflix/subtitles/:id/:ownerId/:track`,{id:`route-handler:/api/netflix/subtitles/:id/:ownerId/:track`,routeId:`route:/api/netflix/subtitles/:id/:ownerId/:track`,pattern:`/api/netflix/subtitles/:id/:ownerId/:track`}],[`route-handler:/api/netflix/media/:id/:path+`,{id:`route-handler:/api/netflix/media/:id/:path+`,routeId:`route:/api/netflix/media/:id/:path+`,pattern:`/api/netflix/media/:id/:path+`}],[`route-handler:/api/netflix/stream/:id/:path+`,{id:`route-handler:/api/netflix/stream/:id/:path+`,routeId:`route:/api/netflix/stream/:id/:path+`,pattern:`/api/netflix/stream/:id/:path+`}]]),layouts:new Map([[`layout:/`,{id:`layout:/`,treePath:`/`,patternParts:[],paramNames:[],rootBoundaryId:`root-boundary:/`}],[`layout:/netflix`,{id:`layout:/netflix`,treePath:`/netflix`,patternParts:[`netflix`],paramNames:[],rootBoundaryId:`root-boundary:/`}],[`layout:/spotify`,{id:`layout:/spotify`,treePath:`/spotify`,patternParts:[`spotify`],paramNames:[],rootBoundaryId:`root-boundary:/`}]]),templates:new Map([]),slots:new Map([]),defaults:new Map([]),slotBindings:new Map([]),interceptions:new Map([]),interceptionsBySlotId:new Map([]),boundaries:new Map([]),rootBoundaries:new Map([[`root-boundary:/`,{id:`root-boundary:/`,layoutId:`layout:/`,treePath:`/`}]])}}});export{du as n,K as r,Gl as t};
@@ -0,0 +1 @@
1
+ import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{r as t}from"./framework-BQUlGUOV.js";import{s as n}from"./navigation-errors-C_V42-00.js";import"./index-hn3AiVww.js";var r=e(t(),1),i=new Map;function a(e,t){return e?{...e,...t}:t}function o({providerId:e,segmentMap:t,children:o}){let s=(0,r.useRef)(null),c=n(),l=a(s.current??(e?i.get(e)??null:null),t);return(0,r.useEffect)(()=>{s.current=l,e&&i.set(e,l)},[l,e]),c?(0,r.createElement)(c.Provider,{value:l},o):o}export{o as LayoutSegmentProvider,a as mergeLayoutSegmentMap};
@@ -0,0 +1 @@
1
+ import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{i as t,r as n}from"./framework-BQUlGUOV.js";import{n as r}from"./chevron-left-Dn3noAqV.js";var i=r(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),a=r(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),o=r(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),s=r(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]),c=r(`pause`,[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]),l=r(`pencil`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]),u=r(`play`,[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]),d=r(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),f=r(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),p=r(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),m=r(`skip-forward`,[[`path`,{d:`M21 4v16`,key:`7j8fe9`}],[`path`,{d:`M6.029 4.285A2 2 0 0 0 3 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z`,key:`zs4d6`}]]),h=r(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),g=r(`volume-2`,[[`path`,{d:`M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z`,key:`uqj9uw`}],[`path`,{d:`M16 9a5 5 0 0 1 0 6`,key:`1q6k2b`}],[`path`,{d:`M19.364 18.364a9 9 0 0 0 0-12.728`,key:`ijwkga`}]]),_=r(`volume-x`,[[`path`,{d:`M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z`,key:`uqj9uw`}],[`line`,{x1:`22`,x2:`16`,y1:`9`,y2:`15`,key:`1ewh16`}],[`line`,{x1:`16`,x2:`22`,y1:`9`,y2:`15`,key:`5ykzw1`}]]),v=r(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),y=e(n(),1),b={backdrop:`_backdrop_ttlmb_1`,"backdrop-in":`_backdrop-in_ttlmb_1`,modal:`_modal_ttlmb_15`,"modal-in":`_modal-in_ttlmb_1`,close:`_close_ttlmb_29`,header:`_header_ttlmb_59`,icon:`_icon_ttlmb_66`,list:`_list_ttlmb_91`,row:`_row_ttlmb_98`,avatar:`_avatar_ttlmb_113`,name:`_name_ttlmb_125`,iconButton:`_iconButton_ttlmb_142`,button:`_button_ttlmb_161`,iconButtonDanger:`_iconButtonDanger_ttlmb_170`,editor:`_editor_ttlmb_179`,editorFields:`_editorFields_ttlmb_189`,addForm:`_addForm_ttlmb_196`,editorActions:`_editorActions_ttlmb_218`,buttonPrimary:`_buttonPrimary_ttlmb_244`,buttonQuiet:`_buttonQuiet_ttlmb_249`,buttonDanger:`_buttonDanger_ttlmb_253`,colorPicker:`_colorPicker_ttlmb_263`,deleteConfirm:`_deleteConfirm_ttlmb_313`,error:`_error_ttlmb_349`,spin:`_spin_ttlmb_355`},x=t(),S=[`#1565c0`,`#f05b47`,`#6a4c93`,`#00897b`,`#ef6c00`,`#ad1457`];function C(e){let t=(0,y.useRef)(null),n=(0,y.useRef)(e);return(0,y.useEffect)(()=>{n.current=e},[e]),(0,y.useEffect)(()=>{let e=document.activeElement,r=document.body.style.overflow;document.body.style.overflow=`hidden`;let i=()=>Array.from(t.current?.querySelectorAll(`button, a[href], input, select, textarea, [tabindex]:not([tabindex="-1"])`)??[]).filter(e=>!e.hasAttribute(`disabled`)),a=window.requestAnimationFrame(()=>i()[0]?.focus()),o=e=>{if(e.key===`Escape`){e.preventDefault(),n.current();return}if(e.key!==`Tab`)return;let r=i();if(!r.length)return;let a=r[0],o=r[r.length-1];e.shiftKey&&document.activeElement===a?(e.preventDefault(),o.focus()):(!e.shiftKey&&document.activeElement===o||document.activeElement&&!t.current?.contains(document.activeElement))&&(e.preventDefault(),a.focus())};return document.addEventListener(`keydown`,o),()=>{window.cancelAnimationFrame(a),document.removeEventListener(`keydown`,o),document.body.style.overflow=r,e?.isConnected&&e.focus()}},[]),t}function w({profiles:e,activeProfile:t,onClose:n,onProfilesChanged:r}){let a=C(n),[o,c]=(0,y.useState)(``),[u,f]=(0,y.useState)(S[2]),[p,m]=(0,y.useState)(null),[g,_]=(0,y.useState)(``),[w,E]=(0,y.useState)(S[0]),[D,O]=(0,y.useState)(null),[k,A]=(0,y.useState)(!1),[j,M]=(0,y.useState)(``),N=async e=>{let t=await e.json();if(!e.ok||!t.profiles||!t.activeProfile)throw Error(t.error||`Profiles could not be saved.`);await r(t.profiles,t.activeProfile)},P=async t=>{t.preventDefault(),A(!0),M(``);try{let t=await fetch(`/api/netflix/profiles`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({name:o,avatarColor:u})});await N(t),c(``),f(S[(e.length+1)%S.length])}catch(e){M(e instanceof Error?e.message:`Profile could not be added.`)}finally{A(!1)}},F=async e=>{if(e.preventDefault(),p){A(!0),M(``);try{let e=await fetch(`/api/netflix/profiles/${encodeURIComponent(p)}`,{method:`PATCH`,headers:{"content-type":`application/json`},body:JSON.stringify({name:g,avatarColor:w})});await N(e),m(null)}catch(e){M(e instanceof Error?e.message:`Profile could not be updated.`)}finally{A(!1)}}},I=async()=>{if(D){A(!0),M(``);try{let e=await fetch(`/api/netflix/profiles/${encodeURIComponent(D.id)}`,{method:`DELETE`});await N(e),O(null),p===D.id&&m(null)}catch(e){M(e instanceof Error?e.message:`Profile could not be deleted.`)}finally{A(!1)}}},L=e=>{m(e.id),_(e.name),E(e.avatarColor),O(null),M(``)};return(0,x.jsx)(`div`,{className:b.backdrop,onMouseDown:n,children:(0,x.jsxs)(`article`,{ref:a,className:b.modal,role:`dialog`,"aria-modal":`true`,"aria-labelledby":`manage-profiles-title`,onMouseDown:e=>e.stopPropagation(),children:[(0,x.jsx)(`button`,{className:b.close,"aria-label":`Close`,onClick:n,children:(0,x.jsx)(v,{})}),(0,x.jsxs)(`header`,{className:b.header,children:[(0,x.jsx)(`span`,{className:b.icon,children:(0,x.jsx)(l,{})}),(0,x.jsxs)(`div`,{children:[(0,x.jsx)(`h2`,{id:`manage-profiles-title`,children:`Manage Profiles`}),(0,x.jsx)(`p`,{children:`Each profile keeps its own list and exact watch position.`})]})]}),(0,x.jsx)(`div`,{className:b.list,children:e.map(n=>p===n.id?(0,x.jsxs)(`form`,{className:b.editor,onSubmit:F,children:[(0,x.jsx)(`span`,{className:b.avatar,style:{backgroundColor:w},"aria-hidden":`true`,children:g.slice(0,1).toUpperCase()||`?`}),(0,x.jsxs)(`div`,{className:b.editorFields,children:[(0,x.jsx)(`label`,{htmlFor:`profile-name-${n.id}`,children:`Profile name`}),(0,x.jsx)(`input`,{id:`profile-name-${n.id}`,required:!0,maxLength:30,value:g,onChange:e=>_(e.currentTarget.value)}),(0,x.jsx)(T,{name:`edit-color-${n.id}`,value:w,onChange:E})]}),(0,x.jsxs)(`div`,{className:b.editorActions,children:[(0,x.jsx)(`button`,{type:`button`,className:`${b.button} ${b.buttonQuiet}`,onClick:()=>m(null),children:`Cancel`}),(0,x.jsxs)(`button`,{type:`submit`,className:`${b.button} ${b.buttonPrimary}`,disabled:k,children:[(0,x.jsx)(i,{}),` Save`]})]})]},n.id):(0,x.jsxs)(`article`,{className:b.row,children:[(0,x.jsx)(`span`,{className:b.avatar,style:{backgroundColor:n.avatarColor},"aria-hidden":`true`,children:n.name.slice(0,1).toUpperCase()}),(0,x.jsxs)(`span`,{className:b.name,children:[(0,x.jsx)(`b`,{children:n.name}),(0,x.jsx)(`small`,{children:n.id===t.id?`Currently watching`:`Separate viewing data`})]}),(0,x.jsx)(`button`,{type:`button`,className:b.iconButton,"aria-label":`Edit ${n.name}`,onClick:()=>L(n),children:(0,x.jsx)(l,{})}),(0,x.jsx)(`button`,{type:`button`,className:`${b.iconButton} ${b.iconButtonDanger}`,"aria-label":`Delete ${n.name}`,disabled:e.length===1,onClick:()=>{O(n),m(null)},children:(0,x.jsx)(h,{})})]},n.id))}),D&&(0,x.jsxs)(`div`,{className:b.deleteConfirm,role:`alert`,children:[(0,x.jsxs)(`span`,{children:[(0,x.jsxs)(`b`,{children:[`Delete `,D.name,`?`]}),(0,x.jsx)(`small`,{children:`Their list and watch history will also be deleted.`})]}),(0,x.jsx)(`button`,{type:`button`,className:`${b.button} ${b.buttonQuiet}`,onClick:()=>O(null),children:`Keep profile`}),(0,x.jsx)(`button`,{type:`button`,className:`${b.button} ${b.buttonDanger}`,disabled:k,onClick:()=>void I(),children:`Delete`})]}),(0,x.jsxs)(`form`,{className:b.addForm,onSubmit:P,children:[(0,x.jsxs)(`div`,{children:[(0,x.jsx)(`label`,{htmlFor:`new-profile-name`,children:`Add a profile`}),(0,x.jsx)(`input`,{id:`new-profile-name`,required:!0,maxLength:30,placeholder:`Profile name`,value:o,onChange:e=>c(e.currentTarget.value)})]}),(0,x.jsx)(T,{name:`new-profile-color`,value:u,onChange:f}),(0,x.jsxs)(`button`,{type:`submit`,className:`${b.button} ${b.buttonPrimary}`,disabled:k,children:[k?(0,x.jsx)(s,{className:b.spin}):(0,x.jsx)(d,{}),`Add profile`]})]}),j&&(0,x.jsx)(`p`,{className:b.error,role:`alert`,children:j})]})})}function T({name:e,value:t,onChange:n}){return(0,x.jsxs)(`fieldset`,{className:b.colorPicker,children:[(0,x.jsx)(`legend`,{children:`Avatar color`}),(0,x.jsx)(`div`,{children:S.map((r,i)=>(0,x.jsxs)(`label`,{title:`Color ${i+1}`,children:[(0,x.jsx)(`input`,{type:`radio`,name:e,value:r,checked:t===r,onChange:()=>n(r)}),(0,x.jsx)(`span`,{style:{backgroundColor:r}})]},r))})]})}export{m as a,d as c,c as d,s as f,i as h,g as i,u as l,a as m,v as n,p as o,o as p,_ as r,f as s,w as t,l as u};
@@ -0,0 +1 @@
1
+ import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{r as t}from"./framework-BQUlGUOV.js";var n=e(t(),1),r=Symbol.for(`vinext.layoutSegmentContext`),i=Symbol.for(`vinext.serverInsertedHTMLContext`),a=Symbol.for(`vinext.bfcacheIdMapContext`),o=Symbol.for(`vinext.bfcacheSegmentIdContext`),s=Symbol.for(`vinext.navigation.clientHydrationContext`),c=Symbol.for(`vinext.navigation.fallback`);function l(e){return typeof n.createContext==`function`?n.createContext(e):null}function u(){let e=globalThis;return e[i]||(e[i]=l(null)),e[i]??null}u();function d(){let e=globalThis;return e[r]||(e[r]=l({children:[]})),e[r]??null}function f(){let e=globalThis;return e[a]||(e[a]=l(null)),e[a]??null}function p(){let e=globalThis;return e[o]||(e[o]=l(null)),e[o]??null}var m=Symbol.for(`vinext.navigation.globalAccessors`);function h(){let e=globalThis;return e[c]??={serverContext:null,serverInsertedHTMLCallbacks:[]}}function g(){return globalThis[m]}function _(){let e=globalThis;if(Object.prototype.hasOwnProperty.call(e,s))return e[s]??null}function v(e){globalThis[s]=e}function y(){v(null)}var b=()=>{{let e=_();return e===void 0?h().serverContext:e}return g()?.getServerContext()??h().serverContext},x=e=>{h().serverContext=e,v(e)};function S(){return b()}function C(e){x(e)}var w=`NEXT_REDIRECT;`;function T(e){if(!e.startsWith(w))return null;let t=e.indexOf(`;`,14);if(t===-1)return null;let n=e.slice(t+1),r=n.match(/;(303|307|308);?$/),i=n!==``&&e.endsWith(`;`);if(i&&!r)return null;let a=r?n.slice(0,-r[0].length):n,o=a;if(!i)try{o=decodeURIComponent(a)}catch{return null}return{status:r?Number(r[1]):307,type:e.slice(14,t)||null,url:o}}var E=`NEXT_HTTP_ERROR_FALLBACK`,D=class extends Error{digest;constructor(e,t){super(e),this.digest=t}};function O(){throw new D(`NEXT_NOT_FOUND`,`${E};404`)}function k(e){return!!e&&typeof e==`object`&&`digest`in e&&typeof e.digest==`string`&&e.digest.startsWith(`NEXT_REDIRECT;`)}function A(e){let t=T(e);return t?{url:t.url,type:t.type===`push`?`push`:`replace`}:null}export{f as a,S as c,y as i,C as l,k as n,p as o,O as r,d as s,A as t};