zudoku 0.47.0 → 0.47.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (140) hide show
  1. package/dist/app/ZuploBuildConfig.d.ts +21 -21
  2. package/dist/app/ZuploBuildConfig.js +7 -7
  3. package/dist/app/ZuploBuildConfig.js.map +1 -1
  4. package/dist/app/entry.client.d.ts +0 -2
  5. package/dist/app/entry.client.js +0 -2
  6. package/dist/app/entry.client.js.map +1 -1
  7. package/dist/app/entry.server.d.ts +0 -2
  8. package/dist/app/entry.server.js +0 -2
  9. package/dist/app/entry.server.js.map +1 -1
  10. package/dist/app/env.d.ts +7 -7
  11. package/dist/app/env.js +8 -0
  12. package/dist/app/env.js.map +1 -1
  13. package/dist/app/main.d.ts +1 -0
  14. package/dist/app/main.js +3 -2
  15. package/dist/app/main.js.map +1 -1
  16. package/dist/config/validators/validate.d.ts +319 -76
  17. package/dist/config/validators/validate.js +33 -11
  18. package/dist/config/validators/validate.js.map +1 -1
  19. package/dist/lib/auth/issuer.js +4 -1
  20. package/dist/lib/auth/issuer.js.map +1 -1
  21. package/dist/lib/auth/issuer.test.js +14 -1
  22. package/dist/lib/auth/issuer.test.js.map +1 -1
  23. package/dist/lib/authentication/components/CallbackHandler.js +1 -1
  24. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  25. package/dist/lib/components/Framed.d.ts +7 -0
  26. package/dist/lib/components/Framed.js +26 -0
  27. package/dist/lib/components/Framed.js.map +1 -0
  28. package/dist/lib/components/MobileTopNavigation.js +2 -1
  29. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  30. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +4 -4
  31. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  32. package/dist/lib/plugins/api-keys/index.js +1 -3
  33. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  34. package/dist/lib/plugins/openapi/schema/SchemaView.js +1 -1
  35. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  36. package/dist/lib/ui/CodeBlock.js +1 -1
  37. package/dist/lib/ui/CodeBlock.js.map +1 -1
  38. package/dist/lib/util/MdxComponents.d.ts +6 -0
  39. package/dist/lib/util/MdxComponents.js +4 -2
  40. package/dist/lib/util/MdxComponents.js.map +1 -1
  41. package/dist/vite/css/plugin.js +11 -0
  42. package/dist/vite/css/plugin.js.map +1 -1
  43. package/dist/vite/plugin-mdx.js +4 -2
  44. package/dist/vite/plugin-mdx.js.map +1 -1
  45. package/dist/vite/plugin-theme.d.ts +8 -0
  46. package/dist/vite/plugin-theme.js +223 -0
  47. package/dist/vite/plugin-theme.js.map +1 -0
  48. package/dist/vite/plugin-theme.test.d.ts +1 -0
  49. package/dist/vite/plugin-theme.test.js +270 -0
  50. package/dist/vite/plugin-theme.test.js.map +1 -0
  51. package/dist/vite/plugin.js +2 -4
  52. package/dist/vite/plugin.js.map +1 -1
  53. package/dist/vite/shadcn-registry.d.ts +45 -0
  54. package/dist/vite/shadcn-registry.js +29 -0
  55. package/dist/vite/shadcn-registry.js.map +1 -0
  56. package/lib/Drawer-BzkOKwgC.js.map +1 -1
  57. package/lib/{Markdown-BUE2ViaD.js → Markdown-C5j8kKSX.js} +444 -404
  58. package/lib/Markdown-C5j8kKSX.js.map +1 -0
  59. package/lib/{MdxPage-By4UkRkI.js → MdxPage-CKTMf1cR.js} +4 -4
  60. package/lib/{MdxPage-By4UkRkI.js.map → MdxPage-CKTMf1cR.js.map} +1 -1
  61. package/lib/{OasProvider-C6_Kx5O7.js → OasProvider-_GzmsbMg.js} +2 -2
  62. package/lib/{OasProvider-C6_Kx5O7.js.map → OasProvider-_GzmsbMg.js.map} +1 -1
  63. package/lib/{OperationList-BISd29LY.js → OperationList-BJAKaG5p.js} +6 -6
  64. package/lib/{OperationList-BISd29LY.js.map → OperationList-BJAKaG5p.js.map} +1 -1
  65. package/lib/{RouteGuard-CgmsSw7T.js → RouteGuard-B7GVW4oL.js} +2 -2
  66. package/lib/{RouteGuard-CgmsSw7T.js.map → RouteGuard-B7GVW4oL.js.map} +1 -1
  67. package/lib/{SchemaList-BqnRo5ov.js → SchemaList-Dgc0A8x5.js} +6 -6
  68. package/lib/{SchemaList-BqnRo5ov.js.map → SchemaList-Dgc0A8x5.js.map} +1 -1
  69. package/lib/{SchemaView-CtYJpxQI.js → SchemaView-DVx-jFN4.js} +13 -13
  70. package/lib/{SchemaView-CtYJpxQI.js.map → SchemaView-DVx-jFN4.js.map} +1 -1
  71. package/lib/{SignUp-CrjeBbqN.js → SignUp-CRIKdWt9.js} +2 -2
  72. package/lib/{SignUp-CrjeBbqN.js.map → SignUp-CRIKdWt9.js.map} +1 -1
  73. package/lib/{Slot-DANV2b7_.js → Slot-ITby_hMb.js} +4 -4
  74. package/lib/{Slot-DANV2b7_.js.map → Slot-ITby_hMb.js.map} +1 -1
  75. package/lib/{SyntaxHighlight-DtvR7RLF.js → SyntaxHighlight-CqKHkyEy.js} +2 -2
  76. package/lib/{SyntaxHighlight-DtvR7RLF.js.map → SyntaxHighlight-CqKHkyEy.js.map} +1 -1
  77. package/lib/{Toc-ClJBmdtI.js → Toc-Csq3UNtW.js} +2 -2
  78. package/lib/{Toc-ClJBmdtI.js.map → Toc-Csq3UNtW.js.map} +1 -1
  79. package/lib/{circular-pOdgLzpG.js → circular-BP4OrHFK.js} +2 -2
  80. package/lib/{circular-pOdgLzpG.js.map → circular-BP4OrHFK.js.map} +1 -1
  81. package/lib/clerk-yAKDC3Qz.js.map +1 -1
  82. package/lib/{createServer-qAtUf99r.js → createServer-zu4cDiPe.js} +5 -5
  83. package/lib/{createServer-qAtUf99r.js.map → createServer-zu4cDiPe.js.map} +1 -1
  84. package/lib/{errors-Bpodza84.js → errors-CPPSp5F4.js} +10 -10
  85. package/lib/{errors-Bpodza84.js.map → errors-CPPSp5F4.js.map} +1 -1
  86. package/lib/{hook-wIlTGE-2.js → hook-7wZANGJP.js} +2 -5
  87. package/lib/{hook-wIlTGE-2.js.map → hook-7wZANGJP.js.map} +1 -1
  88. package/lib/index-CrcNWbel.js.map +1 -1
  89. package/lib/{index-zddirpDj.js → index-DmNq2fbN.js} +226 -221
  90. package/lib/index-DmNq2fbN.js.map +1 -0
  91. package/lib/index-QzXzw_ra.js.map +1 -1
  92. package/lib/{index-RFzRn4fM.js → index-jWXxqkni.js} +9 -9
  93. package/lib/{index-RFzRn4fM.js.map → index-jWXxqkni.js.map} +1 -1
  94. package/lib/{mutation-C-kdA_1r.js → mutation-C1XCQTQL.js} +2 -2
  95. package/lib/{mutation-C-kdA_1r.js.map → mutation-C1XCQTQL.js.map} +1 -1
  96. package/lib/ui/CodeBlock.js +7 -7
  97. package/lib/ui/CodeBlock.js.map +1 -1
  98. package/lib/ui/SyntaxHighlight.js +2 -2
  99. package/lib/{useMutation-3Ph3x6En.js → useMutation-BKvPttRn.js} +3 -3
  100. package/lib/{useMutation-3Ph3x6En.js.map → useMutation-BKvPttRn.js.map} +1 -1
  101. package/lib/zudoku.auth-auth0.js +1 -1
  102. package/lib/zudoku.auth-azureb2c.js +2 -2
  103. package/lib/zudoku.auth-clerk.js +2 -2
  104. package/lib/zudoku.auth-openid.js +2 -2
  105. package/lib/zudoku.components.js +28 -27
  106. package/lib/zudoku.components.js.map +1 -1
  107. package/lib/zudoku.hooks.js +2 -2
  108. package/lib/zudoku.plugin-api-catalog.js +2 -2
  109. package/lib/zudoku.plugin-api-keys.js +68 -62
  110. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  111. package/lib/zudoku.plugin-custom-pages.js +1 -1
  112. package/lib/zudoku.plugin-markdown.js +1 -1
  113. package/lib/zudoku.plugin-openapi.js +2 -2
  114. package/lib/zudoku.plugin-search-pagefind.js +2 -2
  115. package/package.json +8 -8
  116. package/src/app/ZuploBuildConfig.ts +7 -7
  117. package/src/app/defaultTheme.css +68 -49
  118. package/src/app/entry.client.tsx +0 -2
  119. package/src/app/entry.server.tsx +0 -2
  120. package/src/app/env.ts +8 -0
  121. package/src/app/main.css +1 -52
  122. package/src/app/main.tsx +3 -2
  123. package/src/lib/auth/issuer.test.ts +17 -1
  124. package/src/lib/auth/issuer.ts +4 -1
  125. package/src/lib/authentication/components/CallbackHandler.tsx +1 -1
  126. package/src/lib/components/Framed.tsx +51 -0
  127. package/src/lib/components/MobileTopNavigation.tsx +4 -0
  128. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +11 -8
  129. package/src/lib/plugins/api-keys/index.tsx +1 -3
  130. package/src/lib/plugins/openapi/schema/SchemaView.tsx +1 -1
  131. package/src/lib/ui/CodeBlock.tsx +1 -1
  132. package/src/lib/util/MdxComponents.tsx +13 -2
  133. package/dist/vite/plugin-configure-tailwind.d.ts +0 -2
  134. package/dist/vite/plugin-configure-tailwind.js +0 -38
  135. package/dist/vite/plugin-configure-tailwind.js.map +0 -1
  136. package/dist/vite/plugin-theme-css.d.ts +0 -5
  137. package/dist/vite/plugin-theme-css.js +0 -77
  138. package/dist/vite/plugin-theme-css.js.map +0 -1
  139. package/lib/Markdown-BUE2ViaD.js.map +0 -1
  140. package/lib/index-zddirpDj.js.map +0 -1
@@ -1,7 +1,7 @@
1
1
  import { j as o } from "./jsx-runtime-C5mzlN2N.js";
2
- import { LogOutIcon as a } from "lucide-react";
3
- import { S as s, a as u, b as i } from "./SignUp-CrjeBbqN.js";
4
- import { d as l, j as c } from "./hook-wIlTGE-2.js";
2
+ import { LogOutIcon as n } from "lucide-react";
3
+ import { S as s, a as u, b as i } from "./SignUp-CRIKdWt9.js";
4
+ import { d as l, j as c } from "./hook-7wZANGJP.js";
5
5
  import { N as h } from "./chunk-DQRVZFIR-BblmKnHy.js";
6
6
  import { useZudoku as m } from "./zudoku.components.js";
7
7
  import { Z as p } from "./invariant-DAFpPywt.js";
@@ -28,7 +28,7 @@ class C {
28
28
  label: "Logout",
29
29
  path: "/signout",
30
30
  category: "bottom",
31
- icon: a
31
+ icon: n
32
32
  }
33
33
  ];
34
34
  }
@@ -51,22 +51,22 @@ function E({
51
51
  r.basePath
52
52
  )
53
53
  );
54
- } catch (n) {
54
+ } catch (a) {
55
55
  throw new p("Could not validate user", {
56
- cause: n,
56
+ cause: a,
57
57
  title: "Authentication Error",
58
58
  developerHint: "Check the configuration of your authorization provider and ensure all settings such as the callback URL are configured correctly."
59
59
  });
60
60
  }
61
61
  }
62
62
  });
63
- return /* @__PURE__ */ o.jsx(h, { to: e.data });
63
+ return /* @__PURE__ */ o.jsx(h, { to: e.data, replace: !0 });
64
64
  }
65
65
  class f extends Error {
66
66
  }
67
67
  class w extends f {
68
- constructor(r, e, n) {
69
- super(r, n), this.error = e;
68
+ constructor(r, e, a) {
69
+ super(r, a), this.error = e;
70
70
  }
71
71
  }
72
72
  export {
@@ -75,4 +75,4 @@ export {
75
75
  w as O,
76
76
  E as a
77
77
  };
78
- //# sourceMappingURL=errors-Bpodza84.js.map
78
+ //# sourceMappingURL=errors-CPPSp5F4.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"errors-Bpodza84.js","sources":["../src/lib/authentication/AuthenticationPlugin.tsx","../src/lib/util/url.ts","../src/lib/authentication/components/CallbackHandler.tsx","../src/lib/authentication/errors.ts"],"sourcesContent":["import { LogOutIcon } from \"lucide-react\";\nimport {\n type CommonPlugin,\n type NavigationPlugin,\n type ProfileMenuPlugin,\n} from \"../core/plugins.js\";\nimport { SignIn } from \"./components/SignIn.js\";\nimport { SignOut } from \"./components/SignOut.js\";\nimport { SignUp } from \"./components/SignUp.js\";\n\ntype PluginInterface = NavigationPlugin & CommonPlugin & ProfileMenuPlugin;\n\nexport class CoreAuthenticationPlugin implements PluginInterface {\n getRoutes() {\n return [\n {\n path: \"/signout\",\n element: <SignOut />,\n },\n {\n path: \"/signin\",\n element: <SignIn />,\n },\n {\n path: \"/signup\",\n element: <SignUp />,\n },\n ];\n }\n\n getProfileMenuItems() {\n return [\n {\n label: \"Logout\",\n path: \"/signout\",\n category: \"bottom\",\n icon: LogOutIcon,\n } as const,\n ];\n }\n}\n","/**\n * Normalizes a redirect URL by removing the origin and optionally the root path\n */\nexport function normalizeRedirectUrl(\n redirectTo: string,\n origin: string,\n basePath: string = \"/\",\n): string {\n if (!redirectTo.startsWith(origin)) {\n return redirectTo;\n }\n\n if (basePath !== \"/\" && redirectTo.startsWith(origin + basePath)) {\n return redirectTo.slice(origin.length + basePath.length);\n }\n\n return redirectTo.slice(origin.length);\n}\n","import { useSuspenseQuery } from \"@tanstack/react-query\";\nimport { Navigate } from \"react-router\";\nimport { useZudoku } from \"zudoku/components\";\nimport { ZudokuError } from \"../../util/invariant.js\";\nimport { joinUrl } from \"../../util/joinUrl.js\";\nimport { normalizeRedirectUrl } from \"../../util/url.js\";\n\nexport function CallbackHandler({\n handleCallback,\n}: {\n handleCallback: () => Promise<string>;\n}) {\n const { options } = useZudoku();\n const executeCallback = useSuspenseQuery({\n retry: false,\n queryKey: [\"oauth-callback\"],\n queryFn: async () => {\n try {\n return joinUrl(\n normalizeRedirectUrl(\n await handleCallback(),\n window.location.origin,\n options.basePath,\n ),\n );\n } catch (error) {\n throw new ZudokuError(\"Could not validate user\", {\n cause: error,\n title: \"Authentication Error\",\n developerHint:\n \"Check the configuration of your authorization provider and ensure all settings such as the callback URL are configured correctly.\",\n });\n }\n },\n });\n\n return <Navigate to={executeCallback.data} />;\n}\n","export class AuthorizationError extends Error {}\n\ninterface OAuthError {\n readonly error: string;\n readonly error_description?: string;\n readonly error_uri?: string;\n readonly algs?: string;\n readonly scope?: string;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n readonly [parameter: string]: any | undefined;\n}\n\nexport class OAuthAuthorizationError extends AuthorizationError {\n constructor(\n message: string,\n public error: OAuthError,\n options?: ErrorOptions,\n ) {\n super(message, options);\n }\n}\n"],"names":["CoreAuthenticationPlugin","SignOut","SignIn","SignUp","LogOutIcon","normalizeRedirectUrl","redirectTo","origin","basePath","CallbackHandler","handleCallback","options","useZudoku","executeCallback","useSuspenseQuery","joinUrl","error","ZudokuError","jsx","Navigate","AuthorizationError","OAuthAuthorizationError","message"],"mappings":";;;;;;;AAYO,MAAMA,EAAoD;AAAA,EAC/D,YAAY;AACH,WAAA;AAAA,MACL;AAAA,QACE,MAAM;AAAA,QACN,+BAAUC,GAAQ,CAAA,CAAA;AAAA,MACpB;AAAA,MACA;AAAA,QACE,MAAM;AAAA,QACN,+BAAUC,GAAO,CAAA,CAAA;AAAA,MACnB;AAAA,MACA;AAAA,QACE,MAAM;AAAA,QACN,+BAAUC,GAAO,CAAA,CAAA;AAAA,MAAA;AAAA,IAErB;AAAA,EAAA;AAAA,EAGF,sBAAsB;AACb,WAAA;AAAA,MACL;AAAA,QACE,OAAO;AAAA,QACP,MAAM;AAAA,QACN,UAAU;AAAA,QACV,MAAMC;AAAA,MAAA;AAAA,IAEV;AAAA,EAAA;AAEJ;ACrCO,SAASC,EACdC,GACAC,GACAC,IAAmB,KACX;AACR,SAAKF,EAAW,WAAWC,CAAM,IAI7BC,MAAa,OAAOF,EAAW,WAAWC,IAASC,CAAQ,IACtDF,EAAW,MAAMC,EAAO,SAASC,EAAS,MAAM,IAGlDF,EAAW,MAAMC,EAAO,MAAM,IAP5BD;AAQX;ACVO,SAASG,EAAgB;AAAA,EAC9B,gBAAAC;AACF,GAEG;AACK,QAAA,EAAE,SAAAC,EAAQ,IAAIC,EAAU,GACxBC,IAAkBC,EAAiB;AAAA,IACvC,OAAO;AAAA,IACP,UAAU,CAAC,gBAAgB;AAAA,IAC3B,SAAS,YAAY;AACf,UAAA;AACK,eAAAC;AAAA,UACLV;AAAA,YACE,MAAMK,EAAe;AAAA,YACrB,OAAO,SAAS;AAAA,YAChBC,EAAQ;AAAA,UAAA;AAAA,QAEZ;AAAA,eACOK,GAAO;AACR,cAAA,IAAIC,EAAY,2BAA2B;AAAA,UAC/C,OAAOD;AAAA,UACP,OAAO;AAAA,UACP,eACE;AAAA,QAAA,CACH;AAAA,MAAA;AAAA,IACH;AAAA,EACF,CACD;AAED,SAAQE,gBAAAA,EAAAA,IAAAC,GAAA,EAAS,IAAIN,EAAgB,KAAM,CAAA;AAC7C;ACrCO,MAAMO,UAA2B,MAAM;AAAC;AAYxC,MAAMC,UAAgCD,EAAmB;AAAA,EAC9D,YACEE,GACON,GACPL,GACA;AACA,UAAMW,GAASX,CAAO,GAHf,KAAA,QAAAK;AAAA,EAAA;AAKX;"}
1
+ {"version":3,"file":"errors-CPPSp5F4.js","sources":["../src/lib/authentication/AuthenticationPlugin.tsx","../src/lib/util/url.ts","../src/lib/authentication/components/CallbackHandler.tsx","../src/lib/authentication/errors.ts"],"sourcesContent":["import { LogOutIcon } from \"lucide-react\";\nimport {\n type CommonPlugin,\n type NavigationPlugin,\n type ProfileMenuPlugin,\n} from \"../core/plugins.js\";\nimport { SignIn } from \"./components/SignIn.js\";\nimport { SignOut } from \"./components/SignOut.js\";\nimport { SignUp } from \"./components/SignUp.js\";\n\ntype PluginInterface = NavigationPlugin & CommonPlugin & ProfileMenuPlugin;\n\nexport class CoreAuthenticationPlugin implements PluginInterface {\n getRoutes() {\n return [\n {\n path: \"/signout\",\n element: <SignOut />,\n },\n {\n path: \"/signin\",\n element: <SignIn />,\n },\n {\n path: \"/signup\",\n element: <SignUp />,\n },\n ];\n }\n\n getProfileMenuItems() {\n return [\n {\n label: \"Logout\",\n path: \"/signout\",\n category: \"bottom\",\n icon: LogOutIcon,\n } as const,\n ];\n }\n}\n","/**\n * Normalizes a redirect URL by removing the origin and optionally the root path\n */\nexport function normalizeRedirectUrl(\n redirectTo: string,\n origin: string,\n basePath: string = \"/\",\n): string {\n if (!redirectTo.startsWith(origin)) {\n return redirectTo;\n }\n\n if (basePath !== \"/\" && redirectTo.startsWith(origin + basePath)) {\n return redirectTo.slice(origin.length + basePath.length);\n }\n\n return redirectTo.slice(origin.length);\n}\n","import { useSuspenseQuery } from \"@tanstack/react-query\";\nimport { Navigate } from \"react-router\";\nimport { useZudoku } from \"zudoku/components\";\nimport { ZudokuError } from \"../../util/invariant.js\";\nimport { joinUrl } from \"../../util/joinUrl.js\";\nimport { normalizeRedirectUrl } from \"../../util/url.js\";\n\nexport function CallbackHandler({\n handleCallback,\n}: {\n handleCallback: () => Promise<string>;\n}) {\n const { options } = useZudoku();\n const executeCallback = useSuspenseQuery({\n retry: false,\n queryKey: [\"oauth-callback\"],\n queryFn: async () => {\n try {\n return joinUrl(\n normalizeRedirectUrl(\n await handleCallback(),\n window.location.origin,\n options.basePath,\n ),\n );\n } catch (error) {\n throw new ZudokuError(\"Could not validate user\", {\n cause: error,\n title: \"Authentication Error\",\n developerHint:\n \"Check the configuration of your authorization provider and ensure all settings such as the callback URL are configured correctly.\",\n });\n }\n },\n });\n\n return <Navigate to={executeCallback.data} replace />;\n}\n","export class AuthorizationError extends Error {}\n\ninterface OAuthError {\n readonly error: string;\n readonly error_description?: string;\n readonly error_uri?: string;\n readonly algs?: string;\n readonly scope?: string;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n readonly [parameter: string]: any | undefined;\n}\n\nexport class OAuthAuthorizationError extends AuthorizationError {\n constructor(\n message: string,\n public error: OAuthError,\n options?: ErrorOptions,\n ) {\n super(message, options);\n }\n}\n"],"names":["CoreAuthenticationPlugin","SignOut","SignIn","SignUp","LogOutIcon","normalizeRedirectUrl","redirectTo","origin","basePath","CallbackHandler","handleCallback","options","useZudoku","executeCallback","useSuspenseQuery","joinUrl","error","ZudokuError","Navigate","AuthorizationError","OAuthAuthorizationError","message"],"mappings":";;;;;;;AAYO,MAAMA,EAAoD;AAAA,EAC/D,YAAY;AACH,WAAA;AAAA,MACL;AAAA,QACE,MAAM;AAAA,QACN,+BAAUC,GAAQ,CAAA,CAAA;AAAA,MACpB;AAAA,MACA;AAAA,QACE,MAAM;AAAA,QACN,+BAAUC,GAAO,CAAA,CAAA;AAAA,MACnB;AAAA,MACA;AAAA,QACE,MAAM;AAAA,QACN,+BAAUC,GAAO,CAAA,CAAA;AAAA,MAAA;AAAA,IAErB;AAAA,EAAA;AAAA,EAGF,sBAAsB;AACb,WAAA;AAAA,MACL;AAAA,QACE,OAAO;AAAA,QACP,MAAM;AAAA,QACN,UAAU;AAAA,QACV,MAAMC;AAAA,MAAA;AAAA,IAEV;AAAA,EAAA;AAEJ;ACrCO,SAASC,EACdC,GACAC,GACAC,IAAmB,KACX;AACR,SAAKF,EAAW,WAAWC,CAAM,IAI7BC,MAAa,OAAOF,EAAW,WAAWC,IAASC,CAAQ,IACtDF,EAAW,MAAMC,EAAO,SAASC,EAAS,MAAM,IAGlDF,EAAW,MAAMC,EAAO,MAAM,IAP5BD;AAQX;ACVO,SAASG,EAAgB;AAAA,EAC9B,gBAAAC;AACF,GAEG;AACK,QAAA,EAAE,SAAAC,EAAQ,IAAIC,EAAU,GACxBC,IAAkBC,EAAiB;AAAA,IACvC,OAAO;AAAA,IACP,UAAU,CAAC,gBAAgB;AAAA,IAC3B,SAAS,YAAY;AACf,UAAA;AACK,eAAAC;AAAA,UACLV;AAAA,YACE,MAAMK,EAAe;AAAA,YACrB,OAAO,SAAS;AAAA,YAChBC,EAAQ;AAAA,UAAA;AAAA,QAEZ;AAAA,eACOK,GAAO;AACR,cAAA,IAAIC,EAAY,2BAA2B;AAAA,UAC/C,OAAOD;AAAA,UACP,OAAO;AAAA,UACP,eACE;AAAA,QAAA,CACH;AAAA,MAAA;AAAA,IACH;AAAA,EACF,CACD;AAED,+BAAQE,GAAS,EAAA,IAAIL,EAAgB,MAAM,SAAO,IAAC;AACrD;ACrCO,MAAMM,UAA2B,MAAM;AAAC;AAYxC,MAAMC,UAAgCD,EAAmB;AAAA,EAC9D,YACEE,GACOL,GACPL,GACA;AACA,UAAMU,GAASV,CAAO,GAHf,KAAA,QAAAK;AAAA,EAAA;AAKX;"}
@@ -1231,10 +1231,7 @@ function Se(e, t) {
1231
1231
  const o = (u) => u === null ? null : JSON.parse(u, void 0), i = (a = s.getItem(n)) != null ? a : null;
1232
1232
  return i instanceof Promise ? i.then(o) : o(i);
1233
1233
  },
1234
- setItem: (n, a) => s.setItem(
1235
- n,
1236
- JSON.stringify(a, void 0)
1237
- ),
1234
+ setItem: (n, a) => s.setItem(n, JSON.stringify(a, void 0)),
1238
1235
  removeItem: (n) => s.removeItem(n)
1239
1236
  };
1240
1237
  }
@@ -1483,4 +1480,4 @@ export {
1483
1480
  Rt as y,
1484
1481
  Ot as z
1485
1482
  };
1486
- //# sourceMappingURL=hook-wIlTGE-2.js.map
1483
+ //# sourceMappingURL=hook-7wZANGJP.js.map