zudoku 0.33.1 → 0.34.0

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 (244) hide show
  1. package/dist/config/validators/common.d.ts +572 -354
  2. package/dist/config/validators/common.js +26 -8
  3. package/dist/config/validators/common.js.map +1 -1
  4. package/dist/config/validators/validate.d.ts +254 -167
  5. package/dist/lib/authentication/hook.d.ts +1 -0
  6. package/dist/lib/authentication/hook.js +11 -1
  7. package/dist/lib/authentication/hook.js.map +1 -1
  8. package/dist/lib/authentication/providers/clerk.js +6 -6
  9. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  10. package/dist/lib/components/AnchorLink.d.ts +2 -2
  11. package/dist/lib/components/AnchorLink.js +4 -4
  12. package/dist/lib/components/AnchorLink.js.map +1 -1
  13. package/dist/lib/components/Banner.js +1 -1
  14. package/dist/lib/components/Banner.js.map +1 -1
  15. package/dist/lib/components/Heading.d.ts +2 -2
  16. package/dist/lib/components/Layout.js +1 -1
  17. package/dist/lib/components/Layout.js.map +1 -1
  18. package/dist/lib/components/context/ZudokuContext.d.ts +1 -1
  19. package/dist/lib/components/index.d.ts +1 -0
  20. package/dist/lib/components/navigation/SidebarItem.js +6 -5
  21. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  22. package/dist/lib/core/RouteGuard.js +2 -1
  23. package/dist/lib/core/RouteGuard.js.map +1 -1
  24. package/dist/lib/core/ZudokuContext.d.ts +4 -0
  25. package/dist/lib/core/ZudokuContext.js.map +1 -1
  26. package/dist/lib/plugins/api-catalog/Catalog.d.ts +3 -1
  27. package/dist/lib/plugins/api-catalog/Catalog.js +7 -4
  28. package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -1
  29. package/dist/lib/plugins/api-catalog/index.js +1 -1
  30. package/dist/lib/plugins/api-catalog/index.js.map +1 -1
  31. package/dist/lib/plugins/markdown/MdxPage.js +1 -1
  32. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  33. package/dist/lib/plugins/openapi/OperationList.d.ts +1 -1
  34. package/dist/lib/plugins/openapi/OperationList.js +5 -1
  35. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  36. package/dist/lib/plugins/openapi/OperationListItem.d.ts +1 -1
  37. package/dist/lib/plugins/openapi/OperationListItem.js +6 -3
  38. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  39. package/dist/lib/plugins/openapi/ParameterList.d.ts +2 -1
  40. package/dist/lib/plugins/openapi/ParameterList.js +3 -2
  41. package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
  42. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +3 -1
  43. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  44. package/dist/lib/plugins/openapi/Sidecar.js +1 -1
  45. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  46. package/dist/lib/plugins/openapi/graphql/gql.d.ts +1 -1
  47. package/dist/lib/plugins/openapi/graphql/gql.js +1 -1
  48. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  49. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +1 -0
  50. package/dist/lib/plugins/openapi/graphql/graphql.js +2 -0
  51. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  52. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +2 -2
  53. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +1 -5
  54. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -1
  55. package/dist/lib/plugins/openapi/playground/Headers.js +1 -1
  56. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  57. package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +11 -0
  58. package/dist/lib/plugins/openapi/playground/IdentityDialog.js +14 -0
  59. package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -0
  60. package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +7 -0
  61. package/dist/lib/plugins/openapi/playground/IdentitySelector.js +10 -0
  62. package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -0
  63. package/dist/lib/plugins/openapi/playground/PathParams.d.ts +3 -2
  64. package/dist/lib/plugins/openapi/playground/PathParams.js +3 -2
  65. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  66. package/dist/lib/plugins/openapi/playground/Playground.d.ts +13 -2
  67. package/dist/lib/plugins/openapi/playground/Playground.js +80 -26
  68. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  69. package/dist/lib/plugins/openapi/playground/QueryParams.js +1 -1
  70. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  71. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +7 -0
  72. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +8 -0
  73. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -0
  74. package/dist/lib/plugins/openapi/playground/rememberedIdentity.d.ts +17 -0
  75. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js +11 -0
  76. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js.map +1 -0
  77. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +19 -13
  78. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
  79. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +6 -4
  80. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +4 -3
  81. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -1
  82. package/dist/lib/plugins/search-pagefind/PagefindSearch.d.ts +6 -0
  83. package/dist/lib/plugins/search-pagefind/PagefindSearch.js +66 -0
  84. package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -0
  85. package/dist/lib/plugins/search-pagefind/ResultList.d.ts +8 -0
  86. package/dist/lib/plugins/search-pagefind/ResultList.js +31 -0
  87. package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -0
  88. package/dist/lib/plugins/search-pagefind/get-results.d.ts +3 -0
  89. package/dist/lib/plugins/search-pagefind/get-results.js +37 -0
  90. package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -0
  91. package/dist/lib/plugins/search-pagefind/index.d.ts +8 -0
  92. package/dist/lib/plugins/search-pagefind/index.js +9 -0
  93. package/dist/lib/plugins/search-pagefind/index.js.map +1 -0
  94. package/dist/lib/plugins/search-pagefind/types.d.ts +85 -0
  95. package/dist/lib/plugins/search-pagefind/types.js +2 -0
  96. package/dist/lib/plugins/search-pagefind/types.js.map +1 -0
  97. package/dist/lib/ui/Checkbox.d.ts +2 -8
  98. package/dist/lib/ui/Checkbox.js +1 -13
  99. package/dist/lib/ui/Checkbox.js.map +1 -1
  100. package/dist/lib/ui/Command.d.ts +13 -7
  101. package/dist/lib/ui/Command.js +2 -2
  102. package/dist/lib/ui/Command.js.map +1 -1
  103. package/dist/lib/ui/Select.js +1 -1
  104. package/dist/lib/ui/Select.js.map +1 -1
  105. package/dist/lib/ui/SyntaxHighlight.d.ts +2 -1
  106. package/dist/lib/ui/SyntaxHighlight.js +19 -15
  107. package/dist/lib/ui/SyntaxHighlight.js.map +1 -1
  108. package/dist/lib/util/MdxComponents.d.ts +1 -1
  109. package/dist/lib/util/MdxComponents.js +2 -2
  110. package/dist/lib/util/MdxComponents.js.map +1 -1
  111. package/dist/lib/util/useScrollToAnchor.js +6 -8
  112. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  113. package/dist/vite/build.js +4 -0
  114. package/dist/vite/build.js.map +1 -1
  115. package/dist/vite/config.js +7 -2
  116. package/dist/vite/config.js.map +1 -1
  117. package/dist/vite/dev-server.js +8 -0
  118. package/dist/vite/dev-server.js.map +1 -1
  119. package/dist/vite/pagefind.d.ts +4 -0
  120. package/dist/vite/pagefind.js +15 -0
  121. package/dist/vite/pagefind.js.map +1 -0
  122. package/dist/vite/plugin-component.js +4 -0
  123. package/dist/vite/plugin-component.js.map +1 -1
  124. package/dist/vite/plugin-search.js +4 -0
  125. package/dist/vite/plugin-search.js.map +1 -1
  126. package/dist/vite/prerender/prerender.js +1 -1
  127. package/dist/vite/prerender/prerender.js.map +1 -1
  128. package/dist/vite/sitemap.js +2 -1
  129. package/dist/vite/sitemap.js.map +1 -1
  130. package/lib/{AuthenticationPlugin-CiO1FM6Q.js → AuthenticationPlugin-4ip08maU.js} +3 -3
  131. package/lib/{AuthenticationPlugin-CiO1FM6Q.js.map → AuthenticationPlugin-4ip08maU.js.map} +1 -1
  132. package/lib/Callout-B_sEhkYd.js +211 -0
  133. package/lib/Callout-B_sEhkYd.js.map +1 -0
  134. package/lib/{Dialog-DIKGQxQc.js → Dialog-sbgekbjb.js} +47 -32
  135. package/lib/{Dialog-DIKGQxQc.js.map → Dialog-sbgekbjb.js.map} +1 -1
  136. package/lib/{Markdown-DePfm7oQ.js → Markdown-DZXjQjpH.js} +4099 -3848
  137. package/lib/Markdown-DZXjQjpH.js.map +1 -0
  138. package/lib/MdxPage-52vRwa_7.js +200 -0
  139. package/lib/MdxPage-52vRwa_7.js.map +1 -0
  140. package/lib/{OasProvider-SzD9mHJc.js → OasProvider-CR2nG1Eg.js} +4 -4
  141. package/lib/{OasProvider-SzD9mHJc.js.map → OasProvider-CR2nG1Eg.js.map} +1 -1
  142. package/lib/{OperationList-DDs9NblY.js → OperationList-DndcCJUG.js} +2069 -1983
  143. package/lib/OperationList-DndcCJUG.js.map +1 -0
  144. package/lib/{Select-Dqtcn53H.js → Select-FAYHOYTy.js} +4 -4
  145. package/lib/{Select-Dqtcn53H.js.map → Select-FAYHOYTy.js.map} +1 -1
  146. package/lib/{SlotletProvider-DdtIOUi6.js → SlotletProvider-TydSHROc.js} +4 -4
  147. package/lib/{SlotletProvider-DdtIOUi6.js.map → SlotletProvider-TydSHROc.js.map} +1 -1
  148. package/lib/{chunk-IR6S3I6Y-D_3UmFIn.js → chunk-HA7DTUK3-ZGg2W6yV.js} +277 -277
  149. package/lib/chunk-HA7DTUK3-ZGg2W6yV.js.map +1 -0
  150. package/lib/hook-CfCFKZ-2.js +350 -0
  151. package/lib/hook-CfCFKZ-2.js.map +1 -0
  152. package/lib/index-DK7IuUyR.js +2201 -0
  153. package/lib/index-DK7IuUyR.js.map +1 -0
  154. package/lib/{index.esm-CQHE3GEU.js → index.esm-CltAN0Tf.js} +259 -239
  155. package/lib/index.esm-CltAN0Tf.js.map +1 -0
  156. package/lib/{mutation-EclmI0is.js → mutation-B81DztCT.js} +2 -2
  157. package/lib/{mutation-EclmI0is.js.map → mutation-B81DztCT.js.map} +1 -1
  158. package/lib/objectEntries-BS7aAgOm.js +12 -0
  159. package/lib/objectEntries-BS7aAgOm.js.map +1 -0
  160. package/lib/ui/Checkbox.js +15 -25
  161. package/lib/ui/Checkbox.js.map +1 -1
  162. package/lib/ui/Command.js +96 -70
  163. package/lib/ui/Command.js.map +1 -1
  164. package/lib/ui/Select.js +1 -1
  165. package/lib/ui/Select.js.map +1 -1
  166. package/lib/ui/SyntaxHighlight.js +483 -502
  167. package/lib/ui/SyntaxHighlight.js.map +1 -1
  168. package/lib/{useExposedProps-RIvey2Oy.js → useExposedProps-BslIn-FE.js} +2 -2
  169. package/lib/{useExposedProps-RIvey2Oy.js.map → useExposedProps-BslIn-FE.js.map} +1 -1
  170. package/lib/useQuery-CQUwWR9i.js +1137 -0
  171. package/lib/useQuery-CQUwWR9i.js.map +1 -0
  172. package/lib/zudoku.auth-auth0.js +1 -1
  173. package/lib/zudoku.auth-clerk.js +29 -29
  174. package/lib/zudoku.auth-clerk.js.map +1 -1
  175. package/lib/zudoku.auth-openid.js +3 -3
  176. package/lib/zudoku.components.js +146 -149
  177. package/lib/zudoku.components.js.map +1 -1
  178. package/lib/zudoku.hooks.js +1 -1
  179. package/lib/zudoku.plugin-api-catalog.js +87 -71
  180. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  181. package/lib/zudoku.plugin-api-keys.js +16 -15
  182. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  183. package/lib/zudoku.plugin-custom-pages.js +2 -2
  184. package/lib/zudoku.plugin-markdown.js +1 -1
  185. package/lib/zudoku.plugin-openapi.js +3 -3
  186. package/lib/zudoku.plugin-redirect.js +1 -1
  187. package/lib/zudoku.plugin-search-pagefind.js +204 -0
  188. package/lib/zudoku.plugin-search-pagefind.js.map +1 -0
  189. package/package.json +10 -5
  190. package/src/lib/authentication/hook.ts +12 -1
  191. package/src/lib/authentication/providers/clerk.tsx +10 -6
  192. package/src/lib/components/AnchorLink.tsx +7 -7
  193. package/src/lib/components/Banner.tsx +1 -0
  194. package/src/lib/components/Heading.tsx +1 -1
  195. package/src/lib/components/Layout.tsx +1 -0
  196. package/src/lib/components/navigation/SidebarItem.tsx +8 -23
  197. package/src/lib/core/RouteGuard.tsx +2 -1
  198. package/src/lib/core/ZudokuContext.ts +4 -0
  199. package/src/lib/plugins/api-catalog/Catalog.tsx +23 -7
  200. package/src/lib/plugins/api-catalog/index.tsx +1 -0
  201. package/src/lib/plugins/markdown/MdxPage.tsx +5 -1
  202. package/src/lib/plugins/openapi/OperationList.tsx +83 -31
  203. package/src/lib/plugins/openapi/OperationListItem.tsx +107 -86
  204. package/src/lib/plugins/openapi/ParameterList.tsx +4 -0
  205. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +7 -0
  206. package/src/lib/plugins/openapi/Sidecar.tsx +1 -0
  207. package/src/lib/plugins/openapi/graphql/gql.ts +3 -3
  208. package/src/lib/plugins/openapi/graphql/graphql.ts +3 -0
  209. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +30 -32
  210. package/src/lib/plugins/openapi/playground/Headers.tsx +0 -1
  211. package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +74 -0
  212. package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +54 -0
  213. package/src/lib/plugins/openapi/playground/PathParams.tsx +8 -2
  214. package/src/lib/plugins/openapi/playground/Playground.tsx +175 -88
  215. package/src/lib/plugins/openapi/playground/QueryParams.tsx +0 -1
  216. package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +51 -0
  217. package/src/lib/plugins/openapi/playground/rememberedIdentity.ts +26 -0
  218. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +24 -4
  219. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +66 -45
  220. package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +135 -0
  221. package/src/lib/plugins/search-pagefind/ResultList.tsx +104 -0
  222. package/src/lib/plugins/search-pagefind/get-results.tsx +54 -0
  223. package/src/lib/plugins/search-pagefind/index.tsx +21 -0
  224. package/src/lib/plugins/search-pagefind/types.ts +118 -0
  225. package/src/lib/ui/Checkbox.tsx +8 -24
  226. package/src/lib/ui/Command.tsx +25 -3
  227. package/src/lib/ui/Select.tsx +1 -1
  228. package/src/lib/ui/SyntaxHighlight.tsx +94 -96
  229. package/src/lib/util/MdxComponents.tsx +2 -2
  230. package/src/lib/util/useScrollToAnchor.ts +8 -8
  231. package/lib/Markdown-DePfm7oQ.js.map +0 -1
  232. package/lib/MdxPage-DZTt9ld7.js +0 -193
  233. package/lib/MdxPage-DZTt9ld7.js.map +0 -1
  234. package/lib/OperationList-DDs9NblY.js.map +0 -1
  235. package/lib/chunk-IR6S3I6Y-D_3UmFIn.js.map +0 -1
  236. package/lib/hook-CN__aZIt.js +0 -1464
  237. package/lib/hook-CN__aZIt.js.map +0 -1
  238. package/lib/index-CibzSNks.js +0 -2100
  239. package/lib/index-CibzSNks.js.map +0 -1
  240. package/lib/index.esm-CQHE3GEU.js.map +0 -1
  241. package/lib/objectEntries-yMIkr2mI.js +0 -5
  242. package/lib/objectEntries-yMIkr2mI.js.map +0 -1
  243. package/lib/useScrollToAnchor-C7ilRSts.js +0 -290
  244. package/lib/useScrollToAnchor-C7ilRSts.js.map +0 -1
@@ -1,76 +1,94 @@
1
- var ae = Object.defineProperty;
2
- var ie = (e, t, r) => t in e ? ae(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var y = (e, t, r) => ie(e, typeof t != "symbol" ? t + "" : t, r);
4
- import T, { Component as L } from "react";
5
- import { g as F } from "./_commonjsHelpers-BkfeUUK-.js";
6
- var P, N;
7
- function oe() {
8
- if (N) return P;
9
- N = 1;
1
+ var ie = Object.defineProperty;
2
+ var le = (e, t, r) => t in e ? ie(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
+ var T = (e, t, r) => le(e, typeof t != "symbol" ? t + "" : t, r);
4
+ import m, { Component as F } from "react";
5
+ import { g as U } from "./_commonjsHelpers-BkfeUUK-.js";
6
+ const R = {}, Q = m.createContext(R);
7
+ function ce(e) {
8
+ const t = m.useContext(Q);
9
+ return m.useMemo(
10
+ function() {
11
+ return typeof e == "function" ? e(t) : { ...t, ...e };
12
+ },
13
+ [t, e]
14
+ );
15
+ }
16
+ function Fe(e) {
17
+ let t;
18
+ return e.disableParentContext ? t = typeof e.components == "function" ? e.components(R) : e.components || R : t = ce(e.components), m.createElement(
19
+ Q.Provider,
20
+ { value: t },
21
+ e.children
22
+ );
23
+ }
24
+ var P, V;
25
+ function ue() {
26
+ if (V) return P;
27
+ V = 1;
10
28
  var e = typeof Element < "u", t = typeof Map == "function", r = typeof Set == "function", n = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
11
- function o(s, i) {
12
- if (s === i) return !0;
13
- if (s && i && typeof s == "object" && typeof i == "object") {
14
- if (s.constructor !== i.constructor) return !1;
15
- var l, a, c;
29
+ function i(s, a) {
30
+ if (s === a) return !0;
31
+ if (s && a && typeof s == "object" && typeof a == "object") {
32
+ if (s.constructor !== a.constructor) return !1;
33
+ var l, o, c;
16
34
  if (Array.isArray(s)) {
17
- if (l = s.length, l != i.length) return !1;
18
- for (a = l; a-- !== 0; )
19
- if (!o(s[a], i[a])) return !1;
35
+ if (l = s.length, l != a.length) return !1;
36
+ for (o = l; o-- !== 0; )
37
+ if (!i(s[o], a[o])) return !1;
20
38
  return !0;
21
39
  }
22
40
  var u;
23
- if (t && s instanceof Map && i instanceof Map) {
24
- if (s.size !== i.size) return !1;
25
- for (u = s.entries(); !(a = u.next()).done; )
26
- if (!i.has(a.value[0])) return !1;
27
- for (u = s.entries(); !(a = u.next()).done; )
28
- if (!o(a.value[1], i.get(a.value[0]))) return !1;
41
+ if (t && s instanceof Map && a instanceof Map) {
42
+ if (s.size !== a.size) return !1;
43
+ for (u = s.entries(); !(o = u.next()).done; )
44
+ if (!a.has(o.value[0])) return !1;
45
+ for (u = s.entries(); !(o = u.next()).done; )
46
+ if (!i(o.value[1], a.get(o.value[0]))) return !1;
29
47
  return !0;
30
48
  }
31
- if (r && s instanceof Set && i instanceof Set) {
32
- if (s.size !== i.size) return !1;
33
- for (u = s.entries(); !(a = u.next()).done; )
34
- if (!i.has(a.value[0])) return !1;
49
+ if (r && s instanceof Set && a instanceof Set) {
50
+ if (s.size !== a.size) return !1;
51
+ for (u = s.entries(); !(o = u.next()).done; )
52
+ if (!a.has(o.value[0])) return !1;
35
53
  return !0;
36
54
  }
37
- if (n && ArrayBuffer.isView(s) && ArrayBuffer.isView(i)) {
38
- if (l = s.length, l != i.length) return !1;
39
- for (a = l; a-- !== 0; )
40
- if (s[a] !== i[a]) return !1;
55
+ if (n && ArrayBuffer.isView(s) && ArrayBuffer.isView(a)) {
56
+ if (l = s.length, l != a.length) return !1;
57
+ for (o = l; o-- !== 0; )
58
+ if (s[o] !== a[o]) return !1;
41
59
  return !0;
42
60
  }
43
- if (s.constructor === RegExp) return s.source === i.source && s.flags === i.flags;
44
- if (s.valueOf !== Object.prototype.valueOf && typeof s.valueOf == "function" && typeof i.valueOf == "function") return s.valueOf() === i.valueOf();
45
- if (s.toString !== Object.prototype.toString && typeof s.toString == "function" && typeof i.toString == "function") return s.toString() === i.toString();
46
- if (c = Object.keys(s), l = c.length, l !== Object.keys(i).length) return !1;
47
- for (a = l; a-- !== 0; )
48
- if (!Object.prototype.hasOwnProperty.call(i, c[a])) return !1;
61
+ if (s.constructor === RegExp) return s.source === a.source && s.flags === a.flags;
62
+ if (s.valueOf !== Object.prototype.valueOf && typeof s.valueOf == "function" && typeof a.valueOf == "function") return s.valueOf() === a.valueOf();
63
+ if (s.toString !== Object.prototype.toString && typeof s.toString == "function" && typeof a.toString == "function") return s.toString() === a.toString();
64
+ if (c = Object.keys(s), l = c.length, l !== Object.keys(a).length) return !1;
65
+ for (o = l; o-- !== 0; )
66
+ if (!Object.prototype.hasOwnProperty.call(a, c[o])) return !1;
49
67
  if (e && s instanceof Element) return !1;
50
- for (a = l; a-- !== 0; )
51
- if (!((c[a] === "_owner" || c[a] === "__v" || c[a] === "__o") && s.$$typeof) && !o(s[c[a]], i[c[a]]))
68
+ for (o = l; o-- !== 0; )
69
+ if (!((c[o] === "_owner" || c[o] === "__v" || c[o] === "__o") && s.$$typeof) && !i(s[c[o]], a[c[o]]))
52
70
  return !1;
53
71
  return !0;
54
72
  }
55
- return s !== s && i !== i;
73
+ return s !== s && a !== a;
56
74
  }
57
- return P = function(i, l) {
75
+ return P = function(a, l) {
58
76
  try {
59
- return o(i, l);
60
- } catch (a) {
61
- if ((a.message || "").match(/stack|recursion/i))
77
+ return i(a, l);
78
+ } catch (o) {
79
+ if ((o.message || "").match(/stack|recursion/i))
62
80
  return console.warn("react-fast-compare cannot handle circular refs"), !1;
63
- throw a;
81
+ throw o;
64
82
  }
65
83
  }, P;
66
84
  }
67
- var le = oe();
68
- const ce = /* @__PURE__ */ F(le);
69
- var $, V;
70
- function ue() {
71
- if (V) return $;
72
- V = 1;
73
- var e = function(t, r, n, o, s, i, l, a) {
85
+ var fe = ue();
86
+ const pe = /* @__PURE__ */ U(fe);
87
+ var $, B;
88
+ function de() {
89
+ if (B) return $;
90
+ B = 1;
91
+ var e = function(t, r, n, i, s, a, l, o) {
74
92
  if (process.env.NODE_ENV !== "production" && r === void 0)
75
93
  throw new Error("invariant requires an error message argument");
76
94
  if (!t) {
@@ -80,7 +98,7 @@ function ue() {
80
98
  "Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."
81
99
  );
82
100
  else {
83
- var u = [n, o, s, i, l, a], f = 0;
101
+ var u = [n, i, s, a, l, o], f = 0;
84
102
  c = new Error(
85
103
  r.replace(/%s/g, function() {
86
104
  return u[f++];
@@ -92,35 +110,35 @@ function ue() {
92
110
  };
93
111
  return $ = e, $;
94
112
  }
95
- var fe = ue();
96
- const B = /* @__PURE__ */ F(fe);
97
- var I, Y;
98
- function pe() {
99
- return Y || (Y = 1, I = function(t, r, n, o) {
100
- var s = n ? n.call(o, t, r) : void 0;
113
+ var me = de();
114
+ const Y = /* @__PURE__ */ U(me);
115
+ var I, X;
116
+ function he() {
117
+ return X || (X = 1, I = function(t, r, n, i) {
118
+ var s = n ? n.call(i, t, r) : void 0;
101
119
  if (s !== void 0)
102
120
  return !!s;
103
121
  if (t === r)
104
122
  return !0;
105
123
  if (typeof t != "object" || !t || typeof r != "object" || !r)
106
124
  return !1;
107
- var i = Object.keys(t), l = Object.keys(r);
108
- if (i.length !== l.length)
125
+ var a = Object.keys(t), l = Object.keys(r);
126
+ if (a.length !== l.length)
109
127
  return !1;
110
- for (var a = Object.prototype.hasOwnProperty.bind(r), c = 0; c < i.length; c++) {
111
- var u = i[c];
112
- if (!a(u))
128
+ for (var o = Object.prototype.hasOwnProperty.bind(r), c = 0; c < a.length; c++) {
129
+ var u = a[c];
130
+ if (!o(u))
113
131
  return !1;
114
- var f = t[u], m = r[u];
115
- if (s = n ? n.call(o, f, m, u) : void 0, s === !1 || s === void 0 && f !== m)
132
+ var f = t[u], h = r[u];
133
+ if (s = n ? n.call(i, f, h, u) : void 0, s === !1 || s === void 0 && f !== h)
116
134
  return !1;
117
135
  }
118
136
  return !0;
119
137
  }), I;
120
138
  }
121
- var de = pe();
122
- const me = /* @__PURE__ */ F(de);
123
- var Q = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "head", e.HTML = "html", e.LINK = "link", e.META = "meta", e.NOSCRIPT = "noscript", e.SCRIPT = "script", e.STYLE = "style", e.TITLE = "title", e.FRAGMENT = "Symbol(react.fragment)", e))(Q || {}), H = {
139
+ var ye = he();
140
+ const Te = /* @__PURE__ */ U(ye);
141
+ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "head", e.HTML = "html", e.LINK = "link", e.META = "meta", e.NOSCRIPT = "noscript", e.SCRIPT = "script", e.STYLE = "style", e.TITLE = "title", e.FRAGMENT = "Symbol(react.fragment)", e))(ee || {}), M = {
124
142
  link: { rel: ["amphtml", "canonical", "alternate"] },
125
143
  script: { type: ["application/ld+json"] },
126
144
  meta: {
@@ -142,7 +160,7 @@ var Q = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
142
160
  "twitter:site"
143
161
  ]
144
162
  }
145
- }, Z = Object.values(Q), U = {
163
+ }, Z = Object.values(ee), K = {
146
164
  accesskey: "accessKey",
147
165
  charset: "charSet",
148
166
  class: "className",
@@ -151,90 +169,90 @@ var Q = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
151
169
  "http-equiv": "httpEquiv",
152
170
  itemprop: "itemProp",
153
171
  tabindex: "tabIndex"
154
- }, he = Object.entries(U).reduce(
172
+ }, ve = Object.entries(K).reduce(
155
173
  (e, [t, r]) => (e[r] = t, e),
156
174
  {}
157
- ), h = "data-rh", E = {
175
+ ), y = "data-rh", C = {
158
176
  DEFAULT_TITLE: "defaultTitle",
159
177
  DEFER: "defer",
160
178
  ENCODE_SPECIAL_CHARACTERS: "encodeSpecialCharacters",
161
179
  ON_CHANGE_CLIENT_STATE: "onChangeClientState",
162
180
  TITLE_TEMPLATE: "titleTemplate",
163
181
  PRIORITIZE_SEO_TAGS: "prioritizeSeoTags"
164
- }, b = (e, t) => {
182
+ }, E = (e, t) => {
165
183
  for (let r = e.length - 1; r >= 0; r -= 1) {
166
184
  const n = e[r];
167
185
  if (Object.prototype.hasOwnProperty.call(n, t))
168
186
  return n[t];
169
187
  }
170
188
  return null;
171
- }, ye = (e) => {
172
- let t = b(
189
+ }, ge = (e) => {
190
+ let t = E(
173
191
  e,
174
192
  "title"
175
193
  /* TITLE */
176
194
  );
177
- const r = b(e, E.TITLE_TEMPLATE);
195
+ const r = E(e, C.TITLE_TEMPLATE);
178
196
  if (Array.isArray(t) && (t = t.join("")), r && t)
179
197
  return r.replace(/%s/g, () => t);
180
- const n = b(e, E.DEFAULT_TITLE);
198
+ const n = E(e, C.DEFAULT_TITLE);
181
199
  return t || n || void 0;
182
- }, Te = (e) => b(e, E.ON_CHANGE_CLIENT_STATE) || (() => {
183
- }), _ = (e, t) => t.filter((r) => typeof r[e] < "u").map((r) => r[e]).reduce((r, n) => ({ ...r, ...n }), {}), ge = (e, t) => t.filter((r) => typeof r.base < "u").map((r) => r.base).reverse().reduce((r, n) => {
200
+ }, Ae = (e) => E(e, C.ON_CHANGE_CLIENT_STATE) || (() => {
201
+ }), D = (e, t) => t.filter((r) => typeof r[e] < "u").map((r) => r[e]).reduce((r, n) => ({ ...r, ...n }), {}), Ce = (e, t) => t.filter((r) => typeof r.base < "u").map((r) => r.base).reverse().reduce((r, n) => {
184
202
  if (!r.length) {
185
- const o = Object.keys(n);
186
- for (let s = 0; s < o.length; s += 1) {
187
- const l = o[s].toLowerCase();
203
+ const i = Object.keys(n);
204
+ for (let s = 0; s < i.length; s += 1) {
205
+ const l = i[s].toLowerCase();
188
206
  if (e.indexOf(l) !== -1 && n[l])
189
207
  return r.concat(n);
190
208
  }
191
209
  }
192
210
  return r;
193
- }, []), ve = (e) => console && typeof console.warn == "function" && console.warn(e), O = (e, t, r) => {
211
+ }, []), Ee = (e) => console && typeof console.warn == "function" && console.warn(e), b = (e, t, r) => {
194
212
  const n = {};
195
- return r.filter((o) => Array.isArray(o[e]) ? !0 : (typeof o[e] < "u" && ve(
196
- `Helmet: ${e} should be of type "Array". Instead found type "${typeof o[e]}"`
197
- ), !1)).map((o) => o[e]).reverse().reduce((o, s) => {
198
- const i = {};
199
- s.filter((a) => {
213
+ return r.filter((i) => Array.isArray(i[e]) ? !0 : (typeof i[e] < "u" && Ee(
214
+ `Helmet: ${e} should be of type "Array". Instead found type "${typeof i[e]}"`
215
+ ), !1)).map((i) => i[e]).reverse().reduce((i, s) => {
216
+ const a = {};
217
+ s.filter((o) => {
200
218
  let c;
201
- const u = Object.keys(a);
202
- for (let m = 0; m < u.length; m += 1) {
203
- const p = u[m], g = p.toLowerCase();
204
- t.indexOf(g) !== -1 && !(c === "rel" && a[c].toLowerCase() === "canonical") && !(g === "rel" && a[g].toLowerCase() === "stylesheet") && (c = g), t.indexOf(p) !== -1 && (p === "innerHTML" || p === "cssText" || p === "itemprop") && (c = p);
219
+ const u = Object.keys(o);
220
+ for (let h = 0; h < u.length; h += 1) {
221
+ const p = u[h], v = p.toLowerCase();
222
+ t.indexOf(v) !== -1 && !(c === "rel" && o[c].toLowerCase() === "canonical") && !(v === "rel" && o[v].toLowerCase() === "stylesheet") && (c = v), t.indexOf(p) !== -1 && (p === "innerHTML" || p === "cssText" || p === "itemprop") && (c = p);
205
223
  }
206
- if (!c || !a[c])
224
+ if (!c || !o[c])
207
225
  return !1;
208
- const f = a[c].toLowerCase();
209
- return n[c] || (n[c] = {}), i[c] || (i[c] = {}), n[c][f] ? !1 : (i[c][f] = !0, !0);
210
- }).reverse().forEach((a) => o.push(a));
211
- const l = Object.keys(i);
212
- for (let a = 0; a < l.length; a += 1) {
213
- const c = l[a], u = {
226
+ const f = o[c].toLowerCase();
227
+ return n[c] || (n[c] = {}), a[c] || (a[c] = {}), n[c][f] ? !1 : (a[c][f] = !0, !0);
228
+ }).reverse().forEach((o) => i.push(o));
229
+ const l = Object.keys(a);
230
+ for (let o = 0; o < l.length; o += 1) {
231
+ const c = l[o], u = {
214
232
  ...n[c],
215
- ...i[c]
233
+ ...a[c]
216
234
  };
217
235
  n[c] = u;
218
236
  }
219
- return o;
237
+ return i;
220
238
  }, []).reverse();
221
- }, Ae = (e, t) => {
239
+ }, be = (e, t) => {
222
240
  if (Array.isArray(e) && e.length) {
223
241
  for (let r = 0; r < e.length; r += 1)
224
242
  if (e[r][t])
225
243
  return !0;
226
244
  }
227
245
  return !1;
228
- }, Ee = (e) => ({
229
- baseTag: ge([
246
+ }, Oe = (e) => ({
247
+ baseTag: Ce([
230
248
  "href"
231
249
  /* HREF */
232
250
  ], e),
233
- bodyAttributes: _("bodyAttributes", e),
234
- defer: b(e, E.DEFER),
235
- encode: b(e, E.ENCODE_SPECIAL_CHARACTERS),
236
- htmlAttributes: _("htmlAttributes", e),
237
- linkTags: O(
251
+ bodyAttributes: D("bodyAttributes", e),
252
+ defer: E(e, C.DEFER),
253
+ encode: E(e, C.ENCODE_SPECIAL_CHARACTERS),
254
+ htmlAttributes: D("htmlAttributes", e),
255
+ linkTags: b(
238
256
  "link",
239
257
  [
240
258
  "rel",
@@ -243,7 +261,7 @@ var Q = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
243
261
  ],
244
262
  e
245
263
  ),
246
- metaTags: O(
264
+ metaTags: b(
247
265
  "meta",
248
266
  [
249
267
  "name",
@@ -255,12 +273,12 @@ var Q = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
255
273
  ],
256
274
  e
257
275
  ),
258
- noscriptTags: O("noscript", [
276
+ noscriptTags: b("noscript", [
259
277
  "innerHTML"
260
278
  /* INNER_HTML */
261
279
  ], e),
262
- onChangeClientState: Te(e),
263
- scriptTags: O(
280
+ onChangeClientState: Ae(e),
281
+ scriptTags: b(
264
282
  "script",
265
283
  [
266
284
  "src",
@@ -269,148 +287,148 @@ var Q = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
269
287
  ],
270
288
  e
271
289
  ),
272
- styleTags: O("style", [
290
+ styleTags: b("style", [
273
291
  "cssText"
274
292
  /* CSS_TEXT */
275
293
  ], e),
276
- title: ye(e),
277
- titleAttributes: _("titleAttributes", e),
278
- prioritizeSeoTags: Ae(e, E.PRIORITIZE_SEO_TAGS)
279
- }), X = (e) => Array.isArray(e) ? e.join("") : e, be = (e, t) => {
294
+ title: ge(e),
295
+ titleAttributes: D("titleAttributes", e),
296
+ prioritizeSeoTags: be(e, C.PRIORITIZE_SEO_TAGS)
297
+ }), te = (e) => Array.isArray(e) ? e.join("") : e, we = (e, t) => {
280
298
  const r = Object.keys(e);
281
299
  for (let n = 0; n < r.length; n += 1)
282
300
  if (t[r[n]] && t[r[n]].includes(e[r[n]]))
283
301
  return !0;
284
302
  return !1;
285
- }, D = (e, t) => Array.isArray(e) ? e.reduce(
286
- (r, n) => (be(n, t) ? r.priority.push(n) : r.default.push(n), r),
303
+ }, H = (e, t) => Array.isArray(e) ? e.reduce(
304
+ (r, n) => (we(n, t) ? r.priority.push(n) : r.default.push(n), r),
287
305
  { priority: [], default: [] }
288
306
  ) : { default: e, priority: [] }, G = (e, t) => ({
289
307
  ...e,
290
308
  [t]: void 0
291
- }), Oe = [
309
+ }), Se = [
292
310
  "noscript",
293
311
  "script",
294
312
  "style"
295
313
  /* STYLE */
296
- ], M = (e, t = !0) => t === !1 ? String(e) : String(e).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#x27;"), ee = (e) => Object.keys(e).reduce((t, r) => {
314
+ ], k = (e, t = !0) => t === !1 ? String(e) : String(e).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#x27;"), re = (e) => Object.keys(e).reduce((t, r) => {
297
315
  const n = typeof e[r] < "u" ? `${r}="${e[r]}"` : `${r}`;
298
316
  return t ? `${t} ${n}` : n;
299
- }, ""), Ce = (e, t, r, n) => {
300
- const o = ee(r), s = X(t);
301
- return o ? `<${e} ${h}="true" ${o}>${M(
317
+ }, ""), xe = (e, t, r, n) => {
318
+ const i = re(r), s = te(t);
319
+ return i ? `<${e} ${y}="true" ${i}>${k(
302
320
  s,
303
321
  n
304
- )}</${e}>` : `<${e} ${h}="true">${M(
322
+ )}</${e}>` : `<${e} ${y}="true">${k(
305
323
  s,
306
324
  n
307
325
  )}</${e}>`;
308
- }, we = (e, t, r = !0) => t.reduce((n, o) => {
309
- const s = o, i = Object.keys(s).filter(
326
+ }, Pe = (e, t, r = !0) => t.reduce((n, i) => {
327
+ const s = i, a = Object.keys(s).filter(
310
328
  (c) => !(c === "innerHTML" || c === "cssText")
311
329
  ).reduce((c, u) => {
312
- const f = typeof s[u] > "u" ? u : `${u}="${M(s[u], r)}"`;
330
+ const f = typeof s[u] > "u" ? u : `${u}="${k(s[u], r)}"`;
313
331
  return c ? `${c} ${f}` : f;
314
- }, ""), l = s.innerHTML || s.cssText || "", a = Oe.indexOf(e) === -1;
315
- return `${n}<${e} ${h}="true" ${i}${a ? "/>" : `>${l}</${e}>`}`;
316
- }, ""), te = (e, t = {}) => Object.keys(e).reduce((r, n) => {
317
- const o = U[n];
318
- return r[o || n] = e[n], r;
319
- }, t), Se = (e, t, r) => {
332
+ }, ""), l = s.innerHTML || s.cssText || "", o = Se.indexOf(e) === -1;
333
+ return `${n}<${e} ${y}="true" ${a}${o ? "/>" : `>${l}</${e}>`}`;
334
+ }, ""), ne = (e, t = {}) => Object.keys(e).reduce((r, n) => {
335
+ const i = K[n];
336
+ return r[i || n] = e[n], r;
337
+ }, t), $e = (e, t, r) => {
320
338
  const n = {
321
339
  key: t,
322
- [h]: !0
323
- }, o = te(r, n);
324
- return [T.createElement("title", o, t)];
340
+ [y]: !0
341
+ }, i = ne(r, n);
342
+ return [m.createElement("title", i, t)];
325
343
  }, x = (e, t) => t.map((r, n) => {
326
- const o = {
344
+ const i = {
327
345
  key: n,
328
- [h]: !0
346
+ [y]: !0
329
347
  };
330
348
  return Object.keys(r).forEach((s) => {
331
- const l = U[s] || s;
349
+ const l = K[s] || s;
332
350
  if (l === "innerHTML" || l === "cssText") {
333
- const a = r.innerHTML || r.cssText;
334
- o.dangerouslySetInnerHTML = { __html: a };
351
+ const o = r.innerHTML || r.cssText;
352
+ i.dangerouslySetInnerHTML = { __html: o };
335
353
  } else
336
- o[l] = r[s];
337
- }), T.createElement(e, o);
354
+ i[l] = r[s];
355
+ }), m.createElement(e, i);
338
356
  }), d = (e, t, r = !0) => {
339
357
  switch (e) {
340
358
  case "title":
341
359
  return {
342
- toComponent: () => Se(e, t.title, t.titleAttributes),
343
- toString: () => Ce(e, t.title, t.titleAttributes, r)
360
+ toComponent: () => $e(e, t.title, t.titleAttributes),
361
+ toString: () => xe(e, t.title, t.titleAttributes, r)
344
362
  };
345
363
  case "bodyAttributes":
346
364
  case "htmlAttributes":
347
365
  return {
348
- toComponent: () => te(t),
349
- toString: () => ee(t)
366
+ toComponent: () => ne(t),
367
+ toString: () => re(t)
350
368
  };
351
369
  default:
352
370
  return {
353
371
  toComponent: () => x(e, t),
354
- toString: () => we(e, t, r)
372
+ toString: () => Pe(e, t, r)
355
373
  };
356
374
  }
357
- }, xe = ({ metaTags: e, linkTags: t, scriptTags: r, encode: n }) => {
358
- const o = D(e, H.meta), s = D(t, H.link), i = D(r, H.script);
375
+ }, Ie = ({ metaTags: e, linkTags: t, scriptTags: r, encode: n }) => {
376
+ const i = H(e, M.meta), s = H(t, M.link), a = H(r, M.script);
359
377
  return {
360
378
  priorityMethods: {
361
379
  toComponent: () => [
362
- ...x("meta", o.priority),
380
+ ...x("meta", i.priority),
363
381
  ...x("link", s.priority),
364
- ...x("script", i.priority)
382
+ ...x("script", a.priority)
365
383
  ],
366
384
  toString: () => (
367
385
  // generate all the tags as strings and concatenate them
368
- `${d("meta", o.priority, n)} ${d(
386
+ `${d("meta", i.priority, n)} ${d(
369
387
  "link",
370
388
  s.priority,
371
389
  n
372
- )} ${d("script", i.priority, n)}`
390
+ )} ${d("script", a.priority, n)}`
373
391
  )
374
392
  },
375
- metaTags: o.default,
393
+ metaTags: i.default,
376
394
  linkTags: s.default,
377
- scriptTags: i.default
395
+ scriptTags: a.default
378
396
  };
379
- }, Pe = (e) => {
397
+ }, Me = (e) => {
380
398
  const {
381
399
  baseTag: t,
382
400
  bodyAttributes: r,
383
401
  encode: n = !0,
384
- htmlAttributes: o,
402
+ htmlAttributes: i,
385
403
  noscriptTags: s,
386
- styleTags: i,
404
+ styleTags: a,
387
405
  title: l = "",
388
- titleAttributes: a,
406
+ titleAttributes: o,
389
407
  prioritizeSeoTags: c
390
408
  } = e;
391
- let { linkTags: u, metaTags: f, scriptTags: m } = e, p = {
409
+ let { linkTags: u, metaTags: f, scriptTags: h } = e, p = {
392
410
  toComponent: () => {
393
411
  },
394
412
  toString: () => ""
395
413
  };
396
- return c && ({ priorityMethods: p, linkTags: u, metaTags: f, scriptTags: m } = xe(e)), {
414
+ return c && ({ priorityMethods: p, linkTags: u, metaTags: f, scriptTags: h } = Ie(e)), {
397
415
  priority: p,
398
416
  base: d("base", t, n),
399
417
  bodyAttributes: d("bodyAttributes", r, n),
400
- htmlAttributes: d("htmlAttributes", o, n),
418
+ htmlAttributes: d("htmlAttributes", i, n),
401
419
  link: d("link", u, n),
402
420
  meta: d("meta", f, n),
403
421
  noscript: d("noscript", s, n),
404
- script: d("script", m, n),
405
- style: d("style", i, n),
406
- title: d("title", { title: l, titleAttributes: a }, n)
422
+ script: d("script", h, n),
423
+ style: d("style", a, n),
424
+ title: d("title", { title: l, titleAttributes: o }, n)
407
425
  };
408
- }, k = Pe, S = [], re = !!(typeof window < "u" && window.document && window.document.createElement), j = class {
426
+ }, j = Me, S = [], se = !!(typeof window < "u" && window.document && window.document.createElement), q = class {
409
427
  constructor(e, t) {
410
- y(this, "instances", []);
411
- y(this, "canUseDOM", re);
412
- y(this, "context");
413
- y(this, "value", {
428
+ T(this, "instances", []);
429
+ T(this, "canUseDOM", se);
430
+ T(this, "context");
431
+ T(this, "value", {
414
432
  setHelmet: (e) => {
415
433
  this.context.helmet = e;
416
434
  },
@@ -425,7 +443,7 @@ var Q = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
425
443
  }
426
444
  }
427
445
  });
428
- this.context = e, this.canUseDOM = t || !1, t || (e.helmet = k({
446
+ this.context = e, this.canUseDOM = t || !1, t || (e.helmet = j({
429
447
  baseTag: [],
430
448
  bodyAttributes: {},
431
449
  htmlAttributes: {},
@@ -438,97 +456,97 @@ var Q = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
438
456
  titleAttributes: {}
439
457
  }));
440
458
  }
441
- }, $e = {}, ne = T.createContext($e), v, Ie = (v = class extends L {
459
+ }, De = {}, oe = m.createContext(De), g, He = (g = class extends F {
442
460
  constructor(r) {
443
461
  super(r);
444
- y(this, "helmetData");
445
- this.helmetData = new j(this.props.context || {}, v.canUseDOM);
462
+ T(this, "helmetData");
463
+ this.helmetData = new q(this.props.context || {}, g.canUseDOM);
446
464
  }
447
465
  render() {
448
- return /* @__PURE__ */ T.createElement(ne.Provider, { value: this.helmetData.value }, this.props.children);
466
+ return /* @__PURE__ */ m.createElement(oe.Provider, { value: this.helmetData.value }, this.props.children);
449
467
  }
450
- }, y(v, "canUseDOM", re), v), A = (e, t) => {
468
+ }, T(g, "canUseDOM", se), g), A = (e, t) => {
451
469
  const r = document.head || document.querySelector(
452
470
  "head"
453
471
  /* HEAD */
454
- ), n = r.querySelectorAll(`${e}[${h}]`), o = [].slice.call(n), s = [];
455
- let i;
472
+ ), n = r.querySelectorAll(`${e}[${y}]`), i = [].slice.call(n), s = [];
473
+ let a;
456
474
  return t && t.length && t.forEach((l) => {
457
- const a = document.createElement(e);
475
+ const o = document.createElement(e);
458
476
  for (const c in l)
459
477
  if (Object.prototype.hasOwnProperty.call(l, c))
460
478
  if (c === "innerHTML")
461
- a.innerHTML = l.innerHTML;
479
+ o.innerHTML = l.innerHTML;
462
480
  else if (c === "cssText")
463
- a.styleSheet ? a.styleSheet.cssText = l.cssText : a.appendChild(document.createTextNode(l.cssText));
481
+ o.styleSheet ? o.styleSheet.cssText = l.cssText : o.appendChild(document.createTextNode(l.cssText));
464
482
  else {
465
483
  const u = c, f = typeof l[u] > "u" ? "" : l[u];
466
- a.setAttribute(c, f);
484
+ o.setAttribute(c, f);
467
485
  }
468
- a.setAttribute(h, "true"), o.some((c, u) => (i = u, a.isEqualNode(c))) ? o.splice(i, 1) : s.push(a);
469
- }), o.forEach((l) => {
470
- var a;
471
- return (a = l.parentNode) == null ? void 0 : a.removeChild(l);
486
+ o.setAttribute(y, "true"), i.some((c, u) => (a = u, o.isEqualNode(c))) ? i.splice(a, 1) : s.push(o);
487
+ }), i.forEach((l) => {
488
+ var o;
489
+ return (o = l.parentNode) == null ? void 0 : o.removeChild(l);
472
490
  }), s.forEach((l) => r.appendChild(l)), {
473
- oldTags: o,
491
+ oldTags: i,
474
492
  newTags: s
475
493
  };
476
- }, q = (e, t) => {
494
+ }, L = (e, t) => {
477
495
  const r = document.getElementsByTagName(e)[0];
478
496
  if (!r)
479
497
  return;
480
- const n = r.getAttribute(h), o = n ? n.split(",") : [], s = [...o], i = Object.keys(t);
481
- for (const l of i) {
482
- const a = t[l] || "";
483
- r.getAttribute(l) !== a && r.setAttribute(l, a), o.indexOf(l) === -1 && o.push(l);
498
+ const n = r.getAttribute(y), i = n ? n.split(",") : [], s = [...i], a = Object.keys(t);
499
+ for (const l of a) {
500
+ const o = t[l] || "";
501
+ r.getAttribute(l) !== o && r.setAttribute(l, o), i.indexOf(l) === -1 && i.push(l);
484
502
  const c = s.indexOf(l);
485
503
  c !== -1 && s.splice(c, 1);
486
504
  }
487
505
  for (let l = s.length - 1; l >= 0; l -= 1)
488
506
  r.removeAttribute(s[l]);
489
- o.length === s.length ? r.removeAttribute(h) : r.getAttribute(h) !== i.join(",") && r.setAttribute(h, i.join(","));
490
- }, He = (e, t) => {
491
- typeof e < "u" && document.title !== e && (document.title = X(e)), q("title", t);
507
+ i.length === s.length ? r.removeAttribute(y) : r.getAttribute(y) !== a.join(",") && r.setAttribute(y, a.join(","));
508
+ }, _e = (e, t) => {
509
+ typeof e < "u" && document.title !== e && (document.title = te(e)), L("title", t);
492
510
  }, W = (e, t) => {
493
511
  const {
494
512
  baseTag: r,
495
513
  bodyAttributes: n,
496
- htmlAttributes: o,
514
+ htmlAttributes: i,
497
515
  linkTags: s,
498
- metaTags: i,
516
+ metaTags: a,
499
517
  noscriptTags: l,
500
- onChangeClientState: a,
518
+ onChangeClientState: o,
501
519
  scriptTags: c,
502
520
  styleTags: u,
503
521
  title: f,
504
- titleAttributes: m
522
+ titleAttributes: h
505
523
  } = e;
506
- q("body", n), q("html", o), He(f, m);
524
+ L("body", n), L("html", i), _e(f, h);
507
525
  const p = {
508
526
  baseTag: A("base", r),
509
527
  linkTags: A("link", s),
510
- metaTags: A("meta", i),
528
+ metaTags: A("meta", a),
511
529
  noscriptTags: A("noscript", l),
512
530
  scriptTags: A("script", c),
513
531
  styleTags: A("style", u)
514
- }, g = {}, K = {};
532
+ }, v = {}, z = {};
515
533
  Object.keys(p).forEach((w) => {
516
- const { newTags: z, oldTags: se } = p[w];
517
- z.length && (g[w] = z), se.length && (K[w] = p[w].oldTags);
518
- }), t && t(), a(e, g, K);
519
- }, C = null, _e = (e) => {
520
- C && cancelAnimationFrame(C), e.defer ? C = requestAnimationFrame(() => {
534
+ const { newTags: N, oldTags: ae } = p[w];
535
+ N.length && (v[w] = N), ae.length && (z[w] = p[w].oldTags);
536
+ }), t && t(), o(e, v, z);
537
+ }, O = null, Re = (e) => {
538
+ O && cancelAnimationFrame(O), e.defer ? O = requestAnimationFrame(() => {
521
539
  W(e, () => {
522
- C = null;
540
+ O = null;
523
541
  });
524
- }) : (W(e), C = null);
525
- }, De = _e, J = class extends L {
542
+ }) : (W(e), O = null);
543
+ }, ke = Re, J = class extends F {
526
544
  constructor() {
527
545
  super(...arguments);
528
- y(this, "rendered", !1);
546
+ T(this, "rendered", !1);
529
547
  }
530
548
  shouldComponentUpdate(t) {
531
- return !me(t, this.props);
549
+ return !Te(t, this.props);
532
550
  }
533
551
  componentDidUpdate() {
534
552
  this.emitChange();
@@ -540,13 +558,13 @@ var Q = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
540
558
  emitChange() {
541
559
  const { helmetInstances: t, setHelmet: r } = this.props.context;
542
560
  let n = null;
543
- const o = Ee(
561
+ const i = Oe(
544
562
  t.get().map((s) => {
545
- const i = { ...s.props };
546
- return delete i.context, i;
563
+ const a = { ...s.props };
564
+ return delete a.context, a;
547
565
  })
548
566
  );
549
- Ie.canUseDOM ? De(o) : k && (n = k(o)), r(n);
567
+ He.canUseDOM ? ke(i) : j && (n = j(i)), r(n);
550
568
  }
551
569
  // componentWillMount will be deprecated
552
570
  // for SSR, initialize on first render
@@ -561,9 +579,9 @@ var Q = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
561
579
  render() {
562
580
  return this.init(), null;
563
581
  }
564
- }, R, je = (R = class extends L {
582
+ }, _, Ue = (_ = class extends F {
565
583
  shouldComponentUpdate(e) {
566
- return !ce(G(this.props, "helmetData"), G(e, "helmetData"));
584
+ return !pe(G(this.props, "helmetData"), G(e, "helmetData"));
567
585
  }
568
586
  mapNestedChildrenToProps(e, t) {
569
587
  if (!t)
@@ -631,26 +649,26 @@ var Q = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
631
649
  }), r;
632
650
  }
633
651
  warnOnInvalidChildren(e, t) {
634
- return B(
652
+ return Y(
635
653
  Z.some((r) => e.type === r),
636
654
  typeof e.type == "function" ? "You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information." : `Only elements types ${Z.join(
637
655
  ", "
638
656
  )} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`
639
- ), B(
657
+ ), Y(
640
658
  !t || typeof t == "string" || Array.isArray(t) && !t.some((r) => typeof r != "string"),
641
659
  `Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`
642
660
  ), !0;
643
661
  }
644
662
  mapChildrenToProps(e, t) {
645
663
  let r = {};
646
- return T.Children.forEach(e, (n) => {
664
+ return m.Children.forEach(e, (n) => {
647
665
  if (!n || !n.props)
648
666
  return;
649
- const { children: o, ...s } = n.props, i = Object.keys(s).reduce((a, c) => (a[he[c] || c] = s[c], a), {});
667
+ const { children: i, ...s } = n.props, a = Object.keys(s).reduce((o, c) => (o[ve[c] || c] = s[c], o), {});
650
668
  let { type: l } = n;
651
- switch (typeof l == "symbol" ? l = l.toString() : this.warnOnInvalidChildren(n, o), l) {
669
+ switch (typeof l == "symbol" ? l = l.toString() : this.warnOnInvalidChildren(n, i), l) {
652
670
  case "Symbol(react.fragment)":
653
- t = this.mapChildrenToProps(o, t);
671
+ t = this.mapChildrenToProps(i, t);
654
672
  break;
655
673
  case "link":
656
674
  case "meta":
@@ -660,12 +678,12 @@ var Q = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
660
678
  r = this.flattenArrayTypeChildren(
661
679
  n,
662
680
  r,
663
- i,
664
- o
681
+ a,
682
+ i
665
683
  );
666
684
  break;
667
685
  default:
668
- t = this.mapObjectTypeChildren(n, t, i, o);
686
+ t = this.mapObjectTypeChildren(n, t, a, i);
669
687
  break;
670
688
  }
671
689
  }), this.mapArrayTypeChildrenToProps(r, t);
@@ -673,19 +691,21 @@ var Q = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "hea
673
691
  render() {
674
692
  const { children: e, ...t } = this.props;
675
693
  let r = { ...t }, { helmetData: n } = t;
676
- if (e && (r = this.mapChildrenToProps(e, r)), n && !(n instanceof j)) {
677
- const o = n;
678
- n = new j(o.context, !0), delete r.helmetData;
694
+ if (e && (r = this.mapChildrenToProps(e, r)), n && !(n instanceof q)) {
695
+ const i = n;
696
+ n = new q(i.context, !0), delete r.helmetData;
679
697
  }
680
- return n ? /* @__PURE__ */ T.createElement(J, { ...r, context: n.value }) : /* @__PURE__ */ T.createElement(ne.Consumer, null, (o) => /* @__PURE__ */ T.createElement(J, { ...r, context: o }));
698
+ return n ? /* @__PURE__ */ m.createElement(J, { ...r, context: n.value }) : /* @__PURE__ */ m.createElement(oe.Consumer, null, (i) => /* @__PURE__ */ m.createElement(J, { ...r, context: i }));
681
699
  }
682
- }, y(R, "defaultProps", {
700
+ }, T(_, "defaultProps", {
683
701
  defer: !0,
684
702
  encodeSpecialCharacters: !0,
685
703
  prioritizeSeoTags: !1
686
- }), R);
704
+ }), _);
687
705
  export {
688
- je as H,
689
- Ie as a
706
+ Ue as H,
707
+ Fe as M,
708
+ He as a,
709
+ ce as u
690
710
  };
691
- //# sourceMappingURL=index.esm-CQHE3GEU.js.map
711
+ //# sourceMappingURL=index.esm-CltAN0Tf.js.map