@oj-module/cli 0.2.64 → 0.2.67

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 (369) hide show
  1. package/bin/.oj-version +1 -0
  2. package/bin/oj +4 -0
  3. package/devkit/README.md +18 -4
  4. package/devkit/SKILL.md +35 -3
  5. package/devkit/framework-dev.md +22 -11
  6. package/devkit/manual.md +161 -68
  7. package/devkit/menu-rules.md +4 -1
  8. package/devkit/publish-walkthrough.md +110 -37
  9. package/devkit/wecom-internal-app.md +7 -2
  10. package/devkit/wecom-multi-corp-links.md +163 -0
  11. package/package.json +3 -2
  12. package/shell-dist/assets/ahooks.2l850ymmh0.js +18 -0
  13. package/shell-dist/assets/antd-es-locale-zh_CN.1gjjsvxbf0.js +1 -0
  14. package/shell-dist/assets/antd-img-crop.196rkty480.js +99 -0
  15. package/shell-dist/assets/antd-locale-en_US.561tozx860.js +1 -0
  16. package/shell-dist/assets/antd-locale-zh_CN.1cmpmgzh70.js +1 -0
  17. package/shell-dist/assets/antd.uw1coq15l0.js +348 -0
  18. package/shell-dist/assets/clsx.jotilrt2e0.js +1 -0
  19. package/shell-dist/assets/contract-errors.2o17vz9u50.js +1 -0
  20. package/shell-dist/assets/contract.3h327o3mj0.js +57 -0
  21. package/shell-dist/assets/cssinjs.atgmhan7m0.js +3 -0
  22. package/shell-dist/assets/dayjs-plugin-advancedFormat.3vsyd2eis0.js +1 -0
  23. package/shell-dist/assets/dayjs-plugin-customParseFormat.13xhghv1d0.js +1 -0
  24. package/shell-dist/assets/dayjs-plugin-isoWeek.1fn1tw82p0.js +1 -0
  25. package/shell-dist/assets/dayjs-plugin-localeData.2rwbjp9nk0.js +1 -0
  26. package/shell-dist/assets/dayjs-plugin-quarterOfYear.2oqo1lcx80.js +1 -0
  27. package/shell-dist/assets/dayjs-plugin-relativeTime.2pqs3et4y0.js +1 -0
  28. package/shell-dist/assets/dayjs-plugin-weekOfYear.gvn9iph080.js +1 -0
  29. package/shell-dist/assets/dayjs-plugin-weekYear.2u78l3ex10.js +1 -0
  30. package/shell-dist/assets/dayjs-plugin-weekday.2d56a4tml0.js +1 -0
  31. package/shell-dist/assets/dayjs.pa60l6wjo0.js +1 -0
  32. package/shell-dist/assets/dnd-kit-core.1xyreig6r0.js +5 -0
  33. package/shell-dist/assets/dnd-kit-sortable.s94qciuft0.js +1 -0
  34. package/shell-dist/assets/dnd-kit-utilities.1umw4xphb0.js +1 -0
  35. package/shell-dist/assets/i18next.33zqofapj0.js +1 -0
  36. package/shell-dist/assets/icons-es-components-Context.365qmflwg0.js +1 -0
  37. package/shell-dist/assets/icons.159wjwals0.js +57 -0
  38. package/shell-dist/assets/{index-xZhmujjM.js → index.6alqyx6ae0.js} +21 -1
  39. package/shell-dist/assets/jsx-dev-runtime.3uibuc82f0.js +14 -0
  40. package/shell-dist/assets/jsx-runtime.h40xu4o5b0.js +14 -0
  41. package/shell-dist/assets/keepalive-for-react.xenu5vam70.js +1 -0
  42. package/shell-dist/assets/kit.37kr8ui390.js +1 -0
  43. package/shell-dist/assets/ky.1cgch7gu60.js +6 -0
  44. package/shell-dist/assets/motion-react.pjsxytvjs0.js +12 -0
  45. package/shell-dist/assets/motion.21tciqutg0.js +4 -0
  46. package/shell-dist/assets/nprogress.2nz76n9ny0.js +7 -0
  47. package/shell-dist/assets/ojm-dayjs-locale-zh-cn.3vr3beiyp0.js +9 -0
  48. package/shell-dist/assets/pinyin-pro.3v0mnxczn0.js +1 -0
  49. package/shell-dist/assets/pro-components.2kyot1vcl0.js +83 -0
  50. package/shell-dist/assets/react-countup.2x8idnr8y0.js +10 -0
  51. package/shell-dist/assets/react-dom-client.ick0v05ob0.js +43 -0
  52. package/shell-dist/assets/react-dom.2so9uxg3f0.js +22 -0
  53. package/shell-dist/assets/react-error-boundary.2dncdfj3b0.js +1 -0
  54. package/shell-dist/assets/react-i18next.auhvjhqv00.js +1 -0
  55. package/shell-dist/assets/react-jss.1ei6dr9e00.js +29 -0
  56. package/shell-dist/assets/react-query.3rln45ow00.js +1 -0
  57. package/shell-dist/assets/react-router-dom.3c6zld8h40.js +44 -0
  58. package/shell-dist/assets/react-router.2h9rebcv50.js +56 -0
  59. package/shell-dist/assets/react.1ew63mwts0.js +14 -0
  60. package/shell-dist/assets/runtime.2dgstpjsu0.js +21702 -0
  61. package/shell-dist/assets/simplebar-react.2g739uvai0.js +1 -0
  62. package/shell-dist/assets/spin-delay.yjeyj6iwp0.js +9 -0
  63. package/shell-dist/assets/tailwind-merge.125ehiqjw0.js +1 -0
  64. package/shell-dist/assets/use-sync-external-store-shim.1nz1pi9bb0.js +22 -0
  65. package/shell-dist/assets/zustand-middleware.1xaxjueme0.js +6 -0
  66. package/shell-dist/assets/zustand-react-shallow.pybayv1hx0.js +1 -0
  67. package/shell-dist/assets/zustand-react.9fsl9brxy0.js +1 -0
  68. package/shell-dist/assets/zustand-shallow.6cz0yyv9x0.js +1 -0
  69. package/shell-dist/assets/zustand-vanilla-shallow.3424monv50.js +1 -0
  70. package/shell-dist/assets/zustand-vanilla.1mo3ka3g30.js +1 -0
  71. package/shell-dist/assets/zustand.3gjgzlnqo0.js +1 -0
  72. package/shell-dist/index.html +67 -118
  73. package/shell-dist/versions.json +3 -3
  74. package/src/__tests__/publish-keygen.test.ts +157 -0
  75. package/src/__tests__/templates-migration-schema-parity.test.ts +540 -0
  76. package/src/__tests__/templates-schema-columns.test.ts +15 -2
  77. package/src/__tests__/templates-tenant-scope.test.ts +6 -2
  78. package/src/bundle.ts +8 -3
  79. package/src/cli.ts +17 -5
  80. package/src/dev.ts +15 -10
  81. package/src/esm-exports.ts +152 -70
  82. package/src/install.ts +11 -4
  83. package/src/keygen.ts +54 -0
  84. package/src/lifecycle/__tests__/bundle.test.ts +21 -3
  85. package/src/lifecycle/__tests__/fixtures/fixture-valid/api/src/demo-solution/manifest.yaml +1 -1
  86. package/src/lifecycle/__tests__/fixtures/fixture-valid/api/src/demo-solution/migrations/0001__init.sql +2 -2
  87. package/src/lifecycle/__tests__/fixtures/fixture-valid/api/src/demo-solution/schema.yaml +5 -2
  88. package/src/lifecycle/__tests__/fixtures/fixture-valid/manifest.yaml +1 -1
  89. package/src/lifecycle/__tests__/manifest-contract.test.ts +75 -3
  90. package/src/lifecycle/__tests__/smoke.test.ts +2 -2
  91. package/src/manifest-contract.ts +91 -8
  92. package/src/market/bootstrap.ts +26 -2
  93. package/src/market/command.ts +1 -0
  94. package/src/market/publish.ts +5 -1
  95. package/src/market/walkthrough.ts +24 -8
  96. package/src/shared-deps.ts +69 -19
  97. package/src/site-base.ts +4 -0
  98. package/src/site.ts +2 -0
  99. package/src/usage.ts +8 -4
  100. package/src/vendor.ts +5 -1
  101. package/templates/config.yaml +4 -2
  102. package/templates/init.include.yaml +8 -3
  103. package/templates/openapi.json +460 -1
  104. package/templates/src/app/api/_platform/_lifecycle/compensate.ts +136 -0
  105. package/templates/src/app/api/_platform/_lifecycle/installer.ts +71 -22
  106. package/templates/src/app/api/_platform/_lifecycle/lock.ts +23 -0
  107. package/templates/src/app/api/_platform/_lifecycle/steps/deploy-web.ts +28 -0
  108. package/templates/src/app/api/_platform/_lifecycle/steps/preflight.ts +46 -0
  109. package/templates/src/app/api/_platform/_lifecycle/steps/reload.ts +100 -36
  110. package/templates/src/app/api/_platform/_lifecycle/steps/smoke.ts +7 -15
  111. package/templates/src/app/api/_platform/_lifecycle/text-edit.ts +71 -19
  112. package/templates/src/app/api/_platform/_lifecycle/types.ts +26 -2
  113. package/templates/src/app/api/_platform/_lifecycle/uninstall.ts +93 -14
  114. package/templates/src/app/api/_platform/_shared/service/domain/settings.ts +8 -4
  115. package/templates/src/app/api/_platform/manifest.yaml +1 -0
  116. package/templates/src/app/api/_platform/market/api.ts +235 -10
  117. package/templates/src/app/api/_platform/migrations/0001__baseline.mysql.sql +178 -0
  118. package/templates/src/app/api/_platform/migrations/0001__baseline.pg.sql +173 -0
  119. package/templates/src/app/api/_platform/migrations/0001__baseline.sql +188 -0
  120. package/templates/src/app/api/_platform/migrations/0002__market_release.mysql.sql +17 -0
  121. package/templates/src/app/api/_platform/migrations/0002__market_release.pg.sql +16 -0
  122. package/templates/src/app/api/_platform/migrations/0002__market_release.sql +33 -0
  123. package/templates/src/app/api/_platform/schema.yaml +18 -0
  124. package/templates/src/app/api/_platform/seed.mysql.sql +10 -0
  125. package/templates/src/app/api/_platform/seed.pg.sql +10 -0
  126. package/templates/src/app/api/auth/_shared/wecom/client.ts +24 -4
  127. package/templates/src/app/api/home/migrations/0001__create_home_tables.mysql.sql +14 -0
  128. package/templates/src/app/api/home/migrations/0001__create_home_tables.pg.sql +14 -0
  129. package/templates/src/app/api/home/migrations/0002__tenant.pg.sql +4 -0
  130. package/templates/src/app/api/home/seed.mysql.sql +71 -0
  131. package/templates/src/app/api/home/seed.pg.sql +71 -0
  132. package/templates/src/app/api/notification/_shared/notify.ts +6 -6
  133. package/templates/src/app/api/notification/migrations/0001__create_notifications.mysql.sql +11 -0
  134. package/templates/src/app/api/notification/migrations/0001__create_notifications.pg.sql +11 -0
  135. package/templates/src/app/api/notification/migrations/0002__notifications_user.mysql.sql +8 -0
  136. package/templates/src/app/api/notification/migrations/0003__notifications_broadcast.mysql.sql +21 -0
  137. package/templates/src/app/api/notification/migrations/0003__notifications_broadcast.pg.sql +22 -0
  138. package/templates/src/app/api/notification/migrations/0004__notifications_broadcast_hidden.mysql.sql +10 -0
  139. package/templates/src/app/api/notification/migrations/0004__notifications_broadcast_hidden.pg.sql +11 -0
  140. package/templates/src/app/api/notification/migrations/0005__tenant.pg.sql +6 -0
  141. package/templates/src/app/api/notification/seed.mysql.sql +8 -0
  142. package/templates/src/app/api/notification/seed.pg.sql +11 -0
  143. package/templates/src/app/api/publish/_shared/identity.ts +69 -0
  144. package/templates/src/app/api/publish/api.ts +349 -0
  145. package/templates/src/app/api/publish/manifest.yaml +8 -0
  146. package/templates/src/app/api/publish/migrations/0001__publish_credential.mysql.sql +23 -0
  147. package/templates/src/app/api/publish/migrations/0001__publish_credential.pg.sql +23 -0
  148. package/templates/src/app/api/publish/migrations/0001__publish_credential.sql +39 -0
  149. package/templates/src/app/api/publish/schema.yaml +33 -0
  150. package/templates/src/app/api/system/login-methods/api.ts +2 -1
  151. package/templates/src/app/web/_platform/__client/api.schemas.ts +15 -0
  152. package/templates/src/app/web/_platform/__client/index.ts +25 -1
  153. package/templates/src/app/web/entry.ts +9 -5
  154. package/templates/src/app/web/home/pages/components/bar-chart.tsx +5 -3
  155. package/templates/src/app/web/home/pages/components/echarts-setup.ts +30 -0
  156. package/templates/src/app/web/home/pages/components/line-chart.tsx +5 -3
  157. package/templates/src/app/web/home/pages/components/pie-chart.tsx +6 -3
  158. package/templates/src/app/web/home/pages/index.tsx +3 -2
  159. package/templates/src/app/web/home/routes.ts +8 -2
  160. package/templates/src/app/web/login/locales/en-US.json +7 -1
  161. package/templates/src/app/web/login/locales/zh-CN.json +7 -1
  162. package/templates/src/app/web/login/pages/login.tsx +79 -86
  163. package/templates/src/app/web/login/routes.ts +54 -1
  164. package/templates/src/app/web/personal-center/locales/en-US.json +1 -0
  165. package/templates/src/app/web/personal-center/locales/zh-CN.json +1 -0
  166. package/templates/src/app/web/personal-center/pages/my-profile/index.tsx +5 -0
  167. package/templates/src/app/web/system/__client/api.schemas.ts +2 -1
  168. package/templates/src/app/web/system/locales/en-US.json +1 -8
  169. package/templates/src/app/web/system/locales/zh-CN.json +1 -8
  170. package/templates/src/app/web/system/pages/settings/index.tsx +17 -4
  171. package/templates/src/app/web/system/routes.ts +0 -6
  172. package/templates/src/oj-market/web/__tests__/CardGrid.test.tsx +33 -0
  173. package/templates/src/oj-market/web/__tests__/DetailDrawer.test.tsx +69 -0
  174. package/templates/src/oj-market/web/__tests__/marketClient.fake.ts +7 -1
  175. package/templates/src/oj-market/web/api/client.ts +3 -0
  176. package/templates/src/oj-market/web/api/defaultClient.ts +5 -0
  177. package/templates/src/oj-market/web/components/CardItem.tsx +44 -1
  178. package/templates/src/oj-market/web/components/DetailDrawer.tsx +17 -1
  179. package/templates/src/oj-market/web/entry.ts +31 -2
  180. package/templates/src/oj-market/web/locales/en-US.json +5 -1
  181. package/templates/src/oj-market/web/locales/zh-CN.json +5 -1
  182. package/templates/src/oj-market/web/publish/__client/api.schemas.ts +61 -0
  183. package/templates/src/oj-market/web/publish/__client/index.ts +164 -0
  184. package/templates/src/oj-market/web/publish/locales/en-US.json +80 -0
  185. package/templates/src/oj-market/web/publish/locales/zh-CN.json +80 -0
  186. package/templates/src/oj-market/web/publish/pages/history.tsx +112 -0
  187. package/templates/src/oj-market/web/publish/pages/index.tsx +196 -0
  188. package/templates/src/oj-market/web/publish/pages/model.ts +52 -0
  189. package/templates/src/oj-market/web/publish/pages/token-modal.tsx +82 -0
  190. package/templates/src/oj-market/web/publish/routes.ts +41 -0
  191. package/templates/src/oj-market/web/types.ts +30 -0
  192. package/templates/tests/lifecycle/compensate.spec.ts +207 -0
  193. package/templates/tests/lifecycle/deploy-smoke.spec.ts +38 -14
  194. package/templates/tests/lifecycle/installer.spec.ts +28 -9
  195. package/templates/tests/lifecycle/market-api.spec.ts +164 -12
  196. package/templates/tests/lifecycle/preflight.spec.ts +68 -0
  197. package/templates/tests/lifecycle/role-title-translate.spec.ts +2 -32
  198. package/templates/tests/lifecycle/text-edit.spec.ts +45 -27
  199. package/templates/tests/lifecycle/uninstall.spec.ts +36 -0
  200. package/templates/tests/publish-credential.spec.ts +354 -0
  201. package/templates/tests/publish-identity.spec.ts +44 -0
  202. package/templates/tests/wecom-client-timeout.spec.ts +33 -3
  203. package/templates/tests/wecom-landing.spec.ts +63 -1
  204. package/templates/tsconfig.paths.json +1 -0
  205. package/templates/web.config.ts +6 -4
  206. package/vendor/host-versions.json +3 -3
  207. package/shell-dist/assets/ahooks.js +0 -6909
  208. package/shell-dist/assets/antd-es-locale-zh_CN.js +0 -257
  209. package/shell-dist/assets/antd-img-crop.js +0 -1495
  210. package/shell-dist/assets/antd-locale-en_US.js +0 -374
  211. package/shell-dist/assets/antd-locale-zh_CN.js +0 -379
  212. package/shell-dist/assets/antd.js +0 -106874
  213. package/shell-dist/assets/clsx.js +0 -33
  214. package/shell-dist/assets/contract-errors.js +0 -30
  215. package/shell-dist/assets/contract.js +0 -18900
  216. package/shell-dist/assets/cssinjs.js +0 -2595
  217. package/shell-dist/assets/dayjs-plugin-advancedFormat.js +0 -98
  218. package/shell-dist/assets/dayjs-plugin-customParseFormat.js +0 -173
  219. package/shell-dist/assets/dayjs-plugin-isoWeek.js +0 -77
  220. package/shell-dist/assets/dayjs-plugin-localeData.js +0 -126
  221. package/shell-dist/assets/dayjs-plugin-quarterOfYear.js +0 -77
  222. package/shell-dist/assets/dayjs-plugin-relativeTime.js +0 -92
  223. package/shell-dist/assets/dayjs-plugin-weekOfYear.js +0 -73
  224. package/shell-dist/assets/dayjs-plugin-weekYear.js +0 -63
  225. package/shell-dist/assets/dayjs-plugin-weekday.js +0 -63
  226. package/shell-dist/assets/dayjs.js +0 -326
  227. package/shell-dist/assets/dnd-kit-core.js +0 -3601
  228. package/shell-dist/assets/dnd-kit-sortable.js +0 -717
  229. package/shell-dist/assets/dnd-kit-utilities.js +0 -340
  230. package/shell-dist/assets/i18next.js +0 -2321
  231. package/shell-dist/assets/icons-es-components-Context.js +0 -20
  232. package/shell-dist/assets/icons.js +0 -34961
  233. package/shell-dist/assets/jsx-dev-runtime.js +0 -75
  234. package/shell-dist/assets/jsx-runtime.js +0 -97
  235. package/shell-dist/assets/keepalive-for-react.js +0 -283
  236. package/shell-dist/assets/kit.js +0 -151
  237. package/shell-dist/assets/ky.js +0 -1427
  238. package/shell-dist/assets/motion-react.js +0 -13589
  239. package/shell-dist/assets/motion.js +0 -9959
  240. package/shell-dist/assets/nprogress.js +0 -314
  241. package/shell-dist/assets/ojm--ant-design-icons-es-icons-BarsOutlined.js +0 -7
  242. package/shell-dist/assets/ojm--ant-design-icons-es-icons-CalendarOutlined.js +0 -7
  243. package/shell-dist/assets/ojm--ant-design-icons-es-icons-CaretDownFilled.js +0 -7
  244. package/shell-dist/assets/ojm--ant-design-icons-es-icons-CaretDownOutlined.js +0 -7
  245. package/shell-dist/assets/ojm--ant-design-icons-es-icons-CaretUpOutlined.js +0 -7
  246. package/shell-dist/assets/ojm--ant-design-icons-es-icons-CheckCircleFilled.js +0 -7
  247. package/shell-dist/assets/ojm--ant-design-icons-es-icons-CheckOutlined.js +0 -7
  248. package/shell-dist/assets/ojm--ant-design-icons-es-icons-ClockCircleOutlined.js +0 -7
  249. package/shell-dist/assets/ojm--ant-design-icons-es-icons-CloseCircleFilled.js +0 -7
  250. package/shell-dist/assets/ojm--ant-design-icons-es-icons-CloseOutlined.js +0 -7
  251. package/shell-dist/assets/ojm--ant-design-icons-es-icons-CopyOutlined.js +0 -7
  252. package/shell-dist/assets/ojm--ant-design-icons-es-icons-DeleteOutlined.js +0 -7
  253. package/shell-dist/assets/ojm--ant-design-icons-es-icons-DoubleLeftOutlined.js +0 -7
  254. package/shell-dist/assets/ojm--ant-design-icons-es-icons-DoubleRightOutlined.js +0 -7
  255. package/shell-dist/assets/ojm--ant-design-icons-es-icons-DownOutlined.js +0 -7
  256. package/shell-dist/assets/ojm--ant-design-icons-es-icons-DownloadOutlined.js +0 -7
  257. package/shell-dist/assets/ojm--ant-design-icons-es-icons-EditOutlined.js +0 -7
  258. package/shell-dist/assets/ojm--ant-design-icons-es-icons-EllipsisOutlined.js +0 -7
  259. package/shell-dist/assets/ojm--ant-design-icons-es-icons-EnterOutlined.js +0 -7
  260. package/shell-dist/assets/ojm--ant-design-icons-es-icons-ExclamationCircleFilled.js +0 -7
  261. package/shell-dist/assets/ojm--ant-design-icons-es-icons-EyeInvisibleOutlined.js +0 -7
  262. package/shell-dist/assets/ojm--ant-design-icons-es-icons-EyeOutlined.js +0 -7
  263. package/shell-dist/assets/ojm--ant-design-icons-es-icons-FileOutlined.js +0 -7
  264. package/shell-dist/assets/ojm--ant-design-icons-es-icons-FileTextOutlined.js +0 -7
  265. package/shell-dist/assets/ojm--ant-design-icons-es-icons-FilterFilled.js +0 -7
  266. package/shell-dist/assets/ojm--ant-design-icons-es-icons-FolderOpenOutlined.js +0 -7
  267. package/shell-dist/assets/ojm--ant-design-icons-es-icons-FolderOutlined.js +0 -7
  268. package/shell-dist/assets/ojm--ant-design-icons-es-icons-HolderOutlined.js +0 -7
  269. package/shell-dist/assets/ojm--ant-design-icons-es-icons-InfoCircleFilled.js +0 -7
  270. package/shell-dist/assets/ojm--ant-design-icons-es-icons-LeftOutlined.js +0 -7
  271. package/shell-dist/assets/ojm--ant-design-icons-es-icons-LoadingOutlined.js +0 -7
  272. package/shell-dist/assets/ojm--ant-design-icons-es-icons-MinusOutlined.js +0 -7
  273. package/shell-dist/assets/ojm--ant-design-icons-es-icons-MinusSquareOutlined.js +0 -7
  274. package/shell-dist/assets/ojm--ant-design-icons-es-icons-PaperClipOutlined.js +0 -7
  275. package/shell-dist/assets/ojm--ant-design-icons-es-icons-PictureOutlined.js +0 -7
  276. package/shell-dist/assets/ojm--ant-design-icons-es-icons-PlusOutlined.js +0 -7
  277. package/shell-dist/assets/ojm--ant-design-icons-es-icons-PlusSquareOutlined.js +0 -7
  278. package/shell-dist/assets/ojm--ant-design-icons-es-icons-QuestionCircleOutlined.js +0 -7
  279. package/shell-dist/assets/ojm--ant-design-icons-es-icons-ReloadOutlined.js +0 -7
  280. package/shell-dist/assets/ojm--ant-design-icons-es-icons-RightOutlined.js +0 -7
  281. package/shell-dist/assets/ojm--ant-design-icons-es-icons-RotateLeftOutlined.js +0 -7
  282. package/shell-dist/assets/ojm--ant-design-icons-es-icons-RotateRightOutlined.js +0 -7
  283. package/shell-dist/assets/ojm--ant-design-icons-es-icons-SearchOutlined.js +0 -7
  284. package/shell-dist/assets/ojm--ant-design-icons-es-icons-StarFilled.js +0 -7
  285. package/shell-dist/assets/ojm--ant-design-icons-es-icons-SwapOutlined.js +0 -7
  286. package/shell-dist/assets/ojm--ant-design-icons-es-icons-SwapRightOutlined.js +0 -7
  287. package/shell-dist/assets/ojm--ant-design-icons-es-icons-UpOutlined.js +0 -7
  288. package/shell-dist/assets/ojm--ant-design-icons-es-icons-VerticalAlignTopOutlined.js +0 -7
  289. package/shell-dist/assets/ojm--ant-design-icons-es-icons-WarningFilled.js +0 -7
  290. package/shell-dist/assets/ojm--ant-design-icons-es-icons-ZoomInOutlined.js +0 -7
  291. package/shell-dist/assets/ojm--ant-design-icons-es-icons-ZoomOutOutlined.js +0 -7
  292. package/shell-dist/assets/ojm-dayjs-locale-zh-cn.js +0 -81
  293. package/shell-dist/assets/pinyin-pro.js +0 -25175
  294. package/shell-dist/assets/pro-components.js +0 -44627
  295. package/shell-dist/assets/react-countup.js +0 -525
  296. package/shell-dist/assets/react-dom-client.js +0 -12134
  297. package/shell-dist/assets/react-dom.js +0 -266
  298. package/shell-dist/assets/react-error-boundary.js +0 -141
  299. package/shell-dist/assets/react-i18next.js +0 -1773
  300. package/shell-dist/assets/react-jss.js +0 -4089
  301. package/shell-dist/assets/react-query.js +0 -3072
  302. package/shell-dist/assets/react-router-dom.js +0 -9927
  303. package/shell-dist/assets/react-router.js +0 -14584
  304. package/shell-dist/assets/react.js +0 -590
  305. package/shell-dist/assets/runtime.js +0 -28311
  306. package/shell-dist/assets/simplebar-react.js +0 -1119
  307. package/shell-dist/assets/spin-delay.js +0 -111
  308. package/shell-dist/assets/tailwind-merge.js +0 -3364
  309. package/shell-dist/assets/use-sync-external-store-shim.js +0 -130
  310. package/shell-dist/assets/zustand-middleware.js +0 -513
  311. package/shell-dist/assets/zustand-react-shallow.js +0 -27
  312. package/shell-dist/assets/zustand-react.js +0 -39
  313. package/shell-dist/assets/zustand-shallow.js +0 -22
  314. package/shell-dist/assets/zustand-vanilla-shallow.js +0 -71
  315. package/shell-dist/assets/zustand-vanilla.js +0 -40
  316. package/shell-dist/assets/zustand.js +0 -32
  317. package/templates/seed.mysql.sql +0 -6
  318. package/templates/seed.pg.sql +0 -6
  319. package/templates/src/app/api/_platform/migrations/0001__create_users.mysql.sql +0 -9
  320. package/templates/src/app/api/_platform/migrations/0001__create_users.pg.sql +0 -9
  321. package/templates/src/app/api/_platform/migrations/0001__create_users.sql +0 -7
  322. package/templates/src/app/api/_platform/migrations/0002__add_users_avatar_base64.mysql.sql +0 -3
  323. package/templates/src/app/api/_platform/migrations/0002__add_users_avatar_base64.sql +0 -2
  324. package/templates/src/app/api/_platform/migrations/0003__users_source_display_name.mysql.sql +0 -5
  325. package/templates/src/app/api/_platform/migrations/0003__users_source_display_name.sql +0 -5
  326. package/templates/src/app/api/_platform/migrations/0004__sys_rbac.mysql.sql +0 -70
  327. package/templates/src/app/api/_platform/migrations/0004__sys_rbac.pg.sql +0 -67
  328. package/templates/src/app/api/_platform/migrations/0004__sys_rbac.sql +0 -67
  329. package/templates/src/app/api/_platform/migrations/0005__users_must_change.mysql.sql +0 -3
  330. package/templates/src/app/api/_platform/migrations/0005__users_must_change.sql +0 -2
  331. package/templates/src/app/api/_platform/migrations/0006__users_is_forbidden.mysql.sql +0 -3
  332. package/templates/src/app/api/_platform/migrations/0006__users_is_forbidden.sql +0 -3
  333. package/templates/src/app/api/_platform/migrations/0007__users_email.sql +0 -3
  334. package/templates/src/app/api/_platform/migrations/0008__sys_refresh_token.mysql.sql +0 -10
  335. package/templates/src/app/api/_platform/migrations/0008__sys_refresh_token.pg.sql +0 -10
  336. package/templates/src/app/api/_platform/migrations/0008__sys_refresh_token.sql +0 -11
  337. package/templates/src/app/api/_platform/migrations/0009__sys_throttle.mysql.sql +0 -12
  338. package/templates/src/app/api/_platform/migrations/0009__sys_throttle.pg.sql +0 -12
  339. package/templates/src/app/api/_platform/migrations/0009__sys_throttle.sql +0 -13
  340. package/templates/src/app/api/_platform/migrations/0010__sys_solution_route.mysql.sql +0 -17
  341. package/templates/src/app/api/_platform/migrations/0010__sys_solution_route.pg.sql +0 -16
  342. package/templates/src/app/api/_platform/migrations/0010__sys_solution_route.sql +0 -18
  343. package/templates/src/app/api/_platform/migrations/0011__sys_setting_group_label.mysql.sql +0 -2
  344. package/templates/src/app/api/_platform/migrations/0011__sys_setting_group_label.sql +0 -4
  345. package/templates/src/app/api/_platform/migrations/0012__market_history.mysql.sql +0 -13
  346. package/templates/src/app/api/_platform/migrations/0012__market_history.pg.sql +0 -12
  347. package/templates/src/app/api/_platform/migrations/0012__market_history.sql +0 -14
  348. package/templates/src/app/api/_platform/migrations/0013__users_profile.sql +0 -4
  349. package/templates/src/app/api/_platform/migrations/0014__reg_source_seq.mysql.sql +0 -9
  350. package/templates/src/app/api/_platform/migrations/0014__reg_source_seq.pg.sql +0 -7
  351. package/templates/src/app/api/_platform/migrations/0014__reg_source_seq.sql +0 -8
  352. package/templates/src/app/api/_platform/migrations/0015__tenant.mysql.sql +0 -12
  353. package/templates/src/app/api/_platform/migrations/0015__tenant.pg.sql +0 -11
  354. package/templates/src/app/api/_platform/migrations/0015__tenant.sql +0 -44
  355. package/templates/src/app/api/_platform/migrations/0016__org.mysql.sql +0 -41
  356. package/templates/src/app/api/_platform/migrations/0016__org.pg.sql +0 -40
  357. package/templates/src/app/api/_platform/migrations/0016__org.sql +0 -62
  358. package/templates/src/app/api/_platform/migrations/0017__users_employee_no.mysql.sql +0 -7
  359. package/templates/src/app/api/_platform/migrations/0017__users_employee_no.pg.sql +0 -4
  360. package/templates/src/app/api/_platform/migrations/0017__users_employee_no.sql +0 -8
  361. package/templates/src/app/api/_platform/migrations/0018__sys_role_title_key.mysql.sql +0 -3
  362. package/templates/src/app/api/_platform/migrations/0018__sys_role_title_key.pg.sql +0 -3
  363. package/templates/src/app/api/_platform/migrations/0018__sys_role_title_key.sql +0 -8
  364. package/templates/src/app/web/system/pages/login-methods/index.tsx +0 -30
  365. /package/shell-dist/assets/{nprogress-css.js → nprogress-css.1cq2pzkre0.js} +0 -0
  366. /package/shell-dist/assets/{ojm-antd-es-button.js → ojm-antd-es-button.2uriphio50.js} +0 -0
  367. /package/shell-dist/assets/{ojm-antd-es-modal.js → ojm-antd-es-modal.bf3tgdh8v0.js} +0 -0
  368. /package/shell-dist/assets/{ojm-antd-es-slider.js → ojm-antd-es-slider.xyvptuhid0.js} +0 -0
  369. /package/shell-dist/assets/{ojm-antd-es-upload.js → ojm-antd-es-upload.13gx45e0g0.js} +0 -0
@@ -1,4089 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __commonJS = (cb, mod) => function __require() {
8
- try {
9
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
- } catch (e) {
11
- throw mod = 0, e;
12
- }
13
- };
14
- var __export = (target, all) => {
15
- for (var name in all)
16
- __defProp(target, name, { get: all[name], enumerable: true });
17
- };
18
- var __copyProps = (to, from, except, desc) => {
19
- if (from && typeof from === "object" || typeof from === "function") {
20
- for (let key2 of __getOwnPropNames(from))
21
- if (!__hasOwnProp.call(to, key2) && key2 !== except)
22
- __defProp(to, key2, { get: () => from[key2], enumerable: !(desc = __getOwnPropDesc(from, key2)) || desc.enumerable });
23
- }
24
- return to;
25
- };
26
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
27
- // If the importer is in node compatibility mode or this is not an ESM
28
- // file that has been converted to a CommonJS file using a Babel-
29
- // compatible transform (i.e. "__esModule" has not been set), then set
30
- // "default" to the CommonJS "module.exports" for node compatibility.
31
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
32
- mod
33
- ));
34
-
35
- // ../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js
36
- var require_react_is_production_min = __commonJS({
37
- "../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js"(exports) {
38
- "use strict";
39
- var b = "function" === typeof Symbol && Symbol.for;
40
- var c = b ? /* @__PURE__ */ Symbol.for("react.element") : 60103;
41
- var d = b ? /* @__PURE__ */ Symbol.for("react.portal") : 60106;
42
- var e = b ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107;
43
- var f = b ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108;
44
- var g = b ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114;
45
- var h = b ? /* @__PURE__ */ Symbol.for("react.provider") : 60109;
46
- var k = b ? /* @__PURE__ */ Symbol.for("react.context") : 60110;
47
- var l = b ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111;
48
- var m = b ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111;
49
- var n = b ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112;
50
- var p = b ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113;
51
- var q = b ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120;
52
- var r = b ? /* @__PURE__ */ Symbol.for("react.memo") : 60115;
53
- var t = b ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116;
54
- var v = b ? /* @__PURE__ */ Symbol.for("react.block") : 60121;
55
- var w = b ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117;
56
- var x = b ? /* @__PURE__ */ Symbol.for("react.responder") : 60118;
57
- var y = b ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
58
- function z(a) {
59
- if ("object" === typeof a && null !== a) {
60
- var u = a.$$typeof;
61
- switch (u) {
62
- case c:
63
- switch (a = a.type, a) {
64
- case l:
65
- case m:
66
- case e:
67
- case g:
68
- case f:
69
- case p:
70
- return a;
71
- default:
72
- switch (a = a && a.$$typeof, a) {
73
- case k:
74
- case n:
75
- case t:
76
- case r:
77
- case h:
78
- return a;
79
- default:
80
- return u;
81
- }
82
- }
83
- case d:
84
- return u;
85
- }
86
- }
87
- }
88
- function A(a) {
89
- return z(a) === m;
90
- }
91
- exports.AsyncMode = l;
92
- exports.ConcurrentMode = m;
93
- exports.ContextConsumer = k;
94
- exports.ContextProvider = h;
95
- exports.Element = c;
96
- exports.ForwardRef = n;
97
- exports.Fragment = e;
98
- exports.Lazy = t;
99
- exports.Memo = r;
100
- exports.Portal = d;
101
- exports.Profiler = g;
102
- exports.StrictMode = f;
103
- exports.Suspense = p;
104
- exports.isAsyncMode = function(a) {
105
- return A(a) || z(a) === l;
106
- };
107
- exports.isConcurrentMode = A;
108
- exports.isContextConsumer = function(a) {
109
- return z(a) === k;
110
- };
111
- exports.isContextProvider = function(a) {
112
- return z(a) === h;
113
- };
114
- exports.isElement = function(a) {
115
- return "object" === typeof a && null !== a && a.$$typeof === c;
116
- };
117
- exports.isForwardRef = function(a) {
118
- return z(a) === n;
119
- };
120
- exports.isFragment = function(a) {
121
- return z(a) === e;
122
- };
123
- exports.isLazy = function(a) {
124
- return z(a) === t;
125
- };
126
- exports.isMemo = function(a) {
127
- return z(a) === r;
128
- };
129
- exports.isPortal = function(a) {
130
- return z(a) === d;
131
- };
132
- exports.isProfiler = function(a) {
133
- return z(a) === g;
134
- };
135
- exports.isStrictMode = function(a) {
136
- return z(a) === f;
137
- };
138
- exports.isSuspense = function(a) {
139
- return z(a) === p;
140
- };
141
- exports.isValidElementType = function(a) {
142
- return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
143
- };
144
- exports.typeOf = z;
145
- }
146
- });
147
-
148
- // ../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js
149
- var require_react_is = __commonJS({
150
- "../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js"(exports, module2) {
151
- "use strict";
152
- if (true) {
153
- module2.exports = require_react_is_production_min();
154
- } else {
155
- module2.exports = null;
156
- }
157
- }
158
- });
159
-
160
- // ../../node_modules/.pnpm/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
161
- var require_hoist_non_react_statics_cjs = __commonJS({
162
- "../../node_modules/.pnpm/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(exports, module2) {
163
- "use strict";
164
- var reactIs = require_react_is();
165
- var REACT_STATICS = {
166
- childContextTypes: true,
167
- contextType: true,
168
- contextTypes: true,
169
- defaultProps: true,
170
- displayName: true,
171
- getDefaultProps: true,
172
- getDerivedStateFromError: true,
173
- getDerivedStateFromProps: true,
174
- mixins: true,
175
- propTypes: true,
176
- type: true
177
- };
178
- var KNOWN_STATICS = {
179
- name: true,
180
- length: true,
181
- prototype: true,
182
- caller: true,
183
- callee: true,
184
- arguments: true,
185
- arity: true
186
- };
187
- var FORWARD_REF_STATICS = {
188
- "$$typeof": true,
189
- render: true,
190
- defaultProps: true,
191
- displayName: true,
192
- propTypes: true
193
- };
194
- var MEMO_STATICS = {
195
- "$$typeof": true,
196
- compare: true,
197
- defaultProps: true,
198
- displayName: true,
199
- propTypes: true,
200
- type: true
201
- };
202
- var TYPE_STATICS = {};
203
- TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
204
- TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
205
- function getStatics(component) {
206
- if (reactIs.isMemo(component)) {
207
- return MEMO_STATICS;
208
- }
209
- return TYPE_STATICS[component["$$typeof"]] || REACT_STATICS;
210
- }
211
- var defineProperty = Object.defineProperty;
212
- var getOwnPropertyNames = Object.getOwnPropertyNames;
213
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
214
- var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
215
- var getPrototypeOf = Object.getPrototypeOf;
216
- var objectPrototype = Object.prototype;
217
- function hoistNonReactStatics2(targetComponent, sourceComponent, blacklist) {
218
- if (typeof sourceComponent !== "string") {
219
- if (objectPrototype) {
220
- var inheritedComponent = getPrototypeOf(sourceComponent);
221
- if (inheritedComponent && inheritedComponent !== objectPrototype) {
222
- hoistNonReactStatics2(targetComponent, inheritedComponent, blacklist);
223
- }
224
- }
225
- var keys = getOwnPropertyNames(sourceComponent);
226
- if (getOwnPropertySymbols) {
227
- keys = keys.concat(getOwnPropertySymbols(sourceComponent));
228
- }
229
- var targetStatics = getStatics(targetComponent);
230
- var sourceStatics = getStatics(sourceComponent);
231
- for (var i = 0; i < keys.length; ++i) {
232
- var key2 = keys[i];
233
- if (!KNOWN_STATICS[key2] && !(blacklist && blacklist[key2]) && !(sourceStatics && sourceStatics[key2]) && !(targetStatics && targetStatics[key2])) {
234
- var descriptor = getOwnPropertyDescriptor(sourceComponent, key2);
235
- try {
236
- defineProperty(targetComponent, key2, descriptor);
237
- } catch (e) {
238
- }
239
- }
240
- }
241
- }
242
- return targetComponent;
243
- }
244
- module2.exports = hoistNonReactStatics2;
245
- }
246
- });
247
-
248
- // ../../node_modules/.pnpm/react-display-name@0.2.5/node_modules/react-display-name/lib/getDisplayName.js
249
- var require_getDisplayName = __commonJS({
250
- "../../node_modules/.pnpm/react-display-name@0.2.5/node_modules/react-display-name/lib/getDisplayName.js"(exports) {
251
- "use strict";
252
- Object.defineProperty(exports, "__esModule", {
253
- value: true
254
- });
255
- exports.default = getDisplayName4;
256
- function getDisplayName4(Component) {
257
- return Component.displayName || Component.name || (typeof Component === "string" && Component.length > 0 ? Component : "Unknown");
258
- }
259
- }
260
- });
261
-
262
- // ../../node_modules/.pnpm/react-jss@10.10.0_react@19.2.8/node_modules/react-jss/dist/react-jss.esm.js
263
- var react_jss_esm_exports = {};
264
- __export(react_jss_esm_exports, {
265
- JssContext: () => JssContext,
266
- JssProvider: () => JssProvider,
267
- SheetsRegistry: () => SheetsRegistry,
268
- ThemeProvider: () => ThemeProvider,
269
- createGenerateId: () => createGenerateId,
270
- createJsx: () => create3,
271
- createTheming: () => createTheming,
272
- createUseStyles: () => createUseStyles,
273
- default: () => react_jss_esm_default,
274
- jss: () => defaultJss2,
275
- jsx: () => jsx,
276
- styled: () => configureStyled,
277
- useTheme: () => useTheme,
278
- withStyles: () => createWithStyles,
279
- withTheme: () => withTheme
280
- });
281
-
282
- // ../../node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/extends.js
283
- function _extends() {
284
- return _extends = Object.assign ? Object.assign.bind() : function(n) {
285
- for (var e = 1; e < arguments.length; e++) {
286
- var t = arguments[e];
287
- for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
288
- }
289
- return n;
290
- }, _extends.apply(null, arguments);
291
- }
292
-
293
- // ../../node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
294
- function _objectWithoutPropertiesLoose(r, e) {
295
- if (null == r) return {};
296
- var t = {};
297
- for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
298
- if (-1 !== e.indexOf(n)) continue;
299
- t[n] = r[n];
300
- }
301
- return t;
302
- }
303
-
304
- // ../../node_modules/.pnpm/react-jss@10.10.0_react@19.2.8/node_modules/react-jss/dist/react-jss.esm.js
305
- var import_hoist_non_react_statics2 = __toESM(require_hoist_non_react_statics_cjs());
306
- import React2, { createContext as createContext2, useRef, useContext, useMemo, useEffect, useLayoutEffect, useDebugValue, forwardRef, createElement } from "react";
307
-
308
- // ../../node_modules/.pnpm/theming@3.3.0_react@19.2.8/node_modules/theming/dist/theming.esm.js
309
- import React, { createContext } from "react";
310
-
311
- // ../../node_modules/.pnpm/tiny-warning@1.0.3/node_modules/tiny-warning/dist/tiny-warning.esm.js
312
- var isProduction = true;
313
- function warning(condition, message) {
314
- if (!isProduction) {
315
- if (condition) {
316
- return;
317
- }
318
- var text = "Warning: " + message;
319
- if (typeof console !== "undefined") {
320
- console.warn(text);
321
- }
322
- try {
323
- throw Error(text);
324
- } catch (x) {
325
- }
326
- }
327
- }
328
- var tiny_warning_esm_default = warning;
329
-
330
- // ../../node_modules/.pnpm/theming@3.3.0_react@19.2.8/node_modules/theming/dist/theming.esm.js
331
- var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs());
332
- var import_react_display_name = __toESM(require_getDisplayName());
333
- function _defineProperty(obj, key2, value) {
334
- if (key2 in obj) {
335
- Object.defineProperty(obj, key2, {
336
- value,
337
- enumerable: true,
338
- configurable: true,
339
- writable: true
340
- });
341
- } else {
342
- obj[key2] = value;
343
- }
344
- return obj;
345
- }
346
- function _extends2() {
347
- _extends2 = Object.assign || function(target) {
348
- for (var i = 1; i < arguments.length; i++) {
349
- var source = arguments[i];
350
- for (var key2 in source) {
351
- if (Object.prototype.hasOwnProperty.call(source, key2)) {
352
- target[key2] = source[key2];
353
- }
354
- }
355
- }
356
- return target;
357
- };
358
- return _extends2.apply(this, arguments);
359
- }
360
- function _inheritsLoose(subClass, superClass) {
361
- subClass.prototype = Object.create(superClass.prototype);
362
- subClass.prototype.constructor = subClass;
363
- subClass.__proto__ = superClass;
364
- }
365
- function _assertThisInitialized(self2) {
366
- if (self2 === void 0) {
367
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
368
- }
369
- return self2;
370
- }
371
- function createThemeProvider(context) {
372
- var ThemeProvider2 = /* @__PURE__ */ (function(_React$Component) {
373
- _inheritsLoose(ThemeProvider3, _React$Component);
374
- function ThemeProvider3() {
375
- var _this;
376
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
377
- args[_key] = arguments[_key];
378
- }
379
- _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
380
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "cachedTheme", void 0);
381
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "lastOuterTheme", void 0);
382
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "lastTheme", void 0);
383
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "renderProvider", function(outerTheme) {
384
- var children = _this.props.children;
385
- return React.createElement(context.Provider, {
386
- value: _this.getTheme(outerTheme)
387
- }, children);
388
- });
389
- return _this;
390
- }
391
- var _proto = ThemeProvider3.prototype;
392
- _proto.getTheme = function getTheme(outerTheme) {
393
- if (this.props.theme !== this.lastTheme || outerTheme !== this.lastOuterTheme || !this.cachedTheme) {
394
- this.lastOuterTheme = outerTheme;
395
- this.lastTheme = this.props.theme;
396
- if (typeof this.lastTheme === "function") {
397
- var theme = this.props.theme;
398
- this.cachedTheme = theme(outerTheme);
399
- false ? tiny_warning_esm_default(isObject(this.cachedTheme), "[ThemeProvider] Please return an object from your theme function") : void 0;
400
- } else {
401
- var _theme = this.props.theme;
402
- false ? tiny_warning_esm_default(isObject(_theme), "[ThemeProvider] Please make your theme prop a plain object") : void 0;
403
- this.cachedTheme = outerTheme ? _extends2({}, outerTheme, _theme) : _theme;
404
- }
405
- }
406
- return this.cachedTheme;
407
- };
408
- _proto.render = function render() {
409
- var children = this.props.children;
410
- if (!children) {
411
- return null;
412
- }
413
- return React.createElement(context.Consumer, null, this.renderProvider);
414
- };
415
- return ThemeProvider3;
416
- })(React.Component);
417
- if (false) {
418
- ThemeProvider2.propTypes = {
419
- // eslint-disable-next-line react/require-default-props
420
- children: import_prop_types.default.node,
421
- theme: import_prop_types.default.oneOfType([import_prop_types.default.shape({}), import_prop_types.default.func]).isRequired
422
- };
423
- }
424
- return ThemeProvider2;
425
- }
426
- function createWithTheme(context) {
427
- return function hoc(Component) {
428
- var withTheme2 = React.forwardRef(function(props, ref) {
429
- return React.createElement(context.Consumer, null, function(theme) {
430
- false ? tiny_warning_esm_default(isObject(theme), "[theming] Please use withTheme only with the ThemeProvider") : void 0;
431
- return React.createElement(Component, _extends2({
432
- theme,
433
- ref
434
- }, props));
435
- });
436
- });
437
- if (false) {
438
- withTheme2.displayName = "WithTheme(" + (0, import_react_display_name.default)(Component) + ")";
439
- }
440
- (0, import_hoist_non_react_statics.default)(withTheme2, Component);
441
- return withTheme2;
442
- };
443
- }
444
- function createUseTheme(context) {
445
- var useTheme2 = function useTheme3() {
446
- var theme = React.useContext(context);
447
- false ? tiny_warning_esm_default(isObject(theme), "[theming] Please use useTheme only with the ThemeProvider") : void 0;
448
- return theme;
449
- };
450
- return useTheme2;
451
- }
452
- function createTheming(context) {
453
- return {
454
- context,
455
- withTheme: createWithTheme(context),
456
- useTheme: createUseTheme(context),
457
- ThemeProvider: createThemeProvider(context)
458
- };
459
- }
460
- var ThemeContext = createContext();
461
- var _createTheming = createTheming(ThemeContext);
462
- var withTheme = _createTheming.withTheme;
463
- var ThemeProvider = _createTheming.ThemeProvider;
464
- var useTheme = _createTheming.useTheme;
465
-
466
- // ../../node_modules/.pnpm/is-in-browser@1.1.3/node_modules/is-in-browser/dist/module.js
467
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(obj) {
468
- return typeof obj;
469
- } : function(obj) {
470
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
471
- };
472
- var isBrowser = (typeof window === "undefined" ? "undefined" : _typeof(window)) === "object" && (typeof document === "undefined" ? "undefined" : _typeof(document)) === "object" && document.nodeType === 9;
473
- var module_default = isBrowser;
474
-
475
- // ../../node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/typeof.js
476
- function _typeof2(o) {
477
- "@babel/helpers - typeof";
478
- return _typeof2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
479
- return typeof o2;
480
- } : function(o2) {
481
- return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
482
- }, _typeof2(o);
483
- }
484
-
485
- // ../../node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/toPrimitive.js
486
- function toPrimitive(t, r) {
487
- if ("object" != _typeof2(t) || !t) return t;
488
- var e = t[Symbol.toPrimitive];
489
- if (void 0 !== e) {
490
- var i = e.call(t, r || "default");
491
- if ("object" != _typeof2(i)) return i;
492
- throw new TypeError("@@toPrimitive must return a primitive value.");
493
- }
494
- return ("string" === r ? String : Number)(t);
495
- }
496
-
497
- // ../../node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
498
- function toPropertyKey(t) {
499
- var i = toPrimitive(t, "string");
500
- return "symbol" == _typeof2(i) ? i : i + "";
501
- }
502
-
503
- // ../../node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/createClass.js
504
- function _defineProperties(e, r) {
505
- for (var t = 0; t < r.length; t++) {
506
- var o = r[t];
507
- o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, toPropertyKey(o.key), o);
508
- }
509
- }
510
- function _createClass(e, r, t) {
511
- return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
512
- writable: false
513
- }), e;
514
- }
515
-
516
- // ../../node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
517
- function _setPrototypeOf(t, e) {
518
- return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
519
- return t2.__proto__ = e2, t2;
520
- }, _setPrototypeOf(t, e);
521
- }
522
-
523
- // ../../node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
524
- function _inheritsLoose2(t, o) {
525
- t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
526
- }
527
-
528
- // ../../node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
529
- function _assertThisInitialized2(e) {
530
- if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
531
- return e;
532
- }
533
-
534
- // ../../node_modules/.pnpm/jss@10.10.0/node_modules/jss/dist/jss.esm.js
535
- var plainObjectConstrurctor = {}.constructor;
536
- function cloneStyle(style2) {
537
- if (style2 == null || typeof style2 !== "object") return style2;
538
- if (Array.isArray(style2)) return style2.map(cloneStyle);
539
- if (style2.constructor !== plainObjectConstrurctor) return style2;
540
- var newStyle = {};
541
- for (var name in style2) {
542
- newStyle[name] = cloneStyle(style2[name]);
543
- }
544
- return newStyle;
545
- }
546
- function createRule(name, decl, options) {
547
- if (name === void 0) {
548
- name = "unnamed";
549
- }
550
- var jss = options.jss;
551
- var declCopy = cloneStyle(decl);
552
- var rule = jss.plugins.onCreateRule(name, declCopy, options);
553
- if (rule) return rule;
554
- if (name[0] === "@") {
555
- false ? tiny_warning_esm_default(false, "[JSS] Unknown rule " + name) : void 0;
556
- }
557
- return null;
558
- }
559
- var join = function join2(value, by) {
560
- var result2 = "";
561
- for (var i = 0; i < value.length; i++) {
562
- if (value[i] === "!important") break;
563
- if (result2) result2 += by;
564
- result2 += value[i];
565
- }
566
- return result2;
567
- };
568
- var toCssValue = function toCssValue2(value) {
569
- if (!Array.isArray(value)) return value;
570
- var cssValue = "";
571
- if (Array.isArray(value[0])) {
572
- for (var i = 0; i < value.length; i++) {
573
- if (value[i] === "!important") break;
574
- if (cssValue) cssValue += ", ";
575
- cssValue += join(value[i], " ");
576
- }
577
- } else cssValue = join(value, ", ");
578
- if (value[value.length - 1] === "!important") {
579
- cssValue += " !important";
580
- }
581
- return cssValue;
582
- };
583
- function getWhitespaceSymbols(options) {
584
- if (options && options.format === false) {
585
- return {
586
- linebreak: "",
587
- space: ""
588
- };
589
- }
590
- return {
591
- linebreak: "\n",
592
- space: " "
593
- };
594
- }
595
- function indentStr(str, indent) {
596
- var result2 = "";
597
- for (var index4 = 0; index4 < indent; index4++) {
598
- result2 += " ";
599
- }
600
- return result2 + str;
601
- }
602
- function toCss(selector, style2, options) {
603
- if (options === void 0) {
604
- options = {};
605
- }
606
- var result2 = "";
607
- if (!style2) return result2;
608
- var _options = options, _options$indent = _options.indent, indent = _options$indent === void 0 ? 0 : _options$indent;
609
- var fallbacks = style2.fallbacks;
610
- if (options.format === false) {
611
- indent = -Infinity;
612
- }
613
- var _getWhitespaceSymbols = getWhitespaceSymbols(options), linebreak = _getWhitespaceSymbols.linebreak, space = _getWhitespaceSymbols.space;
614
- if (selector) indent++;
615
- if (fallbacks) {
616
- if (Array.isArray(fallbacks)) {
617
- for (var index4 = 0; index4 < fallbacks.length; index4++) {
618
- var fallback = fallbacks[index4];
619
- for (var prop in fallback) {
620
- var value = fallback[prop];
621
- if (value != null) {
622
- if (result2) result2 += linebreak;
623
- result2 += indentStr(prop + ":" + space + toCssValue(value) + ";", indent);
624
- }
625
- }
626
- }
627
- } else {
628
- for (var _prop in fallbacks) {
629
- var _value = fallbacks[_prop];
630
- if (_value != null) {
631
- if (result2) result2 += linebreak;
632
- result2 += indentStr(_prop + ":" + space + toCssValue(_value) + ";", indent);
633
- }
634
- }
635
- }
636
- }
637
- for (var _prop2 in style2) {
638
- var _value2 = style2[_prop2];
639
- if (_value2 != null && _prop2 !== "fallbacks") {
640
- if (result2) result2 += linebreak;
641
- result2 += indentStr(_prop2 + ":" + space + toCssValue(_value2) + ";", indent);
642
- }
643
- }
644
- if (!result2 && !options.allowEmpty) return result2;
645
- if (!selector) return result2;
646
- indent--;
647
- if (result2) result2 = "" + linebreak + result2 + linebreak;
648
- return indentStr("" + selector + space + "{" + result2, indent) + indentStr("}", indent);
649
- }
650
- var escapeRegex = /([[\].#*$><+~=|^:(),"'`\s])/g;
651
- var nativeEscape = typeof CSS !== "undefined" && CSS.escape;
652
- var escape = (function(str) {
653
- return nativeEscape ? nativeEscape(str) : str.replace(escapeRegex, "\\$1");
654
- });
655
- var BaseStyleRule = /* @__PURE__ */ (function() {
656
- function BaseStyleRule2(key2, style2, options) {
657
- this.type = "style";
658
- this.isProcessed = false;
659
- var sheet = options.sheet, Renderer = options.Renderer;
660
- this.key = key2;
661
- this.options = options;
662
- this.style = style2;
663
- if (sheet) this.renderer = sheet.renderer;
664
- else if (Renderer) this.renderer = new Renderer();
665
- }
666
- var _proto = BaseStyleRule2.prototype;
667
- _proto.prop = function prop(name, value, options) {
668
- if (value === void 0) return this.style[name];
669
- var force = options ? options.force : false;
670
- if (!force && this.style[name] === value) return this;
671
- var newValue = value;
672
- if (!options || options.process !== false) {
673
- newValue = this.options.jss.plugins.onChangeValue(value, name, this);
674
- }
675
- var isEmpty = newValue == null || newValue === false;
676
- var isDefined = name in this.style;
677
- if (isEmpty && !isDefined && !force) return this;
678
- var remove = isEmpty && isDefined;
679
- if (remove) delete this.style[name];
680
- else this.style[name] = newValue;
681
- if (this.renderable && this.renderer) {
682
- if (remove) this.renderer.removeProperty(this.renderable, name);
683
- else this.renderer.setProperty(this.renderable, name, newValue);
684
- return this;
685
- }
686
- var sheet = this.options.sheet;
687
- if (sheet && sheet.attached) {
688
- false ? tiny_warning_esm_default(false, '[JSS] Rule is not linked. Missing sheet option "link: true".') : void 0;
689
- }
690
- return this;
691
- };
692
- return BaseStyleRule2;
693
- })();
694
- var StyleRule = /* @__PURE__ */ (function(_BaseStyleRule) {
695
- _inheritsLoose2(StyleRule2, _BaseStyleRule);
696
- function StyleRule2(key2, style2, options) {
697
- var _this;
698
- _this = _BaseStyleRule.call(this, key2, style2, options) || this;
699
- var selector = options.selector, scoped = options.scoped, sheet = options.sheet, generateId = options.generateId;
700
- if (selector) {
701
- _this.selectorText = selector;
702
- } else if (scoped !== false) {
703
- _this.id = generateId(_assertThisInitialized2(_assertThisInitialized2(_this)), sheet);
704
- _this.selectorText = "." + escape(_this.id);
705
- }
706
- return _this;
707
- }
708
- var _proto2 = StyleRule2.prototype;
709
- _proto2.applyTo = function applyTo(renderable) {
710
- var renderer = this.renderer;
711
- if (renderer) {
712
- var json = this.toJSON();
713
- for (var prop in json) {
714
- renderer.setProperty(renderable, prop, json[prop]);
715
- }
716
- }
717
- return this;
718
- };
719
- _proto2.toJSON = function toJSON() {
720
- var json = {};
721
- for (var prop in this.style) {
722
- var value = this.style[prop];
723
- if (typeof value !== "object") json[prop] = value;
724
- else if (Array.isArray(value)) json[prop] = toCssValue(value);
725
- }
726
- return json;
727
- };
728
- _proto2.toString = function toString(options) {
729
- var sheet = this.options.sheet;
730
- var link = sheet ? sheet.options.link : false;
731
- var opts = link ? _extends({}, options, {
732
- allowEmpty: true
733
- }) : options;
734
- return toCss(this.selectorText, this.style, opts);
735
- };
736
- _createClass(StyleRule2, [{
737
- key: "selector",
738
- set: function set(selector) {
739
- if (selector === this.selectorText) return;
740
- this.selectorText = selector;
741
- var renderer = this.renderer, renderable = this.renderable;
742
- if (!renderable || !renderer) return;
743
- var hasChanged = renderer.setSelector(renderable, selector);
744
- if (!hasChanged) {
745
- renderer.replaceRule(renderable, this);
746
- }
747
- },
748
- get: function get() {
749
- return this.selectorText;
750
- }
751
- }]);
752
- return StyleRule2;
753
- })(BaseStyleRule);
754
- var pluginStyleRule = {
755
- onCreateRule: function onCreateRule(key2, style2, options) {
756
- if (key2[0] === "@" || options.parent && options.parent.type === "keyframes") {
757
- return null;
758
- }
759
- return new StyleRule(key2, style2, options);
760
- }
761
- };
762
- var defaultToStringOptions = {
763
- indent: 1,
764
- children: true
765
- };
766
- var atRegExp = /@([\w-]+)/;
767
- var ConditionalRule = /* @__PURE__ */ (function() {
768
- function ConditionalRule2(key2, styles, options) {
769
- this.type = "conditional";
770
- this.isProcessed = false;
771
- this.key = key2;
772
- var atMatch = key2.match(atRegExp);
773
- this.at = atMatch ? atMatch[1] : "unknown";
774
- this.query = options.name || "@" + this.at;
775
- this.options = options;
776
- this.rules = new RuleList(_extends({}, options, {
777
- parent: this
778
- }));
779
- for (var name in styles) {
780
- this.rules.add(name, styles[name]);
781
- }
782
- this.rules.process();
783
- }
784
- var _proto = ConditionalRule2.prototype;
785
- _proto.getRule = function getRule(name) {
786
- return this.rules.get(name);
787
- };
788
- _proto.indexOf = function indexOf(rule) {
789
- return this.rules.indexOf(rule);
790
- };
791
- _proto.addRule = function addRule(name, style2, options) {
792
- var rule = this.rules.add(name, style2, options);
793
- if (!rule) return null;
794
- this.options.jss.plugins.onProcessRule(rule);
795
- return rule;
796
- };
797
- _proto.replaceRule = function replaceRule(name, style2, options) {
798
- var newRule = this.rules.replace(name, style2, options);
799
- if (newRule) this.options.jss.plugins.onProcessRule(newRule);
800
- return newRule;
801
- };
802
- _proto.toString = function toString(options) {
803
- if (options === void 0) {
804
- options = defaultToStringOptions;
805
- }
806
- var _getWhitespaceSymbols = getWhitespaceSymbols(options), linebreak = _getWhitespaceSymbols.linebreak;
807
- if (options.indent == null) options.indent = defaultToStringOptions.indent;
808
- if (options.children == null) options.children = defaultToStringOptions.children;
809
- if (options.children === false) {
810
- return this.query + " {}";
811
- }
812
- var children = this.rules.toString(options);
813
- return children ? this.query + " {" + linebreak + children + linebreak + "}" : "";
814
- };
815
- return ConditionalRule2;
816
- })();
817
- var keyRegExp = /@container|@media|@supports\s+/;
818
- var pluginConditionalRule = {
819
- onCreateRule: function onCreateRule2(key2, styles, options) {
820
- return keyRegExp.test(key2) ? new ConditionalRule(key2, styles, options) : null;
821
- }
822
- };
823
- var defaultToStringOptions$1 = {
824
- indent: 1,
825
- children: true
826
- };
827
- var nameRegExp = /@keyframes\s+([\w-]+)/;
828
- var KeyframesRule = /* @__PURE__ */ (function() {
829
- function KeyframesRule2(key2, frames, options) {
830
- this.type = "keyframes";
831
- this.at = "@keyframes";
832
- this.isProcessed = false;
833
- var nameMatch = key2.match(nameRegExp);
834
- if (nameMatch && nameMatch[1]) {
835
- this.name = nameMatch[1];
836
- } else {
837
- this.name = "noname";
838
- false ? tiny_warning_esm_default(false, "[JSS] Bad keyframes name " + key2) : void 0;
839
- }
840
- this.key = this.type + "-" + this.name;
841
- this.options = options;
842
- var scoped = options.scoped, sheet = options.sheet, generateId = options.generateId;
843
- this.id = scoped === false ? this.name : escape(generateId(this, sheet));
844
- this.rules = new RuleList(_extends({}, options, {
845
- parent: this
846
- }));
847
- for (var name in frames) {
848
- this.rules.add(name, frames[name], _extends({}, options, {
849
- parent: this
850
- }));
851
- }
852
- this.rules.process();
853
- }
854
- var _proto = KeyframesRule2.prototype;
855
- _proto.toString = function toString(options) {
856
- if (options === void 0) {
857
- options = defaultToStringOptions$1;
858
- }
859
- var _getWhitespaceSymbols = getWhitespaceSymbols(options), linebreak = _getWhitespaceSymbols.linebreak;
860
- if (options.indent == null) options.indent = defaultToStringOptions$1.indent;
861
- if (options.children == null) options.children = defaultToStringOptions$1.children;
862
- if (options.children === false) {
863
- return this.at + " " + this.id + " {}";
864
- }
865
- var children = this.rules.toString(options);
866
- if (children) children = "" + linebreak + children + linebreak;
867
- return this.at + " " + this.id + " {" + children + "}";
868
- };
869
- return KeyframesRule2;
870
- })();
871
- var keyRegExp$1 = /@keyframes\s+/;
872
- var refRegExp = /\$([\w-]+)/g;
873
- var findReferencedKeyframe = function findReferencedKeyframe2(val, keyframes) {
874
- if (typeof val === "string") {
875
- return val.replace(refRegExp, function(match, name) {
876
- if (name in keyframes) {
877
- return keyframes[name];
878
- }
879
- false ? tiny_warning_esm_default(false, '[JSS] Referenced keyframes rule "' + name + '" is not defined.') : void 0;
880
- return match;
881
- });
882
- }
883
- return val;
884
- };
885
- var replaceRef = function replaceRef2(style2, prop, keyframes) {
886
- var value = style2[prop];
887
- var refKeyframe = findReferencedKeyframe(value, keyframes);
888
- if (refKeyframe !== value) {
889
- style2[prop] = refKeyframe;
890
- }
891
- };
892
- var pluginKeyframesRule = {
893
- onCreateRule: function onCreateRule3(key2, frames, options) {
894
- return typeof key2 === "string" && keyRegExp$1.test(key2) ? new KeyframesRule(key2, frames, options) : null;
895
- },
896
- // Animation name ref replacer.
897
- onProcessStyle: function onProcessStyle(style2, rule, sheet) {
898
- if (rule.type !== "style" || !sheet) return style2;
899
- if ("animation-name" in style2) replaceRef(style2, "animation-name", sheet.keyframes);
900
- if ("animation" in style2) replaceRef(style2, "animation", sheet.keyframes);
901
- return style2;
902
- },
903
- onChangeValue: function onChangeValue(val, prop, rule) {
904
- var sheet = rule.options.sheet;
905
- if (!sheet) {
906
- return val;
907
- }
908
- switch (prop) {
909
- case "animation":
910
- return findReferencedKeyframe(val, sheet.keyframes);
911
- case "animation-name":
912
- return findReferencedKeyframe(val, sheet.keyframes);
913
- default:
914
- return val;
915
- }
916
- }
917
- };
918
- var KeyframeRule = /* @__PURE__ */ (function(_BaseStyleRule) {
919
- _inheritsLoose2(KeyframeRule2, _BaseStyleRule);
920
- function KeyframeRule2() {
921
- return _BaseStyleRule.apply(this, arguments) || this;
922
- }
923
- var _proto = KeyframeRule2.prototype;
924
- _proto.toString = function toString(options) {
925
- var sheet = this.options.sheet;
926
- var link = sheet ? sheet.options.link : false;
927
- var opts = link ? _extends({}, options, {
928
- allowEmpty: true
929
- }) : options;
930
- return toCss(this.key, this.style, opts);
931
- };
932
- return KeyframeRule2;
933
- })(BaseStyleRule);
934
- var pluginKeyframeRule = {
935
- onCreateRule: function onCreateRule4(key2, style2, options) {
936
- if (options.parent && options.parent.type === "keyframes") {
937
- return new KeyframeRule(key2, style2, options);
938
- }
939
- return null;
940
- }
941
- };
942
- var FontFaceRule = /* @__PURE__ */ (function() {
943
- function FontFaceRule2(key2, style2, options) {
944
- this.type = "font-face";
945
- this.at = "@font-face";
946
- this.isProcessed = false;
947
- this.key = key2;
948
- this.style = style2;
949
- this.options = options;
950
- }
951
- var _proto = FontFaceRule2.prototype;
952
- _proto.toString = function toString(options) {
953
- var _getWhitespaceSymbols = getWhitespaceSymbols(options), linebreak = _getWhitespaceSymbols.linebreak;
954
- if (Array.isArray(this.style)) {
955
- var str = "";
956
- for (var index4 = 0; index4 < this.style.length; index4++) {
957
- str += toCss(this.at, this.style[index4]);
958
- if (this.style[index4 + 1]) str += linebreak;
959
- }
960
- return str;
961
- }
962
- return toCss(this.at, this.style, options);
963
- };
964
- return FontFaceRule2;
965
- })();
966
- var keyRegExp$2 = /@font-face/;
967
- var pluginFontFaceRule = {
968
- onCreateRule: function onCreateRule5(key2, style2, options) {
969
- return keyRegExp$2.test(key2) ? new FontFaceRule(key2, style2, options) : null;
970
- }
971
- };
972
- var ViewportRule = /* @__PURE__ */ (function() {
973
- function ViewportRule2(key2, style2, options) {
974
- this.type = "viewport";
975
- this.at = "@viewport";
976
- this.isProcessed = false;
977
- this.key = key2;
978
- this.style = style2;
979
- this.options = options;
980
- }
981
- var _proto = ViewportRule2.prototype;
982
- _proto.toString = function toString(options) {
983
- return toCss(this.key, this.style, options);
984
- };
985
- return ViewportRule2;
986
- })();
987
- var pluginViewportRule = {
988
- onCreateRule: function onCreateRule6(key2, style2, options) {
989
- return key2 === "@viewport" || key2 === "@-ms-viewport" ? new ViewportRule(key2, style2, options) : null;
990
- }
991
- };
992
- var SimpleRule = /* @__PURE__ */ (function() {
993
- function SimpleRule2(key2, value, options) {
994
- this.type = "simple";
995
- this.isProcessed = false;
996
- this.key = key2;
997
- this.value = value;
998
- this.options = options;
999
- }
1000
- var _proto = SimpleRule2.prototype;
1001
- _proto.toString = function toString(options) {
1002
- if (Array.isArray(this.value)) {
1003
- var str = "";
1004
- for (var index4 = 0; index4 < this.value.length; index4++) {
1005
- str += this.key + " " + this.value[index4] + ";";
1006
- if (this.value[index4 + 1]) str += "\n";
1007
- }
1008
- return str;
1009
- }
1010
- return this.key + " " + this.value + ";";
1011
- };
1012
- return SimpleRule2;
1013
- })();
1014
- var keysMap = {
1015
- "@charset": true,
1016
- "@import": true,
1017
- "@namespace": true
1018
- };
1019
- var pluginSimpleRule = {
1020
- onCreateRule: function onCreateRule7(key2, value, options) {
1021
- return key2 in keysMap ? new SimpleRule(key2, value, options) : null;
1022
- }
1023
- };
1024
- var plugins = [pluginStyleRule, pluginConditionalRule, pluginKeyframesRule, pluginKeyframeRule, pluginFontFaceRule, pluginViewportRule, pluginSimpleRule];
1025
- var defaultUpdateOptions = {
1026
- process: true
1027
- };
1028
- var forceUpdateOptions = {
1029
- force: true,
1030
- process: true
1031
- /**
1032
- * Contains rules objects and allows adding/removing etc.
1033
- * Is used for e.g. by `StyleSheet` or `ConditionalRule`.
1034
- */
1035
- };
1036
- var RuleList = /* @__PURE__ */ (function() {
1037
- function RuleList2(options) {
1038
- this.map = {};
1039
- this.raw = {};
1040
- this.index = [];
1041
- this.counter = 0;
1042
- this.options = options;
1043
- this.classes = options.classes;
1044
- this.keyframes = options.keyframes;
1045
- }
1046
- var _proto = RuleList2.prototype;
1047
- _proto.add = function add(name, decl, ruleOptions) {
1048
- var _this$options = this.options, parent = _this$options.parent, sheet = _this$options.sheet, jss = _this$options.jss, Renderer = _this$options.Renderer, generateId = _this$options.generateId, scoped = _this$options.scoped;
1049
- var options = _extends({
1050
- classes: this.classes,
1051
- parent,
1052
- sheet,
1053
- jss,
1054
- Renderer,
1055
- generateId,
1056
- scoped,
1057
- name,
1058
- keyframes: this.keyframes,
1059
- selector: void 0
1060
- }, ruleOptions);
1061
- var key2 = name;
1062
- if (name in this.raw) {
1063
- key2 = name + "-d" + this.counter++;
1064
- }
1065
- this.raw[key2] = decl;
1066
- if (key2 in this.classes) {
1067
- options.selector = "." + escape(this.classes[key2]);
1068
- }
1069
- var rule = createRule(key2, decl, options);
1070
- if (!rule) return null;
1071
- this.register(rule);
1072
- var index4 = options.index === void 0 ? this.index.length : options.index;
1073
- this.index.splice(index4, 0, rule);
1074
- return rule;
1075
- };
1076
- _proto.replace = function replace(name, decl, ruleOptions) {
1077
- var oldRule = this.get(name);
1078
- var oldIndex = this.index.indexOf(oldRule);
1079
- if (oldRule) {
1080
- this.remove(oldRule);
1081
- }
1082
- var options = ruleOptions;
1083
- if (oldIndex !== -1) options = _extends({}, ruleOptions, {
1084
- index: oldIndex
1085
- });
1086
- return this.add(name, decl, options);
1087
- };
1088
- _proto.get = function get(nameOrSelector) {
1089
- return this.map[nameOrSelector];
1090
- };
1091
- _proto.remove = function remove(rule) {
1092
- this.unregister(rule);
1093
- delete this.raw[rule.key];
1094
- this.index.splice(this.index.indexOf(rule), 1);
1095
- };
1096
- _proto.indexOf = function indexOf(rule) {
1097
- return this.index.indexOf(rule);
1098
- };
1099
- _proto.process = function process2() {
1100
- var plugins3 = this.options.jss.plugins;
1101
- this.index.slice(0).forEach(plugins3.onProcessRule, plugins3);
1102
- };
1103
- _proto.register = function register(rule) {
1104
- this.map[rule.key] = rule;
1105
- if (rule instanceof StyleRule) {
1106
- this.map[rule.selector] = rule;
1107
- if (rule.id) this.classes[rule.key] = rule.id;
1108
- } else if (rule instanceof KeyframesRule && this.keyframes) {
1109
- this.keyframes[rule.name] = rule.id;
1110
- }
1111
- };
1112
- _proto.unregister = function unregister(rule) {
1113
- delete this.map[rule.key];
1114
- if (rule instanceof StyleRule) {
1115
- delete this.map[rule.selector];
1116
- delete this.classes[rule.key];
1117
- } else if (rule instanceof KeyframesRule) {
1118
- delete this.keyframes[rule.name];
1119
- }
1120
- };
1121
- _proto.update = function update() {
1122
- var name;
1123
- var data;
1124
- var options;
1125
- if (typeof (arguments.length <= 0 ? void 0 : arguments[0]) === "string") {
1126
- name = arguments.length <= 0 ? void 0 : arguments[0];
1127
- data = arguments.length <= 1 ? void 0 : arguments[1];
1128
- options = arguments.length <= 2 ? void 0 : arguments[2];
1129
- } else {
1130
- data = arguments.length <= 0 ? void 0 : arguments[0];
1131
- options = arguments.length <= 1 ? void 0 : arguments[1];
1132
- name = null;
1133
- }
1134
- if (name) {
1135
- this.updateOne(this.get(name), data, options);
1136
- } else {
1137
- for (var index4 = 0; index4 < this.index.length; index4++) {
1138
- this.updateOne(this.index[index4], data, options);
1139
- }
1140
- }
1141
- };
1142
- _proto.updateOne = function updateOne(rule, data, options) {
1143
- if (options === void 0) {
1144
- options = defaultUpdateOptions;
1145
- }
1146
- var _this$options2 = this.options, plugins3 = _this$options2.jss.plugins, sheet = _this$options2.sheet;
1147
- if (rule.rules instanceof RuleList2) {
1148
- rule.rules.update(data, options);
1149
- return;
1150
- }
1151
- var style2 = rule.style;
1152
- plugins3.onUpdate(data, rule, sheet, options);
1153
- if (options.process && style2 && style2 !== rule.style) {
1154
- plugins3.onProcessStyle(rule.style, rule, sheet);
1155
- for (var prop in rule.style) {
1156
- var nextValue = rule.style[prop];
1157
- var prevValue = style2[prop];
1158
- if (nextValue !== prevValue) {
1159
- rule.prop(prop, nextValue, forceUpdateOptions);
1160
- }
1161
- }
1162
- for (var _prop in style2) {
1163
- var _nextValue = rule.style[_prop];
1164
- var _prevValue = style2[_prop];
1165
- if (_nextValue == null && _nextValue !== _prevValue) {
1166
- rule.prop(_prop, null, forceUpdateOptions);
1167
- }
1168
- }
1169
- }
1170
- };
1171
- _proto.toString = function toString(options) {
1172
- var str = "";
1173
- var sheet = this.options.sheet;
1174
- var link = sheet ? sheet.options.link : false;
1175
- var _getWhitespaceSymbols = getWhitespaceSymbols(options), linebreak = _getWhitespaceSymbols.linebreak;
1176
- for (var index4 = 0; index4 < this.index.length; index4++) {
1177
- var rule = this.index[index4];
1178
- var css3 = rule.toString(options);
1179
- if (!css3 && !link) continue;
1180
- if (str) str += linebreak;
1181
- str += css3;
1182
- }
1183
- return str;
1184
- };
1185
- return RuleList2;
1186
- })();
1187
- var StyleSheet = /* @__PURE__ */ (function() {
1188
- function StyleSheet2(styles, options) {
1189
- this.attached = false;
1190
- this.deployed = false;
1191
- this.classes = {};
1192
- this.keyframes = {};
1193
- this.options = _extends({}, options, {
1194
- sheet: this,
1195
- parent: this,
1196
- classes: this.classes,
1197
- keyframes: this.keyframes
1198
- });
1199
- if (options.Renderer) {
1200
- this.renderer = new options.Renderer(this);
1201
- }
1202
- this.rules = new RuleList(this.options);
1203
- for (var name in styles) {
1204
- this.rules.add(name, styles[name]);
1205
- }
1206
- this.rules.process();
1207
- }
1208
- var _proto = StyleSheet2.prototype;
1209
- _proto.attach = function attach() {
1210
- if (this.attached) return this;
1211
- if (this.renderer) this.renderer.attach();
1212
- this.attached = true;
1213
- if (!this.deployed) this.deploy();
1214
- return this;
1215
- };
1216
- _proto.detach = function detach() {
1217
- if (!this.attached) return this;
1218
- if (this.renderer) this.renderer.detach();
1219
- this.attached = false;
1220
- return this;
1221
- };
1222
- _proto.addRule = function addRule(name, decl, options) {
1223
- var queue = this.queue;
1224
- if (this.attached && !queue) this.queue = [];
1225
- var rule = this.rules.add(name, decl, options);
1226
- if (!rule) return null;
1227
- this.options.jss.plugins.onProcessRule(rule);
1228
- if (this.attached) {
1229
- if (!this.deployed) return rule;
1230
- if (queue) queue.push(rule);
1231
- else {
1232
- this.insertRule(rule);
1233
- if (this.queue) {
1234
- this.queue.forEach(this.insertRule, this);
1235
- this.queue = void 0;
1236
- }
1237
- }
1238
- return rule;
1239
- }
1240
- this.deployed = false;
1241
- return rule;
1242
- };
1243
- _proto.replaceRule = function replaceRule(nameOrSelector, decl, options) {
1244
- var oldRule = this.rules.get(nameOrSelector);
1245
- if (!oldRule) return this.addRule(nameOrSelector, decl, options);
1246
- var newRule = this.rules.replace(nameOrSelector, decl, options);
1247
- if (newRule) {
1248
- this.options.jss.plugins.onProcessRule(newRule);
1249
- }
1250
- if (this.attached) {
1251
- if (!this.deployed) return newRule;
1252
- if (this.renderer) {
1253
- if (!newRule) {
1254
- this.renderer.deleteRule(oldRule);
1255
- } else if (oldRule.renderable) {
1256
- this.renderer.replaceRule(oldRule.renderable, newRule);
1257
- }
1258
- }
1259
- return newRule;
1260
- }
1261
- this.deployed = false;
1262
- return newRule;
1263
- };
1264
- _proto.insertRule = function insertRule2(rule) {
1265
- if (this.renderer) {
1266
- this.renderer.insertRule(rule);
1267
- }
1268
- };
1269
- _proto.addRules = function addRules(styles, options) {
1270
- var added = [];
1271
- for (var name in styles) {
1272
- var rule = this.addRule(name, styles[name], options);
1273
- if (rule) added.push(rule);
1274
- }
1275
- return added;
1276
- };
1277
- _proto.getRule = function getRule(nameOrSelector) {
1278
- return this.rules.get(nameOrSelector);
1279
- };
1280
- _proto.deleteRule = function deleteRule(name) {
1281
- var rule = typeof name === "object" ? name : this.rules.get(name);
1282
- if (!rule || // Style sheet was created without link: true and attached, in this case we
1283
- // won't be able to remove the CSS rule from the DOM.
1284
- this.attached && !rule.renderable) {
1285
- return false;
1286
- }
1287
- this.rules.remove(rule);
1288
- if (this.attached && rule.renderable && this.renderer) {
1289
- return this.renderer.deleteRule(rule.renderable);
1290
- }
1291
- return true;
1292
- };
1293
- _proto.indexOf = function indexOf(rule) {
1294
- return this.rules.indexOf(rule);
1295
- };
1296
- _proto.deploy = function deploy() {
1297
- if (this.renderer) this.renderer.deploy();
1298
- this.deployed = true;
1299
- return this;
1300
- };
1301
- _proto.update = function update() {
1302
- var _this$rules;
1303
- (_this$rules = this.rules).update.apply(_this$rules, arguments);
1304
- return this;
1305
- };
1306
- _proto.updateOne = function updateOne(rule, data, options) {
1307
- this.rules.updateOne(rule, data, options);
1308
- return this;
1309
- };
1310
- _proto.toString = function toString(options) {
1311
- return this.rules.toString(options);
1312
- };
1313
- return StyleSheet2;
1314
- })();
1315
- var PluginsRegistry = /* @__PURE__ */ (function() {
1316
- function PluginsRegistry2() {
1317
- this.plugins = {
1318
- internal: [],
1319
- external: []
1320
- };
1321
- this.registry = {};
1322
- }
1323
- var _proto = PluginsRegistry2.prototype;
1324
- _proto.onCreateRule = function onCreateRule8(name, decl, options) {
1325
- for (var i = 0; i < this.registry.onCreateRule.length; i++) {
1326
- var rule = this.registry.onCreateRule[i](name, decl, options);
1327
- if (rule) return rule;
1328
- }
1329
- return null;
1330
- };
1331
- _proto.onProcessRule = function onProcessRule3(rule) {
1332
- if (rule.isProcessed) return;
1333
- var sheet = rule.options.sheet;
1334
- for (var i = 0; i < this.registry.onProcessRule.length; i++) {
1335
- this.registry.onProcessRule[i](rule, sheet);
1336
- }
1337
- if (rule.style) this.onProcessStyle(rule.style, rule, sheet);
1338
- rule.isProcessed = true;
1339
- };
1340
- _proto.onProcessStyle = function onProcessStyle2(style2, rule, sheet) {
1341
- for (var i = 0; i < this.registry.onProcessStyle.length; i++) {
1342
- rule.style = this.registry.onProcessStyle[i](rule.style, rule, sheet);
1343
- }
1344
- };
1345
- _proto.onProcessSheet = function onProcessSheet(sheet) {
1346
- for (var i = 0; i < this.registry.onProcessSheet.length; i++) {
1347
- this.registry.onProcessSheet[i](sheet);
1348
- }
1349
- };
1350
- _proto.onUpdate = function onUpdate(data, rule, sheet, options) {
1351
- for (var i = 0; i < this.registry.onUpdate.length; i++) {
1352
- this.registry.onUpdate[i](data, rule, sheet, options);
1353
- }
1354
- };
1355
- _proto.onChangeValue = function onChangeValue2(value, prop, rule) {
1356
- var processedValue = value;
1357
- for (var i = 0; i < this.registry.onChangeValue.length; i++) {
1358
- processedValue = this.registry.onChangeValue[i](processedValue, prop, rule);
1359
- }
1360
- return processedValue;
1361
- };
1362
- _proto.use = function use(newPlugin, options) {
1363
- if (options === void 0) {
1364
- options = {
1365
- queue: "external"
1366
- };
1367
- }
1368
- var plugins3 = this.plugins[options.queue];
1369
- if (plugins3.indexOf(newPlugin) !== -1) {
1370
- return;
1371
- }
1372
- plugins3.push(newPlugin);
1373
- this.registry = [].concat(this.plugins.external, this.plugins.internal).reduce(function(registry, plugin) {
1374
- for (var name in plugin) {
1375
- if (name in registry) {
1376
- registry[name].push(plugin[name]);
1377
- } else {
1378
- false ? tiny_warning_esm_default(false, '[JSS] Unknown hook "' + name + '".') : void 0;
1379
- }
1380
- }
1381
- return registry;
1382
- }, {
1383
- onCreateRule: [],
1384
- onProcessRule: [],
1385
- onProcessStyle: [],
1386
- onProcessSheet: [],
1387
- onChangeValue: [],
1388
- onUpdate: []
1389
- });
1390
- };
1391
- return PluginsRegistry2;
1392
- })();
1393
- var SheetsRegistry = /* @__PURE__ */ (function() {
1394
- function SheetsRegistry2() {
1395
- this.registry = [];
1396
- }
1397
- var _proto = SheetsRegistry2.prototype;
1398
- _proto.add = function add(sheet) {
1399
- var registry = this.registry;
1400
- var index4 = sheet.options.index;
1401
- if (registry.indexOf(sheet) !== -1) return;
1402
- if (registry.length === 0 || index4 >= this.index) {
1403
- registry.push(sheet);
1404
- return;
1405
- }
1406
- for (var i = 0; i < registry.length; i++) {
1407
- if (registry[i].options.index > index4) {
1408
- registry.splice(i, 0, sheet);
1409
- return;
1410
- }
1411
- }
1412
- };
1413
- _proto.reset = function reset() {
1414
- this.registry = [];
1415
- };
1416
- _proto.remove = function remove(sheet) {
1417
- var index4 = this.registry.indexOf(sheet);
1418
- this.registry.splice(index4, 1);
1419
- };
1420
- _proto.toString = function toString(_temp) {
1421
- var _ref = _temp === void 0 ? {} : _temp, attached = _ref.attached, options = _objectWithoutPropertiesLoose(_ref, ["attached"]);
1422
- var _getWhitespaceSymbols = getWhitespaceSymbols(options), linebreak = _getWhitespaceSymbols.linebreak;
1423
- var css3 = "";
1424
- for (var i = 0; i < this.registry.length; i++) {
1425
- var sheet = this.registry[i];
1426
- if (attached != null && sheet.attached !== attached) {
1427
- continue;
1428
- }
1429
- if (css3) css3 += linebreak;
1430
- css3 += sheet.toString(options);
1431
- }
1432
- return css3;
1433
- };
1434
- _createClass(SheetsRegistry2, [{
1435
- key: "index",
1436
- /**
1437
- * Current highest index number.
1438
- */
1439
- get: function get() {
1440
- return this.registry.length === 0 ? 0 : this.registry[this.registry.length - 1].options.index;
1441
- }
1442
- }]);
1443
- return SheetsRegistry2;
1444
- })();
1445
- var sheets = new SheetsRegistry();
1446
- var globalThis$1 = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" && window.Math === Math ? window : typeof self !== "undefined" && self.Math === Math ? self : Function("return this")();
1447
- var ns = "2f1acc6c3a606b082e5eef5e54414ffb";
1448
- if (globalThis$1[ns] == null) globalThis$1[ns] = 0;
1449
- var moduleId = globalThis$1[ns]++;
1450
- var maxRules = 1e10;
1451
- var createGenerateId = function createGenerateId2(options) {
1452
- if (options === void 0) {
1453
- options = {};
1454
- }
1455
- var ruleCounter = 0;
1456
- var generateId = function generateId2(rule, sheet) {
1457
- ruleCounter += 1;
1458
- if (ruleCounter > maxRules) {
1459
- false ? tiny_warning_esm_default(false, "[JSS] You might have a memory leak. Rule counter is at " + ruleCounter + ".") : void 0;
1460
- }
1461
- var jssId = "";
1462
- var prefix2 = "";
1463
- if (sheet) {
1464
- if (sheet.options.classNamePrefix) {
1465
- prefix2 = sheet.options.classNamePrefix;
1466
- }
1467
- if (sheet.options.jss.id != null) {
1468
- jssId = String(sheet.options.jss.id);
1469
- }
1470
- }
1471
- if (options.minify) {
1472
- return "" + (prefix2 || "c") + moduleId + jssId + ruleCounter;
1473
- }
1474
- return prefix2 + rule.key + "-" + moduleId + (jssId ? "-" + jssId : "") + "-" + ruleCounter;
1475
- };
1476
- return generateId;
1477
- };
1478
- var memoize = function memoize2(fn) {
1479
- var value;
1480
- return function() {
1481
- if (!value) value = fn();
1482
- return value;
1483
- };
1484
- };
1485
- var getPropertyValue = function getPropertyValue2(cssRule, prop) {
1486
- try {
1487
- if (cssRule.attributeStyleMap) {
1488
- return cssRule.attributeStyleMap.get(prop);
1489
- }
1490
- return cssRule.style.getPropertyValue(prop);
1491
- } catch (err) {
1492
- return "";
1493
- }
1494
- };
1495
- var setProperty = function setProperty2(cssRule, prop, value) {
1496
- try {
1497
- var cssValue = value;
1498
- if (Array.isArray(value)) {
1499
- cssValue = toCssValue(value);
1500
- }
1501
- if (cssRule.attributeStyleMap) {
1502
- cssRule.attributeStyleMap.set(prop, cssValue);
1503
- } else {
1504
- var indexOfImportantFlag = cssValue ? cssValue.indexOf("!important") : -1;
1505
- var cssValueWithoutImportantFlag = indexOfImportantFlag > -1 ? cssValue.substr(0, indexOfImportantFlag - 1) : cssValue;
1506
- cssRule.style.setProperty(prop, cssValueWithoutImportantFlag, indexOfImportantFlag > -1 ? "important" : "");
1507
- }
1508
- } catch (err) {
1509
- return false;
1510
- }
1511
- return true;
1512
- };
1513
- var removeProperty = function removeProperty2(cssRule, prop) {
1514
- try {
1515
- if (cssRule.attributeStyleMap) {
1516
- cssRule.attributeStyleMap.delete(prop);
1517
- } else {
1518
- cssRule.style.removeProperty(prop);
1519
- }
1520
- } catch (err) {
1521
- false ? tiny_warning_esm_default(false, '[JSS] DOMException "' + err.message + '" was thrown. Tried to remove property "' + prop + '".') : void 0;
1522
- }
1523
- };
1524
- var setSelector = function setSelector2(cssRule, selectorText) {
1525
- cssRule.selectorText = selectorText;
1526
- return cssRule.selectorText === selectorText;
1527
- };
1528
- var getHead = memoize(function() {
1529
- return document.querySelector("head");
1530
- });
1531
- function findHigherSheet(registry, options) {
1532
- for (var i = 0; i < registry.length; i++) {
1533
- var sheet = registry[i];
1534
- if (sheet.attached && sheet.options.index > options.index && sheet.options.insertionPoint === options.insertionPoint) {
1535
- return sheet;
1536
- }
1537
- }
1538
- return null;
1539
- }
1540
- function findHighestSheet(registry, options) {
1541
- for (var i = registry.length - 1; i >= 0; i--) {
1542
- var sheet = registry[i];
1543
- if (sheet.attached && sheet.options.insertionPoint === options.insertionPoint) {
1544
- return sheet;
1545
- }
1546
- }
1547
- return null;
1548
- }
1549
- function findCommentNode(text) {
1550
- var head = getHead();
1551
- for (var i = 0; i < head.childNodes.length; i++) {
1552
- var node = head.childNodes[i];
1553
- if (node.nodeType === 8 && node.nodeValue.trim() === text) {
1554
- return node;
1555
- }
1556
- }
1557
- return null;
1558
- }
1559
- function findPrevNode(options) {
1560
- var registry = sheets.registry;
1561
- if (registry.length > 0) {
1562
- var sheet = findHigherSheet(registry, options);
1563
- if (sheet && sheet.renderer) {
1564
- return {
1565
- parent: sheet.renderer.element.parentNode,
1566
- node: sheet.renderer.element
1567
- };
1568
- }
1569
- sheet = findHighestSheet(registry, options);
1570
- if (sheet && sheet.renderer) {
1571
- return {
1572
- parent: sheet.renderer.element.parentNode,
1573
- node: sheet.renderer.element.nextSibling
1574
- };
1575
- }
1576
- }
1577
- var insertionPoint = options.insertionPoint;
1578
- if (insertionPoint && typeof insertionPoint === "string") {
1579
- var comment = findCommentNode(insertionPoint);
1580
- if (comment) {
1581
- return {
1582
- parent: comment.parentNode,
1583
- node: comment.nextSibling
1584
- };
1585
- }
1586
- false ? tiny_warning_esm_default(false, '[JSS] Insertion point "' + insertionPoint + '" not found.') : void 0;
1587
- }
1588
- return false;
1589
- }
1590
- function insertStyle(style2, options) {
1591
- var insertionPoint = options.insertionPoint;
1592
- var nextNode = findPrevNode(options);
1593
- if (nextNode !== false && nextNode.parent) {
1594
- nextNode.parent.insertBefore(style2, nextNode.node);
1595
- return;
1596
- }
1597
- if (insertionPoint && typeof insertionPoint.nodeType === "number") {
1598
- var insertionPointElement = insertionPoint;
1599
- var parentNode = insertionPointElement.parentNode;
1600
- if (parentNode) parentNode.insertBefore(style2, insertionPointElement.nextSibling);
1601
- else false ? tiny_warning_esm_default(false, "[JSS] Insertion point is not in the DOM.") : void 0;
1602
- return;
1603
- }
1604
- getHead().appendChild(style2);
1605
- }
1606
- var getNonce = memoize(function() {
1607
- var node = document.querySelector('meta[property="csp-nonce"]');
1608
- return node ? node.getAttribute("content") : null;
1609
- });
1610
- var _insertRule = function insertRule(container, rule, index4) {
1611
- try {
1612
- if ("insertRule" in container) {
1613
- container.insertRule(rule, index4);
1614
- } else if ("appendRule" in container) {
1615
- container.appendRule(rule);
1616
- }
1617
- } catch (err) {
1618
- false ? tiny_warning_esm_default(false, "[JSS] " + err.message) : void 0;
1619
- return false;
1620
- }
1621
- return container.cssRules[index4];
1622
- };
1623
- var getValidRuleInsertionIndex = function getValidRuleInsertionIndex2(container, index4) {
1624
- var maxIndex = container.cssRules.length;
1625
- if (index4 === void 0 || index4 > maxIndex) {
1626
- return maxIndex;
1627
- }
1628
- return index4;
1629
- };
1630
- var createStyle = function createStyle2() {
1631
- var el2 = document.createElement("style");
1632
- el2.textContent = "\n";
1633
- return el2;
1634
- };
1635
- var DomRenderer = /* @__PURE__ */ (function() {
1636
- function DomRenderer2(sheet) {
1637
- this.getPropertyValue = getPropertyValue;
1638
- this.setProperty = setProperty;
1639
- this.removeProperty = removeProperty;
1640
- this.setSelector = setSelector;
1641
- this.hasInsertedRules = false;
1642
- this.cssRules = [];
1643
- if (sheet) sheets.add(sheet);
1644
- this.sheet = sheet;
1645
- var _ref = this.sheet ? this.sheet.options : {}, media = _ref.media, meta = _ref.meta, element = _ref.element;
1646
- this.element = element || createStyle();
1647
- this.element.setAttribute("data-jss", "");
1648
- if (media) this.element.setAttribute("media", media);
1649
- if (meta) this.element.setAttribute("data-meta", meta);
1650
- var nonce = getNonce();
1651
- if (nonce) this.element.setAttribute("nonce", nonce);
1652
- }
1653
- var _proto = DomRenderer2.prototype;
1654
- _proto.attach = function attach() {
1655
- if (this.element.parentNode || !this.sheet) return;
1656
- insertStyle(this.element, this.sheet.options);
1657
- var deployed = Boolean(this.sheet && this.sheet.deployed);
1658
- if (this.hasInsertedRules && deployed) {
1659
- this.hasInsertedRules = false;
1660
- this.deploy();
1661
- }
1662
- };
1663
- _proto.detach = function detach() {
1664
- if (!this.sheet) return;
1665
- var parentNode = this.element.parentNode;
1666
- if (parentNode) parentNode.removeChild(this.element);
1667
- if (this.sheet.options.link) {
1668
- this.cssRules = [];
1669
- this.element.textContent = "\n";
1670
- }
1671
- };
1672
- _proto.deploy = function deploy() {
1673
- var sheet = this.sheet;
1674
- if (!sheet) return;
1675
- if (sheet.options.link) {
1676
- this.insertRules(sheet.rules);
1677
- return;
1678
- }
1679
- this.element.textContent = "\n" + sheet.toString() + "\n";
1680
- };
1681
- _proto.insertRules = function insertRules(rules, nativeParent) {
1682
- for (var i = 0; i < rules.index.length; i++) {
1683
- this.insertRule(rules.index[i], i, nativeParent);
1684
- }
1685
- };
1686
- _proto.insertRule = function insertRule2(rule, index4, nativeParent) {
1687
- if (nativeParent === void 0) {
1688
- nativeParent = this.element.sheet;
1689
- }
1690
- if (rule.rules) {
1691
- var parent = rule;
1692
- var latestNativeParent = nativeParent;
1693
- if (rule.type === "conditional" || rule.type === "keyframes") {
1694
- var _insertionIndex = getValidRuleInsertionIndex(nativeParent, index4);
1695
- latestNativeParent = _insertRule(nativeParent, parent.toString({
1696
- children: false
1697
- }), _insertionIndex);
1698
- if (latestNativeParent === false) {
1699
- return false;
1700
- }
1701
- this.refCssRule(rule, _insertionIndex, latestNativeParent);
1702
- }
1703
- this.insertRules(parent.rules, latestNativeParent);
1704
- return latestNativeParent;
1705
- }
1706
- var ruleStr = rule.toString();
1707
- if (!ruleStr) return false;
1708
- var insertionIndex = getValidRuleInsertionIndex(nativeParent, index4);
1709
- var nativeRule = _insertRule(nativeParent, ruleStr, insertionIndex);
1710
- if (nativeRule === false) {
1711
- return false;
1712
- }
1713
- this.hasInsertedRules = true;
1714
- this.refCssRule(rule, insertionIndex, nativeRule);
1715
- return nativeRule;
1716
- };
1717
- _proto.refCssRule = function refCssRule(rule, index4, cssRule) {
1718
- rule.renderable = cssRule;
1719
- if (rule.options.parent instanceof StyleSheet) {
1720
- this.cssRules.splice(index4, 0, cssRule);
1721
- }
1722
- };
1723
- _proto.deleteRule = function deleteRule(cssRule) {
1724
- var sheet = this.element.sheet;
1725
- var index4 = this.indexOf(cssRule);
1726
- if (index4 === -1) return false;
1727
- sheet.deleteRule(index4);
1728
- this.cssRules.splice(index4, 1);
1729
- return true;
1730
- };
1731
- _proto.indexOf = function indexOf(cssRule) {
1732
- return this.cssRules.indexOf(cssRule);
1733
- };
1734
- _proto.replaceRule = function replaceRule(cssRule, rule) {
1735
- var index4 = this.indexOf(cssRule);
1736
- if (index4 === -1) return false;
1737
- this.element.sheet.deleteRule(index4);
1738
- this.cssRules.splice(index4, 1);
1739
- return this.insertRule(rule, index4);
1740
- };
1741
- _proto.getRules = function getRules() {
1742
- return this.element.sheet.cssRules;
1743
- };
1744
- return DomRenderer2;
1745
- })();
1746
- var instanceCounter = 0;
1747
- var Jss = /* @__PURE__ */ (function() {
1748
- function Jss2(options) {
1749
- this.id = instanceCounter++;
1750
- this.version = "10.10.0";
1751
- this.plugins = new PluginsRegistry();
1752
- this.options = {
1753
- id: {
1754
- minify: false
1755
- },
1756
- createGenerateId,
1757
- Renderer: module_default ? DomRenderer : null,
1758
- plugins: []
1759
- };
1760
- this.generateId = createGenerateId({
1761
- minify: false
1762
- });
1763
- for (var i = 0; i < plugins.length; i++) {
1764
- this.plugins.use(plugins[i], {
1765
- queue: "internal"
1766
- });
1767
- }
1768
- this.setup(options);
1769
- }
1770
- var _proto = Jss2.prototype;
1771
- _proto.setup = function setup(options) {
1772
- if (options === void 0) {
1773
- options = {};
1774
- }
1775
- if (options.createGenerateId) {
1776
- this.options.createGenerateId = options.createGenerateId;
1777
- }
1778
- if (options.id) {
1779
- this.options.id = _extends({}, this.options.id, options.id);
1780
- }
1781
- if (options.createGenerateId || options.id) {
1782
- this.generateId = this.options.createGenerateId(this.options.id);
1783
- }
1784
- if (options.insertionPoint != null) this.options.insertionPoint = options.insertionPoint;
1785
- if ("Renderer" in options) {
1786
- this.options.Renderer = options.Renderer;
1787
- }
1788
- if (options.plugins) this.use.apply(this, options.plugins);
1789
- return this;
1790
- };
1791
- _proto.createStyleSheet = function createStyleSheet3(styles, options) {
1792
- if (options === void 0) {
1793
- options = {};
1794
- }
1795
- var _options = options, index4 = _options.index;
1796
- if (typeof index4 !== "number") {
1797
- index4 = sheets.index === 0 ? 0 : sheets.index + 1;
1798
- }
1799
- var sheet = new StyleSheet(styles, _extends({}, options, {
1800
- jss: this,
1801
- generateId: options.generateId || this.generateId,
1802
- insertionPoint: this.options.insertionPoint,
1803
- Renderer: this.options.Renderer,
1804
- index: index4
1805
- }));
1806
- this.plugins.onProcessSheet(sheet);
1807
- return sheet;
1808
- };
1809
- _proto.removeStyleSheet = function removeStyleSheet(sheet) {
1810
- sheet.detach();
1811
- sheets.remove(sheet);
1812
- return this;
1813
- };
1814
- _proto.createRule = function createRule$1(name, style2, options) {
1815
- if (style2 === void 0) {
1816
- style2 = {};
1817
- }
1818
- if (options === void 0) {
1819
- options = {};
1820
- }
1821
- if (typeof name === "object") {
1822
- return this.createRule(void 0, name, style2);
1823
- }
1824
- var ruleOptions = _extends({}, options, {
1825
- name,
1826
- jss: this,
1827
- Renderer: this.options.Renderer
1828
- });
1829
- if (!ruleOptions.generateId) ruleOptions.generateId = this.generateId;
1830
- if (!ruleOptions.classes) ruleOptions.classes = {};
1831
- if (!ruleOptions.keyframes) ruleOptions.keyframes = {};
1832
- var rule = createRule(name, style2, ruleOptions);
1833
- if (rule) this.plugins.onProcessRule(rule);
1834
- return rule;
1835
- };
1836
- _proto.use = function use() {
1837
- var _this = this;
1838
- for (var _len = arguments.length, plugins3 = new Array(_len), _key = 0; _key < _len; _key++) {
1839
- plugins3[_key] = arguments[_key];
1840
- }
1841
- plugins3.forEach(function(plugin) {
1842
- _this.plugins.use(plugin);
1843
- });
1844
- return this;
1845
- };
1846
- return Jss2;
1847
- })();
1848
- var createJss = function createJss2(options) {
1849
- return new Jss(options);
1850
- };
1851
- var SheetsManager = /* @__PURE__ */ (function() {
1852
- function SheetsManager2() {
1853
- this.length = 0;
1854
- this.sheets = /* @__PURE__ */ new WeakMap();
1855
- }
1856
- var _proto = SheetsManager2.prototype;
1857
- _proto.get = function get(key2) {
1858
- var entry = this.sheets.get(key2);
1859
- return entry && entry.sheet;
1860
- };
1861
- _proto.add = function add(key2, sheet) {
1862
- if (this.sheets.has(key2)) return;
1863
- this.length++;
1864
- this.sheets.set(key2, {
1865
- sheet,
1866
- refs: 0
1867
- });
1868
- };
1869
- _proto.manage = function manage(key2) {
1870
- var entry = this.sheets.get(key2);
1871
- if (entry) {
1872
- if (entry.refs === 0) {
1873
- entry.sheet.attach();
1874
- }
1875
- entry.refs++;
1876
- return entry.sheet;
1877
- }
1878
- tiny_warning_esm_default(false, "[JSS] SheetsManager: can't find sheet to manage");
1879
- return void 0;
1880
- };
1881
- _proto.unmanage = function unmanage(key2) {
1882
- var entry = this.sheets.get(key2);
1883
- if (entry) {
1884
- if (entry.refs > 0) {
1885
- entry.refs--;
1886
- if (entry.refs === 0) entry.sheet.detach();
1887
- }
1888
- } else {
1889
- tiny_warning_esm_default(false, "SheetsManager: can't find sheet to unmanage");
1890
- }
1891
- };
1892
- _createClass(SheetsManager2, [{
1893
- key: "size",
1894
- get: function get() {
1895
- return this.length;
1896
- }
1897
- }]);
1898
- return SheetsManager2;
1899
- })();
1900
- var hasCSSTOMSupport = typeof CSS === "object" && CSS != null && "number" in CSS;
1901
- function getDynamicStyles(styles) {
1902
- var to = null;
1903
- for (var key2 in styles) {
1904
- var value = styles[key2];
1905
- var type = typeof value;
1906
- if (type === "function") {
1907
- if (!to) to = {};
1908
- to[key2] = value;
1909
- } else if (type === "object" && value !== null && !Array.isArray(value)) {
1910
- var extracted = getDynamicStyles(value);
1911
- if (extracted) {
1912
- if (!to) to = {};
1913
- to[key2] = extracted;
1914
- }
1915
- }
1916
- }
1917
- return to;
1918
- }
1919
- var index = createJss();
1920
-
1921
- // ../../node_modules/.pnpm/jss-plugin-rule-value-function@10.10.0/node_modules/jss-plugin-rule-value-function/dist/jss-plugin-rule-value-function.esm.js
1922
- var now = Date.now();
1923
- var fnValuesNs = "fnValues" + now;
1924
- var fnRuleNs = "fnStyle" + ++now;
1925
- var functionPlugin = function functionPlugin2() {
1926
- return {
1927
- onCreateRule: function onCreateRule8(name, decl, options) {
1928
- if (typeof decl !== "function") return null;
1929
- var rule = createRule(name, {}, options);
1930
- rule[fnRuleNs] = decl;
1931
- return rule;
1932
- },
1933
- onProcessStyle: function onProcessStyle2(style2, rule) {
1934
- if (fnValuesNs in rule || fnRuleNs in rule) return style2;
1935
- var fnValues = {};
1936
- for (var prop in style2) {
1937
- var value = style2[prop];
1938
- if (typeof value !== "function") continue;
1939
- delete style2[prop];
1940
- fnValues[prop] = value;
1941
- }
1942
- rule[fnValuesNs] = fnValues;
1943
- return style2;
1944
- },
1945
- onUpdate: function onUpdate(data, rule, sheet, options) {
1946
- var styleRule = rule;
1947
- var fnRule = styleRule[fnRuleNs];
1948
- if (fnRule) {
1949
- styleRule.style = fnRule(data) || {};
1950
- if (false) {
1951
- for (var prop in styleRule.style) {
1952
- if (typeof styleRule.style[prop] === "function") {
1953
- false ? tiny_warning_esm_default(false, "[JSS] Function values inside function rules are not supported.") : void 0;
1954
- break;
1955
- }
1956
- }
1957
- }
1958
- }
1959
- var fnValues = styleRule[fnValuesNs];
1960
- if (fnValues) {
1961
- for (var _prop in fnValues) {
1962
- styleRule.prop(_prop, fnValues[_prop](data), options);
1963
- }
1964
- }
1965
- }
1966
- };
1967
- };
1968
- var jss_plugin_rule_value_function_esm_default = functionPlugin;
1969
-
1970
- // ../../node_modules/.pnpm/symbol-observable@1.2.0/node_modules/symbol-observable/es/ponyfill.js
1971
- function symbolObservablePonyfill(root2) {
1972
- var result2;
1973
- var Symbol2 = root2.Symbol;
1974
- if (typeof Symbol2 === "function") {
1975
- if (Symbol2.observable) {
1976
- result2 = Symbol2.observable;
1977
- } else {
1978
- result2 = Symbol2("observable");
1979
- Symbol2.observable = result2;
1980
- }
1981
- } else {
1982
- result2 = "@@observable";
1983
- }
1984
- return result2;
1985
- }
1986
-
1987
- // ../../node_modules/.pnpm/symbol-observable@1.2.0/node_modules/symbol-observable/es/index.js
1988
- var root;
1989
- if (typeof self !== "undefined") {
1990
- root = self;
1991
- } else if (typeof window !== "undefined") {
1992
- root = window;
1993
- } else if (typeof global !== "undefined") {
1994
- root = global;
1995
- } else if (typeof module !== "undefined") {
1996
- root = module;
1997
- } else {
1998
- root = Function("return this")();
1999
- }
2000
- var result = symbolObservablePonyfill(root);
2001
- var es_default = result;
2002
-
2003
- // ../../node_modules/.pnpm/jss-plugin-rule-value-observable@10.10.0/node_modules/jss-plugin-rule-value-observable/dist/jss-plugin-rule-value-observable.esm.js
2004
- var isObservable = function isObservable2(value) {
2005
- return value && value[es_default] && value === value[es_default]();
2006
- };
2007
- var observablePlugin = function observablePlugin2(updateOptions) {
2008
- return {
2009
- onCreateRule: function onCreateRule8(name, decl, options) {
2010
- if (!isObservable(decl)) return null;
2011
- var style$ = decl;
2012
- var rule = createRule(name, {}, options);
2013
- style$.subscribe(function(style2) {
2014
- for (var prop in style2) {
2015
- rule.prop(prop, style2[prop], updateOptions);
2016
- }
2017
- });
2018
- return rule;
2019
- },
2020
- onProcessRule: function onProcessRule3(rule) {
2021
- if (rule && rule.type !== "style") return;
2022
- var styleRule = rule;
2023
- var style2 = styleRule.style;
2024
- var _loop = function _loop2(prop2) {
2025
- var value = style2[prop2];
2026
- if (!isObservable(value)) return "continue";
2027
- delete style2[prop2];
2028
- value.subscribe({
2029
- next: function next(nextValue) {
2030
- styleRule.prop(prop2, nextValue, updateOptions);
2031
- }
2032
- });
2033
- };
2034
- for (var prop in style2) {
2035
- var _ret = _loop(prop);
2036
- if (_ret === "continue") continue;
2037
- }
2038
- }
2039
- };
2040
- };
2041
- var jss_plugin_rule_value_observable_esm_default = observablePlugin;
2042
-
2043
- // ../../node_modules/.pnpm/jss-plugin-template@10.10.0/node_modules/jss-plugin-template/dist/jss-plugin-template.esm.js
2044
- var semiWithNl = /;\n/;
2045
- var parse = function parse2(cssText) {
2046
- var style2 = {};
2047
- var split = cssText.split(semiWithNl);
2048
- for (var i = 0; i < split.length; i++) {
2049
- var decl = (split[i] || "").trim();
2050
- if (!decl) continue;
2051
- var colonIndex = decl.indexOf(":");
2052
- if (colonIndex === -1) {
2053
- false ? tiny_warning_esm_default(false, '[JSS] Malformed CSS string "' + decl + '"') : void 0;
2054
- continue;
2055
- }
2056
- var prop = decl.substr(0, colonIndex).trim();
2057
- var value = decl.substr(colonIndex + 1).trim();
2058
- style2[prop] = value;
2059
- }
2060
- return style2;
2061
- };
2062
- var onProcessRule = function onProcessRule2(rule) {
2063
- if (typeof rule.style === "string") {
2064
- rule.style = parse(rule.style);
2065
- }
2066
- };
2067
- function templatePlugin() {
2068
- return {
2069
- onProcessRule
2070
- };
2071
- }
2072
- var jss_plugin_template_esm_default = templatePlugin;
2073
-
2074
- // ../../node_modules/.pnpm/jss-plugin-global@10.10.0/node_modules/jss-plugin-global/dist/jss-plugin-global.esm.js
2075
- var at = "@global";
2076
- var atPrefix = "@global ";
2077
- var GlobalContainerRule = /* @__PURE__ */ (function() {
2078
- function GlobalContainerRule2(key2, styles, options) {
2079
- this.type = "global";
2080
- this.at = at;
2081
- this.isProcessed = false;
2082
- this.key = key2;
2083
- this.options = options;
2084
- this.rules = new RuleList(_extends({}, options, {
2085
- parent: this
2086
- }));
2087
- for (var selector in styles) {
2088
- this.rules.add(selector, styles[selector]);
2089
- }
2090
- this.rules.process();
2091
- }
2092
- var _proto = GlobalContainerRule2.prototype;
2093
- _proto.getRule = function getRule(name) {
2094
- return this.rules.get(name);
2095
- };
2096
- _proto.addRule = function addRule(name, style2, options) {
2097
- var rule = this.rules.add(name, style2, options);
2098
- if (rule) this.options.jss.plugins.onProcessRule(rule);
2099
- return rule;
2100
- };
2101
- _proto.replaceRule = function replaceRule(name, style2, options) {
2102
- var newRule = this.rules.replace(name, style2, options);
2103
- if (newRule) this.options.jss.plugins.onProcessRule(newRule);
2104
- return newRule;
2105
- };
2106
- _proto.indexOf = function indexOf(rule) {
2107
- return this.rules.indexOf(rule);
2108
- };
2109
- _proto.toString = function toString(options) {
2110
- return this.rules.toString(options);
2111
- };
2112
- return GlobalContainerRule2;
2113
- })();
2114
- var GlobalPrefixedRule = /* @__PURE__ */ (function() {
2115
- function GlobalPrefixedRule2(key2, style2, options) {
2116
- this.type = "global";
2117
- this.at = at;
2118
- this.isProcessed = false;
2119
- this.key = key2;
2120
- this.options = options;
2121
- var selector = key2.substr(atPrefix.length);
2122
- this.rule = options.jss.createRule(selector, style2, _extends({}, options, {
2123
- parent: this
2124
- }));
2125
- }
2126
- var _proto2 = GlobalPrefixedRule2.prototype;
2127
- _proto2.toString = function toString(options) {
2128
- return this.rule ? this.rule.toString(options) : "";
2129
- };
2130
- return GlobalPrefixedRule2;
2131
- })();
2132
- var separatorRegExp = /\s*,\s*/g;
2133
- function addScope(selector, scope) {
2134
- var parts = selector.split(separatorRegExp);
2135
- var scoped = "";
2136
- for (var i = 0; i < parts.length; i++) {
2137
- scoped += scope + " " + parts[i].trim();
2138
- if (parts[i + 1]) scoped += ", ";
2139
- }
2140
- return scoped;
2141
- }
2142
- function handleNestedGlobalContainerRule(rule, sheet) {
2143
- var options = rule.options, style2 = rule.style;
2144
- var rules = style2 ? style2[at] : null;
2145
- if (!rules) return;
2146
- for (var name in rules) {
2147
- sheet.addRule(name, rules[name], _extends({}, options, {
2148
- selector: addScope(name, rule.selector)
2149
- }));
2150
- }
2151
- delete style2[at];
2152
- }
2153
- function handlePrefixedGlobalRule(rule, sheet) {
2154
- var options = rule.options, style2 = rule.style;
2155
- for (var prop in style2) {
2156
- if (prop[0] !== "@" || prop.substr(0, at.length) !== at) continue;
2157
- var selector = addScope(prop.substr(at.length), rule.selector);
2158
- sheet.addRule(selector, style2[prop], _extends({}, options, {
2159
- selector
2160
- }));
2161
- delete style2[prop];
2162
- }
2163
- }
2164
- function jssGlobal() {
2165
- function onCreateRule8(name, styles, options) {
2166
- if (!name) return null;
2167
- if (name === at) {
2168
- return new GlobalContainerRule(name, styles, options);
2169
- }
2170
- if (name[0] === "@" && name.substr(0, atPrefix.length) === atPrefix) {
2171
- return new GlobalPrefixedRule(name, styles, options);
2172
- }
2173
- var parent = options.parent;
2174
- if (parent) {
2175
- if (parent.type === "global" || parent.options.parent && parent.options.parent.type === "global") {
2176
- options.scoped = false;
2177
- }
2178
- }
2179
- if (!options.selector && options.scoped === false) {
2180
- options.selector = name;
2181
- }
2182
- return null;
2183
- }
2184
- function onProcessRule3(rule, sheet) {
2185
- if (rule.type !== "style" || !sheet) return;
2186
- handleNestedGlobalContainerRule(rule, sheet);
2187
- handlePrefixedGlobalRule(rule, sheet);
2188
- }
2189
- return {
2190
- onCreateRule: onCreateRule8,
2191
- onProcessRule: onProcessRule3
2192
- };
2193
- }
2194
- var jss_plugin_global_esm_default = jssGlobal;
2195
-
2196
- // ../../node_modules/.pnpm/jss-plugin-extend@10.10.0/node_modules/jss-plugin-extend/dist/jss-plugin-extend.esm.js
2197
- var isObject = function isObject2(obj) {
2198
- return obj && typeof obj === "object" && !Array.isArray(obj);
2199
- };
2200
- var valueNs = "extendCurrValue" + Date.now();
2201
- function mergeExtend(style2, rule, sheet, newStyle) {
2202
- var extendType = typeof style2.extend;
2203
- if (extendType === "string") {
2204
- if (!sheet) return;
2205
- var refRule = sheet.getRule(style2.extend);
2206
- if (!refRule) return;
2207
- if (refRule === rule) {
2208
- false ? tiny_warning_esm_default(false, "[JSS] A rule tries to extend itself \n" + rule.toString()) : void 0;
2209
- return;
2210
- }
2211
- var parent = refRule.options.parent;
2212
- if (parent) {
2213
- var originalStyle = parent.rules.raw[style2.extend];
2214
- extend(originalStyle, rule, sheet, newStyle);
2215
- }
2216
- return;
2217
- }
2218
- if (Array.isArray(style2.extend)) {
2219
- for (var index4 = 0; index4 < style2.extend.length; index4++) {
2220
- var singleExtend = style2.extend[index4];
2221
- var singleStyle = typeof singleExtend === "string" ? _extends({}, style2, {
2222
- extend: singleExtend
2223
- }) : style2.extend[index4];
2224
- extend(singleStyle, rule, sheet, newStyle);
2225
- }
2226
- return;
2227
- }
2228
- for (var prop in style2.extend) {
2229
- if (prop === "extend") {
2230
- extend(style2.extend.extend, rule, sheet, newStyle);
2231
- continue;
2232
- }
2233
- if (isObject(style2.extend[prop])) {
2234
- if (!(prop in newStyle)) newStyle[prop] = {};
2235
- extend(style2.extend[prop], rule, sheet, newStyle[prop]);
2236
- continue;
2237
- }
2238
- newStyle[prop] = style2.extend[prop];
2239
- }
2240
- }
2241
- function mergeRest(style2, rule, sheet, newStyle) {
2242
- for (var prop in style2) {
2243
- if (prop === "extend") continue;
2244
- if (isObject(newStyle[prop]) && isObject(style2[prop])) {
2245
- extend(style2[prop], rule, sheet, newStyle[prop]);
2246
- continue;
2247
- }
2248
- if (isObject(style2[prop])) {
2249
- newStyle[prop] = extend(style2[prop], rule, sheet);
2250
- continue;
2251
- }
2252
- newStyle[prop] = style2[prop];
2253
- }
2254
- }
2255
- function extend(style2, rule, sheet, newStyle) {
2256
- if (newStyle === void 0) {
2257
- newStyle = {};
2258
- }
2259
- mergeExtend(style2, rule, sheet, newStyle);
2260
- mergeRest(style2, rule, sheet, newStyle);
2261
- return newStyle;
2262
- }
2263
- function jssExtend() {
2264
- function onProcessStyle2(style2, rule, sheet) {
2265
- if ("extend" in style2) return extend(style2, rule, sheet);
2266
- return style2;
2267
- }
2268
- function onChangeValue2(value, prop, rule) {
2269
- if (prop !== "extend") return value;
2270
- if (value == null || value === false) {
2271
- for (var key2 in rule[valueNs]) {
2272
- rule.prop(key2, null);
2273
- }
2274
- rule[valueNs] = null;
2275
- return null;
2276
- }
2277
- if (typeof value === "object") {
2278
- for (var _key in value) {
2279
- rule.prop(_key, value[_key]);
2280
- }
2281
- rule[valueNs] = value;
2282
- }
2283
- return null;
2284
- }
2285
- return {
2286
- onProcessStyle: onProcessStyle2,
2287
- onChangeValue: onChangeValue2
2288
- };
2289
- }
2290
- var jss_plugin_extend_esm_default = jssExtend;
2291
-
2292
- // ../../node_modules/.pnpm/jss-plugin-nested@10.10.0/node_modules/jss-plugin-nested/dist/jss-plugin-nested.esm.js
2293
- var separatorRegExp2 = /\s*,\s*/g;
2294
- var parentRegExp = /&/g;
2295
- var refRegExp2 = /\$([\w-]+)/g;
2296
- function jssNested() {
2297
- function getReplaceRef(container, sheet) {
2298
- return function(match, key2) {
2299
- var rule = container.getRule(key2) || sheet && sheet.getRule(key2);
2300
- if (rule) {
2301
- return rule.selector;
2302
- }
2303
- false ? tiny_warning_esm_default(false, '[JSS] Could not find the referenced rule "' + key2 + '" in "' + (container.options.meta || container.toString()) + '".') : void 0;
2304
- return key2;
2305
- };
2306
- }
2307
- function replaceParentRefs(nestedProp, parentProp) {
2308
- var parentSelectors = parentProp.split(separatorRegExp2);
2309
- var nestedSelectors = nestedProp.split(separatorRegExp2);
2310
- var result2 = "";
2311
- for (var i = 0; i < parentSelectors.length; i++) {
2312
- var parent = parentSelectors[i];
2313
- for (var j = 0; j < nestedSelectors.length; j++) {
2314
- var nested = nestedSelectors[j];
2315
- if (result2) result2 += ", ";
2316
- result2 += nested.indexOf("&") !== -1 ? nested.replace(parentRegExp, parent) : parent + " " + nested;
2317
- }
2318
- }
2319
- return result2;
2320
- }
2321
- function getOptions(rule, container, prevOptions) {
2322
- if (prevOptions) return _extends({}, prevOptions, {
2323
- index: prevOptions.index + 1
2324
- });
2325
- var nestingLevel = rule.options.nestingLevel;
2326
- nestingLevel = nestingLevel === void 0 ? 1 : nestingLevel + 1;
2327
- var options = _extends({}, rule.options, {
2328
- nestingLevel,
2329
- index: container.indexOf(rule) + 1
2330
- // We don't need the parent name to be set options for chlid.
2331
- });
2332
- delete options.name;
2333
- return options;
2334
- }
2335
- function onProcessStyle2(style2, rule, sheet) {
2336
- if (rule.type !== "style") return style2;
2337
- var styleRule = rule;
2338
- var container = styleRule.options.parent;
2339
- var options;
2340
- var replaceRef3;
2341
- for (var prop in style2) {
2342
- var isNested = prop.indexOf("&") !== -1;
2343
- var isNestedConditional = prop[0] === "@";
2344
- if (!isNested && !isNestedConditional) continue;
2345
- options = getOptions(styleRule, container, options);
2346
- if (isNested) {
2347
- var selector = replaceParentRefs(prop, styleRule.selector);
2348
- if (!replaceRef3) replaceRef3 = getReplaceRef(container, sheet);
2349
- selector = selector.replace(refRegExp2, replaceRef3);
2350
- var name = styleRule.key + "-" + prop;
2351
- if ("replaceRule" in container) {
2352
- container.replaceRule(name, style2[prop], _extends({}, options, {
2353
- selector
2354
- }));
2355
- } else {
2356
- container.addRule(name, style2[prop], _extends({}, options, {
2357
- selector
2358
- }));
2359
- }
2360
- } else if (isNestedConditional) {
2361
- container.addRule(prop, {}, options).addRule(styleRule.key, style2[prop], {
2362
- selector: styleRule.selector
2363
- });
2364
- }
2365
- delete style2[prop];
2366
- }
2367
- return style2;
2368
- }
2369
- return {
2370
- onProcessStyle: onProcessStyle2
2371
- };
2372
- }
2373
- var jss_plugin_nested_esm_default = jssNested;
2374
-
2375
- // ../../node_modules/.pnpm/jss-plugin-compose@10.10.0/node_modules/jss-plugin-compose/dist/jss-plugin-compose.esm.js
2376
- function registerClass(rule, className) {
2377
- if (!className) return true;
2378
- if (Array.isArray(className)) {
2379
- for (var index4 = 0; index4 < className.length; index4++) {
2380
- var isSetted = registerClass(rule, className[index4]);
2381
- if (!isSetted) return false;
2382
- }
2383
- return true;
2384
- }
2385
- if (className.indexOf(" ") > -1) {
2386
- return registerClass(rule, className.split(" "));
2387
- }
2388
- var parent = rule.options.parent;
2389
- if (className[0] === "$") {
2390
- var refRule = parent.getRule(className.substr(1));
2391
- if (!refRule) {
2392
- false ? tiny_warning_esm_default(false, "[JSS] Referenced rule is not defined. \n" + rule.toString()) : void 0;
2393
- return false;
2394
- }
2395
- if (refRule === rule) {
2396
- false ? tiny_warning_esm_default(false, "[JSS] Cyclic composition detected. \n" + rule.toString()) : void 0;
2397
- return false;
2398
- }
2399
- parent.classes[rule.key] += " " + parent.classes[refRule.key];
2400
- return true;
2401
- }
2402
- parent.classes[rule.key] += " " + className;
2403
- return true;
2404
- }
2405
- function jssCompose() {
2406
- function onProcessStyle2(style2, rule) {
2407
- if (!("composes" in style2)) return style2;
2408
- registerClass(rule, style2.composes);
2409
- delete style2.composes;
2410
- return style2;
2411
- }
2412
- return {
2413
- onProcessStyle: onProcessStyle2
2414
- };
2415
- }
2416
- var jss_plugin_compose_esm_default = jssCompose;
2417
-
2418
- // ../../node_modules/.pnpm/hyphenate-style-name@1.1.0/node_modules/hyphenate-style-name/index.js
2419
- var uppercasePattern = /[A-Z]/g;
2420
- var msPattern = /^ms-/;
2421
- var cache = {};
2422
- function toHyphenLower(match) {
2423
- return "-" + match.toLowerCase();
2424
- }
2425
- function hyphenateStyleName(name) {
2426
- if (cache.hasOwnProperty(name)) {
2427
- return cache[name];
2428
- }
2429
- var hName = name.replace(uppercasePattern, toHyphenLower);
2430
- return cache[name] = msPattern.test(hName) ? "-" + hName : hName;
2431
- }
2432
- var hyphenate_style_name_default = hyphenateStyleName;
2433
-
2434
- // ../../node_modules/.pnpm/jss-plugin-camel-case@10.10.0/node_modules/jss-plugin-camel-case/dist/jss-plugin-camel-case.esm.js
2435
- function convertCase(style2) {
2436
- var converted = {};
2437
- for (var prop in style2) {
2438
- var key2 = prop.indexOf("--") === 0 ? prop : hyphenate_style_name_default(prop);
2439
- converted[key2] = style2[prop];
2440
- }
2441
- if (style2.fallbacks) {
2442
- if (Array.isArray(style2.fallbacks)) converted.fallbacks = style2.fallbacks.map(convertCase);
2443
- else converted.fallbacks = convertCase(style2.fallbacks);
2444
- }
2445
- return converted;
2446
- }
2447
- function camelCase() {
2448
- function onProcessStyle2(style2) {
2449
- if (Array.isArray(style2)) {
2450
- for (var index4 = 0; index4 < style2.length; index4++) {
2451
- style2[index4] = convertCase(style2[index4]);
2452
- }
2453
- return style2;
2454
- }
2455
- return convertCase(style2);
2456
- }
2457
- function onChangeValue2(value, prop, rule) {
2458
- if (prop.indexOf("--") === 0) {
2459
- return value;
2460
- }
2461
- var hyphenatedProp = hyphenate_style_name_default(prop);
2462
- if (prop === hyphenatedProp) return value;
2463
- rule.prop(hyphenatedProp, value);
2464
- return null;
2465
- }
2466
- return {
2467
- onProcessStyle: onProcessStyle2,
2468
- onChangeValue: onChangeValue2
2469
- };
2470
- }
2471
- var jss_plugin_camel_case_esm_default = camelCase;
2472
-
2473
- // ../../node_modules/.pnpm/jss-plugin-default-unit@10.10.0/node_modules/jss-plugin-default-unit/dist/jss-plugin-default-unit.esm.js
2474
- var px = hasCSSTOMSupport && CSS ? CSS.px : "px";
2475
- var ms = hasCSSTOMSupport && CSS ? CSS.ms : "ms";
2476
- var percent = hasCSSTOMSupport && CSS ? CSS.percent : "%";
2477
- var defaultUnits = {
2478
- // Animation properties
2479
- "animation-delay": ms,
2480
- "animation-duration": ms,
2481
- // Background properties
2482
- "background-position": px,
2483
- "background-position-x": px,
2484
- "background-position-y": px,
2485
- "background-size": px,
2486
- // Border Properties
2487
- border: px,
2488
- "border-bottom": px,
2489
- "border-bottom-left-radius": px,
2490
- "border-bottom-right-radius": px,
2491
- "border-bottom-width": px,
2492
- "border-left": px,
2493
- "border-left-width": px,
2494
- "border-radius": px,
2495
- "border-right": px,
2496
- "border-right-width": px,
2497
- "border-top": px,
2498
- "border-top-left-radius": px,
2499
- "border-top-right-radius": px,
2500
- "border-top-width": px,
2501
- "border-width": px,
2502
- "border-block": px,
2503
- "border-block-end": px,
2504
- "border-block-end-width": px,
2505
- "border-block-start": px,
2506
- "border-block-start-width": px,
2507
- "border-block-width": px,
2508
- "border-inline": px,
2509
- "border-inline-end": px,
2510
- "border-inline-end-width": px,
2511
- "border-inline-start": px,
2512
- "border-inline-start-width": px,
2513
- "border-inline-width": px,
2514
- "border-start-start-radius": px,
2515
- "border-start-end-radius": px,
2516
- "border-end-start-radius": px,
2517
- "border-end-end-radius": px,
2518
- // Margin properties
2519
- margin: px,
2520
- "margin-bottom": px,
2521
- "margin-left": px,
2522
- "margin-right": px,
2523
- "margin-top": px,
2524
- "margin-block": px,
2525
- "margin-block-end": px,
2526
- "margin-block-start": px,
2527
- "margin-inline": px,
2528
- "margin-inline-end": px,
2529
- "margin-inline-start": px,
2530
- // Padding properties
2531
- padding: px,
2532
- "padding-bottom": px,
2533
- "padding-left": px,
2534
- "padding-right": px,
2535
- "padding-top": px,
2536
- "padding-block": px,
2537
- "padding-block-end": px,
2538
- "padding-block-start": px,
2539
- "padding-inline": px,
2540
- "padding-inline-end": px,
2541
- "padding-inline-start": px,
2542
- // Mask properties
2543
- "mask-position-x": px,
2544
- "mask-position-y": px,
2545
- "mask-size": px,
2546
- // Width and height properties
2547
- height: px,
2548
- width: px,
2549
- "min-height": px,
2550
- "max-height": px,
2551
- "min-width": px,
2552
- "max-width": px,
2553
- // Position properties
2554
- bottom: px,
2555
- left: px,
2556
- top: px,
2557
- right: px,
2558
- inset: px,
2559
- "inset-block": px,
2560
- "inset-block-end": px,
2561
- "inset-block-start": px,
2562
- "inset-inline": px,
2563
- "inset-inline-end": px,
2564
- "inset-inline-start": px,
2565
- // Shadow properties
2566
- "box-shadow": px,
2567
- "text-shadow": px,
2568
- // Column properties
2569
- "column-gap": px,
2570
- "column-rule": px,
2571
- "column-rule-width": px,
2572
- "column-width": px,
2573
- // Font and text properties
2574
- "font-size": px,
2575
- "font-size-delta": px,
2576
- "letter-spacing": px,
2577
- "text-decoration-thickness": px,
2578
- "text-indent": px,
2579
- "text-stroke": px,
2580
- "text-stroke-width": px,
2581
- "word-spacing": px,
2582
- // Motion properties
2583
- motion: px,
2584
- "motion-offset": px,
2585
- // Outline properties
2586
- outline: px,
2587
- "outline-offset": px,
2588
- "outline-width": px,
2589
- // Perspective properties
2590
- perspective: px,
2591
- "perspective-origin-x": percent,
2592
- "perspective-origin-y": percent,
2593
- // Transform properties
2594
- "transform-origin": percent,
2595
- "transform-origin-x": percent,
2596
- "transform-origin-y": percent,
2597
- "transform-origin-z": percent,
2598
- // Transition properties
2599
- "transition-delay": ms,
2600
- "transition-duration": ms,
2601
- // Alignment properties
2602
- "vertical-align": px,
2603
- "flex-basis": px,
2604
- // Some random properties
2605
- "shape-margin": px,
2606
- size: px,
2607
- gap: px,
2608
- // Grid properties
2609
- grid: px,
2610
- "grid-gap": px,
2611
- "row-gap": px,
2612
- "grid-row-gap": px,
2613
- "grid-column-gap": px,
2614
- "grid-template-rows": px,
2615
- "grid-template-columns": px,
2616
- "grid-auto-rows": px,
2617
- "grid-auto-columns": px,
2618
- // Not existing properties.
2619
- // Used to avoid issues with jss-plugin-expand integration.
2620
- "box-shadow-x": px,
2621
- "box-shadow-y": px,
2622
- "box-shadow-blur": px,
2623
- "box-shadow-spread": px,
2624
- "font-line-height": px,
2625
- "text-shadow-x": px,
2626
- "text-shadow-y": px,
2627
- "text-shadow-blur": px
2628
- };
2629
- function addCamelCasedVersion(obj) {
2630
- var regExp2 = /(-[a-z])/g;
2631
- var replace = function replace2(str) {
2632
- return str[1].toUpperCase();
2633
- };
2634
- var newObj = {};
2635
- for (var key2 in obj) {
2636
- newObj[key2] = obj[key2];
2637
- newObj[key2.replace(regExp2, replace)] = obj[key2];
2638
- }
2639
- return newObj;
2640
- }
2641
- var units = addCamelCasedVersion(defaultUnits);
2642
- function iterate(prop, value, options) {
2643
- if (value == null) return value;
2644
- if (Array.isArray(value)) {
2645
- for (var i = 0; i < value.length; i++) {
2646
- value[i] = iterate(prop, value[i], options);
2647
- }
2648
- } else if (typeof value === "object") {
2649
- if (prop === "fallbacks") {
2650
- for (var innerProp in value) {
2651
- value[innerProp] = iterate(innerProp, value[innerProp], options);
2652
- }
2653
- } else {
2654
- for (var _innerProp in value) {
2655
- value[_innerProp] = iterate(prop + "-" + _innerProp, value[_innerProp], options);
2656
- }
2657
- }
2658
- } else if (typeof value === "number" && isNaN(value) === false) {
2659
- var unit = options[prop] || units[prop];
2660
- if (unit && !(value === 0 && unit === px)) {
2661
- return typeof unit === "function" ? unit(value).toString() : "" + value + unit;
2662
- }
2663
- return value.toString();
2664
- }
2665
- return value;
2666
- }
2667
- function defaultUnit(options) {
2668
- if (options === void 0) {
2669
- options = {};
2670
- }
2671
- var camelCasedOptions = addCamelCasedVersion(options);
2672
- function onProcessStyle2(style2, rule) {
2673
- if (rule.type !== "style") return style2;
2674
- for (var prop in style2) {
2675
- style2[prop] = iterate(prop, style2[prop], camelCasedOptions);
2676
- }
2677
- return style2;
2678
- }
2679
- function onChangeValue2(value, prop) {
2680
- return iterate(prop, value, camelCasedOptions);
2681
- }
2682
- return {
2683
- onProcessStyle: onProcessStyle2,
2684
- onChangeValue: onChangeValue2
2685
- };
2686
- }
2687
- var jss_plugin_default_unit_esm_default = defaultUnit;
2688
-
2689
- // ../../node_modules/.pnpm/jss-plugin-expand@10.10.0/node_modules/jss-plugin-expand/dist/jss-plugin-expand.esm.js
2690
- var propArray = {
2691
- "background-size": true,
2692
- "background-position": true,
2693
- border: true,
2694
- "border-bottom": true,
2695
- "border-left": true,
2696
- "border-top": true,
2697
- "border-right": true,
2698
- "border-radius": true,
2699
- "border-image": true,
2700
- "border-width": true,
2701
- "border-style": true,
2702
- "border-color": true,
2703
- "box-shadow": true,
2704
- flex: true,
2705
- margin: true,
2706
- padding: true,
2707
- outline: true,
2708
- "transform-origin": true,
2709
- transform: true,
2710
- transition: true
2711
- /**
2712
- * A scheme for converting arrays to regular styles inside of objects.
2713
- * For e.g.: "{position: [0, 0]}" => "background-position: 0 0;".
2714
- */
2715
- };
2716
- var propArrayInObj = {
2717
- position: true,
2718
- // background-position
2719
- size: true
2720
- // background-size
2721
- /**
2722
- * A scheme for parsing and building correct styles from passed objects.
2723
- */
2724
- };
2725
- var propObj = {
2726
- padding: {
2727
- top: 0,
2728
- right: 0,
2729
- bottom: 0,
2730
- left: 0
2731
- },
2732
- margin: {
2733
- top: 0,
2734
- right: 0,
2735
- bottom: 0,
2736
- left: 0
2737
- },
2738
- background: {
2739
- attachment: null,
2740
- color: null,
2741
- image: null,
2742
- position: null,
2743
- repeat: null
2744
- },
2745
- border: {
2746
- width: null,
2747
- style: null,
2748
- color: null
2749
- },
2750
- "border-top": {
2751
- width: null,
2752
- style: null,
2753
- color: null
2754
- },
2755
- "border-right": {
2756
- width: null,
2757
- style: null,
2758
- color: null
2759
- },
2760
- "border-bottom": {
2761
- width: null,
2762
- style: null,
2763
- color: null
2764
- },
2765
- "border-left": {
2766
- width: null,
2767
- style: null,
2768
- color: null
2769
- },
2770
- outline: {
2771
- width: null,
2772
- style: null,
2773
- color: null
2774
- },
2775
- "list-style": {
2776
- type: null,
2777
- position: null,
2778
- image: null
2779
- },
2780
- transition: {
2781
- property: null,
2782
- duration: null,
2783
- "timing-function": null,
2784
- timingFunction: null,
2785
- // Needed for avoiding comilation issues with jss-plugin-camel-case
2786
- delay: null
2787
- },
2788
- animation: {
2789
- name: null,
2790
- duration: null,
2791
- "timing-function": null,
2792
- timingFunction: null,
2793
- // Needed to avoid compilation issues with jss-plugin-camel-case
2794
- delay: null,
2795
- "iteration-count": null,
2796
- iterationCount: null,
2797
- // Needed to avoid compilation issues with jss-plugin-camel-case
2798
- direction: null,
2799
- "fill-mode": null,
2800
- fillMode: null,
2801
- // Needed to avoid compilation issues with jss-plugin-camel-case
2802
- "play-state": null,
2803
- playState: null
2804
- // Needed to avoid compilation issues with jss-plugin-camel-case
2805
- },
2806
- "box-shadow": {
2807
- x: 0,
2808
- y: 0,
2809
- blur: 0,
2810
- spread: 0,
2811
- color: null,
2812
- inset: null
2813
- },
2814
- "text-shadow": {
2815
- x: 0,
2816
- y: 0,
2817
- blur: null,
2818
- color: null
2819
- }
2820
- /**
2821
- * A scheme for converting non-standart properties inside object.
2822
- * For e.g.: include 'border-radius' property inside 'border' object.
2823
- */
2824
- };
2825
- var customPropObj = {
2826
- border: {
2827
- radius: "border-radius",
2828
- image: "border-image",
2829
- width: "border-width",
2830
- style: "border-style",
2831
- color: "border-color"
2832
- },
2833
- "border-bottom": {
2834
- width: "border-bottom-width",
2835
- style: "border-bottom-style",
2836
- color: "border-bottom-color"
2837
- },
2838
- "border-top": {
2839
- width: "border-top-width",
2840
- style: "border-top-style",
2841
- color: "border-top-color"
2842
- },
2843
- "border-left": {
2844
- width: "border-left-width",
2845
- style: "border-left-style",
2846
- color: "border-left-color"
2847
- },
2848
- "border-right": {
2849
- width: "border-right-width",
2850
- style: "border-right-style",
2851
- color: "border-right-color"
2852
- },
2853
- background: {
2854
- size: "background-size",
2855
- image: "background-image"
2856
- },
2857
- font: {
2858
- style: "font-style",
2859
- variant: "font-variant",
2860
- weight: "font-weight",
2861
- stretch: "font-stretch",
2862
- size: "font-size",
2863
- family: "font-family",
2864
- lineHeight: "line-height",
2865
- // Needed to avoid compilation issues with jss-plugin-camel-case
2866
- "line-height": "line-height"
2867
- },
2868
- flex: {
2869
- grow: "flex-grow",
2870
- basis: "flex-basis",
2871
- direction: "flex-direction",
2872
- wrap: "flex-wrap",
2873
- flow: "flex-flow",
2874
- shrink: "flex-shrink"
2875
- },
2876
- align: {
2877
- self: "align-self",
2878
- items: "align-items",
2879
- content: "align-content"
2880
- },
2881
- grid: {
2882
- "template-columns": "grid-template-columns",
2883
- templateColumns: "grid-template-columns",
2884
- "template-rows": "grid-template-rows",
2885
- templateRows: "grid-template-rows",
2886
- "template-areas": "grid-template-areas",
2887
- templateAreas: "grid-template-areas",
2888
- template: "grid-template",
2889
- "auto-columns": "grid-auto-columns",
2890
- autoColumns: "grid-auto-columns",
2891
- "auto-rows": "grid-auto-rows",
2892
- autoRows: "grid-auto-rows",
2893
- "auto-flow": "grid-auto-flow",
2894
- autoFlow: "grid-auto-flow",
2895
- row: "grid-row",
2896
- column: "grid-column",
2897
- "row-start": "grid-row-start",
2898
- rowStart: "grid-row-start",
2899
- "row-end": "grid-row-end",
2900
- rowEnd: "grid-row-end",
2901
- "column-start": "grid-column-start",
2902
- columnStart: "grid-column-start",
2903
- "column-end": "grid-column-end",
2904
- columnEnd: "grid-column-end",
2905
- area: "grid-area",
2906
- gap: "grid-gap",
2907
- "row-gap": "grid-row-gap",
2908
- rowGap: "grid-row-gap",
2909
- "column-gap": "grid-column-gap",
2910
- columnGap: "grid-column-gap"
2911
- }
2912
- };
2913
- function mapValuesByProp(value, prop, rule) {
2914
- return value.map(function(item) {
2915
- return objectToArray(item, prop, rule, false, true);
2916
- });
2917
- }
2918
- function processArray(value, prop, scheme, rule) {
2919
- if (scheme[prop] == null) return value;
2920
- if (value.length === 0) return [];
2921
- if (Array.isArray(value[0])) return processArray(value[0], prop, scheme, rule);
2922
- if (typeof value[0] === "object") {
2923
- return mapValuesByProp(value, prop, rule);
2924
- }
2925
- return [value];
2926
- }
2927
- function objectToArray(value, prop, rule, isFallback, isInArray) {
2928
- if (!(propObj[prop] || customPropObj[prop])) return [];
2929
- var result2 = [];
2930
- if (customPropObj[prop]) {
2931
- value = customPropsToStyle(value, rule, customPropObj[prop], isFallback);
2932
- }
2933
- if (Object.keys(value).length) {
2934
- for (var baseProp in propObj[prop]) {
2935
- if (value[baseProp]) {
2936
- if (Array.isArray(value[baseProp])) {
2937
- result2.push(propArrayInObj[baseProp] === null ? value[baseProp] : value[baseProp].join(" "));
2938
- } else result2.push(value[baseProp]);
2939
- continue;
2940
- }
2941
- if (propObj[prop][baseProp] != null) {
2942
- result2.push(propObj[prop][baseProp]);
2943
- }
2944
- }
2945
- }
2946
- if (!result2.length || isInArray) return result2;
2947
- return [result2];
2948
- }
2949
- function customPropsToStyle(value, rule, customProps, isFallback) {
2950
- for (var prop in customProps) {
2951
- var propName = customProps[prop];
2952
- if (typeof value[prop] !== "undefined" && (isFallback || !rule.prop(propName))) {
2953
- var _styleDetector;
2954
- var appendedValue = styleDetector((_styleDetector = {}, _styleDetector[propName] = value[prop], _styleDetector), rule)[propName];
2955
- if (isFallback) rule.style.fallbacks[propName] = appendedValue;
2956
- else rule.style[propName] = appendedValue;
2957
- }
2958
- delete value[prop];
2959
- }
2960
- return value;
2961
- }
2962
- function styleDetector(style2, rule, isFallback) {
2963
- for (var prop in style2) {
2964
- var value = style2[prop];
2965
- if (Array.isArray(value)) {
2966
- if (!Array.isArray(value[0])) {
2967
- if (prop === "fallbacks") {
2968
- for (var index4 = 0; index4 < style2.fallbacks.length; index4++) {
2969
- style2.fallbacks[index4] = styleDetector(style2.fallbacks[index4], rule, true);
2970
- }
2971
- continue;
2972
- }
2973
- style2[prop] = processArray(value, prop, propArray, rule);
2974
- if (!style2[prop].length) delete style2[prop];
2975
- }
2976
- } else if (typeof value === "object") {
2977
- if (prop === "fallbacks") {
2978
- style2.fallbacks = styleDetector(style2.fallbacks, rule, true);
2979
- continue;
2980
- }
2981
- style2[prop] = objectToArray(value, prop, rule, isFallback);
2982
- if (!style2[prop].length) delete style2[prop];
2983
- } else if (style2[prop] === "") delete style2[prop];
2984
- }
2985
- return style2;
2986
- }
2987
- function jssExpand() {
2988
- function onProcessStyle2(style2, rule) {
2989
- if (!style2 || rule.type !== "style") return style2;
2990
- if (Array.isArray(style2)) {
2991
- for (var index4 = 0; index4 < style2.length; index4++) {
2992
- style2[index4] = styleDetector(style2[index4], rule);
2993
- }
2994
- return style2;
2995
- }
2996
- return styleDetector(style2, rule);
2997
- }
2998
- return {
2999
- onProcessStyle: onProcessStyle2
3000
- };
3001
- }
3002
- var jss_plugin_expand_esm_default = jssExpand;
3003
-
3004
- // ../../node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
3005
- function _arrayLikeToArray(r, a) {
3006
- (null == a || a > r.length) && (a = r.length);
3007
- for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
3008
- return n;
3009
- }
3010
-
3011
- // ../../node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
3012
- function _arrayWithoutHoles(r) {
3013
- if (Array.isArray(r)) return _arrayLikeToArray(r);
3014
- }
3015
-
3016
- // ../../node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/iterableToArray.js
3017
- function _iterableToArray(r) {
3018
- if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
3019
- }
3020
-
3021
- // ../../node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
3022
- function _unsupportedIterableToArray(r, a) {
3023
- if (r) {
3024
- if ("string" == typeof r) return _arrayLikeToArray(r, a);
3025
- var t = {}.toString.call(r).slice(8, -1);
3026
- return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
3027
- }
3028
- }
3029
-
3030
- // ../../node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
3031
- function _nonIterableSpread() {
3032
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3033
- }
3034
-
3035
- // ../../node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
3036
- function _toConsumableArray(r) {
3037
- return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
3038
- }
3039
-
3040
- // ../../node_modules/.pnpm/css-vendor@2.0.8/node_modules/css-vendor/dist/css-vendor.esm.js
3041
- var js = "";
3042
- var css = "";
3043
- var vendor = "";
3044
- var browser = "";
3045
- var isTouch = module_default && "ontouchstart" in document.documentElement;
3046
- if (module_default) {
3047
- jsCssMap = {
3048
- Moz: "-moz-",
3049
- ms: "-ms-",
3050
- O: "-o-",
3051
- Webkit: "-webkit-"
3052
- };
3053
- _document$createEleme = document.createElement("p"), style = _document$createEleme.style;
3054
- testProp = "Transform";
3055
- for (key in jsCssMap) {
3056
- if (key + testProp in style) {
3057
- js = key;
3058
- css = jsCssMap[key];
3059
- break;
3060
- }
3061
- }
3062
- if (js === "Webkit" && "msHyphens" in style) {
3063
- js = "ms";
3064
- css = jsCssMap.ms;
3065
- browser = "edge";
3066
- }
3067
- if (js === "Webkit" && "-apple-trailing-word" in style) {
3068
- vendor = "apple";
3069
- }
3070
- }
3071
- var jsCssMap;
3072
- var _document$createEleme;
3073
- var style;
3074
- var testProp;
3075
- var key;
3076
- var prefix = {
3077
- js,
3078
- css,
3079
- vendor,
3080
- browser,
3081
- isTouch
3082
- };
3083
- function supportedKeyframes(key2) {
3084
- if (key2[1] === "-") return key2;
3085
- if (prefix.js === "ms") return key2;
3086
- return "@" + prefix.css + "keyframes" + key2.substr(10);
3087
- }
3088
- var appearence = {
3089
- noPrefill: ["appearance"],
3090
- supportedProperty: function supportedProperty(prop) {
3091
- if (prop !== "appearance") return false;
3092
- if (prefix.js === "ms") return "-webkit-" + prop;
3093
- return prefix.css + prop;
3094
- }
3095
- };
3096
- var colorAdjust = {
3097
- noPrefill: ["color-adjust"],
3098
- supportedProperty: function supportedProperty2(prop) {
3099
- if (prop !== "color-adjust") return false;
3100
- if (prefix.js === "Webkit") return prefix.css + "print-" + prop;
3101
- return prop;
3102
- }
3103
- };
3104
- var regExp = /[-\s]+(.)?/g;
3105
- function toUpper(match, c) {
3106
- return c ? c.toUpperCase() : "";
3107
- }
3108
- function camelize(str) {
3109
- return str.replace(regExp, toUpper);
3110
- }
3111
- function pascalize(str) {
3112
- return camelize("-" + str);
3113
- }
3114
- var mask = {
3115
- noPrefill: ["mask"],
3116
- supportedProperty: function supportedProperty3(prop, style2) {
3117
- if (!/^mask/.test(prop)) return false;
3118
- if (prefix.js === "Webkit") {
3119
- var longhand = "mask-image";
3120
- if (camelize(longhand) in style2) {
3121
- return prop;
3122
- }
3123
- if (prefix.js + pascalize(longhand) in style2) {
3124
- return prefix.css + prop;
3125
- }
3126
- }
3127
- return prop;
3128
- }
3129
- };
3130
- var textOrientation = {
3131
- noPrefill: ["text-orientation"],
3132
- supportedProperty: function supportedProperty4(prop) {
3133
- if (prop !== "text-orientation") return false;
3134
- if (prefix.vendor === "apple" && !prefix.isTouch) {
3135
- return prefix.css + prop;
3136
- }
3137
- return prop;
3138
- }
3139
- };
3140
- var transform = {
3141
- noPrefill: ["transform"],
3142
- supportedProperty: function supportedProperty5(prop, style2, options) {
3143
- if (prop !== "transform") return false;
3144
- if (options.transform) {
3145
- return prop;
3146
- }
3147
- return prefix.css + prop;
3148
- }
3149
- };
3150
- var transition = {
3151
- noPrefill: ["transition"],
3152
- supportedProperty: function supportedProperty6(prop, style2, options) {
3153
- if (prop !== "transition") return false;
3154
- if (options.transition) {
3155
- return prop;
3156
- }
3157
- return prefix.css + prop;
3158
- }
3159
- };
3160
- var writingMode = {
3161
- noPrefill: ["writing-mode"],
3162
- supportedProperty: function supportedProperty7(prop) {
3163
- if (prop !== "writing-mode") return false;
3164
- if (prefix.js === "Webkit" || prefix.js === "ms" && prefix.browser !== "edge") {
3165
- return prefix.css + prop;
3166
- }
3167
- return prop;
3168
- }
3169
- };
3170
- var userSelect = {
3171
- noPrefill: ["user-select"],
3172
- supportedProperty: function supportedProperty8(prop) {
3173
- if (prop !== "user-select") return false;
3174
- if (prefix.js === "Moz" || prefix.js === "ms" || prefix.vendor === "apple") {
3175
- return prefix.css + prop;
3176
- }
3177
- return prop;
3178
- }
3179
- };
3180
- var breakPropsOld = {
3181
- supportedProperty: function supportedProperty9(prop, style2) {
3182
- if (!/^break-/.test(prop)) return false;
3183
- if (prefix.js === "Webkit") {
3184
- var jsProp = "WebkitColumn" + pascalize(prop);
3185
- return jsProp in style2 ? prefix.css + "column-" + prop : false;
3186
- }
3187
- if (prefix.js === "Moz") {
3188
- var _jsProp = "page" + pascalize(prop);
3189
- return _jsProp in style2 ? "page-" + prop : false;
3190
- }
3191
- return false;
3192
- }
3193
- };
3194
- var inlineLogicalOld = {
3195
- supportedProperty: function supportedProperty10(prop, style2) {
3196
- if (!/^(border|margin|padding)-inline/.test(prop)) return false;
3197
- if (prefix.js === "Moz") return prop;
3198
- var newProp = prop.replace("-inline", "");
3199
- return prefix.js + pascalize(newProp) in style2 ? prefix.css + newProp : false;
3200
- }
3201
- };
3202
- var unprefixed = {
3203
- supportedProperty: function supportedProperty11(prop, style2) {
3204
- return camelize(prop) in style2 ? prop : false;
3205
- }
3206
- };
3207
- var prefixed = {
3208
- supportedProperty: function supportedProperty12(prop, style2) {
3209
- var pascalized = pascalize(prop);
3210
- if (prop[0] === "-") return prop;
3211
- if (prop[0] === "-" && prop[1] === "-") return prop;
3212
- if (prefix.js + pascalized in style2) return prefix.css + prop;
3213
- if (prefix.js !== "Webkit" && "Webkit" + pascalized in style2) return "-webkit-" + prop;
3214
- return false;
3215
- }
3216
- };
3217
- var scrollSnap = {
3218
- supportedProperty: function supportedProperty13(prop) {
3219
- if (prop.substring(0, 11) !== "scroll-snap") return false;
3220
- if (prefix.js === "ms") {
3221
- return "" + prefix.css + prop;
3222
- }
3223
- return prop;
3224
- }
3225
- };
3226
- var overscrollBehavior = {
3227
- supportedProperty: function supportedProperty14(prop) {
3228
- if (prop !== "overscroll-behavior") return false;
3229
- if (prefix.js === "ms") {
3230
- return prefix.css + "scroll-chaining";
3231
- }
3232
- return prop;
3233
- }
3234
- };
3235
- var propMap = {
3236
- "flex-grow": "flex-positive",
3237
- "flex-shrink": "flex-negative",
3238
- "flex-basis": "flex-preferred-size",
3239
- "justify-content": "flex-pack",
3240
- order: "flex-order",
3241
- "align-items": "flex-align",
3242
- "align-content": "flex-line-pack"
3243
- // 'align-self' is handled by 'align-self' plugin.
3244
- };
3245
- var flex2012 = {
3246
- supportedProperty: function supportedProperty15(prop, style2) {
3247
- var newProp = propMap[prop];
3248
- if (!newProp) return false;
3249
- return prefix.js + pascalize(newProp) in style2 ? prefix.css + newProp : false;
3250
- }
3251
- };
3252
- var propMap$1 = {
3253
- flex: "box-flex",
3254
- "flex-grow": "box-flex",
3255
- "flex-direction": ["box-orient", "box-direction"],
3256
- order: "box-ordinal-group",
3257
- "align-items": "box-align",
3258
- "flex-flow": ["box-orient", "box-direction"],
3259
- "justify-content": "box-pack"
3260
- };
3261
- var propKeys = Object.keys(propMap$1);
3262
- var prefixCss = function prefixCss2(p) {
3263
- return prefix.css + p;
3264
- };
3265
- var flex2009 = {
3266
- supportedProperty: function supportedProperty16(prop, style2, _ref) {
3267
- var multiple = _ref.multiple;
3268
- if (propKeys.indexOf(prop) > -1) {
3269
- var newProp = propMap$1[prop];
3270
- if (!Array.isArray(newProp)) {
3271
- return prefix.js + pascalize(newProp) in style2 ? prefix.css + newProp : false;
3272
- }
3273
- if (!multiple) return false;
3274
- for (var i = 0; i < newProp.length; i++) {
3275
- if (!(prefix.js + pascalize(newProp[0]) in style2)) {
3276
- return false;
3277
- }
3278
- }
3279
- return newProp.map(prefixCss);
3280
- }
3281
- return false;
3282
- }
3283
- };
3284
- var plugins2 = [appearence, colorAdjust, mask, textOrientation, transform, transition, writingMode, userSelect, breakPropsOld, inlineLogicalOld, unprefixed, prefixed, scrollSnap, overscrollBehavior, flex2012, flex2009];
3285
- var propertyDetectors = plugins2.filter(function(p) {
3286
- return p.supportedProperty;
3287
- }).map(function(p) {
3288
- return p.supportedProperty;
3289
- });
3290
- var noPrefill = plugins2.filter(function(p) {
3291
- return p.noPrefill;
3292
- }).reduce(function(a, p) {
3293
- a.push.apply(a, _toConsumableArray(p.noPrefill));
3294
- return a;
3295
- }, []);
3296
- var el;
3297
- var cache2 = {};
3298
- if (module_default) {
3299
- el = document.createElement("p");
3300
- computed = window.getComputedStyle(document.documentElement, "");
3301
- for (key$1 in computed) {
3302
- if (!isNaN(key$1)) cache2[computed[key$1]] = computed[key$1];
3303
- }
3304
- noPrefill.forEach(function(x) {
3305
- return delete cache2[x];
3306
- });
3307
- }
3308
- var computed;
3309
- var key$1;
3310
- function supportedProperty17(prop, options) {
3311
- if (options === void 0) {
3312
- options = {};
3313
- }
3314
- if (!el) return prop;
3315
- if (cache2[prop] != null) {
3316
- return cache2[prop];
3317
- }
3318
- if (prop === "transition" || prop === "transform") {
3319
- options[prop] = prop in el.style;
3320
- }
3321
- for (var i = 0; i < propertyDetectors.length; i++) {
3322
- cache2[prop] = propertyDetectors[i](prop, el.style, options);
3323
- if (cache2[prop]) break;
3324
- }
3325
- try {
3326
- el.style[prop] = "";
3327
- } catch (err) {
3328
- return false;
3329
- }
3330
- return cache2[prop];
3331
- }
3332
- var cache$1 = {};
3333
- var transitionProperties = {
3334
- transition: 1,
3335
- "transition-property": 1,
3336
- "-webkit-transition": 1,
3337
- "-webkit-transition-property": 1
3338
- };
3339
- var transPropsRegExp = /(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;
3340
- var el$1;
3341
- function prefixTransitionCallback(match, p1, p2) {
3342
- if (p1 === "var") return "var";
3343
- if (p1 === "all") return "all";
3344
- if (p2 === "all") return ", all";
3345
- var prefixedValue = p1 ? supportedProperty17(p1) : ", " + supportedProperty17(p2);
3346
- if (!prefixedValue) return p1 || p2;
3347
- return prefixedValue;
3348
- }
3349
- if (module_default) el$1 = document.createElement("p");
3350
- function supportedValue(property, value) {
3351
- var prefixedValue = value;
3352
- if (!el$1 || property === "content") return value;
3353
- if (typeof prefixedValue !== "string" || !isNaN(parseInt(prefixedValue, 10))) {
3354
- return prefixedValue;
3355
- }
3356
- var cacheKey = property + prefixedValue;
3357
- if (cache$1[cacheKey] != null) {
3358
- return cache$1[cacheKey];
3359
- }
3360
- try {
3361
- el$1.style[property] = prefixedValue;
3362
- } catch (err) {
3363
- cache$1[cacheKey] = false;
3364
- return false;
3365
- }
3366
- if (transitionProperties[property]) {
3367
- prefixedValue = prefixedValue.replace(transPropsRegExp, prefixTransitionCallback);
3368
- } else if (el$1.style[property] === "") {
3369
- prefixedValue = prefix.css + prefixedValue;
3370
- if (prefixedValue === "-ms-flex") el$1.style[property] = "-ms-flexbox";
3371
- el$1.style[property] = prefixedValue;
3372
- if (el$1.style[property] === "") {
3373
- cache$1[cacheKey] = false;
3374
- return false;
3375
- }
3376
- }
3377
- el$1.style[property] = "";
3378
- cache$1[cacheKey] = prefixedValue;
3379
- return cache$1[cacheKey];
3380
- }
3381
-
3382
- // ../../node_modules/.pnpm/jss-plugin-vendor-prefixer@10.10.0/node_modules/jss-plugin-vendor-prefixer/dist/jss-plugin-vendor-prefixer.esm.js
3383
- function jssVendorPrefixer() {
3384
- function onProcessRule3(rule) {
3385
- if (rule.type === "keyframes") {
3386
- var atRule = rule;
3387
- atRule.at = supportedKeyframes(atRule.at);
3388
- }
3389
- }
3390
- function prefixStyle(style2) {
3391
- for (var prop in style2) {
3392
- var value = style2[prop];
3393
- if (prop === "fallbacks" && Array.isArray(value)) {
3394
- style2[prop] = value.map(prefixStyle);
3395
- continue;
3396
- }
3397
- var changeProp = false;
3398
- var supportedProp = supportedProperty17(prop);
3399
- if (supportedProp && supportedProp !== prop) changeProp = true;
3400
- var changeValue = false;
3401
- var supportedValue$1 = supportedValue(supportedProp, toCssValue(value));
3402
- if (supportedValue$1 && supportedValue$1 !== value) changeValue = true;
3403
- if (changeProp || changeValue) {
3404
- if (changeProp) delete style2[prop];
3405
- style2[supportedProp || prop] = supportedValue$1 || value;
3406
- }
3407
- }
3408
- return style2;
3409
- }
3410
- function onProcessStyle2(style2, rule) {
3411
- if (rule.type !== "style") return style2;
3412
- return prefixStyle(style2);
3413
- }
3414
- function onChangeValue2(value, prop) {
3415
- return supportedValue(prop, toCssValue(value)) || value;
3416
- }
3417
- return {
3418
- onProcessRule: onProcessRule3,
3419
- onProcessStyle: onProcessStyle2,
3420
- onChangeValue: onChangeValue2
3421
- };
3422
- }
3423
- var jss_plugin_vendor_prefixer_esm_default = jssVendorPrefixer;
3424
-
3425
- // ../../node_modules/.pnpm/jss-plugin-props-sort@10.10.0/node_modules/jss-plugin-props-sort/dist/jss-plugin-props-sort.esm.js
3426
- function jssPropsSort() {
3427
- var sort = function sort2(prop0, prop1) {
3428
- if (prop0.length === prop1.length) {
3429
- return prop0 > prop1 ? 1 : -1;
3430
- }
3431
- return prop0.length - prop1.length;
3432
- };
3433
- return {
3434
- onProcessStyle: function onProcessStyle2(style2, rule) {
3435
- if (rule.type !== "style") return style2;
3436
- var newStyle = {};
3437
- var props = Object.keys(style2).sort(sort);
3438
- for (var i = 0; i < props.length; i++) {
3439
- newStyle[props[i]] = style2[props[i]];
3440
- }
3441
- return newStyle;
3442
- }
3443
- };
3444
- }
3445
- var jss_plugin_props_sort_esm_default = jssPropsSort;
3446
-
3447
- // ../../node_modules/.pnpm/jss-preset-default@10.10.0/node_modules/jss-preset-default/dist/jss-preset-default.esm.js
3448
- var create = function create2(options) {
3449
- if (options === void 0) {
3450
- options = {};
3451
- }
3452
- return {
3453
- plugins: [jss_plugin_rule_value_function_esm_default(), jss_plugin_rule_value_observable_esm_default(options.observable), jss_plugin_template_esm_default(), jss_plugin_global_esm_default(), jss_plugin_extend_esm_default(), jss_plugin_nested_esm_default(), jss_plugin_compose_esm_default(), jss_plugin_camel_case_esm_default(), jss_plugin_default_unit_esm_default(options.defaultUnit), jss_plugin_expand_esm_default(), jss_plugin_vendor_prefixer_esm_default(), jss_plugin_props_sort_esm_default()]
3454
- };
3455
- };
3456
- var jss_preset_default_esm_default = create;
3457
-
3458
- // ../../node_modules/.pnpm/shallow-equal@1.2.1/node_modules/shallow-equal/dist/index.esm.js
3459
- function shallowEqualObjects(objA, objB) {
3460
- if (objA === objB) {
3461
- return true;
3462
- }
3463
- if (!objA || !objB) {
3464
- return false;
3465
- }
3466
- var aKeys = Object.keys(objA);
3467
- var bKeys = Object.keys(objB);
3468
- var len = aKeys.length;
3469
- if (bKeys.length !== len) {
3470
- return false;
3471
- }
3472
- for (var i = 0; i < len; i++) {
3473
- var key2 = aKeys[i];
3474
- if (objA[key2] !== objB[key2] || !Object.prototype.hasOwnProperty.call(objB, key2)) {
3475
- return false;
3476
- }
3477
- }
3478
- return true;
3479
- }
3480
-
3481
- // ../../node_modules/.pnpm/@emotion+memoize@0.7.1/node_modules/@emotion/memoize/dist/memoize.browser.esm.js
3482
- function memoize3(fn) {
3483
- var cache3 = {};
3484
- return function(arg) {
3485
- if (cache3[arg] === void 0) cache3[arg] = fn(arg);
3486
- return cache3[arg];
3487
- };
3488
- }
3489
- var memoize_browser_esm_default = memoize3;
3490
-
3491
- // ../../node_modules/.pnpm/@emotion+is-prop-valid@0.7.3/node_modules/@emotion/is-prop-valid/dist/is-prop-valid.browser.esm.js
3492
- var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;
3493
- var index2 = memoize_browser_esm_default(
3494
- function(prop) {
3495
- return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91;
3496
- }
3497
- /* Z+1 */
3498
- );
3499
- var is_prop_valid_browser_esm_default = index2;
3500
-
3501
- // ../../node_modules/.pnpm/css-jss@10.10.0/node_modules/css-jss/dist/css-jss.esm.js
3502
- var MAX_RULES_PER_SHEET = 1e4;
3503
- var defaultJss = createJss(jss_preset_default_esm_default());
3504
- var createCss = function createCss2(jss) {
3505
- if (jss === void 0) {
3506
- jss = defaultJss;
3507
- }
3508
- var cache3 = /* @__PURE__ */ new Map();
3509
- var ruleIndex = 0;
3510
- var sheet;
3511
- var getSheet = function getSheet2() {
3512
- if (!sheet || sheet.rules.index.length > MAX_RULES_PER_SHEET) {
3513
- sheet = jss.createStyleSheet().attach();
3514
- }
3515
- return sheet;
3516
- };
3517
- function css3() {
3518
- var args = arguments;
3519
- var argsStr = JSON.stringify(args);
3520
- var cached = cache3.get(argsStr);
3521
- if (cached) return cached.className;
3522
- var flatArgs = [];
3523
- for (var argIndex in args) {
3524
- var arg = args[argIndex];
3525
- if (!Array.isArray(arg)) {
3526
- flatArgs.push(arg);
3527
- continue;
3528
- }
3529
- for (var innerArgIndex = 0; innerArgIndex < arg.length; innerArgIndex++) {
3530
- flatArgs.push(arg[innerArgIndex]);
3531
- }
3532
- }
3533
- var mergedStyle = {};
3534
- var labels = [];
3535
- for (var i = 0; i < flatArgs.length; i++) {
3536
- var style2 = flatArgs[i];
3537
- if (!style2) continue;
3538
- var styleObject = style2;
3539
- if (typeof style2 === "string") {
3540
- var _cached = cache3.get(style2);
3541
- if (_cached) {
3542
- if (_cached.labels.length) labels.push.apply(labels, _cached.labels);
3543
- styleObject = _cached.style;
3544
- }
3545
- }
3546
- if (styleObject.label && labels.indexOf(styleObject.label) === -1) labels.push(styleObject.label);
3547
- Object.assign(mergedStyle, styleObject);
3548
- }
3549
- delete mergedStyle.label;
3550
- var label = labels.length === 0 ? "css" : labels.join("-");
3551
- var key2 = label + "-" + ruleIndex++;
3552
- getSheet().addRule(key2, mergedStyle);
3553
- var className = getSheet().classes[key2];
3554
- var cacheValue = {
3555
- style: mergedStyle,
3556
- labels,
3557
- className
3558
- };
3559
- cache3.set(argsStr, cacheValue);
3560
- cache3.set(className, cacheValue);
3561
- return className;
3562
- }
3563
- css3.getSheet = getSheet;
3564
- return css3;
3565
- };
3566
- var css2 = createCss();
3567
- var css_jss_esm_default = css2;
3568
-
3569
- // ../../node_modules/.pnpm/react-jss@10.10.0_react@19.2.8/node_modules/react-jss/dist/react-jss.esm.js
3570
- var getDisplayName2 = function getDisplayName3(Component) {
3571
- return Component.displayName || Component.name || "Component";
3572
- };
3573
- var memoize4 = function memoize5(fn) {
3574
- var lastArgs;
3575
- var lastResult;
3576
- return function() {
3577
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
3578
- args[_key] = arguments[_key];
3579
- }
3580
- if (Array.isArray(lastArgs) && args.length === lastArgs.length) {
3581
- var isSame = true;
3582
- for (var i = 0; i < args.length; i++) {
3583
- if (args[i] !== lastArgs[i]) {
3584
- isSame = false;
3585
- }
3586
- }
3587
- if (isSame) {
3588
- return lastResult;
3589
- }
3590
- }
3591
- lastArgs = args;
3592
- lastResult = fn.apply(void 0, args);
3593
- return lastResult;
3594
- };
3595
- };
3596
- var mergeClasses = function mergeClasses2(baseClasses, additionalClasses) {
3597
- var combinedClasses = _extends({}, baseClasses);
3598
- for (var name in additionalClasses) {
3599
- combinedClasses[name] = name in combinedClasses ? combinedClasses[name] + " " + additionalClasses[name] : additionalClasses[name];
3600
- }
3601
- return combinedClasses;
3602
- };
3603
- var index3 = Number.MIN_SAFE_INTEGER || -1e9;
3604
- var getSheetIndex = function getSheetIndex2() {
3605
- return index3++;
3606
- };
3607
- var JssContext = createContext2({
3608
- classNamePrefix: "",
3609
- disableStylesGeneration: false,
3610
- isSSR: !module_default
3611
- });
3612
- var defaultManagers = /* @__PURE__ */ new Map();
3613
- var getManager = function getManager2(context, managerId) {
3614
- var managers = context.managers;
3615
- if (managers) {
3616
- if (!managers[managerId]) {
3617
- managers[managerId] = new SheetsManager();
3618
- }
3619
- return managers[managerId];
3620
- }
3621
- var manager = defaultManagers.get(managerId);
3622
- if (!manager) {
3623
- manager = new SheetsManager();
3624
- defaultManagers.set(managerId, manager);
3625
- }
3626
- return manager;
3627
- };
3628
- var manageSheet = function manageSheet2(options) {
3629
- var sheet = options.sheet, context = options.context, index4 = options.index, theme = options.theme;
3630
- if (!sheet) {
3631
- return;
3632
- }
3633
- var manager = getManager(context, index4);
3634
- manager.manage(theme);
3635
- if (context.registry) {
3636
- context.registry.add(sheet);
3637
- }
3638
- };
3639
- var unmanageSheet = function unmanageSheet2(options) {
3640
- if (!options.sheet) {
3641
- return;
3642
- }
3643
- var manager = getManager(options.context, options.index);
3644
- manager.unmanage(options.theme);
3645
- };
3646
- var defaultJss2 = createJss(jss_preset_default_esm_default());
3647
- var sheetsMeta = /* @__PURE__ */ new WeakMap();
3648
- var getMeta = function getMeta2(sheet) {
3649
- return sheetsMeta.get(sheet);
3650
- };
3651
- var addMeta = function addMeta2(sheet, meta) {
3652
- sheetsMeta.set(sheet, meta);
3653
- };
3654
- var getStyles = function getStyles2(options) {
3655
- var styles = options.styles;
3656
- if (typeof styles !== "function") {
3657
- return styles;
3658
- }
3659
- false ? tiny_warning_esm_default(styles.length !== 0, "[JSS] <" + (options.name || "Hook") + ` />'s styles function doesn't rely on the "theme" argument. We recommend declaring styles as an object instead.`) : void 0;
3660
- return styles(options.theme);
3661
- };
3662
- function getSheetOptions(options, link) {
3663
- var minify;
3664
- if (options.context.id && options.context.id.minify != null) {
3665
- minify = options.context.id.minify;
3666
- }
3667
- var classNamePrefix = options.context.classNamePrefix || "";
3668
- if (options.name && !minify) {
3669
- classNamePrefix += options.name.replace(/\s/g, "-") + "-";
3670
- }
3671
- var meta = "";
3672
- if (options.name) meta = options.name + ", ";
3673
- meta += typeof options.styles === "function" ? "Themed" : "Unthemed";
3674
- return _extends({}, options.sheetOptions, {
3675
- index: options.index,
3676
- meta,
3677
- classNamePrefix,
3678
- link,
3679
- generateId: options.sheetOptions && options.sheetOptions.generateId ? options.sheetOptions.generateId : options.context.generateId
3680
- });
3681
- }
3682
- var createStyleSheet = function createStyleSheet2(options) {
3683
- if (options.context.disableStylesGeneration) {
3684
- return void 0;
3685
- }
3686
- var manager = getManager(options.context, options.index);
3687
- var existingSheet = manager.get(options.theme);
3688
- if (existingSheet) {
3689
- return existingSheet;
3690
- }
3691
- var jss = options.context.jss || defaultJss2;
3692
- var styles = getStyles(options);
3693
- var dynamicStyles = getDynamicStyles(styles);
3694
- var sheet = jss.createStyleSheet(styles, getSheetOptions(options, dynamicStyles !== null));
3695
- addMeta(sheet, {
3696
- dynamicStyles,
3697
- styles
3698
- });
3699
- manager.add(options.theme, sheet);
3700
- return sheet;
3701
- };
3702
- var removeDynamicRules = function removeDynamicRules2(sheet, rules) {
3703
- for (var key2 in rules) {
3704
- sheet.deleteRule(rules[key2]);
3705
- }
3706
- };
3707
- var updateDynamicRules = function updateDynamicRules2(data, sheet, rules) {
3708
- for (var key2 in rules) {
3709
- sheet.updateOne(rules[key2], data);
3710
- }
3711
- };
3712
- var addDynamicRules = function addDynamicRules2(sheet, data) {
3713
- var meta = getMeta(sheet);
3714
- if (!meta) {
3715
- return void 0;
3716
- }
3717
- var rules = {};
3718
- for (var key2 in meta.dynamicStyles) {
3719
- var initialRuleCount = sheet.rules.index.length;
3720
- var originalRule = sheet.addRule(key2, meta.dynamicStyles[key2]);
3721
- for (var i = initialRuleCount; i < sheet.rules.index.length; i++) {
3722
- var rule = sheet.rules.index[i];
3723
- sheet.updateOne(rule, data);
3724
- rules[originalRule === rule ? key2 : rule.key] = rule;
3725
- }
3726
- }
3727
- return rules;
3728
- };
3729
- var getSheetClasses = function getSheetClasses2(sheet, dynamicRules) {
3730
- if (!dynamicRules) {
3731
- return sheet.classes;
3732
- }
3733
- var meta = getMeta(sheet);
3734
- if (!meta) {
3735
- return sheet.classes;
3736
- }
3737
- var classes = {};
3738
- for (var key2 in meta.styles) {
3739
- classes[key2] = sheet.classes[key2];
3740
- if (key2 in dynamicRules) {
3741
- classes[key2] += " " + sheet.classes[dynamicRules[key2].key];
3742
- }
3743
- }
3744
- return classes;
3745
- };
3746
- function getUseInsertionEffect(isSSR) {
3747
- return isSSR ? useEffect : React2.useInsertionEffect || // React 18+ (https://github.com/reactwg/react-18/discussions/110)
3748
- useLayoutEffect;
3749
- }
3750
- var noTheme = {};
3751
- var createUseStyles = function createUseStyles2(styles, options) {
3752
- if (options === void 0) {
3753
- options = {};
3754
- }
3755
- var _options = options, _options$index = _options.index, index4 = _options$index === void 0 ? getSheetIndex() : _options$index, theming = _options.theming, name = _options.name, sheetOptions = _objectWithoutPropertiesLoose(_options, ["index", "theming", "name"]);
3756
- var ThemeContext$1 = theming && theming.context || ThemeContext;
3757
- var useTheme2 = function useTheme3(theme) {
3758
- if (typeof styles === "function") {
3759
- return theme || useContext(ThemeContext$1) || noTheme;
3760
- }
3761
- return noTheme;
3762
- };
3763
- var emptyObject = {};
3764
- return function useStyles(data) {
3765
- var isFirstMount = useRef(true);
3766
- var context = useContext(JssContext);
3767
- var theme = useTheme2(data && data.theme);
3768
- var _useMemo = useMemo(function() {
3769
- var newSheet = createStyleSheet({
3770
- context,
3771
- styles,
3772
- name,
3773
- theme,
3774
- index: index4,
3775
- sheetOptions
3776
- });
3777
- if (newSheet && context.isSSR) {
3778
- manageSheet({
3779
- index: index4,
3780
- context,
3781
- sheet: newSheet,
3782
- theme
3783
- });
3784
- }
3785
- return [newSheet, newSheet ? addDynamicRules(newSheet, data) : null];
3786
- }, [context, theme]), sheet = _useMemo[0], dynamicRules = _useMemo[1];
3787
- getUseInsertionEffect(context.isSSR)(function() {
3788
- if (sheet && dynamicRules && !isFirstMount.current) {
3789
- updateDynamicRules(data, sheet, dynamicRules);
3790
- }
3791
- }, [data]);
3792
- getUseInsertionEffect(context.isSSR)(function() {
3793
- if (sheet) {
3794
- manageSheet({
3795
- index: index4,
3796
- context,
3797
- sheet,
3798
- theme
3799
- });
3800
- }
3801
- return function() {
3802
- if (sheet) {
3803
- unmanageSheet({
3804
- index: index4,
3805
- context,
3806
- sheet,
3807
- theme
3808
- });
3809
- if (dynamicRules) {
3810
- removeDynamicRules(sheet, dynamicRules);
3811
- }
3812
- }
3813
- };
3814
- }, [sheet]);
3815
- var classes = useMemo(function() {
3816
- return sheet && dynamicRules ? getSheetClasses(sheet, dynamicRules) : emptyObject;
3817
- }, [sheet, dynamicRules]);
3818
- useDebugValue(classes);
3819
- useDebugValue(theme === noTheme ? "No theme" : theme);
3820
- useEffect(function() {
3821
- isFirstMount.current = false;
3822
- });
3823
- return classes;
3824
- };
3825
- };
3826
- var NoRenderer = function NoRenderer2(props) {
3827
- return props.children || null;
3828
- };
3829
- var createWithStyles = function createWithStyles2(styles, options) {
3830
- if (options === void 0) {
3831
- options = {};
3832
- }
3833
- var _options = options, _options$index = _options.index, index4 = _options$index === void 0 ? getSheetIndex() : _options$index, theming = _options.theming, injectTheme = _options.injectTheme, sheetOptions = _objectWithoutPropertiesLoose(_options, ["index", "theming", "injectTheme"]);
3834
- var ThemeContext$1 = theming ? theming.context : ThemeContext;
3835
- return function(InnerComponent) {
3836
- if (InnerComponent === void 0) {
3837
- InnerComponent = NoRenderer;
3838
- }
3839
- var displayName = getDisplayName2(InnerComponent);
3840
- var mergeClassesProp = memoize4(function(sheetClasses, classesProp) {
3841
- return classesProp ? mergeClasses(sheetClasses, classesProp) : sheetClasses;
3842
- });
3843
- var hookOptions = Object.assign(sheetOptions, {
3844
- theming,
3845
- index: index4,
3846
- name: displayName
3847
- });
3848
- var useStyles = createUseStyles(styles, hookOptions);
3849
- var WithStyles = forwardRef(function(props, ref) {
3850
- var theme = useContext(ThemeContext$1);
3851
- var newProps = _extends({}, props);
3852
- if (injectTheme && newProps.theme == null) {
3853
- newProps.theme = theme;
3854
- }
3855
- var sheetClasses = useStyles(newProps);
3856
- var classes = mergeClassesProp(sheetClasses, props.classes);
3857
- return createElement(InnerComponent, _extends({}, newProps, {
3858
- classes,
3859
- ref
3860
- }));
3861
- });
3862
- WithStyles.displayName = "WithStyles(" + displayName + ")";
3863
- WithStyles.defaultProps = _extends({}, InnerComponent.defaultProps);
3864
- WithStyles.InnerComponent = InnerComponent;
3865
- return (0, import_hoist_non_react_statics2.default)(WithStyles, InnerComponent);
3866
- };
3867
- };
3868
- var initialContext = {};
3869
- function JssProvider(props) {
3870
- var managersRef = useRef({});
3871
- var prevContextRef = useRef();
3872
- var registryRef = useRef(null);
3873
- var createContext3 = function createContext4(parentContext, prevContext) {
3874
- if (prevContext === void 0) {
3875
- prevContext = initialContext;
3876
- }
3877
- var registry = props.registry, classNamePrefix = props.classNamePrefix, jss = props.jss, generateId = props.generateId, disableStylesGeneration = props.disableStylesGeneration, media = props.media, id = props.id, isSSR = props.isSSR;
3878
- var context = _extends({}, parentContext);
3879
- if (registry) {
3880
- context.registry = registry;
3881
- if (registry !== registryRef.current) {
3882
- managersRef.current = {};
3883
- registryRef.current = registry;
3884
- }
3885
- }
3886
- context.managers = managersRef.current;
3887
- if (id !== void 0) {
3888
- context.id = id;
3889
- }
3890
- if (generateId !== void 0) {
3891
- context.generateId = generateId;
3892
- } else if (!context.generateId || !prevContext || context.id !== prevContext.id) {
3893
- context.generateId = createGenerateId(context.id);
3894
- }
3895
- if (classNamePrefix) {
3896
- context.classNamePrefix = (context.classNamePrefix || "") + classNamePrefix;
3897
- }
3898
- if (media !== void 0) {
3899
- context.media = media;
3900
- }
3901
- if (jss) {
3902
- context.jss = jss;
3903
- }
3904
- if (disableStylesGeneration !== void 0) {
3905
- context.disableStylesGeneration = disableStylesGeneration;
3906
- }
3907
- if (isSSR !== void 0) {
3908
- context.isSSR = isSSR;
3909
- }
3910
- if (prevContext && shallowEqualObjects(prevContext, context)) {
3911
- return prevContext;
3912
- }
3913
- return context;
3914
- };
3915
- var renderProvider = function renderProvider2(parentContext) {
3916
- var children = props.children;
3917
- var context = createContext3(parentContext, prevContextRef.current);
3918
- prevContextRef.current = context;
3919
- return createElement(JssContext.Provider, {
3920
- value: context
3921
- }, children);
3922
- };
3923
- return createElement(JssContext.Consumer, null, renderProvider);
3924
- }
3925
- var parseStyles = function parseStyles2(args) {
3926
- var dynamicStyles = [];
3927
- var staticStyle;
3928
- var labels = [];
3929
- for (var key2 in args) {
3930
- var style2 = args[key2];
3931
- if (!style2) continue;
3932
- if (typeof style2 === "function") {
3933
- dynamicStyles.push(style2);
3934
- } else {
3935
- if (!staticStyle) staticStyle = {};
3936
- Object.assign(staticStyle, style2);
3937
- var _staticStyle = staticStyle, _label = _staticStyle.label;
3938
- if (_label) {
3939
- if (labels.indexOf(_label) === -1) labels.push(_label);
3940
- }
3941
- }
3942
- }
3943
- var styles = {};
3944
- var label = labels.length === 0 ? "sc" : labels.join("-");
3945
- if (staticStyle) {
3946
- if ("label" in staticStyle) delete staticStyle.label;
3947
- styles[label] = staticStyle;
3948
- }
3949
- if (dynamicStyles.length === 1) {
3950
- styles.scd = dynamicStyles[0];
3951
- }
3952
- if (dynamicStyles.length > 1) {
3953
- styles.scd = function(props) {
3954
- var merged = {};
3955
- for (var i = 0; i < dynamicStyles.length; i++) {
3956
- var dynamicStyle = dynamicStyles[i](props);
3957
- if (dynamicStyle) Object.assign(merged, dynamicStyle);
3958
- }
3959
- return merged;
3960
- };
3961
- }
3962
- return {
3963
- styles,
3964
- label
3965
- };
3966
- };
3967
- var shouldForwardPropSymbol = /* @__PURE__ */ Symbol("react-jss-styled");
3968
- var getShouldForwardProp = function getShouldForwardProp2(tagOrComponent, options) {
3969
- var shouldForwardProp = options.shouldForwardProp;
3970
- var childShouldForwardProp = tagOrComponent[shouldForwardPropSymbol];
3971
- var finalShouldForwardProp = shouldForwardProp || childShouldForwardProp;
3972
- if (shouldForwardProp && childShouldForwardProp) {
3973
- finalShouldForwardProp = function finalShouldForwardProp2(prop) {
3974
- return childShouldForwardProp(prop) && shouldForwardProp(prop);
3975
- };
3976
- }
3977
- return finalShouldForwardProp;
3978
- };
3979
- var getChildProps = function getChildProps2(props, shouldForwardProp, isTag) {
3980
- var childProps = {};
3981
- for (var prop in props) {
3982
- if (shouldForwardProp) {
3983
- if (shouldForwardProp(prop) === true) {
3984
- childProps[prop] = props[prop];
3985
- }
3986
- continue;
3987
- }
3988
- if (isTag) {
3989
- if (is_prop_valid_browser_esm_default(prop)) {
3990
- childProps[prop] = props[prop];
3991
- }
3992
- continue;
3993
- }
3994
- childProps[prop] = props[prop];
3995
- }
3996
- return childProps;
3997
- };
3998
- var configureStyled = function configureStyled2(tagOrComponent, options) {
3999
- if (options === void 0) {
4000
- options = {};
4001
- }
4002
- var _options = options, theming = _options.theming;
4003
- var isTag = typeof tagOrComponent === "string";
4004
- var ThemeContext$1 = theming ? theming.context : ThemeContext;
4005
- var shouldForwardProp = getShouldForwardProp(tagOrComponent, options);
4006
- var _options2 = options, _ = _options2.shouldForwardProp, hookOptions = _objectWithoutPropertiesLoose(_options2, ["shouldForwardProp"]);
4007
- return function createStyledComponent() {
4008
- var _parseStyles = parseStyles(arguments), styles = _parseStyles.styles, label = _parseStyles.label;
4009
- var useStyles = createUseStyles(styles, hookOptions);
4010
- var Styled = function Styled2(props) {
4011
- var as = props.as, className = props.className;
4012
- var theme = useContext(ThemeContext$1);
4013
- var propsWithTheme = Object.assign({
4014
- theme
4015
- }, props);
4016
- var classes = useStyles(propsWithTheme);
4017
- var childProps = getChildProps(props, shouldForwardProp, isTag);
4018
- var classNames = ((classes[label] || classes.sc || "") + " " + (classes.scd || "")).trim();
4019
- childProps.className = className ? className + " " + classNames : classNames;
4020
- if (!isTag && shouldForwardProp) {
4021
- tagOrComponent[shouldForwardPropSymbol] = shouldForwardProp;
4022
- }
4023
- if (isTag && as) {
4024
- return createElement(as, childProps);
4025
- }
4026
- return createElement(tagOrComponent, childProps);
4027
- };
4028
- return Styled;
4029
- };
4030
- };
4031
- var create3 = function create4(css3) {
4032
- if (css3 === void 0) {
4033
- css3 = css_jss_esm_default;
4034
- }
4035
- return function createElement$1(type, props) {
4036
- var args = arguments;
4037
- if (props && props.css) {
4038
- var className = css3(props.css);
4039
- var newProps = Object.assign({}, props);
4040
- newProps.className = props.className ? props.className + " " + className : className;
4041
- delete newProps.css;
4042
- args[1] = newProps;
4043
- }
4044
- return createElement.apply(void 0, args);
4045
- };
4046
- };
4047
- var jsx = create3();
4048
- var react_jss_esm_default = createWithStyles;
4049
-
4050
- // shell/.ojm-shim-react-jss.mjs
4051
- var ojm_shim_react_jss_default = react_jss_esm_default ?? react_jss_esm_exports;
4052
- export {
4053
- JssContext,
4054
- JssProvider,
4055
- SheetsRegistry,
4056
- ThemeProvider,
4057
- createGenerateId,
4058
- create3 as createJsx,
4059
- createTheming,
4060
- createUseStyles,
4061
- ojm_shim_react_jss_default as default,
4062
- defaultJss2 as jss,
4063
- jsx,
4064
- configureStyled as styled,
4065
- useTheme,
4066
- createWithStyles as withStyles,
4067
- withTheme
4068
- };
4069
- /*! Bundled license information:
4070
-
4071
- react-is/cjs/react-is.production.min.js:
4072
- (** @license React v16.13.1
4073
- * react-is.production.min.js
4074
- *
4075
- * Copyright (c) Facebook, Inc. and its affiliates.
4076
- *
4077
- * This source code is licensed under the MIT license found in the
4078
- * LICENSE file in the root directory of this source tree.
4079
- *)
4080
-
4081
- jss/dist/jss.esm.js:
4082
- (**
4083
- * A better abstraction over CSS.
4084
- *
4085
- * @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
4086
- * @website https://github.com/cssinjs/jss
4087
- * @license MIT
4088
- *)
4089
- */