diff --git a/200.html b/200.html index 4c69bff21..57b775327 100644 --- a/200.html +++ b/200.html @@ -7,24 +7,24 @@ - + - - + + - - - - - - - - + + + + + + + + - - + + - -
- \ No newline at end of file + +
+ \ No newline at end of file diff --git a/404.html b/404.html index 4c69bff21..57b775327 100644 --- a/404.html +++ b/404.html @@ -7,24 +7,24 @@ - + - - + + - - - - - - - - + + + + + + + + - - + + - -
- \ No newline at end of file + +
+ \ No newline at end of file diff --git a/__studio.json b/__studio.json index 79bcc79bc..fe25606da 100644 --- a/__studio.json +++ b/__studio.json @@ -1 +1 @@ -{"version":"2.0.3","tokens":"6a7843a41c6847d5400e0b1ff1bb9d8c2ff908fb099d2d5ad5058d6658474b99","gitInfo":{"name":"supabase","owner":"nuxt-modules","url":"https://github.com/nuxt-modules/supabase"},"contentSchema":{},"appConfigSchema":{"properties":{"id":"#appConfig","properties":{"nuxtIcon":{"title":"Nuxt Icon","description":"Configure Nuxt Icon module preferences.","id":"#appConfig/nuxtIcon","properties":{"size":{"title":"Icon Size","description":"Set the default icon size. Set to false to disable the sizing of icon in style.","tags":["@studioIcon material-symbols:format-size-rounded"],"tsType":"string | false","id":"#appConfig/nuxtIcon/size","default":"1em","type":"string"},"class":{"title":"CSS Class","description":"Set the default CSS class.","tags":["@studioIcon material-symbols:css"],"id":"#appConfig/nuxtIcon/class","default":"","type":"string"},"aliases":{"title":"Icon aliases","description":"Define Icon aliases to update them easily without code changes.","tags":["@studioIcon material-symbols:star-rounded"],"tsType":"{ [alias: string]: string }","id":"#appConfig/nuxtIcon/aliases","default":{},"type":"object"},"iconifyApiOptions":{"title":"Iconify API Options","description":"Define preferences for Iconify API fetch.","tags":["@studioIcon material-symbols:tv-options-input-settings"],"id":"#appConfig/nuxtIcon/iconifyApiOptions","properties":{"url":{"title":"Iconify API URL","description":"Define a custom Iconify API URL. Useful if you want to use a self-hosted Iconify API. Learn more: https://iconify.design/docs/api.","tags":["@studioIcon material-symbols:api"],"id":"#appConfig/nuxtIcon/iconifyApiOptions/url","default":"https://api.iconify.design","type":"string"},"publicApiFallback":{"title":"Public Iconify API fallback","description":"Define if the public Iconify API should be used as fallback.","tags":["@studioIcon material-symbols:public"],"id":"#appConfig/nuxtIcon/iconifyApiOptions/publicApiFallback","default":false,"type":"boolean"}},"type":"object","default":{"url":"https://api.iconify.design","publicApiFallback":false}}},"type":"object","default":{"size":"1em","class":"","aliases":{},"iconifyApiOptions":{"url":"https://api.iconify.design","publicApiFallback":false}}},"ui":{"title":"UI","description":"UI Customization.","tags":["@studioIcon i-mdi-palette-outline"],"id":"#appConfig/ui","properties":{"icons":{"title":"Icons","description":"Manage icons used in UI Pro.","tags":["@studioIcon i-mdi-application-settings-outline"],"id":"#appConfig/ui/icons","properties":{"search":{"type":"string","title":"Search Bar","description":"Icon to display in the search bar.","default":"i-heroicons-magnifying-glass-20-solid","tags":["@studioInput icon","@studioIcon i-heroicons-magnifying-glass-20-solid"],"id":"#appConfig/ui/icons/search"},"dark":{"type":"string","title":"Dark mode","description":"Icon of color mode button for dark mode.","default":"i-heroicons-moon-20-solid","tags":["@studioInput icon","@studioIcon i-heroicons-moon-20-solid"],"id":"#appConfig/ui/icons/dark"},"light":{"type":"string","title":"Light mode","description":"Icon of color mode button for light mode.","default":"i-heroicons-sun-20-solid","tags":["@studioInput icon","@studioIcon i-heroicons-sun-20-solid"],"id":"#appConfig/ui/icons/light"},"external":{"type":"string","title":"External Link","description":"Icon for external link.","default":"i-heroicons-arrow-up-right-20-solid","tags":["@studioInput icon","@studioIcon i-heroicons-arrow-up-right-20-solid"],"id":"#appConfig/ui/icons/external"},"chevron":{"type":"string","title":"Chevron","description":"Icon for chevron.","default":"i-heroicons-chevron-down-20-solid","tags":["@studioInput icon","@studioIcon i-heroicons-chevron-down-20-solid"],"id":"#appConfig/ui/icons/chevron"},"hash":{"type":"string","title":"Hash","description":"Icon for hash anchors.","default":"i-heroicons-hashtag-20-solid","tags":["@studioInput icon","@studioIcon i-heroicons-hashtag-20-solid"],"id":"#appConfig/ui/icons/hash"}},"type":"object","default":{"search":"i-heroicons-magnifying-glass-20-solid","dark":"i-heroicons-moon-20-solid","light":"i-heroicons-sun-20-solid","external":"i-heroicons-arrow-up-right-20-solid","chevron":"i-heroicons-chevron-down-20-solid","hash":"i-heroicons-hashtag-20-solid"}}},"type":"object","default":{"icons":{"search":"i-heroicons-magnifying-glass-20-solid","dark":"i-heroicons-moon-20-solid","light":"i-heroicons-sun-20-solid","external":"i-heroicons-arrow-up-right-20-solid","chevron":"i-heroicons-chevron-down-20-solid","hash":"i-heroicons-hashtag-20-solid"}}},"header":{"title":"Header","description":"Header configuration.","tags":["@studioIcon i-mdi-page-layout-header"],"id":"#appConfig/header","properties":{"logo":{"title":"Logo","description":"Footer logo configuration.","tags":["@studioIcon i-mdi-image-filter-center-focus-strong-outline"],"id":"#appConfig/header/logo","properties":{"light":{"type":"string","title":"Light Mode Logo","description":"Pick an image from your gallery.","default":"","tags":["@studioInput media","@studioIcon i-heroicons-sun-20-solid"],"id":"#appConfig/header/logo/light"},"dark":{"type":"string","title":"Dark Mode Logo","description":"Pick an image from your gallery.","default":"","tags":["@studioInput media","@studioIcon i-heroicons-moon-20-solid"],"id":"#appConfig/header/logo/dark"},"alt":{"type":"string","title":"Alt","description":"Alt to display for accessibility.","default":"","tags":["@studioInput string","@studioIcon i-mdi-alphabet-latin"],"id":"#appConfig/header/logo/alt"}},"type":"object","default":{"light":"","dark":"","alt":""}},"search":{"type":"boolean","title":"Search Bar","description":"Hide or display the search bar.","default":true,"tags":["@studioInput boolean","@studioIcon i-mdi-magnify"],"id":"#appConfig/header/search"},"colorMode":{"type":"boolean","title":"Color Mode","description":"Hide or display the color mode button in your header.","default":true,"tags":["@studioInput boolean","@studioIcon i-heroicons-moon-20-solid"],"id":"#appConfig/header/colorMode"},"links":{"type":"array","title":"Links","description":"Array of link object displayed in header.","default":[],"tags":["@studioInput array","@studioIcon i-mdi-link-variant"],"id":"#appConfig/header/links","items":{"type":"any"}}},"type":"object","default":{"logo":{"light":"","dark":"","alt":""},"search":true,"colorMode":true,"links":[]}},"footer":{"title":"Footer","description":"Footer configuration.","tags":["@studioIcon i-mdi-page-layout-footer"],"id":"#appConfig/footer","properties":{"credits":{"type":"string","title":"Footer credits section","description":"Text to display as credits in the footer.","default":"","tags":["@studioInput string","@studioIcon i-mdi-circle-edit-outline"],"id":"#appConfig/footer/credits"},"colorMode":{"type":"boolean","title":"Color Mode","description":"Hide or display the color mode button in the footer.","default":false,"tags":["@studioInput boolean","@studioIcon i-heroicons-moon-20-solid"],"id":"#appConfig/footer/colorMode"},"links":{"type":"array","title":"Links","description":"Array of link object displayed in footer.","default":[],"tags":["@studioInput array","@studioIcon i-mdi-link-variant"],"id":"#appConfig/footer/links","items":{"type":"any"}}},"type":"object","default":{"credits":"","colorMode":false,"links":[]}},"toc":{"title":"Table of contents","description":"TOC configuration.","tags":["@studioIcon i-heroicons-table-cells-solid"],"id":"#appConfig/toc","properties":{"title":{"type":"string","title":"Title","description":"Text to display as title of the main toc.","default":"","tags":["@studioInput string","@studioIcon i-mdi-format-title"],"id":"#appConfig/toc/title"},"bottom":{"title":"Bottom","description":"Bottom TOC configuration.","tags":["@studioIcon i-heroicons-bars-arrow-down-solid"],"id":"#appConfig/toc/bottom","properties":{"title":{"type":"string","title":"Title","description":"Text to display as title of the bottom toc.","default":"","tags":["@studioInput string","@studioIcon i-mdi-format-title"],"id":"#appConfig/toc/bottom/title"},"edit":{"type":"string","title":"Edit Page Link","description":"URL of your repository content folder.","default":"","tags":["@studioInput string","@studioIcon i-heroicons-pencil-square"],"id":"#appConfig/toc/bottom/edit"},"links":{"type":"array","title":"Links","description":"Array of link object displayed in bottom toc.","default":[],"tags":["@studioInput array","@studioIcon i-mdi-link-variant"],"id":"#appConfig/toc/bottom/links","items":{"type":"any"}}},"type":"object","default":{"title":"","edit":"","links":[]}}},"type":"object","default":{"title":"","bottom":{"title":"","edit":"","links":[]}}}},"type":"object","default":{"nuxtIcon":{"size":"1em","class":"","aliases":{},"iconifyApiOptions":{"url":"https://api.iconify.design","publicApiFallback":false}},"ui":{"icons":{"search":"i-heroicons-magnifying-glass-20-solid","dark":"i-heroicons-moon-20-solid","light":"i-heroicons-sun-20-solid","external":"i-heroicons-arrow-up-right-20-solid","chevron":"i-heroicons-chevron-down-20-solid","hash":"i-heroicons-hashtag-20-solid"}},"header":{"logo":{"light":"","dark":"","alt":""},"search":true,"colorMode":true,"links":[]},"footer":{"credits":"","colorMode":false,"links":[]},"toc":{"title":"","bottom":{"title":"","edit":"","links":[]}}}},"default":{"nuxtIcon":{"size":"1em","class":"","aliases":{},"iconifyApiOptions":{"url":"https://api.iconify.design","publicApiFallback":false}},"ui":{"icons":{"search":"i-heroicons-magnifying-glass-20-solid","dark":"i-heroicons-moon-20-solid","light":"i-heroicons-sun-20-solid","external":"i-heroicons-arrow-up-right-20-solid","chevron":"i-heroicons-chevron-down-20-solid","hash":"i-heroicons-hashtag-20-solid"}},"header":{"logo":{"light":"","dark":"","alt":""},"search":true,"colorMode":true,"links":[]},"footer":{"credits":"","colorMode":false,"links":[]},"toc":{"title":"","bottom":{"title":"","edit":"","links":[]}}}},"appConfig":{"nuxt":{},"ui":{"primary":"green","gray":"slate","colors":["red","orange","amber","yellow","lime","green","emerald","teal","cyan","sky","blue","indigo","violet","purple","fuchsia","pink","rose","primary"],"strategy":"merge","variables":{"light":{"background":"255 255 255","foreground":"var(--color-gray-700)"},"dark":{"background":"var(--color-gray-900)","foreground":"var(--color-gray-200)"},"header":{"height":"4rem"}},"icons":{"dark":"i-heroicons-moon","light":"i-heroicons-sun","system":"i-heroicons-computer-desktop-20-solid","search":"i-heroicons-magnifying-glass-20-solid","external":"i-heroicons-arrow-up-right-20-solid","chevron":"i-heroicons-chevron-down-20-solid","hash":"i-heroicons-hashtag-20-solid","menu":"i-heroicons-bars-3-20-solid","close":"i-heroicons-x-mark-20-solid","check":"i-heroicons-check-circle-20-solid"},"presets":{"button":{"primary":{"color":"white","variant":"solid"},"secondary":{"color":"gray","variant":"ghost"},"input":{"color":"white","variant":"outline","ui":{"font":"","color":{"white":{"outline":"ring-1 ring-inset ring-gray-300 dark:ring-gray-700 hover:ring-gray-300 dark:hover:ring-gray-700 hover:bg-gray-100/50 dark:hover:bg-gray-800/50 text-gray-400 dark:text-gray-500 hover:text-gray-700 dark:hover:text-gray-200 focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400"}}}}}},"footer":{"bottom":{"left":"text-sm text-gray-500 dark:text-gray-400","wrapper":"border-t border-gray-200 dark:border-gray-800"}}},"header":{"logo":{"alt":"logo nuxt supabase module","light":"/logo-nuxt-supabase-light.png","dark":"/logo-nuxt-supabase-dark.png"},"search":true,"colorMode":true,"links":[{"icon":"i-simple-icons-x","to":"https://x.com/nuxt_js","target":"_blank","aria-label":"Nuxt on X"},{"icon":"i-simple-icons-github","to":"https://github.com/nuxt-modules/supabase","target":"_blank","aria-label":"Module on GitHub"},{"icon":"i-simple-icons-nuxtdotjs","to":"https://nuxt.com","target":"_blank","aria-label":"Nuxt official website"},{"icon":"i-simple-icons-supabase","to":"https://supabase.com","target":"_blank","aria-label":"Supabase official website"}]},"footer":{"credits":"Made with Nuxt Studio","colorMode":false,"links":[{"icon":"i-simple-icons-x","to":"https://x.com/nuxt_js","target":"_blank","aria-label":"Nuxt on X"},{"icon":"i-simple-icons-github","to":"https://github.com/nuxt-modules/supabase","target":"_blank","aria-label":"Module on GitHub"},{"icon":"i-simple-icons-nuxtdotjs","to":"https://nuxt.com","target":"_blank","aria-label":"Nuxt official website"},{"icon":"i-simple-icons-supabase","to":"https://supabase.com","target":"_blank","aria-label":"Supabase official website"}]},"toc":{"title":"Table of Contents","bottom":{"title":"Community","edit":"https://github.com/nuxt-modules/supabase/edit/main/docs/content","links":[{"icon":"i-heroicons-star","label":"Star on GitHub","to":"https://github.com/nuxt-modules/supabase","target":"_blank"},{"icon":"i-simple-icons-nuxtdotjs","label":"Nuxt docs","to":"https://nuxt.com","target":"_blank"},{"icon":"i-simple-icons-supabase","label":"Supabase docs","to":"https://supabase.com","target":"_blank"}]}}},"content":{"sources":{},"ignores":[],"locales":[],"defaultLocale":"","highlight":{"theme":{"light":"material-theme-lighter","default":"material-theme","dark":"material-theme-palenight"},"preload":["json","js","ts","html","css","vue","diff","shell","markdown","yaml","bash","ini"],"highlighter":"shiki","langs":["js","jsx","json","ts","tsx","vue","css","html","bash","md","mdc","yaml","json","js","ts","html","css","vue","diff","shell","markdown","yaml","bash","ini"]},"navigation":{"fields":["icon","to","target"]},"documentDriven":false,"experimental":{"clientDB":false,"cacheContents":true,"stripQueryParameters":false,"advanceQuery":false,"search":""}},"components":[{"name":"Releases","path":"components/content/Releases.vue","meta":{"props":[],"slots":[],"events":[]}},{"name":"VoltaBoard","path":"components/content/VoltaBoard.vue","meta":{"props":[{"name":"token","global":false,"description":"","tags":[],"required":true,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/components/content/VoltaBoard.vue","range":[164,214]},{"file":"/home/runner/work/supabase/supabase/docs/components/content/VoltaBoard.vue","range":[164,214]}],"schema":"string"}],"slots":[],"events":[]}},{"name":"Callout","path":"node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Callout.vue","meta":{"props":[{"name":"icon","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Callout.vue","range":[1600,1652]}],"schema":"string","default":"undefined"},{"name":"color","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Callout.vue","range":[1656,1746]}],"schema":"string","default":"\"primary\""},{"name":"to","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Callout.vue","range":[1750,1800]}],"schema":"string","default":"undefined"},{"name":"target","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Callout.vue","range":[1804,1858]}],"schema":"string","default":"undefined"},{"name":"ui","global":false,"description":"","tags":[],"required":false,"type":"any","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Callout.vue","range":[1953,2046]}],"schema":"any","default":"{}"}],"slots":[{"name":"default","type":"{ unwrap: string; }","description":"","declarations":[],"schema":{"kind":"object","type":"{ unwrap: string; }","schema":{"unwrap":{"name":"unwrap","global":false,"description":"","tags":[],"required":true,"type":"string","declarations":[],"schema":"string"}}}}],"events":[]}},{"name":"Card","path":"node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Card.vue","meta":{"props":[{"name":"icon","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Card.vue","range":[1663,1715]}],"schema":"string","default":"undefined"},{"name":"color","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Card.vue","range":[1719,1809]}],"schema":"string","default":"\"primary\""},{"name":"to","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Card.vue","range":[1813,1863]}],"schema":"string","default":"undefined"},{"name":"target","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Card.vue","range":[1867,1921]}],"schema":"string","default":"undefined"},{"name":"title","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Card.vue","range":[1925,1978]}],"schema":"string","default":"undefined"},{"name":"ui","global":false,"description":"","tags":[],"required":false,"type":"any","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Card.vue","range":[2073,2166]}],"schema":"any","default":"{}"}],"slots":[{"name":"default","type":"{ unwrap: string; }","description":"","declarations":[],"schema":{"kind":"object","type":"{ unwrap: string; }","schema":{"unwrap":{"name":"unwrap","global":false,"description":"","tags":[],"required":true,"type":"string","declarations":[],"schema":"string"}}}}],"events":[]}},{"name":"CardGroup","path":"node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/CardGroup.vue","meta":{"props":[],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"CodeGroup","path":"node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/CodeGroup.vue","meta":{"props":[],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"Collapsible","path":"node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Collapsible.vue","meta":{"props":[{"name":"name","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Collapsible.vue","range":[1085,1140]}],"schema":"string","default":"\"properties\""},{"name":"openText","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Collapsible.vue","range":[1144,1197]}],"schema":"string","default":"\"Show\""},{"name":"closeText","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Collapsible.vue","range":[1201,1255]}],"schema":"string","default":"\"Hide\""}],"slots":[{"name":"default","type":"{ unwrap: string; }","description":"","declarations":[],"schema":{"kind":"object","type":"{ unwrap: string; }","schema":{"unwrap":{"name":"unwrap","global":false,"description":"","tags":[],"required":true,"type":"string","declarations":[],"schema":"string"}}}}],"events":[]}},{"name":"Field","path":"node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Field.vue","meta":{"props":[{"name":"name","global":false,"description":"","tags":[],"required":true,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Field.vue","range":[953,1001]},{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Field.vue","range":[953,1001]}],"schema":"string"},{"name":"default","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Field.vue","range":[1181,1236]}],"schema":"string","default":"undefined"},{"name":"description","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Field.vue","range":[1005,1064]}],"schema":"string","default":"undefined"},{"name":"type","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Field.vue","range":[1068,1120]}],"schema":"string","default":"undefined"},{"name":"ui","global":false,"description":"","tags":[],"required":false,"type":"{}","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Field.vue","range":[1331,1418]}],"schema":{"kind":"object","type":"{}","schema":{}},"default":"{}"},{"name":"required","global":false,"description":"","tags":[],"required":false,"type":"boolean","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Field.vue","range":[1124,1177]}],"schema":{"kind":"enum","type":"boolean","schema":{"0":"false","1":"true"}},"default":"false"}],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"FieldGroup","path":"node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/FieldGroup.vue","meta":{"props":[],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"Shortcut","path":"node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Shortcut.vue","meta":{"props":[{"name":"value","global":false,"description":"","tags":[],"required":true,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Shortcut.vue","range":[285,334]},{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Shortcut.vue","range":[285,334]}],"schema":"string"}],"slots":[],"events":[]}},{"name":"Tabs","path":"node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Tabs.vue","meta":{"props":[{"name":"selectedIndex","global":false,"description":"","tags":[],"required":false,"type":"number","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Tabs.vue","range":[1382,1435]}],"schema":"number","default":"0"}],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"ProseCode","path":"node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseCode.vue","meta":{"props":[{"name":"code","global":false,"description":"","tags":[],"required":true,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseCode.vue","range":[78,126]},{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseCode.vue","range":[78,126]}],"schema":"string"},{"name":"icon","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseCode.vue","range":[130,182]}],"schema":"string","default":"undefined"},{"name":"language","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseCode.vue","range":[186,242]}],"schema":"string","default":"undefined"},{"name":"filename","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseCode.vue","range":[305,361]}],"schema":"string","default":"undefined"},{"name":"highlights","global":false,"description":"","tags":[],"required":false,"type":"number[]","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseCode.vue","range":[365,444]}],"schema":{"kind":"array","type":"number[]","schema":{"0":"number"}},"default":"undefined"},{"name":"meta","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseCode.vue","range":[448,500]}],"schema":"string","default":"undefined"},{"name":"hideHeader","global":false,"description":"","tags":[],"required":false,"type":"boolean","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseCode.vue","range":[246,301]}],"schema":{"kind":"enum","type":"boolean","schema":{"0":"false","1":"true"}},"default":"false"}],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"ProseCodeButton","path":"node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseCodeButton.vue","meta":{"props":[{"name":"code","global":false,"description":"","tags":[],"required":true,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseCodeButton.vue","range":[55,103]},{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseCodeButton.vue","range":[55,103]}],"schema":"string"}],"slots":[],"events":[]}},{"name":"ProseCodeIcon","path":"node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseCodeIcon.vue","meta":{"props":[{"name":"icon","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseCodeIcon.vue","range":[55,107]}],"schema":"string","default":"undefined"},{"name":"filename","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseCodeIcon.vue","range":[111,167]}],"schema":"string","default":"undefined"}],"slots":[],"events":[]}},{"name":"ProseH1","path":"node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseH1.vue","meta":{"props":[{"name":"id","global":false,"description":"","tags":[],"required":true,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseH1.vue","range":[414,460]},{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseH1.vue","range":[414,460]}],"schema":"string"}],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"ProseH2","path":"node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseH2.vue","meta":{"props":[{"name":"id","global":false,"description":"","tags":[],"required":true,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseH2.vue","range":[414,460]},{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseH2.vue","range":[414,460]}],"schema":"string"}],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"ProseH3","path":"node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseH3.vue","meta":{"props":[{"name":"id","global":false,"description":"","tags":[],"required":true,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseH3.vue","range":[414,460]},{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseH3.vue","range":[414,460]}],"schema":"string"}],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"ProseH4","path":"node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseH4.vue","meta":{"props":[{"name":"id","global":false,"description":"","tags":[],"required":true,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseH4.vue","range":[414,460]},{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseH4.vue","range":[414,460]}],"schema":"string"}],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"ProseCodeInline","path":"node_modules/.pnpm/@nuxt+content@2.13.1_ioredis@5.4.1_magicast@0.3.4_nuxt@3.12.3_@opentelemetry+api@1.9.0_@parce_2izlttertr6ui4lqguw67qlh6y/node_modules/@nuxt/content/dist/runtime/components/Prose/ProseCodeInline.vue","meta":{"props":[],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"ProsePre","path":"node_modules/.pnpm/@nuxt+content@2.13.1_ioredis@5.4.1_magicast@0.3.4_nuxt@3.12.3_@opentelemetry+api@1.9.0_@parce_2izlttertr6ui4lqguw67qlh6y/node_modules/@nuxt/content/dist/runtime/components/Prose/ProsePre.vue","meta":{"props":[{"name":"code","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+content@2.13.1_ioredis@5.4.1_magicast@0.3.4_nuxt@3.12.3_@opentelemetry+api@1.9.0_@parce_2izlttertr6ui4lqguw67qlh6y/node_modules/@nuxt/content/dist/runtime/components/Prose/ProsePre.vue","range":[248,293]}],"schema":"string","default":"\"\""},{"name":"filename","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+content@2.13.1_ioredis@5.4.1_magicast@0.3.4_nuxt@3.12.3_@opentelemetry+api@1.9.0_@parce_2izlttertr6ui4lqguw67qlh6y/node_modules/@nuxt/content/dist/runtime/components/Prose/ProsePre.vue","range":[352,403]}],"schema":"string","default":"null"},{"name":"language","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+content@2.13.1_ioredis@5.4.1_magicast@0.3.4_nuxt@3.12.3_@opentelemetry+api@1.9.0_@parce_2izlttertr6ui4lqguw67qlh6y/node_modules/@nuxt/content/dist/runtime/components/Prose/ProsePre.vue","range":[297,348]}],"schema":"string","default":"null"},{"name":"highlights","global":false,"description":"","tags":[],"required":false,"type":"number[]","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+content@2.13.1_ioredis@5.4.1_magicast@0.3.4_nuxt@3.12.3_@opentelemetry+api@1.9.0_@parce_2izlttertr6ui4lqguw67qlh6y/node_modules/@nuxt/content/dist/runtime/components/Prose/ProsePre.vue","range":[407,481]}],"schema":{"kind":"array","type":"number[]","schema":{"0":"number"}},"default":"[]"},{"name":"meta","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+content@2.13.1_ioredis@5.4.1_magicast@0.3.4_nuxt@3.12.3_@opentelemetry+api@1.9.0_@parce_2izlttertr6ui4lqguw67qlh6y/node_modules/@nuxt/content/dist/runtime/components/Prose/ProsePre.vue","range":[485,532]}],"schema":"string","default":"null"}],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"ProseA","path":"node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseA.vue","meta":{"props":[{"name":"href","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseA.vue","range":[183,228]}],"schema":"string","default":"\"\""},{"name":"target","global":false,"description":"","tags":[],"required":false,"type":"\"_blank\" | \"_parent\" | \"_self\" | \"_top\"","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseA.vue","range":[232,399]}],"schema":{"kind":"enum","type":"\"_blank\" | \"_parent\" | \"_self\" | \"_top\"","schema":{"0":"\"_blank\"","1":"\"_parent\"","2":"\"_self\"","3":"\"_top\""}},"default":"undefined"}],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"ProseBlockquote","path":"node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseBlockquote.vue","meta":{"props":[],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"ProseEm","path":"node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseEm.vue","meta":{"props":[],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"ProseH5","path":"node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseH5.vue","meta":{"props":[{"name":"id","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseH5.vue","range":[264,275]},{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseH5.vue","range":[264,275]}],"schema":"string"}],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"ProseH6","path":"node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseH6.vue","meta":{"props":[{"name":"id","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseH6.vue","range":[264,275]},{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseH6.vue","range":[264,275]}],"schema":"string"}],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"ProseHr","path":"node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseHr.vue","meta":{"props":[],"slots":[],"events":[]}},{"name":"ProseImg","path":"node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseImg.vue","meta":{"props":[{"name":"src","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseImg.vue","range":[440,484]}],"schema":"string","default":"\"\""},{"name":"alt","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseImg.vue","range":[488,532]}],"schema":"string","default":"\"\""},{"name":"width","global":false,"description":"","tags":[],"required":false,"type":"string | number","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseImg.vue","range":[536,599]}],"schema":{"kind":"enum","type":"string | number","schema":{"0":"string","1":"number"}},"default":"undefined"},{"name":"height","global":false,"description":"","tags":[],"required":false,"type":"string | number","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseImg.vue","range":[603,667]}],"schema":{"kind":"enum","type":"string | number","schema":{"0":"string","1":"number"}},"default":"undefined"}],"slots":[],"events":[]}},{"name":"ProseLi","path":"node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseLi.vue","meta":{"props":[],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"ProseOl","path":"node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseOl.vue","meta":{"props":[],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"ProseP","path":"node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseP.vue","meta":{"props":[],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"ProseScript","path":"node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseScript.vue","meta":{"props":[{"name":"src","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseScript.vue","range":[285,329]}],"schema":"string","default":"\"\""}],"slots":[],"events":[]}},{"name":"ProseStrong","path":"node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseStrong.vue","meta":{"props":[],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"ProseTable","path":"node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseTable.vue","meta":{"props":[],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"ProseTbody","path":"node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseTbody.vue","meta":{"props":[],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"ProseTd","path":"node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseTd.vue","meta":{"props":[],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"ProseTh","path":"node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseTh.vue","meta":{"props":[],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"ProseThead","path":"node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseThead.vue","meta":{"props":[],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"ProseTr","path":"node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseTr.vue","meta":{"props":[],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"ProseUl","path":"node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseUl.vue","meta":{"props":[],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"Icon","path":"node_modules/.pnpm/nuxt-icon@0.6.10_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11.7_terser@5.27.0__vue@3.3.13_typescript@5.5.3_/node_modules/nuxt-icon/dist/runtime/Icon.vue","meta":{"props":[{"name":"name","global":false,"description":"","tags":[],"required":true,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/nuxt-icon@0.6.10_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11.7_terser@5.27.0__vue@3.3.13_typescript@5.5.3_/node_modules/nuxt-icon/dist/runtime/Icon.vue","range":[669,717]},{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/nuxt-icon@0.6.10_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11.7_terser@5.27.0__vue@3.3.13_typescript@5.5.3_/node_modules/nuxt-icon/dist/runtime/Icon.vue","range":[669,717]}],"schema":"string"},{"name":"size","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/nuxt-icon@0.6.10_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11.7_terser@5.27.0__vue@3.3.13_typescript@5.5.3_/node_modules/nuxt-icon/dist/runtime/Icon.vue","range":[721,766]}],"schema":"string","default":"\"\""}],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"IconCSS","path":"node_modules/.pnpm/nuxt-icon@0.6.10_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11.7_terser@5.27.0__vue@3.3.13_typescript@5.5.3_/node_modules/nuxt-icon/dist/runtime/IconCSS.vue","meta":{"props":[{"name":"name","global":false,"description":"","tags":[],"required":true,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/nuxt-icon@0.6.10_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11.7_terser@5.27.0__vue@3.3.13_typescript@5.5.3_/node_modules/nuxt-icon/dist/runtime/IconCSS.vue","range":[387,435]},{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/nuxt-icon@0.6.10_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11.7_terser@5.27.0__vue@3.3.13_typescript@5.5.3_/node_modules/nuxt-icon/dist/runtime/IconCSS.vue","range":[387,435]}],"schema":"string"},{"name":"size","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/nuxt-icon@0.6.10_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11.7_terser@5.27.0__vue@3.3.13_typescript@5.5.3_/node_modules/nuxt-icon/dist/runtime/IconCSS.vue","range":[439,484]}],"schema":"string","default":"\"\""}],"slots":[],"events":[]}},{"name":"OgImageStatic","path":"node_modules/.pnpm/nuxt-og-image@2.2.6_@nuxt+devtools@1.3.9_rollup@4.18.0_vite@5.3.3_@types+node@20.11.7_terser@_fb2sfemo6kj3kag3vzuwfi6qwa/node_modules/nuxt-og-image/dist/runtime/components/OgImage/Static.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"OgImageDynamic","path":"node_modules/.pnpm/nuxt-og-image@2.2.6_@nuxt+devtools@1.3.9_rollup@4.18.0_vite@5.3.3_@types+node@20.11.7_terser@_fb2sfemo6kj3kag3vzuwfi6qwa/node_modules/nuxt-og-image/dist/runtime/components/OgImage/Dynamic.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"OgImage","path":"node_modules/.pnpm/nuxt-og-image@2.2.6_@nuxt+devtools@1.3.9_rollup@4.18.0_vite@5.3.3_@types+node@20.11.7_terser@_fb2sfemo6kj3kag3vzuwfi6qwa/node_modules/nuxt-og-image/dist/runtime/components/OgImage/index.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"OgImageCached","path":"node_modules/.pnpm/nuxt-og-image@2.2.6_@nuxt+devtools@1.3.9_rollup@4.18.0_vite@5.3.3_@types+node@20.11.7_terser@_fb2sfemo6kj3kag3vzuwfi6qwa/node_modules/nuxt-og-image/dist/runtime/components/OgImage/Cached.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"OgImageWithoutCache","path":"node_modules/.pnpm/nuxt-og-image@2.2.6_@nuxt+devtools@1.3.9_rollup@4.18.0_vite@5.3.3_@types+node@20.11.7_terser@_fb2sfemo6kj3kag3vzuwfi6qwa/node_modules/nuxt-og-image/dist/runtime/components/OgImage/WithoutCache.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"OgImageScreenshot","path":"node_modules/.pnpm/nuxt-og-image@2.2.6_@nuxt+devtools@1.3.9_rollup@4.18.0_vite@5.3.3_@types+node@20.11.7_terser@_fb2sfemo6kj3kag3vzuwfi6qwa/node_modules/nuxt-og-image/dist/runtime/components/OgImage/Screenshot.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"GithubRepository","path":"node_modules/.pnpm/@nuxtlabs+github-module@1.6.3_encoding@0.1.13_rollup@4.18.0/node_modules/@nuxtlabs/github-module/dist/runtime/components/GithubRepository.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"GithubLink","path":"node_modules/.pnpm/@nuxtlabs+github-module@1.6.3_encoding@0.1.13_rollup@4.18.0/node_modules/@nuxtlabs/github-module/dist/runtime/components/GithubLink.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"GithubReadme","path":"node_modules/.pnpm/@nuxtlabs+github-module@1.6.3_encoding@0.1.13_rollup@4.18.0/node_modules/@nuxtlabs/github-module/dist/runtime/components/GithubReadme.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"GithubReleases","path":"node_modules/.pnpm/@nuxtlabs+github-module@1.6.3_encoding@0.1.13_rollup@4.18.0/node_modules/@nuxtlabs/github-module/dist/runtime/components/GithubReleases.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"GithubLastRelease","path":"node_modules/.pnpm/@nuxtlabs+github-module@1.6.3_encoding@0.1.13_rollup@4.18.0/node_modules/@nuxtlabs/github-module/dist/runtime/components/GithubLastRelease.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"GithubRelease","path":"node_modules/.pnpm/@nuxtlabs+github-module@1.6.3_encoding@0.1.13_rollup@4.18.0/node_modules/@nuxtlabs/github-module/dist/runtime/components/GithubRelease.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"GithubContributors","path":"node_modules/.pnpm/@nuxtlabs+github-module@1.6.3_encoding@0.1.13_rollup@4.18.0/node_modules/@nuxtlabs/github-module/dist/runtime/components/GithubContributors.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"GithubFileContributors","path":"node_modules/.pnpm/@nuxtlabs+github-module@1.6.3_encoding@0.1.13_rollup@4.18.0/node_modules/@nuxtlabs/github-module/dist/runtime/components/GithubFileContributors.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"GithubCommits","path":"node_modules/.pnpm/@nuxtlabs+github-module@1.6.3_encoding@0.1.13_rollup@4.18.0/node_modules/@nuxtlabs/github-module/dist/runtime/components/GithubCommits.mjs","meta":{"props":[],"slots":[],"events":[]}}]} \ No newline at end of file +{"version":"2.0.3","tokens":"6a7843a41c6847d5400e0b1ff1bb9d8c2ff908fb099d2d5ad5058d6658474b99","gitInfo":{"name":"supabase","owner":"nuxt-modules","url":"https://github.com/nuxt-modules/supabase"},"contentSchema":{},"appConfigSchema":{"properties":{"id":"#appConfig","properties":{"nuxtIcon":{"title":"Nuxt Icon","description":"Configure Nuxt Icon module preferences.","id":"#appConfig/nuxtIcon","properties":{"size":{"title":"Icon Size","description":"Set the default icon size. Set to false to disable the sizing of icon in style.","tags":["@studioIcon material-symbols:format-size-rounded"],"tsType":"string | false","id":"#appConfig/nuxtIcon/size","default":"1em","type":"string"},"class":{"title":"CSS Class","description":"Set the default CSS class.","tags":["@studioIcon material-symbols:css"],"id":"#appConfig/nuxtIcon/class","default":"","type":"string"},"aliases":{"title":"Icon aliases","description":"Define Icon aliases to update them easily without code changes.","tags":["@studioIcon material-symbols:star-rounded"],"tsType":"{ [alias: string]: string }","id":"#appConfig/nuxtIcon/aliases","default":{},"type":"object"},"iconifyApiOptions":{"title":"Iconify API Options","description":"Define preferences for Iconify API fetch.","tags":["@studioIcon material-symbols:tv-options-input-settings"],"id":"#appConfig/nuxtIcon/iconifyApiOptions","properties":{"url":{"title":"Iconify API URL","description":"Define a custom Iconify API URL. Useful if you want to use a self-hosted Iconify API. Learn more: https://iconify.design/docs/api.","tags":["@studioIcon material-symbols:api"],"id":"#appConfig/nuxtIcon/iconifyApiOptions/url","default":"https://api.iconify.design","type":"string"},"publicApiFallback":{"title":"Public Iconify API fallback","description":"Define if the public Iconify API should be used as fallback.","tags":["@studioIcon material-symbols:public"],"id":"#appConfig/nuxtIcon/iconifyApiOptions/publicApiFallback","default":false,"type":"boolean"}},"type":"object","default":{"url":"https://api.iconify.design","publicApiFallback":false}}},"type":"object","default":{"size":"1em","class":"","aliases":{},"iconifyApiOptions":{"url":"https://api.iconify.design","publicApiFallback":false}}},"ui":{"title":"UI","description":"UI Customization.","tags":["@studioIcon i-mdi-palette-outline"],"id":"#appConfig/ui","properties":{"icons":{"title":"Icons","description":"Manage icons used in UI Pro.","tags":["@studioIcon i-mdi-application-settings-outline"],"id":"#appConfig/ui/icons","properties":{"search":{"type":"string","title":"Search Bar","description":"Icon to display in the search bar.","default":"i-heroicons-magnifying-glass-20-solid","tags":["@studioInput icon","@studioIcon i-heroicons-magnifying-glass-20-solid"],"id":"#appConfig/ui/icons/search"},"dark":{"type":"string","title":"Dark mode","description":"Icon of color mode button for dark mode.","default":"i-heroicons-moon-20-solid","tags":["@studioInput icon","@studioIcon i-heroicons-moon-20-solid"],"id":"#appConfig/ui/icons/dark"},"light":{"type":"string","title":"Light mode","description":"Icon of color mode button for light mode.","default":"i-heroicons-sun-20-solid","tags":["@studioInput icon","@studioIcon i-heroicons-sun-20-solid"],"id":"#appConfig/ui/icons/light"},"external":{"type":"string","title":"External Link","description":"Icon for external link.","default":"i-heroicons-arrow-up-right-20-solid","tags":["@studioInput icon","@studioIcon i-heroicons-arrow-up-right-20-solid"],"id":"#appConfig/ui/icons/external"},"chevron":{"type":"string","title":"Chevron","description":"Icon for chevron.","default":"i-heroicons-chevron-down-20-solid","tags":["@studioInput icon","@studioIcon i-heroicons-chevron-down-20-solid"],"id":"#appConfig/ui/icons/chevron"},"hash":{"type":"string","title":"Hash","description":"Icon for hash anchors.","default":"i-heroicons-hashtag-20-solid","tags":["@studioInput icon","@studioIcon i-heroicons-hashtag-20-solid"],"id":"#appConfig/ui/icons/hash"}},"type":"object","default":{"search":"i-heroicons-magnifying-glass-20-solid","dark":"i-heroicons-moon-20-solid","light":"i-heroicons-sun-20-solid","external":"i-heroicons-arrow-up-right-20-solid","chevron":"i-heroicons-chevron-down-20-solid","hash":"i-heroicons-hashtag-20-solid"}}},"type":"object","default":{"icons":{"search":"i-heroicons-magnifying-glass-20-solid","dark":"i-heroicons-moon-20-solid","light":"i-heroicons-sun-20-solid","external":"i-heroicons-arrow-up-right-20-solid","chevron":"i-heroicons-chevron-down-20-solid","hash":"i-heroicons-hashtag-20-solid"}}},"header":{"title":"Header","description":"Header configuration.","tags":["@studioIcon i-mdi-page-layout-header"],"id":"#appConfig/header","properties":{"logo":{"title":"Logo","description":"Footer logo configuration.","tags":["@studioIcon i-mdi-image-filter-center-focus-strong-outline"],"id":"#appConfig/header/logo","properties":{"light":{"type":"string","title":"Light Mode Logo","description":"Pick an image from your gallery.","default":"","tags":["@studioInput media","@studioIcon i-heroicons-sun-20-solid"],"id":"#appConfig/header/logo/light"},"dark":{"type":"string","title":"Dark Mode Logo","description":"Pick an image from your gallery.","default":"","tags":["@studioInput media","@studioIcon i-heroicons-moon-20-solid"],"id":"#appConfig/header/logo/dark"},"alt":{"type":"string","title":"Alt","description":"Alt to display for accessibility.","default":"","tags":["@studioInput string","@studioIcon i-mdi-alphabet-latin"],"id":"#appConfig/header/logo/alt"}},"type":"object","default":{"light":"","dark":"","alt":""}},"search":{"type":"boolean","title":"Search Bar","description":"Hide or display the search bar.","default":true,"tags":["@studioInput boolean","@studioIcon i-mdi-magnify"],"id":"#appConfig/header/search"},"colorMode":{"type":"boolean","title":"Color Mode","description":"Hide or display the color mode button in your header.","default":true,"tags":["@studioInput boolean","@studioIcon i-heroicons-moon-20-solid"],"id":"#appConfig/header/colorMode"},"links":{"type":"array","title":"Links","description":"Array of link object displayed in header.","default":[],"tags":["@studioInput array","@studioIcon i-mdi-link-variant"],"id":"#appConfig/header/links","items":{"type":"any"}}},"type":"object","default":{"logo":{"light":"","dark":"","alt":""},"search":true,"colorMode":true,"links":[]}},"footer":{"title":"Footer","description":"Footer configuration.","tags":["@studioIcon i-mdi-page-layout-footer"],"id":"#appConfig/footer","properties":{"credits":{"type":"string","title":"Footer credits section","description":"Text to display as credits in the footer.","default":"","tags":["@studioInput string","@studioIcon i-mdi-circle-edit-outline"],"id":"#appConfig/footer/credits"},"colorMode":{"type":"boolean","title":"Color Mode","description":"Hide or display the color mode button in the footer.","default":false,"tags":["@studioInput boolean","@studioIcon i-heroicons-moon-20-solid"],"id":"#appConfig/footer/colorMode"},"links":{"type":"array","title":"Links","description":"Array of link object displayed in footer.","default":[],"tags":["@studioInput array","@studioIcon i-mdi-link-variant"],"id":"#appConfig/footer/links","items":{"type":"any"}}},"type":"object","default":{"credits":"","colorMode":false,"links":[]}},"toc":{"title":"Table of contents","description":"TOC configuration.","tags":["@studioIcon i-heroicons-table-cells-solid"],"id":"#appConfig/toc","properties":{"title":{"type":"string","title":"Title","description":"Text to display as title of the main toc.","default":"","tags":["@studioInput string","@studioIcon i-mdi-format-title"],"id":"#appConfig/toc/title"},"bottom":{"title":"Bottom","description":"Bottom TOC configuration.","tags":["@studioIcon i-heroicons-bars-arrow-down-solid"],"id":"#appConfig/toc/bottom","properties":{"title":{"type":"string","title":"Title","description":"Text to display as title of the bottom toc.","default":"","tags":["@studioInput string","@studioIcon i-mdi-format-title"],"id":"#appConfig/toc/bottom/title"},"edit":{"type":"string","title":"Edit Page Link","description":"URL of your repository content folder.","default":"","tags":["@studioInput string","@studioIcon i-heroicons-pencil-square"],"id":"#appConfig/toc/bottom/edit"},"links":{"type":"array","title":"Links","description":"Array of link object displayed in bottom toc.","default":[],"tags":["@studioInput array","@studioIcon i-mdi-link-variant"],"id":"#appConfig/toc/bottom/links","items":{"type":"any"}}},"type":"object","default":{"title":"","edit":"","links":[]}}},"type":"object","default":{"title":"","bottom":{"title":"","edit":"","links":[]}}}},"type":"object","default":{"nuxtIcon":{"size":"1em","class":"","aliases":{},"iconifyApiOptions":{"url":"https://api.iconify.design","publicApiFallback":false}},"ui":{"icons":{"search":"i-heroicons-magnifying-glass-20-solid","dark":"i-heroicons-moon-20-solid","light":"i-heroicons-sun-20-solid","external":"i-heroicons-arrow-up-right-20-solid","chevron":"i-heroicons-chevron-down-20-solid","hash":"i-heroicons-hashtag-20-solid"}},"header":{"logo":{"light":"","dark":"","alt":""},"search":true,"colorMode":true,"links":[]},"footer":{"credits":"","colorMode":false,"links":[]},"toc":{"title":"","bottom":{"title":"","edit":"","links":[]}}}},"default":{"nuxtIcon":{"size":"1em","class":"","aliases":{},"iconifyApiOptions":{"url":"https://api.iconify.design","publicApiFallback":false}},"ui":{"icons":{"search":"i-heroicons-magnifying-glass-20-solid","dark":"i-heroicons-moon-20-solid","light":"i-heroicons-sun-20-solid","external":"i-heroicons-arrow-up-right-20-solid","chevron":"i-heroicons-chevron-down-20-solid","hash":"i-heroicons-hashtag-20-solid"}},"header":{"logo":{"light":"","dark":"","alt":""},"search":true,"colorMode":true,"links":[]},"footer":{"credits":"","colorMode":false,"links":[]},"toc":{"title":"","bottom":{"title":"","edit":"","links":[]}}}},"appConfig":{"nuxt":{},"ui":{"primary":"green","gray":"slate","colors":["red","orange","amber","yellow","lime","green","emerald","teal","cyan","sky","blue","indigo","violet","purple","fuchsia","pink","rose","primary"],"strategy":"merge","variables":{"light":{"background":"255 255 255","foreground":"var(--color-gray-700)"},"dark":{"background":"var(--color-gray-900)","foreground":"var(--color-gray-200)"},"header":{"height":"4rem"}},"icons":{"dark":"i-heroicons-moon","light":"i-heroicons-sun","system":"i-heroicons-computer-desktop-20-solid","search":"i-heroicons-magnifying-glass-20-solid","external":"i-heroicons-arrow-up-right-20-solid","chevron":"i-heroicons-chevron-down-20-solid","hash":"i-heroicons-hashtag-20-solid","menu":"i-heroicons-bars-3-20-solid","close":"i-heroicons-x-mark-20-solid","check":"i-heroicons-check-circle-20-solid"},"presets":{"button":{"primary":{"color":"white","variant":"solid"},"secondary":{"color":"gray","variant":"ghost"},"input":{"color":"white","variant":"outline","ui":{"font":"","color":{"white":{"outline":"ring-1 ring-inset ring-gray-300 dark:ring-gray-700 hover:ring-gray-300 dark:hover:ring-gray-700 hover:bg-gray-100/50 dark:hover:bg-gray-800/50 text-gray-400 dark:text-gray-500 hover:text-gray-700 dark:hover:text-gray-200 focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400"}}}}}},"footer":{"bottom":{"left":"text-sm text-gray-500 dark:text-gray-400","wrapper":"border-t border-gray-200 dark:border-gray-800"}}},"header":{"logo":{"alt":"logo nuxt supabase module","light":"/logo-nuxt-supabase-light.png","dark":"/logo-nuxt-supabase-dark.png"},"search":true,"colorMode":true,"links":[{"icon":"i-simple-icons-x","to":"https://x.com/nuxt_js","target":"_blank","aria-label":"Nuxt on X"},{"icon":"i-simple-icons-github","to":"https://github.com/nuxt-modules/supabase","target":"_blank","aria-label":"Module on GitHub"},{"icon":"i-simple-icons-nuxtdotjs","to":"https://nuxt.com","target":"_blank","aria-label":"Nuxt official website"},{"icon":"i-simple-icons-supabase","to":"https://supabase.com","target":"_blank","aria-label":"Supabase official website"}]},"footer":{"credits":"Made with Nuxt Studio","colorMode":false,"links":[{"icon":"i-simple-icons-x","to":"https://x.com/nuxt_js","target":"_blank","aria-label":"Nuxt on X"},{"icon":"i-simple-icons-github","to":"https://github.com/nuxt-modules/supabase","target":"_blank","aria-label":"Module on GitHub"},{"icon":"i-simple-icons-nuxtdotjs","to":"https://nuxt.com","target":"_blank","aria-label":"Nuxt official website"},{"icon":"i-simple-icons-supabase","to":"https://supabase.com","target":"_blank","aria-label":"Supabase official website"}]},"toc":{"title":"Table of Contents","bottom":{"title":"Community","edit":"https://github.com/nuxt-modules/supabase/edit/main/docs/content","links":[{"icon":"i-heroicons-star","label":"Star on GitHub","to":"https://github.com/nuxt-modules/supabase","target":"_blank"},{"icon":"i-simple-icons-nuxtdotjs","label":"Nuxt docs","to":"https://nuxt.com","target":"_blank"},{"icon":"i-simple-icons-supabase","label":"Supabase docs","to":"https://supabase.com","target":"_blank"}]}}},"content":{"sources":{},"ignores":[],"locales":[],"defaultLocale":"","highlight":{"theme":{"light":"material-theme-lighter","default":"material-theme","dark":"material-theme-palenight"},"preload":["json","js","ts","html","css","vue","diff","shell","markdown","yaml","bash","ini"],"highlighter":"shiki","langs":["js","jsx","json","ts","tsx","vue","css","html","bash","md","mdc","yaml","json","js","ts","html","css","vue","diff","shell","markdown","yaml","bash","ini"]},"navigation":{"fields":["icon","to","target"]},"documentDriven":false,"experimental":{"clientDB":false,"cacheContents":true,"stripQueryParameters":false,"advanceQuery":false,"search":""}},"components":[{"name":"Releases","path":"components/content/Releases.vue","meta":{"props":[],"slots":[],"events":[]}},{"name":"VoltaBoard","path":"components/content/VoltaBoard.vue","meta":{"props":[{"name":"token","global":false,"description":"","tags":[],"required":true,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/components/content/VoltaBoard.vue","range":[164,214]},{"file":"/home/runner/work/supabase/supabase/docs/components/content/VoltaBoard.vue","range":[164,214]}],"schema":"string"}],"slots":[],"events":[]}},{"name":"Callout","path":"node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Callout.vue","meta":{"props":[{"name":"icon","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Callout.vue","range":[1600,1652]}],"schema":"string","default":"undefined"},{"name":"color","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Callout.vue","range":[1656,1746]}],"schema":"string","default":"\"primary\""},{"name":"to","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Callout.vue","range":[1750,1800]}],"schema":"string","default":"undefined"},{"name":"target","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Callout.vue","range":[1804,1858]}],"schema":"string","default":"undefined"},{"name":"ui","global":false,"description":"","tags":[],"required":false,"type":"any","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Callout.vue","range":[1953,2046]}],"schema":"any","default":"{}"}],"slots":[{"name":"default","type":"{ unwrap: string; }","description":"","declarations":[],"schema":{"kind":"object","type":"{ unwrap: string; }","schema":{"unwrap":{"name":"unwrap","global":false,"description":"","tags":[],"required":true,"type":"string","declarations":[],"schema":"string"}}}}],"events":[]}},{"name":"Card","path":"node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Card.vue","meta":{"props":[{"name":"icon","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Card.vue","range":[1663,1715]}],"schema":"string","default":"undefined"},{"name":"color","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Card.vue","range":[1719,1809]}],"schema":"string","default":"\"primary\""},{"name":"to","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Card.vue","range":[1813,1863]}],"schema":"string","default":"undefined"},{"name":"target","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Card.vue","range":[1867,1921]}],"schema":"string","default":"undefined"},{"name":"title","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Card.vue","range":[1925,1978]}],"schema":"string","default":"undefined"},{"name":"ui","global":false,"description":"","tags":[],"required":false,"type":"any","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Card.vue","range":[2073,2166]}],"schema":"any","default":"{}"}],"slots":[{"name":"default","type":"{ unwrap: string; }","description":"","declarations":[],"schema":{"kind":"object","type":"{ unwrap: string; }","schema":{"unwrap":{"name":"unwrap","global":false,"description":"","tags":[],"required":true,"type":"string","declarations":[],"schema":"string"}}}}],"events":[]}},{"name":"CardGroup","path":"node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/CardGroup.vue","meta":{"props":[],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"CodeGroup","path":"node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/CodeGroup.vue","meta":{"props":[],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"Collapsible","path":"node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Collapsible.vue","meta":{"props":[{"name":"name","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Collapsible.vue","range":[1085,1140]}],"schema":"string","default":"\"properties\""},{"name":"openText","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Collapsible.vue","range":[1144,1197]}],"schema":"string","default":"\"Show\""},{"name":"closeText","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Collapsible.vue","range":[1201,1255]}],"schema":"string","default":"\"Hide\""}],"slots":[{"name":"default","type":"{ unwrap: string; }","description":"","declarations":[],"schema":{"kind":"object","type":"{ unwrap: string; }","schema":{"unwrap":{"name":"unwrap","global":false,"description":"","tags":[],"required":true,"type":"string","declarations":[],"schema":"string"}}}}],"events":[]}},{"name":"Field","path":"node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Field.vue","meta":{"props":[{"name":"name","global":false,"description":"","tags":[],"required":true,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Field.vue","range":[953,1001]},{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Field.vue","range":[953,1001]}],"schema":"string"},{"name":"default","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Field.vue","range":[1181,1236]}],"schema":"string","default":"undefined"},{"name":"description","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Field.vue","range":[1005,1064]}],"schema":"string","default":"undefined"},{"name":"type","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Field.vue","range":[1068,1120]}],"schema":"string","default":"undefined"},{"name":"ui","global":false,"description":"","tags":[],"required":false,"type":"{}","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Field.vue","range":[1331,1418]}],"schema":{"kind":"object","type":"{}","schema":{}},"default":"{}"},{"name":"required","global":false,"description":"","tags":[],"required":false,"type":"boolean","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Field.vue","range":[1124,1177]}],"schema":{"kind":"enum","type":"boolean","schema":{"0":"false","1":"true"}},"default":"false"}],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"FieldGroup","path":"node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/FieldGroup.vue","meta":{"props":[],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"Shortcut","path":"node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Shortcut.vue","meta":{"props":[{"name":"value","global":false,"description":"","tags":[],"required":true,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Shortcut.vue","range":[285,334]},{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Shortcut.vue","range":[285,334]}],"schema":"string"}],"slots":[],"events":[]}},{"name":"Tabs","path":"node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Tabs.vue","meta":{"props":[{"name":"selectedIndex","global":false,"description":"","tags":[],"required":false,"type":"number","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/Tabs.vue","range":[1382,1435]}],"schema":"number","default":"0"}],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"ProseCode","path":"node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseCode.vue","meta":{"props":[{"name":"code","global":false,"description":"","tags":[],"required":true,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseCode.vue","range":[78,126]},{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseCode.vue","range":[78,126]}],"schema":"string"},{"name":"icon","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseCode.vue","range":[130,182]}],"schema":"string","default":"undefined"},{"name":"language","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseCode.vue","range":[186,242]}],"schema":"string","default":"undefined"},{"name":"filename","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseCode.vue","range":[305,361]}],"schema":"string","default":"undefined"},{"name":"highlights","global":false,"description":"","tags":[],"required":false,"type":"number[]","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseCode.vue","range":[365,444]}],"schema":{"kind":"array","type":"number[]","schema":{"0":"number"}},"default":"undefined"},{"name":"meta","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseCode.vue","range":[448,500]}],"schema":"string","default":"undefined"},{"name":"hideHeader","global":false,"description":"","tags":[],"required":false,"type":"boolean","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseCode.vue","range":[246,301]}],"schema":{"kind":"enum","type":"boolean","schema":{"0":"false","1":"true"}},"default":"false"}],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"ProseCodeButton","path":"node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseCodeButton.vue","meta":{"props":[{"name":"code","global":false,"description":"","tags":[],"required":true,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseCodeButton.vue","range":[55,103]},{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseCodeButton.vue","range":[55,103]}],"schema":"string"}],"slots":[],"events":[]}},{"name":"ProseCodeIcon","path":"node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseCodeIcon.vue","meta":{"props":[{"name":"icon","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseCodeIcon.vue","range":[55,107]}],"schema":"string","default":"undefined"},{"name":"filename","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseCodeIcon.vue","range":[111,167]}],"schema":"string","default":"undefined"}],"slots":[],"events":[]}},{"name":"ProseH1","path":"node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseH1.vue","meta":{"props":[{"name":"id","global":false,"description":"","tags":[],"required":true,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseH1.vue","range":[414,460]},{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseH1.vue","range":[414,460]}],"schema":"string"}],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"ProseH2","path":"node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseH2.vue","meta":{"props":[{"name":"id","global":false,"description":"","tags":[],"required":true,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseH2.vue","range":[414,460]},{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseH2.vue","range":[414,460]}],"schema":"string"}],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"ProseH3","path":"node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseH3.vue","meta":{"props":[{"name":"id","global":false,"description":"","tags":[],"required":true,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseH3.vue","range":[414,460]},{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseH3.vue","range":[414,460]}],"schema":"string"}],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"ProseH4","path":"node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseH4.vue","meta":{"props":[{"name":"id","global":false,"description":"","tags":[],"required":true,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseH4.vue","range":[414,460]},{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+ui-pro@1.3.1_focus-trap@7.5.4_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11_qfp5dz7donapgbte7o4p6xkmum/node_modules/@nuxt/ui-pro/modules/pro/runtime/components/global/prose/ProseH4.vue","range":[414,460]}],"schema":"string"}],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"ProseCodeInline","path":"node_modules/.pnpm/@nuxt+content@2.13.1_ioredis@5.4.1_magicast@0.3.4_nuxt@3.12.3_@opentelemetry+api@1.9.0_@parce_2izlttertr6ui4lqguw67qlh6y/node_modules/@nuxt/content/dist/runtime/components/Prose/ProseCodeInline.vue","meta":{"props":[],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"ProsePre","path":"node_modules/.pnpm/@nuxt+content@2.13.1_ioredis@5.4.1_magicast@0.3.4_nuxt@3.12.3_@opentelemetry+api@1.9.0_@parce_2izlttertr6ui4lqguw67qlh6y/node_modules/@nuxt/content/dist/runtime/components/Prose/ProsePre.vue","meta":{"props":[{"name":"code","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+content@2.13.1_ioredis@5.4.1_magicast@0.3.4_nuxt@3.12.3_@opentelemetry+api@1.9.0_@parce_2izlttertr6ui4lqguw67qlh6y/node_modules/@nuxt/content/dist/runtime/components/Prose/ProsePre.vue","range":[248,293]}],"schema":"string","default":"\"\""},{"name":"language","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+content@2.13.1_ioredis@5.4.1_magicast@0.3.4_nuxt@3.12.3_@opentelemetry+api@1.9.0_@parce_2izlttertr6ui4lqguw67qlh6y/node_modules/@nuxt/content/dist/runtime/components/Prose/ProsePre.vue","range":[297,348]}],"schema":"string","default":"null"},{"name":"filename","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+content@2.13.1_ioredis@5.4.1_magicast@0.3.4_nuxt@3.12.3_@opentelemetry+api@1.9.0_@parce_2izlttertr6ui4lqguw67qlh6y/node_modules/@nuxt/content/dist/runtime/components/Prose/ProsePre.vue","range":[352,403]}],"schema":"string","default":"null"},{"name":"highlights","global":false,"description":"","tags":[],"required":false,"type":"number[]","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+content@2.13.1_ioredis@5.4.1_magicast@0.3.4_nuxt@3.12.3_@opentelemetry+api@1.9.0_@parce_2izlttertr6ui4lqguw67qlh6y/node_modules/@nuxt/content/dist/runtime/components/Prose/ProsePre.vue","range":[407,481]}],"schema":{"kind":"array","type":"number[]","schema":{"0":"number"}},"default":"[]"},{"name":"meta","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxt+content@2.13.1_ioredis@5.4.1_magicast@0.3.4_nuxt@3.12.3_@opentelemetry+api@1.9.0_@parce_2izlttertr6ui4lqguw67qlh6y/node_modules/@nuxt/content/dist/runtime/components/Prose/ProsePre.vue","range":[485,532]}],"schema":"string","default":"null"}],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"ProseA","path":"node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseA.vue","meta":{"props":[{"name":"href","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseA.vue","range":[183,228]}],"schema":"string","default":"\"\""},{"name":"target","global":false,"description":"","tags":[],"required":false,"type":"\"_blank\" | \"_parent\" | \"_self\" | \"_top\"","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseA.vue","range":[232,399]}],"schema":{"kind":"enum","type":"\"_blank\" | \"_parent\" | \"_self\" | \"_top\"","schema":{"0":"\"_blank\"","1":"\"_parent\"","2":"\"_self\"","3":"\"_top\""}},"default":"undefined"}],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"ProseBlockquote","path":"node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseBlockquote.vue","meta":{"props":[],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"ProseEm","path":"node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseEm.vue","meta":{"props":[],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"ProseH5","path":"node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseH5.vue","meta":{"props":[{"name":"id","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseH5.vue","range":[264,275]},{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseH5.vue","range":[264,275]}],"schema":"string"}],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"ProseH6","path":"node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseH6.vue","meta":{"props":[{"name":"id","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseH6.vue","range":[264,275]},{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseH6.vue","range":[264,275]}],"schema":"string"}],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"ProseHr","path":"node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseHr.vue","meta":{"props":[],"slots":[],"events":[]}},{"name":"ProseImg","path":"node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseImg.vue","meta":{"props":[{"name":"src","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseImg.vue","range":[440,484]}],"schema":"string","default":"\"\""},{"name":"alt","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseImg.vue","range":[488,532]}],"schema":"string","default":"\"\""},{"name":"width","global":false,"description":"","tags":[],"required":false,"type":"string | number","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseImg.vue","range":[536,599]}],"schema":{"kind":"enum","type":"string | number","schema":{"0":"string","1":"number"}},"default":"undefined"},{"name":"height","global":false,"description":"","tags":[],"required":false,"type":"string | number","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseImg.vue","range":[603,667]}],"schema":{"kind":"enum","type":"string | number","schema":{"0":"string","1":"number"}},"default":"undefined"}],"slots":[],"events":[]}},{"name":"ProseLi","path":"node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseLi.vue","meta":{"props":[],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"ProseOl","path":"node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseOl.vue","meta":{"props":[],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"ProseP","path":"node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseP.vue","meta":{"props":[],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"ProseScript","path":"node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseScript.vue","meta":{"props":[{"name":"src","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseScript.vue","range":[285,329]}],"schema":"string","default":"\"\""}],"slots":[],"events":[]}},{"name":"ProseStrong","path":"node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseStrong.vue","meta":{"props":[],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"ProseTable","path":"node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseTable.vue","meta":{"props":[],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"ProseTbody","path":"node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseTbody.vue","meta":{"props":[],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"ProseTd","path":"node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseTd.vue","meta":{"props":[],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"ProseTh","path":"node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseTh.vue","meta":{"props":[],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"ProseThead","path":"node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseThead.vue","meta":{"props":[],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"ProseTr","path":"node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseTr.vue","meta":{"props":[],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"ProseUl","path":"node_modules/.pnpm/@nuxtjs+mdc@0.8.3_magicast@0.3.4_rollup@4.18.0/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseUl.vue","meta":{"props":[],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"Icon","path":"node_modules/.pnpm/nuxt-icon@0.6.10_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11.7_terser@5.27.0__vue@3.3.13_typescript@5.5.3_/node_modules/nuxt-icon/dist/runtime/Icon.vue","meta":{"props":[{"name":"name","global":false,"description":"","tags":[],"required":true,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/nuxt-icon@0.6.10_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11.7_terser@5.27.0__vue@3.3.13_typescript@5.5.3_/node_modules/nuxt-icon/dist/runtime/Icon.vue","range":[669,717]},{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/nuxt-icon@0.6.10_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11.7_terser@5.27.0__vue@3.3.13_typescript@5.5.3_/node_modules/nuxt-icon/dist/runtime/Icon.vue","range":[669,717]}],"schema":"string"},{"name":"size","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/nuxt-icon@0.6.10_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11.7_terser@5.27.0__vue@3.3.13_typescript@5.5.3_/node_modules/nuxt-icon/dist/runtime/Icon.vue","range":[721,766]}],"schema":"string","default":"\"\""}],"slots":[{"name":"default","type":"{}","description":"","declarations":[],"schema":{"kind":"object","type":"{}","schema":{}}}],"events":[]}},{"name":"IconCSS","path":"node_modules/.pnpm/nuxt-icon@0.6.10_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11.7_terser@5.27.0__vue@3.3.13_typescript@5.5.3_/node_modules/nuxt-icon/dist/runtime/IconCSS.vue","meta":{"props":[{"name":"name","global":false,"description":"","tags":[],"required":true,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/nuxt-icon@0.6.10_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11.7_terser@5.27.0__vue@3.3.13_typescript@5.5.3_/node_modules/nuxt-icon/dist/runtime/IconCSS.vue","range":[387,435]},{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/nuxt-icon@0.6.10_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11.7_terser@5.27.0__vue@3.3.13_typescript@5.5.3_/node_modules/nuxt-icon/dist/runtime/IconCSS.vue","range":[387,435]}],"schema":"string"},{"name":"size","global":false,"description":"","tags":[],"required":false,"type":"string","declarations":[{"file":"/home/runner/work/supabase/supabase/docs/node_modules/.pnpm/nuxt-icon@0.6.10_magicast@0.3.4_rollup@4.18.0_vite@5.3.3_@types+node@20.11.7_terser@5.27.0__vue@3.3.13_typescript@5.5.3_/node_modules/nuxt-icon/dist/runtime/IconCSS.vue","range":[439,484]}],"schema":"string","default":"\"\""}],"slots":[],"events":[]}},{"name":"OgImageStatic","path":"node_modules/.pnpm/nuxt-og-image@2.2.6_@nuxt+devtools@1.3.9_rollup@4.18.0_vite@5.3.3_@types+node@20.11.7_terser@_fb2sfemo6kj3kag3vzuwfi6qwa/node_modules/nuxt-og-image/dist/runtime/components/OgImage/Static.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"OgImageDynamic","path":"node_modules/.pnpm/nuxt-og-image@2.2.6_@nuxt+devtools@1.3.9_rollup@4.18.0_vite@5.3.3_@types+node@20.11.7_terser@_fb2sfemo6kj3kag3vzuwfi6qwa/node_modules/nuxt-og-image/dist/runtime/components/OgImage/Dynamic.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"OgImage","path":"node_modules/.pnpm/nuxt-og-image@2.2.6_@nuxt+devtools@1.3.9_rollup@4.18.0_vite@5.3.3_@types+node@20.11.7_terser@_fb2sfemo6kj3kag3vzuwfi6qwa/node_modules/nuxt-og-image/dist/runtime/components/OgImage/index.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"OgImageCached","path":"node_modules/.pnpm/nuxt-og-image@2.2.6_@nuxt+devtools@1.3.9_rollup@4.18.0_vite@5.3.3_@types+node@20.11.7_terser@_fb2sfemo6kj3kag3vzuwfi6qwa/node_modules/nuxt-og-image/dist/runtime/components/OgImage/Cached.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"OgImageWithoutCache","path":"node_modules/.pnpm/nuxt-og-image@2.2.6_@nuxt+devtools@1.3.9_rollup@4.18.0_vite@5.3.3_@types+node@20.11.7_terser@_fb2sfemo6kj3kag3vzuwfi6qwa/node_modules/nuxt-og-image/dist/runtime/components/OgImage/WithoutCache.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"OgImageScreenshot","path":"node_modules/.pnpm/nuxt-og-image@2.2.6_@nuxt+devtools@1.3.9_rollup@4.18.0_vite@5.3.3_@types+node@20.11.7_terser@_fb2sfemo6kj3kag3vzuwfi6qwa/node_modules/nuxt-og-image/dist/runtime/components/OgImage/Screenshot.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"GithubRepository","path":"node_modules/.pnpm/@nuxtlabs+github-module@1.6.3_encoding@0.1.13_rollup@4.18.0/node_modules/@nuxtlabs/github-module/dist/runtime/components/GithubRepository.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"GithubLink","path":"node_modules/.pnpm/@nuxtlabs+github-module@1.6.3_encoding@0.1.13_rollup@4.18.0/node_modules/@nuxtlabs/github-module/dist/runtime/components/GithubLink.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"GithubReadme","path":"node_modules/.pnpm/@nuxtlabs+github-module@1.6.3_encoding@0.1.13_rollup@4.18.0/node_modules/@nuxtlabs/github-module/dist/runtime/components/GithubReadme.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"GithubReleases","path":"node_modules/.pnpm/@nuxtlabs+github-module@1.6.3_encoding@0.1.13_rollup@4.18.0/node_modules/@nuxtlabs/github-module/dist/runtime/components/GithubReleases.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"GithubLastRelease","path":"node_modules/.pnpm/@nuxtlabs+github-module@1.6.3_encoding@0.1.13_rollup@4.18.0/node_modules/@nuxtlabs/github-module/dist/runtime/components/GithubLastRelease.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"GithubRelease","path":"node_modules/.pnpm/@nuxtlabs+github-module@1.6.3_encoding@0.1.13_rollup@4.18.0/node_modules/@nuxtlabs/github-module/dist/runtime/components/GithubRelease.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"GithubContributors","path":"node_modules/.pnpm/@nuxtlabs+github-module@1.6.3_encoding@0.1.13_rollup@4.18.0/node_modules/@nuxtlabs/github-module/dist/runtime/components/GithubContributors.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"GithubFileContributors","path":"node_modules/.pnpm/@nuxtlabs+github-module@1.6.3_encoding@0.1.13_rollup@4.18.0/node_modules/@nuxtlabs/github-module/dist/runtime/components/GithubFileContributors.mjs","meta":{"props":[],"slots":[],"events":[]}},{"name":"GithubCommits","path":"node_modules/.pnpm/@nuxtlabs+github-module@1.6.3_encoding@0.1.13_rollup@4.18.0/node_modules/@nuxtlabs/github-module/dist/runtime/components/GithubCommits.mjs","meta":{"props":[],"slots":[],"events":[]}}]} \ No newline at end of file diff --git a/_nuxt/DV7eKLeG.js b/_nuxt/5uFLRXWz.js similarity index 98% rename from _nuxt/DV7eKLeG.js rename to _nuxt/5uFLRXWz.js index c378390e9..daac51a8f 100644 --- a/_nuxt/DV7eKLeG.js +++ b/_nuxt/5uFLRXWz.js @@ -1,12 +1,12 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./R7OHQyOF.js","./D0-C4B6x.js","./C3Kzup5y.js","./bXKbWHrB.js","./BneCoJRQ.js","./mpWQaDmy.js","./Cpj98o6Y.js","./CM-HxrcU.js","./index.CUCUiAj6.css","./Bh5smzGu.js","./4UEM0VaZ.js","./QA-ib-BQ.js","./Cp7Md9uy.js","./B-C9DpKA.js","./DXNMbFcI.js","./BkwiVK2a.js","./C2szqgS3.js","./CHY8Pw7Y.js","./DstQJC2Y.js","./CVL9daOq.js","./CwHOZuFg.js","./Q1re-agt.js","./BC4Kh9UJ.js","./ProseCode.CchFRBtv.css","./5uPAARVZ.js","./DMIHtKy3.js","./BavJDHci.js","./BZKR5zX_.js","./BAKkr1ga.js","./Cye9iPh-.js","./C1kJJtSu.js","./CFvSqwIT.js","./D8e1FUJB.js","./2NYeL5W1.js","./B6nvh6Ib.js","./IconCSS.DWm3RuC_.css","./D7mpQ4ve.js","./J2h4T5Wp.js","./fqLPnpju.js","./Rj-Lyql8.js","./p5M_6W0j.js","./Dq4I_mkI.js","./CH2GjlBY.js","./DZkVUGxl.js","./BRMcYa22.js","./AWJ_kHPD.js","./useStudio.DgDOGThv.css","./DykK1NDI.js","./83niqyif.js","./DocsSearch.BAwwa_q2.css"])))=>i.map(i=>d[i]); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Yk3AXHuD.js","./DI2CkNWG.js","./TXOJiQqS.js","./CgMG10Xn.js","./BneCoJRQ.js","./BQtyLeXl.js","./Cpj98o6Y.js","./XVY12RzN.js","./index.CUCUiAj6.css","./I0ocb0e_.js","./Ce9WXhE4.js","./B3cAN6Fg.js","./Cp7Md9uy.js","./Cp-es949.js","./DVHUXCHF.js","./C8UhvDYG.js","./Dye3TMXi.js","./C0v9dJ4q.js","./nO3zWEPC.js","./BIFcq7Cp.js","./CVAM_eGo.js","./DqYI4N-U.js","./CbCDpNlC.js","./ProseCode.CchFRBtv.css","./BRj95TSo.js","./Dt5a3v8u.js","./BStPsjml.js","./CtIItzco.js","./VPULeIg0.js","./BYZiYxqN.js","./_m0MazNi.js","./mGifWHk2.js","./Bxob9VmH.js","./BOWHM_U1.js","./DFIGFXFo.js","./IconCSS.DWm3RuC_.css","./Os5pxZ6b.js","./BT1OWX2I.js","./BSQmfP6X.js","./CC5oXipo.js","./OfsaR007.js","./Do_OUU_r.js","./Z0nHrzi-.js","./B4Gnni54.js","./DMPPvO_f.js","./CEwbEEzK.js","./useStudio.DgDOGThv.css","./8Re2hnJZ.js","./C41FEfLs.js","./DocsSearch.BAwwa_q2.css"])))=>i.map(i=>d[i]); function sl(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o!!n[o]}const Ue={},Pr=[],en=()=>{},Og=()=>!1,qo=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),il=e=>e.startsWith("onUpdate:"),et=Object.assign,al=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Rg=Object.prototype.hasOwnProperty,Te=(e,t)=>Rg.call(e,t),ce=Array.isArray,Tr=e=>Ko(e)==="[object Map]",Bf=e=>Ko(e)==="[object Set]",$g=e=>Ko(e)==="[object RegExp]",he=e=>typeof e=="function",We=e=>typeof e=="string",qr=e=>typeof e=="symbol",Fe=e=>e!==null&&typeof e=="object",ll=e=>(Fe(e)||he(e))&&he(e.then)&&he(e.catch),Ff=Object.prototype.toString,Ko=e=>Ff.call(e),Ig=e=>Ko(e).slice(8,-1),Hf=e=>Ko(e)==="[object Object]",cl=e=>We(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,go=sl(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ti=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Lg=/-(\w)/g,rn=ti(e=>e.replace(Lg,(t,n)=>n?n.toUpperCase():"")),jg=/\B([A-Z])/g,br=ti(e=>e.replace(jg,"-$1").toLowerCase()),ni=ti(e=>e.charAt(0).toUpperCase()+e.slice(1)),Si=ti(e=>e?`on${ni(e)}`:""),pr=(e,t)=>!Object.is(e,t),mo=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Mg=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Uf=e=>{const t=We(e)?Number(e):NaN;return isNaN(t)?e:t};let Cc;const ta=()=>Cc||(Cc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Hn(e){if(ce(e)){const t={};for(let n=0;n{if(n){const r=n.split(Ng);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function W(e){let t="";if(We(e))t=e;else if(ce(e))for(let n=0;nWe(e)?e:e==null?"":ce(e)||Fe(e)&&(e.toString===Ff||!he(e.toString))?JSON.stringify(e,Vf,2):String(e),Vf=(e,t)=>t&&t.__v_isRef?Vf(e,t.value):Tr(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o],s)=>(n[Pi(r,s)+" =>"]=o,n),{})}:Bf(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Pi(n))}:qr(t)?Pi(t):Fe(t)&&!ce(t)&&!Hf(t)?String(t):t,Pi=(e,t="")=>{var n;return qr(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let Et;class Wf{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Et,!t&&Et&&(this.index=(Et.scopes||(Et.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Et;try{return Et=this,t()}finally{Et=n}}}on(){Et=this}off(){Et=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},Kf=e=>(e.w&Un)>0,Gf=e=>(e.n&Un)>0,Vg=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{(u==="length"||!qr(u)&&u>=l)&&a.push(c)})}else switch(n!==void 0&&a.push(i.get(n)),t){case"add":ce(e)?cl(n)&&a.push(i.get("length")):(a.push(i.get(cr)),Tr(e)&&a.push(i.get(ra)));break;case"delete":ce(e)||(a.push(i.get(cr)),Tr(e)&&a.push(i.get(ra)));break;case"set":Tr(e)&&a.push(i.get(cr));break}if(a.length===1)a[0]&&oa(a[0]);else{const l=[];for(const c of a)c&&l.push(...c);oa(ul(l))}}function oa(e,t){const n=ce(e)?e:[...e];for(const r of n)r.computed&&Pc(r);for(const r of n)r.computed||Pc(r)}function Pc(e,t){(e!==Ft||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function qg(e,t){var n;return(n=Ns.get(e))==null?void 0:n.get(t)}const Kg=sl("__proto__,__v_isRef,__isVue"),Yf=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(qr)),Tc=Gg();function Gg(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=Ae(this);for(let s=0,i=this.length;s{e[t]=function(...n){Gr();const r=Ae(this)[t].apply(this,n);return Xr(),r}}),e}function Xg(e){const t=Ae(this);return yt(t,"has",e),t.hasOwnProperty(e)}class Jf{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,r){const o=this._isReadonly,s=this._shallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return s;if(n==="__v_raw")return r===(o?s?lm:nd:s?td:ed).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=ce(t);if(!o){if(i&&Te(Tc,n))return Reflect.get(Tc,n,r);if(n==="hasOwnProperty")return Xg}const a=Reflect.get(t,n,r);return(qr(n)?Yf.has(n):Kg(n))||(o||yt(t,"get",n),s)?a:tt(a)?i&&cl(n)?a:a.value:Fe(a)?o?oi(a):qt(a):a}}class Zf extends Jf{constructor(t=!1){super(!1,t)}set(t,n,r,o){let s=t[n];if(!this._shallow){const l=hr(s);if(!Bs(r)&&!hr(r)&&(s=Ae(s),r=Ae(r)),!ce(t)&&tt(s)&&!tt(r))return l?!1:(s.value=r,!0)}const i=ce(t)&&cl(n)?Number(n)e,ri=e=>Reflect.getPrototypeOf(e);function is(e,t,n=!1,r=!1){e=e.__v_raw;const o=Ae(e),s=Ae(t);n||(pr(t,s)&&yt(o,"get",t),yt(o,"get",s));const{has:i}=ri(o),a=r?dl:n?gl:Ao;if(i.call(o,t))return a(e.get(t));if(i.call(o,s))return a(e.get(s));e!==o&&e.get(t)}function as(e,t=!1){const n=this.__v_raw,r=Ae(n),o=Ae(e);return t||(pr(e,o)&&yt(r,"has",e),yt(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function ls(e,t=!1){return e=e.__v_raw,!t&&yt(Ae(e),"iterate",cr),Reflect.get(e,"size",e)}function Ac(e){e=Ae(e);const t=Ae(this);return ri(t).has.call(t,e)||(t.add(e),gn(t,"add",e,e)),this}function Oc(e,t){t=Ae(t);const n=Ae(this),{has:r,get:o}=ri(n);let s=r.call(n,e);s||(e=Ae(e),s=r.call(n,e));const i=o.call(n,e);return n.set(e,t),s?pr(t,i)&&gn(n,"set",e,t):gn(n,"add",e,t),this}function Rc(e){const t=Ae(this),{has:n,get:r}=ri(t);let o=n.call(t,e);o||(e=Ae(e),o=n.call(t,e)),r&&r.call(t,e);const s=t.delete(e);return o&&gn(t,"delete",e,void 0),s}function $c(){const e=Ae(this),t=e.size!==0,n=e.clear();return t&&gn(e,"clear",void 0,void 0),n}function cs(e,t){return function(r,o){const s=this,i=s.__v_raw,a=Ae(i),l=t?dl:e?gl:Ao;return!e&&yt(a,"iterate",cr),i.forEach((c,u)=>r.call(o,l(c),l(u),s))}}function us(e,t,n){return function(...r){const o=this.__v_raw,s=Ae(o),i=Tr(s),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,c=o[e](...r),u=n?dl:t?gl:Ao;return!t&&yt(s,"iterate",l?ra:cr),{next(){const{value:f,done:d}=c.next();return d?{value:f,done:d}:{value:a?[u(f[0]),u(f[1])]:u(f),done:d}},[Symbol.iterator](){return this}}}}function xn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function em(){const e={get(s){return is(this,s)},get size(){return ls(this)},has:as,add:Ac,set:Oc,delete:Rc,clear:$c,forEach:cs(!1,!1)},t={get(s){return is(this,s,!1,!0)},get size(){return ls(this)},has:as,add:Ac,set:Oc,delete:Rc,clear:$c,forEach:cs(!1,!0)},n={get(s){return is(this,s,!0)},get size(){return ls(this,!0)},has(s){return as.call(this,s,!0)},add:xn("add"),set:xn("set"),delete:xn("delete"),clear:xn("clear"),forEach:cs(!0,!1)},r={get(s){return is(this,s,!0,!0)},get size(){return ls(this,!0)},has(s){return as.call(this,s,!0)},add:xn("add"),set:xn("set"),delete:xn("delete"),clear:xn("clear"),forEach:cs(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=us(s,!1,!1),n[s]=us(s,!0,!1),t[s]=us(s,!1,!0),r[s]=us(s,!0,!0)}),[e,n,t,r]}const[tm,nm,rm,om]=em();function pl(e,t){const n=t?e?om:rm:e?nm:tm;return(r,o,s)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(Te(n,o)&&o in r?n:r,o,s)}const sm={get:pl(!1,!1)},im={get:pl(!1,!0)},am={get:pl(!0,!1)},ed=new WeakMap,td=new WeakMap,nd=new WeakMap,lm=new WeakMap;function cm(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function um(e){return e.__v_skip||!Object.isExtensible(e)?0:cm(Ig(e))}function qt(e){return hr(e)?e:hl(e,!1,Yg,sm,ed)}function pn(e){return hl(e,!1,Zg,im,td)}function oi(e){return hl(e,!0,Jg,am,nd)}function hl(e,t,n,r,o){if(!Fe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=o.get(e);if(s)return s;const i=um(e);if(i===0)return e;const a=new Proxy(e,i===2?r:n);return o.set(e,a),a}function Ar(e){return hr(e)?Ar(e.__v_raw):!!(e&&e.__v_isReactive)}function hr(e){return!!(e&&e.__v_isReadonly)}function Bs(e){return!!(e&&e.__v_isShallow)}function rd(e){return Ar(e)||hr(e)}function Ae(e){const t=e&&e.__v_raw;return t?Ae(t):e}function od(e){return Ds(e,"__v_skip",!0),e}const Ao=e=>Fe(e)?qt(e):e,gl=e=>Fe(e)?oi(e):e;function ml(e){Mn&&Ft&&(e=Ae(e),Qf(e.dep||(e.dep=ul())))}function si(e,t){e=Ae(e);const n=e.dep;n&&oa(n)}function tt(e){return!!(e&&e.__v_isRef===!0)}function B(e){return sd(e,!1)}function mn(e){return sd(e,!0)}function sd(e,t){return tt(e)?e:new fm(e,t)}class fm{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Ae(t),this._value=n?t:Ao(t)}get value(){return ml(this),this._value}set value(t){const n=this.__v_isShallow||Bs(t)||hr(t);t=n?t:Ae(t),pr(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Ao(t),si(this))}}function VT(e){si(e)}function C(e){return tt(e)?e.value:e}function Jt(e){return he(e)?e():C(e)}const dm={get:(e,t,n)=>C(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return tt(o)&&!tt(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function id(e){return Ar(e)?e:new Proxy(e,dm)}class pm{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>ml(this),()=>si(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function hm(e){return new pm(e)}function WT(e){const t=ce(e)?new Array(e.length):{};for(const n in e)t[n]=ad(e,n);return t}class gm{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return qg(Ae(this._object),this._key)}}class mm{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function xe(e,t,n){return tt(e)?e:he(e)?new mm(e):Fe(e)&&arguments.length>1?ad(e,t,n):B(e)}function ad(e,t,n){const r=e[t];return tt(r)?r:new gm(e,t,n)}class vm{constructor(t,n,r,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new fl(t,()=>{this._dirty||(this._dirty=!0,si(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=Ae(this);return ml(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function ym(e,t,n=!1){let r,o;const s=he(e);return s?(r=e,o=en):(r=e.get,o=e.set),new vm(r,o,s||!o,n)}function Dn(e,t,n,r){let o;try{o=r?e(...r):e()}catch(s){Qr(s,t,n)}return o}function $t(e,t,n,r){if(he(e)){const s=Dn(e,t,n,r);return s&&ll(s)&&s.catch(i=>{Qr(i,t,n)}),s}const o=[];for(let s=0;s>>1,o=lt[r],s=Ro(o);sZt&<.splice(t,1)}function ia(e){ce(e)?Or.push(...e):(!dn||!dn.includes(e,e.allowRecurse?rr+1:rr))&&Or.push(e),cd()}function Ic(e,t,n=Oo?Zt+1:0){for(;nRo(n)-Ro(r)),rr=0;rre.id==null?1/0:e.id,xm=(e,t)=>{const n=Ro(e)-Ro(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function ud(e){sa=!1,Oo=!0,lt.sort(xm);try{for(Zt=0;ZtWe(p)?p.trim():p)),f&&(o=n.map(Mg))}let a,l=r[a=Si(t)]||r[a=Si(rn(t))];!l&&s&&(l=r[a=Si(br(t))]),l&&$t(l,e,6,o);const c=r[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,$t(c,e,6,o)}}function fd(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const s=e.emits;let i={},a=!1;if(!he(e)){const l=c=>{const u=fd(c,t,!0);u&&(a=!0,et(i,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!s&&!a?(Fe(e)&&r.set(e,null),null):(ce(s)?s.forEach(l=>i[l]=null):et(i,s),Fe(e)&&r.set(e,i),i)}function ai(e,t){return!e||!qo(t)?!1:(t=t.slice(2).replace(/Once$/,""),Te(e,t[0].toLowerCase()+t.slice(1))||Te(e,br(t))||Te(e,t))}let rt=null,li=null;function Hs(e){const t=rt;return rt=e,li=e&&e.type.__scopeId||null,t}function qT(e){li=e}function KT(){li=null}function le(e,t=rt,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&Kc(-1);const s=Hs(t);let i;try{i=e(...o)}finally{Hs(s),r._d&&Kc(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function Ti(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:s,propsOptions:[i],slots:a,attrs:l,emit:c,render:u,renderCache:f,data:d,setupState:p,ctx:g,inheritAttrs:h}=e;let y,k;const m=Hs(e);try{if(n.shapeFlag&4){const b=o||r,w=b;y=Ot(u.call(w,b,f,s,p,d,g)),k=l}else{const b=t;y=Ot(b.length>1?b(s,{attrs:l,slots:a,emit:c}):b(s,null)),k=t.props?l:Cm(l)}}catch(b){wo.length=0,Qr(b,e,1),y=K(ht)}let v=y;if(k&&h!==!1){const b=Object.keys(k),{shapeFlag:w}=v;b.length&&w&7&&(i&&b.some(il)&&(k=Sm(k,i)),v=on(v,k))}return n.dirs&&(v=on(v),v.dirs=v.dirs?v.dirs.concat(n.dirs):n.dirs),n.transition&&(v.transition=n.transition),y=v,Hs(m),y}function Em(e){let t;for(let n=0;n{let t;for(const n in e)(n==="class"||n==="style"||qo(n))&&((t||(t={}))[n]=e[n]);return t},Sm=(e,t)=>{const n={};for(const r in e)(!il(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Pm(e,t,n){const{props:r,children:o,component:s}=e,{props:i,children:a,patchFlag:l}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Lc(r,i,c):!!i;if(l&8){const u=t.dynamicProps;for(let f=0;fe.__isSuspense,Tm={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,s,i,a,l,c){e==null?Am(t,n,r,o,s,i,a,l,c):Om(e,t,n,r,o,i,a,l,c)},hydrate:Rm,create:wl,normalize:$m},bl=Tm;function $o(e,t){const n=e.props&&e.props[t];he(n)&&n()}function Am(e,t,n,r,o,s,i,a,l){const{p:c,o:{createElement:u}}=l,f=u("div"),d=e.suspense=wl(e,o,r,t,f,n,s,i,a,l);c(null,d.pendingBranch=e.ssContent,f,null,r,d,s,i),d.deps>0?($o(e,"onPending"),$o(e,"onFallback"),c(null,e.ssFallback,t,n,r,null,s,i),Rr(d,e.ssFallback)):d.resolve(!1,!0)}function Om(e,t,n,r,o,s,i,a,{p:l,um:c,o:{createElement:u}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const d=t.ssContent,p=t.ssFallback,{activeBranch:g,pendingBranch:h,isInFallback:y,isHydrating:k}=f;if(h)f.pendingBranch=d,Ht(d,h)?(l(h,d,f.hiddenContainer,null,o,f,s,i,a),f.deps<=0?f.resolve():y&&(l(g,p,n,r,o,null,s,i,a),Rr(f,p))):(f.pendingId++,k?(f.isHydrating=!1,f.activeBranch=h):c(h,o,f),f.deps=0,f.effects.length=0,f.hiddenContainer=u("div"),y?(l(null,d,f.hiddenContainer,null,o,f,s,i,a),f.deps<=0?f.resolve():(l(g,p,n,r,o,null,s,i,a),Rr(f,p))):g&&Ht(d,g)?(l(g,d,n,r,o,f,s,i,a),f.resolve(!0)):(l(null,d,f.hiddenContainer,null,o,f,s,i,a),f.deps<=0&&f.resolve()));else if(g&&Ht(d,g))l(g,d,n,r,o,f,s,i,a),Rr(f,d);else if($o(t,"onPending"),f.pendingBranch=d,f.pendingId++,l(null,d,f.hiddenContainer,null,o,f,s,i,a),f.deps<=0)f.resolve();else{const{timeout:m,pendingId:v}=f;m>0?setTimeout(()=>{f.pendingId===v&&f.fallback(p)},m):m===0&&f.fallback(p)}}function wl(e,t,n,r,o,s,i,a,l,c,u=!1){const{p:f,m:d,um:p,n:g,o:{parentNode:h,remove:y}}=c;let k;const m=Im(e);m&&t!=null&&t.pendingBranch&&(k=t.pendingId,t.deps++);const v=e.props?Uf(e.props.timeout):void 0,b={vnode:e,parent:t,parentComponent:n,isSVG:i,container:r,hiddenContainer:o,anchor:s,deps:0,pendingId:0,timeout:typeof v=="number"?v:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(w=!1,E=!1){const{vnode:S,activeBranch:T,pendingBranch:I,pendingId:O,effects:V,parentComponent:$,container:U}=b;let ve=!1;if(b.isHydrating)b.isHydrating=!1;else if(!w){ve=T&&I.transition&&I.transition.mode==="out-in",ve&&(T.transition.afterLeave=()=>{O===b.pendingId&&(d(I,U,g(T),0),ia(V))});let{anchor:ee}=b;T&&(ee=g(T),p(T,$,b,!0)),ve||d(I,U,ee,0)}Rr(b,I),b.pendingBranch=null,b.isInFallback=!1;let fe=b.parent,F=!1;for(;fe;){if(fe.pendingBranch){fe.effects.push(...V),F=!0;break}fe=fe.parent}!F&&!ve&&ia(V),b.effects=[],m&&t&&t.pendingBranch&&k===t.pendingId&&(t.deps--,t.deps===0&&!E&&t.resolve()),$o(S,"onResolve")},fallback(w){if(!b.pendingBranch)return;const{vnode:E,activeBranch:S,parentComponent:T,container:I,isSVG:O}=b;$o(E,"onFallback");const V=g(S),$=()=>{b.isInFallback&&(f(null,w,I,V,T,null,O,a,l),Rr(b,w))},U=w.transition&&w.transition.mode==="out-in";U&&(S.transition.afterLeave=$),b.isInFallback=!0,p(S,T,null,!0),U||$()},move(w,E,S){b.activeBranch&&d(b.activeBranch,w,E,S),b.container=w},next(){return b.activeBranch&&g(b.activeBranch)},registerDep(w,E){const S=!!b.pendingBranch;S&&b.deps++;const T=w.vnode.el;w.asyncDep.catch(I=>{Qr(I,w,0)}).then(I=>{if(w.isUnmounted||b.isUnmounted||b.pendingId!==w.suspenseId)return;w.asyncResolved=!0;const{vnode:O}=w;pa(w,I,!1),T&&(O.el=T);const V=!T&&w.subTree.el;E(w,O,h(T||w.subTree.el),T?null:g(w.subTree),b,i,l),V&&y(V),yl(w,O.el),S&&--b.deps===0&&b.resolve()})},unmount(w,E){b.isUnmounted=!0,b.activeBranch&&p(b.activeBranch,n,w,E),b.pendingBranch&&p(b.pendingBranch,n,w,E)}};return b}function Rm(e,t,n,r,o,s,i,a,l){const c=t.suspense=wl(t,r,n,e.parentNode,document.createElement("div"),null,o,s,i,a,!0),u=l(e,c.pendingBranch=t.ssContent,n,c,s,i);return c.deps===0&&c.resolve(!1,!0),u}function $m(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Mc(r?n.default:n),e.ssFallback=r?Mc(n.fallback):K(ht)}function Mc(e){let t;if(he(e)){const n=Lr&&e._c;n&&(e._d=!1,L()),e=e(),n&&(e._d=!0,t=Rt,Ud())}return ce(e)&&(e=Em(e)),e=Ot(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function md(e,t){t&&t.pendingBranch?ce(e)?t.effects.push(...e):t.effects.push(e):ia(e)}function Rr(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,o=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=o,yl(r,o))}function Im(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}function Ye(e,t){return ci(e,null,t)}function Lm(e,t){return ci(e,null,{flush:"post"})}const fs={};function Re(e,t,n){return ci(e,t,n)}function ci(e,t,{immediate:n,deep:r,flush:o,onTrack:s,onTrigger:i}=Ue){var a;const l=Kr()===((a=Qe)==null?void 0:a.scope)?Qe:null;let c,u=!1,f=!1;if(tt(e)?(c=()=>e.value,u=Bs(e)):Ar(e)?(c=()=>e,r=!0):ce(e)?(f=!0,u=e.some(b=>Ar(b)||Bs(b)),c=()=>e.map(b=>{if(tt(b))return b.value;if(Ar(b))return ir(b);if(he(b))return Dn(b,l,2)})):he(e)?t?c=()=>Dn(e,l,2):c=()=>{if(!(l&&l.isUnmounted))return d&&d(),$t(e,l,3,[p])}:c=en,t&&r){const b=c;c=()=>ir(b())}let d,p=b=>{d=m.onStop=()=>{Dn(b,l,4),d=m.onStop=void 0}},g;if(Dr)if(p=en,t?n&&$t(t,l,3,[c(),f?[]:void 0,p]):c(),o==="sync"){const b=kv();g=b.__watcherHandles||(b.__watcherHandles=[])}else return en;let h=f?new Array(e.length).fill(fs):fs;const y=()=>{if(m.active)if(t){const b=m.run();(r||u||(f?b.some((w,E)=>pr(w,h[E])):pr(b,h)))&&(d&&d(),$t(t,l,3,[b,h===fs?void 0:f&&h[0]===fs?[]:h,p]),h=b)}else m.run()};y.allowRecurse=!!t;let k;o==="sync"?k=y:o==="post"?k=()=>it(y,l&&l.suspense):(y.pre=!0,l&&(y.id=l.uid),k=()=>ii(y));const m=new fl(c,k);t?n?y():h=m.run():o==="post"?it(m.run.bind(m),l&&l.suspense):m.run();const v=()=>{m.stop(),l&&l.scope&&al(l.scope.effects,m)};return g&&g.push(v),v}function jm(e,t,n){const r=this.proxy,o=We(e)?e.includes(".")?vd(r,e):()=>r[e]:e.bind(r,r);let s;he(t)?s=t:(s=t.handler,n=t);const i=Qe;zn(this);const a=ci(o,s.bind(r),n);return i?zn(i):Bn(),a}function vd(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o{ir(n,t)});else if(Hf(e))for(const n in e)ir(e[n],t);return e}function Mm(e,t){const n=rt;if(n===null)return e;const r=pi(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let s=0;s{e.isMounted=!0}),Xo(()=>{e.isUnmounting=!0}),e}const At=[Function,Array],yd={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:At,onEnter:At,onAfterEnter:At,onEnterCancelled:At,onBeforeLeave:At,onLeave:At,onAfterLeave:At,onLeaveCancelled:At,onBeforeAppear:At,onAppear:At,onAfterAppear:At,onAppearCancelled:At},Nm={name:"BaseTransition",props:yd,setup(e,{slots:t}){const n=Mt(),r=Dm();let o;return()=>{const s=t.default&&wd(t.default(),!0);if(!s||!s.length)return;let i=s[0];if(s.length>1){for(const h of s)if(h.type!==ht){i=h;break}}const a=Ae(e),{mode:l}=a;if(r.isLeaving)return Ai(i);const c=Dc(i);if(!c)return Ai(i);const u=aa(c,a,r,n);Us(c,u);const f=n.subTree,d=f&&Dc(f);let p=!1;const{getTransitionKey:g}=c.type;if(g){const h=g();o===void 0?o=h:h!==o&&(o=h,p=!0)}if(d&&d.type!==ht&&(!Ht(c,d)||p)){const h=aa(d,a,r,n);if(Us(d,h),l==="out-in")return r.isLeaving=!0,h.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},Ai(i);l==="in-out"&&c.type!==ht&&(h.delayLeave=(y,k,m)=>{const v=bd(r,d);v[String(d.key)]=d,y[On]=()=>{k(),y[On]=void 0,delete u.delayedLeave},u.delayedLeave=m})}return i}}},Bm=Nm;function bd(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function aa(e,t,n,r){const{appear:o,mode:s,persisted:i=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:f,onLeave:d,onAfterLeave:p,onLeaveCancelled:g,onBeforeAppear:h,onAppear:y,onAfterAppear:k,onAppearCancelled:m}=t,v=String(e.key),b=bd(n,e),w=(T,I)=>{T&&$t(T,r,9,I)},E=(T,I)=>{const O=I[1];w(T,I),ce(T)?T.every(V=>V.length<=1)&&O():T.length<=1&&O()},S={mode:s,persisted:i,beforeEnter(T){let I=a;if(!n.isMounted)if(o)I=h||a;else return;T[On]&&T[On](!0);const O=b[v];O&&Ht(e,O)&&O.el[On]&&O.el[On](),w(I,[T])},enter(T){let I=l,O=c,V=u;if(!n.isMounted)if(o)I=y||l,O=k||c,V=m||u;else return;let $=!1;const U=T[ds]=ve=>{$||($=!0,ve?w(V,[T]):w(O,[T]),S.delayedLeave&&S.delayedLeave(),T[ds]=void 0)};I?E(I,[T,U]):U()},leave(T,I){const O=String(e.key);if(T[ds]&&T[ds](!0),n.isUnmounting)return I();w(f,[T]);let V=!1;const $=T[On]=U=>{V||(V=!0,I(),U?w(g,[T]):w(p,[T]),T[On]=void 0,b[O]===e&&delete b[O])};b[O]=e,d?E(d,[T,$]):$()},clone(T){return aa(T,t,n,r)}};return S}function Ai(e){if(Go(e))return e=on(e),e.children=null,e}function Dc(e){return Go(e)?e.children?e.children[0]:void 0:e}function Us(e,t){e.shapeFlag&6&&e.component?Us(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function wd(e,t=!1,n){let r=[],o=0;for(let s=0;s1)for(let s=0;s!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function Z(e){he(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:o=200,timeout:s,suspensible:i=!0,onError:a}=e;let l=null,c,u=0;const f=()=>(u++,l=null,d()),d=()=>{let p;return l||(p=l=t().catch(g=>{if(g=g instanceof Error?g:new Error(String(g)),a)return new Promise((h,y)=>{a(g,()=>h(f()),()=>y(g),u+1)});throw g}).then(g=>p!==l&&l?l:(g&&(g.__esModule||g[Symbol.toStringTag]==="Module")&&(g=g.default),c=g,g)))};return oe({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return c},setup(){const p=Qe;if(c)return()=>Oi(c,p);const g=m=>{l=null,Qr(m,p,13,!r)};if(i&&p.suspense||Dr)return d().then(m=>()=>Oi(m,p)).catch(m=>(g(m),()=>r?K(r,{error:m}):null));const h=B(!1),y=B(),k=B(!!o);return o&&setTimeout(()=>{k.value=!1},o),s!=null&&setTimeout(()=>{if(!h.value&&!y.value){const m=new Error(`Async component timed out after ${s}ms.`);g(m),y.value=m}},s),d().then(()=>{h.value=!0,p.parent&&Go(p.parent.vnode)&&ii(p.parent.update)}).catch(m=>{g(m),y.value=m}),()=>{if(h.value&&c)return Oi(c,p);if(y.value&&r)return K(r,{error:y.value});if(n&&!k.value)return K(n)}}})}function Oi(e,t){const{ref:n,props:r,children:o,ce:s}=t.vnode,i=K(e,r,o);return i.ref=n,i.ce=s,delete t.vnode.ce,i}const Go=e=>e.type.__isKeepAlive,Fm={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Mt(),r=n.ctx;if(!r.renderer)return()=>{const m=t.default&&t.default();return m&&m.length===1?m[0]:m};const o=new Map,s=new Set;let i=null;const a=n.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:f}}}=r,d=f("div");r.activate=(m,v,b,w,E)=>{const S=m.component;c(m,v,b,0,a),l(S.vnode,m,v,b,S,a,w,m.slotScopeIds,E),it(()=>{S.isDeactivated=!1,S.a&&mo(S.a);const T=m.props&&m.props.onVnodeMounted;T&&mt(T,S.parent,m)},a)},r.deactivate=m=>{const v=m.component;c(m,d,null,1,a),it(()=>{v.da&&mo(v.da);const b=m.props&&m.props.onVnodeUnmounted;b&&mt(b,v.parent,m),v.isDeactivated=!0},a)};function p(m){Ri(m),u(m,n,a,!0)}function g(m){o.forEach((v,b)=>{const w=ha(v.type);w&&(!m||!m(w))&&h(b)})}function h(m){const v=o.get(m);!i||!Ht(v,i)?p(v):i&&Ri(i),o.delete(m),s.delete(m)}Re(()=>[e.include,e.exclude],([m,v])=>{m&&g(b=>po(m,b)),v&&g(b=>!po(v,b))},{flush:"post",deep:!0});let y=null;const k=()=>{y!=null&&o.set(y,$i(n.subTree))};return Le(k),Cd(k),Xo(()=>{o.forEach(m=>{const{subTree:v,suspense:b}=n,w=$i(v);if(m.type===w.type&&m.key===w.key){Ri(w);const E=w.component.da;E&&it(E,b);return}p(m)})}),()=>{if(y=null,!t.default)return null;const m=t.default(),v=m[0];if(m.length>1)return i=null,m;if(!jr(v)||!(v.shapeFlag&4)&&!(v.shapeFlag&128))return i=null,v;let b=$i(v);const w=b.type,E=ha(ur(b)?b.type.__asyncResolved||{}:w),{include:S,exclude:T,max:I}=e;if(S&&(!E||!po(S,E))||T&&E&&po(T,E))return i=b,v;const O=b.key==null?w:b.key,V=o.get(O);return b.el&&(b=on(b),v.shapeFlag&128&&(v.ssContent=b)),y=O,V?(b.el=V.el,b.component=V.component,b.transition&&Us(b,b.transition),b.shapeFlag|=512,s.delete(O),s.add(O)):(s.add(O),I&&s.size>parseInt(I,10)&&h(s.values().next().value)),b.shapeFlag|=256,i=b,gd(v.type)?v:b}}},Hm=Fm;function po(e,t){return ce(e)?e.some(n=>po(n,t)):We(e)?e.split(",").includes(t):$g(e)?e.test(t):!1}function _d(e,t){kd(e,"a",t)}function xd(e,t){kd(e,"da",t)}function kd(e,t,n=Qe){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(ui(t,r,n),n){let o=n.parent;for(;o&&o.parent;)Go(o.parent.vnode)&&Um(r,t,n,o),o=o.parent}}function Um(e,t,n,r){const o=ui(t,e,r,!0);nt(()=>{al(r[t],o)},n)}function Ri(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function $i(e){return e.shapeFlag&128?e.ssContent:e}function ui(e,t,n=Qe,r=!1){if(n){const o=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Gr(),zn(n);const a=$t(t,n,e,i);return Bn(),Xr(),a});return r?o.unshift(s):o.push(s),s}}const bn=e=>(t,n=Qe)=>(!Dr||e==="sp")&&ui(e,(...r)=>t(...r),n),Ed=bn("bm"),Le=bn("m"),zm=bn("bu"),Cd=bn("u"),Xo=bn("bum"),nt=bn("um"),Vm=bn("sp"),Wm=bn("rtg"),qm=bn("rtc");function Sd(e,t=Qe){ui("ec",e,t)}function bt(e,t,n,r){let o;const s=n;if(ce(e)||We(e)){o=new Array(e.length);for(let i=0,a=e.length;it(i,a,void 0,s));else{const i=Object.keys(e);o=new Array(i.length);for(let a=0,l=i.length;a{const s=r.fn(...o);return s&&(s.key=r.key),s}:r.fn)}return e}function ye(e,t,n={},r,o){if(rt.isCE||rt.parent&&ur(rt.parent)&&rt.parent.isCE)return t!=="default"&&(n.name=t),K("slot",n,r&&r());let s=e[t];s&&s._c&&(s._d=!1),L();const i=s&&Pd(s(n)),a=re(ke,{key:n.key||i&&i.key||`_${t}`},i||(r?r():[]),i&&e._===1?64:-2);return!o&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),s&&s._c&&(s._d=!0),a}function Pd(e){return e.some(t=>jr(t)?!(t.type===ht||t.type===ke&&!Pd(t.children)):!0)?e:null}const la=e=>e?Wd(e)?pi(e)||e.proxy:la(e.parent):null,vo=et(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>la(e.parent),$root:e=>la(e.root),$emit:e=>e.emit,$options:e=>xl(e),$forceUpdate:e=>e.f||(e.f=()=>ii(e.update)),$nextTick:e=>e.n||(e.n=Kn.bind(e.proxy)),$watch:e=>jm.bind(e)}),Ii=(e,t)=>e!==Ue&&!e.__isScriptSetup&&Te(e,t),Km={get({_:e},t){const{ctx:n,setupState:r,data:o,props:s,accessCache:i,type:a,appContext:l}=e;let c;if(t[0]!=="$"){const p=i[t];if(p!==void 0)switch(p){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return s[t]}else{if(Ii(r,t))return i[t]=1,r[t];if(o!==Ue&&Te(o,t))return i[t]=2,o[t];if((c=e.propsOptions[0])&&Te(c,t))return i[t]=3,s[t];if(n!==Ue&&Te(n,t))return i[t]=4,n[t];ca&&(i[t]=0)}}const u=vo[t];let f,d;if(u)return t==="$attrs"&&yt(e,"get",t),u(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==Ue&&Te(n,t))return i[t]=4,n[t];if(d=l.config.globalProperties,Te(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:s}=e;return Ii(o,t)?(o[t]=n,!0):r!==Ue&&Te(r,t)?(r[t]=n,!0):Te(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:s}},i){let a;return!!n[i]||e!==Ue&&Te(e,i)||Ii(t,i)||(a=s[0])&&Te(a,i)||Te(r,i)||Te(vo,i)||Te(o.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Te(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Td(){return Ad().slots}function Gm(){return Ad().attrs}function Ad(){const e=Mt();return e.setupContext||(e.setupContext=Kd(e))}function Nc(e){return ce(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function _l(e){const t=Mt();let n=e();return Bn(),ll(n)&&(n=n.catch(r=>{throw zn(t),r})),[n,()=>zn(t)]}let ca=!0;function Xm(e){const t=xl(e),n=e.proxy,r=e.ctx;ca=!1,t.beforeCreate&&Bc(t.beforeCreate,e,"bc");const{data:o,computed:s,methods:i,watch:a,provide:l,inject:c,created:u,beforeMount:f,mounted:d,beforeUpdate:p,updated:g,activated:h,deactivated:y,beforeDestroy:k,beforeUnmount:m,destroyed:v,unmounted:b,render:w,renderTracked:E,renderTriggered:S,errorCaptured:T,serverPrefetch:I,expose:O,inheritAttrs:V,components:$,directives:U,filters:ve}=t;if(c&&Qm(c,r,null),i)for(const ee in i){const Y=i[ee];he(Y)&&(r[ee]=Y.bind(n))}if(o){const ee=o.call(n,n);Fe(ee)&&(e.data=qt(ee))}if(ca=!0,s)for(const ee in s){const Y=s[ee],je=he(Y)?Y.bind(n,n):he(Y.get)?Y.get.bind(n,n):en,Ze=!he(Y)&&he(Y.set)?Y.set.bind(n):en,de=A({get:je,set:Ze});Object.defineProperty(r,ee,{enumerable:!0,configurable:!0,get:()=>de.value,set:pe=>de.value=pe})}if(a)for(const ee in a)Od(a[ee],r,n,ee);if(l){const ee=he(l)?l.call(n):l;Reflect.ownKeys(ee).forEach(Y=>{Be(Y,ee[Y])})}u&&Bc(u,e,"c");function F(ee,Y){ce(Y)?Y.forEach(je=>ee(je.bind(n))):Y&&ee(Y.bind(n))}if(F(Ed,f),F(Le,d),F(zm,p),F(Cd,g),F(_d,h),F(xd,y),F(Sd,T),F(qm,E),F(Wm,S),F(Xo,m),F(nt,b),F(Vm,I),ce(O))if(O.length){const ee=e.exposed||(e.exposed={});O.forEach(Y=>{Object.defineProperty(ee,Y,{get:()=>n[Y],set:je=>n[Y]=je})})}else e.exposed||(e.exposed={});w&&e.render===en&&(e.render=w),V!=null&&(e.inheritAttrs=V),$&&(e.components=$),U&&(e.directives=U)}function Qm(e,t,n=en){ce(e)&&(e=ua(e));for(const r in e){const o=e[r];let s;Fe(o)?"default"in o?s=Ee(o.from||r,o.default,!0):s=Ee(o.from||r):s=Ee(o),tt(s)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):t[r]=s}}function Bc(e,t,n){$t(ce(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Od(e,t,n,r){const o=r.includes(".")?vd(n,r):()=>n[r];if(We(e)){const s=t[e];he(s)&&Re(o,s)}else if(he(e))Re(o,e.bind(n));else if(Fe(e))if(ce(e))e.forEach(s=>Od(s,t,n,r));else{const s=he(e.handler)?e.handler.bind(n):t[e.handler];he(s)&&Re(o,s,e)}}function xl(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,a=s.get(t);let l;return a?l=a:!o.length&&!n&&!r?l=t:(l={},o.length&&o.forEach(c=>zs(l,c,i,!0)),zs(l,t,i)),Fe(t)&&s.set(t,l),l}function zs(e,t,n,r=!1){const{mixins:o,extends:s}=t;s&&zs(e,s,n,!0),o&&o.forEach(i=>zs(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const a=Ym[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const Ym={data:Fc,props:Hc,emits:Hc,methods:ho,computed:ho,beforeCreate:pt,created:pt,beforeMount:pt,mounted:pt,beforeUpdate:pt,updated:pt,beforeDestroy:pt,beforeUnmount:pt,destroyed:pt,unmounted:pt,activated:pt,deactivated:pt,errorCaptured:pt,serverPrefetch:pt,components:ho,directives:ho,watch:Zm,provide:Fc,inject:Jm};function Fc(e,t){return t?e?function(){return et(he(e)?e.call(this,this):e,he(t)?t.call(this,this):t)}:t:e}function Jm(e,t){return ho(ua(e),ua(t))}function ua(e){if(ce(e)){const t={};for(let n=0;n1)return n&&he(t)?t.call(r&&r.proxy):t}}function $d(){return!!(Qe||rt||Io)}function nv(e,t,n,r=!1){const o={},s={};Ds(s,di,1),e.propsDefaults=Object.create(null),Id(e,t,o,s);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);n?e.props=r?o:pn(o):e.type.props?e.props=o:e.props=s,e.attrs=s}function rv(e,t,n,r){const{props:o,attrs:s,vnode:{patchFlag:i}}=e,a=Ae(o),[l]=e.propsOptions;let c=!1;if((r||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let f=0;f{l=!0;const[d,p]=Ld(f,t,!0);et(i,d),p&&a.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!s&&!l)return Fe(e)&&r.set(e,Pr),Pr;if(ce(s))for(let u=0;u-1,p[1]=h<0||g-1||Te(p,"default"))&&a.push(f)}}}const c=[i,a];return Fe(e)&&r.set(e,c),c}function Uc(e){return e[0]!=="$"}function zc(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Vc(e,t){return zc(e)===zc(t)}function Wc(e,t){return ce(t)?t.findIndex(n=>Vc(n,e)):he(t)&&Vc(t,e)?0:-1}const jd=e=>e[0]==="_"||e==="$stable",kl=e=>ce(e)?e.map(Ot):[Ot(e)],ov=(e,t,n)=>{if(t._n)return t;const r=le((...o)=>kl(t(...o)),n);return r._c=!1,r},Md=(e,t,n)=>{const r=e._ctx;for(const o in e){if(jd(o))continue;const s=e[o];if(he(s))t[o]=ov(o,s,r);else if(s!=null){const i=kl(s);t[o]=()=>i}}},Dd=(e,t)=>{const n=kl(t);e.slots.default=()=>n},sv=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Ae(t),Ds(t,"_",n)):Md(t,e.slots={})}else e.slots={},t&&Dd(e,t);Ds(e.slots,di,1)},iv=(e,t,n)=>{const{vnode:r,slots:o}=e;let s=!0,i=Ue;if(r.shapeFlag&32){const a=t._;a?n&&a===1?s=!1:(et(o,t),!n&&a===1&&delete o._):(s=!t.$stable,Md(t,o)),i=t}else t&&(Dd(e,t),i={default:1});if(s)for(const a in o)!jd(a)&&i[a]==null&&delete o[a]};function Vs(e,t,n,r,o=!1){if(ce(e)){e.forEach((d,p)=>Vs(d,t&&(ce(t)?t[p]:t),n,r,o));return}if(ur(r)&&!o)return;const s=r.shapeFlag&4?pi(r.component)||r.component.proxy:r.el,i=o?null:s,{i:a,r:l}=e,c=t&&t.r,u=a.refs===Ue?a.refs={}:a.refs,f=a.setupState;if(c!=null&&c!==l&&(We(c)?(u[c]=null,Te(f,c)&&(f[c]=null)):tt(c)&&(c.value=null)),he(l))Dn(l,a,12,[i,u]);else{const d=We(l),p=tt(l);if(d||p){const g=()=>{if(e.f){const h=d?Te(f,l)?f[l]:u[l]:l.value;o?ce(h)&&al(h,s):ce(h)?h.includes(s)||h.push(s):d?(u[l]=[s],Te(f,l)&&(f[l]=u[l])):(l.value=[s],e.k&&(u[e.k]=l.value))}else d?(u[l]=i,Te(f,l)&&(f[l]=i)):p&&(l.value=i,e.k&&(u[e.k]=i))};i?(g.id=-1,it(g,n)):g()}}}let kn=!1;const ps=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",hs=e=>e.nodeType===8;function av(e){const{mt:t,p:n,o:{patchProp:r,createText:o,nextSibling:s,parentNode:i,remove:a,insert:l,createComment:c}}=e,u=(v,b)=>{if(!b.hasChildNodes()){n(null,v,b),Fs(),b._vnode=v;return}kn=!1,f(b.firstChild,v,null,null,null),Fs(),b._vnode=v,kn&&console.error("Hydration completed but contains mismatches.")},f=(v,b,w,E,S,T=!1)=>{const I=hs(v)&&v.data==="[",O=()=>h(v,b,w,E,S,I),{type:V,ref:$,shapeFlag:U,patchFlag:ve}=b;let fe=v.nodeType;b.el=v,ve===-2&&(T=!1,b.dynamicChildren=null);let F=null;switch(V){case Ir:fe!==3?b.children===""?(l(b.el=o(""),i(v),v),F=v):F=O():(v.data!==b.children&&(kn=!0,v.data=b.children),F=s(v));break;case ht:m(v)?(F=s(v),k(b.el=v.content.firstChild,v,w)):fe!==8||I?F=O():F=s(v);break;case bo:if(I&&(v=s(v),fe=v.nodeType),fe===1||fe===3){F=v;const ee=!b.children.length;for(let Y=0;Y{T=T||!!b.dynamicChildren;const{type:I,props:O,patchFlag:V,shapeFlag:$,dirs:U,transition:ve}=b,fe=I==="input"||I==="option";if(fe||V!==-1){U&&Yt(b,null,w,"created");let F=!1;if(m(v)){F=Bd(E,ve)&&w&&w.vnode.props&&w.vnode.props.appear;const Y=v.content.firstChild;F&&ve.beforeEnter(Y),k(Y,v,w),b.el=v=Y}if(O)if(fe||!T||V&48)for(const Y in O)(fe&&(Y.endsWith("value")||Y==="indeterminate")||qo(Y)&&!go(Y)||Y[0]===".")&&r(v,Y,null,O[Y],!1,void 0,w);else O.onClick&&r(v,"onClick",null,O.onClick,!1,void 0,w);let ee;if((ee=O&&O.onVnodeBeforeMount)&&mt(ee,w,b),U&&Yt(b,null,w,"beforeMount"),((ee=O&&O.onVnodeMounted)||U||F)&&md(()=>{ee&&mt(ee,w,b),F&&ve.enter(v),U&&Yt(b,null,w,"mounted")},E),$&16&&!(O&&(O.innerHTML||O.textContent))){let Y=p(v.firstChild,b,v,w,E,S,T);for(;Y;){kn=!0;const je=Y;Y=Y.nextSibling,a(je)}}else $&8&&v.textContent!==b.children&&(kn=!0,v.textContent=b.children)}return v.nextSibling},p=(v,b,w,E,S,T,I)=>{I=I||!!b.dynamicChildren;const O=b.children,V=O.length;for(let $=0;${const{slotScopeIds:I}=b;I&&(S=S?S.concat(I):I);const O=i(v),V=p(s(v),b,O,w,E,S,T);return V&&hs(V)&&V.data==="]"?s(b.anchor=V):(kn=!0,l(b.anchor=c("]"),O,V),V)},h=(v,b,w,E,S,T)=>{if(kn=!0,b.el=null,T){const V=y(v);for(;;){const $=s(v);if($&&$!==V)a($);else break}}const I=s(v),O=i(v);return a(v),n(null,b,O,I,w,E,ps(O),S),I},y=(v,b="[",w="]")=>{let E=0;for(;v;)if(v=s(v),v&&hs(v)&&(v.data===b&&E++,v.data===w)){if(E===0)return s(v);E--}return v},k=(v,b,w)=>{const E=b.parentNode;E&&E.replaceChild(v,b);let S=w;for(;S;)S.vnode.el===b&&(S.vnode.el=S.subTree.el=v),S=S.parent},m=v=>v.nodeType===1&&v.tagName.toLowerCase()==="template";return[u,f]}const it=md;function lv(e){return Nd(e)}function cv(e){return Nd(e,av)}function Nd(e,t){const n=ta();n.__VUE__=!0;const{insert:r,remove:o,patchProp:s,createElement:i,createText:a,createComment:l,setText:c,setElementText:u,parentNode:f,nextSibling:d,setScopeId:p=en,insertStaticContent:g}=e,h=(_,x,P,R=null,M=null,D=null,Q=!1,H=null,z=!!x.dynamicChildren)=>{if(_===x)return;_&&!Ht(_,x)&&(R=j(_),pe(_,M,D,!0),_=null),x.patchFlag===-2&&(z=!1,x.dynamicChildren=null);const{type:N,ref:ae,shapeFlag:te}=x;switch(N){case Ir:y(_,x,P,R);break;case ht:k(_,x,P,R);break;case bo:_==null&&m(x,P,R,Q);break;case ke:$(_,x,P,R,M,D,Q,H,z);break;default:te&1?w(_,x,P,R,M,D,Q,H,z):te&6?U(_,x,P,R,M,D,Q,H,z):(te&64||te&128)&&N.process(_,x,P,R,M,D,Q,H,z,q)}ae!=null&&M&&Vs(ae,_&&_.ref,D,x||_,!x)},y=(_,x,P,R)=>{if(_==null)r(x.el=a(x.children),P,R);else{const M=x.el=_.el;x.children!==_.children&&c(M,x.children)}},k=(_,x,P,R)=>{_==null?r(x.el=l(x.children||""),P,R):x.el=_.el},m=(_,x,P,R)=>{[_.el,_.anchor]=g(_.children,x,P,R,_.el,_.anchor)},v=({el:_,anchor:x},P,R)=>{let M;for(;_&&_!==x;)M=d(_),r(_,P,R),_=M;r(x,P,R)},b=({el:_,anchor:x})=>{let P;for(;_&&_!==x;)P=d(_),o(_),_=P;o(x)},w=(_,x,P,R,M,D,Q,H,z)=>{Q=Q||x.type==="svg",_==null?E(x,P,R,M,D,Q,H,z):I(_,x,M,D,Q,H,z)},E=(_,x,P,R,M,D,Q,H)=>{let z,N;const{type:ae,props:te,shapeFlag:ie,transition:ge,dirs:_e}=_;if(z=_.el=i(_.type,D,te&&te.is,te),ie&8?u(z,_.children):ie&16&&T(_.children,z,null,R,M,D&&ae!=="foreignObject",Q,H),_e&&Yt(_,null,R,"created"),S(z,_,_.scopeId,Q,R),te){for(const Oe in te)Oe!=="value"&&!go(Oe)&&s(z,Oe,null,te[Oe],D,_.children,R,M,Me);"value"in te&&s(z,"value",null,te.value),(N=te.onVnodeBeforeMount)&&mt(N,R,_)}_e&&Yt(_,null,R,"beforeMount");const $e=Bd(M,ge);$e&&ge.beforeEnter(z),r(z,x,P),((N=te&&te.onVnodeMounted)||$e||_e)&&it(()=>{N&&mt(N,R,_),$e&&ge.enter(z),_e&&Yt(_,null,R,"mounted")},M)},S=(_,x,P,R,M)=>{if(P&&p(_,P),R)for(let D=0;D{for(let N=z;N<_.length;N++){const ae=_[N]=H?Rn(_[N]):Ot(_[N]);h(null,ae,x,P,R,M,D,Q,H)}},I=(_,x,P,R,M,D,Q)=>{const H=x.el=_.el;let{patchFlag:z,dynamicChildren:N,dirs:ae}=x;z|=_.patchFlag&16;const te=_.props||Ue,ie=x.props||Ue;let ge;P&&Qn(P,!1),(ge=ie.onVnodeBeforeUpdate)&&mt(ge,P,x,_),ae&&Yt(x,_,P,"beforeUpdate"),P&&Qn(P,!0);const _e=M&&x.type!=="foreignObject";if(N?O(_.dynamicChildren,N,H,P,R,_e,D):Q||Y(_,x,H,null,P,R,_e,D,!1),z>0){if(z&16)V(H,x,te,ie,P,R,M);else if(z&2&&te.class!==ie.class&&s(H,"class",null,ie.class,M),z&4&&s(H,"style",te.style,ie.style,M),z&8){const $e=x.dynamicProps;for(let Oe=0;Oe<$e.length;Oe++){const Xe=$e[Oe],Nt=te[Xe],xr=ie[Xe];(xr!==Nt||Xe==="value")&&s(H,Xe,Nt,xr,M,_.children,P,R,Me)}}z&1&&_.children!==x.children&&u(H,x.children)}else!Q&&N==null&&V(H,x,te,ie,P,R,M);((ge=ie.onVnodeUpdated)||ae)&&it(()=>{ge&&mt(ge,P,x,_),ae&&Yt(x,_,P,"updated")},R)},O=(_,x,P,R,M,D,Q)=>{for(let H=0;H{if(P!==R){if(P!==Ue)for(const H in P)!go(H)&&!(H in R)&&s(_,H,P[H],null,Q,x.children,M,D,Me);for(const H in R){if(go(H))continue;const z=R[H],N=P[H];z!==N&&H!=="value"&&s(_,H,N,z,Q,x.children,M,D,Me)}"value"in R&&s(_,"value",P.value,R.value)}},$=(_,x,P,R,M,D,Q,H,z)=>{const N=x.el=_?_.el:a(""),ae=x.anchor=_?_.anchor:a("");let{patchFlag:te,dynamicChildren:ie,slotScopeIds:ge}=x;ge&&(H=H?H.concat(ge):ge),_==null?(r(N,P,R),r(ae,P,R),T(x.children,P,ae,M,D,Q,H,z)):te>0&&te&64&&ie&&_.dynamicChildren?(O(_.dynamicChildren,ie,P,M,D,Q,H),(x.key!=null||M&&x===M.subTree)&&El(_,x,!0)):Y(_,x,P,ae,M,D,Q,H,z)},U=(_,x,P,R,M,D,Q,H,z)=>{x.slotScopeIds=H,_==null?x.shapeFlag&512?M.ctx.activate(x,P,R,Q,z):ve(x,P,R,M,D,Q,z):fe(_,x,z)},ve=(_,x,P,R,M,D,Q)=>{const H=_.component=vv(_,R,M);if(Go(_)&&(H.ctx.renderer=q),yv(H),H.asyncDep){if(M&&M.registerDep(H,F),!_.el){const z=H.subTree=K(ht);k(null,z,x,P)}return}F(H,_,x,P,M,D,Q)},fe=(_,x,P)=>{const R=x.component=_.component;if(Pm(_,x,P))if(R.asyncDep&&!R.asyncResolved){ee(R,x,P);return}else R.next=x,_m(R.update),R.update();else x.el=_.el,R.vnode=x},F=(_,x,P,R,M,D,Q)=>{const H=()=>{if(_.isMounted){let{next:ae,bu:te,u:ie,parent:ge,vnode:_e}=_,$e=ae,Oe;Qn(_,!1),ae?(ae.el=_e.el,ee(_,ae,Q)):ae=_e,te&&mo(te),(Oe=ae.props&&ae.props.onVnodeBeforeUpdate)&&mt(Oe,ge,ae,_e),Qn(_,!0);const Xe=Ti(_),Nt=_.subTree;_.subTree=Xe,h(Nt,Xe,f(Nt.el),j(Nt),_,M,D),ae.el=Xe.el,$e===null&&yl(_,Xe.el),ie&&it(ie,M),(Oe=ae.props&&ae.props.onVnodeUpdated)&&it(()=>mt(Oe,ge,ae,_e),M)}else{let ae;const{el:te,props:ie}=x,{bm:ge,m:_e,parent:$e}=_,Oe=ur(x);if(Qn(_,!1),ge&&mo(ge),!Oe&&(ae=ie&&ie.onVnodeBeforeMount)&&mt(ae,$e,x),Qn(_,!0),te&&Se){const Xe=()=>{_.subTree=Ti(_),Se(te,_.subTree,_,M,null)};Oe?x.type.__asyncLoader().then(()=>!_.isUnmounted&&Xe()):Xe()}else{const Xe=_.subTree=Ti(_);h(null,Xe,P,R,_,M,D),x.el=Xe.el}if(_e&&it(_e,M),!Oe&&(ae=ie&&ie.onVnodeMounted)){const Xe=x;it(()=>mt(ae,$e,Xe),M)}(x.shapeFlag&256||$e&&ur($e.vnode)&&$e.vnode.shapeFlag&256)&&_.a&&it(_.a,M),_.isMounted=!0,x=P=R=null}},z=_.effect=new fl(H,()=>ii(N),_.scope),N=_.update=()=>z.run();N.id=_.uid,Qn(_,!0),N()},ee=(_,x,P)=>{x.component=_;const R=_.vnode.props;_.vnode=x,_.next=null,rv(_,x.props,R,P),iv(_,x.children,P),Gr(),Ic(_),Xr()},Y=(_,x,P,R,M,D,Q,H,z=!1)=>{const N=_&&_.children,ae=_?_.shapeFlag:0,te=x.children,{patchFlag:ie,shapeFlag:ge}=x;if(ie>0){if(ie&128){Ze(N,te,P,R,M,D,Q,H,z);return}else if(ie&256){je(N,te,P,R,M,D,Q,H,z);return}}ge&8?(ae&16&&Me(N,M,D),te!==N&&u(P,te)):ae&16?ge&16?Ze(N,te,P,R,M,D,Q,H,z):Me(N,M,D,!0):(ae&8&&u(P,""),ge&16&&T(te,P,R,M,D,Q,H,z))},je=(_,x,P,R,M,D,Q,H,z)=>{_=_||Pr,x=x||Pr;const N=_.length,ae=x.length,te=Math.min(N,ae);let ie;for(ie=0;ieae?Me(_,M,D,!0,!1,te):T(x,P,R,M,D,Q,H,z,te)},Ze=(_,x,P,R,M,D,Q,H,z)=>{let N=0;const ae=x.length;let te=_.length-1,ie=ae-1;for(;N<=te&&N<=ie;){const ge=_[N],_e=x[N]=z?Rn(x[N]):Ot(x[N]);if(Ht(ge,_e))h(ge,_e,P,null,M,D,Q,H,z);else break;N++}for(;N<=te&&N<=ie;){const ge=_[te],_e=x[ie]=z?Rn(x[ie]):Ot(x[ie]);if(Ht(ge,_e))h(ge,_e,P,null,M,D,Q,H,z);else break;te--,ie--}if(N>te){if(N<=ie){const ge=ie+1,_e=geie)for(;N<=te;)pe(_[N],M,D,!0),N++;else{const ge=N,_e=N,$e=new Map;for(N=_e;N<=ie;N++){const xt=x[N]=z?Rn(x[N]):Ot(x[N]);xt.key!=null&&$e.set(xt.key,N)}let Oe,Xe=0;const Nt=ie-_e+1;let xr=!1,xc=0;const Zr=new Array(Nt);for(N=0;N=Nt){pe(xt,M,D,!0);continue}let Xt;if(xt.key!=null)Xt=$e.get(xt.key);else for(Oe=_e;Oe<=ie;Oe++)if(Zr[Oe-_e]===0&&Ht(xt,x[Oe])){Xt=Oe;break}Xt===void 0?pe(xt,M,D,!0):(Zr[Xt-_e]=N+1,Xt>=xc?xc=Xt:xr=!0,h(xt,x[Xt],P,null,M,D,Q,H,z),Xe++)}const kc=xr?uv(Zr):Pr;for(Oe=kc.length-1,N=Nt-1;N>=0;N--){const xt=_e+N,Xt=x[xt],Ec=xt+1{const{el:D,type:Q,transition:H,children:z,shapeFlag:N}=_;if(N&6){de(_.component.subTree,x,P,R);return}if(N&128){_.suspense.move(x,P,R);return}if(N&64){Q.move(_,x,P,q);return}if(Q===ke){r(D,x,P);for(let te=0;teH.enter(D),M);else{const{leave:te,delayLeave:ie,afterLeave:ge}=H,_e=()=>r(D,x,P),$e=()=>{te(D,()=>{_e(),ge&&ge()})};ie?ie(D,_e,$e):$e()}else r(D,x,P)},pe=(_,x,P,R=!1,M=!1)=>{const{type:D,props:Q,ref:H,children:z,dynamicChildren:N,shapeFlag:ae,patchFlag:te,dirs:ie}=_;if(H!=null&&Vs(H,null,P,_,!0),ae&256){x.ctx.deactivate(_);return}const ge=ae&1&&ie,_e=!ur(_);let $e;if(_e&&($e=Q&&Q.onVnodeBeforeUnmount)&&mt($e,x,_),ae&6)st(_.component,P,R);else{if(ae&128){_.suspense.unmount(P,R);return}ge&&Yt(_,null,x,"beforeUnmount"),ae&64?_.type.remove(_,x,P,M,q,R):N&&(D!==ke||te>0&&te&64)?Me(N,x,P,!1,!0):(D===ke&&te&384||!M&&ae&16)&&Me(z,x,P),R&&Ve(_)}(_e&&($e=Q&&Q.onVnodeUnmounted)||ge)&&it(()=>{$e&&mt($e,x,_),ge&&Yt(_,null,x,"unmounted")},P)},Ve=_=>{const{type:x,el:P,anchor:R,transition:M}=_;if(x===ke){De(P,R);return}if(x===bo){b(_);return}const D=()=>{o(P),M&&!M.persisted&&M.afterLeave&&M.afterLeave()};if(_.shapeFlag&1&&M&&!M.persisted){const{leave:Q,delayLeave:H}=M,z=()=>Q(P,D);H?H(_.el,D,z):z()}else D()},De=(_,x)=>{let P;for(;_!==x;)P=d(_),o(_),_=P;o(x)},st=(_,x,P)=>{const{bum:R,scope:M,update:D,subTree:Q,um:H}=_;R&&mo(R),M.stop(),D&&(D.active=!1,pe(Q,_,x,P)),H&&it(H,x),it(()=>{_.isUnmounted=!0},x),x&&x.pendingBranch&&!x.isUnmounted&&_.asyncDep&&!_.asyncResolved&&_.suspenseId===x.pendingId&&(x.deps--,x.deps===0&&x.resolve())},Me=(_,x,P,R=!1,M=!1,D=0)=>{for(let Q=D;Q<_.length;Q++)pe(_[Q],x,P,R,M)},j=_=>_.shapeFlag&6?j(_.component.subTree):_.shapeFlag&128?_.suspense.next():d(_.anchor||_.el),X=(_,x,P)=>{_==null?x._vnode&&pe(x._vnode,null,null,!0):h(x._vnode||null,_,x,null,null,null,P),Ic(),Fs(),x._vnode=_},q={p:h,um:pe,m:de,r:Ve,mt:ve,mc:T,pc:Y,pbc:O,n:j,o:e};let se,Se;return t&&([se,Se]=t(q)),{render:X,hydrate:se,createApp:tv(X,se)}}function Qn({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Bd(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function El(e,t,n=!1){const r=e.children,o=t.children;if(ce(r)&&ce(o))for(let s=0;s>1,e[n[a]]0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,i=n[s-1];s-- >0;)n[s]=i,i=t[i];return n}const fv=e=>e.__isTeleport,yo=e=>e&&(e.disabled||e.disabled===""),qc=e=>typeof SVGElement<"u"&&e instanceof SVGElement,da=(e,t)=>{const n=e&&e.to;return We(n)?t?t(n):null:n},dv={name:"Teleport",__isTeleport:!0,process(e,t,n,r,o,s,i,a,l,c){const{mc:u,pc:f,pbc:d,o:{insert:p,querySelector:g,createText:h,createComment:y}}=c,k=yo(t.props);let{shapeFlag:m,children:v,dynamicChildren:b}=t;if(e==null){const w=t.el=h(""),E=t.anchor=h("");p(w,n,r),p(E,n,r);const S=t.target=da(t.props,g),T=t.targetAnchor=h("");S&&(p(T,S),i=i||qc(S));const I=(O,V)=>{m&16&&u(v,O,V,o,s,i,a,l)};k?I(n,E):S&&I(S,T)}else{t.el=e.el;const w=t.anchor=e.anchor,E=t.target=e.target,S=t.targetAnchor=e.targetAnchor,T=yo(e.props),I=T?n:E,O=T?w:S;if(i=i||qc(E),b?(d(e.dynamicChildren,b,I,o,s,i,a),El(e,t,!0)):l||f(e,t,I,O,o,s,i,a,!1),k)T?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):gs(t,n,w,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const V=t.target=da(t.props,g);V&&gs(t,V,null,c,0)}else T&&gs(t,E,S,c,1)}Hd(t)},remove(e,t,n,r,{um:o,o:{remove:s}},i){const{shapeFlag:a,children:l,anchor:c,targetAnchor:u,target:f,props:d}=e;if(f&&s(u),i&&s(c),a&16){const p=i||!yo(d);for(let g=0;g0?Rt||Pr:null,Ud(),Lr>0&&Rt&&Rt.push(e),e}function ne(e,t,n,r,o,s){return zd(Ce(e,t,n,r,o,s,!0))}function re(e,t,n,r,o){return zd(K(e,t,n,r,o,!0))}function jr(e){return e?e.__v_isVNode===!0:!1}function Ht(e,t){return e.type===t.type&&e.key===t.key}const di="__vInternal",Vd=({key:e})=>e??null,Ss=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?We(e)||tt(e)||he(e)?{i:rt,r:e,k:t,f:!!n}:e:null);function Ce(e,t=null,n=null,r=0,o=null,s=e===ke?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Vd(t),ref:t&&Ss(t),scopeId:li,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:rt};return a?(Cl(l,n),s&128&&e.normalize(l)):n&&(l.shapeFlag|=We(n)?8:16),Lr>0&&!i&&Rt&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&Rt.push(l),l}const K=hv;function hv(e,t=null,n=null,r=0,o=null,s=!1){if((!e||e===pd)&&(e=ht),jr(e)){const a=on(e,t,!0);return n&&Cl(a,n),Lr>0&&!s&&Rt&&(a.shapeFlag&6?Rt[Rt.indexOf(e)]=a:Rt.push(a)),a.patchFlag|=-2,a}if(_v(e)&&(e=e.__vccOpts),t){t=Mr(t);let{class:a,style:l}=t;a&&!We(a)&&(t.class=W(a)),Fe(l)&&(rd(l)&&!ce(l)&&(l=et({},l)),t.style=Hn(l))}const i=We(e)?1:gd(e)?128:fv(e)?64:Fe(e)?4:he(e)?2:0;return Ce(e,t,n,r,o,i,s,!0)}function Mr(e){return e?rd(e)||di in e?et({},e):e:null}function on(e,t,n=!1){const{props:r,ref:o,patchFlag:s,children:i}=e,a=t?ue(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Vd(a),ref:t&&t.ref?n&&o?ce(o)?o.concat(Ss(t)):[o,Ss(t)]:Ss(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ke?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&on(e.ssContent),ssFallback:e.ssFallback&&on(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Je(e=" ",t=0){return K(Ir,null,e,t)}function me(e="",t=!1){return t?(L(),re(ht,null,e)):K(ht,null,e)}function Ot(e){return e==null||typeof e=="boolean"?K(ht):ce(e)?K(ke,null,e.slice()):typeof e=="object"?Rn(e):K(Ir,null,String(e))}function Rn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:on(e)}function Cl(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(ce(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),Cl(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(di in t)?t._ctx=rt:o===3&&rt&&(rt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else he(t)?(t={default:t,_ctx:rt},n=32):(t=String(t),r&64?(n=16,t=[Je(t)]):n=8);e.children=t,e.shapeFlag|=n}function ue(...e){const t={};for(let n=0;nQe||rt;let Sl,kr,Gc="__VUE_INSTANCE_SETTERS__";(kr=ta()[Gc])||(kr=ta()[Gc]=[]),kr.push(e=>Qe=e),Sl=e=>{kr.length>1?kr.forEach(t=>t(e)):kr[0](e)};const zn=e=>{Sl(e),e.scope.on()},Bn=()=>{Qe&&Qe.scope.off(),Sl(null)};function Wd(e){return e.vnode.shapeFlag&4}let Dr=!1;function yv(e,t=!1){Dr=t;const{props:n,children:r}=e.vnode,o=Wd(e);nv(e,n,o,t),sv(e,r);const s=o?bv(e,t):void 0;return Dr=!1,s}function bv(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=od(new Proxy(e.ctx,Km));const{setup:r}=n;if(r){const o=e.setupContext=r.length>1?Kd(e):null;zn(e),Gr();const s=Dn(r,e,0,[e.props,o]);if(Xr(),Bn(),ll(s)){if(s.then(Bn,Bn),t)return s.then(i=>{pa(e,i,t)}).catch(i=>{Qr(i,e,0)});e.asyncDep=s}else pa(e,s,t)}else qd(e,t)}function pa(e,t,n){he(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Fe(t)&&(e.setupState=id(t)),qd(e,n)}let Xc;function qd(e,t,n){const r=e.type;if(!e.render){if(!t&&Xc&&!r.render){const o=r.template||xl(e).template;if(o){const{isCustomElement:s,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:l}=r,c=et(et({isCustomElement:s,delimiters:a},i),l);r.render=Xc(o,c)}}e.render=r.render||en}{zn(e),Gr();try{Xm(e)}finally{Xr(),Bn()}}}function wv(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return yt(e,"get","$attrs"),t[n]}}))}function Kd(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return wv(e)},slots:e.slots,emit:e.emit,expose:t}}function pi(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(id(od(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in vo)return vo[n](e)},has(t,n){return n in t||n in vo}}))}function ha(e,t=!0){return he(e)?e.displayName||e.name:e.name||t&&e.__name}function _v(e){return he(e)&&"__vccOpts"in e}const A=(e,t)=>ym(e,t,Dr);function be(e,t,n){const r=arguments.length;return r===2?Fe(t)&&!ce(t)?jr(t)?K(e,null,[t]):K(e,t):K(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&jr(n)&&(n=[n]),K(e,t,n))}const xv=Symbol.for("v-scx"),kv=()=>Ee(xv),Gd="3.3.13",Ev="http://www.w3.org/2000/svg",or=typeof document<"u"?document:null,Qc=or&&or.createElement("template"),Cv={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?or.createElementNS(Ev,e):or.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>or.createTextNode(e),createComment:e=>or.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>or.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,s){const i=n?n.previousSibling:t.lastChild;if(o&&(o===s||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===s||!(o=o.nextSibling)););else{Qc.innerHTML=r?`${e}`:e;const a=Qc.content;if(r){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},En="transition",eo="animation",Lo=Symbol("_vtc"),Vn=(e,{slots:t})=>be(Bm,Sv(e),t);Vn.displayName="Transition";const Xd={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};Vn.props=et({},yd,Xd);const Yn=(e,t=[])=>{ce(e)?e.forEach(n=>n(...t)):e&&e(...t)},Yc=e=>e?ce(e)?e.some(t=>t.length>1):e.length>1:!1;function Sv(e){const t={};for(const $ in e)$ in Xd||(t[$]=e[$]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:s=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=s,appearActiveClass:c=i,appearToClass:u=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,g=Pv(o),h=g&&g[0],y=g&&g[1],{onBeforeEnter:k,onEnter:m,onEnterCancelled:v,onLeave:b,onLeaveCancelled:w,onBeforeAppear:E=k,onAppear:S=m,onAppearCancelled:T=v}=t,I=($,U,ve)=>{Jn($,U?u:a),Jn($,U?c:i),ve&&ve()},O=($,U)=>{$._isLeaving=!1,Jn($,f),Jn($,p),Jn($,d),U&&U()},V=$=>(U,ve)=>{const fe=$?S:m,F=()=>I(U,$,ve);Yn(fe,[U,F]),Jc(()=>{Jn(U,$?l:s),Cn(U,$?u:a),Yc(fe)||Zc(U,r,h,F)})};return et(t,{onBeforeEnter($){Yn(k,[$]),Cn($,s),Cn($,i)},onBeforeAppear($){Yn(E,[$]),Cn($,l),Cn($,c)},onEnter:V(!1),onAppear:V(!0),onLeave($,U){$._isLeaving=!0;const ve=()=>O($,U);Cn($,f),Ov(),Cn($,d),Jc(()=>{$._isLeaving&&(Jn($,f),Cn($,p),Yc(b)||Zc($,r,y,ve))}),Yn(b,[$,ve])},onEnterCancelled($){I($,!1),Yn(v,[$])},onAppearCancelled($){I($,!0),Yn(T,[$])},onLeaveCancelled($){O($),Yn(w,[$])}})}function Pv(e){if(e==null)return null;if(Fe(e))return[Li(e.enter),Li(e.leave)];{const t=Li(e);return[t,t]}}function Li(e){return Uf(e)}function Cn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Lo]||(e[Lo]=new Set)).add(t)}function Jn(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Lo];n&&(n.delete(t),n.size||(e[Lo]=void 0))}function Jc(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Tv=0;function Zc(e,t,n,r){const o=e._endId=++Tv,s=()=>{o===e._endId&&r()};if(n)return setTimeout(s,n);const{type:i,timeout:a,propCount:l}=Av(e,t);if(!i)return r();const c=i+"end";let u=0;const f=()=>{e.removeEventListener(c,d),s()},d=p=>{p.target===e&&++u>=l&&f()};setTimeout(()=>{u(n[g]||"").split(", "),o=r(`${En}Delay`),s=r(`${En}Duration`),i=eu(o,s),a=r(`${eo}Delay`),l=r(`${eo}Duration`),c=eu(a,l);let u=null,f=0,d=0;t===En?i>0&&(u=En,f=i,d=s.length):t===eo?c>0&&(u=eo,f=c,d=l.length):(f=Math.max(i,c),u=f>0?i>c?En:eo:null,d=u?u===En?s.length:l.length:0);const p=u===En&&/\b(transform|all)(,|$)/.test(r(`${En}Property`).toString());return{type:u,timeout:f,propCount:d,hasTransform:p}}function eu(e,t){for(;e.lengthtu(n)+tu(e[r])))}function tu(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Ov(){return document.body.offsetHeight}function Rv(e,t,n){const r=e[Lo];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Pl=Symbol("_vod"),$v={beforeMount(e,{value:t},{transition:n}){e[Pl]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):to(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),to(e,!0),r.enter(e)):r.leave(e,()=>{to(e,!1)}):to(e,t))},beforeUnmount(e,{value:t}){to(e,t)}};function to(e,t){e.style.display=t?e[Pl]:"none"}const Qd=Symbol("");function GT(e){const t=Mt();if(!t)return;const n=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(s=>ma(s,o))},r=()=>{const o=e(t.proxy);ga(t.subTree,o),n(o)};Lm(r),Le(()=>{const o=new MutationObserver(r);o.observe(t.subTree.el.parentNode,{childList:!0}),nt(()=>o.disconnect())})}function ga(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{ga(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)ma(e.el,t);else if(e.type===ke)e.children.forEach(n=>ga(n,t));else if(e.type===bo){let{el:n,anchor:r}=e;for(;n&&(ma(n,t),n!==r);)n=n.nextSibling}}function ma(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const o in t)n.setProperty(`--${o}`,t[o]),r+=`--${o}: ${t[o]};`;n[Qd]=r}}function Iv(e,t,n){const r=e.style,o=We(n);if(n&&!o){if(t&&!We(t))for(const s in t)n[s]==null&&va(r,s,"");for(const s in n)va(r,s,n[s])}else{const s=r.display;if(o){if(t!==n){const i=r[Qd];i&&(n+=";"+i),r.cssText=n}}else t&&e.removeAttribute("style");Pl in e&&(r.display=s)}}const nu=/\s*!important$/;function va(e,t,n){if(ce(n))n.forEach(r=>va(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Lv(e,t);nu.test(n)?e.setProperty(br(r),n.replace(nu,""),"important"):e[r]=n}}const ru=["Webkit","Moz","ms"],ji={};function Lv(e,t){const n=ji[t];if(n)return n;let r=rn(t);if(r!=="filter"&&r in e)return ji[t]=r;r=ni(r);for(let o=0;oMi||(Hv.then(()=>Mi=0),Mi=Date.now());function zv(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;$t(Vv(r,n.value),t,5,[r])};return n.value=e,n.attached=Uv(),n}function Vv(e,t){if(ce(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const au=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Wv=(e,t,n,r,o=!1,s,i,a,l)=>{t==="class"?Rv(e,r,o):t==="style"?Iv(e,n,r):qo(t)?il(t)||Bv(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):qv(e,t,r,o))?Mv(e,t,r,s,i,a,l):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),jv(e,t,r,o))};function qv(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&au(t)&&he(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return au(t)&&We(n)?!1:t in e}const Kv=["ctrl","shift","alt","meta"],Gv={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Kv.some(n=>e[`${n}Key`]&&!t.includes(n))},Di=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(o,...s)=>{for(let i=0;i{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=o=>{if(!("key"in o))return;const s=br(o.key);if(t.some(i=>i===s||Xv[i]===s))return e(o)})},Yd=et({patchProp:Wv},Cv);let _o,cu=!1;function Qv(){return _o||(_o=lv(Yd))}function Yv(){return _o=cu?_o:cv(Yd),cu=!0,_o}const Jv=(...e)=>{const t=Qv().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=Jd(r);if(!o)return;const s=t._component;!he(s)&&!s.render&&!s.template&&(s.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t},Zv=(...e)=>{const t=Yv().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=Jd(r);if(o)return n(o,!0,o instanceof SVGElement)},t};function Jd(e){return We(e)?document.querySelector(e):e}const ey=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,ty=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,ny=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function ry(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){oy(e);return}return t}function oy(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function jo(e,t={}){if(typeof e!="string")return e;const n=e.trim();if(e[0]==='"'&&e.endsWith('"')&&!e.includes("\\"))return n.slice(1,-1);if(n.length<=9){const r=n.toLowerCase();if(r==="true")return!0;if(r==="false")return!1;if(r==="undefined")return;if(r==="null")return null;if(r==="nan")return Number.NaN;if(r==="infinity")return Number.POSITIVE_INFINITY;if(r==="-infinity")return Number.NEGATIVE_INFINITY}if(!ny.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(ey.test(e)||ty.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,ry)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const sy=/#/g,iy=/&/g,ay=/\//g,ly=/=/g,Tl=/\+/g,cy=/%5e/gi,uy=/%60/gi,fy=/%7c/gi,dy=/%20/gi;function py(e){return encodeURI(""+e).replace(fy,"|")}function ya(e){return py(typeof e=="string"?e:JSON.stringify(e)).replace(Tl,"%2B").replace(dy,"+").replace(sy,"%23").replace(iy,"%26").replace(uy,"`").replace(cy,"^").replace(ay,"%2F")}function Ni(e){return ya(e).replace(ly,"%3D")}function Ws(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function hy(e){return Ws(e.replace(Tl," "))}function gy(e){return Ws(e.replace(Tl," "))}function Zd(e=""){const t={};e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const o=hy(r[1]);if(o==="__proto__"||o==="constructor")continue;const s=gy(r[2]||"");t[o]===void 0?t[o]=s:Array.isArray(t[o])?t[o].push(s):t[o]=[t[o],s]}return t}function my(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${Ni(e)}=${ya(n)}`).join("&"):`${Ni(e)}=${ya(t)}`:Ni(e)}function vy(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>my(t,e[t])).filter(Boolean).join("&")}const yy=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,by=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,wy=/^([/\\]\s*){2,}[^/\\]/,_y=/^[\s\0]*(blob|data|javascript|vbscript):$/i,xy=/\/$|\/\?|\/#/,ky=/^\.?\//;function wn(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?yy.test(e):by.test(e)||(t.acceptRelative?wy.test(e):!1)}function Ey(e){return!!e&&_y.test(e)}function ba(e="",t){return t?xy.test(e):e.endsWith("/")}function Qo(e="",t){if(!t)return(ba(e)?e.slice(0,-1):e)||"/";if(!ba(e,!0))return e||"/";let n=e,r="";const o=e.indexOf("#");o>=0&&(n=e.slice(0,o),r=e.slice(o));const[s,...i]=n.split("?");return((s.endsWith("/")?s.slice(0,-1):s)||"/")+(i.length>0?`?${i.join("?")}`:"")+r}function qs(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(ba(e,!0))return e||"/";let n=e,r="";const o=e.indexOf("#");if(o>=0&&(n=e.slice(0,o),r=e.slice(o),!n))return r;const[s,...i]=n.split("?");return s+"/"+(i.length>0?`?${i.join("?")}`:"")+r}function Cy(e=""){return e.startsWith("/")}function wa(e=""){return Cy(e)?e:"/"+e}function ep(e,t){if(np(t)||wn(e))return e;const n=Qo(t);return e.startsWith(n)?e:Yo(n,e)}function uu(e,t){if(np(t))return e;const n=Qo(t);if(!e.startsWith(n))return e;const r=e.slice(n.length);return r[0]==="/"?r:"/"+r}function tp(e,t){const n=Ty(e),r={...Zd(n.search),...t};return n.search=vy(r),Ay(n)}function np(e){return!e||e==="/"}function Sy(e){return e&&e!=="/"}function Yo(e,...t){let n=e||"";for(const r of t.filter(o=>Sy(o)))if(n){const o=r.replace(ky,"");n=qs(n)+o}else n=r;return n}function rp(...e){var i,a,l,c;const t=/\/(?!\/)/,n=e.filter(Boolean),r=[];let o=0;for(const u of n)if(!(!u||u==="/")){for(const[f,d]of u.split(t).entries())if(!(!d||d===".")){if(d===".."){if(r.length===1&&wn(r[0]))continue;r.pop(),o--;continue}if(f===1&&((i=r[r.length-1])!=null&&i.endsWith(":/"))){r[r.length-1]+="/"+d;continue}r.push(d),o++}}let s=r.join("/");return o>=0?(a=n[0])!=null&&a.startsWith("/")&&!s.startsWith("/")?s="/"+s:(l=n[0])!=null&&l.startsWith("./")&&!s.startsWith("./")&&(s="./"+s):s="../".repeat(-1*o)+s,(c=n[n.length-1])!=null&&c.endsWith("/")&&!s.endsWith("/")&&(s+="/"),s}function Py(e,t,n={}){return n.trailingSlash||(e=qs(e),t=qs(t)),n.leadingSlash||(e=wa(e),t=wa(t)),n.encoding||(e=Ws(e),t=Ws(t)),e===t}const op=Symbol.for("ufo:protocolRelative");function Ty(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,f,d=""]=n;return{protocol:f.toLowerCase(),pathname:d,href:f+d,auth:"",host:"",search:"",hash:""}}if(!wn(e,{acceptRelative:!0}))return fu(e);const[,r="",o,s=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,i="",a=""]=s.match(/([^#/?]*)(.*)?/)||[],{pathname:l,search:c,hash:u}=fu(a.replace(/\/(?=[A-Za-z]:)/,""));return{protocol:r.toLowerCase(),auth:o?o.slice(0,Math.max(0,o.length-1)):"",host:i,pathname:l,search:c,hash:u,[op]:!r}}function fu(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function Ay(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",o=e.auth?e.auth+"@":"",s=e.host||"";return(e.protocol||e[op]?(e.protocol||"")+"//":"")+o+s+t+n+r}class Oy extends Error{constructor(t,n){super(t,n),this.name="FetchError",n!=null&&n.cause&&!this.cause&&(this.cause=n.cause)}}function Ry(e){var l,c,u,f,d;const t=((l=e.error)==null?void 0:l.message)||((c=e.error)==null?void 0:c.toString())||"",n=((u=e.request)==null?void 0:u.method)||((f=e.options)==null?void 0:f.method)||"GET",r=((d=e.request)==null?void 0:d.url)||String(e.request)||"/",o=`[${n}] ${JSON.stringify(r)}`,s=e.response?`${e.response.status} ${e.response.statusText}`:"",i=`${o}: ${s}${t?` ${t}`:""}`,a=new Oy(i,e.error?{cause:e.error}:void 0);for(const p of["request","options","response"])Object.defineProperty(a,p,{get(){return e[p]}});for(const[p,g]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,p,{get(){return e.response&&e.response[g]}});return a}const $y=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function du(e="GET"){return $y.has(e.toUpperCase())}function Iy(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const Ly=new Set(["image/svg","application/xml","application/xhtml","application/html"]),jy=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function My(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return jy.test(t)?"json":Ly.has(t)||t.startsWith("text/")?"text":"blob"}function Dy(e,t,n=globalThis.Headers){const r={...t,...e};if(t!=null&&t.params&&(e!=null&&e.params)&&(r.params={...t==null?void 0:t.params,...e==null?void 0:e.params}),t!=null&&t.query&&(e!=null&&e.query)&&(r.query={...t==null?void 0:t.query,...e==null?void 0:e.query}),t!=null&&t.headers&&(e!=null&&e.headers)){r.headers=new n((t==null?void 0:t.headers)||{});for(const[o,s]of new n((e==null?void 0:e.headers)||{}))r.headers.set(o,s)}return r}const Ny=new Set([408,409,425,429,500,502,503,504]),By=new Set([101,204,205,304]);function sp(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function o(a){const l=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!l){let u;typeof a.options.retry=="number"?u=a.options.retry:u=du(a.options.method)?0:1;const f=a.response&&a.response.status||500;if(u>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(f):Ny.has(f))){const d=a.options.retryDelay||0;return d>0&&await new Promise(p=>setTimeout(p,d)),s(a.request,{...a.options,retry:u-1})}}const c=Ry(a);throw Error.captureStackTrace&&Error.captureStackTrace(c,s),c}const s=async function(l,c={}){var p;const u={request:l,options:Dy(c,e.defaults,n),response:void 0,error:void 0};u.options.method=(p=u.options.method)==null?void 0:p.toUpperCase(),u.options.onRequest&&await u.options.onRequest(u),typeof u.request=="string"&&(u.options.baseURL&&(u.request=ep(u.request,u.options.baseURL)),(u.options.query||u.options.params)&&(u.request=tp(u.request,{...u.options.params,...u.options.query}))),u.options.body&&du(u.options.method)&&(Iy(u.options.body)?(u.options.body=typeof u.options.body=="string"?u.options.body:JSON.stringify(u.options.body),u.options.headers=new n(u.options.headers||{}),u.options.headers.has("content-type")||u.options.headers.set("content-type","application/json"),u.options.headers.has("accept")||u.options.headers.set("accept","application/json")):("pipeTo"in u.options.body&&typeof u.options.body.pipeTo=="function"||typeof u.options.body.pipe=="function")&&("duplex"in u.options||(u.options.duplex="half")));let f;if(!u.options.signal&&u.options.timeout){const g=new r;f=setTimeout(()=>g.abort(),u.options.timeout),u.options.signal=g.signal}try{u.response=await t(u.request,u.options)}catch(g){return u.error=g,u.options.onRequestError&&await u.options.onRequestError(u),await o(u)}finally{f&&clearTimeout(f)}if(u.response.body&&!By.has(u.response.status)&&u.options.method!=="HEAD"){const g=(u.options.parseResponse?"json":u.options.responseType)||My(u.response.headers.get("content-type")||"");switch(g){case"json":{const h=await u.response.text(),y=u.options.parseResponse||jo;u.response._data=y(h);break}case"stream":{u.response._data=u.response.body;break}default:u.response._data=await u.response[g]()}}return u.options.onResponse&&await u.options.onResponse(u),!u.options.ignoreResponseError&&u.response.status>=400&&u.response.status<600?(u.options.onResponseError&&await u.options.onResponseError(u),await o(u)):u.response},i=async function(l,c){return(await s(l,c))._data};return i.raw=s,i.native=(...a)=>t(...a),i.create=(a={})=>sp({...e,defaults:{...e.defaults,...a}}),i}const Al=function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}(),Fy=Al.fetch||(()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!"))),Hy=Al.Headers,Uy=Al.AbortController,zy=sp({fetch:Fy,Headers:Hy,AbortController:Uy}),Vy=zy,Wy=()=>{var e;return((e=window==null?void 0:window.__NUXT__)==null?void 0:e.config)||{}},Ks=Wy().app,qy=()=>Ks.baseURL,Ky=()=>Ks.buildAssetsDir,Ol=(...e)=>rp(Rl(),Ky(),...e),Rl=(...e)=>{const t=Ks.cdnURL||Ks.baseURL;return e.length?rp(t,...e):t};globalThis.__buildAssetsURL=Ol,globalThis.__publicAssetsURL=Rl;globalThis.$fetch||(globalThis.$fetch=Vy.create({baseURL:qy()}));function _a(e,t={},n){for(const r in e){const o=e[r],s=n?`${n}:${r}`:r;typeof o=="object"&&o!==null?_a(o,t,s):typeof o=="function"&&(t[s]=o)}return t}const Gy={run:e=>e()},Xy=()=>Gy,ip=typeof console.createTask<"u"?console.createTask:Xy;function Qy(e,t){const n=t.shift(),r=ip(n);return e.reduce((o,s)=>o.then(()=>r.run(()=>s(...t))),Promise.resolve())}function Yy(e,t){const n=t.shift(),r=ip(n);return Promise.all(e.map(o=>r.run(()=>o(...t))))}function Bi(e,t){for(const n of[...e])n(t)}class Jy{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,r={}){if(!t||typeof n!="function")return()=>{};const o=t;let s;for(;this._deprecatedHooks[t];)s=this._deprecatedHooks[t],t=s.to;if(s&&!r.allowDeprecated){let i=s.message;i||(i=`${o} hook has been deprecated`+(s.to?`, please use ${s.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let r,o=(...s)=>(typeof r=="function"&&r(),r=void 0,o=void 0,n(...s));return r=this.hook(t,o),r}removeHook(t,n){if(this._hooks[t]){const r=this._hooks[t].indexOf(n);r!==-1&&this._hooks[t].splice(r,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const r=this._hooks[t]||[];delete this._hooks[t];for(const o of r)this.hook(t,o)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=_a(t),r=Object.keys(n).map(o=>this.hook(o,n[o]));return()=>{for(const o of r.splice(0,r.length))o()}}removeHooks(t){const n=_a(t);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(Qy,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(Yy,t,...n)}callHookWith(t,n,...r){const o=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&Bi(this._before,o);const s=t(n in this._hooks?[...this._hooks[n]]:[],r);return s instanceof Promise?s.finally(()=>{this._after&&o&&Bi(this._after,o)}):(this._after&&o&&Bi(this._after,o),s)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function ap(){return new Jy}function Zy(e={}){let t,n=!1;const r=i=>{if(t&&t!==i)throw new Error("Context conflict")};let o;if(e.asyncContext){const i=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;i?o=new i:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const s=()=>{if(o&&t===void 0){const i=o.getStore();if(i!==void 0)return i}return t};return{use:()=>{const i=s();if(i===void 0)throw new Error("Context is not available");return i},tryUse:()=>s(),set:(i,a)=>{a||r(i),t=i,n=!0},unset:()=>{t=void 0,n=!1},call:(i,a)=>{r(i),t=i;try{return o?o.run(i,a):a()}finally{n||(t=void 0)}},async callAsync(i,a){t=i;const l=()=>{t=i},c=()=>t===i?l:void 0;xa.add(c);try{const u=o?o.run(i,a):a();return n||(t=void 0),await u}finally{xa.delete(c)}}}}function e0(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=Zy({...e,...r})),t[n],t[n]}}}const Gs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},pu="__unctx__",t0=Gs[pu]||(Gs[pu]=e0()),n0=(e,t={})=>t0.get(e,t),hu="__unctx_async_handlers__",xa=Gs[hu]||(Gs[hu]=new Set);function Mo(e){const t=[];for(const o of xa){const s=o();s&&t.push(s)}const n=()=>{for(const o of t)o()};let r=e();return r&&typeof r=="object"&&"catch"in r&&(r=r.catch(o=>{throw n(),o})),[r,n]}const r0=!1,ka=!1,o0=!1,s0={componentName:"NuxtLink"},Cr={value:null,errorValue:null,deep:!0},i0=null,a0={},l0="#__nuxt",lp="nuxt-app",gu=36e5;function cp(e=lp){return n0(e,{asyncContext:!1})}const c0="__nuxt_plugin";function u0(e){let t=0;const n={_name:lp,_scope:qf(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.12.3"},get vue(){return n.vueApp.version}},payload:pn({data:pn({}),state:qt({}),once:new Set,_errors:pn({})}),static:{data:{}},runWithContext(o){return n._scope.active&&!Kr()?n._scope.run(()=>mu(n,o)):mu(n,o)},isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let o=!1;return()=>{if(!o&&(o=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:pn({}),_payloadRevivers:{},...e};if(window.__NUXT__)for(const o in window.__NUXT__)switch(o){case"data":case"state":case"_errors":Object.assign(n.payload[o],window.__NUXT__[o]);break;default:n.payload[o]=window.__NUXT__[o]}n.hooks=ap(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(o,s)=>{const i="$"+o;ms(n,i,s),ms(n.vueApp.config.globalProperties,i,s)},ms(n.vueApp,"$nuxt",n),ms(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener("nuxt.preloadError",s=>{n.callHook("app:chunkError",{error:s.payload})}),window.useNuxtApp=window.useNuxtApp||Pe;const o=n.hook("app:error",(...s)=>{console.error("[nuxt] error caught during app initialization",...s)});n.hook("app:mounted",o)}const r=n.payload.config;return n.provide("config",r),n}function f0(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function d0(e,t){if(typeof t=="function"){const{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n=="object")for(const r in n)e.provide(r,n[r])}}async function p0(e,t){const n=[],r=[],o=[],s=[];let i=0;async function a(l){var u;const c=((u=l.dependsOn)==null?void 0:u.filter(f=>t.some(d=>d._name===f)&&!n.includes(f)))??[];if(c.length>0)r.push([new Set(c),l]);else{const f=d0(e,l).then(async()=>{l._name&&(n.push(l._name),await Promise.all(r.map(async([d,p])=>{d.has(l._name)&&(d.delete(l._name),d.size===0&&(i++,await a(p)))})))});l.parallel?o.push(f.catch(d=>s.push(d))):await f}}for(const l of t)f0(e,l);for(const l of t)await a(l);if(await Promise.all(o),i)for(let l=0;l{}),e,{[c0]:!0,_name:t})}function mu(e,t,n){const r=()=>t();return cp(e._name).set(e),e.vueApp.runWithContext(r)}function h0(e){var n;let t;return $d()&&(t=(n=Mt())==null?void 0:n.appContext.app.$nuxt),t=t||cp(e).tryUse(),t||null}function Pe(e){const t=h0(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function wt(e){return Pe().$config}function ms(e,t,n){Object.defineProperty(e,t,{get:()=>n})}const vs=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function g0(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");const n={},o=(t||{}).decode||y0;let s=0;for(;s{t+=o};return{toString(){return t},getContext(){return n},dispatch(o){return e.replacer&&(o=e.replacer(o)),this[o===null?"null":typeof o](o)},object(o){if(o&&typeof o.toJSON=="function")return this.object(o.toJSON());const s=Object.prototype.toString.call(o);let i="";const a=s.length;a<10?i="unknown:["+s+"]":i=s.slice(8,a-1),i=i.toLowerCase();let l=null;if((l=n.get(o))===void 0)n.set(o,n.size);else return this.dispatch("[CIRCULAR:"+l+"]");if(typeof Buffer<"u"&&Buffer.isBuffer&&Buffer.isBuffer(o))return r("buffer:"),r(o.toString("utf8"));if(i!=="object"&&i!=="function"&&i!=="asyncfunction")this[i]?this[i](o):e.ignoreUnknown||this.unkown(o,i);else{let c=Object.keys(o);e.unorderedObjects&&(c=c.sort());let u=[];e.respectType!==!1&&!bu(o)&&(u=w0),e.excludeKeys&&(c=c.filter(d=>!e.excludeKeys(d)),u=u.filter(d=>!e.excludeKeys(d))),r("object:"+(c.length+u.length)+":");const f=d=>{this.dispatch(d),r(":"),e.excludeValues||this.dispatch(o[d]),r(",")};for(const d of c)f(d);for(const d of u)f(d)}},array(o,s){if(s=s===void 0?e.unorderedArrays!==!1:s,r("array:"+o.length+":"),!s||o.length<=1){for(const l of o)this.dispatch(l);return}const i=new Map,a=o.map(l=>{const c=up(e);c.dispatch(l);for(const[u,f]of c.getContext())i.set(u,f);return c.toString()});return n=i,a.sort(),this.array(a,!1)},date(o){return r("date:"+o.toJSON())},symbol(o){return r("symbol:"+o.toString())},unkown(o,s){if(r(s),!!o&&(r(":"),o&&typeof o.entries=="function"))return this.array(Array.from(o.entries()),!0)},error(o){return r("error:"+o.toString())},boolean(o){return r("bool:"+o)},string(o){r("string:"+o.length+":"),r(o)},function(o){r("fn:"),bu(o)?this.dispatch("[native]"):this.dispatch(o.toString()),e.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(o.name)),e.respectFunctionProperties&&this.object(o)},number(o){return r("number:"+o)},xml(o){return r("xml:"+o.toString())},null(){return r("Null")},undefined(){return r("Undefined")},regexp(o){return r("regex:"+o.toString())},uint8array(o){return r("uint8array:"),this.dispatch(Array.prototype.slice.call(o))},uint8clampedarray(o){return r("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(o))},int8array(o){return r("int8array:"),this.dispatch(Array.prototype.slice.call(o))},uint16array(o){return r("uint16array:"),this.dispatch(Array.prototype.slice.call(o))},int16array(o){return r("int16array:"),this.dispatch(Array.prototype.slice.call(o))},uint32array(o){return r("uint32array:"),this.dispatch(Array.prototype.slice.call(o))},int32array(o){return r("int32array:"),this.dispatch(Array.prototype.slice.call(o))},float32array(o){return r("float32array:"),this.dispatch(Array.prototype.slice.call(o))},float64array(o){return r("float64array:"),this.dispatch(Array.prototype.slice.call(o))},arraybuffer(o){return r("arraybuffer:"),this.dispatch(new Uint8Array(o))},url(o){return r("url:"+o.toString())},map(o){r("map:");const s=[...o];return this.array(s,e.unorderedSets!==!1)},set(o){r("set:");const s=[...o];return this.array(s,e.unorderedSets!==!1)},file(o){return r("file:"),this.dispatch([o.name,o.size,o.type,o.lastModfied])},blob(){if(e.ignoreUnknown)return r("[blob]");throw new Error(`Hashing Blob objects is currently not supported Use "options.replacer" or "options.ignoreUnknown" `)},domwindow(){return r("domwindow")},bigint(o){return r("bigint:"+o.toString())},process(){return r("process")},timer(){return r("timer")},pipe(){return r("pipe")},tcp(){return r("tcp")},udp(){return r("udp")},tty(){return r("tty")},statwatcher(){return r("statwatcher")},securecontext(){return r("securecontext")},connection(){return r("connection")},zlib(){return r("zlib")},context(){return r("context")},nodescript(){return r("nodescript")},httpparser(){return r("httpparser")},dataview(){return r("dataview")},signal(){return r("signal")},fsevent(){return r("fsevent")},tlswrap(){return r("tlswrap")}}}const fp="[native code] }",_0=fp.length;function bu(e){return typeof e!="function"?!1:Function.prototype.toString.call(e).slice(-_0)===fp}class Fn{constructor(t,n){t=this.words=t||[],this.sigBytes=n===void 0?t.length*4:n}toString(t){return(t||x0).stringify(this)}concat(t){if(this.clamp(),this.sigBytes%4)for(let n=0;n>>2]>>>24-n%4*8&255;this.words[this.sigBytes+n>>>2]|=r<<24-(this.sigBytes+n)%4*8}else for(let n=0;n>>2]=t.words[n>>>2];return this.sigBytes+=t.sigBytes,this}clamp(){this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4)}clone(){return new Fn([...this.words])}}const x0={stringify(e){const t=[];for(let n=0;n>>2]>>>24-n%4*8&255;t.push((r>>>4).toString(16),(r&15).toString(16))}return t.join("")}},k0={stringify(e){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=[];for(let r=0;r>>2]>>>24-r%4*8&255,s=e.words[r+1>>>2]>>>24-(r+1)%4*8&255,i=e.words[r+2>>>2]>>>24-(r+2)%4*8&255,a=o<<16|s<<8|i;for(let l=0;l<4&&r*8+l*6>>6*(3-l)&63))}return n.join("")}},E0={parse(e){const t=e.length,n=[];for(let r=0;r>>2]|=(e.charCodeAt(r)&255)<<24-r%4*8;return new Fn(n,t)}},C0={parse(e){return E0.parse(unescape(encodeURIComponent(e)))}};class S0{constructor(){this._data=new Fn,this._nDataBytes=0,this._minBufferSize=0,this.blockSize=512/32}reset(){this._data=new Fn,this._nDataBytes=0}_append(t){typeof t=="string"&&(t=C0.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes}_doProcessBlock(t,n){}_process(t){let n,r=this._data.sigBytes/(this.blockSize*4);t?r=Math.ceil(r):r=Math.max((r|0)-this._minBufferSize,0);const o=r*this.blockSize,s=Math.min(o*4,this._data.sigBytes);if(o){for(let i=0;i>>7)^(v<<14|v>>>18)^v>>>3,w=Zn[d-2],E=(w<<15|w>>>17)^(w<<13|w>>>19)^w>>>10;Zn[d]=b+Zn[d-7]+E+Zn[d-16]}const p=l&c^~l&u,g=o&s^o&i^s&i,h=(o<<30|o>>>2)^(o<<19|o>>>13)^(o<<10|o>>>22),y=(l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25),k=f+y+p+T0[d]+Zn[d],m=h+g;f=u,u=c,c=l,l=a+k|0,a=i,i=s,s=o,o=k+m|0}r[0]=r[0]+o|0,r[1]=r[1]+s|0,r[2]=r[2]+i|0,r[3]=r[3]+a|0,r[4]=r[4]+l|0,r[5]=r[5]+c|0,r[6]=r[6]+u|0,r[7]=r[7]+f|0}finalize(t){super.finalize(t);const n=this._nDataBytes*8,r=this._data.sigBytes*8;return this._data.words[r>>>5]|=128<<24-r%32,this._data.words[(r+64>>>9<<4)+14]=Math.floor(n/4294967296),this._data.words[(r+64>>>9<<4)+15]=n,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}}function O0(e){return new A0().finalize(e).toString(k0)}function Do(e,t={}){const n=typeof e=="string"?e:Ea(e,t);return O0(n).slice(0,10)}function dp(e,t,n={}){return e===t||Ea(e,n)===Ea(t,n)}function R0(e,t){return{ctx:{table:e},matchAll:n=>hp(n,e)}}function pp(e){const t={};for(const n in e)t[n]=n==="dynamic"?new Map(Object.entries(e[n]).map(([r,o])=>[r,pp(o)])):new Map(Object.entries(e[n]));return t}function $0(e){return R0(pp(e))}function hp(e,t,n){e.endsWith("/")&&(e=e.slice(0,-1)||"/");const r=[];for(const[s,i]of _u(t.wildcard))(e===s||e.startsWith(s+"/"))&&r.push(i);for(const[s,i]of _u(t.dynamic))if(e.startsWith(s+"/")){const a="/"+e.slice(s.length).split("/").splice(2).join("/");r.push(...hp(a,i))}const o=t.static.get(e);return o&&r.push(o),r.filter(Boolean)}function _u(e){return[...e.entries()].sort((t,n)=>t[0].length-n[0].length)}function Fi(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function Ca(e,t,n=".",r){if(!Fi(t))return Ca(e,{},n,r);const o=Object.assign({},t);for(const s in e){if(s==="__proto__"||s==="constructor")continue;const i=e[s];i!=null&&(r&&r(o,s,i,n)||(Array.isArray(i)&&Array.isArray(o[s])?o[s]=[...i,...o[s]]:Fi(i)&&Fi(o[s])?o[s]=Ca(i,o[s],(n?`${n}.`:"")+s.toString(),r):o[s]=i))}return o}function $l(e){return(...t)=>t.reduce((n,r)=>Ca(n,r,"",e),{})}const hi=$l(),I0=$l((e,t,n)=>{if(e[t]!==void 0&&typeof n=="function")return e[t]=n(e[t]),!0});function L0(e,t){try{return t in e}catch{return!1}}var j0=Object.defineProperty,M0=(e,t,n)=>t in e?j0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nr=(e,t,n)=>(M0(e,typeof t!="symbol"?t+"":t,n),n);class Sa extends Error{constructor(t,n={}){super(t,n),nr(this,"statusCode",500),nr(this,"fatal",!1),nr(this,"unhandled",!1),nr(this,"statusMessage"),nr(this,"data"),nr(this,"cause"),n.cause&&!this.cause&&(this.cause=n.cause)}toJSON(){const t={message:this.message,statusCode:Ta(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=gp(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}nr(Sa,"__h3_error__",!0);function Pa(e){if(typeof e=="string")return new Sa(e);if(D0(e))return e;const t=new Sa(e.message??e.statusMessage??"",{cause:e.cause||e});if(L0(e,"stack"))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=Ta(e.statusCode,t.statusCode):e.status&&(t.statusCode=Ta(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;gp(t.statusMessage)!==n&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function D0(e){var t;return((t=e==null?void 0:e.constructor)==null?void 0:t.__h3_error__)===!0}const N0=/[^\u0009\u0020-\u007E]/g;function gp(e=""){return e.replace(N0,"")}function Ta(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const mp=Symbol("layout-meta"),Yr=Symbol("route"),ut=()=>{var e;return(e=Pe())==null?void 0:e.$router},vn=()=>$d()?Ee(Yr,Pe()._route):Pe()._route;const B0=()=>{try{if(Pe()._processingMiddleware)return!0}catch{return!1}return!1},F0=(e,t)=>{e||(e="/");const n=typeof e=="string"?e:"path"in e?Aa(e):ut().resolve(e).href;if(t!=null&&t.open){const{target:l="_blank",windowFeatures:c={}}=t.open,u=Object.entries(c).filter(([f,d])=>d!==void 0).map(([f,d])=>`${f.toLowerCase()}=${d}`).join(", ");return open(n,l,u),Promise.resolve()}const r=wn(n,{acceptRelative:!0}),o=(t==null?void 0:t.external)||r;if(o){if(!(t!=null&&t.external))throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const{protocol:l}=new URL(n,window.location.href);if(l&&Ey(l))throw new Error(`Cannot navigate to a URL with '${l}' protocol.`)}const s=B0();if(!o&&s)return e;const i=ut(),a=Pe();return o?(a._scope.stop(),t!=null&&t.replace?location.replace(n):location.href=n,s?a.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t!=null&&t.replace?i.replace(e):i.push(e)};function Aa(e){return tp(e.path||"",e.query||{})+(e.hash||"")}const vp="__nuxt_error",gi=()=>xe(Pe().payload,"error"),Sr=e=>{const t=Jo(e);try{const n=Pe(),r=gi();n.hooks.callHook("app:error",t),r.value=r.value||t}catch{throw t}return t},yp=async(e={})=>{const t=Pe(),n=gi();t.callHook("app:error:cleared",e),e.redirect&&await ut().replace(e.redirect),n.value=i0},H0=e=>!!e&&typeof e=="object"&&vp in e,Jo=e=>{const t=Pa(e);return Object.defineProperty(t,vp,{value:!0,configurable:!1,writable:!1}),t},U0=-1,z0=-2,V0=-3,W0=-4,q0=-5,K0=-6;function G0(e,t){return X0(JSON.parse(e),t)}function X0(e,t){if(typeof e=="number")return o(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function o(s,i=!1){if(s===U0)return;if(s===V0)return NaN;if(s===W0)return 1/0;if(s===q0)return-1/0;if(s===K0)return-0;if(i)throw new Error("Invalid input");if(s in r)return r[s];const a=n[s];if(!a||typeof a!="object")r[s]=a;else if(Array.isArray(a))if(typeof a[0]=="string"){const l=a[0],c=t==null?void 0:t[l];if(c)return r[s]=c(o(a[1]));switch(l){case"Date":r[s]=new Date(a[1]);break;case"Set":const u=new Set;r[s]=u;for(let p=1;p>>9)+65536).toString(16).substring(1,8).toLowerCase()}function xu(e){return e._h||Il(e._d?e._d:`${e.tag}:${e.textContent||e.innerHTML||""}:${Object.entries(e.props).map(([t,n])=>`${t}:${String(n)}`).join(",")}`)}function wp(e,t){const{props:n,tag:r}=e;if(Z0.includes(r))return r;if(r==="link"&&n.rel==="canonical")return"canonical";if(n.charset)return"charset";const o=["id"];r==="meta"&&o.push("name","property","http-equiv");for(const s of o)if(typeof n[s]<"u"){const i=String(n[s]);return`${r}:${s}:${i}`}return!1}function ku(e,t){return e==null?t||null:typeof e=="function"?e(t):e}function _p(e,t){const n=[],r=t.resolveKeyData||(s=>s.key),o=t.resolveValueData||(s=>s.value);for(const[s,i]of Object.entries(e))n.push(...(Array.isArray(i)?i:[i]).map(a=>{const l={key:s,value:a},c=o(l);return typeof c=="object"?_p(c,t):Array.isArray(c)?c:{[typeof t.key=="function"?t.key(l):t.key]:r(l),[typeof t.value=="function"?t.value(l):t.value]:c}}).flat());return n}function xp(e,t){return Object.entries(e).map(([n,r])=>{if(typeof r=="object"&&(r=xp(r,t)),t.resolve){const o=t.resolve({key:n,value:r});if(typeof o<"u")return o}return typeof r=="number"&&(r=r.toString()),typeof r=="string"&&t.wrapValue&&(r=r.replace(new RegExp(t.wrapValue,"g"),`\\${t.wrapValue}`),r=`${t.wrapValue}${r}${t.wrapValue}`),`${n}${t.keyValueSeparator||""}${r}`}).join(t.entrySeparator||"")}const dt=e=>({keyValue:e,metaKey:"property"}),Hi=e=>({keyValue:e}),Ll={appleItunesApp:{unpack:{entrySeparator:", ",resolve({key:e,value:t}){return`${hn(e)}=${t}`}}},articleExpirationTime:dt("article:expiration_time"),articleModifiedTime:dt("article:modified_time"),articlePublishedTime:dt("article:published_time"),bookReleaseDate:dt("book:release_date"),charset:{metaKey:"charset"},contentSecurityPolicy:{unpack:{entrySeparator:"; ",resolve({key:e,value:t}){return`${hn(e)} ${t}`}},metaKey:"http-equiv"},contentType:{metaKey:"http-equiv"},defaultStyle:{metaKey:"http-equiv"},fbAppId:dt("fb:app_id"),msapplicationConfig:Hi("msapplication-Config"),msapplicationTileColor:Hi("msapplication-TileColor"),msapplicationTileImage:Hi("msapplication-TileImage"),ogAudioSecureUrl:dt("og:audio:secure_url"),ogAudioUrl:dt("og:audio"),ogImageSecureUrl:dt("og:image:secure_url"),ogImageUrl:dt("og:image"),ogSiteName:dt("og:site_name"),ogVideoSecureUrl:dt("og:video:secure_url"),ogVideoUrl:dt("og:video"),profileFirstName:dt("profile:first_name"),profileLastName:dt("profile:last_name"),profileUsername:dt("profile:username"),refresh:{metaKey:"http-equiv",unpack:{entrySeparator:";",resolve({key:e,value:t}){if(e==="seconds")return`${t}`}}},robots:{unpack:{entrySeparator:", ",resolve({key:e,value:t}){return typeof t=="boolean"?`${hn(e)}`:`${hn(e)}:${t}`}}},xUaCompatible:{metaKey:"http-equiv"}},kp=["og","book","article","profile"];function Ep(e){var n;const t=hn(e).split(":")[0];return kp.includes(t)?"property":((n=Ll[e])==null?void 0:n.metaKey)||"name"}function tb(e){var t;return((t=Ll[e])==null?void 0:t.keyValue)||hn(e)}function hn(e){const t=e.replace(/([A-Z])/g,"-$1").toLowerCase(),n=t.split("-")[0];return kp.includes(n)||n==="twitter"?e.replace(/([A-Z])/g,":$1").toLowerCase():t}function Oa(e){if(Array.isArray(e))return e.map(n=>Oa(n));if(typeof e!="object"||Array.isArray(e))return e;const t={};for(const[n,r]of Object.entries(e))t[hn(n)]=Oa(r);return t}function nb(e,t){const n=Ll[t];return t==="refresh"?`${e.seconds};url=${e.url}`:xp(Oa(e),{keyValueSeparator:"=",entrySeparator:", ",resolve({value:r,key:o}){if(r===null)return"";if(typeof r=="boolean")return`${o}`},...n==null?void 0:n.unpack})}const Cp=["og:image","og:video","og:audio","twitter:image"];function Sp(e){const t={};return Object.entries(e).forEach(([n,r])=>{String(r)!=="false"&&n&&(t[n]=r)}),t}function Eu(e,t){const n=Sp(t),r=hn(e),o=Ep(r);if(Cp.includes(r)){const s={};return Object.entries(n).forEach(([i,a])=>{s[`${e}${i==="url"?"":`${i.charAt(0).toUpperCase()}${i.slice(1)}`}`]=a}),jl(s).sort((i,a)=>{var l,c;return(((l=i[o])==null?void 0:l.length)||0)-(((c=a[o])==null?void 0:c.length)||0)})}return[{[o]:r,...n}]}function jl(e){const t=[],n={};Object.entries(e).forEach(([o,s])=>{if(!Array.isArray(s)){if(typeof s=="object"&&s){if(Cp.includes(hn(o))){t.push(...Eu(o,s));return}n[o]=Sp(s)}else n[o]=s;return}s.forEach(i=>{t.push(...typeof i=="string"?jl({[o]:i}):Eu(o,i))})});const r=_p(n,{key({key:o}){return Ep(o)},value({key:o}){return o==="charset"?"charset":"content"},resolveKeyData({key:o}){return tb(o)},resolveValueData({value:o,key:s}){return o===null?"_null":typeof o=="object"?nb(o,s):typeof o=="number"?o.toString():o}});return[...t,...r].map(o=>(o.content==="_null"&&(o.content=null),o))}async function rb(e,t,n){const r={tag:e,props:await Pp(typeof t=="object"&&typeof t!="function"&&!(t instanceof Promise)?{...t}:{[["script","noscript","style"].includes(e)?"innerHTML":"textContent"]:t},["templateParams","titleTemplate"].includes(e))};return bp.forEach(o=>{const s=typeof r.props[o]<"u"?r.props[o]:n[o];typeof s<"u"&&((!["innerHTML","textContent","children"].includes(o)||Y0.includes(r.tag))&&(r[o==="children"?"innerHTML":o]=s),delete r.props[o])}),r.props.body&&(r.tagPosition="bodyClose",delete r.props.body),r.tag==="script"&&typeof r.innerHTML=="object"&&(r.innerHTML=JSON.stringify(r.innerHTML),r.props.type=r.props.type||"application/json"),Array.isArray(r.props.content)?r.props.content.map(o=>({...r,props:{...r.props,content:o}})):r}function ob(e,t){var r;const n=e==="class"?" ":";";return typeof t=="object"&&!Array.isArray(t)&&(t=Object.entries(t).filter(([,o])=>o).map(([o,s])=>e==="style"?`${o}:${s}`:o)),(r=String(Array.isArray(t)?t.join(n):t))==null?void 0:r.split(n).filter(o=>o.trim()).filter(Boolean).join(n)}async function Pp(e,t){for(const n of Object.keys(e)){if(["class","style"].includes(n)){e[n]=ob(n,e[n]);continue}if(e[n]instanceof Promise&&(e[n]=await e[n]),!t&&!bp.includes(n)){const r=String(e[n]),o=n.startsWith("data-");r==="true"||r===""?e[n]=o?"true":!0:e[n]||(o&&r==="false"?e[n]="false":delete e[n])}}return e}const sb=10;async function ib(e){const t=[];return Object.entries(e.resolvedInput).filter(([n,r])=>typeof r<"u"&&J0.includes(n)).forEach(([n,r])=>{const o=Q0(r);t.push(...o.map(s=>rb(n,s,e)).flat())}),(await Promise.all(t)).flat().filter(Boolean).map((n,r)=>(n._e=e._i,e.mode&&(n._m=e.mode),n._p=(e._i<l&&l[c]||void 0,t):a=t[i],typeof a<"u"?(a||"").replace(/"/g,'\\"'):!1}let o=e;try{o=decodeURI(e)}catch{}return(o.match(/%(\w+\.+\w+)|%(\w+)/g)||[]).sort().reverse().forEach(i=>{const a=r(i.slice(1));typeof a=="string"&&(e=e.replace(new RegExp(`\\${i}(\\W|$)`,"g"),(l,c)=>`${a}${c}`).trim())}),e.includes(Sn)&&(e.endsWith(Sn)&&(e=e.slice(0,-Sn.length).trim()),e.startsWith(Sn)&&(e=e.slice(Sn.length).trim()),e=e.replace(new RegExp(`\\${Sn}\\s*\\${Sn}`,"g"),Sn),e=Ts(e,{separator:n},n)),e}async function Tp(e,t={}){var u;const n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;const r={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",r),!r.shouldRender)return;const o=(await e.resolveTags()).map(f=>({tag:f,id:Ps.includes(f.tag)?xu(f):f.tag,shouldRender:!0}));let s=e._dom;if(!s){s={elMap:{htmlAttrs:n.documentElement,bodyAttrs:n.body}};for(const f of["body","head"]){const d=(u=n[f])==null?void 0:u.children,p=[];for(const g of[...d].filter(h=>Ps.includes(h.tagName.toLowerCase()))){const h={tag:g.tagName.toLowerCase(),props:await Pp(g.getAttributeNames().reduce((m,v)=>({...m,[v]:g.getAttribute(v)}),{})),innerHTML:g.innerHTML};let y=1,k=wp(h);for(;k&&p.find(m=>m._d===k);)k=`${k}:${y++}`;h._d=k||void 0,p.push(h),s.elMap[g.getAttribute("data-hid")||xu(h)]=g}}}s.pendingSideEffects={...s.sideEffects||{}},s.sideEffects={};function i(f,d,p){const g=`${f}:${d}`;s.sideEffects[g]=p,delete s.pendingSideEffects[g]}function a({id:f,$el:d,tag:p}){const g=p.tag.endsWith("Attrs");s.elMap[f]=d,g||(["textContent","innerHTML"].forEach(h=>{p[h]&&p[h]!==d[h]&&(d[h]=p[h])}),i(f,"el",()=>{var h;(h=s.elMap[f])==null||h.remove(),delete s.elMap[f]}));for(const[h,y]of Object.entries(p._eventHandlers||{}))d.getAttribute(`data-${h}`)!==""&&((p.tag==="bodyAttrs"?n.defaultView:d).addEventListener(h.replace("on",""),y.bind(d)),d.setAttribute(`data-${h}`,""));Object.entries(p.props).forEach(([h,y])=>{const k=`attr:${h}`;if(h==="class")for(const m of(y||"").split(" ").filter(Boolean))g&&i(f,`${k}:${m}`,()=>d.classList.remove(m)),!d.classList.contains(m)&&d.classList.add(m);else if(h==="style")for(const m of(y||"").split(";").filter(Boolean)){const[v,...b]=m.split(":").map(w=>w.trim());i(f,`${k}:${v}`,()=>{d.style.removeProperty(v)}),d.style.setProperty(v,b.join(":"))}else d.getAttribute(h)!==y&&d.setAttribute(h,y===!0?"":String(y)),g&&i(f,k,()=>d.removeAttribute(h))})}const l=[],c={bodyClose:void 0,bodyOpen:void 0,head:void 0};for(const f of o){const{tag:d,shouldRender:p,id:g}=f;if(p){if(d.tag==="title"){n.title=d.textContent;continue}f.$el=f.$el||s.elMap[g],f.$el?a(f):Ps.includes(d.tag)&&l.push(f)}}for(const f of l){const d=f.tag.tagPosition||"head";f.$el=n.createElement(f.tag.tag),a(f),c[d]=c[d]||n.createDocumentFragment(),c[d].appendChild(f.$el)}for(const f of o)await e.hooks.callHook("dom:renderTag",f,n,i);c.head&&n.head.appendChild(c.head),c.bodyOpen&&n.body.insertBefore(c.bodyOpen,n.body.firstChild),c.bodyClose&&n.body.appendChild(c.bodyClose),Object.values(s.pendingSideEffects).forEach(f=>f()),e._dom=s,e.dirty=!1,await e.hooks.callHook("dom:rendered",{renders:o})}async function lb(e,t={}){const n=t.delayFn||(r=>setTimeout(r,10));return e._domUpdatePromise=e._domUpdatePromise||new Promise(r=>n(async()=>{await Tp(e,t),delete e._domUpdatePromise,r()}))}function cb(e){return t=>{var r,o;const n=((o=(r=t.resolvedOptions.document)==null?void 0:r.head.querySelector('script[id="unhead:payload"]'))==null?void 0:o.innerHTML)||!1;return n&&t.push(JSON.parse(n)),{mode:"client",hooks:{"entries:updated":function(s){lb(s,e)}}}}}const ub=["templateParams","htmlAttrs","bodyAttrs"],fb={hooks:{"tag:normalise":function({tag:e}){["hid","vmid","key"].forEach(r=>{e.props[r]&&(e.key=e.props[r],delete e.props[r])});const n=wp(e)||(e.key?`${e.tag}:${e.key}`:!1);n&&(e._d=n)},"tags:resolve":function(e){const t={};e.tags.forEach(r=>{const o=(r.key?`${r.tag}:${r.key}`:r._d)||r._p,s=t[o];if(s){let a=r==null?void 0:r.tagDuplicateStrategy;if(!a&&ub.includes(r.tag)&&(a="merge"),a==="merge"){const l=s.props;["class","style"].forEach(c=>{l[c]&&(r.props[c]?(c==="style"&&!l[c].endsWith(";")&&(l[c]+=";"),r.props[c]=`${l[c]} ${r.props[c]}`):r.props[c]=l[c])}),t[o].props={...l,...r.props};return}else if(r._e===s._e){s._duped=s._duped||[],r._d=`${s._d}:${s._duped.length+1}`,s._duped.push(r);return}else if(Xs(r)>Xs(s))return}const i=Object.keys(r.props).length+(r.innerHTML?1:0)+(r.textContent?1:0);if(Ps.includes(r.tag)&&i===0){delete t[o];return}t[o]=r});const n=[];Object.values(t).forEach(r=>{const o=r._duped;delete r._duped,n.push(r),o&&n.push(...o)}),e.tags=n,e.tags=e.tags.filter(r=>!(r.tag==="meta"&&(r.props.name||r.props.property)&&!r.props.content))}}},db={mode:"server",hooks:{"tags:resolve":function(e){const t={};e.tags.filter(n=>["titleTemplate","templateParams","title"].includes(n.tag)&&n._m==="server").forEach(n=>{t[n.tag]=n.tag.startsWith("title")?n.textContent:n.props}),Object.keys(t).length&&e.tags.push({tag:"script",innerHTML:JSON.stringify(t),props:{id:"unhead:payload",type:"application/json"}})}}},pb=["script","link","bodyAttrs"],hb=e=>({hooks:{"tags:resolve":function(t){for(const n of t.tags.filter(r=>pb.includes(r.tag)))Object.entries(n.props).forEach(([r,o])=>{r.startsWith("on")&&typeof o=="function"&&(e.ssr&&Pu.includes(r)?n.props[r]=`this.dataset.${r}fired = true`:delete n.props[r],n._eventHandlers=n._eventHandlers||{},n._eventHandlers[r]=o)}),e.ssr&&n._eventHandlers&&(n.props.src||n.props.href)&&(n.key=n.key||Il(n.props.src||n.props.href))},"dom:renderTag":function({$el:t,tag:n}){var r,o;for(const s of Object.keys((t==null?void 0:t.dataset)||{}).filter(i=>Pu.some(a=>`${a}fired`===i))){const i=s.replace("fired","");(o=(r=n._eventHandlers)==null?void 0:r[i])==null||o.call(t,new Event(i.replace("on","")))}}}}),gb=["link","style","script","noscript"],mb={hooks:{"tag:normalise":({tag:e})=>{e.key&&gb.includes(e.tag)&&(e.props["data-hid"]=e._h=Il(e.key))}}},vb={hooks:{"tags:resolve":e=>{const t=n=>{var r;return(r=e.tags.find(o=>o._d===n))==null?void 0:r._p};for(const{prefix:n,offset:r}of ab)for(const o of e.tags.filter(s=>typeof s.tagPriority=="string"&&s.tagPriority.startsWith(n))){const s=t(o.tagPriority.replace(n,""));typeof s<"u"&&(o._p=s+r)}e.tags.sort((n,r)=>n._p-r._p).sort((n,r)=>Xs(n)-Xs(r))}}},yb={meta:"content",link:"href",htmlAttrs:"lang"},bb=e=>({hooks:{"tags:resolve":t=>{var a;const{tags:n}=t,r=(a=n.find(l=>l.tag==="title"))==null?void 0:a.textContent,o=n.findIndex(l=>l.tag==="templateParams"),s=o!==-1?n[o].props:{},i=s.separator||"|";delete s.separator,s.pageTitle=Ts(s.pageTitle||r||"",s,i);for(const l of n.filter(c=>c.processTemplateParams!==!1)){const c=yb[l.tag];c&&typeof l.props[c]=="string"?l.props[c]=Ts(l.props[c],s,i):(l.processTemplateParams===!0||["titleTemplate","title"].includes(l.tag))&&["innerHTML","textContent"].forEach(u=>{typeof l[u]=="string"&&(l[u]=Ts(l[u],s,i))})}e._templateParams=s,e._separator=i,t.tags=n.filter(l=>l.tag!=="templateParams")}}}),wb={hooks:{"tags:resolve":e=>{const{tags:t}=e;let n=t.findIndex(o=>o.tag==="titleTemplate");const r=t.findIndex(o=>o.tag==="title");if(r!==-1&&n!==-1){const o=ku(t[n].textContent,t[r].textContent);o!==null?t[r].textContent=o||t[r].textContent:delete t[r]}else if(n!==-1){const o=ku(t[n].textContent);o!==null&&(t[n].textContent=o,t[n].tag="title",n=-1)}n!==-1&&delete t[n],e.tags=t.filter(Boolean)}}},_b={hooks:{"tags:afterResolve":function(e){for(const t of e.tags)typeof t.innerHTML=="string"&&(t.innerHTML&&["application/ld+json","application/json"].includes(t.props.type)?t.innerHTML=t.innerHTML.replace(/{a.dirty=!0,t.callHook("entries:updated",a)};let o=0,s=[];const i=[],a={plugins:i,dirty:!1,resolvedOptions:e,hooks:t,headEntries(){return s},use(l){const c=typeof l=="function"?l(a):l;(!c.key||!i.some(u=>u.key===c.key))&&(i.push(c),Tu(c.mode,n)&&t.addHooks(c.hooks||{}))},push(l,c){c==null||delete c.head;const u={_i:o++,input:l,...c};return Tu(u.mode,n)&&(s.push(u),r()),{dispose(){s=s.filter(f=>f._i!==u._i),t.callHook("entries:updated",a),r()},patch(f){s=s.map(d=>(d._i===u._i&&(d.input=u.input=f),d)),r()}}},async resolveTags(){const l={tags:[],entries:[...s]};await t.callHook("entries:resolve",l);for(const c of l.entries){const u=c.resolvedInput||c.input;if(c.resolvedInput=await(c.transform?c.transform(u):u),c.resolvedInput)for(const f of await ib(c)){const d={tag:f,entry:c,resolvedOptions:a.resolvedOptions};await t.callHook("tag:normalise",d),l.tags.push(d.tag)}}return await t.callHook("tags:beforeResolve",l),await t.callHook("tags:resolve",l),await t.callHook("tags:afterResolve",l),l.tags},ssr:n};return[fb,db,hb,mb,vb,bb,wb,_b,...(e==null?void 0:e.plugins)||[]].forEach(l=>a.use(l)),a.hooks.callHook("init",a),a}function Eb(){return Ap}const Cb=Gd.startsWith("3");function Sb(e){return typeof e=="function"?e():C(e)}function Qs(e,t=""){if(e instanceof Promise)return e;const n=Sb(e);return!e||!n?n:Array.isArray(n)?n.map(r=>Qs(r,t)):typeof n=="object"?Object.fromEntries(Object.entries(n).map(([r,o])=>r==="titleTemplate"||r.startsWith("on")?[r,C(o)]:[r,Qs(o,r)])):n}const Pb={hooks:{"entries:resolve":function(e){for(const t of e.entries)t.resolvedInput=Qs(t.input)}}},Op="usehead";function Tb(e){return{install(n){Cb&&(n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(Op,e))}}.install}function Ab(e={}){e.domDelayFn=e.domDelayFn||(n=>Kn(()=>setTimeout(()=>n(),0)));const t=xb(e);return t.use(Pb),t.install=Tb(t),t}const Ra=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},$a="__unhead_injection_handler__";function Ob(e){Ra[$a]=e}function Rb(){if($a in Ra)return Ra[$a]();const e=Ee(Op);return e||Eb()}function Zo(e,t={}){const n=t.head||Rb();if(n)return n.ssr?n.push(e,t):$b(n,e,t)}function $b(e,t,n={}){const r=B(!1),o=B({});Ye(()=>{o.value=r.value?{}:Qs(t)});const s=e.push(o.value,n);return Re(o,a=>{s.patch(a)}),Mt()&&(Xo(()=>{s.dispose()}),xd(()=>{r.value=!0}),_d(()=>{r.value=!1})),s}function Rp(e,t){const{title:n,titleTemplate:r,...o}=e;return Zo({title:n,titleTemplate:r,_flatMeta:o},{...t,transform(s){const i=jl({...s._flatMeta});return delete s._flatMeta,{...s,meta:i}}})}let As,Os;function Ib(){return As=$fetch(Ol(`builds/meta/${wt().app.buildId}.json`),{responseType:"json"}),As.then(e=>{Os=$0(e.matcher)}).catch(e=>{console.error("[nuxt] Error fetching app manifest.",e)}),As}function mi(){return As||Ib()}async function Ml(e){if(await mi(),!Os)return console.error("[nuxt] Error creating app manifest matcher.",Os),{};try{return hi({},...Os.matchAll(e).reverse())}catch(t){return console.error("[nuxt] Error matching route rules.",t),{}}}async function Au(e,t={}){const n=await jb(e,t),r=Pe(),o=r._payloadCache=r._payloadCache||{};return n in o||(o[n]=Ip(e).then(s=>s?$p(n).then(i=>i||(delete o[n],null)):(o[n]=null,null))),o[n]}const Lb="_payload.json";async function jb(e,t={}){const n=new URL(e,"http://localhost");if(n.host!=="localhost"||wn(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const r=wt(),o=t.hash||(t.fresh?Date.now():r.app.buildId),s=r.app.cdnURL,i=s&&await Ip(e)?s:r.app.baseURL;return Yo(i,n.pathname,Lb+(o?`?${o}`:""))}async function $p(e){const t=fetch(e).then(n=>n.text().then(Lp));try{return await t}catch(n){console.warn("[nuxt] Cannot load payload ",e,n)}return null}async function Ip(e=vn().path){if(e=Qo(e),(await mi()).prerendered.includes(e))return!0;const n=await Ml(e);return!!n.prerender&&!n.redirect}let ys=null;async function Mb(){if(ys)return ys;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await Lp(e.textContent||""),n=e.dataset.src?await $p(e.dataset.src):void 0;return ys={...t,...n,...window.__NUXT__},ys}async function Lp(e){return await G0(e,Pe()._payloadRevivers)}function Db(e,t){Pe()._payloadRevivers[e]=t}const Ia={NuxtError:e=>Jo(e),EmptyShallowRef:e=>mn(e==="_"?void 0:e==="0n"?BigInt(0):jo(e)),EmptyRef:e=>B(e==="_"?void 0:e==="0n"?BigInt(0):jo(e)),ShallowRef:e=>mn(e),ShallowReactive:e=>pn(e),Ref:e=>B(e),Reactive:e=>qt(e)};Ia.Island=({key:e,params:t,result:n})=>{const r=Pe();return r.isHydrating||(r.payload.data[e]=r.payload.data[e]||$fetch(`/__nuxt_island/${e}.json`,{responseType:"json",...t?{params:t}:{}}).then(o=>(r.payload.data[e]=o,o))),{html:"",state:{},head:{link:[],style:[]},...n}};const Nb=Ke({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const r in Ia)Db(r,Ia[r]);Object.assign(e.payload,([t,n]=Mo(()=>e.runWithContext(Mb)),t=await t,n(),t)),window.__NUXT__=e.payload}}),Bb=[],Fb=Ke({name:"nuxt:head",enforce:"pre",setup(e){const t=Ab({plugins:Bb});Ob(()=>Pe().vueApp._context.provides.usehead),e.vueApp.use(t);{let n=!0;const r=async()=>{n=!1,await Tp(t)};t.hooks.hook("dom:beforeRender",o=>{o.shouldRender=!n}),e.hooks.hook("page:start",()=>{n=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||r()}),e.hooks.hook("app:error",r),e.hooks.hook("app:suspense:resolve",r)}}});/*! * vue-router v4.4.0 * (c) 2024 Eduardo San Martin Morote * @license MIT - */const Er=typeof document<"u";function Hb(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Ie=Object.assign;function Ui(e,t){const n={};for(const r in t){const o=t[r];n[r]=zt(o)?o.map(e):e(o)}return n}const xo=()=>{},zt=Array.isArray,jp=/#/g,Ub=/&/g,zb=/\//g,Vb=/=/g,Wb=/\?/g,Mp=/\+/g,qb=/%5B/g,Kb=/%5D/g,Dp=/%5E/g,Gb=/%60/g,Np=/%7B/g,Xb=/%7C/g,Bp=/%7D/g,Qb=/%20/g;function Dl(e){return encodeURI(""+e).replace(Xb,"|").replace(qb,"[").replace(Kb,"]")}function Yb(e){return Dl(e).replace(Np,"{").replace(Bp,"}").replace(Dp,"^")}function La(e){return Dl(e).replace(Mp,"%2B").replace(Qb,"+").replace(jp,"%23").replace(Ub,"%26").replace(Gb,"`").replace(Np,"{").replace(Bp,"}").replace(Dp,"^")}function Jb(e){return La(e).replace(Vb,"%3D")}function Zb(e){return Dl(e).replace(jp,"%23").replace(Wb,"%3F")}function ew(e){return e==null?"":Zb(e).replace(zb,"%2F")}function No(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const tw=/\/$/,nw=e=>e.replace(tw,"");function zi(e,t,n="/"){let r,o={},s="",i="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(r=t.slice(0,l),s=t.slice(l+1,a>-1?a:t.length),o=e(s)),a>-1&&(r=r||t.slice(0,a),i=t.slice(a,t.length)),r=iw(r??t,n),{fullPath:r+(s&&"?")+s+i,path:r,query:o,hash:No(i)}}function rw(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Ou(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function ow(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&Nr(t.matched[r],n.matched[o])&&Fp(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Nr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Fp(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!sw(e[n],t[n]))return!1;return!0}function sw(e,t){return zt(e)?Ru(e,t):zt(t)?Ru(t,e):e===t}function Ru(e,t){return zt(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function iw(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let s=n.length-1,i,a;for(i=0;i1&&s--;else break;return n.slice(0,s).join("/")+"/"+r.slice(i).join("/")}const Bt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Bo;(function(e){e.pop="pop",e.push="push"})(Bo||(Bo={}));var ko;(function(e){e.back="back",e.forward="forward",e.unknown=""})(ko||(ko={}));function aw(e){if(!e)if(Er){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),nw(e)}const lw=/^[^#]+#/;function cw(e,t){return e.replace(lw,"#")+t}function uw(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const vi=()=>({left:window.scrollX,top:window.scrollY});function fw(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=uw(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function $u(e,t){return(history.state?history.state.position-t:-1)+e}const ja=new Map;function dw(e,t){ja.set(e,t)}function pw(e){const t=ja.get(e);return ja.delete(e),t}let hw=()=>location.protocol+"//"+location.host;function Hp(e,t){const{pathname:n,search:r,hash:o}=t,s=e.indexOf("#");if(s>-1){let a=o.includes(e.slice(s))?e.slice(s).length:1,l=o.slice(a);return l[0]!=="/"&&(l="/"+l),Ou(l,"")}return Ou(n,e)+r+o}function gw(e,t,n,r){let o=[],s=[],i=null;const a=({state:d})=>{const p=Hp(e,location),g=n.value,h=t.value;let y=0;if(d){if(n.value=p,t.value=d,i&&i===g){i=null;return}y=h?d.position-h.position:0}else r(p);o.forEach(k=>{k(n.value,g,{delta:y,type:Bo.pop,direction:y?y>0?ko.forward:ko.back:ko.unknown})})};function l(){i=n.value}function c(d){o.push(d);const p=()=>{const g=o.indexOf(d);g>-1&&o.splice(g,1)};return s.push(p),p}function u(){const{history:d}=window;d.state&&d.replaceState(Ie({},d.state,{scroll:vi()}),"")}function f(){for(const d of s)d();s=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:f}}function Iu(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?vi():null}}function mw(e){const{history:t,location:n}=window,r={value:Hp(e,n)},o={value:t.state};o.value||s(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(l,c,u){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:hw()+e+l;try{t[u?"replaceState":"pushState"](c,"",d),o.value=c}catch(p){console.error(p),n[u?"replace":"assign"](d)}}function i(l,c){const u=Ie({},t.state,Iu(o.value.back,l,o.value.forward,!0),c,{position:o.value.position});s(l,u,!0),r.value=l}function a(l,c){const u=Ie({},o.value,t.state,{forward:l,scroll:vi()});s(u.current,u,!0);const f=Ie({},Iu(r.value,l,null),{position:u.position+1},c);s(l,f,!1),r.value=l}return{location:r,state:o,push:a,replace:i}}function Up(e){e=aw(e);const t=mw(e),n=gw(e,t.state,t.location,t.replace);function r(s,i=!0){i||n.pauseListeners(),history.go(s)}const o=Ie({location:"",base:e,go:r,createHref:cw.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function vw(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Up(e)}function yw(e){return typeof e=="string"||e&&typeof e=="object"}function zp(e){return typeof e=="string"||typeof e=="symbol"}const Vp=Symbol("");var Lu;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Lu||(Lu={}));function Br(e,t){return Ie(new Error,{type:e,[Vp]:!0},t)}function an(e,t){return e instanceof Error&&Vp in e&&(t==null||!!(e.type&t))}const ju="[^/]+?",bw={sensitive:!1,strict:!1,start:!0,end:!0},ww=/[.+*?^${}()[\]/\\]/g;function _w(e,t){const n=Ie({},bw,t),r=[];let o=n.start?"^":"";const s=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(o+="/");for(let f=0;ft.length?t.length===1&&t[0]===80?1:-1:0}function Wp(e,t){let n=0;const r=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const kw={type:0,value:""},Ew=/[a-zA-Z0-9_]/;function Cw(e){if(!e)return[[]];if(e==="/")return[[kw]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${c}": ${p}`)}let n=0,r=n;const o=[];let s;function i(){s&&o.push(s),s=[]}let a=0,l,c="",u="";function f(){c&&(n===0?s.push({type:0,value:c}):n===1||n===2||n===3?(s.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function d(){c+=l}for(;a{i(v)}:xo}function i(f){if(zp(f)){const d=r.get(f);d&&(r.delete(f),n.splice(n.indexOf(d),1),d.children.forEach(i),d.alias.forEach(i))}else{const d=n.indexOf(f);d>-1&&(n.splice(d,1),f.record.name&&r.delete(f.record.name),f.children.forEach(i),f.alias.forEach(i))}}function a(){return n}function l(f){const d=Rw(f,n);n.splice(d,0,f),f.record.name&&!Nu(f)&&r.set(f.record.name,f)}function c(f,d){let p,g={},h,y;if("name"in f&&f.name){if(p=r.get(f.name),!p)throw Br(1,{location:f});y=p.record.name,g=Ie(Du(d.params,p.keys.filter(v=>!v.optional).concat(p.parent?p.parent.keys.filter(v=>v.optional):[]).map(v=>v.name)),f.params&&Du(f.params,p.keys.map(v=>v.name))),h=p.stringify(g)}else if(f.path!=null)h=f.path,p=n.find(v=>v.re.test(h)),p&&(g=p.parse(h),y=p.record.name);else{if(p=d.name?r.get(d.name):n.find(v=>v.re.test(d.path)),!p)throw Br(1,{location:f,currentLocation:d});y=p.record.name,g=Ie({},d.params,f.params),h=p.stringify(g)}const k=[];let m=p;for(;m;)k.unshift(m.record),m=m.parent;return{name:y,path:h,params:g,matched:k,meta:Ow(k)}}e.forEach(f=>s(f));function u(){n.length=0,r.clear()}return{addRoute:s,resolve:c,removeRoute:i,clearRoutes:u,getRoutes:a,getRecordMatcher:o}}function Du(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Tw(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Aw(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Aw(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function Nu(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Ow(e){return e.reduce((t,n)=>Ie(t,n.meta),{})}function Bu(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Rw(e,t){let n=0,r=t.length;for(;n!==r;){const s=n+r>>1;Wp(e,t[s])<0?r=s:n=s+1}const o=$w(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function $w(e){let t=e;for(;t=t.parent;)if(qp(t)&&Wp(e,t)===0)return t}function qp({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Iw(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;os&&La(s)):[r&&La(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function Lw(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=zt(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const jw=Symbol(""),Hu=Symbol(""),Nl=Symbol(""),Bl=Symbol(""),Ma=Symbol("");function no(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function $n(e,t,n,r,o,s=i=>i()){const i=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((a,l)=>{const c=d=>{d===!1?l(Br(4,{from:n,to:t})):d instanceof Error?l(d):yw(d)?l(Br(2,{from:t,to:d})):(i&&r.enterCallbacks[o]===i&&typeof d=="function"&&i.push(d),a())},u=s(()=>e.call(r&&r.instances[o],t,n,c));let f=Promise.resolve(u);e.length<3&&(f=f.then(c)),f.catch(d=>l(d))})}function Vi(e,t,n,r,o=s=>s()){const s=[];for(const i of e)for(const a in i.components){let l=i.components[a];if(!(t!=="beforeRouteEnter"&&!i.instances[a]))if(Mw(l)){const u=(l.__vccOpts||l)[t];u&&s.push($n(u,n,r,i,a,o))}else{let c=l();s.push(()=>c.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${a}" at "${i.path}"`));const f=Hb(u)?u.default:u;i.components[a]=f;const p=(f.__vccOpts||f)[t];return p&&$n(p,n,r,i,a,o)()}))}}return s}function Mw(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Uu(e){const t=Ee(Nl),n=Ee(Bl),r=A(()=>{const l=C(e.to);return t.resolve(l)}),o=A(()=>{const{matched:l}=r.value,{length:c}=l,u=l[c-1],f=n.matched;if(!u||!f.length)return-1;const d=f.findIndex(Nr.bind(null,u));if(d>-1)return d;const p=zu(l[c-2]);return c>1&&zu(u)===p&&f[f.length-1].path!==p?f.findIndex(Nr.bind(null,l[c-2])):d}),s=A(()=>o.value>-1&&Fw(n.params,r.value.params)),i=A(()=>o.value>-1&&o.value===n.matched.length-1&&Fp(n.params,r.value.params));function a(l={}){return Bw(l)?t[C(e.replace)?"replace":"push"](C(e.to)).catch(xo):Promise.resolve()}return{route:r,href:A(()=>r.value.href),isActive:s,isExactActive:i,navigate:a}}const Dw=oe({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Uu,setup(e,{slots:t}){const n=qt(Uu(e)),{options:r}=Ee(Nl),o=A(()=>({[Vu(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Vu(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=t.default&&t.default(n);return e.custom?s:be("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},s)}}}),Nw=Dw;function Bw(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Fw(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!zt(o)||o.length!==r.length||r.some((s,i)=>s!==o[i]))return!1}return!0}function zu(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Vu=(e,t,n)=>e??t??n,Hw=oe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Ee(Ma),o=A(()=>e.route||r.value),s=Ee(Hu,0),i=A(()=>{let c=C(s);const{matched:u}=o.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),a=A(()=>o.value.matched[i.value]);Be(Hu,A(()=>i.value+1)),Be(jw,a),Be(Ma,o);const l=B();return Re(()=>[l.value,a.value,e.name],([c,u,f],[d,p,g])=>{u&&(u.instances[f]=c,p&&p!==u&&c&&c===d&&(u.leaveGuards.size||(u.leaveGuards=p.leaveGuards),u.updateGuards.size||(u.updateGuards=p.updateGuards))),c&&u&&(!p||!Nr(u,p)||!d)&&(u.enterCallbacks[f]||[]).forEach(h=>h(c))},{flush:"post"}),()=>{const c=o.value,u=e.name,f=a.value,d=f&&f.components[u];if(!d)return Wu(n.default,{Component:d,route:c});const p=f.props[u],g=p?p===!0?c.params:typeof p=="function"?p(c):p:null,y=be(d,Ie({},g,t,{onVnodeUnmounted:k=>{k.component.isUnmounted&&(f.instances[u]=null)},ref:l}));return Wu(n.default,{Component:y,route:c})||y}}});function Wu(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Kp=Hw;function Uw(e){const t=Pw(e.routes,e),n=e.parseQuery||Iw,r=e.stringifyQuery||Fu,o=e.history,s=no(),i=no(),a=no(),l=mn(Bt);let c=Bt;Er&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Ui.bind(null,j=>""+j),f=Ui.bind(null,ew),d=Ui.bind(null,No);function p(j,X){let q,se;return zp(j)?(q=t.getRecordMatcher(j),se=X):se=j,t.addRoute(se,q)}function g(j){const X=t.getRecordMatcher(j);X&&t.removeRoute(X)}function h(){return t.getRoutes().map(j=>j.record)}function y(j){return!!t.getRecordMatcher(j)}function k(j,X){if(X=Ie({},X||l.value),typeof j=="string"){const P=zi(n,j,X.path),R=t.resolve({path:P.path},X),M=o.createHref(P.fullPath);return Ie(P,R,{params:d(R.params),hash:No(P.hash),redirectedFrom:void 0,href:M})}let q;if(j.path!=null)q=Ie({},j,{path:zi(n,j.path,X.path).path});else{const P=Ie({},j.params);for(const R in P)P[R]==null&&delete P[R];q=Ie({},j,{params:f(P)}),X.params=f(X.params)}const se=t.resolve(q,X),Se=j.hash||"";se.params=u(d(se.params));const _=rw(r,Ie({},j,{hash:Yb(Se),path:se.path})),x=o.createHref(_);return Ie({fullPath:_,hash:Se,query:r===Fu?Lw(j.query):j.query||{}},se,{redirectedFrom:void 0,href:x})}function m(j){return typeof j=="string"?zi(n,j,l.value.path):Ie({},j)}function v(j,X){if(c!==j)return Br(8,{from:X,to:j})}function b(j){return S(j)}function w(j){return b(Ie(m(j),{replace:!0}))}function E(j){const X=j.matched[j.matched.length-1];if(X&&X.redirect){const{redirect:q}=X;let se=typeof q=="function"?q(j):q;return typeof se=="string"&&(se=se.includes("?")||se.includes("#")?se=m(se):{path:se},se.params={}),Ie({query:j.query,hash:j.hash,params:se.path!=null?{}:j.params},se)}}function S(j,X){const q=c=k(j),se=l.value,Se=j.state,_=j.force,x=j.replace===!0,P=E(q);if(P)return S(Ie(m(P),{state:typeof P=="object"?Ie({},Se,P.state):Se,force:_,replace:x}),X||q);const R=q;R.redirectedFrom=X;let M;return!_&&ow(r,se,q)&&(M=Br(16,{to:R,from:se}),de(se,se,!0,!1)),(M?Promise.resolve(M):O(R,se)).catch(D=>an(D)?an(D,2)?D:Ze(D):Y(D,R,se)).then(D=>{if(D){if(an(D,2))return S(Ie({replace:x},m(D.to),{state:typeof D.to=="object"?Ie({},Se,D.to.state):Se,force:_}),X||R)}else D=$(R,se,!0,x,Se);return V(R,se,D),D})}function T(j,X){const q=v(j,X);return q?Promise.reject(q):Promise.resolve()}function I(j){const X=De.values().next().value;return X&&typeof X.runWithContext=="function"?X.runWithContext(j):j()}function O(j,X){let q;const[se,Se,_]=zw(j,X);q=Vi(se.reverse(),"beforeRouteLeave",j,X);for(const P of se)P.leaveGuards.forEach(R=>{q.push($n(R,j,X))});const x=T.bind(null,j,X);return q.push(x),Me(q).then(()=>{q=[];for(const P of s.list())q.push($n(P,j,X));return q.push(x),Me(q)}).then(()=>{q=Vi(Se,"beforeRouteUpdate",j,X);for(const P of Se)P.updateGuards.forEach(R=>{q.push($n(R,j,X))});return q.push(x),Me(q)}).then(()=>{q=[];for(const P of _)if(P.beforeEnter)if(zt(P.beforeEnter))for(const R of P.beforeEnter)q.push($n(R,j,X));else q.push($n(P.beforeEnter,j,X));return q.push(x),Me(q)}).then(()=>(j.matched.forEach(P=>P.enterCallbacks={}),q=Vi(_,"beforeRouteEnter",j,X,I),q.push(x),Me(q))).then(()=>{q=[];for(const P of i.list())q.push($n(P,j,X));return q.push(x),Me(q)}).catch(P=>an(P,8)?P:Promise.reject(P))}function V(j,X,q){a.list().forEach(se=>I(()=>se(j,X,q)))}function $(j,X,q,se,Se){const _=v(j,X);if(_)return _;const x=X===Bt,P=Er?history.state:{};q&&(se||x?o.replace(j.fullPath,Ie({scroll:x&&P&&P.scroll},Se)):o.push(j.fullPath,Se)),l.value=j,de(j,X,q,x),Ze()}let U;function ve(){U||(U=o.listen((j,X,q)=>{if(!st.listening)return;const se=k(j),Se=E(se);if(Se){S(Ie(Se,{replace:!0}),se).catch(xo);return}c=se;const _=l.value;Er&&dw($u(_.fullPath,q.delta),vi()),O(se,_).catch(x=>an(x,12)?x:an(x,2)?(S(x.to,se).then(P=>{an(P,20)&&!q.delta&&q.type===Bo.pop&&o.go(-1,!1)}).catch(xo),Promise.reject()):(q.delta&&o.go(-q.delta,!1),Y(x,se,_))).then(x=>{x=x||$(se,_,!1),x&&(q.delta&&!an(x,8)?o.go(-q.delta,!1):q.type===Bo.pop&&an(x,20)&&o.go(-1,!1)),V(se,_,x)}).catch(xo)}))}let fe=no(),F=no(),ee;function Y(j,X,q){Ze(j);const se=F.list();return se.length?se.forEach(Se=>Se(j,X,q)):console.error(j),Promise.reject(j)}function je(){return ee&&l.value!==Bt?Promise.resolve():new Promise((j,X)=>{fe.add([j,X])})}function Ze(j){return ee||(ee=!j,ve(),fe.list().forEach(([X,q])=>j?q(j):X()),fe.reset()),j}function de(j,X,q,se){const{scrollBehavior:Se}=e;if(!Er||!Se)return Promise.resolve();const _=!q&&pw($u(j.fullPath,0))||(se||!q)&&history.state&&history.state.scroll||null;return Kn().then(()=>Se(j,X,_)).then(x=>x&&fw(x)).catch(x=>Y(x,j,X))}const pe=j=>o.go(j);let Ve;const De=new Set,st={currentRoute:l,listening:!0,addRoute:p,removeRoute:g,clearRoutes:t.clearRoutes,hasRoute:y,getRoutes:h,resolve:k,options:e,push:b,replace:w,go:pe,back:()=>pe(-1),forward:()=>pe(1),beforeEach:s.add,beforeResolve:i.add,afterEach:a.add,onError:F.add,isReady:je,install(j){const X=this;j.component("RouterLink",Nw),j.component("RouterView",Kp),j.config.globalProperties.$router=X,Object.defineProperty(j.config.globalProperties,"$route",{enumerable:!0,get:()=>C(l)}),Er&&!Ve&&l.value===Bt&&(Ve=!0,b(o.location).catch(Se=>{}));const q={};for(const Se in Bt)Object.defineProperty(q,Se,{get:()=>l.value[Se],enumerable:!0});j.provide(Nl,X),j.provide(Bl,pn(q)),j.provide(Ma,l);const se=j.unmount;De.add(j),j.unmount=function(){De.delete(j),De.size<1&&(c=Bt,U&&U(),U=null,l.value=Bt,Ve=!1,ee=!1),se()}}};function Me(j){return j.reduce((X,q)=>X.then(()=>I(q)),Promise.resolve())}return st}function zw(e,t){const n=[],r=[],o=[],s=Math.max(t.matched.length,e.matched.length);for(let i=0;iNr(c,a))?r.push(a):n.push(a));const l=e.matched[i];l&&(t.matched.find(c=>Nr(c,l))||o.push(l))}return[n,r,o]}function Vw(e){return Ee(Bl)}const Ww=(e,t)=>t.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,n=>{var r;return((r=e.params[n.slice(1)])==null?void 0:r.toString())||""}),Da=(e,t)=>{const n=e.route.matched.find(o=>{var s;return((s=o.components)==null?void 0:s.default)===e.Component.type}),r=t??(n==null?void 0:n.meta.key)??(n&&Ww(e.route,n));return typeof r=="function"?r(e.route):r},qw=(e,t)=>({default:()=>e?be(Hm,e===!0?{}:e,t):t});function Fl(e){return Array.isArray(e)?e:[e]}const Kw="modulepreload",Gw=function(e,t){return e[0]==="."?new URL(e,t).href:e},qu={},Xw=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){const s=document.getElementsByTagName("link"),i=document.querySelector("meta[property=csp-nonce]"),a=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));o=Promise.all(n.map(l=>{if(l=Gw(l,r),l in qu)return;qu[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(!!r)for(let p=s.length-1;p>=0;p--){const g=s[p];if(g.href===l&&(!c||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${u}`))return;const d=document.createElement("link");if(d.rel=c?"stylesheet":Kw,c||(d.as="script",d.crossOrigin=""),d.href=l,a&&d.setAttribute("nonce",a),document.head.appendChild(d),c)return new Promise((p,g)=>{d.addEventListener("load",p),d.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${l}`)))})}))}return o.then(()=>t()).catch(s=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=s,window.dispatchEvent(i),!i.defaultPrevented)throw s})},G=(...e)=>Xw(...e).catch(t=>{const n=new Event("nuxt.preloadError");throw n.payload=t,window.dispatchEvent(n),t}),Qw={layout:"docs"},Ku=[{name:"slug",path:"/:slug(.*)*",meta:Qw||{},component:()=>G(()=>import("./R7OHQyOF.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url).then(e=>e.default||e)},{name:"index",path:"/",component:()=>G(()=>import("./mpWQaDmy.js").then(e=>e.i),__vite__mapDeps([5,3,4,6,7,8]),import.meta.url).then(e=>e.default||e)}],Gp=(e,t,n)=>(t=t===!0?{}:t,{default:()=>{var r;return t?be(e,t,n):(r=n.default)==null?void 0:r.call(n)}});function Gu(e){const t=(e==null?void 0:e.meta.key)??e.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,n=>{var r;return((r=e.params[n.slice(1)])==null?void 0:r.toString())||""});return typeof t=="function"?t(e):t}function Yw(e,t){return e===t||t===Bt?!1:Gu(e)!==Gu(t)?!0:!e.matched.every((r,o)=>{var s,i;return r.components&&r.components.default===((i=(s=t.matched[o])==null?void 0:s.components)==null?void 0:i.default)})}const Jw={scrollBehavior(e,t,n){var c;const r=Pe(),o=((c=ut().options)==null?void 0:c.scrollBehaviorType)??"auto";let s=n||void 0;const i=typeof e.meta.scrollToTop=="function"?e.meta.scrollToTop(e,t):e.meta.scrollToTop;if(!s&&t&&e&&i!==!1&&Yw(e,t)&&(s={left:0,top:0}),e.path===t.path)return t.hash&&!e.hash?{left:0,top:0}:e.hash?{el:e.hash,top:Xu(e.hash),behavior:o}:!1;const a=u=>!!(u.meta.pageTransition??ka),l=a(t)&&a(e)?"page:transition:finish":"page:finish";return new Promise(u=>{r.hooks.hookOnce(l,async()=>{await new Promise(f=>setTimeout(f,0)),e.hash&&(s={el:e.hash,top:Xu(e.hash),behavior:o}),u(s)})})}};function Xu(e){try{const t=document.querySelector(e);if(t)return Number.parseFloat(getComputedStyle(t).scrollMarginTop)}catch{}return 0}function Qu(e){const t=document.querySelector(e);if(t){const n=parseFloat(getComputedStyle(t).scrollMarginTop);return{el:e,behavior:"smooth",top:n}}}const Zw={scrollBehavior(e,t,n){const r=Pe();if(!(history.state&&history.state.stop))return history.state&&history.state.smooth?{el:history.state.smooth,behavior:"smooth"}:n?new Promise(o=>{r.hooks.hookOnce("page:finish",()=>{setTimeout(()=>o(n),50)})}):e.hash?new Promise(o=>{e.path===t.path?setTimeout(()=>o(Qu(e.hash)),50):r.hooks.hookOnce("page:finish",()=>{setTimeout(()=>o(Qu(e.hash)),50)})}):{top:0}}},e_={hashMode:!1,scrollBehaviorType:"auto"},kt={...e_,...Jw,...Zw},t_=async e=>{var l;let t,n;if(!((l=e.meta)!=null&&l.validate))return;const r=Pe(),o=ut();if(([t,n]=Mo(()=>Promise.resolve(e.meta.validate(e))),t=await t,n(),t)===!0)return;const i=Jo({statusCode:404,statusMessage:`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}}),a=o.beforeResolve(c=>{if(a(),c===e){const u=o.afterEach(async()=>{u(),await r.runWithContext(()=>Sr(i)),window.history.pushState({},"",e.fullPath)});return!1}})},n_=async e=>{let t,n;const r=([t,n]=Mo(()=>Ml(e.path)),t=await t,n(),t);if(r.redirect)return wn(r.redirect,{acceptRelative:!0})?(window.location.href=r.redirect,!1):r.redirect},r_=[t_,n_],Eo={};function o_(e,t,n){const{pathname:r,search:o,hash:s}=t,i=e.indexOf("#");if(i>-1){const c=s.includes(e.slice(i))?e.slice(i).length:1;let u=s.slice(c);return u[0]!=="/"&&(u="/"+u),uu(u,"")}const a=uu(r,e),l=!n||Py(a,n,{trailingSlash:!0})?a:n;return l+(l.includes("?")?"":o)+s}const s_=Ke({name:"nuxt:router",enforce:"pre",async setup(e){var y,k;let t,n,r=wt().app.baseURL;kt.hashMode&&!r.includes("#")&&(r+="#");const o=((y=kt.history)==null?void 0:y.call(kt,r))??(kt.hashMode?vw(r):Up(r)),s=((k=kt.routes)==null?void 0:k.call(kt,Ku))??Ku;let i;const a=Uw({...kt,scrollBehavior:(m,v,b)=>{if(v===Bt){i=b;return}if(kt.scrollBehavior){if(a.options.scrollBehavior=kt.scrollBehavior,"scrollRestoration"in window.history){const w=a.beforeEach(()=>{w(),window.history.scrollRestoration="manual"})}return kt.scrollBehavior(m,Bt,i||b)}},history:o,routes:s});"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),e.vueApp.use(a);const l=mn(a.currentRoute.value);a.afterEach((m,v)=>{l.value=v}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>l.value});const c=o_(r,window.location,e.payload.path),u=mn(a.currentRoute.value),f=()=>{u.value=a.currentRoute.value};e.hook("page:finish",f),a.afterEach((m,v)=>{var b,w,E,S;((w=(b=m.matched[0])==null?void 0:b.components)==null?void 0:w.default)===((S=(E=v.matched[0])==null?void 0:E.components)==null?void 0:S.default)&&f()});const d={};for(const m in u.value)Object.defineProperty(d,m,{get:()=>u.value[m]});e._route=pn(d),e._middleware=e._middleware||{global:[],named:{}};const p=gi();a.afterEach(async(m,v,b)=>{delete e._processingMiddleware,!e.isHydrating&&p.value&&await e.runWithContext(yp),b&&await e.callHook("page:loading:end"),m.matched.length===0&&await e.runWithContext(()=>Sr(Pa({statusCode:404,fatal:!1,statusMessage:`Page not found: ${m.fullPath}`,data:{path:m.fullPath}})))});try{[t,n]=Mo(()=>a.isReady()),await t,n()}catch(m){[t,n]=Mo(()=>e.runWithContext(()=>Sr(m))),await t,n()}const g=c!==a.currentRoute.value.fullPath?a.resolve(c):a.currentRoute.value;f();const h=e.payload.state._layout;return a.beforeEach(async(m,v)=>{var b;await e.callHook("page:loading:start"),m.meta=qt(m.meta),e.isHydrating&&h&&!hr(m.meta.layout)&&(m.meta.layout=h),e._processingMiddleware=!0;{const w=new Set([...r_,...e._middleware.global]);for(const E of m.matched){const S=E.meta.middleware;if(S)for(const T of Fl(S))w.add(T)}{const E=await e.runWithContext(()=>Ml(m.path));if(E.appMiddleware)for(const S in E.appMiddleware)E.appMiddleware[S]?w.add(S):w.delete(S)}for(const E of w){const S=typeof E=="string"?e._middleware.named[E]||await((b=Eo[E])==null?void 0:b.call(Eo).then(I=>I.default||I)):E;if(!S)throw new Error(`Unknown route middleware: '${E}'.`);const T=await e.runWithContext(()=>S(m,v));if(!e.payload.serverRendered&&e.isHydrating&&(T===!1||T instanceof Error)){const I=T||Pa({statusCode:404,statusMessage:`Page Not Found: ${c}`});return await e.runWithContext(()=>Sr(I)),!1}if(T!==!0&&(T||T===!1))return T}}}),a.onError(async()=>{delete e._processingMiddleware,await e.callHook("page:loading:end")}),e.hooks.hookOnce("app:created",async()=>{try{"name"in g&&(g.name=void 0),await a.replace({...g,force:!0}),a.options.scrollBehavior=kt.scrollBehavior}catch(m){await e.runWithContext(()=>Sr(m))}}),{provide:{router:a}}}}),i_="$s";function wr(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);const[n,r]=e;if(!n||typeof n!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+n);if(r!==void 0&&typeof r!="function")throw new Error("[nuxt] [useState] init must be a function: "+r);const o=i_+n,s=Pe(),i=xe(s.payload.state,o);if(i.value===void 0&&r){const a=r();if(tt(a))return s.payload.state[o]=a,a;i.value=a}return i}const a_=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,Xp=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,l_=/^([/\\]\s*){2,}[^/\\]/;function c_(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?a_.test(e):Xp.test(e)||(t.acceptRelative?l_.test(e):!1)}function u_(e){return f_(e,"https://")}function f_(e,t){const n=e.match(Xp);return n?t+e.slice(n[0].length):t+e}function d_(e){const t=(e==null?void 0:e.debug)||!1,n=[];function r(s){var a;if(!s||typeof s!="object"||Object.keys(s).length===0)return;if(!s._context&&t){let l=(a=new Error("tmp").stack)==null?void 0:a.split(` -`)[2].split(" ")[5];l!=null&&l.includes("/")&&(l="anonymous"),s._context=l}const i={};for(const l in s){const c=s[l];typeof c<"u"&&c!==""&&(i[l]=c)}Object.keys(i).filter(l=>!l.startsWith("_")).length>0&&n.push(i)}function o(s){var a;const i={};s!=null&&s.debug&&(i._context={});for(const l in n.sort((c,u)=>(c._priority||0)-(u._priority||0)))for(const c in n[l]){const u=c,f=n[l][c];c.startsWith("_")||(i[c]=f,s!=null&&s.debug&&(i._context[u]=((a=n[l]._context)==null?void 0:a[u])||n[l]._context||"anonymous"))}return p_(i)}return{stack:n,push:r,get:o}}function p_(e){typeof e.indexable<"u"&&(e.indexable=String(e.indexable)!=="false"),typeof e.trailingSlash<"u"&&(e.trailingSlash=String(e.trailingSlash)!=="false"),e.url&&!c_(e.url,{acceptRelative:!0,strict:!1})&&(e.url=u_(e.url));const t=Object.keys(e).sort((r,o)=>r.localeCompare(o)),n={};for(const r of t)n[r]=e[r];return n}const h_=Ke({name:"nuxt-site-config",enforce:"pre",async setup(e){const t=wt()["nuxt-site-config"]||{debug:!1};let n;const r=wr("site-config");return n||(n=d_({debug:t.debug})),n.push({_context:"window",url:window.location.origin}),Pe().payload.serverRendered?n.push(r.value):typeof window.__NUXT_SITE_CONFIG__<"u"&&n.push(window.__NUXT_SITE_CONFIG__),{provide:{nuxtSiteConfig:n}}}}),Na=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),g_=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),yi=e=>{const t=Pe();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{Na(()=>e())}):Na(()=>e())},m_=Ke({name:"nuxt:payload",setup(e){ut().beforeResolve(async(t,n)=>{if(t.path===n.path)return;const r=await Au(t.path);r&&Object.assign(e.static.data,r.data)}),yi(()=>{var t;e.hooks.hook("link:prefetch",async n=>{const{hostname:r}=new URL(n,window.location.href);r===window.location.hostname&&await Au(n)}),((t=navigator.connection)==null?void 0:t.effectiveType)!=="slow-2g"&&setTimeout(mi,1e3)})}}),v_=Ke(()=>{const e=ut();yi(()=>{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})}),y_=Ke(e=>{let t;async function n(){const r=await mi();t&&clearTimeout(t),t=setTimeout(n,gu);try{const o=await $fetch(Ol("builds/latest.json")+`?${Date.now()}`);o.id!==r.id&&e.hooks.callHook("app:manifest:update",o)}catch{}}yi(()=>{t=setTimeout(n,gu)})});function b_(e={}){const t=e.path||window.location.pathname;let n={};try{n=jo(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||(n==null?void 0:n.path)!==t||(n==null?void 0:n.expires){r.clear()}),e.hook("app:chunkError",({error:s})=>{r.add(s)});function o(s){const a="href"in s&&s.href[0]==="#"?n.app.baseURL+s.href:Yo(n.app.baseURL,s.fullPath);b_({path:a,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(o)}),t.onError((s,i)=>{r.has(s)&&o(i)})}}),__=Z(()=>G(()=>import("./Bh5smzGu.js"),__vite__mapDeps([9,10,1,2,3,4,11,12]),import.meta.url).then(e=>e.default||e.default||e)),x_=Z(()=>G(()=>import("./DomyCnYp.js"),[],import.meta.url).then(e=>e.default||e.default||e)),k_=Z(()=>G(()=>import("./B-C9DpKA.js"),__vite__mapDeps([13,14,4,15]),import.meta.url).then(e=>e.default||e.default||e)),E_=Z(()=>G(()=>import("./C2szqgS3.js"),__vite__mapDeps([16,14,4,7,15]),import.meta.url).then(e=>e.default||e.default||e)),C_=Z(()=>G(()=>import("./BuGp6Ggu.js"),[],import.meta.url).then(e=>e.default||e.default||e)),S_=Z(()=>G(()=>import("./CHY8Pw7Y.js"),__vite__mapDeps([17,18]),import.meta.url).then(e=>e.default||e.default||e)),P_=Z(()=>G(()=>import("./CVL9daOq.js"),__vite__mapDeps([19,14,4,15]),import.meta.url).then(e=>e.default||e.default||e)),T_=Z(()=>G(()=>import("./DB26YkHs.js"),[],import.meta.url).then(e=>e.default||e.default||e)),A_=Z(()=>G(()=>import("./B29X6ZPn.js"),[],import.meta.url).then(e=>e.default||e.default||e)),O_=Z(()=>G(()=>import("./DcTYswyg.js"),[],import.meta.url).then(e=>e.default||e.default||e)),R_=Z(()=>G(()=>import("./663klko9.js"),[],import.meta.url).then(e=>e.default||e.default||e)),$_=Z(()=>G(()=>import("./CwHOZuFg.js"),__vite__mapDeps([20,21,18,22,23]),import.meta.url).then(e=>e.default||e.default||e)),I_=Z(()=>G(()=>import("./5uPAARVZ.js"),__vite__mapDeps([24,22]),import.meta.url).then(e=>e.default||e.default||e)),L_=Z(()=>G(()=>import("./DMIHtKy3.js"),__vite__mapDeps([25,18]),import.meta.url).then(e=>e.default||e.default||e)),j_=Z(()=>G(()=>import("./D4MVSP1N.js"),[],import.meta.url).then(e=>e.default||e.default||e)),M_=Z(()=>G(()=>import("./BavJDHci.js"),__vite__mapDeps([26,10]),import.meta.url).then(e=>e.default||e.default||e)),D_=Z(()=>G(()=>import("./DXIEJCQl.js"),[],import.meta.url).then(e=>e.default||e.default||e)),N_=Z(()=>G(()=>import("./FPKkkr-L.js"),[],import.meta.url).then(e=>e.default||e.default||e)),B_=Z(()=>G(()=>import("./BZKR5zX_.js"),__vite__mapDeps([27,1,2,3,4,28]),import.meta.url).then(e=>e.default||e.default||e)),F_=Z(()=>G(()=>import("./Cye9iPh-.js"),__vite__mapDeps([29,28]),import.meta.url).then(e=>e.default||e.default||e)),H_=Z(()=>G(()=>import("./86-KIJZn.js"),[],import.meta.url).then(e=>e.default||e.default||e)),U_=Z(()=>G(()=>import("./BAKkr1ga.js"),[],import.meta.url).then(e=>e.default||e.default||e)),z_=Z(()=>G(()=>import("./D0-C4B6x.js"),__vite__mapDeps([1,2,3,4]),import.meta.url).then(e=>e.default||e.default||e)),V_=Z(()=>G(()=>import("./C1kJJtSu.js"),__vite__mapDeps([30,2,3,4]),import.meta.url).then(e=>e.default||e.default||e)),W_=Z(()=>G(()=>import("./CFvSqwIT.js"),__vite__mapDeps([31,14,4]),import.meta.url).then(e=>e.default||e.default||e)),q_=Z(()=>G(()=>import("./F3_pL7L9.js"),[],import.meta.url).then(e=>e.default||e.default||e)),K_=Z(()=>G(()=>import("./DQTFZDG-.js"),[],import.meta.url).then(e=>e.default||e.default||e)),G_=Z(()=>G(()=>import("./D8e1FUJB.js"),__vite__mapDeps([32,31,14,4]),import.meta.url).then(e=>e.default||e.default||e)),X_=Z(()=>G(()=>import("./CXy-F3hO.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Q_=Z(()=>G(()=>import("./2NYeL5W1.js"),__vite__mapDeps([33,21,18,22,23]),import.meta.url).then(e=>e.default||e.default||e)),Y_=Z(()=>G(()=>import("./VGMRGWCW.js"),[],import.meta.url).then(e=>e.default||e.default||e)),J_=Z(()=>G(()=>import("./_ZA6Pbhi.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Z_=Z(()=>G(()=>import("./DikCDexe.js"),[],import.meta.url).then(e=>e.default||e.default||e)),e1=Z(()=>G(()=>import("./BTIfoLIW.js"),[],import.meta.url).then(e=>e.default||e.default||e)),t1=Z(()=>G(()=>import("./DR_MEAkt.js"),[],import.meta.url).then(e=>e.default||e.default||e)),n1=Z(()=>G(()=>import("./CS8RItpO.js"),[],import.meta.url).then(e=>e.default||e.default||e)),r1=Z(()=>G(()=>import("./I__dUy72.js"),[],import.meta.url).then(e=>e.default||e.default||e)),o1=Z(()=>G(()=>import("./BPrqFHgp.js"),[],import.meta.url).then(e=>e.default||e.default||e)),s1=Z(()=>G(()=>import("./Cyg7TggZ.js"),[],import.meta.url).then(e=>e.default||e.default||e)),i1=Z(()=>G(()=>import("./Cj_78txb.js"),[],import.meta.url).then(e=>e.default||e.default||e)),a1=Z(()=>G(()=>import("./zYChM_yW.js"),[],import.meta.url).then(e=>e.default||e.default||e)),l1=Z(()=>G(()=>import("./jrDDEEDF.js"),[],import.meta.url).then(e=>e.default||e.default||e)),c1=Z(()=>G(()=>import("./CdBVoTOT.js"),[],import.meta.url).then(e=>e.default||e.default||e)),u1=Z(()=>G(()=>import("./nP97wql7.js"),[],import.meta.url).then(e=>e.default||e.default||e)),f1=Z(()=>G(()=>import("./DoDOBHEG.js"),[],import.meta.url).then(e=>e.default||e.default||e)),d1=Z(()=>G(()=>import("./DoHii7hq.js"),[],import.meta.url).then(e=>e.default||e.default||e)),p1=Z(()=>G(()=>import("./BEKKvTcA.js"),[],import.meta.url).then(e=>e.default||e.default||e)),h1=Z(()=>G(()=>import("./DUg2ejsP.js"),[],import.meta.url).then(e=>e.default||e.default||e)),g1=Z(()=>G(()=>import("./B9fM72gD.js"),[],import.meta.url).then(e=>e.default||e.default||e)),m1=Z(()=>G(()=>Promise.resolve().then(()=>KE),void 0,import.meta.url).then(e=>e.default||e.default||e)),v1=Z(()=>G(()=>import("./B6nvh6Ib.js"),__vite__mapDeps([34,35]),import.meta.url).then(e=>e.default||e.default||e)),y1=Z(()=>G(()=>import("./DlAVUEvi.js"),[],import.meta.url).then(e=>e.default||e.default||e)),b1=Z(()=>G(()=>import("./KeDkB44q.js"),[],import.meta.url).then(e=>e.default||e.default||e)),w1=Z(()=>G(()=>import("./BAZ2P4gJ.js"),[],import.meta.url).then(e=>e.default||e.default||e)),_1=Z(()=>G(()=>import("./BOqfrSjw.js"),[],import.meta.url).then(e=>e.default||e.default||e)),x1=Z(()=>G(()=>import("./OrroK2ms.js"),[],import.meta.url).then(e=>e.default||e.default||e)),k1=Z(()=>G(()=>import("./BSZg2Fdj.js"),[],import.meta.url).then(e=>e.default||e.default||e)),E1=Z(()=>G(()=>import("./D7mpQ4ve.js"),__vite__mapDeps([36,11,12]),import.meta.url).then(e=>e.default||e.default||e)),C1=Z(()=>G(()=>import("./J2h4T5Wp.js"),__vite__mapDeps([37,12]),import.meta.url).then(e=>e.default||e.default||e)),S1=Z(()=>G(()=>import("./fqLPnpju.js"),__vite__mapDeps([38,11,12]),import.meta.url).then(e=>e.default||e.default||e)),P1=Z(()=>G(()=>import("./Rj-Lyql8.js"),__vite__mapDeps([39,11,12]),import.meta.url).then(e=>e.default||e.default||e)),T1=Z(()=>G(()=>import("./p5M_6W0j.js"),__vite__mapDeps([40,11,12]),import.meta.url).then(e=>e.default||e.default||e)),A1=Z(()=>G(()=>import("./Dq4I_mkI.js"),__vite__mapDeps([41,11,12]),import.meta.url).then(e=>e.default||e.default||e)),O1=Z(()=>G(()=>import("./CH2GjlBY.js"),__vite__mapDeps([42,11,12]),import.meta.url).then(e=>e.default||e.default||e)),R1=Z(()=>G(()=>import("./DZkVUGxl.js"),__vite__mapDeps([43,11,12]),import.meta.url).then(e=>e.default||e.default||e)),$1=Z(()=>G(()=>import("./BRMcYa22.js"),__vite__mapDeps([44,11,12]),import.meta.url).then(e=>e.default||e.default||e)),I1=[["Releases",__],["VoltaBoard",x_],["Callout",k_],["Card",E_],["CardGroup",C_],["CodeGroup",S_],["Collapsible",P_],["Field",T_],["FieldGroup",A_],["Shortcut",O_],["Tabs",R_],["ProseCode",$_],["ProseCodeButton",I_],["ProseCodeIcon",L_],["ProseH1",j_],["ProseH2",M_],["ProseH3",D_],["ProseH4",N_],["ContentDoc",B_],["ContentList",F_],["ContentNavigation",H_],["ContentQuery",U_],["ContentRenderer",z_],["ContentRendererMarkdown",V_],["MDCSlot",W_],["DocumentDrivenEmpty",q_],["DocumentDrivenNotFound",K_],["Markdown",G_],["ProseCodeInline",X_],["ProsePre",Q_],["ProseA",Y_],["ProseBlockquote",J_],["ProseEm",Z_],["ProseH5",e1],["ProseH6",t1],["ProseHr",n1],["ProseImg",r1],["ProseLi",o1],["ProseOl",s1],["ProseP",i1],["ProseScript",a1],["ProseStrong",l1],["ProseTable",c1],["ProseTbody",u1],["ProseTd",f1],["ProseTh",d1],["ProseThead",p1],["ProseTr",h1],["ProseUl",g1],["Icon",m1],["IconCSS",v1],["OgImageStatic",y1],["OgImageDynamic",b1],["OgImage",w1],["OgImageCached",_1],["OgImageWithoutCache",x1],["OgImageScreenshot",k1],["GithubRepository",E1],["GithubLink",C1],["GithubReadme",S1],["GithubReleases",P1],["GithubLastRelease",T1],["GithubRelease",A1],["GithubContributors",O1],["GithubFileContributors",R1],["GithubCommits",$1]],L1=Ke({name:"nuxt:global-components",setup(e){for(const[t,n]of I1)e.vueApp.component(t,n),e.vueApp.component("Lazy"+t,n)}}),In={docs:()=>G(()=>import("./DpXcCXGB.js"),[],import.meta.url).then(e=>e.default||e)},j1=Ke({name:"nuxt:prefetch",setup(e){const t=ut();e.hooks.hook("app:mounted",()=>{t.beforeEach(async n=>{var o;const r=(o=n==null?void 0:n.meta)==null?void 0:o.layout;r&&typeof In[r]=="function"&&await In[r]()})}),e.hooks.hook("link:prefetch",n=>{if(wn(n))return;const r=t.resolve(n);if(!r)return;const o=r.meta.layout;let s=Fl(r.meta.middleware);s=s.filter(i=>typeof i=="string");for(const i of s)typeof Eo[i]=="function"&&Eo[i]();o&&typeof In[o]=="function"&&In[o]()})}});function Qt(e){if(typeof e!="object")return e;var t,n,r=Object.prototype.toString.call(e);if(r==="[object Object]"){if(e.constructor!==Object&&typeof e.constructor=="function"){n=new e.constructor;for(t in e)e.hasOwnProperty(t)&&n[t]!==e[t]&&(n[t]=Qt(e[t]))}else{n={};for(t in e)t==="__proto__"?Object.defineProperty(n,t,{value:Qt(e[t]),configurable:!0,enumerable:!0,writable:!0}):n[t]=Qt(e[t])}return n}if(r==="[object Array]"){for(t=e.length,n=Array(t);t--;)n[t]=Qt(e[t]);return n}return r==="[object Set]"?(n=new Set,e.forEach(function(o){n.add(Qt(o))}),n):r==="[object Map]"?(n=new Map,e.forEach(function(o,s){n.set(Qt(s),Qt(o))}),n):r==="[object Date]"?new Date(+e):r==="[object RegExp]"?(n=new RegExp(e.source,e.flags),n.lastIndex=e.lastIndex,n):r==="[object DataView]"?new e.constructor(Qt(e.buffer)):r==="[object ArrayBuffer]"?e.slice(0):r.slice(-6)==="Array]"?new e.constructor(e):e}const M1={path:"/",watch:!0,decode:e=>jo(decodeURIComponent(e)),encode:e=>encodeURIComponent(typeof e=="string"?e:JSON.stringify(e))},Wi=window.cookieStore;function Rs(e,t){var l;const n={...M1,...t},r=Yu(n)||{};let o;n.maxAge!==void 0?o=n.maxAge*1e3:n.expires&&(o=n.expires.getTime()-Date.now());const s=o!==void 0&&o<=0,i=Qt(s?void 0:r[e]??((l=n.default)==null?void 0:l.call(n))),a=o&&!s?B1(i,o,n.watch&&n.watch!=="shallow"):B(i);{let c=null;try{!Wi&&typeof BroadcastChannel<"u"&&(c=new BroadcastChannel(`nuxt:cookies:${e}`))}catch{}const u=()=>{n.readonly||dp(a.value,r[e])||(N1(e,a.value,n),r[e]=Qt(a.value),c==null||c.postMessage({value:n.encode(a.value)}))},f=p=>{var h;const g=p.refresh?(h=Yu(n))==null?void 0:h[e]:n.decode(p.value);d=!0,r[e]=a.value=g,Kn(()=>{d=!1})};let d=!1;Kr()&&To(()=>{d=!0,u(),c==null||c.close()}),Wi?Wi.onchange=p=>{const g=p.changed.find(h=>h.name===e);g&&f({value:g.value})}:c&&(c.onmessage=({data:p})=>f(p)),n.watch?Re(a,()=>{d||u()},{deep:n.watch!=="shallow"}):u()}return a}function Yu(e={}){return g0(document.cookie,e)}function D1(e,t,n={}){return t==null?vu(e,t,{...n,maxAge:-1}):vu(e,t,n)}function N1(e,t,n={}){document.cookie=D1(e,t,n)}const Ju=2147483647;function B1(e,t,n){let r,o,s=0;const i=n?B(e):{value:e};return Kr()&&To(()=>{o==null||o(),clearTimeout(r)}),hm((a,l)=>{n&&(o=Re(i,l));function c(){s=0,clearTimeout(r);const u=t-s,f=u{if(s+=f,s{const t=wt().public.studio||{},n=vn(),r=Rs("previewToken",{sameSite:"none",secure:!0}),o=wr("studio-client-db",()=>null);async function s(){const i=await G(()=>import("./AWJ_kHPD.js"),__vite__mapDeps([45,46]),import.meta.url).then(c=>c.useStudio),{mountPreviewUI:a,initiateIframeCommunication:l}=i();a(),l()}if(t.apiURL){if(Object.prototype.hasOwnProperty.call(n.query,"preview")&&!n.query.preview||!n.query.preview&&!r.value)return;n.query.preview&&(r.value=String(n.query.preview)),window.sessionStorage.setItem("previewToken",String(r.value)),window.sessionStorage.setItem("previewAPI",typeof n.query.staging<"u"?"https://dev-api.nuxt.studio":t.apiURL),e.hook("content:storage",i=>{o.value=i}),e.hook("app:mounted",async()=>{await s()})}});function H1(e){return e==="file:"}function U1(e,t){return t.includes(e)}function z1(){try{return localStorage.getItem("plausible_ignore")==="true"}catch{return!1}}function V1(e={}){const{url:t,referrer:n,deviceWidth:r}=e;return{url:t??location.href,referrer:n??document.referrer,deviceWidth:r??window.innerWidth}}function W1(e,t,n){return fetch(`${e}/api/event`,{method:"POST",headers:{"Content-Type":"text/plain"},body:JSON.stringify(t)}).then(()=>{n==null||n()})}function q1(e,t,n,r){return{n:e,u:n.url,d:t.domain,r:n.referrer,w:n.deviceWidth,h:t.hashMode?1:0,p:r&&r.props?JSON.stringify(r.props):void 0}}function K1(e){const t=location.protocol,r={...{enabled:!0,hashMode:!1,domain:location.hostname,apiHost:"https://plausible.io",ignoredHostnames:["localhost"],logIgnored:!1},...e},o=(a,l)=>W1(r.apiHost,a,l);function s(a,l){var f;const c=V1(l==null?void 0:l.data),u=q1(a,r,c,l);H1(t)||U1(r.domain,r.ignoredHostnames)||z1()?(r.logIgnored||console.info(`[Plausible] ${a}`,u),(f=l==null?void 0:l.callback)==null||f.call(l)):o(u,l==null?void 0:l.callback)}function i(a){s("pageview",a)}return{trackEvent:s,trackPageview:i,options:r}}const G1=Ke({name:"plausible",setup(){const e=wt().public.plausible;return e.enabled?{provide:{plausible:K1({...e,logIgnored:e.logIgnoredEvents,domain:e.domain||window.location.hostname})}}:void 0}});function Wn(e){return Kr()?(To(e),!0):!1}function Qp(e){let t=0,n,r;const o=()=>{t-=1,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return(...s)=>(t+=1,n||(r=qf(!0),n=r.run(()=>e(...s))),Wn(o),n)}function Lt(e){return typeof e=="function"?e():C(e)}const Fo=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const X1=e=>e!=null,Q1=Object.prototype.toString,Y1=e=>Q1.call(e)==="[object Object]",Zu=()=>+Date.now(),Ho=()=>{};function Yp(e,t){function n(...r){return new Promise((o,s)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(s)})}return n}const J1=e=>e();function Z1(e,t={}){let n,r,o=Ho;const s=a=>{clearTimeout(a),o(),o=Ho};return a=>{const l=Lt(e),c=Lt(t.maxWait);return n&&s(n),l<=0||c!==void 0&&c<=0?(r&&(s(r),r=null),Promise.resolve(a())):new Promise((u,f)=>{o=t.rejectOnCancel?f:u,c&&!r&&(r=setTimeout(()=>{n&&s(n),r=null,u(a())},c)),n=setTimeout(()=>{r&&s(r),r=null,u(a())},l)})}}function ex(...e){let t=0,n,r=!0,o=Ho,s,i,a,l,c;!tt(e[0])&&typeof e[0]=="object"?{delay:i,trailing:a=!0,leading:l=!0,rejectOnCancel:c=!1}=e[0]:[i,a=!0,l=!0,c=!1]=e;const u=()=>{n&&(clearTimeout(n),n=void 0,o(),o=Ho)};return d=>{const p=Lt(i),g=Date.now()-t,h=()=>s=d();return u(),p<=0?(t=Date.now(),h()):(g>p&&(l||!r)?(t=Date.now(),h()):a&&(s=new Promise((y,k)=>{o=c?k:y,n=setTimeout(()=>{t=Date.now(),r=!0,y(h()),u()},Math.max(0,p-g))})),!l&&!n&&(n=setTimeout(()=>r=!0,p)),r=!1,s)}}function tx(e){let t;function n(){return t||(t=e()),t}return n.reset=async()=>{const r=t;t=void 0,r&&await r},n}function nx(e,t){var n;if(typeof e=="number")return e+t;const r=((n=e.match(/^-?\d+\.?\d*/))==null?void 0:n[0])||"",o=e.slice(r.length),s=Number.parseFloat(r)+t;return Number.isNaN(s)?e:s+o}function XT(e,t=200,n={}){return Yp(Z1(t,n),e)}function rx(e,t,n={}){const{eventFilter:r=J1,...o}=n;return Re(e,Yp(r,t),o)}function ox(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:o=!1}=n;let s=null;const i=B(!1);function a(){s&&(clearInterval(s),s=null)}function l(){i.value=!1,a()}function c(){const u=Lt(t);u<=0||(i.value=!0,o&&e(),a(),s=setInterval(e,u))}if(r&&Fo&&c(),tt(t)||typeof t=="function"){const u=Re(t,()=>{i.value&&Fo&&c()});Wn(u)}return Wn(l),{isActive:i,pause:l,resume:c}}function sx(e,t,n={}){const{immediate:r=!0}=n,o=B(!1);let s=null;function i(){s&&(clearTimeout(s),s=null)}function a(){o.value=!1,i()}function l(...c){i(),o.value=!0,s=setTimeout(()=>{o.value=!1,s=null,e(...c)},Lt(t))}return r&&(o.value=!0,Fo&&l()),Wn(a),{isPending:oi(o),start:l,stop:a}}function QT(e,t,n={}){const{throttle:r=0,trailing:o=!0,leading:s=!0,...i}=n;return rx(e,t,{...i,eventFilter:ex(r,o,s)})}function Ys(e){var t;const n=Lt(e);return(t=n==null?void 0:n.$el)!=null?t:n}const _r=Fo?window:void 0,Jp=Fo?window.navigator:void 0;function Ln(...e){let t,n,r,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,o]=e,t=_r):[t,n,r,o]=e,!t)return Ho;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const s=[],i=()=>{s.forEach(u=>u()),s.length=0},a=(u,f,d,p)=>(u.addEventListener(f,d,p),()=>u.removeEventListener(f,d,p)),l=Re(()=>[Ys(t),Lt(o)],([u,f])=>{if(i(),!u)return;const d=Y1(f)?{...f}:f;s.push(...n.flatMap(p=>r.map(g=>a(u,p,g,d))))},{immediate:!0,flush:"post"}),c=()=>{l(),i()};return Wn(c),c}function ix(){const e=B(!1),t=Mt();return t&&Le(()=>{e.value=!0},t),e}function bi(e){const t=ix();return A(()=>(t.value,!!e()))}function ax(e,t,n={}){const{window:r=_r,...o}=n;let s;const i=bi(()=>r&&"MutationObserver"in r),a=()=>{s&&(s.disconnect(),s=void 0)},l=A(()=>{const d=Lt(e),p=(Array.isArray(d)?d:[d]).map(Ys).filter(X1);return new Set(p)}),c=Re(()=>l.value,d=>{a(),i.value&&d.size&&(s=new MutationObserver(t),d.forEach(p=>s.observe(p,o)))},{immediate:!0,flush:"post"}),u=()=>s==null?void 0:s.takeRecords(),f=()=>{a(),c()};return Wn(f),{isSupported:i,stop:f,takeRecords:u}}function lx(e={}){var t;const{window:n=_r,deep:r=!0,triggerOnRemoval:o=!1}=e,s=(t=e.document)!=null?t:n==null?void 0:n.document,i=()=>{var c;let u=s==null?void 0:s.activeElement;if(r)for(;u!=null&&u.shadowRoot;)u=(c=u==null?void 0:u.shadowRoot)==null?void 0:c.activeElement;return u},a=B(),l=()=>{a.value=i()};return n&&(Ln(n,"blur",c=>{c.relatedTarget===null&&l()},!0),Ln(n,"focus",l,!0)),o&&ax(s,c=>{c.filter(u=>u.removedNodes.length).map(u=>Array.from(u.removedNodes)).flat().forEach(u=>{u===a.value&&l()})},{childList:!0,subtree:!0}),l(),a}function cx(e,t={}){const{immediate:n=!0,fpsLimit:r=void 0,window:o=_r}=t,s=B(!1),i=r?1e3/r:null;let a=0,l=null;function c(d){if(!s.value||!o)return;a||(a=d);const p=d-a;if(i&&pn&&"matchMedia"in n&&typeof n.matchMedia=="function");let o;const s=B(!1),i=c=>{s.value=c.matches},a=()=>{o&&("removeEventListener"in o?o.removeEventListener("change",i):o.removeListener(i))},l=Ye(()=>{r.value&&(a(),o=n.matchMedia(Lt(e)),"addEventListener"in o?o.addEventListener("change",i):o.addListener(i),s.value=o.matches)});return Wn(()=>{l(),a(),o=void 0}),s}const YT={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};function JT(e,t={}){function n(u,f){let d=Lt(e[Lt(u)]);return f!=null&&(d=nx(d,f)),typeof d=="number"&&(d=`${d}px`),d}const{window:r=_r,strategy:o="min-width"}=t;function s(u){return r?r.matchMedia(u).matches:!1}const i=u=>ro(()=>`(min-width: ${n(u)})`,t),a=u=>ro(()=>`(max-width: ${n(u)})`,t),l=Object.keys(e).reduce((u,f)=>(Object.defineProperty(u,f,{get:()=>o==="min-width"?i(f):a(f),enumerable:!0,configurable:!0}),u),{});function c(){const u=Object.keys(e).map(f=>[f,i(f)]);return A(()=>u.filter(([,f])=>f.value).map(([f])=>f))}return Object.assign(l,{greaterOrEqual:i,smallerOrEqual:a,greater(u){return ro(()=>`(min-width: ${n(u,.1)})`,t)},smaller(u){return ro(()=>`(max-width: ${n(u,-.1)})`,t)},between(u,f){return ro(()=>`(min-width: ${n(u)}) and (max-width: ${n(f,-.1)})`,t)},isGreater(u){return s(`(min-width: ${n(u,.1)})`)},isGreaterOrEqual(u){return s(`(min-width: ${n(u)})`)},isSmaller(u){return s(`(max-width: ${n(u,-.1)})`)},isSmallerOrEqual(u){return s(`(max-width: ${n(u)})`)},isInBetween(u,f){return s(`(min-width: ${n(u)}) and (max-width: ${n(f,-.1)})`)},current:c,active(){const u=c();return A(()=>u.value.length===0?"":u.value.at(-1))}})}function ef(e,t={}){const{controls:n=!1,navigator:r=Jp}=t,o=bi(()=>r&&"permissions"in r);let s;const i=typeof e=="string"?{name:e}:e,a=B(),l=()=>{s&&(a.value=s.state)},c=tx(async()=>{if(o.value){if(!s)try{s=await r.permissions.query(i),Ln(s,"change",l),l()}catch{a.value="prompt"}return s}});return c(),n?{state:a,isSupported:o,query:c}:a}function ZT(e={}){const{navigator:t=Jp,read:n=!1,source:r,copiedDuring:o=1500,legacy:s=!1}=e,i=bi(()=>t&&"clipboard"in t),a=ef("clipboard-read"),l=ef("clipboard-write"),c=A(()=>i.value||s),u=B(""),f=B(!1),d=sx(()=>f.value=!1,o);function p(){i.value&&k(a.value)?t.clipboard.readText().then(m=>{u.value=m}):u.value=y()}c.value&&n&&Ln(["copy","cut"],p);async function g(m=Lt(r)){c.value&&m!=null&&(i.value&&k(l.value)?await t.clipboard.writeText(m):h(m),u.value=m,f.value=!0,d.start())}function h(m){const v=document.createElement("textarea");v.value=m??"",v.style.position="absolute",v.style.opacity="0",document.body.appendChild(v),v.select(),document.execCommand("copy"),v.remove()}function y(){var m,v,b;return(b=(v=(m=document==null?void 0:document.getSelection)==null?void 0:m.call(document))==null?void 0:v.toString())!=null?b:""}function k(m){return m==="granted"||m==="prompt"}return{isSupported:c,text:u,copied:f,copy:g}}const ux={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof Touch?null:[e.movementX,e.movementY]};function eA(e={}){const{type:t="page",touch:n=!0,resetOnTouchEnds:r=!1,initialValue:o={x:0,y:0},window:s=_r,target:i=s,scroll:a=!0,eventFilter:l}=e;let c=null;const u=B(o.x),f=B(o.y),d=B(null),p=typeof t=="function"?t:ux[t],g=w=>{const E=p(w);c=w,E&&([u.value,f.value]=E,d.value="mouse")},h=w=>{if(w.touches.length>0){const E=p(w.touches[0]);E&&([u.value,f.value]=E,d.value="touch")}},y=()=>{if(!c||!s)return;const w=p(c);c instanceof MouseEvent&&w&&(u.value=w[0]+s.scrollX,f.value=w[1]+s.scrollY)},k=()=>{u.value=o.x,f.value=o.y},m=l?w=>l(()=>g(w),{}):w=>g(w),v=l?w=>l(()=>h(w),{}):w=>h(w),b=l?()=>l(()=>y(),{}):()=>y();if(i){const w={passive:!0};Ln(i,["mousemove","dragover"],m,w),n&&t!=="movement"&&(Ln(i,["touchstart","touchmove"],v,w),r&&Ln(i,"touchend",k,w)),a&&t==="page"&&Ln(s,"scroll",b,{passive:!0})}return{x:u,y:f,sourceType:d}}function fx(e={}){const{controls:t=!1,offset:n=0,immediate:r=!0,interval:o="requestAnimationFrame",callback:s}=e,i=B(Zu()+n),a=()=>i.value=Zu()+n,l=s?()=>{a(),s(i.value)}:a,c=o==="requestAnimationFrame"?cx(l,{immediate:r}):ox(l,o,{immediate:r});return t?{timestamp:i,...c}:i}const dx=Symbol("nuxt-ui.slideover"),px=Ke(e=>{const t=mn({component:"div",props:{}});e.vueApp.provide(dx,t)}),hx=Symbol("nuxt-ui.modal"),gx=Ke(e=>{const t=mn({component:"div",props:{}});e.vueApp.provide(hx,t)}),mx={ui:{primary:"green",gray:"slate",footer:{bottom:{left:"text-sm text-gray-500 dark:text-gray-400",wrapper:"border-t border-gray-200 dark:border-gray-800"}},icons:{dark:"i-heroicons-moon",light:"i-heroicons-sun"}},header:{logo:{alt:"logo nuxt supabase module",light:"/logo-nuxt-supabase-light.png",dark:"/logo-nuxt-supabase-dark.png"},search:!0,colorMode:!0,links:[{icon:"i-simple-icons-x",to:"https://x.com/nuxt_js",target:"_blank","aria-label":"Nuxt on X"},{icon:"i-simple-icons-github",to:"https://github.com/nuxt-modules/supabase",target:"_blank","aria-label":"Module on GitHub"},{icon:"i-simple-icons-nuxtdotjs",to:"https://nuxt.com",target:"_blank","aria-label":"Nuxt official website"},{icon:"i-simple-icons-supabase",to:"https://supabase.com",target:"_blank","aria-label":"Supabase official website"}]},footer:{credits:"Made with Nuxt Studio",colorMode:!1,links:[{icon:"i-simple-icons-x",to:"https://x.com/nuxt_js",target:"_blank","aria-label":"Nuxt on X"},{icon:"i-simple-icons-github",to:"https://github.com/nuxt-modules/supabase",target:"_blank","aria-label":"Module on GitHub"},{icon:"i-simple-icons-nuxtdotjs",to:"https://nuxt.com",target:"_blank","aria-label":"Nuxt official website"},{icon:"i-simple-icons-supabase",to:"https://supabase.com",target:"_blank","aria-label":"Supabase official website"}]},toc:{title:"Table of Contents",bottom:{title:"Community",edit:"https://github.com/nuxt-modules/supabase/edit/main/docs/content",links:[{icon:"i-heroicons-star",label:"Star on GitHub",to:"https://github.com/nuxt-modules/supabase",target:"_blank"},{icon:"i-simple-icons-nuxtdotjs",label:"Nuxt docs",to:"https://nuxt.com",target:"_blank"},{icon:"i-simple-icons-supabase",label:"Supabase docs",to:"https://supabase.com",target:"_blank"}]}}},vx={ui:{variables:{light:{background:"255 255 255",foreground:"var(--color-gray-700)"},dark:{background:"var(--color-gray-900)",foreground:"var(--color-gray-200)"},header:{height:"4rem"}},icons:{dark:"i-heroicons-moon-20-solid",light:"i-heroicons-sun-20-solid",system:"i-heroicons-computer-desktop-20-solid",search:"i-heroicons-magnifying-glass-20-solid",external:"i-heroicons-arrow-up-right-20-solid",chevron:"i-heroicons-chevron-down-20-solid",hash:"i-heroicons-hashtag-20-solid",menu:"i-heroicons-bars-3-20-solid",close:"i-heroicons-x-mark-20-solid",check:"i-heroicons-check-circle-20-solid"},presets:{button:{primary:{color:"white",variant:"solid"},secondary:{color:"gray",variant:"ghost"},input:{color:"white",variant:"outline",ui:{font:"",color:{white:{outline:"ring-1 ring-inset ring-gray-300 dark:ring-gray-700 hover:ring-gray-300 dark:hover:ring-gray-700 hover:bg-gray-100/50 dark:hover:bg-gray-800/50 text-gray-400 dark:text-gray-500 hover:text-gray-700 dark:hover:text-gray-200 focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400"}}}}}}}},yx={nuxt:{},ui:{primary:"green",gray:"cool",colors:["red","orange","amber","yellow","lime","green","emerald","teal","cyan","sky","blue","indigo","violet","purple","fuchsia","pink","rose","primary"],strategy:"merge"}},ze=I0(mx,vx,yx);function ft(){const e=Pe();return e._appConfig||(e._appConfig=qt(ze)),e._appConfig}const Hl="-";function bx(e){const t=_x(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;function o(i){const a=i.split(Hl);return a[0]===""&&a.length!==1&&a.shift(),Zp(a,t)||wx(i)}function s(i,a){const l=n[i]||[];return a&&r[i]?[...l,...r[i]]:l}return{getClassGroupId:o,getConflictingClassGroupIds:s}}function Zp(e,t){var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Zp(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(Hl);return(i=t.validators.find(({validator:a})=>a(s)))==null?void 0:i.classGroupId}const tf=/^\[(.+)\]$/;function wx(e){if(tf.test(e)){const t=tf.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function _x(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return kx(Object.entries(e.classGroups),n).forEach(([s,i])=>{Ba(i,r,s,t)}),r}function Ba(e,t,n,r){e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:nf(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(xx(o)){Ba(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,i])=>{Ba(i,nf(t,s),n,r)})})}function nf(e,t){let n=e;return t.split(Hl).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function xx(e){return e.isThemeGetter}function kx(e,t){return t?e.map(([n,r])=>{const o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,a])=>[t+i,a])):s);return[n,o]}):e}function Ex(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function o(s,i){n.set(s,i),t++,t>e&&(t=0,r=n,n=new Map)}return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return o(s,i),i},set(s,i){n.has(s)?n.set(s,i):o(s,i)}}}const eh="!";function Cx(e){const t=e.separator,n=t.length===1,r=t[0],o=t.length;return function(i){const a=[];let l=0,c=0,u;for(let h=0;hc?u-c:void 0;return{modifiers:a,hasImportantModifier:d,baseClassName:p,maybePostfixModifierPosition:g}}}function Sx(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t}function Px(e){return{cache:Ex(e.cacheSize),splitModifiers:Cx(e),...bx(e)}}const Tx=/\s+/;function Ax(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=new Set;return e.trim().split(Tx).map(i=>{const{modifiers:a,hasImportantModifier:l,baseClassName:c,maybePostfixModifierPosition:u}=n(i);let f=r(u?c.substring(0,u):c),d=!!u;if(!f){if(!u)return{isTailwindClass:!1,originalClassName:i};if(f=r(c),!f)return{isTailwindClass:!1,originalClassName:i};d=!1}const p=Sx(a).join(":");return{isTailwindClass:!0,modifierId:l?p+eh:p,classGroupId:f,originalClassName:i,hasPostfixModifier:d}}).reverse().filter(i=>{if(!i.isTailwindClass)return!0;const{modifierId:a,classGroupId:l,hasPostfixModifier:c}=i,u=a+l;return s.has(u)?!1:(s.add(u),o(l,c).forEach(f=>s.add(a+f)),!0)}).reverse().map(i=>i.originalClassName).join(" ")}function at(){let e=0,t,n,r="";for(;ef(u),e());return n=Px(c),r=n.cache.get,o=n.cache.set,s=a,a(l)}function a(l){const c=r(l);if(c)return c;const u=Ax(l,n);return o(l,u),u}return function(){return s(at.apply(null,arguments))}}function He(e){const t=n=>n[e]||[];return t.isThemeGetter=!0,t}const nh=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ox=/^\d+\/\d+$/,Rx=new Set(["px","full","screen"]),$x=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ix=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Lx=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,jx=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Mx=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function ln(e){return ar(e)||Rx.has(e)||Ox.test(e)}function Pn(e){return Jr(e,"length",Vx)}function ar(e){return!!e&&!Number.isNaN(Number(e))}function bs(e){return Jr(e,"number",ar)}function oo(e){return!!e&&Number.isInteger(Number(e))}function Dx(e){return e.endsWith("%")&&ar(e.slice(0,-1))}function we(e){return nh.test(e)}function Tn(e){return $x.test(e)}const Nx=new Set(["length","size","percentage"]);function Bx(e){return Jr(e,Nx,rh)}function Fx(e){return Jr(e,"position",rh)}const Hx=new Set(["image","url"]);function Ux(e){return Jr(e,Hx,qx)}function zx(e){return Jr(e,"",Wx)}function so(){return!0}function Jr(e,t,n){const r=nh.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1}function Vx(e){return Ix.test(e)&&!Lx.test(e)}function rh(){return!1}function Wx(e){return jx.test(e)}function qx(e){return Mx.test(e)}function Ha(){const e=He("colors"),t=He("spacing"),n=He("blur"),r=He("brightness"),o=He("borderColor"),s=He("borderRadius"),i=He("borderSpacing"),a=He("borderWidth"),l=He("contrast"),c=He("grayscale"),u=He("hueRotate"),f=He("invert"),d=He("gap"),p=He("gradientColorStops"),g=He("gradientColorStopPositions"),h=He("inset"),y=He("margin"),k=He("opacity"),m=He("padding"),v=He("saturate"),b=He("scale"),w=He("sepia"),E=He("skew"),S=He("space"),T=He("translate"),I=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto",we,t],$=()=>[we,t],U=()=>["",ln,Pn],ve=()=>["auto",ar,we],fe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],F=()=>["solid","dashed","dotted","double","none"],ee=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Y=()=>["start","end","center","between","around","evenly","stretch"],je=()=>["","0",we],Ze=()=>["auto","avoid","all","avoid-page","page","left","right","column"],de=()=>[ar,bs],pe=()=>[ar,we];return{cacheSize:500,separator:":",theme:{colors:[so],spacing:[ln,Pn],blur:["none","",Tn,we],brightness:de(),borderColor:[e],borderRadius:["none","","full",Tn,we],borderSpacing:$(),borderWidth:U(),contrast:de(),grayscale:je(),hueRotate:pe(),invert:je(),gap:$(),gradientColorStops:[e],gradientColorStopPositions:[Dx,Pn],inset:V(),margin:V(),opacity:de(),padding:$(),saturate:de(),scale:de(),sepia:je(),skew:pe(),space:$(),translate:$()},classGroups:{aspect:[{aspect:["auto","square","video",we]}],container:["container"],columns:[{columns:[Tn]}],"break-after":[{"break-after":Ze()}],"break-before":[{"break-before":Ze()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...fe(),we]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",oo,we]}],basis:[{basis:V()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",we]}],grow:[{grow:je()}],shrink:[{shrink:je()}],order:[{order:["first","last","none",oo,we]}],"grid-cols":[{"grid-cols":[so]}],"col-start-end":[{col:["auto",{span:["full",oo,we]},we]}],"col-start":[{"col-start":ve()}],"col-end":[{"col-end":ve()}],"grid-rows":[{"grid-rows":[so]}],"row-start-end":[{row:["auto",{span:[oo,we]},we]}],"row-start":[{"row-start":ve()}],"row-end":[{"row-end":ve()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",we]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",we]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...Y()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Y(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Y(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[m]}],px:[{px:[m]}],py:[{py:[m]}],ps:[{ps:[m]}],pe:[{pe:[m]}],pt:[{pt:[m]}],pr:[{pr:[m]}],pb:[{pb:[m]}],pl:[{pl:[m]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",we,t]}],"min-w":[{"min-w":[we,t,"min","max","fit"]}],"max-w":[{"max-w":[we,t,"none","full","min","max","fit","prose",{screen:[Tn]},Tn]}],h:[{h:[we,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[we,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[we,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[we,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Tn,Pn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",bs]}],"font-family":[{font:[so]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",we]}],"line-clamp":[{"line-clamp":["none",ar,bs]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ln,we]}],"list-image":[{"list-image":["none",we]}],"list-style-type":[{list:["none","disc","decimal",we]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[k]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[k]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...F(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ln,Pn]}],"underline-offset":[{"underline-offset":["auto",ln,we]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:$()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",we]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",we]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[k]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...fe(),Fx]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Bx]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ux]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[k]}],"border-style":[{border:[...F(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[k]}],"divide-style":[{divide:F()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...F()]}],"outline-offset":[{"outline-offset":[ln,we]}],"outline-w":[{outline:[ln,Pn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[k]}],"ring-offset-w":[{"ring-offset":[ln,Pn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Tn,zx]}],"shadow-color":[{shadow:[so]}],opacity:[{opacity:[k]}],"mix-blend":[{"mix-blend":[...ee(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ee()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Tn,we]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[f]}],saturate:[{saturate:[v]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[k]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",we]}],duration:[{duration:pe()}],ease:[{ease:["linear","in","out","in-out",we]}],delay:[{delay:pe()}],animate:[{animate:["none","spin","ping","pulse","bounce",we]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[b]}],"scale-x":[{"scale-x":[b]}],"scale-y":[{"scale-y":[b]}],rotate:[{rotate:[oo,we]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",we]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",we]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",we]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ln,Pn,bs]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}function Kx(e,{cacheSize:t,prefix:n,separator:r,extend:o={},override:s={}}){$s(e,"cacheSize",t),$s(e,"prefix",n),$s(e,"separator",r);for(const i in s)Gx(e[i],s[i]);for(const i in o)Xx(e[i],o[i]);return e}function $s(e,t,n){n!==void 0&&(e[t]=n)}function Gx(e,t){if(t)for(const n in t)$s(e,n,t[n])}function Xx(e,t){if(t)for(const n in t){const r=t[n];r!==void 0&&(e[n]=(e[n]||[]).concat(r))}}function Qx(e,...t){return typeof e=="function"?Fa(Ha,e,...t):Fa(()=>Kx(Ha(),e),...t)}const jt=Fa(Ha);function oh(e,t){const n={...e};for(const r of t)delete n[r];return n}function Yx(e,t,n){typeof t=="string"&&(t=t.split(".").map(o=>{const s=Number(o);return isNaN(s)?o:s}));let r=e;for(const o of t){if(r==null)return n;r=r[o]}return r!==void 0?r:n}const wi={to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1}},Jx={as:{type:String,default:"button"},type:{type:String,default:"button"},disabled:{type:Boolean,default:null},active:{type:Boolean,default:void 0},exact:{type:Boolean,default:!1},exactQuery:{type:Boolean,default:!1},exactHash:{type:Boolean,default:!1},inactiveClass:{type:String,default:void 0}},Zx=e=>Object.keys(wi).reduce((n,r)=>(e[r]!==void 0&&(n[r]=e[r]),n),{}),Fr=e=>[...Object.keys(wi),...Object.keys(Jx)].reduce((n,r)=>(e[r]!==void 0&&(n[r]=e[r]),n),{}),ek=Qx({extend:{classGroups:{icons:[e=>/^i-/.test(e)]}}}),tk=$l((e,t,n,r)=>{if(r==="default"||r.startsWith("default.")||r==="popper"||r.startsWith("popper.")||r.endsWith("avatar")&&t==="size"||r.endsWith("chip")&&t==="size"||r.endsWith("badge")&&t==="size"||t==="color"||t==="variant")return!1;if(typeof e[t]=="string"&&typeof n=="string"&&e[t]&&n)return e[t]=ek(e[t],n),!0});function Kt(e,...t){return e==="override"?hi({},...t):tk({},...t)}function rf(e){const t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;e=e.replace(t,function(r,o,s,i){return o+o+s+s+i+i});const n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return n?`${parseInt(n[1],16)} ${parseInt(n[2],16)} ${parseInt(n[3],16)}`:null}const nk="inherit",rk="currentColor",ok="transparent",sk="#000",ik="#fff",ak={50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},lk={50:"rgb(var(--color-gray-50) / )",100:"rgb(var(--color-gray-100) / )",200:"rgb(var(--color-gray-200) / )",300:"rgb(var(--color-gray-300) / )",400:"rgb(var(--color-gray-400) / )",500:"rgb(var(--color-gray-500) / )",600:"rgb(var(--color-gray-600) / )",700:"rgb(var(--color-gray-700) / )",800:"rgb(var(--color-gray-800) / )",900:"rgb(var(--color-gray-900) / )",950:"rgb(var(--color-gray-950) / )"},ck={50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},uk={50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},fk={50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},dk={50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},pk={50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},hk={50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},gk={50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},mk={50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},vk={50:"#EFFDF5",100:"#D9FBE8",200:"#B3F5D1",300:"#75EDAE",400:"#00DC82",500:"#00C16A",600:"#00A155",700:"#007F45",800:"#016538",900:"#0A5331",950:"#052e16"},yk={50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},bk={50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},wk={50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},_k={50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},xk={50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},kk={50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},Ek={50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},Ck={50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},Sk={50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},Pk={50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},Tk={50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},Ak="rgb(var(--ui-background) / )",Ok="rgb(var(--ui-foreground) / )",Rk={50:"rgb(var(--color-primary-50) / )",100:"rgb(var(--color-primary-100) / )",200:"rgb(var(--color-primary-200) / )",300:"rgb(var(--color-primary-300) / )",400:"rgb(var(--color-primary-400) / )",500:"rgb(var(--color-primary-500) / )",600:"rgb(var(--color-primary-600) / )",700:"rgb(var(--color-primary-700) / )",800:"rgb(var(--color-primary-800) / )",900:"rgb(var(--color-primary-900) / )",950:"rgb(var(--color-primary-950) / )",DEFAULT:"rgb(var(--color-primary-DEFAULT) / )"},$k={50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},ws={inherit:nk,current:rk,transparent:ok,black:sk,white:ik,slate:ak,gray:lk,zinc:ck,neutral:uk,stone:fk,red:dk,orange:pk,amber:hk,yellow:gk,lime:mk,green:vk,emerald:yk,teal:bk,cyan:wk,sky:_k,blue:xk,indigo:kk,violet:Ek,purple:Ck,fuchsia:Sk,pink:Pk,rose:Tk,background:Ak,foreground:Ok,primary:Rk,cool:$k},Ik=Ke(()=>{const e=ft(),t=Pe(),n=A(()=>{const o=ws[e.ui.primary],s=ws[e.ui.gray];return o||console.warn(`[@nuxt/ui] Primary color '${e.ui.primary}' not found in Tailwind config`),s||console.warn(`[@nuxt/ui] Gray color '${e.ui.gray}' not found in Tailwind config`),`:root { + */const Er=typeof document<"u";function Hb(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Ie=Object.assign;function Ui(e,t){const n={};for(const r in t){const o=t[r];n[r]=zt(o)?o.map(e):e(o)}return n}const xo=()=>{},zt=Array.isArray,jp=/#/g,Ub=/&/g,zb=/\//g,Vb=/=/g,Wb=/\?/g,Mp=/\+/g,qb=/%5B/g,Kb=/%5D/g,Dp=/%5E/g,Gb=/%60/g,Np=/%7B/g,Xb=/%7C/g,Bp=/%7D/g,Qb=/%20/g;function Dl(e){return encodeURI(""+e).replace(Xb,"|").replace(qb,"[").replace(Kb,"]")}function Yb(e){return Dl(e).replace(Np,"{").replace(Bp,"}").replace(Dp,"^")}function La(e){return Dl(e).replace(Mp,"%2B").replace(Qb,"+").replace(jp,"%23").replace(Ub,"%26").replace(Gb,"`").replace(Np,"{").replace(Bp,"}").replace(Dp,"^")}function Jb(e){return La(e).replace(Vb,"%3D")}function Zb(e){return Dl(e).replace(jp,"%23").replace(Wb,"%3F")}function ew(e){return e==null?"":Zb(e).replace(zb,"%2F")}function No(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const tw=/\/$/,nw=e=>e.replace(tw,"");function zi(e,t,n="/"){let r,o={},s="",i="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(r=t.slice(0,l),s=t.slice(l+1,a>-1?a:t.length),o=e(s)),a>-1&&(r=r||t.slice(0,a),i=t.slice(a,t.length)),r=iw(r??t,n),{fullPath:r+(s&&"?")+s+i,path:r,query:o,hash:No(i)}}function rw(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Ou(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function ow(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&Nr(t.matched[r],n.matched[o])&&Fp(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Nr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Fp(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!sw(e[n],t[n]))return!1;return!0}function sw(e,t){return zt(e)?Ru(e,t):zt(t)?Ru(t,e):e===t}function Ru(e,t){return zt(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function iw(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let s=n.length-1,i,a;for(i=0;i1&&s--;else break;return n.slice(0,s).join("/")+"/"+r.slice(i).join("/")}const Bt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Bo;(function(e){e.pop="pop",e.push="push"})(Bo||(Bo={}));var ko;(function(e){e.back="back",e.forward="forward",e.unknown=""})(ko||(ko={}));function aw(e){if(!e)if(Er){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),nw(e)}const lw=/^[^#]+#/;function cw(e,t){return e.replace(lw,"#")+t}function uw(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const vi=()=>({left:window.scrollX,top:window.scrollY});function fw(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=uw(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function $u(e,t){return(history.state?history.state.position-t:-1)+e}const ja=new Map;function dw(e,t){ja.set(e,t)}function pw(e){const t=ja.get(e);return ja.delete(e),t}let hw=()=>location.protocol+"//"+location.host;function Hp(e,t){const{pathname:n,search:r,hash:o}=t,s=e.indexOf("#");if(s>-1){let a=o.includes(e.slice(s))?e.slice(s).length:1,l=o.slice(a);return l[0]!=="/"&&(l="/"+l),Ou(l,"")}return Ou(n,e)+r+o}function gw(e,t,n,r){let o=[],s=[],i=null;const a=({state:d})=>{const p=Hp(e,location),g=n.value,h=t.value;let y=0;if(d){if(n.value=p,t.value=d,i&&i===g){i=null;return}y=h?d.position-h.position:0}else r(p);o.forEach(k=>{k(n.value,g,{delta:y,type:Bo.pop,direction:y?y>0?ko.forward:ko.back:ko.unknown})})};function l(){i=n.value}function c(d){o.push(d);const p=()=>{const g=o.indexOf(d);g>-1&&o.splice(g,1)};return s.push(p),p}function u(){const{history:d}=window;d.state&&d.replaceState(Ie({},d.state,{scroll:vi()}),"")}function f(){for(const d of s)d();s=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:f}}function Iu(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?vi():null}}function mw(e){const{history:t,location:n}=window,r={value:Hp(e,n)},o={value:t.state};o.value||s(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(l,c,u){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:hw()+e+l;try{t[u?"replaceState":"pushState"](c,"",d),o.value=c}catch(p){console.error(p),n[u?"replace":"assign"](d)}}function i(l,c){const u=Ie({},t.state,Iu(o.value.back,l,o.value.forward,!0),c,{position:o.value.position});s(l,u,!0),r.value=l}function a(l,c){const u=Ie({},o.value,t.state,{forward:l,scroll:vi()});s(u.current,u,!0);const f=Ie({},Iu(r.value,l,null),{position:u.position+1},c);s(l,f,!1),r.value=l}return{location:r,state:o,push:a,replace:i}}function Up(e){e=aw(e);const t=mw(e),n=gw(e,t.state,t.location,t.replace);function r(s,i=!0){i||n.pauseListeners(),history.go(s)}const o=Ie({location:"",base:e,go:r,createHref:cw.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function vw(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Up(e)}function yw(e){return typeof e=="string"||e&&typeof e=="object"}function zp(e){return typeof e=="string"||typeof e=="symbol"}const Vp=Symbol("");var Lu;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Lu||(Lu={}));function Br(e,t){return Ie(new Error,{type:e,[Vp]:!0},t)}function an(e,t){return e instanceof Error&&Vp in e&&(t==null||!!(e.type&t))}const ju="[^/]+?",bw={sensitive:!1,strict:!1,start:!0,end:!0},ww=/[.+*?^${}()[\]/\\]/g;function _w(e,t){const n=Ie({},bw,t),r=[];let o=n.start?"^":"";const s=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(o+="/");for(let f=0;ft.length?t.length===1&&t[0]===80?1:-1:0}function Wp(e,t){let n=0;const r=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const kw={type:0,value:""},Ew=/[a-zA-Z0-9_]/;function Cw(e){if(!e)return[[]];if(e==="/")return[[kw]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${c}": ${p}`)}let n=0,r=n;const o=[];let s;function i(){s&&o.push(s),s=[]}let a=0,l,c="",u="";function f(){c&&(n===0?s.push({type:0,value:c}):n===1||n===2||n===3?(s.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function d(){c+=l}for(;a{i(v)}:xo}function i(f){if(zp(f)){const d=r.get(f);d&&(r.delete(f),n.splice(n.indexOf(d),1),d.children.forEach(i),d.alias.forEach(i))}else{const d=n.indexOf(f);d>-1&&(n.splice(d,1),f.record.name&&r.delete(f.record.name),f.children.forEach(i),f.alias.forEach(i))}}function a(){return n}function l(f){const d=Rw(f,n);n.splice(d,0,f),f.record.name&&!Nu(f)&&r.set(f.record.name,f)}function c(f,d){let p,g={},h,y;if("name"in f&&f.name){if(p=r.get(f.name),!p)throw Br(1,{location:f});y=p.record.name,g=Ie(Du(d.params,p.keys.filter(v=>!v.optional).concat(p.parent?p.parent.keys.filter(v=>v.optional):[]).map(v=>v.name)),f.params&&Du(f.params,p.keys.map(v=>v.name))),h=p.stringify(g)}else if(f.path!=null)h=f.path,p=n.find(v=>v.re.test(h)),p&&(g=p.parse(h),y=p.record.name);else{if(p=d.name?r.get(d.name):n.find(v=>v.re.test(d.path)),!p)throw Br(1,{location:f,currentLocation:d});y=p.record.name,g=Ie({},d.params,f.params),h=p.stringify(g)}const k=[];let m=p;for(;m;)k.unshift(m.record),m=m.parent;return{name:y,path:h,params:g,matched:k,meta:Ow(k)}}e.forEach(f=>s(f));function u(){n.length=0,r.clear()}return{addRoute:s,resolve:c,removeRoute:i,clearRoutes:u,getRoutes:a,getRecordMatcher:o}}function Du(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Tw(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Aw(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Aw(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function Nu(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Ow(e){return e.reduce((t,n)=>Ie(t,n.meta),{})}function Bu(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Rw(e,t){let n=0,r=t.length;for(;n!==r;){const s=n+r>>1;Wp(e,t[s])<0?r=s:n=s+1}const o=$w(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function $w(e){let t=e;for(;t=t.parent;)if(qp(t)&&Wp(e,t)===0)return t}function qp({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Iw(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;os&&La(s)):[r&&La(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function Lw(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=zt(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const jw=Symbol(""),Hu=Symbol(""),Nl=Symbol(""),Bl=Symbol(""),Ma=Symbol("");function no(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function $n(e,t,n,r,o,s=i=>i()){const i=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((a,l)=>{const c=d=>{d===!1?l(Br(4,{from:n,to:t})):d instanceof Error?l(d):yw(d)?l(Br(2,{from:t,to:d})):(i&&r.enterCallbacks[o]===i&&typeof d=="function"&&i.push(d),a())},u=s(()=>e.call(r&&r.instances[o],t,n,c));let f=Promise.resolve(u);e.length<3&&(f=f.then(c)),f.catch(d=>l(d))})}function Vi(e,t,n,r,o=s=>s()){const s=[];for(const i of e)for(const a in i.components){let l=i.components[a];if(!(t!=="beforeRouteEnter"&&!i.instances[a]))if(Mw(l)){const u=(l.__vccOpts||l)[t];u&&s.push($n(u,n,r,i,a,o))}else{let c=l();s.push(()=>c.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${a}" at "${i.path}"`));const f=Hb(u)?u.default:u;i.components[a]=f;const p=(f.__vccOpts||f)[t];return p&&$n(p,n,r,i,a,o)()}))}}return s}function Mw(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Uu(e){const t=Ee(Nl),n=Ee(Bl),r=A(()=>{const l=C(e.to);return t.resolve(l)}),o=A(()=>{const{matched:l}=r.value,{length:c}=l,u=l[c-1],f=n.matched;if(!u||!f.length)return-1;const d=f.findIndex(Nr.bind(null,u));if(d>-1)return d;const p=zu(l[c-2]);return c>1&&zu(u)===p&&f[f.length-1].path!==p?f.findIndex(Nr.bind(null,l[c-2])):d}),s=A(()=>o.value>-1&&Fw(n.params,r.value.params)),i=A(()=>o.value>-1&&o.value===n.matched.length-1&&Fp(n.params,r.value.params));function a(l={}){return Bw(l)?t[C(e.replace)?"replace":"push"](C(e.to)).catch(xo):Promise.resolve()}return{route:r,href:A(()=>r.value.href),isActive:s,isExactActive:i,navigate:a}}const Dw=oe({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Uu,setup(e,{slots:t}){const n=qt(Uu(e)),{options:r}=Ee(Nl),o=A(()=>({[Vu(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Vu(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=t.default&&t.default(n);return e.custom?s:be("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},s)}}}),Nw=Dw;function Bw(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Fw(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!zt(o)||o.length!==r.length||r.some((s,i)=>s!==o[i]))return!1}return!0}function zu(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Vu=(e,t,n)=>e??t??n,Hw=oe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Ee(Ma),o=A(()=>e.route||r.value),s=Ee(Hu,0),i=A(()=>{let c=C(s);const{matched:u}=o.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),a=A(()=>o.value.matched[i.value]);Be(Hu,A(()=>i.value+1)),Be(jw,a),Be(Ma,o);const l=B();return Re(()=>[l.value,a.value,e.name],([c,u,f],[d,p,g])=>{u&&(u.instances[f]=c,p&&p!==u&&c&&c===d&&(u.leaveGuards.size||(u.leaveGuards=p.leaveGuards),u.updateGuards.size||(u.updateGuards=p.updateGuards))),c&&u&&(!p||!Nr(u,p)||!d)&&(u.enterCallbacks[f]||[]).forEach(h=>h(c))},{flush:"post"}),()=>{const c=o.value,u=e.name,f=a.value,d=f&&f.components[u];if(!d)return Wu(n.default,{Component:d,route:c});const p=f.props[u],g=p?p===!0?c.params:typeof p=="function"?p(c):p:null,y=be(d,Ie({},g,t,{onVnodeUnmounted:k=>{k.component.isUnmounted&&(f.instances[u]=null)},ref:l}));return Wu(n.default,{Component:y,route:c})||y}}});function Wu(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Kp=Hw;function Uw(e){const t=Pw(e.routes,e),n=e.parseQuery||Iw,r=e.stringifyQuery||Fu,o=e.history,s=no(),i=no(),a=no(),l=mn(Bt);let c=Bt;Er&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Ui.bind(null,j=>""+j),f=Ui.bind(null,ew),d=Ui.bind(null,No);function p(j,X){let q,se;return zp(j)?(q=t.getRecordMatcher(j),se=X):se=j,t.addRoute(se,q)}function g(j){const X=t.getRecordMatcher(j);X&&t.removeRoute(X)}function h(){return t.getRoutes().map(j=>j.record)}function y(j){return!!t.getRecordMatcher(j)}function k(j,X){if(X=Ie({},X||l.value),typeof j=="string"){const P=zi(n,j,X.path),R=t.resolve({path:P.path},X),M=o.createHref(P.fullPath);return Ie(P,R,{params:d(R.params),hash:No(P.hash),redirectedFrom:void 0,href:M})}let q;if(j.path!=null)q=Ie({},j,{path:zi(n,j.path,X.path).path});else{const P=Ie({},j.params);for(const R in P)P[R]==null&&delete P[R];q=Ie({},j,{params:f(P)}),X.params=f(X.params)}const se=t.resolve(q,X),Se=j.hash||"";se.params=u(d(se.params));const _=rw(r,Ie({},j,{hash:Yb(Se),path:se.path})),x=o.createHref(_);return Ie({fullPath:_,hash:Se,query:r===Fu?Lw(j.query):j.query||{}},se,{redirectedFrom:void 0,href:x})}function m(j){return typeof j=="string"?zi(n,j,l.value.path):Ie({},j)}function v(j,X){if(c!==j)return Br(8,{from:X,to:j})}function b(j){return S(j)}function w(j){return b(Ie(m(j),{replace:!0}))}function E(j){const X=j.matched[j.matched.length-1];if(X&&X.redirect){const{redirect:q}=X;let se=typeof q=="function"?q(j):q;return typeof se=="string"&&(se=se.includes("?")||se.includes("#")?se=m(se):{path:se},se.params={}),Ie({query:j.query,hash:j.hash,params:se.path!=null?{}:j.params},se)}}function S(j,X){const q=c=k(j),se=l.value,Se=j.state,_=j.force,x=j.replace===!0,P=E(q);if(P)return S(Ie(m(P),{state:typeof P=="object"?Ie({},Se,P.state):Se,force:_,replace:x}),X||q);const R=q;R.redirectedFrom=X;let M;return!_&&ow(r,se,q)&&(M=Br(16,{to:R,from:se}),de(se,se,!0,!1)),(M?Promise.resolve(M):O(R,se)).catch(D=>an(D)?an(D,2)?D:Ze(D):Y(D,R,se)).then(D=>{if(D){if(an(D,2))return S(Ie({replace:x},m(D.to),{state:typeof D.to=="object"?Ie({},Se,D.to.state):Se,force:_}),X||R)}else D=$(R,se,!0,x,Se);return V(R,se,D),D})}function T(j,X){const q=v(j,X);return q?Promise.reject(q):Promise.resolve()}function I(j){const X=De.values().next().value;return X&&typeof X.runWithContext=="function"?X.runWithContext(j):j()}function O(j,X){let q;const[se,Se,_]=zw(j,X);q=Vi(se.reverse(),"beforeRouteLeave",j,X);for(const P of se)P.leaveGuards.forEach(R=>{q.push($n(R,j,X))});const x=T.bind(null,j,X);return q.push(x),Me(q).then(()=>{q=[];for(const P of s.list())q.push($n(P,j,X));return q.push(x),Me(q)}).then(()=>{q=Vi(Se,"beforeRouteUpdate",j,X);for(const P of Se)P.updateGuards.forEach(R=>{q.push($n(R,j,X))});return q.push(x),Me(q)}).then(()=>{q=[];for(const P of _)if(P.beforeEnter)if(zt(P.beforeEnter))for(const R of P.beforeEnter)q.push($n(R,j,X));else q.push($n(P.beforeEnter,j,X));return q.push(x),Me(q)}).then(()=>(j.matched.forEach(P=>P.enterCallbacks={}),q=Vi(_,"beforeRouteEnter",j,X,I),q.push(x),Me(q))).then(()=>{q=[];for(const P of i.list())q.push($n(P,j,X));return q.push(x),Me(q)}).catch(P=>an(P,8)?P:Promise.reject(P))}function V(j,X,q){a.list().forEach(se=>I(()=>se(j,X,q)))}function $(j,X,q,se,Se){const _=v(j,X);if(_)return _;const x=X===Bt,P=Er?history.state:{};q&&(se||x?o.replace(j.fullPath,Ie({scroll:x&&P&&P.scroll},Se)):o.push(j.fullPath,Se)),l.value=j,de(j,X,q,x),Ze()}let U;function ve(){U||(U=o.listen((j,X,q)=>{if(!st.listening)return;const se=k(j),Se=E(se);if(Se){S(Ie(Se,{replace:!0}),se).catch(xo);return}c=se;const _=l.value;Er&&dw($u(_.fullPath,q.delta),vi()),O(se,_).catch(x=>an(x,12)?x:an(x,2)?(S(x.to,se).then(P=>{an(P,20)&&!q.delta&&q.type===Bo.pop&&o.go(-1,!1)}).catch(xo),Promise.reject()):(q.delta&&o.go(-q.delta,!1),Y(x,se,_))).then(x=>{x=x||$(se,_,!1),x&&(q.delta&&!an(x,8)?o.go(-q.delta,!1):q.type===Bo.pop&&an(x,20)&&o.go(-1,!1)),V(se,_,x)}).catch(xo)}))}let fe=no(),F=no(),ee;function Y(j,X,q){Ze(j);const se=F.list();return se.length?se.forEach(Se=>Se(j,X,q)):console.error(j),Promise.reject(j)}function je(){return ee&&l.value!==Bt?Promise.resolve():new Promise((j,X)=>{fe.add([j,X])})}function Ze(j){return ee||(ee=!j,ve(),fe.list().forEach(([X,q])=>j?q(j):X()),fe.reset()),j}function de(j,X,q,se){const{scrollBehavior:Se}=e;if(!Er||!Se)return Promise.resolve();const _=!q&&pw($u(j.fullPath,0))||(se||!q)&&history.state&&history.state.scroll||null;return Kn().then(()=>Se(j,X,_)).then(x=>x&&fw(x)).catch(x=>Y(x,j,X))}const pe=j=>o.go(j);let Ve;const De=new Set,st={currentRoute:l,listening:!0,addRoute:p,removeRoute:g,clearRoutes:t.clearRoutes,hasRoute:y,getRoutes:h,resolve:k,options:e,push:b,replace:w,go:pe,back:()=>pe(-1),forward:()=>pe(1),beforeEach:s.add,beforeResolve:i.add,afterEach:a.add,onError:F.add,isReady:je,install(j){const X=this;j.component("RouterLink",Nw),j.component("RouterView",Kp),j.config.globalProperties.$router=X,Object.defineProperty(j.config.globalProperties,"$route",{enumerable:!0,get:()=>C(l)}),Er&&!Ve&&l.value===Bt&&(Ve=!0,b(o.location).catch(Se=>{}));const q={};for(const Se in Bt)Object.defineProperty(q,Se,{get:()=>l.value[Se],enumerable:!0});j.provide(Nl,X),j.provide(Bl,pn(q)),j.provide(Ma,l);const se=j.unmount;De.add(j),j.unmount=function(){De.delete(j),De.size<1&&(c=Bt,U&&U(),U=null,l.value=Bt,Ve=!1,ee=!1),se()}}};function Me(j){return j.reduce((X,q)=>X.then(()=>I(q)),Promise.resolve())}return st}function zw(e,t){const n=[],r=[],o=[],s=Math.max(t.matched.length,e.matched.length);for(let i=0;iNr(c,a))?r.push(a):n.push(a));const l=e.matched[i];l&&(t.matched.find(c=>Nr(c,l))||o.push(l))}return[n,r,o]}function Vw(e){return Ee(Bl)}const Ww=(e,t)=>t.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,n=>{var r;return((r=e.params[n.slice(1)])==null?void 0:r.toString())||""}),Da=(e,t)=>{const n=e.route.matched.find(o=>{var s;return((s=o.components)==null?void 0:s.default)===e.Component.type}),r=t??(n==null?void 0:n.meta.key)??(n&&Ww(e.route,n));return typeof r=="function"?r(e.route):r},qw=(e,t)=>({default:()=>e?be(Hm,e===!0?{}:e,t):t});function Fl(e){return Array.isArray(e)?e:[e]}const Kw="modulepreload",Gw=function(e,t){return e[0]==="."?new URL(e,t).href:e},qu={},Xw=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){const s=document.getElementsByTagName("link"),i=document.querySelector("meta[property=csp-nonce]"),a=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));o=Promise.all(n.map(l=>{if(l=Gw(l,r),l in qu)return;qu[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(!!r)for(let p=s.length-1;p>=0;p--){const g=s[p];if(g.href===l&&(!c||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${u}`))return;const d=document.createElement("link");if(d.rel=c?"stylesheet":Kw,c||(d.as="script",d.crossOrigin=""),d.href=l,a&&d.setAttribute("nonce",a),document.head.appendChild(d),c)return new Promise((p,g)=>{d.addEventListener("load",p),d.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${l}`)))})}))}return o.then(()=>t()).catch(s=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=s,window.dispatchEvent(i),!i.defaultPrevented)throw s})},G=(...e)=>Xw(...e).catch(t=>{const n=new Event("nuxt.preloadError");throw n.payload=t,window.dispatchEvent(n),t}),Qw={layout:"docs"},Ku=[{name:"slug",path:"/:slug(.*)*",meta:Qw||{},component:()=>G(()=>import("./Yk3AXHuD.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url).then(e=>e.default||e)},{name:"index",path:"/",component:()=>G(()=>import("./BQtyLeXl.js").then(e=>e.i),__vite__mapDeps([5,3,4,6,7,8]),import.meta.url).then(e=>e.default||e)}],Gp=(e,t,n)=>(t=t===!0?{}:t,{default:()=>{var r;return t?be(e,t,n):(r=n.default)==null?void 0:r.call(n)}});function Gu(e){const t=(e==null?void 0:e.meta.key)??e.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,n=>{var r;return((r=e.params[n.slice(1)])==null?void 0:r.toString())||""});return typeof t=="function"?t(e):t}function Yw(e,t){return e===t||t===Bt?!1:Gu(e)!==Gu(t)?!0:!e.matched.every((r,o)=>{var s,i;return r.components&&r.components.default===((i=(s=t.matched[o])==null?void 0:s.components)==null?void 0:i.default)})}const Jw={scrollBehavior(e,t,n){var c;const r=Pe(),o=((c=ut().options)==null?void 0:c.scrollBehaviorType)??"auto";let s=n||void 0;const i=typeof e.meta.scrollToTop=="function"?e.meta.scrollToTop(e,t):e.meta.scrollToTop;if(!s&&t&&e&&i!==!1&&Yw(e,t)&&(s={left:0,top:0}),e.path===t.path)return t.hash&&!e.hash?{left:0,top:0}:e.hash?{el:e.hash,top:Xu(e.hash),behavior:o}:!1;const a=u=>!!(u.meta.pageTransition??ka),l=a(t)&&a(e)?"page:transition:finish":"page:finish";return new Promise(u=>{r.hooks.hookOnce(l,async()=>{await new Promise(f=>setTimeout(f,0)),e.hash&&(s={el:e.hash,top:Xu(e.hash),behavior:o}),u(s)})})}};function Xu(e){try{const t=document.querySelector(e);if(t)return Number.parseFloat(getComputedStyle(t).scrollMarginTop)}catch{}return 0}function Qu(e){const t=document.querySelector(e);if(t){const n=parseFloat(getComputedStyle(t).scrollMarginTop);return{el:e,behavior:"smooth",top:n}}}const Zw={scrollBehavior(e,t,n){const r=Pe();if(!(history.state&&history.state.stop))return history.state&&history.state.smooth?{el:history.state.smooth,behavior:"smooth"}:n?new Promise(o=>{r.hooks.hookOnce("page:finish",()=>{setTimeout(()=>o(n),50)})}):e.hash?new Promise(o=>{e.path===t.path?setTimeout(()=>o(Qu(e.hash)),50):r.hooks.hookOnce("page:finish",()=>{setTimeout(()=>o(Qu(e.hash)),50)})}):{top:0}}},e_={hashMode:!1,scrollBehaviorType:"auto"},kt={...e_,...Jw,...Zw},t_=async e=>{var l;let t,n;if(!((l=e.meta)!=null&&l.validate))return;const r=Pe(),o=ut();if(([t,n]=Mo(()=>Promise.resolve(e.meta.validate(e))),t=await t,n(),t)===!0)return;const i=Jo({statusCode:404,statusMessage:`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}}),a=o.beforeResolve(c=>{if(a(),c===e){const u=o.afterEach(async()=>{u(),await r.runWithContext(()=>Sr(i)),window.history.pushState({},"",e.fullPath)});return!1}})},n_=async e=>{let t,n;const r=([t,n]=Mo(()=>Ml(e.path)),t=await t,n(),t);if(r.redirect)return wn(r.redirect,{acceptRelative:!0})?(window.location.href=r.redirect,!1):r.redirect},r_=[t_,n_],Eo={};function o_(e,t,n){const{pathname:r,search:o,hash:s}=t,i=e.indexOf("#");if(i>-1){const c=s.includes(e.slice(i))?e.slice(i).length:1;let u=s.slice(c);return u[0]!=="/"&&(u="/"+u),uu(u,"")}const a=uu(r,e),l=!n||Py(a,n,{trailingSlash:!0})?a:n;return l+(l.includes("?")?"":o)+s}const s_=Ke({name:"nuxt:router",enforce:"pre",async setup(e){var y,k;let t,n,r=wt().app.baseURL;kt.hashMode&&!r.includes("#")&&(r+="#");const o=((y=kt.history)==null?void 0:y.call(kt,r))??(kt.hashMode?vw(r):Up(r)),s=((k=kt.routes)==null?void 0:k.call(kt,Ku))??Ku;let i;const a=Uw({...kt,scrollBehavior:(m,v,b)=>{if(v===Bt){i=b;return}if(kt.scrollBehavior){if(a.options.scrollBehavior=kt.scrollBehavior,"scrollRestoration"in window.history){const w=a.beforeEach(()=>{w(),window.history.scrollRestoration="manual"})}return kt.scrollBehavior(m,Bt,i||b)}},history:o,routes:s});"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),e.vueApp.use(a);const l=mn(a.currentRoute.value);a.afterEach((m,v)=>{l.value=v}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>l.value});const c=o_(r,window.location,e.payload.path),u=mn(a.currentRoute.value),f=()=>{u.value=a.currentRoute.value};e.hook("page:finish",f),a.afterEach((m,v)=>{var b,w,E,S;((w=(b=m.matched[0])==null?void 0:b.components)==null?void 0:w.default)===((S=(E=v.matched[0])==null?void 0:E.components)==null?void 0:S.default)&&f()});const d={};for(const m in u.value)Object.defineProperty(d,m,{get:()=>u.value[m]});e._route=pn(d),e._middleware=e._middleware||{global:[],named:{}};const p=gi();a.afterEach(async(m,v,b)=>{delete e._processingMiddleware,!e.isHydrating&&p.value&&await e.runWithContext(yp),b&&await e.callHook("page:loading:end"),m.matched.length===0&&await e.runWithContext(()=>Sr(Pa({statusCode:404,fatal:!1,statusMessage:`Page not found: ${m.fullPath}`,data:{path:m.fullPath}})))});try{[t,n]=Mo(()=>a.isReady()),await t,n()}catch(m){[t,n]=Mo(()=>e.runWithContext(()=>Sr(m))),await t,n()}const g=c!==a.currentRoute.value.fullPath?a.resolve(c):a.currentRoute.value;f();const h=e.payload.state._layout;return a.beforeEach(async(m,v)=>{var b;await e.callHook("page:loading:start"),m.meta=qt(m.meta),e.isHydrating&&h&&!hr(m.meta.layout)&&(m.meta.layout=h),e._processingMiddleware=!0;{const w=new Set([...r_,...e._middleware.global]);for(const E of m.matched){const S=E.meta.middleware;if(S)for(const T of Fl(S))w.add(T)}{const E=await e.runWithContext(()=>Ml(m.path));if(E.appMiddleware)for(const S in E.appMiddleware)E.appMiddleware[S]?w.add(S):w.delete(S)}for(const E of w){const S=typeof E=="string"?e._middleware.named[E]||await((b=Eo[E])==null?void 0:b.call(Eo).then(I=>I.default||I)):E;if(!S)throw new Error(`Unknown route middleware: '${E}'.`);const T=await e.runWithContext(()=>S(m,v));if(!e.payload.serverRendered&&e.isHydrating&&(T===!1||T instanceof Error)){const I=T||Pa({statusCode:404,statusMessage:`Page Not Found: ${c}`});return await e.runWithContext(()=>Sr(I)),!1}if(T!==!0&&(T||T===!1))return T}}}),a.onError(async()=>{delete e._processingMiddleware,await e.callHook("page:loading:end")}),e.hooks.hookOnce("app:created",async()=>{try{"name"in g&&(g.name=void 0),await a.replace({...g,force:!0}),a.options.scrollBehavior=kt.scrollBehavior}catch(m){await e.runWithContext(()=>Sr(m))}}),{provide:{router:a}}}}),i_="$s";function wr(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);const[n,r]=e;if(!n||typeof n!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+n);if(r!==void 0&&typeof r!="function")throw new Error("[nuxt] [useState] init must be a function: "+r);const o=i_+n,s=Pe(),i=xe(s.payload.state,o);if(i.value===void 0&&r){const a=r();if(tt(a))return s.payload.state[o]=a,a;i.value=a}return i}const a_=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,Xp=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,l_=/^([/\\]\s*){2,}[^/\\]/;function c_(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?a_.test(e):Xp.test(e)||(t.acceptRelative?l_.test(e):!1)}function u_(e){return f_(e,"https://")}function f_(e,t){const n=e.match(Xp);return n?t+e.slice(n[0].length):t+e}function d_(e){const t=(e==null?void 0:e.debug)||!1,n=[];function r(s){var a;if(!s||typeof s!="object"||Object.keys(s).length===0)return;if(!s._context&&t){let l=(a=new Error("tmp").stack)==null?void 0:a.split(` +`)[2].split(" ")[5];l!=null&&l.includes("/")&&(l="anonymous"),s._context=l}const i={};for(const l in s){const c=s[l];typeof c<"u"&&c!==""&&(i[l]=c)}Object.keys(i).filter(l=>!l.startsWith("_")).length>0&&n.push(i)}function o(s){var a;const i={};s!=null&&s.debug&&(i._context={});for(const l in n.sort((c,u)=>(c._priority||0)-(u._priority||0)))for(const c in n[l]){const u=c,f=n[l][c];c.startsWith("_")||(i[c]=f,s!=null&&s.debug&&(i._context[u]=((a=n[l]._context)==null?void 0:a[u])||n[l]._context||"anonymous"))}return p_(i)}return{stack:n,push:r,get:o}}function p_(e){typeof e.indexable<"u"&&(e.indexable=String(e.indexable)!=="false"),typeof e.trailingSlash<"u"&&(e.trailingSlash=String(e.trailingSlash)!=="false"),e.url&&!c_(e.url,{acceptRelative:!0,strict:!1})&&(e.url=u_(e.url));const t=Object.keys(e).sort((r,o)=>r.localeCompare(o)),n={};for(const r of t)n[r]=e[r];return n}const h_=Ke({name:"nuxt-site-config",enforce:"pre",async setup(e){const t=wt()["nuxt-site-config"]||{debug:!1};let n;const r=wr("site-config");return n||(n=d_({debug:t.debug})),n.push({_context:"window",url:window.location.origin}),Pe().payload.serverRendered?n.push(r.value):typeof window.__NUXT_SITE_CONFIG__<"u"&&n.push(window.__NUXT_SITE_CONFIG__),{provide:{nuxtSiteConfig:n}}}}),Na=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),g_=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),yi=e=>{const t=Pe();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{Na(()=>e())}):Na(()=>e())},m_=Ke({name:"nuxt:payload",setup(e){ut().beforeResolve(async(t,n)=>{if(t.path===n.path)return;const r=await Au(t.path);r&&Object.assign(e.static.data,r.data)}),yi(()=>{var t;e.hooks.hook("link:prefetch",async n=>{const{hostname:r}=new URL(n,window.location.href);r===window.location.hostname&&await Au(n)}),((t=navigator.connection)==null?void 0:t.effectiveType)!=="slow-2g"&&setTimeout(mi,1e3)})}}),v_=Ke(()=>{const e=ut();yi(()=>{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})}),y_=Ke(e=>{let t;async function n(){const r=await mi();t&&clearTimeout(t),t=setTimeout(n,gu);try{const o=await $fetch(Ol("builds/latest.json")+`?${Date.now()}`);o.id!==r.id&&e.hooks.callHook("app:manifest:update",o)}catch{}}yi(()=>{t=setTimeout(n,gu)})});function b_(e={}){const t=e.path||window.location.pathname;let n={};try{n=jo(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||(n==null?void 0:n.path)!==t||(n==null?void 0:n.expires){r.clear()}),e.hook("app:chunkError",({error:s})=>{r.add(s)});function o(s){const a="href"in s&&s.href[0]==="#"?n.app.baseURL+s.href:Yo(n.app.baseURL,s.fullPath);b_({path:a,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(o)}),t.onError((s,i)=>{r.has(s)&&o(i)})}}),__=Z(()=>G(()=>import("./I0ocb0e_.js"),__vite__mapDeps([9,10,1,2,3,4,11,12]),import.meta.url).then(e=>e.default||e.default||e)),x_=Z(()=>G(()=>import("./dJxY0Heg.js"),[],import.meta.url).then(e=>e.default||e.default||e)),k_=Z(()=>G(()=>import("./Cp-es949.js"),__vite__mapDeps([13,14,4,15]),import.meta.url).then(e=>e.default||e.default||e)),E_=Z(()=>G(()=>import("./Dye3TMXi.js"),__vite__mapDeps([16,14,4,7,15]),import.meta.url).then(e=>e.default||e.default||e)),C_=Z(()=>G(()=>import("./BXOENA8F.js"),[],import.meta.url).then(e=>e.default||e.default||e)),S_=Z(()=>G(()=>import("./C0v9dJ4q.js"),__vite__mapDeps([17,18]),import.meta.url).then(e=>e.default||e.default||e)),P_=Z(()=>G(()=>import("./BIFcq7Cp.js"),__vite__mapDeps([19,14,4,15]),import.meta.url).then(e=>e.default||e.default||e)),T_=Z(()=>G(()=>import("./jmg4EV2m.js"),[],import.meta.url).then(e=>e.default||e.default||e)),A_=Z(()=>G(()=>import("./NvOymb5l.js"),[],import.meta.url).then(e=>e.default||e.default||e)),O_=Z(()=>G(()=>import("./BMSUmYfj.js"),[],import.meta.url).then(e=>e.default||e.default||e)),R_=Z(()=>G(()=>import("./DWOHbHeS.js"),[],import.meta.url).then(e=>e.default||e.default||e)),$_=Z(()=>G(()=>import("./CVAM_eGo.js"),__vite__mapDeps([20,21,18,22,23]),import.meta.url).then(e=>e.default||e.default||e)),I_=Z(()=>G(()=>import("./BRj95TSo.js"),__vite__mapDeps([24,22]),import.meta.url).then(e=>e.default||e.default||e)),L_=Z(()=>G(()=>import("./Dt5a3v8u.js"),__vite__mapDeps([25,18]),import.meta.url).then(e=>e.default||e.default||e)),j_=Z(()=>G(()=>import("./Bjw2awP0.js"),[],import.meta.url).then(e=>e.default||e.default||e)),M_=Z(()=>G(()=>import("./BStPsjml.js"),__vite__mapDeps([26,10]),import.meta.url).then(e=>e.default||e.default||e)),D_=Z(()=>G(()=>import("./BY4jOTj-.js"),[],import.meta.url).then(e=>e.default||e.default||e)),N_=Z(()=>G(()=>import("./B_o1PmGG.js"),[],import.meta.url).then(e=>e.default||e.default||e)),B_=Z(()=>G(()=>import("./CtIItzco.js"),__vite__mapDeps([27,1,2,3,4,28]),import.meta.url).then(e=>e.default||e.default||e)),F_=Z(()=>G(()=>import("./BYZiYxqN.js"),__vite__mapDeps([29,28]),import.meta.url).then(e=>e.default||e.default||e)),H_=Z(()=>G(()=>import("./B9rFZ2e0.js"),[],import.meta.url).then(e=>e.default||e.default||e)),U_=Z(()=>G(()=>import("./VPULeIg0.js"),[],import.meta.url).then(e=>e.default||e.default||e)),z_=Z(()=>G(()=>import("./DI2CkNWG.js"),__vite__mapDeps([1,2,3,4]),import.meta.url).then(e=>e.default||e.default||e)),V_=Z(()=>G(()=>import("./_m0MazNi.js"),__vite__mapDeps([30,2,3,4]),import.meta.url).then(e=>e.default||e.default||e)),W_=Z(()=>G(()=>import("./mGifWHk2.js"),__vite__mapDeps([31,14,4]),import.meta.url).then(e=>e.default||e.default||e)),q_=Z(()=>G(()=>import("./CC5Gbaz8.js"),[],import.meta.url).then(e=>e.default||e.default||e)),K_=Z(()=>G(()=>import("./xfDAbKM2.js"),[],import.meta.url).then(e=>e.default||e.default||e)),G_=Z(()=>G(()=>import("./Bxob9VmH.js"),__vite__mapDeps([32,31,14,4]),import.meta.url).then(e=>e.default||e.default||e)),X_=Z(()=>G(()=>import("./CrqAEfcT.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Q_=Z(()=>G(()=>import("./BOWHM_U1.js"),__vite__mapDeps([33,21,18,22,23]),import.meta.url).then(e=>e.default||e.default||e)),Y_=Z(()=>G(()=>import("./BihSnfkC.js"),[],import.meta.url).then(e=>e.default||e.default||e)),J_=Z(()=>G(()=>import("./DCZ_m-u4.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Z_=Z(()=>G(()=>import("./Br7vRzce.js"),[],import.meta.url).then(e=>e.default||e.default||e)),e1=Z(()=>G(()=>import("./gi99-bIP.js"),[],import.meta.url).then(e=>e.default||e.default||e)),t1=Z(()=>G(()=>import("./D67-qVWI.js"),[],import.meta.url).then(e=>e.default||e.default||e)),n1=Z(()=>G(()=>import("./rpNVGf9b.js"),[],import.meta.url).then(e=>e.default||e.default||e)),r1=Z(()=>G(()=>import("./feIJPois.js"),[],import.meta.url).then(e=>e.default||e.default||e)),o1=Z(()=>G(()=>import("./BfieE6an.js"),[],import.meta.url).then(e=>e.default||e.default||e)),s1=Z(()=>G(()=>import("./DGc_uQaC.js"),[],import.meta.url).then(e=>e.default||e.default||e)),i1=Z(()=>G(()=>import("./BaChrslv.js"),[],import.meta.url).then(e=>e.default||e.default||e)),a1=Z(()=>G(()=>import("./DCQyn2Vs.js"),[],import.meta.url).then(e=>e.default||e.default||e)),l1=Z(()=>G(()=>import("./DCxgfybx.js"),[],import.meta.url).then(e=>e.default||e.default||e)),c1=Z(()=>G(()=>import("./CKpxsayX.js"),[],import.meta.url).then(e=>e.default||e.default||e)),u1=Z(()=>G(()=>import("./CBUXt5An.js"),[],import.meta.url).then(e=>e.default||e.default||e)),f1=Z(()=>G(()=>import("./hmvgnaFq.js"),[],import.meta.url).then(e=>e.default||e.default||e)),d1=Z(()=>G(()=>import("./g7-hK5Nc.js"),[],import.meta.url).then(e=>e.default||e.default||e)),p1=Z(()=>G(()=>import("./DM_PfLdF.js"),[],import.meta.url).then(e=>e.default||e.default||e)),h1=Z(()=>G(()=>import("./BoaOnXtv.js"),[],import.meta.url).then(e=>e.default||e.default||e)),g1=Z(()=>G(()=>import("./RV-xEppH.js"),[],import.meta.url).then(e=>e.default||e.default||e)),m1=Z(()=>G(()=>Promise.resolve().then(()=>KE),void 0,import.meta.url).then(e=>e.default||e.default||e)),v1=Z(()=>G(()=>import("./DFIGFXFo.js"),__vite__mapDeps([34,35]),import.meta.url).then(e=>e.default||e.default||e)),y1=Z(()=>G(()=>import("./D3senqKB.js"),[],import.meta.url).then(e=>e.default||e.default||e)),b1=Z(()=>G(()=>import("./KDi_ttG3.js"),[],import.meta.url).then(e=>e.default||e.default||e)),w1=Z(()=>G(()=>import("./DxC79xFA.js"),[],import.meta.url).then(e=>e.default||e.default||e)),_1=Z(()=>G(()=>import("./cy871Jy1.js"),[],import.meta.url).then(e=>e.default||e.default||e)),x1=Z(()=>G(()=>import("./BLtTwCqR.js"),[],import.meta.url).then(e=>e.default||e.default||e)),k1=Z(()=>G(()=>import("./DOuGK-Bw.js"),[],import.meta.url).then(e=>e.default||e.default||e)),E1=Z(()=>G(()=>import("./Os5pxZ6b.js"),__vite__mapDeps([36,11,12]),import.meta.url).then(e=>e.default||e.default||e)),C1=Z(()=>G(()=>import("./BT1OWX2I.js"),__vite__mapDeps([37,12]),import.meta.url).then(e=>e.default||e.default||e)),S1=Z(()=>G(()=>import("./BSQmfP6X.js"),__vite__mapDeps([38,11,12]),import.meta.url).then(e=>e.default||e.default||e)),P1=Z(()=>G(()=>import("./CC5oXipo.js"),__vite__mapDeps([39,11,12]),import.meta.url).then(e=>e.default||e.default||e)),T1=Z(()=>G(()=>import("./OfsaR007.js"),__vite__mapDeps([40,11,12]),import.meta.url).then(e=>e.default||e.default||e)),A1=Z(()=>G(()=>import("./Do_OUU_r.js"),__vite__mapDeps([41,11,12]),import.meta.url).then(e=>e.default||e.default||e)),O1=Z(()=>G(()=>import("./Z0nHrzi-.js"),__vite__mapDeps([42,11,12]),import.meta.url).then(e=>e.default||e.default||e)),R1=Z(()=>G(()=>import("./B4Gnni54.js"),__vite__mapDeps([43,11,12]),import.meta.url).then(e=>e.default||e.default||e)),$1=Z(()=>G(()=>import("./DMPPvO_f.js"),__vite__mapDeps([44,11,12]),import.meta.url).then(e=>e.default||e.default||e)),I1=[["Releases",__],["VoltaBoard",x_],["Callout",k_],["Card",E_],["CardGroup",C_],["CodeGroup",S_],["Collapsible",P_],["Field",T_],["FieldGroup",A_],["Shortcut",O_],["Tabs",R_],["ProseCode",$_],["ProseCodeButton",I_],["ProseCodeIcon",L_],["ProseH1",j_],["ProseH2",M_],["ProseH3",D_],["ProseH4",N_],["ContentDoc",B_],["ContentList",F_],["ContentNavigation",H_],["ContentQuery",U_],["ContentRenderer",z_],["ContentRendererMarkdown",V_],["MDCSlot",W_],["DocumentDrivenEmpty",q_],["DocumentDrivenNotFound",K_],["Markdown",G_],["ProseCodeInline",X_],["ProsePre",Q_],["ProseA",Y_],["ProseBlockquote",J_],["ProseEm",Z_],["ProseH5",e1],["ProseH6",t1],["ProseHr",n1],["ProseImg",r1],["ProseLi",o1],["ProseOl",s1],["ProseP",i1],["ProseScript",a1],["ProseStrong",l1],["ProseTable",c1],["ProseTbody",u1],["ProseTd",f1],["ProseTh",d1],["ProseThead",p1],["ProseTr",h1],["ProseUl",g1],["Icon",m1],["IconCSS",v1],["OgImageStatic",y1],["OgImageDynamic",b1],["OgImage",w1],["OgImageCached",_1],["OgImageWithoutCache",x1],["OgImageScreenshot",k1],["GithubRepository",E1],["GithubLink",C1],["GithubReadme",S1],["GithubReleases",P1],["GithubLastRelease",T1],["GithubRelease",A1],["GithubContributors",O1],["GithubFileContributors",R1],["GithubCommits",$1]],L1=Ke({name:"nuxt:global-components",setup(e){for(const[t,n]of I1)e.vueApp.component(t,n),e.vueApp.component("Lazy"+t,n)}}),In={docs:()=>G(()=>import("./DqGQ11Q5.js"),[],import.meta.url).then(e=>e.default||e)},j1=Ke({name:"nuxt:prefetch",setup(e){const t=ut();e.hooks.hook("app:mounted",()=>{t.beforeEach(async n=>{var o;const r=(o=n==null?void 0:n.meta)==null?void 0:o.layout;r&&typeof In[r]=="function"&&await In[r]()})}),e.hooks.hook("link:prefetch",n=>{if(wn(n))return;const r=t.resolve(n);if(!r)return;const o=r.meta.layout;let s=Fl(r.meta.middleware);s=s.filter(i=>typeof i=="string");for(const i of s)typeof Eo[i]=="function"&&Eo[i]();o&&typeof In[o]=="function"&&In[o]()})}});function Qt(e){if(typeof e!="object")return e;var t,n,r=Object.prototype.toString.call(e);if(r==="[object Object]"){if(e.constructor!==Object&&typeof e.constructor=="function"){n=new e.constructor;for(t in e)e.hasOwnProperty(t)&&n[t]!==e[t]&&(n[t]=Qt(e[t]))}else{n={};for(t in e)t==="__proto__"?Object.defineProperty(n,t,{value:Qt(e[t]),configurable:!0,enumerable:!0,writable:!0}):n[t]=Qt(e[t])}return n}if(r==="[object Array]"){for(t=e.length,n=Array(t);t--;)n[t]=Qt(e[t]);return n}return r==="[object Set]"?(n=new Set,e.forEach(function(o){n.add(Qt(o))}),n):r==="[object Map]"?(n=new Map,e.forEach(function(o,s){n.set(Qt(s),Qt(o))}),n):r==="[object Date]"?new Date(+e):r==="[object RegExp]"?(n=new RegExp(e.source,e.flags),n.lastIndex=e.lastIndex,n):r==="[object DataView]"?new e.constructor(Qt(e.buffer)):r==="[object ArrayBuffer]"?e.slice(0):r.slice(-6)==="Array]"?new e.constructor(e):e}const M1={path:"/",watch:!0,decode:e=>jo(decodeURIComponent(e)),encode:e=>encodeURIComponent(typeof e=="string"?e:JSON.stringify(e))},Wi=window.cookieStore;function Rs(e,t){var l;const n={...M1,...t},r=Yu(n)||{};let o;n.maxAge!==void 0?o=n.maxAge*1e3:n.expires&&(o=n.expires.getTime()-Date.now());const s=o!==void 0&&o<=0,i=Qt(s?void 0:r[e]??((l=n.default)==null?void 0:l.call(n))),a=o&&!s?B1(i,o,n.watch&&n.watch!=="shallow"):B(i);{let c=null;try{!Wi&&typeof BroadcastChannel<"u"&&(c=new BroadcastChannel(`nuxt:cookies:${e}`))}catch{}const u=()=>{n.readonly||dp(a.value,r[e])||(N1(e,a.value,n),r[e]=Qt(a.value),c==null||c.postMessage({value:n.encode(a.value)}))},f=p=>{var h;const g=p.refresh?(h=Yu(n))==null?void 0:h[e]:n.decode(p.value);d=!0,r[e]=a.value=g,Kn(()=>{d=!1})};let d=!1;Kr()&&To(()=>{d=!0,u(),c==null||c.close()}),Wi?Wi.onchange=p=>{const g=p.changed.find(h=>h.name===e);g&&f({value:g.value})}:c&&(c.onmessage=({data:p})=>f(p)),n.watch?Re(a,()=>{d||u()},{deep:n.watch!=="shallow"}):u()}return a}function Yu(e={}){return g0(document.cookie,e)}function D1(e,t,n={}){return t==null?vu(e,t,{...n,maxAge:-1}):vu(e,t,n)}function N1(e,t,n={}){document.cookie=D1(e,t,n)}const Ju=2147483647;function B1(e,t,n){let r,o,s=0;const i=n?B(e):{value:e};return Kr()&&To(()=>{o==null||o(),clearTimeout(r)}),hm((a,l)=>{n&&(o=Re(i,l));function c(){s=0,clearTimeout(r);const u=t-s,f=u{if(s+=f,s{const t=wt().public.studio||{},n=vn(),r=Rs("previewToken",{sameSite:"none",secure:!0}),o=wr("studio-client-db",()=>null);async function s(){const i=await G(()=>import("./CEwbEEzK.js"),__vite__mapDeps([45,46]),import.meta.url).then(c=>c.useStudio),{mountPreviewUI:a,initiateIframeCommunication:l}=i();a(),l()}if(t.apiURL){if(Object.prototype.hasOwnProperty.call(n.query,"preview")&&!n.query.preview||!n.query.preview&&!r.value)return;n.query.preview&&(r.value=String(n.query.preview)),window.sessionStorage.setItem("previewToken",String(r.value)),window.sessionStorage.setItem("previewAPI",typeof n.query.staging<"u"?"https://dev-api.nuxt.studio":t.apiURL),e.hook("content:storage",i=>{o.value=i}),e.hook("app:mounted",async()=>{await s()})}});function H1(e){return e==="file:"}function U1(e,t){return t.includes(e)}function z1(){try{return localStorage.getItem("plausible_ignore")==="true"}catch{return!1}}function V1(e={}){const{url:t,referrer:n,deviceWidth:r}=e;return{url:t??location.href,referrer:n??document.referrer,deviceWidth:r??window.innerWidth}}function W1(e,t,n){return fetch(`${e}/api/event`,{method:"POST",headers:{"Content-Type":"text/plain"},body:JSON.stringify(t)}).then(()=>{n==null||n()})}function q1(e,t,n,r){return{n:e,u:n.url,d:t.domain,r:n.referrer,w:n.deviceWidth,h:t.hashMode?1:0,p:r&&r.props?JSON.stringify(r.props):void 0}}function K1(e){const t=location.protocol,r={...{enabled:!0,hashMode:!1,domain:location.hostname,apiHost:"https://plausible.io",ignoredHostnames:["localhost"],logIgnored:!1},...e},o=(a,l)=>W1(r.apiHost,a,l);function s(a,l){var f;const c=V1(l==null?void 0:l.data),u=q1(a,r,c,l);H1(t)||U1(r.domain,r.ignoredHostnames)||z1()?(r.logIgnored||console.info(`[Plausible] ${a}`,u),(f=l==null?void 0:l.callback)==null||f.call(l)):o(u,l==null?void 0:l.callback)}function i(a){s("pageview",a)}return{trackEvent:s,trackPageview:i,options:r}}const G1=Ke({name:"plausible",setup(){const e=wt().public.plausible;return e.enabled?{provide:{plausible:K1({...e,logIgnored:e.logIgnoredEvents,domain:e.domain||window.location.hostname})}}:void 0}});function Wn(e){return Kr()?(To(e),!0):!1}function Qp(e){let t=0,n,r;const o=()=>{t-=1,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return(...s)=>(t+=1,n||(r=qf(!0),n=r.run(()=>e(...s))),Wn(o),n)}function Lt(e){return typeof e=="function"?e():C(e)}const Fo=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const X1=e=>e!=null,Q1=Object.prototype.toString,Y1=e=>Q1.call(e)==="[object Object]",Zu=()=>+Date.now(),Ho=()=>{};function Yp(e,t){function n(...r){return new Promise((o,s)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(s)})}return n}const J1=e=>e();function Z1(e,t={}){let n,r,o=Ho;const s=a=>{clearTimeout(a),o(),o=Ho};return a=>{const l=Lt(e),c=Lt(t.maxWait);return n&&s(n),l<=0||c!==void 0&&c<=0?(r&&(s(r),r=null),Promise.resolve(a())):new Promise((u,f)=>{o=t.rejectOnCancel?f:u,c&&!r&&(r=setTimeout(()=>{n&&s(n),r=null,u(a())},c)),n=setTimeout(()=>{r&&s(r),r=null,u(a())},l)})}}function ex(...e){let t=0,n,r=!0,o=Ho,s,i,a,l,c;!tt(e[0])&&typeof e[0]=="object"?{delay:i,trailing:a=!0,leading:l=!0,rejectOnCancel:c=!1}=e[0]:[i,a=!0,l=!0,c=!1]=e;const u=()=>{n&&(clearTimeout(n),n=void 0,o(),o=Ho)};return d=>{const p=Lt(i),g=Date.now()-t,h=()=>s=d();return u(),p<=0?(t=Date.now(),h()):(g>p&&(l||!r)?(t=Date.now(),h()):a&&(s=new Promise((y,k)=>{o=c?k:y,n=setTimeout(()=>{t=Date.now(),r=!0,y(h()),u()},Math.max(0,p-g))})),!l&&!n&&(n=setTimeout(()=>r=!0,p)),r=!1,s)}}function tx(e){let t;function n(){return t||(t=e()),t}return n.reset=async()=>{const r=t;t=void 0,r&&await r},n}function nx(e,t){var n;if(typeof e=="number")return e+t;const r=((n=e.match(/^-?\d+\.?\d*/))==null?void 0:n[0])||"",o=e.slice(r.length),s=Number.parseFloat(r)+t;return Number.isNaN(s)?e:s+o}function XT(e,t=200,n={}){return Yp(Z1(t,n),e)}function rx(e,t,n={}){const{eventFilter:r=J1,...o}=n;return Re(e,Yp(r,t),o)}function ox(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:o=!1}=n;let s=null;const i=B(!1);function a(){s&&(clearInterval(s),s=null)}function l(){i.value=!1,a()}function c(){const u=Lt(t);u<=0||(i.value=!0,o&&e(),a(),s=setInterval(e,u))}if(r&&Fo&&c(),tt(t)||typeof t=="function"){const u=Re(t,()=>{i.value&&Fo&&c()});Wn(u)}return Wn(l),{isActive:i,pause:l,resume:c}}function sx(e,t,n={}){const{immediate:r=!0}=n,o=B(!1);let s=null;function i(){s&&(clearTimeout(s),s=null)}function a(){o.value=!1,i()}function l(...c){i(),o.value=!0,s=setTimeout(()=>{o.value=!1,s=null,e(...c)},Lt(t))}return r&&(o.value=!0,Fo&&l()),Wn(a),{isPending:oi(o),start:l,stop:a}}function QT(e,t,n={}){const{throttle:r=0,trailing:o=!0,leading:s=!0,...i}=n;return rx(e,t,{...i,eventFilter:ex(r,o,s)})}function Ys(e){var t;const n=Lt(e);return(t=n==null?void 0:n.$el)!=null?t:n}const _r=Fo?window:void 0,Jp=Fo?window.navigator:void 0;function Ln(...e){let t,n,r,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,o]=e,t=_r):[t,n,r,o]=e,!t)return Ho;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const s=[],i=()=>{s.forEach(u=>u()),s.length=0},a=(u,f,d,p)=>(u.addEventListener(f,d,p),()=>u.removeEventListener(f,d,p)),l=Re(()=>[Ys(t),Lt(o)],([u,f])=>{if(i(),!u)return;const d=Y1(f)?{...f}:f;s.push(...n.flatMap(p=>r.map(g=>a(u,p,g,d))))},{immediate:!0,flush:"post"}),c=()=>{l(),i()};return Wn(c),c}function ix(){const e=B(!1),t=Mt();return t&&Le(()=>{e.value=!0},t),e}function bi(e){const t=ix();return A(()=>(t.value,!!e()))}function ax(e,t,n={}){const{window:r=_r,...o}=n;let s;const i=bi(()=>r&&"MutationObserver"in r),a=()=>{s&&(s.disconnect(),s=void 0)},l=A(()=>{const d=Lt(e),p=(Array.isArray(d)?d:[d]).map(Ys).filter(X1);return new Set(p)}),c=Re(()=>l.value,d=>{a(),i.value&&d.size&&(s=new MutationObserver(t),d.forEach(p=>s.observe(p,o)))},{immediate:!0,flush:"post"}),u=()=>s==null?void 0:s.takeRecords(),f=()=>{a(),c()};return Wn(f),{isSupported:i,stop:f,takeRecords:u}}function lx(e={}){var t;const{window:n=_r,deep:r=!0,triggerOnRemoval:o=!1}=e,s=(t=e.document)!=null?t:n==null?void 0:n.document,i=()=>{var c;let u=s==null?void 0:s.activeElement;if(r)for(;u!=null&&u.shadowRoot;)u=(c=u==null?void 0:u.shadowRoot)==null?void 0:c.activeElement;return u},a=B(),l=()=>{a.value=i()};return n&&(Ln(n,"blur",c=>{c.relatedTarget===null&&l()},!0),Ln(n,"focus",l,!0)),o&&ax(s,c=>{c.filter(u=>u.removedNodes.length).map(u=>Array.from(u.removedNodes)).flat().forEach(u=>{u===a.value&&l()})},{childList:!0,subtree:!0}),l(),a}function cx(e,t={}){const{immediate:n=!0,fpsLimit:r=void 0,window:o=_r}=t,s=B(!1),i=r?1e3/r:null;let a=0,l=null;function c(d){if(!s.value||!o)return;a||(a=d);const p=d-a;if(i&&pn&&"matchMedia"in n&&typeof n.matchMedia=="function");let o;const s=B(!1),i=c=>{s.value=c.matches},a=()=>{o&&("removeEventListener"in o?o.removeEventListener("change",i):o.removeListener(i))},l=Ye(()=>{r.value&&(a(),o=n.matchMedia(Lt(e)),"addEventListener"in o?o.addEventListener("change",i):o.addListener(i),s.value=o.matches)});return Wn(()=>{l(),a(),o=void 0}),s}const YT={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};function JT(e,t={}){function n(u,f){let d=Lt(e[Lt(u)]);return f!=null&&(d=nx(d,f)),typeof d=="number"&&(d=`${d}px`),d}const{window:r=_r,strategy:o="min-width"}=t;function s(u){return r?r.matchMedia(u).matches:!1}const i=u=>ro(()=>`(min-width: ${n(u)})`,t),a=u=>ro(()=>`(max-width: ${n(u)})`,t),l=Object.keys(e).reduce((u,f)=>(Object.defineProperty(u,f,{get:()=>o==="min-width"?i(f):a(f),enumerable:!0,configurable:!0}),u),{});function c(){const u=Object.keys(e).map(f=>[f,i(f)]);return A(()=>u.filter(([,f])=>f.value).map(([f])=>f))}return Object.assign(l,{greaterOrEqual:i,smallerOrEqual:a,greater(u){return ro(()=>`(min-width: ${n(u,.1)})`,t)},smaller(u){return ro(()=>`(max-width: ${n(u,-.1)})`,t)},between(u,f){return ro(()=>`(min-width: ${n(u)}) and (max-width: ${n(f,-.1)})`,t)},isGreater(u){return s(`(min-width: ${n(u,.1)})`)},isGreaterOrEqual(u){return s(`(min-width: ${n(u)})`)},isSmaller(u){return s(`(max-width: ${n(u,-.1)})`)},isSmallerOrEqual(u){return s(`(max-width: ${n(u)})`)},isInBetween(u,f){return s(`(min-width: ${n(u)}) and (max-width: ${n(f,-.1)})`)},current:c,active(){const u=c();return A(()=>u.value.length===0?"":u.value.at(-1))}})}function ef(e,t={}){const{controls:n=!1,navigator:r=Jp}=t,o=bi(()=>r&&"permissions"in r);let s;const i=typeof e=="string"?{name:e}:e,a=B(),l=()=>{s&&(a.value=s.state)},c=tx(async()=>{if(o.value){if(!s)try{s=await r.permissions.query(i),Ln(s,"change",l),l()}catch{a.value="prompt"}return s}});return c(),n?{state:a,isSupported:o,query:c}:a}function ZT(e={}){const{navigator:t=Jp,read:n=!1,source:r,copiedDuring:o=1500,legacy:s=!1}=e,i=bi(()=>t&&"clipboard"in t),a=ef("clipboard-read"),l=ef("clipboard-write"),c=A(()=>i.value||s),u=B(""),f=B(!1),d=sx(()=>f.value=!1,o);function p(){i.value&&k(a.value)?t.clipboard.readText().then(m=>{u.value=m}):u.value=y()}c.value&&n&&Ln(["copy","cut"],p);async function g(m=Lt(r)){c.value&&m!=null&&(i.value&&k(l.value)?await t.clipboard.writeText(m):h(m),u.value=m,f.value=!0,d.start())}function h(m){const v=document.createElement("textarea");v.value=m??"",v.style.position="absolute",v.style.opacity="0",document.body.appendChild(v),v.select(),document.execCommand("copy"),v.remove()}function y(){var m,v,b;return(b=(v=(m=document==null?void 0:document.getSelection)==null?void 0:m.call(document))==null?void 0:v.toString())!=null?b:""}function k(m){return m==="granted"||m==="prompt"}return{isSupported:c,text:u,copied:f,copy:g}}const ux={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof Touch?null:[e.movementX,e.movementY]};function eA(e={}){const{type:t="page",touch:n=!0,resetOnTouchEnds:r=!1,initialValue:o={x:0,y:0},window:s=_r,target:i=s,scroll:a=!0,eventFilter:l}=e;let c=null;const u=B(o.x),f=B(o.y),d=B(null),p=typeof t=="function"?t:ux[t],g=w=>{const E=p(w);c=w,E&&([u.value,f.value]=E,d.value="mouse")},h=w=>{if(w.touches.length>0){const E=p(w.touches[0]);E&&([u.value,f.value]=E,d.value="touch")}},y=()=>{if(!c||!s)return;const w=p(c);c instanceof MouseEvent&&w&&(u.value=w[0]+s.scrollX,f.value=w[1]+s.scrollY)},k=()=>{u.value=o.x,f.value=o.y},m=l?w=>l(()=>g(w),{}):w=>g(w),v=l?w=>l(()=>h(w),{}):w=>h(w),b=l?()=>l(()=>y(),{}):()=>y();if(i){const w={passive:!0};Ln(i,["mousemove","dragover"],m,w),n&&t!=="movement"&&(Ln(i,["touchstart","touchmove"],v,w),r&&Ln(i,"touchend",k,w)),a&&t==="page"&&Ln(s,"scroll",b,{passive:!0})}return{x:u,y:f,sourceType:d}}function fx(e={}){const{controls:t=!1,offset:n=0,immediate:r=!0,interval:o="requestAnimationFrame",callback:s}=e,i=B(Zu()+n),a=()=>i.value=Zu()+n,l=s?()=>{a(),s(i.value)}:a,c=o==="requestAnimationFrame"?cx(l,{immediate:r}):ox(l,o,{immediate:r});return t?{timestamp:i,...c}:i}const dx=Symbol("nuxt-ui.slideover"),px=Ke(e=>{const t=mn({component:"div",props:{}});e.vueApp.provide(dx,t)}),hx=Symbol("nuxt-ui.modal"),gx=Ke(e=>{const t=mn({component:"div",props:{}});e.vueApp.provide(hx,t)}),mx={ui:{primary:"green",gray:"slate",footer:{bottom:{left:"text-sm text-gray-500 dark:text-gray-400",wrapper:"border-t border-gray-200 dark:border-gray-800"}},icons:{dark:"i-heroicons-moon",light:"i-heroicons-sun"}},header:{logo:{alt:"logo nuxt supabase module",light:"/logo-nuxt-supabase-light.png",dark:"/logo-nuxt-supabase-dark.png"},search:!0,colorMode:!0,links:[{icon:"i-simple-icons-x",to:"https://x.com/nuxt_js",target:"_blank","aria-label":"Nuxt on X"},{icon:"i-simple-icons-github",to:"https://github.com/nuxt-modules/supabase",target:"_blank","aria-label":"Module on GitHub"},{icon:"i-simple-icons-nuxtdotjs",to:"https://nuxt.com",target:"_blank","aria-label":"Nuxt official website"},{icon:"i-simple-icons-supabase",to:"https://supabase.com",target:"_blank","aria-label":"Supabase official website"}]},footer:{credits:"Made with Nuxt Studio",colorMode:!1,links:[{icon:"i-simple-icons-x",to:"https://x.com/nuxt_js",target:"_blank","aria-label":"Nuxt on X"},{icon:"i-simple-icons-github",to:"https://github.com/nuxt-modules/supabase",target:"_blank","aria-label":"Module on GitHub"},{icon:"i-simple-icons-nuxtdotjs",to:"https://nuxt.com",target:"_blank","aria-label":"Nuxt official website"},{icon:"i-simple-icons-supabase",to:"https://supabase.com",target:"_blank","aria-label":"Supabase official website"}]},toc:{title:"Table of Contents",bottom:{title:"Community",edit:"https://github.com/nuxt-modules/supabase/edit/main/docs/content",links:[{icon:"i-heroicons-star",label:"Star on GitHub",to:"https://github.com/nuxt-modules/supabase",target:"_blank"},{icon:"i-simple-icons-nuxtdotjs",label:"Nuxt docs",to:"https://nuxt.com",target:"_blank"},{icon:"i-simple-icons-supabase",label:"Supabase docs",to:"https://supabase.com",target:"_blank"}]}}},vx={ui:{variables:{light:{background:"255 255 255",foreground:"var(--color-gray-700)"},dark:{background:"var(--color-gray-900)",foreground:"var(--color-gray-200)"},header:{height:"4rem"}},icons:{dark:"i-heroicons-moon-20-solid",light:"i-heroicons-sun-20-solid",system:"i-heroicons-computer-desktop-20-solid",search:"i-heroicons-magnifying-glass-20-solid",external:"i-heroicons-arrow-up-right-20-solid",chevron:"i-heroicons-chevron-down-20-solid",hash:"i-heroicons-hashtag-20-solid",menu:"i-heroicons-bars-3-20-solid",close:"i-heroicons-x-mark-20-solid",check:"i-heroicons-check-circle-20-solid"},presets:{button:{primary:{color:"white",variant:"solid"},secondary:{color:"gray",variant:"ghost"},input:{color:"white",variant:"outline",ui:{font:"",color:{white:{outline:"ring-1 ring-inset ring-gray-300 dark:ring-gray-700 hover:ring-gray-300 dark:hover:ring-gray-700 hover:bg-gray-100/50 dark:hover:bg-gray-800/50 text-gray-400 dark:text-gray-500 hover:text-gray-700 dark:hover:text-gray-200 focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400"}}}}}}}},yx={nuxt:{},ui:{primary:"green",gray:"cool",colors:["red","orange","amber","yellow","lime","green","emerald","teal","cyan","sky","blue","indigo","violet","purple","fuchsia","pink","rose","primary"],strategy:"merge"}},ze=I0(mx,vx,yx);function ft(){const e=Pe();return e._appConfig||(e._appConfig=qt(ze)),e._appConfig}const Hl="-";function bx(e){const t=_x(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;function o(i){const a=i.split(Hl);return a[0]===""&&a.length!==1&&a.shift(),Zp(a,t)||wx(i)}function s(i,a){const l=n[i]||[];return a&&r[i]?[...l,...r[i]]:l}return{getClassGroupId:o,getConflictingClassGroupIds:s}}function Zp(e,t){var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Zp(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(Hl);return(i=t.validators.find(({validator:a})=>a(s)))==null?void 0:i.classGroupId}const tf=/^\[(.+)\]$/;function wx(e){if(tf.test(e)){const t=tf.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function _x(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return kx(Object.entries(e.classGroups),n).forEach(([s,i])=>{Ba(i,r,s,t)}),r}function Ba(e,t,n,r){e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:nf(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(xx(o)){Ba(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,i])=>{Ba(i,nf(t,s),n,r)})})}function nf(e,t){let n=e;return t.split(Hl).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function xx(e){return e.isThemeGetter}function kx(e,t){return t?e.map(([n,r])=>{const o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,a])=>[t+i,a])):s);return[n,o]}):e}function Ex(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function o(s,i){n.set(s,i),t++,t>e&&(t=0,r=n,n=new Map)}return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return o(s,i),i},set(s,i){n.has(s)?n.set(s,i):o(s,i)}}}const eh="!";function Cx(e){const t=e.separator,n=t.length===1,r=t[0],o=t.length;return function(i){const a=[];let l=0,c=0,u;for(let h=0;hc?u-c:void 0;return{modifiers:a,hasImportantModifier:d,baseClassName:p,maybePostfixModifierPosition:g}}}function Sx(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t}function Px(e){return{cache:Ex(e.cacheSize),splitModifiers:Cx(e),...bx(e)}}const Tx=/\s+/;function Ax(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=new Set;return e.trim().split(Tx).map(i=>{const{modifiers:a,hasImportantModifier:l,baseClassName:c,maybePostfixModifierPosition:u}=n(i);let f=r(u?c.substring(0,u):c),d=!!u;if(!f){if(!u)return{isTailwindClass:!1,originalClassName:i};if(f=r(c),!f)return{isTailwindClass:!1,originalClassName:i};d=!1}const p=Sx(a).join(":");return{isTailwindClass:!0,modifierId:l?p+eh:p,classGroupId:f,originalClassName:i,hasPostfixModifier:d}}).reverse().filter(i=>{if(!i.isTailwindClass)return!0;const{modifierId:a,classGroupId:l,hasPostfixModifier:c}=i,u=a+l;return s.has(u)?!1:(s.add(u),o(l,c).forEach(f=>s.add(a+f)),!0)}).reverse().map(i=>i.originalClassName).join(" ")}function at(){let e=0,t,n,r="";for(;ef(u),e());return n=Px(c),r=n.cache.get,o=n.cache.set,s=a,a(l)}function a(l){const c=r(l);if(c)return c;const u=Ax(l,n);return o(l,u),u}return function(){return s(at.apply(null,arguments))}}function He(e){const t=n=>n[e]||[];return t.isThemeGetter=!0,t}const nh=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ox=/^\d+\/\d+$/,Rx=new Set(["px","full","screen"]),$x=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ix=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Lx=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,jx=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Mx=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function ln(e){return ar(e)||Rx.has(e)||Ox.test(e)}function Pn(e){return Jr(e,"length",Vx)}function ar(e){return!!e&&!Number.isNaN(Number(e))}function bs(e){return Jr(e,"number",ar)}function oo(e){return!!e&&Number.isInteger(Number(e))}function Dx(e){return e.endsWith("%")&&ar(e.slice(0,-1))}function we(e){return nh.test(e)}function Tn(e){return $x.test(e)}const Nx=new Set(["length","size","percentage"]);function Bx(e){return Jr(e,Nx,rh)}function Fx(e){return Jr(e,"position",rh)}const Hx=new Set(["image","url"]);function Ux(e){return Jr(e,Hx,qx)}function zx(e){return Jr(e,"",Wx)}function so(){return!0}function Jr(e,t,n){const r=nh.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1}function Vx(e){return Ix.test(e)&&!Lx.test(e)}function rh(){return!1}function Wx(e){return jx.test(e)}function qx(e){return Mx.test(e)}function Ha(){const e=He("colors"),t=He("spacing"),n=He("blur"),r=He("brightness"),o=He("borderColor"),s=He("borderRadius"),i=He("borderSpacing"),a=He("borderWidth"),l=He("contrast"),c=He("grayscale"),u=He("hueRotate"),f=He("invert"),d=He("gap"),p=He("gradientColorStops"),g=He("gradientColorStopPositions"),h=He("inset"),y=He("margin"),k=He("opacity"),m=He("padding"),v=He("saturate"),b=He("scale"),w=He("sepia"),E=He("skew"),S=He("space"),T=He("translate"),I=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto",we,t],$=()=>[we,t],U=()=>["",ln,Pn],ve=()=>["auto",ar,we],fe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],F=()=>["solid","dashed","dotted","double","none"],ee=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Y=()=>["start","end","center","between","around","evenly","stretch"],je=()=>["","0",we],Ze=()=>["auto","avoid","all","avoid-page","page","left","right","column"],de=()=>[ar,bs],pe=()=>[ar,we];return{cacheSize:500,separator:":",theme:{colors:[so],spacing:[ln,Pn],blur:["none","",Tn,we],brightness:de(),borderColor:[e],borderRadius:["none","","full",Tn,we],borderSpacing:$(),borderWidth:U(),contrast:de(),grayscale:je(),hueRotate:pe(),invert:je(),gap:$(),gradientColorStops:[e],gradientColorStopPositions:[Dx,Pn],inset:V(),margin:V(),opacity:de(),padding:$(),saturate:de(),scale:de(),sepia:je(),skew:pe(),space:$(),translate:$()},classGroups:{aspect:[{aspect:["auto","square","video",we]}],container:["container"],columns:[{columns:[Tn]}],"break-after":[{"break-after":Ze()}],"break-before":[{"break-before":Ze()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...fe(),we]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",oo,we]}],basis:[{basis:V()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",we]}],grow:[{grow:je()}],shrink:[{shrink:je()}],order:[{order:["first","last","none",oo,we]}],"grid-cols":[{"grid-cols":[so]}],"col-start-end":[{col:["auto",{span:["full",oo,we]},we]}],"col-start":[{"col-start":ve()}],"col-end":[{"col-end":ve()}],"grid-rows":[{"grid-rows":[so]}],"row-start-end":[{row:["auto",{span:[oo,we]},we]}],"row-start":[{"row-start":ve()}],"row-end":[{"row-end":ve()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",we]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",we]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...Y()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Y(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Y(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[m]}],px:[{px:[m]}],py:[{py:[m]}],ps:[{ps:[m]}],pe:[{pe:[m]}],pt:[{pt:[m]}],pr:[{pr:[m]}],pb:[{pb:[m]}],pl:[{pl:[m]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",we,t]}],"min-w":[{"min-w":[we,t,"min","max","fit"]}],"max-w":[{"max-w":[we,t,"none","full","min","max","fit","prose",{screen:[Tn]},Tn]}],h:[{h:[we,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[we,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[we,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[we,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Tn,Pn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",bs]}],"font-family":[{font:[so]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",we]}],"line-clamp":[{"line-clamp":["none",ar,bs]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ln,we]}],"list-image":[{"list-image":["none",we]}],"list-style-type":[{list:["none","disc","decimal",we]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[k]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[k]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...F(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ln,Pn]}],"underline-offset":[{"underline-offset":["auto",ln,we]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:$()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",we]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",we]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[k]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...fe(),Fx]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Bx]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ux]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[k]}],"border-style":[{border:[...F(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[k]}],"divide-style":[{divide:F()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...F()]}],"outline-offset":[{"outline-offset":[ln,we]}],"outline-w":[{outline:[ln,Pn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[k]}],"ring-offset-w":[{"ring-offset":[ln,Pn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Tn,zx]}],"shadow-color":[{shadow:[so]}],opacity:[{opacity:[k]}],"mix-blend":[{"mix-blend":[...ee(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ee()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Tn,we]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[f]}],saturate:[{saturate:[v]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[k]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",we]}],duration:[{duration:pe()}],ease:[{ease:["linear","in","out","in-out",we]}],delay:[{delay:pe()}],animate:[{animate:["none","spin","ping","pulse","bounce",we]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[b]}],"scale-x":[{"scale-x":[b]}],"scale-y":[{"scale-y":[b]}],rotate:[{rotate:[oo,we]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",we]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",we]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",we]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ln,Pn,bs]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}function Kx(e,{cacheSize:t,prefix:n,separator:r,extend:o={},override:s={}}){$s(e,"cacheSize",t),$s(e,"prefix",n),$s(e,"separator",r);for(const i in s)Gx(e[i],s[i]);for(const i in o)Xx(e[i],o[i]);return e}function $s(e,t,n){n!==void 0&&(e[t]=n)}function Gx(e,t){if(t)for(const n in t)$s(e,n,t[n])}function Xx(e,t){if(t)for(const n in t){const r=t[n];r!==void 0&&(e[n]=(e[n]||[]).concat(r))}}function Qx(e,...t){return typeof e=="function"?Fa(Ha,e,...t):Fa(()=>Kx(Ha(),e),...t)}const jt=Fa(Ha);function oh(e,t){const n={...e};for(const r of t)delete n[r];return n}function Yx(e,t,n){typeof t=="string"&&(t=t.split(".").map(o=>{const s=Number(o);return isNaN(s)?o:s}));let r=e;for(const o of t){if(r==null)return n;r=r[o]}return r!==void 0?r:n}const wi={to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1}},Jx={as:{type:String,default:"button"},type:{type:String,default:"button"},disabled:{type:Boolean,default:null},active:{type:Boolean,default:void 0},exact:{type:Boolean,default:!1},exactQuery:{type:Boolean,default:!1},exactHash:{type:Boolean,default:!1},inactiveClass:{type:String,default:void 0}},Zx=e=>Object.keys(wi).reduce((n,r)=>(e[r]!==void 0&&(n[r]=e[r]),n),{}),Fr=e=>[...Object.keys(wi),...Object.keys(Jx)].reduce((n,r)=>(e[r]!==void 0&&(n[r]=e[r]),n),{}),ek=Qx({extend:{classGroups:{icons:[e=>/^i-/.test(e)]}}}),tk=$l((e,t,n,r)=>{if(r==="default"||r.startsWith("default.")||r==="popper"||r.startsWith("popper.")||r.endsWith("avatar")&&t==="size"||r.endsWith("chip")&&t==="size"||r.endsWith("badge")&&t==="size"||t==="color"||t==="variant")return!1;if(typeof e[t]=="string"&&typeof n=="string"&&e[t]&&n)return e[t]=ek(e[t],n),!0});function Kt(e,...t){return e==="override"?hi({},...t):tk({},...t)}function rf(e){const t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;e=e.replace(t,function(r,o,s,i){return o+o+s+s+i+i});const n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return n?`${parseInt(n[1],16)} ${parseInt(n[2],16)} ${parseInt(n[3],16)}`:null}const nk="inherit",rk="currentColor",ok="transparent",sk="#000",ik="#fff",ak={50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},lk={50:"rgb(var(--color-gray-50) / )",100:"rgb(var(--color-gray-100) / )",200:"rgb(var(--color-gray-200) / )",300:"rgb(var(--color-gray-300) / )",400:"rgb(var(--color-gray-400) / )",500:"rgb(var(--color-gray-500) / )",600:"rgb(var(--color-gray-600) / )",700:"rgb(var(--color-gray-700) / )",800:"rgb(var(--color-gray-800) / )",900:"rgb(var(--color-gray-900) / )",950:"rgb(var(--color-gray-950) / )"},ck={50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},uk={50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},fk={50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},dk={50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},pk={50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},hk={50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},gk={50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},mk={50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},vk={50:"#EFFDF5",100:"#D9FBE8",200:"#B3F5D1",300:"#75EDAE",400:"#00DC82",500:"#00C16A",600:"#00A155",700:"#007F45",800:"#016538",900:"#0A5331",950:"#052e16"},yk={50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},bk={50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},wk={50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},_k={50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},xk={50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},kk={50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},Ek={50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},Ck={50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},Sk={50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},Pk={50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},Tk={50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},Ak="rgb(var(--ui-background) / )",Ok="rgb(var(--ui-foreground) / )",Rk={50:"rgb(var(--color-primary-50) / )",100:"rgb(var(--color-primary-100) / )",200:"rgb(var(--color-primary-200) / )",300:"rgb(var(--color-primary-300) / )",400:"rgb(var(--color-primary-400) / )",500:"rgb(var(--color-primary-500) / )",600:"rgb(var(--color-primary-600) / )",700:"rgb(var(--color-primary-700) / )",800:"rgb(var(--color-primary-800) / )",900:"rgb(var(--color-primary-900) / )",950:"rgb(var(--color-primary-950) / )",DEFAULT:"rgb(var(--color-primary-DEFAULT) / )"},$k={50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},ws={inherit:nk,current:rk,transparent:ok,black:sk,white:ik,slate:ak,gray:lk,zinc:ck,neutral:uk,stone:fk,red:dk,orange:pk,amber:hk,yellow:gk,lime:mk,green:vk,emerald:yk,teal:bk,cyan:wk,sky:_k,blue:xk,indigo:kk,violet:Ek,purple:Ck,fuchsia:Sk,pink:Pk,rose:Tk,background:Ak,foreground:Ok,primary:Rk,cool:$k},Ik=Ke(()=>{const e=ft(),t=Pe(),n=A(()=>{const o=ws[e.ui.primary],s=ws[e.ui.gray];return o||console.warn(`[@nuxt/ui] Primary color '${e.ui.primary}' not found in Tailwind config`),s||console.warn(`[@nuxt/ui] Gray color '${e.ui.gray}' not found in Tailwind config`),`:root { ${Object.entries(o||ws.green).map(([i,a])=>`--color-primary-${i}: ${rf(a)};`).join(` `)} --color-primary-DEFAULT: var(--color-primary-500); @@ -31,4 +31,4 @@ ${Object.entries(s||ws.cool).map(([i,a])=>`--color-gray-${i}: ${rf(a)};`).join(` }`),r={style:[{innerHTML:()=>n.value,tagPriority:-2,id:"nuxt-ui-variables"}]};if(t.isHydrating&&!t.payload.serverRendered){const o=document.createElement("style");o.innerHTML=n.value,o.setAttribute("data-nuxt-ui-variables",""),document.head.appendChild(o),r.script=[{innerHTML:"document.head.removeChild(document.querySelector('[data-nuxt-ui-variables]'))"}]}Zo(r)}),sh=Object.freeze({left:0,top:0,width:16,height:16}),ih=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Ul=Object.freeze({...sh,...ih});Object.freeze({...Ul,body:"",hidden:!1});({...sh});const ah=Object.freeze({width:null,height:null}),lh=Object.freeze({...ah,...ih});function Fk(e,t){const n={...e};for(const r in t){const o=t[r],s=typeof o;r in ah?(o===null||o&&(s==="string"||s==="number"))&&(n[r]=o):s===typeof n[r]&&(n[r]=r==="rotate"?o%4:o)}return n}const Hk=/[\s,]+/;function Uk(e,t){t.split(Hk).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function zk(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/o,s%1===0?r(s):0)}}return t}const Vk=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Wk=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function of(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(Vk);if(r===null||!r.length)return e;const o=[];let s=r.shift(),i=Wk.test(s);for(;;){if(i){const a=parseFloat(s);isNaN(a)?o.push(s):o.push(Math.ceil(a*t*n)/n)}else o.push(s);if(s=r.shift(),s===void 0)return o.join("");i=!i}}const qk=e=>e==="unset"||e==="undefined"||e==="none";function Kk(e,t){const n={...Ul,...e},r={...lh,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(g=>{const h=[],y=g.hFlip,k=g.vFlip;let m=g.rotate;y?k?m+=2:(h.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),h.push("scale(-1 1)"),o.top=o.left=0):k&&(h.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),h.push("scale(1 -1)"),o.top=o.left=0);let v;switch(m<0&&(m-=Math.floor(m/4)*4),m=m%4,m){case 1:v=o.height/2+o.top,h.unshift("rotate(90 "+v.toString()+" "+v.toString()+")");break;case 2:h.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:v=o.width/2+o.left,h.unshift("rotate(-90 "+v.toString()+" "+v.toString()+")");break}m%2===1&&(o.left!==o.top&&(v=o.left,o.left=o.top,o.top=v),o.width!==o.height&&(v=o.width,o.width=o.height,o.height=v)),h.length&&(s=''+s+"")});const i=r.width,a=r.height,l=o.width,c=o.height;let u,f;i===null?(f=a===null?"1em":a==="auto"?c:a,u=of(f,l/c)):(u=i==="auto"?l:i,f=a===null?of(u,c/l):a==="auto"?c:a);const d={},p=(g,h)=>{qk(h)||(d[g]=h.toString())};return p("width",u),p("height",f),d.viewBox=o.left.toString()+" "+o.top.toString()+" "+l.toString()+" "+c.toString(),{attributes:d,body:s}}const Gk=/\sid="(\S+)"/g,Xk="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Qk=0;function Yk(e,t=Xk){const n=[];let r;for(;r=Gk.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const i=typeof t=="function"?t(s):t+(Qk++).toString(),a=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+i+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}function Jk(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'"+e+""}function Zk(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function eE(e){return"data:image/svg+xml,"+Zk(e)}function tE(e){return'url("'+eE(e)+'")'}const sf={...lh,inline:!1},nE={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},rE={display:"inline-block"},Ua={backgroundColor:"currentColor"},ch={backgroundColor:"transparent"},af={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},lf={webkitMask:Ua,mask:Ua,background:ch};for(const e in lf){const t=lf[e];for(const n in af)t[e+n]=af[n]}const Is={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";Is[e+"-flip"]=t,Is[e.slice(0,1)+"-flip"]=t,Is[e+"Flip"]=t});function cf(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const oE=(e,t)=>{const n=Fk(sf,t),r={...nE},o=t.mode||"svg",s={},i=t.style,a=typeof i=="object"&&!(i instanceof Array)?i:{};for(let h in t){const y=t[h];if(y!==void 0)switch(h){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[h]=y===!0||y==="true"||y===1;break;case"flip":typeof y=="string"&&Uk(n,y);break;case"color":s.color=y;break;case"rotate":typeof y=="string"?n[h]=zk(y):typeof y=="number"&&(n[h]=y);break;case"ariaHidden":case"aria-hidden":y!==!0&&y!=="true"&&delete r["aria-hidden"];break;default:{const k=Is[h];k?(y===!0||y==="true"||y===1)&&(n[k]=!0):sf[h]===void 0&&(r[h]=y)}}}const l=Kk(e,n),c=l.attributes;if(n.inline&&(s.verticalAlign="-0.125em"),o==="svg"){r.style={...s,...a},Object.assign(r,c);let h=0,y=t.id;return typeof y=="string"&&(y=y.replace(/-/g,"_")),r.innerHTML=Yk(l.body,y?()=>y+"ID"+h++:"iconifyVue"),be("svg",r)}const{body:u,width:f,height:d}=e,p=o==="mask"||(o==="bg"?!1:u.indexOf("currentColor")!==-1),g=Jk(u,{...c,width:f+"",height:d+""});return r.style={...s,"--svg":tE(g),width:cf(c.width),height:cf(c.height),...rE,...p?Ua:ch,...a},be("span",r)},sE=Object.create(null),iE=oe({inheritAttrs:!1,render(){const e=this.$attrs,t=e.icon,n=typeof t=="string"?sE[t]:typeof t=="object"?t:null;return n===null||typeof n!="object"||typeof n.body!="string"?this.$slots.default?this.$slots.default():null:oE({...Ul,...n},e)}}),Co=/^[a-z0-9]+(-[a-z0-9]+)*$/,_i=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const a=o.pop(),l=o.pop(),c={provider:o.length>0?o[0]:r,prefix:l,name:a};return t&&!Ls(c)?null:c}const s=o[0],i=s.split("-");if(i.length>1){const a={provider:r,prefix:i.shift(),name:i.join("-")};return t&&!Ls(a)?null:a}if(n&&r===""){const a={provider:r,prefix:"",name:s};return t&&!Ls(a,n)?null:a}return null},Ls=(e,t)=>e?!!((e.provider===""||e.provider.match(Co))&&(t&&e.prefix===""||e.prefix.match(Co))&&e.name.match(Co)):!1,uh=Object.freeze({left:0,top:0,width:16,height:16}),Js=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),zl=Object.freeze({...uh,...Js}),za=Object.freeze({...zl,body:"",hidden:!1});function aE(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function uf(e,t){const n=aE(e,t);for(const r in za)r in Js?r in e&&!(r in n)&&(n[r]=Js[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function lE(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const a=r[i]&&r[i].parent,l=a&&s(a);l&&(o[i]=[a].concat(l))}return o[i]}return Object.keys(n).concat(Object.keys(r)).forEach(s),o}function cE(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let s={};function i(a){s=uf(r[a]||o[a],s)}return i(t),n.forEach(i),uf(e,s)}function fh(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=lE(e);for(const o in r){const s=r[o];s&&(t(o,cE(e,o,s)),n.push(o))}return n}const uE={provider:"",aliases:{},not_found:{},...uh};function qi(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function dh(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!qi(e,uE))return null;const n=t.icons;for(const o in n){const s=n[o];if(!o.match(Co)||typeof s.body!="string"||!qi(s,za))return null}const r=t.aliases||Object.create(null);for(const o in r){const s=r[o],i=s.parent;if(!o.match(Co)||typeof i!="string"||!n[i]&&!r[i]||!qi(s,za))return null}return t}const ff=Object.create(null);function fE(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function mr(e,t){const n=ff[e]||(ff[e]=Object.create(null));return n[t]||(n[t]=fE(e,t))}function Vl(e,t){return dh(t)?fh(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function dE(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let Uo=!1;function ph(e){return typeof e=="boolean"&&(Uo=e),Uo}function pE(e){const t=typeof e=="string"?_i(e,!0,Uo):e;if(t){const n=mr(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function hE(e,t){const n=_i(e,!0,Uo);if(!n)return!1;const r=mr(n.provider,n.prefix);return dE(r,n.name,t)}function gE(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Uo&&!t&&!e.prefix){let o=!1;return dh(e)&&(e.prefix="",fh(e,(s,i)=>{i&&hE(s,i)&&(o=!0)})),o}const n=e.prefix;if(!Ls({provider:t,prefix:n,name:"a"}))return!1;const r=mr(t,n);return!!Vl(r,e)}const mE=Object.freeze({width:null,height:null}),vE=Object.freeze({...mE,...Js});""+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);const Va=Object.create(null);function yE(e,t){Va[e]=t}function Wa(e){return Va[e]||Va[""]}function Wl(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const ql=Object.create(null),io=["https://api.simplesvg.com","https://api.unisvg.com"],js=[];for(;io.length>0;)io.length===1||Math.random()>.5?js.push(io.shift()):js.push(io.pop());ql[""]=Wl({resources:["https://api.iconify.design"].concat(js)});function qa(e,t){const n=Wl(t);return n===null?!1:(ql[e]=n,!0)}function Kl(e){return ql[e]}const bE=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let df=bE();function wE(e,t){const n=Kl(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const s=t+".json?icons=";r=n.maxURL-o-n.path.length-s.length}return r}function _E(e){return e===404}const xE=(e,t,n)=>{const r=[],o=wE(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},a=0;return n.forEach((l,c)=>{a+=l.length+1,a>=o&&c>0&&(r.push(i),i={type:s,provider:e,prefix:t,icons:[]},a=l.length),i.icons.push(l)}),r.push(i),r};function kE(e){if(typeof e=="string"){const t=Kl(e);if(t)return t.path}return"/"}const EE=(e,t,n)=>{if(!df){n("abort",424);return}let r=kE(t.provider);switch(t.type){case"icons":{const s=t.prefix,a=t.icons.join(","),l=new URLSearchParams({icons:a});r+=s+".json?"+l.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let o=503;df(e+r).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(_E(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",o)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",o)})},CE={prepare:xE,send:EE};function SE(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const s=o.provider,i=o.prefix,a=o.name,l=n[s]||(n[s]=Object.create(null)),c=l[i]||(l[i]=mr(s,i));let u;a in c.icons?u=t.loaded:i===""||c.missing.has(a)?u=t.missing:u=t.pending;const f={provider:s,prefix:i,name:a};u.push(f)}),t}function hh(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function PE(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(s=>{const i=s.icons,a=i.pending.length;i.pending=i.pending.filter(l=>{if(l.prefix!==o)return!0;const c=l.name;if(e.icons[c])i.loaded.push({provider:r,prefix:o,name:c});else if(e.missing.has(c))i.missing.push({provider:r,prefix:o,name:c});else return n=!0,!0;return!1}),i.pending.length!==a&&(n||hh([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let TE=0;function AE(e,t,n){const r=TE++,o=hh.bind(null,n,r);if(!t.pending.length)return o;const s={id:r,icons:t,callback:e,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}function OE(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const s=typeof o=="string"?_i(o,t,n):o;s&&r.push(s)}),r}var RE={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function $E(e,t,n,r){const o=e.resources.length,s=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let E=e.resources.slice(0);for(i=[];E.length>1;){const S=Math.floor(Math.random()*E.length);i.push(E[S]),E=E.slice(0,S).concat(E.slice(S+1))}i=i.concat(E)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const a=Date.now();let l="pending",c=0,u,f=null,d=[],p=[];typeof r=="function"&&p.push(r);function g(){f&&(clearTimeout(f),f=null)}function h(){l==="pending"&&(l="aborted"),g(),d.forEach(E=>{E.status==="pending"&&(E.status="aborted")}),d=[]}function y(E,S){S&&(p=[]),typeof E=="function"&&p.push(E)}function k(){return{startTime:a,payload:t,status:l,queriesSent:c,queriesPending:d.length,subscribe:y,abort:h}}function m(){l="failed",p.forEach(E=>{E(void 0,u)})}function v(){d.forEach(E=>{E.status==="pending"&&(E.status="aborted")}),d=[]}function b(E,S,T){const I=S!=="success";switch(d=d.filter(O=>O!==E),l){case"pending":break;case"failed":if(I||!e.dataAfterTimeout)return;break;default:return}if(S==="abort"){u=T,m();return}if(I){u=T,d.length||(i.length?w():m());return}if(g(),v(),!e.random){const O=e.resources.indexOf(E.resource);O!==-1&&O!==e.index&&(e.index=O)}l="completed",p.forEach(O=>{O(T)})}function w(){if(l!=="pending")return;g();const E=i.shift();if(E===void 0){if(d.length){f=setTimeout(()=>{g(),l==="pending"&&(v(),m())},e.timeout);return}m();return}const S={status:"pending",resource:E,callback:(T,I)=>{b(S,T,I)}};d.push(S),c++,f=setTimeout(w,e.rotate),n(E,t,S.callback)}return setTimeout(w),k}function gh(e){const t={...RE,...e};let n=[];function r(){n=n.filter(a=>a().status==="pending")}function o(a,l,c){const u=$E(t,a,l,(f,d)=>{r(),c&&c(f,d)});return n.push(u),u}function s(a){return n.find(l=>a(l))||null}return{query:o,find:s,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:r}}function pf(){}const Ki=Object.create(null);function IE(e){if(!Ki[e]){const t=Kl(e);if(!t)return;const n=gh(t),r={config:t,redundancy:n};Ki[e]=r}return Ki[e]}function LE(e,t,n){let r,o;if(typeof e=="string"){const s=Wa(e);if(!s)return n(void 0,424),pf;o=s.send;const i=IE(e);i&&(r=i.redundancy)}else{const s=Wl(e);if(s){r=gh(s);const i=e.resources?e.resources[0]:"",a=Wa(i);a&&(o=a.send)}}return!r||!o?(n(void 0,424),pf):r.query(t,o,n)().abort}const hf="iconify2",zo="iconify",mh=zo+"-count",gf=zo+"-version",vh=36e5,jE=168;function Ka(e,t){try{return e.getItem(t)}catch{}}function Gl(e,t,n){try{return e.setItem(t,n),!0}catch{}}function mf(e,t){try{e.removeItem(t)}catch{}}function Ga(e,t){return Gl(e,mh,t.toString())}function Xa(e){return parseInt(Ka(e,mh))||0}const xi={local:!0,session:!0},yh={local:new Set,session:new Set};let Xl=!1;function ME(e){Xl=e}let _s=typeof window>"u"?{}:window;function bh(e){const t=e+"Storage";try{if(_s&&_s[t]&&typeof _s[t].length=="number")return _s[t]}catch{}xi[e]=!1}function wh(e,t){const n=bh(e);if(!n)return;const r=Ka(n,gf);if(r!==hf){if(r){const a=Xa(n);for(let l=0;l{const l=zo+a.toString(),c=Ka(n,l);if(typeof c=="string"){try{const u=JSON.parse(c);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>o&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,a))return!0}catch{}mf(n,l)}};let i=Xa(n);for(let a=i-1;a>=0;a--)s(a)||(a===i-1?(i--,Ga(n,i)):yh[e].add(a))}function _h(){if(!Xl){ME(!0);for(const e in xi)wh(e,t=>{const n=t.data,r=t.provider,o=n.prefix,s=mr(r,o);if(!Vl(s,n).length)return!1;const i=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function DE(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in xi)wh(r,o=>{const s=o.data;return o.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function NE(e,t){Xl||_h();function n(r){let o;if(!xi[r]||!(o=bh(r)))return;const s=yh[r];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=Xa(o),!Ga(o,i+1))return;const a={cached:Math.floor(Date.now()/vh),provider:e.provider,data:t};return Gl(o,zo+i.toString(),JSON.stringify(a))}t.lastModified&&!DE(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function vf(){}function BE(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,PE(e)}))}function FE(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let s;if(!o||!(s=Wa(n)))return;s.prepare(n,r,o).forEach(a=>{LE(n,a,l=>{if(typeof l!="object")a.icons.forEach(c=>{e.missing.add(c)});else try{const c=Vl(e,l);if(!c.length)return;const u=e.pendingIcons;u&&c.forEach(f=>{u.delete(f)}),NE(e,l)}catch(c){console.error(c)}BE(e)})})}))}const HE=(e,t)=>{const n=OE(e,!0,ph()),r=SE(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,vf)}),()=>{l=!1}}const o=Object.create(null),s=[];let i,a;return r.pending.forEach(l=>{const{provider:c,prefix:u}=l;if(u===a&&c===i)return;i=c,a=u,s.push(mr(c,u));const f=o[c]||(o[c]=Object.create(null));f[u]||(f[u]=[])}),r.pending.forEach(l=>{const{provider:c,prefix:u,name:f}=l,d=mr(c,u),p=d.pendingIcons||(d.pendingIcons=new Set);p.has(f)||(p.add(f),o[c][u].push(f))}),s.forEach(l=>{const{provider:c,prefix:u}=l;o[c][u].length&&FE(l,o[c][u])}),t?AE(t,r,s):vf},UE=e=>new Promise((t,n)=>{const r=typeof e=="string"?_i(e,!0):e;if(!r){n(e);return}HE([r||e],o=>{if(o.length&&r){const s=pE(r);if(s){t({...zl,...s});return}}n(e)})});({...vE});const yf={backgroundColor:"currentColor"},zE={backgroundColor:"transparent"},bf={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},wf={webkitMask:yf,mask:yf,background:zE};for(const e in wf){const t=wf[e];for(const n in bf)t[e+n]=bf[n]}const Gi={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";Gi[e+"-flip"]=t,Gi[e.slice(0,1)+"-flip"]=t,Gi[e+"Flip"]=t});ph(!0);yE("",CE);if(typeof document<"u"&&typeof window<"u"){_h();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!gE(r))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const r="IconifyProviders["+n+"] is invalid.";try{const o=t[n];if(typeof o!="object"||!o||o.resources===void 0)continue;qa(n,o)||console.error(r)}catch{console.error(r)}}}}({...zl});const VE=["fluent-emoji-high-contrast","material-symbols-light","cryptocurrency-color","icon-park-outline","icon-park-twotone","fluent-emoji-flat","emojione-monotone","streamline-emojis","heroicons-outline","simple-line-icons","material-symbols","flat-color-icons","icon-park-solid","pepicons-pencil","heroicons-solid","pepicons-print","cryptocurrency","pixelarticons","system-uicons","bitcoin-icons","devicon-plain","entypo-social","token-branded","grommet-icons","vscode-icons","pepicons-pop","svg-spinners","fluent-emoji","simple-icons","circle-flags","medical-icon","icomoon-free","majesticons","radix-icons","humbleicons","fa6-regular","rivet-icons","emojione-v1","skill-icons","academicons","healthicons","fluent-mdl2","teenyicons","ant-design","gravity-ui","akar-icons","lets-icons","streamline","fa6-brands","file-icons","game-icons","foundation","fa-regular","mono-icons","hugeicons","iconamoon","zondicons","mdi-light","eos-icons","gridicons","icon-park","heroicons","fa6-solid","meteocons","arcticons","dashicons","fa-brands","websymbol","fontelico","mingcute","flowbite","marketeq","bytesize","guidance","openmoji","emojione","nonicons","brandico","flagpack","fa-solid","fontisto","si-glyph","pepicons","iconoir","tdesign","clarity","octicon","codicon","pajamas","formkit","line-md","twemoji","noto-v1","fxemoji","devicon","raphael","flat-ui","topcoat","feather","tabler","carbon","lucide","memory","mynaui","circum","fluent","nimbus","entypo","icons8","subway","vaadin","solar","basil","typcn","charm","prime","quill","logos","token","covid","maki","weui","gala","mage","ooui","noto","unjs","flag","iwwa","zmdi","bpmn","mdi","ion","uil","bxs","cil","uiw","uim","uit","uis","jam","oui","bxl","cib","cbi","cif","gis","map","geo","fad","eva","wpf","whh","ic","ph","ri","bi","bx","gg","ci","ep","fe","mi","f7","ei","wi","la","fa","oi","et","el","ls","vs","il","ps"];function WE(e=""){let t,n="";if(e[0]==="@"&&e.includes(":")&&(n=e.split(":")[0].slice(1),e=e.split(":").slice(1).join(":")),e.startsWith("i-")){e=e.replace(/^i-/,"");for(const r of VE)if(e.startsWith(r)){t=r,e=e.slice(r.length+1);break}}else if(e.includes(":")){const[r,o]=e.split(":");t=r,e=o}return{provider:n,prefix:t||"",name:e||""}}const qE=oe({__name:"Icon",props:{name:{type:String,required:!0},size:{type:String,default:""}},async setup(e){let t,n;const r=Pe(),o=ft(),s=e;Re(()=>{var y;return(y=o.nuxtIcon)==null?void 0:y.iconifyApiOptions},()=>{var y,k,m,v,b,w;if((k=(y=o.nuxtIcon)==null?void 0:y.iconifyApiOptions)!=null&&k.url){try{new URL(o.nuxtIcon.iconifyApiOptions.url)}catch{console.warn("Nuxt Icon: Invalid custom Iconify API URL");return}if((v=(m=o.nuxtIcon)==null?void 0:m.iconifyApiOptions)!=null&&v.publicApiFallback){qa("custom",{resources:[(b=o.nuxtIcon)==null?void 0:b.iconifyApiOptions.url],index:0});return}qa("",{resources:[(w=o.nuxtIcon)==null?void 0:w.iconifyApiOptions.url]})}},{immediate:!0});const i=wr("icons",()=>({})),a=B(!1),l=A(()=>{var y,k;return(k=(y=o.nuxtIcon)==null?void 0:y.aliases)!=null&&k[s.name]?o.nuxtIcon.aliases[s.name]:s.name}),c=A(()=>WE(l.value)),u=A(()=>[c.value.provider,c.value.prefix,c.value.name].filter(Boolean).join(":")),f=A(()=>{var y;return(y=i.value)==null?void 0:y[u.value]}),d=A(()=>{var y;return(y=r.vueApp)==null?void 0:y.component(l.value)}),p=A(()=>{var k,m,v;if(!s.size&&typeof((k=o.nuxtIcon)==null?void 0:k.size)=="boolean"&&!((m=o.nuxtIcon)!=null&&m.size))return;const y=s.size||((v=o.nuxtIcon)==null?void 0:v.size)||"1em";return String(Number(y))===y?`${y}px`:y}),g=A(()=>{var y;return((y=o==null?void 0:o.nuxtIcon)==null?void 0:y.class)??"icon"});async function h(){var y;d.value||(y=i.value)!=null&&y[u.value]||(a.value=!0,i.value[u.value]=await UE(c.value).catch(()=>{}),a.value=!1)}return Re(l,h),!d.value&&([t,n]=_l(()=>h()),t=await t,n()),(y,k)=>a.value?(L(),ne("span",{key:0,class:W(g.value),style:Hn({width:p.value,height:p.value})},null,6)):f.value?(L(),re(C(iE),{key:1,icon:f.value,class:W(g.value),width:p.value,height:p.value},null,8,["icon","class","width","height"])):d.value?(L(),re(gr(d.value),{key:2,class:W(g.value),width:p.value,height:p.value},null,8,["class","width","height"])):(L(),ne("span",{key:3,class:W(g.value),style:Hn({fontSize:p.value,lineHeight:p.value,width:p.value,height:p.value})},[ye(y.$slots,"default",{},()=>[Je(Ne(e.name),1)],!0)],6))}}),Dt=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},xh=Dt(qE,[["__scopeId","data-v-d997b5c8"]]),KE=Object.freeze(Object.defineProperty({__proto__:null,default:xh},Symbol.toStringTag,{value:"Module"})),GE=oe({props:{name:{type:String,required:!0},dynamic:{type:Boolean,default:!1}},setup(e){const t=ft();return{dynamic:A(()=>{var r,o;return e.dynamic||((o=(r=t.ui)==null?void 0:r.icons)==null?void 0:o.dynamic)})}}});function XE(e,t,n,r,o,s){const i=xh;return e.dynamic?(L(),re(i,{key:0,name:e.name},null,8,["name"])):(L(),ne("span",{key:1,class:W(e.name)},null,2))}const _t=Dt(GE,[["render",XE]]);async function kh(e,t=ut()){const{path:n,matched:r}=t.resolve(e);if(!r.length||(t._routePreloaded||(t._routePreloaded=new Set),t._routePreloaded.has(n)))return;const o=t._preloadPromises=t._preloadPromises||[];if(o.length>4)return Promise.all(o).then(()=>kh(e,t));t._routePreloaded.add(n);const s=r.map(i=>{var a;return(a=i.components)==null?void 0:a.default}).filter(i=>typeof i=="function");for(const i of s){const a=Promise.resolve(i()).catch(()=>{}).finally(()=>o.splice(o.indexOf(a)));o.push(a)}await Promise.all(o)}const QE=(...e)=>e.find(t=>t!==void 0);function YE(e){const t=e.componentName||"NuxtLink";function n(o,s){if(!o||e.trailingSlash!=="append"&&e.trailingSlash!=="remove")return o;if(typeof o=="string")return _f(o,e.trailingSlash);const i="path"in o&&o.path!==void 0?o.path:s(o).path;return{...o,name:void 0,path:_f(i,e.trailingSlash)}}function r(o){const s=ut(),i=wt(),a=A(()=>!!o.target&&o.target!=="_self"),l=A(()=>{const h=o.to||o.href||"";return typeof h=="string"&&wn(h,{acceptRelative:!0})}),c=Nn("RouterLink"),u=c&&typeof c!="string"?c.useLink:void 0,f=A(()=>{if(o.external)return!0;const h=o.to||o.href||"";return typeof h=="object"?!1:h===""||l.value}),d=A(()=>{const h=o.to||o.href||"";return f.value?h:n(h,s.resolve)}),p=f.value||u==null?void 0:u({...o,to:d}),g=A(()=>{var h;if(!d.value||l.value)return d.value;if(f.value){const y=typeof d.value=="object"&&"path"in d.value?Aa(d.value):d.value,k=typeof y=="object"?s.resolve(y).href:y;return n(k,s.resolve)}return typeof d.value=="object"?((h=s.resolve(d.value))==null?void 0:h.href)??null:n(Yo(i.app.baseURL,d.value),s.resolve)});return{to:d,hasTarget:a,isAbsoluteUrl:l,isExternal:f,href:g,isActive:(p==null?void 0:p.isActive)??A(()=>d.value===s.currentRoute.value.path),isExactActive:(p==null?void 0:p.isExactActive)??A(()=>d.value===s.currentRoute.value.path),route:(p==null?void 0:p.route)??A(()=>s.resolve(d.value)),async navigate(){await F0(g.value,{replace:o.replace,external:f.value||a.value})}}}return oe({name:t,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1}},useLink:r,setup(o,{slots:s}){const i=ut(),{to:a,href:l,navigate:c,isExternal:u,hasTarget:f,isAbsoluteUrl:d}=r(o),p=B(!1),g=B(null),h=y=>{var k;g.value=o.custom?(k=y==null?void 0:y.$el)==null?void 0:k.nextElementSibling:y==null?void 0:y.$el};if(o.prefetch!==!1&&o.noPrefetch!==!0&&o.target!=="_blank"&&!ZE()){const k=Pe();let m,v=null;Le(()=>{const b=JE();yi(()=>{m=Na(()=>{var w;(w=g==null?void 0:g.value)!=null&&w.tagName&&(v=b.observe(g.value,async()=>{v==null||v(),v=null;const E=typeof a.value=="string"?a.value:u.value?Aa(a.value):i.resolve(a.value).fullPath;await Promise.all([k.hooks.callHook("link:prefetch",E).catch(()=>{}),!u.value&&!f.value&&kh(a.value,i).catch(()=>{})]),p.value=!0}))})})}),Xo(()=>{m&&g_(m),v==null||v(),v=null})}return()=>{var m;if(!u.value&&!f.value){const v={ref:h,to:a.value,activeClass:o.activeClass||e.activeClass,exactActiveClass:o.exactActiveClass||e.exactActiveClass,replace:o.replace,ariaCurrentValue:o.ariaCurrentValue,custom:o.custom};return o.custom||(p.value&&(v.class=o.prefetchedClass||e.prefetchedClass),v.rel=o.rel||void 0),be(Nn("RouterLink"),v,s.default)}const y=o.target||null,k=QE(o.noRel?"":o.rel,e.externalRelAttribute,d.value||f.value?"noopener noreferrer":"")||null;return o.custom?s.default?s.default({href:l.value,navigate:c,get route(){if(!l.value)return;const v=new URL(l.value,window.location.href);return{path:v.pathname,fullPath:v.pathname,get query(){return Zd(v.search)},hash:v.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:l.value}},rel:k,target:y,isExternal:u.value||f.value,isActive:!1,isExactActive:!1}):null:be("a",{ref:g,href:l.value||null,rel:k,target:y},(m=s.default)==null?void 0:m.call(s))}}})}const Eh=YE(s0);function _f(e,t){const n=t==="append"?qs:Qo;return wn(e)&&!e.startsWith("http")?e:n(e,!0)}function JE(){const e=Pe();if(e._observer)return e._observer;let t=null;const n=new Map,r=(s,i)=>(t||(t=new IntersectionObserver(a=>{for(const l of a){const c=n.get(l.target);(l.isIntersecting||l.intersectionRatio>0)&&c&&c()}})),n.set(s,i),t.observe(s),()=>{n.delete(s),t.unobserve(s),n.size===0&&(t.disconnect(),t=null)});return e._observer={observe:r}}function ZE(){const e=navigator.connection;return!!(e&&(e.saveData||/2g/.test(e.effectiveType)))}const eC=oe({inheritAttrs:!1,props:{...wi,as:{type:String,default:"button"},type:{type:String,default:"button"},disabled:{type:Boolean,default:null},active:{type:Boolean,default:void 0},exact:{type:Boolean,default:!1},exactQuery:{type:Boolean,default:!1},exactHash:{type:Boolean,default:!1},inactiveClass:{type:String,default:void 0}},setup(e){function t(n,r,{isActive:o,isExactActive:s}){return e.exactQuery&&!dp(n.query,r.query)||e.exactHash&&n.hash!==r.hash?e.inactiveClass:e.exact&&s||!e.exact&&o?e.activeClass:e.inactiveClass}return{resolveLinkClass:t}}}),tC=["href","aria-disabled","role","rel","target","onClick"];function nC(e,t,n,r,o,s){const i=Eh;return e.to?(L(),re(i,ue({key:1},e.$props,{custom:""}),{default:le(({route:a,href:l,target:c,rel:u,navigate:f,isActive:d,isExactActive:p,isExternal:g})=>[Ce("a",ue(e.$attrs,{href:e.disabled?void 0:l,"aria-disabled":e.disabled?"true":void 0,role:e.disabled?"link":void 0,rel:u,target:c,class:e.active!==void 0?e.active?e.activeClass:e.inactiveClass:e.resolveLinkClass(a,e._.provides[Yr]||e.$route,{isActive:d,isExactActive:p}),onClick:h=>!g&&!e.disabled&&f(h)}),[ye(e.$slots,"default",$r(Mr({isActive:e.active!==void 0?e.active:e.exact?p:d})))],16,tC)]),_:3},16)):(L(),re(gr(e.as),ue({key:0,type:e.type,disabled:e.disabled},e.$attrs,{class:e.active?e.activeClass:e.inactiveClass}),{default:le(()=>[ye(e.$slots,"default",$r(Mr({isActive:e.active})))]),_:3},16,["type","disabled","class"]))}const Gn=Dt(eC,[["render",nC]]),Ge=(e,t,n,r,o=!1)=>{const s=Gm(),i=ft(),a=A(()=>{var d;const c=Jt(t),u=Jt(n),f=Jt(r);return Kt((c==null?void 0:c.strategy)||((d=i.ui)==null?void 0:d.strategy),f?{wrapper:f}:{},c||{},o?Yx(i.ui,e,{}):{},u||{})}),l=A(()=>oh(s,["class"]));return{ui:a,attrs:l}};function Ch({ui:e,props:t}){const n=Mt();if(Be("ButtonGroupContextConsumer",!0),Ee("ButtonGroupContextConsumer",!1))return{size:A(()=>t.size),rounded:A(()=>e.value.rounded)};let o=n.parent,s;for(;o&&!s;){if(o.type.name==="ButtonGroup"){s=Ee(`group-${o.uid}`);break}o=o.parent}const i=A(()=>s==null?void 0:s.value.children.indexOf(n));return Le(()=>{s==null||s.value.register(n)}),nt(()=>{s==null||s.value.unregister(n)}),{size:A(()=>(s==null?void 0:s.value.size)||t.size),rounded:A(()=>!s||i.value===-1?e.value.rounded:s.value.children.length===1?s.value.ui.rounded:i.value===0?s.value.rounded.start:i.value===s.value.children.length-1?s.value.rounded.end:"rounded-none")}}const rC={wrapper:"relative inline-flex items-center justify-center flex-shrink-0",background:"bg-gray-100 dark:bg-gray-800",rounded:"rounded-full",text:"font-medium leading-none text-gray-900 dark:text-white truncate",placeholder:"font-medium leading-none text-gray-500 dark:text-gray-400 truncate",size:{"3xs":"h-4 w-4 text-[8px]","2xs":"h-5 w-5 text-[10px]",xs:"h-6 w-6 text-xs",sm:"h-8 w-8 text-sm",md:"h-10 w-10 text-base",lg:"h-12 w-12 text-lg",xl:"h-14 w-14 text-xl","2xl":"h-16 w-16 text-2xl","3xl":"h-20 w-20 text-3xl"},chip:{base:"absolute rounded-full ring-1 ring-white dark:ring-gray-900 flex items-center justify-center text-white dark:text-gray-900 font-medium",background:"bg-{color}-500 dark:bg-{color}-400",position:{"top-right":"top-0 right-0","bottom-right":"bottom-0 right-0","top-left":"top-0 left-0","bottom-left":"bottom-0 left-0"},size:{"3xs":"h-[4px] min-w-[4px] text-[4px] p-px","2xs":"h-[5px] min-w-[5px] text-[5px] p-px",xs:"h-1.5 min-w-[0.375rem] text-[6px] p-px",sm:"h-2 min-w-[0.5rem] text-[7px] p-0.5",md:"h-2.5 min-w-[0.625rem] text-[8px] p-0.5",lg:"h-3 min-w-[0.75rem] text-[10px] p-0.5",xl:"h-3.5 min-w-[0.875rem] text-[11px] p-1","2xl":"h-4 min-w-[1rem] text-[12px] p-1","3xl":"h-5 min-w-[1.25rem] text-[14px] p-1"}},icon:{base:"text-gray-500 dark:text-gray-400 flex-shrink-0",size:{"3xs":"h-2 w-2","2xs":"h-2.5 w-2.5",xs:"h-3 w-3",sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6",xl:"h-7 w-7","2xl":"h-8 w-8","3xl":"h-10 w-10"}},default:{size:"sm",icon:null,chipColor:null,chipPosition:"top-right"}},oC={base:"inline-flex items-center",rounded:"rounded-md",font:"font-medium",size:{xs:"text-xs px-1.5 py-0.5",sm:"text-xs px-2 py-1",md:"text-sm px-2 py-1",lg:"text-sm px-2.5 py-1.5"},color:{white:{solid:"ring-1 ring-inset ring-gray-300 dark:ring-gray-700 text-gray-900 dark:text-white bg-white dark:bg-gray-900"},gray:{solid:"ring-1 ring-inset ring-gray-300 dark:ring-gray-700 text-gray-700 dark:text-gray-200 bg-gray-50 dark:bg-gray-800"},black:{solid:"text-white dark:text-gray-900 bg-gray-900 dark:bg-white"}},variant:{solid:"bg-{color}-500 dark:bg-{color}-400 text-white dark:text-gray-900",outline:"text-{color}-500 dark:text-{color}-400 ring-1 ring-inset ring-{color}-500 dark:ring-{color}-400",soft:"bg-{color}-50 dark:bg-{color}-400 dark:bg-opacity-10 text-{color}-500 dark:text-{color}-400",subtle:"bg-{color}-50 dark:bg-{color}-400 dark:bg-opacity-10 text-{color}-500 dark:text-{color}-400 ring-1 ring-inset ring-{color}-500 dark:ring-{color}-400 ring-opacity-25 dark:ring-opacity-25"},default:{size:"sm",variant:"solid",color:"primary"}},Sh={base:"focus:outline-none focus-visible:outline-0 disabled:cursor-not-allowed disabled:opacity-75 flex-shrink-0",font:"font-medium",rounded:"rounded-md",truncate:"text-left break-all line-clamp-1",block:"w-full flex justify-center items-center",inline:"inline-flex items-center",size:{"2xs":"text-xs",xs:"text-xs",sm:"text-sm",md:"text-sm",lg:"text-sm",xl:"text-base"},gap:{"2xs":"gap-x-1",xs:"gap-x-1.5",sm:"gap-x-1.5",md:"gap-x-2",lg:"gap-x-2.5",xl:"gap-x-2.5"},padding:{"2xs":"px-2 py-1",xs:"px-2.5 py-1.5",sm:"px-2.5 py-1.5",md:"px-3 py-2",lg:"px-3.5 py-2.5",xl:"px-3.5 py-2.5"},square:{"2xs":"p-1",xs:"p-1.5",sm:"p-1.5",md:"p-2",lg:"p-2.5",xl:"p-2.5"},color:{white:{solid:"shadow-sm ring-1 ring-inset ring-gray-300 dark:ring-gray-700 text-gray-900 dark:text-white bg-white hover:bg-gray-50 disabled:bg-white dark:bg-gray-900 dark:hover:bg-gray-800/50 dark:disabled:bg-gray-900 focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",ghost:"text-gray-900 dark:text-white hover:bg-white dark:hover:bg-gray-900 focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400"},gray:{solid:"shadow-sm ring-1 ring-inset ring-gray-300 dark:ring-gray-700 text-gray-700 dark:text-gray-200 bg-gray-50 hover:bg-gray-100 disabled:bg-gray-50 dark:bg-gray-800 dark:hover:bg-gray-700/50 dark:disabled:bg-gray-800 focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",ghost:"text-gray-700 dark:text-gray-200 hover:text-gray-900 dark:hover:text-white hover:bg-gray-50 dark:hover:bg-gray-800 focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",link:"text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 underline-offset-4 hover:underline focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400"},black:{solid:"shadow-sm text-white dark:text-gray-900 bg-gray-900 hover:bg-gray-800 disabled:bg-gray-900 dark:bg-white dark:hover:bg-gray-100 dark:disabled:bg-white focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",link:"text-gray-900 dark:text-white underline-offset-4 hover:underline focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400"}},variant:{solid:"shadow-sm text-white dark:text-gray-900 bg-{color}-500 hover:bg-{color}-600 disabled:bg-{color}-500 dark:bg-{color}-400 dark:hover:bg-{color}-500 dark:disabled:bg-{color}-400 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-{color}-500 dark:focus-visible:outline-{color}-400",outline:"ring-1 ring-inset ring-current text-{color}-500 dark:text-{color}-400 hover:bg-{color}-50 disabled:bg-transparent dark:hover:bg-{color}-950 dark:disabled:bg-transparent focus-visible:ring-2 focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400",soft:"text-{color}-500 dark:text-{color}-400 bg-{color}-50 hover:bg-{color}-100 disabled:bg-{color}-50 dark:bg-{color}-950 dark:hover:bg-{color}-900 dark:disabled:bg-{color}-950 focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400",ghost:"text-{color}-500 dark:text-{color}-400 hover:bg-{color}-50 disabled:bg-transparent dark:hover:bg-{color}-950 dark:disabled:bg-transparent focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400",link:"text-{color}-500 hover:text-{color}-600 disabled:text-{color}-500 dark:text-{color}-400 dark:hover:text-{color}-500 dark:disabled:text-{color}-400 underline-offset-4 hover:underline focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400"},icon:{base:"flex-shrink-0",loading:"animate-spin",size:{"2xs":"h-4 w-4",xs:"h-4 w-4",sm:"h-5 w-5",md:"h-5 w-5",lg:"h-5 w-5",xl:"h-6 w-6"}},default:{size:"sm",variant:"solid",color:"primary",loadingIcon:"i-heroicons-arrow-path-20-solid"}},es={base:"invisible before:visible before:block before:rotate-45 before:z-[-1] before:w-2 before:h-2",ring:"before:ring-1 before:ring-gray-200 dark:before:ring-gray-800",rounded:"before:rounded-sm",background:"before:bg-gray-200 dark:before:bg-gray-800",shadow:"before:shadow",placement:"group-data-[popper-placement*='right']:-left-1 group-data-[popper-placement*='left']:-right-1 group-data-[popper-placement*='top']:-bottom-1 group-data-[popper-placement*='bottom']:-top-1"};({...es});const sC={wrapper:"w-full flex flex-col",container:"w-full flex flex-col",item:{base:"",size:"text-sm",color:"text-gray-500 dark:text-gray-400",padding:"pt-1.5 pb-3",icon:"ms-auto transform transition-transform duration-200"},transition:{enterActiveClass:"overflow-hidden transition-[height] duration-200 ease-out",leaveActiveClass:"overflow-hidden transition-[height] duration-200 ease-out"},default:{openIcon:"i-heroicons-chevron-down-20-solid",closeIcon:"",class:"mb-1.5 w-full",variant:"soft"}},iC={base:"inline-flex items-center justify-center text-gray-900 dark:text-white",padding:"px-1",size:{xs:"h-4 min-w-[16px] text-[10px]",sm:"h-5 min-w-[20px] text-[11px]",md:"h-6 min-w-[24px] text-[12px]"},rounded:"rounded",font:"font-medium font-sans",background:"bg-gray-100 dark:bg-gray-800",ring:"ring-1 ring-gray-300 dark:ring-gray-700 ring-inset",default:{size:"sm"}},xf={container:"z-20 group",trigger:"flex items-center w-full",width:"w-full",height:"max-h-60",base:"relative focus:outline-none overflow-y-auto scroll-py-1",background:"bg-white dark:bg-gray-800",shadow:"shadow-lg",rounded:"rounded-md",padding:"p-1",ring:"ring-1 ring-gray-200 dark:ring-gray-700",empty:"text-sm text-gray-400 dark:text-gray-500 px-2 py-1.5",option:{base:"cursor-default select-none relative flex items-center justify-between gap-1",rounded:"rounded-md",padding:"px-1.5 py-1.5",size:"text-sm",color:"text-gray-900 dark:text-white",container:"flex items-center gap-1.5 min-w-0",active:"bg-gray-100 dark:bg-gray-900",inactive:"",selected:"pe-7",disabled:"cursor-not-allowed opacity-50",empty:"text-sm text-gray-400 dark:text-gray-500 px-2 py-1.5",icon:{base:"flex-shrink-0 h-5 w-5",active:"text-gray-900 dark:text-white",inactive:"text-gray-400 dark:text-gray-500"},selectedIcon:{wrapper:"absolute inset-y-0 end-0 flex items-center",padding:"pe-2",base:"h-5 w-5 text-gray-900 dark:text-white flex-shrink-0"},avatar:{base:"flex-shrink-0",size:"2xs"},chip:{base:"flex-shrink-0 w-2 h-2 mx-1 rounded-full"}},transition:{leaveActiveClass:"transition ease-in duration-100",leaveFromClass:"opacity-100",leaveToClass:"opacity-0"},popper:{placement:"bottom-end"},default:{selectedIcon:"i-heroicons-check-20-solid",trailingIcon:"i-heroicons-chevron-down-20-solid"},arrow:{...es,ring:"before:ring-1 before:ring-gray-200 dark:before:ring-gray-700",background:"before:bg-white dark:before:bg-gray-700"}};({...xf,option:{...xf.option},arrow:{...es}});const aC={base:"mx-auto",padding:"px-4 sm:px-6 lg:px-8",constrained:"max-w-7xl"};({...es});const lC={wrapper:"relative",container:"z-50 group",trigger:"inline-flex w-full",width:"",background:"bg-white dark:bg-gray-900",shadow:"shadow-lg",rounded:"rounded-md",ring:"ring-1 ring-gray-200 dark:ring-gray-800",base:"overflow-hidden focus:outline-none relative",transition:{enterActiveClass:"transition ease-out duration-200",enterFromClass:"opacity-0 translate-y-1",enterToClass:"opacity-100 translate-y-0",leaveActiveClass:"transition ease-in duration-150",leaveFromClass:"opacity-100 translate-y-0",leaveToClass:"opacity-0 translate-y-1"},overlay:{base:"fixed inset-0 transition-opacity z-50",background:"bg-gray-200/75 dark:bg-gray-800/75",transition:{enterActiveClass:"ease-out duration-200",enterFromClass:"opacity-0",enterToClass:"opacity-100",leaveActiveClass:"ease-in duration-150",leaveFromClass:"opacity-100",leaveToClass:"opacity-0"}},popper:{strategy:"fixed"},default:{openDelay:0,closeDelay:0},arrow:es},cC={wrapper:"w-full pointer-events-auto",container:"relative overflow-hidden",inner:"w-0 flex-1",title:"text-sm font-medium text-gray-900 dark:text-white",description:"mt-1 text-sm leading-4 text-gray-500 dark:text-gray-400",actions:"flex items-center gap-2 mt-3 flex-shrink-0",background:"bg-white dark:bg-gray-900",shadow:"shadow-lg",rounded:"rounded-lg",padding:"p-4",gap:"gap-3",ring:"ring-1 ring-gray-200 dark:ring-gray-800",icon:{base:"flex-shrink-0 w-5 h-5",color:"text-{color}-500 dark:text-{color}-400"},avatar:{base:"flex-shrink-0 self-center",size:"md"},progress:{base:"absolute bottom-0 end-0 start-0 h-1",background:"bg-{color}-500 dark:bg-{color}-400"},transition:{enterActiveClass:"transform ease-out duration-300 transition",enterFromClass:"translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2",enterToClass:"translate-y-0 opacity-100 sm:translate-x-0",leaveActiveClass:"transition ease-in duration-100",leaveFromClass:"opacity-100",leaveToClass:"opacity-0"},default:{color:"primary",icon:null,timeout:5e3,closeButton:{icon:"i-heroicons-x-mark-20-solid",color:"gray",variant:"link",padded:!1},actionButton:{size:"xs",color:"white"}}},uC={wrapper:"fixed flex flex-col justify-end z-[55]",position:"bottom-0 end-0",width:"w-full sm:w-96",container:"px-4 sm:px-6 py-6 space-y-3 overflow-y-auto"},un=Kt(ze.ui.strategy,ze.ui.button,Sh),fC=oe({components:{UIcon:_t,ULink:Gn},inheritAttrs:!1,props:{...wi,type:{type:String,default:"button"},block:{type:Boolean,default:!1},label:{type:String,default:null},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},padded:{type:Boolean,default:!0},size:{type:String,default:()=>un.default.size,validator(e){return Object.keys(un.size).includes(e)}},color:{type:String,default:()=>un.default.color,validator(e){return[...ze.ui.colors,...Object.keys(un.color)].includes(e)}},variant:{type:String,default:()=>un.default.variant,validator(e){return[...Object.keys(un.variant),...Object.values(un.color).flatMap(t=>Object.keys(t))].includes(e)}},icon:{type:String,default:null},loadingIcon:{type:String,default:()=>un.default.loadingIcon},leadingIcon:{type:String,default:null},trailingIcon:{type:String,default:null},trailing:{type:Boolean,default:!1},leading:{type:Boolean,default:!1},square:{type:Boolean,default:!1},truncate:{type:Boolean,default:!1},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},setup(e,{slots:t}){const{ui:n,attrs:r}=Ge("button",xe(e,"ui"),un),{size:o,rounded:s}=Ch({ui:n,props:e}),i=A(()=>e.icon&&e.leading||e.icon&&!e.trailing||e.loading&&!e.trailing||e.leadingIcon),a=A(()=>e.icon&&e.trailing||e.loading&&e.trailing||e.trailingIcon),l=A(()=>e.square||!t.default&&!e.label),c=A(()=>{var y,k;const h=((k=(y=n.value.color)==null?void 0:y[e.color])==null?void 0:k[e.variant])||n.value.variant[e.variant];return jt(at(n.value.base,n.value.font,s.value,n.value.size[o.value],n.value.gap[o.value],e.padded&&n.value[l.value?"square":"padding"][o.value],h==null?void 0:h.replaceAll("{color}",e.color),e.block?n.value.block:n.value.inline),e.class)}),u=A(()=>e.loading?e.loadingIcon:e.leadingIcon||e.icon),f=A(()=>e.loading&&!i.value?e.loadingIcon:e.trailingIcon||e.icon),d=A(()=>at(n.value.icon.base,n.value.icon.size[o.value],e.loading&&n.value.icon.loading)),p=A(()=>at(n.value.icon.base,n.value.icon.size[o.value],e.loading&&!i.value&&n.value.icon.loading)),g=A(()=>Zx(e));return{ui:n,attrs:r,isLeading:i,isTrailing:a,isSquare:l,buttonClass:c,leadingIconName:u,trailingIconName:f,leadingIconClass:d,trailingIconClass:p,linkProps:g}}});function dC(e,t,n,r,o,s){const i=_t,a=Gn;return L(),re(a,ue({type:e.type,disabled:e.disabled||e.loading,class:e.buttonClass},{...e.linkProps,...e.attrs}),{default:le(()=>[ye(e.$slots,"leading",{disabled:e.disabled,loading:e.loading},()=>[e.isLeading&&e.leadingIconName?(L(),re(i,{key:0,name:e.leadingIconName,class:W(e.leadingIconClass),"aria-hidden":"true"},null,8,["name","class"])):me("",!0)]),ye(e.$slots,"default",{},()=>[e.label?(L(),ne("span",{key:0,class:W([e.truncate?e.ui.truncate:""])},Ne(e.label),3)):me("",!0)]),ye(e.$slots,"trailing",{disabled:e.disabled,loading:e.loading},()=>[e.isTrailing&&e.trailingIconName?(L(),re(i,{key:0,name:e.trailingIconName,class:W(e.trailingIconClass),"aria-hidden":"true"},null,8,["name","class"])):me("",!0)])]),_:3},16,["type","disabled","class"])}const Gt=Dt(fC,[["render",dC]]),pC=Ke(e=>{e.vueApp.component("UButton",Gt)});function hC(e,t){const n={...t};function r(l){Object.assign(n,l)}function o(){e.trackPageview(n)}const s=history.pushState;function i(){s&&(history.pushState=function(...l){s.apply(this,l),o()},window.addEventListener("popstate",o)),e.options.hashMode&&window.addEventListener("hashchange",o),o()}function a(){s&&(history.pushState=s,window.removeEventListener("popstate",o)),e.options.hashMode&&window.removeEventListener("hashchange",o)}return{install:i,cleanup:a,setEventOptions:r}}const gC=Ke({setup(){const e=wt().public.plausible,{$plausible:t}=Pe();e.enabled&&e.autoPageviews&&hC(t).install()}}),mC=[Nb,Fb,s_,h_,m_,v_,y_,w_,L1,j1,F1,G1,px,gx,Ik,Mk,Dk,Nk,Bk,pC,gC],vC=oe({inheritAttrs:!1,__name:"ColorModeImage",props:{as:{type:[String,Object],default:"img"},dark:{type:String,required:!0},light:{type:String,required:!0}},setup(e){return(t,n)=>(L(),ne(ke,null,[(L(),re(gr(e.as),ue({src:e.light,class:"dark:hidden"},t.$attrs),null,16,["src"])),(L(),re(gr(e.as),ue({src:e.dark,class:"hidden dark:block"},t.$attrs),null,16,["src"]))],64))}}),An=Kt(ze.ui.strategy,ze.ui.badge,oC),yC=oe({inheritAttrs:!1,props:{size:{type:String,default:()=>An.default.size,validator(e){return Object.keys(An.size).includes(e)}},color:{type:String,default:()=>An.default.color,validator(e){return[...ze.ui.colors,...Object.keys(An.color)].includes(e)}},variant:{type:String,default:()=>An.default.variant,validator(e){return[...Object.keys(An.variant),...Object.values(An.color).flatMap(t=>Object.keys(t))].includes(e)}},label:{type:[String,Number],default:null},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},setup(e){const{ui:t,attrs:n}=Ge("badge",xe(e,"ui"),An),{size:r,rounded:o}=Ch({ui:t,props:e}),s=A(()=>{var a,l;const i=((l=(a=t.value.color)==null?void 0:a[e.color])==null?void 0:l[e.variant])||t.value.variant[e.variant];return jt(at(t.value.base,t.value.font,o.value,t.value.size[r.value],i==null?void 0:i.replaceAll("{color}",e.color)),e.class)});return{attrs:n,badgeClass:s}}});function bC(e,t,n,r,o,s){return L(),ne("span",ue({class:e.badgeClass},e.attrs),[ye(e.$slots,"default",{},()=>[Je(Ne(e.label),1)])],16)}const Ph=Dt(yC,[["render",bC]]),Xi=Kt(ze.ui.strategy,ze.ui.kbd,iC),wC=oe({inheritAttrs:!1,props:{value:{type:String,default:null},size:{type:String,default:()=>Xi.default.size,validator(e){return Object.keys(Xi.size).includes(e)}},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},setup(e){const{ui:t,attrs:n}=Ge("kbd",xe(e,"ui"),Xi),r=A(()=>jt(at(t.value.base,t.value.size[e.size],t.value.padding,t.value.rounded,t.value.font,t.value.background,t.value.ring),e.class));return{ui:t,attrs:n,kbdClass:r}}});function _C(e,t,n,r,o,s){return L(),ne("kbd",ue({class:e.kbdClass},e.attrs),[ye(e.$slots,"default",{},()=>[Je(Ne(e.value),1)])],16)}const xC=Dt(wC,[["render",_C]]),kC=()=>{const e=vn(),t=B(!1),n=B(!1),r=B(!1),o=B(!1);function s(){if(t.value){t.value=!1,setTimeout(()=>{n.value=!n.value},0);return}n.value=!n.value}function i(){if(r.value){r.value=!1,setTimeout(()=>{o.value=!o.value},200);return}o.value=!o.value}return Re(()=>e.path,()=>{r.value=!1}),{isHeaderDialogOpen:t,isContentSearchModalOpen:n,isDashboardSidebarSlidoverOpen:r,isDashboardSidebarSlideoverOpen:r,isDashboardSearchModalOpen:o,toggleContentSearch:s,toggleDashboardSearch:i}},Th=Qp(kC),EC=()=>{const e=A(()=>navigator&&navigator.userAgent&&navigator.userAgent.match(/Macintosh;/)),t=B(" "),n=lx(),r=A(()=>{var a,l,c;const o=(a=n.value)==null?void 0:a.tagName,s=(l=n.value)==null?void 0:l.contentEditable;return o==="INPUT"||o==="TEXTAREA"||s==="true"||s==="plaintext-only"?((c=n.value)==null?void 0:c.name)||!0:!1});return Le(()=>{t.value=e.value?"⌘":"Ctrl"}),{macOS:e,metaSymbol:t,activeElement:n,usingInput:r}},CC=Qp(EC),SC={class:"hidden lg:flex items-center gap-0.5 ml-auto -my-1 flex-shrink-0"},PC=oe({__name:"ContentSearchButton",props:{label:{type:String,default:"Search..."}},setup(e){const t=ft(),{toggleContentSearch:n}=Th(),{metaSymbol:r}=CC();return(o,s)=>{var l,c,u,f;const i=xC,a=Gt;return L(),re(a,ue({icon:C(t).ui.icons.search,label:e.label,truncate:""},e.label?(c=(l=o.$ui)==null?void 0:l.button)==null?void 0:c.input:(f=(u=o.$ui)==null?void 0:u.button)==null?void 0:f.secondary,{"aria-label":"Search",class:[!!e.label&&"flex-1"],onClick:C(n)}),fi({_:2},[e.label?{name:"trailing",fn:le(()=>[Ce("div",SC,[K(i,null,{default:le(()=>[Je(Ne(C(r)),1)]),_:1}),K(i,null,{default:le(()=>[Je(" K ")]),_:1})])]),key:"0"}:void 0]),1040,["icon","label","class","onClick"])}}}),TC=(e,t)=>(console.warn("[@nuxt/ui-pro] `DocsSearchButton` is deprecated, use `ContentSearchButton` instead."),be(PC,t.attrs,t.slots)),Ah=Symbol.for("nuxt:client-only"),Ql=oe({name:"ClientOnly",inheritAttrs:!1,props:["fallback","placeholder","placeholderTag","fallbackTag"],setup(e,{slots:t,attrs:n}){const r=B(!1);return Le(()=>{r.value=!0}),Be(Ah,!0),o=>{var l;if(r.value)return(l=t.default)==null?void 0:l.call(t);const s=t.fallback||t.placeholder;if(s)return s();const i=o.fallback||o.placeholder||"",a=o.fallbackTag||o.placeholderTag||"span";return ne(a,n,i)}}}),AC=()=>wr("color-mode").value,OC=Ce("div",{class:"w-8 h-8"},null,-1),Oh=oe({inheritAttrs:!1,__name:"ColorModeButton",setup(e){const t=AC(),n=ft(),r=A({get(){return t.value==="dark"},set(){t.preference=t.value==="dark"?"light":"dark"}});return(o,s)=>{var l;const i=Gt,a=Ql;return(l=C(t))!=null&&l.forced?me("",!0):(L(),re(a,{key:0},{fallback:le(()=>[OC]),default:le(()=>{var c,u;return[K(i,ue({icon:C(r)?C(n).ui.icons.dark:C(n).ui.icons.light},{...(u=(c=o.$ui)==null?void 0:c.button)==null?void 0:u.secondary,...o.$attrs},{"aria-label":`Switch to ${C(r)?"light":"dark"} mode`,onClick:s[0]||(s[0]=f=>r.value=!C(r))}),null,16,["icon","aria-label"])]}),_:1}))}}}),RC="data-n-ids",$C="-";function Yl(e){var o,s,i,a,l,c;if(typeof e!="string")throw new TypeError("[nuxt] [useId] key must be a string.");e=`n${e.slice(1)}`;const t=Pe(),n=Mt();if(!n)throw new TypeError("[nuxt] `useId` must be called within a component setup function.");t._id||(t._id=0),n._nuxtIdIndex||(n._nuxtIdIndex={}),(o=n._nuxtIdIndex)[e]||(o[e]=0);const r=e+$C+n._nuxtIdIndex[e]++;if(t.payload.serverRendered&&t.isHydrating&&!Ee(Ah,!1)){const u=((s=n.vnode.el)==null?void 0:s.nodeType)===8&&((a=(i=n.vnode.el)==null?void 0:i.nextElementSibling)!=null&&a.getAttribute)?(l=n.vnode.el)==null?void 0:l.nextElementSibling:n.vnode.el,f=JSON.parse(((c=u==null?void 0:u.getAttribute)==null?void 0:c.call(u,RC))||"{}");if(f[r])return f[r]}return e+"_"+t._id++}function Jl(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function ts(){let e=[],t={addEventListener(n,r,o,s){return n.addEventListener(r,o,s),t.add(()=>n.removeEventListener(r,o,s))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){t.requestAnimationFrame(()=>{t.requestAnimationFrame(...n)})},setTimeout(...n){let r=setTimeout(...n);t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return Jl(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,o){let s=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:o}),this.add(()=>{Object.assign(n.style,{[r]:s})})},group(n){let r=ts();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let o of e.splice(r,1))o()}},dispose(){for(let n of e.splice(0))n()}};return t}let Rh=Symbol("headlessui.useid"),IC=0;function tn(){return Ee(Rh,()=>`${++IC}`)()}function Zl(e){Be(Rh,e)}function J(e){var t;if(e==null||e.value==null)return null;let n=(t=e.value.$el)!=null?t:e.value;return n instanceof Node?n:null}function ot(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,ot),r}var LC=Object.defineProperty,jC=(e,t,n)=>t in e?LC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kf=(e,t,n)=>(jC(e,typeof t!="symbol"?t+"":t,n),n);let MC=class{constructor(){kf(this,"current",this.detect()),kf(this,"currentId",0)}set(t){this.current!==t&&(this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},ns=new MC;function _n(e){if(ns.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=J(e);if(t)return t.ownerDocument}return document}let Qa=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var ct=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(ct||{}),Vo=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Vo||{}),DC=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(DC||{});function ki(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Qa)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var ec=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(ec||{});function $h(e,t=0){var n;return e===((n=_n(e))==null?void 0:n.body)?!1:ot(t,{0(){return e.matches(Qa)},1(){let r=e;for(;r!==null;){if(r.matches(Qa))return!0;r=r.parentElement}return!1}})}var NC=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(NC||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function fr(e){e==null||e.focus({preventScroll:!0})}let BC=["textarea","input"].join(",");function FC(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,BC))!=null?n:!1}function HC(e,t=n=>n){return e.slice().sort((n,r)=>{let o=t(n),s=t(r);if(o===null||s===null)return 0;let i=o.compareDocumentPosition(s);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Ut(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){var s;let i=(s=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e==null?void 0:e.ownerDocument)!=null?s:document,a=Array.isArray(e)?n?HC(e):e:ki(e);o.length>0&&a.length>1&&(a=a.filter(g=>!o.includes(g))),r=r??i.activeElement;let l=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,a.indexOf(r))-1;if(t&4)return Math.max(0,a.indexOf(r))+1;if(t&8)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=t&32?{preventScroll:!0}:{},f=0,d=a.length,p;do{if(f>=d||f+d<=0)return 0;let g=c+f;if(t&16)g=(g+d)%d;else{if(g<0)return 3;if(g>=d)return 1}p=a[g],p==null||p.focus(u),f+=l}while(p!==i.activeElement);return t&6&&FC(p)&&p.select(),2}function Ih(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function UC(){return/Android/gi.test(window.navigator.userAgent)}function zC(){return Ih()||UC()}function xs(e,t,n){ns.isServer||Ye(r=>{document.addEventListener(e,t,n),r(()=>document.removeEventListener(e,t,n))})}function Lh(e,t,n){ns.isServer||Ye(r=>{window.addEventListener(e,t,n),r(()=>window.removeEventListener(e,t,n))})}function jh(e,t,n=A(()=>!0)){function r(s,i){if(!n.value||s.defaultPrevented)return;let a=i(s);if(a===null||!a.getRootNode().contains(a))return;let l=function c(u){return typeof u=="function"?c(u()):Array.isArray(u)||u instanceof Set?u:[u]}(e);for(let c of l){if(c===null)continue;let u=c instanceof HTMLElement?c:J(c);if(u!=null&&u.contains(a)||s.composed&&s.composedPath().includes(u))return}return!$h(a,ec.Loose)&&a.tabIndex!==-1&&s.preventDefault(),t(s,a)}let o=B(null);xs("pointerdown",s=>{var i,a;n.value&&(o.value=((a=(i=s.composedPath)==null?void 0:i.call(s))==null?void 0:a[0])||s.target)},!0),xs("mousedown",s=>{var i,a;n.value&&(o.value=((a=(i=s.composedPath)==null?void 0:i.call(s))==null?void 0:a[0])||s.target)},!0),xs("click",s=>{zC()||o.value&&(r(s,()=>o.value),o.value=null)},!0),xs("touchend",s=>r(s,()=>s.target instanceof HTMLElement?s.target:null),!0),Lh("blur",s=>r(s,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Ef(e,t){if(e)return e;let n=t??"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function Mh(e,t){let n=B(Ef(e.value.type,e.value.as));return Le(()=>{n.value=Ef(e.value.type,e.value.as)}),Ye(()=>{var r;n.value||J(t)&&J(t)instanceof HTMLButtonElement&&!((r=J(t))!=null&&r.hasAttribute("type"))&&(n.value="button")}),n}var qn=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(qn||{}),jn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(jn||{});function gt({visible:e=!0,features:t=0,ourProps:n,theirProps:r,...o}){var s;let i=Nh(r,n),a=Object.assign(o,{props:i});if(e||t&2&&i.static)return Qi(a);if(t&1){let l=(s=i.unmount)==null||s?0:1;return ot(l,{0(){return null},1(){return Qi({...o,props:{...i,hidden:!0,style:{display:"none"}}})}})}return Qi(a)}function Qi({props:e,attrs:t,slots:n,slot:r,name:o}){var s,i;let{as:a,...l}=Bh(e,["unmount","static"]),c=(s=n.default)==null?void 0:s.call(n,r),u={};if(r){let f=!1,d=[];for(let[p,g]of Object.entries(r))typeof g=="boolean"&&(f=!0),g===!0&&d.push(p);f&&(u["data-headlessui-state"]=d.join(" "))}if(a==="template"){if(c=Dh(c??[]),Object.keys(l).length>0||Object.keys(t).length>0){let[f,...d]=c??[];if(!VC(f)||d.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${o} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(l).concat(Object.keys(t)).map(h=>h.trim()).filter((h,y,k)=>k.indexOf(h)===y).sort((h,y)=>h.localeCompare(y)).map(h=>` - ${h}`).join(` `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(h=>` - ${h}`).join(` `)].join(` -`));let p=Nh((i=f.props)!=null?i:{},l,u),g=on(f,p,!0);for(let h in p)h.startsWith("on")&&(g.props||(g.props={}),g.props[h]=p[h]);return g}return Array.isArray(c)&&c.length===1?c[0]:c}return be(a,Object.assign({},l,u),{default:()=>c})}function Dh(e){return e.flatMap(t=>t.type===ke?Dh(t.children):[t])}function Nh(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](o,...s){let i=n[r];for(let a of i){if(o instanceof Event&&o.defaultPrevented)return;a(o,...s)}}});return t}function nA(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Bh(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function VC(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var vr=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(vr||{});let Hr=oe({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:t,attrs:n}){return()=>{var r;let{features:o,...s}=e,i={"aria-hidden":(o&2)===2?!0:(r=s["aria-hidden"])!=null?r:void 0,hidden:(o&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(o&4)===4&&(o&2)!==2&&{display:"none"}}};return gt({ourProps:i,theirProps:s,slot:{},attrs:n,slots:t,name:"Hidden"})}}}),Fh=Symbol("Context");var qe=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(qe||{});function WC(){return rs()!==null}function rs(){return Ee(Fh,null)}function tc(e){Be(Fh,e)}var vt=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(vt||{});function qC(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let sr=[];qC(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&sr[0]!==t.target&&(sr.unshift(t.target),sr=sr.filter(n=>n!=null&&n.isConnected),sr.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function nc(e,t,n,r){ns.isServer||Ye(o=>{e=e??window,e.addEventListener(t,n,r),o(()=>e.removeEventListener(t,n,r))})}var Ct=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Ct||{});function rc(){let e=B(0);return Lh("keydown",t=>{t.key==="Tab"&&(e.value=t.shiftKey?1:0)}),e}function Hh(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.value){let r=J(n);r instanceof HTMLElement&&t.add(r)}return t}var Uh=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(Uh||{});let ao=Object.assign(oe({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:B(new Set)}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){let o=B(null);r({el:o,$el:o});let s=A(()=>_n(o)),i=B(!1);Le(()=>i.value=!0),nt(()=>i.value=!1),GC({ownerDocument:s},A(()=>i.value&&!!(e.features&16)));let a=XC({ownerDocument:s,container:o,initialFocus:A(()=>e.initialFocus)},A(()=>i.value&&!!(e.features&2)));QC({ownerDocument:s,container:o,containers:e.containers,previousActiveElement:a},A(()=>i.value&&!!(e.features&8)));let l=rc();function c(p){let g=J(o);g&&(h=>h())(()=>{ot(l.value,{[Ct.Forwards]:()=>{Ut(g,ct.First,{skipElements:[p.relatedTarget]})},[Ct.Backwards]:()=>{Ut(g,ct.Last,{skipElements:[p.relatedTarget]})}})})}let u=B(!1);function f(p){p.key==="Tab"&&(u.value=!0,requestAnimationFrame(()=>{u.value=!1}))}function d(p){if(!i.value)return;let g=Hh(e.containers);J(o)instanceof HTMLElement&&g.add(J(o));let h=p.relatedTarget;h instanceof HTMLElement&&h.dataset.headlessuiFocusGuard!=="true"&&(zh(g,h)||(u.value?Ut(J(o),ot(l.value,{[Ct.Forwards]:()=>ct.Next,[Ct.Backwards]:()=>ct.Previous})|ct.WrapAround,{relativeTo:p.target}):p.target instanceof HTMLElement&&fr(p.target)))}return()=>{let p={},g={ref:o,onKeydown:f,onFocusout:d},{features:h,initialFocus:y,containers:k,...m}=e;return be(ke,[!!(h&4)&&be(Hr,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:c,features:vr.Focusable}),gt({ourProps:g,theirProps:{...t,...m},slot:p,attrs:t,slots:n,name:"FocusTrap"}),!!(h&4)&&be(Hr,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:c,features:vr.Focusable})])}}}),{features:Uh});function KC(e){let t=B(sr.slice());return Re([e],([n],[r])=>{r===!0&&n===!1?Jl(()=>{t.value.splice(0)}):r===!1&&n===!0&&(t.value=sr.slice())},{flush:"post"}),()=>{var n;return(n=t.value.find(r=>r!=null&&r.isConnected))!=null?n:null}}function GC({ownerDocument:e},t){let n=KC(t);Le(()=>{Ye(()=>{var r,o;t.value||((r=e.value)==null?void 0:r.activeElement)===((o=e.value)==null?void 0:o.body)&&fr(n())},{flush:"post"})}),nt(()=>{t.value&&fr(n())})}function XC({ownerDocument:e,container:t,initialFocus:n},r){let o=B(null),s=B(!1);return Le(()=>s.value=!0),nt(()=>s.value=!1),Le(()=>{Re([t,n,r],(i,a)=>{if(i.every((c,u)=>(a==null?void 0:a[u])===c)||!r.value)return;let l=J(t);l&&Jl(()=>{var c,u;if(!s.value)return;let f=J(n),d=(c=e.value)==null?void 0:c.activeElement;if(f){if(f===d){o.value=d;return}}else if(l.contains(d)){o.value=d;return}f?fr(f):Ut(l,ct.First|ct.NoScroll)===Vo.Error&&console.warn("There are no focusable elements inside the "),o.value=(u=e.value)==null?void 0:u.activeElement})},{immediate:!0,flush:"post"})}),o}function QC({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){var s;nc((s=e.value)==null?void 0:s.defaultView,"focus",i=>{if(!o.value)return;let a=Hh(n);J(t)instanceof HTMLElement&&a.add(J(t));let l=r.value;if(!l)return;let c=i.target;c&&c instanceof HTMLElement?zh(a,c)?(r.value=c,fr(c)):(i.preventDefault(),i.stopPropagation(),fr(l)):fr(r.value)},!0)}function zh(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function YC(e){let t=mn(e.getSnapshot());return nt(e.subscribe(()=>{t.value=e.getSnapshot()})),t}function JC(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(o){return r.add(o),()=>r.delete(o)},dispatch(o,...s){let i=t[o].call(n,...s);i&&(n=i,r.forEach(a=>a()))}}}function ZC(){let e;return{before({doc:t}){var n;let r=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-r.clientWidth},after({doc:t,d:n}){let r=t.documentElement,o=r.clientWidth-r.offsetWidth,s=e-o;n.style(r,"paddingRight",`${s}px`)}}}function eS(){return Ih()?{before({doc:e,d:t,meta:n}){function r(o){return n.containers.flatMap(s=>s()).some(s=>s.contains(o))}t.microTask(()=>{var o;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let a=ts();a.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>a.dispose()))}let s=(o=window.scrollY)!=null?o:window.pageYOffset,i=null;t.addEventListener(e,"click",a=>{if(a.target instanceof HTMLElement)try{let l=a.target.closest("a");if(!l)return;let{hash:c}=new URL(l.href),u=e.querySelector(c);u&&!r(u)&&(i=u)}catch{}},!0),t.addEventListener(e,"touchstart",a=>{if(a.target instanceof HTMLElement)if(r(a.target)){let l=a.target;for(;l.parentElement&&r(l.parentElement);)l=l.parentElement;t.style(l,"overscrollBehavior","contain")}else t.style(a.target,"touchAction","none")}),t.addEventListener(e,"touchmove",a=>{if(a.target instanceof HTMLElement){if(a.target.tagName==="INPUT")return;if(r(a.target)){let l=a.target;for(;l.parentElement&&l.dataset.headlessuiPortal!==""&&!(l.scrollHeight>l.clientHeight||l.scrollWidth>l.clientWidth);)l=l.parentElement;l.dataset.headlessuiPortal===""&&a.preventDefault()}else a.preventDefault()}},{passive:!1}),t.add(()=>{var a;let l=(a=window.scrollY)!=null?a:window.pageYOffset;s!==l&&window.scrollTo(0,s),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)})})}}:{}}function tS(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function nS(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let lr=JC(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:ts(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:nS(n)},o=[eS(),ZC(),tS()];o.forEach(({before:s})=>s==null?void 0:s(r)),o.forEach(({after:s})=>s==null?void 0:s(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});lr.subscribe(()=>{let e=lr.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",o=n.count!==0;(o&&!r||!o&&r)&&lr.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&lr.dispatch("TEARDOWN",n)}});function rS(e,t,n){let r=YC(lr),o=A(()=>{let s=e.value?r.value.get(e.value):void 0;return s?s.count>0:!1});return Re([e,t],([s,i],[a],l)=>{if(!s||!i)return;lr.dispatch("PUSH",s,n);let c=!1;l(()=>{c||(lr.dispatch("POP",a??s,n),c=!0)})},{immediate:!0}),o}let Yi=new Map,lo=new Map;function Cf(e,t=B(!0)){Ye(n=>{var r;if(!t.value)return;let o=J(e);if(!o)return;n(function(){var i;if(!o)return;let a=(i=lo.get(o))!=null?i:1;if(a===1?lo.delete(o):lo.set(o,a-1),a!==1)return;let l=Yi.get(o);l&&(l["aria-hidden"]===null?o.removeAttribute("aria-hidden"):o.setAttribute("aria-hidden",l["aria-hidden"]),o.inert=l.inert,Yi.delete(o))});let s=(r=lo.get(o))!=null?r:0;lo.set(o,s+1),s===0&&(Yi.set(o,{"aria-hidden":o.getAttribute("aria-hidden"),inert:o.inert}),o.setAttribute("aria-hidden","true"),o.inert=!0)})}function Vh({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){let r=B(null),o=_n(r);function s(){var i,a,l;let c=[];for(let u of e)u!==null&&(u instanceof HTMLElement?c.push(u):"value"in u&&u.value instanceof HTMLElement&&c.push(u.value));if(t!=null&&t.value)for(let u of t.value)c.push(u);for(let u of(i=o==null?void 0:o.querySelectorAll("html > *, body > *"))!=null?i:[])u!==document.body&&u!==document.head&&u instanceof HTMLElement&&u.id!=="headlessui-portal-root"&&(u.contains(J(r))||u.contains((l=(a=J(r))==null?void 0:a.getRootNode())==null?void 0:l.host)||c.some(f=>u.contains(f))||c.push(u));return c}return{resolveContainers:s,contains(i){return s().some(a=>a.contains(i))},mainTreeNodeRef:r,MainTreeNode(){return n!=null?null:be(Hr,{features:vr.Hidden,ref:r})}}}let Wh=Symbol("ForcePortalRootContext");function oS(){return Ee(Wh,!1)}let Sf=oe({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:n}){return Be(Wh,e.force),()=>{let{force:r,...o}=e;return gt({theirProps:o,ourProps:{},slot:{},slots:t,attrs:n,name:"ForcePortalRoot"})}}}),qh=Symbol("StackContext");var Ya=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Ya||{});function sS(){return Ee(qh,()=>{})}function iS({type:e,enabled:t,element:n,onUpdate:r}){let o=sS();function s(...i){r==null||r(...i),o(...i)}Le(()=>{Re(t,(i,a)=>{i?s(0,e,n):a===!0&&s(1,e,n)},{immediate:!0,flush:"sync"})}),nt(()=>{t.value&&s(1,e,n)}),Be(qh,s)}let aS=Symbol("DescriptionContext");function lS({slot:e=B({}),name:t="Description",props:n={}}={}){let r=B([]);function o(s){return r.value.push(s),()=>{let i=r.value.indexOf(s);i!==-1&&r.value.splice(i,1)}}return Be(aS,{register:o,slot:e,name:t,props:n}),A(()=>r.value.length>0?r.value.join(" "):void 0)}function cS(e){let t=_n(e);if(!t){if(e===null)return null;throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${e}`)}let n=t.getElementById("headlessui-portal-root");if(n)return n;let r=t.createElement("div");return r.setAttribute("id","headlessui-portal-root"),t.body.appendChild(r)}const Ja=new WeakMap;function uS(e){var t;return(t=Ja.get(e))!=null?t:0}function Pf(e,t){let n=t(uS(e));return n<=0?Ja.delete(e):Ja.set(e,n),n}let fS=oe({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n}){let r=B(null),o=A(()=>_n(r)),s=oS(),i=Ee(Gh,null),a=B(s===!0||i==null?cS(r.value):i.resolveTarget());a.value&&Pf(a.value,d=>d+1);let l=B(!1);Le(()=>{l.value=!0}),Ye(()=>{s||i!=null&&(a.value=i.resolveTarget())});let c=Ee(Za,null),u=!1,f=Mt();return Re(r,()=>{if(u||!c)return;let d=J(r);d&&(nt(c.register(d),f),u=!0)}),nt(()=>{var d,p;let g=(d=o.value)==null?void 0:d.getElementById("headlessui-portal-root");!g||a.value!==g||Pf(a.value,h=>h-1)||a.value.children.length>0||(p=a.value.parentElement)==null||p.removeChild(a.value)}),()=>{if(!l.value||a.value===null)return null;let d={ref:r,"data-headlessui-portal":""};return be(Fd,{to:a.value},gt({ourProps:d,theirProps:e,slot:{},attrs:n,slots:t,name:"Portal"}))}}}),Za=Symbol("PortalParentContext");function Kh(){let e=Ee(Za,null),t=B([]);function n(s){return t.value.push(s),e&&e.register(s),()=>r(s)}function r(s){let i=t.value.indexOf(s);i!==-1&&t.value.splice(i,1),e&&e.unregister(s)}let o={register:n,unregister:r,portals:t};return[t,oe({name:"PortalWrapper",setup(s,{slots:i}){return Be(Za,o),()=>{var a;return(a=i.default)==null?void 0:a.call(i)}}})]}let Gh=Symbol("PortalGroupContext"),dS=oe({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(e,{attrs:t,slots:n}){let r=qt({resolveTarget(){return e.target}});return Be(Gh,r),()=>{let{target:o,...s}=e;return gt({theirProps:s,ourProps:{},slot:{},attrs:t,slots:n,name:"PortalGroup"})}}});var pS=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(pS||{});let el=Symbol("DialogContext");function Xh(e){let t=Ee(el,null);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Xh),n}return t}let ks="DC8F892D-2EBD-447C-A4C8-A03058436FF4",hS=oe({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:ks},initialFocus:{type:Object,default:null},id:{type:String,default:null},role:{type:String,default:"dialog"}},emits:{close:e=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:o}){var s,i;let a=(s=e.id)!=null?s:`headlessui-dialog-${tn()}`,l=B(!1);Le(()=>{l.value=!0});let c=!1,u=A(()=>e.role==="dialog"||e.role==="alertdialog"?e.role:(c||(c=!0,console.warn(`Invalid role [${u}] passed to . Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")),f=B(0),d=rs(),p=A(()=>e.open===ks&&d!==null?(d.value&qe.Open)===qe.Open:e.open),g=B(null),h=A(()=>_n(g));if(o({el:g,$el:g}),!(e.open!==ks||d!==null))throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof p.value!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${p.value===ks?void 0:e.open}`);let y=A(()=>l.value&&p.value?0:1),k=A(()=>y.value===0),m=A(()=>f.value>1),v=Ee(el,null)!==null,[b,w]=Kh(),{resolveContainers:E,mainTreeNodeRef:S,MainTreeNode:T}=Vh({portals:b,defaultContainers:[A(()=>{var de;return(de=ee.panelRef.value)!=null?de:g.value})]}),I=A(()=>m.value?"parent":"leaf"),O=A(()=>d!==null?(d.value&qe.Closing)===qe.Closing:!1),V=A(()=>v||O.value?!1:k.value),$=A(()=>{var de,pe,Ve;return(Ve=Array.from((pe=(de=h.value)==null?void 0:de.querySelectorAll("body > *"))!=null?pe:[]).find(De=>De.id==="headlessui-portal-root"?!1:De.contains(J(S))&&De instanceof HTMLElement))!=null?Ve:null});Cf($,V);let U=A(()=>m.value?!0:k.value),ve=A(()=>{var de,pe,Ve;return(Ve=Array.from((pe=(de=h.value)==null?void 0:de.querySelectorAll("[data-headlessui-portal]"))!=null?pe:[]).find(De=>De.contains(J(S))&&De instanceof HTMLElement))!=null?Ve:null});Cf(ve,U),iS({type:"Dialog",enabled:A(()=>y.value===0),element:g,onUpdate:(de,pe)=>{if(pe==="Dialog")return ot(de,{[Ya.Add]:()=>f.value+=1,[Ya.Remove]:()=>f.value-=1})}});let fe=lS({name:"DialogDescription",slot:A(()=>({open:p.value}))}),F=B(null),ee={titleId:F,panelRef:B(null),dialogState:y,setTitleId(de){F.value!==de&&(F.value=de)},close(){t("close",!1)}};Be(el,ee);let Y=A(()=>!(!k.value||m.value));jh(E,(de,pe)=>{de.preventDefault(),ee.close(),Kn(()=>pe==null?void 0:pe.focus())},Y);let je=A(()=>!(m.value||y.value!==0));nc((i=h.value)==null?void 0:i.defaultView,"keydown",de=>{je.value&&(de.defaultPrevented||de.key===vt.Escape&&(de.preventDefault(),de.stopPropagation(),ee.close()))});let Ze=A(()=>!(O.value||y.value!==0||v));return rS(h,Ze,de=>{var pe;return{containers:[...(pe=de.containers)!=null?pe:[],E]}}),Ye(de=>{if(y.value!==0)return;let pe=J(g);if(!pe)return;let Ve=new ResizeObserver(De=>{for(let st of De){let Me=st.target.getBoundingClientRect();Me.x===0&&Me.y===0&&Me.width===0&&Me.height===0&&ee.close()}});Ve.observe(pe),de(()=>Ve.disconnect())}),()=>{let{open:de,initialFocus:pe,...Ve}=e,De={...n,ref:g,id:a,role:u.value,"aria-modal":y.value===0?!0:void 0,"aria-labelledby":F.value,"aria-describedby":fe.value},st={open:y.value===0};return be(Sf,{force:!0},()=>[be(fS,()=>be(dS,{target:g.value},()=>be(Sf,{force:!1},()=>be(ao,{initialFocus:pe,containers:E,features:k.value?ot(I.value,{parent:ao.features.RestoreFocus,leaf:ao.features.All&~ao.features.FocusLock}):ao.features.None},()=>be(w,{},()=>gt({ourProps:De,theirProps:{...Ve,...n},slot:st,attrs:n,slots:r,visible:y.value===0,features:qn.RenderStrategy|qn.Static,name:"Dialog"})))))),be(T)])}}}),gS=oe({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var o;let s=(o=e.id)!=null?o:`headlessui-dialog-panel-${tn()}`,i=Xh("DialogPanel");r({el:i.panelRef,$el:i.panelRef});function a(l){l.stopPropagation()}return()=>{let{...l}=e,c={id:s,ref:i.panelRef,onClick:a};return gt({ourProps:c,theirProps:l,slot:{open:i.dialogState.value===0},attrs:t,slots:n,name:"DialogPanel"})}}});var mS=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(mS||{});let Qh=Symbol("DisclosureContext");function oc(e){let t=Ee(Qh,null);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,oc),n}return t}let Yh=Symbol("DisclosurePanelContext");function vS(){return Ee(Yh,null)}let yS=oe({name:"Disclosure",props:{as:{type:[Object,String],default:"template"},defaultOpen:{type:[Boolean],default:!1}},setup(e,{slots:t,attrs:n}){let r=B(e.defaultOpen?0:1),o=B(null),s=B(null),i={buttonId:B(`headlessui-disclosure-button-${tn()}`),panelId:B(`headlessui-disclosure-panel-${tn()}`),disclosureState:r,panel:o,button:s,toggleDisclosure(){r.value=ot(r.value,{0:1,1:0})},closeDisclosure(){r.value!==1&&(r.value=1)},close(a){i.closeDisclosure();let l=a?a instanceof HTMLElement?a:a.value instanceof HTMLElement?J(a):J(i.button):J(i.button);l==null||l.focus()}};return Be(Qh,i),tc(A(()=>ot(r.value,{0:qe.Open,1:qe.Closed}))),()=>{let{defaultOpen:a,...l}=e,c={open:r.value===0,close:i.close};return gt({theirProps:l,ourProps:{},slot:c,slots:t,attrs:n,name:"Disclosure"})}}}),bS=oe({name:"DisclosureButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){let o=oc("DisclosureButton"),s=vS(),i=A(()=>s===null?!1:s.value===o.panelId.value);Le(()=>{i.value||e.id!==null&&(o.buttonId.value=e.id)}),nt(()=>{i.value||(o.buttonId.value=null)});let a=B(null);r({el:a,$el:a}),i.value||Ye(()=>{o.button.value=a.value});let l=Mh(A(()=>({as:e.as,type:t.type})),a);function c(){var d;e.disabled||(i.value?(o.toggleDisclosure(),(d=J(o.button))==null||d.focus()):o.toggleDisclosure())}function u(d){var p;if(!e.disabled)if(i.value)switch(d.key){case vt.Space:case vt.Enter:d.preventDefault(),d.stopPropagation(),o.toggleDisclosure(),(p=J(o.button))==null||p.focus();break}else switch(d.key){case vt.Space:case vt.Enter:d.preventDefault(),d.stopPropagation(),o.toggleDisclosure();break}}function f(d){switch(d.key){case vt.Space:d.preventDefault();break}}return()=>{var d;let p={open:o.disclosureState.value===0},{id:g,...h}=e,y=i.value?{ref:a,type:l.value,onClick:c,onKeydown:u}:{id:(d=o.buttonId.value)!=null?d:g,ref:a,type:l.value,"aria-expanded":o.disclosureState.value===0,"aria-controls":o.disclosureState.value===0||J(o.panel)?o.panelId.value:void 0,disabled:e.disabled?!0:void 0,onClick:c,onKeydown:u,onKeyup:f};return gt({ourProps:y,theirProps:h,slot:p,attrs:t,slots:n,name:"DisclosureButton"})}}}),wS=oe({name:"DisclosurePanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){let o=oc("DisclosurePanel");Le(()=>{e.id!==null&&(o.panelId.value=e.id)}),nt(()=>{o.panelId.value=null}),r({el:o.panel,$el:o.panel}),Be(Yh,o.panelId);let s=rs(),i=A(()=>s!==null?(s.value&qe.Open)===qe.Open:o.disclosureState.value===0);return()=>{var a;let l={open:o.disclosureState.value===0,close:o.close},{id:c,...u}=e,f={id:(a=o.panelId.value)!=null?a:c,ref:o.panel};return gt({ourProps:f,theirProps:u,slot:l,attrs:t,slots:n,features:qn.RenderStrategy|qn.Static,visible:i.value,name:"DisclosurePanel"})}}});var _S=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(_S||{});let Jh=Symbol("PopoverContext");function sc(e){let t=Ee(Jh,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <${tg.name} /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,sc),n}return t}let xS=Symbol("PopoverGroupContext");function Zh(){return Ee(xS,null)}let eg=Symbol("PopoverPanelContext");function kS(){return Ee(eg,null)}let tg=oe({name:"Popover",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n,expose:r}){var o;let s=B(null);r({el:s,$el:s});let i=B(1),a=B(null),l=B(null),c=B(null),u=B(null),f=A(()=>_n(s)),d=A(()=>{var w,E;if(!J(a)||!J(u))return!1;for(let U of document.querySelectorAll("body > *"))if(Number(U==null?void 0:U.contains(J(a)))^Number(U==null?void 0:U.contains(J(u))))return!0;let S=ki(),T=S.indexOf(J(a)),I=(T+S.length-1)%S.length,O=(T+1)%S.length,V=S[I],$=S[O];return!((w=J(u))!=null&&w.contains(V))&&!((E=J(u))!=null&&E.contains($))}),p={popoverState:i,buttonId:B(null),panelId:B(null),panel:u,button:a,isPortalled:d,beforePanelSentinel:l,afterPanelSentinel:c,togglePopover(){i.value=ot(i.value,{0:1,1:0})},closePopover(){i.value!==1&&(i.value=1)},close(w){p.closePopover();let E=w?w instanceof HTMLElement?w:w.value instanceof HTMLElement?J(w):J(p.button):J(p.button);E==null||E.focus()}};Be(Jh,p),tc(A(()=>ot(i.value,{0:qe.Open,1:qe.Closed})));let g={buttonId:p.buttonId,panelId:p.panelId,close(){p.closePopover()}},h=Zh(),y=h==null?void 0:h.registerPopover,[k,m]=Kh(),v=Vh({mainTreeNodeRef:h==null?void 0:h.mainTreeNodeRef,portals:k,defaultContainers:[a,u]});function b(){var w,E,S,T;return(T=h==null?void 0:h.isFocusWithinPopoverGroup())!=null?T:((w=f.value)==null?void 0:w.activeElement)&&(((E=J(a))==null?void 0:E.contains(f.value.activeElement))||((S=J(u))==null?void 0:S.contains(f.value.activeElement)))}return Ye(()=>y==null?void 0:y(g)),nc((o=f.value)==null?void 0:o.defaultView,"focus",w=>{var E,S;w.target!==window&&w.target instanceof HTMLElement&&i.value===0&&(b()||a&&u&&(v.contains(w.target)||(E=J(p.beforePanelSentinel))!=null&&E.contains(w.target)||(S=J(p.afterPanelSentinel))!=null&&S.contains(w.target)||p.closePopover()))},!0),jh(v.resolveContainers,(w,E)=>{var S;p.closePopover(),$h(E,ec.Loose)||(w.preventDefault(),(S=J(a))==null||S.focus())},A(()=>i.value===0)),()=>{let w={open:i.value===0,close:p.close};return be(ke,[be(m,{},()=>gt({theirProps:{...e,...n},ourProps:{ref:s},slot:w,slots:t,attrs:n,name:"Popover"})),be(v.MainTreeNode)])}}}),ES=oe({name:"PopoverButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:null}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){var o;let s=(o=e.id)!=null?o:`headlessui-popover-button-${tn()}`,i=sc("PopoverButton"),a=A(()=>_n(i.button));r({el:i.button,$el:i.button}),Le(()=>{i.buttonId.value=s}),nt(()=>{i.buttonId.value=null});let l=Zh(),c=l==null?void 0:l.closeOthers,u=kS(),f=A(()=>u===null?!1:u.value===i.panelId.value),d=B(null),p=`headlessui-focus-sentinel-${tn()}`;f.value||Ye(()=>{i.button.value=J(d)});let g=Mh(A(()=>({as:e.as,type:t.type})),d);function h(w){var E,S,T,I,O;if(f.value){if(i.popoverState.value===1)return;switch(w.key){case vt.Space:case vt.Enter:w.preventDefault(),(S=(E=w.target).click)==null||S.call(E),i.closePopover(),(T=J(i.button))==null||T.focus();break}}else switch(w.key){case vt.Space:case vt.Enter:w.preventDefault(),w.stopPropagation(),i.popoverState.value===1&&(c==null||c(i.buttonId.value)),i.togglePopover();break;case vt.Escape:if(i.popoverState.value!==0)return c==null?void 0:c(i.buttonId.value);if(!J(i.button)||(I=a.value)!=null&&I.activeElement&&!((O=J(i.button))!=null&&O.contains(a.value.activeElement)))return;w.preventDefault(),w.stopPropagation(),i.closePopover();break}}function y(w){f.value||w.key===vt.Space&&w.preventDefault()}function k(w){var E,S;e.disabled||(f.value?(i.closePopover(),(E=J(i.button))==null||E.focus()):(w.preventDefault(),w.stopPropagation(),i.popoverState.value===1&&(c==null||c(i.buttonId.value)),i.togglePopover(),(S=J(i.button))==null||S.focus()))}function m(w){w.preventDefault(),w.stopPropagation()}let v=rc();function b(){let w=J(i.panel);if(!w)return;function E(){ot(v.value,{[Ct.Forwards]:()=>Ut(w,ct.First),[Ct.Backwards]:()=>Ut(w,ct.Last)})===Vo.Error&&Ut(ki().filter(S=>S.dataset.headlessuiFocusGuard!=="true"),ot(v.value,{[Ct.Forwards]:ct.Next,[Ct.Backwards]:ct.Previous}),{relativeTo:J(i.button)})}E()}return()=>{let w=i.popoverState.value===0,E={open:w},{...S}=e,T=f.value?{ref:d,type:g.value,onKeydown:h,onClick:k}:{ref:d,id:s,type:g.value,"aria-expanded":i.popoverState.value===0,"aria-controls":J(i.panel)?i.panelId.value:void 0,disabled:e.disabled?!0:void 0,onKeydown:h,onKeyup:y,onClick:k,onMousedown:m};return be(ke,[gt({ourProps:T,theirProps:{...t,...S},slot:E,attrs:t,slots:n,name:"PopoverButton"}),w&&!f.value&&i.isPortalled.value&&be(Hr,{id:p,features:vr.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:b})])}}}),CS=oe({name:"PopoverPanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},focus:{type:Boolean,default:!1},id:{type:String,default:null}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){var o;let s=(o=e.id)!=null?o:`headlessui-popover-panel-${tn()}`,{focus:i}=e,a=sc("PopoverPanel"),l=A(()=>_n(a.panel)),c=`headlessui-focus-sentinel-before-${tn()}`,u=`headlessui-focus-sentinel-after-${tn()}`;r({el:a.panel,$el:a.panel}),Le(()=>{a.panelId.value=s}),nt(()=>{a.panelId.value=null}),Be(eg,a.panelId),Ye(()=>{var m,v;if(!i||a.popoverState.value!==0||!a.panel)return;let b=(m=l.value)==null?void 0:m.activeElement;(v=J(a.panel))!=null&&v.contains(b)||Ut(J(a.panel),ct.First)});let f=rs(),d=A(()=>f!==null?(f.value&qe.Open)===qe.Open:a.popoverState.value===0);function p(m){var v,b;switch(m.key){case vt.Escape:if(a.popoverState.value!==0||!J(a.panel)||l.value&&!((v=J(a.panel))!=null&&v.contains(l.value.activeElement)))return;m.preventDefault(),m.stopPropagation(),a.closePopover(),(b=J(a.button))==null||b.focus();break}}function g(m){var v,b,w,E,S;let T=m.relatedTarget;T&&J(a.panel)&&((v=J(a.panel))!=null&&v.contains(T)||(a.closePopover(),((w=(b=J(a.beforePanelSentinel))==null?void 0:b.contains)!=null&&w.call(b,T)||(S=(E=J(a.afterPanelSentinel))==null?void 0:E.contains)!=null&&S.call(E,T))&&T.focus({preventScroll:!0})))}let h=rc();function y(){let m=J(a.panel);if(!m)return;function v(){ot(h.value,{[Ct.Forwards]:()=>{var b;Ut(m,ct.First)===Vo.Error&&((b=J(a.afterPanelSentinel))==null||b.focus())},[Ct.Backwards]:()=>{var b;(b=J(a.button))==null||b.focus({preventScroll:!0})}})}v()}function k(){let m=J(a.panel);if(!m)return;function v(){ot(h.value,{[Ct.Forwards]:()=>{let b=J(a.button),w=J(a.panel);if(!b)return;let E=ki(),S=E.indexOf(b),T=E.slice(0,S+1),I=[...E.slice(S+1),...T];for(let O of I.slice())if(O.dataset.headlessuiFocusGuard==="true"||w!=null&&w.contains(O)){let V=I.indexOf(O);V!==-1&&I.splice(V,1)}Ut(I,ct.First,{sorted:!1})},[Ct.Backwards]:()=>{var b;Ut(m,ct.Previous)===Vo.Error&&((b=J(a.button))==null||b.focus())}})}v()}return()=>{let m={open:a.popoverState.value===0,close:a.close},{focus:v,...b}=e,w={ref:a.panel,id:s,onKeydown:p,onFocusout:i&&a.popoverState.value===0?g:void 0,tabIndex:-1};return gt({ourProps:w,theirProps:{...t,...b},attrs:t,slot:m,slots:{...n,default:(...E)=>{var S;return[be(ke,[d.value&&a.isPortalled.value&&be(Hr,{id:c,ref:a.beforePanelSentinel,features:vr.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:y}),(S=n.default)==null?void 0:S.call(n,...E),d.value&&a.isPortalled.value&&be(Hr,{id:u,ref:a.afterPanelSentinel,features:vr.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:k})])]}},features:qn.RenderStrategy|qn.Static,visible:d.value,name:"PopoverPanel"})}}});function SS(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function Ji(e,...t){e&&t.length>0&&e.classList.add(...t)}function Es(e,...t){e&&t.length>0&&e.classList.remove(...t)}var tl=(e=>(e.Finished="finished",e.Cancelled="cancelled",e))(tl||{});function PS(e,t){let n=ts();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[s,i]=[r,o].map(a=>{let[l=0]=a.split(",").filter(Boolean).map(c=>c.includes("ms")?parseFloat(c):parseFloat(c)*1e3).sort((c,u)=>u-c);return l});return s!==0?n.setTimeout(()=>t("finished"),s+i):t("finished"),n.add(()=>t("cancelled")),n.dispose}function Tf(e,t,n,r,o,s){let i=ts(),a=s!==void 0?SS(s):()=>{};return Es(e,...o),Ji(e,...t,...n),i.nextFrame(()=>{Es(e,...n),Ji(e,...r),i.add(PS(e,l=>(Es(e,...r,...t),Ji(e,...o),a(l))))}),i.add(()=>Es(e,...t,...n,...r,...o)),i.add(()=>a("cancelled")),i.dispose}function er(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let ic=Symbol("TransitionContext");var TS=(e=>(e.Visible="visible",e.Hidden="hidden",e))(TS||{});function AS(){return Ee(ic,null)!==null}function OS(){let e=Ee(ic,null);if(e===null)throw new Error("A is used but it is missing a parent .");return e}function RS(){let e=Ee(ac,null);if(e===null)throw new Error("A is used but it is missing a parent .");return e}let ac=Symbol("NestingContext");function Ei(e){return"children"in e?Ei(e.children):e.value.filter(({state:t})=>t==="visible").length>0}function ng(e){let t=B([]),n=B(!1);Le(()=>n.value=!0),nt(()=>n.value=!1);function r(s,i=jn.Hidden){let a=t.value.findIndex(({id:l})=>l===s);a!==-1&&(ot(i,{[jn.Unmount](){t.value.splice(a,1)},[jn.Hidden](){t.value[a].state="hidden"}}),!Ei(t)&&n.value&&(e==null||e()))}function o(s){let i=t.value.find(({id:a})=>a===s);return i?i.state!=="visible"&&(i.state="visible"):t.value.push({id:s,state:"visible"}),()=>r(s,jn.Unmount)}return{children:t,register:o,unregister:r}}let rg=qn.RenderStrategy,$S=oe({props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:o}){let s=B(0);function i(){s.value|=qe.Opening,t("beforeEnter")}function a(){s.value&=~qe.Opening,t("afterEnter")}function l(){s.value|=qe.Closing,t("beforeLeave")}function c(){s.value&=~qe.Closing,t("afterLeave")}if(!AS()&&WC())return()=>be(og,{...e,onBeforeEnter:i,onAfterEnter:a,onBeforeLeave:l,onAfterLeave:c},r);let u=B(null),f=A(()=>e.unmount?jn.Unmount:jn.Hidden);o({el:u,$el:u});let{show:d,appear:p}=OS(),{register:g,unregister:h}=RS(),y=B(d.value?"visible":"hidden"),k={value:!0},m=tn(),v={value:!1},b=ng(()=>{!v.value&&y.value!=="hidden"&&(y.value="hidden",h(m),c())});Le(()=>{let U=g(m);nt(U)}),Ye(()=>{if(f.value===jn.Hidden&&m){if(d.value&&y.value!=="visible"){y.value="visible";return}ot(y.value,{hidden:()=>h(m),visible:()=>g(m)})}});let w=er(e.enter),E=er(e.enterFrom),S=er(e.enterTo),T=er(e.entered),I=er(e.leave),O=er(e.leaveFrom),V=er(e.leaveTo);Le(()=>{Ye(()=>{if(y.value==="visible"){let U=J(u);if(U instanceof Comment&&U.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function $(U){let ve=k.value&&!p.value,fe=J(u);!fe||!(fe instanceof HTMLElement)||ve||(v.value=!0,d.value&&i(),d.value||l(),U(d.value?Tf(fe,w,E,S,T,F=>{v.value=!1,F===tl.Finished&&a()}):Tf(fe,I,O,V,T,F=>{v.value=!1,F===tl.Finished&&(Ei(b)||(y.value="hidden",h(m),c()))})))}return Le(()=>{Re([d],(U,ve,fe)=>{$(fe),k.value=!1},{immediate:!0})}),Be(ac,b),tc(A(()=>ot(y.value,{visible:qe.Open,hidden:qe.Closed})|s.value)),()=>{let{appear:U,show:ve,enter:fe,enterFrom:F,enterTo:ee,entered:Y,leave:je,leaveFrom:Ze,leaveTo:de,...pe}=e,Ve={ref:u},De={...pe,...p.value&&d.value&&ns.isServer?{class:W([n.class,pe.class,...w,...E])}:{}};return gt({theirProps:De,ourProps:Ve,slot:{},slots:r,attrs:n,features:rg,visible:y.value==="visible",name:"TransitionChild"})}}}),IS=$S,og=oe({inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:r}){let o=rs(),s=A(()=>e.show===null&&o!==null?(o.value&qe.Open)===qe.Open:e.show);Ye(()=>{if(![!0,!1].includes(s.value))throw new Error('A is used but it is missing a `:show="true | false"` prop.')});let i=B(s.value?"visible":"hidden"),a=ng(()=>{i.value="hidden"}),l=B(!0),c={show:s,appear:A(()=>e.appear||!l.value)};return Le(()=>{Ye(()=>{l.value=!1,s.value?i.value="visible":Ei(a)||(i.value="hidden")})}),Be(ac,a),Be(ic,c),()=>{let u=Bh(e,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),f={unmount:e.unmount};return gt({ourProps:{...f,as:"template"},theirProps:{},slot:{},slots:{...r,default:()=>[be(IS,{onBeforeEnter:()=>t("beforeEnter"),onAfterEnter:()=>t("afterEnter"),onBeforeLeave:()=>t("beforeLeave"),onAfterLeave:()=>t("afterLeave"),...n,...f,...u},r.default)]},attrs:{},features:rg,visible:i.value==="visible",name:"Transition"})}}});const Zi=Kt(ze.ui.strategy,ze.ui.accordion,sC),LS=Kt(ze.ui.strategy,ze.ui.button,Sh),jS=oe({components:{HDisclosure:yS,HDisclosureButton:bS,HDisclosurePanel:wS,UIcon:_t,UButton:Gt},inheritAttrs:!1,props:{items:{type:Array,default:()=>[]},defaultOpen:{type:Boolean,default:!1},openIcon:{type:String,default:()=>Zi.default.openIcon},unmount:{type:Boolean,default:!1},closeIcon:{type:String,default:()=>Zi.default.closeIcon},multiple:{type:Boolean,default:!1},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},emits:["open"],setup(e,{emit:t}){const{ui:n,attrs:r}=Ge("accordion",xe(e,"ui"),Zi,xe(e,"class")),o=A(()=>LS),s=B([]),i=A(()=>s.value.map(({open:d})=>d));Re(i,(d,p)=>{for(const g in d){const h=p[g],y=d[g];!h&&y&&t("open",g)}},{immediate:!0});function a(d,p){!e.items[d].closeOthers&&e.multiple||s.value.forEach(g=>{g.open&&g.close(p.target)})}function l(d,p){const g=d;g.style.height="0",g.offsetHeight,g.style.height=g.scrollHeight+"px",g.addEventListener("transitionend",p,{once:!0})}function c(d){const p=d;p.style.height=p.scrollHeight+"px",p.offsetHeight}function u(d){const p=d;p.style.height="auto"}function f(d,p){const g=d;g.style.height="0",g.addEventListener("transitionend",p,{once:!0})}return Zl(()=>Yl("$FeIijP1Ba8")),{ui:n,uiButton:o,attrs:r,buttonRefs:s,closeOthers:a,omit:oh,onEnter:l,onBeforeLeave:c,onAfterEnter:u,onLeave:f}}}),MS={key:1};function DS(e,t,n,r,o,s){const i=_t,a=Gt,l=Nn("HDisclosureButton"),c=Nn("HDisclosurePanel"),u=Nn("HDisclosure");return L(),ne("div",{class:W(e.ui.wrapper)},[(L(!0),ne(ke,null,bt(e.items,(f,d)=>(L(),re(u,{key:d,as:"div",class:W(e.ui.container),"default-open":e.defaultOpen||f.defaultOpen},{default:le(({open:p,close:g})=>[K(l,{ref_for:!0,ref:()=>e.buttonRefs[d]={open:p,close:g},as:"template",disabled:f.disabled,onClick:h=>e.closeOthers(d,h),onKeydown:[lu(h=>e.closeOthers(d,h),["enter"]),lu(h=>e.closeOthers(d,h),["space"])]},{default:le(()=>[ye(e.$slots,"default",{item:f,index:d,open:p,close:g},()=>[K(a,$r(Mr({...e.omit(e.ui.default,["openIcon","closeIcon"]),...e.attrs,...e.omit(f,["slot","disabled","content","defaultOpen"])})),{trailing:le(()=>[K(i,{name:p&&e.closeIcon?e.closeIcon:e.openIcon,class:W([p&&!e.closeIcon?"-rotate-180":"",e.uiButton.icon.size[f.size||e.uiButton.default.size],e.ui.item.icon])},null,8,["name","class"])]),_:2},1040)])]),_:2},1032,["disabled","onClick","onKeydown"]),K(Vn,ue(e.ui.transition,{onEnter:e.onEnter,onAfterEnter:e.onAfterEnter,onBeforeLeave:e.onBeforeLeave,onLeave:e.onLeave}),{default:le(()=>[e.unmount?(L(),re(c,{key:0,class:W([e.ui.item.base,e.ui.item.size,e.ui.item.color,e.ui.item.padding]),unmount:""},{default:le(()=>[ye(e.$slots,f.slot||"item",{item:f,index:d,open:p,close:g},()=>[Je(Ne(f.content),1)])]),_:2},1032,["class"])):Mm((L(),ne("div",MS,[K(c,{class:W([e.ui.item.base,e.ui.item.size,e.ui.item.color,e.ui.item.padding]),static:""},{default:le(()=>[ye(e.$slots,f.slot||"item",{item:f,index:d,open:p,close:g},()=>[Je(Ne(f.content),1)])]),_:2},1032,["class"])],512)),[[$v,p]])]),_:2},1040,["onEnter","onAfterEnter","onBeforeLeave","onLeave"])]),_:2},1032,["class","default-open"]))),128))],2)}const NS=Dt(jS,[["render",DS]]),BS=oe({inheritAttrs:!1,__name:"NavigationAccordion",props:{level:{type:Number,default:0},links:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!0},defaultOpen:{type:[Boolean,Number],default:void 0},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(e){const t=ft(),n=A(()=>{const l=at("space-y-3",r.level>0&&"border-l border-gray-200 dark:border-gray-800 -ml-px hover:border-gray-300 dark:hover:border-gray-700"),c=at("border-l border-gray-200 dark:border-gray-800",r.level>0?"ml-6":"ml-2.5");return{wrapper:l,container:"space-y-3",item:{padding:"",color:"text-inherit dark:text-inherit"},button:{base:"flex items-center gap-1.5 group w-full focus-visible:outline-primary",active:"text-primary border-current",inactive:"border-transparent",level:"border-l -ml-px pl-3.5",icon:{base:"w-5 h-5 flex-shrink-0"},trailingIcon:{name:t.ui.icons.chevron,base:"w-5 h-5 ms-auto transform transition-transform duration-200 flex-shrink-0 mr-1.5",active:"text-gray-700 dark:text-gray-200",inactive:"text-gray-500 dark:text-gray-400 group-hover:text-gray-700 dark:group-hover:text-gray-200 -rotate-90"},label:"text-sm/6 font-semibold truncate"},tree:c,links:{}}}),r=e,o=vn(),{ui:s,attrs:i}=Ge("navigation.accordion",xe(r,"ui"),n,xe(r,"class"),!0),a=A(()=>{var l;return(l=r.links)==null?void 0:l.map(c=>{const u=!r.defaultOpen||typeof r.defaultOpen=="number"&&r.level{const u=_t,f=Gn,d=sg,p=NS;return L(),re(p,ue({key:C(o).path,items:C(a),multiple:e.multiple,ui:C(s)},C(i)),fi({default:le(({item:g,open:h})=>[K(f,{class:W([C(s).button.base,e.level>0&&C(s).button.level]),"active-class":C(s).button.active,"inactive-class":C(s).button.inactive},{default:le(()=>[g.icon?(L(),re(u,{key:0,name:g.icon,class:W(C(s).button.icon.base)},null,8,["name","class"])):me("",!0),Ce("span",{class:W(C(s).button.label)},Ne(g.label),3),g.disabled?me("",!0):(L(),re(u,{key:1,name:C(s).button.trailingIcon.name,class:W([C(s).button.trailingIcon.base,h?C(s).button.trailingIcon.active:C(s).button.trailingIcon.inactive])},null,8,["name","class"]))]),_:2},1032,["class","active-class","inactive-class"])]),_:2},[bt(e.links,({label:g},h)=>({name:g.toLowerCase(),fn:le(({item:y})=>[K(d,{links:y.children,level:e.level+1,"default-open":e.defaultOpen,multiple:e.multiple,class:W(C(s).tree),ui:{links:C(s).links}},null,8,["links","level","default-open","multiple","class","ui"])])}))]),1040,["items","multiple","ui"])}}}),FS=oe({inheritAttrs:!1,__name:"NavigationLinks",props:{level:{type:Number,default:0},links:{type:Array,default:()=>[]},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(e){const t={wrapper:"space-y-3",wrapperLevel:"space-y-1.5",base:"flex items-center gap-1.5 group",active:"text-primary font-medium border-current",inactive:"text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 border-transparent hover:border-gray-500 dark:hover:border-gray-400",level:"border-l -ml-px pl-4",icon:{base:"w-5 h-5 flex-shrink-0"},badge:{base:"rounded-full"},label:"text-sm/6 truncate"},n=e,{ui:r,attrs:o}=Ge("navigation.links",xe(n,"ui"),t,xe(n,"class"),!0);return(s,i)=>{var u;const a=_t,l=Ph,c=Gn;return(u=e.links)!=null&&u.length?(L(),ne("div",ue({key:0,class:e.level>0?C(r).wrapperLevel:C(r).wrapper},C(o)),[(L(!0),ne(ke,null,bt(e.links,(f,d)=>(L(),re(c,ue({key:d},C(Fr)(f),{class:[C(r).base,e.level>0&&C(r).level],"active-class":C(r).active,"inactive-class":C(r).inactive,onClick:f.click}),{default:le(()=>[f.icon?(L(),re(a,{key:0,name:f.icon,class:W(C(jt)(C(r).icon.base,f.iconClass))},null,8,["name","class"])):me("",!0),Ce("span",{class:W(C(r).label)},Ne(f.label),3),ye(s.$slots,"badge",{link:f},()=>[f.badge?(L(),re(l,ue({key:0},typeof f.badge=="string"?{size:"xs",variant:"subtle",label:f.badge}:{size:"xs",variant:"subtle",...f.badge},{class:C(r).badge.base}),null,16,["class"])):me("",!0)])]),_:2},1040,["class","active-class","inactive-class","onClick"]))),128))],16)):me("",!0)}}}),sg=oe({inheritAttrs:!1,__name:"NavigationTree",props:{level:{type:Number,default:0},links:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!0},defaultOpen:{type:[Boolean,Number],default:void 0},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(e){const t={wrapper:"space-y-3",accordion:{},links:{}},n=e,{ui:r,attrs:o}=Ge("navigation.tree",xe(n,"ui"),t,xe(n,"class"),!0),s=A(()=>{var l;const i=[];let a={type:void 0,children:[]};for(const c of n.links){const u=(l=c.children)!=null&&l.length?"accordion":"link";a.type||(a.type=u),a.type===u?a.children.push(c):(i.push(a),a={type:u,children:[c]})}return a.children.length&&i.push(a),i});return(i,a)=>{var u;const l=BS,c=FS;return(u=C(s))!=null&&u.length?(L(),ne("nav",ue({key:0,class:C(r).wrapper},C(o)),[(L(!0),ne(ke,null,bt(C(s),(f,d)=>(L(),ne(ke,{key:d},[f.type==="accordion"?(L(),re(l,{key:0,links:f.children,level:e.level,multiple:e.multiple,"default-open":e.defaultOpen,ui:{...C(r).accordion,links:C(r).links}},null,8,["links","level","multiple","default-open","ui"])):(L(),re(c,{key:1,links:f.children,level:e.level,ui:C(r).links},null,8,["links","level","ui"]))],64))),128))],16)):me("",!0)}}}),HS=oe({inheritAttrs:!1,__name:"HeaderPopoverLinks",props:{links:{type:Array,default:()=>[]},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(e){const t=ft(),n=A(()=>({wrapper:"p-2 space-y-1",base:"block px-2 py-1.5 rounded-md flex items-start gap-1.5",active:"bg-gray-100/50 dark:bg-gray-800/50 text-primary",inactive:"hover:bg-gray-100/50 dark:hover:bg-gray-800/50",label:"font-semibold text-sm/6 inline-block relative",description:"text-sm leading-snug text-gray-500 dark:text-gray-400 line-clamp-2",icon:{base:"w-4 h-4 flex-shrink-0 mt-1"},externalIcon:{name:t.ui.icons.external,base:"w-3 h-3 absolute top-0.5 -right-3.5 text-gray-400 dark:text-gray-500"}})),r=e,{ui:o,attrs:s}=Ge("header.popover.links",xe(r,"ui"),n,xe(r,"class"),!0);return(i,a)=>{var u;const l=_t,c=Gn;return(u=e.links)!=null&&u.length?(L(),ne("div",ue({key:0,class:C(o).wrapper},C(s)),[(L(!0),ne(ke,null,bt(e.links,(f,d)=>(L(),re(c,ue({key:d},C(Fr)(f),{class:C(o).base,"active-class":C(o).active,"inactive-class":C(o).inactive,onClick:f.click}),{default:le(()=>[f.icon?(L(),re(l,{key:0,name:f.icon,class:W(C(jt)(C(o).icon.base,f.iconClass))},null,8,["name","class"])):me("",!0),Ce("p",{class:W([f.target==="_blank"&&"pr-3"])},[Ce("span",{class:W(C(o).label)},[Je(Ne(f.label)+" ",1),f.target==="_blank"?(L(),re(l,{key:0,name:C(o).externalIcon.name,class:W(C(o).externalIcon.base)},null,8,["name","class"])):me("",!0)],2),f.description?(L(),ne("span",{key:0,class:W(C(o).description)},Ne(f.description),3)):me("",!0)],2)]),_:2},1040,["class","active-class","inactive-class","onClick"]))),128))],16)):me("",!0)}}});function Tt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function yr(e){var t=Tt(e).Element;return e instanceof t||e instanceof Element}function It(e){var t=Tt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function lc(e){if(typeof ShadowRoot>"u")return!1;var t=Tt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var dr=Math.max,Zs=Math.min,Ur=Math.round;function nl(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function ig(){return!/^((?!chrome|android).)*safari/i.test(nl())}function zr(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,s=1;t&&It(e)&&(o=e.offsetWidth>0&&Ur(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Ur(r.height)/e.offsetHeight||1);var i=yr(e)?Tt(e):window,a=i.visualViewport,l=!ig()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/o,u=(r.top+(l&&a?a.offsetTop:0))/s,f=r.width/o,d=r.height/s;return{width:f,height:d,top:u,right:c+f,bottom:u+d,left:c,x:c,y:u}}function cc(e){var t=Tt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function US(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function zS(e){return e===Tt(e)||!It(e)?cc(e):US(e)}function sn(e){return e?(e.nodeName||"").toLowerCase():null}function Xn(e){return((yr(e)?e.ownerDocument:e.document)||window.document).documentElement}function uc(e){return zr(Xn(e)).left+cc(e).scrollLeft}function yn(e){return Tt(e).getComputedStyle(e)}function fc(e){var t=yn(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function VS(e){var t=e.getBoundingClientRect(),n=Ur(t.width)/e.offsetWidth||1,r=Ur(t.height)/e.offsetHeight||1;return n!==1||r!==1}function WS(e,t,n){n===void 0&&(n=!1);var r=It(t),o=It(t)&&VS(t),s=Xn(t),i=zr(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((sn(t)!=="body"||fc(s))&&(a=zS(t)),It(t)?(l=zr(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=uc(s))),{x:i.left+a.scrollLeft-l.x,y:i.top+a.scrollTop-l.y,width:i.width,height:i.height}}function dc(e){var t=zr(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Ci(e){return sn(e)==="html"?e:e.assignedSlot||e.parentNode||(lc(e)?e.host:null)||Xn(e)}function ag(e){return["html","body","#document"].indexOf(sn(e))>=0?e.ownerDocument.body:It(e)&&fc(e)?e:ag(Ci(e))}function So(e,t){var n;t===void 0&&(t=[]);var r=ag(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=Tt(r),i=o?[s].concat(s.visualViewport||[],fc(r)?r:[]):r,a=t.concat(i);return o?a:a.concat(So(Ci(i)))}function qS(e){return["table","td","th"].indexOf(sn(e))>=0}function Af(e){return!It(e)||yn(e).position==="fixed"?null:e.offsetParent}function KS(e){var t=/firefox/i.test(nl()),n=/Trident/i.test(nl());if(n&&It(e)){var r=yn(e);if(r.position==="fixed")return null}var o=Ci(e);for(lc(o)&&(o=o.host);It(o)&&["html","body"].indexOf(sn(o))<0;){var s=yn(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function os(e){for(var t=Tt(e),n=Af(e);n&&qS(n)&&yn(n).position==="static";)n=Af(n);return n&&(sn(n)==="html"||sn(n)==="body"&&yn(n).position==="static")?t:n||KS(e)||t}var St="top",Vt="bottom",Wt="right",Pt="left",pc="auto",ss=[St,Vt,Wt,Pt],Vr="start",Wo="end",GS="clippingParents",lg="viewport",co="popper",XS="reference",Of=ss.reduce(function(e,t){return e.concat([t+"-"+Vr,t+"-"+Wo])},[]),cg=[].concat(ss,[pc]).reduce(function(e,t){return e.concat([t,t+"-"+Vr,t+"-"+Wo])},[]),QS="beforeRead",YS="read",JS="afterRead",ZS="beforeMain",eP="main",tP="afterMain",nP="beforeWrite",rP="write",oP="afterWrite",sP=[QS,YS,JS,ZS,eP,tP,nP,rP,oP];function iP(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function o(s){n.add(s.name);var i=[].concat(s.requires||[],s.requiresIfExists||[]);i.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&o(l)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||o(s)}),r}function aP(e){var t=iP(e);return sP.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function lP(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function cP(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}function uP(e,t){var n=Tt(e),r=Xn(e),o=n.visualViewport,s=r.clientWidth,i=r.clientHeight,a=0,l=0;if(o){s=o.width,i=o.height;var c=ig();(c||!c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:i,x:a+uc(e),y:l}}function fP(e){var t,n=Xn(e),r=cc(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=dr(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=dr(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+uc(e),l=-r.scrollTop;return yn(o||n).direction==="rtl"&&(a+=dr(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:i,x:a,y:l}}function ug(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&lc(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function rl(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function dP(e,t){var n=zr(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Rf(e,t,n){return t===lg?rl(uP(e,n)):yr(t)?dP(t,n):rl(fP(Xn(e)))}function pP(e){var t=So(Ci(e)),n=["absolute","fixed"].indexOf(yn(e).position)>=0,r=n&&It(e)?os(e):e;return yr(r)?t.filter(function(o){return yr(o)&&ug(o,r)&&sn(o)!=="body"}):[]}function hP(e,t,n,r){var o=t==="clippingParents"?pP(e):[].concat(t),s=[].concat(o,[n]),i=s[0],a=s.reduce(function(l,c){var u=Rf(e,c,r);return l.top=dr(u.top,l.top),l.right=Zs(u.right,l.right),l.bottom=Zs(u.bottom,l.bottom),l.left=dr(u.left,l.left),l},Rf(e,i,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function nn(e){return e.split("-")[0]}function Wr(e){return e.split("-")[1]}function hc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function fg(e){var t=e.reference,n=e.element,r=e.placement,o=r?nn(r):null,s=r?Wr(r):null,i=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case St:l={x:i,y:t.y-n.height};break;case Vt:l={x:i,y:t.y+t.height};break;case Wt:l={x:t.x+t.width,y:a};break;case Pt:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=o?hc(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(s){case Vr:l[c]=l[c]-(t[u]/2-n[u]/2);break;case Wo:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function dg(){return{top:0,right:0,bottom:0,left:0}}function pg(e){return Object.assign({},dg(),e)}function hg(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}function gc(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,s=n.strategy,i=s===void 0?e.strategy:s,a=n.boundary,l=a===void 0?GS:a,c=n.rootBoundary,u=c===void 0?lg:c,f=n.elementContext,d=f===void 0?co:f,p=n.altBoundary,g=p===void 0?!1:p,h=n.padding,y=h===void 0?0:h,k=pg(typeof y!="number"?y:hg(y,ss)),m=d===co?XS:co,v=e.rects.popper,b=e.elements[g?m:d],w=hP(yr(b)?b:b.contextElement||Xn(e.elements.popper),l,u,i),E=zr(e.elements.reference),S=fg({reference:E,element:v,strategy:"absolute",placement:o}),T=rl(Object.assign({},v,S)),I=d===co?T:E,O={top:w.top-I.top+k.top,bottom:I.bottom-w.bottom+k.bottom,left:w.left-I.left+k.left,right:I.right-w.right+k.right},V=e.modifiersData.offset;if(d===co&&V){var $=V[o];Object.keys(O).forEach(function(U){var ve=[Wt,Vt].indexOf(U)>=0?1:-1,fe=[St,Vt].indexOf(U)>=0?"y":"x";O[U]+=$[fe]*ve})}return O}var $f={placement:"bottom",modifiers:[],strategy:"absolute"};function If(){for(var e=arguments.length,t=new Array(e),n=0;n=0});d.length===0&&(d=f);var p=d.reduce(function(g,h){return g[h]=gc(e,{placement:h,boundary:o,rootBoundary:s,padding:i})[nn(h)],g},{});return Object.keys(p).sort(function(g,h){return p[g]-p[h]})}function AP(e){if(nn(e)===pc)return[];var t=Ms(e);return[jf(e),t,jf(t)]}function OP(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,i=n.altAxis,a=i===void 0?!0:i,l=n.fallbackPlacements,c=n.padding,u=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,g=p===void 0?!0:p,h=n.allowedAutoPlacements,y=t.options.placement,k=nn(y),m=k===y,v=l||(m||!g?[Ms(y)]:AP(y)),b=[y].concat(v).reduce(function(De,st){return De.concat(nn(st)===pc?TP(t,{placement:st,boundary:u,rootBoundary:f,padding:c,flipVariations:g,allowedAutoPlacements:h}):st)},[]),w=t.rects.reference,E=t.rects.popper,S=new Map,T=!0,I=b[0],O=0;O=0,fe=ve?"width":"height",F=gc(t,{placement:V,boundary:u,rootBoundary:f,altBoundary:d,padding:c}),ee=ve?U?Wt:Pt:U?Vt:St;w[fe]>E[fe]&&(ee=Ms(ee));var Y=Ms(ee),je=[];if(s&&je.push(F[$]<=0),a&&je.push(F[ee]<=0,F[Y]<=0),je.every(function(De){return De})){I=V,T=!1;break}S.set(V,je)}if(T)for(var Ze=g?3:1,de=function(st){var Me=b.find(function(j){var X=S.get(j);if(X)return X.slice(0,st).every(function(q){return q})});if(Me)return I=Me,"break"},pe=Ze;pe>0;pe--){var Ve=de(pe);if(Ve==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}const RP={name:"flip",enabled:!0,phase:"main",fn:OP,requiresIfExists:["offset"],data:{_skip:!1}};function $P(e,t,n){var r=nn(e),o=[Pt,St].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=s[0],a=s[1];return i=i||0,a=(a||0)*o,[Pt,Wt].indexOf(r)>=0?{x:a,y:i}:{x:i,y:a}}function IP(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,i=cg.reduce(function(u,f){return u[f]=$P(f,t.rects,s),u},{}),a=i[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}const LP={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:IP};function jP(e){return e==="x"?"y":"x"}function Po(e,t,n){return dr(e,Zs(t,n))}function MP(e,t,n){var r=Po(e,t,n);return r>n?n:r}function DP(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,s=o===void 0?!0:o,i=n.altAxis,a=i===void 0?!1:i,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,f=n.padding,d=n.tether,p=d===void 0?!0:d,g=n.tetherOffset,h=g===void 0?0:g,y=gc(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),k=nn(t.placement),m=Wr(t.placement),v=!m,b=hc(k),w=jP(b),E=t.modifiersData.popperOffsets,S=t.rects.reference,T=t.rects.popper,I=typeof h=="function"?h(Object.assign({},t.rects,{placement:t.placement})):h,O=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),V=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,$={x:0,y:0};if(E){if(s){var U,ve=b==="y"?St:Pt,fe=b==="y"?Vt:Wt,F=b==="y"?"height":"width",ee=E[b],Y=ee+y[ve],je=ee-y[fe],Ze=p?-T[F]/2:0,de=m===Vr?S[F]:T[F],pe=m===Vr?-T[F]:-S[F],Ve=t.elements.arrow,De=p&&Ve?dc(Ve):{width:0,height:0},st=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:dg(),Me=st[ve],j=st[fe],X=Po(0,S[F],De[F]),q=v?S[F]/2-Ze-X-Me-O.mainAxis:de-X-Me-O.mainAxis,se=v?-S[F]/2+Ze+X+j+O.mainAxis:pe+X+j+O.mainAxis,Se=t.elements.arrow&&os(t.elements.arrow),_=Se?b==="y"?Se.clientTop||0:Se.clientLeft||0:0,x=(U=V==null?void 0:V[b])!=null?U:0,P=ee+q-x-_,R=ee+se-x,M=Po(p?Zs(Y,P):Y,ee,p?dr(je,R):je);E[b]=M,$[b]=M-ee}if(a){var D,Q=b==="x"?St:Pt,H=b==="x"?Vt:Wt,z=E[w],N=w==="y"?"height":"width",ae=z+y[Q],te=z-y[H],ie=[St,Pt].indexOf(k)!==-1,ge=(D=V==null?void 0:V[w])!=null?D:0,_e=ie?ae:z-S[N]-T[N]-ge+O.altAxis,$e=ie?z+S[N]+T[N]-ge-O.altAxis:te,Oe=p&&ie?MP(_e,z,$e):Po(p?_e:ae,z,p?$e:te);E[w]=Oe,$[w]=Oe-z}t.modifiersData[r]=$}}const NP={name:"preventOverflow",enabled:!0,phase:"main",fn:DP,requiresIfExists:["offset"]};var BP=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,pg(typeof t!="number"?t:hg(t,ss))};function FP(e){var t,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,i=n.modifiersData.popperOffsets,a=nn(n.placement),l=hc(a),c=[Pt,Wt].indexOf(a)>=0,u=c?"height":"width";if(!(!s||!i)){var f=BP(o.padding,n),d=dc(s),p=l==="y"?St:Pt,g=l==="y"?Vt:Wt,h=n.rects.reference[u]+n.rects.reference[l]-i[l]-n.rects.popper[u],y=i[l]-n.rects.reference[l],k=os(s),m=k?l==="y"?k.clientHeight||0:k.clientWidth||0:0,v=h/2-y/2,b=f[p],w=m-d[u]-f[g],E=m/2-d[u]/2+v,S=Po(b,E,w),T=l;n.modifiersData[r]=(t={},t[T]=S,t.centerOffset=S-E,t)}}function HP(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||ug(t.elements.popper,o)&&(t.elements.arrow=o))}const UP={name:"arrow",enabled:!0,phase:"main",fn:FP,effect:HP,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},zP=gP({defaultModifiers:[...CP,LP,RP,NP,mg,gg,UP]});function VP({locked:e=!1,overflowPadding:t=8,offsetDistance:n=8,offsetSkid:r=0,gpuAcceleration:o=!0,adaptive:s=!0,scroll:i=!0,resize:a=!0,arrow:l=!1,placement:c,strategy:u},f){const d=B(null),p=B(null),g=B(null);return Le(()=>{Ye(h=>{if(!p.value||!d.value&&!(f!=null&&f.value))return;const y=Ys(p),k=Ys(d);if(!(y instanceof HTMLElement)||!k)return;const m={modifiers:[{name:"flip",enabled:!e},{name:"preventOverflow",options:{padding:t}},{name:"offset",options:{offset:[r,n]}},{name:"computeStyles",options:{adaptive:s,gpuAcceleration:o}},{name:"eventListeners",options:{scroll:i,resize:a}},{name:"arrow",enabled:l}]};c&&(m.placement=c),u&&(m.strategy=u),g.value=zP(k,y,m),h(g.value.destroy)})}),[d,p,g]}const ea=Kt(ze.ui.strategy,ze.ui.popover,lC),WP=oe({components:{HPopover:tg,HPopoverButton:ES,HPopoverPanel:CS},inheritAttrs:!1,props:{mode:{type:String,default:"click",validator:e=>["click","hover"].includes(e)},open:{type:Boolean,default:void 0},disabled:{type:Boolean,default:!1},openDelay:{type:Number,default:()=>ea.default.openDelay},closeDelay:{type:Number,default:()=>ea.default.closeDelay},overlay:{type:Boolean,default:!1},popper:{type:Object,default:()=>({})},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},emits:["update:open"],setup(e,{emit:t}){const{ui:n,attrs:r}=Ge("popover",xe(e,"ui"),ea,xe(e,"class")),o=A(()=>hi(e.mode==="hover"?{offsetDistance:0}:{},e.popper,n.value.popper)),[s,i]=VP(o.value),a=B(null),l=B(null);let c=null,u=null;Le(()=>{var k,m;const h=(k=a.value)==null?void 0:k.$.provides;if(!h)return;const y=Object.getOwnPropertySymbols(h);l.value=y.length&&h[y[0]],e.open&&((m=l.value)==null||m.togglePopover())});const f=A(()=>{var m,v,b;if(e.mode!=="hover")return{};const h=((m=e.popper)==null?void 0:m.offsetDistance)||((v=n.value.popper)==null?void 0:v.offsetDistance)||8,y=(b=o.value.placement)==null?void 0:b.split("-")[0],k=`${h}px`;return y==="top"||y==="bottom"?{paddingTop:k,paddingBottom:k}:y==="left"||y==="right"?{paddingLeft:k,paddingRight:k}:{paddingTop:k,paddingBottom:k,paddingLeft:k,paddingRight:k}});function d(h){!h.cancelable||!l.value||(l.value.popoverState===0?l.value.closePopover():l.value.togglePopover())}function p(){e.mode!=="hover"||!l.value||(u&&(clearTimeout(u),u=null),l.value.popoverState!==0&&(c=c||setTimeout(()=>{l.value.togglePopover&&l.value.togglePopover(),c=null},e.openDelay)))}function g(){e.mode!=="hover"||!l.value||(c&&(clearTimeout(c),c=null),l.value.popoverState!==1&&(u=u||setTimeout(()=>{l.value.closePopover&&l.value.closePopover(),u=null},e.closeDelay)))}return Re(()=>e.open,(h,y)=>{l.value&&(y===void 0||h===y||(h?l.value.popoverState=0:l.value.closePopover()))}),Re(()=>{var h;return(h=l.value)==null?void 0:h.popoverState},(h,y)=>{y===void 0||h===y||t("update:open",h===0)}),Zl(()=>Yl("$X5npdzg9aV")),{ui:n,attrs:r,popover:a,popper:o,trigger:s,container:i,containerStyle:f,onTouchStart:d,onMouseEnter:p,onMouseLeave:g}}}),qP=["disabled"];function KP(e,t,n,r,o,s){const i=Nn("HPopoverButton"),a=Nn("HPopoverPanel"),l=Nn("HPopover");return L(),re(l,ue({ref:"popover",class:e.ui.wrapper},e.attrs,{onMouseleave:e.onMouseLeave}),{default:le(({open:c,close:u})=>[K(i,{ref:"trigger",as:"div",disabled:e.disabled,class:W(e.ui.trigger),role:"button",onMouseenter:e.onMouseEnter,onTouchstartPassive:e.onTouchStart},{default:le(()=>[ye(e.$slots,"default",{open:c,close:u},()=>[Ce("button",{disabled:e.disabled}," Open ",8,qP)])]),_:2},1032,["disabled","class","onMouseenter","onTouchstartPassive"]),e.overlay?(L(),re(Vn,ue({key:0,appear:""},e.ui.overlay.transition),{default:le(()=>[c?(L(),ne("div",{key:0,class:W([e.ui.overlay.base,e.ui.overlay.background])},null,2)):me("",!0)]),_:2},1040)):me("",!0),c?(L(),ne("div",{key:1,ref:"container",class:W([e.ui.container,e.ui.width]),style:Hn(e.containerStyle),onMouseenter:t[0]||(t[0]=(...f)=>e.onMouseEnter&&e.onMouseEnter(...f))},[K(Vn,ue({appear:""},e.ui.transition),{default:le(()=>[Ce("div",null,[e.popper.arrow?(L(),ne("div",{key:0,"data-popper-arrow":"",class:W(Object.values(e.ui.arrow))},null,2)):me("",!0),K(a,{class:W([e.ui.base,e.ui.background,e.ui.ring,e.ui.rounded,e.ui.shadow]),static:""},{default:le(()=>[ye(e.$slots,"panel",{open:c,close:u})]),_:2},1032,["class"])])]),_:2},1040)],38)):me("",!0)]),_:3},16,["class","onMouseleave"])}const GP=Dt(WP,[["render",KP]]),XP=oe({inheritAttrs:!1,__name:"HeaderLinks",props:{links:{type:Array,default:()=>[]},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(e){const t=ft(),n=A(()=>({wrapper:"flex items-center gap-x-8",base:"text-sm/6 font-semibold flex items-center gap-1",active:"text-primary",inactive:"hover:text-primary",trailingIcon:{name:t.ui.icons.chevron,base:"w-5 h-5 transform transition-transform duration-200 flex-shrink-0",active:"rotate-180",inactive:""},externalIcon:{name:t.ui.icons.external,base:"w-3 h-3 absolute top-0.5 -right-3.5 text-gray-400 dark:text-gray-500"},default:{popover:{mode:"hover",openDelay:0,ui:{width:"max-w-[16rem]"}}}})),r=e,{ui:o,attrs:s}=Ge("header.links",xe(r,"ui"),n,xe(r,"class"),!0);return(i,a)=>{var d;const l=_t,c=Gn,u=HS,f=GP;return(d=e.links)!=null&&d.length?(L(),ne("ul",ue({key:0,class:C(o).wrapper},C(s)),[(L(!0),ne(ke,null,bt(e.links,(p,g)=>{var h;return L(),ne("li",{key:g,class:"relative"},[(h=p.children)!=null&&h.length?(L(),re(f,$r(ue({key:0},C(o).default.popover)),{default:le(({open:y})=>[K(c,ue(C(Fr)(p),{class:C(o).base,"active-class":C(o).active,"inactive-class":C(o).inactive,onClick:p.click}),{default:le(()=>[ye(i.$slots,"label",{link:p},()=>[Je(Ne(p.label),1)]),K(l,{name:C(o).trailingIcon.name,class:W([C(o).trailingIcon.base,y?C(o).trailingIcon.active:C(o).trailingIcon.inactive])},null,8,["name","class"])]),_:2},1040,["class","active-class","inactive-class","onClick"])]),panel:le(({close:y})=>[ye(i.$slots,"panel",{link:p,close:y},()=>[K(u,{links:p.children,onClick:y},null,8,["links","onClick"])])]),_:2},1040)):(L(),re(c,ue({key:1},C(Fr)(p),{class:C(o).base,"active-class":C(o).active,"inactive-class":C(o).inactive,onClick:p.click}),{default:le(()=>[ye(i.$slots,"label",{link:p},()=>[Je(Ne(p.label),1)]),p.target==="_blank"?(L(),re(l,{key:0,name:C(o).externalIcon.name,class:W(C(o).externalIcon.base)},null,8,["name","class"])):me("",!0)]),_:2},1040,["class","active-class","inactive-class","onClick"]))])}),128))],16)):me("",!0)}}}),QP=Kt(ze.ui.strategy,ze.ui.container,aC),YP=oe({inheritAttrs:!1,props:{as:{type:String,default:"div"},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},setup(e){const{ui:t,attrs:n}=Ge("container",xe(e,"ui"),QP),r=A(()=>jt(at(t.value.base,t.value.padding,t.value.constrained),e.class));return{ui:t,attrs:n,containerClass:r}}});function JP(e,t,n,r,o,s){return L(),re(gr(e.as),ue({class:e.containerClass},e.attrs),{default:le(()=>[ye(e.$slots,"default")]),_:3},16,["class"])}const mc=Dt(YP,[["render",JP]]),ZP=oe({inheritAttrs:!1,__name:"AsideLinks",props:{links:{type:Array,default:()=>[]},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(e){const t=ft(),n=A(()=>({wrapper:"space-y-3 mb-3 lg:mb-6 -mx-1 lg:mx-0",base:"flex items-center gap-1.5 lg:gap-2 group",active:"text-primary font-semibold",inactive:"text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 font-medium",icon:{wrapper:"rounded-md p-1 inline-flex ring-inset ring-1",base:"w-4 h-4 flex-shrink-0",active:"bg-primary ring-primary text-background",inactive:"bg-gray-100/50 dark:bg-gray-800/50 ring-gray-300 dark:ring-gray-700 group-hover:bg-primary group-hover:ring-primary group-hover:text-background"},externalIcon:{name:t.ui.icons.external,base:"w-3 h-3 absolute top-0.5 -right-3.5 text-gray-400 dark:text-gray-500"},label:"text-sm/6 relative"})),r=e,{ui:o,attrs:s}=Ge("aside.links",xe(r,"ui"),n,xe(r,"class"),!0);return(i,a)=>{var u;const l=_t,c=Gn;return(u=e.links)!=null&&u.length?(L(),ne("div",ue({key:0,class:C(o).wrapper},C(s)),[(L(!0),ne(ke,null,bt(e.links,(f,d)=>(L(),re(c,ue({key:d},C(Fr)(f),{class:C(o).base,"active-class":C(o).active,"inactive-class":C(o).inactive,onClick:f.click}),{default:le(({isActive:p})=>[f.icon?(L(),ne("div",{key:0,class:W([C(o).icon.wrapper,f.active||p?C(o).icon.active:C(o).icon.inactive])},[K(l,{name:f.icon,class:W(C(jt)(C(o).icon.base,f.iconClass))},null,8,["name","class"])],2)):me("",!0),Ce("span",{class:W(C(o).label)},[Je(Ne(f.label)+" ",1),f.target==="_blank"?(L(),re(l,{key:0,name:C(o).externalIcon.name,class:W(C(o).externalIcon.base)},null,8,["name","class"])):me("",!0)],2)]),_:2},1040,["class","active-class","inactive-class","onClick"]))),128))],16)):me("",!0)}}}),ol=e=>e.map(t=>{if(!t.children||typeof t.children=="string")return t.children||"";if(Array.isArray(t.children))return ol(t.children);if(t.children.default)return ol(t.children.default())}).join(""),eT=oe({inheritAttrs:!1,__name:"Header",props:{to:{type:String,default:"/"},title:{type:String,default:void 0},links:{type:Array,default:()=>[]},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(e){const t=ft(),n=A(()=>({wrapper:"bg-background/75 backdrop-blur border-b border-gray-200 dark:border-gray-800 -mb-px sticky top-0 z-50",container:"flex items-center justify-between gap-3 h-[--header-height]",left:"lg:flex-1 flex items-center gap-1.5",center:"hidden lg:flex",right:"flex items-center justify-end lg:flex-1 gap-1.5",logo:"flex-shrink-0 font-bold text-xl text-gray-900 dark:text-white flex items-end gap-1.5",panel:{wrapper:"fixed inset-0 z-50 overflow-y-auto bg-background lg:hidden",header:"px-4 sm:px-6",body:"px-4 sm:px-6 pt-3 pb-6"},button:{base:"lg:hidden",icon:{open:t.ui.icons.menu,close:t.ui.icons.close}}})),r=e,o=vn(),s=Td(),{isHeaderDialogOpen:i}=Th(),{ui:a,attrs:l}=Ge("header",xe(r,"ui"),n,xe(r,"class"),!0),c=A(()=>(r.title||s.logo&&ol(s.logo())||"Logo").trim());return Re(()=>o.fullPath,()=>{i.value=!1}),Zl(()=>Yl("$8Bh2daKdgr")),(u,f)=>{const d=Eh,p=XP,g=Gt,h=mc,y=ZP;return L(),ne("header",ue({class:C(a).wrapper},C(l)),[ye(u.$slots,"top"),K(h,{class:W(C(a).container)},{default:le(()=>[Ce("div",{class:W(C(a).left)},[ye(u.$slots,"left",{},()=>[K(d,{to:e.to,"aria-label":C(c),class:W(C(a).logo)},{default:le(()=>[ye(u.$slots,"logo",{},()=>[Je(Ne(e.title||"Nuxt UI Pro"),1)])]),_:3},8,["to","aria-label","class"])])],2),ye(u.$slots,"center",{},()=>[K(p,{links:e.links,class:W(C(a).center)},null,8,["links","class"])]),Ce("div",{class:W(C(a).right)},[ye(u.$slots,"right"),ye(u.$slots,"panel-button",{open:C(i)},()=>{var k,m;return[e.links.length||u.$slots.panel?(L(),re(g,ue({key:0,class:C(a).button.base},(m=(k=u.$ui)==null?void 0:k.button)==null?void 0:m.secondary,{"aria-label":`${C(i)?"Close":"Open"} Menu`,icon:C(i)?C(a).button.icon.close:C(a).button.icon.open,onClick:f[0]||(f[0]=v=>i.value=!C(i))}),null,16,["class","aria-label","icon"])):me("",!0)]})],2)]),_:3},8,["class"]),ye(u.$slots,"bottom"),K(C(og),{show:C(i),as:"template"},{default:le(()=>[K(C(hS),{as:"div",onClose:f[2]||(f[2]=k=>i.value=!1)},{default:le(()=>[K(C(gS),{class:W(C(a).panel.wrapper)},{default:le(()=>[Ce("div",{class:W([C(a).panel.header,C(a).wrapper])},[Ce("div",{class:W(C(a).container)},[Ce("div",{class:W(C(a).left)},[ye(u.$slots,"left",{},()=>[K(d,{to:e.to,"aria-label":C(c),class:W(C(a).logo)},{default:le(()=>[ye(u.$slots,"logo",{},()=>[Je(Ne(e.title||"Nuxt UI Pro"),1)])]),_:3},8,["to","aria-label","class"])])],2),ye(u.$slots,"center"),Ce("div",{class:W(C(a).right)},[ye(u.$slots,"right"),ye(u.$slots,"panel-button",{open:C(i)},()=>{var k,m;return[K(g,ue({class:C(a).button.base},(m=(k=u.$ui)==null?void 0:k.button)==null?void 0:m.secondary,{"aria-label":`${C(i)?"Close":"Open"} Menu`,icon:C(i)?C(a).button.icon.close:C(a).button.icon.open,onClick:f[1]||(f[1]=v=>i.value=!C(i))}),null,16,["class","aria-label","icon"])]})],2)],2)],2),Ce("div",{class:W(C(a).panel.body)},[ye(u.$slots,"panel",{},()=>[K(y,{links:e.links},null,8,["links"])])],2)]),_:3},8,["class"])]),_:3})]),_:3},8,["show"])],16)}}}),tT=/\d/,nT=["-","_","/","."];function rT(e=""){if(!tT.test(e))return e!==e.toLowerCase()}function vc(e,t){const n=nT,r=[];if(!e||typeof e!="string")return r;let o="",s,i;for(const a of e){const l=n.includes(a);if(l===!0){r.push(o),o="",s=void 0;continue}const c=rT(a);if(i===!1){if(s===!1&&c===!0){r.push(o),o=a,s=c;continue}if(s===!0&&c===!1&&o.length>1){const u=o.at(-1);r.push(o.slice(0,Math.max(0,o.length-1))),o=u+a,s=c;continue}}o+=a,s=c,i=l}return r.push(o),r}function vg(e){return e?e[0].toUpperCase()+e.slice(1):""}function rA(e,t){return e?(Array.isArray(e)?e:vc(e)).map(n=>vg(t!=null&&t.normalize?n.toLowerCase():n)).join(""):""}function oA(e,t){return e?(Array.isArray(e)?e:vc(e)).map(n=>n.toLowerCase()).join("-"):""}function yg(e,t){const n={[(t==null?void 0:t.labelAttribute)||"title"]:"label",_path:"to"};return e.map(r=>{var s;const o={};for(const i in r){if(i==="children"){o.children=(s=r.children)!=null&&s.length?yg(r.children,t):void 0;continue}r[i]&&(o[n[i]||i]=r[i])}return o})}function sA(e){var t;return(t=e._dir)!=null&&t.title?e._dir.title:vc(e._dir).map(n=>vg(n)).join(" ")}function oT(e,t){return!e||!t?[]:e.reduce((n,r)=>(t._path&&(t._path+"/").startsWith(r._path+"/")&&r.children&&(n.push(r),n.push(...oT(r.children,t))),n),[])}const sT=Rl("/favicon.ico"),iT={class:"hidden sm:block"},aT=Ce("img",{class:"block sm:hidden h-6 w-auto",src:sT,alt:"mobile favicon"},null,-1),bg=oe({__name:"Header",setup(e){const t=Ee("navigation",[]),{header:n}=ft();return(r,o)=>{var d;const s=vC,i=Ph,a=TC,l=Oh,c=Gt,u=sg,f=eT;return L(),re(f,null,fi({logo:le(()=>{var p,g,h,y,k;return[(g=(p=C(n))==null?void 0:p.logo)!=null&&g.dark||(y=(h=C(n))==null?void 0:h.logo)!=null&&y.light?(L(),ne(ke,{key:0},[Ce("div",iT,[K(s,$r(Mr({class:"h-6 w-auto",...(k=C(n))==null?void 0:k.logo})),null,16)]),aT],64)):(L(),ne(ke,{key:1},[Je(" Nuxt UI Pro "),K(i,{label:"Docs",variant:"subtle",class:"mb-0.5"})],64))]}),right:le(()=>{var p,g,h;return[(p=C(n))!=null&&p.search?(L(),re(a,{key:0,label:null,class:"lg:hidden"})):me("",!0),(g=C(n))!=null&&g.colorMode?(L(),re(l,{key:1})):me("",!0),(h=C(n))!=null&&h.links?(L(!0),ne(ke,{key:2},bt(C(n).links,(y,k)=>(L(),re(c,ue({key:k},{color:"gray",variant:"ghost",...y}),null,16))),128)):me("",!0)]}),panel:le(()=>[K(u,{links:("mapContentNavigation"in r?r.mapContentNavigation:C(yg))(C(t))},null,8,["links"])]),_:2},[(d=C(n))!=null&&d.search?{name:"center",fn:le(()=>[K(a,{class:"hidden lg:flex"})]),key:"0"}:void 0]),1024)}}}),lT=oe({props:{vnode:{type:Object,required:!0},route:{type:Object,required:!0},vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(e){const t=e.renderKey,n=e.route,r={};for(const o in e.route)Object.defineProperty(r,o,{get:()=>t===e.renderKey?e.route[o]:n[o]});return Be(Yr,pn(r)),()=>be(e.vnode,{ref:e.vnodeRef})}}),cT=oe({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,slots:n,expose:r}){const o=Pe(),s=B(),i=Ee(Yr,null);let a;r({pageRef:s});const l=Ee(mp,null);let c;const u=o.deferHydration();if(o.isHydrating){const f=o.hooks.hookOnce("app:error",u);ut().beforeEach(f)}return e.pageKey&&Re(()=>e.pageKey,(f,d)=>{f!==d&&o.callHook("page:loading:start")}),()=>be(Kp,{name:e.name,route:e.route,...t},{default:f=>{const d=fT(i,f.route,f.Component),p=i&&i.matched.length===f.route.matched.length;if(!f.Component){if(c&&!p)return c;u();return}if(c&&l&&!l.isCurrent(f.route))return c;if(d&&i&&(!l||l!=null&&l.isCurrent(i)))return p?c:null;const g=Da(f,e.pageKey);!o.isHydrating&&!dT(i,f.route,f.Component)&&a===g&&o.callHook("page:loading:end"),a=g;const h=!!(e.transition??f.route.meta.pageTransition??ka),y=h&&uT([e.transition,f.route.meta.pageTransition,ka,{onAfterLeave:()=>{o.callHook("page:transition:finish",f.Component)}}].filter(Boolean)),k=e.keepalive??f.route.meta.keepalive??o0;return c=Gp(Vn,h&&y,qw(k,be(bl,{suspensible:!0,onPending:()=>o.callHook("page:start",f.Component),onResolve:()=>{Kn(()=>o.callHook("page:finish",f.Component).then(()=>o.callHook("page:loading:end")).finally(u))}},{default:()=>{const m=be(lT,{key:g||void 0,vnode:n.default?be(ke,void 0,n.default(f)):f.Component,route:f.route,renderKey:g||void 0,trackRootNodes:h,vnodeRef:s});return k&&(m.type.name=f.Component.type.name||f.Component.type.__name||"RouteProvider"),m}}))).default(),c}})}});function uT(e){const t=e.map(n=>({...n,onAfterLeave:n.onAfterLeave?Fl(n.onAfterLeave):void 0}));return hi(...t)}function fT(e,t,n){if(!e)return!1;const r=t.matched.findIndex(o=>{var s;return((s=o.components)==null?void 0:s.default)===(n==null?void 0:n.type)});return!r||r===-1?!1:t.matched.slice(0,r).some((o,s)=>{var i,a,l;return((i=o.components)==null?void 0:i.default)!==((l=(a=e.matched[s])==null?void 0:a.components)==null?void 0:l.default)})||n&&Da({route:t,Component:n})!==Da({route:e,Component:n})}function dT(e,t,n){return e?t.matched.findIndex(o=>{var s;return((s=o.components)==null?void 0:s.default)===(n==null?void 0:n.type)})r.default||r);return()=>be(n,e.layoutProps,t.slots)}}),hT=oe({name:"NuxtLayout",inheritAttrs:!1,props:{name:{type:[String,Boolean,Object],default:null},fallback:{type:[String,Object],default:null}},setup(e,t){const n=Pe(),r=Ee(Yr),o=r===vn()?Vw():r,s=A(()=>{let l=C(e.name)??o.meta.layout??"default";return l&&!(l in In)&&e.fallback&&(l=C(e.fallback)),l}),i=B();t.expose({layoutRef:i});const a=n.deferHydration();if(n.isHydrating){const l=n.hooks.hookOnce("app:error",a);ut().beforeEach(l)}return()=>{const l=s.value&&s.value in In,c=o.meta.layoutTransition??r0;return Gp(Vn,l&&c,{default:()=>be(bl,{suspensible:!0,onResolve:()=>{Kn(a)}},{default:()=>be(gT,{layoutProps:ue(t.attrs,{ref:i}),key:s.value||void 0,name:s.value,shouldProvide:!e.name,hasTransition:!!c},t.slots)})}).default()}}}),gT=oe({name:"NuxtLayoutProvider",inheritAttrs:!1,props:{name:{type:[String,Boolean]},layoutProps:{type:Object},hasTransition:{type:Boolean},shouldProvide:{type:Boolean}},setup(e,t){const n=e.name;return e.shouldProvide&&Be(mp,{isCurrent:r=>n===(r.meta.layout??"default")}),()=>{var r,o;return!n||typeof n=="string"&&!(n in In)?(o=(r=t.slots).default)==null?void 0:o.call(r):be(pT,{key:n,layoutProps:e.layoutProps,name:n},t.slots)}}}),wg=oe({inheritAttrs:!1,__name:"Main",props:{class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(e){const t={wrapper:"min-h-[calc(100vh-var(--header-height))]"},n=e,{ui:r,attrs:o}=Ge("main",xe(n,"ui"),t,xe(n,"class"),!0);return(s,i)=>(L(),ne("main",ue({class:C(r).wrapper},C(o)),[ye(s.$slots,"default")],16))}}),mT=oe({inheritAttrs:!1,__name:"FooterLinks",props:{links:{type:Array,default:()=>[]},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(e){const t=ft(),n=A(()=>({wrapper:"flex flex-col md:flex-row items-center justify-center gap-4 lg:gap-6",base:"text-sm",active:"text-gray-900 dark:text-white font-medium",inactive:"text-gray-500 dark:text-gray-400 hover:text-gray-600 dark:hover:text-gray-300",externalIcon:{name:t.ui.icons.external,base:"w-3 h-3 absolute top-0.5 -right-3.5 text-gray-400 dark:text-gray-500"}})),r=e,{ui:o,attrs:s}=Ge("footer.links",xe(r,"ui"),n,xe(r,"class"),!0);return(i,a)=>{var u;const l=_t,c=Gn;return(u=e.links)!=null&&u.length?(L(),ne("ul",ue({key:0,class:C(o).wrapper},C(s)),[(L(!0),ne(ke,null,bt(e.links,(f,d)=>(L(),ne("li",{key:d,class:"relative"},[K(c,ue(C(Fr)(f),{class:C(o).base,"active-class":C(o).active,"inactive-class":C(o).inactive,onClick:f.click}),{default:le(()=>[Je(Ne(f.label)+" ",1),f.target==="_blank"?(L(),re(l,{key:0,name:C(o).externalIcon.name,class:W(C(o).externalIcon.base)},null,8,["name","class"])):me("",!0)]),_:2},1040,["class","active-class","inactive-class","onClick"])]))),128))],16)):me("",!0)}}}),vT=oe({inheritAttrs:!1,__name:"Footer",props:{links:{type:Array,default:()=>[]},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(e){const t={wrapper:"relative",top:{wrapper:"",container:"py-8 lg:py-12"},bottom:{wrapper:"",container:"py-8 lg:py-4 lg:flex lg:items-center lg:justify-between lg:gap-x-3",left:"flex items-center justify-center lg:justify-start lg:flex-1 gap-x-1.5 mt-3 lg:mt-0 lg:order-1",center:"mt-3 lg:mt-0 lg:order-2 flex items-center justify-center",right:"lg:flex-1 flex items-center justify-center lg:justify-end gap-x-1.5 lg:order-3"}},n=e,{ui:r,attrs:o}=Ge("footer",xe(n,"ui"),t,xe(n,"class"),!0);return(s,i)=>{const a=mc,l=mT;return L(),ne("footer",ue({class:C(r).wrapper},C(o)),[s.$slots.top?(L(),ne("div",{key:0,class:W(C(r).top.wrapper)},[K(a,{class:W(C(r).top.container)},{default:le(()=>[ye(s.$slots,"top")]),_:3},8,["class"])],2)):me("",!0),Ce("div",{class:W(C(r).bottom.wrapper)},[K(a,{class:W(C(r).bottom.container)},{default:le(()=>[Ce("div",{class:W(C(r).bottom.right)},[ye(s.$slots,"right")],2),Ce("div",{class:W(C(r).bottom.center)},[ye(s.$slots,"center",{},()=>[K(l,{links:e.links},null,8,["links"])])],2),Ce("div",{class:W(C(r).bottom.left)},[ye(s.$slots,"left")],2)]),_:3},8,["class"])],2)],16)}}}),_g=oe({__name:"Footer",setup(e){const{footer:t}=ft();return(n,r)=>{const o=Oh,s=Gt,i=vT;return L(),re(i,null,{left:le(()=>[Je(Ne(C(t).credits),1)]),right:le(()=>{var a,l,c;return[(a=C(t))!=null&&a.colorMode?(L(),re(o,{key:0})):me("",!0),(l=C(t))!=null&&l.links?(L(!0),ne(ke,{key:1},bt((c=C(t))==null?void 0:c.links,(u,f)=>(L(),re(s,ue({key:f},{color:"gray",variant:"ghost",...u}),null,16))),128)):me("",!0)]}),_:1})}}}),tr=Kt(ze.ui.strategy,ze.ui.avatar,rC),yT=oe({components:{UIcon:_t},inheritAttrs:!1,props:{as:{type:[String,Object],default:"img"},src:{type:[String,Boolean],default:null},alt:{type:String,default:null},text:{type:String,default:null},icon:{type:String,default:()=>tr.default.icon},size:{type:String,default:()=>tr.default.size,validator(e){return Object.keys(tr.size).includes(e)}},chipColor:{type:String,default:()=>tr.default.chipColor,validator(e){return["gray",...ze.ui.colors].includes(e)}},chipPosition:{type:String,default:()=>tr.default.chipPosition,validator(e){return Object.keys(tr.chip.position).includes(e)}},chipText:{type:[String,Number],default:null},imgClass:{type:String,default:""},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},setup(e){const{ui:t,attrs:n}=Ge("avatar",xe(e,"ui"),tr),r=A(()=>typeof e.src=="boolean"?null:e.src),o=A(()=>(e.alt||"").split(" ").map(f=>f.charAt(0)).join("").substring(0,2)),s=A(()=>jt(at(t.value.wrapper,(c.value||!r.value)&&t.value.background,t.value.rounded,t.value.size[e.size]),e.class)),i=A(()=>jt(at(t.value.rounded,t.value.size[e.size]),e.imgClass)),a=A(()=>at(t.value.icon.base,t.value.icon.size[e.size])),l=A(()=>at(t.value.chip.base,t.value.chip.size[e.size],t.value.chip.position[e.chipPosition],t.value.chip.background.replaceAll("{color}",e.chipColor))),c=B(!1);Re(()=>e.src,()=>{c.value&&(c.value=!1)});function u(){c.value=!0}return{ui:t,attrs:n,wrapperClass:s,imgClass:i,iconClass:a,chipClass:l,url:r,placeholder:o,error:c,onError:u}}});function bT(e,t,n,r,o,s){const i=_t;return L(),ne("span",{class:W(e.wrapperClass)},[e.url&&!e.error?(L(),re(gr(e.as),ue({key:0,class:e.imgClass,alt:e.alt,src:e.url},e.attrs,{onError:e.onError}),null,16,["class","alt","src","onError"])):e.text?(L(),ne("span",{key:1,class:W(e.ui.text)},Ne(e.text),3)):e.icon?(L(),re(i,{key:2,name:e.icon,class:W(e.iconClass)},null,8,["name","class"])):e.placeholder?(L(),ne("span",{key:3,class:W(e.ui.placeholder)},Ne(e.placeholder),3)):me("",!0),e.chipColor?(L(),ne("span",{key:4,class:W(e.chipClass)},Ne(e.chipText),3)):me("",!0),ye(e.$slots,"default")],2)}const xg=Dt(yT,[["render",bT]]);function wT(e,t,n){let r=null;const{pause:o,resume:s,timestamp:i}=fx({controls:!0}),a=B(null),l=A(()=>a.value?t-(i.value-a.value):0);function c(...h){r=setTimeout(()=>{r=null,a.value=null,e(...h)},l.value)}function u(){r&&(clearTimeout(r),r=null)}function f(){a.value=Date.now(),c()}function d(){u(),o()}function p(){u(),o()}function g(){c(),s(),a.value=(a.value||0)+(Date.now()-i.value)}return f(),{start:f,stop:d,pause:p,resume:g,remaining:l}}const uo=Kt(ze.ui.strategy,ze.ui.notification,cC),_T=oe({components:{UIcon:_t,UAvatar:xg,UButton:Gt},inheritAttrs:!1,props:{id:{type:[String,Number],required:!0},title:{type:String,default:null},description:{type:String,default:null},icon:{type:String,default:()=>uo.default.icon},avatar:{type:Object,default:null},closeButton:{type:Object,default:()=>uo.default.closeButton},timeout:{type:Number,default:()=>uo.default.timeout},actions:{type:Array,default:()=>[]},callback:{type:Function,default:null},color:{type:String,default:()=>uo.default.color,validator(e){return["gray",...ze.ui.colors].includes(e)}},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},emits:["close"],setup(e,{emit:t}){const{ui:n,attrs:r}=Ge("notification",xe(e,"ui"),uo);let o=null;const s=B(e.timeout),i=A(()=>{var h,y;return jt(at(n.value.wrapper,(h=n.value.background)==null?void 0:h.replaceAll("{color}",e.color),n.value.rounded,n.value.shadow,(y=n.value.ring)==null?void 0:y.replaceAll("{color}",e.color)),e.class)}),a=A(()=>{var h;return at(n.value.progress.base,(h=n.value.progress.background)==null?void 0:h.replaceAll("{color}",e.color))}),l=A(()=>({width:`${s.value/e.timeout*100||0}%`})),c=A(()=>{var h;return at(n.value.icon.base,(h=n.value.icon.color)==null?void 0:h.replaceAll("{color}",e.color))});function u(){o&&o.pause()}function f(){o&&o.resume()}function d(){o&&o.stop(),e.callback&&e.callback(),t("close")}function p(h){o&&o.stop(),h.click&&h.click(),t("close")}function g(){o&&o.stop(),e.timeout&&(o=wT(()=>{d()},e.timeout),Ye(()=>{s.value=o.remaining.value}))}return Re(()=>e.timeout,g),Le(g),nt(()=>{o&&o.stop()}),{ui:n,attrs:r,wrapperClass:i,progressClass:a,progressStyle:l,iconClass:c,onMouseover:u,onMouseleave:f,onClose:d,onAction:p,twMerge:jt}}});function xT(e,t,n,r,o,s){const i=_t,a=xg,l=Gt;return L(),re(Vn,ue({appear:""},e.ui.transition),{default:le(()=>[Ce("div",ue({class:e.wrapperClass,role:"status"},e.attrs,{onMouseover:t[0]||(t[0]=(...c)=>e.onMouseover&&e.onMouseover(...c)),onMouseleave:t[1]||(t[1]=(...c)=>e.onMouseleave&&e.onMouseleave(...c))}),[Ce("div",{class:W([e.ui.container,e.ui.rounded,e.ui.ring])},[Ce("div",{class:W(["flex",[e.ui.padding,e.ui.gap,{"items-start":e.description||e.$slots.description,"items-center":!e.description&&!e.$slots.description}]])},[e.icon?(L(),re(i,{key:0,name:e.icon,class:W(e.iconClass)},null,8,["name","class"])):me("",!0),e.avatar?(L(),re(a,ue({key:1},{size:e.ui.avatar.size,...e.avatar},{class:e.ui.avatar.base}),null,16,["class"])):me("",!0),Ce("div",{class:W(e.ui.inner)},[e.title||e.$slots.title?(L(),ne("p",{key:0,class:W(e.ui.title)},[ye(e.$slots,"title",{title:e.title},()=>[Je(Ne(e.title),1)])],2)):me("",!0),e.description||e.$slots.description?(L(),ne("div",{key:1,class:W(e.twMerge(e.ui.description,!(e.title&&e.$slots.title)&&"mt-0 leading-5"))},[ye(e.$slots,"description",{description:e.description},()=>[Je(Ne(e.description),1)])],2)):me("",!0),(e.description||e.$slots.description)&&e.actions.length?(L(),ne("div",{key:2,class:W(e.ui.actions)},[(L(!0),ne(ke,null,bt(e.actions,(c,u)=>(L(),re(l,ue({key:u},{...e.ui.default.actionButton||{},...c},{onClick:Di(f=>e.onAction(c),["stop"])}),null,16,["onClick"]))),128))],2)):me("",!0)],2),e.closeButton||!e.description&&!e.$slots.description&&e.actions.length?(L(),ne("div",{key:2,class:W(e.twMerge(e.ui.actions,"mt-0"))},[!e.description&&!e.$slots.description&&e.actions.length?(L(!0),ne(ke,{key:0},bt(e.actions,(c,u)=>(L(),re(l,ue({key:u},{...e.ui.default.actionButton||{},...c},{onClick:Di(f=>e.onAction(c),["stop"])}),null,16,["onClick"]))),128)):me("",!0),e.closeButton?(L(),re(l,ue({key:1,"aria-label":"Close"},{...e.ui.default.closeButton||{},...e.closeButton},{onClick:Di(e.onClose,["stop"])}),null,16,["onClick"])):me("",!0)],2)):me("",!0)],2),e.timeout?(L(),ne("div",{key:0,class:W(e.progressClass),style:Hn(e.progressStyle)},null,6)):me("",!0)],2)],16)]),_:3},16)}const kg=Dt(_T,[["render",xT]]);function kT(){const e=wr("notifications",()=>[]);function t(s){const i={id:new Date().getTime().toString(),...s};return e.value.findIndex(l=>l.id===i.id)===-1&&e.value.push(i),i}function n(s){e.value=e.value.filter(i=>i.id!==s)}function r(s,i){const a=e.value.findIndex(l=>l.id===s);if(a!==-1){const l=e.value[a];e.value.splice(a,1,{...l,...i})}}function o(){e.value=[]}return{add:t,remove:n,update:r,clear:o}}const ET=Kt(ze.ui.strategy,ze.ui.notifications,uC),CT=oe({components:{UNotification:kg},inheritAttrs:!1,props:{class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},setup(e){const{ui:t,attrs:n}=Ge("notifications",xe(e,"ui"),ET),r=kT(),o=wr("notifications",()=>[]),s=A(()=>jt(at(t.value.wrapper,t.value.position,t.value.width),e.class));return{ui:t,attrs:n,toast:r,notifications:o,wrapperClass:s}}});function ST(e,t,n,r,o,s){const i=kg;return L(),re(Fd,{to:"body"},[Ce("div",ue({class:e.wrapperClass,role:"region"},e.attrs),[e.notifications.length?(L(),ne("div",{key:0,class:W(e.ui.container)},[(L(!0),ne(ke,null,bt(e.notifications,a=>(L(),ne("div",{key:a.id},[K(i,ue(a,{class:a.click&&"cursor-pointer",onClick:l=>a.click&&a.click(a),onClose:l=>e.toast.remove(a.id)}),fi({_:2},[bt(e.$slots,(l,c)=>({name:c,fn:le(u=>[ye(e.$slots,c,$r(Mr(u)))])}))]),1040,["class","onClick","onClose"])]))),128))],2)):me("",!0)],16)])}const Eg=Dt(CT,[["render",ST]]),PT=e=>e==="defer"||e===!1;function yc(...e){var g;const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);let[n,r,o={}]=e;if(typeof n!="string")throw new TypeError("[nuxt] [asyncData] key must be a string.");if(typeof r!="function")throw new TypeError("[nuxt] [asyncData] handler must be a function.");const s=Pe(),i=r,a=()=>Cr.value,l=()=>s.isHydrating?s.payload.data[n]:s.static.data[n];o.server=o.server??!0,o.default=o.default??a,o.getCachedData=o.getCachedData??l,o.lazy=o.lazy??!1,o.immediate=o.immediate??!0,o.deep=o.deep??Cr.deep,o.dedupe=o.dedupe??"cancel";const c=()=>o.getCachedData(n,s)!=null;if(!s._asyncData[n]||!o.immediate){(g=s.payload._errors)[n]??(g[n]=Cr.errorValue);const h=o.deep?B:mn;s._asyncData[n]={data:h(o.getCachedData(n,s)??o.default()),pending:B(!c()),error:xe(s.payload._errors,n),status:B("idle"),_default:o.default}}const u={...s._asyncData[n]};delete u._default,u.refresh=u.execute=(h={})=>{if(s._asyncDataPromises[n]){if(PT(h.dedupe??o.dedupe))return s._asyncDataPromises[n];s._asyncDataPromises[n].cancelled=!0}if((h._initial||s.isHydrating&&h._initial!==!1)&&c())return Promise.resolve(o.getCachedData(n,s));u.pending.value=!0,u.status.value="pending";const y=new Promise((k,m)=>{try{k(i(s))}catch(v){m(v)}}).then(async k=>{if(y.cancelled)return s._asyncDataPromises[n];let m=k;o.transform&&(m=await o.transform(k)),o.pick&&(m=AT(m,o.pick)),s.payload.data[n]=m,u.data.value=m,u.error.value=Cr.errorValue,u.status.value="success"}).catch(k=>{if(y.cancelled)return s._asyncDataPromises[n];u.error.value=Jo(k),u.data.value=C(o.default()),u.status.value="error"}).finally(()=>{y.cancelled||(u.pending.value=!1,delete s._asyncDataPromises[n])});return s._asyncDataPromises[n]=y,s._asyncDataPromises[n]},u.clear=()=>TT(s,n);const f=()=>u.refresh({_initial:!0}),d=o.server!==!1&&s.payload.serverRendered;{const h=Mt();if(h&&!h._nuxtOnBeforeMountCbs){h._nuxtOnBeforeMountCbs=[];const m=h._nuxtOnBeforeMountCbs;Ed(()=>{m.forEach(v=>{v()}),m.splice(0,m.length)}),nt(()=>m.splice(0,m.length))}d&&s.isHydrating&&(u.error.value||c())?(u.pending.value=!1,u.status.value=u.error.value?"error":"success"):h&&(s.payload.serverRendered&&s.isHydrating||o.lazy)&&o.immediate?h._nuxtOnBeforeMountCbs.push(f):o.immediate&&f();const y=Kr();if(o.watch){const m=Re(o.watch,()=>u.refresh());y&&To(m)}const k=s.hook("app:data:refresh",async m=>{(!m||m.includes(n))&&await u.refresh()});y&&To(k)}const p=Promise.resolve(s._asyncDataPromises[n]).then(()=>u);return Object.assign(p,u),p}function TT(e,t){t in e.payload.data&&(e.payload.data[t]=void 0),t in e.payload._errors&&(e.payload._errors[t]=Cr.errorValue),e._asyncData[t]&&(e._asyncData[t].data.value=void 0,e._asyncData[t].error.value=Cr.errorValue,e._asyncData[t].pending.value=!1,e._asyncData[t].status.value="idle"),t in e._asyncDataPromises&&(e._asyncDataPromises[t]&&(e._asyncDataPromises[t].cancelled=!0),e._asyncDataPromises[t]=void 0)}function AT(e,t){const n={};for(const r of t)n[r]=e[r];return n}function bc(e){return JSON.stringify(e,OT)}function OT(e,t){return t instanceof RegExp?`--REGEX ${t.toString()}`:t}const Cg=e=>{let t=bc(e);return t=typeof Buffer<"u"?Buffer.from(t).toString("base64"):btoa(t),t=t.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,""),(t.match(/.{1,100}/g)||[]).join("/")},wc=()=>({isEnabled:()=>{const r=vn().query;return Object.prototype.hasOwnProperty.call(r,"preview")&&!r.preview?!1:!!(r.preview||Rs("previewToken").value||sessionStorage.getItem("previewToken"))},getPreviewToken:()=>Rs("previewToken").value||sessionStorage.getItem("previewToken")||void 0,setPreviewToken:r=>{Rs("previewToken").value=r,vn().query.preview=r||"",r?sessionStorage.setItem("previewToken",r):sessionStorage.removeItem("previewToken"),window.location.reload()}}),ei=e=>ep(e,wt().public.content.api.baseURL),iA=()=>{throw console.warn("useContent is only accessible when you are using `documentDriven` mode."),console.warn("Learn more by visiting: https://content.nuxt.com/document-driven"),new Error("useContent is only accessible when you are using `documentDriven` mode.")},Sg=()=>{const{experimental:e}=wt().public.content;return e.clientDB?!0:wc().isEnabled()},Mf=(e,t)=>t.split(".").reduce((n,r)=>n&&n[r],e),_c=(e,t)=>Object.keys(e).filter(t).reduce((n,r)=>Object.assign(n,{[r]:e[r]}),{}),aA=e=>t=>e&&e.length?_c(t,n=>!e.includes(n)):t,lA=e=>t=>Array.isArray(t)?t.map(n=>e(n)):e(t),Pg=e=>{const t=[],n=[];for(const r of e)["$","_"].includes(r)?t.push(r):n.push(r);return{prefixes:t,properties:n}},cA=(e=[])=>t=>{if(e.length===0||!t)return t;const{prefixes:n,properties:r}=Pg(e);return _c(t,o=>!r.includes(o)&&!n.includes(o[0]))},uA=(e=[])=>t=>{if(e.length===0||!t)return t;const{prefixes:n,properties:r}=Pg(e);return _c(t,o=>r.includes(o)||n.includes(o[0]))},fA=(e,t)=>{const n=new Intl.Collator(t.$locale,{numeric:t.$numeric,caseFirst:t.$caseFirst,sensitivity:t.$sensitivity}),r=Object.keys(t).filter(o=>!o.startsWith("$"));for(const o of r)e=e.sort((s,i)=>{const a=[Mf(s,o),Mf(i,o)].map(l=>{if(l!==null)return l instanceof Date?l.toISOString():l});return t[o]===-1&&a.reverse(),n.compare(a[0],a[1])});return e},dA=(e,t="Expected an array")=>{if(!Array.isArray(e))throw new TypeError(t)},fn=e=>Array.isArray(e)?e:[void 0,null].includes(e)?[]:[e],RT=["sort","where","only","without"];function $T(e,t={}){const n={};for(const i of Object.keys(t.initialParams||{}))n[i]=RT.includes(i)?fn(t.initialParams[i]):t.initialParams[i];const r=(i,a=l=>l)=>(...l)=>(n[i]=a(...l),s),o=i=>{var a;return t.legacy?i!=null&&i.surround?i.surround:i&&(i!=null&&i.dirConfig&&(i.result={_path:(a=i.dirConfig)==null?void 0:a._path,...i.result,_dir:i.dirConfig}),i!=null&&i._path||Array.isArray(i)||!Object.prototype.hasOwnProperty.call(i,"result")?i:i==null?void 0:i.result):i},s={params:()=>({...n,...n.where?{where:[...fn(n.where)]}:{},...n.sort?{sort:[...fn(n.sort)]}:{}}),only:r("only",fn),without:r("without",fn),where:r("where",i=>[...fn(n.where),...fn(i)]),sort:r("sort",i=>[...fn(n.sort),...fn(i)]),limit:r("limit",i=>parseInt(String(i),10)),skip:r("skip",i=>parseInt(String(i),10)),find:()=>e(s).then(o),findOne:()=>e(r("first")(!0)).then(o),count:()=>e(r("count")(!0)).then(o),locale:i=>s.where({_locale:i}),withSurround:r("surround",(i,a)=>({query:i,...a})),withDirConfig:()=>r("dirConfig")(!0)};return t.legacy&&(s.findSurround=(i,a)=>s.withSurround(i,a).find().then(o)),s}const IT=()=>async e=>{const{content:t}=wt().public,n=e.params(),r=t.experimental.stripQueryParameters?ei(`/query/${`${Do(n)}.${t.integrity}`}/${Cg(n)}.json`):ei(`/query/${Do(n)}.${t.integrity}.json`);if(Sg())return(await G(()=>import("./DykK1NDI.js"),__vite__mapDeps([47,6]),import.meta.url).then(i=>i.useContentDatabase())).fetch(e);const o=await $fetch(r,{method:"GET",responseType:"json",params:t.experimental.stripQueryParameters?void 0:{_params:bc(n),previewToken:wc().getPreviewToken()}});if(typeof o=="string"&&o.startsWith(""))throw new Error("Not found");return o};function LT(e,...t){const{content:n}=wt().public,r=$T(IT(),{initialParams:typeof e!="string"?e:{},legacy:!0});let o;typeof e=="string"&&(o=wa(Yo(e,...t)));const s=r.params;return r.params=()=>{var a,l,c;const i=s();return o&&(i.where=i.where||[],i.first&&(i.where||[]).length===0?i.where.push({_path:Qo(o)}):i.where.push({_path:new RegExp(`^${o.replace(/[-[\]{}()*+.,^$\s/]/g,"\\$&")}`)})),(a=i.sort)!=null&&a.length||(i.sort=[{_stem:1,$numeric:!0}]),n.locales.length&&((c=(l=i.where)==null?void 0:l.find(f=>f._locale))!=null&&c._locale||(i.where=i.where||[],i.where.push({_locale:n.defaultLocale}))),i},r}const Tg=async e=>{const{content:t}=wt().public;typeof(e==null?void 0:e.params)!="function"&&(e=LT(e));const n=e.params(),r=t.experimental.stripQueryParameters?ei(`/navigation/${`${Do(n)}.${t.integrity}`}/${Cg(n)}.json`):ei(`/navigation/${Do(n)}.${t.integrity}.json`);if(Sg())return(await G(()=>import("./DykK1NDI.js"),__vite__mapDeps([47,6]),import.meta.url).then(i=>i.generateNavigation))(n);const o=await $fetch(r,{method:"GET",responseType:"json",params:t.experimental.stripQueryParameters?void 0:{_params:bc(n),previewToken:wc().getPreviewToken()}});if(typeof o=="string"&&o.startsWith(""))throw new Error("Not found");return o};function jT(e,t,n){const[r={},o]=typeof t=="string"?[{},t]:[t,n],s=A(()=>Jt(e)),i=r.key||Do([o,typeof s.value=="string"?s.value:"",...MT(r)]);if(!i||typeof i!="string")throw new TypeError("[nuxt] [useFetch] key must be a string: "+i);const a=i===o?"$f"+i:i;if(!r.baseURL&&typeof s.value=="string"&&s.value[0]==="/"&&s.value[1]==="/")throw new Error('[nuxt] [useFetch] the request URL must not start with "//".');const{server:l,lazy:c,default:u,transform:f,pick:d,watch:p,immediate:g,getCachedData:h,deep:y,dedupe:k,...m}=r,v=qt({...a0,...m,cache:typeof r.cache=="boolean"?void 0:r.cache}),b={server:l,lazy:c,default:u,transform:f,pick:d,immediate:g,getCachedData:h,deep:y,dedupe:k,watch:p===!1?[]:[v,s,...p||[]]};let w;return yc(a,()=>{var O;(O=w==null?void 0:w.abort)==null||O.call(w),w=typeof AbortController<"u"?new AbortController:{};const S=Jt(r.timeout);let T;return S&&(T=setTimeout(()=>w.abort(),S),w.signal.onabort=()=>clearTimeout(T)),(r.$fetch||globalThis.$fetch)(s.value,{signal:w.signal,...v}).finally(()=>{clearTimeout(T)})},b)}function Ag(e,t,n){const[r={},o]=typeof t=="string"?[{},t]:[t,n];return jT(e,{...r,lazy:!0},o)}function MT(e){var n;const t=[((n=Jt(e.method))==null?void 0:n.toUpperCase())||"GET",Jt(e.baseURL)];for(const r of[e.params||e.query]){const o=Jt(r);if(!o)continue;const s={};for(const[i,a]of Object.entries(o))s[Jt(i)]=Jt(a);t.push(s)}return t}const DT=Z(()=>G(()=>import("./83niqyif.js"),__vite__mapDeps([48,49]),import.meta.url).then(e=>e.default||e)),NT=oe({__name:"app",async setup(e){let t,n;const{data:r}=([t,n]=_l(()=>yc("navigation",()=>Tg())),t=await t,n(),t),{data:o}=Ag("/api/search.json",{default:()=>[],server:!1},"$siNM9WAguS");return Zo({meta:[{name:"viewport",content:"width=device-width, initial-scale=1"}],link:[{rel:"icon",href:"/favicon.ico"}],htmlAttrs:{lang:"en"}}),Rp({ogSiteName:"Nuxt x Supabase - Docs",twitterCard:"summary_large_image"}),Be("navigation",r),(s,i)=>{const a=bg,l=cT,c=hT,u=wg,f=_g,d=DT,p=Ql,g=Eg;return L(),ne("div",null,[K(a),K(u,null,{default:le(()=>[K(c,null,{default:le(()=>[K(l)]),_:1})]),_:1}),K(f),K(p,null,{default:le(()=>[K(d,{files:C(o),navigation:C(r)},null,8,["files","navigation"])]),_:1}),K(g)])}}}),BT=oe({inheritAttrs:!1,__name:"PageError",props:{error:{type:Object,default:void 0},status:{type:Number,default:404},name:{type:String,default:"An error occurred"},message:{type:String,default:"This is not the page you're looking for."},clearButton:{type:Object,default:()=>({})},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(e){const t={wrapper:"min-h-[calc(100vh-var(--header-height))] flex flex-col items-center justify-center",status:"text-base font-semibold text-primary",name:"text-3xl font-bold tracking-tight text-gray-900 dark:text-white sm:text-5xl",message:"mt-6 text-base/7 text-gray-500 dark:text-gray-400 text-center",links:"mt-10 flex items-center justify-center gap-x-6",default:{clearButton:{label:"Go back home",color:"primary",size:"lg"}}},n=e,{ui:r,attrs:o}=Ge("page.error",xe(n,"ui"),t,xe(n,"class"),!0),s=()=>yp({redirect:"/"});return(i,a)=>{var c,u,f,d;const l=Gt;return L(),ne("div",ue({class:C(r).wrapper},C(o)),[Ce("p",{class:W(C(r).status)},Ne(((c=e.error)==null?void 0:c.statusCode)||e.status),3),Ce("h1",{class:W(C(r).name)},Ne(((u=e.error)==null?void 0:u.name)||((f=e.error)==null?void 0:f.statusMessage)||e.name),3),Ce("p",{class:W(C(r).message)},Ne((d=e.error)!=null&&d.message&&e.error.message!==(e.error.name||e.error.statusMessage||e.name)?e.error.message:e.message),3),Ce("div",{class:W(C(r).links)},[K(l,ue({...C(r).default.clearButton,...e.clearButton},{onClick:s}),null,16)],2)],16)}}}),FT=oe({inheritAttrs:!1,__name:"Page",props:{class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(e){const t={wrapper:"flex flex-col lg:grid lg:grid-cols-10 lg:gap-8",left:"lg:col-span-2",center:{narrow:"lg:col-span-6",base:"lg:col-span-8",full:"lg:col-span-10"},right:"lg:col-span-2 order-first lg:order-last"},n=e,r=Td(),{ui:o,attrs:s}=Ge("page",xe(n,"ui"),t,xe(n,"class"),!0),i=A(()=>r.left&&r.right?o.value.center.narrow:r.left||r.right?o.value.center.base:o.value.center.full);return(a,l)=>(L(),ne("div",ue({class:C(o).wrapper},C(s)),[a.$slots.left?(L(),ne("div",{key:0,class:W(C(o).left)},[ye(a.$slots,"left")],2)):me("",!0),Ce("div",{class:W(C(i))},[ye(a.$slots,"default")],2),a.$slots.right?(L(),ne("div",{key:1,class:W(C(o).right)},[ye(a.$slots,"right")],2)):me("",!0)],16))}}),HT=Z(()=>G(()=>import("./83niqyif.js"),__vite__mapDeps([48,49]),import.meta.url).then(e=>e.default||e)),UT=oe({__name:"error",props:{error:{}},async setup(e){let t,n;Rp({title:"Page not found",description:"We are sorry but this page could not be found."}),Zo({htmlAttrs:{lang:"en"}});const{data:r}=([t,n]=_l(()=>yc("navigation",()=>Tg())),t=await t,n(),t),{data:o}=Ag("/api/search.json",{default:()=>[],server:!1},"$mar46U4SiV");return Be("navigation",r),(s,i)=>{const a=bg,l=BT,c=FT,u=mc,f=wg,d=_g,p=HT,g=Ql,h=Eg;return L(),ne("div",null,[K(a),K(f,null,{default:le(()=>[K(u,null,{default:le(()=>[K(c,null,{default:le(()=>[K(l,{error:s.error},null,8,["error"])]),_:1})]),_:1})]),_:1}),K(d),K(g,null,{default:le(()=>[K(p,{files:C(o),navigation:C(r)},null,8,["files","navigation"])]),_:1}),K(h)])}}}),zT={key:0},Df={__name:"nuxt-root",setup(e){const t=()=>null,n=Pe(),r=n.deferHydration();if(n.isHydrating){const l=n.hooks.hookOnce("app:error",r);ut().beforeEach(l)}const o=!1;Be(Yr,vn()),n.hooks.callHookWith(l=>l.map(c=>c()),"vue:setup");const s=gi(),i=!1;Sd((l,c,u)=>{if(n.hooks.callHook("vue:error",l,c,u).catch(f=>console.error("[nuxt] Error in `vue:error` hook",f)),H0(l)&&(l.fatal||l.unhandled))return n.runWithContext(()=>Sr(l)),!1});const a=!1;return(l,c)=>(L(),re(bl,{onResolve:C(r)},{default:le(()=>[C(i)?(L(),ne("div",zT)):C(s)?(L(),re(C(UT),{key:1,error:C(s)},null,8,["error"])):C(a)?(L(),re(C(t),{key:2,context:C(a)},null,8,["context"])):C(o)?(L(),re(gr(C(o)),{key:3})):(L(),re(C(NT),{key:4}))]),_:1},8,["onResolve"]))}};let Nf;{let e;Nf=async function(){var i,a;if(e)return e;const r=!!((i=window.__NUXT__)!=null&&i.serverRendered||((a=document.getElementById("__NUXT_DATA__"))==null?void 0:a.dataset.ssr)==="true")?Zv(Df):Jv(Df),o=u0({vueApp:r});async function s(l){await o.callHook("app:error",l),o.payload.error=o.payload.error||Jo(l)}r.config.errorHandler=s;try{await p0(o,mC)}catch(l){s(l)}try{await o.hooks.callHook("app:created",r),await o.hooks.callHook("app:beforeMount",r),r.mount(l0),await o.hooks.callHook("app:mounted",r),await Kn()}catch(l){s(l)}return r.config.errorHandler===s&&(r.config.errorHandler=void 0),r},e=Nf().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{Bh as $,Jv as A,iA as B,Ae as C,A as D,C as E,ke as F,mn as G,Re as H,VT as I,To as J,ts as K,Ye as L,_n as M,ot as N,qt as O,J as P,jh as Q,Be as R,tc as S,Vn as T,qe as U,be as V,Hr as W,nA as X,vr as Y,gt as Z,G as _,ut as a,mc as a$,tn as a0,qn as a1,rs as a2,Ee as a3,on as a4,HC as a5,vt as a6,Kn as a7,sr as a8,zC as a9,gS as aA,og as aB,$S as aC,CC as aD,Ln as aE,Th as aF,JT as aG,AC as aH,oT as aI,tt as aJ,YT as aK,Eh as aL,jt as aM,Fr as aN,Gn as aO,Ed as aP,Xo as aQ,Di as aR,_l as aS,Jo as aT,Rp as aU,yc as aV,sA as aW,FT as aX,Qo as aY,oA as aZ,Do as a_,Lt as aa,_t as ab,xg as ac,xC as ad,Zl as ae,Yl as af,Nn as ag,bt as ah,re as ai,ye as aj,ue as ak,Hn as al,Kt as am,ze as an,Gt as ao,Ge as ap,xe as aq,hi as ar,XT as as,at,Mm as au,$v as av,fi as aw,$r as ax,Mr as ay,hS as az,nt as b,Qp as b0,eA as b1,_r as b2,QT as b3,Ys as b4,wi as b5,GT as b6,ws as b7,Td as b8,Zx as b9,dA as bA,fn as bB,aA as bC,fA as bD,lA as bE,cA as bF,uA as bG,$T as bH,ep as bI,ol as ba,gr as bb,bS as bc,wS as bd,yS as be,zm as bf,Zo as bg,qs as bh,WT as bi,Tg as bj,wc as bk,Mt as bl,rA as bm,Ir as bn,ht as bo,jo as bp,ZT as bq,kT as br,wa as bs,Yo as bt,WE as bu,ZP as bv,wg as bw,yg as bx,sg as by,Mf as bz,L as c,oe as d,ne as e,Ce as f,me as g,K as h,Rs as i,KT as j,Je as k,Dt as l,$l as m,W as n,Le as o,qT as p,wr as q,B as r,LT as s,Ne as t,Pe as u,wt as v,le as w,vn as x,mu as y,ft as z}; +`));let p=Nh((i=f.props)!=null?i:{},l,u),g=on(f,p,!0);for(let h in p)h.startsWith("on")&&(g.props||(g.props={}),g.props[h]=p[h]);return g}return Array.isArray(c)&&c.length===1?c[0]:c}return be(a,Object.assign({},l,u),{default:()=>c})}function Dh(e){return e.flatMap(t=>t.type===ke?Dh(t.children):[t])}function Nh(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](o,...s){let i=n[r];for(let a of i){if(o instanceof Event&&o.defaultPrevented)return;a(o,...s)}}});return t}function nA(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Bh(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function VC(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var vr=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(vr||{});let Hr=oe({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:t,attrs:n}){return()=>{var r;let{features:o,...s}=e,i={"aria-hidden":(o&2)===2?!0:(r=s["aria-hidden"])!=null?r:void 0,hidden:(o&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(o&4)===4&&(o&2)!==2&&{display:"none"}}};return gt({ourProps:i,theirProps:s,slot:{},attrs:n,slots:t,name:"Hidden"})}}}),Fh=Symbol("Context");var qe=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(qe||{});function WC(){return rs()!==null}function rs(){return Ee(Fh,null)}function tc(e){Be(Fh,e)}var vt=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(vt||{});function qC(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let sr=[];qC(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&sr[0]!==t.target&&(sr.unshift(t.target),sr=sr.filter(n=>n!=null&&n.isConnected),sr.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function nc(e,t,n,r){ns.isServer||Ye(o=>{e=e??window,e.addEventListener(t,n,r),o(()=>e.removeEventListener(t,n,r))})}var Ct=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Ct||{});function rc(){let e=B(0);return Lh("keydown",t=>{t.key==="Tab"&&(e.value=t.shiftKey?1:0)}),e}function Hh(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.value){let r=J(n);r instanceof HTMLElement&&t.add(r)}return t}var Uh=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(Uh||{});let ao=Object.assign(oe({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:B(new Set)}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){let o=B(null);r({el:o,$el:o});let s=A(()=>_n(o)),i=B(!1);Le(()=>i.value=!0),nt(()=>i.value=!1),GC({ownerDocument:s},A(()=>i.value&&!!(e.features&16)));let a=XC({ownerDocument:s,container:o,initialFocus:A(()=>e.initialFocus)},A(()=>i.value&&!!(e.features&2)));QC({ownerDocument:s,container:o,containers:e.containers,previousActiveElement:a},A(()=>i.value&&!!(e.features&8)));let l=rc();function c(p){let g=J(o);g&&(h=>h())(()=>{ot(l.value,{[Ct.Forwards]:()=>{Ut(g,ct.First,{skipElements:[p.relatedTarget]})},[Ct.Backwards]:()=>{Ut(g,ct.Last,{skipElements:[p.relatedTarget]})}})})}let u=B(!1);function f(p){p.key==="Tab"&&(u.value=!0,requestAnimationFrame(()=>{u.value=!1}))}function d(p){if(!i.value)return;let g=Hh(e.containers);J(o)instanceof HTMLElement&&g.add(J(o));let h=p.relatedTarget;h instanceof HTMLElement&&h.dataset.headlessuiFocusGuard!=="true"&&(zh(g,h)||(u.value?Ut(J(o),ot(l.value,{[Ct.Forwards]:()=>ct.Next,[Ct.Backwards]:()=>ct.Previous})|ct.WrapAround,{relativeTo:p.target}):p.target instanceof HTMLElement&&fr(p.target)))}return()=>{let p={},g={ref:o,onKeydown:f,onFocusout:d},{features:h,initialFocus:y,containers:k,...m}=e;return be(ke,[!!(h&4)&&be(Hr,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:c,features:vr.Focusable}),gt({ourProps:g,theirProps:{...t,...m},slot:p,attrs:t,slots:n,name:"FocusTrap"}),!!(h&4)&&be(Hr,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:c,features:vr.Focusable})])}}}),{features:Uh});function KC(e){let t=B(sr.slice());return Re([e],([n],[r])=>{r===!0&&n===!1?Jl(()=>{t.value.splice(0)}):r===!1&&n===!0&&(t.value=sr.slice())},{flush:"post"}),()=>{var n;return(n=t.value.find(r=>r!=null&&r.isConnected))!=null?n:null}}function GC({ownerDocument:e},t){let n=KC(t);Le(()=>{Ye(()=>{var r,o;t.value||((r=e.value)==null?void 0:r.activeElement)===((o=e.value)==null?void 0:o.body)&&fr(n())},{flush:"post"})}),nt(()=>{t.value&&fr(n())})}function XC({ownerDocument:e,container:t,initialFocus:n},r){let o=B(null),s=B(!1);return Le(()=>s.value=!0),nt(()=>s.value=!1),Le(()=>{Re([t,n,r],(i,a)=>{if(i.every((c,u)=>(a==null?void 0:a[u])===c)||!r.value)return;let l=J(t);l&&Jl(()=>{var c,u;if(!s.value)return;let f=J(n),d=(c=e.value)==null?void 0:c.activeElement;if(f){if(f===d){o.value=d;return}}else if(l.contains(d)){o.value=d;return}f?fr(f):Ut(l,ct.First|ct.NoScroll)===Vo.Error&&console.warn("There are no focusable elements inside the "),o.value=(u=e.value)==null?void 0:u.activeElement})},{immediate:!0,flush:"post"})}),o}function QC({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){var s;nc((s=e.value)==null?void 0:s.defaultView,"focus",i=>{if(!o.value)return;let a=Hh(n);J(t)instanceof HTMLElement&&a.add(J(t));let l=r.value;if(!l)return;let c=i.target;c&&c instanceof HTMLElement?zh(a,c)?(r.value=c,fr(c)):(i.preventDefault(),i.stopPropagation(),fr(l)):fr(r.value)},!0)}function zh(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function YC(e){let t=mn(e.getSnapshot());return nt(e.subscribe(()=>{t.value=e.getSnapshot()})),t}function JC(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(o){return r.add(o),()=>r.delete(o)},dispatch(o,...s){let i=t[o].call(n,...s);i&&(n=i,r.forEach(a=>a()))}}}function ZC(){let e;return{before({doc:t}){var n;let r=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-r.clientWidth},after({doc:t,d:n}){let r=t.documentElement,o=r.clientWidth-r.offsetWidth,s=e-o;n.style(r,"paddingRight",`${s}px`)}}}function eS(){return Ih()?{before({doc:e,d:t,meta:n}){function r(o){return n.containers.flatMap(s=>s()).some(s=>s.contains(o))}t.microTask(()=>{var o;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let a=ts();a.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>a.dispose()))}let s=(o=window.scrollY)!=null?o:window.pageYOffset,i=null;t.addEventListener(e,"click",a=>{if(a.target instanceof HTMLElement)try{let l=a.target.closest("a");if(!l)return;let{hash:c}=new URL(l.href),u=e.querySelector(c);u&&!r(u)&&(i=u)}catch{}},!0),t.addEventListener(e,"touchstart",a=>{if(a.target instanceof HTMLElement)if(r(a.target)){let l=a.target;for(;l.parentElement&&r(l.parentElement);)l=l.parentElement;t.style(l,"overscrollBehavior","contain")}else t.style(a.target,"touchAction","none")}),t.addEventListener(e,"touchmove",a=>{if(a.target instanceof HTMLElement){if(a.target.tagName==="INPUT")return;if(r(a.target)){let l=a.target;for(;l.parentElement&&l.dataset.headlessuiPortal!==""&&!(l.scrollHeight>l.clientHeight||l.scrollWidth>l.clientWidth);)l=l.parentElement;l.dataset.headlessuiPortal===""&&a.preventDefault()}else a.preventDefault()}},{passive:!1}),t.add(()=>{var a;let l=(a=window.scrollY)!=null?a:window.pageYOffset;s!==l&&window.scrollTo(0,s),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)})})}}:{}}function tS(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function nS(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let lr=JC(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:ts(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:nS(n)},o=[eS(),ZC(),tS()];o.forEach(({before:s})=>s==null?void 0:s(r)),o.forEach(({after:s})=>s==null?void 0:s(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});lr.subscribe(()=>{let e=lr.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",o=n.count!==0;(o&&!r||!o&&r)&&lr.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&lr.dispatch("TEARDOWN",n)}});function rS(e,t,n){let r=YC(lr),o=A(()=>{let s=e.value?r.value.get(e.value):void 0;return s?s.count>0:!1});return Re([e,t],([s,i],[a],l)=>{if(!s||!i)return;lr.dispatch("PUSH",s,n);let c=!1;l(()=>{c||(lr.dispatch("POP",a??s,n),c=!0)})},{immediate:!0}),o}let Yi=new Map,lo=new Map;function Cf(e,t=B(!0)){Ye(n=>{var r;if(!t.value)return;let o=J(e);if(!o)return;n(function(){var i;if(!o)return;let a=(i=lo.get(o))!=null?i:1;if(a===1?lo.delete(o):lo.set(o,a-1),a!==1)return;let l=Yi.get(o);l&&(l["aria-hidden"]===null?o.removeAttribute("aria-hidden"):o.setAttribute("aria-hidden",l["aria-hidden"]),o.inert=l.inert,Yi.delete(o))});let s=(r=lo.get(o))!=null?r:0;lo.set(o,s+1),s===0&&(Yi.set(o,{"aria-hidden":o.getAttribute("aria-hidden"),inert:o.inert}),o.setAttribute("aria-hidden","true"),o.inert=!0)})}function Vh({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){let r=B(null),o=_n(r);function s(){var i,a,l;let c=[];for(let u of e)u!==null&&(u instanceof HTMLElement?c.push(u):"value"in u&&u.value instanceof HTMLElement&&c.push(u.value));if(t!=null&&t.value)for(let u of t.value)c.push(u);for(let u of(i=o==null?void 0:o.querySelectorAll("html > *, body > *"))!=null?i:[])u!==document.body&&u!==document.head&&u instanceof HTMLElement&&u.id!=="headlessui-portal-root"&&(u.contains(J(r))||u.contains((l=(a=J(r))==null?void 0:a.getRootNode())==null?void 0:l.host)||c.some(f=>u.contains(f))||c.push(u));return c}return{resolveContainers:s,contains(i){return s().some(a=>a.contains(i))},mainTreeNodeRef:r,MainTreeNode(){return n!=null?null:be(Hr,{features:vr.Hidden,ref:r})}}}let Wh=Symbol("ForcePortalRootContext");function oS(){return Ee(Wh,!1)}let Sf=oe({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:n}){return Be(Wh,e.force),()=>{let{force:r,...o}=e;return gt({theirProps:o,ourProps:{},slot:{},slots:t,attrs:n,name:"ForcePortalRoot"})}}}),qh=Symbol("StackContext");var Ya=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Ya||{});function sS(){return Ee(qh,()=>{})}function iS({type:e,enabled:t,element:n,onUpdate:r}){let o=sS();function s(...i){r==null||r(...i),o(...i)}Le(()=>{Re(t,(i,a)=>{i?s(0,e,n):a===!0&&s(1,e,n)},{immediate:!0,flush:"sync"})}),nt(()=>{t.value&&s(1,e,n)}),Be(qh,s)}let aS=Symbol("DescriptionContext");function lS({slot:e=B({}),name:t="Description",props:n={}}={}){let r=B([]);function o(s){return r.value.push(s),()=>{let i=r.value.indexOf(s);i!==-1&&r.value.splice(i,1)}}return Be(aS,{register:o,slot:e,name:t,props:n}),A(()=>r.value.length>0?r.value.join(" "):void 0)}function cS(e){let t=_n(e);if(!t){if(e===null)return null;throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${e}`)}let n=t.getElementById("headlessui-portal-root");if(n)return n;let r=t.createElement("div");return r.setAttribute("id","headlessui-portal-root"),t.body.appendChild(r)}const Ja=new WeakMap;function uS(e){var t;return(t=Ja.get(e))!=null?t:0}function Pf(e,t){let n=t(uS(e));return n<=0?Ja.delete(e):Ja.set(e,n),n}let fS=oe({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n}){let r=B(null),o=A(()=>_n(r)),s=oS(),i=Ee(Gh,null),a=B(s===!0||i==null?cS(r.value):i.resolveTarget());a.value&&Pf(a.value,d=>d+1);let l=B(!1);Le(()=>{l.value=!0}),Ye(()=>{s||i!=null&&(a.value=i.resolveTarget())});let c=Ee(Za,null),u=!1,f=Mt();return Re(r,()=>{if(u||!c)return;let d=J(r);d&&(nt(c.register(d),f),u=!0)}),nt(()=>{var d,p;let g=(d=o.value)==null?void 0:d.getElementById("headlessui-portal-root");!g||a.value!==g||Pf(a.value,h=>h-1)||a.value.children.length>0||(p=a.value.parentElement)==null||p.removeChild(a.value)}),()=>{if(!l.value||a.value===null)return null;let d={ref:r,"data-headlessui-portal":""};return be(Fd,{to:a.value},gt({ourProps:d,theirProps:e,slot:{},attrs:n,slots:t,name:"Portal"}))}}}),Za=Symbol("PortalParentContext");function Kh(){let e=Ee(Za,null),t=B([]);function n(s){return t.value.push(s),e&&e.register(s),()=>r(s)}function r(s){let i=t.value.indexOf(s);i!==-1&&t.value.splice(i,1),e&&e.unregister(s)}let o={register:n,unregister:r,portals:t};return[t,oe({name:"PortalWrapper",setup(s,{slots:i}){return Be(Za,o),()=>{var a;return(a=i.default)==null?void 0:a.call(i)}}})]}let Gh=Symbol("PortalGroupContext"),dS=oe({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(e,{attrs:t,slots:n}){let r=qt({resolveTarget(){return e.target}});return Be(Gh,r),()=>{let{target:o,...s}=e;return gt({theirProps:s,ourProps:{},slot:{},attrs:t,slots:n,name:"PortalGroup"})}}});var pS=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(pS||{});let el=Symbol("DialogContext");function Xh(e){let t=Ee(el,null);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Xh),n}return t}let ks="DC8F892D-2EBD-447C-A4C8-A03058436FF4",hS=oe({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:ks},initialFocus:{type:Object,default:null},id:{type:String,default:null},role:{type:String,default:"dialog"}},emits:{close:e=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:o}){var s,i;let a=(s=e.id)!=null?s:`headlessui-dialog-${tn()}`,l=B(!1);Le(()=>{l.value=!0});let c=!1,u=A(()=>e.role==="dialog"||e.role==="alertdialog"?e.role:(c||(c=!0,console.warn(`Invalid role [${u}] passed to . Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")),f=B(0),d=rs(),p=A(()=>e.open===ks&&d!==null?(d.value&qe.Open)===qe.Open:e.open),g=B(null),h=A(()=>_n(g));if(o({el:g,$el:g}),!(e.open!==ks||d!==null))throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof p.value!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${p.value===ks?void 0:e.open}`);let y=A(()=>l.value&&p.value?0:1),k=A(()=>y.value===0),m=A(()=>f.value>1),v=Ee(el,null)!==null,[b,w]=Kh(),{resolveContainers:E,mainTreeNodeRef:S,MainTreeNode:T}=Vh({portals:b,defaultContainers:[A(()=>{var de;return(de=ee.panelRef.value)!=null?de:g.value})]}),I=A(()=>m.value?"parent":"leaf"),O=A(()=>d!==null?(d.value&qe.Closing)===qe.Closing:!1),V=A(()=>v||O.value?!1:k.value),$=A(()=>{var de,pe,Ve;return(Ve=Array.from((pe=(de=h.value)==null?void 0:de.querySelectorAll("body > *"))!=null?pe:[]).find(De=>De.id==="headlessui-portal-root"?!1:De.contains(J(S))&&De instanceof HTMLElement))!=null?Ve:null});Cf($,V);let U=A(()=>m.value?!0:k.value),ve=A(()=>{var de,pe,Ve;return(Ve=Array.from((pe=(de=h.value)==null?void 0:de.querySelectorAll("[data-headlessui-portal]"))!=null?pe:[]).find(De=>De.contains(J(S))&&De instanceof HTMLElement))!=null?Ve:null});Cf(ve,U),iS({type:"Dialog",enabled:A(()=>y.value===0),element:g,onUpdate:(de,pe)=>{if(pe==="Dialog")return ot(de,{[Ya.Add]:()=>f.value+=1,[Ya.Remove]:()=>f.value-=1})}});let fe=lS({name:"DialogDescription",slot:A(()=>({open:p.value}))}),F=B(null),ee={titleId:F,panelRef:B(null),dialogState:y,setTitleId(de){F.value!==de&&(F.value=de)},close(){t("close",!1)}};Be(el,ee);let Y=A(()=>!(!k.value||m.value));jh(E,(de,pe)=>{de.preventDefault(),ee.close(),Kn(()=>pe==null?void 0:pe.focus())},Y);let je=A(()=>!(m.value||y.value!==0));nc((i=h.value)==null?void 0:i.defaultView,"keydown",de=>{je.value&&(de.defaultPrevented||de.key===vt.Escape&&(de.preventDefault(),de.stopPropagation(),ee.close()))});let Ze=A(()=>!(O.value||y.value!==0||v));return rS(h,Ze,de=>{var pe;return{containers:[...(pe=de.containers)!=null?pe:[],E]}}),Ye(de=>{if(y.value!==0)return;let pe=J(g);if(!pe)return;let Ve=new ResizeObserver(De=>{for(let st of De){let Me=st.target.getBoundingClientRect();Me.x===0&&Me.y===0&&Me.width===0&&Me.height===0&&ee.close()}});Ve.observe(pe),de(()=>Ve.disconnect())}),()=>{let{open:de,initialFocus:pe,...Ve}=e,De={...n,ref:g,id:a,role:u.value,"aria-modal":y.value===0?!0:void 0,"aria-labelledby":F.value,"aria-describedby":fe.value},st={open:y.value===0};return be(Sf,{force:!0},()=>[be(fS,()=>be(dS,{target:g.value},()=>be(Sf,{force:!1},()=>be(ao,{initialFocus:pe,containers:E,features:k.value?ot(I.value,{parent:ao.features.RestoreFocus,leaf:ao.features.All&~ao.features.FocusLock}):ao.features.None},()=>be(w,{},()=>gt({ourProps:De,theirProps:{...Ve,...n},slot:st,attrs:n,slots:r,visible:y.value===0,features:qn.RenderStrategy|qn.Static,name:"Dialog"})))))),be(T)])}}}),gS=oe({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var o;let s=(o=e.id)!=null?o:`headlessui-dialog-panel-${tn()}`,i=Xh("DialogPanel");r({el:i.panelRef,$el:i.panelRef});function a(l){l.stopPropagation()}return()=>{let{...l}=e,c={id:s,ref:i.panelRef,onClick:a};return gt({ourProps:c,theirProps:l,slot:{open:i.dialogState.value===0},attrs:t,slots:n,name:"DialogPanel"})}}});var mS=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(mS||{});let Qh=Symbol("DisclosureContext");function oc(e){let t=Ee(Qh,null);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,oc),n}return t}let Yh=Symbol("DisclosurePanelContext");function vS(){return Ee(Yh,null)}let yS=oe({name:"Disclosure",props:{as:{type:[Object,String],default:"template"},defaultOpen:{type:[Boolean],default:!1}},setup(e,{slots:t,attrs:n}){let r=B(e.defaultOpen?0:1),o=B(null),s=B(null),i={buttonId:B(`headlessui-disclosure-button-${tn()}`),panelId:B(`headlessui-disclosure-panel-${tn()}`),disclosureState:r,panel:o,button:s,toggleDisclosure(){r.value=ot(r.value,{0:1,1:0})},closeDisclosure(){r.value!==1&&(r.value=1)},close(a){i.closeDisclosure();let l=a?a instanceof HTMLElement?a:a.value instanceof HTMLElement?J(a):J(i.button):J(i.button);l==null||l.focus()}};return Be(Qh,i),tc(A(()=>ot(r.value,{0:qe.Open,1:qe.Closed}))),()=>{let{defaultOpen:a,...l}=e,c={open:r.value===0,close:i.close};return gt({theirProps:l,ourProps:{},slot:c,slots:t,attrs:n,name:"Disclosure"})}}}),bS=oe({name:"DisclosureButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){let o=oc("DisclosureButton"),s=vS(),i=A(()=>s===null?!1:s.value===o.panelId.value);Le(()=>{i.value||e.id!==null&&(o.buttonId.value=e.id)}),nt(()=>{i.value||(o.buttonId.value=null)});let a=B(null);r({el:a,$el:a}),i.value||Ye(()=>{o.button.value=a.value});let l=Mh(A(()=>({as:e.as,type:t.type})),a);function c(){var d;e.disabled||(i.value?(o.toggleDisclosure(),(d=J(o.button))==null||d.focus()):o.toggleDisclosure())}function u(d){var p;if(!e.disabled)if(i.value)switch(d.key){case vt.Space:case vt.Enter:d.preventDefault(),d.stopPropagation(),o.toggleDisclosure(),(p=J(o.button))==null||p.focus();break}else switch(d.key){case vt.Space:case vt.Enter:d.preventDefault(),d.stopPropagation(),o.toggleDisclosure();break}}function f(d){switch(d.key){case vt.Space:d.preventDefault();break}}return()=>{var d;let p={open:o.disclosureState.value===0},{id:g,...h}=e,y=i.value?{ref:a,type:l.value,onClick:c,onKeydown:u}:{id:(d=o.buttonId.value)!=null?d:g,ref:a,type:l.value,"aria-expanded":o.disclosureState.value===0,"aria-controls":o.disclosureState.value===0||J(o.panel)?o.panelId.value:void 0,disabled:e.disabled?!0:void 0,onClick:c,onKeydown:u,onKeyup:f};return gt({ourProps:y,theirProps:h,slot:p,attrs:t,slots:n,name:"DisclosureButton"})}}}),wS=oe({name:"DisclosurePanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){let o=oc("DisclosurePanel");Le(()=>{e.id!==null&&(o.panelId.value=e.id)}),nt(()=>{o.panelId.value=null}),r({el:o.panel,$el:o.panel}),Be(Yh,o.panelId);let s=rs(),i=A(()=>s!==null?(s.value&qe.Open)===qe.Open:o.disclosureState.value===0);return()=>{var a;let l={open:o.disclosureState.value===0,close:o.close},{id:c,...u}=e,f={id:(a=o.panelId.value)!=null?a:c,ref:o.panel};return gt({ourProps:f,theirProps:u,slot:l,attrs:t,slots:n,features:qn.RenderStrategy|qn.Static,visible:i.value,name:"DisclosurePanel"})}}});var _S=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(_S||{});let Jh=Symbol("PopoverContext");function sc(e){let t=Ee(Jh,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <${tg.name} /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,sc),n}return t}let xS=Symbol("PopoverGroupContext");function Zh(){return Ee(xS,null)}let eg=Symbol("PopoverPanelContext");function kS(){return Ee(eg,null)}let tg=oe({name:"Popover",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n,expose:r}){var o;let s=B(null);r({el:s,$el:s});let i=B(1),a=B(null),l=B(null),c=B(null),u=B(null),f=A(()=>_n(s)),d=A(()=>{var w,E;if(!J(a)||!J(u))return!1;for(let U of document.querySelectorAll("body > *"))if(Number(U==null?void 0:U.contains(J(a)))^Number(U==null?void 0:U.contains(J(u))))return!0;let S=ki(),T=S.indexOf(J(a)),I=(T+S.length-1)%S.length,O=(T+1)%S.length,V=S[I],$=S[O];return!((w=J(u))!=null&&w.contains(V))&&!((E=J(u))!=null&&E.contains($))}),p={popoverState:i,buttonId:B(null),panelId:B(null),panel:u,button:a,isPortalled:d,beforePanelSentinel:l,afterPanelSentinel:c,togglePopover(){i.value=ot(i.value,{0:1,1:0})},closePopover(){i.value!==1&&(i.value=1)},close(w){p.closePopover();let E=w?w instanceof HTMLElement?w:w.value instanceof HTMLElement?J(w):J(p.button):J(p.button);E==null||E.focus()}};Be(Jh,p),tc(A(()=>ot(i.value,{0:qe.Open,1:qe.Closed})));let g={buttonId:p.buttonId,panelId:p.panelId,close(){p.closePopover()}},h=Zh(),y=h==null?void 0:h.registerPopover,[k,m]=Kh(),v=Vh({mainTreeNodeRef:h==null?void 0:h.mainTreeNodeRef,portals:k,defaultContainers:[a,u]});function b(){var w,E,S,T;return(T=h==null?void 0:h.isFocusWithinPopoverGroup())!=null?T:((w=f.value)==null?void 0:w.activeElement)&&(((E=J(a))==null?void 0:E.contains(f.value.activeElement))||((S=J(u))==null?void 0:S.contains(f.value.activeElement)))}return Ye(()=>y==null?void 0:y(g)),nc((o=f.value)==null?void 0:o.defaultView,"focus",w=>{var E,S;w.target!==window&&w.target instanceof HTMLElement&&i.value===0&&(b()||a&&u&&(v.contains(w.target)||(E=J(p.beforePanelSentinel))!=null&&E.contains(w.target)||(S=J(p.afterPanelSentinel))!=null&&S.contains(w.target)||p.closePopover()))},!0),jh(v.resolveContainers,(w,E)=>{var S;p.closePopover(),$h(E,ec.Loose)||(w.preventDefault(),(S=J(a))==null||S.focus())},A(()=>i.value===0)),()=>{let w={open:i.value===0,close:p.close};return be(ke,[be(m,{},()=>gt({theirProps:{...e,...n},ourProps:{ref:s},slot:w,slots:t,attrs:n,name:"Popover"})),be(v.MainTreeNode)])}}}),ES=oe({name:"PopoverButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:null}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){var o;let s=(o=e.id)!=null?o:`headlessui-popover-button-${tn()}`,i=sc("PopoverButton"),a=A(()=>_n(i.button));r({el:i.button,$el:i.button}),Le(()=>{i.buttonId.value=s}),nt(()=>{i.buttonId.value=null});let l=Zh(),c=l==null?void 0:l.closeOthers,u=kS(),f=A(()=>u===null?!1:u.value===i.panelId.value),d=B(null),p=`headlessui-focus-sentinel-${tn()}`;f.value||Ye(()=>{i.button.value=J(d)});let g=Mh(A(()=>({as:e.as,type:t.type})),d);function h(w){var E,S,T,I,O;if(f.value){if(i.popoverState.value===1)return;switch(w.key){case vt.Space:case vt.Enter:w.preventDefault(),(S=(E=w.target).click)==null||S.call(E),i.closePopover(),(T=J(i.button))==null||T.focus();break}}else switch(w.key){case vt.Space:case vt.Enter:w.preventDefault(),w.stopPropagation(),i.popoverState.value===1&&(c==null||c(i.buttonId.value)),i.togglePopover();break;case vt.Escape:if(i.popoverState.value!==0)return c==null?void 0:c(i.buttonId.value);if(!J(i.button)||(I=a.value)!=null&&I.activeElement&&!((O=J(i.button))!=null&&O.contains(a.value.activeElement)))return;w.preventDefault(),w.stopPropagation(),i.closePopover();break}}function y(w){f.value||w.key===vt.Space&&w.preventDefault()}function k(w){var E,S;e.disabled||(f.value?(i.closePopover(),(E=J(i.button))==null||E.focus()):(w.preventDefault(),w.stopPropagation(),i.popoverState.value===1&&(c==null||c(i.buttonId.value)),i.togglePopover(),(S=J(i.button))==null||S.focus()))}function m(w){w.preventDefault(),w.stopPropagation()}let v=rc();function b(){let w=J(i.panel);if(!w)return;function E(){ot(v.value,{[Ct.Forwards]:()=>Ut(w,ct.First),[Ct.Backwards]:()=>Ut(w,ct.Last)})===Vo.Error&&Ut(ki().filter(S=>S.dataset.headlessuiFocusGuard!=="true"),ot(v.value,{[Ct.Forwards]:ct.Next,[Ct.Backwards]:ct.Previous}),{relativeTo:J(i.button)})}E()}return()=>{let w=i.popoverState.value===0,E={open:w},{...S}=e,T=f.value?{ref:d,type:g.value,onKeydown:h,onClick:k}:{ref:d,id:s,type:g.value,"aria-expanded":i.popoverState.value===0,"aria-controls":J(i.panel)?i.panelId.value:void 0,disabled:e.disabled?!0:void 0,onKeydown:h,onKeyup:y,onClick:k,onMousedown:m};return be(ke,[gt({ourProps:T,theirProps:{...t,...S},slot:E,attrs:t,slots:n,name:"PopoverButton"}),w&&!f.value&&i.isPortalled.value&&be(Hr,{id:p,features:vr.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:b})])}}}),CS=oe({name:"PopoverPanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},focus:{type:Boolean,default:!1},id:{type:String,default:null}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){var o;let s=(o=e.id)!=null?o:`headlessui-popover-panel-${tn()}`,{focus:i}=e,a=sc("PopoverPanel"),l=A(()=>_n(a.panel)),c=`headlessui-focus-sentinel-before-${tn()}`,u=`headlessui-focus-sentinel-after-${tn()}`;r({el:a.panel,$el:a.panel}),Le(()=>{a.panelId.value=s}),nt(()=>{a.panelId.value=null}),Be(eg,a.panelId),Ye(()=>{var m,v;if(!i||a.popoverState.value!==0||!a.panel)return;let b=(m=l.value)==null?void 0:m.activeElement;(v=J(a.panel))!=null&&v.contains(b)||Ut(J(a.panel),ct.First)});let f=rs(),d=A(()=>f!==null?(f.value&qe.Open)===qe.Open:a.popoverState.value===0);function p(m){var v,b;switch(m.key){case vt.Escape:if(a.popoverState.value!==0||!J(a.panel)||l.value&&!((v=J(a.panel))!=null&&v.contains(l.value.activeElement)))return;m.preventDefault(),m.stopPropagation(),a.closePopover(),(b=J(a.button))==null||b.focus();break}}function g(m){var v,b,w,E,S;let T=m.relatedTarget;T&&J(a.panel)&&((v=J(a.panel))!=null&&v.contains(T)||(a.closePopover(),((w=(b=J(a.beforePanelSentinel))==null?void 0:b.contains)!=null&&w.call(b,T)||(S=(E=J(a.afterPanelSentinel))==null?void 0:E.contains)!=null&&S.call(E,T))&&T.focus({preventScroll:!0})))}let h=rc();function y(){let m=J(a.panel);if(!m)return;function v(){ot(h.value,{[Ct.Forwards]:()=>{var b;Ut(m,ct.First)===Vo.Error&&((b=J(a.afterPanelSentinel))==null||b.focus())},[Ct.Backwards]:()=>{var b;(b=J(a.button))==null||b.focus({preventScroll:!0})}})}v()}function k(){let m=J(a.panel);if(!m)return;function v(){ot(h.value,{[Ct.Forwards]:()=>{let b=J(a.button),w=J(a.panel);if(!b)return;let E=ki(),S=E.indexOf(b),T=E.slice(0,S+1),I=[...E.slice(S+1),...T];for(let O of I.slice())if(O.dataset.headlessuiFocusGuard==="true"||w!=null&&w.contains(O)){let V=I.indexOf(O);V!==-1&&I.splice(V,1)}Ut(I,ct.First,{sorted:!1})},[Ct.Backwards]:()=>{var b;Ut(m,ct.Previous)===Vo.Error&&((b=J(a.button))==null||b.focus())}})}v()}return()=>{let m={open:a.popoverState.value===0,close:a.close},{focus:v,...b}=e,w={ref:a.panel,id:s,onKeydown:p,onFocusout:i&&a.popoverState.value===0?g:void 0,tabIndex:-1};return gt({ourProps:w,theirProps:{...t,...b},attrs:t,slot:m,slots:{...n,default:(...E)=>{var S;return[be(ke,[d.value&&a.isPortalled.value&&be(Hr,{id:c,ref:a.beforePanelSentinel,features:vr.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:y}),(S=n.default)==null?void 0:S.call(n,...E),d.value&&a.isPortalled.value&&be(Hr,{id:u,ref:a.afterPanelSentinel,features:vr.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:k})])]}},features:qn.RenderStrategy|qn.Static,visible:d.value,name:"PopoverPanel"})}}});function SS(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function Ji(e,...t){e&&t.length>0&&e.classList.add(...t)}function Es(e,...t){e&&t.length>0&&e.classList.remove(...t)}var tl=(e=>(e.Finished="finished",e.Cancelled="cancelled",e))(tl||{});function PS(e,t){let n=ts();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[s,i]=[r,o].map(a=>{let[l=0]=a.split(",").filter(Boolean).map(c=>c.includes("ms")?parseFloat(c):parseFloat(c)*1e3).sort((c,u)=>u-c);return l});return s!==0?n.setTimeout(()=>t("finished"),s+i):t("finished"),n.add(()=>t("cancelled")),n.dispose}function Tf(e,t,n,r,o,s){let i=ts(),a=s!==void 0?SS(s):()=>{};return Es(e,...o),Ji(e,...t,...n),i.nextFrame(()=>{Es(e,...n),Ji(e,...r),i.add(PS(e,l=>(Es(e,...r,...t),Ji(e,...o),a(l))))}),i.add(()=>Es(e,...t,...n,...r,...o)),i.add(()=>a("cancelled")),i.dispose}function er(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let ic=Symbol("TransitionContext");var TS=(e=>(e.Visible="visible",e.Hidden="hidden",e))(TS||{});function AS(){return Ee(ic,null)!==null}function OS(){let e=Ee(ic,null);if(e===null)throw new Error("A is used but it is missing a parent .");return e}function RS(){let e=Ee(ac,null);if(e===null)throw new Error("A is used but it is missing a parent .");return e}let ac=Symbol("NestingContext");function Ei(e){return"children"in e?Ei(e.children):e.value.filter(({state:t})=>t==="visible").length>0}function ng(e){let t=B([]),n=B(!1);Le(()=>n.value=!0),nt(()=>n.value=!1);function r(s,i=jn.Hidden){let a=t.value.findIndex(({id:l})=>l===s);a!==-1&&(ot(i,{[jn.Unmount](){t.value.splice(a,1)},[jn.Hidden](){t.value[a].state="hidden"}}),!Ei(t)&&n.value&&(e==null||e()))}function o(s){let i=t.value.find(({id:a})=>a===s);return i?i.state!=="visible"&&(i.state="visible"):t.value.push({id:s,state:"visible"}),()=>r(s,jn.Unmount)}return{children:t,register:o,unregister:r}}let rg=qn.RenderStrategy,$S=oe({props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:o}){let s=B(0);function i(){s.value|=qe.Opening,t("beforeEnter")}function a(){s.value&=~qe.Opening,t("afterEnter")}function l(){s.value|=qe.Closing,t("beforeLeave")}function c(){s.value&=~qe.Closing,t("afterLeave")}if(!AS()&&WC())return()=>be(og,{...e,onBeforeEnter:i,onAfterEnter:a,onBeforeLeave:l,onAfterLeave:c},r);let u=B(null),f=A(()=>e.unmount?jn.Unmount:jn.Hidden);o({el:u,$el:u});let{show:d,appear:p}=OS(),{register:g,unregister:h}=RS(),y=B(d.value?"visible":"hidden"),k={value:!0},m=tn(),v={value:!1},b=ng(()=>{!v.value&&y.value!=="hidden"&&(y.value="hidden",h(m),c())});Le(()=>{let U=g(m);nt(U)}),Ye(()=>{if(f.value===jn.Hidden&&m){if(d.value&&y.value!=="visible"){y.value="visible";return}ot(y.value,{hidden:()=>h(m),visible:()=>g(m)})}});let w=er(e.enter),E=er(e.enterFrom),S=er(e.enterTo),T=er(e.entered),I=er(e.leave),O=er(e.leaveFrom),V=er(e.leaveTo);Le(()=>{Ye(()=>{if(y.value==="visible"){let U=J(u);if(U instanceof Comment&&U.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function $(U){let ve=k.value&&!p.value,fe=J(u);!fe||!(fe instanceof HTMLElement)||ve||(v.value=!0,d.value&&i(),d.value||l(),U(d.value?Tf(fe,w,E,S,T,F=>{v.value=!1,F===tl.Finished&&a()}):Tf(fe,I,O,V,T,F=>{v.value=!1,F===tl.Finished&&(Ei(b)||(y.value="hidden",h(m),c()))})))}return Le(()=>{Re([d],(U,ve,fe)=>{$(fe),k.value=!1},{immediate:!0})}),Be(ac,b),tc(A(()=>ot(y.value,{visible:qe.Open,hidden:qe.Closed})|s.value)),()=>{let{appear:U,show:ve,enter:fe,enterFrom:F,enterTo:ee,entered:Y,leave:je,leaveFrom:Ze,leaveTo:de,...pe}=e,Ve={ref:u},De={...pe,...p.value&&d.value&&ns.isServer?{class:W([n.class,pe.class,...w,...E])}:{}};return gt({theirProps:De,ourProps:Ve,slot:{},slots:r,attrs:n,features:rg,visible:y.value==="visible",name:"TransitionChild"})}}}),IS=$S,og=oe({inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:r}){let o=rs(),s=A(()=>e.show===null&&o!==null?(o.value&qe.Open)===qe.Open:e.show);Ye(()=>{if(![!0,!1].includes(s.value))throw new Error('A is used but it is missing a `:show="true | false"` prop.')});let i=B(s.value?"visible":"hidden"),a=ng(()=>{i.value="hidden"}),l=B(!0),c={show:s,appear:A(()=>e.appear||!l.value)};return Le(()=>{Ye(()=>{l.value=!1,s.value?i.value="visible":Ei(a)||(i.value="hidden")})}),Be(ac,a),Be(ic,c),()=>{let u=Bh(e,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),f={unmount:e.unmount};return gt({ourProps:{...f,as:"template"},theirProps:{},slot:{},slots:{...r,default:()=>[be(IS,{onBeforeEnter:()=>t("beforeEnter"),onAfterEnter:()=>t("afterEnter"),onBeforeLeave:()=>t("beforeLeave"),onAfterLeave:()=>t("afterLeave"),...n,...f,...u},r.default)]},attrs:{},features:rg,visible:i.value==="visible",name:"Transition"})}}});const Zi=Kt(ze.ui.strategy,ze.ui.accordion,sC),LS=Kt(ze.ui.strategy,ze.ui.button,Sh),jS=oe({components:{HDisclosure:yS,HDisclosureButton:bS,HDisclosurePanel:wS,UIcon:_t,UButton:Gt},inheritAttrs:!1,props:{items:{type:Array,default:()=>[]},defaultOpen:{type:Boolean,default:!1},openIcon:{type:String,default:()=>Zi.default.openIcon},unmount:{type:Boolean,default:!1},closeIcon:{type:String,default:()=>Zi.default.closeIcon},multiple:{type:Boolean,default:!1},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},emits:["open"],setup(e,{emit:t}){const{ui:n,attrs:r}=Ge("accordion",xe(e,"ui"),Zi,xe(e,"class")),o=A(()=>LS),s=B([]),i=A(()=>s.value.map(({open:d})=>d));Re(i,(d,p)=>{for(const g in d){const h=p[g],y=d[g];!h&&y&&t("open",g)}},{immediate:!0});function a(d,p){!e.items[d].closeOthers&&e.multiple||s.value.forEach(g=>{g.open&&g.close(p.target)})}function l(d,p){const g=d;g.style.height="0",g.offsetHeight,g.style.height=g.scrollHeight+"px",g.addEventListener("transitionend",p,{once:!0})}function c(d){const p=d;p.style.height=p.scrollHeight+"px",p.offsetHeight}function u(d){const p=d;p.style.height="auto"}function f(d,p){const g=d;g.style.height="0",g.addEventListener("transitionend",p,{once:!0})}return Zl(()=>Yl("$FeIijP1Ba8")),{ui:n,uiButton:o,attrs:r,buttonRefs:s,closeOthers:a,omit:oh,onEnter:l,onBeforeLeave:c,onAfterEnter:u,onLeave:f}}}),MS={key:1};function DS(e,t,n,r,o,s){const i=_t,a=Gt,l=Nn("HDisclosureButton"),c=Nn("HDisclosurePanel"),u=Nn("HDisclosure");return L(),ne("div",{class:W(e.ui.wrapper)},[(L(!0),ne(ke,null,bt(e.items,(f,d)=>(L(),re(u,{key:d,as:"div",class:W(e.ui.container),"default-open":e.defaultOpen||f.defaultOpen},{default:le(({open:p,close:g})=>[K(l,{ref_for:!0,ref:()=>e.buttonRefs[d]={open:p,close:g},as:"template",disabled:f.disabled,onClick:h=>e.closeOthers(d,h),onKeydown:[lu(h=>e.closeOthers(d,h),["enter"]),lu(h=>e.closeOthers(d,h),["space"])]},{default:le(()=>[ye(e.$slots,"default",{item:f,index:d,open:p,close:g},()=>[K(a,$r(Mr({...e.omit(e.ui.default,["openIcon","closeIcon"]),...e.attrs,...e.omit(f,["slot","disabled","content","defaultOpen"])})),{trailing:le(()=>[K(i,{name:p&&e.closeIcon?e.closeIcon:e.openIcon,class:W([p&&!e.closeIcon?"-rotate-180":"",e.uiButton.icon.size[f.size||e.uiButton.default.size],e.ui.item.icon])},null,8,["name","class"])]),_:2},1040)])]),_:2},1032,["disabled","onClick","onKeydown"]),K(Vn,ue(e.ui.transition,{onEnter:e.onEnter,onAfterEnter:e.onAfterEnter,onBeforeLeave:e.onBeforeLeave,onLeave:e.onLeave}),{default:le(()=>[e.unmount?(L(),re(c,{key:0,class:W([e.ui.item.base,e.ui.item.size,e.ui.item.color,e.ui.item.padding]),unmount:""},{default:le(()=>[ye(e.$slots,f.slot||"item",{item:f,index:d,open:p,close:g},()=>[Je(Ne(f.content),1)])]),_:2},1032,["class"])):Mm((L(),ne("div",MS,[K(c,{class:W([e.ui.item.base,e.ui.item.size,e.ui.item.color,e.ui.item.padding]),static:""},{default:le(()=>[ye(e.$slots,f.slot||"item",{item:f,index:d,open:p,close:g},()=>[Je(Ne(f.content),1)])]),_:2},1032,["class"])],512)),[[$v,p]])]),_:2},1040,["onEnter","onAfterEnter","onBeforeLeave","onLeave"])]),_:2},1032,["class","default-open"]))),128))],2)}const NS=Dt(jS,[["render",DS]]),BS=oe({inheritAttrs:!1,__name:"NavigationAccordion",props:{level:{type:Number,default:0},links:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!0},defaultOpen:{type:[Boolean,Number],default:void 0},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(e){const t=ft(),n=A(()=>{const l=at("space-y-3",r.level>0&&"border-l border-gray-200 dark:border-gray-800 -ml-px hover:border-gray-300 dark:hover:border-gray-700"),c=at("border-l border-gray-200 dark:border-gray-800",r.level>0?"ml-6":"ml-2.5");return{wrapper:l,container:"space-y-3",item:{padding:"",color:"text-inherit dark:text-inherit"},button:{base:"flex items-center gap-1.5 group w-full focus-visible:outline-primary",active:"text-primary border-current",inactive:"border-transparent",level:"border-l -ml-px pl-3.5",icon:{base:"w-5 h-5 flex-shrink-0"},trailingIcon:{name:t.ui.icons.chevron,base:"w-5 h-5 ms-auto transform transition-transform duration-200 flex-shrink-0 mr-1.5",active:"text-gray-700 dark:text-gray-200",inactive:"text-gray-500 dark:text-gray-400 group-hover:text-gray-700 dark:group-hover:text-gray-200 -rotate-90"},label:"text-sm/6 font-semibold truncate"},tree:c,links:{}}}),r=e,o=vn(),{ui:s,attrs:i}=Ge("navigation.accordion",xe(r,"ui"),n,xe(r,"class"),!0),a=A(()=>{var l;return(l=r.links)==null?void 0:l.map(c=>{const u=!r.defaultOpen||typeof r.defaultOpen=="number"&&r.level{const u=_t,f=Gn,d=sg,p=NS;return L(),re(p,ue({key:C(o).path,items:C(a),multiple:e.multiple,ui:C(s)},C(i)),fi({default:le(({item:g,open:h})=>[K(f,{class:W([C(s).button.base,e.level>0&&C(s).button.level]),"active-class":C(s).button.active,"inactive-class":C(s).button.inactive},{default:le(()=>[g.icon?(L(),re(u,{key:0,name:g.icon,class:W(C(s).button.icon.base)},null,8,["name","class"])):me("",!0),Ce("span",{class:W(C(s).button.label)},Ne(g.label),3),g.disabled?me("",!0):(L(),re(u,{key:1,name:C(s).button.trailingIcon.name,class:W([C(s).button.trailingIcon.base,h?C(s).button.trailingIcon.active:C(s).button.trailingIcon.inactive])},null,8,["name","class"]))]),_:2},1032,["class","active-class","inactive-class"])]),_:2},[bt(e.links,({label:g},h)=>({name:g.toLowerCase(),fn:le(({item:y})=>[K(d,{links:y.children,level:e.level+1,"default-open":e.defaultOpen,multiple:e.multiple,class:W(C(s).tree),ui:{links:C(s).links}},null,8,["links","level","default-open","multiple","class","ui"])])}))]),1040,["items","multiple","ui"])}}}),FS=oe({inheritAttrs:!1,__name:"NavigationLinks",props:{level:{type:Number,default:0},links:{type:Array,default:()=>[]},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(e){const t={wrapper:"space-y-3",wrapperLevel:"space-y-1.5",base:"flex items-center gap-1.5 group",active:"text-primary font-medium border-current",inactive:"text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 border-transparent hover:border-gray-500 dark:hover:border-gray-400",level:"border-l -ml-px pl-4",icon:{base:"w-5 h-5 flex-shrink-0"},badge:{base:"rounded-full"},label:"text-sm/6 truncate"},n=e,{ui:r,attrs:o}=Ge("navigation.links",xe(n,"ui"),t,xe(n,"class"),!0);return(s,i)=>{var u;const a=_t,l=Ph,c=Gn;return(u=e.links)!=null&&u.length?(L(),ne("div",ue({key:0,class:e.level>0?C(r).wrapperLevel:C(r).wrapper},C(o)),[(L(!0),ne(ke,null,bt(e.links,(f,d)=>(L(),re(c,ue({key:d},C(Fr)(f),{class:[C(r).base,e.level>0&&C(r).level],"active-class":C(r).active,"inactive-class":C(r).inactive,onClick:f.click}),{default:le(()=>[f.icon?(L(),re(a,{key:0,name:f.icon,class:W(C(jt)(C(r).icon.base,f.iconClass))},null,8,["name","class"])):me("",!0),Ce("span",{class:W(C(r).label)},Ne(f.label),3),ye(s.$slots,"badge",{link:f},()=>[f.badge?(L(),re(l,ue({key:0},typeof f.badge=="string"?{size:"xs",variant:"subtle",label:f.badge}:{size:"xs",variant:"subtle",...f.badge},{class:C(r).badge.base}),null,16,["class"])):me("",!0)])]),_:2},1040,["class","active-class","inactive-class","onClick"]))),128))],16)):me("",!0)}}}),sg=oe({inheritAttrs:!1,__name:"NavigationTree",props:{level:{type:Number,default:0},links:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!0},defaultOpen:{type:[Boolean,Number],default:void 0},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(e){const t={wrapper:"space-y-3",accordion:{},links:{}},n=e,{ui:r,attrs:o}=Ge("navigation.tree",xe(n,"ui"),t,xe(n,"class"),!0),s=A(()=>{var l;const i=[];let a={type:void 0,children:[]};for(const c of n.links){const u=(l=c.children)!=null&&l.length?"accordion":"link";a.type||(a.type=u),a.type===u?a.children.push(c):(i.push(a),a={type:u,children:[c]})}return a.children.length&&i.push(a),i});return(i,a)=>{var u;const l=BS,c=FS;return(u=C(s))!=null&&u.length?(L(),ne("nav",ue({key:0,class:C(r).wrapper},C(o)),[(L(!0),ne(ke,null,bt(C(s),(f,d)=>(L(),ne(ke,{key:d},[f.type==="accordion"?(L(),re(l,{key:0,links:f.children,level:e.level,multiple:e.multiple,"default-open":e.defaultOpen,ui:{...C(r).accordion,links:C(r).links}},null,8,["links","level","multiple","default-open","ui"])):(L(),re(c,{key:1,links:f.children,level:e.level,ui:C(r).links},null,8,["links","level","ui"]))],64))),128))],16)):me("",!0)}}}),HS=oe({inheritAttrs:!1,__name:"HeaderPopoverLinks",props:{links:{type:Array,default:()=>[]},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(e){const t=ft(),n=A(()=>({wrapper:"p-2 space-y-1",base:"block px-2 py-1.5 rounded-md flex items-start gap-1.5",active:"bg-gray-100/50 dark:bg-gray-800/50 text-primary",inactive:"hover:bg-gray-100/50 dark:hover:bg-gray-800/50",label:"font-semibold text-sm/6 inline-block relative",description:"text-sm leading-snug text-gray-500 dark:text-gray-400 line-clamp-2",icon:{base:"w-4 h-4 flex-shrink-0 mt-1"},externalIcon:{name:t.ui.icons.external,base:"w-3 h-3 absolute top-0.5 -right-3.5 text-gray-400 dark:text-gray-500"}})),r=e,{ui:o,attrs:s}=Ge("header.popover.links",xe(r,"ui"),n,xe(r,"class"),!0);return(i,a)=>{var u;const l=_t,c=Gn;return(u=e.links)!=null&&u.length?(L(),ne("div",ue({key:0,class:C(o).wrapper},C(s)),[(L(!0),ne(ke,null,bt(e.links,(f,d)=>(L(),re(c,ue({key:d},C(Fr)(f),{class:C(o).base,"active-class":C(o).active,"inactive-class":C(o).inactive,onClick:f.click}),{default:le(()=>[f.icon?(L(),re(l,{key:0,name:f.icon,class:W(C(jt)(C(o).icon.base,f.iconClass))},null,8,["name","class"])):me("",!0),Ce("p",{class:W([f.target==="_blank"&&"pr-3"])},[Ce("span",{class:W(C(o).label)},[Je(Ne(f.label)+" ",1),f.target==="_blank"?(L(),re(l,{key:0,name:C(o).externalIcon.name,class:W(C(o).externalIcon.base)},null,8,["name","class"])):me("",!0)],2),f.description?(L(),ne("span",{key:0,class:W(C(o).description)},Ne(f.description),3)):me("",!0)],2)]),_:2},1040,["class","active-class","inactive-class","onClick"]))),128))],16)):me("",!0)}}});function Tt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function yr(e){var t=Tt(e).Element;return e instanceof t||e instanceof Element}function It(e){var t=Tt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function lc(e){if(typeof ShadowRoot>"u")return!1;var t=Tt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var dr=Math.max,Zs=Math.min,Ur=Math.round;function nl(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function ig(){return!/^((?!chrome|android).)*safari/i.test(nl())}function zr(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,s=1;t&&It(e)&&(o=e.offsetWidth>0&&Ur(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Ur(r.height)/e.offsetHeight||1);var i=yr(e)?Tt(e):window,a=i.visualViewport,l=!ig()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/o,u=(r.top+(l&&a?a.offsetTop:0))/s,f=r.width/o,d=r.height/s;return{width:f,height:d,top:u,right:c+f,bottom:u+d,left:c,x:c,y:u}}function cc(e){var t=Tt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function US(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function zS(e){return e===Tt(e)||!It(e)?cc(e):US(e)}function sn(e){return e?(e.nodeName||"").toLowerCase():null}function Xn(e){return((yr(e)?e.ownerDocument:e.document)||window.document).documentElement}function uc(e){return zr(Xn(e)).left+cc(e).scrollLeft}function yn(e){return Tt(e).getComputedStyle(e)}function fc(e){var t=yn(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function VS(e){var t=e.getBoundingClientRect(),n=Ur(t.width)/e.offsetWidth||1,r=Ur(t.height)/e.offsetHeight||1;return n!==1||r!==1}function WS(e,t,n){n===void 0&&(n=!1);var r=It(t),o=It(t)&&VS(t),s=Xn(t),i=zr(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((sn(t)!=="body"||fc(s))&&(a=zS(t)),It(t)?(l=zr(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=uc(s))),{x:i.left+a.scrollLeft-l.x,y:i.top+a.scrollTop-l.y,width:i.width,height:i.height}}function dc(e){var t=zr(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Ci(e){return sn(e)==="html"?e:e.assignedSlot||e.parentNode||(lc(e)?e.host:null)||Xn(e)}function ag(e){return["html","body","#document"].indexOf(sn(e))>=0?e.ownerDocument.body:It(e)&&fc(e)?e:ag(Ci(e))}function So(e,t){var n;t===void 0&&(t=[]);var r=ag(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=Tt(r),i=o?[s].concat(s.visualViewport||[],fc(r)?r:[]):r,a=t.concat(i);return o?a:a.concat(So(Ci(i)))}function qS(e){return["table","td","th"].indexOf(sn(e))>=0}function Af(e){return!It(e)||yn(e).position==="fixed"?null:e.offsetParent}function KS(e){var t=/firefox/i.test(nl()),n=/Trident/i.test(nl());if(n&&It(e)){var r=yn(e);if(r.position==="fixed")return null}var o=Ci(e);for(lc(o)&&(o=o.host);It(o)&&["html","body"].indexOf(sn(o))<0;){var s=yn(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function os(e){for(var t=Tt(e),n=Af(e);n&&qS(n)&&yn(n).position==="static";)n=Af(n);return n&&(sn(n)==="html"||sn(n)==="body"&&yn(n).position==="static")?t:n||KS(e)||t}var St="top",Vt="bottom",Wt="right",Pt="left",pc="auto",ss=[St,Vt,Wt,Pt],Vr="start",Wo="end",GS="clippingParents",lg="viewport",co="popper",XS="reference",Of=ss.reduce(function(e,t){return e.concat([t+"-"+Vr,t+"-"+Wo])},[]),cg=[].concat(ss,[pc]).reduce(function(e,t){return e.concat([t,t+"-"+Vr,t+"-"+Wo])},[]),QS="beforeRead",YS="read",JS="afterRead",ZS="beforeMain",eP="main",tP="afterMain",nP="beforeWrite",rP="write",oP="afterWrite",sP=[QS,YS,JS,ZS,eP,tP,nP,rP,oP];function iP(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function o(s){n.add(s.name);var i=[].concat(s.requires||[],s.requiresIfExists||[]);i.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&o(l)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||o(s)}),r}function aP(e){var t=iP(e);return sP.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function lP(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function cP(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}function uP(e,t){var n=Tt(e),r=Xn(e),o=n.visualViewport,s=r.clientWidth,i=r.clientHeight,a=0,l=0;if(o){s=o.width,i=o.height;var c=ig();(c||!c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:i,x:a+uc(e),y:l}}function fP(e){var t,n=Xn(e),r=cc(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=dr(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=dr(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+uc(e),l=-r.scrollTop;return yn(o||n).direction==="rtl"&&(a+=dr(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:i,x:a,y:l}}function ug(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&lc(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function rl(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function dP(e,t){var n=zr(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Rf(e,t,n){return t===lg?rl(uP(e,n)):yr(t)?dP(t,n):rl(fP(Xn(e)))}function pP(e){var t=So(Ci(e)),n=["absolute","fixed"].indexOf(yn(e).position)>=0,r=n&&It(e)?os(e):e;return yr(r)?t.filter(function(o){return yr(o)&&ug(o,r)&&sn(o)!=="body"}):[]}function hP(e,t,n,r){var o=t==="clippingParents"?pP(e):[].concat(t),s=[].concat(o,[n]),i=s[0],a=s.reduce(function(l,c){var u=Rf(e,c,r);return l.top=dr(u.top,l.top),l.right=Zs(u.right,l.right),l.bottom=Zs(u.bottom,l.bottom),l.left=dr(u.left,l.left),l},Rf(e,i,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function nn(e){return e.split("-")[0]}function Wr(e){return e.split("-")[1]}function hc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function fg(e){var t=e.reference,n=e.element,r=e.placement,o=r?nn(r):null,s=r?Wr(r):null,i=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case St:l={x:i,y:t.y-n.height};break;case Vt:l={x:i,y:t.y+t.height};break;case Wt:l={x:t.x+t.width,y:a};break;case Pt:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=o?hc(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(s){case Vr:l[c]=l[c]-(t[u]/2-n[u]/2);break;case Wo:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function dg(){return{top:0,right:0,bottom:0,left:0}}function pg(e){return Object.assign({},dg(),e)}function hg(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}function gc(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,s=n.strategy,i=s===void 0?e.strategy:s,a=n.boundary,l=a===void 0?GS:a,c=n.rootBoundary,u=c===void 0?lg:c,f=n.elementContext,d=f===void 0?co:f,p=n.altBoundary,g=p===void 0?!1:p,h=n.padding,y=h===void 0?0:h,k=pg(typeof y!="number"?y:hg(y,ss)),m=d===co?XS:co,v=e.rects.popper,b=e.elements[g?m:d],w=hP(yr(b)?b:b.contextElement||Xn(e.elements.popper),l,u,i),E=zr(e.elements.reference),S=fg({reference:E,element:v,strategy:"absolute",placement:o}),T=rl(Object.assign({},v,S)),I=d===co?T:E,O={top:w.top-I.top+k.top,bottom:I.bottom-w.bottom+k.bottom,left:w.left-I.left+k.left,right:I.right-w.right+k.right},V=e.modifiersData.offset;if(d===co&&V){var $=V[o];Object.keys(O).forEach(function(U){var ve=[Wt,Vt].indexOf(U)>=0?1:-1,fe=[St,Vt].indexOf(U)>=0?"y":"x";O[U]+=$[fe]*ve})}return O}var $f={placement:"bottom",modifiers:[],strategy:"absolute"};function If(){for(var e=arguments.length,t=new Array(e),n=0;n=0});d.length===0&&(d=f);var p=d.reduce(function(g,h){return g[h]=gc(e,{placement:h,boundary:o,rootBoundary:s,padding:i})[nn(h)],g},{});return Object.keys(p).sort(function(g,h){return p[g]-p[h]})}function AP(e){if(nn(e)===pc)return[];var t=Ms(e);return[jf(e),t,jf(t)]}function OP(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,i=n.altAxis,a=i===void 0?!0:i,l=n.fallbackPlacements,c=n.padding,u=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,g=p===void 0?!0:p,h=n.allowedAutoPlacements,y=t.options.placement,k=nn(y),m=k===y,v=l||(m||!g?[Ms(y)]:AP(y)),b=[y].concat(v).reduce(function(De,st){return De.concat(nn(st)===pc?TP(t,{placement:st,boundary:u,rootBoundary:f,padding:c,flipVariations:g,allowedAutoPlacements:h}):st)},[]),w=t.rects.reference,E=t.rects.popper,S=new Map,T=!0,I=b[0],O=0;O=0,fe=ve?"width":"height",F=gc(t,{placement:V,boundary:u,rootBoundary:f,altBoundary:d,padding:c}),ee=ve?U?Wt:Pt:U?Vt:St;w[fe]>E[fe]&&(ee=Ms(ee));var Y=Ms(ee),je=[];if(s&&je.push(F[$]<=0),a&&je.push(F[ee]<=0,F[Y]<=0),je.every(function(De){return De})){I=V,T=!1;break}S.set(V,je)}if(T)for(var Ze=g?3:1,de=function(st){var Me=b.find(function(j){var X=S.get(j);if(X)return X.slice(0,st).every(function(q){return q})});if(Me)return I=Me,"break"},pe=Ze;pe>0;pe--){var Ve=de(pe);if(Ve==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}const RP={name:"flip",enabled:!0,phase:"main",fn:OP,requiresIfExists:["offset"],data:{_skip:!1}};function $P(e,t,n){var r=nn(e),o=[Pt,St].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=s[0],a=s[1];return i=i||0,a=(a||0)*o,[Pt,Wt].indexOf(r)>=0?{x:a,y:i}:{x:i,y:a}}function IP(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,i=cg.reduce(function(u,f){return u[f]=$P(f,t.rects,s),u},{}),a=i[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}const LP={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:IP};function jP(e){return e==="x"?"y":"x"}function Po(e,t,n){return dr(e,Zs(t,n))}function MP(e,t,n){var r=Po(e,t,n);return r>n?n:r}function DP(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,s=o===void 0?!0:o,i=n.altAxis,a=i===void 0?!1:i,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,f=n.padding,d=n.tether,p=d===void 0?!0:d,g=n.tetherOffset,h=g===void 0?0:g,y=gc(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),k=nn(t.placement),m=Wr(t.placement),v=!m,b=hc(k),w=jP(b),E=t.modifiersData.popperOffsets,S=t.rects.reference,T=t.rects.popper,I=typeof h=="function"?h(Object.assign({},t.rects,{placement:t.placement})):h,O=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),V=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,$={x:0,y:0};if(E){if(s){var U,ve=b==="y"?St:Pt,fe=b==="y"?Vt:Wt,F=b==="y"?"height":"width",ee=E[b],Y=ee+y[ve],je=ee-y[fe],Ze=p?-T[F]/2:0,de=m===Vr?S[F]:T[F],pe=m===Vr?-T[F]:-S[F],Ve=t.elements.arrow,De=p&&Ve?dc(Ve):{width:0,height:0},st=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:dg(),Me=st[ve],j=st[fe],X=Po(0,S[F],De[F]),q=v?S[F]/2-Ze-X-Me-O.mainAxis:de-X-Me-O.mainAxis,se=v?-S[F]/2+Ze+X+j+O.mainAxis:pe+X+j+O.mainAxis,Se=t.elements.arrow&&os(t.elements.arrow),_=Se?b==="y"?Se.clientTop||0:Se.clientLeft||0:0,x=(U=V==null?void 0:V[b])!=null?U:0,P=ee+q-x-_,R=ee+se-x,M=Po(p?Zs(Y,P):Y,ee,p?dr(je,R):je);E[b]=M,$[b]=M-ee}if(a){var D,Q=b==="x"?St:Pt,H=b==="x"?Vt:Wt,z=E[w],N=w==="y"?"height":"width",ae=z+y[Q],te=z-y[H],ie=[St,Pt].indexOf(k)!==-1,ge=(D=V==null?void 0:V[w])!=null?D:0,_e=ie?ae:z-S[N]-T[N]-ge+O.altAxis,$e=ie?z+S[N]+T[N]-ge-O.altAxis:te,Oe=p&&ie?MP(_e,z,$e):Po(p?_e:ae,z,p?$e:te);E[w]=Oe,$[w]=Oe-z}t.modifiersData[r]=$}}const NP={name:"preventOverflow",enabled:!0,phase:"main",fn:DP,requiresIfExists:["offset"]};var BP=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,pg(typeof t!="number"?t:hg(t,ss))};function FP(e){var t,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,i=n.modifiersData.popperOffsets,a=nn(n.placement),l=hc(a),c=[Pt,Wt].indexOf(a)>=0,u=c?"height":"width";if(!(!s||!i)){var f=BP(o.padding,n),d=dc(s),p=l==="y"?St:Pt,g=l==="y"?Vt:Wt,h=n.rects.reference[u]+n.rects.reference[l]-i[l]-n.rects.popper[u],y=i[l]-n.rects.reference[l],k=os(s),m=k?l==="y"?k.clientHeight||0:k.clientWidth||0:0,v=h/2-y/2,b=f[p],w=m-d[u]-f[g],E=m/2-d[u]/2+v,S=Po(b,E,w),T=l;n.modifiersData[r]=(t={},t[T]=S,t.centerOffset=S-E,t)}}function HP(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||ug(t.elements.popper,o)&&(t.elements.arrow=o))}const UP={name:"arrow",enabled:!0,phase:"main",fn:FP,effect:HP,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},zP=gP({defaultModifiers:[...CP,LP,RP,NP,mg,gg,UP]});function VP({locked:e=!1,overflowPadding:t=8,offsetDistance:n=8,offsetSkid:r=0,gpuAcceleration:o=!0,adaptive:s=!0,scroll:i=!0,resize:a=!0,arrow:l=!1,placement:c,strategy:u},f){const d=B(null),p=B(null),g=B(null);return Le(()=>{Ye(h=>{if(!p.value||!d.value&&!(f!=null&&f.value))return;const y=Ys(p),k=Ys(d);if(!(y instanceof HTMLElement)||!k)return;const m={modifiers:[{name:"flip",enabled:!e},{name:"preventOverflow",options:{padding:t}},{name:"offset",options:{offset:[r,n]}},{name:"computeStyles",options:{adaptive:s,gpuAcceleration:o}},{name:"eventListeners",options:{scroll:i,resize:a}},{name:"arrow",enabled:l}]};c&&(m.placement=c),u&&(m.strategy=u),g.value=zP(k,y,m),h(g.value.destroy)})}),[d,p,g]}const ea=Kt(ze.ui.strategy,ze.ui.popover,lC),WP=oe({components:{HPopover:tg,HPopoverButton:ES,HPopoverPanel:CS},inheritAttrs:!1,props:{mode:{type:String,default:"click",validator:e=>["click","hover"].includes(e)},open:{type:Boolean,default:void 0},disabled:{type:Boolean,default:!1},openDelay:{type:Number,default:()=>ea.default.openDelay},closeDelay:{type:Number,default:()=>ea.default.closeDelay},overlay:{type:Boolean,default:!1},popper:{type:Object,default:()=>({})},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},emits:["update:open"],setup(e,{emit:t}){const{ui:n,attrs:r}=Ge("popover",xe(e,"ui"),ea,xe(e,"class")),o=A(()=>hi(e.mode==="hover"?{offsetDistance:0}:{},e.popper,n.value.popper)),[s,i]=VP(o.value),a=B(null),l=B(null);let c=null,u=null;Le(()=>{var k,m;const h=(k=a.value)==null?void 0:k.$.provides;if(!h)return;const y=Object.getOwnPropertySymbols(h);l.value=y.length&&h[y[0]],e.open&&((m=l.value)==null||m.togglePopover())});const f=A(()=>{var m,v,b;if(e.mode!=="hover")return{};const h=((m=e.popper)==null?void 0:m.offsetDistance)||((v=n.value.popper)==null?void 0:v.offsetDistance)||8,y=(b=o.value.placement)==null?void 0:b.split("-")[0],k=`${h}px`;return y==="top"||y==="bottom"?{paddingTop:k,paddingBottom:k}:y==="left"||y==="right"?{paddingLeft:k,paddingRight:k}:{paddingTop:k,paddingBottom:k,paddingLeft:k,paddingRight:k}});function d(h){!h.cancelable||!l.value||(l.value.popoverState===0?l.value.closePopover():l.value.togglePopover())}function p(){e.mode!=="hover"||!l.value||(u&&(clearTimeout(u),u=null),l.value.popoverState!==0&&(c=c||setTimeout(()=>{l.value.togglePopover&&l.value.togglePopover(),c=null},e.openDelay)))}function g(){e.mode!=="hover"||!l.value||(c&&(clearTimeout(c),c=null),l.value.popoverState!==1&&(u=u||setTimeout(()=>{l.value.closePopover&&l.value.closePopover(),u=null},e.closeDelay)))}return Re(()=>e.open,(h,y)=>{l.value&&(y===void 0||h===y||(h?l.value.popoverState=0:l.value.closePopover()))}),Re(()=>{var h;return(h=l.value)==null?void 0:h.popoverState},(h,y)=>{y===void 0||h===y||t("update:open",h===0)}),Zl(()=>Yl("$X5npdzg9aV")),{ui:n,attrs:r,popover:a,popper:o,trigger:s,container:i,containerStyle:f,onTouchStart:d,onMouseEnter:p,onMouseLeave:g}}}),qP=["disabled"];function KP(e,t,n,r,o,s){const i=Nn("HPopoverButton"),a=Nn("HPopoverPanel"),l=Nn("HPopover");return L(),re(l,ue({ref:"popover",class:e.ui.wrapper},e.attrs,{onMouseleave:e.onMouseLeave}),{default:le(({open:c,close:u})=>[K(i,{ref:"trigger",as:"div",disabled:e.disabled,class:W(e.ui.trigger),role:"button",onMouseenter:e.onMouseEnter,onTouchstartPassive:e.onTouchStart},{default:le(()=>[ye(e.$slots,"default",{open:c,close:u},()=>[Ce("button",{disabled:e.disabled}," Open ",8,qP)])]),_:2},1032,["disabled","class","onMouseenter","onTouchstartPassive"]),e.overlay?(L(),re(Vn,ue({key:0,appear:""},e.ui.overlay.transition),{default:le(()=>[c?(L(),ne("div",{key:0,class:W([e.ui.overlay.base,e.ui.overlay.background])},null,2)):me("",!0)]),_:2},1040)):me("",!0),c?(L(),ne("div",{key:1,ref:"container",class:W([e.ui.container,e.ui.width]),style:Hn(e.containerStyle),onMouseenter:t[0]||(t[0]=(...f)=>e.onMouseEnter&&e.onMouseEnter(...f))},[K(Vn,ue({appear:""},e.ui.transition),{default:le(()=>[Ce("div",null,[e.popper.arrow?(L(),ne("div",{key:0,"data-popper-arrow":"",class:W(Object.values(e.ui.arrow))},null,2)):me("",!0),K(a,{class:W([e.ui.base,e.ui.background,e.ui.ring,e.ui.rounded,e.ui.shadow]),static:""},{default:le(()=>[ye(e.$slots,"panel",{open:c,close:u})]),_:2},1032,["class"])])]),_:2},1040)],38)):me("",!0)]),_:3},16,["class","onMouseleave"])}const GP=Dt(WP,[["render",KP]]),XP=oe({inheritAttrs:!1,__name:"HeaderLinks",props:{links:{type:Array,default:()=>[]},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(e){const t=ft(),n=A(()=>({wrapper:"flex items-center gap-x-8",base:"text-sm/6 font-semibold flex items-center gap-1",active:"text-primary",inactive:"hover:text-primary",trailingIcon:{name:t.ui.icons.chevron,base:"w-5 h-5 transform transition-transform duration-200 flex-shrink-0",active:"rotate-180",inactive:""},externalIcon:{name:t.ui.icons.external,base:"w-3 h-3 absolute top-0.5 -right-3.5 text-gray-400 dark:text-gray-500"},default:{popover:{mode:"hover",openDelay:0,ui:{width:"max-w-[16rem]"}}}})),r=e,{ui:o,attrs:s}=Ge("header.links",xe(r,"ui"),n,xe(r,"class"),!0);return(i,a)=>{var d;const l=_t,c=Gn,u=HS,f=GP;return(d=e.links)!=null&&d.length?(L(),ne("ul",ue({key:0,class:C(o).wrapper},C(s)),[(L(!0),ne(ke,null,bt(e.links,(p,g)=>{var h;return L(),ne("li",{key:g,class:"relative"},[(h=p.children)!=null&&h.length?(L(),re(f,$r(ue({key:0},C(o).default.popover)),{default:le(({open:y})=>[K(c,ue(C(Fr)(p),{class:C(o).base,"active-class":C(o).active,"inactive-class":C(o).inactive,onClick:p.click}),{default:le(()=>[ye(i.$slots,"label",{link:p},()=>[Je(Ne(p.label),1)]),K(l,{name:C(o).trailingIcon.name,class:W([C(o).trailingIcon.base,y?C(o).trailingIcon.active:C(o).trailingIcon.inactive])},null,8,["name","class"])]),_:2},1040,["class","active-class","inactive-class","onClick"])]),panel:le(({close:y})=>[ye(i.$slots,"panel",{link:p,close:y},()=>[K(u,{links:p.children,onClick:y},null,8,["links","onClick"])])]),_:2},1040)):(L(),re(c,ue({key:1},C(Fr)(p),{class:C(o).base,"active-class":C(o).active,"inactive-class":C(o).inactive,onClick:p.click}),{default:le(()=>[ye(i.$slots,"label",{link:p},()=>[Je(Ne(p.label),1)]),p.target==="_blank"?(L(),re(l,{key:0,name:C(o).externalIcon.name,class:W(C(o).externalIcon.base)},null,8,["name","class"])):me("",!0)]),_:2},1040,["class","active-class","inactive-class","onClick"]))])}),128))],16)):me("",!0)}}}),QP=Kt(ze.ui.strategy,ze.ui.container,aC),YP=oe({inheritAttrs:!1,props:{as:{type:String,default:"div"},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},setup(e){const{ui:t,attrs:n}=Ge("container",xe(e,"ui"),QP),r=A(()=>jt(at(t.value.base,t.value.padding,t.value.constrained),e.class));return{ui:t,attrs:n,containerClass:r}}});function JP(e,t,n,r,o,s){return L(),re(gr(e.as),ue({class:e.containerClass},e.attrs),{default:le(()=>[ye(e.$slots,"default")]),_:3},16,["class"])}const mc=Dt(YP,[["render",JP]]),ZP=oe({inheritAttrs:!1,__name:"AsideLinks",props:{links:{type:Array,default:()=>[]},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(e){const t=ft(),n=A(()=>({wrapper:"space-y-3 mb-3 lg:mb-6 -mx-1 lg:mx-0",base:"flex items-center gap-1.5 lg:gap-2 group",active:"text-primary font-semibold",inactive:"text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 font-medium",icon:{wrapper:"rounded-md p-1 inline-flex ring-inset ring-1",base:"w-4 h-4 flex-shrink-0",active:"bg-primary ring-primary text-background",inactive:"bg-gray-100/50 dark:bg-gray-800/50 ring-gray-300 dark:ring-gray-700 group-hover:bg-primary group-hover:ring-primary group-hover:text-background"},externalIcon:{name:t.ui.icons.external,base:"w-3 h-3 absolute top-0.5 -right-3.5 text-gray-400 dark:text-gray-500"},label:"text-sm/6 relative"})),r=e,{ui:o,attrs:s}=Ge("aside.links",xe(r,"ui"),n,xe(r,"class"),!0);return(i,a)=>{var u;const l=_t,c=Gn;return(u=e.links)!=null&&u.length?(L(),ne("div",ue({key:0,class:C(o).wrapper},C(s)),[(L(!0),ne(ke,null,bt(e.links,(f,d)=>(L(),re(c,ue({key:d},C(Fr)(f),{class:C(o).base,"active-class":C(o).active,"inactive-class":C(o).inactive,onClick:f.click}),{default:le(({isActive:p})=>[f.icon?(L(),ne("div",{key:0,class:W([C(o).icon.wrapper,f.active||p?C(o).icon.active:C(o).icon.inactive])},[K(l,{name:f.icon,class:W(C(jt)(C(o).icon.base,f.iconClass))},null,8,["name","class"])],2)):me("",!0),Ce("span",{class:W(C(o).label)},[Je(Ne(f.label)+" ",1),f.target==="_blank"?(L(),re(l,{key:0,name:C(o).externalIcon.name,class:W(C(o).externalIcon.base)},null,8,["name","class"])):me("",!0)],2)]),_:2},1040,["class","active-class","inactive-class","onClick"]))),128))],16)):me("",!0)}}}),ol=e=>e.map(t=>{if(!t.children||typeof t.children=="string")return t.children||"";if(Array.isArray(t.children))return ol(t.children);if(t.children.default)return ol(t.children.default())}).join(""),eT=oe({inheritAttrs:!1,__name:"Header",props:{to:{type:String,default:"/"},title:{type:String,default:void 0},links:{type:Array,default:()=>[]},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(e){const t=ft(),n=A(()=>({wrapper:"bg-background/75 backdrop-blur border-b border-gray-200 dark:border-gray-800 -mb-px sticky top-0 z-50",container:"flex items-center justify-between gap-3 h-[--header-height]",left:"lg:flex-1 flex items-center gap-1.5",center:"hidden lg:flex",right:"flex items-center justify-end lg:flex-1 gap-1.5",logo:"flex-shrink-0 font-bold text-xl text-gray-900 dark:text-white flex items-end gap-1.5",panel:{wrapper:"fixed inset-0 z-50 overflow-y-auto bg-background lg:hidden",header:"px-4 sm:px-6",body:"px-4 sm:px-6 pt-3 pb-6"},button:{base:"lg:hidden",icon:{open:t.ui.icons.menu,close:t.ui.icons.close}}})),r=e,o=vn(),s=Td(),{isHeaderDialogOpen:i}=Th(),{ui:a,attrs:l}=Ge("header",xe(r,"ui"),n,xe(r,"class"),!0),c=A(()=>(r.title||s.logo&&ol(s.logo())||"Logo").trim());return Re(()=>o.fullPath,()=>{i.value=!1}),Zl(()=>Yl("$8Bh2daKdgr")),(u,f)=>{const d=Eh,p=XP,g=Gt,h=mc,y=ZP;return L(),ne("header",ue({class:C(a).wrapper},C(l)),[ye(u.$slots,"top"),K(h,{class:W(C(a).container)},{default:le(()=>[Ce("div",{class:W(C(a).left)},[ye(u.$slots,"left",{},()=>[K(d,{to:e.to,"aria-label":C(c),class:W(C(a).logo)},{default:le(()=>[ye(u.$slots,"logo",{},()=>[Je(Ne(e.title||"Nuxt UI Pro"),1)])]),_:3},8,["to","aria-label","class"])])],2),ye(u.$slots,"center",{},()=>[K(p,{links:e.links,class:W(C(a).center)},null,8,["links","class"])]),Ce("div",{class:W(C(a).right)},[ye(u.$slots,"right"),ye(u.$slots,"panel-button",{open:C(i)},()=>{var k,m;return[e.links.length||u.$slots.panel?(L(),re(g,ue({key:0,class:C(a).button.base},(m=(k=u.$ui)==null?void 0:k.button)==null?void 0:m.secondary,{"aria-label":`${C(i)?"Close":"Open"} Menu`,icon:C(i)?C(a).button.icon.close:C(a).button.icon.open,onClick:f[0]||(f[0]=v=>i.value=!C(i))}),null,16,["class","aria-label","icon"])):me("",!0)]})],2)]),_:3},8,["class"]),ye(u.$slots,"bottom"),K(C(og),{show:C(i),as:"template"},{default:le(()=>[K(C(hS),{as:"div",onClose:f[2]||(f[2]=k=>i.value=!1)},{default:le(()=>[K(C(gS),{class:W(C(a).panel.wrapper)},{default:le(()=>[Ce("div",{class:W([C(a).panel.header,C(a).wrapper])},[Ce("div",{class:W(C(a).container)},[Ce("div",{class:W(C(a).left)},[ye(u.$slots,"left",{},()=>[K(d,{to:e.to,"aria-label":C(c),class:W(C(a).logo)},{default:le(()=>[ye(u.$slots,"logo",{},()=>[Je(Ne(e.title||"Nuxt UI Pro"),1)])]),_:3},8,["to","aria-label","class"])])],2),ye(u.$slots,"center"),Ce("div",{class:W(C(a).right)},[ye(u.$slots,"right"),ye(u.$slots,"panel-button",{open:C(i)},()=>{var k,m;return[K(g,ue({class:C(a).button.base},(m=(k=u.$ui)==null?void 0:k.button)==null?void 0:m.secondary,{"aria-label":`${C(i)?"Close":"Open"} Menu`,icon:C(i)?C(a).button.icon.close:C(a).button.icon.open,onClick:f[1]||(f[1]=v=>i.value=!C(i))}),null,16,["class","aria-label","icon"])]})],2)],2)],2),Ce("div",{class:W(C(a).panel.body)},[ye(u.$slots,"panel",{},()=>[K(y,{links:e.links},null,8,["links"])])],2)]),_:3},8,["class"])]),_:3})]),_:3},8,["show"])],16)}}}),tT=/\d/,nT=["-","_","/","."];function rT(e=""){if(!tT.test(e))return e!==e.toLowerCase()}function vc(e,t){const n=nT,r=[];if(!e||typeof e!="string")return r;let o="",s,i;for(const a of e){const l=n.includes(a);if(l===!0){r.push(o),o="",s=void 0;continue}const c=rT(a);if(i===!1){if(s===!1&&c===!0){r.push(o),o=a,s=c;continue}if(s===!0&&c===!1&&o.length>1){const u=o.at(-1);r.push(o.slice(0,Math.max(0,o.length-1))),o=u+a,s=c;continue}}o+=a,s=c,i=l}return r.push(o),r}function vg(e){return e?e[0].toUpperCase()+e.slice(1):""}function rA(e,t){return e?(Array.isArray(e)?e:vc(e)).map(n=>vg(t!=null&&t.normalize?n.toLowerCase():n)).join(""):""}function oA(e,t){return e?(Array.isArray(e)?e:vc(e)).map(n=>n.toLowerCase()).join("-"):""}function yg(e,t){const n={[(t==null?void 0:t.labelAttribute)||"title"]:"label",_path:"to"};return e.map(r=>{var s;const o={};for(const i in r){if(i==="children"){o.children=(s=r.children)!=null&&s.length?yg(r.children,t):void 0;continue}r[i]&&(o[n[i]||i]=r[i])}return o})}function sA(e){var t;return(t=e._dir)!=null&&t.title?e._dir.title:vc(e._dir).map(n=>vg(n)).join(" ")}function oT(e,t){return!e||!t?[]:e.reduce((n,r)=>(t._path&&(t._path+"/").startsWith(r._path+"/")&&r.children&&(n.push(r),n.push(...oT(r.children,t))),n),[])}const sT=Rl("/favicon.ico"),iT={class:"hidden sm:block"},aT=Ce("img",{class:"block sm:hidden h-6 w-auto",src:sT,alt:"mobile favicon"},null,-1),bg=oe({__name:"Header",setup(e){const t=Ee("navigation",[]),{header:n}=ft();return(r,o)=>{var d;const s=vC,i=Ph,a=TC,l=Oh,c=Gt,u=sg,f=eT;return L(),re(f,null,fi({logo:le(()=>{var p,g,h,y,k;return[(g=(p=C(n))==null?void 0:p.logo)!=null&&g.dark||(y=(h=C(n))==null?void 0:h.logo)!=null&&y.light?(L(),ne(ke,{key:0},[Ce("div",iT,[K(s,$r(Mr({class:"h-6 w-auto",...(k=C(n))==null?void 0:k.logo})),null,16)]),aT],64)):(L(),ne(ke,{key:1},[Je(" Nuxt UI Pro "),K(i,{label:"Docs",variant:"subtle",class:"mb-0.5"})],64))]}),right:le(()=>{var p,g,h;return[(p=C(n))!=null&&p.search?(L(),re(a,{key:0,label:null,class:"lg:hidden"})):me("",!0),(g=C(n))!=null&&g.colorMode?(L(),re(l,{key:1})):me("",!0),(h=C(n))!=null&&h.links?(L(!0),ne(ke,{key:2},bt(C(n).links,(y,k)=>(L(),re(c,ue({key:k},{color:"gray",variant:"ghost",...y}),null,16))),128)):me("",!0)]}),panel:le(()=>[K(u,{links:("mapContentNavigation"in r?r.mapContentNavigation:C(yg))(C(t))},null,8,["links"])]),_:2},[(d=C(n))!=null&&d.search?{name:"center",fn:le(()=>[K(a,{class:"hidden lg:flex"})]),key:"0"}:void 0]),1024)}}}),lT=oe({props:{vnode:{type:Object,required:!0},route:{type:Object,required:!0},vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(e){const t=e.renderKey,n=e.route,r={};for(const o in e.route)Object.defineProperty(r,o,{get:()=>t===e.renderKey?e.route[o]:n[o]});return Be(Yr,pn(r)),()=>be(e.vnode,{ref:e.vnodeRef})}}),cT=oe({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,slots:n,expose:r}){const o=Pe(),s=B(),i=Ee(Yr,null);let a;r({pageRef:s});const l=Ee(mp,null);let c;const u=o.deferHydration();if(o.isHydrating){const f=o.hooks.hookOnce("app:error",u);ut().beforeEach(f)}return e.pageKey&&Re(()=>e.pageKey,(f,d)=>{f!==d&&o.callHook("page:loading:start")}),()=>be(Kp,{name:e.name,route:e.route,...t},{default:f=>{const d=fT(i,f.route,f.Component),p=i&&i.matched.length===f.route.matched.length;if(!f.Component){if(c&&!p)return c;u();return}if(c&&l&&!l.isCurrent(f.route))return c;if(d&&i&&(!l||l!=null&&l.isCurrent(i)))return p?c:null;const g=Da(f,e.pageKey);!o.isHydrating&&!dT(i,f.route,f.Component)&&a===g&&o.callHook("page:loading:end"),a=g;const h=!!(e.transition??f.route.meta.pageTransition??ka),y=h&&uT([e.transition,f.route.meta.pageTransition,ka,{onAfterLeave:()=>{o.callHook("page:transition:finish",f.Component)}}].filter(Boolean)),k=e.keepalive??f.route.meta.keepalive??o0;return c=Gp(Vn,h&&y,qw(k,be(bl,{suspensible:!0,onPending:()=>o.callHook("page:start",f.Component),onResolve:()=>{Kn(()=>o.callHook("page:finish",f.Component).then(()=>o.callHook("page:loading:end")).finally(u))}},{default:()=>{const m=be(lT,{key:g||void 0,vnode:n.default?be(ke,void 0,n.default(f)):f.Component,route:f.route,renderKey:g||void 0,trackRootNodes:h,vnodeRef:s});return k&&(m.type.name=f.Component.type.name||f.Component.type.__name||"RouteProvider"),m}}))).default(),c}})}});function uT(e){const t=e.map(n=>({...n,onAfterLeave:n.onAfterLeave?Fl(n.onAfterLeave):void 0}));return hi(...t)}function fT(e,t,n){if(!e)return!1;const r=t.matched.findIndex(o=>{var s;return((s=o.components)==null?void 0:s.default)===(n==null?void 0:n.type)});return!r||r===-1?!1:t.matched.slice(0,r).some((o,s)=>{var i,a,l;return((i=o.components)==null?void 0:i.default)!==((l=(a=e.matched[s])==null?void 0:a.components)==null?void 0:l.default)})||n&&Da({route:t,Component:n})!==Da({route:e,Component:n})}function dT(e,t,n){return e?t.matched.findIndex(o=>{var s;return((s=o.components)==null?void 0:s.default)===(n==null?void 0:n.type)})r.default||r);return()=>be(n,e.layoutProps,t.slots)}}),hT=oe({name:"NuxtLayout",inheritAttrs:!1,props:{name:{type:[String,Boolean,Object],default:null},fallback:{type:[String,Object],default:null}},setup(e,t){const n=Pe(),r=Ee(Yr),o=r===vn()?Vw():r,s=A(()=>{let l=C(e.name)??o.meta.layout??"default";return l&&!(l in In)&&e.fallback&&(l=C(e.fallback)),l}),i=B();t.expose({layoutRef:i});const a=n.deferHydration();if(n.isHydrating){const l=n.hooks.hookOnce("app:error",a);ut().beforeEach(l)}return()=>{const l=s.value&&s.value in In,c=o.meta.layoutTransition??r0;return Gp(Vn,l&&c,{default:()=>be(bl,{suspensible:!0,onResolve:()=>{Kn(a)}},{default:()=>be(gT,{layoutProps:ue(t.attrs,{ref:i}),key:s.value||void 0,name:s.value,shouldProvide:!e.name,hasTransition:!!c},t.slots)})}).default()}}}),gT=oe({name:"NuxtLayoutProvider",inheritAttrs:!1,props:{name:{type:[String,Boolean]},layoutProps:{type:Object},hasTransition:{type:Boolean},shouldProvide:{type:Boolean}},setup(e,t){const n=e.name;return e.shouldProvide&&Be(mp,{isCurrent:r=>n===(r.meta.layout??"default")}),()=>{var r,o;return!n||typeof n=="string"&&!(n in In)?(o=(r=t.slots).default)==null?void 0:o.call(r):be(pT,{key:n,layoutProps:e.layoutProps,name:n},t.slots)}}}),wg=oe({inheritAttrs:!1,__name:"Main",props:{class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(e){const t={wrapper:"min-h-[calc(100vh-var(--header-height))]"},n=e,{ui:r,attrs:o}=Ge("main",xe(n,"ui"),t,xe(n,"class"),!0);return(s,i)=>(L(),ne("main",ue({class:C(r).wrapper},C(o)),[ye(s.$slots,"default")],16))}}),mT=oe({inheritAttrs:!1,__name:"FooterLinks",props:{links:{type:Array,default:()=>[]},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(e){const t=ft(),n=A(()=>({wrapper:"flex flex-col md:flex-row items-center justify-center gap-4 lg:gap-6",base:"text-sm",active:"text-gray-900 dark:text-white font-medium",inactive:"text-gray-500 dark:text-gray-400 hover:text-gray-600 dark:hover:text-gray-300",externalIcon:{name:t.ui.icons.external,base:"w-3 h-3 absolute top-0.5 -right-3.5 text-gray-400 dark:text-gray-500"}})),r=e,{ui:o,attrs:s}=Ge("footer.links",xe(r,"ui"),n,xe(r,"class"),!0);return(i,a)=>{var u;const l=_t,c=Gn;return(u=e.links)!=null&&u.length?(L(),ne("ul",ue({key:0,class:C(o).wrapper},C(s)),[(L(!0),ne(ke,null,bt(e.links,(f,d)=>(L(),ne("li",{key:d,class:"relative"},[K(c,ue(C(Fr)(f),{class:C(o).base,"active-class":C(o).active,"inactive-class":C(o).inactive,onClick:f.click}),{default:le(()=>[Je(Ne(f.label)+" ",1),f.target==="_blank"?(L(),re(l,{key:0,name:C(o).externalIcon.name,class:W(C(o).externalIcon.base)},null,8,["name","class"])):me("",!0)]),_:2},1040,["class","active-class","inactive-class","onClick"])]))),128))],16)):me("",!0)}}}),vT=oe({inheritAttrs:!1,__name:"Footer",props:{links:{type:Array,default:()=>[]},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(e){const t={wrapper:"relative",top:{wrapper:"",container:"py-8 lg:py-12"},bottom:{wrapper:"",container:"py-8 lg:py-4 lg:flex lg:items-center lg:justify-between lg:gap-x-3",left:"flex items-center justify-center lg:justify-start lg:flex-1 gap-x-1.5 mt-3 lg:mt-0 lg:order-1",center:"mt-3 lg:mt-0 lg:order-2 flex items-center justify-center",right:"lg:flex-1 flex items-center justify-center lg:justify-end gap-x-1.5 lg:order-3"}},n=e,{ui:r,attrs:o}=Ge("footer",xe(n,"ui"),t,xe(n,"class"),!0);return(s,i)=>{const a=mc,l=mT;return L(),ne("footer",ue({class:C(r).wrapper},C(o)),[s.$slots.top?(L(),ne("div",{key:0,class:W(C(r).top.wrapper)},[K(a,{class:W(C(r).top.container)},{default:le(()=>[ye(s.$slots,"top")]),_:3},8,["class"])],2)):me("",!0),Ce("div",{class:W(C(r).bottom.wrapper)},[K(a,{class:W(C(r).bottom.container)},{default:le(()=>[Ce("div",{class:W(C(r).bottom.right)},[ye(s.$slots,"right")],2),Ce("div",{class:W(C(r).bottom.center)},[ye(s.$slots,"center",{},()=>[K(l,{links:e.links},null,8,["links"])])],2),Ce("div",{class:W(C(r).bottom.left)},[ye(s.$slots,"left")],2)]),_:3},8,["class"])],2)],16)}}}),_g=oe({__name:"Footer",setup(e){const{footer:t}=ft();return(n,r)=>{const o=Oh,s=Gt,i=vT;return L(),re(i,null,{left:le(()=>[Je(Ne(C(t).credits),1)]),right:le(()=>{var a,l,c;return[(a=C(t))!=null&&a.colorMode?(L(),re(o,{key:0})):me("",!0),(l=C(t))!=null&&l.links?(L(!0),ne(ke,{key:1},bt((c=C(t))==null?void 0:c.links,(u,f)=>(L(),re(s,ue({key:f},{color:"gray",variant:"ghost",...u}),null,16))),128)):me("",!0)]}),_:1})}}}),tr=Kt(ze.ui.strategy,ze.ui.avatar,rC),yT=oe({components:{UIcon:_t},inheritAttrs:!1,props:{as:{type:[String,Object],default:"img"},src:{type:[String,Boolean],default:null},alt:{type:String,default:null},text:{type:String,default:null},icon:{type:String,default:()=>tr.default.icon},size:{type:String,default:()=>tr.default.size,validator(e){return Object.keys(tr.size).includes(e)}},chipColor:{type:String,default:()=>tr.default.chipColor,validator(e){return["gray",...ze.ui.colors].includes(e)}},chipPosition:{type:String,default:()=>tr.default.chipPosition,validator(e){return Object.keys(tr.chip.position).includes(e)}},chipText:{type:[String,Number],default:null},imgClass:{type:String,default:""},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},setup(e){const{ui:t,attrs:n}=Ge("avatar",xe(e,"ui"),tr),r=A(()=>typeof e.src=="boolean"?null:e.src),o=A(()=>(e.alt||"").split(" ").map(f=>f.charAt(0)).join("").substring(0,2)),s=A(()=>jt(at(t.value.wrapper,(c.value||!r.value)&&t.value.background,t.value.rounded,t.value.size[e.size]),e.class)),i=A(()=>jt(at(t.value.rounded,t.value.size[e.size]),e.imgClass)),a=A(()=>at(t.value.icon.base,t.value.icon.size[e.size])),l=A(()=>at(t.value.chip.base,t.value.chip.size[e.size],t.value.chip.position[e.chipPosition],t.value.chip.background.replaceAll("{color}",e.chipColor))),c=B(!1);Re(()=>e.src,()=>{c.value&&(c.value=!1)});function u(){c.value=!0}return{ui:t,attrs:n,wrapperClass:s,imgClass:i,iconClass:a,chipClass:l,url:r,placeholder:o,error:c,onError:u}}});function bT(e,t,n,r,o,s){const i=_t;return L(),ne("span",{class:W(e.wrapperClass)},[e.url&&!e.error?(L(),re(gr(e.as),ue({key:0,class:e.imgClass,alt:e.alt,src:e.url},e.attrs,{onError:e.onError}),null,16,["class","alt","src","onError"])):e.text?(L(),ne("span",{key:1,class:W(e.ui.text)},Ne(e.text),3)):e.icon?(L(),re(i,{key:2,name:e.icon,class:W(e.iconClass)},null,8,["name","class"])):e.placeholder?(L(),ne("span",{key:3,class:W(e.ui.placeholder)},Ne(e.placeholder),3)):me("",!0),e.chipColor?(L(),ne("span",{key:4,class:W(e.chipClass)},Ne(e.chipText),3)):me("",!0),ye(e.$slots,"default")],2)}const xg=Dt(yT,[["render",bT]]);function wT(e,t,n){let r=null;const{pause:o,resume:s,timestamp:i}=fx({controls:!0}),a=B(null),l=A(()=>a.value?t-(i.value-a.value):0);function c(...h){r=setTimeout(()=>{r=null,a.value=null,e(...h)},l.value)}function u(){r&&(clearTimeout(r),r=null)}function f(){a.value=Date.now(),c()}function d(){u(),o()}function p(){u(),o()}function g(){c(),s(),a.value=(a.value||0)+(Date.now()-i.value)}return f(),{start:f,stop:d,pause:p,resume:g,remaining:l}}const uo=Kt(ze.ui.strategy,ze.ui.notification,cC),_T=oe({components:{UIcon:_t,UAvatar:xg,UButton:Gt},inheritAttrs:!1,props:{id:{type:[String,Number],required:!0},title:{type:String,default:null},description:{type:String,default:null},icon:{type:String,default:()=>uo.default.icon},avatar:{type:Object,default:null},closeButton:{type:Object,default:()=>uo.default.closeButton},timeout:{type:Number,default:()=>uo.default.timeout},actions:{type:Array,default:()=>[]},callback:{type:Function,default:null},color:{type:String,default:()=>uo.default.color,validator(e){return["gray",...ze.ui.colors].includes(e)}},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},emits:["close"],setup(e,{emit:t}){const{ui:n,attrs:r}=Ge("notification",xe(e,"ui"),uo);let o=null;const s=B(e.timeout),i=A(()=>{var h,y;return jt(at(n.value.wrapper,(h=n.value.background)==null?void 0:h.replaceAll("{color}",e.color),n.value.rounded,n.value.shadow,(y=n.value.ring)==null?void 0:y.replaceAll("{color}",e.color)),e.class)}),a=A(()=>{var h;return at(n.value.progress.base,(h=n.value.progress.background)==null?void 0:h.replaceAll("{color}",e.color))}),l=A(()=>({width:`${s.value/e.timeout*100||0}%`})),c=A(()=>{var h;return at(n.value.icon.base,(h=n.value.icon.color)==null?void 0:h.replaceAll("{color}",e.color))});function u(){o&&o.pause()}function f(){o&&o.resume()}function d(){o&&o.stop(),e.callback&&e.callback(),t("close")}function p(h){o&&o.stop(),h.click&&h.click(),t("close")}function g(){o&&o.stop(),e.timeout&&(o=wT(()=>{d()},e.timeout),Ye(()=>{s.value=o.remaining.value}))}return Re(()=>e.timeout,g),Le(g),nt(()=>{o&&o.stop()}),{ui:n,attrs:r,wrapperClass:i,progressClass:a,progressStyle:l,iconClass:c,onMouseover:u,onMouseleave:f,onClose:d,onAction:p,twMerge:jt}}});function xT(e,t,n,r,o,s){const i=_t,a=xg,l=Gt;return L(),re(Vn,ue({appear:""},e.ui.transition),{default:le(()=>[Ce("div",ue({class:e.wrapperClass,role:"status"},e.attrs,{onMouseover:t[0]||(t[0]=(...c)=>e.onMouseover&&e.onMouseover(...c)),onMouseleave:t[1]||(t[1]=(...c)=>e.onMouseleave&&e.onMouseleave(...c))}),[Ce("div",{class:W([e.ui.container,e.ui.rounded,e.ui.ring])},[Ce("div",{class:W(["flex",[e.ui.padding,e.ui.gap,{"items-start":e.description||e.$slots.description,"items-center":!e.description&&!e.$slots.description}]])},[e.icon?(L(),re(i,{key:0,name:e.icon,class:W(e.iconClass)},null,8,["name","class"])):me("",!0),e.avatar?(L(),re(a,ue({key:1},{size:e.ui.avatar.size,...e.avatar},{class:e.ui.avatar.base}),null,16,["class"])):me("",!0),Ce("div",{class:W(e.ui.inner)},[e.title||e.$slots.title?(L(),ne("p",{key:0,class:W(e.ui.title)},[ye(e.$slots,"title",{title:e.title},()=>[Je(Ne(e.title),1)])],2)):me("",!0),e.description||e.$slots.description?(L(),ne("div",{key:1,class:W(e.twMerge(e.ui.description,!(e.title&&e.$slots.title)&&"mt-0 leading-5"))},[ye(e.$slots,"description",{description:e.description},()=>[Je(Ne(e.description),1)])],2)):me("",!0),(e.description||e.$slots.description)&&e.actions.length?(L(),ne("div",{key:2,class:W(e.ui.actions)},[(L(!0),ne(ke,null,bt(e.actions,(c,u)=>(L(),re(l,ue({key:u},{...e.ui.default.actionButton||{},...c},{onClick:Di(f=>e.onAction(c),["stop"])}),null,16,["onClick"]))),128))],2)):me("",!0)],2),e.closeButton||!e.description&&!e.$slots.description&&e.actions.length?(L(),ne("div",{key:2,class:W(e.twMerge(e.ui.actions,"mt-0"))},[!e.description&&!e.$slots.description&&e.actions.length?(L(!0),ne(ke,{key:0},bt(e.actions,(c,u)=>(L(),re(l,ue({key:u},{...e.ui.default.actionButton||{},...c},{onClick:Di(f=>e.onAction(c),["stop"])}),null,16,["onClick"]))),128)):me("",!0),e.closeButton?(L(),re(l,ue({key:1,"aria-label":"Close"},{...e.ui.default.closeButton||{},...e.closeButton},{onClick:Di(e.onClose,["stop"])}),null,16,["onClick"])):me("",!0)],2)):me("",!0)],2),e.timeout?(L(),ne("div",{key:0,class:W(e.progressClass),style:Hn(e.progressStyle)},null,6)):me("",!0)],2)],16)]),_:3},16)}const kg=Dt(_T,[["render",xT]]);function kT(){const e=wr("notifications",()=>[]);function t(s){const i={id:new Date().getTime().toString(),...s};return e.value.findIndex(l=>l.id===i.id)===-1&&e.value.push(i),i}function n(s){e.value=e.value.filter(i=>i.id!==s)}function r(s,i){const a=e.value.findIndex(l=>l.id===s);if(a!==-1){const l=e.value[a];e.value.splice(a,1,{...l,...i})}}function o(){e.value=[]}return{add:t,remove:n,update:r,clear:o}}const ET=Kt(ze.ui.strategy,ze.ui.notifications,uC),CT=oe({components:{UNotification:kg},inheritAttrs:!1,props:{class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},setup(e){const{ui:t,attrs:n}=Ge("notifications",xe(e,"ui"),ET),r=kT(),o=wr("notifications",()=>[]),s=A(()=>jt(at(t.value.wrapper,t.value.position,t.value.width),e.class));return{ui:t,attrs:n,toast:r,notifications:o,wrapperClass:s}}});function ST(e,t,n,r,o,s){const i=kg;return L(),re(Fd,{to:"body"},[Ce("div",ue({class:e.wrapperClass,role:"region"},e.attrs),[e.notifications.length?(L(),ne("div",{key:0,class:W(e.ui.container)},[(L(!0),ne(ke,null,bt(e.notifications,a=>(L(),ne("div",{key:a.id},[K(i,ue(a,{class:a.click&&"cursor-pointer",onClick:l=>a.click&&a.click(a),onClose:l=>e.toast.remove(a.id)}),fi({_:2},[bt(e.$slots,(l,c)=>({name:c,fn:le(u=>[ye(e.$slots,c,$r(Mr(u)))])}))]),1040,["class","onClick","onClose"])]))),128))],2)):me("",!0)],16)])}const Eg=Dt(CT,[["render",ST]]),PT=e=>e==="defer"||e===!1;function yc(...e){var g;const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);let[n,r,o={}]=e;if(typeof n!="string")throw new TypeError("[nuxt] [asyncData] key must be a string.");if(typeof r!="function")throw new TypeError("[nuxt] [asyncData] handler must be a function.");const s=Pe(),i=r,a=()=>Cr.value,l=()=>s.isHydrating?s.payload.data[n]:s.static.data[n];o.server=o.server??!0,o.default=o.default??a,o.getCachedData=o.getCachedData??l,o.lazy=o.lazy??!1,o.immediate=o.immediate??!0,o.deep=o.deep??Cr.deep,o.dedupe=o.dedupe??"cancel";const c=()=>o.getCachedData(n,s)!=null;if(!s._asyncData[n]||!o.immediate){(g=s.payload._errors)[n]??(g[n]=Cr.errorValue);const h=o.deep?B:mn;s._asyncData[n]={data:h(o.getCachedData(n,s)??o.default()),pending:B(!c()),error:xe(s.payload._errors,n),status:B("idle"),_default:o.default}}const u={...s._asyncData[n]};delete u._default,u.refresh=u.execute=(h={})=>{if(s._asyncDataPromises[n]){if(PT(h.dedupe??o.dedupe))return s._asyncDataPromises[n];s._asyncDataPromises[n].cancelled=!0}if((h._initial||s.isHydrating&&h._initial!==!1)&&c())return Promise.resolve(o.getCachedData(n,s));u.pending.value=!0,u.status.value="pending";const y=new Promise((k,m)=>{try{k(i(s))}catch(v){m(v)}}).then(async k=>{if(y.cancelled)return s._asyncDataPromises[n];let m=k;o.transform&&(m=await o.transform(k)),o.pick&&(m=AT(m,o.pick)),s.payload.data[n]=m,u.data.value=m,u.error.value=Cr.errorValue,u.status.value="success"}).catch(k=>{if(y.cancelled)return s._asyncDataPromises[n];u.error.value=Jo(k),u.data.value=C(o.default()),u.status.value="error"}).finally(()=>{y.cancelled||(u.pending.value=!1,delete s._asyncDataPromises[n])});return s._asyncDataPromises[n]=y,s._asyncDataPromises[n]},u.clear=()=>TT(s,n);const f=()=>u.refresh({_initial:!0}),d=o.server!==!1&&s.payload.serverRendered;{const h=Mt();if(h&&!h._nuxtOnBeforeMountCbs){h._nuxtOnBeforeMountCbs=[];const m=h._nuxtOnBeforeMountCbs;Ed(()=>{m.forEach(v=>{v()}),m.splice(0,m.length)}),nt(()=>m.splice(0,m.length))}d&&s.isHydrating&&(u.error.value||c())?(u.pending.value=!1,u.status.value=u.error.value?"error":"success"):h&&(s.payload.serverRendered&&s.isHydrating||o.lazy)&&o.immediate?h._nuxtOnBeforeMountCbs.push(f):o.immediate&&f();const y=Kr();if(o.watch){const m=Re(o.watch,()=>u.refresh());y&&To(m)}const k=s.hook("app:data:refresh",async m=>{(!m||m.includes(n))&&await u.refresh()});y&&To(k)}const p=Promise.resolve(s._asyncDataPromises[n]).then(()=>u);return Object.assign(p,u),p}function TT(e,t){t in e.payload.data&&(e.payload.data[t]=void 0),t in e.payload._errors&&(e.payload._errors[t]=Cr.errorValue),e._asyncData[t]&&(e._asyncData[t].data.value=void 0,e._asyncData[t].error.value=Cr.errorValue,e._asyncData[t].pending.value=!1,e._asyncData[t].status.value="idle"),t in e._asyncDataPromises&&(e._asyncDataPromises[t]&&(e._asyncDataPromises[t].cancelled=!0),e._asyncDataPromises[t]=void 0)}function AT(e,t){const n={};for(const r of t)n[r]=e[r];return n}function bc(e){return JSON.stringify(e,OT)}function OT(e,t){return t instanceof RegExp?`--REGEX ${t.toString()}`:t}const Cg=e=>{let t=bc(e);return t=typeof Buffer<"u"?Buffer.from(t).toString("base64"):btoa(t),t=t.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,""),(t.match(/.{1,100}/g)||[]).join("/")},wc=()=>({isEnabled:()=>{const r=vn().query;return Object.prototype.hasOwnProperty.call(r,"preview")&&!r.preview?!1:!!(r.preview||Rs("previewToken").value||sessionStorage.getItem("previewToken"))},getPreviewToken:()=>Rs("previewToken").value||sessionStorage.getItem("previewToken")||void 0,setPreviewToken:r=>{Rs("previewToken").value=r,vn().query.preview=r||"",r?sessionStorage.setItem("previewToken",r):sessionStorage.removeItem("previewToken"),window.location.reload()}}),ei=e=>ep(e,wt().public.content.api.baseURL),iA=()=>{throw console.warn("useContent is only accessible when you are using `documentDriven` mode."),console.warn("Learn more by visiting: https://content.nuxt.com/document-driven"),new Error("useContent is only accessible when you are using `documentDriven` mode.")},Sg=()=>{const{experimental:e}=wt().public.content;return e.clientDB?!0:wc().isEnabled()},Mf=(e,t)=>t.split(".").reduce((n,r)=>n&&n[r],e),_c=(e,t)=>Object.keys(e).filter(t).reduce((n,r)=>Object.assign(n,{[r]:e[r]}),{}),aA=e=>t=>e&&e.length?_c(t,n=>!e.includes(n)):t,lA=e=>t=>Array.isArray(t)?t.map(n=>e(n)):e(t),Pg=e=>{const t=[],n=[];for(const r of e)["$","_"].includes(r)?t.push(r):n.push(r);return{prefixes:t,properties:n}},cA=(e=[])=>t=>{if(e.length===0||!t)return t;const{prefixes:n,properties:r}=Pg(e);return _c(t,o=>!r.includes(o)&&!n.includes(o[0]))},uA=(e=[])=>t=>{if(e.length===0||!t)return t;const{prefixes:n,properties:r}=Pg(e);return _c(t,o=>r.includes(o)||n.includes(o[0]))},fA=(e,t)=>{const n=new Intl.Collator(t.$locale,{numeric:t.$numeric,caseFirst:t.$caseFirst,sensitivity:t.$sensitivity}),r=Object.keys(t).filter(o=>!o.startsWith("$"));for(const o of r)e=e.sort((s,i)=>{const a=[Mf(s,o),Mf(i,o)].map(l=>{if(l!==null)return l instanceof Date?l.toISOString():l});return t[o]===-1&&a.reverse(),n.compare(a[0],a[1])});return e},dA=(e,t="Expected an array")=>{if(!Array.isArray(e))throw new TypeError(t)},fn=e=>Array.isArray(e)?e:[void 0,null].includes(e)?[]:[e],RT=["sort","where","only","without"];function $T(e,t={}){const n={};for(const i of Object.keys(t.initialParams||{}))n[i]=RT.includes(i)?fn(t.initialParams[i]):t.initialParams[i];const r=(i,a=l=>l)=>(...l)=>(n[i]=a(...l),s),o=i=>{var a;return t.legacy?i!=null&&i.surround?i.surround:i&&(i!=null&&i.dirConfig&&(i.result={_path:(a=i.dirConfig)==null?void 0:a._path,...i.result,_dir:i.dirConfig}),i!=null&&i._path||Array.isArray(i)||!Object.prototype.hasOwnProperty.call(i,"result")?i:i==null?void 0:i.result):i},s={params:()=>({...n,...n.where?{where:[...fn(n.where)]}:{},...n.sort?{sort:[...fn(n.sort)]}:{}}),only:r("only",fn),without:r("without",fn),where:r("where",i=>[...fn(n.where),...fn(i)]),sort:r("sort",i=>[...fn(n.sort),...fn(i)]),limit:r("limit",i=>parseInt(String(i),10)),skip:r("skip",i=>parseInt(String(i),10)),find:()=>e(s).then(o),findOne:()=>e(r("first")(!0)).then(o),count:()=>e(r("count")(!0)).then(o),locale:i=>s.where({_locale:i}),withSurround:r("surround",(i,a)=>({query:i,...a})),withDirConfig:()=>r("dirConfig")(!0)};return t.legacy&&(s.findSurround=(i,a)=>s.withSurround(i,a).find().then(o)),s}const IT=()=>async e=>{const{content:t}=wt().public,n=e.params(),r=t.experimental.stripQueryParameters?ei(`/query/${`${Do(n)}.${t.integrity}`}/${Cg(n)}.json`):ei(`/query/${Do(n)}.${t.integrity}.json`);if(Sg())return(await G(()=>import("./8Re2hnJZ.js"),__vite__mapDeps([47,6]),import.meta.url).then(i=>i.useContentDatabase())).fetch(e);const o=await $fetch(r,{method:"GET",responseType:"json",params:t.experimental.stripQueryParameters?void 0:{_params:bc(n),previewToken:wc().getPreviewToken()}});if(typeof o=="string"&&o.startsWith(""))throw new Error("Not found");return o};function LT(e,...t){const{content:n}=wt().public,r=$T(IT(),{initialParams:typeof e!="string"?e:{},legacy:!0});let o;typeof e=="string"&&(o=wa(Yo(e,...t)));const s=r.params;return r.params=()=>{var a,l,c;const i=s();return o&&(i.where=i.where||[],i.first&&(i.where||[]).length===0?i.where.push({_path:Qo(o)}):i.where.push({_path:new RegExp(`^${o.replace(/[-[\]{}()*+.,^$\s/]/g,"\\$&")}`)})),(a=i.sort)!=null&&a.length||(i.sort=[{_stem:1,$numeric:!0}]),n.locales.length&&((c=(l=i.where)==null?void 0:l.find(f=>f._locale))!=null&&c._locale||(i.where=i.where||[],i.where.push({_locale:n.defaultLocale}))),i},r}const Tg=async e=>{const{content:t}=wt().public;typeof(e==null?void 0:e.params)!="function"&&(e=LT(e));const n=e.params(),r=t.experimental.stripQueryParameters?ei(`/navigation/${`${Do(n)}.${t.integrity}`}/${Cg(n)}.json`):ei(`/navigation/${Do(n)}.${t.integrity}.json`);if(Sg())return(await G(()=>import("./8Re2hnJZ.js"),__vite__mapDeps([47,6]),import.meta.url).then(i=>i.generateNavigation))(n);const o=await $fetch(r,{method:"GET",responseType:"json",params:t.experimental.stripQueryParameters?void 0:{_params:bc(n),previewToken:wc().getPreviewToken()}});if(typeof o=="string"&&o.startsWith(""))throw new Error("Not found");return o};function jT(e,t,n){const[r={},o]=typeof t=="string"?[{},t]:[t,n],s=A(()=>Jt(e)),i=r.key||Do([o,typeof s.value=="string"?s.value:"",...MT(r)]);if(!i||typeof i!="string")throw new TypeError("[nuxt] [useFetch] key must be a string: "+i);const a=i===o?"$f"+i:i;if(!r.baseURL&&typeof s.value=="string"&&s.value[0]==="/"&&s.value[1]==="/")throw new Error('[nuxt] [useFetch] the request URL must not start with "//".');const{server:l,lazy:c,default:u,transform:f,pick:d,watch:p,immediate:g,getCachedData:h,deep:y,dedupe:k,...m}=r,v=qt({...a0,...m,cache:typeof r.cache=="boolean"?void 0:r.cache}),b={server:l,lazy:c,default:u,transform:f,pick:d,immediate:g,getCachedData:h,deep:y,dedupe:k,watch:p===!1?[]:[v,s,...p||[]]};let w;return yc(a,()=>{var O;(O=w==null?void 0:w.abort)==null||O.call(w),w=typeof AbortController<"u"?new AbortController:{};const S=Jt(r.timeout);let T;return S&&(T=setTimeout(()=>w.abort(),S),w.signal.onabort=()=>clearTimeout(T)),(r.$fetch||globalThis.$fetch)(s.value,{signal:w.signal,...v}).finally(()=>{clearTimeout(T)})},b)}function Ag(e,t,n){const[r={},o]=typeof t=="string"?[{},t]:[t,n];return jT(e,{...r,lazy:!0},o)}function MT(e){var n;const t=[((n=Jt(e.method))==null?void 0:n.toUpperCase())||"GET",Jt(e.baseURL)];for(const r of[e.params||e.query]){const o=Jt(r);if(!o)continue;const s={};for(const[i,a]of Object.entries(o))s[Jt(i)]=Jt(a);t.push(s)}return t}const DT=Z(()=>G(()=>import("./C41FEfLs.js"),__vite__mapDeps([48,49]),import.meta.url).then(e=>e.default||e)),NT=oe({__name:"app",async setup(e){let t,n;const{data:r}=([t,n]=_l(()=>yc("navigation",()=>Tg())),t=await t,n(),t),{data:o}=Ag("/api/search.json",{default:()=>[],server:!1},"$siNM9WAguS");return Zo({meta:[{name:"viewport",content:"width=device-width, initial-scale=1"}],link:[{rel:"icon",href:"/favicon.ico"}],htmlAttrs:{lang:"en"}}),Rp({ogSiteName:"Nuxt x Supabase - Docs",twitterCard:"summary_large_image"}),Be("navigation",r),(s,i)=>{const a=bg,l=cT,c=hT,u=wg,f=_g,d=DT,p=Ql,g=Eg;return L(),ne("div",null,[K(a),K(u,null,{default:le(()=>[K(c,null,{default:le(()=>[K(l)]),_:1})]),_:1}),K(f),K(p,null,{default:le(()=>[K(d,{files:C(o),navigation:C(r)},null,8,["files","navigation"])]),_:1}),K(g)])}}}),BT=oe({inheritAttrs:!1,__name:"PageError",props:{error:{type:Object,default:void 0},status:{type:Number,default:404},name:{type:String,default:"An error occurred"},message:{type:String,default:"This is not the page you're looking for."},clearButton:{type:Object,default:()=>({})},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(e){const t={wrapper:"min-h-[calc(100vh-var(--header-height))] flex flex-col items-center justify-center",status:"text-base font-semibold text-primary",name:"text-3xl font-bold tracking-tight text-gray-900 dark:text-white sm:text-5xl",message:"mt-6 text-base/7 text-gray-500 dark:text-gray-400 text-center",links:"mt-10 flex items-center justify-center gap-x-6",default:{clearButton:{label:"Go back home",color:"primary",size:"lg"}}},n=e,{ui:r,attrs:o}=Ge("page.error",xe(n,"ui"),t,xe(n,"class"),!0),s=()=>yp({redirect:"/"});return(i,a)=>{var c,u,f,d;const l=Gt;return L(),ne("div",ue({class:C(r).wrapper},C(o)),[Ce("p",{class:W(C(r).status)},Ne(((c=e.error)==null?void 0:c.statusCode)||e.status),3),Ce("h1",{class:W(C(r).name)},Ne(((u=e.error)==null?void 0:u.name)||((f=e.error)==null?void 0:f.statusMessage)||e.name),3),Ce("p",{class:W(C(r).message)},Ne((d=e.error)!=null&&d.message&&e.error.message!==(e.error.name||e.error.statusMessage||e.name)?e.error.message:e.message),3),Ce("div",{class:W(C(r).links)},[K(l,ue({...C(r).default.clearButton,...e.clearButton},{onClick:s}),null,16)],2)],16)}}}),FT=oe({inheritAttrs:!1,__name:"Page",props:{class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(e){const t={wrapper:"flex flex-col lg:grid lg:grid-cols-10 lg:gap-8",left:"lg:col-span-2",center:{narrow:"lg:col-span-6",base:"lg:col-span-8",full:"lg:col-span-10"},right:"lg:col-span-2 order-first lg:order-last"},n=e,r=Td(),{ui:o,attrs:s}=Ge("page",xe(n,"ui"),t,xe(n,"class"),!0),i=A(()=>r.left&&r.right?o.value.center.narrow:r.left||r.right?o.value.center.base:o.value.center.full);return(a,l)=>(L(),ne("div",ue({class:C(o).wrapper},C(s)),[a.$slots.left?(L(),ne("div",{key:0,class:W(C(o).left)},[ye(a.$slots,"left")],2)):me("",!0),Ce("div",{class:W(C(i))},[ye(a.$slots,"default")],2),a.$slots.right?(L(),ne("div",{key:1,class:W(C(o).right)},[ye(a.$slots,"right")],2)):me("",!0)],16))}}),HT=Z(()=>G(()=>import("./C41FEfLs.js"),__vite__mapDeps([48,49]),import.meta.url).then(e=>e.default||e)),UT=oe({__name:"error",props:{error:{}},async setup(e){let t,n;Rp({title:"Page not found",description:"We are sorry but this page could not be found."}),Zo({htmlAttrs:{lang:"en"}});const{data:r}=([t,n]=_l(()=>yc("navigation",()=>Tg())),t=await t,n(),t),{data:o}=Ag("/api/search.json",{default:()=>[],server:!1},"$mar46U4SiV");return Be("navigation",r),(s,i)=>{const a=bg,l=BT,c=FT,u=mc,f=wg,d=_g,p=HT,g=Ql,h=Eg;return L(),ne("div",null,[K(a),K(f,null,{default:le(()=>[K(u,null,{default:le(()=>[K(c,null,{default:le(()=>[K(l,{error:s.error},null,8,["error"])]),_:1})]),_:1})]),_:1}),K(d),K(g,null,{default:le(()=>[K(p,{files:C(o),navigation:C(r)},null,8,["files","navigation"])]),_:1}),K(h)])}}}),zT={key:0},Df={__name:"nuxt-root",setup(e){const t=()=>null,n=Pe(),r=n.deferHydration();if(n.isHydrating){const l=n.hooks.hookOnce("app:error",r);ut().beforeEach(l)}const o=!1;Be(Yr,vn()),n.hooks.callHookWith(l=>l.map(c=>c()),"vue:setup");const s=gi(),i=!1;Sd((l,c,u)=>{if(n.hooks.callHook("vue:error",l,c,u).catch(f=>console.error("[nuxt] Error in `vue:error` hook",f)),H0(l)&&(l.fatal||l.unhandled))return n.runWithContext(()=>Sr(l)),!1});const a=!1;return(l,c)=>(L(),re(bl,{onResolve:C(r)},{default:le(()=>[C(i)?(L(),ne("div",zT)):C(s)?(L(),re(C(UT),{key:1,error:C(s)},null,8,["error"])):C(a)?(L(),re(C(t),{key:2,context:C(a)},null,8,["context"])):C(o)?(L(),re(gr(C(o)),{key:3})):(L(),re(C(NT),{key:4}))]),_:1},8,["onResolve"]))}};let Nf;{let e;Nf=async function(){var i,a;if(e)return e;const r=!!((i=window.__NUXT__)!=null&&i.serverRendered||((a=document.getElementById("__NUXT_DATA__"))==null?void 0:a.dataset.ssr)==="true")?Zv(Df):Jv(Df),o=u0({vueApp:r});async function s(l){await o.callHook("app:error",l),o.payload.error=o.payload.error||Jo(l)}r.config.errorHandler=s;try{await p0(o,mC)}catch(l){s(l)}try{await o.hooks.callHook("app:created",r),await o.hooks.callHook("app:beforeMount",r),r.mount(l0),await o.hooks.callHook("app:mounted",r),await Kn()}catch(l){s(l)}return r.config.errorHandler===s&&(r.config.errorHandler=void 0),r},e=Nf().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{Bh as $,Jv as A,iA as B,Ae as C,A as D,C as E,ke as F,mn as G,Re as H,VT as I,To as J,ts as K,Ye as L,_n as M,ot as N,qt as O,J as P,jh as Q,Be as R,tc as S,Vn as T,qe as U,be as V,Hr as W,nA as X,vr as Y,gt as Z,G as _,ut as a,mc as a$,tn as a0,qn as a1,rs as a2,Ee as a3,on as a4,HC as a5,vt as a6,Kn as a7,sr as a8,zC as a9,gS as aA,og as aB,$S as aC,CC as aD,Ln as aE,Th as aF,JT as aG,AC as aH,oT as aI,tt as aJ,YT as aK,Eh as aL,jt as aM,Fr as aN,Gn as aO,Ed as aP,Xo as aQ,Di as aR,_l as aS,Jo as aT,Rp as aU,yc as aV,sA as aW,FT as aX,Qo as aY,oA as aZ,Do as a_,Lt as aa,_t as ab,xg as ac,xC as ad,Zl as ae,Yl as af,Nn as ag,bt as ah,re as ai,ye as aj,ue as ak,Hn as al,Kt as am,ze as an,Gt as ao,Ge as ap,xe as aq,hi as ar,XT as as,at,Mm as au,$v as av,fi as aw,$r as ax,Mr as ay,hS as az,nt as b,Qp as b0,eA as b1,_r as b2,QT as b3,Ys as b4,wi as b5,GT as b6,ws as b7,Td as b8,Zx as b9,dA as bA,fn as bB,aA as bC,fA as bD,lA as bE,cA as bF,uA as bG,$T as bH,ep as bI,ol as ba,gr as bb,bS as bc,wS as bd,yS as be,zm as bf,Zo as bg,qs as bh,WT as bi,Tg as bj,wc as bk,Mt as bl,rA as bm,Ir as bn,ht as bo,jo as bp,ZT as bq,kT as br,wa as bs,Yo as bt,WE as bu,ZP as bv,wg as bw,yg as bx,sg as by,Mf as bz,L as c,oe as d,ne as e,Ce as f,me as g,K as h,Rs as i,KT as j,Je as k,Dt as l,$l as m,W as n,Le as o,qT as p,wr as q,B as r,LT as s,Ne as t,Pe as u,wt as v,le as w,vn as x,mu as y,ft as z}; diff --git a/_nuxt/5uPAARVZ.js b/_nuxt/5uPAARVZ.js deleted file mode 100644 index 868b5b199..000000000 --- a/_nuxt/5uPAARVZ.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as m}from"./BC4Kh9UJ.js";import"./DV7eKLeG.js";export{m as default}; diff --git a/_nuxt/DykK1NDI.js b/_nuxt/8Re2hnJZ.js similarity index 99% rename from _nuxt/DykK1NDI.js rename to _nuxt/8Re2hnJZ.js index 35bc3d713..0bd194086 100644 --- a/_nuxt/DykK1NDI.js +++ b/_nuxt/8Re2hnJZ.js @@ -1 +1 @@ -import{bp as _,bz as B,bA as j,bB as O,bC as W,bD as T,bE as $,bF as P,bG as M,bt as k,bm as H,v as D,bH as J,u as G,bk as z,bI as F}from"./DV7eKLeG.js";import{c as Z}from"./Cpj98o6Y.js";const q="memory",V=()=>{const t=new Map;return{name:q,options:{},hasItem(r){return t.has(r)},getItem(r){return t.get(r)??null},getItemRaw(r){return t.get(r)??null},setItem(r,n){t.set(r,n)},setItemRaw(r,n){t.set(r,n)},removeItem(r){t.delete(r)},getKeys(){return Array.from(t.keys())},clear(){t.clear()},dispose(){t.clear()}}};function Q(t){return!t||typeof t.then!="function"?Promise.resolve(t):t}function p(t,...r){try{return Q(t(...r))}catch(n){return Promise.reject(n)}}function X(t){const r=typeof t;return t===null||r!=="object"&&r!=="function"}function ee(t){const r=Object.getPrototypeOf(t);return!r||r.isPrototypeOf(Object)}function K(t){if(X(t))return String(t);if(ee(t)||Array.isArray(t))return JSON.stringify(t);if(typeof t.toJSON=="function")return K(t.toJSON());throw new Error("[unstorage] Cannot stringify value!")}function N(){if(typeof Buffer===void 0)throw new TypeError("[unstorage] Buffer is not supported!")}const R="base64:";function te(t){if(typeof t=="string")return t;N();const r=Buffer.from(t).toString("base64");return R+r}function re(t){return typeof t!="string"||!t.startsWith(R)?t:(N(),Buffer.from(t.slice(R.length),"base64"))}const ne=["hasItem","getItem","getItemRaw","setItem","setItemRaw","removeItem","getMeta","setMeta","removeMeta","getKeys","clear","mount","unmount"];function ie(t,r){if(r=E(r),!r)return t;const n={...t};for(const a of ne)n[a]=(c="",...l)=>t[a](r+c,...l);return n.getKeys=(a="",...c)=>t.getKeys(r+a,...c).then(l=>l.map(o=>o.slice(r.length))),n}function y(t){return t?t.split("?")[0].replace(/[/\\]/g,":").replace(/:+/g,":").replace(/^:|:$/g,""):""}function ae(...t){return y(t.join(":"))}function E(t){return t=y(t),t?t+":":""}const se="memory",oe=()=>{const t=new Map;return{name:se,options:{},hasItem(r){return t.has(r)},getItem(r){return t.get(r)??null},getItemRaw(r){return t.get(r)??null},setItem(r,n){t.set(r,n)},setItemRaw(r,n){t.set(r,n)},removeItem(r){t.delete(r)},getKeys(){return Array.from(t.keys())},clear(){t.clear()},dispose(){t.clear()}}};function ue(t={}){const r={mounts:{"":t.driver||oe()},mountpoints:[""],watching:!1,watchListeners:[],unwatch:{}},n=e=>{for(const i of r.mountpoints)if(e.startsWith(i))return{base:i,relativeKey:e.slice(i.length),driver:r.mounts[i]};return{base:"",relativeKey:e,driver:r.mounts[""]}},a=(e,i)=>r.mountpoints.filter(s=>s.startsWith(e)||i&&e.startsWith(s)).map(s=>({relativeBase:e.length>s.length?e.slice(s.length):void 0,mountpoint:s,driver:r.mounts[s]})),c=(e,i)=>{if(r.watching){i=y(i);for(const s of r.watchListeners)s(e,i)}},l=async()=>{if(!r.watching){r.watching=!0;for(const e in r.mounts)r.unwatch[e]=await b(r.mounts[e],c,e)}},o=async()=>{if(r.watching){for(const e in r.unwatch)await r.unwatch[e]();r.unwatch={},r.watching=!1}},h=(e,i,s)=>{const u=new Map,m=f=>{let d=u.get(f.base);return d||(d={driver:f.driver,base:f.base,items:[]},u.set(f.base,d)),d};for(const f of e){const d=typeof f=="string",A=y(d?f:f.key),w=d?void 0:f.value,v=d||!f.options?i:{...i,...f.options},I=n(A);m(I).items.push({key:A,value:w,relativeKey:I.relativeKey,options:v})}return Promise.all([...u.values()].map(f=>s(f))).then(f=>f.flat())},g={hasItem(e,i={}){e=y(e);const{relativeKey:s,driver:u}=n(e);return p(u.hasItem,s,i)},getItem(e,i={}){e=y(e);const{relativeKey:s,driver:u}=n(e);return p(u.getItem,s,i).then(m=>_(m))},getItems(e,i){return h(e,i,s=>s.driver.getItems?p(s.driver.getItems,s.items.map(u=>({key:u.relativeKey,options:u.options})),i).then(u=>u.map(m=>({key:ae(s.base,m.key),value:_(m.value)}))):Promise.all(s.items.map(u=>p(s.driver.getItem,u.relativeKey,u.options).then(m=>({key:u.key,value:_(m)})))))},getItemRaw(e,i={}){e=y(e);const{relativeKey:s,driver:u}=n(e);return u.getItemRaw?p(u.getItemRaw,s,i):p(u.getItem,s,i).then(m=>re(m))},async setItem(e,i,s={}){if(i===void 0)return g.removeItem(e);e=y(e);const{relativeKey:u,driver:m}=n(e);m.setItem&&(await p(m.setItem,u,K(i),s),m.watch||c("update",e))},async setItems(e,i){await h(e,i,async s=>{if(s.driver.setItems)return p(s.driver.setItems,s.items.map(u=>({key:u.relativeKey,value:K(u.value),options:u.options})),i);s.driver.setItem&&await Promise.all(s.items.map(u=>p(s.driver.setItem,u.relativeKey,K(u.value),u.options)))})},async setItemRaw(e,i,s={}){if(i===void 0)return g.removeItem(e,s);e=y(e);const{relativeKey:u,driver:m}=n(e);if(m.setItemRaw)await p(m.setItemRaw,u,i,s);else if(m.setItem)await p(m.setItem,u,te(i),s);else return;m.watch||c("update",e)},async removeItem(e,i={}){typeof i=="boolean"&&(i={removeMeta:i}),e=y(e);const{relativeKey:s,driver:u}=n(e);u.removeItem&&(await p(u.removeItem,s,i),(i.removeMeta||i.removeMata)&&await p(u.removeItem,s+"$",i),u.watch||c("remove",e))},async getMeta(e,i={}){typeof i=="boolean"&&(i={nativeOnly:i}),e=y(e);const{relativeKey:s,driver:u}=n(e),m=Object.create(null);if(u.getMeta&&Object.assign(m,await p(u.getMeta,s,i)),!i.nativeOnly){const f=await p(u.getItem,s+"$",i).then(d=>_(d));f&&typeof f=="object"&&(typeof f.atime=="string"&&(f.atime=new Date(f.atime)),typeof f.mtime=="string"&&(f.mtime=new Date(f.mtime)),Object.assign(m,f))}return m},setMeta(e,i,s={}){return this.setItem(e+"$",i,s)},removeMeta(e,i={}){return this.removeItem(e+"$",i)},async getKeys(e,i={}){e=E(e);const s=a(e,!0);let u=[];const m=[];for(const f of s){const A=(await p(f.driver.getKeys,f.relativeBase,i)).map(w=>f.mountpoint+y(w)).filter(w=>!u.some(v=>w.startsWith(v)));m.push(...A),u=[f.mountpoint,...u.filter(w=>!w.startsWith(f.mountpoint))]}return e?m.filter(f=>f.startsWith(e)&&!f.endsWith("$")):m.filter(f=>!f.endsWith("$"))},async clear(e,i={}){e=E(e),await Promise.all(a(e,!1).map(async s=>{if(s.driver.clear)return p(s.driver.clear,s.relativeBase,i);if(s.driver.removeItem){const u=await s.driver.getKeys(s.relativeBase||"",i);return Promise.all(u.map(m=>s.driver.removeItem(m,i)))}}))},async dispose(){await Promise.all(Object.values(r.mounts).map(e=>x(e)))},async watch(e){return await l(),r.watchListeners.push(e),async()=>{r.watchListeners=r.watchListeners.filter(i=>i!==e),r.watchListeners.length===0&&await o()}},async unwatch(){r.watchListeners=[],await o()},mount(e,i){if(e=E(e),e&&r.mounts[e])throw new Error(`already mounted at ${e}`);return e&&(r.mountpoints.push(e),r.mountpoints.sort((s,u)=>u.length-s.length)),r.mounts[e]=i,r.watching&&Promise.resolve(b(i,c,e)).then(s=>{r.unwatch[e]=s}).catch(console.error),g},async unmount(e,i=!0){e=E(e),!(!e||!r.mounts[e])&&(r.watching&&e in r.unwatch&&(r.unwatch[e](),delete r.unwatch[e]),i&&await x(r.mounts[e]),r.mountpoints=r.mountpoints.filter(s=>s!==e),delete r.mounts[e])},getMount(e=""){e=y(e)+":";const i=n(e);return{driver:i.driver,base:i.base}},getMounts(e="",i={}){return e=y(e),a(e,i.parents).map(u=>({driver:u.driver,base:u.mountpoint}))}};return g}function b(t,r,n){return t.watch?t.watch((a,c)=>r(a,n+c)):()=>{}}async function x(t){typeof t.dispose=="function"&&await p(t.dispose)}function ce(t={}){const r=le(n,t.operators);function n(a,c){return typeof c!="object"||c instanceof RegExp?r.$eq(a,c):Object.keys(c||{}).every(l=>{const o=c[l];if(l.startsWith("$")&&r[l]){const h=r[l];return typeof h=="function"?h(a,o):!1}return n(B(a,l),o)})}return n}function le(t,r={}){return{$match:(n,a)=>t(n,a),$eq:(n,a)=>a instanceof RegExp?a.test(n):n===a,$ne:(n,a)=>a instanceof RegExp?!a.test(n):n!==a,$not:(n,a)=>!t(n,a),$and:(n,a)=>(j(a,"$and requires an array as condition"),a.every(c=>t(n,c))),$or:(n,a)=>(j(a,"$or requires an array as condition"),a.some(c=>t(n,c))),$in:(n,a)=>O(a).some(c=>Array.isArray(n)?t(n,{$contains:c}):t(n,c)),$contains:(n,a)=>(n=Array.isArray(n)?n:String(n),O(a).every(c=>n.includes(c))),$icontains:(n,a)=>{if(typeof a!="string")throw new TypeError("$icontains requires a string, use $contains instead");return n=String(n).toLocaleLowerCase(),O(a).every(c=>n.includes(c.toLocaleLowerCase()))},$containsAny:(n,a)=>(j(a,"$containsAny requires an array as condition"),n=Array.isArray(n)?n:String(n),a.some(c=>n.includes(c))),$exists:(n,a)=>a?typeof n<"u":typeof n>"u",$type:(n,a)=>typeof n===String(a),$regex:(n,a)=>{if(!(a instanceof RegExp)){const c=String(a).match(/\/(.*)\/([dgimsuy]*)$/);a=c!=null&&c[1]?new RegExp(c[1],c[2]||""):new RegExp(a)}return a.test(String(n||""))},$lt:(n,a)=>nn<=a,$gt:(n,a)=>n>a,$gte:(n,a)=>n>=a,...r||{}}}function fe(t){const r=ce(),n=(l,{query:o,before:h,after:g})=>{const e=typeof o=="string"?{_path:o}:o,i=l.findIndex(u=>r(u,e));h=h??1,g=g??1;const s=new Array(h+g).fill(null,0);return i===-1?s:s.map((u,m)=>l[i-h+m+ +(m>=h)]||null)},a=[(l,o)=>{const h=l.result.filter(g=>O(o.where).every(e=>r(g,e)));return{...l,result:h,total:h.length}},(l,o)=>O(o.sort).forEach(h=>T(l.result,h)),function(o,h,g){var e;if(h.surround){let i=n(((e=o.result)==null?void 0:e.length)===1?g:o.result,h.surround);i=$(P(h.without))(i),i=$(M(h.only))(i),o.surround=i}return o}],c=[(l,o)=>{if(o.skip)return{...l,result:l.result.slice(o.skip),skip:o.skip}},(l,o)=>{if(o.limit)return{...l,result:l.result.slice(0,o.limit),limit:o.limit}},function(o,h,g){var e,i,s;if(h.dirConfig){const u=((e=o.result[0])==null?void 0:e._path)||((s=(i=h.where)==null?void 0:i.find(m=>m._path))==null?void 0:s._path);if(typeof u=="string"){const m=g.find(f=>f._path===k(u,"_dir"));m&&(o.dirConfig={_path:m._path,...P(["_"])(m)})}}return o},(l,o)=>({...l,result:$(P(o.without))(l.result)}),(l,o)=>({...l,result:$(M(o.only))(l.result)})];return async l=>{const o=await t(),h=l.params(),g={result:o,limit:0,skip:0,total:o.length},e=a.reduce((s,u)=>u(s,h,o)||s,g);if(h.count)return{result:e.result.length};const i=c.reduce((s,u)=>u(s,h,o)||s,e);return h.first?{...W(["skip","limit","total"])(i),result:i.result[0]}:i}}function L(t){const r=fe(t);return async n=>{var l;n.params().first&&n.withDirConfig();const a=n.params(),c=await r(n);return a.surround?c==null?void 0:c.surround:(c!=null&&c.dirConfig&&(c.result={_path:(l=c.dirConfig)==null?void 0:l._path,...c.result,_dir:c.dirConfig}),c==null?void 0:c.result)}}var me={exports:{}};(function(t,r){(function(n,a,c){t.exports=c(),t.exports.default=c()})("slugify",Z,function(){var n=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E'","Ը":"Y'","Թ":"T'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C'","Կ":"K","Հ":"H","Ձ":"D'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P'","Ք":"Q'","Օ":"O''","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"'","’":"'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}`),a=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');function c(l,o){if(typeof l!="string")throw new Error("slugify: string argument expected");o=typeof o=="string"?{replacement:o}:o||{};var h=a[o.locale]||{},g=o.replacement===void 0?"-":o.replacement,e=o.trim===void 0?!0:o.trim,i=l.normalize().split("").reduce(function(s,u){var m=h[u];return m===void 0&&(m=n[u]),m===void 0&&(m=u),m===g&&(m=" "),s+m.replace(o.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return o.strict&&(i=i.replace(/[^A-Za-z0-9\s]/g,"")),e&&(i=i.trim()),i=i.replace(/\s+/g,g),o.lower&&(i=i.toLowerCase()),i}return c.extend=function(l){Object.assign(n,l)},c})})(me);const he=t=>t.split(/[\s-]/g).map(H).join(" ");function ge(t,r){const{navigation:n}=D().public.content;if(n===!1)return[];const a=l=>({...de(["title",...n.fields])(l),...ye(l==null?void 0:l.navigation)?l.navigation:{}}),c=t.sort((l,o)=>l._path.localeCompare(o._path)).reduce((l,o)=>{var m;const h=o._path.substring(1).split("/"),g=o._id.split(":").slice(1),e=!!((m=g[g.length-1])!=null&&m.match(/([1-9][0-9]*\.)?index.md/g)),i=f=>({title:f.title,_path:f._path,_file:f._file,children:[],...a(f),...f._draft?{_draft:!0}:{}}),s=i(o);if(e){const f=r[s._path];if(typeof(f==null?void 0:f.navigation)<"u"&&!(f!=null&&f.navigation))return l;if(o._path!=="/"){const d=i(o);s.children.push(d)}f&&Object.assign(s,a(f))}return h.length===1?(l.push(s),l):(h.slice(0,-1).reduce((f,d,A)=>{const w="/"+h.slice(0,A+1).join("/"),v=r[w];if(typeof(v==null?void 0:v.navigation)<"u"&&!v.navigation)return[];let I=f.find(Y=>Y._path===w);return I||(I={title:he(d),_path:w,_file:o._file,children:[],...v&&a(v)},f.push(I)),I.children},l).push(s),l)},[]);return U(c)}const pe=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});function U(t){var n;t.forEach(a=>{a._file=a._file.split(".").slice(0,-1).join(".")});const r=t.sort((a,c)=>pe.compare(a._file,c._file));for(const a of r)(n=a.children)!=null&&n.length?U(a.children):delete a.children,delete a._file;return t}function de(t){return r=>(r=r||{},t&&t.length?t.filter(n=>typeof r[n]<"u").reduce((n,a)=>Object.assign(n,{[a]:r[a]}),{}):r)}function ye(t){return Object.prototype.toString.call(t)==="[object Object]"}const we=t=>F(t,D().public.content.api.baseURL),ve=ie(ue({driver:V()}),"@content");function Ie(t){async function r(){const n=new Set(await t.getKeys("cache:")),a=z().getPreviewToken();if(a){const l=await t.getItem(`${a}$`).then(g=>g||{});if(Array.isArray(l.ignoreSources)){const g=l.ignoreSources.map(e=>`cache:${e.trim()}:`);for(const e of n)g.some(i=>e.startsWith(i))&&n.delete(e)}const o=await t.getKeys(`${a}:`),h=await Promise.all(o.map(g=>t.getItem(g)));for(const g of h)n.delete(`cache:${g._id}`),g.__deleted||n.add(`${a}:${g._id}`)}return await Promise.all(Array.from(n).map(l=>t.getItem(l)))}return{storage:t,fetch:L(r),query:n=>J(L(r),{initialParams:n,legacy:!0})}}let C=null,S=null;async function Ae(){return S?await S:C||(S=Ee(),C=await S),C}async function Ee(){const t=G(),{content:r}=D().public,n=Ie(ve),a=await n.storage.getItem("integrity");if(r.integrity!==+(a||0)){const{contents:c,navigation:l}=await $fetch(we(r.integrity?`cache.${r.integrity}.json`:"cache.json"));await Promise.all(c.map(o=>n.storage.setItem(`cache:${o._id}`,o))),await n.storage.setItem("navigation",l),await n.storage.setItem("integrity",r.integrity)}return await t.callHook("content:storage",n.storage),n}async function $e(t){const r=await Ae();if(!z().getPreviewToken()&&Object.keys(t||{}).length===0)return r.storage.getItem("navigation");const n=await r.query(t).where({_partial:!1,navigation:{$ne:!1}}).find(),c=(await r.query().where({_path:/\/_dir$/i,_partial:!0}).find()).reduce((l,o)=>{var g;((g=o.title)==null?void 0:g.toLowerCase())==="dir"&&(o.title=void 0);const h=o._path.split("/").slice(0,-1).join("/")||"/";return l[h]={...o,...o.body},l},{});return ge(n,c)}export{ve as contentStorage,Ie as createDB,$e as generateNavigation,Ae as useContentDatabase}; +import{bp as _,bz as B,bA as j,bB as O,bC as W,bD as T,bE as $,bF as P,bG as M,bt as k,bm as H,v as D,bH as J,u as G,bk as z,bI as F}from"./5uFLRXWz.js";import{c as Z}from"./Cpj98o6Y.js";const q="memory",V=()=>{const t=new Map;return{name:q,options:{},hasItem(r){return t.has(r)},getItem(r){return t.get(r)??null},getItemRaw(r){return t.get(r)??null},setItem(r,n){t.set(r,n)},setItemRaw(r,n){t.set(r,n)},removeItem(r){t.delete(r)},getKeys(){return Array.from(t.keys())},clear(){t.clear()},dispose(){t.clear()}}};function Q(t){return!t||typeof t.then!="function"?Promise.resolve(t):t}function p(t,...r){try{return Q(t(...r))}catch(n){return Promise.reject(n)}}function X(t){const r=typeof t;return t===null||r!=="object"&&r!=="function"}function ee(t){const r=Object.getPrototypeOf(t);return!r||r.isPrototypeOf(Object)}function K(t){if(X(t))return String(t);if(ee(t)||Array.isArray(t))return JSON.stringify(t);if(typeof t.toJSON=="function")return K(t.toJSON());throw new Error("[unstorage] Cannot stringify value!")}function N(){if(typeof Buffer===void 0)throw new TypeError("[unstorage] Buffer is not supported!")}const R="base64:";function te(t){if(typeof t=="string")return t;N();const r=Buffer.from(t).toString("base64");return R+r}function re(t){return typeof t!="string"||!t.startsWith(R)?t:(N(),Buffer.from(t.slice(R.length),"base64"))}const ne=["hasItem","getItem","getItemRaw","setItem","setItemRaw","removeItem","getMeta","setMeta","removeMeta","getKeys","clear","mount","unmount"];function ie(t,r){if(r=E(r),!r)return t;const n={...t};for(const a of ne)n[a]=(c="",...l)=>t[a](r+c,...l);return n.getKeys=(a="",...c)=>t.getKeys(r+a,...c).then(l=>l.map(o=>o.slice(r.length))),n}function y(t){return t?t.split("?")[0].replace(/[/\\]/g,":").replace(/:+/g,":").replace(/^:|:$/g,""):""}function ae(...t){return y(t.join(":"))}function E(t){return t=y(t),t?t+":":""}const se="memory",oe=()=>{const t=new Map;return{name:se,options:{},hasItem(r){return t.has(r)},getItem(r){return t.get(r)??null},getItemRaw(r){return t.get(r)??null},setItem(r,n){t.set(r,n)},setItemRaw(r,n){t.set(r,n)},removeItem(r){t.delete(r)},getKeys(){return Array.from(t.keys())},clear(){t.clear()},dispose(){t.clear()}}};function ue(t={}){const r={mounts:{"":t.driver||oe()},mountpoints:[""],watching:!1,watchListeners:[],unwatch:{}},n=e=>{for(const i of r.mountpoints)if(e.startsWith(i))return{base:i,relativeKey:e.slice(i.length),driver:r.mounts[i]};return{base:"",relativeKey:e,driver:r.mounts[""]}},a=(e,i)=>r.mountpoints.filter(s=>s.startsWith(e)||i&&e.startsWith(s)).map(s=>({relativeBase:e.length>s.length?e.slice(s.length):void 0,mountpoint:s,driver:r.mounts[s]})),c=(e,i)=>{if(r.watching){i=y(i);for(const s of r.watchListeners)s(e,i)}},l=async()=>{if(!r.watching){r.watching=!0;for(const e in r.mounts)r.unwatch[e]=await b(r.mounts[e],c,e)}},o=async()=>{if(r.watching){for(const e in r.unwatch)await r.unwatch[e]();r.unwatch={},r.watching=!1}},h=(e,i,s)=>{const u=new Map,m=f=>{let d=u.get(f.base);return d||(d={driver:f.driver,base:f.base,items:[]},u.set(f.base,d)),d};for(const f of e){const d=typeof f=="string",A=y(d?f:f.key),w=d?void 0:f.value,v=d||!f.options?i:{...i,...f.options},I=n(A);m(I).items.push({key:A,value:w,relativeKey:I.relativeKey,options:v})}return Promise.all([...u.values()].map(f=>s(f))).then(f=>f.flat())},g={hasItem(e,i={}){e=y(e);const{relativeKey:s,driver:u}=n(e);return p(u.hasItem,s,i)},getItem(e,i={}){e=y(e);const{relativeKey:s,driver:u}=n(e);return p(u.getItem,s,i).then(m=>_(m))},getItems(e,i){return h(e,i,s=>s.driver.getItems?p(s.driver.getItems,s.items.map(u=>({key:u.relativeKey,options:u.options})),i).then(u=>u.map(m=>({key:ae(s.base,m.key),value:_(m.value)}))):Promise.all(s.items.map(u=>p(s.driver.getItem,u.relativeKey,u.options).then(m=>({key:u.key,value:_(m)})))))},getItemRaw(e,i={}){e=y(e);const{relativeKey:s,driver:u}=n(e);return u.getItemRaw?p(u.getItemRaw,s,i):p(u.getItem,s,i).then(m=>re(m))},async setItem(e,i,s={}){if(i===void 0)return g.removeItem(e);e=y(e);const{relativeKey:u,driver:m}=n(e);m.setItem&&(await p(m.setItem,u,K(i),s),m.watch||c("update",e))},async setItems(e,i){await h(e,i,async s=>{if(s.driver.setItems)return p(s.driver.setItems,s.items.map(u=>({key:u.relativeKey,value:K(u.value),options:u.options})),i);s.driver.setItem&&await Promise.all(s.items.map(u=>p(s.driver.setItem,u.relativeKey,K(u.value),u.options)))})},async setItemRaw(e,i,s={}){if(i===void 0)return g.removeItem(e,s);e=y(e);const{relativeKey:u,driver:m}=n(e);if(m.setItemRaw)await p(m.setItemRaw,u,i,s);else if(m.setItem)await p(m.setItem,u,te(i),s);else return;m.watch||c("update",e)},async removeItem(e,i={}){typeof i=="boolean"&&(i={removeMeta:i}),e=y(e);const{relativeKey:s,driver:u}=n(e);u.removeItem&&(await p(u.removeItem,s,i),(i.removeMeta||i.removeMata)&&await p(u.removeItem,s+"$",i),u.watch||c("remove",e))},async getMeta(e,i={}){typeof i=="boolean"&&(i={nativeOnly:i}),e=y(e);const{relativeKey:s,driver:u}=n(e),m=Object.create(null);if(u.getMeta&&Object.assign(m,await p(u.getMeta,s,i)),!i.nativeOnly){const f=await p(u.getItem,s+"$",i).then(d=>_(d));f&&typeof f=="object"&&(typeof f.atime=="string"&&(f.atime=new Date(f.atime)),typeof f.mtime=="string"&&(f.mtime=new Date(f.mtime)),Object.assign(m,f))}return m},setMeta(e,i,s={}){return this.setItem(e+"$",i,s)},removeMeta(e,i={}){return this.removeItem(e+"$",i)},async getKeys(e,i={}){e=E(e);const s=a(e,!0);let u=[];const m=[];for(const f of s){const A=(await p(f.driver.getKeys,f.relativeBase,i)).map(w=>f.mountpoint+y(w)).filter(w=>!u.some(v=>w.startsWith(v)));m.push(...A),u=[f.mountpoint,...u.filter(w=>!w.startsWith(f.mountpoint))]}return e?m.filter(f=>f.startsWith(e)&&!f.endsWith("$")):m.filter(f=>!f.endsWith("$"))},async clear(e,i={}){e=E(e),await Promise.all(a(e,!1).map(async s=>{if(s.driver.clear)return p(s.driver.clear,s.relativeBase,i);if(s.driver.removeItem){const u=await s.driver.getKeys(s.relativeBase||"",i);return Promise.all(u.map(m=>s.driver.removeItem(m,i)))}}))},async dispose(){await Promise.all(Object.values(r.mounts).map(e=>x(e)))},async watch(e){return await l(),r.watchListeners.push(e),async()=>{r.watchListeners=r.watchListeners.filter(i=>i!==e),r.watchListeners.length===0&&await o()}},async unwatch(){r.watchListeners=[],await o()},mount(e,i){if(e=E(e),e&&r.mounts[e])throw new Error(`already mounted at ${e}`);return e&&(r.mountpoints.push(e),r.mountpoints.sort((s,u)=>u.length-s.length)),r.mounts[e]=i,r.watching&&Promise.resolve(b(i,c,e)).then(s=>{r.unwatch[e]=s}).catch(console.error),g},async unmount(e,i=!0){e=E(e),!(!e||!r.mounts[e])&&(r.watching&&e in r.unwatch&&(r.unwatch[e](),delete r.unwatch[e]),i&&await x(r.mounts[e]),r.mountpoints=r.mountpoints.filter(s=>s!==e),delete r.mounts[e])},getMount(e=""){e=y(e)+":";const i=n(e);return{driver:i.driver,base:i.base}},getMounts(e="",i={}){return e=y(e),a(e,i.parents).map(u=>({driver:u.driver,base:u.mountpoint}))}};return g}function b(t,r,n){return t.watch?t.watch((a,c)=>r(a,n+c)):()=>{}}async function x(t){typeof t.dispose=="function"&&await p(t.dispose)}function ce(t={}){const r=le(n,t.operators);function n(a,c){return typeof c!="object"||c instanceof RegExp?r.$eq(a,c):Object.keys(c||{}).every(l=>{const o=c[l];if(l.startsWith("$")&&r[l]){const h=r[l];return typeof h=="function"?h(a,o):!1}return n(B(a,l),o)})}return n}function le(t,r={}){return{$match:(n,a)=>t(n,a),$eq:(n,a)=>a instanceof RegExp?a.test(n):n===a,$ne:(n,a)=>a instanceof RegExp?!a.test(n):n!==a,$not:(n,a)=>!t(n,a),$and:(n,a)=>(j(a,"$and requires an array as condition"),a.every(c=>t(n,c))),$or:(n,a)=>(j(a,"$or requires an array as condition"),a.some(c=>t(n,c))),$in:(n,a)=>O(a).some(c=>Array.isArray(n)?t(n,{$contains:c}):t(n,c)),$contains:(n,a)=>(n=Array.isArray(n)?n:String(n),O(a).every(c=>n.includes(c))),$icontains:(n,a)=>{if(typeof a!="string")throw new TypeError("$icontains requires a string, use $contains instead");return n=String(n).toLocaleLowerCase(),O(a).every(c=>n.includes(c.toLocaleLowerCase()))},$containsAny:(n,a)=>(j(a,"$containsAny requires an array as condition"),n=Array.isArray(n)?n:String(n),a.some(c=>n.includes(c))),$exists:(n,a)=>a?typeof n<"u":typeof n>"u",$type:(n,a)=>typeof n===String(a),$regex:(n,a)=>{if(!(a instanceof RegExp)){const c=String(a).match(/\/(.*)\/([dgimsuy]*)$/);a=c!=null&&c[1]?new RegExp(c[1],c[2]||""):new RegExp(a)}return a.test(String(n||""))},$lt:(n,a)=>nn<=a,$gt:(n,a)=>n>a,$gte:(n,a)=>n>=a,...r||{}}}function fe(t){const r=ce(),n=(l,{query:o,before:h,after:g})=>{const e=typeof o=="string"?{_path:o}:o,i=l.findIndex(u=>r(u,e));h=h??1,g=g??1;const s=new Array(h+g).fill(null,0);return i===-1?s:s.map((u,m)=>l[i-h+m+ +(m>=h)]||null)},a=[(l,o)=>{const h=l.result.filter(g=>O(o.where).every(e=>r(g,e)));return{...l,result:h,total:h.length}},(l,o)=>O(o.sort).forEach(h=>T(l.result,h)),function(o,h,g){var e;if(h.surround){let i=n(((e=o.result)==null?void 0:e.length)===1?g:o.result,h.surround);i=$(P(h.without))(i),i=$(M(h.only))(i),o.surround=i}return o}],c=[(l,o)=>{if(o.skip)return{...l,result:l.result.slice(o.skip),skip:o.skip}},(l,o)=>{if(o.limit)return{...l,result:l.result.slice(0,o.limit),limit:o.limit}},function(o,h,g){var e,i,s;if(h.dirConfig){const u=((e=o.result[0])==null?void 0:e._path)||((s=(i=h.where)==null?void 0:i.find(m=>m._path))==null?void 0:s._path);if(typeof u=="string"){const m=g.find(f=>f._path===k(u,"_dir"));m&&(o.dirConfig={_path:m._path,...P(["_"])(m)})}}return o},(l,o)=>({...l,result:$(P(o.without))(l.result)}),(l,o)=>({...l,result:$(M(o.only))(l.result)})];return async l=>{const o=await t(),h=l.params(),g={result:o,limit:0,skip:0,total:o.length},e=a.reduce((s,u)=>u(s,h,o)||s,g);if(h.count)return{result:e.result.length};const i=c.reduce((s,u)=>u(s,h,o)||s,e);return h.first?{...W(["skip","limit","total"])(i),result:i.result[0]}:i}}function L(t){const r=fe(t);return async n=>{var l;n.params().first&&n.withDirConfig();const a=n.params(),c=await r(n);return a.surround?c==null?void 0:c.surround:(c!=null&&c.dirConfig&&(c.result={_path:(l=c.dirConfig)==null?void 0:l._path,...c.result,_dir:c.dirConfig}),c==null?void 0:c.result)}}var me={exports:{}};(function(t,r){(function(n,a,c){t.exports=c(),t.exports.default=c()})("slugify",Z,function(){var n=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E'","Ը":"Y'","Թ":"T'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C'","Կ":"K","Հ":"H","Ձ":"D'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P'","Ք":"Q'","Օ":"O''","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"'","’":"'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}`),a=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');function c(l,o){if(typeof l!="string")throw new Error("slugify: string argument expected");o=typeof o=="string"?{replacement:o}:o||{};var h=a[o.locale]||{},g=o.replacement===void 0?"-":o.replacement,e=o.trim===void 0?!0:o.trim,i=l.normalize().split("").reduce(function(s,u){var m=h[u];return m===void 0&&(m=n[u]),m===void 0&&(m=u),m===g&&(m=" "),s+m.replace(o.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return o.strict&&(i=i.replace(/[^A-Za-z0-9\s]/g,"")),e&&(i=i.trim()),i=i.replace(/\s+/g,g),o.lower&&(i=i.toLowerCase()),i}return c.extend=function(l){Object.assign(n,l)},c})})(me);const he=t=>t.split(/[\s-]/g).map(H).join(" ");function ge(t,r){const{navigation:n}=D().public.content;if(n===!1)return[];const a=l=>({...de(["title",...n.fields])(l),...ye(l==null?void 0:l.navigation)?l.navigation:{}}),c=t.sort((l,o)=>l._path.localeCompare(o._path)).reduce((l,o)=>{var m;const h=o._path.substring(1).split("/"),g=o._id.split(":").slice(1),e=!!((m=g[g.length-1])!=null&&m.match(/([1-9][0-9]*\.)?index.md/g)),i=f=>({title:f.title,_path:f._path,_file:f._file,children:[],...a(f),...f._draft?{_draft:!0}:{}}),s=i(o);if(e){const f=r[s._path];if(typeof(f==null?void 0:f.navigation)<"u"&&!(f!=null&&f.navigation))return l;if(o._path!=="/"){const d=i(o);s.children.push(d)}f&&Object.assign(s,a(f))}return h.length===1?(l.push(s),l):(h.slice(0,-1).reduce((f,d,A)=>{const w="/"+h.slice(0,A+1).join("/"),v=r[w];if(typeof(v==null?void 0:v.navigation)<"u"&&!v.navigation)return[];let I=f.find(Y=>Y._path===w);return I||(I={title:he(d),_path:w,_file:o._file,children:[],...v&&a(v)},f.push(I)),I.children},l).push(s),l)},[]);return U(c)}const pe=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});function U(t){var n;t.forEach(a=>{a._file=a._file.split(".").slice(0,-1).join(".")});const r=t.sort((a,c)=>pe.compare(a._file,c._file));for(const a of r)(n=a.children)!=null&&n.length?U(a.children):delete a.children,delete a._file;return t}function de(t){return r=>(r=r||{},t&&t.length?t.filter(n=>typeof r[n]<"u").reduce((n,a)=>Object.assign(n,{[a]:r[a]}),{}):r)}function ye(t){return Object.prototype.toString.call(t)==="[object Object]"}const we=t=>F(t,D().public.content.api.baseURL),ve=ie(ue({driver:V()}),"@content");function Ie(t){async function r(){const n=new Set(await t.getKeys("cache:")),a=z().getPreviewToken();if(a){const l=await t.getItem(`${a}$`).then(g=>g||{});if(Array.isArray(l.ignoreSources)){const g=l.ignoreSources.map(e=>`cache:${e.trim()}:`);for(const e of n)g.some(i=>e.startsWith(i))&&n.delete(e)}const o=await t.getKeys(`${a}:`),h=await Promise.all(o.map(g=>t.getItem(g)));for(const g of h)n.delete(`cache:${g._id}`),g.__deleted||n.add(`${a}:${g._id}`)}return await Promise.all(Array.from(n).map(l=>t.getItem(l)))}return{storage:t,fetch:L(r),query:n=>J(L(r),{initialParams:n,legacy:!0})}}let C=null,S=null;async function Ae(){return S?await S:C||(S=Ee(),C=await S),C}async function Ee(){const t=G(),{content:r}=D().public,n=Ie(ve),a=await n.storage.getItem("integrity");if(r.integrity!==+(a||0)){const{contents:c,navigation:l}=await $fetch(we(r.integrity?`cache.${r.integrity}.json`:"cache.json"));await Promise.all(c.map(o=>n.storage.setItem(`cache:${o._id}`,o))),await n.storage.setItem("navigation",l),await n.storage.setItem("integrity",r.integrity)}return await t.callHook("content:storage",n.storage),n}async function $e(t){const r=await Ae();if(!z().getPreviewToken()&&Object.keys(t||{}).length===0)return r.storage.getItem("navigation");const n=await r.query(t).where({_partial:!1,navigation:{$ne:!1}}).find(),c=(await r.query().where({_path:/\/_dir$/i,_partial:!0}).find()).reduce((l,o)=>{var g;((g=o.title)==null?void 0:g.toLowerCase())==="dir"&&(o.title=void 0);const h=o._path.split("/").slice(0,-1).join("/")||"/";return l[h]={...o,...o.body},l},{});return ge(n,c)}export{ve as contentStorage,Ie as createDB,$e as generateNavigation,Ae as useContentDatabase}; diff --git a/_nuxt/B3cAN6Fg.js b/_nuxt/B3cAN6Fg.js new file mode 100644 index 000000000..1ec3908df --- /dev/null +++ b/_nuxt/B3cAN6Fg.js @@ -0,0 +1 @@ +import"./5uFLRXWz.js";import{j as o}from"./Cp7Md9uy.js";const a=()=>{const e=t=>s=>{const r=o("/api/_github",t,`${i(s)||"index"}.json`);return $fetch(r,{responseType:"json"})};return{fetchRepository:e("repository"),fetchReleases:e("releases"),fetchRelease:e("releases"),fetchLastRelease:t=>e("releases")({...t,last:!0}),fetchContributors:e("contributors"),fetchFileContributors:e("contributors/file"),fetchReadme:e("readme"),fetchCommits:e("commits")}};function i(e){return Object.entries(e).map(([t,s])=>`${t}_${String(s)}`).join(":")}export{a as u}; diff --git a/_nuxt/DZkVUGxl.js b/_nuxt/B4Gnni54.js similarity index 79% rename from _nuxt/DZkVUGxl.js rename to _nuxt/B4Gnni54.js index e4bb100d9..1b8976474 100644 --- a/_nuxt/DZkVUGxl.js +++ b/_nuxt/B4Gnni54.js @@ -1 +1 @@ -import{d as o,aq as n,H as i,aV as c,a_ as f,b8 as b}from"./DV7eKLeG.js";import{u as d}from"./QA-ib-BQ.js";import"./Cp7Md9uy.js";const p=o({props:{query:{type:Object,required:!1,default:()=>({})}},async setup(r){const a=n(r.query,"source"),{fetchFileContributors:u}=d();i(a,()=>{t&&t()});const{data:e,refresh:t,pending:s}=await c(`github-file-contributors-${f(r.query)}`,()=>u(r.query));return{contributors:e,refresh:t,pending:s}},render({contributors:r,refresh:a,pending:u}){var t;const e=b();return(t=e==null?void 0:e.default)==null?void 0:t.call(e,{contributors:r,refresh:a,pending:u})}});export{p as default}; +import{d as o,aq as n,H as i,aV as c,a_ as f,b8 as b}from"./5uFLRXWz.js";import{u as d}from"./B3cAN6Fg.js";import"./Cp7Md9uy.js";const p=o({props:{query:{type:Object,required:!1,default:()=>({})}},async setup(r){const a=n(r.query,"source"),{fetchFileContributors:u}=d();i(a,()=>{t&&t()});const{data:e,refresh:t,pending:s}=await c(`github-file-contributors-${f(r.query)}`,()=>u(r.query));return{contributors:e,refresh:t,pending:s}},render({contributors:r,refresh:a,pending:u}){var t;const e=b();return(t=e==null?void 0:e.default)==null?void 0:t.call(e,{contributors:r,refresh:a,pending:u})}});export{p as default}; diff --git a/_nuxt/86-KIJZn.js b/_nuxt/B9rFZ2e0.js similarity index 92% rename from _nuxt/86-KIJZn.js rename to _nuxt/B9rFZ2e0.js index 93a8e66cc..87431172a 100644 --- a/_nuxt/86-KIJZn.js +++ b/_nuxt/B9rFZ2e0.js @@ -1 +1 @@ -import{d,bi as l,D as v,q as f,B as p,aV as g,bj as m,a_ as h,b8 as _,V as i,aL as y}from"./DV7eKLeG.js";const b=d({name:"ContentNavigation",props:{query:{type:Object,required:!1,default:void 0}},async setup(u){const{query:a}=l(u),n=v(()=>{var t;return typeof((t=a.value)==null?void 0:t.params)=="function"?a.value.params():a.value});if(!n.value&&f("dd-navigation").value){const{navigation:t}=p();return{navigation:t}}const{data:o}=await g(`content-navigation-${h(n.value)}`,()=>m(n.value));return{navigation:o}},render(u){const a=_(),{navigation:n}=u,o=e=>i(y,{to:e._path},()=>e.title),t=(e,r)=>i("ul",r?{"data-level":r}:null,e.map(s=>s.children?i("li",null,[o(s),t(s.children,r+1)]):i("li",null,o(s)))),c=e=>t(e,0);return a!=null&&a.default?a.default({navigation:n,...this.$attrs}):c(n)}}),C=b;export{C as default}; +import{d,bi as l,D as v,q as f,B as p,aV as g,bj as m,a_ as h,b8 as _,V as i,aL as y}from"./5uFLRXWz.js";const b=d({name:"ContentNavigation",props:{query:{type:Object,required:!1,default:void 0}},async setup(u){const{query:a}=l(u),n=v(()=>{var t;return typeof((t=a.value)==null?void 0:t.params)=="function"?a.value.params():a.value});if(!n.value&&f("dd-navigation").value){const{navigation:t}=p();return{navigation:t}}const{data:o}=await g(`content-navigation-${h(n.value)}`,()=>m(n.value));return{navigation:o}},render(u){const a=_(),{navigation:n}=u,o=e=>i(y,{to:e._path},()=>e.title),t=(e,r)=>i("ul",r?{"data-level":r}:null,e.map(s=>s.children?i("li",null,[o(s),t(s.children,r+1)]):i("li",null,o(s)))),c=e=>t(e,0);return a!=null&&a.default?a.default({navigation:n,...this.$attrs}):c(n)}}),C=b;export{C as default}; diff --git a/_nuxt/BAZ2P4gJ.js b/_nuxt/BAZ2P4gJ.js deleted file mode 100644 index 650e3a42f..000000000 --- a/_nuxt/BAZ2P4gJ.js +++ /dev/null @@ -1 +0,0 @@ -import{d as e}from"./DV7eKLeG.js";const o=e({name:"OgImage",async setup(n,{attrs:t}){return()=>null}});export{o as default}; diff --git a/_nuxt/CVL9daOq.js b/_nuxt/BIFcq7Cp.js similarity index 90% rename from _nuxt/CVL9daOq.js rename to _nuxt/BIFcq7Cp.js index 6d727dda6..01ee10498 100644 --- a/_nuxt/CVL9daOq.js +++ b/_nuxt/BIFcq7Cp.js @@ -1 +1 @@ -import{d,z as m,D as f,ap as b,ae as g,c as x,ai as v,w as n,h as o,E as e,bc as y,n as s,f as _,t as i,bd as h,be as w,af as C,ab as S}from"./DV7eKLeG.js";import"./DXNMbFcI.js";import{r as k}from"./BkwiVK2a.js";import"./BneCoJRQ.js";const z=d({__name:"Collapsible",props:{name:{type:String,default:"properties"},openText:{type:String,default:"Show"},closeText:{type:String,default:"Hide"}},setup(a){const c=m(),l=f(()=>({button:{base:"flex items-center gap-1 text-sm text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200",icon:{name:c.ui.icons.chevron,base:"w-4 h-4 transform transition-transform duration-200",active:"",inactive:"-rotate-90"}},panel:"mt-4 ml-2 py-2.5 pl-4 border-l border-gray-200 dark:border-gray-800 [&>div]:!mt-0"})),{ui:t}=b("content.collapsible",void 0,l,void 0,!0);return g(()=>C("$6GoGKd5wlN")),(p,N)=>{const u=S;return x(),v(e(w),{as:"div"},{default:n(({open:r})=>[o(e(y),{class:s(e(t).button.base)},{default:n(()=>[o(u,{name:e(t).button.icon.name,class:s([e(t).button.icon.base,r?e(t).button.icon.active:e(t).button.icon.inactive])},null,8,["name","class"]),_("span",null,i(r?a.closeText:a.openText)+" "+i(a.name),1)]),_:2},1032,["class"]),o(e(h),{class:s(e(t).panel)},{default:n(()=>[k(p.$slots,"default",{unwrap:"p"})]),_:3},8,["class"])]),_:3})}}});export{z as default}; +import{d,z as m,D as f,ap as b,ae as g,c as x,ai as v,w as n,h as o,E as e,bc as y,n as s,f as _,t as i,bd as h,be as w,af as C,ab as S}from"./5uFLRXWz.js";import"./DVHUXCHF.js";import{r as k}from"./C8UhvDYG.js";import"./BneCoJRQ.js";const z=d({__name:"Collapsible",props:{name:{type:String,default:"properties"},openText:{type:String,default:"Show"},closeText:{type:String,default:"Hide"}},setup(a){const c=m(),l=f(()=>({button:{base:"flex items-center gap-1 text-sm text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200",icon:{name:c.ui.icons.chevron,base:"w-4 h-4 transform transition-transform duration-200",active:"",inactive:"-rotate-90"}},panel:"mt-4 ml-2 py-2.5 pl-4 border-l border-gray-200 dark:border-gray-800 [&>div]:!mt-0"})),{ui:t}=b("content.collapsible",void 0,l,void 0,!0);return g(()=>C("$6GoGKd5wlN")),(p,N)=>{const u=S;return x(),v(e(w),{as:"div"},{default:n(({open:r})=>[o(e(y),{class:s(e(t).button.base)},{default:n(()=>[o(u,{name:e(t).button.icon.name,class:s([e(t).button.icon.base,r?e(t).button.icon.active:e(t).button.icon.inactive])},null,8,["name","class"]),_("span",null,i(r?a.closeText:a.openText)+" "+i(a.name),1)]),_:2},1032,["class"]),o(e(h),{class:s(e(t).panel)},{default:n(()=>[k(p.$slots,"default",{unwrap:"p"})]),_:3},8,["class"])]),_:3})}}});export{z as default}; diff --git a/_nuxt/OrroK2ms.js b/_nuxt/BLtTwCqR.js similarity index 53% rename from _nuxt/OrroK2ms.js rename to _nuxt/BLtTwCqR.js index 86a5e94c3..0871683f0 100644 --- a/_nuxt/OrroK2ms.js +++ b/_nuxt/BLtTwCqR.js @@ -1 +1 @@ -import{d as t}from"./DV7eKLeG.js";const o=t({name:"OgImageWithoutCache",async setup(e,{attrs:a}){return()=>null}});export{o as default}; +import{d as t}from"./5uFLRXWz.js";const o=t({name:"OgImageWithoutCache",async setup(e,{attrs:a}){return()=>null}});export{o as default}; diff --git a/_nuxt/DcTYswyg.js b/_nuxt/BMSUmYfj.js similarity index 88% rename from _nuxt/DcTYswyg.js rename to _nuxt/BMSUmYfj.js index 71151290c..47f0890a2 100644 --- a/_nuxt/DcTYswyg.js +++ b/_nuxt/BMSUmYfj.js @@ -1 +1 @@ -import{d as p,aD as i,ap as l,aq as m,D as _,c as d,ai as f,w as h,k as g,t as v,E as e,ak as x,ad as y}from"./DV7eKLeG.js";const b=p({inheritAttrs:!1,__name:"Shortcut",props:{value:{type:String,required:!0},class:{type:[String,Object,Array],default:void 0}},setup(a){const s={wrapper:"!my-0 align-text-top"},t=a,{metaSymbol:o}=i(),{ui:r,attrs:c}=l("content.shortcut",void 0,s,m(t,"class"),!0),n=_(()=>t.value==="meta"?o.value:t.value);return(S,k)=>{const u=y;return d(),f(u,x({class:e(r).wrapper},e(c)),{default:h(()=>[g(v(e(n)),1)]),_:1},16,["class"])}}});export{b as default}; +import{d as p,aD as i,ap as l,aq as m,D as _,c as d,ai as f,w as h,k as g,t as v,E as e,ak as x,ad as y}from"./5uFLRXWz.js";const b=p({inheritAttrs:!1,__name:"Shortcut",props:{value:{type:String,required:!0},class:{type:[String,Object,Array],default:void 0}},setup(a){const s={wrapper:"!my-0 align-text-top"},t=a,{metaSymbol:o}=i(),{ui:r,attrs:c}=l("content.shortcut",void 0,s,m(t,"class"),!0),n=_(()=>t.value==="meta"?o.value:t.value);return(S,k)=>{const u=y;return d(),f(u,x({class:e(r).wrapper},e(c)),{default:h(()=>[g(v(e(n)),1)]),_:1},16,["class"])}}});export{b as default}; diff --git a/_nuxt/2NYeL5W1.js b/_nuxt/BOWHM_U1.js similarity index 75% rename from _nuxt/2NYeL5W1.js rename to _nuxt/BOWHM_U1.js index f2f7c9814..92eef3d47 100644 --- a/_nuxt/2NYeL5W1.js +++ b/_nuxt/BOWHM_U1.js @@ -1 +1 @@ -import{_ as l}from"./Q1re-agt.js";import{d as n,c as s,ai as i,w as r,f as o,n as g,al as u,aj as m}from"./DV7eKLeG.js";import"./DstQJC2Y.js";import"./BC4Kh9UJ.js";const p=n({__name:"ProsePre",props:{code:{type:String,default:""},language:{type:String,default:null},filename:{type:String,default:null},highlights:{type:Array,default:()=>[]},meta:{type:String,default:null},class:{type:String,default:null},style:{type:[String,Object],default:null}},setup(e){return(a,f)=>{const t=l;return s(),i(t,{code:e.code,language:e.language,filename:e.filename,highlights:e.highlights,meta:e.meta},{default:r(()=>[o("pre",{class:g(a.$props.class),style:u(e.style)},[m(a.$slots,"default")],6)]),_:3},8,["code","language","filename","highlights","meta"])}}});export{p as default}; +import{_ as l}from"./DqYI4N-U.js";import{d as n,c as s,ai as i,w as r,f as o,n as g,al as u,aj as m}from"./5uFLRXWz.js";import"./nO3zWEPC.js";import"./CbCDpNlC.js";const p=n({__name:"ProsePre",props:{code:{type:String,default:""},language:{type:String,default:null},filename:{type:String,default:null},highlights:{type:Array,default:()=>[]},meta:{type:String,default:null},class:{type:String,default:null},style:{type:[String,Object],default:null}},setup(e){return(a,f)=>{const t=l;return s(),i(t,{code:e.code,language:e.language,filename:e.filename,highlights:e.highlights,meta:e.meta},{default:r(()=>[o("pre",{class:g(a.$props.class),style:u(e.style)},[m(a.$slots,"default")],6)]),_:3},8,["code","language","filename","highlights","meta"])}}});export{p as default}; diff --git a/_nuxt/mpWQaDmy.js b/_nuxt/BQtyLeXl.js similarity index 99% rename from _nuxt/mpWQaDmy.js rename to _nuxt/BQtyLeXl.js index a841f52e3..830ded6f6 100644 --- a/_nuxt/mpWQaDmy.js +++ b/_nuxt/BQtyLeXl.js @@ -1,5 +1,5 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DAumwU-x.js","./DV7eKLeG.js","./entry.BErpUQtk.css","./bXKbWHrB.js","./BneCoJRQ.js","./Cpj98o6Y.js","./CM-HxrcU.js"])))=>i.map(i=>d[i]); -import{f as nn,n as Hn,s as ga,h as Qa,a as _u,_ as gu}from"./bXKbWHrB.js";import{aZ as ua,_ as Un,ar as jn,d as qt,D as Ke,a_ as yu,aS as gs,aV as ys,H as ku,aj as le,c as J,ai as At,n as ie,E as $,g as ue,at as la,ap as Xa,aq as ft,e as re,h as Me,w as ct,f as Ht,ak as $e,a$ as ks,k as Et,t as Be,F as Rt,ah as vt,ao as bs,b0 as bu,b1 as wu,r as Sa,b2 as Ea,b3 as Eu,b4 as Tu,b5 as Au,b6 as Cu,b7 as Ta,b8 as xu,b9 as Du,ba as zu,aL as Iu,ab as ws,p as Su,j as Nu,l as Fu,z as Lu,aM as Ou,aU as Ru,ax as vu,s as Bu}from"./DV7eKLeG.js";import{n as qn}from"./BneCoJRQ.js";import{g as sn}from"./Cpj98o6Y.js";import{_ as Pu}from"./CM-HxrcU.js";function Yn(e){if(e)throw e}var Na=Object.prototype.hasOwnProperty,Es=Object.prototype.toString,$n=Object.defineProperty,Wn=Object.getOwnPropertyDescriptor,Vn=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Es.call(t)==="[object Array]"},Gn=function(t){if(!t||Es.call(t)!=="[object Object]")return!1;var a=Na.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&Na.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!a&&!r)return!1;var n;for(n in t);return typeof n>"u"||Na.call(t,n)},Qn=function(t,a){$n&&a.name==="__proto__"?$n(t,a.name,{enumerable:!0,configurable:!0,value:a.newValue,writable:!0}):t[a.name]=a.newValue},Xn=function(t,a){if(a==="__proto__")if(Na.call(t,a)){if(Wn)return Wn(t,a).value}else return;return t[a]},Mu=function e(){var t,a,r,n,s,i,o=arguments[0],u=1,l=arguments.length,p=!1;for(typeof o=="boolean"&&(p=o,o=arguments[1]||{},u=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});ui.length;let u;o&&i.push(n);try{u=e.apply(this,i)}catch(l){const p=l;if(o&&a)throw p;return n(p)}o||(u instanceof Promise?u.then(s,n):u instanceof Error?n(u):s(u))}function n(i,...o){a||(a=!0,t(i,...o))}function s(i){n(null,i)}}function aa(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Kn(e.position):"start"in e||"end"in e?Kn(e):"line"in e||"column"in e?Or(e):""}function Or(e){return Jn(e&&e.line)+":"+Jn(e&&e.column)}function Kn(e){return Or(e&&e.start)+"-"+Or(e&&e.end)}function Jn(e){return e&&typeof e=="number"?e:1}class ze extends Error{constructor(t,a,r){super(),typeof a=="string"&&(r=a,a=void 0);let n="",s={},i=!1;if(a&&("line"in a&&"column"in a?s={place:a}:"start"in a&&"end"in a?s={place:a}:"type"in a?s={ancestors:[a],place:a.position}:s={...a}),typeof t=="string"?n=t:!s.cause&&t&&(i=!0,n=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?s.ruleId=r:(s.source=r.slice(0,u),s.ruleId=r.slice(u+1))}if(!s.place&&s.ancestors&&s.ancestors){const u=s.ancestors[s.ancestors.length-1];u&&(s.place=u.position)}const o=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file,this.message=n,this.line=o?o.line:void 0,this.name=aa(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=i&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual,this.expected,this.note,this.url}}ze.prototype.file="";ze.prototype.name="";ze.prototype.reason="";ze.prototype.message="";ze.prototype.stack="";ze.prototype.column=void 0;ze.prototype.line=void 0;ze.prototype.ancestors=void 0;ze.prototype.cause=void 0;ze.prototype.fatal=void 0;ze.prototype.place=void 0;ze.prototype.ruleId=void 0;ze.prototype.source=void 0;const je={basename:ju,dirname:qu,extname:Yu,join:$u,sep:"/"};function ju(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');ya(e);let a=0,r=-1,n=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;n--;)if(e.codePointAt(n)===47){if(s){a=n+1;break}}else r<0&&(s=!0,r=n+1);return r<0?"":e.slice(a,r)}if(t===e)return"";let i=-1,o=t.length-1;for(;n--;)if(e.codePointAt(n)===47){if(s){a=n+1;break}}else i<0&&(s=!0,i=n+1),o>-1&&(e.codePointAt(n)===t.codePointAt(o--)?o<0&&(r=n):(o=-1,r=i));return a===r?r=i:r<0&&(r=e.length),e.slice(a,r)}function qu(e){if(ya(e),e.length===0)return".";let t=-1,a=e.length,r;for(;--a;)if(e.codePointAt(a)===47){if(r){t=a;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Yu(e){ya(e);let t=e.length,a=-1,r=0,n=-1,s=0,i;for(;t--;){const o=e.codePointAt(t);if(o===47){if(i){r=t+1;break}continue}a<0&&(i=!0,a=t+1),o===46?n<0?n=t:s!==1&&(s=1):n>-1&&(s=-1)}return n<0||a<0||s===0||s===1&&n===a-1&&n===r+1?"":e.slice(n,a)}function $u(...e){let t=-1,a;for(;++t0&&e.codePointAt(e.length-1)===47&&(a+="/"),t?"/"+a:a}function Vu(e,t){let a="",r=0,n=-1,s=0,i=-1,o,u;for(;++i<=e.length;){if(i2){if(u=a.lastIndexOf("/"),u!==a.length-1){u<0?(a="",r=0):(a=a.slice(0,u),r=a.length-1-a.lastIndexOf("/")),n=i,s=0;continue}}else if(a.length>0){a="",r=0,n=i,s=0;continue}}t&&(a=a.length>0?a+"/..":"..",r=2)}else a.length>0?a+="/"+e.slice(n+1,i):a=e.slice(n+1,i),r=i-n-1;n=i,s=0}else o===46&&s>-1?s++:s=-1}return a}function ya(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Gu={cwd:Qu};function Qu(){return"/"}function Rr(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Xu(e){if(typeof e=="string")e=new URL(e);else if(!Rr(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Ku(e)}function Ku(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let a=-1;for(;++a0){let[m,...y]=p;const b=r[f][1];Lr(b)&&Lr(m)&&(m=lr(!0,b,m)),r[f]=[l,m,...y]}}}}const al=new on().freeze();function pr(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function mr(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function _r(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function ei(e){if(!Lr(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function ti(e,t,a){if(!a)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Aa(e){return rl(e)?e:new Ju(e)}function rl(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function nl(e){return typeof e=="string"||il(e)}function il(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const sl={};function cn(e,t){const a=sl,r=typeof a.includeImageAlt=="boolean"?a.includeImageAlt:!0,n=typeof a.includeHtml=="boolean"?a.includeHtml:!0;return Ts(e,r,n)}function Ts(e,t,a){if(ol(e)){if("value"in e)return e.type==="html"&&!a?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return ai(e.children,t,a)}return Array.isArray(e)?ai(e,t,a):""}function ai(e,t,a){const r=[];let n=-1;for(;++nn?0:n+t:t=t>n?n:t,a=a>0?a:0,r.length<1e4)i=Array.from(r),i.unshift(t,a),e.splice(...i);else for(a&&e.splice(t,a);s0?(Ne(e,e.length,0,t),e):t}const ni={}.hasOwnProperty;function As(e){const t={};let a=-1;for(;++a13&&a<32||a>126&&a<160||a>55295&&a<57344||a>64975&&a<65008||(a&65535)===65535||(a&65535)===65534||a>1114111?"�":String.fromCodePoint(a)}function He(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ll=dt(new RegExp("\\p{P}","u")),we=dt(/[A-Za-z]/),ye=dt(/[\dA-Za-z]/),fl=dt(/[#-'*+\--9=?A-Z^-~]/);function Ra(e){return e!==null&&(e<32||e===127)}const vr=dt(/\d/),hl=dt(/[\dA-Fa-f]/),xs=dt(/[!-/:-@[-`{-~]/);function V(e){return e!==null&&e<-2}function oe(e){return e!==null&&(e<0||e===32)}function te(e){return e===-2||e===-1||e===32}function Ka(e){return xs(e)||ll(e)}const Ct=dt(/\s/);function dt(e){return t;function t(a){return a!==null&&a>-1&&e.test(String.fromCharCode(a))}}function pt(e){const t=[];let a=-1,r=0,n=0;for(;++a55295&&s<57344){const o=e.charCodeAt(a+1);s<56320&&o>56319&&o<57344?(i=String.fromCharCode(s,o),n=1):i="�"}else i=String.fromCharCode(s);i&&(t.push(e.slice(r,a),encodeURIComponent(i)),r=a+n+1,i=""),n&&(a+=n,n=0)}return t.join("")+e.slice(r)}function G(e,t,a,r){const n=r?r-1:Number.POSITIVE_INFINITY;let s=0;return i;function i(u){return te(u)?(e.enter(a),o(u)):t(u)}function o(u){return te(u)&&s++i))return;const D=t.events.length;let j=D,q,x;for(;j--;)if(t.events[j][0]==="exit"&&t.events[j][1].type==="chunkFlow"){if(q){x=t.events[j][1].end;break}q=!0}for(T(r),d=D;dL;){const N=a[M];t.containerState=N[1],N[0].exit.call(t,e)}a.length=L}function S(){n.write([null]),s=void 0,n=void 0,t.containerState._closeFlow=void 0}}function gl(e,t,a){return G(e,e.attempt(this.parser.constructs.document,t,a),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function va(e){if(e===null||oe(e)||Ct(e))return 1;if(Ka(e))return 2}function Ja(e,t,a){const r=[];let n=-1;for(;++n1&&e[a][1].end.offset-e[a][1].start.offset>1?2:1;const h=Object.assign({},e[r][1].end),f=Object.assign({},e[a][1].start);si(h,-u),si(f,u),i={type:u>1?"strongSequence":"emphasisSequence",start:h,end:Object.assign({},e[r][1].end)},o={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[a][1].start),end:f},s={type:u>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[a][1].start)},n={type:u>1?"strong":"emphasis",start:Object.assign({},i.start),end:Object.assign({},o.end)},e[r][1].end=Object.assign({},i.start),e[a][1].start=Object.assign({},o.end),l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=Le(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=Le(l,[["enter",n,t],["enter",i,t],["exit",i,t],["enter",s,t]]),l=Le(l,Ja(t.parser.constructs.insideSpan.null,e.slice(r+1,a),t)),l=Le(l,[["exit",s,t],["enter",o,t],["exit",o,t],["exit",n,t]]),e[a][1].end.offset-e[a][1].start.offset?(p=2,l=Le(l,[["enter",e[a][1],t],["exit",e[a][1],t]])):p=0,Ne(e,r-1,a-r+3,l),a=r+l.length-p-2;break}}for(a=-1;++a0&&te(d)?G(e,S,"linePrefix",s+1)(d):S(d)}function S(d){return d===null||V(d)?e.check(oi,b,M)(d):(e.enter("codeFlowValue"),L(d))}function L(d){return d===null||V(d)?(e.exit("codeFlowValue"),S(d)):(e.consume(d),L)}function M(d){return e.exit("codeFenced"),t(d)}function N(d,D,j){let q=0;return x;function x(B){return d.enter("lineEnding"),d.consume(B),d.exit("lineEnding"),I}function I(B){return d.enter("codeFencedFence"),te(B)?G(d,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):P(B)}function P(B){return B===o?(d.enter("codeFencedFenceSequence"),Q(B)):j(B)}function Q(B){return B===o?(q++,d.consume(B),Q):q>=i?(d.exit("codeFencedFenceSequence"),te(B)?G(d,ee,"whitespace")(B):ee(B)):j(B)}function ee(B){return B===null||V(B)?(d.exit("codeFencedFence"),D(B)):j(B)}}}function Il(e,t,a){const r=this;return n;function n(i){return i===null?a(i):(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),s)}function s(i){return r.parser.lazy[r.now().line]?a(i):t(i)}}const gr={name:"codeIndented",tokenize:Nl},Sl={tokenize:Fl,partial:!0};function Nl(e,t,a){const r=this;return n;function n(l){return e.enter("codeIndented"),G(e,s,"linePrefix",5)(l)}function s(l){const p=r.events[r.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?i(l):a(l)}function i(l){return l===null?u(l):V(l)?e.attempt(Sl,i,u)(l):(e.enter("codeFlowValue"),o(l))}function o(l){return l===null||V(l)?(e.exit("codeFlowValue"),i(l)):(e.consume(l),o)}function u(l){return e.exit("codeIndented"),t(l)}}function Fl(e,t,a){const r=this;return n;function n(i){return r.parser.lazy[r.now().line]?a(i):V(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n):G(e,s,"linePrefix",5)(i)}function s(i){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):V(i)?n(i):a(i)}}const Ll={name:"codeText",tokenize:vl,resolve:Ol,previous:Rl};function Ol(e){let t=e.length-4,a=3,r,n;if((e[a][1].type==="lineEnding"||e[a][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=a;++r=4?t(i):e.interrupt(r.parser.constructs.flow,a,t)(i)}}function Ns(e,t,a,r,n,s,i,o,u){const l=u||Number.POSITIVE_INFINITY;let p=0;return h;function h(T){return T===60?(e.enter(r),e.enter(n),e.enter(s),e.consume(T),e.exit(s),f):T===null||T===32||T===41||Ra(T)?a(T):(e.enter(r),e.enter(i),e.enter(o),e.enter("chunkString",{contentType:"string"}),b(T))}function f(T){return T===62?(e.enter(s),e.consume(T),e.exit(s),e.exit(n),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),m(T))}function m(T){return T===62?(e.exit("chunkString"),e.exit(o),f(T)):T===null||T===60||V(T)?a(T):(e.consume(T),T===92?y:m)}function y(T){return T===60||T===62||T===92?(e.consume(T),m):m(T)}function b(T){return!p&&(T===null||T===41||oe(T))?(e.exit("chunkString"),e.exit(o),e.exit(i),e.exit(r),t(T)):p999||m===null||m===91||m===93&&!u||m===94&&!o&&"_hiddenFootnoteSupport"in i.parser.constructs?a(m):m===93?(e.exit(s),e.enter(n),e.consume(m),e.exit(n),e.exit(r),t):V(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),h(m))}function h(m){return m===null||m===91||m===93||V(m)||o++>999?(e.exit("chunkString"),p(m)):(e.consume(m),u||(u=!te(m)),m===92?f:h)}function f(m){return m===91||m===92||m===93?(e.consume(m),o++,h):h(m)}}function Ls(e,t,a,r,n,s){let i;return o;function o(f){return f===34||f===39||f===40?(e.enter(r),e.enter(n),e.consume(f),e.exit(n),i=f===40?41:f,u):a(f)}function u(f){return f===i?(e.enter(n),e.consume(f),e.exit(n),e.exit(r),t):(e.enter(s),l(f))}function l(f){return f===i?(e.exit(s),u(i)):f===null?a(f):V(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),G(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(f))}function p(f){return f===i||f===null||V(f)?(e.exit("chunkString"),l(f)):(e.consume(f),f===92?h:p)}function h(f){return f===i||f===92?(e.consume(f),p):p(f)}}function qe(e,t){let a;return r;function r(n){return V(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),a=!0,r):te(n)?G(e,r,a?"linePrefix":"lineSuffix")(n):t(n)}}const ql={name:"definition",tokenize:$l},Yl={tokenize:Wl,partial:!0};function $l(e,t,a){const r=this;let n;return s;function s(m){return e.enter("definition"),i(m)}function i(m){return Fs.call(r,e,o,a,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function o(m){return n=He(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),u):a(m)}function u(m){return oe(m)?qe(e,l)(m):l(m)}function l(m){return Ns(e,p,a,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function p(m){return e.attempt(Yl,h,h)(m)}function h(m){return te(m)?G(e,f,"whitespace")(m):f(m)}function f(m){return m===null||V(m)?(e.exit("definition"),r.parser.defined.push(n),t(m)):a(m)}}function Wl(e,t,a){return r;function r(o){return oe(o)?qe(e,n)(o):a(o)}function n(o){return Ls(e,s,a,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function s(o){return te(o)?G(e,i,"whitespace")(o):i(o)}function i(o){return o===null||V(o)?t(o):a(o)}}const Vl={name:"hardBreakEscape",tokenize:Gl};function Gl(e,t,a){return r;function r(s){return e.enter("hardBreakEscape"),e.consume(s),n}function n(s){return V(s)?(e.exit("hardBreakEscape"),t(s)):a(s)}}const Ql={name:"headingAtx",tokenize:Kl,resolve:Xl};function Xl(e,t){let a=e.length-2,r=3,n,s;return e[r][1].type==="whitespace"&&(r+=2),a-2>r&&e[a][1].type==="whitespace"&&(a-=2),e[a][1].type==="atxHeadingSequence"&&(r===a-1||a-4>r&&e[a-2][1].type==="whitespace")&&(a-=r+1===a?2:4),a>r&&(n={type:"atxHeadingText",start:e[r][1].start,end:e[a][1].end},s={type:"chunkText",start:e[r][1].start,end:e[a][1].end,contentType:"text"},Ne(e,r,a-r+1,[["enter",n,t],["enter",s,t],["exit",s,t],["exit",n,t]])),e}function Kl(e,t,a){let r=0;return n;function n(p){return e.enter("atxHeading"),s(p)}function s(p){return e.enter("atxHeadingSequence"),i(p)}function i(p){return p===35&&r++<6?(e.consume(p),i):p===null||oe(p)?(e.exit("atxHeadingSequence"),o(p)):a(p)}function o(p){return p===35?(e.enter("atxHeadingSequence"),u(p)):p===null||V(p)?(e.exit("atxHeading"),t(p)):te(p)?G(e,o,"whitespace")(p):(e.enter("atxHeadingText"),l(p))}function u(p){return p===35?(e.consume(p),u):(e.exit("atxHeadingSequence"),o(p))}function l(p){return p===null||p===35||oe(p)?(e.exit("atxHeadingText"),o(p)):(e.consume(p),l)}}const Jl=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ci=["pre","script","style","textarea"],Zl={name:"htmlFlow",tokenize:rf,resolveTo:af,concrete:!0},ef={tokenize:sf,partial:!0},tf={tokenize:nf,partial:!0};function af(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function rf(e,t,a){const r=this;let n,s,i,o,u;return l;function l(E){return p(E)}function p(E){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(E),h}function h(E){return E===33?(e.consume(E),f):E===47?(e.consume(E),s=!0,b):E===63?(e.consume(E),n=3,r.interrupt?t:w):we(E)?(e.consume(E),i=String.fromCharCode(E),C):a(E)}function f(E){return E===45?(e.consume(E),n=2,m):E===91?(e.consume(E),n=5,o=0,y):we(E)?(e.consume(E),n=4,r.interrupt?t:w):a(E)}function m(E){return E===45?(e.consume(E),r.interrupt?t:w):a(E)}function y(E){const Oe="CDATA[";return E===Oe.charCodeAt(o++)?(e.consume(E),o===Oe.length?r.interrupt?t:P:y):a(E)}function b(E){return we(E)?(e.consume(E),i=String.fromCharCode(E),C):a(E)}function C(E){if(E===null||E===47||E===62||oe(E)){const Oe=E===47,mt=i.toLowerCase();return!Oe&&!s&&ci.includes(mt)?(n=1,r.interrupt?t(E):P(E)):Jl.includes(i.toLowerCase())?(n=6,Oe?(e.consume(E),T):r.interrupt?t(E):P(E)):(n=7,r.interrupt&&!r.parser.lazy[r.now().line]?a(E):s?S(E):L(E))}return E===45||ye(E)?(e.consume(E),i+=String.fromCharCode(E),C):a(E)}function T(E){return E===62?(e.consume(E),r.interrupt?t:P):a(E)}function S(E){return te(E)?(e.consume(E),S):x(E)}function L(E){return E===47?(e.consume(E),x):E===58||E===95||we(E)?(e.consume(E),M):te(E)?(e.consume(E),L):x(E)}function M(E){return E===45||E===46||E===58||E===95||ye(E)?(e.consume(E),M):N(E)}function N(E){return E===61?(e.consume(E),d):te(E)?(e.consume(E),N):L(E)}function d(E){return E===null||E===60||E===61||E===62||E===96?a(E):E===34||E===39?(e.consume(E),u=E,D):te(E)?(e.consume(E),d):j(E)}function D(E){return E===u?(e.consume(E),u=null,q):E===null||V(E)?a(E):(e.consume(E),D)}function j(E){return E===null||E===34||E===39||E===47||E===60||E===61||E===62||E===96||oe(E)?N(E):(e.consume(E),j)}function q(E){return E===47||E===62||te(E)?L(E):a(E)}function x(E){return E===62?(e.consume(E),I):a(E)}function I(E){return E===null||V(E)?P(E):te(E)?(e.consume(E),I):a(E)}function P(E){return E===45&&n===2?(e.consume(E),Y):E===60&&n===1?(e.consume(E),A):E===62&&n===4?(e.consume(E),Te):E===63&&n===3?(e.consume(E),w):E===93&&n===5?(e.consume(E),ne):V(E)&&(n===6||n===7)?(e.exit("htmlFlowData"),e.check(ef,Fe,Q)(E)):E===null||V(E)?(e.exit("htmlFlowData"),Q(E)):(e.consume(E),P)}function Q(E){return e.check(tf,ee,Fe)(E)}function ee(E){return e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),B}function B(E){return E===null||V(E)?Q(E):(e.enter("htmlFlowData"),P(E))}function Y(E){return E===45?(e.consume(E),w):P(E)}function A(E){return E===47?(e.consume(E),i="",X):P(E)}function X(E){if(E===62){const Oe=i.toLowerCase();return ci.includes(Oe)?(e.consume(E),Te):P(E)}return we(E)&&i.length<8?(e.consume(E),i+=String.fromCharCode(E),X):P(E)}function ne(E){return E===93?(e.consume(E),w):P(E)}function w(E){return E===62?(e.consume(E),Te):E===45&&n===2?(e.consume(E),w):P(E)}function Te(E){return E===null||V(E)?(e.exit("htmlFlowData"),Fe(E)):(e.consume(E),Te)}function Fe(E){return e.exit("htmlFlow"),t(E)}}function nf(e,t,a){const r=this;return n;function n(i){return V(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),s):a(i)}function s(i){return r.parser.lazy[r.now().line]?a(i):t(i)}}function sf(e,t,a){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),e.attempt(ka,t,a)}}const of={name:"htmlText",tokenize:cf};function cf(e,t,a){const r=this;let n,s,i;return o;function o(w){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(w),u}function u(w){return w===33?(e.consume(w),l):w===47?(e.consume(w),N):w===63?(e.consume(w),L):we(w)?(e.consume(w),j):a(w)}function l(w){return w===45?(e.consume(w),p):w===91?(e.consume(w),s=0,y):we(w)?(e.consume(w),S):a(w)}function p(w){return w===45?(e.consume(w),m):a(w)}function h(w){return w===null?a(w):w===45?(e.consume(w),f):V(w)?(i=h,A(w)):(e.consume(w),h)}function f(w){return w===45?(e.consume(w),m):h(w)}function m(w){return w===62?Y(w):w===45?f(w):h(w)}function y(w){const Te="CDATA[";return w===Te.charCodeAt(s++)?(e.consume(w),s===Te.length?b:y):a(w)}function b(w){return w===null?a(w):w===93?(e.consume(w),C):V(w)?(i=b,A(w)):(e.consume(w),b)}function C(w){return w===93?(e.consume(w),T):b(w)}function T(w){return w===62?Y(w):w===93?(e.consume(w),T):b(w)}function S(w){return w===null||w===62?Y(w):V(w)?(i=S,A(w)):(e.consume(w),S)}function L(w){return w===null?a(w):w===63?(e.consume(w),M):V(w)?(i=L,A(w)):(e.consume(w),L)}function M(w){return w===62?Y(w):L(w)}function N(w){return we(w)?(e.consume(w),d):a(w)}function d(w){return w===45||ye(w)?(e.consume(w),d):D(w)}function D(w){return V(w)?(i=D,A(w)):te(w)?(e.consume(w),D):Y(w)}function j(w){return w===45||ye(w)?(e.consume(w),j):w===47||w===62||oe(w)?q(w):a(w)}function q(w){return w===47?(e.consume(w),Y):w===58||w===95||we(w)?(e.consume(w),x):V(w)?(i=q,A(w)):te(w)?(e.consume(w),q):Y(w)}function x(w){return w===45||w===46||w===58||w===95||ye(w)?(e.consume(w),x):I(w)}function I(w){return w===61?(e.consume(w),P):V(w)?(i=I,A(w)):te(w)?(e.consume(w),I):q(w)}function P(w){return w===null||w===60||w===61||w===62||w===96?a(w):w===34||w===39?(e.consume(w),n=w,Q):V(w)?(i=P,A(w)):te(w)?(e.consume(w),P):(e.consume(w),ee)}function Q(w){return w===n?(e.consume(w),n=void 0,B):w===null?a(w):V(w)?(i=Q,A(w)):(e.consume(w),Q)}function ee(w){return w===null||w===34||w===39||w===60||w===61||w===96?a(w):w===47||w===62||oe(w)?q(w):(e.consume(w),ee)}function B(w){return w===47||w===62||oe(w)?q(w):a(w)}function Y(w){return w===62?(e.consume(w),e.exit("htmlTextData"),e.exit("htmlText"),t):a(w)}function A(w){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),X}function X(w){return te(w)?G(e,ne,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):ne(w)}function ne(w){return e.enter("htmlTextData"),i(w)}}const un={name:"labelEnd",tokenize:pf,resolveTo:df,resolveAll:hf},uf={tokenize:mf},lf={tokenize:_f},ff={tokenize:gf};function hf(e){let t=-1;for(;++t=3&&(l===null||V(l))?(e.exit("thematicBreak"),t(l)):a(l)}function u(l){return l===n?(e.consume(l),r++,u):(e.exit("thematicBreakSequence"),te(l)?G(e,o,"whitespace")(l):o(l))}}const Ce={name:"list",tokenize:xf,continuation:{tokenize:Df},exit:If},Af={tokenize:Sf,partial:!0},Cf={tokenize:zf,partial:!0};function xf(e,t,a){const r=this,n=r.events[r.events.length-1];let s=n&&n[1].type==="linePrefix"?n[2].sliceSerialize(n[1],!0).length:0,i=0;return o;function o(m){const y=r.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!r.containerState.marker||m===r.containerState.marker:vr(m)){if(r.containerState.type||(r.containerState.type=y,e.enter(y,{_container:!0})),y==="listUnordered")return e.enter("listItemPrefix"),m===42||m===45?e.check(Fa,a,l)(m):l(m);if(!r.interrupt||m===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(m)}return a(m)}function u(m){return vr(m)&&++i<10?(e.consume(m),u):(!r.interrupt||i<2)&&(r.containerState.marker?m===r.containerState.marker:m===41||m===46)?(e.exit("listItemValue"),l(m)):a(m)}function l(m){return e.enter("listItemMarker"),e.consume(m),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||m,e.check(ka,r.interrupt?a:p,e.attempt(Af,f,h))}function p(m){return r.containerState.initialBlankLine=!0,s++,f(m)}function h(m){return te(m)?(e.enter("listItemPrefixWhitespace"),e.consume(m),e.exit("listItemPrefixWhitespace"),f):a(m)}function f(m){return r.containerState.size=s+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(m)}}function Df(e,t,a){const r=this;return r.containerState._closeFlow=void 0,e.check(ka,n,s);function n(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,G(e,t,"listItemIndent",r.containerState.size+1)(o)}function s(o){return r.containerState.furtherBlankLines||!te(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Cf,t,i)(o))}function i(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,G(e,e.attempt(Ce,t,a),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function zf(e,t,a){const r=this;return G(e,n,"listItemIndent",r.containerState.size+1);function n(s){const i=r.events[r.events.length-1];return i&&i[1].type==="listItemIndent"&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(s):a(s)}}function If(e){e.exit(this.containerState.type)}function Sf(e,t,a){const r=this;return G(e,n,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function n(s){const i=r.events[r.events.length-1];return!te(s)&&i&&i[1].type==="listItemPrefixWhitespace"?t(s):a(s)}}const ui={name:"setextUnderline",tokenize:Ff,resolveTo:Nf};function Nf(e,t){let a=e.length,r,n,s;for(;a--;)if(e[a][0]==="enter"){if(e[a][1].type==="content"){r=a;break}e[a][1].type==="paragraph"&&(n=a)}else e[a][1].type==="content"&&e.splice(a,1),!s&&e[a][1].type==="definition"&&(s=a);const i={type:"setextHeading",start:Object.assign({},e[n][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[n][1].type="setextHeadingText",s?(e.splice(n,0,["enter",i,t]),e.splice(s+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[s][1].end)):e[r][1]=i,e.push(["exit",i,t]),e}function Ff(e,t,a){const r=this;let n;return s;function s(l){let p=r.events.length,h;for(;p--;)if(r.events[p][1].type!=="lineEnding"&&r.events[p][1].type!=="linePrefix"&&r.events[p][1].type!=="content"){h=r.events[p][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||h)?(e.enter("setextHeadingLine"),n=l,i(l)):a(l)}function i(l){return e.enter("setextHeadingLineSequence"),o(l)}function o(l){return l===n?(e.consume(l),o):(e.exit("setextHeadingLineSequence"),te(l)?G(e,u,"lineSuffix")(l):u(l))}function u(l){return l===null||V(l)?(e.exit("setextHeadingLine"),t(l)):a(l)}}const Lf={tokenize:Of};function Of(e){const t=this,a=e.attempt(ka,r,e.attempt(this.parser.constructs.flowInitial,n,G(e,e.attempt(this.parser.constructs.flow,n,e.attempt(Pl,n)),"linePrefix")));return a;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,a}function n(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,a}}const Rf={resolveAll:Rs()},vf=Os("string"),Bf=Os("text");function Os(e){return{tokenize:t,resolveAll:Rs(e==="text"?Pf:void 0)};function t(a){const r=this,n=this.parser.constructs[e],s=a.attempt(n,i,o);return i;function i(p){return l(p)?s(p):o(p)}function o(p){if(p===null){a.consume(p);return}return a.enter("data"),a.consume(p),u}function u(p){return l(p)?(a.exit("data"),s(p)):(a.consume(p),u)}function l(p){if(p===null)return!0;const h=n[p];let f=-1;if(h)for(;++f-1){const o=i[0];typeof o=="string"?i[0]=o.slice(r):i.shift()}s>0&&i.push(e[n].slice(0,s))}return i}function Uf(e,t){let a=-1;const r=[];let n;for(;++ai.map(i=>d[i]); +import{f as nn,n as Hn,s as ga,h as Qa,a as _u,_ as gu}from"./CgMG10Xn.js";import{aZ as ua,_ as Un,ar as jn,d as qt,D as Ke,a_ as yu,aS as gs,aV as ys,H as ku,aj as le,c as J,ai as At,n as ie,E as $,g as ue,at as la,ap as Xa,aq as ft,e as re,h as Me,w as ct,f as Ht,ak as $e,a$ as ks,k as Et,t as Be,F as Rt,ah as vt,ao as bs,b0 as bu,b1 as wu,r as Sa,b2 as Ea,b3 as Eu,b4 as Tu,b5 as Au,b6 as Cu,b7 as Ta,b8 as xu,b9 as Du,ba as zu,aL as Iu,ab as ws,p as Su,j as Nu,l as Fu,z as Lu,aM as Ou,aU as Ru,ax as vu,s as Bu}from"./5uFLRXWz.js";import{n as qn}from"./BneCoJRQ.js";import{g as sn}from"./Cpj98o6Y.js";import{_ as Pu}from"./XVY12RzN.js";function Yn(e){if(e)throw e}var Na=Object.prototype.hasOwnProperty,Es=Object.prototype.toString,$n=Object.defineProperty,Wn=Object.getOwnPropertyDescriptor,Vn=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Es.call(t)==="[object Array]"},Gn=function(t){if(!t||Es.call(t)!=="[object Object]")return!1;var a=Na.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&Na.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!a&&!r)return!1;var n;for(n in t);return typeof n>"u"||Na.call(t,n)},Qn=function(t,a){$n&&a.name==="__proto__"?$n(t,a.name,{enumerable:!0,configurable:!0,value:a.newValue,writable:!0}):t[a.name]=a.newValue},Xn=function(t,a){if(a==="__proto__")if(Na.call(t,a)){if(Wn)return Wn(t,a).value}else return;return t[a]},Mu=function e(){var t,a,r,n,s,i,o=arguments[0],u=1,l=arguments.length,p=!1;for(typeof o=="boolean"&&(p=o,o=arguments[1]||{},u=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});ui.length;let u;o&&i.push(n);try{u=e.apply(this,i)}catch(l){const p=l;if(o&&a)throw p;return n(p)}o||(u instanceof Promise?u.then(s,n):u instanceof Error?n(u):s(u))}function n(i,...o){a||(a=!0,t(i,...o))}function s(i){n(null,i)}}function aa(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Kn(e.position):"start"in e||"end"in e?Kn(e):"line"in e||"column"in e?Or(e):""}function Or(e){return Jn(e&&e.line)+":"+Jn(e&&e.column)}function Kn(e){return Or(e&&e.start)+"-"+Or(e&&e.end)}function Jn(e){return e&&typeof e=="number"?e:1}class ze extends Error{constructor(t,a,r){super(),typeof a=="string"&&(r=a,a=void 0);let n="",s={},i=!1;if(a&&("line"in a&&"column"in a?s={place:a}:"start"in a&&"end"in a?s={place:a}:"type"in a?s={ancestors:[a],place:a.position}:s={...a}),typeof t=="string"?n=t:!s.cause&&t&&(i=!0,n=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?s.ruleId=r:(s.source=r.slice(0,u),s.ruleId=r.slice(u+1))}if(!s.place&&s.ancestors&&s.ancestors){const u=s.ancestors[s.ancestors.length-1];u&&(s.place=u.position)}const o=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file,this.message=n,this.line=o?o.line:void 0,this.name=aa(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=i&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual,this.expected,this.note,this.url}}ze.prototype.file="";ze.prototype.name="";ze.prototype.reason="";ze.prototype.message="";ze.prototype.stack="";ze.prototype.column=void 0;ze.prototype.line=void 0;ze.prototype.ancestors=void 0;ze.prototype.cause=void 0;ze.prototype.fatal=void 0;ze.prototype.place=void 0;ze.prototype.ruleId=void 0;ze.prototype.source=void 0;const je={basename:ju,dirname:qu,extname:Yu,join:$u,sep:"/"};function ju(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');ya(e);let a=0,r=-1,n=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;n--;)if(e.codePointAt(n)===47){if(s){a=n+1;break}}else r<0&&(s=!0,r=n+1);return r<0?"":e.slice(a,r)}if(t===e)return"";let i=-1,o=t.length-1;for(;n--;)if(e.codePointAt(n)===47){if(s){a=n+1;break}}else i<0&&(s=!0,i=n+1),o>-1&&(e.codePointAt(n)===t.codePointAt(o--)?o<0&&(r=n):(o=-1,r=i));return a===r?r=i:r<0&&(r=e.length),e.slice(a,r)}function qu(e){if(ya(e),e.length===0)return".";let t=-1,a=e.length,r;for(;--a;)if(e.codePointAt(a)===47){if(r){t=a;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Yu(e){ya(e);let t=e.length,a=-1,r=0,n=-1,s=0,i;for(;t--;){const o=e.codePointAt(t);if(o===47){if(i){r=t+1;break}continue}a<0&&(i=!0,a=t+1),o===46?n<0?n=t:s!==1&&(s=1):n>-1&&(s=-1)}return n<0||a<0||s===0||s===1&&n===a-1&&n===r+1?"":e.slice(n,a)}function $u(...e){let t=-1,a;for(;++t0&&e.codePointAt(e.length-1)===47&&(a+="/"),t?"/"+a:a}function Vu(e,t){let a="",r=0,n=-1,s=0,i=-1,o,u;for(;++i<=e.length;){if(i2){if(u=a.lastIndexOf("/"),u!==a.length-1){u<0?(a="",r=0):(a=a.slice(0,u),r=a.length-1-a.lastIndexOf("/")),n=i,s=0;continue}}else if(a.length>0){a="",r=0,n=i,s=0;continue}}t&&(a=a.length>0?a+"/..":"..",r=2)}else a.length>0?a+="/"+e.slice(n+1,i):a=e.slice(n+1,i),r=i-n-1;n=i,s=0}else o===46&&s>-1?s++:s=-1}return a}function ya(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Gu={cwd:Qu};function Qu(){return"/"}function Rr(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Xu(e){if(typeof e=="string")e=new URL(e);else if(!Rr(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Ku(e)}function Ku(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let a=-1;for(;++a0){let[m,...y]=p;const b=r[f][1];Lr(b)&&Lr(m)&&(m=lr(!0,b,m)),r[f]=[l,m,...y]}}}}const al=new on().freeze();function pr(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function mr(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function _r(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function ei(e){if(!Lr(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function ti(e,t,a){if(!a)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Aa(e){return rl(e)?e:new Ju(e)}function rl(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function nl(e){return typeof e=="string"||il(e)}function il(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const sl={};function cn(e,t){const a=sl,r=typeof a.includeImageAlt=="boolean"?a.includeImageAlt:!0,n=typeof a.includeHtml=="boolean"?a.includeHtml:!0;return Ts(e,r,n)}function Ts(e,t,a){if(ol(e)){if("value"in e)return e.type==="html"&&!a?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return ai(e.children,t,a)}return Array.isArray(e)?ai(e,t,a):""}function ai(e,t,a){const r=[];let n=-1;for(;++nn?0:n+t:t=t>n?n:t,a=a>0?a:0,r.length<1e4)i=Array.from(r),i.unshift(t,a),e.splice(...i);else for(a&&e.splice(t,a);s0?(Ne(e,e.length,0,t),e):t}const ni={}.hasOwnProperty;function As(e){const t={};let a=-1;for(;++a13&&a<32||a>126&&a<160||a>55295&&a<57344||a>64975&&a<65008||(a&65535)===65535||(a&65535)===65534||a>1114111?"�":String.fromCodePoint(a)}function He(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ll=dt(new RegExp("\\p{P}","u")),we=dt(/[A-Za-z]/),ye=dt(/[\dA-Za-z]/),fl=dt(/[#-'*+\--9=?A-Z^-~]/);function Ra(e){return e!==null&&(e<32||e===127)}const vr=dt(/\d/),hl=dt(/[\dA-Fa-f]/),xs=dt(/[!-/:-@[-`{-~]/);function V(e){return e!==null&&e<-2}function oe(e){return e!==null&&(e<0||e===32)}function te(e){return e===-2||e===-1||e===32}function Ka(e){return xs(e)||ll(e)}const Ct=dt(/\s/);function dt(e){return t;function t(a){return a!==null&&a>-1&&e.test(String.fromCharCode(a))}}function pt(e){const t=[];let a=-1,r=0,n=0;for(;++a55295&&s<57344){const o=e.charCodeAt(a+1);s<56320&&o>56319&&o<57344?(i=String.fromCharCode(s,o),n=1):i="�"}else i=String.fromCharCode(s);i&&(t.push(e.slice(r,a),encodeURIComponent(i)),r=a+n+1,i=""),n&&(a+=n,n=0)}return t.join("")+e.slice(r)}function G(e,t,a,r){const n=r?r-1:Number.POSITIVE_INFINITY;let s=0;return i;function i(u){return te(u)?(e.enter(a),o(u)):t(u)}function o(u){return te(u)&&s++i))return;const D=t.events.length;let j=D,q,x;for(;j--;)if(t.events[j][0]==="exit"&&t.events[j][1].type==="chunkFlow"){if(q){x=t.events[j][1].end;break}q=!0}for(T(r),d=D;dL;){const N=a[M];t.containerState=N[1],N[0].exit.call(t,e)}a.length=L}function S(){n.write([null]),s=void 0,n=void 0,t.containerState._closeFlow=void 0}}function gl(e,t,a){return G(e,e.attempt(this.parser.constructs.document,t,a),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function va(e){if(e===null||oe(e)||Ct(e))return 1;if(Ka(e))return 2}function Ja(e,t,a){const r=[];let n=-1;for(;++n1&&e[a][1].end.offset-e[a][1].start.offset>1?2:1;const h=Object.assign({},e[r][1].end),f=Object.assign({},e[a][1].start);si(h,-u),si(f,u),i={type:u>1?"strongSequence":"emphasisSequence",start:h,end:Object.assign({},e[r][1].end)},o={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[a][1].start),end:f},s={type:u>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[a][1].start)},n={type:u>1?"strong":"emphasis",start:Object.assign({},i.start),end:Object.assign({},o.end)},e[r][1].end=Object.assign({},i.start),e[a][1].start=Object.assign({},o.end),l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=Le(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=Le(l,[["enter",n,t],["enter",i,t],["exit",i,t],["enter",s,t]]),l=Le(l,Ja(t.parser.constructs.insideSpan.null,e.slice(r+1,a),t)),l=Le(l,[["exit",s,t],["enter",o,t],["exit",o,t],["exit",n,t]]),e[a][1].end.offset-e[a][1].start.offset?(p=2,l=Le(l,[["enter",e[a][1],t],["exit",e[a][1],t]])):p=0,Ne(e,r-1,a-r+3,l),a=r+l.length-p-2;break}}for(a=-1;++a0&&te(d)?G(e,S,"linePrefix",s+1)(d):S(d)}function S(d){return d===null||V(d)?e.check(oi,b,M)(d):(e.enter("codeFlowValue"),L(d))}function L(d){return d===null||V(d)?(e.exit("codeFlowValue"),S(d)):(e.consume(d),L)}function M(d){return e.exit("codeFenced"),t(d)}function N(d,D,j){let q=0;return x;function x(B){return d.enter("lineEnding"),d.consume(B),d.exit("lineEnding"),I}function I(B){return d.enter("codeFencedFence"),te(B)?G(d,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):P(B)}function P(B){return B===o?(d.enter("codeFencedFenceSequence"),Q(B)):j(B)}function Q(B){return B===o?(q++,d.consume(B),Q):q>=i?(d.exit("codeFencedFenceSequence"),te(B)?G(d,ee,"whitespace")(B):ee(B)):j(B)}function ee(B){return B===null||V(B)?(d.exit("codeFencedFence"),D(B)):j(B)}}}function Il(e,t,a){const r=this;return n;function n(i){return i===null?a(i):(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),s)}function s(i){return r.parser.lazy[r.now().line]?a(i):t(i)}}const gr={name:"codeIndented",tokenize:Nl},Sl={tokenize:Fl,partial:!0};function Nl(e,t,a){const r=this;return n;function n(l){return e.enter("codeIndented"),G(e,s,"linePrefix",5)(l)}function s(l){const p=r.events[r.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?i(l):a(l)}function i(l){return l===null?u(l):V(l)?e.attempt(Sl,i,u)(l):(e.enter("codeFlowValue"),o(l))}function o(l){return l===null||V(l)?(e.exit("codeFlowValue"),i(l)):(e.consume(l),o)}function u(l){return e.exit("codeIndented"),t(l)}}function Fl(e,t,a){const r=this;return n;function n(i){return r.parser.lazy[r.now().line]?a(i):V(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n):G(e,s,"linePrefix",5)(i)}function s(i){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):V(i)?n(i):a(i)}}const Ll={name:"codeText",tokenize:vl,resolve:Ol,previous:Rl};function Ol(e){let t=e.length-4,a=3,r,n;if((e[a][1].type==="lineEnding"||e[a][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=a;++r=4?t(i):e.interrupt(r.parser.constructs.flow,a,t)(i)}}function Ns(e,t,a,r,n,s,i,o,u){const l=u||Number.POSITIVE_INFINITY;let p=0;return h;function h(T){return T===60?(e.enter(r),e.enter(n),e.enter(s),e.consume(T),e.exit(s),f):T===null||T===32||T===41||Ra(T)?a(T):(e.enter(r),e.enter(i),e.enter(o),e.enter("chunkString",{contentType:"string"}),b(T))}function f(T){return T===62?(e.enter(s),e.consume(T),e.exit(s),e.exit(n),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),m(T))}function m(T){return T===62?(e.exit("chunkString"),e.exit(o),f(T)):T===null||T===60||V(T)?a(T):(e.consume(T),T===92?y:m)}function y(T){return T===60||T===62||T===92?(e.consume(T),m):m(T)}function b(T){return!p&&(T===null||T===41||oe(T))?(e.exit("chunkString"),e.exit(o),e.exit(i),e.exit(r),t(T)):p999||m===null||m===91||m===93&&!u||m===94&&!o&&"_hiddenFootnoteSupport"in i.parser.constructs?a(m):m===93?(e.exit(s),e.enter(n),e.consume(m),e.exit(n),e.exit(r),t):V(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),h(m))}function h(m){return m===null||m===91||m===93||V(m)||o++>999?(e.exit("chunkString"),p(m)):(e.consume(m),u||(u=!te(m)),m===92?f:h)}function f(m){return m===91||m===92||m===93?(e.consume(m),o++,h):h(m)}}function Ls(e,t,a,r,n,s){let i;return o;function o(f){return f===34||f===39||f===40?(e.enter(r),e.enter(n),e.consume(f),e.exit(n),i=f===40?41:f,u):a(f)}function u(f){return f===i?(e.enter(n),e.consume(f),e.exit(n),e.exit(r),t):(e.enter(s),l(f))}function l(f){return f===i?(e.exit(s),u(i)):f===null?a(f):V(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),G(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(f))}function p(f){return f===i||f===null||V(f)?(e.exit("chunkString"),l(f)):(e.consume(f),f===92?h:p)}function h(f){return f===i||f===92?(e.consume(f),p):p(f)}}function qe(e,t){let a;return r;function r(n){return V(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),a=!0,r):te(n)?G(e,r,a?"linePrefix":"lineSuffix")(n):t(n)}}const ql={name:"definition",tokenize:$l},Yl={tokenize:Wl,partial:!0};function $l(e,t,a){const r=this;let n;return s;function s(m){return e.enter("definition"),i(m)}function i(m){return Fs.call(r,e,o,a,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function o(m){return n=He(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),u):a(m)}function u(m){return oe(m)?qe(e,l)(m):l(m)}function l(m){return Ns(e,p,a,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function p(m){return e.attempt(Yl,h,h)(m)}function h(m){return te(m)?G(e,f,"whitespace")(m):f(m)}function f(m){return m===null||V(m)?(e.exit("definition"),r.parser.defined.push(n),t(m)):a(m)}}function Wl(e,t,a){return r;function r(o){return oe(o)?qe(e,n)(o):a(o)}function n(o){return Ls(e,s,a,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function s(o){return te(o)?G(e,i,"whitespace")(o):i(o)}function i(o){return o===null||V(o)?t(o):a(o)}}const Vl={name:"hardBreakEscape",tokenize:Gl};function Gl(e,t,a){return r;function r(s){return e.enter("hardBreakEscape"),e.consume(s),n}function n(s){return V(s)?(e.exit("hardBreakEscape"),t(s)):a(s)}}const Ql={name:"headingAtx",tokenize:Kl,resolve:Xl};function Xl(e,t){let a=e.length-2,r=3,n,s;return e[r][1].type==="whitespace"&&(r+=2),a-2>r&&e[a][1].type==="whitespace"&&(a-=2),e[a][1].type==="atxHeadingSequence"&&(r===a-1||a-4>r&&e[a-2][1].type==="whitespace")&&(a-=r+1===a?2:4),a>r&&(n={type:"atxHeadingText",start:e[r][1].start,end:e[a][1].end},s={type:"chunkText",start:e[r][1].start,end:e[a][1].end,contentType:"text"},Ne(e,r,a-r+1,[["enter",n,t],["enter",s,t],["exit",s,t],["exit",n,t]])),e}function Kl(e,t,a){let r=0;return n;function n(p){return e.enter("atxHeading"),s(p)}function s(p){return e.enter("atxHeadingSequence"),i(p)}function i(p){return p===35&&r++<6?(e.consume(p),i):p===null||oe(p)?(e.exit("atxHeadingSequence"),o(p)):a(p)}function o(p){return p===35?(e.enter("atxHeadingSequence"),u(p)):p===null||V(p)?(e.exit("atxHeading"),t(p)):te(p)?G(e,o,"whitespace")(p):(e.enter("atxHeadingText"),l(p))}function u(p){return p===35?(e.consume(p),u):(e.exit("atxHeadingSequence"),o(p))}function l(p){return p===null||p===35||oe(p)?(e.exit("atxHeadingText"),o(p)):(e.consume(p),l)}}const Jl=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ci=["pre","script","style","textarea"],Zl={name:"htmlFlow",tokenize:rf,resolveTo:af,concrete:!0},ef={tokenize:sf,partial:!0},tf={tokenize:nf,partial:!0};function af(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function rf(e,t,a){const r=this;let n,s,i,o,u;return l;function l(E){return p(E)}function p(E){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(E),h}function h(E){return E===33?(e.consume(E),f):E===47?(e.consume(E),s=!0,b):E===63?(e.consume(E),n=3,r.interrupt?t:w):we(E)?(e.consume(E),i=String.fromCharCode(E),C):a(E)}function f(E){return E===45?(e.consume(E),n=2,m):E===91?(e.consume(E),n=5,o=0,y):we(E)?(e.consume(E),n=4,r.interrupt?t:w):a(E)}function m(E){return E===45?(e.consume(E),r.interrupt?t:w):a(E)}function y(E){const Oe="CDATA[";return E===Oe.charCodeAt(o++)?(e.consume(E),o===Oe.length?r.interrupt?t:P:y):a(E)}function b(E){return we(E)?(e.consume(E),i=String.fromCharCode(E),C):a(E)}function C(E){if(E===null||E===47||E===62||oe(E)){const Oe=E===47,mt=i.toLowerCase();return!Oe&&!s&&ci.includes(mt)?(n=1,r.interrupt?t(E):P(E)):Jl.includes(i.toLowerCase())?(n=6,Oe?(e.consume(E),T):r.interrupt?t(E):P(E)):(n=7,r.interrupt&&!r.parser.lazy[r.now().line]?a(E):s?S(E):L(E))}return E===45||ye(E)?(e.consume(E),i+=String.fromCharCode(E),C):a(E)}function T(E){return E===62?(e.consume(E),r.interrupt?t:P):a(E)}function S(E){return te(E)?(e.consume(E),S):x(E)}function L(E){return E===47?(e.consume(E),x):E===58||E===95||we(E)?(e.consume(E),M):te(E)?(e.consume(E),L):x(E)}function M(E){return E===45||E===46||E===58||E===95||ye(E)?(e.consume(E),M):N(E)}function N(E){return E===61?(e.consume(E),d):te(E)?(e.consume(E),N):L(E)}function d(E){return E===null||E===60||E===61||E===62||E===96?a(E):E===34||E===39?(e.consume(E),u=E,D):te(E)?(e.consume(E),d):j(E)}function D(E){return E===u?(e.consume(E),u=null,q):E===null||V(E)?a(E):(e.consume(E),D)}function j(E){return E===null||E===34||E===39||E===47||E===60||E===61||E===62||E===96||oe(E)?N(E):(e.consume(E),j)}function q(E){return E===47||E===62||te(E)?L(E):a(E)}function x(E){return E===62?(e.consume(E),I):a(E)}function I(E){return E===null||V(E)?P(E):te(E)?(e.consume(E),I):a(E)}function P(E){return E===45&&n===2?(e.consume(E),Y):E===60&&n===1?(e.consume(E),A):E===62&&n===4?(e.consume(E),Te):E===63&&n===3?(e.consume(E),w):E===93&&n===5?(e.consume(E),ne):V(E)&&(n===6||n===7)?(e.exit("htmlFlowData"),e.check(ef,Fe,Q)(E)):E===null||V(E)?(e.exit("htmlFlowData"),Q(E)):(e.consume(E),P)}function Q(E){return e.check(tf,ee,Fe)(E)}function ee(E){return e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),B}function B(E){return E===null||V(E)?Q(E):(e.enter("htmlFlowData"),P(E))}function Y(E){return E===45?(e.consume(E),w):P(E)}function A(E){return E===47?(e.consume(E),i="",X):P(E)}function X(E){if(E===62){const Oe=i.toLowerCase();return ci.includes(Oe)?(e.consume(E),Te):P(E)}return we(E)&&i.length<8?(e.consume(E),i+=String.fromCharCode(E),X):P(E)}function ne(E){return E===93?(e.consume(E),w):P(E)}function w(E){return E===62?(e.consume(E),Te):E===45&&n===2?(e.consume(E),w):P(E)}function Te(E){return E===null||V(E)?(e.exit("htmlFlowData"),Fe(E)):(e.consume(E),Te)}function Fe(E){return e.exit("htmlFlow"),t(E)}}function nf(e,t,a){const r=this;return n;function n(i){return V(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),s):a(i)}function s(i){return r.parser.lazy[r.now().line]?a(i):t(i)}}function sf(e,t,a){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),e.attempt(ka,t,a)}}const of={name:"htmlText",tokenize:cf};function cf(e,t,a){const r=this;let n,s,i;return o;function o(w){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(w),u}function u(w){return w===33?(e.consume(w),l):w===47?(e.consume(w),N):w===63?(e.consume(w),L):we(w)?(e.consume(w),j):a(w)}function l(w){return w===45?(e.consume(w),p):w===91?(e.consume(w),s=0,y):we(w)?(e.consume(w),S):a(w)}function p(w){return w===45?(e.consume(w),m):a(w)}function h(w){return w===null?a(w):w===45?(e.consume(w),f):V(w)?(i=h,A(w)):(e.consume(w),h)}function f(w){return w===45?(e.consume(w),m):h(w)}function m(w){return w===62?Y(w):w===45?f(w):h(w)}function y(w){const Te="CDATA[";return w===Te.charCodeAt(s++)?(e.consume(w),s===Te.length?b:y):a(w)}function b(w){return w===null?a(w):w===93?(e.consume(w),C):V(w)?(i=b,A(w)):(e.consume(w),b)}function C(w){return w===93?(e.consume(w),T):b(w)}function T(w){return w===62?Y(w):w===93?(e.consume(w),T):b(w)}function S(w){return w===null||w===62?Y(w):V(w)?(i=S,A(w)):(e.consume(w),S)}function L(w){return w===null?a(w):w===63?(e.consume(w),M):V(w)?(i=L,A(w)):(e.consume(w),L)}function M(w){return w===62?Y(w):L(w)}function N(w){return we(w)?(e.consume(w),d):a(w)}function d(w){return w===45||ye(w)?(e.consume(w),d):D(w)}function D(w){return V(w)?(i=D,A(w)):te(w)?(e.consume(w),D):Y(w)}function j(w){return w===45||ye(w)?(e.consume(w),j):w===47||w===62||oe(w)?q(w):a(w)}function q(w){return w===47?(e.consume(w),Y):w===58||w===95||we(w)?(e.consume(w),x):V(w)?(i=q,A(w)):te(w)?(e.consume(w),q):Y(w)}function x(w){return w===45||w===46||w===58||w===95||ye(w)?(e.consume(w),x):I(w)}function I(w){return w===61?(e.consume(w),P):V(w)?(i=I,A(w)):te(w)?(e.consume(w),I):q(w)}function P(w){return w===null||w===60||w===61||w===62||w===96?a(w):w===34||w===39?(e.consume(w),n=w,Q):V(w)?(i=P,A(w)):te(w)?(e.consume(w),P):(e.consume(w),ee)}function Q(w){return w===n?(e.consume(w),n=void 0,B):w===null?a(w):V(w)?(i=Q,A(w)):(e.consume(w),Q)}function ee(w){return w===null||w===34||w===39||w===60||w===61||w===96?a(w):w===47||w===62||oe(w)?q(w):(e.consume(w),ee)}function B(w){return w===47||w===62||oe(w)?q(w):a(w)}function Y(w){return w===62?(e.consume(w),e.exit("htmlTextData"),e.exit("htmlText"),t):a(w)}function A(w){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),X}function X(w){return te(w)?G(e,ne,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):ne(w)}function ne(w){return e.enter("htmlTextData"),i(w)}}const un={name:"labelEnd",tokenize:pf,resolveTo:df,resolveAll:hf},uf={tokenize:mf},lf={tokenize:_f},ff={tokenize:gf};function hf(e){let t=-1;for(;++t=3&&(l===null||V(l))?(e.exit("thematicBreak"),t(l)):a(l)}function u(l){return l===n?(e.consume(l),r++,u):(e.exit("thematicBreakSequence"),te(l)?G(e,o,"whitespace")(l):o(l))}}const Ce={name:"list",tokenize:xf,continuation:{tokenize:Df},exit:If},Af={tokenize:Sf,partial:!0},Cf={tokenize:zf,partial:!0};function xf(e,t,a){const r=this,n=r.events[r.events.length-1];let s=n&&n[1].type==="linePrefix"?n[2].sliceSerialize(n[1],!0).length:0,i=0;return o;function o(m){const y=r.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!r.containerState.marker||m===r.containerState.marker:vr(m)){if(r.containerState.type||(r.containerState.type=y,e.enter(y,{_container:!0})),y==="listUnordered")return e.enter("listItemPrefix"),m===42||m===45?e.check(Fa,a,l)(m):l(m);if(!r.interrupt||m===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(m)}return a(m)}function u(m){return vr(m)&&++i<10?(e.consume(m),u):(!r.interrupt||i<2)&&(r.containerState.marker?m===r.containerState.marker:m===41||m===46)?(e.exit("listItemValue"),l(m)):a(m)}function l(m){return e.enter("listItemMarker"),e.consume(m),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||m,e.check(ka,r.interrupt?a:p,e.attempt(Af,f,h))}function p(m){return r.containerState.initialBlankLine=!0,s++,f(m)}function h(m){return te(m)?(e.enter("listItemPrefixWhitespace"),e.consume(m),e.exit("listItemPrefixWhitespace"),f):a(m)}function f(m){return r.containerState.size=s+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(m)}}function Df(e,t,a){const r=this;return r.containerState._closeFlow=void 0,e.check(ka,n,s);function n(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,G(e,t,"listItemIndent",r.containerState.size+1)(o)}function s(o){return r.containerState.furtherBlankLines||!te(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Cf,t,i)(o))}function i(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,G(e,e.attempt(Ce,t,a),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function zf(e,t,a){const r=this;return G(e,n,"listItemIndent",r.containerState.size+1);function n(s){const i=r.events[r.events.length-1];return i&&i[1].type==="listItemIndent"&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(s):a(s)}}function If(e){e.exit(this.containerState.type)}function Sf(e,t,a){const r=this;return G(e,n,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function n(s){const i=r.events[r.events.length-1];return!te(s)&&i&&i[1].type==="listItemPrefixWhitespace"?t(s):a(s)}}const ui={name:"setextUnderline",tokenize:Ff,resolveTo:Nf};function Nf(e,t){let a=e.length,r,n,s;for(;a--;)if(e[a][0]==="enter"){if(e[a][1].type==="content"){r=a;break}e[a][1].type==="paragraph"&&(n=a)}else e[a][1].type==="content"&&e.splice(a,1),!s&&e[a][1].type==="definition"&&(s=a);const i={type:"setextHeading",start:Object.assign({},e[n][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[n][1].type="setextHeadingText",s?(e.splice(n,0,["enter",i,t]),e.splice(s+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[s][1].end)):e[r][1]=i,e.push(["exit",i,t]),e}function Ff(e,t,a){const r=this;let n;return s;function s(l){let p=r.events.length,h;for(;p--;)if(r.events[p][1].type!=="lineEnding"&&r.events[p][1].type!=="linePrefix"&&r.events[p][1].type!=="content"){h=r.events[p][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||h)?(e.enter("setextHeadingLine"),n=l,i(l)):a(l)}function i(l){return e.enter("setextHeadingLineSequence"),o(l)}function o(l){return l===n?(e.consume(l),o):(e.exit("setextHeadingLineSequence"),te(l)?G(e,u,"lineSuffix")(l):u(l))}function u(l){return l===null||V(l)?(e.exit("setextHeadingLine"),t(l)):a(l)}}const Lf={tokenize:Of};function Of(e){const t=this,a=e.attempt(ka,r,e.attempt(this.parser.constructs.flowInitial,n,G(e,e.attempt(this.parser.constructs.flow,n,e.attempt(Pl,n)),"linePrefix")));return a;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,a}function n(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,a}}const Rf={resolveAll:Rs()},vf=Os("string"),Bf=Os("text");function Os(e){return{tokenize:t,resolveAll:Rs(e==="text"?Pf:void 0)};function t(a){const r=this,n=this.parser.constructs[e],s=a.attempt(n,i,o);return i;function i(p){return l(p)?s(p):o(p)}function o(p){if(p===null){a.consume(p);return}return a.enter("data"),a.consume(p),u}function u(p){return l(p)?(a.exit("data"),s(p)):(a.consume(p),u)}function l(p){if(p===null)return!0;const h=n[p];let f=-1;if(h)for(;++f-1){const o=i[0];typeof o=="string"?i[0]=o.slice(r):i.shift()}s>0&&i.push(e[n].slice(0,s))}return i}function Uf(e,t){let a=-1;const r=[];let n;for(;++a0){const Re=K.tokenStack[K.tokenStack.length-1];(Re[1]||fi).call(K,void 0,Re[0])}for(U.position={start:it(R.length>0?R[0][1].start:{line:1,column:1,offset:0}),end:it(R.length>0?R[R.length-2][1].end:{line:1,column:1,offset:0})},se=-1;++se0&&!a&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),a}const AP={tokenize:FP,partial:!0};function CP(){return{document:{91:{tokenize:IP,continuation:{tokenize:SP},exit:NP}},text:{91:{tokenize:zP},93:{add:"after",tokenize:xP,resolveTo:DP}}}}function xP(e,t,a){const r=this;let n=r.events.length;const s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i;for(;n--;){const u=r.events[n][1];if(u.type==="labelImage"){i=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return o;function o(u){if(!i||!i._balanced)return a(u);const l=He(r.sliceSerialize({start:i.end,end:r.now()}));return l.codePointAt(0)!==94||!s.includes(l.slice(1))?a(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function DP(e,t){let a=e.length;for(;a--;)if(e[a][1].type==="labelImage"&&e[a][0]==="enter"){e[a][1];break}e[a+1][1].type="data",e[a+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[a+3][1].start),end:Object.assign({},e[e.length-1][1].end)},n={type:"gfmFootnoteCallMarker",start:Object.assign({},e[a+3][1].end),end:Object.assign({},e[a+3][1].end)};n.end.column++,n.end.offset++,n.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},n.end),end:Object.assign({},e[e.length-1][1].start)},i={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},o=[e[a+1],e[a+2],["enter",r,t],e[a+3],e[a+4],["enter",n,t],["exit",n,t],["enter",s,t],["enter",i,t],["exit",i,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(a,e.length-a+1,...o),e}function zP(e,t,a){const r=this,n=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s=0,i;return o;function o(h){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),u}function u(h){return h!==94?a(h):(e.enter("gfmFootnoteCallMarker"),e.consume(h),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(h){if(s>999||h===93&&!i||h===null||h===91||oe(h))return a(h);if(h===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return n.includes(He(r.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):a(h)}return oe(h)||(i=!0),s++,e.consume(h),h===92?p:l}function p(h){return h===91||h===92||h===93?(e.consume(h),s++,l):l(h)}}function IP(e,t,a){const r=this,n=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s,i=0,o;return u;function u(y){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionLabelMarker"),l}function l(y){return y===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",p):a(y)}function p(y){if(i>999||y===93&&!o||y===null||y===91||oe(y))return a(y);if(y===93){e.exit("chunkString");const b=e.exit("gfmFootnoteDefinitionLabelString");return s=He(r.sliceSerialize(b)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return oe(y)||(o=!0),i++,e.consume(y),y===92?h:p}function h(y){return y===91||y===92||y===93?(e.consume(y),i++,p):p(y)}function f(y){return y===58?(e.enter("definitionMarker"),e.consume(y),e.exit("definitionMarker"),n.includes(s)||n.push(s),G(e,m,"gfmFootnoteDefinitionWhitespace")):a(y)}function m(y){return t(y)}}function SP(e,t,a){return e.check(ka,t,e.attempt(AP,t,a))}function NP(e){e.exit("gfmFootnoteDefinition")}function FP(e,t,a){const r=this;return G(e,n,"gfmFootnoteDefinitionIndent",5);function n(s){const i=r.events[r.events.length-1];return i&&i[1].type==="gfmFootnoteDefinitionIndent"&&i[2].sliceSerialize(i[1],!0).length===4?t(s):a(s)}}function LP(e){let a=(e||{}).singleTilde;const r={tokenize:s,resolveAll:n};return a==null&&(a=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function n(i,o){let u=-1;for(;++u1?u(y):(i.consume(y),h++,m);if(h<2&&!a)return u(y);const C=i.exit("strikethroughSequenceTemporary"),T=va(y);return C._open=!T||T===2&&!!b,C._close=!b||b===2&&!!T,o(y)}}}class OP{constructor(){this.map=[]}add(t,a,r){RP(this,t,a,r)}consume(t){if(this.map.sort(function(s,i){return s[0]-i[0]}),this.map.length===0)return;let a=this.map.length;const r=[];for(;a>0;)a-=1,r.push(t.slice(this.map[a][0]+this.map[a][1]),this.map[a][2]),t.length=this.map[a][0];r.push([...t]),t.length=0;let n=r.pop();for(;n;)t.push(...n),n=r.pop();this.map.length=0}}function RP(e,t,a,r){let n=0;if(!(a===0&&r.length===0)){for(;n-1;){const ee=r.events[I][1].type;if(ee==="lineEnding"||ee==="linePrefix")I--;else break}const P=I>-1?r.events[I][1].type:null,Q=P==="tableHead"||P==="tableRow"?d:u;return Q===d&&r.parser.lazy[r.now().line]?a(x):Q(x)}function u(x){return e.enter("tableHead"),e.enter("tableRow"),l(x)}function l(x){return x===124||(i=!0,s+=1),p(x)}function p(x){return x===null?a(x):V(x)?s>1?(s=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),m):a(x):te(x)?G(e,p,"whitespace")(x):(s+=1,i&&(i=!1,n+=1),x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),i=!0,p):(e.enter("data"),h(x)))}function h(x){return x===null||x===124||oe(x)?(e.exit("data"),p(x)):(e.consume(x),x===92?f:h)}function f(x){return x===92||x===124?(e.consume(x),h):h(x)}function m(x){return r.interrupt=!1,r.parser.lazy[r.now().line]?a(x):(e.enter("tableDelimiterRow"),i=!1,te(x)?G(e,y,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):y(x))}function y(x){return x===45||x===58?C(x):x===124?(i=!0,e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),b):N(x)}function b(x){return te(x)?G(e,C,"whitespace")(x):C(x)}function C(x){return x===58?(s+=1,i=!0,e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),T):x===45?(s+=1,T(x)):x===null||V(x)?M(x):N(x)}function T(x){return x===45?(e.enter("tableDelimiterFiller"),S(x)):N(x)}function S(x){return x===45?(e.consume(x),S):x===58?(i=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),L):(e.exit("tableDelimiterFiller"),L(x))}function L(x){return te(x)?G(e,M,"whitespace")(x):M(x)}function M(x){return x===124?y(x):x===null||V(x)?!i||n!==s?N(x):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(x)):N(x)}function N(x){return a(x)}function d(x){return e.enter("tableRow"),D(x)}function D(x){return x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),D):x===null||V(x)?(e.exit("tableRow"),t(x)):te(x)?G(e,D,"whitespace")(x):(e.enter("data"),j(x))}function j(x){return x===null||x===124||oe(x)?(e.exit("data"),D(x)):(e.consume(x),x===92?q:j)}function q(x){return x===92||x===124?(e.consume(x),j):j(x)}}function MP(e,t){let a=-1,r=!0,n=0,s=[0,0,0,0],i=[0,0,0,0],o=!1,u=0,l,p,h;const f=new OP;for(;++aa[2]+1){const y=a[2]+1,b=a[3]-a[2]-1;e.add(y,b,[])}}e.add(a[3]+1,0,[["exit",h,t]])}return n!==void 0&&(s.end=Object.assign({},Lt(t.events,n)),e.add(n,0,[["exit",s,t]]),s=void 0),s}function Zi(e,t,a,r,n){const s=[],i=Lt(t.events,a);n&&(n.end=Object.assign({},i),s.push(["exit",n,t])),r.end=Object.assign({},i),s.push(["exit",r,t]),e.add(a+1,0,s)}function Lt(e,t){const a=e[t],r=a[0]==="enter"?"start":"end";return a[1][r]}const HP={tokenize:jP};function UP(){return{text:{91:HP}}}function jP(e,t,a){const r=this;return n;function n(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?a(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),s)}function s(u){return oe(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),i):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),i):a(u)}function i(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):a(u)}function o(u){return V(u)?t(u):te(u)?e.check({tokenize:qP},t,a)(u):a(u)}}function qP(e,t,a){return G(e,r,"whitespace");function r(n){return n===null?a(n):t(n)}}function YP(e){return As([mP(),CP(),LP(e),BP(),UP()])}const $P={};function WP(e){const t=this,a=e||$P,r=t.data(),n=r.micromarkExtensions||(r.micromarkExtensions=[]),s=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),i=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);n.push(YP(a)),s.push(fP()),i.push(hP(a))}const VP=function(e,t,a,r,n){const s=Dn(t);return dc(e)?s.call(n,e,a,r):!1},Dn=function(e){if(e==null)return XP;if(typeof e=="string")return QP(e);if(typeof e=="object")return GP(e);if(typeof e=="function")return zn(e);throw new Error("Expected function, string, or array as `test`")};function GP(e){const t=[];let a=-1;for(;++a0&&(s.properties.rel=[...f]),m&&(s.properties.target=m),p){const b=Kt(t.contentProperties,s)||{};s.children.push({type:"element",tagName:"span",properties:Ze(b),children:Ze(p)})}}}})}}function Kt(e,t){return typeof e=="function"?e(t):e}const es={accept:"input",className:null,dropzone:null,htmlFor:"output",headers:["td","th"],itemProp:null,itemRef:null,itemType:null,ping:["a","area"],rel:["a","area","link"],sandbox:"iframe",sizes:"link"};function iM(){return function(e){const t=new Map,a=[];et(e,"element",function(s){let i;for(i in s.properties)if(Object.hasOwn(s.properties,i)){const o=s.properties[i];Object.hasOwn(es,i)&&VP(s,es[i])&&Array.isArray(o)&&r(i,o)}}),n();function r(s,i){let o=-1,u=t.get(s);for(u||(u=new Map,t.set(s,u));++o-1&&ss)return{line:i+1,column:s-(i>0?a[i-1]:0)+1,offset:s}}}function n(s){const i=s&&s.line,o=s&&s.column;if(typeof i=="number"&&typeof o=="number"&&!Number.isNaN(i)&&!Number.isNaN(o)&&i-1 in a){const u=(a[i-2]||0)+o-1||0;if(u>-1&&u=55296&&e<=57343}function OM(e){return e>=56320&&e<=57343}function RM(e,t){return(e-55296)*1024+9216+t}function wc(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Ec(e){return e>=64976&&e<=65007||LM.has(e)}var F;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(F=F||(F={}));const vM=65536;class BM{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=vM,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t){const{line:a,col:r,offset:n}=this;return{code:t,startLine:a,endLine:a,startCol:r,endCol:r,startOffset:n,endOffset:n}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const a=this.html.charCodeAt(this.pos+1);if(OM(a))return this.pos++,this._addGap(),RM(t,a)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,_.EOF;return this._err(F.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,a){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=a}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,a){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(a)return this.html.startsWith(t,this.pos);for(let r=0;r=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,_.EOF;const r=this.html.charCodeAt(a);return r===_.CARRIAGE_RETURN?_.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,_.EOF;let t=this.html.charCodeAt(this.pos);return t===_.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,_.LINE_FEED):t===_.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,bc(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===_.LINE_FEED||t===_.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){wc(t)?this._err(F.controlCharacterInInputStream):Ec(t)&&this._err(F.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos=0;a--)if(e.attrs[a].name===t)return e.attrs[a].value;return null}const st=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),PM=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var Ir;const MM=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),HM=(Ir=String.fromCodePoint)!==null&&Ir!==void 0?Ir:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function UM(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=MM.get(e))!==null&&t!==void 0?t:e}var me;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(me||(me={}));const jM=32;var Ye;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Ye||(Ye={}));function en(e){return e>=me.ZERO&&e<=me.NINE}function qM(e){return e>=me.UPPER_A&&e<=me.UPPER_F||e>=me.LOWER_A&&e<=me.LOWER_F}function YM(e){return e>=me.UPPER_A&&e<=me.UPPER_Z||e>=me.LOWER_A&&e<=me.LOWER_Z||en(e)}function $M(e){return e===me.EQUALS||YM(e)}var pe;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(pe||(pe={}));var bt;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(bt||(bt={}));class WM{constructor(t,a,r){this.decodeTree=t,this.emitCodePoint=a,this.errors=r,this.state=pe.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=bt.Strict}startEntity(t){this.decodeMode=t,this.state=pe.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,a){switch(this.state){case pe.EntityStart:return t.charCodeAt(a)===me.NUM?(this.state=pe.NumericStart,this.consumed+=1,this.stateNumericStart(t,a+1)):(this.state=pe.NamedEntity,this.stateNamedEntity(t,a));case pe.NumericStart:return this.stateNumericStart(t,a);case pe.NumericDecimal:return this.stateNumericDecimal(t,a);case pe.NumericHex:return this.stateNumericHex(t,a);case pe.NamedEntity:return this.stateNamedEntity(t,a)}}stateNumericStart(t,a){return a>=t.length?-1:(t.charCodeAt(a)|jM)===me.LOWER_X?(this.state=pe.NumericHex,this.consumed+=1,this.stateNumericHex(t,a+1)):(this.state=pe.NumericDecimal,this.stateNumericDecimal(t,a))}addToNumericResult(t,a,r,n){if(a!==r){const s=r-a;this.result=this.result*Math.pow(n,s)+parseInt(t.substr(a,s),n),this.consumed+=s}}stateNumericHex(t,a){const r=a;for(;a>14;for(;a>14,s!==0){if(i===me.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==bt.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:a,decodeTree:r}=this,n=(r[a]&Ye.VALUE_LENGTH)>>14;return this.emitNamedEntityData(a,n,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,a,r){const{decodeTree:n}=this;return this.emitCodePoint(a===1?n[t]&~Ye.VALUE_LENGTH:n[t+1],r),a===3&&this.emitCodePoint(n[t+2],r),r}end(){var t;switch(this.state){case pe.NamedEntity:return this.result!==0&&(this.decodeMode!==bt.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case pe.NumericDecimal:return this.emitNumericEntity(0,2);case pe.NumericHex:return this.emitNumericEntity(0,3);case pe.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case pe.EntityStart:return 0}}}function Ac(e){let t="";const a=new WM(e,r=>t+=HM(r));return function(n,s){let i=0,o=0;for(;(o=n.indexOf("&",o))>=0;){t+=n.slice(i,o),a.startEntity(s);const l=a.write(n,o+1);if(l<0){i=o+a.end();break}i=o+l,o=l===0?i+1:i}const u=t+n.slice(i);return t="",u}}function Cc(e,t,a,r){const n=(t&Ye.BRANCH_LENGTH)>>7,s=t&Ye.JUMP_TABLE;if(n===0)return s!==0&&r===s?a:-1;if(s){const u=r-s;return u<0||u>=n?-1:e[a+u]-1}let i=a,o=i+n-1;for(;i<=o;){const u=i+o>>>1,l=e[u];if(lr)o=u-1;else return e[u+n]}return-1}Ac(st);Ac(PM);var O;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(O=O||(O={}));var lt;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(lt=lt||(lt={}));var Se;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Se=Se||(Se={}));var z;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(z=z||(z={}));var c;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SECTION=94]="SECTION",e[e.SELECT=95]="SELECT",e[e.SOURCE=96]="SOURCE",e[e.SMALL=97]="SMALL",e[e.SPAN=98]="SPAN",e[e.STRIKE=99]="STRIKE",e[e.STRONG=100]="STRONG",e[e.STYLE=101]="STYLE",e[e.SUB=102]="SUB",e[e.SUMMARY=103]="SUMMARY",e[e.SUP=104]="SUP",e[e.TABLE=105]="TABLE",e[e.TBODY=106]="TBODY",e[e.TEMPLATE=107]="TEMPLATE",e[e.TEXTAREA=108]="TEXTAREA",e[e.TFOOT=109]="TFOOT",e[e.TD=110]="TD",e[e.TH=111]="TH",e[e.THEAD=112]="THEAD",e[e.TITLE=113]="TITLE",e[e.TR=114]="TR",e[e.TRACK=115]="TRACK",e[e.TT=116]="TT",e[e.U=117]="U",e[e.UL=118]="UL",e[e.SVG=119]="SVG",e[e.VAR=120]="VAR",e[e.WBR=121]="WBR",e[e.XMP=122]="XMP"})(c=c||(c={}));const VM=new Map([[z.A,c.A],[z.ADDRESS,c.ADDRESS],[z.ANNOTATION_XML,c.ANNOTATION_XML],[z.APPLET,c.APPLET],[z.AREA,c.AREA],[z.ARTICLE,c.ARTICLE],[z.ASIDE,c.ASIDE],[z.B,c.B],[z.BASE,c.BASE],[z.BASEFONT,c.BASEFONT],[z.BGSOUND,c.BGSOUND],[z.BIG,c.BIG],[z.BLOCKQUOTE,c.BLOCKQUOTE],[z.BODY,c.BODY],[z.BR,c.BR],[z.BUTTON,c.BUTTON],[z.CAPTION,c.CAPTION],[z.CENTER,c.CENTER],[z.CODE,c.CODE],[z.COL,c.COL],[z.COLGROUP,c.COLGROUP],[z.DD,c.DD],[z.DESC,c.DESC],[z.DETAILS,c.DETAILS],[z.DIALOG,c.DIALOG],[z.DIR,c.DIR],[z.DIV,c.DIV],[z.DL,c.DL],[z.DT,c.DT],[z.EM,c.EM],[z.EMBED,c.EMBED],[z.FIELDSET,c.FIELDSET],[z.FIGCAPTION,c.FIGCAPTION],[z.FIGURE,c.FIGURE],[z.FONT,c.FONT],[z.FOOTER,c.FOOTER],[z.FOREIGN_OBJECT,c.FOREIGN_OBJECT],[z.FORM,c.FORM],[z.FRAME,c.FRAME],[z.FRAMESET,c.FRAMESET],[z.H1,c.H1],[z.H2,c.H2],[z.H3,c.H3],[z.H4,c.H4],[z.H5,c.H5],[z.H6,c.H6],[z.HEAD,c.HEAD],[z.HEADER,c.HEADER],[z.HGROUP,c.HGROUP],[z.HR,c.HR],[z.HTML,c.HTML],[z.I,c.I],[z.IMG,c.IMG],[z.IMAGE,c.IMAGE],[z.INPUT,c.INPUT],[z.IFRAME,c.IFRAME],[z.KEYGEN,c.KEYGEN],[z.LABEL,c.LABEL],[z.LI,c.LI],[z.LINK,c.LINK],[z.LISTING,c.LISTING],[z.MAIN,c.MAIN],[z.MALIGNMARK,c.MALIGNMARK],[z.MARQUEE,c.MARQUEE],[z.MATH,c.MATH],[z.MENU,c.MENU],[z.META,c.META],[z.MGLYPH,c.MGLYPH],[z.MI,c.MI],[z.MO,c.MO],[z.MN,c.MN],[z.MS,c.MS],[z.MTEXT,c.MTEXT],[z.NAV,c.NAV],[z.NOBR,c.NOBR],[z.NOFRAMES,c.NOFRAMES],[z.NOEMBED,c.NOEMBED],[z.NOSCRIPT,c.NOSCRIPT],[z.OBJECT,c.OBJECT],[z.OL,c.OL],[z.OPTGROUP,c.OPTGROUP],[z.OPTION,c.OPTION],[z.P,c.P],[z.PARAM,c.PARAM],[z.PLAINTEXT,c.PLAINTEXT],[z.PRE,c.PRE],[z.RB,c.RB],[z.RP,c.RP],[z.RT,c.RT],[z.RTC,c.RTC],[z.RUBY,c.RUBY],[z.S,c.S],[z.SCRIPT,c.SCRIPT],[z.SECTION,c.SECTION],[z.SELECT,c.SELECT],[z.SOURCE,c.SOURCE],[z.SMALL,c.SMALL],[z.SPAN,c.SPAN],[z.STRIKE,c.STRIKE],[z.STRONG,c.STRONG],[z.STYLE,c.STYLE],[z.SUB,c.SUB],[z.SUMMARY,c.SUMMARY],[z.SUP,c.SUP],[z.TABLE,c.TABLE],[z.TBODY,c.TBODY],[z.TEMPLATE,c.TEMPLATE],[z.TEXTAREA,c.TEXTAREA],[z.TFOOT,c.TFOOT],[z.TD,c.TD],[z.TH,c.TH],[z.THEAD,c.THEAD],[z.TITLE,c.TITLE],[z.TR,c.TR],[z.TRACK,c.TRACK],[z.TT,c.TT],[z.U,c.U],[z.UL,c.UL],[z.SVG,c.SVG],[z.VAR,c.VAR],[z.WBR,c.WBR],[z.XMP,c.XMP]]);function $t(e){var t;return(t=VM.get(e))!==null&&t!==void 0?t:c.UNKNOWN}const H=c,GM={[O.HTML]:new Set([H.ADDRESS,H.APPLET,H.AREA,H.ARTICLE,H.ASIDE,H.BASE,H.BASEFONT,H.BGSOUND,H.BLOCKQUOTE,H.BODY,H.BR,H.BUTTON,H.CAPTION,H.CENTER,H.COL,H.COLGROUP,H.DD,H.DETAILS,H.DIR,H.DIV,H.DL,H.DT,H.EMBED,H.FIELDSET,H.FIGCAPTION,H.FIGURE,H.FOOTER,H.FORM,H.FRAME,H.FRAMESET,H.H1,H.H2,H.H3,H.H4,H.H5,H.H6,H.HEAD,H.HEADER,H.HGROUP,H.HR,H.HTML,H.IFRAME,H.IMG,H.INPUT,H.LI,H.LINK,H.LISTING,H.MAIN,H.MARQUEE,H.MENU,H.META,H.NAV,H.NOEMBED,H.NOFRAMES,H.NOSCRIPT,H.OBJECT,H.OL,H.P,H.PARAM,H.PLAINTEXT,H.PRE,H.SCRIPT,H.SECTION,H.SELECT,H.SOURCE,H.STYLE,H.SUMMARY,H.TABLE,H.TBODY,H.TD,H.TEMPLATE,H.TEXTAREA,H.TFOOT,H.TH,H.THEAD,H.TITLE,H.TR,H.TRACK,H.UL,H.WBR,H.XMP]),[O.MATHML]:new Set([H.MI,H.MO,H.MN,H.MS,H.MTEXT,H.ANNOTATION_XML]),[O.SVG]:new Set([H.TITLE,H.FOREIGN_OBJECT,H.DESC]),[O.XLINK]:new Set,[O.XML]:new Set,[O.XMLNS]:new Set};function xc(e){return e===H.H1||e===H.H2||e===H.H3||e===H.H4||e===H.H5||e===H.H6}z.STYLE,z.SCRIPT,z.XMP,z.IFRAME,z.NOEMBED,z.NOFRAMES,z.PLAINTEXT;const QM=new Map([[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);var g;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",e[e.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",e[e.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",e[e.HEXADEMICAL_CHARACTER_REFERENCE=76]="HEXADEMICAL_CHARACTER_REFERENCE",e[e.DECIMAL_CHARACTER_REFERENCE=77]="DECIMAL_CHARACTER_REFERENCE",e[e.NUMERIC_CHARACTER_REFERENCE_END=78]="NUMERIC_CHARACTER_REFERENCE_END"})(g||(g={}));const fe={DATA:g.DATA,RCDATA:g.RCDATA,RAWTEXT:g.RAWTEXT,SCRIPT_DATA:g.SCRIPT_DATA,PLAINTEXT:g.PLAINTEXT,CDATA_SECTION:g.CDATA_SECTION};function ra(e){return e>=_.DIGIT_0&&e<=_.DIGIT_9}function ta(e){return e>=_.LATIN_CAPITAL_A&&e<=_.LATIN_CAPITAL_Z}function XM(e){return e>=_.LATIN_SMALL_A&&e<=_.LATIN_SMALL_Z}function ot(e){return XM(e)||ta(e)}function tn(e){return ot(e)||ra(e)}function Dc(e){return e>=_.LATIN_CAPITAL_A&&e<=_.LATIN_CAPITAL_F}function zc(e){return e>=_.LATIN_SMALL_A&&e<=_.LATIN_SMALL_F}function KM(e){return ra(e)||Dc(e)||zc(e)}function za(e){return e+32}function Ic(e){return e===_.SPACE||e===_.LINE_FEED||e===_.TABULATION||e===_.FORM_FEED}function JM(e){return e===_.EQUALS_SIGN||tn(e)}function is(e){return Ic(e)||e===_.SOLIDUS||e===_.GREATER_THAN_SIGN}class ZM{constructor(t,a){this.options=t,this.handler=a,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=g.DATA,this.returnState=g.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new BM(a),this.currentLocation=this.getCurrentLocation(-1)}_err(t){var a,r;(r=(a=this.handler).onParseError)===null||r===void 0||r.call(a,this.preprocessor.getError(t))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,a,r){this.active=!0,this.preprocessor.write(t,a),this._runParsingLoop(),this.paused||r==null||r()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this._unconsume(this.consumedAfterSnapshot),this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(t){this.consumedAfterSnapshot-=t,this.preprocessor.retreat(t)}_reconsumeInState(t,a){this.state=t,this._callState(a)}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let a=0;a0&&this._err(F.endTagWithAttributes),t.selfClosing&&this._err(F.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case Z.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Z.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Z.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:Z.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,a){if(this.currentCharacterToken)if(this.currentCharacterToken.type!==t)this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();else{this.currentCharacterToken.chars+=a;return}this._createCharacterToken(t,a)}_emitCodePoint(t){const a=Ic(t)?Z.WHITESPACE_CHARACTER:t===_.NULL?Z.NULL_CHARACTER:Z.CHARACTER;this._appendCharToCurrentCharacterToken(a,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Z.CHARACTER,t)}_matchNamedCharacterReference(t){let a=null,r=0,n=!1;for(let s=0,i=st[0];s>=0&&(s=Cc(st,i,s+1,t),!(s<0));t=this._consume()){r+=1,i=st[s];const o=i&Ye.VALUE_LENGTH;if(o){const u=(o>>14)-1;if(t!==_.SEMICOLON&&this._isCharacterReferenceInAttribute()&&JM(this.preprocessor.peek(1))?(a=[_.AMPERSAND],s+=u):(a=u===0?[st[s]&~Ye.VALUE_LENGTH]:u===1?[st[++s]]:[st[++s],st[++s]],r=0,n=t!==_.SEMICOLON),u===0){this._consume();break}}}return this._unconsume(r),n&&!this.preprocessor.endOfChunkHit&&this._err(F.missingSemicolonAfterCharacterReference),this._unconsume(1),a}_isCharacterReferenceInAttribute(){return this.returnState===g.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===g.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===g.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case g.DATA:{this._stateData(t);break}case g.RCDATA:{this._stateRcdata(t);break}case g.RAWTEXT:{this._stateRawtext(t);break}case g.SCRIPT_DATA:{this._stateScriptData(t);break}case g.PLAINTEXT:{this._statePlaintext(t);break}case g.TAG_OPEN:{this._stateTagOpen(t);break}case g.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case g.TAG_NAME:{this._stateTagName(t);break}case g.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case g.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case g.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case g.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case g.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case g.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case g.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case g.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case g.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case g.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case g.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case g.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case g.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case g.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case g.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case g.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case g.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case g.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case g.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case g.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case g.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case g.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case g.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case g.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case g.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case g.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case g.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case g.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case g.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case g.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case g.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case g.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case g.BOGUS_COMMENT:{this._stateBogusComment(t);break}case g.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case g.COMMENT_START:{this._stateCommentStart(t);break}case g.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case g.COMMENT:{this._stateComment(t);break}case g.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case g.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case g.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case g.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case g.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case g.COMMENT_END:{this._stateCommentEnd(t);break}case g.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case g.DOCTYPE:{this._stateDoctype(t);break}case g.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case g.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case g.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case g.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case g.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case g.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case g.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case g.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case g.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case g.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case g.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case g.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case g.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case g.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case g.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case g.CDATA_SECTION:{this._stateCdataSection(t);break}case g.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case g.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case g.CHARACTER_REFERENCE:{this._stateCharacterReference(t);break}case g.NAMED_CHARACTER_REFERENCE:{this._stateNamedCharacterReference(t);break}case g.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}case g.NUMERIC_CHARACTER_REFERENCE:{this._stateNumericCharacterReference(t);break}case g.HEXADEMICAL_CHARACTER_REFERENCE_START:{this._stateHexademicalCharacterReferenceStart(t);break}case g.HEXADEMICAL_CHARACTER_REFERENCE:{this._stateHexademicalCharacterReference(t);break}case g.DECIMAL_CHARACTER_REFERENCE:{this._stateDecimalCharacterReference(t);break}case g.NUMERIC_CHARACTER_REFERENCE_END:{this._stateNumericCharacterReferenceEnd(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case _.LESS_THAN_SIGN:{this.state=g.TAG_OPEN;break}case _.AMPERSAND:{this.returnState=g.DATA,this.state=g.CHARACTER_REFERENCE;break}case _.NULL:{this._err(F.unexpectedNullCharacter),this._emitCodePoint(t);break}case _.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case _.AMPERSAND:{this.returnState=g.RCDATA,this.state=g.CHARACTER_REFERENCE;break}case _.LESS_THAN_SIGN:{this.state=g.RCDATA_LESS_THAN_SIGN;break}case _.NULL:{this._err(F.unexpectedNullCharacter),this._emitChars(ce);break}case _.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case _.LESS_THAN_SIGN:{this.state=g.RAWTEXT_LESS_THAN_SIGN;break}case _.NULL:{this._err(F.unexpectedNullCharacter),this._emitChars(ce);break}case _.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case _.LESS_THAN_SIGN:{this.state=g.SCRIPT_DATA_LESS_THAN_SIGN;break}case _.NULL:{this._err(F.unexpectedNullCharacter),this._emitChars(ce);break}case _.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case _.NULL:{this._err(F.unexpectedNullCharacter),this._emitChars(ce);break}case _.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(ot(t))this._createStartTagToken(),this.state=g.TAG_NAME,this._stateTagName(t);else switch(t){case _.EXCLAMATION_MARK:{this.state=g.MARKUP_DECLARATION_OPEN;break}case _.SOLIDUS:{this.state=g.END_TAG_OPEN;break}case _.QUESTION_MARK:{this._err(F.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=g.BOGUS_COMMENT,this._stateBogusComment(t);break}case _.EOF:{this._err(F.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(F.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=g.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(ot(t))this._createEndTagToken(),this.state=g.TAG_NAME,this._stateTagName(t);else switch(t){case _.GREATER_THAN_SIGN:{this._err(F.missingEndTagName),this.state=g.DATA;break}case _.EOF:{this._err(F.eofBeforeTagName),this._emitChars("");break}case _.NULL:{this._err(F.unexpectedNullCharacter),this.state=g.SCRIPT_DATA_ESCAPED,this._emitChars(ce);break}case _.EOF:{this._err(F.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=g.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===_.SOLIDUS?this.state=g.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:ot(t)?(this._emitChars("<"),this.state=g.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=g.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){ot(t)?(this.state=g.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("");break}case _.NULL:{this._err(F.unexpectedNullCharacter),this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(ce);break}case _.EOF:{this._err(F.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===_.SOLIDUS?(this.state=g.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Ae.SCRIPT,!1)&&is(this.preprocessor.peek(Ae.SCRIPT.length))){this._emitCodePoint(t);for(let a=0;a1114111)this._err(F.characterReferenceOutsideUnicodeRange),this.charRefCode=_.REPLACEMENT_CHARACTER;else if(bc(this.charRefCode))this._err(F.surrogateCharacterReference),this.charRefCode=_.REPLACEMENT_CHARACTER;else if(Ec(this.charRefCode))this._err(F.noncharacterCharacterReference);else if(wc(this.charRefCode)||this.charRefCode===_.CARRIAGE_RETURN){this._err(F.controlCharacterReference);const a=QM.get(this.charRefCode);a!==void 0&&(this.charRefCode=a)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,t)}}const Sc=new Set([c.DD,c.DT,c.LI,c.OPTGROUP,c.OPTION,c.P,c.RB,c.RP,c.RT,c.RTC]),ss=new Set([...Sc,c.CAPTION,c.COLGROUP,c.TBODY,c.TD,c.TFOOT,c.TH,c.THEAD,c.TR]),Ia=new Map([[c.APPLET,O.HTML],[c.CAPTION,O.HTML],[c.HTML,O.HTML],[c.MARQUEE,O.HTML],[c.OBJECT,O.HTML],[c.TABLE,O.HTML],[c.TD,O.HTML],[c.TEMPLATE,O.HTML],[c.TH,O.HTML],[c.ANNOTATION_XML,O.MATHML],[c.MI,O.MATHML],[c.MN,O.MATHML],[c.MO,O.MATHML],[c.MS,O.MATHML],[c.MTEXT,O.MATHML],[c.DESC,O.SVG],[c.FOREIGN_OBJECT,O.SVG],[c.TITLE,O.SVG]]),e7=[c.H1,c.H2,c.H3,c.H4,c.H5,c.H6],t7=[c.TR,c.TEMPLATE,c.HTML],a7=[c.TBODY,c.TFOOT,c.THEAD,c.TEMPLATE,c.HTML],r7=[c.TABLE,c.TEMPLATE,c.HTML],n7=[c.TD,c.TH];class i7{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,a,r){this.treeAdapter=a,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=c.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===c.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===O.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,a){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=a,this.currentTagId=a,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,a,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,a){const r=this._indexOf(t);this.items[r]=a,r===this.stackTop&&(this.current=a)}insertAfter(t,a,r){const n=this._indexOf(t)+1;this.items.splice(n,0,a),this.tagIDs.splice(n,0,r),this.stackTop++,n===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,n===this.stackTop)}popUntilTagNamePopped(t){let a=this.stackTop+1;do a=this.tagIDs.lastIndexOf(t,a-1);while(a>0&&this.treeAdapter.getNamespaceURI(this.items[a])!==O.HTML);this.shortenToLength(a<0?0:a)}shortenToLength(t){for(;this.stackTop>=t;){const a=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(a,this.stackTop=0;r--)if(t.includes(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===a)return r;return-1}clearBackTo(t,a){const r=this._indexOfTagNames(t,a);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(r7,O.HTML)}clearBackToTableBodyContext(){this.clearBackTo(a7,O.HTML)}clearBackToTableRowContext(){this.clearBackTo(t7,O.HTML)}remove(t){const a=this._indexOf(t);a>=0&&(a===this.stackTop?this.pop():(this.items.splice(a,1),this.tagIDs.splice(a,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===c.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const a=this._indexOf(t)-1;return a>=0?this.items[a]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===c.HTML}hasInScope(t){for(let a=this.stackTop;a>=0;a--){const r=this.tagIDs[a],n=this.treeAdapter.getNamespaceURI(this.items[a]);if(r===t&&n===O.HTML)return!0;if(Ia.get(r)===n)return!1}return!0}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const a=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t]);if(xc(a)&&r===O.HTML)return!0;if(Ia.get(a)===r)return!1}return!0}hasInListItemScope(t){for(let a=this.stackTop;a>=0;a--){const r=this.tagIDs[a],n=this.treeAdapter.getNamespaceURI(this.items[a]);if(r===t&&n===O.HTML)return!0;if((r===c.UL||r===c.OL)&&n===O.HTML||Ia.get(r)===n)return!1}return!0}hasInButtonScope(t){for(let a=this.stackTop;a>=0;a--){const r=this.tagIDs[a],n=this.treeAdapter.getNamespaceURI(this.items[a]);if(r===t&&n===O.HTML)return!0;if(r===c.BUTTON&&n===O.HTML||Ia.get(r)===n)return!1}return!0}hasInTableScope(t){for(let a=this.stackTop;a>=0;a--){const r=this.tagIDs[a];if(this.treeAdapter.getNamespaceURI(this.items[a])===O.HTML){if(r===t)return!0;if(r===c.TABLE||r===c.TEMPLATE||r===c.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--){const a=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===O.HTML){if(a===c.TBODY||a===c.THEAD||a===c.TFOOT)return!0;if(a===c.TABLE||a===c.HTML)return!1}}return!0}hasInSelectScope(t){for(let a=this.stackTop;a>=0;a--){const r=this.tagIDs[a];if(this.treeAdapter.getNamespaceURI(this.items[a])===O.HTML){if(r===t)return!0;if(r!==c.OPTION&&r!==c.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;Sc.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;ss.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&ss.has(this.currentTagId);)this.pop()}}const Sr=3;var Pe;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Pe=Pe||(Pe={}));const os={type:Pe.Marker};class s7{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,a){const r=[],n=a.length,s=this.treeAdapter.getTagName(t),i=this.treeAdapter.getNamespaceURI(t);for(let o=0;o[i.name,i.value]));let s=0;for(let i=0;in.get(u.name)===u.value)&&(s+=1,s>=Sr&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(os)}pushElement(t,a){this._ensureNoahArkCondition(t),this.entries.unshift({type:Pe.Element,element:t,token:a})}insertElementAfterBookmark(t,a){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:Pe.Element,element:t,token:a})}removeEntry(t){const a=this.entries.indexOf(t);a>=0&&this.entries.splice(a,1)}clearToLastMarker(){const t=this.entries.indexOf(os);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){const a=this.entries.find(r=>r.type===Pe.Marker||this.treeAdapter.getTagName(r.element)===t);return a&&a.type===Pe.Element?a:null}getElementEntry(t){return this.entries.find(a=>a.type===Pe.Element&&a.element===t)}}function cs(e){return{nodeName:"#text",value:e,parentNode:null}}const Ot={createDocument(){return{nodeName:"#document",mode:Se.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,a){return{nodeName:e,tagName:e,attrs:a,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,a){const r=e.childNodes.indexOf(a);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,a,r){const n=e.childNodes.find(s=>s.nodeName==="#documentType");if(n)n.name=t,n.publicId=a,n.systemId=r;else{const s={nodeName:"#documentType",name:t,publicId:a,systemId:r,parentNode:null};Ot.appendChild(e,s)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const a=e.childNodes[e.childNodes.length-1];if(Ot.isTextNode(a)){a.value+=t;return}}Ot.appendChild(e,cs(t))},insertTextBefore(e,t,a){const r=e.childNodes[e.childNodes.indexOf(a)-1];r&&Ot.isTextNode(r)?r.value+=t:Ot.insertBefore(e,cs(t),a)},adoptAttributes(e,t){const a=new Set(e.attrs.map(r=>r.name));for(let r=0;re.startsWith(a))}function h7(e){return e.name===Nc&&e.publicId===null&&(e.systemId===null||e.systemId===o7)}function d7(e){if(e.name!==Nc)return Se.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===c7)return Se.QUIRKS;let{publicId:a}=e;if(a!==null){if(a=a.toLowerCase(),l7.has(a))return Se.QUIRKS;let r=t===null?u7:Fc;if(us(a,r))return Se.QUIRKS;if(r=t===null?Lc:f7,us(a,r))return Se.LIMITED_QUIRKS}return Se.NO_QUIRKS}const ls={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},p7="definitionurl",m7="definitionURL",_7=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),g7=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:O.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:O.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:O.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:O.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:O.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:O.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:O.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:O.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:O.XML}],["xml:space",{prefix:"xml",name:"space",namespace:O.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:O.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:O.XMLNS}]]),y7=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),k7=new Set([c.B,c.BIG,c.BLOCKQUOTE,c.BODY,c.BR,c.CENTER,c.CODE,c.DD,c.DIV,c.DL,c.DT,c.EM,c.EMBED,c.H1,c.H2,c.H3,c.H4,c.H5,c.H6,c.HEAD,c.HR,c.I,c.IMG,c.LI,c.LISTING,c.MENU,c.META,c.NOBR,c.OL,c.P,c.PRE,c.RUBY,c.S,c.SMALL,c.SPAN,c.STRONG,c.STRIKE,c.SUB,c.SUP,c.TABLE,c.TT,c.U,c.UL,c.VAR]);function b7(e){const t=e.tagID;return t===c.FONT&&e.attrs.some(({name:r})=>r===lt.COLOR||r===lt.SIZE||r===lt.FACE)||k7.has(t)}function Oc(e){for(let t=0;t0&&this._setContextModes(t,a)}onItemPop(t,a){var r,n;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(n=(r=this.treeAdapter).onItemPop)===null||n===void 0||n.call(r,t,this.openElements.current),a){let s,i;this.openElements.stackTop===0&&this.fragmentContext?(s=this.fragmentContext,i=this.fragmentContextID):{current:s,currentTagId:i}=this.openElements,this._setContextModes(s,i)}}_setContextModes(t,a){const r=t===this.document||this.treeAdapter.getNamespaceURI(t)===O.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(a,t)}_switchToTextParsing(t,a){this._insertElement(t,O.HTML),this.tokenizer.state=a,this.originalInsertionMode=this.insertionMode,this.insertionMode=k.TEXT}switchToPlaintextParsing(){this.insertionMode=k.TEXT,this.originalInsertionMode=k.IN_BODY,this.tokenizer.state=fe.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===z.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==O.HTML))switch(this.fragmentContextID){case c.TITLE:case c.TEXTAREA:{this.tokenizer.state=fe.RCDATA;break}case c.STYLE:case c.XMP:case c.IFRAME:case c.NOEMBED:case c.NOFRAMES:case c.NOSCRIPT:{this.tokenizer.state=fe.RAWTEXT;break}case c.SCRIPT:{this.tokenizer.state=fe.SCRIPT_DATA;break}case c.PLAINTEXT:{this.tokenizer.state=fe.PLAINTEXT;break}}}_setDocumentType(t){const a=t.name||"",r=t.publicId||"",n=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,a,r,n),t.location){const i=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));i&&this.treeAdapter.setNodeSourceCodeLocation(i,t.location)}}_attachElementToTree(t,a){if(this.options.sourceCodeLocationInfo){const r=a&&{...a,startTag:a};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r,t)}}_appendElement(t,a){const r=this.treeAdapter.createElement(t.tagName,a,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,a){const r=this.treeAdapter.createElement(t.tagName,a,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,a){const r=this.treeAdapter.createElement(t,O.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,a)}_insertTemplate(t){const a=this.treeAdapter.createElement(t.tagName,O.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(a,r),this._attachElementToTree(a,t.location),this.openElements.push(a,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(z.HTML,O.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,c.HTML)}_appendCommentNode(t,a){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(a,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let a,r;if(this._shouldFosterParentOnInsertion()?({parent:a,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(a,t.chars,r):this.treeAdapter.insertText(a,t.chars)):(a=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(a,t.chars)),!t.location)return;const n=this.treeAdapter.getChildNodes(a),s=r?n.lastIndexOf(r):n.length,i=n[s-1];if(this.treeAdapter.getNodeSourceCodeLocation(i)){const{endLine:u,endCol:l,endOffset:p}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(i,{endLine:u,endCol:l,endOffset:p})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,t.location)}_adoptNodes(t,a){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(a,r)}_setEndLocation(t,a){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&a.location){const r=a.location,n=this.treeAdapter.getTagName(t),s=a.type===Z.END_TAG&&n===a.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,s)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let a,r;return this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,r=this.fragmentContextID):{current:a,currentTagId:r}=this.openElements,t.tagID===c.SVG&&this.treeAdapter.getTagName(a)===z.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(a)===O.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===c.MGLYPH||t.tagID===c.MALIGNMARK)&&!this._isIntegrationPoint(r,a,O.HTML)}_processToken(t){switch(t.type){case Z.CHARACTER:{this.onCharacter(t);break}case Z.NULL_CHARACTER:{this.onNullCharacter(t);break}case Z.COMMENT:{this.onComment(t);break}case Z.DOCTYPE:{this.onDoctype(t);break}case Z.START_TAG:{this._processStartTag(t);break}case Z.END_TAG:{this.onEndTag(t);break}case Z.EOF:{this.onEof(t);break}case Z.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,a,r){const n=this.treeAdapter.getNamespaceURI(a),s=this.treeAdapter.getAttrList(a);return A7(t,n,s,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const a=this.activeFormattingElements.entries.findIndex(n=>n.type===Pe.Marker||this.openElements.contains(n.element)),r=a<0?t-1:a-1;for(let n=r;n>=0;n--){const s=this.activeFormattingElements.entries[n];this._insertElement(s.token,this.treeAdapter.getNamespaceURI(s.element)),s.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=k.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(c.P),this.openElements.popUntilTagNamePopped(c.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case c.TR:{this.insertionMode=k.IN_ROW;return}case c.TBODY:case c.THEAD:case c.TFOOT:{this.insertionMode=k.IN_TABLE_BODY;return}case c.CAPTION:{this.insertionMode=k.IN_CAPTION;return}case c.COLGROUP:{this.insertionMode=k.IN_COLUMN_GROUP;return}case c.TABLE:{this.insertionMode=k.IN_TABLE;return}case c.BODY:{this.insertionMode=k.IN_BODY;return}case c.FRAMESET:{this.insertionMode=k.IN_FRAMESET;return}case c.SELECT:{this._resetInsertionModeForSelect(t);return}case c.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case c.HTML:{this.insertionMode=this.headElement?k.AFTER_HEAD:k.BEFORE_HEAD;return}case c.TD:case c.TH:{if(t>0){this.insertionMode=k.IN_CELL;return}break}case c.HEAD:{if(t>0){this.insertionMode=k.IN_HEAD;return}break}}this.insertionMode=k.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let a=t-1;a>0;a--){const r=this.openElements.tagIDs[a];if(r===c.TEMPLATE)break;if(r===c.TABLE){this.insertionMode=k.IN_SELECT_IN_TABLE;return}}this.insertionMode=k.IN_SELECT}_isElementCausesFosterParenting(t){return vc.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const a=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case c.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(a)===O.HTML)return{parent:this.treeAdapter.getTemplateContent(a),beforeElement:null};break}case c.TABLE:{const r=this.treeAdapter.getParentNode(a);return r?{parent:r,beforeElement:a}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const a=this._findFosterParentingLocation();a.beforeElement?this.treeAdapter.insertBefore(a.parent,t,a.beforeElement):this.treeAdapter.appendChild(a.parent,t)}_isSpecialElement(t,a){const r=this.treeAdapter.getNamespaceURI(t);return GM[r].has(a)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){nU(this,t);return}switch(this.insertionMode){case k.INITIAL:{Jt(this,t);break}case k.BEFORE_HTML:{na(this,t);break}case k.BEFORE_HEAD:{ia(this,t);break}case k.IN_HEAD:{sa(this,t);break}case k.IN_HEAD_NO_SCRIPT:{oa(this,t);break}case k.AFTER_HEAD:{ca(this,t);break}case k.IN_BODY:case k.IN_CAPTION:case k.IN_CELL:case k.IN_TEMPLATE:{Pc(this,t);break}case k.TEXT:case k.IN_SELECT:case k.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case k.IN_TABLE:case k.IN_TABLE_BODY:case k.IN_ROW:{Nr(this,t);break}case k.IN_TABLE_TEXT:{Yc(this,t);break}case k.IN_COLUMN_GROUP:{Va(this,t);break}case k.AFTER_BODY:{Ga(this,t);break}case k.AFTER_AFTER_BODY:{Oa(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){rU(this,t);return}switch(this.insertionMode){case k.INITIAL:{Jt(this,t);break}case k.BEFORE_HTML:{na(this,t);break}case k.BEFORE_HEAD:{ia(this,t);break}case k.IN_HEAD:{sa(this,t);break}case k.IN_HEAD_NO_SCRIPT:{oa(this,t);break}case k.AFTER_HEAD:{ca(this,t);break}case k.TEXT:{this._insertCharacters(t);break}case k.IN_TABLE:case k.IN_TABLE_BODY:case k.IN_ROW:{Nr(this,t);break}case k.IN_COLUMN_GROUP:{Va(this,t);break}case k.AFTER_BODY:{Ga(this,t);break}case k.AFTER_AFTER_BODY:{Oa(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){an(this,t);return}switch(this.insertionMode){case k.INITIAL:case k.BEFORE_HTML:case k.BEFORE_HEAD:case k.IN_HEAD:case k.IN_HEAD_NO_SCRIPT:case k.AFTER_HEAD:case k.IN_BODY:case k.IN_TABLE:case k.IN_CAPTION:case k.IN_COLUMN_GROUP:case k.IN_TABLE_BODY:case k.IN_ROW:case k.IN_CELL:case k.IN_SELECT:case k.IN_SELECT_IN_TABLE:case k.IN_TEMPLATE:case k.IN_FRAMESET:case k.AFTER_FRAMESET:{an(this,t);break}case k.IN_TABLE_TEXT:{Zt(this,t);break}case k.AFTER_BODY:{R7(this,t);break}case k.AFTER_AFTER_BODY:case k.AFTER_AFTER_FRAMESET:{v7(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case k.INITIAL:{B7(this,t);break}case k.BEFORE_HEAD:case k.IN_HEAD:case k.IN_HEAD_NO_SCRIPT:case k.AFTER_HEAD:{this._err(t,F.misplacedDoctype);break}case k.IN_TABLE_TEXT:{Zt(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,F.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?iU(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case k.INITIAL:{Jt(this,t);break}case k.BEFORE_HTML:{P7(this,t);break}case k.BEFORE_HEAD:{H7(this,t);break}case k.IN_HEAD:{Ue(this,t);break}case k.IN_HEAD_NO_SCRIPT:{q7(this,t);break}case k.AFTER_HEAD:{$7(this,t);break}case k.IN_BODY:{be(this,t);break}case k.IN_TABLE:{jt(this,t);break}case k.IN_TABLE_TEXT:{Zt(this,t);break}case k.IN_CAPTION:{UH(this,t);break}case k.IN_COLUMN_GROUP:{On(this,t);break}case k.IN_TABLE_BODY:{or(this,t);break}case k.IN_ROW:{cr(this,t);break}case k.IN_CELL:{YH(this,t);break}case k.IN_SELECT:{Vc(this,t);break}case k.IN_SELECT_IN_TABLE:{WH(this,t);break}case k.IN_TEMPLATE:{GH(this,t);break}case k.AFTER_BODY:{XH(this,t);break}case k.IN_FRAMESET:{KH(this,t);break}case k.AFTER_FRAMESET:{ZH(this,t);break}case k.AFTER_AFTER_BODY:{tU(this,t);break}case k.AFTER_AFTER_FRAMESET:{aU(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?sU(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case k.INITIAL:{Jt(this,t);break}case k.BEFORE_HTML:{M7(this,t);break}case k.BEFORE_HEAD:{U7(this,t);break}case k.IN_HEAD:{j7(this,t);break}case k.IN_HEAD_NO_SCRIPT:{Y7(this,t);break}case k.AFTER_HEAD:{W7(this,t);break}case k.IN_BODY:{sr(this,t);break}case k.TEXT:{NH(this,t);break}case k.IN_TABLE:{_a(this,t);break}case k.IN_TABLE_TEXT:{Zt(this,t);break}case k.IN_CAPTION:{jH(this,t);break}case k.IN_COLUMN_GROUP:{qH(this,t);break}case k.IN_TABLE_BODY:{rn(this,t);break}case k.IN_ROW:{Wc(this,t);break}case k.IN_CELL:{$H(this,t);break}case k.IN_SELECT:{Gc(this,t);break}case k.IN_SELECT_IN_TABLE:{VH(this,t);break}case k.IN_TEMPLATE:{QH(this,t);break}case k.AFTER_BODY:{Xc(this,t);break}case k.IN_FRAMESET:{JH(this,t);break}case k.AFTER_FRAMESET:{eU(this,t);break}case k.AFTER_AFTER_BODY:{Oa(this,t);break}}}onEof(t){switch(this.insertionMode){case k.INITIAL:{Jt(this,t);break}case k.BEFORE_HTML:{na(this,t);break}case k.BEFORE_HEAD:{ia(this,t);break}case k.IN_HEAD:{sa(this,t);break}case k.IN_HEAD_NO_SCRIPT:{oa(this,t);break}case k.AFTER_HEAD:{ca(this,t);break}case k.IN_BODY:case k.IN_TABLE:case k.IN_CAPTION:case k.IN_COLUMN_GROUP:case k.IN_TABLE_BODY:case k.IN_ROW:case k.IN_CELL:case k.IN_SELECT:case k.IN_SELECT_IN_TABLE:{jc(this,t);break}case k.TEXT:{FH(this,t);break}case k.IN_TABLE_TEXT:{Zt(this,t);break}case k.IN_TEMPLATE:{Qc(this,t);break}case k.AFTER_BODY:case k.IN_FRAMESET:case k.AFTER_FRAMESET:case k.AFTER_AFTER_BODY:case k.AFTER_AFTER_FRAMESET:{Ln(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===_.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case k.IN_HEAD:case k.IN_HEAD_NO_SCRIPT:case k.AFTER_HEAD:case k.TEXT:case k.IN_COLUMN_GROUP:case k.IN_SELECT:case k.IN_SELECT_IN_TABLE:case k.IN_FRAMESET:case k.AFTER_FRAMESET:{this._insertCharacters(t);break}case k.IN_BODY:case k.IN_CAPTION:case k.IN_CELL:case k.IN_TEMPLATE:case k.AFTER_BODY:case k.AFTER_AFTER_BODY:case k.AFTER_AFTER_FRAMESET:{Bc(this,t);break}case k.IN_TABLE:case k.IN_TABLE_BODY:case k.IN_ROW:{Nr(this,t);break}case k.IN_TABLE_TEXT:{qc(this,t);break}}}}function I7(e,t){let a=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return a?e.openElements.contains(a.element)?e.openElements.hasInScope(t.tagID)||(a=null):(e.activeFormattingElements.removeEntry(a),a=null):Uc(e,t),a}function S7(e,t){let a=null,r=e.openElements.stackTop;for(;r>=0;r--){const n=e.openElements.items[r];if(n===t.element)break;e._isSpecialElement(n,e.openElements.tagIDs[r])&&(a=n)}return a||(e.openElements.shortenToLength(r<0?0:r),e.activeFormattingElements.removeEntry(t)),a}function N7(e,t,a){let r=t,n=e.openElements.getCommonAncestor(t);for(let s=0,i=n;i!==a;s++,i=n){n=e.openElements.getCommonAncestor(i);const o=e.activeFormattingElements.getElementEntry(i),u=o&&s>=D7;!o||u?(u&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(i)):(i=F7(e,o),r===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(i,r),r=i)}return r}function F7(e,t){const a=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,a,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function L7(e,t,a){const r=e.treeAdapter.getTagName(t),n=$t(r);if(e._isElementCausesFosterParenting(n))e._fosterParentElement(a);else{const s=e.treeAdapter.getNamespaceURI(t);n===c.TEMPLATE&&s===O.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,a)}}function O7(e,t,a){const r=e.treeAdapter.getNamespaceURI(a.element),{token:n}=a,s=e.treeAdapter.createElement(n.tagName,r,n.attrs);e._adoptNodes(t,s),e.treeAdapter.appendChild(t,s),e.activeFormattingElements.insertElementAfterBookmark(s,n),e.activeFormattingElements.removeEntry(a),e.openElements.remove(a.element),e.openElements.insertAfter(t,s,n.tagID)}function Fn(e,t){for(let a=0;a=a;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],n=e.treeAdapter.getNodeSourceCodeLocation(r);if(n&&!n.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const s=e.openElements.items[1],i=e.treeAdapter.getNodeSourceCodeLocation(s);i&&!i.endTag&&e._setEndLocation(s,t)}}}}function B7(e,t){e._setDocumentType(t);const a=t.forceQuirks?Se.QUIRKS:d7(t);h7(t)||e._err(t,F.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,a),e.insertionMode=k.BEFORE_HTML}function Jt(e,t){e._err(t,F.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Se.QUIRKS),e.insertionMode=k.BEFORE_HTML,e._processToken(t)}function P7(e,t){t.tagID===c.HTML?(e._insertElement(t,O.HTML),e.insertionMode=k.BEFORE_HEAD):na(e,t)}function M7(e,t){const a=t.tagID;(a===c.HTML||a===c.HEAD||a===c.BODY||a===c.BR)&&na(e,t)}function na(e,t){e._insertFakeRootElement(),e.insertionMode=k.BEFORE_HEAD,e._processToken(t)}function H7(e,t){switch(t.tagID){case c.HTML:{be(e,t);break}case c.HEAD:{e._insertElement(t,O.HTML),e.headElement=e.openElements.current,e.insertionMode=k.IN_HEAD;break}default:ia(e,t)}}function U7(e,t){const a=t.tagID;a===c.HEAD||a===c.BODY||a===c.HTML||a===c.BR?ia(e,t):e._err(t,F.endTagWithoutMatchingOpenElement)}function ia(e,t){e._insertFakeElement(z.HEAD,c.HEAD),e.headElement=e.openElements.current,e.insertionMode=k.IN_HEAD,e._processToken(t)}function Ue(e,t){switch(t.tagID){case c.HTML:{be(e,t);break}case c.BASE:case c.BASEFONT:case c.BGSOUND:case c.LINK:case c.META:{e._appendElement(t,O.HTML),t.ackSelfClosing=!0;break}case c.TITLE:{e._switchToTextParsing(t,fe.RCDATA);break}case c.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,fe.RAWTEXT):(e._insertElement(t,O.HTML),e.insertionMode=k.IN_HEAD_NO_SCRIPT);break}case c.NOFRAMES:case c.STYLE:{e._switchToTextParsing(t,fe.RAWTEXT);break}case c.SCRIPT:{e._switchToTextParsing(t,fe.SCRIPT_DATA);break}case c.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=k.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(k.IN_TEMPLATE);break}case c.HEAD:{e._err(t,F.misplacedStartTagForHeadElement);break}default:sa(e,t)}}function j7(e,t){switch(t.tagID){case c.HEAD:{e.openElements.pop(),e.insertionMode=k.AFTER_HEAD;break}case c.BODY:case c.BR:case c.HTML:{sa(e,t);break}case c.TEMPLATE:{xt(e,t);break}default:e._err(t,F.endTagWithoutMatchingOpenElement)}}function xt(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==c.TEMPLATE&&e._err(t,F.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(c.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,F.endTagWithoutMatchingOpenElement)}function sa(e,t){e.openElements.pop(),e.insertionMode=k.AFTER_HEAD,e._processToken(t)}function q7(e,t){switch(t.tagID){case c.HTML:{be(e,t);break}case c.BASEFONT:case c.BGSOUND:case c.HEAD:case c.LINK:case c.META:case c.NOFRAMES:case c.STYLE:{Ue(e,t);break}case c.NOSCRIPT:{e._err(t,F.nestedNoscriptInHead);break}default:oa(e,t)}}function Y7(e,t){switch(t.tagID){case c.NOSCRIPT:{e.openElements.pop(),e.insertionMode=k.IN_HEAD;break}case c.BR:{oa(e,t);break}default:e._err(t,F.endTagWithoutMatchingOpenElement)}}function oa(e,t){const a=t.type===Z.EOF?F.openElementsLeftAfterEof:F.disallowedContentInNoscriptInHead;e._err(t,a),e.openElements.pop(),e.insertionMode=k.IN_HEAD,e._processToken(t)}function $7(e,t){switch(t.tagID){case c.HTML:{be(e,t);break}case c.BODY:{e._insertElement(t,O.HTML),e.framesetOk=!1,e.insertionMode=k.IN_BODY;break}case c.FRAMESET:{e._insertElement(t,O.HTML),e.insertionMode=k.IN_FRAMESET;break}case c.BASE:case c.BASEFONT:case c.BGSOUND:case c.LINK:case c.META:case c.NOFRAMES:case c.SCRIPT:case c.STYLE:case c.TEMPLATE:case c.TITLE:{e._err(t,F.abandonedHeadElementChild),e.openElements.push(e.headElement,c.HEAD),Ue(e,t),e.openElements.remove(e.headElement);break}case c.HEAD:{e._err(t,F.misplacedStartTagForHeadElement);break}default:ca(e,t)}}function W7(e,t){switch(t.tagID){case c.BODY:case c.HTML:case c.BR:{ca(e,t);break}case c.TEMPLATE:{xt(e,t);break}default:e._err(t,F.endTagWithoutMatchingOpenElement)}}function ca(e,t){e._insertFakeElement(z.BODY,c.BODY),e.insertionMode=k.IN_BODY,ir(e,t)}function ir(e,t){switch(t.type){case Z.CHARACTER:{Pc(e,t);break}case Z.WHITESPACE_CHARACTER:{Bc(e,t);break}case Z.COMMENT:{an(e,t);break}case Z.START_TAG:{be(e,t);break}case Z.END_TAG:{sr(e,t);break}case Z.EOF:{jc(e,t);break}}}function Bc(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Pc(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function V7(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function G7(e,t){const a=e.openElements.tryPeekProperlyNestedBodyElement();a&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(a,t.attrs))}function Q7(e,t){const a=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&a&&(e.treeAdapter.detachNode(a),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,O.HTML),e.insertionMode=k.IN_FRAMESET)}function X7(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,O.HTML)}function K7(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),xc(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,O.HTML)}function J7(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,O.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Z7(e,t){const a=e.openElements.tmplCount>0;(!e.formElement||a)&&(e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,O.HTML),a||(e.formElement=e.openElements.current))}function eH(e,t){e.framesetOk=!1;const a=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const n=e.openElements.tagIDs[r];if(a===c.LI&&n===c.LI||(a===c.DD||a===c.DT)&&(n===c.DD||n===c.DT)){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n);break}if(n!==c.ADDRESS&&n!==c.DIV&&n!==c.P&&e._isSpecialElement(e.openElements.items[r],n))break}e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,O.HTML)}function tH(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,O.HTML),e.tokenizer.state=fe.PLAINTEXT}function aH(e,t){e.openElements.hasInScope(c.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(c.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML),e.framesetOk=!1}function rH(e,t){const a=e.activeFormattingElements.getElementEntryInScopeWithTagName(z.A);a&&(Fn(e,t),e.openElements.remove(a.element),e.activeFormattingElements.removeEntry(a)),e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function nH(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function iH(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(c.NOBR)&&(Fn(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,O.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function sH(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function oH(e,t){e.treeAdapter.getDocumentMode(e.document)!==Se.QUIRKS&&e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,O.HTML),e.framesetOk=!1,e.insertionMode=k.IN_TABLE}function Mc(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,O.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Hc(e){const t=Tc(e,lt.TYPE);return t!=null&&t.toLowerCase()===C7}function cH(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,O.HTML),Hc(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function uH(e,t){e._appendElement(t,O.HTML),t.ackSelfClosing=!0}function lH(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._appendElement(t,O.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function fH(e,t){t.tagName=z.IMG,t.tagID=c.IMG,Mc(e,t)}function hH(e,t){e._insertElement(t,O.HTML),e.skipNextNewLine=!0,e.tokenizer.state=fe.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=k.TEXT}function dH(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,fe.RAWTEXT)}function pH(e,t){e.framesetOk=!1,e._switchToTextParsing(t,fe.RAWTEXT)}function ds(e,t){e._switchToTextParsing(t,fe.RAWTEXT)}function mH(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===k.IN_TABLE||e.insertionMode===k.IN_CAPTION||e.insertionMode===k.IN_TABLE_BODY||e.insertionMode===k.IN_ROW||e.insertionMode===k.IN_CELL?k.IN_SELECT_IN_TABLE:k.IN_SELECT}function _H(e,t){e.openElements.currentTagId===c.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML)}function gH(e,t){e.openElements.hasInScope(c.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,O.HTML)}function yH(e,t){e.openElements.hasInScope(c.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(c.RTC),e._insertElement(t,O.HTML)}function kH(e,t){e._reconstructActiveFormattingElements(),Oc(t),Nn(t),t.selfClosing?e._appendElement(t,O.MATHML):e._insertElement(t,O.MATHML),t.ackSelfClosing=!0}function bH(e,t){e._reconstructActiveFormattingElements(),Rc(t),Nn(t),t.selfClosing?e._appendElement(t,O.SVG):e._insertElement(t,O.SVG),t.ackSelfClosing=!0}function ps(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML)}function be(e,t){switch(t.tagID){case c.I:case c.S:case c.B:case c.U:case c.EM:case c.TT:case c.BIG:case c.CODE:case c.FONT:case c.SMALL:case c.STRIKE:case c.STRONG:{nH(e,t);break}case c.A:{rH(e,t);break}case c.H1:case c.H2:case c.H3:case c.H4:case c.H5:case c.H6:{K7(e,t);break}case c.P:case c.DL:case c.OL:case c.UL:case c.DIV:case c.DIR:case c.NAV:case c.MAIN:case c.MENU:case c.ASIDE:case c.CENTER:case c.FIGURE:case c.FOOTER:case c.HEADER:case c.HGROUP:case c.DIALOG:case c.DETAILS:case c.ADDRESS:case c.ARTICLE:case c.SECTION:case c.SUMMARY:case c.FIELDSET:case c.BLOCKQUOTE:case c.FIGCAPTION:{X7(e,t);break}case c.LI:case c.DD:case c.DT:{eH(e,t);break}case c.BR:case c.IMG:case c.WBR:case c.AREA:case c.EMBED:case c.KEYGEN:{Mc(e,t);break}case c.HR:{lH(e,t);break}case c.RB:case c.RTC:{gH(e,t);break}case c.RT:case c.RP:{yH(e,t);break}case c.PRE:case c.LISTING:{J7(e,t);break}case c.XMP:{dH(e,t);break}case c.SVG:{bH(e,t);break}case c.HTML:{V7(e,t);break}case c.BASE:case c.LINK:case c.META:case c.STYLE:case c.TITLE:case c.SCRIPT:case c.BGSOUND:case c.BASEFONT:case c.TEMPLATE:{Ue(e,t);break}case c.BODY:{G7(e,t);break}case c.FORM:{Z7(e,t);break}case c.NOBR:{iH(e,t);break}case c.MATH:{kH(e,t);break}case c.TABLE:{oH(e,t);break}case c.INPUT:{cH(e,t);break}case c.PARAM:case c.TRACK:case c.SOURCE:{uH(e,t);break}case c.IMAGE:{fH(e,t);break}case c.BUTTON:{aH(e,t);break}case c.APPLET:case c.OBJECT:case c.MARQUEE:{sH(e,t);break}case c.IFRAME:{pH(e,t);break}case c.SELECT:{mH(e,t);break}case c.OPTION:case c.OPTGROUP:{_H(e,t);break}case c.NOEMBED:{ds(e,t);break}case c.FRAMESET:{Q7(e,t);break}case c.TEXTAREA:{hH(e,t);break}case c.NOSCRIPT:{e.options.scriptingEnabled?ds(e,t):ps(e,t);break}case c.PLAINTEXT:{tH(e,t);break}case c.COL:case c.TH:case c.TD:case c.TR:case c.HEAD:case c.FRAME:case c.TBODY:case c.TFOOT:case c.THEAD:case c.CAPTION:case c.COLGROUP:break;default:ps(e,t)}}function wH(e,t){if(e.openElements.hasInScope(c.BODY)&&(e.insertionMode=k.AFTER_BODY,e.options.sourceCodeLocationInfo)){const a=e.openElements.tryPeekProperlyNestedBodyElement();a&&e._setEndLocation(a,t)}}function EH(e,t){e.openElements.hasInScope(c.BODY)&&(e.insertionMode=k.AFTER_BODY,Xc(e,t))}function TH(e,t){const a=t.tagID;e.openElements.hasInScope(a)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a))}function AH(e){const t=e.openElements.tmplCount>0,{formElement:a}=e;t||(e.formElement=null),(a||t)&&e.openElements.hasInScope(c.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(c.FORM):a&&e.openElements.remove(a))}function CH(e){e.openElements.hasInButtonScope(c.P)||e._insertFakeElement(z.P,c.P),e._closePElement()}function xH(e){e.openElements.hasInListItemScope(c.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(c.LI),e.openElements.popUntilTagNamePopped(c.LI))}function DH(e,t){const a=t.tagID;e.openElements.hasInScope(a)&&(e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a))}function zH(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function IH(e,t){const a=t.tagID;e.openElements.hasInScope(a)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a),e.activeFormattingElements.clearToLastMarker())}function SH(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(z.BR,c.BR),e.openElements.pop(),e.framesetOk=!1}function Uc(e,t){const a=t.tagName,r=t.tagID;for(let n=e.openElements.stackTop;n>0;n--){const s=e.openElements.items[n],i=e.openElements.tagIDs[n];if(r===i&&(r!==c.UNKNOWN||e.treeAdapter.getTagName(s)===a)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=n&&e.openElements.shortenToLength(n);break}if(e._isSpecialElement(s,i))break}}function sr(e,t){switch(t.tagID){case c.A:case c.B:case c.I:case c.S:case c.U:case c.EM:case c.TT:case c.BIG:case c.CODE:case c.FONT:case c.NOBR:case c.SMALL:case c.STRIKE:case c.STRONG:{Fn(e,t);break}case c.P:{CH(e);break}case c.DL:case c.UL:case c.OL:case c.DIR:case c.DIV:case c.NAV:case c.PRE:case c.MAIN:case c.MENU:case c.ASIDE:case c.BUTTON:case c.CENTER:case c.FIGURE:case c.FOOTER:case c.HEADER:case c.HGROUP:case c.DIALOG:case c.ADDRESS:case c.ARTICLE:case c.DETAILS:case c.SECTION:case c.SUMMARY:case c.LISTING:case c.FIELDSET:case c.BLOCKQUOTE:case c.FIGCAPTION:{TH(e,t);break}case c.LI:{xH(e);break}case c.DD:case c.DT:{DH(e,t);break}case c.H1:case c.H2:case c.H3:case c.H4:case c.H5:case c.H6:{zH(e);break}case c.BR:{SH(e);break}case c.BODY:{wH(e,t);break}case c.HTML:{EH(e,t);break}case c.FORM:{AH(e);break}case c.APPLET:case c.OBJECT:case c.MARQUEE:{IH(e,t);break}case c.TEMPLATE:{xt(e,t);break}default:Uc(e,t)}}function jc(e,t){e.tmplInsertionModeStack.length>0?Qc(e,t):Ln(e,t)}function NH(e,t){var a;t.tagID===c.SCRIPT&&((a=e.scriptHandler)===null||a===void 0||a.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function FH(e,t){e._err(t,F.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Nr(e,t){if(vc.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=k.IN_TABLE_TEXT,t.type){case Z.CHARACTER:{Yc(e,t);break}case Z.WHITESPACE_CHARACTER:{qc(e,t);break}}else ba(e,t)}function LH(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,O.HTML),e.insertionMode=k.IN_CAPTION}function OH(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,O.HTML),e.insertionMode=k.IN_COLUMN_GROUP}function RH(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(z.COLGROUP,c.COLGROUP),e.insertionMode=k.IN_COLUMN_GROUP,On(e,t)}function vH(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,O.HTML),e.insertionMode=k.IN_TABLE_BODY}function BH(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(z.TBODY,c.TBODY),e.insertionMode=k.IN_TABLE_BODY,or(e,t)}function PH(e,t){e.openElements.hasInTableScope(c.TABLE)&&(e.openElements.popUntilTagNamePopped(c.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function MH(e,t){Hc(t)?e._appendElement(t,O.HTML):ba(e,t),t.ackSelfClosing=!0}function HH(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,O.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function jt(e,t){switch(t.tagID){case c.TD:case c.TH:case c.TR:{BH(e,t);break}case c.STYLE:case c.SCRIPT:case c.TEMPLATE:{Ue(e,t);break}case c.COL:{RH(e,t);break}case c.FORM:{HH(e,t);break}case c.TABLE:{PH(e,t);break}case c.TBODY:case c.TFOOT:case c.THEAD:{vH(e,t);break}case c.INPUT:{MH(e,t);break}case c.CAPTION:{LH(e,t);break}case c.COLGROUP:{OH(e,t);break}default:ba(e,t)}}function _a(e,t){switch(t.tagID){case c.TABLE:{e.openElements.hasInTableScope(c.TABLE)&&(e.openElements.popUntilTagNamePopped(c.TABLE),e._resetInsertionMode());break}case c.TEMPLATE:{xt(e,t);break}case c.BODY:case c.CAPTION:case c.COL:case c.COLGROUP:case c.HTML:case c.TBODY:case c.TD:case c.TFOOT:case c.TH:case c.THEAD:case c.TR:break;default:ba(e,t)}}function ba(e,t){const a=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,ir(e,t),e.fosterParentingEnabled=a}function qc(e,t){e.pendingCharacterTokens.push(t)}function Yc(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Zt(e,t){let a=0;if(e.hasNonWhitespacePendingCharacterToken)for(;a0&&e.openElements.currentTagId===c.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===c.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===c.OPTGROUP&&e.openElements.pop();break}case c.OPTION:{e.openElements.currentTagId===c.OPTION&&e.openElements.pop();break}case c.SELECT:{e.openElements.hasInSelectScope(c.SELECT)&&(e.openElements.popUntilTagNamePopped(c.SELECT),e._resetInsertionMode());break}case c.TEMPLATE:{xt(e,t);break}}}function WH(e,t){const a=t.tagID;a===c.CAPTION||a===c.TABLE||a===c.TBODY||a===c.TFOOT||a===c.THEAD||a===c.TR||a===c.TD||a===c.TH?(e.openElements.popUntilTagNamePopped(c.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Vc(e,t)}function VH(e,t){const a=t.tagID;a===c.CAPTION||a===c.TABLE||a===c.TBODY||a===c.TFOOT||a===c.THEAD||a===c.TR||a===c.TD||a===c.TH?e.openElements.hasInTableScope(a)&&(e.openElements.popUntilTagNamePopped(c.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Gc(e,t)}function GH(e,t){switch(t.tagID){case c.BASE:case c.BASEFONT:case c.BGSOUND:case c.LINK:case c.META:case c.NOFRAMES:case c.SCRIPT:case c.STYLE:case c.TEMPLATE:case c.TITLE:{Ue(e,t);break}case c.CAPTION:case c.COLGROUP:case c.TBODY:case c.TFOOT:case c.THEAD:{e.tmplInsertionModeStack[0]=k.IN_TABLE,e.insertionMode=k.IN_TABLE,jt(e,t);break}case c.COL:{e.tmplInsertionModeStack[0]=k.IN_COLUMN_GROUP,e.insertionMode=k.IN_COLUMN_GROUP,On(e,t);break}case c.TR:{e.tmplInsertionModeStack[0]=k.IN_TABLE_BODY,e.insertionMode=k.IN_TABLE_BODY,or(e,t);break}case c.TD:case c.TH:{e.tmplInsertionModeStack[0]=k.IN_ROW,e.insertionMode=k.IN_ROW,cr(e,t);break}default:e.tmplInsertionModeStack[0]=k.IN_BODY,e.insertionMode=k.IN_BODY,be(e,t)}}function QH(e,t){t.tagID===c.TEMPLATE&&xt(e,t)}function Qc(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(c.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Ln(e,t)}function XH(e,t){t.tagID===c.HTML?be(e,t):Ga(e,t)}function Xc(e,t){var a;if(t.tagID===c.HTML){if(e.fragmentContext||(e.insertionMode=k.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===c.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((a=e.treeAdapter.getNodeSourceCodeLocation(r))===null||a===void 0)&&a.endTag)&&e._setEndLocation(r,t)}}else Ga(e,t)}function Ga(e,t){e.insertionMode=k.IN_BODY,ir(e,t)}function KH(e,t){switch(t.tagID){case c.HTML:{be(e,t);break}case c.FRAMESET:{e._insertElement(t,O.HTML);break}case c.FRAME:{e._appendElement(t,O.HTML),t.ackSelfClosing=!0;break}case c.NOFRAMES:{Ue(e,t);break}}}function JH(e,t){t.tagID===c.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==c.FRAMESET&&(e.insertionMode=k.AFTER_FRAMESET))}function ZH(e,t){switch(t.tagID){case c.HTML:{be(e,t);break}case c.NOFRAMES:{Ue(e,t);break}}}function eU(e,t){t.tagID===c.HTML&&(e.insertionMode=k.AFTER_AFTER_FRAMESET)}function tU(e,t){t.tagID===c.HTML?be(e,t):Oa(e,t)}function Oa(e,t){e.insertionMode=k.IN_BODY,ir(e,t)}function aU(e,t){switch(t.tagID){case c.HTML:{be(e,t);break}case c.NOFRAMES:{Ue(e,t);break}}}function rU(e,t){t.chars=ce,e._insertCharacters(t)}function nU(e,t){e._insertCharacters(t),e.framesetOk=!1}function Kc(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==O.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function iU(e,t){if(b7(t))Kc(e),e._startTagOutsideForeignContent(t);else{const a=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(a);r===O.MATHML?Oc(t):r===O.SVG&&(w7(t),Rc(t)),Nn(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function sU(e,t){if(t.tagID===c.P||t.tagID===c.BR){Kc(e),e._endTagOutsideForeignContent(t);return}for(let a=e.openElements.stackTop;a>0;a--){const r=e.openElements.items[a];if(e.treeAdapter.getNamespaceURI(r)===O.HTML){e._endTagOutsideForeignContent(t);break}const n=e.treeAdapter.getTagName(r);if(n.toLowerCase()===t.tagName){t.tagName=n,e.openElements.shortenToLength(a);break}}}z.AREA,z.BASE,z.BASEFONT,z.BGSOUND,z.BR,z.COL,z.EMBED,z.FRAME,z.HR,z.IMG,z.INPUT,z.KEYGEN,z.LINK,z.META,z.PARAM,z.SOURCE,z.TRACK,z.WBR;const oU=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),ms={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Jc(e,t){const a=gU(e),r=vo("type",{handlers:{root:cU,element:uU,text:lU,comment:eu,doctype:fU,raw:dU},unknown:pU}),n={parser:a?new hs(ms):hs.getFragmentParser(void 0,ms),handle(o){r(o,n)},stitches:!1,options:t||{}};r(e,n),Wt(n,at());const s=a?n.parser.document:n.parser.getFragment(),i=kM(s,{file:n.options.file});return n.stitches&&et(i,"comment",function(o,u,l){const p=o;if(p.value.stitch&&l&&u!==void 0){const h=l.children;return h[u]=p.value.stitch,u}}),i.type==="root"&&i.children.length===1&&i.children[0].type===e.type?i.children[0]:i}function Zc(e,t){let a=-1;if(e)for(;++a{const[r,n]=a.trim().split("-").map(s=>Number(s.trim()));return Array.from({length:(n||r)-r+1}).map((s,i)=>r+i)});return t.length?t:void 0}const AU=/^<\/?([\w-]+)(\s[^>]*?)?\/?>/;function au(e){const t=String(e).match(AU);return t&&t[1]}const CU=(e,t)=>{const a=(t.lang||"")+" "+(t.meta||""),{language:r,highlights:n,filename:s,meta:i}=EU(a),o=t.value?wU(t.value+` -`):"";let u={type:"element",tagName:"code",properties:{__ignoreMap:""},children:[{type:"text",value:o}]};i&&(u.data={meta:i}),e.patch(t,u),u=e.applyData(t,u);const l={language:r,filename:s,highlights:n,meta:i,code:o};return r&&(l.className=["language-"+r]),u={type:"element",tagName:"pre",properties:l,children:[u]},e.patch(t,u),u};function xU(e,t){var r;const a=au(t.value);if(a&&/[A-Z]/.test(a)&&(t.value=t.value.replace(a,ua(a))),e.dangerous||(r=e.options)!=null&&r.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function DU(e,t){const a={...t.attributes||{},href:pt(t.url)};t.title!==null&&t.title!==void 0&&(a.title=t.title);const r={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function zU(e,t){const a={},r=e.all(t);let n=-1;for(typeof t.start=="number"&&t.start!==1&&(a.start=t.start);++ntypeof i.checked=="boolean")&&(a.className=["contains-task-list"]);const s={type:"element",tagName:t.ordered?"ol":"ul",properties:a,children:e.wrap(r,!0)};return e.patch(t,s),e.applyData(t,s)}function IU(e,t){if(t.children&&t.children[0]&&t.children[0].type==="html"){const r=ua(au(t.children[0].value)||"div");if(!_u.includes(r))return e.all(t)}const a={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function SU(e,t){const a={...t.attributes,src:pt(t.url)};t.alt!==null&&t.alt!==void 0&&(a.alt=t.alt),t.title!==null&&t.title!==void 0&&(a.title=t.title);const r={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,r),e.applyData(t,r)}function NU(e,t){const a={type:"element",tagName:"strong",properties:t.attributes||{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function FU(e,t){var i,o;const a=((i=t.attributes)==null?void 0:i.language)||((o=t.attributes)==null?void 0:o.lang),r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const n={type:"element",tagName:"code",properties:t.attributes||{},children:[r]},s=(n.properties.class||"").split(" ");return delete n.properties.class,a&&(n.properties.language=a,delete n.properties.lang,s.push("language-"+a)),n.properties.className=s.join(" "),e.patch(t,n),e.applyData(t,n)}function LU(e,t){var r;const a={type:"element",tagName:t.name,properties:{...t.attributes,...(r=t.data)==null?void 0:r.hProperties},children:e.all(t)};return e.patch(t,a),a.attributes=t.attributes,a.fmAttributes=t.fmAttributes,a}const OU={emphasis:bU,code:CU,link:DU,paragraph:IU,html:xU,list:zU,image:SU,strong:NU,inlineCode:FU,containerComponent:LU},RU={remark:{plugins:{"remark-mdc":{instance:ng},"remark-emoji":{instance:kB},"remark-gfm":{instance:WP}}},rehype:{options:{handlers:OU,allowDangerousHtml:!0},plugins:{"rehype-external-links":{instance:nM},"rehype-sort-attribute-values":{instance:iM},"rehype-sort-attributes":{instance:sM},"rehype-raw":{instance:kU,options:{passThrough:["element"]}}}},highlight:!1,toc:{searchDepth:2,depth:2}};function ru(e){return e.type==="comment"?"":e.type==="text"?e.value||"":(e.children||[]).reduce((t,a)=>t.concat(ru(a)),"")}function nu(e,t=2,a=0){return!Array.isArray(e.children)||a===t?[e]:[e,...e.children.reduce((r,n)=>r.concat(nu(n,t,a+1)),[])]}const iu=["h2","h3","h4","h5","h6"],vU=iu.reduce((e,t)=>(e[t]=Number(t.charAt(t.length-1)),e),{}),BU=e=>vU[e.tag],PU=e=>((e<1||e>5)&&(console.log(`\`toc.depth\` is set to ${e}. It should be a number between 1 and 5. `),e=1),iu.slice(0,e));function su(e){if(e.length<=1)return e;const t=[];let a;return e.forEach(r=>{!a||r.depth<=a.depth?(r.children=[],a=r,t.push(r)):a.children.push(r)}),t.forEach(r=>{var n;(n=r.children)!=null&&n.length?r.children=su(r.children):delete r.children}),t}function MU(e,t){const{searchDepth:a,depth:r,title:n=""}=t,s=PU(r),o=nu(e,a).filter(u=>s.includes(u.tag||"")).map(u=>{var l;return{id:(l=u.props)==null?void 0:l.id,depth:BU(u),text:ru(u)}});return{title:n,searchDepth:a,depth:r,links:o}}function HU(e,t){const a=MU(e,t);return a.links=su(a.links),a}function UU(e){return"children"in e?ou(e):"value"in e?e.value:""}function jU(e){return e.type==="text"?e.value:"children"in e?ou(e):""}function ou(e){let t=-1;const a=[];for(;++te.startsWith("on")?!1:e==="href"||e==="src"?!VU.some(a=>t.toLowerCase().startsWith(a)):!0,QU=(e,t)=>t?(t=Object.fromEntries(Object.entries(t).filter(([a,r])=>{const n=GU(a,r);return n||console.warn(`[@nuxtjs/mdc] removing unsafe attribute: ${a}="${r}"`),n})),e==="pre"&&typeof t.highlights=="string"&&(t.highlights=t.highlights.split(" ").map(a=>Number.parseInt(a))),t):{};function XU(e={}){const t=new $U;function a(r,n){var s,i,o,u,l;if(r.type==="root")return{type:"root",children:r.children.map(p=>a(p,r)).filter(Boolean)};if(r.type==="element"){if(r.tagName==="p"&&r.children.every(h=>h.type==="text"&&/^\s*$/.test(h.value)))return null;if(r.tagName==="li"){let h=!1;r.children=(s=r.children)==null?void 0:s.flatMap(f=>f.type==="element"&&f.tagName==="p"?(h&&f.children.unshift({type:"element",tagName:"br",properties:{},children:[]}),h=!0,f.children):f)}(i=r.tagName)!=null&&i.match(/^h\d$/)&&(r.properties=r.properties||{},r.properties.id=String(((o=r.properties)==null?void 0:o.id)||t.slug(UU(r))).replace(/-+/g,"-").replace(/^-|-$/g,"").replace(/^(\d)/,"_$1")),r.tagName==="component-slot"&&(r.tagName="template");const p=(r.tagName==="template"&&((u=r.content)!=null&&u.children.length)?r.content.children:r.children).map(h=>a(h,r)).filter(Boolean);return{type:"element",tag:r.tagName,props:QU(r.tagName,r.properties),children:p}}return r.type==="text"&&(!/^\n+$/.test(r.value||"")||(l=n==null?void 0:n.properties)!=null&&l.emptyLinePlaceholder)?{type:"text",value:r.value}:e.keepComments&&r.type==="comment"?{type:"comment",value:r.value}:null}this.Compiler=r=>{const n=a(r);let s;const i=r.children.findIndex(o=>{var u;return o.type==="comment"&&((u=o.value)==null?void 0:u.trim())==="more"});if(i!==-1&&(s=a({type:"root",children:r.children.slice(0,i)}),s.children.find(o=>o.type==="element"&&o.tag==="pre"))){const o=n.children[n.children.length-1];o.type==="element"&&o.tag==="style"&&s.children.push(o)}return n.children=(n.children||[]).filter(o=>o.type!=="text"),{body:n,excerpt:s}}}let ve,Fr;const KU=async(e={})=>{var n,s,i,o,u,l,p,h,f,m,y,b,C;ve||(ve=await Un(()=>import("./DAumwU-x.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url).catch(()=>({}))),Fr||(Fr=await Un(()=>import("./bNaE6FFb.js"),[],import.meta.url).then(T=>T.getMdcConfigs()).catch(()=>[]));const t=[...Fr||[],...e.configs||[]];e.highlight!=null&&e.highlight!=!1&&e.highlight.highlighter!==void 0&&typeof e.highlight.highlighter!="function"&&(e={...e,highlight:{...e.highlight}},delete e.highlight.highlighter);const a=jn(e,{remark:{plugins:ve==null?void 0:ve.remarkPlugins},rehype:{plugins:ve==null?void 0:ve.rehypePlugins},highlight:ve==null?void 0:ve.highlight},RU);(s=(n=a.rehype)==null?void 0:n.plugins)!=null&&s.highlight&&(a.rehype.plugins.highlight.options={...a.rehype.plugins.highlight.options||{},...a.highlight||{}});let r=al();for(const T of t)r=await((o=(i=T.unified)==null?void 0:i.pre)==null?void 0:o.call(i,r))||r;r.use(oh);for(const T of t)r=await((l=(u=T.unified)==null?void 0:u.remark)==null?void 0:l.call(u,r))||r;await Vi(r,(p=a.remark)==null?void 0:p.plugins),r.use(ad,(h=a.rehype)==null?void 0:h.options);for(const T of t)r=await((m=(f=T.unified)==null?void 0:f.rehype)==null?void 0:m.call(f,r))||r;await Vi(r,(y=a.rehype)==null?void 0:y.plugins),r.use(XU,a);for(const T of t)r=await((C=(b=T.unified)==null?void 0:b.post)==null?void 0:C.call(b,r))||r;return async T=>{const{content:S,data:L}=await Vr(T),M=await r.process({value:S,data:L}),N=M.result,d=Object.assign(ZU(N.body),L,(M==null?void 0:M.data)||{});let D;if(d.toc!==!1){const j=jn(d.toc||{},a.toc);D=HU(N.body,j)}return{data:d,body:N.body,excerpt:N.excerpt,toc:D}}},JU=async(e,t={})=>(await KU(t))(e);function ZU(e){let t="",a="";const r=e.children.filter(n=>n.type==="element"&&n.tag!=="hr");if(r.length&&r[0].tag==="h1"){const n=r.shift();t=qn(n)}if(r.length&&r[0].tag==="p"){const n=r.shift();a=qn(n)}return{title:t,description:a}}const ej=qt({__name:"MDC",props:{tag:{type:[String,Boolean],default:"div"},value:{type:[String,Object],required:!0},excerpt:{type:Boolean,default:!1},parserOptions:{type:Object,default:()=>({})},class:{type:[String,Array,Object],default:""},unwrap:{type:[Boolean,String],default:!1}},async setup(e){let t,a;const r=e,n=Ke(()=>yu(r.value)),{data:s,refresh:i,error:o}=([t,a]=gs(async()=>ys(n.value,async()=>typeof r.value!="string"?r.value:await JU(r.value,r.parserOptions),"$UKsHok58uq")),t=await t,a(),t),u=Ke(()=>{var l,p;return r.excerpt?(l=s.value)==null?void 0:l.excerpt:(p=s.value)==null?void 0:p.body});return ku(()=>r.value,()=>{i()}),(l,p)=>{var f,m,y,b;const h=gu;return le(l.$slots,"default",{data:(f=$(s))==null?void 0:f.data,body:(m=$(s))==null?void 0:m.body,toc:(y=$(s))==null?void 0:y.toc,excerpt:(b=$(s))==null?void 0:b.excerpt,error:$(o)},()=>{var C;return[u.value?(J(),At(h,{key:0,tag:e.tag,class:ie(r.class),body:u.value,data:(C=$(s))==null?void 0:C.data,unwrap:r.unwrap},null,8,["tag","class","body","data","unwrap"])):ue("",!0)]})}}}),tj=qt({inheritAttrs:!1,__name:"LandingHero",props:{title:{type:String,default:void 0},description:{type:String,default:void 0},links:{type:Array,default:()=>[]},orientation:{type:String,default:"vertical"},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(e){const t=e,a=Ke(()=>{const s=la("gap-16 sm:gap-y-24",t.orientation==="vertical"&&"flex flex-col",t.orientation==="horizontal"&&"grid lg:grid-cols-2 lg:items-center"),i=t.orientation==="vertical"?"text-center":"",o=la("mt-10 flex flex-wrap gap-x-6 gap-y-3",t.orientation==="vertical"&&"justify-center");return{wrapper:"py-24 sm:py-32 md:py-40 relative",container:s,base:i,headline:"mb-10",title:"text-5xl font-bold tracking-tight text-gray-900 dark:text-white sm:text-7xl",description:"mt-6 text-lg tracking-tight text-gray-600 dark:text-gray-300",links:o}}),{ui:r,attrs:n}=Xa("landing.hero",ft(t,"ui"),a,ft(t,"class"),!0);return(s,i)=>{const o=bs,u=ks;return J(),re("div",$e({class:$(r).wrapper},$(n)),[le(s.$slots,"top"),Me(u,{class:ie($(r).container)},{default:ct(()=>{var l;return[Ht("div",{class:ie($(r).base)},[s.$slots.headline?(J(),re("div",{key:0,class:ie($(r).headline)},[le(s.$slots,"headline")],2)):ue("",!0),Ht("h1",{class:ie($(r).title)},[le(s.$slots,"title",{},()=>[Et(Be(e.title),1)])],2),e.description||s.$slots.description?(J(),re("div",{key:1,class:ie($(r).description)},[le(s.$slots,"description",{},()=>[Et(Be(e.description),1)])],2)):ue("",!0),(l=e.links)!=null&&l.length||s.$slots.links?(J(),re("div",{key:2,class:ie($(r).links)},[le(s.$slots,"links",{},()=>[(J(!0),re(Rt,null,vt(e.links,(p,h)=>(J(),At(o,$e({key:h},p,{onClick:p.click}),null,16,["onClick"]))),128))])],2)):ue("",!0)],2),le(s.$slots,"default")]}),_:3},8,["class"]),le(s.$slots,"bottom")],16)}}}),aj=bu(wu);function rj(e,t={}){const{x:a,y:r}=aj(t),n=Sa(e??(window==null?void 0:window.document.body)),s=Sa(0),i=Sa(0);return Ea&&Eu([n,a,r],()=>{const o=Tu(n);if(!o)return;const{left:u,top:l}=o.getBoundingClientRect(),p=a.value-(u+Ea.scrollX),h=r.value-(l+Ea.scrollY);Math.abs(p)>1500||Math.abs(h)>1500||Ea.screen.width<=800||(s.value=p,i.value=h)},{immediate:!0,throttle:50}),{x:a,y:r,elementX:s,elementY:i}}const nj=e=>(Su("data-v-ce8d0238"),e=e(),Nu(),e),ij=nj(()=>Ht("span",{class:"absolute inset-0","aria-hidden":"true"},null,-1)),sj=qt({inheritAttrs:!1,__name:"LandingCard",props:{...Au,title:{type:String,default:void 0},description:{type:String,default:void 0},icon:{type:String,default:void 0},color:{type:String,default:"primary"},orientation:{type:String,default:"vertical"},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(e){Cu(m=>({"2167279e":$(a),"3ade8bee":$(r)}));const t=e,a=Ke(()=>{var m;return t.color==="primary"?"rgb(var(--color-primary-DEFAULT))":((m=Ta[t.color])==null?void 0:m["500"])||Ta[t.color]||t.color}),r=Ke(()=>{var m;return t.color==="primary"?"rgb(var(--color-primary-DEFAULT))":((m=Ta[t.color])==null?void 0:m["400"])||Ta[t.color]||t.color}),n=Ke(()=>({wrapper:"relative group isolate rounded-xl background-gradient ring-1 ring-gray-200 dark:ring-gray-800 before:hidden before:lg:block before:absolute before:-inset-[2px] before:h-[calc(100%+4px)] before:w-[calc(100%+4px)] before:z-[-1] before:rounded-[13px] flex-1 flex flex-col shadow",to:"hover:ring-primary-500 dark:hover:ring-primary-400 transition-shadow duration-200",base:"flex-1 flex flex-col overflow-hidden",container:"",body:{base:la("gap-x-8 gap-y-4 rounded-xl flex-1",t.orientation==="vertical"&&"flex flex-col",!!i.default&&t.orientation==="horizontal"&&"grid lg:grid-cols-2 lg:items-center")},background:"bg-white dark:bg-gray-900 hover:bg-opacity-90 dark:hover:bg-opacity-90 transition-[background-opacity]",ring:"",rounded:"rounded-xl",shadow:"",icon:{wrapper:"mb-2 pointer-events-none",base:"w-8 h-8 flex-shrink-0 text-gray-900 dark:text-white"},title:"text-gray-900 dark:text-white text-base font-bold truncate",description:"text-[15px] text-gray-500 dark:text-gray-400 mt-1"})),s=Sa(),i=xu(),{elementX:o,elementY:u}=rj(s),{ui:l,attrs:p}=Xa("landing.card",ft(t,"ui"),n,ft(t,"class"),!0),h=Ke(()=>Du(t)),f=Ke(()=>(t.title||i.title&&zu(i.title())||"Card link").trim());return(m,y)=>{const b=Iu,C=ws,T=Pu;return J(),re("div",$e({ref_key:"el",ref:s,style:{"--x":`${$(o)}px`,"--y":`${$(u)}px`},class:[$(l).wrapper,m.to&&$(l).to]},$(p)),[Me(T,{ui:$(l)},{default:ct(()=>[Ht("div",{class:ie($(l).container)},[m.to?(J(),At(b,$e({key:0,"aria-label":$(f)},$(h),{class:"focus:outline-none",tabindex:"-1"}),{default:ct(()=>[ij]),_:1},16,["aria-label"])):ue("",!0),e.icon||m.$slots.icon?(J(),re("div",{key:1,class:ie($(l).icon.wrapper)},[le(m.$slots,"icon",{},()=>[Me(C,{name:e.icon,class:ie($(l).icon.base)},null,8,["name","class"])],!0)],2)):ue("",!0),e.title||m.$slots.title?(J(),re("p",{key:2,class:ie($(l).title)},[le(m.$slots,"title",{},()=>[Et(Be(e.title),1)],!0)],2)):ue("",!0),e.description||m.$slots.description?(J(),re("div",{key:3,class:ie($(l).description)},[le(m.$slots,"description",{},()=>[Et(Be(e.description),1)],!0)],2)):ue("",!0),le(m.$slots,"container",{},void 0,!0)],2),m.$slots.default?le(m.$slots,"default",{key:0},void 0,!0):ue("",!0)]),_:3},8,["ui"])],16)}}}),oj=Fu(sj,[["__scopeId","data-v-ce8d0238"]]),cj=qt({inheritAttrs:!1,__name:"PageGrid",props:{class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(e){const t={wrapper:"grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-3 gap-8"},a=e,{ui:r,attrs:n}=Xa("page.grid",ft(a,"ui"),t,ft(a,"class"),!0);return(s,i)=>(J(),re("div",$e({class:$(r).wrapper},$(n)),[le(s.$slots,"default")],16))}}),uj={key:0},lj={key:2},fj={key:0},hj=qt({inheritAttrs:!1,__name:"LandingSection",props:{icon:{type:String,default:void 0},headline:{type:String,default:void 0},title:{type:String,default:void 0},description:{type:String,default:void 0},features:{type:Array,default:()=>[]},links:{type:Array,default:()=>[]},slot:{type:String,default:void 0},align:{type:String,default:"center"},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(e){const t=Lu(),a=e,r=Ke(()=>{const i=la("gap-16 sm:gap-y-24",a.align==="center"?"flex flex-col":"grid lg:grid-cols-2 lg:items-center"),o=la("",a.align==="center"&&"text-center flex flex-col items-center",a.align==="right"&&"lg:order-last");return{wrapper:"py-24 sm:py-32",container:i,base:o,icon:{wrapper:"flex mb-6",base:"w-10 h-10 flex-shrink-0 text-primary"},headline:"mb-2 text-base/7 font-semibold text-primary",title:"text-3xl font-bold tracking-tight text-gray-900 dark:text-white sm:text-4xl lg:text-5xl",description:"mt-6 text-lg/8 text-gray-600 dark:text-gray-300",links:"mt-8 flex flex-wrap gap-x-3 gap-y-1.5",features:{wrapper:{base:"mt-6 leading-7",list:"space-y-4",grid:"grid grid-cols-1 gap-x-6 gap-y-10 sm:grid-cols-2 lg:grid-cols-3 lg:gap-x-8 lg:gap-y-16"},base:"relative pl-8",name:"font-semibold text-gray-900 dark:text-white",description:"text-gray-500 dark:text-gray-400 leading-6",icon:{base:"absolute left-0 top-1 h-5 w-5 text-primary",name:t.ui.icons.check}}}}),{ui:n,attrs:s}=Xa("landing.section",ft(a,"ui"),r,ft(a,"class"),!0);return(i,o)=>{const u=ws,l=bs,p=ks;return J(),re("div",$e({class:$(n).wrapper},$(s)),[le(i.$slots,"top"),Me(p,{class:ie($(n).container)},{default:ct(()=>{var h,f,m,y,b;return[e.icon||i.$slots.icon||e.headline||i.$slots.headline||e.title||i.$slots.title||e.description||i.$slots.description||(h=e.links)!=null&&h.length||i.$slots.links?(J(),re("div",{key:0,class:ie($(n).base)},[e.icon||i.$slots.icon?(J(),re("div",{key:0,class:ie($(n).icon.wrapper)},[le(i.$slots,"icon",{},()=>[Me(u,{name:e.icon,class:ie($(n).icon.base)},null,8,["name","class"])])],2)):e.headline||i.$slots.headline?(J(),re("div",{key:1,class:ie($(n).headline)},[le(i.$slots,"headline",{},()=>[Et(Be(e.headline),1)])],2)):ue("",!0),e.title||i.$slots.title?(J(),re("h2",{key:2,class:ie($(n).title)},[le(i.$slots,"title",{},()=>[Et(Be(e.title),1)])],2)):ue("",!0),e.description||i.$slots.description?(J(),re("div",{key:3,class:ie($(n).description)},[le(i.$slots,"description",{},()=>[Et(Be(e.description),1)])],2)):ue("",!0),e.align!=="center"&&((f=e.features)!=null&&f.length)?(J(),re("dl",{key:4,class:ie([$(n).features.wrapper.base,$(n).features.wrapper.list])},[(J(!0),re(Rt,null,vt(e.features,C=>(J(),re("div",{key:C.name,class:ie($(n).features.base)},[Ht("dt",{class:ie($(n).features.name)},[Me(u,{name:C.icon||$(n).features.icon.name,class:ie($(n).features.icon.base),"aria-hidden":"true"},null,8,["name","class"]),C.name?(J(),re("span",uj,Be(C.name),1)):ue("",!0)],2),C.description?(J(),re("dd",{key:0,class:ie($(n).features.description)},Be(C.description),3)):ue("",!0)],2))),128))],2)):ue("",!0),e.align!=="center"&&((m=e.links)!=null&&m.length||i.$slots.links)?(J(),re("div",{key:5,class:ie($(n).links)},[le(i.$slots,"links",{},()=>[(J(!0),re(Rt,null,vt(e.links,(C,T)=>(J(),At(l,$e({key:T},C,{onClick:C.click}),null,16,["onClick"]))),128))])],2)):ue("",!0)],2)):ue("",!0),i.$slots[e.slot||"default"]?le(i.$slots,e.slot||"default",{key:1}):e.align==="right"?(J(),re("div",lj)):ue("",!0),e.align==="center"&&((y=e.features)!=null&&y.length)?(J(),re("dl",{key:3,class:ie([$(n).features.wrapper.base,$(n).features.wrapper.grid])},[(J(!0),re(Rt,null,vt(e.features,C=>(J(),re("div",{key:C.name,class:ie($(n).features.base)},[Ht("dt",{class:ie($(n).features.name)},[Me(u,{name:C.icon||$(n).features.icon.name,class:ie($(n).features.icon.base),"aria-hidden":"true"},null,8,["name","class"]),C.name?(J(),re("span",fj,Be(C.name),1)):ue("",!0)],2),C.description?(J(),re("dd",{key:0,class:ie($(n).features.description)},Be(C.description),3)):ue("",!0)],2))),128))],2)):ue("",!0),e.align==="center"&&((b=e.links)!=null&&b.length||i.$slots.links)?(J(),re("div",{key:4,class:ie($(Ou)($(n).links,"mt-0 justify-center"))},[le(i.$slots,"links",{},()=>[(J(!0),re(Rt,null,vt(e.links,(C,T)=>(J(),At(l,$e({key:T},C,{onClick:C.click}),null,16,["onClick"]))),128))])],2)):ue("",!0)]}),_:3},8,["class"]),le(i.$slots,"bottom")],16)}}}),dj=qt({__name:"index",async setup(e){let t,a;const{data:r}=([t,a]=gs(()=>ys("index",()=>Bu("/").findOne())),t=await t,a(),t);return Ru({title:r.value.title,ogTitle:r.value.title,description:r.value.description,ogDescription:r.value.description,ogImage:"https://supabase.nuxtjs.org/social-card.jpg",twitterImage:"https://supabase.nuxtjs.org/social-card.jpg"}),(n,s)=>{const i=ej,o=tj,u=oj,l=cj,p=hj;return J(),re("div",null,[$(r).hero?(J(),At(o,vu($e({key:0},$(r).hero)),{title:ct(()=>[Me(i,{value:$(r).hero.title},null,8,["value"])]),default:ct(()=>[Me(i,{value:$(r).hero.code,tag:"pre",class:"prose prose-primary dark:prose-invert max-w-none"},null,8,["value"])]),_:1},16)):ue("",!0),Me(p,{title:$(r).features.title},{default:ct(()=>[Me(l,null,{default:ct(()=>[(J(!0),re(Rt,null,vt($(r).features.items,(h,f)=>(J(),At(u,$e({key:f},h),null,16))),128))]),_:1})]),_:1},8,["title"])])}}}),kj=Object.freeze(Object.defineProperty({__proto__:null,default:dj},Symbol.toStringTag,{value:"Module"}));export{kj as i,UU as t,et as v}; +`):"";let u={type:"element",tagName:"code",properties:{__ignoreMap:""},children:[{type:"text",value:o}]};i&&(u.data={meta:i}),e.patch(t,u),u=e.applyData(t,u);const l={language:r,filename:s,highlights:n,meta:i,code:o};return r&&(l.className=["language-"+r]),u={type:"element",tagName:"pre",properties:l,children:[u]},e.patch(t,u),u};function xU(e,t){var r;const a=au(t.value);if(a&&/[A-Z]/.test(a)&&(t.value=t.value.replace(a,ua(a))),e.dangerous||(r=e.options)!=null&&r.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function DU(e,t){const a={...t.attributes||{},href:pt(t.url)};t.title!==null&&t.title!==void 0&&(a.title=t.title);const r={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function zU(e,t){const a={},r=e.all(t);let n=-1;for(typeof t.start=="number"&&t.start!==1&&(a.start=t.start);++ntypeof i.checked=="boolean")&&(a.className=["contains-task-list"]);const s={type:"element",tagName:t.ordered?"ol":"ul",properties:a,children:e.wrap(r,!0)};return e.patch(t,s),e.applyData(t,s)}function IU(e,t){if(t.children&&t.children[0]&&t.children[0].type==="html"){const r=ua(au(t.children[0].value)||"div");if(!_u.includes(r))return e.all(t)}const a={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function SU(e,t){const a={...t.attributes,src:pt(t.url)};t.alt!==null&&t.alt!==void 0&&(a.alt=t.alt),t.title!==null&&t.title!==void 0&&(a.title=t.title);const r={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,r),e.applyData(t,r)}function NU(e,t){const a={type:"element",tagName:"strong",properties:t.attributes||{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function FU(e,t){var i,o;const a=((i=t.attributes)==null?void 0:i.language)||((o=t.attributes)==null?void 0:o.lang),r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const n={type:"element",tagName:"code",properties:t.attributes||{},children:[r]},s=(n.properties.class||"").split(" ");return delete n.properties.class,a&&(n.properties.language=a,delete n.properties.lang,s.push("language-"+a)),n.properties.className=s.join(" "),e.patch(t,n),e.applyData(t,n)}function LU(e,t){var r;const a={type:"element",tagName:t.name,properties:{...t.attributes,...(r=t.data)==null?void 0:r.hProperties},children:e.all(t)};return e.patch(t,a),a.attributes=t.attributes,a.fmAttributes=t.fmAttributes,a}const OU={emphasis:bU,code:CU,link:DU,paragraph:IU,html:xU,list:zU,image:SU,strong:NU,inlineCode:FU,containerComponent:LU},RU={remark:{plugins:{"remark-mdc":{instance:ng},"remark-emoji":{instance:kB},"remark-gfm":{instance:WP}}},rehype:{options:{handlers:OU,allowDangerousHtml:!0},plugins:{"rehype-external-links":{instance:nM},"rehype-sort-attribute-values":{instance:iM},"rehype-sort-attributes":{instance:sM},"rehype-raw":{instance:kU,options:{passThrough:["element"]}}}},highlight:!1,toc:{searchDepth:2,depth:2}};function ru(e){return e.type==="comment"?"":e.type==="text"?e.value||"":(e.children||[]).reduce((t,a)=>t.concat(ru(a)),"")}function nu(e,t=2,a=0){return!Array.isArray(e.children)||a===t?[e]:[e,...e.children.reduce((r,n)=>r.concat(nu(n,t,a+1)),[])]}const iu=["h2","h3","h4","h5","h6"],vU=iu.reduce((e,t)=>(e[t]=Number(t.charAt(t.length-1)),e),{}),BU=e=>vU[e.tag],PU=e=>((e<1||e>5)&&(console.log(`\`toc.depth\` is set to ${e}. It should be a number between 1 and 5. `),e=1),iu.slice(0,e));function su(e){if(e.length<=1)return e;const t=[];let a;return e.forEach(r=>{!a||r.depth<=a.depth?(r.children=[],a=r,t.push(r)):a.children.push(r)}),t.forEach(r=>{var n;(n=r.children)!=null&&n.length?r.children=su(r.children):delete r.children}),t}function MU(e,t){const{searchDepth:a,depth:r,title:n=""}=t,s=PU(r),o=nu(e,a).filter(u=>s.includes(u.tag||"")).map(u=>{var l;return{id:(l=u.props)==null?void 0:l.id,depth:BU(u),text:ru(u)}});return{title:n,searchDepth:a,depth:r,links:o}}function HU(e,t){const a=MU(e,t);return a.links=su(a.links),a}function UU(e){return"children"in e?ou(e):"value"in e?e.value:""}function jU(e){return e.type==="text"?e.value:"children"in e?ou(e):""}function ou(e){let t=-1;const a=[];for(;++te.startsWith("on")?!1:e==="href"||e==="src"?!VU.some(a=>t.toLowerCase().startsWith(a)):!0,QU=(e,t)=>t?(t=Object.fromEntries(Object.entries(t).filter(([a,r])=>{const n=GU(a,r);return n||console.warn(`[@nuxtjs/mdc] removing unsafe attribute: ${a}="${r}"`),n})),e==="pre"&&typeof t.highlights=="string"&&(t.highlights=t.highlights.split(" ").map(a=>Number.parseInt(a))),t):{};function XU(e={}){const t=new $U;function a(r,n){var s,i,o,u,l;if(r.type==="root")return{type:"root",children:r.children.map(p=>a(p,r)).filter(Boolean)};if(r.type==="element"){if(r.tagName==="p"&&r.children.every(h=>h.type==="text"&&/^\s*$/.test(h.value)))return null;if(r.tagName==="li"){let h=!1;r.children=(s=r.children)==null?void 0:s.flatMap(f=>f.type==="element"&&f.tagName==="p"?(h&&f.children.unshift({type:"element",tagName:"br",properties:{},children:[]}),h=!0,f.children):f)}(i=r.tagName)!=null&&i.match(/^h\d$/)&&(r.properties=r.properties||{},r.properties.id=String(((o=r.properties)==null?void 0:o.id)||t.slug(UU(r))).replace(/-+/g,"-").replace(/^-|-$/g,"").replace(/^(\d)/,"_$1")),r.tagName==="component-slot"&&(r.tagName="template");const p=(r.tagName==="template"&&((u=r.content)!=null&&u.children.length)?r.content.children:r.children).map(h=>a(h,r)).filter(Boolean);return{type:"element",tag:r.tagName,props:QU(r.tagName,r.properties),children:p}}return r.type==="text"&&(!/^\n+$/.test(r.value||"")||(l=n==null?void 0:n.properties)!=null&&l.emptyLinePlaceholder)?{type:"text",value:r.value}:e.keepComments&&r.type==="comment"?{type:"comment",value:r.value}:null}this.Compiler=r=>{const n=a(r);let s;const i=r.children.findIndex(o=>{var u;return o.type==="comment"&&((u=o.value)==null?void 0:u.trim())==="more"});if(i!==-1&&(s=a({type:"root",children:r.children.slice(0,i)}),s.children.find(o=>o.type==="element"&&o.tag==="pre"))){const o=n.children[n.children.length-1];o.type==="element"&&o.tag==="style"&&s.children.push(o)}return n.children=(n.children||[]).filter(o=>o.type!=="text"),{body:n,excerpt:s}}}let ve,Fr;const KU=async(e={})=>{var n,s,i,o,u,l,p,h,f,m,y,b,C;ve||(ve=await Un(()=>import("./D_Lq7IP9.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url).catch(()=>({}))),Fr||(Fr=await Un(()=>import("./bNaE6FFb.js"),[],import.meta.url).then(T=>T.getMdcConfigs()).catch(()=>[]));const t=[...Fr||[],...e.configs||[]];e.highlight!=null&&e.highlight!=!1&&e.highlight.highlighter!==void 0&&typeof e.highlight.highlighter!="function"&&(e={...e,highlight:{...e.highlight}},delete e.highlight.highlighter);const a=jn(e,{remark:{plugins:ve==null?void 0:ve.remarkPlugins},rehype:{plugins:ve==null?void 0:ve.rehypePlugins},highlight:ve==null?void 0:ve.highlight},RU);(s=(n=a.rehype)==null?void 0:n.plugins)!=null&&s.highlight&&(a.rehype.plugins.highlight.options={...a.rehype.plugins.highlight.options||{},...a.highlight||{}});let r=al();for(const T of t)r=await((o=(i=T.unified)==null?void 0:i.pre)==null?void 0:o.call(i,r))||r;r.use(oh);for(const T of t)r=await((l=(u=T.unified)==null?void 0:u.remark)==null?void 0:l.call(u,r))||r;await Vi(r,(p=a.remark)==null?void 0:p.plugins),r.use(ad,(h=a.rehype)==null?void 0:h.options);for(const T of t)r=await((m=(f=T.unified)==null?void 0:f.rehype)==null?void 0:m.call(f,r))||r;await Vi(r,(y=a.rehype)==null?void 0:y.plugins),r.use(XU,a);for(const T of t)r=await((C=(b=T.unified)==null?void 0:b.post)==null?void 0:C.call(b,r))||r;return async T=>{const{content:S,data:L}=await Vr(T),M=await r.process({value:S,data:L}),N=M.result,d=Object.assign(ZU(N.body),L,(M==null?void 0:M.data)||{});let D;if(d.toc!==!1){const j=jn(d.toc||{},a.toc);D=HU(N.body,j)}return{data:d,body:N.body,excerpt:N.excerpt,toc:D}}},JU=async(e,t={})=>(await KU(t))(e);function ZU(e){let t="",a="";const r=e.children.filter(n=>n.type==="element"&&n.tag!=="hr");if(r.length&&r[0].tag==="h1"){const n=r.shift();t=qn(n)}if(r.length&&r[0].tag==="p"){const n=r.shift();a=qn(n)}return{title:t,description:a}}const ej=qt({__name:"MDC",props:{tag:{type:[String,Boolean],default:"div"},value:{type:[String,Object],required:!0},excerpt:{type:Boolean,default:!1},parserOptions:{type:Object,default:()=>({})},class:{type:[String,Array,Object],default:""},unwrap:{type:[Boolean,String],default:!1}},async setup(e){let t,a;const r=e,n=Ke(()=>yu(r.value)),{data:s,refresh:i,error:o}=([t,a]=gs(async()=>ys(n.value,async()=>typeof r.value!="string"?r.value:await JU(r.value,r.parserOptions),"$UKsHok58uq")),t=await t,a(),t),u=Ke(()=>{var l,p;return r.excerpt?(l=s.value)==null?void 0:l.excerpt:(p=s.value)==null?void 0:p.body});return ku(()=>r.value,()=>{i()}),(l,p)=>{var f,m,y,b;const h=gu;return le(l.$slots,"default",{data:(f=$(s))==null?void 0:f.data,body:(m=$(s))==null?void 0:m.body,toc:(y=$(s))==null?void 0:y.toc,excerpt:(b=$(s))==null?void 0:b.excerpt,error:$(o)},()=>{var C;return[u.value?(J(),At(h,{key:0,tag:e.tag,class:ie(r.class),body:u.value,data:(C=$(s))==null?void 0:C.data,unwrap:r.unwrap},null,8,["tag","class","body","data","unwrap"])):ue("",!0)]})}}}),tj=qt({inheritAttrs:!1,__name:"LandingHero",props:{title:{type:String,default:void 0},description:{type:String,default:void 0},links:{type:Array,default:()=>[]},orientation:{type:String,default:"vertical"},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(e){const t=e,a=Ke(()=>{const s=la("gap-16 sm:gap-y-24",t.orientation==="vertical"&&"flex flex-col",t.orientation==="horizontal"&&"grid lg:grid-cols-2 lg:items-center"),i=t.orientation==="vertical"?"text-center":"",o=la("mt-10 flex flex-wrap gap-x-6 gap-y-3",t.orientation==="vertical"&&"justify-center");return{wrapper:"py-24 sm:py-32 md:py-40 relative",container:s,base:i,headline:"mb-10",title:"text-5xl font-bold tracking-tight text-gray-900 dark:text-white sm:text-7xl",description:"mt-6 text-lg tracking-tight text-gray-600 dark:text-gray-300",links:o}}),{ui:r,attrs:n}=Xa("landing.hero",ft(t,"ui"),a,ft(t,"class"),!0);return(s,i)=>{const o=bs,u=ks;return J(),re("div",$e({class:$(r).wrapper},$(n)),[le(s.$slots,"top"),Me(u,{class:ie($(r).container)},{default:ct(()=>{var l;return[Ht("div",{class:ie($(r).base)},[s.$slots.headline?(J(),re("div",{key:0,class:ie($(r).headline)},[le(s.$slots,"headline")],2)):ue("",!0),Ht("h1",{class:ie($(r).title)},[le(s.$slots,"title",{},()=>[Et(Be(e.title),1)])],2),e.description||s.$slots.description?(J(),re("div",{key:1,class:ie($(r).description)},[le(s.$slots,"description",{},()=>[Et(Be(e.description),1)])],2)):ue("",!0),(l=e.links)!=null&&l.length||s.$slots.links?(J(),re("div",{key:2,class:ie($(r).links)},[le(s.$slots,"links",{},()=>[(J(!0),re(Rt,null,vt(e.links,(p,h)=>(J(),At(o,$e({key:h},p,{onClick:p.click}),null,16,["onClick"]))),128))])],2)):ue("",!0)],2),le(s.$slots,"default")]}),_:3},8,["class"]),le(s.$slots,"bottom")],16)}}}),aj=bu(wu);function rj(e,t={}){const{x:a,y:r}=aj(t),n=Sa(e??(window==null?void 0:window.document.body)),s=Sa(0),i=Sa(0);return Ea&&Eu([n,a,r],()=>{const o=Tu(n);if(!o)return;const{left:u,top:l}=o.getBoundingClientRect(),p=a.value-(u+Ea.scrollX),h=r.value-(l+Ea.scrollY);Math.abs(p)>1500||Math.abs(h)>1500||Ea.screen.width<=800||(s.value=p,i.value=h)},{immediate:!0,throttle:50}),{x:a,y:r,elementX:s,elementY:i}}const nj=e=>(Su("data-v-ce8d0238"),e=e(),Nu(),e),ij=nj(()=>Ht("span",{class:"absolute inset-0","aria-hidden":"true"},null,-1)),sj=qt({inheritAttrs:!1,__name:"LandingCard",props:{...Au,title:{type:String,default:void 0},description:{type:String,default:void 0},icon:{type:String,default:void 0},color:{type:String,default:"primary"},orientation:{type:String,default:"vertical"},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(e){Cu(m=>({"2167279e":$(a),"3ade8bee":$(r)}));const t=e,a=Ke(()=>{var m;return t.color==="primary"?"rgb(var(--color-primary-DEFAULT))":((m=Ta[t.color])==null?void 0:m["500"])||Ta[t.color]||t.color}),r=Ke(()=>{var m;return t.color==="primary"?"rgb(var(--color-primary-DEFAULT))":((m=Ta[t.color])==null?void 0:m["400"])||Ta[t.color]||t.color}),n=Ke(()=>({wrapper:"relative group isolate rounded-xl background-gradient ring-1 ring-gray-200 dark:ring-gray-800 before:hidden before:lg:block before:absolute before:-inset-[2px] before:h-[calc(100%+4px)] before:w-[calc(100%+4px)] before:z-[-1] before:rounded-[13px] flex-1 flex flex-col shadow",to:"hover:ring-primary-500 dark:hover:ring-primary-400 transition-shadow duration-200",base:"flex-1 flex flex-col overflow-hidden",container:"",body:{base:la("gap-x-8 gap-y-4 rounded-xl flex-1",t.orientation==="vertical"&&"flex flex-col",!!i.default&&t.orientation==="horizontal"&&"grid lg:grid-cols-2 lg:items-center")},background:"bg-white dark:bg-gray-900 hover:bg-opacity-90 dark:hover:bg-opacity-90 transition-[background-opacity]",ring:"",rounded:"rounded-xl",shadow:"",icon:{wrapper:"mb-2 pointer-events-none",base:"w-8 h-8 flex-shrink-0 text-gray-900 dark:text-white"},title:"text-gray-900 dark:text-white text-base font-bold truncate",description:"text-[15px] text-gray-500 dark:text-gray-400 mt-1"})),s=Sa(),i=xu(),{elementX:o,elementY:u}=rj(s),{ui:l,attrs:p}=Xa("landing.card",ft(t,"ui"),n,ft(t,"class"),!0),h=Ke(()=>Du(t)),f=Ke(()=>(t.title||i.title&&zu(i.title())||"Card link").trim());return(m,y)=>{const b=Iu,C=ws,T=Pu;return J(),re("div",$e({ref_key:"el",ref:s,style:{"--x":`${$(o)}px`,"--y":`${$(u)}px`},class:[$(l).wrapper,m.to&&$(l).to]},$(p)),[Me(T,{ui:$(l)},{default:ct(()=>[Ht("div",{class:ie($(l).container)},[m.to?(J(),At(b,$e({key:0,"aria-label":$(f)},$(h),{class:"focus:outline-none",tabindex:"-1"}),{default:ct(()=>[ij]),_:1},16,["aria-label"])):ue("",!0),e.icon||m.$slots.icon?(J(),re("div",{key:1,class:ie($(l).icon.wrapper)},[le(m.$slots,"icon",{},()=>[Me(C,{name:e.icon,class:ie($(l).icon.base)},null,8,["name","class"])],!0)],2)):ue("",!0),e.title||m.$slots.title?(J(),re("p",{key:2,class:ie($(l).title)},[le(m.$slots,"title",{},()=>[Et(Be(e.title),1)],!0)],2)):ue("",!0),e.description||m.$slots.description?(J(),re("div",{key:3,class:ie($(l).description)},[le(m.$slots,"description",{},()=>[Et(Be(e.description),1)],!0)],2)):ue("",!0),le(m.$slots,"container",{},void 0,!0)],2),m.$slots.default?le(m.$slots,"default",{key:0},void 0,!0):ue("",!0)]),_:3},8,["ui"])],16)}}}),oj=Fu(sj,[["__scopeId","data-v-ce8d0238"]]),cj=qt({inheritAttrs:!1,__name:"PageGrid",props:{class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(e){const t={wrapper:"grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-3 gap-8"},a=e,{ui:r,attrs:n}=Xa("page.grid",ft(a,"ui"),t,ft(a,"class"),!0);return(s,i)=>(J(),re("div",$e({class:$(r).wrapper},$(n)),[le(s.$slots,"default")],16))}}),uj={key:0},lj={key:2},fj={key:0},hj=qt({inheritAttrs:!1,__name:"LandingSection",props:{icon:{type:String,default:void 0},headline:{type:String,default:void 0},title:{type:String,default:void 0},description:{type:String,default:void 0},features:{type:Array,default:()=>[]},links:{type:Array,default:()=>[]},slot:{type:String,default:void 0},align:{type:String,default:"center"},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(e){const t=Lu(),a=e,r=Ke(()=>{const i=la("gap-16 sm:gap-y-24",a.align==="center"?"flex flex-col":"grid lg:grid-cols-2 lg:items-center"),o=la("",a.align==="center"&&"text-center flex flex-col items-center",a.align==="right"&&"lg:order-last");return{wrapper:"py-24 sm:py-32",container:i,base:o,icon:{wrapper:"flex mb-6",base:"w-10 h-10 flex-shrink-0 text-primary"},headline:"mb-2 text-base/7 font-semibold text-primary",title:"text-3xl font-bold tracking-tight text-gray-900 dark:text-white sm:text-4xl lg:text-5xl",description:"mt-6 text-lg/8 text-gray-600 dark:text-gray-300",links:"mt-8 flex flex-wrap gap-x-3 gap-y-1.5",features:{wrapper:{base:"mt-6 leading-7",list:"space-y-4",grid:"grid grid-cols-1 gap-x-6 gap-y-10 sm:grid-cols-2 lg:grid-cols-3 lg:gap-x-8 lg:gap-y-16"},base:"relative pl-8",name:"font-semibold text-gray-900 dark:text-white",description:"text-gray-500 dark:text-gray-400 leading-6",icon:{base:"absolute left-0 top-1 h-5 w-5 text-primary",name:t.ui.icons.check}}}}),{ui:n,attrs:s}=Xa("landing.section",ft(a,"ui"),r,ft(a,"class"),!0);return(i,o)=>{const u=ws,l=bs,p=ks;return J(),re("div",$e({class:$(n).wrapper},$(s)),[le(i.$slots,"top"),Me(p,{class:ie($(n).container)},{default:ct(()=>{var h,f,m,y,b;return[e.icon||i.$slots.icon||e.headline||i.$slots.headline||e.title||i.$slots.title||e.description||i.$slots.description||(h=e.links)!=null&&h.length||i.$slots.links?(J(),re("div",{key:0,class:ie($(n).base)},[e.icon||i.$slots.icon?(J(),re("div",{key:0,class:ie($(n).icon.wrapper)},[le(i.$slots,"icon",{},()=>[Me(u,{name:e.icon,class:ie($(n).icon.base)},null,8,["name","class"])])],2)):e.headline||i.$slots.headline?(J(),re("div",{key:1,class:ie($(n).headline)},[le(i.$slots,"headline",{},()=>[Et(Be(e.headline),1)])],2)):ue("",!0),e.title||i.$slots.title?(J(),re("h2",{key:2,class:ie($(n).title)},[le(i.$slots,"title",{},()=>[Et(Be(e.title),1)])],2)):ue("",!0),e.description||i.$slots.description?(J(),re("div",{key:3,class:ie($(n).description)},[le(i.$slots,"description",{},()=>[Et(Be(e.description),1)])],2)):ue("",!0),e.align!=="center"&&((f=e.features)!=null&&f.length)?(J(),re("dl",{key:4,class:ie([$(n).features.wrapper.base,$(n).features.wrapper.list])},[(J(!0),re(Rt,null,vt(e.features,C=>(J(),re("div",{key:C.name,class:ie($(n).features.base)},[Ht("dt",{class:ie($(n).features.name)},[Me(u,{name:C.icon||$(n).features.icon.name,class:ie($(n).features.icon.base),"aria-hidden":"true"},null,8,["name","class"]),C.name?(J(),re("span",uj,Be(C.name),1)):ue("",!0)],2),C.description?(J(),re("dd",{key:0,class:ie($(n).features.description)},Be(C.description),3)):ue("",!0)],2))),128))],2)):ue("",!0),e.align!=="center"&&((m=e.links)!=null&&m.length||i.$slots.links)?(J(),re("div",{key:5,class:ie($(n).links)},[le(i.$slots,"links",{},()=>[(J(!0),re(Rt,null,vt(e.links,(C,T)=>(J(),At(l,$e({key:T},C,{onClick:C.click}),null,16,["onClick"]))),128))])],2)):ue("",!0)],2)):ue("",!0),i.$slots[e.slot||"default"]?le(i.$slots,e.slot||"default",{key:1}):e.align==="right"?(J(),re("div",lj)):ue("",!0),e.align==="center"&&((y=e.features)!=null&&y.length)?(J(),re("dl",{key:3,class:ie([$(n).features.wrapper.base,$(n).features.wrapper.grid])},[(J(!0),re(Rt,null,vt(e.features,C=>(J(),re("div",{key:C.name,class:ie($(n).features.base)},[Ht("dt",{class:ie($(n).features.name)},[Me(u,{name:C.icon||$(n).features.icon.name,class:ie($(n).features.icon.base),"aria-hidden":"true"},null,8,["name","class"]),C.name?(J(),re("span",fj,Be(C.name),1)):ue("",!0)],2),C.description?(J(),re("dd",{key:0,class:ie($(n).features.description)},Be(C.description),3)):ue("",!0)],2))),128))],2)):ue("",!0),e.align==="center"&&((b=e.links)!=null&&b.length||i.$slots.links)?(J(),re("div",{key:4,class:ie($(Ou)($(n).links,"mt-0 justify-center"))},[le(i.$slots,"links",{},()=>[(J(!0),re(Rt,null,vt(e.links,(C,T)=>(J(),At(l,$e({key:T},C,{onClick:C.click}),null,16,["onClick"]))),128))])],2)):ue("",!0)]}),_:3},8,["class"]),le(i.$slots,"bottom")],16)}}}),dj=qt({__name:"index",async setup(e){let t,a;const{data:r}=([t,a]=gs(()=>ys("index",()=>Bu("/").findOne())),t=await t,a(),t);return Ru({title:r.value.title,ogTitle:r.value.title,description:r.value.description,ogDescription:r.value.description,ogImage:"https://supabase.nuxtjs.org/social-card.jpg",twitterImage:"https://supabase.nuxtjs.org/social-card.jpg"}),(n,s)=>{const i=ej,o=tj,u=oj,l=cj,p=hj;return J(),re("div",null,[$(r).hero?(J(),At(o,vu($e({key:0},$(r).hero)),{title:ct(()=>[Me(i,{value:$(r).hero.title},null,8,["value"])]),default:ct(()=>[Me(i,{value:$(r).hero.code,tag:"pre",class:"prose prose-primary dark:prose-invert max-w-none"},null,8,["value"])]),_:1},16)):ue("",!0),Me(p,{title:$(r).features.title},{default:ct(()=>[Me(l,null,{default:ct(()=>[(J(!0),re(Rt,null,vt($(r).features.items,(h,f)=>(J(),At(u,$e({key:f},h),null,16))),128))]),_:1})]),_:1},8,["title"])])}}}),kj=Object.freeze(Object.defineProperty({__proto__:null,default:dj},Symbol.toStringTag,{value:"Module"}));export{kj as i,UU as t,et as v}; diff --git a/_nuxt/BRj95TSo.js b/_nuxt/BRj95TSo.js new file mode 100644 index 000000000..f31e706f7 --- /dev/null +++ b/_nuxt/BRj95TSo.js @@ -0,0 +1 @@ +import{_ as m}from"./CbCDpNlC.js";import"./5uFLRXWz.js";export{m as default}; diff --git a/_nuxt/fqLPnpju.js b/_nuxt/BSQmfP6X.js similarity index 75% rename from _nuxt/fqLPnpju.js rename to _nuxt/BSQmfP6X.js index b1452bc44..50d2a52c5 100644 --- a/_nuxt/fqLPnpju.js +++ b/_nuxt/BSQmfP6X.js @@ -1 +1 @@ -import{d as n,aV as s,a_ as d,b8 as i}from"./DV7eKLeG.js";import{u as m}from"./QA-ib-BQ.js";import"./Cp7Md9uy.js";const p=n({props:{query:{type:Object,required:!1,default:()=>({})}},async setup(a){const{fetchReadme:r}=m(),{data:u,refresh:e,pending:t}=await s(`github-readme-${d(a.query)}`,()=>r(a.query));return{readme:u,refresh:e,pending:t}},render({readme:a,refresh:r,pending:u}){var t;const e=i();return(t=e==null?void 0:e.default)==null?void 0:t.call(e,{readme:a,refresh:r,pending:u})}});export{p as default}; +import{d as n,aV as s,a_ as d,b8 as i}from"./5uFLRXWz.js";import{u as m}from"./B3cAN6Fg.js";import"./Cp7Md9uy.js";const p=n({props:{query:{type:Object,required:!1,default:()=>({})}},async setup(a){const{fetchReadme:r}=m(),{data:u,refresh:e,pending:t}=await s(`github-readme-${d(a.query)}`,()=>r(a.query));return{readme:u,refresh:e,pending:t}},render({readme:a,refresh:r,pending:u}){var t;const e=i();return(t=e==null?void 0:e.default)==null?void 0:t.call(e,{readme:a,refresh:r,pending:u})}});export{p as default}; diff --git a/_nuxt/BStPsjml.js b/_nuxt/BStPsjml.js new file mode 100644 index 000000000..77b9834c5 --- /dev/null +++ b/_nuxt/BStPsjml.js @@ -0,0 +1 @@ +import{_ as m}from"./Ce9WXhE4.js";import"./5uFLRXWz.js";export{m as default}; diff --git a/_nuxt/J2h4T5Wp.js b/_nuxt/BT1OWX2I.js similarity index 96% rename from _nuxt/J2h4T5Wp.js rename to _nuxt/BT1OWX2I.js index 2574d1758..9e7b01669 100644 --- a/_nuxt/J2h4T5Wp.js +++ b/_nuxt/BT1OWX2I.js @@ -1 +1 @@ -import{d as v,v as u,D as f,b8 as y}from"./DV7eKLeG.js";import{j as m}from"./Cp7Md9uy.js";const S=v({props:{owner:{type:String,default:()=>{var e,t;return(t=(e=u())==null?void 0:e.github)==null?void 0:t.owner},required:!1},repo:{type:String,default:()=>{var e,t;return(t=(e=u())==null?void 0:e.github)==null?void 0:t.repo},required:!1},branch:{type:String,default:()=>{var e,t;return(t=(e=u())==null?void 0:e.github)==null?void 0:t.branch},required:!1},dir:{type:String,default:()=>{var e,t;return(t=(e=u())==null?void 0:e.github)==null?void 0:t.dir},required:!1},source:{type:String,required:!1,default:void 0},page:{type:Object,required:!1,default:void 0},contentDir:{type:String,required:!1,default:"content"},edit:{type:Boolean,required:!1,default:!0}},setup(e){if(!e.owner||!e.repo||!e.branch)throw new Error("If you want to use `GithubLink` component, you must specify: `owner`, `repo` and `branch`.");const t=f(()=>{var h,s;let{repo:r,owner:a,branch:c,contentDir:l}=e,d="";if((s=(h=u())==null?void 0:h.public)!=null&&s.content){let n;const{sources:b}=u().public.content;for(const g in b||[])if(e.page._id.startsWith(g)){n=b[g];break}(n==null?void 0:n.driver)==="github"&&(r=n.repo||e.repo||"",a=n.owner||e.owner||"",c=n.branch||e.branch||"main",l=n.dir||e.contentDir||"",d=n.prefix||"")}return{repo:r,owner:a,branch:c,contentDir:l,prefix:d}}),i=f(()=>m("https://github.com",`${t.value.owner}/${t.value.repo}`)),o=f(()=>{var a;const r=[];return(a=e==null?void 0:e.page)!=null&&a._path?(t.value.contentDir&&r.push(t.value.contentDir),r.push(e.page._file.substring(t.value.prefix.length)),r):(e.dir&&r.push(e.dir),e.source&&r.push(e.source),r)});return{url:f(()=>{const r=[i.value];return e.edit?r.push("edit"):r.push("tree"),r.push(t.value.branch,...o.value),r.filter(Boolean).join("/")})}},render(e){var o;const{url:t}=e,i=y();return(o=i==null?void 0:i.default)==null?void 0:o.call(i,{url:t})}});export{S as default}; +import{d as v,v as u,D as f,b8 as y}from"./5uFLRXWz.js";import{j as m}from"./Cp7Md9uy.js";const S=v({props:{owner:{type:String,default:()=>{var e,t;return(t=(e=u())==null?void 0:e.github)==null?void 0:t.owner},required:!1},repo:{type:String,default:()=>{var e,t;return(t=(e=u())==null?void 0:e.github)==null?void 0:t.repo},required:!1},branch:{type:String,default:()=>{var e,t;return(t=(e=u())==null?void 0:e.github)==null?void 0:t.branch},required:!1},dir:{type:String,default:()=>{var e,t;return(t=(e=u())==null?void 0:e.github)==null?void 0:t.dir},required:!1},source:{type:String,required:!1,default:void 0},page:{type:Object,required:!1,default:void 0},contentDir:{type:String,required:!1,default:"content"},edit:{type:Boolean,required:!1,default:!0}},setup(e){if(!e.owner||!e.repo||!e.branch)throw new Error("If you want to use `GithubLink` component, you must specify: `owner`, `repo` and `branch`.");const t=f(()=>{var h,s;let{repo:r,owner:a,branch:c,contentDir:l}=e,d="";if((s=(h=u())==null?void 0:h.public)!=null&&s.content){let n;const{sources:b}=u().public.content;for(const g in b||[])if(e.page._id.startsWith(g)){n=b[g];break}(n==null?void 0:n.driver)==="github"&&(r=n.repo||e.repo||"",a=n.owner||e.owner||"",c=n.branch||e.branch||"main",l=n.dir||e.contentDir||"",d=n.prefix||"")}return{repo:r,owner:a,branch:c,contentDir:l,prefix:d}}),i=f(()=>m("https://github.com",`${t.value.owner}/${t.value.repo}`)),o=f(()=>{var a;const r=[];return(a=e==null?void 0:e.page)!=null&&a._path?(t.value.contentDir&&r.push(t.value.contentDir),r.push(e.page._file.substring(t.value.prefix.length)),r):(e.dir&&r.push(e.dir),e.source&&r.push(e.source),r)});return{url:f(()=>{const r=[i.value];return e.edit?r.push("edit"):r.push("tree"),r.push(t.value.branch,...o.value),r.filter(Boolean).join("/")})}},render(e){var o;const{url:t}=e,i=y();return(o=i==null?void 0:i.default)==null?void 0:o.call(i,{url:t})}});export{S as default}; diff --git a/_nuxt/BuGp6Ggu.js b/_nuxt/BXOENA8F.js similarity index 84% rename from _nuxt/BuGp6Ggu.js rename to _nuxt/BXOENA8F.js index a70d39dc9..7763edb9b 100644 --- a/_nuxt/BuGp6Ggu.js +++ b/_nuxt/BXOENA8F.js @@ -1 +1 @@ -import{d as c,ap as p,aq as d,c as i,e as l,aj as u,ak as f,E as e}from"./DV7eKLeG.js";const _=c({inheritAttrs:!1,__name:"CardGroup",props:{class:{type:[String,Object,Array],default:void 0}},setup(r){const s={wrapper:"grid sm:grid-cols-2 gap-4"},a=r,{ui:t,attrs:o}=p("content.cardGroup",void 0,s,d(a,"class"),!0);return(n,m)=>(i(),l("div",f({class:e(t).wrapper},e(o)),[u(n.$slots,"default")],16))}});export{_ as default}; +import{d as c,ap as p,aq as d,c as i,e as l,aj as u,ak as f,E as e}from"./5uFLRXWz.js";const _=c({inheritAttrs:!1,__name:"CardGroup",props:{class:{type:[String,Object,Array],default:void 0}},setup(r){const s={wrapper:"grid sm:grid-cols-2 gap-4"},a=r,{ui:t,attrs:o}=p("content.cardGroup",void 0,s,d(a,"class"),!0);return(n,m)=>(i(),l("div",f({class:e(t).wrapper},e(o)),[u(n.$slots,"default")],16))}});export{_ as default}; diff --git a/_nuxt/DXIEJCQl.js b/_nuxt/BY4jOTj-.js similarity index 92% rename from _nuxt/DXIEJCQl.js rename to _nuxt/BY4jOTj-.js index 8611fd40d..08b7c31ca 100644 --- a/_nuxt/DXIEJCQl.js +++ b/_nuxt/BY4jOTj-.js @@ -1 +1 @@ -import{d as l,z as u,D as d,ap as m,c as h,e as _,h as s,w as f,f as g,n as o,E as a,aj as x,ab as w,aL as v}from"./DV7eKLeG.js";const y=["id"],k=l({__name:"ProseH3",props:{id:{type:String,required:!0}},setup(n){const t=u(),r=d(()=>({wrapper:"scroll-mt-[calc(48px+32px+var(--header-height))] lg:scroll-mt-[calc(32px+var(--header-height))]",icon:{wrapper:"-ml-6 pr-2 py-2 inline-flex opacity-0 group-hover:lg:opacity-100 transition-opacity absolute",base:"w-4 h-4 text-primary",name:t.ui.icons.hash}})),{ui:e}=m("content.prose.h3",void 0,r,void 0,!0);return(c,C)=>{const i=w,p=v;return h(),_("h3",{id:n.id,class:o(a(e).wrapper)},[s(p,{href:`#${n.id}`,class:"group"},{default:f(()=>[g("div",{class:o(a(e).icon.wrapper)},[s(i,{name:a(e).icon.name,class:o(a(e).icon.base)},null,8,["name","class"])],2),x(c.$slots,"default")]),_:3},8,["href"])],10,y)}}});export{k as default}; +import{d as l,z as u,D as d,ap as m,c as h,e as _,h as s,w as f,f as g,n as o,E as a,aj as x,ab as w,aL as v}from"./5uFLRXWz.js";const y=["id"],k=l({__name:"ProseH3",props:{id:{type:String,required:!0}},setup(n){const t=u(),r=d(()=>({wrapper:"scroll-mt-[calc(48px+32px+var(--header-height))] lg:scroll-mt-[calc(32px+var(--header-height))]",icon:{wrapper:"-ml-6 pr-2 py-2 inline-flex opacity-0 group-hover:lg:opacity-100 transition-opacity absolute",base:"w-4 h-4 text-primary",name:t.ui.icons.hash}})),{ui:e}=m("content.prose.h3",void 0,r,void 0,!0);return(c,C)=>{const i=w,p=v;return h(),_("h3",{id:n.id,class:o(a(e).wrapper)},[s(p,{href:`#${n.id}`,class:"group"},{default:f(()=>[g("div",{class:o(a(e).icon.wrapper)},[s(i,{name:a(e).icon.name,class:o(a(e).icon.base)},null,8,["name","class"])],2),x(c.$slots,"default")]),_:3},8,["href"])],10,y)}}});export{k as default}; diff --git a/_nuxt/Cye9iPh-.js b/_nuxt/BYZiYxqN.js similarity index 84% rename from _nuxt/Cye9iPh-.js rename to _nuxt/BYZiYxqN.js index 4b65c7ee7..4fe4cd102 100644 --- a/_nuxt/Cye9iPh-.js +++ b/_nuxt/BYZiYxqN.js @@ -1 +1 @@ -import m from"./BAKkr1ga.js";import{d as c,b8 as l,V as r}from"./DV7eKLeG.js";const f=(u,t)=>r("pre",null,JSON.stringify({message:"You should use slots with ",slot:u,data:t},null,2)),h=c({name:"ContentList",props:{path:{type:String,required:!1,default:void 0},query:{type:Object,required:!1,default:void 0}},render(u){const t=l(),{path:p,query:a}=u,d={...a||{},path:p||(a==null?void 0:a.path)||"/"};return r(m,d,{default:t!=null&&t.default?({data:e,refresh:o,isPartial:n})=>t.default({list:e,refresh:o,isPartial:n,...this.$attrs}):e=>f("default",e.data),empty:e=>t!=null&&t.empty?t.empty(e):f("default",e==null?void 0:e.data),"not-found":e=>{var o;return t!=null&&t["not-found"]?(o=t==null?void 0:t["not-found"])==null?void 0:o.call(t,e):f("not-found",e==null?void 0:e.data)}})}}),_=h;export{_ as default}; +import m from"./VPULeIg0.js";import{d as c,b8 as l,V as r}from"./5uFLRXWz.js";const f=(u,t)=>r("pre",null,JSON.stringify({message:"You should use slots with ",slot:u,data:t},null,2)),h=c({name:"ContentList",props:{path:{type:String,required:!1,default:void 0},query:{type:Object,required:!1,default:void 0}},render(u){const t=l(),{path:p,query:a}=u,d={...a||{},path:p||(a==null?void 0:a.path)||"/"};return r(m,d,{default:t!=null&&t.default?({data:e,refresh:o,isPartial:n})=>t.default({list:e,refresh:o,isPartial:n,...this.$attrs}):e=>f("default",e.data),empty:e=>t!=null&&t.empty?t.empty(e):f("default",e==null?void 0:e.data),"not-found":e=>{var o;return t!=null&&t["not-found"]?(o=t==null?void 0:t["not-found"])==null?void 0:o.call(t,e):f("not-found",e==null?void 0:e.data)}})}}),_=h;export{_ as default}; diff --git a/_nuxt/FPKkkr-L.js b/_nuxt/B_o1PmGG.js similarity index 92% rename from _nuxt/FPKkkr-L.js rename to _nuxt/B_o1PmGG.js index 2d01db299..c32b67ef3 100644 --- a/_nuxt/FPKkkr-L.js +++ b/_nuxt/B_o1PmGG.js @@ -1 +1 @@ -import{d as l,z as u,D as d,ap as m,c as h,e as _,h as s,w as f,f as g,n as o,E as a,aj as x,ab as w,aL as v}from"./DV7eKLeG.js";const y=["id"],k=l({__name:"ProseH4",props:{id:{type:String,required:!0}},setup(n){const t=u(),r=d(()=>({wrapper:"scroll-mt-[calc(48px+24px+var(--header-height))] lg:scroll-mt-[calc(24px+var(--header-height))]",icon:{wrapper:"-ml-6 pr-2 py-1 inline-flex opacity-0 group-hover:lg:opacity-100 transition-opacity absolute",base:"w-4 h-4 text-primary",name:t.ui.icons.hash}})),{ui:e}=m("content.prose.h4",void 0,r,void 0,!0);return(c,C)=>{const i=w,p=v;return h(),_("h4",{id:n.id,class:o(a(e).wrapper)},[s(p,{href:`#${n.id}`,class:"group"},{default:f(()=>[g("div",{class:o(a(e).icon.wrapper)},[s(i,{name:a(e).icon.name,class:o(a(e).icon.base)},null,8,["name","class"])],2),x(c.$slots,"default")]),_:3},8,["href"])],10,y)}}});export{k as default}; +import{d as l,z as u,D as d,ap as m,c as h,e as _,h as s,w as f,f as g,n as o,E as a,aj as x,ab as w,aL as v}from"./5uFLRXWz.js";const y=["id"],k=l({__name:"ProseH4",props:{id:{type:String,required:!0}},setup(n){const t=u(),r=d(()=>({wrapper:"scroll-mt-[calc(48px+24px+var(--header-height))] lg:scroll-mt-[calc(24px+var(--header-height))]",icon:{wrapper:"-ml-6 pr-2 py-1 inline-flex opacity-0 group-hover:lg:opacity-100 transition-opacity absolute",base:"w-4 h-4 text-primary",name:t.ui.icons.hash}})),{ui:e}=m("content.prose.h4",void 0,r,void 0,!0);return(c,C)=>{const i=w,p=v;return h(),_("h4",{id:n.id,class:o(a(e).wrapper)},[s(p,{href:`#${n.id}`,class:"group"},{default:f(()=>[g("div",{class:o(a(e).icon.wrapper)},[s(i,{name:a(e).icon.name,class:o(a(e).icon.base)},null,8,["name","class"])],2),x(c.$slots,"default")]),_:3},8,["href"])],10,y)}}});export{k as default}; diff --git a/_nuxt/Cj_78txb.js b/_nuxt/BaChrslv.js similarity index 64% rename from _nuxt/Cj_78txb.js rename to _nuxt/BaChrslv.js index 3cebdadb2..071386d8d 100644 --- a/_nuxt/Cj_78txb.js +++ b/_nuxt/BaChrslv.js @@ -1 +1 @@ -import{l as r,c as o,e as s,aj as t}from"./DV7eKLeG.js";const c={};function n(e,a){return o(),s("p",null,[t(e.$slots,"default")])}const f=r(c,[["render",n]]);export{f as default}; +import{l as r,c as o,e as s,aj as t}from"./5uFLRXWz.js";const c={};function n(e,a){return o(),s("p",null,[t(e.$slots,"default")])}const f=r(c,[["render",n]]);export{f as default}; diff --git a/_nuxt/BavJDHci.js b/_nuxt/BavJDHci.js deleted file mode 100644 index 83da36b43..000000000 --- a/_nuxt/BavJDHci.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as m}from"./4UEM0VaZ.js";import"./DV7eKLeG.js";export{m as default}; diff --git a/_nuxt/BPrqFHgp.js b/_nuxt/BfieE6an.js similarity index 64% rename from _nuxt/BPrqFHgp.js rename to _nuxt/BfieE6an.js index e86cefe56..c501cf227 100644 --- a/_nuxt/BPrqFHgp.js +++ b/_nuxt/BfieE6an.js @@ -1 +1 @@ -import{l as r,c as o,e as s,aj as t}from"./DV7eKLeG.js";const c={};function n(e,a){return o(),s("li",null,[t(e.$slots,"default")])}const f=r(c,[["render",n]]);export{f as default}; +import{l as r,c as o,e as s,aj as t}from"./5uFLRXWz.js";const c={};function n(e,a){return o(),s("li",null,[t(e.$slots,"default")])}const f=r(c,[["render",n]]);export{f as default}; diff --git a/_nuxt/VGMRGWCW.js b/_nuxt/BihSnfkC.js similarity index 63% rename from _nuxt/VGMRGWCW.js rename to _nuxt/BihSnfkC.js index 525593bc0..bbce5299e 100644 --- a/_nuxt/VGMRGWCW.js +++ b/_nuxt/BihSnfkC.js @@ -1 +1 @@ -import{d as r,c as n,ai as o,w as s,aj as f,aL as c}from"./DV7eKLeG.js";const i=r({__name:"ProseA",props:{href:{type:String,default:""},target:{type:String,default:void 0,required:!1}},setup(e){return(t,u)=>{const a=c;return n(),o(a,{href:e.href,target:e.target},{default:s(()=>[f(t.$slots,"default")]),_:3},8,["href","target"])}}});export{i as default}; +import{d as r,c as n,ai as o,w as s,aj as f,aL as c}from"./5uFLRXWz.js";const i=r({__name:"ProseA",props:{href:{type:String,default:""},target:{type:String,default:void 0,required:!1}},setup(e){return(t,u)=>{const a=c;return n(),o(a,{href:e.href,target:e.target},{default:s(()=>[f(t.$slots,"default")]),_:3},8,["href","target"])}}});export{i as default}; diff --git a/_nuxt/D4MVSP1N.js b/_nuxt/Bjw2awP0.js similarity index 92% rename from _nuxt/D4MVSP1N.js rename to _nuxt/Bjw2awP0.js index f772d7b24..e4c71e299 100644 --- a/_nuxt/D4MVSP1N.js +++ b/_nuxt/Bjw2awP0.js @@ -1 +1 @@ -import{d as l,z as u,D as d,ap as m,c as h,e as _,h as s,w as f,f as g,n as o,E as a,aj as x,ab as w,aL as v}from"./DV7eKLeG.js";const y=["id"],k=l({__name:"ProseH1",props:{id:{type:String,required:!0}},setup(n){const t=u(),r=d(()=>({wrapper:"scroll-mt-[calc(48px+48px+var(--header-height))] lg:scroll-mt-[calc(48px+var(--header-height))]",icon:{wrapper:"-ml-6 pr-2 py-2 inline-flex opacity-0 group-hover:lg:opacity-100 transition-opacity absolute",base:"w-4 h-4 text-primary",name:t.ui.icons.hash}})),{ui:e}=m("content.prose.h1",void 0,r,void 0,!0);return(c,C)=>{const i=w,p=v;return h(),_("h1",{id:n.id,class:o(a(e).wrapper)},[s(p,{href:`#${n.id}`,class:"group"},{default:f(()=>[g("div",{class:o(a(e).icon.wrapper)},[s(i,{name:a(e).icon.name,class:o(a(e).icon.base)},null,8,["name","class"])],2),x(c.$slots,"default")]),_:3},8,["href"])],10,y)}}});export{k as default}; +import{d as l,z as u,D as d,ap as m,c as h,e as _,h as s,w as f,f as g,n as o,E as a,aj as x,ab as w,aL as v}from"./5uFLRXWz.js";const y=["id"],k=l({__name:"ProseH1",props:{id:{type:String,required:!0}},setup(n){const t=u(),r=d(()=>({wrapper:"scroll-mt-[calc(48px+48px+var(--header-height))] lg:scroll-mt-[calc(48px+var(--header-height))]",icon:{wrapper:"-ml-6 pr-2 py-2 inline-flex opacity-0 group-hover:lg:opacity-100 transition-opacity absolute",base:"w-4 h-4 text-primary",name:t.ui.icons.hash}})),{ui:e}=m("content.prose.h1",void 0,r,void 0,!0);return(c,C)=>{const i=w,p=v;return h(),_("h1",{id:n.id,class:o(a(e).wrapper)},[s(p,{href:`#${n.id}`,class:"group"},{default:f(()=>[g("div",{class:o(a(e).icon.wrapper)},[s(i,{name:a(e).icon.name,class:o(a(e).icon.base)},null,8,["name","class"])],2),x(c.$slots,"default")]),_:3},8,["href"])],10,y)}}});export{k as default}; diff --git a/_nuxt/DUg2ejsP.js b/_nuxt/BoaOnXtv.js similarity index 64% rename from _nuxt/DUg2ejsP.js rename to _nuxt/BoaOnXtv.js index 73a2c33f6..e4e9ba0f2 100644 --- a/_nuxt/DUg2ejsP.js +++ b/_nuxt/BoaOnXtv.js @@ -1 +1 @@ -import{l as r,c as t,e as o,aj as s}from"./DV7eKLeG.js";const c={};function n(e,a){return t(),o("tr",null,[s(e.$slots,"default")])}const f=r(c,[["render",n]]);export{f as default}; +import{l as r,c as t,e as o,aj as s}from"./5uFLRXWz.js";const c={};function n(e,a){return t(),o("tr",null,[s(e.$slots,"default")])}const f=r(c,[["render",n]]);export{f as default}; diff --git a/_nuxt/DikCDexe.js b/_nuxt/Br7vRzce.js similarity index 64% rename from _nuxt/DikCDexe.js rename to _nuxt/Br7vRzce.js index 86dda90b0..c1a70b3de 100644 --- a/_nuxt/DikCDexe.js +++ b/_nuxt/Br7vRzce.js @@ -1 +1 @@ -import{l as r,c as o,e as s,aj as t}from"./DV7eKLeG.js";const c={};function n(e,a){return o(),s("em",null,[t(e.$slots,"default")])}const f=r(c,[["render",n]]);export{f as default}; +import{l as r,c as o,e as s,aj as t}from"./5uFLRXWz.js";const c={};function n(e,a){return o(),s("em",null,[t(e.$slots,"default")])}const f=r(c,[["render",n]]);export{f as default}; diff --git a/_nuxt/D8e1FUJB.js b/_nuxt/Bxob9VmH.js similarity index 64% rename from _nuxt/D8e1FUJB.js rename to _nuxt/Bxob9VmH.js index 0cef1d06e..69b9cf012 100644 --- a/_nuxt/D8e1FUJB.js +++ b/_nuxt/Bxob9VmH.js @@ -1 +1 @@ -import s from"./CFvSqwIT.js";import{d as o,b8 as m,D as p,bl as u}from"./DV7eKLeG.js";import"./DXNMbFcI.js";import"./BneCoJRQ.js";const d=o({name:"Markdown",extends:s,setup(t){const{parent:e}=u(),{between:n,default:r}=m(),a=p(()=>typeof t.unwrap=="string"?t.unwrap.split(" "):["*"]);return{fallbackSlot:r,tags:a,between:n,parent:e}}});export{d as default}; +import s from"./mGifWHk2.js";import{d as o,b8 as m,D as p,bl as u}from"./5uFLRXWz.js";import"./DVHUXCHF.js";import"./BneCoJRQ.js";const d=o({name:"Markdown",extends:s,setup(t){const{parent:e}=u(),{between:n,default:r}=m(),a=p(()=>typeof t.unwrap=="string"?t.unwrap.split(" "):["*"]);return{fallbackSlot:r,tags:a,between:n,parent:e}}});export{d as default}; diff --git a/_nuxt/CHY8Pw7Y.js b/_nuxt/C0v9dJ4q.js similarity index 92% rename from _nuxt/CHY8Pw7Y.js rename to _nuxt/C0v9dJ4q.js index 587a17fee..1989ea02a 100644 --- a/_nuxt/CHY8Pw7Y.js +++ b/_nuxt/C0v9dJ4q.js @@ -1 +1 @@ -import{_ as C}from"./DstQJC2Y.js";import{d as B,b8 as S,ap as w,aq as D,r as I,D as f,c as l,e as p,f as y,F as $,ah as A,n as m,E as a,h as E,t as F,ai as G,bb as N,ak as P}from"./DV7eKLeG.js";const V=["onClick"],L=B({inheritAttrs:!1,__name:"CodeGroup",props:{class:{type:[String,Object,Array],default:void 0}},setup(g,{expose:v}){const h={wrapper:"relative [&>div:last-child]:!my-0 [&>div:last-child]:!static my-5",header:"flex items-center gap-1 border border-gray-200 dark:border-gray-700 border-b-0 rounded-t-md overflow-hidden p-2",tab:{base:"px-2 py-1.5 focus:outline-none text-gray-700 dark:text-gray-200 text-sm rounded-md flex items-center gap-1.5",active:"bg-gray-100 dark:bg-gray-800",inactive:"hover:bg-gray-50 dark:hover:bg-gray-800/50",icon:{base:""}}},_=g,d=S(),{ui:r,attrs:k}=w("content.codeGroup",void 0,h,D(_,"class"),!0),s=I(0);v({selectedIndex:s});function u(e,t){var i,c,o,n;return typeof e.type=="symbol"?(i=e.children)==null?void 0:i.map(u):{label:((c=e.props)==null?void 0:c.filename)||((o=e.props)==null?void 0:o.label)||`${t}`,icon:(n=e.props)==null?void 0:n.icon,component:e}}const b=f(()=>{var e,t;return((t=(e=d.default)==null?void 0:e.call(d))==null?void 0:t.flatMap(u).filter(Boolean))||[]}),x=f(()=>b.value.find((e,t)=>t===s.value));return(e,t)=>{var c;const i=C;return l(),p("div",P({class:a(r).wrapper},a(k)),[y("div",{class:m(a(r).header)},[(l(!0),p($,null,A(a(b),(o,n)=>(l(),p("button",{key:n,tabindex:"-1",class:m([a(r).tab.base,a(s)===n?a(r).tab.active:a(r).tab.inactive]),onClick:j=>s.value=n},[E(i,{icon:o.icon,filename:o.label,class:m(a(r).tab.icon.base)},null,8,["icon","filename","class"]),y("span",null,F(o.label),1)],10,V))),128))],2),(l(),G(N((c=a(x))==null?void 0:c.component),{key:a(s),"hide-header":""}))],16)}}});export{L as default}; +import{_ as C}from"./nO3zWEPC.js";import{d as B,b8 as S,ap as w,aq as D,r as I,D as f,c as l,e as p,f as y,F as $,ah as A,n as m,E as a,h as E,t as F,ai as G,bb as N,ak as P}from"./5uFLRXWz.js";const V=["onClick"],L=B({inheritAttrs:!1,__name:"CodeGroup",props:{class:{type:[String,Object,Array],default:void 0}},setup(g,{expose:v}){const h={wrapper:"relative [&>div:last-child]:!my-0 [&>div:last-child]:!static my-5",header:"flex items-center gap-1 border border-gray-200 dark:border-gray-700 border-b-0 rounded-t-md overflow-hidden p-2",tab:{base:"px-2 py-1.5 focus:outline-none text-gray-700 dark:text-gray-200 text-sm rounded-md flex items-center gap-1.5",active:"bg-gray-100 dark:bg-gray-800",inactive:"hover:bg-gray-50 dark:hover:bg-gray-800/50",icon:{base:""}}},_=g,d=S(),{ui:r,attrs:k}=w("content.codeGroup",void 0,h,D(_,"class"),!0),s=I(0);v({selectedIndex:s});function u(e,t){var i,c,o,n;return typeof e.type=="symbol"?(i=e.children)==null?void 0:i.map(u):{label:((c=e.props)==null?void 0:c.filename)||((o=e.props)==null?void 0:o.label)||`${t}`,icon:(n=e.props)==null?void 0:n.icon,component:e}}const b=f(()=>{var e,t;return((t=(e=d.default)==null?void 0:e.call(d))==null?void 0:t.flatMap(u).filter(Boolean))||[]}),x=f(()=>b.value.find((e,t)=>t===s.value));return(e,t)=>{var c;const i=C;return l(),p("div",P({class:a(r).wrapper},a(k)),[y("div",{class:m(a(r).header)},[(l(!0),p($,null,A(a(b),(o,n)=>(l(),p("button",{key:n,tabindex:"-1",class:m([a(r).tab.base,a(s)===n?a(r).tab.active:a(r).tab.inactive]),onClick:j=>s.value=n},[E(i,{icon:o.icon,filename:o.label,class:m(a(r).tab.icon.base)},null,8,["icon","filename","class"]),y("span",null,F(o.label),1)],10,V))),128))],2),(l(),G(N((c=a(x))==null?void 0:c.component),{key:a(s),"hide-header":""}))],16)}}});export{L as default}; diff --git a/_nuxt/C1kJJtSu.js b/_nuxt/C1kJJtSu.js deleted file mode 100644 index 44cb6846b..000000000 --- a/_nuxt/C1kJJtSu.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o}from"./C3Kzup5y.js";import"./bXKbWHrB.js";import"./DV7eKLeG.js";import"./BneCoJRQ.js";export{o as default}; diff --git a/_nuxt/83niqyif.js b/_nuxt/C41FEfLs.js similarity index 99% rename from _nuxt/83niqyif.js rename to _nuxt/C41FEfLs.js index cdeeced10..cb8aa36b4 100644 --- a/_nuxt/83niqyif.js +++ b/_nuxt/C41FEfLs.js @@ -1,4 +1,4 @@ -import{D as E,E as K,G as Dt,H as Q,I as Ye,J as Nt,r as B,b as ot,K as Fe,L as be,M as it,d as se,N as fe,O as Vt,P as z,C as oe,Q as jt,R as at,S as Kt,U as Ee,o as ye,V as xe,W as Ut,X as Ht,Y as Wt,Z as $e,$ as je,F as Ce,a0 as Ke,a1 as ke,a2 as Gt,a3 as lt,a4 as qt,a5 as Yt,a6 as ee,a7 as rt,a8 as Je,a9 as Jt,aa as J,l as Ue,ab as Ae,ac as ut,ad as ct,ae as He,af as We,ag as te,c as L,e as H,n as F,t as ie,g as q,f as Y,ah as Se,ai as j,w as W,aj as ae,ak as ce,al as Xt,k as Qt,am as dt,an as Re,ao as ht,ap as Ge,aq as Ie,ar as ft,as as pt,at as Zt,au as en,h as ge,av as tn,aw as vt,ax as mt,ay as gt,az as nn,aA as sn,aB as on,aC as an,aD as bt,aE as ln,z as rn,a as un,aF as cn,aG as dn,aH as hn,aI as fn,aJ as pn,aK as vn}from"./DV7eKLeG.js";const mn={wrapper:"flex flex-col flex-1 min-h-0 divide-y divide-gray-100 dark:divide-gray-800",container:"relative flex-1 overflow-y-auto divide-y divide-gray-100 dark:divide-gray-800 scroll-py-2",input:{wrapper:"relative flex items-center",base:"w-full placeholder-gray-400 dark:placeholder-gray-500 bg-transparent border-0 text-gray-900 dark:text-white focus:ring-0 focus:outline-none",padding:"px-4",height:"h-12",size:"sm:text-sm",icon:{base:"pointer-events-none absolute start-4 text-gray-400 dark:text-gray-500",loading:"animate-spin",size:"h-5 w-5",padding:"ps-11"},closeButton:{base:"absolute end-4",padding:"pe-10"}},emptyState:{wrapper:"flex flex-col items-center justify-center flex-1 px-6 py-14 sm:px-14",label:"text-sm text-center text-gray-900 dark:text-white",queryLabel:"text-sm text-center text-gray-900 dark:text-white",icon:"w-6 h-6 mx-auto text-gray-400 dark:text-gray-500 mb-4"},group:{wrapper:"p-2",label:"px-2.5 my-2 text-xs font-semibold text-gray-900 dark:text-white",container:"text-sm text-gray-700 dark:text-gray-200",command:{base:"flex justify-between select-none items-center rounded-md px-2.5 py-1.5 gap-2 relative",active:"bg-gray-100 dark:bg-gray-800 text-gray-900 dark:text-white",inactive:"",label:"flex items-center gap-1.5 min-w-0",prefix:"text-gray-400 dark:text-gray-500",suffix:"text-gray-400 dark:text-gray-500",container:"flex items-center gap-1.5 min-w-0",icon:{base:"flex-shrink-0 w-5 h-5",active:"text-gray-900 dark:text-white",inactive:"text-gray-400 dark:text-gray-500"},selectedIcon:{base:"h-5 w-5 text-gray-900 dark:text-white flex-shrink-0"},avatar:{base:"flex-shrink-0",size:"2xs"},chip:{base:"flex-shrink-0 w-2 h-2 mx-1 rounded-full"},disabled:"opacity-50",shortcuts:"hidden md:inline-flex flex-shrink-0 gap-0.5"},active:"flex-shrink-0 text-gray-500 dark:text-gray-400",inactive:"flex-shrink-0 text-gray-500 dark:text-gray-400"},default:{icon:"i-heroicons-magnifying-glass-20-solid",loadingIcon:"i-heroicons-arrow-path-20-solid",emptyState:{icon:"i-heroicons-magnifying-glass-20-solid",label:"We couldn't find any items.",queryLabel:"We couldn't find any items with that term. Please try again."},closeButton:null,selectedIcon:"i-heroicons-check-20-solid"}},gn={wrapper:"relative z-50",inner:"fixed inset-0 overflow-y-auto",container:"flex min-h-full items-end sm:items-center justify-center text-center",padding:"p-4 sm:p-0",margin:"sm:my-8",base:"relative text-left rtl:text-right flex flex-col",overlay:{base:"fixed inset-0 transition-opacity",background:"bg-gray-200/75 dark:bg-gray-800/75",transition:{enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0"}},background:"bg-white dark:bg-gray-900",ring:"",rounded:"rounded-lg",shadow:"shadow-xl",width:"w-full sm:max-w-lg",height:"",fullscreen:"w-screen h-screen",transition:{enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"}};function de(e,n,t){let o=t.initialDeps??[],s;return()=>{var i,l,a,c;let u;t.key&&((i=t.debug)!=null&&i.call(t))&&(u=Date.now());const r=e();if(!(r.length!==o.length||r.some((b,S)=>o[S]!==b)))return s;o=r;let h;if(t.key&&((l=t.debug)!=null&&l.call(t))&&(h=Date.now()),s=n(...r),t.key&&((a=t.debug)!=null&&a.call(t))){const b=Math.round((Date.now()-u)*100)/100,S=Math.round((Date.now()-h)*100)/100,R=S/16,P=($,I)=>{for($=String($);$.length{var i,l,a,c;let u;t.key&&((i=t.debug)!=null&&i.call(t))&&(u=Date.now());const r=e();if(!(r.length!==o.length||r.some((b,S)=>o[S]!==b)))return s;o=r;let h;if(t.key&&((l=t.debug)!=null&&l.call(t))&&(h=Date.now()),s=n(...r),t.key&&((a=t.debug)!=null&&a.call(t))){const b=Math.round((Date.now()-u)*100)/100,S=Math.round((Date.now()-h)*100)/100,R=S/16,P=($,I)=>{for($=String($);$.lengthMath.abs(e-n)<1,yn=e=>e,xn=e=>{const n=Math.max(e.startIndex-e.overscan,0),t=Math.min(e.endIndex+e.overscan,e.count-1),o=[];for(let s=n;s<=t;s++)o.push(s);return o},Sn=(e,n)=>{const t=e.scrollElement;if(!t)return;const o=i=>{const{width:l,height:a}=i;n({width:Math.round(l),height:Math.round(a)})};if(o(t.getBoundingClientRect()),typeof ResizeObserver>"u")return()=>{};const s=new ResizeObserver(i=>{const l=i[0];if(l!=null&&l.borderBoxSize){const a=l.borderBoxSize[0];if(a){o({width:a.inlineSize,height:a.blockSize});return}}o(t.getBoundingClientRect())});return s.observe(t,{box:"border-box"}),()=>{s.unobserve(t)}},In=(e,n)=>{const t=e.scrollElement;if(!t)return;const o=()=>{n(t[e.options.horizontal?"scrollLeft":"scrollTop"])};return o(),t.addEventListener("scroll",o,{passive:!0}),()=>{t.removeEventListener("scroll",o)}},On=(e,n,t)=>{if(n!=null&&n.borderBoxSize){const o=n.borderBoxSize[0];if(o)return Math.round(o[t.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[t.options.horizontal?"width":"height"])},wn=(e,{adjustments:n=0,behavior:t},o)=>{var s,i;const l=e+n;(i=(s=o.scrollElement)==null?void 0:s.scrollTo)==null||i.call(s,{[o.options.horizontal?"left":"top"]:l,behavior:t})};class Mn{constructor(n){this.unsubs=[],this.scrollElement=null,this.isScrolling=!1,this.isScrollingTimeoutId=null,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollDirection=null,this.scrollAdjustments=0,this.measureElementCache=new Map,this.observer=(()=>{let t=null;const o=()=>t||(typeof ResizeObserver<"u"?t=new ResizeObserver(s=>{s.forEach(i=>{this._measureElement(i.target,i)})}):null);return{disconnect:()=>{var s;return(s=o())==null?void 0:s.disconnect()},observe:s=>{var i;return(i=o())==null?void 0:i.observe(s,{box:"border-box"})},unobserve:s=>{var i;return(i=o())==null?void 0:i.unobserve(s)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([o,s])=>{typeof s>"u"&&delete t[o]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:yn,rangeExtractor:xn,onChange:()=>{},measureElement:On,initialRect:{width:0,height:0},scrollMargin:0,scrollingDelay:150,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,...t}},this.notify=t=>{var o,s;(s=(o=this.options).onChange)==null||s.call(o,this,t)},this.maybeNotify=de(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),t=>{this.notify(t)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.scrollElement=null},this._didMount=()=>(this.measureElementCache.forEach(this.observer.observe),()=>{this.observer.disconnect(),this.cleanup()}),this._willUpdate=()=>{const t=this.options.getScrollElement();this.scrollElement!==t&&(this.cleanup(),this.scrollElement=t,this._scrollToOffset(this.scrollOffset,{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,o=>{this.scrollRect=o,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,o=>{this.scrollAdjustments=0,this.scrollOffset!==o&&(this.isScrollingTimeoutId!==null&&(clearTimeout(this.isScrollingTimeoutId),this.isScrollingTimeoutId=null),this.isScrolling=!0,this.scrollDirection=this.scrollOffset{this.isScrollingTimeoutId=null,this.isScrolling=!1,this.scrollDirection=null,this.maybeNotify()},this.options.scrollingDelay))})))},this.getSize=()=>this.scrollRect[this.options.horizontal?"width":"height"],this.memoOptions=de(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey],(t,o,s,i)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:o,scrollMargin:s,getItemKey:i}),{key:!1}),this.getFurthestMeasurement=(t,o)=>{const s=new Map,i=new Map;for(let l=o-1;l>=0;l--){const a=t[l];if(s.has(a.lane))continue;const c=i.get(a.lane);if(c==null||a.end>c.end?i.set(a.lane,a):a.endl.end===a.end?l.index-a.index:l.end-a.end)[0]:void 0},this.getMeasurements=de(()=>[this.memoOptions(),this.itemSizeCache],({count:t,paddingStart:o,scrollMargin:s,getItemKey:i},l)=>{const a=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const c=this.measurementsCache.slice(0,a);for(let u=a;uthis.options.debug}),this.calculateRange=de(()=>[this.getMeasurements(),this.getSize(),this.scrollOffset],(t,o,s)=>this.range=t.length>0&&o>0?En({measurements:t,outerSize:o,scrollOffset:s}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=de(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(t,o,s,i)=>o===null?[]:t({...o,overscan:s,count:i}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{const o=this.options.indexAttribute,s=t.getAttribute(o);return s?parseInt(s,10):(console.warn(`Missing attribute name '${o}={index}' on measured element.`),-1)},this._measureElement=(t,o)=>{const s=this.measurementsCache[this.indexFromElement(t)];if(!s||!t.isConnected){this.measureElementCache.forEach((a,c)=>{a===t&&(this.observer.unobserve(t),this.measureElementCache.delete(c))});return}const i=this.measureElementCache.get(s.key);i!==t&&(i&&this.observer.unobserve(i),this.observer.observe(t),this.measureElementCache.set(s.key,t));const l=this.options.measureElement(t,o,this);this.resizeItem(s,l)},this.resizeItem=(t,o)=>{const s=this.itemSizeCache.get(t.key)??t.size,i=o-s;i!==0&&(t.start{t&&this._measureElement(t,void 0)},this.getVirtualItems=de(()=>[this.getIndexes(),this.getMeasurements()],(t,o)=>{const s=[];for(let i=0,l=t.length;ithis.options.debug}),this.getVirtualItemForOffset=t=>{const o=this.getMeasurements();return _e(o[yt(0,o.length-1,s=>_e(o[s]).start,t)])},this.getOffsetForAlignment=(t,o)=>{const s=this.getSize();o==="auto"&&(t<=this.scrollOffset?o="start":t>=this.scrollOffset+s?o="end":o="start"),o==="start"?t=t:o==="end"?t=t-s:o==="center"&&(t=t-s/2);const i=this.options.horizontal?"scrollWidth":"scrollHeight",a=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[i]:this.scrollElement[i]:0)-this.getSize();return Math.max(Math.min(a,t),0)},this.getOffsetForIndex=(t,o="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));const s=_e(this.getMeasurements()[t]);if(o==="auto")if(s.end>=this.scrollOffset+this.getSize()-this.options.scrollPaddingEnd)o="end";else if(s.start<=this.scrollOffset+this.options.scrollPaddingStart)o="start";else return[this.scrollOffset,o];const i=o==="end"?s.end+this.options.scrollPaddingEnd:s.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(i,o),o]},this.isDynamicMode=()=>this.measureElementCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&(clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(t,{align:o="start",behavior:s}={})=>{this.cancelScrollToIndex(),s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(t,o),{adjustments:void 0,behavior:s})},this.scrollToIndex=(t,{align:o="auto",behavior:s}={})=>{t=Math.max(0,Math.min(t,this.options.count-1)),this.cancelScrollToIndex(),s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const[i,l]=this.getOffsetForIndex(t,o);this._scrollToOffset(i,{adjustments:void 0,behavior:s}),s!=="smooth"&&this.isDynamicMode()&&(this.scrollToIndexTimeoutId=setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.measureElementCache.has(this.options.getItemKey(t))){const[c]=this.getOffsetForIndex(t,l);bn(c,this.scrollOffset)||this.scrollToIndex(t,{align:l,behavior:s})}else this.scrollToIndex(t,{align:l,behavior:s})}))},this.scrollBy=(t,{behavior:o}={})=>{this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.scrollOffset+t,{adjustments:void 0,behavior:o})},this.getTotalSize=()=>{var t;const o=this.getMeasurements();let s;return o.length===0?s=this.options.paddingStart:s=this.options.lanes===1?((t=o[o.length-1])==null?void 0:t.end)??0:Math.max(...o.slice(-this.options.lanes).map(i=>i.end)),s-this.options.scrollMargin+this.options.paddingEnd},this._scrollToOffset=(t,{adjustments:o,behavior:s})=>{this.options.scrollToFn(t,{behavior:s,adjustments:o},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(n),this.scrollRect=this.options.initialRect,this.scrollOffset=this.options.initialOffset,this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(t=>{this.itemSizeCache.set(t.key,t.size)}),this.maybeNotify()}}const yt=(e,n,t,o)=>{for(;e<=n;){const s=(e+n)/2|0,i=t(s);if(io)n=s-1;else return s}return e>0?e-1:0};function En({measurements:e,outerSize:n,scrollOffset:t}){const o=e.length-1,i=yt(0,o,a=>e[a].start,t);let l=i;for(;lK(e).getScrollElement(),s=>{s&&n._willUpdate()},{immediate:!0}),Q(()=>K(e),s=>{n.setOptions({...s,onChange:(i,l)=>{var a;Ye(t),(a=s.onChange)==null||a.call(s,i,l)}}),n._willUpdate(),Ye(t)},{immediate:!0}),Nt(o),t}function kn(e){return Cn(E(()=>({observeElementRect:Sn,observeElementOffset:In,scrollToFn:wn,...K(e)})))}function Rn(e,n,t){let o=B(t==null?void 0:t.value),s=E(()=>e.value!==void 0);return[E(()=>s.value?e.value:o.value),function(i){return s.value||(o.value=i),n==null?void 0:n(i)}]}function Tn(){let e=Fe();return ot(()=>e.dispose()),e}function $n(){let e=Tn();return n=>{e.dispose(),e.nextFrame(n)}}function Xe(e){return[e.screenX,e.screenY]}function An(){let e=B([-1,-1]);return{wasMoved(n){let t=Xe(n);return e.value[0]===t[0]&&e.value[1]===t[1]?!1:(e.value=t,!0)},update(n){e.value=Xe(n)}}}function _n({container:e,accept:n,walk:t,enabled:o}){be(()=>{let s=e.value;if(!s||o!==void 0&&!o.value)return;let i=it(e);if(!i)return;let l=Object.assign(c=>n(c),{acceptNode:n}),a=i.createTreeWalker(s,NodeFilter.SHOW_ELEMENT,l,!1);for(;a.nextNode();)t(a.currentNode)})}var xt=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))(xt||{});function Pn(e){throw new Error("Unexpected object: "+e)}var V=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(V||{});function Qe(e,n){let t=n.resolveItems();if(t.length<=0)return null;let o=n.resolveActiveIndex(),s=o??-1;switch(e.focus){case 0:{for(let i=0;i=0;--i)if(!n.resolveDisabled(t[i],i,t))return i;return o}case 2:{for(let i=s+1;i=0;--i)if(!n.resolveDisabled(t[i],i,t))return i;return o}case 4:{for(let i=0;i(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Bn||{}),zn=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(zn||{}),Dn=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(Dn||{});let wt=Symbol("ComboboxContext");function Oe(e){let n=lt(wt,null);if(n===null){let t=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Oe),t}return n}let Mt=Symbol("VirtualContext"),Nn=se({name:"VirtualProvider",setup(e,{slots:n}){let t=Oe("VirtualProvider"),o=E(()=>{let a=z(t.optionsRef);if(!a)return{start:0,end:0};let c=window.getComputedStyle(a);return{start:parseFloat(c.paddingBlockStart||c.paddingTop),end:parseFloat(c.paddingBlockEnd||c.paddingBottom)}}),s=kn(E(()=>({scrollPaddingStart:o.value.start,scrollPaddingEnd:o.value.end,count:t.virtual.value.options.length,estimateSize(){return 40},getScrollElement(){return z(t.optionsRef)},overscan:12}))),i=E(()=>{var a;return(a=t.virtual.value)==null?void 0:a.options}),l=B(0);return Q([i],()=>{l.value+=1}),at(Mt,t.virtual.value?s:null),()=>[xe("div",{style:{position:"relative",width:"100%",height:`${s.value.getTotalSize()}px`},ref:a=>{if(a){if(typeof process<"u"&&Fn.JEST_WORKER_ID!==void 0||t.activationTrigger.value===0)return;t.activeOptionIndex.value!==null&&t.virtual.value.options.length>t.activeOptionIndex.value&&s.value.scrollToIndex(t.activeOptionIndex.value)}}},s.value.getVirtualItems().map(a=>qt(n.default({option:t.virtual.value.options[a.index],open:t.comboboxState.value===0})[0],{key:`${l.value}-${a.index}`,"data-index":a.index,"aria-setsize":t.virtual.value.options.length,"aria-posinset":a.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${a.start}px)`,overflowAnchor:"none"}})))]}}),Vn=se({name:"Combobox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],nullable:!0,default:null},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},nullable:{type:Boolean,default:!1},multiple:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1},virtual:{type:Object,default:null}},inheritAttrs:!1,setup(e,{slots:n,attrs:t,emit:o}){let s=B(1),i=B(null),l=B(null),a=B(null),c=B(null),u=B({static:!1,hold:!1}),r=B([]),d=B(null),h=B(2),b=B(!1);function S(p=g=>g){let g=d.value!==null?r.value[d.value]:null,O=p(r.value.slice()),v=O.length>0&&O[0].dataRef.order.value!==null?O.sort((w,M)=>w.dataRef.order.value-M.dataRef.order.value):Yt(O,w=>z(w.dataRef.domRef)),m=g?v.indexOf(g):null;return m===-1&&(m=null),{options:v,activeOptionIndex:m}}let R=E(()=>e.multiple?1:0),P=E(()=>e.nullable),[$,I]=Rn(E(()=>e.modelValue),p=>o("update:modelValue",p),E(()=>e.defaultValue)),T=E(()=>$.value===void 0?fe(R.value,{1:[],0:void 0}):$.value),D=null,x=null;function _(p){return fe(R.value,{0(){return I==null?void 0:I(p)},1:()=>{let g=oe(f.value.value).slice(),O=oe(p),v=g.findIndex(m=>f.compare(O,oe(m)));return v===-1?g.push(O):g.splice(v,1),I==null?void 0:I(g)}})}let y=E(()=>{});Q([y],([p],[g])=>{if(f.virtual.value&&p&&g&&d.value!==null){let O=p.indexOf(g[d.value]);O!==-1?d.value=O:d.value=null}});let f={comboboxState:s,value:T,mode:R,compare(p,g){if(typeof e.by=="string"){let O=e.by;return(p==null?void 0:p[O])===(g==null?void 0:g[O])}return e.by===null?Ln(p,g):e.by(p,g)},calculateIndex(p){return f.virtual.value?e.by===null?f.virtual.value.options.indexOf(p):f.virtual.value.options.findIndex(g=>f.compare(g,p)):r.value.findIndex(g=>f.compare(g.dataRef.value,p))},defaultValue:E(()=>e.defaultValue),nullable:P,immediate:E(()=>!1),virtual:E(()=>null),inputRef:l,labelRef:i,buttonRef:a,optionsRef:c,disabled:E(()=>e.disabled),options:r,change(p){I(p)},activeOptionIndex:E(()=>{if(b.value&&d.value===null&&(f.virtual.value?f.virtual.value.options.length>0:r.value.length>0)){if(f.virtual.value){let g=f.virtual.value.options.findIndex(O=>{var v;return!((v=f.virtual.value)!=null&&v.disabled(O))});if(g!==-1)return g}let p=r.value.findIndex(g=>!g.dataRef.disabled);if(p!==-1)return p}return d.value}),activationTrigger:h,optionsPropsRef:u,closeCombobox(){b.value=!1,!e.disabled&&s.value!==1&&(s.value=1,d.value=null)},openCombobox(){if(b.value=!0,!e.disabled&&s.value!==0){if(f.value.value){let p=f.calculateIndex(f.value.value);p!==-1&&(d.value=p)}s.value=0}},setActivationTrigger(p){h.value=p},goToOption(p,g,O){b.value=!1,D!==null&&cancelAnimationFrame(D),D=requestAnimationFrame(()=>{if(e.disabled||c.value&&!u.value.static&&s.value===1)return;if(f.virtual.value){d.value=p===V.Specific?g:Qe({focus:p},{resolveItems:()=>f.virtual.value.options,resolveActiveIndex:()=>{var w,M;return(M=(w=f.activeOptionIndex.value)!=null?w:f.virtual.value.options.findIndex(A=>{var N;return!((N=f.virtual.value)!=null&&N.disabled(A))}))!=null?M:null},resolveDisabled:w=>f.virtual.value.disabled(w),resolveId(){throw new Error("Function not implemented.")}}),h.value=O??2;return}let v=S();if(v.activeOptionIndex===null){let w=v.options.findIndex(M=>!M.dataRef.disabled);w!==-1&&(v.activeOptionIndex=w)}let m=p===V.Specific?g:Qe({focus:p},{resolveItems:()=>v.options,resolveActiveIndex:()=>v.activeOptionIndex,resolveId:w=>w.id,resolveDisabled:w=>w.dataRef.disabled});d.value=m,h.value=O??2,r.value=v.options})},selectOption(p){let g=r.value.find(v=>v.id===p);if(!g)return;let{dataRef:O}=g;_(O.value)},selectActiveOption(){if(f.activeOptionIndex.value!==null){if(f.virtual.value)_(f.virtual.value.options[f.activeOptionIndex.value]);else{let{dataRef:p}=r.value[f.activeOptionIndex.value];_(p.value)}f.goToOption(V.Specific,f.activeOptionIndex.value)}},registerOption(p,g){let O=Vt({id:p,dataRef:g});if(f.virtual.value){r.value.push(O);return}x&&cancelAnimationFrame(x);let v=S(m=>(m.push(O),m));d.value===null&&f.isSelected(g.value.value)&&(v.activeOptionIndex=v.options.indexOf(O)),r.value=v.options,d.value=v.activeOptionIndex,h.value=2,v.options.some(m=>!z(m.dataRef.domRef))&&(x=requestAnimationFrame(()=>{let m=S();r.value=m.options,d.value=m.activeOptionIndex}))},unregisterOption(p,g){if(D!==null&&cancelAnimationFrame(D),g&&(b.value=!0),f.virtual.value){r.value=r.value.filter(v=>v.id!==p);return}let O=S(v=>{let m=v.findIndex(w=>w.id===p);return m!==-1&&v.splice(m,1),v});r.value=O.options,d.value=O.activeOptionIndex,h.value=2},isSelected(p){return fe(R.value,{0:()=>f.compare(oe(f.value.value),oe(p)),1:()=>oe(f.value.value).some(g=>f.compare(oe(g),oe(p)))})},isActive(p){return d.value===f.calculateIndex(p)}};jt([l,a,c],()=>f.closeCombobox(),E(()=>s.value===0)),at(wt,f),Kt(E(()=>fe(s.value,{0:Ee.Open,1:Ee.Closed})));let C=E(()=>{var p;return(p=z(l))==null?void 0:p.closest("form")});return ye(()=>{Q([C],()=>{if(!C.value||e.defaultValue===void 0)return;function p(){f.change(e.defaultValue)}return C.value.addEventListener("reset",p),()=>{var g;(g=C.value)==null||g.removeEventListener("reset",p)}},{immediate:!0})}),()=>{var p,g,O;let{name:v,disabled:m,form:w,...M}=e,A={open:s.value===0,disabled:m,activeIndex:f.activeOptionIndex.value,activeOption:f.activeOptionIndex.value===null?null:f.virtual.value?f.virtual.value.options[(p=f.activeOptionIndex.value)!=null?p:0]:(O=(g=f.options.value[f.activeOptionIndex.value])==null?void 0:g.dataRef.value)!=null?O:null,value:T.value};return xe(Ce,[...v!=null&&T.value!=null?St({[v]:T.value}).map(([N,Z])=>xe(Ut,Ht({features:Wt.Hidden,key:N,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:w,disabled:m,name:N,value:Z}))):[],$e({theirProps:{...t,...je(M,["by","defaultValue","immediate","modelValue","multiple","nullable","onUpdate:modelValue","virtual"])},ourProps:{},slot:A,slots:n,attrs:t,name:"Combobox"})])}}}),jn=se({name:"ComboboxInput",props:{as:{type:[Object,String],default:"input"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},displayValue:{type:Function},defaultValue:{type:String,default:void 0},id:{type:String,default:null}},emits:{change:e=>!0},setup(e,{emit:n,attrs:t,slots:o,expose:s}){var i;let l=(i=e.id)!=null?i:`headlessui-combobox-input-${Ke()}`,a=Oe("ComboboxInput"),c=E(()=>it(z(a.inputRef))),u={value:!1};s({el:a.inputRef,$el:a.inputRef});function r(){a.change(null);let x=z(a.optionsRef);x&&(x.scrollTop=0),a.goToOption(V.Nothing)}let d=E(()=>{var x;let _=a.value.value;return z(a.inputRef)?typeof e.displayValue<"u"&&_!==void 0?(x=e.displayValue(_))!=null?x:"":typeof _=="string"?_:"":""});ye(()=>{Q([d,a.comboboxState,c],([x,_],[y,f])=>{if(u.value)return;let C=z(a.inputRef);C&&((f===0&&_===1||x!==y)&&(C.value=x),requestAnimationFrame(()=>{var p;if(u.value||!C||((p=c.value)==null?void 0:p.activeElement)!==C)return;let{selectionStart:g,selectionEnd:O}=C;Math.abs((O??0)-(g??0))===0&&g===0&&C.setSelectionRange(C.value.length,C.value.length)}))},{immediate:!0}),Q([a.comboboxState],([x],[_])=>{if(x===0&&_===1){if(u.value)return;let y=z(a.inputRef);if(!y)return;let f=y.value,{selectionStart:C,selectionEnd:p,selectionDirection:g}=y;y.value="",y.value=f,g!==null?y.setSelectionRange(C,p,g):y.setSelectionRange(C,p)}})});let h=B(!1);function b(){h.value=!0}function S(){Fe().nextFrame(()=>{h.value=!1})}let R=$n();function P(x){switch(u.value=!0,R(()=>{u.value=!1}),x.key){case ee.Enter:if(u.value=!1,a.comboboxState.value!==0||h.value)return;if(x.preventDefault(),x.stopPropagation(),a.activeOptionIndex.value===null){a.closeCombobox();return}a.selectActiveOption(),a.mode.value===0&&a.closeCombobox();break;case ee.ArrowDown:return u.value=!1,x.preventDefault(),x.stopPropagation(),fe(a.comboboxState.value,{0:()=>a.goToOption(V.Next),1:()=>a.openCombobox()});case ee.ArrowUp:return u.value=!1,x.preventDefault(),x.stopPropagation(),fe(a.comboboxState.value,{0:()=>a.goToOption(V.Previous),1:()=>{a.openCombobox(),rt(()=>{a.value.value||a.goToOption(V.Last)})}});case ee.Home:if(x.shiftKey)break;return u.value=!1,x.preventDefault(),x.stopPropagation(),a.goToOption(V.First);case ee.PageUp:return u.value=!1,x.preventDefault(),x.stopPropagation(),a.goToOption(V.First);case ee.End:if(x.shiftKey)break;return u.value=!1,x.preventDefault(),x.stopPropagation(),a.goToOption(V.Last);case ee.PageDown:return u.value=!1,x.preventDefault(),x.stopPropagation(),a.goToOption(V.Last);case ee.Escape:if(u.value=!1,a.comboboxState.value!==0)return;x.preventDefault(),a.optionsRef.value&&!a.optionsPropsRef.value.static&&x.stopPropagation(),a.nullable.value&&a.mode.value===0&&a.value.value===null&&r(),a.closeCombobox();break;case ee.Tab:if(u.value=!1,a.comboboxState.value!==0)return;a.mode.value===0&&a.activationTrigger.value!==1&&a.selectActiveOption(),a.closeCombobox();break}}function $(x){n("change",x),a.nullable.value&&a.mode.value===0&&x.target.value===""&&r(),a.openCombobox()}function I(x){var _,y,f;let C=(_=x.relatedTarget)!=null?_:Je.find(p=>p!==x.currentTarget);if(u.value=!1,!((y=z(a.optionsRef))!=null&&y.contains(C))&&!((f=z(a.buttonRef))!=null&&f.contains(C))&&a.comboboxState.value===0)return x.preventDefault(),a.mode.value===0&&(a.nullable.value&&a.value.value===null?r():a.activationTrigger.value!==1&&a.selectActiveOption()),a.closeCombobox()}function T(x){var _,y,f;let C=(_=x.relatedTarget)!=null?_:Je.find(p=>p!==x.currentTarget);(y=z(a.buttonRef))!=null&&y.contains(C)||(f=z(a.optionsRef))!=null&&f.contains(C)||a.disabled.value||a.immediate.value&&a.comboboxState.value!==0&&(a.openCombobox(),Fe().nextFrame(()=>{a.setActivationTrigger(1)}))}let D=E(()=>{var x,_,y,f;return(f=(y=(_=e.defaultValue)!=null?_:a.defaultValue.value!==void 0?(x=e.displayValue)==null?void 0:x.call(e,a.defaultValue.value):null)!=null?y:a.defaultValue.value)!=null?f:""});return()=>{var x,_,y,f,C,p,g;let O={open:a.comboboxState.value===0},{displayValue:v,onChange:m,...w}=e,M={"aria-controls":(x=a.optionsRef.value)==null?void 0:x.id,"aria-expanded":a.comboboxState.value===0,"aria-activedescendant":a.activeOptionIndex.value===null?void 0:a.virtual.value?(_=a.options.value.find(A=>!a.virtual.value.disabled(A.dataRef.value)&&a.compare(A.dataRef.value,a.virtual.value.options[a.activeOptionIndex.value])))==null?void 0:_.id:(y=a.options.value[a.activeOptionIndex.value])==null?void 0:y.id,"aria-labelledby":(p=(f=z(a.labelRef))==null?void 0:f.id)!=null?p:(C=z(a.buttonRef))==null?void 0:C.id,"aria-autocomplete":"list",id:l,onCompositionstart:b,onCompositionend:S,onKeydown:P,onInput:$,onFocus:T,onBlur:I,role:"combobox",type:(g=t.type)!=null?g:"text",tabIndex:0,ref:a.inputRef,defaultValue:D.value,disabled:a.disabled.value===!0?!0:void 0};return $e({ourProps:M,theirProps:w,slot:O,attrs:t,slots:o,features:ke.RenderStrategy|ke.Static,name:"ComboboxInput"})}}}),Kn=se({name:"ComboboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},hold:{type:[Boolean],default:!1}},setup(e,{attrs:n,slots:t,expose:o}){let s=Oe("ComboboxOptions"),i=`headlessui-combobox-options-${Ke()}`;o({el:s.optionsRef,$el:s.optionsRef}),be(()=>{s.optionsPropsRef.value.static=e.static}),be(()=>{s.optionsPropsRef.value.hold=e.hold});let l=Gt(),a=E(()=>l!==null?(l.value&Ee.Open)===Ee.Open:s.comboboxState.value===0);_n({container:E(()=>z(s.optionsRef)),enabled:E(()=>s.comboboxState.value===0),accept(u){return u.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:u.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(u){u.setAttribute("role","none")}});function c(u){u.preventDefault()}return()=>{var u,r,d;let h={open:s.comboboxState.value===0},b={"aria-labelledby":(d=(u=z(s.labelRef))==null?void 0:u.id)!=null?d:(r=z(s.buttonRef))==null?void 0:r.id,id:i,ref:s.optionsRef,role:"listbox","aria-multiselectable":s.mode.value===1?!0:void 0,onMousedown:c},S=je(e,["hold"]);return $e({ourProps:b,theirProps:S,slot:h,attrs:n,slots:s.virtual.value&&s.comboboxState.value===0?{...t,default:()=>[xe(Nn,{},t.default)]}:t,features:ke.RenderStrategy|ke.Static,visible:a.value,name:"ComboboxOptions"})}}}),Un=se({name:"ComboboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},order:{type:[Number],default:null}},setup(e,{slots:n,attrs:t,expose:o}){let s=Oe("ComboboxOption"),i=`headlessui-combobox-option-${Ke()}`,l=B(null),a=E(()=>e.disabled);o({el:l,$el:l});let c=E(()=>{var I;return s.virtual.value?s.activeOptionIndex.value===s.calculateIndex(e.value):s.activeOptionIndex.value===null?!1:((I=s.options.value[s.activeOptionIndex.value])==null?void 0:I.id)===i}),u=E(()=>s.isSelected(e.value)),r=lt(Mt,null),d=E(()=>({disabled:e.disabled,value:e.value,domRef:l,order:E(()=>e.order)}));ye(()=>s.registerOption(i,d)),ot(()=>s.unregisterOption(i,c.value)),be(()=>{let I=z(l);I&&(r==null||r.value.measureElement(I))}),be(()=>{s.comboboxState.value===0&&c.value&&(s.virtual.value||s.activationTrigger.value!==0&&rt(()=>{var I,T;return(T=(I=z(l))==null?void 0:I.scrollIntoView)==null?void 0:T.call(I,{block:"nearest"})}))});function h(I){I.preventDefault(),I.button===xt.Left&&(a.value||(s.selectOption(i),Jt()||requestAnimationFrame(()=>{var T;return(T=z(s.inputRef))==null?void 0:T.focus({preventScroll:!0})}),s.mode.value===0&&s.closeCombobox()))}function b(){var I;if(e.disabled||(I=s.virtual.value)!=null&&I.disabled(e.value))return s.goToOption(V.Nothing);let T=s.calculateIndex(e.value);s.goToOption(V.Specific,T)}let S=An();function R(I){S.update(I)}function P(I){var T;if(!S.wasMoved(I)||e.disabled||(T=s.virtual.value)!=null&&T.disabled(e.value)||c.value)return;let D=s.calculateIndex(e.value);s.goToOption(V.Specific,D,0)}function $(I){var T;S.wasMoved(I)&&(e.disabled||(T=s.virtual.value)!=null&&T.disabled(e.value)||c.value&&(s.optionsPropsRef.value.hold||s.goToOption(V.Nothing)))}return()=>{let{disabled:I}=e,T={active:c.value,selected:u.value,disabled:I},D={id:i,ref:l,role:"option",tabIndex:I===!0?void 0:-1,"aria-disabled":I===!0?!0:void 0,"aria-selected":u.value,disabled:void 0,onMousedown:h,onFocus:b,onPointerenter:R,onMouseenter:R,onPointermove:P,onMousemove:P,onPointerleave:$,onMouseleave:$},x=je(e,["order","value"]);return $e({ourProps:D,theirProps:x,slot:T,attrs:t,slots:n,name:"ComboboxOption"})}}});function ne(e){return Array.isArray?Array.isArray(e):kt(e)==="[object Array]"}const Hn=1/0;function Wn(e){if(typeof e=="string")return e;let n=e+"";return n=="0"&&1/e==-Hn?"-0":n}function Gn(e){return e==null?"":Wn(e)}function X(e){return typeof e=="string"}function Et(e){return typeof e=="number"}function qn(e){return e===!0||e===!1||Yn(e)&&kt(e)=="[object Boolean]"}function Ct(e){return typeof e=="object"}function Yn(e){return Ct(e)&&e!==null}function U(e){return e!=null}function Pe(e){return!e.trim().length}function kt(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const Jn="Incorrect 'index' type",Xn=e=>`Invalid value for key ${e}`,Qn=e=>`Pattern length exceeds max of ${e}.`,Zn=e=>`Missing ${e} property in key`,es=e=>`Property 'weight' in key '${e}' must be a positive integer`,Ze=Object.prototype.hasOwnProperty;class ts{constructor(n){this._keys=[],this._keyMap={};let t=0;n.forEach(o=>{let s=Rt(o);t+=s.weight,this._keys.push(s),this._keyMap[s.id]=s,t+=s.weight}),this._keys.forEach(o=>{o.weight/=t})}get(n){return this._keyMap[n]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Rt(e){let n=null,t=null,o=null,s=1,i=null;if(X(e)||ne(e))o=e,n=et(e),t=Le(e);else{if(!Ze.call(e,"name"))throw new Error(Zn("name"));const l=e.name;if(o=l,Ze.call(e,"weight")&&(s=e.weight,s<=0))throw new Error(es(l));n=et(l),t=Le(l),i=e.getFn}return{path:n,id:t,weight:s,src:o,getFn:i}}function et(e){return ne(e)?e:e.split(".")}function Le(e){return ne(e)?e.join("."):e}function ns(e,n){let t=[],o=!1;const s=(i,l,a)=>{if(U(i))if(!l[a])t.push(i);else{let c=l[a];const u=i[c];if(!U(u))return;if(a===l.length-1&&(X(u)||Et(u)||qn(u)))t.push(Gn(u));else if(ne(u)){o=!0;for(let r=0,d=u.length;re.score===n.score?e.idx{this._keysMap[t.id]=o})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,X(this.docs[0])?this.docs.forEach((n,t)=>{this._addString(n,t)}):this.docs.forEach((n,t)=>{this._addObject(n,t)}),this.norm.clear())}add(n){const t=this.size();X(n)?this._addString(n,t):this._addObject(n,t)}removeAt(n){this.records.splice(n,1);for(let t=n,o=this.size();t{let l=s.getFn?s.getFn(n):this.getFn(n,s.path);if(U(l)){if(ne(l)){let a=[];const c=[{nestedArrIndex:-1,value:l}];for(;c.length;){const{nestedArrIndex:u,value:r}=c.pop();if(U(r))if(X(r)&&!Pe(r)){let d={v:r,i:u,n:this.norm.get(r)};a.push(d)}else ne(r)&&r.forEach((d,h)=>{c.push({nestedArrIndex:h,value:d})})}o.$[i]=a}else if(X(l)&&!Pe(l)){let a={v:l,n:this.norm.get(l)};o.$[i]=a}}}),this.records.push(o)}toJSON(){return{keys:this.keys,records:this.records}}}function Tt(e,n,{getFn:t=k.getFn,fieldNormWeight:o=k.fieldNormWeight}={}){const s=new qe({getFn:t,fieldNormWeight:o});return s.setKeys(e.map(Rt)),s.setSources(n),s.create(),s}function us(e,{getFn:n=k.getFn,fieldNormWeight:t=k.fieldNormWeight}={}){const{keys:o,records:s}=e,i=new qe({getFn:n,fieldNormWeight:t});return i.setKeys(o),i.setIndexRecords(s),i}function Me(e,{errors:n=0,currentLocation:t=0,expectedLocation:o=0,distance:s=k.distance,ignoreLocation:i=k.ignoreLocation}={}){const l=n/e.length;if(i)return l;const a=Math.abs(o-t);return s?l+a/s:a?1:l}function cs(e=[],n=k.minMatchCharLength){let t=[],o=-1,s=-1,i=0;for(let l=e.length;i=n&&t.push([o,s]),o=-1)}return e[i-1]&&i-o>=n&&t.push([o,i-1]),t}const ue=32;function ds(e,n,t,{location:o=k.location,distance:s=k.distance,threshold:i=k.threshold,findAllMatches:l=k.findAllMatches,minMatchCharLength:a=k.minMatchCharLength,includeMatches:c=k.includeMatches,ignoreLocation:u=k.ignoreLocation}={}){if(n.length>ue)throw new Error(Qn(ue));const r=n.length,d=e.length,h=Math.max(0,Math.min(o,d));let b=i,S=h;const R=a>1||c,P=R?Array(d):[];let $;for(;($=e.indexOf(n,S))>-1;){let y=Me(n,{currentLocation:$,expectedLocation:h,distance:s,ignoreLocation:u});if(b=Math.min(y,b),S=$+r,R){let f=0;for(;f=p;m-=1){let w=m-1,M=t[e.charAt(w)];if(R&&(P[w]=+!!M),O[m]=(O[m+1]<<1|1)&M,y&&(O[m]|=(I[m+1]|I[m])<<1|1|I[m+1]),O[m]&x&&(T=Me(n,{errors:y,currentLocation:w,expectedLocation:h,distance:s,ignoreLocation:u}),T<=b)){if(b=T,S=w,S<=h)break;p=Math.max(1,2*h-S)}}if(Me(n,{errors:y+1,currentLocation:h,expectedLocation:h,distance:s,ignoreLocation:u})>b)break;I=O}const _={isMatch:S>=0,score:Math.max(.001,T)};if(R){const y=cs(P,a);y.length?c&&(_.indices=y):_.isMatch=!1}return _}function hs(e){let n={};for(let t=0,o=e.length;t{this.chunks.push({pattern:h,alphabet:hs(h),startIndex:b})},d=this.pattern.length;if(d>ue){let h=0;const b=d%ue,S=d-b;for(;h{const{isMatch:$,score:I,indices:T}=ds(n,S,R,{location:s+P,distance:i,threshold:l,findAllMatches:a,minMatchCharLength:c,includeMatches:o,ignoreLocation:u});$&&(h=!0),d+=I,$&&T&&(r=[...r,...T])});let b={isMatch:h,score:h?d/this.chunks.length:1};return h&&o&&(b.indices=r),b}}class le{constructor(n){this.pattern=n}static isMultiMatch(n){return tt(n,this.multiRegex)}static isSingleMatch(n){return tt(n,this.singleRegex)}search(){}}function tt(e,n){const t=e.match(n);return t?t[1]:null}class fs extends le{constructor(n){super(n)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(n){const t=n===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}}class ps extends le{constructor(n){super(n)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(n){const o=n.indexOf(this.pattern)===-1;return{isMatch:o,score:o?0:1,indices:[0,n.length-1]}}}class vs extends le{constructor(n){super(n)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(n){const t=n.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}}class ms extends le{constructor(n){super(n)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(n){const t=!n.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,n.length-1]}}}class gs extends le{constructor(n){super(n)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(n){const t=n.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[n.length-this.pattern.length,n.length-1]}}}class bs extends le{constructor(n){super(n)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(n){const t=!n.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,n.length-1]}}}class At extends le{constructor(n,{location:t=k.location,threshold:o=k.threshold,distance:s=k.distance,includeMatches:i=k.includeMatches,findAllMatches:l=k.findAllMatches,minMatchCharLength:a=k.minMatchCharLength,isCaseSensitive:c=k.isCaseSensitive,ignoreLocation:u=k.ignoreLocation}={}){super(n),this._bitapSearch=new $t(n,{location:t,threshold:o,distance:s,includeMatches:i,findAllMatches:l,minMatchCharLength:a,isCaseSensitive:c,ignoreLocation:u})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(n){return this._bitapSearch.searchIn(n)}}class _t extends le{constructor(n){super(n)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(n){let t=0,o;const s=[],i=this.pattern.length;for(;(o=n.indexOf(this.pattern,t))>-1;)t=o+i,s.push([o,t-1]);const l=!!s.length;return{isMatch:l,score:l?0:1,indices:s}}}const Be=[fs,_t,vs,ms,bs,gs,ps,At],nt=Be.length,ys=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,xs="|";function Ss(e,n={}){return e.split(xs).map(t=>{let o=t.trim().split(ys).filter(i=>i&&!!i.trim()),s=[];for(let i=0,l=o.length;i!!(e[Te.AND]||e[Te.OR]),Ms=e=>!!e[Ne.PATH],Es=e=>!ne(e)&&Ct(e)&&!Ve(e),st=e=>({[Te.AND]:Object.keys(e).map(n=>({[n]:e[n]}))});function Pt(e,n,{auto:t=!0}={}){const o=s=>{let i=Object.keys(s);const l=Ms(s);if(!l&&i.length>1&&!Ve(s))return o(st(s));if(Es(s)){const c=l?s[Ne.PATH]:i[0],u=l?s[Ne.PATTERN]:s[c];if(!X(u))throw new Error(Xn(c));const r={keyId:Le(c),pattern:u};return t&&(r.searcher=De(u,n)),r}let a={children:[],operator:i[0]};return i.forEach(c=>{const u=s[c];ne(u)&&u.forEach(r=>{a.children.push(o(r))})}),a};return Ve(e)||(e=st(e)),o(e)}function Cs(e,{ignoreFieldNorm:n=k.ignoreFieldNorm}){e.forEach(t=>{let o=1;t.matches.forEach(({key:s,norm:i,score:l})=>{const a=s?s.weight:null;o*=Math.pow(l===0&&a?Number.EPSILON:l,(a||1)*(n?1:i))}),t.score=o})}function ks(e,n){const t=e.matches;n.matches=[],U(t)&&t.forEach(o=>{if(!U(o.indices)||!o.indices.length)return;const{indices:s,value:i}=o;let l={indices:s,value:i};o.key&&(l.key=o.key.src),o.idx>-1&&(l.refIndex=o.idx),n.matches.push(l)})}function Rs(e,n){n.score=e.score}function Ts(e,n,{includeMatches:t=k.includeMatches,includeScore:o=k.includeScore}={}){const s=[];return t&&s.push(ks),o&&s.push(Rs),e.map(i=>{const{idx:l}=i,a={item:n[l],refIndex:l};return s.length&&s.forEach(c=>{c(i,a)}),a})}class pe{constructor(n,t={},o){this.options={...k,...t},this.options.useExtendedSearch,this._keyStore=new ts(this.options.keys),this.setCollection(n,o)}setCollection(n,t){if(this._docs=n,t&&!(t instanceof qe))throw new Error(Jn);this._myIndex=t||Tt(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(n){U(n)&&(this._docs.push(n),this._myIndex.add(n))}remove(n=()=>!1){const t=[];for(let o=0,s=this._docs.length;o-1&&(c=c.slice(0,t)),Ts(c,this._docs,{includeMatches:o,includeScore:s})}_searchStringList(n){const t=De(n,this.options),{records:o}=this._myIndex,s=[];return o.forEach(({v:i,i:l,n:a})=>{if(!U(i))return;const{isMatch:c,score:u,indices:r}=t.searchIn(i);c&&s.push({item:i,idx:l,matches:[{score:u,value:i,norm:a,indices:r}]})}),s}_searchLogical(n){const t=Pt(n,this.options),o=(a,c,u)=>{if(!a.children){const{keyId:d,searcher:h}=a,b=this._findMatches({key:this._keyStore.get(d),value:this._myIndex.getValueForItemAtKeyId(c,d),searcher:h});return b&&b.length?[{idx:u,item:c,matches:b}]:[]}const r=[];for(let d=0,h=a.children.length;d{if(U(a)){let u=o(t,a,c);u.length&&(i[c]||(i[c]={idx:c,item:a,matches:[]},l.push(i[c])),u.forEach(({matches:r})=>{i[c].matches.push(...r)}))}}),l}_searchObjectList(n){const t=De(n,this.options),{keys:o,records:s}=this._myIndex,i=[];return s.forEach(({$:l,i:a})=>{if(!U(l))return;let c=[];o.forEach((u,r)=>{c.push(...this._findMatches({key:u,value:l[r],searcher:t}))}),c.length&&i.push({idx:a,item:l,matches:c})}),i}_findMatches({key:n,value:t,searcher:o}){if(!U(t))return[];let s=[];if(ne(t))t.forEach(({v:i,i:l,n:a})=>{if(!U(i))return;const{isMatch:c,score:u,indices:r}=o.searchIn(i);c&&s.push({score:u,key:n,value:i,idx:l,norm:a,indices:r})});else{const{v:i,n:l}=t,{isMatch:a,score:c,indices:u}=o.searchIn(i);a&&s.push({score:c,key:n,value:i,norm:l,indices:u})}return s}}pe.version="6.6.2";pe.createIndex=Tt;pe.parseIndex=us;pe.config=k;pe.parseQuery=Pt;ws(Os);function $s(e,n,t){const o=()=>{var l,a;return new pe((l=J(n))!=null?l:[],(a=J(t))==null?void 0:a.fuseOptions)},s=B(o());Q(()=>{var l;return(l=J(t))==null?void 0:l.fuseOptions},()=>{s.value=o()},{deep:!0}),Q(()=>J(n),l=>{s.value.setCollection(l)},{deep:!0});const i=E(()=>{const l=J(t);if(l!=null&&l.matchAllWhenSearchEmpty&&!J(e))return J(n).map((c,u)=>({item:c,refIndex:u}));const a=l==null?void 0:l.resultLimit;return s.value.search(J(e),a?{limit:a}:void 0)});return{fuse:s,results:i}}const As=se({components:{HComboboxOption:Un,UIcon:Ae,UAvatar:ut,UKbd:ct},props:{group:{type:Object,required:!0},query:{type:String,default:""},groupAttribute:{type:String,required:!0},commandAttribute:{type:String,required:!0},selectedIcon:{type:String,required:!0},ui:{type:Object,required:!0}},setup(e){const n=E(()=>{const o=e.group[e.groupAttribute];return typeof o=="function"?o(e.query):o});function t(o,{indices:s,value:i}){if(o===i)return"";let l="",a=0;s.forEach(u=>{const r=u[1]+1,d=r-u[0]>=e.query.length;l+=[i.substring(a,u[0]),d&&"",i.substring(u[0],r),d&&""].filter(Boolean).join(""),a=r}),l+=i.substring(a);const c=l.indexOf("");return c>60&&(l=`...${l.substring(c-60)}`),l}return He(()=>We("$gtGjh0jlSR")),{label:n,highlight:t}}}),_s=["aria-label"],Ps=["innerHTML"];function Fs(e,n,t,o,s,i){const l=Ae,a=ut,c=ct,u=te("HComboboxOption");return L(),H("div",{class:F(e.ui.group.wrapper)},[e.label?(L(),H("h2",{key:0,class:F(e.ui.group.label)},ie(e.label),3)):q("",!0),Y("div",{class:F(e.ui.group.container),"aria-label":e.group[e.groupAttribute]},[(L(!0),H(Ce,null,Se(e.group.commands,(r,d)=>(L(),j(u,{key:`${e.group.key}-${d}`,value:r,disabled:r.disabled,as:"template"},{default:W(({active:h,selected:b})=>[Y("div",{class:F([e.ui.group.command.base,h?e.ui.group.command.active:e.ui.group.command.inactive,r.disabled?"cursor-not-allowed":"cursor-pointer"])},[Y("div",{class:F(e.ui.group.command.container)},[ae(e.$slots,`${e.group.key}-icon`,{group:e.group,command:r,active:h,selected:b},()=>[r.icon?(L(),j(l,{key:0,name:r.icon,class:F([e.ui.group.command.icon.base,h?e.ui.group.command.icon.active:e.ui.group.command.icon.inactive,r.iconClass]),"aria-hidden":"true"},null,8,["name","class"])):r.avatar?(L(),j(a,ce({key:1},{size:e.ui.group.command.avatar.size,...r.avatar},{class:e.ui.group.command.avatar.base,"aria-hidden":"true"}),null,16,["class"])):r.chip?(L(),H("span",{key:2,class:F(e.ui.group.command.chip.base),style:Xt({background:`#${r.chip}`})},null,6)):q("",!0)]),Y("div",{class:F([e.ui.group.command.label,r.disabled&&e.ui.group.command.disabled])},[ae(e.$slots,`${e.group.key}-command`,{group:e.group,command:r,active:h,selected:b},()=>{var S,R;return[r.prefix?(L(),H("span",{key:0,class:F(["flex-shrink-0",r.prefixClass||e.ui.group.command.prefix])},ie(r.prefix),3)):q("",!0),Y("span",{class:F(["truncate",{"flex-none":r.suffix||((S=r.matches)==null?void 0:S.length)}])},ie(r[e.commandAttribute]),3),(R=r.matches)!=null&&R.length?(L(),H("span",{key:1,class:F(["truncate",r.suffixClass||e.ui.group.command.suffix]),innerHTML:e.highlight(r[e.commandAttribute],r.matches[0])},null,10,Ps)):r.suffix?(L(),H("span",{key:2,class:F(["truncate",r.suffixClass||e.ui.group.command.suffix])},ie(r.suffix),3)):q("",!0)]})],2)],2),b?(L(),j(l,{key:0,name:e.selectedIcon,class:F(e.ui.group.command.selectedIcon.base),"aria-hidden":"true"},null,8,["name","class"])):h&&(e.group.active||e.$slots[`${e.group.key}-active`])?ae(e.$slots,`${e.group.key}-active`,{key:1,group:e.group,command:r,active:h,selected:b},()=>[e.group.active?(L(),H("span",{key:0,class:F(e.ui.group.active)},ie(e.group.active),3)):q("",!0)]):ae(e.$slots,`${e.group.key}-inactive`,{key:2,group:e.group,command:r,active:h,selected:b},()=>{var S;return[(S=r.shortcuts)!=null&&S.length?(L(),H("span",{key:0,class:F(e.ui.group.command.shortcuts)},[(L(!0),H(Ce,null,Se(r.shortcuts,R=>(L(),j(c,{key:R},{default:W(()=>[Qt(ie(R),1)]),_:2},1024))),128))],2)):!r.disabled&&e.group.inactive?(L(),H("span",{key:1,class:F(e.ui.group.inactive)},ie(e.group.inactive),3)):q("",!0)]})],2)]),_:2},1032,["value","disabled"]))),128))],10,_s)],2)}const Ls=Ue(As,[["render",Fs]]),he=dt(Re.ui.strategy,Re.ui.commandPalette,mn),Bs=se({components:{HCombobox:Vn,HComboboxInput:jn,HComboboxOptions:Kn,UIcon:Ae,UButton:ht,CommandPaletteGroup:Ls},inheritAttrs:!1,props:{modelValue:{type:[String,Number,Object,Array],default:null},by:{type:String,default:"id"},multiple:{type:Boolean,default:!1},nullable:{type:Boolean,default:!1},searchable:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},groups:{type:Array,default:()=>[]},icon:{type:String,default:()=>he.default.icon},loadingIcon:{type:String,default:()=>he.default.loadingIcon},selectedIcon:{type:String,default:()=>he.default.selectedIcon},closeButton:{type:Object,default:()=>he.default.closeButton},emptyState:{type:Object,default:()=>he.default.emptyState},placeholder:{type:String,default:"Search..."},groupAttribute:{type:String,default:"label"},commandAttribute:{type:String,default:"label"},autoselect:{type:Boolean,default:!0},autoclear:{type:Boolean,default:!0},debounce:{type:Number,default:200},fuse:{type:Object,default:()=>({})},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},emits:["update:modelValue","close"],setup(e,{emit:n,expose:t}){const{ui:o,attrs:s}=Ge("commandPalette",Ie(e,"ui"),he,Ie(e,"class")),i=B(""),l=B(),a=B(null),c=B(!1);ye(()=>{e.autoselect&&D()}),ye(()=>{setTimeout(()=>{var C;const y=(C=l.value)==null?void 0:C.$.provides;if(!y)return;const f=Object.getOwnPropertySymbols(y);a.value=f.length&&y[f[0]]},200)});const u=E(()=>ft({},e.fuse,{fuseOptions:{keys:[e.commandAttribute]},resultLimit:12,matchAllWhenSearchEmpty:!0})),r=E(()=>{var f;const y=[];for(const C of e.groups)C.search||y.push(...((f=C.commands)==null?void 0:f.map(p=>({...p,group:C.key})))||[]);return y}),d=B({}),{results:h}=$s(i,r,u);function b(y,f){if(y)return y.filter&&typeof y.filter=="function"&&(f=y.filter(i.value,f)),{...y,commands:f.slice(0,u.value.resultLimit)}}const S=E(()=>{if(!h.value)return[];const y=h.value.reduce((p,g)=>{var m;const{item:O,...v}=g;return O.group&&(p[m=O.group]||(p[m]=[]),p[O.group].push({...O,...v})),p},{}),f=Object.entries(y).map(([p,g])=>{const O=e.groups.find(v=>v.key===p);return O?b(O,g):null}).filter(Boolean),C=e.groups.filter(p=>{var g;return!!p.search&&((g=d.value[p.key])==null?void 0:g.length)}).map(p=>{const g=d.value[p.key]||[];return b(p,[...g])});return[...f,...C]}),R=pt(async()=>{const y=e.groups.filter(f=>!!f.search);y.length&&(c.value=!0,await Promise.all(y.map(async f=>{d.value[f.key]=await f.search(i.value)})),c.value=!1,T())},e.debounce);Q(i,()=>{R(),T()});const P=E(()=>(e.loading||c.value)&&e.loadingIcon?e.loadingIcon:e.icon),$=E(()=>Zt(o.value.input.icon.base,o.value.input.icon.size,(e.loading||c.value)&&e.loadingIcon&&o.value.input.icon.loading)),I=E(()=>e.emptyState===null?null:{...o.value.default.emptyState,...e.emptyState});function T(){setTimeout(()=>{var y;(y=l.value)==null||y.$el.dispatchEvent(new KeyboardEvent("keydown",{key:"PageUp"}))},0)}function D(){setTimeout(()=>{var y;(y=l.value)==null||y.$el.dispatchEvent(new KeyboardEvent("keydown",{key:"ArrowDown"}))},0)}function x(y){n("update:modelValue",y,{query:i.value}),e.autoclear&&setTimeout(()=>{i.value=""},0)}function _(){i.value?i.value="":n("close")}return t({query:i,updateQuery:y=>{i.value=y},comboboxApi:a,results:h}),He(()=>We("$nXScvyky9v")),{ui:o,attrs:s,groups:S,comboboxInput:l,query:i,iconName:P,iconClass:$,emptyState:I,onSelect:x,onClear:_}}});function zs(e,n,t,o,s,i){const l=Ae,a=te("HComboboxInput"),c=ht,u=te("CommandPaletteGroup"),r=te("HComboboxOptions"),d=te("HCombobox");return L(),j(d,ce({by:e.by,"model-value":e.modelValue,multiple:e.multiple,nullable:e.nullable,class:e.ui.wrapper},e.attrs,{as:"div","onUpdate:modelValue":e.onSelect}),{default:W(()=>[en(Y("div",{class:F(e.ui.input.wrapper)},[e.iconName?(L(),j(l,{key:0,name:e.iconName,class:F(e.iconClass),"aria-hidden":"true"},null,8,["name","class"])):q("",!0),ge(a,{ref:"comboboxInput",value:e.query,class:F([e.ui.input.base,e.ui.input.size,e.ui.input.height,e.ui.input.padding,e.icon&&e.ui.input.icon.padding,e.closeButton&&e.ui.input.closeButton.padding]),placeholder:e.placeholder,"aria-label":e.placeholder,autocomplete:"off",onChange:n[0]||(n[0]=h=>e.query=h.target.value)},null,8,["value","class","placeholder","aria-label"]),e.closeButton?(L(),j(c,ce({key:1,"aria-label":"Close"},{...e.ui.default.closeButton||{},...e.closeButton},{class:e.ui.input.closeButton.base,onClick:e.onClear}),null,16,["class","onClick"])):q("",!0)],2),[[tn,e.searchable]]),e.groups.length?(L(),j(r,{key:0,static:"",hold:"",as:"div","aria-label":"Commands",class:F(e.ui.container)},{default:W(()=>[(L(!0),H(Ce,null,Se(e.groups,h=>(L(),j(u,{key:h.key,query:e.query,group:h,"group-attribute":e.groupAttribute,"command-attribute":e.commandAttribute,"selected-icon":e.selectedIcon,ui:e.ui},vt({_:2},[Se(e.$slots,(b,S)=>({name:S,fn:W(R=>[ae(e.$slots,S,mt(gt(R)))])}))]),1032,["query","group","group-attribute","command-attribute","selected-icon","ui"]))),128))]),_:3},8,["class"])):e.emptyState?ae(e.$slots,"empty-state",{key:1},()=>[Y("div",{class:F(e.ui.emptyState.wrapper)},[e.emptyState.icon?(L(),j(l,{key:0,name:e.emptyState.icon,class:F(e.ui.emptyState.icon),"aria-hidden":"true"},null,8,["name","class"])):q("",!0),Y("p",{class:F(e.query?e.ui.emptyState.queryLabel:e.ui.emptyState.label)},ie(e.query?e.emptyState.queryLabel:e.emptyState.label),3)],2)]):q("",!0)]),_:3},16,["by","model-value","multiple","nullable","class","onUpdate:modelValue"])}const Ds=Ue(Bs,[["render",zs]]),Ns=dt(Re.ui.strategy,Re.ui.modal,gn),Vs=se({components:{HDialog:nn,HDialogPanel:sn,TransitionRoot:on,TransitionChild:an},inheritAttrs:!1,props:{modelValue:{type:Boolean,default:!1},appear:{type:Boolean,default:!1},overlay:{type:Boolean,default:!0},transition:{type:Boolean,default:!0},preventClose:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},emits:["update:modelValue","close","close-prevented","after-leave"],setup(e,{emit:n}){const{ui:t,attrs:o}=Ge("modal",Ie(e,"ui"),Ns,Ie(e,"class")),s=E({get(){return e.modelValue},set(c){n("update:modelValue",c)}}),i=E(()=>e.transition?{...t.value.transition}:{});function l(c){if(e.preventClose){n("close-prevented");return}s.value=c,n("close")}const a=()=>{n("after-leave")};return He(()=>We("$KPpxWmR9XK")),{ui:t,attrs:o,isOpen:s,transitionClass:i,onAfterLeave:a,close:l}}});function js(e,n,t,o,s,i){const l=te("TransitionChild"),a=te("HDialogPanel"),c=te("HDialog"),u=te("TransitionRoot");return L(),j(u,{appear:e.appear,show:e.isOpen,as:"template",onAfterLeave:e.onAfterLeave},{default:W(()=>[ge(c,ce({class:e.ui.wrapper},e.attrs,{onClose:e.close}),{default:W(()=>[e.overlay?(L(),j(l,ce({key:0,as:"template",appear:e.appear},e.ui.overlay.transition),{default:W(()=>[Y("div",{class:F([e.ui.overlay.base,e.ui.overlay.background])},null,2)]),_:1},16,["appear"])):q("",!0),Y("div",{class:F(e.ui.inner)},[Y("div",{class:F([e.ui.container,!e.fullscreen&&e.ui.padding])},[ge(l,ce({as:"template",appear:e.appear},e.transitionClass),{default:W(()=>[ge(a,{class:F([e.ui.base,e.ui.background,e.ui.ring,e.ui.shadow,e.fullscreen?e.ui.fullscreen:[e.ui.width,e.ui.height,e.ui.rounded,e.ui.margin]])},{default:W(()=>[ae(e.$slots,"default")]),_:3},8,["class"])]),_:3},16,["appear"])],2)],2)]),_:3},16,["class","onClose"])]),_:3},8,["appear","show","onAfterLeave"])}const Ks=Ue(Vs,[["render",js]]),Ft=e=>{if(!e.children)return e._path;for(const n of(e==null?void 0:e.children)||[]){const t=Ft(n);if(t)return t}},Lt=(e,n)=>{for(const t of n){if(t._path===e&&!t._id)return t.children;if(t.children){const o=Lt(e,t.children);if(o)return o}}},Bt=(e,n)=>{for(const t of n){if(t._path===e)return t;if(t.children){const o=Bt(e,t.children);if(o)return o}}},Us=(e,n,t)=>{let o;const s=(i,l)=>{for(const a of l)if(!(i!=="/"&&a._path==="/")){if(i!=null&&i.startsWith(a._path)&&a[n]&&(o=a[n]),a._path===i)return;a.children&&s(i,a.children)}};return s(e,t),o},Hs=()=>({navBottomLink:Ft,navDirFromPath:Lt,navPageFromPath:Bt,navKeyFromPath:Us});function Ws(...e){return E(()=>e.every(n=>J(n)))}function Gs(e){return E(()=>!J(e))}const qs=/^[^-]+.*-.*[^-]+$/,Ys=/^[^_]+.*_.*[^_]+$/,Js=(e,n={})=>{const{macOS:t,usingInput:o}=bt();let s=[];const i=B([]),l=()=>{i.value.splice(0,i.value.length)},a=pt(l,n.chainDelay??800),c=u=>{if(!u.key)return;const r=/^[a-z]{1}$/i.test(u.key);let d;if(i.value.push(u.key),i.value.length>=2){d=i.value.slice(-2).join("-");for(const h of s.filter(b=>b.chained))if(h.key===d){h.condition.value&&(u.preventDefault(),h.handler()),l();return}}for(const h of s.filter(b=>!b.chained))if(u.key.toLowerCase()===h.key&&u.metaKey===h.metaKey&&u.ctrlKey===h.ctrlKey&&!(r&&u.shiftKey!==h.shiftKey)){h.condition.value&&(u.preventDefault(),h.handler()),l();return}a()};s=Object.entries(e).map(([u,r])=>{var S,R;if(!r)return null;let d;u.includes("-")&&u!=="-"&&!((S=u.match(qs))!=null&&S.length)&&console.trace(`[Shortcut] Invalid key: "${u}"`),u.includes("_")&&u!=="_"&&!((R=u.match(Ys))!=null&&R.length)&&console.trace(`[Shortcut] Invalid key: "${u}"`);const h=u.includes("-")&&u!=="-";if(h)d={key:u.toLowerCase(),metaKey:!1,ctrlKey:!1,shiftKey:!1,altKey:!1};else{const P=u.toLowerCase().split("_").map($=>$);d={key:P.filter($=>!["meta","ctrl","shift","alt"].includes($)).join("_"),metaKey:P.includes("meta"),ctrlKey:P.includes("ctrl"),shiftKey:P.includes("shift"),altKey:P.includes("alt")}}if(d.chained=h,!t.value&&d.metaKey&&!d.ctrlKey&&(d.metaKey=!1,d.ctrlKey=!0),typeof r=="function"?d.handler=r:typeof r=="object"&&(d={...d,handler:r.handler}),!d.handler)return console.trace("[Shortcut] Invalid value"),null;const b=[];return r.usingInput?typeof r.usingInput=="string"&&b.push(E(()=>o.value===r.usingInput)):b.push(Gs(o)),d.condition=Ws(...b,...r.whenever||[]),d}).filter(Boolean),ln("keydown",c)},Xs=se({inheritAttrs:!1,__name:"ContentSearch",props:{modelValue:{type:Boolean,default:void 0},files:{type:Array,default:()=>[]},navigation:{type:Array,default:()=>[]},links:{type:Array,default:()=>[]},groups:{type:Array,default:()=>[]},fuse:{type:Object,default:()=>({})},hideColorMode:{type:Boolean,default:!1},ui:{type:Object,default:()=>({})}},emits:["update:modelValue"],setup(e,{expose:n,emit:t}){const o=rn(),s=E(()=>({padding:"p-0 sm:p-4",rounded:"rounded-none sm:rounded-lg",width:"sm:max-w-3xl",height:"h-dvh sm:h-[28rem]",commandPalette:{input:{height:"h-[--header-height] sm:h-12",icon:{size:"h-5 w-5",padding:"ps-11"}},group:{command:{prefix:"!text-foreground after:content-['_>']"}},container:"scroll-py-10"},fileIcon:{name:"i-heroicons-document-text"},default:{closeButton:{icon:o.ui.icons.close,color:"gray",variant:"ghost",size:"sm"}}})),i=e,l=t,a=un(),{navKeyFromPath:c}=Hs(),{usingInput:u}=bt(),{isContentSearchModalOpen:r}=cn(),d=dn(vn),h=hn(),{ui:b,attrs:S}=Ge("content.search",Ie(i,"ui"),s,void 0,!0),R=d.smaller("sm"),P=B();function $(v){var m;return v.icon?v.icon:(m=v.navigation)!=null&&m.icon?v.navigation.icon:(i.navigation&&(v.icon=c(v._path,"icon",i.navigation)),v.icon||b.value.fileIcon.name)}const I=E({get(){return i.modelValue!==void 0?i.modelValue:r.value},set(v){i.modelValue!==void 0?l("update:modelValue",v):r.value=v}}),T=E(()=>ft({},i.fuse,{fuseOptions:{ignoreLocation:!0,includeMatches:!0,threshold:.1,keys:[{name:"title",weight:5},{name:"label",weight:5},{name:"suffix",weight:3},"children.children.value","children.children.children.value","children.children.children.children.value","children.children.children.children.children.value"]},resultLimit:12}));function D(v,m){return v?m:m==null?void 0:m.filter(w=>!w.child)}const x=E(()=>{var m,w;let v=[];return(m=i.navigation)!=null&&m.length&&(i.navigation.some(M=>{var A;return!!((A=M.children)!=null&&A.length)})?v=(i.navigation||[]).map(M=>({key:M._path,label:M.title,commands:(i.files||[]).filter(A=>{var N;return(N=A._path)==null?void 0:N.startsWith(M._path)}).flatMap(A=>y(A,M)),filter:D})):v=[{key:"docs",commands:(i.files||[]).flatMap(M=>y(M)),filter:D}]),[((w=i.links)==null?void 0:w.length)&&{key:"links",label:"Links",commands:i.links.flatMap(M=>[M.to&&{id:a.resolve(M.to).fullPath,...M,icon:M.icon||b.value.fileIcon.name},...(M.children||[]).map(A=>({id:a.resolve(A.to).fullPath,prefix:M.label,suffix:A.description,...A,icon:A.icon||M.icon||b.value.fileIcon.name}))]).filter(Boolean)},...v,...i.groups||[],!(h!=null&&h.forced)&&!i.hideColorMode&&{key:"theme",label:"Theme",commands:[{id:"theme-light",label:"Light",icon:o.ui.icons.light,disabled:h.preference==="light",click:()=>{h.preference="light"}},{id:"theme-dark",label:"Dark",icon:o.ui.icons.dark,disabled:h.preference==="dark",click:()=>{h.preference="dark"}}]}].filter(Boolean)}),_=E(()=>I.value||!u.value);function y(v,m){var M,A,N,Z,ve;const w=(M=fn((m==null?void 0:m.children)||[],v))==null?void 0:M.map(({title:G})=>G).join(" > ");return[{id:v._id,label:((A=v.navigation)==null?void 0:A.title)||v.title,title:((N=v.navigation)==null?void 0:N.title)||v.title,prefix:w,to:v._path,suffix:v.description,children:C(p(((Z=v==null?void 0:v.body)==null?void 0:Z.children)||[])),icon:$(v)},...Object.entries(g(((ve=v==null?void 0:v.body)==null?void 0:ve.children)||[])).map(([G,{title:re,children:we}])=>{var me;if(re)return{id:`${v._path}${G}`,label:re,prefix:(w?`${w} > `:"")+`${((me=v.navigation)==null?void 0:me.title)||v.title}`,to:`${v._path}${G}`,children:C(we),icon:$(v),child:!0}})].filter(Boolean)}function f(v){return(v==null?void 0:v.map(m=>{var w,M;if(["code","code-inline","em","a","strong"].includes(m.tag))return{type:"text",value:((M=(w=m.children)==null?void 0:w.find(A=>A.type==="text"))==null?void 0:M.value)||""};if(m.type==="text")return m}).filter(Boolean))||[]}function C(v){return v.map(m=>{if(["pre","style","video"].includes(m.tag))return;let w=[...m.children||[]];return["p","h1","h2","h3","h4","h5","h6","li","td","th"].includes(m.tag)&&w.length?(w=f(w).reduce((M,A)=>(M.length&&M[M.length-1].type==="text"?M[M.length-1].value+=A.value||"":M.push({...A}),M),[]),{...m,children:w}):{...m,children:C(w)}}).filter(Boolean)}function p(v){const m=[];for(const w of v){if(["h1","h2","h3"].includes(w.tag))break;m.push(w)}return m}function g(v){var A,N,Z,ve;const m={};let w="",M="";for(const G of v)["h1","h2","h3"].includes(G.tag)&&(M=((Z=(N=(A=G.children)==null?void 0:A.map(re=>{var we,me;if(re.type==="text")return re.value;if(["code","code-inline","em","a","strong"].includes(re.tag))return(me=(we=re.children)==null?void 0:we.find(zt=>zt.type==="text"))==null?void 0:me.value}))==null?void 0:N.filter(Boolean))==null?void 0:Z.join(" "))||"",M&&((ve=G.props)!=null&&ve.id)&&(w=`#${encodeURIComponent(G.props.id)}`)),m[w]?m[w].children.push(G):m[w]={children:[G],title:M};return m}function O(v){I.value=!1;const m=v[0];m&&(m.click?m.click():m.to?m.target==="_blank"||m.to.startsWith("http")?window.open(m.to,m.target||"_blank"):a.push(m.to):m.href&&window.open(m.href,"_blank"))}return Js({meta_k:{usingInput:!0,whenever:[_],handler:()=>{I.value=!I.value}},escape:{usingInput:!0,whenever:[I],handler:()=>{I.value=!1}}}),n({commandPaletteRef:P}),(v,m)=>{const w=Ds,M=Ks;return L(),j(M,{modelValue:K(I),"onUpdate:modelValue":m[1]||(m[1]=A=>pn(I)?I.value=A:null),overlay:!K(R),transition:!K(R),ui:K(b)},{default:W(()=>[ge(w,ce({ref_key:"commandPaletteRef",ref:P,"model-value":[],groups:K(x),ui:K(b).commandPalette,"close-button":K(b).default.closeButton,fuse:K(T),multiple:""},K(S),{"onUpdate:modelValue":O,onClose:m[0]||(m[0]=A=>I.value=!1)}),vt({_:2},[Se(v.$slots,(A,N)=>({name:N,fn:W(Z=>[ae(v.$slots,N,mt(gt(Z)))])}))]),1040,["groups","ui","close-button","fuse"])]),_:3},8,["modelValue","overlay","transition","ui"])}}}),Zs=(e,n)=>(console.warn("[@nuxt/ui-pro] `DocsSearch` is deprecated, use `ContentSearch` instead."),xe(Xs,n.attrs,n.slots));export{Zs as default}; diff --git a/_nuxt/BkwiVK2a.js b/_nuxt/C8UhvDYG.js similarity index 65% rename from _nuxt/BkwiVK2a.js rename to _nuxt/C8UhvDYG.js index fcea57a70..75770a81f 100644 --- a/_nuxt/BkwiVK2a.js +++ b/_nuxt/C8UhvDYG.js @@ -1 +1 @@ -import{f as n}from"./BneCoJRQ.js";import{aj as i}from"./DV7eKLeG.js";const e=(t,r,f,...a)=>t[r]?i({...t,[r]:()=>n(t[r](),f==null?void 0:f.unwrap)},r,f,...a):i(t,r,f,...a);export{e as r}; +import{f as n}from"./BneCoJRQ.js";import{aj as i}from"./5uFLRXWz.js";const e=(t,r,f,...a)=>t[r]?i({...t,[r]:()=>n(t[r](),f==null?void 0:f.unwrap)},r,f,...a):i(t,r,f,...a);export{e as r}; diff --git a/_nuxt/nP97wql7.js b/_nuxt/CBUXt5An.js similarity index 65% rename from _nuxt/nP97wql7.js rename to _nuxt/CBUXt5An.js index 3d28bc7d7..df3e464be 100644 --- a/_nuxt/nP97wql7.js +++ b/_nuxt/CBUXt5An.js @@ -1 +1 @@ -import{l as o,c as r,e as t,aj as s}from"./DV7eKLeG.js";const c={};function n(e,a){return r(),t("tbody",null,[s(e.$slots,"default")])}const d=o(c,[["render",n]]);export{d as default}; +import{l as o,c as r,e as t,aj as s}from"./5uFLRXWz.js";const c={};function n(e,a){return r(),t("tbody",null,[s(e.$slots,"default")])}const d=o(c,[["render",n]]);export{d as default}; diff --git a/_nuxt/F3_pL7L9.js b/_nuxt/CC5Gbaz8.js similarity index 77% rename from _nuxt/F3_pL7L9.js rename to _nuxt/CC5Gbaz8.js index 64c914037..3b4fd896b 100644 --- a/_nuxt/F3_pL7L9.js +++ b/_nuxt/CC5Gbaz8.js @@ -1 +1 @@ -import{d as n,V as e}from"./DV7eKLeG.js";const r=n({name:"DocumentDrivenEmpty",props:{value:{type:Object,required:!0}},render({value:t}){return e("div",void 0,[e("p","Document is empty"),e("p",`Add content to it by opening ${t._source}/${t._file} file.`)])}});export{r as default}; +import{d as n,V as e}from"./5uFLRXWz.js";const r=n({name:"DocumentDrivenEmpty",props:{value:{type:Object,required:!0}},render({value:t}){return e("div",void 0,[e("p","Document is empty"),e("p",`Add content to it by opening ${t._source}/${t._file} file.`)])}});export{r as default}; diff --git a/_nuxt/Rj-Lyql8.js b/_nuxt/CC5oXipo.js similarity index 75% rename from _nuxt/Rj-Lyql8.js rename to _nuxt/CC5oXipo.js index 3ef23019b..91b474221 100644 --- a/_nuxt/Rj-Lyql8.js +++ b/_nuxt/CC5oXipo.js @@ -1 +1 @@ -import{d as u,aV as n,a_ as i,b8 as o}from"./DV7eKLeG.js";import{u as d}from"./QA-ib-BQ.js";import"./Cp7Md9uy.js";const h=u({props:{query:{type:Object,required:!1,default:()=>({})}},async setup(a){const{fetchReleases:t}=d(),{data:r,refresh:e,pending:s}=await n(`github-releases-${i(a.query)}`,()=>t(a.query));return{releases:r,refresh:e,pending:s}},render({releases:a,refresh:t,pending:r}){var s;const e=o();return(s=e==null?void 0:e.default)==null?void 0:s.call(e,{releases:a,refresh:t,pending:r})}});export{h as default}; +import{d as u,aV as n,a_ as i,b8 as o}from"./5uFLRXWz.js";import{u as d}from"./B3cAN6Fg.js";import"./Cp7Md9uy.js";const h=u({props:{query:{type:Object,required:!1,default:()=>({})}},async setup(a){const{fetchReleases:t}=d(),{data:r,refresh:e,pending:s}=await n(`github-releases-${i(a.query)}`,()=>t(a.query));return{releases:r,refresh:e,pending:s}},render({releases:a,refresh:t,pending:r}){var s;const e=o();return(s=e==null?void 0:e.default)==null?void 0:s.call(e,{releases:a,refresh:t,pending:r})}});export{h as default}; diff --git a/_nuxt/AWJ_kHPD.js b/_nuxt/CEwbEEzK.js similarity index 98% rename from _nuxt/AWJ_kHPD.js rename to _nuxt/CEwbEEzK.js index abce24bec..79e642221 100644 --- a/_nuxt/AWJ_kHPD.js +++ b/_nuxt/CEwbEEzK.js @@ -1 +1 @@ -import{d as j,u as D,a as Z,r as M,o as ee,_ as te,b as ne,c as b,e as q,n as oe,F as ie,f as w,g as L,h as B,w as z,T as J,t as ae,i as H,p as se,j as re,k as de,l as ce,m as le,q as ue,s as pe,v as we,x as O,y as W,z as G,A as ve,B as fe,C as F}from"./DV7eKLeG.js";const A=i=>(se("data-v-b47ca61c"),i=i(),re(),i),me=A(()=>w("svg",{viewBox:"0 0 90 90",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[w("path",{d:"M50.0016 71.0999h29.2561c.9293.0001 1.8422-.241 2.6469-.6992.8047-.4582 1.4729-1.1173 1.9373-1.9109.4645-.7936.7088-1.6939.7083-2.6102-.0004-.9162-.2455-1.8163-.7106-2.6095L64.192 29.713c-.4644-.7934-1.1325-1.4523-1.937-1.9105-.8046-.4581-1.7173-.6993-2.6463-.6993-.9291 0-1.8418.2412-2.6463.6993-.8046.4582-1.4726 1.1171-1.937 1.9105l-5.0238 8.5861-9.8224-16.7898c-.4648-.7934-1.1332-1.4522-1.938-1.9102-.8047-.4581-1.7176-.6992-2.6468-.6992-.9292 0-1.842.2411-2.6468.6992-.8048.458-1.4731 1.1168-1.9379 1.9102L6.56062 63.2701c-.46512.7932-.71021 1.6933-.71061 2.6095-.00041.9163.24389 1.8166.70831 2.6102.46443.7936 1.1326 1.4527 1.93732 1.9109.80473.4582 1.71766.6993 2.64686.6992h18.3646c7.2763 0 12.6422-3.1516 16.3345-9.3002l8.9642-15.3081 4.8015-8.1925 14.4099 24.6083H54.8058l-4.8042 8.1925ZM29.2077 62.899l-12.8161-.0028L35.603 30.0869l9.5857 16.4047-6.418 10.9645c-2.4521 3.9894-5.2377 5.4429-9.563 5.4429Z",fill:"currentColor"})],-1)),he=A(()=>w("span",null,[w("a",{href:"https://nuxt.studio",target:"_blank",rel:"noopener"},"Nuxt Studio"),de(": Preview enabled")],-1)),ye={key:0},_e=A(()=>w("div",{id:"__preview_background"},null,-1)),ge=A(()=>w("svg",{id:"__preview_loading_icon",width:"32",height:"32",viewBox:"0 0 24 24"},[w("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 0 0 4.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 0 1-15.357-2m15.357 2H15"})],-1)),Ie=A(()=>w("p",null,"Initializing the preview...",-1)),ke={key:0},Ce=A(()=>w("div",{id:"__preview_background"},null,-1)),Pe={id:"__preview_loader"},Se=j({__name:"ContentPreviewMode",props:{previewToken:{type:String,required:!0},apiURL:{type:String,required:!0},syncPreview:{type:Function,required:!0},requestPreviewSyncAPI:{type:Function,required:!0}},setup(i){const s=i,t=["__nuxt_preview","__preview_enabled"],l=D(),_=Z(),u=M(!0),k=M(!1),e=M(!1),o=M("");let n;const a=async()=>{H("previewToken").value="",window.sessionStorage.removeItem("previewToken"),window.sessionStorage.removeItem("previewAPI"),await _.replace({query:{preview:void 0}}),window.location.reload()},m=async p=>{const v=await s.syncPreview(p);if(e.value!==!0){if(!v){setTimeout(()=>m(p),1e3);return}H("previewToken").value&&(e.value=!0,await _.replace({query:{}}),l.callHook("nuxt-studio:preview:ready"),window.parent&&window.self!==window.parent&&n.disconnect())}};return ee(async()=>{n=(await te(()=>import("./CF3NOiUn.js"),[],import.meta.url)).connect(`${s.apiURL}/preview`,{transports:["websocket","polling"],auth:{token:s.previewToken}});let v;n.on("connect",()=>{v=setTimeout(()=>{e.value||(v=setTimeout(()=>{o.value="Preview sync timed out",e.value=!1},3e4),n.emit("draft:requestSync"))},3e4)});const P=()=>{v&&(clearTimeout(v),v=null)};n.on("draft:sync",async S=>{if(P(),!S){try{n.once("draft:ready",()=>{n.emit("draft:requestSync")}),await s.requestPreviewSyncAPI()}catch(T){switch(P(),T.response.status){case 404:o.value="Preview draft not found",e.value=!1;break;default:o.value="An error occurred while syncing preview",e.value=!1}}return}m(S)}),n.on("draft:unauthorized",()=>{P(),o.value="Unauthorized preview",e.value=!1}),n.on("disconnect",()=>{P()}),document.body.classList.add(...t),n.on("draft:update",S=>{k.value=!0,s.syncPreview(S),k.value=!1})}),ne(()=>{document.body.classList.remove(...t)}),(p,v)=>(b(),q("div",null,[u.value?(b(),q("div",{key:0,id:"__nuxt_preview",class:oe({__preview_ready:e.value,__preview_refreshing:k.value})},[e.value?(b(),q(ie,{key:0},[me,he,w("button",{onClick:a}," Close ")],64)):L("",!0)],2)):L("",!0),B(J,{name:"preview-loading"},{default:z(()=>[u.value&&!e.value&&!o.value?(b(),q("div",ye,[_e,w("div",{id:"__preview_loader"},[ge,Ie,w("button",{onClick:a}," Cancel ")])])):L("",!0)]),_:1}),B(J,{name:"preview-loading"},{default:z(()=>[o.value?(b(),q("div",ke,[Ce,w("div",Pe,[w("p",null,ae(o.value),1),w("button",{onClick:a}," Exit preview ")])])):L("",!0)]),_:1})]))}}),xe=ce(Se,[["__scopeId","data-v-b47ca61c"]]),Ae=(i=[],s,t)=>{const l=[...s||[]],_=[...t||[]],u=JSON.parse(JSON.stringify(i));for(const e of l)if(e.new)u.push({path:e.path,parsed:e.parsed});else if(e.oldPath)if(_.splice(_.findIndex(n=>n.path===e.oldPath),1),l.find(n=>n.path===e.oldPath))u.push({path:e.path,parsed:e.parsed});else{const n=u.find(a=>a.path===e.oldPath);n&&(n.path=e.path,e.parsed?n.parsed=e.parsed:e.pathMeta&&["_file","_path","_id","_locale"].forEach(a=>{n.parsed[a]=e.pathMeta[a]}))}else{const o=u.find(n=>n.path===e.path);o?Object.assign(o,{path:e.path,parsed:e.parsed}):u.push({path:e.path,parsed:e.parsed})}for(const e of _)u.splice(u.findIndex(o=>o.path===e.path),1);const k=new Intl.Collator(void 0,{numeric:!0});return u.sort((e,o)=>k.compare(e.path,o.path)),u},I={appConfig:"app.config.ts",appConfigV4:"app/app.config.ts",nuxtConfig:"nuxt.config.ts"},Te=le((i,s,t)=>{if(Array.isArray(i[s])&&Array.isArray(t))return i[s]=t,!0}),be=i=>{let s;return t=>(s||(s=i()),s)};function Q(i,s){for(const t in i){const l=s[t];t in s||delete i[t],l!==null&&typeof l=="object"&&Q(i[t],s[t])}}function X(i,s){for(const t in s){const l=s[t];l!==null&&typeof l=="object"?Array.isArray(l)&&Array.isArray(i[t])?i[t]=l:(i[t]=i[t]||{},X(i[t],l)):i[t]=l}}const qe=()=>{const i=D(),s={},t=ue("studio-client-db",()=>null);t.value||(i.hook("content:storage",o=>{t.value=o}),pe("/non-existing-path").findOne());const l=async o=>{var m,p,v;const n=window.sessionStorage.getItem("previewToken");if(!o)return null;o=o.replace(/\/$/,"");let a=await((m=t.value)==null?void 0:m.getItem(`${n}:${o}`));return a||(a=await((p=t.value)==null?void 0:p.getItem(`cached:${o}`))),a||(a=a=await((v=t.value)==null?void 0:v.getItem(o))),a||(a=s[o||"/"]),a};return{storage:t,findContentItem:l,updateContentItem:(o,n)=>{var a;t.value&&(s[n.parsed._path]=n.parsed,t.value.setItem(`${o}:${(a=n.parsed)==null?void 0:a._id}`,JSON.stringify(n.parsed)))},removeContentItem:async(o,n)=>{var m;const a=await l(n);if(await((m=t.value)==null?void 0:m.removeItem(`${o}:${n}`)),a){delete s[a._path];const p=await l(a._id);p&&(s[p._path]=p)}},removeAllContentItems:async o=>{const n=await t.value.getKeys(`${o}:`);await Promise.all(n.map(a=>t.value.removeItem(a)))},setPreviewMetaItems:async(o,n)=>{const a=new Set(n.map(m=>m.parsed._id.split(":").shift()));await t.value.setItem(`${o}$`,JSON.stringify({ignoreSources:Array.from(a)}))}}},Me=be(()=>JSON.parse(JSON.stringify(G())));let V=[];const Ke=()=>{const i=D(),{storage:s,findContentItem:t,updateContentItem:l,removeContentItem:_,removeAllContentItems:u,setPreviewMetaItems:k}=qe(),{studio:e,content:o}=we().public,n=window.sessionStorage.getItem("previewAPI")||(e==null?void 0:e.apiURL),a=Me(),m=async c=>{const r=window.sessionStorage.getItem("previewToken");u(r),k(r,c),await Promise.all(c.map(f=>{l(r,f)}))},p=c=>{const r=W(i,G);r!=null&&r.ui&&(r.ui.icons={...r.ui.icons,dynamic:!0}),X(r,Te(c,a)),c||Q(r,a)},v=async c=>{if(V=c.files=c.files||V||[],!s.value)return!1;V=[];const r=Ae(c.files,c.additions,c.deletions),f=r.filter(C=>![I.appConfig,I.appConfigV4,I.nuxtConfig].includes(C.path));await m(f);const h=r.find(C=>[I.appConfig,I.appConfigV4].includes(C.path));return p(h==null?void 0:h.parsed),T(),!0},P=async()=>{const c=window.sessionStorage.getItem("previewToken");await $fetch("api/projects/preview/sync",{baseURL:n,method:"POST",params:{token:c}})},S=()=>{const c=window.sessionStorage.getItem("previewToken"),r=document.createElement("div");r.id="__nuxt_preview_wrapper",document.body.appendChild(r),ve(xe,{previewToken:c,apiURL:n,syncPreview:v,requestPreviewSyncAPI:P}).mount(r)},T=async()=>{if(o!=null&&o.documentDriven){const{pages:c}=W(i,fe),r=await Promise.all(Object.keys(c.value).map(async f=>{var h;return await t(((h=c.value[f])==null?void 0:h._id)??f)}));c.value=r.reduce((f,h,C)=>(h&&(f[Object.keys(c.value)[C]]=h),f),{})}await i.hooks.callHookParallel("app:data:refresh")};return{mountPreviewUI:S,initiateIframeCommunication:Y};function Y(){if(!window.parent||window.self===window.parent)return;const c=Z(),r=O(),f=M(""),h=d=>({path:d.path,query:F(d.query),params:F(d.params),fullPath:d.fullPath,meta:F(d.meta)});window.addEventListener("keydown",d=>{(d.metaKey||d.ctrlKey||d.altKey||d.shiftKey)&&window.parent.postMessage({type:"nuxt-studio:preview:keydown",payload:{key:d.key,metaKey:d.metaKey,ctrlKey:d.ctrlKey,shiftKey:d.shiftKey,altKey:d.altKey}},"*")}),window.addEventListener("message",async d=>{var U;if(!["https://nuxt.studio","https://new.nuxt.studio","https://new.dev.nuxt.studio","https://dev.nuxt.studio","http://localhost:3000",...((U=e==null?void 0:e.iframeMessagingAllowedOrigins)==null?void 0:U.split(",").map(y=>y.trim()))||[]].includes(d.origin))return;const{type:N,payload:R={}}=d.data||{};switch(N){case"nuxt-studio:editor:file-selected":{const y=await t(R.path);y&&(y._partial||!String(R.path).endsWith(".md")||y._path!==O().path&&(f.value=y._path,c.push(y._path)));break}case"nuxt-studio:editor:media-changed":case"nuxt-studio:editor:file-changed":{const y=window.sessionStorage.getItem("previewToken"),{additions:$=[],deletions:x=[]}=R;for(const K of $)await l(y,K);for(const K of x)await _(y,K.path);T();break}case"nuxt-studio:config:file-changed":{const{additions:y=[],deletions:$=[]}=R,x=y.find(E=>[I.appConfig,I.appConfigV4].includes(E.path));x&&p(x==null?void 0:x.parsed),$.find(E=>[I.appConfig,I.appConfigV4].includes(E.path))&&p(void 0)}}}),i.hook("page:finish",()=>{C(),i.payload.prerenderedAt&&T()}),i.hook("content:document-driven:finish",({route:d,page:g})=>{d.meta.studio_page_contentId=g==null?void 0:g._id}),i.hook("nuxt-studio:preview:ready",()=>{window.parent.postMessage({type:"nuxt-studio:preview:ready",payload:h(O())},"*"),setTimeout(()=>{C()},100)});function C(){const d=Array.from(window.document.querySelectorAll("[data-content-id]")).map(N=>N.getAttribute("data-content-id")),g=Array.from(new Set([r.meta.studio_page_contentId,...d])).filter(Boolean);if(f.value===g[0]){f.value="";return}window.openContentInStudioEditor(g,{navigate:!0,pageContentId:r.meta.studio_page_contentId})}window.openContentInStudioEditor=(d,g={})=>{window.parent.postMessage({type:"nuxt-studio:preview:navigate",payload:{...h(r),contentIds:d,...g}},"*")}}};export{Ke as useStudio}; +import{d as j,u as D,a as Z,r as M,o as ee,_ as te,b as ne,c as b,e as q,n as oe,F as ie,f as w,g as L,h as B,w as z,T as J,t as ae,i as H,p as se,j as re,k as de,l as ce,m as le,q as ue,s as pe,v as we,x as O,y as W,z as G,A as ve,B as fe,C as F}from"./5uFLRXWz.js";const A=i=>(se("data-v-b47ca61c"),i=i(),re(),i),me=A(()=>w("svg",{viewBox:"0 0 90 90",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[w("path",{d:"M50.0016 71.0999h29.2561c.9293.0001 1.8422-.241 2.6469-.6992.8047-.4582 1.4729-1.1173 1.9373-1.9109.4645-.7936.7088-1.6939.7083-2.6102-.0004-.9162-.2455-1.8163-.7106-2.6095L64.192 29.713c-.4644-.7934-1.1325-1.4523-1.937-1.9105-.8046-.4581-1.7173-.6993-2.6463-.6993-.9291 0-1.8418.2412-2.6463.6993-.8046.4582-1.4726 1.1171-1.937 1.9105l-5.0238 8.5861-9.8224-16.7898c-.4648-.7934-1.1332-1.4522-1.938-1.9102-.8047-.4581-1.7176-.6992-2.6468-.6992-.9292 0-1.842.2411-2.6468.6992-.8048.458-1.4731 1.1168-1.9379 1.9102L6.56062 63.2701c-.46512.7932-.71021 1.6933-.71061 2.6095-.00041.9163.24389 1.8166.70831 2.6102.46443.7936 1.1326 1.4527 1.93732 1.9109.80473.4582 1.71766.6993 2.64686.6992h18.3646c7.2763 0 12.6422-3.1516 16.3345-9.3002l8.9642-15.3081 4.8015-8.1925 14.4099 24.6083H54.8058l-4.8042 8.1925ZM29.2077 62.899l-12.8161-.0028L35.603 30.0869l9.5857 16.4047-6.418 10.9645c-2.4521 3.9894-5.2377 5.4429-9.563 5.4429Z",fill:"currentColor"})],-1)),he=A(()=>w("span",null,[w("a",{href:"https://nuxt.studio",target:"_blank",rel:"noopener"},"Nuxt Studio"),de(": Preview enabled")],-1)),ye={key:0},_e=A(()=>w("div",{id:"__preview_background"},null,-1)),ge=A(()=>w("svg",{id:"__preview_loading_icon",width:"32",height:"32",viewBox:"0 0 24 24"},[w("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 0 0 4.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 0 1-15.357-2m15.357 2H15"})],-1)),Ie=A(()=>w("p",null,"Initializing the preview...",-1)),ke={key:0},Ce=A(()=>w("div",{id:"__preview_background"},null,-1)),Pe={id:"__preview_loader"},Se=j({__name:"ContentPreviewMode",props:{previewToken:{type:String,required:!0},apiURL:{type:String,required:!0},syncPreview:{type:Function,required:!0},requestPreviewSyncAPI:{type:Function,required:!0}},setup(i){const s=i,t=["__nuxt_preview","__preview_enabled"],l=D(),_=Z(),u=M(!0),k=M(!1),e=M(!1),o=M("");let n;const a=async()=>{H("previewToken").value="",window.sessionStorage.removeItem("previewToken"),window.sessionStorage.removeItem("previewAPI"),await _.replace({query:{preview:void 0}}),window.location.reload()},m=async p=>{const v=await s.syncPreview(p);if(e.value!==!0){if(!v){setTimeout(()=>m(p),1e3);return}H("previewToken").value&&(e.value=!0,await _.replace({query:{}}),l.callHook("nuxt-studio:preview:ready"),window.parent&&window.self!==window.parent&&n.disconnect())}};return ee(async()=>{n=(await te(()=>import("./CF3NOiUn.js"),[],import.meta.url)).connect(`${s.apiURL}/preview`,{transports:["websocket","polling"],auth:{token:s.previewToken}});let v;n.on("connect",()=>{v=setTimeout(()=>{e.value||(v=setTimeout(()=>{o.value="Preview sync timed out",e.value=!1},3e4),n.emit("draft:requestSync"))},3e4)});const P=()=>{v&&(clearTimeout(v),v=null)};n.on("draft:sync",async S=>{if(P(),!S){try{n.once("draft:ready",()=>{n.emit("draft:requestSync")}),await s.requestPreviewSyncAPI()}catch(T){switch(P(),T.response.status){case 404:o.value="Preview draft not found",e.value=!1;break;default:o.value="An error occurred while syncing preview",e.value=!1}}return}m(S)}),n.on("draft:unauthorized",()=>{P(),o.value="Unauthorized preview",e.value=!1}),n.on("disconnect",()=>{P()}),document.body.classList.add(...t),n.on("draft:update",S=>{k.value=!0,s.syncPreview(S),k.value=!1})}),ne(()=>{document.body.classList.remove(...t)}),(p,v)=>(b(),q("div",null,[u.value?(b(),q("div",{key:0,id:"__nuxt_preview",class:oe({__preview_ready:e.value,__preview_refreshing:k.value})},[e.value?(b(),q(ie,{key:0},[me,he,w("button",{onClick:a}," Close ")],64)):L("",!0)],2)):L("",!0),B(J,{name:"preview-loading"},{default:z(()=>[u.value&&!e.value&&!o.value?(b(),q("div",ye,[_e,w("div",{id:"__preview_loader"},[ge,Ie,w("button",{onClick:a}," Cancel ")])])):L("",!0)]),_:1}),B(J,{name:"preview-loading"},{default:z(()=>[o.value?(b(),q("div",ke,[Ce,w("div",Pe,[w("p",null,ae(o.value),1),w("button",{onClick:a}," Exit preview ")])])):L("",!0)]),_:1})]))}}),xe=ce(Se,[["__scopeId","data-v-b47ca61c"]]),Ae=(i=[],s,t)=>{const l=[...s||[]],_=[...t||[]],u=JSON.parse(JSON.stringify(i));for(const e of l)if(e.new)u.push({path:e.path,parsed:e.parsed});else if(e.oldPath)if(_.splice(_.findIndex(n=>n.path===e.oldPath),1),l.find(n=>n.path===e.oldPath))u.push({path:e.path,parsed:e.parsed});else{const n=u.find(a=>a.path===e.oldPath);n&&(n.path=e.path,e.parsed?n.parsed=e.parsed:e.pathMeta&&["_file","_path","_id","_locale"].forEach(a=>{n.parsed[a]=e.pathMeta[a]}))}else{const o=u.find(n=>n.path===e.path);o?Object.assign(o,{path:e.path,parsed:e.parsed}):u.push({path:e.path,parsed:e.parsed})}for(const e of _)u.splice(u.findIndex(o=>o.path===e.path),1);const k=new Intl.Collator(void 0,{numeric:!0});return u.sort((e,o)=>k.compare(e.path,o.path)),u},I={appConfig:"app.config.ts",appConfigV4:"app/app.config.ts",nuxtConfig:"nuxt.config.ts"},Te=le((i,s,t)=>{if(Array.isArray(i[s])&&Array.isArray(t))return i[s]=t,!0}),be=i=>{let s;return t=>(s||(s=i()),s)};function Q(i,s){for(const t in i){const l=s[t];t in s||delete i[t],l!==null&&typeof l=="object"&&Q(i[t],s[t])}}function X(i,s){for(const t in s){const l=s[t];l!==null&&typeof l=="object"?Array.isArray(l)&&Array.isArray(i[t])?i[t]=l:(i[t]=i[t]||{},X(i[t],l)):i[t]=l}}const qe=()=>{const i=D(),s={},t=ue("studio-client-db",()=>null);t.value||(i.hook("content:storage",o=>{t.value=o}),pe("/non-existing-path").findOne());const l=async o=>{var m,p,v;const n=window.sessionStorage.getItem("previewToken");if(!o)return null;o=o.replace(/\/$/,"");let a=await((m=t.value)==null?void 0:m.getItem(`${n}:${o}`));return a||(a=await((p=t.value)==null?void 0:p.getItem(`cached:${o}`))),a||(a=a=await((v=t.value)==null?void 0:v.getItem(o))),a||(a=s[o||"/"]),a};return{storage:t,findContentItem:l,updateContentItem:(o,n)=>{var a;t.value&&(s[n.parsed._path]=n.parsed,t.value.setItem(`${o}:${(a=n.parsed)==null?void 0:a._id}`,JSON.stringify(n.parsed)))},removeContentItem:async(o,n)=>{var m;const a=await l(n);if(await((m=t.value)==null?void 0:m.removeItem(`${o}:${n}`)),a){delete s[a._path];const p=await l(a._id);p&&(s[p._path]=p)}},removeAllContentItems:async o=>{const n=await t.value.getKeys(`${o}:`);await Promise.all(n.map(a=>t.value.removeItem(a)))},setPreviewMetaItems:async(o,n)=>{const a=new Set(n.map(m=>m.parsed._id.split(":").shift()));await t.value.setItem(`${o}$`,JSON.stringify({ignoreSources:Array.from(a)}))}}},Me=be(()=>JSON.parse(JSON.stringify(G())));let V=[];const Ke=()=>{const i=D(),{storage:s,findContentItem:t,updateContentItem:l,removeContentItem:_,removeAllContentItems:u,setPreviewMetaItems:k}=qe(),{studio:e,content:o}=we().public,n=window.sessionStorage.getItem("previewAPI")||(e==null?void 0:e.apiURL),a=Me(),m=async c=>{const r=window.sessionStorage.getItem("previewToken");u(r),k(r,c),await Promise.all(c.map(f=>{l(r,f)}))},p=c=>{const r=W(i,G);r!=null&&r.ui&&(r.ui.icons={...r.ui.icons,dynamic:!0}),X(r,Te(c,a)),c||Q(r,a)},v=async c=>{if(V=c.files=c.files||V||[],!s.value)return!1;V=[];const r=Ae(c.files,c.additions,c.deletions),f=r.filter(C=>![I.appConfig,I.appConfigV4,I.nuxtConfig].includes(C.path));await m(f);const h=r.find(C=>[I.appConfig,I.appConfigV4].includes(C.path));return p(h==null?void 0:h.parsed),T(),!0},P=async()=>{const c=window.sessionStorage.getItem("previewToken");await $fetch("api/projects/preview/sync",{baseURL:n,method:"POST",params:{token:c}})},S=()=>{const c=window.sessionStorage.getItem("previewToken"),r=document.createElement("div");r.id="__nuxt_preview_wrapper",document.body.appendChild(r),ve(xe,{previewToken:c,apiURL:n,syncPreview:v,requestPreviewSyncAPI:P}).mount(r)},T=async()=>{if(o!=null&&o.documentDriven){const{pages:c}=W(i,fe),r=await Promise.all(Object.keys(c.value).map(async f=>{var h;return await t(((h=c.value[f])==null?void 0:h._id)??f)}));c.value=r.reduce((f,h,C)=>(h&&(f[Object.keys(c.value)[C]]=h),f),{})}await i.hooks.callHookParallel("app:data:refresh")};return{mountPreviewUI:S,initiateIframeCommunication:Y};function Y(){if(!window.parent||window.self===window.parent)return;const c=Z(),r=O(),f=M(""),h=d=>({path:d.path,query:F(d.query),params:F(d.params),fullPath:d.fullPath,meta:F(d.meta)});window.addEventListener("keydown",d=>{(d.metaKey||d.ctrlKey||d.altKey||d.shiftKey)&&window.parent.postMessage({type:"nuxt-studio:preview:keydown",payload:{key:d.key,metaKey:d.metaKey,ctrlKey:d.ctrlKey,shiftKey:d.shiftKey,altKey:d.altKey}},"*")}),window.addEventListener("message",async d=>{var U;if(!["https://nuxt.studio","https://new.nuxt.studio","https://new.dev.nuxt.studio","https://dev.nuxt.studio","http://localhost:3000",...((U=e==null?void 0:e.iframeMessagingAllowedOrigins)==null?void 0:U.split(",").map(y=>y.trim()))||[]].includes(d.origin))return;const{type:N,payload:R={}}=d.data||{};switch(N){case"nuxt-studio:editor:file-selected":{const y=await t(R.path);y&&(y._partial||!String(R.path).endsWith(".md")||y._path!==O().path&&(f.value=y._path,c.push(y._path)));break}case"nuxt-studio:editor:media-changed":case"nuxt-studio:editor:file-changed":{const y=window.sessionStorage.getItem("previewToken"),{additions:$=[],deletions:x=[]}=R;for(const K of $)await l(y,K);for(const K of x)await _(y,K.path);T();break}case"nuxt-studio:config:file-changed":{const{additions:y=[],deletions:$=[]}=R,x=y.find(E=>[I.appConfig,I.appConfigV4].includes(E.path));x&&p(x==null?void 0:x.parsed),$.find(E=>[I.appConfig,I.appConfigV4].includes(E.path))&&p(void 0)}}}),i.hook("page:finish",()=>{C(),i.payload.prerenderedAt&&T()}),i.hook("content:document-driven:finish",({route:d,page:g})=>{d.meta.studio_page_contentId=g==null?void 0:g._id}),i.hook("nuxt-studio:preview:ready",()=>{window.parent.postMessage({type:"nuxt-studio:preview:ready",payload:h(O())},"*"),setTimeout(()=>{C()},100)});function C(){const d=Array.from(window.document.querySelectorAll("[data-content-id]")).map(N=>N.getAttribute("data-content-id")),g=Array.from(new Set([r.meta.studio_page_contentId,...d])).filter(Boolean);if(f.value===g[0]){f.value="";return}window.openContentInStudioEditor(g,{navigate:!0,pageContentId:r.meta.studio_page_contentId})}window.openContentInStudioEditor=(d,g={})=>{window.parent.postMessage({type:"nuxt-studio:preview:navigate",payload:{...h(r),contentIds:d,...g}},"*")}}};export{Ke as useStudio}; diff --git a/_nuxt/CFvSqwIT.js b/_nuxt/CFvSqwIT.js deleted file mode 100644 index a031b9825..000000000 --- a/_nuxt/CFvSqwIT.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o}from"./DXNMbFcI.js";import{d as t,V as n}from"./DV7eKLeG.js";import"./BneCoJRQ.js";const s=t({props:{use:{type:Function,default:void 0},unwrap:{type:[Boolean,String],default:!1}},render(e){return n(o,e)}});export{s as default}; diff --git a/_nuxt/CdBVoTOT.js b/_nuxt/CKpxsayX.js similarity index 65% rename from _nuxt/CdBVoTOT.js rename to _nuxt/CKpxsayX.js index cee9e0af6..2ffb3aa21 100644 --- a/_nuxt/CdBVoTOT.js +++ b/_nuxt/CKpxsayX.js @@ -1 +1 @@ -import{l as r,c as t,e as a,aj as o}from"./DV7eKLeG.js";const s={};function c(e,l){return t(),a("table",null,[o(e.$slots,"default")])}const f=r(s,[["render",c]]);export{f as default}; +import{l as r,c as t,e as a,aj as o}from"./5uFLRXWz.js";const s={};function c(e,l){return t(),a("table",null,[o(e.$slots,"default")])}const f=r(s,[["render",c]]);export{f as default}; diff --git a/_nuxt/CVAM_eGo.js b/_nuxt/CVAM_eGo.js new file mode 100644 index 000000000..53d4e7d09 --- /dev/null +++ b/_nuxt/CVAM_eGo.js @@ -0,0 +1 @@ +import{_ as o}from"./DqYI4N-U.js";import"./nO3zWEPC.js";import"./5uFLRXWz.js";import"./CbCDpNlC.js";export{o as default}; diff --git a/_nuxt/BC4Kh9UJ.js b/_nuxt/CbCDpNlC.js similarity index 93% rename from _nuxt/BC4Kh9UJ.js rename to _nuxt/CbCDpNlC.js index f3a46ab24..6b57ab613 100644 --- a/_nuxt/BC4Kh9UJ.js +++ b/_nuxt/CbCDpNlC.js @@ -1 +1 @@ -import{bq as d,br as u,d as l,ap as b,r as _,c as m,ai as y,E as f,ao as C}from"./DV7eKLeG.js";function v(t={}){const{copy:c,isSupported:i}=d(),o=u();function r(e,n={},a={}){i&&c(e).then(()=>{!n.title&&!n.description||o.add({...n,...t})},function(p){o.add({...a,description:a.description||p.message,...t})})}return{copy:r}}const k=l({__name:"ProseCodeButton",props:{code:{type:String,required:!0}},setup(t){const c=t,i={icon:{copy:"i-heroicons-clipboard-document",copied:"i-heroicons-clipboard-document-check"}},{ui:o}=b("content.prose.code.button",void 0,i,void 0,!0),r=v({timeout:2e3}),e=_(o.value.icon.copy);function n(){r.copy(c.code,{title:"Copied to clipboard!"}),e.value=o.value.icon.copied,setTimeout(()=>{e.value=o.value.icon.copy},2e3)}return(a,p)=>{const s=C;return m(),y(s,{icon:f(e),color:"gray",variant:"link",size:"xs","aria-label":"Copy code to clipboard",tabindex:"-1",onClick:n},null,8,["icon"])}}});export{k as _}; +import{bq as d,br as u,d as l,ap as b,r as _,c as m,ai as y,E as f,ao as C}from"./5uFLRXWz.js";function v(t={}){const{copy:c,isSupported:i}=d(),o=u();function r(e,n={},a={}){i&&c(e).then(()=>{!n.title&&!n.description||o.add({...n,...t})},function(p){o.add({...a,description:a.description||p.message,...t})})}return{copy:r}}const k=l({__name:"ProseCodeButton",props:{code:{type:String,required:!0}},setup(t){const c=t,i={icon:{copy:"i-heroicons-clipboard-document",copied:"i-heroicons-clipboard-document-check"}},{ui:o}=b("content.prose.code.button",void 0,i,void 0,!0),r=v({timeout:2e3}),e=_(o.value.icon.copy);function n(){r.copy(c.code,{title:"Copied to clipboard!"}),e.value=o.value.icon.copied,setTimeout(()=>{e.value=o.value.icon.copy},2e3)}return(a,p)=>{const s=C;return m(),y(s,{icon:f(e),color:"gray",variant:"link",size:"xs","aria-label":"Copy code to clipboard",tabindex:"-1",onClick:n},null,8,["icon"])}}});export{k as _}; diff --git a/_nuxt/4UEM0VaZ.js b/_nuxt/Ce9WXhE4.js similarity index 92% rename from _nuxt/4UEM0VaZ.js rename to _nuxt/Ce9WXhE4.js index 2a621a646..d65f0d0fc 100644 --- a/_nuxt/4UEM0VaZ.js +++ b/_nuxt/Ce9WXhE4.js @@ -1 +1 @@ -import{d as l,z as u,D as d,ap as m,c as _,e as h,h as s,w as f,f as g,n as o,E as a,aj as x,ab as w,aL as v}from"./DV7eKLeG.js";const y=["id"],k=l({__name:"ProseH2",props:{id:{type:String,required:!0}},setup(n){const t=u(),r=d(()=>({wrapper:"scroll-mt-[calc(48px+48px+var(--header-height))] lg:scroll-mt-[calc(48px+var(--header-height))]",icon:{wrapper:"-ml-6 pr-2 py-2 inline-flex opacity-0 group-hover:lg:opacity-100 transition-opacity absolute",base:"w-4 h-4 text-primary",name:t.ui.icons.hash}})),{ui:e}=m("content.prose.h2",void 0,r,void 0,!0);return(c,C)=>{const i=w,p=v;return _(),h("h2",{id:n.id,class:o(a(e).wrapper)},[s(p,{href:`#${n.id}`,class:"group"},{default:f(()=>[g("div",{class:o(a(e).icon.wrapper)},[s(i,{name:a(e).icon.name,class:o(a(e).icon.base)},null,8,["name","class"])],2),x(c.$slots,"default")]),_:3},8,["href"])],10,y)}}});export{k as _}; +import{d as l,z as u,D as d,ap as m,c as _,e as h,h as s,w as f,f as g,n as o,E as a,aj as x,ab as w,aL as v}from"./5uFLRXWz.js";const y=["id"],k=l({__name:"ProseH2",props:{id:{type:String,required:!0}},setup(n){const t=u(),r=d(()=>({wrapper:"scroll-mt-[calc(48px+48px+var(--header-height))] lg:scroll-mt-[calc(48px+var(--header-height))]",icon:{wrapper:"-ml-6 pr-2 py-2 inline-flex opacity-0 group-hover:lg:opacity-100 transition-opacity absolute",base:"w-4 h-4 text-primary",name:t.ui.icons.hash}})),{ui:e}=m("content.prose.h2",void 0,r,void 0,!0);return(c,C)=>{const i=w,p=v;return _(),h("h2",{id:n.id,class:o(a(e).wrapper)},[s(p,{href:`#${n.id}`,class:"group"},{default:f(()=>[g("div",{class:o(a(e).icon.wrapper)},[s(i,{name:a(e).icon.name,class:o(a(e).icon.base)},null,8,["name","class"])],2),x(c.$slots,"default")]),_:3},8,["href"])],10,y)}}});export{k as _}; diff --git a/_nuxt/bXKbWHrB.js b/_nuxt/CgMG10Xn.js similarity index 99% rename from _nuxt/bXKbWHrB.js rename to _nuxt/CgMG10Xn.js index 4cd6c4190..e80d72fd8 100644 --- a/_nuxt/bXKbWHrB.js +++ b/_nuxt/CgMG10Xn.js @@ -1 +1 @@ -import{d as Q,bl as nn,C as ln,D as en,V as O,ag as on,bm as F,bn as w,aZ as tn,bo as rn,bp as an}from"./DV7eKLeG.js";import{f as un}from"./BneCoJRQ.js";class S{constructor(e,o,t){this.property=e,this.normal=o,t&&(this.space=t)}}S.prototype.property={};S.prototype.normal={};S.prototype.space=null;function H(n,e){const o={},t={};let r=-1;for(;++r4&&o.slice(0,4)==="data"&&gn.test(e)){if(e.charAt(4)==="-"){const a=e.slice(5).replace(j,yn);t="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=e.slice(4);if(!j.test(a)){let s=a.replace(hn,mn);s.charAt(0)!=="-"&&(s="-"+s),e="data"+s}}r=A}return new r(t,e)}function mn(n){return"-"+n.toLowerCase()}function yn(n){return n.charAt(1).toUpperCase()}const vn=H([N,V,K,X,pn],"html"),Un=H([N,V,K,X,dn],"svg"),E=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"],R="default",Y=/^@|^v-on:/,$=/^:|^v-bind:/,Z=/^v-model/,bn=["select","textarea","input"],kn=Object.fromEntries(["p","a","blockquote","code","pre","code","em","h1","h2","h3","h4","h5","h6","hr","img","ul","ol","li","strong","table","thead","tbody","td","th","tr","script"].map(n=>[n,`prose-${n}`])),Bn=Q({name:"MDCRenderer",props:{body:{type:Object,required:!0},data:{type:Object,default:()=>({})},class:{type:[String,Object],default:void 0},tag:{type:[String,Boolean],default:void 0},prose:{type:Boolean,default:void 0},components:{type:Object,default:()=>({})},unwrap:{type:[Boolean,String],default:!1}},async setup(n){var s,i,c,h,f,p,y,B;const e=(c=(i=(s=nn())==null?void 0:s.appContext)==null?void 0:i.app)==null?void 0:c.$nuxt,o=(e==null?void 0:e.$route)||(e==null?void 0:e._route),{mdc:t}=((h=e==null?void 0:e.$config)==null?void 0:h.public)||{},r={...(f=t==null?void 0:t.components)!=null&&f.prose&&n.prose!==!1?kn:{},...((p=t==null?void 0:t.components)==null?void 0:p.map)||{},...ln(((B=(y=n.data)==null?void 0:y.mdc)==null?void 0:B.components)||{}),...n.components},a=en(()=>{var z;const G=(((z=n.body)==null?void 0:z.children)||[]).map(x=>x.tag||x.type).filter(x=>!E.includes(x));return Array.from(new Set(G)).sort().join(".")});return await Tn(n.body,{tags:r}),{tags:r,contentKey:a,route:o}},render(n){var p,y;const{tags:e,tag:o,body:t,data:r,contentKey:a,route:s,unwrap:i}=n;if(!t)return null;const c={...r,tags:e,$route:s},h=o!==!1?U(o||((p=c.component)==null?void 0:p.name)||c.component||"div"):void 0;return h?O(h,{...(y=c.component)==null?void 0:y.props,class:n.class,...this.$attrs,key:a},{default:f}):f==null?void 0:f();function f(){return i?un(T(t,O,c,c).default(),typeof i=="string"?i.split(" "):["*"]):T(t,O,c,c).default()}}});function Cn(n,e,o,t={}){if(n.type==="text")return e(w,n.value);if(n.type==="comment")return e(rn,null,n.value);const r=n.tag,a=J(n,o.tags);if(n.tag==="binding")return Sn(n,e,o,t);const s=U(a);typeof s=="object"&&(s.tag=r);const i=xn(n,o);return e(s,i,T(n,e,o,{...t,...i}))}function Sn(n,e,o,t={}){var h,f;const r={...t,$document:o,$doc:o},a=/\.|\[(\d+)\]/,i=((h=n.props)==null?void 0:h.value.trim().split(a).filter(Boolean)).reduce((p,y)=>{if(p&&y in p)return typeof p[y]=="function"?p[y]():p[y]},r),c=(f=n.props)==null?void 0:f.defaultValue;return e(w,i??c??"")}function T(n,e,o,t){const a=(n.children||[]).reduce((i,c)=>{if(!Mn(c))return i[R].push(c),i;const h=Ln(c);return i[h]=i[h]||[],c.type==="element"&&i[h].push(...c.children||[]),i},{[R]:[]});return Object.entries(a).reduce((i,[c,h])=>(h.length&&(i[c]=()=>{const f=h.map(p=>Cn(p,e,o,t));return Rn(f)}),i),{})}function xn(n,e){const{tag:o="",props:t={}}=n;return Object.keys(t).reduce(function(r,a){if(a==="__ignoreMap")return r;const s=t[a];if(Z.test(a)&&!bn.includes(o))return wn(a,s,r,e);if(a==="v-bind")return Pn(a,s,r,e);if(Y.test(a))return On(a,s,r,e);if($.test(a))return Dn(a,s,r,e);const{attribute:i}=fn(vn,a);return Array.isArray(s)&&s.every(c=>typeof c=="string")?(r[i]=s.join(" "),r):(r[i]=s,r)},{})}function wn(n,e,o,t){const r=p=>+p,a=p=>p.trim(),s=p=>p,i=n.replace(Z,"").split(".").filter(p=>p).reduce((p,y)=>(p[y]=!0,p),{}),c="value",h=i.lazy?"change":"input",f=i.number?r:i.trim?a:s;return o[c]=P(e,t),o.on=o.on||{},o.on[h]=p=>t[e]=f(p),o}function Pn(n,e,o,t){const r=P(e,t);return o=Object.assign(o,r),o}function On(n,e,o,t){return n=n.replace(Y,""),o.on=o.on||{},o.on[n]=()=>P(e,t),o}function Dn(n,e,o,t){return n=n.replace($,""),o[n]=P(e,t),o}const U=n=>{if(!E.includes(n)&&!(n!=null&&n.render)&&!(n!=null&&n.ssrRender)){const e=on(F(n),!1);if(typeof e=="object")return e}return n};function P(n,e){const o=n.split(".").reduce((t,r)=>typeof t=="object"?t[r]:void 0,e);return typeof o>"u"?an(n):o}function Ln(n){let e="";for(const o of Object.keys(n.props||{}))if(!(!o.startsWith("#")&&!o.startsWith("v-slot:"))){e=o.split(/[:#]/,2)[1];break}return e||R}function Mn(n){return n.tag==="template"}function Rn(n){const e=[];for(const o of n){const t=e[e.length-1];o.type===w&&(t==null?void 0:t.type)===w?t.children=t.children+o.children:e.push(o)}return e}async function Tn(n,e){if(!n)return;const o=Array.from(new Set(t(n,e)));await Promise.all(o.map(async r=>{if(r!=null&&r.render||r!=null&&r.ssrRender||r!=null&&r.__ssrInlineRender)return;const a=U(r);a!=null&&a.__asyncLoader&&!a.__asyncResolved&&await a.__asyncLoader()}));function t(r,a){const s=r.tag;if(r.type==="text"||s==="binding"||r.type==="comment")return[];const i=J(r,a.tags),c=[];r.type!=="root"&&!E.includes(i)&&c.push(i);for(const h of r.children||[])c.push(...t(h,a));return c}}function J(n,e){var t;const o=n.tag;return!o||typeof((t=n.props)==null?void 0:t.__ignoreMap)<"u"?o:e[o]||e[F(o)]||e[tn(n.tag)]||o}export{Bn as _,E as a,fn as f,vn as h,L as n,Un as s}; +import{d as Q,bl as nn,C as ln,D as en,V as O,ag as on,bm as F,bn as w,aZ as tn,bo as rn,bp as an}from"./5uFLRXWz.js";import{f as un}from"./BneCoJRQ.js";class S{constructor(e,o,t){this.property=e,this.normal=o,t&&(this.space=t)}}S.prototype.property={};S.prototype.normal={};S.prototype.space=null;function H(n,e){const o={},t={};let r=-1;for(;++r4&&o.slice(0,4)==="data"&&gn.test(e)){if(e.charAt(4)==="-"){const a=e.slice(5).replace(j,yn);t="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=e.slice(4);if(!j.test(a)){let s=a.replace(hn,mn);s.charAt(0)!=="-"&&(s="-"+s),e="data"+s}}r=A}return new r(t,e)}function mn(n){return"-"+n.toLowerCase()}function yn(n){return n.charAt(1).toUpperCase()}const vn=H([N,V,K,X,pn],"html"),Un=H([N,V,K,X,dn],"svg"),E=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"],R="default",Y=/^@|^v-on:/,$=/^:|^v-bind:/,Z=/^v-model/,bn=["select","textarea","input"],kn=Object.fromEntries(["p","a","blockquote","code","pre","code","em","h1","h2","h3","h4","h5","h6","hr","img","ul","ol","li","strong","table","thead","tbody","td","th","tr","script"].map(n=>[n,`prose-${n}`])),Bn=Q({name:"MDCRenderer",props:{body:{type:Object,required:!0},data:{type:Object,default:()=>({})},class:{type:[String,Object],default:void 0},tag:{type:[String,Boolean],default:void 0},prose:{type:Boolean,default:void 0},components:{type:Object,default:()=>({})},unwrap:{type:[Boolean,String],default:!1}},async setup(n){var s,i,c,h,f,p,y,B;const e=(c=(i=(s=nn())==null?void 0:s.appContext)==null?void 0:i.app)==null?void 0:c.$nuxt,o=(e==null?void 0:e.$route)||(e==null?void 0:e._route),{mdc:t}=((h=e==null?void 0:e.$config)==null?void 0:h.public)||{},r={...(f=t==null?void 0:t.components)!=null&&f.prose&&n.prose!==!1?kn:{},...((p=t==null?void 0:t.components)==null?void 0:p.map)||{},...ln(((B=(y=n.data)==null?void 0:y.mdc)==null?void 0:B.components)||{}),...n.components},a=en(()=>{var z;const G=(((z=n.body)==null?void 0:z.children)||[]).map(x=>x.tag||x.type).filter(x=>!E.includes(x));return Array.from(new Set(G)).sort().join(".")});return await Tn(n.body,{tags:r}),{tags:r,contentKey:a,route:o}},render(n){var p,y;const{tags:e,tag:o,body:t,data:r,contentKey:a,route:s,unwrap:i}=n;if(!t)return null;const c={...r,tags:e,$route:s},h=o!==!1?U(o||((p=c.component)==null?void 0:p.name)||c.component||"div"):void 0;return h?O(h,{...(y=c.component)==null?void 0:y.props,class:n.class,...this.$attrs,key:a},{default:f}):f==null?void 0:f();function f(){return i?un(T(t,O,c,c).default(),typeof i=="string"?i.split(" "):["*"]):T(t,O,c,c).default()}}});function Cn(n,e,o,t={}){if(n.type==="text")return e(w,n.value);if(n.type==="comment")return e(rn,null,n.value);const r=n.tag,a=J(n,o.tags);if(n.tag==="binding")return Sn(n,e,o,t);const s=U(a);typeof s=="object"&&(s.tag=r);const i=xn(n,o);return e(s,i,T(n,e,o,{...t,...i}))}function Sn(n,e,o,t={}){var h,f;const r={...t,$document:o,$doc:o},a=/\.|\[(\d+)\]/,i=((h=n.props)==null?void 0:h.value.trim().split(a).filter(Boolean)).reduce((p,y)=>{if(p&&y in p)return typeof p[y]=="function"?p[y]():p[y]},r),c=(f=n.props)==null?void 0:f.defaultValue;return e(w,i??c??"")}function T(n,e,o,t){const a=(n.children||[]).reduce((i,c)=>{if(!Mn(c))return i[R].push(c),i;const h=Ln(c);return i[h]=i[h]||[],c.type==="element"&&i[h].push(...c.children||[]),i},{[R]:[]});return Object.entries(a).reduce((i,[c,h])=>(h.length&&(i[c]=()=>{const f=h.map(p=>Cn(p,e,o,t));return Rn(f)}),i),{})}function xn(n,e){const{tag:o="",props:t={}}=n;return Object.keys(t).reduce(function(r,a){if(a==="__ignoreMap")return r;const s=t[a];if(Z.test(a)&&!bn.includes(o))return wn(a,s,r,e);if(a==="v-bind")return Pn(a,s,r,e);if(Y.test(a))return On(a,s,r,e);if($.test(a))return Dn(a,s,r,e);const{attribute:i}=fn(vn,a);return Array.isArray(s)&&s.every(c=>typeof c=="string")?(r[i]=s.join(" "),r):(r[i]=s,r)},{})}function wn(n,e,o,t){const r=p=>+p,a=p=>p.trim(),s=p=>p,i=n.replace(Z,"").split(".").filter(p=>p).reduce((p,y)=>(p[y]=!0,p),{}),c="value",h=i.lazy?"change":"input",f=i.number?r:i.trim?a:s;return o[c]=P(e,t),o.on=o.on||{},o.on[h]=p=>t[e]=f(p),o}function Pn(n,e,o,t){const r=P(e,t);return o=Object.assign(o,r),o}function On(n,e,o,t){return n=n.replace(Y,""),o.on=o.on||{},o.on[n]=()=>P(e,t),o}function Dn(n,e,o,t){return n=n.replace($,""),o[n]=P(e,t),o}const U=n=>{if(!E.includes(n)&&!(n!=null&&n.render)&&!(n!=null&&n.ssrRender)){const e=on(F(n),!1);if(typeof e=="object")return e}return n};function P(n,e){const o=n.split(".").reduce((t,r)=>typeof t=="object"?t[r]:void 0,e);return typeof o>"u"?an(n):o}function Ln(n){let e="";for(const o of Object.keys(n.props||{}))if(!(!o.startsWith("#")&&!o.startsWith("v-slot:"))){e=o.split(/[:#]/,2)[1];break}return e||R}function Mn(n){return n.tag==="template"}function Rn(n){const e=[];for(const o of n){const t=e[e.length-1];o.type===w&&(t==null?void 0:t.type)===w?t.children=t.children+o.children:e.push(o)}return e}async function Tn(n,e){if(!n)return;const o=Array.from(new Set(t(n,e)));await Promise.all(o.map(async r=>{if(r!=null&&r.render||r!=null&&r.ssrRender||r!=null&&r.__ssrInlineRender)return;const a=U(r);a!=null&&a.__asyncLoader&&!a.__asyncResolved&&await a.__asyncLoader()}));function t(r,a){const s=r.tag;if(r.type==="text"||s==="binding"||r.type==="comment")return[];const i=J(r,a.tags),c=[];r.type!=="root"&&!E.includes(i)&&c.push(i);for(const h of r.children||[])c.push(...t(h,a));return c}}function J(n,e){var t;const o=n.tag;return!o||typeof((t=n.props)==null?void 0:t.__ignoreMap)<"u"?o:e[o]||e[F(o)]||e[tn(n.tag)]||o}export{Bn as _,E as a,fn as f,vn as h,L as n,Un as s}; diff --git a/_nuxt/B-C9DpKA.js b/_nuxt/Cp-es949.js similarity index 94% rename from _nuxt/B-C9DpKA.js rename to _nuxt/Cp-es949.js index 15ffd6749..3a7b6a705 100644 --- a/_nuxt/B-C9DpKA.js +++ b/_nuxt/Cp-es949.js @@ -1 +1 @@ -import{d as x,z as v,D as n,ap as _,aq as g,b7 as l,c,e as w,ai as s,w as C,E as t,g as i,n as p,ak as S,f as A,aL as I,ab as L}from"./DV7eKLeG.js";import"./DXNMbFcI.js";import{r as B}from"./BkwiVK2a.js";import"./BneCoJRQ.js";const D=A("span",{class:"absolute inset-0","aria-hidden":"true"},null,-1),z=x({inheritAttrs:!1,__name:"Callout",props:{icon:{type:String,default:void 0},color:{type:String,default:"primary"},to:{type:String,default:void 0},target:{type:String,default:void 0},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(o){const m=v(),b=n(()=>({wrapper:"block pl-4 pr-6 py-3 rounded-md border border-gray-200 dark:border-gray-700 bg-gray-50 dark:bg-gray-800 text-gray-700 dark:text-gray-300 text-sm/6 my-5 last:mb-0 font-normal group relative prose-code:bg-white dark:prose-code:bg-gray-900",to:"hover:border-[--color-light] dark:hover:border-[--color-dark] hover:text-[--color-light] dark:hover:text-[--color-dark] border-dashed hover:border-solid hover:text-gray-800 dark:hover:text-gray-200",icon:{base:"w-4 h-4 mr-2 inline-flex items-center align-sub text-[--color-light] dark:text-[--color-dark]"},externalIcon:{name:m.ui.icons.external,base:"w-4 h-4 absolute right-2 top-2 text-gray-400 dark:text-gray-500 group-hover:text-[--color-light] dark:group-hover:text-[--color-dark]"}})),r=o,{ui:a,attrs:y}=_("content.callout",g(r,"ui"),b,g(r,"class"),!0),h=n(()=>{var e;return r.color==="primary"?"rgb(var(--color-primary-DEFAULT))":((e=l[r.color])==null?void 0:e["500"])||l[r.color]||r.color}),k=n(()=>{var e;return r.color==="primary"?"rgb(var(--color-primary-DEFAULT))":((e=l[r.color])==null?void 0:e["400"])||l[r.color]||r.color}),d=n(()=>r.target||(r.to&&r.to.startsWith("http")?"_blank":void 0));return(e,E)=>{const f=I,u=L;return c(),w("div",S({class:[t(a).wrapper,o.to&&t(a).to]},t(y),{style:{"--color-light":t(h),"--color-dark":t(k)}}),[o.to?(c(),s(f,{key:0,to:o.to,target:t(d),class:"focus:outline-none",tabindex:"-1"},{default:C(()=>[D]),_:1},8,["to","target"])):i("",!0),o.icon?(c(),s(u,{key:1,name:o.icon,class:p(t(a).icon.base)},null,8,["name","class"])):i("",!0),o.to&&t(d)==="_blank"?(c(),s(u,{key:2,name:t(a).externalIcon.name,class:p(t(a).externalIcon.base)},null,8,["name","class"])):i("",!0),B(e.$slots,"default",{unwrap:"p"})],16)}}});export{z as default}; +import{d as x,z as v,D as n,ap as _,aq as g,b7 as l,c,e as w,ai as s,w as C,E as t,g as i,n as p,ak as S,f as A,aL as I,ab as L}from"./5uFLRXWz.js";import"./DVHUXCHF.js";import{r as B}from"./C8UhvDYG.js";import"./BneCoJRQ.js";const D=A("span",{class:"absolute inset-0","aria-hidden":"true"},null,-1),z=x({inheritAttrs:!1,__name:"Callout",props:{icon:{type:String,default:void 0},color:{type:String,default:"primary"},to:{type:String,default:void 0},target:{type:String,default:void 0},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(o){const m=v(),b=n(()=>({wrapper:"block pl-4 pr-6 py-3 rounded-md border border-gray-200 dark:border-gray-700 bg-gray-50 dark:bg-gray-800 text-gray-700 dark:text-gray-300 text-sm/6 my-5 last:mb-0 font-normal group relative prose-code:bg-white dark:prose-code:bg-gray-900",to:"hover:border-[--color-light] dark:hover:border-[--color-dark] hover:text-[--color-light] dark:hover:text-[--color-dark] border-dashed hover:border-solid hover:text-gray-800 dark:hover:text-gray-200",icon:{base:"w-4 h-4 mr-2 inline-flex items-center align-sub text-[--color-light] dark:text-[--color-dark]"},externalIcon:{name:m.ui.icons.external,base:"w-4 h-4 absolute right-2 top-2 text-gray-400 dark:text-gray-500 group-hover:text-[--color-light] dark:group-hover:text-[--color-dark]"}})),r=o,{ui:a,attrs:y}=_("content.callout",g(r,"ui"),b,g(r,"class"),!0),h=n(()=>{var e;return r.color==="primary"?"rgb(var(--color-primary-DEFAULT))":((e=l[r.color])==null?void 0:e["500"])||l[r.color]||r.color}),k=n(()=>{var e;return r.color==="primary"?"rgb(var(--color-primary-DEFAULT))":((e=l[r.color])==null?void 0:e["400"])||l[r.color]||r.color}),d=n(()=>r.target||(r.to&&r.to.startsWith("http")?"_blank":void 0));return(e,E)=>{const f=I,u=L;return c(),w("div",S({class:[t(a).wrapper,o.to&&t(a).to]},t(y),{style:{"--color-light":t(h),"--color-dark":t(k)}}),[o.to?(c(),s(f,{key:0,to:o.to,target:t(d),class:"focus:outline-none",tabindex:"-1"},{default:C(()=>[D]),_:1},8,["to","target"])):i("",!0),o.icon?(c(),s(u,{key:1,name:o.icon,class:p(t(a).icon.base)},null,8,["name","class"])):i("",!0),o.to&&t(d)==="_blank"?(c(),s(u,{key:2,name:t(a).externalIcon.name,class:p(t(a).externalIcon.base)},null,8,["name","class"])):i("",!0),B(e.$slots,"default",{unwrap:"p"})],16)}}});export{z as default}; diff --git a/_nuxt/CXy-F3hO.js b/_nuxt/CrqAEfcT.js similarity index 65% rename from _nuxt/CXy-F3hO.js rename to _nuxt/CrqAEfcT.js index 8789d6f27..f9a8fd693 100644 --- a/_nuxt/CXy-F3hO.js +++ b/_nuxt/CrqAEfcT.js @@ -1 +1 @@ -import{l as o,c as n,e as r,aj as c}from"./DV7eKLeG.js";const s={};function t(e,a){return n(),r("code",null,[c(e.$slots,"default")])}const d=o(s,[["render",t]]);export{d as default}; +import{l as o,c as n,e as r,aj as c}from"./5uFLRXWz.js";const s={};function t(e,a){return n(),r("code",null,[c(e.$slots,"default")])}const d=o(s,[["render",t]]);export{d as default}; diff --git a/_nuxt/BZKR5zX_.js b/_nuxt/CtIItzco.js similarity index 90% rename from _nuxt/BZKR5zX_.js rename to _nuxt/CtIItzco.js index f0859d107..c055c9865 100644 --- a/_nuxt/BZKR5zX_.js +++ b/_nuxt/CtIItzco.js @@ -1 +1 @@ -import{E as d,H as b,x as y,a7 as w,bg as D,v as g,d as H,b8 as x,bh as S,V as u}from"./DV7eKLeG.js";import _ from"./D0-C4B6x.js";import q from"./BAKkr1ga.js";import"./C3Kzup5y.js";import"./bXKbWHrB.js";import"./BneCoJRQ.js";const a=(s,p=y())=>{const e=d(s),f=g();b(()=>d(s),(n=e)=>{if(!p.path||!n)return;const t=Object.assign({},(n==null?void 0:n.head)||{});t.meta=[...t.meta||[]],t.link=[...t.link||[]];const r=t.title||(n==null?void 0:n.title);r&&(t.title=r),f.public.content.host;const c=(t==null?void 0:t.description)||(n==null?void 0:n.description);c&&t.meta.filter(l=>l.name==="description").length===0&&t.meta.push({name:"description",content:c}),t!=null&&t.image||(n==null||n.image),w(()=>D(t))},{immediate:!0})},$=H({name:"ContentDoc",props:{tag:{type:String,required:!1,default:"div"},excerpt:{type:Boolean,default:!1},path:{type:String,required:!1,default:void 0},query:{type:Object,required:!1,default:void 0},head:{type:Boolean,required:!1,default:void 0}},render(s){const{contentHead:p}=g().public.content,e=x(),{tag:f,excerpt:m,path:n,query:t,head:r}=s,c=r===void 0?p:r,l={...t||{},path:n||(t==null?void 0:t.path)||S(y().path),find:"one"},v=(o,i)=>u("pre",null,JSON.stringify({message:"You should use slots with ",slot:o,data:i},null,2));return u(q,l,{default:e!=null&&e.default?({data:o,refresh:i,isPartial:C})=>{var h;return c&&a(o),(h=e.default)==null?void 0:h.call(e,{doc:o,refresh:i,isPartial:C,excerpt:m,...this.$attrs})}:({data:o})=>(c&&a(o),u(_,{value:o,excerpt:m,tag:f,...this.$attrs},{empty:i=>e!=null&&e.empty?e.empty(i):v("default",o)})),empty:o=>{var i;return((i=e==null?void 0:e.empty)==null?void 0:i.call(e,o))||u("p",null,"Document is empty, overwrite this content with #empty slot in .")},"not-found":o=>{var i;return((i=e==null?void 0:e["not-found"])==null?void 0:i.call(e,o))||u("p",null,"Document not found, overwrite this content with #not-found slot in .")}})}}),T=$;export{T as default}; +import{E as d,H as b,x as y,a7 as w,bg as D,v as g,d as H,b8 as x,bh as S,V as u}from"./5uFLRXWz.js";import _ from"./DI2CkNWG.js";import q from"./VPULeIg0.js";import"./TXOJiQqS.js";import"./CgMG10Xn.js";import"./BneCoJRQ.js";const a=(s,p=y())=>{const e=d(s),f=g();b(()=>d(s),(n=e)=>{if(!p.path||!n)return;const t=Object.assign({},(n==null?void 0:n.head)||{});t.meta=[...t.meta||[]],t.link=[...t.link||[]];const r=t.title||(n==null?void 0:n.title);r&&(t.title=r),f.public.content.host;const c=(t==null?void 0:t.description)||(n==null?void 0:n.description);c&&t.meta.filter(l=>l.name==="description").length===0&&t.meta.push({name:"description",content:c}),t!=null&&t.image||(n==null||n.image),w(()=>D(t))},{immediate:!0})},$=H({name:"ContentDoc",props:{tag:{type:String,required:!1,default:"div"},excerpt:{type:Boolean,default:!1},path:{type:String,required:!1,default:void 0},query:{type:Object,required:!1,default:void 0},head:{type:Boolean,required:!1,default:void 0}},render(s){const{contentHead:p}=g().public.content,e=x(),{tag:f,excerpt:m,path:n,query:t,head:r}=s,c=r===void 0?p:r,l={...t||{},path:n||(t==null?void 0:t.path)||S(y().path),find:"one"},v=(o,i)=>u("pre",null,JSON.stringify({message:"You should use slots with ",slot:o,data:i},null,2));return u(q,l,{default:e!=null&&e.default?({data:o,refresh:i,isPartial:C})=>{var h;return c&&a(o),(h=e.default)==null?void 0:h.call(e,{doc:o,refresh:i,isPartial:C,excerpt:m,...this.$attrs})}:({data:o})=>(c&&a(o),u(_,{value:o,excerpt:m,tag:f,...this.$attrs},{empty:i=>e!=null&&e.empty?e.empty(i):v("default",o)})),empty:o=>{var i;return((i=e==null?void 0:e.empty)==null?void 0:i.call(e,o))||u("p",null,"Document is empty, overwrite this content with #empty slot in .")},"not-found":o=>{var i;return((i=e==null?void 0:e["not-found"])==null?void 0:i.call(e,o))||u("p",null,"Document not found, overwrite this content with #not-found slot in .")}})}}),T=$;export{T as default}; diff --git a/_nuxt/CwHOZuFg.js b/_nuxt/CwHOZuFg.js deleted file mode 100644 index a9ac2a82d..000000000 --- a/_nuxt/CwHOZuFg.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o}from"./Q1re-agt.js";import"./DstQJC2Y.js";import"./DV7eKLeG.js";import"./BC4Kh9UJ.js";export{o as default}; diff --git a/_nuxt/DlAVUEvi.js b/_nuxt/D3senqKB.js similarity index 51% rename from _nuxt/DlAVUEvi.js rename to _nuxt/D3senqKB.js index 691d98bce..7ad6fdc62 100644 --- a/_nuxt/DlAVUEvi.js +++ b/_nuxt/D3senqKB.js @@ -1 +1 @@ -import{d as t}from"./DV7eKLeG.js";const o=t({name:"OgImageStatic",async setup(a,{attrs:e}){return()=>null}});export{o as default}; +import{d as t}from"./5uFLRXWz.js";const o=t({name:"OgImageStatic",async setup(a,{attrs:e}){return()=>null}});export{o as default}; diff --git a/_nuxt/DR_MEAkt.js b/_nuxt/D67-qVWI.js similarity index 88% rename from _nuxt/DR_MEAkt.js rename to _nuxt/D67-qVWI.js index de2890a9a..bcc425af1 100644 --- a/_nuxt/DR_MEAkt.js +++ b/_nuxt/D67-qVWI.js @@ -1 +1 @@ -import{d as p,v as f,D as i,c as t,e as s,E as u,aj as n}from"./DV7eKLeG.js";const l=["id"],d=["href"],_=p({__name:"ProseH6",props:{id:{}},setup(r){const c=r,{headings:o}=f().public.mdc,a=i(()=>{var e;return c.id&&(typeof(o==null?void 0:o.anchorLinks)=="boolean"&&(o==null?void 0:o.anchorLinks)===!0||typeof(o==null?void 0:o.anchorLinks)=="object"&&((e=o==null?void 0:o.anchorLinks)==null?void 0:e.h6))});return(e,m)=>(t(),s("h6",{id:e.id},[e.id&&u(a)?(t(),s("a",{key:0,href:`#${e.id}`},[n(e.$slots,"default")],8,d)):n(e.$slots,"default",{key:1})],8,l))}});export{_ as default}; +import{d as p,v as f,D as i,c as t,e as s,E as u,aj as n}from"./5uFLRXWz.js";const l=["id"],d=["href"],_=p({__name:"ProseH6",props:{id:{}},setup(r){const c=r,{headings:o}=f().public.mdc,a=i(()=>{var e;return c.id&&(typeof(o==null?void 0:o.anchorLinks)=="boolean"&&(o==null?void 0:o.anchorLinks)===!0||typeof(o==null?void 0:o.anchorLinks)=="object"&&((e=o==null?void 0:o.anchorLinks)==null?void 0:e.h6))});return(e,m)=>(t(),s("h6",{id:e.id},[e.id&&u(a)?(t(),s("a",{key:0,href:`#${e.id}`},[n(e.$slots,"default")],8,d)):n(e.$slots,"default",{key:1})],8,l))}});export{_ as default}; diff --git a/_nuxt/zYChM_yW.js b/_nuxt/DCQyn2Vs.js similarity index 72% rename from _nuxt/zYChM_yW.js rename to _nuxt/DCQyn2Vs.js index 1ea6356ab..29624f446 100644 --- a/_nuxt/zYChM_yW.js +++ b/_nuxt/DCQyn2Vs.js @@ -1 +1 @@ -import{d as o,E as s,c as n,e as r,k as e,g as a,f as t}from"./DV7eKLeG.js";const c={key:0},i=t("code",null,"script",-1),d=t("code",null,"ProseScript",-1),f=o({__name:"ProseScript",props:{src:{type:String,default:""}},setup(l){return(_,m)=>s(!1)?(n(),r("div",c,[e(" Rendering the "),i,e(" element is dangerous and is disabled by default. Consider implementing your own "),d,e(" element to have control over script rendering. ")])):a("",!0)}});export{f as default}; +import{d as o,E as s,c as n,e as r,k as e,g as a,f as t}from"./5uFLRXWz.js";const c={key:0},i=t("code",null,"script",-1),d=t("code",null,"ProseScript",-1),f=o({__name:"ProseScript",props:{src:{type:String,default:""}},setup(l){return(_,m)=>s(!1)?(n(),r("div",c,[e(" Rendering the "),i,e(" element is dangerous and is disabled by default. Consider implementing your own "),d,e(" element to have control over script rendering. ")])):a("",!0)}});export{f as default}; diff --git a/_nuxt/_ZA6Pbhi.js b/_nuxt/DCZ_m-u4.js similarity index 66% rename from _nuxt/_ZA6Pbhi.js rename to _nuxt/DCZ_m-u4.js index d748d9ebd..a4f1de209 100644 --- a/_nuxt/_ZA6Pbhi.js +++ b/_nuxt/DCZ_m-u4.js @@ -1 +1 @@ -import{l as o,c as t,e as c,aj as r}from"./DV7eKLeG.js";const s={};function l(e,n){return t(),c("blockquote",null,[r(e.$slots,"default")])}const f=o(s,[["render",l]]);export{f as default}; +import{l as o,c as t,e as c,aj as r}from"./5uFLRXWz.js";const s={};function l(e,n){return t(),c("blockquote",null,[r(e.$slots,"default")])}const f=o(s,[["render",l]]);export{f as default}; diff --git a/_nuxt/jrDDEEDF.js b/_nuxt/DCxgfybx.js similarity index 65% rename from _nuxt/jrDDEEDF.js rename to _nuxt/DCxgfybx.js index 3b4b81c64..46c020a88 100644 --- a/_nuxt/jrDDEEDF.js +++ b/_nuxt/DCxgfybx.js @@ -1 +1 @@ -import{l as r,c as o,e as t,aj as n}from"./DV7eKLeG.js";const s={};function c(e,a){return o(),t("strong",null,[n(e.$slots,"default")])}const f=r(s,[["render",c]]);export{f as default}; +import{l as r,c as o,e as t,aj as n}from"./5uFLRXWz.js";const s={};function c(e,a){return o(),t("strong",null,[n(e.$slots,"default")])}const f=r(s,[["render",c]]);export{f as default}; diff --git a/_nuxt/B6nvh6Ib.js b/_nuxt/DFIGFXFo.js similarity index 93% rename from _nuxt/B6nvh6Ib.js rename to _nuxt/DFIGFXFo.js index dd015f284..de3c8d417 100644 --- a/_nuxt/B6nvh6Ib.js +++ b/_nuxt/DFIGFXFo.js @@ -1 +1 @@ -import{d as f,b6 as m,z as d,D as r,bu as I,c as x,e as v,al as S,l as _}from"./DV7eKLeG.js";const z=f({__name:"IconCSS",props:{name:{type:String,required:!0},size:{type:String,default:""}},setup(u){m(e=>({"14f20d7d":p.value}));const t=d(),s=u,l=r(()=>{var e,n;return(n=(e=t.nuxtIcon)==null?void 0:e.aliases)!=null&&n[s.name]?t.nuxtIcon.aliases[s.name]:s.name}),c=r(()=>I(l.value)),p=r(()=>{var o,a;const e=(a=(o=t.nuxtIcon)==null?void 0:o.iconifyApiOptions)==null?void 0:a.url;if(e)try{new URL(e)}catch{console.warn("Nuxt IconCSS: Invalid custom Iconify API URL");return}return`url('${e||"https://api.iconify.design"}/${c.value.prefix}/${c.value.name}.svg')`}),i=r(()=>{var n,o,a;if(!s.size&&typeof((n=t.nuxtIcon)==null?void 0:n.size)=="boolean"&&!((o=t.nuxtIcon)!=null&&o.size))return;const e=s.size||((a=t.nuxtIcon)==null?void 0:a.size)||"1em";return String(Number(e))===e?`${e}px`:e});return(e,n)=>(x(),v("span",{style:S({width:i.value,height:i.value})},null,4))}}),C=_(z,[["__scopeId","data-v-a036f403"]]);export{C as default}; +import{d as f,b6 as m,z as d,D as r,bu as I,c as x,e as v,al as S,l as _}from"./5uFLRXWz.js";const z=f({__name:"IconCSS",props:{name:{type:String,required:!0},size:{type:String,default:""}},setup(u){m(e=>({"14f20d7d":p.value}));const t=d(),s=u,l=r(()=>{var e,n;return(n=(e=t.nuxtIcon)==null?void 0:e.aliases)!=null&&n[s.name]?t.nuxtIcon.aliases[s.name]:s.name}),c=r(()=>I(l.value)),p=r(()=>{var o,a;const e=(a=(o=t.nuxtIcon)==null?void 0:o.iconifyApiOptions)==null?void 0:a.url;if(e)try{new URL(e)}catch{console.warn("Nuxt IconCSS: Invalid custom Iconify API URL");return}return`url('${e||"https://api.iconify.design"}/${c.value.prefix}/${c.value.name}.svg')`}),i=r(()=>{var n,o,a;if(!s.size&&typeof((n=t.nuxtIcon)==null?void 0:n.size)=="boolean"&&!((o=t.nuxtIcon)!=null&&o.size))return;const e=s.size||((a=t.nuxtIcon)==null?void 0:a.size)||"1em";return String(Number(e))===e?`${e}px`:e});return(e,n)=>(x(),v("span",{style:S({width:i.value,height:i.value})},null,4))}}),C=_(z,[["__scopeId","data-v-a036f403"]]);export{C as default}; diff --git a/_nuxt/Cyg7TggZ.js b/_nuxt/DGc_uQaC.js similarity index 64% rename from _nuxt/Cyg7TggZ.js rename to _nuxt/DGc_uQaC.js index e250afe59..49bc1561a 100644 --- a/_nuxt/Cyg7TggZ.js +++ b/_nuxt/DGc_uQaC.js @@ -1 +1 @@ -import{l as o,c as r,e as s,aj as t}from"./DV7eKLeG.js";const c={};function l(e,n){return r(),s("ol",null,[t(e.$slots,"default")])}const f=o(c,[["render",l]]);export{f as default}; +import{l as o,c as r,e as s,aj as t}from"./5uFLRXWz.js";const c={};function l(e,n){return r(),s("ol",null,[t(e.$slots,"default")])}const f=o(c,[["render",l]]);export{f as default}; diff --git a/_nuxt/D0-C4B6x.js b/_nuxt/DI2CkNWG.js similarity index 89% rename from _nuxt/D0-C4B6x.js rename to _nuxt/DI2CkNWG.js index 4d44e0fdb..230ed7043 100644 --- a/_nuxt/D0-C4B6x.js +++ b/_nuxt/DI2CkNWG.js @@ -1 +1 @@ -import{_ as o}from"./C3Kzup5y.js";import{d as l,H as s,b8 as d,V as f}from"./DV7eKLeG.js";import"./bXKbWHrB.js";import"./BneCoJRQ.js";const g=l({name:"ContentRenderer",props:{value:{type:Object,required:!1,default:()=>({})},excerpt:{type:Boolean,default:!1},tag:{type:String,default:"div"}},setup(t){s(()=>t.excerpt,n=>{var e,a,u;n&&!((e=t.value)!=null&&e.excerpt)&&(console.warn(`No excerpt found for document content/${(a=t==null?void 0:t.value)==null?void 0:a._path}.${(u=t==null?void 0:t.value)==null?void 0:u._extension}!`),console.warn("Make sure to use in your content if you want to use excerpt feature."))},{immediate:!0})},render(t){var i,c;const n=d(),{value:e,excerpt:a,tag:u}=t,r=a?e==null?void 0:e.excerpt:e==null?void 0:e.body;return!((i=r==null?void 0:r.children)!=null&&i.length)&&(n!=null&&n.empty)?n.empty({value:e,excerpt:a,tag:u,...this.$attrs}):n!=null&&n.default?n.default({value:e,excerpt:a,tag:u,...this.$attrs}):(r==null?void 0:r.type)==="root"&&((c=r==null?void 0:r.children)!=null&&c.length)?f(o,{value:e,excerpt:a,tag:u,...this.$attrs}):f("pre",null,JSON.stringify({message:"You should use slots with ",value:e,excerpt:a,tag:u},null,2))}});export{g as default}; +import{_ as o}from"./TXOJiQqS.js";import{d as l,H as s,b8 as d,V as f}from"./5uFLRXWz.js";import"./CgMG10Xn.js";import"./BneCoJRQ.js";const g=l({name:"ContentRenderer",props:{value:{type:Object,required:!1,default:()=>({})},excerpt:{type:Boolean,default:!1},tag:{type:String,default:"div"}},setup(t){s(()=>t.excerpt,n=>{var e,a,u;n&&!((e=t.value)!=null&&e.excerpt)&&(console.warn(`No excerpt found for document content/${(a=t==null?void 0:t.value)==null?void 0:a._path}.${(u=t==null?void 0:t.value)==null?void 0:u._extension}!`),console.warn("Make sure to use in your content if you want to use excerpt feature."))},{immediate:!0})},render(t){var i,c;const n=d(),{value:e,excerpt:a,tag:u}=t,r=a?e==null?void 0:e.excerpt:e==null?void 0:e.body;return!((i=r==null?void 0:r.children)!=null&&i.length)&&(n!=null&&n.empty)?n.empty({value:e,excerpt:a,tag:u,...this.$attrs}):n!=null&&n.default?n.default({value:e,excerpt:a,tag:u,...this.$attrs}):(r==null?void 0:r.type)==="root"&&((c=r==null?void 0:r.children)!=null&&c.length)?f(o,{value:e,excerpt:a,tag:u,...this.$attrs}):f("pre",null,JSON.stringify({message:"You should use slots with ",value:e,excerpt:a,tag:u},null,2))}});export{g as default}; diff --git a/_nuxt/DMIHtKy3.js b/_nuxt/DMIHtKy3.js deleted file mode 100644 index bbf18d2f1..000000000 --- a/_nuxt/DMIHtKy3.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as m}from"./DstQJC2Y.js";import"./DV7eKLeG.js";export{m as default}; diff --git a/_nuxt/BRMcYa22.js b/_nuxt/DMPPvO_f.js similarity index 75% rename from _nuxt/BRMcYa22.js rename to _nuxt/DMPPvO_f.js index c4f37249c..09b15de3f 100644 --- a/_nuxt/BRMcYa22.js +++ b/_nuxt/DMPPvO_f.js @@ -1 +1 @@ -import{d as u,aV as i,a_ as m,b8 as n}from"./DV7eKLeG.js";import{u as o}from"./QA-ib-BQ.js";import"./Cp7Md9uy.js";const p=u({props:{query:{type:Object,required:!1,default:()=>({})}},async setup(t){const{fetchCommits:r}=o(),{data:s,pending:e,refresh:a}=await i(`github-commits-${m(t.query)}`,()=>r(t.query));return{commits:s,pending:e,refresh:a}},render({commits:t,pending:r,refresh:s}){var a;const e=n();return(a=e==null?void 0:e.default)==null?void 0:a.call(e,{commits:t,pending:r,refresh:s})}});export{p as default}; +import{d as u,aV as i,a_ as m,b8 as n}from"./5uFLRXWz.js";import{u as o}from"./B3cAN6Fg.js";import"./Cp7Md9uy.js";const p=u({props:{query:{type:Object,required:!1,default:()=>({})}},async setup(t){const{fetchCommits:r}=o(),{data:s,pending:e,refresh:a}=await i(`github-commits-${m(t.query)}`,()=>r(t.query));return{commits:s,pending:e,refresh:a}},render({commits:t,pending:r,refresh:s}){var a;const e=n();return(a=e==null?void 0:e.default)==null?void 0:a.call(e,{commits:t,pending:r,refresh:s})}});export{p as default}; diff --git a/_nuxt/BEKKvTcA.js b/_nuxt/DM_PfLdF.js similarity index 65% rename from _nuxt/BEKKvTcA.js rename to _nuxt/DM_PfLdF.js index bfbb1d7d3..f7a5a65d0 100644 --- a/_nuxt/BEKKvTcA.js +++ b/_nuxt/DM_PfLdF.js @@ -1 +1 @@ -import{l as r,c as t,e as a,aj as o}from"./DV7eKLeG.js";const s={};function c(e,n){return t(),a("thead",null,[o(e.$slots,"default")])}const d=r(s,[["render",c]]);export{d as default}; +import{l as r,c as t,e as a,aj as o}from"./5uFLRXWz.js";const s={};function c(e,n){return t(),a("thead",null,[o(e.$slots,"default")])}const d=r(s,[["render",c]]);export{d as default}; diff --git a/_nuxt/BSZg2Fdj.js b/_nuxt/DOuGK-Bw.js similarity index 52% rename from _nuxt/BSZg2Fdj.js rename to _nuxt/DOuGK-Bw.js index 131b95dd5..d9bbdc94e 100644 --- a/_nuxt/BSZg2Fdj.js +++ b/_nuxt/DOuGK-Bw.js @@ -1 +1 @@ -import{d as e}from"./DV7eKLeG.js";const r=e({name:"OgImageScreenshot",async setup(t,{attrs:n}){return()=>null}});export{r as default}; +import{d as e}from"./5uFLRXWz.js";const r=e({name:"OgImageScreenshot",async setup(t,{attrs:n}){return()=>null}});export{r as default}; diff --git a/_nuxt/DXNMbFcI.js b/_nuxt/DVHUXCHF.js similarity index 91% rename from _nuxt/DXNMbFcI.js rename to _nuxt/DVHUXCHF.js index 1910f61b5..92da21dd5 100644 --- a/_nuxt/DXNMbFcI.js +++ b/_nuxt/DVHUXCHF.js @@ -1 +1 @@ -import{f as i}from"./BneCoJRQ.js";import{d as u,b8 as f,D as c,V as l,bl as d}from"./DV7eKLeG.js";const m=u({name:"MDCSlot",functional:!0,props:{name:{type:String,default:"default"},unwrap:{type:[Boolean,String],default:!1},use:{type:Function,default:void 0}},setup(t){const{parent:s}=d(),{default:o}=f(),r=c(()=>typeof t.unwrap=="string"?t.unwrap.split(" "):["*"]);return{fallbackSlot:o,tags:r,parent:s}},render({use:t,unwrap:s,fallbackSlot:o,tags:r,parent:n}){var a;try{let e=t;return typeof t=="string"&&(e=(n==null?void 0:n.slots[t])||((a=n==null?void 0:n.parent)==null?void 0:a.slots[t]),console.warn(`Please set :use="$slots.${t}" in component to enable reactivity`)),e?s?i(e(),r):[e()]:o?o():l("div")}catch{return l("div")}}}),_=m;export{_}; +import{f as i}from"./BneCoJRQ.js";import{d as u,b8 as f,D as c,V as l,bl as d}from"./5uFLRXWz.js";const m=u({name:"MDCSlot",functional:!0,props:{name:{type:String,default:"default"},unwrap:{type:[Boolean,String],default:!1},use:{type:Function,default:void 0}},setup(t){const{parent:s}=d(),{default:o}=f(),r=c(()=>typeof t.unwrap=="string"?t.unwrap.split(" "):["*"]);return{fallbackSlot:o,tags:r,parent:s}},render({use:t,unwrap:s,fallbackSlot:o,tags:r,parent:n}){var a;try{let e=t;return typeof t=="string"&&(e=(n==null?void 0:n.slots[t])||((a=n==null?void 0:n.parent)==null?void 0:a.slots[t]),console.warn(`Please set :use="$slots.${t}" in component to enable reactivity`)),e?s?i(e(),r):[e()]:o?o():l("div")}catch{return l("div")}}}),_=m;export{_}; diff --git a/_nuxt/663klko9.js b/_nuxt/DWOHbHeS.js similarity index 96% rename from _nuxt/663klko9.js rename to _nuxt/DWOHbHeS.js index b34ee4ec8..7503083df 100644 --- a/_nuxt/663klko9.js +++ b/_nuxt/DWOHbHeS.js @@ -1 +1 @@ -import{d as C,b8 as w,ap as B,aq as I,r as y,D,bf as S,c as s,e as n,f as b,n as l,E as e,F as f,ah as g,ai as h,g as N,t as U,au as z,av as A,bb as E,ak as F,ab as V}from"./DV7eKLeG.js";const $=["onClick"],L=C({inheritAttrs:!1,__name:"Tabs",props:{selectedIndex:{type:Number,default:0},class:{type:[String,Object,Array],default:void 0}},setup(k){const x={wrapper:"relative my-5 space-y-6",header:"flex items-center relative",border:"absolute bottom-0 inset-x-0 w-full h-px bg-gray-200 dark:bg-gray-800",tab:{base:"px-4 py-2.5 font-semibold text-sm/6 flex items-center gap-1.5 border-b z-[1] focus-visible:outline-primary",active:"text-primary border-primary",inactive:"text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 border-transparent hover:border-gray-300 dark:hover:border-gray-700",icon:{base:"w-5 h-5 flex-shrink-0"}}},d=k,i=w(),{ui:r,attrs:_}=B("content.tabs",void 0,x,I(d,"class"),!0),p=y(d.selectedIndex||0),m=y(1),v=D(()=>{var u;return m.value,((u=i.default)==null?void 0:u.call(i).map((o,c)=>{var t,a;return{index:c,label:((t=o.props)==null?void 0:t.label)||`${c}`,icon:(a=o.props)==null?void 0:a.icon,component:o}}))||[]});return S(()=>{m.value+=1}),(u,o)=>{const c=V;return s(),n("div",F({class:e(r).wrapper},e(_)),[b("div",{class:l(e(r).header)},[b("div",{class:l(e(r).border)},null,2),(s(!0),n(f,null,g(e(v),(t,a)=>(s(),n("button",{key:a,class:l([e(r).tab.base,e(p)===a?e(r).tab.active:e(r).tab.inactive]),onClick:j=>p.value=a},[t.icon?(s(),h(c,{key:0,name:t.icon,class:l(e(r).tab.icon.base)},null,8,["name","class"])):N("",!0),b("span",null,U(t.label),1)],10,$))),128))],2),(s(!0),n(f,null,g(e(v),(t,a)=>z((s(),n("div",{key:a},[(s(),h(E(t.component)))])),[[A,e(p)===a]])),128))],16)}}});export{L as default}; +import{d as C,b8 as w,ap as B,aq as I,r as y,D,bf as S,c as s,e as n,f as b,n as l,E as e,F as f,ah as g,ai as h,g as N,t as U,au as z,av as A,bb as E,ak as F,ab as V}from"./5uFLRXWz.js";const $=["onClick"],L=C({inheritAttrs:!1,__name:"Tabs",props:{selectedIndex:{type:Number,default:0},class:{type:[String,Object,Array],default:void 0}},setup(k){const x={wrapper:"relative my-5 space-y-6",header:"flex items-center relative",border:"absolute bottom-0 inset-x-0 w-full h-px bg-gray-200 dark:bg-gray-800",tab:{base:"px-4 py-2.5 font-semibold text-sm/6 flex items-center gap-1.5 border-b z-[1] focus-visible:outline-primary",active:"text-primary border-primary",inactive:"text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 border-transparent hover:border-gray-300 dark:hover:border-gray-700",icon:{base:"w-5 h-5 flex-shrink-0"}}},d=k,i=w(),{ui:r,attrs:_}=B("content.tabs",void 0,x,I(d,"class"),!0),p=y(d.selectedIndex||0),m=y(1),v=D(()=>{var u;return m.value,((u=i.default)==null?void 0:u.call(i).map((o,c)=>{var t,a;return{index:c,label:((t=o.props)==null?void 0:t.label)||`${c}`,icon:(a=o.props)==null?void 0:a.icon,component:o}}))||[]});return S(()=>{m.value+=1}),(u,o)=>{const c=V;return s(),n("div",F({class:e(r).wrapper},e(_)),[b("div",{class:l(e(r).header)},[b("div",{class:l(e(r).border)},null,2),(s(!0),n(f,null,g(e(v),(t,a)=>(s(),n("button",{key:a,class:l([e(r).tab.base,e(p)===a?e(r).tab.active:e(r).tab.inactive]),onClick:j=>p.value=a},[t.icon?(s(),h(c,{key:0,name:t.icon,class:l(e(r).tab.icon.base)},null,8,["name","class"])):N("",!0),b("span",null,U(t.label),1)],10,$))),128))],2),(s(!0),n(f,null,g(e(v),(t,a)=>z((s(),n("div",{key:a},[(s(),h(E(t.component)))])),[[A,e(p)===a]])),128))],16)}}});export{L as default}; diff --git a/_nuxt/DAumwU-x.js b/_nuxt/D_Lq7IP9.js similarity index 83% rename from _nuxt/DAumwU-x.js rename to _nuxt/D_Lq7IP9.js index 88462a918..cf8cc9e8c 100644 --- a/_nuxt/DAumwU-x.js +++ b/_nuxt/D_Lq7IP9.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DpnzQuXT.js","./DV7eKLeG.js","./entry.BErpUQtk.css","./bNaE6FFb.js"])))=>i.map(i=>d[i]); -import{_ as f}from"./DV7eKLeG.js";import{v as y,t as d}from"./mpWQaDmy.js";import"./bXKbWHrB.js";import"./BneCoJRQ.js";import"./Cpj98o6Y.js";import"./CM-HxrcU.js";function N(i){const e=i;return async r=>{const h=[],o=[];y(r,s=>{var t,l;return["pre","code"].includes(s.tagName)&&!!((t=s.properties)!=null&&t.language||(l=s.properties)!=null&&l.highlights)},s=>{const t=s,l=typeof t.properties.highlights=="string"?t.properties.highlights.split(/[,\s]+/).map(Number):Array.isArray(t.properties.highlights)?t.properties.highlights.map(Number):[],m=e.highlighter(d(s),t.properties.language,e.theme,{highlights:l.filter(Boolean),meta:t.properties.meta}).then(({tree:a,className:c,style:n,inlineStyle:u})=>{var g;t.properties.className=((t.properties.className||"")+" "+c).trim(),t.properties.style=((t.properties.style||"")+" "+u).trim(),((g=t.children[0])==null?void 0:g.tagName)==="code"?t.children[0].children=a:t.children=a[0].children||a,n&&o.push(n)});h.push(m)}),h.length&&(await Promise.all(h),r.children.push({type:"element",tagName:"style",children:[{type:"text",value:_(o.join(""))}],properties:{}}))}}const _=i=>{const e=i.split("}").filter(r=>!!r.trim()).map(r=>r.trim()+"}");return Array.from(new Set(e)).join("")},p={theme:{},async highlighter(i,e,r,h){var o,s;try{return window.sessionStorage.getItem("mdc-shiki-highlighter")==="browser"?f(()=>import("./DpnzQuXT.js"),__vite__mapDeps([0,1,2,3]),import.meta.url).then(t=>t.default(i,e,r,h)).catch(()=>({})):await $fetch("/api/_mdc/highlight",{params:{code:i,lang:e,theme:JSON.stringify(r),options:JSON.stringify(h)}})}catch(t){if(((o=t==null?void 0:t.response)==null?void 0:o.status)===404)return window.sessionStorage.setItem("mdc-shiki-highlighter","browser"),(s=this.highlighter)==null?void 0:s.call(this,i,e,r,h)}return Promise.resolve({tree:[{type:"text",value:i}],className:"",style:""})}};function w(i={}){const e={...p,...i};return typeof e.highlighter!="function"&&(e.highlighter=p.highlighter),N(e)}const x={},I={highlight:{instance:w,options:{}}},O={theme:{light:"material-theme-lighter",default:"material-theme",dark:"material-theme-palenight"}};export{O as highlight,I as rehypePlugins,x as remarkPlugins}; +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./OkcRVNLs.js","./5uFLRXWz.js","./entry.BErpUQtk.css","./bNaE6FFb.js"])))=>i.map(i=>d[i]); +import{_ as f}from"./5uFLRXWz.js";import{v as y,t as d}from"./BQtyLeXl.js";import"./CgMG10Xn.js";import"./BneCoJRQ.js";import"./Cpj98o6Y.js";import"./XVY12RzN.js";function N(i){const e=i;return async r=>{const h=[],o=[];y(r,s=>{var t,l;return["pre","code"].includes(s.tagName)&&!!((t=s.properties)!=null&&t.language||(l=s.properties)!=null&&l.highlights)},s=>{const t=s,l=typeof t.properties.highlights=="string"?t.properties.highlights.split(/[,\s]+/).map(Number):Array.isArray(t.properties.highlights)?t.properties.highlights.map(Number):[],m=e.highlighter(d(s),t.properties.language,e.theme,{highlights:l.filter(Boolean),meta:t.properties.meta}).then(({tree:a,className:c,style:n,inlineStyle:u})=>{var g;t.properties.className=((t.properties.className||"")+" "+c).trim(),t.properties.style=((t.properties.style||"")+" "+u).trim(),((g=t.children[0])==null?void 0:g.tagName)==="code"?t.children[0].children=a:t.children=a[0].children||a,n&&o.push(n)});h.push(m)}),h.length&&(await Promise.all(h),r.children.push({type:"element",tagName:"style",children:[{type:"text",value:_(o.join(""))}],properties:{}}))}}const _=i=>{const e=i.split("}").filter(r=>!!r.trim()).map(r=>r.trim()+"}");return Array.from(new Set(e)).join("")},p={theme:{},async highlighter(i,e,r,h){var o,s;try{return window.sessionStorage.getItem("mdc-shiki-highlighter")==="browser"?f(()=>import("./OkcRVNLs.js"),__vite__mapDeps([0,1,2,3]),import.meta.url).then(t=>t.default(i,e,r,h)).catch(()=>({})):await $fetch("/api/_mdc/highlight",{params:{code:i,lang:e,theme:JSON.stringify(r),options:JSON.stringify(h)}})}catch(t){if(((o=t==null?void 0:t.response)==null?void 0:o.status)===404)return window.sessionStorage.setItem("mdc-shiki-highlighter","browser"),(s=this.highlighter)==null?void 0:s.call(this,i,e,r,h)}return Promise.resolve({tree:[{type:"text",value:i}],className:"",style:""})}};function w(i={}){const e={...p,...i};return typeof e.highlighter!="function"&&(e.highlighter=p.highlighter),N(e)}const x={},I={highlight:{instance:w,options:{}}},O={theme:{light:"material-theme-lighter",default:"material-theme",dark:"material-theme-palenight"}};export{O as highlight,I as rehypePlugins,x as remarkPlugins}; diff --git a/_nuxt/Dq4I_mkI.js b/_nuxt/Do_OUU_r.js similarity index 76% rename from _nuxt/Dq4I_mkI.js rename to _nuxt/Do_OUU_r.js index ec7e4a761..08129a41a 100644 --- a/_nuxt/Dq4I_mkI.js +++ b/_nuxt/Do_OUU_r.js @@ -1 +1 @@ -import{d as s,aV as n,a_ as i,b8 as f}from"./DV7eKLeG.js";import{u as d}from"./QA-ib-BQ.js";import"./Cp7Md9uy.js";const y=s({props:{query:{type:Object,required:!1,default:()=>({})}},async setup(a){const{fetchRelease:r}=d();if(!a.query.tag)return;const{data:u,refresh:e,pending:t}=await n(`github-release-${i(a.query)}`,()=>r(a.query));return{release:u,refresh:e,pending:t}},render({release:a,refresh:r,pending:u}){var t;const e=f();return(t=e==null?void 0:e.default)==null?void 0:t.call(e,{release:a,refresh:r,pending:u})}});export{y as default}; +import{d as s,aV as n,a_ as i,b8 as f}from"./5uFLRXWz.js";import{u as d}from"./B3cAN6Fg.js";import"./Cp7Md9uy.js";const y=s({props:{query:{type:Object,required:!1,default:()=>({})}},async setup(a){const{fetchRelease:r}=d();if(!a.query.tag)return;const{data:u,refresh:e,pending:t}=await n(`github-release-${i(a.query)}`,()=>r(a.query));return{release:u,refresh:e,pending:t}},render({release:a,refresh:r,pending:u}){var t;const e=f();return(t=e==null?void 0:e.default)==null?void 0:t.call(e,{release:a,refresh:r,pending:u})}});export{y as default}; diff --git a/_nuxt/DpXcCXGB.js b/_nuxt/DqGQ11Q5.js similarity index 96% rename from _nuxt/DpXcCXGB.js rename to _nuxt/DqGQ11Q5.js index fd987ed88..46997fce6 100644 --- a/_nuxt/DpXcCXGB.js +++ b/_nuxt/DqGQ11Q5.js @@ -1 +1 @@ -import{d as v,ap as k,aq as f,c as m,e as g,f as i,n as r,E as e,aj as o,g as b,h as l,ak as y,bv as $,a3 as w,ai as x,w as n,bw as C,bx as N,by as U,aX as A,a$ as j}from"./DV7eKLeG.js";const B={class:"relative"},V=v({inheritAttrs:!1,__name:"Aside",props:{links:{type:Array,default:()=>[]},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(c){const p={wrapper:"hidden overflow-y-auto lg:block lg:max-h-[calc(100vh-var(--header-height))] lg:sticky lg:top-[--header-height] py-8 lg:px-4 lg:-mx-4",top:{wrapper:"sticky -top-8 -mt-8 pointer-events-none z-[1]",header:"h-8 bg-background -mx-4 px-4",body:"bg-background relative pointer-events-auto flex -mx-4 px-4",footer:"h-8 bg-gradient-to-b from-background -mx-4 px-4"}},t=c,{ui:s,attrs:d}=k("aside",f(t,"ui"),p,f(t,"class"),!0);return(a,_)=>{const u=$;return m(),g("aside",y({class:e(s).wrapper},e(d)),[i("div",B,[a.$slots.top?(m(),g("div",{key:0,class:r(e(s).top.wrapper)},[i("div",{class:r(e(s).top.header)},null,2),i("div",{class:r(e(s).top.body)},[o(a.$slots,"top")],2),i("div",{class:r(e(s).top.footer)},null,2)],2)):b("",!0),o(a.$slots,"links",{},()=>[l(u,{links:c.links},null,8,["links"])]),o(a.$slots,"default"),o(a.$slots,"bottom")])],16)}}}),E=v({__name:"docs",setup(c){const p=w("navigation");return(t,s)=>{const d=U,a=V,_=A,u=j,h=C;return m(),x(h,null,{default:n(()=>[l(u,null,{default:n(()=>[l(_,null,{left:n(()=>[l(a,null,{default:n(()=>[l(d,{links:("mapContentNavigation"in t?t.mapContentNavigation:e(N))(e(p))},null,8,["links"])]),_:1})]),default:n(()=>[o(t.$slots,"default")]),_:3})]),_:3})]),_:3})}}});export{E as default}; +import{d as v,ap as k,aq as f,c as m,e as g,f as i,n as r,E as e,aj as o,g as b,h as l,ak as y,bv as $,a3 as w,ai as x,w as n,bw as C,bx as N,by as U,aX as A,a$ as j}from"./5uFLRXWz.js";const B={class:"relative"},V=v({inheritAttrs:!1,__name:"Aside",props:{links:{type:Array,default:()=>[]},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(c){const p={wrapper:"hidden overflow-y-auto lg:block lg:max-h-[calc(100vh-var(--header-height))] lg:sticky lg:top-[--header-height] py-8 lg:px-4 lg:-mx-4",top:{wrapper:"sticky -top-8 -mt-8 pointer-events-none z-[1]",header:"h-8 bg-background -mx-4 px-4",body:"bg-background relative pointer-events-auto flex -mx-4 px-4",footer:"h-8 bg-gradient-to-b from-background -mx-4 px-4"}},t=c,{ui:s,attrs:d}=k("aside",f(t,"ui"),p,f(t,"class"),!0);return(a,_)=>{const u=$;return m(),g("aside",y({class:e(s).wrapper},e(d)),[i("div",B,[a.$slots.top?(m(),g("div",{key:0,class:r(e(s).top.wrapper)},[i("div",{class:r(e(s).top.header)},null,2),i("div",{class:r(e(s).top.body)},[o(a.$slots,"top")],2),i("div",{class:r(e(s).top.footer)},null,2)],2)):b("",!0),o(a.$slots,"links",{},()=>[l(u,{links:c.links},null,8,["links"])]),o(a.$slots,"default"),o(a.$slots,"bottom")])],16)}}}),E=v({__name:"docs",setup(c){const p=w("navigation");return(t,s)=>{const d=U,a=V,_=A,u=j,h=C;return m(),x(h,null,{default:n(()=>[l(u,null,{default:n(()=>[l(_,null,{left:n(()=>[l(a,null,{default:n(()=>[l(d,{links:("mapContentNavigation"in t?t.mapContentNavigation:e(N))(e(p))},null,8,["links"])]),_:1})]),default:n(()=>[o(t.$slots,"default")]),_:3})]),_:3})]),_:3})}}});export{E as default}; diff --git a/_nuxt/Q1re-agt.js b/_nuxt/DqYI4N-U.js similarity index 89% rename from _nuxt/Q1re-agt.js rename to _nuxt/DqYI4N-U.js index 51f35c274..5508a6912 100644 --- a/_nuxt/Q1re-agt.js +++ b/_nuxt/DqYI4N-U.js @@ -1 +1 @@ -import{_ as m}from"./DstQJC2Y.js";import{_ as f}from"./BC4Kh9UJ.js";import{d as u,ap as p,c as n,e as r,n as t,E as o,h as s,f as g,t as y,g as b,aj as v}from"./DV7eKLeG.js";const k=u({__name:"ProseCode",props:{code:{type:String,required:!0},icon:{type:String,default:void 0},language:{type:String,default:void 0},hideHeader:{type:Boolean,default:!1},filename:{type:String,default:void 0},highlights:{type:Array,default:void 0},meta:{type:String,default:void 0}},setup(e){const i={wrapper:"[&>pre]:!rounded-t-none [&>pre]:!my-0 my-5",header:"flex items-center gap-1.5 border border-gray-200 dark:border-gray-700 border-b-0 relative rounded-t-md px-4 py-3 not-prose",icon:{base:""},button:{base:"absolute top-2.5 right-2.5"},filename:"text-gray-700 dark:text-gray-200 text-sm/6"},{ui:a}=p("content.prose.code",void 0,i,void 0,!0);return(d,h)=>{const l=m,c=f;return n(),r("div",{class:t(["relative",!!e.filename&&o(a).wrapper])},[e.filename&&!e.hideHeader?(n(),r("div",{key:0,class:t(o(a).header)},[s(l,{icon:e.icon,filename:e.filename,class:t(o(a).icon.base)},null,8,["icon","filename","class"]),g("span",{class:t(o(a).filename)},y(e.filename),3)],2)):b("",!0),s(c,{code:e.code,class:t(o(a).button.base)},null,8,["code","class"]),v(d.$slots,"default")],2)}}});export{k as _}; +import{_ as m}from"./nO3zWEPC.js";import{_ as f}from"./CbCDpNlC.js";import{d as u,ap as p,c as n,e as r,n as t,E as o,h as s,f as g,t as y,g as b,aj as v}from"./5uFLRXWz.js";const k=u({__name:"ProseCode",props:{code:{type:String,required:!0},icon:{type:String,default:void 0},language:{type:String,default:void 0},hideHeader:{type:Boolean,default:!1},filename:{type:String,default:void 0},highlights:{type:Array,default:void 0},meta:{type:String,default:void 0}},setup(e){const i={wrapper:"[&>pre]:!rounded-t-none [&>pre]:!my-0 my-5",header:"flex items-center gap-1.5 border border-gray-200 dark:border-gray-700 border-b-0 relative rounded-t-md px-4 py-3 not-prose",icon:{base:""},button:{base:"absolute top-2.5 right-2.5"},filename:"text-gray-700 dark:text-gray-200 text-sm/6"},{ui:a}=p("content.prose.code",void 0,i,void 0,!0);return(d,h)=>{const l=m,c=f;return n(),r("div",{class:t(["relative",!!e.filename&&o(a).wrapper])},[e.filename&&!e.hideHeader?(n(),r("div",{key:0,class:t(o(a).header)},[s(l,{icon:e.icon,filename:e.filename,class:t(o(a).icon.base)},null,8,["icon","filename","class"]),g("span",{class:t(o(a).filename)},y(e.filename),3)],2)):b("",!0),s(c,{code:e.code,class:t(o(a).button.base)},null,8,["code","class"]),v(d.$slots,"default")],2)}}});export{k as _}; diff --git a/_nuxt/Dt5a3v8u.js b/_nuxt/Dt5a3v8u.js new file mode 100644 index 000000000..0f5ebf7a6 --- /dev/null +++ b/_nuxt/Dt5a3v8u.js @@ -0,0 +1 @@ +import{_ as m}from"./nO3zWEPC.js";import"./5uFLRXWz.js";export{m as default}; diff --git a/_nuxt/DxC79xFA.js b/_nuxt/DxC79xFA.js new file mode 100644 index 000000000..f69119fcb --- /dev/null +++ b/_nuxt/DxC79xFA.js @@ -0,0 +1 @@ +import{d as e}from"./5uFLRXWz.js";const o=e({name:"OgImage",async setup(n,{attrs:t}){return()=>null}});export{o as default}; diff --git a/_nuxt/C2szqgS3.js b/_nuxt/Dye3TMXi.js similarity index 94% rename from _nuxt/C2szqgS3.js rename to _nuxt/Dye3TMXi.js index 69924fe75..450272de0 100644 --- a/_nuxt/C2szqgS3.js +++ b/_nuxt/Dye3TMXi.js @@ -1 +1 @@ -import{d as w,z as C,D as s,ap as S,aq as g,b7 as l,c as n,ai as c,w as m,E as e,g as i,n as u,f,t as A,e as D,ak as I,aL as L,ab as U}from"./DV7eKLeG.js";import"./DXNMbFcI.js";import{_ as B}from"./CM-HxrcU.js";import{r as E}from"./BkwiVK2a.js";import"./BneCoJRQ.js";const $=f("span",{class:"absolute inset-0","aria-hidden":"true"},null,-1),V=w({inheritAttrs:!1,__name:"Card",props:{icon:{type:String,default:void 0},color:{type:String,default:"primary"},to:{type:String,default:void 0},target:{type:String,default:void 0},title:{type:String,default:void 0},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(o){const y=C(),x=s(()=>({wrapper:"relative group overflow-hidden flex items-center rounded-lg",to:"hover:ring-1 hover:ring-[--color-light] dark:hover:ring-[--color-dark] hover:bg-gray-100/50 dark:hover:bg-gray-800/50",icon:{base:"w-6 h-6 mb-4 inline-flex items-center text-[--color-light] dark:text-[--color-dark] pointer-events-none"},body:{base:"flex-1"},externalIcon:{name:y.ui.icons.external,base:"w-4 h-4 absolute right-2 top-2 text-gray-400 dark:text-gray-500 group-hover:text-[--color-light] dark:group-hover:text-[--color-dark]"},title:"text-gray-900 dark:text-white font-semibold text-base my-0",description:"text-[15px] text-gray-500 dark:text-gray-400 mt-1 mb-0"})),t=o,{ui:r,attrs:h}=S("content.card",g(t,"ui"),x,g(t,"class"),!0),b=s(()=>{var a;return t.color==="primary"?"rgb(var(--color-primary-DEFAULT))":((a=l[t.color])==null?void 0:a["500"])||l[t.color]||t.color}),k=s(()=>{var a;return t.color==="primary"?"rgb(var(--color-primary-DEFAULT))":((a=l[t.color])==null?void 0:a["400"])||l[t.color]||t.color}),d=s(()=>t.target||(t.to&&t.to.startsWith("http")?"_blank":void 0));return(a,N)=>{const v=L,p=U,_=B;return n(),c(_,I({class:[e(r).wrapper,o.to&&e(r).to]},e(h),{ui:e(r),style:{"--color-light":e(b),"--color-dark":e(k)}}),{default:m(()=>[o.to?(n(),c(v,{key:0,to:o.to,target:e(d),class:"focus:outline-none",tabindex:"-1"},{default:m(()=>[$]),_:1},8,["to","target"])):i("",!0),o.icon?(n(),c(p,{key:1,name:o.icon,class:u(e(r).icon.base)},null,8,["name","class"])):i("",!0),o.to&&e(d)==="_blank"?(n(),c(p,{key:2,name:e(r).externalIcon.name,class:u(e(r).externalIcon.base)},null,8,["name","class"])):i("",!0),f("p",{class:u(e(r).title)},A(o.title),3),a.$slots.default?(n(),D("p",{key:3,class:u(e(r).description)},[E(a.$slots,"default",{unwrap:"p"})],2)):i("",!0)]),_:3},16,["class","ui","style"])}}});export{V as default}; +import{d as w,z as C,D as s,ap as S,aq as g,b7 as l,c as n,ai as c,w as m,E as e,g as i,n as u,f,t as A,e as D,ak as I,aL as L,ab as U}from"./5uFLRXWz.js";import"./DVHUXCHF.js";import{_ as B}from"./XVY12RzN.js";import{r as E}from"./C8UhvDYG.js";import"./BneCoJRQ.js";const $=f("span",{class:"absolute inset-0","aria-hidden":"true"},null,-1),V=w({inheritAttrs:!1,__name:"Card",props:{icon:{type:String,default:void 0},color:{type:String,default:"primary"},to:{type:String,default:void 0},target:{type:String,default:void 0},title:{type:String,default:void 0},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(o){const y=C(),x=s(()=>({wrapper:"relative group overflow-hidden flex items-center rounded-lg",to:"hover:ring-1 hover:ring-[--color-light] dark:hover:ring-[--color-dark] hover:bg-gray-100/50 dark:hover:bg-gray-800/50",icon:{base:"w-6 h-6 mb-4 inline-flex items-center text-[--color-light] dark:text-[--color-dark] pointer-events-none"},body:{base:"flex-1"},externalIcon:{name:y.ui.icons.external,base:"w-4 h-4 absolute right-2 top-2 text-gray-400 dark:text-gray-500 group-hover:text-[--color-light] dark:group-hover:text-[--color-dark]"},title:"text-gray-900 dark:text-white font-semibold text-base my-0",description:"text-[15px] text-gray-500 dark:text-gray-400 mt-1 mb-0"})),t=o,{ui:r,attrs:h}=S("content.card",g(t,"ui"),x,g(t,"class"),!0),b=s(()=>{var a;return t.color==="primary"?"rgb(var(--color-primary-DEFAULT))":((a=l[t.color])==null?void 0:a["500"])||l[t.color]||t.color}),k=s(()=>{var a;return t.color==="primary"?"rgb(var(--color-primary-DEFAULT))":((a=l[t.color])==null?void 0:a["400"])||l[t.color]||t.color}),d=s(()=>t.target||(t.to&&t.to.startsWith("http")?"_blank":void 0));return(a,N)=>{const v=L,p=U,_=B;return n(),c(_,I({class:[e(r).wrapper,o.to&&e(r).to]},e(h),{ui:e(r),style:{"--color-light":e(b),"--color-dark":e(k)}}),{default:m(()=>[o.to?(n(),c(v,{key:0,to:o.to,target:e(d),class:"focus:outline-none",tabindex:"-1"},{default:m(()=>[$]),_:1},8,["to","target"])):i("",!0),o.icon?(n(),c(p,{key:1,name:o.icon,class:u(e(r).icon.base)},null,8,["name","class"])):i("",!0),o.to&&e(d)==="_blank"?(n(),c(p,{key:2,name:e(r).externalIcon.name,class:u(e(r).externalIcon.base)},null,8,["name","class"])):i("",!0),f("p",{class:u(e(r).title)},A(o.title),3),a.$slots.default?(n(),D("p",{key:3,class:u(e(r).description)},[E(a.$slots,"default",{unwrap:"p"})],2)):i("",!0)]),_:3},16,["class","ui","style"])}}});export{V as default}; diff --git a/_nuxt/Bh5smzGu.js b/_nuxt/I0ocb0e_.js similarity index 74% rename from _nuxt/Bh5smzGu.js rename to _nuxt/I0ocb0e_.js index cee10450c..7447a51c8 100644 --- a/_nuxt/Bh5smzGu.js +++ b/_nuxt/I0ocb0e_.js @@ -1 +1 @@ -import{_ as g}from"./4UEM0VaZ.js";import h from"./D0-C4B6x.js";import{u as B}from"./QA-ib-BQ.js";import{d as D,aS as x,aV as v,ag as w,c as a,e as o,F as C,ah as L,h as n,w as c,k as i,t as _,E as l}from"./DV7eKLeG.js";import"./C3Kzup5y.js";import"./bXKbWHrB.js";import"./BneCoJRQ.js";import"./Cp7Md9uy.js";const k=(s,e={year:"numeric",month:"long",day:"numeric"})=>new Date(s).toLocaleDateString("en",e),R={style:{"margin-top":"50px"}},H=D({__name:"Releases",async setup(s){let e,r;const{fetchReleases:p}=B(),{data:u}=([e,r]=x(()=>v("releases",()=>p({}))),e=await e,r(),e);return(m,S)=>{const d=w("Badge"),f=g,y=h;return a(),o("div",R,[(a(!0),o(C,null,L(l(u),t=>(a(),o("div",{key:t.name,style:{"margin-bottom":"50px"}},[n(f,{id:t.name},{default:c(()=>[i(_(t.name)+" ",1),n(d,{style:{"margin-left":"10px"}},{default:c(()=>[i(_(("formatDateByLocale"in m?m.formatDateByLocale:l(k))(t.date)),1)]),_:2},1024)]),_:2},1032,["id"]),n(y,{value:t},null,8,["value"])]))),128))])}}});export{H as default}; +import{_ as g}from"./Ce9WXhE4.js";import h from"./DI2CkNWG.js";import{u as B}from"./B3cAN6Fg.js";import{d as D,aS as x,aV as v,ag as w,c as a,e as o,F as C,ah as L,h as n,w as c,k as i,t as _,E as l}from"./5uFLRXWz.js";import"./TXOJiQqS.js";import"./CgMG10Xn.js";import"./BneCoJRQ.js";import"./Cp7Md9uy.js";const k=(s,e={year:"numeric",month:"long",day:"numeric"})=>new Date(s).toLocaleDateString("en",e),R={style:{"margin-top":"50px"}},H=D({__name:"Releases",async setup(s){let e,r;const{fetchReleases:p}=B(),{data:u}=([e,r]=x(()=>v("releases",()=>p({}))),e=await e,r(),e);return(m,S)=>{const d=w("Badge"),f=g,y=h;return a(),o("div",R,[(a(!0),o(C,null,L(l(u),t=>(a(),o("div",{key:t.name,style:{"margin-bottom":"50px"}},[n(f,{id:t.name},{default:c(()=>[i(_(t.name)+" ",1),n(d,{style:{"margin-left":"10px"}},{default:c(()=>[i(_(("formatDateByLocale"in m?m.formatDateByLocale:l(k))(t.date)),1)]),_:2},1024)]),_:2},1032,["id"]),n(y,{value:t},null,8,["value"])]))),128))])}}});export{H as default}; diff --git a/_nuxt/KeDkB44q.js b/_nuxt/KDi_ttG3.js similarity index 51% rename from _nuxt/KeDkB44q.js rename to _nuxt/KDi_ttG3.js index 04687064c..8ae2c7559 100644 --- a/_nuxt/KeDkB44q.js +++ b/_nuxt/KDi_ttG3.js @@ -1 +1 @@ -import{d as n}from"./DV7eKLeG.js";const m=n({name:"OgImageDynamic",async setup(a,{attrs:e}){return()=>null}});export{m as default}; +import{d as n}from"./5uFLRXWz.js";const m=n({name:"OgImageDynamic",async setup(a,{attrs:e}){return()=>null}});export{m as default}; diff --git a/_nuxt/B29X6ZPn.js b/_nuxt/NvOymb5l.js similarity index 87% rename from _nuxt/B29X6ZPn.js rename to _nuxt/NvOymb5l.js index 30288b181..2cd040c50 100644 --- a/_nuxt/B29X6ZPn.js +++ b/_nuxt/NvOymb5l.js @@ -1 +1 @@ -import{d,ap as p,aq as c,c as n,e as l,aj as f,ak as u,E as e}from"./DV7eKLeG.js";const y=d({inheritAttrs:!1,__name:"FieldGroup",props:{class:{type:[String,Object,Array],default:void 0}},setup(t){const r={wrapper:"mt-5 space-y-5 divide-y divide-gray-200 dark:divide-gray-800 [&>div]:pt-5 [&>div:first-child]:pt-0 [&>div:first-child]:mt-0"},s=t,{ui:a,attrs:i}=p("content.fieldGroup",void 0,r,c(s,"class"),!0);return(o,m)=>(n(),l("div",u({class:e(a).wrapper},e(i)),[f(o.$slots,"default")],16))}});export{y as default}; +import{d,ap as p,aq as c,c as n,e as l,aj as f,ak as u,E as e}from"./5uFLRXWz.js";const y=d({inheritAttrs:!1,__name:"FieldGroup",props:{class:{type:[String,Object,Array],default:void 0}},setup(t){const r={wrapper:"mt-5 space-y-5 divide-y divide-gray-200 dark:divide-gray-800 [&>div]:pt-5 [&>div:first-child]:pt-0 [&>div:first-child]:mt-0"},s=t,{ui:a,attrs:i}=p("content.fieldGroup",void 0,r,c(s,"class"),!0);return(o,m)=>(n(),l("div",u({class:e(a).wrapper},e(i)),[f(o.$slots,"default")],16))}});export{y as default}; diff --git a/_nuxt/p5M_6W0j.js b/_nuxt/OfsaR007.js similarity index 75% rename from _nuxt/p5M_6W0j.js rename to _nuxt/OfsaR007.js index d483d8cd8..9e8113541 100644 --- a/_nuxt/p5M_6W0j.js +++ b/_nuxt/OfsaR007.js @@ -1 +1 @@ -import{d as u,aV as n,a_ as i,b8 as o}from"./DV7eKLeG.js";import{u as d}from"./QA-ib-BQ.js";import"./Cp7Md9uy.js";const h=u({props:{query:{type:Object,required:!1,default:()=>({})}},async setup(a){const{fetchLastRelease:r}=d(),{data:s,refresh:e,pending:t}=await n(`github-last-release-${i(a.query)}`,()=>r(a.query));return{release:s,refresh:e,pending:t}},render({release:a,refresh:r,pending:s}){var t;const e=o();return(t=e==null?void 0:e.default)==null?void 0:t.call(e,{release:a,refresh:r,pending:s})}});export{h as default}; +import{d as u,aV as n,a_ as i,b8 as o}from"./5uFLRXWz.js";import{u as d}from"./B3cAN6Fg.js";import"./Cp7Md9uy.js";const h=u({props:{query:{type:Object,required:!1,default:()=>({})}},async setup(a){const{fetchLastRelease:r}=d(),{data:s,refresh:e,pending:t}=await n(`github-last-release-${i(a.query)}`,()=>r(a.query));return{release:s,refresh:e,pending:t}},render({release:a,refresh:r,pending:s}){var t;const e=o();return(t=e==null?void 0:e.default)==null?void 0:t.call(e,{release:a,refresh:r,pending:s})}});export{h as default}; diff --git a/_nuxt/DpnzQuXT.js b/_nuxt/OkcRVNLs.js similarity index 99% rename from _nuxt/DpnzQuXT.js rename to _nuxt/OkcRVNLs.js index f2680a402..0504296a6 100644 --- a/_nuxt/DpnzQuXT.js +++ b/_nuxt/OkcRVNLs.js @@ -1,5 +1,5 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./D4r5Lxls.js","./CbViG2Xw.js","./Dch3xQiY.js","./CbYhyuC0.js","./BdfWgkoX.js","./DC8MraHL.js","./CsyrCbsw.js","./BlxWTfDV.js","./CupVZNk8.js","./C5gCGmDW.js","./BVZ7Taxl.js","./DbjvnynL.js"])))=>i.map(i=>d[i]); -var nn=Object.defineProperty;var rn=(r,e,t)=>e in r?nn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var u=(r,e,t)=>rn(r,typeof e!="symbol"?e+"":e,t);import{_ as P}from"./DV7eKLeG.js";import{getMdcConfigs as sn}from"./bNaE6FFb.js";var $;(function(r){r[r.NotSet=-1]="NotSet",r[r.None=0]="None",r[r.Italic=1]="Italic",r[r.Bold=2]="Bold",r[r.Underline=4]="Underline"})($||($={}));var re;(function(r){function e(h){return h.toString(2).padStart(32,"0")}r.toBinaryStr=e;function t(h){const f=r.getLanguageId(h),p=r.getTokenType(h),m=r.getFontStyle(h),g=r.getForeground(h),d=r.getBackground(h);console.log({languageId:f,tokenType:p,fontStyle:m,foreground:g,background:d})}r.print=t;function n(h){return(h&255)>>>0}r.getLanguageId=n;function s(h){return(h&768)>>>8}r.getTokenType=s;function o(h){return(h&1024)!==0}r.containsBalancedBrackets=o;function i(h){return(h&30720)>>>11}r.getFontStyle=i;function a(h){return(h&16744448)>>>15}r.getForeground=a;function l(h){return(h&4278190080)>>>24}r.getBackground=l;function c(h,f,p,m,g,d,y){let S=r.getLanguageId(h),v=r.getTokenType(h),b=r.containsBalancedBrackets(h)?1:0,C=r.getFontStyle(h),w=r.getForeground(h),R=r.getBackground(h);return f!==0&&(S=f),p!==8&&(v=p),m!==null&&(b=m?1:0),g!==-1&&(C=g),d!==0&&(w=d),y!==0&&(R=y),(S<<0|v<<8|b<<10|C<<11|w<<15|R<<24)>>>0}r.set=c})(re||(re={}));function we(r,e){const t=[],n=on(r);let s=n.next();for(;s!==null;){let l=0;if(s.length===2&&s.charAt(1)===":"){switch(s.charAt(0)){case"R":l=1;break;case"L":l=-1;break;default:console.log(`Unknown priority ${s} in scope selector`)}s=n.next()}let c=i();if(t.push({matcher:c,priority:l}),s!==",")break;s=n.next()}return t;function o(){if(s==="-"){s=n.next();const l=o();return c=>!!l&&!l(c)}if(s==="("){s=n.next();const l=a();return s===")"&&(s=n.next()),l}if(rt(s)){const l=[];do l.push(s),s=n.next();while(rt(s));return c=>e(l,c)}return null}function i(){const l=[];let c=o();for(;c;)l.push(c),c=o();return h=>l.every(f=>f(h))}function a(){const l=[];let c=i();for(;c&&(l.push(c),s==="|"||s===",");){do s=n.next();while(s==="|"||s===",");c=i()}return h=>l.some(f=>f(h))}}function rt(r){return!!r&&!!r.match(/[\w\.:]+/)}function on(r){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,t=e.exec(r);return{next:()=>{if(!t)return null;const n=t[0];return t=e.exec(r),n}}}function vt(r){typeof r.dispose=="function"&&r.dispose()}function ln(r){return Ke(r)}function Ke(r){return Array.isArray(r)?an(r):typeof r=="object"?cn(r):r}function an(r){let e=[];for(let t=0,n=r.length;t{for(let n in t)r[n]=t[n]}),r}function At(r){const e=~r.lastIndexOf("/")||~r.lastIndexOf("\\");return e===0?r:~e===r.length-1?At(r.substring(0,r.length-1)):r.substr(~e+1)}let Me=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;class _e{static hasCaptures(e){return e===null?!1:(Me.lastIndex=0,Me.test(e))}static replaceCaptures(e,t,n){return e.replace(Me,(s,o,i,a)=>{let l=n[parseInt(o||i,10)];if(l){let c=t.substring(l.start,l.end);for(;c[0]===".";)c=c.substring(1);switch(a){case"downcase":return c.toLowerCase();case"upcase":return c.toUpperCase();default:return c}}else return s})}}function kt(r,e){return re?1:0}function Pt(r,e){if(r===null&&e===null)return 0;if(!r)return-1;if(!e)return 1;let t=r.length,n=e.length;if(t===n){for(let s=0;s`);return}const o=t.lookup(e);r instanceof ue?Ce({baseGrammar:o,selfGrammar:s},n):$e(r.ruleName,{baseGrammar:o,selfGrammar:s,repository:s.repository},n);const i=t.injections(r.scopeName);if(i)for(const a of i)n.add(new ue(a))}function $e(r,e,t){if(e.repository&&e.repository[r]){const n=e.repository[r];ve([n],e,t)}}function Ce(r,e){r.selfGrammar.patterns&&Array.isArray(r.selfGrammar.patterns)&&ve(r.selfGrammar.patterns,{...r,repository:r.selfGrammar.repository},e),r.selfGrammar.injections&&ve(Object.values(r.selfGrammar.injections),{...r,repository:r.selfGrammar.repository},e)}function ve(r,e,t){for(const n of r){if(t.visitedRule.has(n))continue;t.visitedRule.add(n);const s=n.repository?Rt({},e.repository,n.repository):e.repository;Array.isArray(n.patterns)&&ve(n.patterns,{...e,repository:s},t);const o=n.include;if(!o)continue;const i=Et(o);switch(i.kind){case 0:Ce({...e,selfGrammar:e.baseGrammar},t);break;case 1:Ce(e,t);break;case 2:$e(i.ruleName,{...e,repository:s},t);break;case 3:case 4:const a=i.scopeName===e.selfGrammar.scopeName?e.selfGrammar:i.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(a){const l={baseGrammar:e.baseGrammar,selfGrammar:a,repository:s};i.kind===4?$e(i.ruleName,l,t):Ce(l,t)}else i.kind===4?t.add(new un(i.scopeName,i.ruleName)):t.add(new ue(i.scopeName));break}}}class dn{constructor(){u(this,"kind",0)}}class mn{constructor(){u(this,"kind",1)}}class gn{constructor(e){u(this,"ruleName");u(this,"kind",2);this.ruleName=e}}class _n{constructor(e){u(this,"scopeName");u(this,"kind",3);this.scopeName=e}}class yn{constructor(e,t){u(this,"scopeName");u(this,"ruleName");u(this,"kind",4);this.scopeName=e,this.ruleName=t}}function Et(r){if(r==="$base")return new dn;if(r==="$self")return new mn;const e=r.indexOf("#");if(e===-1)return new _n(r);if(e===0)return new gn(r.substring(1));{const t=r.substring(0,e),n=r.substring(e+1);return new yn(t,n)}}const bn=/\\(\d+)/,ot=/\\(\d+)/g,Sn=-1,Lt=-2;class de{constructor(e,t,n,s){u(this,"$location");u(this,"id");u(this,"_nameIsCapturing");u(this,"_name");u(this,"_contentNameIsCapturing");u(this,"_contentName");this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=_e.hasCaptures(this._name),this._contentName=s||null,this._contentNameIsCapturing=_e.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${At(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:_e.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:_e.replaceCaptures(this._contentName,e,t)}}class Cn extends de{constructor(t,n,s,o,i){super(t,n,s,o);u(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(t,n){throw new Error("Not supported!")}compile(t,n){throw new Error("Not supported!")}compileAG(t,n,s,o){throw new Error("Not supported!")}}class wn extends de{constructor(t,n,s,o,i){super(t,n,s,null);u(this,"_match");u(this,"captures");u(this,"_cachedCompiledPatterns");this._match=new Y(o,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,n){n.push(this._match)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,s,o){return this._getCachedCompiledPatterns(t).compileAG(t,s,o)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new he,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}class it extends de{constructor(t,n,s,o,i){super(t,n,s,o);u(this,"hasMissingPatterns");u(this,"patterns");u(this,"_cachedCompiledPatterns");this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,n){for(const s of this.patterns)t.getRule(s).collectPatterns(t,n)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,s,o){return this._getCachedCompiledPatterns(t).compileAG(t,s,o)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new he,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}class We extends de{constructor(t,n,s,o,i,a,l,c,h,f){super(t,n,s,o);u(this,"_begin");u(this,"beginCaptures");u(this,"_end");u(this,"endHasBackReferences");u(this,"endCaptures");u(this,"applyEndPatternLast");u(this,"hasMissingPatterns");u(this,"patterns");u(this,"_cachedCompiledPatterns");this._begin=new Y(i,this.id),this.beginCaptures=a,this._end=new Y(l||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=c,this.applyEndPatternLast=h||!1,this.patterns=f.patterns,this.hasMissingPatterns=f.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,n){return this._end.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t,n).compile(t)}compileAG(t,n,s,o){return this._getCachedCompiledPatterns(t,n).compileAG(t,s,o)}_getCachedCompiledPatterns(t,n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new he;for(const s of this.patterns)t.getRule(s).collectPatterns(t,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,n):this._cachedCompiledPatterns.setSource(0,n)),this._cachedCompiledPatterns}}class Re extends de{constructor(t,n,s,o,i,a,l,c,h){super(t,n,s,o);u(this,"_begin");u(this,"beginCaptures");u(this,"whileCaptures");u(this,"_while");u(this,"whileHasBackReferences");u(this,"hasMissingPatterns");u(this,"patterns");u(this,"_cachedCompiledPatterns");u(this,"_cachedCompiledWhilePatterns");this._begin=new Y(i,this.id),this.beginCaptures=a,this.whileCaptures=c,this._while=new Y(l,Lt),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=h.patterns,this.hasMissingPatterns=h.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,n){return this._while.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,s,o){return this._getCachedCompiledPatterns(t).compileAG(t,s,o)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new he;for(const n of this.patterns)t.getRule(n).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,n){return this._getCachedCompiledWhilePatterns(t,n).compile(t)}compileWhileAG(t,n,s,o){return this._getCachedCompiledWhilePatterns(t,n).compileAG(t,s,o)}_getCachedCompiledWhilePatterns(t,n){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new he,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||"￿"),this._cachedCompiledWhilePatterns}}class O{static createCaptureRule(e,t,n,s,o){return e.registerRule(i=>new Cn(t,i,n,s,o))}static getCompiledRuleId(e,t,n){return e.id||t.registerRule(s=>{if(e.id=s,e.match)return new wn(e.$vscodeTextmateLocation,e.id,e.name,e.match,O._compileCaptures(e.captures,t,n));if(typeof e.begin>"u"){e.repository&&(n=Rt({},n,e.repository));let o=e.patterns;return typeof o>"u"&&e.include&&(o=[{include:e.include}]),new it(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,O._compilePatterns(o,t,n))}return e.while?new Re(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,O._compileCaptures(e.beginCaptures||e.captures,t,n),e.while,O._compileCaptures(e.whileCaptures||e.captures,t,n),O._compilePatterns(e.patterns,t,n)):new We(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,O._compileCaptures(e.beginCaptures||e.captures,t,n),e.end,O._compileCaptures(e.endCaptures||e.captures,t,n),e.applyEndPatternLast,O._compilePatterns(e.patterns,t,n))}),e.id}static _compileCaptures(e,t,n){let s=[];if(e){let o=0;for(const i in e){if(i==="$vscodeTextmateLocation")continue;const a=parseInt(i,10);a>o&&(o=a)}for(let i=0;i<=o;i++)s[i]=null;for(const i in e){if(i==="$vscodeTextmateLocation")continue;const a=parseInt(i,10);let l=0;e[i].patterns&&(l=O.getCompiledRuleId(e[i],t,n)),s[a]=O.createCaptureRule(t,e[i].$vscodeTextmateLocation,e[i].name,e[i].contentName,l)}}return s}static _compilePatterns(e,t,n){let s=[];if(e)for(let o=0,i=e.length;oe.substring(s.start,s.end));return ot.lastIndex=0,this.source.replace(ot,(s,o)=>Nt(n[parseInt(o,10)]||""))}_buildAnchorCache(){let e=[],t=[],n=[],s=[],o,i,a,l;for(o=0,i=this.source.length;on.source);this._cached=new lt(e,t,this._items.map(n=>n.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let s=this._items.map(o=>o.resolveAnchors(t,n));return new lt(e,s,this._items.map(o=>o.ruleId))}}class lt{constructor(e,t,n){u(this,"regExps");u(this,"rules");u(this,"scanner");this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;te in r?nn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var u=(r,e,t)=>rn(r,typeof e!="symbol"?e+"":e,t);import{_ as P}from"./5uFLRXWz.js";import{getMdcConfigs as sn}from"./bNaE6FFb.js";var $;(function(r){r[r.NotSet=-1]="NotSet",r[r.None=0]="None",r[r.Italic=1]="Italic",r[r.Bold=2]="Bold",r[r.Underline=4]="Underline"})($||($={}));var re;(function(r){function e(h){return h.toString(2).padStart(32,"0")}r.toBinaryStr=e;function t(h){const f=r.getLanguageId(h),p=r.getTokenType(h),m=r.getFontStyle(h),g=r.getForeground(h),d=r.getBackground(h);console.log({languageId:f,tokenType:p,fontStyle:m,foreground:g,background:d})}r.print=t;function n(h){return(h&255)>>>0}r.getLanguageId=n;function s(h){return(h&768)>>>8}r.getTokenType=s;function o(h){return(h&1024)!==0}r.containsBalancedBrackets=o;function i(h){return(h&30720)>>>11}r.getFontStyle=i;function a(h){return(h&16744448)>>>15}r.getForeground=a;function l(h){return(h&4278190080)>>>24}r.getBackground=l;function c(h,f,p,m,g,d,y){let S=r.getLanguageId(h),v=r.getTokenType(h),b=r.containsBalancedBrackets(h)?1:0,C=r.getFontStyle(h),w=r.getForeground(h),R=r.getBackground(h);return f!==0&&(S=f),p!==8&&(v=p),m!==null&&(b=m?1:0),g!==-1&&(C=g),d!==0&&(w=d),y!==0&&(R=y),(S<<0|v<<8|b<<10|C<<11|w<<15|R<<24)>>>0}r.set=c})(re||(re={}));function we(r,e){const t=[],n=on(r);let s=n.next();for(;s!==null;){let l=0;if(s.length===2&&s.charAt(1)===":"){switch(s.charAt(0)){case"R":l=1;break;case"L":l=-1;break;default:console.log(`Unknown priority ${s} in scope selector`)}s=n.next()}let c=i();if(t.push({matcher:c,priority:l}),s!==",")break;s=n.next()}return t;function o(){if(s==="-"){s=n.next();const l=o();return c=>!!l&&!l(c)}if(s==="("){s=n.next();const l=a();return s===")"&&(s=n.next()),l}if(rt(s)){const l=[];do l.push(s),s=n.next();while(rt(s));return c=>e(l,c)}return null}function i(){const l=[];let c=o();for(;c;)l.push(c),c=o();return h=>l.every(f=>f(h))}function a(){const l=[];let c=i();for(;c&&(l.push(c),s==="|"||s===",");){do s=n.next();while(s==="|"||s===",");c=i()}return h=>l.some(f=>f(h))}}function rt(r){return!!r&&!!r.match(/[\w\.:]+/)}function on(r){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,t=e.exec(r);return{next:()=>{if(!t)return null;const n=t[0];return t=e.exec(r),n}}}function vt(r){typeof r.dispose=="function"&&r.dispose()}function ln(r){return Ke(r)}function Ke(r){return Array.isArray(r)?an(r):typeof r=="object"?cn(r):r}function an(r){let e=[];for(let t=0,n=r.length;t{for(let n in t)r[n]=t[n]}),r}function At(r){const e=~r.lastIndexOf("/")||~r.lastIndexOf("\\");return e===0?r:~e===r.length-1?At(r.substring(0,r.length-1)):r.substr(~e+1)}let Me=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;class _e{static hasCaptures(e){return e===null?!1:(Me.lastIndex=0,Me.test(e))}static replaceCaptures(e,t,n){return e.replace(Me,(s,o,i,a)=>{let l=n[parseInt(o||i,10)];if(l){let c=t.substring(l.start,l.end);for(;c[0]===".";)c=c.substring(1);switch(a){case"downcase":return c.toLowerCase();case"upcase":return c.toUpperCase();default:return c}}else return s})}}function kt(r,e){return re?1:0}function Pt(r,e){if(r===null&&e===null)return 0;if(!r)return-1;if(!e)return 1;let t=r.length,n=e.length;if(t===n){for(let s=0;s`);return}const o=t.lookup(e);r instanceof ue?Ce({baseGrammar:o,selfGrammar:s},n):$e(r.ruleName,{baseGrammar:o,selfGrammar:s,repository:s.repository},n);const i=t.injections(r.scopeName);if(i)for(const a of i)n.add(new ue(a))}function $e(r,e,t){if(e.repository&&e.repository[r]){const n=e.repository[r];ve([n],e,t)}}function Ce(r,e){r.selfGrammar.patterns&&Array.isArray(r.selfGrammar.patterns)&&ve(r.selfGrammar.patterns,{...r,repository:r.selfGrammar.repository},e),r.selfGrammar.injections&&ve(Object.values(r.selfGrammar.injections),{...r,repository:r.selfGrammar.repository},e)}function ve(r,e,t){for(const n of r){if(t.visitedRule.has(n))continue;t.visitedRule.add(n);const s=n.repository?Rt({},e.repository,n.repository):e.repository;Array.isArray(n.patterns)&&ve(n.patterns,{...e,repository:s},t);const o=n.include;if(!o)continue;const i=Et(o);switch(i.kind){case 0:Ce({...e,selfGrammar:e.baseGrammar},t);break;case 1:Ce(e,t);break;case 2:$e(i.ruleName,{...e,repository:s},t);break;case 3:case 4:const a=i.scopeName===e.selfGrammar.scopeName?e.selfGrammar:i.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(a){const l={baseGrammar:e.baseGrammar,selfGrammar:a,repository:s};i.kind===4?$e(i.ruleName,l,t):Ce(l,t)}else i.kind===4?t.add(new un(i.scopeName,i.ruleName)):t.add(new ue(i.scopeName));break}}}class dn{constructor(){u(this,"kind",0)}}class mn{constructor(){u(this,"kind",1)}}class gn{constructor(e){u(this,"ruleName");u(this,"kind",2);this.ruleName=e}}class _n{constructor(e){u(this,"scopeName");u(this,"kind",3);this.scopeName=e}}class yn{constructor(e,t){u(this,"scopeName");u(this,"ruleName");u(this,"kind",4);this.scopeName=e,this.ruleName=t}}function Et(r){if(r==="$base")return new dn;if(r==="$self")return new mn;const e=r.indexOf("#");if(e===-1)return new _n(r);if(e===0)return new gn(r.substring(1));{const t=r.substring(0,e),n=r.substring(e+1);return new yn(t,n)}}const bn=/\\(\d+)/,ot=/\\(\d+)/g,Sn=-1,Lt=-2;class de{constructor(e,t,n,s){u(this,"$location");u(this,"id");u(this,"_nameIsCapturing");u(this,"_name");u(this,"_contentNameIsCapturing");u(this,"_contentName");this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=_e.hasCaptures(this._name),this._contentName=s||null,this._contentNameIsCapturing=_e.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${At(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:_e.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:_e.replaceCaptures(this._contentName,e,t)}}class Cn extends de{constructor(t,n,s,o,i){super(t,n,s,o);u(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(t,n){throw new Error("Not supported!")}compile(t,n){throw new Error("Not supported!")}compileAG(t,n,s,o){throw new Error("Not supported!")}}class wn extends de{constructor(t,n,s,o,i){super(t,n,s,null);u(this,"_match");u(this,"captures");u(this,"_cachedCompiledPatterns");this._match=new Y(o,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,n){n.push(this._match)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,s,o){return this._getCachedCompiledPatterns(t).compileAG(t,s,o)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new he,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}class it extends de{constructor(t,n,s,o,i){super(t,n,s,o);u(this,"hasMissingPatterns");u(this,"patterns");u(this,"_cachedCompiledPatterns");this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,n){for(const s of this.patterns)t.getRule(s).collectPatterns(t,n)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,s,o){return this._getCachedCompiledPatterns(t).compileAG(t,s,o)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new he,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}class We extends de{constructor(t,n,s,o,i,a,l,c,h,f){super(t,n,s,o);u(this,"_begin");u(this,"beginCaptures");u(this,"_end");u(this,"endHasBackReferences");u(this,"endCaptures");u(this,"applyEndPatternLast");u(this,"hasMissingPatterns");u(this,"patterns");u(this,"_cachedCompiledPatterns");this._begin=new Y(i,this.id),this.beginCaptures=a,this._end=new Y(l||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=c,this.applyEndPatternLast=h||!1,this.patterns=f.patterns,this.hasMissingPatterns=f.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,n){return this._end.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t,n).compile(t)}compileAG(t,n,s,o){return this._getCachedCompiledPatterns(t,n).compileAG(t,s,o)}_getCachedCompiledPatterns(t,n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new he;for(const s of this.patterns)t.getRule(s).collectPatterns(t,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,n):this._cachedCompiledPatterns.setSource(0,n)),this._cachedCompiledPatterns}}class Re extends de{constructor(t,n,s,o,i,a,l,c,h){super(t,n,s,o);u(this,"_begin");u(this,"beginCaptures");u(this,"whileCaptures");u(this,"_while");u(this,"whileHasBackReferences");u(this,"hasMissingPatterns");u(this,"patterns");u(this,"_cachedCompiledPatterns");u(this,"_cachedCompiledWhilePatterns");this._begin=new Y(i,this.id),this.beginCaptures=a,this.whileCaptures=c,this._while=new Y(l,Lt),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=h.patterns,this.hasMissingPatterns=h.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,n){return this._while.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,s,o){return this._getCachedCompiledPatterns(t).compileAG(t,s,o)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new he;for(const n of this.patterns)t.getRule(n).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,n){return this._getCachedCompiledWhilePatterns(t,n).compile(t)}compileWhileAG(t,n,s,o){return this._getCachedCompiledWhilePatterns(t,n).compileAG(t,s,o)}_getCachedCompiledWhilePatterns(t,n){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new he,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||"￿"),this._cachedCompiledWhilePatterns}}class O{static createCaptureRule(e,t,n,s,o){return e.registerRule(i=>new Cn(t,i,n,s,o))}static getCompiledRuleId(e,t,n){return e.id||t.registerRule(s=>{if(e.id=s,e.match)return new wn(e.$vscodeTextmateLocation,e.id,e.name,e.match,O._compileCaptures(e.captures,t,n));if(typeof e.begin>"u"){e.repository&&(n=Rt({},n,e.repository));let o=e.patterns;return typeof o>"u"&&e.include&&(o=[{include:e.include}]),new it(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,O._compilePatterns(o,t,n))}return e.while?new Re(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,O._compileCaptures(e.beginCaptures||e.captures,t,n),e.while,O._compileCaptures(e.whileCaptures||e.captures,t,n),O._compilePatterns(e.patterns,t,n)):new We(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,O._compileCaptures(e.beginCaptures||e.captures,t,n),e.end,O._compileCaptures(e.endCaptures||e.captures,t,n),e.applyEndPatternLast,O._compilePatterns(e.patterns,t,n))}),e.id}static _compileCaptures(e,t,n){let s=[];if(e){let o=0;for(const i in e){if(i==="$vscodeTextmateLocation")continue;const a=parseInt(i,10);a>o&&(o=a)}for(let i=0;i<=o;i++)s[i]=null;for(const i in e){if(i==="$vscodeTextmateLocation")continue;const a=parseInt(i,10);let l=0;e[i].patterns&&(l=O.getCompiledRuleId(e[i],t,n)),s[a]=O.createCaptureRule(t,e[i].$vscodeTextmateLocation,e[i].name,e[i].contentName,l)}}return s}static _compilePatterns(e,t,n){let s=[];if(e)for(let o=0,i=e.length;oe.substring(s.start,s.end));return ot.lastIndex=0,this.source.replace(ot,(s,o)=>Nt(n[parseInt(o,10)]||""))}_buildAnchorCache(){let e=[],t=[],n=[],s=[],o,i,a,l;for(o=0,i=this.source.length;on.source);this._cached=new lt(e,t,this._items.map(n=>n.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let s=this._items.map(o=>o.resolveAnchors(t,n));return new lt(e,s,this._items.map(o=>o.ruleId))}}class lt{constructor(e,t,n){u(this,"regExps");u(this,"rules");u(this,"scanner");this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;tthis._root.match(e)));this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(An(e),t)}static createFromParsedTheme(e,t){return Pn(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,s=this._cachedMatchRoot.get(t).find(o=>vn(e.parent,o.parentScopes));return s?new xt(s.fontStyle,s.foreground,s.background):null}}class K{constructor(e,t){u(this,"parent");u(this,"scopeName");this.parent=e,this.scopeName=t}static push(e,t){for(const n of t)e=new K(e,n);return e}static from(...e){let t=null;for(let n=0;n1&&(y=g.slice(0,g.length-1),y.reverse()),t[n++]=new kn(d,y,s,l,c,h)}}return t}class kn{constructor(e,t,n,s,o,i){u(this,"scope");u(this,"parentScopes");u(this,"index");u(this,"fontStyle");u(this,"foreground");u(this,"background");this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=s,this.foreground=o,this.background=i}}function Pn(r,e){r.sort((l,c)=>{let h=kt(l.scope,c.scope);return h!==0||(h=Pt(l.parentScopes,c.parentScopes),h!==0)?h:l.index-c.index});let t=0,n="#000000",s="#ffffff";for(;r.length>=1&&r[0].scope==="";){let l=r.shift();l.fontStyle!==-1&&(t=l.fontStyle),l.foreground!==null&&(n=l.foreground),l.background!==null&&(s=l.background)}let o=new Nn(e),i=new xt(t,o.getId(n),o.getId(s)),a=new ce(new fe(0,null,-1,0,0),[]);for(let l=0,c=r.length;le?console.log("how did this happen?"):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),n!==0&&(this.foreground=n),s!==0&&(this.background=s)}}class ce{constructor(e,t=[],n={}){u(this,"_mainRule");u(this,"_children");u(this,"_rulesWithParentScopes");this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}static _sortBySpecificity(e){return e.length===1||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,t){if(e.scopeDepth===t.scopeDepth){const n=e.parentScopes,s=t.parentScopes;let o=n===null?0:n.length,i=s===null?0:s.length;if(o===i)for(let a=0;a{const t=this._scopeToLanguage(e),n=this._toStandardTokenType(e);return new Be(t,n)}));this._defaultAttributes=new Be(e,8),this._embeddedLanguagesMatcher=new Tn(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return e===null?ee._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(ee.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}};u(ee,"_NULL_SCOPE_METADATA",new Be(0,0)),u(ee,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/);let ze=ee;class Tn{constructor(e){u(this,"values");u(this,"scopesRegExp");if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([n,s])=>Nt(n));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}}class at{constructor(e,t){u(this,"stack");u(this,"stoppedEarly");this.stack=e,this.stoppedEarly=t}}function It(r,e,t,n,s,o,i,a){const l=e.content.length;let c=!1,h=-1;if(i){const m=En(r,e,t,n,s,o);s=m.stack,n=m.linePos,t=m.isFirstLine,h=m.anchorPosition}const f=Date.now();for(;!c;){if(a!==0&&Date.now()-f>a)return new at(s,!0);p()}return new at(s,!1);function p(){const m=Ln(r,e,t,n,s,h);if(!m){o.produce(s,l),c=!0;return}const g=m.captureIndices,d=m.matchedRuleId,y=g&&g.length>0?g[0].end>n:!1;if(d===Sn){const S=s.getRule(r);o.produce(s,g[0].start),s=s.withContentNameScopesList(s.nameScopesList),ae(r,e,t,s,o,S.endCaptures,g),o.produce(s,g[0].end);const v=s;if(s=s.parent,h=v.getAnchorPos(),!y&&v.getEnterPos()===n){s=v,o.produce(s,l),c=!0;return}}else{const S=r.getRule(d);o.produce(s,g[0].start);const v=s,b=S.getName(e.content,g),C=s.contentNameScopesList.pushAttributed(b,r);if(s=s.push(d,n,h,g[0].end===l,null,C,C),S instanceof We){const w=S;ae(r,e,t,s,o,w.beginCaptures,g),o.produce(s,g[0].end),h=g[0].end;const R=w.getContentName(e.content,g),D=C.pushAttributed(R,r);if(s=s.withContentNameScopesList(D),w.endHasBackReferences&&(s=s.withEndRule(w.getEndWithResolvedBackReferences(e.content,g))),!y&&v.hasSameRuleAs(s)){s=s.pop(),o.produce(s,l),c=!0;return}}else if(S instanceof Re){const w=S;ae(r,e,t,s,o,w.beginCaptures,g),o.produce(s,g[0].end),h=g[0].end;const R=w.getContentName(e.content,g),D=C.pushAttributed(R,r);if(s=s.withContentNameScopesList(D),w.whileHasBackReferences&&(s=s.withEndRule(w.getWhileWithResolvedBackReferences(e.content,g))),!y&&v.hasSameRuleAs(s)){s=s.pop(),o.produce(s,l),c=!0;return}}else if(ae(r,e,t,s,o,S.captures,g),o.produce(s,g[0].end),s=s.pop(),!y){s=s.safePop(),o.produce(s,l),c=!0;return}}g[0].end>n&&(n=g[0].end,t=!1)}}function En(r,e,t,n,s,o){let i=s.beginRuleCapturedEOL?0:-1;const a=[];for(let l=s;l;l=l.pop()){const c=l.getRule(r);c instanceof Re&&a.push({rule:c,stack:l})}for(let l=a.pop();l;l=a.pop()){const{ruleScanner:c,findOptions:h}=On(l.rule,r,l.stack.endRule,t,n===i),f=c.findNextMatchSync(e,n,h);if(f){if(f.ruleId!==Lt){s=l.stack.pop();break}f.captureIndices&&f.captureIndices.length&&(o.produce(l.stack,f.captureIndices[0].start),ae(r,e,t,l.stack,o,l.rule.whileCaptures,f.captureIndices),o.produce(l.stack,f.captureIndices[0].end),i=f.captureIndices[0].end,f.captureIndices[0].end>n&&(n=f.captureIndices[0].end,t=!1))}else{s=l.stack.pop();break}}return{stack:s,linePos:n,anchorPosition:i,isFirstLine:t}}function Ln(r,e,t,n,s,o){const i=xn(r,e,t,n,s,o),a=r.getInjections();if(a.length===0)return i;const l=In(a,r,e,t,n,s,o);if(!l)return i;if(!i)return l;const c=i.captureIndices[0].start,h=l.captureIndices[0].start;return h=a)&&(a=b,l=v.captureIndices,c=v.ruleId,h=g.priority,a===s))break}return l?{priorityMatch:h===-1,captureIndices:l,matchedRuleId:c}:null}function Ot(r,e,t,n,s){return{ruleScanner:r.compileAG(e,t,n,s),findOptions:0}}function On(r,e,t,n,s){return{ruleScanner:r.compileWhileAG(e,t,n,s),findOptions:0}}function ae(r,e,t,n,s,o,i){if(o.length===0)return;const a=e.content,l=Math.min(o.length,i.length),c=[],h=i[0].end;for(let f=0;fh)break;for(;c.length>0&&c[c.length-1].endPos<=m.start;)s.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?s.produceFromScopes(c[c.length-1].scopes,m.start):s.produce(n,m.start),p.retokenizeCapturedWithRuleId){const d=p.getName(a,i),y=n.contentNameScopesList.pushAttributed(d,r),S=p.getContentName(a,i),v=y.pushAttributed(S,r),b=n.push(p.retokenizeCapturedWithRuleId,m.start,-1,!1,null,y,v),C=r.createOnigString(a.substring(0,m.end));It(r,C,t&&m.start===0,m.start,b,s,!1,0),vt(C);continue}const g=p.getName(a,i);if(g!==null){const y=(c.length>0?c[c.length-1].scopes:n.contentNameScopesList).pushAttributed(g,r);c.push(new Mn(y,m.end))}}for(;c.length>0;)s.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}class Mn{constructor(e,t){u(this,"scopes");u(this,"endPos");this.scopes=e,this.endPos=t}}function Bn(r,e,t,n,s,o,i,a){return new Gn(r,e,t,n,s,o,i,a)}function ct(r,e,t,n,s){const o=we(e,ke),i=O.getCompiledRuleId(t,n,s.repository);for(const a of o)r.push({debugSelector:e,matcher:a.matcher,ruleId:i,grammar:s,priority:a.priority})}function ke(r,e){if(e.length{for(let s=t;st&&r.substr(0,t)===e&&r[t]==="."}class Gn{constructor(e,t,n,s,o,i,a,l){u(this,"_rootScopeName");u(this,"balancedBracketSelectors");u(this,"_onigLib");u(this,"_rootId");u(this,"_lastRuleId");u(this,"_ruleId2desc");u(this,"_includedGrammars");u(this,"_grammarRepository");u(this,"_grammar");u(this,"_injections");u(this,"_basicScopeAttributesProvider");u(this,"_tokenTypeMatchers");if(this._rootScopeName=e,this.balancedBracketSelectors=i,this._onigLib=l,this._basicScopeAttributesProvider=new ze(n,s),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=a,this._grammar=ut(t,null),this._injections=null,this._tokenTypeMatchers=[],o)for(const c of Object.keys(o)){const h=we(c,ke);for(const f of h)this._tokenTypeMatchers.push({matcher:f.matcher,type:o[c]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e={lookup:o=>o===this._rootScopeName?this._grammar:this.getExternalGrammar(o),injections:o=>this._grammarRepository.injections(o)},t=[],n=this._rootScopeName,s=e.lookup(n);if(s){const o=s.injections;if(o)for(let a in o)ct(t,a,o[a],this,s);const i=this._grammarRepository.injections(n);i&&i.forEach(a=>{const l=this.getExternalGrammar(a);if(l){const c=l.injectionSelector;c&&ct(t,c,l,this,l)}})}return t.sort((o,i)=>o.priority-i.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=ut(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const s=this._tokenize(e,t,!1,n);return{tokens:s.lineTokens.getResult(s.ruleStack,s.lineLength),ruleStack:s.ruleStack,stoppedEarly:s.stoppedEarly}}tokenizeLine2(e,t,n=0){const s=this._tokenize(e,t,!0,n);return{tokens:s.lineTokens.getBinaryResult(s.ruleStack,s.lineLength),ruleStack:s.ruleStack,stoppedEarly:s.stoppedEarly}}_tokenize(e,t,n,s){this._rootId===-1&&(this._rootId=O.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let o;if(!t||t===pe.NULL){o=!0;const h=this._basicScopeAttributesProvider.getDefaultAttributes(),f=this.themeProvider.getDefaults(),p=re.set(0,h.languageId,h.tokenType,null,f.fontStyle,f.foregroundId,f.backgroundId),m=this.getRule(this._rootId).getName(null,null);let g;m?g=G.createRootAndLookUpScopeName(m,p,this):g=G.createRoot("unknown",p),t=new pe(null,this._rootId,-1,-1,!1,null,g,g)}else o=!1,t.reset();e=e+` `;const i=this.createOnigString(e),a=i.content.length,l=new Un(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),c=It(this,i,o,0,t,l,!0,s);return vt(i),{lineLength:a,lineTokens:l,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}}function ut(r,e){return r=ln(r),r.repository=r.repository||{},r.repository.$self={$vscodeTextmateLocation:r.$vscodeTextmateLocation,patterns:r.patterns,name:r.scopeName},r.repository.$base=e||r.repository.$self,r}class G{constructor(e,t,n){u(this,"parent");u(this,"scopePath");u(this,"tokenAttributes");this.parent=e,this.scopePath=t,this.tokenAttributes=n}static fromExtension(e,t){let n=e,s=(e==null?void 0:e.scopePath)??null;for(const o of t)s=K.push(s,o.scopeNames),n=new G(n,s,o.encodedTokenAttributes);return n}static createRoot(e,t){return new G(null,new K(null,e),t)}static createRootAndLookUpScopeName(e,t,n){const s=n.getMetadataForScope(e),o=new K(null,e),i=n.themeProvider.themeMatch(o),a=G.mergeAttributes(t,s,i);return new G(null,o,a)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(e){return G.equals(this,e)}static equals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}while(!0)}static mergeAttributes(e,t,n){let s=-1,o=0,i=0;return n!==null&&(s=n.fontStyle,o=n.foregroundId,i=n.backgroundId),re.set(e,t.languageId,t.tokenType,null,s,o,i)}pushAttributed(e,t){if(e===null)return this;if(e.indexOf(" ")===-1)return G._pushAttributed(this,e,t);const n=e.split(/ /g);let s=this;for(const o of n)s=G._pushAttributed(s,o,t);return s}static _pushAttributed(e,t,n){const s=n.getMetadataForScope(t),o=e.scopePath.push(t),i=n.themeProvider.themeMatch(o),a=G.mergeAttributes(e.tokenAttributes,s,i);return new G(e,o,a)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){var s;const t=[];let n=this;for(;n&&n!==e;)t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(((s=n.parent)==null?void 0:s.scopePath)??null)}),n=n.parent;return n===e?t.reverse():void 0}}const W=class W{constructor(e,t,n,s,o,i,a,l){u(this,"parent");u(this,"ruleId");u(this,"beginRuleCapturedEOL");u(this,"endRule");u(this,"nameScopesList");u(this,"contentNameScopesList");u(this,"_stackElementBrand");u(this,"_enterPos");u(this,"_anchorPos");u(this,"depth");this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=o,this.endRule=i,this.nameScopesList=a,this.contentNameScopesList=l,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=s}equals(e){return e===null?!1:W._equals(this,e)}static _equals(e,t){return e===t?!0:this._structuralEquals(e,t)?G.equals(e.contentNameScopesList,t.contentNameScopesList):!1}static _structuralEquals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){W._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,n,s,o,i,a){return new W(this,e,t,n,s,o,i,a)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){var n,s;return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${(n=this.nameScopesList)==null?void 0:n.toString()}, ${(s=this.contentNameScopesList)==null?void 0:s.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new W(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){var e,t,n;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((t=this.nameScopesList)==null?void 0:t.getExtensionIfDefined(((e=this.parent)==null?void 0:e.nameScopesList)??null))??[],contentNameScopesList:((n=this.contentNameScopesList)==null?void 0:n.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(e,t){const n=G.fromExtension((e==null?void 0:e.nameScopesList)??null,t.nameScopesList);return new W(e,t.ruleId,t.enterPos??-1,t.anchorPos??-1,t.beginRuleCapturedEOL,t.endRule,n,G.fromExtension(n,t.contentNameScopesList))}};u(W,"NULL",new W(null,0,0,0,!1,null,null,null));let pe=W;class Fn{constructor(e,t){u(this,"balancedBracketScopes");u(this,"unbalancedBracketScopes");u(this,"allowAny",!1);this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):we(n,ke).map(s=>s.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>we(n,ke).map(s=>s.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}}class Un{constructor(e,t,n,s){u(this,"balancedBracketSelectors");u(this,"_emitBinaryTokens");u(this,"_lineText");u(this,"_tokens");u(this,"_binaryTokens");u(this,"_lastTokenEndIndex");u(this,"_tokenTypeOverrides");this.balancedBracketSelectors=s,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){var s;if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let o=(e==null?void 0:e.tokenAttributes)??0,i=!1;if((s=this.balancedBracketSelectors)!=null&&s.matchesAlways&&(i=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const a=(e==null?void 0:e.getScopeNames())??[];for(const l of this._tokenTypeOverrides)l.matcher(a)&&(o=re.set(o,0,l.type,null,-1,0,0));this.balancedBracketSelectors&&(i=this.balancedBracketSelectors.match(a))}if(i&&(o=re.set(o,0,8,i,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===o){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(o),this._lastTokenEndIndex=t;return}const n=(e==null?void 0:e.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let s=0,o=this._binaryTokens.length;s0;)await Promise.all(i.Q.map(a=>this._loadSingleGrammar(a.scopeName))),i.processQueue();return this._grammarForScopeName(e,t,n,s,o)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const t=await this._options.loadGrammar(e);if(t){const n=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}async addGrammar(e,t=[],n=0,s=null){return this._syncRegistry.addGrammar(e,t),await this._grammarForScopeName(e.scopeName,n,s)}_grammarForScopeName(e,t=0,n=null,s=null,o=null){return this._syncRegistry.grammarForScopeName(e,t,n,s,o)}};const Wn=pe.NULL,B={LANGUAGEID_MASK:255,TOKEN_TYPE_MASK:768,BALANCED_BRACKETS_MASK:1024,FONT_STYLE_MASK:14336,FOREGROUND_MASK:8372224,BACKGROUND_MASK:4286578688,LANGUAGEID_OFFSET:0,TOKEN_TYPE_OFFSET:8,BALANCED_BRACKETS_OFFSET:10,FONT_STYLE_OFFSET:11,FOREGROUND_OFFSET:15,BACKGROUND_OFFSET:24};class z{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t=`0${t}`;return t}static getLanguageId(e){return(e&B.LANGUAGEID_MASK)>>>B.LANGUAGEID_OFFSET}static getTokenType(e){return(e&B.TOKEN_TYPE_MASK)>>>B.TOKEN_TYPE_OFFSET}static getFontStyle(e){return(e&B.FONT_STYLE_MASK)>>>B.FONT_STYLE_OFFSET}static getForeground(e){return(e&B.FOREGROUND_MASK)>>>B.FOREGROUND_OFFSET}static getBackground(e){return(e&B.BACKGROUND_MASK)>>>B.BACKGROUND_OFFSET}static containsBalancedBrackets(e){return(e&B.BALANCED_BRACKETS_MASK)!==0}static set(e,t,n,s,o,i){let a=z.getLanguageId(e),l=z.getTokenType(e),c=z.getFontStyle(e),h=z.getForeground(e),f=z.getBackground(e);const p=z.containsBalancedBrackets(e)?1:0;return t!==0&&(a=t),n!==0&&(l=n===8?0:n),s!==$.NotSet&&(c=s),o!==0&&(h=o),i!==0&&(f=i),(a<>>0}}function xe(r,e=!1){var o;const t=r.split(/(\r?\n)/g);let n=0;const s=[];for(let i=0;it&&n.push({...r,content:r.content.slice(t,s),offset:r.offset+t}),t=s;return tn-s);return t.length?r.map(n=>n.flatMap(s=>{const o=t.filter(i=>s.offseti-s.offset).sort((i,a)=>i-a);return o.length?zn(s,o):s})):r}function Pe(r,e){const t=typeof r=="string"?{}:{...r.colorReplacements},n=typeof r=="string"?r:r.name;for(const[s,o]of Object.entries((e==null?void 0:e.colorReplacements)||{}))typeof o=="string"?t[s]=o:s===n&&Object.assign(t,o);return t}function V(r,e){return r&&((e==null?void 0:e[r==null?void 0:r.toLowerCase()])||r)}function Dt(r){const e={};return r.color&&(e.color=r.color),r.bgColor&&(e["background-color"]=r.bgColor),r.fontStyle&&(r.fontStyle&$.Italic&&(e["font-style"]="italic"),r.fontStyle&$.Bold&&(e["font-weight"]="bold"),r.fontStyle&$.Underline&&(e["text-decoration"]="underline")),e}function Gt(r){return Object.entries(r).map(([e,t])=>`${e}:${t}`).join(";")}function Vn(r){const e=xe(r,!0).map(([s])=>s);function t(s){let o=s,i=0;for(const a of e){if(oNumber.parseInt(i));o.length===3&&!o.some(i=>Number.isNaN(i))&&(s={type:"rgb",rgb:o})}else if(n==="5"){const o=Number.parseInt(r[e+t]);Number.isNaN(o)||(s={type:"table",index:Number(o)})}return[t,s]}function Kn(r){const e=[];for(let t=0;t=90&&s<=97?e.push({type:"setForegroundColor",value:{type:"named",name:q[s-90+8]}}):s>=100&&s<=107&&e.push({type:"setBackgroundColor",value:{type:"named",name:q[s-100+8]}})}return e}function Yn(){let r=null,e=null,t=new Set;return{parse(n){const s=[];let o=0;do{const i=qn(n,o),a=i.sequence?n.substring(o,i.startPosition):n.substring(o);if(a.length>0&&s.push({value:a,foreground:r,background:e,decorations:new Set(t)}),i.sequence){const l=Kn(i.sequence);for(const c of l)c.type==="resetAll"?(r=null,e=null,t.clear()):c.type==="resetForegroundColor"?r=null:c.type==="resetBackgroundColor"?e=null:c.type==="resetDecoration"&&t.delete(c.value);for(const c of l)c.type==="setForegroundColor"?r=c.value:c.type==="setBackgroundColor"?e=c.value:c.type==="setDecoration"&&t.add(c.value)}o=i.position}while(oMath.max(0,Math.min(l,255)).toString(16).padStart(2,"0")).join("")}`}let n;function s(){if(n)return n;n=[];for(let c=0;c{var l;return[a,(l=r.colors)==null?void 0:l[`terminal.ansi${a[0].toUpperCase()}${a.substring(1)}`]]}))),i=Yn();return s.map(a=>i.parse(a[0]).map(l=>{let c,h;l.decorations.has("reverse")?(c=l.background?o.value(l.background):r.bg,h=l.foreground?o.value(l.foreground):r.fg):(c=l.foreground?o.value(l.foreground):r.fg,h=l.background?o.value(l.background):void 0),c=V(c,n),h=V(h,n),l.decorations.has("dim")&&(c=Zn(c));let f=$.None;return l.decorations.has("bold")&&(f|=$.Bold),l.decorations.has("italic")&&(f|=$.Italic),l.decorations.has("underline")&&(f|=$.Underline),{content:l.value,offset:a[1],color:c,bgColor:h,fontStyle:f}}))}function Zn(r){const e=r.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(e)if(e[3]){const n=Math.round(Number.parseInt(e[3],16)/2).toString(16).padStart(2,"0");return`#${e[1]}${e[2]}${n}`}else return e[2]?`#${e[1]}${e[2]}80`:`#${Array.from(e[1]).map(n=>`${n}${n}`).join("")}80`;const t=r.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return t?`var(${t[1]}-dim)`:r}class T extends Error{constructor(e){super(e),this.name="ShikiError"}}class Ft{constructor(e,t,n){u(this,"_stack");u(this,"lang");u(this,"theme");this._stack=e,this.lang=t,this.theme=n}get scopes(){return er(this._stack)}toJSON(){return{lang:this.lang,theme:this.theme,scopes:this.scopes}}}function er(r){const e=[],t=new Set;function n(s){var i;if(t.has(s))return;t.add(s);const o=(i=s==null?void 0:s.nameScopesList)==null?void 0:i.scopeName;o&&e.push(o),s.parent&&n(s.parent)}return n(r),e}function tr(r){if(!(r instanceof Ft))throw new T("Invalid grammar state");return r._stack}function Qe(r,e,t={}){const{lang:n="text",theme:s=r.getLoadedThemes()[0]}=t;if(Ye(n)||Xe(s))return xe(e).map(l=>[{content:l[0],offset:l[1]}]);const{theme:o,colorMap:i}=r.setTheme(s);if(n==="ansi")return Qn(o,e,t);const a=r.getLanguage(n);if(t.grammarState){if(t.grammarState.lang!==a.name)throw new T(`Grammar state language "${t.grammarState.lang}" does not match highlight language "${a.name}"`);if(t.grammarState.theme!==s)throw new T(`Grammar state theme "${t.grammarState.theme}" does not match highlight theme "${s}"`)}return rr(e,a,o,i,t)}function nr(r,e,t={}){const{lang:n="text",theme:s=r.getLoadedThemes()[0]}=t;if(Ye(n)||Xe(s))throw new T("Plain language does not have grammar state");if(n==="ansi")throw new T("ANSI language does not have grammar state");const{theme:o,colorMap:i}=r.setTheme(s),a=r.getLanguage(n);return new Ft(Ze(e,a,o,i,t).stateStack,a.name,o.name)}function rr(r,e,t,n,s){return Ze(r,e,t,n,s).tokens}function Ze(r,e,t,n,s){const o=Pe(t,s),{tokenizeMaxLineLength:i=0,tokenizeTimeLimit:a=500}=s,l=xe(r);let c=s.grammarState?tr(s.grammarState):s.grammarContextCode!=null?Ze(s.grammarContextCode,e,t,n,{...s,grammarState:void 0,grammarContextCode:void 0}).stateStack:Wn,h=[];const f=[],p=[];if(s.includeExplanation)for(const m of t.settings){let g;switch(typeof m.scope){case"string":g=m.scope.split(/,/).map(d=>d.trim());break;case"object":g=m.scope;break;default:continue}p.push({settings:m,selectors:g.map(d=>d.split(/ /))})}for(let m=0,g=l.length;m0&&d.length>=i){h=[],f.push([{content:d,offset:y,color:"",fontStyle:0}]);continue}let S,v,b;s.includeExplanation&&(S=e.tokenizeLine(d,c),v=S.tokens,b=0);const C=e.tokenizeLine2(d,c,a),w=C.tokens.length/2;for(let R=0;R=0&&s>=0;)ft(r[n],t[s])&&(n-=1),s-=1;return n===-1}function ir(r,e,t){const n=[];for(const{selectors:s,settings:o}of r)for(const i of s)if(or(i,e,t)){n.push(o);break}return n}function Ut(r,e,t){const n=Object.entries(t.themes).filter(i=>i[1]).map(i=>({color:i[0],theme:i[1]})),s=lr(...n.map(i=>Qe(r,e,{...t,theme:i.theme})));return s[0].map((i,a)=>i.map((l,c)=>{const h={content:l.content,variants:{},offset:l.offset};return s.forEach((f,p)=>{const{content:m,explanation:g,offset:d,...y}=f[a][c];h.variants[n[p].color]=y}),h}))}function lr(...r){const e=r.map(()=>[]),t=r.length;for(let n=0;nl[n]),o=e.map(()=>[]);e.forEach((l,c)=>l.push(o[c]));const i=s.map(()=>0),a=s.map(l=>l[0]);for(;a.every(l=>l);){const l=Math.min(...a.map(c=>c.content.length));for(let c=0;cd[1]).map(d=>({color:d[0],theme:d[1]})).sort((d,y)=>d.color===l?-1:y.color===l?1:0);if(h.length===0)throw new T("`themes` option must not be empty");const f=Ut(r,e,t);if(l&&!h.find(d=>d.color===l))throw new T(`\`themes\` option must contain the defaultColor key \`${l}\``);const p=h.map(d=>r.getTheme(d.theme)),m=h.map(d=>d.color);o=f.map(d=>d.map(y=>ar(y,m,c,l)));const g=h.map(d=>Pe(d.theme,t));s=h.map((d,y)=>(y===0&&l?"":`${c+d.color}:`)+(V(p[y].fg,g[y])||"inherit")).join(";"),n=h.map((d,y)=>(y===0&&l?"":`${c+d.color}-bg:`)+(V(p[y].bg,g[y])||"inherit")).join(";"),i=`shiki-themes ${p.map(d=>d.name).join(" ")}`,a=l?void 0:[s,n].join(";")}else if("theme"in t){const l=Pe(t.theme,t.colorReplacements);o=Qe(r,e,t);const c=r.getTheme(t.theme);n=V(c.bg,l),s=V(c.fg,l),i=c.name}else throw new T("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:s,bg:n,themeName:i,rootStyle:a}}function ar(r,e,t,n){const s={content:r.content,explanation:r.explanation,offset:r.offset},o=e.map(l=>Dt(r.variants[l])),i=new Set(o.flatMap(l=>Object.keys(l))),a=o.reduce((l,c,h)=>{for(const f of i){const p=c[f]||"inherit";if(h===0&&n)l[f]=p;else{const m=f==="color"?"":f==="background-color"?"-bg":`-${f}`,g=t+e[h]+(f==="color"?"":m);l[f]?l[f]+=`;${g}:${p}`:l[f]=`${g}:${p}`}}return l},{});return s.htmlStyle=n?Gt(a):Object.values(a).join(";"),s}function cr(){const r=new WeakMap;function e(n){if(!r.has(n.meta)){let o=function(a){return typeof a=="number"?{...s.indexToPos(a),offset:a}:{...a,offset:s.posToIndex(a.line,a.character)}};const s=Vn(n.source),i=(n.options.decorations||[]).map(a=>({...a,start:o(a.start),end:o(a.end)}));t(i),r.set(n.meta,{decorations:i,converter:s,source:n.source})}return r.get(n.meta)}function t(n){for(let s=0;so.end.offset)throw new T(`Invalid decoration range: ${JSON.stringify(o.start)} - ${JSON.stringify(o.end)}`);for(let i=s+1;i[l.start.offset,l.end.offset]);return Hn(n,o)},code(n){var f;if(!((f=this.options.decorations)!=null&&f.length))return;const s=e(this),o=Array.from(n.children).filter(p=>p.type==="element"&&p.tagName==="span");if(o.length!==s.converter.lines.length)throw new T(`Number of lines in code element (${o.length}) does not match the number of lines in the source (${s.converter.lines.length}). Failed to apply decorations.`);function i(p,m,g,d){const y=o[p];let S="",v=-1,b=-1;function C(R){return R.type==="text"?R.value:R.type==="element"?R.children.map(C).join(""):""}if(m===0&&(v=0),g===0&&(b=0),g===Number.POSITIVE_INFINITY&&(b=y.children.length),v===-1||b===-1)for(let R=0;Rv);return p.tagName=m.tagName||"span",p.properties={...p.properties,...d,class:p.properties.class},(S=m.properties)!=null&&S.class&&Je(p,m.properties.class),p=y(p,g)||p,p}const c=[],h=s.decorations.sort((p,m)=>m.start.offset-p.start.offset);for(const p of h){const{start:m,end:g}=p;if(m.line===g.line)i(m.line,m.character,g.character,p);else if(m.linea(d,p));i(g.line,0,g.character,p)}}c.forEach(p=>p())}}}const ur=[cr()];function Te(r){return[...r.transformers||[],...ur]}function Ee(r,e,t,n={meta:{},options:t,codeToHast:(s,o)=>Ee(r,s,o),codeToTokens:(s,o)=>Ne(r,s,o)}){var p,m;let s=e;for(const g of Te(t))s=((p=g.preprocess)==null?void 0:p.call(n,s,t))||s;let{tokens:o,fg:i,bg:a,themeName:l,rootStyle:c}=Ne(r,s,t);const{mergeWhitespaces:h=!0}=t;h===!0?o=fr(o):h==="never"&&(o=pr(o));const f={...n,get source(){return s}};for(const g of Te(t))o=((m=g.tokens)==null?void 0:m.call(f,o))||o;return hr(o,{...t,fg:i,bg:a,themeName:l,rootStyle:c},f)}function hr(r,e,t){var p,m,g;const n=Te(e),s=[],o={type:"root",children:[]},{structure:i="classic"}=e;let a={type:"element",tagName:"pre",properties:{class:`shiki ${e.themeName||""}`,style:e.rootStyle||`background-color:${e.bg};color:${e.fg}`,tabindex:"0",...Object.fromEntries(Array.from(Object.entries(e.meta||{})).filter(([d])=>!d.startsWith("_")))},children:[]},l={type:"element",tagName:"code",properties:{},children:s};const c=[],h={...t,structure:i,addClassToHast:Je,get source(){return t.source},get tokens(){return r},get options(){return e},get root(){return o},get pre(){return a},get code(){return l},get lines(){return c}};if(r.forEach((d,y)=>{var b,C;y&&(i==="inline"?o.children.push({type:"element",tagName:"br",properties:{},children:[]}):i==="classic"&&s.push({type:"text",value:` `}));let S={type:"element",tagName:"span",properties:{class:"line"},children:[]},v=0;for(const w of d){let R={type:"element",tagName:"span",properties:{},children:[{type:"text",value:w.content}]};const D=w.htmlStyle||Gt(Dt(w));D&&(R.properties.style=D);for(const I of n)R=((b=I==null?void 0:I.span)==null?void 0:b.call(h,R,y+1,v,S))||R;i==="inline"?o.children.push(R):i==="classic"&&S.children.push(R),v+=w.content.length}if(i==="classic"){for(const w of n)S=((C=w==null?void 0:w.line)==null?void 0:C.call(h,S,y+1))||S;c.push(S),s.push(S)}}),i==="classic"){for(const d of n)l=((p=d==null?void 0:d.code)==null?void 0:p.call(h,l))||l;a.children.push(l);for(const d of n)a=((m=d==null?void 0:d.pre)==null?void 0:m.call(h,a))||a;o.children.push(a)}let f=o;for(const d of n)f=((g=d==null?void 0:d.root)==null?void 0:g.call(h,f))||f;return f}function fr(r){return r.map(e=>{const t=[];let n="",s=0;return e.forEach((o,i)=>{const l=!(o.fontStyle&&o.fontStyle&$.Underline);l&&o.content.match(/^\s+$/)&&e[i+1]?(s||(s=o.offset),n+=o.content):n?(l?t.push({...o,offset:s,content:n+o.content}):t.push({content:n,offset:s},o),s=0,n=""):t.push(o)}),t})}function pr(r){return r.map(e=>e.flatMap(t=>{if(t.content.match(/^\s+$/))return t;const n=t.content.match(/^(\s*)(.*?)(\s*)$/);if(!n)return t;const[,s,o,i]=n;if(!s&&!i)return t;const a=[{...t,offset:t.offset+s.length,content:o}];return s&&a.unshift({content:s,offset:t.offset}),i&&a.push({content:i,offset:t.offset+s.length+o.length}),a}))}const dr=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class me{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}me.prototype.property={};me.prototype.normal={};me.prototype.space=null;function jt(r,e){const t={},n={};let s=-1;for(;++s4&&t.slice(0,4)==="data"&&br.test(e)){if(e.charAt(4)==="-"){const o=e.slice(5).replace(dt,vr);n="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=e.slice(4);if(!dt.test(o)){let i=o.replace(Sr,wr);i.charAt(0)!=="-"&&(i="-"+i),e="data"+i}}s=et}return new s(n,e)}function wr(r){return"-"+r.toLowerCase()}function vr(r){return r.charAt(1).toUpperCase()}const Rr=jt([zt,Wt,qt,Kt,_r],"html"),Yt=jt([zt,Wt,qt,Kt,yr],"svg"),mt={}.hasOwnProperty;function Ar(r,e){const t=e||{};function n(s,...o){let i=n.invalid;const a=n.handlers;if(s&&mt.call(s,r)){const l=String(s[r]);i=mt.call(a,l)?a[l]:n.unknown}if(i)return i.call(this,s,...o)}return n.handlers=t.handlers||{},n.invalid=t.invalid,n.unknown=t.unknown,n}function kr(r,e){if(r=r.replace(e.subset?Pr(e.subset):/["&'<>`]/g,n),e.subset||e.escapeOnly)return r;return r.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,t).replace(/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,n);function t(s,o,i){return e.format((s.charCodeAt(0)-55296)*1024+s.charCodeAt(1)-56320+65536,i.charCodeAt(o+2),e)}function n(s,o,i){return e.format(s.charCodeAt(0),i.charCodeAt(o+1),e)}}function Pr(r){const e=[];let t=-1;for(;++t",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},Lr=["cent","copy","divide","gt","lt","not","para","times"],Xt={}.hasOwnProperty,qe={};let ye;for(ye in Fe)Xt.call(Fe,ye)&&(qe[Fe[ye]]=ye);function xr(r,e,t,n){const s=String.fromCharCode(r);if(Xt.call(qe,s)){const o=qe[s],i="&"+o;return t&&Er.includes(o)&&!Lr.includes(o)&&(!n||e&&e!==61&&/[^\da-z]/i.test(String.fromCharCode(e)))?i:i+";"}return""}function Ir(r,e,t){let n=Nr(r,e,t.omitOptionalSemicolons),s;if((t.useNamedReferences||t.useShortestReferences)&&(s=xr(r,e,t.omitOptionalSemicolons,t.attribute)),(t.useShortestReferences||!s)&&t.useShortestReferences){const o=Tr(r,e,t.omitOptionalSemicolons);o.length|^->||--!>|"],Br=["<",">"];function Dr(r,e,t,n){return n.settings.bogusComments?"":"";function s(o){return ne(o,Object.assign({},n.settings.characterReferences,{subset:Br}))}}function Gr(r,e,t,n){return""}function gt(r,e){const t=String(r);if(typeof e!="string")throw new TypeError("Expected character");let n=0,s=t.indexOf(e);for(;s!==-1;)n++,s=t.indexOf(e,s+e.length);return n}function Fr(r,e){const t=e||{};return(r[r.length-1]===""?[...r,""]:r).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}function Ur(r){return r.join(" ").trim()}const jr=/[ \t\n\f\r]/g;function tt(r){return typeof r=="object"?r.type==="text"?_t(r.value):!1:_t(r)}function _t(r){return r.replace(jr,"")===""}const x=Qt(1),Jt=Qt(-1),$r=[];function Qt(r){return e;function e(t,n,s){const o=t?t.children:$r;let i=(n||0)+r,a=o[i];if(!s)for(;a&&tt(a);)i+=r,a=o[i];return a}}const Wr={}.hasOwnProperty;function Zt(r){return e;function e(t,n,s){return Wr.call(r,t.tagName)&&r[t.tagName](t,n,s)}}const nt=Zt({body:Hr,caption:Ue,colgroup:Ue,dd:Yr,dt:Kr,head:Ue,html:zr,li:qr,optgroup:Xr,option:Jr,p:Vr,rp:yt,rt:yt,tbody:Zr,td:bt,tfoot:es,th:bt,thead:Qr,tr:ts});function Ue(r,e,t){const n=x(t,e,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&tt(n.value.charAt(0)))}function zr(r,e,t){const n=x(t,e);return!n||n.type!=="comment"}function Hr(r,e,t){const n=x(t,e);return!n||n.type!=="comment"}function Vr(r,e,t){const n=x(t,e);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!t||!(t.type==="element"&&(t.tagName==="a"||t.tagName==="audio"||t.tagName==="del"||t.tagName==="ins"||t.tagName==="map"||t.tagName==="noscript"||t.tagName==="video"))}function qr(r,e,t){const n=x(t,e);return!n||n.type==="element"&&n.tagName==="li"}function Kr(r,e,t){const n=x(t,e);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function Yr(r,e,t){const n=x(t,e);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function yt(r,e,t){const n=x(t,e);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function Xr(r,e,t){const n=x(t,e);return!n||n.type==="element"&&n.tagName==="optgroup"}function Jr(r,e,t){const n=x(t,e);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function Qr(r,e,t){const n=x(t,e);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function Zr(r,e,t){const n=x(t,e);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function es(r,e,t){return!x(t,e)}function ts(r,e,t){const n=x(t,e);return!n||n.type==="element"&&n.tagName==="tr"}function bt(r,e,t){const n=x(t,e);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}const ns=Zt({body:os,colgroup:is,head:ss,html:rs,tbody:ls});function rs(r){const e=x(r,-1);return!e||e.type!=="comment"}function ss(r){const e=r.children,t=[];let n=-1;for(;++n0}function os(r){const e=x(r,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&tt(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function is(r,e,t){const n=Jt(t,e),s=x(r,-1,!0);return t&&n&&n.type==="element"&&n.tagName==="colgroup"&&nt(n,t.children.indexOf(n),t)?!1:!!(s&&s.type==="element"&&s.tagName==="col")}function ls(r,e,t){const n=Jt(t,e),s=x(r,-1);return t&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&nt(n,t.children.indexOf(n),t)?!1:!!(s&&s.type==="element"&&s.tagName==="tr")}const be={name:[[` diff --git a/_nuxt/D7mpQ4ve.js b/_nuxt/Os5pxZ6b.js similarity index 76% rename from _nuxt/D7mpQ4ve.js rename to _nuxt/Os5pxZ6b.js index 2bbdacfd7..b01a87b1e 100644 --- a/_nuxt/D7mpQ4ve.js +++ b/_nuxt/Os5pxZ6b.js @@ -1 +1 @@ -import{d as s,aV as u,a_ as i,b8 as n}from"./DV7eKLeG.js";import{u as p}from"./QA-ib-BQ.js";import"./Cp7Md9uy.js";const c=s({props:{query:{type:Object,required:!1,default:()=>({})}},async setup(t){const{fetchRepository:a}=p(),{data:o,refresh:e,pending:r}=await u(`github-repository-${i(t.query)}`,()=>a(t.query));return{repository:o,refresh:e,pending:r}},render({repository:t,refresh:a,pending:o}){var r;const e=n();return(r=e==null?void 0:e.default)==null?void 0:r.call(e,{repository:t,refresh:a,pending:o})}});export{c as default}; +import{d as s,aV as u,a_ as i,b8 as n}from"./5uFLRXWz.js";import{u as p}from"./B3cAN6Fg.js";import"./Cp7Md9uy.js";const c=s({props:{query:{type:Object,required:!1,default:()=>({})}},async setup(t){const{fetchRepository:a}=p(),{data:o,refresh:e,pending:r}=await u(`github-repository-${i(t.query)}`,()=>a(t.query));return{repository:o,refresh:e,pending:r}},render({repository:t,refresh:a,pending:o}){var r;const e=n();return(r=e==null?void 0:e.default)==null?void 0:r.call(e,{repository:t,refresh:a,pending:o})}});export{c as default}; diff --git a/_nuxt/QA-ib-BQ.js b/_nuxt/QA-ib-BQ.js deleted file mode 100644 index af23904b4..000000000 --- a/_nuxt/QA-ib-BQ.js +++ /dev/null @@ -1 +0,0 @@ -import{j as o}from"./Cp7Md9uy.js";const c=()=>{const e=t=>s=>{const r=o("/api/_github",t,`${n(s)||"index"}.json`);return $fetch(r,{responseType:"json"})};return{fetchRepository:e("repository"),fetchReleases:e("releases"),fetchRelease:e("releases"),fetchLastRelease:t=>e("releases")({...t,last:!0}),fetchContributors:e("contributors"),fetchFileContributors:e("contributors/file"),fetchReadme:e("readme"),fetchCommits:e("commits")}};function n(e){return Object.entries(e).map(([t,s])=>`${t}_${String(s)}`).join(":")}export{c as u}; diff --git a/_nuxt/B9fM72gD.js b/_nuxt/RV-xEppH.js similarity index 64% rename from _nuxt/B9fM72gD.js rename to _nuxt/RV-xEppH.js index ea611f5de..6ab523b72 100644 --- a/_nuxt/B9fM72gD.js +++ b/_nuxt/RV-xEppH.js @@ -1 +1 @@ -import{l as r,c as o,e as s,aj as t}from"./DV7eKLeG.js";const c={};function l(e,n){return o(),s("ul",null,[t(e.$slots,"default")])}const f=r(c,[["render",l]]);export{f as default}; +import{l as r,c as o,e as s,aj as t}from"./5uFLRXWz.js";const c={};function l(e,n){return o(),s("ul",null,[t(e.$slots,"default")])}const f=r(c,[["render",l]]);export{f as default}; diff --git a/_nuxt/C3Kzup5y.js b/_nuxt/TXOJiQqS.js similarity index 84% rename from _nuxt/C3Kzup5y.js rename to _nuxt/TXOJiQqS.js index 38280470b..5ab33c6ef 100644 --- a/_nuxt/C3Kzup5y.js +++ b/_nuxt/TXOJiQqS.js @@ -1 +1 @@ -import{_ as p}from"./bXKbWHrB.js";import{d as l,bk as m,D as o,c as i,ai as v,E as b}from"./DV7eKLeG.js";const _=l({__name:"ContentRendererMarkdown",props:{value:{type:Object,required:!0},excerpt:{type:Boolean,default:!1},tag:{type:String,default:"div"},components:{type:Object,default:()=>({})},data:{type:Object,default:()=>({})}},setup(a){const e=a,d=m().isEnabled(),r=o(()=>{let t=e.value.body||e.value;return e.excerpt&&e.value.excerpt&&(t=e.value.excerpt),t}),c=o(()=>{const{body:t,excerpt:u,...n}=e.value;return{...n,...e.data}}),s=o(()=>({...e.components,...c.value._components||{}}));return(t,u)=>{const n=p;return i(),v(n,{body:r.value,data:c.value,tag:a.tag,components:s.value,"data-content-id":b(d)?a.value._id:void 0},null,8,["body","data","tag","components","data-content-id"])}}});export{_}; +import{_ as p}from"./CgMG10Xn.js";import{d as l,bk as m,D as o,c as i,ai as v,E as b}from"./5uFLRXWz.js";const _=l({__name:"ContentRendererMarkdown",props:{value:{type:Object,required:!0},excerpt:{type:Boolean,default:!1},tag:{type:String,default:"div"},components:{type:Object,default:()=>({})},data:{type:Object,default:()=>({})}},setup(a){const e=a,d=m().isEnabled(),r=o(()=>{let t=e.value.body||e.value;return e.excerpt&&e.value.excerpt&&(t=e.value.excerpt),t}),c=o(()=>{const{body:t,excerpt:u,...n}=e.value;return{...n,...e.data}}),s=o(()=>({...e.components,...c.value._components||{}}));return(t,u)=>{const n=p;return i(),v(n,{body:r.value,data:c.value,tag:a.tag,components:s.value,"data-content-id":b(d)?a.value._id:void 0},null,8,["body","data","tag","components","data-content-id"])}}});export{_}; diff --git a/_nuxt/BAKkr1ga.js b/_nuxt/VPULeIg0.js similarity index 97% rename from _nuxt/BAKkr1ga.js rename to _nuxt/VPULeIg0.js index 66ef94527..65b5ce0e0 100644 --- a/_nuxt/BAKkr1ga.js +++ b/_nuxt/VPULeIg0.js @@ -1 +1 @@ -import{d as g,bi as b,D as C,v as S,H as _,aV as k,s as m,a_ as A,b8 as N,V as O}from"./DV7eKLeG.js";const Q=g({name:"ContentQuery",props:{path:{type:String,required:!1,default:void 0},only:{type:Array,required:!1,default:void 0},without:{type:Array,required:!1,default:void 0},where:{type:Object,required:!1,default:void 0},sort:{type:Object,required:!1,default:void 0},limit:{type:Number,required:!1,default:void 0},skip:{type:Number,required:!1,default:void 0},locale:{type:String,required:!1,default:void 0},find:{type:String,required:!1,default:void 0}},async setup(a){const{path:t,only:r,without:o,where:u,sort:l,limit:d,skip:f,locale:s,find:h}=b(a),p=C(()=>{var e;return(e=t.value)==null?void 0:e.includes("/_")}),y=!S().public.content.experimental.advanceQuery;_(()=>a,()=>n(),{deep:!0});const i=e=>y?e!=null&&e.surround?e.surround:e!=null&&e._id||Array.isArray(e)?e:e==null?void 0:e.result:e.result,{data:v,refresh:n}=await k(`content-query-${A(a)}`,()=>{let e;return t.value?e=m(t.value):e=m(),r.value&&(e=e.only(r.value)),o.value&&(e=e.without(o.value)),u.value&&(e=e.where(u.value)),l.value&&(e=e.sort(l.value)),d.value&&(e=e.limit(d.value)),f.value&&(e=e.skip(f.value)),s.value&&(e=e.where({_locale:s.value})),h.value==="one"?e.findOne().then(i):h.value==="surround"?t.value?y?e.findSurround(t.value):e.withSurround(t.value).findOne().then(i):(console.warn("[Content] Surround queries requires `path` prop to be set."),console.warn("[Content] Query without `path` will return regular `find()` results."),e.find().then(i)):e.find().then(i)});return{isPartial:p,data:v,refresh:n}},render(a){var c;const t=N(),{data:r,refresh:o,isPartial:u,path:l,only:d,without:f,where:s,sort:h,limit:p,skip:y,locale:i,find:v}=a,n={path:l,only:d,without:f,where:s,sort:h,limit:p,skip:y,locale:i,find:v};if(n.find==="one"){if(!r&&(t!=null&&t["not-found"]))return t["not-found"]({props:n,...this.$attrs});if(t!=null&&t.empty&&(r==null?void 0:r._type)==="markdown"&&!((c=r==null?void 0:r.body)!=null&&c.children.length))return t.empty({props:n,...this.$attrs})}else if((!r||!r.length)&&t!=null&&t["not-found"])return t["not-found"]({props:n,...this.$attrs});return t!=null&&t.default?t.default({data:r,refresh:o,isPartial:u,props:n,...this.$attrs}):((w,q)=>O("pre",null,JSON.stringify({message:"You should use slots with !",slot:w,data:q},null,2)))("default",{data:r,props:n,isPartial:u})}}),R=Q;export{R as default}; +import{d as g,bi as b,D as C,v as S,H as _,aV as k,s as m,a_ as A,b8 as N,V as O}from"./5uFLRXWz.js";const Q=g({name:"ContentQuery",props:{path:{type:String,required:!1,default:void 0},only:{type:Array,required:!1,default:void 0},without:{type:Array,required:!1,default:void 0},where:{type:Object,required:!1,default:void 0},sort:{type:Object,required:!1,default:void 0},limit:{type:Number,required:!1,default:void 0},skip:{type:Number,required:!1,default:void 0},locale:{type:String,required:!1,default:void 0},find:{type:String,required:!1,default:void 0}},async setup(a){const{path:t,only:r,without:o,where:u,sort:l,limit:d,skip:f,locale:s,find:h}=b(a),p=C(()=>{var e;return(e=t.value)==null?void 0:e.includes("/_")}),y=!S().public.content.experimental.advanceQuery;_(()=>a,()=>n(),{deep:!0});const i=e=>y?e!=null&&e.surround?e.surround:e!=null&&e._id||Array.isArray(e)?e:e==null?void 0:e.result:e.result,{data:v,refresh:n}=await k(`content-query-${A(a)}`,()=>{let e;return t.value?e=m(t.value):e=m(),r.value&&(e=e.only(r.value)),o.value&&(e=e.without(o.value)),u.value&&(e=e.where(u.value)),l.value&&(e=e.sort(l.value)),d.value&&(e=e.limit(d.value)),f.value&&(e=e.skip(f.value)),s.value&&(e=e.where({_locale:s.value})),h.value==="one"?e.findOne().then(i):h.value==="surround"?t.value?y?e.findSurround(t.value):e.withSurround(t.value).findOne().then(i):(console.warn("[Content] Surround queries requires `path` prop to be set."),console.warn("[Content] Query without `path` will return regular `find()` results."),e.find().then(i)):e.find().then(i)});return{isPartial:p,data:v,refresh:n}},render(a){var c;const t=N(),{data:r,refresh:o,isPartial:u,path:l,only:d,without:f,where:s,sort:h,limit:p,skip:y,locale:i,find:v}=a,n={path:l,only:d,without:f,where:s,sort:h,limit:p,skip:y,locale:i,find:v};if(n.find==="one"){if(!r&&(t!=null&&t["not-found"]))return t["not-found"]({props:n,...this.$attrs});if(t!=null&&t.empty&&(r==null?void 0:r._type)==="markdown"&&!((c=r==null?void 0:r.body)!=null&&c.children.length))return t.empty({props:n,...this.$attrs})}else if((!r||!r.length)&&t!=null&&t["not-found"])return t["not-found"]({props:n,...this.$attrs});return t!=null&&t.default?t.default({data:r,refresh:o,isPartial:u,props:n,...this.$attrs}):((w,q)=>O("pre",null,JSON.stringify({message:"You should use slots with !",slot:w,data:q},null,2)))("default",{data:r,props:n,isPartial:u})}}),R=Q;export{R as default}; diff --git a/_nuxt/CM-HxrcU.js b/_nuxt/XVY12RzN.js similarity index 95% rename from _nuxt/CM-HxrcU.js rename to _nuxt/XVY12RzN.js index 902729ece..ed906ab96 100644 --- a/_nuxt/CM-HxrcU.js +++ b/_nuxt/XVY12RzN.js @@ -1 +1 @@ -import{l,am as g,an as u,d as p,ap as b,aq as c,D as f,aM as y,at as m,c as s,ai as k,w as v,e as r,n as d,aj as o,g as n,ak as h,bb as $}from"./DV7eKLeG.js";const C={base:"",background:"bg-white dark:bg-gray-900",divide:"divide-y divide-gray-200 dark:divide-gray-800",ring:"ring-1 ring-gray-200 dark:ring-gray-800",rounded:"rounded-lg",shadow:"shadow",body:{base:"",background:"",padding:"px-4 py-5 sm:p-6"},header:{base:"",background:"",padding:"px-4 py-5 sm:px-6"},footer:{base:"",background:"",padding:"px-4 py-4 sm:px-6"}},w=g(u.ui.strategy,u.ui.card,C),S=p({inheritAttrs:!1,props:{as:{type:String,default:"div"},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},setup(a){const{ui:e,attrs:i}=b("card",c(a,"ui"),w),t=f(()=>y(m(e.value.base,e.value.rounded,e.value.divide,e.value.ring,e.value.shadow,e.value.background),a.class));return{ui:e,attrs:i,cardClass:t}}});function j(a,e,i,t,B,A){return s(),k($(a.$attrs.onSubmit?"form":a.as),h({class:a.cardClass},a.attrs),{default:v(()=>[a.$slots.header?(s(),r("div",{key:0,class:d([a.ui.header.base,a.ui.header.padding,a.ui.header.background])},[o(a.$slots,"header")],2)):n("",!0),a.$slots.default?(s(),r("div",{key:1,class:d([a.ui.body.base,a.ui.body.padding,a.ui.body.background])},[o(a.$slots,"default")],2)):n("",!0),a.$slots.footer?(s(),r("div",{key:2,class:d([a.ui.footer.base,a.ui.footer.padding,a.ui.footer.background])},[o(a.$slots,"footer")],2)):n("",!0)]),_:3},16,["class"])}const M=l(S,[["render",j]]);export{M as _}; +import{l,am as g,an as u,d as p,ap as b,aq as c,D as f,aM as y,at as m,c as s,ai as k,w as v,e as r,n as d,aj as o,g as n,ak as h,bb as $}from"./5uFLRXWz.js";const C={base:"",background:"bg-white dark:bg-gray-900",divide:"divide-y divide-gray-200 dark:divide-gray-800",ring:"ring-1 ring-gray-200 dark:ring-gray-800",rounded:"rounded-lg",shadow:"shadow",body:{base:"",background:"",padding:"px-4 py-5 sm:p-6"},header:{base:"",background:"",padding:"px-4 py-5 sm:px-6"},footer:{base:"",background:"",padding:"px-4 py-4 sm:px-6"}},w=g(u.ui.strategy,u.ui.card,C),S=p({inheritAttrs:!1,props:{as:{type:String,default:"div"},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},setup(a){const{ui:e,attrs:i}=b("card",c(a,"ui"),w),t=f(()=>y(m(e.value.base,e.value.rounded,e.value.divide,e.value.ring,e.value.shadow,e.value.background),a.class));return{ui:e,attrs:i,cardClass:t}}});function j(a,e,i,t,B,A){return s(),k($(a.$attrs.onSubmit?"form":a.as),h({class:a.cardClass},a.attrs),{default:v(()=>[a.$slots.header?(s(),r("div",{key:0,class:d([a.ui.header.base,a.ui.header.padding,a.ui.header.background])},[o(a.$slots,"header")],2)):n("",!0),a.$slots.default?(s(),r("div",{key:1,class:d([a.ui.body.base,a.ui.body.padding,a.ui.body.background])},[o(a.$slots,"default")],2)):n("",!0),a.$slots.footer?(s(),r("div",{key:2,class:d([a.ui.footer.base,a.ui.footer.padding,a.ui.footer.background])},[o(a.$slots,"footer")],2)):n("",!0)]),_:3},16,["class"])}const M=l(S,[["render",j]]);export{M as _}; diff --git a/_nuxt/R7OHQyOF.js b/_nuxt/Yk3AXHuD.js similarity index 99% rename from _nuxt/R7OHQyOF.js rename to _nuxt/Yk3AXHuD.js index 3fa9dfb85..4e4fbef5e 100644 --- a/_nuxt/R7OHQyOF.js +++ b/_nuxt/Yk3AXHuD.js @@ -1 +1 @@ -import{d as S,ap as A,aq as f,c as o,e as d,n as l,E as t,aj as k,k as T,t as $,g,f as b,h as C,F as D,ah as E,ai as h,ak as x,ab as z,ao as le,w as O,aL as ce,V as re,l as ue,am as de,an as ee,ac as R,D as U,aM as q,at as N,z as M,aN as pe,aO as ge,r as B,H as me,aP as ye,aQ as be,a as fe,u as ve,aR as he,x as ke,aS as te,aT as xe,aU as _e,aw as ae,aV as ne,aW as we,aX as $e,s as se,aY as Ce}from"./DV7eKLeG.js";import Se from"./D0-C4B6x.js";import"./C3Kzup5y.js";import"./bXKbWHrB.js";import"./BneCoJRQ.js";const Ae={wrapper:{base:"flex items-center align-center text-center",horizontal:"w-full flex-row",vertical:"flex-col"},container:{base:"font-medium text-gray-700 dark:text-gray-200 flex",horizontal:"mx-3 whitespace-nowrap",vertical:"my-2"},border:{base:"flex border-gray-200 dark:border-gray-800",horizontal:"w-full",vertical:"h-full",size:{horizontal:{"2xs":"border-t",xs:"border-t-[2px]",sm:"border-t-[3px]",md:"border-t-[4px]",lg:"border-t-[5px]",xl:"border-t-[6px]"},vertical:{"2xs":"border-s",xs:"border-s-[2px]",sm:"border-s-[3px]",md:"border-s-[4px]",lg:"border-s-[5px]",xl:"border-s-[6px]"}},type:{solid:"border-solid",dotted:"border-dotted",dashed:"border-dashed"}},icon:{base:"flex-shrink-0 w-5 h-5"},avatar:{base:"flex-shrink-0",size:"2xs"},label:"text-sm",default:{size:"2xs"}},Ue={class:"flex flex-col lg:flex-row items-start gap-6"},Oe={class:"flex-1"},ze=S({inheritAttrs:!1,__name:"PageHeader",props:{headline:{type:String,default:void 0},title:{type:String,default:void 0},description:{type:String,default:void 0},icon:{type:String,default:void 0},links:{type:Array,default:()=>[]},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(e){const s={wrapper:"relative border-b border-gray-200 dark:border-gray-800 py-8",container:"flex flex-col lg:flex-row lg:items-center lg:justify-between",headline:"mb-3 text-sm/6 font-semibold text-primary flex items-center gap-1.5",title:"text-3xl sm:text-4xl font-bold text-gray-900 dark:text-white tracking-tight",description:"mt-4 text-lg text-gray-500 dark:text-gray-400",icon:{wrapper:"flex",base:"w-10 h-10 flex-shrink-0 text-primary"},links:"flex flex-wrap items-center gap-1.5 mt-4 lg:mt-0"},i=e,{ui:r,attrs:n}=A("page.header",f(i,"ui"),s,f(i,"class"),!0);return(a,c)=>{var p;const m=z,y=le;return o(),d("div",x({class:t(r).wrapper},t(n)),[e.headline||a.$slots.headline?(o(),d("div",{key:0,class:l(t(r).headline)},[k(a.$slots,"headline",{},()=>[T($(e.headline),1)])],2)):g("",!0),b("div",Ue,[e.icon||a.$slots.icon?(o(),d("div",{key:0,class:l(t(r).icon.wrapper)},[k(a.$slots,"icon",{},()=>[C(m,{name:e.icon,class:l(t(r).icon.base)},null,8,["name","class"])])],2)):g("",!0),b("div",Oe,[b("div",{class:l(t(r).container)},[b("h1",{class:l(t(r).title)},[k(a.$slots,"title",{},()=>[T($(e.title),1)])],2),(p=e.links)!=null&&p.length||a.$slots.links?(o(),d("div",{key:0,class:l(t(r).links)},[k(a.$slots,"links",{},()=>[(o(!0),d(D,null,E(e.links,(v,u)=>(o(),h(y,x({key:u},{...v,target:v.target||"_blank",color:v.color||"white"},{onClick:v.click}),null,16,["onClick"]))),128))])],2)):g("",!0)],2),e.description||a.$slots.description?(o(),d("div",{key:0,class:l(t(r).description)},[k(a.$slots,"description",{},()=>[T($(e.description),1)])],2)):g("",!0),k(a.$slots,"default")])])],16)}}}),je=S({inheritAttrs:!1,__name:"ContentSurroundLink",props:{link:{type:Object,required:!0},icon:{type:String,default:void 0},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(e){const s={wrapper:"block px-6 py-8 border not-prose rounded-lg border-gray-200 dark:border-gray-800 hover:bg-gray-100/50 dark:hover:bg-gray-800/50 group",icon:{wrapper:"inline-flex items-center rounded-full p-1.5 bg-gray-100 dark:bg-gray-800 group-hover:bg-primary/10 ring-1 ring-gray-300 dark:ring-gray-700 mb-4 group-hover:ring-primary/50",base:"w-5 h-5 text-gray-900 dark:text-white group-hover:text-primary"},title:"font-medium text-gray-900 dark:text-white text-[15px] mb-1",description:"text-sm font-normal text-gray-500 dark:text-gray-400 line-clamp-2"},i=e,{ui:r,attrs:n}=A("content.surround.link",f(i,"ui"),s,f(i,"class"),!0);return(a,c)=>{const m=z,y=ce;return o(),h(y,x({to:e.link._path,class:t(r).wrapper},t(n)),{default:O(()=>[e.icon||e.link.icon?(o(),d("div",{key:0,class:l(t(r).icon.wrapper)},[C(m,{name:e.icon||e.link.icon,class:l(t(r).icon.base)},null,8,["name","class"])],2)):g("",!0),b("p",{class:l(t(r).title)},$(e.link.title),3),b("p",{class:l(t(r).description)},$(e.link.description),3)]),_:1},16,["to","class"])}}}),Ie={key:1,class:"hidden sm:block"},Te=S({inheritAttrs:!1,__name:"ContentSurround",props:{surround:{type:Array,default:()=>[]},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(e){const s={wrapper:"grid gap-8 sm:grid-cols-2",icon:{prev:"i-heroicons-arrow-left-20-solid",next:"i-heroicons-arrow-right-20-solid"},link:{}},i=e,{ui:r,attrs:n}=A("content.surround",f(i,"ui"),s,f(i,"class"),!0),[a,c]=i.surround||[];return(m,y)=>{const p=je;return o(),d("div",x({class:t(r).wrapper},t(n)),[t(a)?(o(),h(p,{key:0,link:t(a),ui:t(r).link,icon:t(r).icon.prev},null,8,["link","ui","icon"])):(o(),d("span",Ie," ")),t(c)?(o(),h(p,{key:2,link:t(c),ui:t(r).link,icon:t(r).icon.next,class:"text-right"},null,8,["link","ui","icon"])):g("",!0)],16)}}}),Le=(e,s)=>(console.warn("[@nuxt/ui-pro] `DocsSurround` is deprecated, use `ContentSurround` instead."),re(Te,s.attrs,s.slots)),Pe=S({inheritAttrs:!1,__name:"PageBody",props:{prose:{type:Boolean,default:!1},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(e){const s={wrapper:"mt-8 pb-24",prose:"prose prose-primary dark:prose-invert max-w-none"},i=e,{ui:r,attrs:n}=A("page.body",f(i,"ui"),s,f(i,"class"),!0);return(a,c)=>(o(),d("div",x({class:[t(r).wrapper,e.prose&&t(r).prose]},t(n)),[k(a.$slots,"default")],16))}}),P=de(ee.ui.strategy,ee.ui.divider,Ae),Be=S({components:{UIcon:z,UAvatar:R},inheritAttrs:!1,props:{label:{type:String,default:null},icon:{type:String,default:null},avatar:{type:Object,default:null},size:{type:String,default:()=>P.default.size,validator(e){return Object.keys(P.border.size.horizontal).includes(e)||Object.keys(P.border.size.vertical).includes(e)}},orientation:{type:String,default:"horizontal",validator:e=>["horizontal","vertical"].includes(e)},type:{type:String,default:"solid",validator:e=>["solid","dotted","dashed"].includes(e)},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},setup(e){const{ui:s,attrs:i}=A("divider",f(e,"ui"),P),r=U(()=>q(N(s.value.wrapper.base,s.value.wrapper[e.orientation]),e.class)),n=U(()=>N(s.value.container.base,s.value.container[e.orientation])),a=U(()=>N(s.value.border.base,s.value.border[e.orientation],s.value.border.size[e.orientation][e.size],s.value.border.type[e.type]));return{ui:s,attrs:i,wrapperClass:r,containerClass:n,borderClass:a}}});function De(e,s,i,r,n,a){const c=z,m=R;return o(),d("div",x({class:e.wrapperClass},e.attrs),[b("div",{class:l(e.borderClass)},null,2),e.label||e.icon||e.avatar||e.$slots.default?(o(),d(D,{key:0},[b("div",{class:l(e.containerClass)},[k(e.$slots,"default",{},()=>[e.label?(o(),d("span",{key:0,class:l(e.ui.label)},$(e.label),3)):e.icon?(o(),h(c,{key:1,name:e.icon,class:l(e.ui.icon.base)},null,8,["name","class"])):e.avatar?(o(),h(m,x({key:2},{size:e.ui.avatar.size,...e.avatar},{class:e.ui.avatar.base}),null,16,["class"])):g("",!0)])],2),b("div",{class:l(e.borderClass)},null,2)],64)):g("",!0)],16)}const He=ue(Be,[["render",De]]),Ne=S({inheritAttrs:!1,__name:"PageLinks",props:{title:{type:String,default:void 0},links:{type:Array,default:()=>[]},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(e){const s=M(),i=U(()=>({wrapper:"space-y-3",title:"text-sm/6 font-semibold flex items-center gap-1.5",container:"space-y-3 lg:space-y-1.5",base:"flex items-center gap-1.5",active:"text-primary",inactive:"text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200",icon:{base:"w-5 h-5 flex-shrink-0"},avatar:{base:"self-center",size:"2xs"},externalIcon:{name:s.ui.icons.external,base:"w-3 h-3 absolute top-0.5 -right-3.5 text-gray-400 dark:text-gray-500"},label:"text-sm/6 font-medium relative"})),r=e,{ui:n,attrs:a}=A("page.links",f(r,"ui"),i,f(r,"class"),!0);return(c,m)=>{const y=z,p=R,v=ge;return o(),d("div",x({class:t(n).wrapper},t(a)),[e.title||c.$slots.title?(o(),d("p",{key:0,class:l(t(n).title)},[k(c.$slots,"title",{},()=>[T($(e.title),1)])],2)):g("",!0),b("div",{class:l(t(n).container)},[k(c.$slots,"default",{},()=>[(o(!0),d(D,null,E(e.links,(u,_)=>(o(),h(v,x({key:_},t(pe)(u),{class:t(n).base,"active-class":t(n).active,"inactive-class":t(n).inactive,onClick:u.click}),{default:O(()=>[u.icon?(o(),h(y,{key:0,name:u.icon,class:l(t(q)(t(n).icon.base,u.iconClass))},null,8,["name","class"])):g("",!0),u.avatar?(o(),h(p,x({key:1},{size:t(n).avatar.size,...u.avatar},{class:t(q)(t(n).avatar.base,u.avatarClass)}),null,16,["class"])):g("",!0),b("span",{class:l(t(n).label)},[T($(u.label)+" ",1),u.target==="_blank"?(o(),h(y,{key:0,name:t(n).externalIcon.name,class:l(t(n).externalIcon.base)},null,8,["name","class"])):g("",!0)],2)]),_:2},1040,["class","active-class","inactive-class","onClick"]))),128))])],2)],16)}}}),qe=()=>{const e=B(),s=B([]),i=B([]),r=a=>{a.forEach(c=>{const m=c.target.id;c.isIntersecting?s.value=[...s.value,m]:s.value=s.value.filter(y=>y!==m)})},n=a=>{a.forEach(c=>{e.value&&e.value.observe(c)})};return me(s,(a,c)=>{a.length===0?i.value=c:i.value=a}),ye(()=>e.value=new IntersectionObserver(r)),be(()=>{var a;return(a=e.value)==null?void 0:a.disconnect()}),{visibleHeadings:s,activeHeadings:i,updateHeadings:n}},Ee=["href","onClick"],oe=S({inheritAttrs:!1,__name:"ContentTocLinks",props:{links:{type:Array,default:()=>[]},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},emits:["move"],setup(e,{emit:s}){const i={wrapper:"space-y-1",base:"block text-sm/6 truncate",active:"text-primary",inactive:"text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200",depth:"ml-3"},r=e,n=s,a=fe(),c=ve(),{activeHeadings:m,updateHeadings:y}=qe(),{ui:p,attrs:v}=A("content.toc.links",f(r,"ui"),i,f(r,"class"),!0);c.hooks.hookOnce("page:finish",()=>{y([...document.querySelectorAll("h2"),...document.querySelectorAll("h3")])});const u=_=>{const j=encodeURIComponent(_);a.push(`#${j}`),n("move",_)};return(_,j)=>{var L;const H=oe;return(L=e.links)!=null&&L.length?(o(),d("ul",x({key:0,class:t(p).wrapper},t(v)),[(o(!0),d(D,null,E(e.links,w=>(o(),d("li",{key:w.text,class:l([t(p).wrapper,w.depth===3&&t(p).depth])},[b("a",{href:`#${w.id}`,class:l([t(p).base,t(m).includes(w.id)?t(p).active:t(p).inactive]),onClick:he(V=>u(w.id),["prevent"])},$(w.text),11,Ee),w.children?(o(),h(H,{key:0,links:w.children,ui:t(p)},null,8,["links","ui"])):g("",!0)],2))),128))],16)):g("",!0)}}}),Re=S({inheritAttrs:!1,__name:"ContentToc",props:{title:{type:String,default:"Table of Contents"},links:{type:Array,default:()=>[]},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(e){const s=M(),i=U(()=>({wrapper:"sticky top-[--header-height] bg-background/75 backdrop-blur -mx-4 sm:-mx-6 px-4 sm:px-6 lg:px-4 lg:-mx-4 overflow-y-auto max-h-[calc(100vh-var(--header-height))]",container:{base:"py-3 lg:py-8 border-b border-dashed border-gray-200 dark:border-gray-800 lg:border-0 space-y-3",empty:"lg:py-8 space-y-3"},button:{base:"flex items-center gap-1.5 lg:cursor-text lg:select-text w-full group",label:"font-semibold text-sm/6 truncate",trailingIcon:{name:s.ui.icons.chevron,base:"w-5 h-5 ms-auto transform transition-transform duration-200 flex-shrink-0 mr-1.5",active:"text-gray-700 dark:text-gray-200",inactive:"text-gray-500 dark:text-gray-400 group-hover:text-gray-700 dark:group-hover:text-gray-200 -rotate-90"}},links:{}})),r=e,{ui:n,attrs:a}=A("content.toc",f(r,"ui"),i,f(r,"class"),!0),c=B(!1);return(m,y)=>{var u,_;const p=z,v=oe;return o(),d("nav",x({class:t(n).wrapper},t(a)),[b("div",{class:l([(u=e.links)!=null&&u.length?t(n).container.base:t(n).container.empty])},[k(m.$slots,"top"),(_=e.links)!=null&&_.length?(o(),d("button",{key:0,class:l(t(n).button.base),tabindex:"-1",onClick:y[0]||(y[0]=j=>c.value=!t(c))},[b("span",{class:l(t(n).button.label)},$(e.title),3),C(p,{name:t(n).button.trailingIcon.name,class:l(["lg:!hidden",[t(n).button.trailingIcon.base,t(c)?t(n).button.trailingIcon.active:t(n).button.trailingIcon.inactive]])},null,8,["name","class"])],2)):g("",!0),C(v,{links:e.links,ui:t(n).links,class:l([t(c)?"lg:block":"hidden lg:block"])},null,8,["links","ui","class"]),k(m.$slots,"bottom")],2)],16)}}}),Me=(e,s)=>(console.warn("[@nuxt/ui-pro] `DocsToc` is deprecated, use `ContentToc` instead."),re(Re,s.attrs,s.slots)),Ve={key:1},Xe=S({__name:"[...slug]",async setup(e){let s,i;const r=ke(),{toc:n}=M(),{data:a}=([s,i]=te(()=>ne(r.path,()=>se(r.path).findOne(),"$aROEKgqrzL")),s=await s,i(),s);if(!a.value)throw xe({statusCode:404,statusMessage:"Page not found",fatal:!0});const{data:c}=([s,i]=te(()=>ne(`${r.path}-surround`,()=>se().where({_extension:"md",navigation:{$ne:!1}}).only(["title","description","_path"]).findSurround(Ce(r.path)))),s=await s,i(),s);_e({titleTemplate:"%s - Nuxt x Supabase - Docs",title:a.value.title,ogTitle:`${a.value.title} - Nuxt x Supabase - Docs`,description:a.value.description,ogDescription:a.value.description});const m=U(()=>we(a.value)),y=U(()=>{var p,v,u;return[((p=n==null?void 0:n.bottom)==null?void 0:p.edit)&&{icon:"i-heroicons-pencil-square",label:"Edit this page",to:`${n.bottom.edit}/${(v=a==null?void 0:a.value)==null?void 0:v._file}`,target:"_blank"},...((u=n==null?void 0:n.bottom)==null?void 0:u.links)||[]].filter(Boolean)});return(p,v)=>{const u=ze,_=Se,j=Le,H=Pe,L=He,w=Ne,V=Me,ie=$e;return o(),h(ie,null,ae({default:O(()=>[C(u,{title:t(a).title,description:t(a).description,links:t(a).links,headline:t(m)},null,8,["title","description","links","headline"]),C(H,{prose:""},{default:O(()=>{var I;return[t(a).body?(o(),h(_,{key:0,value:t(a)},null,8,["value"])):g("",!0),(I=t(c))!=null&&I.length?(o(),d("hr",Ve)):g("",!0),C(j,{surround:t(c)},null,8,["surround"])]}),_:1})]),_:2},[t(a).toc!==!1?{name:"right",fn:O(()=>{var I,F,J,K;return[C(V,{title:(I=t(n))==null?void 0:I.title,links:(J=(F=t(a).body)==null?void 0:F.toc)==null?void 0:J.links},ae({_:2},[(K=t(n))!=null&&K.bottom?{name:"bottom",fn:O(()=>{var Q,W,X,Y,G,Z;return[b("div",{class:l(["hidden lg:block space-y-6",{"!mt-6":(X=(W=(Q=t(a).body)==null?void 0:Q.toc)==null?void 0:W.links)==null?void 0:X.length}])},[(Z=(G=(Y=t(a).body)==null?void 0:Y.toc)==null?void 0:G.links)!=null&&Z.length?(o(),h(L,{key:0,type:"dashed"})):g("",!0),C(w,{title:t(n).bottom.title,links:t(y)},null,8,["title","links"])],2)]}),key:"0"}:void 0]),1032,["title","links"])]}),key:"0"}:void 0]),1024)}}});export{Xe as default}; +import{d as S,ap as A,aq as f,c as o,e as d,n as l,E as t,aj as k,k as T,t as $,g,f as b,h as C,F as D,ah as E,ai as h,ak as x,ab as z,ao as le,w as O,aL as ce,V as re,l as ue,am as de,an as ee,ac as R,D as U,aM as q,at as N,z as M,aN as pe,aO as ge,r as B,H as me,aP as ye,aQ as be,a as fe,u as ve,aR as he,x as ke,aS as te,aT as xe,aU as _e,aw as ae,aV as ne,aW as we,aX as $e,s as se,aY as Ce}from"./5uFLRXWz.js";import Se from"./DI2CkNWG.js";import"./TXOJiQqS.js";import"./CgMG10Xn.js";import"./BneCoJRQ.js";const Ae={wrapper:{base:"flex items-center align-center text-center",horizontal:"w-full flex-row",vertical:"flex-col"},container:{base:"font-medium text-gray-700 dark:text-gray-200 flex",horizontal:"mx-3 whitespace-nowrap",vertical:"my-2"},border:{base:"flex border-gray-200 dark:border-gray-800",horizontal:"w-full",vertical:"h-full",size:{horizontal:{"2xs":"border-t",xs:"border-t-[2px]",sm:"border-t-[3px]",md:"border-t-[4px]",lg:"border-t-[5px]",xl:"border-t-[6px]"},vertical:{"2xs":"border-s",xs:"border-s-[2px]",sm:"border-s-[3px]",md:"border-s-[4px]",lg:"border-s-[5px]",xl:"border-s-[6px]"}},type:{solid:"border-solid",dotted:"border-dotted",dashed:"border-dashed"}},icon:{base:"flex-shrink-0 w-5 h-5"},avatar:{base:"flex-shrink-0",size:"2xs"},label:"text-sm",default:{size:"2xs"}},Ue={class:"flex flex-col lg:flex-row items-start gap-6"},Oe={class:"flex-1"},ze=S({inheritAttrs:!1,__name:"PageHeader",props:{headline:{type:String,default:void 0},title:{type:String,default:void 0},description:{type:String,default:void 0},icon:{type:String,default:void 0},links:{type:Array,default:()=>[]},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(e){const s={wrapper:"relative border-b border-gray-200 dark:border-gray-800 py-8",container:"flex flex-col lg:flex-row lg:items-center lg:justify-between",headline:"mb-3 text-sm/6 font-semibold text-primary flex items-center gap-1.5",title:"text-3xl sm:text-4xl font-bold text-gray-900 dark:text-white tracking-tight",description:"mt-4 text-lg text-gray-500 dark:text-gray-400",icon:{wrapper:"flex",base:"w-10 h-10 flex-shrink-0 text-primary"},links:"flex flex-wrap items-center gap-1.5 mt-4 lg:mt-0"},i=e,{ui:r,attrs:n}=A("page.header",f(i,"ui"),s,f(i,"class"),!0);return(a,c)=>{var p;const m=z,y=le;return o(),d("div",x({class:t(r).wrapper},t(n)),[e.headline||a.$slots.headline?(o(),d("div",{key:0,class:l(t(r).headline)},[k(a.$slots,"headline",{},()=>[T($(e.headline),1)])],2)):g("",!0),b("div",Ue,[e.icon||a.$slots.icon?(o(),d("div",{key:0,class:l(t(r).icon.wrapper)},[k(a.$slots,"icon",{},()=>[C(m,{name:e.icon,class:l(t(r).icon.base)},null,8,["name","class"])])],2)):g("",!0),b("div",Oe,[b("div",{class:l(t(r).container)},[b("h1",{class:l(t(r).title)},[k(a.$slots,"title",{},()=>[T($(e.title),1)])],2),(p=e.links)!=null&&p.length||a.$slots.links?(o(),d("div",{key:0,class:l(t(r).links)},[k(a.$slots,"links",{},()=>[(o(!0),d(D,null,E(e.links,(v,u)=>(o(),h(y,x({key:u},{...v,target:v.target||"_blank",color:v.color||"white"},{onClick:v.click}),null,16,["onClick"]))),128))])],2)):g("",!0)],2),e.description||a.$slots.description?(o(),d("div",{key:0,class:l(t(r).description)},[k(a.$slots,"description",{},()=>[T($(e.description),1)])],2)):g("",!0),k(a.$slots,"default")])])],16)}}}),je=S({inheritAttrs:!1,__name:"ContentSurroundLink",props:{link:{type:Object,required:!0},icon:{type:String,default:void 0},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(e){const s={wrapper:"block px-6 py-8 border not-prose rounded-lg border-gray-200 dark:border-gray-800 hover:bg-gray-100/50 dark:hover:bg-gray-800/50 group",icon:{wrapper:"inline-flex items-center rounded-full p-1.5 bg-gray-100 dark:bg-gray-800 group-hover:bg-primary/10 ring-1 ring-gray-300 dark:ring-gray-700 mb-4 group-hover:ring-primary/50",base:"w-5 h-5 text-gray-900 dark:text-white group-hover:text-primary"},title:"font-medium text-gray-900 dark:text-white text-[15px] mb-1",description:"text-sm font-normal text-gray-500 dark:text-gray-400 line-clamp-2"},i=e,{ui:r,attrs:n}=A("content.surround.link",f(i,"ui"),s,f(i,"class"),!0);return(a,c)=>{const m=z,y=ce;return o(),h(y,x({to:e.link._path,class:t(r).wrapper},t(n)),{default:O(()=>[e.icon||e.link.icon?(o(),d("div",{key:0,class:l(t(r).icon.wrapper)},[C(m,{name:e.icon||e.link.icon,class:l(t(r).icon.base)},null,8,["name","class"])],2)):g("",!0),b("p",{class:l(t(r).title)},$(e.link.title),3),b("p",{class:l(t(r).description)},$(e.link.description),3)]),_:1},16,["to","class"])}}}),Ie={key:1,class:"hidden sm:block"},Te=S({inheritAttrs:!1,__name:"ContentSurround",props:{surround:{type:Array,default:()=>[]},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(e){const s={wrapper:"grid gap-8 sm:grid-cols-2",icon:{prev:"i-heroicons-arrow-left-20-solid",next:"i-heroicons-arrow-right-20-solid"},link:{}},i=e,{ui:r,attrs:n}=A("content.surround",f(i,"ui"),s,f(i,"class"),!0),[a,c]=i.surround||[];return(m,y)=>{const p=je;return o(),d("div",x({class:t(r).wrapper},t(n)),[t(a)?(o(),h(p,{key:0,link:t(a),ui:t(r).link,icon:t(r).icon.prev},null,8,["link","ui","icon"])):(o(),d("span",Ie," ")),t(c)?(o(),h(p,{key:2,link:t(c),ui:t(r).link,icon:t(r).icon.next,class:"text-right"},null,8,["link","ui","icon"])):g("",!0)],16)}}}),Le=(e,s)=>(console.warn("[@nuxt/ui-pro] `DocsSurround` is deprecated, use `ContentSurround` instead."),re(Te,s.attrs,s.slots)),Pe=S({inheritAttrs:!1,__name:"PageBody",props:{prose:{type:Boolean,default:!1},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(e){const s={wrapper:"mt-8 pb-24",prose:"prose prose-primary dark:prose-invert max-w-none"},i=e,{ui:r,attrs:n}=A("page.body",f(i,"ui"),s,f(i,"class"),!0);return(a,c)=>(o(),d("div",x({class:[t(r).wrapper,e.prose&&t(r).prose]},t(n)),[k(a.$slots,"default")],16))}}),P=de(ee.ui.strategy,ee.ui.divider,Ae),Be=S({components:{UIcon:z,UAvatar:R},inheritAttrs:!1,props:{label:{type:String,default:null},icon:{type:String,default:null},avatar:{type:Object,default:null},size:{type:String,default:()=>P.default.size,validator(e){return Object.keys(P.border.size.horizontal).includes(e)||Object.keys(P.border.size.vertical).includes(e)}},orientation:{type:String,default:"horizontal",validator:e=>["horizontal","vertical"].includes(e)},type:{type:String,default:"solid",validator:e=>["solid","dotted","dashed"].includes(e)},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},setup(e){const{ui:s,attrs:i}=A("divider",f(e,"ui"),P),r=U(()=>q(N(s.value.wrapper.base,s.value.wrapper[e.orientation]),e.class)),n=U(()=>N(s.value.container.base,s.value.container[e.orientation])),a=U(()=>N(s.value.border.base,s.value.border[e.orientation],s.value.border.size[e.orientation][e.size],s.value.border.type[e.type]));return{ui:s,attrs:i,wrapperClass:r,containerClass:n,borderClass:a}}});function De(e,s,i,r,n,a){const c=z,m=R;return o(),d("div",x({class:e.wrapperClass},e.attrs),[b("div",{class:l(e.borderClass)},null,2),e.label||e.icon||e.avatar||e.$slots.default?(o(),d(D,{key:0},[b("div",{class:l(e.containerClass)},[k(e.$slots,"default",{},()=>[e.label?(o(),d("span",{key:0,class:l(e.ui.label)},$(e.label),3)):e.icon?(o(),h(c,{key:1,name:e.icon,class:l(e.ui.icon.base)},null,8,["name","class"])):e.avatar?(o(),h(m,x({key:2},{size:e.ui.avatar.size,...e.avatar},{class:e.ui.avatar.base}),null,16,["class"])):g("",!0)])],2),b("div",{class:l(e.borderClass)},null,2)],64)):g("",!0)],16)}const He=ue(Be,[["render",De]]),Ne=S({inheritAttrs:!1,__name:"PageLinks",props:{title:{type:String,default:void 0},links:{type:Array,default:()=>[]},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(e){const s=M(),i=U(()=>({wrapper:"space-y-3",title:"text-sm/6 font-semibold flex items-center gap-1.5",container:"space-y-3 lg:space-y-1.5",base:"flex items-center gap-1.5",active:"text-primary",inactive:"text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200",icon:{base:"w-5 h-5 flex-shrink-0"},avatar:{base:"self-center",size:"2xs"},externalIcon:{name:s.ui.icons.external,base:"w-3 h-3 absolute top-0.5 -right-3.5 text-gray-400 dark:text-gray-500"},label:"text-sm/6 font-medium relative"})),r=e,{ui:n,attrs:a}=A("page.links",f(r,"ui"),i,f(r,"class"),!0);return(c,m)=>{const y=z,p=R,v=ge;return o(),d("div",x({class:t(n).wrapper},t(a)),[e.title||c.$slots.title?(o(),d("p",{key:0,class:l(t(n).title)},[k(c.$slots,"title",{},()=>[T($(e.title),1)])],2)):g("",!0),b("div",{class:l(t(n).container)},[k(c.$slots,"default",{},()=>[(o(!0),d(D,null,E(e.links,(u,_)=>(o(),h(v,x({key:_},t(pe)(u),{class:t(n).base,"active-class":t(n).active,"inactive-class":t(n).inactive,onClick:u.click}),{default:O(()=>[u.icon?(o(),h(y,{key:0,name:u.icon,class:l(t(q)(t(n).icon.base,u.iconClass))},null,8,["name","class"])):g("",!0),u.avatar?(o(),h(p,x({key:1},{size:t(n).avatar.size,...u.avatar},{class:t(q)(t(n).avatar.base,u.avatarClass)}),null,16,["class"])):g("",!0),b("span",{class:l(t(n).label)},[T($(u.label)+" ",1),u.target==="_blank"?(o(),h(y,{key:0,name:t(n).externalIcon.name,class:l(t(n).externalIcon.base)},null,8,["name","class"])):g("",!0)],2)]),_:2},1040,["class","active-class","inactive-class","onClick"]))),128))])],2)],16)}}}),qe=()=>{const e=B(),s=B([]),i=B([]),r=a=>{a.forEach(c=>{const m=c.target.id;c.isIntersecting?s.value=[...s.value,m]:s.value=s.value.filter(y=>y!==m)})},n=a=>{a.forEach(c=>{e.value&&e.value.observe(c)})};return me(s,(a,c)=>{a.length===0?i.value=c:i.value=a}),ye(()=>e.value=new IntersectionObserver(r)),be(()=>{var a;return(a=e.value)==null?void 0:a.disconnect()}),{visibleHeadings:s,activeHeadings:i,updateHeadings:n}},Ee=["href","onClick"],oe=S({inheritAttrs:!1,__name:"ContentTocLinks",props:{links:{type:Array,default:()=>[]},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},emits:["move"],setup(e,{emit:s}){const i={wrapper:"space-y-1",base:"block text-sm/6 truncate",active:"text-primary",inactive:"text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200",depth:"ml-3"},r=e,n=s,a=fe(),c=ve(),{activeHeadings:m,updateHeadings:y}=qe(),{ui:p,attrs:v}=A("content.toc.links",f(r,"ui"),i,f(r,"class"),!0);c.hooks.hookOnce("page:finish",()=>{y([...document.querySelectorAll("h2"),...document.querySelectorAll("h3")])});const u=_=>{const j=encodeURIComponent(_);a.push(`#${j}`),n("move",_)};return(_,j)=>{var L;const H=oe;return(L=e.links)!=null&&L.length?(o(),d("ul",x({key:0,class:t(p).wrapper},t(v)),[(o(!0),d(D,null,E(e.links,w=>(o(),d("li",{key:w.text,class:l([t(p).wrapper,w.depth===3&&t(p).depth])},[b("a",{href:`#${w.id}`,class:l([t(p).base,t(m).includes(w.id)?t(p).active:t(p).inactive]),onClick:he(V=>u(w.id),["prevent"])},$(w.text),11,Ee),w.children?(o(),h(H,{key:0,links:w.children,ui:t(p)},null,8,["links","ui"])):g("",!0)],2))),128))],16)):g("",!0)}}}),Re=S({inheritAttrs:!1,__name:"ContentToc",props:{title:{type:String,default:"Table of Contents"},links:{type:Array,default:()=>[]},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(e){const s=M(),i=U(()=>({wrapper:"sticky top-[--header-height] bg-background/75 backdrop-blur -mx-4 sm:-mx-6 px-4 sm:px-6 lg:px-4 lg:-mx-4 overflow-y-auto max-h-[calc(100vh-var(--header-height))]",container:{base:"py-3 lg:py-8 border-b border-dashed border-gray-200 dark:border-gray-800 lg:border-0 space-y-3",empty:"lg:py-8 space-y-3"},button:{base:"flex items-center gap-1.5 lg:cursor-text lg:select-text w-full group",label:"font-semibold text-sm/6 truncate",trailingIcon:{name:s.ui.icons.chevron,base:"w-5 h-5 ms-auto transform transition-transform duration-200 flex-shrink-0 mr-1.5",active:"text-gray-700 dark:text-gray-200",inactive:"text-gray-500 dark:text-gray-400 group-hover:text-gray-700 dark:group-hover:text-gray-200 -rotate-90"}},links:{}})),r=e,{ui:n,attrs:a}=A("content.toc",f(r,"ui"),i,f(r,"class"),!0),c=B(!1);return(m,y)=>{var u,_;const p=z,v=oe;return o(),d("nav",x({class:t(n).wrapper},t(a)),[b("div",{class:l([(u=e.links)!=null&&u.length?t(n).container.base:t(n).container.empty])},[k(m.$slots,"top"),(_=e.links)!=null&&_.length?(o(),d("button",{key:0,class:l(t(n).button.base),tabindex:"-1",onClick:y[0]||(y[0]=j=>c.value=!t(c))},[b("span",{class:l(t(n).button.label)},$(e.title),3),C(p,{name:t(n).button.trailingIcon.name,class:l(["lg:!hidden",[t(n).button.trailingIcon.base,t(c)?t(n).button.trailingIcon.active:t(n).button.trailingIcon.inactive]])},null,8,["name","class"])],2)):g("",!0),C(v,{links:e.links,ui:t(n).links,class:l([t(c)?"lg:block":"hidden lg:block"])},null,8,["links","ui","class"]),k(m.$slots,"bottom")],2)],16)}}}),Me=(e,s)=>(console.warn("[@nuxt/ui-pro] `DocsToc` is deprecated, use `ContentToc` instead."),re(Re,s.attrs,s.slots)),Ve={key:1},Xe=S({__name:"[...slug]",async setup(e){let s,i;const r=ke(),{toc:n}=M(),{data:a}=([s,i]=te(()=>ne(r.path,()=>se(r.path).findOne(),"$aROEKgqrzL")),s=await s,i(),s);if(!a.value)throw xe({statusCode:404,statusMessage:"Page not found",fatal:!0});const{data:c}=([s,i]=te(()=>ne(`${r.path}-surround`,()=>se().where({_extension:"md",navigation:{$ne:!1}}).only(["title","description","_path"]).findSurround(Ce(r.path)))),s=await s,i(),s);_e({titleTemplate:"%s - Nuxt x Supabase - Docs",title:a.value.title,ogTitle:`${a.value.title} - Nuxt x Supabase - Docs`,description:a.value.description,ogDescription:a.value.description});const m=U(()=>we(a.value)),y=U(()=>{var p,v,u;return[((p=n==null?void 0:n.bottom)==null?void 0:p.edit)&&{icon:"i-heroicons-pencil-square",label:"Edit this page",to:`${n.bottom.edit}/${(v=a==null?void 0:a.value)==null?void 0:v._file}`,target:"_blank"},...((u=n==null?void 0:n.bottom)==null?void 0:u.links)||[]].filter(Boolean)});return(p,v)=>{const u=ze,_=Se,j=Le,H=Pe,L=He,w=Ne,V=Me,ie=$e;return o(),h(ie,null,ae({default:O(()=>[C(u,{title:t(a).title,description:t(a).description,links:t(a).links,headline:t(m)},null,8,["title","description","links","headline"]),C(H,{prose:""},{default:O(()=>{var I;return[t(a).body?(o(),h(_,{key:0,value:t(a)},null,8,["value"])):g("",!0),(I=t(c))!=null&&I.length?(o(),d("hr",Ve)):g("",!0),C(j,{surround:t(c)},null,8,["surround"])]}),_:1})]),_:2},[t(a).toc!==!1?{name:"right",fn:O(()=>{var I,F,J,K;return[C(V,{title:(I=t(n))==null?void 0:I.title,links:(J=(F=t(a).body)==null?void 0:F.toc)==null?void 0:J.links},ae({_:2},[(K=t(n))!=null&&K.bottom?{name:"bottom",fn:O(()=>{var Q,W,X,Y,G,Z;return[b("div",{class:l(["hidden lg:block space-y-6",{"!mt-6":(X=(W=(Q=t(a).body)==null?void 0:Q.toc)==null?void 0:W.links)==null?void 0:X.length}])},[(Z=(G=(Y=t(a).body)==null?void 0:Y.toc)==null?void 0:G.links)!=null&&Z.length?(o(),h(L,{key:0,type:"dashed"})):g("",!0),C(w,{title:t(n).bottom.title,links:t(y)},null,8,["title","links"])],2)]}),key:"0"}:void 0]),1032,["title","links"])]}),key:"0"}:void 0]),1024)}}});export{Xe as default}; diff --git a/_nuxt/CH2GjlBY.js b/_nuxt/Z0nHrzi-.js similarity index 76% rename from _nuxt/CH2GjlBY.js rename to _nuxt/Z0nHrzi-.js index f3f3ca526..28108ee34 100644 --- a/_nuxt/CH2GjlBY.js +++ b/_nuxt/Z0nHrzi-.js @@ -1 +1 @@ -import{d as n,aV as o,a_ as s,b8 as i}from"./DV7eKLeG.js";import{u as c}from"./QA-ib-BQ.js";import"./Cp7Md9uy.js";const p=n({props:{query:{type:Object,required:!1,default:()=>({})}},async setup(e){const{fetchContributors:u}=c(),{data:a,refresh:t,pending:r}=await o(`github-contributors-${s(e.query)}`,()=>u(e.query));return{contributors:a,refresh:t,pending:r}},render({contributors:e,refresh:u,pending:a}){var r;const t=i();return(r=t==null?void 0:t.default)==null?void 0:r.call(t,{contributors:e,refresh:u,pending:a})}});export{p as default}; +import{d as n,aV as o,a_ as s,b8 as i}from"./5uFLRXWz.js";import{u as c}from"./B3cAN6Fg.js";import"./Cp7Md9uy.js";const p=n({props:{query:{type:Object,required:!1,default:()=>({})}},async setup(e){const{fetchContributors:u}=c(),{data:a,refresh:t,pending:r}=await o(`github-contributors-${s(e.query)}`,()=>u(e.query));return{contributors:a,refresh:t,pending:r}},render({contributors:e,refresh:u,pending:a}){var r;const t=i();return(r=t==null?void 0:t.default)==null?void 0:r.call(t,{contributors:e,refresh:u,pending:a})}});export{p as default}; diff --git a/_nuxt/_m0MazNi.js b/_nuxt/_m0MazNi.js new file mode 100644 index 000000000..79023843f --- /dev/null +++ b/_nuxt/_m0MazNi.js @@ -0,0 +1 @@ +import{_ as o}from"./TXOJiQqS.js";import"./CgMG10Xn.js";import"./5uFLRXWz.js";import"./BneCoJRQ.js";export{o as default}; diff --git a/_nuxt/builds/latest.json b/_nuxt/builds/latest.json index e6ca9aa59..e34528713 100644 --- a/_nuxt/builds/latest.json +++ b/_nuxt/builds/latest.json @@ -1 +1 @@ -{"id":"77fa5598-d83d-41fd-abcb-c5f894ff080c","timestamp":1725006406626} \ No newline at end of file +{"id":"d6dab9bf-2c05-4019-a341-b16d04c7f48d","timestamp":1725013688759} \ No newline at end of file diff --git a/_nuxt/builds/meta/77fa5598-d83d-41fd-abcb-c5f894ff080c.json b/_nuxt/builds/meta/77fa5598-d83d-41fd-abcb-c5f894ff080c.json deleted file mode 100644 index 657afd0f2..000000000 --- a/_nuxt/builds/meta/77fa5598-d83d-41fd-abcb-c5f894ff080c.json +++ /dev/null @@ -1 +0,0 @@ -{"id":"77fa5598-d83d-41fd-abcb-c5f894ff080c","timestamp":1725006406626,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":["/","/get-started","/authentication","/usage/services/serversupabaseclient","/usage/services/serversupabasesession","/demo","/usage/services/serversupabaseuser","/usage/composables/usesupabaseuser","/usage/composables/usesupabasesession","/roadmap","/usage/composables/usesupabaseclient","/usage/services/serversupabaseservicerole","/changelog"]} \ No newline at end of file diff --git a/_nuxt/builds/meta/d6dab9bf-2c05-4019-a341-b16d04c7f48d.json b/_nuxt/builds/meta/d6dab9bf-2c05-4019-a341-b16d04c7f48d.json new file mode 100644 index 000000000..ed4357484 --- /dev/null +++ b/_nuxt/builds/meta/d6dab9bf-2c05-4019-a341-b16d04c7f48d.json @@ -0,0 +1 @@ +{"id":"d6dab9bf-2c05-4019-a341-b16d04c7f48d","timestamp":1725013688759,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":["/","/authentication","/get-started","/usage/services/serversupabaseclient","/demo","/usage/services/serversupabaseuser","/usage/services/serversupabasesession","/usage/composables/usesupabasesession","/usage/composables/usesupabaseuser","/usage/services/serversupabaseservicerole","/usage/composables/usesupabaseclient","/roadmap","/changelog"]} \ No newline at end of file diff --git a/_nuxt/BOqfrSjw.js b/_nuxt/cy871Jy1.js similarity index 51% rename from _nuxt/BOqfrSjw.js rename to _nuxt/cy871Jy1.js index 39656f651..7cd9f15c1 100644 --- a/_nuxt/BOqfrSjw.js +++ b/_nuxt/cy871Jy1.js @@ -1 +1 @@ -import{d as e}from"./DV7eKLeG.js";const o=e({name:"OgImageCached",async setup(a,{attrs:t}){return()=>null}});export{o as default}; +import{d as e}from"./5uFLRXWz.js";const o=e({name:"OgImageCached",async setup(a,{attrs:t}){return()=>null}});export{o as default}; diff --git a/_nuxt/DomyCnYp.js b/_nuxt/dJxY0Heg.js similarity index 81% rename from _nuxt/DomyCnYp.js rename to _nuxt/dJxY0Heg.js index f9afbc8a0..c4e1b4e09 100644 --- a/_nuxt/DomyCnYp.js +++ b/_nuxt/dJxY0Heg.js @@ -1 +1 @@ -import{d as n,D as r,c as s,e as c,E as a}from"./DV7eKLeG.js";const p=["src"],d=n({__name:"VoltaBoard",props:{token:{type:String,required:!0}},setup(e){const t=e,o=r(()=>`https://volta.net/embed/${t.token}`);return(i,l)=>(s(),c("iframe",{style:{width:"100%","min-height":"calc(100vh / 1.5)"},src:a(o)},null,8,p))}});export{d as default}; +import{d as n,D as r,c as s,e as c,E as a}from"./5uFLRXWz.js";const p=["src"],d=n({__name:"VoltaBoard",props:{token:{type:String,required:!0}},setup(e){const t=e,o=r(()=>`https://volta.net/embed/${t.token}`);return(i,l)=>(s(),c("iframe",{style:{width:"100%","min-height":"calc(100vh / 1.5)"},src:a(o)},null,8,p))}});export{d as default}; diff --git a/_nuxt/I__dUy72.js b/_nuxt/feIJPois.js similarity index 92% rename from _nuxt/I__dUy72.js rename to _nuxt/feIJPois.js index a96162c1b..1bfa09858 100644 --- a/_nuxt/I__dUy72.js +++ b/_nuxt/feIJPois.js @@ -1 +1 @@ -import{aT as u,d as c,v as r,D as d,bs as l,bh as h,bt as m,c as g,ai as p,E as i,bb as f}from"./DV7eKLeG.js";function b(t){throw u({fatal:!0,statusCode:500,statusMessage:`${t} is provided by @nuxt/image. Check your console to install it or run 'npx nuxi@latest module add @nuxt/image'`})}const x={setup:()=>b("")},w=c({__name:"ProseImg",props:{src:{type:String,default:""},alt:{type:String,default:""},width:{type:[String,Number],default:void 0},height:{type:[String,Number],default:void 0}},setup(t){const n=r().public.mdc.useNuxtImage?x:"img",e=t,o=d(()=>{var a;if((a=e.src)!=null&&a.startsWith("/")&&!e.src.startsWith("//")){const s=l(h(r().app.baseURL));if(s!=="/"&&!e.src.startsWith(s))return m(s,e.src)}return e.src});return(a,s)=>(g(),p(f(i(n)),{src:i(o),alt:t.alt,width:t.width,height:t.height},null,8,["src","alt","width","height"]))}});export{w as default}; +import{aT as u,d as c,v as r,D as d,bs as l,bh as h,bt as m,c as g,ai as p,E as i,bb as f}from"./5uFLRXWz.js";function b(t){throw u({fatal:!0,statusCode:500,statusMessage:`${t} is provided by @nuxt/image. Check your console to install it or run 'npx nuxi@latest module add @nuxt/image'`})}const x={setup:()=>b("")},w=c({__name:"ProseImg",props:{src:{type:String,default:""},alt:{type:String,default:""},width:{type:[String,Number],default:void 0},height:{type:[String,Number],default:void 0}},setup(t){const n=r().public.mdc.useNuxtImage?x:"img",e=t,o=d(()=>{var a;if((a=e.src)!=null&&a.startsWith("/")&&!e.src.startsWith("//")){const s=l(h(r().app.baseURL));if(s!=="/"&&!e.src.startsWith(s))return m(s,e.src)}return e.src});return(a,s)=>(g(),p(f(i(n)),{src:i(o),alt:t.alt,width:t.width,height:t.height},null,8,["src","alt","width","height"]))}});export{w as default}; diff --git a/_nuxt/DoHii7hq.js b/_nuxt/g7-hK5Nc.js similarity index 64% rename from _nuxt/DoHii7hq.js rename to _nuxt/g7-hK5Nc.js index be6337dea..ba5a64136 100644 --- a/_nuxt/DoHii7hq.js +++ b/_nuxt/g7-hK5Nc.js @@ -1 +1 @@ -import{l as r,c as t,e as o,aj as s}from"./DV7eKLeG.js";const c={};function n(e,a){return t(),o("th",null,[s(e.$slots,"default")])}const f=r(c,[["render",n]]);export{f as default}; +import{l as r,c as t,e as o,aj as s}from"./5uFLRXWz.js";const c={};function n(e,a){return t(),o("th",null,[s(e.$slots,"default")])}const f=r(c,[["render",n]]);export{f as default}; diff --git a/_nuxt/BTIfoLIW.js b/_nuxt/gi99-bIP.js similarity index 88% rename from _nuxt/BTIfoLIW.js rename to _nuxt/gi99-bIP.js index 13186e68a..01f0ade77 100644 --- a/_nuxt/BTIfoLIW.js +++ b/_nuxt/gi99-bIP.js @@ -1 +1 @@ -import{d as p,v as f,D as i,c as t,e as s,E as u,aj as n}from"./DV7eKLeG.js";const l=["id"],d=["href"],_=p({__name:"ProseH5",props:{id:{}},setup(r){const c=r,{headings:o}=f().public.mdc,a=i(()=>{var e;return c.id&&(typeof(o==null?void 0:o.anchorLinks)=="boolean"&&(o==null?void 0:o.anchorLinks)===!0||typeof(o==null?void 0:o.anchorLinks)=="object"&&((e=o==null?void 0:o.anchorLinks)==null?void 0:e.h5))});return(e,m)=>(t(),s("h5",{id:e.id},[e.id&&u(a)?(t(),s("a",{key:0,href:`#${e.id}`},[n(e.$slots,"default")],8,d)):n(e.$slots,"default",{key:1})],8,l))}});export{_ as default}; +import{d as p,v as f,D as i,c as t,e as s,E as u,aj as n}from"./5uFLRXWz.js";const l=["id"],d=["href"],_=p({__name:"ProseH5",props:{id:{}},setup(r){const c=r,{headings:o}=f().public.mdc,a=i(()=>{var e;return c.id&&(typeof(o==null?void 0:o.anchorLinks)=="boolean"&&(o==null?void 0:o.anchorLinks)===!0||typeof(o==null?void 0:o.anchorLinks)=="object"&&((e=o==null?void 0:o.anchorLinks)==null?void 0:e.h5))});return(e,m)=>(t(),s("h5",{id:e.id},[e.id&&u(a)?(t(),s("a",{key:0,href:`#${e.id}`},[n(e.$slots,"default")],8,d)):n(e.$slots,"default",{key:1})],8,l))}});export{_ as default}; diff --git a/_nuxt/DoDOBHEG.js b/_nuxt/hmvgnaFq.js similarity index 64% rename from _nuxt/DoDOBHEG.js rename to _nuxt/hmvgnaFq.js index f2ff940f3..30fafb5fd 100644 --- a/_nuxt/DoDOBHEG.js +++ b/_nuxt/hmvgnaFq.js @@ -1 +1 @@ -import{l as r,c as t,e as o,aj as s}from"./DV7eKLeG.js";const c={};function n(e,a){return t(),o("td",null,[s(e.$slots,"default")])}const d=r(c,[["render",n]]);export{d as default}; +import{l as r,c as t,e as o,aj as s}from"./5uFLRXWz.js";const c={};function n(e,a){return t(),o("td",null,[s(e.$slots,"default")])}const d=r(c,[["render",n]]);export{d as default}; diff --git a/_nuxt/DB26YkHs.js b/_nuxt/jmg4EV2m.js similarity index 95% rename from _nuxt/DB26YkHs.js rename to _nuxt/jmg4EV2m.js index 5a23d92be..dc3df3893 100644 --- a/_nuxt/DB26YkHs.js +++ b/_nuxt/jmg4EV2m.js @@ -1 +1 @@ -import{d as m,ap as y,aq as u,c as s,e as i,f as n,n as r,E as e,t as d,g as l,aj as g,k as x,ak as k}from"./DV7eKLeG.js";const S=m({inheritAttrs:!1,__name:"Field",props:{name:{type:String,required:!0},description:{type:String,default:void 0},type:{type:String,default:void 0},required:{type:Boolean,default:!1},default:{type:String,default:void 0},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(t){const p={wrapper:"mt-5",container:"flex items-start gap-x-2.5 font-mono text-sm",name:"rounded-md font-semibold text-primary",required:"text-gray-500 dark:text-gray-400",type:"text-right",label:"flex flex-1 gap-x-2.5",description:"mt-3 mb-0 text-gray-600 dark:text-gray-300 text-sm space-y-3"},o=t,{ui:a,attrs:f}=y("content.field",u(o,"ui"),p,u(o,"class"),!0);return(c,v)=>(s(),i("div",k({class:e(a).wrapper},e(f)),[n("div",{class:r(e(a).container)},[n("div",{class:r(e(a).label)},[n("span",{class:r(e(a).name)},d(t.name),3),t.required?(s(),i("span",{key:0,class:r(e(a).required)},"required",2)):l("",!0)],2),t.type?(s(),i("div",{key:0,class:r(e(a).type)},d(t.type),3)):l("",!0)],2),c.$slots.default||t.description?(s(),i("div",{key:0,class:r(e(a).description)},[g(c.$slots,"default",{},()=>[x(d(t.description),1)])],2)):l("",!0)],16))}});export{S as default}; +import{d as m,ap as y,aq as u,c as s,e as i,f as n,n as r,E as e,t as d,g as l,aj as g,k as x,ak as k}from"./5uFLRXWz.js";const S=m({inheritAttrs:!1,__name:"Field",props:{name:{type:String,required:!0},description:{type:String,default:void 0},type:{type:String,default:void 0},required:{type:Boolean,default:!1},default:{type:String,default:void 0},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:()=>({})}},setup(t){const p={wrapper:"mt-5",container:"flex items-start gap-x-2.5 font-mono text-sm",name:"rounded-md font-semibold text-primary",required:"text-gray-500 dark:text-gray-400",type:"text-right",label:"flex flex-1 gap-x-2.5",description:"mt-3 mb-0 text-gray-600 dark:text-gray-300 text-sm space-y-3"},o=t,{ui:a,attrs:f}=y("content.field",u(o,"ui"),p,u(o,"class"),!0);return(c,v)=>(s(),i("div",k({class:e(a).wrapper},e(f)),[n("div",{class:r(e(a).container)},[n("div",{class:r(e(a).label)},[n("span",{class:r(e(a).name)},d(t.name),3),t.required?(s(),i("span",{key:0,class:r(e(a).required)},"required",2)):l("",!0)],2),t.type?(s(),i("div",{key:0,class:r(e(a).type)},d(t.type),3)):l("",!0)],2),c.$slots.default||t.description?(s(),i("div",{key:0,class:r(e(a).description)},[g(c.$slots,"default",{},()=>[x(d(t.description),1)])],2)):l("",!0)],16))}});export{S as default}; diff --git a/_nuxt/mGifWHk2.js b/_nuxt/mGifWHk2.js new file mode 100644 index 000000000..dc5103f6d --- /dev/null +++ b/_nuxt/mGifWHk2.js @@ -0,0 +1 @@ +import{_ as o}from"./DVHUXCHF.js";import{d as t,V as n}from"./5uFLRXWz.js";import"./BneCoJRQ.js";const s=t({props:{use:{type:Function,default:void 0},unwrap:{type:[Boolean,String],default:!1}},render(e){return n(o,e)}});export{s as default}; diff --git a/_nuxt/DstQJC2Y.js b/_nuxt/nO3zWEPC.js similarity index 97% rename from _nuxt/DstQJC2Y.js rename to _nuxt/nO3zWEPC.js index 8fc3ffd8a..ae3f0e4ea 100644 --- a/_nuxt/DstQJC2Y.js +++ b/_nuxt/nO3zWEPC.js @@ -1 +1 @@ -import{d as v,ap as y,D as i,E as c,c as a,ai as r,g as m,ab as u}from"./DV7eKLeG.js";const j=v({__name:"ProseCodeIcon",props:{icon:{type:String,default:void 0},filename:{type:String,default:void 0}},setup(t){const e=t,l={"package.json":"vscode-icons:file-type-node","tsconfig.json":"vscode-icons:file-type-tsconfig",".npmrc":"vscode-icons:file-type-npm",".editorconfig":"vscode-icons:file-type-editorconfig",".eslintrc":"vscode-icons:file-type-eslint",".eslintrc.cjs":"vscode-icons:file-type-eslint",".eslintignore":"vscode-icons:file-type-eslint","eslint.config.js":"vscode-icons:file-type-eslint","eslint.config.mjs":"vscode-icons:file-type-eslint","eslint.config.cjs":"vscode-icons:file-type-eslint",".gitignore":"vscode-icons:file-type-git","yarn.lock":"vscode-icons:file-type-yarn",".env":"vscode-icons:file-type-dotenv",".env.example":"vscode-icons:file-type-dotenv",".vscode/settings.json":"vscode-icons:file-type-vscode",nuxt:"vscode-icons:file-type-nuxt",".nuxtrc":"vscode-icons:file-type-nuxt",".nuxtignore":"vscode-icons:file-type-nuxt","nuxt.config.js":"vscode-icons:file-type-nuxt","nuxt.config.ts":"vscode-icons:file-type-nuxt","nuxt.schema.ts":"vscode-icons:file-type-nuxt","tailwind.config.js":"vscode-icons:file-type-tailwind","tailwind.config.ts":"vscode-icons:file-type-tailwind",vue:"vscode-icons:file-type-vue",ts:"vscode-icons:file-type-typescript",tsx:"vscode-icons:file-type-typescript",mjs:"vscode-icons:file-type-js",cjs:"vscode-icons:file-type-js",js:"vscode-icons:file-type-js",jsx:"vscode-icons:file-type-js",md:"vscode-icons:file-type-markdown",py:"vscode-icons:file-type-python",ico:"vscode-icons:file-type-favicon",npm:"vscode-icons:file-type-npm",pnpm:"vscode-icons:file-type-pnpm",npx:"vscode-icons:file-type-npm",yarn:"vscode-icons:file-type-yarn",bun:"vscode-icons:file-type-bun",yml:"vscode-icons:file-type-yaml",terminal:"i-heroicons-command-line",csv:"vscode-icons:file-type-text"},{ui:o}=y("content.prose.code.icon",void 0,l,void 0,!0),n=i(()=>{var s;return(((s=e.filename)==null?void 0:s.split(".").pop())||"").toLowerCase()}),p=i(()=>e.icon||o.value[n.value]||e.filename.includes(".")),d=i(()=>e.icon??(e.filename&&(o.value[e.filename.split("/").pop()]??o.value[n.value]??`vscode-icons:file-type-${n.value}`)));return(s,g)=>{const f=u;return c(p)?(a(),r(f,{key:0,name:c(d).split(" ").pop(),dynamic:""},null,8,["name"])):m("",!0)}}});export{j as _}; +import{d as v,ap as y,D as i,E as c,c as a,ai as r,g as m,ab as u}from"./5uFLRXWz.js";const j=v({__name:"ProseCodeIcon",props:{icon:{type:String,default:void 0},filename:{type:String,default:void 0}},setup(t){const e=t,l={"package.json":"vscode-icons:file-type-node","tsconfig.json":"vscode-icons:file-type-tsconfig",".npmrc":"vscode-icons:file-type-npm",".editorconfig":"vscode-icons:file-type-editorconfig",".eslintrc":"vscode-icons:file-type-eslint",".eslintrc.cjs":"vscode-icons:file-type-eslint",".eslintignore":"vscode-icons:file-type-eslint","eslint.config.js":"vscode-icons:file-type-eslint","eslint.config.mjs":"vscode-icons:file-type-eslint","eslint.config.cjs":"vscode-icons:file-type-eslint",".gitignore":"vscode-icons:file-type-git","yarn.lock":"vscode-icons:file-type-yarn",".env":"vscode-icons:file-type-dotenv",".env.example":"vscode-icons:file-type-dotenv",".vscode/settings.json":"vscode-icons:file-type-vscode",nuxt:"vscode-icons:file-type-nuxt",".nuxtrc":"vscode-icons:file-type-nuxt",".nuxtignore":"vscode-icons:file-type-nuxt","nuxt.config.js":"vscode-icons:file-type-nuxt","nuxt.config.ts":"vscode-icons:file-type-nuxt","nuxt.schema.ts":"vscode-icons:file-type-nuxt","tailwind.config.js":"vscode-icons:file-type-tailwind","tailwind.config.ts":"vscode-icons:file-type-tailwind",vue:"vscode-icons:file-type-vue",ts:"vscode-icons:file-type-typescript",tsx:"vscode-icons:file-type-typescript",mjs:"vscode-icons:file-type-js",cjs:"vscode-icons:file-type-js",js:"vscode-icons:file-type-js",jsx:"vscode-icons:file-type-js",md:"vscode-icons:file-type-markdown",py:"vscode-icons:file-type-python",ico:"vscode-icons:file-type-favicon",npm:"vscode-icons:file-type-npm",pnpm:"vscode-icons:file-type-pnpm",npx:"vscode-icons:file-type-npm",yarn:"vscode-icons:file-type-yarn",bun:"vscode-icons:file-type-bun",yml:"vscode-icons:file-type-yaml",terminal:"i-heroicons-command-line",csv:"vscode-icons:file-type-text"},{ui:o}=y("content.prose.code.icon",void 0,l,void 0,!0),n=i(()=>{var s;return(((s=e.filename)==null?void 0:s.split(".").pop())||"").toLowerCase()}),p=i(()=>e.icon||o.value[n.value]||e.filename.includes(".")),d=i(()=>e.icon??(e.filename&&(o.value[e.filename.split("/").pop()]??o.value[n.value]??`vscode-icons:file-type-${n.value}`)));return(s,g)=>{const f=u;return c(p)?(a(),r(f,{key:0,name:c(d).split(" ").pop(),dynamic:""},null,8,["name"])):m("",!0)}}});export{j as _}; diff --git a/_nuxt/CS8RItpO.js b/_nuxt/rpNVGf9b.js similarity index 55% rename from _nuxt/CS8RItpO.js rename to _nuxt/rpNVGf9b.js index 8d2d486a0..58e1e3f2b 100644 --- a/_nuxt/CS8RItpO.js +++ b/_nuxt/rpNVGf9b.js @@ -1 +1 @@ -import{l as e,c as r,e as c}from"./DV7eKLeG.js";const o={};function t(n,s){return r(),c("hr")}const _=e(o,[["render",t]]);export{_ as default}; +import{l as e,c as r,e as c}from"./5uFLRXWz.js";const o={};function t(n,s){return r(),c("hr")}const _=e(o,[["render",t]]);export{_ as default}; diff --git a/_nuxt/DQTFZDG-.js b/_nuxt/xfDAbKM2.js similarity index 58% rename from _nuxt/DQTFZDG-.js rename to _nuxt/xfDAbKM2.js index 941f4ccc9..1861601ac 100644 --- a/_nuxt/DQTFZDG-.js +++ b/_nuxt/xfDAbKM2.js @@ -1 +1 @@ -import{d as n,V as e}from"./DV7eKLeG.js";const t=n({name:"DocumentDrivenNotFound",render(){return e("div","Document not found")}});export{t as default}; +import{d as n,V as e}from"./5uFLRXWz.js";const t=n({name:"DocumentDrivenNotFound",render(){return e("div","Document not found")}});export{t as default}; diff --git a/_payload.json b/_payload.json index 20041b964..e4a8cd1f3 100644 --- a/_payload.json +++ b/_payload.json @@ -1 +1 @@ -[{"data":1,"prerenderedAt":374},["ShallowReactive",2],{"navigation":3,"index":58,"1CZYD6bgNK":110,"q3uGftTUSs":135},[4,8,12,46,50,54],{"title":5,"_path":6,"icon":7},"Get Started","/get-started","i-heroicons-rocket-launch",{"title":9,"_path":10,"icon":11},"Authentication","/authentication","i-heroicons-lock-closed",{"title":13,"_path":14,"children":15,"icon":45},"Usage","/usage",[16,29],{"title":17,"_path":18,"children":19},"Vue composables","/usage/composables",[20,23,26],{"title":21,"_path":22},"useSupabaseClient","/usage/composables/usesupabaseclient",{"title":24,"_path":25},"useSupabaseSession","/usage/composables/usesupabasesession",{"title":27,"_path":28},"useSupabaseUser","/usage/composables/usesupabaseuser",{"title":30,"_path":31,"children":32},"Server services","/usage/services",[33,36,39,42],{"title":34,"_path":35},"serverSupabaseClient","/usage/services/serversupabaseclient",{"title":37,"_path":38},"serverSupabaseServiceRole","/usage/services/serversupabaseservicerole",{"title":40,"_path":41},"serverSupabaseSession","/usage/services/serversupabasesession",{"title":43,"_path":44},"serverSupabaseUser","/usage/services/serversupabaseuser","heroicons:book-open",{"title":47,"_path":48,"icon":49},"Demo","/demo","i-heroicons-computer-desktop-20-solid",{"title":51,"_path":52,"icon":53},"Changelog","/changelog","i-heroicons-bookmark",{"title":55,"_path":56,"icon":57},"Roadmap","/roadmap","i-heroicons-map",{"_path":59,"_dir":60,"_draft":61,"_partial":61,"_locale":60,"title":62,"description":63,"navigation":61,"hero":64,"features":78,"_id":104,"_type":105,"_source":106,"_file":107,"_stem":108,"_extension":109},"/","",false,"Nuxt Supabase - Home","A supa simple wrapper around supabase-js to enable usage and integration within Nuxt.",{"title":65,"description":63,"orientation":66,"links":67,"code":77},"Nuxt [Supabase]{.text-primary}","horizontal",[68,71],{"label":69,"icon":7,"to":6,"size":70},"Get started","lg",{"label":72,"icon":73,"color":74,"to":75,"target":76,"size":70},"Star on github","i-heroicons-star","white","https://github.com/nuxt-modules/supabase","_blank","```ts\n const supabase = useSupabaseClient()\n const email = ref('')\n\n const signInWithOtp = async () => {\n await supabase.auth.signInWithOtp({\n email: email.value,\n })\n }\n```\n",{"title":79,"items":80},"Shipped with many features",[81,85,89,93,97,100],{"title":82,"icon":83,"to":84,"target":76},"Nuxt 3 ready","i-simple-icons-nuxtdotjs","https://nuxt.com",{"title":86,"icon":87,"to":88,"target":76},"Vue 3 composables","i-simple-icons-vuedotjs","https://vuejs.org/guide/reusability/composables.html",{"title":90,"icon":91,"to":92,"target":76},"Supabase-js V2","i-simple-icons-supabase","https://supabase.com",{"title":94,"icon":95,"to":96},"Usage in API server routes","i-heroicons-server","usage/services/serversupabaseclient",{"title":98,"icon":99,"to":10},"Authentication support","i-heroicons-key",{"title":101,"icon":102,"to":103,"target":76},"TypeScript support","i-simple-icons-typescript","https://www.typescriptlang.org","content:index.yml","yaml","content","index.yml","index","yml",{"data":111,"body":113,"excerpt":-1,"toc":132},{"title":60,"description":112},"Nuxt Supabase",{"type":114,"children":115},"root",[116],{"type":117,"tag":118,"props":119,"children":120},"element","p",{},[121,124],{"type":122,"value":123},"text","Nuxt ",{"type":117,"tag":125,"props":126,"children":129},"span",{"className":127},[128],"text-primary",[130],{"type":122,"value":131},"Supabase",{"title":60,"searchDepth":133,"depth":133,"links":134},2,[],{"data":136,"body":137,"excerpt":-1,"toc":372},{"title":60,"description":60},{"type":114,"children":138},[139,366],{"type":117,"tag":140,"props":141,"children":145},"pre",{"className":142,"code":143,"language":144,"meta":60,"style":60},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight"," const supabase = useSupabaseClient()\n const email = ref('')\n\n const signInWithOtp = async () => {\n await supabase.auth.signInWithOtp({\n email: email.value,\n })\n }\n","ts",[146],{"type":117,"tag":147,"props":148,"children":149},"code",{"__ignoreMap":60},[150,184,220,230,267,311,344,357],{"type":117,"tag":125,"props":151,"children":154},{"class":152,"line":153},"line",1,[155,161,167,173,179],{"type":117,"tag":125,"props":156,"children":158},{"style":157},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[159],{"type":122,"value":160}," const",{"type":117,"tag":125,"props":162,"children":164},{"style":163},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[165],{"type":122,"value":166}," supabase ",{"type":117,"tag":125,"props":168,"children":170},{"style":169},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[171],{"type":122,"value":172},"=",{"type":117,"tag":125,"props":174,"children":176},{"style":175},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[177],{"type":122,"value":178}," useSupabaseClient",{"type":117,"tag":125,"props":180,"children":181},{"style":163},[182],{"type":122,"value":183},"()\n",{"type":117,"tag":125,"props":185,"children":186},{"class":152,"line":133},[187,191,196,200,205,210,215],{"type":117,"tag":125,"props":188,"children":189},{"style":157},[190],{"type":122,"value":160},{"type":117,"tag":125,"props":192,"children":193},{"style":163},[194],{"type":122,"value":195}," email ",{"type":117,"tag":125,"props":197,"children":198},{"style":169},[199],{"type":122,"value":172},{"type":117,"tag":125,"props":201,"children":202},{"style":175},[203],{"type":122,"value":204}," ref",{"type":117,"tag":125,"props":206,"children":207},{"style":163},[208],{"type":122,"value":209},"(",{"type":117,"tag":125,"props":211,"children":212},{"style":169},[213],{"type":122,"value":214},"''",{"type":117,"tag":125,"props":216,"children":217},{"style":163},[218],{"type":122,"value":219},")\n",{"type":117,"tag":125,"props":221,"children":223},{"class":152,"line":222},3,[224],{"type":117,"tag":125,"props":225,"children":227},{"emptyLinePlaceholder":226},true,[228],{"type":122,"value":229},"\n",{"type":117,"tag":125,"props":231,"children":233},{"class":152,"line":232},4,[234,238,243,247,252,257,262],{"type":117,"tag":125,"props":235,"children":236},{"style":157},[237],{"type":122,"value":160},{"type":117,"tag":125,"props":239,"children":240},{"style":163},[241],{"type":122,"value":242}," signInWithOtp ",{"type":117,"tag":125,"props":244,"children":245},{"style":169},[246],{"type":122,"value":172},{"type":117,"tag":125,"props":248,"children":249},{"style":157},[250],{"type":122,"value":251}," async",{"type":117,"tag":125,"props":253,"children":254},{"style":169},[255],{"type":122,"value":256}," ()",{"type":117,"tag":125,"props":258,"children":259},{"style":157},[260],{"type":122,"value":261}," =>",{"type":117,"tag":125,"props":263,"children":264},{"style":169},[265],{"type":122,"value":266}," {\n",{"type":117,"tag":125,"props":268,"children":270},{"class":152,"line":269},5,[271,277,282,287,292,296,301,306],{"type":117,"tag":125,"props":272,"children":274},{"style":273},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[275],{"type":122,"value":276}," await",{"type":117,"tag":125,"props":278,"children":279},{"style":163},[280],{"type":122,"value":281}," supabase",{"type":117,"tag":125,"props":283,"children":284},{"style":169},[285],{"type":122,"value":286},".",{"type":117,"tag":125,"props":288,"children":289},{"style":163},[290],{"type":122,"value":291},"auth",{"type":117,"tag":125,"props":293,"children":294},{"style":169},[295],{"type":122,"value":286},{"type":117,"tag":125,"props":297,"children":298},{"style":175},[299],{"type":122,"value":300},"signInWithOtp",{"type":117,"tag":125,"props":302,"children":304},{"style":303},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[305],{"type":122,"value":209},{"type":117,"tag":125,"props":307,"children":308},{"style":169},[309],{"type":122,"value":310},"{\n",{"type":117,"tag":125,"props":312,"children":314},{"class":152,"line":313},6,[315,320,325,330,334,339],{"type":117,"tag":125,"props":316,"children":317},{"style":303},[318],{"type":122,"value":319}," email",{"type":117,"tag":125,"props":321,"children":322},{"style":169},[323],{"type":122,"value":324},":",{"type":117,"tag":125,"props":326,"children":327},{"style":163},[328],{"type":122,"value":329}," email",{"type":117,"tag":125,"props":331,"children":332},{"style":169},[333],{"type":122,"value":286},{"type":117,"tag":125,"props":335,"children":336},{"style":163},[337],{"type":122,"value":338},"value",{"type":117,"tag":125,"props":340,"children":341},{"style":169},[342],{"type":122,"value":343},",\n",{"type":117,"tag":125,"props":345,"children":347},{"class":152,"line":346},7,[348,353],{"type":117,"tag":125,"props":349,"children":350},{"style":169},[351],{"type":122,"value":352}," }",{"type":117,"tag":125,"props":354,"children":355},{"style":303},[356],{"type":122,"value":219},{"type":117,"tag":125,"props":358,"children":360},{"class":152,"line":359},8,[361],{"type":117,"tag":125,"props":362,"children":363},{"style":169},[364],{"type":122,"value":365}," }\n",{"type":117,"tag":367,"props":368,"children":369},"style",{},[370],{"type":122,"value":371},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":60,"searchDepth":133,"depth":133,"links":373},[],1725006464368] \ No newline at end of file +[{"data":1,"prerenderedAt":374},["ShallowReactive",2],{"navigation":3,"index":58,"1CZYD6bgNK":110,"q3uGftTUSs":135},[4,8,12,46,50,54],{"title":5,"_path":6,"icon":7},"Get Started","/get-started","i-heroicons-rocket-launch",{"title":9,"_path":10,"icon":11},"Authentication","/authentication","i-heroicons-lock-closed",{"title":13,"_path":14,"children":15,"icon":45},"Usage","/usage",[16,29],{"title":17,"_path":18,"children":19},"Vue composables","/usage/composables",[20,23,26],{"title":21,"_path":22},"useSupabaseClient","/usage/composables/usesupabaseclient",{"title":24,"_path":25},"useSupabaseSession","/usage/composables/usesupabasesession",{"title":27,"_path":28},"useSupabaseUser","/usage/composables/usesupabaseuser",{"title":30,"_path":31,"children":32},"Server services","/usage/services",[33,36,39,42],{"title":34,"_path":35},"serverSupabaseClient","/usage/services/serversupabaseclient",{"title":37,"_path":38},"serverSupabaseServiceRole","/usage/services/serversupabaseservicerole",{"title":40,"_path":41},"serverSupabaseSession","/usage/services/serversupabasesession",{"title":43,"_path":44},"serverSupabaseUser","/usage/services/serversupabaseuser","heroicons:book-open",{"title":47,"_path":48,"icon":49},"Demo","/demo","i-heroicons-computer-desktop-20-solid",{"title":51,"_path":52,"icon":53},"Changelog","/changelog","i-heroicons-bookmark",{"title":55,"_path":56,"icon":57},"Roadmap","/roadmap","i-heroicons-map",{"_path":59,"_dir":60,"_draft":61,"_partial":61,"_locale":60,"title":62,"description":63,"navigation":61,"hero":64,"features":78,"_id":104,"_type":105,"_source":106,"_file":107,"_stem":108,"_extension":109},"/","",false,"Nuxt Supabase - Home","A supa simple wrapper around supabase-js to enable usage and integration within Nuxt.",{"title":65,"description":63,"orientation":66,"links":67,"code":77},"Nuxt [Supabase]{.text-primary}","horizontal",[68,71],{"label":69,"icon":7,"to":6,"size":70},"Get started","lg",{"label":72,"icon":73,"color":74,"to":75,"target":76,"size":70},"Star on github","i-heroicons-star","white","https://github.com/nuxt-modules/supabase","_blank","```ts\n const supabase = useSupabaseClient()\n const email = ref('')\n\n const signInWithOtp = async () => {\n await supabase.auth.signInWithOtp({\n email: email.value,\n })\n }\n```\n",{"title":79,"items":80},"Shipped with many features",[81,85,89,93,97,100],{"title":82,"icon":83,"to":84,"target":76},"Nuxt 3 ready","i-simple-icons-nuxtdotjs","https://nuxt.com",{"title":86,"icon":87,"to":88,"target":76},"Vue 3 composables","i-simple-icons-vuedotjs","https://vuejs.org/guide/reusability/composables.html",{"title":90,"icon":91,"to":92,"target":76},"Supabase-js V2","i-simple-icons-supabase","https://supabase.com",{"title":94,"icon":95,"to":96},"Usage in API server routes","i-heroicons-server","usage/services/serversupabaseclient",{"title":98,"icon":99,"to":10},"Authentication support","i-heroicons-key",{"title":101,"icon":102,"to":103,"target":76},"TypeScript support","i-simple-icons-typescript","https://www.typescriptlang.org","content:index.yml","yaml","content","index.yml","index","yml",{"data":111,"body":113,"excerpt":-1,"toc":132},{"title":60,"description":112},"Nuxt Supabase",{"type":114,"children":115},"root",[116],{"type":117,"tag":118,"props":119,"children":120},"element","p",{},[121,124],{"type":122,"value":123},"text","Nuxt ",{"type":117,"tag":125,"props":126,"children":129},"span",{"className":127},[128],"text-primary",[130],{"type":122,"value":131},"Supabase",{"title":60,"searchDepth":133,"depth":133,"links":134},2,[],{"data":136,"body":137,"excerpt":-1,"toc":372},{"title":60,"description":60},{"type":114,"children":138},[139,366],{"type":117,"tag":140,"props":141,"children":145},"pre",{"className":142,"code":143,"language":144,"meta":60,"style":60},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight"," const supabase = useSupabaseClient()\n const email = ref('')\n\n const signInWithOtp = async () => {\n await supabase.auth.signInWithOtp({\n email: email.value,\n })\n }\n","ts",[146],{"type":117,"tag":147,"props":148,"children":149},"code",{"__ignoreMap":60},[150,184,220,230,267,311,344,357],{"type":117,"tag":125,"props":151,"children":154},{"class":152,"line":153},"line",1,[155,161,167,173,179],{"type":117,"tag":125,"props":156,"children":158},{"style":157},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[159],{"type":122,"value":160}," const",{"type":117,"tag":125,"props":162,"children":164},{"style":163},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[165],{"type":122,"value":166}," supabase ",{"type":117,"tag":125,"props":168,"children":170},{"style":169},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[171],{"type":122,"value":172},"=",{"type":117,"tag":125,"props":174,"children":176},{"style":175},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[177],{"type":122,"value":178}," useSupabaseClient",{"type":117,"tag":125,"props":180,"children":181},{"style":163},[182],{"type":122,"value":183},"()\n",{"type":117,"tag":125,"props":185,"children":186},{"class":152,"line":133},[187,191,196,200,205,210,215],{"type":117,"tag":125,"props":188,"children":189},{"style":157},[190],{"type":122,"value":160},{"type":117,"tag":125,"props":192,"children":193},{"style":163},[194],{"type":122,"value":195}," email ",{"type":117,"tag":125,"props":197,"children":198},{"style":169},[199],{"type":122,"value":172},{"type":117,"tag":125,"props":201,"children":202},{"style":175},[203],{"type":122,"value":204}," ref",{"type":117,"tag":125,"props":206,"children":207},{"style":163},[208],{"type":122,"value":209},"(",{"type":117,"tag":125,"props":211,"children":212},{"style":169},[213],{"type":122,"value":214},"''",{"type":117,"tag":125,"props":216,"children":217},{"style":163},[218],{"type":122,"value":219},")\n",{"type":117,"tag":125,"props":221,"children":223},{"class":152,"line":222},3,[224],{"type":117,"tag":125,"props":225,"children":227},{"emptyLinePlaceholder":226},true,[228],{"type":122,"value":229},"\n",{"type":117,"tag":125,"props":231,"children":233},{"class":152,"line":232},4,[234,238,243,247,252,257,262],{"type":117,"tag":125,"props":235,"children":236},{"style":157},[237],{"type":122,"value":160},{"type":117,"tag":125,"props":239,"children":240},{"style":163},[241],{"type":122,"value":242}," signInWithOtp ",{"type":117,"tag":125,"props":244,"children":245},{"style":169},[246],{"type":122,"value":172},{"type":117,"tag":125,"props":248,"children":249},{"style":157},[250],{"type":122,"value":251}," async",{"type":117,"tag":125,"props":253,"children":254},{"style":169},[255],{"type":122,"value":256}," ()",{"type":117,"tag":125,"props":258,"children":259},{"style":157},[260],{"type":122,"value":261}," =>",{"type":117,"tag":125,"props":263,"children":264},{"style":169},[265],{"type":122,"value":266}," {\n",{"type":117,"tag":125,"props":268,"children":270},{"class":152,"line":269},5,[271,277,282,287,292,296,301,306],{"type":117,"tag":125,"props":272,"children":274},{"style":273},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[275],{"type":122,"value":276}," await",{"type":117,"tag":125,"props":278,"children":279},{"style":163},[280],{"type":122,"value":281}," supabase",{"type":117,"tag":125,"props":283,"children":284},{"style":169},[285],{"type":122,"value":286},".",{"type":117,"tag":125,"props":288,"children":289},{"style":163},[290],{"type":122,"value":291},"auth",{"type":117,"tag":125,"props":293,"children":294},{"style":169},[295],{"type":122,"value":286},{"type":117,"tag":125,"props":297,"children":298},{"style":175},[299],{"type":122,"value":300},"signInWithOtp",{"type":117,"tag":125,"props":302,"children":304},{"style":303},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[305],{"type":122,"value":209},{"type":117,"tag":125,"props":307,"children":308},{"style":169},[309],{"type":122,"value":310},"{\n",{"type":117,"tag":125,"props":312,"children":314},{"class":152,"line":313},6,[315,320,325,330,334,339],{"type":117,"tag":125,"props":316,"children":317},{"style":303},[318],{"type":122,"value":319}," email",{"type":117,"tag":125,"props":321,"children":322},{"style":169},[323],{"type":122,"value":324},":",{"type":117,"tag":125,"props":326,"children":327},{"style":163},[328],{"type":122,"value":329}," email",{"type":117,"tag":125,"props":331,"children":332},{"style":169},[333],{"type":122,"value":286},{"type":117,"tag":125,"props":335,"children":336},{"style":163},[337],{"type":122,"value":338},"value",{"type":117,"tag":125,"props":340,"children":341},{"style":169},[342],{"type":122,"value":343},",\n",{"type":117,"tag":125,"props":345,"children":347},{"class":152,"line":346},7,[348,353],{"type":117,"tag":125,"props":349,"children":350},{"style":169},[351],{"type":122,"value":352}," }",{"type":117,"tag":125,"props":354,"children":355},{"style":303},[356],{"type":122,"value":219},{"type":117,"tag":125,"props":358,"children":360},{"class":152,"line":359},8,[361],{"type":117,"tag":125,"props":362,"children":363},{"style":169},[364],{"type":122,"value":365}," }\n",{"type":117,"tag":367,"props":368,"children":369},"style",{},[370],{"type":122,"value":371},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":60,"searchDepth":133,"depth":133,"links":373},[],1725013741117] \ No newline at end of file diff --git a/api/_content/cache.1725006402212.json b/api/_content/cache.1725013684376.json similarity index 99% rename from api/_content/cache.1725006402212.json rename to api/_content/cache.1725013684376.json index b2f3bd072..69a176d55 100644 --- a/api/_content/cache.1725006402212.json +++ b/api/_content/cache.1725013684376.json @@ -1 +1 @@ -{"generatedAt":1725006464314,"generateTime":4731,"contents":[{"_path":"/get-started","_dir":"","_draft":false,"_partial":false,"_locale":"","title":"Get Started","description":"@nuxtjs/supabase is a Nuxt module for first class integration with Supabase.","icon":"i-heroicons-rocket-launch","body":{"type":"root","children":[{"type":"element","tag":"p","props":{},"children":[{"type":"element","tag":"a","props":{"href":"https://github.com/nuxt-modules/supabase","rel":["nofollow"]},"children":[{"type":"text","value":"@nuxtjs/supabase"}]},{"type":"text","value":" is a Nuxt module for first class integration with Supabase."}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Checkout the "},{"type":"element","tag":"a","props":{"href":"https://v3.nuxtjs.org","rel":["nofollow"]},"children":[{"type":"text","value":"Nuxt 3"}]},{"type":"text","value":" documentation and "},{"type":"element","tag":"a","props":{"href":"https://supabase.com","rel":["nofollow"]},"children":[{"type":"text","value":"Supabase"}]},{"type":"text","value":" to learn more."}]},{"type":"element","tag":"callout","props":{"icon":"i-heroicons-exclamation-triangle-20-solid","color":"amber"},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"For integrating Supabase with Nuxt 2, checkout "},{"type":"element","tag":"a","props":{"href":"https://github.com/supabase-community/nuxt-supabase","rel":["nofollow"]},"children":[{"type":"text","value":"supabase-community/nuxt-supabase"}]},{"type":"text","value":"."}]}]},{"type":"element","tag":"h2","props":{"id":"installation"},"children":[{"type":"text","value":"Installation"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Add "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"@nuxtjs/supabase"}]},{"type":"text","value":" dev dependency to your project:"}]},{"type":"element","tag":"pre","props":{"className":"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"npx nuxi@latest module add supabase\n","language":"bash","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":"npx"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" nuxi@latest"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" module"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" add"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" supabase\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Add "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"@nuxtjs/supabase"}]},{"type":"text","value":" to the "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"modules"}]},{"type":"text","value":" section of "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"nuxt.config.ts"}]},{"type":"text","value":":"}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"export default defineNuxtConfig({\n modules: ['@nuxtjs/supabase'],\n})\n","filename":"nuxt.config.ts","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"export"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" default"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" defineNuxtConfig"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"{\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" modules"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" ["}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"@nuxtjs/supabase"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"]"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Add "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"SUPABASE_URL"}]},{"type":"text","value":" and "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"SUPABASE_KEY"}]},{"type":"text","value":" to the "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":".env"}]},{"type":"text","value":":"}]},{"type":"element","tag":"pre","props":{"className":"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"SUPABASE_URL=\"https://example.supabase.co\"\nSUPABASE_KEY=\"\"\n","filename":"env","language":"bash","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"SUPABASE_URL"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"https://example.supabase.co"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"SUPABASE_KEY"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\"\n"}]}]}]}]},{"type":"element","tag":"callout","props":{"icon":"i-heroicons-light-bulb"},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Alternatively, you can prefix the env variables with "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"NUXT_PUBLIC_"}]},{"type":"text","value":" in order to use runtimeConfig."}]}]},{"type":"element","tag":"h2","props":{"id":"options"},"children":[{"type":"text","value":"Options"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"You can configure the supabase module by using the "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"supabase"}]},{"type":"text","value":" key in "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"nuxt.config"}]},{"type":"text","value":":"}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"export default defineNuxtConfig({\n // ...\n supabase: {\n // Options\n }\n}\n","filename":"nuxt.config.ts","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"export"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" default"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" defineNuxtConfig"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"{\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" // ...\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" supabase"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" // Options\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":6},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}\n"}]}]}]}]},{"type":"element","tag":"h3","props":{"id":"url"},"children":[{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"url"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Default: "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"process.env.SUPABASE_URL"}]},{"type":"text","value":" (ex: "},{"type":"element","tag":"a","props":{"href":"https://example.supabase.co","rel":["nofollow"]},"children":[{"type":"text","value":"https://example.supabase.co"}]},{"type":"text","value":")"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"The unique Supabase URL which is supplied when you create a new project in your project dashboard."}]},{"type":"element","tag":"h3","props":{"id":"key"},"children":[{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"key"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Default: "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"process.env.SUPABASE_KEY"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Supabase 'anon key', used to bypass the Supabase API gateway and interact with your Supabase database making use of user JWT to apply RLS Policies."}]},{"type":"element","tag":"h3","props":{"id":"servicekey"},"children":[{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"serviceKey"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Default: "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"process.env.SUPABASE_SERVICE_KEY"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Supabase 'service role key', has super admin rights and can bypass your Row Level Security."}]},{"type":"element","tag":"h3","props":{"id":"redirect"},"children":[{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"redirect"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Default: "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"true"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Redirect automatically to the configured login page if a non authenticated user is trying to access a guarded. You can disable all redirects by setting this option to false."}]},{"type":"element","tag":"h3","props":{"id":"redirectoptions"},"children":[{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"redirectOptions"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Default:"}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":" redirectOptions: {\n login: '/login',\n callback: '/confirm',\n include: undefined,\n exclude: [],\n cookieRedirect: false,\n }\n","filename":"nuxt.config.ts","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" redirectOptions"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" login"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"/login"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" callback"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"/confirm"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" include"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" undefined,\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" exclude"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" []"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":6},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" cookieRedirect"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC"},"children":[{"type":"text","value":" false"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":7},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }\n"}]}]}]}]},{"type":"element","tag":"ul","props":{},"children":[{"type":"element","tag":"li","props":{},"children":[{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"login"}]},{"type":"text","value":": User will be redirected to this path if not authenticated or after logout."}]},{"type":"element","tag":"li","props":{},"children":[{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"callback"}]},{"type":"text","value":": This is the path the user will be redirect to after supabase login redirection. Should match configured "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"redirectTo"}]},{"type":"text","value":" option of your "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/reference/javascript/auth-signinwithoauth","rel":["nofollow"]},"children":[{"type":"text","value":"signIn method"}]},{"type":"text","value":". Should also be configured in your Supabase dashboard under "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"Authentication -> URL Configuration -> Redirect URLs"}]},{"type":"text","value":"."}]},{"type":"element","tag":"li","props":{},"children":[{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"include"}]},{"type":"text","value":": Routes to include in the redirect. "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"['/admin(/*)?']"}]},{"type":"text","value":" will enable the redirect only for the "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"admin"}]},{"type":"text","value":" page and all sub-pages."}]},{"type":"element","tag":"li","props":{},"children":[{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"exclude"}]},{"type":"text","value":": Routes to exclude from the redirect. "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"['/foo', '/bar/*']"}]},{"type":"text","value":" will exclude the "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"foo"}]},{"type":"text","value":" page and all pages in your "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"bar"}]},{"type":"text","value":" folder."}]},{"type":"element","tag":"li","props":{},"children":[{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"cookieRedirect"}]},{"type":"text","value":": Sets a cookie containing the path an unauthenticated user tried to access. The cookie can then be used on the "},{"type":"element","tag":"a","props":{"href":"https://supabase.nuxtjs.org/authentication#confirm-page-confirm","rel":["nofollow"]},"children":[{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"/confirm"}]}]},{"type":"text","value":" page to redirect the user to the page they previously tried to visit."}]}]},{"type":"element","tag":"h3","props":{"id":"cookiename"},"children":[{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"cookieName"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Default: "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"sb"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Cookie name used for storing the redirect path when using the "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"redirect"}]},{"type":"text","value":" option, added in front of "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"-redirect-path"}]},{"type":"text","value":" to form the full cookie name e.g. "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"sb-redirect-path"}]}]},{"type":"element","tag":"h3","props":{"id":"cookieoptions"},"children":[{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"cookieOptions"}]}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":" cookieOptions: {\n maxAge: 60 * 60 * 8,\n sameSite: 'lax',\n secure: true\n }\n","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" cookieOptions"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" maxAge"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C"},"children":[{"type":"text","value":" 60"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" *"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C"},"children":[{"type":"text","value":" 60"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" *"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C"},"children":[{"type":"text","value":" 8"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" sameSite"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"lax"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" secure"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC"},"children":[{"type":"text","value":" true\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Options for cookies used to share tokens between server and client, refer to "},{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/api/composables/use-cookie#options","rel":["nofollow"]},"children":[{"type":"text","value":"cookieOptions"}]},{"type":"text","value":" for available settings. Please note that the lifetime set here does not determine the Supabase session lifetime."}]},{"type":"element","tag":"h3","props":{"id":"types"},"children":[{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"types"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Default: "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"./types/database.types.ts"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"The path for the generated Supabase TypeScript definitions. The database definitions will be automatically passed to all clients: "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"useSupabaseClient"}]},{"type":"text","value":", "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"serverSupabaseClient"}]},{"type":"text","value":" and "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"serverSupabaseServiceRole"}]},{"type":"text","value":"."}]},{"type":"element","tag":"pre","props":{"className":"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"## Generate types from live database\nsupabase gen types --lang=typescript --project-id YourProjectId > types/database.types.ts\n\n## Generate types when using local environment\nsupabase gen types --lang=typescript --local > types/database.types.ts\n","language":"bash","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"## Generate types from live database\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":"supabase"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" gen"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" types"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" --lang=typescript"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" --project-id"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" YourProjectId"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" >"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" types/database.types.ts\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"## Generate types when using local environment\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":"supabase"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" gen"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" types"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" --lang=typescript"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" --local"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" >"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" types/database.types.ts\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Set to "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"false"}]},{"type":"text","value":" to disable."}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Check Supabase "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/reference/javascript/release-notes#typescript-support","rel":["nofollow"]},"children":[{"type":"text","value":"documentation"}]},{"type":"text","value":" for further information."}]},{"type":"element","tag":"h3","props":{"id":"clientoptions"},"children":[{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"clientOptions"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Default:"}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":" clientOptions: { }\n","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" clientOptions"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Supabase client options "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/reference/javascript/initializing#parameters","rel":["nofollow"]},"children":[{"type":"text","value":"available here"}]},{"type":"text","value":" merged with default values from "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"@supabase/ssr"}]},{"type":"text","value":":"}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":" clientOptions: {\n auth: {\n flowType: 'pkce',\n autoRefreshToken: isBrowser(),\n detectSessionInUrl: isBrowser(),\n persistSession: true,\n },\n }\n","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" clientOptions"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" auth"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" flowType"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"pkce"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" autoRefreshToken"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" isBrowser"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" detectSessionInUrl"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" isBrowser"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":6},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" persistSession"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC"},"children":[{"type":"text","value":" true"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":7},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" },\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":8},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }\n"}]}]}]}]},{"type":"element","tag":"h2","props":{"id":"demo"},"children":[{"type":"text","value":"Demo"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"A live demo is made for see this module in action on "},{"type":"element","tag":"a","props":{"href":"https://n3-supabase.netlify.app","rel":["nofollow"]},"children":[{"type":"text","value":"n3-supabase.netlify.app"}]},{"type":"text","value":", read more in the "},{"type":"element","tag":"a","props":{"href":"/demo"},"children":[{"type":"text","value":"demo section"}]},{"type":"text","value":"."}]},{"type":"element","tag":"p","props":{},"children":[{"type":"element","tag":"a","props":{"href":"https://n3-supabase.netlify.app","rel":["nofollow"]},"children":[{"type":"element","tag":"img","props":{"alt":"Supabase demo with Nuxt 3","src":"https://user-images.githubusercontent.com/904724/160422461-8f87500a-8dec-4413-86b2-ba04e1b2d17b.png"},"children":[]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Also checkout the "},{"type":"element","tag":"a","props":{"href":"https://www.youtube.com/watch?v=jIyiRT6zT8Q","rel":["nofollow"]},"children":[{"type":"text","value":"YouTube video"}]},{"type":"text","value":" about its usage in a live demo."}]},{"type":"element","tag":"style","props":{},"children":[{"type":"text","value":"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}"}]}],"toc":{"title":"","searchDepth":2,"depth":2,"links":[{"id":"installation","depth":2,"text":"Installation"},{"id":"options","depth":2,"text":"Options","children":[{"id":"url","depth":3,"text":"url"},{"id":"key","depth":3,"text":"key"},{"id":"servicekey","depth":3,"text":"serviceKey"},{"id":"redirect","depth":3,"text":"redirect"},{"id":"redirectoptions","depth":3,"text":"redirectOptions"},{"id":"cookiename","depth":3,"text":"cookieName"},{"id":"cookieoptions","depth":3,"text":"cookieOptions"},{"id":"types","depth":3,"text":"types"},{"id":"clientoptions","depth":3,"text":"clientOptions"}]},{"id":"demo","depth":2,"text":"Demo"}]}},"_type":"markdown","_id":"content:2.get-started.md","_source":"content","_file":"2.get-started.md","_stem":"2.get-started","_extension":"md"},{"_path":"/authentication","_dir":"","_draft":false,"_partial":false,"_locale":"","title":"Authentication","description":"Authenticate your user thanks to the PKCE Oauth protocol that enables secure exchange of refresh and access tokens between an application and the authorization server","icon":"i-heroicons-lock-closed","body":{"type":"root","children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"With the default options, the module requires a log-in page and a confirm page to handle the "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/guides/resources/glossary#pkce","rel":["nofollow"]},"children":[{"type":"text","value":"PKCE authorization code flow"}]},{"type":"text","value":". If you want to understand how it works under the hood, you can read this "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/guides/auth/server-side-rendering#understanding-the-authentication-flow","rel":["nofollow"]},"children":[{"type":"text","value":"section"}]},{"type":"text","value":"."}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"All you need to do is to create a "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"login.vue"}]},{"type":"text","value":" and "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"confirm.vue"}]},{"type":"text","value":" page in the "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"pages"}]},{"type":"text","value":" folder."}]},{"type":"element","tag":"callout","props":{"icon":"i-heroicons-light-bulb"},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"For advanced users who want to implement the auth behaviour themselves, you can disable or override the "},{"type":"element","tag":"a","props":{"href":"/get-started#redirect"},"children":[{"type":"text","value":"redirect options"}]},{"type":"text","value":"."}]}]},{"type":"element","tag":"h2","props":{"id":"log-in-page-login"},"children":[{"type":"text","value":"Log-in page - "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"/login"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Each time a user is trying to access a page that needs authentication, he will automatically be redirected to the configured log in page. If you want to allow access to \"public\" page, you just need to add them in the "},{"type":"element","tag":"a","props":{"href":"/get-started#redirectoptions"},"children":[{"type":"text","value":"exclude"}]},{"type":"text","value":" redirect option. Alternatively, you can enable the redirect only for certain routes using the "},{"type":"element","tag":"a","props":{"href":"/get-started#redirectoptions"},"children":[{"type":"text","value":"include"}]},{"type":"text","value":" redirect option."}]},{"type":"element","tag":"callout","props":{"icon":"i-heroicons-exclamation-triangle-20-solid","color":"amber"},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Ensure to activate the authentication providers you want in the Supabase Dashboard under "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"Authentication -> Providers"}]},{"type":"text","value":"."}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"The log-in page initiates the log-in method(s) you choose from the "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/reference/javascript/auth-signinwithpassword","rel":["nofollow"]},"children":[{"type":"text","value":"available authorization methods"}]},{"type":"text","value":" provided by Supabase, it could looks like:"}]},{"type":"element","tag":"pre","props":{"className":"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"\n\n","filename":"pages/login.vue","language":"vue","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"<"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"script"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" setup"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" lang"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"ts"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" supabase "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useSupabaseClient"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" email "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" ref"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"''"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" signInWithOtp "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" async"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":6},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" error"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" supabase"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"auth"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"signInWithOtp"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"{\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":7},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" email"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" email"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"value"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":8},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" options"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":9},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" emailRedirectTo"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"http://localhost:3000/confirm"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":10},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":11},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":12},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" if"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" ("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"error"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":") "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"console"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"log"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"error"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":13},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":14},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":15},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"<"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"template"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":16},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" <"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"div"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":17},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" <"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"button"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" @"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"click"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"signInWithOtp"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":18},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" Sign In with E-Mail\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":19},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" \n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":20},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" <"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"input\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":21},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" v-model"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"email"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":22},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" type"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"email"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":23},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" />\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":24},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" \n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":25},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Once the authorization flow is triggered using the "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"auth"}]},{"type":"text","value":" wrapper of the "},{"type":"element","tag":"a","props":{"href":"/usage/composables/usesupabaseclient"},"children":[{"type":"text","value":"useSupabaseClient"}]},{"type":"text","value":" composable, the session management is handled automatically and the user will be redirected to the page you specify in the redirect option ("},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"/confirm"}]},{"type":"text","value":" by default)."}]},{"type":"element","tag":"h2","props":{"id":"confirm-page-confirm"},"children":[{"type":"text","value":"Confirm page - "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"/confirm"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"The confirmation page receives the supabase callback. From there you can check the user value and redirect to the appropriate page."}]},{"type":"element","tag":"callout","props":{"icon":"i-heroicons-light-bulb"},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"The redirect URL must be configured in your Supabase dashboard under "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"Authentication -> URL Configuration -> Redirect URLs"}]},{"type":"text","value":"."}]}]},{"type":"element","tag":"pre","props":{"className":"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"\n\n\n","filename":"pages/confirm.vue","language":"vue","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"<"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"script"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" setup"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" lang"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"ts"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" user "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useSupabaseUser"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"watch"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"(user"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":","}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" if"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" ("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"user"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"value"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":") "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"{\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":6},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" // Redirect to protected page\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":7},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" return"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" navigateTo"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"/"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":8},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":9},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"},"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" immediate"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC"},"children":[{"type":"text","value":" true"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":10},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":11},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":12},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"<"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"template"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":13},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" <"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"div"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"Waiting for login..."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":14},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\n"}]}]}]}]},{"type":"element","tag":"h3","props":{"id":"redirect-path"},"children":[{"type":"text","value":"Redirect path"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"You can easily handle redirection to the initial requested route after login."}]},{"type":"element","tag":"callout","props":{"icon":"i-heroicons-light-bulb"},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"You must enable the "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"cookieRedirect"}]},{"type":"text","value":" option of the "},{"type":"element","tag":"a","props":{"href":"/get-started#redirectoptions"},"children":[{"type":"text","value":"redirectOptions"}]},{"type":"text","value":" to allow cookie storage and take benefit of this feature."}]}]},{"type":"element","tag":"pre","props":{"className":"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"\n\n","filename":"pages/confirm.vue","language":"vue","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"<"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"script"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" setup"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" lang"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"ts"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" user "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useSupabaseUser"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"// Get redirect path from cookies\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" cookieName "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useRuntimeConfig"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"public"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"supabase"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"cookieName\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":6},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" redirectPath "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useCookie"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"`${"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"cookieName"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"-redirect-path"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"`"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"value\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":7},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":8},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"watch"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"(user"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":","}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":9},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" if"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" ("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"user"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"value"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":") "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"{\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":10},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" // Clear cookie\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":11},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useCookie"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"`${"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"cookieName"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"-redirect-path"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"`"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"value"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" null\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":12},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" // Redirect to path\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":13},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" return"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" navigateTo"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"redirectPath"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ||"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"/"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":";"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" \n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":14},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":15},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"},"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" immediate"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC"},"children":[{"type":"text","value":" true"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":16},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":17},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"<"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"template"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":18},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" <"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"div"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"Waiting for login..."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":19},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\n"}]}]}]}]},{"type":"element","tag":"style","props":{},"children":[{"type":"text","value":"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}"}]}],"toc":{"title":"","searchDepth":2,"depth":2,"links":[{"id":"log-in-page-login","depth":2,"text":"Log-in page - /login"},{"id":"confirm-page-confirm","depth":2,"text":"Confirm page - /confirm","children":[{"id":"redirect-path","depth":3,"text":"Redirect path"}]}]}},"_type":"markdown","_id":"content:3.authentication.md","_source":"content","_file":"3.authentication.md","_stem":"3.authentication","_extension":"md"},{"_path":"/usage/_dir","_dir":"usage","_draft":false,"_partial":true,"_locale":"","title":"Usage","icon":"heroicons:book-open","_id":"content:4.usage:_dir.yml","_type":"yaml","_source":"content","_file":"4.usage/_dir.yml","_stem":"4.usage/_dir","_extension":"yml"},{"_path":"/usage/composables/_dir","_dir":"composables","_draft":false,"_partial":true,"_locale":"","title":"Vue composables","_id":"content:4.usage:composables:_dir.yml","_type":"yaml","_source":"content","_file":"4.usage/composables/_dir.yml","_stem":"4.usage/composables/_dir","_extension":"yml"},{"_path":"/usage/composables/usesupabaseclient","_dir":"composables","_draft":false,"_partial":false,"_locale":"","title":"useSupabaseClient","description":"Make requests to the Supabase API with the useSupabaseClient composable","body":{"type":"root","children":[{"type":"element","tag":"p","props":{},"children":[{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/guide/directory-structure/composables","rel":["nofollow"]},"children":[{"type":"text","value":"Auto-import"}]},{"type":"text","value":" your client inside your vue files."}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"This composable is using "},{"type":"element","tag":"a","props":{"href":"https://github.com/supabase/supabase-js/","rel":["nofollow"]},"children":[{"type":"text","value":"supabase-js"}]},{"type":"text","value":" under the hood, it gives access to the "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/reference/javascript/initializing","rel":["nofollow"]},"children":[{"type":"text","value":"Supabase client"}]},{"type":"text","value":"."}]},{"type":"element","tag":"blockquote","props":{},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"The client is initialized with the "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"SUPABASE_KEY"}]},{"type":"text","value":" you must have in your "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":".env"}]},{"type":"text","value":" file. It establishes the connection with the database and make use of user JWT to apply "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/learn/auth-deep-dive/auth-row-level-security","rel":["nofollow"]},"children":[{"type":"text","value":"RLS Policies"}]},{"type":"text","value":" implemented in Supabase. If you want to bypass policies, you can use the "},{"type":"element","tag":"a","props":{"href":"/usage/services/serversupabaseservicerole"},"children":[{"type":"text","value":"serverSupabaseServiceRole"}]},{"type":"text","value":"."}]}]},{"type":"element","tag":"h2","props":{"id":"authentication"},"children":[{"type":"text","value":"Authentication"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"The useSupabaseClient composable is providing all methods to manage authorization under "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"useSupabaseClient().auth"}]},{"type":"text","value":". For more details please see the "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/reference/javascript/auth-api","rel":["nofollow"]},"children":[{"type":"text","value":"supabase-js auth documentation"}]},{"type":"text","value":". Here is an example for signing in and out:"}]},{"type":"element","tag":"callout","props":{"icon":"i-heroicons-light-bulb"},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"If you want a full explanation on how to handle the authentication process, please read this "},{"type":"element","tag":"a","props":{"href":"/get-started#handle-authentication"},"children":[{"type":"text","value":"section"}]},{"type":"text","value":"."}]}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"\n","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"<"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"script setup lang"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"ts"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" supabase "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useSupabaseClient"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" signInWithOAuth "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" async"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" error"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" supabase"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"auth"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"signInWithOAuth"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"{\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":6},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" provider"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"github"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":7},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" options"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":8},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" redirectTo"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"http://localhost:3000/confirm"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":9},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" },\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":10},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":11},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" if"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" ("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"error"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":") "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"console"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"log"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"error"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":12},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":13},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":14},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" signOut "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" async"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":15},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" error"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" supabase"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"auth"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"signOut"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":16},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" if"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" ("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"error"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":") "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"console"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"log"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"error"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":17},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":18},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Please also take a look at "},{"type":"element","tag":"a","props":{"href":"/get-started"},"children":[{"type":"text","value":"Get Started"}]},{"type":"text","value":" for the authorization flow."}]},{"type":"element","tag":"h2","props":{"id":"database-request"},"children":[{"type":"text","value":"Database Request"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Please check "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/reference/javascript/select","rel":["nofollow"]},"children":[{"type":"text","value":"Supabase"}]},{"type":"text","value":" documentation to fully use the power of Supabase client."}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Here is an example of a fetch using the "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"select"}]},{"type":"text","value":" method with Nuxt 3 "},{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/getting-started/data-fetching#useasyncdata","rel":["nofollow"]},"children":[{"type":"text","value":"useAsyncData"}]},{"type":"text","value":" composable."}]},{"type":"element","tag":"pre","props":{"className":"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"\n","language":"vue","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"<"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"script"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" setup"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" lang"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"ts"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" client "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useSupabaseClient"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" data"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" restaurant "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useAsyncData"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"restaurant"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":","}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" async"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" data"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" client"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"from"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"restaurants"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"select"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"name, location"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"eq"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"name"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":","}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"My Restaurant Name"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"single"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":6},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":7},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" return"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" data\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":8},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":9},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\n"}]}]}]}]},{"type":"element","tag":"h2","props":{"id":"realtime"},"children":[{"type":"text","value":"Realtime"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Based on "},{"type":"element","tag":"a","props":{"href":"https://github.com/supabase/realtime","rel":["nofollow"]},"children":[{"type":"text","value":"Supabase Realtime"}]},{"type":"text","value":", listen to changes in your PostgreSQL Database and broadcasts them over WebSockets."}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"To enable it, make sure you have turned on the "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/guides/api#realtime-api","rel":["nofollow"]},"children":[{"type":"text","value":"Realtime API"}]},{"type":"text","value":" for your table."}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Then, listen to changes directly in your vue page / component:"}]},{"type":"element","tag":"pre","props":{"className":"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"\n","language":"vue","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"<"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"script"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" setup"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" lang"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"ts"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"import"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" type"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" RealtimeChannel"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" from"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"@supabase/supabase-js"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" client "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useSupabaseClient"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":6},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"let"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" realtimeChannel"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" RealtimeChannel\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":7},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":8},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"// Fetch collaborators and get the refresh method provided by useAsyncData\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":9},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" data"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" collaborators"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":","}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" refresh"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" refreshCollaborators "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useAsyncData"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"collaborators"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":","}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" async"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":10},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" data"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" client"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"from"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"collaborators"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"select"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"name"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":11},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" return"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" data\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":12},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":13},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":14},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"// Once page is mounted, listen to changes on the `collaborators` table and refresh collaborators when receiving event\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":15},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"onMounted"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":16},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" // Real time listener for new workouts\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":17},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" realtimeChannel"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" client"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"channel"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"public:collaborators"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"on"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"(\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":18},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"postgres_changes"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":19},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" event"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"*"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":","}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" schema"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"public"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":","}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" table"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"collaborators"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" },\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":20},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" refreshCollaborators"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":21},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" )\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":22},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":23},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" realtimeChannel"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"subscribe"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":24},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":25},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":26},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" // Don't forget to unsubscribe when user left the page\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":27},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"onUnmounted"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":28},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" client"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"removeChannel"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"realtimeChannel"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":29},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":30},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\n"}]}]}]}]},{"type":"element","tag":"h2","props":{"id":"typescript"},"children":[{"type":"text","value":"Typescript"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Database typings are passed to the client out of the box if the database generated types are found at "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"./types/database.types.ts"}]},{"type":"text","value":" or "},{"type":"element","tag":"a","props":{"href":"/get-started#types"},"children":[{"type":"text","value":"your configured types path"}]},{"type":"text","value":". Check Supabase "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/reference/javascript/release-notes#typescript-support","rel":["nofollow"]},"children":[{"type":"text","value":"documentation"}]},{"type":"text","value":" for further information."}]},{"type":"element","tag":"pre","props":{"className":"language-shell shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"## Generate types from live database\nsupabase gen types typescript --project-id YourProjectId > types/database.types.ts\n\n## Generate types when using local environment\nsupabase gen types typescript --local > types/database.types.ts\n","language":"shell","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"## Generate types from live database\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":"supabase"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" gen"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" types"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" typescript"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" --project-id"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" YourProjectId"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" >"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" types/database.types.ts\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"## Generate types when using local environment\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":"supabase"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" gen"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" types"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" typescript"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" --local"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" >"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" types/database.types.ts\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"You can also pass Database typings to the client manually:"}]},{"type":"element","tag":"pre","props":{"className":"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"\n","language":"vue","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"<"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"script"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" setup"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" lang"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"ts"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"import"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" type"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" Database"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" from"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"~/types"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" client "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useSupabaseClient"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"<"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":"Database"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\n"}]}]}]}]},{"type":"element","tag":"style","props":{},"children":[{"type":"text","value":"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}"}]}],"toc":{"title":"","searchDepth":2,"depth":2,"links":[{"id":"authentication","depth":2,"text":"Authentication"},{"id":"database-request","depth":2,"text":"Database Request"},{"id":"realtime","depth":2,"text":"Realtime"},{"id":"typescript","depth":2,"text":"Typescript"}]}},"_type":"markdown","_id":"content:4.usage:composables:useSupabaseClient.md","_source":"content","_file":"4.usage/composables/useSupabaseClient.md","_stem":"4.usage/composables/useSupabaseClient","_extension":"md"},{"_path":"/usage/composables/usesupabasesession","_dir":"composables","_draft":false,"_partial":false,"_locale":"","title":"useSupabaseSession","description":"Auto import and use your Supabase user's session with the useSupabaseSession composable","body":{"type":"root","children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Once logged in, you can "},{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/guide/directory-structure/composables","rel":["nofollow"]},"children":[{"type":"text","value":"auto-import"}]},{"type":"text","value":" your user's session everywhere inside your vue files."}]},{"type":"element","tag":"pre","props":{"className":"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"\n","language":"vue","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"<"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"script"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" setup"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" session "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useSupabaseSession"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\n"}]}]}]}]},{"type":"element","tag":"callout","props":{"icon":"i-heroicons-light-bulb"},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"If you just need the User's information you can use "},{"type":"element","tag":"a","props":{"href":"/usage/composables/usesupabaseuser"},"children":[{"type":"text","value":"useSupabaseUser"}]},{"type":"text","value":" which returns just the User information of the session."}]}]},{"type":"element","tag":"h2","props":{"id":"auth-middleware"},"children":[{"type":"text","value":"Auth middleware"}]},{"type":"element","tag":"callout","props":{"icon":"i-heroicons-light-bulb"},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"By default, the module is implementing a redirect middleware. All pages of your application are automatically redirected to the "},{"type":"element","tag":"a","props":{"href":"/get-started#redirectoptions"},"children":[{"type":"text","value":"login"}]},{"type":"text","value":" page. However, you can allow redirection to \"public\" pages by setting the "},{"type":"element","tag":"a","props":{"href":"/get-started#redirectoptions"},"children":[{"type":"text","value":"exclude"}]},{"type":"text","value":" redirect option. Alternatively, you can enable the redirect only for certain routes using the "},{"type":"element","tag":"a","props":{"href":"/get-started#redirectoptions"},"children":[{"type":"text","value":"include"}]},{"type":"text","value":" redirect option."}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"If the "},{"type":"element","tag":"a","props":{"href":"/get-started#redirect"},"children":[{"type":"text","value":"redirect"}]},{"type":"text","value":" option is disabled, you can protect your authenticated routes by creating a custom middleware in your project, here is an example:"}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"export default defineNuxtRouteMiddleware((to, _from) => {\n const session = useSupabaseSession()\n\n if (!session.value) {\n return navigateTo('/login')\n }\n})\n","filename":"middleware/auth.ts","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"export"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" default"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" defineNuxtRouteMiddleware"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"to"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":","}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" _from"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" session"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useSupabaseSession"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" if"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" ("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"!"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"session"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"value"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":") "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"{\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" return"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" navigateTo"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"/login"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":6},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":7},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Then you can reference your middleware in your page with:"}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"definePageMeta({\n middleware: 'auth'\n})\n","filename":"pages/dashboard.vue","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"definePageMeta"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"{\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" middleware"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"auth"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Learn more about "},{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/guide/directory-structure/middleware","rel":["nofollow"]},"children":[{"type":"text","value":"Nuxt middleware"}]},{"type":"text","value":" and "},{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/guide/directory-structure/pages#page-metadata","rel":["nofollow"]},"children":[{"type":"text","value":"definePageMeta"}]},{"type":"text","value":"."}]},{"type":"element","tag":"style","props":{},"children":[{"type":"text","value":"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}"}]}],"toc":{"title":"","searchDepth":2,"depth":2,"links":[{"id":"auth-middleware","depth":2,"text":"Auth middleware"}]}},"_type":"markdown","_id":"content:4.usage:composables:useSupabaseSession.md","_source":"content","_file":"4.usage/composables/useSupabaseSession.md","_stem":"4.usage/composables/useSupabaseSession","_extension":"md"},{"_path":"/usage/composables/usesupabaseuser","_dir":"composables","_draft":false,"_partial":false,"_locale":"","title":"useSupabaseUser","description":"Auto import and use your Supabase user with the useSupabaseUser composable","body":{"type":"root","children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Once logged in, you can "},{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/guide/directory-structure/composables","rel":["nofollow"]},"children":[{"type":"text","value":"auto-import"}]},{"type":"text","value":" your user everywhere inside your vue files."}]},{"type":"element","tag":"pre","props":{"className":"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"\n","language":"vue","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"<"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"script"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" setup"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" user "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useSupabaseUser"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\n"}]}]}]}]},{"type":"element","tag":"h2","props":{"id":"auth-middleware"},"children":[{"type":"text","value":"Auth middleware"}]},{"type":"element","tag":"callout","props":{"icon":"i-heroicons-light-bulb"},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"By default, the module is implementing a redirect middleware. All pages of your application are automatically redirected to the "},{"type":"element","tag":"a","props":{"href":"/get-started#redirectoptions"},"children":[{"type":"text","value":"login"}]},{"type":"text","value":" page. However, you can allow redirection to \"public\" pages by setting the "},{"type":"element","tag":"a","props":{"href":"/get-started#redirectoptions"},"children":[{"type":"text","value":"exclude"}]},{"type":"text","value":" redirect option. Alternatively, you can enable the redirect only for certain routes using the "},{"type":"element","tag":"a","props":{"href":"/get-started#redirectoptions"},"children":[{"type":"text","value":"include"}]},{"type":"text","value":" redirect option."}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"If the "},{"type":"element","tag":"a","props":{"href":"/get-started#redirect"},"children":[{"type":"text","value":"redirect"}]},{"type":"text","value":" option is disabled, you can protect your authenticated routes by creating a custom middleware in your project, here is an example:"}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"export default defineNuxtRouteMiddleware((to, _from) => {\n const user = useSupabaseUser()\n\n if (!user.value) {\n return navigateTo('/login')\n }\n})\n","filename":"middleware/auth.ts","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"export"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" default"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" defineNuxtRouteMiddleware"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"to"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":","}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" _from"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" user"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useSupabaseUser"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" if"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" ("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"!"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"user"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"value"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":") "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"{\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" return"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" navigateTo"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"/login"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":6},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":7},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Then you can reference your middleware in your page with:"}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"definePageMeta({\n middleware: 'auth'\n})\n","filename":"pages/dashboard.vue","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"definePageMeta"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"{\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" middleware"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"auth"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Learn more about "},{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/guide/directory-structure/middleware","rel":["nofollow"]},"children":[{"type":"text","value":"Nuxt middleware"}]},{"type":"text","value":" and "},{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/guide/directory-structure/pages#page-metadata","rel":["nofollow"]},"children":[{"type":"text","value":"definePageMeta"}]},{"type":"text","value":"."}]},{"type":"element","tag":"style","props":{},"children":[{"type":"text","value":"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}"}]}],"toc":{"title":"","searchDepth":2,"depth":2,"links":[{"id":"auth-middleware","depth":2,"text":"Auth middleware"}]}},"_type":"markdown","_id":"content:4.usage:composables:useSupabaseUser.md","_source":"content","_file":"4.usage/composables/useSupabaseUser.md","_stem":"4.usage/composables/useSupabaseUser","_extension":"md"},{"_path":"/usage/services/_dir","_dir":"services","_draft":false,"_partial":true,"_locale":"","title":"Server services","_id":"content:4.usage:services:_dir.yml","_type":"yaml","_source":"content","_file":"4.usage/services/_dir.yml","_stem":"4.usage/services/_dir","_extension":"yml"},{"_path":"/usage/services/serversupabaseclient","_dir":"services","_draft":false,"_partial":false,"_locale":"","title":"serverSupabaseClient","description":"Make requests to the Supabase API on server side with the serverSupabaseClient service","body":{"type":"root","children":[{"type":"element","tag":"callout","props":{"color":"amber","icon":"i-heroicons-exclamation-triangle-20-solid"},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"This section assumes you're familiar with "},{"type":"element","tag":"a","props":{"href":"https://v3.nuxtjs.org/guide/concepts/server-engine","rel":["nofollow"]},"children":[{"type":"text","value":"Nitro"}]},{"type":"text","value":", the server engine powered by Nuxt."}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"This function is working similary as the "},{"type":"element","tag":"a","props":{"href":"/usage/composables/usesupabaseclient"},"children":[{"type":"text","value":"useSupabaseClient"}]},{"type":"text","value":" composable but is designed to be used in "},{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/guide/directory-structure/server#server-routes","rel":["nofollow"]},"children":[{"type":"text","value":"server routes"}]},{"type":"text","value":"."}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Define your server route and just import the "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"serverSupabaseClient"}]},{"type":"text","value":" from "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"#supabase/server"}]},{"type":"text","value":". Be careful, "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"serverSupabaseClient"}]},{"type":"text","value":" is returning a promise."}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"import { serverSupabaseClient } from '#supabase/server'\n\nexport default eventHandler(async (event) => {\n const client = await serverSupabaseClient(event)\n\n const { data } = await client.from('libraries').select('*')\n\n return { libraries: data }\n})\n","filename":"server/api/libraries.ts","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"import"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" serverSupabaseClient"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" from"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"#supabase/server"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"export"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" default"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" eventHandler"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"async"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"event"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" client"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" serverSupabaseClient"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"event"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":6},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" data"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" client"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"from"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"libraries"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"select"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"*"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":7},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":8},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" return"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" libraries"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" data"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":9},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Then call your API route from any vue file:"}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"const fetchLibrary = async () => {\n const { libraries } = await $fetch('/api/libraries')\n}\n","filename":"pages/index.vue","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" fetchLibrary "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" async"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" libraries"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" $fetch"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"/api/libraries"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Be careful, if you want to call this route on SSR, please read this "},{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/getting-started/data-fetching#isomorphic-fetch-and-fetch","rel":["nofollow"]},"children":[{"type":"text","value":"section"}]},{"type":"text","value":", you must send your browser cookies including your supabase token."}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"const { data: { libraries }} = await useFetch('/api/libraries', {\n headers: useRequestHeaders(['cookie'])\n})\n","filename":"pages/index.vue","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" data"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" libraries "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useFetch"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"/api/libraries"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":","}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" headers"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useRequestHeaders"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"(["}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"cookie"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"])\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]}]}]},{"type":"element","tag":"style","props":{},"children":[{"type":"text","value":"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}"}]}],"toc":{"title":"","searchDepth":2,"depth":2,"links":[]}},"_type":"markdown","_id":"content:4.usage:services:1.serverSupabaseClient.md","_source":"content","_file":"4.usage/services/1.serverSupabaseClient.md","_stem":"4.usage/services/1.serverSupabaseClient","_extension":"md"},{"_path":"/usage/services/serversupabaseservicerole","_dir":"services","_draft":false,"_partial":false,"_locale":"","title":"serverServiceRole","description":"Make requests with super admin rights to the Supabase API with the serverSupabaseServiceRole service","navigation":{"title":"serverSupabaseServiceRole"},"body":{"type":"root","children":[{"type":"element","tag":"callout","props":{"color":"amber","icon":"i-heroicons-exclamation-triangle-20-solid"},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"This section assumes you're familiar with "},{"type":"element","tag":"a","props":{"href":"https://v3.nuxtjs.org/guide/concepts/server-engine","rel":["nofollow"]},"children":[{"type":"text","value":"Nitro"}]},{"type":"text","value":", the server engine powered by Nuxt."}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"This function is designed to work only in "},{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/guide/directory-structure/server#server-routes","rel":["nofollow"]},"children":[{"type":"text","value":"server routes"}]},{"type":"text","value":", there is no vue composable equivalent."}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"It works similary as the "},{"type":"element","tag":"a","props":{"href":"/usage/services/serversupabaseclient"},"children":[{"type":"text","value":"serverSupabaseClient"}]},{"type":"text","value":" but it provides a client with super admin rights that can bypass your "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/guides/auth/row-level-security","rel":["nofollow"]},"children":[{"type":"text","value":"Row Level Security"}]},{"type":"text","value":"."}]},{"type":"element","tag":"blockquote","props":{},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"The client is initialized with the "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"SUPABASE_SERVICE_KEY"}]},{"type":"text","value":" you must have in your "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":".env"}]},{"type":"text","value":" file. Checkout the doc if you want to know more about "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/learn/auth-deep-dive/auth-deep-dive-jwts#jwts-in-supabase","rel":["nofollow"]},"children":[{"type":"text","value":"Supabase keys"}]},{"type":"text","value":"."}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Define your server route and just import the "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"serverSupabaseServiceRole"}]},{"type":"text","value":" from "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"#supabase/server"}]},{"type":"text","value":"."}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"import { serverSupabaseServiceRole } from '#supabase/server'\n\nexport default eventHandler(async (event) => {\n const client = serverSupabaseServiceRole(event)\n\n const { data } = await client.from('rls-protected-table').select()\n\n return { sensitiveData: data }\n})\n","filename":"server/api/bypass-rls.ts","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"import"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" serverSupabaseServiceRole"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" from"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"#supabase/server"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"export"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" default"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" eventHandler"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"async"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"event"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" client"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" serverSupabaseServiceRole"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"event"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":6},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" data"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" client"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"from"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"rls-protected-table"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"select"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":7},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":8},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" return"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" sensitiveData"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" data"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":9},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Then call your API route from any vue file:"}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"const fetchSensitiveData = async () => {\n const { sensitiveData } = await useFetch('/api/bypass-rls')\n}\n","filename":"pages/index.vue","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" fetchSensitiveData "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" async"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" sensitiveData"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useFetch"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"/api/bypass-rls"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}\n"}]}]}]}]},{"type":"element","tag":"style","props":{},"children":[{"type":"text","value":"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}"}]}],"toc":{"title":"","searchDepth":2,"depth":2,"links":[]}},"_type":"markdown","_id":"content:4.usage:services:2.serverSupabaseServiceRole.md","_source":"content","_file":"4.usage/services/2.serverSupabaseServiceRole.md","_stem":"4.usage/services/2.serverSupabaseServiceRole","_extension":"md"},{"_path":"/usage/services/serversupabasesession","_dir":"services","_draft":false,"_partial":false,"_locale":"","title":"serverSupabaseSession","description":"Get your Supabase user's session from serverside with the serverSupabaseUser service","body":{"type":"root","children":[{"type":"element","tag":"callout","props":{"color":"amber","icon":"i-heroicons-exclamation-triangle-20-solid"},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"This section assumes you're familiar with "},{"type":"element","tag":"a","props":{"href":"https://v3.nuxtjs.org/guide/concepts/server-engine","rel":["nofollow"]},"children":[{"type":"text","value":"Nitro"}]},{"type":"text","value":", the server engine powered by Nuxt."}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"This function is similar to the "},{"type":"element","tag":"a","props":{"href":"/usage/composables/usesupabasesession"},"children":[{"type":"text","value":"useSupabaseSession"}]},{"type":"text","value":" composable but is used in "},{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/guide/directory-structure/server#server-routes","rel":["nofollow"]},"children":[{"type":"text","value":"server routes"}]},{"type":"text","value":"."}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Define your server route and import the "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"serverSupabaseSession"}]},{"type":"text","value":" from "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"#supabase/server"}]},{"type":"text","value":"."}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"import { serverSupabaseSession } from '#supabase/server'\n\nexport default defineEventHandler(async (event) => {\n return await serverSupabaseSession(event)\n})\n","filename":"server/api/session.ts","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"import"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" serverSupabaseSession"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" from"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"#supabase/server"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"export"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" default"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" defineEventHandler"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"async"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"event"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" return"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" serverSupabaseSession"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"event"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Then call your api route from any vue file:"}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"const session = ref(null)\n\nconst fetchSession = async () => {\n session.value = await $fetch('/api/session')\n}\n","filename":"pages/index.vue","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" session "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" ref"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"null"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" fetchSession "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" async"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" session"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"value"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" $fetch"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"/api/session"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Be careful, if you want to call this route on SSR, please read this "},{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/getting-started/data-fetching#isomorphic-fetch-and-fetch","rel":["nofollow"]},"children":[{"type":"text","value":"section"}]},{"type":"text","value":", you must send your browser cookies including your supabase token."}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"const session = ref(null)\n\nconst { data } = await useFetch('/api/session', {\n headers: useRequestHeaders(['cookie'])\n})\n\nsession.value = data\n","filename":"pages/index.vue","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" session "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" ref"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"null"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" data "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useFetch"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"/api/session"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":","}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" headers"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useRequestHeaders"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"(["}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"cookie"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"])\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":6},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":7},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"session"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"value "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" data\n"}]}]}]}]},{"type":"element","tag":"style","props":{},"children":[{"type":"text","value":"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}"}]}],"toc":{"title":"","searchDepth":2,"depth":2,"links":[]}},"_type":"markdown","_id":"content:4.usage:services:3.serverSupabaseSession.md","_source":"content","_file":"4.usage/services/3.serverSupabaseSession.md","_stem":"4.usage/services/3.serverSupabaseSession","_extension":"md"},{"_path":"/usage/services/serversupabaseuser","_dir":"services","_draft":false,"_partial":false,"_locale":"","title":"serverSupabaseUser","description":"Get your Supabase user from serverside with the serverSupabaseUser service","body":{"type":"root","children":[{"type":"element","tag":"callout","props":{"color":"amber","icon":"i-heroicons-exclamation-triangle-20-solid"},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"This section assumes you're familiar with "},{"type":"element","tag":"a","props":{"href":"https://v3.nuxtjs.org/guide/concepts/server-engine","rel":["nofollow"]},"children":[{"type":"text","value":"Nitro"}]},{"type":"text","value":", the server engine powered by Nuxt."}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"This function is similar to the "},{"type":"element","tag":"a","props":{"href":"/usage/composables/usesupabaseuser"},"children":[{"type":"text","value":"useSupabaseUser"}]},{"type":"text","value":" composable but is used in "},{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/guide/directory-structure/server#server-routes","rel":["nofollow"]},"children":[{"type":"text","value":"server routes"}]},{"type":"text","value":"."}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Define your server route and import the "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"serverSupabaseUser"}]},{"type":"text","value":" from "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"#supabase/server"}]},{"type":"text","value":"."}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"import { serverSupabaseUser } from '#supabase/server'\n\nexport default defineEventHandler(async (event) => {\n return await serverSupabaseUser(event)\n})\n","filename":"server/api/me.ts","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"import"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" serverSupabaseUser"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" from"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"#supabase/server"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"export"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" default"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" defineEventHandler"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"async"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"event"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" return"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" serverSupabaseUser"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"event"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Then call your api route from any vue file:"}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"const user = ref(null)\n\nconst fetchMe = async () => {\n user.value = await $fetch('/api/me')\n}\n","filename":"pages/index.vue","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" user "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" ref"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"null"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" fetchMe "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" async"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" user"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"value"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" $fetch"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"/api/me"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Be careful, if you want to call this route on SSR, please read this "},{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/getting-started/data-fetching#isomorphic-fetch-and-fetch","rel":["nofollow"]},"children":[{"type":"text","value":"section"}]},{"type":"text","value":", you must send your browser cookies including your supabase token."}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"const user = ref(null)\n\nconst { data } = await useFetch('/api/me', {\n headers: useRequestHeaders(['cookie'])\n})\n\nuser.value = data\n","filename":"pages/index.vue","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" user "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" ref"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"null"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" data "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useFetch"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"/api/me"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":","}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" headers"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useRequestHeaders"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"(["}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"cookie"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"])\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":6},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":7},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"user"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"value "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" data\n"}]}]}]}]},{"type":"element","tag":"style","props":{},"children":[{"type":"text","value":"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}"}]}],"toc":{"title":"","searchDepth":2,"depth":2,"links":[]}},"_type":"markdown","_id":"content:4.usage:services:4.serverSupabaseUser.md","_source":"content","_file":"4.usage/services/4.serverSupabaseUser.md","_stem":"4.usage/services/4.serverSupabaseUser","_extension":"md"},{"_path":"/demo","_dir":"","_draft":false,"_partial":false,"_locale":"","title":"Demo","description":"Demonstration of using Supabase with Nuxt.","icon":"i-heroicons-computer-desktop-20-solid","body":{"type":"root","children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Demonstration of using Supabase with Nuxt."}]},{"type":"element","tag":"p","props":{},"children":[{"type":"element","tag":"a","props":{"href":"https://n3-supabase.netlify.app","rel":["nofollow"]},"children":[{"type":"element","tag":"img","props":{"alt":"Supabase demo with Nuxt 3","src":"https://user-images.githubusercontent.com/904724/160422461-8f87500a-8dec-4413-86b2-ba04e1b2d17b.png"},"children":[]}]}]},{"type":"element","tag":"h2","props":{"id":"live-demo"},"children":[{"type":"text","value":"Live demo"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"You can play with the demo on "},{"type":"element","tag":"a","props":{"href":"https://n3-supabase.netlify.app","rel":["nofollow"]},"children":[{"type":"text","value":"n3-supabase.netlify.app"}]}]},{"type":"element","tag":"h2","props":{"id":"running-locally"},"children":[{"type":"text","value":"Running locally"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Follow the instruction in the "},{"type":"element","tag":"a","props":{"href":"https://github.com/nuxt-community/supabase-module/tree/main/demo","rel":["nofollow"]},"children":[{"type":"text","value":"demo Readme"}]},{"type":"text","value":"."}]},{"type":"element","tag":"h2","props":{"id":"source-code"},"children":[{"type":"text","value":"Source code"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"The source code is available on Github in the "},{"type":"element","tag":"a","props":{"href":"https://github.com/nuxt-community/supabase-module/tree/main/demo","rel":["nofollow"]},"children":[{"type":"text","value":"demo/ directory"}]},{"type":"text","value":"."}]}],"toc":{"title":"","searchDepth":2,"depth":2,"links":[{"id":"live-demo","depth":2,"text":"Live demo"},{"id":"running-locally","depth":2,"text":"Running locally"},{"id":"source-code","depth":2,"text":"Source code"}]}},"_type":"markdown","_id":"content:5.demo.md","_source":"content","_file":"5.demo.md","_stem":"5.demo","_extension":"md"},{"_path":"/changelog","_dir":"","_draft":false,"_partial":false,"_locale":"","title":"Changelog","description":"Discover the latest updates of the Supabase Module","icon":"i-heroicons-bookmark","body":{"type":"root","children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Discover the lastest updates."}]},{"type":"element","tag":"releases","props":{},"children":[]}],"toc":{"title":"","searchDepth":2,"depth":2,"links":[]}},"_type":"markdown","_id":"content:6.changelog.md","_source":"content","_file":"6.changelog.md","_stem":"6.changelog","_extension":"md"},{"_path":"/roadmap","_dir":"","_draft":false,"_partial":false,"_locale":"","title":"Roadmap","description":"Discover our kaban board for the next release of the Supabase module.","icon":"i-heroicons-map","body":{"type":"root","children":[{"type":"element","tag":"volta-board","props":{"token":"eyJzdGF0dXNlcyI6WyJ0cmlhZ2UiLCJiYWNrbG9nIiwidG9kbyIsImluX3Byb2dyZXNzIiwiaW5fcmV2aWV3IiwiZG9uZSIsInJlbGVhc2VkIiwiY2FuY2VsbGVkIl0sImZpbHRlcnMiOnt9LCJvd25lciI6Im51eHQtbW9kdWxlcyIsIm5hbWUiOiJzdXBhYmFzZSJ9"},"children":[]}],"toc":{"title":"","searchDepth":2,"depth":2,"links":[]}},"_type":"markdown","_id":"content:7.roadmap.md","_source":"content","_file":"7.roadmap.md","_stem":"7.roadmap","_extension":"md"},{"_path":"/","_dir":"","_draft":false,"_partial":false,"_locale":"","title":"Nuxt Supabase - Home","description":"A supa simple wrapper around supabase-js to enable usage and integration within Nuxt.","navigation":false,"hero":{"title":"Nuxt [Supabase]{.text-primary}","description":"A supa simple wrapper around supabase-js to enable usage and integration within Nuxt.","orientation":"horizontal","links":[{"label":"Get started","icon":"i-heroicons-rocket-launch","to":"/get-started","size":"lg"},{"label":"Star on github","icon":"i-heroicons-star","color":"white","to":"https://github.com/nuxt-modules/supabase","target":"_blank","size":"lg"}],"code":"```ts\n const supabase = useSupabaseClient()\n const email = ref('')\n\n const signInWithOtp = async () => {\n await supabase.auth.signInWithOtp({\n email: email.value,\n })\n }\n```\n"},"features":{"title":"Shipped with many features","items":[{"title":"Nuxt 3 ready","icon":"i-simple-icons-nuxtdotjs","to":"https://nuxt.com","target":"_blank"},{"title":"Vue 3 composables","icon":"i-simple-icons-vuedotjs","to":"https://vuejs.org/guide/reusability/composables.html","target":"_blank"},{"title":"Supabase-js V2","icon":"i-simple-icons-supabase","to":"https://supabase.com","target":"_blank"},{"title":"Usage in API server routes","icon":"i-heroicons-server","to":"usage/services/serversupabaseclient"},{"title":"Authentication support","icon":"i-heroicons-key","to":"/authentication"},{"title":"TypeScript support","icon":"i-simple-icons-typescript","to":"https://www.typescriptlang.org","target":"_blank"}]},"_id":"content:index.yml","_type":"yaml","_source":"content","_file":"index.yml","_stem":"index","_extension":"yml"}],"navigation":[{"title":"Get Started","_path":"/get-started","icon":"i-heroicons-rocket-launch"},{"title":"Authentication","_path":"/authentication","icon":"i-heroicons-lock-closed"},{"title":"Usage","_path":"/usage","children":[{"title":"Vue composables","_path":"/usage/composables","children":[{"title":"useSupabaseClient","_path":"/usage/composables/usesupabaseclient"},{"title":"useSupabaseSession","_path":"/usage/composables/usesupabasesession"},{"title":"useSupabaseUser","_path":"/usage/composables/usesupabaseuser"}]},{"title":"Server services","_path":"/usage/services","children":[{"title":"serverSupabaseClient","_path":"/usage/services/serversupabaseclient"},{"title":"serverSupabaseServiceRole","_path":"/usage/services/serversupabaseservicerole"},{"title":"serverSupabaseSession","_path":"/usage/services/serversupabasesession"},{"title":"serverSupabaseUser","_path":"/usage/services/serversupabaseuser"}]}],"icon":"heroicons:book-open"},{"title":"Demo","_path":"/demo","icon":"i-heroicons-computer-desktop-20-solid"},{"title":"Changelog","_path":"/changelog","icon":"i-heroicons-bookmark"},{"title":"Roadmap","_path":"/roadmap","icon":"i-heroicons-map"}]} \ No newline at end of file +{"generatedAt":1725013741069,"generateTime":4343,"contents":[{"_path":"/get-started","_dir":"","_draft":false,"_partial":false,"_locale":"","title":"Get Started","description":"@nuxtjs/supabase is a Nuxt module for first class integration with Supabase.","icon":"i-heroicons-rocket-launch","body":{"type":"root","children":[{"type":"element","tag":"p","props":{},"children":[{"type":"element","tag":"a","props":{"href":"https://github.com/nuxt-modules/supabase","rel":["nofollow"]},"children":[{"type":"text","value":"@nuxtjs/supabase"}]},{"type":"text","value":" is a Nuxt module for first class integration with Supabase."}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Checkout the "},{"type":"element","tag":"a","props":{"href":"https://v3.nuxtjs.org","rel":["nofollow"]},"children":[{"type":"text","value":"Nuxt 3"}]},{"type":"text","value":" documentation and "},{"type":"element","tag":"a","props":{"href":"https://supabase.com","rel":["nofollow"]},"children":[{"type":"text","value":"Supabase"}]},{"type":"text","value":" to learn more."}]},{"type":"element","tag":"callout","props":{"icon":"i-heroicons-exclamation-triangle-20-solid","color":"amber"},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"For integrating Supabase with Nuxt 2, checkout "},{"type":"element","tag":"a","props":{"href":"https://github.com/supabase-community/nuxt-supabase","rel":["nofollow"]},"children":[{"type":"text","value":"supabase-community/nuxt-supabase"}]},{"type":"text","value":"."}]}]},{"type":"element","tag":"h2","props":{"id":"installation"},"children":[{"type":"text","value":"Installation"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Add "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"@nuxtjs/supabase"}]},{"type":"text","value":" dev dependency to your project:"}]},{"type":"element","tag":"pre","props":{"className":"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"npx nuxi@latest module add supabase\n","language":"bash","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":"npx"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" nuxi@latest"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" module"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" add"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" supabase\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Add "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"@nuxtjs/supabase"}]},{"type":"text","value":" to the "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"modules"}]},{"type":"text","value":" section of "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"nuxt.config.ts"}]},{"type":"text","value":":"}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"export default defineNuxtConfig({\n modules: ['@nuxtjs/supabase'],\n})\n","filename":"nuxt.config.ts","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"export"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" default"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" defineNuxtConfig"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"{\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" modules"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" ["}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"@nuxtjs/supabase"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"]"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Add "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"SUPABASE_URL"}]},{"type":"text","value":" and "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"SUPABASE_KEY"}]},{"type":"text","value":" to the "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":".env"}]},{"type":"text","value":":"}]},{"type":"element","tag":"pre","props":{"className":"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"SUPABASE_URL=\"https://example.supabase.co\"\nSUPABASE_KEY=\"\"\n","filename":"env","language":"bash","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"SUPABASE_URL"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"https://example.supabase.co"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"SUPABASE_KEY"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\"\n"}]}]}]}]},{"type":"element","tag":"callout","props":{"icon":"i-heroicons-light-bulb"},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Alternatively, you can prefix the env variables with "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"NUXT_PUBLIC_"}]},{"type":"text","value":" in order to use runtimeConfig."}]}]},{"type":"element","tag":"h2","props":{"id":"options"},"children":[{"type":"text","value":"Options"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"You can configure the supabase module by using the "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"supabase"}]},{"type":"text","value":" key in "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"nuxt.config"}]},{"type":"text","value":":"}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"export default defineNuxtConfig({\n // ...\n supabase: {\n // Options\n }\n}\n","filename":"nuxt.config.ts","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"export"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" default"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" defineNuxtConfig"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"{\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" // ...\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" supabase"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" // Options\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":6},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}\n"}]}]}]}]},{"type":"element","tag":"h3","props":{"id":"url"},"children":[{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"url"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Default: "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"process.env.SUPABASE_URL"}]},{"type":"text","value":" (ex: "},{"type":"element","tag":"a","props":{"href":"https://example.supabase.co","rel":["nofollow"]},"children":[{"type":"text","value":"https://example.supabase.co"}]},{"type":"text","value":")"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"The unique Supabase URL which is supplied when you create a new project in your project dashboard."}]},{"type":"element","tag":"h3","props":{"id":"key"},"children":[{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"key"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Default: "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"process.env.SUPABASE_KEY"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Supabase 'anon key', used to bypass the Supabase API gateway and interact with your Supabase database making use of user JWT to apply RLS Policies."}]},{"type":"element","tag":"h3","props":{"id":"servicekey"},"children":[{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"serviceKey"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Default: "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"process.env.SUPABASE_SERVICE_KEY"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Supabase 'service role key', has super admin rights and can bypass your Row Level Security."}]},{"type":"element","tag":"h3","props":{"id":"redirect"},"children":[{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"redirect"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Default: "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"true"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Redirect automatically to the configured login page if a non authenticated user is trying to access a guarded. You can disable all redirects by setting this option to false."}]},{"type":"element","tag":"h3","props":{"id":"redirectoptions"},"children":[{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"redirectOptions"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Default:"}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":" redirectOptions: {\n login: '/login',\n callback: '/confirm',\n include: undefined,\n exclude: [],\n cookieRedirect: false,\n }\n","filename":"nuxt.config.ts","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" redirectOptions"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" login"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"/login"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" callback"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"/confirm"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" include"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" undefined,\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" exclude"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" []"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":6},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" cookieRedirect"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC"},"children":[{"type":"text","value":" false"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":7},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }\n"}]}]}]}]},{"type":"element","tag":"ul","props":{},"children":[{"type":"element","tag":"li","props":{},"children":[{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"login"}]},{"type":"text","value":": User will be redirected to this path if not authenticated or after logout."}]},{"type":"element","tag":"li","props":{},"children":[{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"callback"}]},{"type":"text","value":": This is the path the user will be redirect to after supabase login redirection. Should match configured "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"redirectTo"}]},{"type":"text","value":" option of your "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/reference/javascript/auth-signinwithoauth","rel":["nofollow"]},"children":[{"type":"text","value":"signIn method"}]},{"type":"text","value":". Should also be configured in your Supabase dashboard under "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"Authentication -> URL Configuration -> Redirect URLs"}]},{"type":"text","value":"."}]},{"type":"element","tag":"li","props":{},"children":[{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"include"}]},{"type":"text","value":": Routes to include in the redirect. "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"['/admin(/*)?']"}]},{"type":"text","value":" will enable the redirect only for the "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"admin"}]},{"type":"text","value":" page and all sub-pages."}]},{"type":"element","tag":"li","props":{},"children":[{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"exclude"}]},{"type":"text","value":": Routes to exclude from the redirect. "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"['/foo', '/bar/*']"}]},{"type":"text","value":" will exclude the "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"foo"}]},{"type":"text","value":" page and all pages in your "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"bar"}]},{"type":"text","value":" folder."}]},{"type":"element","tag":"li","props":{},"children":[{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"cookieRedirect"}]},{"type":"text","value":": Sets a cookie containing the path an unauthenticated user tried to access. The cookie can then be used on the "},{"type":"element","tag":"a","props":{"href":"https://supabase.nuxtjs.org/authentication#confirm-page-confirm","rel":["nofollow"]},"children":[{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"/confirm"}]}]},{"type":"text","value":" page to redirect the user to the page they previously tried to visit."}]}]},{"type":"element","tag":"h3","props":{"id":"cookiename"},"children":[{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"cookieName"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Default: "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"sb"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Cookie name used for storing the redirect path when using the "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"redirect"}]},{"type":"text","value":" option, added in front of "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"-redirect-path"}]},{"type":"text","value":" to form the full cookie name e.g. "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"sb-redirect-path"}]}]},{"type":"element","tag":"h3","props":{"id":"cookieoptions"},"children":[{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"cookieOptions"}]}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":" cookieOptions: {\n maxAge: 60 * 60 * 8,\n sameSite: 'lax',\n secure: true\n }\n","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" cookieOptions"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" maxAge"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C"},"children":[{"type":"text","value":" 60"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" *"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C"},"children":[{"type":"text","value":" 60"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" *"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C"},"children":[{"type":"text","value":" 8"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" sameSite"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"lax"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" secure"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC"},"children":[{"type":"text","value":" true\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Options for cookies used to share tokens between server and client, refer to "},{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/api/composables/use-cookie#options","rel":["nofollow"]},"children":[{"type":"text","value":"cookieOptions"}]},{"type":"text","value":" for available settings. Please note that the lifetime set here does not determine the Supabase session lifetime."}]},{"type":"element","tag":"h3","props":{"id":"types"},"children":[{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"types"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Default: "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"./types/database.types.ts"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"The path for the generated Supabase TypeScript definitions. The database definitions will be automatically passed to all clients: "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"useSupabaseClient"}]},{"type":"text","value":", "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"serverSupabaseClient"}]},{"type":"text","value":" and "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"serverSupabaseServiceRole"}]},{"type":"text","value":"."}]},{"type":"element","tag":"pre","props":{"className":"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"## Generate types from live database\nsupabase gen types --lang=typescript --project-id YourProjectId > types/database.types.ts\n\n## Generate types when using local environment\nsupabase gen types --lang=typescript --local > types/database.types.ts\n","language":"bash","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"## Generate types from live database\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":"supabase"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" gen"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" types"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" --lang=typescript"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" --project-id"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" YourProjectId"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" >"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" types/database.types.ts\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"## Generate types when using local environment\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":"supabase"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" gen"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" types"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" --lang=typescript"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" --local"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" >"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" types/database.types.ts\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Set to "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"false"}]},{"type":"text","value":" to disable."}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Check Supabase "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/reference/javascript/release-notes#typescript-support","rel":["nofollow"]},"children":[{"type":"text","value":"documentation"}]},{"type":"text","value":" for further information."}]},{"type":"element","tag":"h3","props":{"id":"clientoptions"},"children":[{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"clientOptions"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Default:"}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":" clientOptions: { }\n","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" clientOptions"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Supabase client options "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/reference/javascript/initializing#parameters","rel":["nofollow"]},"children":[{"type":"text","value":"available here"}]},{"type":"text","value":" merged with default values from "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"@supabase/ssr"}]},{"type":"text","value":":"}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":" clientOptions: {\n auth: {\n flowType: 'pkce',\n autoRefreshToken: isBrowser(),\n detectSessionInUrl: isBrowser(),\n persistSession: true,\n },\n }\n","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" clientOptions"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" auth"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" flowType"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"pkce"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" autoRefreshToken"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" isBrowser"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" detectSessionInUrl"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" isBrowser"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":6},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" persistSession"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC"},"children":[{"type":"text","value":" true"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":7},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" },\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":8},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }\n"}]}]}]}]},{"type":"element","tag":"h2","props":{"id":"demo"},"children":[{"type":"text","value":"Demo"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"A live demo is made for see this module in action on "},{"type":"element","tag":"a","props":{"href":"https://n3-supabase.netlify.app","rel":["nofollow"]},"children":[{"type":"text","value":"n3-supabase.netlify.app"}]},{"type":"text","value":", read more in the "},{"type":"element","tag":"a","props":{"href":"/demo"},"children":[{"type":"text","value":"demo section"}]},{"type":"text","value":"."}]},{"type":"element","tag":"p","props":{},"children":[{"type":"element","tag":"a","props":{"href":"https://n3-supabase.netlify.app","rel":["nofollow"]},"children":[{"type":"element","tag":"img","props":{"alt":"Supabase demo with Nuxt 3","src":"https://user-images.githubusercontent.com/904724/160422461-8f87500a-8dec-4413-86b2-ba04e1b2d17b.png"},"children":[]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Also checkout the "},{"type":"element","tag":"a","props":{"href":"https://www.youtube.com/watch?v=jIyiRT6zT8Q","rel":["nofollow"]},"children":[{"type":"text","value":"YouTube video"}]},{"type":"text","value":" about its usage in a live demo."}]},{"type":"element","tag":"style","props":{},"children":[{"type":"text","value":"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}"}]}],"toc":{"title":"","searchDepth":2,"depth":2,"links":[{"id":"installation","depth":2,"text":"Installation"},{"id":"options","depth":2,"text":"Options","children":[{"id":"url","depth":3,"text":"url"},{"id":"key","depth":3,"text":"key"},{"id":"servicekey","depth":3,"text":"serviceKey"},{"id":"redirect","depth":3,"text":"redirect"},{"id":"redirectoptions","depth":3,"text":"redirectOptions"},{"id":"cookiename","depth":3,"text":"cookieName"},{"id":"cookieoptions","depth":3,"text":"cookieOptions"},{"id":"types","depth":3,"text":"types"},{"id":"clientoptions","depth":3,"text":"clientOptions"}]},{"id":"demo","depth":2,"text":"Demo"}]}},"_type":"markdown","_id":"content:2.get-started.md","_source":"content","_file":"2.get-started.md","_stem":"2.get-started","_extension":"md"},{"_path":"/authentication","_dir":"","_draft":false,"_partial":false,"_locale":"","title":"Authentication","description":"Authenticate your user thanks to the PKCE Oauth protocol that enables secure exchange of refresh and access tokens between an application and the authorization server","icon":"i-heroicons-lock-closed","body":{"type":"root","children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"With the default options, the module requires a log-in page and a confirm page to handle the "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/guides/resources/glossary#pkce","rel":["nofollow"]},"children":[{"type":"text","value":"PKCE authorization code flow"}]},{"type":"text","value":". If you want to understand how it works under the hood, you can read this "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/guides/auth/server-side-rendering#understanding-the-authentication-flow","rel":["nofollow"]},"children":[{"type":"text","value":"section"}]},{"type":"text","value":"."}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"All you need to do is to create a "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"login.vue"}]},{"type":"text","value":" and "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"confirm.vue"}]},{"type":"text","value":" page in the "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"pages"}]},{"type":"text","value":" folder."}]},{"type":"element","tag":"callout","props":{"icon":"i-heroicons-light-bulb"},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"For advanced users who want to implement the auth behaviour themselves, you can disable or override the "},{"type":"element","tag":"a","props":{"href":"/get-started#redirect"},"children":[{"type":"text","value":"redirect options"}]},{"type":"text","value":"."}]}]},{"type":"element","tag":"h2","props":{"id":"log-in-page-login"},"children":[{"type":"text","value":"Log-in page - "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"/login"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Each time a user is trying to access a page that needs authentication, he will automatically be redirected to the configured log in page. If you want to allow access to \"public\" page, you just need to add them in the "},{"type":"element","tag":"a","props":{"href":"/get-started#redirectoptions"},"children":[{"type":"text","value":"exclude"}]},{"type":"text","value":" redirect option. Alternatively, you can enable the redirect only for certain routes using the "},{"type":"element","tag":"a","props":{"href":"/get-started#redirectoptions"},"children":[{"type":"text","value":"include"}]},{"type":"text","value":" redirect option."}]},{"type":"element","tag":"callout","props":{"icon":"i-heroicons-exclamation-triangle-20-solid","color":"amber"},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Ensure to activate the authentication providers you want in the Supabase Dashboard under "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"Authentication -> Providers"}]},{"type":"text","value":"."}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"The log-in page initiates the log-in method(s) you choose from the "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/reference/javascript/auth-signinwithpassword","rel":["nofollow"]},"children":[{"type":"text","value":"available authorization methods"}]},{"type":"text","value":" provided by Supabase, it could looks like:"}]},{"type":"element","tag":"pre","props":{"className":"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"\n\n","filename":"pages/login.vue","language":"vue","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"<"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"script"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" setup"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" lang"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"ts"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" supabase "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useSupabaseClient"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" email "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" ref"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"''"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" signInWithOtp "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" async"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":6},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" error"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" supabase"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"auth"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"signInWithOtp"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"{\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":7},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" email"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" email"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"value"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":8},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" options"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":9},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" emailRedirectTo"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"http://localhost:3000/confirm"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":10},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":11},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":12},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" if"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" ("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"error"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":") "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"console"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"log"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"error"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":13},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":14},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":15},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"<"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"template"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":16},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" <"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"div"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":17},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" <"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"button"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" @"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"click"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"signInWithOtp"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":18},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" Sign In with E-Mail\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":19},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" \n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":20},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" <"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"input\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":21},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" v-model"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"email"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":22},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" type"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"email"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":23},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" />\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":24},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" \n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":25},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Once the authorization flow is triggered using the "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"auth"}]},{"type":"text","value":" wrapper of the "},{"type":"element","tag":"a","props":{"href":"/usage/composables/usesupabaseclient"},"children":[{"type":"text","value":"useSupabaseClient"}]},{"type":"text","value":" composable, the session management is handled automatically and the user will be redirected to the page you specify in the redirect option ("},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"/confirm"}]},{"type":"text","value":" by default)."}]},{"type":"element","tag":"h2","props":{"id":"confirm-page-confirm"},"children":[{"type":"text","value":"Confirm page - "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"/confirm"}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"The confirmation page receives the supabase callback. From there you can check the user value and redirect to the appropriate page."}]},{"type":"element","tag":"callout","props":{"icon":"i-heroicons-light-bulb"},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"The redirect URL must be configured in your Supabase dashboard under "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"Authentication -> URL Configuration -> Redirect URLs"}]},{"type":"text","value":"."}]}]},{"type":"element","tag":"pre","props":{"className":"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"\n\n\n","filename":"pages/confirm.vue","language":"vue","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"<"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"script"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" setup"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" lang"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"ts"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" user "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useSupabaseUser"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"watch"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"(user"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":","}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" if"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" ("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"user"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"value"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":") "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"{\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":6},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" // Redirect to protected page\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":7},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" return"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" navigateTo"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"/"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":8},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":9},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"},"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" immediate"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC"},"children":[{"type":"text","value":" true"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":10},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":11},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":12},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"<"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"template"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":13},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" <"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"div"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"Waiting for login..."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":14},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\n"}]}]}]}]},{"type":"element","tag":"h3","props":{"id":"redirect-path"},"children":[{"type":"text","value":"Redirect path"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"You can easily handle redirection to the initial requested route after login."}]},{"type":"element","tag":"callout","props":{"icon":"i-heroicons-light-bulb"},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"You must enable the "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"cookieRedirect"}]},{"type":"text","value":" option of the "},{"type":"element","tag":"a","props":{"href":"/get-started#redirectoptions"},"children":[{"type":"text","value":"redirectOptions"}]},{"type":"text","value":" to allow cookie storage and take benefit of this feature."}]}]},{"type":"element","tag":"pre","props":{"className":"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"\n\n","filename":"pages/confirm.vue","language":"vue","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"<"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"script"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" setup"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" lang"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"ts"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" user "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useSupabaseUser"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"// Get redirect path from cookies\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" cookieName "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useRuntimeConfig"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"public"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"supabase"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"cookieName\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":6},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" redirectPath "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useCookie"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"`${"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"cookieName"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"-redirect-path"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"`"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"value\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":7},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":8},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"watch"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"(user"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":","}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":9},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" if"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" ("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"user"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"value"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":") "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"{\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":10},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" // Clear cookie\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":11},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useCookie"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"`${"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"cookieName"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"-redirect-path"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"`"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"value"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" null\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":12},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" // Redirect to path\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":13},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" return"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" navigateTo"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"redirectPath"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ||"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"/"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":";"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" \n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":14},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":15},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"},"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" immediate"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC"},"children":[{"type":"text","value":" true"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":16},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":17},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"<"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"template"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":18},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" <"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"div"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"Waiting for login..."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":19},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\n"}]}]}]}]},{"type":"element","tag":"style","props":{},"children":[{"type":"text","value":"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}"}]}],"toc":{"title":"","searchDepth":2,"depth":2,"links":[{"id":"log-in-page-login","depth":2,"text":"Log-in page - /login"},{"id":"confirm-page-confirm","depth":2,"text":"Confirm page - /confirm","children":[{"id":"redirect-path","depth":3,"text":"Redirect path"}]}]}},"_type":"markdown","_id":"content:3.authentication.md","_source":"content","_file":"3.authentication.md","_stem":"3.authentication","_extension":"md"},{"_path":"/usage/_dir","_dir":"usage","_draft":false,"_partial":true,"_locale":"","title":"Usage","icon":"heroicons:book-open","_id":"content:4.usage:_dir.yml","_type":"yaml","_source":"content","_file":"4.usage/_dir.yml","_stem":"4.usage/_dir","_extension":"yml"},{"_path":"/usage/composables/_dir","_dir":"composables","_draft":false,"_partial":true,"_locale":"","title":"Vue composables","_id":"content:4.usage:composables:_dir.yml","_type":"yaml","_source":"content","_file":"4.usage/composables/_dir.yml","_stem":"4.usage/composables/_dir","_extension":"yml"},{"_path":"/usage/composables/usesupabaseclient","_dir":"composables","_draft":false,"_partial":false,"_locale":"","title":"useSupabaseClient","description":"Make requests to the Supabase API with the useSupabaseClient composable","body":{"type":"root","children":[{"type":"element","tag":"p","props":{},"children":[{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/guide/directory-structure/composables","rel":["nofollow"]},"children":[{"type":"text","value":"Auto-import"}]},{"type":"text","value":" your client inside your vue files."}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"This composable is using "},{"type":"element","tag":"a","props":{"href":"https://github.com/supabase/supabase-js/","rel":["nofollow"]},"children":[{"type":"text","value":"supabase-js"}]},{"type":"text","value":" under the hood, it gives access to the "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/reference/javascript/initializing","rel":["nofollow"]},"children":[{"type":"text","value":"Supabase client"}]},{"type":"text","value":"."}]},{"type":"element","tag":"blockquote","props":{},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"The client is initialized with the "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"SUPABASE_KEY"}]},{"type":"text","value":" you must have in your "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":".env"}]},{"type":"text","value":" file. It establishes the connection with the database and make use of user JWT to apply "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/learn/auth-deep-dive/auth-row-level-security","rel":["nofollow"]},"children":[{"type":"text","value":"RLS Policies"}]},{"type":"text","value":" implemented in Supabase. If you want to bypass policies, you can use the "},{"type":"element","tag":"a","props":{"href":"/usage/services/serversupabaseservicerole"},"children":[{"type":"text","value":"serverSupabaseServiceRole"}]},{"type":"text","value":"."}]}]},{"type":"element","tag":"h2","props":{"id":"authentication"},"children":[{"type":"text","value":"Authentication"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"The useSupabaseClient composable is providing all methods to manage authorization under "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"useSupabaseClient().auth"}]},{"type":"text","value":". For more details please see the "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/reference/javascript/auth-api","rel":["nofollow"]},"children":[{"type":"text","value":"supabase-js auth documentation"}]},{"type":"text","value":". Here is an example for signing in and out:"}]},{"type":"element","tag":"callout","props":{"icon":"i-heroicons-light-bulb"},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"If you want a full explanation on how to handle the authentication process, please read this "},{"type":"element","tag":"a","props":{"href":"/get-started#handle-authentication"},"children":[{"type":"text","value":"section"}]},{"type":"text","value":"."}]}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"\n","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"<"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"script setup lang"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"ts"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" supabase "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useSupabaseClient"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" signInWithOAuth "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" async"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" error"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" supabase"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"auth"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"signInWithOAuth"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"{\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":6},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" provider"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"github"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":7},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" options"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":8},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" redirectTo"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"http://localhost:3000/confirm"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":9},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" },\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":10},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":11},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" if"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" ("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"error"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":") "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"console"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"log"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"error"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":12},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":13},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":14},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" signOut "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" async"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":15},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" error"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" supabase"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"auth"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"signOut"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":16},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" if"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" ("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"error"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":") "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"console"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"log"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"error"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":17},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":18},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Please also take a look at "},{"type":"element","tag":"a","props":{"href":"/get-started"},"children":[{"type":"text","value":"Get Started"}]},{"type":"text","value":" for the authorization flow."}]},{"type":"element","tag":"h2","props":{"id":"database-request"},"children":[{"type":"text","value":"Database Request"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Please check "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/reference/javascript/select","rel":["nofollow"]},"children":[{"type":"text","value":"Supabase"}]},{"type":"text","value":" documentation to fully use the power of Supabase client."}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Here is an example of a fetch using the "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"select"}]},{"type":"text","value":" method with Nuxt 3 "},{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/getting-started/data-fetching#useasyncdata","rel":["nofollow"]},"children":[{"type":"text","value":"useAsyncData"}]},{"type":"text","value":" composable."}]},{"type":"element","tag":"pre","props":{"className":"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"\n","language":"vue","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"<"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"script"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" setup"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" lang"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"ts"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" client "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useSupabaseClient"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" data"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" restaurant "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useAsyncData"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"restaurant"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":","}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" async"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" data"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" client"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"from"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"restaurants"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"select"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"name, location"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"eq"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"name"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":","}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"My Restaurant Name"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"single"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":6},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":7},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" return"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" data\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":8},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":9},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\n"}]}]}]}]},{"type":"element","tag":"h2","props":{"id":"realtime"},"children":[{"type":"text","value":"Realtime"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Based on "},{"type":"element","tag":"a","props":{"href":"https://github.com/supabase/realtime","rel":["nofollow"]},"children":[{"type":"text","value":"Supabase Realtime"}]},{"type":"text","value":", listen to changes in your PostgreSQL Database and broadcasts them over WebSockets."}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"To enable it, make sure you have turned on the "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/guides/api#realtime-api","rel":["nofollow"]},"children":[{"type":"text","value":"Realtime API"}]},{"type":"text","value":" for your table."}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Then, listen to changes directly in your vue page / component:"}]},{"type":"element","tag":"pre","props":{"className":"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"\n","language":"vue","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"<"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"script"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" setup"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" lang"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"ts"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"import"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" type"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" RealtimeChannel"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" from"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"@supabase/supabase-js"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" client "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useSupabaseClient"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":6},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"let"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" realtimeChannel"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":" RealtimeChannel\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":7},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":8},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"// Fetch collaborators and get the refresh method provided by useAsyncData\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":9},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" data"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" collaborators"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":","}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" refresh"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" refreshCollaborators "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useAsyncData"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"collaborators"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":","}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" async"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":10},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" data"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" client"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"from"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"collaborators"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"select"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"name"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":11},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" return"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" data\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":12},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":13},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":14},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"// Once page is mounted, listen to changes on the `collaborators` table and refresh collaborators when receiving event\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":15},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"onMounted"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":16},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" // Real time listener for new workouts\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":17},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" realtimeChannel"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" client"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"channel"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"public:collaborators"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"on"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"(\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":18},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"postgres_changes"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":",\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":19},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" event"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"*"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":","}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" schema"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"public"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":","}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" table"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"collaborators"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" },\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":20},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" refreshCollaborators"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":21},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" )\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":22},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":23},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" realtimeChannel"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"subscribe"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":24},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":25},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":26},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" // Don't forget to unsubscribe when user left the page\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":27},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"onUnmounted"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":28},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" client"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"removeChannel"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"realtimeChannel"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":29},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":30},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\n"}]}]}]}]},{"type":"element","tag":"h2","props":{"id":"typescript"},"children":[{"type":"text","value":"Typescript"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Database typings are passed to the client out of the box if the database generated types are found at "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"./types/database.types.ts"}]},{"type":"text","value":" or "},{"type":"element","tag":"a","props":{"href":"/get-started#types"},"children":[{"type":"text","value":"your configured types path"}]},{"type":"text","value":". Check Supabase "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/reference/javascript/release-notes#typescript-support","rel":["nofollow"]},"children":[{"type":"text","value":"documentation"}]},{"type":"text","value":" for further information."}]},{"type":"element","tag":"pre","props":{"className":"language-shell shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"## Generate types from live database\nsupabase gen types typescript --project-id YourProjectId > types/database.types.ts\n\n## Generate types when using local environment\nsupabase gen types typescript --local > types/database.types.ts\n","language":"shell","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"## Generate types from live database\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":"supabase"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" gen"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" types"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" typescript"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" --project-id"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" YourProjectId"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" >"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" types/database.types.ts\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"## Generate types when using local environment\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":"supabase"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" gen"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" types"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" typescript"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" --local"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" >"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":" types/database.types.ts\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"You can also pass Database typings to the client manually:"}]},{"type":"element","tag":"pre","props":{"className":"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"\n","language":"vue","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"<"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"script"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" setup"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" lang"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"ts"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\""}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"import"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" type"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" Database"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" from"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"~/types"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" client "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useSupabaseClient"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"<"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B"},"children":[{"type":"text","value":"Database"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\n"}]}]}]}]},{"type":"element","tag":"style","props":{},"children":[{"type":"text","value":"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}"}]}],"toc":{"title":"","searchDepth":2,"depth":2,"links":[{"id":"authentication","depth":2,"text":"Authentication"},{"id":"database-request","depth":2,"text":"Database Request"},{"id":"realtime","depth":2,"text":"Realtime"},{"id":"typescript","depth":2,"text":"Typescript"}]}},"_type":"markdown","_id":"content:4.usage:composables:useSupabaseClient.md","_source":"content","_file":"4.usage/composables/useSupabaseClient.md","_stem":"4.usage/composables/useSupabaseClient","_extension":"md"},{"_path":"/usage/composables/usesupabasesession","_dir":"composables","_draft":false,"_partial":false,"_locale":"","title":"useSupabaseSession","description":"Auto import and use your Supabase user's session with the useSupabaseSession composable","body":{"type":"root","children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Once logged in, you can "},{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/guide/directory-structure/composables","rel":["nofollow"]},"children":[{"type":"text","value":"auto-import"}]},{"type":"text","value":" your user's session everywhere inside your vue files."}]},{"type":"element","tag":"pre","props":{"className":"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"\n","language":"vue","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"<"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"script"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" setup"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" session "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useSupabaseSession"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\n"}]}]}]}]},{"type":"element","tag":"callout","props":{"icon":"i-heroicons-light-bulb"},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"If you just need the User's information you can use "},{"type":"element","tag":"a","props":{"href":"/usage/composables/usesupabaseuser"},"children":[{"type":"text","value":"useSupabaseUser"}]},{"type":"text","value":" which returns just the User information of the session."}]}]},{"type":"element","tag":"h2","props":{"id":"auth-middleware"},"children":[{"type":"text","value":"Auth middleware"}]},{"type":"element","tag":"callout","props":{"icon":"i-heroicons-light-bulb"},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"By default, the module is implementing a redirect middleware. All pages of your application are automatically redirected to the "},{"type":"element","tag":"a","props":{"href":"/get-started#redirectoptions"},"children":[{"type":"text","value":"login"}]},{"type":"text","value":" page. However, you can allow redirection to \"public\" pages by setting the "},{"type":"element","tag":"a","props":{"href":"/get-started#redirectoptions"},"children":[{"type":"text","value":"exclude"}]},{"type":"text","value":" redirect option. Alternatively, you can enable the redirect only for certain routes using the "},{"type":"element","tag":"a","props":{"href":"/get-started#redirectoptions"},"children":[{"type":"text","value":"include"}]},{"type":"text","value":" redirect option."}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"If the "},{"type":"element","tag":"a","props":{"href":"/get-started#redirect"},"children":[{"type":"text","value":"redirect"}]},{"type":"text","value":" option is disabled, you can protect your authenticated routes by creating a custom middleware in your project, here is an example:"}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"export default defineNuxtRouteMiddleware((to, _from) => {\n const session = useSupabaseSession()\n\n if (!session.value) {\n return navigateTo('/login')\n }\n})\n","filename":"middleware/auth.ts","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"export"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" default"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" defineNuxtRouteMiddleware"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"to"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":","}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" _from"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" session"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useSupabaseSession"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" if"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" ("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"!"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"session"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"value"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":") "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"{\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" return"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" navigateTo"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"/login"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":6},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":7},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Then you can reference your middleware in your page with:"}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"definePageMeta({\n middleware: 'auth'\n})\n","filename":"pages/dashboard.vue","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"definePageMeta"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"{\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" middleware"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"auth"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Learn more about "},{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/guide/directory-structure/middleware","rel":["nofollow"]},"children":[{"type":"text","value":"Nuxt middleware"}]},{"type":"text","value":" and "},{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/guide/directory-structure/pages#page-metadata","rel":["nofollow"]},"children":[{"type":"text","value":"definePageMeta"}]},{"type":"text","value":"."}]},{"type":"element","tag":"style","props":{},"children":[{"type":"text","value":"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}"}]}],"toc":{"title":"","searchDepth":2,"depth":2,"links":[{"id":"auth-middleware","depth":2,"text":"Auth middleware"}]}},"_type":"markdown","_id":"content:4.usage:composables:useSupabaseSession.md","_source":"content","_file":"4.usage/composables/useSupabaseSession.md","_stem":"4.usage/composables/useSupabaseSession","_extension":"md"},{"_path":"/usage/composables/usesupabaseuser","_dir":"composables","_draft":false,"_partial":false,"_locale":"","title":"useSupabaseUser","description":"Auto import and use your Supabase user with the useSupabaseUser composable","body":{"type":"root","children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Once logged in, you can "},{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/guide/directory-structure/composables","rel":["nofollow"]},"children":[{"type":"text","value":"auto-import"}]},{"type":"text","value":" your user everywhere inside your vue files."}]},{"type":"element","tag":"pre","props":{"className":"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"\n","language":"vue","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"<"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"script"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" setup"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":">\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" user "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useSupabaseUser"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"\n"}]}]}]}]},{"type":"element","tag":"h2","props":{"id":"auth-middleware"},"children":[{"type":"text","value":"Auth middleware"}]},{"type":"element","tag":"callout","props":{"icon":"i-heroicons-light-bulb"},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"By default, the module is implementing a redirect middleware. All pages of your application are automatically redirected to the "},{"type":"element","tag":"a","props":{"href":"/get-started#redirectoptions"},"children":[{"type":"text","value":"login"}]},{"type":"text","value":" page. However, you can allow redirection to \"public\" pages by setting the "},{"type":"element","tag":"a","props":{"href":"/get-started#redirectoptions"},"children":[{"type":"text","value":"exclude"}]},{"type":"text","value":" redirect option. Alternatively, you can enable the redirect only for certain routes using the "},{"type":"element","tag":"a","props":{"href":"/get-started#redirectoptions"},"children":[{"type":"text","value":"include"}]},{"type":"text","value":" redirect option."}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"If the "},{"type":"element","tag":"a","props":{"href":"/get-started#redirect"},"children":[{"type":"text","value":"redirect"}]},{"type":"text","value":" option is disabled, you can protect your authenticated routes by creating a custom middleware in your project, here is an example:"}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"export default defineNuxtRouteMiddleware((to, _from) => {\n const user = useSupabaseUser()\n\n if (!user.value) {\n return navigateTo('/login')\n }\n})\n","filename":"middleware/auth.ts","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"export"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" default"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" defineNuxtRouteMiddleware"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"to"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":","}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" _from"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" user"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useSupabaseUser"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" if"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" ("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"!"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"user"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"value"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":") "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"{\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" return"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" navigateTo"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"/login"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":6},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":7},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Then you can reference your middleware in your page with:"}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"definePageMeta({\n middleware: 'auth'\n})\n","filename":"pages/dashboard.vue","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"definePageMeta"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"{\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" middleware"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"auth"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Learn more about "},{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/guide/directory-structure/middleware","rel":["nofollow"]},"children":[{"type":"text","value":"Nuxt middleware"}]},{"type":"text","value":" and "},{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/guide/directory-structure/pages#page-metadata","rel":["nofollow"]},"children":[{"type":"text","value":"definePageMeta"}]},{"type":"text","value":"."}]},{"type":"element","tag":"style","props":{},"children":[{"type":"text","value":"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}"}]}],"toc":{"title":"","searchDepth":2,"depth":2,"links":[{"id":"auth-middleware","depth":2,"text":"Auth middleware"}]}},"_type":"markdown","_id":"content:4.usage:composables:useSupabaseUser.md","_source":"content","_file":"4.usage/composables/useSupabaseUser.md","_stem":"4.usage/composables/useSupabaseUser","_extension":"md"},{"_path":"/usage/services/_dir","_dir":"services","_draft":false,"_partial":true,"_locale":"","title":"Server services","_id":"content:4.usage:services:_dir.yml","_type":"yaml","_source":"content","_file":"4.usage/services/_dir.yml","_stem":"4.usage/services/_dir","_extension":"yml"},{"_path":"/usage/services/serversupabaseclient","_dir":"services","_draft":false,"_partial":false,"_locale":"","title":"serverSupabaseClient","description":"Make requests to the Supabase API on server side with the serverSupabaseClient service","body":{"type":"root","children":[{"type":"element","tag":"callout","props":{"color":"amber","icon":"i-heroicons-exclamation-triangle-20-solid"},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"This section assumes you're familiar with "},{"type":"element","tag":"a","props":{"href":"https://v3.nuxtjs.org/guide/concepts/server-engine","rel":["nofollow"]},"children":[{"type":"text","value":"Nitro"}]},{"type":"text","value":", the server engine powered by Nuxt."}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"This function is working similary as the "},{"type":"element","tag":"a","props":{"href":"/usage/composables/usesupabaseclient"},"children":[{"type":"text","value":"useSupabaseClient"}]},{"type":"text","value":" composable but is designed to be used in "},{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/guide/directory-structure/server#server-routes","rel":["nofollow"]},"children":[{"type":"text","value":"server routes"}]},{"type":"text","value":"."}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Define your server route and just import the "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"serverSupabaseClient"}]},{"type":"text","value":" from "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"#supabase/server"}]},{"type":"text","value":". Be careful, "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"serverSupabaseClient"}]},{"type":"text","value":" is returning a promise."}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"import { serverSupabaseClient } from '#supabase/server'\n\nexport default eventHandler(async (event) => {\n const client = await serverSupabaseClient(event)\n\n const { data } = await client.from('libraries').select('*')\n\n return { libraries: data }\n})\n","filename":"server/api/libraries.ts","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"import"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" serverSupabaseClient"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" from"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"#supabase/server"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"export"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" default"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" eventHandler"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"async"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"event"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" client"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" serverSupabaseClient"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"event"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":6},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" data"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" client"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"from"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"libraries"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"select"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"*"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":7},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":8},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" return"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" libraries"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" data"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":9},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Then call your API route from any vue file:"}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"const fetchLibrary = async () => {\n const { libraries } = await $fetch('/api/libraries')\n}\n","filename":"pages/index.vue","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" fetchLibrary "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" async"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" libraries"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" $fetch"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"/api/libraries"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Be careful, if you want to call this route on SSR, please read this "},{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/getting-started/data-fetching#isomorphic-fetch-and-fetch","rel":["nofollow"]},"children":[{"type":"text","value":"section"}]},{"type":"text","value":", you must send your browser cookies including your supabase token."}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"const { data: { libraries }} = await useFetch('/api/libraries', {\n headers: useRequestHeaders(['cookie'])\n})\n","filename":"pages/index.vue","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" data"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" libraries "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useFetch"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"/api/libraries"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":","}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" headers"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useRequestHeaders"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"(["}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"cookie"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"])\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]}]}]},{"type":"element","tag":"style","props":{},"children":[{"type":"text","value":"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}"}]}],"toc":{"title":"","searchDepth":2,"depth":2,"links":[]}},"_type":"markdown","_id":"content:4.usage:services:1.serverSupabaseClient.md","_source":"content","_file":"4.usage/services/1.serverSupabaseClient.md","_stem":"4.usage/services/1.serverSupabaseClient","_extension":"md"},{"_path":"/usage/services/serversupabaseservicerole","_dir":"services","_draft":false,"_partial":false,"_locale":"","title":"serverServiceRole","description":"Make requests with super admin rights to the Supabase API with the serverSupabaseServiceRole service","navigation":{"title":"serverSupabaseServiceRole"},"body":{"type":"root","children":[{"type":"element","tag":"callout","props":{"color":"amber","icon":"i-heroicons-exclamation-triangle-20-solid"},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"This section assumes you're familiar with "},{"type":"element","tag":"a","props":{"href":"https://v3.nuxtjs.org/guide/concepts/server-engine","rel":["nofollow"]},"children":[{"type":"text","value":"Nitro"}]},{"type":"text","value":", the server engine powered by Nuxt."}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"This function is designed to work only in "},{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/guide/directory-structure/server#server-routes","rel":["nofollow"]},"children":[{"type":"text","value":"server routes"}]},{"type":"text","value":", there is no vue composable equivalent."}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"It works similary as the "},{"type":"element","tag":"a","props":{"href":"/usage/services/serversupabaseclient"},"children":[{"type":"text","value":"serverSupabaseClient"}]},{"type":"text","value":" but it provides a client with super admin rights that can bypass your "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/guides/auth/row-level-security","rel":["nofollow"]},"children":[{"type":"text","value":"Row Level Security"}]},{"type":"text","value":"."}]},{"type":"element","tag":"blockquote","props":{},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"The client is initialized with the "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"SUPABASE_SERVICE_KEY"}]},{"type":"text","value":" you must have in your "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":".env"}]},{"type":"text","value":" file. Checkout the doc if you want to know more about "},{"type":"element","tag":"a","props":{"href":"https://supabase.com/docs/learn/auth-deep-dive/auth-deep-dive-jwts#jwts-in-supabase","rel":["nofollow"]},"children":[{"type":"text","value":"Supabase keys"}]},{"type":"text","value":"."}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Define your server route and just import the "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"serverSupabaseServiceRole"}]},{"type":"text","value":" from "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"#supabase/server"}]},{"type":"text","value":"."}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"import { serverSupabaseServiceRole } from '#supabase/server'\n\nexport default eventHandler(async (event) => {\n const client = serverSupabaseServiceRole(event)\n\n const { data } = await client.from('rls-protected-table').select()\n\n return { sensitiveData: data }\n})\n","filename":"server/api/bypass-rls.ts","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"import"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" serverSupabaseServiceRole"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" from"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"#supabase/server"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"export"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" default"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" eventHandler"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"async"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"event"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" client"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" serverSupabaseServiceRole"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"event"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":6},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" data"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" client"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"from"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"rls-protected-table"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":"select"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"()\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":7},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":8},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" return"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" sensitiveData"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" data"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":9},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Then call your API route from any vue file:"}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"const fetchSensitiveData = async () => {\n const { sensitiveData } = await useFetch('/api/bypass-rls')\n}\n","filename":"pages/index.vue","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" fetchSensitiveData "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" async"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" sensitiveData"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useFetch"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"/api/bypass-rls"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}\n"}]}]}]}]},{"type":"element","tag":"style","props":{},"children":[{"type":"text","value":"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}"}]}],"toc":{"title":"","searchDepth":2,"depth":2,"links":[]}},"_type":"markdown","_id":"content:4.usage:services:2.serverSupabaseServiceRole.md","_source":"content","_file":"4.usage/services/2.serverSupabaseServiceRole.md","_stem":"4.usage/services/2.serverSupabaseServiceRole","_extension":"md"},{"_path":"/usage/services/serversupabasesession","_dir":"services","_draft":false,"_partial":false,"_locale":"","title":"serverSupabaseSession","description":"Get your Supabase user's session from serverside with the serverSupabaseUser service","body":{"type":"root","children":[{"type":"element","tag":"callout","props":{"color":"amber","icon":"i-heroicons-exclamation-triangle-20-solid"},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"This section assumes you're familiar with "},{"type":"element","tag":"a","props":{"href":"https://v3.nuxtjs.org/guide/concepts/server-engine","rel":["nofollow"]},"children":[{"type":"text","value":"Nitro"}]},{"type":"text","value":", the server engine powered by Nuxt."}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"This function is similar to the "},{"type":"element","tag":"a","props":{"href":"/usage/composables/usesupabasesession"},"children":[{"type":"text","value":"useSupabaseSession"}]},{"type":"text","value":" composable but is used in "},{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/guide/directory-structure/server#server-routes","rel":["nofollow"]},"children":[{"type":"text","value":"server routes"}]},{"type":"text","value":"."}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Define your server route and import the "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"serverSupabaseSession"}]},{"type":"text","value":" from "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"#supabase/server"}]},{"type":"text","value":"."}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"import { serverSupabaseSession } from '#supabase/server'\n\nexport default defineEventHandler(async (event) => {\n return await serverSupabaseSession(event)\n})\n","filename":"server/api/session.ts","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"import"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" serverSupabaseSession"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" from"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"#supabase/server"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"export"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" default"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" defineEventHandler"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"async"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"event"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" return"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" serverSupabaseSession"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"event"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Then call your api route from any vue file:"}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"const session = ref(null)\n\nconst fetchSession = async () => {\n session.value = await $fetch('/api/session')\n}\n","filename":"pages/index.vue","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" session "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" ref"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"null"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" fetchSession "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" async"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" session"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"value"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" $fetch"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"/api/session"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Be careful, if you want to call this route on SSR, please read this "},{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/getting-started/data-fetching#isomorphic-fetch-and-fetch","rel":["nofollow"]},"children":[{"type":"text","value":"section"}]},{"type":"text","value":", you must send your browser cookies including your supabase token."}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"const session = ref(null)\n\nconst { data } = await useFetch('/api/session', {\n headers: useRequestHeaders(['cookie'])\n})\n\nsession.value = data\n","filename":"pages/index.vue","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" session "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" ref"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"null"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" data "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useFetch"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"/api/session"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":","}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" headers"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useRequestHeaders"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"(["}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"cookie"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"])\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":6},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":7},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"session"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"value "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" data\n"}]}]}]}]},{"type":"element","tag":"style","props":{},"children":[{"type":"text","value":"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}"}]}],"toc":{"title":"","searchDepth":2,"depth":2,"links":[]}},"_type":"markdown","_id":"content:4.usage:services:3.serverSupabaseSession.md","_source":"content","_file":"4.usage/services/3.serverSupabaseSession.md","_stem":"4.usage/services/3.serverSupabaseSession","_extension":"md"},{"_path":"/usage/services/serversupabaseuser","_dir":"services","_draft":false,"_partial":false,"_locale":"","title":"serverSupabaseUser","description":"Get your Supabase user from serverside with the serverSupabaseUser service","body":{"type":"root","children":[{"type":"element","tag":"callout","props":{"color":"amber","icon":"i-heroicons-exclamation-triangle-20-solid"},"children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"This section assumes you're familiar with "},{"type":"element","tag":"a","props":{"href":"https://v3.nuxtjs.org/guide/concepts/server-engine","rel":["nofollow"]},"children":[{"type":"text","value":"Nitro"}]},{"type":"text","value":", the server engine powered by Nuxt."}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"This function is similar to the "},{"type":"element","tag":"a","props":{"href":"/usage/composables/usesupabaseuser"},"children":[{"type":"text","value":"useSupabaseUser"}]},{"type":"text","value":" composable but is used in "},{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/guide/directory-structure/server#server-routes","rel":["nofollow"]},"children":[{"type":"text","value":"server routes"}]},{"type":"text","value":"."}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Define your server route and import the "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"serverSupabaseUser"}]},{"type":"text","value":" from "},{"type":"element","tag":"code","props":{"className":[]},"children":[{"type":"text","value":"#supabase/server"}]},{"type":"text","value":"."}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"import { serverSupabaseUser } from '#supabase/server'\n\nexport default defineEventHandler(async (event) => {\n return await serverSupabaseUser(event)\n})\n","filename":"server/api/me.ts","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"import"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" serverSupabaseUser"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" }"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" from"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" '"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"#supabase/server"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"export"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" default"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" defineEventHandler"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"async"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":"event"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":")"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" return"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" serverSupabaseUser"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"event"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Then call your api route from any vue file:"}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"const user = ref(null)\n\nconst fetchMe = async () => {\n user.value = await $fetch('/api/me')\n}\n","filename":"pages/index.vue","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" user "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" ref"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"null"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" fetchMe "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" async"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ()"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":" =>"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" user"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"value"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" $fetch"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"/api/me"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}\n"}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Be careful, if you want to call this route on SSR, please read this "},{"type":"element","tag":"a","props":{"href":"https://nuxt.com/docs/getting-started/data-fetching#isomorphic-fetch-and-fetch","rel":["nofollow"]},"children":[{"type":"text","value":"section"}]},{"type":"text","value":", you must send your browser cookies including your supabase token."}]},{"type":"element","tag":"pre","props":{"className":"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","code":"const user = ref(null)\n\nconst { data } = await useFetch('/api/me', {\n headers: useRequestHeaders(['cookie'])\n})\n\nuser.value = data\n","filename":"pages/index.vue","language":"ts","meta":"","style":""},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line","line":1},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" user "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" ref"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"null"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":2},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":3},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA"},"children":[{"type":"text","value":"const"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" data "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" ="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic"},"children":[{"type":"text","value":" await"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useFetch"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"("}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"/api/me"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":","}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":" {\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":4},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178"},"children":[{"type":"text","value":" headers"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":":"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF"},"children":[{"type":"text","value":" useRequestHeaders"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"(["}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D"},"children":[{"type":"text","value":"cookie"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"'"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"])\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":5},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"}"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":")\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":6},"children":[{"type":"element","tag":"span","props":{"emptyLinePlaceholder":true},"children":[{"type":"text","value":"\n"}]}]},{"type":"element","tag":"span","props":{"class":"line","line":7},"children":[{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"user"}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":"value "}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF"},"children":[{"type":"text","value":"="}]},{"type":"element","tag":"span","props":{"style":"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8"},"children":[{"type":"text","value":" data\n"}]}]}]}]},{"type":"element","tag":"style","props":{},"children":[{"type":"text","value":"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}"}]}],"toc":{"title":"","searchDepth":2,"depth":2,"links":[]}},"_type":"markdown","_id":"content:4.usage:services:4.serverSupabaseUser.md","_source":"content","_file":"4.usage/services/4.serverSupabaseUser.md","_stem":"4.usage/services/4.serverSupabaseUser","_extension":"md"},{"_path":"/demo","_dir":"","_draft":false,"_partial":false,"_locale":"","title":"Demo","description":"Demonstration of using Supabase with Nuxt.","icon":"i-heroicons-computer-desktop-20-solid","body":{"type":"root","children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Demonstration of using Supabase with Nuxt."}]},{"type":"element","tag":"p","props":{},"children":[{"type":"element","tag":"a","props":{"href":"https://n3-supabase.netlify.app","rel":["nofollow"]},"children":[{"type":"element","tag":"img","props":{"alt":"Supabase demo with Nuxt 3","src":"https://user-images.githubusercontent.com/904724/160422461-8f87500a-8dec-4413-86b2-ba04e1b2d17b.png"},"children":[]}]}]},{"type":"element","tag":"h2","props":{"id":"live-demo"},"children":[{"type":"text","value":"Live demo"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"You can play with the demo on "},{"type":"element","tag":"a","props":{"href":"https://n3-supabase.netlify.app","rel":["nofollow"]},"children":[{"type":"text","value":"n3-supabase.netlify.app"}]}]},{"type":"element","tag":"h2","props":{"id":"running-locally"},"children":[{"type":"text","value":"Running locally"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Follow the instruction in the "},{"type":"element","tag":"a","props":{"href":"https://github.com/nuxt-community/supabase-module/tree/main/demo","rel":["nofollow"]},"children":[{"type":"text","value":"demo Readme"}]},{"type":"text","value":"."}]},{"type":"element","tag":"h2","props":{"id":"source-code"},"children":[{"type":"text","value":"Source code"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"The source code is available on Github in the "},{"type":"element","tag":"a","props":{"href":"https://github.com/nuxt-community/supabase-module/tree/main/demo","rel":["nofollow"]},"children":[{"type":"text","value":"demo/ directory"}]},{"type":"text","value":"."}]}],"toc":{"title":"","searchDepth":2,"depth":2,"links":[{"id":"live-demo","depth":2,"text":"Live demo"},{"id":"running-locally","depth":2,"text":"Running locally"},{"id":"source-code","depth":2,"text":"Source code"}]}},"_type":"markdown","_id":"content:5.demo.md","_source":"content","_file":"5.demo.md","_stem":"5.demo","_extension":"md"},{"_path":"/changelog","_dir":"","_draft":false,"_partial":false,"_locale":"","title":"Changelog","description":"Discover the latest updates of the Supabase Module","icon":"i-heroicons-bookmark","body":{"type":"root","children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Discover the lastest updates."}]},{"type":"element","tag":"releases","props":{},"children":[]}],"toc":{"title":"","searchDepth":2,"depth":2,"links":[]}},"_type":"markdown","_id":"content:6.changelog.md","_source":"content","_file":"6.changelog.md","_stem":"6.changelog","_extension":"md"},{"_path":"/roadmap","_dir":"","_draft":false,"_partial":false,"_locale":"","title":"Roadmap","description":"Discover our kaban board for the next release of the Supabase module.","icon":"i-heroicons-map","body":{"type":"root","children":[{"type":"element","tag":"volta-board","props":{"token":"eyJzdGF0dXNlcyI6WyJ0cmlhZ2UiLCJiYWNrbG9nIiwidG9kbyIsImluX3Byb2dyZXNzIiwiaW5fcmV2aWV3IiwiZG9uZSIsInJlbGVhc2VkIiwiY2FuY2VsbGVkIl0sImZpbHRlcnMiOnt9LCJvd25lciI6Im51eHQtbW9kdWxlcyIsIm5hbWUiOiJzdXBhYmFzZSJ9"},"children":[]}],"toc":{"title":"","searchDepth":2,"depth":2,"links":[]}},"_type":"markdown","_id":"content:7.roadmap.md","_source":"content","_file":"7.roadmap.md","_stem":"7.roadmap","_extension":"md"},{"_path":"/","_dir":"","_draft":false,"_partial":false,"_locale":"","title":"Nuxt Supabase - Home","description":"A supa simple wrapper around supabase-js to enable usage and integration within Nuxt.","navigation":false,"hero":{"title":"Nuxt [Supabase]{.text-primary}","description":"A supa simple wrapper around supabase-js to enable usage and integration within Nuxt.","orientation":"horizontal","links":[{"label":"Get started","icon":"i-heroicons-rocket-launch","to":"/get-started","size":"lg"},{"label":"Star on github","icon":"i-heroicons-star","color":"white","to":"https://github.com/nuxt-modules/supabase","target":"_blank","size":"lg"}],"code":"```ts\n const supabase = useSupabaseClient()\n const email = ref('')\n\n const signInWithOtp = async () => {\n await supabase.auth.signInWithOtp({\n email: email.value,\n })\n }\n```\n"},"features":{"title":"Shipped with many features","items":[{"title":"Nuxt 3 ready","icon":"i-simple-icons-nuxtdotjs","to":"https://nuxt.com","target":"_blank"},{"title":"Vue 3 composables","icon":"i-simple-icons-vuedotjs","to":"https://vuejs.org/guide/reusability/composables.html","target":"_blank"},{"title":"Supabase-js V2","icon":"i-simple-icons-supabase","to":"https://supabase.com","target":"_blank"},{"title":"Usage in API server routes","icon":"i-heroicons-server","to":"usage/services/serversupabaseclient"},{"title":"Authentication support","icon":"i-heroicons-key","to":"/authentication"},{"title":"TypeScript support","icon":"i-simple-icons-typescript","to":"https://www.typescriptlang.org","target":"_blank"}]},"_id":"content:index.yml","_type":"yaml","_source":"content","_file":"index.yml","_stem":"index","_extension":"yml"}],"navigation":[{"title":"Get Started","_path":"/get-started","icon":"i-heroicons-rocket-launch"},{"title":"Authentication","_path":"/authentication","icon":"i-heroicons-lock-closed"},{"title":"Usage","_path":"/usage","children":[{"title":"Vue composables","_path":"/usage/composables","children":[{"title":"useSupabaseClient","_path":"/usage/composables/usesupabaseclient"},{"title":"useSupabaseSession","_path":"/usage/composables/usesupabasesession"},{"title":"useSupabaseUser","_path":"/usage/composables/usesupabaseuser"}]},{"title":"Server services","_path":"/usage/services","children":[{"title":"serverSupabaseClient","_path":"/usage/services/serversupabaseclient"},{"title":"serverSupabaseServiceRole","_path":"/usage/services/serversupabaseservicerole"},{"title":"serverSupabaseSession","_path":"/usage/services/serversupabasesession"},{"title":"serverSupabaseUser","_path":"/usage/services/serversupabaseuser"}]}],"icon":"heroicons:book-open"},{"title":"Demo","_path":"/demo","icon":"i-heroicons-computer-desktop-20-solid"},{"title":"Changelog","_path":"/changelog","icon":"i-heroicons-bookmark"},{"title":"Roadmap","_path":"/roadmap","icon":"i-heroicons-map"}]} \ No newline at end of file diff --git a/api/_content/navigation/i5pZc4XEtQ.1725006402212.json b/api/_content/navigation/i5pZc4XEtQ.1725013684376.json similarity index 100% rename from api/_content/navigation/i5pZc4XEtQ.1725006402212.json rename to api/_content/navigation/i5pZc4XEtQ.1725013684376.json diff --git a/api/_content/query/0CgxMh2nDn.1725006402212.json b/api/_content/query/0CgxMh2nDn.1725013684376.json similarity index 100% rename from api/_content/query/0CgxMh2nDn.1725006402212.json rename to api/_content/query/0CgxMh2nDn.1725013684376.json diff --git a/api/_content/query/0z8C0XHO1T.1725006402212.json b/api/_content/query/0z8C0XHO1T.1725013684376.json similarity index 100% rename from api/_content/query/0z8C0XHO1T.1725006402212.json rename to api/_content/query/0z8C0XHO1T.1725013684376.json diff --git a/api/_content/query/45OFyaq6jH.1725006402212.json b/api/_content/query/45OFyaq6jH.1725013684376.json similarity index 100% rename from api/_content/query/45OFyaq6jH.1725006402212.json rename to api/_content/query/45OFyaq6jH.1725013684376.json diff --git a/api/_content/query/4SGzzquaGr.1725006402212.json b/api/_content/query/4SGzzquaGr.1725013684376.json similarity index 100% rename from api/_content/query/4SGzzquaGr.1725006402212.json rename to api/_content/query/4SGzzquaGr.1725013684376.json diff --git a/api/_content/query/5439goEiFh.1725006402212.json b/api/_content/query/5439goEiFh.1725013684376.json similarity index 100% rename from api/_content/query/5439goEiFh.1725006402212.json rename to api/_content/query/5439goEiFh.1725013684376.json diff --git a/api/_content/query/7akagRHES3.1725006402212.json b/api/_content/query/7akagRHES3.1725013684376.json similarity index 100% rename from api/_content/query/7akagRHES3.1725006402212.json rename to api/_content/query/7akagRHES3.1725013684376.json diff --git a/api/_content/query/80r9Q1yB5X.1725006402212.json b/api/_content/query/80r9Q1yB5X.1725013684376.json similarity index 100% rename from api/_content/query/80r9Q1yB5X.1725006402212.json rename to api/_content/query/80r9Q1yB5X.1725013684376.json diff --git a/api/_content/query/Gxz9GZ4NK0.1725006402212.json b/api/_content/query/Gxz9GZ4NK0.1725013684376.json similarity index 100% rename from api/_content/query/Gxz9GZ4NK0.1725006402212.json rename to api/_content/query/Gxz9GZ4NK0.1725013684376.json diff --git a/api/_content/query/JJ9Joz4sQk.1725006402212.json b/api/_content/query/JJ9Joz4sQk.1725013684376.json similarity index 100% rename from api/_content/query/JJ9Joz4sQk.1725006402212.json rename to api/_content/query/JJ9Joz4sQk.1725013684376.json diff --git a/api/_content/query/MZBly8ycYV.1725006402212.json b/api/_content/query/MZBly8ycYV.1725013684376.json similarity index 100% rename from api/_content/query/MZBly8ycYV.1725006402212.json rename to api/_content/query/MZBly8ycYV.1725013684376.json diff --git a/api/_content/query/NX6rA77pmQ.1725006402212.json b/api/_content/query/NX6rA77pmQ.1725013684376.json similarity index 100% rename from api/_content/query/NX6rA77pmQ.1725006402212.json rename to api/_content/query/NX6rA77pmQ.1725013684376.json diff --git a/api/_content/query/NmhWrRnmKx.1725006402212.json b/api/_content/query/NmhWrRnmKx.1725013684376.json similarity index 100% rename from api/_content/query/NmhWrRnmKx.1725006402212.json rename to api/_content/query/NmhWrRnmKx.1725013684376.json diff --git a/api/_content/query/PKwnxE4Dvh.1725006402212.json b/api/_content/query/PKwnxE4Dvh.1725013684376.json similarity index 100% rename from api/_content/query/PKwnxE4Dvh.1725006402212.json rename to api/_content/query/PKwnxE4Dvh.1725013684376.json diff --git a/api/_content/query/Ue1UBSoyPa.1725006402212.json b/api/_content/query/Ue1UBSoyPa.1725013684376.json similarity index 100% rename from api/_content/query/Ue1UBSoyPa.1725006402212.json rename to api/_content/query/Ue1UBSoyPa.1725013684376.json diff --git a/api/_content/query/Xxnd0ydUti.1725006402212.json b/api/_content/query/Xxnd0ydUti.1725013684376.json similarity index 100% rename from api/_content/query/Xxnd0ydUti.1725006402212.json rename to api/_content/query/Xxnd0ydUti.1725013684376.json diff --git a/api/_content/query/Z0Gn1CUVQt.1725006402212.json b/api/_content/query/Z0Gn1CUVQt.1725013684376.json similarity index 100% rename from api/_content/query/Z0Gn1CUVQt.1725006402212.json rename to api/_content/query/Z0Gn1CUVQt.1725013684376.json diff --git a/api/_content/query/fAcRU6Tr0q.1725006402212.json b/api/_content/query/fAcRU6Tr0q.1725013684376.json similarity index 100% rename from api/_content/query/fAcRU6Tr0q.1725006402212.json rename to api/_content/query/fAcRU6Tr0q.1725013684376.json diff --git a/api/_content/query/hJ9QUBFRaO.1725006402212.json b/api/_content/query/hJ9QUBFRaO.1725013684376.json similarity index 100% rename from api/_content/query/hJ9QUBFRaO.1725006402212.json rename to api/_content/query/hJ9QUBFRaO.1725013684376.json diff --git a/api/_content/query/hTR0awNBk6.1725006402212.json b/api/_content/query/hTR0awNBk6.1725013684376.json similarity index 100% rename from api/_content/query/hTR0awNBk6.1725006402212.json rename to api/_content/query/hTR0awNBk6.1725013684376.json diff --git a/api/_content/query/kTW5TvkZlR.1725006402212.json b/api/_content/query/kTW5TvkZlR.1725013684376.json similarity index 100% rename from api/_content/query/kTW5TvkZlR.1725006402212.json rename to api/_content/query/kTW5TvkZlR.1725013684376.json diff --git a/api/_content/query/lNIwYbwZIk.1725006402212.json b/api/_content/query/lNIwYbwZIk.1725013684376.json similarity index 100% rename from api/_content/query/lNIwYbwZIk.1725006402212.json rename to api/_content/query/lNIwYbwZIk.1725013684376.json diff --git a/api/_content/query/qkxNYcIfXu.1725006402212.json b/api/_content/query/qkxNYcIfXu.1725013684376.json similarity index 100% rename from api/_content/query/qkxNYcIfXu.1725006402212.json rename to api/_content/query/qkxNYcIfXu.1725013684376.json diff --git a/api/_content/query/qrL652uheB.1725006402212.json b/api/_content/query/qrL652uheB.1725013684376.json similarity index 100% rename from api/_content/query/qrL652uheB.1725006402212.json rename to api/_content/query/qrL652uheB.1725013684376.json diff --git a/api/_content/query/w5fRUDFpBK.1725006402212.json b/api/_content/query/w5fRUDFpBK.1725013684376.json similarity index 100% rename from api/_content/query/w5fRUDFpBK.1725006402212.json rename to api/_content/query/w5fRUDFpBK.1725013684376.json diff --git a/api/_content/query/y8Nv5yEpsm.1725006402212.json b/api/_content/query/y8Nv5yEpsm.1725013684376.json similarity index 100% rename from api/_content/query/y8Nv5yEpsm.1725006402212.json rename to api/_content/query/y8Nv5yEpsm.1725013684376.json diff --git a/api/_github/contributors/index.json b/api/_github/contributors/index.json index 9ce90c6f3..a8b6bd3ef 100644 --- a/api/_github/contributors/index.json +++ b/api/_github/contributors/index.json @@ -1 +1 @@ -[{"avatar_url":"https://avatars.githubusercontent.com/u/7290030?v=4","login":"larbish"},{"avatar_url":"https://avatars.githubusercontent.com/u/904724?v=4","login":"atinux"},{"avatar_url":"https://avatars.githubusercontent.com/in/2740?v=4","login":"renovate[bot]"},{"avatar_url":"https://avatars.githubusercontent.com/u/28706372?v=4","login":"danielroe"},{"avatar_url":"https://avatars.githubusercontent.com/u/5158436?v=4","login":"pi0"},{"avatar_url":"https://avatars.githubusercontent.com/u/5823770?v=4","login":"Aietes"},{"avatar_url":"https://avatars.githubusercontent.com/u/52822112?v=4","login":"th1m0"},{"avatar_url":"https://avatars.githubusercontent.com/u/25272043?v=4","login":"kevinmarrec"},{"avatar_url":"https://avatars.githubusercontent.com/u/739984?v=4","login":"benjamincanac"},{"avatar_url":"https://avatars.githubusercontent.com/u/27334472?v=4","login":"felixgabler"},{"avatar_url":"https://avatars.githubusercontent.com/u/1259364?v=4","login":"levibe"},{"avatar_url":"https://avatars.githubusercontent.com/u/25180681?v=4","login":"renovate-bot"},{"avatar_url":"https://avatars.githubusercontent.com/u/982975?v=4","login":"AlbertBrand"},{"avatar_url":"https://avatars.githubusercontent.com/u/96275757?v=4","login":"52cs"},{"avatar_url":"https://avatars.githubusercontent.com/u/61005888?v=4","login":"kuizuo"},{"avatar_url":"https://avatars.githubusercontent.com/u/1463854?v=4","login":"Matthewenderle"},{"avatar_url":"https://avatars.githubusercontent.com/u/51825926?v=4","login":"onurusluca"},{"avatar_url":"https://avatars.githubusercontent.com/u/83463097?v=4","login":"oumarbarry"},{"avatar_url":"https://avatars.githubusercontent.com/u/7809845?v=4","login":"psto"},{"avatar_url":"https://avatars.githubusercontent.com/u/16954673?v=4","login":"relisora"},{"avatar_url":"https://avatars.githubusercontent.com/u/38413630?v=4","login":"icarusgk"},{"avatar_url":"https://avatars.githubusercontent.com/u/3911343?v=4","login":"stafyniaksacha"},{"avatar_url":"https://avatars.githubusercontent.com/u/7547335?v=4","login":"smarroufin"},{"avatar_url":"https://avatars.githubusercontent.com/u/24540801?v=4","login":"vinceglb"},{"avatar_url":"https://avatars.githubusercontent.com/u/70212709?v=4","login":"yannaufray"},{"avatar_url":"https://avatars.githubusercontent.com/u/44604921?v=4","login":"shinGangan"},{"avatar_url":"https://avatars.githubusercontent.com/u/66277921?v=4","login":"jojomatik"},{"avatar_url":"https://avatars.githubusercontent.com/u/126086612?v=4","login":"kiri10ten"},{"avatar_url":"https://avatars.githubusercontent.com/in/257149?v=4","login":"nuxt-studio[bot]"},{"avatar_url":"https://avatars.githubusercontent.com/u/13519194?v=4","login":"xMorthi"}] \ No newline at end of file +[{"avatar_url":"https://avatars.githubusercontent.com/u/7290030?v=4","login":"larbish"},{"avatar_url":"https://avatars.githubusercontent.com/u/904724?v=4","login":"atinux"},{"avatar_url":"https://avatars.githubusercontent.com/in/2740?v=4","login":"renovate[bot]"},{"avatar_url":"https://avatars.githubusercontent.com/u/28706372?v=4","login":"danielroe"},{"avatar_url":"https://avatars.githubusercontent.com/u/52822112?v=4","login":"th1m0"},{"avatar_url":"https://avatars.githubusercontent.com/u/5158436?v=4","login":"pi0"},{"avatar_url":"https://avatars.githubusercontent.com/u/5823770?v=4","login":"Aietes"},{"avatar_url":"https://avatars.githubusercontent.com/u/25272043?v=4","login":"kevinmarrec"},{"avatar_url":"https://avatars.githubusercontent.com/u/739984?v=4","login":"benjamincanac"},{"avatar_url":"https://avatars.githubusercontent.com/u/27334472?v=4","login":"felixgabler"},{"avatar_url":"https://avatars.githubusercontent.com/u/1259364?v=4","login":"levibe"},{"avatar_url":"https://avatars.githubusercontent.com/u/25180681?v=4","login":"renovate-bot"},{"avatar_url":"https://avatars.githubusercontent.com/u/982975?v=4","login":"AlbertBrand"},{"avatar_url":"https://avatars.githubusercontent.com/u/96275757?v=4","login":"52cs"},{"avatar_url":"https://avatars.githubusercontent.com/u/61005888?v=4","login":"kuizuo"},{"avatar_url":"https://avatars.githubusercontent.com/u/1463854?v=4","login":"Matthewenderle"},{"avatar_url":"https://avatars.githubusercontent.com/u/51825926?v=4","login":"onurusluca"},{"avatar_url":"https://avatars.githubusercontent.com/u/83463097?v=4","login":"oumarbarry"},{"avatar_url":"https://avatars.githubusercontent.com/u/7809845?v=4","login":"psto"},{"avatar_url":"https://avatars.githubusercontent.com/u/16954673?v=4","login":"relisora"},{"avatar_url":"https://avatars.githubusercontent.com/u/38413630?v=4","login":"icarusgk"},{"avatar_url":"https://avatars.githubusercontent.com/u/3911343?v=4","login":"stafyniaksacha"},{"avatar_url":"https://avatars.githubusercontent.com/u/7547335?v=4","login":"smarroufin"},{"avatar_url":"https://avatars.githubusercontent.com/u/24540801?v=4","login":"vinceglb"},{"avatar_url":"https://avatars.githubusercontent.com/u/70212709?v=4","login":"yannaufray"},{"avatar_url":"https://avatars.githubusercontent.com/u/44604921?v=4","login":"shinGangan"},{"avatar_url":"https://avatars.githubusercontent.com/u/66277921?v=4","login":"jojomatik"},{"avatar_url":"https://avatars.githubusercontent.com/u/126086612?v=4","login":"kiri10ten"},{"avatar_url":"https://avatars.githubusercontent.com/in/257149?v=4","login":"nuxt-studio[bot]"},{"avatar_url":"https://avatars.githubusercontent.com/u/13519194?v=4","login":"xMorthi"}] \ No newline at end of file diff --git a/authentication/_payload.json b/authentication/_payload.json index 443265d7f..9c7c237a7 100644 --- a/authentication/_payload.json +++ b/authentication/_payload.json @@ -1 +1 @@ -[{"data":1,"prerenderedAt":1771},["ShallowReactive",2],{"navigation":3,"/authentication":58,"/authentication-surround":1766},[4,8,12,46,50,54],{"title":5,"_path":6,"icon":7},"Get Started","/get-started","i-heroicons-rocket-launch",{"title":9,"_path":10,"icon":11},"Authentication","/authentication","i-heroicons-lock-closed",{"title":13,"_path":14,"children":15,"icon":45},"Usage","/usage",[16,29],{"title":17,"_path":18,"children":19},"Vue composables","/usage/composables",[20,23,26],{"title":21,"_path":22},"useSupabaseClient","/usage/composables/usesupabaseclient",{"title":24,"_path":25},"useSupabaseSession","/usage/composables/usesupabasesession",{"title":27,"_path":28},"useSupabaseUser","/usage/composables/usesupabaseuser",{"title":30,"_path":31,"children":32},"Server services","/usage/services",[33,36,39,42],{"title":34,"_path":35},"serverSupabaseClient","/usage/services/serversupabaseclient",{"title":37,"_path":38},"serverSupabaseServiceRole","/usage/services/serversupabaseservicerole",{"title":40,"_path":41},"serverSupabaseSession","/usage/services/serversupabasesession",{"title":43,"_path":44},"serverSupabaseUser","/usage/services/serversupabaseuser","heroicons:book-open",{"title":47,"_path":48,"icon":49},"Demo","/demo","i-heroicons-computer-desktop-20-solid",{"title":51,"_path":52,"icon":53},"Changelog","/changelog","i-heroicons-bookmark",{"title":55,"_path":56,"icon":57},"Roadmap","/roadmap","i-heroicons-map",{"_path":10,"_dir":59,"_draft":60,"_partial":60,"_locale":59,"title":9,"description":61,"icon":11,"body":62,"_type":1760,"_id":1761,"_source":1762,"_file":1763,"_stem":1764,"_extension":1765},"",false,"Authenticate your user thanks to the PKCE Oauth protocol that enables secure exchange of refresh and access tokens between an application and the authorization server",{"type":63,"children":64,"toc":1752},"root",[65,93,123,140,153,173,190,204,842,868,879,884,899,1211,1218,1223,1246,1746],{"type":66,"tag":67,"props":68,"children":69},"element","p",{},[70,73,82,84,91],{"type":71,"value":72},"text","With the default options, the module requires a log-in page and a confirm page to handle the ",{"type":66,"tag":74,"props":75,"children":79},"a",{"href":76,"rel":77},"https://supabase.com/docs/guides/resources/glossary#pkce",[78],"nofollow",[80],{"type":71,"value":81},"PKCE authorization code flow",{"type":71,"value":83},". If you want to understand how it works under the hood, you can read this ",{"type":66,"tag":74,"props":85,"children":88},{"href":86,"rel":87},"https://supabase.com/docs/guides/auth/server-side-rendering#understanding-the-authentication-flow",[78],[89],{"type":71,"value":90},"section",{"type":71,"value":92},".",{"type":66,"tag":67,"props":94,"children":95},{},[96,98,105,107,113,115,121],{"type":71,"value":97},"All you need to do is to create a ",{"type":66,"tag":99,"props":100,"children":102},"code",{"className":101},[],[103],{"type":71,"value":104},"login.vue",{"type":71,"value":106}," and ",{"type":66,"tag":99,"props":108,"children":110},{"className":109},[],[111],{"type":71,"value":112},"confirm.vue",{"type":71,"value":114}," page in the ",{"type":66,"tag":99,"props":116,"children":118},{"className":117},[],[119],{"type":71,"value":120},"pages",{"type":71,"value":122}," folder.",{"type":66,"tag":124,"props":125,"children":127},"callout",{"icon":126},"i-heroicons-light-bulb",[128],{"type":66,"tag":67,"props":129,"children":130},{},[131,133,139],{"type":71,"value":132},"For advanced users who want to implement the auth behaviour themselves, you can disable or override the ",{"type":66,"tag":74,"props":134,"children":136},{"href":135},"/get-started#redirect",[137],{"type":71,"value":138},"redirect options",{"type":71,"value":92},{"type":66,"tag":141,"props":142,"children":144},"h2",{"id":143},"log-in-page-login",[145,147],{"type":71,"value":146},"Log-in page - ",{"type":66,"tag":99,"props":148,"children":150},{"className":149},[],[151],{"type":71,"value":152},"/login",{"type":66,"tag":67,"props":154,"children":155},{},[156,158,164,166,171],{"type":71,"value":157},"Each time a user is trying to access a page that needs authentication, he will automatically be redirected to the configured log in page. If you want to allow access to \"public\" page, you just need to add them in the ",{"type":66,"tag":74,"props":159,"children":161},{"href":160},"/get-started#redirectoptions",[162],{"type":71,"value":163},"exclude",{"type":71,"value":165}," redirect option. Alternatively, you can enable the redirect only for certain routes using the ",{"type":66,"tag":74,"props":167,"children":168},{"href":160},[169],{"type":71,"value":170},"include",{"type":71,"value":172}," redirect option.",{"type":66,"tag":124,"props":174,"children":177},{"icon":175,"color":176},"i-heroicons-exclamation-triangle-20-solid","amber",[178],{"type":66,"tag":67,"props":179,"children":180},{},[181,183,189],{"type":71,"value":182},"Ensure to activate the authentication providers you want in the Supabase Dashboard under ",{"type":66,"tag":99,"props":184,"children":186},{"className":185},[],[187],{"type":71,"value":188},"Authentication -> Providers",{"type":71,"value":92},{"type":66,"tag":67,"props":191,"children":192},{},[193,195,202],{"type":71,"value":194},"The log-in page initiates the log-in method(s) you choose from the ",{"type":66,"tag":74,"props":196,"children":199},{"href":197,"rel":198},"https://supabase.com/docs/reference/javascript/auth-signinwithpassword",[78],[200],{"type":71,"value":201},"available authorization methods",{"type":71,"value":203}," provided by Supabase, it could looks like:",{"type":66,"tag":205,"props":206,"children":211},"pre",{"className":207,"code":208,"filename":209,"language":210,"meta":59,"style":59},"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cscript setup lang=\"ts\">\nconst supabase = useSupabaseClient()\nconst email = ref('')\n\nconst signInWithOtp = async () => {\n const { error } = await supabase.auth.signInWithOtp({\n email: email.value,\n options: {\n emailRedirectTo: 'http://localhost:3000/confirm',\n }\n })\n if (error) console.log(error)\n}\n\u003C/script>\n\u003Ctemplate>\n \u003Cdiv>\n \u003Cbutton @click=\"signInWithOtp\">\n Sign In with E-Mail\n \u003C/button>\n \u003Cinput\n v-model=\"email\"\n type=\"email\"\n />\n \u003C/div>\n\u003C/template>\n","pages/login.vue","vue",[212],{"type":66,"tag":99,"props":213,"children":214},{"__ignoreMap":59},[215,269,299,336,346,383,450,483,500,532,541,554,604,613,630,647,665,709,718,735,748,775,800,809,826],{"type":66,"tag":216,"props":217,"children":220},"span",{"class":218,"line":219},"line",1,[221,227,233,239,244,249,254,260,264],{"type":66,"tag":216,"props":222,"children":224},{"style":223},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[225],{"type":71,"value":226},"\u003C",{"type":66,"tag":216,"props":228,"children":230},{"style":229},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[231],{"type":71,"value":232},"script",{"type":66,"tag":216,"props":234,"children":236},{"style":235},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[237],{"type":71,"value":238}," setup",{"type":66,"tag":216,"props":240,"children":241},{"style":235},[242],{"type":71,"value":243}," lang",{"type":66,"tag":216,"props":245,"children":246},{"style":223},[247],{"type":71,"value":248},"=",{"type":66,"tag":216,"props":250,"children":251},{"style":223},[252],{"type":71,"value":253},"\"",{"type":66,"tag":216,"props":255,"children":257},{"style":256},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[258],{"type":71,"value":259},"ts",{"type":66,"tag":216,"props":261,"children":262},{"style":223},[263],{"type":71,"value":253},{"type":66,"tag":216,"props":265,"children":266},{"style":223},[267],{"type":71,"value":268},">\n",{"type":66,"tag":216,"props":270,"children":272},{"class":218,"line":271},2,[273,278,284,288,294],{"type":66,"tag":216,"props":274,"children":275},{"style":235},[276],{"type":71,"value":277},"const",{"type":66,"tag":216,"props":279,"children":281},{"style":280},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[282],{"type":71,"value":283}," supabase ",{"type":66,"tag":216,"props":285,"children":286},{"style":223},[287],{"type":71,"value":248},{"type":66,"tag":216,"props":289,"children":291},{"style":290},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[292],{"type":71,"value":293}," useSupabaseClient",{"type":66,"tag":216,"props":295,"children":296},{"style":280},[297],{"type":71,"value":298},"()\n",{"type":66,"tag":216,"props":300,"children":302},{"class":218,"line":301},3,[303,307,312,316,321,326,331],{"type":66,"tag":216,"props":304,"children":305},{"style":235},[306],{"type":71,"value":277},{"type":66,"tag":216,"props":308,"children":309},{"style":280},[310],{"type":71,"value":311}," email ",{"type":66,"tag":216,"props":313,"children":314},{"style":223},[315],{"type":71,"value":248},{"type":66,"tag":216,"props":317,"children":318},{"style":290},[319],{"type":71,"value":320}," ref",{"type":66,"tag":216,"props":322,"children":323},{"style":280},[324],{"type":71,"value":325},"(",{"type":66,"tag":216,"props":327,"children":328},{"style":223},[329],{"type":71,"value":330},"''",{"type":66,"tag":216,"props":332,"children":333},{"style":280},[334],{"type":71,"value":335},")\n",{"type":66,"tag":216,"props":337,"children":339},{"class":218,"line":338},4,[340],{"type":66,"tag":216,"props":341,"children":343},{"emptyLinePlaceholder":342},true,[344],{"type":71,"value":345},"\n",{"type":66,"tag":216,"props":347,"children":349},{"class":218,"line":348},5,[350,354,359,363,368,373,378],{"type":66,"tag":216,"props":351,"children":352},{"style":235},[353],{"type":71,"value":277},{"type":66,"tag":216,"props":355,"children":356},{"style":280},[357],{"type":71,"value":358}," signInWithOtp ",{"type":66,"tag":216,"props":360,"children":361},{"style":223},[362],{"type":71,"value":248},{"type":66,"tag":216,"props":364,"children":365},{"style":235},[366],{"type":71,"value":367}," async",{"type":66,"tag":216,"props":369,"children":370},{"style":223},[371],{"type":71,"value":372}," ()",{"type":66,"tag":216,"props":374,"children":375},{"style":235},[376],{"type":71,"value":377}," =>",{"type":66,"tag":216,"props":379,"children":380},{"style":223},[381],{"type":71,"value":382}," {\n",{"type":66,"tag":216,"props":384,"children":386},{"class":218,"line":385},6,[387,392,397,402,407,412,418,423,427,432,436,441,445],{"type":66,"tag":216,"props":388,"children":389},{"style":235},[390],{"type":71,"value":391}," const",{"type":66,"tag":216,"props":393,"children":394},{"style":223},[395],{"type":71,"value":396}," {",{"type":66,"tag":216,"props":398,"children":399},{"style":280},[400],{"type":71,"value":401}," error",{"type":66,"tag":216,"props":403,"children":404},{"style":223},[405],{"type":71,"value":406}," }",{"type":66,"tag":216,"props":408,"children":409},{"style":223},[410],{"type":71,"value":411}," =",{"type":66,"tag":216,"props":413,"children":415},{"style":414},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[416],{"type":71,"value":417}," await",{"type":66,"tag":216,"props":419,"children":420},{"style":280},[421],{"type":71,"value":422}," supabase",{"type":66,"tag":216,"props":424,"children":425},{"style":223},[426],{"type":71,"value":92},{"type":66,"tag":216,"props":428,"children":429},{"style":280},[430],{"type":71,"value":431},"auth",{"type":66,"tag":216,"props":433,"children":434},{"style":223},[435],{"type":71,"value":92},{"type":66,"tag":216,"props":437,"children":438},{"style":290},[439],{"type":71,"value":440},"signInWithOtp",{"type":66,"tag":216,"props":442,"children":443},{"style":229},[444],{"type":71,"value":325},{"type":66,"tag":216,"props":446,"children":447},{"style":223},[448],{"type":71,"value":449},"{\n",{"type":66,"tag":216,"props":451,"children":453},{"class":218,"line":452},7,[454,459,464,469,473,478],{"type":66,"tag":216,"props":455,"children":456},{"style":229},[457],{"type":71,"value":458}," email",{"type":66,"tag":216,"props":460,"children":461},{"style":223},[462],{"type":71,"value":463},":",{"type":66,"tag":216,"props":465,"children":466},{"style":280},[467],{"type":71,"value":468}," email",{"type":66,"tag":216,"props":470,"children":471},{"style":223},[472],{"type":71,"value":92},{"type":66,"tag":216,"props":474,"children":475},{"style":280},[476],{"type":71,"value":477},"value",{"type":66,"tag":216,"props":479,"children":480},{"style":223},[481],{"type":71,"value":482},",\n",{"type":66,"tag":216,"props":484,"children":486},{"class":218,"line":485},8,[487,492,496],{"type":66,"tag":216,"props":488,"children":489},{"style":229},[490],{"type":71,"value":491}," options",{"type":66,"tag":216,"props":493,"children":494},{"style":223},[495],{"type":71,"value":463},{"type":66,"tag":216,"props":497,"children":498},{"style":223},[499],{"type":71,"value":382},{"type":66,"tag":216,"props":501,"children":503},{"class":218,"line":502},9,[504,509,513,518,523,528],{"type":66,"tag":216,"props":505,"children":506},{"style":229},[507],{"type":71,"value":508}," emailRedirectTo",{"type":66,"tag":216,"props":510,"children":511},{"style":223},[512],{"type":71,"value":463},{"type":66,"tag":216,"props":514,"children":515},{"style":223},[516],{"type":71,"value":517}," '",{"type":66,"tag":216,"props":519,"children":520},{"style":256},[521],{"type":71,"value":522},"http://localhost:3000/confirm",{"type":66,"tag":216,"props":524,"children":525},{"style":223},[526],{"type":71,"value":527},"'",{"type":66,"tag":216,"props":529,"children":530},{"style":223},[531],{"type":71,"value":482},{"type":66,"tag":216,"props":533,"children":535},{"class":218,"line":534},10,[536],{"type":66,"tag":216,"props":537,"children":538},{"style":223},[539],{"type":71,"value":540}," }\n",{"type":66,"tag":216,"props":542,"children":544},{"class":218,"line":543},11,[545,550],{"type":66,"tag":216,"props":546,"children":547},{"style":223},[548],{"type":71,"value":549}," }",{"type":66,"tag":216,"props":551,"children":552},{"style":229},[553],{"type":71,"value":335},{"type":66,"tag":216,"props":555,"children":557},{"class":218,"line":556},12,[558,563,568,573,578,583,587,592,596,600],{"type":66,"tag":216,"props":559,"children":560},{"style":414},[561],{"type":71,"value":562}," if",{"type":66,"tag":216,"props":564,"children":565},{"style":229},[566],{"type":71,"value":567}," (",{"type":66,"tag":216,"props":569,"children":570},{"style":280},[571],{"type":71,"value":572},"error",{"type":66,"tag":216,"props":574,"children":575},{"style":229},[576],{"type":71,"value":577},") ",{"type":66,"tag":216,"props":579,"children":580},{"style":280},[581],{"type":71,"value":582},"console",{"type":66,"tag":216,"props":584,"children":585},{"style":223},[586],{"type":71,"value":92},{"type":66,"tag":216,"props":588,"children":589},{"style":290},[590],{"type":71,"value":591},"log",{"type":66,"tag":216,"props":593,"children":594},{"style":229},[595],{"type":71,"value":325},{"type":66,"tag":216,"props":597,"children":598},{"style":280},[599],{"type":71,"value":572},{"type":66,"tag":216,"props":601,"children":602},{"style":229},[603],{"type":71,"value":335},{"type":66,"tag":216,"props":605,"children":607},{"class":218,"line":606},13,[608],{"type":66,"tag":216,"props":609,"children":610},{"style":223},[611],{"type":71,"value":612},"}\n",{"type":66,"tag":216,"props":614,"children":616},{"class":218,"line":615},14,[617,622,626],{"type":66,"tag":216,"props":618,"children":619},{"style":223},[620],{"type":71,"value":621},"\u003C/",{"type":66,"tag":216,"props":623,"children":624},{"style":229},[625],{"type":71,"value":232},{"type":66,"tag":216,"props":627,"children":628},{"style":223},[629],{"type":71,"value":268},{"type":66,"tag":216,"props":631,"children":633},{"class":218,"line":632},15,[634,638,643],{"type":66,"tag":216,"props":635,"children":636},{"style":223},[637],{"type":71,"value":226},{"type":66,"tag":216,"props":639,"children":640},{"style":229},[641],{"type":71,"value":642},"template",{"type":66,"tag":216,"props":644,"children":645},{"style":223},[646],{"type":71,"value":268},{"type":66,"tag":216,"props":648,"children":650},{"class":218,"line":649},16,[651,656,661],{"type":66,"tag":216,"props":652,"children":653},{"style":223},[654],{"type":71,"value":655}," \u003C",{"type":66,"tag":216,"props":657,"children":658},{"style":229},[659],{"type":71,"value":660},"div",{"type":66,"tag":216,"props":662,"children":663},{"style":223},[664],{"type":71,"value":268},{"type":66,"tag":216,"props":666,"children":668},{"class":218,"line":667},17,[669,674,679,684,689,693,697,701,705],{"type":66,"tag":216,"props":670,"children":671},{"style":223},[672],{"type":71,"value":673}," \u003C",{"type":66,"tag":216,"props":675,"children":676},{"style":229},[677],{"type":71,"value":678},"button",{"type":66,"tag":216,"props":680,"children":681},{"style":223},[682],{"type":71,"value":683}," @",{"type":66,"tag":216,"props":685,"children":686},{"style":235},[687],{"type":71,"value":688},"click",{"type":66,"tag":216,"props":690,"children":691},{"style":223},[692],{"type":71,"value":248},{"type":66,"tag":216,"props":694,"children":695},{"style":223},[696],{"type":71,"value":253},{"type":66,"tag":216,"props":698,"children":699},{"style":280},[700],{"type":71,"value":440},{"type":66,"tag":216,"props":702,"children":703},{"style":223},[704],{"type":71,"value":253},{"type":66,"tag":216,"props":706,"children":707},{"style":223},[708],{"type":71,"value":268},{"type":66,"tag":216,"props":710,"children":712},{"class":218,"line":711},18,[713],{"type":66,"tag":216,"props":714,"children":715},{"style":280},[716],{"type":71,"value":717}," Sign In with E-Mail\n",{"type":66,"tag":216,"props":719,"children":721},{"class":218,"line":720},19,[722,727,731],{"type":66,"tag":216,"props":723,"children":724},{"style":223},[725],{"type":71,"value":726}," \u003C/",{"type":66,"tag":216,"props":728,"children":729},{"style":229},[730],{"type":71,"value":678},{"type":66,"tag":216,"props":732,"children":733},{"style":223},[734],{"type":71,"value":268},{"type":66,"tag":216,"props":736,"children":738},{"class":218,"line":737},20,[739,743],{"type":66,"tag":216,"props":740,"children":741},{"style":223},[742],{"type":71,"value":673},{"type":66,"tag":216,"props":744,"children":745},{"style":229},[746],{"type":71,"value":747},"input\n",{"type":66,"tag":216,"props":749,"children":751},{"class":218,"line":750},21,[752,757,761,765,770],{"type":66,"tag":216,"props":753,"children":754},{"style":235},[755],{"type":71,"value":756}," v-model",{"type":66,"tag":216,"props":758,"children":759},{"style":223},[760],{"type":71,"value":248},{"type":66,"tag":216,"props":762,"children":763},{"style":223},[764],{"type":71,"value":253},{"type":66,"tag":216,"props":766,"children":767},{"style":280},[768],{"type":71,"value":769},"email",{"type":66,"tag":216,"props":771,"children":772},{"style":223},[773],{"type":71,"value":774},"\"\n",{"type":66,"tag":216,"props":776,"children":778},{"class":218,"line":777},22,[779,784,788,792,796],{"type":66,"tag":216,"props":780,"children":781},{"style":235},[782],{"type":71,"value":783}," type",{"type":66,"tag":216,"props":785,"children":786},{"style":223},[787],{"type":71,"value":248},{"type":66,"tag":216,"props":789,"children":790},{"style":223},[791],{"type":71,"value":253},{"type":66,"tag":216,"props":793,"children":794},{"style":256},[795],{"type":71,"value":769},{"type":66,"tag":216,"props":797,"children":798},{"style":223},[799],{"type":71,"value":774},{"type":66,"tag":216,"props":801,"children":803},{"class":218,"line":802},23,[804],{"type":66,"tag":216,"props":805,"children":806},{"style":223},[807],{"type":71,"value":808}," />\n",{"type":66,"tag":216,"props":810,"children":812},{"class":218,"line":811},24,[813,818,822],{"type":66,"tag":216,"props":814,"children":815},{"style":223},[816],{"type":71,"value":817}," \u003C/",{"type":66,"tag":216,"props":819,"children":820},{"style":229},[821],{"type":71,"value":660},{"type":66,"tag":216,"props":823,"children":824},{"style":223},[825],{"type":71,"value":268},{"type":66,"tag":216,"props":827,"children":829},{"class":218,"line":828},25,[830,834,838],{"type":66,"tag":216,"props":831,"children":832},{"style":223},[833],{"type":71,"value":621},{"type":66,"tag":216,"props":835,"children":836},{"style":229},[837],{"type":71,"value":642},{"type":66,"tag":216,"props":839,"children":840},{"style":223},[841],{"type":71,"value":268},{"type":66,"tag":67,"props":843,"children":844},{},[845,847,852,854,858,860,866],{"type":71,"value":846},"Once the authorization flow is triggered using the ",{"type":66,"tag":99,"props":848,"children":850},{"className":849},[],[851],{"type":71,"value":431},{"type":71,"value":853}," wrapper of the ",{"type":66,"tag":74,"props":855,"children":856},{"href":22},[857],{"type":71,"value":21},{"type":71,"value":859}," composable, the session management is handled automatically and the user will be redirected to the page you specify in the redirect option (",{"type":66,"tag":99,"props":861,"children":863},{"className":862},[],[864],{"type":71,"value":865},"/confirm",{"type":71,"value":867}," by default).",{"type":66,"tag":141,"props":869,"children":871},{"id":870},"confirm-page-confirm",[872,874],{"type":71,"value":873},"Confirm page - ",{"type":66,"tag":99,"props":875,"children":877},{"className":876},[],[878],{"type":71,"value":865},{"type":66,"tag":67,"props":880,"children":881},{},[882],{"type":71,"value":883},"The confirmation page receives the supabase callback. From there you can check the user value and redirect to the appropriate page.",{"type":66,"tag":124,"props":885,"children":886},{"icon":126},[887],{"type":66,"tag":67,"props":888,"children":889},{},[890,892,898],{"type":71,"value":891},"The redirect URL must be configured in your Supabase dashboard under ",{"type":66,"tag":99,"props":893,"children":895},{"className":894},[],[896],{"type":71,"value":897},"Authentication -> URL Configuration -> Redirect URLs",{"type":71,"value":92},{"type":66,"tag":205,"props":900,"children":903},{"className":207,"code":901,"filename":902,"language":210,"meta":59,"style":59},"\u003Cscript setup lang=\"ts\">\nconst user = useSupabaseUser()\n\nwatch(user, () => {\n if (user.value) {\n // Redirect to protected page\n return navigateTo('/')\n }\n}, { immediate: true })\n\u003C/script>\n\n\u003Ctemplate>\n \u003Cdiv>Waiting for login...\u003C/div>\n\u003C/template>\n","pages/confirm.vue",[904],{"type":66,"tag":99,"props":905,"children":906},{"__ignoreMap":59},[907,946,971,978,1008,1040,1049,1083,1091,1126,1141,1148,1163,1196],{"type":66,"tag":216,"props":908,"children":909},{"class":218,"line":219},[910,914,918,922,926,930,934,938,942],{"type":66,"tag":216,"props":911,"children":912},{"style":223},[913],{"type":71,"value":226},{"type":66,"tag":216,"props":915,"children":916},{"style":229},[917],{"type":71,"value":232},{"type":66,"tag":216,"props":919,"children":920},{"style":235},[921],{"type":71,"value":238},{"type":66,"tag":216,"props":923,"children":924},{"style":235},[925],{"type":71,"value":243},{"type":66,"tag":216,"props":927,"children":928},{"style":223},[929],{"type":71,"value":248},{"type":66,"tag":216,"props":931,"children":932},{"style":223},[933],{"type":71,"value":253},{"type":66,"tag":216,"props":935,"children":936},{"style":256},[937],{"type":71,"value":259},{"type":66,"tag":216,"props":939,"children":940},{"style":223},[941],{"type":71,"value":253},{"type":66,"tag":216,"props":943,"children":944},{"style":223},[945],{"type":71,"value":268},{"type":66,"tag":216,"props":947,"children":948},{"class":218,"line":271},[949,953,958,962,967],{"type":66,"tag":216,"props":950,"children":951},{"style":235},[952],{"type":71,"value":277},{"type":66,"tag":216,"props":954,"children":955},{"style":280},[956],{"type":71,"value":957}," user ",{"type":66,"tag":216,"props":959,"children":960},{"style":223},[961],{"type":71,"value":248},{"type":66,"tag":216,"props":963,"children":964},{"style":290},[965],{"type":71,"value":966}," useSupabaseUser",{"type":66,"tag":216,"props":968,"children":969},{"style":280},[970],{"type":71,"value":298},{"type":66,"tag":216,"props":972,"children":973},{"class":218,"line":301},[974],{"type":66,"tag":216,"props":975,"children":976},{"emptyLinePlaceholder":342},[977],{"type":71,"value":345},{"type":66,"tag":216,"props":979,"children":980},{"class":218,"line":338},[981,986,991,996,1000,1004],{"type":66,"tag":216,"props":982,"children":983},{"style":290},[984],{"type":71,"value":985},"watch",{"type":66,"tag":216,"props":987,"children":988},{"style":280},[989],{"type":71,"value":990},"(user",{"type":66,"tag":216,"props":992,"children":993},{"style":223},[994],{"type":71,"value":995},",",{"type":66,"tag":216,"props":997,"children":998},{"style":223},[999],{"type":71,"value":372},{"type":66,"tag":216,"props":1001,"children":1002},{"style":235},[1003],{"type":71,"value":377},{"type":66,"tag":216,"props":1005,"children":1006},{"style":223},[1007],{"type":71,"value":382},{"type":66,"tag":216,"props":1009,"children":1010},{"class":218,"line":348},[1011,1015,1019,1024,1028,1032,1036],{"type":66,"tag":216,"props":1012,"children":1013},{"style":414},[1014],{"type":71,"value":562},{"type":66,"tag":216,"props":1016,"children":1017},{"style":229},[1018],{"type":71,"value":567},{"type":66,"tag":216,"props":1020,"children":1021},{"style":280},[1022],{"type":71,"value":1023},"user",{"type":66,"tag":216,"props":1025,"children":1026},{"style":223},[1027],{"type":71,"value":92},{"type":66,"tag":216,"props":1029,"children":1030},{"style":280},[1031],{"type":71,"value":477},{"type":66,"tag":216,"props":1033,"children":1034},{"style":229},[1035],{"type":71,"value":577},{"type":66,"tag":216,"props":1037,"children":1038},{"style":223},[1039],{"type":71,"value":449},{"type":66,"tag":216,"props":1041,"children":1042},{"class":218,"line":385},[1043],{"type":66,"tag":216,"props":1044,"children":1046},{"style":1045},"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[1047],{"type":71,"value":1048}," // Redirect to protected page\n",{"type":66,"tag":216,"props":1050,"children":1051},{"class":218,"line":452},[1052,1057,1062,1066,1070,1075,1079],{"type":66,"tag":216,"props":1053,"children":1054},{"style":414},[1055],{"type":71,"value":1056}," return",{"type":66,"tag":216,"props":1058,"children":1059},{"style":290},[1060],{"type":71,"value":1061}," navigateTo",{"type":66,"tag":216,"props":1063,"children":1064},{"style":229},[1065],{"type":71,"value":325},{"type":66,"tag":216,"props":1067,"children":1068},{"style":223},[1069],{"type":71,"value":527},{"type":66,"tag":216,"props":1071,"children":1072},{"style":256},[1073],{"type":71,"value":1074},"/",{"type":66,"tag":216,"props":1076,"children":1077},{"style":223},[1078],{"type":71,"value":527},{"type":66,"tag":216,"props":1080,"children":1081},{"style":229},[1082],{"type":71,"value":335},{"type":66,"tag":216,"props":1084,"children":1085},{"class":218,"line":485},[1086],{"type":66,"tag":216,"props":1087,"children":1088},{"style":223},[1089],{"type":71,"value":1090}," }\n",{"type":66,"tag":216,"props":1092,"children":1093},{"class":218,"line":502},[1094,1099,1103,1108,1112,1118,1122],{"type":66,"tag":216,"props":1095,"children":1096},{"style":223},[1097],{"type":71,"value":1098},"},",{"type":66,"tag":216,"props":1100,"children":1101},{"style":223},[1102],{"type":71,"value":396},{"type":66,"tag":216,"props":1104,"children":1105},{"style":229},[1106],{"type":71,"value":1107}," immediate",{"type":66,"tag":216,"props":1109,"children":1110},{"style":223},[1111],{"type":71,"value":463},{"type":66,"tag":216,"props":1113,"children":1115},{"style":1114},"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC",[1116],{"type":71,"value":1117}," true",{"type":66,"tag":216,"props":1119,"children":1120},{"style":223},[1121],{"type":71,"value":406},{"type":66,"tag":216,"props":1123,"children":1124},{"style":280},[1125],{"type":71,"value":335},{"type":66,"tag":216,"props":1127,"children":1128},{"class":218,"line":534},[1129,1133,1137],{"type":66,"tag":216,"props":1130,"children":1131},{"style":223},[1132],{"type":71,"value":621},{"type":66,"tag":216,"props":1134,"children":1135},{"style":229},[1136],{"type":71,"value":232},{"type":66,"tag":216,"props":1138,"children":1139},{"style":223},[1140],{"type":71,"value":268},{"type":66,"tag":216,"props":1142,"children":1143},{"class":218,"line":543},[1144],{"type":66,"tag":216,"props":1145,"children":1146},{"emptyLinePlaceholder":342},[1147],{"type":71,"value":345},{"type":66,"tag":216,"props":1149,"children":1150},{"class":218,"line":556},[1151,1155,1159],{"type":66,"tag":216,"props":1152,"children":1153},{"style":223},[1154],{"type":71,"value":226},{"type":66,"tag":216,"props":1156,"children":1157},{"style":229},[1158],{"type":71,"value":642},{"type":66,"tag":216,"props":1160,"children":1161},{"style":223},[1162],{"type":71,"value":268},{"type":66,"tag":216,"props":1164,"children":1165},{"class":218,"line":606},[1166,1170,1174,1179,1184,1188,1192],{"type":66,"tag":216,"props":1167,"children":1168},{"style":223},[1169],{"type":71,"value":655},{"type":66,"tag":216,"props":1171,"children":1172},{"style":229},[1173],{"type":71,"value":660},{"type":66,"tag":216,"props":1175,"children":1176},{"style":223},[1177],{"type":71,"value":1178},">",{"type":66,"tag":216,"props":1180,"children":1181},{"style":280},[1182],{"type":71,"value":1183},"Waiting for login...",{"type":66,"tag":216,"props":1185,"children":1186},{"style":223},[1187],{"type":71,"value":621},{"type":66,"tag":216,"props":1189,"children":1190},{"style":229},[1191],{"type":71,"value":660},{"type":66,"tag":216,"props":1193,"children":1194},{"style":223},[1195],{"type":71,"value":268},{"type":66,"tag":216,"props":1197,"children":1198},{"class":218,"line":615},[1199,1203,1207],{"type":66,"tag":216,"props":1200,"children":1201},{"style":223},[1202],{"type":71,"value":621},{"type":66,"tag":216,"props":1204,"children":1205},{"style":229},[1206],{"type":71,"value":642},{"type":66,"tag":216,"props":1208,"children":1209},{"style":223},[1210],{"type":71,"value":268},{"type":66,"tag":1212,"props":1213,"children":1215},"h3",{"id":1214},"redirect-path",[1216],{"type":71,"value":1217},"Redirect path",{"type":66,"tag":67,"props":1219,"children":1220},{},[1221],{"type":71,"value":1222},"You can easily handle redirection to the initial requested route after login.",{"type":66,"tag":124,"props":1224,"children":1225},{"icon":126},[1226],{"type":66,"tag":67,"props":1227,"children":1228},{},[1229,1231,1237,1239,1244],{"type":71,"value":1230},"You must enable the ",{"type":66,"tag":99,"props":1232,"children":1234},{"className":1233},[],[1235],{"type":71,"value":1236},"cookieRedirect",{"type":71,"value":1238}," option of the ",{"type":66,"tag":74,"props":1240,"children":1241},{"href":160},[1242],{"type":71,"value":1243},"redirectOptions",{"type":71,"value":1245}," to allow cookie storage and take benefit of this feature.",{"type":66,"tag":205,"props":1247,"children":1249},{"className":207,"code":1248,"filename":902,"language":210,"meta":59,"style":59},"\u003Cscript setup lang=\"ts\">\nconst user = useSupabaseUser()\n\n// Get redirect path from cookies\nconst cookieName = useRuntimeConfig().public.supabase.cookieName\nconst redirectPath = useCookie(`${cookieName}-redirect-path`).value\n\nwatch(user, () => {\n if (user.value) {\n // Clear cookie\n useCookie(`${cookieName}-redirect-path`).value = null\n // Redirect to path\n return navigateTo(redirectPath || '/'); \n }\n}, { immediate: true })\n\u003C/script>\n\u003Ctemplate>\n \u003Cdiv>Waiting for login...\u003C/div>\n\u003C/template>\n",[1250],{"type":66,"tag":99,"props":1251,"children":1252},{"__ignoreMap":59},[1253,1292,1315,1322,1330,1383,1447,1454,1481,1512,1520,1573,1581,1632,1639,1670,1685,1700,1731],{"type":66,"tag":216,"props":1254,"children":1255},{"class":218,"line":219},[1256,1260,1264,1268,1272,1276,1280,1284,1288],{"type":66,"tag":216,"props":1257,"children":1258},{"style":223},[1259],{"type":71,"value":226},{"type":66,"tag":216,"props":1261,"children":1262},{"style":229},[1263],{"type":71,"value":232},{"type":66,"tag":216,"props":1265,"children":1266},{"style":235},[1267],{"type":71,"value":238},{"type":66,"tag":216,"props":1269,"children":1270},{"style":235},[1271],{"type":71,"value":243},{"type":66,"tag":216,"props":1273,"children":1274},{"style":223},[1275],{"type":71,"value":248},{"type":66,"tag":216,"props":1277,"children":1278},{"style":223},[1279],{"type":71,"value":253},{"type":66,"tag":216,"props":1281,"children":1282},{"style":256},[1283],{"type":71,"value":259},{"type":66,"tag":216,"props":1285,"children":1286},{"style":223},[1287],{"type":71,"value":253},{"type":66,"tag":216,"props":1289,"children":1290},{"style":223},[1291],{"type":71,"value":268},{"type":66,"tag":216,"props":1293,"children":1294},{"class":218,"line":271},[1295,1299,1303,1307,1311],{"type":66,"tag":216,"props":1296,"children":1297},{"style":235},[1298],{"type":71,"value":277},{"type":66,"tag":216,"props":1300,"children":1301},{"style":280},[1302],{"type":71,"value":957},{"type":66,"tag":216,"props":1304,"children":1305},{"style":223},[1306],{"type":71,"value":248},{"type":66,"tag":216,"props":1308,"children":1309},{"style":290},[1310],{"type":71,"value":966},{"type":66,"tag":216,"props":1312,"children":1313},{"style":280},[1314],{"type":71,"value":298},{"type":66,"tag":216,"props":1316,"children":1317},{"class":218,"line":301},[1318],{"type":66,"tag":216,"props":1319,"children":1320},{"emptyLinePlaceholder":342},[1321],{"type":71,"value":345},{"type":66,"tag":216,"props":1323,"children":1324},{"class":218,"line":338},[1325],{"type":66,"tag":216,"props":1326,"children":1327},{"style":1045},[1328],{"type":71,"value":1329},"// Get redirect path from cookies\n",{"type":66,"tag":216,"props":1331,"children":1332},{"class":218,"line":348},[1333,1337,1342,1346,1351,1356,1360,1365,1369,1374,1378],{"type":66,"tag":216,"props":1334,"children":1335},{"style":235},[1336],{"type":71,"value":277},{"type":66,"tag":216,"props":1338,"children":1339},{"style":280},[1340],{"type":71,"value":1341}," cookieName ",{"type":66,"tag":216,"props":1343,"children":1344},{"style":223},[1345],{"type":71,"value":248},{"type":66,"tag":216,"props":1347,"children":1348},{"style":290},[1349],{"type":71,"value":1350}," useRuntimeConfig",{"type":66,"tag":216,"props":1352,"children":1353},{"style":280},[1354],{"type":71,"value":1355},"()",{"type":66,"tag":216,"props":1357,"children":1358},{"style":223},[1359],{"type":71,"value":92},{"type":66,"tag":216,"props":1361,"children":1362},{"style":280},[1363],{"type":71,"value":1364},"public",{"type":66,"tag":216,"props":1366,"children":1367},{"style":223},[1368],{"type":71,"value":92},{"type":66,"tag":216,"props":1370,"children":1371},{"style":280},[1372],{"type":71,"value":1373},"supabase",{"type":66,"tag":216,"props":1375,"children":1376},{"style":223},[1377],{"type":71,"value":92},{"type":66,"tag":216,"props":1379,"children":1380},{"style":280},[1381],{"type":71,"value":1382},"cookieName\n",{"type":66,"tag":216,"props":1384,"children":1385},{"class":218,"line":385},[1386,1390,1395,1399,1404,1408,1413,1418,1423,1428,1433,1438,1442],{"type":66,"tag":216,"props":1387,"children":1388},{"style":235},[1389],{"type":71,"value":277},{"type":66,"tag":216,"props":1391,"children":1392},{"style":280},[1393],{"type":71,"value":1394}," redirectPath ",{"type":66,"tag":216,"props":1396,"children":1397},{"style":223},[1398],{"type":71,"value":248},{"type":66,"tag":216,"props":1400,"children":1401},{"style":290},[1402],{"type":71,"value":1403}," useCookie",{"type":66,"tag":216,"props":1405,"children":1406},{"style":280},[1407],{"type":71,"value":325},{"type":66,"tag":216,"props":1409,"children":1410},{"style":223},[1411],{"type":71,"value":1412},"`${",{"type":66,"tag":216,"props":1414,"children":1415},{"style":280},[1416],{"type":71,"value":1417},"cookieName",{"type":66,"tag":216,"props":1419,"children":1420},{"style":223},[1421],{"type":71,"value":1422},"}",{"type":66,"tag":216,"props":1424,"children":1425},{"style":256},[1426],{"type":71,"value":1427},"-redirect-path",{"type":66,"tag":216,"props":1429,"children":1430},{"style":223},[1431],{"type":71,"value":1432},"`",{"type":66,"tag":216,"props":1434,"children":1435},{"style":280},[1436],{"type":71,"value":1437},")",{"type":66,"tag":216,"props":1439,"children":1440},{"style":223},[1441],{"type":71,"value":92},{"type":66,"tag":216,"props":1443,"children":1444},{"style":280},[1445],{"type":71,"value":1446},"value\n",{"type":66,"tag":216,"props":1448,"children":1449},{"class":218,"line":452},[1450],{"type":66,"tag":216,"props":1451,"children":1452},{"emptyLinePlaceholder":342},[1453],{"type":71,"value":345},{"type":66,"tag":216,"props":1455,"children":1456},{"class":218,"line":485},[1457,1461,1465,1469,1473,1477],{"type":66,"tag":216,"props":1458,"children":1459},{"style":290},[1460],{"type":71,"value":985},{"type":66,"tag":216,"props":1462,"children":1463},{"style":280},[1464],{"type":71,"value":990},{"type":66,"tag":216,"props":1466,"children":1467},{"style":223},[1468],{"type":71,"value":995},{"type":66,"tag":216,"props":1470,"children":1471},{"style":223},[1472],{"type":71,"value":372},{"type":66,"tag":216,"props":1474,"children":1475},{"style":235},[1476],{"type":71,"value":377},{"type":66,"tag":216,"props":1478,"children":1479},{"style":223},[1480],{"type":71,"value":382},{"type":66,"tag":216,"props":1482,"children":1483},{"class":218,"line":502},[1484,1488,1492,1496,1500,1504,1508],{"type":66,"tag":216,"props":1485,"children":1486},{"style":414},[1487],{"type":71,"value":562},{"type":66,"tag":216,"props":1489,"children":1490},{"style":229},[1491],{"type":71,"value":567},{"type":66,"tag":216,"props":1493,"children":1494},{"style":280},[1495],{"type":71,"value":1023},{"type":66,"tag":216,"props":1497,"children":1498},{"style":223},[1499],{"type":71,"value":92},{"type":66,"tag":216,"props":1501,"children":1502},{"style":280},[1503],{"type":71,"value":477},{"type":66,"tag":216,"props":1505,"children":1506},{"style":229},[1507],{"type":71,"value":577},{"type":66,"tag":216,"props":1509,"children":1510},{"style":223},[1511],{"type":71,"value":449},{"type":66,"tag":216,"props":1513,"children":1514},{"class":218,"line":534},[1515],{"type":66,"tag":216,"props":1516,"children":1517},{"style":1045},[1518],{"type":71,"value":1519}," // Clear cookie\n",{"type":66,"tag":216,"props":1521,"children":1522},{"class":218,"line":543},[1523,1528,1532,1536,1540,1544,1548,1552,1556,1560,1564,1568],{"type":66,"tag":216,"props":1524,"children":1525},{"style":290},[1526],{"type":71,"value":1527}," useCookie",{"type":66,"tag":216,"props":1529,"children":1530},{"style":229},[1531],{"type":71,"value":325},{"type":66,"tag":216,"props":1533,"children":1534},{"style":223},[1535],{"type":71,"value":1412},{"type":66,"tag":216,"props":1537,"children":1538},{"style":280},[1539],{"type":71,"value":1417},{"type":66,"tag":216,"props":1541,"children":1542},{"style":223},[1543],{"type":71,"value":1422},{"type":66,"tag":216,"props":1545,"children":1546},{"style":256},[1547],{"type":71,"value":1427},{"type":66,"tag":216,"props":1549,"children":1550},{"style":223},[1551],{"type":71,"value":1432},{"type":66,"tag":216,"props":1553,"children":1554},{"style":229},[1555],{"type":71,"value":1437},{"type":66,"tag":216,"props":1557,"children":1558},{"style":223},[1559],{"type":71,"value":92},{"type":66,"tag":216,"props":1561,"children":1562},{"style":280},[1563],{"type":71,"value":477},{"type":66,"tag":216,"props":1565,"children":1566},{"style":223},[1567],{"type":71,"value":411},{"type":66,"tag":216,"props":1569,"children":1570},{"style":223},[1571],{"type":71,"value":1572}," null\n",{"type":66,"tag":216,"props":1574,"children":1575},{"class":218,"line":556},[1576],{"type":66,"tag":216,"props":1577,"children":1578},{"style":1045},[1579],{"type":71,"value":1580}," // Redirect to path\n",{"type":66,"tag":216,"props":1582,"children":1583},{"class":218,"line":606},[1584,1588,1592,1596,1601,1606,1610,1614,1618,1622,1627],{"type":66,"tag":216,"props":1585,"children":1586},{"style":414},[1587],{"type":71,"value":1056},{"type":66,"tag":216,"props":1589,"children":1590},{"style":290},[1591],{"type":71,"value":1061},{"type":66,"tag":216,"props":1593,"children":1594},{"style":229},[1595],{"type":71,"value":325},{"type":66,"tag":216,"props":1597,"children":1598},{"style":280},[1599],{"type":71,"value":1600},"redirectPath",{"type":66,"tag":216,"props":1602,"children":1603},{"style":223},[1604],{"type":71,"value":1605}," ||",{"type":66,"tag":216,"props":1607,"children":1608},{"style":223},[1609],{"type":71,"value":517},{"type":66,"tag":216,"props":1611,"children":1612},{"style":256},[1613],{"type":71,"value":1074},{"type":66,"tag":216,"props":1615,"children":1616},{"style":223},[1617],{"type":71,"value":527},{"type":66,"tag":216,"props":1619,"children":1620},{"style":229},[1621],{"type":71,"value":1437},{"type":66,"tag":216,"props":1623,"children":1624},{"style":223},[1625],{"type":71,"value":1626},";",{"type":66,"tag":216,"props":1628,"children":1629},{"style":229},[1630],{"type":71,"value":1631}," \n",{"type":66,"tag":216,"props":1633,"children":1634},{"class":218,"line":615},[1635],{"type":66,"tag":216,"props":1636,"children":1637},{"style":223},[1638],{"type":71,"value":1090},{"type":66,"tag":216,"props":1640,"children":1641},{"class":218,"line":632},[1642,1646,1650,1654,1658,1662,1666],{"type":66,"tag":216,"props":1643,"children":1644},{"style":223},[1645],{"type":71,"value":1098},{"type":66,"tag":216,"props":1647,"children":1648},{"style":223},[1649],{"type":71,"value":396},{"type":66,"tag":216,"props":1651,"children":1652},{"style":229},[1653],{"type":71,"value":1107},{"type":66,"tag":216,"props":1655,"children":1656},{"style":223},[1657],{"type":71,"value":463},{"type":66,"tag":216,"props":1659,"children":1660},{"style":1114},[1661],{"type":71,"value":1117},{"type":66,"tag":216,"props":1663,"children":1664},{"style":223},[1665],{"type":71,"value":406},{"type":66,"tag":216,"props":1667,"children":1668},{"style":280},[1669],{"type":71,"value":335},{"type":66,"tag":216,"props":1671,"children":1672},{"class":218,"line":649},[1673,1677,1681],{"type":66,"tag":216,"props":1674,"children":1675},{"style":223},[1676],{"type":71,"value":621},{"type":66,"tag":216,"props":1678,"children":1679},{"style":229},[1680],{"type":71,"value":232},{"type":66,"tag":216,"props":1682,"children":1683},{"style":223},[1684],{"type":71,"value":268},{"type":66,"tag":216,"props":1686,"children":1687},{"class":218,"line":667},[1688,1692,1696],{"type":66,"tag":216,"props":1689,"children":1690},{"style":223},[1691],{"type":71,"value":226},{"type":66,"tag":216,"props":1693,"children":1694},{"style":229},[1695],{"type":71,"value":642},{"type":66,"tag":216,"props":1697,"children":1698},{"style":223},[1699],{"type":71,"value":268},{"type":66,"tag":216,"props":1701,"children":1702},{"class":218,"line":711},[1703,1707,1711,1715,1719,1723,1727],{"type":66,"tag":216,"props":1704,"children":1705},{"style":223},[1706],{"type":71,"value":655},{"type":66,"tag":216,"props":1708,"children":1709},{"style":229},[1710],{"type":71,"value":660},{"type":66,"tag":216,"props":1712,"children":1713},{"style":223},[1714],{"type":71,"value":1178},{"type":66,"tag":216,"props":1716,"children":1717},{"style":280},[1718],{"type":71,"value":1183},{"type":66,"tag":216,"props":1720,"children":1721},{"style":223},[1722],{"type":71,"value":621},{"type":66,"tag":216,"props":1724,"children":1725},{"style":229},[1726],{"type":71,"value":660},{"type":66,"tag":216,"props":1728,"children":1729},{"style":223},[1730],{"type":71,"value":268},{"type":66,"tag":216,"props":1732,"children":1733},{"class":218,"line":720},[1734,1738,1742],{"type":66,"tag":216,"props":1735,"children":1736},{"style":223},[1737],{"type":71,"value":621},{"type":66,"tag":216,"props":1739,"children":1740},{"style":229},[1741],{"type":71,"value":642},{"type":66,"tag":216,"props":1743,"children":1744},{"style":223},[1745],{"type":71,"value":268},{"type":66,"tag":1747,"props":1748,"children":1749},"style",{},[1750],{"type":71,"value":1751},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":59,"searchDepth":271,"depth":271,"links":1753},[1754,1756],{"id":143,"depth":271,"text":1755},"Log-in page - /login",{"id":870,"depth":271,"text":1757,"children":1758},"Confirm page - /confirm",[1759],{"id":1214,"depth":301,"text":1217},"markdown","content:3.authentication.md","content","3.authentication.md","3.authentication","md",[1767,1769],{"_path":6,"title":5,"description":1768},"@nuxtjs/supabase is a Nuxt module for first class integration with Supabase.",{"_path":22,"title":21,"description":1770},"Make requests to the Supabase API with the useSupabaseClient composable",1725006469131] \ No newline at end of file +[{"data":1,"prerenderedAt":1771},["ShallowReactive",2],{"navigation":3,"/authentication":58,"/authentication-surround":1766},[4,8,12,46,50,54],{"title":5,"_path":6,"icon":7},"Get Started","/get-started","i-heroicons-rocket-launch",{"title":9,"_path":10,"icon":11},"Authentication","/authentication","i-heroicons-lock-closed",{"title":13,"_path":14,"children":15,"icon":45},"Usage","/usage",[16,29],{"title":17,"_path":18,"children":19},"Vue composables","/usage/composables",[20,23,26],{"title":21,"_path":22},"useSupabaseClient","/usage/composables/usesupabaseclient",{"title":24,"_path":25},"useSupabaseSession","/usage/composables/usesupabasesession",{"title":27,"_path":28},"useSupabaseUser","/usage/composables/usesupabaseuser",{"title":30,"_path":31,"children":32},"Server services","/usage/services",[33,36,39,42],{"title":34,"_path":35},"serverSupabaseClient","/usage/services/serversupabaseclient",{"title":37,"_path":38},"serverSupabaseServiceRole","/usage/services/serversupabaseservicerole",{"title":40,"_path":41},"serverSupabaseSession","/usage/services/serversupabasesession",{"title":43,"_path":44},"serverSupabaseUser","/usage/services/serversupabaseuser","heroicons:book-open",{"title":47,"_path":48,"icon":49},"Demo","/demo","i-heroicons-computer-desktop-20-solid",{"title":51,"_path":52,"icon":53},"Changelog","/changelog","i-heroicons-bookmark",{"title":55,"_path":56,"icon":57},"Roadmap","/roadmap","i-heroicons-map",{"_path":10,"_dir":59,"_draft":60,"_partial":60,"_locale":59,"title":9,"description":61,"icon":11,"body":62,"_type":1760,"_id":1761,"_source":1762,"_file":1763,"_stem":1764,"_extension":1765},"",false,"Authenticate your user thanks to the PKCE Oauth protocol that enables secure exchange of refresh and access tokens between an application and the authorization server",{"type":63,"children":64,"toc":1752},"root",[65,93,123,140,153,173,190,204,842,868,879,884,899,1211,1218,1223,1246,1746],{"type":66,"tag":67,"props":68,"children":69},"element","p",{},[70,73,82,84,91],{"type":71,"value":72},"text","With the default options, the module requires a log-in page and a confirm page to handle the ",{"type":66,"tag":74,"props":75,"children":79},"a",{"href":76,"rel":77},"https://supabase.com/docs/guides/resources/glossary#pkce",[78],"nofollow",[80],{"type":71,"value":81},"PKCE authorization code flow",{"type":71,"value":83},". If you want to understand how it works under the hood, you can read this ",{"type":66,"tag":74,"props":85,"children":88},{"href":86,"rel":87},"https://supabase.com/docs/guides/auth/server-side-rendering#understanding-the-authentication-flow",[78],[89],{"type":71,"value":90},"section",{"type":71,"value":92},".",{"type":66,"tag":67,"props":94,"children":95},{},[96,98,105,107,113,115,121],{"type":71,"value":97},"All you need to do is to create a ",{"type":66,"tag":99,"props":100,"children":102},"code",{"className":101},[],[103],{"type":71,"value":104},"login.vue",{"type":71,"value":106}," and ",{"type":66,"tag":99,"props":108,"children":110},{"className":109},[],[111],{"type":71,"value":112},"confirm.vue",{"type":71,"value":114}," page in the ",{"type":66,"tag":99,"props":116,"children":118},{"className":117},[],[119],{"type":71,"value":120},"pages",{"type":71,"value":122}," folder.",{"type":66,"tag":124,"props":125,"children":127},"callout",{"icon":126},"i-heroicons-light-bulb",[128],{"type":66,"tag":67,"props":129,"children":130},{},[131,133,139],{"type":71,"value":132},"For advanced users who want to implement the auth behaviour themselves, you can disable or override the ",{"type":66,"tag":74,"props":134,"children":136},{"href":135},"/get-started#redirect",[137],{"type":71,"value":138},"redirect options",{"type":71,"value":92},{"type":66,"tag":141,"props":142,"children":144},"h2",{"id":143},"log-in-page-login",[145,147],{"type":71,"value":146},"Log-in page - ",{"type":66,"tag":99,"props":148,"children":150},{"className":149},[],[151],{"type":71,"value":152},"/login",{"type":66,"tag":67,"props":154,"children":155},{},[156,158,164,166,171],{"type":71,"value":157},"Each time a user is trying to access a page that needs authentication, he will automatically be redirected to the configured log in page. If you want to allow access to \"public\" page, you just need to add them in the ",{"type":66,"tag":74,"props":159,"children":161},{"href":160},"/get-started#redirectoptions",[162],{"type":71,"value":163},"exclude",{"type":71,"value":165}," redirect option. Alternatively, you can enable the redirect only for certain routes using the ",{"type":66,"tag":74,"props":167,"children":168},{"href":160},[169],{"type":71,"value":170},"include",{"type":71,"value":172}," redirect option.",{"type":66,"tag":124,"props":174,"children":177},{"icon":175,"color":176},"i-heroicons-exclamation-triangle-20-solid","amber",[178],{"type":66,"tag":67,"props":179,"children":180},{},[181,183,189],{"type":71,"value":182},"Ensure to activate the authentication providers you want in the Supabase Dashboard under ",{"type":66,"tag":99,"props":184,"children":186},{"className":185},[],[187],{"type":71,"value":188},"Authentication -> Providers",{"type":71,"value":92},{"type":66,"tag":67,"props":191,"children":192},{},[193,195,202],{"type":71,"value":194},"The log-in page initiates the log-in method(s) you choose from the ",{"type":66,"tag":74,"props":196,"children":199},{"href":197,"rel":198},"https://supabase.com/docs/reference/javascript/auth-signinwithpassword",[78],[200],{"type":71,"value":201},"available authorization methods",{"type":71,"value":203}," provided by Supabase, it could looks like:",{"type":66,"tag":205,"props":206,"children":211},"pre",{"className":207,"code":208,"filename":209,"language":210,"meta":59,"style":59},"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cscript setup lang=\"ts\">\nconst supabase = useSupabaseClient()\nconst email = ref('')\n\nconst signInWithOtp = async () => {\n const { error } = await supabase.auth.signInWithOtp({\n email: email.value,\n options: {\n emailRedirectTo: 'http://localhost:3000/confirm',\n }\n })\n if (error) console.log(error)\n}\n\u003C/script>\n\u003Ctemplate>\n \u003Cdiv>\n \u003Cbutton @click=\"signInWithOtp\">\n Sign In with E-Mail\n \u003C/button>\n \u003Cinput\n v-model=\"email\"\n type=\"email\"\n />\n \u003C/div>\n\u003C/template>\n","pages/login.vue","vue",[212],{"type":66,"tag":99,"props":213,"children":214},{"__ignoreMap":59},[215,269,299,336,346,383,450,483,500,532,541,554,604,613,630,647,665,709,718,735,748,775,800,809,826],{"type":66,"tag":216,"props":217,"children":220},"span",{"class":218,"line":219},"line",1,[221,227,233,239,244,249,254,260,264],{"type":66,"tag":216,"props":222,"children":224},{"style":223},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[225],{"type":71,"value":226},"\u003C",{"type":66,"tag":216,"props":228,"children":230},{"style":229},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[231],{"type":71,"value":232},"script",{"type":66,"tag":216,"props":234,"children":236},{"style":235},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[237],{"type":71,"value":238}," setup",{"type":66,"tag":216,"props":240,"children":241},{"style":235},[242],{"type":71,"value":243}," lang",{"type":66,"tag":216,"props":245,"children":246},{"style":223},[247],{"type":71,"value":248},"=",{"type":66,"tag":216,"props":250,"children":251},{"style":223},[252],{"type":71,"value":253},"\"",{"type":66,"tag":216,"props":255,"children":257},{"style":256},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[258],{"type":71,"value":259},"ts",{"type":66,"tag":216,"props":261,"children":262},{"style":223},[263],{"type":71,"value":253},{"type":66,"tag":216,"props":265,"children":266},{"style":223},[267],{"type":71,"value":268},">\n",{"type":66,"tag":216,"props":270,"children":272},{"class":218,"line":271},2,[273,278,284,288,294],{"type":66,"tag":216,"props":274,"children":275},{"style":235},[276],{"type":71,"value":277},"const",{"type":66,"tag":216,"props":279,"children":281},{"style":280},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[282],{"type":71,"value":283}," supabase ",{"type":66,"tag":216,"props":285,"children":286},{"style":223},[287],{"type":71,"value":248},{"type":66,"tag":216,"props":289,"children":291},{"style":290},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[292],{"type":71,"value":293}," useSupabaseClient",{"type":66,"tag":216,"props":295,"children":296},{"style":280},[297],{"type":71,"value":298},"()\n",{"type":66,"tag":216,"props":300,"children":302},{"class":218,"line":301},3,[303,307,312,316,321,326,331],{"type":66,"tag":216,"props":304,"children":305},{"style":235},[306],{"type":71,"value":277},{"type":66,"tag":216,"props":308,"children":309},{"style":280},[310],{"type":71,"value":311}," email ",{"type":66,"tag":216,"props":313,"children":314},{"style":223},[315],{"type":71,"value":248},{"type":66,"tag":216,"props":317,"children":318},{"style":290},[319],{"type":71,"value":320}," ref",{"type":66,"tag":216,"props":322,"children":323},{"style":280},[324],{"type":71,"value":325},"(",{"type":66,"tag":216,"props":327,"children":328},{"style":223},[329],{"type":71,"value":330},"''",{"type":66,"tag":216,"props":332,"children":333},{"style":280},[334],{"type":71,"value":335},")\n",{"type":66,"tag":216,"props":337,"children":339},{"class":218,"line":338},4,[340],{"type":66,"tag":216,"props":341,"children":343},{"emptyLinePlaceholder":342},true,[344],{"type":71,"value":345},"\n",{"type":66,"tag":216,"props":347,"children":349},{"class":218,"line":348},5,[350,354,359,363,368,373,378],{"type":66,"tag":216,"props":351,"children":352},{"style":235},[353],{"type":71,"value":277},{"type":66,"tag":216,"props":355,"children":356},{"style":280},[357],{"type":71,"value":358}," signInWithOtp ",{"type":66,"tag":216,"props":360,"children":361},{"style":223},[362],{"type":71,"value":248},{"type":66,"tag":216,"props":364,"children":365},{"style":235},[366],{"type":71,"value":367}," async",{"type":66,"tag":216,"props":369,"children":370},{"style":223},[371],{"type":71,"value":372}," ()",{"type":66,"tag":216,"props":374,"children":375},{"style":235},[376],{"type":71,"value":377}," =>",{"type":66,"tag":216,"props":379,"children":380},{"style":223},[381],{"type":71,"value":382}," {\n",{"type":66,"tag":216,"props":384,"children":386},{"class":218,"line":385},6,[387,392,397,402,407,412,418,423,427,432,436,441,445],{"type":66,"tag":216,"props":388,"children":389},{"style":235},[390],{"type":71,"value":391}," const",{"type":66,"tag":216,"props":393,"children":394},{"style":223},[395],{"type":71,"value":396}," {",{"type":66,"tag":216,"props":398,"children":399},{"style":280},[400],{"type":71,"value":401}," error",{"type":66,"tag":216,"props":403,"children":404},{"style":223},[405],{"type":71,"value":406}," }",{"type":66,"tag":216,"props":408,"children":409},{"style":223},[410],{"type":71,"value":411}," =",{"type":66,"tag":216,"props":413,"children":415},{"style":414},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[416],{"type":71,"value":417}," await",{"type":66,"tag":216,"props":419,"children":420},{"style":280},[421],{"type":71,"value":422}," supabase",{"type":66,"tag":216,"props":424,"children":425},{"style":223},[426],{"type":71,"value":92},{"type":66,"tag":216,"props":428,"children":429},{"style":280},[430],{"type":71,"value":431},"auth",{"type":66,"tag":216,"props":433,"children":434},{"style":223},[435],{"type":71,"value":92},{"type":66,"tag":216,"props":437,"children":438},{"style":290},[439],{"type":71,"value":440},"signInWithOtp",{"type":66,"tag":216,"props":442,"children":443},{"style":229},[444],{"type":71,"value":325},{"type":66,"tag":216,"props":446,"children":447},{"style":223},[448],{"type":71,"value":449},"{\n",{"type":66,"tag":216,"props":451,"children":453},{"class":218,"line":452},7,[454,459,464,469,473,478],{"type":66,"tag":216,"props":455,"children":456},{"style":229},[457],{"type":71,"value":458}," email",{"type":66,"tag":216,"props":460,"children":461},{"style":223},[462],{"type":71,"value":463},":",{"type":66,"tag":216,"props":465,"children":466},{"style":280},[467],{"type":71,"value":468}," email",{"type":66,"tag":216,"props":470,"children":471},{"style":223},[472],{"type":71,"value":92},{"type":66,"tag":216,"props":474,"children":475},{"style":280},[476],{"type":71,"value":477},"value",{"type":66,"tag":216,"props":479,"children":480},{"style":223},[481],{"type":71,"value":482},",\n",{"type":66,"tag":216,"props":484,"children":486},{"class":218,"line":485},8,[487,492,496],{"type":66,"tag":216,"props":488,"children":489},{"style":229},[490],{"type":71,"value":491}," options",{"type":66,"tag":216,"props":493,"children":494},{"style":223},[495],{"type":71,"value":463},{"type":66,"tag":216,"props":497,"children":498},{"style":223},[499],{"type":71,"value":382},{"type":66,"tag":216,"props":501,"children":503},{"class":218,"line":502},9,[504,509,513,518,523,528],{"type":66,"tag":216,"props":505,"children":506},{"style":229},[507],{"type":71,"value":508}," emailRedirectTo",{"type":66,"tag":216,"props":510,"children":511},{"style":223},[512],{"type":71,"value":463},{"type":66,"tag":216,"props":514,"children":515},{"style":223},[516],{"type":71,"value":517}," '",{"type":66,"tag":216,"props":519,"children":520},{"style":256},[521],{"type":71,"value":522},"http://localhost:3000/confirm",{"type":66,"tag":216,"props":524,"children":525},{"style":223},[526],{"type":71,"value":527},"'",{"type":66,"tag":216,"props":529,"children":530},{"style":223},[531],{"type":71,"value":482},{"type":66,"tag":216,"props":533,"children":535},{"class":218,"line":534},10,[536],{"type":66,"tag":216,"props":537,"children":538},{"style":223},[539],{"type":71,"value":540}," }\n",{"type":66,"tag":216,"props":542,"children":544},{"class":218,"line":543},11,[545,550],{"type":66,"tag":216,"props":546,"children":547},{"style":223},[548],{"type":71,"value":549}," }",{"type":66,"tag":216,"props":551,"children":552},{"style":229},[553],{"type":71,"value":335},{"type":66,"tag":216,"props":555,"children":557},{"class":218,"line":556},12,[558,563,568,573,578,583,587,592,596,600],{"type":66,"tag":216,"props":559,"children":560},{"style":414},[561],{"type":71,"value":562}," if",{"type":66,"tag":216,"props":564,"children":565},{"style":229},[566],{"type":71,"value":567}," (",{"type":66,"tag":216,"props":569,"children":570},{"style":280},[571],{"type":71,"value":572},"error",{"type":66,"tag":216,"props":574,"children":575},{"style":229},[576],{"type":71,"value":577},") ",{"type":66,"tag":216,"props":579,"children":580},{"style":280},[581],{"type":71,"value":582},"console",{"type":66,"tag":216,"props":584,"children":585},{"style":223},[586],{"type":71,"value":92},{"type":66,"tag":216,"props":588,"children":589},{"style":290},[590],{"type":71,"value":591},"log",{"type":66,"tag":216,"props":593,"children":594},{"style":229},[595],{"type":71,"value":325},{"type":66,"tag":216,"props":597,"children":598},{"style":280},[599],{"type":71,"value":572},{"type":66,"tag":216,"props":601,"children":602},{"style":229},[603],{"type":71,"value":335},{"type":66,"tag":216,"props":605,"children":607},{"class":218,"line":606},13,[608],{"type":66,"tag":216,"props":609,"children":610},{"style":223},[611],{"type":71,"value":612},"}\n",{"type":66,"tag":216,"props":614,"children":616},{"class":218,"line":615},14,[617,622,626],{"type":66,"tag":216,"props":618,"children":619},{"style":223},[620],{"type":71,"value":621},"\u003C/",{"type":66,"tag":216,"props":623,"children":624},{"style":229},[625],{"type":71,"value":232},{"type":66,"tag":216,"props":627,"children":628},{"style":223},[629],{"type":71,"value":268},{"type":66,"tag":216,"props":631,"children":633},{"class":218,"line":632},15,[634,638,643],{"type":66,"tag":216,"props":635,"children":636},{"style":223},[637],{"type":71,"value":226},{"type":66,"tag":216,"props":639,"children":640},{"style":229},[641],{"type":71,"value":642},"template",{"type":66,"tag":216,"props":644,"children":645},{"style":223},[646],{"type":71,"value":268},{"type":66,"tag":216,"props":648,"children":650},{"class":218,"line":649},16,[651,656,661],{"type":66,"tag":216,"props":652,"children":653},{"style":223},[654],{"type":71,"value":655}," \u003C",{"type":66,"tag":216,"props":657,"children":658},{"style":229},[659],{"type":71,"value":660},"div",{"type":66,"tag":216,"props":662,"children":663},{"style":223},[664],{"type":71,"value":268},{"type":66,"tag":216,"props":666,"children":668},{"class":218,"line":667},17,[669,674,679,684,689,693,697,701,705],{"type":66,"tag":216,"props":670,"children":671},{"style":223},[672],{"type":71,"value":673}," \u003C",{"type":66,"tag":216,"props":675,"children":676},{"style":229},[677],{"type":71,"value":678},"button",{"type":66,"tag":216,"props":680,"children":681},{"style":223},[682],{"type":71,"value":683}," @",{"type":66,"tag":216,"props":685,"children":686},{"style":235},[687],{"type":71,"value":688},"click",{"type":66,"tag":216,"props":690,"children":691},{"style":223},[692],{"type":71,"value":248},{"type":66,"tag":216,"props":694,"children":695},{"style":223},[696],{"type":71,"value":253},{"type":66,"tag":216,"props":698,"children":699},{"style":280},[700],{"type":71,"value":440},{"type":66,"tag":216,"props":702,"children":703},{"style":223},[704],{"type":71,"value":253},{"type":66,"tag":216,"props":706,"children":707},{"style":223},[708],{"type":71,"value":268},{"type":66,"tag":216,"props":710,"children":712},{"class":218,"line":711},18,[713],{"type":66,"tag":216,"props":714,"children":715},{"style":280},[716],{"type":71,"value":717}," Sign In with E-Mail\n",{"type":66,"tag":216,"props":719,"children":721},{"class":218,"line":720},19,[722,727,731],{"type":66,"tag":216,"props":723,"children":724},{"style":223},[725],{"type":71,"value":726}," \u003C/",{"type":66,"tag":216,"props":728,"children":729},{"style":229},[730],{"type":71,"value":678},{"type":66,"tag":216,"props":732,"children":733},{"style":223},[734],{"type":71,"value":268},{"type":66,"tag":216,"props":736,"children":738},{"class":218,"line":737},20,[739,743],{"type":66,"tag":216,"props":740,"children":741},{"style":223},[742],{"type":71,"value":673},{"type":66,"tag":216,"props":744,"children":745},{"style":229},[746],{"type":71,"value":747},"input\n",{"type":66,"tag":216,"props":749,"children":751},{"class":218,"line":750},21,[752,757,761,765,770],{"type":66,"tag":216,"props":753,"children":754},{"style":235},[755],{"type":71,"value":756}," v-model",{"type":66,"tag":216,"props":758,"children":759},{"style":223},[760],{"type":71,"value":248},{"type":66,"tag":216,"props":762,"children":763},{"style":223},[764],{"type":71,"value":253},{"type":66,"tag":216,"props":766,"children":767},{"style":280},[768],{"type":71,"value":769},"email",{"type":66,"tag":216,"props":771,"children":772},{"style":223},[773],{"type":71,"value":774},"\"\n",{"type":66,"tag":216,"props":776,"children":778},{"class":218,"line":777},22,[779,784,788,792,796],{"type":66,"tag":216,"props":780,"children":781},{"style":235},[782],{"type":71,"value":783}," type",{"type":66,"tag":216,"props":785,"children":786},{"style":223},[787],{"type":71,"value":248},{"type":66,"tag":216,"props":789,"children":790},{"style":223},[791],{"type":71,"value":253},{"type":66,"tag":216,"props":793,"children":794},{"style":256},[795],{"type":71,"value":769},{"type":66,"tag":216,"props":797,"children":798},{"style":223},[799],{"type":71,"value":774},{"type":66,"tag":216,"props":801,"children":803},{"class":218,"line":802},23,[804],{"type":66,"tag":216,"props":805,"children":806},{"style":223},[807],{"type":71,"value":808}," />\n",{"type":66,"tag":216,"props":810,"children":812},{"class":218,"line":811},24,[813,818,822],{"type":66,"tag":216,"props":814,"children":815},{"style":223},[816],{"type":71,"value":817}," \u003C/",{"type":66,"tag":216,"props":819,"children":820},{"style":229},[821],{"type":71,"value":660},{"type":66,"tag":216,"props":823,"children":824},{"style":223},[825],{"type":71,"value":268},{"type":66,"tag":216,"props":827,"children":829},{"class":218,"line":828},25,[830,834,838],{"type":66,"tag":216,"props":831,"children":832},{"style":223},[833],{"type":71,"value":621},{"type":66,"tag":216,"props":835,"children":836},{"style":229},[837],{"type":71,"value":642},{"type":66,"tag":216,"props":839,"children":840},{"style":223},[841],{"type":71,"value":268},{"type":66,"tag":67,"props":843,"children":844},{},[845,847,852,854,858,860,866],{"type":71,"value":846},"Once the authorization flow is triggered using the ",{"type":66,"tag":99,"props":848,"children":850},{"className":849},[],[851],{"type":71,"value":431},{"type":71,"value":853}," wrapper of the ",{"type":66,"tag":74,"props":855,"children":856},{"href":22},[857],{"type":71,"value":21},{"type":71,"value":859}," composable, the session management is handled automatically and the user will be redirected to the page you specify in the redirect option (",{"type":66,"tag":99,"props":861,"children":863},{"className":862},[],[864],{"type":71,"value":865},"/confirm",{"type":71,"value":867}," by default).",{"type":66,"tag":141,"props":869,"children":871},{"id":870},"confirm-page-confirm",[872,874],{"type":71,"value":873},"Confirm page - ",{"type":66,"tag":99,"props":875,"children":877},{"className":876},[],[878],{"type":71,"value":865},{"type":66,"tag":67,"props":880,"children":881},{},[882],{"type":71,"value":883},"The confirmation page receives the supabase callback. From there you can check the user value and redirect to the appropriate page.",{"type":66,"tag":124,"props":885,"children":886},{"icon":126},[887],{"type":66,"tag":67,"props":888,"children":889},{},[890,892,898],{"type":71,"value":891},"The redirect URL must be configured in your Supabase dashboard under ",{"type":66,"tag":99,"props":893,"children":895},{"className":894},[],[896],{"type":71,"value":897},"Authentication -> URL Configuration -> Redirect URLs",{"type":71,"value":92},{"type":66,"tag":205,"props":900,"children":903},{"className":207,"code":901,"filename":902,"language":210,"meta":59,"style":59},"\u003Cscript setup lang=\"ts\">\nconst user = useSupabaseUser()\n\nwatch(user, () => {\n if (user.value) {\n // Redirect to protected page\n return navigateTo('/')\n }\n}, { immediate: true })\n\u003C/script>\n\n\u003Ctemplate>\n \u003Cdiv>Waiting for login...\u003C/div>\n\u003C/template>\n","pages/confirm.vue",[904],{"type":66,"tag":99,"props":905,"children":906},{"__ignoreMap":59},[907,946,971,978,1008,1040,1049,1083,1091,1126,1141,1148,1163,1196],{"type":66,"tag":216,"props":908,"children":909},{"class":218,"line":219},[910,914,918,922,926,930,934,938,942],{"type":66,"tag":216,"props":911,"children":912},{"style":223},[913],{"type":71,"value":226},{"type":66,"tag":216,"props":915,"children":916},{"style":229},[917],{"type":71,"value":232},{"type":66,"tag":216,"props":919,"children":920},{"style":235},[921],{"type":71,"value":238},{"type":66,"tag":216,"props":923,"children":924},{"style":235},[925],{"type":71,"value":243},{"type":66,"tag":216,"props":927,"children":928},{"style":223},[929],{"type":71,"value":248},{"type":66,"tag":216,"props":931,"children":932},{"style":223},[933],{"type":71,"value":253},{"type":66,"tag":216,"props":935,"children":936},{"style":256},[937],{"type":71,"value":259},{"type":66,"tag":216,"props":939,"children":940},{"style":223},[941],{"type":71,"value":253},{"type":66,"tag":216,"props":943,"children":944},{"style":223},[945],{"type":71,"value":268},{"type":66,"tag":216,"props":947,"children":948},{"class":218,"line":271},[949,953,958,962,967],{"type":66,"tag":216,"props":950,"children":951},{"style":235},[952],{"type":71,"value":277},{"type":66,"tag":216,"props":954,"children":955},{"style":280},[956],{"type":71,"value":957}," user ",{"type":66,"tag":216,"props":959,"children":960},{"style":223},[961],{"type":71,"value":248},{"type":66,"tag":216,"props":963,"children":964},{"style":290},[965],{"type":71,"value":966}," useSupabaseUser",{"type":66,"tag":216,"props":968,"children":969},{"style":280},[970],{"type":71,"value":298},{"type":66,"tag":216,"props":972,"children":973},{"class":218,"line":301},[974],{"type":66,"tag":216,"props":975,"children":976},{"emptyLinePlaceholder":342},[977],{"type":71,"value":345},{"type":66,"tag":216,"props":979,"children":980},{"class":218,"line":338},[981,986,991,996,1000,1004],{"type":66,"tag":216,"props":982,"children":983},{"style":290},[984],{"type":71,"value":985},"watch",{"type":66,"tag":216,"props":987,"children":988},{"style":280},[989],{"type":71,"value":990},"(user",{"type":66,"tag":216,"props":992,"children":993},{"style":223},[994],{"type":71,"value":995},",",{"type":66,"tag":216,"props":997,"children":998},{"style":223},[999],{"type":71,"value":372},{"type":66,"tag":216,"props":1001,"children":1002},{"style":235},[1003],{"type":71,"value":377},{"type":66,"tag":216,"props":1005,"children":1006},{"style":223},[1007],{"type":71,"value":382},{"type":66,"tag":216,"props":1009,"children":1010},{"class":218,"line":348},[1011,1015,1019,1024,1028,1032,1036],{"type":66,"tag":216,"props":1012,"children":1013},{"style":414},[1014],{"type":71,"value":562},{"type":66,"tag":216,"props":1016,"children":1017},{"style":229},[1018],{"type":71,"value":567},{"type":66,"tag":216,"props":1020,"children":1021},{"style":280},[1022],{"type":71,"value":1023},"user",{"type":66,"tag":216,"props":1025,"children":1026},{"style":223},[1027],{"type":71,"value":92},{"type":66,"tag":216,"props":1029,"children":1030},{"style":280},[1031],{"type":71,"value":477},{"type":66,"tag":216,"props":1033,"children":1034},{"style":229},[1035],{"type":71,"value":577},{"type":66,"tag":216,"props":1037,"children":1038},{"style":223},[1039],{"type":71,"value":449},{"type":66,"tag":216,"props":1041,"children":1042},{"class":218,"line":385},[1043],{"type":66,"tag":216,"props":1044,"children":1046},{"style":1045},"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[1047],{"type":71,"value":1048}," // Redirect to protected page\n",{"type":66,"tag":216,"props":1050,"children":1051},{"class":218,"line":452},[1052,1057,1062,1066,1070,1075,1079],{"type":66,"tag":216,"props":1053,"children":1054},{"style":414},[1055],{"type":71,"value":1056}," return",{"type":66,"tag":216,"props":1058,"children":1059},{"style":290},[1060],{"type":71,"value":1061}," navigateTo",{"type":66,"tag":216,"props":1063,"children":1064},{"style":229},[1065],{"type":71,"value":325},{"type":66,"tag":216,"props":1067,"children":1068},{"style":223},[1069],{"type":71,"value":527},{"type":66,"tag":216,"props":1071,"children":1072},{"style":256},[1073],{"type":71,"value":1074},"/",{"type":66,"tag":216,"props":1076,"children":1077},{"style":223},[1078],{"type":71,"value":527},{"type":66,"tag":216,"props":1080,"children":1081},{"style":229},[1082],{"type":71,"value":335},{"type":66,"tag":216,"props":1084,"children":1085},{"class":218,"line":485},[1086],{"type":66,"tag":216,"props":1087,"children":1088},{"style":223},[1089],{"type":71,"value":1090}," }\n",{"type":66,"tag":216,"props":1092,"children":1093},{"class":218,"line":502},[1094,1099,1103,1108,1112,1118,1122],{"type":66,"tag":216,"props":1095,"children":1096},{"style":223},[1097],{"type":71,"value":1098},"},",{"type":66,"tag":216,"props":1100,"children":1101},{"style":223},[1102],{"type":71,"value":396},{"type":66,"tag":216,"props":1104,"children":1105},{"style":229},[1106],{"type":71,"value":1107}," immediate",{"type":66,"tag":216,"props":1109,"children":1110},{"style":223},[1111],{"type":71,"value":463},{"type":66,"tag":216,"props":1113,"children":1115},{"style":1114},"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC",[1116],{"type":71,"value":1117}," true",{"type":66,"tag":216,"props":1119,"children":1120},{"style":223},[1121],{"type":71,"value":406},{"type":66,"tag":216,"props":1123,"children":1124},{"style":280},[1125],{"type":71,"value":335},{"type":66,"tag":216,"props":1127,"children":1128},{"class":218,"line":534},[1129,1133,1137],{"type":66,"tag":216,"props":1130,"children":1131},{"style":223},[1132],{"type":71,"value":621},{"type":66,"tag":216,"props":1134,"children":1135},{"style":229},[1136],{"type":71,"value":232},{"type":66,"tag":216,"props":1138,"children":1139},{"style":223},[1140],{"type":71,"value":268},{"type":66,"tag":216,"props":1142,"children":1143},{"class":218,"line":543},[1144],{"type":66,"tag":216,"props":1145,"children":1146},{"emptyLinePlaceholder":342},[1147],{"type":71,"value":345},{"type":66,"tag":216,"props":1149,"children":1150},{"class":218,"line":556},[1151,1155,1159],{"type":66,"tag":216,"props":1152,"children":1153},{"style":223},[1154],{"type":71,"value":226},{"type":66,"tag":216,"props":1156,"children":1157},{"style":229},[1158],{"type":71,"value":642},{"type":66,"tag":216,"props":1160,"children":1161},{"style":223},[1162],{"type":71,"value":268},{"type":66,"tag":216,"props":1164,"children":1165},{"class":218,"line":606},[1166,1170,1174,1179,1184,1188,1192],{"type":66,"tag":216,"props":1167,"children":1168},{"style":223},[1169],{"type":71,"value":655},{"type":66,"tag":216,"props":1171,"children":1172},{"style":229},[1173],{"type":71,"value":660},{"type":66,"tag":216,"props":1175,"children":1176},{"style":223},[1177],{"type":71,"value":1178},">",{"type":66,"tag":216,"props":1180,"children":1181},{"style":280},[1182],{"type":71,"value":1183},"Waiting for login...",{"type":66,"tag":216,"props":1185,"children":1186},{"style":223},[1187],{"type":71,"value":621},{"type":66,"tag":216,"props":1189,"children":1190},{"style":229},[1191],{"type":71,"value":660},{"type":66,"tag":216,"props":1193,"children":1194},{"style":223},[1195],{"type":71,"value":268},{"type":66,"tag":216,"props":1197,"children":1198},{"class":218,"line":615},[1199,1203,1207],{"type":66,"tag":216,"props":1200,"children":1201},{"style":223},[1202],{"type":71,"value":621},{"type":66,"tag":216,"props":1204,"children":1205},{"style":229},[1206],{"type":71,"value":642},{"type":66,"tag":216,"props":1208,"children":1209},{"style":223},[1210],{"type":71,"value":268},{"type":66,"tag":1212,"props":1213,"children":1215},"h3",{"id":1214},"redirect-path",[1216],{"type":71,"value":1217},"Redirect path",{"type":66,"tag":67,"props":1219,"children":1220},{},[1221],{"type":71,"value":1222},"You can easily handle redirection to the initial requested route after login.",{"type":66,"tag":124,"props":1224,"children":1225},{"icon":126},[1226],{"type":66,"tag":67,"props":1227,"children":1228},{},[1229,1231,1237,1239,1244],{"type":71,"value":1230},"You must enable the ",{"type":66,"tag":99,"props":1232,"children":1234},{"className":1233},[],[1235],{"type":71,"value":1236},"cookieRedirect",{"type":71,"value":1238}," option of the ",{"type":66,"tag":74,"props":1240,"children":1241},{"href":160},[1242],{"type":71,"value":1243},"redirectOptions",{"type":71,"value":1245}," to allow cookie storage and take benefit of this feature.",{"type":66,"tag":205,"props":1247,"children":1249},{"className":207,"code":1248,"filename":902,"language":210,"meta":59,"style":59},"\u003Cscript setup lang=\"ts\">\nconst user = useSupabaseUser()\n\n// Get redirect path from cookies\nconst cookieName = useRuntimeConfig().public.supabase.cookieName\nconst redirectPath = useCookie(`${cookieName}-redirect-path`).value\n\nwatch(user, () => {\n if (user.value) {\n // Clear cookie\n useCookie(`${cookieName}-redirect-path`).value = null\n // Redirect to path\n return navigateTo(redirectPath || '/'); \n }\n}, { immediate: true })\n\u003C/script>\n\u003Ctemplate>\n \u003Cdiv>Waiting for login...\u003C/div>\n\u003C/template>\n",[1250],{"type":66,"tag":99,"props":1251,"children":1252},{"__ignoreMap":59},[1253,1292,1315,1322,1330,1383,1447,1454,1481,1512,1520,1573,1581,1632,1639,1670,1685,1700,1731],{"type":66,"tag":216,"props":1254,"children":1255},{"class":218,"line":219},[1256,1260,1264,1268,1272,1276,1280,1284,1288],{"type":66,"tag":216,"props":1257,"children":1258},{"style":223},[1259],{"type":71,"value":226},{"type":66,"tag":216,"props":1261,"children":1262},{"style":229},[1263],{"type":71,"value":232},{"type":66,"tag":216,"props":1265,"children":1266},{"style":235},[1267],{"type":71,"value":238},{"type":66,"tag":216,"props":1269,"children":1270},{"style":235},[1271],{"type":71,"value":243},{"type":66,"tag":216,"props":1273,"children":1274},{"style":223},[1275],{"type":71,"value":248},{"type":66,"tag":216,"props":1277,"children":1278},{"style":223},[1279],{"type":71,"value":253},{"type":66,"tag":216,"props":1281,"children":1282},{"style":256},[1283],{"type":71,"value":259},{"type":66,"tag":216,"props":1285,"children":1286},{"style":223},[1287],{"type":71,"value":253},{"type":66,"tag":216,"props":1289,"children":1290},{"style":223},[1291],{"type":71,"value":268},{"type":66,"tag":216,"props":1293,"children":1294},{"class":218,"line":271},[1295,1299,1303,1307,1311],{"type":66,"tag":216,"props":1296,"children":1297},{"style":235},[1298],{"type":71,"value":277},{"type":66,"tag":216,"props":1300,"children":1301},{"style":280},[1302],{"type":71,"value":957},{"type":66,"tag":216,"props":1304,"children":1305},{"style":223},[1306],{"type":71,"value":248},{"type":66,"tag":216,"props":1308,"children":1309},{"style":290},[1310],{"type":71,"value":966},{"type":66,"tag":216,"props":1312,"children":1313},{"style":280},[1314],{"type":71,"value":298},{"type":66,"tag":216,"props":1316,"children":1317},{"class":218,"line":301},[1318],{"type":66,"tag":216,"props":1319,"children":1320},{"emptyLinePlaceholder":342},[1321],{"type":71,"value":345},{"type":66,"tag":216,"props":1323,"children":1324},{"class":218,"line":338},[1325],{"type":66,"tag":216,"props":1326,"children":1327},{"style":1045},[1328],{"type":71,"value":1329},"// Get redirect path from cookies\n",{"type":66,"tag":216,"props":1331,"children":1332},{"class":218,"line":348},[1333,1337,1342,1346,1351,1356,1360,1365,1369,1374,1378],{"type":66,"tag":216,"props":1334,"children":1335},{"style":235},[1336],{"type":71,"value":277},{"type":66,"tag":216,"props":1338,"children":1339},{"style":280},[1340],{"type":71,"value":1341}," cookieName ",{"type":66,"tag":216,"props":1343,"children":1344},{"style":223},[1345],{"type":71,"value":248},{"type":66,"tag":216,"props":1347,"children":1348},{"style":290},[1349],{"type":71,"value":1350}," useRuntimeConfig",{"type":66,"tag":216,"props":1352,"children":1353},{"style":280},[1354],{"type":71,"value":1355},"()",{"type":66,"tag":216,"props":1357,"children":1358},{"style":223},[1359],{"type":71,"value":92},{"type":66,"tag":216,"props":1361,"children":1362},{"style":280},[1363],{"type":71,"value":1364},"public",{"type":66,"tag":216,"props":1366,"children":1367},{"style":223},[1368],{"type":71,"value":92},{"type":66,"tag":216,"props":1370,"children":1371},{"style":280},[1372],{"type":71,"value":1373},"supabase",{"type":66,"tag":216,"props":1375,"children":1376},{"style":223},[1377],{"type":71,"value":92},{"type":66,"tag":216,"props":1379,"children":1380},{"style":280},[1381],{"type":71,"value":1382},"cookieName\n",{"type":66,"tag":216,"props":1384,"children":1385},{"class":218,"line":385},[1386,1390,1395,1399,1404,1408,1413,1418,1423,1428,1433,1438,1442],{"type":66,"tag":216,"props":1387,"children":1388},{"style":235},[1389],{"type":71,"value":277},{"type":66,"tag":216,"props":1391,"children":1392},{"style":280},[1393],{"type":71,"value":1394}," redirectPath ",{"type":66,"tag":216,"props":1396,"children":1397},{"style":223},[1398],{"type":71,"value":248},{"type":66,"tag":216,"props":1400,"children":1401},{"style":290},[1402],{"type":71,"value":1403}," useCookie",{"type":66,"tag":216,"props":1405,"children":1406},{"style":280},[1407],{"type":71,"value":325},{"type":66,"tag":216,"props":1409,"children":1410},{"style":223},[1411],{"type":71,"value":1412},"`${",{"type":66,"tag":216,"props":1414,"children":1415},{"style":280},[1416],{"type":71,"value":1417},"cookieName",{"type":66,"tag":216,"props":1419,"children":1420},{"style":223},[1421],{"type":71,"value":1422},"}",{"type":66,"tag":216,"props":1424,"children":1425},{"style":256},[1426],{"type":71,"value":1427},"-redirect-path",{"type":66,"tag":216,"props":1429,"children":1430},{"style":223},[1431],{"type":71,"value":1432},"`",{"type":66,"tag":216,"props":1434,"children":1435},{"style":280},[1436],{"type":71,"value":1437},")",{"type":66,"tag":216,"props":1439,"children":1440},{"style":223},[1441],{"type":71,"value":92},{"type":66,"tag":216,"props":1443,"children":1444},{"style":280},[1445],{"type":71,"value":1446},"value\n",{"type":66,"tag":216,"props":1448,"children":1449},{"class":218,"line":452},[1450],{"type":66,"tag":216,"props":1451,"children":1452},{"emptyLinePlaceholder":342},[1453],{"type":71,"value":345},{"type":66,"tag":216,"props":1455,"children":1456},{"class":218,"line":485},[1457,1461,1465,1469,1473,1477],{"type":66,"tag":216,"props":1458,"children":1459},{"style":290},[1460],{"type":71,"value":985},{"type":66,"tag":216,"props":1462,"children":1463},{"style":280},[1464],{"type":71,"value":990},{"type":66,"tag":216,"props":1466,"children":1467},{"style":223},[1468],{"type":71,"value":995},{"type":66,"tag":216,"props":1470,"children":1471},{"style":223},[1472],{"type":71,"value":372},{"type":66,"tag":216,"props":1474,"children":1475},{"style":235},[1476],{"type":71,"value":377},{"type":66,"tag":216,"props":1478,"children":1479},{"style":223},[1480],{"type":71,"value":382},{"type":66,"tag":216,"props":1482,"children":1483},{"class":218,"line":502},[1484,1488,1492,1496,1500,1504,1508],{"type":66,"tag":216,"props":1485,"children":1486},{"style":414},[1487],{"type":71,"value":562},{"type":66,"tag":216,"props":1489,"children":1490},{"style":229},[1491],{"type":71,"value":567},{"type":66,"tag":216,"props":1493,"children":1494},{"style":280},[1495],{"type":71,"value":1023},{"type":66,"tag":216,"props":1497,"children":1498},{"style":223},[1499],{"type":71,"value":92},{"type":66,"tag":216,"props":1501,"children":1502},{"style":280},[1503],{"type":71,"value":477},{"type":66,"tag":216,"props":1505,"children":1506},{"style":229},[1507],{"type":71,"value":577},{"type":66,"tag":216,"props":1509,"children":1510},{"style":223},[1511],{"type":71,"value":449},{"type":66,"tag":216,"props":1513,"children":1514},{"class":218,"line":534},[1515],{"type":66,"tag":216,"props":1516,"children":1517},{"style":1045},[1518],{"type":71,"value":1519}," // Clear cookie\n",{"type":66,"tag":216,"props":1521,"children":1522},{"class":218,"line":543},[1523,1528,1532,1536,1540,1544,1548,1552,1556,1560,1564,1568],{"type":66,"tag":216,"props":1524,"children":1525},{"style":290},[1526],{"type":71,"value":1527}," useCookie",{"type":66,"tag":216,"props":1529,"children":1530},{"style":229},[1531],{"type":71,"value":325},{"type":66,"tag":216,"props":1533,"children":1534},{"style":223},[1535],{"type":71,"value":1412},{"type":66,"tag":216,"props":1537,"children":1538},{"style":280},[1539],{"type":71,"value":1417},{"type":66,"tag":216,"props":1541,"children":1542},{"style":223},[1543],{"type":71,"value":1422},{"type":66,"tag":216,"props":1545,"children":1546},{"style":256},[1547],{"type":71,"value":1427},{"type":66,"tag":216,"props":1549,"children":1550},{"style":223},[1551],{"type":71,"value":1432},{"type":66,"tag":216,"props":1553,"children":1554},{"style":229},[1555],{"type":71,"value":1437},{"type":66,"tag":216,"props":1557,"children":1558},{"style":223},[1559],{"type":71,"value":92},{"type":66,"tag":216,"props":1561,"children":1562},{"style":280},[1563],{"type":71,"value":477},{"type":66,"tag":216,"props":1565,"children":1566},{"style":223},[1567],{"type":71,"value":411},{"type":66,"tag":216,"props":1569,"children":1570},{"style":223},[1571],{"type":71,"value":1572}," null\n",{"type":66,"tag":216,"props":1574,"children":1575},{"class":218,"line":556},[1576],{"type":66,"tag":216,"props":1577,"children":1578},{"style":1045},[1579],{"type":71,"value":1580}," // Redirect to path\n",{"type":66,"tag":216,"props":1582,"children":1583},{"class":218,"line":606},[1584,1588,1592,1596,1601,1606,1610,1614,1618,1622,1627],{"type":66,"tag":216,"props":1585,"children":1586},{"style":414},[1587],{"type":71,"value":1056},{"type":66,"tag":216,"props":1589,"children":1590},{"style":290},[1591],{"type":71,"value":1061},{"type":66,"tag":216,"props":1593,"children":1594},{"style":229},[1595],{"type":71,"value":325},{"type":66,"tag":216,"props":1597,"children":1598},{"style":280},[1599],{"type":71,"value":1600},"redirectPath",{"type":66,"tag":216,"props":1602,"children":1603},{"style":223},[1604],{"type":71,"value":1605}," ||",{"type":66,"tag":216,"props":1607,"children":1608},{"style":223},[1609],{"type":71,"value":517},{"type":66,"tag":216,"props":1611,"children":1612},{"style":256},[1613],{"type":71,"value":1074},{"type":66,"tag":216,"props":1615,"children":1616},{"style":223},[1617],{"type":71,"value":527},{"type":66,"tag":216,"props":1619,"children":1620},{"style":229},[1621],{"type":71,"value":1437},{"type":66,"tag":216,"props":1623,"children":1624},{"style":223},[1625],{"type":71,"value":1626},";",{"type":66,"tag":216,"props":1628,"children":1629},{"style":229},[1630],{"type":71,"value":1631}," \n",{"type":66,"tag":216,"props":1633,"children":1634},{"class":218,"line":615},[1635],{"type":66,"tag":216,"props":1636,"children":1637},{"style":223},[1638],{"type":71,"value":1090},{"type":66,"tag":216,"props":1640,"children":1641},{"class":218,"line":632},[1642,1646,1650,1654,1658,1662,1666],{"type":66,"tag":216,"props":1643,"children":1644},{"style":223},[1645],{"type":71,"value":1098},{"type":66,"tag":216,"props":1647,"children":1648},{"style":223},[1649],{"type":71,"value":396},{"type":66,"tag":216,"props":1651,"children":1652},{"style":229},[1653],{"type":71,"value":1107},{"type":66,"tag":216,"props":1655,"children":1656},{"style":223},[1657],{"type":71,"value":463},{"type":66,"tag":216,"props":1659,"children":1660},{"style":1114},[1661],{"type":71,"value":1117},{"type":66,"tag":216,"props":1663,"children":1664},{"style":223},[1665],{"type":71,"value":406},{"type":66,"tag":216,"props":1667,"children":1668},{"style":280},[1669],{"type":71,"value":335},{"type":66,"tag":216,"props":1671,"children":1672},{"class":218,"line":649},[1673,1677,1681],{"type":66,"tag":216,"props":1674,"children":1675},{"style":223},[1676],{"type":71,"value":621},{"type":66,"tag":216,"props":1678,"children":1679},{"style":229},[1680],{"type":71,"value":232},{"type":66,"tag":216,"props":1682,"children":1683},{"style":223},[1684],{"type":71,"value":268},{"type":66,"tag":216,"props":1686,"children":1687},{"class":218,"line":667},[1688,1692,1696],{"type":66,"tag":216,"props":1689,"children":1690},{"style":223},[1691],{"type":71,"value":226},{"type":66,"tag":216,"props":1693,"children":1694},{"style":229},[1695],{"type":71,"value":642},{"type":66,"tag":216,"props":1697,"children":1698},{"style":223},[1699],{"type":71,"value":268},{"type":66,"tag":216,"props":1701,"children":1702},{"class":218,"line":711},[1703,1707,1711,1715,1719,1723,1727],{"type":66,"tag":216,"props":1704,"children":1705},{"style":223},[1706],{"type":71,"value":655},{"type":66,"tag":216,"props":1708,"children":1709},{"style":229},[1710],{"type":71,"value":660},{"type":66,"tag":216,"props":1712,"children":1713},{"style":223},[1714],{"type":71,"value":1178},{"type":66,"tag":216,"props":1716,"children":1717},{"style":280},[1718],{"type":71,"value":1183},{"type":66,"tag":216,"props":1720,"children":1721},{"style":223},[1722],{"type":71,"value":621},{"type":66,"tag":216,"props":1724,"children":1725},{"style":229},[1726],{"type":71,"value":660},{"type":66,"tag":216,"props":1728,"children":1729},{"style":223},[1730],{"type":71,"value":268},{"type":66,"tag":216,"props":1732,"children":1733},{"class":218,"line":720},[1734,1738,1742],{"type":66,"tag":216,"props":1735,"children":1736},{"style":223},[1737],{"type":71,"value":621},{"type":66,"tag":216,"props":1739,"children":1740},{"style":229},[1741],{"type":71,"value":642},{"type":66,"tag":216,"props":1743,"children":1744},{"style":223},[1745],{"type":71,"value":268},{"type":66,"tag":1747,"props":1748,"children":1749},"style",{},[1750],{"type":71,"value":1751},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":59,"searchDepth":271,"depth":271,"links":1753},[1754,1756],{"id":143,"depth":271,"text":1755},"Log-in page - /login",{"id":870,"depth":271,"text":1757,"children":1758},"Confirm page - /confirm",[1759],{"id":1214,"depth":301,"text":1217},"markdown","content:3.authentication.md","content","3.authentication.md","3.authentication","md",[1767,1769],{"_path":6,"title":5,"description":1768},"@nuxtjs/supabase is a Nuxt module for first class integration with Supabase.",{"_path":22,"title":21,"description":1770},"Make requests to the Supabase API with the useSupabaseClient composable",1725013745494] \ No newline at end of file diff --git a/authentication/index.html b/authentication/index.html index 5d4be239c..a386aefa3 100644 --- a/authentication/index.html +++ b/authentication/index.html @@ -61,52 +61,52 @@ - - - - - - - + + + + + + + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - + - - - - - - - + + + + + + + - - + + - + -
mobile favicon

Authentication

Authenticate your user thanks to the PKCE Oauth protocol that enables secure exchange of refresh and access tokens between an application and the authorization server

With the default options, the module requires a log-in page and a confirm page to handle the PKCE authorization code flow. If you want to understand how it works under the hood, you can read this section.

All you need to do is to create a login.vue and confirm.vue page in the pages folder.

For advanced users who want to implement the auth behaviour themselves, you can disable or override the redirect options.

Log-in page - /login

Each time a user is trying to access a page that needs authentication, he will automatically be redirected to the configured log in page. If you want to allow access to "public" page, you just need to add them in the exclude redirect option. Alternatively, you can enable the redirect only for certain routes using the include redirect option.

Ensure to activate the authentication providers you want in the Supabase Dashboard under Authentication -> Providers.

The log-in page initiates the log-in method(s) you choose from the available authorization methods provided by Supabase, it could looks like:

pages/login.vue
<script setup lang="ts">
+
mobile favicon

Authentication

Authenticate your user thanks to the PKCE Oauth protocol that enables secure exchange of refresh and access tokens between an application and the authorization server

With the default options, the module requires a log-in page and a confirm page to handle the PKCE authorization code flow. If you want to understand how it works under the hood, you can read this section.

All you need to do is to create a login.vue and confirm.vue page in the pages folder.

For advanced users who want to implement the auth behaviour themselves, you can disable or override the redirect options.

Log-in page - /login

Each time a user is trying to access a page that needs authentication, he will automatically be redirected to the configured log in page. If you want to allow access to "public" page, you just need to add them in the exclude redirect option. Alternatively, you can enable the redirect only for certain routes using the include redirect option.

Ensure to activate the authentication providers you want in the Supabase Dashboard under Authentication -> Providers.

The log-in page initiates the log-in method(s) you choose from the available authorization methods provided by Supabase, it could looks like:

pages/login.vue
<script setup lang="ts">
 const supabase = useSupabaseClient()
 const email = ref('')
 
@@ -165,5 +165,5 @@
   <div>Waiting for login...</div>
 </template>
 

Made with Nuxt Studio
- - \ No newline at end of file + + \ No newline at end of file diff --git a/changelog/_payload.json b/changelog/_payload.json index 40546d133..240634238 100644 --- a/changelog/_payload.json +++ b/changelog/_payload.json @@ -1 +1 @@ -[{"data":1,"prerenderedAt":4687},["ShallowReactive",2],{"navigation":3,"/changelog":58,"/changelog-surround":86,"releases":91},[4,8,12,46,50,54],{"title":5,"_path":6,"icon":7},"Get Started","/get-started","i-heroicons-rocket-launch",{"title":9,"_path":10,"icon":11},"Authentication","/authentication","i-heroicons-lock-closed",{"title":13,"_path":14,"children":15,"icon":45},"Usage","/usage",[16,29],{"title":17,"_path":18,"children":19},"Vue composables","/usage/composables",[20,23,26],{"title":21,"_path":22},"useSupabaseClient","/usage/composables/usesupabaseclient",{"title":24,"_path":25},"useSupabaseSession","/usage/composables/usesupabasesession",{"title":27,"_path":28},"useSupabaseUser","/usage/composables/usesupabaseuser",{"title":30,"_path":31,"children":32},"Server services","/usage/services",[33,36,39,42],{"title":34,"_path":35},"serverSupabaseClient","/usage/services/serversupabaseclient",{"title":37,"_path":38},"serverSupabaseServiceRole","/usage/services/serversupabaseservicerole",{"title":40,"_path":41},"serverSupabaseSession","/usage/services/serversupabasesession",{"title":43,"_path":44},"serverSupabaseUser","/usage/services/serversupabaseuser","heroicons:book-open",{"title":47,"_path":48,"icon":49},"Demo","/demo","i-heroicons-computer-desktop-20-solid",{"title":51,"_path":52,"icon":53},"Changelog","/changelog","i-heroicons-bookmark",{"title":55,"_path":56,"icon":57},"Roadmap","/roadmap","i-heroicons-map",{"_path":52,"_dir":59,"_draft":60,"_partial":60,"_locale":59,"title":51,"description":61,"icon":53,"body":62,"_type":80,"_id":81,"_source":82,"_file":83,"_stem":84,"_extension":85},"",false,"Discover the latest updates of the Supabase Module",{"type":63,"children":64,"toc":77},"root",[65,73],{"type":66,"tag":67,"props":68,"children":69},"element","p",{},[70],{"type":71,"value":72},"text","Discover the lastest updates.",{"type":66,"tag":74,"props":75,"children":76},"releases",{},[],{"title":59,"searchDepth":78,"depth":78,"links":79},2,[],"markdown","content:6.changelog.md","content","6.changelog.md","6.changelog","md",[87,89],{"_path":48,"title":47,"description":88},"Demonstration of using Supabase with Nuxt.",{"_path":56,"title":55,"description":90},"Discover our kaban board for the next release of the Supabase module.",[92,170,222,297,532,588,688,786,890,1015,1190,1259,1365,1605,1698,2002,2104,2181,2247,2546,2820,2893,3025,3070,3130,3182,3329,3428,3491,3542,3587,3639,3752,3828,3906,3970,4055,4157,4263,4379,4413,4477,4541,4629],{"name":93,"tag_name":93,"date":94,"body":95,"v":161,"url":162,"tarball":163,"zipball":164,"prerelease":60,"author":165,"title":59,"description":59,"_type":80,"_id":169},"v1.3.5","2024-07-15T12:59:37Z",{"type":63,"children":96,"toc":155},[97,104,111,145],{"type":66,"tag":98,"props":99,"children":101},"h2",{"id":100},"whats-changed",[102],{"type":71,"value":103},"What's Changed",{"type":66,"tag":105,"props":106,"children":108},"h3",{"id":107},"bug-fixes",[109],{"type":71,"value":110},"Bug Fixes",{"type":66,"tag":112,"props":113,"children":114},"ul",{},[115],{"type":66,"tag":116,"props":117,"children":118},"li",{},[119,125,127,136,138],{"type":66,"tag":120,"props":121,"children":122},"strong",{},[123],{"type":71,"value":124},"types:",{"type":71,"value":126}," generate (",{"type":66,"tag":128,"props":129,"children":133},"a",{"href":130,"rel":131},"https://github.com/nuxt-community/supabase-module/commit/671295a3f8e1743384913f2940975c2e4217ff2e",[132],"nofollow",[134],{"type":71,"value":135},"671295a",{"type":71,"value":137},") resolves ",{"type":66,"tag":128,"props":139,"children":142},{"href":140,"rel":141},"https://github.com/nuxt-modules/supabase/issues/383",[132],[143],{"type":71,"value":144},"#383",{"type":66,"tag":67,"props":146,"children":147},{},[148],{"type":66,"tag":128,"props":149,"children":152},{"href":150,"rel":151},"https://github.com/nuxt-community/supabase-module/compare/v1.3.4...v1.3.5",[132],[153],{"type":71,"value":154},"Full changelog",{"title":59,"searchDepth":78,"depth":78,"links":156},[157],{"id":100,"depth":78,"text":103,"children":158},[159],{"id":107,"depth":160,"text":110},3,1,"https://github.com/nuxt-modules/supabase/releases/tag/v1.3.5","https://api.github.com/repos/nuxt-modules/supabase/tarball/v1.3.5","https://api.github.com/repos/nuxt-modules/supabase/zipball/v1.3.5",{"name":166,"url":167,"avatar":168},"larbish","https://github.com/larbish","https://avatars.githubusercontent.com/u/7290030?v=4","github:v1.3.5.md",{"name":171,"tag_name":171,"date":172,"body":173,"v":161,"url":217,"tarball":218,"zipball":219,"prerelease":60,"author":220,"title":59,"description":59,"_type":80,"_id":221},"v1.3.4","2024-07-10T07:00:38Z",{"type":63,"children":174,"toc":212},[175,179,183],{"type":66,"tag":98,"props":176,"children":177},{"id":100},[178],{"type":71,"value":103},{"type":66,"tag":105,"props":180,"children":181},{"id":107},[182],{"type":71,"value":110},{"type":66,"tag":112,"props":184,"children":185},{},[186],{"type":66,"tag":116,"props":187,"children":188},{},[189,194,196,203,205],{"type":66,"tag":120,"props":190,"children":191},{},[192],{"type":71,"value":193},"vite:",{"type":71,"value":195}," optimize order (",{"type":66,"tag":128,"props":197,"children":200},{"href":198,"rel":199},"https://github.com/nuxt-community/supabase-module/commit/663bd73ebb146ecde1abe5f29b52326e6dc2b6cd",[132],[201],{"type":71,"value":202},"663bd73",{"type":71,"value":204},") fixes ",{"type":66,"tag":128,"props":206,"children":209},{"href":207,"rel":208},"https://github.com/nuxt-modules/supabase/issues/385",[132],[210],{"type":71,"value":211},"#385",{"title":59,"searchDepth":78,"depth":78,"links":213},[214],{"id":100,"depth":78,"text":103,"children":215},[216],{"id":107,"depth":160,"text":110},"https://github.com/nuxt-modules/supabase/releases/tag/v1.3.4","https://api.github.com/repos/nuxt-modules/supabase/tarball/v1.3.4","https://api.github.com/repos/nuxt-modules/supabase/zipball/v1.3.4",{"name":166,"url":167,"avatar":168},"github:v1.3.4.md",{"name":223,"tag_name":223,"date":224,"body":225,"v":161,"url":289,"tarball":290,"zipball":291,"prerelease":60,"reactions":292,"author":295,"title":59,"description":59,"_type":80,"_id":296},"v1.3.2","2024-07-05T16:26:23Z",{"type":63,"children":226,"toc":283},[227,231,235,256,262],{"type":66,"tag":98,"props":228,"children":229},{"id":100},[230],{"type":71,"value":103},{"type":66,"tag":105,"props":232,"children":233},{"id":107},[234],{"type":71,"value":110},{"type":66,"tag":112,"props":236,"children":237},{},[238],{"type":66,"tag":116,"props":239,"children":240},{},[241,245,247,254],{"type":66,"tag":120,"props":242,"children":243},{},[244],{"type":71,"value":193},{"type":71,"value":246}," optimize postgrest (",{"type":66,"tag":128,"props":248,"children":251},{"href":249,"rel":250},"https://github.com/nuxt-community/supabase-module/commit/2a6d91a3ee83aa65cc5741afea907ca474e61d64",[132],[252],{"type":71,"value":253},"2a6d91a",{"type":71,"value":255},")",{"type":66,"tag":105,"props":257,"children":259},{"id":258},"features",[260],{"type":71,"value":261},"Features",{"type":66,"tag":112,"props":263,"children":264},{},[265],{"type":66,"tag":116,"props":266,"children":267},{},[268,273,275,282],{"type":66,"tag":120,"props":269,"children":270},{},[271],{"type":71,"value":272},"ci:",{"type":71,"value":274}," nightly version (",{"type":66,"tag":128,"props":276,"children":279},{"href":277,"rel":278},"https://github.com/nuxt-community/supabase-module/commit/298e608442ac5e8c15aa61c01411585e57732f4a",[132],[280],{"type":71,"value":281},"298e608",{"type":71,"value":255},{"title":59,"searchDepth":78,"depth":78,"links":284},[285],{"id":100,"depth":78,"text":103,"children":286},[287,288],{"id":107,"depth":160,"text":110},{"id":258,"depth":160,"text":261},"https://github.com/nuxt-modules/supabase/releases/tag/v1.3.2","https://api.github.com/repos/nuxt-modules/supabase/tarball/v1.3.2","https://api.github.com/repos/nuxt-modules/supabase/zipball/v1.3.2",{"url":293,"total_count":161,"+1":294,"-1":294,"laugh":294,"hooray":294,"confused":294,"heart":161,"rocket":294,"eyes":294},"https://api.github.com/repos/nuxt-modules/supabase/releases/164188781/reactions",0,{"name":166,"url":167,"avatar":168},"github:v1.3.2.md",{"name":298,"tag_name":298,"date":299,"body":300,"v":161,"url":525,"tarball":526,"zipball":527,"prerelease":60,"reactions":528,"author":530,"title":59,"description":59,"_type":80,"_id":531},"v1.3.1","2024-07-05T12:25:51Z",{"type":63,"children":301,"toc":519},[302,306,328,334,356,374,388,401,406,459,476,482,510],{"type":66,"tag":98,"props":303,"children":304},{"id":100},[305],{"type":71,"value":103},{"type":66,"tag":67,"props":307,"children":308},{},[309,311,318,320,326],{"type":71,"value":310},"⚠️ You can switch directly to ",{"type":66,"tag":312,"props":313,"children":315},"code",{"className":314},[],[316],{"type":71,"value":317},"1.3.1",{"type":71,"value":319},", since ",{"type":66,"tag":312,"props":321,"children":323},{"className":322},[],[324],{"type":71,"value":325},"1.3.0",{"type":71,"value":327}," has been superseded.",{"type":66,"tag":105,"props":329,"children":331},{"id":330},"major-changes",[332],{"type":71,"value":333},"Major changes",{"type":66,"tag":67,"props":335,"children":336},{},[337,339,346,348,355],{"type":71,"value":338},"We're now using the ",{"type":66,"tag":128,"props":340,"children":343},{"href":341,"rel":342},"https://supabase.com/docs/guides/auth/server-side/creating-a-client",[132],[344],{"type":71,"value":345},"@supabase/ssr",{"type":71,"value":347}," library under the hood 🎉 (",{"type":66,"tag":128,"props":349,"children":352},{"href":350,"rel":351},"https://github.com/nuxt-modules/supabase/issues/357",[132],[353],{"type":71,"value":354},"#357",{"type":71,"value":255},{"type":66,"tag":67,"props":357,"children":358},{},[359,361,366,368],{"type":71,"value":360},"There are ",{"type":66,"tag":120,"props":362,"children":363},{},[364],{"type":71,"value":365},"no breaking changes",{"type":71,"value":367}," related to this improvement. However, a non-disruptive warning appears in this release:\r\n",{"type":66,"tag":312,"props":369,"children":371},{"className":370},[],[372],{"type":71,"value":373},"Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure.",{"type":66,"tag":67,"props":375,"children":376},{},[377,379,386],{"type":71,"value":378},"This warning is related to ",{"type":66,"tag":128,"props":380,"children":383},{"href":381,"rel":382},"https://github.com/supabase/auth-js/issues/912",[132],[384],{"type":71,"value":385},"an issue",{"type":71,"value":387}," in the Supabase library itself. Initially, I intended to wait for this fix but since managing updates across two separate branches is challenging I chose to merge it anyway. I could no longer delay the release due to users raising concerns about outdated dependencies and other issues within the module.",{"type":66,"tag":67,"props":389,"children":390},{},[391,393,399],{"type":71,"value":392},"You can upvote ",{"type":66,"tag":128,"props":394,"children":396},{"href":381,"rel":395},[132],[397],{"type":71,"value":398},"the issue",{"type":71,"value":400}," to encourage the Supabase maintainers to address it.",{"type":66,"tag":67,"props":402,"children":403},{},[404],{"type":71,"value":405},"This improvement might fix:",{"type":66,"tag":112,"props":407,"children":408},{},[409,419,429,439,449],{"type":66,"tag":116,"props":410,"children":411},{},[412],{"type":66,"tag":128,"props":413,"children":416},{"href":414,"rel":415},"https://github.com/nuxt-modules/supabase/issues/298",[132],[417],{"type":71,"value":418},"#298",{"type":66,"tag":116,"props":420,"children":421},{},[422],{"type":66,"tag":128,"props":423,"children":426},{"href":424,"rel":425},"https://github.com/nuxt-modules/supabase/issues/381",[132],[427],{"type":71,"value":428},"#381",{"type":66,"tag":116,"props":430,"children":431},{},[432],{"type":66,"tag":128,"props":433,"children":436},{"href":434,"rel":435},"https://github.com/nuxt-modules/supabase/issues/380",[132],[437],{"type":71,"value":438},"#380",{"type":66,"tag":116,"props":440,"children":441},{},[442],{"type":66,"tag":128,"props":443,"children":446},{"href":444,"rel":445},"https://github.com/nuxt-modules/supabase/issues/367",[132],[447],{"type":71,"value":448},"#367",{"type":66,"tag":116,"props":450,"children":451},{},[452],{"type":66,"tag":128,"props":453,"children":456},{"href":454,"rel":455},"https://github.com/nuxt-modules/supabase/issues/326",[132],[457],{"type":71,"value":458},"#326",{"type":66,"tag":67,"props":460,"children":461},{},[462,464,474],{"type":71,"value":463},"A big thanks to ",{"type":66,"tag":128,"props":465,"children":468},{"href":466,"rel":467},"https://github.com/felixgabler",[132],[469],{"type":66,"tag":120,"props":470,"children":471},{},[472],{"type":71,"value":473},"@felixgabler",{"type":71,"value":475}," for initiating this change and helping refactor the module.",{"type":66,"tag":105,"props":477,"children":479},{"id":478},"other-update",[480],{"type":71,"value":481},"Other update",{"type":66,"tag":112,"props":483,"children":484},{},[485],{"type":66,"tag":116,"props":486,"children":487},{},[488,490,500,502,509],{"type":71,"value":489},"Automatic database types by ",{"type":66,"tag":128,"props":491,"children":494},{"href":492,"rel":493},"https://github.com/IsraelOrtuno",[132],[495],{"type":66,"tag":120,"props":496,"children":497},{},[498],{"type":71,"value":499},"@IsraelOrtuno",{"type":71,"value":501}," (",{"type":66,"tag":128,"props":503,"children":506},{"href":504,"rel":505},"https://github.com/nuxt-modules/supabase/issues/336",[132],[507],{"type":71,"value":508},"#336",{"type":71,"value":255},{"type":66,"tag":67,"props":511,"children":512},{},[513],{"type":66,"tag":128,"props":514,"children":517},{"href":515,"rel":516},"https://github.com/nuxt-community/supabase-module/compare/v1.2.2...v1.3.1",[132],[518],{"type":71,"value":154},{"title":59,"searchDepth":78,"depth":78,"links":520},[521],{"id":100,"depth":78,"text":103,"children":522},[523,524],{"id":330,"depth":160,"text":333},{"id":478,"depth":160,"text":481},"https://github.com/nuxt-modules/supabase/releases/tag/v1.3.1","https://api.github.com/repos/nuxt-modules/supabase/tarball/v1.3.1","https://api.github.com/repos/nuxt-modules/supabase/zipball/v1.3.1",{"url":529,"total_count":78,"+1":294,"-1":294,"laugh":294,"hooray":294,"confused":294,"heart":78,"rocket":294,"eyes":294},"https://api.github.com/repos/nuxt-modules/supabase/releases/164152561/reactions",{"name":166,"url":167,"avatar":168},"github:v1.3.1.md",{"name":533,"tag_name":533,"date":534,"body":535,"v":161,"url":580,"tarball":581,"zipball":582,"prerelease":60,"reactions":583,"author":586,"title":59,"description":59,"_type":80,"_id":587},"v1.2.2","2024-05-02T15:33:41Z",{"type":63,"children":536,"toc":575},[537,541,545,566],{"type":66,"tag":98,"props":538,"children":539},{"id":100},[540],{"type":71,"value":103},{"type":66,"tag":105,"props":542,"children":543},{"id":107},[544],{"type":71,"value":110},{"type":66,"tag":112,"props":546,"children":547},{},[548],{"type":66,"tag":116,"props":549,"children":550},{},[551,556,558,565],{"type":66,"tag":120,"props":552,"children":553},{},[554],{"type":71,"value":555},"serverSupabaseSession:",{"type":71,"value":557}," export service (",{"type":66,"tag":128,"props":559,"children":562},{"href":560,"rel":561},"https://github.com/nuxt-community/supabase-module/commit/9cfeb8726d562c5aac6fe1efa7dd1664bc39ed66",[132],[563],{"type":71,"value":564},"9cfeb87",{"type":71,"value":255},{"type":66,"tag":67,"props":567,"children":568},{},[569],{"type":66,"tag":128,"props":570,"children":573},{"href":571,"rel":572},"https://github.com/nuxt-community/supabase-module/compare/v1.2.1...v1.2.2",[132],[574],{"type":71,"value":154},{"title":59,"searchDepth":78,"depth":78,"links":576},[577],{"id":100,"depth":78,"text":103,"children":578},[579],{"id":107,"depth":160,"text":110},"https://github.com/nuxt-modules/supabase/releases/tag/v1.2.2","https://api.github.com/repos/nuxt-modules/supabase/tarball/v1.2.2","https://api.github.com/repos/nuxt-modules/supabase/zipball/v1.2.2",{"url":584,"total_count":585,"+1":294,"-1":294,"laugh":294,"hooray":161,"confused":294,"heart":78,"rocket":294,"eyes":161},"https://api.github.com/repos/nuxt-modules/supabase/releases/153851448/reactions",4,{"name":166,"url":167,"avatar":168},"github:v1.2.2.md",{"name":589,"tag_name":589,"date":590,"body":591,"v":161,"url":680,"tarball":681,"zipball":682,"prerelease":60,"reactions":683,"author":686,"title":59,"description":59,"_type":80,"_id":687},"v1.2.1","2024-04-18T08:32:42Z",{"type":63,"children":592,"toc":673},[593,597,603,627,633,647,653,664],{"type":66,"tag":98,"props":594,"children":595},{"id":100},[596],{"type":71,"value":103},{"type":66,"tag":105,"props":598,"children":600},{"id":599},"improvements",[601],{"type":71,"value":602},"Improvements",{"type":66,"tag":67,"props":604,"children":605},{},[606,608,618,620],{"type":71,"value":607},"Performance improvements by ",{"type":66,"tag":128,"props":609,"children":612},{"href":610,"rel":611},"https://github.com/vinceglb",[132],[613],{"type":66,"tag":120,"props":614,"children":615},{},[616],{"type":71,"value":617},"@vinceglb",{"type":71,"value":619}," in ",{"type":66,"tag":128,"props":621,"children":624},{"href":622,"rel":623},"https://github.com/nuxt-modules/supabase/issues/352",[132],[625],{"type":71,"value":626},"#352",{"type":66,"tag":105,"props":628,"children":630},{"id":629},"chore",[631],{"type":71,"value":632},"Chore",{"type":66,"tag":67,"props":634,"children":635},{},[636,638,645],{"type":71,"value":637},"Move to eslint v9 using ",{"type":66,"tag":128,"props":639,"children":642},{"href":640,"rel":641},"https://eslint.nuxt.com",[132],[643],{"type":71,"value":644},"@nuxt/eslint",{"type":71,"value":646}," package",{"type":66,"tag":105,"props":648,"children":650},{"id":649},"thanks-for-the-help-from",[651],{"type":71,"value":652},"💚 Thanks for the help from:",{"type":66,"tag":67,"props":654,"children":655},{},[656],{"type":66,"tag":128,"props":657,"children":659},{"href":610,"rel":658},[132],[660],{"type":66,"tag":120,"props":661,"children":662},{},[663],{"type":71,"value":617},{"type":66,"tag":67,"props":665,"children":666},{},[667],{"type":66,"tag":128,"props":668,"children":671},{"href":669,"rel":670},"https://github.com/nuxt-community/supabase-module/compare/v1.2.0...v1.2.1",[132],[672],{"type":71,"value":154},{"title":59,"searchDepth":78,"depth":78,"links":674},[675],{"id":100,"depth":78,"text":103,"children":676},[677,678,679],{"id":599,"depth":160,"text":602},{"id":629,"depth":160,"text":632},{"id":649,"depth":160,"text":652},"https://github.com/nuxt-modules/supabase/releases/tag/v1.2.1","https://api.github.com/repos/nuxt-modules/supabase/tarball/v1.2.1","https://api.github.com/repos/nuxt-modules/supabase/zipball/v1.2.1",{"url":684,"total_count":685,"+1":294,"-1":294,"laugh":294,"hooray":78,"confused":294,"heart":160,"rocket":294,"eyes":294},"https://api.github.com/repos/nuxt-modules/supabase/releases/151694236/reactions",5,{"name":166,"url":167,"avatar":168},"github:v1.2.1.md",{"name":689,"tag_name":689,"date":690,"body":691,"v":161,"url":781,"tarball":782,"zipball":783,"prerelease":60,"author":784,"title":59,"description":59,"_type":80,"_id":785},"v1.2.0","2024-03-29T09:33:20Z",{"type":63,"children":692,"toc":776},[693,697,703,748,767],{"type":66,"tag":98,"props":694,"children":695},{"id":100},[696],{"type":71,"value":103},{"type":66,"tag":105,"props":698,"children":700},{"id":699},"minor-version-since-we-have-a-new-composable",[701],{"type":71,"value":702},"Minor version since we have a new composable 🎉",{"type":66,"tag":67,"props":704,"children":705},{},[706,712,714,720,722,729,731,738,740,747],{"type":66,"tag":128,"props":707,"children":710},{"href":708,"rel":709},"https://supabase.nuxtjs.org/usage/composables/usesupabasesession",[132],[711],{"type":71,"value":24},{"type":71,"value":713}," and ",{"type":66,"tag":128,"props":715,"children":718},{"href":716,"rel":717},"https://supabase.nuxtjs.org/usage/services/serversupabasesession",[132],[719],{"type":71,"value":40},{"type":71,"value":721}," are now available to fetch your session client and server side (",{"type":66,"tag":128,"props":723,"children":726},{"href":724,"rel":725},"https://github.com/nuxt-community/supabase-module/issues/338",[132],[727],{"type":71,"value":728},"#338",{"type":71,"value":730},") (",{"type":66,"tag":128,"props":732,"children":735},{"href":733,"rel":734},"https://github.com/nuxt-community/supabase-module/commit/07eb081d532510da4152554c7010c79ed6008559",[132],[736],{"type":71,"value":737},"07eb081",{"type":71,"value":739}," & ",{"type":66,"tag":128,"props":741,"children":744},{"href":742,"rel":743},"https://github.com/nuxt-community/supabase-module/commit/9dee37ee030506fc7888dfbb6cc1f29b9126a728",[132],[745],{"type":71,"value":746},"9dee37e",{"type":71,"value":255},{"type":66,"tag":749,"props":750,"children":752},"h4",{"id":751},"thanks-joeychilson-for-this-feature",[753,755,765],{"type":71,"value":754},"Thanks ",{"type":66,"tag":128,"props":756,"children":759},{"href":757,"rel":758},"https://github.com/joeychilson",[132],[760],{"type":66,"tag":120,"props":761,"children":762},{},[763],{"type":71,"value":764},"@joeychilson",{"type":71,"value":766}," for this feature 🙏",{"type":66,"tag":67,"props":768,"children":769},{},[770],{"type":66,"tag":128,"props":771,"children":774},{"href":772,"rel":773},"https://github.com/nuxt-community/supabase-module/compare/v1.1.7...v1.2.0",[132],[775],{"type":71,"value":154},{"title":59,"searchDepth":78,"depth":78,"links":777},[778],{"id":100,"depth":78,"text":103,"children":779},[780],{"id":699,"depth":160,"text":702},"https://github.com/nuxt-modules/supabase/releases/tag/v1.2.0","https://api.github.com/repos/nuxt-modules/supabase/tarball/v1.2.0","https://api.github.com/repos/nuxt-modules/supabase/zipball/v1.2.0",{"name":166,"url":167,"avatar":168},"github:v1.2.0.md",{"name":787,"tag_name":787,"date":788,"body":789,"v":161,"url":883,"tarball":884,"zipball":885,"prerelease":60,"reactions":886,"author":888,"title":59,"description":59,"_type":80,"_id":889},"v1.1.7","2024-03-07T09:33:03Z",{"type":63,"children":790,"toc":877},[791,795,799,850,855,868],{"type":66,"tag":98,"props":792,"children":793},{"id":100},[794],{"type":71,"value":103},{"type":66,"tag":105,"props":796,"children":797},{"id":258},[798],{"type":71,"value":261},{"type":66,"tag":112,"props":800,"children":801},{},[802],{"type":66,"tag":116,"props":803,"children":804},{},[805,810,812,818,820,826,827,833,834,841,843],{"type":66,"tag":120,"props":806,"children":807},{},[808],{"type":71,"value":809},"auth-middleware:",{"type":71,"value":811}," add ",{"type":66,"tag":312,"props":813,"children":815},{"className":814},[],[816],{"type":71,"value":817},"include",{"type":71,"value":819}," to ",{"type":66,"tag":312,"props":821,"children":823},{"className":822},[],[824],{"type":71,"value":825},"RedirectOptions",{"type":71,"value":501},{"type":66,"tag":128,"props":828,"children":831},{"href":829,"rel":830},"https://github.com/nuxt-community/supabase-module/issues/336",[132],[832],{"type":71,"value":508},{"type":71,"value":730},{"type":66,"tag":128,"props":835,"children":838},{"href":836,"rel":837},"https://github.com/nuxt-community/supabase-module/commit/f9aad558da8171af1c442a60915c979eb10b8fab",[132],[839],{"type":71,"value":840},"f9aad55",{"type":71,"value":842},"), closes ",{"type":66,"tag":128,"props":844,"children":847},{"href":845,"rel":846},"https://github.com/nuxt-community/supabase-module/issues/268",[132],[848],{"type":71,"value":849},"#268",{"type":66,"tag":105,"props":851,"children":852},{"id":649},[853],{"type":71,"value":854},"💚 Thanks for the help from",{"type":66,"tag":67,"props":856,"children":857},{},[858],{"type":66,"tag":128,"props":859,"children":862},{"href":860,"rel":861},"https://github.com/jojomatik",[132],[863],{"type":66,"tag":120,"props":864,"children":865},{},[866],{"type":71,"value":867},"@jojomatik",{"type":66,"tag":67,"props":869,"children":870},{},[871],{"type":66,"tag":128,"props":872,"children":875},{"href":873,"rel":874},"https://github.com/nuxt-community/supabase-module/compare/v1.1.6...v1.1.7",[132],[876],{"type":71,"value":154},{"title":59,"searchDepth":78,"depth":78,"links":878},[879],{"id":100,"depth":78,"text":103,"children":880},[881,882],{"id":258,"depth":160,"text":261},{"id":649,"depth":160,"text":854},"https://github.com/nuxt-modules/supabase/releases/tag/v1.1.7","https://api.github.com/repos/nuxt-modules/supabase/tarball/v1.1.7","https://api.github.com/repos/nuxt-modules/supabase/zipball/v1.1.7",{"url":887,"total_count":161,"+1":294,"-1":294,"laugh":294,"hooray":161,"confused":294,"heart":294,"rocket":294,"eyes":294},"https://api.github.com/repos/nuxt-modules/supabase/releases/145217172/reactions",{"name":166,"url":167,"avatar":168},"github:v1.1.7.md",{"name":891,"tag_name":891,"date":892,"body":893,"v":161,"url":1008,"tarball":1009,"zipball":1010,"prerelease":60,"reactions":1011,"author":1013,"title":59,"description":59,"_type":80,"_id":1014},"v1.1.6","2024-01-26T15:22:23Z",{"type":63,"children":894,"toc":1001},[895,899,903,942,946,975,979,992],{"type":66,"tag":98,"props":896,"children":897},{"id":100},[898],{"type":71,"value":103},{"type":66,"tag":105,"props":900,"children":901},{"id":107},[902],{"type":71,"value":110},{"type":66,"tag":112,"props":904,"children":905},{},[906,924],{"type":66,"tag":116,"props":907,"children":908},{},[909,914,916,923],{"type":66,"tag":120,"props":910,"children":911},{},[912],{"type":71,"value":913},"deps:",{"type":71,"value":915}," set resolution (",{"type":66,"tag":128,"props":917,"children":920},{"href":918,"rel":919},"https://github.com/nuxt-community/supabase-module/commit/db8c102fb9d69395528eece3e1e0552a16e673da",[132],[921],{"type":71,"value":922},"db8c102",{"type":71,"value":255},{"type":66,"tag":116,"props":925,"children":926},{},[927,932,934,941],{"type":66,"tag":120,"props":928,"children":929},{},[930],{"type":71,"value":931},"playground:",{"type":71,"value":933}," watch on confirm page (",{"type":66,"tag":128,"props":935,"children":938},{"href":936,"rel":937},"https://github.com/nuxt-community/supabase-module/commit/0caf5c11d632df6b7e74e5e8973ee56a38b1c968",[132],[939],{"type":71,"value":940},"0caf5c1",{"type":71,"value":255},{"type":66,"tag":105,"props":943,"children":944},{"id":258},[945],{"type":71,"value":261},{"type":66,"tag":112,"props":947,"children":948},{},[949],{"type":66,"tag":116,"props":950,"children":951},{},[952,957,959,966,967,974],{"type":66,"tag":120,"props":953,"children":954},{},[955],{"type":71,"value":956},"app:",{"type":71,"value":958}," added redirect path cookie for use after signin (",{"type":66,"tag":128,"props":960,"children":963},{"href":961,"rel":962},"https://github.com/nuxt-community/supabase-module/issues/327",[132],[964],{"type":71,"value":965},"#327",{"type":71,"value":730},{"type":66,"tag":128,"props":968,"children":971},{"href":969,"rel":970},"https://github.com/nuxt-community/supabase-module/commit/1b78a050fdc6da155434e261823b029f9dce2d40",[132],[972],{"type":71,"value":973},"1b78a05",{"type":71,"value":255},{"type":66,"tag":105,"props":976,"children":977},{"id":649},[978],{"type":71,"value":854},{"type":66,"tag":67,"props":980,"children":981},{},[982],{"type":66,"tag":128,"props":983,"children":986},{"href":984,"rel":985},"https://github.com/Matthewenderle",[132],[987],{"type":66,"tag":120,"props":988,"children":989},{},[990],{"type":71,"value":991},"@Matthewenderle",{"type":66,"tag":67,"props":993,"children":994},{},[995],{"type":66,"tag":128,"props":996,"children":999},{"href":997,"rel":998},"https://github.com/nuxt-community/supabase-module/compare/v1.1.5...v1.1.6",[132],[1000],{"type":71,"value":154},{"title":59,"searchDepth":78,"depth":78,"links":1002},[1003],{"id":100,"depth":78,"text":103,"children":1004},[1005,1006,1007],{"id":107,"depth":160,"text":110},{"id":258,"depth":160,"text":261},{"id":649,"depth":160,"text":854},"https://github.com/nuxt-modules/supabase/releases/tag/v1.1.6","https://api.github.com/repos/nuxt-modules/supabase/tarball/v1.1.6","https://api.github.com/repos/nuxt-modules/supabase/zipball/v1.1.6",{"url":1012,"total_count":160,"+1":294,"-1":294,"laugh":294,"hooray":294,"confused":294,"heart":160,"rocket":294,"eyes":294},"https://api.github.com/repos/nuxt-modules/supabase/releases/138681536/reactions",{"name":166,"url":167,"avatar":168},"github:v1.1.6.md",{"name":1016,"tag_name":1016,"date":1017,"body":1018,"v":161,"url":1183,"tarball":1184,"zipball":1185,"prerelease":60,"reactions":1186,"author":1188,"title":59,"description":59,"_type":80,"_id":1189},"v1.1.5","2023-12-28T14:29:18Z",{"type":63,"children":1019,"toc":1175},[1020,1024,1028,1049,1053,1072,1078,1115,1119,1166],{"type":66,"tag":98,"props":1021,"children":1022},{"id":100},[1023],{"type":71,"value":103},{"type":66,"tag":105,"props":1025,"children":1026},{"id":107},[1027],{"type":71,"value":110},{"type":66,"tag":112,"props":1029,"children":1030},{},[1031],{"type":66,"tag":116,"props":1032,"children":1033},{},[1034,1039,1041,1048],{"type":66,"tag":120,"props":1035,"children":1036},{},[1037],{"type":71,"value":1038},"server:",{"type":71,"value":1040}," fetch user from session (",{"type":66,"tag":128,"props":1042,"children":1045},{"href":1043,"rel":1044},"https://github.com/nuxt-community/supabase-module/commit/7a3b73c36cc9aea10100a0ff37b0e0e7ecefe2a8",[132],[1046],{"type":71,"value":1047},"7a3b73c",{"type":71,"value":255},{"type":66,"tag":105,"props":1050,"children":1051},{"id":599},[1052],{"type":71,"value":602},{"type":66,"tag":112,"props":1054,"children":1055},{},[1056],{"type":66,"tag":116,"props":1057,"children":1058},{},[1059,1063,1065],{"type":66,"tag":120,"props":1060,"children":1061},{},[1062],{"type":71,"value":956},{"type":71,"value":1064}," use module-builder stub mode for more accurate types ",{"type":66,"tag":128,"props":1066,"children":1069},{"href":1067,"rel":1068},"https://github.com/nuxt-modules/supabase/issues/315",[132],[1070],{"type":71,"value":1071},"#315",{"type":66,"tag":105,"props":1073,"children":1075},{"id":1074},"docs",[1076],{"type":71,"value":1077},"Docs",{"type":66,"tag":112,"props":1079,"children":1080},{},[1081,1098],{"type":66,"tag":116,"props":1082,"children":1083},{},[1084,1089,1091],{"type":66,"tag":120,"props":1085,"children":1086},{},[1087],{"type":71,"value":1088},"get-started:",{"type":71,"value":1090}," bun command ",{"type":66,"tag":128,"props":1092,"children":1095},{"href":1093,"rel":1094},"https://github.com/nuxt-modules/supabase/issues/317",[132],[1096],{"type":71,"value":1097},"#317",{"type":66,"tag":116,"props":1099,"children":1100},{},[1101,1106,1108],{"type":66,"tag":120,"props":1102,"children":1103},{},[1104],{"type":71,"value":1105},"readme:",{"type":71,"value":1107}," typo in #dev section ",{"type":66,"tag":128,"props":1109,"children":1112},{"href":1110,"rel":1111},"https://github.com/nuxt-modules/supabase/issues/316",[132],[1113],{"type":71,"value":1114},"#316",{"type":66,"tag":105,"props":1116,"children":1117},{"id":649},[1118],{"type":71,"value":854},{"type":66,"tag":67,"props":1120,"children":1121},{},[1122,1132,1134,1144,1145,1155,1156],{"type":66,"tag":128,"props":1123,"children":1126},{"href":1124,"rel":1125},"https://github.com/danielroe",[132],[1127],{"type":66,"tag":120,"props":1128,"children":1129},{},[1130],{"type":71,"value":1131},"@danielroe",{"type":71,"value":1133},"\r\n",{"type":66,"tag":128,"props":1135,"children":1138},{"href":1136,"rel":1137},"https://github.com/joshuabyler",[132],[1139],{"type":66,"tag":120,"props":1140,"children":1141},{},[1142],{"type":71,"value":1143},"@joshuabyler",{"type":71,"value":1133},{"type":66,"tag":128,"props":1146,"children":1149},{"href":1147,"rel":1148},"https://github.com/hafizjavaid",[132],[1150],{"type":66,"tag":120,"props":1151,"children":1152},{},[1153],{"type":71,"value":1154},"@hafizjavaid",{"type":71,"value":1133},{"type":66,"tag":128,"props":1157,"children":1160},{"href":1158,"rel":1159},"https://github.com/relisora",[132],[1161],{"type":66,"tag":120,"props":1162,"children":1163},{},[1164],{"type":71,"value":1165},"@relisora",{"type":66,"tag":67,"props":1167,"children":1168},{},[1169],{"type":66,"tag":128,"props":1170,"children":1173},{"href":1171,"rel":1172},"https://github.com/nuxt-community/supabase-module/compare/v1.1.4...v1.1.5",[132],[1174],{"type":71,"value":154},{"title":59,"searchDepth":78,"depth":78,"links":1176},[1177],{"id":100,"depth":78,"text":103,"children":1178},[1179,1180,1181,1182],{"id":107,"depth":160,"text":110},{"id":599,"depth":160,"text":602},{"id":1074,"depth":160,"text":1077},{"id":649,"depth":160,"text":854},"https://github.com/nuxt-modules/supabase/releases/tag/v1.1.5","https://api.github.com/repos/nuxt-modules/supabase/tarball/v1.1.5","https://api.github.com/repos/nuxt-modules/supabase/zipball/v1.1.5",{"url":1187,"total_count":585,"+1":160,"-1":294,"laugh":294,"hooray":294,"confused":294,"heart":161,"rocket":294,"eyes":294},"https://api.github.com/repos/nuxt-modules/supabase/releases/135279818/reactions",{"name":166,"url":167,"avatar":168},"github:v1.1.5.md",{"name":1191,"tag_name":1191,"date":1192,"body":1193,"v":161,"url":1252,"tarball":1253,"zipball":1254,"prerelease":60,"reactions":1255,"author":1257,"title":59,"description":59,"_type":80,"_id":1258},"v1.1.4","2023-11-17T14:42:47Z",{"type":63,"children":1194,"toc":1247},[1195,1199,1203,1232],{"type":66,"tag":98,"props":1196,"children":1197},{"id":100},[1198],{"type":71,"value":103},{"type":66,"tag":105,"props":1200,"children":1201},{"id":107},[1202],{"type":71,"value":110},{"type":66,"tag":112,"props":1204,"children":1205},{},[1206],{"type":66,"tag":116,"props":1207,"children":1208},{},[1209,1214,1216,1223,1224,1231],{"type":66,"tag":120,"props":1210,"children":1211},{},[1212],{"type":71,"value":1213},"client:",{"type":71,"value":1215}," prevent useCookie usage outside of effect scope (",{"type":66,"tag":128,"props":1217,"children":1220},{"href":1218,"rel":1219},"https://github.com/nuxt-community/supabase-module/issues/309",[132],[1221],{"type":71,"value":1222},"#309",{"type":71,"value":730},{"type":66,"tag":128,"props":1225,"children":1228},{"href":1226,"rel":1227},"https://github.com/nuxt-community/supabase-module/commit/bb55bed870efb68c39f255ddbcbe0b5446965399",[132],[1229],{"type":71,"value":1230},"bb55bed",{"type":71,"value":255},{"type":66,"tag":67,"props":1233,"children":1234},{},[1235,1237],{"type":71,"value":1236},"💚 Thanks for the help from 💚\r\n",{"type":66,"tag":128,"props":1238,"children":1241},{"href":1239,"rel":1240},"https://github.com/AlbertBrand",[132],[1242],{"type":66,"tag":120,"props":1243,"children":1244},{},[1245],{"type":71,"value":1246},"@AlbertBrand",{"title":59,"searchDepth":78,"depth":78,"links":1248},[1249],{"id":100,"depth":78,"text":103,"children":1250},[1251],{"id":107,"depth":160,"text":110},"https://github.com/nuxt-modules/supabase/releases/tag/v1.1.4","https://api.github.com/repos/nuxt-modules/supabase/tarball/v1.1.4","https://api.github.com/repos/nuxt-modules/supabase/zipball/v1.1.4",{"url":1256,"total_count":161,"+1":161,"-1":294,"laugh":294,"hooray":294,"confused":294,"heart":294,"rocket":294,"eyes":294},"https://api.github.com/repos/nuxt-modules/supabase/releases/129966845/reactions",{"name":166,"url":167,"avatar":168},"github:v1.1.4.md",{"name":1260,"tag_name":1260,"date":1261,"body":1262,"v":161,"url":1358,"tarball":1359,"zipball":1360,"prerelease":60,"reactions":1361,"author":1363,"title":59,"description":59,"_type":80,"_id":1364},"v1.1.3","2023-10-06T07:51:37Z",{"type":63,"children":1263,"toc":1355},[1264,1268,1330],{"type":66,"tag":98,"props":1265,"children":1266},{"id":100},[1267],{"type":71,"value":103},{"type":66,"tag":112,"props":1269,"children":1270},{},[1271,1304],{"type":66,"tag":116,"props":1272,"children":1273},{},[1274,1278,1280,1287,1288,1295,1296,1303],{"type":66,"tag":120,"props":1275,"children":1276},{},[1277],{"type":71,"value":1213},{"type":71,"value":1279}," clientOptions merge",{"type":66,"tag":128,"props":1281,"children":1284},{"href":1282,"rel":1283},"https://github.com/nuxt-community/supabase-module/issues/275",[132],[1285],{"type":71,"value":1286},"#275",{"type":71,"value":501},{"type":66,"tag":128,"props":1289,"children":1292},{"href":1290,"rel":1291},"https://github.com/nuxt-community/supabase-module/issues/277",[132],[1293],{"type":71,"value":1294},"#277",{"type":71,"value":730},{"type":66,"tag":128,"props":1297,"children":1300},{"href":1298,"rel":1299},"https://github.com/nuxt-community/supabase-module/commit/c0097a355b859cb6a2d97884a7648284128acca2",[132],[1301],{"type":71,"value":1302},"c0097a3",{"type":71,"value":255},{"type":66,"tag":116,"props":1305,"children":1306},{},[1307,1312,1314,1321,1322,1329],{"type":66,"tag":120,"props":1308,"children":1309},{},[1310],{"type":71,"value":1311},"module:",{"type":71,"value":1313}," do not warn when using runtimeConfig to set url and key (",{"type":66,"tag":128,"props":1315,"children":1318},{"href":1316,"rel":1317},"https://github.com/nuxt-community/supabase-module/issues/281",[132],[1319],{"type":71,"value":1320},"#281",{"type":71,"value":730},{"type":66,"tag":128,"props":1323,"children":1326},{"href":1324,"rel":1325},"https://github.com/nuxt-community/supabase-module/commit/8c151737b55738c68fc24b5e4db2517c4e866693",[132],[1327],{"type":71,"value":1328},"8c15173",{"type":71,"value":255},{"type":66,"tag":67,"props":1331,"children":1332},{},[1333,1334,1344,1345],{"type":71,"value":1236},{"type":66,"tag":128,"props":1335,"children":1338},{"href":1336,"rel":1337},"https://github.com/stafyniaksacha",[132],[1339],{"type":66,"tag":120,"props":1340,"children":1341},{},[1342],{"type":71,"value":1343},"@stafyniaksacha",{"type":71,"value":1133},{"type":66,"tag":128,"props":1346,"children":1349},{"href":1347,"rel":1348},"https://github.com/jonesisg1",[132],[1350],{"type":66,"tag":120,"props":1351,"children":1352},{},[1353],{"type":71,"value":1354},"@jonesisg1",{"title":59,"searchDepth":78,"depth":78,"links":1356},[1357],{"id":100,"depth":78,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v1.1.3","https://api.github.com/repos/nuxt-modules/supabase/tarball/v1.1.3","https://api.github.com/repos/nuxt-modules/supabase/zipball/v1.1.3",{"url":1362,"total_count":585,"+1":78,"-1":294,"laugh":294,"hooray":78,"confused":294,"heart":294,"rocket":294,"eyes":294},"https://api.github.com/repos/nuxt-modules/supabase/releases/123992311/reactions",{"name":166,"url":167,"avatar":168},"github:v1.1.3.md",{"name":1366,"tag_name":1366,"date":1367,"body":1368,"v":161,"url":1598,"tarball":1599,"zipball":1600,"prerelease":60,"reactions":1601,"author":1603,"title":59,"description":59,"_type":80,"_id":1604},"v1.1.2","2023-09-06T17:44:35Z",{"type":63,"children":1369,"toc":1593},[1370,1374,1396,1439,1443,1521,1537],{"type":66,"tag":98,"props":1371,"children":1372},{"id":100},[1373],{"type":71,"value":103},{"type":66,"tag":67,"props":1375,"children":1376},{},[1377,1379,1386,1388,1394],{"type":71,"value":1378},"⚠️ BREAKING CHANGE ⚠️\r\nBreaking change is related to ",{"type":66,"tag":128,"props":1380,"children":1383},{"href":1381,"rel":1382},"https://github.com/nuxt-modules/supabase/issues/244",[132],[1384],{"type":71,"value":1385},"#244",{"type":71,"value":1387}," and was first adressed in the ",{"type":66,"tag":312,"props":1389,"children":1391},{"className":1390},[],[1392],{"type":71,"value":1393},"v1.1.0",{"type":71,"value":1395}," but patch has been necessary to fix the version.",{"type":66,"tag":67,"props":1397,"children":1398},{},[1399,1401,1407,1409,1415,1417,1423,1425,1431,1433],{"type":71,"value":1400},"On the confirm page, configured in ",{"type":66,"tag":312,"props":1402,"children":1404},{"className":1403},[],[1405],{"type":71,"value":1406},"redirect.callback",{"type":71,"value":1408}," option (default to ",{"type":66,"tag":312,"props":1410,"children":1412},{"className":1411},[],[1413],{"type":71,"value":1414},"/confirm",{"type":71,"value":1416},"), ensure to set the ",{"type":66,"tag":312,"props":1418,"children":1420},{"className":1419},[],[1421],{"type":71,"value":1422},"immediate",{"type":71,"value":1424}," option in the watch.\r\nCheck out the doc: ",{"type":66,"tag":128,"props":1426,"children":1429},{"href":1427,"rel":1428},"http://supabase.nuxtjs.org/authentication#confirm-page-confirm",[132],[1430],{"type":71,"value":1427},{"type":71,"value":1432},"\r\nCheck out the demo code: ",{"type":66,"tag":128,"props":1434,"children":1437},{"href":1435,"rel":1436},"https://github.com/nuxt-modules/supabase/blob/main/demo/pages/confirm.vue",[132],[1438],{"type":71,"value":1435},{"type":66,"tag":105,"props":1440,"children":1441},{"id":107},[1442],{"type":71,"value":110},{"type":66,"tag":112,"props":1444,"children":1445},{},[1446,1471,1495],{"type":66,"tag":116,"props":1447,"children":1448},{},[1449,1453,1455,1462,1463,1470],{"type":66,"tag":120,"props":1450,"children":1451},{},[1452],{"type":71,"value":1311},{"type":71,"value":1454}," priority of redirect options made by defu (",{"type":66,"tag":128,"props":1456,"children":1459},{"href":1457,"rel":1458},"https://github.com/nuxt-community/supabase-module/issues/256",[132],[1460],{"type":71,"value":1461},"#256",{"type":71,"value":730},{"type":66,"tag":128,"props":1464,"children":1467},{"href":1465,"rel":1466},"https://github.com/nuxt-community/supabase-module/commit/c4e30bf50eb7816fee3a2e46b404df5ce9f7cf4d",[132],[1468],{"type":71,"value":1469},"c4e30bf",{"type":71,"value":255},{"type":66,"tag":116,"props":1472,"children":1473},{},[1474,1479,1481,1486,1487,1494],{"type":66,"tag":120,"props":1475,"children":1476},{},[1477],{"type":71,"value":1478},"plugin:",{"type":71,"value":1480}," retrieve user for client only page (",{"type":66,"tag":128,"props":1482,"children":1484},{"href":1381,"rel":1483},[132],[1485],{"type":71,"value":1385},{"type":71,"value":730},{"type":66,"tag":128,"props":1488,"children":1491},{"href":1489,"rel":1490},"https://github.com/nuxt-community/supabase-module/commit/4a35428e26542bf22b3288db6e9a9309f1310705",[132],[1492],{"type":71,"value":1493},"4a35428",{"type":71,"value":255},{"type":66,"tag":116,"props":1496,"children":1497},{},[1498,1503,1505,1512,1513,1520],{"type":66,"tag":120,"props":1499,"children":1500},{},[1501],{"type":71,"value":1502},"useSupabaseUser:",{"type":71,"value":1504}," add explicit user type (",{"type":66,"tag":128,"props":1506,"children":1509},{"href":1507,"rel":1508},"https://github.com/nuxt-community/supabase-module/issues/254",[132],[1510],{"type":71,"value":1511},"#254",{"type":71,"value":730},{"type":66,"tag":128,"props":1514,"children":1517},{"href":1515,"rel":1516},"https://github.com/nuxt-community/supabase-module/commit/60d8551ee83a9c64a962b9f76b881b17d7384736",[132],[1518],{"type":71,"value":1519},"60d8551",{"type":71,"value":255},{"type":66,"tag":67,"props":1522,"children":1523},{},[1524,1529,1531],{"type":66,"tag":120,"props":1525,"children":1526},{},[1527],{"type":71,"value":1528},"Full Changelog",{"type":71,"value":1530},": ",{"type":66,"tag":128,"props":1532,"children":1535},{"href":1533,"rel":1534},"https://github.com/nuxt-community/supabase-module/compare/v1.0.2...v1.1.0",[132],[1536],{"type":71,"value":1533},{"type":66,"tag":67,"props":1538,"children":1539},{},[1540,1541,1551,1552,1562,1563,1571,1572,1582,1583],{"type":71,"value":1236},{"type":66,"tag":128,"props":1542,"children":1545},{"href":1543,"rel":1544},"https://github.com/52cs",[132],[1546],{"type":66,"tag":120,"props":1547,"children":1548},{},[1549],{"type":71,"value":1550},"@52cs",{"type":71,"value":1133},{"type":66,"tag":128,"props":1553,"children":1556},{"href":1554,"rel":1555},"https://github.com/Aietes",[132],[1557],{"type":66,"tag":120,"props":1558,"children":1559},{},[1560],{"type":71,"value":1561},"@Aietes",{"type":71,"value":1133},{"type":66,"tag":128,"props":1564,"children":1566},{"href":1239,"rel":1565},[132],[1567],{"type":66,"tag":120,"props":1568,"children":1569},{},[1570],{"type":71,"value":1246},{"type":71,"value":1133},{"type":66,"tag":128,"props":1573,"children":1576},{"href":1574,"rel":1575},"https://github.com/kiri10ten",[132],[1577],{"type":66,"tag":120,"props":1578,"children":1579},{},[1580],{"type":71,"value":1581},"@kiri10ten",{"type":71,"value":1133},{"type":66,"tag":128,"props":1584,"children":1587},{"href":1585,"rel":1586},"https://github.com/xMorthi",[132],[1588],{"type":66,"tag":120,"props":1589,"children":1590},{},[1591],{"type":71,"value":1592},"@xMorthi",{"title":59,"searchDepth":78,"depth":78,"links":1594},[1595],{"id":100,"depth":78,"text":103,"children":1596},[1597],{"id":107,"depth":160,"text":110},"https://github.com/nuxt-modules/supabase/releases/tag/v1.1.2","https://api.github.com/repos/nuxt-modules/supabase/tarball/v1.1.2","https://api.github.com/repos/nuxt-modules/supabase/zipball/v1.1.2",{"url":1602,"total_count":585,"+1":294,"-1":294,"laugh":294,"hooray":160,"confused":294,"heart":294,"rocket":294,"eyes":161},"https://api.github.com/repos/nuxt-modules/supabase/releases/120162649/reactions",{"name":166,"url":167,"avatar":168},"github:v1.1.2.md",{"name":1606,"tag_name":1606,"date":1607,"body":1608,"v":161,"url":1691,"tarball":1692,"zipball":1693,"prerelease":60,"reactions":1694,"author":1696,"title":59,"description":59,"_type":80,"_id":1697},"v1.0.2","2023-08-04T15:56:13Z",{"type":63,"children":1609,"toc":1688},[1610,1614,1651,1665],{"type":66,"tag":98,"props":1611,"children":1612},{"id":100},[1613],{"type":71,"value":103},{"type":66,"tag":112,"props":1615,"children":1616},{},[1617,1634],{"type":66,"tag":116,"props":1618,"children":1619},{},[1620,1622,1633],{"type":71,"value":1621},"docs(auth): update (",{"type":66,"tag":128,"props":1623,"children":1626},{"href":1624,"rel":1625},"https://github.com/nuxt-modules/supabase/commit/df00ffe8ecc253fc23572b65465ad7928e185b13",[132],[1627],{"type":66,"tag":312,"props":1628,"children":1630},{"className":1629},[],[1631],{"type":71,"value":1632},"df00ffe",{"type":71,"value":255},{"type":66,"tag":116,"props":1635,"children":1636},{},[1637,1639,1650],{"type":71,"value":1638},"fix(client): correct provider_token assignment to cookie (",{"type":66,"tag":128,"props":1640,"children":1643},{"href":1641,"rel":1642},"https://github.com/nuxt-modules/supabase/commit/a76df3f67d6b08daf359f38130ce08aeab57317b",[132],[1644],{"type":66,"tag":312,"props":1645,"children":1647},{"className":1646},[],[1648],{"type":71,"value":1649},"a76df3f",{"type":71,"value":255},{"type":66,"tag":67,"props":1652,"children":1653},{},[1654,1658,1659],{"type":66,"tag":120,"props":1655,"children":1656},{},[1657],{"type":71,"value":1528},{"type":71,"value":1530},{"type":66,"tag":128,"props":1660,"children":1663},{"href":1661,"rel":1662},"https://github.com/nuxt-community/supabase-module/compare/v1.0.1...v1.0.2",[132],[1664],{"type":71,"value":1661},{"type":66,"tag":67,"props":1666,"children":1667},{},[1668,1669,1679,1680],{"type":71,"value":1236},{"type":66,"tag":128,"props":1670,"children":1673},{"href":1671,"rel":1672},"https://github.com/blqke",[132],[1674],{"type":66,"tag":120,"props":1675,"children":1676},{},[1677],{"type":71,"value":1678},"@blqke",{"type":71,"value":1133},{"type":66,"tag":128,"props":1681,"children":1683},{"href":1554,"rel":1682},[132],[1684],{"type":66,"tag":120,"props":1685,"children":1686},{},[1687],{"type":71,"value":1561},{"title":59,"searchDepth":78,"depth":78,"links":1689},[1690],{"id":100,"depth":78,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v1.0.2","https://api.github.com/repos/nuxt-modules/supabase/tarball/v1.0.2","https://api.github.com/repos/nuxt-modules/supabase/zipball/v1.0.2",{"url":1695,"total_count":160,"+1":294,"-1":294,"laugh":294,"hooray":160,"confused":294,"heart":294,"rocket":294,"eyes":294},"https://api.github.com/repos/nuxt-modules/supabase/releases/115135546/reactions",{"name":166,"url":167,"avatar":168},"github:v1.0.2.md",{"name":1699,"tag_name":1699,"date":1700,"body":1701,"v":161,"url":1990,"tarball":1991,"zipball":1992,"prerelease":60,"reactions":1993,"author":1999,"title":59,"description":2000,"_type":80,"_id":2001},"v1.0.1","2023-08-02T15:46:15Z",{"type":63,"children":1702,"toc":1987},[1703,1716,1721,1789,1794,1815,1819,1824,1953,1969,1972],{"type":66,"tag":67,"props":1704,"children":1705},{},[1706,1708,1714],{"type":71,"value":1707},"I am happy to announce the release of version ",{"type":66,"tag":312,"props":1709,"children":1711},{"className":1710},[],[1712],{"type":71,"value":1713},"1.0.0",{"type":71,"value":1715}," of this module. While the module has been production-ready for quite some time, I never had the opportunity to create the first major version until now. Given that this version incorporates significant changes, I believe it is the perfect moment to establish this initial major release.",{"type":66,"tag":98,"props":1717,"children":1718},{"id":100},[1719],{"type":71,"value":1720},"What's changed",{"type":66,"tag":112,"props":1722,"children":1723},{},[1724,1746,1751],{"type":66,"tag":116,"props":1725,"children":1726},{},[1727,1729,1736,1738,1745],{"type":71,"value":1728},"Supabase introduced a new authentication flow (PKCE) a few months ago, which is now the default behavior of the module. However, you can still revert to the old (and less secure) authentication method through the module configuration. To help you seamlessly integrate this new flow, a ",{"type":66,"tag":128,"props":1730,"children":1733},{"href":1731,"rel":1732},"https://supabase.nuxtjs.org/authentication",[132],[1734],{"type":71,"value":1735},"dedicated section",{"type":71,"value":1737}," has been added to the documentation. (",{"type":66,"tag":128,"props":1739,"children":1742},{"href":1740,"rel":1741},"https://github.com/nuxt-modules/supabase/issues/219",[132],[1743],{"type":71,"value":1744},"#219",{"type":71,"value":255},{"type":66,"tag":116,"props":1747,"children":1748},{},[1749],{"type":71,"value":1750},"Building upon the previous point, we have implemented substantial changes to the session management, involving alterations to how Supabase clients are instantiated and how sessions are synchronized between the server and client-side. Consequently, these changes result in some breaking changes, which are listed below.",{"type":66,"tag":116,"props":1752,"children":1753},{},[1754,1756,1763,1765,1772,1774,1781,1783],{"type":71,"value":1755},"A brand new documentation has been built entirely using ",{"type":66,"tag":128,"props":1757,"children":1760},{"href":1758,"rel":1759},"https://nuxt.studio",[132],[1761],{"type":71,"value":1762},"Nuxt Studio",{"type":71,"value":1764},". Feel free to create PRs to suggest fixes or add any necessary changes to further enhance the documentation. (",{"type":66,"tag":128,"props":1766,"children":1769},{"href":1767,"rel":1768},"https://github.com/nuxt-modules/supabase/issues/210",[132],[1770],{"type":71,"value":1771},"#210",{"type":71,"value":1773}," / ",{"type":66,"tag":128,"props":1775,"children":1778},{"href":1776,"rel":1777},"https://github.com/nuxt-modules/supabase/issues/221",[132],[1779],{"type":71,"value":1780},"#221",{"type":71,"value":1782},") => ",{"type":66,"tag":128,"props":1784,"children":1787},{"href":1785,"rel":1786},"https://supabase.nuxtjs.org",[132],[1788],{"type":71,"value":1785},{"type":66,"tag":67,"props":1790,"children":1791},{},[1792],{"type":71,"value":1793},"Here's documentation that can help you understand the PKCE authentication flow:",{"type":66,"tag":112,"props":1795,"children":1796},{},[1797,1806],{"type":66,"tag":116,"props":1798,"children":1799},{},[1800],{"type":66,"tag":128,"props":1801,"children":1804},{"href":1802,"rel":1803},"https://supabase.com/blog/supabase-auth-sso-pkce#server-side-and-mobile-auth",[132],[1805],{"type":71,"value":1802},{"type":66,"tag":116,"props":1807,"children":1808},{},[1809],{"type":66,"tag":128,"props":1810,"children":1813},{"href":1811,"rel":1812},"https://supabase.com/docs/guides/resources/glossary#pkce",[132],[1814],{"type":71,"value":1811},{"type":66,"tag":1816,"props":1817,"children":1818},"br",{},[],{"type":66,"tag":67,"props":1820,"children":1821},{},[1822],{"type":71,"value":1823},"⚠️ BREAKING CHANGES ⚠️",{"type":66,"tag":112,"props":1825,"children":1826},{},[1827,1845,1871,1890,1918],{"type":66,"tag":116,"props":1828,"children":1829},{},[1830,1836,1838,1843],{"type":66,"tag":312,"props":1831,"children":1833},{"className":1832},[],[1834],{"type":71,"value":1835},"useSupabaseAuthClient",{"type":71,"value":1837}," has been removed in favor of ",{"type":66,"tag":312,"props":1839,"children":1841},{"className":1840},[],[1842],{"type":71,"value":21},{"type":71,"value":1844}," in all cases",{"type":66,"tag":116,"props":1846,"children":1847},{},[1848,1853,1855,1861,1863,1869],{"type":66,"tag":312,"props":1849,"children":1851},{"className":1850},[],[1852],{"type":71,"value":34},{"type":71,"value":1854}," is now returning a promise (should be called with ",{"type":66,"tag":312,"props":1856,"children":1858},{"className":1857},[],[1859],{"type":71,"value":1860},"await",{"type":71,"value":1862}," in an ",{"type":66,"tag":312,"props":1864,"children":1866},{"className":1865},[],[1867],{"type":71,"value":1868},"async",{"type":71,"value":1870}," method)",{"type":66,"tag":116,"props":1872,"children":1873},{},[1874,1880,1882,1888],{"type":66,"tag":312,"props":1875,"children":1877},{"className":1876},[],[1878],{"type":71,"value":1879},"redirect",{"type":71,"value":1881}," option is enable by default, follow this ",{"type":66,"tag":128,"props":1883,"children":1885},{"href":1731,"rel":1884},[132],[1886],{"type":71,"value":1887},"guide",{"type":71,"value":1889}," to update your app",{"type":66,"tag":116,"props":1891,"children":1892},{},[1893,1899,1901,1907,1909,1916],{"type":66,"tag":312,"props":1894,"children":1896},{"className":1895},[],[1897],{"type":71,"value":1898},"client",{"type":71,"value":1900}," option becomes ",{"type":66,"tag":312,"props":1902,"children":1904},{"className":1903},[],[1905],{"type":71,"value":1906},"clientOptions",{"type":71,"value":1908}," with new ",{"type":66,"tag":128,"props":1910,"children":1913},{"href":1911,"rel":1912},"https://supabase.nuxtjs.org/get-started#clientoptions",[132],[1914],{"type":71,"value":1915},"default value",{"type":71,"value":1917}," (including the PKCE flow)",{"type":66,"tag":116,"props":1919,"children":1920},{},[1921,1927,1929,1935,1936,1942,1944,1951],{"type":66,"tag":312,"props":1922,"children":1924},{"className":1923},[],[1925],{"type":71,"value":1926},"cookies",{"type":71,"value":1928}," options is split in ",{"type":66,"tag":312,"props":1930,"children":1932},{"className":1931},[],[1933],{"type":71,"value":1934},"cookieName",{"type":71,"value":713},{"type":66,"tag":312,"props":1937,"children":1939},{"className":1938},[],[1940],{"type":71,"value":1941},"cookieOptions",{"type":71,"value":1943},", ",{"type":66,"tag":128,"props":1945,"children":1948},{"href":1946,"rel":1947},"https://supabase.nuxtjs.org/get-started#cookieoptions",[132],[1949],{"type":71,"value":1950},"default values",{"type":71,"value":1952}," have not changed",{"type":66,"tag":67,"props":1954,"children":1955},{},[1956,1958],{"type":71,"value":1957},"Here si the commit done for updating the demo with the last version: ",{"type":66,"tag":128,"props":1959,"children":1962},{"href":1960,"rel":1961},"https://github.com/nuxt-modules/supabase/commit/10e05860862b68c49817f6420d50d082452f7a7f",[132],[1963],{"type":66,"tag":312,"props":1964,"children":1966},{"className":1965},[],[1967],{"type":71,"value":1968},"10e0586",{"type":66,"tag":1816,"props":1970,"children":1971},{},[],{"type":66,"tag":67,"props":1973,"children":1974},{},[1975,1977,1985],{"type":71,"value":1976},"A huge thanks to ",{"type":66,"tag":128,"props":1978,"children":1980},{"href":1554,"rel":1979},[132],[1981],{"type":66,"tag":120,"props":1982,"children":1983},{},[1984],{"type":71,"value":1561},{"type":71,"value":1986}," for initialising all those changes and help me built it 💚",{"title":59,"searchDepth":78,"depth":78,"links":1988},[1989],{"id":100,"depth":78,"text":1720},"https://github.com/nuxt-modules/supabase/releases/tag/v1.0.1","https://api.github.com/repos/nuxt-modules/supabase/tarball/v1.0.1","https://api.github.com/repos/nuxt-modules/supabase/zipball/v1.0.1",{"url":1994,"total_count":1995,"+1":1996,"-1":294,"laugh":294,"hooray":1997,"confused":294,"heart":585,"rocket":1998,"eyes":294},"https://api.github.com/repos/nuxt-modules/supabase/releases/114843996/reactions",40,9,19,8,{"name":166,"url":167,"avatar":168},"I am happy to announce the release of version 1.0.0 of this module. While the module has been production-ready for quite some time, I never had the opportunity to create the first major version until now. Given that this version incorporates significant changes, I believe it is the perfect moment to establish this initial major release.","github:v1.0.1.md",{"name":2003,"tag_name":2003,"date":2004,"body":2005,"v":294,"url":2097,"tarball":2098,"zipball":2099,"prerelease":60,"reactions":2100,"author":2102,"title":59,"description":59,"_type":80,"_id":2103},"v0.3.8","2023-07-03T08:29:53Z",{"type":63,"children":2006,"toc":2094},[2007,2011,2068,2082],{"type":66,"tag":98,"props":2008,"children":2009},{"id":100},[2010],{"type":71,"value":103},{"type":66,"tag":112,"props":2012,"children":2013},{},[2014,2051],{"type":66,"tag":116,"props":2015,"children":2016},{},[2017,2019,2030,2032,2039,2041],{"type":71,"value":2018},"feat(session): save provider access/refresh tokens in cookies (",{"type":66,"tag":128,"props":2020,"children":2023},{"href":2021,"rel":2022},"https://github.com/nuxt-modules/supabase/commit/ea8c21f3d625984832cb27a3ae7605b16caaf94b",[132],[2024],{"type":66,"tag":312,"props":2025,"children":2027},{"className":2026},[],[2028],{"type":71,"value":2029},"ea8c21f",{"type":71,"value":2031},") in ",{"type":66,"tag":128,"props":2033,"children":2036},{"href":2034,"rel":2035},"https://github.com/nuxt-modules/supabase/issues/197",[132],[2037],{"type":71,"value":2038},"#197",{"type":71,"value":2040}," by ",{"type":66,"tag":128,"props":2042,"children":2045},{"href":2043,"rel":2044},"https://github.com/mitjans",[132],[2046],{"type":66,"tag":120,"props":2047,"children":2048},{},[2049],{"type":71,"value":2050},"@mitjans",{"type":66,"tag":116,"props":2052,"children":2053},{},[2054,2056,2067],{"type":71,"value":2055},"chore(deps): upgrade to latest (",{"type":66,"tag":128,"props":2057,"children":2060},{"href":2058,"rel":2059},"https://github.com/nuxt-modules/supabase/commit/a52abc871b6ab756c2b477f7c6b3c0f51279693c",[132],[2061],{"type":66,"tag":312,"props":2062,"children":2064},{"className":2063},[],[2065],{"type":71,"value":2066},"a52abc8",{"type":71,"value":255},{"type":66,"tag":67,"props":2069,"children":2070},{},[2071,2075,2076],{"type":66,"tag":120,"props":2072,"children":2073},{},[2074],{"type":71,"value":1528},{"type":71,"value":1530},{"type":66,"tag":128,"props":2077,"children":2080},{"href":2078,"rel":2079},"https://github.com/nuxt-community/supabase-module/compare/v0.3.7...v0.3.8",[132],[2081],{"type":71,"value":2078},{"type":66,"tag":67,"props":2083,"children":2084},{},[2085,2086],{"type":71,"value":1236},{"type":66,"tag":128,"props":2087,"children":2089},{"href":2043,"rel":2088},[132],[2090],{"type":66,"tag":120,"props":2091,"children":2092},{},[2093],{"type":71,"value":2050},{"title":59,"searchDepth":78,"depth":78,"links":2095},[2096],{"id":100,"depth":78,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v0.3.8","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.3.8","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.3.8",{"url":2101,"total_count":685,"+1":294,"-1":294,"laugh":294,"hooray":685,"confused":294,"heart":294,"rocket":294,"eyes":294},"https://api.github.com/repos/nuxt-modules/supabase/releases/110829614/reactions",{"name":166,"url":167,"avatar":168},"github:v0.3.8.md",{"name":2105,"tag_name":2105,"date":2106,"body":2107,"v":294,"url":2176,"tarball":2177,"zipball":2178,"prerelease":60,"author":2179,"title":59,"description":59,"_type":80,"_id":2180},"v0.3.7","2023-06-12T07:51:13Z",{"type":63,"children":2108,"toc":2173},[2109,2113,2159],{"type":66,"tag":98,"props":2110,"children":2111},{"id":100},[2112],{"type":71,"value":103},{"type":66,"tag":112,"props":2114,"children":2115},{},[2116,2142],{"type":66,"tag":116,"props":2117,"children":2118},{},[2119,2121,2126,2127,2134,2135],{"type":71,"value":2120},"fix(client): fix persist session warning for ",{"type":66,"tag":312,"props":2122,"children":2124},{"className":2123},[],[2125],{"type":71,"value":37},{"type":71,"value":501},{"type":66,"tag":128,"props":2128,"children":2131},{"href":2129,"rel":2130},"https://github.com/nuxt-modules/supabase/issues/194",[132],[2132],{"type":71,"value":2133},"#194",{"type":71,"value":137},{"type":66,"tag":128,"props":2136,"children":2139},{"href":2137,"rel":2138},"https://github.com/nuxt-modules/supabase/issues/193",[132],[2140],{"type":71,"value":2141},"#193",{"type":66,"tag":116,"props":2143,"children":2144},{},[2145,2147,2158],{"type":71,"value":2146},"docs(get-started): remove defineNuxtConfig (",{"type":66,"tag":128,"props":2148,"children":2151},{"href":2149,"rel":2150},"https://github.com/nuxt-modules/supabase/commit/0151901",[132],[2152],{"type":66,"tag":312,"props":2153,"children":2155},{"className":2154},[],[2156],{"type":71,"value":2157},"0151901",{"type":71,"value":255},{"type":66,"tag":67,"props":2160,"children":2161},{},[2162,2163],{"type":71,"value":1236},{"type":66,"tag":128,"props":2164,"children":2167},{"href":2165,"rel":2166},"https://github.com/jawngee",[132],[2168],{"type":66,"tag":120,"props":2169,"children":2170},{},[2171],{"type":71,"value":2172},"@jawngee",{"title":59,"searchDepth":78,"depth":78,"links":2174},[2175],{"id":100,"depth":78,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v0.3.7","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.3.7","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.3.7",{"name":166,"url":167,"avatar":168},"github:v0.3.7.md",{"name":2182,"tag_name":2182,"date":2183,"body":2184,"v":294,"url":2240,"tarball":2241,"zipball":2242,"prerelease":60,"reactions":2243,"author":2245,"title":59,"description":59,"_type":80,"_id":2246},"v0.3.6","2023-06-02T14:33:38Z",{"type":63,"children":2185,"toc":2237},[2186,2190],{"type":66,"tag":98,"props":2187,"children":2188},{"id":100},[2189],{"type":71,"value":103},{"type":66,"tag":112,"props":2191,"children":2192},{},[2193,2198,2224],{"type":66,"tag":116,"props":2194,"children":2195},{},[2196],{"type":71,"value":2197},"chore(deps): upgrade to nuxt and supabase latest version",{"type":66,"tag":116,"props":2199,"children":2200},{},[2201,2203,2214,2216,2223],{"type":71,"value":2202},"fix(client): remove persist session warning on server side in ",{"type":66,"tag":128,"props":2204,"children":2207},{"href":2205,"rel":2206},"https://github.com/nuxt-modules/supabase/commit/227113f68fb8723f9687adfa12150f825940e0c9",[132],[2208],{"type":66,"tag":312,"props":2209,"children":2211},{"className":2210},[],[2212],{"type":71,"value":2213},"227113f",{"type":71,"value":2215}," (Resolves ",{"type":66,"tag":128,"props":2217,"children":2220},{"href":2218,"rel":2219},"https://github.com/nuxt-modules/supabase/issues/188",[132],[2221],{"type":71,"value":2222},"#188",{"type":71,"value":255},{"type":66,"tag":116,"props":2225,"children":2226},{},[2227,2229,2236],{"type":71,"value":2228},"fix(chore): resolve imports (Resolves ",{"type":66,"tag":128,"props":2230,"children":2233},{"href":2231,"rel":2232},"https://github.com/nuxt-modules/supabase/issues/190",[132],[2234],{"type":71,"value":2235},"#190",{"type":71,"value":255},{"title":59,"searchDepth":78,"depth":78,"links":2238},[2239],{"id":100,"depth":78,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v0.3.6","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.3.6","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.3.6",{"url":2244,"total_count":685,"+1":161,"-1":294,"laugh":294,"hooray":585,"confused":294,"heart":294,"rocket":294,"eyes":294},"https://api.github.com/repos/nuxt-modules/supabase/releases/105847469/reactions",{"name":166,"url":167,"avatar":168},"github:v0.3.6.md",{"name":2248,"tag_name":2248,"date":2249,"body":2250,"v":294,"url":2539,"tarball":2540,"zipball":2541,"prerelease":60,"reactions":2542,"author":2544,"title":59,"description":59,"_type":80,"_id":2545},"v0.3.5","2023-04-03T09:50:57Z",{"type":63,"children":2251,"toc":2536},[2252,2256,2485,2499],{"type":66,"tag":98,"props":2253,"children":2254},{"id":100},[2255],{"type":71,"value":103},{"type":66,"tag":112,"props":2257,"children":2258},{},[2259,2276,2293,2310,2327,2344,2361,2378,2395,2412,2444,2461],{"type":66,"tag":116,"props":2260,"children":2261},{},[2262,2264,2275],{"type":71,"value":2263},"chore(demo): upgrade on last version (",{"type":66,"tag":128,"props":2265,"children":2268},{"href":2266,"rel":2267},"https://github.com/nuxt-modules/supabase/commit/9bb9e2856823a0bb86c07ae7775462e02a1e430d",[132],[2269],{"type":66,"tag":312,"props":2270,"children":2272},{"className":2271},[],[2273],{"type":71,"value":2274},"9bb9e28",{"type":71,"value":255},{"type":66,"tag":116,"props":2277,"children":2278},{},[2279,2281,2292],{"type":71,"value":2280},"chore(demo): generate database types from supabase cli (",{"type":66,"tag":128,"props":2282,"children":2285},{"href":2283,"rel":2284},"https://github.com/nuxt-modules/supabase/commit/bca199292dfeb23d5e0581ab40a6994fed3d1157",[132],[2286],{"type":66,"tag":312,"props":2287,"children":2289},{"className":2288},[],[2290],{"type":71,"value":2291},"bca1992",{"type":71,"value":255},{"type":66,"tag":116,"props":2294,"children":2295},{},[2296,2298,2309],{"type":71,"value":2297},"docs(links): update nuxt & supabase links and fix typos (",{"type":66,"tag":128,"props":2299,"children":2302},{"href":2300,"rel":2301},"https://github.com/nuxt-modules/supabase/commit/5699dc6c22f9182e9593936fc1260fc785eea450",[132],[2303],{"type":66,"tag":312,"props":2304,"children":2306},{"className":2305},[],[2307],{"type":71,"value":2308},"5699dc6",{"type":71,"value":255},{"type":66,"tag":116,"props":2311,"children":2312},{},[2313,2315,2326],{"type":71,"value":2314},"chore(app): move to pnpm (",{"type":66,"tag":128,"props":2316,"children":2319},{"href":2317,"rel":2318},"https://github.com/nuxt-modules/supabase/commit/94f7e130747801584d2b0999bd2f5f904e575082",[132],[2320],{"type":66,"tag":312,"props":2321,"children":2323},{"className":2322},[],[2324],{"type":71,"value":2325},"94f7e13",{"type":71,"value":255},{"type":66,"tag":116,"props":2328,"children":2329},{},[2330,2332,2343],{"type":71,"value":2331},"chore(module): conditionally add redirect plugin (",{"type":66,"tag":128,"props":2333,"children":2336},{"href":2334,"rel":2335},"https://github.com/nuxt-modules/supabase/commit/0cad0a557934f669f2ab424ef072f6b07c098646",[132],[2337],{"type":66,"tag":312,"props":2338,"children":2340},{"className":2339},[],[2341],{"type":71,"value":2342},"0cad0a5",{"type":71,"value":255},{"type":66,"tag":116,"props":2345,"children":2346},{},[2347,2349,2360],{"type":71,"value":2348},"docs(get-started): fix typos (",{"type":66,"tag":128,"props":2350,"children":2353},{"href":2351,"rel":2352},"https://github.com/nuxt-modules/supabase/commit/ba437a8534f3dcda53f805cc34b5d6a943297354",[132],[2354],{"type":66,"tag":312,"props":2355,"children":2357},{"className":2356},[],[2358],{"type":71,"value":2359},"ba437a8",{"type":71,"value":255},{"type":66,"tag":116,"props":2362,"children":2363},{},[2364,2366,2377],{"type":71,"value":2365},"docs(composables): correct grammar errors (",{"type":66,"tag":128,"props":2367,"children":2370},{"href":2368,"rel":2369},"https://github.com/nuxt-modules/supabase/commit/034d7dfaf9f52a08da0ade4bf6d5ed31ec740734",[132],[2371],{"type":66,"tag":312,"props":2372,"children":2374},{"className":2373},[],[2375],{"type":71,"value":2376},"034d7df",{"type":71,"value":255},{"type":66,"tag":116,"props":2379,"children":2380},{},[2381,2383,2394],{"type":71,"value":2382},"feat(demo): add call from server route(",{"type":66,"tag":128,"props":2384,"children":2387},{"href":2385,"rel":2386},"https://github.com/nuxt-modules/supabase/commit/989a91eacdc471de90a2307c39cd03f23cca57ee",[132],[2388],{"type":66,"tag":312,"props":2389,"children":2391},{"className":2390},[],[2392],{"type":71,"value":2393},"989a91e",{"type":71,"value":255},{"type":66,"tag":116,"props":2396,"children":2397},{},[2398,2400,2411],{"type":71,"value":2399},"perf(useSupabaseAuthClient): avoid declaring unused variables (",{"type":66,"tag":128,"props":2401,"children":2404},{"href":2402,"rel":2403},"https://github.com/nuxt-modules/supabase/commit/8c070b9e571b3fe7870c08033ea561624a6ae575",[132],[2405],{"type":66,"tag":312,"props":2406,"children":2408},{"className":2407},[],[2409],{"type":71,"value":2410},"8c070b9",{"type":71,"value":255},{"type":66,"tag":116,"props":2413,"children":2414},{},[2415,2417,2428,2429,2436,2437],{"type":71,"value":2416},"fix(dev): optimize supabase deps (",{"type":66,"tag":128,"props":2418,"children":2421},{"href":2419,"rel":2420},"https://github.com/nuxt-modules/supabase/commit/d1da3f6b2f463e7196c69c3a580833438926a6e1",[132],[2422],{"type":66,"tag":312,"props":2423,"children":2425},{"className":2424},[],[2426],{"type":71,"value":2427},"d1da3f6",{"type":71,"value":137},{"type":66,"tag":128,"props":2430,"children":2433},{"href":2431,"rel":2432},"https://github.com/nuxt-modules/supabase/issues/172",[132],[2434],{"type":71,"value":2435},"#172",{"type":71,"value":739},{"type":66,"tag":128,"props":2438,"children":2441},{"href":2439,"rel":2440},"https://github.com/nuxt-modules/supabase/issues/151",[132],[2442],{"type":71,"value":2443},"#151",{"type":66,"tag":116,"props":2445,"children":2446},{},[2447,2449,2460],{"type":71,"value":2448},"chore(deps): transpile websocket lib prod only (",{"type":66,"tag":128,"props":2450,"children":2453},{"href":2451,"rel":2452},"https://github.com/nuxt-modules/supabase/commit/a1ee40c848c9da81aa41acc53dc3555b32bafd86",[132],[2454],{"type":66,"tag":312,"props":2455,"children":2457},{"className":2456},[],[2458],{"type":71,"value":2459},"a1ee40c",{"type":71,"value":255},{"type":66,"tag":116,"props":2462,"children":2463},{},[2464,2466,2477,2478,2483],{"type":71,"value":2465},"fix(deps): transpile gotrue only on client (",{"type":66,"tag":128,"props":2467,"children":2470},{"href":2468,"rel":2469},"https://github.com/nuxt-modules/supabase/commit/fcc6823e248395a513706cf67ab664f84daacb45",[132],[2471],{"type":66,"tag":312,"props":2472,"children":2474},{"className":2473},[],[2475],{"type":71,"value":2476},"fcc6823",{"type":71,"value":137},{"type":66,"tag":128,"props":2479,"children":2481},{"href":2431,"rel":2480},[132],[2482],{"type":71,"value":2435},{"type":71,"value":2484}," on server side",{"type":66,"tag":67,"props":2486,"children":2487},{},[2488,2492,2493],{"type":66,"tag":120,"props":2489,"children":2490},{},[2491],{"type":71,"value":1528},{"type":71,"value":1530},{"type":66,"tag":128,"props":2494,"children":2497},{"href":2495,"rel":2496},"https://github.com/nuxt-community/supabase-module/compare/v0.3.1...v0.3.5",[132],[2498],{"type":71,"value":2495},{"type":66,"tag":67,"props":2500,"children":2501},{},[2502,2504,2511,2513,2520,2521,2528,2529],{"type":71,"value":2503},"💚 Thanks for the help from 💚\r\n@",{"type":66,"tag":128,"props":2505,"children":2508},{"href":2506,"rel":2507},"https://github.com/nuxt-modules/supabase/commits?author=kuizuo",[132],[2509],{"type":71,"value":2510},"kuizuo",{"type":71,"value":2512},"\r\n@",{"type":66,"tag":128,"props":2514,"children":2517},{"href":2515,"rel":2516},"https://github.com/nuxt-modules/supabase/commits?author=tnntwister",[132],[2518],{"type":71,"value":2519},"tnntwister",{"type":71,"value":2512},{"type":66,"tag":128,"props":2522,"children":2525},{"href":2523,"rel":2524},"https://github.com/nuxt-modules/supabase/commits?author=yannaufray",[132],[2526],{"type":71,"value":2527},"yannaufray",{"type":71,"value":2512},{"type":66,"tag":128,"props":2530,"children":2533},{"href":2531,"rel":2532},"https://github.com/nuxt-modules/supabase/commits?author=DamianGlowala",[132],[2534],{"type":71,"value":2535},"DamianGlowala",{"title":59,"searchDepth":78,"depth":78,"links":2537},[2538],{"id":100,"depth":78,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v0.3.5","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.3.5","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.3.5",{"url":2543,"total_count":161,"+1":294,"-1":294,"laugh":294,"hooray":294,"confused":294,"heart":294,"rocket":161,"eyes":294},"https://api.github.com/repos/nuxt-modules/supabase/releases/97822579/reactions",{"name":166,"url":167,"avatar":168},"github:v0.3.5.md",{"name":2547,"tag_name":2547,"date":2548,"body":2549,"v":294,"url":2812,"tarball":2813,"zipball":2814,"prerelease":2815,"reactions":2816,"author":2818,"title":59,"description":59,"_type":80,"_id":2819},"v0.3.3","2023-03-31T21:51:14Z",{"type":63,"children":2550,"toc":2809},[2551,2555,2795],{"type":66,"tag":98,"props":2552,"children":2553},{"id":100},[2554],{"type":71,"value":103},{"type":66,"tag":112,"props":2556,"children":2557},{},[2558,2581,2597,2614,2631,2654,2671,2696,2719,2742,2757,2780],{"type":66,"tag":116,"props":2559,"children":2560},{},[2561,2562,2569,2570,2580],{"type":71,"value":2399},{"type":66,"tag":128,"props":2563,"children":2566},{"href":2564,"rel":2565},"https://github.com/nuxt-modules/supabase/issues/166",[132],[2567],{"type":71,"value":2568},"#166",{"type":71,"value":730},{"type":66,"tag":128,"props":2571,"children":2574},{"href":2572,"rel":2573},"https://github.com/nuxt-modules/supabase/commit/8c070b9",[132],[2575],{"type":66,"tag":312,"props":2576,"children":2578},{"className":2577},[],[2579],{"type":71,"value":2410},{"type":71,"value":255},{"type":66,"tag":116,"props":2582,"children":2583},{},[2584,2586,2596],{"type":71,"value":2585},"feat(demo): add call from server route (",{"type":66,"tag":128,"props":2587,"children":2590},{"href":2588,"rel":2589},"https://github.com/nuxt-modules/supabase/commit/989a91e",[132],[2591],{"type":66,"tag":312,"props":2592,"children":2594},{"className":2593},[],[2595],{"type":71,"value":2393},{"type":71,"value":255},{"type":66,"tag":116,"props":2598,"children":2599},{},[2600,2602,2613],{"type":71,"value":2601},"chore(demo): upgrade deps (",{"type":66,"tag":128,"props":2603,"children":2606},{"href":2604,"rel":2605},"https://github.com/nuxt-modules/supabase/commit/9ebbc77",[132],[2607],{"type":66,"tag":312,"props":2608,"children":2610},{"className":2609},[],[2611],{"type":71,"value":2612},"9ebbc77",{"type":71,"value":255},{"type":66,"tag":116,"props":2615,"children":2616},{},[2617,2619,2630],{"type":71,"value":2618},"chore(deps): upgrade (",{"type":66,"tag":128,"props":2620,"children":2623},{"href":2621,"rel":2622},"https://github.com/nuxt-modules/supabase/commit/e274a5e",[132],[2624],{"type":66,"tag":312,"props":2625,"children":2627},{"className":2626},[],[2628],{"type":71,"value":2629},"e274a5e",{"type":71,"value":255},{"type":66,"tag":116,"props":2632,"children":2633},{},[2634,2635,2642,2643,2653],{"type":71,"value":2365},{"type":66,"tag":128,"props":2636,"children":2639},{"href":2637,"rel":2638},"https://github.com/nuxt-modules/supabase/issues/162",[132],[2640],{"type":71,"value":2641},"#162",{"type":71,"value":730},{"type":66,"tag":128,"props":2644,"children":2647},{"href":2645,"rel":2646},"https://github.com/nuxt-modules/supabase/commit/034d7df",[132],[2648],{"type":66,"tag":312,"props":2649,"children":2651},{"className":2650},[],[2652],{"type":71,"value":2376},{"type":71,"value":255},{"type":66,"tag":116,"props":2655,"children":2656},{},[2657,2659,2670],{"type":71,"value":2658},"docs(readme): add nuxt badge (",{"type":66,"tag":128,"props":2660,"children":2663},{"href":2661,"rel":2662},"https://github.com/nuxt-modules/supabase/commit/68271b8",[132],[2664],{"type":66,"tag":312,"props":2665,"children":2667},{"className":2666},[],[2668],{"type":71,"value":2669},"68271b8",{"type":71,"value":255},{"type":66,"tag":116,"props":2672,"children":2673},{},[2674,2676,2683,2684,2695],{"type":71,"value":2675},"docs(demo): fix typo (",{"type":66,"tag":128,"props":2677,"children":2680},{"href":2678,"rel":2679},"https://github.com/nuxt-modules/supabase/issues/125",[132],[2681],{"type":71,"value":2682},"#125",{"type":71,"value":730},{"type":66,"tag":128,"props":2685,"children":2688},{"href":2686,"rel":2687},"https://github.com/nuxt-modules/supabase/commit/bd33d12",[132],[2689],{"type":66,"tag":312,"props":2690,"children":2692},{"className":2691},[],[2693],{"type":71,"value":2694},"bd33d12",{"type":71,"value":255},{"type":66,"tag":116,"props":2697,"children":2698},{},[2699,2700,2707,2708,2718],{"type":71,"value":2348},{"type":66,"tag":128,"props":2701,"children":2704},{"href":2702,"rel":2703},"https://github.com/nuxt-modules/supabase/issues/154",[132],[2705],{"type":71,"value":2706},"#154",{"type":71,"value":730},{"type":66,"tag":128,"props":2709,"children":2712},{"href":2710,"rel":2711},"https://github.com/nuxt-modules/supabase/commit/ba437a8",[132],[2713],{"type":66,"tag":312,"props":2714,"children":2716},{"className":2715},[],[2717],{"type":71,"value":2359},{"type":71,"value":255},{"type":66,"tag":116,"props":2720,"children":2721},{},[2722,2723,2730,2731,2741],{"type":71,"value":2331},{"type":66,"tag":128,"props":2724,"children":2727},{"href":2725,"rel":2726},"https://github.com/nuxt-modules/supabase/issues/157",[132],[2728],{"type":71,"value":2729},"#157",{"type":71,"value":730},{"type":66,"tag":128,"props":2732,"children":2735},{"href":2733,"rel":2734},"https://github.com/nuxt-modules/supabase/commit/0cad0a5",[132],[2736],{"type":66,"tag":312,"props":2737,"children":2739},{"className":2738},[],[2740],{"type":71,"value":2342},{"type":71,"value":255},{"type":66,"tag":116,"props":2743,"children":2744},{},[2745,2746,2756],{"type":71,"value":2314},{"type":66,"tag":128,"props":2747,"children":2750},{"href":2748,"rel":2749},"https://github.com/nuxt-modules/supabase/commit/94f7e13",[132],[2751],{"type":66,"tag":312,"props":2752,"children":2754},{"className":2753},[],[2755],{"type":71,"value":2325},{"type":71,"value":255},{"type":66,"tag":116,"props":2758,"children":2759},{},[2760,2761,2768,2769,2779],{"type":71,"value":2297},{"type":66,"tag":128,"props":2762,"children":2765},{"href":2763,"rel":2764},"https://github.com/nuxt-modules/supabase/issues/126",[132],[2766],{"type":71,"value":2767},"#126",{"type":71,"value":730},{"type":66,"tag":128,"props":2770,"children":2773},{"href":2771,"rel":2772},"https://github.com/nuxt-modules/supabase/commit/5699dc6",[132],[2774],{"type":66,"tag":312,"props":2775,"children":2777},{"className":2776},[],[2778],{"type":71,"value":2308},{"type":71,"value":255},{"type":66,"tag":116,"props":2781,"children":2782},{},[2783,2784,2794],{"type":71,"value":2280},{"type":66,"tag":128,"props":2785,"children":2788},{"href":2786,"rel":2787},"https://github.com/nuxt-modules/supabase/commit/bca1992",[132],[2789],{"type":66,"tag":312,"props":2790,"children":2792},{"className":2791},[],[2793],{"type":71,"value":2291},{"type":71,"value":255},{"type":66,"tag":67,"props":2796,"children":2797},{},[2798,2802,2803],{"type":66,"tag":120,"props":2799,"children":2800},{},[2801],{"type":71,"value":1528},{"type":71,"value":1530},{"type":66,"tag":128,"props":2804,"children":2807},{"href":2805,"rel":2806},"https://github.com/nuxt-community/supabase-module/compare/v0.3.1...v0.3.3",[132],[2808],{"type":71,"value":2805},{"title":59,"searchDepth":78,"depth":78,"links":2810},[2811],{"id":100,"depth":78,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v0.3.3","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.3.3","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.3.3",true,{"url":2817,"total_count":161,"+1":161,"-1":294,"laugh":294,"hooray":294,"confused":294,"heart":294,"rocket":294,"eyes":294},"https://api.github.com/repos/nuxt-modules/supabase/releases/97697076/reactions",{"name":166,"url":167,"avatar":168},"github:v0.3.3.md",{"name":2821,"tag_name":2821,"date":2822,"body":2823,"v":294,"url":2888,"tarball":2889,"zipball":2890,"prerelease":60,"author":2891,"title":59,"description":59,"_type":80,"_id":2892},"v0.3.1","2023-02-07T20:18:04Z",{"type":63,"children":2824,"toc":2885},[2825,2829,2871],{"type":66,"tag":98,"props":2826,"children":2827},{"id":100},[2828],{"type":71,"value":103},{"type":66,"tag":112,"props":2830,"children":2831},{},[2832,2849,2866],{"type":66,"tag":116,"props":2833,"children":2834},{},[2835,2837,2848],{"type":71,"value":2836},"chore(app): upgrade deps and fix lint (",{"type":66,"tag":128,"props":2838,"children":2841},{"href":2839,"rel":2840},"https://github.com/nuxt-modules/supabase/commit/68baf68",[132],[2842],{"type":66,"tag":312,"props":2843,"children":2845},{"className":2844},[],[2846],{"type":71,"value":2847},"68baf68",{"type":71,"value":255},{"type":66,"tag":116,"props":2850,"children":2851},{},[2852,2854,2865],{"type":71,"value":2853},"fix(client): unset user before session on logout (",{"type":66,"tag":128,"props":2855,"children":2858},{"href":2856,"rel":2857},"https://github.com/nuxt-modules/supabase/commit/ab574ef",[132],[2859],{"type":66,"tag":312,"props":2860,"children":2862},{"className":2861},[],[2863],{"type":71,"value":2864},"ab574ef",{"type":71,"value":255},{"type":66,"tag":116,"props":2867,"children":2868},{},[2869],{"type":71,"value":2870},"chore(demo): update with latest and fix logout",{"type":66,"tag":67,"props":2872,"children":2873},{},[2874,2878,2879],{"type":66,"tag":120,"props":2875,"children":2876},{},[2877],{"type":71,"value":1528},{"type":71,"value":1530},{"type":66,"tag":128,"props":2880,"children":2883},{"href":2881,"rel":2882},"https://github.com/nuxt-community/supabase-module/compare/v0.3.0...v0.3.1",[132],[2884],{"type":71,"value":2881},{"title":59,"searchDepth":78,"depth":78,"links":2886},[2887],{"id":100,"depth":78,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v0.3.1","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.3.1","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.3.1",{"name":166,"url":167,"avatar":168},"github:v0.3.1.md",{"name":2894,"tag_name":2894,"date":2895,"body":2896,"v":294,"url":3018,"tarball":3019,"zipball":3020,"prerelease":60,"reactions":3021,"author":3023,"title":59,"description":1823,"_type":80,"_id":3024},"v0.3.0","2022-11-22T15:26:02Z",{"type":63,"children":2897,"toc":3015},[2898,2902,2906,2927,2961,2989,3001],{"type":66,"tag":67,"props":2899,"children":2900},{},[2901],{"type":71,"value":1823},{"type":66,"tag":98,"props":2903,"children":2904},{"id":100},[2905],{"type":71,"value":103},{"type":66,"tag":67,"props":2907,"children":2908},{},[2909,2911,2918,2920,2925],{"type":71,"value":2910},"In order to resolve ",{"type":66,"tag":128,"props":2912,"children":2915},{"href":2913,"rel":2914},"https://github.com/nuxt-modules/supabase/issues/114",[132],[2916],{"type":71,"value":2917},"#114",{"type":71,"value":2919},", I have made the choice to separate the ",{"type":66,"tag":312,"props":2921,"children":2923},{"className":2922},[],[2924],{"type":71,"value":21},{"type":71,"value":2926}," in two other composables:",{"type":66,"tag":112,"props":2928,"children":2929},{},[2930,2950],{"type":66,"tag":116,"props":2931,"children":2932},{},[2933,2935,2940,2942,2948],{"type":71,"value":2934},"The ",{"type":66,"tag":312,"props":2936,"children":2938},{"className":2937},[],[2939],{"type":71,"value":1835},{"type":71,"value":2941}," is dedicated to authentification purpose only. It won't be recreate if your token expires, it is used in the client plugin to listen to ",{"type":66,"tag":312,"props":2943,"children":2945},{"className":2944},[],[2946],{"type":71,"value":2947},"onAuthStateChange",{"type":71,"value":2949}," events.",{"type":66,"tag":116,"props":2951,"children":2952},{},[2953,2954,2959],{"type":71,"value":2934},{"type":66,"tag":312,"props":2955,"children":2957},{"className":2956},[],[2958],{"type":71,"value":21},{"type":71,"value":2960}," is now only useful for data request.",{"type":66,"tag":67,"props":2962,"children":2963},{},[2964,2966,2971,2973,2978,2980,2987],{"type":71,"value":2965},"To avoid regression you just need to use ",{"type":66,"tag":312,"props":2967,"children":2969},{"className":2968},[],[2970],{"type":71,"value":1835},{"type":71,"value":2972}," instead of ",{"type":66,"tag":312,"props":2974,"children":2976},{"className":2975},[],[2977],{"type":71,"value":21},{"type":71,"value":2979}," everywhere you use ",{"type":66,"tag":128,"props":2981,"children":2984},{"href":2982,"rel":2983},"https://supabase.com/docs/reference/javascript/auth-signup",[132],[2985],{"type":71,"value":2986},"Supabase auth methods",{"type":71,"value":2988},".",{"type":66,"tag":67,"props":2990,"children":2991},{},[2992,2999],{"type":66,"tag":128,"props":2993,"children":2996},{"href":2994,"rel":2995},"https://supabase.nuxtjs.org/usage/composables/use-supabase-auth-client",[132],[2997],{"type":71,"value":2998},"Documentation",{"type":71,"value":3000}," has been updated.",{"type":66,"tag":67,"props":3002,"children":3003},{},[3004,3008,3009],{"type":66,"tag":120,"props":3005,"children":3006},{},[3007],{"type":71,"value":1528},{"type":71,"value":1530},{"type":66,"tag":128,"props":3010,"children":3013},{"href":3011,"rel":3012},"https://github.com/nuxt-community/supabase-module/compare/v0.2.6...v0.3.0",[132],[3014],{"type":71,"value":3011},{"title":59,"searchDepth":78,"depth":78,"links":3016},[3017],{"id":100,"depth":78,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v0.3.0","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.3.0","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.3.0",{"url":3022,"total_count":1998,"+1":78,"-1":294,"laugh":294,"hooray":294,"confused":294,"heart":160,"rocket":160,"eyes":294},"https://api.github.com/repos/nuxt-modules/supabase/releases/83886320/reactions",{"name":166,"url":167,"avatar":168},"github:v0.3.0.md",{"name":3026,"tag_name":3026,"date":3027,"body":3028,"v":294,"url":3065,"tarball":3066,"zipball":3067,"prerelease":60,"author":3068,"title":59,"description":59,"_type":80,"_id":3069},"v0.2.6","2022-11-22T15:16:16Z",{"type":63,"children":3029,"toc":3062},[3030,3034,3048],{"type":66,"tag":98,"props":3031,"children":3032},{"id":100},[3033],{"type":71,"value":103},{"type":66,"tag":112,"props":3035,"children":3036},{},[3037],{"type":66,"tag":116,"props":3038,"children":3039},{},[3040,3042],{"type":71,"value":3041},"chore: update to Nuxt 3 stable 🚀 ",{"type":66,"tag":128,"props":3043,"children":3046},{"href":3044,"rel":3045},"https://nuxt.com/v3",[132],[3047],{"type":71,"value":3044},{"type":66,"tag":67,"props":3049,"children":3050},{},[3051,3055,3056],{"type":66,"tag":120,"props":3052,"children":3053},{},[3054],{"type":71,"value":1528},{"type":71,"value":1530},{"type":66,"tag":128,"props":3057,"children":3060},{"href":3058,"rel":3059},"https://github.com/nuxt-community/supabase-module/compare/v0.2.5...v0.2.6",[132],[3061],{"type":71,"value":3058},{"title":59,"searchDepth":78,"depth":78,"links":3063},[3064],{"id":100,"depth":78,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v0.2.6","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.2.6","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.2.6",{"name":166,"url":167,"avatar":168},"github:v0.2.6.md",{"name":3071,"tag_name":3071,"date":3072,"body":3073,"v":294,"url":3125,"tarball":3126,"zipball":3127,"prerelease":60,"author":3128,"title":59,"description":59,"_type":80,"_id":3129},"v0.2.5","2022-11-22T15:14:51Z",{"type":63,"children":3074,"toc":3122},[3075,3079,3108],{"type":66,"tag":98,"props":3076,"children":3077},{"id":100},[3078],{"type":71,"value":103},{"type":66,"tag":112,"props":3080,"children":3081},{},[3082],{"type":66,"tag":116,"props":3083,"children":3084},{},[3085,3087,3098,3100,3107],{"type":71,"value":3086},"fix: use Router instead of navigateTo for login redirect in ",{"type":66,"tag":128,"props":3088,"children":3091},{"href":3089,"rel":3090},"https://github.com/nuxt-modules/supabase/commit/79fc0e43655d4dee5858acf06cf1979e3ead542b",[132],[3092],{"type":66,"tag":312,"props":3093,"children":3095},{"className":3094},[],[3096],{"type":71,"value":3097},"79fc0e4",{"type":71,"value":3099}," (resolves ",{"type":66,"tag":128,"props":3101,"children":3104},{"href":3102,"rel":3103},"https://github.com/nuxt-modules/supabase/issues/89",[132],[3105],{"type":71,"value":3106},"#89",{"type":71,"value":255},{"type":66,"tag":67,"props":3109,"children":3110},{},[3111,3115,3116],{"type":66,"tag":120,"props":3112,"children":3113},{},[3114],{"type":71,"value":1528},{"type":71,"value":1530},{"type":66,"tag":128,"props":3117,"children":3120},{"href":3118,"rel":3119},"https://github.com/nuxt-community/supabase-module/compare/v0.2.4...v0.2.5",[132],[3121],{"type":71,"value":3118},{"title":59,"searchDepth":78,"depth":78,"links":3123},[3124],{"id":100,"depth":78,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v0.2.5","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.2.5","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.2.5",{"name":166,"url":167,"avatar":168},"github:v0.2.5.md",{"name":3131,"tag_name":3131,"date":3132,"body":3133,"v":294,"url":3175,"tarball":3176,"zipball":3177,"prerelease":60,"reactions":3178,"author":3180,"title":59,"description":59,"_type":80,"_id":3181},"v0.2.4","2022-11-13T19:36:18Z",{"type":63,"children":3134,"toc":3172},[3135,3139,3158],{"type":66,"tag":98,"props":3136,"children":3137},{"id":100},[3138],{"type":71,"value":103},{"type":66,"tag":112,"props":3140,"children":3141},{},[3142],{"type":66,"tag":116,"props":3143,"children":3144},{},[3145,3147],{"type":71,"value":3146},"fix: handle TOKEN_REFRESHED session event in ",{"type":66,"tag":128,"props":3148,"children":3151},{"href":3149,"rel":3150},"https://github.com/nuxt-modules/supabase/commit/bf503029b48113b4b66545d0d2065c899209a06a",[132],[3152],{"type":66,"tag":312,"props":3153,"children":3155},{"className":3154},[],[3156],{"type":71,"value":3157},"bf50302",{"type":66,"tag":67,"props":3159,"children":3160},{},[3161,3165,3166],{"type":66,"tag":120,"props":3162,"children":3163},{},[3164],{"type":71,"value":1528},{"type":71,"value":1530},{"type":66,"tag":128,"props":3167,"children":3170},{"href":3168,"rel":3169},"https://github.com/nuxt-community/supabase-module/compare/v0.2.3...v0.2.4",[132],[3171],{"type":71,"value":3168},{"title":59,"searchDepth":78,"depth":78,"links":3173},[3174],{"id":100,"depth":78,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v0.2.4","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.2.4","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.2.4",{"url":3179,"total_count":78,"+1":294,"-1":294,"laugh":294,"hooray":294,"confused":294,"heart":78,"rocket":294,"eyes":294},"https://api.github.com/repos/nuxt-modules/supabase/releases/82920199/reactions",{"name":166,"url":167,"avatar":168},"github:v0.2.4.md",{"name":3183,"tag_name":3183,"date":3184,"body":3185,"v":294,"url":3322,"tarball":3323,"zipball":3324,"prerelease":60,"reactions":3325,"author":3327,"title":59,"description":59,"_type":80,"_id":3328},"v0.2.3","2022-11-11T17:27:14Z",{"type":63,"children":3186,"toc":3318},[3187,3191,3270,3276,3304],{"type":66,"tag":98,"props":3188,"children":3189},{"id":100},[3190],{"type":71,"value":103},{"type":66,"tag":112,"props":3192,"children":3193},{},[3194,3222,3234,3247],{"type":66,"tag":116,"props":3195,"children":3196},{},[3197,3199,3210,3211],{"type":71,"value":3198},"feat: typed supabase client in ",{"type":66,"tag":128,"props":3200,"children":3203},{"href":3201,"rel":3202},"https://github.com/nuxt-modules/supabase/commit/b59ff1acfbbe2cd36aea1ade2d2b538404909260",[132],[3204],{"type":66,"tag":312,"props":3205,"children":3207},{"className":3206},[],[3208],{"type":71,"value":3209},"b59ff1a",{"type":71,"value":713},{"type":66,"tag":128,"props":3212,"children":3215},{"href":3213,"rel":3214},"https://github.com/nuxt-modules/supabase/commit/fd751d7e50c63c48df9e03763458cc826409ff35",[132],[3216],{"type":66,"tag":312,"props":3217,"children":3219},{"className":3218},[],[3220],{"type":71,"value":3221},"fd751d7",{"type":66,"tag":116,"props":3223,"children":3224},{},[3225,3227],{"type":71,"value":3226},"chore: upgrade to nuxt ",{"type":66,"tag":128,"props":3228,"children":3231},{"href":3229,"rel":3230},"https://github.com/nuxt/framework/releases/tag/v3.0.0-rc.13",[132],[3232],{"type":71,"value":3233},"rc13",{"type":66,"tag":116,"props":3235,"children":3236},{},[3237,3239,3246],{"type":71,"value":3238},"fix: do not apply token if not exists (",{"type":66,"tag":128,"props":3240,"children":3243},{"href":3241,"rel":3242},"https://github.com/nuxt-modules/supabase/issues/107",[132],[3244],{"type":71,"value":3245},"#107",{"type":71,"value":255},{"type":66,"tag":116,"props":3248,"children":3249},{},[3250,3252,3258,3259],{"type":71,"value":3251},"docs: add roadmap board from ",{"type":66,"tag":128,"props":3253,"children":3256},{"href":3254,"rel":3255},"https://volta.net",[132],[3257],{"type":71,"value":3254},{"type":71,"value":619},{"type":66,"tag":128,"props":3260,"children":3263},{"href":3261,"rel":3262},"https://github.com/nuxt-modules/supabase/commit/f8e73b535924f133e479dbc2863bb37856ff4555",[132],[3264],{"type":66,"tag":312,"props":3265,"children":3267},{"className":3266},[],[3268],{"type":71,"value":3269},"f8e73b5",{"type":66,"tag":98,"props":3271,"children":3273},{"id":3272},"contributors",[3274],{"type":71,"value":3275},"Contributors",{"type":66,"tag":67,"props":3277,"children":3278},{},[3279,3281,3291,3292,3302],{"type":71,"value":3280},"Thanks to ",{"type":66,"tag":128,"props":3282,"children":3285},{"href":3283,"rel":3284},"https://github.com/manniL",[132],[3286],{"type":66,"tag":120,"props":3287,"children":3288},{},[3289],{"type":71,"value":3290},"@manniL",{"type":71,"value":713},{"type":66,"tag":128,"props":3293,"children":3296},{"href":3294,"rel":3295},"https://github.com/levibe",[132],[3297],{"type":66,"tag":120,"props":3298,"children":3299},{},[3300],{"type":71,"value":3301},"@levibe",{"type":71,"value":3303}," 💚",{"type":66,"tag":67,"props":3305,"children":3306},{},[3307,3311,3312],{"type":66,"tag":120,"props":3308,"children":3309},{},[3310],{"type":71,"value":1528},{"type":71,"value":1530},{"type":66,"tag":128,"props":3313,"children":3316},{"href":3314,"rel":3315},"https://github.com/nuxt-community/supabase-module/compare/v0.2.0...v0.2.3",[132],[3317],{"type":71,"value":3314},{"title":59,"searchDepth":78,"depth":78,"links":3319},[3320,3321],{"id":100,"depth":78,"text":103},{"id":3272,"depth":78,"text":3275},"https://github.com/nuxt-modules/supabase/releases/tag/v0.2.3","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.2.3","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.2.3",{"url":3326,"total_count":161,"+1":294,"-1":294,"laugh":294,"hooray":294,"confused":294,"heart":161,"rocket":294,"eyes":294},"https://api.github.com/repos/nuxt-modules/supabase/releases/82825289/reactions",{"name":166,"url":167,"avatar":168},"github:v0.2.3.md",{"name":3330,"tag_name":3330,"date":3331,"body":3332,"v":294,"url":3423,"tarball":3424,"zipball":3425,"prerelease":60,"author":3426,"title":59,"description":59,"_type":80,"_id":3427},"v0.2.0","2022-10-17T14:18:31Z",{"type":63,"children":3333,"toc":3420},[3334,3338,3343,3356,3369,3374,3379,3406],{"type":66,"tag":98,"props":3335,"children":3336},{"id":100},[3337],{"type":71,"value":103},{"type":66,"tag":67,"props":3339,"children":3340},{},[3341],{"type":71,"value":3342},"⚠️ Breaking Changes",{"type":66,"tag":67,"props":3344,"children":3345},{},[3346,3348,3355],{"type":71,"value":3347},"Upgrade to supabase-js v2, check Supabase ",{"type":66,"tag":128,"props":3349,"children":3352},{"href":3350,"rel":3351},"https://supabase.com/docs/reference/javascript/release-notes",[132],[3353],{"type":71,"value":3354},"release notes",{"type":71,"value":2988},{"type":66,"tag":67,"props":3357,"children":3358},{},[3359,3361,3367],{"type":71,"value":3360},"Module ",{"type":66,"tag":128,"props":3362,"children":3364},{"href":1785,"rel":3363},[132],[3365],{"type":71,"value":3366},"documentation",{"type":71,"value":3368}," has been updated in favor of supabase v2 syntax.",{"type":66,"tag":67,"props":3370,"children":3371},{},[3372],{"type":71,"value":3373},"Please feel free to make PR if I missed something 🙏",{"type":66,"tag":67,"props":3375,"children":3376},{},[3377],{"type":71,"value":3378},"🚀 Features",{"type":66,"tag":112,"props":3380,"children":3381},{},[3382,3394],{"type":66,"tag":116,"props":3383,"children":3384},{},[3385,3387,3393],{"type":71,"value":3386},"options: redirect user after signout or when user is not authenticated (check ",{"type":66,"tag":128,"props":3388,"children":3391},{"href":3389,"rel":3390},"https://supabase.nuxtjs.org/get-started#redirect",[132],[3392],{"type":71,"value":3366},{"type":71,"value":255},{"type":66,"tag":116,"props":3395,"children":3396},{},[3397,3399],{"type":71,"value":3398},"session: set refresh token ",{"type":66,"tag":128,"props":3400,"children":3403},{"href":3401,"rel":3402},"https://github.com/nuxt-modules/supabase/issues/18",[132],[3404],{"type":71,"value":3405},"#18",{"type":66,"tag":67,"props":3407,"children":3408},{},[3409,3413,3414],{"type":66,"tag":120,"props":3410,"children":3411},{},[3412],{"type":71,"value":1528},{"type":71,"value":1530},{"type":66,"tag":128,"props":3415,"children":3418},{"href":3416,"rel":3417},"https://github.com/nuxt-community/supabase-module/compare/v0.1.28...v0.2.0",[132],[3419],{"type":71,"value":3416},{"title":59,"searchDepth":78,"depth":78,"links":3421},[3422],{"id":100,"depth":78,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v0.2.0","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.2.0","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.2.0",{"name":166,"url":167,"avatar":168},"github:v0.2.0.md",{"name":3429,"tag_name":3429,"date":3430,"body":3431,"v":294,"url":3486,"tarball":3487,"zipball":3488,"prerelease":60,"author":3489,"title":59,"description":59,"_type":80,"_id":3490},"v0.1.28","2022-10-07T10:05:52Z",{"type":63,"children":3432,"toc":3483},[3433,3437,3453,3467],{"type":66,"tag":98,"props":3434,"children":3435},{"id":100},[3436],{"type":71,"value":103},{"type":66,"tag":112,"props":3438,"children":3439},{},[3440],{"type":66,"tag":116,"props":3441,"children":3442},{},[3443,3445,3452],{"type":71,"value":3444},"fix: cloudflare workers deployment (",{"type":66,"tag":128,"props":3446,"children":3449},{"href":3447,"rel":3448},"https://github.com/nuxt-modules/supabase/issues/46",[132],[3450],{"type":71,"value":3451},"#46",{"type":71,"value":255},{"type":66,"tag":67,"props":3454,"children":3455},{},[3456,3460,3461],{"type":66,"tag":120,"props":3457,"children":3458},{},[3459],{"type":71,"value":1528},{"type":71,"value":1530},{"type":66,"tag":128,"props":3462,"children":3465},{"href":3463,"rel":3464},"https://github.com/nuxt-community/supabase-module/compare/v0.1.27...v0.1.28",[132],[3466],{"type":71,"value":3463},{"type":66,"tag":67,"props":3468,"children":3469},{},[3470,3471,3481],{"type":71,"value":3280},{"type":66,"tag":128,"props":3472,"children":3475},{"href":3473,"rel":3474},"https://github.com/kevinmarrec",[132],[3476],{"type":66,"tag":120,"props":3477,"children":3478},{},[3479],{"type":71,"value":3480},"@kevinmarrec",{"type":71,"value":3482}," for the fix 🔥",{"title":59,"searchDepth":78,"depth":78,"links":3484},[3485],{"id":100,"depth":78,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.28","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.28","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.28",{"name":166,"url":167,"avatar":168},"github:v0.1.28.md",{"name":3492,"tag_name":3492,"date":3493,"body":3494,"v":294,"url":3537,"tarball":3538,"zipball":3539,"prerelease":60,"author":3540,"title":59,"description":59,"_type":80,"_id":3541},"v0.1.27","2022-09-23T10:19:42Z",{"type":63,"children":3495,"toc":3534},[3496,3500,3515,3520],{"type":66,"tag":98,"props":3497,"children":3498},{"id":100},[3499],{"type":71,"value":103},{"type":66,"tag":112,"props":3501,"children":3502},{},[3503],{"type":66,"tag":116,"props":3504,"children":3505},{},[3506,3508],{"type":71,"value":3507},"chore: upgrade to Nuxt ",{"type":66,"tag":128,"props":3509,"children":3512},{"href":3510,"rel":3511},"https://github.com/nuxt/framework/releases/tag/v3.0.0-rc.11",[132],[3513],{"type":71,"value":3514},"rc.11",{"type":66,"tag":67,"props":3516,"children":3517},{},[3518],{"type":71,"value":3519},"Stable is coming 🚀",{"type":66,"tag":67,"props":3521,"children":3522},{},[3523,3527,3528],{"type":66,"tag":120,"props":3524,"children":3525},{},[3526],{"type":71,"value":1528},{"type":71,"value":1530},{"type":66,"tag":128,"props":3529,"children":3532},{"href":3530,"rel":3531},"https://github.com/nuxt-community/supabase-module/compare/v0.1.26...v0.1.27",[132],[3533],{"type":71,"value":3530},{"title":59,"searchDepth":78,"depth":78,"links":3535},[3536],{"id":100,"depth":78,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.27","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.27","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.27",{"name":166,"url":167,"avatar":168},"github:v0.1.27.md",{"name":3330,"tag_name":3543,"date":3544,"body":3545,"v":294,"url":3583,"tarball":3584,"zipball":3585,"prerelease":2815,"author":3586,"title":59,"description":59,"_type":80,"_id":3427},"v0.2.0-16","2022-08-16T14:56:45Z",{"type":63,"children":3546,"toc":3580},[3547,3551,3555,3566],{"type":66,"tag":98,"props":3548,"children":3549},{"id":100},[3550],{"type":71,"value":103},{"type":66,"tag":67,"props":3552,"children":3553},{},[3554],{"type":71,"value":3342},{"type":66,"tag":67,"props":3556,"children":3557},{},[3558,3559,3565],{"type":71,"value":3347},{"type":66,"tag":128,"props":3560,"children":3563},{"href":3561,"rel":3562},"https://supabase.com/docs/reference/javascript/next/release-notes",[132],[3564],{"type":71,"value":3354},{"type":71,"value":2988},{"type":66,"tag":67,"props":3567,"children":3568},{},[3569,3573,3574],{"type":66,"tag":120,"props":3570,"children":3571},{},[3572],{"type":71,"value":1528},{"type":71,"value":1530},{"type":66,"tag":128,"props":3575,"children":3578},{"href":3576,"rel":3577},"https://github.com/nuxt-community/supabase-module/compare/v0.1.22...v0.2.0",[132],[3579],{"type":71,"value":3576},{"title":59,"searchDepth":78,"depth":78,"links":3581},[3582],{"id":100,"depth":78,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v0.2.0-16","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.2.0-16","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.2.0-16",{"name":166,"url":167,"avatar":168},{"name":3588,"tag_name":3588,"date":3589,"body":3590,"v":294,"url":3632,"tarball":3633,"zipball":3634,"prerelease":60,"reactions":3635,"author":3637,"title":59,"description":59,"_type":80,"_id":3638},"v0.1.26","2022-09-16T11:17:29Z",{"type":63,"children":3591,"toc":3629},[3592,3596,3610,3615],{"type":66,"tag":98,"props":3593,"children":3594},{"id":100},[3595],{"type":71,"value":103},{"type":66,"tag":112,"props":3597,"children":3598},{},[3599],{"type":66,"tag":116,"props":3600,"children":3601},{},[3602,3603],{"type":71,"value":3507},{"type":66,"tag":128,"props":3604,"children":3607},{"href":3605,"rel":3606},"https://github.com/nuxt/framework/releases/tag/v3.0.0-rc.10",[132],[3608],{"type":71,"value":3609},"rc.10",{"type":66,"tag":67,"props":3611,"children":3612},{},[3613],{"type":71,"value":3614},"Stable in coming 🚀",{"type":66,"tag":67,"props":3616,"children":3617},{},[3618,3622,3623],{"type":66,"tag":120,"props":3619,"children":3620},{},[3621],{"type":71,"value":1528},{"type":71,"value":1530},{"type":66,"tag":128,"props":3624,"children":3627},{"href":3625,"rel":3626},"https://github.com/nuxt-community/supabase-module/compare/v0.1.25...v0.1.26",[132],[3628],{"type":71,"value":3625},{"title":59,"searchDepth":78,"depth":78,"links":3630},[3631],{"id":100,"depth":78,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.26","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.26","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.26",{"url":3636,"total_count":161,"+1":161,"-1":294,"laugh":294,"hooray":294,"confused":294,"heart":294,"rocket":294,"eyes":294},"https://api.github.com/repos/nuxt-modules/supabase/releases/77384555/reactions",{"name":166,"url":167,"avatar":168},"github:v0.1.26.md",{"name":3640,"tag_name":3640,"date":3641,"body":3642,"v":294,"url":3745,"tarball":3746,"zipball":3747,"prerelease":60,"reactions":3748,"author":3750,"title":59,"description":59,"_type":80,"_id":3751},"v0.1.25","2022-09-05T07:28:01Z",{"type":63,"children":3643,"toc":3742},[3644,3648,3728],{"type":66,"tag":98,"props":3645,"children":3646},{"id":100},[3647],{"type":71,"value":103},{"type":66,"tag":112,"props":3649,"children":3650},{},[3651,3687,3715],{"type":66,"tag":116,"props":3652,"children":3653},{},[3654,3656,3667,3668,3679,3681],{"type":71,"value":3655},"docs: new directory architecture + supabase module v2 coming soon in ",{"type":66,"tag":128,"props":3657,"children":3660},{"href":3658,"rel":3659},"https://github.com/nuxt-modules/supabase/commit/d48522a369bcced45dfb3d16793b33f0144ffa50",[132],[3661],{"type":66,"tag":312,"props":3662,"children":3664},{"className":3663},[],[3665],{"type":71,"value":3666},"d48522a",{"type":71,"value":713},{"type":66,"tag":128,"props":3669,"children":3672},{"href":3670,"rel":3671},"https://github.com/nuxt-modules/supabase/commit/e69712b4862a5baa464c01ae32755473358b82d2",[132],[3673],{"type":66,"tag":312,"props":3674,"children":3676},{"className":3675},[],[3677],{"type":71,"value":3678},"e69712b",{"type":71,"value":3680},". Check out ",{"type":66,"tag":128,"props":3682,"children":3685},{"href":3683,"rel":3684},"https://supabase.nuxtjs.org/",[132],[3686],{"type":71,"value":3683},{"type":66,"tag":116,"props":3688,"children":3689},{},[3690,3692,3703,3704],{"type":71,"value":3691},"chore: upgrade to rc9 in ",{"type":66,"tag":128,"props":3693,"children":3696},{"href":3694,"rel":3695},"https://github.com/nuxt-modules/supabase/commit/3c5220bf9569d2e939a466aa4a2814e0dc38622c",[132],[3697],{"type":66,"tag":312,"props":3698,"children":3700},{"className":3699},[],[3701],{"type":71,"value":3702},"3c5220b",{"type":71,"value":713},{"type":66,"tag":128,"props":3705,"children":3708},{"href":3706,"rel":3707},"https://github.com/nuxt-modules/supabase/commit/495e0b705622e9bda28072815c828beedea1082c",[132],[3709],{"type":66,"tag":312,"props":3710,"children":3712},{"className":3711},[],[3713],{"type":71,"value":3714},"495e0b7",{"type":66,"tag":116,"props":3716,"children":3717},{},[3718,3720,3727],{"type":71,"value":3719},"chore: fix nuxt compatibility (",{"type":66,"tag":128,"props":3721,"children":3724},{"href":3722,"rel":3723},"https://github.com/nuxt-modules/supabase/issues/70",[132],[3725],{"type":71,"value":3726},"#70",{"type":71,"value":255},{"type":66,"tag":67,"props":3729,"children":3730},{},[3731,3735,3736],{"type":66,"tag":120,"props":3732,"children":3733},{},[3734],{"type":71,"value":1528},{"type":71,"value":1530},{"type":66,"tag":128,"props":3737,"children":3740},{"href":3738,"rel":3739},"https://github.com/nuxt-community/supabase-module/compare/v0.1.23...v0.1.25",[132],[3741],{"type":71,"value":3738},{"title":59,"searchDepth":78,"depth":78,"links":3743},[3744],{"id":100,"depth":78,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.25","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.25","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.25",{"url":3749,"total_count":685,"+1":294,"-1":294,"laugh":294,"hooray":294,"confused":294,"heart":685,"rocket":294,"eyes":294},"https://api.github.com/repos/nuxt-modules/supabase/releases/76259131/reactions",{"name":166,"url":167,"avatar":168},"github:v0.1.25.md",{"name":3753,"tag_name":3753,"date":3754,"body":3755,"v":294,"url":3823,"tarball":3824,"zipball":3825,"prerelease":60,"author":3826,"title":59,"description":59,"_type":80,"_id":3827},"v0.1.23","2022-08-16T10:12:13Z",{"type":63,"children":3756,"toc":3820},[3757,3761,3806],{"type":66,"tag":98,"props":3758,"children":3759},{"id":100},[3760],{"type":71,"value":103},{"type":66,"tag":112,"props":3762,"children":3763},{},[3764],{"type":66,"tag":116,"props":3765,"children":3766},{},[3767,3769,3782,3784,3796,3798,3805],{"type":71,"value":3768},"fix: transpile supabase packages in ",{"type":66,"tag":128,"props":3770,"children":3773},{"href":3771,"rel":3772},"https://github.com/nuxt-community/supabase-module/commit/66020204e8aad98db94a83964f1bb988642c90f3",[132],[3774,3776],{"type":71,"value":3775},"nuxt-community/supabase-module@",{"type":66,"tag":312,"props":3777,"children":3779},{"className":3778},[],[3780],{"type":71,"value":3781},"6602020",{"type":71,"value":3783}," ",{"type":66,"tag":128,"props":3785,"children":3788},{"href":3786,"rel":3787},"https://github.com/nuxt-community/supabase-module/commit/237ddf2cf83079e39748b6252182ca1d2f62cc54",[132],[3789,3790],{"type":71,"value":3775},{"type":66,"tag":312,"props":3791,"children":3793},{"className":3792},[],[3794],{"type":71,"value":3795},"237ddf2",{"type":71,"value":3797}," and (",{"type":66,"tag":128,"props":3799,"children":3802},{"href":3800,"rel":3801},"https://github.com/nuxt-modules/supabase/issues/62",[132],[3803],{"type":71,"value":3804},"#62",{"type":71,"value":255},{"type":66,"tag":67,"props":3807,"children":3808},{},[3809,3813,3814],{"type":66,"tag":120,"props":3810,"children":3811},{},[3812],{"type":71,"value":1528},{"type":71,"value":1530},{"type":66,"tag":128,"props":3815,"children":3818},{"href":3816,"rel":3817},"https://github.com/nuxt-community/supabase-module/compare/v0.1.20...v0.1.23",[132],[3819],{"type":71,"value":3816},{"title":59,"searchDepth":78,"depth":78,"links":3821},[3822],{"id":100,"depth":78,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.23","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.23","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.23",{"name":166,"url":167,"avatar":168},"github:v0.1.23.md",{"name":3829,"tag_name":3829,"date":3830,"body":3831,"v":294,"url":3901,"tarball":3902,"zipball":3903,"prerelease":60,"author":3904,"title":59,"description":59,"_type":80,"_id":3905},"v0.1.20","2022-08-16T09:12:14Z",{"type":63,"children":3832,"toc":3897},[3833,3837,3852,3866,3872],{"type":66,"tag":98,"props":3834,"children":3835},{"id":100},[3836],{"type":71,"value":103},{"type":66,"tag":112,"props":3838,"children":3839},{},[3840],{"type":66,"tag":116,"props":3841,"children":3842},{},[3843,3845],{"type":71,"value":3844},"chore: upgrade to ",{"type":66,"tag":128,"props":3846,"children":3849},{"href":3847,"rel":3848},"https://github.com/nuxt/framework/releases/tag/v3.0.0-rc.8",[132],[3850],{"type":71,"value":3851},"nuxt rc.8",{"type":66,"tag":67,"props":3853,"children":3854},{},[3855,3859,3860],{"type":66,"tag":120,"props":3856,"children":3857},{},[3858],{"type":71,"value":1528},{"type":71,"value":1530},{"type":66,"tag":128,"props":3861,"children":3864},{"href":3862,"rel":3863},"https://github.com/nuxt-community/supabase-module/compare/v0.1.19...v0.1.20",[132],[3865],{"type":71,"value":3862},{"type":66,"tag":98,"props":3867,"children":3869},{"id":3868},"new-contributors",[3870],{"type":71,"value":3871},"New Contributors",{"type":66,"tag":112,"props":3873,"children":3874},{},[3875],{"type":66,"tag":116,"props":3876,"children":3877},{},[3878,3888,3890],{"type":66,"tag":128,"props":3879,"children":3882},{"href":3880,"rel":3881},"https://github.com/josuemartinezz",[132],[3883],{"type":66,"tag":120,"props":3884,"children":3885},{},[3886],{"type":71,"value":3887},"@josuemartinezz",{"type":71,"value":3889}," made his first contribution in ",{"type":66,"tag":128,"props":3891,"children":3894},{"href":3892,"rel":3893},"https://github.com/nuxt-modules/supabase/issues/59",[132],[3895],{"type":71,"value":3896},"#59",{"title":59,"searchDepth":78,"depth":78,"links":3898},[3899,3900],{"id":100,"depth":78,"text":103},{"id":3868,"depth":78,"text":3871},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.20","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.20","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.20",{"name":166,"url":167,"avatar":168},"github:v0.1.20.md",{"name":3907,"tag_name":3907,"date":3908,"body":3909,"v":294,"url":3963,"tarball":3964,"zipball":3965,"prerelease":60,"reactions":3966,"author":3968,"title":59,"description":59,"_type":80,"_id":3969},"v0.1.19","2022-07-18T08:18:42Z",{"type":63,"children":3910,"toc":3960},[3911,3915,3946],{"type":66,"tag":98,"props":3912,"children":3913},{"id":100},[3914],{"type":71,"value":103},{"type":66,"tag":112,"props":3916,"children":3917},{},[3918,3929],{"type":66,"tag":116,"props":3919,"children":3920},{},[3921,3922],{"type":71,"value":3844},{"type":66,"tag":128,"props":3923,"children":3926},{"href":3924,"rel":3925},"https://github.com/nuxt/framework/pull/5825",[132],[3927],{"type":71,"value":3928},"nuxt rc.5",{"type":66,"tag":116,"props":3930,"children":3931},{},[3932,3934],{"type":71,"value":3933},"doc: add supabase icon in ",{"type":66,"tag":128,"props":3935,"children":3938},{"href":3936,"rel":3937},"https://github.com/nuxt-community/supabase-module/commit/c0cce016eae809fd64acc9a503b4807750280b39",[132],[3939,3940],{"type":71,"value":3775},{"type":66,"tag":312,"props":3941,"children":3943},{"className":3942},[],[3944],{"type":71,"value":3945},"c0cce01",{"type":66,"tag":67,"props":3947,"children":3948},{},[3949,3953,3954],{"type":66,"tag":120,"props":3950,"children":3951},{},[3952],{"type":71,"value":1528},{"type":71,"value":1530},{"type":66,"tag":128,"props":3955,"children":3958},{"href":3956,"rel":3957},"https://github.com/nuxt-community/supabase-module/compare/v0.1.18...v0.1.19",[132],[3959],{"type":71,"value":3956},{"title":59,"searchDepth":78,"depth":78,"links":3961},[3962],{"id":100,"depth":78,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.19","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.19","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.19",{"url":3967,"total_count":161,"+1":294,"-1":294,"laugh":294,"hooray":294,"confused":294,"heart":294,"rocket":161,"eyes":294},"https://api.github.com/repos/nuxt-modules/supabase/releases/72200550/reactions",{"name":166,"url":167,"avatar":168},"github:v0.1.19.md",{"name":3971,"tag_name":3971,"date":3972,"body":3973,"v":294,"url":4050,"tarball":4051,"zipball":4052,"prerelease":60,"author":4053,"title":59,"description":59,"_type":80,"_id":4054},"v0.1.18","2022-06-29T09:23:26Z",{"type":63,"children":3974,"toc":4047},[3975,3979,4033],{"type":66,"tag":98,"props":3976,"children":3977},{"id":100},[3978],{"type":71,"value":103},{"type":66,"tag":112,"props":3980,"children":3981},{},[3982,4008],{"type":66,"tag":116,"props":3983,"children":3984},{},[3985,3987,3999,4000,4007],{"type":71,"value":3986},"doc: update logo & social preview in ",{"type":66,"tag":128,"props":3988,"children":3991},{"href":3989,"rel":3990},"https://github.com/nuxt-community/supabase-module/commit/9b0b2fbee1f2fed50e903c2b368b817568d7ab1f",[132],[3992,3993],{"type":71,"value":3775},{"type":66,"tag":312,"props":3994,"children":3996},{"className":3995},[],[3997],{"type":71,"value":3998},"9b0b2fb",{"type":71,"value":501},{"type":66,"tag":128,"props":4001,"children":4004},{"href":4002,"rel":4003},"https://github.com/nuxt-modules/supabase/issues/53",[132],[4005],{"type":71,"value":4006},"#53",{"type":71,"value":255},{"type":66,"tag":116,"props":4009,"children":4010},{},[4011,4012,4024,4025,4032],{"type":71,"value":3768},{"type":66,"tag":128,"props":4013,"children":4016},{"href":4014,"rel":4015},"https://github.com/nuxt-community/supabase-module/commit/309c137f7ae23985f0ed9947fb85cb75cbfbfca2",[132],[4017,4018],{"type":71,"value":3775},{"type":66,"tag":312,"props":4019,"children":4021},{"className":4020},[],[4022],{"type":71,"value":4023},"309c137",{"type":71,"value":501},{"type":66,"tag":128,"props":4026,"children":4029},{"href":4027,"rel":4028},"https://github.com/nuxt-modules/supabase/issues/55",[132],[4030],{"type":71,"value":4031},"#55",{"type":71,"value":255},{"type":66,"tag":67,"props":4034,"children":4035},{},[4036,4040,4041],{"type":66,"tag":120,"props":4037,"children":4038},{},[4039],{"type":71,"value":1528},{"type":71,"value":1530},{"type":66,"tag":128,"props":4042,"children":4045},{"href":4043,"rel":4044},"https://github.com/nuxt-community/supabase-module/compare/v0.1.17...v0.1.18",[132],[4046],{"type":71,"value":4043},{"title":59,"searchDepth":78,"depth":78,"links":4048},[4049],{"id":100,"depth":78,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.18","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.18","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.18",{"name":166,"url":167,"avatar":168},"github:v0.1.18.md",{"name":4056,"tag_name":4056,"date":4057,"body":4058,"v":294,"url":4150,"tarball":4151,"zipball":4152,"prerelease":60,"reactions":4153,"author":4155,"title":59,"description":59,"_type":80,"_id":4156},"v0.1.17","2022-06-17T07:01:12Z",{"type":63,"children":4059,"toc":4147},[4060,4064,4120,4133],{"type":66,"tag":98,"props":4061,"children":4062},{"id":100},[4063],{"type":71,"value":103},{"type":66,"tag":112,"props":4065,"children":4066},{},[4067,4078,4103],{"type":66,"tag":116,"props":4068,"children":4069},{},[4070,4071],{"type":71,"value":3844},{"type":66,"tag":128,"props":4072,"children":4075},{"href":4073,"rel":4074},"https://github.com/nuxt/framework/discussions/5445",[132],[4076],{"type":71,"value":4077},"nuxt rc.4",{"type":66,"tag":116,"props":4079,"children":4080},{},[4081,4083,4090,4091],{"type":71,"value":4082},"doc: update ",{"type":66,"tag":128,"props":4084,"children":4087},{"href":4085,"rel":4086},"https://docus.com/",[132],[4088],{"type":71,"value":4089},"docus theme",{"type":71,"value":619},{"type":66,"tag":128,"props":4092,"children":4095},{"href":4093,"rel":4094},"https://github.com/nuxt-community/supabase-module/commit/64a5add3db5e0416a8a3b7f9708d27148797e958",[132],[4096,4097],{"type":71,"value":3775},{"type":66,"tag":312,"props":4098,"children":4100},{"className":4099},[],[4101],{"type":71,"value":4102},"64a5add",{"type":66,"tag":116,"props":4104,"children":4105},{},[4106,4108],{"type":71,"value":4107},"doc: add advanced usage with supabase realtime ",{"type":66,"tag":128,"props":4109,"children":4112},{"href":4110,"rel":4111},"https://github.com/nuxt-community/supabase-module/commit/8047e311e5526a4597b81a99dc8045114348172f",[132],[4113,4114],{"type":71,"value":3775},{"type":66,"tag":312,"props":4115,"children":4117},{"className":4116},[],[4118],{"type":71,"value":4119},"8047e31",{"type":66,"tag":67,"props":4121,"children":4122},{},[4123,4125,4131],{"type":71,"value":4124},"Checkout the ",{"type":66,"tag":128,"props":4126,"children":4129},{"href":4127,"rel":4128},"https://supabase.nuxtjs.org/advanced#realtime",[132],[4130],{"type":71,"value":3366},{"type":71,"value":4132}," for supabase realtime!",{"type":66,"tag":67,"props":4134,"children":4135},{},[4136,4140,4141],{"type":66,"tag":120,"props":4137,"children":4138},{},[4139],{"type":71,"value":1528},{"type":71,"value":1530},{"type":66,"tag":128,"props":4142,"children":4145},{"href":4143,"rel":4144},"https://github.com/nuxt-community/supabase-module/compare/v0.1.16...v0.1.17",[132],[4146],{"type":71,"value":4143},{"title":59,"searchDepth":78,"depth":78,"links":4148},[4149],{"id":100,"depth":78,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.17","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.17","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.17",{"url":4154,"total_count":161,"+1":294,"-1":294,"laugh":294,"hooray":294,"confused":294,"heart":161,"rocket":294,"eyes":294},"https://api.github.com/repos/nuxt-modules/supabase/releases/69689480/reactions",{"name":166,"url":167,"avatar":168},"github:v0.1.17.md",{"name":4158,"tag_name":4158,"date":4159,"body":4160,"v":294,"url":4258,"tarball":4259,"zipball":4260,"prerelease":60,"author":4261,"title":59,"description":59,"_type":80,"_id":4262},"v0.1.16","2022-06-01T10:51:45Z",{"type":63,"children":4161,"toc":4255},[4162,4166,4229,4241],{"type":66,"tag":98,"props":4163,"children":4164},{"id":100},[4165],{"type":71,"value":103},{"type":66,"tag":112,"props":4167,"children":4168},{},[4169,4203],{"type":66,"tag":116,"props":4170,"children":4171},{},[4172,4174,4181,4182,4194,4195,4202],{"type":71,"value":4173},"doc: use docus theme (public release coming soon) powered by ",{"type":66,"tag":128,"props":4175,"children":4178},{"href":4176,"rel":4177},"https://content.nuxtjs.org/",[132],[4179],{"type":71,"value":4180},"nuxt content v2",{"type":71,"value":619},{"type":66,"tag":128,"props":4183,"children":4186},{"href":4184,"rel":4185},"https://github.com/nuxt-community/supabase-module/commit/c24a16ff0bc94221adc021231a2206b6db8f293c",[132],[4187,4188],{"type":71,"value":3775},{"type":66,"tag":312,"props":4189,"children":4191},{"className":4190},[],[4192],{"type":71,"value":4193},"c24a16f",{"type":71,"value":501},{"type":66,"tag":128,"props":4196,"children":4199},{"href":4197,"rel":4198},"https://github.com/nuxt-modules/supabase/issues/41",[132],[4200],{"type":71,"value":4201},"#41",{"type":71,"value":255},{"type":66,"tag":116,"props":4204,"children":4205},{},[4206,4208,4220,4221,4228],{"type":71,"value":4207},"feat: service role client to bypass RLS in ",{"type":66,"tag":128,"props":4209,"children":4212},{"href":4210,"rel":4211},"https://github.com/nuxt-community/supabase-module/commit/ba70a976be97acb3c438d59e45b789ee917bee6b",[132],[4213,4214],{"type":71,"value":3775},{"type":66,"tag":312,"props":4215,"children":4217},{"className":4216},[],[4218],{"type":71,"value":4219},"ba70a97",{"type":71,"value":501},{"type":66,"tag":128,"props":4222,"children":4225},{"href":4223,"rel":4224},"https://github.com/nuxt-modules/supabase/issues/43",[132],[4226],{"type":71,"value":4227},"#43",{"type":71,"value":255},{"type":66,"tag":67,"props":4230,"children":4231},{},[4232,4234,4239],{"type":71,"value":4233},"Checkout the new ",{"type":66,"tag":128,"props":4235,"children":4237},{"href":1785,"rel":4236},[132],[4238],{"type":71,"value":3366},{"type":71,"value":4240}," !",{"type":66,"tag":67,"props":4242,"children":4243},{},[4244,4248,4249],{"type":66,"tag":120,"props":4245,"children":4246},{},[4247],{"type":71,"value":1528},{"type":71,"value":1530},{"type":66,"tag":128,"props":4250,"children":4253},{"href":4251,"rel":4252},"https://github.com/nuxt-community/supabase-module/compare/v0.1.14...v0.1.16",[132],[4254],{"type":71,"value":4251},{"title":59,"searchDepth":78,"depth":78,"links":4256},[4257],{"id":100,"depth":78,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.16","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.16","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.16",{"name":166,"url":167,"avatar":168},"github:v0.1.16.md",{"name":4264,"tag_name":4264,"date":4265,"body":4266,"v":294,"url":4374,"tarball":4375,"zipball":4376,"prerelease":60,"author":4377,"title":59,"description":59,"_type":80,"_id":4378},"v0.1.14","2022-05-13T16:48:40Z",{"type":63,"children":4267,"toc":4371},[4268,4272,4335,4357],{"type":66,"tag":98,"props":4269,"children":4270},{"id":100},[4271],{"type":71,"value":103},{"type":66,"tag":112,"props":4273,"children":4274},{},[4275,4292,4309],{"type":66,"tag":116,"props":4276,"children":4277},{},[4278,4280],{"type":71,"value":4279},"feat: add playground folder in ",{"type":66,"tag":128,"props":4281,"children":4284},{"href":4282,"rel":4283},"https://github.com/nuxt-community/supabase-module/commit/339cf31cf48d4059ba0e4470d6e5e2aa9ef184c7",[132],[4285,4286],{"type":71,"value":3775},{"type":66,"tag":312,"props":4287,"children":4289},{"className":4288},[],[4290],{"type":71,"value":4291},"339cf31",{"type":66,"tag":116,"props":4293,"children":4294},{},[4295,4297],{"type":71,"value":4296},"fix: client options in ",{"type":66,"tag":128,"props":4298,"children":4301},{"href":4299,"rel":4300},"https://github.com/nuxt-community/supabase-module/commit/4c5595c11caf7a55621d297f6a0183a756175473",[132],[4302,4303],{"type":71,"value":3775},{"type":66,"tag":312,"props":4304,"children":4306},{"className":4305},[],[4307],{"type":71,"value":4308},"4c5595c",{"type":66,"tag":116,"props":4310,"children":4311},{},[4312,4314,4326,4327,4334],{"type":71,"value":4313},"feat: add server routes services in ",{"type":66,"tag":128,"props":4315,"children":4318},{"href":4316,"rel":4317},"https://github.com/nuxt-community/supabase-module/commit/696d3e8d19b8db79c85e86b79a3ba4dd31bb2343",[132],[4319,4320],{"type":71,"value":3775},{"type":66,"tag":312,"props":4321,"children":4323},{"className":4322},[],[4324],{"type":71,"value":4325},"696d3e8",{"type":71,"value":501},{"type":66,"tag":128,"props":4328,"children":4331},{"href":4329,"rel":4330},"https://github.com/nuxt-modules/supabase/issues/36",[132],[4332],{"type":71,"value":4333},"#36",{"type":71,"value":255},{"type":66,"tag":67,"props":4336,"children":4337},{},[4338,4340,4347,4349,4355],{"type":71,"value":4339},"You can check the ",{"type":66,"tag":128,"props":4341,"children":4344},{"href":4342,"rel":4343},"https://supabase.nuxtjs.org/usage#server-routes-services",[132],[4345],{"type":71,"value":4346},"documentation updated",{"type":71,"value":4348}," for the use of ",{"type":66,"tag":312,"props":4350,"children":4352},{"className":4351},[],[4353],{"type":71,"value":4354},"services",{"type":71,"value":4356}," in server routes.",{"type":66,"tag":67,"props":4358,"children":4359},{},[4360,4364,4365],{"type":66,"tag":120,"props":4361,"children":4362},{},[4363],{"type":71,"value":1528},{"type":71,"value":1530},{"type":66,"tag":128,"props":4366,"children":4369},{"href":4367,"rel":4368},"https://github.com/nuxt-community/supabase-module/compare/v0.1.11...v0.1.14",[132],[4370],{"type":71,"value":4367},{"title":59,"searchDepth":78,"depth":78,"links":4372},[4373],{"id":100,"depth":78,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.14","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.14","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.14",{"name":166,"url":167,"avatar":168},"github:v0.1.14.md",{"name":4380,"tag_name":4380,"date":4381,"body":4382,"v":294,"url":4408,"tarball":4409,"zipball":4410,"prerelease":60,"author":4411,"title":59,"description":59,"_type":80,"_id":4412},"v0.1.11","2022-05-06T08:51:02Z",{"type":63,"children":4383,"toc":4406},[4384,4392],{"type":66,"tag":112,"props":4385,"children":4386},{},[4387],{"type":66,"tag":116,"props":4388,"children":4389},{},[4390],{"type":71,"value":4391},"chore: upgrade deps",{"type":66,"tag":67,"props":4393,"children":4394},{},[4395,4399,4400],{"type":66,"tag":120,"props":4396,"children":4397},{},[4398],{"type":71,"value":1528},{"type":71,"value":1530},{"type":66,"tag":128,"props":4401,"children":4404},{"href":4402,"rel":4403},"https://github.com/nuxt-community/supabase-module/compare/v0.1.9...v0.1.11",[132],[4405],{"type":71,"value":4402},{"title":59,"searchDepth":78,"depth":78,"links":4407},[],"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.11","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.11","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.11",{"name":166,"url":167,"avatar":168},"github:v0.1.11.md",{"name":4414,"tag_name":4414,"date":4415,"body":4416,"v":294,"url":4469,"tarball":4470,"zipball":4471,"prerelease":60,"author":4472,"title":59,"description":59,"_type":80,"_id":4476},"v0.1.9","2022-04-20T11:07:23Z",{"type":63,"children":4417,"toc":4467},[4418,4453],{"type":66,"tag":112,"props":4419,"children":4420},{},[4421],{"type":66,"tag":116,"props":4422,"children":4423},{},[4424,4426,4432,4433,4439,4440,4452],{"type":71,"value":4425},"fix: use ",{"type":66,"tag":312,"props":4427,"children":4429},{"className":4428},[],[4430],{"type":71,"value":4431},"#imports",{"type":71,"value":2972},{"type":66,"tag":312,"props":4434,"children":4436},{"className":4435},[],[4437],{"type":71,"value":4438},"#nitro",{"type":71,"value":501},{"type":66,"tag":128,"props":4441,"children":4444},{"href":4442,"rel":4443},"https://github.com/nuxt-community/supabase-module/commit/42af598b7d9f3adf2c577c20e9cfb68bbb17d52b",[132],[4445,4446],{"type":71,"value":3775},{"type":66,"tag":312,"props":4447,"children":4449},{"className":4448},[],[4450],{"type":71,"value":4451},"42af598",{"type":71,"value":255},{"type":66,"tag":67,"props":4454,"children":4455},{},[4456,4460,4461],{"type":66,"tag":120,"props":4457,"children":4458},{},[4459],{"type":71,"value":1528},{"type":71,"value":1530},{"type":66,"tag":128,"props":4462,"children":4465},{"href":4463,"rel":4464},"https://github.com/nuxt-community/supabase-module/compare/v0.1.8...v0.1.9",[132],[4466],{"type":71,"value":4463},{"title":59,"searchDepth":78,"depth":78,"links":4468},[],"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.9","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.9","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.9",{"name":4473,"url":4474,"avatar":4475},"atinux","https://github.com/atinux","https://avatars.githubusercontent.com/u/904724?v=4","github:v0.1.9.md",{"name":4478,"tag_name":4478,"date":4479,"body":4480,"v":294,"url":4536,"tarball":4537,"zipball":4538,"prerelease":60,"author":4539,"title":59,"description":59,"_type":80,"_id":4540},"v0.1.8","2022-04-13T12:26:33Z",{"type":63,"children":4481,"toc":4533},[4482,4486],{"type":66,"tag":98,"props":4483,"children":4484},{"id":100},[4485],{"type":71,"value":103},{"type":66,"tag":112,"props":4487,"children":4488},{},[4489,4506],{"type":66,"tag":116,"props":4490,"children":4491},{},[4492,4494],{"type":71,"value":4493},"fix: update runtime config fetch and override in ",{"type":66,"tag":128,"props":4495,"children":4498},{"href":4496,"rel":4497},"https://github.com/nuxt-community/supabase-module/commit/260ebc7be39dfa65902ad4fe6a49639c99a69da8",[132],[4499,4500],{"type":71,"value":3775},{"type":66,"tag":312,"props":4501,"children":4503},{"className":4502},[],[4504],{"type":71,"value":4505},"260ebc7",{"type":66,"tag":116,"props":4507,"children":4508},{},[4509,4511,4523,4525,4532],{"type":71,"value":4510},"feat: handle session with defineEventHandler in ",{"type":66,"tag":128,"props":4512,"children":4515},{"href":4513,"rel":4514},"https://github.com/nuxt-community/supabase-module/commit/e646b1ce03773bf44932824726f280ad15455ec2",[132],[4516,4517],{"type":71,"value":3775},{"type":66,"tag":312,"props":4518,"children":4520},{"className":4519},[],[4521],{"type":71,"value":4522},"e646b1c",{"type":71,"value":4524}," (Check ",{"type":66,"tag":128,"props":4526,"children":4529},{"href":4527,"rel":4528},"https://v3.nuxtjs.org/guide/features/server-routes",[132],[4530],{"type":71,"value":4531},"Nuxt doc",{"type":71,"value":255},{"title":59,"searchDepth":78,"depth":78,"links":4534},[4535],{"id":100,"depth":78,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.8","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.8","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.8",{"name":166,"url":167,"avatar":168},"github:v0.1.8.md",{"name":4542,"tag_name":4542,"date":4543,"body":4544,"v":294,"url":4622,"tarball":4623,"zipball":4624,"prerelease":60,"reactions":4625,"author":4627,"title":59,"description":59,"_type":80,"_id":4628},"v0.1.7","2022-04-07T21:31:24Z",{"type":63,"children":4545,"toc":4618},[4546,4550,4593,4597],{"type":66,"tag":98,"props":4547,"children":4548},{"id":100},[4549],{"type":71,"value":103},{"type":66,"tag":112,"props":4551,"children":4552},{},[4553,4570],{"type":66,"tag":116,"props":4554,"children":4555},{},[4556,4558],{"type":71,"value":4557},"fix: assert method and use correct key for server middleware in ",{"type":66,"tag":128,"props":4559,"children":4562},{"href":4560,"rel":4561},"https://github.com/nuxt-community/supabase-module/commit/8a4d63101e6d2bc24563f7944988909ec7dcc6e5",[132],[4563,4564],{"type":71,"value":3775},{"type":66,"tag":312,"props":4565,"children":4567},{"className":4566},[],[4568],{"type":71,"value":4569},"8a4d631",{"type":66,"tag":116,"props":4571,"children":4572},{},[4573,4575,4585,4586],{"type":71,"value":4574},"fix: replace #config with #nitro by ",{"type":66,"tag":128,"props":4576,"children":4579},{"href":4577,"rel":4578},"https://github.com/psto",[132],[4580],{"type":66,"tag":120,"props":4581,"children":4582},{},[4583],{"type":71,"value":4584},"@psto",{"type":71,"value":619},{"type":66,"tag":128,"props":4587,"children":4590},{"href":4588,"rel":4589},"https://github.com/nuxt-community/supabase-module/pull/23",[132],[4591],{"type":71,"value":4592},"nuxt-community/supabase-module#23",{"type":66,"tag":98,"props":4594,"children":4595},{"id":3868},[4596],{"type":71,"value":3871},{"type":66,"tag":112,"props":4598,"children":4599},{},[4600],{"type":66,"tag":116,"props":4601,"children":4602},{},[4603,4611,4613],{"type":66,"tag":128,"props":4604,"children":4606},{"href":4577,"rel":4605},[132],[4607],{"type":66,"tag":120,"props":4608,"children":4609},{},[4610],{"type":71,"value":4584},{"type":71,"value":4612}," made their first contribution in ",{"type":66,"tag":128,"props":4614,"children":4616},{"href":4588,"rel":4615},[132],[4617],{"type":71,"value":4592},{"title":59,"searchDepth":78,"depth":78,"links":4619},[4620,4621],{"id":100,"depth":78,"text":103},{"id":3868,"depth":78,"text":3871},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.7","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.7","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.7",{"url":4626,"total_count":160,"+1":294,"-1":294,"laugh":294,"hooray":160,"confused":294,"heart":294,"rocket":294,"eyes":294},"https://api.github.com/repos/nuxt-modules/supabase/releases/63922233/reactions",{"name":4473,"url":4474,"avatar":4475},"github:v0.1.7.md",{"name":4630,"tag_name":4630,"date":4631,"body":4632,"v":294,"url":4679,"tarball":4680,"zipball":4681,"prerelease":60,"reactions":4682,"author":4685,"title":59,"description":59,"_type":80,"_id":4686},"v0.1.5","2022-04-04T10:15:21Z",{"type":63,"children":4633,"toc":4676},[4634,4638,4662],{"type":66,"tag":105,"props":4635,"children":4636},{"id":107},[4637],{"type":71,"value":110},{"type":66,"tag":112,"props":4639,"children":4640},{},[4641],{"type":66,"tag":116,"props":4642,"children":4643},{},[4644,4646,4653,4655],{"type":71,"value":4645},"remove lodash.clonedeep (",{"type":66,"tag":128,"props":4647,"children":4650},{"href":4648,"rel":4649},"https://github.com/nuxt-community/supabase-module/commit/b5c5c60358ab192b98c8a63185f58a2eb0ab706a",[132],[4651],{"type":71,"value":4652},"b5c5c60",{"type":71,"value":4654},"), resolved ",{"type":66,"tag":128,"props":4656,"children":4659},{"href":4657,"rel":4658},"https://github.com/nuxt-modules/supabase/issues/21",[132],[4660],{"type":71,"value":4661},"#21",{"type":66,"tag":67,"props":4663,"children":4664},{},[4665,4669,4670],{"type":66,"tag":120,"props":4666,"children":4667},{},[4668],{"type":71,"value":1528},{"type":71,"value":1530},{"type":66,"tag":128,"props":4671,"children":4674},{"href":4672,"rel":4673},"https://github.com/nuxt-community/supabase-module/compare/v0.1.4...v0.1.5",[132],[4675],{"type":71,"value":4672},{"title":59,"searchDepth":78,"depth":78,"links":4677},[4678],{"id":107,"depth":160,"text":110},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.5","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.5","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.5",{"url":4683,"total_count":4684,"+1":294,"-1":294,"laugh":294,"hooray":585,"confused":294,"heart":78,"rocket":294,"eyes":294},"https://api.github.com/repos/nuxt-modules/supabase/releases/63507078/reactions",6,{"name":4473,"url":4474,"avatar":4475},"github:v0.1.5.md",1725006469607] \ No newline at end of file +[{"data":1,"prerenderedAt":4687},["ShallowReactive",2],{"navigation":3,"/changelog":58,"/changelog-surround":86,"releases":91},[4,8,12,46,50,54],{"title":5,"_path":6,"icon":7},"Get Started","/get-started","i-heroicons-rocket-launch",{"title":9,"_path":10,"icon":11},"Authentication","/authentication","i-heroicons-lock-closed",{"title":13,"_path":14,"children":15,"icon":45},"Usage","/usage",[16,29],{"title":17,"_path":18,"children":19},"Vue composables","/usage/composables",[20,23,26],{"title":21,"_path":22},"useSupabaseClient","/usage/composables/usesupabaseclient",{"title":24,"_path":25},"useSupabaseSession","/usage/composables/usesupabasesession",{"title":27,"_path":28},"useSupabaseUser","/usage/composables/usesupabaseuser",{"title":30,"_path":31,"children":32},"Server services","/usage/services",[33,36,39,42],{"title":34,"_path":35},"serverSupabaseClient","/usage/services/serversupabaseclient",{"title":37,"_path":38},"serverSupabaseServiceRole","/usage/services/serversupabaseservicerole",{"title":40,"_path":41},"serverSupabaseSession","/usage/services/serversupabasesession",{"title":43,"_path":44},"serverSupabaseUser","/usage/services/serversupabaseuser","heroicons:book-open",{"title":47,"_path":48,"icon":49},"Demo","/demo","i-heroicons-computer-desktop-20-solid",{"title":51,"_path":52,"icon":53},"Changelog","/changelog","i-heroicons-bookmark",{"title":55,"_path":56,"icon":57},"Roadmap","/roadmap","i-heroicons-map",{"_path":52,"_dir":59,"_draft":60,"_partial":60,"_locale":59,"title":51,"description":61,"icon":53,"body":62,"_type":80,"_id":81,"_source":82,"_file":83,"_stem":84,"_extension":85},"",false,"Discover the latest updates of the Supabase Module",{"type":63,"children":64,"toc":77},"root",[65,73],{"type":66,"tag":67,"props":68,"children":69},"element","p",{},[70],{"type":71,"value":72},"text","Discover the lastest updates.",{"type":66,"tag":74,"props":75,"children":76},"releases",{},[],{"title":59,"searchDepth":78,"depth":78,"links":79},2,[],"markdown","content:6.changelog.md","content","6.changelog.md","6.changelog","md",[87,89],{"_path":48,"title":47,"description":88},"Demonstration of using Supabase with Nuxt.",{"_path":56,"title":55,"description":90},"Discover our kaban board for the next release of the Supabase module.",[92,170,222,297,532,588,688,786,890,1015,1190,1259,1365,1605,1698,2002,2104,2181,2247,2546,2820,2893,3025,3070,3130,3182,3329,3428,3491,3542,3587,3639,3752,3828,3906,3970,4055,4157,4263,4379,4413,4477,4541,4629],{"name":93,"tag_name":93,"date":94,"body":95,"v":161,"url":162,"tarball":163,"zipball":164,"prerelease":60,"author":165,"title":59,"description":59,"_type":80,"_id":169},"v1.3.5","2024-07-15T12:59:37Z",{"type":63,"children":96,"toc":155},[97,104,111,145],{"type":66,"tag":98,"props":99,"children":101},"h2",{"id":100},"whats-changed",[102],{"type":71,"value":103},"What's Changed",{"type":66,"tag":105,"props":106,"children":108},"h3",{"id":107},"bug-fixes",[109],{"type":71,"value":110},"Bug Fixes",{"type":66,"tag":112,"props":113,"children":114},"ul",{},[115],{"type":66,"tag":116,"props":117,"children":118},"li",{},[119,125,127,136,138],{"type":66,"tag":120,"props":121,"children":122},"strong",{},[123],{"type":71,"value":124},"types:",{"type":71,"value":126}," generate (",{"type":66,"tag":128,"props":129,"children":133},"a",{"href":130,"rel":131},"https://github.com/nuxt-community/supabase-module/commit/671295a3f8e1743384913f2940975c2e4217ff2e",[132],"nofollow",[134],{"type":71,"value":135},"671295a",{"type":71,"value":137},") resolves ",{"type":66,"tag":128,"props":139,"children":142},{"href":140,"rel":141},"https://github.com/nuxt-modules/supabase/issues/383",[132],[143],{"type":71,"value":144},"#383",{"type":66,"tag":67,"props":146,"children":147},{},[148],{"type":66,"tag":128,"props":149,"children":152},{"href":150,"rel":151},"https://github.com/nuxt-community/supabase-module/compare/v1.3.4...v1.3.5",[132],[153],{"type":71,"value":154},"Full changelog",{"title":59,"searchDepth":78,"depth":78,"links":156},[157],{"id":100,"depth":78,"text":103,"children":158},[159],{"id":107,"depth":160,"text":110},3,1,"https://github.com/nuxt-modules/supabase/releases/tag/v1.3.5","https://api.github.com/repos/nuxt-modules/supabase/tarball/v1.3.5","https://api.github.com/repos/nuxt-modules/supabase/zipball/v1.3.5",{"name":166,"url":167,"avatar":168},"larbish","https://github.com/larbish","https://avatars.githubusercontent.com/u/7290030?v=4","github:v1.3.5.md",{"name":171,"tag_name":171,"date":172,"body":173,"v":161,"url":217,"tarball":218,"zipball":219,"prerelease":60,"author":220,"title":59,"description":59,"_type":80,"_id":221},"v1.3.4","2024-07-10T07:00:38Z",{"type":63,"children":174,"toc":212},[175,179,183],{"type":66,"tag":98,"props":176,"children":177},{"id":100},[178],{"type":71,"value":103},{"type":66,"tag":105,"props":180,"children":181},{"id":107},[182],{"type":71,"value":110},{"type":66,"tag":112,"props":184,"children":185},{},[186],{"type":66,"tag":116,"props":187,"children":188},{},[189,194,196,203,205],{"type":66,"tag":120,"props":190,"children":191},{},[192],{"type":71,"value":193},"vite:",{"type":71,"value":195}," optimize order (",{"type":66,"tag":128,"props":197,"children":200},{"href":198,"rel":199},"https://github.com/nuxt-community/supabase-module/commit/663bd73ebb146ecde1abe5f29b52326e6dc2b6cd",[132],[201],{"type":71,"value":202},"663bd73",{"type":71,"value":204},") fixes ",{"type":66,"tag":128,"props":206,"children":209},{"href":207,"rel":208},"https://github.com/nuxt-modules/supabase/issues/385",[132],[210],{"type":71,"value":211},"#385",{"title":59,"searchDepth":78,"depth":78,"links":213},[214],{"id":100,"depth":78,"text":103,"children":215},[216],{"id":107,"depth":160,"text":110},"https://github.com/nuxt-modules/supabase/releases/tag/v1.3.4","https://api.github.com/repos/nuxt-modules/supabase/tarball/v1.3.4","https://api.github.com/repos/nuxt-modules/supabase/zipball/v1.3.4",{"name":166,"url":167,"avatar":168},"github:v1.3.4.md",{"name":223,"tag_name":223,"date":224,"body":225,"v":161,"url":289,"tarball":290,"zipball":291,"prerelease":60,"reactions":292,"author":295,"title":59,"description":59,"_type":80,"_id":296},"v1.3.2","2024-07-05T16:26:23Z",{"type":63,"children":226,"toc":283},[227,231,235,256,262],{"type":66,"tag":98,"props":228,"children":229},{"id":100},[230],{"type":71,"value":103},{"type":66,"tag":105,"props":232,"children":233},{"id":107},[234],{"type":71,"value":110},{"type":66,"tag":112,"props":236,"children":237},{},[238],{"type":66,"tag":116,"props":239,"children":240},{},[241,245,247,254],{"type":66,"tag":120,"props":242,"children":243},{},[244],{"type":71,"value":193},{"type":71,"value":246}," optimize postgrest (",{"type":66,"tag":128,"props":248,"children":251},{"href":249,"rel":250},"https://github.com/nuxt-community/supabase-module/commit/2a6d91a3ee83aa65cc5741afea907ca474e61d64",[132],[252],{"type":71,"value":253},"2a6d91a",{"type":71,"value":255},")",{"type":66,"tag":105,"props":257,"children":259},{"id":258},"features",[260],{"type":71,"value":261},"Features",{"type":66,"tag":112,"props":263,"children":264},{},[265],{"type":66,"tag":116,"props":266,"children":267},{},[268,273,275,282],{"type":66,"tag":120,"props":269,"children":270},{},[271],{"type":71,"value":272},"ci:",{"type":71,"value":274}," nightly version (",{"type":66,"tag":128,"props":276,"children":279},{"href":277,"rel":278},"https://github.com/nuxt-community/supabase-module/commit/298e608442ac5e8c15aa61c01411585e57732f4a",[132],[280],{"type":71,"value":281},"298e608",{"type":71,"value":255},{"title":59,"searchDepth":78,"depth":78,"links":284},[285],{"id":100,"depth":78,"text":103,"children":286},[287,288],{"id":107,"depth":160,"text":110},{"id":258,"depth":160,"text":261},"https://github.com/nuxt-modules/supabase/releases/tag/v1.3.2","https://api.github.com/repos/nuxt-modules/supabase/tarball/v1.3.2","https://api.github.com/repos/nuxt-modules/supabase/zipball/v1.3.2",{"url":293,"total_count":161,"+1":294,"-1":294,"laugh":294,"hooray":294,"confused":294,"heart":161,"rocket":294,"eyes":294},"https://api.github.com/repos/nuxt-modules/supabase/releases/164188781/reactions",0,{"name":166,"url":167,"avatar":168},"github:v1.3.2.md",{"name":298,"tag_name":298,"date":299,"body":300,"v":161,"url":525,"tarball":526,"zipball":527,"prerelease":60,"reactions":528,"author":530,"title":59,"description":59,"_type":80,"_id":531},"v1.3.1","2024-07-05T12:25:51Z",{"type":63,"children":301,"toc":519},[302,306,328,334,356,374,388,401,406,459,476,482,510],{"type":66,"tag":98,"props":303,"children":304},{"id":100},[305],{"type":71,"value":103},{"type":66,"tag":67,"props":307,"children":308},{},[309,311,318,320,326],{"type":71,"value":310},"⚠️ You can switch directly to ",{"type":66,"tag":312,"props":313,"children":315},"code",{"className":314},[],[316],{"type":71,"value":317},"1.3.1",{"type":71,"value":319},", since ",{"type":66,"tag":312,"props":321,"children":323},{"className":322},[],[324],{"type":71,"value":325},"1.3.0",{"type":71,"value":327}," has been superseded.",{"type":66,"tag":105,"props":329,"children":331},{"id":330},"major-changes",[332],{"type":71,"value":333},"Major changes",{"type":66,"tag":67,"props":335,"children":336},{},[337,339,346,348,355],{"type":71,"value":338},"We're now using the ",{"type":66,"tag":128,"props":340,"children":343},{"href":341,"rel":342},"https://supabase.com/docs/guides/auth/server-side/creating-a-client",[132],[344],{"type":71,"value":345},"@supabase/ssr",{"type":71,"value":347}," library under the hood 🎉 (",{"type":66,"tag":128,"props":349,"children":352},{"href":350,"rel":351},"https://github.com/nuxt-modules/supabase/issues/357",[132],[353],{"type":71,"value":354},"#357",{"type":71,"value":255},{"type":66,"tag":67,"props":357,"children":358},{},[359,361,366,368],{"type":71,"value":360},"There are ",{"type":66,"tag":120,"props":362,"children":363},{},[364],{"type":71,"value":365},"no breaking changes",{"type":71,"value":367}," related to this improvement. However, a non-disruptive warning appears in this release:\r\n",{"type":66,"tag":312,"props":369,"children":371},{"className":370},[],[372],{"type":71,"value":373},"Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure.",{"type":66,"tag":67,"props":375,"children":376},{},[377,379,386],{"type":71,"value":378},"This warning is related to ",{"type":66,"tag":128,"props":380,"children":383},{"href":381,"rel":382},"https://github.com/supabase/auth-js/issues/912",[132],[384],{"type":71,"value":385},"an issue",{"type":71,"value":387}," in the Supabase library itself. Initially, I intended to wait for this fix but since managing updates across two separate branches is challenging I chose to merge it anyway. I could no longer delay the release due to users raising concerns about outdated dependencies and other issues within the module.",{"type":66,"tag":67,"props":389,"children":390},{},[391,393,399],{"type":71,"value":392},"You can upvote ",{"type":66,"tag":128,"props":394,"children":396},{"href":381,"rel":395},[132],[397],{"type":71,"value":398},"the issue",{"type":71,"value":400}," to encourage the Supabase maintainers to address it.",{"type":66,"tag":67,"props":402,"children":403},{},[404],{"type":71,"value":405},"This improvement might fix:",{"type":66,"tag":112,"props":407,"children":408},{},[409,419,429,439,449],{"type":66,"tag":116,"props":410,"children":411},{},[412],{"type":66,"tag":128,"props":413,"children":416},{"href":414,"rel":415},"https://github.com/nuxt-modules/supabase/issues/298",[132],[417],{"type":71,"value":418},"#298",{"type":66,"tag":116,"props":420,"children":421},{},[422],{"type":66,"tag":128,"props":423,"children":426},{"href":424,"rel":425},"https://github.com/nuxt-modules/supabase/issues/381",[132],[427],{"type":71,"value":428},"#381",{"type":66,"tag":116,"props":430,"children":431},{},[432],{"type":66,"tag":128,"props":433,"children":436},{"href":434,"rel":435},"https://github.com/nuxt-modules/supabase/issues/380",[132],[437],{"type":71,"value":438},"#380",{"type":66,"tag":116,"props":440,"children":441},{},[442],{"type":66,"tag":128,"props":443,"children":446},{"href":444,"rel":445},"https://github.com/nuxt-modules/supabase/issues/367",[132],[447],{"type":71,"value":448},"#367",{"type":66,"tag":116,"props":450,"children":451},{},[452],{"type":66,"tag":128,"props":453,"children":456},{"href":454,"rel":455},"https://github.com/nuxt-modules/supabase/issues/326",[132],[457],{"type":71,"value":458},"#326",{"type":66,"tag":67,"props":460,"children":461},{},[462,464,474],{"type":71,"value":463},"A big thanks to ",{"type":66,"tag":128,"props":465,"children":468},{"href":466,"rel":467},"https://github.com/felixgabler",[132],[469],{"type":66,"tag":120,"props":470,"children":471},{},[472],{"type":71,"value":473},"@felixgabler",{"type":71,"value":475}," for initiating this change and helping refactor the module.",{"type":66,"tag":105,"props":477,"children":479},{"id":478},"other-update",[480],{"type":71,"value":481},"Other update",{"type":66,"tag":112,"props":483,"children":484},{},[485],{"type":66,"tag":116,"props":486,"children":487},{},[488,490,500,502,509],{"type":71,"value":489},"Automatic database types by ",{"type":66,"tag":128,"props":491,"children":494},{"href":492,"rel":493},"https://github.com/IsraelOrtuno",[132],[495],{"type":66,"tag":120,"props":496,"children":497},{},[498],{"type":71,"value":499},"@IsraelOrtuno",{"type":71,"value":501}," (",{"type":66,"tag":128,"props":503,"children":506},{"href":504,"rel":505},"https://github.com/nuxt-modules/supabase/issues/336",[132],[507],{"type":71,"value":508},"#336",{"type":71,"value":255},{"type":66,"tag":67,"props":511,"children":512},{},[513],{"type":66,"tag":128,"props":514,"children":517},{"href":515,"rel":516},"https://github.com/nuxt-community/supabase-module/compare/v1.2.2...v1.3.1",[132],[518],{"type":71,"value":154},{"title":59,"searchDepth":78,"depth":78,"links":520},[521],{"id":100,"depth":78,"text":103,"children":522},[523,524],{"id":330,"depth":160,"text":333},{"id":478,"depth":160,"text":481},"https://github.com/nuxt-modules/supabase/releases/tag/v1.3.1","https://api.github.com/repos/nuxt-modules/supabase/tarball/v1.3.1","https://api.github.com/repos/nuxt-modules/supabase/zipball/v1.3.1",{"url":529,"total_count":78,"+1":294,"-1":294,"laugh":294,"hooray":294,"confused":294,"heart":78,"rocket":294,"eyes":294},"https://api.github.com/repos/nuxt-modules/supabase/releases/164152561/reactions",{"name":166,"url":167,"avatar":168},"github:v1.3.1.md",{"name":533,"tag_name":533,"date":534,"body":535,"v":161,"url":580,"tarball":581,"zipball":582,"prerelease":60,"reactions":583,"author":586,"title":59,"description":59,"_type":80,"_id":587},"v1.2.2","2024-05-02T15:33:41Z",{"type":63,"children":536,"toc":575},[537,541,545,566],{"type":66,"tag":98,"props":538,"children":539},{"id":100},[540],{"type":71,"value":103},{"type":66,"tag":105,"props":542,"children":543},{"id":107},[544],{"type":71,"value":110},{"type":66,"tag":112,"props":546,"children":547},{},[548],{"type":66,"tag":116,"props":549,"children":550},{},[551,556,558,565],{"type":66,"tag":120,"props":552,"children":553},{},[554],{"type":71,"value":555},"serverSupabaseSession:",{"type":71,"value":557}," export service (",{"type":66,"tag":128,"props":559,"children":562},{"href":560,"rel":561},"https://github.com/nuxt-community/supabase-module/commit/9cfeb8726d562c5aac6fe1efa7dd1664bc39ed66",[132],[563],{"type":71,"value":564},"9cfeb87",{"type":71,"value":255},{"type":66,"tag":67,"props":567,"children":568},{},[569],{"type":66,"tag":128,"props":570,"children":573},{"href":571,"rel":572},"https://github.com/nuxt-community/supabase-module/compare/v1.2.1...v1.2.2",[132],[574],{"type":71,"value":154},{"title":59,"searchDepth":78,"depth":78,"links":576},[577],{"id":100,"depth":78,"text":103,"children":578},[579],{"id":107,"depth":160,"text":110},"https://github.com/nuxt-modules/supabase/releases/tag/v1.2.2","https://api.github.com/repos/nuxt-modules/supabase/tarball/v1.2.2","https://api.github.com/repos/nuxt-modules/supabase/zipball/v1.2.2",{"url":584,"total_count":585,"+1":294,"-1":294,"laugh":294,"hooray":161,"confused":294,"heart":78,"rocket":294,"eyes":161},"https://api.github.com/repos/nuxt-modules/supabase/releases/153851448/reactions",4,{"name":166,"url":167,"avatar":168},"github:v1.2.2.md",{"name":589,"tag_name":589,"date":590,"body":591,"v":161,"url":680,"tarball":681,"zipball":682,"prerelease":60,"reactions":683,"author":686,"title":59,"description":59,"_type":80,"_id":687},"v1.2.1","2024-04-18T08:32:42Z",{"type":63,"children":592,"toc":673},[593,597,603,627,633,647,653,664],{"type":66,"tag":98,"props":594,"children":595},{"id":100},[596],{"type":71,"value":103},{"type":66,"tag":105,"props":598,"children":600},{"id":599},"improvements",[601],{"type":71,"value":602},"Improvements",{"type":66,"tag":67,"props":604,"children":605},{},[606,608,618,620],{"type":71,"value":607},"Performance improvements by ",{"type":66,"tag":128,"props":609,"children":612},{"href":610,"rel":611},"https://github.com/vinceglb",[132],[613],{"type":66,"tag":120,"props":614,"children":615},{},[616],{"type":71,"value":617},"@vinceglb",{"type":71,"value":619}," in ",{"type":66,"tag":128,"props":621,"children":624},{"href":622,"rel":623},"https://github.com/nuxt-modules/supabase/issues/352",[132],[625],{"type":71,"value":626},"#352",{"type":66,"tag":105,"props":628,"children":630},{"id":629},"chore",[631],{"type":71,"value":632},"Chore",{"type":66,"tag":67,"props":634,"children":635},{},[636,638,645],{"type":71,"value":637},"Move to eslint v9 using ",{"type":66,"tag":128,"props":639,"children":642},{"href":640,"rel":641},"https://eslint.nuxt.com",[132],[643],{"type":71,"value":644},"@nuxt/eslint",{"type":71,"value":646}," package",{"type":66,"tag":105,"props":648,"children":650},{"id":649},"thanks-for-the-help-from",[651],{"type":71,"value":652},"💚 Thanks for the help from:",{"type":66,"tag":67,"props":654,"children":655},{},[656],{"type":66,"tag":128,"props":657,"children":659},{"href":610,"rel":658},[132],[660],{"type":66,"tag":120,"props":661,"children":662},{},[663],{"type":71,"value":617},{"type":66,"tag":67,"props":665,"children":666},{},[667],{"type":66,"tag":128,"props":668,"children":671},{"href":669,"rel":670},"https://github.com/nuxt-community/supabase-module/compare/v1.2.0...v1.2.1",[132],[672],{"type":71,"value":154},{"title":59,"searchDepth":78,"depth":78,"links":674},[675],{"id":100,"depth":78,"text":103,"children":676},[677,678,679],{"id":599,"depth":160,"text":602},{"id":629,"depth":160,"text":632},{"id":649,"depth":160,"text":652},"https://github.com/nuxt-modules/supabase/releases/tag/v1.2.1","https://api.github.com/repos/nuxt-modules/supabase/tarball/v1.2.1","https://api.github.com/repos/nuxt-modules/supabase/zipball/v1.2.1",{"url":684,"total_count":685,"+1":294,"-1":294,"laugh":294,"hooray":78,"confused":294,"heart":160,"rocket":294,"eyes":294},"https://api.github.com/repos/nuxt-modules/supabase/releases/151694236/reactions",5,{"name":166,"url":167,"avatar":168},"github:v1.2.1.md",{"name":689,"tag_name":689,"date":690,"body":691,"v":161,"url":781,"tarball":782,"zipball":783,"prerelease":60,"author":784,"title":59,"description":59,"_type":80,"_id":785},"v1.2.0","2024-03-29T09:33:20Z",{"type":63,"children":692,"toc":776},[693,697,703,748,767],{"type":66,"tag":98,"props":694,"children":695},{"id":100},[696],{"type":71,"value":103},{"type":66,"tag":105,"props":698,"children":700},{"id":699},"minor-version-since-we-have-a-new-composable",[701],{"type":71,"value":702},"Minor version since we have a new composable 🎉",{"type":66,"tag":67,"props":704,"children":705},{},[706,712,714,720,722,729,731,738,740,747],{"type":66,"tag":128,"props":707,"children":710},{"href":708,"rel":709},"https://supabase.nuxtjs.org/usage/composables/usesupabasesession",[132],[711],{"type":71,"value":24},{"type":71,"value":713}," and ",{"type":66,"tag":128,"props":715,"children":718},{"href":716,"rel":717},"https://supabase.nuxtjs.org/usage/services/serversupabasesession",[132],[719],{"type":71,"value":40},{"type":71,"value":721}," are now available to fetch your session client and server side (",{"type":66,"tag":128,"props":723,"children":726},{"href":724,"rel":725},"https://github.com/nuxt-community/supabase-module/issues/338",[132],[727],{"type":71,"value":728},"#338",{"type":71,"value":730},") (",{"type":66,"tag":128,"props":732,"children":735},{"href":733,"rel":734},"https://github.com/nuxt-community/supabase-module/commit/07eb081d532510da4152554c7010c79ed6008559",[132],[736],{"type":71,"value":737},"07eb081",{"type":71,"value":739}," & ",{"type":66,"tag":128,"props":741,"children":744},{"href":742,"rel":743},"https://github.com/nuxt-community/supabase-module/commit/9dee37ee030506fc7888dfbb6cc1f29b9126a728",[132],[745],{"type":71,"value":746},"9dee37e",{"type":71,"value":255},{"type":66,"tag":749,"props":750,"children":752},"h4",{"id":751},"thanks-joeychilson-for-this-feature",[753,755,765],{"type":71,"value":754},"Thanks ",{"type":66,"tag":128,"props":756,"children":759},{"href":757,"rel":758},"https://github.com/joeychilson",[132],[760],{"type":66,"tag":120,"props":761,"children":762},{},[763],{"type":71,"value":764},"@joeychilson",{"type":71,"value":766}," for this feature 🙏",{"type":66,"tag":67,"props":768,"children":769},{},[770],{"type":66,"tag":128,"props":771,"children":774},{"href":772,"rel":773},"https://github.com/nuxt-community/supabase-module/compare/v1.1.7...v1.2.0",[132],[775],{"type":71,"value":154},{"title":59,"searchDepth":78,"depth":78,"links":777},[778],{"id":100,"depth":78,"text":103,"children":779},[780],{"id":699,"depth":160,"text":702},"https://github.com/nuxt-modules/supabase/releases/tag/v1.2.0","https://api.github.com/repos/nuxt-modules/supabase/tarball/v1.2.0","https://api.github.com/repos/nuxt-modules/supabase/zipball/v1.2.0",{"name":166,"url":167,"avatar":168},"github:v1.2.0.md",{"name":787,"tag_name":787,"date":788,"body":789,"v":161,"url":883,"tarball":884,"zipball":885,"prerelease":60,"reactions":886,"author":888,"title":59,"description":59,"_type":80,"_id":889},"v1.1.7","2024-03-07T09:33:03Z",{"type":63,"children":790,"toc":877},[791,795,799,850,855,868],{"type":66,"tag":98,"props":792,"children":793},{"id":100},[794],{"type":71,"value":103},{"type":66,"tag":105,"props":796,"children":797},{"id":258},[798],{"type":71,"value":261},{"type":66,"tag":112,"props":800,"children":801},{},[802],{"type":66,"tag":116,"props":803,"children":804},{},[805,810,812,818,820,826,827,833,834,841,843],{"type":66,"tag":120,"props":806,"children":807},{},[808],{"type":71,"value":809},"auth-middleware:",{"type":71,"value":811}," add ",{"type":66,"tag":312,"props":813,"children":815},{"className":814},[],[816],{"type":71,"value":817},"include",{"type":71,"value":819}," to ",{"type":66,"tag":312,"props":821,"children":823},{"className":822},[],[824],{"type":71,"value":825},"RedirectOptions",{"type":71,"value":501},{"type":66,"tag":128,"props":828,"children":831},{"href":829,"rel":830},"https://github.com/nuxt-community/supabase-module/issues/336",[132],[832],{"type":71,"value":508},{"type":71,"value":730},{"type":66,"tag":128,"props":835,"children":838},{"href":836,"rel":837},"https://github.com/nuxt-community/supabase-module/commit/f9aad558da8171af1c442a60915c979eb10b8fab",[132],[839],{"type":71,"value":840},"f9aad55",{"type":71,"value":842},"), closes ",{"type":66,"tag":128,"props":844,"children":847},{"href":845,"rel":846},"https://github.com/nuxt-community/supabase-module/issues/268",[132],[848],{"type":71,"value":849},"#268",{"type":66,"tag":105,"props":851,"children":852},{"id":649},[853],{"type":71,"value":854},"💚 Thanks for the help from",{"type":66,"tag":67,"props":856,"children":857},{},[858],{"type":66,"tag":128,"props":859,"children":862},{"href":860,"rel":861},"https://github.com/jojomatik",[132],[863],{"type":66,"tag":120,"props":864,"children":865},{},[866],{"type":71,"value":867},"@jojomatik",{"type":66,"tag":67,"props":869,"children":870},{},[871],{"type":66,"tag":128,"props":872,"children":875},{"href":873,"rel":874},"https://github.com/nuxt-community/supabase-module/compare/v1.1.6...v1.1.7",[132],[876],{"type":71,"value":154},{"title":59,"searchDepth":78,"depth":78,"links":878},[879],{"id":100,"depth":78,"text":103,"children":880},[881,882],{"id":258,"depth":160,"text":261},{"id":649,"depth":160,"text":854},"https://github.com/nuxt-modules/supabase/releases/tag/v1.1.7","https://api.github.com/repos/nuxt-modules/supabase/tarball/v1.1.7","https://api.github.com/repos/nuxt-modules/supabase/zipball/v1.1.7",{"url":887,"total_count":161,"+1":294,"-1":294,"laugh":294,"hooray":161,"confused":294,"heart":294,"rocket":294,"eyes":294},"https://api.github.com/repos/nuxt-modules/supabase/releases/145217172/reactions",{"name":166,"url":167,"avatar":168},"github:v1.1.7.md",{"name":891,"tag_name":891,"date":892,"body":893,"v":161,"url":1008,"tarball":1009,"zipball":1010,"prerelease":60,"reactions":1011,"author":1013,"title":59,"description":59,"_type":80,"_id":1014},"v1.1.6","2024-01-26T15:22:23Z",{"type":63,"children":894,"toc":1001},[895,899,903,942,946,975,979,992],{"type":66,"tag":98,"props":896,"children":897},{"id":100},[898],{"type":71,"value":103},{"type":66,"tag":105,"props":900,"children":901},{"id":107},[902],{"type":71,"value":110},{"type":66,"tag":112,"props":904,"children":905},{},[906,924],{"type":66,"tag":116,"props":907,"children":908},{},[909,914,916,923],{"type":66,"tag":120,"props":910,"children":911},{},[912],{"type":71,"value":913},"deps:",{"type":71,"value":915}," set resolution (",{"type":66,"tag":128,"props":917,"children":920},{"href":918,"rel":919},"https://github.com/nuxt-community/supabase-module/commit/db8c102fb9d69395528eece3e1e0552a16e673da",[132],[921],{"type":71,"value":922},"db8c102",{"type":71,"value":255},{"type":66,"tag":116,"props":925,"children":926},{},[927,932,934,941],{"type":66,"tag":120,"props":928,"children":929},{},[930],{"type":71,"value":931},"playground:",{"type":71,"value":933}," watch on confirm page (",{"type":66,"tag":128,"props":935,"children":938},{"href":936,"rel":937},"https://github.com/nuxt-community/supabase-module/commit/0caf5c11d632df6b7e74e5e8973ee56a38b1c968",[132],[939],{"type":71,"value":940},"0caf5c1",{"type":71,"value":255},{"type":66,"tag":105,"props":943,"children":944},{"id":258},[945],{"type":71,"value":261},{"type":66,"tag":112,"props":947,"children":948},{},[949],{"type":66,"tag":116,"props":950,"children":951},{},[952,957,959,966,967,974],{"type":66,"tag":120,"props":953,"children":954},{},[955],{"type":71,"value":956},"app:",{"type":71,"value":958}," added redirect path cookie for use after signin (",{"type":66,"tag":128,"props":960,"children":963},{"href":961,"rel":962},"https://github.com/nuxt-community/supabase-module/issues/327",[132],[964],{"type":71,"value":965},"#327",{"type":71,"value":730},{"type":66,"tag":128,"props":968,"children":971},{"href":969,"rel":970},"https://github.com/nuxt-community/supabase-module/commit/1b78a050fdc6da155434e261823b029f9dce2d40",[132],[972],{"type":71,"value":973},"1b78a05",{"type":71,"value":255},{"type":66,"tag":105,"props":976,"children":977},{"id":649},[978],{"type":71,"value":854},{"type":66,"tag":67,"props":980,"children":981},{},[982],{"type":66,"tag":128,"props":983,"children":986},{"href":984,"rel":985},"https://github.com/Matthewenderle",[132],[987],{"type":66,"tag":120,"props":988,"children":989},{},[990],{"type":71,"value":991},"@Matthewenderle",{"type":66,"tag":67,"props":993,"children":994},{},[995],{"type":66,"tag":128,"props":996,"children":999},{"href":997,"rel":998},"https://github.com/nuxt-community/supabase-module/compare/v1.1.5...v1.1.6",[132],[1000],{"type":71,"value":154},{"title":59,"searchDepth":78,"depth":78,"links":1002},[1003],{"id":100,"depth":78,"text":103,"children":1004},[1005,1006,1007],{"id":107,"depth":160,"text":110},{"id":258,"depth":160,"text":261},{"id":649,"depth":160,"text":854},"https://github.com/nuxt-modules/supabase/releases/tag/v1.1.6","https://api.github.com/repos/nuxt-modules/supabase/tarball/v1.1.6","https://api.github.com/repos/nuxt-modules/supabase/zipball/v1.1.6",{"url":1012,"total_count":160,"+1":294,"-1":294,"laugh":294,"hooray":294,"confused":294,"heart":160,"rocket":294,"eyes":294},"https://api.github.com/repos/nuxt-modules/supabase/releases/138681536/reactions",{"name":166,"url":167,"avatar":168},"github:v1.1.6.md",{"name":1016,"tag_name":1016,"date":1017,"body":1018,"v":161,"url":1183,"tarball":1184,"zipball":1185,"prerelease":60,"reactions":1186,"author":1188,"title":59,"description":59,"_type":80,"_id":1189},"v1.1.5","2023-12-28T14:29:18Z",{"type":63,"children":1019,"toc":1175},[1020,1024,1028,1049,1053,1072,1078,1115,1119,1166],{"type":66,"tag":98,"props":1021,"children":1022},{"id":100},[1023],{"type":71,"value":103},{"type":66,"tag":105,"props":1025,"children":1026},{"id":107},[1027],{"type":71,"value":110},{"type":66,"tag":112,"props":1029,"children":1030},{},[1031],{"type":66,"tag":116,"props":1032,"children":1033},{},[1034,1039,1041,1048],{"type":66,"tag":120,"props":1035,"children":1036},{},[1037],{"type":71,"value":1038},"server:",{"type":71,"value":1040}," fetch user from session (",{"type":66,"tag":128,"props":1042,"children":1045},{"href":1043,"rel":1044},"https://github.com/nuxt-community/supabase-module/commit/7a3b73c36cc9aea10100a0ff37b0e0e7ecefe2a8",[132],[1046],{"type":71,"value":1047},"7a3b73c",{"type":71,"value":255},{"type":66,"tag":105,"props":1050,"children":1051},{"id":599},[1052],{"type":71,"value":602},{"type":66,"tag":112,"props":1054,"children":1055},{},[1056],{"type":66,"tag":116,"props":1057,"children":1058},{},[1059,1063,1065],{"type":66,"tag":120,"props":1060,"children":1061},{},[1062],{"type":71,"value":956},{"type":71,"value":1064}," use module-builder stub mode for more accurate types ",{"type":66,"tag":128,"props":1066,"children":1069},{"href":1067,"rel":1068},"https://github.com/nuxt-modules/supabase/issues/315",[132],[1070],{"type":71,"value":1071},"#315",{"type":66,"tag":105,"props":1073,"children":1075},{"id":1074},"docs",[1076],{"type":71,"value":1077},"Docs",{"type":66,"tag":112,"props":1079,"children":1080},{},[1081,1098],{"type":66,"tag":116,"props":1082,"children":1083},{},[1084,1089,1091],{"type":66,"tag":120,"props":1085,"children":1086},{},[1087],{"type":71,"value":1088},"get-started:",{"type":71,"value":1090}," bun command ",{"type":66,"tag":128,"props":1092,"children":1095},{"href":1093,"rel":1094},"https://github.com/nuxt-modules/supabase/issues/317",[132],[1096],{"type":71,"value":1097},"#317",{"type":66,"tag":116,"props":1099,"children":1100},{},[1101,1106,1108],{"type":66,"tag":120,"props":1102,"children":1103},{},[1104],{"type":71,"value":1105},"readme:",{"type":71,"value":1107}," typo in #dev section ",{"type":66,"tag":128,"props":1109,"children":1112},{"href":1110,"rel":1111},"https://github.com/nuxt-modules/supabase/issues/316",[132],[1113],{"type":71,"value":1114},"#316",{"type":66,"tag":105,"props":1116,"children":1117},{"id":649},[1118],{"type":71,"value":854},{"type":66,"tag":67,"props":1120,"children":1121},{},[1122,1132,1134,1144,1145,1155,1156],{"type":66,"tag":128,"props":1123,"children":1126},{"href":1124,"rel":1125},"https://github.com/danielroe",[132],[1127],{"type":66,"tag":120,"props":1128,"children":1129},{},[1130],{"type":71,"value":1131},"@danielroe",{"type":71,"value":1133},"\r\n",{"type":66,"tag":128,"props":1135,"children":1138},{"href":1136,"rel":1137},"https://github.com/joshuabyler",[132],[1139],{"type":66,"tag":120,"props":1140,"children":1141},{},[1142],{"type":71,"value":1143},"@joshuabyler",{"type":71,"value":1133},{"type":66,"tag":128,"props":1146,"children":1149},{"href":1147,"rel":1148},"https://github.com/hafizjavaid",[132],[1150],{"type":66,"tag":120,"props":1151,"children":1152},{},[1153],{"type":71,"value":1154},"@hafizjavaid",{"type":71,"value":1133},{"type":66,"tag":128,"props":1157,"children":1160},{"href":1158,"rel":1159},"https://github.com/relisora",[132],[1161],{"type":66,"tag":120,"props":1162,"children":1163},{},[1164],{"type":71,"value":1165},"@relisora",{"type":66,"tag":67,"props":1167,"children":1168},{},[1169],{"type":66,"tag":128,"props":1170,"children":1173},{"href":1171,"rel":1172},"https://github.com/nuxt-community/supabase-module/compare/v1.1.4...v1.1.5",[132],[1174],{"type":71,"value":154},{"title":59,"searchDepth":78,"depth":78,"links":1176},[1177],{"id":100,"depth":78,"text":103,"children":1178},[1179,1180,1181,1182],{"id":107,"depth":160,"text":110},{"id":599,"depth":160,"text":602},{"id":1074,"depth":160,"text":1077},{"id":649,"depth":160,"text":854},"https://github.com/nuxt-modules/supabase/releases/tag/v1.1.5","https://api.github.com/repos/nuxt-modules/supabase/tarball/v1.1.5","https://api.github.com/repos/nuxt-modules/supabase/zipball/v1.1.5",{"url":1187,"total_count":585,"+1":160,"-1":294,"laugh":294,"hooray":294,"confused":294,"heart":161,"rocket":294,"eyes":294},"https://api.github.com/repos/nuxt-modules/supabase/releases/135279818/reactions",{"name":166,"url":167,"avatar":168},"github:v1.1.5.md",{"name":1191,"tag_name":1191,"date":1192,"body":1193,"v":161,"url":1252,"tarball":1253,"zipball":1254,"prerelease":60,"reactions":1255,"author":1257,"title":59,"description":59,"_type":80,"_id":1258},"v1.1.4","2023-11-17T14:42:47Z",{"type":63,"children":1194,"toc":1247},[1195,1199,1203,1232],{"type":66,"tag":98,"props":1196,"children":1197},{"id":100},[1198],{"type":71,"value":103},{"type":66,"tag":105,"props":1200,"children":1201},{"id":107},[1202],{"type":71,"value":110},{"type":66,"tag":112,"props":1204,"children":1205},{},[1206],{"type":66,"tag":116,"props":1207,"children":1208},{},[1209,1214,1216,1223,1224,1231],{"type":66,"tag":120,"props":1210,"children":1211},{},[1212],{"type":71,"value":1213},"client:",{"type":71,"value":1215}," prevent useCookie usage outside of effect scope (",{"type":66,"tag":128,"props":1217,"children":1220},{"href":1218,"rel":1219},"https://github.com/nuxt-community/supabase-module/issues/309",[132],[1221],{"type":71,"value":1222},"#309",{"type":71,"value":730},{"type":66,"tag":128,"props":1225,"children":1228},{"href":1226,"rel":1227},"https://github.com/nuxt-community/supabase-module/commit/bb55bed870efb68c39f255ddbcbe0b5446965399",[132],[1229],{"type":71,"value":1230},"bb55bed",{"type":71,"value":255},{"type":66,"tag":67,"props":1233,"children":1234},{},[1235,1237],{"type":71,"value":1236},"💚 Thanks for the help from 💚\r\n",{"type":66,"tag":128,"props":1238,"children":1241},{"href":1239,"rel":1240},"https://github.com/AlbertBrand",[132],[1242],{"type":66,"tag":120,"props":1243,"children":1244},{},[1245],{"type":71,"value":1246},"@AlbertBrand",{"title":59,"searchDepth":78,"depth":78,"links":1248},[1249],{"id":100,"depth":78,"text":103,"children":1250},[1251],{"id":107,"depth":160,"text":110},"https://github.com/nuxt-modules/supabase/releases/tag/v1.1.4","https://api.github.com/repos/nuxt-modules/supabase/tarball/v1.1.4","https://api.github.com/repos/nuxt-modules/supabase/zipball/v1.1.4",{"url":1256,"total_count":161,"+1":161,"-1":294,"laugh":294,"hooray":294,"confused":294,"heart":294,"rocket":294,"eyes":294},"https://api.github.com/repos/nuxt-modules/supabase/releases/129966845/reactions",{"name":166,"url":167,"avatar":168},"github:v1.1.4.md",{"name":1260,"tag_name":1260,"date":1261,"body":1262,"v":161,"url":1358,"tarball":1359,"zipball":1360,"prerelease":60,"reactions":1361,"author":1363,"title":59,"description":59,"_type":80,"_id":1364},"v1.1.3","2023-10-06T07:51:37Z",{"type":63,"children":1263,"toc":1355},[1264,1268,1330],{"type":66,"tag":98,"props":1265,"children":1266},{"id":100},[1267],{"type":71,"value":103},{"type":66,"tag":112,"props":1269,"children":1270},{},[1271,1304],{"type":66,"tag":116,"props":1272,"children":1273},{},[1274,1278,1280,1287,1288,1295,1296,1303],{"type":66,"tag":120,"props":1275,"children":1276},{},[1277],{"type":71,"value":1213},{"type":71,"value":1279}," clientOptions merge",{"type":66,"tag":128,"props":1281,"children":1284},{"href":1282,"rel":1283},"https://github.com/nuxt-community/supabase-module/issues/275",[132],[1285],{"type":71,"value":1286},"#275",{"type":71,"value":501},{"type":66,"tag":128,"props":1289,"children":1292},{"href":1290,"rel":1291},"https://github.com/nuxt-community/supabase-module/issues/277",[132],[1293],{"type":71,"value":1294},"#277",{"type":71,"value":730},{"type":66,"tag":128,"props":1297,"children":1300},{"href":1298,"rel":1299},"https://github.com/nuxt-community/supabase-module/commit/c0097a355b859cb6a2d97884a7648284128acca2",[132],[1301],{"type":71,"value":1302},"c0097a3",{"type":71,"value":255},{"type":66,"tag":116,"props":1305,"children":1306},{},[1307,1312,1314,1321,1322,1329],{"type":66,"tag":120,"props":1308,"children":1309},{},[1310],{"type":71,"value":1311},"module:",{"type":71,"value":1313}," do not warn when using runtimeConfig to set url and key (",{"type":66,"tag":128,"props":1315,"children":1318},{"href":1316,"rel":1317},"https://github.com/nuxt-community/supabase-module/issues/281",[132],[1319],{"type":71,"value":1320},"#281",{"type":71,"value":730},{"type":66,"tag":128,"props":1323,"children":1326},{"href":1324,"rel":1325},"https://github.com/nuxt-community/supabase-module/commit/8c151737b55738c68fc24b5e4db2517c4e866693",[132],[1327],{"type":71,"value":1328},"8c15173",{"type":71,"value":255},{"type":66,"tag":67,"props":1331,"children":1332},{},[1333,1334,1344,1345],{"type":71,"value":1236},{"type":66,"tag":128,"props":1335,"children":1338},{"href":1336,"rel":1337},"https://github.com/stafyniaksacha",[132],[1339],{"type":66,"tag":120,"props":1340,"children":1341},{},[1342],{"type":71,"value":1343},"@stafyniaksacha",{"type":71,"value":1133},{"type":66,"tag":128,"props":1346,"children":1349},{"href":1347,"rel":1348},"https://github.com/jonesisg1",[132],[1350],{"type":66,"tag":120,"props":1351,"children":1352},{},[1353],{"type":71,"value":1354},"@jonesisg1",{"title":59,"searchDepth":78,"depth":78,"links":1356},[1357],{"id":100,"depth":78,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v1.1.3","https://api.github.com/repos/nuxt-modules/supabase/tarball/v1.1.3","https://api.github.com/repos/nuxt-modules/supabase/zipball/v1.1.3",{"url":1362,"total_count":585,"+1":78,"-1":294,"laugh":294,"hooray":78,"confused":294,"heart":294,"rocket":294,"eyes":294},"https://api.github.com/repos/nuxt-modules/supabase/releases/123992311/reactions",{"name":166,"url":167,"avatar":168},"github:v1.1.3.md",{"name":1366,"tag_name":1366,"date":1367,"body":1368,"v":161,"url":1598,"tarball":1599,"zipball":1600,"prerelease":60,"reactions":1601,"author":1603,"title":59,"description":59,"_type":80,"_id":1604},"v1.1.2","2023-09-06T17:44:35Z",{"type":63,"children":1369,"toc":1593},[1370,1374,1396,1439,1443,1521,1537],{"type":66,"tag":98,"props":1371,"children":1372},{"id":100},[1373],{"type":71,"value":103},{"type":66,"tag":67,"props":1375,"children":1376},{},[1377,1379,1386,1388,1394],{"type":71,"value":1378},"⚠️ BREAKING CHANGE ⚠️\r\nBreaking change is related to ",{"type":66,"tag":128,"props":1380,"children":1383},{"href":1381,"rel":1382},"https://github.com/nuxt-modules/supabase/issues/244",[132],[1384],{"type":71,"value":1385},"#244",{"type":71,"value":1387}," and was first adressed in the ",{"type":66,"tag":312,"props":1389,"children":1391},{"className":1390},[],[1392],{"type":71,"value":1393},"v1.1.0",{"type":71,"value":1395}," but patch has been necessary to fix the version.",{"type":66,"tag":67,"props":1397,"children":1398},{},[1399,1401,1407,1409,1415,1417,1423,1425,1431,1433],{"type":71,"value":1400},"On the confirm page, configured in ",{"type":66,"tag":312,"props":1402,"children":1404},{"className":1403},[],[1405],{"type":71,"value":1406},"redirect.callback",{"type":71,"value":1408}," option (default to ",{"type":66,"tag":312,"props":1410,"children":1412},{"className":1411},[],[1413],{"type":71,"value":1414},"/confirm",{"type":71,"value":1416},"), ensure to set the ",{"type":66,"tag":312,"props":1418,"children":1420},{"className":1419},[],[1421],{"type":71,"value":1422},"immediate",{"type":71,"value":1424}," option in the watch.\r\nCheck out the doc: ",{"type":66,"tag":128,"props":1426,"children":1429},{"href":1427,"rel":1428},"http://supabase.nuxtjs.org/authentication#confirm-page-confirm",[132],[1430],{"type":71,"value":1427},{"type":71,"value":1432},"\r\nCheck out the demo code: ",{"type":66,"tag":128,"props":1434,"children":1437},{"href":1435,"rel":1436},"https://github.com/nuxt-modules/supabase/blob/main/demo/pages/confirm.vue",[132],[1438],{"type":71,"value":1435},{"type":66,"tag":105,"props":1440,"children":1441},{"id":107},[1442],{"type":71,"value":110},{"type":66,"tag":112,"props":1444,"children":1445},{},[1446,1471,1495],{"type":66,"tag":116,"props":1447,"children":1448},{},[1449,1453,1455,1462,1463,1470],{"type":66,"tag":120,"props":1450,"children":1451},{},[1452],{"type":71,"value":1311},{"type":71,"value":1454}," priority of redirect options made by defu (",{"type":66,"tag":128,"props":1456,"children":1459},{"href":1457,"rel":1458},"https://github.com/nuxt-community/supabase-module/issues/256",[132],[1460],{"type":71,"value":1461},"#256",{"type":71,"value":730},{"type":66,"tag":128,"props":1464,"children":1467},{"href":1465,"rel":1466},"https://github.com/nuxt-community/supabase-module/commit/c4e30bf50eb7816fee3a2e46b404df5ce9f7cf4d",[132],[1468],{"type":71,"value":1469},"c4e30bf",{"type":71,"value":255},{"type":66,"tag":116,"props":1472,"children":1473},{},[1474,1479,1481,1486,1487,1494],{"type":66,"tag":120,"props":1475,"children":1476},{},[1477],{"type":71,"value":1478},"plugin:",{"type":71,"value":1480}," retrieve user for client only page (",{"type":66,"tag":128,"props":1482,"children":1484},{"href":1381,"rel":1483},[132],[1485],{"type":71,"value":1385},{"type":71,"value":730},{"type":66,"tag":128,"props":1488,"children":1491},{"href":1489,"rel":1490},"https://github.com/nuxt-community/supabase-module/commit/4a35428e26542bf22b3288db6e9a9309f1310705",[132],[1492],{"type":71,"value":1493},"4a35428",{"type":71,"value":255},{"type":66,"tag":116,"props":1496,"children":1497},{},[1498,1503,1505,1512,1513,1520],{"type":66,"tag":120,"props":1499,"children":1500},{},[1501],{"type":71,"value":1502},"useSupabaseUser:",{"type":71,"value":1504}," add explicit user type (",{"type":66,"tag":128,"props":1506,"children":1509},{"href":1507,"rel":1508},"https://github.com/nuxt-community/supabase-module/issues/254",[132],[1510],{"type":71,"value":1511},"#254",{"type":71,"value":730},{"type":66,"tag":128,"props":1514,"children":1517},{"href":1515,"rel":1516},"https://github.com/nuxt-community/supabase-module/commit/60d8551ee83a9c64a962b9f76b881b17d7384736",[132],[1518],{"type":71,"value":1519},"60d8551",{"type":71,"value":255},{"type":66,"tag":67,"props":1522,"children":1523},{},[1524,1529,1531],{"type":66,"tag":120,"props":1525,"children":1526},{},[1527],{"type":71,"value":1528},"Full Changelog",{"type":71,"value":1530},": ",{"type":66,"tag":128,"props":1532,"children":1535},{"href":1533,"rel":1534},"https://github.com/nuxt-community/supabase-module/compare/v1.0.2...v1.1.0",[132],[1536],{"type":71,"value":1533},{"type":66,"tag":67,"props":1538,"children":1539},{},[1540,1541,1551,1552,1562,1563,1571,1572,1582,1583],{"type":71,"value":1236},{"type":66,"tag":128,"props":1542,"children":1545},{"href":1543,"rel":1544},"https://github.com/52cs",[132],[1546],{"type":66,"tag":120,"props":1547,"children":1548},{},[1549],{"type":71,"value":1550},"@52cs",{"type":71,"value":1133},{"type":66,"tag":128,"props":1553,"children":1556},{"href":1554,"rel":1555},"https://github.com/Aietes",[132],[1557],{"type":66,"tag":120,"props":1558,"children":1559},{},[1560],{"type":71,"value":1561},"@Aietes",{"type":71,"value":1133},{"type":66,"tag":128,"props":1564,"children":1566},{"href":1239,"rel":1565},[132],[1567],{"type":66,"tag":120,"props":1568,"children":1569},{},[1570],{"type":71,"value":1246},{"type":71,"value":1133},{"type":66,"tag":128,"props":1573,"children":1576},{"href":1574,"rel":1575},"https://github.com/kiri10ten",[132],[1577],{"type":66,"tag":120,"props":1578,"children":1579},{},[1580],{"type":71,"value":1581},"@kiri10ten",{"type":71,"value":1133},{"type":66,"tag":128,"props":1584,"children":1587},{"href":1585,"rel":1586},"https://github.com/xMorthi",[132],[1588],{"type":66,"tag":120,"props":1589,"children":1590},{},[1591],{"type":71,"value":1592},"@xMorthi",{"title":59,"searchDepth":78,"depth":78,"links":1594},[1595],{"id":100,"depth":78,"text":103,"children":1596},[1597],{"id":107,"depth":160,"text":110},"https://github.com/nuxt-modules/supabase/releases/tag/v1.1.2","https://api.github.com/repos/nuxt-modules/supabase/tarball/v1.1.2","https://api.github.com/repos/nuxt-modules/supabase/zipball/v1.1.2",{"url":1602,"total_count":585,"+1":294,"-1":294,"laugh":294,"hooray":160,"confused":294,"heart":294,"rocket":294,"eyes":161},"https://api.github.com/repos/nuxt-modules/supabase/releases/120162649/reactions",{"name":166,"url":167,"avatar":168},"github:v1.1.2.md",{"name":1606,"tag_name":1606,"date":1607,"body":1608,"v":161,"url":1691,"tarball":1692,"zipball":1693,"prerelease":60,"reactions":1694,"author":1696,"title":59,"description":59,"_type":80,"_id":1697},"v1.0.2","2023-08-04T15:56:13Z",{"type":63,"children":1609,"toc":1688},[1610,1614,1651,1665],{"type":66,"tag":98,"props":1611,"children":1612},{"id":100},[1613],{"type":71,"value":103},{"type":66,"tag":112,"props":1615,"children":1616},{},[1617,1634],{"type":66,"tag":116,"props":1618,"children":1619},{},[1620,1622,1633],{"type":71,"value":1621},"docs(auth): update (",{"type":66,"tag":128,"props":1623,"children":1626},{"href":1624,"rel":1625},"https://github.com/nuxt-modules/supabase/commit/df00ffe8ecc253fc23572b65465ad7928e185b13",[132],[1627],{"type":66,"tag":312,"props":1628,"children":1630},{"className":1629},[],[1631],{"type":71,"value":1632},"df00ffe",{"type":71,"value":255},{"type":66,"tag":116,"props":1635,"children":1636},{},[1637,1639,1650],{"type":71,"value":1638},"fix(client): correct provider_token assignment to cookie (",{"type":66,"tag":128,"props":1640,"children":1643},{"href":1641,"rel":1642},"https://github.com/nuxt-modules/supabase/commit/a76df3f67d6b08daf359f38130ce08aeab57317b",[132],[1644],{"type":66,"tag":312,"props":1645,"children":1647},{"className":1646},[],[1648],{"type":71,"value":1649},"a76df3f",{"type":71,"value":255},{"type":66,"tag":67,"props":1652,"children":1653},{},[1654,1658,1659],{"type":66,"tag":120,"props":1655,"children":1656},{},[1657],{"type":71,"value":1528},{"type":71,"value":1530},{"type":66,"tag":128,"props":1660,"children":1663},{"href":1661,"rel":1662},"https://github.com/nuxt-community/supabase-module/compare/v1.0.1...v1.0.2",[132],[1664],{"type":71,"value":1661},{"type":66,"tag":67,"props":1666,"children":1667},{},[1668,1669,1679,1680],{"type":71,"value":1236},{"type":66,"tag":128,"props":1670,"children":1673},{"href":1671,"rel":1672},"https://github.com/blqke",[132],[1674],{"type":66,"tag":120,"props":1675,"children":1676},{},[1677],{"type":71,"value":1678},"@blqke",{"type":71,"value":1133},{"type":66,"tag":128,"props":1681,"children":1683},{"href":1554,"rel":1682},[132],[1684],{"type":66,"tag":120,"props":1685,"children":1686},{},[1687],{"type":71,"value":1561},{"title":59,"searchDepth":78,"depth":78,"links":1689},[1690],{"id":100,"depth":78,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v1.0.2","https://api.github.com/repos/nuxt-modules/supabase/tarball/v1.0.2","https://api.github.com/repos/nuxt-modules/supabase/zipball/v1.0.2",{"url":1695,"total_count":160,"+1":294,"-1":294,"laugh":294,"hooray":160,"confused":294,"heart":294,"rocket":294,"eyes":294},"https://api.github.com/repos/nuxt-modules/supabase/releases/115135546/reactions",{"name":166,"url":167,"avatar":168},"github:v1.0.2.md",{"name":1699,"tag_name":1699,"date":1700,"body":1701,"v":161,"url":1990,"tarball":1991,"zipball":1992,"prerelease":60,"reactions":1993,"author":1999,"title":59,"description":2000,"_type":80,"_id":2001},"v1.0.1","2023-08-02T15:46:15Z",{"type":63,"children":1702,"toc":1987},[1703,1716,1721,1789,1794,1815,1819,1824,1953,1969,1972],{"type":66,"tag":67,"props":1704,"children":1705},{},[1706,1708,1714],{"type":71,"value":1707},"I am happy to announce the release of version ",{"type":66,"tag":312,"props":1709,"children":1711},{"className":1710},[],[1712],{"type":71,"value":1713},"1.0.0",{"type":71,"value":1715}," of this module. While the module has been production-ready for quite some time, I never had the opportunity to create the first major version until now. Given that this version incorporates significant changes, I believe it is the perfect moment to establish this initial major release.",{"type":66,"tag":98,"props":1717,"children":1718},{"id":100},[1719],{"type":71,"value":1720},"What's changed",{"type":66,"tag":112,"props":1722,"children":1723},{},[1724,1746,1751],{"type":66,"tag":116,"props":1725,"children":1726},{},[1727,1729,1736,1738,1745],{"type":71,"value":1728},"Supabase introduced a new authentication flow (PKCE) a few months ago, which is now the default behavior of the module. However, you can still revert to the old (and less secure) authentication method through the module configuration. To help you seamlessly integrate this new flow, a ",{"type":66,"tag":128,"props":1730,"children":1733},{"href":1731,"rel":1732},"https://supabase.nuxtjs.org/authentication",[132],[1734],{"type":71,"value":1735},"dedicated section",{"type":71,"value":1737}," has been added to the documentation. (",{"type":66,"tag":128,"props":1739,"children":1742},{"href":1740,"rel":1741},"https://github.com/nuxt-modules/supabase/issues/219",[132],[1743],{"type":71,"value":1744},"#219",{"type":71,"value":255},{"type":66,"tag":116,"props":1747,"children":1748},{},[1749],{"type":71,"value":1750},"Building upon the previous point, we have implemented substantial changes to the session management, involving alterations to how Supabase clients are instantiated and how sessions are synchronized between the server and client-side. Consequently, these changes result in some breaking changes, which are listed below.",{"type":66,"tag":116,"props":1752,"children":1753},{},[1754,1756,1763,1765,1772,1774,1781,1783],{"type":71,"value":1755},"A brand new documentation has been built entirely using ",{"type":66,"tag":128,"props":1757,"children":1760},{"href":1758,"rel":1759},"https://nuxt.studio",[132],[1761],{"type":71,"value":1762},"Nuxt Studio",{"type":71,"value":1764},". Feel free to create PRs to suggest fixes or add any necessary changes to further enhance the documentation. (",{"type":66,"tag":128,"props":1766,"children":1769},{"href":1767,"rel":1768},"https://github.com/nuxt-modules/supabase/issues/210",[132],[1770],{"type":71,"value":1771},"#210",{"type":71,"value":1773}," / ",{"type":66,"tag":128,"props":1775,"children":1778},{"href":1776,"rel":1777},"https://github.com/nuxt-modules/supabase/issues/221",[132],[1779],{"type":71,"value":1780},"#221",{"type":71,"value":1782},") => ",{"type":66,"tag":128,"props":1784,"children":1787},{"href":1785,"rel":1786},"https://supabase.nuxtjs.org",[132],[1788],{"type":71,"value":1785},{"type":66,"tag":67,"props":1790,"children":1791},{},[1792],{"type":71,"value":1793},"Here's documentation that can help you understand the PKCE authentication flow:",{"type":66,"tag":112,"props":1795,"children":1796},{},[1797,1806],{"type":66,"tag":116,"props":1798,"children":1799},{},[1800],{"type":66,"tag":128,"props":1801,"children":1804},{"href":1802,"rel":1803},"https://supabase.com/blog/supabase-auth-sso-pkce#server-side-and-mobile-auth",[132],[1805],{"type":71,"value":1802},{"type":66,"tag":116,"props":1807,"children":1808},{},[1809],{"type":66,"tag":128,"props":1810,"children":1813},{"href":1811,"rel":1812},"https://supabase.com/docs/guides/resources/glossary#pkce",[132],[1814],{"type":71,"value":1811},{"type":66,"tag":1816,"props":1817,"children":1818},"br",{},[],{"type":66,"tag":67,"props":1820,"children":1821},{},[1822],{"type":71,"value":1823},"⚠️ BREAKING CHANGES ⚠️",{"type":66,"tag":112,"props":1825,"children":1826},{},[1827,1845,1871,1890,1918],{"type":66,"tag":116,"props":1828,"children":1829},{},[1830,1836,1838,1843],{"type":66,"tag":312,"props":1831,"children":1833},{"className":1832},[],[1834],{"type":71,"value":1835},"useSupabaseAuthClient",{"type":71,"value":1837}," has been removed in favor of ",{"type":66,"tag":312,"props":1839,"children":1841},{"className":1840},[],[1842],{"type":71,"value":21},{"type":71,"value":1844}," in all cases",{"type":66,"tag":116,"props":1846,"children":1847},{},[1848,1853,1855,1861,1863,1869],{"type":66,"tag":312,"props":1849,"children":1851},{"className":1850},[],[1852],{"type":71,"value":34},{"type":71,"value":1854}," is now returning a promise (should be called with ",{"type":66,"tag":312,"props":1856,"children":1858},{"className":1857},[],[1859],{"type":71,"value":1860},"await",{"type":71,"value":1862}," in an ",{"type":66,"tag":312,"props":1864,"children":1866},{"className":1865},[],[1867],{"type":71,"value":1868},"async",{"type":71,"value":1870}," method)",{"type":66,"tag":116,"props":1872,"children":1873},{},[1874,1880,1882,1888],{"type":66,"tag":312,"props":1875,"children":1877},{"className":1876},[],[1878],{"type":71,"value":1879},"redirect",{"type":71,"value":1881}," option is enable by default, follow this ",{"type":66,"tag":128,"props":1883,"children":1885},{"href":1731,"rel":1884},[132],[1886],{"type":71,"value":1887},"guide",{"type":71,"value":1889}," to update your app",{"type":66,"tag":116,"props":1891,"children":1892},{},[1893,1899,1901,1907,1909,1916],{"type":66,"tag":312,"props":1894,"children":1896},{"className":1895},[],[1897],{"type":71,"value":1898},"client",{"type":71,"value":1900}," option becomes ",{"type":66,"tag":312,"props":1902,"children":1904},{"className":1903},[],[1905],{"type":71,"value":1906},"clientOptions",{"type":71,"value":1908}," with new ",{"type":66,"tag":128,"props":1910,"children":1913},{"href":1911,"rel":1912},"https://supabase.nuxtjs.org/get-started#clientoptions",[132],[1914],{"type":71,"value":1915},"default value",{"type":71,"value":1917}," (including the PKCE flow)",{"type":66,"tag":116,"props":1919,"children":1920},{},[1921,1927,1929,1935,1936,1942,1944,1951],{"type":66,"tag":312,"props":1922,"children":1924},{"className":1923},[],[1925],{"type":71,"value":1926},"cookies",{"type":71,"value":1928}," options is split in ",{"type":66,"tag":312,"props":1930,"children":1932},{"className":1931},[],[1933],{"type":71,"value":1934},"cookieName",{"type":71,"value":713},{"type":66,"tag":312,"props":1937,"children":1939},{"className":1938},[],[1940],{"type":71,"value":1941},"cookieOptions",{"type":71,"value":1943},", ",{"type":66,"tag":128,"props":1945,"children":1948},{"href":1946,"rel":1947},"https://supabase.nuxtjs.org/get-started#cookieoptions",[132],[1949],{"type":71,"value":1950},"default values",{"type":71,"value":1952}," have not changed",{"type":66,"tag":67,"props":1954,"children":1955},{},[1956,1958],{"type":71,"value":1957},"Here si the commit done for updating the demo with the last version: ",{"type":66,"tag":128,"props":1959,"children":1962},{"href":1960,"rel":1961},"https://github.com/nuxt-modules/supabase/commit/10e05860862b68c49817f6420d50d082452f7a7f",[132],[1963],{"type":66,"tag":312,"props":1964,"children":1966},{"className":1965},[],[1967],{"type":71,"value":1968},"10e0586",{"type":66,"tag":1816,"props":1970,"children":1971},{},[],{"type":66,"tag":67,"props":1973,"children":1974},{},[1975,1977,1985],{"type":71,"value":1976},"A huge thanks to ",{"type":66,"tag":128,"props":1978,"children":1980},{"href":1554,"rel":1979},[132],[1981],{"type":66,"tag":120,"props":1982,"children":1983},{},[1984],{"type":71,"value":1561},{"type":71,"value":1986}," for initialising all those changes and help me built it 💚",{"title":59,"searchDepth":78,"depth":78,"links":1988},[1989],{"id":100,"depth":78,"text":1720},"https://github.com/nuxt-modules/supabase/releases/tag/v1.0.1","https://api.github.com/repos/nuxt-modules/supabase/tarball/v1.0.1","https://api.github.com/repos/nuxt-modules/supabase/zipball/v1.0.1",{"url":1994,"total_count":1995,"+1":1996,"-1":294,"laugh":294,"hooray":1997,"confused":294,"heart":585,"rocket":1998,"eyes":294},"https://api.github.com/repos/nuxt-modules/supabase/releases/114843996/reactions",40,9,19,8,{"name":166,"url":167,"avatar":168},"I am happy to announce the release of version 1.0.0 of this module. While the module has been production-ready for quite some time, I never had the opportunity to create the first major version until now. Given that this version incorporates significant changes, I believe it is the perfect moment to establish this initial major release.","github:v1.0.1.md",{"name":2003,"tag_name":2003,"date":2004,"body":2005,"v":294,"url":2097,"tarball":2098,"zipball":2099,"prerelease":60,"reactions":2100,"author":2102,"title":59,"description":59,"_type":80,"_id":2103},"v0.3.8","2023-07-03T08:29:53Z",{"type":63,"children":2006,"toc":2094},[2007,2011,2068,2082],{"type":66,"tag":98,"props":2008,"children":2009},{"id":100},[2010],{"type":71,"value":103},{"type":66,"tag":112,"props":2012,"children":2013},{},[2014,2051],{"type":66,"tag":116,"props":2015,"children":2016},{},[2017,2019,2030,2032,2039,2041],{"type":71,"value":2018},"feat(session): save provider access/refresh tokens in cookies (",{"type":66,"tag":128,"props":2020,"children":2023},{"href":2021,"rel":2022},"https://github.com/nuxt-modules/supabase/commit/ea8c21f3d625984832cb27a3ae7605b16caaf94b",[132],[2024],{"type":66,"tag":312,"props":2025,"children":2027},{"className":2026},[],[2028],{"type":71,"value":2029},"ea8c21f",{"type":71,"value":2031},") in ",{"type":66,"tag":128,"props":2033,"children":2036},{"href":2034,"rel":2035},"https://github.com/nuxt-modules/supabase/issues/197",[132],[2037],{"type":71,"value":2038},"#197",{"type":71,"value":2040}," by ",{"type":66,"tag":128,"props":2042,"children":2045},{"href":2043,"rel":2044},"https://github.com/mitjans",[132],[2046],{"type":66,"tag":120,"props":2047,"children":2048},{},[2049],{"type":71,"value":2050},"@mitjans",{"type":66,"tag":116,"props":2052,"children":2053},{},[2054,2056,2067],{"type":71,"value":2055},"chore(deps): upgrade to latest (",{"type":66,"tag":128,"props":2057,"children":2060},{"href":2058,"rel":2059},"https://github.com/nuxt-modules/supabase/commit/a52abc871b6ab756c2b477f7c6b3c0f51279693c",[132],[2061],{"type":66,"tag":312,"props":2062,"children":2064},{"className":2063},[],[2065],{"type":71,"value":2066},"a52abc8",{"type":71,"value":255},{"type":66,"tag":67,"props":2069,"children":2070},{},[2071,2075,2076],{"type":66,"tag":120,"props":2072,"children":2073},{},[2074],{"type":71,"value":1528},{"type":71,"value":1530},{"type":66,"tag":128,"props":2077,"children":2080},{"href":2078,"rel":2079},"https://github.com/nuxt-community/supabase-module/compare/v0.3.7...v0.3.8",[132],[2081],{"type":71,"value":2078},{"type":66,"tag":67,"props":2083,"children":2084},{},[2085,2086],{"type":71,"value":1236},{"type":66,"tag":128,"props":2087,"children":2089},{"href":2043,"rel":2088},[132],[2090],{"type":66,"tag":120,"props":2091,"children":2092},{},[2093],{"type":71,"value":2050},{"title":59,"searchDepth":78,"depth":78,"links":2095},[2096],{"id":100,"depth":78,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v0.3.8","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.3.8","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.3.8",{"url":2101,"total_count":685,"+1":294,"-1":294,"laugh":294,"hooray":685,"confused":294,"heart":294,"rocket":294,"eyes":294},"https://api.github.com/repos/nuxt-modules/supabase/releases/110829614/reactions",{"name":166,"url":167,"avatar":168},"github:v0.3.8.md",{"name":2105,"tag_name":2105,"date":2106,"body":2107,"v":294,"url":2176,"tarball":2177,"zipball":2178,"prerelease":60,"author":2179,"title":59,"description":59,"_type":80,"_id":2180},"v0.3.7","2023-06-12T07:51:13Z",{"type":63,"children":2108,"toc":2173},[2109,2113,2159],{"type":66,"tag":98,"props":2110,"children":2111},{"id":100},[2112],{"type":71,"value":103},{"type":66,"tag":112,"props":2114,"children":2115},{},[2116,2142],{"type":66,"tag":116,"props":2117,"children":2118},{},[2119,2121,2126,2127,2134,2135],{"type":71,"value":2120},"fix(client): fix persist session warning for ",{"type":66,"tag":312,"props":2122,"children":2124},{"className":2123},[],[2125],{"type":71,"value":37},{"type":71,"value":501},{"type":66,"tag":128,"props":2128,"children":2131},{"href":2129,"rel":2130},"https://github.com/nuxt-modules/supabase/issues/194",[132],[2132],{"type":71,"value":2133},"#194",{"type":71,"value":137},{"type":66,"tag":128,"props":2136,"children":2139},{"href":2137,"rel":2138},"https://github.com/nuxt-modules/supabase/issues/193",[132],[2140],{"type":71,"value":2141},"#193",{"type":66,"tag":116,"props":2143,"children":2144},{},[2145,2147,2158],{"type":71,"value":2146},"docs(get-started): remove defineNuxtConfig (",{"type":66,"tag":128,"props":2148,"children":2151},{"href":2149,"rel":2150},"https://github.com/nuxt-modules/supabase/commit/0151901",[132],[2152],{"type":66,"tag":312,"props":2153,"children":2155},{"className":2154},[],[2156],{"type":71,"value":2157},"0151901",{"type":71,"value":255},{"type":66,"tag":67,"props":2160,"children":2161},{},[2162,2163],{"type":71,"value":1236},{"type":66,"tag":128,"props":2164,"children":2167},{"href":2165,"rel":2166},"https://github.com/jawngee",[132],[2168],{"type":66,"tag":120,"props":2169,"children":2170},{},[2171],{"type":71,"value":2172},"@jawngee",{"title":59,"searchDepth":78,"depth":78,"links":2174},[2175],{"id":100,"depth":78,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v0.3.7","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.3.7","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.3.7",{"name":166,"url":167,"avatar":168},"github:v0.3.7.md",{"name":2182,"tag_name":2182,"date":2183,"body":2184,"v":294,"url":2240,"tarball":2241,"zipball":2242,"prerelease":60,"reactions":2243,"author":2245,"title":59,"description":59,"_type":80,"_id":2246},"v0.3.6","2023-06-02T14:33:38Z",{"type":63,"children":2185,"toc":2237},[2186,2190],{"type":66,"tag":98,"props":2187,"children":2188},{"id":100},[2189],{"type":71,"value":103},{"type":66,"tag":112,"props":2191,"children":2192},{},[2193,2198,2224],{"type":66,"tag":116,"props":2194,"children":2195},{},[2196],{"type":71,"value":2197},"chore(deps): upgrade to nuxt and supabase latest version",{"type":66,"tag":116,"props":2199,"children":2200},{},[2201,2203,2214,2216,2223],{"type":71,"value":2202},"fix(client): remove persist session warning on server side in ",{"type":66,"tag":128,"props":2204,"children":2207},{"href":2205,"rel":2206},"https://github.com/nuxt-modules/supabase/commit/227113f68fb8723f9687adfa12150f825940e0c9",[132],[2208],{"type":66,"tag":312,"props":2209,"children":2211},{"className":2210},[],[2212],{"type":71,"value":2213},"227113f",{"type":71,"value":2215}," (Resolves ",{"type":66,"tag":128,"props":2217,"children":2220},{"href":2218,"rel":2219},"https://github.com/nuxt-modules/supabase/issues/188",[132],[2221],{"type":71,"value":2222},"#188",{"type":71,"value":255},{"type":66,"tag":116,"props":2225,"children":2226},{},[2227,2229,2236],{"type":71,"value":2228},"fix(chore): resolve imports (Resolves ",{"type":66,"tag":128,"props":2230,"children":2233},{"href":2231,"rel":2232},"https://github.com/nuxt-modules/supabase/issues/190",[132],[2234],{"type":71,"value":2235},"#190",{"type":71,"value":255},{"title":59,"searchDepth":78,"depth":78,"links":2238},[2239],{"id":100,"depth":78,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v0.3.6","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.3.6","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.3.6",{"url":2244,"total_count":685,"+1":161,"-1":294,"laugh":294,"hooray":585,"confused":294,"heart":294,"rocket":294,"eyes":294},"https://api.github.com/repos/nuxt-modules/supabase/releases/105847469/reactions",{"name":166,"url":167,"avatar":168},"github:v0.3.6.md",{"name":2248,"tag_name":2248,"date":2249,"body":2250,"v":294,"url":2539,"tarball":2540,"zipball":2541,"prerelease":60,"reactions":2542,"author":2544,"title":59,"description":59,"_type":80,"_id":2545},"v0.3.5","2023-04-03T09:50:57Z",{"type":63,"children":2251,"toc":2536},[2252,2256,2485,2499],{"type":66,"tag":98,"props":2253,"children":2254},{"id":100},[2255],{"type":71,"value":103},{"type":66,"tag":112,"props":2257,"children":2258},{},[2259,2276,2293,2310,2327,2344,2361,2378,2395,2412,2444,2461],{"type":66,"tag":116,"props":2260,"children":2261},{},[2262,2264,2275],{"type":71,"value":2263},"chore(demo): upgrade on last version (",{"type":66,"tag":128,"props":2265,"children":2268},{"href":2266,"rel":2267},"https://github.com/nuxt-modules/supabase/commit/9bb9e2856823a0bb86c07ae7775462e02a1e430d",[132],[2269],{"type":66,"tag":312,"props":2270,"children":2272},{"className":2271},[],[2273],{"type":71,"value":2274},"9bb9e28",{"type":71,"value":255},{"type":66,"tag":116,"props":2277,"children":2278},{},[2279,2281,2292],{"type":71,"value":2280},"chore(demo): generate database types from supabase cli (",{"type":66,"tag":128,"props":2282,"children":2285},{"href":2283,"rel":2284},"https://github.com/nuxt-modules/supabase/commit/bca199292dfeb23d5e0581ab40a6994fed3d1157",[132],[2286],{"type":66,"tag":312,"props":2287,"children":2289},{"className":2288},[],[2290],{"type":71,"value":2291},"bca1992",{"type":71,"value":255},{"type":66,"tag":116,"props":2294,"children":2295},{},[2296,2298,2309],{"type":71,"value":2297},"docs(links): update nuxt & supabase links and fix typos (",{"type":66,"tag":128,"props":2299,"children":2302},{"href":2300,"rel":2301},"https://github.com/nuxt-modules/supabase/commit/5699dc6c22f9182e9593936fc1260fc785eea450",[132],[2303],{"type":66,"tag":312,"props":2304,"children":2306},{"className":2305},[],[2307],{"type":71,"value":2308},"5699dc6",{"type":71,"value":255},{"type":66,"tag":116,"props":2311,"children":2312},{},[2313,2315,2326],{"type":71,"value":2314},"chore(app): move to pnpm (",{"type":66,"tag":128,"props":2316,"children":2319},{"href":2317,"rel":2318},"https://github.com/nuxt-modules/supabase/commit/94f7e130747801584d2b0999bd2f5f904e575082",[132],[2320],{"type":66,"tag":312,"props":2321,"children":2323},{"className":2322},[],[2324],{"type":71,"value":2325},"94f7e13",{"type":71,"value":255},{"type":66,"tag":116,"props":2328,"children":2329},{},[2330,2332,2343],{"type":71,"value":2331},"chore(module): conditionally add redirect plugin (",{"type":66,"tag":128,"props":2333,"children":2336},{"href":2334,"rel":2335},"https://github.com/nuxt-modules/supabase/commit/0cad0a557934f669f2ab424ef072f6b07c098646",[132],[2337],{"type":66,"tag":312,"props":2338,"children":2340},{"className":2339},[],[2341],{"type":71,"value":2342},"0cad0a5",{"type":71,"value":255},{"type":66,"tag":116,"props":2345,"children":2346},{},[2347,2349,2360],{"type":71,"value":2348},"docs(get-started): fix typos (",{"type":66,"tag":128,"props":2350,"children":2353},{"href":2351,"rel":2352},"https://github.com/nuxt-modules/supabase/commit/ba437a8534f3dcda53f805cc34b5d6a943297354",[132],[2354],{"type":66,"tag":312,"props":2355,"children":2357},{"className":2356},[],[2358],{"type":71,"value":2359},"ba437a8",{"type":71,"value":255},{"type":66,"tag":116,"props":2362,"children":2363},{},[2364,2366,2377],{"type":71,"value":2365},"docs(composables): correct grammar errors (",{"type":66,"tag":128,"props":2367,"children":2370},{"href":2368,"rel":2369},"https://github.com/nuxt-modules/supabase/commit/034d7dfaf9f52a08da0ade4bf6d5ed31ec740734",[132],[2371],{"type":66,"tag":312,"props":2372,"children":2374},{"className":2373},[],[2375],{"type":71,"value":2376},"034d7df",{"type":71,"value":255},{"type":66,"tag":116,"props":2379,"children":2380},{},[2381,2383,2394],{"type":71,"value":2382},"feat(demo): add call from server route(",{"type":66,"tag":128,"props":2384,"children":2387},{"href":2385,"rel":2386},"https://github.com/nuxt-modules/supabase/commit/989a91eacdc471de90a2307c39cd03f23cca57ee",[132],[2388],{"type":66,"tag":312,"props":2389,"children":2391},{"className":2390},[],[2392],{"type":71,"value":2393},"989a91e",{"type":71,"value":255},{"type":66,"tag":116,"props":2396,"children":2397},{},[2398,2400,2411],{"type":71,"value":2399},"perf(useSupabaseAuthClient): avoid declaring unused variables (",{"type":66,"tag":128,"props":2401,"children":2404},{"href":2402,"rel":2403},"https://github.com/nuxt-modules/supabase/commit/8c070b9e571b3fe7870c08033ea561624a6ae575",[132],[2405],{"type":66,"tag":312,"props":2406,"children":2408},{"className":2407},[],[2409],{"type":71,"value":2410},"8c070b9",{"type":71,"value":255},{"type":66,"tag":116,"props":2413,"children":2414},{},[2415,2417,2428,2429,2436,2437],{"type":71,"value":2416},"fix(dev): optimize supabase deps (",{"type":66,"tag":128,"props":2418,"children":2421},{"href":2419,"rel":2420},"https://github.com/nuxt-modules/supabase/commit/d1da3f6b2f463e7196c69c3a580833438926a6e1",[132],[2422],{"type":66,"tag":312,"props":2423,"children":2425},{"className":2424},[],[2426],{"type":71,"value":2427},"d1da3f6",{"type":71,"value":137},{"type":66,"tag":128,"props":2430,"children":2433},{"href":2431,"rel":2432},"https://github.com/nuxt-modules/supabase/issues/172",[132],[2434],{"type":71,"value":2435},"#172",{"type":71,"value":739},{"type":66,"tag":128,"props":2438,"children":2441},{"href":2439,"rel":2440},"https://github.com/nuxt-modules/supabase/issues/151",[132],[2442],{"type":71,"value":2443},"#151",{"type":66,"tag":116,"props":2445,"children":2446},{},[2447,2449,2460],{"type":71,"value":2448},"chore(deps): transpile websocket lib prod only (",{"type":66,"tag":128,"props":2450,"children":2453},{"href":2451,"rel":2452},"https://github.com/nuxt-modules/supabase/commit/a1ee40c848c9da81aa41acc53dc3555b32bafd86",[132],[2454],{"type":66,"tag":312,"props":2455,"children":2457},{"className":2456},[],[2458],{"type":71,"value":2459},"a1ee40c",{"type":71,"value":255},{"type":66,"tag":116,"props":2462,"children":2463},{},[2464,2466,2477,2478,2483],{"type":71,"value":2465},"fix(deps): transpile gotrue only on client (",{"type":66,"tag":128,"props":2467,"children":2470},{"href":2468,"rel":2469},"https://github.com/nuxt-modules/supabase/commit/fcc6823e248395a513706cf67ab664f84daacb45",[132],[2471],{"type":66,"tag":312,"props":2472,"children":2474},{"className":2473},[],[2475],{"type":71,"value":2476},"fcc6823",{"type":71,"value":137},{"type":66,"tag":128,"props":2479,"children":2481},{"href":2431,"rel":2480},[132],[2482],{"type":71,"value":2435},{"type":71,"value":2484}," on server side",{"type":66,"tag":67,"props":2486,"children":2487},{},[2488,2492,2493],{"type":66,"tag":120,"props":2489,"children":2490},{},[2491],{"type":71,"value":1528},{"type":71,"value":1530},{"type":66,"tag":128,"props":2494,"children":2497},{"href":2495,"rel":2496},"https://github.com/nuxt-community/supabase-module/compare/v0.3.1...v0.3.5",[132],[2498],{"type":71,"value":2495},{"type":66,"tag":67,"props":2500,"children":2501},{},[2502,2504,2511,2513,2520,2521,2528,2529],{"type":71,"value":2503},"💚 Thanks for the help from 💚\r\n@",{"type":66,"tag":128,"props":2505,"children":2508},{"href":2506,"rel":2507},"https://github.com/nuxt-modules/supabase/commits?author=kuizuo",[132],[2509],{"type":71,"value":2510},"kuizuo",{"type":71,"value":2512},"\r\n@",{"type":66,"tag":128,"props":2514,"children":2517},{"href":2515,"rel":2516},"https://github.com/nuxt-modules/supabase/commits?author=tnntwister",[132],[2518],{"type":71,"value":2519},"tnntwister",{"type":71,"value":2512},{"type":66,"tag":128,"props":2522,"children":2525},{"href":2523,"rel":2524},"https://github.com/nuxt-modules/supabase/commits?author=yannaufray",[132],[2526],{"type":71,"value":2527},"yannaufray",{"type":71,"value":2512},{"type":66,"tag":128,"props":2530,"children":2533},{"href":2531,"rel":2532},"https://github.com/nuxt-modules/supabase/commits?author=DamianGlowala",[132],[2534],{"type":71,"value":2535},"DamianGlowala",{"title":59,"searchDepth":78,"depth":78,"links":2537},[2538],{"id":100,"depth":78,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v0.3.5","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.3.5","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.3.5",{"url":2543,"total_count":161,"+1":294,"-1":294,"laugh":294,"hooray":294,"confused":294,"heart":294,"rocket":161,"eyes":294},"https://api.github.com/repos/nuxt-modules/supabase/releases/97822579/reactions",{"name":166,"url":167,"avatar":168},"github:v0.3.5.md",{"name":2547,"tag_name":2547,"date":2548,"body":2549,"v":294,"url":2812,"tarball":2813,"zipball":2814,"prerelease":2815,"reactions":2816,"author":2818,"title":59,"description":59,"_type":80,"_id":2819},"v0.3.3","2023-03-31T21:51:14Z",{"type":63,"children":2550,"toc":2809},[2551,2555,2795],{"type":66,"tag":98,"props":2552,"children":2553},{"id":100},[2554],{"type":71,"value":103},{"type":66,"tag":112,"props":2556,"children":2557},{},[2558,2581,2597,2614,2631,2654,2671,2696,2719,2742,2757,2780],{"type":66,"tag":116,"props":2559,"children":2560},{},[2561,2562,2569,2570,2580],{"type":71,"value":2399},{"type":66,"tag":128,"props":2563,"children":2566},{"href":2564,"rel":2565},"https://github.com/nuxt-modules/supabase/issues/166",[132],[2567],{"type":71,"value":2568},"#166",{"type":71,"value":730},{"type":66,"tag":128,"props":2571,"children":2574},{"href":2572,"rel":2573},"https://github.com/nuxt-modules/supabase/commit/8c070b9",[132],[2575],{"type":66,"tag":312,"props":2576,"children":2578},{"className":2577},[],[2579],{"type":71,"value":2410},{"type":71,"value":255},{"type":66,"tag":116,"props":2582,"children":2583},{},[2584,2586,2596],{"type":71,"value":2585},"feat(demo): add call from server route (",{"type":66,"tag":128,"props":2587,"children":2590},{"href":2588,"rel":2589},"https://github.com/nuxt-modules/supabase/commit/989a91e",[132],[2591],{"type":66,"tag":312,"props":2592,"children":2594},{"className":2593},[],[2595],{"type":71,"value":2393},{"type":71,"value":255},{"type":66,"tag":116,"props":2598,"children":2599},{},[2600,2602,2613],{"type":71,"value":2601},"chore(demo): upgrade deps (",{"type":66,"tag":128,"props":2603,"children":2606},{"href":2604,"rel":2605},"https://github.com/nuxt-modules/supabase/commit/9ebbc77",[132],[2607],{"type":66,"tag":312,"props":2608,"children":2610},{"className":2609},[],[2611],{"type":71,"value":2612},"9ebbc77",{"type":71,"value":255},{"type":66,"tag":116,"props":2615,"children":2616},{},[2617,2619,2630],{"type":71,"value":2618},"chore(deps): upgrade (",{"type":66,"tag":128,"props":2620,"children":2623},{"href":2621,"rel":2622},"https://github.com/nuxt-modules/supabase/commit/e274a5e",[132],[2624],{"type":66,"tag":312,"props":2625,"children":2627},{"className":2626},[],[2628],{"type":71,"value":2629},"e274a5e",{"type":71,"value":255},{"type":66,"tag":116,"props":2632,"children":2633},{},[2634,2635,2642,2643,2653],{"type":71,"value":2365},{"type":66,"tag":128,"props":2636,"children":2639},{"href":2637,"rel":2638},"https://github.com/nuxt-modules/supabase/issues/162",[132],[2640],{"type":71,"value":2641},"#162",{"type":71,"value":730},{"type":66,"tag":128,"props":2644,"children":2647},{"href":2645,"rel":2646},"https://github.com/nuxt-modules/supabase/commit/034d7df",[132],[2648],{"type":66,"tag":312,"props":2649,"children":2651},{"className":2650},[],[2652],{"type":71,"value":2376},{"type":71,"value":255},{"type":66,"tag":116,"props":2655,"children":2656},{},[2657,2659,2670],{"type":71,"value":2658},"docs(readme): add nuxt badge (",{"type":66,"tag":128,"props":2660,"children":2663},{"href":2661,"rel":2662},"https://github.com/nuxt-modules/supabase/commit/68271b8",[132],[2664],{"type":66,"tag":312,"props":2665,"children":2667},{"className":2666},[],[2668],{"type":71,"value":2669},"68271b8",{"type":71,"value":255},{"type":66,"tag":116,"props":2672,"children":2673},{},[2674,2676,2683,2684,2695],{"type":71,"value":2675},"docs(demo): fix typo (",{"type":66,"tag":128,"props":2677,"children":2680},{"href":2678,"rel":2679},"https://github.com/nuxt-modules/supabase/issues/125",[132],[2681],{"type":71,"value":2682},"#125",{"type":71,"value":730},{"type":66,"tag":128,"props":2685,"children":2688},{"href":2686,"rel":2687},"https://github.com/nuxt-modules/supabase/commit/bd33d12",[132],[2689],{"type":66,"tag":312,"props":2690,"children":2692},{"className":2691},[],[2693],{"type":71,"value":2694},"bd33d12",{"type":71,"value":255},{"type":66,"tag":116,"props":2697,"children":2698},{},[2699,2700,2707,2708,2718],{"type":71,"value":2348},{"type":66,"tag":128,"props":2701,"children":2704},{"href":2702,"rel":2703},"https://github.com/nuxt-modules/supabase/issues/154",[132],[2705],{"type":71,"value":2706},"#154",{"type":71,"value":730},{"type":66,"tag":128,"props":2709,"children":2712},{"href":2710,"rel":2711},"https://github.com/nuxt-modules/supabase/commit/ba437a8",[132],[2713],{"type":66,"tag":312,"props":2714,"children":2716},{"className":2715},[],[2717],{"type":71,"value":2359},{"type":71,"value":255},{"type":66,"tag":116,"props":2720,"children":2721},{},[2722,2723,2730,2731,2741],{"type":71,"value":2331},{"type":66,"tag":128,"props":2724,"children":2727},{"href":2725,"rel":2726},"https://github.com/nuxt-modules/supabase/issues/157",[132],[2728],{"type":71,"value":2729},"#157",{"type":71,"value":730},{"type":66,"tag":128,"props":2732,"children":2735},{"href":2733,"rel":2734},"https://github.com/nuxt-modules/supabase/commit/0cad0a5",[132],[2736],{"type":66,"tag":312,"props":2737,"children":2739},{"className":2738},[],[2740],{"type":71,"value":2342},{"type":71,"value":255},{"type":66,"tag":116,"props":2743,"children":2744},{},[2745,2746,2756],{"type":71,"value":2314},{"type":66,"tag":128,"props":2747,"children":2750},{"href":2748,"rel":2749},"https://github.com/nuxt-modules/supabase/commit/94f7e13",[132],[2751],{"type":66,"tag":312,"props":2752,"children":2754},{"className":2753},[],[2755],{"type":71,"value":2325},{"type":71,"value":255},{"type":66,"tag":116,"props":2758,"children":2759},{},[2760,2761,2768,2769,2779],{"type":71,"value":2297},{"type":66,"tag":128,"props":2762,"children":2765},{"href":2763,"rel":2764},"https://github.com/nuxt-modules/supabase/issues/126",[132],[2766],{"type":71,"value":2767},"#126",{"type":71,"value":730},{"type":66,"tag":128,"props":2770,"children":2773},{"href":2771,"rel":2772},"https://github.com/nuxt-modules/supabase/commit/5699dc6",[132],[2774],{"type":66,"tag":312,"props":2775,"children":2777},{"className":2776},[],[2778],{"type":71,"value":2308},{"type":71,"value":255},{"type":66,"tag":116,"props":2781,"children":2782},{},[2783,2784,2794],{"type":71,"value":2280},{"type":66,"tag":128,"props":2785,"children":2788},{"href":2786,"rel":2787},"https://github.com/nuxt-modules/supabase/commit/bca1992",[132],[2789],{"type":66,"tag":312,"props":2790,"children":2792},{"className":2791},[],[2793],{"type":71,"value":2291},{"type":71,"value":255},{"type":66,"tag":67,"props":2796,"children":2797},{},[2798,2802,2803],{"type":66,"tag":120,"props":2799,"children":2800},{},[2801],{"type":71,"value":1528},{"type":71,"value":1530},{"type":66,"tag":128,"props":2804,"children":2807},{"href":2805,"rel":2806},"https://github.com/nuxt-community/supabase-module/compare/v0.3.1...v0.3.3",[132],[2808],{"type":71,"value":2805},{"title":59,"searchDepth":78,"depth":78,"links":2810},[2811],{"id":100,"depth":78,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v0.3.3","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.3.3","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.3.3",true,{"url":2817,"total_count":161,"+1":161,"-1":294,"laugh":294,"hooray":294,"confused":294,"heart":294,"rocket":294,"eyes":294},"https://api.github.com/repos/nuxt-modules/supabase/releases/97697076/reactions",{"name":166,"url":167,"avatar":168},"github:v0.3.3.md",{"name":2821,"tag_name":2821,"date":2822,"body":2823,"v":294,"url":2888,"tarball":2889,"zipball":2890,"prerelease":60,"author":2891,"title":59,"description":59,"_type":80,"_id":2892},"v0.3.1","2023-02-07T20:18:04Z",{"type":63,"children":2824,"toc":2885},[2825,2829,2871],{"type":66,"tag":98,"props":2826,"children":2827},{"id":100},[2828],{"type":71,"value":103},{"type":66,"tag":112,"props":2830,"children":2831},{},[2832,2849,2866],{"type":66,"tag":116,"props":2833,"children":2834},{},[2835,2837,2848],{"type":71,"value":2836},"chore(app): upgrade deps and fix lint (",{"type":66,"tag":128,"props":2838,"children":2841},{"href":2839,"rel":2840},"https://github.com/nuxt-modules/supabase/commit/68baf68",[132],[2842],{"type":66,"tag":312,"props":2843,"children":2845},{"className":2844},[],[2846],{"type":71,"value":2847},"68baf68",{"type":71,"value":255},{"type":66,"tag":116,"props":2850,"children":2851},{},[2852,2854,2865],{"type":71,"value":2853},"fix(client): unset user before session on logout (",{"type":66,"tag":128,"props":2855,"children":2858},{"href":2856,"rel":2857},"https://github.com/nuxt-modules/supabase/commit/ab574ef",[132],[2859],{"type":66,"tag":312,"props":2860,"children":2862},{"className":2861},[],[2863],{"type":71,"value":2864},"ab574ef",{"type":71,"value":255},{"type":66,"tag":116,"props":2867,"children":2868},{},[2869],{"type":71,"value":2870},"chore(demo): update with latest and fix logout",{"type":66,"tag":67,"props":2872,"children":2873},{},[2874,2878,2879],{"type":66,"tag":120,"props":2875,"children":2876},{},[2877],{"type":71,"value":1528},{"type":71,"value":1530},{"type":66,"tag":128,"props":2880,"children":2883},{"href":2881,"rel":2882},"https://github.com/nuxt-community/supabase-module/compare/v0.3.0...v0.3.1",[132],[2884],{"type":71,"value":2881},{"title":59,"searchDepth":78,"depth":78,"links":2886},[2887],{"id":100,"depth":78,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v0.3.1","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.3.1","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.3.1",{"name":166,"url":167,"avatar":168},"github:v0.3.1.md",{"name":2894,"tag_name":2894,"date":2895,"body":2896,"v":294,"url":3018,"tarball":3019,"zipball":3020,"prerelease":60,"reactions":3021,"author":3023,"title":59,"description":1823,"_type":80,"_id":3024},"v0.3.0","2022-11-22T15:26:02Z",{"type":63,"children":2897,"toc":3015},[2898,2902,2906,2927,2961,2989,3001],{"type":66,"tag":67,"props":2899,"children":2900},{},[2901],{"type":71,"value":1823},{"type":66,"tag":98,"props":2903,"children":2904},{"id":100},[2905],{"type":71,"value":103},{"type":66,"tag":67,"props":2907,"children":2908},{},[2909,2911,2918,2920,2925],{"type":71,"value":2910},"In order to resolve ",{"type":66,"tag":128,"props":2912,"children":2915},{"href":2913,"rel":2914},"https://github.com/nuxt-modules/supabase/issues/114",[132],[2916],{"type":71,"value":2917},"#114",{"type":71,"value":2919},", I have made the choice to separate the ",{"type":66,"tag":312,"props":2921,"children":2923},{"className":2922},[],[2924],{"type":71,"value":21},{"type":71,"value":2926}," in two other composables:",{"type":66,"tag":112,"props":2928,"children":2929},{},[2930,2950],{"type":66,"tag":116,"props":2931,"children":2932},{},[2933,2935,2940,2942,2948],{"type":71,"value":2934},"The ",{"type":66,"tag":312,"props":2936,"children":2938},{"className":2937},[],[2939],{"type":71,"value":1835},{"type":71,"value":2941}," is dedicated to authentification purpose only. It won't be recreate if your token expires, it is used in the client plugin to listen to ",{"type":66,"tag":312,"props":2943,"children":2945},{"className":2944},[],[2946],{"type":71,"value":2947},"onAuthStateChange",{"type":71,"value":2949}," events.",{"type":66,"tag":116,"props":2951,"children":2952},{},[2953,2954,2959],{"type":71,"value":2934},{"type":66,"tag":312,"props":2955,"children":2957},{"className":2956},[],[2958],{"type":71,"value":21},{"type":71,"value":2960}," is now only useful for data request.",{"type":66,"tag":67,"props":2962,"children":2963},{},[2964,2966,2971,2973,2978,2980,2987],{"type":71,"value":2965},"To avoid regression you just need to use ",{"type":66,"tag":312,"props":2967,"children":2969},{"className":2968},[],[2970],{"type":71,"value":1835},{"type":71,"value":2972}," instead of ",{"type":66,"tag":312,"props":2974,"children":2976},{"className":2975},[],[2977],{"type":71,"value":21},{"type":71,"value":2979}," everywhere you use ",{"type":66,"tag":128,"props":2981,"children":2984},{"href":2982,"rel":2983},"https://supabase.com/docs/reference/javascript/auth-signup",[132],[2985],{"type":71,"value":2986},"Supabase auth methods",{"type":71,"value":2988},".",{"type":66,"tag":67,"props":2990,"children":2991},{},[2992,2999],{"type":66,"tag":128,"props":2993,"children":2996},{"href":2994,"rel":2995},"https://supabase.nuxtjs.org/usage/composables/use-supabase-auth-client",[132],[2997],{"type":71,"value":2998},"Documentation",{"type":71,"value":3000}," has been updated.",{"type":66,"tag":67,"props":3002,"children":3003},{},[3004,3008,3009],{"type":66,"tag":120,"props":3005,"children":3006},{},[3007],{"type":71,"value":1528},{"type":71,"value":1530},{"type":66,"tag":128,"props":3010,"children":3013},{"href":3011,"rel":3012},"https://github.com/nuxt-community/supabase-module/compare/v0.2.6...v0.3.0",[132],[3014],{"type":71,"value":3011},{"title":59,"searchDepth":78,"depth":78,"links":3016},[3017],{"id":100,"depth":78,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v0.3.0","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.3.0","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.3.0",{"url":3022,"total_count":1998,"+1":78,"-1":294,"laugh":294,"hooray":294,"confused":294,"heart":160,"rocket":160,"eyes":294},"https://api.github.com/repos/nuxt-modules/supabase/releases/83886320/reactions",{"name":166,"url":167,"avatar":168},"github:v0.3.0.md",{"name":3026,"tag_name":3026,"date":3027,"body":3028,"v":294,"url":3065,"tarball":3066,"zipball":3067,"prerelease":60,"author":3068,"title":59,"description":59,"_type":80,"_id":3069},"v0.2.6","2022-11-22T15:16:16Z",{"type":63,"children":3029,"toc":3062},[3030,3034,3048],{"type":66,"tag":98,"props":3031,"children":3032},{"id":100},[3033],{"type":71,"value":103},{"type":66,"tag":112,"props":3035,"children":3036},{},[3037],{"type":66,"tag":116,"props":3038,"children":3039},{},[3040,3042],{"type":71,"value":3041},"chore: update to Nuxt 3 stable 🚀 ",{"type":66,"tag":128,"props":3043,"children":3046},{"href":3044,"rel":3045},"https://nuxt.com/v3",[132],[3047],{"type":71,"value":3044},{"type":66,"tag":67,"props":3049,"children":3050},{},[3051,3055,3056],{"type":66,"tag":120,"props":3052,"children":3053},{},[3054],{"type":71,"value":1528},{"type":71,"value":1530},{"type":66,"tag":128,"props":3057,"children":3060},{"href":3058,"rel":3059},"https://github.com/nuxt-community/supabase-module/compare/v0.2.5...v0.2.6",[132],[3061],{"type":71,"value":3058},{"title":59,"searchDepth":78,"depth":78,"links":3063},[3064],{"id":100,"depth":78,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v0.2.6","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.2.6","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.2.6",{"name":166,"url":167,"avatar":168},"github:v0.2.6.md",{"name":3071,"tag_name":3071,"date":3072,"body":3073,"v":294,"url":3125,"tarball":3126,"zipball":3127,"prerelease":60,"author":3128,"title":59,"description":59,"_type":80,"_id":3129},"v0.2.5","2022-11-22T15:14:51Z",{"type":63,"children":3074,"toc":3122},[3075,3079,3108],{"type":66,"tag":98,"props":3076,"children":3077},{"id":100},[3078],{"type":71,"value":103},{"type":66,"tag":112,"props":3080,"children":3081},{},[3082],{"type":66,"tag":116,"props":3083,"children":3084},{},[3085,3087,3098,3100,3107],{"type":71,"value":3086},"fix: use Router instead of navigateTo for login redirect in ",{"type":66,"tag":128,"props":3088,"children":3091},{"href":3089,"rel":3090},"https://github.com/nuxt-modules/supabase/commit/79fc0e43655d4dee5858acf06cf1979e3ead542b",[132],[3092],{"type":66,"tag":312,"props":3093,"children":3095},{"className":3094},[],[3096],{"type":71,"value":3097},"79fc0e4",{"type":71,"value":3099}," (resolves ",{"type":66,"tag":128,"props":3101,"children":3104},{"href":3102,"rel":3103},"https://github.com/nuxt-modules/supabase/issues/89",[132],[3105],{"type":71,"value":3106},"#89",{"type":71,"value":255},{"type":66,"tag":67,"props":3109,"children":3110},{},[3111,3115,3116],{"type":66,"tag":120,"props":3112,"children":3113},{},[3114],{"type":71,"value":1528},{"type":71,"value":1530},{"type":66,"tag":128,"props":3117,"children":3120},{"href":3118,"rel":3119},"https://github.com/nuxt-community/supabase-module/compare/v0.2.4...v0.2.5",[132],[3121],{"type":71,"value":3118},{"title":59,"searchDepth":78,"depth":78,"links":3123},[3124],{"id":100,"depth":78,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v0.2.5","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.2.5","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.2.5",{"name":166,"url":167,"avatar":168},"github:v0.2.5.md",{"name":3131,"tag_name":3131,"date":3132,"body":3133,"v":294,"url":3175,"tarball":3176,"zipball":3177,"prerelease":60,"reactions":3178,"author":3180,"title":59,"description":59,"_type":80,"_id":3181},"v0.2.4","2022-11-13T19:36:18Z",{"type":63,"children":3134,"toc":3172},[3135,3139,3158],{"type":66,"tag":98,"props":3136,"children":3137},{"id":100},[3138],{"type":71,"value":103},{"type":66,"tag":112,"props":3140,"children":3141},{},[3142],{"type":66,"tag":116,"props":3143,"children":3144},{},[3145,3147],{"type":71,"value":3146},"fix: handle TOKEN_REFRESHED session event in ",{"type":66,"tag":128,"props":3148,"children":3151},{"href":3149,"rel":3150},"https://github.com/nuxt-modules/supabase/commit/bf503029b48113b4b66545d0d2065c899209a06a",[132],[3152],{"type":66,"tag":312,"props":3153,"children":3155},{"className":3154},[],[3156],{"type":71,"value":3157},"bf50302",{"type":66,"tag":67,"props":3159,"children":3160},{},[3161,3165,3166],{"type":66,"tag":120,"props":3162,"children":3163},{},[3164],{"type":71,"value":1528},{"type":71,"value":1530},{"type":66,"tag":128,"props":3167,"children":3170},{"href":3168,"rel":3169},"https://github.com/nuxt-community/supabase-module/compare/v0.2.3...v0.2.4",[132],[3171],{"type":71,"value":3168},{"title":59,"searchDepth":78,"depth":78,"links":3173},[3174],{"id":100,"depth":78,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v0.2.4","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.2.4","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.2.4",{"url":3179,"total_count":78,"+1":294,"-1":294,"laugh":294,"hooray":294,"confused":294,"heart":78,"rocket":294,"eyes":294},"https://api.github.com/repos/nuxt-modules/supabase/releases/82920199/reactions",{"name":166,"url":167,"avatar":168},"github:v0.2.4.md",{"name":3183,"tag_name":3183,"date":3184,"body":3185,"v":294,"url":3322,"tarball":3323,"zipball":3324,"prerelease":60,"reactions":3325,"author":3327,"title":59,"description":59,"_type":80,"_id":3328},"v0.2.3","2022-11-11T17:27:14Z",{"type":63,"children":3186,"toc":3318},[3187,3191,3270,3276,3304],{"type":66,"tag":98,"props":3188,"children":3189},{"id":100},[3190],{"type":71,"value":103},{"type":66,"tag":112,"props":3192,"children":3193},{},[3194,3222,3234,3247],{"type":66,"tag":116,"props":3195,"children":3196},{},[3197,3199,3210,3211],{"type":71,"value":3198},"feat: typed supabase client in ",{"type":66,"tag":128,"props":3200,"children":3203},{"href":3201,"rel":3202},"https://github.com/nuxt-modules/supabase/commit/b59ff1acfbbe2cd36aea1ade2d2b538404909260",[132],[3204],{"type":66,"tag":312,"props":3205,"children":3207},{"className":3206},[],[3208],{"type":71,"value":3209},"b59ff1a",{"type":71,"value":713},{"type":66,"tag":128,"props":3212,"children":3215},{"href":3213,"rel":3214},"https://github.com/nuxt-modules/supabase/commit/fd751d7e50c63c48df9e03763458cc826409ff35",[132],[3216],{"type":66,"tag":312,"props":3217,"children":3219},{"className":3218},[],[3220],{"type":71,"value":3221},"fd751d7",{"type":66,"tag":116,"props":3223,"children":3224},{},[3225,3227],{"type":71,"value":3226},"chore: upgrade to nuxt ",{"type":66,"tag":128,"props":3228,"children":3231},{"href":3229,"rel":3230},"https://github.com/nuxt/framework/releases/tag/v3.0.0-rc.13",[132],[3232],{"type":71,"value":3233},"rc13",{"type":66,"tag":116,"props":3235,"children":3236},{},[3237,3239,3246],{"type":71,"value":3238},"fix: do not apply token if not exists (",{"type":66,"tag":128,"props":3240,"children":3243},{"href":3241,"rel":3242},"https://github.com/nuxt-modules/supabase/issues/107",[132],[3244],{"type":71,"value":3245},"#107",{"type":71,"value":255},{"type":66,"tag":116,"props":3248,"children":3249},{},[3250,3252,3258,3259],{"type":71,"value":3251},"docs: add roadmap board from ",{"type":66,"tag":128,"props":3253,"children":3256},{"href":3254,"rel":3255},"https://volta.net",[132],[3257],{"type":71,"value":3254},{"type":71,"value":619},{"type":66,"tag":128,"props":3260,"children":3263},{"href":3261,"rel":3262},"https://github.com/nuxt-modules/supabase/commit/f8e73b535924f133e479dbc2863bb37856ff4555",[132],[3264],{"type":66,"tag":312,"props":3265,"children":3267},{"className":3266},[],[3268],{"type":71,"value":3269},"f8e73b5",{"type":66,"tag":98,"props":3271,"children":3273},{"id":3272},"contributors",[3274],{"type":71,"value":3275},"Contributors",{"type":66,"tag":67,"props":3277,"children":3278},{},[3279,3281,3291,3292,3302],{"type":71,"value":3280},"Thanks to ",{"type":66,"tag":128,"props":3282,"children":3285},{"href":3283,"rel":3284},"https://github.com/manniL",[132],[3286],{"type":66,"tag":120,"props":3287,"children":3288},{},[3289],{"type":71,"value":3290},"@manniL",{"type":71,"value":713},{"type":66,"tag":128,"props":3293,"children":3296},{"href":3294,"rel":3295},"https://github.com/levibe",[132],[3297],{"type":66,"tag":120,"props":3298,"children":3299},{},[3300],{"type":71,"value":3301},"@levibe",{"type":71,"value":3303}," 💚",{"type":66,"tag":67,"props":3305,"children":3306},{},[3307,3311,3312],{"type":66,"tag":120,"props":3308,"children":3309},{},[3310],{"type":71,"value":1528},{"type":71,"value":1530},{"type":66,"tag":128,"props":3313,"children":3316},{"href":3314,"rel":3315},"https://github.com/nuxt-community/supabase-module/compare/v0.2.0...v0.2.3",[132],[3317],{"type":71,"value":3314},{"title":59,"searchDepth":78,"depth":78,"links":3319},[3320,3321],{"id":100,"depth":78,"text":103},{"id":3272,"depth":78,"text":3275},"https://github.com/nuxt-modules/supabase/releases/tag/v0.2.3","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.2.3","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.2.3",{"url":3326,"total_count":161,"+1":294,"-1":294,"laugh":294,"hooray":294,"confused":294,"heart":161,"rocket":294,"eyes":294},"https://api.github.com/repos/nuxt-modules/supabase/releases/82825289/reactions",{"name":166,"url":167,"avatar":168},"github:v0.2.3.md",{"name":3330,"tag_name":3330,"date":3331,"body":3332,"v":294,"url":3423,"tarball":3424,"zipball":3425,"prerelease":60,"author":3426,"title":59,"description":59,"_type":80,"_id":3427},"v0.2.0","2022-10-17T14:18:31Z",{"type":63,"children":3333,"toc":3420},[3334,3338,3343,3356,3369,3374,3379,3406],{"type":66,"tag":98,"props":3335,"children":3336},{"id":100},[3337],{"type":71,"value":103},{"type":66,"tag":67,"props":3339,"children":3340},{},[3341],{"type":71,"value":3342},"⚠️ Breaking Changes",{"type":66,"tag":67,"props":3344,"children":3345},{},[3346,3348,3355],{"type":71,"value":3347},"Upgrade to supabase-js v2, check Supabase ",{"type":66,"tag":128,"props":3349,"children":3352},{"href":3350,"rel":3351},"https://supabase.com/docs/reference/javascript/release-notes",[132],[3353],{"type":71,"value":3354},"release notes",{"type":71,"value":2988},{"type":66,"tag":67,"props":3357,"children":3358},{},[3359,3361,3367],{"type":71,"value":3360},"Module ",{"type":66,"tag":128,"props":3362,"children":3364},{"href":1785,"rel":3363},[132],[3365],{"type":71,"value":3366},"documentation",{"type":71,"value":3368}," has been updated in favor of supabase v2 syntax.",{"type":66,"tag":67,"props":3370,"children":3371},{},[3372],{"type":71,"value":3373},"Please feel free to make PR if I missed something 🙏",{"type":66,"tag":67,"props":3375,"children":3376},{},[3377],{"type":71,"value":3378},"🚀 Features",{"type":66,"tag":112,"props":3380,"children":3381},{},[3382,3394],{"type":66,"tag":116,"props":3383,"children":3384},{},[3385,3387,3393],{"type":71,"value":3386},"options: redirect user after signout or when user is not authenticated (check ",{"type":66,"tag":128,"props":3388,"children":3391},{"href":3389,"rel":3390},"https://supabase.nuxtjs.org/get-started#redirect",[132],[3392],{"type":71,"value":3366},{"type":71,"value":255},{"type":66,"tag":116,"props":3395,"children":3396},{},[3397,3399],{"type":71,"value":3398},"session: set refresh token ",{"type":66,"tag":128,"props":3400,"children":3403},{"href":3401,"rel":3402},"https://github.com/nuxt-modules/supabase/issues/18",[132],[3404],{"type":71,"value":3405},"#18",{"type":66,"tag":67,"props":3407,"children":3408},{},[3409,3413,3414],{"type":66,"tag":120,"props":3410,"children":3411},{},[3412],{"type":71,"value":1528},{"type":71,"value":1530},{"type":66,"tag":128,"props":3415,"children":3418},{"href":3416,"rel":3417},"https://github.com/nuxt-community/supabase-module/compare/v0.1.28...v0.2.0",[132],[3419],{"type":71,"value":3416},{"title":59,"searchDepth":78,"depth":78,"links":3421},[3422],{"id":100,"depth":78,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v0.2.0","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.2.0","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.2.0",{"name":166,"url":167,"avatar":168},"github:v0.2.0.md",{"name":3429,"tag_name":3429,"date":3430,"body":3431,"v":294,"url":3486,"tarball":3487,"zipball":3488,"prerelease":60,"author":3489,"title":59,"description":59,"_type":80,"_id":3490},"v0.1.28","2022-10-07T10:05:52Z",{"type":63,"children":3432,"toc":3483},[3433,3437,3453,3467],{"type":66,"tag":98,"props":3434,"children":3435},{"id":100},[3436],{"type":71,"value":103},{"type":66,"tag":112,"props":3438,"children":3439},{},[3440],{"type":66,"tag":116,"props":3441,"children":3442},{},[3443,3445,3452],{"type":71,"value":3444},"fix: cloudflare workers deployment (",{"type":66,"tag":128,"props":3446,"children":3449},{"href":3447,"rel":3448},"https://github.com/nuxt-modules/supabase/issues/46",[132],[3450],{"type":71,"value":3451},"#46",{"type":71,"value":255},{"type":66,"tag":67,"props":3454,"children":3455},{},[3456,3460,3461],{"type":66,"tag":120,"props":3457,"children":3458},{},[3459],{"type":71,"value":1528},{"type":71,"value":1530},{"type":66,"tag":128,"props":3462,"children":3465},{"href":3463,"rel":3464},"https://github.com/nuxt-community/supabase-module/compare/v0.1.27...v0.1.28",[132],[3466],{"type":71,"value":3463},{"type":66,"tag":67,"props":3468,"children":3469},{},[3470,3471,3481],{"type":71,"value":3280},{"type":66,"tag":128,"props":3472,"children":3475},{"href":3473,"rel":3474},"https://github.com/kevinmarrec",[132],[3476],{"type":66,"tag":120,"props":3477,"children":3478},{},[3479],{"type":71,"value":3480},"@kevinmarrec",{"type":71,"value":3482}," for the fix 🔥",{"title":59,"searchDepth":78,"depth":78,"links":3484},[3485],{"id":100,"depth":78,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.28","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.28","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.28",{"name":166,"url":167,"avatar":168},"github:v0.1.28.md",{"name":3492,"tag_name":3492,"date":3493,"body":3494,"v":294,"url":3537,"tarball":3538,"zipball":3539,"prerelease":60,"author":3540,"title":59,"description":59,"_type":80,"_id":3541},"v0.1.27","2022-09-23T10:19:42Z",{"type":63,"children":3495,"toc":3534},[3496,3500,3515,3520],{"type":66,"tag":98,"props":3497,"children":3498},{"id":100},[3499],{"type":71,"value":103},{"type":66,"tag":112,"props":3501,"children":3502},{},[3503],{"type":66,"tag":116,"props":3504,"children":3505},{},[3506,3508],{"type":71,"value":3507},"chore: upgrade to Nuxt ",{"type":66,"tag":128,"props":3509,"children":3512},{"href":3510,"rel":3511},"https://github.com/nuxt/framework/releases/tag/v3.0.0-rc.11",[132],[3513],{"type":71,"value":3514},"rc.11",{"type":66,"tag":67,"props":3516,"children":3517},{},[3518],{"type":71,"value":3519},"Stable is coming 🚀",{"type":66,"tag":67,"props":3521,"children":3522},{},[3523,3527,3528],{"type":66,"tag":120,"props":3524,"children":3525},{},[3526],{"type":71,"value":1528},{"type":71,"value":1530},{"type":66,"tag":128,"props":3529,"children":3532},{"href":3530,"rel":3531},"https://github.com/nuxt-community/supabase-module/compare/v0.1.26...v0.1.27",[132],[3533],{"type":71,"value":3530},{"title":59,"searchDepth":78,"depth":78,"links":3535},[3536],{"id":100,"depth":78,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.27","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.27","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.27",{"name":166,"url":167,"avatar":168},"github:v0.1.27.md",{"name":3330,"tag_name":3543,"date":3544,"body":3545,"v":294,"url":3583,"tarball":3584,"zipball":3585,"prerelease":2815,"author":3586,"title":59,"description":59,"_type":80,"_id":3427},"v0.2.0-16","2022-08-16T14:56:45Z",{"type":63,"children":3546,"toc":3580},[3547,3551,3555,3566],{"type":66,"tag":98,"props":3548,"children":3549},{"id":100},[3550],{"type":71,"value":103},{"type":66,"tag":67,"props":3552,"children":3553},{},[3554],{"type":71,"value":3342},{"type":66,"tag":67,"props":3556,"children":3557},{},[3558,3559,3565],{"type":71,"value":3347},{"type":66,"tag":128,"props":3560,"children":3563},{"href":3561,"rel":3562},"https://supabase.com/docs/reference/javascript/next/release-notes",[132],[3564],{"type":71,"value":3354},{"type":71,"value":2988},{"type":66,"tag":67,"props":3567,"children":3568},{},[3569,3573,3574],{"type":66,"tag":120,"props":3570,"children":3571},{},[3572],{"type":71,"value":1528},{"type":71,"value":1530},{"type":66,"tag":128,"props":3575,"children":3578},{"href":3576,"rel":3577},"https://github.com/nuxt-community/supabase-module/compare/v0.1.22...v0.2.0",[132],[3579],{"type":71,"value":3576},{"title":59,"searchDepth":78,"depth":78,"links":3581},[3582],{"id":100,"depth":78,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v0.2.0-16","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.2.0-16","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.2.0-16",{"name":166,"url":167,"avatar":168},{"name":3588,"tag_name":3588,"date":3589,"body":3590,"v":294,"url":3632,"tarball":3633,"zipball":3634,"prerelease":60,"reactions":3635,"author":3637,"title":59,"description":59,"_type":80,"_id":3638},"v0.1.26","2022-09-16T11:17:29Z",{"type":63,"children":3591,"toc":3629},[3592,3596,3610,3615],{"type":66,"tag":98,"props":3593,"children":3594},{"id":100},[3595],{"type":71,"value":103},{"type":66,"tag":112,"props":3597,"children":3598},{},[3599],{"type":66,"tag":116,"props":3600,"children":3601},{},[3602,3603],{"type":71,"value":3507},{"type":66,"tag":128,"props":3604,"children":3607},{"href":3605,"rel":3606},"https://github.com/nuxt/framework/releases/tag/v3.0.0-rc.10",[132],[3608],{"type":71,"value":3609},"rc.10",{"type":66,"tag":67,"props":3611,"children":3612},{},[3613],{"type":71,"value":3614},"Stable in coming 🚀",{"type":66,"tag":67,"props":3616,"children":3617},{},[3618,3622,3623],{"type":66,"tag":120,"props":3619,"children":3620},{},[3621],{"type":71,"value":1528},{"type":71,"value":1530},{"type":66,"tag":128,"props":3624,"children":3627},{"href":3625,"rel":3626},"https://github.com/nuxt-community/supabase-module/compare/v0.1.25...v0.1.26",[132],[3628],{"type":71,"value":3625},{"title":59,"searchDepth":78,"depth":78,"links":3630},[3631],{"id":100,"depth":78,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.26","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.26","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.26",{"url":3636,"total_count":161,"+1":161,"-1":294,"laugh":294,"hooray":294,"confused":294,"heart":294,"rocket":294,"eyes":294},"https://api.github.com/repos/nuxt-modules/supabase/releases/77384555/reactions",{"name":166,"url":167,"avatar":168},"github:v0.1.26.md",{"name":3640,"tag_name":3640,"date":3641,"body":3642,"v":294,"url":3745,"tarball":3746,"zipball":3747,"prerelease":60,"reactions":3748,"author":3750,"title":59,"description":59,"_type":80,"_id":3751},"v0.1.25","2022-09-05T07:28:01Z",{"type":63,"children":3643,"toc":3742},[3644,3648,3728],{"type":66,"tag":98,"props":3645,"children":3646},{"id":100},[3647],{"type":71,"value":103},{"type":66,"tag":112,"props":3649,"children":3650},{},[3651,3687,3715],{"type":66,"tag":116,"props":3652,"children":3653},{},[3654,3656,3667,3668,3679,3681],{"type":71,"value":3655},"docs: new directory architecture + supabase module v2 coming soon in ",{"type":66,"tag":128,"props":3657,"children":3660},{"href":3658,"rel":3659},"https://github.com/nuxt-modules/supabase/commit/d48522a369bcced45dfb3d16793b33f0144ffa50",[132],[3661],{"type":66,"tag":312,"props":3662,"children":3664},{"className":3663},[],[3665],{"type":71,"value":3666},"d48522a",{"type":71,"value":713},{"type":66,"tag":128,"props":3669,"children":3672},{"href":3670,"rel":3671},"https://github.com/nuxt-modules/supabase/commit/e69712b4862a5baa464c01ae32755473358b82d2",[132],[3673],{"type":66,"tag":312,"props":3674,"children":3676},{"className":3675},[],[3677],{"type":71,"value":3678},"e69712b",{"type":71,"value":3680},". Check out ",{"type":66,"tag":128,"props":3682,"children":3685},{"href":3683,"rel":3684},"https://supabase.nuxtjs.org/",[132],[3686],{"type":71,"value":3683},{"type":66,"tag":116,"props":3688,"children":3689},{},[3690,3692,3703,3704],{"type":71,"value":3691},"chore: upgrade to rc9 in ",{"type":66,"tag":128,"props":3693,"children":3696},{"href":3694,"rel":3695},"https://github.com/nuxt-modules/supabase/commit/3c5220bf9569d2e939a466aa4a2814e0dc38622c",[132],[3697],{"type":66,"tag":312,"props":3698,"children":3700},{"className":3699},[],[3701],{"type":71,"value":3702},"3c5220b",{"type":71,"value":713},{"type":66,"tag":128,"props":3705,"children":3708},{"href":3706,"rel":3707},"https://github.com/nuxt-modules/supabase/commit/495e0b705622e9bda28072815c828beedea1082c",[132],[3709],{"type":66,"tag":312,"props":3710,"children":3712},{"className":3711},[],[3713],{"type":71,"value":3714},"495e0b7",{"type":66,"tag":116,"props":3716,"children":3717},{},[3718,3720,3727],{"type":71,"value":3719},"chore: fix nuxt compatibility (",{"type":66,"tag":128,"props":3721,"children":3724},{"href":3722,"rel":3723},"https://github.com/nuxt-modules/supabase/issues/70",[132],[3725],{"type":71,"value":3726},"#70",{"type":71,"value":255},{"type":66,"tag":67,"props":3729,"children":3730},{},[3731,3735,3736],{"type":66,"tag":120,"props":3732,"children":3733},{},[3734],{"type":71,"value":1528},{"type":71,"value":1530},{"type":66,"tag":128,"props":3737,"children":3740},{"href":3738,"rel":3739},"https://github.com/nuxt-community/supabase-module/compare/v0.1.23...v0.1.25",[132],[3741],{"type":71,"value":3738},{"title":59,"searchDepth":78,"depth":78,"links":3743},[3744],{"id":100,"depth":78,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.25","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.25","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.25",{"url":3749,"total_count":685,"+1":294,"-1":294,"laugh":294,"hooray":294,"confused":294,"heart":685,"rocket":294,"eyes":294},"https://api.github.com/repos/nuxt-modules/supabase/releases/76259131/reactions",{"name":166,"url":167,"avatar":168},"github:v0.1.25.md",{"name":3753,"tag_name":3753,"date":3754,"body":3755,"v":294,"url":3823,"tarball":3824,"zipball":3825,"prerelease":60,"author":3826,"title":59,"description":59,"_type":80,"_id":3827},"v0.1.23","2022-08-16T10:12:13Z",{"type":63,"children":3756,"toc":3820},[3757,3761,3806],{"type":66,"tag":98,"props":3758,"children":3759},{"id":100},[3760],{"type":71,"value":103},{"type":66,"tag":112,"props":3762,"children":3763},{},[3764],{"type":66,"tag":116,"props":3765,"children":3766},{},[3767,3769,3782,3784,3796,3798,3805],{"type":71,"value":3768},"fix: transpile supabase packages in ",{"type":66,"tag":128,"props":3770,"children":3773},{"href":3771,"rel":3772},"https://github.com/nuxt-community/supabase-module/commit/66020204e8aad98db94a83964f1bb988642c90f3",[132],[3774,3776],{"type":71,"value":3775},"nuxt-community/supabase-module@",{"type":66,"tag":312,"props":3777,"children":3779},{"className":3778},[],[3780],{"type":71,"value":3781},"6602020",{"type":71,"value":3783}," ",{"type":66,"tag":128,"props":3785,"children":3788},{"href":3786,"rel":3787},"https://github.com/nuxt-community/supabase-module/commit/237ddf2cf83079e39748b6252182ca1d2f62cc54",[132],[3789,3790],{"type":71,"value":3775},{"type":66,"tag":312,"props":3791,"children":3793},{"className":3792},[],[3794],{"type":71,"value":3795},"237ddf2",{"type":71,"value":3797}," and (",{"type":66,"tag":128,"props":3799,"children":3802},{"href":3800,"rel":3801},"https://github.com/nuxt-modules/supabase/issues/62",[132],[3803],{"type":71,"value":3804},"#62",{"type":71,"value":255},{"type":66,"tag":67,"props":3807,"children":3808},{},[3809,3813,3814],{"type":66,"tag":120,"props":3810,"children":3811},{},[3812],{"type":71,"value":1528},{"type":71,"value":1530},{"type":66,"tag":128,"props":3815,"children":3818},{"href":3816,"rel":3817},"https://github.com/nuxt-community/supabase-module/compare/v0.1.20...v0.1.23",[132],[3819],{"type":71,"value":3816},{"title":59,"searchDepth":78,"depth":78,"links":3821},[3822],{"id":100,"depth":78,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.23","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.23","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.23",{"name":166,"url":167,"avatar":168},"github:v0.1.23.md",{"name":3829,"tag_name":3829,"date":3830,"body":3831,"v":294,"url":3901,"tarball":3902,"zipball":3903,"prerelease":60,"author":3904,"title":59,"description":59,"_type":80,"_id":3905},"v0.1.20","2022-08-16T09:12:14Z",{"type":63,"children":3832,"toc":3897},[3833,3837,3852,3866,3872],{"type":66,"tag":98,"props":3834,"children":3835},{"id":100},[3836],{"type":71,"value":103},{"type":66,"tag":112,"props":3838,"children":3839},{},[3840],{"type":66,"tag":116,"props":3841,"children":3842},{},[3843,3845],{"type":71,"value":3844},"chore: upgrade to ",{"type":66,"tag":128,"props":3846,"children":3849},{"href":3847,"rel":3848},"https://github.com/nuxt/framework/releases/tag/v3.0.0-rc.8",[132],[3850],{"type":71,"value":3851},"nuxt rc.8",{"type":66,"tag":67,"props":3853,"children":3854},{},[3855,3859,3860],{"type":66,"tag":120,"props":3856,"children":3857},{},[3858],{"type":71,"value":1528},{"type":71,"value":1530},{"type":66,"tag":128,"props":3861,"children":3864},{"href":3862,"rel":3863},"https://github.com/nuxt-community/supabase-module/compare/v0.1.19...v0.1.20",[132],[3865],{"type":71,"value":3862},{"type":66,"tag":98,"props":3867,"children":3869},{"id":3868},"new-contributors",[3870],{"type":71,"value":3871},"New Contributors",{"type":66,"tag":112,"props":3873,"children":3874},{},[3875],{"type":66,"tag":116,"props":3876,"children":3877},{},[3878,3888,3890],{"type":66,"tag":128,"props":3879,"children":3882},{"href":3880,"rel":3881},"https://github.com/josuemartinezz",[132],[3883],{"type":66,"tag":120,"props":3884,"children":3885},{},[3886],{"type":71,"value":3887},"@josuemartinezz",{"type":71,"value":3889}," made his first contribution in ",{"type":66,"tag":128,"props":3891,"children":3894},{"href":3892,"rel":3893},"https://github.com/nuxt-modules/supabase/issues/59",[132],[3895],{"type":71,"value":3896},"#59",{"title":59,"searchDepth":78,"depth":78,"links":3898},[3899,3900],{"id":100,"depth":78,"text":103},{"id":3868,"depth":78,"text":3871},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.20","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.20","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.20",{"name":166,"url":167,"avatar":168},"github:v0.1.20.md",{"name":3907,"tag_name":3907,"date":3908,"body":3909,"v":294,"url":3963,"tarball":3964,"zipball":3965,"prerelease":60,"reactions":3966,"author":3968,"title":59,"description":59,"_type":80,"_id":3969},"v0.1.19","2022-07-18T08:18:42Z",{"type":63,"children":3910,"toc":3960},[3911,3915,3946],{"type":66,"tag":98,"props":3912,"children":3913},{"id":100},[3914],{"type":71,"value":103},{"type":66,"tag":112,"props":3916,"children":3917},{},[3918,3929],{"type":66,"tag":116,"props":3919,"children":3920},{},[3921,3922],{"type":71,"value":3844},{"type":66,"tag":128,"props":3923,"children":3926},{"href":3924,"rel":3925},"https://github.com/nuxt/framework/pull/5825",[132],[3927],{"type":71,"value":3928},"nuxt rc.5",{"type":66,"tag":116,"props":3930,"children":3931},{},[3932,3934],{"type":71,"value":3933},"doc: add supabase icon in ",{"type":66,"tag":128,"props":3935,"children":3938},{"href":3936,"rel":3937},"https://github.com/nuxt-community/supabase-module/commit/c0cce016eae809fd64acc9a503b4807750280b39",[132],[3939,3940],{"type":71,"value":3775},{"type":66,"tag":312,"props":3941,"children":3943},{"className":3942},[],[3944],{"type":71,"value":3945},"c0cce01",{"type":66,"tag":67,"props":3947,"children":3948},{},[3949,3953,3954],{"type":66,"tag":120,"props":3950,"children":3951},{},[3952],{"type":71,"value":1528},{"type":71,"value":1530},{"type":66,"tag":128,"props":3955,"children":3958},{"href":3956,"rel":3957},"https://github.com/nuxt-community/supabase-module/compare/v0.1.18...v0.1.19",[132],[3959],{"type":71,"value":3956},{"title":59,"searchDepth":78,"depth":78,"links":3961},[3962],{"id":100,"depth":78,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.19","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.19","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.19",{"url":3967,"total_count":161,"+1":294,"-1":294,"laugh":294,"hooray":294,"confused":294,"heart":294,"rocket":161,"eyes":294},"https://api.github.com/repos/nuxt-modules/supabase/releases/72200550/reactions",{"name":166,"url":167,"avatar":168},"github:v0.1.19.md",{"name":3971,"tag_name":3971,"date":3972,"body":3973,"v":294,"url":4050,"tarball":4051,"zipball":4052,"prerelease":60,"author":4053,"title":59,"description":59,"_type":80,"_id":4054},"v0.1.18","2022-06-29T09:23:26Z",{"type":63,"children":3974,"toc":4047},[3975,3979,4033],{"type":66,"tag":98,"props":3976,"children":3977},{"id":100},[3978],{"type":71,"value":103},{"type":66,"tag":112,"props":3980,"children":3981},{},[3982,4008],{"type":66,"tag":116,"props":3983,"children":3984},{},[3985,3987,3999,4000,4007],{"type":71,"value":3986},"doc: update logo & social preview in ",{"type":66,"tag":128,"props":3988,"children":3991},{"href":3989,"rel":3990},"https://github.com/nuxt-community/supabase-module/commit/9b0b2fbee1f2fed50e903c2b368b817568d7ab1f",[132],[3992,3993],{"type":71,"value":3775},{"type":66,"tag":312,"props":3994,"children":3996},{"className":3995},[],[3997],{"type":71,"value":3998},"9b0b2fb",{"type":71,"value":501},{"type":66,"tag":128,"props":4001,"children":4004},{"href":4002,"rel":4003},"https://github.com/nuxt-modules/supabase/issues/53",[132],[4005],{"type":71,"value":4006},"#53",{"type":71,"value":255},{"type":66,"tag":116,"props":4009,"children":4010},{},[4011,4012,4024,4025,4032],{"type":71,"value":3768},{"type":66,"tag":128,"props":4013,"children":4016},{"href":4014,"rel":4015},"https://github.com/nuxt-community/supabase-module/commit/309c137f7ae23985f0ed9947fb85cb75cbfbfca2",[132],[4017,4018],{"type":71,"value":3775},{"type":66,"tag":312,"props":4019,"children":4021},{"className":4020},[],[4022],{"type":71,"value":4023},"309c137",{"type":71,"value":501},{"type":66,"tag":128,"props":4026,"children":4029},{"href":4027,"rel":4028},"https://github.com/nuxt-modules/supabase/issues/55",[132],[4030],{"type":71,"value":4031},"#55",{"type":71,"value":255},{"type":66,"tag":67,"props":4034,"children":4035},{},[4036,4040,4041],{"type":66,"tag":120,"props":4037,"children":4038},{},[4039],{"type":71,"value":1528},{"type":71,"value":1530},{"type":66,"tag":128,"props":4042,"children":4045},{"href":4043,"rel":4044},"https://github.com/nuxt-community/supabase-module/compare/v0.1.17...v0.1.18",[132],[4046],{"type":71,"value":4043},{"title":59,"searchDepth":78,"depth":78,"links":4048},[4049],{"id":100,"depth":78,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.18","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.18","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.18",{"name":166,"url":167,"avatar":168},"github:v0.1.18.md",{"name":4056,"tag_name":4056,"date":4057,"body":4058,"v":294,"url":4150,"tarball":4151,"zipball":4152,"prerelease":60,"reactions":4153,"author":4155,"title":59,"description":59,"_type":80,"_id":4156},"v0.1.17","2022-06-17T07:01:12Z",{"type":63,"children":4059,"toc":4147},[4060,4064,4120,4133],{"type":66,"tag":98,"props":4061,"children":4062},{"id":100},[4063],{"type":71,"value":103},{"type":66,"tag":112,"props":4065,"children":4066},{},[4067,4078,4103],{"type":66,"tag":116,"props":4068,"children":4069},{},[4070,4071],{"type":71,"value":3844},{"type":66,"tag":128,"props":4072,"children":4075},{"href":4073,"rel":4074},"https://github.com/nuxt/framework/discussions/5445",[132],[4076],{"type":71,"value":4077},"nuxt rc.4",{"type":66,"tag":116,"props":4079,"children":4080},{},[4081,4083,4090,4091],{"type":71,"value":4082},"doc: update ",{"type":66,"tag":128,"props":4084,"children":4087},{"href":4085,"rel":4086},"https://docus.com/",[132],[4088],{"type":71,"value":4089},"docus theme",{"type":71,"value":619},{"type":66,"tag":128,"props":4092,"children":4095},{"href":4093,"rel":4094},"https://github.com/nuxt-community/supabase-module/commit/64a5add3db5e0416a8a3b7f9708d27148797e958",[132],[4096,4097],{"type":71,"value":3775},{"type":66,"tag":312,"props":4098,"children":4100},{"className":4099},[],[4101],{"type":71,"value":4102},"64a5add",{"type":66,"tag":116,"props":4104,"children":4105},{},[4106,4108],{"type":71,"value":4107},"doc: add advanced usage with supabase realtime ",{"type":66,"tag":128,"props":4109,"children":4112},{"href":4110,"rel":4111},"https://github.com/nuxt-community/supabase-module/commit/8047e311e5526a4597b81a99dc8045114348172f",[132],[4113,4114],{"type":71,"value":3775},{"type":66,"tag":312,"props":4115,"children":4117},{"className":4116},[],[4118],{"type":71,"value":4119},"8047e31",{"type":66,"tag":67,"props":4121,"children":4122},{},[4123,4125,4131],{"type":71,"value":4124},"Checkout the ",{"type":66,"tag":128,"props":4126,"children":4129},{"href":4127,"rel":4128},"https://supabase.nuxtjs.org/advanced#realtime",[132],[4130],{"type":71,"value":3366},{"type":71,"value":4132}," for supabase realtime!",{"type":66,"tag":67,"props":4134,"children":4135},{},[4136,4140,4141],{"type":66,"tag":120,"props":4137,"children":4138},{},[4139],{"type":71,"value":1528},{"type":71,"value":1530},{"type":66,"tag":128,"props":4142,"children":4145},{"href":4143,"rel":4144},"https://github.com/nuxt-community/supabase-module/compare/v0.1.16...v0.1.17",[132],[4146],{"type":71,"value":4143},{"title":59,"searchDepth":78,"depth":78,"links":4148},[4149],{"id":100,"depth":78,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.17","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.17","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.17",{"url":4154,"total_count":161,"+1":294,"-1":294,"laugh":294,"hooray":294,"confused":294,"heart":161,"rocket":294,"eyes":294},"https://api.github.com/repos/nuxt-modules/supabase/releases/69689480/reactions",{"name":166,"url":167,"avatar":168},"github:v0.1.17.md",{"name":4158,"tag_name":4158,"date":4159,"body":4160,"v":294,"url":4258,"tarball":4259,"zipball":4260,"prerelease":60,"author":4261,"title":59,"description":59,"_type":80,"_id":4262},"v0.1.16","2022-06-01T10:51:45Z",{"type":63,"children":4161,"toc":4255},[4162,4166,4229,4241],{"type":66,"tag":98,"props":4163,"children":4164},{"id":100},[4165],{"type":71,"value":103},{"type":66,"tag":112,"props":4167,"children":4168},{},[4169,4203],{"type":66,"tag":116,"props":4170,"children":4171},{},[4172,4174,4181,4182,4194,4195,4202],{"type":71,"value":4173},"doc: use docus theme (public release coming soon) powered by ",{"type":66,"tag":128,"props":4175,"children":4178},{"href":4176,"rel":4177},"https://content.nuxtjs.org/",[132],[4179],{"type":71,"value":4180},"nuxt content v2",{"type":71,"value":619},{"type":66,"tag":128,"props":4183,"children":4186},{"href":4184,"rel":4185},"https://github.com/nuxt-community/supabase-module/commit/c24a16ff0bc94221adc021231a2206b6db8f293c",[132],[4187,4188],{"type":71,"value":3775},{"type":66,"tag":312,"props":4189,"children":4191},{"className":4190},[],[4192],{"type":71,"value":4193},"c24a16f",{"type":71,"value":501},{"type":66,"tag":128,"props":4196,"children":4199},{"href":4197,"rel":4198},"https://github.com/nuxt-modules/supabase/issues/41",[132],[4200],{"type":71,"value":4201},"#41",{"type":71,"value":255},{"type":66,"tag":116,"props":4204,"children":4205},{},[4206,4208,4220,4221,4228],{"type":71,"value":4207},"feat: service role client to bypass RLS in ",{"type":66,"tag":128,"props":4209,"children":4212},{"href":4210,"rel":4211},"https://github.com/nuxt-community/supabase-module/commit/ba70a976be97acb3c438d59e45b789ee917bee6b",[132],[4213,4214],{"type":71,"value":3775},{"type":66,"tag":312,"props":4215,"children":4217},{"className":4216},[],[4218],{"type":71,"value":4219},"ba70a97",{"type":71,"value":501},{"type":66,"tag":128,"props":4222,"children":4225},{"href":4223,"rel":4224},"https://github.com/nuxt-modules/supabase/issues/43",[132],[4226],{"type":71,"value":4227},"#43",{"type":71,"value":255},{"type":66,"tag":67,"props":4230,"children":4231},{},[4232,4234,4239],{"type":71,"value":4233},"Checkout the new ",{"type":66,"tag":128,"props":4235,"children":4237},{"href":1785,"rel":4236},[132],[4238],{"type":71,"value":3366},{"type":71,"value":4240}," !",{"type":66,"tag":67,"props":4242,"children":4243},{},[4244,4248,4249],{"type":66,"tag":120,"props":4245,"children":4246},{},[4247],{"type":71,"value":1528},{"type":71,"value":1530},{"type":66,"tag":128,"props":4250,"children":4253},{"href":4251,"rel":4252},"https://github.com/nuxt-community/supabase-module/compare/v0.1.14...v0.1.16",[132],[4254],{"type":71,"value":4251},{"title":59,"searchDepth":78,"depth":78,"links":4256},[4257],{"id":100,"depth":78,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.16","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.16","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.16",{"name":166,"url":167,"avatar":168},"github:v0.1.16.md",{"name":4264,"tag_name":4264,"date":4265,"body":4266,"v":294,"url":4374,"tarball":4375,"zipball":4376,"prerelease":60,"author":4377,"title":59,"description":59,"_type":80,"_id":4378},"v0.1.14","2022-05-13T16:48:40Z",{"type":63,"children":4267,"toc":4371},[4268,4272,4335,4357],{"type":66,"tag":98,"props":4269,"children":4270},{"id":100},[4271],{"type":71,"value":103},{"type":66,"tag":112,"props":4273,"children":4274},{},[4275,4292,4309],{"type":66,"tag":116,"props":4276,"children":4277},{},[4278,4280],{"type":71,"value":4279},"feat: add playground folder in ",{"type":66,"tag":128,"props":4281,"children":4284},{"href":4282,"rel":4283},"https://github.com/nuxt-community/supabase-module/commit/339cf31cf48d4059ba0e4470d6e5e2aa9ef184c7",[132],[4285,4286],{"type":71,"value":3775},{"type":66,"tag":312,"props":4287,"children":4289},{"className":4288},[],[4290],{"type":71,"value":4291},"339cf31",{"type":66,"tag":116,"props":4293,"children":4294},{},[4295,4297],{"type":71,"value":4296},"fix: client options in ",{"type":66,"tag":128,"props":4298,"children":4301},{"href":4299,"rel":4300},"https://github.com/nuxt-community/supabase-module/commit/4c5595c11caf7a55621d297f6a0183a756175473",[132],[4302,4303],{"type":71,"value":3775},{"type":66,"tag":312,"props":4304,"children":4306},{"className":4305},[],[4307],{"type":71,"value":4308},"4c5595c",{"type":66,"tag":116,"props":4310,"children":4311},{},[4312,4314,4326,4327,4334],{"type":71,"value":4313},"feat: add server routes services in ",{"type":66,"tag":128,"props":4315,"children":4318},{"href":4316,"rel":4317},"https://github.com/nuxt-community/supabase-module/commit/696d3e8d19b8db79c85e86b79a3ba4dd31bb2343",[132],[4319,4320],{"type":71,"value":3775},{"type":66,"tag":312,"props":4321,"children":4323},{"className":4322},[],[4324],{"type":71,"value":4325},"696d3e8",{"type":71,"value":501},{"type":66,"tag":128,"props":4328,"children":4331},{"href":4329,"rel":4330},"https://github.com/nuxt-modules/supabase/issues/36",[132],[4332],{"type":71,"value":4333},"#36",{"type":71,"value":255},{"type":66,"tag":67,"props":4336,"children":4337},{},[4338,4340,4347,4349,4355],{"type":71,"value":4339},"You can check the ",{"type":66,"tag":128,"props":4341,"children":4344},{"href":4342,"rel":4343},"https://supabase.nuxtjs.org/usage#server-routes-services",[132],[4345],{"type":71,"value":4346},"documentation updated",{"type":71,"value":4348}," for the use of ",{"type":66,"tag":312,"props":4350,"children":4352},{"className":4351},[],[4353],{"type":71,"value":4354},"services",{"type":71,"value":4356}," in server routes.",{"type":66,"tag":67,"props":4358,"children":4359},{},[4360,4364,4365],{"type":66,"tag":120,"props":4361,"children":4362},{},[4363],{"type":71,"value":1528},{"type":71,"value":1530},{"type":66,"tag":128,"props":4366,"children":4369},{"href":4367,"rel":4368},"https://github.com/nuxt-community/supabase-module/compare/v0.1.11...v0.1.14",[132],[4370],{"type":71,"value":4367},{"title":59,"searchDepth":78,"depth":78,"links":4372},[4373],{"id":100,"depth":78,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.14","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.14","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.14",{"name":166,"url":167,"avatar":168},"github:v0.1.14.md",{"name":4380,"tag_name":4380,"date":4381,"body":4382,"v":294,"url":4408,"tarball":4409,"zipball":4410,"prerelease":60,"author":4411,"title":59,"description":59,"_type":80,"_id":4412},"v0.1.11","2022-05-06T08:51:02Z",{"type":63,"children":4383,"toc":4406},[4384,4392],{"type":66,"tag":112,"props":4385,"children":4386},{},[4387],{"type":66,"tag":116,"props":4388,"children":4389},{},[4390],{"type":71,"value":4391},"chore: upgrade deps",{"type":66,"tag":67,"props":4393,"children":4394},{},[4395,4399,4400],{"type":66,"tag":120,"props":4396,"children":4397},{},[4398],{"type":71,"value":1528},{"type":71,"value":1530},{"type":66,"tag":128,"props":4401,"children":4404},{"href":4402,"rel":4403},"https://github.com/nuxt-community/supabase-module/compare/v0.1.9...v0.1.11",[132],[4405],{"type":71,"value":4402},{"title":59,"searchDepth":78,"depth":78,"links":4407},[],"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.11","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.11","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.11",{"name":166,"url":167,"avatar":168},"github:v0.1.11.md",{"name":4414,"tag_name":4414,"date":4415,"body":4416,"v":294,"url":4469,"tarball":4470,"zipball":4471,"prerelease":60,"author":4472,"title":59,"description":59,"_type":80,"_id":4476},"v0.1.9","2022-04-20T11:07:23Z",{"type":63,"children":4417,"toc":4467},[4418,4453],{"type":66,"tag":112,"props":4419,"children":4420},{},[4421],{"type":66,"tag":116,"props":4422,"children":4423},{},[4424,4426,4432,4433,4439,4440,4452],{"type":71,"value":4425},"fix: use ",{"type":66,"tag":312,"props":4427,"children":4429},{"className":4428},[],[4430],{"type":71,"value":4431},"#imports",{"type":71,"value":2972},{"type":66,"tag":312,"props":4434,"children":4436},{"className":4435},[],[4437],{"type":71,"value":4438},"#nitro",{"type":71,"value":501},{"type":66,"tag":128,"props":4441,"children":4444},{"href":4442,"rel":4443},"https://github.com/nuxt-community/supabase-module/commit/42af598b7d9f3adf2c577c20e9cfb68bbb17d52b",[132],[4445,4446],{"type":71,"value":3775},{"type":66,"tag":312,"props":4447,"children":4449},{"className":4448},[],[4450],{"type":71,"value":4451},"42af598",{"type":71,"value":255},{"type":66,"tag":67,"props":4454,"children":4455},{},[4456,4460,4461],{"type":66,"tag":120,"props":4457,"children":4458},{},[4459],{"type":71,"value":1528},{"type":71,"value":1530},{"type":66,"tag":128,"props":4462,"children":4465},{"href":4463,"rel":4464},"https://github.com/nuxt-community/supabase-module/compare/v0.1.8...v0.1.9",[132],[4466],{"type":71,"value":4463},{"title":59,"searchDepth":78,"depth":78,"links":4468},[],"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.9","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.9","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.9",{"name":4473,"url":4474,"avatar":4475},"atinux","https://github.com/atinux","https://avatars.githubusercontent.com/u/904724?v=4","github:v0.1.9.md",{"name":4478,"tag_name":4478,"date":4479,"body":4480,"v":294,"url":4536,"tarball":4537,"zipball":4538,"prerelease":60,"author":4539,"title":59,"description":59,"_type":80,"_id":4540},"v0.1.8","2022-04-13T12:26:33Z",{"type":63,"children":4481,"toc":4533},[4482,4486],{"type":66,"tag":98,"props":4483,"children":4484},{"id":100},[4485],{"type":71,"value":103},{"type":66,"tag":112,"props":4487,"children":4488},{},[4489,4506],{"type":66,"tag":116,"props":4490,"children":4491},{},[4492,4494],{"type":71,"value":4493},"fix: update runtime config fetch and override in ",{"type":66,"tag":128,"props":4495,"children":4498},{"href":4496,"rel":4497},"https://github.com/nuxt-community/supabase-module/commit/260ebc7be39dfa65902ad4fe6a49639c99a69da8",[132],[4499,4500],{"type":71,"value":3775},{"type":66,"tag":312,"props":4501,"children":4503},{"className":4502},[],[4504],{"type":71,"value":4505},"260ebc7",{"type":66,"tag":116,"props":4507,"children":4508},{},[4509,4511,4523,4525,4532],{"type":71,"value":4510},"feat: handle session with defineEventHandler in ",{"type":66,"tag":128,"props":4512,"children":4515},{"href":4513,"rel":4514},"https://github.com/nuxt-community/supabase-module/commit/e646b1ce03773bf44932824726f280ad15455ec2",[132],[4516,4517],{"type":71,"value":3775},{"type":66,"tag":312,"props":4518,"children":4520},{"className":4519},[],[4521],{"type":71,"value":4522},"e646b1c",{"type":71,"value":4524}," (Check ",{"type":66,"tag":128,"props":4526,"children":4529},{"href":4527,"rel":4528},"https://v3.nuxtjs.org/guide/features/server-routes",[132],[4530],{"type":71,"value":4531},"Nuxt doc",{"type":71,"value":255},{"title":59,"searchDepth":78,"depth":78,"links":4534},[4535],{"id":100,"depth":78,"text":103},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.8","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.8","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.8",{"name":166,"url":167,"avatar":168},"github:v0.1.8.md",{"name":4542,"tag_name":4542,"date":4543,"body":4544,"v":294,"url":4622,"tarball":4623,"zipball":4624,"prerelease":60,"reactions":4625,"author":4627,"title":59,"description":59,"_type":80,"_id":4628},"v0.1.7","2022-04-07T21:31:24Z",{"type":63,"children":4545,"toc":4618},[4546,4550,4593,4597],{"type":66,"tag":98,"props":4547,"children":4548},{"id":100},[4549],{"type":71,"value":103},{"type":66,"tag":112,"props":4551,"children":4552},{},[4553,4570],{"type":66,"tag":116,"props":4554,"children":4555},{},[4556,4558],{"type":71,"value":4557},"fix: assert method and use correct key for server middleware in ",{"type":66,"tag":128,"props":4559,"children":4562},{"href":4560,"rel":4561},"https://github.com/nuxt-community/supabase-module/commit/8a4d63101e6d2bc24563f7944988909ec7dcc6e5",[132],[4563,4564],{"type":71,"value":3775},{"type":66,"tag":312,"props":4565,"children":4567},{"className":4566},[],[4568],{"type":71,"value":4569},"8a4d631",{"type":66,"tag":116,"props":4571,"children":4572},{},[4573,4575,4585,4586],{"type":71,"value":4574},"fix: replace #config with #nitro by ",{"type":66,"tag":128,"props":4576,"children":4579},{"href":4577,"rel":4578},"https://github.com/psto",[132],[4580],{"type":66,"tag":120,"props":4581,"children":4582},{},[4583],{"type":71,"value":4584},"@psto",{"type":71,"value":619},{"type":66,"tag":128,"props":4587,"children":4590},{"href":4588,"rel":4589},"https://github.com/nuxt-community/supabase-module/pull/23",[132],[4591],{"type":71,"value":4592},"nuxt-community/supabase-module#23",{"type":66,"tag":98,"props":4594,"children":4595},{"id":3868},[4596],{"type":71,"value":3871},{"type":66,"tag":112,"props":4598,"children":4599},{},[4600],{"type":66,"tag":116,"props":4601,"children":4602},{},[4603,4611,4613],{"type":66,"tag":128,"props":4604,"children":4606},{"href":4577,"rel":4605},[132],[4607],{"type":66,"tag":120,"props":4608,"children":4609},{},[4610],{"type":71,"value":4584},{"type":71,"value":4612}," made their first contribution in ",{"type":66,"tag":128,"props":4614,"children":4616},{"href":4588,"rel":4615},[132],[4617],{"type":71,"value":4592},{"title":59,"searchDepth":78,"depth":78,"links":4619},[4620,4621],{"id":100,"depth":78,"text":103},{"id":3868,"depth":78,"text":3871},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.7","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.7","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.7",{"url":4626,"total_count":160,"+1":294,"-1":294,"laugh":294,"hooray":160,"confused":294,"heart":294,"rocket":294,"eyes":294},"https://api.github.com/repos/nuxt-modules/supabase/releases/63922233/reactions",{"name":4473,"url":4474,"avatar":4475},"github:v0.1.7.md",{"name":4630,"tag_name":4630,"date":4631,"body":4632,"v":294,"url":4679,"tarball":4680,"zipball":4681,"prerelease":60,"reactions":4682,"author":4685,"title":59,"description":59,"_type":80,"_id":4686},"v0.1.5","2022-04-04T10:15:21Z",{"type":63,"children":4633,"toc":4676},[4634,4638,4662],{"type":66,"tag":105,"props":4635,"children":4636},{"id":107},[4637],{"type":71,"value":110},{"type":66,"tag":112,"props":4639,"children":4640},{},[4641],{"type":66,"tag":116,"props":4642,"children":4643},{},[4644,4646,4653,4655],{"type":71,"value":4645},"remove lodash.clonedeep (",{"type":66,"tag":128,"props":4647,"children":4650},{"href":4648,"rel":4649},"https://github.com/nuxt-community/supabase-module/commit/b5c5c60358ab192b98c8a63185f58a2eb0ab706a",[132],[4651],{"type":71,"value":4652},"b5c5c60",{"type":71,"value":4654},"), resolved ",{"type":66,"tag":128,"props":4656,"children":4659},{"href":4657,"rel":4658},"https://github.com/nuxt-modules/supabase/issues/21",[132],[4660],{"type":71,"value":4661},"#21",{"type":66,"tag":67,"props":4663,"children":4664},{},[4665,4669,4670],{"type":66,"tag":120,"props":4666,"children":4667},{},[4668],{"type":71,"value":1528},{"type":71,"value":1530},{"type":66,"tag":128,"props":4671,"children":4674},{"href":4672,"rel":4673},"https://github.com/nuxt-community/supabase-module/compare/v0.1.4...v0.1.5",[132],[4675],{"type":71,"value":4672},{"title":59,"searchDepth":78,"depth":78,"links":4677},[4678],{"id":107,"depth":160,"text":110},"https://github.com/nuxt-modules/supabase/releases/tag/v0.1.5","https://api.github.com/repos/nuxt-modules/supabase/tarball/v0.1.5","https://api.github.com/repos/nuxt-modules/supabase/zipball/v0.1.5",{"url":4683,"total_count":4684,"+1":294,"-1":294,"laugh":294,"hooray":585,"confused":294,"heart":78,"rocket":294,"eyes":294},"https://api.github.com/repos/nuxt-modules/supabase/releases/63507078/reactions",6,{"name":4473,"url":4474,"avatar":4475},"github:v0.1.5.md",1725013745874] \ No newline at end of file diff --git a/changelog/index.html b/changelog/index.html index 8a100b1f7..14527b64d 100644 --- a/changelog/index.html +++ b/changelog/index.html @@ -59,49 +59,49 @@ - - - - - - - + + + + + + + - - - - - + + + + + - - - - - - - - + + + + + + + + - + - - - - - - - + + + + + + + - - + + - + -
mobile favicon

Changelog

Discover the latest updates of the Supabase Module

Discover the lastest updates.

v1.3.2 July 5, 2024

What's Changed

Bug Fixes

Features

v1.3.1 July 5, 2024

What's Changed

⚠️ You can switch directly to 1.3.1, since 1.3.0 has been superseded.

Major changes

We're now using the @supabase/ssr library under the hood 🎉 (#357)

There are no breaking changes related to this improvement. However, a non-disruptive warning appears in this release: +

mobile favicon

Changelog

Discover the latest updates of the Supabase Module

Discover the lastest updates.

v1.3.2 July 5, 2024

What's Changed

Bug Fixes

Features

v1.3.1 July 5, 2024

What's Changed

⚠️ You can switch directly to 1.3.1, since 1.3.0 has been superseded.

Major changes

We're now using the @supabase/ssr library under the hood 🎉 (#357)

There are no breaking changes related to this improvement. However, a non-disruptive warning appears in this release: Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure.

This warning is related to an issue in the Supabase library itself. Initially, I intended to wait for this fix but since managing updates across two separate branches is challenging I chose to merge it anyway. I could no longer delay the release due to users raising concerns about outdated dependencies and other issues within the module.

You can upvote the issue to encourage the Supabase maintainers to address it.

This improvement might fix:

A big thanks to @felixgabler for initiating this change and helping refactor the module.

Other update

Full changelog

v1.1.6 January 26, 2024

What's Changed

Bug Fixes

  • deps: set resolution (db8c102)
  • playground: watch on confirm page (0caf5c1)

Features

  • app: added redirect path cookie for use after signin (#327) (1b78a05)

💚 Thanks for the help from

@Matthewenderle

Full changelog

v1.1.5 December 28, 2023

What's Changed

Bug Fixes

  • server: fetch user from session (7a3b73c)

Improvements

  • app: use module-builder stub mode for more accurate types #315

Docs

  • get-started: bun command #317
  • readme: typo in #dev section #316

💚 Thanks for the help from

@danielroe @joshuabyler @hafizjavaid @@ -125,5 +125,5 @@ @tnntwister @yannaufray @DamianGlowala

v0.3.3 March 31, 2023

What's Changed

  • perf(useSupabaseAuthClient): avoid declaring unused variables (#166) (8c070b9)
  • feat(demo): add call from server route (989a91e)
  • chore(demo): upgrade deps (9ebbc77)
  • chore(deps): upgrade (e274a5e)
  • docs(composables): correct grammar errors (#162) (034d7df)
  • docs(readme): add nuxt badge (68271b8)
  • docs(demo): fix typo (#125) (bd33d12)
  • docs(get-started): fix typos (#154) (ba437a8)
  • chore(module): conditionally add redirect plugin (#157) (0cad0a5)
  • chore(app): move to pnpm (94f7e13)
  • docs(links): update nuxt & supabase links and fix typos (#126) (5699dc6)
  • chore(demo): generate database types from supabase cli (bca1992)

Full Changelog: https://github.com/nuxt-community/supabase-module/compare/v0.3.1...v0.3.3

v0.3.1 February 7, 2023

What's Changed

  • chore(app): upgrade deps and fix lint (68baf68)
  • fix(client): unset user before session on logout (ab574ef)
  • chore(demo): update with latest and fix logout

Full Changelog: https://github.com/nuxt-community/supabase-module/compare/v0.3.0...v0.3.1

v0.3.0 November 22, 2022

⚠️ BREAKING CHANGES ⚠️

What's Changed

In order to resolve #114, I have made the choice to separate the useSupabaseClient in two other composables:

  • The useSupabaseAuthClient is dedicated to authentification purpose only. It won't be recreate if your token expires, it is used in the client plugin to listen to onAuthStateChange events.
  • The useSupabaseClient is now only useful for data request.

To avoid regression you just need to use useSupabaseAuthClient instead of useSupabaseClient everywhere you use Supabase auth methods.

Documentation has been updated.

Full Changelog: https://github.com/nuxt-community/supabase-module/compare/v0.2.6...v0.3.0

v0.2.5 November 22, 2022

What's Changed

  • fix: use Router instead of navigateTo for login redirect in 79fc0e4 (resolves #89)

Full Changelog: https://github.com/nuxt-community/supabase-module/compare/v0.2.4...v0.2.5

v0.2.3 November 11, 2022

What's Changed

Contributors

Thanks to @manniL and @levibe 💚

Full Changelog: https://github.com/nuxt-community/supabase-module/compare/v0.2.0...v0.2.3

v0.2.0 October 17, 2022

What's Changed

⚠️ Breaking Changes

Upgrade to supabase-js v2, check Supabase release notes.

Module documentation has been updated in favor of supabase v2 syntax.

Please feel free to make PR if I missed something 🙏

🚀 Features

  • options: redirect user after signout or when user is not authenticated (check documentation)
  • session: set refresh token #18

Full Changelog: https://github.com/nuxt-community/supabase-module/compare/v0.1.28...v0.2.0

v0.2.0 August 16, 2022

What's Changed

⚠️ Breaking Changes

Upgrade to supabase-js v2, check Supabase release notes.

Full Changelog: https://github.com/nuxt-community/supabase-module/compare/v0.1.22...v0.2.0

v0.1.25 September 5, 2022

What's Changed

Full Changelog: https://github.com/nuxt-community/supabase-module/compare/v0.1.23...v0.1.25

v0.1.16 June 1, 2022

What's Changed

Checkout the new documentation !

Full Changelog: https://github.com/nuxt-community/supabase-module/compare/v0.1.14...v0.1.16

v0.1.14 May 13, 2022

What's Changed

You can check the documentation updated for the use of services in server routes.

Full Changelog: https://github.com/nuxt-community/supabase-module/compare/v0.1.11...v0.1.14

v0.1.8 April 13, 2022

What's Changed

v0.1.7 April 7, 2022

What's Changed

New Contributors


Made with Nuxt Studio
- - \ No newline at end of file + + \ No newline at end of file diff --git a/demo/_payload.json b/demo/_payload.json index eb4188f1c..076e2122b 100644 --- a/demo/_payload.json +++ b/demo/_payload.json @@ -1 +1 @@ -[{"data":1,"prerenderedAt":161},["ShallowReactive",2],{"navigation":3,"/demo":58,"/demo-surround":156},[4,8,12,46,50,54],{"title":5,"_path":6,"icon":7},"Get Started","/get-started","i-heroicons-rocket-launch",{"title":9,"_path":10,"icon":11},"Authentication","/authentication","i-heroicons-lock-closed",{"title":13,"_path":14,"children":15,"icon":45},"Usage","/usage",[16,29],{"title":17,"_path":18,"children":19},"Vue composables","/usage/composables",[20,23,26],{"title":21,"_path":22},"useSupabaseClient","/usage/composables/usesupabaseclient",{"title":24,"_path":25},"useSupabaseSession","/usage/composables/usesupabasesession",{"title":27,"_path":28},"useSupabaseUser","/usage/composables/usesupabaseuser",{"title":30,"_path":31,"children":32},"Server services","/usage/services",[33,36,39,42],{"title":34,"_path":35},"serverSupabaseClient","/usage/services/serversupabaseclient",{"title":37,"_path":38},"serverSupabaseServiceRole","/usage/services/serversupabaseservicerole",{"title":40,"_path":41},"serverSupabaseSession","/usage/services/serversupabasesession",{"title":43,"_path":44},"serverSupabaseUser","/usage/services/serversupabaseuser","heroicons:book-open",{"title":47,"_path":48,"icon":49},"Demo","/demo","i-heroicons-computer-desktop-20-solid",{"title":51,"_path":52,"icon":53},"Changelog","/changelog","i-heroicons-bookmark",{"title":55,"_path":56,"icon":57},"Roadmap","/roadmap","i-heroicons-map",{"_path":48,"_dir":59,"_draft":60,"_partial":60,"_locale":59,"title":47,"description":61,"icon":49,"body":62,"_type":150,"_id":151,"_source":152,"_file":153,"_stem":154,"_extension":155},"",false,"Demonstration of using Supabase with Nuxt.",{"type":63,"children":64,"toc":144},"root",[65,72,88,95,106,112,126,132],{"type":66,"tag":67,"props":68,"children":69},"element","p",{},[70],{"type":71,"value":61},"text",{"type":66,"tag":67,"props":73,"children":74},{},[75],{"type":66,"tag":76,"props":77,"children":81},"a",{"href":78,"rel":79},"https://n3-supabase.netlify.app",[80],"nofollow",[82],{"type":66,"tag":83,"props":84,"children":87},"img",{"alt":85,"src":86},"Supabase demo with Nuxt 3","https://user-images.githubusercontent.com/904724/160422461-8f87500a-8dec-4413-86b2-ba04e1b2d17b.png",[],{"type":66,"tag":89,"props":90,"children":92},"h2",{"id":91},"live-demo",[93],{"type":71,"value":94},"Live demo",{"type":66,"tag":67,"props":96,"children":97},{},[98,100],{"type":71,"value":99},"You can play with the demo on ",{"type":66,"tag":76,"props":101,"children":103},{"href":78,"rel":102},[80],[104],{"type":71,"value":105},"n3-supabase.netlify.app",{"type":66,"tag":89,"props":107,"children":109},{"id":108},"running-locally",[110],{"type":71,"value":111},"Running locally",{"type":66,"tag":67,"props":113,"children":114},{},[115,117,124],{"type":71,"value":116},"Follow the instruction in the ",{"type":66,"tag":76,"props":118,"children":121},{"href":119,"rel":120},"https://github.com/nuxt-community/supabase-module/tree/main/demo",[80],[122],{"type":71,"value":123},"demo Readme",{"type":71,"value":125},".",{"type":66,"tag":89,"props":127,"children":129},{"id":128},"source-code",[130],{"type":71,"value":131},"Source code",{"type":66,"tag":67,"props":133,"children":134},{},[135,137,143],{"type":71,"value":136},"The source code is available on Github in the ",{"type":66,"tag":76,"props":138,"children":140},{"href":119,"rel":139},[80],[141],{"type":71,"value":142},"demo/ directory",{"type":71,"value":125},{"title":59,"searchDepth":145,"depth":145,"links":146},2,[147,148,149],{"id":91,"depth":145,"text":94},{"id":108,"depth":145,"text":111},{"id":128,"depth":145,"text":131},"markdown","content:5.demo.md","content","5.demo.md","5.demo","md",[157,159],{"_path":44,"title":43,"description":158},"Get your Supabase user from serverside with the serverSupabaseUser service",{"_path":52,"title":51,"description":160},"Discover the latest updates of the Supabase Module",1725006469600] \ No newline at end of file +[{"data":1,"prerenderedAt":161},["ShallowReactive",2],{"navigation":3,"/demo":58,"/demo-surround":156},[4,8,12,46,50,54],{"title":5,"_path":6,"icon":7},"Get Started","/get-started","i-heroicons-rocket-launch",{"title":9,"_path":10,"icon":11},"Authentication","/authentication","i-heroicons-lock-closed",{"title":13,"_path":14,"children":15,"icon":45},"Usage","/usage",[16,29],{"title":17,"_path":18,"children":19},"Vue composables","/usage/composables",[20,23,26],{"title":21,"_path":22},"useSupabaseClient","/usage/composables/usesupabaseclient",{"title":24,"_path":25},"useSupabaseSession","/usage/composables/usesupabasesession",{"title":27,"_path":28},"useSupabaseUser","/usage/composables/usesupabaseuser",{"title":30,"_path":31,"children":32},"Server services","/usage/services",[33,36,39,42],{"title":34,"_path":35},"serverSupabaseClient","/usage/services/serversupabaseclient",{"title":37,"_path":38},"serverSupabaseServiceRole","/usage/services/serversupabaseservicerole",{"title":40,"_path":41},"serverSupabaseSession","/usage/services/serversupabasesession",{"title":43,"_path":44},"serverSupabaseUser","/usage/services/serversupabaseuser","heroicons:book-open",{"title":47,"_path":48,"icon":49},"Demo","/demo","i-heroicons-computer-desktop-20-solid",{"title":51,"_path":52,"icon":53},"Changelog","/changelog","i-heroicons-bookmark",{"title":55,"_path":56,"icon":57},"Roadmap","/roadmap","i-heroicons-map",{"_path":48,"_dir":59,"_draft":60,"_partial":60,"_locale":59,"title":47,"description":61,"icon":49,"body":62,"_type":150,"_id":151,"_source":152,"_file":153,"_stem":154,"_extension":155},"",false,"Demonstration of using Supabase with Nuxt.",{"type":63,"children":64,"toc":144},"root",[65,72,88,95,106,112,126,132],{"type":66,"tag":67,"props":68,"children":69},"element","p",{},[70],{"type":71,"value":61},"text",{"type":66,"tag":67,"props":73,"children":74},{},[75],{"type":66,"tag":76,"props":77,"children":81},"a",{"href":78,"rel":79},"https://n3-supabase.netlify.app",[80],"nofollow",[82],{"type":66,"tag":83,"props":84,"children":87},"img",{"alt":85,"src":86},"Supabase demo with Nuxt 3","https://user-images.githubusercontent.com/904724/160422461-8f87500a-8dec-4413-86b2-ba04e1b2d17b.png",[],{"type":66,"tag":89,"props":90,"children":92},"h2",{"id":91},"live-demo",[93],{"type":71,"value":94},"Live demo",{"type":66,"tag":67,"props":96,"children":97},{},[98,100],{"type":71,"value":99},"You can play with the demo on ",{"type":66,"tag":76,"props":101,"children":103},{"href":78,"rel":102},[80],[104],{"type":71,"value":105},"n3-supabase.netlify.app",{"type":66,"tag":89,"props":107,"children":109},{"id":108},"running-locally",[110],{"type":71,"value":111},"Running locally",{"type":66,"tag":67,"props":113,"children":114},{},[115,117,124],{"type":71,"value":116},"Follow the instruction in the ",{"type":66,"tag":76,"props":118,"children":121},{"href":119,"rel":120},"https://github.com/nuxt-community/supabase-module/tree/main/demo",[80],[122],{"type":71,"value":123},"demo Readme",{"type":71,"value":125},".",{"type":66,"tag":89,"props":127,"children":129},{"id":128},"source-code",[130],{"type":71,"value":131},"Source code",{"type":66,"tag":67,"props":133,"children":134},{},[135,137,143],{"type":71,"value":136},"The source code is available on Github in the ",{"type":66,"tag":76,"props":138,"children":140},{"href":119,"rel":139},[80],[141],{"type":71,"value":142},"demo/ directory",{"type":71,"value":125},{"title":59,"searchDepth":145,"depth":145,"links":146},2,[147,148,149],{"id":91,"depth":145,"text":94},{"id":108,"depth":145,"text":111},{"id":128,"depth":145,"text":131},"markdown","content:5.demo.md","content","5.demo.md","5.demo","md",[157,159],{"_path":44,"title":43,"description":158},"Get your Supabase user from serverside with the serverSupabaseUser service",{"_path":52,"title":51,"description":160},"Discover the latest updates of the Supabase Module",1725013745868] \ No newline at end of file diff --git a/demo/index.html b/demo/index.html index 58e667f8b..592822c63 100644 --- a/demo/index.html +++ b/demo/index.html @@ -59,40 +59,40 @@ - - - - - - - + + + + + + + - - - - - - + + + + + + - + - - - - - - - + + + + + + + - - + + - + -
- - \ No newline at end of file +
+ + \ No newline at end of file diff --git a/get-started/_payload.json b/get-started/_payload.json index 2296e77b4..5a5a5670f 100644 --- a/get-started/_payload.json +++ b/get-started/_payload.json @@ -1 +1 @@ -[{"data":1,"prerenderedAt":1594},["ShallowReactive",2],{"navigation":3,"/get-started":58,"/get-started-surround":1590},[4,8,12,46,50,54],{"title":5,"_path":6,"icon":7},"Get Started","/get-started","i-heroicons-rocket-launch",{"title":9,"_path":10,"icon":11},"Authentication","/authentication","i-heroicons-lock-closed",{"title":13,"_path":14,"children":15,"icon":45},"Usage","/usage",[16,29],{"title":17,"_path":18,"children":19},"Vue composables","/usage/composables",[20,23,26],{"title":21,"_path":22},"useSupabaseClient","/usage/composables/usesupabaseclient",{"title":24,"_path":25},"useSupabaseSession","/usage/composables/usesupabasesession",{"title":27,"_path":28},"useSupabaseUser","/usage/composables/usesupabaseuser",{"title":30,"_path":31,"children":32},"Server services","/usage/services",[33,36,39,42],{"title":34,"_path":35},"serverSupabaseClient","/usage/services/serversupabaseclient",{"title":37,"_path":38},"serverSupabaseServiceRole","/usage/services/serversupabaseservicerole",{"title":40,"_path":41},"serverSupabaseSession","/usage/services/serversupabasesession",{"title":43,"_path":44},"serverSupabaseUser","/usage/services/serversupabaseuser","heroicons:book-open",{"title":47,"_path":48,"icon":49},"Demo","/demo","i-heroicons-computer-desktop-20-solid",{"title":51,"_path":52,"icon":53},"Changelog","/changelog","i-heroicons-bookmark",{"title":55,"_path":56,"icon":57},"Roadmap","/roadmap","i-heroicons-map",{"_path":6,"_dir":59,"_draft":60,"_partial":60,"_locale":59,"title":5,"description":61,"icon":7,"body":62,"_type":1584,"_id":1585,"_source":1586,"_file":1587,"_stem":1588,"_extension":1589},"",false,"@nuxtjs/supabase is a Nuxt module for first class integration with Supabase.",{"type":63,"children":64,"toc":1569},"root",[65,82,105,125,132,145,188,215,312,338,397,414,420,440,523,533,553,558,567,577,582,592,602,607,616,626,631,641,646,796,932,942,952,978,988,1104,1117,1126,1136,1160,1266,1279,1293,1303,1307,1336,1357,1511,1516,1536,1549,1563],{"type":66,"tag":67,"props":68,"children":69},"element","p",{},[70,80],{"type":66,"tag":71,"props":72,"children":76},"a",{"href":73,"rel":74},"https://github.com/nuxt-modules/supabase",[75],"nofollow",[77],{"type":78,"value":79},"text","@nuxtjs/supabase",{"type":78,"value":81}," is a Nuxt module for first class integration with Supabase.",{"type":66,"tag":67,"props":83,"children":84},{},[85,87,94,96,103],{"type":78,"value":86},"Checkout the ",{"type":66,"tag":71,"props":88,"children":91},{"href":89,"rel":90},"https://v3.nuxtjs.org",[75],[92],{"type":78,"value":93},"Nuxt 3",{"type":78,"value":95}," documentation and ",{"type":66,"tag":71,"props":97,"children":100},{"href":98,"rel":99},"https://supabase.com",[75],[101],{"type":78,"value":102},"Supabase",{"type":78,"value":104}," to learn more.",{"type":66,"tag":106,"props":107,"children":110},"callout",{"icon":108,"color":109},"i-heroicons-exclamation-triangle-20-solid","amber",[111],{"type":66,"tag":67,"props":112,"children":113},{},[114,116,123],{"type":78,"value":115},"For integrating Supabase with Nuxt 2, checkout ",{"type":66,"tag":71,"props":117,"children":120},{"href":118,"rel":119},"https://github.com/supabase-community/nuxt-supabase",[75],[121],{"type":78,"value":122},"supabase-community/nuxt-supabase",{"type":78,"value":124},".",{"type":66,"tag":126,"props":127,"children":129},"h2",{"id":128},"installation",[130],{"type":78,"value":131},"Installation",{"type":66,"tag":67,"props":133,"children":134},{},[135,137,143],{"type":78,"value":136},"Add ",{"type":66,"tag":138,"props":139,"children":141},"code",{"className":140},[],[142],{"type":78,"value":79},{"type":78,"value":144}," dev dependency to your project:",{"type":66,"tag":146,"props":147,"children":151},"pre",{"className":148,"code":149,"language":150,"meta":59,"style":59},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","npx nuxi@latest module add supabase\n","bash",[152],{"type":66,"tag":138,"props":153,"children":154},{"__ignoreMap":59},[155],{"type":66,"tag":156,"props":157,"children":160},"span",{"class":158,"line":159},"line",1,[161,167,173,178,183],{"type":66,"tag":156,"props":162,"children":164},{"style":163},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[165],{"type":78,"value":166},"npx",{"type":66,"tag":156,"props":168,"children":170},{"style":169},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[171],{"type":78,"value":172}," nuxi@latest",{"type":66,"tag":156,"props":174,"children":175},{"style":169},[176],{"type":78,"value":177}," module",{"type":66,"tag":156,"props":179,"children":180},{"style":169},[181],{"type":78,"value":182}," add",{"type":66,"tag":156,"props":184,"children":185},{"style":169},[186],{"type":78,"value":187}," supabase\n",{"type":66,"tag":67,"props":189,"children":190},{},[191,192,197,199,205,207,213],{"type":78,"value":136},{"type":66,"tag":138,"props":193,"children":195},{"className":194},[],[196],{"type":78,"value":79},{"type":78,"value":198}," to the ",{"type":66,"tag":138,"props":200,"children":202},{"className":201},[],[203],{"type":78,"value":204},"modules",{"type":78,"value":206}," section of ",{"type":66,"tag":138,"props":208,"children":210},{"className":209},[],[211],{"type":78,"value":212},"nuxt.config.ts",{"type":78,"value":214},":",{"type":66,"tag":146,"props":216,"children":220},{"className":217,"code":218,"filename":212,"language":219,"meta":59,"style":59},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","export default defineNuxtConfig({\n modules: ['@nuxtjs/supabase'],\n})\n","ts",[221],{"type":66,"tag":138,"props":222,"children":223},{"__ignoreMap":59},[224,256,298],{"type":66,"tag":156,"props":225,"children":226},{"class":158,"line":159},[227,233,238,244,250],{"type":66,"tag":156,"props":228,"children":230},{"style":229},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[231],{"type":78,"value":232},"export",{"type":66,"tag":156,"props":234,"children":235},{"style":229},[236],{"type":78,"value":237}," default",{"type":66,"tag":156,"props":239,"children":241},{"style":240},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[242],{"type":78,"value":243}," defineNuxtConfig",{"type":66,"tag":156,"props":245,"children":247},{"style":246},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[248],{"type":78,"value":249},"(",{"type":66,"tag":156,"props":251,"children":253},{"style":252},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[254],{"type":78,"value":255},"{\n",{"type":66,"tag":156,"props":257,"children":259},{"class":158,"line":258},2,[260,266,270,275,280,284,288,293],{"type":66,"tag":156,"props":261,"children":263},{"style":262},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[264],{"type":78,"value":265}," modules",{"type":66,"tag":156,"props":267,"children":268},{"style":252},[269],{"type":78,"value":214},{"type":66,"tag":156,"props":271,"children":272},{"style":246},[273],{"type":78,"value":274}," [",{"type":66,"tag":156,"props":276,"children":277},{"style":252},[278],{"type":78,"value":279},"'",{"type":66,"tag":156,"props":281,"children":282},{"style":169},[283],{"type":78,"value":79},{"type":66,"tag":156,"props":285,"children":286},{"style":252},[287],{"type":78,"value":279},{"type":66,"tag":156,"props":289,"children":290},{"style":246},[291],{"type":78,"value":292},"]",{"type":66,"tag":156,"props":294,"children":295},{"style":252},[296],{"type":78,"value":297},",\n",{"type":66,"tag":156,"props":299,"children":301},{"class":158,"line":300},3,[302,307],{"type":66,"tag":156,"props":303,"children":304},{"style":252},[305],{"type":78,"value":306},"}",{"type":66,"tag":156,"props":308,"children":309},{"style":246},[310],{"type":78,"value":311},")\n",{"type":66,"tag":67,"props":313,"children":314},{},[315,316,322,324,330,331,337],{"type":78,"value":136},{"type":66,"tag":138,"props":317,"children":319},{"className":318},[],[320],{"type":78,"value":321},"SUPABASE_URL",{"type":78,"value":323}," and ",{"type":66,"tag":138,"props":325,"children":327},{"className":326},[],[328],{"type":78,"value":329},"SUPABASE_KEY",{"type":78,"value":198},{"type":66,"tag":138,"props":332,"children":334},{"className":333},[],[335],{"type":78,"value":336},".env",{"type":78,"value":214},{"type":66,"tag":146,"props":339,"children":342},{"className":148,"code":340,"filename":341,"language":150,"meta":59,"style":59},"SUPABASE_URL=\"https://example.supabase.co\"\nSUPABASE_KEY=\"\u003Cyour_key>\"\n","env",[343],{"type":66,"tag":138,"props":344,"children":345},{"__ignoreMap":59},[346,373],{"type":66,"tag":156,"props":347,"children":348},{"class":158,"line":159},[349,353,358,363,368],{"type":66,"tag":156,"props":350,"children":351},{"style":246},[352],{"type":78,"value":321},{"type":66,"tag":156,"props":354,"children":355},{"style":252},[356],{"type":78,"value":357},"=",{"type":66,"tag":156,"props":359,"children":360},{"style":252},[361],{"type":78,"value":362},"\"",{"type":66,"tag":156,"props":364,"children":365},{"style":169},[366],{"type":78,"value":367},"https://example.supabase.co",{"type":66,"tag":156,"props":369,"children":370},{"style":252},[371],{"type":78,"value":372},"\"\n",{"type":66,"tag":156,"props":374,"children":375},{"class":158,"line":258},[376,380,384,388,393],{"type":66,"tag":156,"props":377,"children":378},{"style":246},[379],{"type":78,"value":329},{"type":66,"tag":156,"props":381,"children":382},{"style":252},[383],{"type":78,"value":357},{"type":66,"tag":156,"props":385,"children":386},{"style":252},[387],{"type":78,"value":362},{"type":66,"tag":156,"props":389,"children":390},{"style":169},[391],{"type":78,"value":392},"\u003Cyour_key>",{"type":66,"tag":156,"props":394,"children":395},{"style":252},[396],{"type":78,"value":372},{"type":66,"tag":106,"props":398,"children":400},{"icon":399},"i-heroicons-light-bulb",[401],{"type":66,"tag":67,"props":402,"children":403},{},[404,406,412],{"type":78,"value":405},"Alternatively, you can prefix the env variables with ",{"type":66,"tag":138,"props":407,"children":409},{"className":408},[],[410],{"type":78,"value":411},"NUXT_PUBLIC_",{"type":78,"value":413}," in order to use runtimeConfig.",{"type":66,"tag":126,"props":415,"children":417},{"id":416},"options",[418],{"type":78,"value":419},"Options",{"type":66,"tag":67,"props":421,"children":422},{},[423,425,431,433,439],{"type":78,"value":424},"You can configure the supabase module by using the ",{"type":66,"tag":138,"props":426,"children":428},{"className":427},[],[429],{"type":78,"value":430},"supabase",{"type":78,"value":432}," key in ",{"type":66,"tag":138,"props":434,"children":436},{"className":435},[],[437],{"type":78,"value":438},"nuxt.config",{"type":78,"value":214},{"type":66,"tag":146,"props":441,"children":443},{"className":217,"code":442,"filename":212,"language":219,"meta":59,"style":59},"export default defineNuxtConfig({\n // ...\n supabase: {\n // Options\n }\n}\n",[444],{"type":66,"tag":138,"props":445,"children":446},{"__ignoreMap":59},[447,470,479,496,505,514],{"type":66,"tag":156,"props":448,"children":449},{"class":158,"line":159},[450,454,458,462,466],{"type":66,"tag":156,"props":451,"children":452},{"style":229},[453],{"type":78,"value":232},{"type":66,"tag":156,"props":455,"children":456},{"style":229},[457],{"type":78,"value":237},{"type":66,"tag":156,"props":459,"children":460},{"style":240},[461],{"type":78,"value":243},{"type":66,"tag":156,"props":463,"children":464},{"style":246},[465],{"type":78,"value":249},{"type":66,"tag":156,"props":467,"children":468},{"style":252},[469],{"type":78,"value":255},{"type":66,"tag":156,"props":471,"children":472},{"class":158,"line":258},[473],{"type":66,"tag":156,"props":474,"children":476},{"style":475},"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[477],{"type":78,"value":478}," // ...\n",{"type":66,"tag":156,"props":480,"children":481},{"class":158,"line":300},[482,487,491],{"type":66,"tag":156,"props":483,"children":484},{"style":262},[485],{"type":78,"value":486}," supabase",{"type":66,"tag":156,"props":488,"children":489},{"style":252},[490],{"type":78,"value":214},{"type":66,"tag":156,"props":492,"children":493},{"style":252},[494],{"type":78,"value":495}," {\n",{"type":66,"tag":156,"props":497,"children":499},{"class":158,"line":498},4,[500],{"type":66,"tag":156,"props":501,"children":502},{"style":475},[503],{"type":78,"value":504}," // Options\n",{"type":66,"tag":156,"props":506,"children":508},{"class":158,"line":507},5,[509],{"type":66,"tag":156,"props":510,"children":511},{"style":252},[512],{"type":78,"value":513}," }\n",{"type":66,"tag":156,"props":515,"children":517},{"class":158,"line":516},6,[518],{"type":66,"tag":156,"props":519,"children":520},{"style":252},[521],{"type":78,"value":522},"}\n",{"type":66,"tag":524,"props":525,"children":527},"h3",{"id":526},"url",[528],{"type":66,"tag":138,"props":529,"children":531},{"className":530},[],[532],{"type":78,"value":526},{"type":66,"tag":67,"props":534,"children":535},{},[536,538,544,546,551],{"type":78,"value":537},"Default: ",{"type":66,"tag":138,"props":539,"children":541},{"className":540},[],[542],{"type":78,"value":543},"process.env.SUPABASE_URL",{"type":78,"value":545}," (ex: ",{"type":66,"tag":71,"props":547,"children":549},{"href":367,"rel":548},[75],[550],{"type":78,"value":367},{"type":78,"value":552},")",{"type":66,"tag":67,"props":554,"children":555},{},[556],{"type":78,"value":557},"The unique Supabase URL which is supplied when you create a new project in your project dashboard.",{"type":66,"tag":524,"props":559,"children":561},{"id":560},"key",[562],{"type":66,"tag":138,"props":563,"children":565},{"className":564},[],[566],{"type":78,"value":560},{"type":66,"tag":67,"props":568,"children":569},{},[570,571],{"type":78,"value":537},{"type":66,"tag":138,"props":572,"children":574},{"className":573},[],[575],{"type":78,"value":576},"process.env.SUPABASE_KEY",{"type":66,"tag":67,"props":578,"children":579},{},[580],{"type":78,"value":581},"Supabase 'anon key', used to bypass the Supabase API gateway and interact with your Supabase database making use of user JWT to apply RLS Policies.",{"type":66,"tag":524,"props":583,"children":585},{"id":584},"servicekey",[586],{"type":66,"tag":138,"props":587,"children":589},{"className":588},[],[590],{"type":78,"value":591},"serviceKey",{"type":66,"tag":67,"props":593,"children":594},{},[595,596],{"type":78,"value":537},{"type":66,"tag":138,"props":597,"children":599},{"className":598},[],[600],{"type":78,"value":601},"process.env.SUPABASE_SERVICE_KEY",{"type":66,"tag":67,"props":603,"children":604},{},[605],{"type":78,"value":606},"Supabase 'service role key', has super admin rights and can bypass your Row Level Security.",{"type":66,"tag":524,"props":608,"children":610},{"id":609},"redirect",[611],{"type":66,"tag":138,"props":612,"children":614},{"className":613},[],[615],{"type":78,"value":609},{"type":66,"tag":67,"props":617,"children":618},{},[619,620],{"type":78,"value":537},{"type":66,"tag":138,"props":621,"children":623},{"className":622},[],[624],{"type":78,"value":625},"true",{"type":66,"tag":67,"props":627,"children":628},{},[629],{"type":78,"value":630},"Redirect automatically to the configured login page if a non authenticated user is trying to access a guarded. You can disable all redirects by setting this option to false.",{"type":66,"tag":524,"props":632,"children":634},{"id":633},"redirectoptions",[635],{"type":66,"tag":138,"props":636,"children":638},{"className":637},[],[639],{"type":78,"value":640},"redirectOptions",{"type":66,"tag":67,"props":642,"children":643},{},[644],{"type":78,"value":645},"Default:",{"type":66,"tag":146,"props":647,"children":649},{"className":217,"code":648,"filename":212,"language":219,"meta":59,"style":59}," redirectOptions: {\n login: '/login',\n callback: '/confirm',\n include: undefined,\n exclude: [],\n cookieRedirect: false,\n }\n",[650],{"type":66,"tag":138,"props":651,"children":652},{"__ignoreMap":59},[653,669,699,728,745,766,788],{"type":66,"tag":156,"props":654,"children":655},{"class":158,"line":159},[656,661,665],{"type":66,"tag":156,"props":657,"children":658},{"style":163},[659],{"type":78,"value":660}," redirectOptions",{"type":66,"tag":156,"props":662,"children":663},{"style":252},[664],{"type":78,"value":214},{"type":66,"tag":156,"props":666,"children":667},{"style":252},[668],{"type":78,"value":495},{"type":66,"tag":156,"props":670,"children":671},{"class":158,"line":258},[672,677,681,686,691,695],{"type":66,"tag":156,"props":673,"children":674},{"style":163},[675],{"type":78,"value":676}," login",{"type":66,"tag":156,"props":678,"children":679},{"style":252},[680],{"type":78,"value":214},{"type":66,"tag":156,"props":682,"children":683},{"style":252},[684],{"type":78,"value":685}," '",{"type":66,"tag":156,"props":687,"children":688},{"style":169},[689],{"type":78,"value":690},"/login",{"type":66,"tag":156,"props":692,"children":693},{"style":252},[694],{"type":78,"value":279},{"type":66,"tag":156,"props":696,"children":697},{"style":252},[698],{"type":78,"value":297},{"type":66,"tag":156,"props":700,"children":701},{"class":158,"line":300},[702,707,711,715,720,724],{"type":66,"tag":156,"props":703,"children":704},{"style":163},[705],{"type":78,"value":706}," callback",{"type":66,"tag":156,"props":708,"children":709},{"style":252},[710],{"type":78,"value":214},{"type":66,"tag":156,"props":712,"children":713},{"style":252},[714],{"type":78,"value":685},{"type":66,"tag":156,"props":716,"children":717},{"style":169},[718],{"type":78,"value":719},"/confirm",{"type":66,"tag":156,"props":721,"children":722},{"style":252},[723],{"type":78,"value":279},{"type":66,"tag":156,"props":725,"children":726},{"style":252},[727],{"type":78,"value":297},{"type":66,"tag":156,"props":729,"children":730},{"class":158,"line":498},[731,736,740],{"type":66,"tag":156,"props":732,"children":733},{"style":163},[734],{"type":78,"value":735}," include",{"type":66,"tag":156,"props":737,"children":738},{"style":252},[739],{"type":78,"value":214},{"type":66,"tag":156,"props":741,"children":742},{"style":252},[743],{"type":78,"value":744}," undefined,\n",{"type":66,"tag":156,"props":746,"children":747},{"class":158,"line":507},[748,753,757,762],{"type":66,"tag":156,"props":749,"children":750},{"style":163},[751],{"type":78,"value":752}," exclude",{"type":66,"tag":156,"props":754,"children":755},{"style":252},[756],{"type":78,"value":214},{"type":66,"tag":156,"props":758,"children":759},{"style":262},[760],{"type":78,"value":761}," []",{"type":66,"tag":156,"props":763,"children":764},{"style":252},[765],{"type":78,"value":297},{"type":66,"tag":156,"props":767,"children":768},{"class":158,"line":516},[769,774,778,784],{"type":66,"tag":156,"props":770,"children":771},{"style":163},[772],{"type":78,"value":773}," cookieRedirect",{"type":66,"tag":156,"props":775,"children":776},{"style":252},[777],{"type":78,"value":214},{"type":66,"tag":156,"props":779,"children":781},{"style":780},"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC",[782],{"type":78,"value":783}," false",{"type":66,"tag":156,"props":785,"children":786},{"style":252},[787],{"type":78,"value":297},{"type":66,"tag":156,"props":789,"children":791},{"class":158,"line":790},7,[792],{"type":66,"tag":156,"props":793,"children":794},{"style":252},[795],{"type":78,"value":513},{"type":66,"tag":797,"props":798,"children":799},"ul",{},[800,812,847,874,909],{"type":66,"tag":801,"props":802,"children":803},"li",{},[804,810],{"type":66,"tag":138,"props":805,"children":807},{"className":806},[],[808],{"type":78,"value":809},"login",{"type":78,"value":811},": User will be redirected to this path if not authenticated or after logout.",{"type":66,"tag":801,"props":813,"children":814},{},[815,821,823,829,831,838,840,846],{"type":66,"tag":138,"props":816,"children":818},{"className":817},[],[819],{"type":78,"value":820},"callback",{"type":78,"value":822},": This is the path the user will be redirect to after supabase login redirection. Should match configured ",{"type":66,"tag":138,"props":824,"children":826},{"className":825},[],[827],{"type":78,"value":828},"redirectTo",{"type":78,"value":830}," option of your ",{"type":66,"tag":71,"props":832,"children":835},{"href":833,"rel":834},"https://supabase.com/docs/reference/javascript/auth-signinwithoauth",[75],[836],{"type":78,"value":837},"signIn method",{"type":78,"value":839},". Should also be configured in your Supabase dashboard under ",{"type":66,"tag":138,"props":841,"children":843},{"className":842},[],[844],{"type":78,"value":845},"Authentication -> URL Configuration -> Redirect URLs",{"type":78,"value":124},{"type":66,"tag":801,"props":848,"children":849},{},[850,856,858,864,866,872],{"type":66,"tag":138,"props":851,"children":853},{"className":852},[],[854],{"type":78,"value":855},"include",{"type":78,"value":857},": Routes to include in the redirect. ",{"type":66,"tag":138,"props":859,"children":861},{"className":860},[],[862],{"type":78,"value":863},"['/admin(/*)?']",{"type":78,"value":865}," will enable the redirect only for the ",{"type":66,"tag":138,"props":867,"children":869},{"className":868},[],[870],{"type":78,"value":871},"admin",{"type":78,"value":873}," page and all sub-pages.",{"type":66,"tag":801,"props":875,"children":876},{},[877,883,885,891,893,899,901,907],{"type":66,"tag":138,"props":878,"children":880},{"className":879},[],[881],{"type":78,"value":882},"exclude",{"type":78,"value":884},": Routes to exclude from the redirect. ",{"type":66,"tag":138,"props":886,"children":888},{"className":887},[],[889],{"type":78,"value":890},"['/foo', '/bar/*']",{"type":78,"value":892}," will exclude the ",{"type":66,"tag":138,"props":894,"children":896},{"className":895},[],[897],{"type":78,"value":898},"foo",{"type":78,"value":900}," page and all pages in your ",{"type":66,"tag":138,"props":902,"children":904},{"className":903},[],[905],{"type":78,"value":906},"bar",{"type":78,"value":908}," folder.",{"type":66,"tag":801,"props":910,"children":911},{},[912,918,920,930],{"type":66,"tag":138,"props":913,"children":915},{"className":914},[],[916],{"type":78,"value":917},"cookieRedirect",{"type":78,"value":919},": Sets a cookie containing the path an unauthenticated user tried to access. The cookie can then be used on the ",{"type":66,"tag":71,"props":921,"children":924},{"href":922,"rel":923},"https://supabase.nuxtjs.org/authentication#confirm-page-confirm",[75],[925],{"type":66,"tag":138,"props":926,"children":928},{"className":927},[],[929],{"type":78,"value":719},{"type":78,"value":931}," page to redirect the user to the page they previously tried to visit.",{"type":66,"tag":524,"props":933,"children":935},{"id":934},"cookiename",[936],{"type":66,"tag":138,"props":937,"children":939},{"className":938},[],[940],{"type":78,"value":941},"cookieName",{"type":66,"tag":67,"props":943,"children":944},{},[945,946],{"type":78,"value":537},{"type":66,"tag":138,"props":947,"children":949},{"className":948},[],[950],{"type":78,"value":951},"sb",{"type":66,"tag":67,"props":953,"children":954},{},[955,957,962,964,970,972],{"type":78,"value":956},"Cookie name used for storing the redirect path when using the ",{"type":66,"tag":138,"props":958,"children":960},{"className":959},[],[961],{"type":78,"value":609},{"type":78,"value":963}," option, added in front of ",{"type":66,"tag":138,"props":965,"children":967},{"className":966},[],[968],{"type":78,"value":969},"-redirect-path",{"type":78,"value":971}," to form the full cookie name e.g. ",{"type":66,"tag":138,"props":973,"children":975},{"className":974},[],[976],{"type":78,"value":977},"sb-redirect-path",{"type":66,"tag":524,"props":979,"children":981},{"id":980},"cookieoptions",[982],{"type":66,"tag":138,"props":983,"children":985},{"className":984},[],[986],{"type":78,"value":987},"cookieOptions",{"type":66,"tag":146,"props":989,"children":991},{"className":217,"code":990,"language":219,"meta":59,"style":59}," cookieOptions: {\n maxAge: 60 * 60 * 8,\n sameSite: 'lax',\n secure: true\n }\n",[992],{"type":66,"tag":138,"props":993,"children":994},{"__ignoreMap":59},[995,1011,1051,1080,1097],{"type":66,"tag":156,"props":996,"children":997},{"class":158,"line":159},[998,1003,1007],{"type":66,"tag":156,"props":999,"children":1000},{"style":163},[1001],{"type":78,"value":1002}," cookieOptions",{"type":66,"tag":156,"props":1004,"children":1005},{"style":252},[1006],{"type":78,"value":214},{"type":66,"tag":156,"props":1008,"children":1009},{"style":252},[1010],{"type":78,"value":495},{"type":66,"tag":156,"props":1012,"children":1013},{"class":158,"line":258},[1014,1019,1023,1029,1034,1038,1042,1047],{"type":66,"tag":156,"props":1015,"children":1016},{"style":163},[1017],{"type":78,"value":1018}," maxAge",{"type":66,"tag":156,"props":1020,"children":1021},{"style":252},[1022],{"type":78,"value":214},{"type":66,"tag":156,"props":1024,"children":1026},{"style":1025},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[1027],{"type":78,"value":1028}," 60",{"type":66,"tag":156,"props":1030,"children":1031},{"style":252},[1032],{"type":78,"value":1033}," *",{"type":66,"tag":156,"props":1035,"children":1036},{"style":1025},[1037],{"type":78,"value":1028},{"type":66,"tag":156,"props":1039,"children":1040},{"style":252},[1041],{"type":78,"value":1033},{"type":66,"tag":156,"props":1043,"children":1044},{"style":1025},[1045],{"type":78,"value":1046}," 8",{"type":66,"tag":156,"props":1048,"children":1049},{"style":252},[1050],{"type":78,"value":297},{"type":66,"tag":156,"props":1052,"children":1053},{"class":158,"line":300},[1054,1059,1063,1067,1072,1076],{"type":66,"tag":156,"props":1055,"children":1056},{"style":163},[1057],{"type":78,"value":1058}," sameSite",{"type":66,"tag":156,"props":1060,"children":1061},{"style":252},[1062],{"type":78,"value":214},{"type":66,"tag":156,"props":1064,"children":1065},{"style":252},[1066],{"type":78,"value":685},{"type":66,"tag":156,"props":1068,"children":1069},{"style":169},[1070],{"type":78,"value":1071},"lax",{"type":66,"tag":156,"props":1073,"children":1074},{"style":252},[1075],{"type":78,"value":279},{"type":66,"tag":156,"props":1077,"children":1078},{"style":252},[1079],{"type":78,"value":297},{"type":66,"tag":156,"props":1081,"children":1082},{"class":158,"line":498},[1083,1088,1092],{"type":66,"tag":156,"props":1084,"children":1085},{"style":163},[1086],{"type":78,"value":1087}," secure",{"type":66,"tag":156,"props":1089,"children":1090},{"style":252},[1091],{"type":78,"value":214},{"type":66,"tag":156,"props":1093,"children":1094},{"style":780},[1095],{"type":78,"value":1096}," true\n",{"type":66,"tag":156,"props":1098,"children":1099},{"class":158,"line":507},[1100],{"type":66,"tag":156,"props":1101,"children":1102},{"style":252},[1103],{"type":78,"value":513},{"type":66,"tag":67,"props":1105,"children":1106},{},[1107,1109,1115],{"type":78,"value":1108},"Options for cookies used to share tokens between server and client, refer to ",{"type":66,"tag":71,"props":1110,"children":1113},{"href":1111,"rel":1112},"https://nuxt.com/docs/api/composables/use-cookie#options",[75],[1114],{"type":78,"value":987},{"type":78,"value":1116}," for available settings. Please note that the lifetime set here does not determine the Supabase session lifetime.",{"type":66,"tag":524,"props":1118,"children":1120},{"id":1119},"types",[1121],{"type":66,"tag":138,"props":1122,"children":1124},{"className":1123},[],[1125],{"type":78,"value":1119},{"type":66,"tag":67,"props":1127,"children":1128},{},[1129,1130],{"type":78,"value":537},{"type":66,"tag":138,"props":1131,"children":1133},{"className":1132},[],[1134],{"type":78,"value":1135},"./types/database.types.ts",{"type":66,"tag":67,"props":1137,"children":1138},{},[1139,1141,1146,1148,1153,1154,1159],{"type":78,"value":1140},"The path for the generated Supabase TypeScript definitions. The database definitions will be automatically passed to all clients: ",{"type":66,"tag":138,"props":1142,"children":1144},{"className":1143},[],[1145],{"type":78,"value":21},{"type":78,"value":1147},", ",{"type":66,"tag":138,"props":1149,"children":1151},{"className":1150},[],[1152],{"type":78,"value":34},{"type":78,"value":323},{"type":66,"tag":138,"props":1155,"children":1157},{"className":1156},[],[1158],{"type":78,"value":37},{"type":78,"value":124},{"type":66,"tag":146,"props":1161,"children":1163},{"className":148,"code":1162,"language":150,"meta":59,"style":59},"## Generate types from live database\nsupabase gen types --lang=typescript --project-id YourProjectId > types/database.types.ts\n\n## Generate types when using local environment\nsupabase gen types --lang=typescript --local > types/database.types.ts\n",[1164],{"type":66,"tag":138,"props":1165,"children":1166},{"__ignoreMap":59},[1167,1175,1217,1226,1234],{"type":66,"tag":156,"props":1168,"children":1169},{"class":158,"line":159},[1170],{"type":66,"tag":156,"props":1171,"children":1172},{"style":475},[1173],{"type":78,"value":1174},"## Generate types from live database\n",{"type":66,"tag":156,"props":1176,"children":1177},{"class":158,"line":258},[1178,1182,1187,1192,1197,1202,1207,1212],{"type":66,"tag":156,"props":1179,"children":1180},{"style":163},[1181],{"type":78,"value":430},{"type":66,"tag":156,"props":1183,"children":1184},{"style":169},[1185],{"type":78,"value":1186}," gen",{"type":66,"tag":156,"props":1188,"children":1189},{"style":169},[1190],{"type":78,"value":1191}," types",{"type":66,"tag":156,"props":1193,"children":1194},{"style":169},[1195],{"type":78,"value":1196}," --lang=typescript",{"type":66,"tag":156,"props":1198,"children":1199},{"style":169},[1200],{"type":78,"value":1201}," --project-id",{"type":66,"tag":156,"props":1203,"children":1204},{"style":169},[1205],{"type":78,"value":1206}," YourProjectId",{"type":66,"tag":156,"props":1208,"children":1209},{"style":252},[1210],{"type":78,"value":1211}," >",{"type":66,"tag":156,"props":1213,"children":1214},{"style":169},[1215],{"type":78,"value":1216}," types/database.types.ts\n",{"type":66,"tag":156,"props":1218,"children":1219},{"class":158,"line":300},[1220],{"type":66,"tag":156,"props":1221,"children":1223},{"emptyLinePlaceholder":1222},true,[1224],{"type":78,"value":1225},"\n",{"type":66,"tag":156,"props":1227,"children":1228},{"class":158,"line":498},[1229],{"type":66,"tag":156,"props":1230,"children":1231},{"style":475},[1232],{"type":78,"value":1233},"## Generate types when using local environment\n",{"type":66,"tag":156,"props":1235,"children":1236},{"class":158,"line":507},[1237,1241,1245,1249,1253,1258,1262],{"type":66,"tag":156,"props":1238,"children":1239},{"style":163},[1240],{"type":78,"value":430},{"type":66,"tag":156,"props":1242,"children":1243},{"style":169},[1244],{"type":78,"value":1186},{"type":66,"tag":156,"props":1246,"children":1247},{"style":169},[1248],{"type":78,"value":1191},{"type":66,"tag":156,"props":1250,"children":1251},{"style":169},[1252],{"type":78,"value":1196},{"type":66,"tag":156,"props":1254,"children":1255},{"style":169},[1256],{"type":78,"value":1257}," --local",{"type":66,"tag":156,"props":1259,"children":1260},{"style":252},[1261],{"type":78,"value":1211},{"type":66,"tag":156,"props":1263,"children":1264},{"style":169},[1265],{"type":78,"value":1216},{"type":66,"tag":67,"props":1267,"children":1268},{},[1269,1271,1277],{"type":78,"value":1270},"Set to ",{"type":66,"tag":138,"props":1272,"children":1274},{"className":1273},[],[1275],{"type":78,"value":1276},"false",{"type":78,"value":1278}," to disable.",{"type":66,"tag":67,"props":1280,"children":1281},{},[1282,1284,1291],{"type":78,"value":1283},"Check Supabase ",{"type":66,"tag":71,"props":1285,"children":1288},{"href":1286,"rel":1287},"https://supabase.com/docs/reference/javascript/release-notes#typescript-support",[75],[1289],{"type":78,"value":1290},"documentation",{"type":78,"value":1292}," for further information.",{"type":66,"tag":524,"props":1294,"children":1296},{"id":1295},"clientoptions",[1297],{"type":66,"tag":138,"props":1298,"children":1300},{"className":1299},[],[1301],{"type":78,"value":1302},"clientOptions",{"type":66,"tag":67,"props":1304,"children":1305},{},[1306],{"type":78,"value":645},{"type":66,"tag":146,"props":1308,"children":1310},{"className":217,"code":1309,"language":219,"meta":59,"style":59}," clientOptions: { }\n",[1311],{"type":66,"tag":138,"props":1312,"children":1313},{"__ignoreMap":59},[1314],{"type":66,"tag":156,"props":1315,"children":1316},{"class":158,"line":159},[1317,1322,1326,1331],{"type":66,"tag":156,"props":1318,"children":1319},{"style":163},[1320],{"type":78,"value":1321}," clientOptions",{"type":66,"tag":156,"props":1323,"children":1324},{"style":252},[1325],{"type":78,"value":214},{"type":66,"tag":156,"props":1327,"children":1328},{"style":252},[1329],{"type":78,"value":1330}," {",{"type":66,"tag":156,"props":1332,"children":1333},{"style":252},[1334],{"type":78,"value":1335}," }\n",{"type":66,"tag":67,"props":1337,"children":1338},{},[1339,1341,1348,1350,1356],{"type":78,"value":1340},"Supabase client options ",{"type":66,"tag":71,"props":1342,"children":1345},{"href":1343,"rel":1344},"https://supabase.com/docs/reference/javascript/initializing#parameters",[75],[1346],{"type":78,"value":1347},"available here",{"type":78,"value":1349}," merged with default values from ",{"type":66,"tag":138,"props":1351,"children":1353},{"className":1352},[],[1354],{"type":78,"value":1355},"@supabase/ssr",{"type":78,"value":214},{"type":66,"tag":146,"props":1358,"children":1360},{"className":217,"code":1359,"language":219,"meta":59,"style":59}," clientOptions: {\n auth: {\n flowType: 'pkce',\n autoRefreshToken: isBrowser(),\n detectSessionInUrl: isBrowser(),\n persistSession: true,\n },\n }\n",[1361],{"type":66,"tag":138,"props":1362,"children":1363},{"__ignoreMap":59},[1364,1379,1395,1424,1450,1474,1495,1503],{"type":66,"tag":156,"props":1365,"children":1366},{"class":158,"line":159},[1367,1371,1375],{"type":66,"tag":156,"props":1368,"children":1369},{"style":163},[1370],{"type":78,"value":1321},{"type":66,"tag":156,"props":1372,"children":1373},{"style":252},[1374],{"type":78,"value":214},{"type":66,"tag":156,"props":1376,"children":1377},{"style":252},[1378],{"type":78,"value":495},{"type":66,"tag":156,"props":1380,"children":1381},{"class":158,"line":258},[1382,1387,1391],{"type":66,"tag":156,"props":1383,"children":1384},{"style":163},[1385],{"type":78,"value":1386}," auth",{"type":66,"tag":156,"props":1388,"children":1389},{"style":252},[1390],{"type":78,"value":214},{"type":66,"tag":156,"props":1392,"children":1393},{"style":252},[1394],{"type":78,"value":495},{"type":66,"tag":156,"props":1396,"children":1397},{"class":158,"line":300},[1398,1403,1407,1411,1416,1420],{"type":66,"tag":156,"props":1399,"children":1400},{"style":163},[1401],{"type":78,"value":1402}," flowType",{"type":66,"tag":156,"props":1404,"children":1405},{"style":252},[1406],{"type":78,"value":214},{"type":66,"tag":156,"props":1408,"children":1409},{"style":252},[1410],{"type":78,"value":685},{"type":66,"tag":156,"props":1412,"children":1413},{"style":169},[1414],{"type":78,"value":1415},"pkce",{"type":66,"tag":156,"props":1417,"children":1418},{"style":252},[1419],{"type":78,"value":279},{"type":66,"tag":156,"props":1421,"children":1422},{"style":252},[1423],{"type":78,"value":297},{"type":66,"tag":156,"props":1425,"children":1426},{"class":158,"line":498},[1427,1432,1436,1441,1446],{"type":66,"tag":156,"props":1428,"children":1429},{"style":163},[1430],{"type":78,"value":1431}," autoRefreshToken",{"type":66,"tag":156,"props":1433,"children":1434},{"style":252},[1435],{"type":78,"value":214},{"type":66,"tag":156,"props":1437,"children":1438},{"style":240},[1439],{"type":78,"value":1440}," isBrowser",{"type":66,"tag":156,"props":1442,"children":1443},{"style":262},[1444],{"type":78,"value":1445},"()",{"type":66,"tag":156,"props":1447,"children":1448},{"style":252},[1449],{"type":78,"value":297},{"type":66,"tag":156,"props":1451,"children":1452},{"class":158,"line":507},[1453,1458,1462,1466,1470],{"type":66,"tag":156,"props":1454,"children":1455},{"style":163},[1456],{"type":78,"value":1457}," detectSessionInUrl",{"type":66,"tag":156,"props":1459,"children":1460},{"style":252},[1461],{"type":78,"value":214},{"type":66,"tag":156,"props":1463,"children":1464},{"style":240},[1465],{"type":78,"value":1440},{"type":66,"tag":156,"props":1467,"children":1468},{"style":262},[1469],{"type":78,"value":1445},{"type":66,"tag":156,"props":1471,"children":1472},{"style":252},[1473],{"type":78,"value":297},{"type":66,"tag":156,"props":1475,"children":1476},{"class":158,"line":516},[1477,1482,1486,1491],{"type":66,"tag":156,"props":1478,"children":1479},{"style":163},[1480],{"type":78,"value":1481}," persistSession",{"type":66,"tag":156,"props":1483,"children":1484},{"style":252},[1485],{"type":78,"value":214},{"type":66,"tag":156,"props":1487,"children":1488},{"style":780},[1489],{"type":78,"value":1490}," true",{"type":66,"tag":156,"props":1492,"children":1493},{"style":252},[1494],{"type":78,"value":297},{"type":66,"tag":156,"props":1496,"children":1497},{"class":158,"line":790},[1498],{"type":66,"tag":156,"props":1499,"children":1500},{"style":252},[1501],{"type":78,"value":1502}," },\n",{"type":66,"tag":156,"props":1504,"children":1506},{"class":158,"line":1505},8,[1507],{"type":66,"tag":156,"props":1508,"children":1509},{"style":252},[1510],{"type":78,"value":513},{"type":66,"tag":126,"props":1512,"children":1514},{"id":1513},"demo",[1515],{"type":78,"value":47},{"type":66,"tag":67,"props":1517,"children":1518},{},[1519,1521,1528,1530,1535],{"type":78,"value":1520},"A live demo is made for see this module in action on ",{"type":66,"tag":71,"props":1522,"children":1525},{"href":1523,"rel":1524},"https://n3-supabase.netlify.app",[75],[1526],{"type":78,"value":1527},"n3-supabase.netlify.app",{"type":78,"value":1529},", read more in the ",{"type":66,"tag":71,"props":1531,"children":1532},{"href":48},[1533],{"type":78,"value":1534},"demo section",{"type":78,"value":124},{"type":66,"tag":67,"props":1537,"children":1538},{},[1539],{"type":66,"tag":71,"props":1540,"children":1542},{"href":1523,"rel":1541},[75],[1543],{"type":66,"tag":1544,"props":1545,"children":1548},"img",{"alt":1546,"src":1547},"Supabase demo with Nuxt 3","https://user-images.githubusercontent.com/904724/160422461-8f87500a-8dec-4413-86b2-ba04e1b2d17b.png",[],{"type":66,"tag":67,"props":1550,"children":1551},{},[1552,1554,1561],{"type":78,"value":1553},"Also checkout the ",{"type":66,"tag":71,"props":1555,"children":1558},{"href":1556,"rel":1557},"https://www.youtube.com/watch?v=jIyiRT6zT8Q",[75],[1559],{"type":78,"value":1560},"YouTube video",{"type":78,"value":1562}," about its usage in a live demo.",{"type":66,"tag":1564,"props":1565,"children":1566},"style",{},[1567],{"type":78,"value":1568},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":59,"searchDepth":258,"depth":258,"links":1570},[1571,1572,1583],{"id":128,"depth":258,"text":131},{"id":416,"depth":258,"text":419,"children":1573},[1574,1575,1576,1577,1578,1579,1580,1581,1582],{"id":526,"depth":300,"text":526},{"id":560,"depth":300,"text":560},{"id":584,"depth":300,"text":591},{"id":609,"depth":300,"text":609},{"id":633,"depth":300,"text":640},{"id":934,"depth":300,"text":941},{"id":980,"depth":300,"text":987},{"id":1119,"depth":300,"text":1119},{"id":1295,"depth":300,"text":1302},{"id":1513,"depth":258,"text":47},"markdown","content:2.get-started.md","content","2.get-started.md","2.get-started","md",[1591,1592],null,{"_path":10,"title":9,"description":1593},"Authenticate your user thanks to the PKCE Oauth protocol that enables secure exchange of refresh and access tokens between an application and the authorization server",1725006469113] \ No newline at end of file +[{"data":1,"prerenderedAt":1594},["ShallowReactive",2],{"navigation":3,"/get-started":58,"/get-started-surround":1590},[4,8,12,46,50,54],{"title":5,"_path":6,"icon":7},"Get Started","/get-started","i-heroicons-rocket-launch",{"title":9,"_path":10,"icon":11},"Authentication","/authentication","i-heroicons-lock-closed",{"title":13,"_path":14,"children":15,"icon":45},"Usage","/usage",[16,29],{"title":17,"_path":18,"children":19},"Vue composables","/usage/composables",[20,23,26],{"title":21,"_path":22},"useSupabaseClient","/usage/composables/usesupabaseclient",{"title":24,"_path":25},"useSupabaseSession","/usage/composables/usesupabasesession",{"title":27,"_path":28},"useSupabaseUser","/usage/composables/usesupabaseuser",{"title":30,"_path":31,"children":32},"Server services","/usage/services",[33,36,39,42],{"title":34,"_path":35},"serverSupabaseClient","/usage/services/serversupabaseclient",{"title":37,"_path":38},"serverSupabaseServiceRole","/usage/services/serversupabaseservicerole",{"title":40,"_path":41},"serverSupabaseSession","/usage/services/serversupabasesession",{"title":43,"_path":44},"serverSupabaseUser","/usage/services/serversupabaseuser","heroicons:book-open",{"title":47,"_path":48,"icon":49},"Demo","/demo","i-heroicons-computer-desktop-20-solid",{"title":51,"_path":52,"icon":53},"Changelog","/changelog","i-heroicons-bookmark",{"title":55,"_path":56,"icon":57},"Roadmap","/roadmap","i-heroicons-map",{"_path":6,"_dir":59,"_draft":60,"_partial":60,"_locale":59,"title":5,"description":61,"icon":7,"body":62,"_type":1584,"_id":1585,"_source":1586,"_file":1587,"_stem":1588,"_extension":1589},"",false,"@nuxtjs/supabase is a Nuxt module for first class integration with Supabase.",{"type":63,"children":64,"toc":1569},"root",[65,82,105,125,132,145,188,215,312,338,397,414,420,440,523,533,553,558,567,577,582,592,602,607,616,626,631,641,646,796,932,942,952,978,988,1104,1117,1126,1136,1160,1266,1279,1293,1303,1307,1336,1357,1511,1516,1536,1549,1563],{"type":66,"tag":67,"props":68,"children":69},"element","p",{},[70,80],{"type":66,"tag":71,"props":72,"children":76},"a",{"href":73,"rel":74},"https://github.com/nuxt-modules/supabase",[75],"nofollow",[77],{"type":78,"value":79},"text","@nuxtjs/supabase",{"type":78,"value":81}," is a Nuxt module for first class integration with Supabase.",{"type":66,"tag":67,"props":83,"children":84},{},[85,87,94,96,103],{"type":78,"value":86},"Checkout the ",{"type":66,"tag":71,"props":88,"children":91},{"href":89,"rel":90},"https://v3.nuxtjs.org",[75],[92],{"type":78,"value":93},"Nuxt 3",{"type":78,"value":95}," documentation and ",{"type":66,"tag":71,"props":97,"children":100},{"href":98,"rel":99},"https://supabase.com",[75],[101],{"type":78,"value":102},"Supabase",{"type":78,"value":104}," to learn more.",{"type":66,"tag":106,"props":107,"children":110},"callout",{"icon":108,"color":109},"i-heroicons-exclamation-triangle-20-solid","amber",[111],{"type":66,"tag":67,"props":112,"children":113},{},[114,116,123],{"type":78,"value":115},"For integrating Supabase with Nuxt 2, checkout ",{"type":66,"tag":71,"props":117,"children":120},{"href":118,"rel":119},"https://github.com/supabase-community/nuxt-supabase",[75],[121],{"type":78,"value":122},"supabase-community/nuxt-supabase",{"type":78,"value":124},".",{"type":66,"tag":126,"props":127,"children":129},"h2",{"id":128},"installation",[130],{"type":78,"value":131},"Installation",{"type":66,"tag":67,"props":133,"children":134},{},[135,137,143],{"type":78,"value":136},"Add ",{"type":66,"tag":138,"props":139,"children":141},"code",{"className":140},[],[142],{"type":78,"value":79},{"type":78,"value":144}," dev dependency to your project:",{"type":66,"tag":146,"props":147,"children":151},"pre",{"className":148,"code":149,"language":150,"meta":59,"style":59},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","npx nuxi@latest module add supabase\n","bash",[152],{"type":66,"tag":138,"props":153,"children":154},{"__ignoreMap":59},[155],{"type":66,"tag":156,"props":157,"children":160},"span",{"class":158,"line":159},"line",1,[161,167,173,178,183],{"type":66,"tag":156,"props":162,"children":164},{"style":163},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[165],{"type":78,"value":166},"npx",{"type":66,"tag":156,"props":168,"children":170},{"style":169},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[171],{"type":78,"value":172}," nuxi@latest",{"type":66,"tag":156,"props":174,"children":175},{"style":169},[176],{"type":78,"value":177}," module",{"type":66,"tag":156,"props":179,"children":180},{"style":169},[181],{"type":78,"value":182}," add",{"type":66,"tag":156,"props":184,"children":185},{"style":169},[186],{"type":78,"value":187}," supabase\n",{"type":66,"tag":67,"props":189,"children":190},{},[191,192,197,199,205,207,213],{"type":78,"value":136},{"type":66,"tag":138,"props":193,"children":195},{"className":194},[],[196],{"type":78,"value":79},{"type":78,"value":198}," to the ",{"type":66,"tag":138,"props":200,"children":202},{"className":201},[],[203],{"type":78,"value":204},"modules",{"type":78,"value":206}," section of ",{"type":66,"tag":138,"props":208,"children":210},{"className":209},[],[211],{"type":78,"value":212},"nuxt.config.ts",{"type":78,"value":214},":",{"type":66,"tag":146,"props":216,"children":220},{"className":217,"code":218,"filename":212,"language":219,"meta":59,"style":59},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","export default defineNuxtConfig({\n modules: ['@nuxtjs/supabase'],\n})\n","ts",[221],{"type":66,"tag":138,"props":222,"children":223},{"__ignoreMap":59},[224,256,298],{"type":66,"tag":156,"props":225,"children":226},{"class":158,"line":159},[227,233,238,244,250],{"type":66,"tag":156,"props":228,"children":230},{"style":229},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[231],{"type":78,"value":232},"export",{"type":66,"tag":156,"props":234,"children":235},{"style":229},[236],{"type":78,"value":237}," default",{"type":66,"tag":156,"props":239,"children":241},{"style":240},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[242],{"type":78,"value":243}," defineNuxtConfig",{"type":66,"tag":156,"props":245,"children":247},{"style":246},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[248],{"type":78,"value":249},"(",{"type":66,"tag":156,"props":251,"children":253},{"style":252},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[254],{"type":78,"value":255},"{\n",{"type":66,"tag":156,"props":257,"children":259},{"class":158,"line":258},2,[260,266,270,275,280,284,288,293],{"type":66,"tag":156,"props":261,"children":263},{"style":262},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[264],{"type":78,"value":265}," modules",{"type":66,"tag":156,"props":267,"children":268},{"style":252},[269],{"type":78,"value":214},{"type":66,"tag":156,"props":271,"children":272},{"style":246},[273],{"type":78,"value":274}," [",{"type":66,"tag":156,"props":276,"children":277},{"style":252},[278],{"type":78,"value":279},"'",{"type":66,"tag":156,"props":281,"children":282},{"style":169},[283],{"type":78,"value":79},{"type":66,"tag":156,"props":285,"children":286},{"style":252},[287],{"type":78,"value":279},{"type":66,"tag":156,"props":289,"children":290},{"style":246},[291],{"type":78,"value":292},"]",{"type":66,"tag":156,"props":294,"children":295},{"style":252},[296],{"type":78,"value":297},",\n",{"type":66,"tag":156,"props":299,"children":301},{"class":158,"line":300},3,[302,307],{"type":66,"tag":156,"props":303,"children":304},{"style":252},[305],{"type":78,"value":306},"}",{"type":66,"tag":156,"props":308,"children":309},{"style":246},[310],{"type":78,"value":311},")\n",{"type":66,"tag":67,"props":313,"children":314},{},[315,316,322,324,330,331,337],{"type":78,"value":136},{"type":66,"tag":138,"props":317,"children":319},{"className":318},[],[320],{"type":78,"value":321},"SUPABASE_URL",{"type":78,"value":323}," and ",{"type":66,"tag":138,"props":325,"children":327},{"className":326},[],[328],{"type":78,"value":329},"SUPABASE_KEY",{"type":78,"value":198},{"type":66,"tag":138,"props":332,"children":334},{"className":333},[],[335],{"type":78,"value":336},".env",{"type":78,"value":214},{"type":66,"tag":146,"props":339,"children":342},{"className":148,"code":340,"filename":341,"language":150,"meta":59,"style":59},"SUPABASE_URL=\"https://example.supabase.co\"\nSUPABASE_KEY=\"\u003Cyour_key>\"\n","env",[343],{"type":66,"tag":138,"props":344,"children":345},{"__ignoreMap":59},[346,373],{"type":66,"tag":156,"props":347,"children":348},{"class":158,"line":159},[349,353,358,363,368],{"type":66,"tag":156,"props":350,"children":351},{"style":246},[352],{"type":78,"value":321},{"type":66,"tag":156,"props":354,"children":355},{"style":252},[356],{"type":78,"value":357},"=",{"type":66,"tag":156,"props":359,"children":360},{"style":252},[361],{"type":78,"value":362},"\"",{"type":66,"tag":156,"props":364,"children":365},{"style":169},[366],{"type":78,"value":367},"https://example.supabase.co",{"type":66,"tag":156,"props":369,"children":370},{"style":252},[371],{"type":78,"value":372},"\"\n",{"type":66,"tag":156,"props":374,"children":375},{"class":158,"line":258},[376,380,384,388,393],{"type":66,"tag":156,"props":377,"children":378},{"style":246},[379],{"type":78,"value":329},{"type":66,"tag":156,"props":381,"children":382},{"style":252},[383],{"type":78,"value":357},{"type":66,"tag":156,"props":385,"children":386},{"style":252},[387],{"type":78,"value":362},{"type":66,"tag":156,"props":389,"children":390},{"style":169},[391],{"type":78,"value":392},"\u003Cyour_key>",{"type":66,"tag":156,"props":394,"children":395},{"style":252},[396],{"type":78,"value":372},{"type":66,"tag":106,"props":398,"children":400},{"icon":399},"i-heroicons-light-bulb",[401],{"type":66,"tag":67,"props":402,"children":403},{},[404,406,412],{"type":78,"value":405},"Alternatively, you can prefix the env variables with ",{"type":66,"tag":138,"props":407,"children":409},{"className":408},[],[410],{"type":78,"value":411},"NUXT_PUBLIC_",{"type":78,"value":413}," in order to use runtimeConfig.",{"type":66,"tag":126,"props":415,"children":417},{"id":416},"options",[418],{"type":78,"value":419},"Options",{"type":66,"tag":67,"props":421,"children":422},{},[423,425,431,433,439],{"type":78,"value":424},"You can configure the supabase module by using the ",{"type":66,"tag":138,"props":426,"children":428},{"className":427},[],[429],{"type":78,"value":430},"supabase",{"type":78,"value":432}," key in ",{"type":66,"tag":138,"props":434,"children":436},{"className":435},[],[437],{"type":78,"value":438},"nuxt.config",{"type":78,"value":214},{"type":66,"tag":146,"props":441,"children":443},{"className":217,"code":442,"filename":212,"language":219,"meta":59,"style":59},"export default defineNuxtConfig({\n // ...\n supabase: {\n // Options\n }\n}\n",[444],{"type":66,"tag":138,"props":445,"children":446},{"__ignoreMap":59},[447,470,479,496,505,514],{"type":66,"tag":156,"props":448,"children":449},{"class":158,"line":159},[450,454,458,462,466],{"type":66,"tag":156,"props":451,"children":452},{"style":229},[453],{"type":78,"value":232},{"type":66,"tag":156,"props":455,"children":456},{"style":229},[457],{"type":78,"value":237},{"type":66,"tag":156,"props":459,"children":460},{"style":240},[461],{"type":78,"value":243},{"type":66,"tag":156,"props":463,"children":464},{"style":246},[465],{"type":78,"value":249},{"type":66,"tag":156,"props":467,"children":468},{"style":252},[469],{"type":78,"value":255},{"type":66,"tag":156,"props":471,"children":472},{"class":158,"line":258},[473],{"type":66,"tag":156,"props":474,"children":476},{"style":475},"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[477],{"type":78,"value":478}," // ...\n",{"type":66,"tag":156,"props":480,"children":481},{"class":158,"line":300},[482,487,491],{"type":66,"tag":156,"props":483,"children":484},{"style":262},[485],{"type":78,"value":486}," supabase",{"type":66,"tag":156,"props":488,"children":489},{"style":252},[490],{"type":78,"value":214},{"type":66,"tag":156,"props":492,"children":493},{"style":252},[494],{"type":78,"value":495}," {\n",{"type":66,"tag":156,"props":497,"children":499},{"class":158,"line":498},4,[500],{"type":66,"tag":156,"props":501,"children":502},{"style":475},[503],{"type":78,"value":504}," // Options\n",{"type":66,"tag":156,"props":506,"children":508},{"class":158,"line":507},5,[509],{"type":66,"tag":156,"props":510,"children":511},{"style":252},[512],{"type":78,"value":513}," }\n",{"type":66,"tag":156,"props":515,"children":517},{"class":158,"line":516},6,[518],{"type":66,"tag":156,"props":519,"children":520},{"style":252},[521],{"type":78,"value":522},"}\n",{"type":66,"tag":524,"props":525,"children":527},"h3",{"id":526},"url",[528],{"type":66,"tag":138,"props":529,"children":531},{"className":530},[],[532],{"type":78,"value":526},{"type":66,"tag":67,"props":534,"children":535},{},[536,538,544,546,551],{"type":78,"value":537},"Default: ",{"type":66,"tag":138,"props":539,"children":541},{"className":540},[],[542],{"type":78,"value":543},"process.env.SUPABASE_URL",{"type":78,"value":545}," (ex: ",{"type":66,"tag":71,"props":547,"children":549},{"href":367,"rel":548},[75],[550],{"type":78,"value":367},{"type":78,"value":552},")",{"type":66,"tag":67,"props":554,"children":555},{},[556],{"type":78,"value":557},"The unique Supabase URL which is supplied when you create a new project in your project dashboard.",{"type":66,"tag":524,"props":559,"children":561},{"id":560},"key",[562],{"type":66,"tag":138,"props":563,"children":565},{"className":564},[],[566],{"type":78,"value":560},{"type":66,"tag":67,"props":568,"children":569},{},[570,571],{"type":78,"value":537},{"type":66,"tag":138,"props":572,"children":574},{"className":573},[],[575],{"type":78,"value":576},"process.env.SUPABASE_KEY",{"type":66,"tag":67,"props":578,"children":579},{},[580],{"type":78,"value":581},"Supabase 'anon key', used to bypass the Supabase API gateway and interact with your Supabase database making use of user JWT to apply RLS Policies.",{"type":66,"tag":524,"props":583,"children":585},{"id":584},"servicekey",[586],{"type":66,"tag":138,"props":587,"children":589},{"className":588},[],[590],{"type":78,"value":591},"serviceKey",{"type":66,"tag":67,"props":593,"children":594},{},[595,596],{"type":78,"value":537},{"type":66,"tag":138,"props":597,"children":599},{"className":598},[],[600],{"type":78,"value":601},"process.env.SUPABASE_SERVICE_KEY",{"type":66,"tag":67,"props":603,"children":604},{},[605],{"type":78,"value":606},"Supabase 'service role key', has super admin rights and can bypass your Row Level Security.",{"type":66,"tag":524,"props":608,"children":610},{"id":609},"redirect",[611],{"type":66,"tag":138,"props":612,"children":614},{"className":613},[],[615],{"type":78,"value":609},{"type":66,"tag":67,"props":617,"children":618},{},[619,620],{"type":78,"value":537},{"type":66,"tag":138,"props":621,"children":623},{"className":622},[],[624],{"type":78,"value":625},"true",{"type":66,"tag":67,"props":627,"children":628},{},[629],{"type":78,"value":630},"Redirect automatically to the configured login page if a non authenticated user is trying to access a guarded. You can disable all redirects by setting this option to false.",{"type":66,"tag":524,"props":632,"children":634},{"id":633},"redirectoptions",[635],{"type":66,"tag":138,"props":636,"children":638},{"className":637},[],[639],{"type":78,"value":640},"redirectOptions",{"type":66,"tag":67,"props":642,"children":643},{},[644],{"type":78,"value":645},"Default:",{"type":66,"tag":146,"props":647,"children":649},{"className":217,"code":648,"filename":212,"language":219,"meta":59,"style":59}," redirectOptions: {\n login: '/login',\n callback: '/confirm',\n include: undefined,\n exclude: [],\n cookieRedirect: false,\n }\n",[650],{"type":66,"tag":138,"props":651,"children":652},{"__ignoreMap":59},[653,669,699,728,745,766,788],{"type":66,"tag":156,"props":654,"children":655},{"class":158,"line":159},[656,661,665],{"type":66,"tag":156,"props":657,"children":658},{"style":163},[659],{"type":78,"value":660}," redirectOptions",{"type":66,"tag":156,"props":662,"children":663},{"style":252},[664],{"type":78,"value":214},{"type":66,"tag":156,"props":666,"children":667},{"style":252},[668],{"type":78,"value":495},{"type":66,"tag":156,"props":670,"children":671},{"class":158,"line":258},[672,677,681,686,691,695],{"type":66,"tag":156,"props":673,"children":674},{"style":163},[675],{"type":78,"value":676}," login",{"type":66,"tag":156,"props":678,"children":679},{"style":252},[680],{"type":78,"value":214},{"type":66,"tag":156,"props":682,"children":683},{"style":252},[684],{"type":78,"value":685}," '",{"type":66,"tag":156,"props":687,"children":688},{"style":169},[689],{"type":78,"value":690},"/login",{"type":66,"tag":156,"props":692,"children":693},{"style":252},[694],{"type":78,"value":279},{"type":66,"tag":156,"props":696,"children":697},{"style":252},[698],{"type":78,"value":297},{"type":66,"tag":156,"props":700,"children":701},{"class":158,"line":300},[702,707,711,715,720,724],{"type":66,"tag":156,"props":703,"children":704},{"style":163},[705],{"type":78,"value":706}," callback",{"type":66,"tag":156,"props":708,"children":709},{"style":252},[710],{"type":78,"value":214},{"type":66,"tag":156,"props":712,"children":713},{"style":252},[714],{"type":78,"value":685},{"type":66,"tag":156,"props":716,"children":717},{"style":169},[718],{"type":78,"value":719},"/confirm",{"type":66,"tag":156,"props":721,"children":722},{"style":252},[723],{"type":78,"value":279},{"type":66,"tag":156,"props":725,"children":726},{"style":252},[727],{"type":78,"value":297},{"type":66,"tag":156,"props":729,"children":730},{"class":158,"line":498},[731,736,740],{"type":66,"tag":156,"props":732,"children":733},{"style":163},[734],{"type":78,"value":735}," include",{"type":66,"tag":156,"props":737,"children":738},{"style":252},[739],{"type":78,"value":214},{"type":66,"tag":156,"props":741,"children":742},{"style":252},[743],{"type":78,"value":744}," undefined,\n",{"type":66,"tag":156,"props":746,"children":747},{"class":158,"line":507},[748,753,757,762],{"type":66,"tag":156,"props":749,"children":750},{"style":163},[751],{"type":78,"value":752}," exclude",{"type":66,"tag":156,"props":754,"children":755},{"style":252},[756],{"type":78,"value":214},{"type":66,"tag":156,"props":758,"children":759},{"style":262},[760],{"type":78,"value":761}," []",{"type":66,"tag":156,"props":763,"children":764},{"style":252},[765],{"type":78,"value":297},{"type":66,"tag":156,"props":767,"children":768},{"class":158,"line":516},[769,774,778,784],{"type":66,"tag":156,"props":770,"children":771},{"style":163},[772],{"type":78,"value":773}," cookieRedirect",{"type":66,"tag":156,"props":775,"children":776},{"style":252},[777],{"type":78,"value":214},{"type":66,"tag":156,"props":779,"children":781},{"style":780},"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC",[782],{"type":78,"value":783}," false",{"type":66,"tag":156,"props":785,"children":786},{"style":252},[787],{"type":78,"value":297},{"type":66,"tag":156,"props":789,"children":791},{"class":158,"line":790},7,[792],{"type":66,"tag":156,"props":793,"children":794},{"style":252},[795],{"type":78,"value":513},{"type":66,"tag":797,"props":798,"children":799},"ul",{},[800,812,847,874,909],{"type":66,"tag":801,"props":802,"children":803},"li",{},[804,810],{"type":66,"tag":138,"props":805,"children":807},{"className":806},[],[808],{"type":78,"value":809},"login",{"type":78,"value":811},": User will be redirected to this path if not authenticated or after logout.",{"type":66,"tag":801,"props":813,"children":814},{},[815,821,823,829,831,838,840,846],{"type":66,"tag":138,"props":816,"children":818},{"className":817},[],[819],{"type":78,"value":820},"callback",{"type":78,"value":822},": This is the path the user will be redirect to after supabase login redirection. Should match configured ",{"type":66,"tag":138,"props":824,"children":826},{"className":825},[],[827],{"type":78,"value":828},"redirectTo",{"type":78,"value":830}," option of your ",{"type":66,"tag":71,"props":832,"children":835},{"href":833,"rel":834},"https://supabase.com/docs/reference/javascript/auth-signinwithoauth",[75],[836],{"type":78,"value":837},"signIn method",{"type":78,"value":839},". Should also be configured in your Supabase dashboard under ",{"type":66,"tag":138,"props":841,"children":843},{"className":842},[],[844],{"type":78,"value":845},"Authentication -> URL Configuration -> Redirect URLs",{"type":78,"value":124},{"type":66,"tag":801,"props":848,"children":849},{},[850,856,858,864,866,872],{"type":66,"tag":138,"props":851,"children":853},{"className":852},[],[854],{"type":78,"value":855},"include",{"type":78,"value":857},": Routes to include in the redirect. ",{"type":66,"tag":138,"props":859,"children":861},{"className":860},[],[862],{"type":78,"value":863},"['/admin(/*)?']",{"type":78,"value":865}," will enable the redirect only for the ",{"type":66,"tag":138,"props":867,"children":869},{"className":868},[],[870],{"type":78,"value":871},"admin",{"type":78,"value":873}," page and all sub-pages.",{"type":66,"tag":801,"props":875,"children":876},{},[877,883,885,891,893,899,901,907],{"type":66,"tag":138,"props":878,"children":880},{"className":879},[],[881],{"type":78,"value":882},"exclude",{"type":78,"value":884},": Routes to exclude from the redirect. ",{"type":66,"tag":138,"props":886,"children":888},{"className":887},[],[889],{"type":78,"value":890},"['/foo', '/bar/*']",{"type":78,"value":892}," will exclude the ",{"type":66,"tag":138,"props":894,"children":896},{"className":895},[],[897],{"type":78,"value":898},"foo",{"type":78,"value":900}," page and all pages in your ",{"type":66,"tag":138,"props":902,"children":904},{"className":903},[],[905],{"type":78,"value":906},"bar",{"type":78,"value":908}," folder.",{"type":66,"tag":801,"props":910,"children":911},{},[912,918,920,930],{"type":66,"tag":138,"props":913,"children":915},{"className":914},[],[916],{"type":78,"value":917},"cookieRedirect",{"type":78,"value":919},": Sets a cookie containing the path an unauthenticated user tried to access. The cookie can then be used on the ",{"type":66,"tag":71,"props":921,"children":924},{"href":922,"rel":923},"https://supabase.nuxtjs.org/authentication#confirm-page-confirm",[75],[925],{"type":66,"tag":138,"props":926,"children":928},{"className":927},[],[929],{"type":78,"value":719},{"type":78,"value":931}," page to redirect the user to the page they previously tried to visit.",{"type":66,"tag":524,"props":933,"children":935},{"id":934},"cookiename",[936],{"type":66,"tag":138,"props":937,"children":939},{"className":938},[],[940],{"type":78,"value":941},"cookieName",{"type":66,"tag":67,"props":943,"children":944},{},[945,946],{"type":78,"value":537},{"type":66,"tag":138,"props":947,"children":949},{"className":948},[],[950],{"type":78,"value":951},"sb",{"type":66,"tag":67,"props":953,"children":954},{},[955,957,962,964,970,972],{"type":78,"value":956},"Cookie name used for storing the redirect path when using the ",{"type":66,"tag":138,"props":958,"children":960},{"className":959},[],[961],{"type":78,"value":609},{"type":78,"value":963}," option, added in front of ",{"type":66,"tag":138,"props":965,"children":967},{"className":966},[],[968],{"type":78,"value":969},"-redirect-path",{"type":78,"value":971}," to form the full cookie name e.g. ",{"type":66,"tag":138,"props":973,"children":975},{"className":974},[],[976],{"type":78,"value":977},"sb-redirect-path",{"type":66,"tag":524,"props":979,"children":981},{"id":980},"cookieoptions",[982],{"type":66,"tag":138,"props":983,"children":985},{"className":984},[],[986],{"type":78,"value":987},"cookieOptions",{"type":66,"tag":146,"props":989,"children":991},{"className":217,"code":990,"language":219,"meta":59,"style":59}," cookieOptions: {\n maxAge: 60 * 60 * 8,\n sameSite: 'lax',\n secure: true\n }\n",[992],{"type":66,"tag":138,"props":993,"children":994},{"__ignoreMap":59},[995,1011,1051,1080,1097],{"type":66,"tag":156,"props":996,"children":997},{"class":158,"line":159},[998,1003,1007],{"type":66,"tag":156,"props":999,"children":1000},{"style":163},[1001],{"type":78,"value":1002}," cookieOptions",{"type":66,"tag":156,"props":1004,"children":1005},{"style":252},[1006],{"type":78,"value":214},{"type":66,"tag":156,"props":1008,"children":1009},{"style":252},[1010],{"type":78,"value":495},{"type":66,"tag":156,"props":1012,"children":1013},{"class":158,"line":258},[1014,1019,1023,1029,1034,1038,1042,1047],{"type":66,"tag":156,"props":1015,"children":1016},{"style":163},[1017],{"type":78,"value":1018}," maxAge",{"type":66,"tag":156,"props":1020,"children":1021},{"style":252},[1022],{"type":78,"value":214},{"type":66,"tag":156,"props":1024,"children":1026},{"style":1025},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[1027],{"type":78,"value":1028}," 60",{"type":66,"tag":156,"props":1030,"children":1031},{"style":252},[1032],{"type":78,"value":1033}," *",{"type":66,"tag":156,"props":1035,"children":1036},{"style":1025},[1037],{"type":78,"value":1028},{"type":66,"tag":156,"props":1039,"children":1040},{"style":252},[1041],{"type":78,"value":1033},{"type":66,"tag":156,"props":1043,"children":1044},{"style":1025},[1045],{"type":78,"value":1046}," 8",{"type":66,"tag":156,"props":1048,"children":1049},{"style":252},[1050],{"type":78,"value":297},{"type":66,"tag":156,"props":1052,"children":1053},{"class":158,"line":300},[1054,1059,1063,1067,1072,1076],{"type":66,"tag":156,"props":1055,"children":1056},{"style":163},[1057],{"type":78,"value":1058}," sameSite",{"type":66,"tag":156,"props":1060,"children":1061},{"style":252},[1062],{"type":78,"value":214},{"type":66,"tag":156,"props":1064,"children":1065},{"style":252},[1066],{"type":78,"value":685},{"type":66,"tag":156,"props":1068,"children":1069},{"style":169},[1070],{"type":78,"value":1071},"lax",{"type":66,"tag":156,"props":1073,"children":1074},{"style":252},[1075],{"type":78,"value":279},{"type":66,"tag":156,"props":1077,"children":1078},{"style":252},[1079],{"type":78,"value":297},{"type":66,"tag":156,"props":1081,"children":1082},{"class":158,"line":498},[1083,1088,1092],{"type":66,"tag":156,"props":1084,"children":1085},{"style":163},[1086],{"type":78,"value":1087}," secure",{"type":66,"tag":156,"props":1089,"children":1090},{"style":252},[1091],{"type":78,"value":214},{"type":66,"tag":156,"props":1093,"children":1094},{"style":780},[1095],{"type":78,"value":1096}," true\n",{"type":66,"tag":156,"props":1098,"children":1099},{"class":158,"line":507},[1100],{"type":66,"tag":156,"props":1101,"children":1102},{"style":252},[1103],{"type":78,"value":513},{"type":66,"tag":67,"props":1105,"children":1106},{},[1107,1109,1115],{"type":78,"value":1108},"Options for cookies used to share tokens between server and client, refer to ",{"type":66,"tag":71,"props":1110,"children":1113},{"href":1111,"rel":1112},"https://nuxt.com/docs/api/composables/use-cookie#options",[75],[1114],{"type":78,"value":987},{"type":78,"value":1116}," for available settings. Please note that the lifetime set here does not determine the Supabase session lifetime.",{"type":66,"tag":524,"props":1118,"children":1120},{"id":1119},"types",[1121],{"type":66,"tag":138,"props":1122,"children":1124},{"className":1123},[],[1125],{"type":78,"value":1119},{"type":66,"tag":67,"props":1127,"children":1128},{},[1129,1130],{"type":78,"value":537},{"type":66,"tag":138,"props":1131,"children":1133},{"className":1132},[],[1134],{"type":78,"value":1135},"./types/database.types.ts",{"type":66,"tag":67,"props":1137,"children":1138},{},[1139,1141,1146,1148,1153,1154,1159],{"type":78,"value":1140},"The path for the generated Supabase TypeScript definitions. The database definitions will be automatically passed to all clients: ",{"type":66,"tag":138,"props":1142,"children":1144},{"className":1143},[],[1145],{"type":78,"value":21},{"type":78,"value":1147},", ",{"type":66,"tag":138,"props":1149,"children":1151},{"className":1150},[],[1152],{"type":78,"value":34},{"type":78,"value":323},{"type":66,"tag":138,"props":1155,"children":1157},{"className":1156},[],[1158],{"type":78,"value":37},{"type":78,"value":124},{"type":66,"tag":146,"props":1161,"children":1163},{"className":148,"code":1162,"language":150,"meta":59,"style":59},"## Generate types from live database\nsupabase gen types --lang=typescript --project-id YourProjectId > types/database.types.ts\n\n## Generate types when using local environment\nsupabase gen types --lang=typescript --local > types/database.types.ts\n",[1164],{"type":66,"tag":138,"props":1165,"children":1166},{"__ignoreMap":59},[1167,1175,1217,1226,1234],{"type":66,"tag":156,"props":1168,"children":1169},{"class":158,"line":159},[1170],{"type":66,"tag":156,"props":1171,"children":1172},{"style":475},[1173],{"type":78,"value":1174},"## Generate types from live database\n",{"type":66,"tag":156,"props":1176,"children":1177},{"class":158,"line":258},[1178,1182,1187,1192,1197,1202,1207,1212],{"type":66,"tag":156,"props":1179,"children":1180},{"style":163},[1181],{"type":78,"value":430},{"type":66,"tag":156,"props":1183,"children":1184},{"style":169},[1185],{"type":78,"value":1186}," gen",{"type":66,"tag":156,"props":1188,"children":1189},{"style":169},[1190],{"type":78,"value":1191}," types",{"type":66,"tag":156,"props":1193,"children":1194},{"style":169},[1195],{"type":78,"value":1196}," --lang=typescript",{"type":66,"tag":156,"props":1198,"children":1199},{"style":169},[1200],{"type":78,"value":1201}," --project-id",{"type":66,"tag":156,"props":1203,"children":1204},{"style":169},[1205],{"type":78,"value":1206}," YourProjectId",{"type":66,"tag":156,"props":1208,"children":1209},{"style":252},[1210],{"type":78,"value":1211}," >",{"type":66,"tag":156,"props":1213,"children":1214},{"style":169},[1215],{"type":78,"value":1216}," types/database.types.ts\n",{"type":66,"tag":156,"props":1218,"children":1219},{"class":158,"line":300},[1220],{"type":66,"tag":156,"props":1221,"children":1223},{"emptyLinePlaceholder":1222},true,[1224],{"type":78,"value":1225},"\n",{"type":66,"tag":156,"props":1227,"children":1228},{"class":158,"line":498},[1229],{"type":66,"tag":156,"props":1230,"children":1231},{"style":475},[1232],{"type":78,"value":1233},"## Generate types when using local environment\n",{"type":66,"tag":156,"props":1235,"children":1236},{"class":158,"line":507},[1237,1241,1245,1249,1253,1258,1262],{"type":66,"tag":156,"props":1238,"children":1239},{"style":163},[1240],{"type":78,"value":430},{"type":66,"tag":156,"props":1242,"children":1243},{"style":169},[1244],{"type":78,"value":1186},{"type":66,"tag":156,"props":1246,"children":1247},{"style":169},[1248],{"type":78,"value":1191},{"type":66,"tag":156,"props":1250,"children":1251},{"style":169},[1252],{"type":78,"value":1196},{"type":66,"tag":156,"props":1254,"children":1255},{"style":169},[1256],{"type":78,"value":1257}," --local",{"type":66,"tag":156,"props":1259,"children":1260},{"style":252},[1261],{"type":78,"value":1211},{"type":66,"tag":156,"props":1263,"children":1264},{"style":169},[1265],{"type":78,"value":1216},{"type":66,"tag":67,"props":1267,"children":1268},{},[1269,1271,1277],{"type":78,"value":1270},"Set to ",{"type":66,"tag":138,"props":1272,"children":1274},{"className":1273},[],[1275],{"type":78,"value":1276},"false",{"type":78,"value":1278}," to disable.",{"type":66,"tag":67,"props":1280,"children":1281},{},[1282,1284,1291],{"type":78,"value":1283},"Check Supabase ",{"type":66,"tag":71,"props":1285,"children":1288},{"href":1286,"rel":1287},"https://supabase.com/docs/reference/javascript/release-notes#typescript-support",[75],[1289],{"type":78,"value":1290},"documentation",{"type":78,"value":1292}," for further information.",{"type":66,"tag":524,"props":1294,"children":1296},{"id":1295},"clientoptions",[1297],{"type":66,"tag":138,"props":1298,"children":1300},{"className":1299},[],[1301],{"type":78,"value":1302},"clientOptions",{"type":66,"tag":67,"props":1304,"children":1305},{},[1306],{"type":78,"value":645},{"type":66,"tag":146,"props":1308,"children":1310},{"className":217,"code":1309,"language":219,"meta":59,"style":59}," clientOptions: { }\n",[1311],{"type":66,"tag":138,"props":1312,"children":1313},{"__ignoreMap":59},[1314],{"type":66,"tag":156,"props":1315,"children":1316},{"class":158,"line":159},[1317,1322,1326,1331],{"type":66,"tag":156,"props":1318,"children":1319},{"style":163},[1320],{"type":78,"value":1321}," clientOptions",{"type":66,"tag":156,"props":1323,"children":1324},{"style":252},[1325],{"type":78,"value":214},{"type":66,"tag":156,"props":1327,"children":1328},{"style":252},[1329],{"type":78,"value":1330}," {",{"type":66,"tag":156,"props":1332,"children":1333},{"style":252},[1334],{"type":78,"value":1335}," }\n",{"type":66,"tag":67,"props":1337,"children":1338},{},[1339,1341,1348,1350,1356],{"type":78,"value":1340},"Supabase client options ",{"type":66,"tag":71,"props":1342,"children":1345},{"href":1343,"rel":1344},"https://supabase.com/docs/reference/javascript/initializing#parameters",[75],[1346],{"type":78,"value":1347},"available here",{"type":78,"value":1349}," merged with default values from ",{"type":66,"tag":138,"props":1351,"children":1353},{"className":1352},[],[1354],{"type":78,"value":1355},"@supabase/ssr",{"type":78,"value":214},{"type":66,"tag":146,"props":1358,"children":1360},{"className":217,"code":1359,"language":219,"meta":59,"style":59}," clientOptions: {\n auth: {\n flowType: 'pkce',\n autoRefreshToken: isBrowser(),\n detectSessionInUrl: isBrowser(),\n persistSession: true,\n },\n }\n",[1361],{"type":66,"tag":138,"props":1362,"children":1363},{"__ignoreMap":59},[1364,1379,1395,1424,1450,1474,1495,1503],{"type":66,"tag":156,"props":1365,"children":1366},{"class":158,"line":159},[1367,1371,1375],{"type":66,"tag":156,"props":1368,"children":1369},{"style":163},[1370],{"type":78,"value":1321},{"type":66,"tag":156,"props":1372,"children":1373},{"style":252},[1374],{"type":78,"value":214},{"type":66,"tag":156,"props":1376,"children":1377},{"style":252},[1378],{"type":78,"value":495},{"type":66,"tag":156,"props":1380,"children":1381},{"class":158,"line":258},[1382,1387,1391],{"type":66,"tag":156,"props":1383,"children":1384},{"style":163},[1385],{"type":78,"value":1386}," auth",{"type":66,"tag":156,"props":1388,"children":1389},{"style":252},[1390],{"type":78,"value":214},{"type":66,"tag":156,"props":1392,"children":1393},{"style":252},[1394],{"type":78,"value":495},{"type":66,"tag":156,"props":1396,"children":1397},{"class":158,"line":300},[1398,1403,1407,1411,1416,1420],{"type":66,"tag":156,"props":1399,"children":1400},{"style":163},[1401],{"type":78,"value":1402}," flowType",{"type":66,"tag":156,"props":1404,"children":1405},{"style":252},[1406],{"type":78,"value":214},{"type":66,"tag":156,"props":1408,"children":1409},{"style":252},[1410],{"type":78,"value":685},{"type":66,"tag":156,"props":1412,"children":1413},{"style":169},[1414],{"type":78,"value":1415},"pkce",{"type":66,"tag":156,"props":1417,"children":1418},{"style":252},[1419],{"type":78,"value":279},{"type":66,"tag":156,"props":1421,"children":1422},{"style":252},[1423],{"type":78,"value":297},{"type":66,"tag":156,"props":1425,"children":1426},{"class":158,"line":498},[1427,1432,1436,1441,1446],{"type":66,"tag":156,"props":1428,"children":1429},{"style":163},[1430],{"type":78,"value":1431}," autoRefreshToken",{"type":66,"tag":156,"props":1433,"children":1434},{"style":252},[1435],{"type":78,"value":214},{"type":66,"tag":156,"props":1437,"children":1438},{"style":240},[1439],{"type":78,"value":1440}," isBrowser",{"type":66,"tag":156,"props":1442,"children":1443},{"style":262},[1444],{"type":78,"value":1445},"()",{"type":66,"tag":156,"props":1447,"children":1448},{"style":252},[1449],{"type":78,"value":297},{"type":66,"tag":156,"props":1451,"children":1452},{"class":158,"line":507},[1453,1458,1462,1466,1470],{"type":66,"tag":156,"props":1454,"children":1455},{"style":163},[1456],{"type":78,"value":1457}," detectSessionInUrl",{"type":66,"tag":156,"props":1459,"children":1460},{"style":252},[1461],{"type":78,"value":214},{"type":66,"tag":156,"props":1463,"children":1464},{"style":240},[1465],{"type":78,"value":1440},{"type":66,"tag":156,"props":1467,"children":1468},{"style":262},[1469],{"type":78,"value":1445},{"type":66,"tag":156,"props":1471,"children":1472},{"style":252},[1473],{"type":78,"value":297},{"type":66,"tag":156,"props":1475,"children":1476},{"class":158,"line":516},[1477,1482,1486,1491],{"type":66,"tag":156,"props":1478,"children":1479},{"style":163},[1480],{"type":78,"value":1481}," persistSession",{"type":66,"tag":156,"props":1483,"children":1484},{"style":252},[1485],{"type":78,"value":214},{"type":66,"tag":156,"props":1487,"children":1488},{"style":780},[1489],{"type":78,"value":1490}," true",{"type":66,"tag":156,"props":1492,"children":1493},{"style":252},[1494],{"type":78,"value":297},{"type":66,"tag":156,"props":1496,"children":1497},{"class":158,"line":790},[1498],{"type":66,"tag":156,"props":1499,"children":1500},{"style":252},[1501],{"type":78,"value":1502}," },\n",{"type":66,"tag":156,"props":1504,"children":1506},{"class":158,"line":1505},8,[1507],{"type":66,"tag":156,"props":1508,"children":1509},{"style":252},[1510],{"type":78,"value":513},{"type":66,"tag":126,"props":1512,"children":1514},{"id":1513},"demo",[1515],{"type":78,"value":47},{"type":66,"tag":67,"props":1517,"children":1518},{},[1519,1521,1528,1530,1535],{"type":78,"value":1520},"A live demo is made for see this module in action on ",{"type":66,"tag":71,"props":1522,"children":1525},{"href":1523,"rel":1524},"https://n3-supabase.netlify.app",[75],[1526],{"type":78,"value":1527},"n3-supabase.netlify.app",{"type":78,"value":1529},", read more in the ",{"type":66,"tag":71,"props":1531,"children":1532},{"href":48},[1533],{"type":78,"value":1534},"demo section",{"type":78,"value":124},{"type":66,"tag":67,"props":1537,"children":1538},{},[1539],{"type":66,"tag":71,"props":1540,"children":1542},{"href":1523,"rel":1541},[75],[1543],{"type":66,"tag":1544,"props":1545,"children":1548},"img",{"alt":1546,"src":1547},"Supabase demo with Nuxt 3","https://user-images.githubusercontent.com/904724/160422461-8f87500a-8dec-4413-86b2-ba04e1b2d17b.png",[],{"type":66,"tag":67,"props":1550,"children":1551},{},[1552,1554,1561],{"type":78,"value":1553},"Also checkout the ",{"type":66,"tag":71,"props":1555,"children":1558},{"href":1556,"rel":1557},"https://www.youtube.com/watch?v=jIyiRT6zT8Q",[75],[1559],{"type":78,"value":1560},"YouTube video",{"type":78,"value":1562}," about its usage in a live demo.",{"type":66,"tag":1564,"props":1565,"children":1566},"style",{},[1567],{"type":78,"value":1568},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":59,"searchDepth":258,"depth":258,"links":1570},[1571,1572,1583],{"id":128,"depth":258,"text":131},{"id":416,"depth":258,"text":419,"children":1573},[1574,1575,1576,1577,1578,1579,1580,1581,1582],{"id":526,"depth":300,"text":526},{"id":560,"depth":300,"text":560},{"id":584,"depth":300,"text":591},{"id":609,"depth":300,"text":609},{"id":633,"depth":300,"text":640},{"id":934,"depth":300,"text":941},{"id":980,"depth":300,"text":987},{"id":1119,"depth":300,"text":1119},{"id":1295,"depth":300,"text":1302},{"id":1513,"depth":258,"text":47},"markdown","content:2.get-started.md","content","2.get-started.md","2.get-started","md",[1591,1592],null,{"_path":10,"title":9,"description":1593},"Authenticate your user thanks to the PKCE Oauth protocol that enables secure exchange of refresh and access tokens between an application and the authorization server",1725013745480] \ No newline at end of file diff --git a/get-started/index.html b/get-started/index.html index a2fc70677..d717ebb43 100644 --- a/get-started/index.html +++ b/get-started/index.html @@ -61,55 +61,55 @@ - - - - - - - + + + + + + + - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + - + - - - - - - - + + + + + + + - - + + - + -
mobile favicon

Get Started

@nuxtjs/supabase is a Nuxt module for first class integration with Supabase.

@nuxtjs/supabase is a Nuxt module for first class integration with Supabase.

Checkout the Nuxt 3 documentation and Supabase to learn more.

For integrating Supabase with Nuxt 2, checkout supabase-community/nuxt-supabase.

Installation

Add @nuxtjs/supabase dev dependency to your project:

npx nuxi@latest module add supabase
+
mobile favicon

Get Started

@nuxtjs/supabase is a Nuxt module for first class integration with Supabase.

@nuxtjs/supabase is a Nuxt module for first class integration with Supabase.

Checkout the Nuxt 3 documentation and Supabase to learn more.

For integrating Supabase with Nuxt 2, checkout supabase-community/nuxt-supabase.

Installation

Add @nuxtjs/supabase dev dependency to your project:

npx nuxi@latest module add supabase
 

Add @nuxtjs/supabase to the modules section of nuxt.config.ts:

nuxt.config.ts
export default defineNuxtConfig({
   modules: ['@nuxtjs/supabase'],
 })
@@ -148,5 +148,5 @@
     },
   }
 

Demo

A live demo is made for see this module in action on n3-supabase.netlify.app, read more in the demo section.

Supabase demo with Nuxt 3

Also checkout the YouTube video about its usage in a live demo.


Made with Nuxt Studio
- - \ No newline at end of file + + \ No newline at end of file diff --git a/index.html b/index.html index fa494dc87..a26d84f47 100644 --- a/index.html +++ b/index.html @@ -54,33 +54,33 @@ - - - - - - - - - + + + + + + + + + - - + + - - - - - - - - + + + + + + + + - - + + - + @@ -89,7 +89,7 @@ -
mobile favicon
mobile favicon
email: email.value, }) } -

Shipped with many features

Nuxt 3 ready

Vue 3 composables

Supabase-js V2

Usage in API server routes

Authentication support

TypeScript support

Made with Nuxt Studio
- \ No newline at end of file +

Shipped with many features

Nuxt 3 ready

Vue 3 composables

Supabase-js V2

Usage in API server routes

Authentication support

TypeScript support

Made with Nuxt Studio
+ \ No newline at end of file diff --git a/roadmap/_payload.json b/roadmap/_payload.json index 916a72bb7..d8e567634 100644 --- a/roadmap/_payload.json +++ b/roadmap/_payload.json @@ -1 +1 @@ -[{"data":1,"prerenderedAt":84},["ShallowReactive",2],{"navigation":3,"/roadmap":58,"/roadmap-surround":80},[4,8,12,46,50,54],{"title":5,"_path":6,"icon":7},"Get Started","/get-started","i-heroicons-rocket-launch",{"title":9,"_path":10,"icon":11},"Authentication","/authentication","i-heroicons-lock-closed",{"title":13,"_path":14,"children":15,"icon":45},"Usage","/usage",[16,29],{"title":17,"_path":18,"children":19},"Vue composables","/usage/composables",[20,23,26],{"title":21,"_path":22},"useSupabaseClient","/usage/composables/usesupabaseclient",{"title":24,"_path":25},"useSupabaseSession","/usage/composables/usesupabasesession",{"title":27,"_path":28},"useSupabaseUser","/usage/composables/usesupabaseuser",{"title":30,"_path":31,"children":32},"Server services","/usage/services",[33,36,39,42],{"title":34,"_path":35},"serverSupabaseClient","/usage/services/serversupabaseclient",{"title":37,"_path":38},"serverSupabaseServiceRole","/usage/services/serversupabaseservicerole",{"title":40,"_path":41},"serverSupabaseSession","/usage/services/serversupabasesession",{"title":43,"_path":44},"serverSupabaseUser","/usage/services/serversupabaseuser","heroicons:book-open",{"title":47,"_path":48,"icon":49},"Demo","/demo","i-heroicons-computer-desktop-20-solid",{"title":51,"_path":52,"icon":53},"Changelog","/changelog","i-heroicons-bookmark",{"title":55,"_path":56,"icon":57},"Roadmap","/roadmap","i-heroicons-map",{"_path":56,"_dir":59,"_draft":60,"_partial":60,"_locale":59,"title":55,"description":61,"icon":57,"body":62,"_type":74,"_id":75,"_source":76,"_file":77,"_stem":78,"_extension":79},"",false,"Discover our kaban board for the next release of the Supabase module.",{"type":63,"children":64,"toc":71},"root",[65],{"type":66,"tag":67,"props":68,"children":70},"element","volta-board",{"token":69},"eyJzdGF0dXNlcyI6WyJ0cmlhZ2UiLCJiYWNrbG9nIiwidG9kbyIsImluX3Byb2dyZXNzIiwiaW5fcmV2aWV3IiwiZG9uZSIsInJlbGVhc2VkIiwiY2FuY2VsbGVkIl0sImZpbHRlcnMiOnt9LCJvd25lciI6Im51eHQtbW9kdWxlcyIsIm5hbWUiOiJzdXBhYmFzZSJ9",[],{"title":59,"searchDepth":72,"depth":72,"links":73},2,[],"markdown","content:7.roadmap.md","content","7.roadmap.md","7.roadmap","md",[81,83],{"_path":52,"title":51,"description":82},"Discover the latest updates of the Supabase Module",null,1725006469613] \ No newline at end of file +[{"data":1,"prerenderedAt":84},["ShallowReactive",2],{"navigation":3,"/roadmap":58,"/roadmap-surround":80},[4,8,12,46,50,54],{"title":5,"_path":6,"icon":7},"Get Started","/get-started","i-heroicons-rocket-launch",{"title":9,"_path":10,"icon":11},"Authentication","/authentication","i-heroicons-lock-closed",{"title":13,"_path":14,"children":15,"icon":45},"Usage","/usage",[16,29],{"title":17,"_path":18,"children":19},"Vue composables","/usage/composables",[20,23,26],{"title":21,"_path":22},"useSupabaseClient","/usage/composables/usesupabaseclient",{"title":24,"_path":25},"useSupabaseSession","/usage/composables/usesupabasesession",{"title":27,"_path":28},"useSupabaseUser","/usage/composables/usesupabaseuser",{"title":30,"_path":31,"children":32},"Server services","/usage/services",[33,36,39,42],{"title":34,"_path":35},"serverSupabaseClient","/usage/services/serversupabaseclient",{"title":37,"_path":38},"serverSupabaseServiceRole","/usage/services/serversupabaseservicerole",{"title":40,"_path":41},"serverSupabaseSession","/usage/services/serversupabasesession",{"title":43,"_path":44},"serverSupabaseUser","/usage/services/serversupabaseuser","heroicons:book-open",{"title":47,"_path":48,"icon":49},"Demo","/demo","i-heroicons-computer-desktop-20-solid",{"title":51,"_path":52,"icon":53},"Changelog","/changelog","i-heroicons-bookmark",{"title":55,"_path":56,"icon":57},"Roadmap","/roadmap","i-heroicons-map",{"_path":56,"_dir":59,"_draft":60,"_partial":60,"_locale":59,"title":55,"description":61,"icon":57,"body":62,"_type":74,"_id":75,"_source":76,"_file":77,"_stem":78,"_extension":79},"",false,"Discover our kaban board for the next release of the Supabase module.",{"type":63,"children":64,"toc":71},"root",[65],{"type":66,"tag":67,"props":68,"children":70},"element","volta-board",{"token":69},"eyJzdGF0dXNlcyI6WyJ0cmlhZ2UiLCJiYWNrbG9nIiwidG9kbyIsImluX3Byb2dyZXNzIiwiaW5fcmV2aWV3IiwiZG9uZSIsInJlbGVhc2VkIiwiY2FuY2VsbGVkIl0sImZpbHRlcnMiOnt9LCJvd25lciI6Im51eHQtbW9kdWxlcyIsIm5hbWUiOiJzdXBhYmFzZSJ9",[],{"title":59,"searchDepth":72,"depth":72,"links":73},2,[],"markdown","content:7.roadmap.md","content","7.roadmap.md","7.roadmap","md",[81,83],{"_path":52,"title":51,"description":82},"Discover the latest updates of the Supabase Module",null,1725013745880] \ No newline at end of file diff --git a/roadmap/index.html b/roadmap/index.html index a3f2cfd93..c70c28364 100644 --- a/roadmap/index.html +++ b/roadmap/index.html @@ -59,36 +59,36 @@ - - - - - - - + + + + + + + - - + + - + - - - - - - - + + + + + + + - - + + - + -
- - \ No newline at end of file +
+ + \ No newline at end of file diff --git a/usage/composables/usesupabaseclient/_payload.json b/usage/composables/usesupabaseclient/_payload.json index e414671bb..12ce5401c 100644 --- a/usage/composables/usesupabaseclient/_payload.json +++ b/usage/composables/usesupabaseclient/_payload.json @@ -1 +1 @@ -[{"data":1,"prerenderedAt":2238},["ShallowReactive",2],{"navigation":3,"/usage/composables/usesupabaseclient":58,"/usage/composables/usesupabaseclient-surround":2233},[4,8,12,46,50,54],{"title":5,"_path":6,"icon":7},"Get Started","/get-started","i-heroicons-rocket-launch",{"title":9,"_path":10,"icon":11},"Authentication","/authentication","i-heroicons-lock-closed",{"title":13,"_path":14,"children":15,"icon":45},"Usage","/usage",[16,29],{"title":17,"_path":18,"children":19},"Vue composables","/usage/composables",[20,23,26],{"title":21,"_path":22},"useSupabaseClient","/usage/composables/usesupabaseclient",{"title":24,"_path":25},"useSupabaseSession","/usage/composables/usesupabasesession",{"title":27,"_path":28},"useSupabaseUser","/usage/composables/usesupabaseuser",{"title":30,"_path":31,"children":32},"Server services","/usage/services",[33,36,39,42],{"title":34,"_path":35},"serverSupabaseClient","/usage/services/serversupabaseclient",{"title":37,"_path":38},"serverSupabaseServiceRole","/usage/services/serversupabaseservicerole",{"title":40,"_path":41},"serverSupabaseSession","/usage/services/serversupabasesession",{"title":43,"_path":44},"serverSupabaseUser","/usage/services/serversupabaseuser","heroicons:book-open",{"title":47,"_path":48,"icon":49},"Demo","/demo","i-heroicons-computer-desktop-20-solid",{"title":51,"_path":52,"icon":53},"Changelog","/changelog","i-heroicons-bookmark",{"title":55,"_path":56,"icon":57},"Roadmap","/roadmap","i-heroicons-map",{"_path":22,"_dir":59,"_draft":60,"_partial":60,"_locale":61,"title":21,"description":62,"body":63,"_type":2227,"_id":2228,"_source":2229,"_file":2230,"_stem":2231,"_extension":2232},"composables",false,"","Make requests to the Supabase API with the useSupabaseClient composable",{"type":64,"children":65,"toc":2221},"root",[66,83,106,146,152,174,191,716,727,733,747,769,1129,1135,1149,1163,1168,1928,1934,1964,2071,2076,2215],{"type":67,"tag":68,"props":69,"children":70},"element","p",{},[71,81],{"type":67,"tag":72,"props":73,"children":77},"a",{"href":74,"rel":75},"https://nuxt.com/docs/guide/directory-structure/composables",[76],"nofollow",[78],{"type":79,"value":80},"text","Auto-import",{"type":79,"value":82}," your client inside your vue files.",{"type":67,"tag":68,"props":84,"children":85},{},[86,88,95,97,104],{"type":79,"value":87},"This composable is using ",{"type":67,"tag":72,"props":89,"children":92},{"href":90,"rel":91},"https://github.com/supabase/supabase-js/",[76],[93],{"type":79,"value":94},"supabase-js",{"type":79,"value":96}," under the hood, it gives access to the ",{"type":67,"tag":72,"props":98,"children":101},{"href":99,"rel":100},"https://supabase.com/docs/reference/javascript/initializing",[76],[102],{"type":79,"value":103},"Supabase client",{"type":79,"value":105},".",{"type":67,"tag":107,"props":108,"children":109},"blockquote",{},[110],{"type":67,"tag":68,"props":111,"children":112},{},[113,115,122,124,130,132,139,141,145],{"type":79,"value":114},"The client is initialized with the ",{"type":67,"tag":116,"props":117,"children":119},"code",{"className":118},[],[120],{"type":79,"value":121},"SUPABASE_KEY",{"type":79,"value":123}," you must have in your ",{"type":67,"tag":116,"props":125,"children":127},{"className":126},[],[128],{"type":79,"value":129},".env",{"type":79,"value":131}," file. It establishes the connection with the database and make use of user JWT to apply ",{"type":67,"tag":72,"props":133,"children":136},{"href":134,"rel":135},"https://supabase.com/docs/learn/auth-deep-dive/auth-row-level-security",[76],[137],{"type":79,"value":138},"RLS Policies",{"type":79,"value":140}," implemented in Supabase. If you want to bypass policies, you can use the ",{"type":67,"tag":72,"props":142,"children":143},{"href":38},[144],{"type":79,"value":37},{"type":79,"value":105},{"type":67,"tag":147,"props":148,"children":150},"h2",{"id":149},"authentication",[151],{"type":79,"value":9},{"type":67,"tag":68,"props":153,"children":154},{},[155,157,163,165,172],{"type":79,"value":156},"The useSupabaseClient composable is providing all methods to manage authorization under ",{"type":67,"tag":116,"props":158,"children":160},{"className":159},[],[161],{"type":79,"value":162},"useSupabaseClient().auth",{"type":79,"value":164},". For more details please see the ",{"type":67,"tag":72,"props":166,"children":169},{"href":167,"rel":168},"https://supabase.com/docs/reference/javascript/auth-api",[76],[170],{"type":79,"value":171},"supabase-js auth documentation",{"type":79,"value":173},". Here is an example for signing in and out:",{"type":67,"tag":175,"props":176,"children":178},"callout",{"icon":177},"i-heroicons-light-bulb",[179],{"type":67,"tag":68,"props":180,"children":181},{},[182,184,190],{"type":79,"value":183},"If you want a full explanation on how to handle the authentication process, please read this ",{"type":67,"tag":72,"props":185,"children":187},{"href":186},"/get-started#handle-authentication",[188],{"type":79,"value":189},"section",{"type":79,"value":105},{"type":67,"tag":192,"props":193,"children":197},"pre",{"className":194,"code":195,"language":196,"meta":61,"style":61},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cscript setup lang=\"ts\">\nconst supabase = useSupabaseClient()\n\nconst signInWithOAuth = async () => {\n const { error } = await supabase.auth.signInWithOAuth({\n provider: 'github',\n options: {\n redirectTo: 'http://localhost:3000/confirm',\n },\n })\n if (error) console.log(error)\n}\n\nconst signOut = async () => {\n const { error } = await supabase.auth.signOut()\n if (error) console.log(error)\n}\n\u003C/script>\n","ts",[198],{"type":67,"tag":116,"props":199,"children":200},{"__ignoreMap":61},[201,243,273,283,320,389,423,440,470,479,493,543,552,560,593,646,690,698],{"type":67,"tag":202,"props":203,"children":206},"span",{"class":204,"line":205},"line",1,[207,213,219,224,229,234,238],{"type":67,"tag":202,"props":208,"children":210},{"style":209},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[211],{"type":79,"value":212},"\u003C",{"type":67,"tag":202,"props":214,"children":216},{"style":215},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[217],{"type":79,"value":218},"script setup lang",{"type":67,"tag":202,"props":220,"children":221},{"style":209},[222],{"type":79,"value":223},"=",{"type":67,"tag":202,"props":225,"children":226},{"style":209},[227],{"type":79,"value":228},"\"",{"type":67,"tag":202,"props":230,"children":232},{"style":231},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[233],{"type":79,"value":196},{"type":67,"tag":202,"props":235,"children":236},{"style":209},[237],{"type":79,"value":228},{"type":67,"tag":202,"props":239,"children":240},{"style":209},[241],{"type":79,"value":242},">\n",{"type":67,"tag":202,"props":244,"children":246},{"class":204,"line":245},2,[247,253,258,262,268],{"type":67,"tag":202,"props":248,"children":250},{"style":249},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[251],{"type":79,"value":252},"const",{"type":67,"tag":202,"props":254,"children":255},{"style":215},[256],{"type":79,"value":257}," supabase ",{"type":67,"tag":202,"props":259,"children":260},{"style":209},[261],{"type":79,"value":223},{"type":67,"tag":202,"props":263,"children":265},{"style":264},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[266],{"type":79,"value":267}," useSupabaseClient",{"type":67,"tag":202,"props":269,"children":270},{"style":215},[271],{"type":79,"value":272},"()\n",{"type":67,"tag":202,"props":274,"children":276},{"class":204,"line":275},3,[277],{"type":67,"tag":202,"props":278,"children":280},{"emptyLinePlaceholder":279},true,[281],{"type":79,"value":282},"\n",{"type":67,"tag":202,"props":284,"children":286},{"class":204,"line":285},4,[287,291,296,300,305,310,315],{"type":67,"tag":202,"props":288,"children":289},{"style":249},[290],{"type":79,"value":252},{"type":67,"tag":202,"props":292,"children":293},{"style":215},[294],{"type":79,"value":295}," signInWithOAuth ",{"type":67,"tag":202,"props":297,"children":298},{"style":209},[299],{"type":79,"value":223},{"type":67,"tag":202,"props":301,"children":302},{"style":249},[303],{"type":79,"value":304}," async",{"type":67,"tag":202,"props":306,"children":307},{"style":209},[308],{"type":79,"value":309}," ()",{"type":67,"tag":202,"props":311,"children":312},{"style":249},[313],{"type":79,"value":314}," =>",{"type":67,"tag":202,"props":316,"children":317},{"style":209},[318],{"type":79,"value":319}," {\n",{"type":67,"tag":202,"props":321,"children":323},{"class":204,"line":322},5,[324,329,334,339,344,349,355,360,364,369,373,378,384],{"type":67,"tag":202,"props":325,"children":326},{"style":249},[327],{"type":79,"value":328}," const",{"type":67,"tag":202,"props":330,"children":331},{"style":209},[332],{"type":79,"value":333}," {",{"type":67,"tag":202,"props":335,"children":336},{"style":215},[337],{"type":79,"value":338}," error",{"type":67,"tag":202,"props":340,"children":341},{"style":209},[342],{"type":79,"value":343}," }",{"type":67,"tag":202,"props":345,"children":346},{"style":209},[347],{"type":79,"value":348}," =",{"type":67,"tag":202,"props":350,"children":352},{"style":351},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[353],{"type":79,"value":354}," await",{"type":67,"tag":202,"props":356,"children":357},{"style":215},[358],{"type":79,"value":359}," supabase",{"type":67,"tag":202,"props":361,"children":362},{"style":209},[363],{"type":79,"value":105},{"type":67,"tag":202,"props":365,"children":366},{"style":215},[367],{"type":79,"value":368},"auth",{"type":67,"tag":202,"props":370,"children":371},{"style":209},[372],{"type":79,"value":105},{"type":67,"tag":202,"props":374,"children":375},{"style":264},[376],{"type":79,"value":377},"signInWithOAuth",{"type":67,"tag":202,"props":379,"children":381},{"style":380},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[382],{"type":79,"value":383},"(",{"type":67,"tag":202,"props":385,"children":386},{"style":209},[387],{"type":79,"value":388},"{\n",{"type":67,"tag":202,"props":390,"children":392},{"class":204,"line":391},6,[393,398,403,408,413,418],{"type":67,"tag":202,"props":394,"children":395},{"style":380},[396],{"type":79,"value":397}," provider",{"type":67,"tag":202,"props":399,"children":400},{"style":209},[401],{"type":79,"value":402},":",{"type":67,"tag":202,"props":404,"children":405},{"style":209},[406],{"type":79,"value":407}," '",{"type":67,"tag":202,"props":409,"children":410},{"style":231},[411],{"type":79,"value":412},"github",{"type":67,"tag":202,"props":414,"children":415},{"style":209},[416],{"type":79,"value":417},"'",{"type":67,"tag":202,"props":419,"children":420},{"style":209},[421],{"type":79,"value":422},",\n",{"type":67,"tag":202,"props":424,"children":426},{"class":204,"line":425},7,[427,432,436],{"type":67,"tag":202,"props":428,"children":429},{"style":380},[430],{"type":79,"value":431}," options",{"type":67,"tag":202,"props":433,"children":434},{"style":209},[435],{"type":79,"value":402},{"type":67,"tag":202,"props":437,"children":438},{"style":209},[439],{"type":79,"value":319},{"type":67,"tag":202,"props":441,"children":443},{"class":204,"line":442},8,[444,449,453,457,462,466],{"type":67,"tag":202,"props":445,"children":446},{"style":380},[447],{"type":79,"value":448}," redirectTo",{"type":67,"tag":202,"props":450,"children":451},{"style":209},[452],{"type":79,"value":402},{"type":67,"tag":202,"props":454,"children":455},{"style":209},[456],{"type":79,"value":407},{"type":67,"tag":202,"props":458,"children":459},{"style":231},[460],{"type":79,"value":461},"http://localhost:3000/confirm",{"type":67,"tag":202,"props":463,"children":464},{"style":209},[465],{"type":79,"value":417},{"type":67,"tag":202,"props":467,"children":468},{"style":209},[469],{"type":79,"value":422},{"type":67,"tag":202,"props":471,"children":473},{"class":204,"line":472},9,[474],{"type":67,"tag":202,"props":475,"children":476},{"style":209},[477],{"type":79,"value":478}," },\n",{"type":67,"tag":202,"props":480,"children":482},{"class":204,"line":481},10,[483,488],{"type":67,"tag":202,"props":484,"children":485},{"style":209},[486],{"type":79,"value":487}," }",{"type":67,"tag":202,"props":489,"children":490},{"style":380},[491],{"type":79,"value":492},")\n",{"type":67,"tag":202,"props":494,"children":496},{"class":204,"line":495},11,[497,502,507,512,517,522,526,531,535,539],{"type":67,"tag":202,"props":498,"children":499},{"style":351},[500],{"type":79,"value":501}," if",{"type":67,"tag":202,"props":503,"children":504},{"style":380},[505],{"type":79,"value":506}," (",{"type":67,"tag":202,"props":508,"children":509},{"style":215},[510],{"type":79,"value":511},"error",{"type":67,"tag":202,"props":513,"children":514},{"style":380},[515],{"type":79,"value":516},") ",{"type":67,"tag":202,"props":518,"children":519},{"style":215},[520],{"type":79,"value":521},"console",{"type":67,"tag":202,"props":523,"children":524},{"style":209},[525],{"type":79,"value":105},{"type":67,"tag":202,"props":527,"children":528},{"style":264},[529],{"type":79,"value":530},"log",{"type":67,"tag":202,"props":532,"children":533},{"style":380},[534],{"type":79,"value":383},{"type":67,"tag":202,"props":536,"children":537},{"style":215},[538],{"type":79,"value":511},{"type":67,"tag":202,"props":540,"children":541},{"style":380},[542],{"type":79,"value":492},{"type":67,"tag":202,"props":544,"children":546},{"class":204,"line":545},12,[547],{"type":67,"tag":202,"props":548,"children":549},{"style":209},[550],{"type":79,"value":551},"}\n",{"type":67,"tag":202,"props":553,"children":555},{"class":204,"line":554},13,[556],{"type":67,"tag":202,"props":557,"children":558},{"emptyLinePlaceholder":279},[559],{"type":79,"value":282},{"type":67,"tag":202,"props":561,"children":563},{"class":204,"line":562},14,[564,568,573,577,581,585,589],{"type":67,"tag":202,"props":565,"children":566},{"style":249},[567],{"type":79,"value":252},{"type":67,"tag":202,"props":569,"children":570},{"style":215},[571],{"type":79,"value":572}," signOut ",{"type":67,"tag":202,"props":574,"children":575},{"style":209},[576],{"type":79,"value":223},{"type":67,"tag":202,"props":578,"children":579},{"style":249},[580],{"type":79,"value":304},{"type":67,"tag":202,"props":582,"children":583},{"style":209},[584],{"type":79,"value":309},{"type":67,"tag":202,"props":586,"children":587},{"style":249},[588],{"type":79,"value":314},{"type":67,"tag":202,"props":590,"children":591},{"style":209},[592],{"type":79,"value":319},{"type":67,"tag":202,"props":594,"children":596},{"class":204,"line":595},15,[597,601,605,609,613,617,621,625,629,633,637,642],{"type":67,"tag":202,"props":598,"children":599},{"style":249},[600],{"type":79,"value":328},{"type":67,"tag":202,"props":602,"children":603},{"style":209},[604],{"type":79,"value":333},{"type":67,"tag":202,"props":606,"children":607},{"style":215},[608],{"type":79,"value":338},{"type":67,"tag":202,"props":610,"children":611},{"style":209},[612],{"type":79,"value":343},{"type":67,"tag":202,"props":614,"children":615},{"style":209},[616],{"type":79,"value":348},{"type":67,"tag":202,"props":618,"children":619},{"style":351},[620],{"type":79,"value":354},{"type":67,"tag":202,"props":622,"children":623},{"style":215},[624],{"type":79,"value":359},{"type":67,"tag":202,"props":626,"children":627},{"style":209},[628],{"type":79,"value":105},{"type":67,"tag":202,"props":630,"children":631},{"style":215},[632],{"type":79,"value":368},{"type":67,"tag":202,"props":634,"children":635},{"style":209},[636],{"type":79,"value":105},{"type":67,"tag":202,"props":638,"children":639},{"style":264},[640],{"type":79,"value":641},"signOut",{"type":67,"tag":202,"props":643,"children":644},{"style":380},[645],{"type":79,"value":272},{"type":67,"tag":202,"props":647,"children":649},{"class":204,"line":648},16,[650,654,658,662,666,670,674,678,682,686],{"type":67,"tag":202,"props":651,"children":652},{"style":351},[653],{"type":79,"value":501},{"type":67,"tag":202,"props":655,"children":656},{"style":380},[657],{"type":79,"value":506},{"type":67,"tag":202,"props":659,"children":660},{"style":215},[661],{"type":79,"value":511},{"type":67,"tag":202,"props":663,"children":664},{"style":380},[665],{"type":79,"value":516},{"type":67,"tag":202,"props":667,"children":668},{"style":215},[669],{"type":79,"value":521},{"type":67,"tag":202,"props":671,"children":672},{"style":209},[673],{"type":79,"value":105},{"type":67,"tag":202,"props":675,"children":676},{"style":264},[677],{"type":79,"value":530},{"type":67,"tag":202,"props":679,"children":680},{"style":380},[681],{"type":79,"value":383},{"type":67,"tag":202,"props":683,"children":684},{"style":215},[685],{"type":79,"value":511},{"type":67,"tag":202,"props":687,"children":688},{"style":380},[689],{"type":79,"value":492},{"type":67,"tag":202,"props":691,"children":693},{"class":204,"line":692},17,[694],{"type":67,"tag":202,"props":695,"children":696},{"style":209},[697],{"type":79,"value":551},{"type":67,"tag":202,"props":699,"children":701},{"class":204,"line":700},18,[702,707,712],{"type":67,"tag":202,"props":703,"children":704},{"style":209},[705],{"type":79,"value":706},"\u003C/",{"type":67,"tag":202,"props":708,"children":709},{"style":215},[710],{"type":79,"value":711},"script",{"type":67,"tag":202,"props":713,"children":714},{"style":209},[715],{"type":79,"value":242},{"type":67,"tag":68,"props":717,"children":718},{},[719,721,725],{"type":79,"value":720},"Please also take a look at ",{"type":67,"tag":72,"props":722,"children":723},{"href":6},[724],{"type":79,"value":5},{"type":79,"value":726}," for the authorization flow.",{"type":67,"tag":147,"props":728,"children":730},{"id":729},"database-request",[731],{"type":79,"value":732},"Database Request",{"type":67,"tag":68,"props":734,"children":735},{},[736,738,745],{"type":79,"value":737},"Please check ",{"type":67,"tag":72,"props":739,"children":742},{"href":740,"rel":741},"https://supabase.com/docs/reference/javascript/select",[76],[743],{"type":79,"value":744},"Supabase",{"type":79,"value":746}," documentation to fully use the power of Supabase client.",{"type":67,"tag":68,"props":748,"children":749},{},[750,752,758,760,767],{"type":79,"value":751},"Here is an example of a fetch using the ",{"type":67,"tag":116,"props":753,"children":755},{"className":754},[],[756],{"type":79,"value":757},"select",{"type":79,"value":759}," method with Nuxt 3 ",{"type":67,"tag":72,"props":761,"children":764},{"href":762,"rel":763},"https://nuxt.com/docs/getting-started/data-fetching#useasyncdata",[76],[765],{"type":79,"value":766},"useAsyncData",{"type":79,"value":768}," composable.",{"type":67,"tag":192,"props":770,"children":774},{"className":771,"code":772,"language":773,"meta":61,"style":61},"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cscript setup lang=\"ts\">\nconst client = useSupabaseClient()\n\nconst { data: restaurant } = await useAsyncData('restaurant', async () => {\n const { data } = await client.from('restaurants').select('name, location').eq('name', 'My Restaurant Name').single()\n\n return data\n})\n\u003C/script>\n","vue",[775],{"type":67,"tag":116,"props":776,"children":777},{"__ignoreMap":61},[778,819,843,850,931,1083,1090,1103,1114],{"type":67,"tag":202,"props":779,"children":780},{"class":204,"line":205},[781,785,789,794,799,803,807,811,815],{"type":67,"tag":202,"props":782,"children":783},{"style":209},[784],{"type":79,"value":212},{"type":67,"tag":202,"props":786,"children":787},{"style":380},[788],{"type":79,"value":711},{"type":67,"tag":202,"props":790,"children":791},{"style":249},[792],{"type":79,"value":793}," setup",{"type":67,"tag":202,"props":795,"children":796},{"style":249},[797],{"type":79,"value":798}," lang",{"type":67,"tag":202,"props":800,"children":801},{"style":209},[802],{"type":79,"value":223},{"type":67,"tag":202,"props":804,"children":805},{"style":209},[806],{"type":79,"value":228},{"type":67,"tag":202,"props":808,"children":809},{"style":231},[810],{"type":79,"value":196},{"type":67,"tag":202,"props":812,"children":813},{"style":209},[814],{"type":79,"value":228},{"type":67,"tag":202,"props":816,"children":817},{"style":209},[818],{"type":79,"value":242},{"type":67,"tag":202,"props":820,"children":821},{"class":204,"line":245},[822,826,831,835,839],{"type":67,"tag":202,"props":823,"children":824},{"style":249},[825],{"type":79,"value":252},{"type":67,"tag":202,"props":827,"children":828},{"style":215},[829],{"type":79,"value":830}," client ",{"type":67,"tag":202,"props":832,"children":833},{"style":209},[834],{"type":79,"value":223},{"type":67,"tag":202,"props":836,"children":837},{"style":264},[838],{"type":79,"value":267},{"type":67,"tag":202,"props":840,"children":841},{"style":215},[842],{"type":79,"value":272},{"type":67,"tag":202,"props":844,"children":845},{"class":204,"line":275},[846],{"type":67,"tag":202,"props":847,"children":848},{"emptyLinePlaceholder":279},[849],{"type":79,"value":282},{"type":67,"tag":202,"props":851,"children":852},{"class":204,"line":285},[853,857,861,866,870,875,880,884,888,893,897,901,906,910,915,919,923,927],{"type":67,"tag":202,"props":854,"children":855},{"style":249},[856],{"type":79,"value":252},{"type":67,"tag":202,"props":858,"children":859},{"style":209},[860],{"type":79,"value":333},{"type":67,"tag":202,"props":862,"children":863},{"style":380},[864],{"type":79,"value":865}," data",{"type":67,"tag":202,"props":867,"children":868},{"style":209},[869],{"type":79,"value":402},{"type":67,"tag":202,"props":871,"children":872},{"style":215},[873],{"type":79,"value":874}," restaurant ",{"type":67,"tag":202,"props":876,"children":877},{"style":209},[878],{"type":79,"value":879},"}",{"type":67,"tag":202,"props":881,"children":882},{"style":209},[883],{"type":79,"value":348},{"type":67,"tag":202,"props":885,"children":886},{"style":351},[887],{"type":79,"value":354},{"type":67,"tag":202,"props":889,"children":890},{"style":264},[891],{"type":79,"value":892}," useAsyncData",{"type":67,"tag":202,"props":894,"children":895},{"style":215},[896],{"type":79,"value":383},{"type":67,"tag":202,"props":898,"children":899},{"style":209},[900],{"type":79,"value":417},{"type":67,"tag":202,"props":902,"children":903},{"style":231},[904],{"type":79,"value":905},"restaurant",{"type":67,"tag":202,"props":907,"children":908},{"style":209},[909],{"type":79,"value":417},{"type":67,"tag":202,"props":911,"children":912},{"style":209},[913],{"type":79,"value":914},",",{"type":67,"tag":202,"props":916,"children":917},{"style":249},[918],{"type":79,"value":304},{"type":67,"tag":202,"props":920,"children":921},{"style":209},[922],{"type":79,"value":309},{"type":67,"tag":202,"props":924,"children":925},{"style":249},[926],{"type":79,"value":314},{"type":67,"tag":202,"props":928,"children":929},{"style":209},[930],{"type":79,"value":319},{"type":67,"tag":202,"props":932,"children":933},{"class":204,"line":322},[934,938,942,946,950,954,958,963,967,972,976,980,985,989,994,998,1002,1006,1010,1015,1019,1023,1027,1032,1036,1040,1045,1049,1053,1057,1062,1066,1070,1074,1079],{"type":67,"tag":202,"props":935,"children":936},{"style":249},[937],{"type":79,"value":328},{"type":67,"tag":202,"props":939,"children":940},{"style":209},[941],{"type":79,"value":333},{"type":67,"tag":202,"props":943,"children":944},{"style":215},[945],{"type":79,"value":865},{"type":67,"tag":202,"props":947,"children":948},{"style":209},[949],{"type":79,"value":343},{"type":67,"tag":202,"props":951,"children":952},{"style":209},[953],{"type":79,"value":348},{"type":67,"tag":202,"props":955,"children":956},{"style":351},[957],{"type":79,"value":354},{"type":67,"tag":202,"props":959,"children":960},{"style":215},[961],{"type":79,"value":962}," client",{"type":67,"tag":202,"props":964,"children":965},{"style":209},[966],{"type":79,"value":105},{"type":67,"tag":202,"props":968,"children":969},{"style":264},[970],{"type":79,"value":971},"from",{"type":67,"tag":202,"props":973,"children":974},{"style":380},[975],{"type":79,"value":383},{"type":67,"tag":202,"props":977,"children":978},{"style":209},[979],{"type":79,"value":417},{"type":67,"tag":202,"props":981,"children":982},{"style":231},[983],{"type":79,"value":984},"restaurants",{"type":67,"tag":202,"props":986,"children":987},{"style":209},[988],{"type":79,"value":417},{"type":67,"tag":202,"props":990,"children":991},{"style":380},[992],{"type":79,"value":993},")",{"type":67,"tag":202,"props":995,"children":996},{"style":209},[997],{"type":79,"value":105},{"type":67,"tag":202,"props":999,"children":1000},{"style":264},[1001],{"type":79,"value":757},{"type":67,"tag":202,"props":1003,"children":1004},{"style":380},[1005],{"type":79,"value":383},{"type":67,"tag":202,"props":1007,"children":1008},{"style":209},[1009],{"type":79,"value":417},{"type":67,"tag":202,"props":1011,"children":1012},{"style":231},[1013],{"type":79,"value":1014},"name, location",{"type":67,"tag":202,"props":1016,"children":1017},{"style":209},[1018],{"type":79,"value":417},{"type":67,"tag":202,"props":1020,"children":1021},{"style":380},[1022],{"type":79,"value":993},{"type":67,"tag":202,"props":1024,"children":1025},{"style":209},[1026],{"type":79,"value":105},{"type":67,"tag":202,"props":1028,"children":1029},{"style":264},[1030],{"type":79,"value":1031},"eq",{"type":67,"tag":202,"props":1033,"children":1034},{"style":380},[1035],{"type":79,"value":383},{"type":67,"tag":202,"props":1037,"children":1038},{"style":209},[1039],{"type":79,"value":417},{"type":67,"tag":202,"props":1041,"children":1042},{"style":231},[1043],{"type":79,"value":1044},"name",{"type":67,"tag":202,"props":1046,"children":1047},{"style":209},[1048],{"type":79,"value":417},{"type":67,"tag":202,"props":1050,"children":1051},{"style":209},[1052],{"type":79,"value":914},{"type":67,"tag":202,"props":1054,"children":1055},{"style":209},[1056],{"type":79,"value":407},{"type":67,"tag":202,"props":1058,"children":1059},{"style":231},[1060],{"type":79,"value":1061},"My Restaurant Name",{"type":67,"tag":202,"props":1063,"children":1064},{"style":209},[1065],{"type":79,"value":417},{"type":67,"tag":202,"props":1067,"children":1068},{"style":380},[1069],{"type":79,"value":993},{"type":67,"tag":202,"props":1071,"children":1072},{"style":209},[1073],{"type":79,"value":105},{"type":67,"tag":202,"props":1075,"children":1076},{"style":264},[1077],{"type":79,"value":1078},"single",{"type":67,"tag":202,"props":1080,"children":1081},{"style":380},[1082],{"type":79,"value":272},{"type":67,"tag":202,"props":1084,"children":1085},{"class":204,"line":391},[1086],{"type":67,"tag":202,"props":1087,"children":1088},{"emptyLinePlaceholder":279},[1089],{"type":79,"value":282},{"type":67,"tag":202,"props":1091,"children":1092},{"class":204,"line":425},[1093,1098],{"type":67,"tag":202,"props":1094,"children":1095},{"style":351},[1096],{"type":79,"value":1097}," return",{"type":67,"tag":202,"props":1099,"children":1100},{"style":215},[1101],{"type":79,"value":1102}," data\n",{"type":67,"tag":202,"props":1104,"children":1105},{"class":204,"line":442},[1106,1110],{"type":67,"tag":202,"props":1107,"children":1108},{"style":209},[1109],{"type":79,"value":879},{"type":67,"tag":202,"props":1111,"children":1112},{"style":215},[1113],{"type":79,"value":492},{"type":67,"tag":202,"props":1115,"children":1116},{"class":204,"line":472},[1117,1121,1125],{"type":67,"tag":202,"props":1118,"children":1119},{"style":209},[1120],{"type":79,"value":706},{"type":67,"tag":202,"props":1122,"children":1123},{"style":380},[1124],{"type":79,"value":711},{"type":67,"tag":202,"props":1126,"children":1127},{"style":209},[1128],{"type":79,"value":242},{"type":67,"tag":147,"props":1130,"children":1132},{"id":1131},"realtime",[1133],{"type":79,"value":1134},"Realtime",{"type":67,"tag":68,"props":1136,"children":1137},{},[1138,1140,1147],{"type":79,"value":1139},"Based on ",{"type":67,"tag":72,"props":1141,"children":1144},{"href":1142,"rel":1143},"https://github.com/supabase/realtime",[76],[1145],{"type":79,"value":1146},"Supabase Realtime",{"type":79,"value":1148},", listen to changes in your PostgreSQL Database and broadcasts them over WebSockets.",{"type":67,"tag":68,"props":1150,"children":1151},{},[1152,1154,1161],{"type":79,"value":1153},"To enable it, make sure you have turned on the ",{"type":67,"tag":72,"props":1155,"children":1158},{"href":1156,"rel":1157},"https://supabase.com/docs/guides/api#realtime-api",[76],[1159],{"type":79,"value":1160},"Realtime API",{"type":79,"value":1162}," for your table.",{"type":67,"tag":68,"props":1164,"children":1165},{},[1166],{"type":79,"value":1167},"Then, listen to changes directly in your vue page / component:",{"type":67,"tag":192,"props":1169,"children":1171},{"className":771,"code":1170,"language":773,"meta":61,"style":61},"\u003Cscript setup lang=\"ts\">\nimport type { RealtimeChannel } from '@supabase/supabase-js'\n\nconst client = useSupabaseClient()\n\nlet realtimeChannel: RealtimeChannel\n\n// Fetch collaborators and get the refresh method provided by useAsyncData\nconst { data: collaborators, refresh: refreshCollaborators } = await useAsyncData('collaborators', async () => {\n const { data } = await client.from('collaborators').select('name')\n return data\n})\n\n// Once page is mounted, listen to changes on the `collaborators` table and refresh collaborators when receiving event\nonMounted(() => {\n // Real time listener for new workouts\n realtimeChannel = client.channel('public:collaborators').on(\n 'postgres_changes',\n { event: '*', schema: 'public', table: 'collaborators' },\n () => refreshCollaborators()\n )\n\n realtimeChannel.subscribe()\n})\n\n // Don't forget to unsubscribe when user left the page\nonUnmounted(() => {\n client.removeChannel(realtimeChannel)\n})\n\u003C/script>\n",[1172],{"type":67,"tag":116,"props":1173,"children":1174},{"__ignoreMap":61},[1175,1214,1259,1266,1289,1296,1319,1326,1335,1430,1517,1528,1539,1546,1554,1579,1587,1647,1668,1755,1777,1786,1794,1815,1827,1835,1844,1869,1900,1912],{"type":67,"tag":202,"props":1176,"children":1177},{"class":204,"line":205},[1178,1182,1186,1190,1194,1198,1202,1206,1210],{"type":67,"tag":202,"props":1179,"children":1180},{"style":209},[1181],{"type":79,"value":212},{"type":67,"tag":202,"props":1183,"children":1184},{"style":380},[1185],{"type":79,"value":711},{"type":67,"tag":202,"props":1187,"children":1188},{"style":249},[1189],{"type":79,"value":793},{"type":67,"tag":202,"props":1191,"children":1192},{"style":249},[1193],{"type":79,"value":798},{"type":67,"tag":202,"props":1195,"children":1196},{"style":209},[1197],{"type":79,"value":223},{"type":67,"tag":202,"props":1199,"children":1200},{"style":209},[1201],{"type":79,"value":228},{"type":67,"tag":202,"props":1203,"children":1204},{"style":231},[1205],{"type":79,"value":196},{"type":67,"tag":202,"props":1207,"children":1208},{"style":209},[1209],{"type":79,"value":228},{"type":67,"tag":202,"props":1211,"children":1212},{"style":209},[1213],{"type":79,"value":242},{"type":67,"tag":202,"props":1215,"children":1216},{"class":204,"line":245},[1217,1222,1227,1231,1236,1240,1245,1249,1254],{"type":67,"tag":202,"props":1218,"children":1219},{"style":351},[1220],{"type":79,"value":1221},"import",{"type":67,"tag":202,"props":1223,"children":1224},{"style":351},[1225],{"type":79,"value":1226}," type",{"type":67,"tag":202,"props":1228,"children":1229},{"style":209},[1230],{"type":79,"value":333},{"type":67,"tag":202,"props":1232,"children":1233},{"style":215},[1234],{"type":79,"value":1235}," RealtimeChannel",{"type":67,"tag":202,"props":1237,"children":1238},{"style":209},[1239],{"type":79,"value":343},{"type":67,"tag":202,"props":1241,"children":1242},{"style":351},[1243],{"type":79,"value":1244}," from",{"type":67,"tag":202,"props":1246,"children":1247},{"style":209},[1248],{"type":79,"value":407},{"type":67,"tag":202,"props":1250,"children":1251},{"style":231},[1252],{"type":79,"value":1253},"@supabase/supabase-js",{"type":67,"tag":202,"props":1255,"children":1256},{"style":209},[1257],{"type":79,"value":1258},"'\n",{"type":67,"tag":202,"props":1260,"children":1261},{"class":204,"line":275},[1262],{"type":67,"tag":202,"props":1263,"children":1264},{"emptyLinePlaceholder":279},[1265],{"type":79,"value":282},{"type":67,"tag":202,"props":1267,"children":1268},{"class":204,"line":285},[1269,1273,1277,1281,1285],{"type":67,"tag":202,"props":1270,"children":1271},{"style":249},[1272],{"type":79,"value":252},{"type":67,"tag":202,"props":1274,"children":1275},{"style":215},[1276],{"type":79,"value":830},{"type":67,"tag":202,"props":1278,"children":1279},{"style":209},[1280],{"type":79,"value":223},{"type":67,"tag":202,"props":1282,"children":1283},{"style":264},[1284],{"type":79,"value":267},{"type":67,"tag":202,"props":1286,"children":1287},{"style":215},[1288],{"type":79,"value":272},{"type":67,"tag":202,"props":1290,"children":1291},{"class":204,"line":322},[1292],{"type":67,"tag":202,"props":1293,"children":1294},{"emptyLinePlaceholder":279},[1295],{"type":79,"value":282},{"type":67,"tag":202,"props":1297,"children":1298},{"class":204,"line":391},[1299,1304,1309,1313],{"type":67,"tag":202,"props":1300,"children":1301},{"style":249},[1302],{"type":79,"value":1303},"let",{"type":67,"tag":202,"props":1305,"children":1306},{"style":215},[1307],{"type":79,"value":1308}," realtimeChannel",{"type":67,"tag":202,"props":1310,"children":1311},{"style":209},[1312],{"type":79,"value":402},{"type":67,"tag":202,"props":1314,"children":1316},{"style":1315},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[1317],{"type":79,"value":1318}," RealtimeChannel\n",{"type":67,"tag":202,"props":1320,"children":1321},{"class":204,"line":425},[1322],{"type":67,"tag":202,"props":1323,"children":1324},{"emptyLinePlaceholder":279},[1325],{"type":79,"value":282},{"type":67,"tag":202,"props":1327,"children":1328},{"class":204,"line":442},[1329],{"type":67,"tag":202,"props":1330,"children":1332},{"style":1331},"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[1333],{"type":79,"value":1334},"// Fetch collaborators and get the refresh method provided by useAsyncData\n",{"type":67,"tag":202,"props":1336,"children":1337},{"class":204,"line":472},[1338,1342,1346,1350,1354,1359,1363,1368,1372,1377,1381,1385,1389,1393,1397,1401,1406,1410,1414,1418,1422,1426],{"type":67,"tag":202,"props":1339,"children":1340},{"style":249},[1341],{"type":79,"value":252},{"type":67,"tag":202,"props":1343,"children":1344},{"style":209},[1345],{"type":79,"value":333},{"type":67,"tag":202,"props":1347,"children":1348},{"style":380},[1349],{"type":79,"value":865},{"type":67,"tag":202,"props":1351,"children":1352},{"style":209},[1353],{"type":79,"value":402},{"type":67,"tag":202,"props":1355,"children":1356},{"style":215},[1357],{"type":79,"value":1358}," collaborators",{"type":67,"tag":202,"props":1360,"children":1361},{"style":209},[1362],{"type":79,"value":914},{"type":67,"tag":202,"props":1364,"children":1365},{"style":380},[1366],{"type":79,"value":1367}," refresh",{"type":67,"tag":202,"props":1369,"children":1370},{"style":209},[1371],{"type":79,"value":402},{"type":67,"tag":202,"props":1373,"children":1374},{"style":215},[1375],{"type":79,"value":1376}," refreshCollaborators ",{"type":67,"tag":202,"props":1378,"children":1379},{"style":209},[1380],{"type":79,"value":879},{"type":67,"tag":202,"props":1382,"children":1383},{"style":209},[1384],{"type":79,"value":348},{"type":67,"tag":202,"props":1386,"children":1387},{"style":351},[1388],{"type":79,"value":354},{"type":67,"tag":202,"props":1390,"children":1391},{"style":264},[1392],{"type":79,"value":892},{"type":67,"tag":202,"props":1394,"children":1395},{"style":215},[1396],{"type":79,"value":383},{"type":67,"tag":202,"props":1398,"children":1399},{"style":209},[1400],{"type":79,"value":417},{"type":67,"tag":202,"props":1402,"children":1403},{"style":231},[1404],{"type":79,"value":1405},"collaborators",{"type":67,"tag":202,"props":1407,"children":1408},{"style":209},[1409],{"type":79,"value":417},{"type":67,"tag":202,"props":1411,"children":1412},{"style":209},[1413],{"type":79,"value":914},{"type":67,"tag":202,"props":1415,"children":1416},{"style":249},[1417],{"type":79,"value":304},{"type":67,"tag":202,"props":1419,"children":1420},{"style":209},[1421],{"type":79,"value":309},{"type":67,"tag":202,"props":1423,"children":1424},{"style":249},[1425],{"type":79,"value":314},{"type":67,"tag":202,"props":1427,"children":1428},{"style":209},[1429],{"type":79,"value":319},{"type":67,"tag":202,"props":1431,"children":1432},{"class":204,"line":481},[1433,1437,1441,1445,1449,1453,1457,1461,1465,1469,1473,1477,1481,1485,1489,1493,1497,1501,1505,1509,1513],{"type":67,"tag":202,"props":1434,"children":1435},{"style":249},[1436],{"type":79,"value":328},{"type":67,"tag":202,"props":1438,"children":1439},{"style":209},[1440],{"type":79,"value":333},{"type":67,"tag":202,"props":1442,"children":1443},{"style":215},[1444],{"type":79,"value":865},{"type":67,"tag":202,"props":1446,"children":1447},{"style":209},[1448],{"type":79,"value":343},{"type":67,"tag":202,"props":1450,"children":1451},{"style":209},[1452],{"type":79,"value":348},{"type":67,"tag":202,"props":1454,"children":1455},{"style":351},[1456],{"type":79,"value":354},{"type":67,"tag":202,"props":1458,"children":1459},{"style":215},[1460],{"type":79,"value":962},{"type":67,"tag":202,"props":1462,"children":1463},{"style":209},[1464],{"type":79,"value":105},{"type":67,"tag":202,"props":1466,"children":1467},{"style":264},[1468],{"type":79,"value":971},{"type":67,"tag":202,"props":1470,"children":1471},{"style":380},[1472],{"type":79,"value":383},{"type":67,"tag":202,"props":1474,"children":1475},{"style":209},[1476],{"type":79,"value":417},{"type":67,"tag":202,"props":1478,"children":1479},{"style":231},[1480],{"type":79,"value":1405},{"type":67,"tag":202,"props":1482,"children":1483},{"style":209},[1484],{"type":79,"value":417},{"type":67,"tag":202,"props":1486,"children":1487},{"style":380},[1488],{"type":79,"value":993},{"type":67,"tag":202,"props":1490,"children":1491},{"style":209},[1492],{"type":79,"value":105},{"type":67,"tag":202,"props":1494,"children":1495},{"style":264},[1496],{"type":79,"value":757},{"type":67,"tag":202,"props":1498,"children":1499},{"style":380},[1500],{"type":79,"value":383},{"type":67,"tag":202,"props":1502,"children":1503},{"style":209},[1504],{"type":79,"value":417},{"type":67,"tag":202,"props":1506,"children":1507},{"style":231},[1508],{"type":79,"value":1044},{"type":67,"tag":202,"props":1510,"children":1511},{"style":209},[1512],{"type":79,"value":417},{"type":67,"tag":202,"props":1514,"children":1515},{"style":380},[1516],{"type":79,"value":492},{"type":67,"tag":202,"props":1518,"children":1519},{"class":204,"line":495},[1520,1524],{"type":67,"tag":202,"props":1521,"children":1522},{"style":351},[1523],{"type":79,"value":1097},{"type":67,"tag":202,"props":1525,"children":1526},{"style":215},[1527],{"type":79,"value":1102},{"type":67,"tag":202,"props":1529,"children":1530},{"class":204,"line":545},[1531,1535],{"type":67,"tag":202,"props":1532,"children":1533},{"style":209},[1534],{"type":79,"value":879},{"type":67,"tag":202,"props":1536,"children":1537},{"style":215},[1538],{"type":79,"value":492},{"type":67,"tag":202,"props":1540,"children":1541},{"class":204,"line":554},[1542],{"type":67,"tag":202,"props":1543,"children":1544},{"emptyLinePlaceholder":279},[1545],{"type":79,"value":282},{"type":67,"tag":202,"props":1547,"children":1548},{"class":204,"line":562},[1549],{"type":67,"tag":202,"props":1550,"children":1551},{"style":1331},[1552],{"type":79,"value":1553},"// Once page is mounted, listen to changes on the `collaborators` table and refresh collaborators when receiving event\n",{"type":67,"tag":202,"props":1555,"children":1556},{"class":204,"line":595},[1557,1562,1566,1571,1575],{"type":67,"tag":202,"props":1558,"children":1559},{"style":264},[1560],{"type":79,"value":1561},"onMounted",{"type":67,"tag":202,"props":1563,"children":1564},{"style":215},[1565],{"type":79,"value":383},{"type":67,"tag":202,"props":1567,"children":1568},{"style":209},[1569],{"type":79,"value":1570},"()",{"type":67,"tag":202,"props":1572,"children":1573},{"style":249},[1574],{"type":79,"value":314},{"type":67,"tag":202,"props":1576,"children":1577},{"style":209},[1578],{"type":79,"value":319},{"type":67,"tag":202,"props":1580,"children":1581},{"class":204,"line":648},[1582],{"type":67,"tag":202,"props":1583,"children":1584},{"style":1331},[1585],{"type":79,"value":1586}," // Real time listener for new workouts\n",{"type":67,"tag":202,"props":1588,"children":1589},{"class":204,"line":692},[1590,1595,1599,1603,1607,1612,1616,1620,1625,1629,1633,1637,1642],{"type":67,"tag":202,"props":1591,"children":1592},{"style":215},[1593],{"type":79,"value":1594}," realtimeChannel",{"type":67,"tag":202,"props":1596,"children":1597},{"style":209},[1598],{"type":79,"value":348},{"type":67,"tag":202,"props":1600,"children":1601},{"style":215},[1602],{"type":79,"value":962},{"type":67,"tag":202,"props":1604,"children":1605},{"style":209},[1606],{"type":79,"value":105},{"type":67,"tag":202,"props":1608,"children":1609},{"style":264},[1610],{"type":79,"value":1611},"channel",{"type":67,"tag":202,"props":1613,"children":1614},{"style":380},[1615],{"type":79,"value":383},{"type":67,"tag":202,"props":1617,"children":1618},{"style":209},[1619],{"type":79,"value":417},{"type":67,"tag":202,"props":1621,"children":1622},{"style":231},[1623],{"type":79,"value":1624},"public:collaborators",{"type":67,"tag":202,"props":1626,"children":1627},{"style":209},[1628],{"type":79,"value":417},{"type":67,"tag":202,"props":1630,"children":1631},{"style":380},[1632],{"type":79,"value":993},{"type":67,"tag":202,"props":1634,"children":1635},{"style":209},[1636],{"type":79,"value":105},{"type":67,"tag":202,"props":1638,"children":1639},{"style":264},[1640],{"type":79,"value":1641},"on",{"type":67,"tag":202,"props":1643,"children":1644},{"style":380},[1645],{"type":79,"value":1646},"(\n",{"type":67,"tag":202,"props":1648,"children":1649},{"class":204,"line":700},[1650,1655,1660,1664],{"type":67,"tag":202,"props":1651,"children":1652},{"style":209},[1653],{"type":79,"value":1654}," '",{"type":67,"tag":202,"props":1656,"children":1657},{"style":231},[1658],{"type":79,"value":1659},"postgres_changes",{"type":67,"tag":202,"props":1661,"children":1662},{"style":209},[1663],{"type":79,"value":417},{"type":67,"tag":202,"props":1665,"children":1666},{"style":209},[1667],{"type":79,"value":422},{"type":67,"tag":202,"props":1669,"children":1671},{"class":204,"line":1670},19,[1672,1677,1682,1686,1690,1695,1699,1703,1708,1712,1716,1721,1725,1729,1734,1738,1742,1746,1750],{"type":67,"tag":202,"props":1673,"children":1674},{"style":209},[1675],{"type":79,"value":1676}," {",{"type":67,"tag":202,"props":1678,"children":1679},{"style":380},[1680],{"type":79,"value":1681}," event",{"type":67,"tag":202,"props":1683,"children":1684},{"style":209},[1685],{"type":79,"value":402},{"type":67,"tag":202,"props":1687,"children":1688},{"style":209},[1689],{"type":79,"value":407},{"type":67,"tag":202,"props":1691,"children":1692},{"style":231},[1693],{"type":79,"value":1694},"*",{"type":67,"tag":202,"props":1696,"children":1697},{"style":209},[1698],{"type":79,"value":417},{"type":67,"tag":202,"props":1700,"children":1701},{"style":209},[1702],{"type":79,"value":914},{"type":67,"tag":202,"props":1704,"children":1705},{"style":380},[1706],{"type":79,"value":1707}," schema",{"type":67,"tag":202,"props":1709,"children":1710},{"style":209},[1711],{"type":79,"value":402},{"type":67,"tag":202,"props":1713,"children":1714},{"style":209},[1715],{"type":79,"value":407},{"type":67,"tag":202,"props":1717,"children":1718},{"style":231},[1719],{"type":79,"value":1720},"public",{"type":67,"tag":202,"props":1722,"children":1723},{"style":209},[1724],{"type":79,"value":417},{"type":67,"tag":202,"props":1726,"children":1727},{"style":209},[1728],{"type":79,"value":914},{"type":67,"tag":202,"props":1730,"children":1731},{"style":380},[1732],{"type":79,"value":1733}," table",{"type":67,"tag":202,"props":1735,"children":1736},{"style":209},[1737],{"type":79,"value":402},{"type":67,"tag":202,"props":1739,"children":1740},{"style":209},[1741],{"type":79,"value":407},{"type":67,"tag":202,"props":1743,"children":1744},{"style":231},[1745],{"type":79,"value":1405},{"type":67,"tag":202,"props":1747,"children":1748},{"style":209},[1749],{"type":79,"value":417},{"type":67,"tag":202,"props":1751,"children":1752},{"style":209},[1753],{"type":79,"value":1754}," },\n",{"type":67,"tag":202,"props":1756,"children":1758},{"class":204,"line":1757},20,[1759,1764,1768,1773],{"type":67,"tag":202,"props":1760,"children":1761},{"style":209},[1762],{"type":79,"value":1763}," ()",{"type":67,"tag":202,"props":1765,"children":1766},{"style":249},[1767],{"type":79,"value":314},{"type":67,"tag":202,"props":1769,"children":1770},{"style":264},[1771],{"type":79,"value":1772}," refreshCollaborators",{"type":67,"tag":202,"props":1774,"children":1775},{"style":380},[1776],{"type":79,"value":272},{"type":67,"tag":202,"props":1778,"children":1780},{"class":204,"line":1779},21,[1781],{"type":67,"tag":202,"props":1782,"children":1783},{"style":380},[1784],{"type":79,"value":1785}," )\n",{"type":67,"tag":202,"props":1787,"children":1789},{"class":204,"line":1788},22,[1790],{"type":67,"tag":202,"props":1791,"children":1792},{"emptyLinePlaceholder":279},[1793],{"type":79,"value":282},{"type":67,"tag":202,"props":1795,"children":1797},{"class":204,"line":1796},23,[1798,1802,1806,1811],{"type":67,"tag":202,"props":1799,"children":1800},{"style":215},[1801],{"type":79,"value":1594},{"type":67,"tag":202,"props":1803,"children":1804},{"style":209},[1805],{"type":79,"value":105},{"type":67,"tag":202,"props":1807,"children":1808},{"style":264},[1809],{"type":79,"value":1810},"subscribe",{"type":67,"tag":202,"props":1812,"children":1813},{"style":380},[1814],{"type":79,"value":272},{"type":67,"tag":202,"props":1816,"children":1818},{"class":204,"line":1817},24,[1819,1823],{"type":67,"tag":202,"props":1820,"children":1821},{"style":209},[1822],{"type":79,"value":879},{"type":67,"tag":202,"props":1824,"children":1825},{"style":215},[1826],{"type":79,"value":492},{"type":67,"tag":202,"props":1828,"children":1830},{"class":204,"line":1829},25,[1831],{"type":67,"tag":202,"props":1832,"children":1833},{"emptyLinePlaceholder":279},[1834],{"type":79,"value":282},{"type":67,"tag":202,"props":1836,"children":1838},{"class":204,"line":1837},26,[1839],{"type":67,"tag":202,"props":1840,"children":1841},{"style":1331},[1842],{"type":79,"value":1843}," // Don't forget to unsubscribe when user left the page\n",{"type":67,"tag":202,"props":1845,"children":1847},{"class":204,"line":1846},27,[1848,1853,1857,1861,1865],{"type":67,"tag":202,"props":1849,"children":1850},{"style":264},[1851],{"type":79,"value":1852},"onUnmounted",{"type":67,"tag":202,"props":1854,"children":1855},{"style":215},[1856],{"type":79,"value":383},{"type":67,"tag":202,"props":1858,"children":1859},{"style":209},[1860],{"type":79,"value":1570},{"type":67,"tag":202,"props":1862,"children":1863},{"style":249},[1864],{"type":79,"value":314},{"type":67,"tag":202,"props":1866,"children":1867},{"style":209},[1868],{"type":79,"value":319},{"type":67,"tag":202,"props":1870,"children":1872},{"class":204,"line":1871},28,[1873,1878,1882,1887,1891,1896],{"type":67,"tag":202,"props":1874,"children":1875},{"style":215},[1876],{"type":79,"value":1877}," client",{"type":67,"tag":202,"props":1879,"children":1880},{"style":209},[1881],{"type":79,"value":105},{"type":67,"tag":202,"props":1883,"children":1884},{"style":264},[1885],{"type":79,"value":1886},"removeChannel",{"type":67,"tag":202,"props":1888,"children":1889},{"style":380},[1890],{"type":79,"value":383},{"type":67,"tag":202,"props":1892,"children":1893},{"style":215},[1894],{"type":79,"value":1895},"realtimeChannel",{"type":67,"tag":202,"props":1897,"children":1898},{"style":380},[1899],{"type":79,"value":492},{"type":67,"tag":202,"props":1901,"children":1903},{"class":204,"line":1902},29,[1904,1908],{"type":67,"tag":202,"props":1905,"children":1906},{"style":209},[1907],{"type":79,"value":879},{"type":67,"tag":202,"props":1909,"children":1910},{"style":215},[1911],{"type":79,"value":492},{"type":67,"tag":202,"props":1913,"children":1915},{"class":204,"line":1914},30,[1916,1920,1924],{"type":67,"tag":202,"props":1917,"children":1918},{"style":209},[1919],{"type":79,"value":706},{"type":67,"tag":202,"props":1921,"children":1922},{"style":380},[1923],{"type":79,"value":711},{"type":67,"tag":202,"props":1925,"children":1926},{"style":209},[1927],{"type":79,"value":242},{"type":67,"tag":147,"props":1929,"children":1931},{"id":1930},"typescript",[1932],{"type":79,"value":1933},"Typescript",{"type":67,"tag":68,"props":1935,"children":1936},{},[1937,1939,1945,1947,1953,1955,1962],{"type":79,"value":1938},"Database typings are passed to the client out of the box if the database generated types are found at ",{"type":67,"tag":116,"props":1940,"children":1942},{"className":1941},[],[1943],{"type":79,"value":1944},"./types/database.types.ts",{"type":79,"value":1946}," or ",{"type":67,"tag":72,"props":1948,"children":1950},{"href":1949},"/get-started#types",[1951],{"type":79,"value":1952},"your configured types path",{"type":79,"value":1954},". Check Supabase ",{"type":67,"tag":72,"props":1956,"children":1959},{"href":1957,"rel":1958},"https://supabase.com/docs/reference/javascript/release-notes#typescript-support",[76],[1960],{"type":79,"value":1961},"documentation",{"type":79,"value":1963}," for further information.",{"type":67,"tag":192,"props":1965,"children":1969},{"className":1966,"code":1967,"language":1968,"meta":61,"style":61},"language-shell shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","## Generate types from live database\nsupabase gen types typescript --project-id YourProjectId > types/database.types.ts\n\n## Generate types when using local environment\nsupabase gen types typescript --local > types/database.types.ts\n","shell",[1970],{"type":67,"tag":116,"props":1971,"children":1972},{"__ignoreMap":61},[1973,1981,2024,2031,2039],{"type":67,"tag":202,"props":1974,"children":1975},{"class":204,"line":205},[1976],{"type":67,"tag":202,"props":1977,"children":1978},{"style":1331},[1979],{"type":79,"value":1980},"## Generate types from live database\n",{"type":67,"tag":202,"props":1982,"children":1983},{"class":204,"line":245},[1984,1989,1994,1999,2004,2009,2014,2019],{"type":67,"tag":202,"props":1985,"children":1986},{"style":1315},[1987],{"type":79,"value":1988},"supabase",{"type":67,"tag":202,"props":1990,"children":1991},{"style":231},[1992],{"type":79,"value":1993}," gen",{"type":67,"tag":202,"props":1995,"children":1996},{"style":231},[1997],{"type":79,"value":1998}," types",{"type":67,"tag":202,"props":2000,"children":2001},{"style":231},[2002],{"type":79,"value":2003}," typescript",{"type":67,"tag":202,"props":2005,"children":2006},{"style":231},[2007],{"type":79,"value":2008}," --project-id",{"type":67,"tag":202,"props":2010,"children":2011},{"style":231},[2012],{"type":79,"value":2013}," YourProjectId",{"type":67,"tag":202,"props":2015,"children":2016},{"style":209},[2017],{"type":79,"value":2018}," >",{"type":67,"tag":202,"props":2020,"children":2021},{"style":231},[2022],{"type":79,"value":2023}," types/database.types.ts\n",{"type":67,"tag":202,"props":2025,"children":2026},{"class":204,"line":275},[2027],{"type":67,"tag":202,"props":2028,"children":2029},{"emptyLinePlaceholder":279},[2030],{"type":79,"value":282},{"type":67,"tag":202,"props":2032,"children":2033},{"class":204,"line":285},[2034],{"type":67,"tag":202,"props":2035,"children":2036},{"style":1331},[2037],{"type":79,"value":2038},"## Generate types when using local environment\n",{"type":67,"tag":202,"props":2040,"children":2041},{"class":204,"line":322},[2042,2046,2050,2054,2058,2063,2067],{"type":67,"tag":202,"props":2043,"children":2044},{"style":1315},[2045],{"type":79,"value":1988},{"type":67,"tag":202,"props":2047,"children":2048},{"style":231},[2049],{"type":79,"value":1993},{"type":67,"tag":202,"props":2051,"children":2052},{"style":231},[2053],{"type":79,"value":1998},{"type":67,"tag":202,"props":2055,"children":2056},{"style":231},[2057],{"type":79,"value":2003},{"type":67,"tag":202,"props":2059,"children":2060},{"style":231},[2061],{"type":79,"value":2062}," --local",{"type":67,"tag":202,"props":2064,"children":2065},{"style":209},[2066],{"type":79,"value":2018},{"type":67,"tag":202,"props":2068,"children":2069},{"style":231},[2070],{"type":79,"value":2023},{"type":67,"tag":68,"props":2072,"children":2073},{},[2074],{"type":79,"value":2075},"You can also pass Database typings to the client manually:",{"type":67,"tag":192,"props":2077,"children":2079},{"className":771,"code":2078,"language":773,"meta":61,"style":61},"\u003Cscript setup lang=\"ts\">\nimport type { Database } from '~/types'\nconst client = useSupabaseClient\u003CDatabase>()\n\u003C/script>\n",[2080],{"type":67,"tag":116,"props":2081,"children":2082},{"__ignoreMap":61},[2083,2122,2163,2200],{"type":67,"tag":202,"props":2084,"children":2085},{"class":204,"line":205},[2086,2090,2094,2098,2102,2106,2110,2114,2118],{"type":67,"tag":202,"props":2087,"children":2088},{"style":209},[2089],{"type":79,"value":212},{"type":67,"tag":202,"props":2091,"children":2092},{"style":380},[2093],{"type":79,"value":711},{"type":67,"tag":202,"props":2095,"children":2096},{"style":249},[2097],{"type":79,"value":793},{"type":67,"tag":202,"props":2099,"children":2100},{"style":249},[2101],{"type":79,"value":798},{"type":67,"tag":202,"props":2103,"children":2104},{"style":209},[2105],{"type":79,"value":223},{"type":67,"tag":202,"props":2107,"children":2108},{"style":209},[2109],{"type":79,"value":228},{"type":67,"tag":202,"props":2111,"children":2112},{"style":231},[2113],{"type":79,"value":196},{"type":67,"tag":202,"props":2115,"children":2116},{"style":209},[2117],{"type":79,"value":228},{"type":67,"tag":202,"props":2119,"children":2120},{"style":209},[2121],{"type":79,"value":242},{"type":67,"tag":202,"props":2123,"children":2124},{"class":204,"line":245},[2125,2129,2133,2137,2142,2146,2150,2154,2159],{"type":67,"tag":202,"props":2126,"children":2127},{"style":351},[2128],{"type":79,"value":1221},{"type":67,"tag":202,"props":2130,"children":2131},{"style":351},[2132],{"type":79,"value":1226},{"type":67,"tag":202,"props":2134,"children":2135},{"style":209},[2136],{"type":79,"value":333},{"type":67,"tag":202,"props":2138,"children":2139},{"style":215},[2140],{"type":79,"value":2141}," Database",{"type":67,"tag":202,"props":2143,"children":2144},{"style":209},[2145],{"type":79,"value":343},{"type":67,"tag":202,"props":2147,"children":2148},{"style":351},[2149],{"type":79,"value":1244},{"type":67,"tag":202,"props":2151,"children":2152},{"style":209},[2153],{"type":79,"value":407},{"type":67,"tag":202,"props":2155,"children":2156},{"style":231},[2157],{"type":79,"value":2158},"~/types",{"type":67,"tag":202,"props":2160,"children":2161},{"style":209},[2162],{"type":79,"value":1258},{"type":67,"tag":202,"props":2164,"children":2165},{"class":204,"line":275},[2166,2170,2174,2178,2182,2186,2191,2196],{"type":67,"tag":202,"props":2167,"children":2168},{"style":249},[2169],{"type":79,"value":252},{"type":67,"tag":202,"props":2171,"children":2172},{"style":215},[2173],{"type":79,"value":830},{"type":67,"tag":202,"props":2175,"children":2176},{"style":209},[2177],{"type":79,"value":223},{"type":67,"tag":202,"props":2179,"children":2180},{"style":264},[2181],{"type":79,"value":267},{"type":67,"tag":202,"props":2183,"children":2184},{"style":209},[2185],{"type":79,"value":212},{"type":67,"tag":202,"props":2187,"children":2188},{"style":1315},[2189],{"type":79,"value":2190},"Database",{"type":67,"tag":202,"props":2192,"children":2193},{"style":209},[2194],{"type":79,"value":2195},">",{"type":67,"tag":202,"props":2197,"children":2198},{"style":215},[2199],{"type":79,"value":272},{"type":67,"tag":202,"props":2201,"children":2202},{"class":204,"line":285},[2203,2207,2211],{"type":67,"tag":202,"props":2204,"children":2205},{"style":209},[2206],{"type":79,"value":706},{"type":67,"tag":202,"props":2208,"children":2209},{"style":380},[2210],{"type":79,"value":711},{"type":67,"tag":202,"props":2212,"children":2213},{"style":209},[2214],{"type":79,"value":242},{"type":67,"tag":2216,"props":2217,"children":2218},"style",{},[2219],{"type":79,"value":2220},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":61,"searchDepth":245,"depth":245,"links":2222},[2223,2224,2225,2226],{"id":149,"depth":245,"text":9},{"id":729,"depth":245,"text":732},{"id":1131,"depth":245,"text":1134},{"id":1930,"depth":245,"text":1933},"markdown","content:4.usage:composables:useSupabaseClient.md","content","4.usage/composables/useSupabaseClient.md","4.usage/composables/useSupabaseClient","md",[2234,2236],{"_path":10,"title":9,"description":2235},"Authenticate your user thanks to the PKCE Oauth protocol that enables secure exchange of refresh and access tokens between an application and the authorization server",{"_path":25,"title":24,"description":2237},"Auto import and use your Supabase user's session with the useSupabaseSession composable",1725006469549] \ No newline at end of file +[{"data":1,"prerenderedAt":2238},["ShallowReactive",2],{"navigation":3,"/usage/composables/usesupabaseclient":58,"/usage/composables/usesupabaseclient-surround":2233},[4,8,12,46,50,54],{"title":5,"_path":6,"icon":7},"Get Started","/get-started","i-heroicons-rocket-launch",{"title":9,"_path":10,"icon":11},"Authentication","/authentication","i-heroicons-lock-closed",{"title":13,"_path":14,"children":15,"icon":45},"Usage","/usage",[16,29],{"title":17,"_path":18,"children":19},"Vue composables","/usage/composables",[20,23,26],{"title":21,"_path":22},"useSupabaseClient","/usage/composables/usesupabaseclient",{"title":24,"_path":25},"useSupabaseSession","/usage/composables/usesupabasesession",{"title":27,"_path":28},"useSupabaseUser","/usage/composables/usesupabaseuser",{"title":30,"_path":31,"children":32},"Server services","/usage/services",[33,36,39,42],{"title":34,"_path":35},"serverSupabaseClient","/usage/services/serversupabaseclient",{"title":37,"_path":38},"serverSupabaseServiceRole","/usage/services/serversupabaseservicerole",{"title":40,"_path":41},"serverSupabaseSession","/usage/services/serversupabasesession",{"title":43,"_path":44},"serverSupabaseUser","/usage/services/serversupabaseuser","heroicons:book-open",{"title":47,"_path":48,"icon":49},"Demo","/demo","i-heroicons-computer-desktop-20-solid",{"title":51,"_path":52,"icon":53},"Changelog","/changelog","i-heroicons-bookmark",{"title":55,"_path":56,"icon":57},"Roadmap","/roadmap","i-heroicons-map",{"_path":22,"_dir":59,"_draft":60,"_partial":60,"_locale":61,"title":21,"description":62,"body":63,"_type":2227,"_id":2228,"_source":2229,"_file":2230,"_stem":2231,"_extension":2232},"composables",false,"","Make requests to the Supabase API with the useSupabaseClient composable",{"type":64,"children":65,"toc":2221},"root",[66,83,106,146,152,174,191,716,727,733,747,769,1129,1135,1149,1163,1168,1928,1934,1964,2071,2076,2215],{"type":67,"tag":68,"props":69,"children":70},"element","p",{},[71,81],{"type":67,"tag":72,"props":73,"children":77},"a",{"href":74,"rel":75},"https://nuxt.com/docs/guide/directory-structure/composables",[76],"nofollow",[78],{"type":79,"value":80},"text","Auto-import",{"type":79,"value":82}," your client inside your vue files.",{"type":67,"tag":68,"props":84,"children":85},{},[86,88,95,97,104],{"type":79,"value":87},"This composable is using ",{"type":67,"tag":72,"props":89,"children":92},{"href":90,"rel":91},"https://github.com/supabase/supabase-js/",[76],[93],{"type":79,"value":94},"supabase-js",{"type":79,"value":96}," under the hood, it gives access to the ",{"type":67,"tag":72,"props":98,"children":101},{"href":99,"rel":100},"https://supabase.com/docs/reference/javascript/initializing",[76],[102],{"type":79,"value":103},"Supabase client",{"type":79,"value":105},".",{"type":67,"tag":107,"props":108,"children":109},"blockquote",{},[110],{"type":67,"tag":68,"props":111,"children":112},{},[113,115,122,124,130,132,139,141,145],{"type":79,"value":114},"The client is initialized with the ",{"type":67,"tag":116,"props":117,"children":119},"code",{"className":118},[],[120],{"type":79,"value":121},"SUPABASE_KEY",{"type":79,"value":123}," you must have in your ",{"type":67,"tag":116,"props":125,"children":127},{"className":126},[],[128],{"type":79,"value":129},".env",{"type":79,"value":131}," file. It establishes the connection with the database and make use of user JWT to apply ",{"type":67,"tag":72,"props":133,"children":136},{"href":134,"rel":135},"https://supabase.com/docs/learn/auth-deep-dive/auth-row-level-security",[76],[137],{"type":79,"value":138},"RLS Policies",{"type":79,"value":140}," implemented in Supabase. If you want to bypass policies, you can use the ",{"type":67,"tag":72,"props":142,"children":143},{"href":38},[144],{"type":79,"value":37},{"type":79,"value":105},{"type":67,"tag":147,"props":148,"children":150},"h2",{"id":149},"authentication",[151],{"type":79,"value":9},{"type":67,"tag":68,"props":153,"children":154},{},[155,157,163,165,172],{"type":79,"value":156},"The useSupabaseClient composable is providing all methods to manage authorization under ",{"type":67,"tag":116,"props":158,"children":160},{"className":159},[],[161],{"type":79,"value":162},"useSupabaseClient().auth",{"type":79,"value":164},". For more details please see the ",{"type":67,"tag":72,"props":166,"children":169},{"href":167,"rel":168},"https://supabase.com/docs/reference/javascript/auth-api",[76],[170],{"type":79,"value":171},"supabase-js auth documentation",{"type":79,"value":173},". Here is an example for signing in and out:",{"type":67,"tag":175,"props":176,"children":178},"callout",{"icon":177},"i-heroicons-light-bulb",[179],{"type":67,"tag":68,"props":180,"children":181},{},[182,184,190],{"type":79,"value":183},"If you want a full explanation on how to handle the authentication process, please read this ",{"type":67,"tag":72,"props":185,"children":187},{"href":186},"/get-started#handle-authentication",[188],{"type":79,"value":189},"section",{"type":79,"value":105},{"type":67,"tag":192,"props":193,"children":197},"pre",{"className":194,"code":195,"language":196,"meta":61,"style":61},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cscript setup lang=\"ts\">\nconst supabase = useSupabaseClient()\n\nconst signInWithOAuth = async () => {\n const { error } = await supabase.auth.signInWithOAuth({\n provider: 'github',\n options: {\n redirectTo: 'http://localhost:3000/confirm',\n },\n })\n if (error) console.log(error)\n}\n\nconst signOut = async () => {\n const { error } = await supabase.auth.signOut()\n if (error) console.log(error)\n}\n\u003C/script>\n","ts",[198],{"type":67,"tag":116,"props":199,"children":200},{"__ignoreMap":61},[201,243,273,283,320,389,423,440,470,479,493,543,552,560,593,646,690,698],{"type":67,"tag":202,"props":203,"children":206},"span",{"class":204,"line":205},"line",1,[207,213,219,224,229,234,238],{"type":67,"tag":202,"props":208,"children":210},{"style":209},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[211],{"type":79,"value":212},"\u003C",{"type":67,"tag":202,"props":214,"children":216},{"style":215},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[217],{"type":79,"value":218},"script setup lang",{"type":67,"tag":202,"props":220,"children":221},{"style":209},[222],{"type":79,"value":223},"=",{"type":67,"tag":202,"props":225,"children":226},{"style":209},[227],{"type":79,"value":228},"\"",{"type":67,"tag":202,"props":230,"children":232},{"style":231},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[233],{"type":79,"value":196},{"type":67,"tag":202,"props":235,"children":236},{"style":209},[237],{"type":79,"value":228},{"type":67,"tag":202,"props":239,"children":240},{"style":209},[241],{"type":79,"value":242},">\n",{"type":67,"tag":202,"props":244,"children":246},{"class":204,"line":245},2,[247,253,258,262,268],{"type":67,"tag":202,"props":248,"children":250},{"style":249},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[251],{"type":79,"value":252},"const",{"type":67,"tag":202,"props":254,"children":255},{"style":215},[256],{"type":79,"value":257}," supabase ",{"type":67,"tag":202,"props":259,"children":260},{"style":209},[261],{"type":79,"value":223},{"type":67,"tag":202,"props":263,"children":265},{"style":264},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[266],{"type":79,"value":267}," useSupabaseClient",{"type":67,"tag":202,"props":269,"children":270},{"style":215},[271],{"type":79,"value":272},"()\n",{"type":67,"tag":202,"props":274,"children":276},{"class":204,"line":275},3,[277],{"type":67,"tag":202,"props":278,"children":280},{"emptyLinePlaceholder":279},true,[281],{"type":79,"value":282},"\n",{"type":67,"tag":202,"props":284,"children":286},{"class":204,"line":285},4,[287,291,296,300,305,310,315],{"type":67,"tag":202,"props":288,"children":289},{"style":249},[290],{"type":79,"value":252},{"type":67,"tag":202,"props":292,"children":293},{"style":215},[294],{"type":79,"value":295}," signInWithOAuth ",{"type":67,"tag":202,"props":297,"children":298},{"style":209},[299],{"type":79,"value":223},{"type":67,"tag":202,"props":301,"children":302},{"style":249},[303],{"type":79,"value":304}," async",{"type":67,"tag":202,"props":306,"children":307},{"style":209},[308],{"type":79,"value":309}," ()",{"type":67,"tag":202,"props":311,"children":312},{"style":249},[313],{"type":79,"value":314}," =>",{"type":67,"tag":202,"props":316,"children":317},{"style":209},[318],{"type":79,"value":319}," {\n",{"type":67,"tag":202,"props":321,"children":323},{"class":204,"line":322},5,[324,329,334,339,344,349,355,360,364,369,373,378,384],{"type":67,"tag":202,"props":325,"children":326},{"style":249},[327],{"type":79,"value":328}," const",{"type":67,"tag":202,"props":330,"children":331},{"style":209},[332],{"type":79,"value":333}," {",{"type":67,"tag":202,"props":335,"children":336},{"style":215},[337],{"type":79,"value":338}," error",{"type":67,"tag":202,"props":340,"children":341},{"style":209},[342],{"type":79,"value":343}," }",{"type":67,"tag":202,"props":345,"children":346},{"style":209},[347],{"type":79,"value":348}," =",{"type":67,"tag":202,"props":350,"children":352},{"style":351},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[353],{"type":79,"value":354}," await",{"type":67,"tag":202,"props":356,"children":357},{"style":215},[358],{"type":79,"value":359}," supabase",{"type":67,"tag":202,"props":361,"children":362},{"style":209},[363],{"type":79,"value":105},{"type":67,"tag":202,"props":365,"children":366},{"style":215},[367],{"type":79,"value":368},"auth",{"type":67,"tag":202,"props":370,"children":371},{"style":209},[372],{"type":79,"value":105},{"type":67,"tag":202,"props":374,"children":375},{"style":264},[376],{"type":79,"value":377},"signInWithOAuth",{"type":67,"tag":202,"props":379,"children":381},{"style":380},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[382],{"type":79,"value":383},"(",{"type":67,"tag":202,"props":385,"children":386},{"style":209},[387],{"type":79,"value":388},"{\n",{"type":67,"tag":202,"props":390,"children":392},{"class":204,"line":391},6,[393,398,403,408,413,418],{"type":67,"tag":202,"props":394,"children":395},{"style":380},[396],{"type":79,"value":397}," provider",{"type":67,"tag":202,"props":399,"children":400},{"style":209},[401],{"type":79,"value":402},":",{"type":67,"tag":202,"props":404,"children":405},{"style":209},[406],{"type":79,"value":407}," '",{"type":67,"tag":202,"props":409,"children":410},{"style":231},[411],{"type":79,"value":412},"github",{"type":67,"tag":202,"props":414,"children":415},{"style":209},[416],{"type":79,"value":417},"'",{"type":67,"tag":202,"props":419,"children":420},{"style":209},[421],{"type":79,"value":422},",\n",{"type":67,"tag":202,"props":424,"children":426},{"class":204,"line":425},7,[427,432,436],{"type":67,"tag":202,"props":428,"children":429},{"style":380},[430],{"type":79,"value":431}," options",{"type":67,"tag":202,"props":433,"children":434},{"style":209},[435],{"type":79,"value":402},{"type":67,"tag":202,"props":437,"children":438},{"style":209},[439],{"type":79,"value":319},{"type":67,"tag":202,"props":441,"children":443},{"class":204,"line":442},8,[444,449,453,457,462,466],{"type":67,"tag":202,"props":445,"children":446},{"style":380},[447],{"type":79,"value":448}," redirectTo",{"type":67,"tag":202,"props":450,"children":451},{"style":209},[452],{"type":79,"value":402},{"type":67,"tag":202,"props":454,"children":455},{"style":209},[456],{"type":79,"value":407},{"type":67,"tag":202,"props":458,"children":459},{"style":231},[460],{"type":79,"value":461},"http://localhost:3000/confirm",{"type":67,"tag":202,"props":463,"children":464},{"style":209},[465],{"type":79,"value":417},{"type":67,"tag":202,"props":467,"children":468},{"style":209},[469],{"type":79,"value":422},{"type":67,"tag":202,"props":471,"children":473},{"class":204,"line":472},9,[474],{"type":67,"tag":202,"props":475,"children":476},{"style":209},[477],{"type":79,"value":478}," },\n",{"type":67,"tag":202,"props":480,"children":482},{"class":204,"line":481},10,[483,488],{"type":67,"tag":202,"props":484,"children":485},{"style":209},[486],{"type":79,"value":487}," }",{"type":67,"tag":202,"props":489,"children":490},{"style":380},[491],{"type":79,"value":492},")\n",{"type":67,"tag":202,"props":494,"children":496},{"class":204,"line":495},11,[497,502,507,512,517,522,526,531,535,539],{"type":67,"tag":202,"props":498,"children":499},{"style":351},[500],{"type":79,"value":501}," if",{"type":67,"tag":202,"props":503,"children":504},{"style":380},[505],{"type":79,"value":506}," (",{"type":67,"tag":202,"props":508,"children":509},{"style":215},[510],{"type":79,"value":511},"error",{"type":67,"tag":202,"props":513,"children":514},{"style":380},[515],{"type":79,"value":516},") ",{"type":67,"tag":202,"props":518,"children":519},{"style":215},[520],{"type":79,"value":521},"console",{"type":67,"tag":202,"props":523,"children":524},{"style":209},[525],{"type":79,"value":105},{"type":67,"tag":202,"props":527,"children":528},{"style":264},[529],{"type":79,"value":530},"log",{"type":67,"tag":202,"props":532,"children":533},{"style":380},[534],{"type":79,"value":383},{"type":67,"tag":202,"props":536,"children":537},{"style":215},[538],{"type":79,"value":511},{"type":67,"tag":202,"props":540,"children":541},{"style":380},[542],{"type":79,"value":492},{"type":67,"tag":202,"props":544,"children":546},{"class":204,"line":545},12,[547],{"type":67,"tag":202,"props":548,"children":549},{"style":209},[550],{"type":79,"value":551},"}\n",{"type":67,"tag":202,"props":553,"children":555},{"class":204,"line":554},13,[556],{"type":67,"tag":202,"props":557,"children":558},{"emptyLinePlaceholder":279},[559],{"type":79,"value":282},{"type":67,"tag":202,"props":561,"children":563},{"class":204,"line":562},14,[564,568,573,577,581,585,589],{"type":67,"tag":202,"props":565,"children":566},{"style":249},[567],{"type":79,"value":252},{"type":67,"tag":202,"props":569,"children":570},{"style":215},[571],{"type":79,"value":572}," signOut ",{"type":67,"tag":202,"props":574,"children":575},{"style":209},[576],{"type":79,"value":223},{"type":67,"tag":202,"props":578,"children":579},{"style":249},[580],{"type":79,"value":304},{"type":67,"tag":202,"props":582,"children":583},{"style":209},[584],{"type":79,"value":309},{"type":67,"tag":202,"props":586,"children":587},{"style":249},[588],{"type":79,"value":314},{"type":67,"tag":202,"props":590,"children":591},{"style":209},[592],{"type":79,"value":319},{"type":67,"tag":202,"props":594,"children":596},{"class":204,"line":595},15,[597,601,605,609,613,617,621,625,629,633,637,642],{"type":67,"tag":202,"props":598,"children":599},{"style":249},[600],{"type":79,"value":328},{"type":67,"tag":202,"props":602,"children":603},{"style":209},[604],{"type":79,"value":333},{"type":67,"tag":202,"props":606,"children":607},{"style":215},[608],{"type":79,"value":338},{"type":67,"tag":202,"props":610,"children":611},{"style":209},[612],{"type":79,"value":343},{"type":67,"tag":202,"props":614,"children":615},{"style":209},[616],{"type":79,"value":348},{"type":67,"tag":202,"props":618,"children":619},{"style":351},[620],{"type":79,"value":354},{"type":67,"tag":202,"props":622,"children":623},{"style":215},[624],{"type":79,"value":359},{"type":67,"tag":202,"props":626,"children":627},{"style":209},[628],{"type":79,"value":105},{"type":67,"tag":202,"props":630,"children":631},{"style":215},[632],{"type":79,"value":368},{"type":67,"tag":202,"props":634,"children":635},{"style":209},[636],{"type":79,"value":105},{"type":67,"tag":202,"props":638,"children":639},{"style":264},[640],{"type":79,"value":641},"signOut",{"type":67,"tag":202,"props":643,"children":644},{"style":380},[645],{"type":79,"value":272},{"type":67,"tag":202,"props":647,"children":649},{"class":204,"line":648},16,[650,654,658,662,666,670,674,678,682,686],{"type":67,"tag":202,"props":651,"children":652},{"style":351},[653],{"type":79,"value":501},{"type":67,"tag":202,"props":655,"children":656},{"style":380},[657],{"type":79,"value":506},{"type":67,"tag":202,"props":659,"children":660},{"style":215},[661],{"type":79,"value":511},{"type":67,"tag":202,"props":663,"children":664},{"style":380},[665],{"type":79,"value":516},{"type":67,"tag":202,"props":667,"children":668},{"style":215},[669],{"type":79,"value":521},{"type":67,"tag":202,"props":671,"children":672},{"style":209},[673],{"type":79,"value":105},{"type":67,"tag":202,"props":675,"children":676},{"style":264},[677],{"type":79,"value":530},{"type":67,"tag":202,"props":679,"children":680},{"style":380},[681],{"type":79,"value":383},{"type":67,"tag":202,"props":683,"children":684},{"style":215},[685],{"type":79,"value":511},{"type":67,"tag":202,"props":687,"children":688},{"style":380},[689],{"type":79,"value":492},{"type":67,"tag":202,"props":691,"children":693},{"class":204,"line":692},17,[694],{"type":67,"tag":202,"props":695,"children":696},{"style":209},[697],{"type":79,"value":551},{"type":67,"tag":202,"props":699,"children":701},{"class":204,"line":700},18,[702,707,712],{"type":67,"tag":202,"props":703,"children":704},{"style":209},[705],{"type":79,"value":706},"\u003C/",{"type":67,"tag":202,"props":708,"children":709},{"style":215},[710],{"type":79,"value":711},"script",{"type":67,"tag":202,"props":713,"children":714},{"style":209},[715],{"type":79,"value":242},{"type":67,"tag":68,"props":717,"children":718},{},[719,721,725],{"type":79,"value":720},"Please also take a look at ",{"type":67,"tag":72,"props":722,"children":723},{"href":6},[724],{"type":79,"value":5},{"type":79,"value":726}," for the authorization flow.",{"type":67,"tag":147,"props":728,"children":730},{"id":729},"database-request",[731],{"type":79,"value":732},"Database Request",{"type":67,"tag":68,"props":734,"children":735},{},[736,738,745],{"type":79,"value":737},"Please check ",{"type":67,"tag":72,"props":739,"children":742},{"href":740,"rel":741},"https://supabase.com/docs/reference/javascript/select",[76],[743],{"type":79,"value":744},"Supabase",{"type":79,"value":746}," documentation to fully use the power of Supabase client.",{"type":67,"tag":68,"props":748,"children":749},{},[750,752,758,760,767],{"type":79,"value":751},"Here is an example of a fetch using the ",{"type":67,"tag":116,"props":753,"children":755},{"className":754},[],[756],{"type":79,"value":757},"select",{"type":79,"value":759}," method with Nuxt 3 ",{"type":67,"tag":72,"props":761,"children":764},{"href":762,"rel":763},"https://nuxt.com/docs/getting-started/data-fetching#useasyncdata",[76],[765],{"type":79,"value":766},"useAsyncData",{"type":79,"value":768}," composable.",{"type":67,"tag":192,"props":770,"children":774},{"className":771,"code":772,"language":773,"meta":61,"style":61},"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cscript setup lang=\"ts\">\nconst client = useSupabaseClient()\n\nconst { data: restaurant } = await useAsyncData('restaurant', async () => {\n const { data } = await client.from('restaurants').select('name, location').eq('name', 'My Restaurant Name').single()\n\n return data\n})\n\u003C/script>\n","vue",[775],{"type":67,"tag":116,"props":776,"children":777},{"__ignoreMap":61},[778,819,843,850,931,1083,1090,1103,1114],{"type":67,"tag":202,"props":779,"children":780},{"class":204,"line":205},[781,785,789,794,799,803,807,811,815],{"type":67,"tag":202,"props":782,"children":783},{"style":209},[784],{"type":79,"value":212},{"type":67,"tag":202,"props":786,"children":787},{"style":380},[788],{"type":79,"value":711},{"type":67,"tag":202,"props":790,"children":791},{"style":249},[792],{"type":79,"value":793}," setup",{"type":67,"tag":202,"props":795,"children":796},{"style":249},[797],{"type":79,"value":798}," lang",{"type":67,"tag":202,"props":800,"children":801},{"style":209},[802],{"type":79,"value":223},{"type":67,"tag":202,"props":804,"children":805},{"style":209},[806],{"type":79,"value":228},{"type":67,"tag":202,"props":808,"children":809},{"style":231},[810],{"type":79,"value":196},{"type":67,"tag":202,"props":812,"children":813},{"style":209},[814],{"type":79,"value":228},{"type":67,"tag":202,"props":816,"children":817},{"style":209},[818],{"type":79,"value":242},{"type":67,"tag":202,"props":820,"children":821},{"class":204,"line":245},[822,826,831,835,839],{"type":67,"tag":202,"props":823,"children":824},{"style":249},[825],{"type":79,"value":252},{"type":67,"tag":202,"props":827,"children":828},{"style":215},[829],{"type":79,"value":830}," client ",{"type":67,"tag":202,"props":832,"children":833},{"style":209},[834],{"type":79,"value":223},{"type":67,"tag":202,"props":836,"children":837},{"style":264},[838],{"type":79,"value":267},{"type":67,"tag":202,"props":840,"children":841},{"style":215},[842],{"type":79,"value":272},{"type":67,"tag":202,"props":844,"children":845},{"class":204,"line":275},[846],{"type":67,"tag":202,"props":847,"children":848},{"emptyLinePlaceholder":279},[849],{"type":79,"value":282},{"type":67,"tag":202,"props":851,"children":852},{"class":204,"line":285},[853,857,861,866,870,875,880,884,888,893,897,901,906,910,915,919,923,927],{"type":67,"tag":202,"props":854,"children":855},{"style":249},[856],{"type":79,"value":252},{"type":67,"tag":202,"props":858,"children":859},{"style":209},[860],{"type":79,"value":333},{"type":67,"tag":202,"props":862,"children":863},{"style":380},[864],{"type":79,"value":865}," data",{"type":67,"tag":202,"props":867,"children":868},{"style":209},[869],{"type":79,"value":402},{"type":67,"tag":202,"props":871,"children":872},{"style":215},[873],{"type":79,"value":874}," restaurant ",{"type":67,"tag":202,"props":876,"children":877},{"style":209},[878],{"type":79,"value":879},"}",{"type":67,"tag":202,"props":881,"children":882},{"style":209},[883],{"type":79,"value":348},{"type":67,"tag":202,"props":885,"children":886},{"style":351},[887],{"type":79,"value":354},{"type":67,"tag":202,"props":889,"children":890},{"style":264},[891],{"type":79,"value":892}," useAsyncData",{"type":67,"tag":202,"props":894,"children":895},{"style":215},[896],{"type":79,"value":383},{"type":67,"tag":202,"props":898,"children":899},{"style":209},[900],{"type":79,"value":417},{"type":67,"tag":202,"props":902,"children":903},{"style":231},[904],{"type":79,"value":905},"restaurant",{"type":67,"tag":202,"props":907,"children":908},{"style":209},[909],{"type":79,"value":417},{"type":67,"tag":202,"props":911,"children":912},{"style":209},[913],{"type":79,"value":914},",",{"type":67,"tag":202,"props":916,"children":917},{"style":249},[918],{"type":79,"value":304},{"type":67,"tag":202,"props":920,"children":921},{"style":209},[922],{"type":79,"value":309},{"type":67,"tag":202,"props":924,"children":925},{"style":249},[926],{"type":79,"value":314},{"type":67,"tag":202,"props":928,"children":929},{"style":209},[930],{"type":79,"value":319},{"type":67,"tag":202,"props":932,"children":933},{"class":204,"line":322},[934,938,942,946,950,954,958,963,967,972,976,980,985,989,994,998,1002,1006,1010,1015,1019,1023,1027,1032,1036,1040,1045,1049,1053,1057,1062,1066,1070,1074,1079],{"type":67,"tag":202,"props":935,"children":936},{"style":249},[937],{"type":79,"value":328},{"type":67,"tag":202,"props":939,"children":940},{"style":209},[941],{"type":79,"value":333},{"type":67,"tag":202,"props":943,"children":944},{"style":215},[945],{"type":79,"value":865},{"type":67,"tag":202,"props":947,"children":948},{"style":209},[949],{"type":79,"value":343},{"type":67,"tag":202,"props":951,"children":952},{"style":209},[953],{"type":79,"value":348},{"type":67,"tag":202,"props":955,"children":956},{"style":351},[957],{"type":79,"value":354},{"type":67,"tag":202,"props":959,"children":960},{"style":215},[961],{"type":79,"value":962}," client",{"type":67,"tag":202,"props":964,"children":965},{"style":209},[966],{"type":79,"value":105},{"type":67,"tag":202,"props":968,"children":969},{"style":264},[970],{"type":79,"value":971},"from",{"type":67,"tag":202,"props":973,"children":974},{"style":380},[975],{"type":79,"value":383},{"type":67,"tag":202,"props":977,"children":978},{"style":209},[979],{"type":79,"value":417},{"type":67,"tag":202,"props":981,"children":982},{"style":231},[983],{"type":79,"value":984},"restaurants",{"type":67,"tag":202,"props":986,"children":987},{"style":209},[988],{"type":79,"value":417},{"type":67,"tag":202,"props":990,"children":991},{"style":380},[992],{"type":79,"value":993},")",{"type":67,"tag":202,"props":995,"children":996},{"style":209},[997],{"type":79,"value":105},{"type":67,"tag":202,"props":999,"children":1000},{"style":264},[1001],{"type":79,"value":757},{"type":67,"tag":202,"props":1003,"children":1004},{"style":380},[1005],{"type":79,"value":383},{"type":67,"tag":202,"props":1007,"children":1008},{"style":209},[1009],{"type":79,"value":417},{"type":67,"tag":202,"props":1011,"children":1012},{"style":231},[1013],{"type":79,"value":1014},"name, location",{"type":67,"tag":202,"props":1016,"children":1017},{"style":209},[1018],{"type":79,"value":417},{"type":67,"tag":202,"props":1020,"children":1021},{"style":380},[1022],{"type":79,"value":993},{"type":67,"tag":202,"props":1024,"children":1025},{"style":209},[1026],{"type":79,"value":105},{"type":67,"tag":202,"props":1028,"children":1029},{"style":264},[1030],{"type":79,"value":1031},"eq",{"type":67,"tag":202,"props":1033,"children":1034},{"style":380},[1035],{"type":79,"value":383},{"type":67,"tag":202,"props":1037,"children":1038},{"style":209},[1039],{"type":79,"value":417},{"type":67,"tag":202,"props":1041,"children":1042},{"style":231},[1043],{"type":79,"value":1044},"name",{"type":67,"tag":202,"props":1046,"children":1047},{"style":209},[1048],{"type":79,"value":417},{"type":67,"tag":202,"props":1050,"children":1051},{"style":209},[1052],{"type":79,"value":914},{"type":67,"tag":202,"props":1054,"children":1055},{"style":209},[1056],{"type":79,"value":407},{"type":67,"tag":202,"props":1058,"children":1059},{"style":231},[1060],{"type":79,"value":1061},"My Restaurant Name",{"type":67,"tag":202,"props":1063,"children":1064},{"style":209},[1065],{"type":79,"value":417},{"type":67,"tag":202,"props":1067,"children":1068},{"style":380},[1069],{"type":79,"value":993},{"type":67,"tag":202,"props":1071,"children":1072},{"style":209},[1073],{"type":79,"value":105},{"type":67,"tag":202,"props":1075,"children":1076},{"style":264},[1077],{"type":79,"value":1078},"single",{"type":67,"tag":202,"props":1080,"children":1081},{"style":380},[1082],{"type":79,"value":272},{"type":67,"tag":202,"props":1084,"children":1085},{"class":204,"line":391},[1086],{"type":67,"tag":202,"props":1087,"children":1088},{"emptyLinePlaceholder":279},[1089],{"type":79,"value":282},{"type":67,"tag":202,"props":1091,"children":1092},{"class":204,"line":425},[1093,1098],{"type":67,"tag":202,"props":1094,"children":1095},{"style":351},[1096],{"type":79,"value":1097}," return",{"type":67,"tag":202,"props":1099,"children":1100},{"style":215},[1101],{"type":79,"value":1102}," data\n",{"type":67,"tag":202,"props":1104,"children":1105},{"class":204,"line":442},[1106,1110],{"type":67,"tag":202,"props":1107,"children":1108},{"style":209},[1109],{"type":79,"value":879},{"type":67,"tag":202,"props":1111,"children":1112},{"style":215},[1113],{"type":79,"value":492},{"type":67,"tag":202,"props":1115,"children":1116},{"class":204,"line":472},[1117,1121,1125],{"type":67,"tag":202,"props":1118,"children":1119},{"style":209},[1120],{"type":79,"value":706},{"type":67,"tag":202,"props":1122,"children":1123},{"style":380},[1124],{"type":79,"value":711},{"type":67,"tag":202,"props":1126,"children":1127},{"style":209},[1128],{"type":79,"value":242},{"type":67,"tag":147,"props":1130,"children":1132},{"id":1131},"realtime",[1133],{"type":79,"value":1134},"Realtime",{"type":67,"tag":68,"props":1136,"children":1137},{},[1138,1140,1147],{"type":79,"value":1139},"Based on ",{"type":67,"tag":72,"props":1141,"children":1144},{"href":1142,"rel":1143},"https://github.com/supabase/realtime",[76],[1145],{"type":79,"value":1146},"Supabase Realtime",{"type":79,"value":1148},", listen to changes in your PostgreSQL Database and broadcasts them over WebSockets.",{"type":67,"tag":68,"props":1150,"children":1151},{},[1152,1154,1161],{"type":79,"value":1153},"To enable it, make sure you have turned on the ",{"type":67,"tag":72,"props":1155,"children":1158},{"href":1156,"rel":1157},"https://supabase.com/docs/guides/api#realtime-api",[76],[1159],{"type":79,"value":1160},"Realtime API",{"type":79,"value":1162}," for your table.",{"type":67,"tag":68,"props":1164,"children":1165},{},[1166],{"type":79,"value":1167},"Then, listen to changes directly in your vue page / component:",{"type":67,"tag":192,"props":1169,"children":1171},{"className":771,"code":1170,"language":773,"meta":61,"style":61},"\u003Cscript setup lang=\"ts\">\nimport type { RealtimeChannel } from '@supabase/supabase-js'\n\nconst client = useSupabaseClient()\n\nlet realtimeChannel: RealtimeChannel\n\n// Fetch collaborators and get the refresh method provided by useAsyncData\nconst { data: collaborators, refresh: refreshCollaborators } = await useAsyncData('collaborators', async () => {\n const { data } = await client.from('collaborators').select('name')\n return data\n})\n\n// Once page is mounted, listen to changes on the `collaborators` table and refresh collaborators when receiving event\nonMounted(() => {\n // Real time listener for new workouts\n realtimeChannel = client.channel('public:collaborators').on(\n 'postgres_changes',\n { event: '*', schema: 'public', table: 'collaborators' },\n () => refreshCollaborators()\n )\n\n realtimeChannel.subscribe()\n})\n\n // Don't forget to unsubscribe when user left the page\nonUnmounted(() => {\n client.removeChannel(realtimeChannel)\n})\n\u003C/script>\n",[1172],{"type":67,"tag":116,"props":1173,"children":1174},{"__ignoreMap":61},[1175,1214,1259,1266,1289,1296,1319,1326,1335,1430,1517,1528,1539,1546,1554,1579,1587,1647,1668,1755,1777,1786,1794,1815,1827,1835,1844,1869,1900,1912],{"type":67,"tag":202,"props":1176,"children":1177},{"class":204,"line":205},[1178,1182,1186,1190,1194,1198,1202,1206,1210],{"type":67,"tag":202,"props":1179,"children":1180},{"style":209},[1181],{"type":79,"value":212},{"type":67,"tag":202,"props":1183,"children":1184},{"style":380},[1185],{"type":79,"value":711},{"type":67,"tag":202,"props":1187,"children":1188},{"style":249},[1189],{"type":79,"value":793},{"type":67,"tag":202,"props":1191,"children":1192},{"style":249},[1193],{"type":79,"value":798},{"type":67,"tag":202,"props":1195,"children":1196},{"style":209},[1197],{"type":79,"value":223},{"type":67,"tag":202,"props":1199,"children":1200},{"style":209},[1201],{"type":79,"value":228},{"type":67,"tag":202,"props":1203,"children":1204},{"style":231},[1205],{"type":79,"value":196},{"type":67,"tag":202,"props":1207,"children":1208},{"style":209},[1209],{"type":79,"value":228},{"type":67,"tag":202,"props":1211,"children":1212},{"style":209},[1213],{"type":79,"value":242},{"type":67,"tag":202,"props":1215,"children":1216},{"class":204,"line":245},[1217,1222,1227,1231,1236,1240,1245,1249,1254],{"type":67,"tag":202,"props":1218,"children":1219},{"style":351},[1220],{"type":79,"value":1221},"import",{"type":67,"tag":202,"props":1223,"children":1224},{"style":351},[1225],{"type":79,"value":1226}," type",{"type":67,"tag":202,"props":1228,"children":1229},{"style":209},[1230],{"type":79,"value":333},{"type":67,"tag":202,"props":1232,"children":1233},{"style":215},[1234],{"type":79,"value":1235}," RealtimeChannel",{"type":67,"tag":202,"props":1237,"children":1238},{"style":209},[1239],{"type":79,"value":343},{"type":67,"tag":202,"props":1241,"children":1242},{"style":351},[1243],{"type":79,"value":1244}," from",{"type":67,"tag":202,"props":1246,"children":1247},{"style":209},[1248],{"type":79,"value":407},{"type":67,"tag":202,"props":1250,"children":1251},{"style":231},[1252],{"type":79,"value":1253},"@supabase/supabase-js",{"type":67,"tag":202,"props":1255,"children":1256},{"style":209},[1257],{"type":79,"value":1258},"'\n",{"type":67,"tag":202,"props":1260,"children":1261},{"class":204,"line":275},[1262],{"type":67,"tag":202,"props":1263,"children":1264},{"emptyLinePlaceholder":279},[1265],{"type":79,"value":282},{"type":67,"tag":202,"props":1267,"children":1268},{"class":204,"line":285},[1269,1273,1277,1281,1285],{"type":67,"tag":202,"props":1270,"children":1271},{"style":249},[1272],{"type":79,"value":252},{"type":67,"tag":202,"props":1274,"children":1275},{"style":215},[1276],{"type":79,"value":830},{"type":67,"tag":202,"props":1278,"children":1279},{"style":209},[1280],{"type":79,"value":223},{"type":67,"tag":202,"props":1282,"children":1283},{"style":264},[1284],{"type":79,"value":267},{"type":67,"tag":202,"props":1286,"children":1287},{"style":215},[1288],{"type":79,"value":272},{"type":67,"tag":202,"props":1290,"children":1291},{"class":204,"line":322},[1292],{"type":67,"tag":202,"props":1293,"children":1294},{"emptyLinePlaceholder":279},[1295],{"type":79,"value":282},{"type":67,"tag":202,"props":1297,"children":1298},{"class":204,"line":391},[1299,1304,1309,1313],{"type":67,"tag":202,"props":1300,"children":1301},{"style":249},[1302],{"type":79,"value":1303},"let",{"type":67,"tag":202,"props":1305,"children":1306},{"style":215},[1307],{"type":79,"value":1308}," realtimeChannel",{"type":67,"tag":202,"props":1310,"children":1311},{"style":209},[1312],{"type":79,"value":402},{"type":67,"tag":202,"props":1314,"children":1316},{"style":1315},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[1317],{"type":79,"value":1318}," RealtimeChannel\n",{"type":67,"tag":202,"props":1320,"children":1321},{"class":204,"line":425},[1322],{"type":67,"tag":202,"props":1323,"children":1324},{"emptyLinePlaceholder":279},[1325],{"type":79,"value":282},{"type":67,"tag":202,"props":1327,"children":1328},{"class":204,"line":442},[1329],{"type":67,"tag":202,"props":1330,"children":1332},{"style":1331},"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[1333],{"type":79,"value":1334},"// Fetch collaborators and get the refresh method provided by useAsyncData\n",{"type":67,"tag":202,"props":1336,"children":1337},{"class":204,"line":472},[1338,1342,1346,1350,1354,1359,1363,1368,1372,1377,1381,1385,1389,1393,1397,1401,1406,1410,1414,1418,1422,1426],{"type":67,"tag":202,"props":1339,"children":1340},{"style":249},[1341],{"type":79,"value":252},{"type":67,"tag":202,"props":1343,"children":1344},{"style":209},[1345],{"type":79,"value":333},{"type":67,"tag":202,"props":1347,"children":1348},{"style":380},[1349],{"type":79,"value":865},{"type":67,"tag":202,"props":1351,"children":1352},{"style":209},[1353],{"type":79,"value":402},{"type":67,"tag":202,"props":1355,"children":1356},{"style":215},[1357],{"type":79,"value":1358}," collaborators",{"type":67,"tag":202,"props":1360,"children":1361},{"style":209},[1362],{"type":79,"value":914},{"type":67,"tag":202,"props":1364,"children":1365},{"style":380},[1366],{"type":79,"value":1367}," refresh",{"type":67,"tag":202,"props":1369,"children":1370},{"style":209},[1371],{"type":79,"value":402},{"type":67,"tag":202,"props":1373,"children":1374},{"style":215},[1375],{"type":79,"value":1376}," refreshCollaborators ",{"type":67,"tag":202,"props":1378,"children":1379},{"style":209},[1380],{"type":79,"value":879},{"type":67,"tag":202,"props":1382,"children":1383},{"style":209},[1384],{"type":79,"value":348},{"type":67,"tag":202,"props":1386,"children":1387},{"style":351},[1388],{"type":79,"value":354},{"type":67,"tag":202,"props":1390,"children":1391},{"style":264},[1392],{"type":79,"value":892},{"type":67,"tag":202,"props":1394,"children":1395},{"style":215},[1396],{"type":79,"value":383},{"type":67,"tag":202,"props":1398,"children":1399},{"style":209},[1400],{"type":79,"value":417},{"type":67,"tag":202,"props":1402,"children":1403},{"style":231},[1404],{"type":79,"value":1405},"collaborators",{"type":67,"tag":202,"props":1407,"children":1408},{"style":209},[1409],{"type":79,"value":417},{"type":67,"tag":202,"props":1411,"children":1412},{"style":209},[1413],{"type":79,"value":914},{"type":67,"tag":202,"props":1415,"children":1416},{"style":249},[1417],{"type":79,"value":304},{"type":67,"tag":202,"props":1419,"children":1420},{"style":209},[1421],{"type":79,"value":309},{"type":67,"tag":202,"props":1423,"children":1424},{"style":249},[1425],{"type":79,"value":314},{"type":67,"tag":202,"props":1427,"children":1428},{"style":209},[1429],{"type":79,"value":319},{"type":67,"tag":202,"props":1431,"children":1432},{"class":204,"line":481},[1433,1437,1441,1445,1449,1453,1457,1461,1465,1469,1473,1477,1481,1485,1489,1493,1497,1501,1505,1509,1513],{"type":67,"tag":202,"props":1434,"children":1435},{"style":249},[1436],{"type":79,"value":328},{"type":67,"tag":202,"props":1438,"children":1439},{"style":209},[1440],{"type":79,"value":333},{"type":67,"tag":202,"props":1442,"children":1443},{"style":215},[1444],{"type":79,"value":865},{"type":67,"tag":202,"props":1446,"children":1447},{"style":209},[1448],{"type":79,"value":343},{"type":67,"tag":202,"props":1450,"children":1451},{"style":209},[1452],{"type":79,"value":348},{"type":67,"tag":202,"props":1454,"children":1455},{"style":351},[1456],{"type":79,"value":354},{"type":67,"tag":202,"props":1458,"children":1459},{"style":215},[1460],{"type":79,"value":962},{"type":67,"tag":202,"props":1462,"children":1463},{"style":209},[1464],{"type":79,"value":105},{"type":67,"tag":202,"props":1466,"children":1467},{"style":264},[1468],{"type":79,"value":971},{"type":67,"tag":202,"props":1470,"children":1471},{"style":380},[1472],{"type":79,"value":383},{"type":67,"tag":202,"props":1474,"children":1475},{"style":209},[1476],{"type":79,"value":417},{"type":67,"tag":202,"props":1478,"children":1479},{"style":231},[1480],{"type":79,"value":1405},{"type":67,"tag":202,"props":1482,"children":1483},{"style":209},[1484],{"type":79,"value":417},{"type":67,"tag":202,"props":1486,"children":1487},{"style":380},[1488],{"type":79,"value":993},{"type":67,"tag":202,"props":1490,"children":1491},{"style":209},[1492],{"type":79,"value":105},{"type":67,"tag":202,"props":1494,"children":1495},{"style":264},[1496],{"type":79,"value":757},{"type":67,"tag":202,"props":1498,"children":1499},{"style":380},[1500],{"type":79,"value":383},{"type":67,"tag":202,"props":1502,"children":1503},{"style":209},[1504],{"type":79,"value":417},{"type":67,"tag":202,"props":1506,"children":1507},{"style":231},[1508],{"type":79,"value":1044},{"type":67,"tag":202,"props":1510,"children":1511},{"style":209},[1512],{"type":79,"value":417},{"type":67,"tag":202,"props":1514,"children":1515},{"style":380},[1516],{"type":79,"value":492},{"type":67,"tag":202,"props":1518,"children":1519},{"class":204,"line":495},[1520,1524],{"type":67,"tag":202,"props":1521,"children":1522},{"style":351},[1523],{"type":79,"value":1097},{"type":67,"tag":202,"props":1525,"children":1526},{"style":215},[1527],{"type":79,"value":1102},{"type":67,"tag":202,"props":1529,"children":1530},{"class":204,"line":545},[1531,1535],{"type":67,"tag":202,"props":1532,"children":1533},{"style":209},[1534],{"type":79,"value":879},{"type":67,"tag":202,"props":1536,"children":1537},{"style":215},[1538],{"type":79,"value":492},{"type":67,"tag":202,"props":1540,"children":1541},{"class":204,"line":554},[1542],{"type":67,"tag":202,"props":1543,"children":1544},{"emptyLinePlaceholder":279},[1545],{"type":79,"value":282},{"type":67,"tag":202,"props":1547,"children":1548},{"class":204,"line":562},[1549],{"type":67,"tag":202,"props":1550,"children":1551},{"style":1331},[1552],{"type":79,"value":1553},"// Once page is mounted, listen to changes on the `collaborators` table and refresh collaborators when receiving event\n",{"type":67,"tag":202,"props":1555,"children":1556},{"class":204,"line":595},[1557,1562,1566,1571,1575],{"type":67,"tag":202,"props":1558,"children":1559},{"style":264},[1560],{"type":79,"value":1561},"onMounted",{"type":67,"tag":202,"props":1563,"children":1564},{"style":215},[1565],{"type":79,"value":383},{"type":67,"tag":202,"props":1567,"children":1568},{"style":209},[1569],{"type":79,"value":1570},"()",{"type":67,"tag":202,"props":1572,"children":1573},{"style":249},[1574],{"type":79,"value":314},{"type":67,"tag":202,"props":1576,"children":1577},{"style":209},[1578],{"type":79,"value":319},{"type":67,"tag":202,"props":1580,"children":1581},{"class":204,"line":648},[1582],{"type":67,"tag":202,"props":1583,"children":1584},{"style":1331},[1585],{"type":79,"value":1586}," // Real time listener for new workouts\n",{"type":67,"tag":202,"props":1588,"children":1589},{"class":204,"line":692},[1590,1595,1599,1603,1607,1612,1616,1620,1625,1629,1633,1637,1642],{"type":67,"tag":202,"props":1591,"children":1592},{"style":215},[1593],{"type":79,"value":1594}," realtimeChannel",{"type":67,"tag":202,"props":1596,"children":1597},{"style":209},[1598],{"type":79,"value":348},{"type":67,"tag":202,"props":1600,"children":1601},{"style":215},[1602],{"type":79,"value":962},{"type":67,"tag":202,"props":1604,"children":1605},{"style":209},[1606],{"type":79,"value":105},{"type":67,"tag":202,"props":1608,"children":1609},{"style":264},[1610],{"type":79,"value":1611},"channel",{"type":67,"tag":202,"props":1613,"children":1614},{"style":380},[1615],{"type":79,"value":383},{"type":67,"tag":202,"props":1617,"children":1618},{"style":209},[1619],{"type":79,"value":417},{"type":67,"tag":202,"props":1621,"children":1622},{"style":231},[1623],{"type":79,"value":1624},"public:collaborators",{"type":67,"tag":202,"props":1626,"children":1627},{"style":209},[1628],{"type":79,"value":417},{"type":67,"tag":202,"props":1630,"children":1631},{"style":380},[1632],{"type":79,"value":993},{"type":67,"tag":202,"props":1634,"children":1635},{"style":209},[1636],{"type":79,"value":105},{"type":67,"tag":202,"props":1638,"children":1639},{"style":264},[1640],{"type":79,"value":1641},"on",{"type":67,"tag":202,"props":1643,"children":1644},{"style":380},[1645],{"type":79,"value":1646},"(\n",{"type":67,"tag":202,"props":1648,"children":1649},{"class":204,"line":700},[1650,1655,1660,1664],{"type":67,"tag":202,"props":1651,"children":1652},{"style":209},[1653],{"type":79,"value":1654}," '",{"type":67,"tag":202,"props":1656,"children":1657},{"style":231},[1658],{"type":79,"value":1659},"postgres_changes",{"type":67,"tag":202,"props":1661,"children":1662},{"style":209},[1663],{"type":79,"value":417},{"type":67,"tag":202,"props":1665,"children":1666},{"style":209},[1667],{"type":79,"value":422},{"type":67,"tag":202,"props":1669,"children":1671},{"class":204,"line":1670},19,[1672,1677,1682,1686,1690,1695,1699,1703,1708,1712,1716,1721,1725,1729,1734,1738,1742,1746,1750],{"type":67,"tag":202,"props":1673,"children":1674},{"style":209},[1675],{"type":79,"value":1676}," {",{"type":67,"tag":202,"props":1678,"children":1679},{"style":380},[1680],{"type":79,"value":1681}," event",{"type":67,"tag":202,"props":1683,"children":1684},{"style":209},[1685],{"type":79,"value":402},{"type":67,"tag":202,"props":1687,"children":1688},{"style":209},[1689],{"type":79,"value":407},{"type":67,"tag":202,"props":1691,"children":1692},{"style":231},[1693],{"type":79,"value":1694},"*",{"type":67,"tag":202,"props":1696,"children":1697},{"style":209},[1698],{"type":79,"value":417},{"type":67,"tag":202,"props":1700,"children":1701},{"style":209},[1702],{"type":79,"value":914},{"type":67,"tag":202,"props":1704,"children":1705},{"style":380},[1706],{"type":79,"value":1707}," schema",{"type":67,"tag":202,"props":1709,"children":1710},{"style":209},[1711],{"type":79,"value":402},{"type":67,"tag":202,"props":1713,"children":1714},{"style":209},[1715],{"type":79,"value":407},{"type":67,"tag":202,"props":1717,"children":1718},{"style":231},[1719],{"type":79,"value":1720},"public",{"type":67,"tag":202,"props":1722,"children":1723},{"style":209},[1724],{"type":79,"value":417},{"type":67,"tag":202,"props":1726,"children":1727},{"style":209},[1728],{"type":79,"value":914},{"type":67,"tag":202,"props":1730,"children":1731},{"style":380},[1732],{"type":79,"value":1733}," table",{"type":67,"tag":202,"props":1735,"children":1736},{"style":209},[1737],{"type":79,"value":402},{"type":67,"tag":202,"props":1739,"children":1740},{"style":209},[1741],{"type":79,"value":407},{"type":67,"tag":202,"props":1743,"children":1744},{"style":231},[1745],{"type":79,"value":1405},{"type":67,"tag":202,"props":1747,"children":1748},{"style":209},[1749],{"type":79,"value":417},{"type":67,"tag":202,"props":1751,"children":1752},{"style":209},[1753],{"type":79,"value":1754}," },\n",{"type":67,"tag":202,"props":1756,"children":1758},{"class":204,"line":1757},20,[1759,1764,1768,1773],{"type":67,"tag":202,"props":1760,"children":1761},{"style":209},[1762],{"type":79,"value":1763}," ()",{"type":67,"tag":202,"props":1765,"children":1766},{"style":249},[1767],{"type":79,"value":314},{"type":67,"tag":202,"props":1769,"children":1770},{"style":264},[1771],{"type":79,"value":1772}," refreshCollaborators",{"type":67,"tag":202,"props":1774,"children":1775},{"style":380},[1776],{"type":79,"value":272},{"type":67,"tag":202,"props":1778,"children":1780},{"class":204,"line":1779},21,[1781],{"type":67,"tag":202,"props":1782,"children":1783},{"style":380},[1784],{"type":79,"value":1785}," )\n",{"type":67,"tag":202,"props":1787,"children":1789},{"class":204,"line":1788},22,[1790],{"type":67,"tag":202,"props":1791,"children":1792},{"emptyLinePlaceholder":279},[1793],{"type":79,"value":282},{"type":67,"tag":202,"props":1795,"children":1797},{"class":204,"line":1796},23,[1798,1802,1806,1811],{"type":67,"tag":202,"props":1799,"children":1800},{"style":215},[1801],{"type":79,"value":1594},{"type":67,"tag":202,"props":1803,"children":1804},{"style":209},[1805],{"type":79,"value":105},{"type":67,"tag":202,"props":1807,"children":1808},{"style":264},[1809],{"type":79,"value":1810},"subscribe",{"type":67,"tag":202,"props":1812,"children":1813},{"style":380},[1814],{"type":79,"value":272},{"type":67,"tag":202,"props":1816,"children":1818},{"class":204,"line":1817},24,[1819,1823],{"type":67,"tag":202,"props":1820,"children":1821},{"style":209},[1822],{"type":79,"value":879},{"type":67,"tag":202,"props":1824,"children":1825},{"style":215},[1826],{"type":79,"value":492},{"type":67,"tag":202,"props":1828,"children":1830},{"class":204,"line":1829},25,[1831],{"type":67,"tag":202,"props":1832,"children":1833},{"emptyLinePlaceholder":279},[1834],{"type":79,"value":282},{"type":67,"tag":202,"props":1836,"children":1838},{"class":204,"line":1837},26,[1839],{"type":67,"tag":202,"props":1840,"children":1841},{"style":1331},[1842],{"type":79,"value":1843}," // Don't forget to unsubscribe when user left the page\n",{"type":67,"tag":202,"props":1845,"children":1847},{"class":204,"line":1846},27,[1848,1853,1857,1861,1865],{"type":67,"tag":202,"props":1849,"children":1850},{"style":264},[1851],{"type":79,"value":1852},"onUnmounted",{"type":67,"tag":202,"props":1854,"children":1855},{"style":215},[1856],{"type":79,"value":383},{"type":67,"tag":202,"props":1858,"children":1859},{"style":209},[1860],{"type":79,"value":1570},{"type":67,"tag":202,"props":1862,"children":1863},{"style":249},[1864],{"type":79,"value":314},{"type":67,"tag":202,"props":1866,"children":1867},{"style":209},[1868],{"type":79,"value":319},{"type":67,"tag":202,"props":1870,"children":1872},{"class":204,"line":1871},28,[1873,1878,1882,1887,1891,1896],{"type":67,"tag":202,"props":1874,"children":1875},{"style":215},[1876],{"type":79,"value":1877}," client",{"type":67,"tag":202,"props":1879,"children":1880},{"style":209},[1881],{"type":79,"value":105},{"type":67,"tag":202,"props":1883,"children":1884},{"style":264},[1885],{"type":79,"value":1886},"removeChannel",{"type":67,"tag":202,"props":1888,"children":1889},{"style":380},[1890],{"type":79,"value":383},{"type":67,"tag":202,"props":1892,"children":1893},{"style":215},[1894],{"type":79,"value":1895},"realtimeChannel",{"type":67,"tag":202,"props":1897,"children":1898},{"style":380},[1899],{"type":79,"value":492},{"type":67,"tag":202,"props":1901,"children":1903},{"class":204,"line":1902},29,[1904,1908],{"type":67,"tag":202,"props":1905,"children":1906},{"style":209},[1907],{"type":79,"value":879},{"type":67,"tag":202,"props":1909,"children":1910},{"style":215},[1911],{"type":79,"value":492},{"type":67,"tag":202,"props":1913,"children":1915},{"class":204,"line":1914},30,[1916,1920,1924],{"type":67,"tag":202,"props":1917,"children":1918},{"style":209},[1919],{"type":79,"value":706},{"type":67,"tag":202,"props":1921,"children":1922},{"style":380},[1923],{"type":79,"value":711},{"type":67,"tag":202,"props":1925,"children":1926},{"style":209},[1927],{"type":79,"value":242},{"type":67,"tag":147,"props":1929,"children":1931},{"id":1930},"typescript",[1932],{"type":79,"value":1933},"Typescript",{"type":67,"tag":68,"props":1935,"children":1936},{},[1937,1939,1945,1947,1953,1955,1962],{"type":79,"value":1938},"Database typings are passed to the client out of the box if the database generated types are found at ",{"type":67,"tag":116,"props":1940,"children":1942},{"className":1941},[],[1943],{"type":79,"value":1944},"./types/database.types.ts",{"type":79,"value":1946}," or ",{"type":67,"tag":72,"props":1948,"children":1950},{"href":1949},"/get-started#types",[1951],{"type":79,"value":1952},"your configured types path",{"type":79,"value":1954},". Check Supabase ",{"type":67,"tag":72,"props":1956,"children":1959},{"href":1957,"rel":1958},"https://supabase.com/docs/reference/javascript/release-notes#typescript-support",[76],[1960],{"type":79,"value":1961},"documentation",{"type":79,"value":1963}," for further information.",{"type":67,"tag":192,"props":1965,"children":1969},{"className":1966,"code":1967,"language":1968,"meta":61,"style":61},"language-shell shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","## Generate types from live database\nsupabase gen types typescript --project-id YourProjectId > types/database.types.ts\n\n## Generate types when using local environment\nsupabase gen types typescript --local > types/database.types.ts\n","shell",[1970],{"type":67,"tag":116,"props":1971,"children":1972},{"__ignoreMap":61},[1973,1981,2024,2031,2039],{"type":67,"tag":202,"props":1974,"children":1975},{"class":204,"line":205},[1976],{"type":67,"tag":202,"props":1977,"children":1978},{"style":1331},[1979],{"type":79,"value":1980},"## Generate types from live database\n",{"type":67,"tag":202,"props":1982,"children":1983},{"class":204,"line":245},[1984,1989,1994,1999,2004,2009,2014,2019],{"type":67,"tag":202,"props":1985,"children":1986},{"style":1315},[1987],{"type":79,"value":1988},"supabase",{"type":67,"tag":202,"props":1990,"children":1991},{"style":231},[1992],{"type":79,"value":1993}," gen",{"type":67,"tag":202,"props":1995,"children":1996},{"style":231},[1997],{"type":79,"value":1998}," types",{"type":67,"tag":202,"props":2000,"children":2001},{"style":231},[2002],{"type":79,"value":2003}," typescript",{"type":67,"tag":202,"props":2005,"children":2006},{"style":231},[2007],{"type":79,"value":2008}," --project-id",{"type":67,"tag":202,"props":2010,"children":2011},{"style":231},[2012],{"type":79,"value":2013}," YourProjectId",{"type":67,"tag":202,"props":2015,"children":2016},{"style":209},[2017],{"type":79,"value":2018}," >",{"type":67,"tag":202,"props":2020,"children":2021},{"style":231},[2022],{"type":79,"value":2023}," types/database.types.ts\n",{"type":67,"tag":202,"props":2025,"children":2026},{"class":204,"line":275},[2027],{"type":67,"tag":202,"props":2028,"children":2029},{"emptyLinePlaceholder":279},[2030],{"type":79,"value":282},{"type":67,"tag":202,"props":2032,"children":2033},{"class":204,"line":285},[2034],{"type":67,"tag":202,"props":2035,"children":2036},{"style":1331},[2037],{"type":79,"value":2038},"## Generate types when using local environment\n",{"type":67,"tag":202,"props":2040,"children":2041},{"class":204,"line":322},[2042,2046,2050,2054,2058,2063,2067],{"type":67,"tag":202,"props":2043,"children":2044},{"style":1315},[2045],{"type":79,"value":1988},{"type":67,"tag":202,"props":2047,"children":2048},{"style":231},[2049],{"type":79,"value":1993},{"type":67,"tag":202,"props":2051,"children":2052},{"style":231},[2053],{"type":79,"value":1998},{"type":67,"tag":202,"props":2055,"children":2056},{"style":231},[2057],{"type":79,"value":2003},{"type":67,"tag":202,"props":2059,"children":2060},{"style":231},[2061],{"type":79,"value":2062}," --local",{"type":67,"tag":202,"props":2064,"children":2065},{"style":209},[2066],{"type":79,"value":2018},{"type":67,"tag":202,"props":2068,"children":2069},{"style":231},[2070],{"type":79,"value":2023},{"type":67,"tag":68,"props":2072,"children":2073},{},[2074],{"type":79,"value":2075},"You can also pass Database typings to the client manually:",{"type":67,"tag":192,"props":2077,"children":2079},{"className":771,"code":2078,"language":773,"meta":61,"style":61},"\u003Cscript setup lang=\"ts\">\nimport type { Database } from '~/types'\nconst client = useSupabaseClient\u003CDatabase>()\n\u003C/script>\n",[2080],{"type":67,"tag":116,"props":2081,"children":2082},{"__ignoreMap":61},[2083,2122,2163,2200],{"type":67,"tag":202,"props":2084,"children":2085},{"class":204,"line":205},[2086,2090,2094,2098,2102,2106,2110,2114,2118],{"type":67,"tag":202,"props":2087,"children":2088},{"style":209},[2089],{"type":79,"value":212},{"type":67,"tag":202,"props":2091,"children":2092},{"style":380},[2093],{"type":79,"value":711},{"type":67,"tag":202,"props":2095,"children":2096},{"style":249},[2097],{"type":79,"value":793},{"type":67,"tag":202,"props":2099,"children":2100},{"style":249},[2101],{"type":79,"value":798},{"type":67,"tag":202,"props":2103,"children":2104},{"style":209},[2105],{"type":79,"value":223},{"type":67,"tag":202,"props":2107,"children":2108},{"style":209},[2109],{"type":79,"value":228},{"type":67,"tag":202,"props":2111,"children":2112},{"style":231},[2113],{"type":79,"value":196},{"type":67,"tag":202,"props":2115,"children":2116},{"style":209},[2117],{"type":79,"value":228},{"type":67,"tag":202,"props":2119,"children":2120},{"style":209},[2121],{"type":79,"value":242},{"type":67,"tag":202,"props":2123,"children":2124},{"class":204,"line":245},[2125,2129,2133,2137,2142,2146,2150,2154,2159],{"type":67,"tag":202,"props":2126,"children":2127},{"style":351},[2128],{"type":79,"value":1221},{"type":67,"tag":202,"props":2130,"children":2131},{"style":351},[2132],{"type":79,"value":1226},{"type":67,"tag":202,"props":2134,"children":2135},{"style":209},[2136],{"type":79,"value":333},{"type":67,"tag":202,"props":2138,"children":2139},{"style":215},[2140],{"type":79,"value":2141}," Database",{"type":67,"tag":202,"props":2143,"children":2144},{"style":209},[2145],{"type":79,"value":343},{"type":67,"tag":202,"props":2147,"children":2148},{"style":351},[2149],{"type":79,"value":1244},{"type":67,"tag":202,"props":2151,"children":2152},{"style":209},[2153],{"type":79,"value":407},{"type":67,"tag":202,"props":2155,"children":2156},{"style":231},[2157],{"type":79,"value":2158},"~/types",{"type":67,"tag":202,"props":2160,"children":2161},{"style":209},[2162],{"type":79,"value":1258},{"type":67,"tag":202,"props":2164,"children":2165},{"class":204,"line":275},[2166,2170,2174,2178,2182,2186,2191,2196],{"type":67,"tag":202,"props":2167,"children":2168},{"style":249},[2169],{"type":79,"value":252},{"type":67,"tag":202,"props":2171,"children":2172},{"style":215},[2173],{"type":79,"value":830},{"type":67,"tag":202,"props":2175,"children":2176},{"style":209},[2177],{"type":79,"value":223},{"type":67,"tag":202,"props":2179,"children":2180},{"style":264},[2181],{"type":79,"value":267},{"type":67,"tag":202,"props":2183,"children":2184},{"style":209},[2185],{"type":79,"value":212},{"type":67,"tag":202,"props":2187,"children":2188},{"style":1315},[2189],{"type":79,"value":2190},"Database",{"type":67,"tag":202,"props":2192,"children":2193},{"style":209},[2194],{"type":79,"value":2195},">",{"type":67,"tag":202,"props":2197,"children":2198},{"style":215},[2199],{"type":79,"value":272},{"type":67,"tag":202,"props":2201,"children":2202},{"class":204,"line":285},[2203,2207,2211],{"type":67,"tag":202,"props":2204,"children":2205},{"style":209},[2206],{"type":79,"value":706},{"type":67,"tag":202,"props":2208,"children":2209},{"style":380},[2210],{"type":79,"value":711},{"type":67,"tag":202,"props":2212,"children":2213},{"style":209},[2214],{"type":79,"value":242},{"type":67,"tag":2216,"props":2217,"children":2218},"style",{},[2219],{"type":79,"value":2220},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":61,"searchDepth":245,"depth":245,"links":2222},[2223,2224,2225,2226],{"id":149,"depth":245,"text":9},{"id":729,"depth":245,"text":732},{"id":1131,"depth":245,"text":1134},{"id":1930,"depth":245,"text":1933},"markdown","content:4.usage:composables:useSupabaseClient.md","content","4.usage/composables/useSupabaseClient.md","4.usage/composables/useSupabaseClient","md",[2234,2236],{"_path":10,"title":9,"description":2235},"Authenticate your user thanks to the PKCE Oauth protocol that enables secure exchange of refresh and access tokens between an application and the authorization server",{"_path":25,"title":24,"description":2237},"Auto import and use your Supabase user's session with the useSupabaseSession composable",1725013745820] \ No newline at end of file diff --git a/usage/composables/usesupabaseclient/index.html b/usage/composables/usesupabaseclient/index.html index 366e26ded..822ce968a 100644 --- a/usage/composables/usesupabaseclient/index.html +++ b/usage/composables/usesupabaseclient/index.html @@ -61,51 +61,51 @@ - - - - - - - + + + + + + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - + - - - - - - - + + + + + + + - - + + - + -
mobile favicon
Composables

useSupabaseClient

Make requests to the Supabase API with the useSupabaseClient composable

Auto-import your client inside your vue files.

This composable is using supabase-js under the hood, it gives access to the Supabase client.

The client is initialized with the SUPABASE_KEY you must have in your .env file. It establishes the connection with the database and make use of user JWT to apply RLS Policies implemented in Supabase. If you want to bypass policies, you can use the serverSupabaseServiceRole.

Authentication

The useSupabaseClient composable is providing all methods to manage authorization under useSupabaseClient().auth. For more details please see the supabase-js auth documentation. Here is an example for signing in and out:

If you want a full explanation on how to handle the authentication process, please read this section.
<script setup lang="ts">
+
mobile favicon
Composables

useSupabaseClient

Make requests to the Supabase API with the useSupabaseClient composable

Auto-import your client inside your vue files.

This composable is using supabase-js under the hood, it gives access to the Supabase client.

The client is initialized with the SUPABASE_KEY you must have in your .env file. It establishes the connection with the database and make use of user JWT to apply RLS Policies implemented in Supabase. If you want to bypass policies, you can use the serverSupabaseServiceRole.

Authentication

The useSupabaseClient composable is providing all methods to manage authorization under useSupabaseClient().auth. For more details please see the supabase-js auth documentation. Here is an example for signing in and out:

If you want a full explanation on how to handle the authentication process, please read this section.
<script setup lang="ts">
 const supabase = useSupabaseClient()
 
 const signInWithOAuth = async () => {
@@ -172,5 +172,5 @@
 const client = useSupabaseClient<Database>()
 </script>
 

Made with Nuxt Studio
- - \ No newline at end of file + + \ No newline at end of file diff --git a/usage/composables/usesupabasesession/_payload.json b/usage/composables/usesupabasesession/_payload.json index fca6f945b..35985a43c 100644 --- a/usage/composables/usesupabasesession/_payload.json +++ b/usage/composables/usesupabasesession/_payload.json @@ -1 +1 @@ -[{"data":1,"prerenderedAt":556},["ShallowReactive",2],{"navigation":3,"/usage/composables/usesupabasesession":58,"/usage/composables/usesupabasesession-surround":551},[4,8,12,46,50,54],{"title":5,"_path":6,"icon":7},"Get Started","/get-started","i-heroicons-rocket-launch",{"title":9,"_path":10,"icon":11},"Authentication","/authentication","i-heroicons-lock-closed",{"title":13,"_path":14,"children":15,"icon":45},"Usage","/usage",[16,29],{"title":17,"_path":18,"children":19},"Vue composables","/usage/composables",[20,23,26],{"title":21,"_path":22},"useSupabaseClient","/usage/composables/usesupabaseclient",{"title":24,"_path":25},"useSupabaseSession","/usage/composables/usesupabasesession",{"title":27,"_path":28},"useSupabaseUser","/usage/composables/usesupabaseuser",{"title":30,"_path":31,"children":32},"Server services","/usage/services",[33,36,39,42],{"title":34,"_path":35},"serverSupabaseClient","/usage/services/serversupabaseclient",{"title":37,"_path":38},"serverSupabaseServiceRole","/usage/services/serversupabaseservicerole",{"title":40,"_path":41},"serverSupabaseSession","/usage/services/serversupabasesession",{"title":43,"_path":44},"serverSupabaseUser","/usage/services/serversupabaseuser","heroicons:book-open",{"title":47,"_path":48,"icon":49},"Demo","/demo","i-heroicons-computer-desktop-20-solid",{"title":51,"_path":52,"icon":53},"Changelog","/changelog","i-heroicons-bookmark",{"title":55,"_path":56,"icon":57},"Roadmap","/roadmap","i-heroicons-map",{"_path":25,"_dir":59,"_draft":60,"_partial":60,"_locale":61,"title":24,"description":62,"body":63,"_type":545,"_id":546,"_source":547,"_file":548,"_stem":549,"_extension":550},"composables",false,"","Auto import and use your Supabase user's session with the useSupabaseSession composable",{"type":64,"children":65,"toc":542},"root",[66,85,173,189,196,226,239,447,452,515,536],{"type":67,"tag":68,"props":69,"children":70},"element","p",{},[71,74,83],{"type":72,"value":73},"text","Once logged in, you can ",{"type":67,"tag":75,"props":76,"children":80},"a",{"href":77,"rel":78},"https://nuxt.com/docs/guide/directory-structure/composables",[79],"nofollow",[81],{"type":72,"value":82},"auto-import",{"type":72,"value":84}," your user's session everywhere inside your vue files.",{"type":67,"tag":86,"props":87,"children":91},"pre",{"className":88,"code":89,"language":90,"meta":61,"style":61},"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cscript setup>\nconst session = useSupabaseSession()\n\u003C/script>\n","vue",[92],{"type":67,"tag":93,"props":94,"children":95},"code",{"__ignoreMap":61},[96,125,156],{"type":67,"tag":97,"props":98,"children":101},"span",{"class":99,"line":100},"line",1,[102,108,114,120],{"type":67,"tag":97,"props":103,"children":105},{"style":104},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[106],{"type":72,"value":107},"\u003C",{"type":67,"tag":97,"props":109,"children":111},{"style":110},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[112],{"type":72,"value":113},"script",{"type":67,"tag":97,"props":115,"children":117},{"style":116},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[118],{"type":72,"value":119}," setup",{"type":67,"tag":97,"props":121,"children":122},{"style":104},[123],{"type":72,"value":124},">\n",{"type":67,"tag":97,"props":126,"children":128},{"class":99,"line":127},2,[129,134,140,145,151],{"type":67,"tag":97,"props":130,"children":131},{"style":116},[132],{"type":72,"value":133},"const",{"type":67,"tag":97,"props":135,"children":137},{"style":136},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[138],{"type":72,"value":139}," session ",{"type":67,"tag":97,"props":141,"children":142},{"style":104},[143],{"type":72,"value":144},"=",{"type":67,"tag":97,"props":146,"children":148},{"style":147},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[149],{"type":72,"value":150}," useSupabaseSession",{"type":67,"tag":97,"props":152,"children":153},{"style":136},[154],{"type":72,"value":155},"()\n",{"type":67,"tag":97,"props":157,"children":159},{"class":99,"line":158},3,[160,165,169],{"type":67,"tag":97,"props":161,"children":162},{"style":104},[163],{"type":72,"value":164},"\u003C/",{"type":67,"tag":97,"props":166,"children":167},{"style":110},[168],{"type":72,"value":113},{"type":67,"tag":97,"props":170,"children":171},{"style":104},[172],{"type":72,"value":124},{"type":67,"tag":174,"props":175,"children":177},"callout",{"icon":176},"i-heroicons-light-bulb",[178],{"type":67,"tag":68,"props":179,"children":180},{},[181,183,187],{"type":72,"value":182},"If you just need the User's information you can use ",{"type":67,"tag":75,"props":184,"children":185},{"href":28},[186],{"type":72,"value":27},{"type":72,"value":188}," which returns just the User information of the session.",{"type":67,"tag":190,"props":191,"children":193},"h2",{"id":192},"auth-middleware",[194],{"type":72,"value":195},"Auth middleware",{"type":67,"tag":174,"props":197,"children":198},{"icon":176},[199],{"type":67,"tag":68,"props":200,"children":201},{},[202,204,210,212,217,219,224],{"type":72,"value":203},"By default, the module is implementing a redirect middleware. All pages of your application are automatically redirected to the ",{"type":67,"tag":75,"props":205,"children":207},{"href":206},"/get-started#redirectoptions",[208],{"type":72,"value":209},"login",{"type":72,"value":211}," page. However, you can allow redirection to \"public\" pages by setting the ",{"type":67,"tag":75,"props":213,"children":214},{"href":206},[215],{"type":72,"value":216},"exclude",{"type":72,"value":218}," redirect option. Alternatively, you can enable the redirect only for certain routes using the ",{"type":67,"tag":75,"props":220,"children":221},{"href":206},[222],{"type":72,"value":223},"include",{"type":72,"value":225}," redirect option.",{"type":67,"tag":68,"props":227,"children":228},{},[229,231,237],{"type":72,"value":230},"If the ",{"type":67,"tag":75,"props":232,"children":234},{"href":233},"/get-started#redirect",[235],{"type":72,"value":236},"redirect",{"type":72,"value":238}," option is disabled, you can protect your authenticated routes by creating a custom middleware in your project, here is an example:",{"type":67,"tag":86,"props":240,"children":245},{"className":241,"code":242,"filename":243,"language":244,"meta":61,"style":61},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","export default defineNuxtRouteMiddleware((to, _from) => {\n const session = useSupabaseSession()\n\n if (!session.value) {\n return navigateTo('/login')\n }\n})\n","middleware/auth.ts","ts",[246],{"type":67,"tag":93,"props":247,"children":248},{"__ignoreMap":61},[249,308,334,343,387,425,434],{"type":67,"tag":97,"props":250,"children":251},{"class":99,"line":100},[252,258,263,268,273,277,283,288,293,298,303],{"type":67,"tag":97,"props":253,"children":255},{"style":254},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[256],{"type":72,"value":257},"export",{"type":67,"tag":97,"props":259,"children":260},{"style":254},[261],{"type":72,"value":262}," default",{"type":67,"tag":97,"props":264,"children":265},{"style":147},[266],{"type":72,"value":267}," defineNuxtRouteMiddleware",{"type":67,"tag":97,"props":269,"children":270},{"style":136},[271],{"type":72,"value":272},"(",{"type":67,"tag":97,"props":274,"children":275},{"style":104},[276],{"type":72,"value":272},{"type":67,"tag":97,"props":278,"children":280},{"style":279},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[281],{"type":72,"value":282},"to",{"type":67,"tag":97,"props":284,"children":285},{"style":104},[286],{"type":72,"value":287},",",{"type":67,"tag":97,"props":289,"children":290},{"style":279},[291],{"type":72,"value":292}," _from",{"type":67,"tag":97,"props":294,"children":295},{"style":104},[296],{"type":72,"value":297},")",{"type":67,"tag":97,"props":299,"children":300},{"style":116},[301],{"type":72,"value":302}," =>",{"type":67,"tag":97,"props":304,"children":305},{"style":104},[306],{"type":72,"value":307}," {\n",{"type":67,"tag":97,"props":309,"children":310},{"class":99,"line":127},[311,316,321,326,330],{"type":67,"tag":97,"props":312,"children":313},{"style":116},[314],{"type":72,"value":315}," const",{"type":67,"tag":97,"props":317,"children":318},{"style":136},[319],{"type":72,"value":320}," session",{"type":67,"tag":97,"props":322,"children":323},{"style":104},[324],{"type":72,"value":325}," =",{"type":67,"tag":97,"props":327,"children":328},{"style":147},[329],{"type":72,"value":150},{"type":67,"tag":97,"props":331,"children":332},{"style":110},[333],{"type":72,"value":155},{"type":67,"tag":97,"props":335,"children":336},{"class":99,"line":158},[337],{"type":67,"tag":97,"props":338,"children":340},{"emptyLinePlaceholder":339},true,[341],{"type":72,"value":342},"\n",{"type":67,"tag":97,"props":344,"children":346},{"class":99,"line":345},4,[347,352,357,362,367,372,377,382],{"type":67,"tag":97,"props":348,"children":349},{"style":254},[350],{"type":72,"value":351}," if",{"type":67,"tag":97,"props":353,"children":354},{"style":110},[355],{"type":72,"value":356}," (",{"type":67,"tag":97,"props":358,"children":359},{"style":104},[360],{"type":72,"value":361},"!",{"type":67,"tag":97,"props":363,"children":364},{"style":136},[365],{"type":72,"value":366},"session",{"type":67,"tag":97,"props":368,"children":369},{"style":104},[370],{"type":72,"value":371},".",{"type":67,"tag":97,"props":373,"children":374},{"style":136},[375],{"type":72,"value":376},"value",{"type":67,"tag":97,"props":378,"children":379},{"style":110},[380],{"type":72,"value":381},") ",{"type":67,"tag":97,"props":383,"children":384},{"style":104},[385],{"type":72,"value":386},"{\n",{"type":67,"tag":97,"props":388,"children":390},{"class":99,"line":389},5,[391,396,401,405,410,416,420],{"type":67,"tag":97,"props":392,"children":393},{"style":254},[394],{"type":72,"value":395}," return",{"type":67,"tag":97,"props":397,"children":398},{"style":147},[399],{"type":72,"value":400}," navigateTo",{"type":67,"tag":97,"props":402,"children":403},{"style":110},[404],{"type":72,"value":272},{"type":67,"tag":97,"props":406,"children":407},{"style":104},[408],{"type":72,"value":409},"'",{"type":67,"tag":97,"props":411,"children":413},{"style":412},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[414],{"type":72,"value":415},"/login",{"type":67,"tag":97,"props":417,"children":418},{"style":104},[419],{"type":72,"value":409},{"type":67,"tag":97,"props":421,"children":422},{"style":110},[423],{"type":72,"value":424},")\n",{"type":67,"tag":97,"props":426,"children":428},{"class":99,"line":427},6,[429],{"type":67,"tag":97,"props":430,"children":431},{"style":104},[432],{"type":72,"value":433}," }\n",{"type":67,"tag":97,"props":435,"children":437},{"class":99,"line":436},7,[438,443],{"type":67,"tag":97,"props":439,"children":440},{"style":104},[441],{"type":72,"value":442},"}",{"type":67,"tag":97,"props":444,"children":445},{"style":136},[446],{"type":72,"value":424},{"type":67,"tag":68,"props":448,"children":449},{},[450],{"type":72,"value":451},"Then you can reference your middleware in your page with:",{"type":67,"tag":86,"props":453,"children":456},{"className":241,"code":454,"filename":455,"language":244,"meta":61,"style":61},"definePageMeta({\n middleware: 'auth'\n})\n","pages/dashboard.vue",[457],{"type":67,"tag":93,"props":458,"children":459},{"__ignoreMap":61},[460,476,504],{"type":67,"tag":97,"props":461,"children":462},{"class":99,"line":100},[463,468,472],{"type":67,"tag":97,"props":464,"children":465},{"style":147},[466],{"type":72,"value":467},"definePageMeta",{"type":67,"tag":97,"props":469,"children":470},{"style":136},[471],{"type":72,"value":272},{"type":67,"tag":97,"props":473,"children":474},{"style":104},[475],{"type":72,"value":386},{"type":67,"tag":97,"props":477,"children":478},{"class":99,"line":127},[479,484,489,494,499],{"type":67,"tag":97,"props":480,"children":481},{"style":110},[482],{"type":72,"value":483}," middleware",{"type":67,"tag":97,"props":485,"children":486},{"style":104},[487],{"type":72,"value":488},":",{"type":67,"tag":97,"props":490,"children":491},{"style":104},[492],{"type":72,"value":493}," '",{"type":67,"tag":97,"props":495,"children":496},{"style":412},[497],{"type":72,"value":498},"auth",{"type":67,"tag":97,"props":500,"children":501},{"style":104},[502],{"type":72,"value":503},"'\n",{"type":67,"tag":97,"props":505,"children":506},{"class":99,"line":158},[507,511],{"type":67,"tag":97,"props":508,"children":509},{"style":104},[510],{"type":72,"value":442},{"type":67,"tag":97,"props":512,"children":513},{"style":136},[514],{"type":72,"value":424},{"type":67,"tag":68,"props":516,"children":517},{},[518,520,527,529,535],{"type":72,"value":519},"Learn more about ",{"type":67,"tag":75,"props":521,"children":524},{"href":522,"rel":523},"https://nuxt.com/docs/guide/directory-structure/middleware",[79],[525],{"type":72,"value":526},"Nuxt middleware",{"type":72,"value":528}," and ",{"type":67,"tag":75,"props":530,"children":533},{"href":531,"rel":532},"https://nuxt.com/docs/guide/directory-structure/pages#page-metadata",[79],[534],{"type":72,"value":467},{"type":72,"value":371},{"type":67,"tag":537,"props":538,"children":539},"style",{},[540],{"type":72,"value":541},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":61,"searchDepth":127,"depth":127,"links":543},[544],{"id":192,"depth":127,"text":195},"markdown","content:4.usage:composables:useSupabaseSession.md","content","4.usage/composables/useSupabaseSession.md","4.usage/composables/useSupabaseSession","md",[552,554],{"_path":22,"title":21,"description":553},"Make requests to the Supabase API with the useSupabaseClient composable",{"_path":28,"title":27,"description":555},"Auto import and use your Supabase user with the useSupabaseUser composable",1725006469560] \ No newline at end of file +[{"data":1,"prerenderedAt":556},["ShallowReactive",2],{"navigation":3,"/usage/composables/usesupabasesession":58,"/usage/composables/usesupabasesession-surround":551},[4,8,12,46,50,54],{"title":5,"_path":6,"icon":7},"Get Started","/get-started","i-heroicons-rocket-launch",{"title":9,"_path":10,"icon":11},"Authentication","/authentication","i-heroicons-lock-closed",{"title":13,"_path":14,"children":15,"icon":45},"Usage","/usage",[16,29],{"title":17,"_path":18,"children":19},"Vue composables","/usage/composables",[20,23,26],{"title":21,"_path":22},"useSupabaseClient","/usage/composables/usesupabaseclient",{"title":24,"_path":25},"useSupabaseSession","/usage/composables/usesupabasesession",{"title":27,"_path":28},"useSupabaseUser","/usage/composables/usesupabaseuser",{"title":30,"_path":31,"children":32},"Server services","/usage/services",[33,36,39,42],{"title":34,"_path":35},"serverSupabaseClient","/usage/services/serversupabaseclient",{"title":37,"_path":38},"serverSupabaseServiceRole","/usage/services/serversupabaseservicerole",{"title":40,"_path":41},"serverSupabaseSession","/usage/services/serversupabasesession",{"title":43,"_path":44},"serverSupabaseUser","/usage/services/serversupabaseuser","heroicons:book-open",{"title":47,"_path":48,"icon":49},"Demo","/demo","i-heroicons-computer-desktop-20-solid",{"title":51,"_path":52,"icon":53},"Changelog","/changelog","i-heroicons-bookmark",{"title":55,"_path":56,"icon":57},"Roadmap","/roadmap","i-heroicons-map",{"_path":25,"_dir":59,"_draft":60,"_partial":60,"_locale":61,"title":24,"description":62,"body":63,"_type":545,"_id":546,"_source":547,"_file":548,"_stem":549,"_extension":550},"composables",false,"","Auto import and use your Supabase user's session with the useSupabaseSession composable",{"type":64,"children":65,"toc":542},"root",[66,85,173,189,196,226,239,447,452,515,536],{"type":67,"tag":68,"props":69,"children":70},"element","p",{},[71,74,83],{"type":72,"value":73},"text","Once logged in, you can ",{"type":67,"tag":75,"props":76,"children":80},"a",{"href":77,"rel":78},"https://nuxt.com/docs/guide/directory-structure/composables",[79],"nofollow",[81],{"type":72,"value":82},"auto-import",{"type":72,"value":84}," your user's session everywhere inside your vue files.",{"type":67,"tag":86,"props":87,"children":91},"pre",{"className":88,"code":89,"language":90,"meta":61,"style":61},"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cscript setup>\nconst session = useSupabaseSession()\n\u003C/script>\n","vue",[92],{"type":67,"tag":93,"props":94,"children":95},"code",{"__ignoreMap":61},[96,125,156],{"type":67,"tag":97,"props":98,"children":101},"span",{"class":99,"line":100},"line",1,[102,108,114,120],{"type":67,"tag":97,"props":103,"children":105},{"style":104},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[106],{"type":72,"value":107},"\u003C",{"type":67,"tag":97,"props":109,"children":111},{"style":110},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[112],{"type":72,"value":113},"script",{"type":67,"tag":97,"props":115,"children":117},{"style":116},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[118],{"type":72,"value":119}," setup",{"type":67,"tag":97,"props":121,"children":122},{"style":104},[123],{"type":72,"value":124},">\n",{"type":67,"tag":97,"props":126,"children":128},{"class":99,"line":127},2,[129,134,140,145,151],{"type":67,"tag":97,"props":130,"children":131},{"style":116},[132],{"type":72,"value":133},"const",{"type":67,"tag":97,"props":135,"children":137},{"style":136},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[138],{"type":72,"value":139}," session ",{"type":67,"tag":97,"props":141,"children":142},{"style":104},[143],{"type":72,"value":144},"=",{"type":67,"tag":97,"props":146,"children":148},{"style":147},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[149],{"type":72,"value":150}," useSupabaseSession",{"type":67,"tag":97,"props":152,"children":153},{"style":136},[154],{"type":72,"value":155},"()\n",{"type":67,"tag":97,"props":157,"children":159},{"class":99,"line":158},3,[160,165,169],{"type":67,"tag":97,"props":161,"children":162},{"style":104},[163],{"type":72,"value":164},"\u003C/",{"type":67,"tag":97,"props":166,"children":167},{"style":110},[168],{"type":72,"value":113},{"type":67,"tag":97,"props":170,"children":171},{"style":104},[172],{"type":72,"value":124},{"type":67,"tag":174,"props":175,"children":177},"callout",{"icon":176},"i-heroicons-light-bulb",[178],{"type":67,"tag":68,"props":179,"children":180},{},[181,183,187],{"type":72,"value":182},"If you just need the User's information you can use ",{"type":67,"tag":75,"props":184,"children":185},{"href":28},[186],{"type":72,"value":27},{"type":72,"value":188}," which returns just the User information of the session.",{"type":67,"tag":190,"props":191,"children":193},"h2",{"id":192},"auth-middleware",[194],{"type":72,"value":195},"Auth middleware",{"type":67,"tag":174,"props":197,"children":198},{"icon":176},[199],{"type":67,"tag":68,"props":200,"children":201},{},[202,204,210,212,217,219,224],{"type":72,"value":203},"By default, the module is implementing a redirect middleware. All pages of your application are automatically redirected to the ",{"type":67,"tag":75,"props":205,"children":207},{"href":206},"/get-started#redirectoptions",[208],{"type":72,"value":209},"login",{"type":72,"value":211}," page. However, you can allow redirection to \"public\" pages by setting the ",{"type":67,"tag":75,"props":213,"children":214},{"href":206},[215],{"type":72,"value":216},"exclude",{"type":72,"value":218}," redirect option. Alternatively, you can enable the redirect only for certain routes using the ",{"type":67,"tag":75,"props":220,"children":221},{"href":206},[222],{"type":72,"value":223},"include",{"type":72,"value":225}," redirect option.",{"type":67,"tag":68,"props":227,"children":228},{},[229,231,237],{"type":72,"value":230},"If the ",{"type":67,"tag":75,"props":232,"children":234},{"href":233},"/get-started#redirect",[235],{"type":72,"value":236},"redirect",{"type":72,"value":238}," option is disabled, you can protect your authenticated routes by creating a custom middleware in your project, here is an example:",{"type":67,"tag":86,"props":240,"children":245},{"className":241,"code":242,"filename":243,"language":244,"meta":61,"style":61},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","export default defineNuxtRouteMiddleware((to, _from) => {\n const session = useSupabaseSession()\n\n if (!session.value) {\n return navigateTo('/login')\n }\n})\n","middleware/auth.ts","ts",[246],{"type":67,"tag":93,"props":247,"children":248},{"__ignoreMap":61},[249,308,334,343,387,425,434],{"type":67,"tag":97,"props":250,"children":251},{"class":99,"line":100},[252,258,263,268,273,277,283,288,293,298,303],{"type":67,"tag":97,"props":253,"children":255},{"style":254},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[256],{"type":72,"value":257},"export",{"type":67,"tag":97,"props":259,"children":260},{"style":254},[261],{"type":72,"value":262}," default",{"type":67,"tag":97,"props":264,"children":265},{"style":147},[266],{"type":72,"value":267}," defineNuxtRouteMiddleware",{"type":67,"tag":97,"props":269,"children":270},{"style":136},[271],{"type":72,"value":272},"(",{"type":67,"tag":97,"props":274,"children":275},{"style":104},[276],{"type":72,"value":272},{"type":67,"tag":97,"props":278,"children":280},{"style":279},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[281],{"type":72,"value":282},"to",{"type":67,"tag":97,"props":284,"children":285},{"style":104},[286],{"type":72,"value":287},",",{"type":67,"tag":97,"props":289,"children":290},{"style":279},[291],{"type":72,"value":292}," _from",{"type":67,"tag":97,"props":294,"children":295},{"style":104},[296],{"type":72,"value":297},")",{"type":67,"tag":97,"props":299,"children":300},{"style":116},[301],{"type":72,"value":302}," =>",{"type":67,"tag":97,"props":304,"children":305},{"style":104},[306],{"type":72,"value":307}," {\n",{"type":67,"tag":97,"props":309,"children":310},{"class":99,"line":127},[311,316,321,326,330],{"type":67,"tag":97,"props":312,"children":313},{"style":116},[314],{"type":72,"value":315}," const",{"type":67,"tag":97,"props":317,"children":318},{"style":136},[319],{"type":72,"value":320}," session",{"type":67,"tag":97,"props":322,"children":323},{"style":104},[324],{"type":72,"value":325}," =",{"type":67,"tag":97,"props":327,"children":328},{"style":147},[329],{"type":72,"value":150},{"type":67,"tag":97,"props":331,"children":332},{"style":110},[333],{"type":72,"value":155},{"type":67,"tag":97,"props":335,"children":336},{"class":99,"line":158},[337],{"type":67,"tag":97,"props":338,"children":340},{"emptyLinePlaceholder":339},true,[341],{"type":72,"value":342},"\n",{"type":67,"tag":97,"props":344,"children":346},{"class":99,"line":345},4,[347,352,357,362,367,372,377,382],{"type":67,"tag":97,"props":348,"children":349},{"style":254},[350],{"type":72,"value":351}," if",{"type":67,"tag":97,"props":353,"children":354},{"style":110},[355],{"type":72,"value":356}," (",{"type":67,"tag":97,"props":358,"children":359},{"style":104},[360],{"type":72,"value":361},"!",{"type":67,"tag":97,"props":363,"children":364},{"style":136},[365],{"type":72,"value":366},"session",{"type":67,"tag":97,"props":368,"children":369},{"style":104},[370],{"type":72,"value":371},".",{"type":67,"tag":97,"props":373,"children":374},{"style":136},[375],{"type":72,"value":376},"value",{"type":67,"tag":97,"props":378,"children":379},{"style":110},[380],{"type":72,"value":381},") ",{"type":67,"tag":97,"props":383,"children":384},{"style":104},[385],{"type":72,"value":386},"{\n",{"type":67,"tag":97,"props":388,"children":390},{"class":99,"line":389},5,[391,396,401,405,410,416,420],{"type":67,"tag":97,"props":392,"children":393},{"style":254},[394],{"type":72,"value":395}," return",{"type":67,"tag":97,"props":397,"children":398},{"style":147},[399],{"type":72,"value":400}," navigateTo",{"type":67,"tag":97,"props":402,"children":403},{"style":110},[404],{"type":72,"value":272},{"type":67,"tag":97,"props":406,"children":407},{"style":104},[408],{"type":72,"value":409},"'",{"type":67,"tag":97,"props":411,"children":413},{"style":412},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[414],{"type":72,"value":415},"/login",{"type":67,"tag":97,"props":417,"children":418},{"style":104},[419],{"type":72,"value":409},{"type":67,"tag":97,"props":421,"children":422},{"style":110},[423],{"type":72,"value":424},")\n",{"type":67,"tag":97,"props":426,"children":428},{"class":99,"line":427},6,[429],{"type":67,"tag":97,"props":430,"children":431},{"style":104},[432],{"type":72,"value":433}," }\n",{"type":67,"tag":97,"props":435,"children":437},{"class":99,"line":436},7,[438,443],{"type":67,"tag":97,"props":439,"children":440},{"style":104},[441],{"type":72,"value":442},"}",{"type":67,"tag":97,"props":444,"children":445},{"style":136},[446],{"type":72,"value":424},{"type":67,"tag":68,"props":448,"children":449},{},[450],{"type":72,"value":451},"Then you can reference your middleware in your page with:",{"type":67,"tag":86,"props":453,"children":456},{"className":241,"code":454,"filename":455,"language":244,"meta":61,"style":61},"definePageMeta({\n middleware: 'auth'\n})\n","pages/dashboard.vue",[457],{"type":67,"tag":93,"props":458,"children":459},{"__ignoreMap":61},[460,476,504],{"type":67,"tag":97,"props":461,"children":462},{"class":99,"line":100},[463,468,472],{"type":67,"tag":97,"props":464,"children":465},{"style":147},[466],{"type":72,"value":467},"definePageMeta",{"type":67,"tag":97,"props":469,"children":470},{"style":136},[471],{"type":72,"value":272},{"type":67,"tag":97,"props":473,"children":474},{"style":104},[475],{"type":72,"value":386},{"type":67,"tag":97,"props":477,"children":478},{"class":99,"line":127},[479,484,489,494,499],{"type":67,"tag":97,"props":480,"children":481},{"style":110},[482],{"type":72,"value":483}," middleware",{"type":67,"tag":97,"props":485,"children":486},{"style":104},[487],{"type":72,"value":488},":",{"type":67,"tag":97,"props":490,"children":491},{"style":104},[492],{"type":72,"value":493}," '",{"type":67,"tag":97,"props":495,"children":496},{"style":412},[497],{"type":72,"value":498},"auth",{"type":67,"tag":97,"props":500,"children":501},{"style":104},[502],{"type":72,"value":503},"'\n",{"type":67,"tag":97,"props":505,"children":506},{"class":99,"line":158},[507,511],{"type":67,"tag":97,"props":508,"children":509},{"style":104},[510],{"type":72,"value":442},{"type":67,"tag":97,"props":512,"children":513},{"style":136},[514],{"type":72,"value":424},{"type":67,"tag":68,"props":516,"children":517},{},[518,520,527,529,535],{"type":72,"value":519},"Learn more about ",{"type":67,"tag":75,"props":521,"children":524},{"href":522,"rel":523},"https://nuxt.com/docs/guide/directory-structure/middleware",[79],[525],{"type":72,"value":526},"Nuxt middleware",{"type":72,"value":528}," and ",{"type":67,"tag":75,"props":530,"children":533},{"href":531,"rel":532},"https://nuxt.com/docs/guide/directory-structure/pages#page-metadata",[79],[534],{"type":72,"value":467},{"type":72,"value":371},{"type":67,"tag":537,"props":538,"children":539},"style",{},[540],{"type":72,"value":541},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":61,"searchDepth":127,"depth":127,"links":543},[544],{"id":192,"depth":127,"text":195},"markdown","content:4.usage:composables:useSupabaseSession.md","content","4.usage/composables/useSupabaseSession.md","4.usage/composables/useSupabaseSession","md",[552,554],{"_path":22,"title":21,"description":553},"Make requests to the Supabase API with the useSupabaseClient composable",{"_path":28,"title":27,"description":555},"Auto import and use your Supabase user with the useSupabaseUser composable",1725013745829] \ No newline at end of file diff --git a/usage/composables/usesupabasesession/index.html b/usage/composables/usesupabasesession/index.html index 5939d6a13..f8e5a57ac 100644 --- a/usage/composables/usesupabasesession/index.html +++ b/usage/composables/usesupabasesession/index.html @@ -61,50 +61,50 @@ - - - - - - - + + + + + + + - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - + - - - - - - - + + + + + + + - - + + - + -
mobile favicon
Composables

useSupabaseSession

Auto import and use your Supabase user's session with the useSupabaseSession composable

Once logged in, you can auto-import your user's session everywhere inside your vue files.

<script setup>
+
mobile favicon
Composables

useSupabaseSession

Auto import and use your Supabase user's session with the useSupabaseSession composable

Once logged in, you can auto-import your user's session everywhere inside your vue files.

<script setup>
 const session = useSupabaseSession()
 </script>
 
If you just need the User's information you can use useSupabaseUser which returns just the User information of the session.

Auth middleware

By default, the module is implementing a redirect middleware. All pages of your application are automatically redirected to the login page. However, you can allow redirection to "public" pages by setting the exclude redirect option. Alternatively, you can enable the redirect only for certain routes using the include redirect option.

If the redirect option is disabled, you can protect your authenticated routes by creating a custom middleware in your project, here is an example:

middleware/auth.ts
export default defineNuxtRouteMiddleware((to, _from) => {
@@ -118,5 +118,5 @@
   middleware: 'auth'
 })
 

Learn more about Nuxt middleware and definePageMeta.


Made with Nuxt Studio
- - \ No newline at end of file + + \ No newline at end of file diff --git a/usage/composables/usesupabaseuser/_payload.json b/usage/composables/usesupabaseuser/_payload.json index e2ba9f34a..0a265a77d 100644 --- a/usage/composables/usesupabaseuser/_payload.json +++ b/usage/composables/usesupabaseuser/_payload.json @@ -1 +1 @@ -[{"data":1,"prerenderedAt":542},["ShallowReactive",2],{"navigation":3,"/usage/composables/usesupabaseuser":58,"/usage/composables/usesupabaseuser-surround":537},[4,8,12,46,50,54],{"title":5,"_path":6,"icon":7},"Get Started","/get-started","i-heroicons-rocket-launch",{"title":9,"_path":10,"icon":11},"Authentication","/authentication","i-heroicons-lock-closed",{"title":13,"_path":14,"children":15,"icon":45},"Usage","/usage",[16,29],{"title":17,"_path":18,"children":19},"Vue composables","/usage/composables",[20,23,26],{"title":21,"_path":22},"useSupabaseClient","/usage/composables/usesupabaseclient",{"title":24,"_path":25},"useSupabaseSession","/usage/composables/usesupabasesession",{"title":27,"_path":28},"useSupabaseUser","/usage/composables/usesupabaseuser",{"title":30,"_path":31,"children":32},"Server services","/usage/services",[33,36,39,42],{"title":34,"_path":35},"serverSupabaseClient","/usage/services/serversupabaseclient",{"title":37,"_path":38},"serverSupabaseServiceRole","/usage/services/serversupabaseservicerole",{"title":40,"_path":41},"serverSupabaseSession","/usage/services/serversupabasesession",{"title":43,"_path":44},"serverSupabaseUser","/usage/services/serversupabaseuser","heroicons:book-open",{"title":47,"_path":48,"icon":49},"Demo","/demo","i-heroicons-computer-desktop-20-solid",{"title":51,"_path":52,"icon":53},"Changelog","/changelog","i-heroicons-bookmark",{"title":55,"_path":56,"icon":57},"Roadmap","/roadmap","i-heroicons-map",{"_path":28,"_dir":59,"_draft":60,"_partial":60,"_locale":61,"title":27,"description":62,"body":63,"_type":531,"_id":532,"_source":533,"_file":534,"_stem":535,"_extension":536},"composables",false,"","Auto import and use your Supabase user with the useSupabaseUser composable",{"type":64,"children":65,"toc":528},"root",[66,85,173,180,212,225,433,438,501,522],{"type":67,"tag":68,"props":69,"children":70},"element","p",{},[71,74,83],{"type":72,"value":73},"text","Once logged in, you can ",{"type":67,"tag":75,"props":76,"children":80},"a",{"href":77,"rel":78},"https://nuxt.com/docs/guide/directory-structure/composables",[79],"nofollow",[81],{"type":72,"value":82},"auto-import",{"type":72,"value":84}," your user everywhere inside your vue files.",{"type":67,"tag":86,"props":87,"children":91},"pre",{"className":88,"code":89,"language":90,"meta":61,"style":61},"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cscript setup>\nconst user = useSupabaseUser()\n\u003C/script>\n","vue",[92],{"type":67,"tag":93,"props":94,"children":95},"code",{"__ignoreMap":61},[96,125,156],{"type":67,"tag":97,"props":98,"children":101},"span",{"class":99,"line":100},"line",1,[102,108,114,120],{"type":67,"tag":97,"props":103,"children":105},{"style":104},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[106],{"type":72,"value":107},"\u003C",{"type":67,"tag":97,"props":109,"children":111},{"style":110},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[112],{"type":72,"value":113},"script",{"type":67,"tag":97,"props":115,"children":117},{"style":116},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[118],{"type":72,"value":119}," setup",{"type":67,"tag":97,"props":121,"children":122},{"style":104},[123],{"type":72,"value":124},">\n",{"type":67,"tag":97,"props":126,"children":128},{"class":99,"line":127},2,[129,134,140,145,151],{"type":67,"tag":97,"props":130,"children":131},{"style":116},[132],{"type":72,"value":133},"const",{"type":67,"tag":97,"props":135,"children":137},{"style":136},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[138],{"type":72,"value":139}," user ",{"type":67,"tag":97,"props":141,"children":142},{"style":104},[143],{"type":72,"value":144},"=",{"type":67,"tag":97,"props":146,"children":148},{"style":147},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[149],{"type":72,"value":150}," useSupabaseUser",{"type":67,"tag":97,"props":152,"children":153},{"style":136},[154],{"type":72,"value":155},"()\n",{"type":67,"tag":97,"props":157,"children":159},{"class":99,"line":158},3,[160,165,169],{"type":67,"tag":97,"props":161,"children":162},{"style":104},[163],{"type":72,"value":164},"\u003C/",{"type":67,"tag":97,"props":166,"children":167},{"style":110},[168],{"type":72,"value":113},{"type":67,"tag":97,"props":170,"children":171},{"style":104},[172],{"type":72,"value":124},{"type":67,"tag":174,"props":175,"children":177},"h2",{"id":176},"auth-middleware",[178],{"type":72,"value":179},"Auth middleware",{"type":67,"tag":181,"props":182,"children":184},"callout",{"icon":183},"i-heroicons-light-bulb",[185],{"type":67,"tag":68,"props":186,"children":187},{},[188,190,196,198,203,205,210],{"type":72,"value":189},"By default, the module is implementing a redirect middleware. All pages of your application are automatically redirected to the ",{"type":67,"tag":75,"props":191,"children":193},{"href":192},"/get-started#redirectoptions",[194],{"type":72,"value":195},"login",{"type":72,"value":197}," page. However, you can allow redirection to \"public\" pages by setting the ",{"type":67,"tag":75,"props":199,"children":200},{"href":192},[201],{"type":72,"value":202},"exclude",{"type":72,"value":204}," redirect option. Alternatively, you can enable the redirect only for certain routes using the ",{"type":67,"tag":75,"props":206,"children":207},{"href":192},[208],{"type":72,"value":209},"include",{"type":72,"value":211}," redirect option.",{"type":67,"tag":68,"props":213,"children":214},{},[215,217,223],{"type":72,"value":216},"If the ",{"type":67,"tag":75,"props":218,"children":220},{"href":219},"/get-started#redirect",[221],{"type":72,"value":222},"redirect",{"type":72,"value":224}," option is disabled, you can protect your authenticated routes by creating a custom middleware in your project, here is an example:",{"type":67,"tag":86,"props":226,"children":231},{"className":227,"code":228,"filename":229,"language":230,"meta":61,"style":61},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","export default defineNuxtRouteMiddleware((to, _from) => {\n const user = useSupabaseUser()\n\n if (!user.value) {\n return navigateTo('/login')\n }\n})\n","middleware/auth.ts","ts",[232],{"type":67,"tag":93,"props":233,"children":234},{"__ignoreMap":61},[235,294,320,329,373,411,420],{"type":67,"tag":97,"props":236,"children":237},{"class":99,"line":100},[238,244,249,254,259,263,269,274,279,284,289],{"type":67,"tag":97,"props":239,"children":241},{"style":240},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[242],{"type":72,"value":243},"export",{"type":67,"tag":97,"props":245,"children":246},{"style":240},[247],{"type":72,"value":248}," default",{"type":67,"tag":97,"props":250,"children":251},{"style":147},[252],{"type":72,"value":253}," defineNuxtRouteMiddleware",{"type":67,"tag":97,"props":255,"children":256},{"style":136},[257],{"type":72,"value":258},"(",{"type":67,"tag":97,"props":260,"children":261},{"style":104},[262],{"type":72,"value":258},{"type":67,"tag":97,"props":264,"children":266},{"style":265},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[267],{"type":72,"value":268},"to",{"type":67,"tag":97,"props":270,"children":271},{"style":104},[272],{"type":72,"value":273},",",{"type":67,"tag":97,"props":275,"children":276},{"style":265},[277],{"type":72,"value":278}," _from",{"type":67,"tag":97,"props":280,"children":281},{"style":104},[282],{"type":72,"value":283},")",{"type":67,"tag":97,"props":285,"children":286},{"style":116},[287],{"type":72,"value":288}," =>",{"type":67,"tag":97,"props":290,"children":291},{"style":104},[292],{"type":72,"value":293}," {\n",{"type":67,"tag":97,"props":295,"children":296},{"class":99,"line":127},[297,302,307,312,316],{"type":67,"tag":97,"props":298,"children":299},{"style":116},[300],{"type":72,"value":301}," const",{"type":67,"tag":97,"props":303,"children":304},{"style":136},[305],{"type":72,"value":306}," user",{"type":67,"tag":97,"props":308,"children":309},{"style":104},[310],{"type":72,"value":311}," =",{"type":67,"tag":97,"props":313,"children":314},{"style":147},[315],{"type":72,"value":150},{"type":67,"tag":97,"props":317,"children":318},{"style":110},[319],{"type":72,"value":155},{"type":67,"tag":97,"props":321,"children":322},{"class":99,"line":158},[323],{"type":67,"tag":97,"props":324,"children":326},{"emptyLinePlaceholder":325},true,[327],{"type":72,"value":328},"\n",{"type":67,"tag":97,"props":330,"children":332},{"class":99,"line":331},4,[333,338,343,348,353,358,363,368],{"type":67,"tag":97,"props":334,"children":335},{"style":240},[336],{"type":72,"value":337}," if",{"type":67,"tag":97,"props":339,"children":340},{"style":110},[341],{"type":72,"value":342}," (",{"type":67,"tag":97,"props":344,"children":345},{"style":104},[346],{"type":72,"value":347},"!",{"type":67,"tag":97,"props":349,"children":350},{"style":136},[351],{"type":72,"value":352},"user",{"type":67,"tag":97,"props":354,"children":355},{"style":104},[356],{"type":72,"value":357},".",{"type":67,"tag":97,"props":359,"children":360},{"style":136},[361],{"type":72,"value":362},"value",{"type":67,"tag":97,"props":364,"children":365},{"style":110},[366],{"type":72,"value":367},") ",{"type":67,"tag":97,"props":369,"children":370},{"style":104},[371],{"type":72,"value":372},"{\n",{"type":67,"tag":97,"props":374,"children":376},{"class":99,"line":375},5,[377,382,387,391,396,402,406],{"type":67,"tag":97,"props":378,"children":379},{"style":240},[380],{"type":72,"value":381}," return",{"type":67,"tag":97,"props":383,"children":384},{"style":147},[385],{"type":72,"value":386}," navigateTo",{"type":67,"tag":97,"props":388,"children":389},{"style":110},[390],{"type":72,"value":258},{"type":67,"tag":97,"props":392,"children":393},{"style":104},[394],{"type":72,"value":395},"'",{"type":67,"tag":97,"props":397,"children":399},{"style":398},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[400],{"type":72,"value":401},"/login",{"type":67,"tag":97,"props":403,"children":404},{"style":104},[405],{"type":72,"value":395},{"type":67,"tag":97,"props":407,"children":408},{"style":110},[409],{"type":72,"value":410},")\n",{"type":67,"tag":97,"props":412,"children":414},{"class":99,"line":413},6,[415],{"type":67,"tag":97,"props":416,"children":417},{"style":104},[418],{"type":72,"value":419}," }\n",{"type":67,"tag":97,"props":421,"children":423},{"class":99,"line":422},7,[424,429],{"type":67,"tag":97,"props":425,"children":426},{"style":104},[427],{"type":72,"value":428},"}",{"type":67,"tag":97,"props":430,"children":431},{"style":136},[432],{"type":72,"value":410},{"type":67,"tag":68,"props":434,"children":435},{},[436],{"type":72,"value":437},"Then you can reference your middleware in your page with:",{"type":67,"tag":86,"props":439,"children":442},{"className":227,"code":440,"filename":441,"language":230,"meta":61,"style":61},"definePageMeta({\n middleware: 'auth'\n})\n","pages/dashboard.vue",[443],{"type":67,"tag":93,"props":444,"children":445},{"__ignoreMap":61},[446,462,490],{"type":67,"tag":97,"props":447,"children":448},{"class":99,"line":100},[449,454,458],{"type":67,"tag":97,"props":450,"children":451},{"style":147},[452],{"type":72,"value":453},"definePageMeta",{"type":67,"tag":97,"props":455,"children":456},{"style":136},[457],{"type":72,"value":258},{"type":67,"tag":97,"props":459,"children":460},{"style":104},[461],{"type":72,"value":372},{"type":67,"tag":97,"props":463,"children":464},{"class":99,"line":127},[465,470,475,480,485],{"type":67,"tag":97,"props":466,"children":467},{"style":110},[468],{"type":72,"value":469}," middleware",{"type":67,"tag":97,"props":471,"children":472},{"style":104},[473],{"type":72,"value":474},":",{"type":67,"tag":97,"props":476,"children":477},{"style":104},[478],{"type":72,"value":479}," '",{"type":67,"tag":97,"props":481,"children":482},{"style":398},[483],{"type":72,"value":484},"auth",{"type":67,"tag":97,"props":486,"children":487},{"style":104},[488],{"type":72,"value":489},"'\n",{"type":67,"tag":97,"props":491,"children":492},{"class":99,"line":158},[493,497],{"type":67,"tag":97,"props":494,"children":495},{"style":104},[496],{"type":72,"value":428},{"type":67,"tag":97,"props":498,"children":499},{"style":136},[500],{"type":72,"value":410},{"type":67,"tag":68,"props":502,"children":503},{},[504,506,513,515,521],{"type":72,"value":505},"Learn more about ",{"type":67,"tag":75,"props":507,"children":510},{"href":508,"rel":509},"https://nuxt.com/docs/guide/directory-structure/middleware",[79],[511],{"type":72,"value":512},"Nuxt middleware",{"type":72,"value":514}," and ",{"type":67,"tag":75,"props":516,"children":519},{"href":517,"rel":518},"https://nuxt.com/docs/guide/directory-structure/pages#page-metadata",[79],[520],{"type":72,"value":453},{"type":72,"value":357},{"type":67,"tag":523,"props":524,"children":525},"style",{},[526],{"type":72,"value":527},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":61,"searchDepth":127,"depth":127,"links":529},[530],{"id":176,"depth":127,"text":179},"markdown","content:4.usage:composables:useSupabaseUser.md","content","4.usage/composables/useSupabaseUser.md","4.usage/composables/useSupabaseUser","md",[538,540],{"_path":25,"title":24,"description":539},"Auto import and use your Supabase user's session with the useSupabaseSession composable",{"_path":35,"title":34,"description":541},"Make requests to the Supabase API on server side with the serverSupabaseClient service",1725006469567] \ No newline at end of file +[{"data":1,"prerenderedAt":542},["ShallowReactive",2],{"navigation":3,"/usage/composables/usesupabaseuser":58,"/usage/composables/usesupabaseuser-surround":537},[4,8,12,46,50,54],{"title":5,"_path":6,"icon":7},"Get Started","/get-started","i-heroicons-rocket-launch",{"title":9,"_path":10,"icon":11},"Authentication","/authentication","i-heroicons-lock-closed",{"title":13,"_path":14,"children":15,"icon":45},"Usage","/usage",[16,29],{"title":17,"_path":18,"children":19},"Vue composables","/usage/composables",[20,23,26],{"title":21,"_path":22},"useSupabaseClient","/usage/composables/usesupabaseclient",{"title":24,"_path":25},"useSupabaseSession","/usage/composables/usesupabasesession",{"title":27,"_path":28},"useSupabaseUser","/usage/composables/usesupabaseuser",{"title":30,"_path":31,"children":32},"Server services","/usage/services",[33,36,39,42],{"title":34,"_path":35},"serverSupabaseClient","/usage/services/serversupabaseclient",{"title":37,"_path":38},"serverSupabaseServiceRole","/usage/services/serversupabaseservicerole",{"title":40,"_path":41},"serverSupabaseSession","/usage/services/serversupabasesession",{"title":43,"_path":44},"serverSupabaseUser","/usage/services/serversupabaseuser","heroicons:book-open",{"title":47,"_path":48,"icon":49},"Demo","/demo","i-heroicons-computer-desktop-20-solid",{"title":51,"_path":52,"icon":53},"Changelog","/changelog","i-heroicons-bookmark",{"title":55,"_path":56,"icon":57},"Roadmap","/roadmap","i-heroicons-map",{"_path":28,"_dir":59,"_draft":60,"_partial":60,"_locale":61,"title":27,"description":62,"body":63,"_type":531,"_id":532,"_source":533,"_file":534,"_stem":535,"_extension":536},"composables",false,"","Auto import and use your Supabase user with the useSupabaseUser composable",{"type":64,"children":65,"toc":528},"root",[66,85,173,180,212,225,433,438,501,522],{"type":67,"tag":68,"props":69,"children":70},"element","p",{},[71,74,83],{"type":72,"value":73},"text","Once logged in, you can ",{"type":67,"tag":75,"props":76,"children":80},"a",{"href":77,"rel":78},"https://nuxt.com/docs/guide/directory-structure/composables",[79],"nofollow",[81],{"type":72,"value":82},"auto-import",{"type":72,"value":84}," your user everywhere inside your vue files.",{"type":67,"tag":86,"props":87,"children":91},"pre",{"className":88,"code":89,"language":90,"meta":61,"style":61},"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cscript setup>\nconst user = useSupabaseUser()\n\u003C/script>\n","vue",[92],{"type":67,"tag":93,"props":94,"children":95},"code",{"__ignoreMap":61},[96,125,156],{"type":67,"tag":97,"props":98,"children":101},"span",{"class":99,"line":100},"line",1,[102,108,114,120],{"type":67,"tag":97,"props":103,"children":105},{"style":104},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[106],{"type":72,"value":107},"\u003C",{"type":67,"tag":97,"props":109,"children":111},{"style":110},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[112],{"type":72,"value":113},"script",{"type":67,"tag":97,"props":115,"children":117},{"style":116},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[118],{"type":72,"value":119}," setup",{"type":67,"tag":97,"props":121,"children":122},{"style":104},[123],{"type":72,"value":124},">\n",{"type":67,"tag":97,"props":126,"children":128},{"class":99,"line":127},2,[129,134,140,145,151],{"type":67,"tag":97,"props":130,"children":131},{"style":116},[132],{"type":72,"value":133},"const",{"type":67,"tag":97,"props":135,"children":137},{"style":136},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[138],{"type":72,"value":139}," user ",{"type":67,"tag":97,"props":141,"children":142},{"style":104},[143],{"type":72,"value":144},"=",{"type":67,"tag":97,"props":146,"children":148},{"style":147},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[149],{"type":72,"value":150}," useSupabaseUser",{"type":67,"tag":97,"props":152,"children":153},{"style":136},[154],{"type":72,"value":155},"()\n",{"type":67,"tag":97,"props":157,"children":159},{"class":99,"line":158},3,[160,165,169],{"type":67,"tag":97,"props":161,"children":162},{"style":104},[163],{"type":72,"value":164},"\u003C/",{"type":67,"tag":97,"props":166,"children":167},{"style":110},[168],{"type":72,"value":113},{"type":67,"tag":97,"props":170,"children":171},{"style":104},[172],{"type":72,"value":124},{"type":67,"tag":174,"props":175,"children":177},"h2",{"id":176},"auth-middleware",[178],{"type":72,"value":179},"Auth middleware",{"type":67,"tag":181,"props":182,"children":184},"callout",{"icon":183},"i-heroicons-light-bulb",[185],{"type":67,"tag":68,"props":186,"children":187},{},[188,190,196,198,203,205,210],{"type":72,"value":189},"By default, the module is implementing a redirect middleware. All pages of your application are automatically redirected to the ",{"type":67,"tag":75,"props":191,"children":193},{"href":192},"/get-started#redirectoptions",[194],{"type":72,"value":195},"login",{"type":72,"value":197}," page. However, you can allow redirection to \"public\" pages by setting the ",{"type":67,"tag":75,"props":199,"children":200},{"href":192},[201],{"type":72,"value":202},"exclude",{"type":72,"value":204}," redirect option. Alternatively, you can enable the redirect only for certain routes using the ",{"type":67,"tag":75,"props":206,"children":207},{"href":192},[208],{"type":72,"value":209},"include",{"type":72,"value":211}," redirect option.",{"type":67,"tag":68,"props":213,"children":214},{},[215,217,223],{"type":72,"value":216},"If the ",{"type":67,"tag":75,"props":218,"children":220},{"href":219},"/get-started#redirect",[221],{"type":72,"value":222},"redirect",{"type":72,"value":224}," option is disabled, you can protect your authenticated routes by creating a custom middleware in your project, here is an example:",{"type":67,"tag":86,"props":226,"children":231},{"className":227,"code":228,"filename":229,"language":230,"meta":61,"style":61},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","export default defineNuxtRouteMiddleware((to, _from) => {\n const user = useSupabaseUser()\n\n if (!user.value) {\n return navigateTo('/login')\n }\n})\n","middleware/auth.ts","ts",[232],{"type":67,"tag":93,"props":233,"children":234},{"__ignoreMap":61},[235,294,320,329,373,411,420],{"type":67,"tag":97,"props":236,"children":237},{"class":99,"line":100},[238,244,249,254,259,263,269,274,279,284,289],{"type":67,"tag":97,"props":239,"children":241},{"style":240},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[242],{"type":72,"value":243},"export",{"type":67,"tag":97,"props":245,"children":246},{"style":240},[247],{"type":72,"value":248}," default",{"type":67,"tag":97,"props":250,"children":251},{"style":147},[252],{"type":72,"value":253}," defineNuxtRouteMiddleware",{"type":67,"tag":97,"props":255,"children":256},{"style":136},[257],{"type":72,"value":258},"(",{"type":67,"tag":97,"props":260,"children":261},{"style":104},[262],{"type":72,"value":258},{"type":67,"tag":97,"props":264,"children":266},{"style":265},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[267],{"type":72,"value":268},"to",{"type":67,"tag":97,"props":270,"children":271},{"style":104},[272],{"type":72,"value":273},",",{"type":67,"tag":97,"props":275,"children":276},{"style":265},[277],{"type":72,"value":278}," _from",{"type":67,"tag":97,"props":280,"children":281},{"style":104},[282],{"type":72,"value":283},")",{"type":67,"tag":97,"props":285,"children":286},{"style":116},[287],{"type":72,"value":288}," =>",{"type":67,"tag":97,"props":290,"children":291},{"style":104},[292],{"type":72,"value":293}," {\n",{"type":67,"tag":97,"props":295,"children":296},{"class":99,"line":127},[297,302,307,312,316],{"type":67,"tag":97,"props":298,"children":299},{"style":116},[300],{"type":72,"value":301}," const",{"type":67,"tag":97,"props":303,"children":304},{"style":136},[305],{"type":72,"value":306}," user",{"type":67,"tag":97,"props":308,"children":309},{"style":104},[310],{"type":72,"value":311}," =",{"type":67,"tag":97,"props":313,"children":314},{"style":147},[315],{"type":72,"value":150},{"type":67,"tag":97,"props":317,"children":318},{"style":110},[319],{"type":72,"value":155},{"type":67,"tag":97,"props":321,"children":322},{"class":99,"line":158},[323],{"type":67,"tag":97,"props":324,"children":326},{"emptyLinePlaceholder":325},true,[327],{"type":72,"value":328},"\n",{"type":67,"tag":97,"props":330,"children":332},{"class":99,"line":331},4,[333,338,343,348,353,358,363,368],{"type":67,"tag":97,"props":334,"children":335},{"style":240},[336],{"type":72,"value":337}," if",{"type":67,"tag":97,"props":339,"children":340},{"style":110},[341],{"type":72,"value":342}," (",{"type":67,"tag":97,"props":344,"children":345},{"style":104},[346],{"type":72,"value":347},"!",{"type":67,"tag":97,"props":349,"children":350},{"style":136},[351],{"type":72,"value":352},"user",{"type":67,"tag":97,"props":354,"children":355},{"style":104},[356],{"type":72,"value":357},".",{"type":67,"tag":97,"props":359,"children":360},{"style":136},[361],{"type":72,"value":362},"value",{"type":67,"tag":97,"props":364,"children":365},{"style":110},[366],{"type":72,"value":367},") ",{"type":67,"tag":97,"props":369,"children":370},{"style":104},[371],{"type":72,"value":372},"{\n",{"type":67,"tag":97,"props":374,"children":376},{"class":99,"line":375},5,[377,382,387,391,396,402,406],{"type":67,"tag":97,"props":378,"children":379},{"style":240},[380],{"type":72,"value":381}," return",{"type":67,"tag":97,"props":383,"children":384},{"style":147},[385],{"type":72,"value":386}," navigateTo",{"type":67,"tag":97,"props":388,"children":389},{"style":110},[390],{"type":72,"value":258},{"type":67,"tag":97,"props":392,"children":393},{"style":104},[394],{"type":72,"value":395},"'",{"type":67,"tag":97,"props":397,"children":399},{"style":398},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[400],{"type":72,"value":401},"/login",{"type":67,"tag":97,"props":403,"children":404},{"style":104},[405],{"type":72,"value":395},{"type":67,"tag":97,"props":407,"children":408},{"style":110},[409],{"type":72,"value":410},")\n",{"type":67,"tag":97,"props":412,"children":414},{"class":99,"line":413},6,[415],{"type":67,"tag":97,"props":416,"children":417},{"style":104},[418],{"type":72,"value":419}," }\n",{"type":67,"tag":97,"props":421,"children":423},{"class":99,"line":422},7,[424,429],{"type":67,"tag":97,"props":425,"children":426},{"style":104},[427],{"type":72,"value":428},"}",{"type":67,"tag":97,"props":430,"children":431},{"style":136},[432],{"type":72,"value":410},{"type":67,"tag":68,"props":434,"children":435},{},[436],{"type":72,"value":437},"Then you can reference your middleware in your page with:",{"type":67,"tag":86,"props":439,"children":442},{"className":227,"code":440,"filename":441,"language":230,"meta":61,"style":61},"definePageMeta({\n middleware: 'auth'\n})\n","pages/dashboard.vue",[443],{"type":67,"tag":93,"props":444,"children":445},{"__ignoreMap":61},[446,462,490],{"type":67,"tag":97,"props":447,"children":448},{"class":99,"line":100},[449,454,458],{"type":67,"tag":97,"props":450,"children":451},{"style":147},[452],{"type":72,"value":453},"definePageMeta",{"type":67,"tag":97,"props":455,"children":456},{"style":136},[457],{"type":72,"value":258},{"type":67,"tag":97,"props":459,"children":460},{"style":104},[461],{"type":72,"value":372},{"type":67,"tag":97,"props":463,"children":464},{"class":99,"line":127},[465,470,475,480,485],{"type":67,"tag":97,"props":466,"children":467},{"style":110},[468],{"type":72,"value":469}," middleware",{"type":67,"tag":97,"props":471,"children":472},{"style":104},[473],{"type":72,"value":474},":",{"type":67,"tag":97,"props":476,"children":477},{"style":104},[478],{"type":72,"value":479}," '",{"type":67,"tag":97,"props":481,"children":482},{"style":398},[483],{"type":72,"value":484},"auth",{"type":67,"tag":97,"props":486,"children":487},{"style":104},[488],{"type":72,"value":489},"'\n",{"type":67,"tag":97,"props":491,"children":492},{"class":99,"line":158},[493,497],{"type":67,"tag":97,"props":494,"children":495},{"style":104},[496],{"type":72,"value":428},{"type":67,"tag":97,"props":498,"children":499},{"style":136},[500],{"type":72,"value":410},{"type":67,"tag":68,"props":502,"children":503},{},[504,506,513,515,521],{"type":72,"value":505},"Learn more about ",{"type":67,"tag":75,"props":507,"children":510},{"href":508,"rel":509},"https://nuxt.com/docs/guide/directory-structure/middleware",[79],[511],{"type":72,"value":512},"Nuxt middleware",{"type":72,"value":514}," and ",{"type":67,"tag":75,"props":516,"children":519},{"href":517,"rel":518},"https://nuxt.com/docs/guide/directory-structure/pages#page-metadata",[79],[520],{"type":72,"value":453},{"type":72,"value":357},{"type":67,"tag":523,"props":524,"children":525},"style",{},[526],{"type":72,"value":527},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":61,"searchDepth":127,"depth":127,"links":529},[530],{"id":176,"depth":127,"text":179},"markdown","content:4.usage:composables:useSupabaseUser.md","content","4.usage/composables/useSupabaseUser.md","4.usage/composables/useSupabaseUser","md",[538,540],{"_path":25,"title":24,"description":539},"Auto import and use your Supabase user's session with the useSupabaseSession composable",{"_path":35,"title":34,"description":541},"Make requests to the Supabase API on server side with the serverSupabaseClient service",1725013745835] \ No newline at end of file diff --git a/usage/composables/usesupabaseuser/index.html b/usage/composables/usesupabaseuser/index.html index 5686f44b6..86d1e8e94 100644 --- a/usage/composables/usesupabaseuser/index.html +++ b/usage/composables/usesupabaseuser/index.html @@ -61,50 +61,50 @@ - - - - - - - + + + + + + + - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - + - - - - - - - + + + + + + + - - + + - + -
mobile favicon
Composables

useSupabaseUser

Auto import and use your Supabase user with the useSupabaseUser composable

Once logged in, you can auto-import your user everywhere inside your vue files.

<script setup>
+
mobile favicon
Composables

useSupabaseUser

Auto import and use your Supabase user with the useSupabaseUser composable

Once logged in, you can auto-import your user everywhere inside your vue files.

<script setup>
 const user = useSupabaseUser()
 </script>
 

Auth middleware

By default, the module is implementing a redirect middleware. All pages of your application are automatically redirected to the login page. However, you can allow redirection to "public" pages by setting the exclude redirect option. Alternatively, you can enable the redirect only for certain routes using the include redirect option.

If the redirect option is disabled, you can protect your authenticated routes by creating a custom middleware in your project, here is an example:

middleware/auth.ts
export default defineNuxtRouteMiddleware((to, _from) => {
@@ -118,5 +118,5 @@
   middleware: 'auth'
 })
 

Learn more about Nuxt middleware and definePageMeta.


Made with Nuxt Studio
- - \ No newline at end of file + + \ No newline at end of file diff --git a/usage/services/serversupabaseclient/_payload.json b/usage/services/serversupabaseclient/_payload.json index 57d55f3f6..7b7d6080d 100644 --- a/usage/services/serversupabaseclient/_payload.json +++ b/usage/services/serversupabaseclient/_payload.json @@ -1 +1 @@ -[{"data":1,"prerenderedAt":736},["ShallowReactive",2],{"navigation":3,"/usage/services/serversupabaseclient":58,"/usage/services/serversupabaseclient-surround":730},[4,8,12,46,50,54],{"title":5,"_path":6,"icon":7},"Get Started","/get-started","i-heroicons-rocket-launch",{"title":9,"_path":10,"icon":11},"Authentication","/authentication","i-heroicons-lock-closed",{"title":13,"_path":14,"children":15,"icon":45},"Usage","/usage",[16,29],{"title":17,"_path":18,"children":19},"Vue composables","/usage/composables",[20,23,26],{"title":21,"_path":22},"useSupabaseClient","/usage/composables/usesupabaseclient",{"title":24,"_path":25},"useSupabaseSession","/usage/composables/usesupabasesession",{"title":27,"_path":28},"useSupabaseUser","/usage/composables/usesupabaseuser",{"title":30,"_path":31,"children":32},"Server services","/usage/services",[33,36,39,42],{"title":34,"_path":35},"serverSupabaseClient","/usage/services/serversupabaseclient",{"title":37,"_path":38},"serverSupabaseServiceRole","/usage/services/serversupabaseservicerole",{"title":40,"_path":41},"serverSupabaseSession","/usage/services/serversupabasesession",{"title":43,"_path":44},"serverSupabaseUser","/usage/services/serversupabaseuser","heroicons:book-open",{"title":47,"_path":48,"icon":49},"Demo","/demo","i-heroicons-computer-desktop-20-solid",{"title":51,"_path":52,"icon":53},"Changelog","/changelog","i-heroicons-bookmark",{"title":55,"_path":56,"icon":57},"Roadmap","/roadmap","i-heroicons-map",{"_path":35,"_dir":59,"_draft":60,"_partial":60,"_locale":61,"title":34,"description":62,"body":63,"_type":724,"_id":725,"_source":726,"_file":727,"_stem":728,"_extension":729},"services",false,"","Make requests to the Supabase API on server side with the serverSupabaseClient service",{"type":64,"children":65,"toc":722},"root",[66,91,111,139,463,468,573,587,716],{"type":67,"tag":68,"props":69,"children":72},"element","callout",{"color":70,"icon":71},"amber","i-heroicons-exclamation-triangle-20-solid",[73],{"type":67,"tag":74,"props":75,"children":76},"p",{},[77,80,89],{"type":78,"value":79},"text","This section assumes you're familiar with ",{"type":67,"tag":81,"props":82,"children":86},"a",{"href":83,"rel":84},"https://v3.nuxtjs.org/guide/concepts/server-engine",[85],"nofollow",[87],{"type":78,"value":88},"Nitro",{"type":78,"value":90},", the server engine powered by Nuxt.",{"type":67,"tag":74,"props":92,"children":93},{},[94,96,100,102,109],{"type":78,"value":95},"This function is working similary as the ",{"type":67,"tag":81,"props":97,"children":98},{"href":22},[99],{"type":78,"value":21},{"type":78,"value":101}," composable but is designed to be used in ",{"type":67,"tag":81,"props":103,"children":106},{"href":104,"rel":105},"https://nuxt.com/docs/guide/directory-structure/server#server-routes",[85],[107],{"type":78,"value":108},"server routes",{"type":78,"value":110},".",{"type":67,"tag":74,"props":112,"children":113},{},[114,116,122,124,130,132,137],{"type":78,"value":115},"Define your server route and just import the ",{"type":67,"tag":117,"props":118,"children":120},"code",{"className":119},[],[121],{"type":78,"value":34},{"type":78,"value":123}," from ",{"type":67,"tag":117,"props":125,"children":127},{"className":126},[],[128],{"type":78,"value":129},"#supabase/server",{"type":78,"value":131},". Be careful, ",{"type":67,"tag":117,"props":133,"children":135},{"className":134},[],[136],{"type":78,"value":34},{"type":78,"value":138}," is returning a promise.",{"type":67,"tag":140,"props":141,"children":146},"pre",{"className":142,"code":143,"filename":144,"language":145,"meta":61,"style":61},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { serverSupabaseClient } from '#supabase/server'\n\nexport default eventHandler(async (event) => {\n const client = await serverSupabaseClient(event)\n\n const { data } = await client.from('libraries').select('*')\n\n return { libraries: data }\n})\n","server/api/libraries.ts","ts",[147],{"type":67,"tag":117,"props":148,"children":149},{"__ignoreMap":61},[150,199,209,266,308,316,410,418,450],{"type":67,"tag":151,"props":152,"children":155},"span",{"class":153,"line":154},"line",1,[156,162,168,174,179,184,189,194],{"type":67,"tag":151,"props":157,"children":159},{"style":158},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[160],{"type":78,"value":161},"import",{"type":67,"tag":151,"props":163,"children":165},{"style":164},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[166],{"type":78,"value":167}," {",{"type":67,"tag":151,"props":169,"children":171},{"style":170},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[172],{"type":78,"value":173}," serverSupabaseClient",{"type":67,"tag":151,"props":175,"children":176},{"style":164},[177],{"type":78,"value":178}," }",{"type":67,"tag":151,"props":180,"children":181},{"style":158},[182],{"type":78,"value":183}," from",{"type":67,"tag":151,"props":185,"children":186},{"style":164},[187],{"type":78,"value":188}," '",{"type":67,"tag":151,"props":190,"children":192},{"style":191},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[193],{"type":78,"value":129},{"type":67,"tag":151,"props":195,"children":196},{"style":164},[197],{"type":78,"value":198},"'\n",{"type":67,"tag":151,"props":200,"children":202},{"class":153,"line":201},2,[203],{"type":67,"tag":151,"props":204,"children":206},{"emptyLinePlaceholder":205},true,[207],{"type":78,"value":208},"\n",{"type":67,"tag":151,"props":210,"children":212},{"class":153,"line":211},3,[213,218,223,229,234,240,245,251,256,261],{"type":67,"tag":151,"props":214,"children":215},{"style":158},[216],{"type":78,"value":217},"export",{"type":67,"tag":151,"props":219,"children":220},{"style":158},[221],{"type":78,"value":222}," default",{"type":67,"tag":151,"props":224,"children":226},{"style":225},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[227],{"type":78,"value":228}," eventHandler",{"type":67,"tag":151,"props":230,"children":231},{"style":170},[232],{"type":78,"value":233},"(",{"type":67,"tag":151,"props":235,"children":237},{"style":236},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[238],{"type":78,"value":239},"async",{"type":67,"tag":151,"props":241,"children":242},{"style":164},[243],{"type":78,"value":244}," (",{"type":67,"tag":151,"props":246,"children":248},{"style":247},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[249],{"type":78,"value":250},"event",{"type":67,"tag":151,"props":252,"children":253},{"style":164},[254],{"type":78,"value":255},")",{"type":67,"tag":151,"props":257,"children":258},{"style":236},[259],{"type":78,"value":260}," =>",{"type":67,"tag":151,"props":262,"children":263},{"style":164},[264],{"type":78,"value":265}," {\n",{"type":67,"tag":151,"props":267,"children":269},{"class":153,"line":268},4,[270,275,280,285,290,294,299,303],{"type":67,"tag":151,"props":271,"children":272},{"style":236},[273],{"type":78,"value":274}," const",{"type":67,"tag":151,"props":276,"children":277},{"style":170},[278],{"type":78,"value":279}," client",{"type":67,"tag":151,"props":281,"children":282},{"style":164},[283],{"type":78,"value":284}," =",{"type":67,"tag":151,"props":286,"children":287},{"style":158},[288],{"type":78,"value":289}," await",{"type":67,"tag":151,"props":291,"children":292},{"style":225},[293],{"type":78,"value":173},{"type":67,"tag":151,"props":295,"children":297},{"style":296},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[298],{"type":78,"value":233},{"type":67,"tag":151,"props":300,"children":301},{"style":170},[302],{"type":78,"value":250},{"type":67,"tag":151,"props":304,"children":305},{"style":296},[306],{"type":78,"value":307},")\n",{"type":67,"tag":151,"props":309,"children":311},{"class":153,"line":310},5,[312],{"type":67,"tag":151,"props":313,"children":314},{"emptyLinePlaceholder":205},[315],{"type":78,"value":208},{"type":67,"tag":151,"props":317,"children":319},{"class":153,"line":318},6,[320,324,328,333,337,341,345,349,353,358,362,367,372,376,380,384,389,393,397,402,406],{"type":67,"tag":151,"props":321,"children":322},{"style":236},[323],{"type":78,"value":274},{"type":67,"tag":151,"props":325,"children":326},{"style":164},[327],{"type":78,"value":167},{"type":67,"tag":151,"props":329,"children":330},{"style":170},[331],{"type":78,"value":332}," data",{"type":67,"tag":151,"props":334,"children":335},{"style":164},[336],{"type":78,"value":178},{"type":67,"tag":151,"props":338,"children":339},{"style":164},[340],{"type":78,"value":284},{"type":67,"tag":151,"props":342,"children":343},{"style":158},[344],{"type":78,"value":289},{"type":67,"tag":151,"props":346,"children":347},{"style":170},[348],{"type":78,"value":279},{"type":67,"tag":151,"props":350,"children":351},{"style":164},[352],{"type":78,"value":110},{"type":67,"tag":151,"props":354,"children":355},{"style":225},[356],{"type":78,"value":357},"from",{"type":67,"tag":151,"props":359,"children":360},{"style":296},[361],{"type":78,"value":233},{"type":67,"tag":151,"props":363,"children":364},{"style":164},[365],{"type":78,"value":366},"'",{"type":67,"tag":151,"props":368,"children":369},{"style":191},[370],{"type":78,"value":371},"libraries",{"type":67,"tag":151,"props":373,"children":374},{"style":164},[375],{"type":78,"value":366},{"type":67,"tag":151,"props":377,"children":378},{"style":296},[379],{"type":78,"value":255},{"type":67,"tag":151,"props":381,"children":382},{"style":164},[383],{"type":78,"value":110},{"type":67,"tag":151,"props":385,"children":386},{"style":225},[387],{"type":78,"value":388},"select",{"type":67,"tag":151,"props":390,"children":391},{"style":296},[392],{"type":78,"value":233},{"type":67,"tag":151,"props":394,"children":395},{"style":164},[396],{"type":78,"value":366},{"type":67,"tag":151,"props":398,"children":399},{"style":191},[400],{"type":78,"value":401},"*",{"type":67,"tag":151,"props":403,"children":404},{"style":164},[405],{"type":78,"value":366},{"type":67,"tag":151,"props":407,"children":408},{"style":296},[409],{"type":78,"value":307},{"type":67,"tag":151,"props":411,"children":413},{"class":153,"line":412},7,[414],{"type":67,"tag":151,"props":415,"children":416},{"emptyLinePlaceholder":205},[417],{"type":78,"value":208},{"type":67,"tag":151,"props":419,"children":421},{"class":153,"line":420},8,[422,427,431,436,441,445],{"type":67,"tag":151,"props":423,"children":424},{"style":158},[425],{"type":78,"value":426}," return",{"type":67,"tag":151,"props":428,"children":429},{"style":164},[430],{"type":78,"value":167},{"type":67,"tag":151,"props":432,"children":433},{"style":296},[434],{"type":78,"value":435}," libraries",{"type":67,"tag":151,"props":437,"children":438},{"style":164},[439],{"type":78,"value":440},":",{"type":67,"tag":151,"props":442,"children":443},{"style":170},[444],{"type":78,"value":332},{"type":67,"tag":151,"props":446,"children":447},{"style":164},[448],{"type":78,"value":449}," }\n",{"type":67,"tag":151,"props":451,"children":453},{"class":153,"line":452},9,[454,459],{"type":67,"tag":151,"props":455,"children":456},{"style":164},[457],{"type":78,"value":458},"}",{"type":67,"tag":151,"props":460,"children":461},{"style":170},[462],{"type":78,"value":307},{"type":67,"tag":74,"props":464,"children":465},{},[466],{"type":78,"value":467},"Then call your API route from any vue file:",{"type":67,"tag":140,"props":469,"children":472},{"className":142,"code":470,"filename":471,"language":145,"meta":61,"style":61},"const fetchLibrary = async () => {\n const { libraries } = await $fetch('/api/libraries')\n}\n","pages/index.vue",[473],{"type":67,"tag":117,"props":474,"children":475},{"__ignoreMap":61},[476,512,565],{"type":67,"tag":151,"props":477,"children":478},{"class":153,"line":154},[479,484,489,494,499,504,508],{"type":67,"tag":151,"props":480,"children":481},{"style":236},[482],{"type":78,"value":483},"const",{"type":67,"tag":151,"props":485,"children":486},{"style":170},[487],{"type":78,"value":488}," fetchLibrary ",{"type":67,"tag":151,"props":490,"children":491},{"style":164},[492],{"type":78,"value":493},"=",{"type":67,"tag":151,"props":495,"children":496},{"style":236},[497],{"type":78,"value":498}," async",{"type":67,"tag":151,"props":500,"children":501},{"style":164},[502],{"type":78,"value":503}," ()",{"type":67,"tag":151,"props":505,"children":506},{"style":236},[507],{"type":78,"value":260},{"type":67,"tag":151,"props":509,"children":510},{"style":164},[511],{"type":78,"value":265},{"type":67,"tag":151,"props":513,"children":514},{"class":153,"line":201},[515,519,523,527,531,535,539,544,548,552,557,561],{"type":67,"tag":151,"props":516,"children":517},{"style":236},[518],{"type":78,"value":274},{"type":67,"tag":151,"props":520,"children":521},{"style":164},[522],{"type":78,"value":167},{"type":67,"tag":151,"props":524,"children":525},{"style":170},[526],{"type":78,"value":435},{"type":67,"tag":151,"props":528,"children":529},{"style":164},[530],{"type":78,"value":178},{"type":67,"tag":151,"props":532,"children":533},{"style":164},[534],{"type":78,"value":284},{"type":67,"tag":151,"props":536,"children":537},{"style":158},[538],{"type":78,"value":289},{"type":67,"tag":151,"props":540,"children":541},{"style":225},[542],{"type":78,"value":543}," $fetch",{"type":67,"tag":151,"props":545,"children":546},{"style":296},[547],{"type":78,"value":233},{"type":67,"tag":151,"props":549,"children":550},{"style":164},[551],{"type":78,"value":366},{"type":67,"tag":151,"props":553,"children":554},{"style":191},[555],{"type":78,"value":556},"/api/libraries",{"type":67,"tag":151,"props":558,"children":559},{"style":164},[560],{"type":78,"value":366},{"type":67,"tag":151,"props":562,"children":563},{"style":296},[564],{"type":78,"value":307},{"type":67,"tag":151,"props":566,"children":567},{"class":153,"line":211},[568],{"type":67,"tag":151,"props":569,"children":570},{"style":164},[571],{"type":78,"value":572},"}\n",{"type":67,"tag":74,"props":574,"children":575},{},[576,578,585],{"type":78,"value":577},"Be careful, if you want to call this route on SSR, please read this ",{"type":67,"tag":81,"props":579,"children":582},{"href":580,"rel":581},"https://nuxt.com/docs/getting-started/data-fetching#isomorphic-fetch-and-fetch",[85],[583],{"type":78,"value":584},"section",{"type":78,"value":586},", you must send your browser cookies including your supabase token.",{"type":67,"tag":140,"props":588,"children":590},{"className":142,"code":589,"filename":471,"language":145,"meta":61,"style":61},"const { data: { libraries }} = await useFetch('/api/libraries', {\n headers: useRequestHeaders(['cookie'])\n})\n",[591],{"type":67,"tag":117,"props":592,"children":593},{"__ignoreMap":61},[594,665,705],{"type":67,"tag":151,"props":595,"children":596},{"class":153,"line":154},[597,601,605,609,613,617,622,627,631,635,640,644,648,652,656,661],{"type":67,"tag":151,"props":598,"children":599},{"style":236},[600],{"type":78,"value":483},{"type":67,"tag":151,"props":602,"children":603},{"style":164},[604],{"type":78,"value":167},{"type":67,"tag":151,"props":606,"children":607},{"style":296},[608],{"type":78,"value":332},{"type":67,"tag":151,"props":610,"children":611},{"style":164},[612],{"type":78,"value":440},{"type":67,"tag":151,"props":614,"children":615},{"style":164},[616],{"type":78,"value":167},{"type":67,"tag":151,"props":618,"children":619},{"style":170},[620],{"type":78,"value":621}," libraries ",{"type":67,"tag":151,"props":623,"children":624},{"style":164},[625],{"type":78,"value":626},"}}",{"type":67,"tag":151,"props":628,"children":629},{"style":164},[630],{"type":78,"value":284},{"type":67,"tag":151,"props":632,"children":633},{"style":158},[634],{"type":78,"value":289},{"type":67,"tag":151,"props":636,"children":637},{"style":225},[638],{"type":78,"value":639}," useFetch",{"type":67,"tag":151,"props":641,"children":642},{"style":170},[643],{"type":78,"value":233},{"type":67,"tag":151,"props":645,"children":646},{"style":164},[647],{"type":78,"value":366},{"type":67,"tag":151,"props":649,"children":650},{"style":191},[651],{"type":78,"value":556},{"type":67,"tag":151,"props":653,"children":654},{"style":164},[655],{"type":78,"value":366},{"type":67,"tag":151,"props":657,"children":658},{"style":164},[659],{"type":78,"value":660},",",{"type":67,"tag":151,"props":662,"children":663},{"style":164},[664],{"type":78,"value":265},{"type":67,"tag":151,"props":666,"children":667},{"class":153,"line":201},[668,673,677,682,687,691,696,700],{"type":67,"tag":151,"props":669,"children":670},{"style":296},[671],{"type":78,"value":672}," headers",{"type":67,"tag":151,"props":674,"children":675},{"style":164},[676],{"type":78,"value":440},{"type":67,"tag":151,"props":678,"children":679},{"style":225},[680],{"type":78,"value":681}," useRequestHeaders",{"type":67,"tag":151,"props":683,"children":684},{"style":170},[685],{"type":78,"value":686},"([",{"type":67,"tag":151,"props":688,"children":689},{"style":164},[690],{"type":78,"value":366},{"type":67,"tag":151,"props":692,"children":693},{"style":191},[694],{"type":78,"value":695},"cookie",{"type":67,"tag":151,"props":697,"children":698},{"style":164},[699],{"type":78,"value":366},{"type":67,"tag":151,"props":701,"children":702},{"style":170},[703],{"type":78,"value":704},"])\n",{"type":67,"tag":151,"props":706,"children":707},{"class":153,"line":211},[708,712],{"type":67,"tag":151,"props":709,"children":710},{"style":164},[711],{"type":78,"value":458},{"type":67,"tag":151,"props":713,"children":714},{"style":170},[715],{"type":78,"value":307},{"type":67,"tag":717,"props":718,"children":719},"style",{},[720],{"type":78,"value":721},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":61,"searchDepth":201,"depth":201,"links":723},[],"markdown","content:4.usage:services:1.serverSupabaseClient.md","content","4.usage/services/1.serverSupabaseClient.md","4.usage/services/1.serverSupabaseClient","md",[731,733],{"_path":28,"title":27,"description":732},"Auto import and use your Supabase user with the useSupabaseUser composable",{"_path":38,"title":734,"description":735},"serverServiceRole","Make requests with super admin rights to the Supabase API with the serverSupabaseServiceRole service",1725006469120] \ No newline at end of file +[{"data":1,"prerenderedAt":736},["ShallowReactive",2],{"navigation":3,"/usage/services/serversupabaseclient":58,"/usage/services/serversupabaseclient-surround":730},[4,8,12,46,50,54],{"title":5,"_path":6,"icon":7},"Get Started","/get-started","i-heroicons-rocket-launch",{"title":9,"_path":10,"icon":11},"Authentication","/authentication","i-heroicons-lock-closed",{"title":13,"_path":14,"children":15,"icon":45},"Usage","/usage",[16,29],{"title":17,"_path":18,"children":19},"Vue composables","/usage/composables",[20,23,26],{"title":21,"_path":22},"useSupabaseClient","/usage/composables/usesupabaseclient",{"title":24,"_path":25},"useSupabaseSession","/usage/composables/usesupabasesession",{"title":27,"_path":28},"useSupabaseUser","/usage/composables/usesupabaseuser",{"title":30,"_path":31,"children":32},"Server services","/usage/services",[33,36,39,42],{"title":34,"_path":35},"serverSupabaseClient","/usage/services/serversupabaseclient",{"title":37,"_path":38},"serverSupabaseServiceRole","/usage/services/serversupabaseservicerole",{"title":40,"_path":41},"serverSupabaseSession","/usage/services/serversupabasesession",{"title":43,"_path":44},"serverSupabaseUser","/usage/services/serversupabaseuser","heroicons:book-open",{"title":47,"_path":48,"icon":49},"Demo","/demo","i-heroicons-computer-desktop-20-solid",{"title":51,"_path":52,"icon":53},"Changelog","/changelog","i-heroicons-bookmark",{"title":55,"_path":56,"icon":57},"Roadmap","/roadmap","i-heroicons-map",{"_path":35,"_dir":59,"_draft":60,"_partial":60,"_locale":61,"title":34,"description":62,"body":63,"_type":724,"_id":725,"_source":726,"_file":727,"_stem":728,"_extension":729},"services",false,"","Make requests to the Supabase API on server side with the serverSupabaseClient service",{"type":64,"children":65,"toc":722},"root",[66,91,111,139,463,468,573,587,716],{"type":67,"tag":68,"props":69,"children":72},"element","callout",{"color":70,"icon":71},"amber","i-heroicons-exclamation-triangle-20-solid",[73],{"type":67,"tag":74,"props":75,"children":76},"p",{},[77,80,89],{"type":78,"value":79},"text","This section assumes you're familiar with ",{"type":67,"tag":81,"props":82,"children":86},"a",{"href":83,"rel":84},"https://v3.nuxtjs.org/guide/concepts/server-engine",[85],"nofollow",[87],{"type":78,"value":88},"Nitro",{"type":78,"value":90},", the server engine powered by Nuxt.",{"type":67,"tag":74,"props":92,"children":93},{},[94,96,100,102,109],{"type":78,"value":95},"This function is working similary as the ",{"type":67,"tag":81,"props":97,"children":98},{"href":22},[99],{"type":78,"value":21},{"type":78,"value":101}," composable but is designed to be used in ",{"type":67,"tag":81,"props":103,"children":106},{"href":104,"rel":105},"https://nuxt.com/docs/guide/directory-structure/server#server-routes",[85],[107],{"type":78,"value":108},"server routes",{"type":78,"value":110},".",{"type":67,"tag":74,"props":112,"children":113},{},[114,116,122,124,130,132,137],{"type":78,"value":115},"Define your server route and just import the ",{"type":67,"tag":117,"props":118,"children":120},"code",{"className":119},[],[121],{"type":78,"value":34},{"type":78,"value":123}," from ",{"type":67,"tag":117,"props":125,"children":127},{"className":126},[],[128],{"type":78,"value":129},"#supabase/server",{"type":78,"value":131},". Be careful, ",{"type":67,"tag":117,"props":133,"children":135},{"className":134},[],[136],{"type":78,"value":34},{"type":78,"value":138}," is returning a promise.",{"type":67,"tag":140,"props":141,"children":146},"pre",{"className":142,"code":143,"filename":144,"language":145,"meta":61,"style":61},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { serverSupabaseClient } from '#supabase/server'\n\nexport default eventHandler(async (event) => {\n const client = await serverSupabaseClient(event)\n\n const { data } = await client.from('libraries').select('*')\n\n return { libraries: data }\n})\n","server/api/libraries.ts","ts",[147],{"type":67,"tag":117,"props":148,"children":149},{"__ignoreMap":61},[150,199,209,266,308,316,410,418,450],{"type":67,"tag":151,"props":152,"children":155},"span",{"class":153,"line":154},"line",1,[156,162,168,174,179,184,189,194],{"type":67,"tag":151,"props":157,"children":159},{"style":158},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[160],{"type":78,"value":161},"import",{"type":67,"tag":151,"props":163,"children":165},{"style":164},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[166],{"type":78,"value":167}," {",{"type":67,"tag":151,"props":169,"children":171},{"style":170},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[172],{"type":78,"value":173}," serverSupabaseClient",{"type":67,"tag":151,"props":175,"children":176},{"style":164},[177],{"type":78,"value":178}," }",{"type":67,"tag":151,"props":180,"children":181},{"style":158},[182],{"type":78,"value":183}," from",{"type":67,"tag":151,"props":185,"children":186},{"style":164},[187],{"type":78,"value":188}," '",{"type":67,"tag":151,"props":190,"children":192},{"style":191},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[193],{"type":78,"value":129},{"type":67,"tag":151,"props":195,"children":196},{"style":164},[197],{"type":78,"value":198},"'\n",{"type":67,"tag":151,"props":200,"children":202},{"class":153,"line":201},2,[203],{"type":67,"tag":151,"props":204,"children":206},{"emptyLinePlaceholder":205},true,[207],{"type":78,"value":208},"\n",{"type":67,"tag":151,"props":210,"children":212},{"class":153,"line":211},3,[213,218,223,229,234,240,245,251,256,261],{"type":67,"tag":151,"props":214,"children":215},{"style":158},[216],{"type":78,"value":217},"export",{"type":67,"tag":151,"props":219,"children":220},{"style":158},[221],{"type":78,"value":222}," default",{"type":67,"tag":151,"props":224,"children":226},{"style":225},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[227],{"type":78,"value":228}," eventHandler",{"type":67,"tag":151,"props":230,"children":231},{"style":170},[232],{"type":78,"value":233},"(",{"type":67,"tag":151,"props":235,"children":237},{"style":236},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[238],{"type":78,"value":239},"async",{"type":67,"tag":151,"props":241,"children":242},{"style":164},[243],{"type":78,"value":244}," (",{"type":67,"tag":151,"props":246,"children":248},{"style":247},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[249],{"type":78,"value":250},"event",{"type":67,"tag":151,"props":252,"children":253},{"style":164},[254],{"type":78,"value":255},")",{"type":67,"tag":151,"props":257,"children":258},{"style":236},[259],{"type":78,"value":260}," =>",{"type":67,"tag":151,"props":262,"children":263},{"style":164},[264],{"type":78,"value":265}," {\n",{"type":67,"tag":151,"props":267,"children":269},{"class":153,"line":268},4,[270,275,280,285,290,294,299,303],{"type":67,"tag":151,"props":271,"children":272},{"style":236},[273],{"type":78,"value":274}," const",{"type":67,"tag":151,"props":276,"children":277},{"style":170},[278],{"type":78,"value":279}," client",{"type":67,"tag":151,"props":281,"children":282},{"style":164},[283],{"type":78,"value":284}," =",{"type":67,"tag":151,"props":286,"children":287},{"style":158},[288],{"type":78,"value":289}," await",{"type":67,"tag":151,"props":291,"children":292},{"style":225},[293],{"type":78,"value":173},{"type":67,"tag":151,"props":295,"children":297},{"style":296},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[298],{"type":78,"value":233},{"type":67,"tag":151,"props":300,"children":301},{"style":170},[302],{"type":78,"value":250},{"type":67,"tag":151,"props":304,"children":305},{"style":296},[306],{"type":78,"value":307},")\n",{"type":67,"tag":151,"props":309,"children":311},{"class":153,"line":310},5,[312],{"type":67,"tag":151,"props":313,"children":314},{"emptyLinePlaceholder":205},[315],{"type":78,"value":208},{"type":67,"tag":151,"props":317,"children":319},{"class":153,"line":318},6,[320,324,328,333,337,341,345,349,353,358,362,367,372,376,380,384,389,393,397,402,406],{"type":67,"tag":151,"props":321,"children":322},{"style":236},[323],{"type":78,"value":274},{"type":67,"tag":151,"props":325,"children":326},{"style":164},[327],{"type":78,"value":167},{"type":67,"tag":151,"props":329,"children":330},{"style":170},[331],{"type":78,"value":332}," data",{"type":67,"tag":151,"props":334,"children":335},{"style":164},[336],{"type":78,"value":178},{"type":67,"tag":151,"props":338,"children":339},{"style":164},[340],{"type":78,"value":284},{"type":67,"tag":151,"props":342,"children":343},{"style":158},[344],{"type":78,"value":289},{"type":67,"tag":151,"props":346,"children":347},{"style":170},[348],{"type":78,"value":279},{"type":67,"tag":151,"props":350,"children":351},{"style":164},[352],{"type":78,"value":110},{"type":67,"tag":151,"props":354,"children":355},{"style":225},[356],{"type":78,"value":357},"from",{"type":67,"tag":151,"props":359,"children":360},{"style":296},[361],{"type":78,"value":233},{"type":67,"tag":151,"props":363,"children":364},{"style":164},[365],{"type":78,"value":366},"'",{"type":67,"tag":151,"props":368,"children":369},{"style":191},[370],{"type":78,"value":371},"libraries",{"type":67,"tag":151,"props":373,"children":374},{"style":164},[375],{"type":78,"value":366},{"type":67,"tag":151,"props":377,"children":378},{"style":296},[379],{"type":78,"value":255},{"type":67,"tag":151,"props":381,"children":382},{"style":164},[383],{"type":78,"value":110},{"type":67,"tag":151,"props":385,"children":386},{"style":225},[387],{"type":78,"value":388},"select",{"type":67,"tag":151,"props":390,"children":391},{"style":296},[392],{"type":78,"value":233},{"type":67,"tag":151,"props":394,"children":395},{"style":164},[396],{"type":78,"value":366},{"type":67,"tag":151,"props":398,"children":399},{"style":191},[400],{"type":78,"value":401},"*",{"type":67,"tag":151,"props":403,"children":404},{"style":164},[405],{"type":78,"value":366},{"type":67,"tag":151,"props":407,"children":408},{"style":296},[409],{"type":78,"value":307},{"type":67,"tag":151,"props":411,"children":413},{"class":153,"line":412},7,[414],{"type":67,"tag":151,"props":415,"children":416},{"emptyLinePlaceholder":205},[417],{"type":78,"value":208},{"type":67,"tag":151,"props":419,"children":421},{"class":153,"line":420},8,[422,427,431,436,441,445],{"type":67,"tag":151,"props":423,"children":424},{"style":158},[425],{"type":78,"value":426}," return",{"type":67,"tag":151,"props":428,"children":429},{"style":164},[430],{"type":78,"value":167},{"type":67,"tag":151,"props":432,"children":433},{"style":296},[434],{"type":78,"value":435}," libraries",{"type":67,"tag":151,"props":437,"children":438},{"style":164},[439],{"type":78,"value":440},":",{"type":67,"tag":151,"props":442,"children":443},{"style":170},[444],{"type":78,"value":332},{"type":67,"tag":151,"props":446,"children":447},{"style":164},[448],{"type":78,"value":449}," }\n",{"type":67,"tag":151,"props":451,"children":453},{"class":153,"line":452},9,[454,459],{"type":67,"tag":151,"props":455,"children":456},{"style":164},[457],{"type":78,"value":458},"}",{"type":67,"tag":151,"props":460,"children":461},{"style":170},[462],{"type":78,"value":307},{"type":67,"tag":74,"props":464,"children":465},{},[466],{"type":78,"value":467},"Then call your API route from any vue file:",{"type":67,"tag":140,"props":469,"children":472},{"className":142,"code":470,"filename":471,"language":145,"meta":61,"style":61},"const fetchLibrary = async () => {\n const { libraries } = await $fetch('/api/libraries')\n}\n","pages/index.vue",[473],{"type":67,"tag":117,"props":474,"children":475},{"__ignoreMap":61},[476,512,565],{"type":67,"tag":151,"props":477,"children":478},{"class":153,"line":154},[479,484,489,494,499,504,508],{"type":67,"tag":151,"props":480,"children":481},{"style":236},[482],{"type":78,"value":483},"const",{"type":67,"tag":151,"props":485,"children":486},{"style":170},[487],{"type":78,"value":488}," fetchLibrary ",{"type":67,"tag":151,"props":490,"children":491},{"style":164},[492],{"type":78,"value":493},"=",{"type":67,"tag":151,"props":495,"children":496},{"style":236},[497],{"type":78,"value":498}," async",{"type":67,"tag":151,"props":500,"children":501},{"style":164},[502],{"type":78,"value":503}," ()",{"type":67,"tag":151,"props":505,"children":506},{"style":236},[507],{"type":78,"value":260},{"type":67,"tag":151,"props":509,"children":510},{"style":164},[511],{"type":78,"value":265},{"type":67,"tag":151,"props":513,"children":514},{"class":153,"line":201},[515,519,523,527,531,535,539,544,548,552,557,561],{"type":67,"tag":151,"props":516,"children":517},{"style":236},[518],{"type":78,"value":274},{"type":67,"tag":151,"props":520,"children":521},{"style":164},[522],{"type":78,"value":167},{"type":67,"tag":151,"props":524,"children":525},{"style":170},[526],{"type":78,"value":435},{"type":67,"tag":151,"props":528,"children":529},{"style":164},[530],{"type":78,"value":178},{"type":67,"tag":151,"props":532,"children":533},{"style":164},[534],{"type":78,"value":284},{"type":67,"tag":151,"props":536,"children":537},{"style":158},[538],{"type":78,"value":289},{"type":67,"tag":151,"props":540,"children":541},{"style":225},[542],{"type":78,"value":543}," $fetch",{"type":67,"tag":151,"props":545,"children":546},{"style":296},[547],{"type":78,"value":233},{"type":67,"tag":151,"props":549,"children":550},{"style":164},[551],{"type":78,"value":366},{"type":67,"tag":151,"props":553,"children":554},{"style":191},[555],{"type":78,"value":556},"/api/libraries",{"type":67,"tag":151,"props":558,"children":559},{"style":164},[560],{"type":78,"value":366},{"type":67,"tag":151,"props":562,"children":563},{"style":296},[564],{"type":78,"value":307},{"type":67,"tag":151,"props":566,"children":567},{"class":153,"line":211},[568],{"type":67,"tag":151,"props":569,"children":570},{"style":164},[571],{"type":78,"value":572},"}\n",{"type":67,"tag":74,"props":574,"children":575},{},[576,578,585],{"type":78,"value":577},"Be careful, if you want to call this route on SSR, please read this ",{"type":67,"tag":81,"props":579,"children":582},{"href":580,"rel":581},"https://nuxt.com/docs/getting-started/data-fetching#isomorphic-fetch-and-fetch",[85],[583],{"type":78,"value":584},"section",{"type":78,"value":586},", you must send your browser cookies including your supabase token.",{"type":67,"tag":140,"props":588,"children":590},{"className":142,"code":589,"filename":471,"language":145,"meta":61,"style":61},"const { data: { libraries }} = await useFetch('/api/libraries', {\n headers: useRequestHeaders(['cookie'])\n})\n",[591],{"type":67,"tag":117,"props":592,"children":593},{"__ignoreMap":61},[594,665,705],{"type":67,"tag":151,"props":595,"children":596},{"class":153,"line":154},[597,601,605,609,613,617,622,627,631,635,640,644,648,652,656,661],{"type":67,"tag":151,"props":598,"children":599},{"style":236},[600],{"type":78,"value":483},{"type":67,"tag":151,"props":602,"children":603},{"style":164},[604],{"type":78,"value":167},{"type":67,"tag":151,"props":606,"children":607},{"style":296},[608],{"type":78,"value":332},{"type":67,"tag":151,"props":610,"children":611},{"style":164},[612],{"type":78,"value":440},{"type":67,"tag":151,"props":614,"children":615},{"style":164},[616],{"type":78,"value":167},{"type":67,"tag":151,"props":618,"children":619},{"style":170},[620],{"type":78,"value":621}," libraries ",{"type":67,"tag":151,"props":623,"children":624},{"style":164},[625],{"type":78,"value":626},"}}",{"type":67,"tag":151,"props":628,"children":629},{"style":164},[630],{"type":78,"value":284},{"type":67,"tag":151,"props":632,"children":633},{"style":158},[634],{"type":78,"value":289},{"type":67,"tag":151,"props":636,"children":637},{"style":225},[638],{"type":78,"value":639}," useFetch",{"type":67,"tag":151,"props":641,"children":642},{"style":170},[643],{"type":78,"value":233},{"type":67,"tag":151,"props":645,"children":646},{"style":164},[647],{"type":78,"value":366},{"type":67,"tag":151,"props":649,"children":650},{"style":191},[651],{"type":78,"value":556},{"type":67,"tag":151,"props":653,"children":654},{"style":164},[655],{"type":78,"value":366},{"type":67,"tag":151,"props":657,"children":658},{"style":164},[659],{"type":78,"value":660},",",{"type":67,"tag":151,"props":662,"children":663},{"style":164},[664],{"type":78,"value":265},{"type":67,"tag":151,"props":666,"children":667},{"class":153,"line":201},[668,673,677,682,687,691,696,700],{"type":67,"tag":151,"props":669,"children":670},{"style":296},[671],{"type":78,"value":672}," headers",{"type":67,"tag":151,"props":674,"children":675},{"style":164},[676],{"type":78,"value":440},{"type":67,"tag":151,"props":678,"children":679},{"style":225},[680],{"type":78,"value":681}," useRequestHeaders",{"type":67,"tag":151,"props":683,"children":684},{"style":170},[685],{"type":78,"value":686},"([",{"type":67,"tag":151,"props":688,"children":689},{"style":164},[690],{"type":78,"value":366},{"type":67,"tag":151,"props":692,"children":693},{"style":191},[694],{"type":78,"value":695},"cookie",{"type":67,"tag":151,"props":697,"children":698},{"style":164},[699],{"type":78,"value":366},{"type":67,"tag":151,"props":701,"children":702},{"style":170},[703],{"type":78,"value":704},"])\n",{"type":67,"tag":151,"props":706,"children":707},{"class":153,"line":211},[708,712],{"type":67,"tag":151,"props":709,"children":710},{"style":164},[711],{"type":78,"value":458},{"type":67,"tag":151,"props":713,"children":714},{"style":170},[715],{"type":78,"value":307},{"type":67,"tag":717,"props":718,"children":719},"style",{},[720],{"type":78,"value":721},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":61,"searchDepth":201,"depth":201,"links":723},[],"markdown","content:4.usage:services:1.serverSupabaseClient.md","content","4.usage/services/1.serverSupabaseClient.md","4.usage/services/1.serverSupabaseClient","md",[731,733],{"_path":28,"title":27,"description":732},"Auto import and use your Supabase user with the useSupabaseUser composable",{"_path":38,"title":734,"description":735},"serverServiceRole","Make requests with super admin rights to the Supabase API with the serverSupabaseServiceRole service",1725013745486] \ No newline at end of file diff --git a/usage/services/serversupabaseclient/index.html b/usage/services/serversupabaseclient/index.html index 9c2d3efc3..549c4debd 100644 --- a/usage/services/serversupabaseclient/index.html +++ b/usage/services/serversupabaseclient/index.html @@ -61,49 +61,49 @@ - - - - - - - + + + + + + + - - - - - - - - - - - - - - + + + + + + + + + + + + + + - + - - - - - - - + + + + + + + - - + + - + -
mobile favicon
Services

serverSupabaseClient

Make requests to the Supabase API on server side with the serverSupabaseClient service
This section assumes you're familiar with Nitro, the server engine powered by Nuxt.

This function is working similary as the useSupabaseClient composable but is designed to be used in server routes.

Define your server route and just import the serverSupabaseClient from #supabase/server. Be careful, serverSupabaseClient is returning a promise.

server/api/libraries.ts
import { serverSupabaseClient } from '#supabase/server'
+
mobile favicon
Services

serverSupabaseClient

Make requests to the Supabase API on server side with the serverSupabaseClient service
This section assumes you're familiar with Nitro, the server engine powered by Nuxt.

This function is working similary as the useSupabaseClient composable but is designed to be used in server routes.

Define your server route and just import the serverSupabaseClient from #supabase/server. Be careful, serverSupabaseClient is returning a promise.

server/api/libraries.ts
import { serverSupabaseClient } from '#supabase/server'
 
 export default eventHandler(async (event) => {
   const client = await serverSupabaseClient(event)
@@ -119,5 +119,5 @@
   headers: useRequestHeaders(['cookie'])
 })
 

Made with Nuxt Studio
- - \ No newline at end of file + + \ No newline at end of file diff --git a/usage/services/serversupabaseservicerole/_payload.json b/usage/services/serversupabaseservicerole/_payload.json index 00eaef3d9..26f70f485 100644 --- a/usage/services/serversupabaseservicerole/_payload.json +++ b/usage/services/serversupabaseservicerole/_payload.json @@ -1 +1 @@ -[{"data":1,"prerenderedAt":613},["ShallowReactive",2],{"navigation":3,"/usage/services/serversupabaseservicerole":58,"/usage/services/serversupabaseservicerole-surround":608},[4,8,12,46,50,54],{"title":5,"_path":6,"icon":7},"Get Started","/get-started","i-heroicons-rocket-launch",{"title":9,"_path":10,"icon":11},"Authentication","/authentication","i-heroicons-lock-closed",{"title":13,"_path":14,"children":15,"icon":45},"Usage","/usage",[16,29],{"title":17,"_path":18,"children":19},"Vue composables","/usage/composables",[20,23,26],{"title":21,"_path":22},"useSupabaseClient","/usage/composables/usesupabaseclient",{"title":24,"_path":25},"useSupabaseSession","/usage/composables/usesupabasesession",{"title":27,"_path":28},"useSupabaseUser","/usage/composables/usesupabaseuser",{"title":30,"_path":31,"children":32},"Server services","/usage/services",[33,36,39,42],{"title":34,"_path":35},"serverSupabaseClient","/usage/services/serversupabaseclient",{"title":37,"_path":38},"serverSupabaseServiceRole","/usage/services/serversupabaseservicerole",{"title":40,"_path":41},"serverSupabaseSession","/usage/services/serversupabasesession",{"title":43,"_path":44},"serverSupabaseUser","/usage/services/serversupabaseuser","heroicons:book-open",{"title":47,"_path":48,"icon":49},"Demo","/demo","i-heroicons-computer-desktop-20-solid",{"title":51,"_path":52,"icon":53},"Changelog","/changelog","i-heroicons-bookmark",{"title":55,"_path":56,"icon":57},"Roadmap","/roadmap","i-heroicons-map",{"_path":38,"_dir":59,"_draft":60,"_partial":60,"_locale":61,"title":62,"description":63,"navigation":64,"body":65,"_type":602,"_id":603,"_source":604,"_file":605,"_stem":606,"_extension":607},"services",false,"","serverServiceRole","Make requests with super admin rights to the Supabase API with the serverSupabaseServiceRole service",{"title":37},{"type":66,"children":67,"toc":600},"root",[68,93,107,127,161,180,484,489,594],{"type":69,"tag":70,"props":71,"children":74},"element","callout",{"color":72,"icon":73},"amber","i-heroicons-exclamation-triangle-20-solid",[75],{"type":69,"tag":76,"props":77,"children":78},"p",{},[79,82,91],{"type":80,"value":81},"text","This section assumes you're familiar with ",{"type":69,"tag":83,"props":84,"children":88},"a",{"href":85,"rel":86},"https://v3.nuxtjs.org/guide/concepts/server-engine",[87],"nofollow",[89],{"type":80,"value":90},"Nitro",{"type":80,"value":92},", the server engine powered by Nuxt.",{"type":69,"tag":76,"props":94,"children":95},{},[96,98,105],{"type":80,"value":97},"This function is designed to work only in ",{"type":69,"tag":83,"props":99,"children":102},{"href":100,"rel":101},"https://nuxt.com/docs/guide/directory-structure/server#server-routes",[87],[103],{"type":80,"value":104},"server routes",{"type":80,"value":106},", there is no vue composable equivalent.",{"type":69,"tag":76,"props":108,"children":109},{},[110,112,116,118,125],{"type":80,"value":111},"It works similary as the ",{"type":69,"tag":83,"props":113,"children":114},{"href":35},[115],{"type":80,"value":34},{"type":80,"value":117}," but it provides a client with super admin rights that can bypass your ",{"type":69,"tag":83,"props":119,"children":122},{"href":120,"rel":121},"https://supabase.com/docs/guides/auth/row-level-security",[87],[123],{"type":80,"value":124},"Row Level Security",{"type":80,"value":126},".",{"type":69,"tag":128,"props":129,"children":130},"blockquote",{},[131],{"type":69,"tag":76,"props":132,"children":133},{},[134,136,143,145,151,153,160],{"type":80,"value":135},"The client is initialized with the ",{"type":69,"tag":137,"props":138,"children":140},"code",{"className":139},[],[141],{"type":80,"value":142},"SUPABASE_SERVICE_KEY",{"type":80,"value":144}," you must have in your ",{"type":69,"tag":137,"props":146,"children":148},{"className":147},[],[149],{"type":80,"value":150},".env",{"type":80,"value":152}," file. Checkout the doc if you want to know more about ",{"type":69,"tag":83,"props":154,"children":157},{"href":155,"rel":156},"https://supabase.com/docs/learn/auth-deep-dive/auth-deep-dive-jwts#jwts-in-supabase",[87],[158],{"type":80,"value":159},"Supabase keys",{"type":80,"value":126},{"type":69,"tag":76,"props":162,"children":163},{},[164,166,171,173,179],{"type":80,"value":165},"Define your server route and just import the ",{"type":69,"tag":137,"props":167,"children":169},{"className":168},[],[170],{"type":80,"value":37},{"type":80,"value":172}," from ",{"type":69,"tag":137,"props":174,"children":176},{"className":175},[],[177],{"type":80,"value":178},"#supabase/server",{"type":80,"value":126},{"type":69,"tag":181,"props":182,"children":187},"pre",{"className":183,"code":184,"filename":185,"language":186,"meta":61,"style":61},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { serverSupabaseServiceRole } from '#supabase/server'\n\nexport default eventHandler(async (event) => {\n const client = serverSupabaseServiceRole(event)\n\n const { data } = await client.from('rls-protected-table').select()\n\n return { sensitiveData: data }\n})\n","server/api/bypass-rls.ts","ts",[188],{"type":69,"tag":137,"props":189,"children":190},{"__ignoreMap":61},[191,240,250,307,344,352,431,439,471],{"type":69,"tag":192,"props":193,"children":196},"span",{"class":194,"line":195},"line",1,[197,203,209,215,220,225,230,235],{"type":69,"tag":192,"props":198,"children":200},{"style":199},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[201],{"type":80,"value":202},"import",{"type":69,"tag":192,"props":204,"children":206},{"style":205},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[207],{"type":80,"value":208}," {",{"type":69,"tag":192,"props":210,"children":212},{"style":211},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[213],{"type":80,"value":214}," serverSupabaseServiceRole",{"type":69,"tag":192,"props":216,"children":217},{"style":205},[218],{"type":80,"value":219}," }",{"type":69,"tag":192,"props":221,"children":222},{"style":199},[223],{"type":80,"value":224}," from",{"type":69,"tag":192,"props":226,"children":227},{"style":205},[228],{"type":80,"value":229}," '",{"type":69,"tag":192,"props":231,"children":233},{"style":232},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[234],{"type":80,"value":178},{"type":69,"tag":192,"props":236,"children":237},{"style":205},[238],{"type":80,"value":239},"'\n",{"type":69,"tag":192,"props":241,"children":243},{"class":194,"line":242},2,[244],{"type":69,"tag":192,"props":245,"children":247},{"emptyLinePlaceholder":246},true,[248],{"type":80,"value":249},"\n",{"type":69,"tag":192,"props":251,"children":253},{"class":194,"line":252},3,[254,259,264,270,275,281,286,292,297,302],{"type":69,"tag":192,"props":255,"children":256},{"style":199},[257],{"type":80,"value":258},"export",{"type":69,"tag":192,"props":260,"children":261},{"style":199},[262],{"type":80,"value":263}," default",{"type":69,"tag":192,"props":265,"children":267},{"style":266},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[268],{"type":80,"value":269}," eventHandler",{"type":69,"tag":192,"props":271,"children":272},{"style":211},[273],{"type":80,"value":274},"(",{"type":69,"tag":192,"props":276,"children":278},{"style":277},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[279],{"type":80,"value":280},"async",{"type":69,"tag":192,"props":282,"children":283},{"style":205},[284],{"type":80,"value":285}," (",{"type":69,"tag":192,"props":287,"children":289},{"style":288},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[290],{"type":80,"value":291},"event",{"type":69,"tag":192,"props":293,"children":294},{"style":205},[295],{"type":80,"value":296},")",{"type":69,"tag":192,"props":298,"children":299},{"style":277},[300],{"type":80,"value":301}," =>",{"type":69,"tag":192,"props":303,"children":304},{"style":205},[305],{"type":80,"value":306}," {\n",{"type":69,"tag":192,"props":308,"children":310},{"class":194,"line":309},4,[311,316,321,326,330,335,339],{"type":69,"tag":192,"props":312,"children":313},{"style":277},[314],{"type":80,"value":315}," const",{"type":69,"tag":192,"props":317,"children":318},{"style":211},[319],{"type":80,"value":320}," client",{"type":69,"tag":192,"props":322,"children":323},{"style":205},[324],{"type":80,"value":325}," =",{"type":69,"tag":192,"props":327,"children":328},{"style":266},[329],{"type":80,"value":214},{"type":69,"tag":192,"props":331,"children":333},{"style":332},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[334],{"type":80,"value":274},{"type":69,"tag":192,"props":336,"children":337},{"style":211},[338],{"type":80,"value":291},{"type":69,"tag":192,"props":340,"children":341},{"style":332},[342],{"type":80,"value":343},")\n",{"type":69,"tag":192,"props":345,"children":347},{"class":194,"line":346},5,[348],{"type":69,"tag":192,"props":349,"children":350},{"emptyLinePlaceholder":246},[351],{"type":80,"value":249},{"type":69,"tag":192,"props":353,"children":355},{"class":194,"line":354},6,[356,360,364,369,373,377,382,386,390,395,399,404,409,413,417,421,426],{"type":69,"tag":192,"props":357,"children":358},{"style":277},[359],{"type":80,"value":315},{"type":69,"tag":192,"props":361,"children":362},{"style":205},[363],{"type":80,"value":208},{"type":69,"tag":192,"props":365,"children":366},{"style":211},[367],{"type":80,"value":368}," data",{"type":69,"tag":192,"props":370,"children":371},{"style":205},[372],{"type":80,"value":219},{"type":69,"tag":192,"props":374,"children":375},{"style":205},[376],{"type":80,"value":325},{"type":69,"tag":192,"props":378,"children":379},{"style":199},[380],{"type":80,"value":381}," await",{"type":69,"tag":192,"props":383,"children":384},{"style":211},[385],{"type":80,"value":320},{"type":69,"tag":192,"props":387,"children":388},{"style":205},[389],{"type":80,"value":126},{"type":69,"tag":192,"props":391,"children":392},{"style":266},[393],{"type":80,"value":394},"from",{"type":69,"tag":192,"props":396,"children":397},{"style":332},[398],{"type":80,"value":274},{"type":69,"tag":192,"props":400,"children":401},{"style":205},[402],{"type":80,"value":403},"'",{"type":69,"tag":192,"props":405,"children":406},{"style":232},[407],{"type":80,"value":408},"rls-protected-table",{"type":69,"tag":192,"props":410,"children":411},{"style":205},[412],{"type":80,"value":403},{"type":69,"tag":192,"props":414,"children":415},{"style":332},[416],{"type":80,"value":296},{"type":69,"tag":192,"props":418,"children":419},{"style":205},[420],{"type":80,"value":126},{"type":69,"tag":192,"props":422,"children":423},{"style":266},[424],{"type":80,"value":425},"select",{"type":69,"tag":192,"props":427,"children":428},{"style":332},[429],{"type":80,"value":430},"()\n",{"type":69,"tag":192,"props":432,"children":434},{"class":194,"line":433},7,[435],{"type":69,"tag":192,"props":436,"children":437},{"emptyLinePlaceholder":246},[438],{"type":80,"value":249},{"type":69,"tag":192,"props":440,"children":442},{"class":194,"line":441},8,[443,448,452,457,462,466],{"type":69,"tag":192,"props":444,"children":445},{"style":199},[446],{"type":80,"value":447}," return",{"type":69,"tag":192,"props":449,"children":450},{"style":205},[451],{"type":80,"value":208},{"type":69,"tag":192,"props":453,"children":454},{"style":332},[455],{"type":80,"value":456}," sensitiveData",{"type":69,"tag":192,"props":458,"children":459},{"style":205},[460],{"type":80,"value":461},":",{"type":69,"tag":192,"props":463,"children":464},{"style":211},[465],{"type":80,"value":368},{"type":69,"tag":192,"props":467,"children":468},{"style":205},[469],{"type":80,"value":470}," }\n",{"type":69,"tag":192,"props":472,"children":474},{"class":194,"line":473},9,[475,480],{"type":69,"tag":192,"props":476,"children":477},{"style":205},[478],{"type":80,"value":479},"}",{"type":69,"tag":192,"props":481,"children":482},{"style":211},[483],{"type":80,"value":343},{"type":69,"tag":76,"props":485,"children":486},{},[487],{"type":80,"value":488},"Then call your API route from any vue file:",{"type":69,"tag":181,"props":490,"children":493},{"className":183,"code":491,"filename":492,"language":186,"meta":61,"style":61},"const fetchSensitiveData = async () => {\n const { sensitiveData } = await useFetch('/api/bypass-rls')\n}\n","pages/index.vue",[494],{"type":69,"tag":137,"props":495,"children":496},{"__ignoreMap":61},[497,533,586],{"type":69,"tag":192,"props":498,"children":499},{"class":194,"line":195},[500,505,510,515,520,525,529],{"type":69,"tag":192,"props":501,"children":502},{"style":277},[503],{"type":80,"value":504},"const",{"type":69,"tag":192,"props":506,"children":507},{"style":211},[508],{"type":80,"value":509}," fetchSensitiveData ",{"type":69,"tag":192,"props":511,"children":512},{"style":205},[513],{"type":80,"value":514},"=",{"type":69,"tag":192,"props":516,"children":517},{"style":277},[518],{"type":80,"value":519}," async",{"type":69,"tag":192,"props":521,"children":522},{"style":205},[523],{"type":80,"value":524}," ()",{"type":69,"tag":192,"props":526,"children":527},{"style":277},[528],{"type":80,"value":301},{"type":69,"tag":192,"props":530,"children":531},{"style":205},[532],{"type":80,"value":306},{"type":69,"tag":192,"props":534,"children":535},{"class":194,"line":242},[536,540,544,548,552,556,560,565,569,573,578,582],{"type":69,"tag":192,"props":537,"children":538},{"style":277},[539],{"type":80,"value":315},{"type":69,"tag":192,"props":541,"children":542},{"style":205},[543],{"type":80,"value":208},{"type":69,"tag":192,"props":545,"children":546},{"style":211},[547],{"type":80,"value":456},{"type":69,"tag":192,"props":549,"children":550},{"style":205},[551],{"type":80,"value":219},{"type":69,"tag":192,"props":553,"children":554},{"style":205},[555],{"type":80,"value":325},{"type":69,"tag":192,"props":557,"children":558},{"style":199},[559],{"type":80,"value":381},{"type":69,"tag":192,"props":561,"children":562},{"style":266},[563],{"type":80,"value":564}," useFetch",{"type":69,"tag":192,"props":566,"children":567},{"style":332},[568],{"type":80,"value":274},{"type":69,"tag":192,"props":570,"children":571},{"style":205},[572],{"type":80,"value":403},{"type":69,"tag":192,"props":574,"children":575},{"style":232},[576],{"type":80,"value":577},"/api/bypass-rls",{"type":69,"tag":192,"props":579,"children":580},{"style":205},[581],{"type":80,"value":403},{"type":69,"tag":192,"props":583,"children":584},{"style":332},[585],{"type":80,"value":343},{"type":69,"tag":192,"props":587,"children":588},{"class":194,"line":252},[589],{"type":69,"tag":192,"props":590,"children":591},{"style":205},[592],{"type":80,"value":593},"}\n",{"type":69,"tag":595,"props":596,"children":597},"style",{},[598],{"type":80,"value":599},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":61,"searchDepth":242,"depth":242,"links":601},[],"markdown","content:4.usage:services:2.serverSupabaseServiceRole.md","content","4.usage/services/2.serverSupabaseServiceRole.md","4.usage/services/2.serverSupabaseServiceRole","md",[609,611],{"_path":35,"title":34,"description":610},"Make requests to the Supabase API on server side with the serverSupabaseClient service",{"_path":41,"title":40,"description":612},"Get your Supabase user's session from serverside with the serverSupabaseUser service",1725006469579] \ No newline at end of file +[{"data":1,"prerenderedAt":613},["ShallowReactive",2],{"navigation":3,"/usage/services/serversupabaseservicerole":58,"/usage/services/serversupabaseservicerole-surround":608},[4,8,12,46,50,54],{"title":5,"_path":6,"icon":7},"Get Started","/get-started","i-heroicons-rocket-launch",{"title":9,"_path":10,"icon":11},"Authentication","/authentication","i-heroicons-lock-closed",{"title":13,"_path":14,"children":15,"icon":45},"Usage","/usage",[16,29],{"title":17,"_path":18,"children":19},"Vue composables","/usage/composables",[20,23,26],{"title":21,"_path":22},"useSupabaseClient","/usage/composables/usesupabaseclient",{"title":24,"_path":25},"useSupabaseSession","/usage/composables/usesupabasesession",{"title":27,"_path":28},"useSupabaseUser","/usage/composables/usesupabaseuser",{"title":30,"_path":31,"children":32},"Server services","/usage/services",[33,36,39,42],{"title":34,"_path":35},"serverSupabaseClient","/usage/services/serversupabaseclient",{"title":37,"_path":38},"serverSupabaseServiceRole","/usage/services/serversupabaseservicerole",{"title":40,"_path":41},"serverSupabaseSession","/usage/services/serversupabasesession",{"title":43,"_path":44},"serverSupabaseUser","/usage/services/serversupabaseuser","heroicons:book-open",{"title":47,"_path":48,"icon":49},"Demo","/demo","i-heroicons-computer-desktop-20-solid",{"title":51,"_path":52,"icon":53},"Changelog","/changelog","i-heroicons-bookmark",{"title":55,"_path":56,"icon":57},"Roadmap","/roadmap","i-heroicons-map",{"_path":38,"_dir":59,"_draft":60,"_partial":60,"_locale":61,"title":62,"description":63,"navigation":64,"body":65,"_type":602,"_id":603,"_source":604,"_file":605,"_stem":606,"_extension":607},"services",false,"","serverServiceRole","Make requests with super admin rights to the Supabase API with the serverSupabaseServiceRole service",{"title":37},{"type":66,"children":67,"toc":600},"root",[68,93,107,127,161,180,484,489,594],{"type":69,"tag":70,"props":71,"children":74},"element","callout",{"color":72,"icon":73},"amber","i-heroicons-exclamation-triangle-20-solid",[75],{"type":69,"tag":76,"props":77,"children":78},"p",{},[79,82,91],{"type":80,"value":81},"text","This section assumes you're familiar with ",{"type":69,"tag":83,"props":84,"children":88},"a",{"href":85,"rel":86},"https://v3.nuxtjs.org/guide/concepts/server-engine",[87],"nofollow",[89],{"type":80,"value":90},"Nitro",{"type":80,"value":92},", the server engine powered by Nuxt.",{"type":69,"tag":76,"props":94,"children":95},{},[96,98,105],{"type":80,"value":97},"This function is designed to work only in ",{"type":69,"tag":83,"props":99,"children":102},{"href":100,"rel":101},"https://nuxt.com/docs/guide/directory-structure/server#server-routes",[87],[103],{"type":80,"value":104},"server routes",{"type":80,"value":106},", there is no vue composable equivalent.",{"type":69,"tag":76,"props":108,"children":109},{},[110,112,116,118,125],{"type":80,"value":111},"It works similary as the ",{"type":69,"tag":83,"props":113,"children":114},{"href":35},[115],{"type":80,"value":34},{"type":80,"value":117}," but it provides a client with super admin rights that can bypass your ",{"type":69,"tag":83,"props":119,"children":122},{"href":120,"rel":121},"https://supabase.com/docs/guides/auth/row-level-security",[87],[123],{"type":80,"value":124},"Row Level Security",{"type":80,"value":126},".",{"type":69,"tag":128,"props":129,"children":130},"blockquote",{},[131],{"type":69,"tag":76,"props":132,"children":133},{},[134,136,143,145,151,153,160],{"type":80,"value":135},"The client is initialized with the ",{"type":69,"tag":137,"props":138,"children":140},"code",{"className":139},[],[141],{"type":80,"value":142},"SUPABASE_SERVICE_KEY",{"type":80,"value":144}," you must have in your ",{"type":69,"tag":137,"props":146,"children":148},{"className":147},[],[149],{"type":80,"value":150},".env",{"type":80,"value":152}," file. Checkout the doc if you want to know more about ",{"type":69,"tag":83,"props":154,"children":157},{"href":155,"rel":156},"https://supabase.com/docs/learn/auth-deep-dive/auth-deep-dive-jwts#jwts-in-supabase",[87],[158],{"type":80,"value":159},"Supabase keys",{"type":80,"value":126},{"type":69,"tag":76,"props":162,"children":163},{},[164,166,171,173,179],{"type":80,"value":165},"Define your server route and just import the ",{"type":69,"tag":137,"props":167,"children":169},{"className":168},[],[170],{"type":80,"value":37},{"type":80,"value":172}," from ",{"type":69,"tag":137,"props":174,"children":176},{"className":175},[],[177],{"type":80,"value":178},"#supabase/server",{"type":80,"value":126},{"type":69,"tag":181,"props":182,"children":187},"pre",{"className":183,"code":184,"filename":185,"language":186,"meta":61,"style":61},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { serverSupabaseServiceRole } from '#supabase/server'\n\nexport default eventHandler(async (event) => {\n const client = serverSupabaseServiceRole(event)\n\n const { data } = await client.from('rls-protected-table').select()\n\n return { sensitiveData: data }\n})\n","server/api/bypass-rls.ts","ts",[188],{"type":69,"tag":137,"props":189,"children":190},{"__ignoreMap":61},[191,240,250,307,344,352,431,439,471],{"type":69,"tag":192,"props":193,"children":196},"span",{"class":194,"line":195},"line",1,[197,203,209,215,220,225,230,235],{"type":69,"tag":192,"props":198,"children":200},{"style":199},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[201],{"type":80,"value":202},"import",{"type":69,"tag":192,"props":204,"children":206},{"style":205},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[207],{"type":80,"value":208}," {",{"type":69,"tag":192,"props":210,"children":212},{"style":211},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[213],{"type":80,"value":214}," serverSupabaseServiceRole",{"type":69,"tag":192,"props":216,"children":217},{"style":205},[218],{"type":80,"value":219}," }",{"type":69,"tag":192,"props":221,"children":222},{"style":199},[223],{"type":80,"value":224}," from",{"type":69,"tag":192,"props":226,"children":227},{"style":205},[228],{"type":80,"value":229}," '",{"type":69,"tag":192,"props":231,"children":233},{"style":232},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[234],{"type":80,"value":178},{"type":69,"tag":192,"props":236,"children":237},{"style":205},[238],{"type":80,"value":239},"'\n",{"type":69,"tag":192,"props":241,"children":243},{"class":194,"line":242},2,[244],{"type":69,"tag":192,"props":245,"children":247},{"emptyLinePlaceholder":246},true,[248],{"type":80,"value":249},"\n",{"type":69,"tag":192,"props":251,"children":253},{"class":194,"line":252},3,[254,259,264,270,275,281,286,292,297,302],{"type":69,"tag":192,"props":255,"children":256},{"style":199},[257],{"type":80,"value":258},"export",{"type":69,"tag":192,"props":260,"children":261},{"style":199},[262],{"type":80,"value":263}," default",{"type":69,"tag":192,"props":265,"children":267},{"style":266},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[268],{"type":80,"value":269}," eventHandler",{"type":69,"tag":192,"props":271,"children":272},{"style":211},[273],{"type":80,"value":274},"(",{"type":69,"tag":192,"props":276,"children":278},{"style":277},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[279],{"type":80,"value":280},"async",{"type":69,"tag":192,"props":282,"children":283},{"style":205},[284],{"type":80,"value":285}," (",{"type":69,"tag":192,"props":287,"children":289},{"style":288},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[290],{"type":80,"value":291},"event",{"type":69,"tag":192,"props":293,"children":294},{"style":205},[295],{"type":80,"value":296},")",{"type":69,"tag":192,"props":298,"children":299},{"style":277},[300],{"type":80,"value":301}," =>",{"type":69,"tag":192,"props":303,"children":304},{"style":205},[305],{"type":80,"value":306}," {\n",{"type":69,"tag":192,"props":308,"children":310},{"class":194,"line":309},4,[311,316,321,326,330,335,339],{"type":69,"tag":192,"props":312,"children":313},{"style":277},[314],{"type":80,"value":315}," const",{"type":69,"tag":192,"props":317,"children":318},{"style":211},[319],{"type":80,"value":320}," client",{"type":69,"tag":192,"props":322,"children":323},{"style":205},[324],{"type":80,"value":325}," =",{"type":69,"tag":192,"props":327,"children":328},{"style":266},[329],{"type":80,"value":214},{"type":69,"tag":192,"props":331,"children":333},{"style":332},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[334],{"type":80,"value":274},{"type":69,"tag":192,"props":336,"children":337},{"style":211},[338],{"type":80,"value":291},{"type":69,"tag":192,"props":340,"children":341},{"style":332},[342],{"type":80,"value":343},")\n",{"type":69,"tag":192,"props":345,"children":347},{"class":194,"line":346},5,[348],{"type":69,"tag":192,"props":349,"children":350},{"emptyLinePlaceholder":246},[351],{"type":80,"value":249},{"type":69,"tag":192,"props":353,"children":355},{"class":194,"line":354},6,[356,360,364,369,373,377,382,386,390,395,399,404,409,413,417,421,426],{"type":69,"tag":192,"props":357,"children":358},{"style":277},[359],{"type":80,"value":315},{"type":69,"tag":192,"props":361,"children":362},{"style":205},[363],{"type":80,"value":208},{"type":69,"tag":192,"props":365,"children":366},{"style":211},[367],{"type":80,"value":368}," data",{"type":69,"tag":192,"props":370,"children":371},{"style":205},[372],{"type":80,"value":219},{"type":69,"tag":192,"props":374,"children":375},{"style":205},[376],{"type":80,"value":325},{"type":69,"tag":192,"props":378,"children":379},{"style":199},[380],{"type":80,"value":381}," await",{"type":69,"tag":192,"props":383,"children":384},{"style":211},[385],{"type":80,"value":320},{"type":69,"tag":192,"props":387,"children":388},{"style":205},[389],{"type":80,"value":126},{"type":69,"tag":192,"props":391,"children":392},{"style":266},[393],{"type":80,"value":394},"from",{"type":69,"tag":192,"props":396,"children":397},{"style":332},[398],{"type":80,"value":274},{"type":69,"tag":192,"props":400,"children":401},{"style":205},[402],{"type":80,"value":403},"'",{"type":69,"tag":192,"props":405,"children":406},{"style":232},[407],{"type":80,"value":408},"rls-protected-table",{"type":69,"tag":192,"props":410,"children":411},{"style":205},[412],{"type":80,"value":403},{"type":69,"tag":192,"props":414,"children":415},{"style":332},[416],{"type":80,"value":296},{"type":69,"tag":192,"props":418,"children":419},{"style":205},[420],{"type":80,"value":126},{"type":69,"tag":192,"props":422,"children":423},{"style":266},[424],{"type":80,"value":425},"select",{"type":69,"tag":192,"props":427,"children":428},{"style":332},[429],{"type":80,"value":430},"()\n",{"type":69,"tag":192,"props":432,"children":434},{"class":194,"line":433},7,[435],{"type":69,"tag":192,"props":436,"children":437},{"emptyLinePlaceholder":246},[438],{"type":80,"value":249},{"type":69,"tag":192,"props":440,"children":442},{"class":194,"line":441},8,[443,448,452,457,462,466],{"type":69,"tag":192,"props":444,"children":445},{"style":199},[446],{"type":80,"value":447}," return",{"type":69,"tag":192,"props":449,"children":450},{"style":205},[451],{"type":80,"value":208},{"type":69,"tag":192,"props":453,"children":454},{"style":332},[455],{"type":80,"value":456}," sensitiveData",{"type":69,"tag":192,"props":458,"children":459},{"style":205},[460],{"type":80,"value":461},":",{"type":69,"tag":192,"props":463,"children":464},{"style":211},[465],{"type":80,"value":368},{"type":69,"tag":192,"props":467,"children":468},{"style":205},[469],{"type":80,"value":470}," }\n",{"type":69,"tag":192,"props":472,"children":474},{"class":194,"line":473},9,[475,480],{"type":69,"tag":192,"props":476,"children":477},{"style":205},[478],{"type":80,"value":479},"}",{"type":69,"tag":192,"props":481,"children":482},{"style":211},[483],{"type":80,"value":343},{"type":69,"tag":76,"props":485,"children":486},{},[487],{"type":80,"value":488},"Then call your API route from any vue file:",{"type":69,"tag":181,"props":490,"children":493},{"className":183,"code":491,"filename":492,"language":186,"meta":61,"style":61},"const fetchSensitiveData = async () => {\n const { sensitiveData } = await useFetch('/api/bypass-rls')\n}\n","pages/index.vue",[494],{"type":69,"tag":137,"props":495,"children":496},{"__ignoreMap":61},[497,533,586],{"type":69,"tag":192,"props":498,"children":499},{"class":194,"line":195},[500,505,510,515,520,525,529],{"type":69,"tag":192,"props":501,"children":502},{"style":277},[503],{"type":80,"value":504},"const",{"type":69,"tag":192,"props":506,"children":507},{"style":211},[508],{"type":80,"value":509}," fetchSensitiveData ",{"type":69,"tag":192,"props":511,"children":512},{"style":205},[513],{"type":80,"value":514},"=",{"type":69,"tag":192,"props":516,"children":517},{"style":277},[518],{"type":80,"value":519}," async",{"type":69,"tag":192,"props":521,"children":522},{"style":205},[523],{"type":80,"value":524}," ()",{"type":69,"tag":192,"props":526,"children":527},{"style":277},[528],{"type":80,"value":301},{"type":69,"tag":192,"props":530,"children":531},{"style":205},[532],{"type":80,"value":306},{"type":69,"tag":192,"props":534,"children":535},{"class":194,"line":242},[536,540,544,548,552,556,560,565,569,573,578,582],{"type":69,"tag":192,"props":537,"children":538},{"style":277},[539],{"type":80,"value":315},{"type":69,"tag":192,"props":541,"children":542},{"style":205},[543],{"type":80,"value":208},{"type":69,"tag":192,"props":545,"children":546},{"style":211},[547],{"type":80,"value":456},{"type":69,"tag":192,"props":549,"children":550},{"style":205},[551],{"type":80,"value":219},{"type":69,"tag":192,"props":553,"children":554},{"style":205},[555],{"type":80,"value":325},{"type":69,"tag":192,"props":557,"children":558},{"style":199},[559],{"type":80,"value":381},{"type":69,"tag":192,"props":561,"children":562},{"style":266},[563],{"type":80,"value":564}," useFetch",{"type":69,"tag":192,"props":566,"children":567},{"style":332},[568],{"type":80,"value":274},{"type":69,"tag":192,"props":570,"children":571},{"style":205},[572],{"type":80,"value":403},{"type":69,"tag":192,"props":574,"children":575},{"style":232},[576],{"type":80,"value":577},"/api/bypass-rls",{"type":69,"tag":192,"props":579,"children":580},{"style":205},[581],{"type":80,"value":403},{"type":69,"tag":192,"props":583,"children":584},{"style":332},[585],{"type":80,"value":343},{"type":69,"tag":192,"props":587,"children":588},{"class":194,"line":252},[589],{"type":69,"tag":192,"props":590,"children":591},{"style":205},[592],{"type":80,"value":593},"}\n",{"type":69,"tag":595,"props":596,"children":597},"style",{},[598],{"type":80,"value":599},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":61,"searchDepth":242,"depth":242,"links":601},[],"markdown","content:4.usage:services:2.serverSupabaseServiceRole.md","content","4.usage/services/2.serverSupabaseServiceRole.md","4.usage/services/2.serverSupabaseServiceRole","md",[609,611],{"_path":35,"title":34,"description":610},"Make requests to the Supabase API on server side with the serverSupabaseClient service",{"_path":41,"title":40,"description":612},"Get your Supabase user's session from serverside with the serverSupabaseUser service",1725013745846] \ No newline at end of file diff --git a/usage/services/serversupabaseservicerole/index.html b/usage/services/serversupabaseservicerole/index.html index 2c60b54d8..3e1db0f4e 100644 --- a/usage/services/serversupabaseservicerole/index.html +++ b/usage/services/serversupabaseservicerole/index.html @@ -61,50 +61,50 @@ - - - - - - - + + + + + + + - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - + - - - - - - - + + + + + + + - - + + - + -
mobile favicon
Services

serverServiceRole

Make requests with super admin rights to the Supabase API with the serverSupabaseServiceRole service
This section assumes you're familiar with Nitro, the server engine powered by Nuxt.

This function is designed to work only in server routes, there is no vue composable equivalent.

It works similary as the serverSupabaseClient but it provides a client with super admin rights that can bypass your Row Level Security.

The client is initialized with the SUPABASE_SERVICE_KEY you must have in your .env file. Checkout the doc if you want to know more about Supabase keys.

Define your server route and just import the serverSupabaseServiceRole from #supabase/server.

server/api/bypass-rls.ts
import { serverSupabaseServiceRole } from '#supabase/server'
+
mobile favicon
Services

serverServiceRole

Make requests with super admin rights to the Supabase API with the serverSupabaseServiceRole service
This section assumes you're familiar with Nitro, the server engine powered by Nuxt.

This function is designed to work only in server routes, there is no vue composable equivalent.

It works similary as the serverSupabaseClient but it provides a client with super admin rights that can bypass your Row Level Security.

The client is initialized with the SUPABASE_SERVICE_KEY you must have in your .env file. Checkout the doc if you want to know more about Supabase keys.

Define your server route and just import the serverSupabaseServiceRole from #supabase/server.

server/api/bypass-rls.ts
import { serverSupabaseServiceRole } from '#supabase/server'
 
 export default eventHandler(async (event) => {
   const client = serverSupabaseServiceRole(event)
@@ -117,5 +117,5 @@
   const { sensitiveData } = await useFetch('/api/bypass-rls')
 }
 

Made with Nuxt Studio
- - \ No newline at end of file + + \ No newline at end of file diff --git a/usage/services/serversupabasesession/_payload.json b/usage/services/serversupabasesession/_payload.json index 4172baebd..dc044b64b 100644 --- a/usage/services/serversupabasesession/_payload.json +++ b/usage/services/serversupabasesession/_payload.json @@ -1 +1 @@ -[{"data":1,"prerenderedAt":678},["ShallowReactive",2],{"navigation":3,"/usage/services/serversupabasesession":58,"/usage/services/serversupabasesession-surround":672},[4,8,12,46,50,54],{"title":5,"_path":6,"icon":7},"Get Started","/get-started","i-heroicons-rocket-launch",{"title":9,"_path":10,"icon":11},"Authentication","/authentication","i-heroicons-lock-closed",{"title":13,"_path":14,"children":15,"icon":45},"Usage","/usage",[16,29],{"title":17,"_path":18,"children":19},"Vue composables","/usage/composables",[20,23,26],{"title":21,"_path":22},"useSupabaseClient","/usage/composables/usesupabaseclient",{"title":24,"_path":25},"useSupabaseSession","/usage/composables/usesupabasesession",{"title":27,"_path":28},"useSupabaseUser","/usage/composables/usesupabaseuser",{"title":30,"_path":31,"children":32},"Server services","/usage/services",[33,36,39,42],{"title":34,"_path":35},"serverSupabaseClient","/usage/services/serversupabaseclient",{"title":37,"_path":38},"serverSupabaseServiceRole","/usage/services/serversupabaseservicerole",{"title":40,"_path":41},"serverSupabaseSession","/usage/services/serversupabasesession",{"title":43,"_path":44},"serverSupabaseUser","/usage/services/serversupabaseuser","heroicons:book-open",{"title":47,"_path":48,"icon":49},"Demo","/demo","i-heroicons-computer-desktop-20-solid",{"title":51,"_path":52,"icon":53},"Changelog","/changelog","i-heroicons-bookmark",{"title":55,"_path":56,"icon":57},"Roadmap","/roadmap","i-heroicons-map",{"_path":41,"_dir":59,"_draft":60,"_partial":60,"_locale":61,"title":40,"description":62,"body":63,"_type":666,"_id":667,"_source":668,"_file":669,"_stem":670,"_extension":671},"services",false,"","Get your Supabase user's session from serverside with the serverSupabaseUser service",{"type":64,"children":65,"toc":664},"root",[66,91,111,131,303,308,454,468,658],{"type":67,"tag":68,"props":69,"children":72},"element","callout",{"color":70,"icon":71},"amber","i-heroicons-exclamation-triangle-20-solid",[73],{"type":67,"tag":74,"props":75,"children":76},"p",{},[77,80,89],{"type":78,"value":79},"text","This section assumes you're familiar with ",{"type":67,"tag":81,"props":82,"children":86},"a",{"href":83,"rel":84},"https://v3.nuxtjs.org/guide/concepts/server-engine",[85],"nofollow",[87],{"type":78,"value":88},"Nitro",{"type":78,"value":90},", the server engine powered by Nuxt.",{"type":67,"tag":74,"props":92,"children":93},{},[94,96,100,102,109],{"type":78,"value":95},"This function is similar to the ",{"type":67,"tag":81,"props":97,"children":98},{"href":25},[99],{"type":78,"value":24},{"type":78,"value":101}," composable but is used in ",{"type":67,"tag":81,"props":103,"children":106},{"href":104,"rel":105},"https://nuxt.com/docs/guide/directory-structure/server#server-routes",[85],[107],{"type":78,"value":108},"server routes",{"type":78,"value":110},".",{"type":67,"tag":74,"props":112,"children":113},{},[114,116,122,124,130],{"type":78,"value":115},"Define your server route and import the ",{"type":67,"tag":117,"props":118,"children":120},"code",{"className":119},[],[121],{"type":78,"value":40},{"type":78,"value":123}," from ",{"type":67,"tag":117,"props":125,"children":127},{"className":126},[],[128],{"type":78,"value":129},"#supabase/server",{"type":78,"value":110},{"type":67,"tag":132,"props":133,"children":138},"pre",{"className":134,"code":135,"filename":136,"language":137,"meta":61,"style":61},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { serverSupabaseSession } from '#supabase/server'\n\nexport default defineEventHandler(async (event) => {\n return await serverSupabaseSession(event)\n})\n","server/api/session.ts","ts",[139],{"type":67,"tag":117,"props":140,"children":141},{"__ignoreMap":61},[142,191,201,258,290],{"type":67,"tag":143,"props":144,"children":147},"span",{"class":145,"line":146},"line",1,[148,154,160,166,171,176,181,186],{"type":67,"tag":143,"props":149,"children":151},{"style":150},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[152],{"type":78,"value":153},"import",{"type":67,"tag":143,"props":155,"children":157},{"style":156},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[158],{"type":78,"value":159}," {",{"type":67,"tag":143,"props":161,"children":163},{"style":162},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[164],{"type":78,"value":165}," serverSupabaseSession",{"type":67,"tag":143,"props":167,"children":168},{"style":156},[169],{"type":78,"value":170}," }",{"type":67,"tag":143,"props":172,"children":173},{"style":150},[174],{"type":78,"value":175}," from",{"type":67,"tag":143,"props":177,"children":178},{"style":156},[179],{"type":78,"value":180}," '",{"type":67,"tag":143,"props":182,"children":184},{"style":183},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[185],{"type":78,"value":129},{"type":67,"tag":143,"props":187,"children":188},{"style":156},[189],{"type":78,"value":190},"'\n",{"type":67,"tag":143,"props":192,"children":194},{"class":145,"line":193},2,[195],{"type":67,"tag":143,"props":196,"children":198},{"emptyLinePlaceholder":197},true,[199],{"type":78,"value":200},"\n",{"type":67,"tag":143,"props":202,"children":204},{"class":145,"line":203},3,[205,210,215,221,226,232,237,243,248,253],{"type":67,"tag":143,"props":206,"children":207},{"style":150},[208],{"type":78,"value":209},"export",{"type":67,"tag":143,"props":211,"children":212},{"style":150},[213],{"type":78,"value":214}," default",{"type":67,"tag":143,"props":216,"children":218},{"style":217},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[219],{"type":78,"value":220}," defineEventHandler",{"type":67,"tag":143,"props":222,"children":223},{"style":162},[224],{"type":78,"value":225},"(",{"type":67,"tag":143,"props":227,"children":229},{"style":228},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[230],{"type":78,"value":231},"async",{"type":67,"tag":143,"props":233,"children":234},{"style":156},[235],{"type":78,"value":236}," (",{"type":67,"tag":143,"props":238,"children":240},{"style":239},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[241],{"type":78,"value":242},"event",{"type":67,"tag":143,"props":244,"children":245},{"style":156},[246],{"type":78,"value":247},")",{"type":67,"tag":143,"props":249,"children":250},{"style":228},[251],{"type":78,"value":252}," =>",{"type":67,"tag":143,"props":254,"children":255},{"style":156},[256],{"type":78,"value":257}," {\n",{"type":67,"tag":143,"props":259,"children":261},{"class":145,"line":260},4,[262,267,272,276,281,285],{"type":67,"tag":143,"props":263,"children":264},{"style":150},[265],{"type":78,"value":266}," return",{"type":67,"tag":143,"props":268,"children":269},{"style":150},[270],{"type":78,"value":271}," await",{"type":67,"tag":143,"props":273,"children":274},{"style":217},[275],{"type":78,"value":165},{"type":67,"tag":143,"props":277,"children":279},{"style":278},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[280],{"type":78,"value":225},{"type":67,"tag":143,"props":282,"children":283},{"style":162},[284],{"type":78,"value":242},{"type":67,"tag":143,"props":286,"children":287},{"style":278},[288],{"type":78,"value":289},")\n",{"type":67,"tag":143,"props":291,"children":293},{"class":145,"line":292},5,[294,299],{"type":67,"tag":143,"props":295,"children":296},{"style":156},[297],{"type":78,"value":298},"}",{"type":67,"tag":143,"props":300,"children":301},{"style":162},[302],{"type":78,"value":289},{"type":67,"tag":74,"props":304,"children":305},{},[306],{"type":78,"value":307},"Then call your api route from any vue file:",{"type":67,"tag":132,"props":309,"children":312},{"className":134,"code":310,"filename":311,"language":137,"meta":61,"style":61},"const session = ref(null)\n\nconst fetchSession = async () => {\n session.value = await $fetch('/api/session')\n}\n","pages/index.vue",[313],{"type":67,"tag":117,"props":314,"children":315},{"__ignoreMap":61},[316,352,359,393,446],{"type":67,"tag":143,"props":317,"children":318},{"class":145,"line":146},[319,324,329,334,339,343,348],{"type":67,"tag":143,"props":320,"children":321},{"style":228},[322],{"type":78,"value":323},"const",{"type":67,"tag":143,"props":325,"children":326},{"style":162},[327],{"type":78,"value":328}," session ",{"type":67,"tag":143,"props":330,"children":331},{"style":156},[332],{"type":78,"value":333},"=",{"type":67,"tag":143,"props":335,"children":336},{"style":217},[337],{"type":78,"value":338}," ref",{"type":67,"tag":143,"props":340,"children":341},{"style":162},[342],{"type":78,"value":225},{"type":67,"tag":143,"props":344,"children":345},{"style":156},[346],{"type":78,"value":347},"null",{"type":67,"tag":143,"props":349,"children":350},{"style":162},[351],{"type":78,"value":289},{"type":67,"tag":143,"props":353,"children":354},{"class":145,"line":193},[355],{"type":67,"tag":143,"props":356,"children":357},{"emptyLinePlaceholder":197},[358],{"type":78,"value":200},{"type":67,"tag":143,"props":360,"children":361},{"class":145,"line":203},[362,366,371,375,380,385,389],{"type":67,"tag":143,"props":363,"children":364},{"style":228},[365],{"type":78,"value":323},{"type":67,"tag":143,"props":367,"children":368},{"style":162},[369],{"type":78,"value":370}," fetchSession ",{"type":67,"tag":143,"props":372,"children":373},{"style":156},[374],{"type":78,"value":333},{"type":67,"tag":143,"props":376,"children":377},{"style":228},[378],{"type":78,"value":379}," async",{"type":67,"tag":143,"props":381,"children":382},{"style":156},[383],{"type":78,"value":384}," ()",{"type":67,"tag":143,"props":386,"children":387},{"style":228},[388],{"type":78,"value":252},{"type":67,"tag":143,"props":390,"children":391},{"style":156},[392],{"type":78,"value":257},{"type":67,"tag":143,"props":394,"children":395},{"class":145,"line":260},[396,401,405,410,415,419,424,428,433,438,442],{"type":67,"tag":143,"props":397,"children":398},{"style":162},[399],{"type":78,"value":400}," session",{"type":67,"tag":143,"props":402,"children":403},{"style":156},[404],{"type":78,"value":110},{"type":67,"tag":143,"props":406,"children":407},{"style":162},[408],{"type":78,"value":409},"value",{"type":67,"tag":143,"props":411,"children":412},{"style":156},[413],{"type":78,"value":414}," =",{"type":67,"tag":143,"props":416,"children":417},{"style":150},[418],{"type":78,"value":271},{"type":67,"tag":143,"props":420,"children":421},{"style":217},[422],{"type":78,"value":423}," $fetch",{"type":67,"tag":143,"props":425,"children":426},{"style":278},[427],{"type":78,"value":225},{"type":67,"tag":143,"props":429,"children":430},{"style":156},[431],{"type":78,"value":432},"'",{"type":67,"tag":143,"props":434,"children":435},{"style":183},[436],{"type":78,"value":437},"/api/session",{"type":67,"tag":143,"props":439,"children":440},{"style":156},[441],{"type":78,"value":432},{"type":67,"tag":143,"props":443,"children":444},{"style":278},[445],{"type":78,"value":289},{"type":67,"tag":143,"props":447,"children":448},{"class":145,"line":292},[449],{"type":67,"tag":143,"props":450,"children":451},{"style":156},[452],{"type":78,"value":453},"}\n",{"type":67,"tag":74,"props":455,"children":456},{},[457,459,466],{"type":78,"value":458},"Be careful, if you want to call this route on SSR, please read this ",{"type":67,"tag":81,"props":460,"children":463},{"href":461,"rel":462},"https://nuxt.com/docs/getting-started/data-fetching#isomorphic-fetch-and-fetch",[85],[464],{"type":78,"value":465},"section",{"type":78,"value":467},", you must send your browser cookies including your supabase token.",{"type":67,"tag":132,"props":469,"children":471},{"className":134,"code":470,"filename":311,"language":137,"meta":61,"style":61},"const session = ref(null)\n\nconst { data } = await useFetch('/api/session', {\n headers: useRequestHeaders(['cookie'])\n})\n\nsession.value = data\n",[472],{"type":67,"tag":117,"props":473,"children":474},{"__ignoreMap":61},[475,506,513,571,612,623,631],{"type":67,"tag":143,"props":476,"children":477},{"class":145,"line":146},[478,482,486,490,494,498,502],{"type":67,"tag":143,"props":479,"children":480},{"style":228},[481],{"type":78,"value":323},{"type":67,"tag":143,"props":483,"children":484},{"style":162},[485],{"type":78,"value":328},{"type":67,"tag":143,"props":487,"children":488},{"style":156},[489],{"type":78,"value":333},{"type":67,"tag":143,"props":491,"children":492},{"style":217},[493],{"type":78,"value":338},{"type":67,"tag":143,"props":495,"children":496},{"style":162},[497],{"type":78,"value":225},{"type":67,"tag":143,"props":499,"children":500},{"style":156},[501],{"type":78,"value":347},{"type":67,"tag":143,"props":503,"children":504},{"style":162},[505],{"type":78,"value":289},{"type":67,"tag":143,"props":507,"children":508},{"class":145,"line":193},[509],{"type":67,"tag":143,"props":510,"children":511},{"emptyLinePlaceholder":197},[512],{"type":78,"value":200},{"type":67,"tag":143,"props":514,"children":515},{"class":145,"line":203},[516,520,524,529,533,537,541,546,550,554,558,562,567],{"type":67,"tag":143,"props":517,"children":518},{"style":228},[519],{"type":78,"value":323},{"type":67,"tag":143,"props":521,"children":522},{"style":156},[523],{"type":78,"value":159},{"type":67,"tag":143,"props":525,"children":526},{"style":162},[527],{"type":78,"value":528}," data ",{"type":67,"tag":143,"props":530,"children":531},{"style":156},[532],{"type":78,"value":298},{"type":67,"tag":143,"props":534,"children":535},{"style":156},[536],{"type":78,"value":414},{"type":67,"tag":143,"props":538,"children":539},{"style":150},[540],{"type":78,"value":271},{"type":67,"tag":143,"props":542,"children":543},{"style":217},[544],{"type":78,"value":545}," useFetch",{"type":67,"tag":143,"props":547,"children":548},{"style":162},[549],{"type":78,"value":225},{"type":67,"tag":143,"props":551,"children":552},{"style":156},[553],{"type":78,"value":432},{"type":67,"tag":143,"props":555,"children":556},{"style":183},[557],{"type":78,"value":437},{"type":67,"tag":143,"props":559,"children":560},{"style":156},[561],{"type":78,"value":432},{"type":67,"tag":143,"props":563,"children":564},{"style":156},[565],{"type":78,"value":566},",",{"type":67,"tag":143,"props":568,"children":569},{"style":156},[570],{"type":78,"value":257},{"type":67,"tag":143,"props":572,"children":573},{"class":145,"line":260},[574,579,584,589,594,598,603,607],{"type":67,"tag":143,"props":575,"children":576},{"style":278},[577],{"type":78,"value":578}," headers",{"type":67,"tag":143,"props":580,"children":581},{"style":156},[582],{"type":78,"value":583},":",{"type":67,"tag":143,"props":585,"children":586},{"style":217},[587],{"type":78,"value":588}," useRequestHeaders",{"type":67,"tag":143,"props":590,"children":591},{"style":162},[592],{"type":78,"value":593},"([",{"type":67,"tag":143,"props":595,"children":596},{"style":156},[597],{"type":78,"value":432},{"type":67,"tag":143,"props":599,"children":600},{"style":183},[601],{"type":78,"value":602},"cookie",{"type":67,"tag":143,"props":604,"children":605},{"style":156},[606],{"type":78,"value":432},{"type":67,"tag":143,"props":608,"children":609},{"style":162},[610],{"type":78,"value":611},"])\n",{"type":67,"tag":143,"props":613,"children":614},{"class":145,"line":292},[615,619],{"type":67,"tag":143,"props":616,"children":617},{"style":156},[618],{"type":78,"value":298},{"type":67,"tag":143,"props":620,"children":621},{"style":162},[622],{"type":78,"value":289},{"type":67,"tag":143,"props":624,"children":626},{"class":145,"line":625},6,[627],{"type":67,"tag":143,"props":628,"children":629},{"emptyLinePlaceholder":197},[630],{"type":78,"value":200},{"type":67,"tag":143,"props":632,"children":634},{"class":145,"line":633},7,[635,640,644,649,653],{"type":67,"tag":143,"props":636,"children":637},{"style":162},[638],{"type":78,"value":639},"session",{"type":67,"tag":143,"props":641,"children":642},{"style":156},[643],{"type":78,"value":110},{"type":67,"tag":143,"props":645,"children":646},{"style":162},[647],{"type":78,"value":648},"value ",{"type":67,"tag":143,"props":650,"children":651},{"style":156},[652],{"type":78,"value":333},{"type":67,"tag":143,"props":654,"children":655},{"style":162},[656],{"type":78,"value":657}," data\n",{"type":67,"tag":659,"props":660,"children":661},"style",{},[662],{"type":78,"value":663},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":61,"searchDepth":193,"depth":193,"links":665},[],"markdown","content:4.usage:services:3.serverSupabaseSession.md","content","4.usage/services/3.serverSupabaseSession.md","4.usage/services/3.serverSupabaseSession","md",[673,676],{"_path":38,"title":674,"description":675},"serverServiceRole","Make requests with super admin rights to the Supabase API with the serverSupabaseServiceRole service",{"_path":44,"title":43,"description":677},"Get your Supabase user from serverside with the serverSupabaseUser service",1725006469587] \ No newline at end of file +[{"data":1,"prerenderedAt":678},["ShallowReactive",2],{"navigation":3,"/usage/services/serversupabasesession":58,"/usage/services/serversupabasesession-surround":672},[4,8,12,46,50,54],{"title":5,"_path":6,"icon":7},"Get Started","/get-started","i-heroicons-rocket-launch",{"title":9,"_path":10,"icon":11},"Authentication","/authentication","i-heroicons-lock-closed",{"title":13,"_path":14,"children":15,"icon":45},"Usage","/usage",[16,29],{"title":17,"_path":18,"children":19},"Vue composables","/usage/composables",[20,23,26],{"title":21,"_path":22},"useSupabaseClient","/usage/composables/usesupabaseclient",{"title":24,"_path":25},"useSupabaseSession","/usage/composables/usesupabasesession",{"title":27,"_path":28},"useSupabaseUser","/usage/composables/usesupabaseuser",{"title":30,"_path":31,"children":32},"Server services","/usage/services",[33,36,39,42],{"title":34,"_path":35},"serverSupabaseClient","/usage/services/serversupabaseclient",{"title":37,"_path":38},"serverSupabaseServiceRole","/usage/services/serversupabaseservicerole",{"title":40,"_path":41},"serverSupabaseSession","/usage/services/serversupabasesession",{"title":43,"_path":44},"serverSupabaseUser","/usage/services/serversupabaseuser","heroicons:book-open",{"title":47,"_path":48,"icon":49},"Demo","/demo","i-heroicons-computer-desktop-20-solid",{"title":51,"_path":52,"icon":53},"Changelog","/changelog","i-heroicons-bookmark",{"title":55,"_path":56,"icon":57},"Roadmap","/roadmap","i-heroicons-map",{"_path":41,"_dir":59,"_draft":60,"_partial":60,"_locale":61,"title":40,"description":62,"body":63,"_type":666,"_id":667,"_source":668,"_file":669,"_stem":670,"_extension":671},"services",false,"","Get your Supabase user's session from serverside with the serverSupabaseUser service",{"type":64,"children":65,"toc":664},"root",[66,91,111,131,303,308,454,468,658],{"type":67,"tag":68,"props":69,"children":72},"element","callout",{"color":70,"icon":71},"amber","i-heroicons-exclamation-triangle-20-solid",[73],{"type":67,"tag":74,"props":75,"children":76},"p",{},[77,80,89],{"type":78,"value":79},"text","This section assumes you're familiar with ",{"type":67,"tag":81,"props":82,"children":86},"a",{"href":83,"rel":84},"https://v3.nuxtjs.org/guide/concepts/server-engine",[85],"nofollow",[87],{"type":78,"value":88},"Nitro",{"type":78,"value":90},", the server engine powered by Nuxt.",{"type":67,"tag":74,"props":92,"children":93},{},[94,96,100,102,109],{"type":78,"value":95},"This function is similar to the ",{"type":67,"tag":81,"props":97,"children":98},{"href":25},[99],{"type":78,"value":24},{"type":78,"value":101}," composable but is used in ",{"type":67,"tag":81,"props":103,"children":106},{"href":104,"rel":105},"https://nuxt.com/docs/guide/directory-structure/server#server-routes",[85],[107],{"type":78,"value":108},"server routes",{"type":78,"value":110},".",{"type":67,"tag":74,"props":112,"children":113},{},[114,116,122,124,130],{"type":78,"value":115},"Define your server route and import the ",{"type":67,"tag":117,"props":118,"children":120},"code",{"className":119},[],[121],{"type":78,"value":40},{"type":78,"value":123}," from ",{"type":67,"tag":117,"props":125,"children":127},{"className":126},[],[128],{"type":78,"value":129},"#supabase/server",{"type":78,"value":110},{"type":67,"tag":132,"props":133,"children":138},"pre",{"className":134,"code":135,"filename":136,"language":137,"meta":61,"style":61},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { serverSupabaseSession } from '#supabase/server'\n\nexport default defineEventHandler(async (event) => {\n return await serverSupabaseSession(event)\n})\n","server/api/session.ts","ts",[139],{"type":67,"tag":117,"props":140,"children":141},{"__ignoreMap":61},[142,191,201,258,290],{"type":67,"tag":143,"props":144,"children":147},"span",{"class":145,"line":146},"line",1,[148,154,160,166,171,176,181,186],{"type":67,"tag":143,"props":149,"children":151},{"style":150},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[152],{"type":78,"value":153},"import",{"type":67,"tag":143,"props":155,"children":157},{"style":156},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[158],{"type":78,"value":159}," {",{"type":67,"tag":143,"props":161,"children":163},{"style":162},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[164],{"type":78,"value":165}," serverSupabaseSession",{"type":67,"tag":143,"props":167,"children":168},{"style":156},[169],{"type":78,"value":170}," }",{"type":67,"tag":143,"props":172,"children":173},{"style":150},[174],{"type":78,"value":175}," from",{"type":67,"tag":143,"props":177,"children":178},{"style":156},[179],{"type":78,"value":180}," '",{"type":67,"tag":143,"props":182,"children":184},{"style":183},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[185],{"type":78,"value":129},{"type":67,"tag":143,"props":187,"children":188},{"style":156},[189],{"type":78,"value":190},"'\n",{"type":67,"tag":143,"props":192,"children":194},{"class":145,"line":193},2,[195],{"type":67,"tag":143,"props":196,"children":198},{"emptyLinePlaceholder":197},true,[199],{"type":78,"value":200},"\n",{"type":67,"tag":143,"props":202,"children":204},{"class":145,"line":203},3,[205,210,215,221,226,232,237,243,248,253],{"type":67,"tag":143,"props":206,"children":207},{"style":150},[208],{"type":78,"value":209},"export",{"type":67,"tag":143,"props":211,"children":212},{"style":150},[213],{"type":78,"value":214}," default",{"type":67,"tag":143,"props":216,"children":218},{"style":217},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[219],{"type":78,"value":220}," defineEventHandler",{"type":67,"tag":143,"props":222,"children":223},{"style":162},[224],{"type":78,"value":225},"(",{"type":67,"tag":143,"props":227,"children":229},{"style":228},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[230],{"type":78,"value":231},"async",{"type":67,"tag":143,"props":233,"children":234},{"style":156},[235],{"type":78,"value":236}," (",{"type":67,"tag":143,"props":238,"children":240},{"style":239},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[241],{"type":78,"value":242},"event",{"type":67,"tag":143,"props":244,"children":245},{"style":156},[246],{"type":78,"value":247},")",{"type":67,"tag":143,"props":249,"children":250},{"style":228},[251],{"type":78,"value":252}," =>",{"type":67,"tag":143,"props":254,"children":255},{"style":156},[256],{"type":78,"value":257}," {\n",{"type":67,"tag":143,"props":259,"children":261},{"class":145,"line":260},4,[262,267,272,276,281,285],{"type":67,"tag":143,"props":263,"children":264},{"style":150},[265],{"type":78,"value":266}," return",{"type":67,"tag":143,"props":268,"children":269},{"style":150},[270],{"type":78,"value":271}," await",{"type":67,"tag":143,"props":273,"children":274},{"style":217},[275],{"type":78,"value":165},{"type":67,"tag":143,"props":277,"children":279},{"style":278},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[280],{"type":78,"value":225},{"type":67,"tag":143,"props":282,"children":283},{"style":162},[284],{"type":78,"value":242},{"type":67,"tag":143,"props":286,"children":287},{"style":278},[288],{"type":78,"value":289},")\n",{"type":67,"tag":143,"props":291,"children":293},{"class":145,"line":292},5,[294,299],{"type":67,"tag":143,"props":295,"children":296},{"style":156},[297],{"type":78,"value":298},"}",{"type":67,"tag":143,"props":300,"children":301},{"style":162},[302],{"type":78,"value":289},{"type":67,"tag":74,"props":304,"children":305},{},[306],{"type":78,"value":307},"Then call your api route from any vue file:",{"type":67,"tag":132,"props":309,"children":312},{"className":134,"code":310,"filename":311,"language":137,"meta":61,"style":61},"const session = ref(null)\n\nconst fetchSession = async () => {\n session.value = await $fetch('/api/session')\n}\n","pages/index.vue",[313],{"type":67,"tag":117,"props":314,"children":315},{"__ignoreMap":61},[316,352,359,393,446],{"type":67,"tag":143,"props":317,"children":318},{"class":145,"line":146},[319,324,329,334,339,343,348],{"type":67,"tag":143,"props":320,"children":321},{"style":228},[322],{"type":78,"value":323},"const",{"type":67,"tag":143,"props":325,"children":326},{"style":162},[327],{"type":78,"value":328}," session ",{"type":67,"tag":143,"props":330,"children":331},{"style":156},[332],{"type":78,"value":333},"=",{"type":67,"tag":143,"props":335,"children":336},{"style":217},[337],{"type":78,"value":338}," ref",{"type":67,"tag":143,"props":340,"children":341},{"style":162},[342],{"type":78,"value":225},{"type":67,"tag":143,"props":344,"children":345},{"style":156},[346],{"type":78,"value":347},"null",{"type":67,"tag":143,"props":349,"children":350},{"style":162},[351],{"type":78,"value":289},{"type":67,"tag":143,"props":353,"children":354},{"class":145,"line":193},[355],{"type":67,"tag":143,"props":356,"children":357},{"emptyLinePlaceholder":197},[358],{"type":78,"value":200},{"type":67,"tag":143,"props":360,"children":361},{"class":145,"line":203},[362,366,371,375,380,385,389],{"type":67,"tag":143,"props":363,"children":364},{"style":228},[365],{"type":78,"value":323},{"type":67,"tag":143,"props":367,"children":368},{"style":162},[369],{"type":78,"value":370}," fetchSession ",{"type":67,"tag":143,"props":372,"children":373},{"style":156},[374],{"type":78,"value":333},{"type":67,"tag":143,"props":376,"children":377},{"style":228},[378],{"type":78,"value":379}," async",{"type":67,"tag":143,"props":381,"children":382},{"style":156},[383],{"type":78,"value":384}," ()",{"type":67,"tag":143,"props":386,"children":387},{"style":228},[388],{"type":78,"value":252},{"type":67,"tag":143,"props":390,"children":391},{"style":156},[392],{"type":78,"value":257},{"type":67,"tag":143,"props":394,"children":395},{"class":145,"line":260},[396,401,405,410,415,419,424,428,433,438,442],{"type":67,"tag":143,"props":397,"children":398},{"style":162},[399],{"type":78,"value":400}," session",{"type":67,"tag":143,"props":402,"children":403},{"style":156},[404],{"type":78,"value":110},{"type":67,"tag":143,"props":406,"children":407},{"style":162},[408],{"type":78,"value":409},"value",{"type":67,"tag":143,"props":411,"children":412},{"style":156},[413],{"type":78,"value":414}," =",{"type":67,"tag":143,"props":416,"children":417},{"style":150},[418],{"type":78,"value":271},{"type":67,"tag":143,"props":420,"children":421},{"style":217},[422],{"type":78,"value":423}," $fetch",{"type":67,"tag":143,"props":425,"children":426},{"style":278},[427],{"type":78,"value":225},{"type":67,"tag":143,"props":429,"children":430},{"style":156},[431],{"type":78,"value":432},"'",{"type":67,"tag":143,"props":434,"children":435},{"style":183},[436],{"type":78,"value":437},"/api/session",{"type":67,"tag":143,"props":439,"children":440},{"style":156},[441],{"type":78,"value":432},{"type":67,"tag":143,"props":443,"children":444},{"style":278},[445],{"type":78,"value":289},{"type":67,"tag":143,"props":447,"children":448},{"class":145,"line":292},[449],{"type":67,"tag":143,"props":450,"children":451},{"style":156},[452],{"type":78,"value":453},"}\n",{"type":67,"tag":74,"props":455,"children":456},{},[457,459,466],{"type":78,"value":458},"Be careful, if you want to call this route on SSR, please read this ",{"type":67,"tag":81,"props":460,"children":463},{"href":461,"rel":462},"https://nuxt.com/docs/getting-started/data-fetching#isomorphic-fetch-and-fetch",[85],[464],{"type":78,"value":465},"section",{"type":78,"value":467},", you must send your browser cookies including your supabase token.",{"type":67,"tag":132,"props":469,"children":471},{"className":134,"code":470,"filename":311,"language":137,"meta":61,"style":61},"const session = ref(null)\n\nconst { data } = await useFetch('/api/session', {\n headers: useRequestHeaders(['cookie'])\n})\n\nsession.value = data\n",[472],{"type":67,"tag":117,"props":473,"children":474},{"__ignoreMap":61},[475,506,513,571,612,623,631],{"type":67,"tag":143,"props":476,"children":477},{"class":145,"line":146},[478,482,486,490,494,498,502],{"type":67,"tag":143,"props":479,"children":480},{"style":228},[481],{"type":78,"value":323},{"type":67,"tag":143,"props":483,"children":484},{"style":162},[485],{"type":78,"value":328},{"type":67,"tag":143,"props":487,"children":488},{"style":156},[489],{"type":78,"value":333},{"type":67,"tag":143,"props":491,"children":492},{"style":217},[493],{"type":78,"value":338},{"type":67,"tag":143,"props":495,"children":496},{"style":162},[497],{"type":78,"value":225},{"type":67,"tag":143,"props":499,"children":500},{"style":156},[501],{"type":78,"value":347},{"type":67,"tag":143,"props":503,"children":504},{"style":162},[505],{"type":78,"value":289},{"type":67,"tag":143,"props":507,"children":508},{"class":145,"line":193},[509],{"type":67,"tag":143,"props":510,"children":511},{"emptyLinePlaceholder":197},[512],{"type":78,"value":200},{"type":67,"tag":143,"props":514,"children":515},{"class":145,"line":203},[516,520,524,529,533,537,541,546,550,554,558,562,567],{"type":67,"tag":143,"props":517,"children":518},{"style":228},[519],{"type":78,"value":323},{"type":67,"tag":143,"props":521,"children":522},{"style":156},[523],{"type":78,"value":159},{"type":67,"tag":143,"props":525,"children":526},{"style":162},[527],{"type":78,"value":528}," data ",{"type":67,"tag":143,"props":530,"children":531},{"style":156},[532],{"type":78,"value":298},{"type":67,"tag":143,"props":534,"children":535},{"style":156},[536],{"type":78,"value":414},{"type":67,"tag":143,"props":538,"children":539},{"style":150},[540],{"type":78,"value":271},{"type":67,"tag":143,"props":542,"children":543},{"style":217},[544],{"type":78,"value":545}," useFetch",{"type":67,"tag":143,"props":547,"children":548},{"style":162},[549],{"type":78,"value":225},{"type":67,"tag":143,"props":551,"children":552},{"style":156},[553],{"type":78,"value":432},{"type":67,"tag":143,"props":555,"children":556},{"style":183},[557],{"type":78,"value":437},{"type":67,"tag":143,"props":559,"children":560},{"style":156},[561],{"type":78,"value":432},{"type":67,"tag":143,"props":563,"children":564},{"style":156},[565],{"type":78,"value":566},",",{"type":67,"tag":143,"props":568,"children":569},{"style":156},[570],{"type":78,"value":257},{"type":67,"tag":143,"props":572,"children":573},{"class":145,"line":260},[574,579,584,589,594,598,603,607],{"type":67,"tag":143,"props":575,"children":576},{"style":278},[577],{"type":78,"value":578}," headers",{"type":67,"tag":143,"props":580,"children":581},{"style":156},[582],{"type":78,"value":583},":",{"type":67,"tag":143,"props":585,"children":586},{"style":217},[587],{"type":78,"value":588}," useRequestHeaders",{"type":67,"tag":143,"props":590,"children":591},{"style":162},[592],{"type":78,"value":593},"([",{"type":67,"tag":143,"props":595,"children":596},{"style":156},[597],{"type":78,"value":432},{"type":67,"tag":143,"props":599,"children":600},{"style":183},[601],{"type":78,"value":602},"cookie",{"type":67,"tag":143,"props":604,"children":605},{"style":156},[606],{"type":78,"value":432},{"type":67,"tag":143,"props":608,"children":609},{"style":162},[610],{"type":78,"value":611},"])\n",{"type":67,"tag":143,"props":613,"children":614},{"class":145,"line":292},[615,619],{"type":67,"tag":143,"props":616,"children":617},{"style":156},[618],{"type":78,"value":298},{"type":67,"tag":143,"props":620,"children":621},{"style":162},[622],{"type":78,"value":289},{"type":67,"tag":143,"props":624,"children":626},{"class":145,"line":625},6,[627],{"type":67,"tag":143,"props":628,"children":629},{"emptyLinePlaceholder":197},[630],{"type":78,"value":200},{"type":67,"tag":143,"props":632,"children":634},{"class":145,"line":633},7,[635,640,644,649,653],{"type":67,"tag":143,"props":636,"children":637},{"style":162},[638],{"type":78,"value":639},"session",{"type":67,"tag":143,"props":641,"children":642},{"style":156},[643],{"type":78,"value":110},{"type":67,"tag":143,"props":645,"children":646},{"style":162},[647],{"type":78,"value":648},"value ",{"type":67,"tag":143,"props":650,"children":651},{"style":156},[652],{"type":78,"value":333},{"type":67,"tag":143,"props":654,"children":655},{"style":162},[656],{"type":78,"value":657}," data\n",{"type":67,"tag":659,"props":660,"children":661},"style",{},[662],{"type":78,"value":663},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":61,"searchDepth":193,"depth":193,"links":665},[],"markdown","content:4.usage:services:3.serverSupabaseSession.md","content","4.usage/services/3.serverSupabaseSession.md","4.usage/services/3.serverSupabaseSession","md",[673,676],{"_path":38,"title":674,"description":675},"serverServiceRole","Make requests with super admin rights to the Supabase API with the serverSupabaseServiceRole service",{"_path":44,"title":43,"description":677},"Get your Supabase user from serverside with the serverSupabaseUser service",1725013745852] \ No newline at end of file diff --git a/usage/services/serversupabasesession/index.html b/usage/services/serversupabasesession/index.html index 32ee66a87..bd784689e 100644 --- a/usage/services/serversupabasesession/index.html +++ b/usage/services/serversupabasesession/index.html @@ -61,49 +61,49 @@ - - - - - - - + + + + + + + - - - - - - - - - - - - - - + + + + + + + + + + + + + + - + - - - - - - - + + + + + + + - - + + - + -
mobile favicon
Services

serverSupabaseSession

Get your Supabase user's session from serverside with the serverSupabaseUser service
This section assumes you're familiar with Nitro, the server engine powered by Nuxt.

This function is similar to the useSupabaseSession composable but is used in server routes.

Define your server route and import the serverSupabaseSession from #supabase/server.

server/api/session.ts
import { serverSupabaseSession } from '#supabase/server'
+
mobile favicon
Services

serverSupabaseSession

Get your Supabase user's session from serverside with the serverSupabaseUser service
This section assumes you're familiar with Nitro, the server engine powered by Nuxt.

This function is similar to the useSupabaseSession composable but is used in server routes.

Define your server route and import the serverSupabaseSession from #supabase/server.

server/api/session.ts
import { serverSupabaseSession } from '#supabase/server'
 
 export default defineEventHandler(async (event) => {
   return await serverSupabaseSession(event)
@@ -121,5 +121,5 @@
 
 session.value = data
 

Made with Nuxt Studio
- - \ No newline at end of file + + \ No newline at end of file diff --git a/usage/services/serversupabaseuser/_payload.json b/usage/services/serversupabaseuser/_payload.json index 051fcf5be..4bf192008 100644 --- a/usage/services/serversupabaseuser/_payload.json +++ b/usage/services/serversupabaseuser/_payload.json @@ -1 +1 @@ -[{"data":1,"prerenderedAt":677},["ShallowReactive",2],{"navigation":3,"/usage/services/serversupabaseuser":58,"/usage/services/serversupabaseuser-surround":672},[4,8,12,46,50,54],{"title":5,"_path":6,"icon":7},"Get Started","/get-started","i-heroicons-rocket-launch",{"title":9,"_path":10,"icon":11},"Authentication","/authentication","i-heroicons-lock-closed",{"title":13,"_path":14,"children":15,"icon":45},"Usage","/usage",[16,29],{"title":17,"_path":18,"children":19},"Vue composables","/usage/composables",[20,23,26],{"title":21,"_path":22},"useSupabaseClient","/usage/composables/usesupabaseclient",{"title":24,"_path":25},"useSupabaseSession","/usage/composables/usesupabasesession",{"title":27,"_path":28},"useSupabaseUser","/usage/composables/usesupabaseuser",{"title":30,"_path":31,"children":32},"Server services","/usage/services",[33,36,39,42],{"title":34,"_path":35},"serverSupabaseClient","/usage/services/serversupabaseclient",{"title":37,"_path":38},"serverSupabaseServiceRole","/usage/services/serversupabaseservicerole",{"title":40,"_path":41},"serverSupabaseSession","/usage/services/serversupabasesession",{"title":43,"_path":44},"serverSupabaseUser","/usage/services/serversupabaseuser","heroicons:book-open",{"title":47,"_path":48,"icon":49},"Demo","/demo","i-heroicons-computer-desktop-20-solid",{"title":51,"_path":52,"icon":53},"Changelog","/changelog","i-heroicons-bookmark",{"title":55,"_path":56,"icon":57},"Roadmap","/roadmap","i-heroicons-map",{"_path":44,"_dir":59,"_draft":60,"_partial":60,"_locale":61,"title":43,"description":62,"body":63,"_type":666,"_id":667,"_source":668,"_file":669,"_stem":670,"_extension":671},"services",false,"","Get your Supabase user from serverside with the serverSupabaseUser service",{"type":64,"children":65,"toc":664},"root",[66,91,111,131,303,308,454,468,658],{"type":67,"tag":68,"props":69,"children":72},"element","callout",{"color":70,"icon":71},"amber","i-heroicons-exclamation-triangle-20-solid",[73],{"type":67,"tag":74,"props":75,"children":76},"p",{},[77,80,89],{"type":78,"value":79},"text","This section assumes you're familiar with ",{"type":67,"tag":81,"props":82,"children":86},"a",{"href":83,"rel":84},"https://v3.nuxtjs.org/guide/concepts/server-engine",[85],"nofollow",[87],{"type":78,"value":88},"Nitro",{"type":78,"value":90},", the server engine powered by Nuxt.",{"type":67,"tag":74,"props":92,"children":93},{},[94,96,100,102,109],{"type":78,"value":95},"This function is similar to the ",{"type":67,"tag":81,"props":97,"children":98},{"href":28},[99],{"type":78,"value":27},{"type":78,"value":101}," composable but is used in ",{"type":67,"tag":81,"props":103,"children":106},{"href":104,"rel":105},"https://nuxt.com/docs/guide/directory-structure/server#server-routes",[85],[107],{"type":78,"value":108},"server routes",{"type":78,"value":110},".",{"type":67,"tag":74,"props":112,"children":113},{},[114,116,122,124,130],{"type":78,"value":115},"Define your server route and import the ",{"type":67,"tag":117,"props":118,"children":120},"code",{"className":119},[],[121],{"type":78,"value":43},{"type":78,"value":123}," from ",{"type":67,"tag":117,"props":125,"children":127},{"className":126},[],[128],{"type":78,"value":129},"#supabase/server",{"type":78,"value":110},{"type":67,"tag":132,"props":133,"children":138},"pre",{"className":134,"code":135,"filename":136,"language":137,"meta":61,"style":61},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { serverSupabaseUser } from '#supabase/server'\n\nexport default defineEventHandler(async (event) => {\n return await serverSupabaseUser(event)\n})\n","server/api/me.ts","ts",[139],{"type":67,"tag":117,"props":140,"children":141},{"__ignoreMap":61},[142,191,201,258,290],{"type":67,"tag":143,"props":144,"children":147},"span",{"class":145,"line":146},"line",1,[148,154,160,166,171,176,181,186],{"type":67,"tag":143,"props":149,"children":151},{"style":150},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[152],{"type":78,"value":153},"import",{"type":67,"tag":143,"props":155,"children":157},{"style":156},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[158],{"type":78,"value":159}," {",{"type":67,"tag":143,"props":161,"children":163},{"style":162},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[164],{"type":78,"value":165}," serverSupabaseUser",{"type":67,"tag":143,"props":167,"children":168},{"style":156},[169],{"type":78,"value":170}," }",{"type":67,"tag":143,"props":172,"children":173},{"style":150},[174],{"type":78,"value":175}," from",{"type":67,"tag":143,"props":177,"children":178},{"style":156},[179],{"type":78,"value":180}," '",{"type":67,"tag":143,"props":182,"children":184},{"style":183},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[185],{"type":78,"value":129},{"type":67,"tag":143,"props":187,"children":188},{"style":156},[189],{"type":78,"value":190},"'\n",{"type":67,"tag":143,"props":192,"children":194},{"class":145,"line":193},2,[195],{"type":67,"tag":143,"props":196,"children":198},{"emptyLinePlaceholder":197},true,[199],{"type":78,"value":200},"\n",{"type":67,"tag":143,"props":202,"children":204},{"class":145,"line":203},3,[205,210,215,221,226,232,237,243,248,253],{"type":67,"tag":143,"props":206,"children":207},{"style":150},[208],{"type":78,"value":209},"export",{"type":67,"tag":143,"props":211,"children":212},{"style":150},[213],{"type":78,"value":214}," default",{"type":67,"tag":143,"props":216,"children":218},{"style":217},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[219],{"type":78,"value":220}," defineEventHandler",{"type":67,"tag":143,"props":222,"children":223},{"style":162},[224],{"type":78,"value":225},"(",{"type":67,"tag":143,"props":227,"children":229},{"style":228},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[230],{"type":78,"value":231},"async",{"type":67,"tag":143,"props":233,"children":234},{"style":156},[235],{"type":78,"value":236}," (",{"type":67,"tag":143,"props":238,"children":240},{"style":239},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[241],{"type":78,"value":242},"event",{"type":67,"tag":143,"props":244,"children":245},{"style":156},[246],{"type":78,"value":247},")",{"type":67,"tag":143,"props":249,"children":250},{"style":228},[251],{"type":78,"value":252}," =>",{"type":67,"tag":143,"props":254,"children":255},{"style":156},[256],{"type":78,"value":257}," {\n",{"type":67,"tag":143,"props":259,"children":261},{"class":145,"line":260},4,[262,267,272,276,281,285],{"type":67,"tag":143,"props":263,"children":264},{"style":150},[265],{"type":78,"value":266}," return",{"type":67,"tag":143,"props":268,"children":269},{"style":150},[270],{"type":78,"value":271}," await",{"type":67,"tag":143,"props":273,"children":274},{"style":217},[275],{"type":78,"value":165},{"type":67,"tag":143,"props":277,"children":279},{"style":278},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[280],{"type":78,"value":225},{"type":67,"tag":143,"props":282,"children":283},{"style":162},[284],{"type":78,"value":242},{"type":67,"tag":143,"props":286,"children":287},{"style":278},[288],{"type":78,"value":289},")\n",{"type":67,"tag":143,"props":291,"children":293},{"class":145,"line":292},5,[294,299],{"type":67,"tag":143,"props":295,"children":296},{"style":156},[297],{"type":78,"value":298},"}",{"type":67,"tag":143,"props":300,"children":301},{"style":162},[302],{"type":78,"value":289},{"type":67,"tag":74,"props":304,"children":305},{},[306],{"type":78,"value":307},"Then call your api route from any vue file:",{"type":67,"tag":132,"props":309,"children":312},{"className":134,"code":310,"filename":311,"language":137,"meta":61,"style":61},"const user = ref(null)\n\nconst fetchMe = async () => {\n user.value = await $fetch('/api/me')\n}\n","pages/index.vue",[313],{"type":67,"tag":117,"props":314,"children":315},{"__ignoreMap":61},[316,352,359,393,446],{"type":67,"tag":143,"props":317,"children":318},{"class":145,"line":146},[319,324,329,334,339,343,348],{"type":67,"tag":143,"props":320,"children":321},{"style":228},[322],{"type":78,"value":323},"const",{"type":67,"tag":143,"props":325,"children":326},{"style":162},[327],{"type":78,"value":328}," user ",{"type":67,"tag":143,"props":330,"children":331},{"style":156},[332],{"type":78,"value":333},"=",{"type":67,"tag":143,"props":335,"children":336},{"style":217},[337],{"type":78,"value":338}," ref",{"type":67,"tag":143,"props":340,"children":341},{"style":162},[342],{"type":78,"value":225},{"type":67,"tag":143,"props":344,"children":345},{"style":156},[346],{"type":78,"value":347},"null",{"type":67,"tag":143,"props":349,"children":350},{"style":162},[351],{"type":78,"value":289},{"type":67,"tag":143,"props":353,"children":354},{"class":145,"line":193},[355],{"type":67,"tag":143,"props":356,"children":357},{"emptyLinePlaceholder":197},[358],{"type":78,"value":200},{"type":67,"tag":143,"props":360,"children":361},{"class":145,"line":203},[362,366,371,375,380,385,389],{"type":67,"tag":143,"props":363,"children":364},{"style":228},[365],{"type":78,"value":323},{"type":67,"tag":143,"props":367,"children":368},{"style":162},[369],{"type":78,"value":370}," fetchMe ",{"type":67,"tag":143,"props":372,"children":373},{"style":156},[374],{"type":78,"value":333},{"type":67,"tag":143,"props":376,"children":377},{"style":228},[378],{"type":78,"value":379}," async",{"type":67,"tag":143,"props":381,"children":382},{"style":156},[383],{"type":78,"value":384}," ()",{"type":67,"tag":143,"props":386,"children":387},{"style":228},[388],{"type":78,"value":252},{"type":67,"tag":143,"props":390,"children":391},{"style":156},[392],{"type":78,"value":257},{"type":67,"tag":143,"props":394,"children":395},{"class":145,"line":260},[396,401,405,410,415,419,424,428,433,438,442],{"type":67,"tag":143,"props":397,"children":398},{"style":162},[399],{"type":78,"value":400}," user",{"type":67,"tag":143,"props":402,"children":403},{"style":156},[404],{"type":78,"value":110},{"type":67,"tag":143,"props":406,"children":407},{"style":162},[408],{"type":78,"value":409},"value",{"type":67,"tag":143,"props":411,"children":412},{"style":156},[413],{"type":78,"value":414}," =",{"type":67,"tag":143,"props":416,"children":417},{"style":150},[418],{"type":78,"value":271},{"type":67,"tag":143,"props":420,"children":421},{"style":217},[422],{"type":78,"value":423}," $fetch",{"type":67,"tag":143,"props":425,"children":426},{"style":278},[427],{"type":78,"value":225},{"type":67,"tag":143,"props":429,"children":430},{"style":156},[431],{"type":78,"value":432},"'",{"type":67,"tag":143,"props":434,"children":435},{"style":183},[436],{"type":78,"value":437},"/api/me",{"type":67,"tag":143,"props":439,"children":440},{"style":156},[441],{"type":78,"value":432},{"type":67,"tag":143,"props":443,"children":444},{"style":278},[445],{"type":78,"value":289},{"type":67,"tag":143,"props":447,"children":448},{"class":145,"line":292},[449],{"type":67,"tag":143,"props":450,"children":451},{"style":156},[452],{"type":78,"value":453},"}\n",{"type":67,"tag":74,"props":455,"children":456},{},[457,459,466],{"type":78,"value":458},"Be careful, if you want to call this route on SSR, please read this ",{"type":67,"tag":81,"props":460,"children":463},{"href":461,"rel":462},"https://nuxt.com/docs/getting-started/data-fetching#isomorphic-fetch-and-fetch",[85],[464],{"type":78,"value":465},"section",{"type":78,"value":467},", you must send your browser cookies including your supabase token.",{"type":67,"tag":132,"props":469,"children":471},{"className":134,"code":470,"filename":311,"language":137,"meta":61,"style":61},"const user = ref(null)\n\nconst { data } = await useFetch('/api/me', {\n headers: useRequestHeaders(['cookie'])\n})\n\nuser.value = data\n",[472],{"type":67,"tag":117,"props":473,"children":474},{"__ignoreMap":61},[475,506,513,571,612,623,631],{"type":67,"tag":143,"props":476,"children":477},{"class":145,"line":146},[478,482,486,490,494,498,502],{"type":67,"tag":143,"props":479,"children":480},{"style":228},[481],{"type":78,"value":323},{"type":67,"tag":143,"props":483,"children":484},{"style":162},[485],{"type":78,"value":328},{"type":67,"tag":143,"props":487,"children":488},{"style":156},[489],{"type":78,"value":333},{"type":67,"tag":143,"props":491,"children":492},{"style":217},[493],{"type":78,"value":338},{"type":67,"tag":143,"props":495,"children":496},{"style":162},[497],{"type":78,"value":225},{"type":67,"tag":143,"props":499,"children":500},{"style":156},[501],{"type":78,"value":347},{"type":67,"tag":143,"props":503,"children":504},{"style":162},[505],{"type":78,"value":289},{"type":67,"tag":143,"props":507,"children":508},{"class":145,"line":193},[509],{"type":67,"tag":143,"props":510,"children":511},{"emptyLinePlaceholder":197},[512],{"type":78,"value":200},{"type":67,"tag":143,"props":514,"children":515},{"class":145,"line":203},[516,520,524,529,533,537,541,546,550,554,558,562,567],{"type":67,"tag":143,"props":517,"children":518},{"style":228},[519],{"type":78,"value":323},{"type":67,"tag":143,"props":521,"children":522},{"style":156},[523],{"type":78,"value":159},{"type":67,"tag":143,"props":525,"children":526},{"style":162},[527],{"type":78,"value":528}," data ",{"type":67,"tag":143,"props":530,"children":531},{"style":156},[532],{"type":78,"value":298},{"type":67,"tag":143,"props":534,"children":535},{"style":156},[536],{"type":78,"value":414},{"type":67,"tag":143,"props":538,"children":539},{"style":150},[540],{"type":78,"value":271},{"type":67,"tag":143,"props":542,"children":543},{"style":217},[544],{"type":78,"value":545}," useFetch",{"type":67,"tag":143,"props":547,"children":548},{"style":162},[549],{"type":78,"value":225},{"type":67,"tag":143,"props":551,"children":552},{"style":156},[553],{"type":78,"value":432},{"type":67,"tag":143,"props":555,"children":556},{"style":183},[557],{"type":78,"value":437},{"type":67,"tag":143,"props":559,"children":560},{"style":156},[561],{"type":78,"value":432},{"type":67,"tag":143,"props":563,"children":564},{"style":156},[565],{"type":78,"value":566},",",{"type":67,"tag":143,"props":568,"children":569},{"style":156},[570],{"type":78,"value":257},{"type":67,"tag":143,"props":572,"children":573},{"class":145,"line":260},[574,579,584,589,594,598,603,607],{"type":67,"tag":143,"props":575,"children":576},{"style":278},[577],{"type":78,"value":578}," headers",{"type":67,"tag":143,"props":580,"children":581},{"style":156},[582],{"type":78,"value":583},":",{"type":67,"tag":143,"props":585,"children":586},{"style":217},[587],{"type":78,"value":588}," useRequestHeaders",{"type":67,"tag":143,"props":590,"children":591},{"style":162},[592],{"type":78,"value":593},"([",{"type":67,"tag":143,"props":595,"children":596},{"style":156},[597],{"type":78,"value":432},{"type":67,"tag":143,"props":599,"children":600},{"style":183},[601],{"type":78,"value":602},"cookie",{"type":67,"tag":143,"props":604,"children":605},{"style":156},[606],{"type":78,"value":432},{"type":67,"tag":143,"props":608,"children":609},{"style":162},[610],{"type":78,"value":611},"])\n",{"type":67,"tag":143,"props":613,"children":614},{"class":145,"line":292},[615,619],{"type":67,"tag":143,"props":616,"children":617},{"style":156},[618],{"type":78,"value":298},{"type":67,"tag":143,"props":620,"children":621},{"style":162},[622],{"type":78,"value":289},{"type":67,"tag":143,"props":624,"children":626},{"class":145,"line":625},6,[627],{"type":67,"tag":143,"props":628,"children":629},{"emptyLinePlaceholder":197},[630],{"type":78,"value":200},{"type":67,"tag":143,"props":632,"children":634},{"class":145,"line":633},7,[635,640,644,649,653],{"type":67,"tag":143,"props":636,"children":637},{"style":162},[638],{"type":78,"value":639},"user",{"type":67,"tag":143,"props":641,"children":642},{"style":156},[643],{"type":78,"value":110},{"type":67,"tag":143,"props":645,"children":646},{"style":162},[647],{"type":78,"value":648},"value ",{"type":67,"tag":143,"props":650,"children":651},{"style":156},[652],{"type":78,"value":333},{"type":67,"tag":143,"props":654,"children":655},{"style":162},[656],{"type":78,"value":657}," data\n",{"type":67,"tag":659,"props":660,"children":661},"style",{},[662],{"type":78,"value":663},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":61,"searchDepth":193,"depth":193,"links":665},[],"markdown","content:4.usage:services:4.serverSupabaseUser.md","content","4.usage/services/4.serverSupabaseUser.md","4.usage/services/4.serverSupabaseUser","md",[673,675],{"_path":41,"title":40,"description":674},"Get your Supabase user's session from serverside with the serverSupabaseUser service",{"_path":48,"title":47,"description":676},"Demonstration of using Supabase with Nuxt.",1725006469594] \ No newline at end of file +[{"data":1,"prerenderedAt":677},["ShallowReactive",2],{"navigation":3,"/usage/services/serversupabaseuser":58,"/usage/services/serversupabaseuser-surround":672},[4,8,12,46,50,54],{"title":5,"_path":6,"icon":7},"Get Started","/get-started","i-heroicons-rocket-launch",{"title":9,"_path":10,"icon":11},"Authentication","/authentication","i-heroicons-lock-closed",{"title":13,"_path":14,"children":15,"icon":45},"Usage","/usage",[16,29],{"title":17,"_path":18,"children":19},"Vue composables","/usage/composables",[20,23,26],{"title":21,"_path":22},"useSupabaseClient","/usage/composables/usesupabaseclient",{"title":24,"_path":25},"useSupabaseSession","/usage/composables/usesupabasesession",{"title":27,"_path":28},"useSupabaseUser","/usage/composables/usesupabaseuser",{"title":30,"_path":31,"children":32},"Server services","/usage/services",[33,36,39,42],{"title":34,"_path":35},"serverSupabaseClient","/usage/services/serversupabaseclient",{"title":37,"_path":38},"serverSupabaseServiceRole","/usage/services/serversupabaseservicerole",{"title":40,"_path":41},"serverSupabaseSession","/usage/services/serversupabasesession",{"title":43,"_path":44},"serverSupabaseUser","/usage/services/serversupabaseuser","heroicons:book-open",{"title":47,"_path":48,"icon":49},"Demo","/demo","i-heroicons-computer-desktop-20-solid",{"title":51,"_path":52,"icon":53},"Changelog","/changelog","i-heroicons-bookmark",{"title":55,"_path":56,"icon":57},"Roadmap","/roadmap","i-heroicons-map",{"_path":44,"_dir":59,"_draft":60,"_partial":60,"_locale":61,"title":43,"description":62,"body":63,"_type":666,"_id":667,"_source":668,"_file":669,"_stem":670,"_extension":671},"services",false,"","Get your Supabase user from serverside with the serverSupabaseUser service",{"type":64,"children":65,"toc":664},"root",[66,91,111,131,303,308,454,468,658],{"type":67,"tag":68,"props":69,"children":72},"element","callout",{"color":70,"icon":71},"amber","i-heroicons-exclamation-triangle-20-solid",[73],{"type":67,"tag":74,"props":75,"children":76},"p",{},[77,80,89],{"type":78,"value":79},"text","This section assumes you're familiar with ",{"type":67,"tag":81,"props":82,"children":86},"a",{"href":83,"rel":84},"https://v3.nuxtjs.org/guide/concepts/server-engine",[85],"nofollow",[87],{"type":78,"value":88},"Nitro",{"type":78,"value":90},", the server engine powered by Nuxt.",{"type":67,"tag":74,"props":92,"children":93},{},[94,96,100,102,109],{"type":78,"value":95},"This function is similar to the ",{"type":67,"tag":81,"props":97,"children":98},{"href":28},[99],{"type":78,"value":27},{"type":78,"value":101}," composable but is used in ",{"type":67,"tag":81,"props":103,"children":106},{"href":104,"rel":105},"https://nuxt.com/docs/guide/directory-structure/server#server-routes",[85],[107],{"type":78,"value":108},"server routes",{"type":78,"value":110},".",{"type":67,"tag":74,"props":112,"children":113},{},[114,116,122,124,130],{"type":78,"value":115},"Define your server route and import the ",{"type":67,"tag":117,"props":118,"children":120},"code",{"className":119},[],[121],{"type":78,"value":43},{"type":78,"value":123}," from ",{"type":67,"tag":117,"props":125,"children":127},{"className":126},[],[128],{"type":78,"value":129},"#supabase/server",{"type":78,"value":110},{"type":67,"tag":132,"props":133,"children":138},"pre",{"className":134,"code":135,"filename":136,"language":137,"meta":61,"style":61},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { serverSupabaseUser } from '#supabase/server'\n\nexport default defineEventHandler(async (event) => {\n return await serverSupabaseUser(event)\n})\n","server/api/me.ts","ts",[139],{"type":67,"tag":117,"props":140,"children":141},{"__ignoreMap":61},[142,191,201,258,290],{"type":67,"tag":143,"props":144,"children":147},"span",{"class":145,"line":146},"line",1,[148,154,160,166,171,176,181,186],{"type":67,"tag":143,"props":149,"children":151},{"style":150},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[152],{"type":78,"value":153},"import",{"type":67,"tag":143,"props":155,"children":157},{"style":156},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[158],{"type":78,"value":159}," {",{"type":67,"tag":143,"props":161,"children":163},{"style":162},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[164],{"type":78,"value":165}," serverSupabaseUser",{"type":67,"tag":143,"props":167,"children":168},{"style":156},[169],{"type":78,"value":170}," }",{"type":67,"tag":143,"props":172,"children":173},{"style":150},[174],{"type":78,"value":175}," from",{"type":67,"tag":143,"props":177,"children":178},{"style":156},[179],{"type":78,"value":180}," '",{"type":67,"tag":143,"props":182,"children":184},{"style":183},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[185],{"type":78,"value":129},{"type":67,"tag":143,"props":187,"children":188},{"style":156},[189],{"type":78,"value":190},"'\n",{"type":67,"tag":143,"props":192,"children":194},{"class":145,"line":193},2,[195],{"type":67,"tag":143,"props":196,"children":198},{"emptyLinePlaceholder":197},true,[199],{"type":78,"value":200},"\n",{"type":67,"tag":143,"props":202,"children":204},{"class":145,"line":203},3,[205,210,215,221,226,232,237,243,248,253],{"type":67,"tag":143,"props":206,"children":207},{"style":150},[208],{"type":78,"value":209},"export",{"type":67,"tag":143,"props":211,"children":212},{"style":150},[213],{"type":78,"value":214}," default",{"type":67,"tag":143,"props":216,"children":218},{"style":217},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[219],{"type":78,"value":220}," defineEventHandler",{"type":67,"tag":143,"props":222,"children":223},{"style":162},[224],{"type":78,"value":225},"(",{"type":67,"tag":143,"props":227,"children":229},{"style":228},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[230],{"type":78,"value":231},"async",{"type":67,"tag":143,"props":233,"children":234},{"style":156},[235],{"type":78,"value":236}," (",{"type":67,"tag":143,"props":238,"children":240},{"style":239},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[241],{"type":78,"value":242},"event",{"type":67,"tag":143,"props":244,"children":245},{"style":156},[246],{"type":78,"value":247},")",{"type":67,"tag":143,"props":249,"children":250},{"style":228},[251],{"type":78,"value":252}," =>",{"type":67,"tag":143,"props":254,"children":255},{"style":156},[256],{"type":78,"value":257}," {\n",{"type":67,"tag":143,"props":259,"children":261},{"class":145,"line":260},4,[262,267,272,276,281,285],{"type":67,"tag":143,"props":263,"children":264},{"style":150},[265],{"type":78,"value":266}," return",{"type":67,"tag":143,"props":268,"children":269},{"style":150},[270],{"type":78,"value":271}," await",{"type":67,"tag":143,"props":273,"children":274},{"style":217},[275],{"type":78,"value":165},{"type":67,"tag":143,"props":277,"children":279},{"style":278},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[280],{"type":78,"value":225},{"type":67,"tag":143,"props":282,"children":283},{"style":162},[284],{"type":78,"value":242},{"type":67,"tag":143,"props":286,"children":287},{"style":278},[288],{"type":78,"value":289},")\n",{"type":67,"tag":143,"props":291,"children":293},{"class":145,"line":292},5,[294,299],{"type":67,"tag":143,"props":295,"children":296},{"style":156},[297],{"type":78,"value":298},"}",{"type":67,"tag":143,"props":300,"children":301},{"style":162},[302],{"type":78,"value":289},{"type":67,"tag":74,"props":304,"children":305},{},[306],{"type":78,"value":307},"Then call your api route from any vue file:",{"type":67,"tag":132,"props":309,"children":312},{"className":134,"code":310,"filename":311,"language":137,"meta":61,"style":61},"const user = ref(null)\n\nconst fetchMe = async () => {\n user.value = await $fetch('/api/me')\n}\n","pages/index.vue",[313],{"type":67,"tag":117,"props":314,"children":315},{"__ignoreMap":61},[316,352,359,393,446],{"type":67,"tag":143,"props":317,"children":318},{"class":145,"line":146},[319,324,329,334,339,343,348],{"type":67,"tag":143,"props":320,"children":321},{"style":228},[322],{"type":78,"value":323},"const",{"type":67,"tag":143,"props":325,"children":326},{"style":162},[327],{"type":78,"value":328}," user ",{"type":67,"tag":143,"props":330,"children":331},{"style":156},[332],{"type":78,"value":333},"=",{"type":67,"tag":143,"props":335,"children":336},{"style":217},[337],{"type":78,"value":338}," ref",{"type":67,"tag":143,"props":340,"children":341},{"style":162},[342],{"type":78,"value":225},{"type":67,"tag":143,"props":344,"children":345},{"style":156},[346],{"type":78,"value":347},"null",{"type":67,"tag":143,"props":349,"children":350},{"style":162},[351],{"type":78,"value":289},{"type":67,"tag":143,"props":353,"children":354},{"class":145,"line":193},[355],{"type":67,"tag":143,"props":356,"children":357},{"emptyLinePlaceholder":197},[358],{"type":78,"value":200},{"type":67,"tag":143,"props":360,"children":361},{"class":145,"line":203},[362,366,371,375,380,385,389],{"type":67,"tag":143,"props":363,"children":364},{"style":228},[365],{"type":78,"value":323},{"type":67,"tag":143,"props":367,"children":368},{"style":162},[369],{"type":78,"value":370}," fetchMe ",{"type":67,"tag":143,"props":372,"children":373},{"style":156},[374],{"type":78,"value":333},{"type":67,"tag":143,"props":376,"children":377},{"style":228},[378],{"type":78,"value":379}," async",{"type":67,"tag":143,"props":381,"children":382},{"style":156},[383],{"type":78,"value":384}," ()",{"type":67,"tag":143,"props":386,"children":387},{"style":228},[388],{"type":78,"value":252},{"type":67,"tag":143,"props":390,"children":391},{"style":156},[392],{"type":78,"value":257},{"type":67,"tag":143,"props":394,"children":395},{"class":145,"line":260},[396,401,405,410,415,419,424,428,433,438,442],{"type":67,"tag":143,"props":397,"children":398},{"style":162},[399],{"type":78,"value":400}," user",{"type":67,"tag":143,"props":402,"children":403},{"style":156},[404],{"type":78,"value":110},{"type":67,"tag":143,"props":406,"children":407},{"style":162},[408],{"type":78,"value":409},"value",{"type":67,"tag":143,"props":411,"children":412},{"style":156},[413],{"type":78,"value":414}," =",{"type":67,"tag":143,"props":416,"children":417},{"style":150},[418],{"type":78,"value":271},{"type":67,"tag":143,"props":420,"children":421},{"style":217},[422],{"type":78,"value":423}," $fetch",{"type":67,"tag":143,"props":425,"children":426},{"style":278},[427],{"type":78,"value":225},{"type":67,"tag":143,"props":429,"children":430},{"style":156},[431],{"type":78,"value":432},"'",{"type":67,"tag":143,"props":434,"children":435},{"style":183},[436],{"type":78,"value":437},"/api/me",{"type":67,"tag":143,"props":439,"children":440},{"style":156},[441],{"type":78,"value":432},{"type":67,"tag":143,"props":443,"children":444},{"style":278},[445],{"type":78,"value":289},{"type":67,"tag":143,"props":447,"children":448},{"class":145,"line":292},[449],{"type":67,"tag":143,"props":450,"children":451},{"style":156},[452],{"type":78,"value":453},"}\n",{"type":67,"tag":74,"props":455,"children":456},{},[457,459,466],{"type":78,"value":458},"Be careful, if you want to call this route on SSR, please read this ",{"type":67,"tag":81,"props":460,"children":463},{"href":461,"rel":462},"https://nuxt.com/docs/getting-started/data-fetching#isomorphic-fetch-and-fetch",[85],[464],{"type":78,"value":465},"section",{"type":78,"value":467},", you must send your browser cookies including your supabase token.",{"type":67,"tag":132,"props":469,"children":471},{"className":134,"code":470,"filename":311,"language":137,"meta":61,"style":61},"const user = ref(null)\n\nconst { data } = await useFetch('/api/me', {\n headers: useRequestHeaders(['cookie'])\n})\n\nuser.value = data\n",[472],{"type":67,"tag":117,"props":473,"children":474},{"__ignoreMap":61},[475,506,513,571,612,623,631],{"type":67,"tag":143,"props":476,"children":477},{"class":145,"line":146},[478,482,486,490,494,498,502],{"type":67,"tag":143,"props":479,"children":480},{"style":228},[481],{"type":78,"value":323},{"type":67,"tag":143,"props":483,"children":484},{"style":162},[485],{"type":78,"value":328},{"type":67,"tag":143,"props":487,"children":488},{"style":156},[489],{"type":78,"value":333},{"type":67,"tag":143,"props":491,"children":492},{"style":217},[493],{"type":78,"value":338},{"type":67,"tag":143,"props":495,"children":496},{"style":162},[497],{"type":78,"value":225},{"type":67,"tag":143,"props":499,"children":500},{"style":156},[501],{"type":78,"value":347},{"type":67,"tag":143,"props":503,"children":504},{"style":162},[505],{"type":78,"value":289},{"type":67,"tag":143,"props":507,"children":508},{"class":145,"line":193},[509],{"type":67,"tag":143,"props":510,"children":511},{"emptyLinePlaceholder":197},[512],{"type":78,"value":200},{"type":67,"tag":143,"props":514,"children":515},{"class":145,"line":203},[516,520,524,529,533,537,541,546,550,554,558,562,567],{"type":67,"tag":143,"props":517,"children":518},{"style":228},[519],{"type":78,"value":323},{"type":67,"tag":143,"props":521,"children":522},{"style":156},[523],{"type":78,"value":159},{"type":67,"tag":143,"props":525,"children":526},{"style":162},[527],{"type":78,"value":528}," data ",{"type":67,"tag":143,"props":530,"children":531},{"style":156},[532],{"type":78,"value":298},{"type":67,"tag":143,"props":534,"children":535},{"style":156},[536],{"type":78,"value":414},{"type":67,"tag":143,"props":538,"children":539},{"style":150},[540],{"type":78,"value":271},{"type":67,"tag":143,"props":542,"children":543},{"style":217},[544],{"type":78,"value":545}," useFetch",{"type":67,"tag":143,"props":547,"children":548},{"style":162},[549],{"type":78,"value":225},{"type":67,"tag":143,"props":551,"children":552},{"style":156},[553],{"type":78,"value":432},{"type":67,"tag":143,"props":555,"children":556},{"style":183},[557],{"type":78,"value":437},{"type":67,"tag":143,"props":559,"children":560},{"style":156},[561],{"type":78,"value":432},{"type":67,"tag":143,"props":563,"children":564},{"style":156},[565],{"type":78,"value":566},",",{"type":67,"tag":143,"props":568,"children":569},{"style":156},[570],{"type":78,"value":257},{"type":67,"tag":143,"props":572,"children":573},{"class":145,"line":260},[574,579,584,589,594,598,603,607],{"type":67,"tag":143,"props":575,"children":576},{"style":278},[577],{"type":78,"value":578}," headers",{"type":67,"tag":143,"props":580,"children":581},{"style":156},[582],{"type":78,"value":583},":",{"type":67,"tag":143,"props":585,"children":586},{"style":217},[587],{"type":78,"value":588}," useRequestHeaders",{"type":67,"tag":143,"props":590,"children":591},{"style":162},[592],{"type":78,"value":593},"([",{"type":67,"tag":143,"props":595,"children":596},{"style":156},[597],{"type":78,"value":432},{"type":67,"tag":143,"props":599,"children":600},{"style":183},[601],{"type":78,"value":602},"cookie",{"type":67,"tag":143,"props":604,"children":605},{"style":156},[606],{"type":78,"value":432},{"type":67,"tag":143,"props":608,"children":609},{"style":162},[610],{"type":78,"value":611},"])\n",{"type":67,"tag":143,"props":613,"children":614},{"class":145,"line":292},[615,619],{"type":67,"tag":143,"props":616,"children":617},{"style":156},[618],{"type":78,"value":298},{"type":67,"tag":143,"props":620,"children":621},{"style":162},[622],{"type":78,"value":289},{"type":67,"tag":143,"props":624,"children":626},{"class":145,"line":625},6,[627],{"type":67,"tag":143,"props":628,"children":629},{"emptyLinePlaceholder":197},[630],{"type":78,"value":200},{"type":67,"tag":143,"props":632,"children":634},{"class":145,"line":633},7,[635,640,644,649,653],{"type":67,"tag":143,"props":636,"children":637},{"style":162},[638],{"type":78,"value":639},"user",{"type":67,"tag":143,"props":641,"children":642},{"style":156},[643],{"type":78,"value":110},{"type":67,"tag":143,"props":645,"children":646},{"style":162},[647],{"type":78,"value":648},"value ",{"type":67,"tag":143,"props":650,"children":651},{"style":156},[652],{"type":78,"value":333},{"type":67,"tag":143,"props":654,"children":655},{"style":162},[656],{"type":78,"value":657}," data\n",{"type":67,"tag":659,"props":660,"children":661},"style",{},[662],{"type":78,"value":663},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":61,"searchDepth":193,"depth":193,"links":665},[],"markdown","content:4.usage:services:4.serverSupabaseUser.md","content","4.usage/services/4.serverSupabaseUser.md","4.usage/services/4.serverSupabaseUser","md",[673,675],{"_path":41,"title":40,"description":674},"Get your Supabase user's session from serverside with the serverSupabaseUser service",{"_path":48,"title":47,"description":676},"Demonstration of using Supabase with Nuxt.",1725013745858] \ No newline at end of file diff --git a/usage/services/serversupabaseuser/index.html b/usage/services/serversupabaseuser/index.html index db52216d9..9da63ea53 100644 --- a/usage/services/serversupabaseuser/index.html +++ b/usage/services/serversupabaseuser/index.html @@ -61,49 +61,49 @@ - - - - - - - + + + + + + + - - - - - - - - - - - - - - + + + + + + + + + + + + + + - + - - - - - - - + + + + + + + - - + + - + -
mobile favicon
Services

serverSupabaseUser

Get your Supabase user from serverside with the serverSupabaseUser service
This section assumes you're familiar with Nitro, the server engine powered by Nuxt.

This function is similar to the useSupabaseUser composable but is used in server routes.

Define your server route and import the serverSupabaseUser from #supabase/server.

server/api/me.ts
import { serverSupabaseUser } from '#supabase/server'
+
mobile favicon
Services

serverSupabaseUser

Get your Supabase user from serverside with the serverSupabaseUser service
This section assumes you're familiar with Nitro, the server engine powered by Nuxt.

This function is similar to the useSupabaseUser composable but is used in server routes.

Define your server route and import the serverSupabaseUser from #supabase/server.

server/api/me.ts
import { serverSupabaseUser } from '#supabase/server'
 
 export default defineEventHandler(async (event) => {
   return await serverSupabaseUser(event)
@@ -121,5 +121,5 @@
 
 user.value = data
 

Made with Nuxt Studio
- - \ No newline at end of file + + \ No newline at end of file