@hanzo/team 0.1.11 → 0.1.13

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 (213) hide show
  1. package/dist/404.html +1 -1
  2. package/dist/admin/index.html +1 -1
  3. package/dist/agents/algo/index.html +1 -1
  4. package/dist/agents/art/index.html +1 -1
  5. package/dist/agents/biz/index.html +1 -1
  6. package/dist/agents/cal/index.html +1 -1
  7. package/dist/agents/core/index.html +1 -1
  8. package/dist/agents/cyber/index.html +1 -1
  9. package/dist/agents/data/index.html +1 -1
  10. package/dist/agents/db/index.html +1 -1
  11. package/dist/agents/des/index.html +1 -1
  12. package/dist/agents/dev/index.html +1 -1
  13. package/dist/agents/doc/index.html +1 -1
  14. package/dist/agents/ed/index.html +1 -1
  15. package/dist/agents/fin/index.html +1 -1
  16. package/dist/agents/gov/index.html +1 -1
  17. package/dist/agents/huma/index.html +1 -1
  18. package/dist/agents/index.html +1 -1
  19. package/dist/agents/lang/index.html +1 -1
  20. package/dist/agents/law/index.html +1 -1
  21. package/dist/agents/mana/index.html +1 -1
  22. package/dist/agents/mark/index.html +1 -1
  23. package/dist/agents/mo/index.html +1 -1
  24. package/dist/agents/mu/index.html +1 -1
  25. package/dist/agents/opera/index.html +1 -1
  26. package/dist/agents/rev/index.html +1 -1
  27. package/dist/agents/sal/index.html +1 -1
  28. package/dist/agents/sci/index.html +1 -1
  29. package/dist/agents/sec/index.html +1 -1
  30. package/dist/agents/su/index.html +1 -1
  31. package/dist/agents/vi/index.html +1 -1
  32. package/dist/apps/ads/index.html +1 -1
  33. package/dist/apps/ai-chat/index.html +1 -1
  34. package/dist/apps/analytics/index.html +1 -1
  35. package/dist/apps/billing/index.html +1 -1
  36. package/dist/apps/bots/index.html +1 -1
  37. package/dist/apps/cal/index.html +1 -1
  38. package/dist/apps/chat/index.html +1 -1
  39. package/dist/apps/cms/index.html +1 -1
  40. package/dist/apps/commerce/index.html +1 -1
  41. package/dist/apps/console/index.html +1 -1
  42. package/dist/apps/crm/index.html +1 -1
  43. package/dist/apps/dataroom/index.html +1 -1
  44. package/dist/apps/dev/index.html +1 -1
  45. package/dist/apps/email/index.html +1 -1
  46. package/dist/apps/index.html +1 -1
  47. package/dist/apps/meet/index.html +1 -1
  48. package/dist/apps/platform/index.html +1 -1
  49. package/dist/apps/sign/index.html +1 -1
  50. package/dist/apps/social/index.html +1 -1
  51. package/dist/apps/tracker/index.html +1 -1
  52. package/dist/assets/{ThemeToggleNext-CJw-doaf.js → ThemeToggleNext-Dl_lG82A.js} +2 -2
  53. package/dist/assets/{ThemeToggleNext-CJw-doaf.js.map → ThemeToggleNext-Dl_lG82A.js.map} +1 -1
  54. package/dist/assets/index-B-xfsR5K.js +221 -0
  55. package/dist/assets/index-B-xfsR5K.js.map +1 -0
  56. package/dist/auth/callback/index.html +1 -1
  57. package/dist/auth/index.html +1 -1
  58. package/dist/bots/index.html +1 -1
  59. package/dist/cal/index.html +1 -1
  60. package/dist/calendar/index.html +1 -1
  61. package/dist/chat/c-design/index.html +1 -1
  62. package/dist/chat/c-general/index.html +1 -1
  63. package/dist/chat/c-lux-bank/index.html +1 -1
  64. package/dist/chat/c-lux-bridge/index.html +1 -1
  65. package/dist/chat/c-revenue/index.html +1 -1
  66. package/dist/chat/c-support/index.html +1 -1
  67. package/dist/chat/c-tracker/index.html +1 -1
  68. package/dist/chat/c-ui/index.html +1 -1
  69. package/dist/chat/c-video/index.html +1 -1
  70. package/dist/chat/dm-algo/index.html +1 -1
  71. package/dist/chat/dm-art/index.html +1 -1
  72. package/dist/chat/dm-biz/index.html +1 -1
  73. package/dist/chat/dm-cal/index.html +1 -1
  74. package/dist/chat/dm-core/index.html +1 -1
  75. package/dist/chat/dm-cyber/index.html +1 -1
  76. package/dist/chat/dm-data/index.html +1 -1
  77. package/dist/chat/dm-db/index.html +1 -1
  78. package/dist/chat/dm-des/index.html +1 -1
  79. package/dist/chat/dm-dev/index.html +1 -1
  80. package/dist/chat/dm-doc/index.html +1 -1
  81. package/dist/chat/dm-ed/index.html +1 -1
  82. package/dist/chat/dm-fin/index.html +1 -1
  83. package/dist/chat/dm-gov/index.html +1 -1
  84. package/dist/chat/dm-huma/index.html +1 -1
  85. package/dist/chat/dm-lang/index.html +1 -1
  86. package/dist/chat/dm-law/index.html +1 -1
  87. package/dist/chat/dm-mana/index.html +1 -1
  88. package/dist/chat/dm-mark/index.html +1 -1
  89. package/dist/chat/dm-mo/index.html +1 -1
  90. package/dist/chat/dm-mu/index.html +1 -1
  91. package/dist/chat/dm-opera/index.html +1 -1
  92. package/dist/chat/dm-rev/index.html +1 -1
  93. package/dist/chat/dm-sal/index.html +1 -1
  94. package/dist/chat/dm-sci/index.html +1 -1
  95. package/dist/chat/dm-sec/index.html +1 -1
  96. package/dist/chat/dm-su/index.html +1 -1
  97. package/dist/chat/dm-vi/index.html +1 -1
  98. package/dist/chat/index.html +1 -1
  99. package/dist/crm/analytics/index.html +1 -1
  100. package/dist/crm/automations/index.html +1 -1
  101. package/dist/crm/campaigns/index.html +1 -1
  102. package/dist/crm/companies/index.html +1 -1
  103. package/dist/crm/contacts/index.html +1 -1
  104. package/dist/crm/customers/index.html +1 -1
  105. package/dist/crm/deliverability/index.html +1 -1
  106. package/dist/crm/forms/index.html +1 -1
  107. package/dist/crm/funds/index.html +1 -1
  108. package/dist/crm/index.html +1 -1
  109. package/dist/crm/investors/index.html +1 -1
  110. package/dist/crm/journeys/index.html +1 -1
  111. package/dist/crm/leads/index.html +1 -1
  112. package/dist/crm/lists/index.html +1 -1
  113. package/dist/crm/opportunities/index.html +1 -1
  114. package/dist/crm/segments/index.html +1 -1
  115. package/dist/crm/settings/index.html +1 -1
  116. package/dist/crm/templates/index.html +1 -1
  117. package/dist/crm/webhooks/index.html +1 -1
  118. package/dist/docs/index.html +1 -1
  119. package/dist/files/index.html +1 -1
  120. package/dist/inbox/index.html +1 -1
  121. package/dist/index.html +1 -1
  122. package/dist/issues/index.html +1 -1
  123. package/dist/issues/kanban/index.html +1 -1
  124. package/dist/issues/list/index.html +1 -1
  125. package/dist/login/index.html +1 -1
  126. package/dist/mail/index.html +1 -1
  127. package/dist/meet/index.html +1 -1
  128. package/dist/mine/index.html +1 -1
  129. package/dist/people/index.html +1 -1
  130. package/dist/projects/index.html +1 -1
  131. package/dist/projects/proj-crm/components/index.html +1 -1
  132. package/dist/projects/proj-crm/index.html +1 -1
  133. package/dist/projects/proj-crm/issues/index.html +1 -1
  134. package/dist/projects/proj-crm/issues/kanban/index.html +1 -1
  135. package/dist/projects/proj-crm/issues/list/index.html +1 -1
  136. package/dist/projects/proj-crm/milestones/index.html +1 -1
  137. package/dist/projects/proj-crm/templates/index.html +1 -1
  138. package/dist/projects/proj-dev/components/index.html +1 -1
  139. package/dist/projects/proj-dev/index.html +1 -1
  140. package/dist/projects/proj-dev/issues/index.html +1 -1
  141. package/dist/projects/proj-dev/issues/kanban/index.html +1 -1
  142. package/dist/projects/proj-dev/issues/list/index.html +1 -1
  143. package/dist/projects/proj-dev/milestones/index.html +1 -1
  144. package/dist/projects/proj-dev/templates/index.html +1 -1
  145. package/dist/projects/proj-mkt/components/index.html +1 -1
  146. package/dist/projects/proj-mkt/index.html +1 -1
  147. package/dist/projects/proj-mkt/issues/index.html +1 -1
  148. package/dist/projects/proj-mkt/issues/kanban/index.html +1 -1
  149. package/dist/projects/proj-mkt/issues/list/index.html +1 -1
  150. package/dist/projects/proj-mkt/milestones/index.html +1 -1
  151. package/dist/projects/proj-mkt/templates/index.html +1 -1
  152. package/dist/projects/proj-next/components/index.html +1 -1
  153. package/dist/projects/proj-next/index.html +1 -1
  154. package/dist/projects/proj-next/issues/index.html +1 -1
  155. package/dist/projects/proj-next/issues/kanban/index.html +1 -1
  156. package/dist/projects/proj-next/issues/list/index.html +1 -1
  157. package/dist/projects/proj-next/milestones/index.html +1 -1
  158. package/dist/projects/proj-next/templates/index.html +1 -1
  159. package/dist/settings/index.html +1 -1
  160. package/dist/time/index.html +1 -1
  161. package/package.json +1 -1
  162. package/dist/agents/art.png +0 -0
  163. package/dist/agents/art@2x.png +0 -0
  164. package/dist/agents/biz.png +0 -0
  165. package/dist/agents/biz@2x.png +0 -0
  166. package/dist/agents/cyber.png +0 -0
  167. package/dist/agents/cyber@2x.png +0 -0
  168. package/dist/agents/data.png +0 -0
  169. package/dist/agents/data@2x.png +0 -0
  170. package/dist/agents/des.png +0 -0
  171. package/dist/agents/des@2x.png +0 -0
  172. package/dist/agents/dev.png +0 -0
  173. package/dist/agents/dev@2x.png +0 -0
  174. package/dist/agents/doc.png +0 -0
  175. package/dist/agents/doc@2x.png +0 -0
  176. package/dist/agents/ed.png +0 -0
  177. package/dist/agents/ed@2x.png +0 -0
  178. package/dist/agents/edu.png +0 -0
  179. package/dist/agents/edu@2x.png +0 -0
  180. package/dist/agents/fin.png +0 -0
  181. package/dist/agents/fin@2x.png +0 -0
  182. package/dist/agents/gov.png +0 -0
  183. package/dist/agents/gov@2x.png +0 -0
  184. package/dist/agents/grant.png +0 -0
  185. package/dist/agents/grant@2x.png +0 -0
  186. package/dist/agents/huma.png +0 -0
  187. package/dist/agents/huma@2x.png +0 -0
  188. package/dist/agents/lang.png +0 -0
  189. package/dist/agents/lang@2x.png +0 -0
  190. package/dist/agents/law.png +0 -0
  191. package/dist/agents/law@2x.png +0 -0
  192. package/dist/agents/mana.png +0 -0
  193. package/dist/agents/mana@2x.png +0 -0
  194. package/dist/agents/mark.png +0 -0
  195. package/dist/agents/mark@2x.png +0 -0
  196. package/dist/agents/mo.png +0 -0
  197. package/dist/agents/mo@2x.png +0 -0
  198. package/dist/agents/mu.png +0 -0
  199. package/dist/agents/mu@2x.png +0 -0
  200. package/dist/agents/opera.png +0 -0
  201. package/dist/agents/opera@2x.png +0 -0
  202. package/dist/agents/rev.png +0 -0
  203. package/dist/agents/rev@2x.png +0 -0
  204. package/dist/agents/sal.png +0 -0
  205. package/dist/agents/sal@2x.png +0 -0
  206. package/dist/agents/sci.png +0 -0
  207. package/dist/agents/sci@2x.png +0 -0
  208. package/dist/agents/su.png +0 -0
  209. package/dist/agents/su@2x.png +0 -0
  210. package/dist/agents/vi.png +0 -0
  211. package/dist/agents/vi@2x.png +0 -0
  212. package/dist/assets/index-DwTbwlhL.js +0 -241
  213. package/dist/assets/index-DwTbwlhL.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeToggleNext-CJw-doaf.js","names":["createContext","memo","useState","useMemo","_jsxs","_jsx","Script","useContext","_jsx"],"sources":["../../node_modules/.pnpm/@swc+helpers@0.5.23/node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../node_modules/.pnpm/@swc+helpers@0.5.23/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../node_modules/.pnpm/next@16.3.4_@babel+core@7.29.7_supports-color@8.1.1__@types+node@26.4.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../node_modules/.pnpm/next@16.3.4_@babel+core@7.29.7_supports-color@8.1.1__@types+node@26.4.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/next/dist/client/set-attributes-from-props.js","../../node_modules/.pnpm/next@16.3.4_@babel+core@7.29.7_supports-color@8.1.1__@types+node@26.4.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/next/dist/client/request-idle-callback.js","../../node_modules/.pnpm/next@16.3.4_@babel+core@7.29.7_supports-color@8.1.1__@types+node@26.4.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/next/dist/shared/lib/htmlescape.js","../../node_modules/.pnpm/next@16.3.4_@babel+core@7.29.7_supports-color@8.1.1__@types+node@26.4.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/next/dist/client/script.js","../../node_modules/.pnpm/next@16.3.4_@babel+core@7.29.7_supports-color@8.1.1__@types+node@26.4.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/next/script.js","../../node_modules/.pnpm/@hanzogui+next-theme@8.3.5_next@16.3.4_@babel+core@7.29.7_supports-color@8.1.1__@types+_87c7e759dd65c8c887e02d85d3ec3280/node_modules/@hanzogui/next-theme/dist/esm/constants.js","../../node_modules/.pnpm/@hanzogui+next-theme@8.3.5_next@16.3.4_@babel+core@7.29.7_supports-color@8.1.1__@types+_87c7e759dd65c8c887e02d85d3ec3280/node_modules/@hanzogui/next-theme/dist/esm/helpers.js","../../node_modules/.pnpm/@hanzogui+next-theme@8.3.5_next@16.3.4_@babel+core@7.29.7_supports-color@8.1.1__@types+_87c7e759dd65c8c887e02d85d3ec3280/node_modules/@hanzogui/next-theme/dist/esm/ThemeSettingContext.js","../../node_modules/.pnpm/@hanzogui+next-theme@8.3.5_next@16.3.4_@babel+core@7.29.7_supports-color@8.1.1__@types+_87c7e759dd65c8c887e02d85d3ec3280/node_modules/@hanzogui/next-theme/dist/esm/NextThemeProvider.js","../../node_modules/.pnpm/@hanzogui+next-theme@8.3.5_next@16.3.4_@babel+core@7.29.7_supports-color@8.1.1__@types+_87c7e759dd65c8c887e02d85d3ec3280/node_modules/@hanzogui/next-theme/dist/esm/useTheme.js","../../node_modules/.pnpm/@hanzo+ui@8.32.4_9c7718d2f737388a8b34f13bdcaf5de1/node_modules/@hanzo/ui/dist/product/ThemeToggleNext.js"],"sourcesContent":["\"use strict\";\n\nfunction _interop_require_default(obj) {\n return obj && obj.__esModule ? obj : { default: obj };\n}\nexports._ = _interop_require_default;\n","\"use strict\";\n\nfunction _getRequireWildcardCache(nodeInterop) {\n if (typeof WeakMap !== \"function\") return null;\n\n var cacheBabelInterop = new WeakMap();\n var cacheNodeInterop = new WeakMap();\n\n return (_getRequireWildcardCache = function(nodeInterop) {\n return nodeInterop ? cacheNodeInterop : cacheBabelInterop;\n })(nodeInterop);\n}\nfunction _interop_require_wildcard(obj, nodeInterop) {\n if (!nodeInterop && obj && obj.__esModule) return obj;\n if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") return { default: obj };\n\n var cache = _getRequireWildcardCache(nodeInterop);\n\n if (cache && cache.has(obj)) return cache.get(obj);\n\n var newObj = { __proto__: null };\n var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;\n\n for (var key in obj) {\n if (key !== \"default\" && Object.prototype.hasOwnProperty.call(obj, key)) {\n var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;\n if (desc && (desc.get || desc.set)) Object.defineProperty(newObj, key, desc);\n else newObj[key] = obj[key];\n }\n }\n\n newObj.default = obj;\n\n if (cache) cache.set(obj, newObj);\n\n return newObj;\n}\nexports._ = _interop_require_wildcard;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"HeadManagerContext\", {\n enumerable: true,\n get: function() {\n return HeadManagerContext;\n }\n});\nconst _interop_require_default = require(\"@swc/helpers/_/_interop_require_default\");\nconst _react = /*#__PURE__*/ _interop_require_default._(require(\"react\"));\nconst HeadManagerContext = _react.default.createContext({});\nif (process.env.NODE_ENV !== 'production') {\n HeadManagerContext.displayName = 'HeadManagerContext';\n}\n\n//# sourceMappingURL=head-manager-context.shared-runtime.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"setAttributesFromProps\", {\n enumerable: true,\n get: function() {\n return setAttributesFromProps;\n }\n});\nconst DOMAttributeNames = {\n acceptCharset: 'accept-charset',\n className: 'class',\n htmlFor: 'for',\n httpEquiv: 'http-equiv',\n noModule: 'noModule'\n};\nconst ignoreProps = [\n 'onLoad',\n 'onReady',\n 'dangerouslySetInnerHTML',\n 'children',\n 'onError',\n 'strategy',\n 'stylesheets'\n];\nfunction isBooleanScriptAttribute(attr) {\n return [\n 'async',\n 'defer',\n 'noModule'\n ].includes(attr);\n}\nfunction setAttributesFromProps(el, props) {\n for (const [p, value] of Object.entries(props)){\n if (!props.hasOwnProperty(p)) continue;\n if (ignoreProps.includes(p)) continue;\n // we don't render undefined props to the DOM\n if (value === undefined) {\n continue;\n }\n const attr = DOMAttributeNames[p] || p.toLowerCase();\n if (el.tagName === 'SCRIPT' && isBooleanScriptAttribute(attr)) {\n // Correctly assign boolean script attributes\n // https://github.com/vercel/next.js/pull/20748\n ;\n el[attr] = !!value;\n } else {\n el.setAttribute(attr, String(value));\n }\n // Remove falsy non-zero boolean attributes so they are correctly interpreted\n // (e.g. if we set them to false, this coerces to the string \"false\", which the browser interprets as true)\n if (value === false || el.tagName === 'SCRIPT' && isBooleanScriptAttribute(attr) && (!value || value === 'false')) {\n // Call setAttribute before, as we need to set and unset the attribute to override force async:\n // https://html.spec.whatwg.org/multipage/scripting.html#script-force-async\n el.setAttribute(attr, '');\n el.removeAttribute(attr);\n }\n }\n}\n\nif ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {\n Object.defineProperty(exports.default, '__esModule', { value: true });\n Object.assign(exports.default, exports);\n module.exports = exports.default;\n}\n\n//# sourceMappingURL=set-attributes-from-props.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n0 && (module.exports = {\n cancelIdleCallback: null,\n requestIdleCallback: null\n});\nfunction _export(target, all) {\n for(var name in all)Object.defineProperty(target, name, {\n enumerable: true,\n get: all[name]\n });\n}\n_export(exports, {\n cancelIdleCallback: function() {\n return cancelIdleCallback;\n },\n requestIdleCallback: function() {\n return requestIdleCallback;\n }\n});\nconst requestIdleCallback = typeof self !== 'undefined' && self.requestIdleCallback && self.requestIdleCallback.bind(window) || function(cb) {\n let start = Date.now();\n return self.setTimeout(function() {\n cb({\n didTimeout: false,\n timeRemaining: function() {\n return Math.max(0, 50 - (Date.now() - start));\n }\n });\n }, 1);\n};\nconst cancelIdleCallback = typeof self !== 'undefined' && self.cancelIdleCallback && self.cancelIdleCallback.bind(window) || function(id) {\n return clearTimeout(id);\n};\n\nif ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {\n Object.defineProperty(exports.default, '__esModule', { value: true });\n Object.assign(exports.default, exports);\n module.exports = exports.default;\n}\n\n//# sourceMappingURL=request-idle-callback.js.map","// This utility is based on https://github.com/zertosh/htmlescape\n// License: https://github.com/zertosh/htmlescape/blob/0527ca7156a524d256101bb310a9f970f63078ad/LICENSE\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n0 && (module.exports = {\n ESCAPE_REGEX: null,\n htmlEscapeAttributeString: null,\n htmlEscapeJsonString: null\n});\nfunction _export(target, all) {\n for(var name in all)Object.defineProperty(target, name, {\n enumerable: true,\n get: all[name]\n });\n}\n_export(exports, {\n ESCAPE_REGEX: function() {\n return ESCAPE_REGEX;\n },\n htmlEscapeAttributeString: function() {\n return htmlEscapeAttributeString;\n },\n htmlEscapeJsonString: function() {\n return htmlEscapeJsonString;\n }\n});\nconst ESCAPE_LOOKUP = {\n '&': '\\\\u0026',\n '>': '\\\\u003e',\n '<': '\\\\u003c',\n '\\u2028': '\\\\u2028',\n '\\u2029': '\\\\u2029'\n};\nconst ESCAPE_REGEX = /[&><\\u2028\\u2029]/g;\nconst ATTRIBUTE_ESCAPE_LOOKUP = {\n '&': '&amp;',\n '\"': '&quot;',\n \"'\": '&#39;',\n '<': '&lt;',\n '>': '&gt;'\n};\nconst ATTRIBUTE_ESCAPE_REGEX = /[&\"'<>]/g;\nfunction htmlEscapeJsonString(str) {\n return str.replace(ESCAPE_REGEX, (match)=>ESCAPE_LOOKUP[match]);\n}\nfunction htmlEscapeAttributeString(str) {\n return str.replace(ATTRIBUTE_ESCAPE_REGEX, (match)=>ATTRIBUTE_ESCAPE_LOOKUP[match]);\n}\n\n//# sourceMappingURL=htmlescape.js.map","'use client';\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n0 && (module.exports = {\n default: null,\n handleClientScriptLoad: null,\n initScriptLoader: null\n});\nfunction _export(target, all) {\n for(var name in all)Object.defineProperty(target, name, {\n enumerable: true,\n get: all[name]\n });\n}\n_export(exports, {\n default: function() {\n return _default;\n },\n handleClientScriptLoad: function() {\n return handleClientScriptLoad;\n },\n initScriptLoader: function() {\n return initScriptLoader;\n }\n});\nconst _interop_require_default = require(\"@swc/helpers/_/_interop_require_default\");\nconst _interop_require_wildcard = require(\"@swc/helpers/_/_interop_require_wildcard\");\nconst _jsxruntime = require(\"react/jsx-runtime\");\nconst _reactdom = /*#__PURE__*/ _interop_require_default._(require(\"react-dom\"));\nconst _react = /*#__PURE__*/ _interop_require_wildcard._(require(\"react\"));\nconst _headmanagercontextsharedruntime = require(\"../shared/lib/head-manager-context.shared-runtime\");\nconst _setattributesfromprops = require(\"./set-attributes-from-props\");\nconst _requestidlecallback = require(\"./request-idle-callback\");\nconst _htmlescape = require(\"../shared/lib/htmlescape\");\nconst ScriptCache = new Map();\nconst LoadCache = new Set();\nconst insertStylesheets = (stylesheets)=>{\n // Case 1: Styles for afterInteractive/lazyOnload with appDir injected via handleClientScriptLoad\n //\n // Using ReactDOM.preinit to feature detect appDir and inject styles\n // Stylesheets might have already been loaded if initialized with Script component\n // Re-inject styles here to handle scripts loaded via handleClientScriptLoad\n // ReactDOM.preinit handles dedup and ensures the styles are loaded only once\n if (_reactdom.default.preinit) {\n stylesheets.forEach((stylesheet)=>{\n _reactdom.default.preinit(stylesheet, {\n as: 'style'\n });\n });\n return;\n }\n // Case 2: Styles for afterInteractive/lazyOnload with pages injected via handleClientScriptLoad\n //\n // We use this function to load styles when appdir is not detected\n // TODO: Use React float APIs to load styles once available for pages dir\n if (typeof window !== 'undefined') {\n let head = document.head;\n stylesheets.forEach((stylesheet)=>{\n let link = document.createElement('link');\n link.type = 'text/css';\n link.rel = 'stylesheet';\n link.href = stylesheet;\n head.appendChild(link);\n });\n }\n};\nconst loadScript = (props)=>{\n const { src, id, onLoad = ()=>{}, onReady = null, dangerouslySetInnerHTML, children = '', strategy = 'afterInteractive', onError, stylesheets } = props;\n const cacheKey = id || src;\n // Script has already loaded\n if (cacheKey && LoadCache.has(cacheKey)) {\n return;\n }\n // Contents of this script are already loading/loaded\n if (ScriptCache.has(src)) {\n LoadCache.add(cacheKey);\n // It is possible that multiple `next/script` components all have same \"src\", but has different \"onLoad\"\n // This is to make sure the same remote script will only load once, but \"onLoad\" are executed in order\n ScriptCache.get(src).then(onLoad, onError);\n return;\n }\n /** Execute after the script first loaded */ const afterLoad = ()=>{\n // Run onReady for the first time after load event\n if (onReady) {\n onReady();\n }\n // add cacheKey to LoadCache when load successfully\n LoadCache.add(cacheKey);\n };\n const el = document.createElement('script');\n const loadPromise = new Promise((resolve, reject)=>{\n el.addEventListener('load', function(e) {\n resolve();\n if (onLoad) {\n onLoad.call(this, e);\n }\n afterLoad();\n });\n el.addEventListener('error', function(e) {\n reject(e);\n });\n }).catch(function(e) {\n if (onError) {\n onError(e);\n }\n });\n if (dangerouslySetInnerHTML) {\n // Casting since lib.dom.d.ts doesn't have TrustedHTML yet.\n el.innerHTML = dangerouslySetInnerHTML.__html || '';\n afterLoad();\n } else if (children) {\n el.textContent = typeof children === 'string' ? children : Array.isArray(children) ? children.join('') : '';\n afterLoad();\n } else if (src) {\n el.src = src;\n // do not add cacheKey into LoadCache for remote script here\n // cacheKey will be added to LoadCache when it is actually loaded (see loadPromise above)\n ScriptCache.set(src, loadPromise);\n }\n (0, _setattributesfromprops.setAttributesFromProps)(el, props);\n if (strategy === 'worker') {\n el.setAttribute('type', 'text/partytown');\n }\n el.setAttribute('data-nscript', strategy);\n // Load styles associated with this script\n if (stylesheets) {\n insertStylesheets(stylesheets);\n }\n document.body.appendChild(el);\n};\nfunction handleClientScriptLoad(props) {\n const { strategy = 'afterInteractive' } = props;\n if (strategy === 'lazyOnload') {\n window.addEventListener('load', ()=>{\n (0, _requestidlecallback.requestIdleCallback)(()=>loadScript(props));\n });\n } else {\n loadScript(props);\n }\n}\nfunction loadLazyScript(props) {\n if (document.readyState === 'complete') {\n (0, _requestidlecallback.requestIdleCallback)(()=>loadScript(props));\n } else {\n window.addEventListener('load', ()=>{\n (0, _requestidlecallback.requestIdleCallback)(()=>loadScript(props));\n });\n }\n}\nfunction addBeforeInteractiveToCache() {\n const scripts = [\n ...document.querySelectorAll('[data-nscript=\"beforeInteractive\"]'),\n ...document.querySelectorAll('[data-nscript=\"beforePageRender\"]')\n ];\n scripts.forEach((script)=>{\n const cacheKey = script.id || script.getAttribute('src');\n LoadCache.add(cacheKey);\n });\n}\nfunction initScriptLoader(scriptLoaderItems) {\n scriptLoaderItems.forEach(handleClientScriptLoad);\n addBeforeInteractiveToCache();\n}\n/**\n * Load a third-party scripts in an optimized way.\n *\n * Read more: [Next.js Docs: `next/script`](https://nextjs.org/docs/app/api-reference/components/script)\n */ function Script(props) {\n const { id, src = '', onLoad = ()=>{}, onReady = null, strategy = 'afterInteractive', onError, stylesheets, ...restProps } = props;\n // Context is available only during SSR\n let { updateScripts, scripts, getIsSsr, appDir, nonce } = (0, _react.useContext)(_headmanagercontextsharedruntime.HeadManagerContext);\n // if a nonce is explicitly passed to the script tag, favor that over the automatic handling\n nonce = restProps.nonce || nonce;\n /**\n * - First mount:\n * 1. The useEffect for onReady executes\n * 2. hasOnReadyEffectCalled.current is false, but the script hasn't loaded yet (not in LoadCache)\n * onReady is skipped, set hasOnReadyEffectCalled.current to true\n * 3. The useEffect for loadScript executes\n * 4. hasLoadScriptEffectCalled.current is false, loadScript executes\n * Once the script is loaded, the onLoad and onReady will be called by then\n * [If strict mode is enabled / is wrapped in <OffScreen /> component]\n * 5. The useEffect for onReady executes again\n * 6. hasOnReadyEffectCalled.current is true, so entire effect is skipped\n * 7. The useEffect for loadScript executes again\n * 8. hasLoadScriptEffectCalled.current is true, so entire effect is skipped\n *\n * - Second mount:\n * 1. The useEffect for onReady executes\n * 2. hasOnReadyEffectCalled.current is false, but the script has already loaded (found in LoadCache)\n * onReady is called, set hasOnReadyEffectCalled.current to true\n * 3. The useEffect for loadScript executes\n * 4. The script is already loaded, loadScript bails out\n * [If strict mode is enabled / is wrapped in <OffScreen /> component]\n * 5. The useEffect for onReady executes again\n * 6. hasOnReadyEffectCalled.current is true, so entire effect is skipped\n * 7. The useEffect for loadScript executes again\n * 8. hasLoadScriptEffectCalled.current is true, so entire effect is skipped\n */ const hasOnReadyEffectCalled = (0, _react.useRef)(false);\n (0, _react.useEffect)(()=>{\n const cacheKey = id || src;\n if (!hasOnReadyEffectCalled.current) {\n // Run onReady if script has loaded before but component is re-mounted\n if (onReady && cacheKey && LoadCache.has(cacheKey)) {\n onReady();\n }\n hasOnReadyEffectCalled.current = true;\n }\n }, [\n onReady,\n id,\n src\n ]);\n const hasLoadScriptEffectCalled = (0, _react.useRef)(false);\n (0, _react.useEffect)(()=>{\n if (!hasLoadScriptEffectCalled.current) {\n if (strategy === 'afterInteractive') {\n loadScript(props);\n } else if (strategy === 'lazyOnload') {\n loadLazyScript(props);\n }\n hasLoadScriptEffectCalled.current = true;\n }\n }, [\n props,\n strategy\n ]);\n if (strategy === 'beforeInteractive' || strategy === 'worker') {\n if (updateScripts) {\n scripts[strategy] = (scripts[strategy] || []).concat([\n {\n id,\n src,\n onLoad,\n onReady,\n onError,\n ...restProps,\n nonce\n }\n ]);\n updateScripts(scripts);\n } else if (getIsSsr && getIsSsr()) {\n // Script has already loaded during SSR\n LoadCache.add(id || src);\n } else if (getIsSsr && !getIsSsr()) {\n loadScript({\n ...props,\n nonce\n });\n }\n }\n // For the app directory, we need React Float to preload these scripts.\n if (appDir) {\n // Injecting stylesheets here handles beforeInteractive and worker scripts correctly\n // For other strategies injecting here ensures correct stylesheet order\n // ReactDOM.preinit handles loading the styles in the correct order,\n // also ensures the stylesheet is loaded only once and in a consistent manner\n //\n // Case 1: Styles for beforeInteractive/worker with appDir - handled here\n // Case 2: Styles for beforeInteractive/worker with pages dir - Not handled yet\n // Case 3: Styles for afterInteractive/lazyOnload with appDir - handled here\n // Case 4: Styles for afterInteractive/lazyOnload with pages dir - handled in insertStylesheets function\n if (stylesheets) {\n stylesheets.forEach((styleSrc)=>{\n _reactdom.default.preinit(styleSrc, {\n as: 'style'\n });\n });\n }\n // Before interactive scripts need to be loaded by Next.js' runtime instead\n // of native <script> tags, because they no longer have `defer`.\n if (strategy === 'beforeInteractive') {\n if (!src) {\n // For inlined scripts, we put the content in `children`.\n if (restProps.dangerouslySetInnerHTML) {\n // Casting since lib.dom.d.ts doesn't have TrustedHTML yet.\n restProps.children = restProps.dangerouslySetInnerHTML.__html;\n delete restProps.dangerouslySetInnerHTML;\n }\n return /*#__PURE__*/ (0, _jsxruntime.jsx)(\"script\", {\n nonce: nonce,\n dangerouslySetInnerHTML: {\n __html: `(self.__next_s=self.__next_s||[]).push(${(0, _htmlescape.htmlEscapeJsonString)(JSON.stringify([\n 0,\n {\n ...restProps,\n id\n }\n ]))})`\n }\n });\n } else {\n // @ts-ignore\n _reactdom.default.preload(src, restProps.integrity ? {\n as: 'script',\n integrity: restProps.integrity,\n nonce,\n crossOrigin: restProps.crossOrigin\n } : {\n as: 'script',\n nonce,\n crossOrigin: restProps.crossOrigin\n });\n return /*#__PURE__*/ (0, _jsxruntime.jsx)(\"script\", {\n nonce: nonce,\n dangerouslySetInnerHTML: {\n __html: `(self.__next_s=self.__next_s||[]).push(${(0, _htmlescape.htmlEscapeJsonString)(JSON.stringify([\n src,\n {\n ...restProps,\n id\n }\n ]))})`\n }\n });\n }\n } else if (strategy === 'afterInteractive') {\n if (src) {\n // @ts-ignore\n _reactdom.default.preload(src, restProps.integrity ? {\n as: 'script',\n integrity: restProps.integrity,\n nonce,\n crossOrigin: restProps.crossOrigin\n } : {\n as: 'script',\n nonce,\n crossOrigin: restProps.crossOrigin\n });\n }\n }\n }\n return null;\n}\nObject.defineProperty(Script, '__nextScript', {\n value: true\n});\nconst _default = Script;\n\nif ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {\n Object.defineProperty(exports.default, '__esModule', { value: true });\n Object.assign(exports.default, exports);\n module.exports = exports.default;\n}\n\n//# sourceMappingURL=script.js.map","module.exports = require('./dist/client/script')\n","export const constants = {};\nexport const colorSchemes = ['light', 'dark'];\nexport const MEDIA = '(prefers-color-scheme: dark)';\n//# sourceMappingURL=constants.js.map","import { MEDIA } from './constants.js';\nexport const helpers = {};\n// Helpers\nexport const getTheme = (key, fallback) => {\n if (typeof window === 'undefined')\n return undefined;\n let theme;\n try {\n theme = localStorage.getItem(key) || undefined;\n }\n catch (e) {\n // Unsupported\n }\n return theme || fallback;\n};\nexport const getSystemTheme = (e) => {\n if (!e) {\n e = window.matchMedia(MEDIA);\n }\n const isDark = e.matches;\n const systemTheme = isDark ? 'dark' : 'light';\n return systemTheme;\n};\n//# sourceMappingURL=helpers.js.map","import { createContext } from 'react';\nexport const ThemeSettingContext = createContext({\n toggle: () => { },\n set: (_) => { },\n themes: [],\n});\n//# sourceMappingURL=ThemeSettingContext.js.map","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { useIsomorphicLayoutEffect } from '@hanzogui/constants';\nimport { useEvent } from '@hanzogui/use-event';\nimport Script from 'next/script';\nimport * as React from 'react';\nimport { memo, useEffect, useMemo, useState } from 'react';\nimport { MEDIA, colorSchemes } from './constants.js';\nimport { getSystemTheme, getTheme } from './helpers.js';\nimport { ThemeSettingContext } from './ThemeSettingContext.js';\nexport const NextThemeProvider = memo(({ forcedTheme, disableTransitionOnChange = false, enableSystem = true, enableColorScheme = true, storageKey = 'theme', themes = colorSchemes, defaultTheme = enableSystem ? 'system' : 'light', attribute = 'class', skipNextHead, onChangeTheme, value = {\n dark: 't_dark',\n light: 't_light',\n}, children, }) => {\n const [theme, setThemeState] = useState(() => getTheme(storageKey, defaultTheme));\n const [resolvedTheme, setResolvedTheme] = useState(() => getTheme(storageKey));\n const attrs = !value ? themes : Object.values(value);\n const handleMediaQuery = useEvent((e) => {\n const _ = getSystemTheme(e);\n const update = () => setResolvedTheme(_);\n if (disableTransitionOnChange) {\n update();\n }\n else {\n React.startTransition(() => update());\n }\n if (theme === 'system' && !forcedTheme) {\n handleChangeTheme(_, false);\n }\n });\n const handleChangeTheme = useEvent((theme, updateStorage = true, updateDOM = true) => {\n let name = value?.[theme] || theme;\n if (updateStorage) {\n try {\n localStorage.setItem(storageKey, theme);\n }\n catch (e) {\n // Unsupported\n }\n }\n if (theme === 'system' && enableSystem) {\n const resolved = getSystemTheme();\n name = value?.[resolved] || resolved;\n }\n onChangeTheme?.(name.replace('t_', ''));\n if (updateDOM) {\n const d = document.documentElement;\n if (attribute === 'class') {\n d.classList.remove(...attrs);\n d.classList.add(name);\n }\n else {\n d.setAttribute(attribute, name);\n }\n }\n });\n useIsomorphicLayoutEffect(() => {\n // Always listen to System preference\n const media = window.matchMedia(MEDIA);\n // Intentionally use deprecated listener methods to support iOS & old browsers\n media.addListener(handleMediaQuery);\n handleMediaQuery(media);\n return () => {\n media.removeListener(handleMediaQuery);\n };\n }, []);\n const set = useEvent((newTheme) => {\n if (forcedTheme) {\n // when forcedTheme is active, block all updates to avoid desync\n return;\n }\n handleChangeTheme(newTheme);\n setThemeState(newTheme);\n });\n // localStorage event handling\n useEffect(() => {\n const handleStorage = (e) => {\n if (e.key !== storageKey) {\n return;\n }\n // If default theme set, use it if localstorage === null (happens on local storage manual deletion)\n const theme = e.newValue || defaultTheme;\n set(theme);\n };\n window.addEventListener('storage', handleStorage);\n return () => {\n window.removeEventListener('storage', handleStorage);\n };\n }, [defaultTheme, set, storageKey]);\n // color-scheme handling\n useIsomorphicLayoutEffect(() => {\n if (!enableColorScheme)\n return;\n const colorScheme = \n // If theme is forced to light or dark, use that\n forcedTheme && colorSchemes.includes(forcedTheme)\n ? forcedTheme\n : // If regular theme is light or dark\n theme && colorSchemes.includes(theme)\n ? theme\n : // If theme is system, use the resolved version\n theme === 'system'\n ? resolvedTheme || null\n : null;\n // color-scheme tells browser how to render built-in elements like forms, scrollbars, etc.\n // if color-scheme is null, this will remove the property\n const userPrefers = typeof window !== 'undefined' &&\n window.matchMedia &&\n window.matchMedia('(prefers-color-scheme: dark)').matches\n ? 'dark'\n : 'light';\n const wePrefer = colorScheme || 'light';\n // avoid running this because it causes full page reflow\n if (userPrefers !== wePrefer) {\n document.documentElement.style.setProperty('color-scheme', colorScheme);\n }\n }, [enableColorScheme, theme, resolvedTheme, forcedTheme]);\n const toggle = useEvent(() => {\n const order = resolvedTheme === 'dark'\n ? ['system', 'light', 'dark']\n : ['system', 'dark', 'light'];\n const next = order[(order.indexOf(theme) + 1) % order.length];\n set(next);\n });\n const systemTheme = (enableSystem ? resolvedTheme : undefined);\n const contextValue = useMemo(() => {\n const value = {\n theme,\n current: theme,\n set,\n toggle,\n forcedTheme,\n resolvedTheme: theme === 'system' ? resolvedTheme : theme,\n themes: enableSystem ? [...themes, 'system'] : themes,\n systemTheme,\n };\n return value;\n }, [\n theme,\n set,\n toggle,\n forcedTheme,\n resolvedTheme,\n enableSystem,\n themes,\n systemTheme,\n ]);\n return (_jsxs(ThemeSettingContext.Provider, { value: contextValue, children: [_jsx(ThemeScript, { forcedTheme,\n storageKey,\n systemTheme: resolvedTheme,\n attribute,\n value,\n enableSystem,\n defaultTheme,\n attrs,\n skipNextHead }), children] }));\n});\nconst ThemeScript = memo(({ forcedTheme, storageKey, attribute, enableSystem, defaultTheme, value, attrs, skipNextHead, }) => {\n // Code-golfing the amount of characters in the script\n const optimization = (() => {\n if (attribute === 'class') {\n const removeClasses = attrs.map((t) => `d.remove('${t}')`).join(';');\n return `var d=document.documentElement.classList;${removeClasses};`;\n }\n return `var d=document.documentElement;`;\n })();\n const updateDOM = (name, literal) => {\n name = value?.[name] || name;\n const val = literal ? name : `'${name}'`;\n if (attribute === 'class') {\n return `d.add(${val})`;\n }\n return `d.setAttribute('${attribute}', ${val})`;\n };\n const defaultSystem = defaultTheme === 'system';\n const scriptContent = forcedTheme\n ? `!function(){${optimization}${updateDOM(forcedTheme)}}()`\n : enableSystem\n ? `!function(){try {${optimization}var e=localStorage.getItem('${storageKey}');if(\"system\"===e||(!e&&${defaultSystem})){var t=\"${MEDIA}\",m=window.matchMedia(t);m.media!==t||m.matches?${updateDOM('dark')}:${updateDOM('light')}}else if(e){${value ? `var x=${JSON.stringify(value)};` : ''}${updateDOM(value ? 'x[e]' : 'e', true)}}${!defaultSystem ? `else{${updateDOM(defaultTheme)}}` : ''}}catch(e){}}()`\n : `!function(){try{${optimization}var e=localStorage.getItem(\"${storageKey}\");if(e){${value ? `var x=${JSON.stringify(value)};` : ''}${updateDOM(value ? 'x[e]' : 'e', true)}}else{${updateDOM(defaultTheme)};}}catch(t){}}();`;\n // skipNextHead returns raw script for useServerInsertedHTML usage\n if (skipNextHead) {\n return (_jsx(\"script\", { dangerouslySetInnerHTML: { __html: scriptContent } }, \"next-themes-script\"));\n }\n return (_jsx(Script, { id: \"next-themes-script\", strategy: \"beforeInteractive\", dangerouslySetInnerHTML: { __html: scriptContent } }));\n}, (prevProps, nextProps) => {\n // Only re-render when forcedTheme changes\n // the rest of the props should be completely stable\n if (prevProps.forcedTheme !== nextProps.forcedTheme)\n return false;\n return true;\n});\n//# sourceMappingURL=NextThemeProvider.js.map","import { useContext } from 'react';\nimport { ThemeSettingContext } from './ThemeSettingContext.js';\n/**\n * @deprecated renamed to `useThemeSetting` to avoid confusion with core `useTheme` hook\n */\nexport const useTheme = () => useContext(ThemeSettingContext);\nexport const useThemeSetting = () => useContext(ThemeSettingContext);\n//# sourceMappingURL=useTheme.js.map","'use client';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n/**\n * ThemeToggleNext — the @hanzogui/next-theme binding (console / Next). This is the ONLY\n * module that imports @hanzogui/next-theme, so it stays an OPTIONAL dependency: the base\n * ThemeToggle lazy-loads it (default export) and non-Next hosts never pull it in unless\n * they import this component directly. UI is delegated to the framework-agnostic button\n * in controlled mode, so every toggle looks identical.\n */\nimport { useThemeSetting } from '@hanzogui/next-theme';\nimport { AgnosticThemeToggle } from './ThemeToggle.js';\nfunction ThemeToggleNext({ size, label }) {\n const { current, resolvedTheme, set } = useThemeSetting();\n const isDark = (resolvedTheme ?? current ?? 'dark') !== 'light';\n return (_jsx(AgnosticThemeToggle, { theme: isDark ? 'dark' : 'light', onToggle: (next) => set(next), size: size, label: label }));\n}\nexport default ThemeToggleNext;\nexport { ThemeToggleNext };\n//# sourceMappingURL=ThemeToggleNext.js.map"],"x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13],"mappings":"sGAEA,SAAS,EAAyB,EAAK,CACnC,OAAO,GAAO,EAAI,WAAa,EAAM,CAAE,QAAS,CAAI,CACxD,CACA,EAAQ,EAAI,cCHZ,SAAS,EAAyB,EAAa,CAC3C,GAAI,OAAO,SAAY,WAAY,OAAO,KAE1C,IAAI,EAAoB,IAAI,QACxB,EAAmB,IAAI,QAE3B,OAAQ,EAA2B,SAAS,EAAa,CACrD,OAAO,EAAc,EAAmB,CAC5C,EAAA,CAAG,CAAW,CAClB,CACA,SAAS,EAA0B,EAAK,EAAa,CACjD,GAAI,CAAC,GAAe,GAAO,EAAI,WAAY,OAAO,EAClD,GAAI,IAAQ,MAAQ,OAAO,GAAQ,UAAY,OAAO,GAAQ,WAAY,MAAO,CAAE,QAAS,CAAI,EAEhG,IAAI,EAAQ,EAAyB,CAAW,EAEhD,GAAI,GAAS,EAAM,IAAI,CAAG,EAAG,OAAO,EAAM,IAAI,CAAG,EAEjD,IAAI,EAAS,CAAE,UAAW,IAAK,EAC3B,EAAwB,OAAO,gBAAkB,OAAO,yBAE5D,IAAK,IAAI,KAAO,EACZ,GAAI,IAAQ,WAAa,OAAO,UAAU,eAAe,KAAK,EAAK,CAAG,EAAG,CACrE,IAAI,EAAO,EAAwB,OAAO,yBAAyB,EAAK,CAAG,EAAI,KAC3E,IAAS,EAAK,KAAO,EAAK,KAAM,OAAO,eAAe,EAAQ,EAAK,CAAI,EACtE,EAAO,GAAO,EAAI,EAC3B,CAOJ,MAJA,GAAO,QAAU,EAEb,GAAO,EAAM,IAAI,EAAK,CAAM,EAEzB,CACX,CACA,EAAQ,EAAI,cCpCZ,OAAO,eAAe,EAAS,aAA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ADpB,GAAiB,GAAW,UAAY,QACK,QAAT,OAAkB,SAAW,GAAS,EAAI,CAAI,EAAS,OAAa,OAAM,CAAC,CACnI"}
1
+ {"version":3,"file":"ThemeToggleNext-Dl_lG82A.js","names":["createContext","memo","useState","useMemo","_jsxs","_jsx","Script","useContext","_jsx"],"sources":["../../node_modules/.pnpm/@swc+helpers@0.5.23/node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../node_modules/.pnpm/@swc+helpers@0.5.23/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../node_modules/.pnpm/next@16.3.4_@babel+core@7.29.7_supports-color@8.1.1__@types+node@26.4.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../node_modules/.pnpm/next@16.3.4_@babel+core@7.29.7_supports-color@8.1.1__@types+node@26.4.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/next/dist/client/set-attributes-from-props.js","../../node_modules/.pnpm/next@16.3.4_@babel+core@7.29.7_supports-color@8.1.1__@types+node@26.4.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/next/dist/client/request-idle-callback.js","../../node_modules/.pnpm/next@16.3.4_@babel+core@7.29.7_supports-color@8.1.1__@types+node@26.4.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/next/dist/shared/lib/htmlescape.js","../../node_modules/.pnpm/next@16.3.4_@babel+core@7.29.7_supports-color@8.1.1__@types+node@26.4.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/next/dist/client/script.js","../../node_modules/.pnpm/next@16.3.4_@babel+core@7.29.7_supports-color@8.1.1__@types+node@26.4.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/next/script.js","../../node_modules/.pnpm/@hanzogui+next-theme@8.3.5_next@16.3.4_@babel+core@7.29.7_supports-color@8.1.1__@types+_87c7e759dd65c8c887e02d85d3ec3280/node_modules/@hanzogui/next-theme/dist/esm/constants.js","../../node_modules/.pnpm/@hanzogui+next-theme@8.3.5_next@16.3.4_@babel+core@7.29.7_supports-color@8.1.1__@types+_87c7e759dd65c8c887e02d85d3ec3280/node_modules/@hanzogui/next-theme/dist/esm/helpers.js","../../node_modules/.pnpm/@hanzogui+next-theme@8.3.5_next@16.3.4_@babel+core@7.29.7_supports-color@8.1.1__@types+_87c7e759dd65c8c887e02d85d3ec3280/node_modules/@hanzogui/next-theme/dist/esm/ThemeSettingContext.js","../../node_modules/.pnpm/@hanzogui+next-theme@8.3.5_next@16.3.4_@babel+core@7.29.7_supports-color@8.1.1__@types+_87c7e759dd65c8c887e02d85d3ec3280/node_modules/@hanzogui/next-theme/dist/esm/NextThemeProvider.js","../../node_modules/.pnpm/@hanzogui+next-theme@8.3.5_next@16.3.4_@babel+core@7.29.7_supports-color@8.1.1__@types+_87c7e759dd65c8c887e02d85d3ec3280/node_modules/@hanzogui/next-theme/dist/esm/useTheme.js","../../node_modules/.pnpm/@hanzo+ui@8.32.4_9c7718d2f737388a8b34f13bdcaf5de1/node_modules/@hanzo/ui/dist/product/ThemeToggleNext.js"],"sourcesContent":["\"use strict\";\n\nfunction _interop_require_default(obj) {\n return obj && obj.__esModule ? obj : { default: obj };\n}\nexports._ = _interop_require_default;\n","\"use strict\";\n\nfunction _getRequireWildcardCache(nodeInterop) {\n if (typeof WeakMap !== \"function\") return null;\n\n var cacheBabelInterop = new WeakMap();\n var cacheNodeInterop = new WeakMap();\n\n return (_getRequireWildcardCache = function(nodeInterop) {\n return nodeInterop ? cacheNodeInterop : cacheBabelInterop;\n })(nodeInterop);\n}\nfunction _interop_require_wildcard(obj, nodeInterop) {\n if (!nodeInterop && obj && obj.__esModule) return obj;\n if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") return { default: obj };\n\n var cache = _getRequireWildcardCache(nodeInterop);\n\n if (cache && cache.has(obj)) return cache.get(obj);\n\n var newObj = { __proto__: null };\n var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;\n\n for (var key in obj) {\n if (key !== \"default\" && Object.prototype.hasOwnProperty.call(obj, key)) {\n var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;\n if (desc && (desc.get || desc.set)) Object.defineProperty(newObj, key, desc);\n else newObj[key] = obj[key];\n }\n }\n\n newObj.default = obj;\n\n if (cache) cache.set(obj, newObj);\n\n return newObj;\n}\nexports._ = _interop_require_wildcard;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"HeadManagerContext\", {\n enumerable: true,\n get: function() {\n return HeadManagerContext;\n }\n});\nconst _interop_require_default = require(\"@swc/helpers/_/_interop_require_default\");\nconst _react = /*#__PURE__*/ _interop_require_default._(require(\"react\"));\nconst HeadManagerContext = _react.default.createContext({});\nif (process.env.NODE_ENV !== 'production') {\n HeadManagerContext.displayName = 'HeadManagerContext';\n}\n\n//# sourceMappingURL=head-manager-context.shared-runtime.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"setAttributesFromProps\", {\n enumerable: true,\n get: function() {\n return setAttributesFromProps;\n }\n});\nconst DOMAttributeNames = {\n acceptCharset: 'accept-charset',\n className: 'class',\n htmlFor: 'for',\n httpEquiv: 'http-equiv',\n noModule: 'noModule'\n};\nconst ignoreProps = [\n 'onLoad',\n 'onReady',\n 'dangerouslySetInnerHTML',\n 'children',\n 'onError',\n 'strategy',\n 'stylesheets'\n];\nfunction isBooleanScriptAttribute(attr) {\n return [\n 'async',\n 'defer',\n 'noModule'\n ].includes(attr);\n}\nfunction setAttributesFromProps(el, props) {\n for (const [p, value] of Object.entries(props)){\n if (!props.hasOwnProperty(p)) continue;\n if (ignoreProps.includes(p)) continue;\n // we don't render undefined props to the DOM\n if (value === undefined) {\n continue;\n }\n const attr = DOMAttributeNames[p] || p.toLowerCase();\n if (el.tagName === 'SCRIPT' && isBooleanScriptAttribute(attr)) {\n // Correctly assign boolean script attributes\n // https://github.com/vercel/next.js/pull/20748\n ;\n el[attr] = !!value;\n } else {\n el.setAttribute(attr, String(value));\n }\n // Remove falsy non-zero boolean attributes so they are correctly interpreted\n // (e.g. if we set them to false, this coerces to the string \"false\", which the browser interprets as true)\n if (value === false || el.tagName === 'SCRIPT' && isBooleanScriptAttribute(attr) && (!value || value === 'false')) {\n // Call setAttribute before, as we need to set and unset the attribute to override force async:\n // https://html.spec.whatwg.org/multipage/scripting.html#script-force-async\n el.setAttribute(attr, '');\n el.removeAttribute(attr);\n }\n }\n}\n\nif ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {\n Object.defineProperty(exports.default, '__esModule', { value: true });\n Object.assign(exports.default, exports);\n module.exports = exports.default;\n}\n\n//# sourceMappingURL=set-attributes-from-props.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n0 && (module.exports = {\n cancelIdleCallback: null,\n requestIdleCallback: null\n});\nfunction _export(target, all) {\n for(var name in all)Object.defineProperty(target, name, {\n enumerable: true,\n get: all[name]\n });\n}\n_export(exports, {\n cancelIdleCallback: function() {\n return cancelIdleCallback;\n },\n requestIdleCallback: function() {\n return requestIdleCallback;\n }\n});\nconst requestIdleCallback = typeof self !== 'undefined' && self.requestIdleCallback && self.requestIdleCallback.bind(window) || function(cb) {\n let start = Date.now();\n return self.setTimeout(function() {\n cb({\n didTimeout: false,\n timeRemaining: function() {\n return Math.max(0, 50 - (Date.now() - start));\n }\n });\n }, 1);\n};\nconst cancelIdleCallback = typeof self !== 'undefined' && self.cancelIdleCallback && self.cancelIdleCallback.bind(window) || function(id) {\n return clearTimeout(id);\n};\n\nif ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {\n Object.defineProperty(exports.default, '__esModule', { value: true });\n Object.assign(exports.default, exports);\n module.exports = exports.default;\n}\n\n//# sourceMappingURL=request-idle-callback.js.map","// This utility is based on https://github.com/zertosh/htmlescape\n// License: https://github.com/zertosh/htmlescape/blob/0527ca7156a524d256101bb310a9f970f63078ad/LICENSE\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n0 && (module.exports = {\n ESCAPE_REGEX: null,\n htmlEscapeAttributeString: null,\n htmlEscapeJsonString: null\n});\nfunction _export(target, all) {\n for(var name in all)Object.defineProperty(target, name, {\n enumerable: true,\n get: all[name]\n });\n}\n_export(exports, {\n ESCAPE_REGEX: function() {\n return ESCAPE_REGEX;\n },\n htmlEscapeAttributeString: function() {\n return htmlEscapeAttributeString;\n },\n htmlEscapeJsonString: function() {\n return htmlEscapeJsonString;\n }\n});\nconst ESCAPE_LOOKUP = {\n '&': '\\\\u0026',\n '>': '\\\\u003e',\n '<': '\\\\u003c',\n '\\u2028': '\\\\u2028',\n '\\u2029': '\\\\u2029'\n};\nconst ESCAPE_REGEX = /[&><\\u2028\\u2029]/g;\nconst ATTRIBUTE_ESCAPE_LOOKUP = {\n '&': '&amp;',\n '\"': '&quot;',\n \"'\": '&#39;',\n '<': '&lt;',\n '>': '&gt;'\n};\nconst ATTRIBUTE_ESCAPE_REGEX = /[&\"'<>]/g;\nfunction htmlEscapeJsonString(str) {\n return str.replace(ESCAPE_REGEX, (match)=>ESCAPE_LOOKUP[match]);\n}\nfunction htmlEscapeAttributeString(str) {\n return str.replace(ATTRIBUTE_ESCAPE_REGEX, (match)=>ATTRIBUTE_ESCAPE_LOOKUP[match]);\n}\n\n//# sourceMappingURL=htmlescape.js.map","'use client';\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n0 && (module.exports = {\n default: null,\n handleClientScriptLoad: null,\n initScriptLoader: null\n});\nfunction _export(target, all) {\n for(var name in all)Object.defineProperty(target, name, {\n enumerable: true,\n get: all[name]\n });\n}\n_export(exports, {\n default: function() {\n return _default;\n },\n handleClientScriptLoad: function() {\n return handleClientScriptLoad;\n },\n initScriptLoader: function() {\n return initScriptLoader;\n }\n});\nconst _interop_require_default = require(\"@swc/helpers/_/_interop_require_default\");\nconst _interop_require_wildcard = require(\"@swc/helpers/_/_interop_require_wildcard\");\nconst _jsxruntime = require(\"react/jsx-runtime\");\nconst _reactdom = /*#__PURE__*/ _interop_require_default._(require(\"react-dom\"));\nconst _react = /*#__PURE__*/ _interop_require_wildcard._(require(\"react\"));\nconst _headmanagercontextsharedruntime = require(\"../shared/lib/head-manager-context.shared-runtime\");\nconst _setattributesfromprops = require(\"./set-attributes-from-props\");\nconst _requestidlecallback = require(\"./request-idle-callback\");\nconst _htmlescape = require(\"../shared/lib/htmlescape\");\nconst ScriptCache = new Map();\nconst LoadCache = new Set();\nconst insertStylesheets = (stylesheets)=>{\n // Case 1: Styles for afterInteractive/lazyOnload with appDir injected via handleClientScriptLoad\n //\n // Using ReactDOM.preinit to feature detect appDir and inject styles\n // Stylesheets might have already been loaded if initialized with Script component\n // Re-inject styles here to handle scripts loaded via handleClientScriptLoad\n // ReactDOM.preinit handles dedup and ensures the styles are loaded only once\n if (_reactdom.default.preinit) {\n stylesheets.forEach((stylesheet)=>{\n _reactdom.default.preinit(stylesheet, {\n as: 'style'\n });\n });\n return;\n }\n // Case 2: Styles for afterInteractive/lazyOnload with pages injected via handleClientScriptLoad\n //\n // We use this function to load styles when appdir is not detected\n // TODO: Use React float APIs to load styles once available for pages dir\n if (typeof window !== 'undefined') {\n let head = document.head;\n stylesheets.forEach((stylesheet)=>{\n let link = document.createElement('link');\n link.type = 'text/css';\n link.rel = 'stylesheet';\n link.href = stylesheet;\n head.appendChild(link);\n });\n }\n};\nconst loadScript = (props)=>{\n const { src, id, onLoad = ()=>{}, onReady = null, dangerouslySetInnerHTML, children = '', strategy = 'afterInteractive', onError, stylesheets } = props;\n const cacheKey = id || src;\n // Script has already loaded\n if (cacheKey && LoadCache.has(cacheKey)) {\n return;\n }\n // Contents of this script are already loading/loaded\n if (ScriptCache.has(src)) {\n LoadCache.add(cacheKey);\n // It is possible that multiple `next/script` components all have same \"src\", but has different \"onLoad\"\n // This is to make sure the same remote script will only load once, but \"onLoad\" are executed in order\n ScriptCache.get(src).then(onLoad, onError);\n return;\n }\n /** Execute after the script first loaded */ const afterLoad = ()=>{\n // Run onReady for the first time after load event\n if (onReady) {\n onReady();\n }\n // add cacheKey to LoadCache when load successfully\n LoadCache.add(cacheKey);\n };\n const el = document.createElement('script');\n const loadPromise = new Promise((resolve, reject)=>{\n el.addEventListener('load', function(e) {\n resolve();\n if (onLoad) {\n onLoad.call(this, e);\n }\n afterLoad();\n });\n el.addEventListener('error', function(e) {\n reject(e);\n });\n }).catch(function(e) {\n if (onError) {\n onError(e);\n }\n });\n if (dangerouslySetInnerHTML) {\n // Casting since lib.dom.d.ts doesn't have TrustedHTML yet.\n el.innerHTML = dangerouslySetInnerHTML.__html || '';\n afterLoad();\n } else if (children) {\n el.textContent = typeof children === 'string' ? children : Array.isArray(children) ? children.join('') : '';\n afterLoad();\n } else if (src) {\n el.src = src;\n // do not add cacheKey into LoadCache for remote script here\n // cacheKey will be added to LoadCache when it is actually loaded (see loadPromise above)\n ScriptCache.set(src, loadPromise);\n }\n (0, _setattributesfromprops.setAttributesFromProps)(el, props);\n if (strategy === 'worker') {\n el.setAttribute('type', 'text/partytown');\n }\n el.setAttribute('data-nscript', strategy);\n // Load styles associated with this script\n if (stylesheets) {\n insertStylesheets(stylesheets);\n }\n document.body.appendChild(el);\n};\nfunction handleClientScriptLoad(props) {\n const { strategy = 'afterInteractive' } = props;\n if (strategy === 'lazyOnload') {\n window.addEventListener('load', ()=>{\n (0, _requestidlecallback.requestIdleCallback)(()=>loadScript(props));\n });\n } else {\n loadScript(props);\n }\n}\nfunction loadLazyScript(props) {\n if (document.readyState === 'complete') {\n (0, _requestidlecallback.requestIdleCallback)(()=>loadScript(props));\n } else {\n window.addEventListener('load', ()=>{\n (0, _requestidlecallback.requestIdleCallback)(()=>loadScript(props));\n });\n }\n}\nfunction addBeforeInteractiveToCache() {\n const scripts = [\n ...document.querySelectorAll('[data-nscript=\"beforeInteractive\"]'),\n ...document.querySelectorAll('[data-nscript=\"beforePageRender\"]')\n ];\n scripts.forEach((script)=>{\n const cacheKey = script.id || script.getAttribute('src');\n LoadCache.add(cacheKey);\n });\n}\nfunction initScriptLoader(scriptLoaderItems) {\n scriptLoaderItems.forEach(handleClientScriptLoad);\n addBeforeInteractiveToCache();\n}\n/**\n * Load a third-party scripts in an optimized way.\n *\n * Read more: [Next.js Docs: `next/script`](https://nextjs.org/docs/app/api-reference/components/script)\n */ function Script(props) {\n const { id, src = '', onLoad = ()=>{}, onReady = null, strategy = 'afterInteractive', onError, stylesheets, ...restProps } = props;\n // Context is available only during SSR\n let { updateScripts, scripts, getIsSsr, appDir, nonce } = (0, _react.useContext)(_headmanagercontextsharedruntime.HeadManagerContext);\n // if a nonce is explicitly passed to the script tag, favor that over the automatic handling\n nonce = restProps.nonce || nonce;\n /**\n * - First mount:\n * 1. The useEffect for onReady executes\n * 2. hasOnReadyEffectCalled.current is false, but the script hasn't loaded yet (not in LoadCache)\n * onReady is skipped, set hasOnReadyEffectCalled.current to true\n * 3. The useEffect for loadScript executes\n * 4. hasLoadScriptEffectCalled.current is false, loadScript executes\n * Once the script is loaded, the onLoad and onReady will be called by then\n * [If strict mode is enabled / is wrapped in <OffScreen /> component]\n * 5. The useEffect for onReady executes again\n * 6. hasOnReadyEffectCalled.current is true, so entire effect is skipped\n * 7. The useEffect for loadScript executes again\n * 8. hasLoadScriptEffectCalled.current is true, so entire effect is skipped\n *\n * - Second mount:\n * 1. The useEffect for onReady executes\n * 2. hasOnReadyEffectCalled.current is false, but the script has already loaded (found in LoadCache)\n * onReady is called, set hasOnReadyEffectCalled.current to true\n * 3. The useEffect for loadScript executes\n * 4. The script is already loaded, loadScript bails out\n * [If strict mode is enabled / is wrapped in <OffScreen /> component]\n * 5. The useEffect for onReady executes again\n * 6. hasOnReadyEffectCalled.current is true, so entire effect is skipped\n * 7. The useEffect for loadScript executes again\n * 8. hasLoadScriptEffectCalled.current is true, so entire effect is skipped\n */ const hasOnReadyEffectCalled = (0, _react.useRef)(false);\n (0, _react.useEffect)(()=>{\n const cacheKey = id || src;\n if (!hasOnReadyEffectCalled.current) {\n // Run onReady if script has loaded before but component is re-mounted\n if (onReady && cacheKey && LoadCache.has(cacheKey)) {\n onReady();\n }\n hasOnReadyEffectCalled.current = true;\n }\n }, [\n onReady,\n id,\n src\n ]);\n const hasLoadScriptEffectCalled = (0, _react.useRef)(false);\n (0, _react.useEffect)(()=>{\n if (!hasLoadScriptEffectCalled.current) {\n if (strategy === 'afterInteractive') {\n loadScript(props);\n } else if (strategy === 'lazyOnload') {\n loadLazyScript(props);\n }\n hasLoadScriptEffectCalled.current = true;\n }\n }, [\n props,\n strategy\n ]);\n if (strategy === 'beforeInteractive' || strategy === 'worker') {\n if (updateScripts) {\n scripts[strategy] = (scripts[strategy] || []).concat([\n {\n id,\n src,\n onLoad,\n onReady,\n onError,\n ...restProps,\n nonce\n }\n ]);\n updateScripts(scripts);\n } else if (getIsSsr && getIsSsr()) {\n // Script has already loaded during SSR\n LoadCache.add(id || src);\n } else if (getIsSsr && !getIsSsr()) {\n loadScript({\n ...props,\n nonce\n });\n }\n }\n // For the app directory, we need React Float to preload these scripts.\n if (appDir) {\n // Injecting stylesheets here handles beforeInteractive and worker scripts correctly\n // For other strategies injecting here ensures correct stylesheet order\n // ReactDOM.preinit handles loading the styles in the correct order,\n // also ensures the stylesheet is loaded only once and in a consistent manner\n //\n // Case 1: Styles for beforeInteractive/worker with appDir - handled here\n // Case 2: Styles for beforeInteractive/worker with pages dir - Not handled yet\n // Case 3: Styles for afterInteractive/lazyOnload with appDir - handled here\n // Case 4: Styles for afterInteractive/lazyOnload with pages dir - handled in insertStylesheets function\n if (stylesheets) {\n stylesheets.forEach((styleSrc)=>{\n _reactdom.default.preinit(styleSrc, {\n as: 'style'\n });\n });\n }\n // Before interactive scripts need to be loaded by Next.js' runtime instead\n // of native <script> tags, because they no longer have `defer`.\n if (strategy === 'beforeInteractive') {\n if (!src) {\n // For inlined scripts, we put the content in `children`.\n if (restProps.dangerouslySetInnerHTML) {\n // Casting since lib.dom.d.ts doesn't have TrustedHTML yet.\n restProps.children = restProps.dangerouslySetInnerHTML.__html;\n delete restProps.dangerouslySetInnerHTML;\n }\n return /*#__PURE__*/ (0, _jsxruntime.jsx)(\"script\", {\n nonce: nonce,\n dangerouslySetInnerHTML: {\n __html: `(self.__next_s=self.__next_s||[]).push(${(0, _htmlescape.htmlEscapeJsonString)(JSON.stringify([\n 0,\n {\n ...restProps,\n id\n }\n ]))})`\n }\n });\n } else {\n // @ts-ignore\n _reactdom.default.preload(src, restProps.integrity ? {\n as: 'script',\n integrity: restProps.integrity,\n nonce,\n crossOrigin: restProps.crossOrigin\n } : {\n as: 'script',\n nonce,\n crossOrigin: restProps.crossOrigin\n });\n return /*#__PURE__*/ (0, _jsxruntime.jsx)(\"script\", {\n nonce: nonce,\n dangerouslySetInnerHTML: {\n __html: `(self.__next_s=self.__next_s||[]).push(${(0, _htmlescape.htmlEscapeJsonString)(JSON.stringify([\n src,\n {\n ...restProps,\n id\n }\n ]))})`\n }\n });\n }\n } else if (strategy === 'afterInteractive') {\n if (src) {\n // @ts-ignore\n _reactdom.default.preload(src, restProps.integrity ? {\n as: 'script',\n integrity: restProps.integrity,\n nonce,\n crossOrigin: restProps.crossOrigin\n } : {\n as: 'script',\n nonce,\n crossOrigin: restProps.crossOrigin\n });\n }\n }\n }\n return null;\n}\nObject.defineProperty(Script, '__nextScript', {\n value: true\n});\nconst _default = Script;\n\nif ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {\n Object.defineProperty(exports.default, '__esModule', { value: true });\n Object.assign(exports.default, exports);\n module.exports = exports.default;\n}\n\n//# sourceMappingURL=script.js.map","module.exports = require('./dist/client/script')\n","export const constants = {};\nexport const colorSchemes = ['light', 'dark'];\nexport const MEDIA = '(prefers-color-scheme: dark)';\n//# sourceMappingURL=constants.js.map","import { MEDIA } from './constants.js';\nexport const helpers = {};\n// Helpers\nexport const getTheme = (key, fallback) => {\n if (typeof window === 'undefined')\n return undefined;\n let theme;\n try {\n theme = localStorage.getItem(key) || undefined;\n }\n catch (e) {\n // Unsupported\n }\n return theme || fallback;\n};\nexport const getSystemTheme = (e) => {\n if (!e) {\n e = window.matchMedia(MEDIA);\n }\n const isDark = e.matches;\n const systemTheme = isDark ? 'dark' : 'light';\n return systemTheme;\n};\n//# sourceMappingURL=helpers.js.map","import { createContext } from 'react';\nexport const ThemeSettingContext = createContext({\n toggle: () => { },\n set: (_) => { },\n themes: [],\n});\n//# sourceMappingURL=ThemeSettingContext.js.map","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { useIsomorphicLayoutEffect } from '@hanzogui/constants';\nimport { useEvent } from '@hanzogui/use-event';\nimport Script from 'next/script';\nimport * as React from 'react';\nimport { memo, useEffect, useMemo, useState } from 'react';\nimport { MEDIA, colorSchemes } from './constants.js';\nimport { getSystemTheme, getTheme } from './helpers.js';\nimport { ThemeSettingContext } from './ThemeSettingContext.js';\nexport const NextThemeProvider = memo(({ forcedTheme, disableTransitionOnChange = false, enableSystem = true, enableColorScheme = true, storageKey = 'theme', themes = colorSchemes, defaultTheme = enableSystem ? 'system' : 'light', attribute = 'class', skipNextHead, onChangeTheme, value = {\n dark: 't_dark',\n light: 't_light',\n}, children, }) => {\n const [theme, setThemeState] = useState(() => getTheme(storageKey, defaultTheme));\n const [resolvedTheme, setResolvedTheme] = useState(() => getTheme(storageKey));\n const attrs = !value ? themes : Object.values(value);\n const handleMediaQuery = useEvent((e) => {\n const _ = getSystemTheme(e);\n const update = () => setResolvedTheme(_);\n if (disableTransitionOnChange) {\n update();\n }\n else {\n React.startTransition(() => update());\n }\n if (theme === 'system' && !forcedTheme) {\n handleChangeTheme(_, false);\n }\n });\n const handleChangeTheme = useEvent((theme, updateStorage = true, updateDOM = true) => {\n let name = value?.[theme] || theme;\n if (updateStorage) {\n try {\n localStorage.setItem(storageKey, theme);\n }\n catch (e) {\n // Unsupported\n }\n }\n if (theme === 'system' && enableSystem) {\n const resolved = getSystemTheme();\n name = value?.[resolved] || resolved;\n }\n onChangeTheme?.(name.replace('t_', ''));\n if (updateDOM) {\n const d = document.documentElement;\n if (attribute === 'class') {\n d.classList.remove(...attrs);\n d.classList.add(name);\n }\n else {\n d.setAttribute(attribute, name);\n }\n }\n });\n useIsomorphicLayoutEffect(() => {\n // Always listen to System preference\n const media = window.matchMedia(MEDIA);\n // Intentionally use deprecated listener methods to support iOS & old browsers\n media.addListener(handleMediaQuery);\n handleMediaQuery(media);\n return () => {\n media.removeListener(handleMediaQuery);\n };\n }, []);\n const set = useEvent((newTheme) => {\n if (forcedTheme) {\n // when forcedTheme is active, block all updates to avoid desync\n return;\n }\n handleChangeTheme(newTheme);\n setThemeState(newTheme);\n });\n // localStorage event handling\n useEffect(() => {\n const handleStorage = (e) => {\n if (e.key !== storageKey) {\n return;\n }\n // If default theme set, use it if localstorage === null (happens on local storage manual deletion)\n const theme = e.newValue || defaultTheme;\n set(theme);\n };\n window.addEventListener('storage', handleStorage);\n return () => {\n window.removeEventListener('storage', handleStorage);\n };\n }, [defaultTheme, set, storageKey]);\n // color-scheme handling\n useIsomorphicLayoutEffect(() => {\n if (!enableColorScheme)\n return;\n const colorScheme = \n // If theme is forced to light or dark, use that\n forcedTheme && colorSchemes.includes(forcedTheme)\n ? forcedTheme\n : // If regular theme is light or dark\n theme && colorSchemes.includes(theme)\n ? theme\n : // If theme is system, use the resolved version\n theme === 'system'\n ? resolvedTheme || null\n : null;\n // color-scheme tells browser how to render built-in elements like forms, scrollbars, etc.\n // if color-scheme is null, this will remove the property\n const userPrefers = typeof window !== 'undefined' &&\n window.matchMedia &&\n window.matchMedia('(prefers-color-scheme: dark)').matches\n ? 'dark'\n : 'light';\n const wePrefer = colorScheme || 'light';\n // avoid running this because it causes full page reflow\n if (userPrefers !== wePrefer) {\n document.documentElement.style.setProperty('color-scheme', colorScheme);\n }\n }, [enableColorScheme, theme, resolvedTheme, forcedTheme]);\n const toggle = useEvent(() => {\n const order = resolvedTheme === 'dark'\n ? ['system', 'light', 'dark']\n : ['system', 'dark', 'light'];\n const next = order[(order.indexOf(theme) + 1) % order.length];\n set(next);\n });\n const systemTheme = (enableSystem ? resolvedTheme : undefined);\n const contextValue = useMemo(() => {\n const value = {\n theme,\n current: theme,\n set,\n toggle,\n forcedTheme,\n resolvedTheme: theme === 'system' ? resolvedTheme : theme,\n themes: enableSystem ? [...themes, 'system'] : themes,\n systemTheme,\n };\n return value;\n }, [\n theme,\n set,\n toggle,\n forcedTheme,\n resolvedTheme,\n enableSystem,\n themes,\n systemTheme,\n ]);\n return (_jsxs(ThemeSettingContext.Provider, { value: contextValue, children: [_jsx(ThemeScript, { forcedTheme,\n storageKey,\n systemTheme: resolvedTheme,\n attribute,\n value,\n enableSystem,\n defaultTheme,\n attrs,\n skipNextHead }), children] }));\n});\nconst ThemeScript = memo(({ forcedTheme, storageKey, attribute, enableSystem, defaultTheme, value, attrs, skipNextHead, }) => {\n // Code-golfing the amount of characters in the script\n const optimization = (() => {\n if (attribute === 'class') {\n const removeClasses = attrs.map((t) => `d.remove('${t}')`).join(';');\n return `var d=document.documentElement.classList;${removeClasses};`;\n }\n return `var d=document.documentElement;`;\n })();\n const updateDOM = (name, literal) => {\n name = value?.[name] || name;\n const val = literal ? name : `'${name}'`;\n if (attribute === 'class') {\n return `d.add(${val})`;\n }\n return `d.setAttribute('${attribute}', ${val})`;\n };\n const defaultSystem = defaultTheme === 'system';\n const scriptContent = forcedTheme\n ? `!function(){${optimization}${updateDOM(forcedTheme)}}()`\n : enableSystem\n ? `!function(){try {${optimization}var e=localStorage.getItem('${storageKey}');if(\"system\"===e||(!e&&${defaultSystem})){var t=\"${MEDIA}\",m=window.matchMedia(t);m.media!==t||m.matches?${updateDOM('dark')}:${updateDOM('light')}}else if(e){${value ? `var x=${JSON.stringify(value)};` : ''}${updateDOM(value ? 'x[e]' : 'e', true)}}${!defaultSystem ? `else{${updateDOM(defaultTheme)}}` : ''}}catch(e){}}()`\n : `!function(){try{${optimization}var e=localStorage.getItem(\"${storageKey}\");if(e){${value ? `var x=${JSON.stringify(value)};` : ''}${updateDOM(value ? 'x[e]' : 'e', true)}}else{${updateDOM(defaultTheme)};}}catch(t){}}();`;\n // skipNextHead returns raw script for useServerInsertedHTML usage\n if (skipNextHead) {\n return (_jsx(\"script\", { dangerouslySetInnerHTML: { __html: scriptContent } }, \"next-themes-script\"));\n }\n return (_jsx(Script, { id: \"next-themes-script\", strategy: \"beforeInteractive\", dangerouslySetInnerHTML: { __html: scriptContent } }));\n}, (prevProps, nextProps) => {\n // Only re-render when forcedTheme changes\n // the rest of the props should be completely stable\n if (prevProps.forcedTheme !== nextProps.forcedTheme)\n return false;\n return true;\n});\n//# sourceMappingURL=NextThemeProvider.js.map","import { useContext } from 'react';\nimport { ThemeSettingContext } from './ThemeSettingContext.js';\n/**\n * @deprecated renamed to `useThemeSetting` to avoid confusion with core `useTheme` hook\n */\nexport const useTheme = () => useContext(ThemeSettingContext);\nexport const useThemeSetting = () => useContext(ThemeSettingContext);\n//# sourceMappingURL=useTheme.js.map","'use client';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n/**\n * ThemeToggleNext — the @hanzogui/next-theme binding (console / Next). This is the ONLY\n * module that imports @hanzogui/next-theme, so it stays an OPTIONAL dependency: the base\n * ThemeToggle lazy-loads it (default export) and non-Next hosts never pull it in unless\n * they import this component directly. UI is delegated to the framework-agnostic button\n * in controlled mode, so every toggle looks identical.\n */\nimport { useThemeSetting } from '@hanzogui/next-theme';\nimport { AgnosticThemeToggle } from './ThemeToggle.js';\nfunction ThemeToggleNext({ size, label }) {\n const { current, resolvedTheme, set } = useThemeSetting();\n const isDark = (resolvedTheme ?? current ?? 'dark') !== 'light';\n return (_jsx(AgnosticThemeToggle, { theme: isDark ? 'dark' : 'light', onToggle: (next) => set(next), size: size, label: label }));\n}\nexport default ThemeTogg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