@tachybase/module-web 1.3.18 → 1.3.20

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 (396) hide show
  1. package/dist/client/MAppNotFound.d.ts +1 -0
  2. package/dist/client/MobileClientProvider.d.ts +2 -0
  3. package/dist/client/MobileLinkProvider.d.ts +1 -0
  4. package/dist/client/assistant-tool/Designable/DesignableButtonProvider.d.ts +1 -0
  5. package/dist/client/assistant-tool/Designable/plugin.d.ts +5 -0
  6. package/dist/client/assistant-tool/calculator/AutoScalingText.d.ts +3 -0
  7. package/dist/client/assistant-tool/calculator/Calculator.d.ts +2 -0
  8. package/dist/client/assistant-tool/calculator/CalculatorDisplay.d.ts +4 -0
  9. package/dist/client/assistant-tool/calculator/CalculatorKey.d.ts +5 -0
  10. package/dist/client/assistant-tool/calculator/CalculatorModalProvider.d.ts +9 -0
  11. package/dist/client/assistant-tool/calculator/CalculatorProvider.d.ts +1 -0
  12. package/dist/client/assistant-tool/calculator/Draggable.d.ts +8 -0
  13. package/dist/client/assistant-tool/calculator/plugin.d.ts +5 -0
  14. package/dist/client/assistant-tool/calculator/style.d.ts +3 -0
  15. package/dist/client/assistant-tool/search-and-jump/SearchAndJumpModelProvider.d.ts +16 -0
  16. package/dist/client/assistant-tool/search-and-jump/SearchAndJumpProvider.d.ts +1 -0
  17. package/dist/client/assistant-tool/search-and-jump/plugin.d.ts +5 -0
  18. package/dist/client/configuration/App.d.ts +1 -0
  19. package/dist/client/configuration/Interface.d.ts +1 -0
  20. package/dist/client/configuration/index.d.ts +2 -0
  21. package/dist/client/core/assets/svg/index.d.ts +4 -0
  22. package/dist/client/core/bridge/index.d.ts +2 -0
  23. package/dist/client/core/bridge/injects.d.ts +13 -0
  24. package/dist/client/core/bridge/native-call.d.ts +1 -0
  25. package/dist/client/core/index.d.ts +5 -0
  26. package/dist/client/core/schema/CustomColor.d.ts +1 -0
  27. package/dist/client/core/schema/CustomComponent.d.ts +1 -0
  28. package/dist/client/core/schema/common/index.d.ts +1 -0
  29. package/dist/client/core/schema/common/page.d.ts +16 -0
  30. package/dist/client/core/schema/components/antd-mobile/Cascader/AntdCadcader.d.ts +2 -0
  31. package/dist/client/core/schema/components/antd-mobile/Cascader/Cadcader.d.ts +3 -0
  32. package/dist/client/core/schema/components/antd-mobile/Cascader/ReadPretty.d.ts +2 -0
  33. package/dist/client/core/schema/components/antd-mobile/Cascader/defaultFieldNames.d.ts +5 -0
  34. package/dist/client/core/schema/components/antd-mobile/Cascader/index.d.ts +1 -0
  35. package/dist/client/core/schema/components/antd-mobile/Cascader/style.d.ts +3 -0
  36. package/dist/client/core/schema/components/antd-mobile/Checkbox/Checkbox.d.ts +7 -0
  37. package/dist/client/core/schema/components/antd-mobile/Checkbox/index.d.ts +1 -0
  38. package/dist/client/core/schema/components/antd-mobile/DatePicker/DatePicker.d.ts +2 -0
  39. package/dist/client/core/schema/components/antd-mobile/DatePicker/index.d.ts +1 -0
  40. package/dist/client/core/schema/components/antd-mobile/ImageUploader/ImageUploader.d.ts +4 -0
  41. package/dist/client/core/schema/components/antd-mobile/ImageUploader/index.d.ts +1 -0
  42. package/dist/client/core/schema/components/antd-mobile/Input/Input.d.ts +7 -0
  43. package/dist/client/core/schema/components/antd-mobile/Input/index.d.ts +1 -0
  44. package/dist/client/core/schema/components/antd-mobile/Radio/Radio.d.ts +7 -0
  45. package/dist/client/core/schema/components/antd-mobile/Radio/index.d.ts +1 -0
  46. package/dist/client/core/schema/components/antd-mobile/Select/AntdSelect.d.ts +2 -0
  47. package/dist/client/core/schema/components/antd-mobile/Select/AntdSelectContext.d.ts +2 -0
  48. package/dist/client/core/schema/components/antd-mobile/Select/CreateRecordAction.d.ts +1 -0
  49. package/dist/client/core/schema/components/antd-mobile/Select/Select.d.ts +4 -0
  50. package/dist/client/core/schema/components/antd-mobile/Select/index.d.ts +1 -0
  51. package/dist/client/core/schema/components/antd-mobile/Select/style.d.ts +4 -0
  52. package/dist/client/core/schema/components/antd-mobile/index.d.ts +7 -0
  53. package/dist/client/core/schema/components/container/Container.Designer.d.ts +1 -0
  54. package/dist/client/core/schema/components/container/Container.d.ts +7 -0
  55. package/dist/client/core/schema/components/container/index.d.ts +1 -0
  56. package/dist/client/core/schema/components/container/style.d.ts +5 -0
  57. package/dist/client/core/schema/components/header/Header.Designer.d.ts +1 -0
  58. package/dist/client/core/schema/components/header/Header.d.ts +11 -0
  59. package/dist/client/core/schema/components/header/HeaderShareModal.d.ts +6 -0
  60. package/dist/client/core/schema/components/header/index.d.ts +1 -0
  61. package/dist/client/core/schema/components/header/style.d.ts +8 -0
  62. package/dist/client/core/schema/components/image-search/ImageSearch.configure.d.ts +2 -0
  63. package/dist/client/core/schema/components/image-search/ImageSearch.initializer.d.ts +1 -0
  64. package/dist/client/core/schema/components/image-search/ImageSearch.provider.d.ts +4 -0
  65. package/dist/client/core/schema/components/image-search/ImageSearch.schema.d.ts +8 -0
  66. package/dist/client/core/schema/components/image-search/ImageSearch.view.d.ts +2 -0
  67. package/dist/client/core/schema/components/image-search/hooks/index.d.ts +1 -0
  68. package/dist/client/core/schema/components/image-search/hooks/useSelect.d.ts +3 -0
  69. package/dist/client/core/schema/components/image-search/index.d.ts +7 -0
  70. package/dist/client/core/schema/components/image-search/search-item/ImageSearchItem.intializer.d.ts +1 -0
  71. package/dist/client/core/schema/components/image-search/search-item/ImageSearchItem.schema.d.ts +11 -0
  72. package/dist/client/core/schema/components/image-search/search-item/ImageSearchItem.setting.d.ts +2 -0
  73. package/dist/client/core/schema/components/image-search/search-item/ImageSearchItem.toolbar.d.ts +1 -0
  74. package/dist/client/core/schema/components/image-search/search-item/ImageSearchItem.view.d.ts +1 -0
  75. package/dist/client/core/schema/components/image-search/search-item/index.d.ts +7 -0
  76. package/dist/client/core/schema/components/image-search/search-item/useProps.Optional.d.ts +17 -0
  77. package/dist/client/core/schema/components/image-search/search-item/useProps.Related.d.ts +7 -0
  78. package/dist/client/core/schema/components/index.d.ts +11 -0
  79. package/dist/client/core/schema/components/menu/Menu.Designer.d.ts +2 -0
  80. package/dist/client/core/schema/components/menu/Menu.Item.d.ts +6 -0
  81. package/dist/client/core/schema/components/menu/Menu.d.ts +9 -0
  82. package/dist/client/core/schema/components/menu/MenuBlockInitializer.d.ts +1 -0
  83. package/dist/client/core/schema/components/menu/index.d.ts +2 -0
  84. package/dist/client/core/schema/components/menu/schema.d.ts +17 -0
  85. package/dist/client/core/schema/components/menu/style.d.ts +4 -0
  86. package/dist/client/core/schema/components/notice/index.d.ts +1 -0
  87. package/dist/client/core/schema/components/notice/schema-create/createGridCardBlockSchma.d.ts +57 -0
  88. package/dist/client/core/schema/components/notice/schema-initializer/NoticeBlockInitializer.d.ts +2 -0
  89. package/dist/client/core/schema/components/notice/schema-initializer/index.d.ts +1 -0
  90. package/dist/client/core/schema/components/page/Page.Designer.d.ts +1 -0
  91. package/dist/client/core/schema/components/page/Page.d.ts +7 -0
  92. package/dist/client/core/schema/components/page/index.d.ts +1 -0
  93. package/dist/client/core/schema/components/page/style.d.ts +6 -0
  94. package/dist/client/core/schema/components/settings/Settings.Designer.d.ts +1 -0
  95. package/dist/client/core/schema/components/settings/Settings.d.ts +5 -0
  96. package/dist/client/core/schema/components/settings/SettingsBlockInitializer.d.ts +1 -0
  97. package/dist/client/core/schema/components/settings/index.d.ts +2 -0
  98. package/dist/client/core/schema/components/swiper/SwiperBlock.d.ts +1 -0
  99. package/dist/client/core/schema/components/swiper/SwiperBlockInitializer.d.ts +1 -0
  100. package/dist/client/core/schema/components/swiper/SwiperFieldSettings.d.ts +2 -0
  101. package/dist/client/core/schema/components/swiper/SwiperPage.d.ts +1 -0
  102. package/dist/client/core/schema/components/swiper/index.d.ts +5 -0
  103. package/dist/client/core/schema/components/swiper/useSwiperBlockProps.d.ts +9 -0
  104. package/dist/client/core/schema/components/tab-bar/TabBar.Item.d.ts +8 -0
  105. package/dist/client/core/schema/components/tab-bar/TabBar.d.ts +6 -0
  106. package/dist/client/core/schema/components/tab-bar/index.d.ts +1 -0
  107. package/dist/client/core/schema/components/tab-bar/schema.d.ts +18 -0
  108. package/dist/client/core/schema/components/tab-search/components/TabSearch.d.ts +1 -0
  109. package/dist/client/core/schema/components/tab-search/components/field-item/TabSearchCollapsibleInputItem.d.ts +1 -0
  110. package/dist/client/core/schema/components/tab-search/components/field-item/TabSearchCollapsibleInputItemAction.d.ts +18 -0
  111. package/dist/client/core/schema/components/tab-search/components/field-item/TabSearchCollapsibleInputItemChild.d.ts +4 -0
  112. package/dist/client/core/schema/components/tab-search/components/field-item/TabSearchCollapsibleInputMItem.d.ts +1 -0
  113. package/dist/client/core/schema/components/tab-search/components/field-item/TabSearchCollapsibleInputMItemChild.d.ts +4 -0
  114. package/dist/client/core/schema/components/tab-search/components/field-item/TabSearchFieldItem.d.ts +1 -0
  115. package/dist/client/core/schema/components/tab-search/components/field-item/TabSearchFieldItemProps.d.ts +11 -0
  116. package/dist/client/core/schema/components/tab-search/components/field-item/TabSearchFieldMItem.d.ts +7 -0
  117. package/dist/client/core/schema/components/tab-search/components/field-item/TabSerachFieldItemRelatedProps.d.ts +17 -0
  118. package/dist/client/core/schema/components/tab-search/components/field-item/hooks.d.ts +7 -0
  119. package/dist/client/core/schema/components/tab-search/components/field-item/index.d.ts +6 -0
  120. package/dist/client/core/schema/components/tab-search/components/index.d.ts +2 -0
  121. package/dist/client/core/schema/components/tab-search/create/createTabSearchBlockSchema.d.ts +6 -0
  122. package/dist/client/core/schema/components/tab-search/create/createTabSearchItemSchema.d.ts +24 -0
  123. package/dist/client/core/schema/components/tab-search/index.d.ts +4 -0
  124. package/dist/client/core/schema/components/tab-search/initializer/TabSearchAssociated.fields.d.ts +1 -0
  125. package/dist/client/core/schema/components/tab-search/initializer/TabSearchBlockInitializer.d.ts +1 -0
  126. package/dist/client/core/schema/components/tab-search/initializer/TabSearchFieldSchemaInitializer.d.ts +2 -0
  127. package/dist/client/core/schema/components/tab-search/initializer/TabSearchFieldSchemaInitializerGadget.d.ts +1 -0
  128. package/dist/client/core/schema/components/tab-search/initializer/index.d.ts +3 -0
  129. package/dist/client/core/schema/components/tab-search/mapToMobile.d.ts +1 -0
  130. package/dist/client/core/schema/components/tab-search/provider/TabSearchProvider.d.ts +1 -0
  131. package/dist/client/core/schema/components/tab-search/provider/index.d.ts +1 -0
  132. package/dist/client/core/schema/components/tab-search/settings/TabSearchItemFieldSettings.d.ts +2 -0
  133. package/dist/client/core/schema/components/tab-search/settings/index.d.ts +1 -0
  134. package/dist/client/core/schema/components/tab-search/utils.d.ts +8 -0
  135. package/dist/client/core/schema/helpers/index.d.ts +67 -0
  136. package/dist/client/core/schema/hooks/index.d.ts +1 -0
  137. package/dist/client/core/schema/hooks/useSchemaPatch.d.ts +3 -0
  138. package/dist/client/core/schema/index.d.ts +6 -0
  139. package/dist/client/core/schema/initializers/BlockInitializers.d.ts +2 -0
  140. package/dist/client/core/schema/initializers/index.d.ts +1 -0
  141. package/dist/client/core/schema/scopes/grid-card.d.ts +15 -0
  142. package/dist/client/core/schema/scopes/index.d.ts +1 -0
  143. package/dist/client/devices/iOS6.d.ts +6 -0
  144. package/dist/client/devices/index.d.ts +2 -0
  145. package/dist/client/index.d.ts +13 -0
  146. package/dist/client/index.js +500 -0
  147. package/dist/client/locale/index.d.ts +5 -0
  148. package/dist/client/plugin-data-select/DataSelect.d.ts +33 -0
  149. package/dist/client/plugin-data-select/PluginDataSelect.d.ts +4 -0
  150. package/dist/client/plugin-data-select/settings.d.ts +7 -0
  151. package/dist/client/router/Application.d.ts +3 -0
  152. package/dist/client/router/InterfaceProvider.d.ts +4 -0
  153. package/dist/client/router/InterfaceRouter.d.ts +2 -0
  154. package/dist/client/router/OpenInNewTab.d.ts +1 -0
  155. package/dist/client/router/index.d.ts +1 -0
  156. package/dist/env.d.js +0 -0
  157. package/dist/externalVersion.js +17 -0
  158. package/dist/index.d.ts +2 -0
  159. package/dist/index.js +39 -0
  160. package/dist/locale/antd/ar_EG.js +1 -0
  161. package/dist/locale/antd/az_AZ.js +1 -0
  162. package/dist/locale/antd/bg_BG.js +1 -0
  163. package/dist/locale/antd/bn_BD.js +1 -0
  164. package/dist/locale/antd/by_BY.js +1 -0
  165. package/dist/locale/antd/ca_ES.js +1 -0
  166. package/dist/locale/antd/cs_CZ.js +1 -0
  167. package/dist/locale/antd/da_DK.js +1 -0
  168. package/dist/locale/antd/de_DE.js +1 -0
  169. package/dist/locale/antd/el_GR.js +1 -0
  170. package/dist/locale/antd/en_GB.js +1 -0
  171. package/dist/locale/antd/en_US.js +1 -0
  172. package/dist/locale/antd/es_ES.js +1 -0
  173. package/dist/locale/antd/et_EE.js +1 -0
  174. package/dist/locale/antd/eu_ES.js +1 -0
  175. package/dist/locale/antd/fa_IR.js +1 -0
  176. package/dist/locale/antd/fi_FI.js +1 -0
  177. package/dist/locale/antd/fr_BE.js +1 -0
  178. package/dist/locale/antd/fr_CA.js +1 -0
  179. package/dist/locale/antd/fr_FR.js +1 -0
  180. package/dist/locale/antd/ga_IE.js +1 -0
  181. package/dist/locale/antd/gl_ES.js +1 -0
  182. package/dist/locale/antd/he_IL.js +1 -0
  183. package/dist/locale/antd/hi_IN.js +1 -0
  184. package/dist/locale/antd/hr_HR.js +1 -0
  185. package/dist/locale/antd/hu_HU.js +1 -0
  186. package/dist/locale/antd/hy_AM.js +1 -0
  187. package/dist/locale/antd/id_ID.js +1 -0
  188. package/dist/locale/antd/index.js +1 -0
  189. package/dist/locale/antd/is_IS.js +1 -0
  190. package/dist/locale/antd/it_IT.js +1 -0
  191. package/dist/locale/antd/ja_JP.js +1 -0
  192. package/dist/locale/antd/ka_GE.js +1 -0
  193. package/dist/locale/antd/kk_KZ.js +1 -0
  194. package/dist/locale/antd/km_KH.js +1 -0
  195. package/dist/locale/antd/kmr_IQ.js +1 -0
  196. package/dist/locale/antd/kn_IN.js +1 -0
  197. package/dist/locale/antd/ko_KR.js +1 -0
  198. package/dist/locale/antd/ku_IQ.js +1 -0
  199. package/dist/locale/antd/lt_LT.js +1 -0
  200. package/dist/locale/antd/lv_LV.js +1 -0
  201. package/dist/locale/antd/mk_MK.js +1 -0
  202. package/dist/locale/antd/ml_IN.js +1 -0
  203. package/dist/locale/antd/mn_MN.js +1 -0
  204. package/dist/locale/antd/ms_MY.js +1 -0
  205. package/dist/locale/antd/my_MM.js +1 -0
  206. package/dist/locale/antd/nb_NO.js +1 -0
  207. package/dist/locale/antd/ne_NP.js +1 -0
  208. package/dist/locale/antd/nl_BE.js +1 -0
  209. package/dist/locale/antd/nl_NL.js +1 -0
  210. package/dist/locale/antd/pl_PL.js +1 -0
  211. package/dist/locale/antd/pt_BR.js +1 -0
  212. package/dist/locale/antd/pt_PT.js +1 -0
  213. package/dist/locale/antd/ro_RO.js +1 -0
  214. package/dist/locale/antd/ru_RU.js +1 -0
  215. package/dist/locale/antd/si_LK.js +1 -0
  216. package/dist/locale/antd/sk_SK.js +1 -0
  217. package/dist/locale/antd/sl_SI.js +1 -0
  218. package/dist/locale/antd/sr_RS.js +1 -0
  219. package/dist/locale/antd/sv_SE.js +1 -0
  220. package/dist/locale/antd/ta_IN.js +1 -0
  221. package/dist/locale/antd/th_TH.js +1 -0
  222. package/dist/locale/antd/tk_TK.js +1 -0
  223. package/dist/locale/antd/tr_TR.js +1 -0
  224. package/dist/locale/antd/uk_UA.js +1 -0
  225. package/dist/locale/antd/ur_PK.js +1 -0
  226. package/dist/locale/antd/useLocale.js +1 -0
  227. package/dist/locale/antd/uz_UZ.js +1 -0
  228. package/dist/locale/antd/vi_VN.js +1 -0
  229. package/dist/locale/antd/zh_CN.js +1 -0
  230. package/dist/locale/antd/zh_HK.js +1 -0
  231. package/dist/locale/antd/zh_TW.js +1 -0
  232. package/dist/locale/cron/zh_CN.js +33 -0
  233. package/dist/locale/cron/zh_TW.js +33 -0
  234. package/dist/locale/en_US.js +906 -0
  235. package/dist/locale/es_ES.js +755 -0
  236. package/dist/locale/fr_FR.js +775 -0
  237. package/dist/locale/index.js +165 -0
  238. package/dist/locale/ja_JP.js +694 -0
  239. package/dist/locale/ko_KR.js +890 -0
  240. package/dist/locale/pt_BR.js +734 -0
  241. package/dist/locale/ru_RU.js +570 -0
  242. package/dist/locale/tr_TR.js +567 -0
  243. package/dist/locale/uk_UA.js +775 -0
  244. package/dist/locale/zh-CN.js +1077 -0
  245. package/dist/locale/zh-TW.js +862 -0
  246. package/dist/node_modules/cronstrue/LICENSE +21 -0
  247. package/dist/node_modules/cronstrue/bin/cli.js +26 -0
  248. package/dist/node_modules/cronstrue/dist/cronParser.d.ts +13 -0
  249. package/dist/node_modules/cronstrue/dist/cronstrue-i18n.d.ts +4 -0
  250. package/dist/node_modules/cronstrue/dist/cronstrue-i18n.js +7938 -0
  251. package/dist/node_modules/cronstrue/dist/cronstrue-i18n.min.js +1 -0
  252. package/dist/node_modules/cronstrue/dist/cronstrue.d.ts +4 -0
  253. package/dist/node_modules/cronstrue/dist/cronstrue.js +1 -0
  254. package/dist/node_modules/cronstrue/dist/cronstrue.min.js +1 -0
  255. package/dist/node_modules/cronstrue/dist/expressionDescriptor.d.ts +31 -0
  256. package/dist/node_modules/cronstrue/dist/i18n/allLocales.d.ts +37 -0
  257. package/dist/node_modules/cronstrue/dist/i18n/allLocalesLoader.d.ts +6 -0
  258. package/dist/node_modules/cronstrue/dist/i18n/enLocaleLoader.d.ts +6 -0
  259. package/dist/node_modules/cronstrue/dist/i18n/locale.d.ts +62 -0
  260. package/dist/node_modules/cronstrue/dist/i18n/localeLoader.d.ts +6 -0
  261. package/dist/node_modules/cronstrue/dist/i18n/locales/af.d.ts +56 -0
  262. package/dist/node_modules/cronstrue/dist/i18n/locales/ar.d.ts +56 -0
  263. package/dist/node_modules/cronstrue/dist/i18n/locales/be.d.ts +55 -0
  264. package/dist/node_modules/cronstrue/dist/i18n/locales/bg.d.ts +56 -0
  265. package/dist/node_modules/cronstrue/dist/i18n/locales/ca.d.ts +55 -0
  266. package/dist/node_modules/cronstrue/dist/i18n/locales/cs.d.ts +55 -0
  267. package/dist/node_modules/cronstrue/dist/i18n/locales/da.d.ts +55 -0
  268. package/dist/node_modules/cronstrue/dist/i18n/locales/de.d.ts +55 -0
  269. package/dist/node_modules/cronstrue/dist/i18n/locales/en.d.ts +56 -0
  270. package/dist/node_modules/cronstrue/dist/i18n/locales/es.d.ts +55 -0
  271. package/dist/node_modules/cronstrue/dist/i18n/locales/fa.d.ts +57 -0
  272. package/dist/node_modules/cronstrue/dist/i18n/locales/fi.d.ts +58 -0
  273. package/dist/node_modules/cronstrue/dist/i18n/locales/fr.d.ts +56 -0
  274. package/dist/node_modules/cronstrue/dist/i18n/locales/he.d.ts +55 -0
  275. package/dist/node_modules/cronstrue/dist/i18n/locales/hu.d.ts +56 -0
  276. package/dist/node_modules/cronstrue/dist/i18n/locales/id.d.ts +56 -0
  277. package/dist/node_modules/cronstrue/dist/i18n/locales/it.d.ts +55 -0
  278. package/dist/node_modules/cronstrue/dist/i18n/locales/ja.d.ts +60 -0
  279. package/dist/node_modules/cronstrue/dist/i18n/locales/ko.d.ts +60 -0
  280. package/dist/node_modules/cronstrue/dist/i18n/locales/my.d.ts +56 -0
  281. package/dist/node_modules/cronstrue/dist/i18n/locales/nb.d.ts +55 -0
  282. package/dist/node_modules/cronstrue/dist/i18n/locales/nl.d.ts +55 -0
  283. package/dist/node_modules/cronstrue/dist/i18n/locales/pl.d.ts +55 -0
  284. package/dist/node_modules/cronstrue/dist/i18n/locales/pt_BR.d.ts +55 -0
  285. package/dist/node_modules/cronstrue/dist/i18n/locales/pt_PT.d.ts +55 -0
  286. package/dist/node_modules/cronstrue/dist/i18n/locales/ro.d.ts +55 -0
  287. package/dist/node_modules/cronstrue/dist/i18n/locales/ru.d.ts +58 -0
  288. package/dist/node_modules/cronstrue/dist/i18n/locales/sk.d.ts +55 -0
  289. package/dist/node_modules/cronstrue/dist/i18n/locales/sl.d.ts +55 -0
  290. package/dist/node_modules/cronstrue/dist/i18n/locales/sv.d.ts +55 -0
  291. package/dist/node_modules/cronstrue/dist/i18n/locales/sw.d.ts +55 -0
  292. package/dist/node_modules/cronstrue/dist/i18n/locales/th.d.ts +56 -0
  293. package/dist/node_modules/cronstrue/dist/i18n/locales/tr.d.ts +55 -0
  294. package/dist/node_modules/cronstrue/dist/i18n/locales/uk.d.ts +55 -0
  295. package/dist/node_modules/cronstrue/dist/i18n/locales/vi.d.ts +56 -0
  296. package/dist/node_modules/cronstrue/dist/i18n/locales/zh_CN.d.ts +61 -0
  297. package/dist/node_modules/cronstrue/dist/i18n/locales/zh_TW.d.ts +58 -0
  298. package/dist/node_modules/cronstrue/dist/options.d.ts +9 -0
  299. package/dist/node_modules/cronstrue/dist/rangeValidator.d.ts +8 -0
  300. package/dist/node_modules/cronstrue/dist/stringUtilities.d.ts +4 -0
  301. package/dist/node_modules/cronstrue/i18n.d.ts +4 -0
  302. package/dist/node_modules/cronstrue/i18n.js +5 -0
  303. package/dist/node_modules/cronstrue/locales/af.js +283 -0
  304. package/dist/node_modules/cronstrue/locales/af.min.js +1 -0
  305. package/dist/node_modules/cronstrue/locales/ar.js +283 -0
  306. package/dist/node_modules/cronstrue/locales/ar.min.js +1 -0
  307. package/dist/node_modules/cronstrue/locales/be.js +280 -0
  308. package/dist/node_modules/cronstrue/locales/be.min.js +1 -0
  309. package/dist/node_modules/cronstrue/locales/bg.js +286 -0
  310. package/dist/node_modules/cronstrue/locales/bg.min.js +1 -0
  311. package/dist/node_modules/cronstrue/locales/ca.js +280 -0
  312. package/dist/node_modules/cronstrue/locales/ca.min.js +1 -0
  313. package/dist/node_modules/cronstrue/locales/cs.js +280 -0
  314. package/dist/node_modules/cronstrue/locales/cs.min.js +1 -0
  315. package/dist/node_modules/cronstrue/locales/da.js +280 -0
  316. package/dist/node_modules/cronstrue/locales/da.min.js +1 -0
  317. package/dist/node_modules/cronstrue/locales/de.js +280 -0
  318. package/dist/node_modules/cronstrue/locales/de.min.js +1 -0
  319. package/dist/node_modules/cronstrue/locales/en.js +283 -0
  320. package/dist/node_modules/cronstrue/locales/en.min.js +1 -0
  321. package/dist/node_modules/cronstrue/locales/es.js +280 -0
  322. package/dist/node_modules/cronstrue/locales/es.min.js +1 -0
  323. package/dist/node_modules/cronstrue/locales/fa.js +273 -0
  324. package/dist/node_modules/cronstrue/locales/fa.min.js +1 -0
  325. package/dist/node_modules/cronstrue/locales/fi.js +289 -0
  326. package/dist/node_modules/cronstrue/locales/fi.min.js +1 -0
  327. package/dist/node_modules/cronstrue/locales/fr.js +283 -0
  328. package/dist/node_modules/cronstrue/locales/fr.min.js +1 -0
  329. package/dist/node_modules/cronstrue/locales/he.js +267 -0
  330. package/dist/node_modules/cronstrue/locales/he.min.js +1 -0
  331. package/dist/node_modules/cronstrue/locales/hu.js +283 -0
  332. package/dist/node_modules/cronstrue/locales/hu.min.js +1 -0
  333. package/dist/node_modules/cronstrue/locales/id.js +283 -0
  334. package/dist/node_modules/cronstrue/locales/id.min.js +1 -0
  335. package/dist/node_modules/cronstrue/locales/it.js +280 -0
  336. package/dist/node_modules/cronstrue/locales/it.min.js +1 -0
  337. package/dist/node_modules/cronstrue/locales/ja.js +282 -0
  338. package/dist/node_modules/cronstrue/locales/ja.min.js +1 -0
  339. package/dist/node_modules/cronstrue/locales/ko.js +282 -0
  340. package/dist/node_modules/cronstrue/locales/ko.min.js +1 -0
  341. package/dist/node_modules/cronstrue/locales/my.js +283 -0
  342. package/dist/node_modules/cronstrue/locales/my.min.js +1 -0
  343. package/dist/node_modules/cronstrue/locales/nb.js +280 -0
  344. package/dist/node_modules/cronstrue/locales/nb.min.js +1 -0
  345. package/dist/node_modules/cronstrue/locales/nl.js +280 -0
  346. package/dist/node_modules/cronstrue/locales/nl.min.js +1 -0
  347. package/dist/node_modules/cronstrue/locales/pl.js +280 -0
  348. package/dist/node_modules/cronstrue/locales/pl.min.js +1 -0
  349. package/dist/node_modules/cronstrue/locales/pt_BR.js +280 -0
  350. package/dist/node_modules/cronstrue/locales/pt_BR.min.js +1 -0
  351. package/dist/node_modules/cronstrue/locales/pt_PT.js +280 -0
  352. package/dist/node_modules/cronstrue/locales/pt_PT.min.js +1 -0
  353. package/dist/node_modules/cronstrue/locales/ro.js +280 -0
  354. package/dist/node_modules/cronstrue/locales/ro.min.js +1 -0
  355. package/dist/node_modules/cronstrue/locales/ru.js +323 -0
  356. package/dist/node_modules/cronstrue/locales/ru.min.js +1 -0
  357. package/dist/node_modules/cronstrue/locales/sk.js +280 -0
  358. package/dist/node_modules/cronstrue/locales/sk.min.js +1 -0
  359. package/dist/node_modules/cronstrue/locales/sl.js +280 -0
  360. package/dist/node_modules/cronstrue/locales/sl.min.js +1 -0
  361. package/dist/node_modules/cronstrue/locales/sv.js +280 -0
  362. package/dist/node_modules/cronstrue/locales/sv.min.js +1 -0
  363. package/dist/node_modules/cronstrue/locales/sw.js +280 -0
  364. package/dist/node_modules/cronstrue/locales/sw.min.js +1 -0
  365. package/dist/node_modules/cronstrue/locales/th.js +283 -0
  366. package/dist/node_modules/cronstrue/locales/th.min.js +1 -0
  367. package/dist/node_modules/cronstrue/locales/tr.js +280 -0
  368. package/dist/node_modules/cronstrue/locales/tr.min.js +1 -0
  369. package/dist/node_modules/cronstrue/locales/uk.js +280 -0
  370. package/dist/node_modules/cronstrue/locales/uk.min.js +1 -0
  371. package/dist/node_modules/cronstrue/locales/vi.js +283 -0
  372. package/dist/node_modules/cronstrue/locales/vi.min.js +1 -0
  373. package/dist/node_modules/cronstrue/locales/zh_CN.js +285 -0
  374. package/dist/node_modules/cronstrue/locales/zh_CN.min.js +1 -0
  375. package/dist/node_modules/cronstrue/locales/zh_TW.js +276 -0
  376. package/dist/node_modules/cronstrue/locales/zh_TW.min.js +1 -0
  377. package/dist/node_modules/cronstrue/package.json +1 -0
  378. package/dist/server/antd.d.ts +1 -0
  379. package/dist/server/antd.js +45 -0
  380. package/dist/server/cron.d.ts +1 -0
  381. package/dist/server/cron.js +44 -0
  382. package/dist/server/cronstrue.d.ts +1 -0
  383. package/dist/server/cronstrue.js +136 -0
  384. package/dist/server/index.d.ts +1 -0
  385. package/dist/server/index.js +33 -0
  386. package/dist/server/migrations/20230620203216-admin-ui-schema-uid.d.ts +5 -0
  387. package/dist/server/migrations/20230620203216-admin-ui-schema-uid.js +67 -0
  388. package/dist/server/migrations/20231215215247-admin-menu-uid.d.ts +5 -0
  389. package/dist/server/migrations/20231215215247-admin-menu-uid.js +79 -0
  390. package/dist/server/migrations/20250116160330-update-uiSchemas.d.ts +6 -0
  391. package/dist/server/migrations/20250116160330-update-uiSchemas.js +57 -0
  392. package/dist/server/server.d.ts +7 -0
  393. package/dist/server/server.js +161 -0
  394. package/dist/swagger/index.json +7 -0
  395. package/package.json +9 -9
  396. package/LICENSE +0 -201
@@ -0,0 +1,500 @@
1
+ (function(){"use strict";try{if(typeof document!="undefined"){var a=document.createElement("style");a.id="@tachybase/module-web",a.appendChild(document.createTextNode(':root{--adm-radius-s: 4px;--adm-radius-m: 8px;--adm-radius-l: 12px;--adm-font-size-1: 9px;--adm-font-size-2: 10px;--adm-font-size-3: 11px;--adm-font-size-4: 12px;--adm-font-size-5: 13px;--adm-font-size-6: 14px;--adm-font-size-7: 15px;--adm-font-size-8: 16px;--adm-font-size-9: 17px;--adm-font-size-10: 18px;--adm-color-primary: #1677ff;--adm-color-success: #00b578;--adm-color-warning: #ff8f1f;--adm-color-danger: #ff3141;--adm-color-yellow: #ff9f18;--adm-color-orange: #ff6430;--adm-color-wathet: #e7f1ff;--adm-color-text: #333333;--adm-color-text-secondary: #666666;--adm-color-weak: #999999;--adm-color-light: #cccccc;--adm-color-border: #eeeeee;--adm-color-background: #ffffff;--adm-color-highlight: var(--adm-color-danger);--adm-color-white: #ffffff;--adm-color-box: #f5f5f5;--adm-color-text-light-solid: var(--adm-color-white);--adm-color-text-dark-solid: #000000;--adm-color-fill-content: var(--adm-color-box);--adm-font-size-main: var(--adm-font-size-5);--adm-font-family: -apple-system, blinkmacsystemfont, "Helvetica Neue", helvetica, segoe ui, arial, roboto, "PingFang SC", "miui", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;--adm-border-color: var(--adm-color-border)}html[data-prefers-color-scheme=dark]{--adm-color-primary: #3086ff;--adm-color-success: #34b368;--adm-color-warning: #ffa930;--adm-color-danger: #ff4a58;--adm-color-yellow: #ffa930;--adm-color-orange: #e65a2b;--adm-color-wathet: #0d2543;--adm-color-text: #e6e6e6;--adm-color-text-secondary: #b3b3b3;--adm-color-weak: #808080;--adm-color-light: #4d4d4d;--adm-color-border: #2b2b2b;--adm-color-box: #0a0a0a;--adm-color-background: #1a1a1a;--adm-color-background-body: var(--adm-color-background);--adm-border-color: var(--adm-color-border)}:root{-webkit-tap-highlight-color:rgba(0,0,0,0)}html{background-color:var(--adm-color-background-body)}body{color:var(--adm-color-text);font-size:var(--adm-font-size-main);font-family:var(--adm-font-family)}a,button{cursor:pointer}a{color:var(--adm-color-primary);transition:opacity ease-in-out .2s}a:active{opacity:.8}.adm-plain-anchor{color:unset;transition:none}.adm-plain-anchor:active{opacity:unset}body.adm-overflow-hidden{overflow:hidden!important}div.adm-px-tester{--size: 1;height:calc(var(--size) / 2 * 2px);width:0;position:fixed;left:-100vw;top:-100vh;-webkit-user-select:none;user-select:none;pointer-events:none}.adm-action-sheet-popup>.adm-popup-body{border-top-left-radius:8px;border-top-right-radius:8px;overflow:hidden}.adm-action-sheet-extra{display:flex;justify-content:center;color:var(--adm-color-weak);font-size:var(--adm-font-size-7);padding:18px 12px;border-bottom:1px solid var(--adm-color-border)}.adm-action-sheet-button-list,.adm-action-sheet-button-item-wrapper{border-bottom:1px solid var(--adm-color-border)}.adm-action-sheet-button-item-wrapper:last-child{border-bottom:none}.adm-action-sheet-button-item{text-align:center;display:block;background-color:var(--adm-color-background);padding:16px}.adm-action-sheet-button-item:active{background-color:var(--adm-color-border)}.adm-action-sheet-button-item-disabled{cursor:not-allowed;pointer-events:none;opacity:.4}.adm-action-sheet-button-item-name{color:var(--adm-color-text);font-size:var(--adm-font-size-10)}.adm-action-sheet-button-item-description{font-size:var(--adm-font-size-6);color:var(--adm-color-weak);padding-top:4px}.adm-action-sheet-button-item-danger .adm-action-sheet-button-item-name{color:var(--adm-color-danger)}.adm-action-sheet-button-item-bold .adm-action-sheet-button-item-name{font-weight:700}.adm-action-sheet-cancel{background-color:var(--adm-color-fill-content);padding-top:8px}.adm-popup{--z-index: var(--adm-popup-z-index, 1000);position:fixed;z-index:var(--z-index)}.adm-popup-body{position:fixed;background-color:var(--adm-color-background);z-index:calc(var(--z-index) + 10)}.adm-popup-body .adm-popup-close-icon{position:absolute;z-index:100}.adm-popup-body-position-bottom{width:100%;bottom:0;left:0}.adm-popup-body-position-bottom .adm-popup-close-icon{right:8px;top:8px}.adm-popup-body-position-top{width:100%;top:0;left:0}.adm-popup-body-position-top .adm-popup-close-icon{right:8px;bottom:8px}.adm-popup-body-position-left{height:100%;top:0;left:0}.adm-popup-body-position-left .adm-popup-close-icon{right:8px;top:8px}.adm-popup-body-position-right{height:100%;top:0;right:0}.adm-popup-body-position-right .adm-popup-close-icon{left:8px;top:8px}.adm-popup-close-icon{cursor:pointer;padding:4px;font-size:18px;line-height:1;color:var(--adm-color-weak)}.adm-mask{--z-index: var(--adm-mask-z-index, 1000);position:fixed;top:0;left:0;z-index:var(--z-index);display:block;width:100%;height:100%}.adm-mask-aria-button{position:absolute;top:0;left:0;z-index:0;width:100%;height:100%;pointer-events:none}.adm-mask-content{z-index:1}.adm-safe-area{--multiple: var(--adm-safe-area-multiple, 1);display:block;width:100%}.adm-safe-area-position-top{padding-top:calc(env(safe-area-inset-top) * var(--multiple))}.adm-safe-area-position-bottom{padding-bottom:calc(env(safe-area-inset-bottom) * var(--multiple))}.adm-auto-center{display:flex;justify-content:center}.adm-auto-center-content{flex:0 1 auto}.adm-image{--width: var(--adm-image-width, auto);--height: var(--adm-image-height, auto);width:var(--width);height:var(--height);display:block;overflow:hidden}.adm-image-img{width:100%;height:100%}.adm-image-tip{position:relative;background-color:var(--adm-color-fill-content);height:100%;min-height:24px;min-width:24px}.adm-image-tip>svg{width:24px;height:24px;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);color:var(--adm-color-weak)}.adm-badge-wrapper{display:inline-block;position:relative}.adm-badge{display:inline-flex;vertical-align:middle;box-sizing:content-box;border-radius:100px;background-color:var(--color);--right: 0;--top: 0;--color: var(--adm-badge-color, var(--adm-color-highlight))}.adm-badge-content{color:var(--adm-color-text-light-solid);box-sizing:border-box;min-width:8px;padding:1px 4px;font-size:var(--adm-font-size-1);line-height:12px;white-space:nowrap;font-weight:400;text-align:center}.adm-badge-fixed{position:absolute;right:var(--right);top:var(--top);transform:translate(50%,-50%)}.adm-badge-dot{min-width:10px;width:10px;height:10px;border-radius:5px}.adm-badge-bordered{border:solid 1px var(--adm-color-text-light-solid)}.adm-button{--color: var(--adm-color-text-light-solid);--text-color: var(--adm-button-text-color, var(--adm-color-text));--background-color: var(--adm-button-background-color, var(--adm-color-background));--border-radius: var(--adm-button-border-radius, 4px);--border-width: var(--adm-button-border-width, 1px);--border-style: var(--adm-button-border-style, solid);--border-color: var(--adm-button-border-color, var(--adm-color-border));color:var(--text-color);background-color:var(--background-color);position:relative;display:inline-block;box-sizing:border-box;height:auto;padding:7px 12px;margin:0;font-size:var(--adm-font-size-9);line-height:1.4;text-align:center;border:var(--border-width) var(--border-style) var(--border-color);border-radius:var(--border-radius);cursor:pointer;transition:opacity ease .15s;-webkit-user-select:none;user-select:none}.adm-button:focus{outline:none}.adm-button:before{position:absolute;top:0;left:0;transform:translate(calc(var(--border-width) * -1),calc(var(--border-width) * -1));width:100%;height:100%;background-color:var(--adm-color-text-dark-solid);border:var(--border-width) var(--border-style) var(--adm-color-text-dark-solid);border-radius:var(--border-radius);opacity:0;content:" ";box-sizing:content-box}.adm-button:active:before{opacity:.08}.adm-button-default.adm-button-fill-outline{--background-color: transparent;--border-color: var(--adm-color-text)}.adm-button-default.adm-button-fill-none{--background-color: transparent;--border-width: 0px}.adm-button:not(.adm-button-default){--text-color: var(--adm-color-text-light-solid);--background-color: var(--color);--border-color: var(--color)}.adm-button:not(.adm-button-default).adm-button-fill-outline{--text-color: var(--color);--background-color: transparent}.adm-button:not(.adm-button-default).adm-button-fill-none{--text-color: var(--color);--background-color: transparent;--border-width: 0px}.adm-button-primary{--color: var(--adm-color-primary)}.adm-button-success{--color: var(--adm-color-success)}.adm-button-danger{--color: var(--adm-color-danger)}.adm-button-warning{--color: var(--adm-color-warning)}.adm-button-block{display:block;width:100%}.adm-button-disabled{cursor:not-allowed;opacity:.4}.adm-button-disabled:active:before{display:none}.adm-button.adm-button-mini{padding-top:3px;padding-bottom:3px;font-size:var(--adm-font-size-main)}.adm-button.adm-button-mini.adm-button-shape-rounded{padding-left:9px;padding-right:9px}.adm-button.adm-button-small{padding-top:3px;padding-bottom:3px;font-size:var(--adm-font-size-7)}.adm-button.adm-button-large{padding-top:11px;padding-bottom:11px;font-size:var(--adm-font-size-10)}.adm-button.adm-button-shape-rounded{--border-radius: 1000px}.adm-button.adm-button-shape-rectangular{--border-radius: 0}.adm-button-loading{vertical-align:bottom}.adm-button-loading-wrapper{display:flex;height:1.4em;align-items:center;justify-content:center}.adm-button-loading-wrapper>.adm-loading{opacity:.6}.adm-dot-loading{display:inline-block}.adm-calendar .adm-calendar-header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding-top:4px}.adm-calendar .adm-calendar-header a.adm-calendar-arrow-button{padding:4px 8px;display:block;flex:none}.adm-calendar .adm-calendar-header a.adm-calendar-arrow-button svg{height:22px}.adm-calendar .adm-calendar-header a.adm-calendar-arrow-button.adm-calendar-arrow-button-right svg{transform:rotate(180deg)}.adm-calendar .adm-calendar-header .adm-calendar-title{font-size:var(--adm-font-size-10);flex:auto;text-align:center}.adm-calendar .adm-calendar-body{display:flex;flex-wrap:wrap}.adm-calendar-cells{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-items:stretch;padding:8px 8px 4px}.adm-calendar-cell{flex:none;box-sizing:border-box;width:calc(100% / 7);height:48px;margin-bottom:4px;padding:2px;color:var(--adm-color-text);cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:flex-end}.adm-calendar-cell.adm-calendar-cell-today{color:var(--adm-color-primary)}.adm-calendar-cell.adm-calendar-cell-disabled,.adm-calendar-cell.adm-calendar-cell-disabled .adm-calendar-cell-bottom{color:var(--adm-color-light)}.adm-calendar-cell.adm-calendar-cell-selected.adm-calendar-cell.adm-calendar-cell-selected{background:var(--adm-color-primary);color:var(--adm-color-white)}.adm-calendar-cell.adm-calendar-cell-selected .adm-calendar-cell-bottom{color:var(--adm-color-white)}.adm-calendar-cell.adm-calendar-cell-selected.adm-calendar-cell.adm-calendar-cell-selected-begin{border-top-left-radius:4px;border-bottom-left-radius:4px}.adm-calendar-cell.adm-calendar-cell-selected.adm-calendar-cell.adm-calendar-cell-selected-end{border-top-right-radius:4px;border-bottom-right-radius:4px}.adm-calendar-cell.adm-calendar-cell-disabled.adm-calendar-cell.adm-calendar-cell-selected{color:var(--adm-color-light)}.adm-calendar-cell .adm-calendar-cell-top{flex:none;font-size:var(--adm-font-size-10)}.adm-calendar-cell .adm-calendar-cell-bottom{flex:none;font-size:var(--adm-font-size-4);height:12px;line-height:12px;color:var(--adm-color-weak)}.adm-calendar-mark{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;border-bottom:solid 1px var(--adm-color-border);height:45px;box-sizing:border-box;font-size:var(--adm-font-size-7);padding:0 8px}.adm-calendar-mark .adm-calendar-mark-cell{flex:1;text-align:center}.adm-divider-horizontal{display:flex;align-items:center;margin:16px 0;border-width:0;border-color:var(--adm-color-border);border-style:solid;color:var(--adm-color-weak);font-size:14px}.adm-divider-left.adm-divider-horizontal:before{max-width:10%}.adm-divider-right.adm-divider-horizontal:after{max-width:10%}.adm-divider-horizontal:after,.adm-divider-horizontal:before{flex:auto;display:block;content:"";border-style:inherit;border-color:inherit;border-width:1px 0 0}.adm-divider-horizontal .adm-divider-content{flex:none;padding:0 16px}.adm-divider-vertical{position:relative;top:-.06em;display:inline-block;height:.9em;margin:0 16px;vertical-align:middle;border-top:0;border-left:1px solid var(--adm-color-border)}.adm-scroll-mask{position:absolute;top:0;bottom:0;z-index:1;width:30px;height:100%;pointer-events:none}.adm-scroll-mask-left{left:0;background:linear-gradient(to right,var(--adm-color-background),rgba(255,255,255,0))}.adm-scroll-mask-right{right:0;background:linear-gradient(to left,var(--adm-color-background),rgba(255,255,255,0))}.adm-picker{--header-button-font-size: var(--adm-font-size-7);--title-font-size: var(--adm-font-size-7);--item-font-size: var(--adm-font-size-8);--item-height: 34px;width:100%;height:300px;overflow:hidden;position:relative;display:flex;flex-direction:column;---item-font-size: var(--item-font-size);---item-height: var(--item-height)}.adm-picker .adm-picker-view.adm-picker-view{--item-font-size: var(---item-font-size);--item-height: var(---item-height)}.adm-picker-header{flex-shrink:0;border-bottom:solid 1px var(--adm-color-border);display:flex;justify-content:space-between;align-items:center;padding:4px}.adm-picker-header-button{font-size:var(--header-button-font-size);display:inline-block;padding:8px}.adm-picker-header-button-disabled,.adm-picker-header-button-disabled:active{opacity:.4;cursor:not-allowed}.adm-picker-header-title{padding:4px;font-size:var(--title-font-size);color:var(--adm-color-text);text-align:center;flex:1}.adm-picker-body{flex:1;width:100%;height:100%}.adm-picker-body>.adm-picker-view{--height: 100%}.adm-picker-popup .adm-popup-body{border-top-left-radius:8px;border-top-right-radius:8px}.adm-spin-loading{--color: var(--adm-color-weak);--size: 32px;width:var(--size);height:var(--size)}.adm-spin-loading-svg{width:100%;height:100%;animation:adm-spin-loading-rotate .8s infinite linear}.adm-spin-loading-svg>.adm-spin-loading-fill{stroke:var(--color)}@keyframes adm-spin-loading-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.adm-picker-view{--height: 240px;--item-height: 34px;--item-font-size: var(--adm-font-size-8);height:var(--height);width:100%;display:flex;position:relative;overflow:hidden;background:var(--adm-color-background)}.adm-picker-view-column{height:100%;flex:1;-webkit-user-select:none;user-select:none;touch-action:none;position:relative;z-index:0}.adm-picker-view-column-wheel{width:100%;cursor:-webkit-grab;cursor:grab;position:absolute;top:calc(50% - var(--item-height) / 2);left:0}.adm-picker-view-column-wheel:before{content:" ";display:block;position:absolute;width:100%;height:100vh;top:-100vh}.adm-picker-view-column-wheel:after{content:" ";display:block;position:absolute;width:100%;height:100vh;bottom:-100vh}.adm-picker-view-column-item{font-size:var(--item-font-size);padding:0 6px;height:var(--item-height);display:flex;justify-content:center;align-items:center}.adm-picker-view-column-item-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.adm-picker-view-column-accessible{width:100%;height:100%;pointer-events:none;opacity:0;display:flex;flex-direction:column;position:relative;top:calc(var(--item-height) * -1);z-index:0;padding-bottom:1px}.adm-picker-view-column-accessible>*{flex:1;text-overflow:ellipsis}.adm-picker-view-column-accessible-current{position:absolute;width:100%;height:100%}.adm-picker-view-column-accessible-button{width:100%;height:100%}.adm-picker-view-mask{position:absolute;z-index:10000;left:0;top:0;width:100%;height:100%;display:flex;flex-direction:column;pointer-events:none}.adm-picker-view-mask-top,.adm-picker-view-mask-bottom{flex:auto}.adm-picker-view-mask-middle{height:var(--item-height);box-sizing:border-box;flex:none;border-top:solid 1px var(--adm-color-border);border-bottom:solid 1px var(--adm-color-border)}.adm-picker-view-mask-top{background:var(--adm-color-background);-webkit-mask:linear-gradient(0deg,rgba(0,0,0,.6) 0%,rgba(0,0,0,.8) 50%,#000000 100%);mask:linear-gradient(0deg,rgba(0,0,0,.6) 0%,rgba(0,0,0,.8) 50%,#000000 100%)}.adm-picker-view-mask-bottom{background:var(--adm-color-background);-webkit-mask:linear-gradient(180deg,rgba(0,0,0,.6) 0%,rgba(0,0,0,.8) 50%,#000000 100%);mask:linear-gradient(180deg,rgba(0,0,0,.6) 0%,rgba(0,0,0,.8) 50%,#000000 100%)}.adm-picker-view-loading-content{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.adm-picker-view-item-height-measure{position:relative;left:0;top:0;height:var(--item-height);width:0;pointer-events:none}.adm-cascader-view{--height: auto}.adm-cascader-view-tabs.adm-tabs{--title-font-size: var(--adm-font-size-6);--content-padding: none}.adm-cascader-view-header-title{max-width:84px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.adm-cascader-view-content{height:var(--height);overflow-y:auto}.adm-cascader-view-content>.adm-check-list{--border-inner: none;--border-bottom: none;--border-top: none}.adm-cascader-view-item{font-size:var(--adm-font-size-6)}.adm-cascader-view-item-active{color:var(--adm-color-primary)}.adm-cascader-view .adm-list-inner{margin-bottom:0}.adm-cascader-view-skeleton{padding:16px 12px}.adm-cascader-view-skeleton .adm-skeleton{margin-bottom:16px;--height: 18px;--width: 80%;--border-radius: 2px}.adm-cascader-view-skeleton .adm-skeleton.adm-cascader-view-skeleton-line-3{--width: 90%}.adm-cascader-view-skeleton .adm-skeleton.adm-cascader-view-skeleton-line-4{--width: 60%}.adm-tabs{--title-font-size: var(--adm-font-size-9);--content-padding: 12px;--active-line-height: 2px;--active-line-border-radius: var(--active-line-height);--active-line-color: var(--adm-color-primary);--active-title-color: var(--adm-color-primary);position:relative;min-width:0}.adm-tabs-header{position:relative;border-bottom:solid 1px var(--adm-color-border)}.adm-tabs-tab-list{display:flex;flex-wrap:nowrap;justify-content:flex-start;align-items:center;position:relative;overflow-x:scroll;scrollbar-width:none}.adm-tabs-tab-list::-webkit-scrollbar{display:none}.adm-tabs-tab-wrapper{padding:0 12px}.adm-tabs-tab-wrapper-stretch{flex:auto}.adm-tabs-tab{white-space:nowrap;padding:8px 0 10px;width:-webkit-min-content;width:min-content;margin:0 auto;font-size:var(--title-font-size);position:relative;cursor:pointer}.adm-tabs-tab-active{color:var(--active-title-color)}.adm-tabs-tab-disabled{opacity:.5;cursor:not-allowed}.adm-tabs-tab-line{position:absolute;bottom:0;height:var(--active-line-height);background:var(--active-line-color);border-radius:var(--active-line-border-radius)}.adm-tabs-content{padding:var(--content-padding)}.adm-tabs-header-mask{position:absolute;top:0;bottom:0;z-index:1;width:30px;height:100%;pointer-events:none}.adm-tabs-header-mask-left{left:0;background:linear-gradient(to right,var(--adm-color-background),rgba(255,255,255,0))}.adm-tabs-header-mask-right{right:0;background:linear-gradient(to left,var(--adm-color-background),rgba(255,255,255,0))}.adm-check-list-item-extra{font-size:var(--adm-font-size-10);line-height:1;color:var(--adm-color-primary)}.adm-check-list-item-readonly{cursor:unset}.adm-list{--header-font-size: var(--adm-font-size-7);--prefix-width: "auto";--prefix-padding-right: 12px;--align-items: center;--active-background-color: var(--adm-color-border);--border-inner: solid 1px var(--adm-color-border);--border-top: solid 1px var(--adm-color-border);--border-bottom: solid 1px var(--adm-color-border);--padding-left: 12px;--padding-right: 12px;--font-size: var(--adm-font-size-9);--extra-max-width: 70%}.adm-list-header{color:var(--adm-color-weak);font-size:var(--header-font-size);padding:8px var(--padding-right) 8px var(--padding-left)}.adm-list-body{background-color:var(--adm-color-background);overflow:hidden;font-size:var(--font-size)}.adm-list-body-inner{margin-top:-1px}.adm-list-default .adm-list-body{border-top:var(--border-top);border-bottom:var(--border-bottom)}.adm-list-card{margin:12px}.adm-list-card .adm-list-body{border-radius:8px}.adm-list-card .adm-list-header{padding-left:0}.adm-list-item{display:block;padding-left:var(--padding-left);position:relative;background-color:var(--adm-color-background);line-height:1.5}.adm-list-item-title,.adm-list-item-description{color:var(--adm-color-weak);font-size:var(--adm-font-size-main)}.adm-list-item-content{display:flex;align-items:var(--align-items);justify-content:flex-start;border-top:var(--border-inner);padding-right:var(--padding-right)}.adm-list-item-content-prefix{width:var(--prefix-width);flex:none;padding-right:var(--prefix-padding-right)}.adm-list-item-content-main{flex:auto;padding:12px 0}.adm-list-item-content-extra{flex:none;padding-left:12px;font-size:var(--adm-font-size-7);color:var(--adm-color-weak);max-width:var(--extra-max-width)}.adm-list-item-content-arrow{flex:none;display:flex;align-items:center;margin-left:4px;color:var(--adm-color-light);font-size:19px}.adm-list-item-disabled{cursor:not-allowed}.adm-list-item-disabled.adm-list-item-disabled>.adm-list-item-content>*{opacity:.4;pointer-events:none}a.adm-list-item:active:not(.adm-list-item-disabled){background-color:var(--active-background-color)}a.adm-list-item:active:not(.adm-list-item-disabled):after{content:" ";display:block;position:absolute;width:100%;bottom:-1px;left:0;border-bottom:var(--border-inner)}.adm-skeleton{--width: 100%;--height: 0;--border-radius: 0;background-color:#bebebe33;border-radius:var(--border-radius);width:var(--width);height:var(--height);display:block}.adm-skeleton.adm-skeleton-animated{background:linear-gradient(90deg,#bebebe33 25%,#8181813d 37%,#bebebe33 63%);background-size:400% 100%;animation:adm-skeleton-loading 1.4s ease infinite}.adm-skeleton.adm-skeleton-title{--width: 45%;--height: 32px;--border-radius: 2px;margin-bottom:16px;margin-top:16px}.adm-skeleton.adm-skeleton-paragraph-line{--height: 18px;--border-radius: 2px;margin-top:12px;margin-bottom:12px}.adm-skeleton.adm-skeleton-paragraph-line:last-child{--width: 65%}@keyframes adm-skeleton-loading{0%{background-position:100% 50%}to{background-position:0 50%}}.adm-checkbox{--icon-size: 22px;--font-size: var(--adm-font-size-9);--gap: 8px;display:inline-flex;vertical-align:text-bottom;justify-content:flex-start;align-items:center;cursor:pointer}.adm-checkbox input{display:none}.adm-checkbox .adm-checkbox-icon{flex:none;border:1px solid var(--adm-color-light);border-radius:var(--icon-size);box-sizing:border-box;width:var(--icon-size);height:var(--icon-size);color:var(--adm-color-text-light-solid)}.adm-checkbox .adm-checkbox-icon>svg{display:block;width:100%;height:100%}.adm-checkbox.adm-checkbox-block{display:flex}.adm-checkbox.adm-checkbox-checked .adm-checkbox-icon{border-color:var(--adm-color-primary);background-color:var(--adm-color-primary)}.adm-checkbox.adm-checkbox-disabled{cursor:not-allowed}.adm-checkbox.adm-checkbox-disabled .adm-checkbox-content{opacity:.4}.adm-checkbox.adm-checkbox-disabled .adm-checkbox-icon.adm-checkbox-icon{color:var(--adm-color-light);border-color:var(--adm-color-light);background-color:var(--adm-color-fill-content)}.adm-checkbox .adm-checkbox-custom-icon{font-size:var(--icon-size)}.adm-checkbox.adm-checkbox-indeterminate .adm-checkbox-icon{background-color:var(--adm-color-background);color:var(--adm-color-primary)}.adm-checkbox-content{flex:0 1 auto;font-size:var(--font-size);padding-left:var(--gap)}.adm-error-block{--color: var(--adm-color-text);--image-height: var(--adm-error-block-image-height, 100px);--image-height-full-page: var(--adm-error-block-image-height-full-page, 200px);--image-width: var(--adm-error-block-image-width, auto);--image-width-full-page: var(--adm-error-block-image-width-full-page, auto);box-sizing:border-box;text-align:center}.adm-error-block-image{height:var(--image-height);width:var(--image-width);max-width:100%}.adm-error-block-image svg,.adm-error-block-image img{height:100%}.adm-error-block-description{font-size:var(--adm-font-size-4);color:var(--adm-color-weak);line-height:1.4;margin-top:12px}.adm-error-block-description-title{font-size:var(--adm-font-size-7)}.adm-error-block-description-subtitle{margin-top:8px}.adm-error-block-content{margin-top:12px}.adm-error-block-full-page{padding-top:calc(50vh - var(--image-height-full-page))}.adm-error-block-full-page .adm-error-block-image{height:var(--image-height-full-page);width:var(--image-width-full-page)}.adm-error-block-full-page .adm-error-block-description{margin-top:20px;font-size:var(--adm-font-size-main)}.adm-error-block-full-page .adm-error-block-description-title{font-size:20px;color:var(--adm-color-text)}.adm-grid{--gap: 0;--gap-horizontal: var(--gap);--gap-vertical: var(--gap);display:grid;grid-gap:10px;-webkit-column-gap:var(--gap-horizontal);column-gap:var(--gap-horizontal);row-gap:var(--gap-vertical);grid-template-columns:repeat(var(--columns),minmax(0,1fr));align-items:stretch}.adm-grid-item{grid-column-end:span var(--item-span)}.adm-image-viewer-content{width:100vw;height:100vh;touch-action:none;-webkit-user-select:none;user-select:none}.adm-image-viewer-footer{position:absolute;width:100%;bottom:0;z-index:1}.adm-image-viewer-slides{height:100%;position:relative;z-index:1;cursor:-webkit-grab;cursor:grab;touch-action:none}.adm-image-viewer-slides-inner{height:100%;white-space:nowrap}.adm-image-viewer-slides-inner>*{margin-right:16px}.adm-image-viewer-slide{position:relative;width:100%;height:100%;display:inline-block}.adm-image-viewer-control{position:absolute;z-index:1;left:0;top:0;width:100%;height:100%;cursor:-webkit-grab;cursor:grab;touch-action:none}.adm-image-viewer-image-wrapper{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.adm-image-viewer-image-wrapper img{display:block;max-width:100%;max-height:100%}.adm-image-viewer-indicator{position:absolute;z-index:2;left:50%;top:12px;transform:translate(-50%);color:var(--adm-color-border);font-size:var(--adm-font-size-6)}.adm-space-item{flex:none}.adm-space{display:inline-flex;--gap: 8px;--gap-vertical: var(--gap);--gap-horizontal: var(--gap)}.adm-space-vertical{flex-direction:column}.adm-space-vertical>.adm-space-item{margin-bottom:var(--gap-vertical)}.adm-space-vertical>.adm-space-item:last-child{margin-bottom:0}.adm-space-horizontal{flex-direction:row}.adm-space-horizontal>.adm-space-item{margin-right:var(--gap-horizontal)}.adm-space-horizontal>.adm-space-item:last-child{margin-right:0}.adm-space-horizontal.adm-space-wrap{flex-wrap:wrap;margin-bottom:calc(var(--gap-vertical) * -1)}.adm-space-horizontal.adm-space-wrap>.adm-space-item{padding-bottom:var(--gap-vertical)}.adm-space.adm-space-block{display:flex}.adm-space-align-center{align-items:center}.adm-space-align-start{align-items:flex-start}.adm-space-align-end{align-items:flex-end}.adm-space-align-baseline{align-items:baseline}.adm-space-justify-center{justify-content:center}.adm-space-justify-start{justify-content:flex-start}.adm-space-justify-end{justify-content:flex-end}.adm-space-justify-between{justify-content:space-between}.adm-space-justify-around{justify-content:space-around}.adm-space-justify-evenly{justify-content:space-evenly}.adm-space-justify-stretch{justify-content:stretch}.adm-image-uploader{--cell-size: 80px;--gap: 12px;---gap: var(--gap);---gap-horizontal: var(--gap-horizontal, var(--gap));---gap-vertical: var(--gap-vertical, var(--gap))}.adm-image-uploader-grid,.adm-image-uploader-space{--gap: var(---gap);--gap-horizontal: var(---gap-horizontal);--gap-vertical: var(---gap-vertical)}.adm-image-uploader-cell{position:relative;width:var(--cell-size);height:var(--cell-size);border-radius:4px;overflow:hidden}.adm-image-uploader-cell-fail{border:red solid 1px;box-sizing:border-box}.adm-image-uploader-cell-delete{position:absolute;top:0;right:0;width:14px;height:14px;background-color:#000000b3;border-radius:0 0 0 12px;font-size:8px;color:var(--adm-color-white);cursor:pointer}.adm-image-uploader-cell-delete-icon{position:absolute;left:4px;top:3px}.adm-image-uploader-cell-mask{position:absolute;top:0;right:0;bottom:0;left:0;color:var(--adm-color-white);background-color:#323233e0}.adm-image-uploader-cell-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;box-sizing:border-box;padding-top:8px}.adm-image-uploader-cell-mask-message{display:inline-block;padding:6px 4px;font-size:var(--adm-font-size-4)}.adm-image-uploader-cell-image{width:var(--cell-size);height:var(--cell-size)}.adm-image-uploader-upload-button-wrap{position:relative}.adm-image-uploader-upload-button-wrap .adm-image-uploader-upload-button{background-color:var(--adm-color-box);text-align:center;line-height:var(--cell-size);display:block}.adm-image-uploader-upload-button-wrap .adm-image-uploader-upload-button-icon{color:var(--adm-color-weak);font-size:32px}.adm-image-uploader-upload-button-wrap .adm-image-uploader-input{cursor:pointer;position:absolute;opacity:0;left:0;top:0;width:100%;height:100%;border-radius:4px}.adm-image-uploader .adm-image-uploader-gap-measure{position:absolute;left:0;top:0;height:var(--gap-horizontal);width:0}.adm-input{--font-size: var(--adm-font-size-9);--color: var(--adm-color-text);--placeholder-color: var(--adm-color-light);--text-align: left;--background-color: transparent;display:flex;justify-content:flex-start;align-items:center;width:100%;max-width:100%;max-height:100%;min-height:24px;background-color:var(--background-color)}.adm-input-disabled{opacity:.4;cursor:not-allowed}.adm-input-element{flex:auto;display:inline-block;box-sizing:border-box;width:100%;max-width:100%;max-height:100%;padding:0;margin:0;color:var(--color);font-size:var(--font-size);line-height:1.5;background:transparent;border:0;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;min-height:1.5em;text-align:var(--text-align)}.adm-input-element::-webkit-input-placeholder{color:var(--placeholder-color);font-family:inherit}.adm-input-element::placeholder{color:var(--placeholder-color);font-family:inherit}.adm-input-element:-webkit-autofill{background-color:transparent}.adm-input-element:read-only{cursor:default}.adm-input-element:invalid{box-shadow:none}.adm-input-element::-ms-clear{display:none}.adm-input-element::-ms-reveal{display:none}.adm-input-element::-webkit-search-cancel-button{display:none}.adm-input-element::-webkit-search-decoration{display:none}.adm-input-element:disabled{opacity:1}.adm-input-element[type=date],.adm-input-element[type=time],.adm-input-element[type=datetime-local]{min-height:1.5em}.adm-input-element[type=search]{-webkit-appearance:none}.adm-input-element[readonly]{pointer-events:none}.adm-input-clear{flex:none;margin-left:8px;color:var(--adm-color-light);padding:4px;cursor:pointer}.adm-input-clear:active{color:var(--adm-color-weak)}.adm-input-clear .antd-mobile-icon{display:block;font-size:var(--adm-font-size-7)}.adm-jumbo-tabs{--gap: 8px;position:relative;min-width:0}.adm-jumbo-tabs-header{position:relative;border-bottom:solid 1px var(--adm-color-border)}.adm-jumbo-tabs-tab-list{display:flex;flex-wrap:nowrap;justify-content:flex-start;align-items:center;position:relative;overflow-x:scroll;padding:0 var(--gap);scrollbar-width:none}.adm-jumbo-tabs-tab-list::-webkit-scrollbar{display:none}.adm-jumbo-tabs-tab-wrapper{flex:auto;padding:0 calc(var(--gap) / 2);text-align:center}.adm-jumbo-tabs-tab{display:flex;flex-direction:column;align-items:center;position:relative;width:-webkit-min-content;width:min-content;margin:0 auto;padding:12px 0;cursor:pointer;font-size:var(--adm-font-size-9);white-space:nowrap}.adm-jumbo-tabs-tab-title{line-height:24px;padding:0 4px}.adm-jumbo-tabs-tab-description{width:-webkit-min-content;width:min-content;padding:0 8px;border-radius:10px;color:var(--adm-color-weak);font-size:var(--adm-font-size-main);background-color:var(--adm-color-fill-content)}.adm-jumbo-tabs-tab-active{color:var(--adm-color-primary)}.adm-jumbo-tabs-tab-active .adm-jumbo-tabs-tab-description{color:var(--adm-color-text-light-solid);background-color:var(--adm-color-primary)}.adm-jumbo-tabs-tab-disabled{opacity:.5;cursor:not-allowed}.adm-jumbo-tabs-content{padding:12px}.adm-nav-bar{--height: 45px;--border-bottom: none;display:flex;align-items:center;height:var(--height);border-bottom:var(--border-bottom);padding:0 12px;white-space:nowrap}.adm-nav-bar-left,.adm-nav-bar-right{flex:1}.adm-nav-bar-title{flex:auto;text-align:center;overflow:hidden;text-overflow:ellipsis}.adm-nav-bar-back{display:flex;align-items:center;margin-right:16px;padding:6px 0;cursor:pointer}.adm-nav-bar-back-arrow{font-size:24px;margin-right:4px}.adm-nav-bar-left{font-size:var(--adm-font-size-7);display:flex;justify-content:flex-start;align-items:center}.adm-nav-bar-title{justify-content:center;white-space:nowrap;font-size:var(--adm-font-size-10);padding:0 12px}.adm-nav-bar-right{text-align:right}.adm-page-indicator{display:flex;width:auto;--dot-color: var(--adm-color-light);--active-dot-color: var(--adm-color-primary);--dot-size: 3px;--active-dot-size: 13px;--dot-border-radius: 1px;--active-dot-border-radius: var(--dot-border-radius);--dot-spacing: 3px}.adm-page-indicator-dot{display:block;width:var(--dot-size);height:var(--dot-size);border-radius:var(--dot-border-radius);background:var(--dot-color)}.adm-page-indicator-dot:last-child{margin-right:0}.adm-page-indicator-dot-active{border-radius:var(--active-dot-border-radius);background:var(--active-dot-color)}.adm-page-indicator-color-white{--dot-color: rgba(255, 255, 255, .5);--active-dot-color: var(--adm-color-text-light-solid)}.adm-page-indicator-horizontal{flex-direction:row}.adm-page-indicator-horizontal .adm-page-indicator-dot{margin-right:var(--dot-spacing)}.adm-page-indicator-horizontal .adm-page-indicator-dot-active{width:var(--active-dot-size)}.adm-page-indicator-vertical{flex-direction:column}.adm-page-indicator-vertical .adm-page-indicator-dot{margin-bottom:var(--dot-spacing)}.adm-page-indicator-vertical .adm-page-indicator-dot-active{height:var(--active-dot-size)}.adm-radio{--icon-size: 22px;--font-size: var(--adm-font-size-9);--gap: 8px;display:inline-flex;vertical-align:text-bottom;justify-content:flex-start;align-items:center;cursor:pointer}.adm-radio input[type=radio]{display:none}.adm-radio .adm-radio-icon{flex:none;border:1px solid var(--adm-color-light);border-radius:var(--icon-size);box-sizing:border-box;width:var(--icon-size);height:var(--icon-size);color:var(--adm-color-text-light-solid)}.adm-radio .adm-radio-icon>svg{display:block;width:100%;height:100%}.adm-radio.adm-radio-block{display:flex}.adm-radio.adm-radio-checked .adm-radio-icon{border-color:var(--adm-color-primary);background-color:var(--adm-color-primary)}.adm-radio.adm-radio-disabled{cursor:not-allowed}.adm-radio.adm-radio-disabled .adm-radio-content{opacity:.4}.adm-radio.adm-radio-disabled .adm-radio-icon{color:var(--adm-color-light);border-color:var(--adm-color-light);background-color:var(--adm-color-fill-content)}.adm-radio .adm-radio-custom-icon{font-size:var(--icon-size)}.adm-radio-content{flex:0 1 auto;font-size:var(--font-size);padding-left:var(--gap)}.adm-search-bar{--height: 32px;--padding-left: 8px;--background: var(--adm-color-fill-content);--border-radius: 6px;--placeholder-color: var(--adm-color-weak);---placeholder-color: var(--placeholder-color);display:flex;justify-content:center;align-items:center;height:var(--height)}.adm-search-bar .adm-search-bar-input-box{flex:auto;background:var(--background);border-radius:var(--border-radius);border:solid 1px transparent;display:flex;justify-content:center;align-items:center;padding-left:var(--padding-left)}.adm-search-bar .adm-search-bar-input-box .adm-search-bar-input-box-icon{flex:none;color:var(--adm-color-light);font-size:var(--adm-font-size-8)}.adm-search-bar .adm-search-bar-input-box .adm-search-bar-input{flex:auto;padding:4px 8px 4px 4px;height:calc(var(--height) - 2px);box-sizing:border-box}.adm-search-bar .adm-search-bar-input-box .adm-search-bar-input.adm-input{--placeholder-color: var(---placeholder-color);--font-size: var(--adm-font-size-7)}.adm-search-bar .adm-search-bar-input-box .adm-search-bar-input .adm-input-element{line-height:19px}.adm-search-bar .adm-search-bar-input-box .adm-search-bar-input.adm-search-bar-input-without-icon{padding-left:8px}.adm-search-bar .adm-search-bar-suffix{flex:none;margin-left:4px}.adm-search-bar .adm-search-bar-cancel-button.adm-button{padding:3px 12px}.adm-search-bar-active .adm-input.adm-input.adm-input{--placeholder-color: var(--adm-color-light)}.adm-search-bar-active .adm-search-bar-input-box{border-color:var(--adm-color-primary);background:var(--adm-color-background)}.adm-swiper{--height: auto;--width: 100%;--border-radius: 0;--track-padding: 0;--slide-size: 100%;--track-offset: 0%;display:block;width:var(--width);height:var(--height);position:relative;border-radius:var(--border-radius);z-index:0;overflow:hidden}.adm-swiper-track{width:100%;height:100%;white-space:nowrap;padding:var(--track-padding)}.adm-swiper-track-allow-touch-move{cursor:-webkit-grab;cursor:grab}.adm-swiper-track-inner{width:100%;height:100%;overflow:visible;position:relative;display:flex;flex-wrap:nowrap}.adm-swiper-slide,.adm-swiper-slide-placeholder{width:100%;height:100%;display:block;position:relative;white-space:unset;flex:none}.adm-swiper-item{display:block;width:100%;height:100%;white-space:normal}.adm-swiper-horizontal .adm-swiper-track-allow-touch-move{touch-action:pan-y}.adm-swiper-horizontal .adm-swiper-indicator{position:absolute;bottom:6px;left:50%;transform:translate(-50%)}.adm-swiper-horizontal .adm-swiper-track{transform:translate(var(--track-offset))}.adm-swiper-horizontal .adm-swiper-track-inner{flex-direction:row;width:var(--slide-size)}.adm-swiper-vertical .adm-swiper-track-allow-touch-move{touch-action:pan-x}.adm-swiper-vertical .adm-swiper-indicator{position:absolute;right:6px;top:50%;transform:translateY(-50%)}.adm-swiper-vertical .adm-swiper-track{transform:translateY(var(--track-offset))}.adm-swiper-vertical .adm-swiper-track-inner{flex-direction:column;height:var(--slide-size)}.adm-tab-bar-wrap{display:flex;flex-wrap:nowrap;justify-content:flex-start;align-items:stretch;overflow:hidden;min-height:48px}.adm-tab-bar-item{flex:1;color:var(--adm-color-text-secondary);white-space:nowrap;padding:4px 8px;width:-webkit-min-content;width:min-content;position:relative;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-direction:column}.adm-tab-bar-item-icon{font-size:24px;height:24px;line-height:1}.adm-tab-bar-item-title{font-size:var(--adm-font-size-2);line-height:15px}.adm-tab-bar-item-title-with-icon{margin-top:2px}.adm-tab-bar-item-active{color:var(--adm-color-primary)}.adm-tab-bar-icon-badge{--top: 6px}.adm-tab-bar-title-badge{--right: -2px;--top: -2px}.adm-tag{--border-radius: var(--adm-tag-border-radius, 2px);padding:2px 4px;font-size:var(--adm-font-size-3);line-height:1;font-weight:400;background:var(--background-color);color:var(--text-color);display:inline-block;white-space:nowrap;border-radius:var(--border-radius);border:1px solid var(--border-color);box-sizing:border-box}.adm-tag-round{border-radius:100px}.adm-text-area{--font-size: var(--adm-font-size-9);--color: var(--adm-color-text);--placeholder-color: var(--adm-color-light);--disabled-color: var(--adm-color-weak);--text-align: left;--count-text-align: right;position:relative;width:100%;max-width:100%;max-height:100%}.adm-text-area-element{font-family:var(--adm-font-family);resize:none;flex:auto;display:block;box-sizing:border-box;width:100%;max-width:100%;max-height:100%;padding:0;margin:0;color:var(--color);font-size:var(--font-size);line-height:1.5;background:transparent;border:0;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;min-height:1.5em;text-align:var(--text-align)}.adm-text-area-element::-webkit-input-placeholder{color:var(--placeholder-color);font-family:inherit}.adm-text-area-element::placeholder{color:var(--placeholder-color);font-family:inherit}.adm-text-area-element:-webkit-autofill{background-color:transparent}.adm-text-area-element:disabled{color:var(--disabled-color);cursor:not-allowed;opacity:1;-webkit-text-fill-color:var(--disabled-color)}.adm-text-area-element:read-only{cursor:default}.adm-text-area-element:invalid{box-shadow:none}.adm-text-area-element::-ms-clear{display:none}.adm-text-area-element-hidden{visibility:hidden;position:absolute;top:0;left:0;z-index:-1000}.adm-text-area-count{text-align:var(--count-text-align);color:var(--adm-color-weak);font-size:var(--adm-font-size-9);padding-top:8px}.adm-toast-mask .adm-toast-wrap{position:fixed;top:0;left:0;width:100%;height:100%;text-align:center}.adm-toast-mask .adm-toast-main{display:inline-block;position:relative;top:50%;transform:translateY(-50%);width:auto;max-width:204px;max-height:70%;overflow:auto;color:#fff;word-break:break-all;background-color:#000000b3;border-radius:8px;pointer-events:all;font-size:var(--adm-font-size-7);line-height:1.5;box-sizing:border-box;text-align:initial}.adm-toast-mask .adm-toast-main-text{padding:12px;min-width:0}.adm-toast-mask .adm-toast-main-icon{padding:35px 12px;min-width:150px}.adm-toast-mask .adm-toast-main-icon .adm-toast-icon{text-align:center;margin-bottom:8px;font-size:36px;line-height:1}.adm-toast-loading{--size: 48px;margin:0 auto 8px}')),document.head.appendChild(a)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
+ (function(ee,m){typeof exports=="object"&&typeof module!="undefined"?m(exports,require("react/jsx-runtime"),require("@tachybase/client"),require("react-router-dom"),require("react"),require("react-dom"),require("@ant-design/icons"),require("antd"),require("react-i18next"),require("@tachybase/schema"),require("ahooks"),require("lodash"),require("@tachybase/components"),require("@tachybase/utils/client")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","@tachybase/client","react-router-dom","react","react-dom","@ant-design/icons","antd","react-i18next","@tachybase/schema","ahooks","lodash","@tachybase/components","@tachybase/utils/client"],m):(ee=typeof globalThis!="undefined"?globalThis:ee||self,m(ee["@tachybase/module-web"]={},ee.jsxRuntime,ee["@tachybase/client"],ee["react-router-dom"],ee.react,ee["react-dom"],ee["@ant-design/icons"],ee.antd,ee["react-i18next"],ee["@tachybase/schema"],ee.ahooks,ee.lodash,ee["@tachybase/components"],ee["@tachybase/utils"]))})(this,function(ee,m,h,ae,i,Tt,Te,le,Ke,$,ne,Oe,ms,be){"use strict";var ah=Object.defineProperty,lh=Object.defineProperties;var ch=Object.getOwnPropertyDescriptors;var Or=Object.getOwnPropertySymbols;var Kl=Object.prototype.hasOwnProperty,Wl=Object.prototype.propertyIsEnumerable;var jl=(ee,m,h)=>m in ee?ah(ee,m,{enumerable:!0,configurable:!0,writable:!0,value:h}):ee[m]=h,L=(ee,m)=>{for(var h in m||(m={}))Kl.call(m,h)&&jl(ee,h,m[h]);if(Or)for(var h of Or(m))Wl.call(m,h)&&jl(ee,h,m[h]);return ee},ie=(ee,m)=>lh(ee,ch(m));var fs=(ee,m)=>{var h={};for(var ae in ee)Kl.call(ee,ae)&&m.indexOf(ae)<0&&(h[ae]=ee[ae]);if(ee!=null&&Or)for(var ae of Or(ee))m.indexOf(ae)<0&&Wl.call(ee,ae)&&(h[ae]=ee[ae]);return h};var fe=(ee,m,h)=>new Promise((ae,i)=>{var Tt=Ke=>{try{le(h.next(Ke))}catch($){i($)}},Te=Ke=>{try{le(h.throw(Ke))}catch($){i($)}},le=Ke=>Ke.done?ae(Ke.value):Promise.resolve(Ke.value).then(Tt,Te);le((h=h.apply(ee,m)).next())});function ps(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const J=ps(i),Hl=ps(Tt),Ul=({children:t})=>{const e=i.useRef(),[n,r]=i.useState(1);return i.useEffect(()=>{const o=new ResizeObserver(a=>{const l=a[0].target,u=l.parentNode.offsetWidth,d=l.offsetWidth,f=u/d;r(v=>{if(f<1)return f;if(v<1)return 1})}),s=e.current;return o.observe(s),()=>o.unobserve(s)},[]),m.jsx("div",{className:"auto-scaling-text",style:{transition:"transform 0.5s ease",transform:`scale(${n},${n})`},ref:e,children:t})},ql=n=>{var r=n,{value:t}=r,e=fs(r,["value"]);const o=navigator.language||"en-US";let s=parseFloat(t).toLocaleString(o,{useGrouping:!0,maximumFractionDigits:6});const a=t.match(/\.\d*?(0*)$/);return a&&(s+=/[1-9]/.test(a[0])?a[1]:a[0]),m.jsx("div",ie(L({},e),{className:"calculator-display",children:m.jsx(Ul,{children:s})}))},ye=r=>{var o=r,{onPress:t,className:e}=o,n=fs(o,["onPress","className"]);return m.jsx("button",L({onClick:t,className:`calculator-key ${e}`},n))},hs=h.createStyles(({css:t})=>({container:t`
3
+ position: fixed;
4
+ top: 50%;
5
+ left: 50%;
6
+ transform: translate(-50%, -50%);
7
+ width: 320px;
8
+ height: 520px;
9
+ z-index: 1350;
10
+
11
+ button {
12
+ display: block;
13
+ background: none;
14
+ border: none;
15
+ padding: 0;
16
+ font-family: inherit;
17
+ user-select: none;
18
+ cursor: pointer;
19
+ outline: none;
20
+
21
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
22
+ }
23
+
24
+ button:active {
25
+ box-shadow: inset 0px 0px 80px 0px rgba(0, 0, 0, 0.25);
26
+ }
27
+
28
+ .calculator {
29
+ width: 100%;
30
+ height: 100%;
31
+ background: black;
32
+
33
+ display: flex;
34
+ flex-direction: column;
35
+ }
36
+
37
+ #wrapper .calculator {
38
+ box-shadow: 0px 0px 20px 0px #aaa;
39
+ }
40
+
41
+ .calculator-display {
42
+ color: white;
43
+ background: #1c191c;
44
+ line-height: 130px;
45
+ font-size: 6em;
46
+
47
+ flex: 1;
48
+ }
49
+
50
+ .auto-scaling-text {
51
+ display: inline-block;
52
+ }
53
+
54
+ .calculator-display .auto-scaling-text {
55
+ padding: 0 30px;
56
+ position: absolute;
57
+ right: 0;
58
+ transform-origin: right;
59
+ }
60
+
61
+ .calculator-keypad {
62
+ height: 400px;
63
+
64
+ display: flex;
65
+ }
66
+
67
+ .calculator .input-keys {
68
+ width: 240px;
69
+ }
70
+
71
+ .calculator .function-keys {
72
+ display: flex;
73
+ }
74
+
75
+ .calculator .digit-keys {
76
+ background: #e0e0e7;
77
+
78
+ display: flex;
79
+ flex-direction: row;
80
+ flex-wrap: wrap-reverse;
81
+ }
82
+
83
+ .calculator-key {
84
+ width: 80px;
85
+ height: 80px;
86
+ border-top: 1px solid #777;
87
+ border-right: 1px solid #666;
88
+ text-align: center;
89
+ line-height: 80px;
90
+ }
91
+ .calculator .function-keys .calculator-key {
92
+ font-size: 2em;
93
+ }
94
+ .calculator .function-keys .key-multiply {
95
+ line-height: 50px;
96
+ }
97
+ .calculator .digit-keys .calculator-key {
98
+ font-size: 2.25em;
99
+ }
100
+ .calculator .digit-keys .key-0 {
101
+ width: 160px;
102
+ text-align: left;
103
+ padding-left: 32px;
104
+ }
105
+ .calculator .digit-keys .key-dot {
106
+ padding-top: 1em;
107
+ font-size: 0.75em;
108
+ }
109
+ .calculator .operator-keys .calculator-key {
110
+ color: white;
111
+ border-right: 0;
112
+ font-size: 3em;
113
+ }
114
+
115
+ .calculator .function-keys {
116
+ background: linear-gradient(to bottom, rgba(202, 202, 204, 1) 0%, rgba(196, 194, 204, 1) 100%);
117
+ }
118
+ .calculator .operator-keys {
119
+ background: linear-gradient(to bottom, rgba(252, 156, 23, 1) 0%, rgba(247, 126, 27, 1) 100%);
120
+ }
121
+ `})),gs={"/":(t,e)=>t/e,"*":(t,e)=>t*e,"+":(t,e)=>t+e,"-":(t,e)=>t-e,"=":(t,e)=>e},Yl=i.forwardRef(({className:t},e)=>{const[n,r]=i.useState(null),[o,s]=i.useState("0"),[a,l]=i.useState(null),[c,u]=i.useState(!1),d=()=>{r(null),s("0"),l(null),u(!1)},f=()=>{s("0")},v=()=>{s(o.substring(0,o.length-1)||"0")},b=()=>{const w=parseFloat(o)*-1;s(String(w))},g=()=>{if(parseFloat(o)===0)return;const k=o.replace(/^-?\d*\.?/,""),E=parseFloat(o)/100;s(String(E.toFixed(k.length+2)))},y=()=>{/\./.test(o)||(s(o+"."),u(!1))},p=w=>{c?(s(String(w)),u(!1)):s(o==="0"?String(w):o+w)},x=w=>{const k=parseFloat(o);if(n==null)r(k);else if(a){const E=n||0,I=gs[a](E,k);r(I),s(String(I))}u(!0),l(w)};i.useEffect(()=>{const w=k=>{let{key:E}=k;E==="Enter"&&(E="="),/\d/.test(E)?(k.preventDefault(),p(parseInt(E,10))):E in gs?(k.preventDefault(),x(E)):E==="."?(k.preventDefault(),y()):E==="%"?(k.preventDefault(),g()):E==="Backspace"?(k.preventDefault(),v()):E==="Clear"&&(k.preventDefault(),o!=="0"?f():d())};return document.addEventListener("keydown",w),()=>{document.removeEventListener("keydown",w)}});const S=o!=="0",C=S?"C":"AC";return m.jsxs("div",{className:"calculator",ref:e,children:[m.jsx(ql,{value:o}),m.jsxs("div",{className:"calculator-keypad",children:[m.jsxs("div",{className:"input-keys",children:[m.jsxs("div",{className:"function-keys",children:[m.jsx(ye,{className:"key-clear",onPress:()=>S?f():d(),children:C}),m.jsx(ye,{className:"key-sign",onPress:()=>b(),children:"±"}),m.jsx(ye,{className:"key-percent",onPress:()=>g(),children:"%"})]}),m.jsxs("div",{className:"digit-keys",children:[m.jsx(ye,{className:"key-0",onPress:()=>p(0),children:"0"}),m.jsx(ye,{className:"key-dot",onPress:()=>y(),children:"●"}),m.jsx(ye,{className:"key-1",onPress:()=>p(1),children:"1"}),m.jsx(ye,{className:"key-2",onPress:()=>p(2),children:"2"}),m.jsx(ye,{className:"key-3",onPress:()=>p(3),children:"3"}),m.jsx(ye,{className:"key-4",onPress:()=>p(4),children:"4"}),m.jsx(ye,{className:"key-5",onPress:()=>p(5),children:"5"}),m.jsx(ye,{className:"key-6",onPress:()=>p(6),children:"6"}),m.jsx(ye,{className:"key-7",onPress:()=>p(7),children:"7"}),m.jsx(ye,{className:"key-8",onPress:()=>p(8),children:"8"}),m.jsx(ye,{className:"key-9",onPress:()=>p(9),children:"9"})]})]}),m.jsxs("div",{className:"operator-keys",children:[m.jsx(ye,{className:"key-divide",onPress:()=>x("/"),children:"÷"}),m.jsx(ye,{className:"key-multiply",onPress:()=>x("*"),children:"×"}),m.jsx(ye,{className:"key-subtract",onPress:()=>x("-"),children:"−"}),m.jsx(ye,{className:"key-add",onPress:()=>x("+"),children:"+"}),m.jsx(ye,{className:"key-equals",onPress:()=>x("="),children:"="})]})]})]})}),Gl=i.forwardRef((t,e)=>{const{styles:n}=hs();return m.jsx(Yl,{ref:e,className:n.container})}),Xl=({children:t,updateTransform:e=(n,r,o,s)=>{s.style.transform=n}})=>{const n=i.useRef(),r=i.useRef({startX:0,startY:0,dx:0,dy:0,tx:0,ty:0});i.useEffect(()=>{const s=n.current;if(!s)return;const a=u=>{u.button===0&&(document.addEventListener("mousemove",l),r.current.startX=u.pageX-r.current.dx,r.current.startY=u.pageY-r.current.dy)},l=u=>{const d=u.pageX-r.current.startX,f=u.pageY-r.current.startY,v=`translate(${d}px,${f}px)`;e(v,d,f,s),r.current.dx=d,r.current.dy=f},c=u=>{document.removeEventListener("mousemove",l)};return s.addEventListener("mousedown",a),document.addEventListener("mouseup",c),()=>{s.removeEventListener("mousedown",a),document.removeEventListener("mouseup",c)}},[e]);const o=ie(L({},t.props.style),{cursor:"move",userSelect:"none"});return i.cloneElement(i.Children.only(t),{ref:n,style:o})},vs=i.createContext({}),Jl=()=>i.useContext(vs),Ql=({children:t})=>{const[e,n]=i.useState(!1),{styles:r}=hs();return m.jsxs(vs.Provider,{value:{visible:e,setVisible:n},children:[t,e?Tt.createPortal(m.jsx("div",{className:r.container,children:m.jsx(Xl,{children:m.jsx(Gl,{})})}),document.body):null]})},Rl=()=>{const{visible:t,setVisible:e}=Jl();return m.jsx(le.FloatButton,{type:t?"primary":"default",icon:m.jsx(Te.CalculatorOutlined,{}),onClick:()=>{e(n=>!n)}})},ec=t=>m.jsx(h.PinnedPluginListProvider,{items:{ca:{order:300,component:"CalculatorButton",pin:!0,isPublic:!0,belongTo:"hoverbutton"}},children:m.jsx(h.SchemaComponentOptions,{components:{CalculatorButton:Rl},children:t.children})});class tc extends h.Plugin{load(){return fe(this,null,function*(){this.app.use(ec),this.app.use(Ql)})}}const nc=()=>{const{designable:t,setDesignable:e}=h.useDesignable();return h.useHotkeys("Ctrl+Shift+U",()=>e(!t),[t]),m.jsx(le.FloatButton,{icon:m.jsx(h.Icon,{type:"Design"}),type:t?"primary":"default",onClick:()=>e(!t)})},rc=t=>m.jsx(h.PinnedPluginListProvider,{items:{db:{order:60,component:"DesignableButton",pin:!0,snippet:"ui.*",belongTo:"hoverbutton"}},children:m.jsx(h.SchemaComponentOptions,{components:{DesignableButton:nc},children:t.children})});class oc extends h.Plugin{load(){return fe(this,null,function*(){this.app.use(rc)})}}const bs=i.createContext({open:!1,setOpen:t=>{}}),sc=({children:t})=>{const[e,n]=i.useState(!1);return m.jsxs(bs.Provider,{value:{open:e,setOpen:n},children:[t,m.jsx(ac,{open:e,setOpen:n})]})},ic=()=>i.useContext(bs),ac=({open:t,setOpen:e})=>{const n=i.useRef();i.useEffect(()=>{t&&n.current&&setTimeout(()=>{n.current.focus()},0)},[t,n]);const r=()=>{e(!1)},o=()=>{e(!1)};return m.jsx(le.Modal,{title:m.jsx(le.Input,{style:{width:"100%"},autoFocus:!0,ref:n}),closable:!1,open:t,onOk:r,onCancel:o,footer:null,children:m.jsx("p",{})})},lc=()=>{const{setOpen:t}=ic();return h.useHotkeys("Ctrl+K",()=>t(e=>!e),[]),h.useHotkeys("Cmd+K",()=>t(e=>!e),[]),m.jsx(le.FloatButton,{icon:m.jsx(Te.SearchOutlined,{}),onClick:()=>t(!0)})},cc=t=>m.jsx(h.PinnedPluginListProvider,{items:{saj:{order:30,component:"SearchAndJumpButton",pin:!0,snippet:"pm.*",belongTo:"hoverbutton"}},children:m.jsx(h.SchemaComponentOptions,{components:{SearchAndJumpButton:lc},children:t.children})});class uc extends h.Plugin{load(){return fe(this,null,function*(){this.app.use(cc),this.app.use(sc)})}}const Nn="client";function ct(t){return h.i18n.t(t,{ns:Nn})}function ut(t){return`{{t('${t}', { ns: '${Nn}', nsMode: 'fallback' })}}`}const Ye=(t,e=!0)=>e?h.tval(t,{ns:Nn}):h.tval(t);function de(){return Ke.useTranslation([Nn,"core"],{nsMode:"fallback"})}const dc=new h.SchemaInitializer({name:"mobilePage:addBlock",title:'{{t("Add block")}}',icon:"PlusOutlined",wrap:h.gridRowColWrap,items:[{name:"dataBlocks",type:"itemGroup",title:'{{t("Data blocks")}}',children:[{name:"gridCard",type:"item",title:'{{t("Grid Card")}}',Component:"GridCardBlockInitializer"},{name:"table",title:'{{t("Table")}}',Component:"TableBlockInitializer"},{name:"form",title:'{{t("Form")}}',Component:"FormBlockInitializer"},{name:"details",title:'{{t("Details")}}',Component:"DetailsBlockInitializer"},{name:"calendar",title:'{{t("Calendar")}}',Component:"CalendarBlockInitializer"},{name:"mapBlock",title:ut("Map"),Component:"MapBlockInitializer"},{title:Ye("Swiper"),name:"swiper",type:"item",Component:"SwiperBlockInitializer"},{title:"notice",name:"notice",type:"item",Component:"NoticeBlockInitializer"},{name:"chartV2",title:'{{t("Charts")}}',Component:"ChartV2BlockInitializer"}]},{name:"otherBlocks",type:"itemGroup",title:'{{t("Other blocks")}}',children:[{name:"menu",title:ut("Menu"),Component:"MMenuBlockInitializer"},{name:"markdown",title:Ye("Demonstration text"),Component:"MarkdownBlockInitializer"},{name:"settings",title:ut("Settings"),Component:"MSettingsBlockInitializer"}]},{name:"filterBlocks",type:"itemGroup",title:'{{t("Filter blocks")}}',children:[{name:"tabSearch",title:Ye("TabSearch"),Component:"TabSearchBlockInitializer"},{name:"imageSearch",title:Ye("ImageSearch"),icon:"tab-search",Component:"ImageSearchInitializer"}]}]}),fc=()=>{const t=h.useSchemaInitializerItem(),{insert:e}=h.useSchemaInitializer();return m.jsx(h.SchemaInitializerItem,L({icon:m.jsx(Te.MenuOutlined,{}),onClick:()=>fe(null,null,function*(){e({type:"void","x-component":"MMenu","x-designer":"MMenu.Designer","x-component-props":{}})})},t))},Ot=!!(typeof window!="undefined"&&typeof document!="undefined"&&window.document&&window.document.createElement);Ot&&document.addEventListener("touchstart",()=>{},!0);function yt(t,e,n,r){function o(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function l(d){try{u(r.next(d))}catch(f){a(f)}}function c(d){try{u(r.throw(d))}catch(f){a(f)}}function u(d){d.done?s(d.value):o(d.value).then(l,c)}u((r=r.apply(t,e||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const De="${label}不是一个有效的${type}",mc={current:{locale:{locale:"zh-CH",common:{confirm:"确定",cancel:"取消",loading:"加载中",close:"关闭"},Calendar:{title:"日期选择",confirm:"确认",start:"开始",end:"结束",today:"今日",markItems:["一","二","三","四","五","六","日"],yearAndMonth:"${year}年${month}月"},Cascader:{placeholder:"请选择"},Dialog:{ok:"我知道了"},DatePicker:{tillNow:"至今"},ErrorBlock:{default:{title:"页面遇到一些小问题",description:"待会来试试"},busy:{title:"前方拥堵",description:"刷新试试"},disconnected:{title:"网络有点忙",description:"动动手指帮忙修复"},empty:{title:"没有找到你需要的东西",description:"找找其他的吧"}},Form:{required:"必填",optional:"选填",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:De,method:De,array:De,object:De,number:De,date:De,boolean:De,integer:De,float:De,regexp:De,email:De,url:De,hex:De},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},ImageUploader:{uploading:"上传中...",upload:"上传"},InfiniteScroll:{noMore:"没有更多了",failedToLoad:"加载失败",retry:"重新加载"},Input:{clear:"清除"},Mask:{name:"背景蒙层"},Modal:{ok:"我知道了"},PasscodeInput:{name:"密码输入框"},PullToRefresh:{pulling:"下拉刷新",canRelease:"释放立即刷新",complete:"刷新成功"},SearchBar:{name:"搜索框"},Slider:{name:"滑动输入条"},Stepper:{decrease:"减少",increase:"增加"},Switch:{name:"开关"},Selector:{name:"选择组"}}}};function pc(){return mc.current}const hc=i.createContext(null);function Pe(){var t;return(t=i.useContext(hc))!==null&&t!==void 0?t:pc()}function we(t,e){const n=t;for(const r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);return n}function xt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Dr={exports:{}};/*!
122
+ Copyright (c) 2018 Jed Watson.
123
+ Licensed under the MIT License (MIT), see
124
+ http://jedwatson.github.io/classnames
125
+ */var ys;function gc(){return ys||(ys=1,function(t){(function(){var e={}.hasOwnProperty;function n(){for(var s="",a=0;a<arguments.length;a++){var l=arguments[a];l&&(s=o(s,r(l)))}return s}function r(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return n.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var a="";for(var l in s)e.call(s,l)&&s[l]&&(a=o(a,l));return a}function o(s,a){return a?s?s+" "+a:s+a:s}t.exports?(n.default=n,t.exports=n):window.classNames=n})()}(Dr)),Dr.exports}var vc=gc();const H=xt(vc);function Y(t,e){const n=Object.assign({},e.props);t.className&&(n.className=H(e.props.className,t.className)),t.style&&(n.style=Object.assign(Object.assign({},n.style),t.style)),t.tabIndex!==void 0&&(n.tabIndex=t.tabIndex);for(const r in t)t.hasOwnProperty(r)&&(r.startsWith("data-")||r.startsWith("aria-"))&&(n[r]=t[r]);return i.cloneElement(e,n)}function re(...t){const e={};return t.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(e[r]=n[r])})}),e}function Ar(t,...e){for(let n=e.length-1;n>=0;n-=1)if(e[n]!==void 0)return e[n];return t}const xs=10;function bc(t,e){return t>e&&t>xs?"horizontal":e>t&&e>xs?"vertical":""}function yc(){const t=i.useRef(0),e=i.useRef(0),n=i.useRef(0),r=i.useRef(0),o=i.useRef(0),s=i.useRef(0),a=i.useRef(""),l=()=>a.current==="vertical",c=()=>a.current==="horizontal",u=()=>{n.current=0,r.current=0,o.current=0,s.current=0,a.current=""};return{move:v=>{const b=v.touches[0];n.current=b.clientX<0?0:b.clientX-t.current,r.current=b.clientY-e.current,o.current=Math.abs(n.current),s.current=Math.abs(r.current),a.current||(a.current=bc(o.current,s.current))},start:v=>{u(),t.current=v.touches[0].clientX,e.current=v.touches[0].clientY},reset:u,startX:t,startY:e,deltaX:n,deltaY:r,offsetX:o,offsetY:s,direction:a,isVertical:l,isHorizontal:c}}const xc=Ot?window:void 0,Cc=["scroll","auto","overlay"];function Sc(t){return t.nodeType===1}function wc(t,e=xc){let n=t;for(;n&&n!==e&&Sc(n);){if(n===document.body)return e;const{overflowY:r}=window.getComputedStyle(n);if(Cc.includes(r)&&n.scrollHeight>n.clientHeight)return n;n=n.parentNode}return e}let Tn=!1;if(Ot)try{const t={};Object.defineProperty(t,"passive",{get(){Tn=!0}}),window.addEventListener("test-passive",null,t)}catch(t){}let Rt=0;const Cs="adm-overflow-hidden";function kc(t){let e=t==null?void 0:t.parentElement;for(;e;){if(e.clientHeight<e.scrollHeight)return e;e=e.parentElement}return null}function Ss(t,e){const n=yc(),r=a=>{n.move(a);const l=n.deltaY.current>0?"10":"01",c=wc(a.target,t.current);if(!c)return;if(e==="strict"){const g=kc(a.target);if(g===document.body||g===document.documentElement){a.preventDefault();return}}const{scrollHeight:u,offsetHeight:d,scrollTop:f}=c,{height:v}=c.getBoundingClientRect();let b="11";f===0?b=d>=u?"00":"01":u<=Math.round(v+f)&&(b="10"),b!=="11"&&n.isVertical()&&!(parseInt(b,2)&parseInt(l,2))&&a.cancelable&&Tn&&a.preventDefault()},o=()=>{document.addEventListener("touchstart",n.start),document.addEventListener("touchmove",r,Tn?{passive:!1}:!1),Rt||document.body.classList.add(Cs),Rt++},s=()=>{Rt&&(document.removeEventListener("touchstart",n.start),document.removeEventListener("touchmove",r),Rt--,Rt||document.body.classList.remove(Cs))};i.useEffect(()=>{if(e)return o(),()=>{s()}},[e])}let Lr=tn();const Q=t=>en(t,Lr);let Br=tn();Q.write=t=>en(t,Br);let On=tn();Q.onStart=t=>en(t,On);let zr=tn();Q.onFrame=t=>en(t,zr);let Vr=tn();Q.onFinish=t=>en(t,Vr);let Dt=[];Q.setTimeout=(t,e)=>{let n=Q.now()+e,r=()=>{let s=Dt.findIndex(a=>a.cancel==r);~s&&Dt.splice(s,1),ft-=~s?1:0},o={time:n,handler:t,cancel:r};return Dt.splice(ws(n),0,o),ft+=1,ks(),o};let ws=t=>~(~Dt.findIndex(e=>e.time>t)||~Dt.length);Q.cancel=t=>{On.delete(t),zr.delete(t),Vr.delete(t),Lr.delete(t),Br.delete(t)},Q.sync=t=>{jr=!0,Q.batchedUpdates(t),jr=!1},Q.throttle=t=>{let e;function n(){try{t(...e)}finally{e=null}}function r(...o){e=o,Q.onStart(n)}return r.handler=t,r.cancel=()=>{On.delete(n),e=null},r};let Zr=typeof window!="undefined"?window.requestAnimationFrame:()=>{};Q.use=t=>Zr=t,Q.now=typeof performance!="undefined"?()=>performance.now():Date.now,Q.batchedUpdates=t=>t(),Q.catch=console.error,Q.frameLoop="always",Q.advance=()=>{Q.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Is()};let dt=-1,ft=0,jr=!1;function en(t,e){jr?(e.delete(t),t(0)):(e.add(t),ks())}function ks(){dt<0&&(dt=0,Q.frameLoop!=="demand"&&Zr(Es))}function Ec(){dt=-1}function Es(){~dt&&(Zr(Es),Q.batchedUpdates(Is))}function Is(){let t=dt;dt=Q.now();let e=ws(dt);if(e&&($s(Dt.splice(0,e),n=>n.handler()),ft-=e),!ft){Ec();return}On.flush(),Lr.flush(t?Math.min(64,dt-t):16.667),zr.flush(),Br.flush(),Vr.flush()}function tn(){let t=new Set,e=t;return{add(n){ft+=e==t&&!t.has(n)?1:0,t.add(n)},delete(n){return ft-=e==t&&t.has(n)?1:0,t.delete(n)},flush(n){e.size&&(t=new Set,ft-=e.size,$s(e,r=>r(n)&&t.add(r)),ft+=t.size,e=t)}}}function $s(t,e){t.forEach(n=>{try{e(n)}catch(r){Q.catch(r)}})}function Kr(){}const Ic=(t,e,n)=>Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0}),D={arr:Array.isArray,obj:t=>!!t&&t.constructor.name==="Object",fun:t=>typeof t=="function",str:t=>typeof t=="string",num:t=>typeof t=="number",und:t=>t===void 0};function rt(t,e){if(D.arr(t)){if(!D.arr(e)||t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}return t===e}const se=(t,e)=>t.forEach(e);function Ge(t,e,n){if(D.arr(t)){for(let r=0;r<t.length;r++)e.call(n,t[r],`${r}`);return}for(const r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r)}const Ae=t=>D.und(t)?[]:D.arr(t)?t:[t];function nn(t,e){if(t.size){const n=Array.from(t);t.clear(),se(n,e)}}const rn=(t,...e)=>nn(t,n=>n(...e)),Wr=()=>typeof window=="undefined"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let Hr,_s,mt=null,Ps=!1,Ur=Kr;var Xe=Object.freeze({__proto__:null,get createStringInterpolator(){return Hr},get to(){return _s},get colors(){return mt},get skipAnimation(){return Ps},get willAdvance(){return Ur},assign:t=>{t.to&&(_s=t.to),t.now&&(Q.now=t.now),t.colors!==void 0&&(mt=t.colors),t.skipAnimation!=null&&(Ps=t.skipAnimation),t.createStringInterpolator&&(Hr=t.createStringInterpolator),t.requestAnimationFrame&&Q.use(t.requestAnimationFrame),t.batchedUpdates&&(Q.batchedUpdates=t.batchedUpdates),t.willAdvance&&(Ur=t.willAdvance),t.frameLoop&&(Q.frameLoop=t.frameLoop)}});const on=new Set;let Be=[],qr=[],Dn=0;const An={get idle(){return!on.size&&!Be.length},start(t){Dn>t.priority?(on.add(t),Q.onStart($c)):(Fs(t),Q(Yr))},advance:Yr,sort(t){if(Dn)Q.onFrame(()=>An.sort(t));else{const e=Be.indexOf(t);~e&&(Be.splice(e,1),Ms(t))}},clear(){Be=[],on.clear()}};function $c(){on.forEach(Fs),on.clear(),Q(Yr)}function Fs(t){Be.includes(t)||Ms(t)}function Ms(t){Be.splice(_c(Be,e=>e.priority>t.priority),0,t)}function Yr(t){const e=qr;for(let n=0;n<Be.length;n++){const r=Be[n];Dn=r.priority,r.idle||(Ur(r),r.advance(t),r.idle||e.push(r))}return Dn=0,qr=Be,qr.length=0,Be=e,Be.length>0}function _c(t,e){const n=t.findIndex(e);return n<0?t.length:n}const Pc={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},We="[-+]?\\d*\\.?\\d+",Ln=We+"%";function Bn(...t){return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}const Fc=new RegExp("rgb"+Bn(We,We,We)),Mc=new RegExp("rgba"+Bn(We,We,We,We)),Nc=new RegExp("hsl"+Bn(We,Ln,Ln)),Tc=new RegExp("hsla"+Bn(We,Ln,Ln,We)),Oc=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Dc=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Ac=/^#([0-9a-fA-F]{6})$/,Lc=/^#([0-9a-fA-F]{8})$/;function Bc(t){let e;return typeof t=="number"?t>>>0===t&&t>=0&&t<=4294967295?t:null:(e=Ac.exec(t))?parseInt(e[1]+"ff",16)>>>0:mt&&mt[t]!==void 0?mt[t]:(e=Fc.exec(t))?(At(e[1])<<24|At(e[2])<<16|At(e[3])<<8|255)>>>0:(e=Mc.exec(t))?(At(e[1])<<24|At(e[2])<<16|At(e[3])<<8|Os(e[4]))>>>0:(e=Oc.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+"ff",16)>>>0:(e=Lc.exec(t))?parseInt(e[1],16)>>>0:(e=Dc.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+e[4]+e[4],16)>>>0:(e=Nc.exec(t))?(Ns(Ts(e[1]),zn(e[2]),zn(e[3]))|255)>>>0:(e=Tc.exec(t))?(Ns(Ts(e[1]),zn(e[2]),zn(e[3]))|Os(e[4]))>>>0:null}function Gr(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Ns(t,e,n){const r=n<.5?n*(1+e):n+e-n*e,o=2*n-r,s=Gr(o,r,t+1/3),a=Gr(o,r,t),l=Gr(o,r,t-1/3);return Math.round(s*255)<<24|Math.round(a*255)<<16|Math.round(l*255)<<8}function At(t){const e=parseInt(t,10);return e<0?0:e>255?255:e}function Ts(t){return(parseFloat(t)%360+360)%360/360}function Os(t){const e=parseFloat(t);return e<0?0:e>1?255:Math.round(e*255)}function zn(t){const e=parseFloat(t);return e<0?0:e>100?1:e/100}function Ds(t){let e=Bc(t);if(e===null)return t;e=e||0;let n=(e&4278190080)>>>24,r=(e&16711680)>>>16,o=(e&65280)>>>8,s=(e&255)/255;return`rgba(${n}, ${r}, ${o}, ${s})`}const sn=(t,e,n)=>{if(D.fun(t))return t;if(D.arr(t))return sn({range:t,output:e,extrapolate:n});if(D.str(t.output[0]))return Hr(t);const r=t,o=r.output,s=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",l=r.extrapolateRight||r.extrapolate||"extend",c=r.easing||(u=>u);return u=>{const d=Vc(u,s);return zc(u,s[d],s[d+1],o[d],o[d+1],c,a,l,r.map)}};function zc(t,e,n,r,o,s,a,l,c){let u=c?c(t):t;if(u<e){if(a==="identity")return u;a==="clamp"&&(u=e)}if(u>n){if(l==="identity")return u;l==="clamp"&&(u=n)}return r===o?r:e===n?t<=e?r:o:(e===-1/0?u=-u:n===1/0?u=u-e:u=(u-e)/(n-e),u=s(u),r===-1/0?u=-u:o===1/0?u=u+r:u=u*(o-r)+r,u)}function Vc(t,e){for(var n=1;n<e.length-1&&!(e[n]>=t);++n);return n-1}const Zc={linear:t=>t};function Xr(){return Xr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Xr.apply(this,arguments)}const Lt=Symbol.for("FluidValue.get"),Ct=Symbol.for("FluidValue.observers"),ze=t=>!!(t&&t[Lt]),Fe=t=>t&&t[Lt]?t[Lt]():t,As=t=>t[Ct]||null;function jc(t,e){t.eventObserved?t.eventObserved(e):t(e)}function an(t,e){let n=t[Ct];n&&n.forEach(r=>{jc(r,e)})}class Ls{constructor(e){if(this[Lt]=void 0,this[Ct]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");Kc(this,e)}}const Kc=(t,e)=>Bs(t,Lt,e);function Bt(t,e){if(t[Lt]){let n=t[Ct];n||Bs(t,Ct,n=new Set),n.has(e)||(n.add(e),t.observerAdded&&t.observerAdded(n.size,e))}return e}function ln(t,e){let n=t[Ct];if(n&&n.has(e)){const r=n.size-1;r?n.delete(e):t[Ct]=null,t.observerRemoved&&t.observerRemoved(r,e)}}const Bs=(t,e,n)=>Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0}),Vn=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Wc=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,zs=new RegExp(`(${Vn.source})(%|[a-z]+)`,"i"),Hc=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Zn=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Vs=t=>{const[e,n]=Uc(t);if(!e||Wr())return t;const r=window.getComputedStyle(document.documentElement).getPropertyValue(e);if(r)return r.trim();if(n&&n.startsWith("--")){const o=window.getComputedStyle(document.documentElement).getPropertyValue(n);return o||t}else{if(n&&Zn.test(n))return Vs(n);if(n)return n}return t},Uc=t=>{const e=Zn.exec(t);if(!e)return[,];const[,n,r]=e;return[n,r]};let Jr;const qc=(t,e,n,r,o)=>`rgba(${Math.round(e)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,Zs=t=>{Jr||(Jr=mt?new RegExp(`(${Object.keys(mt).join("|")})(?!\\w)`,"g"):/^\b$/);const e=t.output.map(s=>Fe(s).replace(Zn,Vs).replace(Wc,Ds).replace(Jr,Ds)),n=e.map(s=>s.match(Vn).map(Number)),o=n[0].map((s,a)=>n.map(l=>{if(!(a in l))throw Error('The arity of each "output" value must be equal');return l[a]})).map(s=>sn(Xr({},t,{output:s})));return s=>{var a;const l=!zs.test(e[0])&&((a=e.find(u=>zs.test(u)))==null?void 0:a.replace(Vn,""));let c=0;return e[0].replace(Vn,()=>`${o[c++](s)}${l||""}`).replace(Hc,qc)}},Qr="react-spring: ",js=t=>{const e=t;let n=!1;if(typeof e!="function")throw new TypeError(`${Qr}once requires a function parameter`);return(...r)=>{n||(e(...r),n=!0)}},Yc=js(console.warn);function Gc(){Yc(`${Qr}The "interpolate" function is deprecated in v9 (use "to" instead)`)}const Xc=js(console.warn);function Jc(){Xc(`${Qr}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function jn(t){return D.str(t)&&(t[0]=="#"||/\d/.test(t)||!Wr()&&Zn.test(t)||t in(mt||{}))}const Rr=Wr()?i.useEffect:i.useLayoutEffect,Qc=()=>{const t=i.useRef(!1);return Rr(()=>(t.current=!0,()=>{t.current=!1}),[]),t};function Ks(){const t=i.useState()[1],e=Qc();return()=>{e.current&&t(Math.random())}}function Rc(t,e){const[n]=i.useState(()=>({inputs:e,result:t()})),r=i.useRef(),o=r.current;let s=o;return s?e&&s.inputs&&eu(e,s.inputs)||(s={inputs:e,result:t()}):s=n,i.useEffect(()=>{r.current=s,o==n&&(n.inputs=n.result=void 0)},[s]),s.result}function eu(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}const Ws=t=>i.useEffect(t,tu),tu=[];function Hs(t){const e=i.useRef();return i.useEffect(()=>{e.current=t}),e.current}const cn=Symbol.for("Animated:node"),nu=t=>!!t&&t[cn]===t,Je=t=>t&&t[cn],eo=(t,e)=>Ic(t,cn,e),Kn=t=>t&&t[cn]&&t[cn].getPayload();class Us{constructor(){this.payload=void 0,eo(this,this)}getPayload(){return this.payload||[]}}class zt extends Us{constructor(e){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=e,D.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new zt(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,n){return D.num(e)&&(this.lastPosition=e,n&&(e=Math.round(e/n)*n,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,D.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}class Vt extends zt{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=sn({output:[e,e]})}static create(e){return new Vt(e)}getValue(){let e=this._string;return e==null?this._string=this._toString(this._value):e}setValue(e){if(D.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=sn({output:[this.getValue(),e]})),this._value=0,super.reset()}}const Wn={dependencies:null};class Hn extends Us{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const n={};return Ge(this.source,(r,o)=>{nu(r)?n[o]=r.getValue(e):ze(r)?n[o]=Fe(r):e||(n[o]=r)}),n}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&se(this.payload,e=>e.reset())}_makePayload(e){if(e){const n=new Set;return Ge(e,this._addToPayload,n),Array.from(n)}}_addToPayload(e){Wn.dependencies&&ze(e)&&Wn.dependencies.add(e);const n=Kn(e);n&&se(n,r=>this.add(r))}}class to extends Hn{constructor(e){super(e)}static create(e){return new to(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const n=this.getPayload();return e.length==n.length?n.map((r,o)=>r.setValue(e[o])).some(Boolean):(super.setValue(e.map(ru)),!0)}}function ru(t){return(jn(t)?Vt:zt).create(t)}function no(t){const e=Je(t);return e?e.constructor:D.arr(t)?to:jn(t)?Vt:zt}function Un(){return Un=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Un.apply(this,arguments)}const qs=(t,e)=>{const n=!D.fun(t)||t.prototype&&t.prototype.isReactComponent;return i.forwardRef((r,o)=>{const s=i.useRef(null),a=n&&i.useCallback(g=>{s.current=iu(o,g)},[o]),[l,c]=su(r,e),u=Ks(),d=()=>{const g=s.current;if(n&&!g)return;(g?e.applyAnimatedValues(g,l.getValue(!0)):!1)===!1&&u()},f=new ou(d,c),v=i.useRef();Rr(()=>(v.current=f,se(c,g=>Bt(g,f)),()=>{v.current&&(se(v.current.deps,g=>ln(g,v.current)),Q.cancel(v.current.update))})),i.useEffect(d,[]),Ws(()=>()=>{const g=v.current;se(g.deps,y=>ln(y,g))});const b=e.getComponentProps(l.getValue());return J.createElement(t,Un({},b,{ref:a}))})};class ou{constructor(e,n){this.update=e,this.deps=n}eventObserved(e){e.type=="change"&&Q.write(this.update)}}function su(t,e){const n=new Set;return Wn.dependencies=n,t.style&&(t=Un({},t,{style:e.createAnimatedStyle(t.style)})),t=new Hn(t),Wn.dependencies=null,[t,n]}function iu(t,e){return t&&(D.fun(t)?t(e):t.current=e),e}const Ys=Symbol.for("AnimatedComponent"),au=(t,{applyAnimatedValues:e=()=>!1,createAnimatedStyle:n=o=>new Hn(o),getComponentProps:r=o=>o}={})=>{const o={applyAnimatedValues:e,createAnimatedStyle:n,getComponentProps:r},s=a=>{const l=Gs(a)||"Anonymous";return D.str(a)?a=s[a]||(s[a]=qs(a,o)):a=a[Ys]||(a[Ys]=qs(a,o)),a.displayName=`Animated(${l})`,a};return Ge(t,(a,l)=>{D.arr(t)&&(l=Gs(a)),s[l]=s(a)}),{animated:s}},Gs=t=>D.str(t)?t:t&&D.str(t.displayName)?t.displayName:D.fun(t)&&t.name||null;function Se(){return Se=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Se.apply(this,arguments)}function St(t,...e){return D.fun(t)?t(...e):t}const un=(t,e)=>t===!0||!!(e&&t&&(D.fun(t)?t(e):Ae(t).includes(e))),Xs=(t,e)=>D.obj(t)?e&&t[e]:t,Js=(t,e)=>t.default===!0?t[e]:t.default?t.default[e]:void 0,lu=t=>t,ro=(t,e=lu)=>{let n=cu;t.default&&t.default!==!0&&(t=t.default,n=Object.keys(t));const r={};for(const o of n){const s=e(t[o],o);D.und(s)||(r[o]=s)}return r},cu=["config","onProps","onStart","onChange","onPause","onResume","onRest"],uu={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function du(t){const e={};let n=0;if(Ge(t,(r,o)=>{uu[o]||(e[o]=r,n++)}),n)return e}function Qs(t){const e=du(t);if(e){const n={to:e};return Ge(t,(r,o)=>o in e||(n[o]=r)),n}return Se({},t)}function dn(t){return t=Fe(t),D.arr(t)?t.map(dn):jn(t)?Xe.createStringInterpolator({range:[0,1],output:[t,t]})(1):t}function fu(t){for(const e in t)return!0;return!1}function oo(t){return D.fun(t)||D.arr(t)&&D.obj(t[0])}function mu(t,e){var n;(n=t.ref)==null||n.delete(t),e==null||e.delete(t)}function pu(t,e){if(e&&t.ref!==e){var n;(n=t.ref)==null||n.delete(t),e.add(t),t.ref=e}}const so=Se({},{default:{tension:170,friction:26}}.default,{mass:1,damping:1,easing:Zc.linear,clamp:!1});class hu{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,so)}}function gu(t,e,n){n&&(n=Se({},n),Rs(n,e),e=Se({},n,e)),Rs(t,e),Object.assign(t,e);for(const a in so)t[a]==null&&(t[a]=so[a]);let{mass:r,frequency:o,damping:s}=t;return D.und(o)||(o<.01&&(o=.01),s<0&&(s=0),t.tension=Math.pow(2*Math.PI/o,2)*r,t.friction=4*Math.PI*s*r/o),t}function Rs(t,e){if(!D.und(e.decay))t.duration=void 0;else{const n=!D.und(e.tension)||!D.und(e.friction);(n||!D.und(e.frequency)||!D.und(e.damping)||!D.und(e.mass))&&(t.duration=void 0,t.decay=void 0),n&&(t.frequency=void 0)}}const ei=[];class vu{constructor(){this.changed=!1,this.values=ei,this.toValues=null,this.fromValues=ei,this.to=void 0,this.from=void 0,this.config=new hu,this.immediate=!1}}function ti(t,{key:e,props:n,defaultProps:r,state:o,actions:s}){return new Promise((a,l)=>{var c;let u,d,f=un((c=n.cancel)!=null?c:r==null?void 0:r.cancel,e);if(f)g();else{D.und(n.pause)||(o.paused=un(n.pause,e));let y=r==null?void 0:r.pause;y!==!0&&(y=o.paused||un(y,e)),u=St(n.delay||0,e),y?(o.resumeQueue.add(b),s.pause()):(s.resume(),b())}function v(){o.resumeQueue.add(b),o.timeouts.delete(d),d.cancel(),u=d.time-Q.now()}function b(){u>0&&!Xe.skipAnimation?(o.delayed=!0,d=Q.setTimeout(g,u),o.pauseQueue.add(v),o.timeouts.add(d)):g()}function g(){o.delayed&&(o.delayed=!1),o.pauseQueue.delete(v),o.timeouts.delete(d),t<=(o.cancelId||0)&&(f=!0);try{s.start(Se({},n,{callId:t,cancel:f}),a)}catch(y){l(y)}}})}const io=(t,e)=>e.length==1?e[0]:e.some(n=>n.cancelled)?Zt(t.get()):e.every(n=>n.noop)?ni(t.get()):He(t.get(),e.every(n=>n.finished)),ni=t=>({value:t,noop:!0,finished:!0,cancelled:!1}),He=(t,e,n=!1)=>({value:t,finished:e,cancelled:n}),Zt=t=>({value:t,cancelled:!0,finished:!1});function ri(t,e,n,r){const{callId:o,parentId:s,onRest:a}=e,{asyncTo:l,promise:c}=n;return!s&&t===l&&!e.reset?c:n.promise=fe(null,null,function*(){n.asyncId=o,n.asyncTo=t;const u=ro(e,(p,x)=>x==="onRest"?void 0:p);let d,f;const v=new Promise((p,x)=>(d=p,f=x)),b=p=>{const x=o<=(n.cancelId||0)&&Zt(r)||o!==n.asyncId&&He(r,!1);if(x)throw p.result=x,f(p),p},g=(p,x)=>{const S=new oi,C=new si;return fe(null,null,function*(){if(Xe.skipAnimation)throw fn(n),C.result=He(r,!1),f(C),C;b(S);const w=D.obj(p)?Se({},p):Se({},x,{to:p});w.parentId=o,Ge(u,(E,I)=>{D.und(w[I])&&(w[I]=E)});const k=yield r.start(w);return b(S),n.paused&&(yield new Promise(E=>{n.resumeQueue.add(E)})),k})};let y;if(Xe.skipAnimation)return fn(n),He(r,!1);try{let p;D.arr(t)?p=(x=>fe(null,null,function*(){for(const S of x)yield g(S)}))(t):p=Promise.resolve(t(g,r.stop.bind(r))),yield Promise.all([p.then(d),v]),y=He(r.get(),!0,!1)}catch(p){if(p instanceof oi)y=p.result;else if(p instanceof si)y=p.result;else throw p}finally{o==n.asyncId&&(n.asyncId=s,n.asyncTo=s?l:void 0,n.promise=s?c:void 0)}return D.fun(a)&&Q.batchedUpdates(()=>{a(y,r,r.item)}),y})}function fn(t,e){nn(t.timeouts,n=>n.cancel()),t.pauseQueue.clear(),t.resumeQueue.clear(),t.asyncId=t.asyncTo=t.promise=void 0,e&&(t.cancelId=e)}class oi extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),this.result=void 0}}class si extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const ao=t=>t instanceof lo;let bu=1;class lo extends Ls{constructor(...e){super(...e),this.id=bu++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Je(this);return e&&e.getValue()}to(...e){return Xe.to(this,e)}interpolate(...e){return Gc(),Xe.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,n=!1){an(this,{type:"change",parent:this,value:e,idle:n})}_onPriorityChange(e){this.idle||An.sort(this),an(this,{type:"priority",parent:this,priority:e})}}const wt=Symbol.for("SpringPhase"),ii=1,co=2,uo=4,fo=t=>(t[wt]&ii)>0,pt=t=>(t[wt]&co)>0,mn=t=>(t[wt]&uo)>0,ai=(t,e)=>e?t[wt]|=co|ii:t[wt]&=~co,li=(t,e)=>e?t[wt]|=uo:t[wt]&=~uo;class yu extends lo{constructor(e,n){if(super(),this.key=void 0,this.animation=new vu,this.queue=void 0,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!D.und(e)||!D.und(n)){const r=D.obj(e)?Se({},e):Se({},n,{from:e});D.und(r.default)&&(r.default=!0),this.start(r)}}get idle(){return!(pt(this)||this._state.asyncTo)||mn(this)}get goal(){return Fe(this.animation.to)}get velocity(){const e=Je(this);return e instanceof zt?e.lastVelocity||0:e.getPayload().map(n=>n.lastVelocity||0)}get hasAnimated(){return fo(this)}get isAnimating(){return pt(this)}get isPaused(){return mn(this)}get isDelayed(){return this._state.delayed}advance(e){let n=!0,r=!1;const o=this.animation;let{config:s,toValues:a}=o;const l=Kn(o.to);!l&&ze(o.to)&&(a=Ae(Fe(o.to))),o.values.forEach((d,f)=>{if(d.done)return;const v=d.constructor==Vt?1:l?l[f].lastPosition:a[f];let b=o.immediate,g=v;if(!b){if(g=d.lastPosition,s.tension<=0){d.done=!0;return}let y=d.elapsedTime+=e;const p=o.fromValues[f],x=d.v0!=null?d.v0:d.v0=D.arr(s.velocity)?s.velocity[f]:s.velocity;let S;const C=s.precision||(p==v?.005:Math.min(1,Math.abs(v-p)*.001));if(D.und(s.duration))if(s.decay){const w=s.decay===!0?.998:s.decay,k=Math.exp(-(1-w)*y);g=p+x/(1-w)*(1-k),b=Math.abs(d.lastPosition-g)<=C,S=x*k}else{S=d.lastVelocity==null?x:d.lastVelocity;const w=s.restVelocity||C/10,k=s.clamp?0:s.bounce,E=!D.und(k),I=p==v?d.v0>0:p<v;let T,Z=!1;const M=1,N=Math.ceil(e/M);for(let U=0;U<N&&(T=Math.abs(S)>w,!(!T&&(b=Math.abs(v-g)<=C,b)));++U){E&&(Z=g==v||g>v==I,Z&&(S=-S*k,g=v));const z=-s.tension*1e-6*(g-v),_=-s.friction*.001*S,F=(z+_)/s.mass;S=S+F*M,g=g+S*M}}else{let w=1;s.duration>0&&(this._memoizedDuration!==s.duration&&(this._memoizedDuration=s.duration,d.durationProgress>0&&(d.elapsedTime=s.duration*d.durationProgress,y=d.elapsedTime+=e)),w=(s.progress||0)+y/this._memoizedDuration,w=w>1?1:w<0?0:w,d.durationProgress=w),g=p+s.easing(w)*(v-p),S=(g-d.lastPosition)/e,b=w==1}d.lastVelocity=S,Number.isNaN(g)&&(console.warn("Got NaN while animating:",this),b=!0)}l&&!l[f].done&&(b=!1),b?d.done=!0:n=!1,d.setValue(g,s.round)&&(r=!0)});const c=Je(this),u=c.getValue();if(n){const d=Fe(o.to);(u!==d||r)&&!s.decay?(c.setValue(d),this._onChange(d)):r&&s.decay&&this._onChange(u),this._stop()}else r&&this._onChange(u)}set(e){return Q.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(pt(this)){const{to:e,config:n}=this.animation;Q.batchedUpdates(()=>{this._onStart(),n.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,n){let r;return D.und(e)?(r=this.queue||[],this.queue=[]):r=[D.obj(e)?e:Se({},n,{to:e})],Promise.all(r.map(o=>this._update(o))).then(o=>io(this,o))}stop(e){const{to:n}=this.animation;return this._focus(this.get()),fn(this._state,e&&this._lastCallId),Q.batchedUpdates(()=>this._stop(n,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const n=this.key||"";let{to:r,from:o}=e;r=D.obj(r)?r[n]:r,(r==null||oo(r))&&(r=void 0),o=D.obj(o)?o[n]:o,o==null&&(o=void 0);const s={to:r,from:o};return fo(this)||(e.reverse&&([r,o]=[o,r]),o=Fe(o),D.und(o)?Je(this)||this._set(r):this._set(o)),s}_update(e,n){let r=Se({},e);const{key:o,defaultProps:s}=this;r.default&&Object.assign(s,ro(r,(c,u)=>/^on/.test(u)?Xs(c,o):c)),di(this,r,"onProps"),gn(this,"onProps",r,this);const a=this._prepareNode(r);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const l=this._state;return ti(++this._lastCallId,{key:o,props:r,defaultProps:s,state:l,actions:{pause:()=>{mn(this)||(li(this,!0),rn(l.pauseQueue),gn(this,"onPause",He(this,pn(this,this.animation.to)),this))},resume:()=>{mn(this)&&(li(this,!1),pt(this)&&this._resume(),rn(l.resumeQueue),gn(this,"onResume",He(this,pn(this,this.animation.to)),this))},start:this._merge.bind(this,a)}}).then(c=>{if(r.loop&&c.finished&&!(n&&c.noop)){const u=ci(r);if(u)return this._update(u,!0)}return c})}_merge(e,n,r){if(n.cancel)return this.stop(!0),r(Zt(this));const o=!D.und(e.to),s=!D.und(e.from);if(o||s)if(n.callId>this._lastToId)this._lastToId=n.callId;else return r(Zt(this));const{key:a,defaultProps:l,animation:c}=this,{to:u,from:d}=c;let{to:f=u,from:v=d}=e;s&&!o&&(!n.default||D.und(f))&&(f=v),n.reverse&&([f,v]=[v,f]);const b=!rt(v,d);b&&(c.from=v),v=Fe(v);const g=!rt(f,u);g&&this._focus(f);const y=oo(n.to),{config:p}=c,{decay:x,velocity:S}=p;(o||s)&&(p.velocity=0),n.config&&!y&&gu(p,St(n.config,a),n.config!==l.config?St(l.config,a):void 0);let C=Je(this);if(!C||D.und(f))return r(He(this,!0));const w=D.und(n.reset)?s&&!n.default:!D.und(v)&&un(n.reset,a),k=w?v:this.get(),E=dn(f),I=D.num(E)||D.arr(E)||jn(E),T=!y&&(!I||un(l.immediate||n.immediate,a));if(g){const U=no(f);if(U!==C.constructor)if(T)C=this._set(E);else throw Error(`Cannot animate between ${C.constructor.name} and ${U.name}, as the "to" prop suggests`)}const Z=C.constructor;let M=ze(f),N=!1;if(!M){const U=w||!fo(this)&&b;(g||U)&&(N=rt(dn(k),E),M=!N),(!rt(c.immediate,T)&&!T||!rt(p.decay,x)||!rt(p.velocity,S))&&(M=!0)}if(N&&pt(this)&&(c.changed&&!w?M=!0:M||this._stop(u)),!y&&((M||ze(u))&&(c.values=C.getPayload(),c.toValues=ze(f)?null:Z==Vt?[1]:Ae(E)),c.immediate!=T&&(c.immediate=T,!T&&!w&&this._set(u)),M)){const{onRest:U}=c;se(Cu,_=>di(this,n,_));const z=He(this,pn(this,u));rn(this._pendingCalls,z),this._pendingCalls.add(r),c.changed&&Q.batchedUpdates(()=>{c.changed=!w,U==null||U(z,this),w?St(l.onRest,z):c.onStart==null||c.onStart(z,this)})}w&&this._set(k),y?r(ri(n.to,n,this._state,this)):M?this._start():pt(this)&&!g?this._pendingCalls.add(r):r(ni(k))}_focus(e){const n=this.animation;e!==n.to&&(As(this)&&this._detach(),n.to=e,As(this)&&this._attach())}_attach(){let e=0;const{to:n}=this.animation;ze(n)&&(Bt(n,this),ao(n)&&(e=n.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;ze(e)&&ln(e,this)}_set(e,n=!0){const r=Fe(e);if(!D.und(r)){const o=Je(this);if(!o||!rt(r,o.getValue())){const s=no(r);!o||o.constructor!=s?eo(this,s.create(r)):o.setValue(r),o&&Q.batchedUpdates(()=>{this._onChange(r,n)})}}return Je(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,gn(this,"onStart",He(this,pn(this,e.to)),this))}_onChange(e,n){n||(this._onStart(),St(this.animation.onChange,e,this)),St(this.defaultProps.onChange,e,this),super._onChange(e,n)}_start(){const e=this.animation;Je(this).reset(Fe(e.to)),e.immediate||(e.fromValues=e.values.map(n=>n.lastPosition)),pt(this)||(ai(this,!0),mn(this)||this._resume())}_resume(){Xe.skipAnimation?this.finish():An.start(this)}_stop(e,n){if(pt(this)){ai(this,!1);const r=this.animation;se(r.values,s=>{s.done=!0}),r.toValues&&(r.onChange=r.onPause=r.onResume=void 0),an(this,{type:"idle",parent:this});const o=n?Zt(this.get()):He(this.get(),pn(this,e!=null?e:r.to));rn(this._pendingCalls,o),r.changed&&(r.changed=!1,gn(this,"onRest",o,this))}}}function pn(t,e){const n=dn(e),r=dn(t.get());return rt(r,n)}function ci(t,e=t.loop,n=t.to){let r=St(e);if(r){const o=r!==!0&&Qs(r),s=(o||t).reverse,a=!o||o.reset;return hn(Se({},t,{loop:e,default:!1,pause:void 0,to:!s||oo(n)?n:void 0,from:a?t.from:void 0,reset:a},o))}}function hn(t){const{to:e,from:n}=t=Qs(t),r=new Set;return D.obj(e)&&ui(e,r),D.obj(n)&&ui(n,r),t.keys=r.size?Array.from(r):null,t}function xu(t){const e=hn(t);return D.und(e.default)&&(e.default=ro(e)),e}function ui(t,e){Ge(t,(n,r)=>n!=null&&e.add(r))}const Cu=["onStart","onRest","onChange","onPause","onResume"];function di(t,e,n){t.animation[n]=e[n]!==Js(e,n)?Xs(e[n],t.key):void 0}function gn(t,e,...n){var r,o,s,a;(r=(o=t.animation)[e])==null||r.call(o,...n),(s=(a=t.defaultProps)[e])==null||s.call(a,...n)}const Su=["onStart","onChange","onRest"];let wu=1,ku=class{constructor(e,n){this.id=wu++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),n&&(this._flush=n),e&&this.start(Se({default:!0},e))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((n,r)=>e[r]=n.get()),e}set(e){for(const n in e){const r=e[n];D.und(r)||this.springs[n].set(r)}}update(e){return e&&this.queue.push(hn(e)),this}start(e){let{queue:n}=this;return e?n=Ae(e).map(hn):this.queue=[],this._flush?this._flush(this,n):(vi(this,n),mo(this,n))}stop(e,n){if(e!==!!e&&(n=e),n){const r=this.springs;se(Ae(n),o=>r[o].stop(!!e))}else fn(this._state,this._lastAsyncId),this.each(r=>r.stop(!!e));return this}pause(e){if(D.und(e))this.start({pause:!0});else{const n=this.springs;se(Ae(e),r=>n[r].pause())}return this}resume(e){if(D.und(e))this.start({pause:!1});else{const n=this.springs;se(Ae(e),r=>n[r].resume())}return this}each(e){Ge(this.springs,e)}_onFrame(){const{onStart:e,onChange:n,onRest:r}=this._events,o=this._active.size>0,s=this._changed.size>0;(o&&!this._started||s&&!this._started)&&(this._started=!0,nn(e,([c,u])=>{u.value=this.get(),c(u,this,this._item)}));const a=!o&&this._started,l=s||a&&r.size?this.get():null;s&&n.size&&nn(n,([c,u])=>{u.value=l,c(u,this,this._item)}),a&&(this._started=!1,nn(r,([c,u])=>{u.value=l,c(u,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;Q.onFrame(this._onFrame)}};function mo(t,e){return Promise.all(e.map(n=>fi(t,n))).then(n=>io(t,n))}function fi(t,e,n){return fe(this,null,function*(){const{keys:r,to:o,from:s,loop:a,onRest:l,onResolve:c}=e,u=D.obj(e.default)&&e.default;a&&(e.loop=!1),o===!1&&(e.to=null),s===!1&&(e.from=null);const d=D.arr(o)||D.fun(o)?o:void 0;d?(e.to=void 0,e.onRest=void 0,u&&(u.onRest=void 0)):se(Su,y=>{const p=e[y];if(D.fun(p)){const x=t._events[y];e[y]=({finished:S,cancelled:C})=>{const w=x.get(p);w?(S||(w.finished=!1),C&&(w.cancelled=!0)):x.set(p,{value:null,finished:S||!1,cancelled:C||!1})},u&&(u[y]=e[y])}});const f=t._state;e.pause===!f.paused?(f.paused=e.pause,rn(e.pause?f.pauseQueue:f.resumeQueue)):f.paused&&(e.pause=!0);const v=(r||Object.keys(t.springs)).map(y=>t.springs[y].start(e)),b=e.cancel===!0||Js(e,"cancel")===!0;(d||b&&f.asyncId)&&v.push(ti(++t._lastAsyncId,{props:e,state:f,actions:{pause:Kr,resume:Kr,start(y,p){b?(fn(f,t._lastAsyncId),p(Zt(t))):(y.onRest=l,p(ri(d,y,f,t)))}}})),f.paused&&(yield new Promise(y=>{f.resumeQueue.add(y)}));const g=io(t,yield Promise.all(v));if(a&&g.finished&&!(n&&g.noop)){const y=ci(e,a,o);if(y)return vi(t,[y]),fi(t,y,!0)}return c&&Q.batchedUpdates(()=>c(g,t,t.item)),g})}function mi(t,e){const n=Se({},t.springs);return e&&se(Ae(e),r=>{D.und(r.keys)&&(r=hn(r)),D.obj(r.to)||(r=Se({},r,{to:void 0})),gi(n,r,o=>hi(o))}),pi(t,n),n}function pi(t,e){Ge(e,(n,r)=>{t.springs[r]||(t.springs[r]=n,Bt(n,t))})}function hi(t,e){const n=new yu;return n.key=t,e&&Bt(n,e),n}function gi(t,e,n){e.keys&&se(e.keys,r=>{(t[r]||(t[r]=n(r)))._prepareNode(e)})}function vi(t,e){se(e,n=>{gi(t.springs,n,r=>hi(r,t))})}function Eu(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,s;for(s=0;s<r.length;s++)o=r[s],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}const Iu=["children"],qn=t=>{let{children:e}=t,n=Eu(t,Iu);const r=i.useContext(Yn),o=n.pause||!!r.pause,s=n.immediate||!!r.immediate;n=Rc(()=>({pause:o,immediate:s}),[o,s]);const{Provider:a}=Yn;return J.createElement(a,{value:n},e)},Yn=$u(qn,{});qn.Provider=Yn.Provider,qn.Consumer=Yn.Consumer;function $u(t,e){return Object.assign(t,J.createContext(e)),t.Provider._context=t,t.Consumer._context=t,t}const _u=()=>{const t=[],e=function(o){Jc();const s=[];return se(t,(a,l)=>{if(D.und(o))s.push(a.start());else{const c=n(o,a,l);c&&s.push(a.start(c))}}),s};e.current=t,e.add=function(r){t.includes(r)||t.push(r)},e.delete=function(r){const o=t.indexOf(r);~o&&t.splice(o,1)},e.pause=function(){return se(t,r=>r.pause(...arguments)),this},e.resume=function(){return se(t,r=>r.resume(...arguments)),this},e.set=function(r){se(t,o=>o.set(r))},e.start=function(r){const o=[];return se(t,(s,a)=>{if(D.und(r))o.push(s.start());else{const l=this._getProps(r,s,a);l&&o.push(s.start(l))}}),o},e.stop=function(){return se(t,r=>r.stop(...arguments)),this},e.update=function(r){return se(t,(o,s)=>o.update(this._getProps(r,o,s))),this};const n=function(o,s,a){return D.fun(o)?o(a,s):o};return e._getProps=n,e};function Pu(t,e,n){const r=D.fun(e)&&e;r&&!n&&(n=[]);const o=i.useMemo(()=>r||arguments.length==3?_u():void 0,[]),s=i.useRef(0),a=Ks(),l=i.useMemo(()=>({ctrls:[],queue:[],flush(x,S){const C=mi(x,S);return s.current>0&&!l.queue.length&&!Object.keys(C).some(k=>!x.springs[k])?mo(x,S):new Promise(k=>{pi(x,C),l.queue.push(()=>{k(mo(x,S))}),a()})}}),[]),c=i.useRef([...l.ctrls]),u=[],d=Hs(t)||0;i.useMemo(()=>{se(c.current.slice(t,d),x=>{mu(x,o),x.stop(!0)}),c.current.length=t,f(d,t)},[t]),i.useMemo(()=>{f(0,Math.min(d,t))},n);function f(x,S){for(let C=x;C<S;C++){const w=c.current[C]||(c.current[C]=new ku(null,l.flush)),k=r?r(C,w):e[C];k&&(u[C]=xu(k))}}const v=c.current.map((x,S)=>mi(x,u[S])),b=i.useContext(qn),g=Hs(b),y=b!==g&&fu(b);Rr(()=>{s.current++,l.ctrls=c.current;const{queue:x}=l;x.length&&(l.queue=[],se(x,S=>S())),se(c.current,(S,C)=>{o==null||o.add(S),y&&S.start({default:b});const w=u[C];w&&(pu(S,w.ref),S.ref?S.queue.push(w):S.start(w))})}),Ws(()=>()=>{se(l.ctrls,x=>x.stop(!0))});const p=v.map(x=>Se({},x));return o?[p,o]:p}function Ve(t,e){const n=D.fun(t),[[r],o]=Pu(1,n?t:[t],n?e||[]:e);return n||arguments.length==2?[r,o]:r}let bi;(function(t){t.MOUNT="mount",t.ENTER="enter",t.UPDATE="update",t.LEAVE="leave"})(bi||(bi={}));class Fu extends lo{constructor(e,n){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=sn(...n);const r=this._get(),o=no(r);eo(this,o.create(r))}advance(e){const n=this._get(),r=this.get();rt(n,r)||(Je(this).setValue(n),this._onChange(n,this.idle)),!this.idle&&yi(this._active)&&po(this)}_get(){const e=D.arr(this.source)?this.source.map(Fe):Ae(Fe(this.source));return this.calc(...e)}_start(){this.idle&&!yi(this._active)&&(this.idle=!1,se(Kn(this),e=>{e.done=!1}),Xe.skipAnimation?(Q.batchedUpdates(()=>this.advance()),po(this)):An.start(this))}_attach(){let e=1;se(Ae(this.source),n=>{ze(n)&&Bt(n,this),ao(n)&&(n.idle||this._active.add(n),e=Math.max(e,n.priority+1))}),this.priority=e,this._start()}_detach(){se(Ae(this.source),e=>{ze(e)&&ln(e,this)}),this._active.clear(),po(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=Ae(this.source).reduce((n,r)=>Math.max(n,(ao(r)?r.priority:0)+1),0))}}function Mu(t){return t.idle!==!1}function yi(t){return!t.size||Array.from(t).every(Mu)}function po(t){t.idle||(t.idle=!0,se(Kn(t),e=>{e.done=!0}),an(t,{type:"idle",parent:t}))}Xe.assign({createStringInterpolator:Zs,to:(t,e)=>new Fu(t,e)});function ho(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,s;for(s=0;s<r.length;s++)o=r[s],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}const Nu=["style","children","scrollTop","scrollLeft","viewBox"],xi=/^--/;function Tu(t,e){return e==null||typeof e=="boolean"||e===""?"":typeof e=="number"&&e!==0&&!xi.test(t)&&!(vn.hasOwnProperty(t)&&vn[t])?e+"px":(""+e).trim()}const Ci={};function Ou(t,e){if(!t.nodeType||!t.setAttribute)return!1;const n=t.nodeName==="filter"||t.parentNode&&t.parentNode.nodeName==="filter",r=e,{style:o,children:s,scrollTop:a,scrollLeft:l,viewBox:c}=r,u=ho(r,Nu),d=Object.values(u),f=Object.keys(u).map(v=>n||t.hasAttribute(v)?v:Ci[v]||(Ci[v]=v.replace(/([A-Z])/g,b=>"-"+b.toLowerCase())));s!==void 0&&(t.textContent=s);for(let v in o)if(o.hasOwnProperty(v)){const b=Tu(v,o[v]);xi.test(v)?t.style.setProperty(v,b):t.style[v]=b}f.forEach((v,b)=>{t.setAttribute(v,d[b])}),a!==void 0&&(t.scrollTop=a),l!==void 0&&(t.scrollLeft=l),c!==void 0&&t.setAttribute("viewBox",c)}let vn={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const Du=(t,e)=>t+e.charAt(0).toUpperCase()+e.substring(1),Au=["Webkit","Ms","Moz","O"];vn=Object.keys(vn).reduce((t,e)=>(Au.forEach(n=>t[Du(n,e)]=t[e]),t),vn);const Lu=["x","y","z"],Bu=/^(matrix|translate|scale|rotate|skew)/,zu=/^(translate)/,Vu=/^(rotate|skew)/,go=(t,e)=>D.num(t)&&t!==0?t+e:t,Gn=(t,e)=>D.arr(t)?t.every(n=>Gn(n,e)):D.num(t)?t===e:parseFloat(t)===e;class Zu extends Hn{constructor(e){let{x:n,y:r,z:o}=e,s=ho(e,Lu);const a=[],l=[];(n||r||o)&&(a.push([n||0,r||0,o||0]),l.push(c=>[`translate3d(${c.map(u=>go(u,"px")).join(",")})`,Gn(c,0)])),Ge(s,(c,u)=>{if(u==="transform")a.push([c||""]),l.push(d=>[d,d===""]);else if(Bu.test(u)){if(delete s[u],D.und(c))return;const d=zu.test(u)?"px":Vu.test(u)?"deg":"";a.push(Ae(c)),l.push(u==="rotate3d"?([f,v,b,g])=>[`rotate3d(${f},${v},${b},${go(g,d)})`,Gn(g,0)]:f=>[`${u}(${f.map(v=>go(v,d)).join(",")})`,Gn(f,u.startsWith("scale")?1:0)])}}),a.length&&(s.transform=new ju(a,l)),super(s)}}class ju extends Ls{constructor(e,n){super(),this._value=null,this.inputs=e,this.transforms=n}get(){return this._value||(this._value=this._get())}_get(){let e="",n=!0;return se(this.inputs,(r,o)=>{const s=Fe(r[0]),[a,l]=this.transforms[o](D.arr(s)?s:r.map(Fe));e+=" "+a,n=n&&l}),n?"none":e}observerAdded(e){e==1&&se(this.inputs,n=>se(n,r=>ze(r)&&Bt(r,this)))}observerRemoved(e){e==0&&se(this.inputs,n=>se(n,r=>ze(r)&&ln(r,this)))}eventObserved(e){e.type=="change"&&(this._value=null),an(this,e)}}const Ku=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Wu=["scrollTop","scrollLeft"];Xe.assign({batchedUpdates:Tt.unstable_batchedUpdates,createStringInterpolator:Zs,colors:Pc});const ke=au(Ku,{applyAnimatedValues:Ou,createAnimatedStyle:t=>new Zu(t),getComponentProps:t=>ho(t,Wu)}).animated;function Hu(t){return(typeof t=="function"?t():t)||document.body}function Xn(t,e){if(Ot&&t){const n=Hu(t);return Tt.createPortal(e,n)}return e}function Uu(t){const e=i.useRef(t);return t&&(e.current=!0),!!e.current}const Jn=t=>qu(t.active,t.forceRender,t.destroyOnClose)?t.children:null;function qu(t,e,n){const r=Uu(t);return e||t?!0:r?!n:!1}const Yu={click:"onClick",touchstart:"onTouchStart"};function Si(t,e){const n=Object.assign({},e.props);for(const r of t){const o=Yu[r];n[o]=function(s){var a,l;s.stopPropagation(),(l=(a=e.props)[o])===null||l===void 0||l.call(a,s)}}return i.cloneElement(e,n)}const vo="adm-mask",Gu={default:.55,thin:.35,thick:.75},Xu={black:"0, 0, 0",white:"255, 255, 255"},Ju={visible:!0,destroyOnClose:!1,forceRender:!1,color:"black",opacity:"default",disableBodyScroll:!0,getContainer:null,stopPropagation:["click"]},Qn=t=>{const e=re(Ju,t),{locale:n}=Pe(),r=i.useRef(null);Ss(r,e.visible&&e.disableBodyScroll);const o=i.useMemo(()=>{var d;const f=(d=Gu[e.opacity])!==null&&d!==void 0?d:e.opacity,v=Xu[e.color];return v?`rgba(${v}, ${f})`:e.color},[e.color,e.opacity]),[s,a]=i.useState(e.visible),l=ne.useUnmountedRef(),{opacity:c}=Ve({opacity:e.visible?1:0,config:{precision:.01,mass:1,tension:250,friction:30,clamp:!0},onStart:()=>{a(!0)},onRest:()=>{var d,f;l.current||(a(e.visible),e.visible?(d=e.afterShow)===null||d===void 0||d.call(e):(f=e.afterClose)===null||f===void 0||f.call(e))}}),u=Si(e.stopPropagation,Y(e,i.createElement(ke.div,{className:vo,ref:r,"aria-hidden":!0,style:Object.assign(Object.assign({},e.style),{background:o,opacity:c,display:s?void 0:"none"}),onClick:d=>{var f;d.target===d.currentTarget&&((f=e.onMaskClick)===null||f===void 0||f.call(e,d))}},e.onMaskClick&&i.createElement("div",{className:`${vo}-aria-button`,role:"button","aria-label":n.Mask.name,onClick:e.onMaskClick}),i.createElement("div",{className:`${vo}-content`},e.children))));return i.createElement(Jn,{active:s,forceRender:e.forceRender,destroyOnClose:e.destroyOnClose},Xn(e.getContainer,u))};function Qu(t){return J.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},t,{style:Object.assign({verticalAlign:"-0.125em"},t.style),className:["antd-mobile-icon",t.className].filter(Boolean).join(" ")}),J.createElement("g",{id:"AddOutline-AddOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},J.createElement("g",{id:"AddOutline-add"},J.createElement("rect",{id:"AddOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),J.createElement("path",{d:"M25.1,6.5 C25.3209139,6.5 25.5,6.6790861 25.5,6.9 L25.5,22.5 L41.1,22.5 C41.3209139,22.5 41.5,22.6790861 41.5,22.9 L41.5,25.1 C41.5,25.3209139 41.3209139,25.5 41.1,25.5 L25.5,25.5 L25.5,41.1 C25.5,41.3209139 25.3209139,41.5 25.1,41.5 L22.9,41.5 C22.6790861,41.5 22.5,41.3209139 22.5,41.1 L22.5,25.5 L6.9,25.5 C6.6790861,25.5 6.5,25.3209139 6.5,25.1 L6.5,22.9 C6.5,22.6790861 6.6790861,22.5 6.9,22.5 L22.5,22.5 L22.5,6.9 C22.5,6.6790861 22.6790861,6.5 22.9,6.5 L25.1,6.5 Z",id:"AddOutline-路径",fill:"currentColor",fillRule:"nonzero"}))))}function wi(t){return J.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},t,{style:Object.assign({verticalAlign:"-0.125em"},t.style),className:["antd-mobile-icon",t.className].filter(Boolean).join(" ")}),J.createElement("g",{id:"CheckOutline-CheckOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},J.createElement("g",{id:"CheckOutline-编组"},J.createElement("rect",{id:"CheckOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),J.createElement("path",{d:"M44.309608,12.6841286 L21.2180499,35.5661955 L21.2180499,35.5661955 C20.6343343,36.1446015 19.6879443,36.1446015 19.1042286,35.5661955 C19.0538201,35.5162456 19.0077648,35.4636155 18.9660627,35.4087682 C18.9113105,35.368106 18.8584669,35.3226694 18.808302,35.2729607 L3.6903839,20.2920499 C3.53346476,20.1365529 3.53231192,19.8832895 3.68780898,19.7263704 C3.7629255,19.6505669 3.86521855,19.6079227 3.97193622,19.6079227 L7.06238923,19.6079227 C7.16784214,19.6079227 7.26902895,19.6495648 7.34393561,19.7237896 L20.160443,32.4236157 L20.160443,32.4236157 L40.656066,12.115858 C40.7309719,12.0416387 40.8321549,12 40.9376034,12 L44.0280571,12 C44.248971,12 44.4280571,12.1790861 44.4280571,12.4 C44.4280571,12.5067183 44.3854124,12.609012 44.309608,12.6841286 Z",id:"CheckOutline-路径",fill:"currentColor",fillRule:"nonzero"}))))}function Ru(t){return J.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},t,{style:Object.assign({verticalAlign:"-0.125em"},t.style),className:["antd-mobile-icon",t.className].filter(Boolean).join(" ")}),J.createElement("g",{id:"CloseCircleFill-CloseCircleFill",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},J.createElement("g",{id:"CloseCircleFill-编组"},J.createElement("rect",{id:"CloseCircleFill-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),J.createElement("path",{d:"M24,2 C36.1502645,2 46,11.8497355 46,24 C46,36.1502645 36.1502645,46 24,46 C11.8497355,46 2,36.1502645 2,24 C2,11.8497355 11.8497355,2 24,2 Z M18.6753876,16 L15.5637812,16 C15.4576916,16 15.3559474,16.0421451 15.2809323,16.1171635 C15.124726,16.2733766 15.1247316,16.5266426 15.2809447,16.6828489 L15.2809447,16.6828489 L22.299066,23.7006641 L14.6828159,31.3171619 C14.6078042,31.3921761 14.5656632,31.4939157 14.5656632,31.6 C14.5656632,31.8209139 14.7447493,32 14.9656632,32 L14.9656632,32 L18.0753284,32 C18.1814068,32 18.2831412,31.9578638 18.3581544,31.8828594 L18.3581544,31.8828594 L24.420066,25.8216641 L30.4818451,31.8828564 C30.5568585,31.9578626 30.6585942,32 30.7646741,32 L30.7646741,32 L33.8763476,32 C33.9824309,32 34.0841695,31.9578599 34.1591835,31.8828496 C34.315397,31.7266436 34.3154031,31.4733776 34.1591972,31.3171641 L34.1591972,31.3171641 L26.542066,23.6996641 L33.5591874,16.6828489 C33.6342057,16.6078338 33.6763508,16.5060896 33.6763508,16.4 C33.6763508,16.1790861 33.4972647,16 33.2763508,16 L33.2763508,16 L30.1637654,16 C30.0576705,16 29.9559218,16.0421493 29.8809058,16.1171741 L29.8809058,16.1171741 L24.420066,21.5786641 L18.9582218,16.1171488 C18.883208,16.0421394 18.7814701,16 18.6753876,16 L18.6753876,16 Z",id:"CloseCircleFill-形状结合",fill:"currentColor",fillRule:"nonzero"}))))}function Rn(t){return J.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},t,{style:Object.assign({verticalAlign:"-0.125em"},t.style),className:["antd-mobile-icon",t.className].filter(Boolean).join(" ")}),J.createElement("g",{id:"CloseOutline-CloseOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},J.createElement("g",{id:"CloseOutline-编组"},J.createElement("rect",{id:"CloseOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),J.createElement("path",{d:"M10.6085104,8.11754663 L24.1768397,21.8195031 L24.1768397,21.8195031 L37.7443031,8.1175556 C37.8194278,8.04168616 37.9217669,7.999 38.0285372,7.999 L41.1040268,7.999 C41.3249407,7.999 41.5040268,8.1780861 41.5040268,8.399 C41.5040268,8.50440471 41.4624226,8.60554929 41.3882578,8.68044752 L26.2773302,23.9408235 L26.2773302,23.9408235 L41.5021975,39.3175645 C41.65763,39.4745475 41.6563731,39.7278104 41.4993901,39.8832429 C41.4244929,39.9574004 41.3233534,39.999 41.2179546,39.999 L38.1434012,39.999 C38.0366291,39.999 37.9342885,39.9563124 37.8591634,39.8804408 L24.1768397,26.0621438 L24.1768397,26.0621438 L10.4936501,39.8804497 C10.4185257,39.9563159 10.3161889,39.999 10.2094212,39.999 L7.13584526,39.999 C6.91493136,39.999 6.73584526,39.8199139 6.73584526,39.599 C6.73584526,39.4936017 6.77744443,39.3924627 6.85160121,39.3175656 L22.0763492,23.9408235 L22.0763492,23.9408235 L6.96554081,8.68044639 C6.81010226,8.52346929 6.81134951,8.27020637 6.9683266,8.11476782 C7.04322474,8.04060377 7.14436883,7.999 7.24977299,7.999 L10.3242852,7.999 C10.4310511,7.999 10.5333863,8.04168267 10.6085104,8.11754663 Z",id:"CloseOutline-路径",fill:"currentColor",fillRule:"nonzero"}))))}function ed(t){return J.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},t,{style:Object.assign({verticalAlign:"-0.125em"},t.style),className:["antd-mobile-icon",t.className].filter(Boolean).join(" ")}),J.createElement("g",{id:"DownOutline-DownOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},J.createElement("g",null,J.createElement("rect",{id:"DownOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),J.createElement("path",{d:"M5.11219264,16.3947957 L22.6612572,34.5767382 L22.6612572,34.5767382 C23.2125856,35.1304785 24.0863155,35.1630514 24.6755735,34.6744571 L24.7825775,34.5767382 L42.8834676,16.3956061 C42.9580998,16.320643 43,16.2191697 43,16.1133896 L43,12.9866673 C43,12.7657534 42.8209139,12.5866673 42.6,12.5866673 C42.4936115,12.5866673 42.391606,12.6290496 42.316542,12.7044413 L23.7816937,31.3201933 L23.7816937,31.3201933 L5.6866816,12.7237117 C5.53262122,12.5653818 5.27937888,12.5619207 5.121049,12.7159811 C5.04365775,12.7912854 5,12.8946805 5,13.0026627 L5,16.1170064 C5,16.2206403 5.04022164,16.3202292 5.11219264,16.3947957 Z",id:"DownOutline-down",fill:"currentColor",fillRule:"nonzero"}))))}function td(t){return J.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},t,{style:Object.assign({verticalAlign:"-0.125em"},t.style),className:["antd-mobile-icon",t.className].filter(Boolean).join(" ")}),J.createElement("g",{id:"LeftOutline-LeftOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},J.createElement("g",{id:"LeftOutline-编组"},J.createElement("rect",{id:"LeftOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),J.createElement("path",{d:"M31.7053818,5.11219264 L13.5234393,22.6612572 L13.5234393,22.6612572 C12.969699,23.2125856 12.9371261,24.0863155 13.4257204,24.6755735 L13.5234393,24.7825775 L31.7045714,42.8834676 C31.7795345,42.9580998 31.8810078,43 31.9867879,43 L35.1135102,43 C35.3344241,43 35.5135102,42.8209139 35.5135102,42.6 C35.5135102,42.4936115 35.4711279,42.391606 35.3957362,42.316542 L16.7799842,23.7816937 L16.7799842,23.7816937 L35.3764658,5.6866816 C35.5347957,5.53262122 35.5382568,5.27937888 35.3841964,5.121049 C35.3088921,5.04365775 35.205497,5 35.0975148,5 L31.9831711,5 C31.8795372,5 31.7799483,5.04022164 31.7053818,5.11219264 Z",id:"LeftOutline-路径",fill:"currentColor",fillRule:"nonzero"}))))}function nd(t){return J.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},t,{style:Object.assign({verticalAlign:"-0.125em"},t.style),className:["antd-mobile-icon",t.className].filter(Boolean).join(" ")}),J.createElement("g",{id:"RightOutline-RightOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},J.createElement("g",{id:"RightOutline-RightOutlined"},J.createElement("rect",{id:"RightOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),J.createElement("path",{d:"M17.3947957,5.11219264 L35.5767382,22.6612572 L35.5767382,22.6612572 C36.1304785,23.2125856 36.1630514,24.0863155 35.6744571,24.6755735 L35.5767382,24.7825775 L17.3956061,42.8834676 C17.320643,42.9580998 17.2191697,43 17.1133896,43 L13.9866673,43 C13.7657534,43 13.5866673,42.8209139 13.5866673,42.6 C13.5866673,42.4936115 13.6290496,42.391606 13.7044413,42.316542 L32.3201933,23.7816937 L32.3201933,23.7816937 L13.7237117,5.6866816 C13.5653818,5.53262122 13.5619207,5.27937888 13.7159811,5.121049 C13.7912854,5.04365775 13.8946805,5 14.0026627,5 L17.1170064,5 C17.2206403,5 17.3202292,5.04022164 17.3947957,5.11219264 Z",id:"RightOutline-right",fill:"currentColor",fillRule:"nonzero"}))))}function rd(t){return J.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},t,{style:Object.assign({verticalAlign:"-0.125em"},t.style),className:["antd-mobile-icon",t.className].filter(Boolean).join(" ")}),J.createElement("g",{id:"SearchOutline-SearchOutline",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},J.createElement("g",{id:"SearchOutline-编组"},J.createElement("rect",{id:"SearchOutline-矩形",fill:"#FFFFFF",opacity:0,x:0,y:0,width:48,height:48}),J.createElement("path",{d:"M10.2434135,10.1505371 C17.2346315,3.28315429 28.5696354,3.28315429 35.5608534,10.1505371 C42.3159331,16.7859644 42.5440954,27.4048667 36.2453405,34.3093889 L43.7095294,41.6422249 C43.8671196,41.7970419 43.8693677,42.0502979 43.7145508,42.2078881 C43.7128864,42.2095822 43.7112069,42.2112616 43.7095126,42.2129259 L42.1705322,43.7246464 C42.014915,43.8775072 41.7655181,43.8775006 41.6099089,43.7246316 L34.0775268,36.3248916 L34.0775268,36.3248916 C27.0485579,41.8551751 16.7593545,41.4200547 10.2434135,35.0195303 C3.25219551,28.1521474 3.25219551,17.0179199 10.2434135,10.1505371 Z M12.3532001,12.2229532 C6.52718516,17.9457722 6.52718516,27.2242951 12.3532001,32.9471142 C18.1792151,38.6699332 27.6250517,38.6699332 33.4510667,32.9471142 C39.2770817,27.2242951 39.2770817,17.9457722 33.4510667,12.2229532 C27.6250517,6.50013419 18.1792151,6.50013419 12.3532001,12.2229532 Z",id:"SearchOutline-形状",fill:"currentColor",fillRule:"nonzero"}))))}const od={closeOnMaskClick:!1,closeIcon:i.createElement(Rn,null),destroyOnClose:!1,disableBodyScroll:!0,forceRender:!1,getContainer:()=>document.body,mask:!0,showCloseButton:!1,stopPropagation:["click"],visible:!1};function sd(t){const[e,n]=i.useState(t);return ne.useIsomorphicLayoutEffect(()=>{n(t)},[t]),e}function id(t,e,n){return Math.max(e,Math.min(t,n))}const ve={toVector(t,e){return t===void 0&&(t=e),Array.isArray(t)?t:[t,t]},add(t,e){return[t[0]+e[0],t[1]+e[1]]},sub(t,e){return[t[0]-e[0],t[1]-e[1]]},addTo(t,e){t[0]+=e[0],t[1]+=e[1]},subTo(t,e){t[0]-=e[0],t[1]-=e[1]}};function ki(t,e,n){return e===0||Math.abs(e)===1/0?Math.pow(t,n*5):t*e*n/(e+n*t)}function Ei(t,e,n,r=.15){return r===0?id(t,e,n):t<e?-ki(e-t,n-e,r)+e:t>n?+ki(t-n,n-e,r)+n:t}function ad(t,[e,n],[r,o]){const[[s,a],[l,c]]=t;return[Ei(e,s,a,r),Ei(n,l,c,o)]}function ld(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function cd(t){var e=ld(t,"string");return typeof e=="symbol"?e:String(e)}function Ee(t,e,n){return e=cd(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ii(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function he(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ii(Object(n),!0).forEach(function(r){Ee(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ii(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}const $i={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function _i(t){return t?t[0].toUpperCase()+t.slice(1):""}const ud=["enter","leave"];function dd(t=!1,e){return t&&!ud.includes(e)}function fd(t,e="",n=!1){const r=$i[t],o=r&&r[e]||e;return"on"+_i(t)+_i(o)+(dd(n,o)?"Capture":"")}const md=["gotpointercapture","lostpointercapture"];function pd(t){let e=t.substring(2).toLowerCase();const n=!!~e.indexOf("passive");n&&(e=e.replace("passive",""));const r=md.includes(e)?"capturecapture":"capture",o=!!~e.indexOf(r);return o&&(e=e.replace("capture","")),{device:e,capture:o,passive:n}}function hd(t,e=""){const n=$i[t],r=n&&n[e]||e;return t+r}function er(t){return"touches"in t}function Pi(t){return er(t)?"touch":"pointerType"in t?t.pointerType:"mouse"}function gd(t){return Array.from(t.touches).filter(e=>{var n,r;return e.target===t.currentTarget||((n=t.currentTarget)===null||n===void 0||(r=n.contains)===null||r===void 0?void 0:r.call(n,e.target))})}function vd(t){return t.type==="touchend"||t.type==="touchcancel"?t.changedTouches:t.targetTouches}function Fi(t){return er(t)?vd(t)[0]:t}function bo(t,e){try{const n=e.clientX-t.clientX,r=e.clientY-t.clientY,o=(e.clientX+t.clientX)/2,s=(e.clientY+t.clientY)/2,a=Math.hypot(n,r);return{angle:-(Math.atan2(n,r)*180)/Math.PI,distance:a,origin:[o,s]}}catch(n){}return null}function bd(t){return gd(t).map(e=>e.identifier)}function Mi(t,e){const[n,r]=Array.from(t.touches).filter(o=>e.includes(o.identifier));return bo(n,r)}function yo(t){const e=Fi(t);return er(t)?e.identifier:e.pointerId}function Ni(t){const e=Fi(t);return[e.clientX,e.clientY]}const Ti=40,Oi=800;function Di(t){let{deltaX:e,deltaY:n,deltaMode:r}=t;return r===1?(e*=Ti,n*=Ti):r===2&&(e*=Oi,n*=Oi),[e,n]}function yd(t){const e={};if("buttons"in t&&(e.buttons=t.buttons),"shiftKey"in t){const{shiftKey:n,altKey:r,metaKey:o,ctrlKey:s}=t;Object.assign(e,{shiftKey:n,altKey:r,metaKey:o,ctrlKey:s})}return e}function tr(t,...e){return typeof t=="function"?t(...e):t}function xd(){}function Cd(...t){return t.length===0?xd:t.length===1?t[0]:function(){let e;for(const n of t)e=n.apply(this,arguments)||e;return e}}function Ai(t,e){return Object.assign({},e,t||{})}const Sd=32;class Li{constructor(e,n,r){this.ctrl=e,this.args=n,this.key=r,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(e){this.ctrl.state[this.key]=e}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:e,shared:n,ingKey:r,args:o}=this;n[r]=e._active=e.active=e._blocked=e._force=!1,e._step=[!1,!1],e.intentional=!1,e._movement=[0,0],e._distance=[0,0],e._direction=[0,0],e._delta=[0,0],e._bounds=[[-1/0,1/0],[-1/0,1/0]],e.args=o,e.axis=void 0,e.memo=void 0,e.elapsedTime=e.timeDelta=0,e.direction=[0,0],e.distance=[0,0],e.overflow=[0,0],e._movementBound=[!1,!1],e.velocity=[0,0],e.movement=[0,0],e.delta=[0,0],e.timeStamp=0}start(e){const n=this.state,r=this.config;n._active||(this.reset(),this.computeInitial(),n._active=!0,n.target=e.target,n.currentTarget=e.currentTarget,n.lastOffset=r.from?tr(r.from,n):n.offset,n.offset=n.lastOffset,n.startTime=n.timeStamp=e.timeStamp)}computeValues(e){const n=this.state;n._values=e,n.values=this.config.transform(e)}computeInitial(){const e=this.state;e._initial=e._values,e.initial=e.values}compute(e){const{state:n,config:r,shared:o}=this;n.args=this.args;let s=0;if(e&&(n.event=e,r.preventDefault&&e.cancelable&&n.event.preventDefault(),n.type=e.type,o.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,o.locked=!!document.pointerLockElement,Object.assign(o,yd(e)),o.down=o.pressed=o.buttons%2===1||o.touches>0,s=e.timeStamp-n.timeStamp,n.timeStamp=e.timeStamp,n.elapsedTime=n.timeStamp-n.startTime),n._active){const E=n._delta.map(Math.abs);ve.addTo(n._distance,E)}this.axisIntent&&this.axisIntent(e);const[a,l]=n._movement,[c,u]=r.threshold,{_step:d,values:f}=n;if(r.hasCustomTransform?(d[0]===!1&&(d[0]=Math.abs(a)>=c&&f[0]),d[1]===!1&&(d[1]=Math.abs(l)>=u&&f[1])):(d[0]===!1&&(d[0]=Math.abs(a)>=c&&Math.sign(a)*c),d[1]===!1&&(d[1]=Math.abs(l)>=u&&Math.sign(l)*u)),n.intentional=d[0]!==!1||d[1]!==!1,!n.intentional)return;const v=[0,0];if(r.hasCustomTransform){const[E,I]=f;v[0]=d[0]!==!1?E-d[0]:0,v[1]=d[1]!==!1?I-d[1]:0}else v[0]=d[0]!==!1?a-d[0]:0,v[1]=d[1]!==!1?l-d[1]:0;this.restrictToAxis&&!n._blocked&&this.restrictToAxis(v);const b=n.offset,g=n._active&&!n._blocked||n.active;g&&(n.first=n._active&&!n.active,n.last=!n._active&&n.active,n.active=o[this.ingKey]=n._active,e&&(n.first&&("bounds"in r&&(n._bounds=tr(r.bounds,n)),this.setup&&this.setup()),n.movement=v,this.computeOffset()));const[y,p]=n.offset,[[x,S],[C,w]]=n._bounds;n.overflow=[y<x?-1:y>S?1:0,p<C?-1:p>w?1:0],n._movementBound[0]=n.overflow[0]?n._movementBound[0]===!1?n._movement[0]:n._movementBound[0]:!1,n._movementBound[1]=n.overflow[1]?n._movementBound[1]===!1?n._movement[1]:n._movementBound[1]:!1;const k=n._active?r.rubberband||[0,0]:[0,0];if(n.offset=ad(n._bounds,n.offset,k),n.delta=ve.sub(n.offset,b),this.computeMovement(),g&&(!n.last||s>Sd)){n.delta=ve.sub(n.offset,b);const E=n.delta.map(Math.abs);ve.addTo(n.distance,E),n.direction=n.delta.map(Math.sign),n._direction=n._delta.map(Math.sign),!n.first&&s>0&&(n.velocity=[E[0]/s,E[1]/s],n.timeDelta=s)}}emit(){const e=this.state,n=this.shared,r=this.config;if(e._active||this.clean(),(e._blocked||!e.intentional)&&!e._force&&!r.triggerAllEvents)return;const o=this.handler(he(he(he({},n),e),{},{[this.aliasKey]:e.values}));o!==void 0&&(e.memo=o)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function wd([t,e],n){const r=Math.abs(t),o=Math.abs(e);if(r>o&&r>n)return"x";if(o>r&&o>n)return"y"}class Bi extends Li{constructor(...e){super(...e),Ee(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=ve.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=ve.sub(this.state.offset,this.state.lastOffset)}axisIntent(e){const n=this.state,r=this.config;if(!n.axis&&e){const o=typeof r.axisThreshold=="object"?r.axisThreshold[Pi(e)]:r.axisThreshold;n.axis=wd(n._movement,o)}n._blocked=(r.lockDirection||!!r.axis)&&!n.axis||!!r.axis&&r.axis!==n.axis}restrictToAxis(e){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":e[1]=0;break;case"y":e[0]=0;break}}}const kd=t=>t,zi=.15,Vi={enabled(t=!0){return t},eventOptions(t,e,n){return he(he({},n.shared.eventOptions),t)},preventDefault(t=!1){return t},triggerAllEvents(t=!1){return t},rubberband(t=0){switch(t){case!0:return[zi,zi];case!1:return[0,0];default:return ve.toVector(t)}},from(t){if(typeof t=="function")return t;if(t!=null)return ve.toVector(t)},transform(t,e,n){const r=t||n.shared.transform;return this.hasCustomTransform=!!r,r||kd},threshold(t){return ve.toVector(t,0)}},Ed=0,jt=he(he({},Vi),{},{axis(t,e,{axis:n}){if(this.lockDirection=n==="lock",!this.lockDirection)return n},axisThreshold(t=Ed){return t},bounds(t={}){if(typeof t=="function")return s=>jt.bounds(t(s));if("current"in t)return()=>t.current;if(typeof HTMLElement=="function"&&t instanceof HTMLElement)return t;const{left:e=-1/0,right:n=1/0,top:r=-1/0,bottom:o=1/0}=t;return[[e,n],[r,o]]}}),Zi={ArrowRight:(t,e=1)=>[t*e,0],ArrowLeft:(t,e=1)=>[-1*t*e,0],ArrowUp:(t,e=1)=>[0,-1*t*e],ArrowDown:(t,e=1)=>[0,t*e]};class Id extends Bi{constructor(...e){super(...e),Ee(this,"ingKey","dragging")}reset(){super.reset();const e=this.state;e._pointerId=void 0,e._pointerActive=!1,e._keyboardActive=!1,e._preventScroll=!1,e._delayed=!1,e.swipe=[0,0],e.tap=!1,e.canceled=!1,e.cancel=this.cancel.bind(this)}setup(){const e=this.state;if(e._bounds instanceof HTMLElement){const n=e._bounds.getBoundingClientRect(),r=e.currentTarget.getBoundingClientRect(),o={left:n.left-r.left+e.offset[0],right:n.right-r.right+e.offset[0],top:n.top-r.top+e.offset[1],bottom:n.bottom-r.bottom+e.offset[1]};e._bounds=jt.bounds(o)}}cancel(){const e=this.state;e.canceled||(e.canceled=!0,e._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(e){const n=this.config,r=this.state;if(e.buttons!=null&&(Array.isArray(n.pointerButtons)?!n.pointerButtons.includes(e.buttons):n.pointerButtons!==-1&&n.pointerButtons!==e.buttons))return;const o=this.ctrl.setEventIds(e);n.pointerCapture&&e.target.setPointerCapture(e.pointerId),!(o&&o.size>1&&r._pointerActive)&&(this.start(e),this.setupPointer(e),r._pointerId=yo(e),r._pointerActive=!0,this.computeValues(Ni(e)),this.computeInitial(),n.preventScrollAxis&&Pi(e)!=="mouse"?(r._active=!1,this.setupScrollPrevention(e)):n.delay>0?(this.setupDelayTrigger(e),n.triggerAllEvents&&(this.compute(e),this.emit())):this.startPointerDrag(e))}startPointerDrag(e){const n=this.state;n._active=!0,n._preventScroll=!0,n._delayed=!1,this.compute(e),this.emit()}pointerMove(e){const n=this.state,r=this.config;if(!n._pointerActive)return;const o=yo(e);if(n._pointerId!==void 0&&o!==n._pointerId)return;const s=Ni(e);if(document.pointerLockElement===e.target?n._delta=[e.movementX,e.movementY]:(n._delta=ve.sub(s,n._values),this.computeValues(s)),ve.addTo(n._movement,n._delta),this.compute(e),n._delayed&&n.intentional){this.timeoutStore.remove("dragDelay"),n.active=!1,this.startPointerDrag(e);return}if(r.preventScrollAxis&&!n._preventScroll)if(n.axis)if(n.axis===r.preventScrollAxis||r.preventScrollAxis==="xy"){n._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(e);return}else return;this.emit()}pointerUp(e){this.ctrl.setEventIds(e);try{this.config.pointerCapture&&e.target.hasPointerCapture(e.pointerId)&&e.target.releasePointerCapture(e.pointerId)}catch(l){}const n=this.state,r=this.config;if(!n._active||!n._pointerActive)return;const o=yo(e);if(n._pointerId!==void 0&&o!==n._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(e);const[s,a]=n._distance;if(n.tap=s<=r.tapsThreshold&&a<=r.tapsThreshold,n.tap&&r.filterTaps)n._force=!0;else{const[l,c]=n._delta,[u,d]=n._movement,[f,v]=r.swipe.velocity,[b,g]=r.swipe.distance,y=r.swipe.duration;if(n.elapsedTime<y){const p=Math.abs(l/n.timeDelta),x=Math.abs(c/n.timeDelta);p>f&&Math.abs(u)>b&&(n.swipe[0]=Math.sign(l)),x>v&&Math.abs(d)>g&&(n.swipe[1]=Math.sign(c))}}this.emit()}pointerClick(e){!this.state.tap&&e.detail>0&&(e.preventDefault(),e.stopPropagation())}setupPointer(e){const n=this.config,r=n.device;n.pointerLock&&e.currentTarget.requestPointerLock(),n.pointerCapture||(this.eventStore.add(this.sharedConfig.window,r,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(e){this.state._preventScroll&&e.cancelable&&e.preventDefault()}setupScrollPrevention(e){this.state._preventScroll=!1,$d(e);const n=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",n),this.eventStore.add(this.sharedConfig.window,"touch","cancel",n),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,e)}setupDelayTrigger(e){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(e)},this.config.delay)}keyDown(e){const n=Zi[e.key];if(n){const r=this.state,o=e.shiftKey?10:e.altKey?.1:1;this.start(e),r._delta=n(this.config.keyboardDisplacement,o),r._keyboardActive=!0,ve.addTo(r._movement,r._delta),this.compute(e),this.emit()}}keyUp(e){e.key in Zi&&(this.state._keyboardActive=!1,this.setActive(),this.compute(e),this.emit())}bind(e){const n=this.config.device;e(n,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(e(n,"change",this.pointerMove.bind(this)),e(n,"end",this.pointerUp.bind(this)),e(n,"cancel",this.pointerUp.bind(this)),e("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(e("key","down",this.keyDown.bind(this)),e("key","up",this.keyUp.bind(this))),this.config.filterTaps&&e("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function $d(t){"persist"in t&&typeof t.persist=="function"&&t.persist()}const bn=typeof window!="undefined"&&window.document&&window.document.createElement;function ji(){return bn&&"ontouchstart"in window}function _d(){return ji()||bn&&window.navigator.maxTouchPoints>1}function Pd(){return bn&&"onpointerdown"in window}function Fd(){return bn&&"exitPointerLock"in window.document}function Md(){try{return"constructor"in GestureEvent}catch(t){return!1}}const Ze={isBrowser:bn,gesture:Md(),touch:ji(),touchscreen:_d(),pointer:Pd(),pointerLock:Fd()},Nd=250,Td=180,Od=.5,Dd=50,Ad=250,Ld=10,Ki={mouse:0,touch:0,pen:8},Bd=he(he({},jt),{},{device(t,e,{pointer:{touch:n=!1,lock:r=!1,mouse:o=!1}={}}){return this.pointerLock=r&&Ze.pointerLock,Ze.touch&&n?"touch":this.pointerLock?"mouse":Ze.pointer&&!o?"pointer":Ze.touch?"touch":"mouse"},preventScrollAxis(t,e,{preventScroll:n}){if(this.preventScrollDelay=typeof n=="number"?n:n||n===void 0&&t?Nd:void 0,!(!Ze.touchscreen||n===!1))return t||(n!==void 0?"y":void 0)},pointerCapture(t,e,{pointer:{capture:n=!0,buttons:r=1,keys:o=!0}={}}){return this.pointerButtons=r,this.keys=o,!this.pointerLock&&this.device==="pointer"&&n},threshold(t,e,{filterTaps:n=!1,tapsThreshold:r=3,axis:o=void 0}){const s=ve.toVector(t,n?r:o?1:0);return this.filterTaps=n,this.tapsThreshold=r,s},swipe({velocity:t=Od,distance:e=Dd,duration:n=Ad}={}){return{velocity:this.transform(ve.toVector(t)),distance:this.transform(ve.toVector(e)),duration:n}},delay(t=0){switch(t){case!0:return Td;case!1:return 0;default:return t}},axisThreshold(t){return t?he(he({},Ki),t):Ki},keyboardDisplacement(t=Ld){return t}});function Wi(t){const[e,n]=t.overflow,[r,o]=t._delta,[s,a]=t._direction;(e<0&&r>0&&s<0||e>0&&r<0&&s>0)&&(t._movement[0]=t._movementBound[0]),(n<0&&o>0&&a<0||n>0&&o<0&&a>0)&&(t._movement[1]=t._movementBound[1])}const zd=30,Vd=100;class Zd extends Li{constructor(...e){super(...e),Ee(this,"ingKey","pinching"),Ee(this,"aliasKey","da")}init(){this.state.offset=[1,0],this.state.lastOffset=[1,0],this.state._pointerEvents=new Map}reset(){super.reset();const e=this.state;e._touchIds=[],e.canceled=!1,e.cancel=this.cancel.bind(this),e.turns=0}computeOffset(){const{type:e,movement:n,lastOffset:r}=this.state;e==="wheel"?this.state.offset=ve.add(n,r):this.state.offset=[(1+n[0])*r[0],n[1]+r[1]]}computeMovement(){const{offset:e,lastOffset:n}=this.state;this.state.movement=[e[0]/n[0],e[1]-n[1]]}axisIntent(){const e=this.state,[n,r]=e._movement;if(!e.axis){const o=Math.abs(n)*zd-Math.abs(r);o<0?e.axis="angle":o>0&&(e.axis="scale")}}restrictToAxis(e){this.config.lockDirection&&(this.state.axis==="scale"?e[1]=0:this.state.axis==="angle"&&(e[0]=0))}cancel(){const e=this.state;e.canceled||setTimeout(()=>{e.canceled=!0,e._active=!1,this.compute(),this.emit()},0)}touchStart(e){this.ctrl.setEventIds(e);const n=this.state,r=this.ctrl.touchIds;if(n._active&&n._touchIds.every(s=>r.has(s))||r.size<2)return;this.start(e),n._touchIds=Array.from(r).slice(0,2);const o=Mi(e,n._touchIds);o&&this.pinchStart(e,o)}pointerStart(e){if(e.buttons!=null&&e.buttons%2!==1)return;this.ctrl.setEventIds(e),e.target.setPointerCapture(e.pointerId);const n=this.state,r=n._pointerEvents,o=this.ctrl.pointerIds;if(n._active&&Array.from(r.keys()).every(a=>o.has(a))||(r.size<2&&r.set(e.pointerId,e),n._pointerEvents.size<2))return;this.start(e);const s=bo(...Array.from(r.values()));s&&this.pinchStart(e,s)}pinchStart(e,n){const r=this.state;r.origin=n.origin,this.computeValues([n.distance,n.angle]),this.computeInitial(),this.compute(e),this.emit()}touchMove(e){if(!this.state._active)return;const n=Mi(e,this.state._touchIds);n&&this.pinchMove(e,n)}pointerMove(e){const n=this.state._pointerEvents;if(n.has(e.pointerId)&&n.set(e.pointerId,e),!this.state._active)return;const r=bo(...Array.from(n.values()));r&&this.pinchMove(e,r)}pinchMove(e,n){const r=this.state,o=r._values[1],s=n.angle-o;let a=0;Math.abs(s)>270&&(a+=Math.sign(s)),this.computeValues([n.distance,n.angle-360*a]),r.origin=n.origin,r.turns=a,r._movement=[r._values[0]/r._initial[0]-1,r._values[1]-r._initial[1]],this.compute(e),this.emit()}touchEnd(e){this.ctrl.setEventIds(e),this.state._active&&this.state._touchIds.some(n=>!this.ctrl.touchIds.has(n))&&(this.state._active=!1,this.compute(e),this.emit())}pointerEnd(e){const n=this.state;this.ctrl.setEventIds(e);try{e.target.releasePointerCapture(e.pointerId)}catch(r){}n._pointerEvents.has(e.pointerId)&&n._pointerEvents.delete(e.pointerId),n._active&&n._pointerEvents.size<2&&(n._active=!1,this.compute(e),this.emit())}gestureStart(e){e.cancelable&&e.preventDefault();const n=this.state;n._active||(this.start(e),this.computeValues([e.scale,e.rotation]),n.origin=[e.clientX,e.clientY],this.compute(e),this.emit())}gestureMove(e){if(e.cancelable&&e.preventDefault(),!this.state._active)return;const n=this.state;this.computeValues([e.scale,e.rotation]),n.origin=[e.clientX,e.clientY];const r=n._movement;n._movement=[e.scale-1,e.rotation],n._delta=ve.sub(n._movement,r),this.compute(e),this.emit()}gestureEnd(e){this.state._active&&(this.state._active=!1,this.compute(e),this.emit())}wheel(e){const n=this.config.modifierKey;n&&(Array.isArray(n)?!n.find(r=>e[r]):!e[n])||(this.state._active?this.wheelChange(e):this.wheelStart(e),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this)))}wheelStart(e){this.start(e),this.wheelChange(e)}wheelChange(e){"uv"in e||e.cancelable&&e.preventDefault();const r=this.state;r._delta=[-Di(e)[1]/Vd*r.offset[0],0],ve.addTo(r._movement,r._delta),Wi(r),this.state.origin=[e.clientX,e.clientY],this.compute(e),this.emit()}wheelEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(e){const n=this.config.device;n&&(e(n,"start",this[n+"Start"].bind(this)),e(n,"change",this[n+"Move"].bind(this)),e(n,"end",this[n+"End"].bind(this)),e(n,"cancel",this[n+"End"].bind(this)),e("lostPointerCapture","",this[n+"End"].bind(this))),this.config.pinchOnWheel&&e("wheel","",this.wheel.bind(this),{passive:!1})}}const jd=he(he({},Vi),{},{device(t,e,{shared:n,pointer:{touch:r=!1}={}}){if(n.target&&!Ze.touch&&Ze.gesture)return"gesture";if(Ze.touch&&r)return"touch";if(Ze.touchscreen){if(Ze.pointer)return"pointer";if(Ze.touch)return"touch"}},bounds(t,e,{scaleBounds:n={},angleBounds:r={}}){const o=a=>{const l=Ai(tr(n,a),{min:-1/0,max:1/0});return[l.min,l.max]},s=a=>{const l=Ai(tr(r,a),{min:-1/0,max:1/0});return[l.min,l.max]};return typeof n!="function"&&typeof r!="function"?[o(),s()]:a=>[o(a),s(a)]},threshold(t,e,n){return this.lockDirection=n.axis==="lock",ve.toVector(t,this.lockDirection?[.1,3]:0)},modifierKey(t){return t===void 0?"ctrlKey":t},pinchOnWheel(t=!0){return t}});he(he({},jt),{},{mouseOnly:(t=!0)=>t});class Kd extends Bi{constructor(...e){super(...e),Ee(this,"ingKey","wheeling")}wheel(e){this.state._active||this.start(e),this.wheelChange(e),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this))}wheelChange(e){const n=this.state;n._delta=Di(e),ve.addTo(n._movement,n._delta),Wi(n),this.compute(e),this.emit()}wheelEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(e){e("wheel","",this.wheel.bind(this))}}const Wd=jt;he(he({},jt),{},{mouseOnly:(t=!0)=>t});const xo=new Map,Co=new Map;function So(t){xo.set(t.key,t.engine),Co.set(t.key,t.resolver)}const Hi={key:"drag",engine:Id,resolver:Bd},Hd={key:"pinch",engine:Zd,resolver:jd},Ud={key:"wheel",engine:Kd,resolver:Wd};function qd(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,s;for(s=0;s<r.length;s++)o=r[s],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}function Yd(t,e){if(t==null)return{};var n=qd(t,e),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(o=0;o<s.length;o++)r=s[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}const Gd={target(t){if(t)return()=>"current"in t?t.current:t},enabled(t=!0){return t},window(t=Ze.isBrowser?window:void 0){return t},eventOptions({passive:t=!0,capture:e=!1}={}){return{passive:t,capture:e}},transform(t){return t}},Xd=["target","eventOptions","window","enabled","transform"];function nr(t={},e){const n={};for(const[r,o]of Object.entries(e))switch(typeof o){case"function":n[r]=o.call(n,t[r],r,t);break;case"object":n[r]=nr(t[r],o);break;case"boolean":o&&(n[r]=t[r]);break}return n}function Jd(t,e,n={}){const r=t,{target:o,eventOptions:s,window:a,enabled:l,transform:c}=r,u=Yd(r,Xd);if(n.shared=nr({target:o,eventOptions:s,window:a,enabled:l,transform:c},Gd),e){const d=Co.get(e);n[e]=nr(he({shared:n.shared},u),d)}else for(const d in u){const f=Co.get(d);f&&(n[d]=nr(he({shared:n.shared},u[d]),f))}return n}class Ui{constructor(e,n){Ee(this,"_listeners",new Set),this._ctrl=e,this._gestureKey=n}add(e,n,r,o,s){const a=this._listeners,l=hd(n,r),c=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},u=he(he({},c),s);e.addEventListener(l,o,u);const d=()=>{e.removeEventListener(l,o,u),a.delete(d)};return a.add(d),d}clean(){this._listeners.forEach(e=>e()),this._listeners.clear()}}class Qd{constructor(){Ee(this,"_timeouts",new Map)}add(e,n,r=140,...o){this.remove(e),this._timeouts.set(e,window.setTimeout(n,r,...o))}remove(e){const n=this._timeouts.get(e);n&&window.clearTimeout(n)}clean(){this._timeouts.forEach(e=>void window.clearTimeout(e)),this._timeouts.clear()}}class Rd{constructor(e){Ee(this,"gestures",new Set),Ee(this,"_targetEventStore",new Ui(this)),Ee(this,"gestureEventStores",{}),Ee(this,"gestureTimeoutStores",{}),Ee(this,"handlers",{}),Ee(this,"config",{}),Ee(this,"pointerIds",new Set),Ee(this,"touchIds",new Set),Ee(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),e1(this,e)}setEventIds(e){if(er(e))return this.touchIds=new Set(bd(e)),this.touchIds;if("pointerId"in e)return e.type==="pointerup"||e.type==="pointercancel"?this.pointerIds.delete(e.pointerId):e.type==="pointerdown"&&this.pointerIds.add(e.pointerId),this.pointerIds}applyHandlers(e,n){this.handlers=e,this.nativeHandlers=n}applyConfig(e,n){this.config=Jd(e,n,this.config)}clean(){this._targetEventStore.clean();for(const e of this.gestures)this.gestureEventStores[e].clean(),this.gestureTimeoutStores[e].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...e){const n=this.config.shared,r={};let o;if(!(n.target&&(o=n.target(),!o))){if(n.enabled){for(const a of this.gestures){const l=this.config[a],c=qi(r,l.eventOptions,!!o);if(l.enabled){const u=xo.get(a);new u(this,e,a).bind(c)}}const s=qi(r,n.eventOptions,!!o);for(const a in this.nativeHandlers)s(a,"",l=>this.nativeHandlers[a](he(he({},this.state.shared),{},{event:l,args:e})),void 0,!0)}for(const s in r)r[s]=Cd(...r[s]);if(!o)return r;for(const s in r){const{device:a,capture:l,passive:c}=pd(s);this._targetEventStore.add(o,a,"",r[s],{capture:l,passive:c})}}}}function Kt(t,e){t.gestures.add(e),t.gestureEventStores[e]=new Ui(t,e),t.gestureTimeoutStores[e]=new Qd}function e1(t,e){e.drag&&Kt(t,"drag"),e.wheel&&Kt(t,"wheel"),e.scroll&&Kt(t,"scroll"),e.move&&Kt(t,"move"),e.pinch&&Kt(t,"pinch"),e.hover&&Kt(t,"hover")}const qi=(t,e,n)=>(r,o,s,a={},l=!1)=>{var c,u;const d=(c=a.capture)!==null&&c!==void 0?c:e.capture,f=(u=a.passive)!==null&&u!==void 0?u:e.passive;let v=l?r:fd(r,o,d);n&&f&&(v+="Passive"),t[v]=t[v]||[],t[v].push(s)},t1=/^on(Drag|Wheel|Scroll|Move|Pinch|Hover)/;function n1(t){const e={},n={},r=new Set;for(let o in t)t1.test(o)?(r.add(RegExp.lastMatch),n[o]=t[o]):e[o]=t[o];return[n,e,r]}function Wt(t,e,n,r,o,s){if(!t.has(n)||!xo.has(r))return;const a=n+"Start",l=n+"End",c=u=>{let d;return u.first&&a in e&&e[a](u),n in e&&(d=e[n](u)),u.last&&l in e&&e[l](u),d};o[r]=c,s[r]=s[r]||{}}function r1(t,e){const[n,r,o]=n1(t),s={};return Wt(o,n,"onDrag","drag",s,e),Wt(o,n,"onWheel","wheel",s,e),Wt(o,n,"onScroll","scroll",s,e),Wt(o,n,"onPinch","pinch",s,e),Wt(o,n,"onMove","move",s,e),Wt(o,n,"onHover","hover",s,e),{handlers:s,config:e,nativeHandlers:r}}function wo(t,e={},n,r){const o=i.useMemo(()=>new Rd(t),[]);if(o.applyHandlers(t,r),o.applyConfig(e,n),i.useEffect(o.effect.bind(o)),i.useEffect(()=>o.clean.bind(o),[]),e.target===void 0)return o.bind.bind(o)}function rr(t,e){return So(Hi),wo({drag:t},e||{},"drag")}function o1(t,e){return So(Ud),wo({wheel:t},e||{},"wheel")}function s1(t){return t.forEach(So),function(n,r){const{handlers:o,nativeHandlers:s,config:a}=r1(n,r||{});return wo(o,a,void 0,s)}}const or="adm-popup",i1=Object.assign(Object.assign({},od),{closeOnSwipe:!1,position:"bottom"}),Ht=t=>{const{locale:e,popup:n={}}=Pe(),r=re(i1,n,t),o=H(`${or}-body`,r.bodyClassName,`${or}-body-position-${r.position}`),[s,a]=i.useState(r.visible),l=i.useRef(null);Ss(l,r.disableBodyScroll&&s?"strict":!1),ne.useIsomorphicLayoutEffect(()=>{r.visible&&a(!0)},[r.visible]);const c=ne.useUnmountedRef(),{percent:u}=Ve({percent:r.visible?0:100,config:{precision:.1,mass:.4,tension:300,friction:30},onRest:()=>{var b,g;c.current||(a(r.visible),r.visible?(b=r.afterShow)===null||b===void 0||b.call(r):(g=r.afterClose)===null||g===void 0||g.call(r))}}),d=rr(({swipe:[,b]})=>{var g;r.closeOnSwipe&&(b===1&&r.position==="bottom"||b===-1&&r.position==="top")&&((g=r.onClose)===null||g===void 0||g.call(r))},{axis:"y",enabled:["top","bottom"].includes(r.position)}),f=sd(s&&r.visible),v=Si(r.stopPropagation,Y(r,i.createElement("div",Object.assign({className:or,onClick:r.onClick,style:{display:s?void 0:"none",touchAction:["top","bottom"].includes(r.position)?"none":"auto"}},d()),r.mask&&i.createElement(Qn,{visible:f,forceRender:r.forceRender,destroyOnClose:r.destroyOnClose,onMaskClick:b=>{var g,y;(g=r.onMaskClick)===null||g===void 0||g.call(r,b),r.closeOnMaskClick&&((y=r.onClose)===null||y===void 0||y.call(r))},className:r.maskClassName,style:r.maskStyle,disableBodyScroll:!1,stopPropagation:r.stopPropagation}),i.createElement(ke.div,{className:o,style:Object.assign(Object.assign({},r.bodyStyle),{pointerEvents:u.to(b=>b===0?"unset":"none"),transform:u.to(b=>r.position==="bottom"?`translate(0, ${b}%)`:r.position==="top"?`translate(0, -${b}%)`:r.position==="left"?`translate(-${b}%, 0)`:r.position==="right"?`translate(${b}%, 0)`:"none")}),ref:l},r.showCloseButton&&i.createElement("a",{className:H(`${or}-close-icon`,"adm-plain-anchor"),onClick:()=>{var b;(b=r.onClose)===null||b===void 0||b.call(r)},role:"button","aria-label":e.common.close},r.closeIcon),r.children))));return i.createElement(Jn,{active:s,forceRender:r.forceRender,destroyOnClose:r.destroyOnClose},Xn(r.getContainer,v))},Yi="adm-safe-area",yn=t=>Y(t,i.createElement("div",{className:H(Yi,`${Yi}-position-${t.position}`)})),sr=Object.assign({},Hl),{version:a1,render:l1,unmountComponentAtNode:c1}=sr;let ir;try{Number((a1||"").split(".")[0])>=18&&sr.createRoot&&(ir=sr.createRoot)}catch(t){}function Gi(t){const{__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:e}=sr;e&&typeof e=="object"&&(e.usingClientEntryPoint=t)}const ar="__antd_mobile_root__";function u1(t,e){l1(t,e)}function d1(t,e){Gi(!0);const n=e[ar]||ir(e);Gi(!1),n.render(t),e[ar]=n}function f1(t,e){if(ir){d1(t,e);return}u1(t,e)}function m1(t){return c1(t)}function p1(t){return yt(this,void 0,void 0,function*(){return Promise.resolve().then(()=>{var e;(e=t[ar])===null||e===void 0||e.unmount(),delete t[ar]})})}function h1(t){return ir?p1(t):m1(t)}function ko(t){const e=document.createElement("div");document.body.appendChild(e);function n(){h1(e)&&e.parentNode&&e.parentNode.removeChild(e)}return f1(t,e),n}function xn(t){const e=i.forwardRef((o,s)=>{const[a,l]=i.useState(!1),c=i.useRef(!1),[u,d]=i.useState(t),f=i.useRef(0);i.useEffect(()=>{c.current?b():l(!0)},[]);function v(){var g,y;c.current=!0,l(!1),(y=(g=u.props).onClose)===null||y===void 0||y.call(g)}function b(){var g,y;r(),(y=(g=u.props).afterClose)===null||y===void 0||y.call(g)}return i.useImperativeHandle(s,()=>({close:v,replace:g=>{var y,p;f.current++,(p=(y=u.props).afterClose)===null||p===void 0||p.call(y),d(g)}})),i.cloneElement(u,Object.assign(Object.assign({},u.props),{key:f.current,visible:a,onClose:v,afterClose:b}))}),n=i.createRef(),r=ko(i.createElement(e,{ref:n}));return{close:()=>yt(this,void 0,void 0,function*(){var o,s,a;n.current?(a=n.current)===null||a===void 0||a.close():(r(),(s=(o=t.props).afterClose)===null||s===void 0||s.call(o))}),replace:o=>{var s;(s=n.current)===null||s===void 0||s.replace(o)},isRendered:()=>!!n.current}}const _e="adm-action-sheet",g1={visible:!1,actions:[],cancelText:"",closeOnAction:!1,closeOnMaskClick:!0,safeArea:!0,destroyOnClose:!1,forceRender:!1},Xi=t=>{const e=re(g1,t),{styles:n}=e;return i.createElement(Ht,{visible:e.visible,onMaskClick:()=>{var r,o;(r=e.onMaskClick)===null||r===void 0||r.call(e),e.closeOnMaskClick&&((o=e.onClose)===null||o===void 0||o.call(e))},afterClose:e.afterClose,className:H(`${_e}-popup`,e.popupClassName),style:e.popupStyle,getContainer:e.getContainer,destroyOnClose:e.destroyOnClose,forceRender:e.forceRender,bodyStyle:n==null?void 0:n.body,maskStyle:n==null?void 0:n.mask},Y(e,i.createElement("div",{className:_e},e.extra&&i.createElement("div",{className:`${_e}-extra`},e.extra),i.createElement("div",{className:`${_e}-button-list`},e.actions.map((r,o)=>i.createElement("div",{key:r.key,className:`${_e}-button-item-wrapper`},i.createElement("a",{className:H("adm-plain-anchor",`${_e}-button-item`,{[`${_e}-button-item-danger`]:r.danger,[`${_e}-button-item-disabled`]:r.disabled,[`${_e}-button-item-bold`]:r.bold}),onClick:()=>{var s,a,l;(s=r.onClick)===null||s===void 0||s.call(r),(a=e.onAction)===null||a===void 0||a.call(e,r,o),e.closeOnAction&&((l=e.onClose)===null||l===void 0||l.call(e))},role:"option","aria-disabled":r.disabled},i.createElement("div",{className:`${_e}-button-item-name`},r.text),r.description&&i.createElement("div",{className:`${_e}-button-item-description`},r.description))))),e.cancelText&&i.createElement("div",{className:`${_e}-cancel`,role:"option","aria-label":e.cancelText},i.createElement("div",{className:`${_e}-button-item-wrapper`},i.createElement("a",{className:H("adm-plain-anchor",`${_e}-button-item`),onClick:e.onClose},i.createElement("div",{className:`${_e}-button-item-name`},e.cancelText)))),e.safeArea&&i.createElement(yn,{position:"bottom"}))))};function v1(t){return xn(i.createElement(Xi,Object.assign({},t)))}const b1=we(Xi,{show:v1}),Ji="adm-auto-center",y1=t=>Y(t,i.createElement("div",{className:Ji},i.createElement("div",{className:`${Ji}-content`},t.children)));var kt={},Qi;function x1(){if(Qi)return kt;Qi=1;var t=kt&&kt.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(kt,"__esModule",{value:!0}),kt.staged=void 0;const e=t(i);function n(s){return typeof s=="function"?e.default.createElement(r,{stage:s}):s}function r(s){const a=s.stage();return n(a)}function o(s){return function(l,c){const u=s(l,c);return n(u)}}return kt.staged=o,kt}var Ri=x1();function Et(t){return typeof t=="number"?`${t}px`:t}const C1=t=>{const e=i.useRef(null),[n]=ne.useInViewport(e);return i.useEffect(()=>{n&&t.onActive()},[n]),i.createElement("div",{ref:e})},Eo=ne.createUpdateEffect(ne.useIsomorphicLayoutEffect),S1=()=>i.createElement("svg",{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M41.396 6.234c1.923 0 3.487 1.574 3.487 3.505v29.14c0 1.937-1.568 3.51-3.491 3.51H6.604c-1.923 0-3.487-1.573-3.487-3.51V9.745c0-1.936 1.564-3.51 3.487-3.51Zm0 2.847H6.604c-.355 0-.654.3-.654.658V34.9l5.989-8.707a2.373 2.373 0 0 1 1.801-1.005 2.405 2.405 0 0 1 1.933.752l4.182 4.525 7.58-11.005a2.374 2.374 0 0 1 1.96-1.01c.79 0 1.532.38 1.966 1.01L42.05 34.89V9.74a.664.664 0 0 0-.654-.658Zm-28.305 2.763a3.119 3.119 0 0 1 3.117 3.117 3.119 3.119 0 0 1-3.117 3.117 3.122 3.122 0 0 1-3.117-3.117 3.119 3.119 0 0 1 3.117-3.117Z",fill:"#DBDBDB",fillRule:"nonzero"})),w1=()=>i.createElement("svg",{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M19.233 6.233 17.42 9.08l-10.817.001a.665.665 0 0 0-.647.562l-.007.096V34.9l5.989-8.707a2.373 2.373 0 0 1 1.801-1.005 2.415 2.415 0 0 1 1.807.625l.126.127 4.182 4.525 2.267-3.292 5.461 7.841-4.065 7.375H6.604c-1.86 0-3.382-1.47-3.482-3.317l-.005-.192V9.744c0-1.872 1.461-3.405 3.296-3.505l.19-.005h12.63Zm22.163 0c1.86 0 3.382 1.472 3.482 3.314l.005.192v29.14a3.507 3.507 0 0 1-3.3 3.505l-.191.006H27.789l3.63-6.587.06-.119a1.87 1.87 0 0 0-.163-1.853l-6.928-9.949 3.047-4.422a2.374 2.374 0 0 1 1.96-1.01 2.4 2.4 0 0 1 1.86.87l.106.14L42.05 34.89V9.74a.664.664 0 0 0-.654-.658H21.855l1.812-2.848h17.73Zm-28.305 5.611c.794 0 1.52.298 2.07.788l-.843 1.325-.067.114a1.87 1.87 0 0 0 .11 1.959l.848 1.217c-.556.515-1.3.83-2.118.83a3.122 3.122 0 0 1-3.117-3.116 3.119 3.119 0 0 1 3.117-3.117Z",fill:"#DBDBDB",fillRule:"nonzero"})),lr="adm-image",k1={fit:"fill",placeholder:i.createElement("div",{className:`${lr}-tip`},i.createElement(S1,null)),fallback:i.createElement("div",{className:`${lr}-tip`},i.createElement(w1,null)),lazy:!1,draggable:!1},ea=Ri.staged(t=>{const e=re(k1,t),[n,r]=i.useState(!1),[o,s]=i.useState(!1),a=i.useRef(null),l=i.useRef(null);let c=e.src,u=e.srcSet;const[d,f]=i.useState(!e.lazy);c=d?e.src:void 0,u=d?e.srcSet:void 0,Eo(()=>{r(!1),s(!1)},[c]),i.useEffect(()=>{var g;!((g=l.current)===null||g===void 0)&&g.complete&&r(!0)},[]);function v(){if(o)return i.createElement(i.Fragment,null,e.fallback);const g=i.createElement("img",{ref:l,id:e.id,className:`${lr}-img`,src:c,alt:e.alt,onClick:e.onClick,onLoad:y=>{var p;r(!0),(p=e.onLoad)===null||p===void 0||p.call(e,y)},onError:y=>{var p;s(!0),(p=e.onError)===null||p===void 0||p.call(e,y)},style:{objectFit:e.fit,display:n?"block":"none"},crossOrigin:e.crossOrigin,decoding:e.decoding,loading:e.loading,referrerPolicy:e.referrerPolicy,sizes:e.sizes,srcSet:u,useMap:e.useMap,draggable:e.draggable});return i.createElement(i.Fragment,null,!n&&e.placeholder,g)}const b={};return e.width&&(b["--width"]=Et(e.width),b.width=Et(e.width)),e.height&&(b["--height"]=Et(e.height),b.height=Et(e.height)),Y(e,i.createElement("div",{ref:a,className:lr,style:b,onClick:e.onContainerClick},e.lazy&&!d&&i.createElement(C1,{onActive:()=>{f(!0)}}),v()))}),Ut="adm-badge",ta=i.createElement(i.Fragment,null),na=we(t=>{const{content:e,color:n,children:r}=t,o=e===ta,s=H(Ut,{[`${Ut}-fixed`]:!!r,[`${Ut}-dot`]:o,[`${Ut}-bordered`]:t.bordered}),a=e||e===0?Y(t,i.createElement("div",{className:s,style:{"--color":n}},!o&&i.createElement("div",{className:`${Ut}-content`},e))):null;return r?i.createElement("div",{className:H(`${Ut}-wrapper`,t.wrapperClassName),style:t.wrapperStyle},r,a):a},{dot:ta}),E1="adm-dot-loading",I1={default:"var(--adm-color-weak)",primary:"var(--adm-color-primary)",white:"var(--adm-color-white)"},$1={color:"default"},_1=i.memo(t=>{var e;const n=re($1,t);return Y(n,i.createElement("div",{style:{color:(e=I1[n.color])!==null&&e!==void 0?e:n.color},className:H("adm-loading",E1)},i.createElement("svg",{height:"1em",viewBox:"0 0 100 40",style:{verticalAlign:"-0.125em"}},i.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(-100.000000, -71.000000)"},i.createElement("g",{transform:"translate(95.000000, 71.000000)"},i.createElement("g",{transform:"translate(5.000000, 0.000000)"},[0,1,2].map(r=>i.createElement("rect",{key:r,fill:"currentColor",x:20+r*26,y:"16",width:"8",height:"8",rx:"2"},i.createElement("animate",{attributeName:"y",from:"16",to:"16",dur:"2s",begin:`${r*.2}s`,repeatCount:"indefinite",values:"16; 6; 26; 16; 16",keyTimes:"0; 0.1; 0.3; 0.4; 1"}))))))))))});function P1(t){return!!t&&typeof t=="object"&&typeof t.then=="function"}function F1(){return Ot?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1}const je="adm-button",M1={color:"default",fill:"solid",block:!1,loading:!1,loadingIcon:i.createElement(_1,{color:"currentColor"}),type:"button",shape:"default",size:"middle"},ot=i.forwardRef((t,e)=>{const n=re(M1,t),[r,o]=i.useState(!1),s=i.useRef(null),a=n.loading==="auto"?r:n.loading,l=n.disabled||a;i.useImperativeHandle(e,()=>({get nativeElement(){return s.current}}));const c=u=>yt(void 0,void 0,void 0,function*(){if(!n.onClick)return;const d=n.onClick(u);if(P1(d))try{o(!0),yield d,o(!1)}catch(f){throw o(!1),f}});return Y(n,i.createElement("button",{ref:s,type:n.type,onClick:c,className:H(je,{[`${je}-${n.color}`]:n.color,[`${je}-block`]:n.block,[`${je}-disabled`]:l,[`${je}-fill-outline`]:n.fill==="outline",[`${je}-fill-none`]:n.fill==="none",[`${je}-mini`]:n.size==="mini",[`${je}-small`]:n.size==="small",[`${je}-large`]:n.size==="large",[`${je}-loading`]:a},`${je}-shape-${n.shape}`),disabled:l,onMouseDown:n.onMouseDown,onMouseUp:n.onMouseUp,onTouchStart:n.onTouchStart,onTouchEnd:n.onTouchEnd},a?i.createElement("div",{className:`${je}-loading-wrapper`},n.loadingIcon,n.loadingText):i.createElement("span",null,n.children)))});var cr={exports:{}},N1=cr.exports,ra;function T1(){return ra||(ra=1,function(t,e){(function(n,r){t.exports=r()})(N1,function(){var n=1e3,r=6e4,o=36e5,s="millisecond",a="second",l="minute",c="hour",u="day",d="week",f="month",v="quarter",b="year",g="date",y="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(_){var F=["th","st","nd","rd"],P=_%100;return"["+_+(F[(P-20)%10]||F[P]||F[0])+"]"}},C=function(_,F,P){var B=String(_);return!B||B.length>=F?_:""+Array(F+1-B.length).join(P)+_},w={s:C,z:function(_){var F=-_.utcOffset(),P=Math.abs(F),B=Math.floor(P/60),O=P%60;return(F<=0?"+":"-")+C(B,2,"0")+":"+C(O,2,"0")},m:function _(F,P){if(F.date()<P.date())return-_(P,F);var B=12*(P.year()-F.year())+(P.month()-F.month()),O=F.clone().add(B,f),V=P-O<0,j=F.clone().add(B+(V?-1:1),f);return+(-(B+(P-O)/(V?O-j:j-O))||0)},a:function(_){return _<0?Math.ceil(_)||0:Math.floor(_)},p:function(_){return{M:f,y:b,w:d,d:u,D:g,h:c,m:l,s:a,ms:s,Q:v}[_]||String(_||"").toLowerCase().replace(/s$/,"")},u:function(_){return _===void 0}},k="en",E={};E[k]=S;var I="$isDayjsObject",T=function(_){return _ instanceof U||!(!_||!_[I])},Z=function _(F,P,B){var O;if(!F)return k;if(typeof F=="string"){var V=F.toLowerCase();E[V]&&(O=V),P&&(E[V]=P,O=V);var j=F.split("-");if(!O&&j.length>1)return _(j[0])}else{var A=F.name;E[A]=F,O=A}return!B&&O&&(k=O),O||!B&&k},M=function(_,F){if(T(_))return _.clone();var P=typeof F=="object"?F:{};return P.date=_,P.args=arguments,new U(P)},N=w;N.l=Z,N.i=T,N.w=function(_,F){return M(_,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var U=function(){function _(P){this.$L=Z(P.locale,null,!0),this.parse(P),this.$x=this.$x||P.x||{},this[I]=!0}var F=_.prototype;return F.parse=function(P){this.$d=function(B){var O=B.date,V=B.utc;if(O===null)return new Date(NaN);if(N.u(O))return new Date;if(O instanceof Date)return new Date(O);if(typeof O=="string"&&!/Z$/i.test(O)){var j=O.match(p);if(j){var A=j[2]-1||0,W=(j[7]||"0").substring(0,3);return V?new Date(Date.UTC(j[1],A,j[3]||1,j[4]||0,j[5]||0,j[6]||0,W)):new Date(j[1],A,j[3]||1,j[4]||0,j[5]||0,j[6]||0,W)}}return new Date(O)}(P),this.init()},F.init=function(){var P=this.$d;this.$y=P.getFullYear(),this.$M=P.getMonth(),this.$D=P.getDate(),this.$W=P.getDay(),this.$H=P.getHours(),this.$m=P.getMinutes(),this.$s=P.getSeconds(),this.$ms=P.getMilliseconds()},F.$utils=function(){return N},F.isValid=function(){return this.$d.toString()!==y},F.isSame=function(P,B){var O=M(P);return this.startOf(B)<=O&&O<=this.endOf(B)},F.isAfter=function(P,B){return M(P)<this.startOf(B)},F.isBefore=function(P,B){return this.endOf(B)<M(P)},F.$g=function(P,B,O){return N.u(P)?this[B]:this.set(O,P)},F.unix=function(){return Math.floor(this.valueOf()/1e3)},F.valueOf=function(){return this.$d.getTime()},F.startOf=function(P,B){var O=this,V=!!N.u(B)||B,j=N.p(P),A=function(K,G){var oe=N.w(O.$u?Date.UTC(O.$y,G,K):new Date(O.$y,G,K),O);return V?oe:oe.endOf(u)},W=function(K,G){return N.w(O.toDate()[K].apply(O.toDate("s"),(V?[0,0,0,0]:[23,59,59,999]).slice(G)),O)},q=this.$W,R=this.$M,te=this.$D,Ne="set"+(this.$u?"UTC":"");switch(j){case b:return V?A(1,0):A(31,11);case f:return V?A(1,R):A(0,R+1);case d:var X=this.$locale().weekStart||0,ue=(q<X?q+7:q)-X;return A(V?te-ue:te+(6-ue),R);case u:case g:return W(Ne+"Hours",0);case c:return W(Ne+"Minutes",1);case l:return W(Ne+"Seconds",2);case a:return W(Ne+"Milliseconds",3);default:return this.clone()}},F.endOf=function(P){return this.startOf(P,!1)},F.$set=function(P,B){var O,V=N.p(P),j="set"+(this.$u?"UTC":""),A=(O={},O[u]=j+"Date",O[g]=j+"Date",O[f]=j+"Month",O[b]=j+"FullYear",O[c]=j+"Hours",O[l]=j+"Minutes",O[a]=j+"Seconds",O[s]=j+"Milliseconds",O)[V],W=V===u?this.$D+(B-this.$W):B;if(V===f||V===b){var q=this.clone().set(g,1);q.$d[A](W),q.init(),this.$d=q.set(g,Math.min(this.$D,q.daysInMonth())).$d}else A&&this.$d[A](W);return this.init(),this},F.set=function(P,B){return this.clone().$set(P,B)},F.get=function(P){return this[N.p(P)]()},F.add=function(P,B){var O,V=this;P=Number(P);var j=N.p(B),A=function(R){var te=M(V);return N.w(te.date(te.date()+Math.round(R*P)),V)};if(j===f)return this.set(f,this.$M+P);if(j===b)return this.set(b,this.$y+P);if(j===u)return A(1);if(j===d)return A(7);var W=(O={},O[l]=r,O[c]=o,O[a]=n,O)[j]||1,q=this.$d.getTime()+P*W;return N.w(q,this)},F.subtract=function(P,B){return this.add(-1*P,B)},F.format=function(P){var B=this,O=this.$locale();if(!this.isValid())return O.invalidDate||y;var V=P||"YYYY-MM-DDTHH:mm:ssZ",j=N.z(this),A=this.$H,W=this.$m,q=this.$M,R=O.weekdays,te=O.months,Ne=O.meridiem,X=function(G,oe,ge,Ce){return G&&(G[oe]||G(B,V))||ge[oe].slice(0,Ce)},ue=function(G){return N.s(A%12||12,G,"0")},K=Ne||function(G,oe,ge){var Ce=G<12?"AM":"PM";return ge?Ce.toLowerCase():Ce};return V.replace(x,function(G,oe){return oe||function(ge){switch(ge){case"YY":return String(B.$y).slice(-2);case"YYYY":return N.s(B.$y,4,"0");case"M":return q+1;case"MM":return N.s(q+1,2,"0");case"MMM":return X(O.monthsShort,q,te,3);case"MMMM":return X(te,q);case"D":return B.$D;case"DD":return N.s(B.$D,2,"0");case"d":return String(B.$W);case"dd":return X(O.weekdaysMin,B.$W,R,2);case"ddd":return X(O.weekdaysShort,B.$W,R,3);case"dddd":return R[B.$W];case"H":return String(A);case"HH":return N.s(A,2,"0");case"h":return ue(1);case"hh":return ue(2);case"a":return K(A,W,!0);case"A":return K(A,W,!1);case"m":return String(W);case"mm":return N.s(W,2,"0");case"s":return String(B.$s);case"ss":return N.s(B.$s,2,"0");case"SSS":return N.s(B.$ms,3,"0");case"Z":return j}return null}(G)||j.replace(":","")})},F.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},F.diff=function(P,B,O){var V,j=this,A=N.p(B),W=M(P),q=(W.utcOffset()-this.utcOffset())*r,R=this-W,te=function(){return N.m(j,W)};switch(A){case b:V=te()/12;break;case f:V=te();break;case v:V=te()/3;break;case d:V=(R-q)/6048e5;break;case u:V=(R-q)/864e5;break;case c:V=R/o;break;case l:V=R/r;break;case a:V=R/n;break;default:V=R}return O?V:N.a(V)},F.daysInMonth=function(){return this.endOf(f).$D},F.$locale=function(){return E[this.$L]},F.locale=function(P,B){if(!P)return this.$L;var O=this.clone(),V=Z(P,B,!0);return V&&(O.$L=V),O},F.clone=function(){return N.w(this.$d,this)},F.toDate=function(){return new Date(this.valueOf())},F.toJSON=function(){return this.isValid()?this.toISOString():null},F.toISOString=function(){return this.$d.toISOString()},F.toString=function(){return this.$d.toUTCString()},_}(),z=U.prototype;return M.prototype=z,[["$ms",s],["$s",a],["$m",l],["$H",c],["$W",u],["$M",f],["$y",b],["$D",g]].forEach(function(_){z[_[1]]=function(F){return this.$g(F,_[0],_[1])}}),M.extend=function(_,F){return _.$i||(_(F,U,M),_.$i=!0),M},M.locale=Z,M.isDayjs=T,M.unix=function(_){return M(1e3*_)},M.en=E[k],M.Ls=E,M.p={},M})}(cr)),cr.exports}var O1=T1();const pe=xt(O1),oa=()=>i.createElement("svg",{height:"1em",viewBox:"0 0 44 44"},i.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(-100.000000, -22.000000)"},i.createElement("g",{transform:"translate(100.000000, 22.000000)"},i.createElement("rect",{x:"0",y:"0",width:"44",height:"44"}),i.createElement("g",{transform:"translate(12.000000, 4.000000)",fill:"currentColor",fillRule:"nonzero"},i.createElement("path",{d:"M19.4833058,2.71985611 L3.53051139,17.0699744 C3.0173831,17.5315665 2.97522952,18.3220903 3.43630803,18.8357433 L3.43630796,18.8357432 C3.46601289,18.8688164 3.49745845,18.9002801 3.53051133,18.9300007 L19.4833057,33.2801611 C20.1234001,33.8559077 20.1759552,34.8420707 19.6007967,35.4827774 C19.0256382,36.1235263 18.0404824,36.1761351 17.400388,35.6003885 L1.44759367,21.2502703 L1.4475933,21.25027 C1.33208743,21.1463692 1.22220259,21.036372 1.11840792,20.920748 C-0.49302969,19.1256817 -0.345639536,16.3628317 1.4475933,14.7497465 L17.4003877,0.399628282 C18.0404821,-0.176160428 19.0256378,-0.123509422 19.6007963,0.517239417 C20.1759548,1.1579461 20.1233997,2.14410915 19.4833053,2.7198557 L19.4833058,2.71985611 Z"})))))),sa=()=>i.createElement("svg",{height:"1em",viewBox:"0 0 44 44"},i.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(-24.000000, -22.000000)"},i.createElement("g",{transform:"translate(24.000000, 22.000000)"},i.createElement("rect",{x:"0",y:"0",width:"44",height:"44"}),i.createElement("g",{transform:"translate(7.000000, 4.000000)",fill:"currentColor",fillRule:"nonzero"},i.createElement("path",{d:"M19.4833058,2.71985611 L3.53051139,17.0699744 C3.0173831,17.5315665 2.97522952,18.3220903 3.43630803,18.8357433 L3.43630796,18.8357432 C3.46601289,18.8688164 3.49745845,18.9002801 3.53051133,18.9300007 L19.4833057,33.2801611 C20.1234001,33.8559077 20.1759552,34.8420707 19.6007967,35.4827774 C19.0256382,36.1235263 18.0404824,36.1761351 17.400388,35.6003885 L1.44759367,21.2502703 L1.4475933,21.25027 C1.33208743,21.1463692 1.22220259,21.036372 1.11840792,20.920748 C-0.49302969,19.1256817 -0.345639536,16.3628317 1.4475933,14.7497465 L17.4003877,0.399628282 C18.0404821,-0.176160428 19.0256378,-0.123509422 19.6007963,0.517239417 C20.1759548,1.1579461 20.1233997,2.14410915 19.4833053,2.7198557 L19.4833058,2.71985611 Z"}),i.createElement("path",{d:"M19.5305114,17.0699744 C19.0173831,17.5315665 18.9752295,18.3220903 19.436308,18.8357433 C19.4660129,18.8688164 19.4974585,18.9002801 19.5305113,18.9300007 L29.4833057,27.2801611 C30.1234001,27.8559077 30.1759552,28.8420707 29.6007967,29.4827774 C29.0256382,30.1235263 28.0404824,30.1761351 27.400388,29.6003885 L17.4475937,21.2502703 C17.3320874,21.1463692 17.2222026,21.036372 17.1184079,20.920748 C15.5069703,19.1256817 15.6543605,16.3628317 17.4475933,14.7497465 L27.4003877,6.39962828 C28.0404821,5.82383957 29.0256378,5.87649058 29.6007963,6.51723942 C30.1759548,7.1579461 30.1233997,8.14410915 29.4833053,8.7198557 L19.5305114,17.0699744 Z"}))))));var ur={exports:{}},D1=ur.exports,ia;function A1(){return ia||(ia=1,function(t,e){(function(n,r){t.exports=r()})(D1,function(){var n="day";return function(r,o,s){var a=function(u){return u.add(4-u.isoWeekday(),n)},l=o.prototype;l.isoWeekYear=function(){return a(this).year()},l.isoWeek=function(u){if(!this.$utils().u(u))return this.add(7*(u-this.isoWeek()),n);var d,f,v,b,g=a(this),y=(d=this.isoWeekYear(),f=this.$u,v=(f?s.utc:s)().year(d).startOf("year"),b=4-v.isoWeekday(),v.isoWeekday()>4&&(b+=7),v.add(b,n));return g.diff(y,"week")+1},l.isoWeekday=function(u){return this.$utils().u(u)?this.day()||7:this.day(this.day()%7?u:u-7)};var c=l.startOf;l.startOf=function(u,d){var f=this.$utils(),v=!!f.u(d)||d;return f.p(u)==="isoweek"?v?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):c.bind(this)(u,d)}}})}(ur)),ur.exports}var L1=A1();const Io=xt(L1);function Ie(t){const{value:e,defaultValue:n,onChange:r}=t,o=ne.useUpdate(),s=i.useRef(e!==void 0?e:n);e!==void 0&&(s.current=e);const a=ne.useMemoizedFn((l,c=!1)=>{const u=typeof l=="function"?l(s.current):l;if(!(!c&&u===s.current))return s.current=u,o(),r==null?void 0:r(u)});return[s.current,a]}function B1(t,e){return t.replace(/\$\{\w+\}/g,n=>{const r=n.slice(2,-1);return e[r]})}function aa(t,e){return t===void 0||e===null?null:Array.isArray(e)?e:[e,e]}function $o(t){return pe().year(t.year).month(t.month-1).date(1)}pe.extend(Io);const me="adm-calendar",z1={weekStartsOn:"Sunday",defaultValue:null,allowClear:!0,prevMonthButton:i.createElement(oa,null),prevYearButton:i.createElement(sa,null),nextMonthButton:i.createElement(oa,null),nextYearButton:i.createElement(sa,null)},V1=i.forwardRef((t,e)=>{const n=pe(),r=re(z1,t),{locale:o}=Pe(),s=[...o.Calendar.markItems];if(r.weekStartsOn==="Sunday"){const C=s.pop();C&&s.unshift(C)}const[a,l]=Ie({value:r.value===void 0?void 0:aa(r.selectionMode,r.value),defaultValue:aa(r.selectionMode,r.defaultValue),onChange:C=>{var w,k;r.selectionMode==="single"?(w=r.onChange)===null||w===void 0||w.call(r,C?C[0]:null):r.selectionMode==="range"&&((k=r.onChange)===null||k===void 0||k.call(r,C))}}),[c,u]=i.useState(!1),[d,f]=i.useState(()=>pe(a?a[0]:n).date(1));ne.useUpdateEffect(()=>{var C;(C=r.onPageChange)===null||C===void 0||C.call(r,d.year(),d.month()+1)},[d]),i.useImperativeHandle(e,()=>({jumpTo:C=>{let w;typeof C=="function"?w=C({year:d.year(),month:d.month()+1}):w=C,f($o(w))},jumpToToday:()=>{f(pe().date(1))}}));const v=(C,w,k)=>{const E=d[C](w,k);if(C==="subtract"&&r.minPage){const I=$o(r.minPage);if(E.isBefore(I,k))return}if(C==="add"&&r.maxPage){const I=$o(r.maxPage);if(E.isAfter(I,k))return}f(E)},b=i.createElement("div",{className:`${me}-header`},i.createElement("a",{className:`${me}-arrow-button ${me}-arrow-button-year`,onClick:()=>{v("subtract",1,"year")}},r.prevYearButton),i.createElement("a",{className:`${me}-arrow-button ${me}-arrow-button-month`,onClick:()=>{v("subtract",1,"month")}},r.prevMonthButton),i.createElement("div",{className:`${me}-title`},B1(o.Calendar.yearAndMonth,{year:d.year().toString(),month:(d.month()+1).toString()})),i.createElement("a",{className:H(`${me}-arrow-button`,`${me}-arrow-button-right`,`${me}-arrow-button-right-month`),onClick:()=>{v("add",1,"month")}},r.nextMonthButton),i.createElement("a",{className:H(`${me}-arrow-button`,`${me}-arrow-button-right`,`${me}-arrow-button-right-year`),onClick:()=>{v("add",1,"year")}},r.nextYearButton)),g=i.useMemo(()=>r.max&&pe(r.max),[r.max]),y=i.useMemo(()=>r.min&&pe(r.min),[r.min]);function p(){var C;const w=[];let k=d.subtract(d.isoWeekday(),"day");for(r.weekStartsOn==="Monday"&&(k=k.add(1,"day"));w.length<6*7;){const E=k;let I=!1,T=!1,Z=!1,M=!1,N=!1;if(a){const[_,F]=a;T=E.isSame(_,"day"),Z=E.isSame(F,"day"),I=T||Z||E.isAfter(_,"day")&&E.isBefore(F,"day"),I&&(M=(w.length%7===0||E.isSame(E.startOf("month"),"day"))&&!T,N=(w.length%7===6||E.isSame(E.endOf("month"),"day"))&&!Z)}const U=E.month()===d.month(),z=r.shouldDisableDate?r.shouldDisableDate(E.toDate()):g&&E.isAfter(g,"day")||y&&E.isBefore(y,"day");w.push(i.createElement("div",{key:E.valueOf(),className:H(`${me}-cell`,(z||!U)&&`${me}-cell-disabled`,U&&{[`${me}-cell-today`]:E.isSame(n,"day"),[`${me}-cell-selected`]:I,[`${me}-cell-selected-begin`]:T,[`${me}-cell-selected-end`]:Z,[`${me}-cell-selected-row-begin`]:M,[`${me}-cell-selected-row-end`]:N}),onClick:()=>{if(!r.selectionMode||z)return;const _=E.toDate();U||f(E.clone().date(1));function F(){if(!r.allowClear||!a)return!1;const[P,B]=a;return E.isSame(P,"date")&&E.isSame(B,"day")}if(r.selectionMode==="single"){if(r.allowClear&&F()){l(null);return}l([_,_])}else if(r.selectionMode==="range"){if(!a){l([_,_]),u(!0);return}if(F()){l(null),u(!1);return}if(c){const P=a[0];l(P>_?[_,P]:[P,_]),u(!1)}else l([_,_]),u(!0)}}},i.createElement("div",{className:`${me}-cell-top`},r.renderDate?r.renderDate(E.toDate()):E.date()),i.createElement("div",{className:`${me}-cell-bottom`},(C=r.renderLabel)===null||C===void 0?void 0:C.call(r,E.toDate())))),k=k.add(1,"day")}return w}const x=i.createElement("div",{className:`${me}-cells`},p()),S=i.createElement("div",{className:`${me}-mark`},s.map((C,w)=>i.createElement("div",{key:w,className:`${me}-mark-cell`},C)));return Y(r,i.createElement("div",{className:me},b,S,x))});var _o={exports:{}},ce={};/**
126
+ * @license React
127
+ * react-is.production.min.js
128
+ *
129
+ * Copyright (c) Facebook, Inc. and its affiliates.
130
+ *
131
+ * This source code is licensed under the MIT license found in the
132
+ * LICENSE file in the root directory of this source tree.
133
+ */var la;function Z1(){if(la)return ce;la=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),g;g=Symbol.for("react.module.reference");function y(p){if(typeof p=="object"&&p!==null){var x=p.$$typeof;switch(x){case t:switch(p=p.type,p){case n:case o:case r:case u:case d:return p;default:switch(p=p&&p.$$typeof,p){case l:case a:case c:case v:case f:case s:return p;default:return x}}case e:return x}}}return ce.ContextConsumer=a,ce.ContextProvider=s,ce.Element=t,ce.ForwardRef=c,ce.Fragment=n,ce.Lazy=v,ce.Memo=f,ce.Portal=e,ce.Profiler=o,ce.StrictMode=r,ce.Suspense=u,ce.SuspenseList=d,ce.isAsyncMode=function(){return!1},ce.isConcurrentMode=function(){return!1},ce.isContextConsumer=function(p){return y(p)===a},ce.isContextProvider=function(p){return y(p)===s},ce.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===t},ce.isForwardRef=function(p){return y(p)===c},ce.isFragment=function(p){return y(p)===n},ce.isLazy=function(p){return y(p)===v},ce.isMemo=function(p){return y(p)===f},ce.isPortal=function(p){return y(p)===e},ce.isProfiler=function(p){return y(p)===o},ce.isStrictMode=function(p){return y(p)===r},ce.isSuspense=function(p){return y(p)===u},ce.isSuspenseList=function(p){return y(p)===d},ce.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===n||p===o||p===r||p===u||p===d||p===b||typeof p=="object"&&p!==null&&(p.$$typeof===v||p.$$typeof===f||p.$$typeof===s||p.$$typeof===a||p.$$typeof===c||p.$$typeof===g||p.getModuleId!==void 0)},ce.typeOf=y,ce}var ca;function j1(){return ca||(ca=1,_o.exports=Z1()),_o.exports}var K1=j1();const dr="adm-divider",W1={contentPosition:"center",direction:"horizontal"},Po=t=>{const e=re(W1,t);return Y(e,i.createElement("div",{className:H(dr,`${dr}-${e.direction}`,`${dr}-${e.contentPosition}`)},e.children&&i.createElement("div",{className:`${dr}-content`},e.children)))};function ua(t,e){const n=ne.useMemoizedFn(t);ne.useIsomorphicLayoutEffect(()=>{const r=e.current;if(r)if(window.ResizeObserver){let o;const s=new ResizeObserver(()=>{o=window.requestAnimationFrame(()=>n(r))});return s.observe(r),()=>{window.cancelAnimationFrame(o),s.disconnect()}}else n(r)},[e])}function H1(t,e,n){if(t&&typeof MutationObserver!="undefined"){let r=new MutationObserver(()=>{n()});return r.observe(t,e),()=>{r&&(r.disconnect(),r=null)}}return()=>{}}function da(t,e,n){const r=ne.useMemoizedFn(t);i.useEffect(()=>H1(e.current,n,r),[e])}function xe(t,e,n){let r=t;return e!==void 0&&(r=Math.max(t,e)),n!==void 0&&(r=Math.min(r,n)),r}const U1=(t,e)=>{const[{scrollLeft:n},r]=Ve(()=>({scrollLeft:0,config:{tension:300,clamp:!0}}));function o(s=!1){const a=t.current;if(!a||e===void 0)return;const c=a.children.item(e).children.item(0),u=c.offsetLeft,d=c.offsetWidth,f=a.offsetWidth,v=a.scrollWidth,b=a.scrollLeft;if(v-f<=0)return;const y=xe(u-(f-d)/2,0,v-f);r.start({scrollLeft:y,from:{scrollLeft:b},immediate:s&&!n.isAnimating})}return ne.useIsomorphicLayoutEffect(()=>{o(!0)},[]),Eo(()=>{o()},[e]),da(()=>{o(!0)},t,{subtree:!0,childList:!0,characterData:!0}),{scrollLeft:n,animate:o}},fr="adm-scroll-mask",q1=t=>{const e=i.useRef(null),[{leftMaskOpacity:n,rightMaskOpacity:r},o]=Ve(()=>({leftMaskOpacity:0,rightMaskOpacity:0,config:{clamp:!0}})),{run:s}=ne.useThrottleFn((a=!1)=>{if(!e.current)return;const c=t.scrollTrackRef.current;if(!c)return;const u=c.scrollLeft,d=u>0,f=u+c.offsetWidth<c.scrollWidth;o.start({leftMaskOpacity:d?1:0,rightMaskOpacity:f?1:0,immediate:a})},{wait:100,trailing:!0,leading:!0});return i.useEffect(()=>{s(!0)},[]),i.useEffect(()=>{const a=t.scrollTrackRef.current;if(a)return a.addEventListener("scroll",s),()=>a.removeEventListener("scroll",s)},[]),i.createElement(i.Fragment,null,i.createElement(ke.div,{ref:e,className:H(fr,`${fr}-left`),style:{opacity:n}}),i.createElement(ke.div,{className:H(fr,`${fr}-right`),style:{opacity:r}}))};function Fo(t,e){let n=0;function r(o){i.Children.forEach(o,s=>{K1.isFragment(s)?r(s.props.children):(e(s,n),n+=1)})}r(t)}function fa(t,e,n){return t*e*n/(e+n*t)}function mr(t,e,n,r,o=.15){return o===0?xe(t,e,n):t<e?-fa(e-t,r,o)+e:t>n?+fa(t-n,r,o)+n:t}var Mo,ma;function Y1(){if(ma)return Mo;ma=1;var t=typeof Element!="undefined",e=typeof Map=="function",n=typeof Set=="function",r=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function o(s,a){if(s===a)return!0;if(s&&a&&typeof s=="object"&&typeof a=="object"){if(s.constructor!==a.constructor)return!1;var l,c,u;if(Array.isArray(s)){if(l=s.length,l!=a.length)return!1;for(c=l;c--!==0;)if(!o(s[c],a[c]))return!1;return!0}var d;if(e&&s instanceof Map&&a instanceof Map){if(s.size!==a.size)return!1;for(d=s.entries();!(c=d.next()).done;)if(!a.has(c.value[0]))return!1;for(d=s.entries();!(c=d.next()).done;)if(!o(c.value[1],a.get(c.value[0])))return!1;return!0}if(n&&s instanceof Set&&a instanceof Set){if(s.size!==a.size)return!1;for(d=s.entries();!(c=d.next()).done;)if(!a.has(c.value[0]))return!1;return!0}if(r&&ArrayBuffer.isView(s)&&ArrayBuffer.isView(a)){if(l=s.length,l!=a.length)return!1;for(c=l;c--!==0;)if(s[c]!==a[c])return!1;return!0}if(s.constructor===RegExp)return s.source===a.source&&s.flags===a.flags;if(s.valueOf!==Object.prototype.valueOf&&typeof s.valueOf=="function"&&typeof a.valueOf=="function")return s.valueOf()===a.valueOf();if(s.toString!==Object.prototype.toString&&typeof s.toString=="function"&&typeof a.toString=="function")return s.toString()===a.toString();if(u=Object.keys(s),l=u.length,l!==Object.keys(a).length)return!1;for(c=l;c--!==0;)if(!Object.prototype.hasOwnProperty.call(a,u[c]))return!1;if(t&&s instanceof Element)return!1;for(c=l;c--!==0;)if(!((u[c]==="_owner"||u[c]==="__v"||u[c]==="__o")&&s.$$typeof)&&!o(s[u[c]],a[u[c]]))return!1;return!0}return s!==s&&a!==a}return Mo=function(a,l){try{return o(a,l)}catch(c){if((c.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw c}},Mo}var G1=Y1();const No=xt(G1);function pa(t){if(t==null||t==="")return 0;const e=t.trim();return e.endsWith("px")?parseFloat(e):e.endsWith("rem")?parseFloat(e)*parseFloat(window.getComputedStyle(document.documentElement).fontSize):e.endsWith("vw")?parseFloat(e)*window.innerWidth/100:0}const Qe="adm-picker-view",ha=i.memo(t=>{const{value:e,column:n,renderLabel:r}=t;function o(x){t.onSelect(x,t.index)}const[{y:s},a]=Ve(()=>({from:{y:0},config:{tension:400,mass:.8}})),l=i.useRef(!1),c=i.useRef(null),u=i.useRef(null),d=i.useRef(34);ne.useIsomorphicLayoutEffect(()=>{const x=u.current;x&&(d.current=pa(window.getComputedStyle(x).getPropertyValue("height")))}),ne.useIsomorphicLayoutEffect(()=>{if(l.current||e===null)return;const x=n.findIndex(C=>C.value===e);if(x<0)return;const S=x*-d.current;a.start({y:S,immediate:s.goal!==S})},[e,n]),ne.useIsomorphicLayoutEffect(()=>{if(n.length===0)e!==null&&o(null);else if(!n.some(x=>x.value===e)){const x=n[0];o(x.value)}},[n,e]);function f(x){const S=x*-d.current;a.start({y:S});const C=n[x];C&&o(C.value)}const v=x=>{const{direction:[,S],distance:[,C],velocity:[,w],offset:[,k],last:E}=x;return{direction:S,distance:C,velocity:w,offset:k,last:E}},b=x=>{l.current=!0;const S=-((n.length-1)*d.current),C=0,{direction:w,last:k,velocity:E,offset:I}=v(x);if(k){l.current=!1;const T=I+E*w*50,Z=xe(T,S,C),M=-Math.round(Z/d.current);f(M)}else{const T=I;a.start({y:mr(T,S,C,d.current*50,.2)})}},g=x=>{l.current=!0;const S=-((n.length-1)*d.current),C=0,{direction:w,last:k,velocity:E,distance:I}=v(x),T=-w,Z=s.get();if(k){l.current=!1;const M=E*T*50,N=Z+I*T+M,U=xe(N,S,C),z=-Math.round(U/d.current);f(z)}else{const M=Z+I*T;a.start({y:mr(M,S,C,d.current*50,.2)})}};rr(x=>{x.event.stopPropagation(),b(x)},{axis:"y",from:()=>[0,s.get()],filterTaps:!0,pointer:{touch:!0},target:c}),o1(x=>{x.event.stopPropagation(),g(x)},{target:t.mouseWheel?c:void 0,axis:"y",from:()=>[0,s.get()],preventDefault:!0,eventOptions:Tn?{passive:!1}:void 0});let y=null;function p(){if(y===null)return null;const x=n[y],S=y-1,C=y+1,w=n[S],k=n[C];return i.createElement("div",{className:`${Qe}-column-accessible`},i.createElement("div",{className:`${Qe}-column-accessible-current`,role:"button","aria-label":x?`当前选择的是:${x.label}`:"当前未选择"},"-"),i.createElement("div",{className:`${Qe}-column-accessible-button`,onClick:()=>{w&&f(S)},role:w?"button":"text","aria-label":w?`选择上一项:${w.label}`:"没有上一项"},"-"),i.createElement("div",{className:`${Qe}-column-accessible-button`,onClick:()=>{k&&f(C)},role:k?"button":"text","aria-label":k?`选择下一项:${k.label}`:"没有下一项"},"-"))}return i.createElement("div",{className:`${Qe}-column`},i.createElement("div",{className:`${Qe}-item-height-measure`,ref:u}),i.createElement(ke.div,{ref:c,style:{translateY:s},className:`${Qe}-column-wheel`,"aria-hidden":!0},n.map((x,S)=>{var C;const w=t.value===x.value;w&&(y=S);function k(){l.current=!1,f(S)}return i.createElement("div",{key:(C=x.key)!==null&&C!==void 0?C:x.value,"data-selected":w,className:H(`${Qe}-column-item`,{[`${Qe}-column-item-active`]:w}),onClick:k,"aria-hidden":!w,"aria-label":w?"active":""},i.createElement("div",{className:`${Qe}-column-item-label`},r(x)))})),p())},(t,e)=>!(t.index!==e.index||t.value!==e.value||t.onSelect!==e.onSelect||t.renderLabel!==e.renderLabel||t.mouseWheel!==e.mouseWheel||!No(t.column,e.column)));ha.displayName="Wheel";function ga(t){let e=null;return()=>(e===null&&(e=t()),e)}function va(t,e){const n=ga(()=>(typeof t=="function"?t(e):t).map(a=>a.map(l=>typeof l=="string"?{label:l,value:l}:l))),r=ga(()=>e.map((s,a)=>{var l;const c=n()[a];return c&&(l=c.find(u=>u.value===s))!==null&&l!==void 0?l:null}));return{get columns(){return n()},get items(){return r()}}}function ba(t,e){return i.useMemo(()=>va(t,e),[t,e])}const ya=t=>t.label;var To={exports:{}},Oo={};/**
134
+ * @license React
135
+ * use-sync-external-store-shim.production.min.js
136
+ *
137
+ * Copyright (c) Facebook, Inc. and its affiliates.
138
+ *
139
+ * This source code is licensed under the MIT license found in the
140
+ * LICENSE file in the root directory of this source tree.
141
+ */var xa;function X1(){if(xa)return Oo;xa=1;var t=i;function e(f,v){return f===v&&(f!==0||1/f===1/v)||f!==f&&v!==v}var n=typeof Object.is=="function"?Object.is:e,r=t.useState,o=t.useEffect,s=t.useLayoutEffect,a=t.useDebugValue;function l(f,v){var b=v(),g=r({inst:{value:b,getSnapshot:v}}),y=g[0].inst,p=g[1];return s(function(){y.value=b,y.getSnapshot=v,c(y)&&p({inst:y})},[f,b,v]),o(function(){return c(y)&&p({inst:y}),f(function(){c(y)&&p({inst:y})})},[f]),a(b),b}function c(f){var v=f.getSnapshot;f=f.value;try{var b=v();return!n(f,b)}catch(g){return!0}}function u(f,v){return v()}var d=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?u:l;return Oo.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:d,Oo}var Ca;function J1(){return Ca||(Ca=1,To.exports=X1()),To.exports}var Q1=J1();let R1=!1;const Sa=new Set;function wa(){return R1}function e0(t){return Sa.add(t),()=>{Sa.delete(t)}}function t0(){return Q1.useSyncExternalStore(e0,wa,wa)}const Do="adm-spin-loading",n0={default:"var(--adm-color-weak)",primary:"var(--adm-color-primary)",white:"var(--adm-color-white)"},r0={color:"default"},o0=15*3.14159265358979*2,Ao=i.memo(t=>{var e;const n=re(r0,t),r=t0(),{percent:o}=Ve({cancel:r,loop:{reverse:!0},from:{percent:80},to:{percent:30},config:{duration:1200}});return Y(n,i.createElement(ke.div,{className:Do,style:{"--color":(e=n0[n.color])!==null&&e!==void 0?e:n.color,"--percent":o}},i.createElement("svg",{className:`${Do}-svg`,viewBox:"0 0 32 32"},i.createElement(ke.circle,{className:`${Do}-fill`,fill:"transparent",strokeWidth:"2",strokeDasharray:o0,strokeDashoffset:o,strokeLinecap:"square",r:15,cx:16,cy:16}))))}),qt="adm-picker-view",s0={defaultValue:[],renderLabel:ya,mouseWheel:!1,loadingContent:i.createElement("div",{className:`${qt}-loading-content`},i.createElement(Ao,null))},Lo=i.memo(t=>{const e=re(s0,t),[n,r]=i.useState(e.value===void 0?e.defaultValue:e.value);i.useEffect(()=>{e.value!==void 0&&e.value!==n&&r(e.value)},[e.value]),i.useEffect(()=>{if(e.value===n)return;const l=window.setTimeout(()=>{e.value!==void 0&&e.value!==n&&r(e.value)},1e3);return()=>{window.clearTimeout(l)}},[e.value,n]);const o=ba(e.columns,n),s=o.columns;ne.useDebounceEffect(()=>{var l;e.value!==n&&((l=e.onChange)===null||l===void 0||l.call(e,n,o))},[n],{wait:0,leading:!1,trailing:!0});const a=i.useCallback((l,c)=>{r(u=>{const d=[...u];return d[c]=l,d})},[]);return Y(e,i.createElement("div",{className:`${qt}`},e.loading?e.loadingContent:i.createElement(i.Fragment,null,s.map((l,c)=>i.createElement(ha,{key:c,index:c,column:l,value:n[c],onSelect:a,renderLabel:e.renderLabel,mouseWheel:e.mouseWheel})),i.createElement("div",{className:`${qt}-mask`},i.createElement("div",{className:`${qt}-mask-top`}),i.createElement("div",{className:`${qt}-mask-middle`}),i.createElement("div",{className:`${qt}-mask-bottom`})))))});Lo.displayName="PickerView";const ht="adm-picker",i0={defaultValue:[],closeOnMaskClick:!0,renderLabel:ya,destroyOnClose:!1,forceRender:!1},Bo=i.memo(i.forwardRef((t,e)=>{var n;const{locale:r}=Pe(),o=re(i0,{confirmText:r.common.confirm,cancelText:r.common.cancel},t),[s,a]=Ie({value:o.visible,defaultValue:!1,onChange:p=>{var x;p===!1&&((x=o.onClose)===null||x===void 0||x.call(o))}}),l={toggle:()=>{a(p=>!p)},open:()=>{a(!0)},close:()=>{a(!1)}};i.useImperativeHandle(e,()=>l);const[c,u]=Ie(Object.assign(Object.assign({},o),{onChange:p=>{var x;const S=va(o.columns,p);(x=o.onConfirm)===null||x===void 0||x.call(o,p,S)}})),d=ba(o.columns,c),[f,v]=i.useState(c);i.useEffect(()=>{f!==c&&v(c)},[s]),i.useEffect(()=>{s||v(c)},[c]);const b=ne.useMemoizedFn((p,x)=>{var S;v(p),s&&((S=o.onSelect)===null||S===void 0||S.call(o,p,x))}),g=Y(o,i.createElement("div",{className:ht},i.createElement("div",{className:`${ht}-header`},i.createElement("a",{role:"button",className:`${ht}-header-button`,onClick:()=>{var p;(p=o.onCancel)===null||p===void 0||p.call(o),a(!1)}},o.cancelText),i.createElement("div",{className:`${ht}-header-title`},o.title),i.createElement("a",{role:"button",className:H(`${ht}-header-button`,o.loading&&`${ht}-header-button-disabled`),onClick:()=>{o.loading||(u(f,!0),a(!1))},"aria-disabled":o.loading},o.confirmText)),i.createElement("div",{className:`${ht}-body`},i.createElement(Lo,{loading:o.loading,loadingContent:o.loadingContent,columns:o.columns,renderLabel:o.renderLabel,value:f,mouseWheel:o.mouseWheel,onChange:b})))),y=i.createElement(Ht,{style:o.popupStyle,className:H(`${ht}-popup`,o.popupClassName),visible:s,position:"bottom",onMaskClick:()=>{var p;o.closeOnMaskClick&&((p=o.onCancel)===null||p===void 0||p.call(o),a(!1))},getContainer:o.getContainer,destroyOnClose:o.destroyOnClose,afterShow:o.afterShow,afterClose:o.afterClose,onClick:o.onClick,forceRender:o.forceRender,stopPropagation:o.stopPropagation},g,i.createElement(yn,{position:"bottom"}));return i.createElement(i.Fragment,null,y,(n=o.children)===null||n===void 0?void 0:n.call(o,d.items,l))}));Bo.displayName="Picker";function a0(t){return new Promise(e=>{const n=()=>{const[o,s]=i.useState(!1);return i.useEffect(()=>{s(!0)},[]),i.createElement(Bo,Object.assign({},t,{visible:o,onConfirm:(a,l)=>{var c;(c=t.onConfirm)===null||c===void 0||c.call(t,a,l),e(a)},onClose:()=>{var a;(a=t.onClose)===null||a===void 0||a.call(t),s(!1),e(null)},afterClose:()=>{var a;(a=t.afterClose)===null||a===void 0||a.call(t),r()}}))},r=ko(i.createElement(n,null))})}const ka=we(Bo,{prompt:a0}),Me="adm-tabs",l0=()=>null,c0={activeLineMode:"auto",stretch:!0,direction:"ltr"},pr=we(t=>{var e;const n=re(c0,t),r=i.useRef(null),o=i.useRef(null),s={};let a=null;const l=[],c=n.direction==="rtl";Fo(n.children,(k,E)=>{if(!i.isValidElement(k))return;const I=k.key;if(typeof I!="string")return;E===0&&(a=I);const T=l.push(k);s[I]=T-1});const[u,d]=Ie({value:n.activeKey,defaultValue:(e=n.defaultActiveKey)!==null&&e!==void 0?e:a,onChange:k=>{var E;k!==null&&((E=n.onChange)===null||E===void 0||E.call(n,k))}}),[{x:f,width:v},b]=Ve(()=>({x:0,width:0,config:{tension:300,clamp:!0}})),[{scrollLeft:g},y]=Ve(()=>({scrollLeft:0,config:{tension:300,clamp:!0}})),[{leftMaskOpacity:p,rightMaskOpacity:x},S]=Ve(()=>({leftMaskOpacity:0,rightMaskOpacity:0,config:{clamp:!0}}));function C(k=!1,E=!1){const I=r.current;if(!I)return;const T=s[u];if(T===void 0){b.start({x:0,width:0,immediate:!0});return}const Z=o.current;if(!Z)return;const M=I.children.item(T+1),N=M.children.item(0),U=N.offsetLeft,z=N.offsetWidth,_=M.offsetLeft,F=M.offsetWidth,P=I.offsetWidth,B=I.scrollWidth,O=I.scrollLeft,V=Z.offsetWidth;let j=0,A=0;if(n.activeLineMode==="auto"?(j=U,A=z):n.activeLineMode==="full"?(j=_,A=F):j=U+(z-V)/2,c){const R=["auto","full"].includes(n.activeLineMode)?A:V;j=-(P-j-R)}b.start({x:j,width:A,immediate:k});const W=B-P;if(W<=0)return;let q=0;c?q=-xe(P/2-U+z/2-V,0,W):q=xe(U-(P-z)/2,0,W),(!E||n.autoScroll!==!1)&&y.start({scrollLeft:q,from:{scrollLeft:O},immediate:k})}ne.useIsomorphicLayoutEffect(()=>{C(!f.isAnimating)},[]),Eo(()=>{C()},[u,c,n.activeLineMode]),ua(()=>{C(!f.isAnimating)},r),da(()=>{C(!f.isAnimating,!0)},r,{subtree:!0,childList:!0,characterData:!0});const{run:w}=ne.useThrottleFn((k=!1)=>{const E=r.current;if(!E)return;const I=E.scrollLeft;let T=!1,Z=!1;c?(T=Math.round(-I)+E.offsetWidth<E.scrollWidth,Z=I<0):(T=I>0,Z=I+E.offsetWidth<E.scrollWidth),S.start({leftMaskOpacity:T?1:0,rightMaskOpacity:Z?1:0,immediate:k})},{wait:100,trailing:!0,leading:!0});return ne.useIsomorphicLayoutEffect(()=>{w(!0)},[]),Y(n,i.createElement("div",{className:Me,style:{direction:n.direction}},i.createElement("div",{className:`${Me}-header`},i.createElement(ke.div,{className:H(`${Me}-header-mask`,`${Me}-header-mask-left`),style:{opacity:p}}),i.createElement(ke.div,{className:H(`${Me}-header-mask`,`${Me}-header-mask-right`),style:{opacity:x}}),i.createElement(ke.div,{className:`${Me}-tab-list`,ref:r,scrollLeft:g,onScroll:w,role:"tablist"},i.createElement(ke.div,{ref:o,className:`${Me}-tab-line`,style:{width:n.activeLineMode==="fixed"?"var(--fixed-active-line-width, 30px)":v,x:f}}),l.map(k=>Y(k.props,i.createElement("div",{key:k.key,className:H(`${Me}-tab-wrapper`,{[`${Me}-tab-wrapper-stretch`]:n.stretch})},i.createElement("div",{onClick:()=>{const{key:E}=k;k.props.disabled||E!=null&&d(E.toString())},className:H(`${Me}-tab`,{[`${Me}-tab-active`]:k.key===u,[`${Me}-tab-disabled`]:k.props.disabled}),role:"tab","aria-selected":k.key===u},k.props.title)))))),l.map(k=>{if(k.props.children===void 0)return null;const E=k.key===u;return i.createElement(Jn,{key:k.key,active:E,forceRender:k.props.forceRender,destroyOnClose:k.props.destroyOnClose},i.createElement("div",{className:`${Me}-content`,style:{display:E?"block":"none"}},k.props.children))})))},{Tab:l0}),Cn="adm-list",u0={mode:"default"},d0=i.forwardRef((t,e)=>{const n=re(u0,t),r=i.useRef(null);return i.useImperativeHandle(e,()=>({get nativeElement(){return r.current}})),Y(n,i.createElement("div",{className:H(Cn,`${Cn}-${n.mode}`),ref:r},n.header&&i.createElement("div",{className:`${Cn}-header`},n.header),i.createElement("div",{className:`${Cn}-body`},i.createElement("div",{className:`${Cn}-body-inner`},n.children))))});function hr(t){return t!=null&&t!==!1}const st="adm-list-item",Yt=we(d0,{Item:t=>{var e,n;const{arrow:r,arrowIcon:o}=t,{list:s={}}=Pe(),a=(e=t.clickable)!==null&&e!==void 0?e:!!t.onClick,l=(n=r!=null?r:o)!==null&&n!==void 0?n:a,c=Ar(s.arrowIcon,r!==!0?r:null,o!==!0?o:null),u=i.createElement("div",{className:`${st}-content`},hr(t.prefix)&&i.createElement("div",{className:`${st}-content-prefix`},t.prefix),i.createElement("div",{className:`${st}-content-main`},hr(t.title)&&i.createElement("div",{className:`${st}-title`},t.title),t.children,hr(t.description)&&i.createElement("div",{className:`${st}-description`},t.description)),hr(t.extra)&&i.createElement("div",{className:`${st}-content-extra`},t.extra),l&&i.createElement("div",{className:`${st}-content-arrow`},c||i.createElement(nd,null)));return Y(t,i.createElement(a?"a":"div",{className:H(`${st}`,a?["adm-plain-anchor"]:[],t.disabled&&`${st}-disabled`),onClick:t.disabled?void 0:t.onClick},u))}}),Ea=i.createContext(null),f0="adm-check-list",m0={multiple:!1,defaultValue:[],activeIcon:i.createElement(wi,null)},p0=t=>{const{checkList:e={}}=Pe(),n=re(m0,e,t),[r,o]=Ie(n);function s(f){n.multiple?o([...r,f]):o([f])}function a(f){o(r.filter(v=>v!==f))}const{activeIcon:l,extra:c,disabled:u,readOnly:d}=n;return i.createElement(Ea.Provider,{value:{value:r,check:s,uncheck:a,activeIcon:l,extra:c,disabled:u,readOnly:d}},Y(n,i.createElement(Yt,{mode:n.mode,className:f0},n.children)))},gr="adm-check-list-item",vr=we(p0,{Item:t=>{const e=i.useContext(Ea);if(e===null)return null;const n=e.value.includes(t.value),r=t.readOnly||e.readOnly,o=n?e.activeIcon:null,s=e.extra?e.extra(n):o,a=i.createElement("div",{className:`${gr}-extra`},s);return Y(t,i.createElement(Yt.Item,{title:t.title,className:H(gr,r&&`${gr}-readonly`,n&&`${gr}-active`),description:t.description,prefix:t.prefix,onClick:l=>{var c;r||(n?e.uncheck(t.value):e.check(t.value),(c=t.onClick)===null||c===void 0||c.call(t,l))},arrow:!1,clickable:!r,extra:a,disabled:t.disabled||e.disabled},t.children))}});function h0(t){var e=t+"",n=e.indexOf("...");return n>=0&&(n<e.indexOf(")")||e.indexOf("arguments")>=0)}function Ia(t,e){e||(e={});var n=e.vargs||h0(t),r=[],o=new Map,s,a,l=function(b){return a=setTimeout(function(){if(s){o.delete(b);return}r.splice(b,1)},e.maxAge)},c=e.maxAge>0&&e.maxAge<1/0?l:0,u=e.equals?e.equals:0,d=e.maxArgs,f=e.serializer,v;return t.length===1&&!e.equals&&!n?(v=function(b){f&&(b=f(b));var g;return o.get(b)||(!c||c(b),o.set(b,g=t.call(this,b)),g)},s=1):u?v=function(){for(var b=d||arguments.length,g=r.length,y=-1;++y<g;)if(r[y].length===b){for(var p=-1;++p<b&&u(arguments[p],r[y][p]););if(p===b)return r[y].val}return r[y]=arguments,!c||c(y),arguments.val=t.apply(this,r[y])}:v=function(){for(var b=d||arguments.length,g=r.length,y=-1;++y<g;)if(r[y].length===b){for(var p=-1;++p<b&&arguments[p]===r[y][p];);if(p===b)return r[y].val}return r[y]=arguments,!c||c(y),arguments.val=t.apply(this,r[y])},v.clear=function(){a&&clearTimeout(a),o.clear(),r=[]},v.keys=function(){return s?[...o.keys()]:r.slice()},v.values=function(){return s?[...o.values()]:r.map(b=>b.val)},v}function g0(t,e){const{valueName:n,childrenName:r}=e,o=i.useMemo(()=>Ia(l=>{const c=[];let u=t;for(const d of l){const f=u.find(v=>v[n]===d);if(!f||(c.push(f),!f[r]))break;u=f[r]}return c},{equals:No}),[t]),s=i.useMemo(()=>Ia(l=>l.reduce((u,d)=>{var f;return((f=u.find(v=>v[n]===d))===null||f===void 0?void 0:f[r])||[]},t).length===0,{equals:No}),[t]);function a(l){return{get items(){return o(l)},get isLeaf(){return s(l)}}}return a}const $a=[];function v0(t,e){const n=[];for(let r=t;r<=e;r++)n.push(r);return n}const Sn="adm-skeleton",zo=t=>Y(t,i.createElement("div",{className:H(Sn,{[`${Sn}-animated`]:t.animated})})),b0=t=>Y(t,i.createElement(zo,{animated:t.animated,className:`${Sn}-title`})),y0={lineCount:3},br=we(zo,{Title:b0,Paragraph:t=>{const e=re(y0,t),n=v0(1,e.lineCount),r=i.createElement("div",{className:`${Sn}-paragraph`},n.map(o=>i.createElement(zo,{key:o,animated:e.animated,className:`${Sn}-paragraph-line`})));return Y(e,r)}}),x0=(t={})=>i.useMemo(()=>{const{label:n="label",value:r="value",disabled:o="disabled",children:s="children"}=t;return[n,r,s,o]},[JSON.stringify(t)]),Ue="adm-cascader-view",C0={defaultValue:[]},S0=we(t=>{const e=re(C0,t),{locale:n}=Pe(),[r,o,s,a]=x0(e.fieldNames),l=g0(e.options,{valueName:o,childrenName:s}),[c,u]=Ie(Object.assign(Object.assign({},e),{onChange:p=>{var x;(x=e.onChange)===null||x===void 0||x.call(e,p,l(p))}})),[d,f]=i.useState(0),v=i.useMemo(()=>{const p=[];let x=e.options,S=!1;for(const C of c){const w=x.find(k=>k[o]===C);if(p.push({selected:w,options:x}),!w||!w[s]){S=!0;break}x=w[s]}return S||p.push({selected:void 0,options:x}),p},[c,e.options]);ne.useUpdateEffect(()=>{var p;(p=e.onTabsChange)===null||p===void 0||p.call(e,d)},[d]),i.useEffect(()=>{f(v.length-1)},[c]),i.useEffect(()=>{const p=v.length-1;d>p&&f(p)},[d,v]);const b=(p,x)=>{const S=c.slice(0,x);p!==void 0&&(S[x]=p),u(S)},g=p=>e.loading||p===$a,y=e.placeholder||n.Cascader.placeholder;return Y(e,i.createElement("div",{className:Ue},i.createElement(pr,{activeKey:d.toString(),onChange:p=>{const x=parseInt(p);f(x)},stretch:!1,className:`${Ue}-tabs`},v.map((p,x)=>{const S=p.selected;return i.createElement(pr.Tab,{key:x.toString(),title:i.createElement("div",{className:`${Ue}-header-title`},S?S[r]:typeof y=="function"?y(x):y),forceRender:!0},i.createElement("div",{className:`${Ue}-content`},g(p.options)?i.createElement("div",{className:`${Ue}-skeleton`},i.createElement(br,{className:`${Ue}-skeleton-line-1`,animated:!0}),i.createElement(br,{className:`${Ue}-skeleton-line-2`,animated:!0}),i.createElement(br,{className:`${Ue}-skeleton-line-3`,animated:!0}),i.createElement(br,{className:`${Ue}-skeleton-line-4`,animated:!0})):i.createElement(vr,{value:[c[x]],onChange:C=>b(C[0],x),activeIcon:e.activeIcon},p.options.map(C=>{const w=c[x]===C[o];return i.createElement(vr.Item,{value:C[o],key:C[o],disabled:C[a],className:H(`${Ue}-item`,{[`${Ue}-item-active`]:w})},C[r])}))))}))))},{optionSkeleton:$a}),_a=i.createContext(null),w0={disabled:!1,defaultValue:[]},k0=t=>{const e=re(w0,t),[n,r]=Ie(e);return i.createElement(_a.Provider,{value:{value:n,disabled:e.disabled,check:o=>{r([...n,o])},uncheck:o=>{r(n.filter(s=>s!==o))}}},e.children)},Pa=i.memo(t=>Y(t,i.createElement("svg",{viewBox:"0 0 40 40"},i.createElement("path",{d:"M31.5541766,15 L28.0892433,15 L28.0892434,15 C27.971052,15 27.8576674,15.044522 27.7740471,15.1239792 L18.2724722,24.1625319 L13.2248725,19.3630279 L13.2248725,19.3630279 C13.1417074,19.2834412 13.0287551,19.2384807 12.9107898,19.2380079 L9.44474455,19.2380079 L9.44474454,19.2380079 C9.19869815,19.2384085 8.99957935,19.4284738 9,19.66253 C9,19.7747587 9.04719253,19.8823283 9.13066188,19.9616418 L17.0907466,27.5338228 C17.4170809,27.8442545 17.8447695,28 18.2713393,28 L18.2980697,28 C18.7168464,27.993643 19.133396,27.8378975 19.4530492,27.5338228 L31.8693384,15.7236361 L31.8693384,15.7236361 C32.0434167,15.5582251 32.0435739,15.2898919 31.8696892,15.1242941 C31.7860402,15.0446329 31.6725052,15 31.5541421,15 L31.5541766,15 Z",fill:"currentColor"})))),E0=i.memo(t=>Y(t,i.createElement("svg",{viewBox:"0 0 40 40"},i.createElement("path",{d:"M20,9 C26.0752953,9 31,13.9247047 31,20 C31,26.0752953 26.0752953,31 20,31 C13.9247047,31 9,26.0752953 9,20 C9,13.9247047 13.9247047,9 20,9 Z",fill:"currentColor"})))),Fa=t=>{const e=i.useRef(null),n=ne.useMemoizedFn(r=>{r.stopPropagation(),r.stopImmediatePropagation();const o=r.target.checked;o!==t.checked&&t.onChange(o)});return i.useEffect(()=>{if(t.disabled||!e.current)return;const r=e.current;return r.addEventListener("click",n),()=>{r.removeEventListener("click",n)}},[t.disabled,t.onChange]),i.createElement("input",{ref:e,type:t.type,checked:t.checked,onChange:()=>{},disabled:t.disabled,id:t.id})},gt="adm-checkbox",I0={defaultChecked:!1,indeterminate:!1},$0=i.forwardRef((t,e)=>{const n=i.useContext(_a),r=re(I0,t);let[o,s]=Ie({value:r.checked,defaultValue:r.defaultChecked,onChange:r.onChange}),a=r.disabled;const{value:l}=r;n&&l!==void 0&&(o=n.value.includes(l),s=u=>{var d;u?n.check(l):n.uncheck(l),(d=r.onChange)===null||d===void 0||d.call(r,u)},a=a||n.disabled),i.useImperativeHandle(e,()=>({check:()=>{s(!0)},uncheck:()=>{s(!1)},toggle:()=>{s(!o)}}));const c=()=>r.icon?i.createElement("div",{className:`${gt}-custom-icon`},r.icon(o,r.indeterminate)):i.createElement("div",{className:`${gt}-icon`},r.indeterminate?i.createElement(E0,null):o&&i.createElement(Pa,null));return Y(r,i.createElement("label",{onClick:r.onClick,className:H(gt,{[`${gt}-checked`]:o&&!r.indeterminate,[`${gt}-indeterminate`]:r.indeterminate,[`${gt}-disabled`]:a,[`${gt}-block`]:r.block})},i.createElement(Fa,{type:"checkbox",checked:o,onChange:s,disabled:a,id:r.id}),c(),r.children&&i.createElement("div",{className:`${gt}-content`},r.children)))}),Vo=we($0,{Group:k0});var yr={exports:{}},_0=yr.exports,Ma;function P0(){return Ma||(Ma=1,function(t,e){(function(n,r){t.exports=r()})(_0,function(){return function(n,r){r.prototype.isoWeeksInYear=function(){var o=this.isLeapYear(),s=this.endOf("y").day();return s===4||o&&s===5?53:52}}})}(yr)),yr.exports}var F0=P0();const Na=xt(F0);var xr={exports:{}},M0=xr.exports,Ta;function N0(){return Ta||(Ta=1,function(t,e){(function(n,r){t.exports=r()})(M0,function(){return function(n,r){r.prototype.isLeapYear=function(){return this.$y%4==0&&this.$y%100!=0||this.$y%400==0}}})}(xr)),xr.exports}var T0=N0();const Oa=xt(T0),wn="TILL_NOW";pe.extend(Io),pe.extend(Na),pe.extend(Oa);const vt={year:0,month:1,day:2,hour:3,minute:4,second:5};function O0(t,e,n,r,o,s,a){const l=[],c=e.getFullYear(),u=e.getMonth()+1,d=e.getDate(),f=e.getHours(),v=e.getMinutes(),b=e.getSeconds(),g=n.getFullYear(),y=n.getMonth()+1,p=n.getDate(),x=n.getHours(),S=n.getMinutes(),C=n.getSeconds(),w=vt[r],k=parseInt(t[0]),E=pe(Zo([t[0],t[1],"1"])),I=parseInt(t[1]),T=parseInt(t[2]),Z=parseInt(t[3]),M=parseInt(t[4]),N=k===c,U=k===g,z=N&&I===u,_=U&&I===y,F=z&&T===d,P=_&&T===p,B=F&&Z===f,O=P&&Z===x,V=B&&M===v,j=O&&M===S,A=(W,q,R)=>{let te=[];for(let ue=W;ue<=q;ue++)te.push(ue);const Ne=t.slice(0,vt[R]),X=s==null?void 0:s[R];return X&&typeof X=="function"&&(te=te.filter(ue=>X(ue,{get date(){const K=[...Ne,ue.toString()];return Zo(K)}}))),te};if(w>=vt.year){const R=A(c,g,"year");l.push(R.map(te=>({label:o("year",te),value:te.toString()})))}if(w>=vt.month){const R=A(N?u:1,U?y:12,"month");l.push(R.map(te=>({label:o("month",te),value:te.toString()})))}if(w>=vt.day){const W=z?d:1,q=_?p:E.daysInMonth(),R=A(W,q,"day");l.push(R.map(te=>({label:o("day",te),value:te.toString()})))}if(w>=vt.hour){const R=A(F?f:0,P?x:23,"hour");l.push(R.map(te=>({label:o("hour",te),value:te.toString()})))}if(w>=vt.minute){const R=A(B?v:0,O?S:59,"minute");l.push(R.map(te=>({label:o("minute",te),value:te.toString()})))}if(w>=vt.second){const R=A(V?b:0,j?C:59,"second");l.push(R.map(te=>({label:o("second",te),value:te.toString()})))}if(a&&(l[0].push({label:o("now",null),value:wn}),wn===(t==null?void 0:t[0])))for(let W=1;W<l.length;W+=1)l[W]=[];return l}function D0(t){return t?[t.getFullYear().toString(),(t.getMonth()+1).toString(),t.getDate().toString(),t.getHours().toString(),t.getMinutes().toString(),t.getSeconds().toString()]:[]}function Zo(t){var e,n,r,o,s,a;const l=(e=t[0])!==null&&e!==void 0?e:"1900",c=(n=t[1])!==null&&n!==void 0?n:"1",u=(r=t[2])!==null&&r!==void 0?r:"1",d=(o=t[3])!==null&&o!==void 0?o:"0",f=(s=t[4])!==null&&s!==void 0?s:"0",v=(a=t[5])!==null&&a!==void 0?a:"0";return new Date(parseInt(l),parseInt(c)-1,parseInt(u),parseInt(d),parseInt(f),parseInt(v))}var Cr={exports:{}},A0=Cr.exports,Da;function L0(){return Da||(Da=1,function(t,e){(function(n,r){t.exports=r()})(A0,function(){var n="month",r="quarter";return function(o,s){var a=s.prototype;a.quarter=function(u){return this.$utils().u(u)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(u-1))};var l=a.add;a.add=function(u,d){return u=Number(u),this.$utils().p(d)===r?this.add(3*u,n):l.bind(this)(u,d)};var c=a.startOf;a.startOf=function(u,d){var f=this.$utils(),v=!!f.u(d)||d;if(f.p(u)===r){var b=this.quarter()-1;return v?this.month(3*b).startOf(n).startOf("day"):this.month(3*b+2).endOf(n).endOf("day")}return c.bind(this)(u,d)}}})}(Cr)),Cr.exports}var B0=L0();const z0=xt(B0);pe.extend(z0);const Sr={year:0,quarter:1};function V0(t,e,n,r,o,s){const a=[],l=e.getFullYear(),c=n.getFullYear(),u=Sr[r],d=parseInt(t[0]),f=d===l,v=d===c,b=pe(e),g=pe(n),y=b.quarter(),p=g.quarter(),x=(S,C,w)=>{let k=[];for(let T=S;T<=C;T++)k.push(T);const E=t.slice(0,Sr[w]),I=s==null?void 0:s[w];return I&&typeof I=="function"&&(k=k.filter(T=>I(T,{get date(){const Z=[...E,T.toString()];return Aa(Z)}}))),k};if(u>=Sr.year){const w=x(l,c,"year");a.push(w.map(k=>({label:o("year",k),value:k.toString()})))}if(u>=Sr.quarter){const w=x(f?y:1,v?p:4,"quarter");a.push(w.map(k=>({label:o("quarter",k),value:k.toString()})))}return a}function Z0(t){if(!t)return[];const e=pe(t);return[e.year().toString(),e.quarter().toString()]}function Aa(t){var e,n;const r=(e=t[0])!==null&&e!==void 0?e:"1900",o=(n=t[1])!==null&&n!==void 0?n:"1";return pe().year(parseInt(r)).quarter(parseInt(o)).hour(0).minute(0).second(0).toDate()}pe.extend(Io),pe.extend(Na),pe.extend(Oa);const kn={year:0,week:1,"week-day":2};function j0(t,e,n,r,o,s){const a=[],l=e.getFullYear(),c=n.getFullYear(),u=kn[r],d=parseInt(t[0]),f=d===l,v=d===c,b=pe(e),g=pe(n),y=b.isoWeek(),p=g.isoWeek(),x=b.isoWeekday(),S=g.isoWeekday(),C=parseInt(t[1]),w=f&&C===y,k=v&&C===p,E=pe(`${d}-01-01`).isoWeeksInYear(),I=(T,Z,M)=>{let N=[];for(let _=T;_<=Z;_++)N.push(_);const U=t.slice(0,kn[M]),z=s==null?void 0:s[M];return z&&typeof z=="function"&&(N=N.filter(_=>z(_,{get date(){const F=[...U,_.toString()];return La(F)}}))),N};if(u>=kn.year){const M=I(l,c,"year");a.push(M.map(N=>({label:o("year",N),value:N.toString()})))}if(u>=kn.week){const M=I(f?y:1,v?p:E,"week");a.push(M.map(N=>({label:o("week",N),value:N.toString()})))}if(u>=kn["week-day"]){const M=I(w?x:1,k?S:7,"week-day");a.push(M.map(N=>({label:o("week-day",N),value:N.toString()})))}return a}function K0(t){if(!t)return[];const e=pe(t);return[e.isoWeekYear().toString(),e.isoWeek().toString(),e.isoWeekday().toString()]}function La(t){var e,n,r;const o=(e=t[0])!==null&&e!==void 0?e:"1900",s=(n=t[1])!==null&&n!==void 0?n:"1",a=(r=t[2])!==null&&r!==void 0?r:"1";return pe().year(parseInt(o)).isoWeek(parseInt(s)).isoWeekday(parseInt(a)).hour(0).minute(0).second(0).toDate()}const W0={year:1,month:2,day:3,hour:4,minute:5,second:6},H0=(t,e)=>{if(e.includes("week"))return K0(t);if(e.includes("quarter"))return Z0(t);{const n=e;return D0(t).slice(0,W0[n])}},Ba=(t,e)=>{if((t==null?void 0:t[0])===wn){const n=new Date;return n.tillNow=!0,n}return e.includes("week")?La(t):e.includes("quarter")?Aa(t):Zo(t)},U0=(t,e,n,r,o,s,a)=>r.startsWith("week")?j0(t,e,n,r,o,s):r.startsWith("quarter")?V0(t,e,n,r,o,s):O0(t,e,n,r,o,s,a);function q0(t){const{locale:e}=Pe();return i.useCallback((n,r)=>{if(t)return t(n,r);switch(n){case"minute":case"second":case"hour":return("0"+r.toString()).slice(-2);case"now":return e.DatePicker.tillNow;default:return r.toString()}},[t])}const za=new Date().getFullYear(),Y0={min:new Date(new Date().setFullYear(za-10)),max:new Date(new Date().setFullYear(za+10)),precision:"day",defaultValue:null},Va=i.forwardRef((t,e)=>{const n=re(Y0,t),{renderLabel:r}=n,[o,s]=Ie({value:n.value,defaultValue:n.defaultValue,onChange:v=>{var b;v!==null&&((b=n.onConfirm)===null||b===void 0||b.call(n,v))}}),a=i.useMemo(()=>new Date,[]),l=q0(r),c=i.useMemo(()=>{let v=o!=null?o:a;return v.tillNow?[wn]:(v=new Date(xe(v.getTime(),n.min.getTime(),n.max.getTime())),H0(v,n.precision))},[o,n.precision,n.min,n.max]),u=i.useCallback(v=>{const b=Ba(v,n.precision);s(b,!0)},[s,n.precision]),d=ne.useMemoizedFn(v=>{var b;const g=Ba(v,n.precision);(b=n.onSelect)===null||b===void 0||b.call(n,g)}),f=i.useCallback(v=>U0(v,n.min,n.max,n.precision,l,n.filter,n.tillNow),[n.min,n.max,n.precision,l,n.tillNow]);return Y(n,i.createElement(ka,{ref:e,columns:f,value:c,onCancel:n.onCancel,onClose:n.onClose,closeOnMaskClick:n.closeOnMaskClick,visible:n.visible,confirmText:n.confirmText,cancelText:n.cancelText,onConfirm:u,onSelect:d,getContainer:n.getContainer,loading:n.loading,loadingContent:n.loadingContent,afterShow:n.afterShow,afterClose:n.afterClose,onClick:n.onClick,title:n.title,stopPropagation:n.stopPropagation,mouseWheel:n.mouseWheel,destroyOnClose:n.destroyOnClose,forceRender:n.forceRender},(v,b)=>{var g;return(g=n.children)===null||g===void 0?void 0:g.call(n,o,b)}))});function G0(t){return new Promise(e=>{const n=()=>{const[o,s]=i.useState(!1);return i.useEffect(()=>{s(!0)},[]),i.createElement(Va,Object.assign({},t,{visible:o,onConfirm:a=>{var l;(l=t.onConfirm)===null||l===void 0||l.call(t,a),e(a)},onClose:()=>{var a;(a=t.onClose)===null||a===void 0||a.call(t),s(!1),e(null)},afterClose:()=>{var a;(a=t.afterClose)===null||a===void 0||a.call(t),r()}}))},r=ko(i.createElement(n,null))})}const X0=we(Va,{prompt:G0,DATE_NOW:wn});var Za;(function(t){t[t.HIGH_SURROGATE_START=55296]="HIGH_SURROGATE_START",t[t.HIGH_SURROGATE_END=56319]="HIGH_SURROGATE_END",t[t.LOW_SURROGATE_START=56320]="LOW_SURROGATE_START",t[t.REGIONAL_INDICATOR_START=127462]="REGIONAL_INDICATOR_START",t[t.REGIONAL_INDICATOR_END=127487]="REGIONAL_INDICATOR_END",t[t.FITZPATRICK_MODIFIER_START=127995]="FITZPATRICK_MODIFIER_START",t[t.FITZPATRICK_MODIFIER_END=127999]="FITZPATRICK_MODIFIER_END",t[t.VARIATION_MODIFIER_START=65024]="VARIATION_MODIFIER_START",t[t.VARIATION_MODIFIER_END=65039]="VARIATION_MODIFIER_END",t[t.DIACRITICAL_MARKS_START=8400]="DIACRITICAL_MARKS_START",t[t.DIACRITICAL_MARKS_END=8447]="DIACRITICAL_MARKS_END",t[t.SUBDIVISION_INDICATOR_START=127988]="SUBDIVISION_INDICATOR_START",t[t.TAGS_START=917504]="TAGS_START",t[t.TAGS_END=917631]="TAGS_END",t[t.ZWJ=8205]="ZWJ"})(Za||(Za={}));const J0=Object.freeze([776,2359,2367,2984,3007,3021,3633,3635,3648,3657,4352,4449,4520]);var ja;function jo(t){if(typeof t!="string")throw new TypeError("string cannot be undefined or null");const e=[];let n=0,r=0;for(;n<t.length;)r+=Q0(n+r,t),sf(t[n+r])&&r++,nf(t[n+r])&&r++,rf(t[n+r])&&r++,af(t[n+r])?r++:(e.push(t.substring(n,n+r)),n+=r,r=0);return e}function Q0(t,e){const n=e[t];if(!R0(n)||t===e.length-1)return 1;const r=n+e[t+1];let o=e.substring(t+2,t+5);return Ka(r)&&Ka(o)?4:ef(r)&&of(o)?e.slice(t).indexOf(String.fromCodePoint(917631))+2:tf(o)?4:2}function R0(t){return t&&It(t[0].charCodeAt(0),55296,56319)}function Ka(t){return It(Ko(t),127462,127487)}function ef(t){return It(Ko(t),127988,127988)}function tf(t){return It(Ko(t),127995,127999)}function nf(t){return typeof t=="string"&&It(t.charCodeAt(0),65024,65039)}function rf(t){return typeof t=="string"&&It(t.charCodeAt(0),8400,8447)}function of(t){const e=t.codePointAt(0);return typeof t=="string"&&typeof e=="number"&&It(e,917504,917631)}function sf(t){return typeof t=="string"&&J0.includes(t.charCodeAt(0))}function af(t){return typeof t=="string"&&t.charCodeAt(0)===8205}function Ko(t){return(t.charCodeAt(0)-55296<<10)+(t.charCodeAt(1)-56320)+65536}function It(t,e,n){return t>=e&&t<=n}(function(t){t[t.unit_1=1]="unit_1",t[t.unit_2=2]="unit_2",t[t.unit_4=4]="unit_4"})(ja||(ja={}));const $t="adm-error-block",lf={status:"default"};function cf(t){return n=>{var r;const o=re(lf,n),{locale:s}=Pe(),a=s.ErrorBlock[o.status],l="description"in o?o.description:a.description,c="title"in o?o.title:a.title,u=(r=o.image)!==null&&r!==void 0?r:t[o.status],d=typeof u=="string"?i.createElement("img",{src:u,alt:"error block image"}):u;return Y(o,i.createElement("div",{className:H($t,{[`${$t}-full-page`]:o.fullPage})},i.createElement("div",{className:`${$t}-image`},d),i.createElement("div",{className:`${$t}-description`},![void 0,null].includes(c)&&i.createElement("div",{className:`${$t}-description-title`},c),![void 0,null].includes(l)&&i.createElement("div",{className:`${$t}-description-subtitle`},l)),o.children&&i.createElement("div",{className:`${$t}-content`},o.children)))}}const uf=i.createElement("svg",{viewBox:"0 0 200 200",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},i.createElement("defs",null,i.createElement("linearGradient",{x1:"50%",y1:"-116.862%",x2:"50%",y2:"90.764%",id:"error-block-image-default-a"},i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.207,offset:"0%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.115,offset:"80.072%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:0,offset:"100%"})),i.createElement("circle",{id:"error-block-image-default-d",cx:18.823,cy:18.823,r:18.823}),i.createElement("rect",{id:"error-block-image-default-b",x:3.5,y:9,width:51.429,height:88,rx:4.571})),i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("path",{d:"M73.557.004c19.435-.311 38.696 17.016 51.523 35.287 8.708-10.822 17.127-16.233 25.255-16.233 13.333 0 28.35 14.274 45.053 42.822 1.769 3.024-3.582 7.435-16.054 13.231l-41.322 1.37c-7.343 5.872-31.225.626-69.152 1.234-27.79.445-45.759-1.234-53.908-5.037C3.2 71.143-1.625 68.686.48 65.308 27.371 22.12 51.73.353 73.557.003Zm93.098 49.53a1.125 1.125 0 0 0-.401.072l-.058.023-.07.03-.028.014-.02.01c-.03.015-.059.032-.088.049a2.543 2.543 0 0 0-.568.477l-.067.074c-1.686 1.931-2.904 7.062-2.904 8.985 0 2.283 1.719 4.153 3.898 4.314l.026.001v3.805c0 .39.25.705.56.705.31 0 .56-.316.56-.705l.001-3.88c1.92-.402 3.363-2.148 3.363-4.24 0-2.39-1.882-9.734-4.204-9.734Zm-100-5a1.125 1.125 0 0 0-.331.05l-.035.01-.035.012-.058.023-.07.03-.028.014-.02.01c-.03.015-.059.032-.088.049a2.543 2.543 0 0 0-.568.477l-.067.074c-1.686 1.931-2.904 7.062-2.904 8.985 0 2.212 1.613 4.036 3.695 4.294l.203.02.026.001v3.805c0 .39.25.705.56.705.282 0 .515-.26.555-.6l.006-.105v-3.88c1.92-.402 3.363-2.148 3.363-4.24 0-2.39-1.882-9.734-4.204-9.734ZM52.64 38.348l-.15.008-.149.023-.032.007-.032.008-.078.022-.045.015-.045.016-.06.023-.038.017-.038.017-.058.028-.022.011a2.201 2.201 0 0 0-.323.204l-.05.038-.05.04-.025.02-.025.021a3.742 3.742 0 0 0-.31.294l-.036.04c-.035.037-.07.076-.105.116-.01.012-.02.025-.031.036a3.275 3.275 0 0 0-.081.098l-.063.078c-2.031 2.583-3.48 8.692-3.48 11.027 0 2.636 1.846 4.832 4.292 5.323l.224.04-.064-.012.105.018.103.014v4.618c0 .47.299.85.667.85.337 0 .615-.32.659-.735l.006-.115v-4.618c.18-.023.355-.054.527-.094l.256-.067.196-.06c2.136-.706 3.68-2.75 3.68-5.162 0-2.996-2.383-12.207-5.325-12.207Z",transform:"translate(2.286 22.286)",fill:"url(#error-block-image-default-a)"}),i.createElement("g",{transform:"rotate(-90 102.429 55.357)"},i.createElement("path",{d:"M6.857 0H52a6.857 6.857 0 0 1 6.857 6.857v92A6.857 6.857 0 0 1 52 105.714H6.857A6.857 6.857 0 0 1 0 98.857v-92A6.857 6.857 0 0 1 6.857 0Z",fill:"#7EACFF"}),i.createElement("mask",{id:"error-block-image-default-c",fill:"#fff"},i.createElement("use",{xlinkHref:"#error-block-image-default-b"})),i.createElement("use",{fill:"#377EFF",xlinkHref:"#error-block-image-default-b"}),i.createElement("path",{d:"M11.838 91.8a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.628-.652c0-.36.281-.651.628-.651Zm-2.858 0a.64.64 0 0 1 .628.652.64.64 0 0 1-.628.652.64.64 0 0 1-.627-.652c0-.36.281-.651.627-.651Zm2.16-2.305a.64.64 0 0 1 .628.652.64.64 0 0 1-.627.651.64.64 0 0 1-.627-.651c0-.36.28-.652.627-.652Zm-2.982-.04a.64.64 0 0 1 .627.651.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.651.627-.651Zm5.268-.531a.64.64 0 0 1 .628.651.64.64 0 0 1-.628.652.64.64 0 0 1-.627-.652c0-.36.281-.651.627-.651Zm2.858-1.143a.64.64 0 0 1 .627.651.64.64 0 0 1-.627.652.64.64 0 0 1-.628-.652c0-.36.281-.651.628-.651Zm-6.37-.917c.209 0 .377.175.377.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm3.512-.798.093.007a.644.644 0 0 1 .535.645.64.64 0 0 1-.628.652.64.64 0 0 1-.627-.652c0-.36.281-.652.627-.652Zm5.715 0a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.652.627-.652Zm-11.429 0a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.652.627-.652Zm-3.261.241c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.377-.391c0-.216.169-.391.377-.391Zm11.833-.812a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.651.64.64 0 0 1-.628-.651c0-.36.281-.652.628-.652Zm-4.851.399c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.377-.391c0-.216.169-.391.377-.391Zm10.313-2.056a.64.64 0 0 1 .628.652.64.64 0 0 1-.628.651.64.64 0 0 1-.627-.651c0-.36.281-.652.627-.652Zm-2.354-.128a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.628-.652c0-.36.281-.652.628-.652Zm-13.798.311c.207 0 .376.175.376.391a.384.384 0 0 1-.376.391.384.384 0 0 1-.377-.39c0-.217.169-.392.377-.392Zm11.832-.812a.64.64 0 0 1 .628.652.64.64 0 0 1-.628.651.64.64 0 0 1-.627-.651c0-.36.281-.652.627-.652Zm-6.285 0a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.651.64.64 0 0 1-.627-.651c0-.36.28-.652.627-.652Zm3.428 0a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.651.64.64 0 0 1-.627-.651c0-.36.28-.652.627-.652Zm-6.118.24c.208 0 .376.176.376.392a.384.384 0 0 1-.376.39.384.384 0 0 1-.377-.39c0-.216.169-.391.377-.391Zm11.261-2.525a.64.64 0 0 1 .627.651.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.651.627-.651Zm-3.557.484c.208 0 .376.175.376.391a.384.384 0 0 1-.376.391.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm-2.478-.555a.64.64 0 0 1 .627.652.64.64 0 0 1-.627.652.64.64 0 0 1-.627-.652c0-.36.28-.652.627-.652Zm-3.512-.26c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm-2.857 0c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm-4.571 0c.207 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.377-.391c0-.216.169-.391.377-.391Zm14.898-1.835a.64.64 0 0 1 .628.652.64.64 0 0 1-.628.651.64.64 0 0 1-.627-.651c0-.36.281-.652.627-.652Zm-8.027-.245c.208 0 .377.175.377.39a.384.384 0 0 1-.377.392.384.384 0 0 1-.376-.391c0-.216.169-.391.376-.391Zm6.271-1.349c.208 0 .377.175.377.391a.384.384 0 0 1-.377.391.384.384 0 0 1-.376-.39c0-.217.169-.392.376-.392Zm-11.484-.481c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm15.103-.972c.208 0 .376.175.376.391a.384.384 0 0 1-.376.391.384.384 0 0 1-.376-.39c0-.217.168-.392.376-.392Zm-9.333-1.404c.208 0 .376.175.376.39a.384.384 0 0 1-.376.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Zm-6.819-.405c.208 0 .377.175.377.39a.384.384 0 0 1-.377.392.384.384 0 0 1-.376-.391c0-.216.168-.391.376-.391Z",fill:"#003CFF",fillRule:"nonzero",mask:"url(#error-block-image-default-c)",transform:"rotate(116 12.367 83.503)"}),i.createElement("path",{stroke:"#FFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round",d:"M36.774 5.474H21.523"}),i.createElement("path",{d:"m67.818 94.025-4.996 3.913m4.996 11.91-4.996-3.912m-1.142 9.145-1.143-6.288m10.71-6.768h-7.262",stroke:"#4486FE",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"})),i.createElement("circle",{cx:8.571,cy:8.571,r:8.571,transform:"translate(22.857 142)",fill:"#FFCD6B",fillRule:"nonzero"}),i.createElement("g",{transform:"translate(132.857 124)"},i.createElement("mask",{id:"error-block-image-default-e",fill:"#fff"},i.createElement("use",{xlinkHref:"#error-block-image-default-d"})),i.createElement("use",{fill:"#FBBE47",fillRule:"nonzero",xlinkHref:"#error-block-image-default-d"}),i.createElement("circle",{fill:"#FFCD6B",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:13.886,cy:15.12,r:18.823}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:23.4,cy:29.057,r:1}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:30.343,cy:29.829,r:1}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:18.771,cy:32.657,r:1.286}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:29.571,cy:25.971,r:1.286}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:19.286,cy:7.971,r:1.286}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:26.486,cy:5.914,r:1.286}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:11.057,cy:6.943,r:1}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:30.086,cy:15.686,r:1.286}),i.createElement("circle",{fill:"#FFB400",fillRule:"nonzero",mask:"url(#error-block-image-default-e)",cx:22.886,cy:14.657,r:1})),i.createElement("path",{d:"m87.429 135.123 6.591-9.378v-.08h-5.99v-2.559h10.038v1.787l-6.44 9.254v.082h6.56v2.557h-10.76v-1.663Zm12.185-5.889 4.948-7.047v-.056h-4.498v-1.917h7.536v1.34l-4.849 6.942v.059h4.923v1.92h-8.06v-1.24Zm10.345.702 3.708-5.274v-.045h-3.372v-1.437h5.648v1.003l-3.628 5.206v.045H116v1.438h-6.041v-.936Z",fill:"#FFF",fillRule:"nonzero"}))),df=i.createElement("svg",{viewBox:"0 0 400 400",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},i.createElement("title",null,"@反馈/异常/网络服务异常"),i.createElement("defs",null,i.createElement("linearGradient",{x1:"50%",y1:"-116.862%",x2:"50%",y2:"90.764%",id:"error-block-image-disconnected-c"},i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.207,offset:"0%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.115,offset:"80.072%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:0,offset:"100%"})),i.createElement("circle",{id:"error-block-image-disconnected-d",cx:22.309,cy:22.309,r:22.309}),i.createElement("path",{id:"error-block-image-disconnected-a",d:"M0 0h400v400H0z"})),i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("mask",{id:"error-block-image-disconnected-b",fill:"#fff"},i.createElement("use",{xlinkHref:"#error-block-image-disconnected-a"})),i.createElement("g",{mask:"url(#error-block-image-disconnected-b)",fill:"url(#error-block-image-disconnected-c)"},i.createElement("path",{d:"M151.686 45.58c38.869-.623 77.391 34.03 103.046 70.573 17.416-21.644 34.253-32.465 50.51-32.465 26.666 0 56.701 28.548 90.105 85.643 3.539 6.05-7.164 14.87-32.107 26.462l-82.643 2.741c-14.686 11.745-62.45 1.252-138.305 2.467-55.58.89-91.518-2.468-107.816-10.074-23.505-3.07-33.154-7.983-28.946-14.74C59.313 89.813 108.03 46.278 151.686 45.58Zm186.195 99.06-.127.003-.126.01a2.32 2.32 0 0 0-.465.103l-.032.01-.031.01a2.364 2.364 0 0 0-.181.071 2.52 2.52 0 0 0-.116.054l-.133.067-.042.024-.036.02a2.946 2.946 0 0 0-.133.08l-.048.03a3.052 3.052 0 0 0-.126.087l-.047.033a3.274 3.274 0 0 0-.128.097c-.01.008-.02.017-.031.024a4.906 4.906 0 0 0-.31.27l-.036.032a6.654 6.654 0 0 0-.46.484l-.045.05c-3.344 3.91-5.755 14.083-5.755 17.908 0 4.547 3.409 8.275 7.74 8.625l.108.008v7.608c0 .779.502 1.41 1.121 1.41.62 0 1.121-.632 1.121-1.41v-7.762c3.838-.802 6.727-4.293 6.727-8.48 0-4.778-3.765-19.467-8.409-19.467Zm-200-10-.127.003-.126.01a2.32 2.32 0 0 0-.368.073l-.049.014-.048.016-.032.01-.031.01a2.364 2.364 0 0 0-.181.071l-.058.026-.058.028-.133.067-.042.024-.036.02-.066.039-.067.041-.048.03a3.052 3.052 0 0 0-.126.087l-.047.033a3.274 3.274 0 0 0-.128.097c-.01.008-.02.017-.031.024l-.156.13-.154.14-.036.032a6.654 6.654 0 0 0-.46.484l-.045.05c-3.344 3.91-5.755 14.083-5.755 17.908 0 4.547 3.409 8.275 7.74 8.625l.054.004.054.004v7.608c0 .779.502 1.41 1.121 1.41.58 0 1.058-.556 1.115-1.266l.006-.144v-7.762c3.838-.802 6.727-4.293 6.727-8.48 0-4.778-3.765-19.467-8.409-19.467Zm-28.029-12.373-.107.002-.106.006a2.978 2.978 0 0 0-.551.095 3.444 3.444 0 0 0-.323.104 3.962 3.962 0 0 0-.61.297c-.076.045-.15.092-.226.141-4.964 3.312-8.728 18.445-8.728 23.77 0 5.434 3.922 9.935 9.04 10.726l.28.04v9.236c0 .886.532 1.614 1.21 1.692l.121.007.122-.007c.638-.074 1.147-.723 1.204-1.538l.006-.155v-9.235c5.254-.668 9.32-5.234 9.32-10.767 0-5.993-4.77-24.414-10.652-24.414Z"})),i.createElement("g",{mask:"url(#error-block-image-disconnected-b)"},i.createElement("g",{transform:"translate(85.858 150.644)"},i.createElement("path",{d:"M116.26 28.467c1.352 0 2.703.018 4.054.054 3.923.385 10.188 4.248 9.267 11.061-.878 6.496-5.836 9.089-8.962 9.529a130.762 130.762 0 0 0-4.36-.072c-28.567 0-60.654 10.149-96.22 30.676l-2.227 1.297c-.744.437-1.49.878-2.236 1.323-4.878 2.911-11.193 1.316-14.103-3.562C-1.438 73.894.157 67.58 5.035 64.67 45.34 40.62 82.4 28.467 116.26 28.467Zm22 11.63c1.03-5.942 6.376-8.618 11.084-8.08C172.14 36.91 194.83 46.86 217.37 61.794c4.735 3.138 6.03 9.52 2.893 14.255-3.138 4.736-9.52 6.031-14.256 2.893-20.111-13.325-40.075-22.165-59.935-26.584a9.974 9.974 0 0 0-.325-.088c-3.987-1.015-8.602-5.738-7.487-12.175ZM116.26 77.418c22.777 0 45.4 7.057 67.73 20.988 4.82 3.007 6.289 9.351 3.282 14.17-3.007 4.82-9.351 6.29-14.17 3.283-19.194-11.974-38.095-17.87-56.842-17.87s-37.648 5.896-56.842 17.87c-4.82 3.007-11.164 1.537-14.17-3.282-3.007-4.82-1.538-11.164 3.282-14.171 22.33-13.931 44.953-20.988 67.73-20.988ZM117.974 124.67c9.85 0 17.303 1.69 25.687 5.082l.82.337 2.9 1.231 3.008 1.252.77.305.107.04c5.326 1.976 8.042 7.895 6.066 13.221-1.976 5.326-7.895 8.042-13.221 6.067l-.713-.27-.726-.285-.763-.31-1.263-.527-2.944-1.26-1.125-.473c-6.393-2.648-11.433-3.838-18.603-3.838-8.223 0-16.532 2.126-25.028 6.475-5.056 2.588-11.254.587-13.842-4.47-2.589-5.056-.588-11.253 4.47-13.842 11.313-5.791 22.814-8.735 34.4-8.735ZM118.235 197.047c7.15 0 13.77-.897 19.841-2.721 5.44-1.635 8.526-7.37 6.892-12.81-1.635-5.44-7.37-8.526-12.81-6.892-4.072 1.224-8.707 1.851-13.923 1.851-4.36 0-8.79-1.045-13.373-3.21l-.626-.301c-5.095-2.512-11.262-.418-13.773 4.678-2.512 5.095-.418 11.261 4.678 13.773 7.559 3.727 15.288 5.632 23.094 5.632Z",fill:"#377EFF",fillRule:"nonzero"}),i.createElement("path",{d:"M198.35 62.413c2.755-4.967 9.016-6.76 13.984-4.004 13.068 7.25 19.124 18.535 17.615 30.952-1.157 9.515-6.83 18.757-14.096 24.352-13.364 10.29-34.915 9.401-49.363-1.91-4.472-3.502-5.26-9.967-1.758-14.44 3.436-4.388 9.724-5.229 14.185-1.952l.255.194c7.283 5.702 18.475 6.164 24.13 1.809 3.072-2.366 5.766-6.754 6.226-10.536.467-3.844-1.21-7.07-6.796-10.267l-.378-.213c-4.967-2.756-6.76-9.017-4.004-13.985ZM61.35 103.092c-2.84-4.92-9.13-6.607-14.05-3.768-20.662 11.922-21.772 35.751-6.018 51.69 13.752 13.914 33.192 13.447 50.507 1.158 4.633-3.288 5.723-9.708 2.436-14.34-3.288-4.633-9.709-5.724-14.341-2.436-9.763 6.928-18.07 7.128-23.97 1.158-6.761-6.84-6.498-14.501 1.35-19.225l.317-.187c4.92-2.84 6.608-9.13 3.769-14.05ZM129.103 135.702c1.688-5.424 7.454-8.453 12.878-6.764 14.776 4.599 23.437 13.727 25.259 25.58 1.316 8.561-1.228 17.533-5.58 24.052-3.132 4.688-7.388 8.287-12.504 11.112-3.03 1.673-5.75 2.811-9.37 4.066l-1.4.477c-5.387 1.806-11.217-1.097-13.022-6.484-1.805-5.386 1.098-11.216 6.484-13.02l1.09-.374c6.032-2.112 9.602-4.19 11.613-7.201 1.693-2.535 2.818-6.502 2.356-9.503-.564-3.673-3.432-6.696-11.04-9.063-5.424-1.689-8.452-7.454-6.764-12.878Z",fill:"#377EFF",fillRule:"nonzero"}),i.createElement("path",{d:"M148.072 181.58c3.718-7.98 4.172-14.9 1.36-20.76-2.81-5.86-6.236-9.096-10.275-9.707",stroke:"#FFF",strokeWidth:.571,strokeLinecap:"round"}),i.createElement("ellipse",{fill:"#7EACFF",transform:"rotate(10 147 41.933)",cx:147,cy:41.933,rx:9.143,ry:10.286}),i.createElement("path",{d:"M210.422 107.472c3.718-7.98 4.172-14.9 1.36-20.76-2.81-5.86-6.668-9.883-11.572-12.067M51.604 131.769c-3.15-6.8-3.537-12.694-1.161-17.685 2.376-4.99 5.57-8.136 9.583-9.438",stroke:"#003CFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M21.53 64.408c4.946-3.389 9.817-6.026 14.612-7.912",stroke:"#FFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"m113.243 15.444 9.588 8.314M144.31 9.405l-5.775 11.3m18.389-1.246-11.907 4.643M127.64 5.66l2.77 14.255",stroke:"#4486FE",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"}))),i.createElement("g",{mask:"url(#error-block-image-disconnected-b)"},i.createElement("g",{transform:"translate(275.143 302.571)"},i.createElement("mask",{id:"error-block-image-disconnected-e",fill:"#fff"},i.createElement("use",{xlinkHref:"#error-block-image-disconnected-d"})),i.createElement("use",{fill:"#FBBE47",fillRule:"nonzero",xlinkHref:"#error-block-image-disconnected-d"}),i.createElement("circle",{fill:"#FFCD6B",fillRule:"nonzero",mask:"url(#error-block-image-disconnected-e)",cx:16.457,cy:17.92,r:22.309}),i.createElement("circle",{fill:"#FFF",fillRule:"nonzero",mask:"url(#error-block-image-disconnected-e)",cx:14.263,cy:12.069,r:2.194}))),i.createElement("g",{mask:"url(#error-block-image-disconnected-b)",fill:"#FBBE47",fillRule:"nonzero"},i.createElement("circle",{cx:12,cy:12,r:12,transform:"translate(84 297.714)"})))),ff=i.createElement("svg",{viewBox:"0 0 400 400",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},i.createElement("defs",null,i.createElement("linearGradient",{x1:"50%",y1:"-116.862%",x2:"50%",y2:"90.764%",id:"error-block-image-empty-a"},i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.207,offset:"0%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.115,offset:"80.072%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:0,offset:"100%"})),i.createElement("path",{d:"M146.183 18.461c31.705 23.336 33.349 71.85 4.93 96.614-.252.22 6.172 5.602 13.577 11.414l.686.537.69.54.695.54.348.27.698.54a341.27 341.27 0 0 0 8.806 6.596c1.114.802 4.643-.853 10.587-4.965l-.532 12.218a1.2 1.2 0 0 1-.481.91l-10.868 8.111c-1.405 1.048-3.32 1.185-4.854.072l-35.578-25.834c-33.414 17.333-79.913 15-109.804-7-33.444-24.616-33.444-75.95 0-100.563 33.443-24.615 87.657-24.615 121.1 0Zm-60.469 7.653C51.63 26.114 24 44.534 24 67.257S51.63 108.4 85.714 108.4s61.715-18.42 61.715-41.143c0-22.722-27.63-41.143-61.715-41.143Z",id:"error-block-image-empty-b"})),i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("path",{d:"M157.964 244.661H0L3.806 100.13a4.572 4.572 0 0 1 4.353-4.446l.217-.006h45.588V68.2a4.572 4.572 0 0 1 4.356-4.567l.216-.005h65.498l2.554-58.689a4.571 4.571 0 0 1 4.779-4.367l.214.015 87.79 8.222a4.572 4.572 0 0 1 4.126 4.133l.015.212 3.146 69.652L301.634 64.9a4.571 4.571 0 0 1 5.628 4.231l.005.215v43.955l56.162.001v130.264h-56.163v.001h-82.383v-.004h-66.919v1.098ZM89.503 160.03h-9.968v8.436h9.968v-8.436Zm0-14.507h-9.968v8.435h9.968v-8.435Zm197.985-5.15h-9.967v8.432h9.967v-8.431Zm-197.985-8.806h-9.968v8.436h9.968v-8.436Zm197.985-5.153h-9.967v8.432h9.967v-8.432Zm0-14.503h-9.967v8.432h9.967v-8.432Zm-84.643-.777h-30.8v8.436h30.8v-8.436Zm84.643-13.186h-9.967v8.436h9.967v-8.436Zm-84.643-3.29h-30.8v8.436h30.8v-8.436Zm0-15.912h-30.8v8.436h30.8v-8.436Z",transform:"translate(18.286 50.286)",fill:"url(#error-block-image-empty-a)"}),i.createElement("g",{transform:"translate(108.571 189.886)"},i.createElement("mask",{id:"error-block-image-empty-c",fill:"#fff"},i.createElement("use",{xlinkHref:"#error-block-image-empty-b"})),i.createElement("use",{fill:"#377EFF",xlinkHref:"#error-block-image-empty-b"}),i.createElement("path",{d:"M131.429 134.686a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm5.714 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285ZM128 133.543a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-5.714 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm21.143-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-9.143-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm12-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-6.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM120 128.971a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm5.714 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm16-1.142.125.006a1.143 1.143 0 1 1-.125-.006Zm11.429 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-22.857 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm17.143-1.143a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285ZM136 125.543a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-13.143 1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm4.572-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm18.857-2.286a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-16-1.143.124.007a1.143 1.143 0 1 1-.124-.007Zm11.428 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-22.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm36.572 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-5.715 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-37.143 1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm13.715-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm9.714-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm18.286-3.428a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-11.429 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-28 1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm5.714-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm17.715-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-5.715 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-6.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm17.143-4.571a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-11.428 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-5.143 1.142a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-8-1.142a.571.571 0 1 1 0 1.142.571.571 0 0 1 0-1.142Zm-9.143 0a.571.571 0 1 1 0 1.142.571.571 0 0 1 0-1.142Zm30.286-3.429a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM124 109.543a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm5.714 0a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm5.715-4.572a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-22.858-1.142a.571.571 0 1 1 0 1.142.571.571 0 0 1 0-1.142Zm-11.428-3.429a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM124 99.257a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM49.143 55.829a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm5.714 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-9.143-1.143a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-5.714 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm21.143-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM52 52.4a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm12-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-6.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-19.429-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm5.715 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm16-1.143.124.007a1.143 1.143 0 1 1-.124-.007Zm11.428 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-22.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm17.143-1.142a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-11.429-1.143a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-13.143 1.143a.571.571 0 1 1 0 1.142.571.571 0 0 1 0-1.142Zm4.572-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM64 44.4a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-16-1.143.125.007a1.143 1.143 0 1 1-.125-.007Zm11.429 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-22.858 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm36.572 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-5.714 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM30.286 44.4a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM44 43.257a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm9.714-1.143a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM72 38.686a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-11.429 0a1.143 1.143 0 1 1 0 2.285 1.143 1.143 0 0 1 0-2.285Zm-28 1.143a.571.571 0 1 1 0 1.142.571.571 0 0 1 0-1.142Zm5.715-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM56 37.543a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-5.714 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-6.857 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM60.57 32.97a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-11.428 0a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286ZM44 34.114a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-8-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-9.143 0a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm30.286-3.428a1.143 1.143 0 1 1 0 2.286 1.143 1.143 0 0 1 0-2.286Zm-15.429 1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm5.715 0a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm5.714-4.572a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-22.857-1.143a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Zm-11.429-3.428a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143ZM41.714 20.4a.571.571 0 1 1 0 1.143.571.571 0 0 1 0-1.143Z",fill:"#003CFF",fillRule:"nonzero",mask:"url(#error-block-image-empty-c)"})),i.createElement("path",{d:"M295.213 319.24c.744.546.745 1.433.002 1.98l-11.806 8.81c-1.069.799-3.326.474-4.853-.609l-35.622-25.241c-33.375 17.037-79.545 14.615-109.28-7.271-33.443-24.615-33.443-64.521 0-89.133 33.443-24.616 87.657-24.616 121.1 0 31.706 23.336 33.35 60.42 4.931 85.185-.543.473 35.528 26.278 35.528 26.278ZM148.06 220.015c-25.44 17.853-25.44 46.8 0 64.652 25.44 17.85 66.689 17.85 92.129 0 25.436-17.853 25.436-46.799 0-64.652-25.44-17.853-66.688-17.853-92.129 0Z",fill:"#5D96FE"}),i.createElement("path",{d:"M123.514 233.021c2.185-5.241 5.67-9.735 10.453-13.482M264.967 271.54c-2.185 5.24-5.67 9.734-10.453 13.481",stroke:"#FFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M81.143 252.571c7.574 0 13.714 23.88 13.714 31.649 0 6.97-4.942 12.755-11.429 13.871v11.672c0 1.235-.767 2.237-1.713 2.237-.904 0-1.644-.912-1.71-2.07l-.005-.167v-11.526c-7.04-.595-12.571-6.644-12.571-14.017 0-7.024 5.02-27.222 11.581-31.027l.096-.053c.027-.016.055-.03.082-.045l.067-.035.066-.033.1-.05.094-.041a3.34 3.34 0 0 1 .224-.093l.11-.042.097-.032c.038-.013.077-.025.115-.036l.053-.016.053-.014a3.351 3.351 0 0 1 .23-.055l.085-.016a3.95 3.95 0 0 1 .441-.054l.11-.005.11-.002Z",fill:"#FFCD6B",fillRule:"nonzero"}),i.createElement("g",{transform:"translate(283.429 177.143)",fillRule:"nonzero"},i.createElement("path",{d:"M22.475.847c12.34 0 22.345 37.935 22.345 50.276 0 11.395-8.53 20.798-19.552 22.172v19.019c0 1.932-1.25 3.5-2.792 3.5-1.49 0-2.707-1.46-2.79-3.301l-.004-.2-.001-19.018C8.659 71.92.13 62.518.13 51.123.13 40.071 8.154 8.49 18.694 2.015l.054-.031a5.94 5.94 0 0 1 .214-.128l.088-.048c.213-.12.427-.228.642-.326l.135-.06.18-.075.135-.053a5.796 5.796 0 0 1 .464-.16 4.44 4.44 0 0 1 .33-.092l.124-.03a7.122 7.122 0 0 1 .31-.065l.018-.003a6.305 6.305 0 0 1 .756-.088l.165-.007.166-.002Z",fill:"#FFCD6B"}),i.createElement("path",{d:"M22.475.847c12.34 0 22.345 37.935 22.345 50.276 0 11.395-8.53 20.798-19.552 22.172v19.019c0 1.932-1.25 3.5-2.792 3.5-1.543 0-2.794-1.566-2.794-3.5V73.295C8.659 71.921.13 62.518.13 51.123.13 38.783 10.134.847 22.475.847Z",fill:"#FFCD6B"}),i.createElement("circle",{fill:"#FFB400",cx:26.4,cy:56.869,r:1.45}),i.createElement("circle",{fill:"#FFB400",cx:39.453,cy:58.319,r:1}),i.createElement("circle",{fill:"#FFB400",cx:17.698,cy:63.637,r:2.417}),i.createElement("circle",{fill:"#FFB400",cx:38.002,cy:51.068,r:2.417}),i.createElement("circle",{fill:"#FFB400",cx:18.665,cy:17.228,r:2.417}),i.createElement("circle",{fill:"#FFB400",cx:32.201,cy:13.36,r:2.417}),i.createElement("circle",{fill:"#FFB400",cx:26.83,cy:20.666,r:1.45}),i.createElement("circle",{fill:"#FFB400",cx:38.969,cy:31.731,r:2.417}),i.createElement("circle",{fill:"#FFB400",cx:25.433,cy:29.797,r:1.45}),i.createElement("path",{d:"M34.197 53.033c0 9.825-6.934 18.017-16.172 19.987a22.44 22.44 0 0 0 4.45.448c12.34 0 22.344-10.004 22.344-22.345C44.82 38.783 34.815.847 22.475.847c8.947 14.03 11.722 40.891 11.722 52.186Z",fill:"#FBBE47"})))),mf=i.createElement("svg",{viewBox:"0 0 400 400",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},i.createElement("defs",null,i.createElement("linearGradient",{x1:"50%",y1:"-116.862%",x2:"50%",y2:"90.764%",id:"error-block-image-busy-a"},i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.207,offset:"0%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:.115,offset:"80.072%"}),i.createElement("stop",{stopColor:"#72A7FD",stopOpacity:0,offset:"100%"})),i.createElement("circle",{id:"error-block-image-busy-b",cx:34.857,cy:34.857,r:34.857})),i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("path",{d:"M157.964 243.667H0L3.806 99.134a4.572 4.572 0 0 1 4.353-4.446l.217-.005h45.588V67.205a4.572 4.572 0 0 1 4.356-4.566l.216-.005 65.498-.001 2.554-58.688a4.571 4.571 0 0 1 4.779-4.368l.214.015 87.79 8.222a4.572 4.572 0 0 1 4.126 4.133l.015.213 3.146 69.652 74.976-17.906a4.571 4.571 0 0 1 5.628 4.23l.005.216v43.955h56.162v130.265l-56.163-.001v.002h-82.383v-.004h-66.919v1.098Zm-68.461-84.631h-9.968v8.435h9.968v-8.435Zm0-14.508h-9.968v8.436h9.968v-8.436Zm197.985-5.149h-9.967v8.432h9.967v-8.432Zm-197.985-8.806h-9.968v8.436h9.968v-8.436Zm197.985-5.153h-9.967v8.432h9.967v-8.432Zm0-14.503h-9.967v8.432h9.967v-8.432Zm-84.643-.777h-30.8v8.436h30.8v-8.436Zm84.643-13.186h-9.967v8.435h9.967v-8.435Zm-84.643-3.29h-30.8v8.435h30.8v-8.435Zm0-15.912h-30.8v8.436h30.8v-8.436Z",transform:"translate(18.286 51.286)",fill:"url(#error-block-image-busy-a)"}),i.createElement("path",{d:"m250.934 176.555-101.963 1.038c-5.276.054-9.51 4.374-9.455 9.65.054 5.274 4.374 9.507 9.649 9.454l.958-.01c-.376 7.363 3.679 59.93 34.894 62.659 4.203.367 7.432.39 7.475 4.609.042 4.218-3.176 4.307-7.37 4.76-34.593 3.737-34.136 56.004-33.61 63.357l-.957.01c-5.276.053-9.51 4.373-9.455 9.649.053 5.275 4.374 9.508 9.649 9.454l101.963-1.039c5.275-.054 9.508-4.374 9.455-9.648-.055-5.276-4.374-9.51-9.65-9.455l-.958.01c.377-7.363-.729-59.672-34.894-62.66-4.202-.367-7.432-.39-7.474-4.608-.043-4.219 3.175-4.308 7.369-4.76 31.276-3.377 34.136-56.004 33.61-63.357l.958-.01c5.276-.053 9.508-4.373 9.455-9.649-.055-5.276-4.374-9.509-9.65-9.454Z",fill:"#377EFF"}),i.createElement("path",{d:"M233.524 314.422c.108.684.772 1.148 1.483 1.035.711-.112 1.2-.758 1.091-1.443-.108-.684-.772-1.147-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-.894-5.644c.108.684.772 1.148 1.483 1.035.711-.112 1.2-.758 1.091-1.443-.108-.684-.772-1.147-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-.149 17.865c.108.684.773 1.147 1.483 1.035.711-.113 1.2-.759 1.091-1.443-.108-.684-.772-1.148-1.483-1.035-.71.112-1.2.758-1.09 1.443Zm-2.144-8.182c.109.684.773 1.148 1.484 1.035.71-.113 1.199-.759 1.09-1.443-.108-.684-.772-1.148-1.483-1.035-.71.113-1.2.759-1.09 1.443Zm-1.586-4.694c.108.684.772 1.148 1.483 1.035.711-.113 1.2-.759 1.091-1.443-.108-.684-.772-1.147-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-1.013-5.88c.109.685.773 1.148 1.484 1.036.71-.113 1.2-.759 1.09-1.443-.107-.684-.772-1.148-1.483-1.035-.71.113-1.199.759-1.09 1.443Zm.236 15.575c.108.685.772 1.148 1.483 1.035.71-.112 1.2-.758 1.09-1.442-.107-.685-.772-1.148-1.483-1.035-.71.112-1.199.758-1.09 1.442Zm-.4 4.494c.108.684.772 1.147 1.483 1.035.71-.113 1.2-.759 1.091-1.443-.108-.684-.773-1.148-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-3.88-8.601c.108.684.772 1.147 1.483 1.035.71-.113 1.199-.759 1.09-1.443-.108-.684-.772-1.148-1.483-1.035-.71.113-1.2.759-1.09 1.443Zm-.524-7.186c.065.41.463.688.89.62.426-.067.72-.454.654-.865-.065-.41-.463-.688-.89-.62-.426.067-.72.454-.654.865Zm-2.265-4.102c.109.684.773 1.148 1.484 1.035.71-.113 1.2-.759 1.09-1.443-.108-.684-.772-1.147-1.483-1.035-.71.113-1.199.759-1.09 1.443Zm-.545-6.518c.065.41.464.689.89.621.427-.067.72-.455.655-.865-.065-.41-.464-.689-.89-.621-.427.067-.72.455-.655.865Zm2.098 23.629c.109.684.773 1.147 1.484 1.035.71-.113 1.2-.759 1.09-1.443-.108-.684-.772-1.148-1.483-1.035-.71.112-1.199.758-1.09 1.443Zm-.756-9.65c.043.274.309.46.593.414a.512.512 0 0 0 .437-.577.512.512 0 0 0-.594-.414.512.512 0 0 0-.436.577Zm-.808 20.96c.109.684.773 1.147 1.484 1.034.71-.112 1.2-.758 1.09-1.442-.108-.685-.772-1.148-1.483-1.036-.71.113-1.199.759-1.09 1.443Zm-4.691-31.966c.065.41.463.689.89.621.426-.068.72-.455.654-.866-.065-.41-.463-.688-.89-.62-.426.067-.72.454-.654.865Zm2.098 23.628c.108.684.772 1.148 1.483 1.035.711-.112 1.2-.758 1.091-1.443-.108-.684-.772-1.147-1.483-1.035-.711.113-1.2.759-1.091 1.443Zm-1.967-12.416c.109.684.773 1.147 1.484 1.035.71-.113 1.199-.759 1.09-1.443-.108-.684-.772-1.148-1.483-1.035-.71.112-1.2.758-1.09 1.443Zm1.073 6.772c.108.685.772 1.148 1.483 1.035.711-.112 1.2-.758 1.091-1.442-.108-.685-.772-1.148-1.483-1.036-.711.113-1.2.759-1.091 1.443Zm-.009-3.131c.065.41.464.689.89.621.427-.068.72-.455.655-.866-.065-.41-.464-.688-.89-.62-.427.067-.72.454-.655.865Zm-1.43-9.03c.065.41.463.688.89.62.426-.067.72-.454.655-.865-.065-.41-.464-.689-.89-.62-.427.067-.72.454-.655.865ZM214.5 333.38c.108.685.772 1.148 1.483 1.036.711-.113 1.2-.759 1.091-1.443-.108-.684-.772-1.148-1.483-1.035-.711.112-1.2.758-1.091 1.442Zm-.156-7.178c.065.41.464.689.89.621.427-.067.72-.455.655-.865-.065-.41-.464-.689-.89-.621-.427.067-.72.455-.655.865Zm-1.871-4.72c.108.684.773 1.147 1.483 1.034.711-.112 1.2-.758 1.091-1.442-.108-.685-.772-1.148-1.483-1.035-.71.112-1.2.758-1.091 1.442Zm-1.614-6.857c.065.41.464.689.89.621.427-.068.72-.455.655-.866-.065-.41-.464-.688-.89-.62-.427.067-.72.454-.655.865Zm-.894-5.644c.065.41.464.689.89.621.427-.067.72-.455.655-.866-.065-.41-.463-.688-.89-.62-.427.067-.72.455-.655.865Zm-1.43-9.03c.065.41.464.688.89.62.427-.067.72-.454.655-.865-.065-.41-.464-.688-.89-.62-.427.067-.72.454-.655.865Zm-1.958 14.225c.065.41.463.689.89.62.426-.067.72-.454.654-.865-.065-.41-.463-.688-.89-.62-.426.067-.72.454-.654.865Zm-.703 12.81c.065.41.464.688.89.62.427-.067.72-.455.655-.865-.065-.41-.463-.689-.89-.621-.427.067-.72.455-.655.866Zm-4.543-22.536c.065.41.463.689.89.621.426-.067.72-.455.654-.865-.065-.41-.463-.689-.89-.621-.426.067-.72.455-.654.865Zm2.806 30.138c.065.41.463.689.89.621.426-.067.72-.455.654-.865-.065-.41-.463-.689-.89-.621-.426.067-.72.455-.654.865Zm-5.694-17.996c.065.41.463.688.89.62.426-.067.72-.455.654-.865-.065-.41-.463-.689-.89-.621-.426.067-.72.455-.654.866Zm-2.935-13.343c.066.41.464.688.89.62.427-.067.72-.454.655-.865-.065-.41-.463-.689-.89-.621-.426.068-.72.455-.655.866Z",fill:"#003CFF",fillRule:"nonzero"}),i.createElement("path",{d:"m250.934 176.555-101.963 1.038c-5.276.054-9.51 4.374-9.455 9.65.054 5.274 4.374 9.507 9.649 9.454l101.963-1.04c5.276-.052 9.508-4.372 9.455-9.648-.055-5.276-4.374-9.509-9.65-9.454ZM252.64 331.241l-101.964 1.038c-5.275.054-9.508 4.374-9.454 9.65.054 5.275 4.374 9.508 9.649 9.454l101.963-1.039c5.275-.053 9.507-4.373 9.454-9.649-.054-5.275-4.374-9.508-9.649-9.454Z",fill:"#7EACFF"}),i.createElement("path",{stroke:"#003CFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round",d:"m196.824 197.298 52.216-.506M193.329 330.5h52.215"}),i.createElement("path",{d:"M167.367 228.041c-4.091-10.787-6.086-20.934-5.985-30.44",stroke:"#FFF",strokeWidth:.75,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("circle",{cx:14.857,cy:14.857,r:14.857,transform:"translate(106.857 248.571)",fill:"#FFCD6B",fillRule:"nonzero"}),i.createElement("g",{transform:"translate(236.571 284.571)"},i.createElement("mask",{id:"error-block-image-busy-c",fill:"#fff"},i.createElement("use",{xlinkHref:"#error-block-image-busy-b"})),i.createElement("use",{fill:"#FBBE47",fillRule:"nonzero",xlinkHref:"#error-block-image-busy-b"}),i.createElement("circle",{fill:"#FFCD6B",fillRule:"nonzero",mask:"url(#error-block-image-busy-c)",cx:25.714,cy:28,r:34.857}),i.createElement("circle",{fill:"#FFF",fillRule:"nonzero",mask:"url(#error-block-image-busy-c)",cx:22.286,cy:18.857,r:3.429})))),pf=cf({default:uf,disconnected:df,empty:ff,busy:mf});let Gt=null,Xt=null;Ot&&(Gt=document.createElement("div"),Gt.className="adm-px-tester",Gt.style.setProperty("--size","10"),document.body.appendChild(Gt),Xt=document.createElement("div"),Xt.className="adm-px-tester",document.body.appendChild(Xt));function hf(t){return Gt===null||Xt===null||Gt.getBoundingClientRect().height===10?t:(Xt.style.setProperty("--size",t.toString()),Xt.getBoundingClientRect().height)}const Wa="adm-grid",Re=we(t=>{const e={"--columns":t.columns.toString()},{gap:n}=t;return n!==void 0&&(Array.isArray(n)?(e["--gap-horizontal"]=Et(n[0]),e["--gap-vertical"]=Et(n[1])):e["--gap"]=Et(n)),Y(t,i.createElement("div",{className:Wa,style:e},t.children))},{Item:t=>{const e=re({span:1},t),n={"--item-span":e.span};return Y(e,i.createElement("div",{className:`${Wa}-item`,style:n,onClick:e.onClick},e.children))}}),gf=s1([Hi,Hd]),wr=()=>[1,0,0,1,0,0],Ha=t=>t[4],Ua=t=>t[5],En=t=>t[0],In=(t,e,n)=>qa([1,0,0,1,e,n],t),vf=(t,e,n=e)=>qa([e,0,0,n,0,0],t),bf=(t,[e,n])=>[t[0]*e+t[2]*n+t[4],t[1]*e+t[3]*n+t[5]],qa=(t,e)=>[t[0]*e[0]+t[2]*e[1],t[1]*e[0]+t[3]*e[1],t[0]*e[2]+t[2]*e[3],t[1]*e[2]+t[3]*e[3],t[0]*e[4]+t[2]*e[5]+t[4],t[1]*e[4]+t[3]*e[5]+t[5]],Wo="adm-image-viewer",Ya=t=>{const{dragLockRef:e,maxZoom:n}=t,r=i.useRef([]),o=i.useRef(null),s=i.useRef(null),[{matrix:a},l]=Ve(()=>({matrix:wr(),config:{tension:200}})),c=ne.useSize(o),u=ne.useSize(s),d=i.useRef(!1),f=g=>{if(!c||!u)return{x:{position:0,minX:0,maxX:0},y:{position:0,minY:0,maxY:0}};const y=-c.width/2,p=-c.height/2,x=-u.width/2,S=-u.height/2,C=En(g),w=C*u.width,k=C*u.height,E=y-(w-c.width),I=y,T=p-(k-c.height),Z=p,[M,N]=bf(g,[x,S]);return{x:{position:M,minX:E,maxX:I},y:{position:N,minY:T,maxY:Z}}},v=(g,y,p,x=0)=>[g<=y-x,g>=p+x],b=(g,y,p=!1)=>{if(!c||!u)return g;const x=En(g),S=x*u.width,C=x*u.height,{x:{position:w,minX:k,maxX:E},y:{position:I,minY:T,maxY:Z}}=f(g);if(y==="translate"){let M=w,N=I;return S>c.width?M=p?xe(w,k,E):mr(w,k,E,x*50):M=-S/2,C>c.height?N=p?xe(I,T,Z):mr(I,T,Z,x*50):N=-C/2,In(g,M-w,N-I)}if(y==="scale"&&p){const[M,N]=[S>c.width?xe(w,k,E):-S/2,C>c.height?xe(I,T,Z):-C/2];return In(g,M-w,N-I)}return g};return gf({onDrag:g=>{var y;if(g.first){const{x:{position:x,minX:S,maxX:C}}=f(a.get());r.current=v(x,S,C);return}if(g.pinching)return g.cancel();if(g.tap&&g.elapsedTime>0&&g.elapsedTime<1e3){(y=t.onTap)===null||y===void 0||y.call(t);return}const p=En(a.get());if(e&&(e.current=p!==1),!d.current&&p<=1)l.start({matrix:wr()});else{const x=a.get(),S=[g.offset[0]-Ha(x),g.offset[1]-Ua(x)],C=In(x,...g.last?[S[0]+g.velocity[0]*g.direction[0]*200,S[1]+g.velocity[1]*g.direction[1]*200]:S);l.start({matrix:b(C,"translate",g.last),immediate:!g.last});const{x:{position:w,minX:k,maxX:E}}=f(C);g.last&&r.current.some(I=>I)&&v(w,k,E).some(I=>I)&&(e&&(e.current=!1),l.start({matrix:wr()}))}},onPinch:g=>{var y;d.current=!g.last;const[p]=g.offset;if(p<0)return;let x;n==="auto"?x=c&&u?Math.max(c.height/u.height,c.width/u.width):1:x=n;const S=g.last?xe(p,1,x):p;if((y=t.onZoomChange)===null||y===void 0||y.call(t,S),g.last&&S<=1)l.start({matrix:wr()}),e&&(e.current=!1);else{if(!c)return;const C=a.get(),w=En(C),k=g.origin[0]-c.width/2,E=g.origin[1]-c.height/2;let I=In(C,-k,-E);I=vf(I,S/w),I=In(I,k,E),l.start({matrix:b(I,"scale",g.last),immediate:!g.last}),e&&(e.current=!0)}}},{target:o,drag:{from:()=>[Ha(a.get()),Ua(a.get())],pointer:{touch:!0}},pinch:{from:()=>[En(a.get()),0],pointer:{touch:!0}}}),i.createElement("div",{className:`${Wo}-slide`},i.createElement("div",{className:`${Wo}-control`,ref:o},i.createElement(ke.div,{className:`${Wo}-image-wrapper`,style:{matrix:a}},i.createElement("img",{ref:s,src:t.image,draggable:!1,alt:t.image}))))},Ho="adm-image-viewer",yf=i.forwardRef((t,e)=>{const n=window.innerWidth+hf(16),[{x:r},o]=Ve(()=>({x:t.defaultIndex*n,config:{tension:250,clamp:!0}})),s=t.images.length;function a(u,d=!1){var f;const v=xe(u,0,s-1);(f=t.onIndexChange)===null||f===void 0||f.call(t,v),o.start({x:v*n,immediate:d})}i.useImperativeHandle(e,()=>({swipeTo:a}));const l=i.useRef(!1),c=rr(u=>{if(l.current)return;const[d]=u.offset;if(u.last){const f=Math.floor(d/n),v=f+1,b=Math.min(u.velocity[0]*2e3,n)*u.direction[0];a(xe(Math.round((d+b)/n),f,v))}else o.start({x:d,immediate:!0})},{transform:([u,d])=>[-u,d],from:()=>[r.get(),0],bounds:()=>({left:0,right:(s-1)*n}),rubberband:!0,axis:"x",pointer:{touch:!0}});return i.createElement("div",Object.assign({className:`${Ho}-slides`},c()),i.createElement(ke.div,{className:`${Ho}-indicator`},r.to(u=>`${xe(Math.round(u/n),0,s-1)+1} / ${s}`)),i.createElement(ke.div,{className:`${Ho}-slides-inner`,style:{x:r.to(u=>-u)}},t.images.map((u,d)=>i.createElement(Ya,{key:d,image:u,onTap:t.onTap,maxZoom:t.maxZoom,onZoomChange:f=>{if(f!==1){const v=Math.round(r.get()/n);o.start({x:v*n})}},dragLockRef:l}))))}),kr="adm-image-viewer",Ga={maxZoom:3,getContainer:null,visible:!1},Xa=t=>{var e,n,r;const o=re(Ga,t),s=i.createElement(Qn,{visible:o.visible,disableBodyScroll:!1,opacity:"thick",afterClose:o.afterClose,destroyOnClose:!0,className:(e=o==null?void 0:o.classNames)===null||e===void 0?void 0:e.mask},i.createElement("div",{className:H(`${kr}-content`,(n=o==null?void 0:o.classNames)===null||n===void 0?void 0:n.body)},o.image&&i.createElement(Ya,{image:o.image,onTap:o.onClose,maxZoom:o.maxZoom})),o.image&&i.createElement("div",{className:`${kr}-footer`},(r=o.renderFooter)===null||r===void 0?void 0:r.call(o,o.image),i.createElement(yn,{position:"bottom"})));return Xn(o.getContainer,s)},xf=Object.assign(Object.assign({},Ga),{defaultIndex:0}),Ja=i.forwardRef((t,e)=>{var n,r,o;const s=re(xf,t),[a,l]=i.useState(s.defaultIndex),c=i.useRef(null);i.useImperativeHandle(e,()=>({swipeTo:(f,v)=>{var b;l(f),(b=c.current)===null||b===void 0||b.swipeTo(f,v)}}));const u=i.useCallback(f=>{var v;f!==a&&(l(f),(v=s.onIndexChange)===null||v===void 0||v.call(s,f))},[s.onIndexChange,a]),d=i.createElement(Qn,{visible:s.visible,disableBodyScroll:!1,opacity:"thick",afterClose:s.afterClose,destroyOnClose:!0,className:(n=s==null?void 0:s.classNames)===null||n===void 0?void 0:n.mask},i.createElement("div",{className:H(`${kr}-content`,(r=s==null?void 0:s.classNames)===null||r===void 0?void 0:r.body)},s.images&&i.createElement(yf,{ref:c,defaultIndex:a,onIndexChange:u,images:s.images,onTap:s.onClose,maxZoom:s.maxZoom})),s.images&&i.createElement("div",{className:`${kr}-footer`},(o=s.renderFooter)===null||o===void 0?void 0:o.call(s,s.images[a],a),i.createElement(yn,{position:"bottom"})));return Xn(s.getContainer,d)}),Jt=new Set;function Cf(t){Uo();const e=xn(i.createElement(Xa,Object.assign({},t,{afterClose:()=>{var n;Jt.delete(e),(n=t.afterClose)===null||n===void 0||n.call(t)}})));return Jt.add(e),e}function Sf(t){Uo();const e=xn(i.createElement(Ja,Object.assign({},t,{afterClose:()=>{var n;Jt.delete(e),(n=t.afterClose)===null||n===void 0||n.call(t)}})));return Jt.add(e),e}function Uo(){Jt.forEach(t=>{t.close()}),Jt.clear()}const wf=we(Ja,{show:Sf}),kf=we(Xa,{Multi:wf,show:Cf,clear:Uo}),_t="adm-image-uploader",Qa=t=>{const{locale:e}=Pe(),{url:n,file:r,deletable:o,deleteIcon:s,onDelete:a,imageFit:l}=t,c=i.useMemo(()=>n||(r?URL.createObjectURL(r):""),[n,r]);i.useEffect(()=>()=>{r&&URL.revokeObjectURL(c)},[c,r]);function u(){return t.status==="pending"&&i.createElement("div",{className:`${_t}-cell-mask`},i.createElement("span",{className:`${_t}-cell-loading`},i.createElement(Ao,{color:"white"}),i.createElement("span",{className:`${_t}-cell-mask-message`},e.ImageUploader.uploading)))}function d(){return o&&i.createElement("span",{className:`${_t}-cell-delete`,onClick:a},s)}return i.createElement("div",{className:H(`${_t}-cell`,t.status==="fail"&&`${_t}-cell-fail`)},i.createElement(ea,{className:`${_t}-cell-image`,src:c,fit:l,onClick:t.onClick}),u(),d())},Pt="adm-space",Ef={direction:"horizontal"},$n=t=>{const e=re(Ef,t),{direction:n,onClick:r}=e;return Y(e,i.createElement("div",{className:H(Pt,{[`${Pt}-wrap`]:e.wrap,[`${Pt}-block`]:e.block,[`${Pt}-${n}`]:!0,[`${Pt}-align-${e.align}`]:!!e.align,[`${Pt}-justify-${e.justify}`]:!!e.justify}),onClick:r},i.Children.map(e.children,o=>o!=null&&i.createElement("div",{className:`${Pt}-item`},o))))},et="adm-image-uploader",If={disableUpload:!1,deletable:!0,deleteIcon:i.createElement(Rn,{className:`${et}-cell-delete-icon`}),showUpload:!0,multiple:!1,maxCount:0,defaultValue:[],accept:"image/*",preview:!0,showFailed:!0,imageFit:"cover"},Ra=i.forwardRef((t,e)=>{const{locale:n}=Pe(),r=re(If,t),{columns:o}=r,[s,a]=Ie(r),[l,c]=i.useState([]),u=i.useRef(null),d=ne.useSize(u),f=i.useRef(null),[v,b]=i.useState(80),g=i.useRef(null);ne.useIsomorphicLayoutEffect(()=>{const z=f.current;if(o&&d&&z){const _=d.width,F=pa(window.getComputedStyle(z).getPropertyValue("height"));b((_-F*(o-1))/o)}},[d==null?void 0:d.width]);const y={"--cell-size":v+"px"};ne.useIsomorphicLayoutEffect(()=>{c(z=>z.filter(_=>_.url===void 0?!0:!s.some(F=>F.url===_.url)))},[s]),ne.useIsomorphicLayoutEffect(()=>{var z;(z=r.onUploadQueueChange)===null||z===void 0||z.call(r,l.map(_=>({id:_.id,status:_.status})))},[l]);const p=i.useRef(0),{maxCount:x,onPreview:S,renderItem:C}=r;function w(z,_){return yt(this,void 0,void 0,function*(){const{beforeUpload:F}=r;let P=z;return P=yield F==null?void 0:F(z,_),P})}function k(z){return r.showFailed?z:z.filter(_=>_.status!=="fail")}function E(z){var _;return yt(this,void 0,void 0,function*(){z.persist();const{files:F}=z.target;if(!F)return;let P=[].slice.call(F);if(z.target.value="",r.beforeUpload){const V=P.map(j=>w(j,P));yield Promise.all(V).then(j=>{P=j.filter(Boolean)})}if(P.length===0)return;if(x>0){const V=s.length+P.length-x;V>0&&(P=P.slice(0,P.length-V),(_=r.onCountExceed)===null||_===void 0||_.call(r,V))}const B=P.map(V=>({id:p.current++,status:"pending",file:V}));c(V=>[...k(V),...B]);const O=[];yield Promise.all(B.map((V,j)=>yt(this,void 0,void 0,function*(){try{const A=yield r.upload(V.file);O[j]=A,c(W=>W.map(q=>q.id===V.id?Object.assign(Object.assign({},q),{status:"success",url:A.url}):q))}catch(A){throw c(W=>W.map(q=>q.id===V.id?Object.assign(Object.assign({},q),{status:"fail"}):q)),A}}))).catch(V=>console.error(V)),a(V=>V.concat(O))})}const I=i.useRef(null);function T(z){I.current=kf.Multi.show({images:s.map(_=>_.url),defaultIndex:z,onClose:()=>{I.current=null}})}ne.useUnmount(()=>{var z;(z=I.current)===null||z===void 0||z.close()});const Z=k(l),M=r.showUpload&&(x===0||s.length+Z.length<x),N=()=>s.map((z,_)=>{var F,P;const B=i.createElement(Qa,{key:(F=z.key)!==null&&F!==void 0?F:_,url:(P=z.thumbnailUrl)!==null&&P!==void 0?P:z.url,deletable:r.deletable,deleteIcon:r.deleteIcon,imageFit:r.imageFit,onClick:()=>{r.preview&&T(_),S&&S(_,z)},onDelete:()=>yt(void 0,void 0,void 0,function*(){var O;(yield(O=r.onDelete)===null||O===void 0?void 0:O.call(r,z))!==!1&&a(s.filter((j,A)=>A!==_))})});return C?C(B,z,s):B}),U=i.createElement(i.Fragment,null,N(),l.map(z=>!r.showFailed&&z.status==="fail"?null:i.createElement(Qa,{key:z.id,file:z.file,deletable:z.status!=="pending",deleteIcon:r.deleteIcon,status:z.status,imageFit:r.imageFit,onDelete:()=>{c(l.filter(_=>_.id!==z.id))}})),i.createElement("div",{className:`${et}-upload-button-wrap`,style:M?void 0:{display:"none"}},r.children||i.createElement("span",{className:`${et}-cell ${et}-upload-button`,role:"button","aria-label":n.ImageUploader.upload},i.createElement("span",{className:`${et}-upload-button-icon`},i.createElement(Qu,null))),!r.disableUpload&&i.createElement("input",{"aria-label":n.ImageUploader.upload,ref:g,capture:r.capture,accept:r.accept,multiple:r.multiple,type:"file",className:`${et}-input`,onChange:E})));return i.useImperativeHandle(e,()=>({get nativeElement(){return g.current}})),Y(r,i.createElement("div",{className:et,ref:u},o?i.createElement(Re,{className:`${et}-grid`,columns:o,style:y},i.createElement("div",{className:`${et}-gap-measure`,ref:f}),U.props.children):i.createElement($n,{className:`${et}-space`,wrap:!0,block:!0},U.props.children)))});function el({onEnterPress:t,onKeyDown:e,nativeInputRef:n,enterKeyHint:r}){const o=s=>{t&&(s.code==="Enter"||s.keyCode===13)&&t(s),e==null||e(s)};return ne.useIsomorphicLayoutEffect(()=>{const s=n.current;if(!(!r||!s))return s.setAttribute("enterkeyhint",r),()=>{s.removeAttribute("enterkeyhint")}},[r]),o}const Er="adm-input",$f={defaultValue:"",clearIcon:i.createElement(Ru,null),onlyShowClearWhenFocus:!0},qo=i.forwardRef((t,e)=>{const{locale:n,input:r={}}=Pe(),o=re($f,r,t),[s,a]=Ie(o),[l,c]=i.useState(!1),u=i.useRef(!1),d=i.useRef(null),f=el({onEnterPress:o.onEnterPress,onKeyDown:o.onKeyDown,nativeInputRef:d,enterKeyHint:o.enterKeyHint});i.useImperativeHandle(e,()=>({clear:()=>{a("")},focus:()=>{var g;(g=d.current)===null||g===void 0||g.focus()},blur:()=>{var g;(g=d.current)===null||g===void 0||g.blur()},get nativeElement(){return d.current}}));function v(){let g=s;if(o.type==="number"){const y=g&&xe(parseFloat(g),o.min,o.max).toString();Number(g)!==Number(y)&&(g=y)}g!==s&&a(g)}const b=!o.clearable||!s||o.readOnly?!1:o.onlyShowClearWhenFocus?l:!0;return Y(o,i.createElement("div",{className:H(`${Er}`,o.disabled&&`${Er}-disabled`)},i.createElement("input",{ref:d,className:`${Er}-element`,value:s,onChange:g=>{a(g.target.value)},onFocus:g=>{var y;c(!0),(y=o.onFocus)===null||y===void 0||y.call(o,g)},onBlur:g=>{var y;c(!1),v(),(y=o.onBlur)===null||y===void 0||y.call(o,g)},onPaste:o.onPaste,id:o.id,placeholder:o.placeholder,disabled:o.disabled,readOnly:o.readOnly,maxLength:o.maxLength,minLength:o.minLength,max:o.max,min:o.min,autoComplete:o.autoComplete,enterKeyHint:o.enterKeyHint,autoFocus:o.autoFocus,pattern:o.pattern,inputMode:o.inputMode,type:o.type,name:o.name,autoCapitalize:o.autoCapitalize,autoCorrect:o.autoCorrect,onKeyDown:f,onKeyUp:o.onKeyUp,onCompositionStart:g=>{var y;u.current=!0,(y=o.onCompositionStart)===null||y===void 0||y.call(o,g)},onCompositionEnd:g=>{var y;u.current=!1,(y=o.onCompositionEnd)===null||y===void 0||y.call(o,g)},onClick:o.onClick,step:o.step,role:o.role,"aria-valuenow":o["aria-valuenow"],"aria-valuemax":o["aria-valuemax"],"aria-valuemin":o["aria-valuemin"],"aria-label":o["aria-label"]}),b&&i.createElement("div",{className:`${Er}-clear`,onMouseDown:g=>{g.preventDefault()},onClick:()=>{var g,y;a(""),(g=o.onClear)===null||g===void 0||g.call(o),F1()&&u.current&&(u.current=!1,(y=d.current)===null||y===void 0||y.blur())},"aria-label":n.Input.clear},o.clearIcon)))}),tt="adm-jumbo-tabs",tl=we(t=>{var e;const n=i.useRef(null),r=i.useRef(null),o={};let s=null;const a=[];Fo(t.children,(f,v)=>{if(!i.isValidElement(f))return;const b=f.key;if(typeof b!="string")return;v===0&&(s=b);const g=a.push(f);o[b]=g-1});const[l,c]=Ie({value:t.activeKey,defaultValue:(e=t.defaultActiveKey)!==null&&e!==void 0?e:s,onChange:f=>{var v;f!==null&&((v=t.onChange)===null||v===void 0||v.call(t,f))}}),{scrollLeft:u,animate:d}=U1(n,o[l]);return ua(()=>{d(!0)},r),Y(t,i.createElement("div",{className:tt,ref:r},i.createElement("div",{className:`${tt}-header`},i.createElement(q1,{scrollTrackRef:n}),i.createElement(ke.div,{className:`${tt}-tab-list`,ref:n,scrollLeft:u},a.map(f=>Y(f.props,i.createElement("div",{key:f.key,className:`${tt}-tab-wrapper`},i.createElement("div",{onClick:()=>{const{key:v}=f;f.props.disabled||v!=null&&c(v.toString())},className:H(`${tt}-tab`,{[`${tt}-tab-active`]:f.key===l,[`${tt}-tab-disabled`]:f.props.disabled})},i.createElement("div",{className:`${tt}-tab-title`},f.props.title),i.createElement("div",{className:`${tt}-tab-description`},f.props.description))))))),a.map(f=>{if(f.props.children===void 0)return null;const v=f.key===l;return i.createElement(Jn,{key:f.key,active:v,forceRender:f.props.forceRender,destroyOnClose:f.props.destroyOnClose},i.createElement("div",{className:`${tt}-content`,style:{display:v?"block":"none"}},f.props.children))})))},{Tab:()=>null}),Qt="adm-nav-bar",nl=i.createElement(td,null),_f=t=>{const{navBar:e={}}=Pe(),n=re(e,t),{back:r,backIcon:o,backArrow:s}=n,a=e.backIcon||nl,l=Ar(nl,e.backIcon,s===!0?a:s,o===!0?a:o);return Y(n,i.createElement("div",{className:H(Qt)},i.createElement("div",{className:`${Qt}-left`,role:"button"},r!==null&&i.createElement("div",{className:`${Qt}-back`,onClick:n.onBack},l&&i.createElement("span",{className:`${Qt}-back-arrow`},l),i.createElement("span",{"aria-hidden":"true"},r)),n.left),i.createElement("div",{className:`${Qt}-title`},n.children),i.createElement("div",{className:`${Qt}-right`},n.right)))},_n="adm-page-indicator",Pf={color:"primary",direction:"horizontal"},Ff=i.memo(t=>{const e=re(Pf,t),n=[];for(let r=0;r<e.total;r++)n.push(i.createElement("div",{key:r,className:H(`${_n}-dot`,{[`${_n}-dot-active`]:e.current===r})}));return Y(e,i.createElement("div",{className:H(_n,`${_n}-${e.direction}`,`${_n}-color-${e.color}`)},n))}),rl=i.createContext(null),Mf={disabled:!1,defaultValue:null},Nf=t=>{const e=re(Mf,t),[n,r]=Ie({value:e.value,defaultValue:e.defaultValue,onChange:o=>{var s;o!==null&&((s=e.onChange)===null||s===void 0||s.call(e,o))}});return i.createElement(rl.Provider,{value:{value:n===null?[]:[n],check:o=>{r(o)},uncheck:()=>{},disabled:e.disabled}},e.children)},Ft="adm-radio",Tf={defaultChecked:!1},Yo=we(t=>{const e=re(Tf,t),n=i.useContext(rl);let[r,o]=Ie({value:e.checked,defaultValue:e.defaultChecked,onChange:e.onChange}),s=e.disabled;const{value:a}=e;n&&a!==void 0&&(r=n.value.includes(a),o=c=>{var u;c?n.check(a):n.uncheck(a),(u=e.onChange)===null||u===void 0||u.call(e,c)},s=s||n.disabled);const l=()=>e.icon?i.createElement("div",{className:`${Ft}-custom-icon`},e.icon(r)):i.createElement("div",{className:`${Ft}-icon`},r&&i.createElement(Pa,null));return Y(e,i.createElement("label",{onClick:e.onClick,className:H(Ft,{[`${Ft}-checked`]:r,[`${Ft}-disabled`]:s,[`${Ft}-block`]:e.block})},i.createElement(Fa,{type:"radio",checked:r,onChange:o,disabled:s,id:e.id}),l(),e.children&&i.createElement("div",{className:`${Ft}-content`},e.children)))},{Group:Nf}),bt="adm-search-bar",Of={clearable:!0,onlyShowClearWhenFocus:!1,showCancelButton:!1,defaultValue:"",clearOnCancel:!0},ol=i.forwardRef((t,e)=>{const{locale:n,searchBar:r={}}=Pe(),o=re(Of,r,{cancelText:n.common.cancel},t),s=Ar(i.createElement(rd,null),r.searchIcon,t.icon,t.searchIcon),[a,l]=Ie(o),[c,u]=i.useState(!1),d=i.useRef(null),f=i.useRef(!1);i.useImperativeHandle(e,()=>({clear:()=>{var b;return(b=d.current)===null||b===void 0?void 0:b.clear()},focus:()=>{var b;return(b=d.current)===null||b===void 0?void 0:b.focus()},blur:()=>{var b;return(b=d.current)===null||b===void 0?void 0:b.blur()},get nativeElement(){var b,g;return(g=(b=d.current)===null||b===void 0?void 0:b.nativeElement)!==null&&g!==void 0?g:null}}));const v=()=>{let b;return typeof o.showCancelButton=="function"?b=o.showCancelButton(c,a):b=o.showCancelButton&&c,b&&i.createElement("div",{className:`${bt}-suffix`},i.createElement(ot,{fill:"none",className:`${bt}-cancel-button`,onClick:()=>{var g,y,p;o.clearOnCancel&&((g=d.current)===null||g===void 0||g.clear()),(y=d.current)===null||y===void 0||y.blur(),(p=o.onCancel)===null||p===void 0||p.call(o)},onMouseDown:g=>{g.preventDefault()}},o.cancelText))};return Y(o,i.createElement("div",{className:H(bt,{[`${bt}-active`]:c})},i.createElement("div",{className:`${bt}-input-box`},s&&i.createElement("div",{className:`${bt}-input-box-icon`},s),i.createElement(qo,{ref:d,className:H(`${bt}-input`,{[`${bt}-input-without-icon`]:!s}),value:a,onChange:l,maxLength:o.maxLength,autoFocus:o.autoFocus,placeholder:o.placeholder,clearable:o.clearable,onlyShowClearWhenFocus:o.onlyShowClearWhenFocus,onFocus:b=>{var g;u(!0),(g=o.onFocus)===null||g===void 0||g.call(o,b)},onBlur:b=>{var g;u(!1),(g=o.onBlur)===null||g===void 0||g.call(o,b)},onClear:o.onClear,type:"search",enterKeyHint:"search",onEnterPress:()=>{var b,g;f.current||((b=d.current)===null||b===void 0||b.blur(),(g=o.onSearch)===null||g===void 0||g.call(o,a))},"aria-label":n.SearchBar.name,onCompositionStart:b=>{var g;f.current=!0,(g=o.onCompositionStart)===null||g===void 0||g.call(o,b)},onCompositionEnd:b=>{var g;f.current=!1,(g=o.onCompositionEnd)===null||g===void 0||g.call(o,b)}})),v()))}),sl=t=>Y(t,i.createElement("div",{className:"adm-swiper-item",onClick:t.onClick},t.children));function Df(t){const[e,n]=i.useState(t),r=i.useRef(e);return i.useEffect(()=>{r.current=e},[e]),[e,n,r]}function Af(t,e){const n=Object.keys(t),r=Object.keys(e),o=new Set([...n,...r]),s={};return o.forEach(a=>{const l=t[a],c=e[a];typeof l=="function"&&typeof c=="function"?s[a]=function(...u){l(...u),c(...u)}:s[a]=l||c}),s}const nt="adm-swiper",Lf={mousedown:"onMouseDown",mousemove:"onMouseMove",mouseup:"onMouseUp"},Bf={defaultIndex:0,allowTouchMove:!0,autoplay:!1,autoplayInterval:3e3,loop:!1,direction:"horizontal",slideSize:100,trackOffset:0,stuckAtBoundary:!0,rubberband:!0,stopPropagation:[]};let Ir;const zf=i.forwardRef(Ri.staged((t,e)=>{const n=re(Bf,t),{direction:r,total:o,children:s,indicator:a}=n,[l]=i.useState({}),c=i.useRef(null),u=r==="vertical",d=n.slideSize/100,f=n.trackOffset/100,{validChildren:v,count:b,renderChildren:g}=i.useMemo(()=>{let p=0,x,S;return typeof s=="function"?x=s:S=i.Children.map(s,C=>!i.isValidElement(C)||C.type!==sl?null:(p++,C)),{renderChildren:x,validChildren:S,count:p}},[s]),y=o!=null?o:b;return y===0||!v&&!g?null:()=>{let p=n.loop;d*(y-1)<1&&(p=!1);const x=i.useRef(null);function S(){const K=x.current;return K?(u?K.offsetHeight:K.offsetWidth)*n.slideSize/100:0}const[C,w,k]=ne.useGetState(n.defaultIndex),[E,I,T]=Df(!1);function Z(K){let G=0,oe=y-1;return n.stuckAtBoundary&&(G+=f/d,oe-=(1-d-f)/d),xe(K,G,oe)}const[{position:M},N]=Ve(()=>({position:Z(C)*100,config:{tension:200,friction:30},onRest:()=>{if(T.current||!p)return;const K=M.get(),G=100*y,oe=Go(K,G);oe!==K&&N.start({position:oe,immediate:!0})}}),[y]),U=i.useRef(null);function z(){var K;(K=U.current)===null||K===void 0||K.call(U),T.current=!1}const _=rr(K=>{if(U.current=K.cancel,!K.intentional||(K.first&&!Ir&&(Ir=l),Ir!==l))return;Ir=K.last?void 0:l;const G=S();if(!G)return;const oe=u?1:0,ge=K.offset[oe],Ce=K.direction[oe],Tr=K.velocity[oe];if(I(!0),!K.last)N.start({position:ge*100/G,immediate:!0});else{const Mn=Math.floor(ge/G),sh=Mn+1,ih=Math.round((ge+Tr*2e3*Ce)/G);F(xe(ih,Mn,sh)),window.setTimeout(()=>{I(!1)})}},{transform:([K,G])=>[-K,-G],from:()=>{const K=S();return[M.get()/100*K,M.get()/100*K]},triggerAllEvents:!0,bounds:()=>{if(p)return{};const K=S(),G=Z(0)*K,oe=Z(y-1)*K;return u?{top:G,bottom:oe}:{left:G,right:oe}},rubberband:n.rubberband,axis:u?"y":"x",preventScroll:!u,pointer:{touch:!0}});function F(K,G=!1){var oe;const ge=Math.round(K),Ce=p?Go(ge,y):xe(ge,0,y-1);Ce!==k()&&((oe=n.onIndexChange)===null||oe===void 0||oe.call(n,Ce)),w(Ce),N.start({position:(p?ge:Z(ge))*100,immediate:G})}function P(){F(Math.round(M.get()/100)+1)}function B(){F(Math.round(M.get()/100)-1)}i.useImperativeHandle(e,()=>({swipeTo:F,swipeNext:P,swipePrev:B})),ne.useIsomorphicLayoutEffect(()=>{const K=y-1;C>K&&F(K,!0)});const{autoplay:O,autoplayInterval:V}=n,j=()=>{c.current=window.setTimeout(()=>{O==="reverse"?B():P(),j()},V)};i.useEffect(()=>{if(!(!O||E))return j(),()=>{c.current&&window.clearTimeout(c.current)}},[O,V,E,y]);function A(K,G){let oe={};return p&&(oe={[u?"y":"x"]:M.to(ge=>{let Ce=-ge+K*100;const Tr=y*100,Mn=Tr/2;return Ce=Go(Ce+Mn,Tr)-Mn,`${Ce}%`}),[u?"top":"left"]:`-${K*100}%`}),i.createElement(ke.div,{className:H(`${nt}-slide`,{[`${nt}-slide-active`]:C===K}),style:oe,key:K},G)}function W(){if(g&&o){const G=Math.max(C-2,0),oe=Math.min(C+2,o-1),ge=[];for(let Ce=G;Ce<=oe;Ce+=1)ge.push(A(Ce,g(Ce)));return i.createElement(i.Fragment,null,i.createElement("div",{className:`${nt}-slide-placeholder`,style:{width:`${G*100}%`}}),ge)}return i.Children.map(v,(K,G)=>A(G,K))}function q(){return p?i.createElement("div",{className:`${nt}-track-inner`},W()):i.createElement(ke.div,{className:`${nt}-track-inner`,style:{[u?"y":"x"]:M.to(K=>`${-K}%`)}},W())}const R={"--slide-size":`${n.slideSize}%`,"--track-offset":`${n.trackOffset}%`},te=Object.assign({},n.allowTouchMove?_():{}),Ne={};for(const K of n.stopPropagation){const G=Lf[K];Ne[G]=function(oe){oe.stopPropagation()}}const X=Af(te,Ne);let ue=null;return typeof a=="function"?ue=a(y,C):a!==!1&&(ue=i.createElement("div",{className:`${nt}-indicator`},i.createElement(Ff,Object.assign({},n.indicatorProps,{total:y,current:C,direction:r})))),Y(n,i.createElement("div",{className:H(nt,`${nt}-${r}`),style:R},i.createElement("div",Object.assign({ref:x,className:H(`${nt}-track`,{[`${nt}-track-allow-touch-move`]:n.allowTouchMove}),onClickCapture:K=>{T.current&&K.stopPropagation(),z()}},X),q()),ue))}}));function Go(t,e){const n=t%e;return n<0?n+e:n}const $r=we(zf,{Item:sl}),Vf=()=>null,it="adm-tab-bar",Zf={safeArea:!1},Xo=we(t=>{var e;const n=re(Zf,t);let r=null;const o=[];Fo(n.children,(l,c)=>{if(!i.isValidElement(l))return;const u=l.key;typeof u=="string"&&(c===0&&(r=u),o.push(l))});const[s,a]=Ie({value:n.activeKey,defaultValue:(e=n.defaultActiveKey)!==null&&e!==void 0?e:r,onChange:l=>{var c;l!==null&&((c=n.onChange)===null||c===void 0||c.call(n,l))}});return Y(n,i.createElement("div",{className:it},i.createElement("div",{className:`${it}-wrap`},o.map(l=>{const c=l.key===s;function u(){const d=l.props.icon&&i.createElement("div",{className:`${it}-item-icon`},typeof l.props.icon=="function"?l.props.icon(c):l.props.icon),f=l.props.title&&i.createElement("div",{className:H(`${it}-item-title`,!!d&&`${it}-item-title-with-icon`)},typeof l.props.title=="function"?l.props.title(c):l.props.title);return d?i.createElement(i.Fragment,null,i.createElement(na,{content:l.props.badge,className:`${it}-icon-badge`},d),f):f?i.createElement(na,{content:l.props.badge,className:`${it}-title-badge`},f):null}return Y(l.props,i.createElement("div",{key:l.key,onClick:()=>{var d,f;const{key:v}=l;v!=null&&(a(v.toString()),(f=(d=l.props).onClick)===null||f===void 0||f.call(d))},className:H(`${it}-item`,{[`${it}-item-active`]:c})},u()))})),n.safeArea&&i.createElement(yn,{position:"bottom"})))},{Item:Vf}),il="adm-tag",jf={default:"var(--adm-color-text-secondary, #666666)",primary:"var(--adm-color-primary, #1677ff)",success:"var(--adm-color-success, #00b578)",warning:"var(--adm-color-warning, #ff8f1f)",danger:"var(--adm-color-danger, #ff3141)"},Kf={color:"default",fill:"solid",round:!1},Jo=t=>{var e;const n=re(Kf,t),r=(e=jf[n.color])!==null&&e!==void 0?e:n.color,o={"--border-color":r,"--text-color":n.fill==="outline"?r:"#ffffff","--background-color":n.fill==="outline"?"transparent":r};return Y(n,i.createElement("span",{style:o,onClick:n.onClick,className:H(il,{[`${il}-round`]:n.round})},n.children))},Pn="adm-text-area",al={rows:2,showCount:!1,autoSize:!1,defaultValue:""},ll=i.forwardRef((t,e)=>{const n=re(al,t),{autoSize:r,showCount:o,maxLength:s}=n,[a,l]=Ie(Object.assign(Object.assign({},n),{value:n.value===null?"":n.value}));n.value;const c=i.useRef(null),u=i.useRef("auto"),d=i.useRef(null),f=el({onEnterPress:n.onEnterPress,onKeyDown:n.onKeyDown,nativeInputRef:c,enterKeyHint:n.enterKeyHint});i.useImperativeHandle(e,()=>({clear:()=>{l("")},focus:()=>{var p;(p=c.current)===null||p===void 0||p.focus()},blur:()=>{var p;(p=c.current)===null||p===void 0||p.blur()},get nativeElement(){return c.current}})),ne.useIsomorphicLayoutEffect(()=>{if(!r)return;const p=c.current,x=d.current;if(!p||(p.style.height=u.current,!x))return;let S=x.scrollHeight;if(typeof r=="object"){const C=window.getComputedStyle(p),w=parseFloat(C.lineHeight);r.minRows&&(S=Math.max(S,r.minRows*w)),r.maxRows&&(S=Math.min(S,r.maxRows*w))}u.current=`${S}px`,p.style.height=`${S}px`},[a,r]);const v=i.useRef(!1);let b;const g=jo(a).length;typeof o=="function"?b=o(g,s):o&&(b=i.createElement("div",{className:`${Pn}-count`},s===void 0?g:g+"/"+s));let y=n.rows;return typeof r=="object"&&(r.maxRows&&y>r.maxRows&&(y=r.maxRows),r.minRows&&y<r.minRows&&(y=r.minRows)),Y(n,i.createElement("div",{className:Pn},i.createElement("textarea",{ref:c,className:`${Pn}-element`,rows:y,value:a,placeholder:n.placeholder,onChange:p=>{let x=p.target.value;s&&!v.current&&(x=jo(x).slice(0,s).join("")),l(x)},id:n.id,onCompositionStart:p=>{var x;v.current=!0,(x=n.onCompositionStart)===null||x===void 0||x.call(n,p)},onCompositionEnd:p=>{var x;if(v.current=!1,s){const S=p.target.value;l(jo(S).slice(0,s).join(""))}(x=n.onCompositionEnd)===null||x===void 0||x.call(n,p)},autoComplete:n.autoComplete,autoFocus:n.autoFocus,disabled:n.disabled,readOnly:n.readOnly,name:n.name,onFocus:n.onFocus,onBlur:n.onBlur,onClick:n.onClick,onKeyDown:f}),b,r&&i.createElement("textarea",{ref:d,className:`${Pn}-element ${Pn}-element-hidden`,value:a,rows:y,"aria-hidden":!0,readOnly:!0})))});ll.defaultProps=al;const at="adm-toast",Wf={maskClickable:!0,stopPropagation:["click"]},Hf=t=>{const e=re(Wf,t),{maskClickable:n,content:r,icon:o,position:s}=e,a=i.useMemo(()=>{if(o==null)return null;switch(o){case"success":return i.createElement(wi,{className:`${at}-icon-success`});case"fail":return i.createElement(Rn,{className:`${at}-icon-fail`});case"loading":return i.createElement(Ao,{color:"white",className:`${at}-loading`});default:return o}},[o]),l=i.useMemo(()=>{switch(s){case"top":return"20%";case"bottom":return"80%";default:return"50%"}},[s]);return i.createElement(Qn,{visible:e.visible,destroyOnClose:!0,opacity:0,disableBodyScroll:!n,getContainer:e.getContainer,afterClose:e.afterClose,style:Object.assign({pointerEvents:n?"none":"auto"},e.maskStyle),className:H(`${at}-mask`,e.maskClassName),stopPropagation:e.stopPropagation},i.createElement("div",{className:H(`${at}-wrap`)},i.createElement("div",{style:{top:l},className:H(`${at}-main`,o?`${at}-main-icon`:`${at}-main-text`)},a&&i.createElement("div",{className:`${at}-icon`},a),i.createElement(y1,null,r))))};let Le=null,Qo=null;const _r={duration:2e3,position:"center",maskClickable:!0},Uf=t=>i.createElement(Hf,Object.assign({},t));function qf(t){var e;const n=re(_r,typeof t=="string"?{content:t}:t),r=i.createElement(Uf,Object.assign({},n,{onClose:()=>{Le=null}}));return Le?!((e=Le.isRendered)===null||e===void 0)&&e.call(Le)?Le.replace(r):(Le.close(),Le=xn(r)):Le=xn(r),Qo&&window.clearTimeout(Qo),n.duration!==0&&(Qo=window.setTimeout(()=>{cl()},n.duration)),Le}function cl(){Le==null||Le.close(),Le=null}function Yf(t){t.duration!==void 0&&(_r.duration=t.duration),t.position!==void 0&&(_r.position=t.position),t.maskClickable!==void 0&&(_r.maskClickable=t.maskClickable)}const Ro={show:qf,clear:cl,config:Yf},ul={type:"void","x-component":"MPage","x-designer":"MPage.Designer","x-component-props":{},properties:{grid:{type:"void","x-component":"Grid","x-initializer":"mobilePage:addBlock","x-component-props":{showDivider:!1}}}},Gf=t=>{const{t:e}=de(),n=$.useFieldSchema(),{dn:r}=h.useDesignable(),o=$.useField(),s={dn:r,field:o,fieldSchema:n};return m.jsx(h.SchemaSettingsDropdown,ie(L({title:m.jsx(le.Button,{style:{borderColor:"var(--colorSettings)",color:"var(--colorSettings)"},icon:m.jsx(Te.MenuOutlined,{}),type:"dashed",children:e("Menu configuration")})},s),{children:m.jsx(h.SchemaSettingsRemove,{removeParentsIfNoChildren:!0,confirm:{title:e("Delete menu block")},breakRemoveOn:{"x-component":"Grid"}},"remove")}))},Fn=()=>{const{dn:t}=h.useDesignable(),e=$.useFieldSchema(),n=$.useField();return{onUpdateComponentProps:ne.useMemoizedFn(o=>fe(null,null,function*(){Oe.set(e,"x-component-props",o),n.componentProps=L(L({},n.componentProps),o),yield t.emit("patch",{schema:{"x-uid":e["x-uid"],"x-component-props":e["x-component-props"],"x-server-hooks":[{type:"onSelfSave",method:"extractTextToLocale"}]}}),yield t.refresh()}))}},dl={properties:{name:{type:"string",title:ut("Menu name"),required:!0,"x-component":"Input","x-decorator":"FormItem"},icon:{"x-decorator":"FormItem","x-component":"IconPicker",title:ut("Icon"),"x-component-props":{}}}},Xf=t=>{const{icon:e,name:n}=t,r=h.useDesigner(),o=ae.useNavigate(),s=ae.useLocation(),a=$.useFieldSchema(),l=h.useCompile(),c=ae.useParams(),u=()=>{const d=s.pathname.endsWith("/")?s.pathname.slice(0,-1):s.pathname;o(c.name?`/mobile/${a["x-uid"]}`:`${d}/${a["x-uid"]}`)};return m.jsxs(h.SortableItem,{className:h.cx("tb-mobile-menu-item",h.css`
142
+ width: 100%;
143
+ background: var(--adm-color-background);
144
+ > .adm-list-item {
145
+ background: inherit;
146
+ }
147
+ `),children:[m.jsx(Yt.Item,ie(L({arrow:!0,clickable:!0},t),{prefix:m.jsx(h.Icon,{type:e}),onClick:u,children:l(n)})),m.jsx(r,{})]})},Jf=()=>{const{t}=de(),{onUpdateComponentProps:e}=Fn(),n=$.useField();return m.jsxs(h.GeneralSchemaDesigner,{children:[m.jsx(h.SchemaSettingsModalItem,{title:t("Edit menu info"),initialValues:n.componentProps,schema:dl,onSubmit:e}),m.jsx(h.SchemaSettingsRemove,{removeParentsIfNoChildren:!0,confirm:{title:t("Delete menu item?")},breakRemoveOn:{"x-component":"MMenu"}},"remove")]})},fl=Xf;fl.Designer=Jf;const Qf=h.createStyles(({token:t,css:e})=>({mobileMenu:e`
148
+ --adm-color-primary: ${t.colorPrimary};
149
+ --adm-color-primary-hover: ${t.colorPrimaryHover};
150
+ --adm-color-primary-active: ${t.colorPrimaryActive};
151
+ --padding-left: ${t.paddingSM}px;
152
+ --adm-color-background: ${t.colorBgContainer};
153
+ --adm-color-border: ${t.colorBorder};
154
+
155
+ background: ${t.colorBgContainer};
156
+ width: 100%;
157
+ margin-bottom: var(--tb-spacing);
158
+ `})),es=t=>{const{styles:e}=Qf(),n=h.useDesigner(),r=$.useFieldSchema(),{insertBeforeEnd:o,designable:s}=h.useDesignable(),{t:a}=de(),l=c=>{const u={page:ul};return o({type:"void",title:c.name,"x-component":"MMenu.Item","x-component-props":c,"x-designer":"MMenu.Item.Designer",properties:u})};return m.jsx(h.SortableItem,{className:h.cx("tb-mobile-menu",e.mobileMenu),children:m.jsxs(Yt,{children:[s&&m.jsx(Yt.Item,{children:m.jsx(n,{})}),m.jsx(h.DndContext,{children:m.jsx(h.SchemaComponent,{onlyRenderProperties:!0,schema:r})}),s?m.jsx(Yt.Item,{children:m.jsx(h.SchemaInitializerActionModal,{buttonText:a("Add menu item"),title:a("Add menu item"),schema:dl,onSubmit:l})}):null]})})};es.Item=fl,es.Designer=Gf;const Pr=(t,e)=>t.reduceProperties((r,o)=>r||o["x-component"]===e&&o),Rf=t=>Pr(t,"Grid"),em=["Grid","Grid.Row"],tm=["Grid.Col"],ts=(t,e)=>{if(!t)return 0;let n=0;return tm.includes(t["x-component"])&&(n+=1),n>=e||em.includes(t["x-component"])&&t.mapProperties(r=>{n+=ts(r,e)}),n},nm=()=>{const{t}=de(),e=$.useFieldSchema(),{onUpdateComponentProps:n}=Fn(),r=$.useField(),{dn:o}=h.useDesignable(),s=ae.useNavigate(),a=Pr(e,"MTabBar"),l=a&&r.componentProps.tabBarEnabled!==!1,c={dn:o,field:r,fieldSchema:e};return m.jsx(h.SchemaSettingsDropdown,ie(L({title:m.jsx(le.Button,{style:{borderColor:"var(--colorSettings)",color:"var(--colorSettings)",width:"100%"},icon:m.jsx(Te.MenuOutlined,{}),type:"dashed",children:t("App level Configuration")})},c),{children:m.jsx(h.SchemaSettingsSwitchItem,{checked:l,title:t("Enable TabBar"),onChange:u=>fe(null,null,function*(){if(u&&!a){const d=Pr(e,"MPage");yield o.remove(d),yield o.insertBeforeEnd({type:"void","x-component":"MTabBar","x-component-props":{},name:"tabBar",properties:{[$.uid()]:{type:"void","x-component":"MTabBar.Item","x-designer":"MTabBar.Item.Designer","x-component-props":{icon:"HomeOutlined",title:ut("Untitled")},properties:{page:d.toJSON()}}}})}yield n({tabBarEnabled:u}),u===!1&&s("../")})})}))},rm=h.createStyles(({token:t,css:e})=>({mobileContainer:e`
159
+ --adm-color-primary: ${t.colorPrimary};
160
+
161
+ & > .general-schema-designer > .general-schema-designer-icons {
162
+ right: unset;
163
+ left: 2px;
164
+ }
165
+ background: var(--tb-box-bg);
166
+ display: flex;
167
+ flex-direction: column;
168
+ width: 100%;
169
+ height: 100%;
170
+ overflow-y: scroll;
171
+ position: initial !important;
172
+ `,tabBar:e`
173
+ & > .general-schema-designer {
174
+ --tb-designer-top: ${t.marginMD}px;
175
+ }
176
+ position: fixed;
177
+ background: ${t.colorBgContainer};
178
+ width: 100%;
179
+ bottom: 0;
180
+ left: 0;
181
+ z-index: 1000;
182
+ `})),ml=(t,e)=>t.reduceProperties((n,r)=>{if(n)return n;if(r["x-component"]==="MTabBar")return ml(r,e);if(r["x-component"]==="MTabBar.Item"&&e===r["x-uid"])return r}),om=()=>{const{name:t}=ae.useParams(),e=$.useFieldSchema();if(!t)return m.jsx(m.Fragment,{});const n=ml(e.properties.tabBar,t.replace("tab_",""));return n?m.jsx(h.SchemaComponent,{schema:n}):m.jsx(ae.Navigate,{replace:!0,to:"../"})},ns=t=>{var b,g;const{styles:e}=rm(),{token:n}=h.useToken(),r=h.useDesigner(),o=$.useFieldSchema(),s=ae.useNavigate(),a=ae.useParams(),l=ae.useLocation(),u=$.useField().componentProps.tabBarEnabled!==!1,d=(b=o==null?void 0:o.properties)==null?void 0:b.tabBar,f=d!=null&&d.properties?Object.keys(d.properties)[0]:null;let v=null;return f&&(v=(g=d==null?void 0:d.properties[f])==null?void 0:g["x-uid"]),i.useEffect(()=>{if(v&&!a.name){const y=l.pathname.endsWith("/")?l.pathname.slice(0,-1):l.pathname;s(`${y}/tab_${v}`,{replace:!0})}},[l.pathname,s,a.name,v]),m.jsx(h.MobileProvider,{children:m.jsxs(h.SortableItem,{eid:"tb-mobile-scroll-wrapper",className:h.cx("tb-mobile-container",e.mobileContainer),children:[m.jsx(r,{}),m.jsx("div",{style:{paddingBottom:v?n.paddingLG*2:0},className:"tb-mobile-container-content",children:v?m.jsx(om,{}):m.jsx(h.SchemaComponent,{filterProperties:y=>y["x-component"]!=="MTabBar",schema:o})}),u&&m.jsx("div",{className:h.cx("tb-mobile-container-tab-bar",e.tabBar),children:m.jsx(h.SchemaComponent,{onlyRenderProperties:!0,filterProperties:y=>y["x-component"]==="MTabBar",schema:o})})]})})};ns.Designer=nm,ns.displayName="MContainer";const pl={properties:{title:{type:"string",title:"{{ t('Title') }}",required:!0,"x-component":"Input","x-decorator":"FormItem"},icon:{required:!0,"x-decorator":"FormItem","x-component":"IconPicker",title:"{{ t('Icon') }}","x-component-props":{}}}},sm=()=>{const t=h.useDesigner();return m.jsx(h.SortableItem,{className:h.cx("tb-mobile-tab-bar-item",h.css`
183
+ position: absolute !important;
184
+ width: 100%;
185
+ height: 100%;
186
+ top: 0;
187
+ left: 0;
188
+ `),children:m.jsx(t,{})})},im=()=>{const{t}=de(),e=$.useFieldSchema(),{onUpdateComponentProps:n}=Fn(),r=$.useField(),o=Object.keys(e.parent.properties).length;return m.jsxs(h.GeneralSchemaDesigner,{children:[m.jsx(h.SchemaSettingsModalItem,{title:t("Edit info"),initialValues:r.componentProps,schema:pl,onSubmit:n}),o>1?m.jsx(h.SchemaSettingsRemove,{removeParentsIfNoChildren:!0,confirm:{title:t("Delete tab item?")},breakRemoveOn:{"x-component":"MTabBar"}},"remove"):null]})},hl=sm;hl.Designer=im;const rs=t=>{const e=$.useFieldSchema(),{designable:n}=h.useDesignable(),{t:r}=de(),{insertBeforeEnd:o}=h.useDesignable(),s=ae.useNavigate(),a=ae.useParams(),l=h.useCompile(),c=i.useCallback(u=>o({type:"void","x-component":"MTabBar.Item","x-component-props":u,"x-designer":"MTabBar.Item.Designer",properties:{[$.uid()]:ul},"x-server-hooks":[{type:"onSelfSave",method:"extractTextToLocale"}]}),[]);return m.jsx(h.SortableItem,{className:h.cx("tb-mobile-tab-bar",h.css`
189
+ position: relative;
190
+ width: 100%;
191
+ display: flex;
192
+ align-items: center;
193
+ `),children:m.jsx(h.DndContext,{children:m.jsxs(Xo,{activeKey:a.name,onChange:u=>{u!=="add-tab"&&s(`/mobile/${u}`)},safeArea:!0,className:h.cx(h.css`
194
+ width: 100%;
195
+ `),children:[e.mapProperties((u,d)=>{const f=u["x-component-props"];return i.createElement(Xo.Item,ie(L({},f),{key:`tab_${u["x-uid"]}`,title:m.jsxs(m.Fragment,{children:[r(l(f.title)),m.jsx(h.SchemaComponent,{schema:u,name:d})]}),icon:f.icon?m.jsx(h.Icon,{type:f.icon}):void 0}))}),n&&(!e.properties||Object.keys(e.properties).length<5)?m.jsx(Xo.Item,{className:h.css`
196
+ .adm-tab-bar-item-icon {
197
+ height: auto;
198
+ }
199
+ `,icon:m.jsx(h.SchemaInitializerActionModal,{title:r("Add tab"),onSubmit:c,schema:pl})},"add-tab"):null]})})})};rs.Item=hl,rs.displayName="MTabBar";const am=h.createStyles(({css:t,token:e})=>({mobileNav:t`
200
+ position: relative;
201
+ width: 100%;
202
+ .ant-btn {
203
+ display: flex;
204
+ align-items: center;
205
+ height: 100%;
206
+ position: absolute;
207
+ right: 20px;
208
+ bottom: 0;
209
+ border: none;
210
+ }
211
+ `})),lm=h.createStyles(({css:t,token:e})=>({firstmodal:t`
212
+ .ant-modal-content {
213
+ position: relative;
214
+ overflow: hidden;
215
+ border-radius: 16px;
216
+ padding: 0;
217
+ &::before,
218
+ &::after {
219
+ content: '';
220
+ position: absolute;
221
+ width: 300px;
222
+ height: 300px;
223
+ background: radial-gradient(circle, rgba(0, 149, 255, 0.11) 0%, transparent 70%);
224
+ z-index: 0;
225
+ pointer-events: none;
226
+ }
227
+
228
+ &::before {
229
+ top: -165px;
230
+ left: -10px;
231
+ }
232
+
233
+ &::after {
234
+ bottom: -160px;
235
+ right: -150px;
236
+ }
237
+ .ant-modal-header {
238
+ text-align: center;
239
+ margin-bottom: 20px;
240
+ margin-top: 30px;
241
+ .ant-modal-title {
242
+ font-size: x-large;
243
+ font-weight: 400;
244
+ }
245
+ }
246
+ .ant-modal-body {
247
+ justify-items: center;
248
+ }
249
+ }
250
+ `,secondmodal:t`
251
+ display: flex;
252
+ justify-content: center;
253
+ align-items: center;
254
+ width: 100%;
255
+ margin-top: 20px;
256
+ margin-bottom: 40px;
257
+ position: relative;
258
+ gap: 15%;
259
+ padding-left: 8%;
260
+ padding-right: 8%;
261
+ .tb-header-modal-list {
262
+ width: 50%;
263
+ gap: 10px;
264
+ display: flex;
265
+ flex-direction: column;
266
+ justify-content: center;
267
+ text-align: center;
268
+ border: 1px solid transparent;
269
+ border-color: rgba(203, 227, 254, 0.62);
270
+ box-shadow: none;
271
+ border-radius: 12px;
272
+ padding: 16px;
273
+ transition:
274
+ box-shadow 0.2s ease,
275
+ transform 0.2s ease;
276
+ z-index: 1;
277
+ position: relative;
278
+ &:hover {
279
+ border-color: rgba(0, 120, 255, 0.3);
280
+ box-shadow: 0 4px 16px rgba(0, 120, 255, 0.15);
281
+ }
282
+ &:active {
283
+ box-shadow: none;
284
+ transform: translateY(2px);
285
+ }
286
+ .anticon {
287
+ width: 100%;
288
+ display: flex;
289
+ justify-content: center;
290
+ svg {
291
+ width: 30px;
292
+ height: 30px;
293
+ }
294
+ }
295
+ .tb-header-modal-list-text {
296
+ text-align: center;
297
+ }
298
+ }
299
+ `,imageModal:t`
300
+ display: flex;
301
+ justify-content: center;
302
+ .ant-modal-content {
303
+ width: 280px;
304
+ height: 360px;
305
+ }
306
+ `})),gl=({open:t,setOpen:e,title:n="",uid:r})=>{const[o,s]=i.useState(!1),{styles:a}=lm(),{t:l}=h.useTranslation(),{copyLink:c,imageAction:u}=h.useShareActions({title:n,uid:r});return m.jsxs(le.Modal,{open:t,className:a.firstmodal,title:l("Share"),footer:null,width:300,onCancel:()=>{e(!1)},children:[m.jsxs("div",{className:a.secondmodal,children:[m.jsxs("div",{className:"tb-header-modal-list",onClick:c,children:[m.jsx(h.Icon,{type:"PaperClipOutlined"}),l("Copy link")]}),m.jsxs("div",{className:"tb-header-modal-list",onClick:()=>{s(!0)},children:[m.jsx(h.Icon,{type:"QrcodeOutlined"}),l("Generate QR code")]})]}),m.jsx(le.Modal,{className:a.imageModal,open:o,footer:null,onCancel:()=>{s(!1)},children:u()})]})},cm=t=>{var b,g,y,p,x;const{showBack:e}=t,{t:n}=de(),r=$.useField(),o=$.useFieldSchema(),{dn:s}=h.useDesignable(),{onUpdateComponentProps:a}=Fn(),l=(b=o==null?void 0:o.properties)==null?void 0:b.header,c=!!l&&((g=r.componentProps)==null?void 0:g.headerEnabled)!==!1,u=(y=o==null?void 0:o.properties)==null?void 0:y.tabs,d=!!u&&((p=r.componentProps)==null?void 0:p.tabsEnabled)!==!1,{title:f}=h.useSchemaToolbar(),v={dn:s,field:r,fieldSchema:o};return m.jsxs(h.SchemaSettingsDropdown,ie(L({title:m.jsx(le.Button,{style:{borderColor:"var(--colorSettings)",color:"var(--colorSettings)",width:"100%"},icon:m.jsx(Te.MenuOutlined,{}),type:"dashed",children:n("Page configuration")})},v),{children:[m.jsx(h.SchemaSettingsSwitchItem,{checked:c,title:n("Enable Header"),onChange:S=>fe(null,null,function*(){var C;l||(yield s.insertAfterBegin({type:"void",name:"header","x-component":"MHeader","x-designer":"MHeader.Designer","x-component-props":{title:(C=o.parent["x-component-props"])==null?void 0:C.name,showBack:e}})),yield a({headerEnabled:S})})}),m.jsx(h.SchemaSettingsSwitchItem,{checked:d,title:n("Enable Tabs"),onChange:S=>fe(null,null,function*(){if(!u){const C=Rf(o);return yield s.remove(C),s.insertBeforeEnd({type:"void",name:"tabs","x-component":"Tabs","x-component-props":{},"x-initializer":"popup:addTab","x-initializer-props":{gridInitializer:"mobilePage:addBlock"},properties:{tab1:{type:"void",title:ut("Untitled"),"x-component":"Tabs.TabPane","x-designer":"Tabs.Designer","x-component-props":{},properties:{grid:ie(L({},C),{"x-uid":$.uid()})}}}})}yield a({tabsEnabled:S})})}),m.jsx(h.SchemaSettingsSwitchItem,{checked:(x=o["x-component-props"])==null?void 0:x.enableSharePage,title:n("Enable Share page"),onChange:S=>fe(null,null,function*(){o["x-component-props"]=o["x-component-props"]||{},o["x-component-props"].enableSharePage=S,o.title||(o.title=f),s.emit("patch",{schema:{"x-uid":o["x-uid"],"x-component-props":o["x-component-props"],title:o.title}}),s.refresh()})})]}))},um=h.createStyles(({token:t,css:e})=>({globalActionCSS:e`
307
+ #tb-position-container > & {
308
+ height: ${t.sizeXXL}px;
309
+ border-top: 1px solid var(--tb-box-bg);
310
+ margin-bottom: 0px !important;
311
+ padding: 0 var(--tb-spacing);
312
+ align-items: center;
313
+ overflow-x: auto;
314
+ background: ${t.colorBgContainer};
315
+ z-index: 100;
316
+ }
317
+ `,mobilePage:e`
318
+ background: var(--tb-box-bg);
319
+ display: flex;
320
+ flex-direction: column;
321
+ width: 100%;
322
+ height: 100%;
323
+ overflow-x: hidden;
324
+ overflow-y: auto;
325
+ padding-bottom: var(--tb-spacing);
326
+ `,mobilePageHeader:e`
327
+ & > .ant-tabs > .ant-tabs-nav {
328
+ .ant-tabs-tab {
329
+ margin: 0 !important;
330
+ padding: 0 ${t.paddingContentHorizontal}px !important;
331
+ }
332
+ background: ${t.colorBgContainer};
333
+ }
334
+ display: flex;
335
+ flex-direction: column;
336
+ `})),dm=t=>{var x,S,C,w;const{styles:e}=um(),n=h.useDesigner(),r=$.useField(),o=$.useFieldSchema(),[s,a]=ae.useSearchParams(),l=(x=o.properties)==null?void 0:x.tabs,c=r.componentProps.headerEnabled!==!1,u=r.componentProps.tabsEnabled!==!1&&l,[d,f]=i.useState(!1);let v=Pr(o,"MPage");if(!u&&!v&&l){const k=Object.values(l.properties||{}).sort((E,I)=>E["x-index"]-I["x-index"]);k.length!==0&&(v=k[0])}const b=o.root===o.parent;let g=!1;if(!l&&o.properties)g=ts(o.properties.grid,2)===1;else if(s.has("tab")&&((S=l==null?void 0:l.properties)!=null&&S[s.get("tab")]))g=ts((w=(C=l.properties[s.get("tab")])==null?void 0:C.properties)==null?void 0:w.grid,2)===1;else if(l!=null&&l.properties){const k=Object.values(l.properties).sort((E,I)=>E["x-index"]-I["x-index"])[0];k&&setTimeout(()=>{a([["tab",k.name.toString()]],{replace:!0})})}const y=i.useCallback(k=>{a([["tab",k]],{replace:!0})},[a]),p=i.useCallback(k=>m.jsx(h.TabsContextProvider,{children:g?m.jsx(h.ActionBarProvider,{container:(typeof k.active=="undefined"||k.active)&&b?document.getElementById("tb-position-container"):null,forceProps:{layout:"one-column",className:e.globalActionCSS},children:k.children}):k.children}),[g,b,e.globalActionCSS]);return m.jsxs(h.SortableItem,{eid:"tb-mobile-scroll-wrapper",className:h.cx("tb-mobile-page",e.mobilePage),children:[m.jsx(n,L({},o==null?void 0:o["x-designer-props"])),m.jsxs("div",{style:{paddingBottom:l?null:"var(--tb-spacing)"},className:h.cx("tb-mobile-page-header",e.mobilePageHeader,{[h.css`
337
+ & > .ant-tb-grid {
338
+ margin-top: 14px;
339
+ }
340
+ `]:l&&!u||!l}),children:[c?m.jsx($.RecursionField,{schema:o,filterProperties:k=>k["x-component"]==="MHeader"}):m.jsx("div",{style:{display:"flex",justifyContent:"end",backgroundColor:"#ffffff",paddingRight:"20px"},children:m.jsx(le.Button,{icon:m.jsx(Te.ShareAltOutlined,{}),style:{border:"none"},onClick:()=>{f(!0)}})}),m.jsx(h.TabsContextProvider,{PaneRoot:p,activeKey:s.get("tab"),onChange:y,children:m.jsx($.RecursionField,{schema:u?o:v,filterProperties:k=>k["x-component"]==="Tabs"||k["x-component"]==="Grid"||k["x-component"]==="Grid.Row"})})]}),m.jsx(p,{children:!l&&m.jsx($.RecursionField,{schema:o,filterProperties:k=>k["x-component"]!=="MHeader"})}),m.jsx(gl,{open:d,setOpen:f,uid:o["x-uid"]})]})},os=t=>m.jsx(h.FilterBlockProvider,{children:m.jsx(dm,L({},t))});os.Designer=cm,os.displayName="MPage";const fm=()=>{const t=$.useField(),{onUpdateComponentProps:e}=Fn(),{t:n}=de();return m.jsx(h.GeneralSchemaDesigner,{draggable:!1,children:m.jsx(h.SchemaSettingsModalItem,{title:n("Edit info"),components:{Switch:ms.Switch},initialValues:t.componentProps,schema:{properties:{title:{type:"string",title:n("Title"),required:!0,"x-component":"Input","x-decorator":"FormItem"},showBack:{type:"boolean",title:n("Display back button"),"x-component":"Switch","x-decorator":"FormItem"}}},onSubmit:e})})},vl=t=>{var y;const e=$.useField(),{title:n=ut("Untitled"),showBack:r=!1}=L(L({},t),e==null?void 0:e.componentProps),o=h.useDesigner(),a=h.useCompile()(n),l=ae.useNavigate(),{setTitle:c}=h.useDocumentTitle(),{token:u}=h.useToken(),{styles:d}=am(),[f,v]=i.useState(!1),b=$.useFieldSchema();i.useEffect(()=>{c(a)},[a]);const g=i.useMemo(()=>({width:"100%",background:u.colorBgContainer}),[u.colorBgContainer]);return m.jsxs(h.SortableItem,{className:h.cx("tb-mobile-header"),style:g,children:[m.jsxs(_f,{backArrow:r,onBack:()=>l(-1),className:d.mobileNav,children:[m.jsx("div",{children:a}),m.jsx(le.Button,{icon:m.jsx(Te.ShareAltOutlined,{}),onClick:()=>{v(!0)}})]}),m.jsx(o,{}),m.jsx(gl,{open:f,setOpen:v,title:n,uid:(y=b.parent)==null?void 0:y["x-uid"]})]})};vl.Designer=fm;const mm=()=>{const{t}=de();return m.jsx(h.GeneralSchemaDesigner,{children:m.jsx(h.SchemaSettingsRemove,{removeParentsIfNoChildren:!0,confirm:{title:t("Delete settings block")},breakRemoveOn:{"x-component":"Grid"}},"remove")})},bl=()=>{const t=h.useDesigner();return m.jsxs(h.SortableItem,{className:h.cx("tb-mobile-setting",h.css`
341
+ margin-bottom: var(--tb-spacing);
342
+ `),children:[m.jsx(t,{}),m.jsx(h.SettingsMenu,{redirectUrl:"/mobile"})]})};bl.Designer=mm;const pm=()=>{const t=h.useSchemaInitializerItem(),{insert:e}=h.useSchemaInitializer();return m.jsx(h.SchemaInitializerItem,L({icon:m.jsx(Te.SettingOutlined,{}),onClick:()=>fe(null,null,function*(){e({type:"void","x-component":"MSettings","x-designer":"MSettings.Designer","x-component-props":{}})})},t))},hm=["select","multipleSelect","radioGroup","checkboxGroup"],gm=["oho","obo","o2m","m2o","m2m"],vm=["datetime"],bm=["input","textarea","phone","email","url","percent","password","color","icon","formula","sequence"],ym=["integer","number"],qe=t=>t==="TabSearchCollapsibleInputItem"||t==="TabSearchCollapsibleInputMItem",lt=t=>hm.includes(t),$e=t=>gm.includes(t),Mt=t=>vm.includes(t),yl=t=>bm.includes(t),xm=t=>ym.includes(t),xl=t=>be.dayjs(t).format("YYYY-MM-DD"),Fr=t=>JSON.stringify(be.dayjs(t));function Cm(t){const{field:e,label:n,isCanBeOptional:r,isCanBeRelated:o,collection:s}=t,{key:a,name:l,uiSchema:c,interface:u}=e,d=c==null?void 0:c.title,f=[r,o].indexOf(!0);return{name:a,title:d,Component:"ImageSearchItemIntializer",schema:{name:`${l}-choice`,fieldName:l,title:d,type:"void","x-toolbar":"ImageSearchItemToolbar","x-settings":"fieldSettings:component:ImageSearchItem","x-component":"ImageSearchItemView","x-component-props":{fieldNames:{label:n,imageShow:"image_show"},interface:u,collectionName:s==null?void 0:s.name,correlation:l},"x-use-component-props":["usePropsOptionalImageSearchItemField","usePropsRelatedImageSearchItemField"][f],properties:{}}}}const Sm=new h.SchemaInitializer({name:"ImageSearchView:configureFields",title:'{{t("Configure fields")}}',style:{marginTop:16},icon:"SettingOutlined",items:[{name:"choicesFields",type:"itemGroup",title:'{{t("Choices fields")}}',useChildren:wm}]});function wm(){const t=h.useCollection(),e=t==null?void 0:t.fields,n=h.useCollectionManager();return h.useIsMobile(),e.map(o=>{var d,f;const{interface:s,target:a}=o,l=(f=(d=n.getCollection(a))==null?void 0:d.getPrimaryKey())!=null?f:"id",c=lt(s),u=$e(s);return c||u?Cm({collection:t,field:o,label:l,isCanBeOptional:c,isCanBeRelated:u}):null}).filter(Boolean)}function km(t){const{collection:e,dataSource:n,blockType:r}=t;return{type:"void","x-decorator":"ImageSearchProvider","x-decorator-props":{collection:e,dataSource:n,blockType:r},"x-toolbar":"BlockSchemaToolbar","x-settings":"blockSettings:filterCollapse","x-component":"CardItem","x-filter-targets":[],properties:{[be.uid()]:{type:"void","x-action":"imageSearch","x-initializer":"ImageSearchView:configureFields","x-component":"ImageSearchView"}}}}function Em(t){const{filterCollections:e}=t,n=h.useSchemaInitializerItem(),{insert:r}=h.useSchemaInitializer(),o=a=>fe(null,[a],function*({item:s}){const{dataSource:l,collectionName:c,name:u}=s,d=km({dataSource:l,collection:c||u,blockType:"filter"});r(d)});return m.jsx(h.DataBlockInitializer,ie(L({},n),{componentType:"ImageSearch",filter:e,onCreateBlockSchema:o}))}const Im=({collection:t,children:e})=>m.jsx(h.DataBlockProvider,{collection:t,children:e}),$m=()=>{const t=h.useDesigner(),e=$.useFieldSchema(),{render:n}=h.useSchemaInitializerRender(e["x-initializer"],e["x-initializer-props"]);return m.jsxs(m.Fragment,{children:[m.jsx(t,{}),m.jsx($.RecursionField,{schema:e,onlyRenderProperties:!0}),m.jsx(i.Fragment,{children:n()})]})},_m=()=>{const t=$.useFieldSchema(),e=h.useCollection(),{getDataBlocks:n}=h.useFilterBlock();return i.useMemo(()=>e==null?void 0:e.getField(t.name),[e,t.name]),{onSelected:(o,s)=>{const{targets:a,uid:l}=h.findFilterTargets(t);n().forEach(c=>{var g,y,p;if(!a.find(x=>x.uid===c.uid))return;const d=`${l}${t.name}`,f=((g=c.service.params)==null?void 0:g[0])||{};let v=((p=(y=c.service.params)==null?void 0:y[1])==null?void 0:p.filters)||{};if(o.length)v[d]={[s]:o};else{if(c.dataLoadingMode==="manual")return c.clearData();delete v[d]}const b=h.mergeFilter([...Object.values(v),c.defaultFilter]);if(o.length===1&&o[0]==="all"){const x=Object.keys(v[d]);b.$and?(x.forEach(S=>{b.$and.forEach((C,w)=>{C[S]&&b.$and.splice(w,1)})}),b.$and=b.$and.filter(Boolean)):delete b[x[0]],v[d]={}}return v=Oe.omitBy(v,x=>x==null||Oe.isObject(x)&&Oe.isEmpty(x)),c.doFilter(ie(L({},f),{page:1,filter:b}),{filters:v})})}}},Pm=()=>{const t=h.useSchemaInitializerItem(),{insert:e}=h.useSchemaInitializer(),{schema:n,title:r}=t,{exists:o,remove:s}=h.useCurrentSchema(n.name,"name",t.find,t.remove),a=()=>{if(o)return s();const{schema:l}=t,c=$.merge(n||{},l||{});e(c)};return m.jsx(h.SchemaInitializerSwitch,{checked:o,title:r,onClick:a})},Fm=new h.SchemaSettings({name:"fieldSettings:component:ImageSearchItem",items:[{name:"decoratorOptions",type:"itemGroup",hideIfNoChildren:!0,useComponentProps(){const{t}=de();return{title:t("Generic properties")}},useChildren(){return[{name:"setTheDataScope",Component:h.SchemaSettingsDataScope,useComponentProps(){var l,c;const t=$.useFieldSchema(),{form:e}=h.useFormBlockContext(),n=$.useField(),r=h.useCollectionManager(),s=h.useCollection().getField(t.name)||r.getCollectionField(t["x-collection-field"]),{dn:a}=h.useDesignable();return{collectionName:s==null?void 0:s.target,defaultFilter:((c=(l=t==null?void 0:t["x-component-props"])==null?void 0:l.params)==null?void 0:c.filter)||{},form:e,onSubmit:({filter:u})=>{var d;Oe.set(n.componentProps,"params",ie(L({},(d=n.componentProps)==null?void 0:d.params),{filter:u})),t["x-component-props"].params=n.componentProps.params,a.emit("patch",{schema:{"x-uid":t["x-uid"],"x-component-props":t["x-component-props"]}})}}},useVisible(){const t=$.useFieldSchema();return!qe(t["x-component"])}},{name:"titleField",type:"select",useComponentProps(){var v,b,g,y;const t=$.useFieldSchema(),{t:e}=de(),n=h.useCollectionManager(),r=h.useCollection(),o=(v=t["x-component-props"])==null?void 0:v.collectionName,s=(b=t["x-component-props"])==null?void 0:b.correlation,a=r.getField(t.fieldName)||n.getCollectionField(t["x-collection-field"])||n.getCollection(o+"."+s),l=h.useCompile(),{dn:c}=h.useDesignable(),d=(a!=null&&a.target?n.getCollectionFields(a==null?void 0:a.target):[]).filter(p=>!(p!=null&&p.target)&&p.type!=="boolean").map(p=>{var x;return{value:p==null?void 0:p.name,label:l((x=p==null?void 0:p.uiSchema)==null?void 0:x.title)||(p==null?void 0:p.name)}}),f=p=>{var C,w,k;const x={"x-uid":t["x-uid"]},S=ie(L(L({},(w=(C=a==null?void 0:a.uiSchema)==null?void 0:C["x-component-props"])==null?void 0:w.fieldNames),(k=t["x-component-props"])==null?void 0:k.fieldNames),{label:p});t["x-component-props"]=t["x-component-props"]||{},t["x-component-props"].fieldNames=S,x["x-component-props"]=t["x-component-props"],c.emit("patch",{schema:x}),c.refresh()};return{key:"title-field",title:e("Title field"),options:d,value:(y=(g=t["x-component-props"])==null?void 0:g.fieldNames)==null?void 0:y.label,onChange:f}},useVisible(){var e;const t=$.useFieldSchema();return qe(t["x-component"])||((e=t["x-component-props"])==null?void 0:e.correlation)}}]}},{name:"divider",type:"divider"},{name:"delete",type:"remove",sort:100,useComponentProps(){const{t}=de(),e=$.useFieldSchema(),{dn:n}=h.useDesignable();return{removeParentsIfNoChildren:!0,confirm:{title:t("Delete field")},breakRemoveOn:r=>(qe(e["x-component"])&&(Object.values(r.properties).forEach(o=>{qe(o["x-component"])&&o.name!==e.name&&delete r.properties[o.name]}),n.emit("patch",{schema:r})),r["x-component"]==="TabSearch")}}}]}),Mm=t=>m.jsx(h.SchemaToolbar,L({draggable:!0,showBorder:!0,showBackground:!0,initializer:!1},t)),Nm=h.withDynamicSchemaProps(t=>{const{collectionField:e,Designer:n,items:r,onSelect:o}=Tm(t);return e?m.jsxs(h.SortableItem,{children:[m.jsx(n,{}),m.jsx(tl,{onChange:o,children:r.map(({key:s,label:a,imageUrl:l})=>m.jsx(tl.Tab,{title:"",description:m.jsx(Om,{srcUrl:l,label:a})},s))})]}):null},{displayName:"ImageSearchItemView"});function Tm(t){var p,x;const{list:e,onSelected:n,valueKey:r,labelKey:o,filterKey:s}=t,a=$.useFieldSchema(),l=h.useCollection(),{t:c}=de(),u=i.useMemo(()=>l==null?void 0:l.getField(a.fieldName),[l,a.fieldName]),d=h.useDesigner(),f=r||(u==null?void 0:u.targetKey)||"id",v=o||((x=(p=a["x-component-props"])==null?void 0:p.fieldNames)==null?void 0:x.label)||f,b=S=>{var w;const C=((w=S.keyPath)==null?void 0:w[0])||S;n([C],s)},g={title:v,key:f},y=(e||[]).map(S=>{var M;const{type:C,["image_show"]:w,[g.title]:k,[g.key]:E}=S,I=(location==null?void 0:location.origin)||"",T=(M=w==null?void 0:w[0])==null?void 0:M.url;let Z=T!=null?T:"";return Z.includes("http")||(Z=`${I}${T}`),C==="all"?{label:c("AllProducts"),key:"all",imageUrl:Z}:{label:k,key:E,imageUrl:Z}});return{collectionField:u,Designer:d,items:y,onSelect:b}}const Om=t=>{const{srcUrl:e,label:n}=t;return m.jsxs("div",{className:h.css`
343
+ display: 'flex';
344
+ flex-direction: 'column';
345
+ width: '100%';
346
+ height: '100%';
347
+ :active {
348
+ background-color: transparent;
349
+ }
350
+ `,children:[m.jsx(ea,{src:e,width:100,height:100,fit:"fill"}),m.jsx("p",{className:h.css`
351
+ font-weight: 400;
352
+ font-size: 17.6px;
353
+ line-height: 1;
354
+ `,children:n})]})},Mr=()=>{const t=$.useFieldSchema();h.useCollection();const{getDataBlocks:e}=h.useFilterBlock();return{onSelected:(r,o,s={canBeCalculatedField:!1,customLabelKey:"",needSort:!1})=>{const{canBeCalculatedField:a,customLabelKey:l,needSort:c=!0}=s,{targets:u,uid:d}=h.findFilterTargets(t);e().forEach(f=>{var S,C,w,k,E;if(!u.find(I=>I.uid===f.uid))return;const b=`${d}${t.name}`,g=((S=f.service.params)==null?void 0:S[0])||{};let y=((w=(C=f.service.params)==null?void 0:C[1])==null?void 0:w.filters)||{};if(r.length)r[0]?y[b]={[o]:r}:(k=y[b])==null||delete k[o],a&&(y[b]={[o]:Number((E=r==null?void 0:r[0])!=null?E:0)});else{if(f.dataLoadingMode==="manual")return f.clearData();delete y[b]}const p=h.mergeFilter([...Object.values(y),f.defaultFilter]);if(r.length===1&&r[0]==="all"){const I=Object.keys(y[b]);p.$and?(I.forEach(T=>{p.$and.forEach((Z,M)=>{Z[T]&&p.$and.splice(M,1)})}),p.$and=p.$and.filter(Boolean)):delete p[I[0]],y[b]={}}y=Oe.omitBy(y,I=>I==null||Oe.isObject(I)&&Oe.isEmpty(I));let x=ie(L({},g),{page:1,filter:p});return c?x=ie(L({},x),{"sort[]":`-${l}`}):x=Oe.omit(x,["sort[]"]),f.doFilter(x,{filters:y})})}}},Dm=()=>{var u,d,f,v;const t=$.useFieldSchema(),e=h.useCollection(),n=h.useCollectionManager(),r=Am({collection:e}),o=t.fieldName,s=i.useMemo(()=>e==null?void 0:e.getField(o),[e,o]),{onSelected:a}=Mr();if(!e)return{};const l={list:null,valueKey:"",labelKey:"",filterKey:""};l.valueKey=s!=null&&s.target?(u=n.getCollection(s.target))==null?void 0:u.getPrimaryKey():"id",l.labelKey=((f=(d=t["x-component-props"])==null?void 0:d.fieldNames)==null?void 0:f.label)||l.valueKey;const c=t["x-component-props"].interface;if(lt(c)){const b=r.find(p=>p.name===t.fieldName),g={select:"$in",multipleSelect:"$anyOf",checkboxGroup:"$anyOf",radioGroup:"$in"},y=((v=b==null?void 0:b.uiSchema)==null?void 0:v.enum)||[];l.valueKey="value",l.labelKey="label",l.list=y,l.filterKey=`${b.name}.${g[b.interface]}`}return{list:l.list,valueKey:l.valueKey,labelKey:l.labelKey,onSelected:a,filterKey:l.filterKey}},Am=({collection:t})=>{var n;return((n=t==null?void 0:t.fields)!=null?n:[]).filter(r=>lt(r.interface)&&r.uiSchema.enum)},Lm=()=>{var b,g,y,p,x;const t=$.useFieldSchema(),e=h.useCollection(),n=$.useField(),r={dataSource:"main"},o=h.useDataSourceHeaders(r==null?void 0:r.dataSource),s=h.useCollectionManager(),a=i.useMemo(()=>e==null?void 0:e.getField(t.fieldName),[e,t.fieldName]),l=a==null?void 0:a.name,c=t["x-component-props"].interface,{onSelected:u}=_m(),d={list:null,valueKey:"",labelKey:"",filterKey:""};d.valueKey=a!=null&&a.target?(b=s.getCollection(a.target))==null?void 0:b.getPrimaryKey():"id",d.labelKey=((y=(g=t["x-component-props"])==null?void 0:g.fieldNames)==null?void 0:y.label)||d.valueKey;const f=((x=(p=t["x-component-props"])==null?void 0:p.fieldNames)==null?void 0:x.imageShow)||"imageShow",{data:v}=Bm({headers:o,collectionField:a,result:d,imageShow:f,field:n,fieldInterface:c});if(d.filterKey=`${l}.${d.valueKey}.$in`,d.list=(v==null?void 0:v.data)||[],!!a)return{list:d.list,valueKey:d.valueKey,labelKey:d.labelKey,filterKey:d.filterKey,onSelected:u}},Bm=({headers:t,collectionField:e,result:n,imageShow:r,field:o,fieldInterface:s})=>{var c,u;const{data:a,run:l}=h.useRequest({headers:t,resource:e==null?void 0:e.target,action:"list",params:L({fields:[n.labelKey,n.valueKey,r,"type"],pageSize:200,page:1},(c=o.componentProps)==null?void 0:c.params)},{manual:!0,debounceWait:300});return i.useEffect(()=>{$e(s)&&(e!=null&&e.target)&&l()},[n.labelKey,n.valueKey,JSON.stringify(((u=o.componentProps)==null?void 0:u.params)||{}),$e(s)]),{data:a}},zm=h.withDynamicSchemaProps(t=>{const{fieldValue:e,data:n,changeNav:r}=t;if(!n)return;const o=n.data.length?n.data.map((s,a)=>{var l,c;return(l=s[e][0])!=null&&l.url?m.jsx($r.Item,{children:m.jsx("div",{className:ss,style:{backgroundImage:`url(${(c=s[e][0])==null?void 0:c.url})`,backgroundSize:"100% 100%",backgroundAttachment:"fixed"},onClick:()=>{r(s)}})},a):m.jsx($r.Item,{children:m.jsx("div",{className:ss,style:{backgroundColor:"#e0e0e0"},children:"无法加载此内容"})},a)}).filter(Boolean):[m.jsx($r.Item,{children:m.jsx("div",{className:ss,style:{backgroundColor:"#e0e0e0"},children:"当前卡片没有可加载数据"})},0)];return m.jsx(h.BlockItem,{children:m.jsx($r,{loop:!0,autoplay:!0,children:o})})}),ss=h.css`
355
+ height: 20vh;
356
+ color: #ffffff;
357
+ display: flex;
358
+ justify-content: center;
359
+ align-items: center;
360
+ font-size: 25px;
361
+ user-select: none;
362
+ `,Vm=()=>{const{insert:t}=h.useSchemaInitializer(),e=h.useCollectionManager(),n=h.useSchemaInitializerItem(),r=s=>fe(null,[s],function*({item:o}){const a=e.getCollection(o.name),l=a.fields.find(u=>u.interface==="attachment");if(!l){Ro.show({content:"当前数据源暂无可加载数据"});return}const c={type:"void",name:o.name,title:a.title,"x-decorator":"DataBlockProvider","x-decorator-props":{collection:o.name,dataSource:"main"},"x-toolbar":"BlockSchemaToolbar","x-settings":"SwiperFieldSettings","x-component":"SwiperBlock","x-use-component-props":"useSwiperBlockProps","x-component-props":{resourceName:o.name,fieldValue:l.name}};t(c)});return m.jsx(h.DataBlockInitializer,ie(L({},n),{icon:"swiper-block",componentType:"Swiper",onCreateBlockSchema:r}))},Zm=new h.SchemaSettings({name:"SwiperFieldSettings",items:[{name:"setTheDataScope",Component:h.SchemaSettingsDataScope,useComponentProps(){var s,a;const t=$.useFieldSchema(),{form:e}=h.useFormBlockContext(),n=$.useField(),r=h.useCollection(),{dn:o}=h.useDesignable();return{collectionName:r.getOptions().name,defaultFilter:((a=(s=t==null?void 0:t["x-component-props"])==null?void 0:s.params)==null?void 0:a.filter)||{},form:e,onSubmit:({filter:l})=>{var c;Oe.set(n.componentProps,"params",ie(L({},(c=n.componentProps)==null?void 0:c.params),{filter:l})),t["x-component-props"].params=n.componentProps.params,o.emit("patch",{schema:{"x-uid":t["x-uid"],"x-component-props":t["x-component-props"]}})}}}},{name:"setShowField",type:"select",useComponentProps(){const t=$.useFieldSchema(),{t:e}=de(),n=h.useCollection(),r=h.useCompile(),{dn:o}=h.useDesignable(),s=n.fields.map(l=>{var c;if((l==null?void 0:l.interface)==="attachment")return{label:r((c=l.uiSchema)==null?void 0:c.title)||l.name,value:l.name}}).filter(Boolean),a=l=>{const c={"x-uid":t["x-uid"]};t["x-component-props"].fieldValue=l,c["x-component-props"]=t["x-component-props"],o.emit("patch",{schema:c}),o.refresh()};return{title:e("Set show field"),options:s,value:t["x-component-props"].fieldValue,onChange:a}}},{name:"setFieldCount",type:"select",useComponentProps(){const t=$.useFieldSchema(),{dn:e}=h.useDesignable(),{t:n}=de(),r=[];for(let s=1;s<=20;s++)r.push({label:s,value:s});const o=s=>{t["x-component-props"].pageSize=s,e.emit("patch",{schema:{"x-uid":t["x-uid"],"x-component-props":t["x-component-props"]}}),e.refresh()};return{title:n("Set field count"),options:r,value:t["x-component-props"].pageSize||5,onChange:o}}},{name:"divider",type:"divider"},{name:"delete",type:"remove",sort:100}]}),Cl=()=>{const t=ae.useParams(),{name:e,collection:n,field:r,fieldParams:o}=t,s={};return s[r]=o,m.jsx(h.DataBlockProvider,{collection:n,dataSource:"main",children:m.jsx(h.CollectionRecordProvider,{record:s,parentRecord:null,children:m.jsx(h.RemoteSchemaComponent,{uid:e})})})},jm=()=>{const t=$.useFieldSchema(),e=ae.useNavigate(),n=t.properties?Object.values(t.properties):null,{insertAdjacent:r}=h.useDesignable(),s=h.useCollection().targetKey||"id",{filter:a,pageSize:l,fieldValue:c,resourceName:u}=t["x-component-props"],{data:d,run:f}=h.useRequest({resource:u+":list",params:{filter:a,pageSize:l||5,appends:c?[c]:[]}});return i.useEffect(()=>{f()},[a,l,c]),{data:d,fieldValue:c,changeNav:b=>{if(b.isIdentical){const g=n==null?void 0:n.find(y=>y["x-component-props"].fixedComponent);g?e(`/mobile/${g["x-uid"]}/image/${u}/${s}/${b[s]}`):r("beforeEnd",Sl(b,"fixedComponent"),{onSuccess(y){y&&e(`/mobile/${y["x-uid"]}`)}})}else{const g=n==null?void 0:n.find(y=>y.name===String(b.id));g?e(`/mobile/${g["x-uid"]}`):r("beforeEnd",Sl(b),{onSuccess(y){y&&e(`/mobile/${y["x-uid"]}`)}})}}}},Sl=(t,e)=>({type:"void",title:t.title,name:t.id,"x-component":"MMenu.Item","x-component-props":{imgItem:t,fixedComponent:e},"x-designer":"MMenu.Item.Designer",properties:{page:{type:"void","x-component":"MPage","x-designer":"MPage.Designer","x-component-props":{},properties:{grid:{type:"void","x-component":"Grid","x-initializer":"mobilePage:addBlock"}}}}}),Km=()=>{const{fieldSchema:t,Designer:e,render:n,filterProperties:r}=Wm();return m.jsxs(m.Fragment,{children:[m.jsx(e,{}),m.jsx($.RecursionField,{schema:t,onlyRenderProperties:!0,filterProperties:r}),m.jsx(i.Fragment,{children:n()})]})},Wm=()=>{const t=h.useDesigner(),e=$.useFieldSchema(),{render:n}=h.useSchemaInitializerRender(e["x-initializer"],e["x-initializer-props"]);return{fieldSchema:e,Designer:t,render:n,filterProperties:o=>qe(o["x-component"])?o===Object.values(o.parent.properties).filter(s=>qe(s["x-component"]))[0]:!0}},wl=t=>{const{onSelected:e}=Mr(),n=$.useFieldSchema(),r=h.useCollection(),o=h.useCollectionManager(),{dn:s}=h.useDesignable(),[a,l]=i.useState(!1),c=i.useMemo(()=>r==null?void 0:r.getField(n.fieldName),[r,n.fieldName]),u=n.parent.properties,d=h.useDesigner(),[f,v]=i.useState(n.fieldName),[b,g]=i.useState(n["x-component-props"].interface),y=Mt(b)?Fr(be.dayjs(new Date).startOf("date"))+"&"+Fr(be.dayjs(new Date).endOf("date")):"",[p,x]=i.useState(y),S=Object.values(u).map(T=>{if(qe(T["x-component"]))return{label:T.title,value:T.fieldName,interface:T["x-component-props"].interface}}).filter(Boolean),C=T=>{let Z,M=`${f}.$includes`;const N=xm(b);if(N&&(M=`${f}.$notEmpty`),Mt(b)&&(Z=T.split("&").map(U=>JSON.parse(U)),M=`${f}.$dateBetween`),$e(b)){const U=n["x-component-props"].fieldNames.label;M=`${n["x-component-props"].correlation}.${U}.$includes`}e(Z||[T],M,{canBeCalculatedField:N,customLabelKey:f,needSort:a})};return{collectionField:c,Designer:d,options:S,value:p,onSelectChange:T=>{const Z=Object.values(u).find(M=>M.fieldName===T)["x-component-props"].interface;if($e(Z)){const M=o.getCollection(r.name+"."+T).titleField;n["x-component-props"].correlation=T,n["x-component-props"].fieldNames={label:M},s.emit("patch",{schema:{"u-id":n["u-id"],"x-component-props":n["x-component-props"]}}),s.refresh()}g(Z),Mt(Z)?x(Fr(new Date)+"&"+Fr(new Date)):x(""),v(T)},onInputChange:T=>{var N,U;const Z={current:null};clearTimeout(Z.current);const M=(U=(N=T.target)==null?void 0:N.value)!=null?U:T;x(M),M===""&&(Z.current=setTimeout(()=>{C(M)},2e3))},onButtonClick:()=>{C(p)},customLabelKey:f,fieldInterface:b,onDateClick:T=>{C(T)},needSort:a,setNeedSort:l}},Hm=t=>{const{options:e,onChange:n}=t;return e.length>1?m.jsxs(le.Col,{flex:1,style:{display:"flex",flexDirection:"row",alignItems:"center"},children:[m.jsx(le.Select,{style:{width:"100%"},options:e,defaultValue:e[0].value,onChange:n}),m.jsx(le.Divider,{type:"vertical",style:{height:"70%"}})]}):null},Um=t=>{const{options:e,value:n,onChange:r}=t,{t:o}=de();return m.jsx(le.Col,{flex:e.length>1?3:4,children:m.jsx(le.Input,{placeholder:o("Please enter search content"),value:n,onChange:r})})},qm=t=>{const{options:e,value:n,onInputChange:r}=t,o=n.split("&"),s=a=>{const l=`"${a[0]}"&"${a[1]}"`;r(l)};return m.jsx(le.Col,{flex:e.length>1?3:4,children:m.jsx(ms.DatePicker.RangePicker,{className:h.css`
363
+ width: 100%;
364
+ border: none;
365
+ input {
366
+ text-align: center;
367
+ }
368
+ `,value:o,onChange:s})})},Ym=t=>{const{onClick:e}=t,{t:n}=de();return m.jsx(le.Col,{flex:1,children:m.jsx(le.Button,{style:{width:"100%",color:"#2c6eff"},type:"link",onClick:e,children:n("Search")})})},Gm=h.withDynamicSchemaProps(t=>{const{fieldInterface:e,collectionField:n,Designer:r,options:o,value:s,onSelectChange:a,onInputChange:l,onButtonClick:c,customLabelKey:u,onDateClick:d}=wl();return n?m.jsxs(h.SortableItem,{children:[m.jsx(r,{}),m.jsx(le.ConfigProvider,{theme:{token:{colorBgContainer:"#f9f9f9",colorBorder:"none"},components:{Input:{colorBorder:"#f9f9f9",activeShadow:"none",hoverBorderColor:"none",activeBorderColor:"none"},Divider:{colorSplit:"#c1c2c5"}}},children:m.jsxs(le.Row,{style:{marginTop:"2vh",backgroundColor:"#f9f9f9"},children:[m.jsx(Hm,{options:o,onChange:a,customLabelKey:u}),Mt(e)?m.jsx(qm,{options:o,value:s,onInputChange:l,onChange:d}):m.jsx(Um,{options:o,value:s,onChange:l}),m.jsx(Ym,{onClick:c})]})})]}):null},{displayName:"TabSearchCollapsibleInputItem"}),Xm=t=>{var l;const{options:e,onChange:n,customLabelKey:r}=t,o=e.map(c=>({text:c.label,key:c.value})),[s,a]=i.useState(!1);return e.length>1?m.jsxs(Re.Item,{style:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between"},onClick:()=>{a(!0)},children:[m.jsx("span",{style:{textAlign:"center",width:"100%"},children:(l=e.find(c=>c.value===r))==null?void 0:l.label}),m.jsx(ed,{}),e.length<=5?m.jsx(b1,{visible:s,actions:o,closeOnAction:!0,onClose:()=>a(!1),onAction:c=>{n(c.key)}}):m.jsx(ka,{columns:[e],visible:s,onClose:()=>{a(!1)},defaultValue:r,onConfirm:c=>{n(c[0])}}),m.jsx(Po,{direction:"vertical",style:{height:"70%",margin:"0 0 0 5px"}})]}):null},Jm=t=>{const{options:e,value:n,onChange:r,onInputChange:o}=t,s=n.split("&"),[a,l]=i.useState(!1),[c,u]=i.useState(0),d=be.dayjs().subtract(10,"year").toDate(),f=be.dayjs().add(3,"year").toDate(),v=()=>{l(!0)},b=([g,y])=>{const p=be.dayjs(g).startOf("date").toISOString(),x=be.dayjs(y).endOf("date").toISOString(),S=`"${p}"&"${x}"`;o(S),r(S),c>0&&c%2===1?(l(!1),u(0)):u(C=>C+1)};return m.jsxs(Re.Item,{span:e.length>1?3:4,children:[m.jsx("div",{onClick:v,children:m.jsxs(Re,{columns:5,children:[m.jsx(Re.Item,{span:2,style:{textAlign:"end"},children:xl(JSON.parse(s[0]))}),m.jsx(Re.Item,{span:1,style:{textAlign:"center"},children:"-"}),m.jsx(Re.Item,{span:2,style:{textAlign:"start"},children:xl(JSON.parse(s[1]))})]})}),m.jsx(Ht,{visible:a,destroyOnClose:!0,mask:!0,closeOnMaskClick:!0,onMaskClick:()=>l(!1),onClose:()=>l(!1),children:m.jsx(V1,{selectionMode:"range",allowClear:!0,min:d,max:f,onChange:b})})]})},Qm=t=>{const{options:e,value:n,onChange:r}=t;return m.jsx(Re.Item,{style:{flex:1},span:e.length>1?2:3,children:m.jsx(qo,{placeholder:ct("Please enter search content"),value:n,onChange:r,style:{"--font-size":"12px",marginLeft:"5px"}})})},Rm=t=>{const{onClick:e}=t,{t:n}=de();return m.jsx(Re.Item,{onClick:e,style:{color:"#2c6eff",textAlign:"center",cursor:"pointer"},children:n("Search")})},ep=h.withDynamicSchemaProps(t=>{const{collectionField:e,Designer:n,options:r,value:o,onSelectChange:s,onInputChange:a,onButtonClick:l,customLabelKey:c,fieldInterface:u,onDateClick:d}=wl(),{t:f}=de();return e?m.jsxs(h.SortableItem,{children:[m.jsx(n,{}),m.jsx("div",{className:h.css`
369
+ display: flex;
370
+ flex-direction: row;
371
+ align-items: center;
372
+ `,children:m.jsxs(Re,{columns:4,style:{flex:1,display:"flex",flexDirection:"row",justifyContent:"flex-start",padding:"10px",backgroundColor:"#f9f9f9",borderRadius:"5px",margin:"5px 0 0 0"},children:[m.jsx(Xm,{options:r,onChange:s,customLabelKey:c}),Mt(u)?m.jsx(Jm,{value:o,onChange:d,onInputChange:a,options:r}):m.jsxs(m.Fragment,{children:[m.jsx(Qm,{options:r,value:o,onChange:a}),m.jsx(Rm,{onClick:l})]})]})})]}):null},{displayName:"TabSearchCollapsibleInputItem"}),tp=h.withDynamicSchemaProps(t=>{const{collectionField:e,Designer:n,items:r,onSelect:o}=kl(t);return e?m.jsxs(h.SortableItem,{children:[m.jsx(n,{}),m.jsx(pr,{style:{"--title-font-size":"12px",color:"#a5a5a5"},onChange:o,children:r.map(s=>m.jsx(pr.Tab,{title:s.label},s.key))})]}):null},{displayName:"TabSearchFieldItem"}),kl=t=>{var p,x;const{list:e,onSelected:n,valueKey:r,labelKey:o,filterKey:s}=t,{t:a}=de(),l=$.useFieldSchema(),c=h.useCollection(),u=i.useMemo(()=>c==null?void 0:c.getField(l.fieldName),[c,l.fieldName]),d=h.useDesigner(),f=r||(u==null?void 0:u.targetKey)||"id",v=o||((x=(p=l["x-component-props"])==null?void 0:p.fieldNames)==null?void 0:x.label)||f,b=S=>{var w;const C=((w=S.keyPath)==null?void 0:w[0])||S;n([C],s)},g={title:v,key:f},y=[];return e!=null&&e.length&&e.forEach(S=>{y.push({label:S[g.title],key:S[g.key]})}),y==null||y.unshift({label:a("all"),key:"all"}),{collectionField:u,Designer:d,items:y,onSelect:b}},np=h.withDynamicSchemaProps(t=>{const{collectionField:e,Designer:n,items:r,onSelect:o}=kl(t);return e?m.jsxs(h.SortableItem,{children:[m.jsx(n,{}),m.jsx(le.ConfigProvider,{theme:{components:{Menu:{itemColor:"#a5a5a5",itemHoverColor:"#1d2ffff18"}}},children:m.jsx(le.Menu,{items:r,mode:"horizontal",onSelect:o,defaultSelectedKeys:["all"]})})]}):null},{displayName:"TabSearchFieldItem"}),rp=()=>{var u,d,f,v,b,g;const t=$.useFieldSchema(),e=h.useCollection(),n=((u=t["x-component-props"])==null?void 0:u.currentCollection)||(e==null?void 0:e.name),r=op(n),o=h.useCollectionManager(),s=i.useMemo(()=>e==null?void 0:e.getField(t.fieldName),[e,t.fieldName]),{onSelected:a}=Mr(),l={list:null,valueKey:"",labelKey:"",filterKey:""};if(!e)return;l.valueKey=s!=null&&s.target?(d=o.getCollection(s.target))==null?void 0:d.getPrimaryKey():"id",l.labelKey=((v=(f=t["x-component-props"])==null?void 0:f.fieldNames)==null?void 0:v.label)||l.valueKey;const c=(b=t["x-component-props"])==null?void 0:b.interface;if(lt(c)){const y=r.find(S=>S.name===t.fieldName.split(".").findLast(Boolean)),p={select:"$in",multipleSelect:"$anyOf",checkboxGroup:"$anyOf",radioGroup:"$in"};t.fieldName;const x=((g=y==null?void 0:y.uiSchema)==null?void 0:g.enum)||[];l.valueKey="value",l.labelKey="label",l.list=x,l.filterKey=`${t.fieldName}.${p[y==null?void 0:y.interface]}`}return{list:l.list,valueKey:l.valueKey,labelKey:l.labelKey,onSelected:a,filterKey:l.filterKey}},op=t=>{var o;const n=h.useCollectionManager().getCollection(t);return((o=n==null?void 0:n.fields)!=null?o:[]).filter(s=>lt(s.interface)&&s.uiSchema.enum)},sp=()=>{var g,y,p,x,S;const t=$.useFieldSchema(),e=h.useCollection(),n=$.useField(),r={dataSource:"main"},o=h.useDataSourceHeaders(r==null?void 0:r.dataSource),s=h.useCollectionManager(),a=i.useMemo(()=>e==null?void 0:e.getField(t.fieldName),[e,t.fieldName]),c=t["x-component-props"].currentCollection===(e==null?void 0:e.name)?a==null?void 0:a.name:t.fieldName,u=t["x-component-props"].interface,d={list:null,valueKey:"",labelKey:"",filterKey:""},{onSelected:f}=Mr();d.valueKey=a!=null&&a.target?(g=s.getCollection(a.target))==null?void 0:g.getPrimaryKey():"id",d.labelKey=((p=(y=t["x-component-props"])==null?void 0:y.fieldNames)==null?void 0:p.label)||d.valueKey;const{data:v,run:b}=h.useRequest({headers:o,resource:a==null?void 0:a.target,action:"list",params:L({fields:[d.labelKey,d.valueKey],pageSize:200,page:1},(x=n.componentProps)==null?void 0:x.params)},{manual:!0,debounceWait:300});return i.useEffect(()=>{$e(u)&&(a!=null&&a.target)&&b()},[d.labelKey,d.valueKey,JSON.stringify(((S=n.componentProps)==null?void 0:S.params)||{}),$e(u)]),a?(d.filterKey=`${c}.${d.valueKey}.$in`,d.list=(v==null?void 0:v.data)||[],{list:d.list,valueKey:d.valueKey,labelKey:d.labelKey,onSelected:f,filterKey:d.filterKey}):{}},ip=t=>{const{collectionName:e,dataSource:n,blockType:r}=t;return{type:"void","x-decorator":"TabSearchProvider","x-decorator-props":{collection:e,dataSource:n,blockType:r},"x-toolbar":"BlockSchemaToolbar","x-settings":"blockSettings:filterCollapse","x-component":"CardItem","x-filter-targets":[],properties:{[be.uid()]:{type:"void","x-action":"tabSearch","x-initializer":"tabSearch:configureFields","x-component":"TabSearch"}}}},ap=t=>{const{filterCollections:e,onlyCurrentDataSource:n,hideChildrenIfSingleCollection:r}=t,o=h.useSchemaInitializerItem(),{insert:s}=h.useSchemaInitializer(),a=c=>fe(null,[c],function*({item:l}){const u=ip({dataSource:l.dataSource,collectionName:l.collectionName||l.name,blockType:"filter"});s(u)});return m.jsx(h.DataBlockInitializer,ie(L({},o),{onlyCurrentDataSource:n,icon:"tab-search",componentType:"TabSearch",filter:e,hideChildrenIfSingleCollection:r,onCreateBlockSchema:a}))},is=t=>{var l,c;const{field:e,itemComponent:n,label:r,itemUseProps:o,collection:s,type:a}=t;return{name:e.key,title:(l=e.uiSchema)==null?void 0:l.title,Component:"TabSearchFieldSchemaInitializerGadget",schema:{name:e.name+a,fieldName:e.name,title:(c=e.uiSchema)==null?void 0:c.title,type:"void","x-toolbar":"CollapseItemSchemaToolbar","x-settings":"fieldSettings:TabSearchItem","x-component":n,"x-use-component-props":o,"x-component-props":{fieldNames:{label:r},interface:e.interface,collectionName:s==null?void 0:s.name,correlation:e.name},properties:{}}}},lp={TabSearchCollapsibleInputItem:"TabSearchCollapsibleInputMItem",useTabSearchFieldItemProps:"useTabSearchFieldItemRelatedProps",TabSearchFieldItem:"TabSearchFieldMItem"};function El(t){return lp[t]}const cp=()=>{const t=Il("textField"),e=Il("choiceField"),n=[{type:"itemGroup",title:Ye("Display association Textfields",!1),children:t},{type:"itemGroup",title:Ye("Display association Choicefields",!1),children:e}];return m.jsx(h.SchemaInitializerChildren,{children:n})};function Il(t){const e=h.useCollection(),{name:n,allFields:r}=e||{},{getCollectionFields:o}=up();h.useIsMobile();const s=h.useCollectionManager(),a=r==null?void 0:r.filter(({interface:d})=>$e(d)),l={collectionName:n,getCollectionFields:o,processedCollections:[],collectionManager:s};let c=[];return t==="textField"?c=a.map(d=>{var b;const f=$e(d.interface)?(b=s.getCollection(`${n}.${d.name}`))==null?void 0:b.titleField:d.name;return $l(ie(L({},l),{field:d,label:f,schemaName:d.name}))}):t==="choiceField"&&(c=a.map(d=>{var b;const f=((b=s.getCollection(d.target))==null?void 0:b.getPrimaryKey())||"id";return _l(ie(L({},l),{field:d,label:f,schemaName:d.name}))})),c.filter(Boolean)}function $l(t,e){var v,b,g,y,p;const{field:n,label:r,schemaName:o,collectionName:s,getCollectionFields:a,processedCollections:l,collectionManager:c}=t,{interface:u}=n,d=lt(u),f=$e(u);if(["m2o","obo"].includes(u)){if(l.includes(n.target))return null;const x=a(n.target);return{type:"subMenu",name:(v=n.uiSchema)==null?void 0:v.title,title:(b=n.uiSchema)==null?void 0:b.title,children:x.toSorted((S,C)=>+Object.hasOwn(S,"target")-+Object.hasOwn(C,"target")).map(S=>{var w;const C=$e(n.interface)?(w=c.getCollection(`${name}.${n.name}`))==null?void 0:w.titleField:n.name;return $l({field:S,label:C,schemaName:`${o}.${S.name}`,collectionName:s,getCollectionFields:a,processedCollections:[...l,n.target],collectionManager:c})}).filter(Boolean)}}return h.isAssocField(n)||!yl(u)&&!$e(u)&&!Mt(u)?null:{name:((g=n.uiSchema)==null?void 0:g.title)||n.name,title:((y=n.uiSchema)==null?void 0:y.title)||n.name,Component:"TabSearchFieldSchemaInitializerGadget",schema:{type:"void",name:o,title:`${(p=n.uiSchema)==null?void 0:p.title}`,fieldName:`${o}`,"x-toolbar":"CollapseItemSchemaToolbar","x-settings":"fieldSettings:TabSearchItem","x-collection-field":`${s}.${o}`,"x-component":El("TabSearchCollapsibleInputItem"),"x-component-props":{fieldNames:{label:r},interface:n.interface,collectionName:s,correlation:n.name},"x-use-component-props":Pl({useTabSearchFieldItemProps:d,useTabSearchFieldItemRelatedProps:f})}}}function _l(t,e){var b,g,y,p,x;const{field:n,label:r,schemaName:o,collectionName:s,getCollectionFields:a,processedCollections:l,collectionManager:c,currentCollection:u}=t,{interface:d}=n,f=lt(d),v=$e(d);if(["m2o","obo"].includes(d)&&!n.choiceTag){if(l.includes(n.target))return null;const S=a(n.target);return{type:"subMenu",name:(b=n.uiSchema)==null?void 0:b.title,title:(g=n.uiSchema)==null?void 0:g.title,children:S.reduce((C,w)=>(Object.hasOwn(w,"target")&&["m2o","obo"].includes(w.interface)&&C.push(ie(L({},w),{choiceTag:!0})),[...C,w]),[]).toSorted((C,w)=>+Object.hasOwn(C,"target")*2-+Object.hasOwn(C,"choiceTag")-+Object.hasOwn(w,"target")*2-+Object.hasOwn(w,"choiceTag")).map(C=>{var k;const w=((k=c.getCollection(n.target))==null?void 0:k.getPrimaryKey())||"id";return _l({field:C,label:w,schemaName:`${o}.${C.name}`,collectionName:s,getCollectionFields:a,processedCollections:[...l,n.target],collectionManager:c,currentCollection:n.target})}).filter(Boolean)}}return h.isAssocField(n)&&!n.choiceTag||!lt(d)&&!$e(d)?null:{type:"item",name:((y=n.uiSchema)==null?void 0:y.title)||n.name,title:((p=n.uiSchema)==null?void 0:p.title)||n.name,Component:"TabSearchFieldSchemaInitializerGadget",schema:{type:"void",name:o,title:`${(x=n.uiSchema)==null?void 0:x.title}`,fieldName:`${o}`,"x-toolbar":"CollapseItemSchemaToolbar","x-settings":"fieldSettings:TabSearchItem","x-collection-field":`${s}.${o}`,"x-component":El("TabSearchFieldItem"),"x-component-props":{fieldNames:{label:r},interface:n.interface,collectionName:s,correlation:n.name,currentCollection:u},"x-use-component-props":Pl({useTabSearchFieldItemProps:f,useTabSearchFieldItemRelatedProps:v})}}}function up(t){const e=h.useDataSourceManager(),n=h.useCollectionManager(),r=h.useDataSource(),o=(r==null?void 0:r.key)||void 0,s=i.useCallback(l=>{var c;return n&&!l?n:(c=e==null?void 0:e.getDataSource(l||o))==null?void 0:c.collectionManager},[n,e,o]);return{getCollectionFields:i.useCallback((l,c)=>{var d,f;if(!l)return[];const u=(d=s(c))==null?void 0:d.getCollection(l);return((f=u==null?void 0:u.getAllFields)==null?void 0:f.call(u))||(u==null?void 0:u.getFields())||[]},[e,s])}}function Pl(t){const e=Object.entries(t).find(([,r])=>r),[n]=e||[];return n}const dp=new h.SchemaInitializer({name:"tabSearch:configureFields",style:{marginTop:16},icon:"SettingOutlined",title:Ye("Configure fields"),items:[{name:"textFields",type:"itemGroup",title:Ye("Text fields"),useChildren:fp},{name:"choicesFields",type:"itemGroup",title:Ye("Choices fields"),useChildren:mp},{name:"divider",type:"divider"},{name:"associationFields",Component:cp},{name:"divider",type:"divider"},{title:Ye("Add text",!1),Component:"MarkdownFormItemInitializer",name:"addText"}]});function fp(){const t=h.useCollection(),e=t.fields,n=h.useCollectionManager(),o=h.useIsMobile()?"TabSearchCollapsibleInputMItem":"TabSearchCollapsibleInputItem";return e.map(a=>{if(!a.isForeignKey&&(yl(a.interface)||$e(a.interface)||Mt(a.interface))){const l=$e(a.interface)?n.getCollection(`${t.name}.${a.name}`).titleField:a.name;return is({field:a,itemComponent:o,label:l,collection:t,type:"text"})}}).filter(Boolean)}function mp(){const e=h.useCollection().fields,n=h.useCollectionManager(),o=h.useIsMobile()?"TabSearchFieldMItem":"TabSearchFieldItem";return e.map(a=>{var c;const l=((c=n.getCollection(a.target))==null?void 0:c.getPrimaryKey())||"id";if(lt(a.interface))return is({field:a,itemComponent:o,label:l,itemUseProps:"useTabSearchFieldItemProps",type:"choices"});if($e(a.interface))return is({field:a,itemComponent:o,label:l,itemUseProps:"useTabSearchFieldItemRelatedProps",type:"choices"})}).filter(Boolean)}const pp=()=>{const t=h.useSchemaInitializerItem(),{schema:e}=t,{exists:n,remove:r}=h.useCurrentSchema(e.name,"name",t.find,t.remove),{insert:o}=h.useSchemaInitializer(),s=()=>{var l;if(n)return r();const a=$.merge(e||{},t.schema||{});(l=t==null?void 0:t.schemaInitialize)==null||l.call(t,a),o(a)};return m.jsx(h.SchemaInitializerSwitch,{checked:n,title:t.title,onClick:s})},hp=t=>m.jsx(h.DataBlockProvider,{collection:t.collection,children:t.children}),gp=new h.SchemaSettings({name:"fieldSettings:TabSearchItem",items:[{name:"decoratorOptions",type:"itemGroup",hideIfNoChildren:!0,useComponentProps(){const{t}=de();return{title:t("Generic properties")}},useChildren(){return[{name:"setTheDataScope",Component:h.SchemaSettingsDataScope,useComponentProps(){var l,c;const t=$.useFieldSchema(),{form:e}=h.useFormBlockContext(),n=$.useField(),r=h.useCollectionManager(),s=h.useCollection().getField(t.fieldName)||r.getCollectionField(t["x-collection-field"]),{dn:a}=h.useDesignable();return{collectionName:s==null?void 0:s.target,defaultFilter:((c=(l=t==null?void 0:t["x-component-props"])==null?void 0:l.params)==null?void 0:c.filter)||{},form:e,onSubmit:({filter:u})=>{var d;Oe.set(n.componentProps,"params",ie(L({},(d=n.componentProps)==null?void 0:d.params),{filter:u})),t["x-component-props"].params=n.componentProps.params,a.emit("patch",{schema:{"x-uid":t["x-uid"],"x-component-props":t["x-component-props"]}})}}},useVisible(){const t=$.useFieldSchema();return!qe(t["x-component"])}},{name:"titleField",type:"select",useComponentProps(){var y,p;const t=$.useFieldSchema(),{t:e}=de(),n=h.useCollectionManager(),r=h.useCollection(),o=t["x-component-props"]||{},{collectionName:s,currentCollection:a,correlation:l}=o,c=a||s||r.name,u=r.getField(t.fieldName)||n.getCollectionField(t["x-collection-field"])||n.getCollection(c+"."+l),d=h.useCompile(),{dn:f}=h.useDesignable(),b=(u!=null&&u.target?n.getCollectionFields(u==null?void 0:u.target):[]).filter(x=>!(x!=null&&x.target)&&x.type!=="boolean").map(x=>{var S;return{value:x==null?void 0:x.name,label:d((S=x==null?void 0:x.uiSchema)==null?void 0:S.title)||(x==null?void 0:x.name)}}),g=x=>{var w,k,E;const S={"x-uid":t["x-uid"]},C=ie(L(L({},(k=(w=u==null?void 0:u.uiSchema)==null?void 0:w["x-component-props"])==null?void 0:k.fieldNames),(E=t["x-component-props"])==null?void 0:E.fieldNames),{label:x});t["x-component-props"]=t["x-component-props"]||{},t["x-component-props"].fieldNames=C,S["x-component-props"]=t["x-component-props"],f.emit("patch",{schema:S}),f.refresh()};return{key:"title-field",title:e("Title field"),options:b,value:(p=(y=t["x-component-props"])==null?void 0:y.fieldNames)==null?void 0:p.label,onChange:g}},useVisible(){var e;const t=$.useFieldSchema();return qe(t["x-component"])||((e=t["x-component-props"])==null?void 0:e.correlation)}}]}},{name:"divider",type:"divider"},{name:"delete",type:"remove",sort:100,useComponentProps(){const{t}=de(),e=$.useFieldSchema(),{dn:n}=h.useDesignable();return{removeParentsIfNoChildren:!0,confirm:{title:t("Delete field")},breakRemoveOn:r=>(qe(e["x-component"])&&(Object.values(r.properties).forEach(o=>{qe(o["x-component"])&&o.name!==e.name&&delete r.properties[o.name]}),n.emit("patch",{schema:r})),r["x-component"]==="TabSearch")}}}]}),Nt=$.connect(qo,$.mapProps(t=>ie(L({placeholder:"请输入内容",clearable:!0},t),{style:L({"--font-size":"12px"},t==null?void 0:t.style)})),$.mapReadPretty(t=>m.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis"},children:t.value}))),vp=$.connect(ll,$.mapProps(t=>ie(L({},t),{placeholder:"请输入内容",clearable:!0,style:L({"--font-size":"12px"},t==null?void 0:t.style)})),$.mapReadPretty(t=>m.jsx("div",{style:{overflow:"hidden",textOverflow:"ellipsis"},children:t.value})));Nt.TextArea=vp;const bp={red:"#fc9792",magenta:"#ffa3cc",volcano:"#ffb38b",orange:"#ffcf86",gold:"#ffe184",lime:"#e7ff84",green:"#aee884",cyan:"#7ce5d9",blue:"#86c3ff",geekblue:"#a3bfff",purple:"#cda3f6",default:"#d4d4d4"},as=t=>bp[t],ls=$.connect(Vo,$.mapProps(t=>L({},t)));ls.Group=$.connect(t=>{const e=h.useCollectionField(),n=(e==null?void 0:e.uiSchema.enum)||[],r=t.value||[];return m.jsx(Vo.Group,{value:r,children:n.map((o,s)=>m.jsx(Vo,ie(L({value:o.value,style:{"--icon-size":"12px","--font-size":"12px"},onChange:a=>{if(a)r.push(o.value);else{const l=r.findIndex(c=>{var u;return((u=o.value)==null?void 0:u.toString())===c});r.splice(l,1)}t.onChange(r)}},t),{children:o.label}),s))})},$.mapProps((t,e)=>L({},t)),$.mapReadPretty(t=>{if(!$.isValid(t.value))return m.jsx("div",{});const{value:e}=t,n=$.useField(),r=h.useCollectionField(),o=n.dataSource||(r==null?void 0:r.uiSchema.enum)||[];return m.jsx("div",{children:o.filter(s=>s.value===e).map((s,a)=>m.jsx(Jo,{color:as(s.color),children:s.label},a))})}));const Fl=$.connect(t=>{const{t:e}=h.useTranslation(),{value:n,onChange:r}=t,[o,s]=i.useState(!1),a=i.useMemo(()=>n?be.dayjs(n).format("YYYY-MM-DD"):e("please enter the date"),[n]),l=()=>s(!0),c=()=>s(!1),u=f=>{r(f),s(!1)},d=i.useMemo(()=>{const f=be.dayjs(n);if(f.isValid())return f.toDate()},[n]);return m.jsxs(m.Fragment,{children:[m.jsx(ot,{onClick:l,children:a}),m.jsx(X0,{visible:o,value:d,onClose:c,onConfirm:u})]})},$.mapProps(t=>L({},t)),$.mapReadPretty(t=>{const e=L({},t);return e.value=t.value?be.dayjs(t.value).format("YYYY-MM-DD"):"",m.jsx("div",{children:e.value})})),yp=$.connect(t=>{const[e,n]=i.useState([]),[r,o]=i.useState(!1),s=t.value||[];i.useEffect(()=>{if(!r&&t.value){const l=t.value.map(c=>({url:c.url,key:c.id,thumbnailUrl:c.url}));n(l)}},[t.value]);const a=h.useAPIClient();return m.jsx(Ra,{value:e,upload:l=>fe(null,null,function*(){const{name:c}=l;if(xp(c)){const d=new FormData;d.append("file",l);let f;return yield a.request({url:t.action,method:"post",data:d}).then(v=>{var b;f=(b=v==null?void 0:v.data)==null?void 0:b.data,s.push(f)}).catch(()=>{}),{url:f==null?void 0:f.url,key:f==null?void 0:f.id,thumbnailUrl:f==null?void 0:f.url}}}),onChange:l=>{n(l),o(!0),t.onChange(s)},onDelete:l=>{const c=s.findIndex(u=>u.id===l.key);s.splice(c,1),t.onChange(s)}})},$.mapProps(t=>L({},t)),$.mapReadPretty(t=>{const{showCount:e,value:n=[]}=t,r=n.slice(0,e);return m.jsx(Ra,ie(L({},t),{value:r,disableUpload:!0,showUpload:!1,upload:()=>fe(null,null,function*(){return{url:""}})}))})),xp=t=>/\.(png|jpg|jpeg|gif|webp)$/i.test(t),cs=$.connect(Yo,$.mapProps({value:"checked",onInput:"onChange"}));cs.Group=$.connect(t=>{const e=h.useCollectionField(),n=(e==null?void 0:e.uiSchema.enum)||[];return m.jsx(Yo.Group,ie(L({},t),{children:n.map((r,o)=>m.jsx(Yo,{value:r.value,style:{"--font-size":"12px","--icon-size":"18px",marginLeft:"10px"},children:r.label},o))}))},$.mapProps((t,e)=>(i.useEffect(()=>{var r;const n=(r=e.dataSource)==null?void 0:r.find(o=>o.value===t.value);n&&e.setValue(n.value)},[t.value,e.dataSource]),L({},t))),$.mapReadPretty(t=>{if(!$.isValid(t.value))return m.jsx("div",{});const{value:e}=t,n=$.useField(),r=h.useCollectionField(),o=n.dataSource||(r==null?void 0:r.uiSchema.enum)||[];return m.jsx("div",{children:o.filter(s=>s.value===e).map((s,a)=>m.jsx(Jo,{color:as(s.color),children:s.label},a))})}));const Cp=h.createStyles(({css:t})=>({PopupStyle:t`
373
+ .adm-popup-body {
374
+ padding: 10px;
375
+ .adm-space {
376
+ width: 100%;
377
+ margin: 10px 0 10px 0;
378
+ color: #4592ff;
379
+ button {
380
+ width: 23vw;
381
+ }
382
+ }
383
+ .adm-divider {
384
+ margin: 0;
385
+ }
386
+ .adm-list-body {
387
+ height: 30vh;
388
+ overflow: auto;
389
+ text-align: center;
390
+ }
391
+ }
392
+ `,customPickerView:t`
393
+ --item-height: 80px;
394
+ .adm-picker-view-column-item-label.adm-picker-view-column-item-label {
395
+ white-space: normal;
396
+ word-wrap: break-word;
397
+ word-break: break-all;
398
+ line-height: 1.4;
399
+ padding: 8px 12px;
400
+ min-height: 44px;
401
+ display: flex;
402
+ align-items: center;
403
+ }
404
+ `})),Sp=$.observer(t=>{const{fieldSchema:e}=t,[n,r]=i.useState(!1),o=e.reduceProperties((a,l)=>{const c=l.reduceProperties((u,d)=>d["x-component"]==="AssociationField.AddNewer"?d:u);return c||a},{}),s=()=>{r(!0)};return m.jsxs("div",{children:[m.jsx(ot,{color:"primary",fill:"outline",onClick:s,children:"添加"}),m.jsx(Ht,{visible:n,onMaskClick:()=>{r(!1)},showCloseButton:!0,onClose:()=>{r(!1)},className:h.css`
405
+ .adm-popup-body {
406
+ height: 80vh;
407
+ overflow: auto;
408
+ }
409
+ `,children:m.jsx(h.MobileProvider,{children:m.jsx(h.ActionContextProvider,{visible:n,setVisible:r,children:m.jsx($.RecursionField,{schema:o,onlyRenderProperties:!0})})})})]})},{displayName:"CreateRecordAction"}),wp=$.observer(t=>{const{value:e,collectionName:n,service:r,fieldNames:o,addMode:s,onChange:a,multiple:l,mode:c}=t,[u,d]=i.useState(!1),[f,v]=i.useState(""),{styles:b}=Cp(),[g,y]=i.useState([]),p=$.useFieldSchema(),x=h.useCollectionManager(),S=h.useCollection(),[C]=h.useFieldServiceFilter(r==null?void 0:r.params),[w,k]=i.useState({}),E=h.useAPIClient(),I=(o==null?void 0:o.label)||"label",T=(o==null?void 0:o.value)||"value",Z=i.useMemo(()=>be.isArray(e)?e.map(A=>A[T]):e&&typeof e=="object"?[e[T]]:[],[e,T]),[M,N]=i.useState([]),U=i.useMemo(()=>g.filter(A=>A[I].includes(f)),[g,f]),z=i.useMemo(()=>be.isArray(e)?e.map(A=>A[I]).join(", "):e&&typeof e=="object"?e[I]:"",[e,I]),{run:_}=h.useRequest({resource:n,action:"list",params:{filter:L(L({},C==null?void 0:C.filter),w)}},{manual:!0,onSuccess(A){var W;if(A){const q=(W=A.data)==null?void 0:W.map(R=>ie(L({},R),{label:R[I],value:R[T]}));y(q)}}}),F=()=>{var A;if(n)_();else if(p["x-collection-field"]){const q=(A=x.getCollectionField(p["x-collection-field"]).uiSchema)==null?void 0:A.enum;y(q)}else y(p.enum)},P=()=>fe(null,null,function*(){(yield E.request({url:n+":create",method:"post",data:{[I]:f}})).status===200?Ro.show({icon:"success",content:ct("Add success")}):Ro.show({icon:"fail",content:ct("Add failed")});const W=L({},w);delete W[I],k(W),v(""),d(!1)}),B=A=>{v(A),k(ie(L({},w),{[I]:{$includes:A}}))},O=A=>{N(A)},V=()=>{const A=L({},w);A[I]&&delete A[I];const W=g.filter(q=>M.includes(q.value));a(W),d(!1),v(""),k(A)},j=i.useMemo(()=>Oe.debounce(_,300),[_]);return i.useEffect(()=>(n&&f&&j(),()=>{j.cancel()}),[f,j]),i.useEffect(()=>{F()},[w,u]),i.useEffect(()=>{N(Z)},[Z]),m.jsx(h.CollectionProvider,{name:n||(S==null?void 0:S.name),children:m.jsxs(h.BlockItem,{children:[m.jsx("div",{onClick:()=>{p["x-disabled"]||(d(!0),F())},style:{color:"#c5c5c5"},children:e!=null&&e.length||e&&!be.isArray(e)?m.jsx(Nt,{style:{"--color":"#1e8bf1"},value:z,disabled:p["x-disabled"]}):m.jsx($n,{children:p["x-disabled"]?"":ct("Please select content")})}),m.jsx(Ht,{visible:u,className:`${b.PopupStyle}`,onMaskClick:()=>{d(!1)},children:m.jsxs(h.MobileProvider,{children:[m.jsx(ol,{placeholder:ct("Please enter search content"),value:f,onChange:B}),f&&s==="quickAdd"?m.jsxs($n,{justify:"center",align:"center",onClick:P,children:["+ ",ct("Add")," ",f]}):null,m.jsx(Po,{}),l||c==="multiple"?m.jsx(vr,{multiple:!0,className:`${b.checkListStyle}`,value:M,onChange:O,children:U.map((A,W)=>m.jsx(vr.Item,{value:A.value,children:A.label},W))}):m.jsx(Lo,{value:M,className:`${b.customPickerView}`,columns:[U],onChange:A=>{N(A)}}),m.jsxs($n,{justify:"evenly",align:"center",children:[s==="modalAdd"?m.jsx(h.SchemaComponent,{components:{CreateRecordAction:Sp},schema:{type:"void",name:"CreateRecord","x-component":"CreateRecordAction","x-component-props":{fieldSchema:p}}}):null,m.jsx(ot,{color:"primary",onClick:()=>{d(!1);const A=L({},w);A[I]&&delete A[I],v(""),k(A)},children:ct("Cancel")}),m.jsx(ot,{color:"primary",onClick:V,children:ct("Confirm")})]})]})})]})})}),us=$.connect(wp,$.mapProps(t=>{const e=L({},t),n=$.useFieldSchema(),o=h.useCollectionManager().getCollection(n["x-collection-field"]),s=$.useField(),a=h.useCollectionField(),l=s.dataSource||(a==null?void 0:a.uiSchema.enum)||[];return o&&(e.collectionName=o.name),typeof e.value!="object"&&(e.value=l.filter(c=>c.value.toString()===(e==null?void 0:e.value))),L({},e)}),$.mapReadPretty(t=>{var n,r;const e=h.useCollectionField();if(typeof t.value=="object")return m.jsx(h.AssociationField.ReadPretty,L({},t));{const o=(r=(n=e==null?void 0:e.uiSchema)==null?void 0:n.enum)==null?void 0:r.find(s=>s.value===t.value);return m.jsx(Jo,{color:as(o==null?void 0:o.color),children:o==null?void 0:o.label})}})),kp=h.createStyles(({css:t})=>({PopupStyle:t`
410
+ .adm-popup-body {
411
+ padding: 10px;
412
+ .adm-space {
413
+ width: 100%;
414
+ margin: 10px 0 10px 0;
415
+ color: #4592ff;
416
+ button {
417
+ width: 23vw;
418
+ }
419
+ }
420
+ .adm-divider {
421
+ margin: 0;
422
+ }
423
+ .adm-list-body {
424
+ height: 30vh;
425
+ overflow: auto;
426
+ text-align: center;
427
+ }
428
+ }
429
+ `})),Ml=$.observer(t=>{var te,Ne;const{service:e,fieldNames:n,disabled:r,useLoadData:o,useDataSource:s,multiple:a,onChange:l,value:c,formCascaderValues:u,index:d}=t,f=$.useFieldSchema(),v=h.useCollectionManager(),{styles:b}=kp(),g=v.getCollectionField(f["x-collection-field"]),y=((te=f["x-component-props"])==null?void 0:te.changOnSelect)||!1,p=v.getCollection(f["x-collection-field"]),x=g.interface==="chinaRegion",[S,C]=i.useState([]),[w,k]=i.useState(!1),[E]=h.useFieldServiceFilter(e==null?void 0:e.params),[I,T]=i.useState(E),[Z,M]=i.useState(""),[N,U]=i.useState(c),[z,_]=i.useState(""),[F,P]=i.useState([]),B=$.useField(),{loading:O,run:V}=h.useRequest({resource:p==null?void 0:p.name,action:"list",params:{filter:I,tree:!0}},{manual:!0,onSuccess({data:X}){if(X){C(X),B.dataSource=X||[];const ue=Ep(X);P(ue),c&&_(Nr(ue,c,"",n.label))}}}),j=o==null?void 0:o(t),{loading:A,run:W}=(s==null?void 0:s({onSuccess(X){B.dataSource=(X==null?void 0:X.data)||[],C(X==null?void 0:X.data)}}))||{loading:!0,run:null};!z&&c&&x&&_(Nl(c,n)),i.useEffect(()=>{!x&&(p!=null&&p.name)&&R()},[I]),i.useEffect(()=>{!x&&F.length&&_(Nr(F,c,"",n.label))},[(Ne=f["x-component-props"])==null?void 0:Ne.fieldNames]);const q=X=>fe(null,null,function*(){U(X?x?X:X[X.length-1]:{})}),R=()=>{x?W():V()};return m.jsxs(h.CollectionProvider,{name:g.collectionName,children:[m.jsxs("div",{onClick:()=>{r||(k(!0),R())},style:{display:"flex",alignItems:"center"},children:[c&&Object.keys(c).length?m.jsx(Nt,{style:{"--color":"#1e8bf1"},value:z,disabled:r,clearable:!1}):m.jsx(Nt,{value:z?"":"请选择",style:{"--color":"#c5c5c5"}}),c&&Object.keys(c).length||u&&d!==0?m.jsx(Rn,{style:{margin:"5px 10px 5px 20px"},onClick:()=>{if(d){const X=[...u];u.length===1&&d===0?X[d]={}:X.splice(d,1),l(X)}else l({})}}):null]}),m.jsx(Ht,{visible:w,className:`${b.PopupStyle}`,onMaskClick:()=>{k(!1)},children:m.jsxs(h.MobileProvider,{children:[x?null:m.jsxs(m.Fragment,{children:[m.jsx(ol,{placeholder:"请输入内容",value:Z,onChange:X=>{const ue=L({},I);ue[n.label]={$includes:X},T(ue),M(X)}}),m.jsx(Po,{})]}),m.jsx(S0,{loading:x?A:O,fieldNames:n,options:S,onChange:(X,ue)=>{if(x){const K=B.componentProps.maxLevel,G=ue.items[ue.items.length-1];K>G.level&&(G.children=[]),j(ue.items,oe=>{oe!=null&&oe.data.length&&(G.children=oe.data.map(ge=>(K>ge.level&&(ge.isLeaf=!1),ge)),C([...S]))})}q(ue.items)}}),m.jsxs($n,{justify:"evenly",align:"center",children:[m.jsx(ot,{color:"primary",onClick:()=>{k(!1);const X=L({},I);X[n.label]&&delete X[n.label],M(""),T(X)},children:"取消"}),m.jsx(ot,{color:"primary",onClick:()=>{const X=a?Ip(u,N,d):N;l(X);const ue=x?Nl(N,n):Nr(F,N,"",n.label);if(_(ue),k(!1),!x){const K=L({},I);delete K[n.label],M(""),T(K)}},disabled:y?!(N&&N!=="{}"):!(N&&N!=="{}"&&(!(N!=null&&N.children)||!(N!=null&&N.children.length))),children:"确定"})]})]})})]})}),Nr=(t,e,n,r)=>{const o=`${(e==null?void 0:e[r])||""}${n}`;if(e!=null&&e.parentId){const s=t.find(l=>l.id===e.parentId),a=`/${o}`;return Nr(t,s,a,r)}return o},Ep=t=>{const e=(r,o)=>(o.push(r),r!=null&&r.children&&r.children.forEach(s=>e(s,o)),o),n=[];return t.forEach(r=>{const o=e(r,[]);n.push(...o)}),n},Ip=(t,e,n)=>{const r=[];return t&&(n||n===0)?(t[n]=e,r.push(...t)):r.push(e),r},Nl=(t,e)=>t==null?void 0:t.reduce((n,r,o)=>n+`${r[e.label]}${t.length-1===o?"":"/"}`,""),$p=$.observer(t=>{const{value:e,onChange:n,multiple:r}=t,{t:o}=de();return m.jsxs(m.Fragment,{children:[be.isArray(e)&&r?m.jsx(m.Fragment,{children:e.map((s,a)=>{const l=ie(L({},t),{value:s,formCascaderValues:e||[],index:a});return i.createElement(Ml,ie(L({},l),{key:a}))})}):m.jsx(Ml,L({},t)),r?m.jsx(m.Fragment,{children:m.jsxs(ot,{style:{textAlign:"center",width:"100%",border:"1px dashed #c5c5c5",color:"#c5c5c5",fontSize:"12px",height:"5vh",lineHeight:"2vh"},onClick:()=>{const s=e?[...e,{}]:[{},{}];n(s)},children:["+ ",o("Add new")]})}):null]})}),_p={label:"label",value:"value",children:"children"},Pp=t=>{const{fieldNames:e=_p}=t,n=$.toArr(t.value),r=n.length;let s=$.useField().dataSource;const a=[];for(const l of n)if(typeof l=="object")a.push(l);else{const c=s==null?void 0:s.find(u=>u[e.value]===l);s=(c==null?void 0:c[e.children])||[],a.push(c||{label:l,value:l})}return m.jsx("div",{children:a.map((l,c)=>m.jsxs("span",{children:[typeof l=="object"?l[e.label]:l,r>c+1&&" / "]},c))})},Tl=$.connect($p,$.mapProps(t=>L({},t)),$.mapReadPretty(t=>{const e=$.useFieldSchema();return h.useCollectionManager().getCollectionField(e["x-collection-field"]).interface==="chinaRegion"?m.jsx(Pp,L({},t)):m.jsx(h.AssociationField.ReadPretty,L({},t))})),Fp=i.createContext(null),Ol=()=>i.useContext(Fp),Mp=h.css`
430
+ padding: 0 var(--tb-spacing);
431
+ & > .tb-action-bar {
432
+ padding: unset !important;
433
+ background: unset !important;
434
+ }
435
+ `,Np=()=>({className:Mp}),Tp={xs:1,sm:1,md:1,lg:1,xl:1,xxl:1},Op=()=>({columnCount:Ol()?Tp:null,pagination:{simple:!0}}),Dp=()=>{const t=ae.useNavigate();return window.location.pathname.split("/")[1]==="mobile"?m.jsx(pf,{status:"empty",title:"Sorry, the page you visited does not exist.",description:m.jsx(ot,{onClick:()=>t("/mobile",{replace:!0}),color:"primary",children:"Back Home"}),className:h.css`
436
+ .adm-error-block-image {
437
+ height: 30vh;
438
+ }
439
+ .adm-error-block-description-title {
440
+ font-size: 50px;
441
+ }
442
+ .adm-error-block-description-subtitle {
443
+ font-size: 50px;
444
+ }
445
+ button {
446
+ width: 20vh;
447
+ height: 3.5vh;
448
+ font-size: 50px;
449
+ }
450
+ `}):m.jsx(h.AppNotFound,{})},Dl=()=>window.JsBridge,Ap=(t,e)=>Dl().invoke(t,e),Lp=()=>!!Dl(),Al={onBackPressed:()=>{history.length===1?Ap({action:"moveTaskToBack"}):history.back()}};Object.keys(Al).forEach(t=>{window[t]=Al[t]});const Ll=i.memo(t=>{const e=ae.useLocation(),n=ae.useNavigate();return i.useEffect(()=>{Lp()&&e.pathname==="/admin"&&n("/mobile",{replace:!0})},[e.pathname,n]),m.jsx(m.Fragment,{children:t.children})});Ll.displayName="MobileClientProvider";const Bp=()=>{const t=ae.useNavigate(),{token:e}=h.useToken(),{t:n}=de();return m.jsx(le.Tooltip,{title:n("Mobile UI"),children:m.jsx(le.Button,{icon:m.jsx(Te.MobileOutlined,{style:{color:e.colorTextHeaderMenu}}),title:n("Mobile UI"),onClick:()=>{t("/mobile")}})})},zp=t=>m.jsx(h.PinnedPluginListProvider,{items:{me:{order:210,component:"MobileLink",pin:!0,isPublic:!0,belongTo:"pinnedmenu"}},children:m.jsx(h.SchemaComponentOptions,{components:{MobileLink:Bp},children:t.children})}),Bl=()=>{const t=$.useFieldSchema(),{t:e}=Ke.useTranslation(),{duplicateData:n}=h.useFormBlockContext(),r=h.useCollectionManager();if(n)return n;const{items:o=[],display:s=!0}=Zp(t);o.forEach(c=>{var u;try{c.fields=(u=c.fields)==null?void 0:u.map(d=>r.getCollectionField(`${c.collection}.${d}`)?d:"").filter(Boolean)}catch(d){be.error(d),c.fields=[]}});const a=[{key:"none",title:e("None")}].concat(o.map((c,u)=>ie(L({key:u},c),{isLeaf:c.dataId!==null&&c.dataId!==void 0,titleCollectionField:(c==null?void 0:c.titleField)&&r.getCollectionField(`${c.collection}.${c.titleField}`)}))),l=o.find(c=>c.default);return{templates:a,display:s,defaultTemplate:l,enabled:o.length>0&&o.every(c=>c.dataId||c.dataScope)}},Vp=({style:t={},templateKey:e="none",collection:n})=>{const r=$.useForm(),{templates:o,enabled:s,defaultTemplate:a}=Bl(),l=h.useCollectionManager(),c=h.compatibleDataId(o),u=e,[d,f]=i.useState(null),v=h.useAPIClient(),{t:b}=Ke.useTranslation();i.useEffect(()=>{s&&a&&(r.__template=!0,a.key==="duplicate"&&y(a.dataId,a))},[]),i.useEffect(()=>{c!=null&&c.some(x=>x.key===u)||g("none")},[c]);const g=i.useCallback(x=>fe(null,null,function*(){f(null),r==null||r.reset()}),[]),y=i.useCallback((x,S)=>fe(null,null,function*(){const C=ie(L({},S),{dataId:x});f(S),jp(v,C).then(w=>(r&&w&&(r.reset(),r.__template=!0,be.forEach(w,(k,E)=>{var I;k&&(r.values[E]=k,(I=r==null?void 0:r.setInitialValuesIn)==null||I.call(r,E,k))})),w)).catch(w=>{console.error(w)})}),[]);if(!s)return null;const p=c==null?void 0:c.find(x=>x.key===u);return p&&n&&(p.collection=n),u!=="none"&&p&&m.jsx(h.RemoteSelect,{fieldNames:{label:p==null?void 0:p.titleField,value:"id"},target:p==null?void 0:p.collection,value:d,objectValue:!0,service:{resource:p==null?void 0:p.collection,params:{filter:p==null?void 0:p.dataScope}},onChange:x=>y(x==null?void 0:x.id,L(L({},x),p)),targetField:l.getCollectionField(`${p==null?void 0:p.collection}.${p.titleField}`)})};function Zp(t){const e=h.findFormBlock(t);return e?Oe.cloneDeep(e["x-data-templates"])||{}:{}}function jp(t,e,n){return fe(this,null,function*(){if(!(e.fields.length===0||!e.dataId))return t.resource(e.collection).get({filterByTk:e.dataId,fields:e.fields,isTemplate:!0}).then(r=>{var o;return(o=r.data)==null?void 0:o.data})})}const Kp=new h.SchemaSettings({name:"fieldSettings:component:DataSelect",items:[{name:"templateSelect",type:"select",useComponentProps(){var a;const{templates:t}=Bl(),e=h.compatibleDataId(t),{t:n}=de(),r=$.useField(),o=$.useFieldSchema(),{dn:s}=h.useDesignable();return{title:n("Template Select"),value:((a=r.componentProps)==null?void 0:a.templateKey)||"none",fieldNames:{label:"title",value:"key"},options:e,onChange(l){const c={"x-uid":o["x-uid"]};o["x-component-props"].templateKey=l,o["x-acl-ignore"]=!0,c["x-component-props"]=o["x-component-props"],c["x-acl-ignore"]=!0,r.componentProps.templateKey=l,s.emit("patch",{schema:c})}}}},{name:"collectionSelect",type:"select",useComponentProps(){var l;const t=h.useCollectionManager(),e=h.useCompile(),n=t.getCollections().map(c=>({label:e(c.title),value:c.name})),{t:r}=de(),o=$.useField(),s=$.useFieldSchema(),{dn:a}=h.useDesignable();return{title:r("Collection Select"),value:(l=o.componentProps)==null?void 0:l.collection,options:n,onChange(c){const u={"x-uid":s["x-uid"]};s["x-component-props"].collection=c,s["x-acl-ignore"]=!0,u["x-component-props"]=s["x-component-props"],u["x-acl-ignore"]=!0,o.componentProps.collection=c,a.emit("patch",{schema:u})}}}}]});class Wp extends h.Plugin{load(){return fe(this,null,function*(){this.app.addComponents({DataSelect:Vp}),this.app.schemaSettingsManager.add(Kp);const e={name:"SelectData",title:this.t("Select Data"),Component:"BlockItemInitializer",schema:{type:"void","x-decorator":"FormItem","x-settings":"fieldSettings:FormItem","x-component":"DataSelect","x-component-props":{mode:"DataSelect"}}};this.app.schemaInitializerManager.addItem("form:configureFields",e.name,e),this.app.schemaInitializerManager.addItem("details:configureFields",e.name,e)})}}const Hp="data:image/svg+xml,%3csvg%20viewBox='0%200%201024%201024'%20width='1em'%20height='1em'%20fill='currentColor'%3e%3cpath%20d='M338.773333%20362.666667H170.666667v298.666666h105.578666l45.013334%200.021334%2017.258666%200.426666L682.666667%20809.258667V214.890667L338.773333%20362.666667z%20m-17.578666-85.333334L768%2085.333333v853.333334l-448-191.978667L85.333333%20746.666667V277.333333h235.861334zM170.666667%20661.333333v85.333334h85.333333v-85.333334H170.666667zM853.333333%20298.666667h85.333334v426.666666h-85.333334z'%20fill='%23000000'%20%3e%3c/path%3e%3c/svg%3e",Up="data:image/svg+xml,%3csvg%20viewBox='0%200%201024%201024'%20width='1em'%20height='1em'%20fill='currentColor'%3e%3cpath%20d='M0%20219.428571h73.142857v585.142858H0V219.428571z%20m950.857143%200h73.142857v585.142858h-73.142857V219.428571z%20m-146.285714-146.285714a73.142857%2073.142857%200%200%201%2073.142857%2073.142857v731.428572a73.142857%2073.142857%200%200%201-73.142857%2073.142857H219.428571a73.142857%2073.142857%200%200%201-73.142857-73.142857V146.285714a73.142857%2073.142857%200%200%201%2073.142857-73.142857h585.142858z%20m0%2073.142857H219.428571v731.428572h585.142858V146.285714zM365.714286%20694.857143a36.571429%2036.571429%200%201%201%200%2073.142857%2036.571429%2036.571429%200%200%201%200-73.142857z%20m146.285714%200a36.571429%2036.571429%200%201%201%200%2073.142857%2036.571429%2036.571429%200%200%201%200-73.142857z%20m146.285714%200a36.571429%2036.571429%200%201%201%200%2073.142857%2036.571429%2036.571429%200%200%201%200-73.142857z'%3e%3c/path%3e%3c/svg%3e",qp="data:image/svg+xml,%3csvg%20viewBox='0%200%201024%201024'%20width='1em'%20height='1em'%20fill='currentColor'%3e%3cpath%20d='M1263.243636%20908.939636l-156.485818-156.392727c25.6-37.050182%2039.842909-79.685818%2039.842909-128.093091%200-125.114182-102.4-227.514182-227.607272-227.514182a228.258909%20228.258909%200%200%200-227.514182%20227.514182c0%20125.207273%20102.4%20227.607273%20227.514182%20227.607273%2048.407273%200%2091.042909-14.242909%20128-39.842909l156.392727%20156.392727a41.239273%2041.239273%200%200%200%2059.764363%200c19.921455-17.035636%2019.921455-45.428364%200-59.671273zM921.786182%20766.696727a140.846545%20140.846545%200%200%201-142.242909-142.242909c0-79.592727%2062.557091-142.149818%20142.242909-142.149818%2079.592727%200%20142.242909%2062.557091%20142.242909%20142.149818%200%2079.685818-62.650182%20142.242909-142.242909%20142.242909z'%3e%3c/path%3e%3cpath%20d='M694.272%20894.696727H111.150545v-512h583.121455a43.752727%2043.752727%200%200%200%2042.728727-42.635636%2043.752727%2043.752727%200%200%200-42.728727-42.728727H111.150545V98.304h853.364364v156.392727a43.752727%2043.752727%200%200%200%2042.635636%2042.635637%2043.752727%2043.752727%200%200%200%2042.728728-42.635637V69.818182a57.064727%2057.064727%200%200%200-56.878546-56.878546H82.757818A57.064727%2057.064727%200%200%200%2025.879273%2069.818182v853.364363c0%2031.278545%2025.6%2056.785455%2056.785454%2056.785455h611.607273a43.752727%2043.752727%200%200%200%2042.728727-42.635636%2043.752727%2043.752727%200%200%200-42.728727-42.635637z'%3e%3c/path%3e%3cpath%20d='M637.393455%20155.182545c-22.714182%200-42.635636%2021.690182-42.635637%2046.545455%200%2024.762182%2019.921455%2046.545455%2042.635637%2046.545455h28.485818c22.714182%200%2042.635636-21.783273%2042.635636-46.545455%200-24.855273-19.921455-46.545455-42.635636-46.545455h-28.485818z%20m-199.121455%200c-22.714182%200-42.635636%2021.690182-42.635636%2046.545455%200%2024.762182%2019.921455%2046.545455%2042.635636%2046.545455h28.485818c22.714182%200%2042.635636-21.783273%2042.635637-46.545455%200-24.855273-19.921455-46.545455-42.635637-46.545455h-28.485818z%20m-199.121455%200c-22.714182%200-42.635636%2021.690182-42.635636%2046.545455%200%2024.762182%2019.921455%2046.545455%2042.635636%2046.545455h28.485819c22.714182%200%2042.635636-21.783273%2042.635636-46.545455%200-24.855273-19.921455-46.545455-42.635636-46.545455h-28.485819z'%3e%3c/path%3e%3c/svg%3e";let Yp=t=>decodeURI(t).replace("data:image/svg+xml,","");const ds=t=>()=>m.jsx("div",{dangerouslySetInnerHTML:{__html:Yp(t)}}),Gp=t=>m.jsx(h.Icon,L({component:ds(Hp)},t)),Xp=t=>m.jsx(h.Icon,L({component:ds(Up)},t)),Jp=t=>m.jsx(h.Icon,L({component:ds(qp)},t));h.Icon.register({"notice-block":Gp,"swiper-block":Xp,"tab-search":Jp});const Qp=t=>m.jsx(h.MobileProvider,{children:m.jsx(h.SchemaComponentOptions,{components:{MMenuBlockInitializer:fc,MSettingsBlockInitializer:pm,MContainer:ns,MMenu:es,MTabBar:rs,MPage:os,MHeader:vl,MSettings:bl,SwiperBlockInitializer:Vm,SwiperBlock:zm,SwiperPage:Cl,TabSearch:Km,TabSearchProvider:hp,TabSearchBlockInitializer:ap,TabSearchFieldItem:np,TabSearchFieldMItem:tp,TabSearchCollapsibleInputItem:Gm,TabSearchCollapsibleInputMItem:ep,TabSearchFieldSchemaInitializerGadget:pp,ImageSearchView:$m,ImageSearchInitializer:Em,ImageSearchProvider:Im,ImageSearchItemIntializer:Pm,ImageSearchItemToolbar:Mm,ImageSearchItemView:Nm,MInput:Nt,MCheckbox:ls,MDatePicker:Fl,MRadio:cs,MImageUploader:yp,MCascader:Tl,MSelect:us,Input:Nt,"Input.TextArea":Nt.TextArea,"Radio.Group":cs.Group,"Checkbox.Group":ls.Group,DatePicker:Fl,Select:us,AlternativeAssociationSelect:us,Cascader:Tl},scope:{useGridCardBlockItemProps:Np,useGridCardBlockProps:Op,useSwiperBlockProps:jm,usePropsOptionalImageSearchItemField:Dm,usePropsRelatedImageSearchItemField:Lm,useTabSearchFieldItemProps:rp,useTabSearchFieldItemRelatedProps:sp},children:t.children})}),Rp=()=>{const{t}=de(),e=h.useApp(),n=()=>{const r=window.location,o=r.hash.slice(r.hash.indexOf("/"));window.open(e.getRouteUrl(o))};return m.jsx("div",{className:h.css`
451
+ position: absolute;
452
+ top: -40px;
453
+ right: 0;
454
+ `,children:m.jsx(le.Button,{type:"dashed",onClick:n,icon:m.jsx(Te.LinkOutlined,{}),children:t("Preview")})})},eh=h.css`
455
+ --tb-spacing: 14px;
456
+ `,th=h.css``,nh=h.css`
457
+ --tb-designer-top: 2px;
458
+ --tb-designer-right: 2px;
459
+ .tb-sortable-designer:hover {
460
+ position: relative;
461
+ > .general-schema-designer {
462
+ display: block;
463
+ }
464
+ }
465
+ .general-schema-designer {
466
+ position: absolute;
467
+ z-index: 999;
468
+ top: 0;
469
+ bottom: 0;
470
+ left: 0;
471
+ right: 0;
472
+ display: none;
473
+ border: 0;
474
+ pointer-events: none;
475
+ > .general-schema-designer-icons {
476
+ position: absolute;
477
+ top: var(--tb-designer-top);
478
+ right: var(--tb-designer-right);
479
+ line-height: 16px;
480
+ pointer-events: all;
481
+ .ant-space-item {
482
+ background-color: var(--colorSettings);
483
+ color: #fff;
484
+ line-height: 16px;
485
+ width: 16px;
486
+ padding-left: 1px;
487
+ align-self: stretch;
488
+ }
489
+ }
490
+ }
491
+ `,zl={getContainer:".tb-mobile-application",width:"90%",style:{position:"absolute"}},rh=ie(L({},zl),{style:{maxWidth:"calc(100% - 16px)"},maskStyle:{position:"absolute"},wrapClassName:h.css`
492
+ position: absolute !important;
493
+ `}),oh=()=>"default-admin-mobile",Vl=t=>{const e=oh(),n=ae.useParams(),r=Ol(),o=i.useMemo(()=>r?i.Fragment:h.AdminProvider,[r]);return h.useViewport(),m.jsx(o,{children:m.jsxs(Qp,{children:[m.jsx(Rp,{}),m.jsx(h.ActionContextProvider,{modalProps:rh,drawerProps:zl,children:m.jsxs("div",{className:h.cx("tb-mobile-application",nh,eh,th,h.css`
494
+ display: flex;
495
+ flex-direction: column;
496
+ width: 100%;
497
+ height: 100%;
498
+ position: relative;
499
+ overflow: hidden;
500
+ `),children:[n.name&&!n.name.startsWith("tab_")?m.jsx(ae.Outlet,{}):m.jsx(h.RemoteSchemaComponent,{uid:e,children:t.children},e),m.jsx("div",{id:"tb-position-container"})]})})]})})};class Zl extends h.Plugin{afterAdd(){return fe(this,null,function*(){this.pm.add(Wp,{name:"plugin-data-select"}),this.app.pm.add(uc,{name:"SearchAndJump"}),this.app.pm.add(oc,{name:"Designable"}),this.app.pm.add(tc,{name:"calculator"})})}load(){return fe(this,null,function*(){this.setMobileRouter(),this.addRoutes(),this.app.use(Ll),this.app.use(zp),this.app.schemaInitializerManager.add(dc),this.app.schemaInitializerManager.add(Sm),this.app.schemaInitializerManager.add(dp),this.app.schemaSettingsManager.add(Zm),this.app.schemaSettingsManager.add(Fm),this.app.schemaSettingsManager.add(gp)})}setMobileRouter(){const e=h.createRouterManager({type:"hash"},this.app);this.router.add("not-found",{path:"*",Component:Dp}),e.add("root",{path:"/",element:m.jsx(ae.Navigate,{replace:!0,to:"/mobile"})}),e.add("mobile",{path:"/mobile",element:m.jsx(Vl,{})}),e.add("mobile.page",{path:"/mobile/:name",Component:"RouteSchemaComponent"}),this.mobileRouter=e}getMobileRouterComponent(){return this.mobileRouter.getRouterComponent()}addRoutes(){this.app.router.add("mobile",{path:"/mobile",element:m.jsx(Vl,{})}),this.app.router.add("mobile.page",{path:"/mobile/:name",Component:"RouteSchemaComponent"}),this.app.router.add("mobile.swiper.page",{path:"/mobile/:name/image/:collection/:field/:fieldParams",Component:Cl})}}ee.ModuleWeb=Zl,ee.default=Zl,Object.defineProperties(ee,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});