@flowdular/sdk 0.1.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (175) hide show
  1. package/.ai/skills/test-hardening/SKILL.md +1 -1
  2. package/README.md +69 -12
  3. package/assets/flowdular-banner.png +0 -0
  4. package/modules/agents/package.json +1 -1
  5. package/modules/auth/package.json +1 -1
  6. package/modules/auth/src/client/AuthenticationCore.tsrx +3 -1
  7. package/modules/auth/src/server/endpoints.ts +3 -1
  8. package/modules/auth/src/server/runtime.ts +4 -0
  9. package/modules/automations/package.json +1 -1
  10. package/modules/automations-workflows-integration/package.json +1 -1
  11. package/modules/profile/package.json +1 -1
  12. package/modules/sandbox/package.json +1 -1
  13. package/modules/system/package.json +1 -1
  14. package/modules/users/package.json +1 -1
  15. package/modules/workflows/package.json +1 -1
  16. package/package.json +5 -13
  17. package/packages/ai-provider/package.json +1 -1
  18. package/packages/cli-protocol/package.json +1 -1
  19. package/packages/client/package.json +1 -1
  20. package/packages/client/src/routing.ts +39 -2
  21. package/packages/client/src/shell/BrandMark.tsrx +5 -1
  22. package/packages/client/src/shell/navigation.ts +3 -1
  23. package/packages/client/src/state.ts +6 -2
  24. package/packages/contracts/package.json +1 -1
  25. package/packages/contracts/schemas/project.schema.json +16 -42
  26. package/packages/database/package.json +1 -1
  27. package/packages/database-pglite/package.json +2 -2
  28. package/packages/database-pglite/src/driver.ts +21 -3
  29. package/packages/database-testing/package.json +1 -1
  30. package/packages/dev-console/package.json +1 -1
  31. package/packages/harness/package.json +1 -1
  32. package/packages/kernel/package.json +1 -1
  33. package/packages/server/package.json +1 -1
  34. package/packages/server/src/application-routes.ts +80 -8
  35. package/packages/server/src/index.ts +4 -1
  36. package/packages/server/src/web-html.ts +9 -5
  37. package/packages/server/src/web.ts +59 -7
  38. package/packages/ui/package.json +1 -1
  39. package/packages/coding-agent/package.json +0 -44
  40. package/packages/coding-agent/src/drivers/byok.ts +0 -322
  41. package/packages/coding-agent/src/drivers/claude-code.ts +0 -290
  42. package/packages/coding-agent/src/drivers/codex.ts +0 -281
  43. package/packages/coding-agent/src/index.ts +0 -56
  44. package/packages/coding-agent/src/registry.ts +0 -119
  45. package/packages/coding-agent/src/roles/contract.ts +0 -60
  46. package/packages/coding-agent/src/roles/defaults.ts +0 -134
  47. package/packages/coding-agent/src/roles/handoff.ts +0 -41
  48. package/packages/coding-agent/src/roles/registry.ts +0 -156
  49. package/packages/coding-agent/src/roles/skills.ts +0 -72
  50. package/packages/coding-agent/src/roles/sync.ts +0 -88
  51. package/packages/coding-agent/src/types.ts +0 -102
  52. package/packages/coding-agent/src/workspace.ts +0 -275
  53. package/packages/sandbox/README.md +0 -691
  54. package/packages/sandbox/bin/flowdular-sandbox.mjs +0 -393
  55. package/packages/sandbox/dist/client/assets/App-ClMOrpyg.js +0 -11
  56. package/packages/sandbox/dist/client/assets/PreviewHost-BHiHrfbQ.js +0 -1
  57. package/packages/sandbox/dist/client/assets/auto-buGEq6de.js +0 -3
  58. package/packages/sandbox/dist/client/assets/ibm-plex-mono-cyrillic-400-normal-BSMlKf0J.woff2 +0 -0
  59. package/packages/sandbox/dist/client/assets/ibm-plex-mono-cyrillic-400-normal-CEL4l2ZJ.woff +0 -0
  60. package/packages/sandbox/dist/client/assets/ibm-plex-mono-cyrillic-500-normal-Ael50iVv.woff +0 -0
  61. package/packages/sandbox/dist/client/assets/ibm-plex-mono-cyrillic-500-normal-Bq9vWWag.woff2 +0 -0
  62. package/packages/sandbox/dist/client/assets/ibm-plex-mono-cyrillic-ext-400-normal-DMdlQ8Kv.woff +0 -0
  63. package/packages/sandbox/dist/client/assets/ibm-plex-mono-cyrillic-ext-400-normal-xuaO2J-f.woff2 +0 -0
  64. package/packages/sandbox/dist/client/assets/ibm-plex-mono-cyrillic-ext-500-normal-BIfNGwUT.woff +0 -0
  65. package/packages/sandbox/dist/client/assets/ibm-plex-mono-cyrillic-ext-500-normal-BqneJy0T.woff2 +0 -0
  66. package/packages/sandbox/dist/client/assets/ibm-plex-mono-latin-400-normal-CvHOgSBP.woff +0 -0
  67. package/packages/sandbox/dist/client/assets/ibm-plex-mono-latin-400-normal-DMJ8VG8y.woff2 +0 -0
  68. package/packages/sandbox/dist/client/assets/ibm-plex-mono-latin-500-normal-CB9ihrfo.woff +0 -0
  69. package/packages/sandbox/dist/client/assets/ibm-plex-mono-latin-500-normal-DSY6xOcd.woff2 +0 -0
  70. package/packages/sandbox/dist/client/assets/ibm-plex-mono-latin-ext-400-normal-BmRBH3aV.woff2 +0 -0
  71. package/packages/sandbox/dist/client/assets/ibm-plex-mono-latin-ext-400-normal-D3D2R8hC.woff +0 -0
  72. package/packages/sandbox/dist/client/assets/ibm-plex-mono-latin-ext-500-normal-CAhNIIs5.woff2 +0 -0
  73. package/packages/sandbox/dist/client/assets/ibm-plex-mono-latin-ext-500-normal-CZ70TYgx.woff +0 -0
  74. package/packages/sandbox/dist/client/assets/ibm-plex-mono-vietnamese-400-normal-BulugwFq.woff2 +0 -0
  75. package/packages/sandbox/dist/client/assets/ibm-plex-mono-vietnamese-400-normal-DDuiU_S-.woff +0 -0
  76. package/packages/sandbox/dist/client/assets/ibm-plex-mono-vietnamese-500-normal-C8zxqsMH.woff +0 -0
  77. package/packages/sandbox/dist/client/assets/ibm-plex-mono-vietnamese-500-normal-DZ4AoWbu.woff2 +0 -0
  78. package/packages/sandbox/dist/client/assets/ibm-plex-sans-cyrillic-ext-wght-normal-d45eAU9y.woff2 +0 -0
  79. package/packages/sandbox/dist/client/assets/ibm-plex-sans-cyrillic-wght-normal-BAAhND-U.woff2 +0 -0
  80. package/packages/sandbox/dist/client/assets/ibm-plex-sans-greek-wght-normal-CmyJS8uq.woff2 +0 -0
  81. package/packages/sandbox/dist/client/assets/ibm-plex-sans-latin-ext-wght-normal-CIII54If.woff2 +0 -0
  82. package/packages/sandbox/dist/client/assets/ibm-plex-sans-latin-wght-normal-IvpUvPa2.woff2 +0 -0
  83. package/packages/sandbox/dist/client/assets/ibm-plex-sans-vietnamese-wght-normal-Dg1JeJN0.woff2 +0 -0
  84. package/packages/sandbox/dist/client/assets/index-CvwhlQ87.js +0 -4
  85. package/packages/sandbox/dist/client/assets/styles-BPWaGf55.js +0 -3
  86. package/packages/sandbox/dist/client/assets/styles-Dx1_KOag.css +0 -1
  87. package/packages/sandbox/dist/client/favicon.svg +0 -1
  88. package/packages/sandbox/dist/server/assets/auto-CVGNYyb3.js +0 -12785
  89. package/packages/sandbox/dist/server/assets/chunk-DDJLRBDX-3OUNo51g.js +0 -4125
  90. package/packages/sandbox/dist/server/assets/nodefs-DVSI7kG0.js +0 -24
  91. package/packages/sandbox/dist/server/assets/opfs-ahp-D56iokt1.js +0 -388
  92. package/packages/sandbox/dist/server/assets/token-Bvaq7Anz.js +0 -55
  93. package/packages/sandbox/dist/server/assets/token-util-BqSvdIPQ.js +0 -3
  94. package/packages/sandbox/dist/server/assets/token-util-CktFFT4z.js +0 -494
  95. package/packages/sandbox/dist/server/entry.js +0 -91671
  96. package/packages/sandbox/dist/server/favicon.svg +0 -1
  97. package/packages/sandbox/dist/server/index.html +0 -161
  98. package/packages/sandbox/index.html +0 -159
  99. package/packages/sandbox/octane.config.ts +0 -36
  100. package/packages/sandbox/package.json +0 -83
  101. package/packages/sandbox/public/favicon.svg +0 -1
  102. package/packages/sandbox/public/og.png +0 -0
  103. package/packages/sandbox/src/App.tsrx +0 -924
  104. package/packages/sandbox/src/client/ApprovalHandoff.tsrx +0 -39
  105. package/packages/sandbox/src/client/ChatPane.tsrx +0 -694
  106. package/packages/sandbox/src/client/ConnectView.tsrx +0 -86
  107. package/packages/sandbox/src/client/DiffPane.tsrx +0 -150
  108. package/packages/sandbox/src/client/EjectModal.tsrx +0 -571
  109. package/packages/sandbox/src/client/GateResults.tsrx +0 -60
  110. package/packages/sandbox/src/client/GitHubSettingsModal.tsrx +0 -219
  111. package/packages/sandbox/src/client/NewSessionForm.tsrx +0 -214
  112. package/packages/sandbox/src/client/SessionBar.tsrx +0 -151
  113. package/packages/sandbox/src/client/SessionPicker.tsrx +0 -472
  114. package/packages/sandbox/src/client/SpecEditor.tsrx +0 -109
  115. package/packages/sandbox/src/client/SpecReviewCard.tsrx +0 -321
  116. package/packages/sandbox/src/client/WorkCard.tsrx +0 -128
  117. package/packages/sandbox/src/client/WorkbenchModal.tsrx +0 -161
  118. package/packages/sandbox/src/client/WorkspaceMenu.tsrx +0 -100
  119. package/packages/sandbox/src/client/api.ts +0 -797
  120. package/packages/sandbox/src/client/attachments.ts +0 -73
  121. package/packages/sandbox/src/client/dashboard.ts +0 -46
  122. package/packages/sandbox/src/client/github-settings.ts +0 -48
  123. package/packages/sandbox/src/client/highlight.ts +0 -105
  124. package/packages/sandbox/src/client/i18n.ts +0 -32
  125. package/packages/sandbox/src/client/locales/en.json +0 -466
  126. package/packages/sandbox/src/client/locales/pl.json +0 -466
  127. package/packages/sandbox/src/client/session-labels.ts +0 -77
  128. package/packages/sandbox/src/client/state.ts +0 -108
  129. package/packages/sandbox/src/index.ts +0 -10
  130. package/packages/sandbox/src/preview/PreviewHost.tsrx +0 -373
  131. package/packages/sandbox/src/preview/load-module.ts +0 -16
  132. package/packages/sandbox/src/server/attachments.ts +0 -308
  133. package/packages/sandbox/src/server/auto-review.ts +0 -181
  134. package/packages/sandbox/src/server/checkpoints.ts +0 -90
  135. package/packages/sandbox/src/server/config.ts +0 -460
  136. package/packages/sandbox/src/server/dashboard.ts +0 -245
  137. package/packages/sandbox/src/server/delivery/configuration.ts +0 -193
  138. package/packages/sandbox/src/server/delivery/git-pr.ts +0 -1473
  139. package/packages/sandbox/src/server/delivery/index.ts +0 -83
  140. package/packages/sandbox/src/server/delivery/local.ts +0 -151
  141. package/packages/sandbox/src/server/delivery/official-modules.ts +0 -516
  142. package/packages/sandbox/src/server/delivery/plan.ts +0 -218
  143. package/packages/sandbox/src/server/delivery/policies.ts +0 -239
  144. package/packages/sandbox/src/server/delivery/record.ts +0 -41
  145. package/packages/sandbox/src/server/delivery/steps.ts +0 -464
  146. package/packages/sandbox/src/server/delivery/types.ts +0 -158
  147. package/packages/sandbox/src/server/dependencies.ts +0 -88
  148. package/packages/sandbox/src/server/diff.ts +0 -230
  149. package/packages/sandbox/src/server/gates.ts +0 -388
  150. package/packages/sandbox/src/server/index.ts +0 -139
  151. package/packages/sandbox/src/server/path-guard.ts +0 -282
  152. package/packages/sandbox/src/server/planning.ts +0 -749
  153. package/packages/sandbox/src/server/platform-client.ts +0 -189
  154. package/packages/sandbox/src/server/preview-database-host.ts +0 -340
  155. package/packages/sandbox/src/server/preview-database-protocol.ts +0 -163
  156. package/packages/sandbox/src/server/preview-database-proxy.ts +0 -356
  157. package/packages/sandbox/src/server/preview-database.ts +0 -109
  158. package/packages/sandbox/src/server/preview-ipc.ts +0 -15
  159. package/packages/sandbox/src/server/preview-modules.ts +0 -83
  160. package/packages/sandbox/src/server/preview-revision.ts +0 -44
  161. package/packages/sandbox/src/server/preview-runtime.ts +0 -467
  162. package/packages/sandbox/src/server/preview-worker-manager.ts +0 -436
  163. package/packages/sandbox/src/server/preview-worker.ts +0 -168
  164. package/packages/sandbox/src/server/reference.ts +0 -251
  165. package/packages/sandbox/src/server/routes.ts +0 -2258
  166. package/packages/sandbox/src/server/runtime.ts +0 -188
  167. package/packages/sandbox/src/server/session-owner.ts +0 -23
  168. package/packages/sandbox/src/server/sessions.ts +0 -849
  169. package/packages/sandbox/src/server/spec.ts +0 -471
  170. package/packages/sandbox/src/server/turn-lifecycle.ts +0 -56
  171. package/packages/sandbox/src/server/turns.ts +0 -993
  172. package/packages/sandbox/src/server/workspace-install.ts +0 -266
  173. package/packages/sandbox/src/server/workspace-root.ts +0 -73
  174. package/packages/sandbox/src/styles.css +0 -1573
  175. package/packages/sandbox/vite.config.ts +0 -133
@@ -1,4 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./App-ClMOrpyg.js","./styles-BPWaGf55.js","./styles-Dx1_KOag.css","./PreviewHost-BHiHrfbQ.js"])))=>i.map(i=>d[i]);
2
- (function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var e=`data-octane-hydrate-interaction-events`,t=[`pointerenter`,`focusin`,`pointerdown`,`touchstart`,`touchend`,`beforeinput`,`input`,`compositionstart`,`compositionupdate`,`compositionend`,`click`],n=`data-oct-b`,r=`data-octane-stream-token`;function i(e,t){let n=t?`[`:`]`;if(e===n||t&&(e===`[f0`||e===`[f1`))return 1;if(e.length<2||e.charCodeAt(0)!==n.charCodeAt(0))return 0;let r=e.charCodeAt(1);if(r<49||r>57)return 0;let i=r-48;for(let t=2;t<e.length;t++){let n=e.charCodeAt(t)-48;if(n<0||n>9||(i=i*10+n,!Number.isSafeInteger(i)))return 0}return i>=2?i:0}function a(e){return e!==null&&e.nodeType===8&&i(e.data,!0)!==0}function o(e){if(!a(e))return null;let t=0,n=e.nextSibling;for(;n!==null;){if(n.nodeType===8){let e=n.data;if(i(e,!0)!==0)t++;else if(i(e,!1)!==0){if(t===0)return n;t--}}n=n.nextSibling}return null}function s(e){return e!==null&&/^os[a-zA-Z0-9_-]+-[0-9a-z]+$/.test(e)}function c(e){if(e===null)return null;let t=e.lastIndexOf(`-`);if(t<=2||t===e.length-1)return null;let n=e.slice(0,t),r=e.slice(t+1);return!s(n)||!/^(?:0|[1-9a-z][0-9a-z]*)$/.test(r)?null:n}function l(e,t){if(e.localName!==`template`)return!1;let r=c(e.getAttribute(n));if(r===null||t!==void 0&&r!==t)return!1;let i=e.previousSibling;return a(i)&&i.nextSibling===e&&o(i)!==null}var u=`[data-octane-hydrate-id]`,d=`data-octane-hydrate-when`;function f(e){return e!==null&&typeof e.nodeType==`number`}function p(e){return f(e)&&e.nodeType===1}var m=[`auxclick`,`beforeinput`,`click`,`compositionend`,`compositionstart`,`compositionupdate`,`contextmenu`,`dblclick`,`focusin`,`input`,`keydown`,`keyup`,`mousedown`,`mouseenter`,`mouseover`,`mouseup`,`pointerdown`,`pointerenter`,`pointerover`,`pointerup`,`touchend`,`touchstart`];function h(e){switch(e.type){case`beforeinput`:case`compositionend`:case`compositionstart`:case`compositionupdate`:case`input`:case`mousedown`:case`pointerdown`:case`touchend`:case`touchstart`:return!1;default:return e.cancelable}}var g=new WeakMap,_=new WeakMap,v=new WeakSet,y=new WeakSet,b=new WeakSet;function x(e,t){if(!f(t))return null;let n=e.getAttribute(r),i=[],a=p(t)?t:t.parentElement;for(;a!==e;){let e=a?.parentElement??null;if(e===null)return null;let t=0,r=e.firstElementChild;for(;r!==null&&r!==a;)l(r,n)||t++,r=r.nextElementSibling;if(r===null)return null;i.push(t),a=e}return i.reverse(),i}function S(n,r){let i=g.get(n);if(i!==void 0)return i(r);let a=n.getAttribute(d);if(a===null)return`hydrated`;if(a===`never`)return`never`;if(a===`dynamic`)return r===`click`?`handles`:`dormant`;if(a!==`interaction`)return`dormant`;let o=n.getAttribute(e);return(o===null?t:o.split(/\s+/).filter(Boolean)).includes(r)?`handles`:`dormant`}function C(e){let t=e.target;if(!p(t))return;let n=[],r=t.closest(u),i=!1;for(;r!==null;)n.push(r),i||=S(r,e.type)===`handles`,r=r.parentElement?.closest(u)??null;if(!i||n.length===0)return;n.reverse();let a=null,o;for(let t=0;t<n.length;t++){let r=n[t],i=S(r,e.type);if(i!==`hydrated`){if(i===`never`)return;a=r,o=g.get(r);break}}if(a===null)return;for(let e=0;e<n.length;e++){let t=n[e];t!==a&&a.contains(t)&&t.getAttribute(d)===`dynamic`&&!g.has(t)&&v.add(t)}let s=x(a,e.target);if(s===null)return;let c={event:e,path:s};if(y.add(e),e.bubbles&&(h(e)&&e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()),o!==void 0)o(e.type,c);else{let e=_.get(a)??[];e.push(c),_.set(a,e)}}function w(e){let t=e??(typeof document>`u`?void 0:document);if(!(t===void 0||b.has(t))){b.add(t);for(let e=0;e<m.length;e++)t.addEventListener(m[e],C,!0)}}var ee=new Set([`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`link`,`meta`,`param`,`source`,`track`,`wbr`]),T=new Set([`allowfullscreen`,`async`,`autoplay`,`controls`,`credentialless`,`default`,`defer`,`disabled`,`disablepictureinpicture`,`disableremoteplayback`,`formnovalidate`,`hidden`,`inert`,`itemscope`,`loop`,`nomodule`,`novalidate`,`open`,`playsinline`,`readonly`,`required`,`reversed`,`scoped`,`seamless`]),E=new Set([`size`,`cols`,`rows`,`span`]),D=new Set(`altGlyph.altGlyphDef.altGlyphItem.animate.animateColor.animateMotion.animateTransform.circle.clipPath.defs.desc.ellipse.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.filter.font-face.font-face-format.font-face-name.font-face-src.font-face-uri.foreignObject.g.glyph.glyphRef.hkern.image.line.linearGradient.marker.mask.metadata.missing-glyph.mpath.path.pattern.polygon.polyline.radialGradient.rect.set.stop.switch.symbol.text.textPath.tref.tspan.use.view.vkern`.split(`.`)),te=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`],[`xlinkActuate`,`xlink:actuate`],[`xlinkArcrole`,`xlink:arcrole`],[`xlinkHref`,`xlink:href`],[`xlinkRole`,`xlink:role`],[`xlinkShow`,`xlink:show`],[`xlinkTitle`,`xlink:title`],[`xlinkType`,`xlink:type`],[`xmlBase`,`xml:base`],[`xmlLang`,`xml:lang`],[`xmlSpace`,`xml:space`],[`tabIndex`,`tabindex`]]);function ne(e){switch(e.length){case 10:return e.toLowerCase()===`spellcheck`;case 9:return e.toLowerCase()===`draggable`;case 15:return e.toLowerCase()===`contenteditable`}return!1}var re=new Set;for(let e of`animationIterationCount.aspectRatio.borderImageOutset.borderImageSlice.borderImageWidth.boxFlex.boxFlexGroup.boxOrdinalGroup.columnCount.columns.flex.flexGrow.flexPositive.flexShrink.flexNegative.flexOrder.gridArea.gridRow.gridRowEnd.gridRowSpan.gridRowStart.gridColumn.gridColumnEnd.gridColumnSpan.gridColumnStart.fontWeight.lineClamp.lineHeight.opacity.order.orphans.tabSize.widows.zIndex.zoom.fillOpacity.floodOpacity.stopOpacity.strokeDasharray.strokeDashoffset.strokeMiterlimit.strokeOpacity.strokeWidth`.split(`.`)){let t=e.toLowerCase();re.add(t),re.add(`webkit`+t),re.add(`ms`+t),re.add(`moz`+t),re.add(`o`+t)}function ie(e){return re.has(e.replaceAll(`-`,``).toLowerCase())}function ae(e,t){return typeof t==`number`&&t!==0&&e.charCodeAt(0)!==45&&!ie(e)?t+`px`:typeof t==`string`?t.trim():``+t}function oe(e){if(e.charCodeAt(0)===45)return e;let t=!1;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(r>=65&&r<=90){t=!0;break}}if(!t)return e;let n=``;for(let t=0;t<e.length;t++){let r=e.charCodeAt(t);n+=r>=65&&r<=90?`-`+String.fromCharCode(r+32):e[t]}return n.charCodeAt(0)===109&&n.charCodeAt(1)===115&&n.charCodeAt(2)===45&&(n=`-`+n),n}var se=`data-octane-suspense`,ce=`\0octane:ssr-seed:`,le=`__octane_new_rejection__`,ue=Symbol.for(`octane.external-hydration-promise`),de=Symbol.for(`octane.hydration-range-boundary`),fe=`data-octane-hydrate-seed`,pe=`oct-seed:`,me=ee,he=T,ge=E,_e=/^[^\s"'>\/=\u0000-\u001F]+$/,ve=D,ye=te,be=ne,xe=ae,Se=Object.prototype.hasOwnProperty;function Ce(e){if(e===``)return``;let t=2166136261,n=2654435769;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);t=Math.imul(t^i,16777619),n=Math.imul(n^i,2246822507),n=n<<13|n>>>19}return t^=t>>>16,t=Math.imul(t,2246822507),t^=t>>>13,t=Math.imul(t,3266489909),t^=t>>>16,n^=e.length,n^=n>>>16,n=Math.imul(n,2246822507),n^=n>>>13,n=Math.imul(n,3266489909),n^=n>>>16,`-`+(t>>>0).toString(16).padStart(8,`0`)+(n>>>0).toString(16).padStart(8,`0`)}function we(e,t){let n=Ce(t);return n===``?e:e+n}function Te(e,t){let n=e?.defaultProps;if(n!=null)for(let e in n)t[e]===void 0&&(t[e]=n[e])}function Ee(e){if(typeof e!=`object`||!e)return null;let t=typeof Symbol==`function`&&e[Symbol.iterator]||e[`@@iterator`];return typeof t==`function`?t:null}var De=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,Oe=`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`,ke=new Set([`annotation-xml`,`color-profile`,`font-face`,`font-face-src`,`font-face-uri`,`font-face-format`,`font-face-name`,`missing-glyph`]);function Ae(e){let t=e.charCodeAt(0);return t>32&&t<127&&t!==74&&t!==106?e:De.test(e)?Oe:e}function je(e,t){return e=e===void 0?void 0:e.toLowerCase(),e!==void 0&&e.includes(`-`)&&!ke.has(e)?!1:(t=t.toLowerCase(),t===`src`||t===`href`||t===`action`||t===`formaction`||t===`xlink:href`||t===`xlinkhref`||t===`data`&&e===`object`)}function Me(e,t,n){return je(e,t)?Ae(n):n}var Ne=Symbol.for(`octane.flags.component`);function Pe(e,t,n){return Object.defineProperty(e,Ne,{value:t}),Object.defineProperty(e,"name",{value:n,configurable:!0}),e}function Fe(e,t){return typeof e==`function`&&Se.call(e,Ne)&&(e[Ne]&t)===t}var Ie=`https://octanejs.dev/errors/`,Le=/[\uD800-\uDFFF]/gu;function Re(e){return encodeURIComponent(String(e).replace(Le,`�`))}function ze(e,t){let n=Ie+e;for(let e=0;e<t.length;e++)n+=`${e===0?`?`:`&`}args[]=${Re(t[e])}`;return`Minified Octane error #${e}; visit ${n} for the full message or use a development build for full errors and additional helpful warnings.`}function O(e,...t){return ze(e,t)}var Be=new WeakSet;function Ve(e){return Be.has(e)}var He=null,Ue=class extends Error{scopeKey;nodeKey;read;constructor(e,t,n=`value`){super(`Native hydration has no `+n+` seed for `+e+`:`+t+`.`),this.name=`NativeAdoptionMiss`,this.scopeKey=e,this.nodeKey=t,this.read=n}};function We(e){let t=He;return He=e,t}var Ge=null;function Ke(){let e=Ge;return e?.startBatch(),e}function qe(e){e?.endBatch()}function Je(e){let t=Ke();try{return e()}finally{qe(t)}}var Ye=null;function Xe(e){let t=Ye?.get(e);if(t!==void 0)return t.depth++,t;let n=Ke();if(n===null)return null;let r={hooks:n,depth:1,closed:!1};return(Ye??=new WeakMap).set(e,r),r}function Ze(e,t){if(t.closed)return;t.closed=!0,Ye?.get(e)===t&&Ye.delete(e);let n=t.hooks;t.hooks=null,qe(n)}function Qe(e,t,n,r){if(t===null||t.closed||--t.depth!==0)return;if(!n){Ze(e,t);return}let i=()=>{if(!(t.depth!==0||t.closed))try{Ze(e,t)}catch(e){r(e)}},a=e.target;e.type===`change`&&a?.localName===`input`&&(a.type===`checkbox`||a.type===`radio`)?setTimeout(i,0):queueMicrotask(i)}var $e=`data-octane-native-signals`,et=`oct-native-fresh:`;function tt(e){let t=JSON.parse(e);if(typeof t!=`object`||!t||t.version!==1||!Array.isArray(t.scopes))throw Error(`Invalid native signal hydration manifest.`);let n=t,r=new Set;for(let e of n.scopes){if(typeof e!=`object`||!e||e.version!==1||typeof e.scopeKey!=`string`||e.scopeKey.length===0||!Array.isArray(e.entries)||r.has(e.scopeKey))throw Error(`Invalid or duplicate native signal hydration scope.`);r.add(e.scopeKey)}return n}function nt(e){let t=new Map(e.scopes.map(e=>[e.scopeKey,e])),n=new Map,r=new Map,i=!1;return{resolve(e){if(i)return;let a=t.get(e.scopeKey);if(a===void 0)return;let o=r.get(e.scopeKey);if(o!==void 0&&o!==e)throw Error(`Multiple data scopes claim native hydration key `+e.scopeKey+`.`);let s=n.get(e);return s===void 0&&(s=e.beginAdoption(a),r.set(e.scopeKey,e),n.set(e,s)),s},release(){if(i)return;i=!0;let e,a=!1;try{for(let t of n.values())try{t.release()}catch(t){a||(e=t),a=!0}}finally{n.clear(),r.clear(),t.clear()}if(a)throw e}}}function rt(e){if(typeof e==`string`)return e;if(typeof e!=`object`)return typeof e==`number`&&e?``+e:``;if(e===null)return``;let t=``;if(Array.isArray(e))for(let n=0;n<e.length;n++){let r=e[n];if(r){let e=rt(r);e&&(t=t?t+` `+e:e)}}else for(let n in e)e[n]&&(t=t?t+` `+n:n);return t}var it=new Map;function at(e){let t=it.get(e);if(t!==void 0)return t;let n=oe(e);return it.set(e,n),n}function ot(e){return e.hooks??=new Map}function st(e,t){(e.cleanups??=[]).push(t)}var k=null,ct=null,lt=null;function ut(e){let t=j;return t===null?-1:k.beginScope(e,t)}function dt(e,t,n=!1){let r=k;if(r===null)return;let i=r.acceptCapture(e);if(t===void 0)return;let a=n&&r.replayDeferredRefs(e,t);(i||a||r.hasPublication(t))&&r.stampPublication(t,[e.effects[B],e.effects[jr],e.effects[Mr],e.events,e.refs])}function ft(e,t,n){let r=nt(t);st(e,()=>{r.release(),(!L||e.block.idState.renderOwner?.disposed)&&n?.()});let i=e=>{e?r.release():((lt??=[]).push(r),n?.())};return H===null?i(!1):(H.renderCleanups??=[]).push(i),r}function pt(){let e=lt;if(e!==null){lt=null;for(let t of e)t.release()}}function mt(e,t,n,r){if(e===null||t?.nodeType!==8)return null;let i=t.data;if(!i.startsWith(`oct-native-fresh:`))return null;let a=i.slice(et.length);if(!/^(?:0|[1-9]\d*)$/.test(a))return null;let o=Number(a);return Number.isSafeInteger(o)?(No(r,o),Kh(t,n),e.node=n,{prefix:r.prefix+`n`+(Dt++).toString(36)+`-`,next:0,renderOwner:r.renderOwner}):null}var ht=0;function gt(e){let t=ht;return ht+=e,t}function _t(e,t){let n=e.locs;if(n===void 0)return``;let r=n[t];return r===void 0?``:`${e.locFile??`<unknown>`}:${r[0]}:${r[1]}`}function vt(e){if(typeof e==`function`){try{let t=e.__oct_loc;if(typeof t==`string`)return t}catch{}try{let t=Function.prototype.toString.call(e),n=/["']__octane_loc:([^"'\\\s]+)["']/.exec(t);if(n!==null)return decodeURIComponent(n[1])}catch{}}}function yt(e){return e!==null&&e.__oct_suppress===!0}function bt(e){return yt(e)?1:e.__oct_loc===void 0?0:2}function xt(e){return e===null?`nothing`:e.nodeType===1?`<${e.localName}>`:e.nodeType===3?`text ${JSON.stringify(e.nodeValue)}`:e.nodeType===8?Mc(e)?`a control-flow block`:Nc(e)?`the end of the parent block (fewer nodes than expected)`:`a comment`:`a node`}function St(e,t,n,r=``){if(e.nodeType!==t.nodeType)return!1;if(e.nodeType!==1)return!0;let i=e,a=t;return i.localName===a.localName}function Ct(e,t){let n=e;for(;n!==null;){let e=n===t?null:n.nextSibling;n.remove(),n=e}}var wt=0,Tt=1,Et=2,Dt=0,A=null,j=null,Ot=0,kt=0,At=1,jt=[],Mt=1,Nt=0,Pt=new WeakMap,Ft=new WeakMap,It=0,Lt=0,Rt=0,zt=0;function Bt(e){zt++;let t=k?.pauseLifecycle()??-1;try{e()}finally{t>=0&&k.resumeLifecycle(t),zt--}}function Vt(e){It++;try{Bt(e)}finally{It--}}var M=[],Ht=0,Ut=!1,Wt=!1,Gt=!1,Kt=0,qt=0,N=null;function Jt(){N??={render:Df,commit:Mf,dispose:Nf,splice:kf,begin:bn,end:xn,holdRoot:An,retryRoot:jn,commitRoot:Mn,discardRoot:Nn,keepsRoot:kn}}var Yt=null,Xt=null,Zt=0;function Qt(){return{updates:new Map,pendingActions:0,closed:!1,flushed:!1}}function $t(){return Yt===null?Wt||Zt>0?null:Xt:Yt}function en(e){if(Object.is(e.baseValue,e.slot.value))return e.value;let t=e.slot.value;for(let n of e.operations)t=n(t);return e.baseValue=e.slot.value,e.value=t,e.slot.pendingActionBatch!==void 0&&(e.slot.pendingActionValue=t),t}function tn(e){let t=$t();if(t===null)return e.value;let n=t.updates.get(e);return n===void 0?e.value:en(n)}function nn(e,t,n,r,i=!1){let a=$t();if(a===null)return!1;let o=typeof n==`function`?n:()=>n,s=a.updates.get(e);return s===void 0?a.updates.set(e,{slot:e,block:t,operations:[o],baseValue:e.value,value:r,forceRender:i}):(s.operations.push(o),s.value=r,s.forceRender||=i),e.pendingActionBatch=a,e.pendingActionValue=r,!0}function rn(e){if(!e.flushed){e.flushed=!0;for(let t of e.updates.values()){let{slot:n,block:r,forceRender:i}=t,a=en(t);if(n.pendingActionBatch===e&&(n.pendingActionBatch=void 0,n.pendingActionValue=void 0),r.disposed)continue;let o=!Object.is(n.value,a);!o&&!i||(o&&(n.value=a),U(r))}if(e.updates.size>0){let t=[];for(let n of e.updates.values())n.block.disposed||t.push(n);t.length>0&&mn.push(t)}e.updates.clear(),Xt===e&&(Xt=null)}}function an(e){e.closed&&e.pendingActions===0&&rn(e)}var on=!1,sn=0,cn=new Set,ln=0,un=new Set,P=new Set,dn=!1,fn=!1,pn=null,mn=[],hn=null,gn=null,_n=null;function vn(e){let t=[];for(let n=mn.length-1;n>=0;n--){let r=mn[n],i=!0;for(let t=0;t<r.length;t++)if(r[t].block!==e){i=!1;break}if(i){for(let e=0;e<r.length;e++)t.push(r[e]);mn.splice(n,1)}}return t}function yn(e,t){if(t!==null)for(let e=0;e<t.length;e++)t[e].taken=!1;let n=e=>{let r=e.block.__warmCache;if(r!==void 0)for(let[e,n]of r)for(let r=0;r<n.length;r++){let i=n[r];if(i.available){let n={slot:e,deps:i.deps,value:i.value,taken:!1};i.nativeWitness!==void 0&&(n.nativeWitness=i.nativeWitness),(t??=[]).push(n)}}Fh(e,n)};return n(e),t}function bn(e){let t=e.idState.renderOwner;if(t?.transition!==void 0&&!t.transition.promoted&&!On(t.transition)&&Nn(t),e.pendingMode!==`transition`||pn!==null)return null;F??=[],Bn??=new Map,Hn.push(Vn),Vn=F.length,Un++;let n=H,r=n?.effects??V,i={origin:e,capture:n,journalCheckpoint:F.length,effects:[r[0].length,r[1].length,r[2].length],effectEvents:(n?.events??Nr).length,effectEventActions:(n?.eventActions??Pr).length,stores:(n?.stores??Lr).length,refAttach:(n?.refs??Rr).length,refDetach:n===null?W.length:n.detaches?.length??0,effectDeps:I===null?Xm(e):null,heldSlots:null,memoSwaps:null};return pn=i,i}function xn(e){if(e===null)return;pn=null;let t=e.heldSlots;(t===null||t.size===0)&&(gn=null,_n=null);let n=null;if(t!==null&&t.size>0&&(n=vn(e.origin)),t!==null&&t.size>0&&n!==null&&n.length>0){Or(e.journalCheckpoint,e.origin);let r=e.capture,i=r?.effects??V;for(let t=0;t<3;t++)i[t].length=e.effects[t];(r?.events??Nr).length=e.effectEvents,(r?.eventActions??Pr).length=e.effectEventActions;let a=r?.stores??Lr;for(let t=e.stores;t<a.length;t++)a[t].queued=!1;a.length=e.stores,(r?.refs??Rr).length=e.refAttach,r===null?W.length=e.refDetach:r.detaches!==void 0&&(r.detaches.length=e.refDetach),e.effectDeps!==null&&Zm(e.origin,e.effectDeps);let o=gn!==null||_n!==null,s=e.memoSwaps;if(o)gn!==null&&(s=s===null?gn:gn.concat(s),gn=null);else if(s!==null)for(let e=s.length-1;e>=0;e--)wn(s[e],!1);for(let e=0;e<n.length;e++)n[e].slot.value=n[e].baseValue;let c=yn(e.origin,_n);_n=null,hn={origin:e.origin,entries:n,memoSwaps:s,warmHarvest:c,holders:new Set(t)},o||U(e.origin)}Vn=Hn.pop(),--Un===0&&(F=null,Bn=null,Er())}function Sn(e,t,n){let r=pn;if(r===null)return;let i=ot(e);(r.memoSwaps??=[]).push([0,i,t,i.get(t),n])}function Cn(e,t,n){let r=pn;r!==null&&(r.memoSwaps??=[]).push([1,e,t,e.slice(t,t+n.length),n])}function wn(e,t){if(e[0]===0){let n=t?e[4]:e[3];!t&&n===void 0?e[1].delete(e[2]):e[1].set(e[2],n);return}let n=t?e[4]:e[3];for(let t=0;t<n.length;t++)e[1][e[2]+t]=n[t]}function Tn(e){let t=hn;if(t===null||!t.holders.has(e))return!1;for(let e=0;e<t.entries.length;e++){let n=t.entries[e];if(!Object.is(n.slot.value,n.baseValue))return!1}return!0}function En(){let e=hn;if(e===null)return!1;hn=null;let t=[];for(let n=0;n<e.entries.length;n++){let r=e.entries[n];Object.is(r.slot.value,r.baseValue)&&(r.slot.value=r.value,r.block.disposed||t.push(r))}if(t.length===0)return gn=null,_n=null,!1;let n=e.memoSwaps;if(n!==null){for(let e=0;e<n.length;e++)wn(n[e],!0);gn=gn===null?n:gn.concat(n)}_n=e.warmHarvest,Kt++;try{for(let e=0;e<t.length;e++)U(t[e].block)}finally{Kt--}return mn.push(t),!0}function Dn(e){let t=hn;t===null||!t.holders.delete(e)||t.holders.size===0&&(hn=null,gn=null,_n=null)}function On(e){for(let t=0;t<e.entries.length;t++){let n=e.entries[t];if(!Object.is(n.slot.value,n.baseValue))return!1}return!0}function kn(e,t=!1){let n=e.transition;return n!==void 0&&!n.origin.disposed&&(n.promoted?t:On(n))}function An(e,t,n){let r=e.transition;if(n===null||!n.origin.mounted||n.origin.disposed||t.created?.has(n.origin)||n.heldSlots!==null&&n.heldSlots.size!==0)return r!==void 0&&!On(r)&&Nn(e),!1;let i=r?.promoted===!0,a=i?r.origin:n.origin;if(a.idState.renderOwner!==e||!As(n.origin,a))return!1;let o=vn(a);if(o.length===0)return r!==void 0&&!On(r)&&Nn(e),!1;if(ir(t),e.disposed||a.disposed)return Nn(e),!0;let s=n.memoSwaps;if(i)r.memoSwaps!==null&&(s=s===null?r.memoSwaps:r.memoSwaps.concat(s));else if(s!==null)for(let e=s.length-1;e>=0;e--)wn(s[e],!1);for(let e=0;e<o.length;e++)o[e].slot.value=o[e].baseValue;return e.transition={origin:a,entries:o,memoSwaps:s,warmHarvest:yn(a,i?r.warmHarvest:null),promoted:!1,cue:!i},(r===void 0||r.promoted)&&Ar(1),!0}function jn(e){let t=e.transition;if(t===void 0)return!1;if(t.origin.disposed||!On(t))return Nn(e),!1;if(t.promoted=!0,t.cue=!1,t.memoSwaps!==null)for(let e=0;e<t.memoSwaps.length;e++)wn(t.memoSwaps[e],!0);Kt++;try{Ar(-1);for(let e=0;e<t.entries.length;e++){let n=t.entries[e];n.slot.value=n.value,n.block.disposed||U(n.block)}mn.push(t.entries),e.retry()}finally{Kt--}return!0}function Mn(e,t){let n=e.transition;if(n!==void 0){if(e.disposed||n.origin.disposed){Nn(e);return}if(t.aborted){n.cue&&e.transaction===null&&(n.cue=!1,U(n.origin));return}(n.promoted||!On(n))&&Nn(e)}}function Nn(e){let t=e.transition;t!==void 0&&(e.transition=void 0,e.wakeable=null,e.generation++,t.promoted||Ar(-1))}var Pn=0,Fn=1,In=2,Ln=3,Rn=5,zn=6,F=null,Bn=null,Vn=0,Hn=[],Un=0,I=null,Wn=[],L=!1;function Gn(e,t=!1){let n=e.block.idState.renderOwner;return n===void 0||n.disposed||t&&!n.transaction?.rootRequest?null:n.retryKey??={}}function Kn(e){if(e===void 0||I===e.transaction&&I!==null)return null;let t=e.transaction;if(t===null){e.nativeRetry?.clear();let n=Vr();n.rootTransaction=!0,t={owner:e,log:[],bags:new Map,capture:n,created:null,retainedCreated:null,retired:null,structures:null,commit:null,parked:null,aborted:!1,rootRequest:!1},e.transaction=t,Wn.push(t)}let n={transaction:t,previous:I,log:F,bags:Bn,checkpoint:Vn,depth:Un,parked:mr,capture:H};return I=t,F=t.log,Bn=t.bags,Vn=0,Un=1,mr=t.parked,H=t.capture,n}function qn(e){e!==null&&(e.transaction.parked=mr,I=e.previous,F=e.log,Bn=e.bags,Vn=e.checkpoint,Un=e.depth,mr=e.parked,H=e.capture)}function R(e){F.push(zn,e,null,null)}function z(e,t){I===null||L||F.push(Ln,e,t,e[t])}function Jn(e,t,n,r){let i=I;if(i===null||i.aborted||L)return;let a=i.structures??=new Map;(a.get(e)??-1)>=Vn||(a.set(e,F.length),cr(e),R(()=>{a.delete(e)}),Yn(t,n,r))}function Yn(e,t,n){let r=[];for(let i=t===null?e.firstChild:t.nextSibling;i!==null&&i!==n;i=i.nextSibling)r.push(i);R(()=>{let i=t!==null&&t.parentNode===e?t.nextSibling:e.firstChild,a=n!==null&&n.parentNode===e?n:null,o=new Set(r);for(;i!==null&&i!==a;){let t=i.nextSibling;o.has(i)||e.removeChild(i),i=t}Zn(e,r,a)})}function Xn(e){let t=I;if(t===null||L)return;let n=t.structures??=new Map;(n.get(e)??-1)>=Vn||(n.set(e,F.length),R(()=>{n.delete(e)}),Yn(e,null,null))}function Zn(e,t,n){for(let r=t.length-1;r>=0;r--){let i=t[r];(i.parentNode!==e||i.nextSibling!==n)&&(pi===null?e.insertBefore(i,n):(yi(e,pi),lg(e,i,n,pi))),n=i}}function Qn(e){let t=I;if(t===null||t.aborted||L||e.idState.renderOwner!==t.owner)return;let n=t.retired??=new Set;n.has(e)||(n.add(e),R(()=>{n.delete(e)})),e.pending&&=(z(e,`pending`),!1)}function $n(e,t,n,r,i){Qn(e),er(t,n,r,()=>{e.disposed||q(e,!1)},i)}function er(e,t,n,r,i){let a=[];if(t!==null&&n!==null)for(let e=t;e!==null&&(a.push(e),e!==n);e=e.nextSibling);let o=!1;R(()=>{o=!0}),(I.commit??=[]).push(()=>{if(!o){r?.();for(let t of a)t.parentNode===e&&e.removeChild(t);i?.()}})}function tr(e,t){let n=I;if(n===null||n.aborted||L||e.idState.renderOwner!==n.owner||!e.mounted||n.created?.has(e))return!1;Qn(e);let r=e.startMarker,i=e.endMarker,a=[],o=null,s=null;if(r!==null&&i!==null&&r.parentNode!==null){o=r.parentNode;let n=e.exclusiveMarkers||!t&&r!==i;s=n?i:i.nextSibling;for(let e=n?r.nextSibling:r;e!==null&&e!==s;e=e.nextSibling)a.push(e)}else if(e.kind===`root`){o=e.parentNode;for(let e=o.firstChild;e!==null;e=e.nextSibling)a.push(e)}let c=!1;R(()=>{if(c=!0,o!==null){let e=s?.parentNode===o?s:null;Zn(o,a,e)}});let l=Oi;if((n.commit??=[]).push(()=>{if(c||e.disposed)return;if(o!==null){let e=s?.parentNode===o?s:null;for(let t of a)t.parentNode!==o&&o.insertBefore(t,e)}let t=Oi;Oi=l;try{q(e,!1)}finally{Oi=t}if(o!==null)for(let e of a)e.parentNode===o&&o.removeChild(e)}),t&&o!==null)for(let e of a)o.removeChild(e);return!0}function nr(e){let t=I;t===null||L||t.created?.has(e)||((t.created??=new Set).add(e),R(()=>{let n=W.length;q(e,(!t.hydrating||e.kind===`portal`)&&!t.retainedCreated?.has(e)),W.length=n}))}function rr(e){I!==null&&(I.retainedCreated??=new Set).add(e)}function ir(e){if(e.aborted)return;e.aborted=!0;let t=Kn(e.owner),n=L;L=!0;try{let t=e.owner.current;if(t!==null)Or(0,t);else{for(let t=e.log.length-4;t>=0;t-=4)e.log[t]===zn&&e.log[t+1]();e.log.length=0}Af(e.capture),e.commit=null;let n=W.length;Er(),W.length=n}finally{L=n,qn(t)}}function ar(){let e=Wn;if(e.length!==0){Wn=[];for(let t of e){let e=t.owner;if(t.aborted||e.disposed){e.transaction===t&&(e.transaction=null),e.transition!==void 0&&N.commitRoot(e,t);continue}if(k!==null&&!k.validateCapture(t.capture)){ir(t),e.transaction===t&&(e.transaction=null),e.disposed||(e.wakeable=null,e.generation++,e.retry());continue}e.transaction===t&&(e.transaction=null),t.rootRequest&&(e.transition===void 0||!N.keepsRoot(e))&&(e.wakeable=null,e.generation++),e.wakeable===null&&(e.retryKey=null,e.nativeRetry?.clear()),dt(t.capture,e,!0);let n=e.generation,r=t.commit;if(r!==null)for(let t of r){if(e.disposed||e.generation!==n)break;t()}let i=t.parked;if(i!==null)for(let t of i){if(e.disposed||e.generation!==n)break;Dr(t)}if(k?.pruneDeferredRefs(e),e.disposed||e.generation!==n){Af(t.capture);continue}Of(t.capture),e.transition!==void 0&&N.commitRoot(e,t)}}}function or(e,t,n){let r=e.idState.renderOwner;if(r===void 0||r.disposed)return!1;let i=r.transaction;if(i===null)return!1;if(N===null||!N.holdRoot(r,i,n)){if(ys&&i.created!==null)for(let e of i.created)(e.parentBlock===null||!i.created.has(e.parentBlock))&&Os(e);ir(i)}r.wakeable=t;let a=++r.generation,o=!1,s=()=>{o||(o=!0,queueMicrotask(()=>{r.disposed||r.generation!==a||r.wakeable!==t||(r.wakeable=null,(r.transition===void 0||!N.retryRoot(r))&&r.retry())}))};return t.then(s,s),!0}function sr(){let e=A;if(e===null)return;let t=e.slots[0];typeof t!=`object`||!t||t.__kind!==void 0||cr(t)}function cr(e){let t=Bn;(t.get(e)??-1)>=Vn||(t.set(e,F.length),F.push(In,e,{...e},Array.isArray(e)?e.length:null))}function lr(e){if(I!==null&&e.ownerDocument.activeElement===e){let t=e.selectionStart,n=e.selectionEnd,r=e.selectionDirection;t!==null&&n!==null&&R(()=>e.setSelectionRange(t,n,r??void 0))}}function ur(e,t,n){t===`value`&&lr(e);let r=F;r.push(Ln,e,t,e[t]),r.push(Ln,e,n,e[n]);let i=e.$$ctrl;i!==void 0&&cr(i);let a=e;t===`checked`&&a.type===`radio`&&a.name!==``&&fr(a),sr()}function dr(e){lr(e),e.localName===`textarea`?(I===null?F.push(Ln,e,`defaultValue`,e.defaultValue):Xn(e),sr()):Cr(e,`value`)}function fr(e){let t=e.name,n=e.form===null?typeof document<`u`?document.getElementsByName(t):[]:e.form.elements;for(let r=0;r<n.length;r++){let i=n[r];i===e||!i.checked||i.localName!==`input`||i.type!==`radio`||i.name!==t||F.push(Ln,i,`checked`,!0)}}function pr(e,t){F.push(Ln,e,`selected`,e.selected),t&&F.push(Ln,e,`defaultSelected`,e.defaultSelected)}var mr=null;function hr(e){let t=[],n=I!==null&&!L;n&&Qn(e);let r=e.startMarker,i=e.endMarker;if(r&&i){let a=r.parentNode;if(a!==null){let o=e.exclusiveMarkers,s=o?r.nextSibling:r,c=o?i:i.nextSibling;for(;s!==null&&s!==c;){let e=Y(s);n||a.removeChild(s),t.push(s),s=e}}}(mr??=[]).push({block:e,nodes:t})}function gr(){return F!==null}function _r(e){return F!==null&&Bn.has(e)}function vr(e){let t=Bn;if((t.get(e)??-1)>=Vn)return;if(t.set(e,F.length),I!==null&&(I.hydrating===!0&&X()!==null||e.adopt!==null)){R(()=>{t.delete(e)}),Yn(e.start.parentNode,e.start,e.end);return}let n=[];for(let t=e.head;t!==null;t=t.nextSibling)n.push([t,t.nextSibling,t.prevSibling]);let r={head:e.head,tail:e.tail,size:e.size,empty:e.emptyBlock,entries:[...e.items]};R(()=>{yr(e,r,n),Bn.delete(e)})}function yr(e,t,n){let r=new Set;for(let e=0;e<n.length;e++)r.add(n[e][0]);for(let t=e.head;t!==null;t=t.nextSibling)r.has(t)||q(t,!1);if(e.end.parentNode===null)return;e.head=t.head,e.tail=t.tail,e.size=t.size,e.items.clear();for(let n=0;n<t.entries.length;n++)e.items.set(t.entries[n][0],t.entries[n][1]);for(let e=0;e<n.length;e++)n[e][0].nextSibling=n[e][1],n[e][0].prevSibling=n[e][2];let i=[];for(let t=e.head;t!==null;t=t.nextSibling){let e=br(t)??xr(t);for(let t of e)i.push(t)}if(e.emptyBlock!==t.empty&&(e.emptyBlock!==null&&q(e.emptyBlock,!1),e.emptyBlock=t.empty),e.end.parentNode===null)return;if(t.empty!==null){let e=br(t.empty)??xr(t.empty);for(let t of e)i.push(t)}let a=e.end.parentNode,o=new Set(i),s=e.start.nextSibling;for(;s!==null&&s!==e.end;){let e=s.nextSibling;o.has(s)||a.removeChild(s),s=e}let c=e.end;for(let e=i.length-1;e>=0;e--){let t=i[e];(t.parentNode!==a||t.nextSibling!==c)&&(pi===null?a.insertBefore(t,c):lg(a,t,c,pi)),c=t}}function br(e){let t=mr;if(t===null)return null;for(let n=0;n<t.length;n++)if(t[n].block===e){let e=t[n].nodes;return t.splice(n,1),e}return null}function xr(e){let t=[],n=e.startMarker,r=e.endMarker;if(!n||!r||n.parentNode===null)return t;let i=e.exclusiveMarkers,a=i?n.nextSibling:n,o=i?r:r.nextSibling;for(;a!==null&&a!==o;)t.push(a),a=Y(a);return t}function Sr(e){F.push(Pn,e,e.nodeValue,null),sr()}function Cr(e,t){F.push(Fn,e,t,e.getAttribute(t)),sr()}function wr(e){return!e.hasResolved||e.hiddenDom!==null||!(e.transitionHeld||(e.tryBlock?.pendingMode??j?.currentRenderMode)===`transition`)?-1:(F??=[],Bn??=new Map,Hn.push(Vn),Vn=F.length,Un++,F.length)}function Tr(e){e<0||(Vn=Hn.pop(),--Un===0&&(F=null,Bn=null,Er()))}function Er(){let e=mr;if(e!==null){mr=null;for(let t=0;t<e.length;t++)Dr(e[t])}}function Dr(e){try{q(e.block,!1)}finally{for(let t of e.nodes)t.parentNode!==null&&t.parentNode.removeChild(t)}}function Or(e,t){if(e<0)return;let n=F;if(n!==null){for(let r=n.length-4;r>=e;r-=4){let e=n[r+1],i=n[r+2],a=n[r+3];switch(n[r]){case Pn:e.nodeValue=i;break;case Fn:a===null?e.removeAttribute(i):e.setAttribute(i,a);break;case Ln:e[i]=a;break;case Rn:!e.disposed&&(e===t||Hi(t,e))&&ma(e,t);break;case zn:e();break;default:for(let t of Object.keys(e))Object.prototype.hasOwnProperty.call(i,t)||delete e[t];for(let t of Object.keys(i))e[t]=i[t];a!==null&&(e.length=a),Bn.delete(e)}}n.length=e}}var kr=null;function Ar(e){sn+=e,sn<0&&(sn=0),ln++;try{for(let e of cn)try{e()}catch(e){console.error(e)}}finally{ln--}}var B=0,jr=1,Mr=2,V=[[],[],[]],Nr=[],Pr=[],Fr=!1,Ir=0,Lr=[],Rr=[];function zr(e){e._reapply(),gl(e._currentRef,e)}var H=null,Br=null;function Vr(){return{renderRoot:null,renderedBlocks:null,effects:[[],[],[]],events:[],eventActions:[],refs:[],stores:[]}}var Hr=Nr,Ur=Pr,Wr=new Set;function Gr(){if(Wr.size!==0)for(let e of Wr)e._reapply()}var Kr=0,qr=50,Jr=0;function Yr(){return It>0||Lt>0||Rt>0}var Xr=class extends Error{};function Zr(){return new Xr(O(1))}function U(e){if(e.disposed)return;let t=j===e;j!==null&&!t&&ln===0&&zt===0&&(e.crossRenderUpdate=!0);let n=Kt>0||t&&e.currentRenderMode===`transition`||!Wt&&Zt===0&&qt>0?`transition`:`urgent`,r=on||t&&e.currentRenderDeferred;if(e.pending){n===`urgent`&&(e.pendingMode=`urgent`,e.pendingDeferred=!1);return}Yr()?(e.nestedUpdateChain!==Jr&&(e.nestedUpdateChain=Jr,e.nestedUpdateCount=0),++e.nestedUpdateCount>qr&&(e.nestedUpdateError=!0)):j===null&&(Jr++,e.nestedUpdateChain=Jr,e.nestedUpdateCount=0,e.nestedUpdateError=!1),e.pending=!0,e.pendingMode=n,e.pendingDeferred=r,M.push(e),!Wt&&(Ut||(Ut=!0,queueMicrotask(oi)))}var Qr=0,$r=25;function ei(e,t){for(let n=e;n!==null;n=n.parentBlock)if(n===t)return!0;return!1}function ti(e){let t=null,n=0,r=0,i=Ht;try{for(;n<M.length;){let a=M[n++];if(!ei(a,e)){M[r++]=a;continue}if(!a.pending||a.disposed)continue;let o=(t??=new Map).get(a)??0;if(o>=$r)throw Error(O(9));t.set(a,o+1),a.crossRenderUpdate=!1;try{K(a)}catch(e){bh(a,e)}i!==Ht&&(i=Ht,n=0,r=0)}}finally{if(i===Ht){for(;n<M.length;)M[r++]=M[n++];M.length=r,Ht++}}}function ni(e){let t=new Set(e),n=new Map,r=[];for(let i=0;i<e.length;i++){let a=e[i],o;for(;a!==null&&(o=n.get(a),o===void 0);)r.push(a),a=a.parentBlock;let s=o??-1;for(;r.length>0;){let e=r.pop();s++,t.has(e)&&n.set(e,s)}}return e.sort((e,t)=>n.get(e)-n.get(t)),e}var ri=null;function ii(){ri??={find:qm,reveal:ah,visible:Dm,rehide:jh,retryActivity:Ph}}function ai(){let e=null,t=null,n=++Qr;M.length>1&&ni(M);for(let r=0;r<M.length;r++){let i=M[r];if(!i.pending&&!i.nestedUpdateError)continue;if(i.pending=!1,i.disposed){i.nestedUpdateError=!1;continue}let a=i.idState.renderOwner?.transaction;if(a?.aborted===!0)continue;let o=a?.retired;if(o!=null&&o.size!==0){let e=i;for(;e!==null&&!o.has(e);)e=e.parentBlock;if(e!==null)continue}let s=i.crossRenderUpdate;i.crossRenderUpdate=!1;let c=ri,l=c===null?null:c.find(i,!0,i.pendingMode??`urgent`),u=null,d=null,f=null;l!==null&&(l.__kind===`trySlotSlot`?l.hiddenDom===null?f=l:d=l:u=l);let p=Kn(i.idState.renderOwner),m=null;try{if(i.kind===`root`&&!i.mounted&&nr(i),i.nestedUpdateError)throw i.nestedUpdateError=!1,Zr();if(i.drainStamp===n){if(++i.drainRenders>$r)throw s?Zr():Error(O(9))}else i.drainStamp=n,i.drainRenders=1;if(d!==null){c.reveal(d,i.pendingMode??`urgent`);continue}if(u!==null&&u.pendingThenable!==null){c.retryActivity(u,!0);continue}let e=N;m=e===null?null:e.begin(i);try{if(u!==null)c.retryActivity(u,!1,i);else if(f!==null)c.visible(f,i);else{let e=i.idState.renderOwner;if(e!==void 0&&e.current===i&&e.request!==null){let t=e.request;e.request=null;let n=i.pendingMode??`urgent`;i.pendingMode=null,t(n)}else K(i)}}finally{e!==null&&e.end(m)}}catch(t){try{bh(i,t,m)}catch(t){let n=i.idState.renderOwner?.transaction;n!=null&&ir(n),xg(i,t)||(e===null?e={err:t,all:[t]}:(e.all.push(t),e.err=typeof AggregateError==`function`?AggregateError(e.all,O(13)):e.all[0]));let r=i;for(;r.parentBlock!==null;)r=r.parentBlock;r.kind===`root`&&!r.disposed&&q(r)}}finally{qn(p),u!==null&&(t??=new Set).add(u)}}if(M.length=0,Ht++,t!==null)for(let e of t)ri.rehide(e);return ar(),e}function oi(){if(Ut=!1,Gt){(M.length>0||Wn.length>0)&&!Ut&&(Ut=!0,queueMicrotask(oi));return}!Bi()&&W.length===0&&Rr.length===0&&Wr.size===0&&mn.length===0&&kr===null||kr?.routeFlush()!==!0&&bi()}function si(e){try{let t=e.activeElement;if(t===e.body&&(t=t?.shadowRoot?.activeElement??null,t===null))return null;for(;t!==null;){if(t.localName===`iframe`){let e;try{e=t.contentDocument}catch{break}if(e===null)break;let n=e.activeElement;if(n===null)break;t=n;continue}let e=t.shadowRoot?.activeElement;if(e==null)break;t=e}return t}catch{return null}}function ci(e){if(e.localName===`textarea`)return!0;if(e.localName!==`input`)return!1;switch(e.type){case`text`:case`search`:case`tel`:case`url`:case`password`:return!0}return!1}function li(e,t,n,r,i){let a=e,o=null,s=0,c=-1,l=-1,u=0,d=0;selection:for(;;){for(;;){if(a===t&&(n===0||a.nodeType===3)&&(c=s+n),a===r&&(i===0||a.nodeType===3)&&(l=s+i),c!==-1&&l!==-1)break selection;a.nodeType===3&&(s+=a.nodeValue.length);let e=a.firstChild;if(e===null)break;o=a,a=e}for(;;){if(a===e||(o===t&&++u===n&&(c=s),o===r&&++d===i&&(l=s),c!==-1&&l!==-1))break selection;let f=a.nextSibling;if(f!==null){a=f;break}a=o,o=a.parentNode}}return c===-1||l===-1?null:{focused:e,start:c,end:l,contentEditable:!0}}function ui(e){let t=si(e);if(t===null||t===t.ownerDocument.body)return null;if(ci(t)){let e=t;return{focused:t,start:e.selectionStart??0,end:e.selectionEnd??0,contentEditable:!1}}if(t.contentEditable===`true`||t.getAttribute(`contenteditable`)===`true`){let e=t.ownerDocument.getSelection();if(e!==null&&e.anchorNode!==null&&e.focusNode!==null&&t.contains(e.anchorNode)&&t.contains(e.focusNode)){let n=e.anchorNode,r=e.focusNode;if(n===r&&n.nodeType===3){if(n===t.firstChild)return{focused:t,start:e.anchorOffset,end:e.focusOffset,contentEditable:!0};if(n.nodeValue.length<256){let r=t.ownerDocument.createRange();r.selectNodeContents(t),r.setEnd(n,e.anchorOffset);let i=r.toString().length;return{focused:t,start:i,end:i+e.focusOffset-e.anchorOffset,contentEditable:!0}}}let i=li(t,n,e.anchorOffset,r,e.focusOffset);if(i!==null)return i}}return{focused:t,start:-1,end:-1,contentEditable:!1}}function di(e,t){let n=e.ownerDocument.createTreeWalker(e,4),r=n.nextNode(),i=null;for(;r!==null;){let e=r.textContent?.length??0;if(t<=e)return[r,t];t-=e,i=r,r=n.nextNode()}return i===null?[e,0]:[i,i.textContent?.length??0]}function fi(e){if(e===null)return;let{focused:t}=e,n=t.ownerDocument;if(si(n)===t||!t.isConnected)return;if(e.start!==-1){if(e.contentEditable){let r=n.getSelection();if(r!==null){let[i,a]=di(t,e.start),[o,s]=di(t,e.end),c=n.createRange();c.setStart(i,a),c.collapse(!0),r.removeAllRanges(),r.addRange(c),r.extend(o,s)}}else{let n=t;n.setSelectionRange(e.start,Math.min(e.end,n.value.length))}}let r=[],i=t.parentElement;for(;i!==null;)r.push({element:i,left:i.scrollLeft,top:i.scrollTop}),i=i.parentElement;t.focus();for(let e=0;e<r.length;e++){let t=r[e];t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var pi=null,mi=null;function hi(){if(M.length===0)return null;let e=M[0].parentNode.ownerDocument;if(e===null)return null;let t=ui(e),n=null;for(let r=1;r<M.length;r++){let i=M[r].parentNode.ownerDocument;if(i===null||i===e||n?.includes(i))continue;(n??=[e]).push(i);let a=ui(i);a!==null&&(t===null?t=a:Array.isArray(t)?t.push(a):t=[t,a])}return t}function gi(e){if(Array.isArray(e))for(let t=0;t<e.length;t++)fi(e[t]);else fi(e)}function _i(e){if(e===null&&pi===null)return ai();let t=pi,n=mi;pi=e,mi=null;try{return ai()}finally{try{vi()}finally{mi=n,pi=t}}}function vi(){if(mi!==null)for(let e=0;e<mi.length;e++){let t=mi[e],n=t.snapshot;if(n.contentEditable){let e=n.focused.ownerDocument,t=e.getSelection();if(t!==null&&si(e)===n.focused){let[r,i]=di(n.focused,n.start),[a,o]=di(n.focused,n.end);if(t.anchorNode!==r||t.anchorOffset!==i||t.focusNode!==a||t.focusOffset!==o){let n=e.createRange();n.setStart(r,i),n.collapse(!0),t.removeAllRanges(),t.addRange(n),t.extend(a,o)}}}for(let e=0;e<t.ancestors.length;e++){let n=t.ancestors[e];n.element.scrollLeft=n.left,n.element.scrollTop=n.top}}}function yi(e,t){let n=null;if(Array.isArray(t)){for(let r=0;r<t.length;r++)if(t[r].focused.ownerDocument===e.ownerDocument){n=t[r];break}}else t.focused.ownerDocument===e.ownerDocument&&(n=t);if(n===null||!e.contains(n.focused))return;if(mi!==null){for(let e=0;e<mi.length;e++)if(mi[e].snapshot===n)return}let r=[];for(let e=n.focused.parentElement;e!==null;e=e.parentElement)r.push({element:e,left:e.scrollLeft,top:e.scrollTop});(mi??=[]).push({snapshot:n,ancestors:r})}function bi(){Gt=!0;let e=mn.length>0,t=kr,n=t?.shouldClearTypesAfterFlush()===!0;try{M.length>0&&xi();let e=M.length===0?null:hi(),t=_i(e);if(e!==null&&gi(e),Li(),t!==null)throw t.err}finally{Gt=!1,(e||mn.length>0)&&(mn.length=0),n&&t.clearTypes()}}function xi(){(V[Mr].length>0||$i.length>0)&&zi()}function Si(e){if(Gt)return Je(e);kr?.interrupt();let t=Wt;Wt=!0;try{let t=Je(e);Gt=!0;let n=null;try{M.length>0&&xi();let e=M.length===0?null:hi();if(n=_i(e),e!==null&&gi(e),Li(),M.length>0||Wn.length>0){let e=new Set(M),t=!1;for(let r=0;(M.length>0||Wn.length>0)&&!t&&r<Ci;r++){xi();let r=M.length===0?null:hi(),i=_i(r);r!==null&&gi(r),i!==null&&n===null&&(n=i),Li();for(let n=0;n<M.length;n++){let r=M[n];if(e.has(r)){t=!0;break}e.add(r)}}}}finally{Gt=!1}if((M.length>0||Wn.length>0)&&!Ut&&(Ut=!0,queueMicrotask(oi)),n!==null)throw n.err;return t}finally{Wt=t}}var Ci=50;function wi(e,t,n){ml?.(e.block,n);let r={ref:t,el:n,block:e.block};if((H===null?Rr:H.refs).push(r),H===null&&k!==null){let t=e.block.idState.renderOwner;t!==void 0&&k.stampQueuedPublication(t,r)}}var W=[];function Ti(e,t){if(e==null||ki(t))return;if(t!==null&&k?.unpublishedRef(t,e)){k.forgetUnpublishedRef(t);return}let n=t===null?void 0:pl?.get(t);if(n?.hidden&&n.connected!==e)return;let r=I?.aborted&&!L?null:H;(r===null?W:r.detaches??=[]).push(e,t,Ca,wa)}function Ei(e,t,n,r){return t!=null&&Ti(t,r),n!=null&&wi(e,n,r),n}function Di(e,t){e!=null&&Object.prototype.propertyIsEnumerable.call(Object(e),`ref`)&&e.ref!=null&&Ti(e.ref,t)}var Oi=null;function ki(e){if(e===null)return!1;for(let t=Oi;t!==null;t=t.parent)if(t.elements.has(e))return!0;return!1}function Ai(e,t){if(e===null||e.length===0)return t();let n=new Set;for(let t=0;t<e.length;t++){let r=e[t].el;r!==null&&n.add(r)}if(n.size===0)return t();let r=Oi;Oi={elements:n,parent:r};try{return t()}finally{Oi=r}}function ji(){if(W.length===0)return;let e=W.splice(0);for(let t=0;t<e.length;t+=4)try{Lt++;try{gl(e[t],null,e[t+1])}finally{Lt--}}catch(n){if(n instanceof Xr)throw n;let r=e[t+2],i=e[t+3];r===null?xg(i,n)||console.error(n):_g(i,n,r(n))}}function Mi(){if(Rr.length===0)return;let e=Rr.splice(0);e.sort((e,t)=>Ui(e.block,0,t.block,0));for(let t of e){if(Ni(t.block))continue;if(k!==null&&!k.publicationCurrent(t)){k.deferRef(t,t.el,t.ref===zr?t.el._currentRef:t.ref);continue}let e=pl?.get(t.el);if(e!==void 0&&Ym(t.block)!==null){e.hidden=!0;continue}try{k?.forgetUnpublishedRef(t.el),Lt++;try{gl(t.ref,t.el)}finally{Lt--}}catch(e){if(e instanceof Xr)throw e;let n=yh(t.block);n?_g(t.block,e,n(e)):xg(t.block,e)||console.error(e)}}}function Ni(e){let t=e;for(;t!==null;){if(t.disposed)return!0;t=t.parentBlock}return!1}function Pi(e,t,n){return e!==null&&e.get(t)===n}function Fi(e,t,n){let r=0;for(let i=0;i<e.length;i++){let a=e[i],o=a.block;if(o===t||o!==null&&Hi(t,o)){n.set(a.el,a.ref===zr?a.el._currentRef:a.ref);continue}e[r++]=a}e.length=r}function Ii(e,t=new Map){return Fi(Rr,e,t),H!==null&&Fi(H.refs,e,t),t}function Li(){if(Nr.length===0&&Pr.length===0&&V[B].length===0&&V[jr].length===0&&W.length===0&&Rr.length===0&&Lr.length===0&&lt===null&&Wr.size===0&&!bd()){(V[Mr].length>0||$i.length>0)&&!Fr&&Ri();return}let e=k?.pauseLifecycle()??-1;try{Vi();let e=Qi();Bd();let t=Yi();ji(),Mi(),Gr(),t!==null&&Xi(t),e!==null&&bg(e),pt(),na(),(V[Mr].length>0||$i.length>0)&&!Fr&&Ri()}finally{e>=0&&k.resumeLifecycle(e)}}function Ri(){Fr=!0,ua(()=>{Fr=!1,kr?.deferPassives()!==!0&&Zi()})}function zi(){Fr=!1,oa(),Zi()}function Bi(){return M.length>0||Wn.length>0||Nr.length>0||Pr.length>0||V[B].length>0||V[jr].length>0||V[Mr].length>0||$i.length>0||Lr.length>0||lt!==null||bd()}function Vi(){if(Nr.length===0)return;let e=Nr.splice(0);for(let t=0;t<e.length;t++){let n=e[t],r=n.block;!n.cell.active||k?.publicationCurrent(n)===!1||Ni(r)||Jm(r)!==null||r.effectEventRenderVersion!==n.renderVersion||r.effectEventCompletedVersion!==n.renderVersion||(n.cell.impl=n.nextImpl)}}function Hi(e,t){for(let n=t.parentBlock;n!==null;n=n.parentBlock)if(n===e)return!0;return!1}function Ui(e,t,n,r){if(e!==n&&e!==null&&n!==null){if(Hi(e,n))return 1;if(Hi(n,e))return-1}return t-r}function Wi(e,t){return e.scope===t.scope?e.order-t.order||e.seq-t.seq:Ui(e.scope.block,e.seq,t.scope.block,t.seq)}function Gi(e,t){let n=yh(e);if(n!==null){_g(e,t,n(t));return}let r=e;for(;r.parentBlock!==null;)r=r.parentBlock;r.kind===`root`&&!r.disposed&&(q(r),ji()),xg(e,t)||console.error(t)}function Ki(e){let t=e.scope.hooks?.get(e.slot);if(t===void 0||t.revision!==e.revision||!Ji(e,t))return;let n=e.fn===null,r=t.cleanup;if(n&&(t.connectedFn=null,t.connectedArgs=void 0,t.disconnected=!1),r){t.cleanup=void 0;try{Vt(r)}catch(t){if(t instanceof Xr)throw t;Gi(e.scope.block,t)}}}function qi(e){if(e.fn===null)return;let t,n=e.scope.hooks?.get(e.slot);if(n!==void 0&&n.revision===e.revision&&Ji(e,n)){n.connectedFn=e.fn,n.connectedArgs=e.args,n.disconnected=!1;try{It++;try{t=e.fn.apply(null,e.args??[])}finally{It--}}catch(t){if(t instanceof Xr)throw t;Gi(e.scope.block,t);return}typeof t==`function`&&(n.cleanup=t)}}function Ji(e,t){return k?.publicationCurrent(e)!==!1||(t.deps=void 0,t.active=t.connectedFn!==null,ma(e.scope.block,e.scope.block),!1)}function Yi(){let e=V[B],t=V[jr];if(e.length===0&&t.length===0)return null;let n=e.length===0?t.splice(0):t.length===0?e.splice(0):e.splice(0).concat(t.splice(0));n.sort(Wi);let r=n.length,i=0;for(;i<r;){let e=n[i].scope,t=i+1;for(;t<r&&n[t].scope===e;)t++;for(let e=i;e<t;e++){let t=n[e];t.phase===B&&!t.scope.block.disposed&&Ki(t)}for(let e=i;e<t;e++){let t=n[e];t.phase===B&&!t.scope.block.disposed&&qi(t)}for(let e=i;e<t;e++){let t=n[e];t.phase===jr&&!t.scope.block.disposed&&(t.fn===null||!Ja(t.scope.block))&&Ki(t)}i=t}return n}function Xi(e){for(let t=0;t<e.length;t++){let n=e[t];n.phase===jr&&(n.scope.block.disposed||Ja(n.scope.block)||qi(n))}}function Zi(){ea();let e=V[Mr];if(e.length===0)return;let t=e.splice(0);t.sort(Wi);for(let e=0;e<t.length;e++){let n=t[e];n.scope.block.disposed||n.fn!==null&&Ja(n.scope.block)||Ki(n)}for(let e=0;e<t.length;e++){let n=t[e];n.scope.block.disposed||Ja(n.scope.block)||qi(n)}}function Qi(){if(Pr.length===0)return null;let e=Pr.splice(0),t=null;for(let n=0;n<e.length;n++)try{let r=e[n]();r!==void 0&&(t??=[]).push(r)}catch(e){console.error(e)}return t}var $i=[];function ea(){if($i.length===0)return;let e=$i.splice(0);for(let t=0;t<e.length;t+=3)try{Vt(e[t])}catch(n){if(n instanceof Xr)throw n;let r=e[t+1],i=e[t+2];r===null?xg(i,n)||console.error(n):_g(i,n,r(n))}}function ta(e){try{return!Object.is(e.value,e.getSnapshot())}catch{return!0}}function na(){if(Lr.length===0)return;let e=Lr.splice(0);Rt++;try{for(let t=0;t<e.length;t++){let n=e[t];n.queued=!1,!(n.block.disposed||Ja(n.block))&&(n.value=n.pending,ta(n)&&n.forceUpdate())}}finally{Rt--}}var ra=[],ia=null,aa=0;function oa(){ra.length!==0&&(ra=[],aa++,ia!==null&&(clearTimeout(ia),ia=null))}function sa(e){if(e!==void 0&&e!==aa)return;let t=ra;if(t.length!==0){oa();for(let e=0;e<t.length;e++)t[e]()}}var ca;function la(){if(ca===void 0){if(typeof MessageChannel>`u`)ca=e=>setTimeout(()=>sa(e),0);else{let e=new MessageChannel;e.port1.onmessage=e=>sa(e?.data),ca=t=>e.port2.postMessage(t)}}return ca}function ua(e){if(ra.push(e),ra.length!==1)return;let t=la(),n=++aa,r=typeof document<`u`&&document.visibilityState===`hidden`,i=typeof requestAnimationFrame==`function`;ia=setTimeout(()=>sa(n),r||!i?0:250),!r&&i&&requestAnimationFrame(()=>{t(n)})}var da=class{body;props;extra;outputHandler;memoInChain;parentNode;parentBlock;idState;startMarker;endMarker;exclusiveMarkers;itemIndex;pending;disposed;mounted;renderStatus;pendingMode;currentRenderMode;pendingDeferred;currentRenderDeferred;inactive;hooks;cleanups;effectSlots;children;_slots;refFields;$$ctxValues;$$ctxReads;$$ctxDirect;$$ctxCache;$$implicitBail;__thenableIdx;drainStamp;drainRenders;crossRenderUpdate;nestedUpdateChain;nestedUpdateCount;nestedUpdateError;effectEventRenderVersion;effectEventCompletedVersion;deoptNode;deoptRefs;slots;forSlot;prevSibling;nextSibling;key;vt;parent;block;kind;constructor(e,t,n,r,i,a,o,s,c){this.body=a,this.props=o,this.extra=s,this.outputHandler=c,this.memoInChain=a?.__memo===!0||t!==null&&t.memoInChain===!0,this.parentNode=n,this.parentBlock=t,this.idState=t?.idState??{prefix:``,next:0},this.startMarker=r,this.endMarker=i,this.exclusiveMarkers=!1,this.itemIndex=0,this.pending=!1,this.disposed=!1,this.mounted=!1,this.renderStatus=wt,this.pendingMode=null,this.currentRenderMode=null,this.pendingDeferred=!1,this.currentRenderDeferred=!1,this.inactive=!1,this.hooks=null,this.cleanups=null,this.effectSlots=null,this.children=null,this._slots=null,this.refFields=null,this.$$ctxValues=null,this.$$ctxReads=null,this.$$ctxDirect=null,this.$$ctxCache=null,this.$$implicitBail=!1,this.__thenableIdx=0,this.drainStamp=0,this.drainRenders=0,this.crossRenderUpdate=!1,this.nestedUpdateChain=-1,this.nestedUpdateCount=0,this.nestedUpdateError=!1,this.effectEventRenderVersion=0,this.effectEventCompletedVersion=0,this.deoptNode=null,this.deoptRefs=!1,this.slots=[],this.forSlot=null,this.prevSibling=null,this.nextSibling=null,this.key=null,this.vt=null,this.parent=null,this.block=this,this.kind=e}},fa=class{block;parent;hooks;cleanups;effectSlots;children;_slots;refFields;$$ctxValues;$$ctxReads;$$ctxCache;mounted;slots;constructor(e,t){this.block=t,this.parent=e,this.hooks=null,this.cleanups=null,this.effectSlots=null,this.children=null,this._slots=null,this.refFields=null,this.slots=[],this.$$ctxValues=null,this.$$ctxReads=null,this.$$ctxCache=null,this.mounted=!1}};function G(e,t,n,r,i,a,o,s,c=null){let l=new da(e,t,n,r,i,a,o,s,c);return t!==null&&l.idState.renderOwner===I?.owner&&nr(l),l}function K(e){let t=X();if(t!==null&&!t.owns(e)){t.suspend(()=>ga(e));return}ga(e)}function pa(e){Ur.push(e)}function ma(e,t=null){if(!e.disposed)for(let n=e;n!==null&&(n.block===n&&(n.renderStatus=Tt,n.forSlot!==null&&(n.forSlot.cachedDeps=null)),!(n===t||t===null&&n.inactive));n=n.parentBlock);}function ha(e,t){if(e.rootTransaction===!0)return;let n=e.renderRoot??=t;(t===n||Hi(n,t))&&(e.renderedBlocks??=new Set).add(t)}function ga(e){e.renderStatus===Tt&&(e.renderStatus=Et),H!==null&&ha(H,e),F!==null&&F.push(Rn,e,null,null);let t=A,n=j,r=Ot,i=kt,a=Nt,o=jt.length,s=Hr,c=Ur,l=H?.events??s,u=H?.eventActions??c,d=l.length,f=u.length;if(A=e,j=e,Ot=e.effectSlots===null?0:At++,kt=0,n!==null&&As(n,e))Nt===0&&(Nt=Mt++);else{let t=n===null&&J?e.__warmEpisode:void 0;Nt=typeof t==`number`?t:Mt++}e.__warmEpisode=Nt,Hr=l,Ur=u,e.effectEventRenderVersion!==0&&e.effectEventRenderVersion++,e.pending=!1,e.__thenableIdx=0;{let t=e.__thenables;t!==void 0&&t.length!==0&&(!J||e.__thenableDone===!0)&&(t.length=0),e.__thenableDone=!1}e.$$ctxReads!==null&&e.$$ctxReads.clear(),e.$$ctxDirect!==null&&e.$$ctxDirect.clear(),e.currentRenderMode=e.pendingMode??n?.currentRenderMode??`urgent`,e.currentRenderDeferred=e.pendingMode===null?n?.currentRenderDeferred??!1:e.pendingDeferred,e.pendingMode=null,e.pendingDeferred=!1;let p,m=!1;k?.beginRender(e),ct?.get(e)?.clear();try{let t=e.body(e.props,e,e.extra);t!==void 0&&e.outputHandler!==null&&e.outputHandler(e,t),Xa(e),e.mounted||=!0,e.renderStatus===Et&&(e.renderStatus=wt),e.effectEventRenderVersion!==0&&(e.effectEventCompletedVersion=e.effectEventRenderVersion),m=!0,e.__thenableDone=!0}catch(e){if(typeof e==`object`&&e)try{typeof e.then==`function`&&(e=new es(e))}catch{}throw p=e,e}finally{if(!m){if(e.renderStatus!==Tt){let t=null,n=ts(p);if(n||!Ko(p)){for(let r=e;r!==null;r=r.parentBlock)if(n?r.__suspenseHandler:r.$$tryHandler&&r.__trySlot?.catchBody!==null){t=r;break}}ma(e,t)}l.length=d,u.length=f}Hr=s,Ur=c,jt.length=o,Nt=a,Ot=r,kt=i,A=t,j=n,k?.endRender(e,m,ts(p))}}function _a(e,t){let n=[t?.end,t?.block?.endMarker,t?.hostNode,t?.text,e.endMarker,e.parentNode.lastChild];for(let t=0;t<n.length;t++){let r=n[t];if(r!=null&&r.parentNode===e.parentNode)return r}return null}function va(e,t){let n=t!==null&&t.$$kind===nf&&t.key==null&&typeof t.type==`function`,r=e.slots[0],i=null,a=null,o=n&&(t.type.$$singleRoot===!0||X()?.passthroughRanges===!0||r!==void 0&&r.__kind===`componentSlotSlot`&&r.currentComp===t.type);if(r!==void 0&&r.__kind!==(o?`componentSlotSlot`:`childSlot`)){let n=N,o=e.currentRenderMode===`transition`,s=n!==null&&X()===null&&Sh(e),c=I===null||s?n:null,l=c!==null&&!o&&X()===null&&s;if(c!==null&&X()===null&&(o||l)){let n=_a(e,r);if(n!==null){let r=c.render(e,e.parentNode,n,Tg,t,va);if(c.dispose(r.wip),r.failed)throw r.error;if(r.suspended)throw new es(r.suspended)}}if(I!==null&&!r.inherited&&!r.borrowed&&r.ownerHost==null){let t=r.start??r.hostNode??r.text??r.block?.startMarker??r.end??null,n=r.end??r.block?.endMarker??t;Th(e,t,n)&&(i=t,a=n)}if(ya(e,r),e.disposed)return}if(o){let n=t;Cf(e,0,e.parentNode,n.type,n.props,e.endMarker,n.key??void 0,!0,void 0,X()!==null&&af(n))}else{let n=X();if(n!==null&&e.slots[0]===void 0&&e.startMarker!==null&&e.endMarker!==null&&e.startMarker!==e.endMarker&&e.startMarker.nodeType===8&&e.endMarker.nodeType===8&&(e.startMarker.nextSibling===e.endMarker||n.isUnframedRootRange(e.startMarker,e.endMarker))){let t={__kind:`childSlot`,start:e.startMarker,end:e.endMarker,ownerHost:null,borrowed:!0,compactable:!1,block:null,text:null,currentComp:null,currentIsBodyFn:!1,forSlot:null,hostNode:null,portal:null};e.slots[0]=t,ka(e,t)}Q(e,0,e.parentNode,t,e.endMarker)}if(i!==null){let t=e.slots[0],n=t.start??t.hostNode??t.text??t.block?.startMarker??t.end??null,r=t.end??t.block?.endMarker??n;wh(e,i,a,n,r)}}function ya(e,t){let n=I;if(n!==null&&!n.aborted&&!L){let n=t.ownerHost??e.parentNode,r=t.inherited===!0||t.borrowed===!0,i=t.ownerHost!=null||r&&t.start===null?n.firstChild:r?t.start.nextSibling:t.start??t.hostNode??t.text??t.block?.startMarker??t.end??null;r&&i===t.end&&(i=null);let a=i===null?null:t.ownerHost!=null||r&&t.end===null?n.lastChild:r?t.end.previousSibling:t.end??t.block?.endMarker??i;Jn(t,n,r?t.start:i===null?n.lastChild:i.previousSibling,r?t.end:a?.nextSibling??null);let o=t.block??t.portal?.block;if(o!=null&&Qn(o),t.forSlot!=null){for(let e=t.forSlot.head;e!==null;e=e.nextSibling)Qn(e);t.forSlot.emptyBlock!==null&&Qn(t.forSlot.emptyBlock)}er(n,i,a,()=>Fa(t,!1)),z(e.slots,`0`);let s=e._slots;if(s!==null){let e=s.indexOf(t);e!==-1&&(R(()=>s.splice(e,0,t)),s.splice(e,1))}e.slots[0]=void 0;return}if(t.__kind===`childSlot`){if(t.portal&&=(Qd(t.portal),null),t.forSlot){for(let e=t.forSlot.head;e!==null;e=e.nextSibling)q(e,!0);t.forSlot.emptyBlock&&q(t.forSlot.emptyBlock,!0),t.forSlot=null}Pf(t),t.borrowed||(t.start?.remove(),t.end?.remove())}else t.block&&q(t.block,!0),t.inherited||(t.start?.remove?.(),t.end?.remove?.());let r=e._slots;if(r!==null){let e=r.indexOf(t);e!==-1&&r.splice(e,1)}e.slots[0]=void 0}var ba=class{parentNode;endMarker;parentBlock;$$ctxValues;idState;constructor(e,t,n){this.parentNode=e,this.endMarker=t,this.parentBlock=n,this.$$ctxValues=null,this.idState=n.idState}};function xa(e,t,n,r,i,a){let o=X(),s=e.slots[t],c=null,l=null;if(s===void 0){s=new fa(e,e.block);let r=a??null;if(o!==null&&o.isOpen(a??null))c=a,r=o.close(a),l=r,o.node=a.nextSibling;else if(o!==null&&!o.isOpen(a??null)){let e=o.node;(e===null||e.parentNode!==n)&&(e=n.firstChild),e!==null&&o.isOpen(e)&&(c=e,r=o.close(e),l=r,o.node=e.nextSibling)}s.block=new ba(n,r,e.block),c!==null&&l!==null&&o.liteRanges.set(s,{start:c,end:l}),e.slots[t]=s,(e.children??=[]).push({key:t,scope:s})}let u=A,d=jt.length;A=s;let f=k===null?-1:ut(s);try{r(i,s,void 0),s.mounted||(s.mounted=!0)}catch(e){throw e}finally{f>=0&&k.endScope(f),jt.length=d,A=u}o!==null&&l!==null&&(o.node=l.nextSibling)}var Sa=0,Ca=null,wa=null,Ta=null;function Ea(e){Ca===null?xg(wa,e)||console.error(e):(Ta??=[]).push(e)}function Da(){let e=Ta,t=Ca,n=wa;if(Ta=null,Ca=null,wa=null,e!==null&&t!==null)for(let r=0;r<e.length;r++)_g(n,e[r],t(e[r]))}function q(e,t=!0){if(!e.disposed&&(L&&I!==null&&(I.retainedCreated?.has(e)||I.hydrating&&e.kind!==`portal`)&&(t=!1),!tr(e,t))){Sa===0&&(Ca=yh(e.parentBlock)??Uo(e),wa=e),Sa++;try{Oa(e,t)}finally{--Sa===0&&Da()}}}function Oa(e,t){e.disposed=!0;let n=e.idState.renderOwner;n?.current===e&&(n.generation++,n.wakeable=null,n.request=null,n.transition!==void 0&&N.discardRoot(n)),kr?.unregister(e),e.deoptNode!==null&&e.deoptRefs&&$(e.deoptNode,null);let r=t&&(e.kind===`root`||e.startMarker!==null&&e.endMarker!==null&&e.startMarker.parentNode!==null);if(ja(e,t&&!r),n?.current===e&&k?.clearDeferredRefs(n),t){if(e.startMarker&&e.endMarker){let t=e.startMarker.parentNode;if(t){let n=e.exclusiveMarkers,r=n?e.startMarker.nextSibling:e.startMarker,i=n?e.endMarker:e.endMarker.nextSibling;for(;r&&r!==i;){let e=Y(r);t.removeChild(r),r=e}}}else if(e.kind===`root`){let t;for(;(t=Hs(e.parentNode))!==null;)e.parentNode.removeChild(t)}}}function ka(e,t){let n=e._slots,r=I;r!==null&&e.mounted&&!r.created?.has(e.block)&&R(()=>{Fa(t,!0);let r=e.slots.indexOf(t);if(r!==-1&&(e.slots[r]=void 0),n===null)e._slots=null;else{let e=n.indexOf(t);e!==-1&&n.splice(e,1)}}),n===null?e._slots=[t]:n.push(t)}var Aa=1;function ja(e,t=!0){let n=e.effectSlots;if(n!==null)for(let e=0;e<n.length;e++){let t=n[e],r=t.cleanup;if(r!==void 0){if(t.cleanup=void 0,t.phase===Mr)$i.push(r,Ca,wa),Fr||Ri();else try{Vt(r)}catch(e){Ea(e)}}}let r=null;e.mounted!==!0&&(r=[],Lh(e,r)),Ai(r,()=>{Na(e,t)})}function Ma(e){let t=e.cleanups;if(t!==null)for(let e=t.length-1;e>=0;e--)try{Bt(t[e])}catch(e){Ea(e)}}function Na(e,t){Ma(e),Pa(e,t)}function Pa(e,t){let n=e.children;if(n!==null)for(let e=0,r=n.length;e<r;e++)ja(n[e].scope,t);let r=e._slots;if(r!==null)for(let e=0,n=r.length;e<n;e++){let n=r[e];Fa(n,t)}}function Fa(e,t){(e.__flags&Aa)!==0&&e.__teardown(e,t);let n=e.__kind;if(n===`ifBlockSlot`||n===`switchBlockSlot`||n===`activityBlockSlot`)e.block&&q(e.block,t);else if(n===`forBlockSlot`){for(let n=e.head;n!==null;n=n.nextSibling)q(n,t);e.emptyBlock&&q(e.emptyBlock,t)}else if(n===`hydrateBlockSlot`)e.block&&q(e.block,t);else if(n===`childSlot`){if(e.block&&q(e.block,t),e.forSlot){for(let n=e.forSlot.head;n!==null;n=n.nextSibling)q(n,t);e.forSlot.emptyBlock&&q(e.forSlot.emptyBlock,t)}e.portal&&Qd(e.portal),e.hostNode!=null&&$(e.hostNode,null)}else{let r=n===`portalSlotSlot`||t;e.block&&q(e.block,r),n===`portalSlotSlot`&&e.target&&Nu(e.target)}}function Ia(e){throw Error(O(15,e))}var La=[];function Ra(e,t,...n){La.push(e);try{return t(...n)}finally{La.pop()}}function za(e,t){let n=typeof t==`number`?String(t):t.description??``;return e+(typeof t==`number`?`n`:`s`)+n.length+`:`+n}function Ba(e){let t=La.length;if(t===0)return e;if(e===void 0&&t===1)return La[0];let n=`@octane:hook:`;for(let e=0;e<t;e++)n=za(n,La[e]);return e!==void 0&&(n=za(n,e)),Symbol.for(n)}function Va(e,t){t===void 0&&typeof e==`symbol`&&(t=e,e=void 0),t=Ba(t),t===void 0&&Ia(`useState`);let n=A,r=j,i=n.hooks?.get(t);return i===void 0&&(i={value:typeof e==`function`?e():e,setter:e=>{let t=tn(i),n=typeof e==`function`?e(t):e;Object.is(n,t)||nn(i,r,e,n)||(i.value=n,r.disposed,U(r))}},ot(n).set(t,i)),[i.value,i.setter]}var Ha=null;function Ua(e,t){let n=Ha??=new WeakMap,r=n.get(e);r===void 0&&(r={entries:[],live:0},n.set(e,r));let i={action:t,active:!0,queue:r};return r.entries.push(i),r.live++,i}function Wa(e,t){let n=t.queue;return Ha?.get(e)!==n||!t.active?null:(t.active=!1,--n.live===0&&Ha.delete(e),t.action)}function Ga(e,t){let n=t.queue;Wa(e,t)!==null&&n.live!==0&&n.entries.length>n.live*2&&(n.entries=n.entries.filter(e=>e.active))}function Ka(e){let t=Ha?.get(e);if(t===void 0)return;let n=t.entries;if(e.__kind===`activityBlockSlot`){let t=n.length;for(let r=0;r<t;r++){let t=n[r];t.active&&pa(()=>{let n=Wa(e,t);if(n!==null)return n()})}return}Ha.delete(e);for(let e=0;e<n.length;e++){let t=n[e];t.active&&pa(t.action)}}function qa(e,t){if(e===void 0||t===void 0||e.length!==t.length)return!0;for(let n=0;n<e.length;n++)if(!Object.is(e[n],t[n]))return!0;return!1}function Ja(e){for(let t=e;t!==null;t=t.parentBlock)if(t.inactive)return!0;return!1}function Ya(){return Ot===0&&(Ot=At++),Ot}function Xa(e){let t=e.effectSlots;if(t!==null&&Ot!==0&&kt!==t.length)for(let n=0;n<t.length;n++){let r=t[n];if(r.renderVersion===Ot||(I!==null&&cr(r),r.phase===B&&$m(r),!r.active))continue;r.deps=void 0,r.active=!1;let i=++r.revision,a=H===null?V[r.phase]:H.effects[r.phase];a.push({scope:e,slot:r.slot,fn:null,order:r.order,revision:i,args:void 0,phase:r.phase,seq:Ir++}),eh(r,r.phase,a)}}function Za(e,t,n,r){let i=A,a=i.hooks?.get(e);r===B&&(a===void 0?hl?.(i.block):$m(a));let o=Ya(),s=a!==void 0&&a.renderVersion!==o;if(s&&(kt++,a.renderVersion=o),r!==B&&Ja(i.block)){ma(i.block),a&&!a.active&&(I!==null&&cr(a),a.active=!0,a.revision++);return}if(a){let e=qa(a.deps,n);if(a.active&&!e)return;I!==null&&cr(a);let t=!1;if(a.active||(a.active=!0,a.revision++,t=!0),!e)return;s&&!t&&a.revision++}let c;if(a)a.deps=n,c=a;else{if(I!==null){let t=i.effectSlots,n=t?.length??0;R(()=>{i.hooks?.delete(e),t===null?i.effectSlots=null:t.length=n})}kt++;let t={deps:n,cleanup:void 0,renderVersion:o,revision:0,active:!0,order:i.effectSlots===null?0:i.effectSlots.length,effect:!0,phase:r,slot:e,connectedFn:null,connectedArgs:void 0,disconnected:!1};ot(i).set(e,t),i.effectSlots===null?i.effectSlots=[t]:i.effectSlots.push(t),c=t}let l={scope:i,slot:e,fn:t,order:c.order,revision:c.revision,args:n,phase:r,seq:Ir++},u=H===null?V[r]:H.effects[r];u.push(l),eh(c,r,u)}function Qa(e,t,n){return n===void 0&&typeof t==`symbol`&&(n=t,t=void 0),t===null&&(t=void 0),n=Ba(n),n===void 0&&Ia(e),[t,n]}function $a(e,t,n){let[r,i]=Qa(`useEffect`,t,n);Za(i,e,r,Mr)}function eo(e,t){return t.warmEpisode!==Nt&&Es(e,t.deps,t)&&(t.warmEpisode=Nt),t}function to(e,t,n){let r=Ns(t,n);if(r===Ss)return null;let i={deps:n,value:r.value,warmEpisode:Nt};return pn!==null&&Sn(e,t,i),ot(e).set(t,i),Ds(r,i),i}function no(e,t,n){let r=e.hooks?.get(t);return r&&n!==void 0&&!qa(r.deps,n)?eo(t,r):ys&&n!==void 0?to(e,t,n):null}function ro(e,t,n,r,i){let a={deps:n,value:r};return i!==void 0&&(a.nativeWitness=i),pn!==null&&Sn(e,t,a),ot(e).set(t,a),n!==void 0&&Es(t,n,a)&&(a.warmEpisode=Nt),r}function io(e,t,n){let[r,i]=Qa(`useMemo`,t,n),a=A,o=no(a,i,r);return o===null?ro(a,i,r,e.apply(null,r??[])):o.value}var ao=Object.is;function oo(e){return Array(e).fill(void 0)}function so(e,t,n){return pn!==null&&Cn(e,t,[!0,n]),e[t+1]=n,e[t]=!0,n}function co(e,t,n,r){return pn!==null&&Cn(e,t,[!0,r,n]),e[t+2]=n,e[t+1]=r,e[t]=!0,n}function lo(e,t,n,r,i){return pn!==null&&Cn(e,t,[!0,r,i,n]),e[t+3]=n,e[t+1]=r,e[t+2]=i,e[t]=!0,n}function uo(e,t,n,r,i,a){return pn!==null&&Cn(e,t,[!0,r,i,a,n]),e[t+4]=n,e[t+1]=r,e[t+2]=i,e[t+3]=a,e[t]=!0,n}function fo(e,t,n,r,i,a,o){return pn!==null&&Cn(e,t,[!0,r,i,a,o,n]),e[t+5]=n,e[t+1]=r,e[t+2]=i,e[t+3]=a,e[t+4]=o,e[t]=!0,n}function po(e,t,n){return pn!==null&&Cn(e,t,[n]),e[t]=n,n}function mo(e,t){t===void 0&&typeof e==`symbol`&&(t=e,e=void 0),t=Ba(t),t===void 0&&Ia(`useRef`);let n=A,r=n.hooks?.get(t);return r===void 0&&(r={current:e},ot(n).set(t,r)),r}var ho=new Map;function go(e){let t=ho.get(e);if(t===void 0){let n=za(`@octane:uses:`,e);t={inst:Symbol.for(n+`:uses:inst`),effect:Symbol.for(n+`:uses:effect`)},ho.set(e,t)}return t}function _o(e,t,n){e.pending=t,e.subscribe=n,!e.queued&&(e.queued=!0,(H===null?Lr:H.stores).push(e))}function vo(e,t){return ta(e)&&e.forceUpdate(),t(e.onStoreChange)}function yo(e,t,...n){let r=n[n.length-1];r=Ba(r),r===void 0&&Ia(`useSyncExternalStore`);let i=n.length>=2?n[0]:void 0,a=go(r),o=X()!==null&&i!==void 0?i():t(),s=A,c=s.hooks?.get(a.inst);if(c===void 0){let n=j,r={value:o,getSnapshot:t,pending:o,subscribe:e,forceUpdate:()=>U(n),onStoreChange:()=>{n.disposed||j===null&&n.pending&&n.pendingMode===`urgent`&&!n.pendingDeferred||ta(r)&&r.forceUpdate()},block:n,queued:!1};c=r,ot(s).set(a.inst,c),_o(c,o,e)}else c.getSnapshot=t,(!Object.is(o,c.value)||e!==c.subscribe)&&_o(c,o,e);return $a(vo,[c,e],a.effect),o}var bo=Symbol.for(`octane.context`),xo=0;function So(e){let t=function(e,n){return Co(t,e,n)};return t.$$kind=bo,t.defaultValue=e,t.$$version=0,t.Provider=t,t}function Co(e,t,n){let r=e,i=n;if(wo(i,r,t.value),t.children!=null){let e=typeof t.children==`function`?1:2,n=i.hooks?.get(jo);if(n!==e){if(n!==void 0&&(Mo(i),i.block.disposed))return;ot(i).set(jo,e)}ko(t.children)(void 0,i,void 0)}}function wo(e,t,n){e.$$ctxValues===null&&(e.$$ctxValues=new Map);let r=e.$$ctxValues,i=r.has(t),a=i?r.get(t):void 0;i&&Object.is(a,n)||(I!==null&&R(()=>{i?r.set(t,a):r.delete(t)}),i&&(t.$$version++,xo++),r.set(t,n))}var To=Symbol.for(`octane.childrenBlock`);function Eo(e){return e.$$singleRoot=!0,e}function Do(e){return typeof e==`function`&&(e[To]=!0),e}function Oo(e){return typeof e==`function`&&e[To]===!0}function ko(e){return typeof e==`function`?e:(t,n)=>{Q(n,0,n.block.parentNode,e,n.block.endMarker)}}function Ao(e){return sf.has(e)?(t,n,r)=>ko(e.children)(void 0,n,r):ko(e.children)}var jo=Symbol(`octane.childrenDialect`);function Mo(e){let t=e.block;Sa===0&&(Ca=yh(t.parentBlock)??Uo(t),wa=t),Sa++;try{Na(e,!0);let n=t.startMarker;Kh(n===null?t.parentNode.firstChild:n.nextSibling,t.endMarker),e.children=null,e.cleanups=null,e._slots=null,e.effectSlots=null,e.hooks=null,e.slots=[],e.refFields=null}finally{--Sa===0&&Da()}}`${n}`;function No(e,t){let n=e;for(;t>0;){for(;n.limit!==void 0&&n.next>=n.limit&&n.overflow!==void 0;)n=n.overflow;if(n.limit===void 0||n.overflow===void 0){n.next+=t;return}let e=n.limit-n.next,r=Math.min(t,e);n.next+=r,t-=r}}function Po(e,t=fe){for(let n=e.firstElementChild;n!==null;n=n.nextElementSibling)if(n.localName===`script`&&n.hasAttribute(t))return n;return null}var Fo=Pe(function(e,t){let n=t.block;Em(t,0,n.parentNode,Ao(e),null,(t,n)=>{Q(n,1,n.block.parentNode,e.fallback,n.block.endMarker)},n.endMarker)},1,`Suspense`),Io=Pe(function(e,t){let n=t.block,r=Em(t,0,n.parentNode,Ao(e),(t,n)=>{let r=typeof e.fallback==`function`?e.fallback(t.err,t.reset):e.fallback;Q(n,1,n.block.parentNode,r,n.block.endMarker)},null,n.endMarker,void 0,!0),i=t.slots[1];i!==e.resetRef&&(i?.current===r&&(i.current=null),t.slots[1]=e.resetRef),e.resetRef&&(e.resetRef.current=r)},1,`ErrorBoundary`);function Lo(e){return e&&e.$$kind===bo?$o(e):e==null||typeof e.then!=`function`?zo(e,`use`):ms(e)}var Ro=Symbol.for(`react.context`);function zo(e,t){if(typeof e==`object`&&e){let n=Ho(j)?.resolveForeignContext?.(e);if(n!=null)return $o(n);if(e.$$typeof===Ro)throw Error(O(18,t))}throw Error(O(12,t))}function Bo(e){return e&&e.$$kind===bo?$o(e):zo(e,`useContext`)}var Vo=Symbol(`octane.ctx.default`);function Ho(e){let t=e;for(;t!==null;){let e=Pt.get(t);if(e!==void 0&&e.active)return e;t=t.parentBlock}return null}function Uo(e){let t=Ho(e);return t===null?null:e=>{if(!t.routeError(e))throw e}}function Wo(e){let t=Ho(e);return t===null?null:e=>{if(!t.routeSuspense(e))throw new es(e)}}var Go=Symbol.for(`octane.host-context-request`);function Ko(e){return typeof e==`object`&&!!e&&e.$$kind===Go}function qo(e,t){if(!(e===null||!e.memoInChain)){(e.$$ctxDirect??=new Map).set(t,t.$$version);for(let n=e;n!==null;n=n.parentBlock)(n.body?.__memo===!0||n.$$implicitBail===!0)&&(n.$$ctxReads??=new Map).set(t,t.$$version)}}var Jo=!1,Yo=null;function Xo(e){if(e===null)return!1;for(let[t,n]of e)if(t.$$version!==n)return!0;return!1}function Zo(e){let t=!1,n=null,r=null,i;return()=>{let a=A,o=n===a||n!==null&&a!==null&&a.block.parentBlock===n.block&&a.$$ctxValues===null;if(!t||Xo(r)||r!==null&&!o){let o=Jo,s=Yo;Jo=!0,Yo=null;let c;try{c=e()}finally{r=Yo,Jo=o,Yo=s}n=a,i=c,t=!0}else n!==a&&(n=a);return i}}function Qo(e,t,n){if(Jo&&(Yo??=new Map).set(n,n.$$version),e!==null&&e.$$ctxCache!==null){let r=e.$$ctxCache.get(n);if(r!==void 0){if(r===Vo){let e=Ho(t);return e===null?n.defaultValue:e.readContext(n)}return r.$$ctxValues.get(n)}}let r=e;for(;r!==null;){let t=r.$$ctxValues;if(t!==null&&t.has(n))return e!==null&&(e.$$ctxCache??=new Map).set(n,r),t.get(n);r=r.parent}let i=t?.parentBlock??null;for(;i!==null;){let t=i.$$ctxValues;if(t!==null&&t.has(n))return e!==null&&(e.$$ctxCache??=new Map).set(n,i),t.get(n);i=i.parentBlock}let a=Ho(t);return a===null?(e!==null&&(e.$$ctxCache??=new Map).set(n,Vo),n.defaultValue):a.readContext(n)}function $o(e){return qo(j,e),Qo(A,j,e)}var es=class{constructor(e){this.thenable=e}thenable;__isSuspense=!0};function ts(e){return typeof e==`object`&&!!e&&e.__isSuspense===!0}var ns=Symbol(`octane.hydration.rejection-seed`),rs=Symbol(`octane.hydration.rejection-exception`),is=Symbol(`octane.hydration.site-events`),as=Symbol(`octane.hydration.seed-factory`),os=class{constructor(e){this.reason=e}reason;[rs]=!0};function ss(e){if(typeof e!=`object`||!e)return Error(O(23));switch(e.kind){case`value`:return e.value;case`number`:switch(e.value){case`NaN`:return NaN;case`Infinity`:return 1/0;case`-Infinity`:return-1/0;case`-0`:return-0;default:return Error(O(23))}case`bigint`:try{return BigInt(e.value)}catch{return String(e.value)}case`symbol`:return Symbol(typeof e.value==`string`?e.value:``);case`error`:{let t=Error(typeof e.message==`string`?e.message:O(23));typeof e.name==`string`&&(t.name=e.name);let n=e.fields;if(typeof n==`object`&&n)for(let e of Object.keys(n))Object.defineProperty(t,e,{value:n[e],writable:!0,enumerable:!0,configurable:!0});return t}case`fallback`:return typeof e.message==`string`?e.message:O(23);default:return Error(O(23))}}function cs(e){return typeof e!=`object`||!e||!Se.call(e,ns)?null:new os(e[ns])}function ls(e){return typeof e==`object`&&!!e&&e[rs]===!0}function us(e){e.then(()=>void 0,()=>void 0)}function ds(e){try{return e[ue]===!0}catch{return!1}}function fs(e){if(e.failed===!0)throw e.error;if(e.factory!==null){let t=e.factory;e.factory=null;try{e.value=t()}catch(t){throw e.failed=!0,e.error=t,t}}return e.value}function ps(e){try{return e[as]}catch{return}}function ms(e,t=!1){let n=j,r=n.__thenables??=[],i=n.__thenableIdx;n.__thenableIdx=i+1;let a=X();if(!ds(e)&&a!==null&&a.seeds!==null&&a.seedCursor<a.seeds.length)return a.useSeed(e,r,i,t);let o=r[i];if(o===e){if(e.status===`fulfilled`)return e.value;throw e.status===`rejected`?e.reason:new es(e)}if(o!==void 0&&J&&!t){if(o.status===`fulfilled`)return o.value;throw o.status===`rejected`?o.reason:new es(o)}if(r[i]=e,hs(e),e.status===`fulfilled`)return e.value;throw e.status===`rejected`?e.reason:new es(e)}function hs(e){e.status===void 0&&(e.status=`pending`,e.then(t=>{e.status=`fulfilled`,e.value=t},t=>{e.status=`rejected`,e.reason=t}))}var J=!1;function gs(e,t){if(e.length===0){t!==void 0&&jt.push({block:j,fn:t});return}let n=X();if(n!==null&&n.seeds!==null)return;let r=null;for(let t=0;t<e.length;t++){let n=e[t];if(n!=null&&typeof n.then==`function`){if(hs(n),n.status===`rejected`)break;n.status===`pending`&&(r??=[]).push(n)}}if(r===null)return;if(js(t),r.length===1)throw new es(r[0]);let i=r,a=i.length;throw new es(new Promise((e,t)=>{for(let n=0;n<i.length;n++)i[n].then(()=>{--a===0&&e()},t)}))}var _s=null,vs=null,ys=!1,bs=0,xs=64,Ss=Symbol(`octane.warm.miss`),Cs=null;function ws(e){for(let t=e;t!==null;t=t.parentBlock)if(t.__suspenseHandler)return null;return Gn(e)}function Ts(e){for(let t=e;t!==null;t=t.parentBlock){if(t.__warmCacheEpisode!==Nt)continue;let e=t.__warmCache;if(e!==void 0)return e}let t=ws(e),n=t===null?void 0:Cs?.get(t);return n===void 0&&(n=new Map,t!==null&&(Cs??=new WeakMap).set(t,n)),e.__warmCache=n,e.__warmCacheEpisode=Nt,n}function Es(e,t,n){let r=j;if(r===null)return!1;let i=null;for(let e=0;e<jt.length;e++){let t=jt[e];if(As(t.block,r)){i=t.block;break}}if(i===null)return!1;let a=Ts(i),o=a.get(e);o===void 0&&(o=[],a.set(e,o));let s={deps:t,value:void 0,available:!1,source:n};return o.push(s),n.warmRecord=s,ys=!0,!0}function Ds(e,t){`available`in e&&(e.source=t,e.value=void 0,t.warmRecord=e)}function Os(e){if(ys){if(e.hooks!==null)for(let t of e.hooks.values()){let e=t,n=e?.warmRecord;n!==void 0&&n.source===e&&(n.source=void 0,n.value=e.value,n.available=!0,e.nativeWitness!==void 0&&(n.nativeWitness=e.nativeWitness),e.warmRecord=void 0)}Fh(e,Os)}}function ks(e,t=j){let n=Ts(t);ys=!0;let r=_s,i=vs;_s=n,vs=new Set;try{e()}catch{}finally{_s=r,vs=i}}function As(e,t){for(let n=t;n!==null;n=n.parentBlock)if(n===e)return!0;return!1}function js(e){let t=j,n=null,r=t;for(let e=0;e<jt.length;e++){let i=jt[e];As(i.block,t)&&((n??=[]).push(i),n.length===1&&(r=i.block))}(n!==null||e!==void 0)&&ks(()=>{if(n!==null)for(let e=0;e<n.length;e++){vs=new Set;try{n[e].fn()}catch{}}if(e!==void 0){vs=new Set;try{e()}catch{}}},r)}function Ms(e,t){if(_s===null||e==null)return;let n=e.__warm;if(typeof n==`function`&&!(bs>=xs)){bs++;try{n(t)}catch{}finally{bs--}}}function Ns(e,t,n){let r=j;for(;r!==null;){let i=r.__warmCache;if(r.__warmCacheEpisode===Nt&&i!==void 0){let r=Ps(i,e,t,n);if(r!==Ss)return r}r=r.parentBlock}let i=j?.idState.renderOwner?.retryKey,a=i==null?void 0:Cs?.get(i);if(a!==void 0){let r=Ps(a,e,t,n);if(r!==Ss)return r}let o=j?.idState.renderOwner?.transition,s=(o?.warmHarvest!=null&&As(o.origin,j)?o.warmHarvest:null)??hn?.warmHarvest??_n;if(s!=null)for(let r=0;r<s.length;r++){let i=s[r];if(!i.taken&&i.slot===e&&!qa(i.deps,t)&&(n===void 0||n(i)))return i.taken=!0,i}return Ss}function Ps(e,t,n,r){let i=e.get(t);if(i!==void 0){for(let e of i)if(e.available&&!qa(e.deps,n)&&(r===void 0||r(e)))return e.available=!1,e}return Ss}function Fs(e,t){let n=Ba(e);return n===void 0&&Ia(t),n}function Is(e,t){let n=A,r=n.hooks?.get(e);if(r!==void 0){let n=r.deps;if(n!==void 0&&n.length===1&&Object.is(n[0],t))return eo(e,r)}return ys?to(n,e,[t]):null}function Ls(e,t,n,r){let i=A,a=i.hooks?.get(e);if(a!==void 0){let i=a.deps;if(i!==void 0&&i.length===3&&Object.is(i[0],t)&&Object.is(i[1],n)&&Object.is(i[2],r))return eo(e,a)}return ys?to(i,e,[t,n,r]):null}function Rs(e,t,n,r,i){let a=A,o=a.hooks?.get(e);if(o!==void 0){let a=o.deps;if(a!==void 0&&a.length===4&&Object.is(a[0],t)&&Object.is(a[1],n)&&Object.is(a[2],r)&&Object.is(a[3],i))return eo(e,o)}return ys?to(a,e,[t,n,r,i]):null}function zs(e,t,...n){return ro(A,e,n,t)}var Bs,Vs;function Hs(e){return Bs===void 0?e.firstChild:Bs.call(e)}function Y(e){return Vs===void 0?e.nextSibling:Vs.call(e)}function Us(e,t){t in e||(e[t]=void 0)}var Ws=!1;function Gs(){if(Ws||typeof Element>`u`)return;Ws=!0;let e=Node.prototype;Bs=Object.getOwnPropertyDescriptor(e,`firstChild`)?.get,Vs=Object.getOwnPropertyDescriptor(e,`nextSibling`)?.get;let t=Element.prototype;Object.isExtensible(t)&&(Us(t,`$$portalParent`),Us(t,`$$portalEnd`),Us(t,`$$deoptKey`),Us(t,`$$ctrl`),Us(t,`__oct_suppress`),Us(t,`__oct_frag`),Us(t,`__oct_vfrag`)),typeof CharacterData<`u`&&Object.isExtensible(CharacterData.prototype)&&(Us(CharacterData.prototype,`$$portalEnd`),Us(CharacterData.prototype,`$$deoptKey`))}var Ks=Symbol(`octane.lazy-template`);function qs(e,t,n){Gs();let r=document.createElement(`template`);if(t===0){r.innerHTML=n?`<octane-frag>${e}</octane-frag>`:e;let t=r.content.firstChild;return t.nodeType===1&&t.localName===`octane-frag`&&(t.__oct_frag=!0),t}let i=t===1?`svg`:`math`;r.innerHTML=`<${i}>${e}</${i}>`;let a=r.content.firstChild;return n?(a.__oct_frag=!0,a):a.firstChild}function Js(e,t=0,n=0){return{[Ks]:{html:e,ns:t===1?1:t===2?2:t===3?3:0,frag:n,parsed:[],root:0}}}function Ys(e){if(e.charCodeAt(0)!==60)return 3;let t=e.charCodeAt(1);if(!(t>=97&&t<=122||t>=65&&t<=90))return 8;let n=2;for(;n<e.length;n++){let t=e.charCodeAt(n);if(t===62||t===47||t<=32)break}return e.slice(1,n)}function Xs(e){let t=e.root;return t===0?e.root=Ys(e.html):t}function Zs(e){return e.frag!==0||Xs(e)===`octane-frag`}function Qs(e,t){let n=Xs(t);return typeof n==`number`?e.nodeType===n:e.nodeType===1&&e.localName===n}function $s(e){let t;if(e.ns===3){let e=A===null?void 0:Ll(A.block.parentNode);t=e===Ml?1:e===Nl?2:0}else t=e.ns;let n=e.parsed[t];return n===void 0&&(n=qs(e.html,t,e.frag),e.parsed[t]=n),n}var ec=null;function X(){let e=ec;return e!==null&&e.isActive()?e:null}function tc(e){return e.nodeType===1&&e.localName===`style`&&e.hasAttribute(`data-octane`)}var nc=class{constructor(e,t,n){this.rootBlock=e,this.node=t,this.seeds=n}rootBlock;node;seeds;depth=0;seedCursor=0;hasAdjacentRangePair=!1;abandoned=!1;freshNodes=new WeakSet;unframedRootRanges=new WeakMap;matchingCloses=null;rootRemainder;rootCleanupBoundary=null;deferredActivities=[];liteRanges=new WeakMap;classWrites=new Map;textWarnings=new Map;passthroughRanges=!1;nativeAdoption;isActive(){return this.depth===0&&!this.abandoned}owns(e){for(let t=e;t!==null;t=t.parentBlock)if(t===this.rootBlock)return!0;return!1}suspend(e){this.depth++;let t=We(null);try{return e()}finally{We(t),this.depth--}}isOpen(e){return Mc(e)}isClose(e){return Nc(e)}close(e){let t=this.matchingCloses?.get(e)??Fc(e,this.matchingCloses??=new WeakMap);return!this.hasAdjacentRangePair&&Mc(e.previousSibling)&&Nc(t.nextSibling)&&(this.hasAdjacentRangePair=!0),t}resolveOpen(e,t){if(Mc(e??null))return e;let n=this.node;return(n===null||n.parentNode!==t)&&(n=t.firstChild),n!==null&&Mc(n)?n:null}markerState(e){return Ic(e)}describe(e){return xt(e)}warnStructural(e,t,n){}recordTextMismatch(e,t,n){this.textWarnings.has(e)||this.textWarnings.set(e,{loc:t,server:n})}flushTextWarnings(){for(let[e,t]of this.textWarnings){if(!this.rootBlock.parentNode.contains(e))continue;let n=e.nodeValue;t.server!==n&&(t.loc,t.server)}this.textWarnings.clear()}removeRange(e,t){Ct(e,t)}parseSeeds(e){return ic(e)}isRejection(e){return ls(e)}rejectionFromSeed(e){return cs(e)}seedOrCreate(e,t){if(this.seeds===null)return t();let n=this.seeds[is];if(n===void 0)return t();let r=n.queues.get(e);if(r===void 0)return t();let i=n.offsets.get(e)??0;n.offsets.set(e,i+1);let a=r[i];if(a===void 0||a<this.seedCursor)return t();let o={index:a,factory:t},s={[as]:o,then(e,t){return s.status===`fulfilled`?Promise.resolve(s.value).then(e,t):s.status===`rejected`?Promise.reject(s.reason).then(e,t):Promise.resolve(fs(o)).then(e,t)}};return s}useSeed(e,t,n,r){let i=ps(e);if(i!==void 0&&i.index!==this.seedCursor){j.__thenableIdx=n;let e=fs(i);return r&&e!=null&&typeof e.then==`function`?ms(e,!0):Lo(e)}let a=this.seeds[this.seedCursor++];i===void 0?us(e):i.factory=null;let o=this.rejectionFromSeed(a);if(o!==null)throw e.status=`rejected`,e.reason=o.reason,t[n]=e,o;let s=a;return e.status=`fulfilled`,e.value=s,t[n]=e,s}markFresh(e){this.freshNodes.add(e);let t=e.firstChild;for(;t!==null;)this.markFresh(t),t=t.nextSibling}isFresh(e){return this.freshNodes.has(e)}protectRootAnchor(e){this.rootCleanupBoundary=e}wrapUnframedRoot(e){let t=e.parentNode,n=e.nextSibling,r=document.createComment(``),i=document.createComment(``);return t.insertBefore(r,e),t.insertBefore(i,n),this.unframedRootRanges.set(r,i),this.protectRootAnchor(i),this.claimRootRemainder(n),[r,i]}isUnframedRootRange(e,t){return this.unframedRootRanges.get(e)===t}claimRootRemainder(e){this.rootRemainder===void 0&&(this.rootRemainder=e)}freshClone(e){let t=e.cloneNode(!0);return this.markFresh(t),t}fragmentRemainder(e,t,n){let r=e.firstChild,i=t,a=0;for(;r!==null;){if(i===null||r.nodeType!==8&&!St(i,r,n,String(a)))return;i=this.sibling(i,1),r=r.nextSibling,a++}return i}framedRootRemainder(e){let t=this.rootBlock.parentNode,n=null,r=0;for(let i=t.firstChild;i!==null&&i!==e;i=i.nextSibling)this.isOpen(i)?(r===0&&(n=i),r++):this.isClose(i)&&r>0&&(r--,r===0&&(n=null));return n===null?void 0:this.close(n).nextSibling}abandonRoot(e,t,n){Cg(()=>Error(O(52)));let r=this.node;for(;r!==null;){let e=r.nextSibling;tc(r)||r.remove(),r=e}this.node=null,this.abandoned=!0}clone(e,t,n){return this.adopt(e,null,t,n)}cloneLazy(e,t){return this.adopt(null,e,t)}adopt(e,t,n,r){let i=this.node,a=e===null?Zs(t):e.__oct_frag===!0,o=this.rootRemainder===void 0&&(i===null?j===this.rootBlock:i.parentNode===this.rootBlock.parentNode),s=o&&i!==null?this.framedRootRemainder(i):void 0,c=o&&i!==null?i.nextSibling:void 0;if(a&&o){e===null&&(e=$s(t));let n=this.fragmentRemainder(e,i,r);if(n===void 0)return this.abandonRoot(`a fragment starting with ${xt(e.firstChild)}`,xt(i),vt(this.rootBlock.body)),this.freshClone(e);this.claimRootRemainder(s===void 0?n:s)}if(i===null)return o&&this.claimRootRemainder(null),e===null&&(e=$s(t)),this.freshClone(e);if(!a&&(e===null?!Qs(i,t):!St(i,e,r))){if(Cg(()=>Error(O(51))),e===null&&(e=$s(t)),Nc(i))return this.freshClone(e);if(Mc(i)){let e=this.close(i);this.node=e.nextSibling,Ct(i,e)}else this.node=i.nextSibling,i.remove();return o&&this.claimRootRemainder(s===void 0?c??null:s),this.freshClone(e)}return a?{__oct_vfrag:!0,firstChild:i}:(o&&this.claimRootRemainder(s===void 0?c??null:s),i)}finishRoot(){if(this.abandoned)return;let e=this.rootRemainder===void 0?this.node:this.rootRemainder;for(;e!==null&&(e===this.rootCleanupBoundary||this.freshNodes.has(e)||tc(e));)e=e.nextSibling;if(e!==null){for(Cg(()=>Error(O(53)),this.rootBlock),vt(this.rootBlock.body),xt(e);e!==null&&e!==this.rootCleanupBoundary;){let t=e.nextSibling;!this.freshNodes.has(e)&&!tc(e)&&e.remove(),e=t}this.node=null,this.rootRemainder=null}}htext(e,t,n){let r=Hs(e);if(r!==null&&r.nodeType===3){let n=r.nodeValue;return n!==t&&!Dc(n,t)&&!yt(e)&&(r.nodeValue=t),r}if(this.isOpen(r)){let i=r.nextSibling,a=i?.nextSibling??null;if(i?.nodeType===3&&this.isClose(a)&&a.nextSibling===null)return r.remove(),a.remove(),this.htext(e,t,n)}let i=document.createTextNode(t);return e.appendChild(i),i}htextSwap(e,t){if(e!==null&&e.nodeType===3){let n=e.nodeValue;if(n!==t&&!Dc(n,t)){let n=e.parentNode;yt(n)||(e.nodeValue=t)}return e}let n=yt(e?.parentNode??null);t!==``&&!n&&Cg(()=>Error(O(54)));let r=document.createTextNode(n?``:t);return e!==null&&e.parentNode!==null&&e.parentNode.insertBefore(r,e),r}sibling(e,t){let n=e;for(let e=0;e<t;e++){if(n===null)return null;if(Mc(n)&&(n=this.close(n)),Pc(n)){n=Y(n);continue}if(n=Y(n),Pc(n)){let e=Y(n);e!==null&&(e.nodeType===3||Pc(e))&&(n=e)}}return n}allowAttribute(e,t,n){let r=Rl(t),i=r?e.getAttributeNS(r,t.indexOf(`:`)>=0?t.slice(t.indexOf(`:`)+1):t):e.getAttribute(t);if(i===n||n!==null&&Oc(i,n))return!1;let a=bt(e);return a===0||a!==1}allowClass(e,t,n=!1){let r=bt(e);if(r===0)return!0;let i=e.getAttribute(`class`);return(n&&i===null?``:i)===t||r!==1}queueClass(e,t,n,r,i){this.classWrites.set(e,{next:t,absentIsEmpty:n,useAttribute:r,remove:i})}flushClassWrites(){try{for(let[e,t]of this.classWrites){let n=t.remove?null:t.next;e.getAttribute(`class`)!==n&&this.allowClass(e,t.next,t.absentIsEmpty)&&(t.remove?e.removeAttribute(`class`):t.useAttribute?e.setAttribute(`class`,t.next):e.className=t.next)}}finally{this.classWrites.clear()}}applyStyle(e,t,n,r){if(bt(e)===1)return!0;let i=e.style,a=e.hasAttribute(`style`),o=i.cssText,s=document.createElement(`div`).style;r!==void 0&&(s.cssText=r),Jl(e,s,t,void 0);let c=s.cssText,l=c!==``;return o===c&&a===l||(l?i.cssText=c:e.removeAttribute(`style`)),!0}coalesce(){fg(this.rootBlock,this.liteRanges)}};function rc(e){let t=ce+`u`,n=ce+`s`;if(typeof e==`string`)return e===t?void 0:e.startsWith(n)?e.slice(n.length):e;if(Array.isArray(e)){for(let t=0;t<e.length;t++)e[t]=rc(e[t]);return e}if(typeof e==`object`&&e)for(let t of Object.keys(e))e[t]=rc(e[t]);return e}function ic(e){try{let t=rc(JSON.parse(e));if(Array.isArray(t))return t;if(typeof t!=`object`||!t)return null;let n=t[le];if(typeof n!=`object`||!n||n.version!==1||!Array.isArray(n.values)||!Array.isArray(n.rejections))return null;let r=n.values.slice(),i=new Set;for(let e of n.rejections){if(!Array.isArray(e)||e.length!==2||!Number.isInteger(e[0])||e[0]<0||e[0]>=r.length||i.has(e[0])||e[1]===null||typeof e[1]!=`object`)return null;i.add(e[0]),r[e[0]]={[ns]:ss(e[1])}}if(n.sites!==void 0){if(!Array.isArray(n.sites))return null;let e=new Map,t=new Set,i=-1;for(let a of n.sites){if(!Array.isArray(a)||a.length!==2||typeof a[0]!=`string`||a[0]===``||!Number.isInteger(a[1])||a[1]<-1||a[1]>=r.length)return null;let n=a[1];if(n>=0){if(n<=i||t.has(n))return null;i=n,t.add(n)}let o=e.get(a[0]);o===void 0?e.set(a[0],[n]):o.push(n)}if(t.size===0)return null;r[is]={queues:e,offsets:new Map}}return r}catch{return null}}var ac=null;function oc(e,t,n){if(ac!==null&&ac.node!==null){let t=ac.node;ac.node=null;let n=e.nodeType===void 0?e[Ks]:void 0,r=n===void 0?e:$s(n);if(t.localName===r.localName&&t.namespaceURI===r.namespaceURI){for(let e=t.firstChild;e!==null;e=e.nextSibling)$(e,null);t.replaceChildren();for(let e=r.firstChild;e!==null;e=e.nextSibling)t.appendChild(e.cloneNode(!0));return t}let i=r.cloneNode(!0),a=A.block;return $(t,null),t.parentNode.replaceChild(i,t),a.startMarker===t&&(a.startMarker=i),a.endMarker===t&&(a.endMarker=i),a.deoptNode=null,i}let r=e.nodeType===void 0?e[Ks]:void 0;if(r!==void 0){let e=X();if(e!==null)return e.cloneLazy(r,t);let i=$s(r);return e===null?i.cloneNode(!0):e.clone(i,t,n)}let i=X();return i===null?e.cloneNode(!0):i.clone(e,t,n)}function sc(e,t,n){if(X()!==null&&e.__oct_vfrag===!0)return;let r;for(;(r=Hs(e))!==null;)t.insertBefore(r,n)}function Z(e,t,n){if(t!==null){let n=e.block,r=X();(r===null||r.isFresh(t)||t.parentNode!==n.parentNode)&&n.parentNode.insertBefore(t,n.endMarker)}return e.slots[0]=n,n}function cc(e,t){return Z(e,t,{})}function lc(e,t,n){return Z(e,t,{a:n})}function uc(e,t,n,r){return Z(e,t,{a:n,b:r})}function dc(e,t,n,r,i){return Z(e,t,{a:n,b:r,c:i})}function fc(e,t,n,r,i,a){return Z(e,t,{a:n,b:r,c:i,d:a})}function pc(e,t,n,r,i,a,o){return Z(e,t,{a:n,b:r,c:i,d:a,e:o})}function mc(e,t,n,r,i,a,o,s){return Z(e,t,{a:n,b:r,c:i,d:a,e:o,f:s})}function hc(e,t,n,r,i,a,o,s,c){return Z(e,t,{a:n,b:r,c:i,d:a,e:o,f:s,g:c})}function gc(e,t,n,r,i,a,o,s,c,l){return Z(e,t,{a:n,b:r,c:i,d:a,e:o,f:s,g:c,h:l})}function _c(e,t,n,r,i,a,o,s,c,l,u){return Z(e,t,{a:n,b:r,c:i,d:a,e:o,f:s,g:c,h:l,i:u})}function vc(e,t,n,r,i,a,o,s,c,l,u,d){return Z(e,t,{a:n,b:r,c:i,d:a,e:o,f:s,g:c,h:l,i:u,j:d})}function yc(e,t,n,r,i,a,o,s,c,l,u,d,f){return Z(e,t,{a:n,b:r,c:i,d:a,e:o,f:s,g:c,h:l,i:u,j:d,k:f})}function bc(e,t,n,r,i,a,o,s,c,l,u,d,f,p){return Z(e,t,{a:n,b:r,c:i,d:a,e:o,f:s,g:c,h:l,i:u,j:d,k:f,l:p})}function xc(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m){return Z(e,t,{a:n,b:r,c:i,d:a,e:o,f:s,g:c,h:l,i:u,j:d,k:f,l:p,m})}function Sc(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h){return Z(e,t,{a:n,b:r,c:i,d:a,e:o,f:s,g:c,h:l,i:u,j:d,k:f,l:p,m,n:h})}function Cc(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_){return Z(e,t,{a:n,b:r,c:i,d:a,e:o,f:s,g:c,h:l,i:u,j:d,k:f,l:p,m,n:h,o:g,p:_})}function wc(e,t,n){return Z(e,t,n)}function Tc(e){return e==null||e===!1?``:typeof e==`string`?e:String(e)}function Ec(e){return e.replace(/\r\n?/g,`
3
- `).replace(/[\u0000\uFFFD]/g,``)}function Dc(e,t){return e!==null&&Ec(e)===Ec(t)}function Oc(e,t){return e!==null&&Ec(e)===Ec(t)}function kc(e,t){let n=Tc(t),r=X();if(r!==null)return r.htext(e,n);let i=document.createTextNode(n);return e.appendChild(i),i}function Ac(e,t){let n=Tc(t),r=X();if(r!==null)return r.htextSwap(e,n);let i=document.createTextNode(n),a=e.parentNode;return a.insertBefore(i,e),a.removeChild(e),i}function jc(e,t){let n=t?`[`:`]`;if(e===n||t&&(e===`[f0`||e===`[f1`))return 1;if(e.length<2||e.charCodeAt(0)!==n.charCodeAt(0))return 0;let r=e.charCodeAt(1);if(r<49||r>57)return 0;let i=r-48;for(let t=2;t<e.length;t++){let n=e.charCodeAt(t)-48;if(n<0||n>9||(i=i*10+n,!Number.isSafeInteger(i)))return 0}return i>=2?i:0}function Mc(e){if(e===null||e.nodeType!==8)return!1;let t=e.data;return jc(t,!0)>0}function Nc(e){if(e===null||e.nodeType!==8)return!1;let t=e.data;return t===`]`||jc(t,!1)>1}function Pc(e){return e!==null&&e.nodeType===8&&e.data===` `}function Fc(e,t){let n=null,r=Y(e);for(;;){if(r.nodeType===8){let i=r.data,a=i===`]`,o=i===`[`;if(!a&&!o&&i.length>1){let e=i.charCodeAt(0);e===93?a=jc(i,!1)>0:e===91&&(o=jc(i,!0)>0)}if(a){let i=r;if(n===null||n.length===0)return t.set(e,i),i;t.set(n.pop(),i)}else o&&(n??=[]).push(r)}r=Y(r)}}function Ic(e){if(e.nodeType!==8)return-1;let t=e.data;return t===`[f0`?0:t===`[f1`?1:-1}function Lc(e){return ec===null?Hs(e):e.firstChild}function Rc(e,t=1){let n=X();if(n!==null)return n.sibling(e,t);let r=e;for(let e=0;e<t;e++){if(r===null)return null;r=Y(r)}return r}var zc=null,Bc=null;function Vc(e,t){zc!==null&&zc(e,t)||e.nodeValue!==t&&(F!==null&&Sr(e),e.nodeValue=t)}function Hc(e,t){kr?.markDirty(),F!==null&&Sr(e);let n=Tc(t);zc!==null&&zc(e,n)||(e.nodeValue=n)}function Uc(e,t,n,r){return t===e?t:(zl(n,r,e),e)}function Wc(e,t,n,r){return t===e?t:(Bl(n,r,e),e)}function Gc(e,t,n,r){return t===e?t:(Vl(n,r,e),e)}function Kc(e,t,n){return t===e?t:(Ul(n,e),e)}function qc(e,t){let n=t==null?``:String(t),r=e.firstChild;r!==null&&r===e.lastChild&&r.nodeType===3?Vc(r,n):(I!==null&&(sr(),Yn(e,null,null)),e.textContent=n)}var Jc=/(<\/|<)(s)(cript)/gi;function Yc(e){return e.replace(Jc,(e,t,n,r)=>`${t}${n===`s`?`\\u0073`:`\\u0053`}${r}`)}var Xc=/\r\n?|\u0000/g;function Zc(e){return e.replace(Xc,e=>e===`\0`?`�`:`
4
- `)}function Qc(e,t){let n=e.ownerDocument,r=e.namespaceURI,i=r===`http://www.w3.org/2000/svg`||r===`http://www.w3.org/1998/Math/MathML`?n.createElementNS(r,e.tagName):n.createElement(e.tagName);return i.innerHTML=t,i.innerHTML}function $c(e,t){let n=t==null?``:String(t),r=X();if(r!==null&&!r.isFresh(e)){if((e.localName===`script`?e.textContent??``:e.innerHTML)===(e.localName===`script`?Zc(Yc(n)):Qc(e,n))||yt(e))return;e.__oct_loc;return}if(e.localName===`script`)qc(e,n);else if(I!==null&&!L){sr(),Yn(e,null,null),er(e,e.firstChild,e.lastChild);let t=e.cloneNode(!1);for(t.innerHTML=n;t.firstChild!==null;)e.appendChild(t.firstChild)}else e.innerHTML=n}var el=`__oct_dangerHTML`,tl=!1,nl=`__oct_dangerChild`,rl=`__oct_dangerSpreadChild`,il=`__oct_dangerResolved`,al=`__oct_dangerResolvedChild`;function ol(){return Error(O(5))}function sl(e){if(e!=null&&(typeof e!=`object`||!(`__html`in e)))throw Error(O(6))}function cl(e,t){sl(t),z(e,el);let n=e[el]===!0;if(t==null){e[el]=!1,n&&$c(e,null);return}if(t!=null&&me.has(e.localName))throw Error(O(7,e.localName));if(t!=null&&(e[nl]===!0||e[rl]!=null))throw ol();e[el]=!0,tl=!0,$c(e,t.__html)}function ll(e,t,n=!1){let r=!1,i=null,a=!1,o=null;for(let e of t){let[t,s]=e;if(!t){e.length===2?(r=!0,i=s):s===`dangerouslySetInnerHTML`?(r=!0,i=e[2]):!n&&s===`children`&&(a=!0,o=e[2]);continue}if(!(s==null||typeof s!=`object`&&typeof s!=`function`))for(let e of Object.keys(Object(s)))e===`dangerouslySetInnerHTML`?(r=!0,i=s[e]):!n&&e===`children`&&(a=!0,o=s[e])}let s=r&&i!=null?i:null,c=a?o:null;if(me.has(e.localName)&&(s!==null||c!=null))throw Error(O(8,e.localName));if(s!==null&&c!=null)throw ol();sl(s),!(Se.call(e,il)&&Object.is(e[il],s)&&Object.is(e[al],c))&&(z(e,rl),z(e,il),z(e,al),e[rl]=c,cl(e,s),e[il]=s,e[al]=c)}function ul(e,t){if(!tl||e.nodeType!==1||e[el]!==!0)return!1;if(t!=null)throw ol();return!0}var dl=new WeakMap,fl=new WeakMap,pl=null,ml=null,hl=null;function gl(e,t,n){if(e==null)return;let r=t??n,i=r==null?void 0:pl?.get(r);if(i!==void 0){if(t!==null)i.hidden=!1,i.connected=e;else if(n!=null){if(i.hidden&&i.connected!==e)return;i.connected===e&&(i.connected=null)}}_l(e,t,n)}function _l(e,t,n){if(e!=null){if(typeof e==`function`){if(t===null){let t=dl.get(e),r=n??fl.get(e),i=t!==void 0&&r!=null?t.get(r):void 0;i===void 0?e(null):(t.delete(r),fl.get(e)===r&&fl.delete(e),i())}else{let n=e(t);if(typeof n==`function`){let r=dl.get(e);r===void 0&&dl.set(e,r=new WeakMap),r.set(t,n),fl.set(e,t)}}return}if(Array.isArray(e)){for(let r=0;r<e.length;r++)_l(e[r],t,n);return}e.current=t}}var vl=Symbol.for(`octane.Fragment`),yl=null,bl=class{_ownerBlock;_startMarker;_endMarker;_destroyed;_children;_pendingChildren;_portalAnchors;_listeners;_observers;_currentRef;constructor(e,t,n){this._ownerBlock=e,this._startMarker=t,this._endMarker=n,this._destroyed=!1,this._children=new Set,this._pendingChildren=new Set,this._portalAnchors=null,this._listeners=null,this._observers=null,this._currentRef=null;for(let e of Sl(this))this._children.add(e),this._attachChild(e);Wr.add(this)}_destroy(){this._destroyed=!0,Wr.delete(this);for(let e of this._children)this._detachChild(e);this._children.clear(),this._pendingChildren.clear(),this._portalAnchors?.clear(),this._portalAnchors=null,this._listeners=null,this._observers=null}_registerPortal(e,t){if(this._destroyed)return;let n=this._portalAnchors??=new Map,r=n.get(t);r===void 0&&n.set(t,r=new Set),r.add(e)}_unregisterPortal(e,t){let n=this._portalAnchors,r=n?.get(t);if(r===void 0||!r.delete(e))return;r.size===0&&n.delete(t),n.size===0&&(this._portalAnchors=null);let i=e.start?.nextSibling??null;for(;i!==null&&i!==e.end;){let e=i.nextSibling;(i.nodeType===1||i.nodeType===3)&&this._children.delete(i)&&this._detachChild(i),i=e}}_attachChild(e){if(this._listeners!==null)for(let t of this._listeners)e.addEventListener(t.type,t.listener,t.options);if(e.nodeType===1&&this._observers!==null)for(let t of this._observers)t.observe(e);let t=e;(t.reactFragments??=new Set).add(this)}_detachChild(e){if(this._listeners!==null)for(let t of this._listeners)e.removeEventListener(t.type,t.listener,t.options);e.reactFragments?.delete(this)}_reapply(){if(this._destroyed)return;let e=this._children,t=this._pendingChildren;for(let n of Sl(this))t.add(n),e.has(n)||this._attachChild(n);for(let n of e)t.has(n)||this._detachChild(n);e.clear(),this._children=t,this._pendingChildren=e}focus(e){if(!this._destroyed){for(let t of wl(this))if(Tl(t,e))return}}focusLast(e){if(this._destroyed)return;let t=Array.from(wl(this));for(let n=t.length-1;n>=0;n--)if(Tl(t[n],e))return}blur(){if(this._destroyed)return;let e=this._startMarker.ownerDocument||document,t=e.activeElement;if(!(!t||t===e.body)){for(let e of Cl(this))if(e===t||e.contains(t)){t.blur();return}}}addEventListener(e,t,n){if(this._destroyed)return;let r=xl(n);this._listeners||=[];for(let n of this._listeners)if(n.type===e&&n.listener===t&&xl(n.options)===r)return;this._listeners.push({type:e,listener:t,options:n});for(let r of Sl(this))r.addEventListener(e,t,n)}removeEventListener(e,t,n){if(this._destroyed||!this._listeners)return;let r=xl(n);for(let n=this._listeners.length-1;n>=0;n--){let i=this._listeners[n];if(i.type===e&&i.listener===t&&xl(i.options)===r){for(let n of Sl(this))n.removeEventListener(e,t,i.options);this._listeners.splice(n,1);return}}}observeUsing(e){if(!this._destroyed){this._observers||=new Set,this._observers.add(e);for(let t of Cl(this))e.observe(t)}}unobserveUsing(e){if(!this._destroyed&&!(this._observers===null||!this._observers.has(e))){this._observers.delete(e);for(let t of Cl(this))e.unobserve(t)}}getClientRects(){let e=[];if(this._destroyed)return e;for(let t of Sl(this))if(t.nodeType===3){let n=t.ownerDocument.createRange();if(n.selectNodeContents(t),typeof n.getClientRects!=`function`)continue;let r=n.getClientRects();for(let t=0;t<r.length;t++)e.push(r[t])}else{let n=t.getClientRects();for(let t=0;t<n.length;t++)e.push(n[t])}return e}getRootNode(e){if(this._destroyed)return this;let t=this._startMarker.parentNode;return t===null?this:t.getRootNode(e)}compareDocumentPosition(e){if(this._destroyed)return Node.DOCUMENT_POSITION_DISCONNECTED;let t=this._startMarker.parentNode;if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;let n=null,r=null;for(let i of Sl(this))if(n??=i,r=i,i===e||i.nodeType===1&&i.contains(e))return t.contains(i)?Node.DOCUMENT_POSITION_CONTAINED_BY:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;if(n===null||r===null){let n=this._startMarker.$$portalParent??t,r=n.compareDocumentPosition(e);if(n===e)r=Node.DOCUMENT_POSITION_CONTAINS;else if((r&Node.DOCUMENT_POSITION_CONTAINED_BY)!==0){let t=El(this._endMarker,!0);r=t!==null&&(t===e||(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING)!==0)?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING}return r|Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}let i=n.compareDocumentPosition(e);if((i&Node.DOCUMENT_POSITION_DISCONNECTED)!==0)return i;let a=r.compareDocumentPosition(e);if(t.contains(n)&&t.contains(r)&&(i&Node.DOCUMENT_POSITION_FOLLOWING)!==0&&(a&Node.DOCUMENT_POSITION_PRECEDING)!==0)return Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;let o=this._startMarker,s=o.$$portalParent;if(s!==void 0&&s!==t&&s.contains(e)){let t=o.$$portalSourceAnchor;if(t===void 0)return Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;let n=Node.DOCUMENT_POSITION_PRECEDING|Node.DOCUMENT_POSITION_FOLLOWING,r=t.compareDocumentPosition(e)&n;if((i&n)!==r)return Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}return i}dispatchEvent(e){if(this._destroyed)return!0;let t=this._startMarker.parentNode;if(!t)return!0;let n=this._listeners;if(e.bubbles&&(n===null||n.length===0))return t.dispatchEvent(e);let r=(t.ownerDocument||document).createTextNode(``);if(n!==null)for(let e of n)r.addEventListener(e.type,e.listener,e.options);t.appendChild(r);try{return r.dispatchEvent(e)}finally{if(n!==null)for(let e of n)r.removeEventListener(e.type,e.listener,e.options);r.parentNode===t&&t.removeChild(r)}}scrollIntoView(e){if(typeof e==`object`)throw Error(O(49));if(this._destroyed)return;let t=e!==!1,n=Array.from(Sl(this));if(n.length===0){let n=El(this._endMarker,!0),r=El(this._startMarker,!1),i=t?n||r||this._startMarker.parentNode:r||n;if(i==null||i.nodeType===9)return;if(i.nodeType===11){let t=i.host;t&&t.scrollIntoView(e);return}i.nodeType===3?Dl(i,t):i.scrollIntoView(e);return}for(let r=t?n.length-1:0;t?r>=0:r<n.length;r+=t?-1:1){let i=n[r];i.nodeType===3?Dl(i,t):i.scrollIntoView(e)}}};function xl(e){return e==null?!1:typeof e==`boolean`?e:!!e.capture}function*Sl(e){let t=e._portalAnchors,n=e._startMarker.nextSibling;for(;n!==null;){let r=n.nextSibling,i=t===null?void 0:t.get(n);if(i!==void 0){if(i.size===0){let e=n.$$portalEnd;if(e!==void 0){n=cp(n,e);continue}}for(let e of i){if(e.block===null||Ym(e.block)!==null)continue;let t=e.start?.nextSibling??null;for(;t!==null&&t!==e.end;){let e=t.nextSibling;(t.nodeType===1||t.nodeType===3)&&cm(t)&&(yield t),t=e}}}if(n===e._endMarker)return;(n.nodeType===1||n.nodeType===3)&&cm(n)&&(yield n),n=r}}function*Cl(e){for(let t of Sl(e))t.nodeType===1&&(yield t)}function*wl(e){for(let t of Cl(e)){yield t;let e=(t.ownerDocument||document).createTreeWalker(t,1),n=e.nextNode();for(;n;)yield n,n=e.nextNode()}}function Tl(e,t){let n=e,r=n.ownerDocument;if(r.activeElement===n)return!0;let i=!1,a=()=>{i=!0};r.addEventListener(`focus`,a,!0);try{(n.focus||HTMLElement.prototype.focus).call(n,t)}finally{r.removeEventListener(`focus`,a,!0)}return i}function El(e,t){let n=t?e.nextSibling:e.previousSibling;for(;n!==null;){if(n.nodeType===1||n.nodeType===3)return n;n=t?n.nextSibling:n.previousSibling}return null}function Dl(e,t){let n=e.ownerDocument.createRange();if(n.selectNodeContents(e),typeof n.getBoundingClientRect!=`function`)return;let r=n.getBoundingClientRect(),i=e.ownerDocument.defaultView||window,a=t?i.scrollY+r.top:i.scrollY+r.bottom-i.innerHeight;i.scrollTo(i.scrollX+r.left,a)}function Ol(e,t,n,r){let i=new bl(e.block,t,n);return i._currentRef=r,wi(e,zr,i),(e.cleanups??=[]).push(()=>{Ti(i._currentRef,i),i._destroy()}),i}var kl=`http://www.w3.org/1999/xlink`,Al=`http://www.w3.org/XML/1998/namespace`,jl=`http://www.w3.org/2000/xmlns/`,Ml=`http://www.w3.org/2000/svg`,Nl=`http://www.w3.org/1998/Math/MathML`,Pl=`http://www.w3.org/1999/xhtml`;function Fl(e){return e.namespaceURI===Pl&&e.localName.indexOf(`-`)!==-1}function Il(e,t){return e===`svg`?Ml:e===`math`?Nl:t===void 0&&ve.has(e)?Ml:t}function Ll(e){if(e.nodeType!==1)return;let t=e;if(t.namespaceURI===Ml)return t.localName===`foreignObject`?void 0:Ml;if(t.namespaceURI===Nl)return Nl}function Rl(e){if(e===`xmlns`)return jl;let t=e.indexOf(`:`);if(t<=0)return null;let n=e.slice(0,t);return n===`xlink`?kl:n===`xml`?Al:n===`xmlns`?jl:null}function zl(e,t,n){if(t===`dangerouslySetInnerHTML`){cl(e,n);return}if(t===`suppressContentEditableWarning`||t===`suppressNativeChangeWarning`||t===`__octaneNativeChangeDiagnostic`)return;switch(t.length){case 5:if(t===`value`){let t=e.localName;if(t===`input`||t===`textarea`)return kd(e,n);if(t===`select`)return Pd(e,n)}else if(t===`muted`&&!Fl(e)){e.muted=n&&typeof n!=`function`&&typeof n!=`symbol`;return}break;case 7:if(t===`checked`&&e.localName===`input`)return Md(e,n);break;case 8:if((t===`multiple`||t===`selected`)&&!Fl(e)){e[t]=n&&typeof n!=`function`&&typeof n!=`symbol`;return}break;case 9:if(t===`autoFocus`&&!Fl(e))return xd(e,n);break;case 12:if(t===`defaultValue`){let t=e.localName;if(t===`input`||t===`textarea`||t===`select`)return Id(e,n)}break;case 14:if(t===`defaultChecked`&&e.localName===`input`)return Rd(e,n)}if(t.length>2&&t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&Fl(e)&&(typeof n==`function`||e.$$ceListeners?.[t]!==void 0)){let r=t.endsWith(`Capture`),i=r?t.slice(2,-7):t.slice(2),a=e.$$ceListeners??={},o=a[t];if(o!==void 0&&o!==n&&e.removeEventListener(i,o,r),typeof n==`function`){o!==n&&e.addEventListener(i,n,r),a[t]=n,e.removeAttribute(t);return}delete a[t]}if(!Fl(e)){let e=ye.get(t);e!==void 0&&(t=e)}let r=Hl(e,t,n);r!==null&&(r=Me(e.localName,t,r));let i=X();if(i!==null&&!i.allowAttribute(e,t,r))return;let a=Rl(t);if(F!==null&&Cr(e,t),r===null){if(a){let n=t.indexOf(`:`);e.removeAttributeNS(a,n>=0?t.slice(n+1):t)}else e.removeAttribute(t);return}_e.test(t)&&(a?e.setAttributeNS(a,t,r):e.setAttribute(t,r))}function Bl(e,t,n){let r=typeof n,i=!n||r===`function`||r===`symbol`?null:``,a=X();a!==null&&!a.allowAttribute(e,t,i)||(F!==null&&Cr(e,t),i===null?e.removeAttribute(t):e.setAttribute(t,i))}function Vl(e,t,n){let r=n==null?null:String(n),i=X();i!==null&&!i.allowAttribute(e,t,r)||(F!==null&&Cr(e,t),r===null?e.removeAttribute(t):e.setAttribute(t,r))}function Hl(e,t,n){if(t.charCodeAt(0)===97&&t.startsWith(`aria-`))return n==null?null:String(n);let r=typeof n;if(r===`boolean`&&be(t)||r===`boolean`&&t.startsWith(`data-`))return n?`true`:`false`;if(r===`function`||r===`symbol`)return null;if(!Fl(e)){let e=t.toLowerCase();if(he.has(e)||r===`boolean`&&(e===`download`||e===`capture`))return n?``:null;if(r===`boolean`||ge.has(e)&&!(Number(n)>=1)||t.length>2&&t.charCodeAt(0)===111&&t.charCodeAt(1)===110)return null}if(n==null||n===!1)return null;let i;return i=n===!0?``:String(n),i===``&&(t===`src`||t===`href`&&e.nodeName!==`A`&&e.nodeName!==`AREA`||t===`data`&&e.nodeName===`OBJECT`)?null:i}function Ul(e,t){let n=rt(t),r=X();if(r!==null){r.queueClass(e,n,!0,!1,t==null||t===!1);return}F!==null&&Cr(e,`class`),t==null||t===!1?e.removeAttribute(`class`):e.className=n}function Wl(e,t){let n=t==null||t===!1?null:rt(t),r=X();if(r!==null){r.queueClass(e,n,!1,!0,n===null);return}F!==null&&Cr(e,`class`),n===null?e.removeAttribute(`class`):e.setAttribute(`class`,n)}function Gl(e,t){e.namespaceURI===Ml?Wl(e,t):Ul(e,t)}var Kl=`!important`;function ql(e,t,n){let r=e.style,i=X();i!==null&&i.applyStyle(e,t,n)||(F!==null&&Cr(e,`style`),!(Bc!==null&&Bc(e,t,n))&&Jl(e,r,t,n))}function Jl(e,t,n,r){if(n==null||n===!1||n===``){r!=null&&r!==!1&&r!==``&&(t.cssText=``);return}if(typeof n==`string`){r!==n&&(t.cssText=n);return}if(r&&typeof r==`object`){for(let e in r)e in n||t.removeProperty(at(e));for(let i in n){let a=n[i];a!==r[i]&&(a==null||typeof a==`boolean`?t.removeProperty(at(i)):Yl(e,t,i,a))}}else{typeof r==`string`&&(t.cssText=``);for(let r in n){let i=n[r];i!=null&&typeof i!=`boolean`&&Yl(e,t,r,i)}}}function Yl(e,t,n,r){let i=at(n),a;a=xe(n,r);let o=a.trimEnd();o.endsWith(Kl)?t.setProperty(i,o.slice(0,o.length-10).trimEnd(),`important`):t.setProperty(i,a)}function Xl(e){let t=e.charCodeAt(2);return e.length>2&&e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&t>=65&&t<=90}var Zl=`$$capture:`;function Ql(e){return e===`DoubleClick`?`dblclick`:e.toLowerCase()}function $l(e){if(!Xl(e))return null;let t=e.slice(2),n=!1;t.length>7&&t.endsWith(`Capture`)&&e!==`onGotPointerCapture`&&e!==`onLostPointerCapture`&&(n=!0,t=t.slice(0,t.length-7));let r=Ql(t);return{type:r,key:n?Zl+r:`$$`+r,capture:n}}function eu(e,t,n){if(t===`class`||t===`className`)F!==null&&Cr(e,`class`),e.removeAttribute(`class`);else if(t===`style`)ql(e,null,n);else if(t===`dangerouslySetInnerHTML`)cl(e,null);else if(t===`suppressHydrationWarning`)e.__oct_suppress=!1;else if(t!==`suppressNativeChangeWarning`&&t!==`__octaneNativeChangeDiagnostic`){let r=nu(e,t);if(r!==null){cd(e,r,null,n);return}let i=$l(t);i?gu(e,i.key,null):zl(e,t,null)}}function tu(e){if(e==null)return null;let t=Object(e),n=Object.create(null);for(let e of Reflect.ownKeys(t)){if(!Object.prototype.propertyIsEnumerable.call(t,e))continue;let r=t[e];typeof e==`string`&&(n[e]=r)}return n}function nu(e,t){return e.localName===`form`&&t===`action`?`action`:(e.localName===`button`||e.localName===`input`)&&(t===`formAction`||t===`formaction`)?`formaction`:null}function ru(e){return e===`ref`||e===`children`||e===`dangerouslySetInnerHTML`||e===`suppressHydrationWarning`||e===`suppressContentEditableWarning`||e===`suppressNativeChangeWarning`||e===`__octaneNativeChangeDiagnostic`||e===`autoFocus`||e===`value`||e===`defaultValue`||e===`checked`||e===`defaultChecked`||e===`multiple`||Xl(e)}function iu(e,t){if(t===`class`||t===`className`)return[`class`,`class`];let n=nu(e,t);if(n!==null)return[n,n];if(ru(t))return[t,t];let r=t;return Fl(e)||(r=ye.get(r)??r),[e.namespaceURI===`http://www.w3.org/1999/xhtml`?r.toLowerCase():r,r]}function au(e,t,n,r,i=!1){let a=new Map,o=0,s=(e,t)=>{if(typeof e!=`string`)return;let n=o++,r=a.get(e);a.set(e,{rawName:e,value:t,firstOrder:r?.firstOrder??n,lastOrder:n})};for(let e of t){if(!e[0]){s(e[1],e[2]);continue}let t=e[1];if(!(t==null||typeof t!=`object`&&typeof t!=`function`))for(let e of Object.keys(Object(t)))s(e,t[e])}let c=new Map,l=!1;for(let t of a.values()){if(t.rawName===`key`)continue;let[n,r]=iu(e,t.rawName),i=c.get(n);if(i!==void 0){if(i[3]>=t.lastOrder)continue;l=!0}c.set(n,[r,t.value,t.firstOrder,t.lastOrder])}let u=Object.create(null),d=[...c.values()];l&&d.sort((e,t)=>e[2]-t[2]);for(let[e,t]of d)u[e]=t;let f=e.localName===`input`||e.localName===`textarea`||e.localName===`select`;return su(e,u,n,r,!0,f),ll(e,t,i),f&&zd(e,t),u}function ou(e,t){switch(e.localName){case`input`:return t===`value`||t===`defaultValue`||t===`checked`||t===`defaultChecked`;case`textarea`:return t===`value`||t===`defaultValue`;case`select`:return t===`value`||t===`defaultValue`||t===`multiple`}return!1}function su(e,t,n,r,i=!1,a=!1){if(t!=null&&Object.prototype.propertyIsEnumerable.call(Object(t),`suppressHydrationWarning`)&&(e.__oct_suppress=t.suppressHydrationWarning!==!1),!i){if(t!=null&&Object.prototype.propertyIsEnumerable.call(Object(t),`children`)){if(e[rl]=t.children,t.children!=null&&e[el]===!0)throw ol()}else n!=null&&Object.prototype.propertyIsEnumerable.call(Object(n),`children`)&&(e[rl]=void 0)}if(n){for(let r of Object.keys(Object(n)))if(r!==`key`&&r!==`children`&&!(i&&r===`dangerouslySetInnerHTML`)&&!(a&&ou(e,r))){if(r===`ref`){let r=t?t.ref:void 0;n.ref!=null&&n.ref!==r&&Ti(n.ref,e);continue}t!=null&&Object.prototype.propertyIsEnumerable.call(Object(t),r)||eu(e,r,n[r])}}if(t!=null)for(let o of Object.keys(Object(t))){if(o===`key`||o===`children`||i&&o===`dangerouslySetInnerHTML`||a&&ou(e,o))continue;let s=t[o],c=n?n[o]:void 0;if(o===`ref`){if(s===c)continue;r?wi(r,s,e):gl(s,e);continue}if(o===`suppressHydrationWarning`||o===`suppressNativeChangeWarning`||o===`__octaneNativeChangeDiagnostic`)continue;if(o===`class`||o===`className`){if(s===c)continue;Wl(e,s);continue}if(o===`style`){ql(e,s,c);continue}if(o===`dangerouslySetInnerHTML`){cl(e,s);continue}let l=nu(e,o);if(l!==null){if(s===c)continue;cd(e,l,s,c);continue}let u=$l(o);if(u){if(s===c)continue;u.capture?Cu.has(u.type)||ju([u.type]):xu.has(u.type)||Au([u.type]),gu(e,u.key,s);continue}s===c&&!Gd(e,o)||n!==void 0&&o===`autoFocus`&&!Fl(e)||zl(e,o,s)}}function cu(e,t){let n=e.handlers;if(n!==void 0)for(let[r,i]of n){if(t!==null&&r in t)continue;let a=$l(r);e.el.removeEventListener(a.type,i,a.capture),n.delete(r)}}function lu(e,t){let n=`/`+e;for(let r=document.head.firstChild;r!==null;r=r.nextSibling)if(r.nodeType===8&&r.data===e){let e=r.nextSibling,i=null,a=null,o=0;for(;e!==null;){if(e.nodeType===8){let t=e.data;if(t===n){a=e;break}if(t.startsWith(`rnh-`)||t.startsWith(`/rnh-`))break}e.nodeType===1&&e.localName===t&&o++===0&&(i=e),e=e.nextSibling}return r.remove(),a===null?null:(a.remove(),o===1?i:null)}return null}function uu(e){for(;e.parentBlock!==null;)e=e.parentBlock;return e.idState.prefix}function du(e,t,n,r,i,a){if(typeof document>`u`)return;let o=e.slots[t];if(o===void 0){let i=lu(we(n,uu(e.block)),r);i===null&&(i=document.createElement(r),document.head.appendChild(i)),o={el:i},e.slots[t]=o,(e.cleanups??=[]).push(()=>{cu(o,null),o.el.remove(),e.slots[t]=void 0})}let s=o.el;if(o.handlers!==void 0&&cu(o,i),i!==null)for(let e in i){let t=e.length>2&&e[0]===`o`&&e[1]===`n`?$l(e):null;if(t!==null){let n=i[e],r=o.handlers,a=r?.get(e);if(a===n)continue;a!==void 0&&s.removeEventListener(t.type,a,t.capture),typeof n==`function`?(s.addEventListener(t.type,n,t.capture),(r??(o.handlers=new Map)).set(e,n)):r?.delete(e);continue}zl(s,e,i[e])}if(a!=null){let e=String(a);s.textContent!==e&&(s.textContent=e)}}var fu=Symbol(),pu=1;function mu(e){return typeof e==`object`&&!!e&&e[fu]===pu}var hu=[];function gu(e,t,n){F!==null&&(F.push(Ln,e,t,e[t]),sr()),e[t]=n}function _u(e,t,n){let r={[fu]:pu,fn:n,args:hu};return gu(e,t,r),r}function vu(e,t){F!==null&&cr(e),e.fn=t}function yu(e,t,n,r){let i={[fu]:pu,fn:n,args:[r]};return gu(e,t,i),i}function bu(e,t,n){F!==null&&(cr(e),cr(e.args)),e.fn=t,e.args[0]=n}var xu=new Set,Su=new Map,Cu=new Set,wu=new Set([`focus`,`blur`,`invalid`,`pointerenter`,`pointerleave`,`mouseenter`,`mouseleave`,`scroll`,`scrollend`,...`abort.beforetoggle.cancel.canplay.canplaythrough.close.durationchange.emptied.encrypted.ended.error.load.loadeddata.loadedmetadata.loadstart.pause.play.playing.progress.ratechange.resize.seeked.seeking.stalled.suspend.timeupdate.toggle.volumechange.waiting`.split(`.`)]),Tu=e=>wu.has(e),Eu={passive:!1},Du={capture:!0,passive:!1};function Ou(e,t){return e===`touchstart`||e===`touchmove`?t?Du:Eu:t}var ku=new Set([`pointerenter`,`pointerleave`,`mouseenter`,`mouseleave`,`scroll`,`scrollend`]);function Au(e){let t=typeof Element<`u`&&Object.isExtensible(Element.prototype);for(let n=0;n<e.length;n++){let r=e[n];if(!xu.has(r)){xu.add(r),t&&Us(Element.prototype,`$$`+r);for(let e of Su.keys())e.addEventListener(r,qu,Ou(r,Tu(r)))}}}function ju(e){let t=typeof Element<`u`&&Object.isExtensible(Element.prototype);for(let n=0;n<e.length;n++){let r=e[n];if(!Cu.has(r)){Cu.add(r),t&&Us(Element.prototype,Zl+r);for(let e of Su.keys())e.addEventListener(r,Ju,Ou(r,!0))}}}function Mu(e){Gs();let t=Su.get(e)||0;if(Su.set(e,t+1),t===0){e.onclick==null&&e.nodeType===1&&(e.onclick=Yu);for(let t of xu)e.addEventListener(t,qu,Ou(t,Tu(t)));for(let t of Cu)e.addEventListener(t,Ju,Ou(t,!0))}}function Nu(e){let t=Su.get(e);if(t){if(t===1){Su.delete(e);for(let t of xu)e.removeEventListener(t,qu,Tu(t));for(let t of Cu)e.removeEventListener(t,Ju,!0)}else Su.set(e,t-1)}}var Pu=new Set(`auxclick.beforeblur.beforeinput.blur.cancel.change.click.close.compositionend.compositionstart.compositionupdate.contextmenu.copy.cut.dblclick.dragend.dragstart.drop.focus.focusin.focusout.fullscreenchange.gotpointercapture.hashchange.input.invalid.keydown.keypress.keyup.lostpointercapture.mousedown.mouseup.paste.pause.play.pointercancel.pointerdown.pointerup.popstate.ratechange.reset.resize.seeked.select.selectionchange.selectstart.submit.textInput.touchcancel.touchend.touchstart.volumechange`.split(`.`)),Fu=0,Iu=Symbol(`octane.capture.flushFallback`),Lu=Symbol(`octane.dispatched`),Ru=Symbol(`octane.dispatched.capture`),zu=Symbol(`octane.currentTarget`),Bu={configurable:!0,get(){return this[zu]}},Vu=[];function Hu(e,t){try{if(typeof e==`function`){e(t);return}if(mu(e)){let t=e,n=t.args;switch(n.length){case 0:t.fn();break;case 1:t.fn(n[0]);break;case 2:t.fn(n[0],n[1]);break;default:t.fn.apply(null,n)}return}Uu(`${t.type} event`,e,t)}catch(e){Wu(e)}}function Uu(e,t,n){if(t)throw Error(O(46,e,typeof t));t(n)}function Wu(e){if(typeof reportError==`function`){reportError(e);return}if(typeof window<`u`&&typeof ErrorEvent==`function`){let t=new ErrorEvent(`error`,{error:e,message:String(e?.message??e),cancelable:!0});window.dispatchEvent(t),t.defaultPrevented||console.error(e);return}console.error(e)}function Gu(e){Fu===0&&Pu.has(e)&&(Bi()&&(kr?.queueAllTransition()===!0?oi():Si(Yu)),pd.length>0&&Wd()),e===`click`&&(md=null)}function Ku(e){let t=e.type;if(!e.bubbles||e.cancelBubble||!xu.has(t)){e.bubbles&&xu.has(t)&&e[Lu]!==!0&&Kd(e),Gu(t);return}if(!Pu.has(t)||e[Iu]===!0)return;e[Iu]=!0;let n=()=>{e[Lu]!==!0&&(Kd(e),Gu(t))},r=e.target;t===`change`&&r?.localName===`input`&&(r.type===`checkbox`||r.type===`radio`)?setTimeout(n,0):queueMicrotask(n)}function qu(e){if(e[Lu]===!0)return;e[Lu]=!0,Kd(e);let t=`$$`+e.type,n=ku.has(e.type);Fu++;let r=e.target,i=nd,a=e.type===`submit`&&r!=null&&r.nodeName===`FORM`?{form:r,event:e,transitions:0,published:!1,intercepted:!1}:null;a!==null&&(nd=a);let o=Pu.has(e.type);o&&Zt++;let s=Xe(e);try{if(Tu(e.type)&&e[Ru]!==!0&&Cu.has(e.type)&&(Ju(e),e.cancelBubble))return;for(;r!=null;){let i=r[t];if(i!=null&&(Xu(e,r),Hu(i,e),e.cancelBubble)||n)return;r=r.$$portalParent?r.$$portalParent:r.parentNode}}finally{a!==null&&(nd=i,rd(a)),Zu(e);try{Qe(e,s,!1,Wu)}catch(e){Wu(e)}o&&Zt--,Fu--,Gu(e.type)}}function Ju(e){if(e[Ru]===!0)return;e[Ru]=!0,(!e.bubbles||!xu.has(e.type))&&Kd(e);let t=Zl+e.type,n=Vu.length;for(let t=e.target;t!=null;)Vu.push(t),t=t.$$portalParent?t.$$portalParent:t.parentNode;Fu++;let r=Pu.has(e.type);r&&Zt++;let i=Xe(e);try{for(let r=Vu.length-1;r>=n;r--){let n=Vu[r][t];if(n!=null&&(Xu(e,Vu[r]),Hu(n,e),e.cancelBubble))return}}finally{Vu.length=n,Zu(e);try{Qe(e,i,e.bubbles&&!e.cancelBubble&&xu.has(e.type)&&e[Lu]!==!0,Wu)}catch(e){Wu(e)}r&&Zt--,Fu--,Ku(e)}}function Yu(){}function Xu(e,t){e[zu]=t,Object.defineProperty(e,"currentTarget",Bu)}function Zu(e){delete e.currentTarget,delete e[zu]}var Qu={pending:!1,data:null,method:`get`,action:null},$u=new WeakMap,ed=new WeakMap;function td(e,t){$u.set(e,t);let n=ed.get(e);if(n)for(let e of n)e()}var nd=null;function rd(e){if(e.intercepted||e.transitions===0||!e.event.defaultPrevented)return;let t=e.form,n=null;try{n=new FormData(t);let r=e.event.submitter;r&&r.name&&n.append(r.name,r.value??``)}catch{}let r=t;r.$$pendingSubmits=(r.$$pendingSubmits||0)+1,e.published=!0,td(t,{pending:!0,data:n,method:t.method||`get`,action:r.$$formAction??t.getAttribute(`action`)})}function id(e){if(e.transitions--,e.transitions!==0||!e.published)return;let t=e.form;t.$$pendingSubmits=Math.max(0,(t.$$pendingSubmits||1)-1),t.$$pendingSubmits===0&&td(e.form,Qu)}var ad=null;function od(e){try{e.reset(),qd(e)}catch{}}function sd(){if(ad===null||Kt>0||qt>0)return;let e=ad;ad=null;for(let t of e)od(t)}function cd(e,t,n,r){if(typeof n==`function`){e.$$formAction=n,e.nodeName===`FORM`&&(e.$$formSubmitWired||(e.$$formSubmitWired=!0,e.$$submit=t=>ld(e,t),Au([`submit`]))),e.removeAttribute(t);return}e.$$formAction=void 0,typeof r==`function`&&e.nodeName===`FORM`&&(e.$$submit=void 0,e.$$formSubmitWired=!1),zl(e,t,n)}function ld(e,t){let n=t.submitter,r=n&&n.$$formAction||e.$$formAction;if(typeof r!=`function`)return;t.preventDefault(),nd!==null&&nd.form===e&&(nd.intercepted=!0);let i=new FormData(e);n&&n.name&&i.append(n.name,n.value??``);let a=r,o=e;o.$$pendingSubmits=(o.$$pendingSubmits||0)+1,td(e,{pending:!0,data:i,method:`post`,action:a});let s=a.$$isActionDispatcher===!0,c=t=>{if(o.$$pendingSubmits=Math.max(0,(o.$$pendingSubmits||1)-1),o.$$pendingSubmits===0&&td(e,Qu),t&&!s)try{e.reset(),qd(e)}catch{}},l;try{s?l=a(i):mh(()=>(l=a(i),l))}catch(e){c(!1),console.error(e);return}Promise.resolve(l).then(()=>c(!0),()=>c(!1))}var ud=Symbol(`octane.uncontrolled`),dd=[`input`,`change`,`click`],fd=new Set(dd),pd=[],md=null,hd=null,gd=[],_d=[],vd=[];function yd(e,t){e.push(t),I!==null&&R(()=>{let n=e.lastIndexOf(t);n!==-1&&e.splice(n,1)})}function bd(){return gd.length>0||_d.length>0||vd.length>0}function xd(e,t){if(e.$$afSeen!==void 0||(e.$$afSeen=!0,!t))return;switch(e.localName){case`button`:case`input`:case`select`:case`textarea`:break;default:return}let n=X();n!==null&&!n.isFresh(e)||yd(vd,e)}function Sd(e){if(e.localName===`textarea`)return!0;if(e.localName!==`input`)return!1;switch(e.type){case`text`:case`search`:case`url`:case`tel`:case`password`:case`email`:case`number`:return!0}return!1}function Cd(e){let t=e.currentTarget,n=t.$$ctrl;n!==void 0&&(n.compositionEndTask!==void 0&&n.compositionEndTask!==null&&(clearTimeout(n.compositionEndTask),n.compositionEndTask=null),n.composing=!0,t.addEventListener(`blur`,wd))}function wd(e){let t=e.currentTarget,n=t.$$ctrl;if(n===void 0)return;t.removeEventListener(`blur`,wd),n.compositionEndTask!==void 0&&n.compositionEndTask!==null&&clearTimeout(n.compositionEndTask),n.composing=!0;let r=()=>{n.compositionEndTask=null,n.composing=!1,Vd(t)};n.compositionEndTask=e.type===`blur`?setTimeout(r,0):setTimeout(()=>{n.compositionEndTask=setTimeout(r,0)},0)}function Td(e){let t=e.$$ctrl;return t===void 0&&(t={v:ud,c:-1,sv:null,sawV:!1,sawC:!1,dvv:ud,composing:!1,compositionEndTask:void 0,queued:!1,formSeen:!1,formDefaultValue:ud,formDefaultChecked:ud,formMultiple:!1},e.$$ctrl=t,Au(dd)),t}function Ed(e){let t=e.$$ctrl;return t===void 0&&(t=Td(e)),t.compositionEndTask===void 0&&Sd(e)&&(t.compositionEndTask=null,e.addEventListener(`compositionstart`,Cd),e.addEventListener(`compositionend`,wd)),t}function Dd(e){return typeof e==`string`?e:String(e)}function Od(e,t){return e.type===`number`?t===0&&e.value===``||e.value!=t:e.value!==Dd(t)}function kd(e,t){let n=e,r=Ed(e);F!==null&&ur(e,`value`,`defaultValue`);let i=!r.sawV;if(r.sawV=!0,t==null){r.v=ud;return}let a=Dd(t);if(i){r.v=t;let i=X();if(i!==null&&!i.isFresh(e))return;n.value!==a&&(n.value=a),n.defaultValue=a;return}let o=r.v;r.v=t,n.defaultValue!==a&&(n.defaultValue=a),!(r.composing&&Object.is(o,t))&&Od(n,t)&&(n.value=a)}function Ad(e,t,n){let r=!n.sawC;if(n.sawC=!0,t==null){n.c=-1;return}let i=!!t;if(hd??=Hd,r){n.c=i;let t=X();if(t!==null&&!t.isFresh(e))return;e.checked!==i&&(e.checked=i),e.defaultChecked=i;return}let a=i!==n.c;n.c=i,(a||!jd(e))&&e.checked!==i&&(e.checked=i)}function jd(e){let t=md;return t===null?!1:e===t||e.type===`radio`&&t.type===`radio`&&e.name!==``&&e.name===t.name&&e.form===t.form}function Md(e,t){let n=Ed(e);F!==null&&ur(e,`checked`,`defaultChecked`),Ad(e,t,n)}function Nd(e,t){let n=Td(e);F!==null&&ur(e,`checked`,`defaultChecked`),Ad(e,t,n)}function Pd(e,t){let n=e,r=Ed(e);if(F!==null&&(cr(r),sr()),r.sawV,r.sawV=!0,t==null){r.sv=null;return}if(n.multiple){if(!Array.isArray(t))return;let e=new Set;for(let n=0;n<t.length;n++)e.add(Dd(t[n]));r.sv=e}else{if(Array.isArray(t))return;r.sv=Dd(t)}let i=X();i!==null&&!i.isFresh(e)||(Fd(n,r.sv,!1),r.queued||(r.queued=!0,yd(gd,n)))}function Fd(e,t,n){let r=e.options;if(F!==null)for(let e=0;e<r.length;e++)pr(r[e],n);if(typeof t!=`string`){for(let e=0;e<r.length;e++){let i=t.has(r[e].value);r[e].selected!==i&&(r[e].selected=i),n&&(r[e].defaultSelected=i)}return}let i=null;for(let e=0;e<r.length;e++){if(r[e].value===t){r[e].selected=!0,n&&(r[e].defaultSelected=!0);return}i===null&&!r[e].disabled&&(i=r[e])}i!==null&&(i.selected=!0)}function Id(e,t){let n=Ed(e),r=X();if(r!==null&&!r.isFresh(e)||t==null)return;if(e.localName===`select`){Object.is(n.dvv,t)||(F!==null&&(cr(n),sr()),n.dvv=t,yd(_d,{el:e,value:t}));return}if(n.v!==ud)return;let i=e,a=Dd(t);i.defaultValue!==a&&(F!==null&&dr(i),i.defaultValue=a)}function Ld(e,t){let n=X();if(n!==null&&!n.isFresh(e)||t==null)return;let r=e,i=Dd(t);r.defaultValue!==i&&(F!==null&&dr(r),r.defaultValue=i)}function Rd(e,t){let n=Ed(e),r=X();if(r!==null&&!r.isFresh(e)||t==null||n.c!==-1)return;let i=e,a=!!t;i.defaultChecked!==a&&(F!==null&&(i.type===`radio`&&i.name!==``&&fr(i),Cr(i,`checked`)),i.defaultChecked=a)}function zd(e,t){let n,r,i,a,o,s=e.localName,c=(e,t)=>{switch(e){case`value`:n=t;break;case`defaultValue`:r=t;break;case`checked`:s===`input`&&(i=t);break;case`defaultChecked`:s===`input`&&(a=t);break;case`multiple`:s===`select`&&(o=t)}};for(let e=0;e<t.length;e++){let n=t[e];if(!n[0]){c(n[1],n[2]);continue}let r=n[1];if(r==null||typeof r!=`object`&&typeof r!=`function`)continue;let i=Object(r);Object.prototype.propertyIsEnumerable.call(i,`value`)&&c(`value`,i.value),Object.prototype.propertyIsEnumerable.call(i,`defaultValue`)&&c(`defaultValue`,i.defaultValue),s===`input`?(Object.prototype.propertyIsEnumerable.call(i,`checked`)&&c(`checked`,i.checked),Object.prototype.propertyIsEnumerable.call(i,`defaultChecked`)&&c(`defaultChecked`,i.defaultChecked)):s===`select`&&Object.prototype.propertyIsEnumerable.call(i,`multiple`)&&c(`multiple`,i.multiple)}let l=Ed(e),u=!l.formSeen,d=l.formDefaultValue,f=l.formDefaultChecked,p=l.formMultiple;if(F!==null&&(cr(l),sr()),l.formSeen=!0,l.formDefaultValue=r,l.formDefaultChecked=a,s===`input`){let t=e,o=r==null?null:Dd(r);kd(t,n),n??(o===null?!u&&d!==ud&&d!=null&&t.removeAttribute(`value`):Id(t,o)),Md(t,i),i==null&&a!=null&&Rd(t,a),!u&&a==null&&f!==ud&&f!=null&&(t.defaultChecked=!1);return}if(s===`textarea`){let t=e;kd(t,n),n??(r==null?!u&&t.defaultValue!==``&&(t.defaultValue=``):Id(t,r));return}let m=e,h=typeof o,g=!!o&&h!==`function`&&h!==`symbol`;if(l.formMultiple=g,m.multiple!==g){if(F!==null){for(let e=0;e<m.options.length;e++)pr(m.options[e],!1);F.push(Ln,m,`multiple`,m.multiple)}m.multiple=g}!u&&p!==g&&n==null&&(r==null?Fd(m,g?new Set:``,!1):l.dvv=ud),Pd(m,n),r==null?l.dvv=ud:Id(m,r)}function Bd(){if(vd.length>0){let e=vd;vd=[];for(let t=0;t<e.length;t++)e[t].isConnected&&e[t].focus()}if(_d.length>0){let e=_d;_d=[];for(let t=0;t<e.length;t++){let n=e[t].el,r=n.$$ctrl;if(r!==void 0&&r.sv!==null)continue;let i=e[t].value,a=n.multiple?Array.isArray(i)?new Set(i.map(Dd)):null:Dd(i);a!==null&&Fd(n,a,!0)}}if(gd.length>0){let e=gd;gd=[];for(let t=0;t<e.length;t++){let n=e[t].$$ctrl;n!==void 0&&(n.queued=!1,n.sv!==null&&Fd(e[t],n.sv,!1))}}}function Vd(e){let t=e.$$ctrl;if(!(t===void 0||t.composing||!e.isConnected)){if(e.localName===`select`){t.sv!==null&&Fd(e,t.sv,!1);return}hd?.(e,t),t.v!==ud&&Od(e,t.v)&&(e.value=Dd(t.v))}}function Hd(e,t){t.c!==-1&&(e.checked!==t.c&&(e.checked=t.c),e.type===`radio`&&e.name!==``&&Ud(e))}function Ud(e){let t=e.name,n=e.form===null?typeof document<`u`?document.getElementsByName(t):[]:e.form.elements;for(let r=0;r<n.length;r++){let i=n[r];if(i===e||i.localName!==`input`||i.type!==`radio`||i.name!==t)continue;let a=i.$$ctrl;a!==void 0&&a.c!==-1&&i.checked!==a.c&&(i.checked=a.c)}}function Wd(){let e=pd;pd=[];for(let t=0;t<e.length;t++)Vd(e[t])}function Gd(e,t){switch(t.length){case 5:if(t!==`value`)return!1;break;case 7:if(t!==`checked`)return!1;break;default:return!1}let n=e.localName;return n===`input`||n===`textarea`||n===`select`}function Kd(e){let t=e.target;if(t===null||t.$$ctrl===void 0||!fd.has(e.type))return;let n=t.$$ctrl;if(e.type===`input`&&n.compositionEndTask!==void 0){let r=e,i=r.inputType;r.isComposing===!0||i===`insertCompositionText`||i===`deleteCompositionText`?(n.compositionEndTask!==null&&(clearTimeout(n.compositionEndTask),n.compositionEndTask=null),n.composing||t.addEventListener(`blur`,wd),n.composing=!0):n.composing&&typeof r.isComposing==`boolean`&&(n.compositionEndTask!==null&&(clearTimeout(n.compositionEndTask),n.compositionEndTask=null),t.removeEventListener(`blur`,wd),n.composing=!1)}let r=t.localName===`input`&&(t.type===`checkbox`||t.type===`radio`);if(e.type===`click`){r&&(n.c!==-1&&(md=t),t.$$checkableActivation=!0,setTimeout(()=>{t.$$checkableActivation===!0&&(t.$$checkableActivation=!1,t===md&&(md=null),Vd(t))},0));return}if(t===md&&(md=null),e.type===`input`&&t.localName===`select`){t.$$selectPick=!0,setTimeout(()=>{t.$$selectPick===!0&&(t.$$selectPick=!1,Vd(t))},0);return}e.type===`input`&&r&&t.$$checkableActivation===!0||(e.type===`change`&&(r&&(t.$$checkableActivation=!1),t.localName===`select`&&(t.$$selectPick=!1)),pd.indexOf(t)===-1&&pd.push(t))}function qd(e){let t=e.elements;for(let e=0;e<t.length;e++)t[e].$$ctrl!==void 0&&Vd(t[e])}function Jd(e,t,n){let r=e.fragmentOwners;if(r!==void 0){if(e.fragmentAnchor===n){if(!Array.isArray(r)&&!Array.isArray(t)&&r===t)return;if(Array.isArray(r)&&Array.isArray(t)&&r.length===t.length){let e=!0;for(let n=0;n<r.length;n++)if(r[n]!==t[n]){e=!1;break}if(e)return}}Yd(e)}if(e.fragmentOwners=t,e.fragmentAnchor=n,Array.isArray(t))for(let r of t)r._registerPortal(e,n);else t._registerPortal(e,n);r===void 0&&(e.block.cleanups??=[]).push(()=>Yd(e))}function Yd(e){let t=e.fragmentOwners,n=e.fragmentAnchor;if(t!==void 0&&n!==void 0){if(e.fragmentOwners=void 0,e.fragmentAnchor=void 0,Array.isArray(t))for(let r of t)r._unregisterPortal(e,n);else t._unregisterPortal(e,n)}}function Xd(e,t,n){let r=null,i=null;for(let e of Wr){let a=e._ownerBlock;a!==t&&!Hi(a,t)||e._startMarker.parentNode===n.parentNode&&(e._startMarker.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING)!==0&&(e._endMarker.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_PRECEDING)!==0&&(r===null?r=e:(i??=[r]).push(e))}r!==null&&Jd(e,i??r,n)}function Zd(e,t,n,r,i,a,o){let s=X();if(s!==null)return s.suspend(()=>Zd(e,t,n,r,i,a,o));let c=$d(r,i),l=e;if(l===null||l.target!==n){l!==null&&Qd(l);let e=document.createComment(`portal`),r=document.createComment(`/portal`);e.$$portalEnd=r,n.appendChild(e),n.appendChild(r);let i=G(`portal`,t,n,e,r,c.body,c.props,o,va);l={__kind:`portalSlotSlot`,block:i,target:n,start:e,end:r},Oh?.(i),Mu(n),I!==null&&R(()=>Nu(n)),K(i)}else l.block.body!==c.body&&z(l.block,`body`),l.block.props!==c.props&&z(l.block,`props`),l.block.extra!==o&&z(l.block,`extra`),l.block.body=c.body,l.block.props=c.props,l.block.extra=o,K(l.block);let u=l.start.nextSibling;if(l.interleavedFragment===void 0)for(;u!==null&&u!==l.end;)u.$$portalParent=a,u=u.nextSibling;else for(;u!==null&&u!==l.end;){let e=u.$$portalEnd;if(e!==void 0){u=cp(u,e);continue}u.$$portalParent=a,u=u.nextSibling}return l}function Qd(e){let t=I;if(t!==null&&!t.aborted&&!L&&e.block?.mounted&&!t.created?.has(e.block)&&e.target!==null){er(e.target,e.start,e.end,()=>Qd(e));return}e.block&&=(q(e.block,!0),null),e.target&&=(Nu(e.target),null)}function $d(e,t){return typeof e==`function`?{body:e,props:t}:e!=null&&e.$$kind===nf&&typeof e.type==`function`?{body:e.type,props:e.props}:{body:ef,props:e}}function ef(e,t){Q(t,0,t.parentNode,e,t.endMarker)}var tf=Symbol.for(`octane.portal`),nf=Symbol.for(`octane.element`),rf=new WeakSet;function af(e){return e.key!==null||rf.has(e)}var of=new WeakSet,sf=new WeakSet;function cf(e){return e==null||typeof e!=`object`&&typeof e!=`function`?!1:e.key!==void 0}function lf(e){let t={};if(e==null)return t;for(let n in e)n!==`key`&&Se.call(e,n)&&(t[n]=e[n]);return t}function uf(e){return e}var df=Symbol(`octane.scopedValue`);function ff(e){return pf(Zo(e))}function pf(e){let t={$$kind:nf,get type(){return e().type},get props(){return e().props},get key(){let n=e(),r=n.key;return r===null&&rf.has(n)&&rf.add(t),r},get ref(){return e().ref},get children(){return e().children}};return Object.defineProperty(t,df,{value:e}),t}function mf(e,t,n){return hf(e,t,Zo(n))}function hf(e,t,n){let r=t??null,i=cf(r)?``+r.key:null,a=lf(r);Te(e,a);let o={configurable:!0,enumerable:!0,get:n};Object.defineProperty(a,"children",o),sf.add(a);let s={$$kind:nf,type:e,props:a,key:i,ref:a.ref===void 0?null:a.ref,children:null};return Object.defineProperty(s,"children",o),i===null&&r!=null&&(typeof r==`object`||typeof r==`function`)&&`key`in r&&rf.add(s),uf(s)}function gf(e,t,...n){typeof e==`function`&&Ve(e);let r=t??null,i=cf(r)?``+r.key:null,a=n.length>0,o=a?n.length===1?n[0]:n:r?.children;n.length>1&&Lf.add(n);let s=lf(r);a&&(s.children=o),Te(e,s),o=s.children;let c={$$kind:nf,type:e,props:s,key:i,ref:s.ref===void 0?null:s.ref,children:o??null};return i===null&&r!=null&&(typeof r==`object`||typeof r==`function`)&&`key`in r&&rf.add(c),uf(c)}function _f(e){return e!=null&&e.$$kind===nf}function vf(e){return e!=null&&e.$$kind===nf&&typeof e.type==`string`}function yf(e){let t;try{t=String(e)}catch{return`object with keys {`+Object.keys(e).join(`, `)+`}`}return t===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:t}function bf(e){let t=yf(e);return Error(O(3,t))}function xf(e){let t=e===null?`null`:e===void 0?`undefined`:typeof e==`object`?yf(e):JSON.stringify(e);return Error(O(24,t))}var Sf=Symbol(`NO_KEY`);function Cf(e,t,n,r,i,a,o,s,c,l){let u=yl,d=u!==null&&r===u.type;if(!d&&typeof r!=`function`&&typeof r!=`string`)throw xf(r);let f=d?u.body:typeof r==`string`?mp:r;d&&(s=!1,c=!1,!l&&o===void 0&&cf(i)&&(o=i.key,l=!0)),Tf(va,e,t,n,f,r,i,typeof r==`string`?{$$kind:nf,type:r,props:i,key:null,ref:i!=null&&i.ref!==void 0?i.ref:null,children:i==null?null:i.children}:i,a,o,s,c,l)}function wf(e,t,n,r,i,a,o,s,c,l){if(typeof r!=`function`)throw xf(r);Tf(null,e,t,n,r,r,i,i,a,o,s,c,l)}function Tf(e,t,n,r,i,a,o,s,c,l,u,d,f){let p=t.block,m=X();if(m!==null&&(c!=null&&m.isFresh(c)||m.isFresh(r))){m.suspend(()=>Tf(e,t,n,r,i,a,o,s,c,l,u,d,f));return}let h=t.slots[n],g=null;if(h===void 0){let e=null,i=null,o=!1,s=m===null?void 0:a[de],_=m?.passthroughRanges===!0,v=_&&s!==`owner`;if(_&&s===`owner`&&(m.passthroughRanges=!1),!v&&d===!0&&Fe(a,1)&&(d=!1),v)o=!0;else if(d===!0&&p!==null){let t=p.startMarker,n=p.endMarker;t!=null&&n!=null&&t!==n&&t.nodeType===8&&n.nodeType===8?(e=t,i=n,o=!0):t===null&&n===null&&(o=!0)}let y=null;if(!o&&m!==null&&m.isOpen(c??null))y=c,g=y;else if(!o&&m!==null&&!m.isOpen(c??null)){let e=m.node;(e===null||e.parentNode!==r)&&(e=r.firstChild),g=e,e!==null&&m.isOpen(e)&&(y=e)}if(!o){if(y!==null)e=y,i=m.close(y),p===m.rootBlock&&m.claimRootRemainder(i.nextSibling),m.node=e.nextSibling;else if(u===!0||u===2&&a.$$singleRoot===!0)e=null,i=null;else{if(m!==null){let e=g;_t(t,n),Cg(()=>Error(O(55)));let r=e;for(;r!==null&&r!==c&&!Nc(r);){let e=r.nextSibling;r.remove(),r=e}}e=document.createComment(`comp`),i=document.createComment(`/comp`),r.insertBefore(e,c??null),r.insertBefore(i,c??null),m!==null&&(m.markFresh(e),m.markFresh(i),m.node=i)}}h={__kind:`componentSlotSlot`,start:e,end:i,anchor:c??null,singleRoot:e===null&&!o,inherited:o,block:null,currentComp:null,prevKey:Sf,keyed:f===!0||l!==void 0},t.slots[n]=h,ka(t,h)}let _=l===void 0?Sf:l,v=l!==void 0&&h.prevKey!==Sf&&!Object.is(l,h.prevKey),y=a!==h.currentComp||v,b=I!==null&&h.block!==null&&y;if(b){if(h.inherited)Jn(h,r,h.start,h.end);else{let e=h.start??h.block.startMarker,t=h.end??h.block.endMarker;if(e!==null&&t!==null&&e.parentNode===r&&t.parentNode===r)Jn(h,r,e.previousSibling,t.nextSibling);else{let e=h.anchor;Jn(h,r,e===null?r.lastChild:e.previousSibling,e)}}}if((f===!0||l!==void 0)&&!h.keyed&&(b||z(h,`keyed`),h.keyed=!0),v&&(h.currentComp=null),!b&&!Object.is(h.prevKey,_)&&z(h,`prevKey`),h.prevKey=_,y){let t=N,n=p.currentRenderMode===`transition`,o=t!==null&&h.block!==null&&h.block.mounted&&m===null,c=o&&Sh(p),l=I===null||c?t:null,u=o&&!n&&c,d=u&&!n,f=I;if(f!==null&&!c&&m===null&&h.block!==null&&h.block.mounted&&!f.created?.has(h.block)){let t=h.block,n=t.startMarker,o=t.endMarker,c=h.inherited,l=c?h.start===null?r.firstChild:h.start.nextSibling:h.start??n;c&&l===h.end&&(l=null);let u=c?l===null?null:h.end===null?r.lastChild:h.end.previousSibling:h.end??o,d=l===null?c?h.start:null:u;if(d!==null&&d.parentNode===r){let f=Df(p,r,d,i,s,e);if(f.suspended||f.failed)throw Nf(f.wip),f.suspended===null?f.error:new es(f.suspended);f.wip.start.data=`comp`,f.wip.end.data=`/comp`,h.start=f.wip.start,h.end=f.wip.end,h.singleRoot=!1,h.inherited=!1,h.block=f.wip.block,h.currentComp=a,c||wh(p,n,o,f.wip.start,f.wip.end),kf(f.wip),$n(t,r,l,u);return}}if(l!==null&&o&&(n||u)){if(!d&&!h.singleRoot&&!h.inherited&&h.end!==null){let t=l.render(p,r,h.end,i,s,e);if(t.suspended||t.failed)throw l.dispose(t.wip),t.failed?t.error:new es(t.suspended);t.wip.start.data=`comp`,t.wip.end.data=`/comp`;let n=h.block;h.start=t.wip.start,h.end=t.wip.end,h.block=t.wip.block,h.currentComp=a,l.splice(t.wip),q(n),p.disposed||h.block!==t.wip.block||t.wip.block.disposed;return}let t=h.end??h.anchor;if(t!==null){let n=l.render(p,r,t,i,s,e);if(l.dispose(n.wip),n.failed)throw n.error;if(n.suspended)throw new es(n.suspended)}}if(h.block){if(h.inherited){if(q(h.block),p.disposed)return;if(h.start===null)for(;r.firstChild;)r.removeChild(r.firstChild)}else if(h.singleRoot){if(q(h.block),p.disposed)return}else{let e=h.end.nextSibling;if(q(h.block),p.disposed)return;let t=document.createComment(`comp`),n=document.createComment(`/comp`);r.insertBefore(t,e),r.insertBefore(n,e),h.start=t,h.end=n}}if(h.currentComp=a,h.singleRoot){let t=h.anchor?h.anchor.previousSibling:r.lastChild,n=G(`dynamic`,p,r,null,h.anchor,i,s,void 0,e);h.block=n;try{K(n)}finally{if(m!==null&&g!==null&&g.parentNode===r)n.startMarker=g,n.endMarker=g;else{let e=h.anchor?h.anchor.previousSibling:r.lastChild;e!==null&&e!==t&&(n.startMarker=e,n.endMarker=e)}}}else{let t=G(`dynamic`,p,r,h.start,h.end,i,s,void 0,e);h.inherited&&(t.exclusiveMarkers=!0),h.block=t,K(t)}}else if(h.block){if(kp(h.block,a,o))return;h.block.props!==s&&z(h.block,`props`),h.block.props=s,K(h.block)}m!==null&&!h.inherited&&h.end!==null&&(m.node=h.end.nextSibling)}function Ef(e){return e==null||e===!1||e===!0?``:String(e)}function Df(e,t,n,r,i,a,o=`dynamic`,s,c=!1){let l=document.createComment(`wip`),u=document.createComment(`/wip`),d=n.nextSibling;t.insertBefore(l,d),t.insertBefore(u,d);let f=Vr(),p=W.length,m=H;H=f;let h=G(o,e,t,l,u,r,i,s,a);c&&(h.$$implicitBail=!0,h.memoInChain=!0);let g=null,_=null,v=!1;try{K(h)}catch(e){ts(e)?g=e.thenable:(_=e,v=!0)}finally{H=m}return{wip:{block:h,start:l,end:u,capture:f,domParent:t,refDetachCheckpoint:p},suspended:g,error:_,failed:v}}function Of(e){k?.spliceCapture(e,H);let t=e.renderedBlocks;if(e.renderedBlocks=null,e.renderRoot=null,t!==null&&H!==null)for(let e of t)ha(H,e);for(let t=0;t<3;t++){let n=e.effects[t],r=H===null?V[t]:H.effects[t];for(let e=0;e<n.length;e++)r.push(n[e])}let n=H===null?Nr:H.events;for(let t=0;t<e.events.length;t++)n.push(e.events[t]);let r=H===null?Pr:H.eventActions;for(let t=0;t<e.eventActions.length;t++)r.push(e.eventActions[t]);let i=H===null?Rr:H.refs;for(let t=0;t<e.refs.length;t++)i.push(e.refs[t]);if(e.detaches!==void 0){let t=H===null?W:H.detaches??=[];for(let n of e.detaches)t.push(n)}let a=H===null?Lr:H.stores;for(let t=0;t<e.stores.length;t++)a.push(e.stores[t]);if(e.suspenseCommits!==void 0)for(let t of e.suspenseCommits)Br(t);let o=e.renderCleanups;if(o!==void 0){if(e.renderCleanups=void 0,H!==null){let e=H.renderCleanups??=[];for(let t of o)e.push(t)}else for(let e of o)e(!1)}}function kf(e){Of(e.capture)}function Af(e){if(e===null)return;k?.discardCapture(e);let t=e.renderedBlocks,n=e.renderRoot;if(e.renderedBlocks=null,e.renderRoot=null,t!==null)for(let e of t)ma(e,n);for(let t=0;t<e.stores.length;t++)e.stores[t].queued=!1;let r=e.renderCleanups;if(r!==void 0){e.renderCleanups=void 0;for(let e of r)e(!0)}}function jf(e,t){let n=e.domParent,r=e.start;for(;r!==null;){let i=r.nextSibling;if(n.insertBefore(r,t),r===e.end)break;r=i}}function Mf(e,t){jf(e,t),kf(e)}function Nf(e){let t=H;H=e.capture;try{q(e.block,!0)}finally{H=t,W.splice(e.refDetachCheckpoint),Af(e.capture)}}function Pf(e){let t=I;if(t!==null&&!t.aborted&&!L){if(e.block===null&&e.forSlot===null&&e.text===null&&e.hostNode===null)return;let t=e.ownerHost??e.start?.parentNode??e.text?.parentNode??e.hostNode?.parentNode??e.block?.parentNode??null;if(t!==null){bp(e,t);let n=e.ownerHost!==null||e.borrowed&&e.start===null?t.firstChild:e.start===null?e.text??e.hostNode:e.start.nextSibling,r=e.ownerHost===null?e.start!==null||e.borrowed?e.end:n?.nextSibling??null:null;n===r&&(n=null);let i=n===null?null:r===null?t.lastChild:r.previousSibling,a=e.block,o=e.forSlot,s=e.hostNode;if(a!==null)$n(a,t,n,i);else{if(o!==null){for(let e=o.head;e!==null;e=e.nextSibling)Qn(e);o.emptyBlock!==null&&Qn(o.emptyBlock)}er(t,n,i,()=>{if(o!==null){for(let e=o.head;e!==null;e=e.nextSibling)q(e,!1);o.emptyBlock!==null&&q(o.emptyBlock,!1)}else s!==null&&$(s,null)})}e.block=null,e.forSlot=null,e.text=null,e.hostNode=null,e.currentComp=null,e.ownerHost!==null&&(e.start=null,e.end=null);return}}let n=e.block!==null;if(e.block!==null&&(q(e.block,!1),e.block=null),e.ownerHost!==null){let t=e.ownerHost,r=t.firstChild;for(;r!==null;){let e=r.nextSibling;n||$(r,null),t.removeChild(r),r=e}e.start=null,e.end=null}else if(e.start!==null){let t=e.start.parentNode;if(t!==null){let r=e.start.nextSibling;for(;r!==null&&r!==e.end;){let e=r.nextSibling;n||$(r,null),t.removeChild(r),r=e}}}else e.text===null?e.hostNode!==null&&e.hostNode.parentNode!==null&&($(e.hostNode,null),e.hostNode.parentNode.removeChild(e.hostNode)):e.text.remove();e.text=null,e.currentComp=null,e.hostNode=null}function Ff(e,t){if(I!==null&&!L){let n=e.ownerHost??e.start?.parentNode??t.parentNode,r=e.ownerHost===null?e.start?.nextSibling??null:n.firstChild,i=e.ownerHost===null?e.end:null;r===i&&(r=null);let a=r===null?null:i===null?n.lastChild:i.previousSibling;$n(t,n,r,a);return}if(q(t,!1),e.ownerHost!==null){let t=e.ownerHost.firstChild;for(;t!==null;){let n=t.nextSibling;e.ownerHost.removeChild(t),t=n}}else if(e.start!==null){let t=e.start.parentNode;if(t!==null){let n=e.start.nextSibling;for(;n!==null&&n!==e.end;){let e=n.nextSibling;t.removeChild(n),n=e}}}}function If(e,t){let n=e!=null&&e.$$kind===nf;return n&&e.key!=null&&!of.has(e)||n&&e.key!=null?e.key:t}var Lf=new WeakSet;function Rf(e,t){return e!=null&&e.$$kind===nf&&e.key!=null?e.key:t}function zf(e){return Lf.add(e),e}var Bf=!1;function Vf(e){Bf=!0;let t=e;for(;t!==null&&!t.deoptRefs;)t.deoptRefs=!0,t=t.parentBlock}function Hf(e,t,n,r){if(t===`ref`)n!=null&&(Vf(r),wi(r,n,e));else if(t===`className`||t===`class`)Gl(e,n);else if(t===`style`)ql(e,n,void 0);else{let r=$l(t);r===null?zl(e,t,n):(gu(e,r.key,n),r.capture?ju([r.type]):Au([r.type]))}}function Uf(e){if(e==null||e.dangerouslySetInnerHTML==null)return!1;if(sl(e.dangerouslySetInnerHTML),e.children!=null)throw ol();return!0}function Wf(e,t,n){if(t!=null){for(let r in t)if(r!==`key`&&r!==`children`){if(r===`suppressHydrationWarning`){e.__oct_suppress=t[r]!==!1;continue}Hf(e,r,t[r],n)}}}function Gf(e,t,n,r){let i=t?.ref,a=n?.ref;if(i!=null&&i!==a&&Ti(i,e),t!=null)for(let r in t)r!==`key`&&r!==`children`&&r!==`ref`&&(n==null||!(r in n))&&eu(e,r,t[r]);if(n!=null)for(let i in n){if(i===`key`||i===`children`)continue;if(i===`suppressHydrationWarning`){e.__oct_suppress=n[i]!==!1;continue}let a=n[i];if(t==null||t[i]!==a||Gd(e,i)){if(i===`autoFocus`&&!Fl(e))continue;i===`style`?ql(e,a,t?.style):Hf(e,i,a,r)}}}var Kf=Symbol(`octane.deoptDesc`);function qf(e){let t=Hs(e);for(;t!==null;){let e=t.$$portalEnd;if(e!=null){t=cp(t,e);continue}if(t.$$deoptKey!==void 0||Jf(t)!==void 0)return!0;t=Y(t)}return!1}function Jf(e){return e[Kf]}function Yf(e,t){let n=t[df];F!==null&&F.push(Ln,e,Kf,Jf(e)),e[Kf]=n===void 0?t:n()}function Xf(e){return _f(e)&&e.type===vl}function Zf(e){let t=e.children;return t==null?[]:Array.isArray(t)?t:[t]}function Qf(e){return{$$kind:nf,type:$f,props:e,key:e.key,ref:null,children:null}}function $f(e,t){let n=t.block,r=n.slots[1];if(r===void 0){let i=X(),a,o,s=i?.node;if(s?.nodeType===8&&s.data===`frag`){a=s;let e=1,t=a.nextSibling;for(;t!==null;){if(t.nodeType===8){if(t.data===`frag`)e++;else if(t.data===`/frag`&&--e===0)break}t=t.nextSibling}if(t===null)throw Error(O(50));o=t,i.node=a.nextSibling}else a=document.createComment(`frag`),o=document.createComment(`/frag`),n.parentNode.insertBefore(a,n.endMarker),n.parentNode.insertBefore(o,n.endMarker);r=Ol(t,a,o,e.ref),n.slots[0]={a:r},n.slots[1]=r,n.refFields=[`f`,`a`,``]}else r._currentRef!==e.ref&&(z(r,`_currentRef`),r._currentRef!=null&&Ti(r._currentRef,r),e.ref!=null&&wi(t,e.ref,r),r._currentRef=e.ref);Q(t,2,n.parentNode,e.children,r._endMarker);let i=X();i!==null&&(i.node=r._endMarker.nextSibling)}function ep(e){return Lf.has(e)?`fragment`:`array`}function tp(e,t,n,r){let i=_f(t)&&t.key!=null;return e.length===0?i?`k`+String(r):`i`+n:JSON.stringify([e,i?`key`:`index`,i?String(r):n])}function np(e,t,n,r,i){let a=r===`fragment`?Rf:If,o=n.length;for(let s=0;s<o;s++){let c=n[s];if(Xf(c)){if(c.ref!=null||Se.call(c.props,`ref`)){e.push(Qf(c)),t.push(tp(i,c,s,a(c,s)));continue}let n=Zf(c);c.key==null?np(e,t,n,`fragment`,r===`fragment`?[...i,`wrapper`,o===1?0:s]:o===1?i:[...i,`position`,s,`fragment`]):np(e,t,n,`fragment`,[...i,`keyed-fragment`,c.key]);continue}if(Array.isArray(c)){let n=ep(c);np(e,t,c,n,n===r?[...i,`wrapper`,o===1?0:s]:o===1?i:[...i,`position`,s,n]);continue}e.push(c),t.push(tp(i,c,s,a(c,s)))}}function rp(e,t=!1,n=!0){if(Xf(e)){if(e.ref!=null||Se.call(e.props,`ref`))return{items:[Qf(e)],keys:[tp([],e,0,e.key??0)]};let t=[],n=[],r=e.key==null?[]:[`keyed-fragment`,e.key];return np(t,n,Zf(e),`fragment`,r),{items:t,keys:n}}if(Array.isArray(e)){let t=[],n=[];return np(t,n,e,ep(e),[]),{items:t,keys:n}}return n&&_f(e)&&e.key!=null?{items:[e],keys:[tp([],e,0,e.key)]}:t?{items:[e],keys:[tp([],e,0,Rf(e,0))]}:null}function ip(e){if(e==null||typeof e==`string`||Array.isArray(e)||_f(e))return null;let t=Ee(e);if(t===null)return null;let n=[],r=t.call(e),i;for(;!(i=r.next()).done;)n.push(i.value);return n}function ap(e,t,n,r){if(n!=null&&n!==!1&&n!==!0&&n!==``){if(Array.isArray(n)){let i=Lf.has(n)?Rf:If;for(let a=0;a<n.length;a++){let o=n[a];if(Array.isArray(o))ap(e,t,o,r+a+`:`);else if(o!=null&&o!==!1&&o!==!0&&o!==``){e.push(o);let n=i(o,a);t.push(r===``?n:r+String(n))}}return}e.push(n),t.push(r===``?n?.$$kind===nf&&n.key!=null?n.key:0:r+`0`)}}function op(e,t,n,r){if(t==null||t===!1||t===!0||t===``)return null;let i=typeof t;if(i===`string`||i===`number`||i===`bigint`){let n=String(t);return e!==null&&e.nodeType===3?(Vc(e,n),e):document.createTextNode(n)}if(vf(t)){let i=Il(t.type,r),a;return e!==null&&e.nodeType===1&&e.localName===t.type&&e.namespaceURI===(i??Pl)?(a=e,Gf(a,Jf(a)?.props??null,t.props,n)):(a=i===void 0?document.createElement(t.type):document.createElementNS(i,t.type),X()?.markFresh(a),Wf(a,t.props,n)),Yf(a,t),Uf(t.props)||sp(a,t.children,n),a}if(_f(t))throw Error(O(25));if(i===`object`)throw bf(t);return null}function sp(e,t,n){let r=typeof t;if(r===`string`&&t!==``||r===`number`||r===`bigint`){let n=Hs(e);if(n!==null&&n.nodeType===3&&Y(n)===null&&n.$$deoptKey===0&&n.$$portalEnd==null){Vc(n,String(t));return}}let i=Ll(e),a=[],o=[];ap(a,o,t,``);let s=e.childNodes,c=I!==null&&e.parentNode!==null&&(n.mounted||I.hydrating||I.retainedCreated?.has(n));if(s.length===0){for(let t=0;t<a.length;t++){let r=op(null,a[t],n,i);r!==null&&(c&&Xn(e),r.$$deoptKey=o[t],e.appendChild(r))}return}if(a.length===0&&X()===null&&!qf(e))return;let l=[],u=!1,d,f=null,p=[],m=Hs(e);for(;m!==null;){let e=m.$$portalEnd;if(e!=null){u=!0,m=cp(m,e);continue}let t=m.$$deoptKey,n=t===void 0?Jf(m):void 0;if(t===void 0&&n===void 0&&!(d??=X()!==null)){u=!0,m=Y(m);continue}l.push(m);let r=t??n?.key;if(r!=null&&(f===null&&(f=new Map),!f.has(r))){f.set(r,m),m=Y(m);continue}p.push(m),m=Y(m)}let h=0,g=[];for(let e=0;e<a.length;e++){let t=a[e],r=o[e],s=null;f!==null&&(s=f.get(r)??null,s!==null&&f.delete(r)),s===null&&h<p.length&&(s=p[h++]);let c=op(s,t,n,i);c!==null&&(c.$$deoptKey=r,g.push(c))}let _=g.length>0?new Set(g):null;for(let t=l.length-1;t>=0;t--){let n=l[t];(_===null||!_.has(n))&&(c?(Xn(e),er(e,n,n,()=>$(n,null))):($(n,null),e.removeChild(n)))}for(let t=0;t<g.length;t++){let n=g[t],r=u?lp(e,t,d===!0):s[t]??null;r!==n&&(c&&Xn(e),pi===null?e.insertBefore(n,r):(yi(e,pi),lg(e,n,r,pi)))}}function cp(e,t){let n=e;for(;n!==null&&n!==t;)n=Y(n);return Y(n??e)}function lp(e,t,n=!1){let r=0,i=Hs(e);for(;i!==null;){let e=i.$$portalEnd;if(e!=null){i=cp(i,e);continue}if(!n&&i.$$deoptKey===void 0&&Jf(i)===void 0){i=Y(i);continue}if(r===t)return i;r++,i=Y(i)}return null}function up(e,t){let n=t.block,r=X(),i=t.slots[0],a=vf(e)&&i?.__kind===`childSlot`&&i.currentComp===pp||fp(e),o=n.startMarker;if(o!==null&&o===n.endMarker&&o.nodeType!==8&&o.parentNode!==null&&(a||!vf(e))){let e=o.parentNode;I!==null&&(Yn(e,o.previousSibling,o.nextSibling),z(n,`startMarker`),z(n,`endMarker`));let t=document.createComment(`it`),r=document.createComment(`/it`);e.insertBefore(t,o),e.insertBefore(r,o.nextSibling),n.startMarker=t,n.endMarker=r}if(a){let i=n.deoptNode,a=null;if(i!=null&&(z(n,`deoptNode`),t.slots[0]===void 0&&i.nodeType===1&&vf(e)&&i.localName===e.type&&i.parentNode===n.parentNode?a=i:i.parentNode===n.parentNode&&(I===null?($(i,null),n.parentNode.removeChild(i)):(Yn(n.parentNode,i.previousSibling,i.nextSibling),er(n.parentNode,i,i,()=>$(i,null)))),n.deoptNode=null),r!==null&&t.slots[0]===void 0&&r.isOpen(n.startMarker)){let e={__kind:`childSlot`,start:n.startMarker,end:n.endMarker,ownerHost:null,borrowed:!0,compactable:!1,block:null,text:null,currentComp:null,currentIsBodyFn:!1,forSlot:null,hostNode:null,portal:null};t.slots[0]=e,ka(t,e)}if(r===null&&t.slots[0]===void 0&&n.startMarker!==null&&n.endMarker!==null&&n.startMarker!==n.endMarker&&n.startMarker.nodeType===8&&n.endMarker.nodeType===8){let e={__kind:`childSlot`,start:n.startMarker,end:n.endMarker,ownerHost:null,borrowed:!0,compactable:!1,block:null,text:null,currentComp:null,currentIsBodyFn:!1,forSlot:null,hostNode:a,portal:null};t.slots[0]=e,ka(t,e)}else a!==null&&a.parentNode!==null&&($(a,null),a.parentNode.removeChild(a));Q(t,0,n.parentNode,e,n.endMarker,void 0,void 0,void 0,!1);return}t.slots[0]!==void 0&&t.slots[0]!==null&&t.slots[0].__kind===`childSlot`&&Q(t,0,n.parentNode,null,n.endMarker);let s=n.endMarker,c=n.deoptNode;if(c===null&&r!==null){let e=n.startMarker;c=e==null?null:e.nextSibling,c===s&&(c=null)}let l=op(c,e,n,Ll(n.parentNode));if(l!==c){if(z(n,`deoptNode`),c!=null&&c!==l&&c.parentNode===n.parentNode){if(I!==null&&Yn(n.parentNode,c.previousSibling,c.nextSibling),l!==null&&n.parentNode.insertBefore(l,c),I!==null){let e=c;er(n.parentNode,e,e,()=>$(e,null))}else $(c,null),n.parentNode.removeChild(c)}else l!==null&&(I!==null&&n.mounted&&Yn(n.parentNode,s?.previousSibling??n.parentNode.lastChild,s),n.parentNode.insertBefore(l,s));c!==null&&n.startMarker===c&&(z(n,`startMarker`),z(n,`endMarker`),n.startMarker=l,n.endMarker=l)}n.deoptNode=l}function dp(e,t){let n=t.slots[0],r=t.block;if(_f(e)&&typeof e.type==`function`){if(n===void 0||n.__kind===`componentSlotSlot`){let n=r.deoptNode;n!==null&&($(n,null),n.parentNode===r.parentNode&&r.parentNode.removeChild(n),r.deoptNode=null),Cf(t,0,r.parentNode,e.type,e.props,r.endMarker,void 0,!0,!0);return}}else if(n?.__kind===`componentSlotSlot`){let e=r.startMarker;if(e!==null&&e===r.endMarker&&e.nodeType!==8&&e.parentNode!==null){let t=document.createComment(`it`),n=document.createComment(`/it`);e.parentNode.insertBefore(t,e),e.parentNode.insertBefore(n,e.nextSibling),r.startMarker=t,r.endMarker=n}ya(r,n),r.deoptNode=null}up(e,t)}function fp(e){if(typeof e==`function`)return!0;if(typeof e!=`object`||!e)return!1;if(Array.isArray(e)){for(let t=0;t<e.length;t++)if(fp(e[t]))return!0;return!1}return!_f(e)&&Ee(e)!==null?!0:e.$$kind===nf?e.type===vl||yl!==null&&e.type===yl.type||typeof e.type==`function`||fp(e.children):e.$$kind===tf}function pp(e,t){let n=t.deoptNode,r=X(),i=Il(e.type,Ll(t.parentNode));if(n===null&&r!==null&&r.node!==null&&r.node.nodeType===1&&r.node.localName===e.type&&(i===void 0||r.node.namespaceURI===i)){n=r.node,t.deoptNode=n,Wf(n,e.props,t),Yf(n,e);let i=r.node.nextSibling;Uf(e.props)||(r.node=n.firstChild,Q(t,0,n,e.children,null,!1,n)),r.node=i;return}if(n===null&&r!==null&&r.node!==null){let a=r.node;if(r.isOpen(a)){let e=r.close(a);r.node=e.nextSibling,r.removeRange(a,e)}else r.node=a.nextSibling,a.remove();n=i===void 0?document.createElement(e.type):document.createElementNS(i,e.type),r.markFresh(n),t.deoptNode=n,t.parentNode.insertBefore(n,t.endMarker),Wf(n,e.props,t),Yf(n,e),Uf(e.props)||r.suspend(()=>Q(t,0,n,e.children,null,!1,n));return}if(n===null||n.localName!==e.type||i!==void 0&&n.namespaceURI!==i){if(n!==null){let e=n;I!==null&&(Yn(t.parentNode,e.previousSibling,e.nextSibling),z(t,`deoptNode`));let r=t.slots[0];r!==void 0&&ya(t,r);let i=()=>{let t=Jf(e)?.props?.ref;t!=null&&Ti(t,e)};I===null?(i(),e.remove()):er(t.parentNode,e,e,i)}n=i===void 0?document.createElement(e.type):document.createElementNS(i,e.type),r!==null&&r.markFresh(n),t.deoptNode=n,t.parentNode.insertBefore(n,t.endMarker),Wf(n,e.props,t)}else Gf(n,Jf(n)?.props??null,e.props,t);Yf(n,e),Uf(e.props)||Q(t,0,n,e.children,null,!1,n)}function mp(e,t){let n=e.type,r=t.deoptNode,i=X(),a=Il(n,Ll(t.parentNode));if(r===null){if(i!==null&&i.node!==null&&i.node.nodeType===1&&i.node.localName===n&&(a===void 0||i.node.namespaceURI===a)){r=i.node,t.deoptNode=r,Wf(r,e.props,t),Yf(r,e);let n=i.node.nextSibling;Uf(e.props)||(i.node=r.firstChild,hp(e,t,r)),i.node=n;return}if(i!==null&&i.node!==null){Cg(()=>Error(O(51)));let o=i.node;if(i.isOpen(o)){let e=i.close(o);i.node=e.nextSibling,i.removeRange(o,e)}else i.node=o.nextSibling,o.remove();r=a===void 0?document.createElement(n):document.createElementNS(a,n),i.markFresh(r),t.deoptNode=r,t.parentNode.insertBefore(r,t.endMarker),Wf(r,e.props,t),Yf(r,e),Uf(e.props)||i.suspend(()=>hp(e,t,r));return}r=a===void 0?document.createElement(n):document.createElementNS(a,n),i!==null&&i.markFresh(r),t.deoptNode=r,t.parentNode.insertBefore(r,t.endMarker),Wf(r,e.props,t)}else Gf(r,Jf(r)?.props??null,e.props,t);Yf(r,e),Uf(e.props)||hp(e,t,r)}function hp(e,t,n){let r=e.children;if(r!=null){if(typeof r==`function`){let e=t.slots[0];e===void 0?(e={__kind:`hostTagChildrenSlot`,block:G(`dynamic`,t,n,null,null,r,{},void 0,va)},t.slots[0]=e,ka(t,e)):e.block.body=r,K(e.block);return}Q(t,1,n,r,null,!1,n)}}function gp(e){let t=e.forSlot;ag(t,t.items),t.head=null,t.tail=null,t.size=0,e.forSlot=null}var _p=null;function vp(e,t,n){let{items:r,keys:i}=rp(e,!0),a=[],o=t.nextSibling;for(let e=0;e<r.length;e++){let t=r[e];if(t==null||t===!1||t===!0||t===``)continue;if(o===null||o===n)break;let s=typeof t;if(!(s===`string`||s===`number`||s===`bigint`?o.nodeType===3:vf(t)&&o.nodeType===1&&o.localName===t.type))break;a.push({key:i[e],node:o}),o=o.nextSibling}return a}function yp(e,t){for(let n=e;n!==null;n=n.parentBlock)if(n.kind===`portal`&&n.parentNode===t)return!0;return!1}Array.prototype.map,Object.getOwnPropertyDescriptor(Array,Symbol.species)?.get;function bp(e,t){if(!(I===null||I.aborted||L)){if(sr(),e.ownerHost!==null)Jn(e,e.ownerHost,null,null);else if(e.start!==null)Jn(e,t,e.borrowed?e.start:e.start.previousSibling,e.borrowed?e.end:e.end?.nextSibling??null);else if(e.borrowed&&e.block!==null&&e.block.startMarker===null)Jn(e,t,null,e.end);else{let n=e.text??e.hostNode??e.block?.startMarker??e.end,r=(e.end??e.block?.endMarker??n)?.nextSibling??null;Jn(e,t,n===null?t.lastChild:n.previousSibling,r)}}}function xp(e,t,n,r,i,a,o,s,c,l,u,d){if(r.items.length===0&&i===null&&e.ownerHost!==null){e.forSlot!==null&&I===null&&gp(e),Pf(e);return}e.forSlot===null&&(i===null&&!a&&Pf(e),e.end!==null&&e.end.parentNode===null&&(e.end=null,e.start=null),e.end===null&&(e.end=document.createComment(``),n.insertBefore(e.end,null)),e.start===null&&(e.start=document.createComment(``),n.insertBefore(e.start,a?n.firstChild:e.end)),e.forSlot={__kind:`forBlockSlot`,start:e.start,end:e.end,items:new Map,head:null,tail:null,size:0,cachedDeps:null,emptyBlock:null,env:void 0,adopt:null,plainDeopt:!1},a&&(e.forSlot.adopt=vp(o,e.start,e.end)));let{items:f,keys:p}=r,m=d===!0&&i!==null&&!i.isOpen(i.node),h=c?(e,t)=>`k`+String(c(e,t)):(e,t)=>p[t],g=e.forSlot.mappedNative===!0,_=s||(d===!0?dp:up);if(s===void 0&&g&&e.forSlot.size>0)for(let t=0;t<f.length;t++){let n=f[t];if(!vf(n))continue;let r=e.forSlot.items.get(h(n,t));if(r!==void 0&&r.startMarker!==null&&r.startMarker===r.endMarker&&r.startMarker.nodeType===1&&r.startMarker.localName===n.type){let e=r.startMarker.firstChild;if(e?.nodeType===3&&e.nextSibling===null){let t=Object.getOwnPropertyDescriptor(n,`children`);if(t!==void 0&&`value`in t&&(typeof t.value==`string`||typeof t.value==`number`||typeof t.value==`bigint`))e.$$deoptKey=0;else if(t?.get!==void 0){let t=r.slots[0];if(t!=null){for(let n in t)if(t[n]===e){e.$$deoptKey=0;break}}}}r.deoptNode=r.startMarker}}if(s!==void 0&&(e.forSlot.mappedNative===!1&&(_=(e,t,n)=>{let r=t.slots[0]===void 0?t.block.deoptNode:null;if(r===null||r.nodeType!==1){s(e,t,n);return}let i=ac,a={node:r};ac=a;try{s(e,t,n),a.node===null&&(t.block.deoptNode=null)}finally{ac=i}}),e.forSlot.mappedNative=!0),m){let e=_;_=(t,n)=>{let r=n.block.startMarker;r!==null&&r===n.block.endMarker&&r.nodeType===1&&n.block.deoptNode===null&&(n.block.deoptNode=r),e(t,n)}}let v=s===void 0&&d!==!0;e.forSlot.plainDeopt=v;let y=l||0,b=s===void 0?m||v:!!(y&16),x=!!(y&1),S=!1;if(s!==void 0&&(e.forSlot.env=u,y&4&&u!==void 0&&(e.forSlot.cachedDeps!==null&&qh(e.forSlot.cachedDeps,u)?x=!0:S=!0,e.forSlot.cachedDeps=u)),e.forSlot.size===0?ng(t,e.forSlot,f,h,_,s===void 0?2:!!(y&2),b):rg(t,e.forSlot,f,h,_,x,s===void 0?2:!!(y&2),S,!!(y&8),b),e.forSlot.adopt!==null){let t=e.forSlot.adopt;for(let e=0;e<t.length;e++){let n=t[e].node;n.parentNode!==null&&(I===null?($(n,null),n.parentNode.removeChild(n)):er(n.parentNode,n,n,()=>$(n,null)))}e.forSlot.adopt=null}}function Q(e,t,n,r,i,a,o,s,c=!0,l,u,d,f,p){if(r!=null&&c&&n.nodeType===1&&me.has(n.localName)&&!yp(e.block,n))throw Error(O(26,n.localName));if(ul(n,r))return;let m=e.block,h=X();if(h!==null&&(i!=null&&h.isFresh(i)||h.isFresh(n))){h.suspend(()=>Q(e,t,n,r,i,a,o,s,c,l,u,d,f,p));return}for(;r!==null&&(typeof r==`object`||typeof r==`function`);){if(r.$$kind===bo){r=$o(r);continue}if(typeof r.then==`function`){r=ms(r);continue}break}let g=typeof r==`function`?r:_f(r)&&typeof r.type==`function`?r.type:null,_=h?.passthroughRanges===!0&&g?.[de]!==`owner`,v=ip(r);v!==null&&(r=v);let y=l===void 0?rp(r,!1,c):{items:r,keys:null},b=e.slots[t],x=y===null&&vf(r)&&b?.currentComp!==pp&&!fp(r),S=!1;if(b!==void 0&&I!==null){let e=x||y!==null?null:vf(r)?pp:g,t=y!==null&&b.forSlot!==null,i=b.block!==null&&e!==null&&(e===b.currentComp||typeof r==`function`&&b.currentIsBodyFn),a=x&&b.hostNode!==null&&b.block===null&&b.hostNode.nodeType===1&&b.hostNode.localName===r.type,o=r==null||typeof r!=`object`&&typeof r!=`function`,s=o?Ef(r):null,c=o&&b.block===null&&b.forSlot===null&&b.hostNode===null&&b.portal===null&&b.text===null==(s===``);!t&&!i&&!a&&!c&&(bp(b,n),S=!0)}let C=b===void 0&&h!==null&&m===h.rootBlock&&h.node!==null&&h.node.parentNode===n&&y===null&&_f(r)&&typeof r.type==`function`&&!h.isOpen(i??null)&&!h.isOpen(h.node);if(b===void 0&&h!==null&&!_&&m===h.rootBlock&&!h.isOpen(i??null)&&!h.isOpen(h.node)){let g=h.node;if(!(r===null||r===``?g===null:typeof r==`string`&&g?.nodeType===3||C)){h.abandonRoot(y===null?`a renderable root`:`a renderable list range`,h.describe(g),vt(m.body)),Q(e,t,n,r,i,a,o,s,c,l,u,d,f,p);return}}if(b===void 0){let r=I;if(r!==null&&!r.aborted&&!L&&e.mounted&&!r.created?.has(m)){sr();let e=o===void 0?i??null:null;Yn(n,o===void 0?e===null?n.lastChild:e.previousSibling:null,e)}let c,l;_?(c=null,l=null):C?[c,l]=h.wrapUnframedRoot(h.node):h!==null&&h.isOpen(i??null)?(c=i,l=h.close(i),m===h.rootBlock&&h.claimRootRemainder(l.nextSibling),h.node=c.nextSibling):h!==null&&h.isOpen(h.node)?(c=h.node,l=h.close(h.node),m===h.rootBlock&&(h.protectRootAnchor(l),h.claimRootRemainder(l.nextSibling)),h.node=c.nextSibling):a&&i!=null?(c=null,l=i):h===null&&o!==void 0||h===null&&x?(c=null,l=null):(c=null,l=document.createComment(``),n.insertBefore(l,i??null),h!==null&&m===h.rootBlock&&h.protectRootAnchor(l)),b={__kind:`childSlot`,start:c,end:l,ownerHost:h===null?o??null:null,borrowed:_,compactable:s===!0,block:null,text:null,currentComp:null,currentIsBodyFn:!1,forSlot:null,hostNode:null,portal:null},e.slots[t]=b,ka(e,b)}s===!0&&(b.compactable=!0);let w,ee=!1;if(_p!==null&&_p.block===e.block&&o!==void 0&&(I!==null&&Xn(n),w=_p.children,ee=!0,_p=null),b.end===null&&!x&&b.ownerHost===null&&!b.borrowed){let e=document.createComment(``),t=document.createComment(``),r=b.hostNode;if(r!==null&&r.parentNode!==null){let n=r.parentNode;n.insertBefore(e,r),n.insertBefore(t,r.nextSibling),wh(m,r,r,e,t)}else n.insertBefore(e,i??null),n.insertBefore(t,i??null);b.start=e,b.end=t}let T=r!=null&&r.$$kind===tf?r:null;if(T===null&&b.portal!=null&&(Qd(b.portal),b.portal=null),T!==null){b.forSlot!==null&&(I!==null&&h===null?Pf(b):gp(b)),(b.block!==null||b.text!==null||b.hostNode!==null)&&Pf(b),b.portal=Zd(b.portal,m,T.target,T.body,T.props,n),Wr.size!==0&&b.end!==null&&Xd(b.portal,m,b.end);return}if(y!==null){xp(b,m,n,y,h,ee,w,l,u,d,f,p);return}if(b.forSlot!==null&&(I!==null&&h===null?Pf(b):gp(b)),ee&&b.hostNode===null&&b.block===null){let e=n.firstChild;if(e!==null&&e.nextSibling===null&&(e.nodeType===1||e.nodeType===3))b.hostNode=e;else{let e=n.firstChild;for(;e!==null;){let t=e.nextSibling;if(I!==null){let t=e;er(n,t,t,()=>$(t,null))}else $(e,null),n.removeChild(e);e=t}}}let E=null,D={},te=!1;if(vf(r)){if(x){if((b.block!==null||b.text!==null)&&Pf(b),b.end===null){let e=b.hostNode,t=op(e,r,m,Ll(n));if(t!==e){if(e!==null&&e.parentNode!==null){let n=e.parentNode;I===null?(t!==null&&n.insertBefore(t,e),$(e,null),n.removeChild(e)):(bp(b,n),er(n,e,e,()=>$(e,null)),t!==null&&n.insertBefore(t,e))}else t!==null&&n.insertBefore(t,i??null)}b.hostNode=t;return}b.start===null&&(b.start=document.createComment(``),n.insertBefore(b.start,b.end));let e=b.hostNode;e===null&&h!==null&&(e=b.start.nextSibling,e===b.end&&(e=null));let t=op(e,r,m,Ll(n));if(t!==e){if(e!=null&&e!==t&&e.parentNode!==null){if(I!==null){bp(b,n);let t=e;er(e.parentNode,e,e,()=>$(t,null))}else $(e,null),e.parentNode.removeChild(e)}t!==null&&b.start.parentNode.insertBefore(t,b.end)}b.hostNode=t;return}E=pp,D=r}else if(typeof r==`function`)E=r,te=!0;else if(_f(r)){let e=yl,t=e!==null&&r.type===e.type;if(!t&&typeof r.type!=`function`&&typeof r.type!=`string`)throw xf(r.type);E=t?e.body:r.type,D=r.props}if(E!==null){if(te&&b.block!==null&&b.currentIsBodyFn){let e=Oo(E),t=b.block.$$implicitBail;if(e&&!t&&(b.block.$$implicitBail=!0,b.block.memoInChain=!0),t&&e&&E===b.currentComp&&Ap(b.block))return;b.block.body!==E&&z(b.block,`body`),b.currentComp!==E&&z(b,`currentComp`),b.block.body=E,K(b.block),b.currentComp=E;return}if(b.block!==null&&E===b.currentComp){if(kp(b.block,E,D)||D===b.block.props&&Ap(b.block))return;b.block.props!==D&&z(b.block,`props`),b.block.props=D,K(b.block);return}let t=N,r=m.currentRenderMode===`transition`,i=t!==null&&b.block!==null&&b.block.mounted&&h===null&&Sh(m),a=I===null||i?t:null,o=a!==null&&b.block!==null&&b.block.mounted&&b.end!==null&&h===null,s=o&&!r&&i,c=s&&!r;if(o&&(r||s)){let e=a.render(m,n,b.end,E,D,va);if(e.suspended||e.failed)throw a.dispose(e.wip),e.failed?e.error:new es(e.suspended);if(b.borrowed||c)a.dispose(e.wip);else{let t=b.block;if(b.block=e.wip.block,b.currentComp=E,b.currentIsBodyFn=te,a.splice(e.wip),Ff(b,t),m.disposed||b.block!==e.wip.block||e.wip.block.disposed)return;jf(e.wip,b.end);return}}if(h===null&&E===pp&&b.block===null&&b.hostNode!==null&&b.hostNode.nodeType===1&&b.hostNode.localName===D.type&&b.hostNode.namespaceURI===(Il(D.type,Ll(n))??Pl)&&!Uf(D.props)&&!Uf(Jf(b.hostNode)?.props??null)){let e=b.hostNode;b.hostNode=null,b.currentComp=E,b.currentIsBodyFn=!1;let t=G(`dynamic`,m,n,b.start,b.end,E,D,void 0,va);rr(t),b.borrowed&&(t.exclusiveMarkers=!0),t.$$implicitBail=!0,t.memoInChain=!0,t.deoptNode=e,b.block=t,_p={block:t,children:Jf(e)?.children};try{K(t)}finally{_p=null}return}if(I!==null&&S&&(e.mounted||I.retainedCreated?.has(m))&&!i&&h===null){let t=b.ownerHost!==null||b.borrowed&&b.start===null?n.lastChild:b.end===null?b.block?.endMarker??b.text??b.hostNode:b.end.previousSibling;if(t!==null&&t.parentNode===n){Pf(b);let r=!te||Oo(E),i=Df(m,n,t,E,D,va,`dynamic`,void 0,r);if(i.suspended||i.failed)throw Nf(i.wip),i.suspended===null?i.error:new es(i.suspended);if(e===m&&m.forSlot!==null&&!m.exclusiveMarkers&&b.borrowed&&Th(m,b.start,b.end)){let e=b.start,t=b.end;b.start=i.wip.start,b.end=i.wip.end,z(i.wip.block,`exclusiveMarkers`),i.wip.block.exclusiveMarkers=!0,wh(m,e,t,b.start,b.end),er(n,e,e),er(n,t,t)}b.start===null&&b.ownerHost===null&&!b.borrowed&&(b.start=i.wip.start),b.block=i.wip.block,b.currentComp=E,b.currentIsBodyFn=te,kf(i.wip);return}}if(h===null&&(Pf(b),m.disposed))return;b.currentComp=E,b.currentIsBodyFn=te,b.start===null&&b.ownerHost===null&&!b.borrowed&&(b.start=document.createComment(``),n.insertBefore(b.start,b.end));let l=G(`dynamic`,m,n,b.start,b.end,E,D,void 0,va);b.borrowed&&(l.exclusiveMarkers=!0),(!te||Oo(E))&&(l.$$implicitBail=!0,l.memoInChain=!0),b.block=l,K(l),h!==null&&!b.borrowed&&b.end!==null&&(h.node=b.end.nextSibling);return}if(typeof r==`object`&&r)throw bf(r);(b.block!==null||b.hostNode!==null)&&Pf(b);let ne=Ef(r);if(ne===``){b.text!==null&&(I===null?(b.text.remove(),b.text=null):Pf(b));return}if(b.text!==null){Vc(b.text,ne);return}if(h!==null){let e=h.node;if(e!==null&&e!==b.end&&e.nodeType===3){b.text=e,h.node=e.nextSibling,Vc(e,ne);return}}let re=document.createTextNode(ne);n.insertBefore(re,b.end),b.text=re}function Sp(e,t,n,r,i,a,o){Q(e,t,n,r,i,a,void 0,o);let s=e.slots[t];return s.block===null&&s.forSlot===null&&s.hostNode===null?s.text:null}function Cp(e,t,n,r,i,a,o,s,c){if(r===null||typeof r!=`object`&&typeof r!=`function`){if(a===r)return i;if(i!=null&&r!==null)return Hc(i,r===!0?``:r),i}return Sp(e,t,n,r,o,s,c)}function wp(e,t,n,r,i,a){if(r===null||typeof r!=`object`&&typeof r!=`function`){if(a===r)return i;if(i!=null&&r!==null)return Hc(i,r===!0?``:r),i}return Tp(e,t,n,r,i)}function Tp(e,t,n,r,i){if(n.nodeType===1&&me.has(n.localName)&&!yp(e.block,n)&&r!=null)throw Error(O(26,n.localName));if(ul(n,r))return null;let a=typeof r,o=e.slots[t];if(I!==null&&o===void 0&&e.mounted&&(sr(),Yn(n,null,null),z(e.slots,String(t))),o===void 0&&a!==`object`&&a!==`function`){let o=r==null||r===!1||r===!0?``:a===`string`?r:String(r);if(o===``)return i!==null&&i.remove(),null;if(i!==null)return Vc(i,o),i;let s=X();if(s!==null)return s.htext(n,o,_t(e,t));let c=document.createTextNode(o);return n.appendChild(c),c}o===void 0&&i!==null&&i.remove();let s=X();s!==null&&o===void 0&&(s.node=n.firstChild),Q(e,t,n,r,null,!1,n);let c=e.slots[t];return c.block===null&&c.forSlot===null&&c.hostNode===null?c.text:null}function Ep(e){let t=e.$$ctxReads;if(t===null)return!1;for(let[e,n]of t)if(e.$$version!==n)return!0;return!1}function Dp(e){let t=e.$$ctxDirect;if(t===null)return!1;for(let[e,n]of t)if(e.$$version!==n)return!0;return!1}function Op(e){let t=e._slots;if(t!==null)for(let e=0,n=t.length;e<n;e++){let n=t[e];if(n.__kind===`forBlockSlot`){let e=n.items;for(let t of e.values())Pp(t);n.emptyBlock&&Pp(n.emptyBlock)}else if(n.block)Pp(n.block);else if(n.__kind===`childSlot`&&n.forSlot){let e=n.forSlot.items;for(let t of e.values())Pp(t)}else n.__kind===`childSlot`&&n.portal!==null&&n.portal.block!==null&&Pp(n.portal.block)}}function kp(e,t,n){if(t.__memo!==!0||!e.mounted||e.renderStatus!==wt)return!1;let r=t.__compare;return!(r?r(e.props,n):Rp(e.props,n))||Dp(e)?!1:(Ep(e)&&Op(e),jp(e),nh(e),!0)}function Ap(e){return e.$$implicitBail!==!0||!e.mounted||e.renderStatus!==wt||Dp(e)?!1:(Ep(e)&&Op(e),jp(e),nh(e),!0)}function jp(e){let t=e.$$ctxReads,n=e.$$ctxDirect,r=t!==null&&t.size>0,i=n!==null&&n.size>0;if(!(!r&&!i))for(let a=e.parentBlock;a!==null;a=a.parentBlock){if(a.body?.__memo!==!0&&a.$$implicitBail!==!0)continue;let e=a.$$ctxReads??=new Map;if(r)for(let[n,r]of t){let t=e.get(n);(t===void 0||t===n.$$version)&&e.set(n,r)}if(i)for(let[t,r]of n){let n=e.get(t);(n===void 0||n===t.$$version)&&e.set(t,r)}}}function Mp(e){if(e.block===e){let t=e;if(t.body?.__memo===!0||t.$$implicitBail===!0){jp(t);return}t.$$ctxDirect!==null&&t.$$ctxDirect.size!==0&&jp(t)}Fh(e,Mp)}function Np(e){if(e.__kind===`forBlockSlot`){for(let t=e.head;t!==null;t=t.nextSibling)Mp(t);e.emptyBlock!==null&&Mp(e.emptyBlock);return}if(e.block!==void 0&&e.block!==null){Mp(e.block);return}if(e.__kind===`childSlot`){if(e.forSlot!==null){let t=e.forSlot;for(let e=t.head;e!==null;e=e.nextSibling)Mp(e);t.emptyBlock!==null&&Mp(t.emptyBlock)}else e.portal?.block!==void 0&&e.portal.block!==null&&Mp(e.portal.block)}}function Pp(e){Dp(e)?K(e):e.body?.__memo===!0||e.$$implicitBail===!0?Ep(e)&&Op(e):Op(e)}function Fp(e,t){e.renderStatus===wt?t&&Pp(e):K(e)}function Ip(e,t,n,r=!1){let i=xo;if(n===void 0)return i;let a=Qm!==null,o=r&&e.block.memoInChain,s=j!==null&&j.renderStatus!==wt;if(n===i&&!a&&!o&&!s)return i;let c=e.slots[t];if(c==null)return i;if(a||s){let e=n!==i,t=c.__kind===`forBlockSlot`?c:c.__kind===`childSlot`?c.forSlot:null;if(t!==null){for(let n=t.head;n!==null;n=n.nextSibling)Fp(n,e),a&&nh(n);t.emptyBlock!==null&&(Fp(t.emptyBlock,e),a&&nh(t.emptyBlock))}else{let t=c.block??(c.__kind===`childSlot`?c.portal?.block:null);t!=null&&(Fp(t,e),a&&nh(t))}return o&&Np(c),i}if(n!==i){if(c.__kind===`forBlockSlot`){for(let e of c.items.values())Pp(e);c.emptyBlock&&Pp(c.emptyBlock)}else if(c.block)Pp(c.block);else if(c.__kind===`childSlot`&&c.forSlot)for(let e of c.forSlot.items.values())Pp(e);else c.__kind===`childSlot`&&c.portal?.block&&Pp(c.portal.block)}return o&&Np(c),i}var Lp=Object.prototype;function Rp(e,t){if(e===t)return!0;if(e==null||t==null)return!1;let n=Object.getPrototypeOf(e),r=Object.getPrototypeOf(t);if(n!==Lp&&n!==null||r!==Lp&&r!==null)return zp(e,t);let i=0;for(let n in e){let r=e[n];if(!Object.is(r,t[n])||r===void 0&&!Se.call(t,n))return!1;i++}for(let e in t)i--;return i===0}function zp(e,t){let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++){let i=n[r];if(!Se.call(t,i)||!Object.is(e[i],t[i]))return!1}return!0}var Bp=1/0,Vp=300,Hp=-1/0,Up=new Map,Wp=!1;function Gp(e){for(;e.parentBlock!==null;)e=e.parentBlock;return e}function Kp(e){let t=e.afterCommit;t!==void 0&&(e.afterCommit=void 0,queueMicrotask(()=>{for(let e of t)e()}))}function qp(e,t){t.states.size!==0||t.flushing||(t.timer!==null&&clearTimeout(t.timer),Up.delete(e),Up.size===0&&(ri.find=qm))}function Jp(e){if(Up.size===0)return;let t=Gp(e.parentBlock),n=Up.get(t);n===void 0||!n.states.delete(e)||(qp(t,n),Kp(n))}function Yp(e,t){t.queued||t.flushing||(t.queued=!0,queueMicrotask(()=>{if(t.queued=!1,Up.get(e)!==t)return;t.timer!==null&&clearTimeout(t.timer),t.timer=null;let n=Hp+Vp-performance.now();Kr!==0||n<=10?$p(e,t):t.timer=setTimeout(()=>$p(e,t),n)}))}function Xp(e,t){let n=Gp(e.parentBlock),r=Up.get(n);r===void 0&&(r={states:new Map,timer:null,queued:!1,flushing:!1},Up.set(n,r),ri.find=Zp),r.states.set(e,t??e.stagedCapture),Yp(n,r)}function Zp(e,t,n){if(e!==null){let t=Gp(e),n=Up.get(t);n!==void 0&&Yp(t,n)}return t?qm(e,!0,n):qm(e,!1)}function Qp(e){if(!e.parentBlock.disposed){if(H!==null){Br??=Qp,(H.suspenseCommits??=new Set).add(e);return}Jm(e.parentBlock)===null&&(Hp=performance.now())}}function $p(e,t){if(Up.get(e)!==t)return;t.timer!==null&&clearTimeout(t.timer),t.timer=null;let n=()=>{if(Up.get(e)!==t)return;t.flushing=!0;let n=[...t.states].sort(([e],[t])=>uh(e,t)),r=fn,i=Wp;fn=!0,Wp=!0;try{for(let[e,r]of n)!t.states.has(e)||t.states.get(e)!==r||(t.states.delete(e),!(e.parentBlock.disposed||e.branch!==2||e.pendingThenable!==null)&&(r!==null&&`error`in r?xh(e.tryBlock??e.parentBlock,r.error):(r!==null&&dh(r),Gm(e))))}finally{fn=r,Wp=i,t.flushing=!1,qp(e,t),t.states.size!==0&&Yp(e,t),r||Li(),Kp(t)}};kr?.wrapResume(n)!==!0&&n()}var em=new WeakMap,tm=new WeakMap,nm=0,rm=0,im=null,am=0;function om(e){let t=im??=new WeakMap;t.set(e,(t.get(e)??0)+1),am++}function sm(e){let t=im,n=t?.get(e);n!==void 0&&(n===1?t.delete(e):t.set(e,n-1),am--)}function cm(e){if(am===0)return!0;let t=im;for(let n=e;n!==null;n=n.parentNode)if(t.has(n))return!1;return!0}function lm(e){let t=em.get(e),n=t!==void 0&&t.importantOwners>0?`important`:``,r=e.style;(r.getPropertyValue(`display`)!==`none`||r.getPropertyPriority(`display`)!==n)&&r.setProperty(`display`,`none`,n)}function um(e,t){t.value===``?e.style.removeProperty(`display`):e.style.setProperty(`display`,t.value,t.priority),!t.hadStyle&&e.getAttribute(`style`)===``&&e.removeAttribute(`style`)}function dm(e,t,n,r){let i=em.get(e);if(i===void 0)return!1;F!==null&&F.push(Ln,i,`value`,i.value,Ln,i,`priority`,i.priority,Ln,i,`hadStyle`,i.hadStyle),um(e,i);try{r===void 0?Jl(e,e.style,t,n):t==null||typeof t==`boolean`?e.style.removeProperty(at(r)):Yl(e,e.style,r,t)}finally{i.value=e.style.getPropertyValue(`display`),i.priority=e.style.getPropertyPriority(`display`),i.hadStyle=e.hasAttribute(`style`),lm(e)}return!0}function fm(e,t){let n=tm.get(e);return n!==void 0&&(F!==null&&F.push(Ln,n,`data`,n.data),n.data=t,!0)}function pm(e,t){let n=em.get(e);n===void 0?(nm++,Bc=dm,em.set(e,{owners:1,importantOwners:+!!t,value:e.style.getPropertyValue(`display`),priority:e.style.getPropertyPriority(`display`),hadStyle:e.hasAttribute(`style`)})):(n.owners++,t&&n.importantOwners++),lm(e)}function mm(e,t,n=!0){let r=em.get(e);r!==void 0&&(t&&r.importantOwners--,--r.owners===0?(em.delete(e),--nm===0&&(Bc=null),n&&um(e,r)):lm(e))}function hm(e){e.data!==``&&(e.data=``)}function gm(e){let t=tm.get(e);t===void 0?(rm++,zc=fm,tm.set(e,{owners:1,data:e.data})):t.owners++}function _m(e,t=!0){let n=tm.get(e);n!==void 0&&(--n.owners===0?(tm.delete(e),--rm===0&&(zc=null),t&&(e.data=n.data)):hm(e))}function vm(e,t){Jp(e),Ha?.delete(e),e.block!==null&&q(e.block,t),Af(e.stagedCapture),e.stagedCapture=null,e.stagedEffectDeps=null;let n=e.detachedRefs!==null;if(e.detachedRefs=null,e.pendingThenable=null,e.tryBlock!==null&&e.tryBlock!==e.block){let t=e.tryBlock,r=null;n&&(r=[],Lh(t,r)),Fm(e),Ai(r,()=>{q(t,!0)}),e.tryBlock=null}Im(e),xm(e,-1),e.block=null}function ym(e){let t=H===null?Kn(e.parentBlock.idState.renderOwner):null;return I!==null&&!L&&(e.start.parentNode===e.domParent&&e.end.parentNode===e.domParent?Jn(e,e.domParent,e.start,e.end):cr(e)),t}function bm(e){e!==null&&(qn(e),I===null&&ar(),!Wt&&!Ut&&(Ut=!0,queueMicrotask(oi)))}function xm(e,t){e.branch=t}function Sm(e){let t=e.block,n=e.tryBlock;t!==null&&q(t),n!==null&&n!==t&&q(n),e.block=null,e.tryBlock=null}function Cm(e,t,n=!1){if(t instanceof Ue||(Sm(e),e.pendingThenable=null,xm(e,0),e.err=t,e.catchBody===null))throw t;let r=G(`control-flow`,e.parentBlock,e.domParent,null,null,e.catchBody,{err:t,reset:e.reset},e.env);e.block=r;try{K(r)}finally{n&&yg(e)}}function wm(e,t){if(Sm(e),xm(e,2),e.pendingThenable=t,e.pendingBody!==null){let t=G(`control-flow`,e.parentBlock,e.domParent,null,null,e.pendingBody,void 0,e.env);e.block=t,K(t)}let n=()=>{e.pendingThenable!==t||e.parentBlock.disposed||(e.pendingThenable=null,xm(e,-1),U(e.parentBlock))};t.then(n,n)}function Tm(e){if(e.branch===0&&e.block!==null){e.block.body=e.catchBody,e.block.props={err:e.err,reset:e.reset},e.block.extra=e.env,K(e.block);return}if(e.branch===2){e.block!==null&&e.pendingBody!==null&&(e.block.body=e.pendingBody,e.block.extra=e.env,K(e.block));return}let t=e.tryBlock;t===null||t.disposed?(e.block!==null&&q(e.block),t=G(`control-flow`,e.parentBlock,e.domParent,null,null,e.tryBody,void 0,e.env),e.tryBlock=t,e.block=t,xm(e,1),t.$$tryHandler=t=>{try{Cm(e,t)}catch(t){let n=yh(e.parentBlock);n===null?console.error(t):n(t)}},e.propagateSuspense||(t.__suspenseHandler=t=>{wm(e,t)})):(t.body=e.tryBody,t.extra=e.env);try{K(t),e.hasResolved=!0}catch(t){if(ts(t)){if(e.propagateSuspense)throw t;wm(e,t.thenable)}else Cm(e,t,!0)}}function Em(e,t,n,r,i,a,o,s,c=!1){c||=a===null,a!==null&&(Jt(),ii());let l=e.block,u=X(),d=e.slots[t];if(d===void 0){let f,p,m=u?.passthroughRanges===!0,h=m?null:u?.resolveOpen(o??null,n)??null;m?(f=document.createComment(`passthrough-try`),p=document.createComment(`/passthrough-try`)):h===null?(f=document.createComment(`try`),p=document.createComment(`/try`),n.insertBefore(f,o??null),n.insertBefore(p,o??null)):(f=h,p=u.close(h));let g;g={__kind:`trySlotSlot`,__flags:Aa,__teardown:vm,start:f,end:p,branch:-1,block:null,tryBlock:null,hiddenDom:null,tryBody:r,catchBody:i,pendingBody:a,propagateSuspense:c,env:s,hasResolved:!1,err:null,pendingThenable:null,stagedCapture:null,stagedEffectDeps:null,transitionHeld:!1,transitionTimeoutId:null,detachedRefs:null,domParent:n,parentBlock:l,idState:l.idState,passthrough:m,reset:()=>hh(g)},e.slots[t]=g,ka(e,g),d=g}else d.tryBody=r,d.catchBody=i,d.pendingBody=a,d.propagateSuspense=c,d.env=s;let f=d;return f.passthrough?(Tm(f),f.reset):(f.branch===0?(f.block.body=f.catchBody,f.block.props={err:f.err,reset:f.reset},f.block.extra=f.env,K(f.block)):f.branch===2&&f.tryBlock&&!f.tryBlock.disposed&&f.hiddenDom?(ah(f,void 0,`parent`),f.branch===2&&Um(f)):f.branch===2?jm(f):f.branch===1&&f.tryBlock?Dm(f):jm(f),f.reset)}function Dm(e,t){let n=e.tryBlock;n.body=e.tryBody,n.extra=e.env,t!==void 0&&(n.pendingMode!==`urgent`&&(n.pendingMode=t.pendingMode??`urgent`),n.pendingDeferred=t.pendingDeferred,ma(t,n));let r=wr(e),i=H,a=r<0?null:Vr(),o=a===null?null:Xm(n),s=W.length,c=!1,l;a!==null&&(H=a);try{K(n)}catch(e){c=!0,l=e}finally{H=i}try{if(c){if(a!==null&&(W.splice(s),Zm(n,o),Af(a)),Ko(l)||l instanceof Ue)throw l;if(ts(l)){if(e.propagateSuspense)throw l;Lm(e,l.thenable,n,r)}else _h(e,l,!0)}else a!==null&&Of(a),Tn(e)||(Im(e),e.pendingThenable=null)}finally{Tr(r)}}function Om(e,t,n){let r=G(`control-flow`,e.parentBlock,e.domParent,t,n,e.tryBody,void 0,e.env);return r.idState=e.idState,r.__trySlot=e,r.$$tryHandler=t=>(_h(e,t),e.block),e.propagateSuspense||(r.__suspenseHandler=(t,n)=>{Lm(e,t,n)}),e.tryBlock=r,r}function km(e){Ha?.delete(e);let t=e.tryBlock,n=[];return Lh(t,n),Fm(e),e.tryBlock=null,Ai(n,()=>q(t)),e.parentBlock.disposed||e.tryBlock!==null||e.branch!==2?null:Am(e)}function Am(e){let t=document.createComment(`try-b`),n=document.createComment(`/try-b`),r=e.block?.startMarker??e.end;e.domParent.insertBefore(t,r),e.domParent.insertBefore(n,r);let i=Om(e,t,n);return e.detachedRefs=[],Pm(e),i}function jm(e){Jp(e),Ha?.delete(e);let t=e.branch===2,r=X();Af(e.stagedCapture),e.stagedCapture=null,e.stagedEffectDeps=null,e.detachedRefs=null;let i=e.tryBlock;i&&(Fm(e),q(i),e.tryBlock=null),e.block&&e.block!==i&&q(e.block),e.block=null,e.hiddenDom=null,e.hasResolved=!1,xm(e,1);let a,o,s=null,c,u=!1,d=!1,f=e.start.nextSibling,p=null;if(r!==null&&f!==null&&f.nodeType===8&&f.data.startsWith(`oct-seed:`)){u=!0,p=f.data.slice(pe.length);let e=typeof window<`u`?window.$OCTS:void 0,t=e===void 0?void 0:e[p];typeof t==`string`&&(s=r.parseSeeds(t));let n=e?.[p+`$signals`];typeof n==`string`&&(c=n),f=f.nextSibling}else if(r!==null&&f!==null&&f.nodeType===1&&l(f)){u=!0,d=!0,p=f.getAttribute(n);let t=f;for(;t!==null&&t!==e.end;){let e=t.nextSibling;t.remove(),t=e}f=e.end,r.node=e.end}p!==null&&(e.idState={prefix:e.parentBlock.idState.prefix+`b`+p+`-`,next:0,renderOwner:e.parentBlock.idState.renderOwner});let m=mt(r,f,e.end,e.idState);m!==null&&(e.idState=m,d=!0,f=e.end,s=null,c=void 0),r!==null&&r.isOpen(f)?(a=f,o=r.close(a),r.node=a.nextSibling):(s=null,a=document.createComment(`try-b`),o=document.createComment(`/try-b`),e.domParent.insertBefore(a,e.end),e.domParent.insertBefore(o,e.end),r!==null&&(r.markFresh(a),r.markFresh(o)));let h=Om(e,a,o);e.block=h;let g;if(c!==void 0&&!d){let e=p;g=ft(h,tt(c),()=>{let t=typeof window<`u`?window.$OCTS:void 0;t!==void 0&&(delete t[e+`$signals`],delete t[e])})}let _=r?.seeds??null,v=r?.seedCursor??0;u&&(r.seeds=s,r.seedCursor=0);let y=u||d?We(g?.resolve??null):void 0;d&&r.depth++;try{K(h),e.hasResolved=!0,t&&Qp(e)}catch(t){if(Ko(t)||t instanceof Ue)throw t;if(ts(t)){if(e.propagateSuspense)throw t;Lm(e,t.thenable,h)}else{let n=r?.isRejection(t)===!0;e.tryBlock&&(q(e.tryBlock,!n),e.tryBlock=null,e.block=null),_h(e,t,!0,n?a:void 0,n?o:void 0)}}finally{d&&r.depth--,y!==void 0&&We(y),u&&(r.seeds=_,r.seedCursor=v)}}function Mm(e,t){let n=e.startMarker.nextSibling;for(;n!==null&&n!==e.endMarker;){if(n.nodeType===1){let e=n;t.displays.has(e)?lm(e):(t.displays.add(e),pm(e,!0))}else if(n.nodeType===3){let e=n;t.texts.has(e)||(t.texts.add(e),gm(e)),hm(e)}n=n.nextSibling}}function Nm(e,t){Fh(e,e=>{let n=e.block===e?e:null;n?.kind===`portal`&&Mm(n,t),Nm(e,t)})}function Pm(e){let t=e.tryBlock;if(t===null||e.hiddenDom!==null)return;let n={displays:new Set,texts:new Set,active:!0};e.hiddenDom=n,F!==null&&R(()=>{if(e.hiddenDom===n&&(e.hiddenDom=null),n.active){n.active=!1;for(let e of n.displays)mm(e,!0);for(let e of n.texts)_m(e)}}),Mm(t,n),Nm(t,n)}function Fm(e){let t=e.hiddenDom;if(t!==null&&(e.hiddenDom=null,F!==null&&R(()=>{if(e.hiddenDom=t,!t.active){t.active=!0;for(let e of t.displays)pm(e,!0);for(let e of t.texts)gm(e),hm(e)}}),t.active)){t.active=!1;for(let e of t.displays)mm(e,!0);for(let e of t.texts)_m(e)}}function Im(e){Dn(e),e.transitionHeld&&(e.transitionHeld=!1,Ar(-1)),ch(e),e.transitionTimeoutId!==null&&(clearTimeout(e.transitionTimeoutId),e.transitionTimeoutId=null)}function Lm(e,t,n,r=-1){if(ii(),(n.currentRenderMode===`transition`||e.transitionHeld)&&e.hasResolved&&e.branch===1&&e.hiddenDom===null){Or(r,e.tryBlock??n),pn!==null&&(pn.heldSlots??=new Set).add(e),e.transitionHeld||(e.transitionHeld=!0,Ar(1)),sh(e),e.pendingBody!==null&&Bp!==1/0&&Bp>=0&&(e.transitionTimeoutId===null||e.pendingThenable!==t)&&(e.transitionTimeoutId!==null&&(clearTimeout(e.transitionTimeoutId),e.transitionTimeoutId=null),e.transitionTimeoutId=setTimeout(()=>{e.transitionTimeoutId=null,e.pendingThenable===t&&e.transitionHeld&&e.branch===1&&Wm(e)},Bp)),ph(e,t);return}zm(e,t)}function Rm(e){let t=H===null?V:H.effects;for(let n=jr;n<=Mr;n++){let r=t[n];for(let t=0;t<r.length;t++){let n=r[t],i=n.scope.block;if(i.disposed||i!==e&&!Hi(e,i))continue;let a=n.scope.hooks?.get(n.slot);a!==void 0&&a.revision===n.revision&&(a.revision++,a.active=a.connectedFn!==null,a.deps=a.connectedFn===null?void 0:a.connectedArgs,ma(i,e))}}}function zm(e,t){let n=ym(e);try{return Bm(e,t)}catch(e){throw n!==null&&ir(n.transaction),e}finally{bm(n)}}function Bm(e,t){let n=e.branch===2,r=X();if(r!==null&&!e.hasResolved&&e.tryBlock!==null){let t=e.tryBlock;q(t),e.tryBlock=null,e.block===t&&(e.block=null),r.node=e.end}else Pm(e);let i=e.block!==null&&e.block!==e.tryBlock?e.block:null;if(e.block=null,xm(e,2),i!==null&&(q(i),e.parentBlock.disposed||e.block!==null||e.branch!==2))return!1;if(e.tryBlock){let t=e.tryBlock,n=Ii(t);Rm(t),z(t,`inactive`),t.inactive=!0;let r=()=>Vm(e,t,n);H===null?Pr.push(r):(H.renderCleanups??=[]).push(e=>{e||Pr.push(r)})}return!Hm(e)||e.parentBlock.disposed||e.branch!==2?!1:(n||Qp(e),t!==void 0&&ph(e,t),!e.parentBlock.disposed&&e.branch===2)}function Vm(e,t,n){if(Ni(t)||e.tryBlock!==t||e.branch!==2)return;let r=e.parentBlock.idState.renderOwner,i=r?.generation;Rh(t,!1),!(Ni(t)||e.tryBlock!==t||e.branch!==2||r?.generation!==i)&&(e.detachedRefs===null&&(e.detachedRefs=[],Ih(t,e.detachedRefs,!0,!1,n)),!(Ni(t)||e.tryBlock!==t||r?.generation!==i)&&Ii(t,n))}function Hm(e){if(e.pendingBody){let t=document.createComment(`pend-b`),n=document.createComment(`/pend-b`);e.domParent.insertBefore(t,e.end),e.domParent.insertBefore(n,e.end);let r=G(`control-flow`,e.parentBlock,e.domParent,t,n,e.pendingBody,void 0,e.env);r.idState=e.idState,r.__trySlot=e,e.block=r;try{K(r)}catch(t){return!gh(r,t)&&(e.block&&=(q(e.block),null),_h(e,t),!1)}}return!0}function Um(e){if(e.branch!==2)return;let t=e.block===e.tryBlock?null:e.block;if(e.pendingBody===null){t&&q(t),e.block=null;return}if(t===null){Hm(e);return}t.body=e.pendingBody,t.extra=e.env;try{K(t)}catch(n){if(gh(t,n))return;q(t),e.block=null,_h(e,n)}}function Wm(e){!e.pendingBody||e.branch!==1||!e.tryBlock||(hn!==null&&hn.holders.has(e)&&En(),zm(e))}function Gm(e){!dn&&!Wp&&kr?.wrapResume(()=>Km(e))===!0||Km(e)}function Km(e){if(e.parentBlock.disposed)return;if(k!==null&&e.hiddenDom!==null){let t=e.stagedCapture;if(t===null||!k.validateCapture(t)){let t=J;J=!0,e.transitionHeld&&e.tryBlock!==null&&(e.tryBlock.pendingMode=`transition`);try{ah(e,`urgent`),fn||Li()}finally{J=t}return}H===null&&dt(t,e.parentBlock.idState.renderOwner)}let t=e.branch===2,n=Ym(e.parentBlock),r=e.transitionHeld,i=r;r&&(e.transitionHeld=!1),un.delete(e),P.delete(e);try{let n=e.tryBlock;if(n&&!n.disposed){let a=e.hiddenDom!==null,o=e.stagedCapture;if(e.stagedCapture=null,e.stagedEffectDeps=null,e.hiddenDom){if(e.block&&e.block!==n){let t=e.block;if(e.block=null,q(t),e.parentBlock.disposed||n.disposed||e.tryBlock!==n||e.block!==null){Af(o);return}}Fm(e)}if(e.block=n,xm(e,1),n.body=e.tryBody,r&&(n.pendingMode=`transition`),n.inactive=!1,o!==null)n.pendingMode=null,n.pendingDeferred=!1,e.detachedRefs!==null&&(o.refs.length=0),Of(o),e.hasResolved=!0;else{let t=wr(e),o=Vr(),s=Xm(n),c=H,l=W.length,u=J;J=!0,H=o;let d=!1,f=null,p=!1;try{a?rh(n,o):K(n),k!==null&&(p=!k.validateCapture(o),!p&&c===null&&dt(o,e.parentBlock.idState.renderOwner))}catch(e){d=!0,f=e}finally{H=c,J=u,!d&&!p&&Tr(t)}if(p){try{Or(t,n),W.splice(l),Zm(n,s),Af(o),r&&(e.transitionHeld=!0,un.add(e),i=!1),ma(n,n),U(n)}finally{Tr(t)}return}if(!d)e.detachedRefs!==null&&(W.splice(l),o.refs.length=0),Of(o),e.hasResolved=!0;else{try{W.splice(l),Zm(n,s),Af(o),ts(f)?Lm(e,f.thenable,n,t):xh(n,f)}finally{Tr(t)}if(e.parentBlock.disposed)return}}e.branch===1&&(t&&Qp(e),Ka(e),ih(e))}else jm(e);fn||Li()}finally{n!==null&&jh(n),i&&Ar(-1)}}function qm(e,t,n=null){let r=null,i=null;for(let a=e;a!==null;a=a.parentBlock){if(t&&r===null&&a.inactive){let e=a.__activitySlot;e!==void 0&&e.block===a&&e.hidden&&(r=e)}let e=a.__trySlot;if(e!==void 0&&e.tryBlock===a){if(e.hiddenDom!==null)return e;n!==null&&!e.propagateSuspense&&e.hasResolved&&e.branch===1&&(e.transitionHeld||n===`transition`)&&(i=e)}}return r??i}function Jm(e){return qm(e,!1)}function Ym(e){for(let t=e;t!==null;t=t.parentBlock){if(!t.inactive)continue;let e=t.__activitySlot;if(e!==void 0&&e.block===t&&e.hidden)return e}return null}function Xm(e,t){let n=new Map,r=e=>{let i=e.effectSlots;if(i!==null)for(let e=0;e<i.length;e++){let r=i[e];(t===void 0||r.phase===t)&&n.set(r,{deps:r.deps,revision:r.revision,active:r.active})}Fh(e,r)};return r(e),n}function Zm(e,t,n){let r=e=>{let i=e.effectSlots;if(i!==null)for(let e=0;e<i.length;e++){let r=i[e];if(n!==void 0&&r.phase!==n)continue;let a=t.get(r);a===void 0?(r.deps=void 0,r.revision=0,r.active=!1):(r.deps=a.deps,r.revision=a.revision,r.active=a.active)}Fh(e,r)};r(e)}var Qm=null;function $m(e){for(let t=Qm;t!==null;t=t.parent)t.insertionReplays?.delete(e)}function eh(e,t,n){for(let r=Qm;r!==null;r=r.parent)r.queues[t]===n&&r.queuedSlots.add(e)}function th(e,t,n){for(let r=Qm;r!==null;r=r.parent)if(r.queues[t]===n){for(let t of e)r.queuedSlots.delete(t);for(let t=0;t<n.length;t++){let i=n[t],a=i.scope.hooks?.get(i.slot);a!==void 0&&e.has(a)&&a.revision===i.revision&&r.queuedSlots.add(a)}}}function nh(e){let t=Qm;if(t===null||e!==t.root&&!Hi(t.root,e))return;let n=[],r=e=>{let i=e.effectSlots;if(i!==null)for(let r=0;r<i.length;r++){let a=i[r];if(t.queuedSlots.has(a))continue;let o=t.insertionReplays?.get(a);if(o!==void 0){n.push({scope:e,effect:a,replay:o});continue}a.active&&a.disconnected&&a.connectedFn!==null&&n.push({scope:e,effect:a,replay:null})}Fh(e,r)};r(e);for(let e=0;e<n.length;e++){let{scope:r,effect:i,replay:a}=n[e],o=t.queues[i.phase];if(a!==null){let e=a[a.length-1];i.active=e.fn!==null,i.deps=e.fn===null?void 0:e.args;let t=++i.revision;for(let e=0;e<a.length;e++)o.push({...a[e],revision:t,seq:Ir++})}else o.push({scope:r,slot:i.slot,fn:i.connectedFn,order:i.order,revision:i.revision,args:i.connectedArgs,phase:i.phase,seq:Ir++});eh(i,i.phase,o)}}function rh(e,t,n=null){let r=t===null?V:t.effects,i=new Set;for(let e=0;e<r.length;e++){let t=r[e];for(let e=0;e<t.length;e++){let n=t[e],r=n.scope.hooks?.get(n.slot);r?.effect===!0&&r.revision===n.revision&&i.add(r)}}let a=Qm;Qm={root:e,queues:r,queuedSlots:i,insertionReplays:n,parent:a};try{K(e)}finally{Qm=a}}function ih(e){if(e.detachedRefs===null||e.tryBlock===null)return;e.detachedRefs=null;let t=[];Lh(e.tryBlock,t);for(let e=0;e<t.length;e++){let n=t[e];wi(n.scope,n.ref,n.el)}}function ah(e,t,n=`update`){let r=Ym(e.tryBlock),i=J;n===`retry`&&(J=!0);try{oh(e,t,n)}finally{J=i,r!==null&&jh(r)}}function oh(e,t,n=`update`){let r=n===`retry`,i=e.tryBlock;if(i===null||i.disposed||e.hiddenDom===null)return;let a=Jm(i.parentBlock);if(a!==null){oh(a,t,n);return}if(Jp(e),P.delete(e),e.stagedCapture!==null){let t=e.stagedCapture,n=e.stagedEffectDeps;e.stagedCapture=null,e.stagedEffectDeps=null,n!==null&&Zm(i,n),Af(t),Rh(i,!1)}let o=Xm(i);if(n===`parent`&&!J&&!e.hasResolved){let t=!0;for(let e of o.keys())if(e.phase===B&&e.connectedFn!==null){t=!1;break}if(t){if(i=km(e),i===null)return;o.clear()}}Fm(e),i.body=e.tryBody,i.extra=e.env,i.inactive=!1;let s=(t??i.pendingMode??j?.currentRenderMode??`urgent`)===`transition`&&un.has(e),c=Vr(),l=H,u=W.length;H=c;let d=!1,f=null;try{rh(i,c)}catch(e){d=!0,f=e}finally{H=l}if(W.splice(u),c.refs.length=0,d){Zm(i,o),Af(c),ts(f)?(Rh(i,!1),Pm(e),i.inactive=!0,ph(e,f.thenable)):r?(Pm(e),i.inactive=!0,e.pendingThenable=null,Xp(e,{error:f})):(xh(i,f),!Gt&&j===null&&Li());return}if(s||r){e.pendingThenable=null,e.stagedCapture=c,e.stagedEffectDeps=o,Pm(e),i.inactive=!0,s?(P.add(e),queueMicrotask(lh)):Xp(e);return}if(k!==null){if(!k.validateCapture(c)){Zm(i,o),Af(c),Pm(e),i.inactive=!0,ma(i,i),U(i);return}H===null&&dt(c,e.parentBlock.idState.renderOwner)}try{if(e.block!==null&&e.block!==i){let t=e.block;if(e.block=null,q(t),e.parentBlock.disposed||i.disposed||e.tryBlock!==i||e.block!==null){Af(c);return}}e.block=i,xm(e,1),e.hasResolved=!0,e.pendingThenable=null,Of(c),Qp(e),Ka(e),ih(e),e.transitionTimeoutId!==null&&(clearTimeout(e.transitionTimeoutId),e.transitionTimeoutId=null),e.transitionHeld&&(e.transitionHeld=!1,Ar(-1)),un.has(e)&&(un.delete(e),P.delete(e),queueMicrotask(lh))}catch(t){_h(e,t)}}function sh(e){un.add(e),P.delete(e)}function ch(e){un.has(e)&&(un.delete(e),P.delete(e),lh())}function lh(){for(let e of P)un.has(e)||P.delete(e);if(P.size!==0&&P.size===un.size){for(let e of un)if(!P.has(e))return;fh()}}function uh(e,t){if(e===t)return 0;let n=e.start.compareDocumentPosition(t.start);return n&Node.DOCUMENT_POSITION_FOLLOWING?-1:n&Node.DOCUMENT_POSITION_PRECEDING?1:0}function dh(e){let t=e.effects[B].concat(e.effects[jr],e.effects[Mr]).sort((e,t)=>e.seq-t.seq);for(let e=0;e<t.length;e++)t[e].seq=Ir++}function fh(){if(!dn){if(hn!==null){let e=!0;for(let t of hn.holders)if(t.hiddenDom!==null){e=!1;break}if(e&&En()){P.clear(),oi();return}}dn=!0;try{let e=()=>{let e=[...P];P.clear();let t=e.every(e=>e.stagedCapture!==null);if(t){e.sort(uh);for(let t of e)dh(t.stagedCapture)}let n=fn;fn=t;try{for(let t of e)t.tryBlock!==null&&t.tryBlock.disposed||Gm(t)}finally{fn=n,t&&Li()}};kr?.wrapResume(e)!==!0&&e()}finally{dn=!1}}}function ph(e,t){if(e.pendingThenable===t)return;e.pendingThenable=t;let n=()=>{if(e.pendingThenable!==t)return;e.pendingThenable=null,e.transitionTimeoutId!==null&&(clearTimeout(e.transitionTimeoutId),e.transitionTimeoutId=null);let n=e.tryBlock;if(n!==null&&!n.disposed){let e=Jm(n.parentBlock);if(e!==null){ah(e,un.has(e)?`transition`:`urgent`,un.has(e)?`update`:`retry`);return}}if(un.has(e)){if(e.hiddenDom!==null){ah(e,`transition`);return}if(P.add(e),P.size<un.size)return;fh();return}e.branch===2&&(e.tryBlock===null||e.tryBlock.disposed)&&Am(e),e.hiddenDom===null?Gm(e):ah(e,`urgent`,`retry`)};t.then(n,n)}function mh(e){Jt(),Kt++;let t=Yt,n=Xt,r=t??n??Qt(),i=t===null&&n===null;Yt=r;let a=nd;a!==null&&a.transitions++;let o;try{Ar(1);try{o=e(),o!=null&&typeof o.then==`function`&&(r.pendingActions++,Xt=r),i&&(r.closed=!0,an(r))}catch(e){throw i&&(r.closed=!0,an(r)),e}finally{Yt=t,Kt--}}catch(e){throw Ar(-1),a!==null&&id(a),sd(),e}if(o!=null&&typeof o.then==`function`){qt++;let e=!1,t=()=>{e||(e=!0,r.pendingActions--,an(r),Ar(-1),qt--,a!==null&&id(a),sd())};o.then(t,t)}else queueMicrotask(()=>{Ar(-1),a!==null&&id(a),sd()})}function hh(e){e.parentBlock.disposed||e.branch!==0||(xm(e,-1),e.err=null,e.hasResolved=!1,e.detachedRefs=null,U(e.parentBlock))}function gh(e,t){if(!ts(t))return!1;if(j!==null)throw t;return xh(e,t),!0}function _h(e,t,n=!1,r,i){if(t instanceof Ue)throw t;let a=ym(e);try{vh(e,t,n,r,i)}catch(e){throw a!==null&&ir(a.transaction),e}finally{bm(a)}}function vh(e,t,n,r,i){Jp(e),Ha?.delete(e);let a=X();Af(e.stagedCapture),e.stagedCapture=null,e.stagedEffectDeps=null;let o=e.detachedRefs!==null;e.detachedRefs=null,e.transitionTimeoutId!==null&&(clearTimeout(e.transitionTimeoutId),e.transitionTimeoutId=null);let s=e.tryBlock,c=e.block;if(s){let t=null;if(o&&(t=[],Lh(s,t)),Fm(e),e.tryBlock=null,Ai(t,()=>{q(s)}),e.parentBlock.disposed||e.tryBlock!==null||e.block!==c)return}if(e.hiddenDom=null,e.block&&e.block!==s){let t=e.block;if(e.block=null,q(t),e.parentBlock.disposed||e.block!==null)return}else e.block=null;if(e.hasResolved=!1,e.pendingThenable=null,e.transitionHeld&&(e.transitionHeld=!1,Ar(-1)),ch(e),e.catchBody===null){if(j!==null)throw t;let n=yh(e.parentBlock);n?n(t):console.error(`tryBlock with no catch arm received error:`,t);return}let l=a?.isRejection(t)===!0,u=l?t.reason:t;xm(e,0),e.err=u;let d=r!==void 0&&i!==void 0,f=r??document.createComment(`catch-b`),p=i??document.createComment(`/catch-b`);d?a!==null&&(a.node=f.nextSibling):(a!==null&&(a.isClose(e.end)&&(Kh(e.start.nextSibling,e.end),a.node=e.end),a.markFresh(f),a.markFresh(p)),e.domParent.insertBefore(f,e.end),e.domParent.insertBefore(p,e.end));let m=G(`control-flow`,e.parentBlock,e.domParent,f,p,e.catchBody,{err:u,reset:()=>hh(e)},e.env);m.idState=e.idState,e.block=m;try{!d&&a!==null?a.suspend(()=>K(m)):K(m)}catch(n){if(gh(m,n))return;let r=l&&Object.is(n,u),i=d&&r;e.block&&=(q(e.block,!i),null);let a=r?t:n;if(j!==null&&(r||yh(e.parentBlock)!==null))throw a;let o=yh(e.parentBlock);o?o(a):console.error(`catch body threw, no outer tryBlock:`,n)}finally{n&&yg(e)}}function yh(e){let t=e,n=e;for(;n;){let e=n.$$tryHandler;if(e&&n.__trySlot?.catchBody!==null)return e;n=n.parentBlock}return Uo(t)}function bh(e,t,n=null){if(t instanceof Ue)throw t;if(Ko(t)){let n=Ho(e);if(n!==null&&n.routeSuspense(t.thenable))return;t=Error(O(27))}if(ts(t)){let r=e;for(;r;){let n=r.__suspenseHandler;if(n){n(t.thenable,e);return}r=r.parentBlock}let i=Wo(e);if(i!==null){i(t.thenable);return}if(or(e,t.thenable,n))return;throw t}let r=yh(e);if(r)_g(e,t,r(t));else throw t}function xh(e,t){try{bh(e,t)}catch(t){if(j!==null||Gt)throw t;let n=Gp(e);xg(e,t)||console.error(t),n.kind===`root`&&!n.disposed&&q(n)}}function Sh(e){for(let t=e;t!==null;t=t.parentBlock){let e=t.__trySlot;if(e!==void 0&&e.tryBlock===t&&e.pendingBody!==null&&e.hasResolved&&e.branch===1&&e.hiddenDom===null)return!0}return!1}function Ch(e,t,n,r,i,a){if(e.markerlessBefore=void 0,e.borrowed&&e.start===null)return;let o=i?i.nextSibling:t.firstChild,s=a?a.previousSibling:t.lastChild;if(s!==null&&o===s&&o.nodeType===1)n.startMarker=o,n.endMarker=o,e.end=o;else{let i=document.createComment(r),s=document.createComment(`/`+r);t.insertBefore(i,o??a),t.insertBefore(s,a),n.startMarker=i,n.endMarker=s,n.exclusiveMarkers=!0,e.start=i,e.end=s}}function wh(e,t,n,r,i){if(t===null||n===null)return;let a=e;for(;a!==null&&a.startMarker===t&&a.endMarker===n;)z(a,`startMarker`),z(a,`endMarker`),a.startMarker=r,a.endMarker=i,a=a.parentBlock}function Th(e,t,n){return e!==null&&t!==null&&n!==null&&e.startMarker===t&&e.endMarker===n}function Eh(e,t,n,r,i,a,o,s){let c=e.block,l=X();if(i!==n.branch){if(I!==null&&(n.branch!==-1||l!==null)){let e=n.block;if(n.markerlessBefore!==void 0&&e!==null)Jn(n,r,n.markerlessBefore,e.endMarker);else if(n.start!==null)Jn(n,r,n.borrowed?n.start:n.start.previousSibling,n.borrowed?n.end:n.end?.nextSibling??null);else if(n.borrowed&&e?.startMarker==null)Jn(n,r,null,null);else{let t=e?.startMarker??null,i=e?.endMarker??null;if(t!==null&&i!==null&&t.parentNode===r&&i.parentNode===r)Jn(n,r,t.previousSibling,i.nextSibling);else{let e=n.anchor;Jn(n,r,e===null?r.lastChild:e.previousSibling,e)}}}let e=N,t=c.currentRenderMode===`transition`,u=e!==null&&n.block!==null&&n.block.mounted&&n.markerlessBefore===void 0&&a!==null&&l===null&&Sh(c),d=I===null||u?e:null,f=!t&&u,p=null,m=n.markerlessBefore;if(m!==void 0&&n.block!==null){let e=n.block;p=e.endMarker;let t=m?m.nextSibling:r.firstChild;if(n.block=null,n.markerlessBefore=void 0,q(e,!1),c.disposed)return;for(;t!==null&&t!==p;){let e=t.nextSibling;t.parentNode===r&&r.removeChild(t),t=e}}let h=p===null&&n.start===null&&n.block!==null&&n.block.endMarker!==null?n.block.endMarker:n.end,g=I;if(g!==null&&!u&&l===null&&n.block!==null&&n.block.mounted&&!g.created?.has(n.block)){let e=n.block,t=e.startMarker,l=e.endMarker,u=n.borrowed,d=u?n.start===null?r.firstChild:n.start.nextSibling:n.start??t;u&&d===n.end&&(d=null);let f=u?d===null?null:n.end===null?r.lastChild:n.end.previousSibling:h;if(a===null){if(n.start!==null)d=n.start.nextSibling,d===n.end&&(d=null),f=d===null?null:n.end.previousSibling;else{let e=f===null?n.anchor:f.nextSibling;if(Th(c,t,l)){let i=document.createComment(o),a=document.createComment(`/`+o);r.insertBefore(i,e),r.insertBefore(a,e),n.start=i,n.end=a,n.borrowed=!1,wh(c,t,l,i,a)}else n.anchor=e,n.end=null}n.block=null,n.branch=i,$n(e,r,d,f);return}let p=d===null?u?n.start:null:f;if(p!==null&&p.parentNode===r){let m=Df(c,r,p,a,void 0,null,`control-flow`,s);if(m.suspended||m.failed)throw Nf(m.wip),m.suspended===null?m.error:new es(m.suspended);m.wip.start.data=o,m.wip.end.data=`/`+o,n.start=m.wip.start,n.end=m.wip.end,n.borrowed=!1,n.block=m.wip.block,n.branch=i,u||wh(c,t,l,m.wip.start,m.wip.end),z(m.wip.block,`exclusiveMarkers`),m.wip.block.exclusiveMarkers=!0,kf(m.wip),$n(e,r,d,f);return}}if(d!==null&&n.block!==null&&a!==null&&l===null&&(t||f)&&h!==null){let e=n.block,t=e.startMarker,l=e.endMarker,u=d.render(c,r,h,a,void 0,null,`control-flow`,s);if(u.suspended||u.failed)throw d.dispose(u.wip),u.failed?u.error:new es(u.suspended);if(n.borrowed)d.dispose(u.wip);else{u.wip.start.data=o,u.wip.end.data=`/`+o;let e=n.start,r=n.end,a=n.block;n.start=u.wip.start,n.end=u.wip.end,n.block=u.wip.block,n.branch=i,wh(c,t,l,u.wip.start,u.wip.end),u.wip.block.exclusiveMarkers=!0,d.splice(u.wip),q(a),e!==null&&(e.remove(),r?.remove()),c.disposed||n.block!==u.wip.block||u.wip.block.disposed;return}}let _=p??(h===null?n.anchor:h.nextSibling),v=n.block,y=v?.startMarker??null,b=v?.endMarker??null,x=Th(c,y,b);if(n.block){if(q(n.block),c.disposed)return;n.block=null}if(n.branch=i,n.start===null&&a!==null&&x){let e=document.createComment(o),t=document.createComment(`/`+o);r.insertBefore(e,_),r.insertBefore(t,_),n.start=e,n.end=t,wh(c,y,b,e,t)}if(n.start!==null){if(a){let e,t,i=!1,o=!1,u=null,d=null;l!==null&&l.isOpen(n.start.nextSibling)&&(u=n.start.nextSibling,d=l.close(u),d!==n.end&&d.nextSibling!==n.end&&(Kh(n.start.nextSibling,n.end),u=null,o=!0)),u===null?(e=n.start,t=n.end,i=!0,l!==null&&(l.node=n.start.nextSibling)):(e=u,t=d,l.node=u.nextSibling);let f=G(`control-flow`,c,r,e,t,a,void 0,s);i&&(f.exclusiveMarkers=!0),n.block=f,o?(l.suspend(()=>K(f)),l.node=n.end.nextSibling):K(f)}else l!==null&&n.start.nextSibling!==n.end&&Kh(n.start.nextSibling,n.end)}else if(a){let e=_?_.previousSibling:r.lastChild,t=G(`control-flow`,c,r,null,_,a,void 0,s);n.block=t,n.markerlessBefore=e,K(t),Ch(n,r,t,o,e,_),wh(c,y,b,t.startMarker,t.endMarker)}else if(!x)n.anchor=_,n.end=null;else{let e=document.createComment(o),t=document.createComment(`/`+o);r.insertBefore(e,_),r.insertBefore(t,_),n.start=e,n.end=t,wh(c,y,b,e,t)}}else if(n.block){n.block.body!==a&&z(n.block,`body`),n.block.extra!==s&&z(n.block,`extra`),n.block.body=a,n.block.extra=s,K(n.block);let e=n.markerlessBefore;e!==void 0&&Ch(n,r,n.block,o,e,n.block.endMarker)}l!==null&&!n.borrowed&&n.end!==null&&(l.node=n.end.nextSibling)}function Dh(e,t,n,r,i,a,o,s){let c=X(),l=e.slots[t];if(l===void 0){let r=null,i=null,a=c?.passthroughRanges===!0,s=a?null:c?.resolveOpen(o??null,n)??null;s!==null&&(r=s,i=c.close(s)),l={__kind:`ifBlockSlot`,anchor:o??null,start:r,end:i,borrowed:a,branch:-1,block:null,markerlessBefore:void 0},e.slots[t]=l,ka(e,l)}let u=+!!r;Eh(e,t,l,n,u,u?i:a,`if`,s)}var Oh=null;function kh(e,t){let n=e.startMarker.nextSibling;for(;n!==null&&n!==e.endMarker;){let e=n.$$portalEnd;if(e!==void 0){n=cp(n,e);continue}if(n.nodeType===1){let e=n;t.nextDisplays.has(e)||(t.nextDisplays.add(e),t.displays.has(e)?lm(e):(om(e),pm(e,!0)))}else if(n.nodeType===3){let e=n;t.nextTexts.has(e)||(t.nextTexts.add(e),t.texts.has(e)||(om(e),gm(e)),hm(e))}n=n.nextSibling}}function Ah(e){let t=e.block;if(!t)return;let n=e.hiddenDom??={displays:new Set,texts:new Set,nextDisplays:new Set,nextTexts:new Set};if(e.fragmentVisibilityCleanupRegistered||(e.fragmentVisibilityCleanupRegistered=!0,(t.cleanups??=[]).push(()=>Mh(e,!1))),kh(t,n),e.portals!==null)for(let t of e.portals)t.disposed||kh(t,n);for(let e of n.displays)n.nextDisplays.has(e)||(sm(e),mm(e,!0));for(let e of n.texts)n.nextTexts.has(e)||(sm(e),_m(e));let r=n.displays,i=n.texts;n.displays=n.nextDisplays,n.texts=n.nextTexts,n.nextDisplays=r,n.nextTexts=i,r.clear(),i.clear()}function jh(e){let t=e.block;t===null||!e.hidden||e.deactivationPending||Ni(t)||Ah(e)}function Mh(e,t){t||Ha?.delete(e);let n=e.hiddenDom;if(n!==null){for(let e of n.displays)sm(e),mm(e,!0,t);n.displays.clear();for(let e of n.texts)sm(e),_m(e,t);n.texts.clear()}}function Nh(e,t){if(e.pendingThenable===t)return;e.pendingThenable=t;let n=e.block,r=()=>{e.pendingThenable!==t||!e.hidden||Ni(n)||U(n)};t.then(r,r)}function Ph(e,t=!1,n=e.block){let r=J;t&&(J=!0);let i=(H===null?V:H.effects)[B],a=i.length,o=e.hasInsertionEffects?Xm(n,B):null;try{e.pendingInsertions===null?K(n):rh(n,H,e.pendingInsertions),e.pendingThenable=null,e.pendingInsertions=null}catch(t){if(!ts(t))throw t;for(let r=n;r!==null&&r!==e.block;r=r.parentBlock)if(r.__suspenseHandler)throw t;let r=null;if(i.length>a){let t=new Map;for(let e=a;e<i.length;e++){let n=i[e],a=n.scope.hooks?.get(n.slot);if(a?.effect!==!0||(Qm!==null&&(r??=new Set).add(a),a.revision!==n.revision||Ni(n.scope.block)))continue;let o=t.get(a);o===void 0?t.set(a,[n]):o.push(n)}i.length=a;for(let e of t.keys())$m(e);if(e.pendingInsertions===null)e.pendingInsertions=t.size===0?null:t;else for(let[n,r]of t)e.pendingInsertions.set(n,r)}(o!==null||e.pendingInsertions!==null)&&Zm(n,o??new Map,B),r!==null&&th(r,B,i),Nh(e,t.thenable)}finally{J=r}}function Fh(e,t,n=!0){let r=e.children;if(r!==null)for(let e=0,n=r.length;e<n;e++)t(r[e].scope);let i=e._slots;if(i!==null)for(let e=0,r=i.length;e<r;e++){let r=i[e];if(r.__kind===`forBlockSlot`){for(let e=r.head;e!==null;e=e.nextSibling)t(e);r.emptyBlock&&t(r.emptyBlock)}else if(r.__kind===`childSlot`){if(r.block&&t(r.block),r.forSlot){for(let e=r.forSlot.head;e!==null;e=e.nextSibling)t(e);r.forSlot.emptyBlock&&t(r.forSlot.emptyBlock)}r.portal?.block&&t(r.portal.block)}else r.block&&(t(r.block),n&&r.__kind===`trySlotSlot`&&r.tryBlock&&r.tryBlock!==r.block&&t(r.tryBlock))}}function Ih(e,t,n=!0,r=!0,i=null,a=null){let o=e.deoptNode;o!=null&&$(o,t,n,e,i,a);let s=e.refFields;if(s!==null){let r=e.slots[0];if(r!=null)for(let o=0,c=s.length;o<c;o+=3){let c=s[o];if(c===`r`){let c=r[s[o+2]],l=r[s[o+1]]??a?.get(c)?.connected;if(l==null)continue;t.push({ref:l,el:c,scope:e}),n&&!Pi(i,c,l)&&gl(l,null,c)}else if(c===`s`){let c=r[s[o+2]];if(c==null)continue;let l=r[s[o+1]]?.ref??a?.get(c)?.connected;if(l==null)continue;t.push({ref:l,el:c,scope:e}),n&&!Pi(i,c,l)&&gl(l,null,c)}else{let c=r[s[o+1]];if(c==null)continue;let l=c._currentRef??a?.get(c)?.connected;if(l==null)continue;t.push({ref:l,el:c,scope:e}),n&&!Pi(i,c,l)&&gl(l,null,c)}}}let c=e.slots;for(let r=0,o=c.length;r<o;r++){let o=c[r];if(!(typeof o!=`object`||!o)){if(o.anchor!==void 0&&o.el instanceof Element){let r=o.ref??a?.get(o.el)?.connected;r!=null&&(t.push({ref:r,el:o.el,scope:e}),n&&!Pi(i,o.el,r)&&gl(r,null,o.el))}o.__kind===`childSlot`&&o.hostNode!=null&&$(o.hostNode,t,n,e,i,a)}}Fh(e,e=>Ih(e,t,n,r,i,a),r)}function Lh(e,t,n=null){Ih(e,t,!1,!1,null,n)}function $(e,t,n=!0,r,i=null,a=null){if(!Bf)return;let o=Jf(e)?.props?.ref??a?.get(e)?.connected;o!=null&&(t===null?Ti(o,e):(t.push({ref:o,el:e,scope:r}),n&&!Pi(i,e,o)&&gl(o,null,e)));let s=e.firstChild;for(;s!==null;){let e=s.$$portalEnd;if(e!=null){s=cp(s,e);continue}$(s,t,n,r,i,a),s=s.nextSibling}}function Rh(e,t=!0){let n=e.effectSlots;if(n!==null)for(let r=0;r<n.length;r++){let i=n[r];if(!(i.phase===B||!t&&i.phase===Mr&&i.connectedFn!==null)){if(typeof i.cleanup==`function`){let t=i.cleanup;i.cleanup=void 0;try{Vt(t)}catch(t){if(t instanceof Xr)throw t;let n=yh(e.block);n===null?console.error(t):n(t)}}i.deps=void 0,i.connectedFn!==null&&(i.disconnected=!0)}}Fh(e,e=>Rh(e,t))}function zh(e,t,n,r,i,a,o,s){let c=X(),l=e.slots[t];if(l===void 0){let r=null,i=null,a=c?.passthroughRanges===!0,s=a?null:c?.resolveOpen(o??null,n)??null;s!==null&&(r=s,i=c.close(s)),l={__kind:`switchBlockSlot`,anchor:o??null,start:r,end:i,borrowed:a,branch:-1,block:null,markerlessBefore:void 0},e.slots[t]=l,ka(e,l)}let u=-2,d=a;for(let e=0;e<i.length;e++)if(i[e][0]===r){u=e,d=i[e][1];break}Eh(e,t,l,n,u,d,`switch`,s)}function Bh(e,t,n,r,i,a,o,s,c,l,u){let d=e.block,f=X(),p=e.slots[t];if(p===void 0){let r,i;f!==null&&f.isOpen(l??null)?(r=l,i=f.close(l),f.node=r.nextSibling):f!==null&&f.isOpen(f.node)?(r=f.node,i=f.close(f.node),f.node=r.nextSibling):(r=document.createComment(`for`),u===!0&&l?.nodeType===8?(i=l,i.data=`/for`,n.insertBefore(r,i)):(i=document.createComment(`/for`),n.insertBefore(r,l??null),n.insertBefore(i,l??null))),p={__kind:`forBlockSlot`,start:r,end:i,items:new Map,head:null,tail:null,size:0,cachedDeps:null,emptyBlock:null,env:void 0,adopt:null,plainDeopt:!1},e.slots[t]=p,ka(e,p)}let m=f?.markerState(p.start)??-1;p.env!==s&&z(p,`env`),p.env=s;let h=r.length===0;if(h&&c){if(p.size>0&&rg(d,p,r,i,a,!1,!1),p.emptyBlock)p.emptyBlock.body!==c&&z(p.emptyBlock,`body`),p.emptyBlock.extra!==p.env&&z(p.emptyBlock,`extra`),p.emptyBlock.body=c,p.emptyBlock.extra=p.env,K(p.emptyBlock);else{F!==null&&vr(p);let e=!1;f!==null&&(m===1||m===-1&&f.isOpen(p.start.nextSibling))?(Kh(p.start.nextSibling,p.end),e=!0):f!==null&&(f.node=p.start.nextSibling);let t=G(`control-flow`,d,n,p.start,p.end,c,void 0,p.env);t.exclusiveMarkers=!0,rr(t),p.emptyBlock=t,e?f.suspend(()=>K(t)):K(t)}f!==null&&(f.node=p.end.nextSibling);return}p.emptyBlock&&(gr()?(vr(p),hr(p.emptyBlock)):q(p.emptyBlock),p.emptyBlock=null),!h&&f!==null&&(m===0||m===-1&&!((o||0)&16)&&p.start.nextSibling!==null&&p.start.nextSibling!==p.end&&!f.isOpen(p.start.nextSibling))&&(Kh(p.start.nextSibling,p.end),f.node=p.end);let g=o||0,_=!!(g&1),v=!1;if(g&4&&s!==void 0){let e=!!(g&32);e&&F!==null&&I===null?(p.cachedDeps=null,_=!1):(p.cachedDeps!==null&&qh(p.cachedDeps,s)?_=!0:v=!e,p.cachedDeps!==s&&z(p,`cachedDeps`),p.cachedDeps=s)}p.size===0?ng(d,p,r,i,a,!!(g&2),!!(g&16)):rg(d,p,r,i,a,_,!!(g&2),v,!!(g&8),!!(g&16)),f!==null&&(Gh(p.end,f),f.node=p.end.nextSibling)}var Vh=16;function Hh(e,t,n){return e==null||e.size!==0||e.emptyBlock!==null||e.adopt!==null||!((n||0)&2)||!Array.isArray(t)||t.length<Vh||X()!==null||e.end.parentNode===null||e.start.parentNode!==e.end.parentNode?null:e.end.parentNode}function Uh(e,t,n,r,i,a,o,s,c){let l=e.block,u=l.currentRenderMode??`urgent`,d=l.currentRenderDeferred,f=A,p=j,m=null,h=null;F!==null&&vr(t),t.env!==s&&z(t,`env`),t.env=s,(o||0)&4&&s!==void 0&&(t.cachedDeps!==s&&z(t,`cachedDeps`),t.cachedDeps=s),c&&(t.mappedNative!==!0&&z(t,`mappedNative`),t.mappedNative=!0);try{for(let e=0;e<r.length;e++){let o=r[e],g=i(o,e),_=c?`k`+String(g):g,v=G(`control-flow`,l,n,null,t.end,a,o,s,null);h=v,v.forSlot=t,v.itemIndex=e,v.currentRenderMode=u,v.currentRenderDeferred=d,A=v,j=v,a(o,v,s),A=f,j=p,v.mounted=!0;let y=t.end.previousSibling;v.startMarker=y,v.endMarker=y,t.items.set(_,v),v.key=_,v.prevSibling=m,m===null?t.head=v:m.nextSibling=v,m=v,h=null}t.tail=m,t.size=r.length}catch(e){if(A=f,j=p,h!==null){if(h.slots[0]!==void 0){let e=t.end.previousSibling;e!==null&&e!==t.start&&(h.startMarker=e,h.endMarker=e)}q(h,!0)}for(;m!==null;){let e=m;m=e.prevSibling,t.items.delete(e.key),q(e,!0)}throw t.head=null,t.tail=null,t.size=0,e}}function Wh(e,t,n,r,i,a,o,s,c,l,u){let d=e.slots[t],f=Hh(d,r,o);if(f===null){Bh(e,t,n,r,i,a,o,s,c,l,u);return}Uh(e,d,f,r,i,a,o,s,!1)}function Gh(e,t){let n=t.node;n!==null&&n!==e&&n.parentNode===e.parentNode&&(Cg(()=>Error(O(56))),Kh(n,e))}function Kh(e,t){let n=e;for(;n!==null&&n!==t;){let e=n.nextSibling;n.remove(),n=e}}function qh(e,t){let n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(!Object.is(e[r],t[r]))return!1;return!0}function Jh(e,t,n){if(F===null&&k===null){t(e.props,e,n);return}let r=A;A=e;let i=k===null?-1:ut(e);try{t(e.props,e,n)}finally{i>=0&&k.endScope(i),A=r}}var Yh=4,Xh=new Int32Array(Yh),Zh=16384,Qh=null,$h=null;function eg(e,t,n,r,i,a,o,s){e.itemIndex!==n&&z(e,`itemIndex`),e.body!==r&&z(e,`body`),i&&e.props===t&&(o||e.itemIndex===n)?(e.itemIndex=n,e.body=r):(e.props!==t&&z(e,`props`),e.extra!==s&&z(e,`extra`),e.props=t,e.body=r,e.itemIndex=n,e.extra=s,a?Jh(e,r,s):K(e))}function tg(e,t){t<e.length&&e.copyWithin(0,t),e.length-=t}function ng(e,t,n,r,i,a,o){let s=n.length;if(s===0)return;F!==null&&vr(t);let c=t.items,l=t.end.parentNode,u=t.adopt,d=0,f=null,p=[];try{for(let m=0;m<s;m++){let s=n[m],h=r(s,m),g=null,_=t.end;if(u!==null&&d<u.length){let e=u[d];e.key===h?(g=e.node,d++):_=e.node}let v=og(e,l,_,s,m,i,t,a,o,g);p.push(v),c.set(h,v),v.key=h,v.prevSibling=f,v.nextSibling=null,f?f.nextSibling=v:t.head=v,f=v}t.tail=f,t.size=s}catch(e){for(let t=p.length-1;t>=0;t--){let n=p[t];c.delete(n.key),ts(e)&&Os(n),q(n,!I?.retainedCreated?.has(n))}throw t.head=null,t.tail=null,t.size=0,e}d!==0&&tg(u,d)}function rg(e,t,n,r,i,a,o,s=!1,c=!1,l=!1){let u=t.items,d=t.size,f=n.length,p=t.end.parentNode,m=F!==null;if(d===0){ng(e,t,n,r,i,o,l);return}if(f===0){m&&vr(t),ag(t,u),t.head=null,t.tail=null,t.size=0;return}let h=t.head,g=0;for(;h!==null&&g<f;){let e=r(n[g],g);if(h.key!==e)break;let o=h;eg(o,n[g],g,i,a,s,c,t.env),h=o.nextSibling,g++}if(g===f&&h===null)return;let _=t.tail,v=f-1,y=d-g;for(;_!==null&&y>0&&v>=g;){let e=r(n[v],v);if(_.key!==e)break;let o=_;eg(o,n[v],v,i,a,s,c,t.env),_=o.prevSibling,v--,y--}let b,x;if(y===0?(x=h,b=x?x.prevSibling:t.tail):(b=h.prevSibling,x=_.nextSibling),y===0){m&&vr(t);let a=x?x.startMarker:t.end,s=b;for(let c=g;c<=v;c++){let d=n[c],f=r(d,c),m=og(e,p,a,d,c,i,t,o,l);u.set(f,m),m.key=f,m.prevSibling=s,m.nextSibling=x,s?s.nextSibling=m:t.head=m,s=m}x?x.prevSibling=s:t.tail=s,t.size+=v-g+1;return}if(g>v){m&&vr(t);let e=h,n=0;for(;e!==x;){let t=e.nextSibling;gr()?hr(e):q(e),u.delete(e.key),e=t,n++}b?b.nextSibling=x:t.head=x,x?x.prevSibling=b:t.tail=b,t.size-=n;return}let S=v-g+1,C=Array(S),w=new Map;for(let e=0;e<S;e++){let t=r(n[g+e],g+e);C[e]=t,w.set(t,e)}if(b===null&&x===null&&!w.has(h.key)){let r=!1,a=h.nextSibling;for(;a!==null;){if(w.has(a.key)){r=!0;break}a=a.nextSibling}if(!r){m&&vr(t),ag(t,u),t.head=null,t.tail=null,t.size=0;let r=null;for(let a=0;a<f;a++){let s=n[a],c=C[a],d=og(e,p,t.end,s,a,i,t,o,l);u.set(c,d),d.key=c,d.prevSibling=r,d.nextSibling=null,r?r.nextSibling=d:t.head=d,r=d}t.tail=r,t.size=f;return}}let ee=Qh,T;ee!==null&&ee.length>=S?(Qh=null,T=ee):T=new Int32Array(S);try{for(let e=0;e<S;e++)T[e]=-1;let r=!1,d=0,f=0,_=h,v=0;for(;_!==x;){let e=_.nextSibling,o=w.get(_.key);if(o===void 0)m&&=(vr(t),!1),gr()?hr(_):q(_),u.delete(_.key),t.size--;else{T[o]=v,o<d?r=!0:d=o,f++;let e=g+o;eg(_,n[e],e,i,a,s,c,t.env)}_=e,v++}if(!r&&f===S){if(y!==f){let e=b;for(let n=0;n<S;n++){let r=u.get(C[n]);r.prevSibling=e,e?e.nextSibling=r:t.head=r,e=r}e.nextSibling=x,x?x.prevSibling=e:t.tail=e}return}if(m&&vr(t),r&&f===S){let e=0;for(let t=0;t<S;t++)if(T[t]!==t){if(e===Yh){e=5;break}Xh[e++]=t}if(e<=Yh){let n=x?x.startMarker:t.end;for(let t=e-1;t>=0;t--){let e=Xh[t];sg(u.get(C[e]),e+1<S?u.get(C[e+1]).startMarker:n)}for(let n=0;n<e;n++){let e=Xh[n],r=u.get(C[e]),i=e>0?u.get(C[e-1]):b,a=e+1<S?u.get(C[e+1]):x;r.prevSibling=i,r.nextSibling=a,i?i.nextSibling=r:t.head=r,a?a.prevSibling=r:t.tail=r}let r=u.get(C[0]),i=u.get(C[S-1]);r.prevSibling=b,i.nextSibling=x,b?b.nextSibling=r:t.head=r,x?x.prevSibling=i:t.tail=i;return}}let ee=x?x.startMarker:t.end,E=x,D=null;if(r){let r=ug(T,S),a=r.length-1;for(let s=S-1;s>=0;s--){let c=s+g,d=C[s],f=E?E.startMarker:ee,m;if(T[s]===-1){let r=n[c];m=og(e,p,f,r,c,i,t,o,l),u.set(d,m),m.key=d,t.size++}else a<0||s!==r[a]?(m=u.get(d),sg(m,f)):(m=u.get(d),a--);m.nextSibling=E,E&&(E.prevSibling=m),D===null&&(D=m),E=m}}else for(let r=S-1;r>=0;r--){let a=r+g,s=C[r],c=E?E.startMarker:ee,d;if(T[r]===-1){let r=n[a];d=og(e,p,c,r,a,i,t,o,l),u.set(s,d),d.key=s,t.size++}else d=u.get(s);d.nextSibling=E,E&&(E.prevSibling=d),D===null&&(D=d),E=d}let te=E,ne=D;te.prevSibling=b,b?b.nextSibling=te:t.head=te,x||(t.tail=ne)}finally{T.length<=Zh&&(Qh===null||Qh.length<T.length)&&(Qh=T)}}var ig=512;function ag(e,t){if(_r(e)){let n;for(let t=e.head;t!==null;t=n)n=t.nextSibling,hr(t);t.clear();return}let n=e.start.parentNode;if(e.start.previousSibling===null&&e.end.nextSibling===null)n.textContent=``,n.appendChild(e.start),n.appendChild(e.end);else if(t.size<ig)Kh(e.start.nextSibling,e.end);else{let t=document.createRange();t.setStartAfter(e.start),t.setEndBefore(e.end),t.deleteContents()}for(let t=e.head;t!==null;t=t.nextSibling)t.cleanups!==null||t.children!==null||t._slots!==null?q(t,!1):(t.deoptNode!==null&&t.deoptRefs&&$(t.deoptNode,null),t.disposed=!0);t.clear()}function og(e,t,n,r,i,a,o,s,c,l=null){let u=X();if(u!==null){if(c&&!u.isOpen(u.node)&&(s!==2||o.plainDeopt!==!0||vf(r)&&!fp(r))){if(u.node!==null&&u.node!==o.end&&(s!==2||o.plainDeopt!==!0||u.node.nodeType===1&&u.node.parentNode===t)){let n=u.node,c=G(`control-flow`,e,t,n,n,a,r,o.env);return c.forSlot=o,c.itemIndex=i,s===2&&o.plainDeopt===!0&&(c.deoptNode=n),K(c),u.node=c.endMarker?.nextSibling??n.nextSibling,c}return u.suspend(()=>og(e,t,n,r,i,a,o,s,c))}if(!u.isOpen(u.node))return u.suspend(()=>og(e,t,n,r,i,a,o,s,c));let l=u.node,d=u.close(l);u.node=l.nextSibling;let f=G(`control-flow`,e,t,l,d,a,r,o.env);return f.forSlot=o,f.itemIndex=i,K(f),u.node=d.nextSibling,f}if(s===!0||s===2&&vf(r)&&!fp(r)){if(l!==null){let n=G(`control-flow`,e,t,l,l,a,r,o.env);return n.forSlot=o,n.itemIndex=i,n.deoptNode=l,rr(n),K(n),n}let s=G(`control-flow`,e,t,null,n,a,r,o.env);s.forSlot=o,s.itemIndex=i,K(s);let c=n.previousSibling;return s.startMarker=c,s.endMarker=c,s}let d=document.createComment(`it`),f=document.createComment(`/it`);l===null?(t.insertBefore(d,n),t.insertBefore(f,n)):(t.insertBefore(d,l),t.insertBefore(f,l.nextSibling));let p=G(`control-flow`,e,t,d,f,a,r,o.env);p.forSlot=o,p.itemIndex=i,l!==null&&(p.deoptNode=l,rr(p));try{K(p)}catch(e){throw ts(e)&&Os(p),q(p,!I?.retainedCreated?.has(p)),e}return p}function sg(e,t){let n=e.startMarker.parentNode,r=e.endMarker,i=e.startMarker;if(pi!==null){yi(n,pi),cg(n,i,r,t,pi);return}for(;i;){let e=i===r,a=i.nextSibling;if(n.insertBefore(i,t),e)break;i=a}}function cg(e,t,n,r,i){let a=t;for(;a!==null;){let t=a===n,o=a.nextSibling;if(lg(e,a,r,i),t)break;a=o}}function lg(e,t,n,r){let i=null;if(Array.isArray(r)){for(let e=0;e<r.length;e++)if(r[e].focused.ownerDocument===t.ownerDocument){i=r[e];break}}else r.focused.ownerDocument===t.ownerDocument&&(i=r);let a=i?.focused??null;if(a===null||t!==a&&(t.nodeType!==1||!t.contains(a))){e.insertBefore(t,n);return}let o=e.moveBefore;if(!i.contentEditable&&typeof o==`function`){o.call(e,t,n);return}if(t!==n&&t.nextSibling!==n){if(n===null||(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING)!==0){let r=t.nextSibling;for(;r!==n;){let n=r.nextSibling;e.insertBefore(r,t),r=n}}else{let r=t.nextSibling,i=n;for(;i!==t;){let t=i.nextSibling;e.insertBefore(i,r),i=t}}}}function ug(e,t){let n=$h;(n===null||n.length<t)&&(n=new Int32Array(t),t<=Zh&&($h=n));let r=[];for(let i=0;i<t;i++){let t=e[i];if(t===-1)continue;if(r.length===0||e[r[r.length-1]]<t){n[i]=r.length===0?-1:r[r.length-1],r.push(i);continue}let a=0,o=r.length-1;for(;a<o;){let n=a+o>>1;e[r[n]]<t?a=n+1:o=n}t<e[r[a]]&&(n[i]=a>0?r[a-1]:-1,r[a]=i)}let i=r.length,a=r[i-1];for(;i-->0;)r[i]=a,a=n[a];return r}function dg(e){let t=e.refFields;if(t===null)return!1;for(let e=0;e<t.length;e+=3)if(t[e]===`f`)return!0;return!1}function fg(e,t){let n=new WeakMap,r=new WeakMap,i=new WeakMap,a=[],o=new WeakSet,s=new WeakSet,c=null,l=null;function u(e){let t=e;for(;t.parent!==null;)t=t.parent;for(;e.parent!==null&&e.parent!==t;){let n=e.parent;e.parent=t,e=n}return t}function d(e,t,o,s,c){if(!Mc(e)||!Nc(t)||e===t||e.parentNode===null||e.parentNode!==t.parentNode)return null;let l=jc(e.data,!0),u=jc(t.data,!1);if(l===0||l!==u)return null;let d={start:e,end:t,depth:l,parent:null,blocks:o===void 0?[]:[o],liteScopes:s===void 0?[]:[s],owners:c===void 0?[]:[c]};return a.push(d),o!==void 0&&n.set(o,d),s!==void 0&&r.set(s,d),c!==void 0&&i.set(c,d),d}function f(e){e.start.data=e.depth===1?`[`:`[`+String(e.depth),e.end.data=e.depth===1?`]`:`]`+String(e.depth)}function p(e,t){if(c===null)return;let n=t?e.nextSibling:e.previousSibling;if(n===null||n.nodeType!==8||!c.has(n))return;let r=n;for(;;){let e=t?r.nextSibling:r.previousSibling;if(e===null||e.nodeType!==8||!c.has(e))break;r=e}let i=l??=e.ownerDocument.createRange();i.setStartBefore(t?n:r),i.setEndAfter(t?r:n),i.deleteContents()}function m(e,t){return e=u(e),t=u(t),e===t?e:(e.depth=Math.max(e.depth,t.depth),t.parent=e,f(e),e)}function h(e,t){return e.start.parentNode!==null&&e.start.parentNode===t.start.parentNode&&e.end.parentNode===e.start.parentNode&&t.end.parentNode===e.start.parentNode&&e.start.nextSibling===t.start&&t.end.nextSibling===e.end}function g(e,t){for(let n=0;n<t.blocks.length;n++){let r=t.blocks[n];r.startMarker=e.start,r.endMarker=e.end,r.exclusiveMarkers=!0}for(let n=0;n<t.liteScopes.length;n++)t.liteScopes[n].block.endMarker=e.end;for(let n=0;n<t.owners.length;n++){let r=t.owners[n];r.start=e.start,r.end=e.end,r.__kind===`componentSlotSlot`?r.inherited=!0:r.__kind===`childSlot`?(r.borrowed=!0,r.forSlot!==null&&(r.forSlot.start=e.start,r.forSlot.end=e.end)):r.borrowed=!0}}function _(e,t){if(e=u(e),t=u(t),e===t)return e;if(e.start===t.start&&e.end===t.end)return m(e,t);if(!h(e,t))return e;let n=e.depth+t.depth;return Number.isSafeInteger(n)?((c??=new Set).add(t.start).add(t.end),e.depth=n,t.parent=e,f(e),e):e}function v(e,t){e!==null&&(e=u(e),e.owners.indexOf(t)===-1&&e.owners.push(t),i.set(t,e))}function y(e){return Fe(e.currentComp,1)}function b(e){if(typeof e!=`object`||!e)return!1;let n=e.__kind;if(n===`componentSlotSlot`){let t=e;return t.block!==null&&!t.keyed&&!y(t)&&!dg(t.block)}if(n===`childSlot`){let t=e;return t.block!==null&&t.forSlot===null&&t.portal===null&&!Fe(t.currentComp,1)&&!dg(t.block)}if(n===`ifBlockSlot`||n===`switchBlockSlot`){let t=e;return t.block===null||!dg(t.block)}return t.has(e)&&!dg(e)}function x(e){if(typeof e!=`object`||!e)return;let t=i.get(e)??r.get(e);return t===void 0?void 0:u(t)}function S(e){let t,n=0,r=e.slots;for(let e=0;e<r.length&&!(r[e]!==void 0&&(t=r[e],n++,n>1));e++);if(n===1&&b(t)){let e=x(t);if(e!==void 0)return e}let a=e._slots;if(a!==null&&a.length===1&&e.children===null&&a[0].__kind===`childSlot`&&a[0].compactable&&b(a[0])){let e=i.get(a[0]);return e===void 0?null:u(e)}return null}function C(e,t){if(te(e),t===null||dg(e))return;let n=S(e);n!==null&&_(t,n)}function w(e,t){if(o.has(e)){let r=n.get(e)??null;return t!==void 0&&v(r,t),r}o.add(e);let r=d(e.startMarker,e.endMarker,e,void 0,t);return C(e,r),n.get(e)??r}function ee(e){if(s.has(e))return r.get(e)??null;s.add(e);let n=t.get(e),i=n===void 0?null:d(n.start,n.end,void 0,e,void 0);return C(e,i),r.get(e)??i}function T(e){for(let t=e.head;t!==null;t=t.nextSibling)w(t);e.emptyBlock!==null&&w(e.emptyBlock)}function E(e){let t=e.block===null?null:w(e.block),n=d(e.start,e.end,void 0,void 0,e);n!==null&&t!==null&&!dg(e.block)&&_(n,t)}function D(e){let t=e.__kind;if(t===`componentSlotSlot`){e.block!==null&&w(e.block,e);return}if(t===`childSlot`){let t=e;t.block!==null&&w(t.block,t),t.forSlot!==null&&T(t.forSlot),t.portal?.block!=null&&w(t.portal.block);return}if(t===`ifBlockSlot`||t===`switchBlockSlot`){E(e);return}if(t===`forBlockSlot`){T(e);return}if(t===`trySlotSlot`){let t=e.block,n=e.tryBlock;t!==null&&w(t),n!==null&&n!==t&&w(n);return}if(t===`activityBlockSlot`||t===`portalSlotSlot`){e.block!==null&&w(e.block);return}e.block!=null&&w(e.block)}function te(e){let t=e.children;if(t!==null)for(let e=0;e<t.length;e++)ee(t[e].scope);let n=e._slots;if(n!==null)for(let e=0;e<n.length;e++)D(n[e])}w(e);for(let e=0;e<a.length;e++){let t=a[e],n=u(t);(t.start!==n.start||t.end!==n.end)&&g(n,t)}if(c!==null)for(let e=0;e<a.length;e++){let t=a[e];t.parent===null&&(p(t.start,!0),p(t.end,!1))}}var pg=null;function mg(e,t){if(t===void 0)return;let{onCaughtError:n,onUncaughtError:r,onRecoverableError:i}=t;(n!==void 0||r!==void 0||i!==void 0)&&(pg??=new WeakMap).set(e,{onCaughtError:n,onUncaughtError:r,onRecoverableError:i})}function hg(e){if(pg===null||e===null)return null;let t=e;for(;t.parentBlock!==null;)t=t.parentBlock;return pg.get(t)??null}function gg(e,t){try{e(t)}catch(e){console.error(e)}}function _g(e,t,n){let r=hg(e)?.onCaughtError;if(!(r===void 0||n===null||n?.disposed)){if(n!==void 0){let e=Jm(n);if(e!==null){let i=()=>{if(n.disposed)return;let e=Jm(n);if(e!==null){Ua(e,i);return}gg(r,t)};Ua(e,i);return}}gg(r,t)}}function vg(e){let t=qm(e,!0);if(t!==null)return t;for(let t=Qm;t!==null;t=t.parent){let n=t.root;if(n!==e&&!Hi(n,e))continue;let r=n.__trySlot;if(r!==void 0&&r.tryBlock===n)return r;let i=n.__activitySlot;if(i!==void 0&&i.block===n)return i}if(!e.mounted)for(let t=e.parentBlock;t!==null;t=t.parentBlock){let e=t.__trySlot;if(e!==void 0&&e.tryBlock===t&&!e.propagateSuspense)return e}return null}function yg(e){if(pg===null||e.branch!==0)return;let t=e.block;if(t===null)return;let n=hg(t)?.onCaughtError;if(n===void 0)return;let r=e.err,i=null,a=!1,o=s=>{if(i=null,t.disposed||e.block!==t)return;let c=s??qm(t,!0);if(c!==null){a||(a=!0,(t.cleanups??=[]).push(()=>{let e=i;i=null,e!==null&&Ga(e.owner,e.entry)})),i={owner:c,entry:Ua(c,o)};return}return{state:e,block:t,error:r,handler:n,resume:o}},s=vg(t);s===null?pa(o):o(s)}function bg(e){for(let t=0;t<e.length;t++){let n=e[t];if(!(n.block.disposed||n.state.block!==n.block)){if(qm(n.block,!0)!==null){n.resume();continue}gg(n.handler,n.error)}}}function xg(e,t){let n=hg(e)?.onUncaughtError;return n!==void 0&&(gg(n,t),!0)}var Sg=null;function Cg(e,t=null){if(pg===null)return;let n=t??j,r=hg(n)?.onRecoverableError;if(r===void 0)return;let i=n;for(;i.parentBlock!==null;)i=i.parentBlock;let a=Sg??=new WeakSet;a.has(i)||(a.add(i),queueMicrotask(()=>{a.delete(i),gg(r,e())}))}var wg=null,Tg=(e=>e===void 0?null:e),Eg=(()=>void 0);function Dg(e){if(typeof e!=`object`||!e||e.nodeType!==1)throw Error(O(28))}function Og(e){return null}function kg(e,t){t!==null&&t===void 0&&wg.delete(e)}function Ag(e,t,n,r,i,a,o,s){let c,l=!1,u=-1,d=0,f=e=>{let n=!1;Ft.set(e,()=>{if(!(n||t!==e)){n=!0;try{c.unmount()}finally{n=!1}}})},p={current:t,retry:Yu,request:null,generation:0,wakeable:null,retryKey:null,transaction:null,disposed:!1};i.renderOwner=p;let m=(o,u,d,h)=>{if(l)return;if(t&&!t.disposed&&n===o&&Object.is(r,d)){let e=t;p.request=t=>{p.transaction.rootRequest=!0,e.props!==u&&z(e,`props`),e.props=u,e.pendingMode=t,K(e)},U(t);return}if(h===void 0&&t!==null&&!t.disposed&&(Kt>0||qt>0)){p.request=e=>m(o,u,d,e),U(t);return}let g=Kn(p);p.transaction.rootRequest=!0;let _=t,v=n,y=r,b=_!==null&&_.mounted&&!_.disposed&&!p.transaction.created?.has(_),x=b?e.firstChild:null,S=b?e.lastChild:null;R(()=>{t=_,n=v,r=y,p.current=_,_!==null&&f(_)});try{t&&(Ft.delete(t),b||q(t),t=null,n=null,r=null);let l=null,m=null;if(b)l=document.createComment(`root`),m=document.createComment(`/root`),e.append(l,m);else for(;e.firstChild;)e.removeChild(e.firstChild);if(t=G(`root`,null,e,l,m,o,u,void 0,a),t.idState=i,p.current=t,nr(t),mg(t,s),f(t),n=o,r=d,h===void 0&&(Kt>0||qt>0)){t.pending=!0,t.pendingMode=`transition`,M.push(t),!Wt&&!Ut&&(Ut=!0,queueMicrotask(oi));return}let g=t;g.pendingMode=h??null;try{K(g)}catch(e){try{bh(g,e)}catch(e){let n=p.transaction;if(n!==null&&ir(n),t!==null&&!t.disposed&&q(t),!xg(g,e))throw e;return}p.wakeable===null&&c.unmount();return}b&&$n(_,e,x,S),!Wt&&!Ut&&(Ut=!0,queueMicrotask(oi))}finally{qn(g),!Gt&&I===null&&ar()}};return c={render(e,i){if(l)throw Error(O(29));if(Yr()||j!==null){if(u!==Jr&&(u=Jr,d=0),++d>qr){t!==null&&!t.disposed&&(t.nestedUpdateError=!0,U(t));return}}else Jr++,u=Jr,d=0;let a,o=null;_f(e)?(arguments.length,o=e.key??null,typeof e.type==`function`?(a=e.type,i=e.props):(a=Tg,i=e)):typeof e==`function`?a=e:(a=Tg,i=typeof e==`symbol`?null:e),p.transition!==void 0&&t!==null&&!t.disposed&&n===a&&Object.is(r,o)&&N.keepsRoot(p,!0)||(p.transition!==void 0&&N.discardRoot(p),p.generation++,p.wakeable=null),p.nativeRetry?.clear(),p.retryKey=null,p.request=null,p.transaction?.aborted===!0&&(p.transaction=null),p.retry=()=>m(a,i,o),m(a,i,o)},unmount(){if(arguments.length,!l){!Gt&&j===null&&!Yr()&&zt===0&&Jr++,l=!0,p.disposed=!0,p.nativeRetry?.clear(),p.retry=Yu,p.transition!==void 0&&N.discardRoot(p),p.generation++,p.wakeable=null,p.request=null,p.transaction!==null&&ir(p.transaction);try{t&&(Ft.delete(t),q(t,!1),ji(),e.textContent=``,t=null,n=null,r=null)}finally{k?.clearDeferredRefs(p),p.current=null,p.retry=Yu,p.adopt=void 0,p.retryKey=null,p.transaction=null,Nu(e),kg(e,o)}}}},t!==null&&(f(t),p.adopt=e=>{t!==null&&Ft.delete(t),t=e,p.current=e,f(e)}),c}function jg(e,t,n,r){Dg(e);let i,a,o=null;_f(t)?(o=t.key??null,typeof t.type==`function`?(i=t.type,a=t.props):(i=Tg,a=t),r=n):t===void 0?(i=Eg,a=void 0):typeof t==`function`?(i=t,a=n):(i=Tg,a=t);let s=Po(e,$e),c=s===null?void 0:tt(s.textContent||``);s?.remove();let l=Og(e);Mu(e);let u=G(`root`,null,e,null,null,i,a,void 0,va),d={prefix:r?.identifierPrefix??``,next:0};u.idState=d,mg(u,r);let f=null,p=e.querySelector(`script[`+se+`]`);p!==null&&(f=ic(p.textContent||`[]`),p.remove());for(let t=e.firstElementChild;t!==null;){let e=t.nextElementSibling;t.localName===`script`&&t.hasAttribute(`data-octane-stream`)&&t.remove(),t=e}let m=Ag(e,u,i,o,d,va,l,r),h=d.renderOwner,g=()=>{if(h.disposed)return;u.disposed&&(u=G(`root`,null,e,null,null,i,a,void 0,va),u.idState=d,mg(u,r),h.adopt(u));let n=Kn(h);h.transaction.rootRequest=!0,h.transaction.hydrating=!0,nr(u),z(d,`next`),d.next=0;let o=e.firstChild;for(;o!==null&&tc(o);)o=o.nextSibling;let s=new nc(u,o,f);c!==void 0&&(s.nativeAdoption=ft(u,c)),s.passthroughRanges=i[de]===`passthrough`;let l=ec;ec=s;let p=We(s.nativeAdoption?.resolve??null),g=!1,_;try{K(u),ti(u),s.deferredActivities.length!==0&&s.suspend(()=>{for(let e of s.deferredActivities)e()}),s.flushClassWrites(),s.flushTextWarnings(),s.finishRoot(),g=!0}catch(t){if(t instanceof Ue)_=t,ir(h.transaction),q(u,!1);else{try{bh(u,t)}catch(t){if(ir(h.transaction),q(u,!1),e.textContent=``,!xg(u,t))throw t;return}h.wakeable===null&&m.unmount()}}finally{We(p),ec=l,qn(n),!Gt&&I===null&&ar()}if(_!==void 0&&!h.disposed){Cg(()=>_,u),d.next=0,_f(t)?m.render(t):m.render(i,a);return}g&&(s.hasAdjacentRangePair&&s.coalesce(),h.retry=()=>{u.disposed||U(u)},!Wt&&!Ut&&(Ut=!0,queueMicrotask(oi)))};return h.retry=g,g(),m}var Mg=`modulepreload`,Ng=function(e,t){return new URL(e,t).href},Pg={},Fg=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=Ng(t,n),t=s(t),t in Pg)return;Pg[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`:Mg,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)})};w();var Ig={"/src/App.tsrx":()=>Fg(()=>import(`./App-ClMOrpyg.js`),__vite__mapDeps([0,1,2]),import.meta.url),"/src/preview/PreviewHost.tsrx":()=>Fg(()=>import(`./PreviewHost-BHiHrfbQ.js`),__vite__mapDeps([3,1,2]),import.meta.url)},Lg=e=>{let t=new URL(e,globalThis.location.href);if(t.pathname.endsWith(`.tsrx`)&&!t.searchParams.has(`import`)){let e=t.search.slice(1);t.search=e?`?import&`+e:`?import`}return Fg(()=>import(t.href),[],import.meta.url)};function Rg(e){let t=Ig[e];return t?t():Lg(e)}function zg(e,t){return t?typeof e[t]==`function`?e[t]:void 0:typeof e.default==`function`?e.default:Object.entries(e).find(([e,t])=>typeof t==`function`&&/^[A-Z]/.test(e))?.[1]}function Bg(e,t){let n=e;if(t.catch){let e=n,r=t.catch;n=(t,n)=>Io({fallback:(e,t)=>gf(r,{error:e,reset:t}),children:(n,r)=>e(t,r)},n)}if(t.pending){let e=n,r=t.pending;n=(t,n)=>Fo({fallback:gf(r,{}),children:(n,r)=>e(t,r)},n)}return n}(async()=>{try{let e=document.getElementById(`__octane_data`),t=document.getElementById(`root`);if(!e||!t){console.error(`[octane] Unable to hydrate: missing #__octane_data or #root.`);return}let n=JSON.parse(e.textContent||`{}`);if(!n.entry){console.error(`[octane] Unable to hydrate: no route entry in #__octane_data.`);return}let r=zg(await Rg(n.entry),n.exportName??void 0);if(!r){console.error(`[octane] Unable to hydrate: no component export for`,n.entry);return}let i=n.params,a=n.url;if(n.preHydrate){let e=(await Rg(n.preHydrate)).default;typeof e==`function`&&await e({url:a,params:i})}let o;if(n.layout){let e=zg(await Rg(n.layout));if(e){let t=(e,t,n)=>r({params:i,url:a},t,n);o=(n,r,o)=>e({params:i,url:a,children:t},r,o)}}o||=(e,t,n)=>r({params:i,url:a},t,n);let s={pending:null,catch:null};for(let e of[`pending`,`catch`]){let t=n.rootBoundary?.[e];if(!t)continue;let r=zg(await Rg(t.path),t.exportName??void 0);if(!r){console.error(`[octane] Unable to hydrate: no rootBoundary component for`,t.path);return}s[e]=r}jg(t,Bg(o,s))}catch(e){console.error(`[octane] Failed to bootstrap client hydration.`,e)}})();export{Do as $,mf as A,Js as At,du as B,Ms as Bt,oc as C,Pd as Ct,wf as D,Rc as Dt,xa as E,kd as Et,vu as F,$a as Ft,lo as G,ao as H,Se as Ht,yu as I,io as It,po as J,uo as K,bu as L,mo as Lt,Au as M,Lo as Mt,sc as N,gs as Nt,So as O,tu as Ot,_u as P,Bo as Pt,Dh as Q,Wh as R,Va as Rt,wp as S,au as St,Cf as T,Hc as Tt,so as U,oo as V,Ra as Vt,co as W,kc as X,gt as Y,Ac as Z,gc as _,Ul as _t,vc as a,Rs as at,Lc as b,Ld as bt,xc as c,wi as ct,uc as d,Gc as dt,Eo as et,dc as f,Uc as ft,hc as g,Wl as gt,mc as h,Nd as ht,lc as i,Ls as it,ff as j,Cp as jt,gf as k,zh as kt,Sc as l,Ti as lt,pc as m,Wc as mt,vl as n,Fs as nt,yc as o,zf as ot,fc as p,xd as pt,fo as q,cc as r,Is as rt,bc as s,Di as st,Fg as t,zs as tt,Cc as u,Ei as ut,_c as v,Kc as vt,Ip as w,ql as wt,Tp as x,gu as xt,wc as y,Id as yt,Bh as z,yo as zt};