@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,2595 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
- var __export = (target, all) => {
4
- for (var name in all)
5
- __defProp(target, name, { get: all[name], enumerable: true });
6
- };
7
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
8
-
9
- // ../../node_modules/.pnpm/@ant-design+cssinjs@2.1.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@ant-design/cssinjs/es/index.js
10
- var es_exports = {};
11
- __export(es_exports, {
12
- Keyframes: () => Keyframes_default,
13
- NaNLinter: () => NaNLinter_default,
14
- StyleContext: () => StyleContext_default,
15
- StyleProvider: () => StyleProvider,
16
- Theme: () => Theme,
17
- _experimental: () => _experimental,
18
- autoPrefixTransformer: () => autoPrefix_default,
19
- createCache: () => createCache,
20
- createTheme: () => createTheme,
21
- extractStyle: () => extractStyle,
22
- genCalc: () => calc_default,
23
- getComputedToken: () => getComputedToken,
24
- legacyLogicalPropertiesTransformer: () => legacyLogicalProperties_default,
25
- legacyNotSelectorLinter: () => legacyNotSelectorLinter_default,
26
- logicalPropertiesLinter: () => logicalPropertiesLinter_default,
27
- parentSelectorLinter: () => parentSelectorLinter_default,
28
- px2remTransformer: () => px2rem_default,
29
- token2CSSVar: () => token2CSSVar,
30
- unit: () => unit2,
31
- useCSSVarRegister: () => useCSSVarRegister_default,
32
- useCacheToken: () => useCacheToken,
33
- useStyleRegister: () => useStyleRegister
34
- });
35
-
36
- // ../../node_modules/.pnpm/@emotion+hash@0.8.0/node_modules/@emotion/hash/dist/hash.browser.esm.js
37
- function murmur2(str) {
38
- var h = 0;
39
- var k, i = 0, len = str.length;
40
- for (; len >= 4; ++i, len -= 4) {
41
- k = str.charCodeAt(i) & 255 | (str.charCodeAt(++i) & 255) << 8 | (str.charCodeAt(++i) & 255) << 16 | (str.charCodeAt(++i) & 255) << 24;
42
- k = /* Math.imul(k, m): */
43
- (k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16);
44
- k ^= /* k >>> r: */
45
- k >>> 24;
46
- h = /* Math.imul(k, m): */
47
- (k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
48
- (h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
49
- }
50
- switch (len) {
51
- case 3:
52
- h ^= (str.charCodeAt(i + 2) & 255) << 16;
53
- case 2:
54
- h ^= (str.charCodeAt(i + 1) & 255) << 8;
55
- case 1:
56
- h ^= str.charCodeAt(i) & 255;
57
- h = /* Math.imul(h, m): */
58
- (h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
59
- }
60
- h ^= h >>> 13;
61
- h = /* Math.imul(h, m): */
62
- (h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
63
- return ((h ^ h >>> 15) >>> 0).toString(36);
64
- }
65
- var hash_browser_esm_default = murmur2;
66
-
67
- // ../../node_modules/.pnpm/@rc-component+util@1.12.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@rc-component/util/es/Dom/canUseDom.js
68
- function canUseDom() {
69
- return !!(typeof window !== "undefined" && window.document && window.document.createElement);
70
- }
71
-
72
- // ../../node_modules/.pnpm/@rc-component+util@1.12.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@rc-component/util/es/Dom/contains.js
73
- function contains(root, n) {
74
- if (!root) {
75
- return false;
76
- }
77
- if (root.contains) {
78
- return root.contains(n);
79
- }
80
- let node2 = n;
81
- while (node2) {
82
- if (node2 === root) {
83
- return true;
84
- }
85
- node2 = node2.parentNode;
86
- }
87
- return false;
88
- }
89
-
90
- // ../../node_modules/.pnpm/@rc-component+util@1.12.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@rc-component/util/es/Dom/dynamicCSS.js
91
- var APPEND_ORDER = "data-rc-order";
92
- var APPEND_PRIORITY = "data-rc-priority";
93
- var MARK_KEY = `rc-util-key`;
94
- var containerCache = /* @__PURE__ */ new Map();
95
- function getMark({
96
- mark
97
- } = {}) {
98
- if (mark) {
99
- return mark.startsWith("data-") ? mark : `data-${mark}`;
100
- }
101
- return MARK_KEY;
102
- }
103
- function getContainer(option) {
104
- if (option.attachTo) {
105
- return option.attachTo;
106
- }
107
- const head = document.querySelector("head");
108
- return head || document.body;
109
- }
110
- function getOrder(prepend) {
111
- if (prepend === "queue") {
112
- return "prependQueue";
113
- }
114
- return prepend ? "prepend" : "append";
115
- }
116
- function findStyles(container) {
117
- return Array.from((containerCache.get(container) || container).children).filter((node2) => node2.tagName === "STYLE");
118
- }
119
- function injectCSS(css, option = {}) {
120
- if (!canUseDom()) {
121
- return null;
122
- }
123
- const {
124
- csp,
125
- prepend,
126
- priority = 0
127
- } = option;
128
- const mergedOrder = getOrder(prepend);
129
- const isPrependQueue = mergedOrder === "prependQueue";
130
- const styleNode = document.createElement("style");
131
- styleNode.setAttribute(APPEND_ORDER, mergedOrder);
132
- if (isPrependQueue && priority) {
133
- styleNode.setAttribute(APPEND_PRIORITY, `${priority}`);
134
- }
135
- if (csp?.nonce) {
136
- styleNode.nonce = csp?.nonce;
137
- }
138
- styleNode.innerHTML = css;
139
- const container = getContainer(option);
140
- const {
141
- firstChild
142
- } = container;
143
- if (prepend) {
144
- if (isPrependQueue) {
145
- const existStyle = (option.styles || findStyles(container)).filter((node2) => {
146
- if (!["prepend", "prependQueue"].includes(node2.getAttribute(APPEND_ORDER))) {
147
- return false;
148
- }
149
- const nodePriority = Number(node2.getAttribute(APPEND_PRIORITY) || 0);
150
- return priority >= nodePriority;
151
- });
152
- if (existStyle.length) {
153
- container.insertBefore(styleNode, existStyle[existStyle.length - 1].nextSibling);
154
- return styleNode;
155
- }
156
- }
157
- container.insertBefore(styleNode, firstChild);
158
- } else {
159
- container.appendChild(styleNode);
160
- }
161
- return styleNode;
162
- }
163
- function findExistNode(key, option = {}) {
164
- let {
165
- styles
166
- } = option;
167
- styles || (styles = findStyles(getContainer(option)));
168
- return styles.find((node2) => node2.getAttribute(getMark(option)) === key);
169
- }
170
- function removeCSS(key, option = {}) {
171
- const existNode = findExistNode(key, option);
172
- if (existNode) {
173
- const container = getContainer(option);
174
- container.removeChild(existNode);
175
- }
176
- }
177
- function syncRealContainer(container, option) {
178
- const cachedRealContainer = containerCache.get(container);
179
- if (!cachedRealContainer || !contains(document, cachedRealContainer)) {
180
- const placeholderStyle = injectCSS("", option);
181
- const {
182
- parentNode
183
- } = placeholderStyle;
184
- containerCache.set(container, parentNode);
185
- container.removeChild(placeholderStyle);
186
- }
187
- }
188
- function updateCSS(css, key, originOption = {}) {
189
- const container = getContainer(originOption);
190
- const styles = findStyles(container);
191
- const option = {
192
- ...originOption,
193
- styles
194
- };
195
- syncRealContainer(container, option);
196
- const existNode = findExistNode(key, option);
197
- if (existNode) {
198
- if (option.csp?.nonce && existNode.nonce !== option.csp?.nonce) {
199
- existNode.nonce = option.csp?.nonce;
200
- }
201
- if (existNode.innerHTML !== css) {
202
- existNode.innerHTML = css;
203
- }
204
- return existNode;
205
- }
206
- const newNode = injectCSS(css, option);
207
- newNode.setAttribute(getMark(option), key);
208
- return newNode;
209
- }
210
-
211
- // ../../node_modules/.pnpm/@ant-design+cssinjs@2.1.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.js
212
- import { useContext as useContext3 } from "react";
213
-
214
- // ../../node_modules/.pnpm/@rc-component+util@1.12.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@rc-component/util/es/hooks/useMemo.js
215
- import * as React from "react";
216
- function useMemo(getValue, condition, shouldUpdate) {
217
- const cacheRef = React.useRef({});
218
- if (!("value" in cacheRef.current) || shouldUpdate(cacheRef.current.condition, condition)) {
219
- cacheRef.current.value = getValue();
220
- cacheRef.current.condition = condition;
221
- }
222
- return cacheRef.current.value;
223
- }
224
-
225
- // ../../node_modules/.pnpm/@rc-component+util@1.12.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@rc-component/util/es/warning.js
226
- var warned = {};
227
- var preWarningFns = [];
228
- var preMessage = (fn) => {
229
- preWarningFns.push(fn);
230
- };
231
- function warning(valid, message) {
232
- if (false) {
233
- const finalMessage = preWarningFns.reduce((msg, preMessageFn) => preMessageFn(msg ?? "", "warning"), message);
234
- if (finalMessage) {
235
- console.error(`Warning: ${finalMessage}`);
236
- }
237
- }
238
- }
239
- function note(valid, message) {
240
- if (false) {
241
- const finalMessage = preWarningFns.reduce((msg, preMessageFn) => preMessageFn(msg ?? "", "note"), message);
242
- if (finalMessage) {
243
- console.warn(`Note: ${finalMessage}`);
244
- }
245
- }
246
- }
247
- function resetWarned() {
248
- warned = {};
249
- }
250
- function call(method, valid, message) {
251
- if (!valid && !warned[message]) {
252
- method(false, message);
253
- warned[message] = true;
254
- }
255
- }
256
- function warningOnce(valid, message) {
257
- call(warning, valid, message);
258
- }
259
- function noteOnce(valid, message) {
260
- call(note, valid, message);
261
- }
262
- warningOnce.preMessage = preMessage;
263
- warningOnce.resetWarned = resetWarned;
264
- warningOnce.noteOnce = noteOnce;
265
- var warning_default = warningOnce;
266
-
267
- // ../../node_modules/.pnpm/@rc-component+util@1.12.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@rc-component/util/es/isEqual.js
268
- function isEqual(obj1, obj2, shallow = false) {
269
- const refSet = /* @__PURE__ */ new Set();
270
- function deepEqual(a, b, level = 1) {
271
- const circular = refSet.has(a);
272
- warning_default(!circular, "Warning: There may be circular references");
273
- if (circular) {
274
- return false;
275
- }
276
- if (a === b) {
277
- return true;
278
- }
279
- if (shallow && level > 1) {
280
- return false;
281
- }
282
- refSet.add(a);
283
- const newLevel = level + 1;
284
- if (Array.isArray(a)) {
285
- if (!Array.isArray(b) || a.length !== b.length) {
286
- return false;
287
- }
288
- for (let i = 0; i < a.length; i++) {
289
- if (!deepEqual(a[i], b[i], newLevel)) {
290
- return false;
291
- }
292
- }
293
- return true;
294
- }
295
- if (a && b && typeof a === "object" && typeof b === "object") {
296
- const keys = Object.keys(a);
297
- if (keys.length !== Object.keys(b).length) {
298
- return false;
299
- }
300
- return keys.every((key) => deepEqual(a[key], b[key], newLevel));
301
- }
302
- return false;
303
- }
304
- return deepEqual(obj1, obj2);
305
- }
306
- var isEqual_default = isEqual;
307
-
308
- // ../../node_modules/.pnpm/@ant-design+cssinjs@2.1.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@ant-design/cssinjs/es/StyleContext.js
309
- import * as React2 from "react";
310
-
311
- // ../../node_modules/.pnpm/@ant-design+cssinjs@2.1.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@ant-design/cssinjs/es/Cache.js
312
- var SPLIT = "%";
313
- function pathKey(keys) {
314
- return keys.join(SPLIT);
315
- }
316
- var updateId = 0;
317
- var Entity = class {
318
- constructor(instanceId) {
319
- __publicField(this, "instanceId");
320
- /** @private Internal cache map. Do not access this directly */
321
- __publicField(this, "cache", /* @__PURE__ */ new Map());
322
- /** @private Record update times for each key */
323
- __publicField(this, "updateTimes", /* @__PURE__ */ new Map());
324
- __publicField(this, "extracted", /* @__PURE__ */ new Set());
325
- this.instanceId = instanceId;
326
- }
327
- get(keys) {
328
- return this.opGet(pathKey(keys));
329
- }
330
- /** A fast get cache with `get` concat. */
331
- opGet(keyPathStr) {
332
- return this.cache.get(keyPathStr) || null;
333
- }
334
- update(keys, valueFn) {
335
- return this.opUpdate(pathKey(keys), valueFn);
336
- }
337
- /** A fast get cache with `get` concat. */
338
- opUpdate(keyPathStr, valueFn) {
339
- const prevValue = this.cache.get(keyPathStr);
340
- const nextValue = valueFn(prevValue);
341
- if (nextValue === null) {
342
- this.cache.delete(keyPathStr);
343
- this.updateTimes.delete(keyPathStr);
344
- } else {
345
- this.cache.set(keyPathStr, nextValue);
346
- this.updateTimes.set(keyPathStr, updateId);
347
- updateId += 1;
348
- }
349
- }
350
- };
351
- var Cache_default = Entity;
352
-
353
- // ../../node_modules/.pnpm/@ant-design+cssinjs@2.1.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@ant-design/cssinjs/es/transformers/autoPrefix.js
354
- var AUTO_PREFIX = {};
355
- var transform = AUTO_PREFIX;
356
- var autoPrefix_default = transform;
357
-
358
- // ../../node_modules/.pnpm/@ant-design+cssinjs@2.1.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@ant-design/cssinjs/es/StyleContext.js
359
- var ATTR_TOKEN = "data-token-hash";
360
- var ATTR_MARK = "data-css-hash";
361
- var CSS_IN_JS_INSTANCE = "__cssinjs_instance__";
362
- function createCache() {
363
- const cssinjsInstanceId = Math.random().toString(12).slice(2);
364
- if (typeof document !== "undefined" && document.head && document.body) {
365
- const styles = document.body.querySelectorAll(`style[${ATTR_MARK}]`) || [];
366
- const {
367
- firstChild
368
- } = document.head;
369
- Array.from(styles).forEach((style) => {
370
- style[CSS_IN_JS_INSTANCE] || (style[CSS_IN_JS_INSTANCE] = cssinjsInstanceId);
371
- if (style[CSS_IN_JS_INSTANCE] === cssinjsInstanceId) {
372
- document.head.insertBefore(style, firstChild);
373
- }
374
- });
375
- const styleHash = {};
376
- Array.from(document.querySelectorAll(`style[${ATTR_MARK}]`)).forEach((style) => {
377
- const hash2 = style.getAttribute(ATTR_MARK);
378
- if (styleHash[hash2]) {
379
- if (style[CSS_IN_JS_INSTANCE] === cssinjsInstanceId) {
380
- style.parentNode?.removeChild(style);
381
- }
382
- } else {
383
- styleHash[hash2] = true;
384
- }
385
- });
386
- }
387
- return new Cache_default(cssinjsInstanceId);
388
- }
389
- var StyleContext = /* @__PURE__ */ React2.createContext({
390
- hashPriority: "low",
391
- cache: createCache(),
392
- defaultCache: true,
393
- autoPrefix: false
394
- });
395
- var StyleProvider = (props) => {
396
- const {
397
- children,
398
- ...restProps
399
- } = props;
400
- const parentContext = React2.useContext(StyleContext);
401
- const context = useMemo(() => {
402
- const mergedContext = {
403
- ...parentContext
404
- };
405
- Object.keys(restProps).forEach((key) => {
406
- const value = restProps[key];
407
- if (restProps[key] !== void 0) {
408
- mergedContext[key] = value;
409
- }
410
- });
411
- const {
412
- cache,
413
- transformers = []
414
- } = restProps;
415
- mergedContext.cache = mergedContext.cache || createCache();
416
- mergedContext.defaultCache = !cache && parentContext.defaultCache;
417
- if (transformers.includes(AUTO_PREFIX)) {
418
- mergedContext.autoPrefix = true;
419
- }
420
- return mergedContext;
421
- }, [parentContext, restProps], (prev2, next2) => !isEqual_default(prev2[0], next2[0], true) || !isEqual_default(prev2[1], next2[1], true));
422
- return /* @__PURE__ */ React2.createElement(StyleContext.Provider, {
423
- value: context
424
- }, children);
425
- };
426
- var StyleContext_default = StyleContext;
427
-
428
- // ../../node_modules/.pnpm/@ant-design+cssinjs@2.1.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@ant-design/cssinjs/es/theme/calc/calculator.js
429
- var AbstractCalculator = class {
430
- };
431
- var calculator_default = AbstractCalculator;
432
-
433
- // ../../node_modules/.pnpm/@ant-design+cssinjs@2.1.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@ant-design/cssinjs/es/theme/calc/CSSCalculator.js
434
- var CALC_UNIT = "CALC_UNIT";
435
- var regexp = new RegExp(CALC_UNIT, "g");
436
- function unit(value) {
437
- if (typeof value === "number") {
438
- return `${value}${CALC_UNIT}`;
439
- }
440
- return value;
441
- }
442
- var CSSCalculator = class _CSSCalculator extends calculator_default {
443
- constructor(num, unitlessCssVar) {
444
- super();
445
- __publicField(this, "result", "");
446
- __publicField(this, "unitlessCssVar");
447
- __publicField(this, "lowPriority");
448
- const numType = typeof num;
449
- this.unitlessCssVar = unitlessCssVar;
450
- if (num instanceof _CSSCalculator) {
451
- this.result = `(${num.result})`;
452
- } else if (numType === "number") {
453
- this.result = unit(num);
454
- } else if (numType === "string") {
455
- this.result = num;
456
- }
457
- }
458
- add(num) {
459
- if (num instanceof _CSSCalculator) {
460
- this.result = `${this.result} + ${num.getResult()}`;
461
- } else if (typeof num === "number" || typeof num === "string") {
462
- this.result = `${this.result} + ${unit(num)}`;
463
- }
464
- this.lowPriority = true;
465
- return this;
466
- }
467
- sub(num) {
468
- if (num instanceof _CSSCalculator) {
469
- this.result = `${this.result} - ${num.getResult()}`;
470
- } else if (typeof num === "number" || typeof num === "string") {
471
- this.result = `${this.result} - ${unit(num)}`;
472
- }
473
- this.lowPriority = true;
474
- return this;
475
- }
476
- mul(num) {
477
- if (this.lowPriority) {
478
- this.result = `(${this.result})`;
479
- }
480
- if (num instanceof _CSSCalculator) {
481
- this.result = `${this.result} * ${num.getResult(true)}`;
482
- } else if (typeof num === "number" || typeof num === "string") {
483
- this.result = `${this.result} * ${num}`;
484
- }
485
- this.lowPriority = false;
486
- return this;
487
- }
488
- div(num) {
489
- if (this.lowPriority) {
490
- this.result = `(${this.result})`;
491
- }
492
- if (num instanceof _CSSCalculator) {
493
- this.result = `${this.result} / ${num.getResult(true)}`;
494
- } else if (typeof num === "number" || typeof num === "string") {
495
- this.result = `${this.result} / ${num}`;
496
- }
497
- this.lowPriority = false;
498
- return this;
499
- }
500
- getResult(force) {
501
- return this.lowPriority || force ? `(${this.result})` : this.result;
502
- }
503
- equal(options) {
504
- const {
505
- unit: cssUnit
506
- } = options || {};
507
- let mergedUnit = true;
508
- if (typeof cssUnit === "boolean") {
509
- mergedUnit = cssUnit;
510
- } else if (Array.from(this.unitlessCssVar).some((cssVar) => this.result.includes(cssVar))) {
511
- mergedUnit = false;
512
- }
513
- this.result = this.result.replace(regexp, mergedUnit ? "px" : "");
514
- if (typeof this.lowPriority !== "undefined") {
515
- return `calc(${this.result})`;
516
- }
517
- return this.result;
518
- }
519
- };
520
-
521
- // ../../node_modules/.pnpm/@ant-design+cssinjs@2.1.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@ant-design/cssinjs/es/theme/calc/NumCalculator.js
522
- var NumCalculator = class _NumCalculator extends calculator_default {
523
- constructor(num) {
524
- super();
525
- __publicField(this, "result", 0);
526
- if (num instanceof _NumCalculator) {
527
- this.result = num.result;
528
- } else if (typeof num === "number") {
529
- this.result = num;
530
- }
531
- }
532
- add(num) {
533
- if (num instanceof _NumCalculator) {
534
- this.result += num.result;
535
- } else if (typeof num === "number") {
536
- this.result += num;
537
- }
538
- return this;
539
- }
540
- sub(num) {
541
- if (num instanceof _NumCalculator) {
542
- this.result -= num.result;
543
- } else if (typeof num === "number") {
544
- this.result -= num;
545
- }
546
- return this;
547
- }
548
- mul(num) {
549
- if (num instanceof _NumCalculator) {
550
- this.result *= num.result;
551
- } else if (typeof num === "number") {
552
- this.result *= num;
553
- }
554
- return this;
555
- }
556
- div(num) {
557
- if (num instanceof _NumCalculator) {
558
- this.result /= num.result;
559
- } else if (typeof num === "number") {
560
- this.result /= num;
561
- }
562
- return this;
563
- }
564
- equal() {
565
- return this.result;
566
- }
567
- };
568
-
569
- // ../../node_modules/.pnpm/@ant-design+cssinjs@2.1.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@ant-design/cssinjs/es/theme/calc/index.js
570
- var genCalc = (type, unitlessCssVar) => {
571
- const Calculator = type === "css" ? CSSCalculator : NumCalculator;
572
- return (num) => new Calculator(num, unitlessCssVar);
573
- };
574
- var calc_default = genCalc;
575
-
576
- // ../../node_modules/.pnpm/@ant-design+cssinjs@2.1.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@ant-design/cssinjs/es/theme/ThemeCache.js
577
- function sameDerivativeOption(left, right) {
578
- if (left.length !== right.length) {
579
- return false;
580
- }
581
- for (let i = 0; i < left.length; i++) {
582
- if (left[i] !== right[i]) {
583
- return false;
584
- }
585
- }
586
- return true;
587
- }
588
- var _ThemeCache = class _ThemeCache {
589
- constructor() {
590
- __publicField(this, "cache");
591
- __publicField(this, "keys");
592
- __publicField(this, "cacheCallTimes");
593
- this.cache = /* @__PURE__ */ new Map();
594
- this.keys = [];
595
- this.cacheCallTimes = 0;
596
- }
597
- size() {
598
- return this.keys.length;
599
- }
600
- internalGet(derivativeOption, updateCallTimes = false) {
601
- let cache = {
602
- map: this.cache
603
- };
604
- derivativeOption.forEach((derivative) => {
605
- if (!cache) {
606
- cache = void 0;
607
- } else {
608
- cache = cache?.map?.get(derivative);
609
- }
610
- });
611
- if (cache?.value && updateCallTimes) {
612
- cache.value[1] = this.cacheCallTimes++;
613
- }
614
- return cache?.value;
615
- }
616
- get(derivativeOption) {
617
- return this.internalGet(derivativeOption, true)?.[0];
618
- }
619
- has(derivativeOption) {
620
- return !!this.internalGet(derivativeOption);
621
- }
622
- set(derivativeOption, value) {
623
- if (!this.has(derivativeOption)) {
624
- if (this.size() + 1 > _ThemeCache.MAX_CACHE_SIZE + _ThemeCache.MAX_CACHE_OFFSET) {
625
- const [targetKey] = this.keys.reduce((result, key) => {
626
- const [, callTimes] = result;
627
- if (this.internalGet(key)[1] < callTimes) {
628
- return [key, this.internalGet(key)[1]];
629
- }
630
- return result;
631
- }, [this.keys[0], this.cacheCallTimes]);
632
- this.delete(targetKey);
633
- }
634
- this.keys.push(derivativeOption);
635
- }
636
- let cache = this.cache;
637
- derivativeOption.forEach((derivative, index) => {
638
- if (index === derivativeOption.length - 1) {
639
- cache.set(derivative, {
640
- value: [value, this.cacheCallTimes++]
641
- });
642
- } else {
643
- const cacheValue = cache.get(derivative);
644
- if (!cacheValue) {
645
- cache.set(derivative, {
646
- map: /* @__PURE__ */ new Map()
647
- });
648
- } else if (!cacheValue.map) {
649
- cacheValue.map = /* @__PURE__ */ new Map();
650
- }
651
- cache = cache.get(derivative).map;
652
- }
653
- });
654
- }
655
- deleteByPath(currentCache, derivatives) {
656
- const cache = currentCache.get(derivatives[0]);
657
- if (derivatives.length === 1) {
658
- if (!cache.map) {
659
- currentCache.delete(derivatives[0]);
660
- } else {
661
- currentCache.set(derivatives[0], {
662
- map: cache.map
663
- });
664
- }
665
- return cache.value?.[0];
666
- }
667
- const result = this.deleteByPath(cache.map, derivatives.slice(1));
668
- if ((!cache.map || cache.map.size === 0) && !cache.value) {
669
- currentCache.delete(derivatives[0]);
670
- }
671
- return result;
672
- }
673
- delete(derivativeOption) {
674
- if (this.has(derivativeOption)) {
675
- this.keys = this.keys.filter((item) => !sameDerivativeOption(item, derivativeOption));
676
- return this.deleteByPath(this.cache, derivativeOption);
677
- }
678
- return void 0;
679
- }
680
- };
681
- __publicField(_ThemeCache, "MAX_CACHE_SIZE", 20);
682
- __publicField(_ThemeCache, "MAX_CACHE_OFFSET", 5);
683
- var ThemeCache = _ThemeCache;
684
-
685
- // ../../node_modules/.pnpm/@ant-design+cssinjs@2.1.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@ant-design/cssinjs/es/theme/Theme.js
686
- var uuid = 0;
687
- var Theme = class {
688
- constructor(derivatives) {
689
- __publicField(this, "derivatives");
690
- __publicField(this, "id");
691
- this.derivatives = Array.isArray(derivatives) ? derivatives : [derivatives];
692
- this.id = uuid;
693
- if (derivatives.length === 0) {
694
- warning(derivatives.length > 0, "[Ant Design CSS-in-JS] Theme should have at least one derivative function.");
695
- }
696
- uuid += 1;
697
- }
698
- getDerivativeToken(token2) {
699
- return this.derivatives.reduce((result, derivative) => derivative(token2, result), void 0);
700
- }
701
- };
702
-
703
- // ../../node_modules/.pnpm/@ant-design+cssinjs@2.1.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@ant-design/cssinjs/es/theme/createTheme.js
704
- var cacheThemes = new ThemeCache();
705
- function createTheme(derivatives) {
706
- const derivativeArr = Array.isArray(derivatives) ? derivatives : [derivatives];
707
- if (!cacheThemes.has(derivativeArr)) {
708
- cacheThemes.set(derivativeArr, new Theme(derivativeArr));
709
- }
710
- return cacheThemes.get(derivativeArr);
711
- }
712
-
713
- // ../../node_modules/.pnpm/@ant-design+cssinjs@2.1.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@ant-design/cssinjs/es/util/index.js
714
- var resultCache = /* @__PURE__ */ new WeakMap();
715
- var RESULT_VALUE = {};
716
- function memoResult(callback, deps) {
717
- let current = resultCache;
718
- for (let i = 0; i < deps.length; i += 1) {
719
- const dep = deps[i];
720
- if (!current.has(dep)) {
721
- current.set(dep, /* @__PURE__ */ new WeakMap());
722
- }
723
- current = current.get(dep);
724
- }
725
- if (!current.has(RESULT_VALUE)) {
726
- current.set(RESULT_VALUE, callback());
727
- }
728
- return current.get(RESULT_VALUE);
729
- }
730
- var flattenTokenCache = /* @__PURE__ */ new WeakMap();
731
- function flattenToken(token2) {
732
- let str = flattenTokenCache.get(token2) || "";
733
- if (!str) {
734
- Object.keys(token2).forEach((key) => {
735
- const value = token2[key];
736
- str += key;
737
- if (value instanceof Theme) {
738
- str += value.id;
739
- } else if (value && typeof value === "object") {
740
- str += flattenToken(value);
741
- } else {
742
- str += value;
743
- }
744
- });
745
- str = hash_browser_esm_default(str);
746
- flattenTokenCache.set(token2, str);
747
- }
748
- return str;
749
- }
750
- function token2key(token2, salt) {
751
- return hash_browser_esm_default(`${salt}_${flattenToken(token2)}`);
752
- }
753
- var randomSelectorKey = `random-${Date.now()}-${Math.random()}`.replace(/\./g, "");
754
- var checkContent = "_bAmBoO_";
755
- function supportSelector(styleStr, handleElement, supportCheck) {
756
- if (canUseDom()) {
757
- updateCSS(styleStr, randomSelectorKey);
758
- const ele = document.createElement("div");
759
- ele.style.position = "fixed";
760
- ele.style.left = "0";
761
- ele.style.top = "0";
762
- handleElement?.(ele);
763
- document.body.appendChild(ele);
764
- if (false) {
765
- ele.innerHTML = "Test";
766
- ele.style.zIndex = "9999999";
767
- }
768
- const support = supportCheck ? supportCheck(ele) : getComputedStyle(ele).content?.includes(checkContent);
769
- ele.parentNode?.removeChild(ele);
770
- removeCSS(randomSelectorKey);
771
- return support;
772
- }
773
- return false;
774
- }
775
- var canWhere = void 0;
776
- function supportWhere() {
777
- if (canWhere === void 0) {
778
- canWhere = supportSelector(`:where(.${randomSelectorKey}) { content: "${checkContent}"!important; }`, (ele) => {
779
- ele.className = randomSelectorKey;
780
- });
781
- }
782
- return canWhere;
783
- }
784
- var canLogic = void 0;
785
- function supportLogicProps() {
786
- if (canLogic === void 0) {
787
- canLogic = supportSelector(`.${randomSelectorKey} { inset-block: 93px !important; }`, (ele) => {
788
- ele.className = randomSelectorKey;
789
- }, (ele) => getComputedStyle(ele).bottom === "93px");
790
- }
791
- return canLogic;
792
- }
793
- var isClientSide = canUseDom();
794
- function unit2(num) {
795
- if (typeof num === "number") {
796
- return `${num}px`;
797
- }
798
- return num;
799
- }
800
- function toStyleStr(style, tokenKey, styleId, customizeAttrs = {}, plain = false) {
801
- if (plain) {
802
- return style;
803
- }
804
- const attrs = {
805
- ...customizeAttrs,
806
- [ATTR_TOKEN]: tokenKey,
807
- [ATTR_MARK]: styleId
808
- };
809
- const attrStr = Object.keys(attrs).map((attr) => {
810
- const val = attrs[attr];
811
- return val ? `${attr}="${val}"` : null;
812
- }).filter((v) => v).join(" ");
813
- return `<style ${attrStr}>${style}</style>`;
814
- }
815
- function where(options) {
816
- const {
817
- hashCls,
818
- hashPriority = "low"
819
- } = options || {};
820
- if (!hashCls) {
821
- return "";
822
- }
823
- const hashSelector = `.${hashCls}`;
824
- return hashPriority === "low" ? `:where(${hashSelector})` : hashSelector;
825
- }
826
- var isNonNullable = (val) => {
827
- return val !== void 0 && val !== null;
828
- };
829
- function injectCSPNonce(config, nonce) {
830
- const nonceStr = typeof nonce === "function" ? nonce() : nonce;
831
- if (nonceStr) {
832
- return {
833
- ...config,
834
- csp: {
835
- ...config.csp,
836
- nonce: nonceStr
837
- }
838
- };
839
- }
840
- return config;
841
- }
842
-
843
- // ../../node_modules/.pnpm/@ant-design+cssinjs@2.1.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@ant-design/cssinjs/es/util/css-variables.js
844
- var token2CSSVar = (token2, prefix2 = "") => {
845
- return `--${prefix2 ? `${prefix2}-` : ""}${token2}`.replace(/([a-z0-9])([A-Z])/g, "$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g, "$1-$2").replace(/([a-z])([A-Z0-9])/g, "$1-$2").toLowerCase();
846
- };
847
- var serializeCSSVar = (cssVars, hashId, options) => {
848
- const {
849
- hashCls,
850
- hashPriority = "low",
851
- scope
852
- } = options || {};
853
- if (!Object.keys(cssVars).length) {
854
- return "";
855
- }
856
- const baseSelector = `${where({
857
- hashCls,
858
- hashPriority
859
- })}.${hashId}`;
860
- const scopes = [scope].flat().filter(Boolean);
861
- const selector = scopes.length ? scopes.map((s) => `${baseSelector}.${s}`).join(", ") : baseSelector;
862
- return `${selector}{${Object.entries(cssVars).map(([key, value]) => `${key}:${value};`).join("")}}`;
863
- };
864
- var transformToken = (token2, themeKey, config) => {
865
- const {
866
- hashCls,
867
- hashPriority = "low",
868
- prefix: prefix2,
869
- unitless,
870
- ignore,
871
- preserve
872
- } = config || {};
873
- const cssVars = {};
874
- const result = {};
875
- Object.entries(token2).forEach(([key, value]) => {
876
- if (preserve?.[key]) {
877
- result[key] = value;
878
- } else if ((typeof value === "string" || typeof value === "number") && !ignore?.[key]) {
879
- const cssVar = token2CSSVar(key, prefix2);
880
- cssVars[cssVar] = typeof value === "number" && !unitless?.[key] ? `${value}px` : String(value);
881
- result[key] = `var(${cssVar})`;
882
- }
883
- });
884
- return [result, serializeCSSVar(cssVars, themeKey, {
885
- scope: config?.scope,
886
- hashCls,
887
- hashPriority
888
- })];
889
- };
890
-
891
- // ../../node_modules/.pnpm/@ant-design+cssinjs@2.1.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@ant-design/cssinjs/es/hooks/useGlobalCache.js
892
- import * as React3 from "react";
893
- import { useInsertionEffect } from "react";
894
-
895
- // ../../node_modules/.pnpm/@ant-design+cssinjs@2.1.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@ant-design/cssinjs/es/hooks/useHMR.js
896
- function useProdHMR() {
897
- return false;
898
- }
899
- var useHMR_default = true ? useProdHMR : useDevHMR;
900
- if (false) {
901
- const win = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : null;
902
- if (win && typeof win.webpackHotUpdate === "function") {
903
- const originWebpackHotUpdate = win.webpackHotUpdate;
904
- win.webpackHotUpdate = (...args) => {
905
- webpackHMR = true;
906
- setTimeout(() => {
907
- webpackHMR = false;
908
- }, 0);
909
- return originWebpackHotUpdate(...args);
910
- };
911
- }
912
- }
913
-
914
- // ../../node_modules/.pnpm/@ant-design+cssinjs@2.1.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@ant-design/cssinjs/es/hooks/useGlobalCache.js
915
- var effectMap = /* @__PURE__ */ new Map();
916
- function useGlobalCache(prefix2, keyPath, cacheFn, onCacheRemove, onCacheEffect) {
917
- const {
918
- cache: globalCache
919
- } = React3.useContext(StyleContext_default);
920
- const fullPath = [prefix2, ...keyPath];
921
- const fullPathStr = pathKey(fullPath);
922
- const HMRUpdate = useHMR_default();
923
- const buildCache = (updater) => {
924
- globalCache.opUpdate(fullPathStr, (prevCache) => {
925
- const [times = 0, cache] = prevCache || [void 0, void 0];
926
- let tmpCache = cache;
927
- if (false) {
928
- onCacheRemove?.(tmpCache, HMRUpdate);
929
- tmpCache = null;
930
- }
931
- const mergedCache = tmpCache || cacheFn();
932
- const data = [times, mergedCache];
933
- return updater ? updater(data) : data;
934
- });
935
- };
936
- React3.useMemo(
937
- () => {
938
- buildCache();
939
- },
940
- /* eslint-disable react-hooks/exhaustive-deps */
941
- [fullPathStr]
942
- /* eslint-enable */
943
- );
944
- let cacheEntity = globalCache.opGet(fullPathStr);
945
- if (false) {
946
- buildCache();
947
- cacheEntity = globalCache.opGet(fullPathStr);
948
- }
949
- const cacheContent = cacheEntity[1];
950
- useInsertionEffect(() => {
951
- buildCache(([times, cache]) => [times + 1, cache]);
952
- if (!effectMap.has(fullPathStr)) {
953
- onCacheEffect?.(cacheContent);
954
- effectMap.set(fullPathStr, true);
955
- Promise.resolve().then(() => {
956
- effectMap.delete(fullPathStr);
957
- });
958
- }
959
- return () => {
960
- globalCache.opUpdate(fullPathStr, (prevCache) => {
961
- const [times = 0, cache] = prevCache || [];
962
- const nextCount = times - 1;
963
- if (nextCount === 0) {
964
- onCacheRemove?.(cache, false);
965
- effectMap.delete(fullPathStr);
966
- return null;
967
- }
968
- return [times - 1, cache];
969
- });
970
- };
971
- }, [fullPathStr]);
972
- return cacheContent;
973
- }
974
-
975
- // ../../node_modules/.pnpm/@ant-design+cssinjs@2.1.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.js
976
- var EMPTY_OVERRIDE = {};
977
- var hashPrefix = false ? "css-dev-only-do-not-override" : "css";
978
- var tokenKeys = /* @__PURE__ */ new Map();
979
- function recordCleanToken(tokenKey) {
980
- tokenKeys.set(tokenKey, (tokenKeys.get(tokenKey) || 0) + 1);
981
- }
982
- function removeStyleTags(key, instanceId) {
983
- if (typeof document !== "undefined") {
984
- const styles = document.querySelectorAll(`style[${ATTR_TOKEN}="${key}"]`);
985
- styles.forEach((style) => {
986
- if (style[CSS_IN_JS_INSTANCE] === instanceId) {
987
- style.parentNode?.removeChild(style);
988
- }
989
- });
990
- }
991
- }
992
- var TOKEN_THRESHOLD = -1;
993
- function cleanTokenStyle(tokenKey, instanceId) {
994
- tokenKeys.set(tokenKey, (tokenKeys.get(tokenKey) || 0) - 1);
995
- const cleanableKeyList = /* @__PURE__ */ new Set();
996
- tokenKeys.forEach((value, key) => {
997
- if (value <= 0) cleanableKeyList.add(key);
998
- });
999
- if (tokenKeys.size - cleanableKeyList.size > TOKEN_THRESHOLD) {
1000
- cleanableKeyList.forEach((key) => {
1001
- removeStyleTags(key, instanceId);
1002
- tokenKeys.delete(key);
1003
- });
1004
- }
1005
- }
1006
- var getComputedToken = (originToken, overrideToken, theme, format) => {
1007
- const derivativeToken = theme.getDerivativeToken(originToken);
1008
- let mergedDerivativeToken = {
1009
- ...derivativeToken,
1010
- ...overrideToken
1011
- };
1012
- if (format) {
1013
- mergedDerivativeToken = format(mergedDerivativeToken);
1014
- }
1015
- return mergedDerivativeToken;
1016
- };
1017
- var TOKEN_PREFIX = "token";
1018
- function useCacheToken(theme, tokens, option) {
1019
- const {
1020
- cache: {
1021
- instanceId
1022
- },
1023
- container,
1024
- hashPriority
1025
- } = useContext3(StyleContext_default);
1026
- const {
1027
- salt = "",
1028
- override = EMPTY_OVERRIDE,
1029
- formatToken,
1030
- getComputedToken: compute,
1031
- cssVar,
1032
- nonce
1033
- } = option;
1034
- const mergedToken = memoResult(() => Object.assign({}, ...tokens), tokens);
1035
- const tokenStr = flattenToken(mergedToken);
1036
- const overrideTokenStr = flattenToken(override);
1037
- const cssVarStr = flattenToken(cssVar);
1038
- const cachedToken = useGlobalCache(TOKEN_PREFIX, [salt, theme.id, tokenStr, overrideTokenStr, cssVarStr], () => {
1039
- const mergedDerivativeToken = compute ? compute(mergedToken, override, theme) : getComputedToken(mergedToken, override, theme, formatToken);
1040
- const actualToken = {
1041
- ...mergedDerivativeToken
1042
- };
1043
- const mergedSalt = `${salt}_${cssVar.prefix}`;
1044
- const hashId = hash_browser_esm_default(mergedSalt);
1045
- const hashCls = `${hashPrefix}-${hashId}`;
1046
- actualToken._tokenKey = token2key(actualToken, mergedSalt);
1047
- const [tokenWithCssVar, cssVarsStr] = transformToken(mergedDerivativeToken, cssVar.key, {
1048
- prefix: cssVar.prefix,
1049
- ignore: cssVar.ignore,
1050
- unitless: cssVar.unitless,
1051
- preserve: cssVar.preserve,
1052
- hashPriority,
1053
- hashCls: cssVar.hashed ? hashCls : void 0
1054
- });
1055
- tokenWithCssVar._hashId = hashId;
1056
- recordCleanToken(cssVar.key);
1057
- return [tokenWithCssVar, hashCls, actualToken, cssVarsStr, cssVar.key];
1058
- }, ([, , , , themeKey]) => {
1059
- cleanTokenStyle(themeKey, instanceId);
1060
- }, ([, , , cssVarsStr, themeKey]) => {
1061
- if (!cssVarsStr) {
1062
- return;
1063
- }
1064
- let mergedCSSConfig = {
1065
- mark: ATTR_MARK,
1066
- prepend: "queue",
1067
- attachTo: container,
1068
- priority: -999
1069
- };
1070
- mergedCSSConfig = injectCSPNonce(mergedCSSConfig, nonce);
1071
- const style = updateCSS(cssVarsStr, hash_browser_esm_default(`css-var-${themeKey}`), mergedCSSConfig);
1072
- style[CSS_IN_JS_INSTANCE] = instanceId;
1073
- style.setAttribute(ATTR_TOKEN, themeKey);
1074
- });
1075
- return cachedToken;
1076
- }
1077
- var extract = (cache, effectStyles, options) => {
1078
- const [, , realToken, styleStr, cssVarKey] = cache;
1079
- const {
1080
- plain
1081
- } = options || {};
1082
- if (!styleStr) {
1083
- return null;
1084
- }
1085
- const styleId = realToken._tokenKey;
1086
- const order = -999;
1087
- const sharedAttrs = {
1088
- "data-rc-order": "prependQueue",
1089
- "data-rc-priority": `${order}`
1090
- };
1091
- const styleText = toStyleStr(styleStr, cssVarKey, styleId, sharedAttrs, plain);
1092
- return [order, styleId, styleText];
1093
- };
1094
-
1095
- // ../../node_modules/.pnpm/@ant-design+cssinjs@2.1.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@ant-design/cssinjs/es/hooks/useCSSVarRegister.js
1096
- import { useContext as useContext5 } from "react";
1097
-
1098
- // ../../node_modules/.pnpm/@ant-design+cssinjs@2.1.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.js
1099
- import * as React4 from "react";
1100
-
1101
- // ../../node_modules/.pnpm/@emotion+unitless@0.7.5/node_modules/@emotion/unitless/dist/unitless.browser.esm.js
1102
- var unitlessKeys = {
1103
- animationIterationCount: 1,
1104
- borderImageOutset: 1,
1105
- borderImageSlice: 1,
1106
- borderImageWidth: 1,
1107
- boxFlex: 1,
1108
- boxFlexGroup: 1,
1109
- boxOrdinalGroup: 1,
1110
- columnCount: 1,
1111
- columns: 1,
1112
- flex: 1,
1113
- flexGrow: 1,
1114
- flexPositive: 1,
1115
- flexShrink: 1,
1116
- flexNegative: 1,
1117
- flexOrder: 1,
1118
- gridRow: 1,
1119
- gridRowEnd: 1,
1120
- gridRowSpan: 1,
1121
- gridRowStart: 1,
1122
- gridColumn: 1,
1123
- gridColumnEnd: 1,
1124
- gridColumnSpan: 1,
1125
- gridColumnStart: 1,
1126
- msGridRow: 1,
1127
- msGridRowSpan: 1,
1128
- msGridColumn: 1,
1129
- msGridColumnSpan: 1,
1130
- fontWeight: 1,
1131
- lineHeight: 1,
1132
- opacity: 1,
1133
- order: 1,
1134
- orphans: 1,
1135
- tabSize: 1,
1136
- widows: 1,
1137
- zIndex: 1,
1138
- zoom: 1,
1139
- WebkitLineClamp: 1,
1140
- // SVG-related properties
1141
- fillOpacity: 1,
1142
- floodOpacity: 1,
1143
- stopOpacity: 1,
1144
- strokeDasharray: 1,
1145
- strokeDashoffset: 1,
1146
- strokeMiterlimit: 1,
1147
- strokeOpacity: 1,
1148
- strokeWidth: 1
1149
- };
1150
- var unitless_browser_esm_default = unitlessKeys;
1151
-
1152
- // ../../node_modules/.pnpm/stylis@4.4.0/node_modules/stylis/src/Enum.js
1153
- var MS = "-ms-";
1154
- var MOZ = "-moz-";
1155
- var WEBKIT = "-webkit-";
1156
- var COMMENT = "comm";
1157
- var RULESET = "rule";
1158
- var DECLARATION = "decl";
1159
- var IMPORT = "@import";
1160
- var NAMESPACE = "@namespace";
1161
- var KEYFRAMES = "@keyframes";
1162
- var LAYER = "@layer";
1163
-
1164
- // ../../node_modules/.pnpm/stylis@4.4.0/node_modules/stylis/src/Utility.js
1165
- var abs = Math.abs;
1166
- var from = String.fromCharCode;
1167
- var assign = Object.assign;
1168
- function hash(value, length2) {
1169
- return charat(value, 0) ^ 45 ? (((length2 << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3) : 0;
1170
- }
1171
- function trim(value) {
1172
- return value.trim();
1173
- }
1174
- function match(value, pattern) {
1175
- return (value = pattern.exec(value)) ? value[0] : value;
1176
- }
1177
- function replace(value, pattern, replacement) {
1178
- return value.replace(pattern, replacement);
1179
- }
1180
- function indexof(value, search) {
1181
- return value.indexOf(search);
1182
- }
1183
- function charat(value, index) {
1184
- return value.charCodeAt(index) | 0;
1185
- }
1186
- function substr(value, begin, end) {
1187
- return value.slice(begin, end);
1188
- }
1189
- function strlen(value) {
1190
- return value.length;
1191
- }
1192
- function sizeof(value) {
1193
- return value.length;
1194
- }
1195
- function append(value, array) {
1196
- return array.push(value), value;
1197
- }
1198
- function combine(array, callback) {
1199
- return array.map(callback).join("");
1200
- }
1201
- function filter(array, pattern) {
1202
- return array.filter(function(value) {
1203
- return !match(value, pattern);
1204
- });
1205
- }
1206
-
1207
- // ../../node_modules/.pnpm/stylis@4.4.0/node_modules/stylis/src/Tokenizer.js
1208
- var line = 1;
1209
- var column = 1;
1210
- var length = 0;
1211
- var position = 0;
1212
- var character = 0;
1213
- var characters = "";
1214
- function node(value, root, parent, type, props, children, length2, siblings) {
1215
- return { value, root, parent, type, props, children, line, column, length: length2, return: "", siblings };
1216
- }
1217
- function copy(root, props) {
1218
- return assign(node("", null, null, "", null, null, 0, root.siblings), root, { length: -root.length }, props);
1219
- }
1220
- function lift(root) {
1221
- while (root.root)
1222
- root = copy(root.root, { children: [root] });
1223
- append(root, root.siblings);
1224
- }
1225
- function char() {
1226
- return character;
1227
- }
1228
- function prev() {
1229
- character = position > 0 ? charat(characters, --position) : 0;
1230
- if (column--, character === 10)
1231
- column = 1, line--;
1232
- return character;
1233
- }
1234
- function next() {
1235
- character = position < length ? charat(characters, position++) : 0;
1236
- if (column++, character === 10)
1237
- column = 1, line++;
1238
- return character;
1239
- }
1240
- function peek() {
1241
- return charat(characters, position);
1242
- }
1243
- function caret() {
1244
- return position;
1245
- }
1246
- function slice(begin, end) {
1247
- return substr(characters, begin, end);
1248
- }
1249
- function token(type) {
1250
- switch (type) {
1251
- // \0 \t \n \r \s whitespace token
1252
- case 0:
1253
- case 9:
1254
- case 10:
1255
- case 13:
1256
- case 32:
1257
- return 5;
1258
- // ! + , / > @ ~ isolate token
1259
- case 33:
1260
- case 43:
1261
- case 44:
1262
- case 47:
1263
- case 62:
1264
- case 64:
1265
- case 126:
1266
- // ; { } breakpoint token
1267
- case 59:
1268
- case 123:
1269
- case 125:
1270
- return 4;
1271
- // : accompanied token
1272
- case 58:
1273
- return 3;
1274
- // " ' ( [ opening delimit token
1275
- case 34:
1276
- case 39:
1277
- case 40:
1278
- case 91:
1279
- return 2;
1280
- // ) ] closing delimit token
1281
- case 41:
1282
- case 93:
1283
- return 1;
1284
- }
1285
- return 0;
1286
- }
1287
- function alloc(value) {
1288
- return line = column = 1, length = strlen(characters = value), position = 0, [];
1289
- }
1290
- function dealloc(value) {
1291
- return characters = "", value;
1292
- }
1293
- function delimit(type) {
1294
- return trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)));
1295
- }
1296
- function whitespace(type) {
1297
- while (character = peek())
1298
- if (character < 33)
1299
- next();
1300
- else
1301
- break;
1302
- return token(type) > 2 || token(character) > 3 ? "" : " ";
1303
- }
1304
- function escaping(index, count) {
1305
- while (--count && next())
1306
- if (character < 48 || character > 102 || character > 57 && character < 65 || character > 70 && character < 97)
1307
- break;
1308
- return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32));
1309
- }
1310
- function delimiter(type) {
1311
- while (next())
1312
- switch (character) {
1313
- // ] ) " '
1314
- case type:
1315
- return position;
1316
- // " '
1317
- case 34:
1318
- case 39:
1319
- if (type !== 34 && type !== 39)
1320
- delimiter(character);
1321
- break;
1322
- // (
1323
- case 40:
1324
- if (type === 41)
1325
- delimiter(type);
1326
- break;
1327
- // \
1328
- case 92:
1329
- next();
1330
- break;
1331
- }
1332
- return position;
1333
- }
1334
- function commenter(type, index) {
1335
- while (next())
1336
- if (type + character === 47 + 10)
1337
- break;
1338
- else if (type + character === 42 + 42 && peek() === 47)
1339
- break;
1340
- return "/*" + slice(index, position - 1) + "*" + from(type === 47 ? type : next());
1341
- }
1342
- function identifier(index) {
1343
- while (!token(peek()))
1344
- next();
1345
- return slice(index, position);
1346
- }
1347
-
1348
- // ../../node_modules/.pnpm/stylis@4.4.0/node_modules/stylis/src/Parser.js
1349
- function compile(value) {
1350
- return dealloc(parse("", null, null, null, [""], value = alloc(value), 0, [0], value));
1351
- }
1352
- function parse(value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
1353
- var index = 0;
1354
- var offset = 0;
1355
- var length2 = pseudo;
1356
- var atrule = 0;
1357
- var property = 0;
1358
- var previous = 0;
1359
- var variable = 1;
1360
- var scanning = 1;
1361
- var ampersand = 1;
1362
- var parens = 0;
1363
- var character2 = 0;
1364
- var type = "";
1365
- var props = rules;
1366
- var children = rulesets;
1367
- var reference = rule;
1368
- var characters2 = type;
1369
- while (scanning)
1370
- switch (previous = character2, character2 = next()) {
1371
- // (
1372
- case 40:
1373
- if (previous != 108 && charat(characters2, length2 - 1) == 58) parens++, characters2 += "(";
1374
- else characters2 += delimit(character2);
1375
- break;
1376
- // )
1377
- case 41:
1378
- parens--, characters2 += ")";
1379
- break;
1380
- // " ' [
1381
- case 34:
1382
- case 39:
1383
- case 91:
1384
- characters2 += delimit(character2);
1385
- break;
1386
- // \t \n \r \s
1387
- case 9:
1388
- case 10:
1389
- case 13:
1390
- case 32:
1391
- if (parens > 0) {
1392
- characters2 += from(character2);
1393
- break;
1394
- }
1395
- characters2 += whitespace(previous);
1396
- break;
1397
- // \
1398
- case 92:
1399
- characters2 += escaping(caret() - 1, 7);
1400
- continue;
1401
- // /
1402
- case 47:
1403
- switch (peek()) {
1404
- case 42:
1405
- case 47:
1406
- append(comment(commenter(next(), caret()), root, parent, declarations), declarations);
1407
- if ((token(previous || 1) == 5 || token(peek() || 1) == 5) && strlen(characters2) && substr(characters2, -1, void 0) !== " ") characters2 += " ";
1408
- break;
1409
- default:
1410
- characters2 += "/";
1411
- }
1412
- break;
1413
- // {
1414
- case 123 * variable:
1415
- points[index++] = strlen(characters2) * ampersand;
1416
- // } ; \0
1417
- case 125 * variable:
1418
- case 59:
1419
- case 0:
1420
- if (parens > 0 && character2) {
1421
- characters2 += from(character2);
1422
- break;
1423
- }
1424
- switch (character2) {
1425
- // \0 }
1426
- case 0:
1427
- case 125:
1428
- scanning = 0;
1429
- // ;
1430
- case 59 + offset:
1431
- if (ampersand == -1) characters2 = replace(characters2, /\f/g, "");
1432
- if (property > 0 && (strlen(characters2) - length2 || variable === 0))
1433
- append(property > 32 ? declaration(characters2 + ";", rule, parent, length2 - 1, declarations) : declaration(replace(characters2, " ", "") + ";", rule, parent, length2 - 2, declarations), declarations);
1434
- break;
1435
- // @ ;
1436
- case 59:
1437
- characters2 += ";";
1438
- // { rule/at-rule
1439
- default:
1440
- append(reference = ruleset(characters2, root, parent, index, offset, rules, points, type, props = [], children = [], length2, rulesets), rulesets);
1441
- if (character2 === 123)
1442
- if (offset === 0)
1443
- parse(characters2, root, reference, reference, props, rulesets, length2, points, children);
1444
- else {
1445
- switch (atrule) {
1446
- // c(ontainer)
1447
- case 99:
1448
- if (charat(characters2, 3) === 110) break;
1449
- // l(ayer)
1450
- case 108:
1451
- if (charat(characters2, 2) === 97) break;
1452
- default:
1453
- offset = 0;
1454
- // d(ocument) m(edia) s(upports)
1455
- case 100:
1456
- case 109:
1457
- case 115:
1458
- }
1459
- if (offset) parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length2, children), children), rules, children, length2, points, rule ? props : children);
1460
- else parse(characters2, reference, reference, reference, [""], children, 0, points, children);
1461
- }
1462
- }
1463
- index = offset = property = 0, variable = ampersand = 1, type = characters2 = "", length2 = pseudo;
1464
- break;
1465
- // :
1466
- case 58:
1467
- length2 = 1 + strlen(characters2), property = previous;
1468
- default:
1469
- if (variable < 1) {
1470
- if (character2 == 123)
1471
- --variable;
1472
- else if (character2 == 125 && variable++ == 0 && prev() == 125)
1473
- continue;
1474
- }
1475
- switch (characters2 += from(character2), character2 * variable) {
1476
- // &
1477
- case 38:
1478
- ampersand = offset > 0 ? 1 : (characters2 += "\f", -1);
1479
- break;
1480
- // ,
1481
- case 44:
1482
- if (parens > 0) break;
1483
- points[index++] = (strlen(characters2) - 1) * ampersand, ampersand = 1;
1484
- break;
1485
- // @
1486
- case 64:
1487
- if (peek() === 45)
1488
- characters2 += delimit(next());
1489
- atrule = peek(), offset = length2 = strlen(type = characters2 += identifier(caret())), character2++;
1490
- break;
1491
- // -
1492
- case 45:
1493
- if (previous === 45 && strlen(characters2) == 2)
1494
- variable = 0;
1495
- }
1496
- }
1497
- return rulesets;
1498
- }
1499
- function ruleset(value, root, parent, index, offset, rules, points, type, props, children, length2, siblings) {
1500
- var post = offset - 1;
1501
- var rule = offset === 0 ? rules : [""];
1502
- var size = sizeof(rule);
1503
- for (var i = 0, j = 0, k = 0; i < index; ++i)
1504
- for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x)
1505
- if (z = trim(j > 0 ? rule[x] + " " + y : replace(y, /&\f/g, rule[x])))
1506
- props[k++] = z;
1507
- return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length2, siblings);
1508
- }
1509
- function comment(value, root, parent, siblings) {
1510
- return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0, siblings);
1511
- }
1512
- function declaration(value, root, parent, length2, siblings) {
1513
- return node(value, root, parent, DECLARATION, substr(value, 0, length2), substr(value, length2 + 1, -1), length2, siblings);
1514
- }
1515
-
1516
- // ../../node_modules/.pnpm/stylis@4.4.0/node_modules/stylis/src/Prefixer.js
1517
- function prefix(value, length2, children) {
1518
- switch (hash(value, length2)) {
1519
- // color-adjust
1520
- case 5103:
1521
- return WEBKIT + "print-" + value + value;
1522
- // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
1523
- case 5737:
1524
- case 4201:
1525
- case 3177:
1526
- case 3433:
1527
- case 1641:
1528
- case 4457:
1529
- case 2921:
1530
- // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
1531
- case 5572:
1532
- case 6356:
1533
- case 5844:
1534
- case 3191:
1535
- case 6645:
1536
- case 3005:
1537
- // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
1538
- case 4215:
1539
- case 6389:
1540
- case 5109:
1541
- case 5365:
1542
- case 5621:
1543
- case 3829:
1544
- // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position
1545
- case 6391:
1546
- case 5879:
1547
- case 5623:
1548
- case 6135:
1549
- case 4599:
1550
- return WEBKIT + value + value;
1551
- // mask-composite
1552
- case 4855:
1553
- return WEBKIT + value.replace("add", "source-over").replace("substract", "source-out").replace("intersect", "source-in").replace("exclude", "xor") + value;
1554
- // tab-size
1555
- case 4789:
1556
- return MOZ + value + value;
1557
- // appearance, user-select, transform, hyphens, text-size-adjust
1558
- case 5349:
1559
- case 4246:
1560
- case 4810:
1561
- case 6968:
1562
- case 2756:
1563
- return WEBKIT + value + MOZ + value + MS + value + value;
1564
- // writing-mode
1565
- case 5936:
1566
- switch (charat(value, length2 + 11)) {
1567
- // vertical-l(r)
1568
- case 114:
1569
- return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb") + value;
1570
- // vertical-r(l)
1571
- case 108:
1572
- return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb-rl") + value;
1573
- // horizontal(-)tb
1574
- case 45:
1575
- return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "lr") + value;
1576
- }
1577
- // flex, flex-direction, scroll-snap-type, writing-mode
1578
- case 6828:
1579
- case 4268:
1580
- case 2903:
1581
- return WEBKIT + value + MS + value + value;
1582
- // order
1583
- case 6165:
1584
- return WEBKIT + value + MS + "flex-" + value + value;
1585
- // align-items
1586
- case 5187:
1587
- return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + "box-$1$2" + MS + "flex-$1$2") + value;
1588
- // align-self
1589
- case 5443:
1590
- return WEBKIT + value + MS + "flex-item-" + replace(value, /flex-|-self/g, "") + (!match(value, /flex-|baseline/) ? MS + "grid-row-" + replace(value, /flex-|-self/g, "") : "") + value;
1591
- // align-content
1592
- case 4675:
1593
- return WEBKIT + value + MS + "flex-line-pack" + replace(value, /align-content|flex-|-self/g, "") + value;
1594
- // flex-shrink
1595
- case 5548:
1596
- return WEBKIT + value + MS + replace(value, "shrink", "negative") + value;
1597
- // flex-basis
1598
- case 5292:
1599
- return WEBKIT + value + MS + replace(value, "basis", "preferred-size") + value;
1600
- // flex-grow
1601
- case 6060:
1602
- return WEBKIT + "box-" + replace(value, "-grow", "") + WEBKIT + value + MS + replace(value, "grow", "positive") + value;
1603
- // transition
1604
- case 4554:
1605
- return WEBKIT + replace(value, /([^-])(transform)/g, "$1" + WEBKIT + "$2") + value;
1606
- // cursor
1607
- case 6187:
1608
- return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + "$1"), /(image-set)/, WEBKIT + "$1"), value, "") + value;
1609
- // background, background-image
1610
- case 5495:
1611
- case 3959:
1612
- return replace(value, /(image-set\([^]*)/, WEBKIT + "$1$`$1");
1613
- // justify-content
1614
- case 4968:
1615
- return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + "box-pack:$3" + MS + "flex-pack:$3"), /space-between/, "justify") + WEBKIT + value + value;
1616
- // justify-self
1617
- case 4200:
1618
- if (!match(value, /flex-|baseline/)) return MS + "grid-column-align" + substr(value, length2) + value;
1619
- break;
1620
- // grid-template-(columns|rows)
1621
- case 2592:
1622
- case 3360:
1623
- return MS + replace(value, "template-", "") + value;
1624
- // grid-(row|column)-start
1625
- case 4384:
1626
- case 3616:
1627
- if (children && children.some(function(element, index) {
1628
- return length2 = index, match(element.props, /grid-\w+-end/);
1629
- })) {
1630
- return ~indexof(value + (children = children[length2].value), "span") ? value : MS + replace(value, "-start", "") + value + MS + "grid-row-span:" + (~indexof(children, "span") ? match(children, /\d+/) : +match(children, /\d+/) - +match(value, /\d+/)) + ";";
1631
- }
1632
- return MS + replace(value, "-start", "") + value;
1633
- // grid-(row|column)-end
1634
- case 4896:
1635
- case 4128:
1636
- return children && children.some(function(element) {
1637
- return match(element.props, /grid-\w+-start/);
1638
- }) ? value : MS + replace(replace(value, "-end", "-span"), "span ", "") + value;
1639
- // (margin|padding)-inline-(start|end)
1640
- case 4095:
1641
- case 3583:
1642
- case 4068:
1643
- case 2532:
1644
- return replace(value, /(.+)-inline(.+)/, WEBKIT + "$1$2") + value;
1645
- // (min|max)?(width|height|inline-size|block-size)
1646
- case 8116:
1647
- case 7059:
1648
- case 5753:
1649
- case 5535:
1650
- case 5445:
1651
- case 5701:
1652
- case 4933:
1653
- case 4677:
1654
- case 5533:
1655
- case 5789:
1656
- case 5021:
1657
- case 4765:
1658
- if (strlen(value) - 1 - length2 > 6)
1659
- switch (charat(value, length2 + 1)) {
1660
- // (m)ax-content, (m)in-content
1661
- case 109:
1662
- if (charat(value, length2 + 4) !== 45)
1663
- break;
1664
- // (f)ill-available, (f)it-content
1665
- case 102:
1666
- return replace(value, /(.+:)(.+)-([^]+)/, "$1" + WEBKIT + "$2-$3$1" + MOZ + (charat(value, length2 + 3) == 108 ? "$3" : "$2-$3")) + value;
1667
- // (s)tretch
1668
- case 115:
1669
- return ~indexof(value, "stretch") ? prefix(replace(value, "stretch", "fill-available"), length2, children) + value : value;
1670
- }
1671
- break;
1672
- // grid-(column|row)
1673
- case 5152:
1674
- case 5920:
1675
- return replace(value, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(_, a, b, c, d, e, f) {
1676
- return MS + a + ":" + b + f + (c ? MS + a + "-span:" + (d ? e : +e - +b) + f : "") + value;
1677
- });
1678
- // position: sticky
1679
- case 4949:
1680
- if (charat(value, length2 + 6) === 121)
1681
- return replace(value, ":", ":" + WEBKIT) + value;
1682
- break;
1683
- // display: (flex|inline-flex|grid|inline-grid)
1684
- case 6444:
1685
- switch (charat(value, charat(value, 14) === 45 ? 18 : 11)) {
1686
- // (inline-)?fle(x)
1687
- case 120:
1688
- return replace(value, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + WEBKIT + (charat(value, 14) === 45 ? "inline-" : "") + "box$3$1" + WEBKIT + "$2$3$1" + MS + "$2box$3") + value;
1689
- // (inline-)?gri(d)
1690
- case 100:
1691
- return replace(value, ":", ":" + MS) + value;
1692
- }
1693
- break;
1694
- // scroll-margin, scroll-margin-(top|right|bottom|left)
1695
- case 5719:
1696
- case 2647:
1697
- case 2135:
1698
- case 3927:
1699
- case 2391:
1700
- return replace(value, "scroll-", "scroll-snap-") + value;
1701
- }
1702
- return value;
1703
- }
1704
-
1705
- // ../../node_modules/.pnpm/stylis@4.4.0/node_modules/stylis/src/Serializer.js
1706
- function serialize(children, callback) {
1707
- var output = "";
1708
- for (var i = 0; i < children.length; i++)
1709
- output += callback(children[i], i, children, callback) || "";
1710
- return output;
1711
- }
1712
- function stringify(element, index, children, callback) {
1713
- switch (element.type) {
1714
- case LAYER:
1715
- if (element.children.length) break;
1716
- case IMPORT:
1717
- case NAMESPACE:
1718
- case DECLARATION:
1719
- return element.return = element.return || element.value;
1720
- case COMMENT:
1721
- return "";
1722
- case KEYFRAMES:
1723
- return element.return = element.value + "{" + serialize(element.children, callback) + "}";
1724
- case RULESET:
1725
- if (!strlen(element.value = element.props.join(","))) return "";
1726
- }
1727
- return strlen(children = serialize(element.children, callback)) ? element.return = element.value + "{" + children + "}" : "";
1728
- }
1729
-
1730
- // ../../node_modules/.pnpm/stylis@4.4.0/node_modules/stylis/src/Middleware.js
1731
- function middleware(collection) {
1732
- var length2 = sizeof(collection);
1733
- return function(element, index, children, callback) {
1734
- var output = "";
1735
- for (var i = 0; i < length2; i++)
1736
- output += collection[i](element, index, children, callback) || "";
1737
- return output;
1738
- };
1739
- }
1740
- function prefixer(element, index, children, callback) {
1741
- if (element.length > -1) {
1742
- if (!element.return)
1743
- switch (element.type) {
1744
- case DECLARATION:
1745
- element.return = prefix(element.value, element.length, children);
1746
- return;
1747
- case KEYFRAMES:
1748
- return serialize([copy(element, { value: replace(element.value, "@", "@" + WEBKIT) })], callback);
1749
- case RULESET:
1750
- if (element.length)
1751
- return combine(children = element.props, function(value) {
1752
- switch (match(value, callback = /(::plac\w+|:read-\w+)/)) {
1753
- // :read-(only|write)
1754
- case ":read-only":
1755
- case ":read-write":
1756
- lift(copy(element, { props: [replace(value, /:(read-\w+)/, ":" + MOZ + "$1")] }));
1757
- lift(copy(element, { props: [value] }));
1758
- assign(element, { props: filter(children, callback) });
1759
- break;
1760
- // :placeholder
1761
- case "::placeholder":
1762
- lift(copy(element, { props: [replace(value, /:(plac\w+)/, ":" + WEBKIT + "input-$1")] }));
1763
- lift(copy(element, { props: [replace(value, /:(plac\w+)/, ":" + MOZ + "$1")] }));
1764
- lift(copy(element, { props: [replace(value, /:(plac\w+)/, MS + "input-$1")] }));
1765
- lift(copy(element, { props: [value] }));
1766
- assign(element, { props: filter(children, callback) });
1767
- break;
1768
- }
1769
- return "";
1770
- });
1771
- }
1772
- }
1773
- }
1774
-
1775
- // ../../node_modules/.pnpm/@ant-design+cssinjs@2.1.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@ant-design/cssinjs/es/linters/utils.js
1776
- function lintWarning(message, info) {
1777
- const {
1778
- path,
1779
- parentSelectors
1780
- } = info;
1781
- warning_default(false, `[Ant Design CSS-in-JS] ${path ? `Error in ${path}: ` : ""}${message}${parentSelectors.length ? ` Selector: ${parentSelectors.join(" | ")}` : ""}`);
1782
- }
1783
-
1784
- // ../../node_modules/.pnpm/@ant-design+cssinjs@2.1.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@ant-design/cssinjs/es/linters/legacyNotSelectorLinter.js
1785
- function isConcatSelector(selector) {
1786
- const notContent = selector.match(/:not\(([^)]*)\)/)?.[1] || "";
1787
- const splitCells = notContent.split(/(\[[^[]*])|(?=[.#])/).filter((str) => str);
1788
- return splitCells.length > 1;
1789
- }
1790
- function parsePath(info) {
1791
- return info.parentSelectors.reduce((prev2, cur) => {
1792
- if (!prev2) {
1793
- return cur;
1794
- }
1795
- return cur.includes("&") ? cur.replace(/&/g, prev2) : `${prev2} ${cur}`;
1796
- }, "");
1797
- }
1798
- var linter = (key, value, info) => {
1799
- const parentSelectorPath = parsePath(info);
1800
- const notList = parentSelectorPath.match(/:not\([^)]*\)/g) || [];
1801
- if (notList.length > 0 && notList.some(isConcatSelector)) {
1802
- lintWarning(`Concat ':not' selector not support in legacy browsers.`, info);
1803
- }
1804
- };
1805
- var legacyNotSelectorLinter_default = linter;
1806
-
1807
- // ../../node_modules/.pnpm/@ant-design+cssinjs@2.1.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@ant-design/cssinjs/es/linters/logicalPropertiesLinter.js
1808
- var linter2 = (key, value, info) => {
1809
- switch (key) {
1810
- case "marginLeft":
1811
- case "marginRight":
1812
- case "paddingLeft":
1813
- case "paddingRight":
1814
- case "left":
1815
- case "right":
1816
- case "borderLeft":
1817
- case "borderLeftWidth":
1818
- case "borderLeftStyle":
1819
- case "borderLeftColor":
1820
- case "borderRight":
1821
- case "borderRightWidth":
1822
- case "borderRightStyle":
1823
- case "borderRightColor":
1824
- case "borderTopLeftRadius":
1825
- case "borderTopRightRadius":
1826
- case "borderBottomLeftRadius":
1827
- case "borderBottomRightRadius":
1828
- lintWarning(`You seem to be using non-logical property '${key}' which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`, info);
1829
- return;
1830
- case "margin":
1831
- case "padding":
1832
- case "borderWidth":
1833
- case "borderStyle":
1834
- if (typeof value === "string") {
1835
- const valueArr = value.split(" ").map((item) => item.trim());
1836
- if (valueArr.length === 4 && valueArr[1] !== valueArr[3]) {
1837
- lintWarning(`You seem to be using '${key}' property with different left ${key} and right ${key}, which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`, info);
1838
- }
1839
- }
1840
- return;
1841
- case "clear":
1842
- case "textAlign":
1843
- if (value === "left" || value === "right") {
1844
- lintWarning(`You seem to be using non-logical value '${value}' of ${key}, which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`, info);
1845
- }
1846
- return;
1847
- case "borderRadius":
1848
- if (typeof value === "string") {
1849
- const radiusGroups = value.split("/").map((item) => item.trim());
1850
- const invalid = radiusGroups.reduce((result, group) => {
1851
- if (result) {
1852
- return result;
1853
- }
1854
- const radiusArr = group.split(" ").map((item) => item.trim());
1855
- if (radiusArr.length >= 2 && radiusArr[0] !== radiusArr[1]) {
1856
- return true;
1857
- }
1858
- if (radiusArr.length === 3 && radiusArr[1] !== radiusArr[2]) {
1859
- return true;
1860
- }
1861
- if (radiusArr.length === 4 && radiusArr[2] !== radiusArr[3]) {
1862
- return true;
1863
- }
1864
- return result;
1865
- }, false);
1866
- if (invalid) {
1867
- lintWarning(`You seem to be using non-logical value '${value}' of ${key}, which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`, info);
1868
- }
1869
- }
1870
- return;
1871
- default:
1872
- }
1873
- };
1874
- var logicalPropertiesLinter_default = linter2;
1875
-
1876
- // ../../node_modules/.pnpm/@ant-design+cssinjs@2.1.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@ant-design/cssinjs/es/linters/NaNLinter.js
1877
- var linter3 = (key, value, info) => {
1878
- if (typeof value === "string" && /NaN/g.test(value) || Number.isNaN(value)) {
1879
- lintWarning(`Unexpected 'NaN' in property '${key}: ${value}'.`, info);
1880
- }
1881
- };
1882
- var NaNLinter_default = linter3;
1883
-
1884
- // ../../node_modules/.pnpm/@ant-design+cssinjs@2.1.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@ant-design/cssinjs/es/linters/parentSelectorLinter.js
1885
- var linter4 = (key, value, info) => {
1886
- if (info.parentSelectors.some((selector) => {
1887
- const selectors = selector.split(",");
1888
- return selectors.some((item) => item.split("&").length > 2);
1889
- })) {
1890
- lintWarning("Should not use more than one `&` in a selector.", info);
1891
- }
1892
- };
1893
- var parentSelectorLinter_default = linter4;
1894
-
1895
- // ../../node_modules/.pnpm/@ant-design+cssinjs@2.1.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@ant-design/cssinjs/es/util/cacheMapUtil.js
1896
- var ATTR_CACHE_MAP = "data-ant-cssinjs-cache-path";
1897
- var CSS_FILE_STYLE = "_FILE_STYLE__";
1898
- function serialize2(cachePathMap2) {
1899
- return Object.keys(cachePathMap2).map((path) => {
1900
- const hash2 = cachePathMap2[path];
1901
- return `${path}:${hash2}`;
1902
- }).join(";");
1903
- }
1904
- var cachePathMap;
1905
- var fromCSSFile = true;
1906
- function prepare() {
1907
- if (!cachePathMap) {
1908
- cachePathMap = {};
1909
- if (canUseDom()) {
1910
- const div = document.createElement("div");
1911
- div.className = ATTR_CACHE_MAP;
1912
- div.style.position = "fixed";
1913
- div.style.visibility = "hidden";
1914
- div.style.top = "-9999px";
1915
- document.body.appendChild(div);
1916
- let content = getComputedStyle(div).content || "";
1917
- content = content.replace(/^"/, "").replace(/"$/, "");
1918
- content.split(";").forEach((item) => {
1919
- const [path, hash2] = item.split(":");
1920
- cachePathMap[path] = hash2;
1921
- });
1922
- const inlineMapStyle = document.querySelector(`style[${ATTR_CACHE_MAP}]`);
1923
- if (inlineMapStyle) {
1924
- fromCSSFile = false;
1925
- inlineMapStyle.parentNode?.removeChild(inlineMapStyle);
1926
- }
1927
- document.body.removeChild(div);
1928
- }
1929
- }
1930
- }
1931
- function existPath(path) {
1932
- prepare();
1933
- return !!cachePathMap[path];
1934
- }
1935
- function getStyleAndHash(path) {
1936
- const hash2 = cachePathMap[path];
1937
- let styleStr = null;
1938
- if (hash2 && canUseDom()) {
1939
- if (fromCSSFile) {
1940
- styleStr = CSS_FILE_STYLE;
1941
- } else {
1942
- const style = document.querySelector(`style[${ATTR_MARK}="${cachePathMap[path]}"]`);
1943
- if (style) {
1944
- styleStr = style.innerHTML;
1945
- } else {
1946
- delete cachePathMap[path];
1947
- }
1948
- }
1949
- }
1950
- return [styleStr, hash2];
1951
- }
1952
-
1953
- // ../../node_modules/.pnpm/@ant-design+cssinjs@2.1.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.js
1954
- var SKIP_CHECK = "_skip_check_";
1955
- var MULTI_VALUE = "_multi_value_";
1956
- function normalizeStyle(styleStr, autoPrefix) {
1957
- const serialized = autoPrefix ? serialize(compile(styleStr), middleware([prefixer, stringify])) : serialize(compile(styleStr), stringify);
1958
- return serialized.replace(/\{%%%\:[^;];}/g, ";");
1959
- }
1960
- function isCompoundCSSProperty(value) {
1961
- return typeof value === "object" && value && (SKIP_CHECK in value || MULTI_VALUE in value);
1962
- }
1963
- function injectSelectorHash(key, hashId, hashPriority = "high") {
1964
- if (!hashId) {
1965
- return key;
1966
- }
1967
- const hashSelector = where({
1968
- hashCls: hashId,
1969
- hashPriority
1970
- });
1971
- const keys = key.split(",").map((k) => {
1972
- const fullPath = k.trim().split(/\s+/);
1973
- let firstPath = fullPath[0] || "";
1974
- const htmlElement = firstPath.match(/^\w+/)?.[0] || "";
1975
- firstPath = `${htmlElement}${hashSelector}${firstPath.slice(htmlElement.length)}`;
1976
- return [firstPath, ...fullPath.slice(1)].join(" ");
1977
- });
1978
- return keys.join(",");
1979
- }
1980
- var parseStyle = (interpolation, config = {}, {
1981
- root,
1982
- injectHash,
1983
- parentSelectors
1984
- } = {
1985
- root: true,
1986
- parentSelectors: []
1987
- }) => {
1988
- const {
1989
- hashId,
1990
- layer,
1991
- path,
1992
- hashPriority,
1993
- transformers = [],
1994
- linters = []
1995
- } = config;
1996
- let styleStr = "";
1997
- let effectStyle = {};
1998
- function parseKeyframes(keyframes) {
1999
- const animationName = keyframes.getName(hashId);
2000
- if (!effectStyle[animationName]) {
2001
- const [parsedStr] = parseStyle(keyframes.style, config, {
2002
- root: false,
2003
- parentSelectors
2004
- });
2005
- effectStyle[animationName] = `@keyframes ${keyframes.getName(hashId)}${parsedStr}`;
2006
- }
2007
- }
2008
- function flattenList(list, fullList = []) {
2009
- list.forEach((item) => {
2010
- if (Array.isArray(item)) {
2011
- flattenList(item, fullList);
2012
- } else if (item) {
2013
- fullList.push(item);
2014
- }
2015
- });
2016
- return fullList;
2017
- }
2018
- const flattenStyleList = flattenList(Array.isArray(interpolation) ? interpolation : [interpolation]);
2019
- flattenStyleList.forEach((originStyle) => {
2020
- const style = typeof originStyle === "string" && !root ? {} : originStyle;
2021
- if (typeof style === "string") {
2022
- styleStr += `${style}
2023
- `;
2024
- } else if (style._keyframe) {
2025
- parseKeyframes(style);
2026
- } else {
2027
- const mergedStyle = transformers.reduce((prev2, trans) => trans?.visit?.(prev2) || prev2, style);
2028
- Object.keys(mergedStyle).forEach((key) => {
2029
- const value = mergedStyle[key];
2030
- if (typeof value === "object" && value && (key !== "animationName" || !value._keyframe) && !isCompoundCSSProperty(value)) {
2031
- let subInjectHash = false;
2032
- let mergedKey = key.trim();
2033
- let nextRoot = false;
2034
- if ((root || injectHash) && hashId) {
2035
- if (mergedKey.startsWith("@")) {
2036
- subInjectHash = true;
2037
- } else if (mergedKey === "&") {
2038
- mergedKey = injectSelectorHash("", hashId, hashPriority);
2039
- } else {
2040
- mergedKey = injectSelectorHash(key, hashId, hashPriority);
2041
- }
2042
- } else if (root && !hashId && (mergedKey === "&" || mergedKey === "")) {
2043
- mergedKey = "";
2044
- nextRoot = true;
2045
- }
2046
- const [parsedStr, childEffectStyle] = parseStyle(value, config, {
2047
- root: nextRoot,
2048
- injectHash: subInjectHash,
2049
- parentSelectors: [...parentSelectors, mergedKey]
2050
- });
2051
- effectStyle = {
2052
- ...effectStyle,
2053
- ...childEffectStyle
2054
- };
2055
- styleStr += `${mergedKey}${parsedStr}`;
2056
- } else {
2057
- let appendStyle = function(cssKey, cssValue) {
2058
- if (false) {
2059
- [contentQuotesLinter_default, hashedAnimationLinter_default, ...linters].forEach((linter5) => linter5(cssKey, cssValue, {
2060
- path,
2061
- hashId,
2062
- parentSelectors
2063
- }));
2064
- }
2065
- const styleName = cssKey.replace(/[A-Z]/g, (match2) => `-${match2.toLowerCase()}`);
2066
- let formatValue = cssValue;
2067
- if (!unitless_browser_esm_default[cssKey] && typeof formatValue === "number" && formatValue !== 0) {
2068
- formatValue = `${formatValue}px`;
2069
- }
2070
- if (cssKey === "animationName" && cssValue?._keyframe) {
2071
- parseKeyframes(cssValue);
2072
- formatValue = cssValue.getName(hashId);
2073
- }
2074
- styleStr += `${styleName}:${formatValue};`;
2075
- };
2076
- const actualValue = value?.value ?? value;
2077
- if (typeof value === "object" && value?.[MULTI_VALUE] && Array.isArray(actualValue)) {
2078
- actualValue.forEach((item) => {
2079
- appendStyle(key, item);
2080
- });
2081
- } else {
2082
- if (isNonNullable(actualValue)) {
2083
- appendStyle(key, actualValue);
2084
- }
2085
- }
2086
- }
2087
- });
2088
- }
2089
- });
2090
- if (!root) {
2091
- styleStr = `{${styleStr}}`;
2092
- } else if (layer) {
2093
- if (styleStr) {
2094
- styleStr = `@layer ${layer.name} {${styleStr}}`;
2095
- }
2096
- if (layer.dependencies) {
2097
- effectStyle[`@layer ${layer.name}`] = layer.dependencies.map((deps) => `@layer ${deps}, ${layer.name};`).join("\n");
2098
- }
2099
- }
2100
- return [styleStr, effectStyle];
2101
- };
2102
- function uniqueHash(path, styleStr) {
2103
- return hash_browser_esm_default(`${path.join("%")}${styleStr}`);
2104
- }
2105
- var STYLE_PREFIX = "style";
2106
- function useStyleRegister(info, styleFn) {
2107
- const {
2108
- path,
2109
- hashId,
2110
- layer,
2111
- nonce,
2112
- clientOnly,
2113
- order = 0
2114
- } = info;
2115
- const {
2116
- mock,
2117
- hashPriority,
2118
- container,
2119
- transformers,
2120
- linters,
2121
- cache,
2122
- layer: enableLayer,
2123
- autoPrefix
2124
- } = React4.useContext(StyleContext_default);
2125
- const fullPath = [hashId || ""];
2126
- if (enableLayer) {
2127
- fullPath.push("layer");
2128
- }
2129
- fullPath.push(...path);
2130
- let isMergedClientSide = isClientSide;
2131
- if (false) {
2132
- isMergedClientSide = mock === "client";
2133
- }
2134
- useGlobalCache(
2135
- STYLE_PREFIX,
2136
- fullPath,
2137
- // Create cache if needed
2138
- () => {
2139
- const cachePath = fullPath.join("|");
2140
- if (existPath(cachePath)) {
2141
- const [inlineCacheStyleStr, styleHash] = getStyleAndHash(cachePath);
2142
- if (inlineCacheStyleStr) {
2143
- return [inlineCacheStyleStr, styleHash, {}, clientOnly, order];
2144
- }
2145
- }
2146
- const styleObj = styleFn();
2147
- const [parsedStyle, effectStyle] = parseStyle(styleObj, {
2148
- hashId,
2149
- hashPriority,
2150
- layer: enableLayer ? layer : void 0,
2151
- path: path.join("-"),
2152
- transformers,
2153
- linters
2154
- });
2155
- const styleStr = normalizeStyle(parsedStyle, autoPrefix || false);
2156
- const styleId = uniqueHash(fullPath, styleStr);
2157
- return [styleStr, styleId, effectStyle, clientOnly, order];
2158
- },
2159
- // Remove cache if no need
2160
- (cacheValue, fromHMR) => {
2161
- const [, styleId] = cacheValue;
2162
- if (fromHMR && isClientSide) {
2163
- removeCSS(styleId, {
2164
- mark: ATTR_MARK,
2165
- attachTo: container
2166
- });
2167
- }
2168
- },
2169
- // Effect: Inject style here
2170
- (cacheValue) => {
2171
- const [styleStr, styleId, effectStyle, , priority] = cacheValue;
2172
- if (isMergedClientSide && styleStr !== CSS_FILE_STYLE) {
2173
- let mergedCSSConfig = {
2174
- mark: ATTR_MARK,
2175
- prepend: enableLayer ? false : "queue",
2176
- attachTo: container,
2177
- priority
2178
- };
2179
- mergedCSSConfig = injectCSPNonce(mergedCSSConfig, nonce);
2180
- const effectLayerKeys = [];
2181
- const effectRestKeys = [];
2182
- Object.keys(effectStyle).forEach((key) => {
2183
- if (key.startsWith("@layer")) {
2184
- effectLayerKeys.push(key);
2185
- } else {
2186
- effectRestKeys.push(key);
2187
- }
2188
- });
2189
- effectLayerKeys.forEach((effectKey) => {
2190
- updateCSS(normalizeStyle(effectStyle[effectKey], autoPrefix || false), `_layer-${effectKey}`, {
2191
- ...mergedCSSConfig,
2192
- prepend: true
2193
- });
2194
- });
2195
- const style = updateCSS(styleStr, styleId, mergedCSSConfig);
2196
- style[CSS_IN_JS_INSTANCE] = cache.instanceId;
2197
- if (false) {
2198
- style.setAttribute(ATTR_CACHE_PATH, fullPath.join("|"));
2199
- }
2200
- effectRestKeys.forEach((effectKey) => {
2201
- updateCSS(normalizeStyle(effectStyle[effectKey], autoPrefix || false), `_effect-${effectKey}`, mergedCSSConfig);
2202
- });
2203
- }
2204
- }
2205
- );
2206
- }
2207
- var extract2 = (cache, effectStyles, options) => {
2208
- const [styleStr, styleId, effectStyle, clientOnly, order] = cache;
2209
- const {
2210
- plain,
2211
- autoPrefix
2212
- } = options || {};
2213
- if (clientOnly) {
2214
- return null;
2215
- }
2216
- let keyStyleText = styleStr;
2217
- const sharedAttrs = {
2218
- "data-rc-order": "prependQueue",
2219
- "data-rc-priority": `${order}`
2220
- };
2221
- keyStyleText = toStyleStr(styleStr, void 0, styleId, sharedAttrs, plain);
2222
- if (effectStyle) {
2223
- Object.keys(effectStyle).forEach((effectKey) => {
2224
- if (!effectStyles[effectKey]) {
2225
- effectStyles[effectKey] = true;
2226
- const effectStyleStr = normalizeStyle(effectStyle[effectKey], autoPrefix || false);
2227
- const effectStyleHTML = toStyleStr(effectStyleStr, void 0, `_effect-${effectKey}`, sharedAttrs, plain);
2228
- if (effectKey.startsWith("@layer")) {
2229
- keyStyleText = effectStyleHTML + keyStyleText;
2230
- } else {
2231
- keyStyleText += effectStyleHTML;
2232
- }
2233
- }
2234
- });
2235
- }
2236
- return [order, styleId, keyStyleText];
2237
- };
2238
-
2239
- // ../../node_modules/.pnpm/@ant-design+cssinjs@2.1.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@ant-design/cssinjs/es/hooks/useCSSVarRegister.js
2240
- var CSS_VAR_PREFIX = "cssVar";
2241
- var useCSSVarRegister = (config, fn) => {
2242
- const {
2243
- key,
2244
- prefix: prefix2,
2245
- unitless,
2246
- ignore,
2247
- token: token2,
2248
- hashId,
2249
- scope,
2250
- nonce
2251
- } = config;
2252
- const {
2253
- cache: {
2254
- instanceId
2255
- },
2256
- container,
2257
- hashPriority
2258
- } = useContext5(StyleContext_default);
2259
- const {
2260
- _tokenKey: tokenKey
2261
- } = token2;
2262
- const scopeKey = Array.isArray(scope) ? scope.join("@@") : scope;
2263
- const stylePath = [...config.path, key, scopeKey, tokenKey];
2264
- const cache = useGlobalCache(CSS_VAR_PREFIX, stylePath, () => {
2265
- const originToken = fn();
2266
- const [mergedToken, cssVarsStr] = transformToken(originToken, key, {
2267
- prefix: prefix2,
2268
- unitless,
2269
- ignore,
2270
- scope,
2271
- hashPriority,
2272
- hashCls: hashId
2273
- });
2274
- const styleId = uniqueHash(stylePath, cssVarsStr);
2275
- return [mergedToken, cssVarsStr, styleId, key];
2276
- }, ([, , styleId]) => {
2277
- if (isClientSide) {
2278
- removeCSS(styleId, {
2279
- mark: ATTR_MARK,
2280
- attachTo: container
2281
- });
2282
- }
2283
- }, ([, cssVarsStr, styleId]) => {
2284
- if (!cssVarsStr) {
2285
- return;
2286
- }
2287
- let mergedCSSConfig = {
2288
- mark: ATTR_MARK,
2289
- prepend: "queue",
2290
- attachTo: container,
2291
- priority: -999
2292
- };
2293
- mergedCSSConfig = injectCSPNonce(mergedCSSConfig, nonce);
2294
- const style = updateCSS(cssVarsStr, styleId, mergedCSSConfig);
2295
- style[CSS_IN_JS_INSTANCE] = instanceId;
2296
- style.setAttribute(ATTR_TOKEN, key);
2297
- });
2298
- return cache;
2299
- };
2300
- var extract3 = (cache, effectStyles, options) => {
2301
- const [, styleStr, styleId, cssVarKey] = cache;
2302
- const {
2303
- plain
2304
- } = options || {};
2305
- if (!styleStr) {
2306
- return null;
2307
- }
2308
- const order = -999;
2309
- const sharedAttrs = {
2310
- "data-rc-order": "prependQueue",
2311
- "data-rc-priority": `${order}`
2312
- };
2313
- const styleText = toStyleStr(styleStr, cssVarKey, styleId, sharedAttrs, plain);
2314
- return [order, styleId, styleText];
2315
- };
2316
- var useCSSVarRegister_default = useCSSVarRegister;
2317
-
2318
- // ../../node_modules/.pnpm/@ant-design+cssinjs@2.1.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@ant-design/cssinjs/es/extractStyle.js
2319
- var ExtractStyleFns = {
2320
- [STYLE_PREFIX]: extract2,
2321
- [TOKEN_PREFIX]: extract,
2322
- [CSS_VAR_PREFIX]: extract3
2323
- };
2324
- function isNotNull(value) {
2325
- return value !== null;
2326
- }
2327
- function extractStyle(cache, options) {
2328
- const {
2329
- plain = false,
2330
- types = ["style", "token", "cssVar"],
2331
- once = false
2332
- } = typeof options === "boolean" ? {
2333
- plain: options
2334
- } : options || {};
2335
- const matchPrefixRegexp = new RegExp(`^(${(typeof types === "string" ? [types] : types).join("|")})%`);
2336
- const styleKeys = Array.from(cache.cache.keys()).filter((key) => matchPrefixRegexp.test(key));
2337
- const effectStyles = {};
2338
- const cachePathMap2 = {};
2339
- let styleText = "";
2340
- styleKeys.map((key) => {
2341
- if (once && cache.extracted.has(key)) {
2342
- return null;
2343
- }
2344
- const cachePath = key.replace(matchPrefixRegexp, "").replace(/%/g, "|");
2345
- const [prefix2] = key.split("%");
2346
- const extractFn = ExtractStyleFns[prefix2];
2347
- const extractedStyle = extractFn(cache.cache.get(key)[1], effectStyles, {
2348
- plain
2349
- });
2350
- if (!extractedStyle) {
2351
- return null;
2352
- }
2353
- const updateTime = cache.updateTimes.get(key) || 0;
2354
- const [order, styleId, styleStr] = extractedStyle;
2355
- if (key.startsWith("style")) {
2356
- cachePathMap2[cachePath] = styleId;
2357
- }
2358
- cache.extracted.add(key);
2359
- return [order, styleStr, updateTime];
2360
- }).filter(isNotNull).sort(([o1, , u1], [o2, , u2]) => {
2361
- if (o1 !== o2) {
2362
- return o1 - o2;
2363
- }
2364
- return u1 - u2;
2365
- }).forEach(([, style]) => {
2366
- styleText += style;
2367
- });
2368
- styleText += toStyleStr(`.${ATTR_CACHE_MAP}{content:"${serialize2(cachePathMap2)}";}`, void 0, void 0, {
2369
- [ATTR_CACHE_MAP]: ATTR_CACHE_MAP
2370
- }, plain);
2371
- return styleText;
2372
- }
2373
-
2374
- // ../../node_modules/.pnpm/@ant-design+cssinjs@2.1.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@ant-design/cssinjs/es/Keyframes.js
2375
- var Keyframe = class {
2376
- constructor(name, style) {
2377
- __publicField(this, "name");
2378
- __publicField(this, "style");
2379
- __publicField(this, "_keyframe", true);
2380
- this.name = name;
2381
- this.style = style;
2382
- }
2383
- getName(hashId = "") {
2384
- return hashId ? `${hashId}-${this.name}` : this.name;
2385
- }
2386
- };
2387
- var Keyframes_default = Keyframe;
2388
-
2389
- // ../../node_modules/.pnpm/@ant-design+cssinjs@2.1.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@ant-design/cssinjs/es/transformers/legacyLogicalProperties.js
2390
- function splitValues(value) {
2391
- if (typeof value === "number") {
2392
- return [[value], false];
2393
- }
2394
- const rawStyle = String(value).trim();
2395
- const importantCells = rawStyle.match(/(.*)(!important)/);
2396
- const splitStyle = (importantCells ? importantCells[1] : rawStyle).trim().split(/\s+/);
2397
- let temp = [];
2398
- let brackets = 0;
2399
- return [splitStyle.reduce((list, item) => {
2400
- if (item.includes("(") || item.includes(")")) {
2401
- const left = item.split("(").length - 1;
2402
- const right = item.split(")").length - 1;
2403
- brackets += left - right;
2404
- }
2405
- if (brackets >= 0) temp.push(item);
2406
- if (brackets === 0) {
2407
- list.push(temp.join(" "));
2408
- temp = [];
2409
- }
2410
- return list;
2411
- }, []), !!importantCells];
2412
- }
2413
- function noSplit(list) {
2414
- list.notSplit = true;
2415
- return list;
2416
- }
2417
- var keyMap = {
2418
- // Inset
2419
- inset: ["top", "right", "bottom", "left"],
2420
- insetBlock: ["top", "bottom"],
2421
- insetBlockStart: ["top"],
2422
- insetBlockEnd: ["bottom"],
2423
- insetInline: ["left", "right"],
2424
- insetInlineStart: ["left"],
2425
- insetInlineEnd: ["right"],
2426
- // Margin
2427
- marginBlock: ["marginTop", "marginBottom"],
2428
- marginBlockStart: ["marginTop"],
2429
- marginBlockEnd: ["marginBottom"],
2430
- marginInline: ["marginLeft", "marginRight"],
2431
- marginInlineStart: ["marginLeft"],
2432
- marginInlineEnd: ["marginRight"],
2433
- // Padding
2434
- paddingBlock: ["paddingTop", "paddingBottom"],
2435
- paddingBlockStart: ["paddingTop"],
2436
- paddingBlockEnd: ["paddingBottom"],
2437
- paddingInline: ["paddingLeft", "paddingRight"],
2438
- paddingInlineStart: ["paddingLeft"],
2439
- paddingInlineEnd: ["paddingRight"],
2440
- // Border
2441
- borderBlock: noSplit(["borderTop", "borderBottom"]),
2442
- borderBlockStart: noSplit(["borderTop"]),
2443
- borderBlockEnd: noSplit(["borderBottom"]),
2444
- borderInline: noSplit(["borderLeft", "borderRight"]),
2445
- borderInlineStart: noSplit(["borderLeft"]),
2446
- borderInlineEnd: noSplit(["borderRight"]),
2447
- // Border width
2448
- borderBlockWidth: ["borderTopWidth", "borderBottomWidth"],
2449
- borderBlockStartWidth: ["borderTopWidth"],
2450
- borderBlockEndWidth: ["borderBottomWidth"],
2451
- borderInlineWidth: ["borderLeftWidth", "borderRightWidth"],
2452
- borderInlineStartWidth: ["borderLeftWidth"],
2453
- borderInlineEndWidth: ["borderRightWidth"],
2454
- // Border style
2455
- borderBlockStyle: ["borderTopStyle", "borderBottomStyle"],
2456
- borderBlockStartStyle: ["borderTopStyle"],
2457
- borderBlockEndStyle: ["borderBottomStyle"],
2458
- borderInlineStyle: ["borderLeftStyle", "borderRightStyle"],
2459
- borderInlineStartStyle: ["borderLeftStyle"],
2460
- borderInlineEndStyle: ["borderRightStyle"],
2461
- // Border color
2462
- borderBlockColor: ["borderTopColor", "borderBottomColor"],
2463
- borderBlockStartColor: ["borderTopColor"],
2464
- borderBlockEndColor: ["borderBottomColor"],
2465
- borderInlineColor: ["borderLeftColor", "borderRightColor"],
2466
- borderInlineStartColor: ["borderLeftColor"],
2467
- borderInlineEndColor: ["borderRightColor"],
2468
- // Border radius
2469
- borderStartStartRadius: ["borderTopLeftRadius"],
2470
- borderStartEndRadius: ["borderTopRightRadius"],
2471
- borderEndStartRadius: ["borderBottomLeftRadius"],
2472
- borderEndEndRadius: ["borderBottomRightRadius"]
2473
- };
2474
- function wrapImportantAndSkipCheck(value, important) {
2475
- let parsedValue = value;
2476
- if (important) {
2477
- parsedValue = `${parsedValue} !important`;
2478
- }
2479
- return {
2480
- _skip_check_: true,
2481
- value: parsedValue
2482
- };
2483
- }
2484
- var transform2 = {
2485
- visit: (cssObj) => {
2486
- const clone = {};
2487
- Object.keys(cssObj).forEach((key) => {
2488
- const value = cssObj[key];
2489
- const matchValue = keyMap[key];
2490
- if (matchValue && (typeof value === "number" || typeof value === "string")) {
2491
- const [values, important] = splitValues(value);
2492
- if (matchValue.length && matchValue.notSplit) {
2493
- matchValue.forEach((matchKey) => {
2494
- clone[matchKey] = wrapImportantAndSkipCheck(value, important);
2495
- });
2496
- } else if (matchValue.length === 1) {
2497
- clone[matchValue[0]] = wrapImportantAndSkipCheck(values[0], important);
2498
- } else if (matchValue.length === 2) {
2499
- matchValue.forEach((matchKey, index) => {
2500
- clone[matchKey] = wrapImportantAndSkipCheck(values[index] ?? values[0], important);
2501
- });
2502
- } else if (matchValue.length === 4) {
2503
- matchValue.forEach((matchKey, index) => {
2504
- clone[matchKey] = wrapImportantAndSkipCheck(values[index] ?? values[index - 2] ?? values[0], important);
2505
- });
2506
- } else {
2507
- clone[key] = value;
2508
- }
2509
- } else {
2510
- clone[key] = value;
2511
- }
2512
- });
2513
- return clone;
2514
- }
2515
- };
2516
- var legacyLogicalProperties_default = transform2;
2517
-
2518
- // ../../node_modules/.pnpm/@ant-design+cssinjs@2.1.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@ant-design/cssinjs/es/transformers/px2rem.js
2519
- var pxRegex = /url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;
2520
- function toFixed(number, precision) {
2521
- const multiplier = Math.pow(10, precision + 1), wholeNumber = Math.floor(number * multiplier);
2522
- return Math.round(wholeNumber / 10) * 10 / multiplier;
2523
- }
2524
- var transform3 = (options = {}) => {
2525
- const {
2526
- rootValue = 16,
2527
- precision = 5,
2528
- mediaQuery = false
2529
- } = options;
2530
- const pxReplace = (m, $1) => {
2531
- if (!$1) return m;
2532
- const pixels = parseFloat($1);
2533
- if (pixels <= 1) return m;
2534
- const fixedVal = toFixed(pixels / rootValue, precision);
2535
- return `${fixedVal}rem`;
2536
- };
2537
- const visit = (cssObj) => {
2538
- const clone = {
2539
- ...cssObj
2540
- };
2541
- Object.entries(cssObj).forEach(([key, value]) => {
2542
- if (typeof value === "string" && value.includes("px")) {
2543
- const newValue = value.replace(pxRegex, pxReplace);
2544
- clone[key] = newValue;
2545
- }
2546
- if (!unitless_browser_esm_default[key] && typeof value === "number" && value !== 0) {
2547
- clone[key] = `${value}px`.replace(pxRegex, pxReplace);
2548
- }
2549
- const mergedKey = key.trim();
2550
- if (mergedKey.startsWith("@") && mergedKey.includes("px") && mediaQuery) {
2551
- const newKey = key.replace(pxRegex, pxReplace);
2552
- clone[newKey] = clone[key];
2553
- delete clone[key];
2554
- }
2555
- });
2556
- return clone;
2557
- };
2558
- return {
2559
- visit
2560
- };
2561
- };
2562
- var px2rem_default = transform3;
2563
-
2564
- // ../../node_modules/.pnpm/@ant-design+cssinjs@2.1.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@ant-design/cssinjs/es/index.js
2565
- var _experimental = {
2566
- supportModernCSS: () => supportWhere() && supportLogicProps()
2567
- };
2568
-
2569
- // shell/.ojm-shim-cssinjs.mjs
2570
- var ojm_shim_cssinjs_default = void 0 ?? es_exports;
2571
- export {
2572
- Keyframes_default as Keyframes,
2573
- NaNLinter_default as NaNLinter,
2574
- StyleContext_default as StyleContext,
2575
- StyleProvider,
2576
- Theme,
2577
- _experimental,
2578
- autoPrefix_default as autoPrefixTransformer,
2579
- createCache,
2580
- createTheme,
2581
- ojm_shim_cssinjs_default as default,
2582
- extractStyle,
2583
- calc_default as genCalc,
2584
- getComputedToken,
2585
- legacyLogicalProperties_default as legacyLogicalPropertiesTransformer,
2586
- legacyNotSelectorLinter_default as legacyNotSelectorLinter,
2587
- logicalPropertiesLinter_default as logicalPropertiesLinter,
2588
- parentSelectorLinter_default as parentSelectorLinter,
2589
- px2rem_default as px2remTransformer,
2590
- token2CSSVar,
2591
- unit2 as unit,
2592
- useCSSVarRegister_default as useCSSVarRegister,
2593
- useCacheToken,
2594
- useStyleRegister
2595
- };