easy-component-ui 2.1.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (651) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +162 -90
  3. package/dist/assets/icon.css +1 -0
  4. package/dist/components/Base.js +872 -0
  5. package/dist/components/ea-alert.js +196 -0
  6. package/dist/components/ea-avatar.js +159 -0
  7. package/dist/components/ea-backtop.js +136 -0
  8. package/dist/components/ea-badge.js +144 -0
  9. package/dist/components/ea-breadcrumb.js +148 -0
  10. package/dist/components/ea-button.js +261 -0
  11. package/dist/components/ea-calendar.js +10 -0
  12. package/dist/components/ea-calendar2.js +673 -0
  13. package/dist/components/ea-card.js +85 -0
  14. package/dist/components/ea-carousel.js +374 -0
  15. package/dist/components/ea-checkbox.js +446 -0
  16. package/dist/components/ea-collapse.js +293 -0
  17. package/dist/components/ea-color-picker.js +888 -0
  18. package/dist/components/ea-container.js +177 -0
  19. package/dist/components/ea-countdown.js +121 -0
  20. package/dist/components/ea-date-picker.js +649 -0
  21. package/dist/components/ea-descriptions.js +411 -0
  22. package/dist/components/ea-dialog.js +249 -0
  23. package/dist/components/ea-drawer.js +194 -0
  24. package/dist/components/ea-dropdown.js +228 -0
  25. package/dist/components/ea-empty.js +85 -0
  26. package/dist/components/ea-icon.js +68 -0
  27. package/dist/components/ea-image-preview.js +488 -0
  28. package/dist/components/ea-image.js +302 -0
  29. package/dist/components/ea-infinite-scroll.js +109 -0
  30. package/dist/components/ea-input-number.js +367 -0
  31. package/dist/components/ea-input.js +588 -0
  32. package/dist/components/ea-layout.js +125 -0
  33. package/dist/components/ea-link.js +95 -0
  34. package/dist/components/ea-loading.js +151 -0
  35. package/dist/components/ea-menu.js +417 -0
  36. package/dist/components/ea-message-box.js +624 -0
  37. package/dist/components/ea-message.js +251 -0
  38. package/dist/components/ea-notification.js +331 -0
  39. package/dist/components/ea-overlay.js +161 -0
  40. package/dist/components/ea-page-header.js +108 -0
  41. package/dist/components/ea-pagination.js +480 -0
  42. package/dist/components/ea-popconfirm.js +220 -0
  43. package/dist/components/ea-popover.js +123 -0
  44. package/dist/components/ea-popper.js +203 -0
  45. package/dist/components/ea-progress.js +269 -0
  46. package/dist/components/ea-radio.js +364 -0
  47. package/dist/components/ea-rate.js +241 -0
  48. package/dist/components/ea-result.js +100 -0
  49. package/dist/components/ea-scrollbar.js +235 -0
  50. package/dist/components/ea-segmented.js +215 -0
  51. package/dist/components/ea-select.js +598 -0
  52. package/dist/components/ea-skeleton.js +246 -0
  53. package/dist/components/ea-slider.js +421 -0
  54. package/dist/components/ea-space.js +109 -0
  55. package/dist/components/ea-splitter.js +217 -0
  56. package/dist/components/ea-statistic.js +6 -0
  57. package/dist/components/ea-statistic2.js +83 -0
  58. package/dist/components/ea-steps.js +312 -0
  59. package/dist/components/ea-switch.js +271 -0
  60. package/dist/components/ea-table.js +1007 -0
  61. package/dist/components/ea-tabs.js +501 -0
  62. package/dist/components/ea-tag.js +234 -0
  63. package/dist/components/ea-text.js +103 -0
  64. package/dist/components/ea-time-picker.js +514 -0
  65. package/dist/components/ea-timeline.js +186 -0
  66. package/dist/components/ea-tooltip.js +121 -0
  67. package/dist/components/ea-tour.js +544 -0
  68. package/dist/components/ea-transfer.js +949 -0
  69. package/dist/components/ea-tree.js +1088 -0
  70. package/dist/components/index.js +61 -0
  71. package/dist/core/FormBase.js +238 -0
  72. package/dist/css/ea-alert.style.js +4 -0
  73. package/dist/css/ea-aside.style.js +4 -0
  74. package/dist/css/ea-avatar.style.js +4 -0
  75. package/dist/css/ea-backtop.style.js +4 -0
  76. package/dist/css/ea-badge.style.js +4 -0
  77. package/dist/css/ea-breadcrumb-item.style.js +4 -0
  78. package/dist/css/ea-breadcrumb.style.js +4 -0
  79. package/dist/css/ea-button-group.style.js +4 -0
  80. package/dist/css/ea-button.style.js +4 -0
  81. package/dist/css/ea-calendar.style.js +4 -0
  82. package/dist/css/ea-card.style.js +4 -0
  83. package/dist/css/ea-carousel-item.style.js +4 -0
  84. package/dist/css/ea-carousel.style.js +4 -0
  85. package/dist/css/ea-check-tag.style.js +4 -0
  86. package/dist/css/ea-checkbox-group.style.js +4 -0
  87. package/dist/css/ea-checkbox.style.js +4 -0
  88. package/dist/css/ea-col.style.js +4 -0
  89. package/dist/css/ea-collapse-item.style.js +4 -0
  90. package/dist/css/ea-collapse.style.js +4 -0
  91. package/dist/css/ea-color-picker-panel.style.js +4 -0
  92. package/dist/css/ea-color-picker.style.js +4 -0
  93. package/dist/css/ea-container.style.js +4 -0
  94. package/dist/css/ea-date-picker.style.js +4 -0
  95. package/dist/css/ea-descriptions-item.style.js +4 -0
  96. package/dist/css/ea-descriptions.style.js +4 -0
  97. package/dist/css/ea-dialog.style.js +4 -0
  98. package/dist/css/ea-drawer.style.js +4 -0
  99. package/dist/css/ea-dropdown-item.style.js +4 -0
  100. package/dist/css/ea-dropdown-menu.style.js +4 -0
  101. package/dist/css/ea-dropdown.style.js +4 -0
  102. package/dist/css/ea-empty.style.js +4 -0
  103. package/dist/css/ea-footer.style.js +4 -0
  104. package/dist/css/ea-header.style.js +4 -0
  105. package/dist/css/ea-icon.style.js +4 -0
  106. package/dist/css/ea-image-preview.style.js +4 -0
  107. package/dist/css/ea-image.style.js +4 -0
  108. package/dist/css/ea-infinite-scroll.style.js +4 -0
  109. package/dist/css/ea-input-number.style.js +4 -0
  110. package/dist/css/ea-input.style.js +4 -0
  111. package/dist/css/ea-link.style.js +4 -0
  112. package/dist/css/ea-main.style.js +4 -0
  113. package/dist/css/ea-menu-item-group.style.js +4 -0
  114. package/dist/css/ea-menu-item.style.js +4 -0
  115. package/dist/css/ea-menu.style.js +4 -0
  116. package/dist/css/ea-message-box.style.js +4 -0
  117. package/dist/css/ea-message.style.js +4 -0
  118. package/dist/css/ea-notification.style.js +4 -0
  119. package/dist/css/ea-option-gropu.style.js +4 -0
  120. package/dist/css/ea-option.style.js +4 -0
  121. package/dist/css/ea-overlay.style.js +4 -0
  122. package/dist/css/ea-page-header.style.js +4 -0
  123. package/dist/css/ea-pagination.style.js +4 -0
  124. package/dist/css/ea-popconfirm.style.js +4 -0
  125. package/dist/css/ea-popover.style.js +4 -0
  126. package/dist/css/ea-popper.style.js +4 -0
  127. package/dist/css/ea-progress.style.js +4 -0
  128. package/dist/css/ea-radio-group.style.js +4 -0
  129. package/dist/css/ea-radio.style.js +4 -0
  130. package/dist/css/ea-rate.style.js +4 -0
  131. package/dist/css/ea-result.style.js +4 -0
  132. package/dist/css/ea-row.style.js +4 -0
  133. package/dist/css/ea-scrollbar.style.js +4 -0
  134. package/dist/css/ea-segmented.style.js +4 -0
  135. package/dist/css/ea-select.style.js +4 -0
  136. package/dist/css/ea-skeleton-item.style.js +4 -0
  137. package/dist/css/ea-skeleton.style.js +4 -0
  138. package/dist/css/ea-slider.style.js +4 -0
  139. package/dist/css/ea-space.style.js +4 -0
  140. package/dist/css/ea-splitter-bar.style.js +4 -0
  141. package/dist/css/ea-splitter-panel.style.js +4 -0
  142. package/dist/css/ea-splitter.style.js +4 -0
  143. package/dist/css/ea-statistic.style.js +4 -0
  144. package/dist/css/ea-step.style.js +4 -0
  145. package/dist/css/ea-steps.style.js +4 -0
  146. package/dist/css/ea-sub-menu.style.js +4 -0
  147. package/dist/css/ea-switch.style.js +4 -0
  148. package/dist/css/ea-tab-panel.style.js +4 -0
  149. package/dist/css/ea-tab.style.js +4 -0
  150. package/dist/css/ea-table.style.js +4 -0
  151. package/dist/css/ea-tabs.style.js +4 -0
  152. package/dist/css/ea-tag.style.js +4 -0
  153. package/dist/css/ea-text.style.js +4 -0
  154. package/dist/css/ea-time-picker.style.js +4 -0
  155. package/dist/css/ea-timeline-item.style.js +4 -0
  156. package/dist/css/ea-timeline.style.js +4 -0
  157. package/dist/css/ea-tooltip.style.js +4 -0
  158. package/dist/css/ea-tour-step.style.js +4 -0
  159. package/dist/css/ea-tour.style.js +4 -0
  160. package/dist/css/ea-transfer.style.js +5 -0
  161. package/dist/css/ea-tree.style.js +6 -0
  162. package/dist/css/ea-ui-component.style.js +4 -0
  163. package/dist/favicon.ico +0 -0
  164. package/dist/utils/Color.js +439 -0
  165. package/dist/utils/I18nManager.js +218 -0
  166. package/dist/utils/Utils.js +65 -0
  167. package/dist/utils/Variables.js +19 -0
  168. package/dist/utils/timeout.js +9 -0
  169. package/package.json +294 -11
  170. package/build/components/Base.js +0 -1
  171. package/build/components/ea-alert/index.js +0 -1
  172. package/build/components/ea-alert/src/style/stylesheet.js +0 -1
  173. package/build/components/ea-aside/index.js +0 -1
  174. package/build/components/ea-avatar/index.js +0 -1
  175. package/build/components/ea-avatar/src/assets/defaultAvatar.js +0 -1
  176. package/build/components/ea-avatar/src/assets/errorAvatar.js +0 -1
  177. package/build/components/ea-avatar/src/assets/iconAndTextAvatar.js +0 -1
  178. package/build/components/ea-avatar/src/style/stylesheet.js +0 -1
  179. package/build/components/ea-backtop/index.js +0 -1
  180. package/build/components/ea-backtop/src/style/stylesheet.js +0 -1
  181. package/build/components/ea-badge/index.js +0 -1
  182. package/build/components/ea-badge/src/style/stylesheet.js +0 -1
  183. package/build/components/ea-breadcrumb/index.js +0 -1
  184. package/build/components/ea-breadcrumb/src/style/stylesheet.js +0 -1
  185. package/build/components/ea-breadcrumb-item/index.js +0 -1
  186. package/build/components/ea-breadcrumb-item/src/style/style.js +0 -1
  187. package/build/components/ea-button/index.js +0 -1
  188. package/build/components/ea-button/src/components/ButtonComm.js +0 -1
  189. package/build/components/ea-button/src/components/HrefComm.js +0 -1
  190. package/build/components/ea-button/src/style/stylesheet.js +0 -1
  191. package/build/components/ea-button-group/index.js +0 -1
  192. package/build/components/ea-button-group/src/style/stylesheet.js +0 -1
  193. package/build/components/ea-calendar/index.js +0 -1
  194. package/build/components/ea-calendar/src/style/stylesheet.js +0 -1
  195. package/build/components/ea-calendar/src/utils/createChangerElement.js +0 -1
  196. package/build/components/ea-calendar/src/utils/createThead.js +0 -1
  197. package/build/components/ea-calendar/src/utils/getDate.js +0 -1
  198. package/build/components/ea-calendar/src/utils/getUserWeekStart.js +0 -1
  199. package/build/components/ea-card/index.js +0 -1
  200. package/build/components/ea-card/src/style/stylesheet.js +0 -1
  201. package/build/components/ea-carousel/index.js +0 -1
  202. package/build/components/ea-carousel/src/style/stylesheet.js +0 -1
  203. package/build/components/ea-carousel/src/utils/handleIndexOverflow.js +0 -1
  204. package/build/components/ea-carousel-item/index.js +0 -1
  205. package/build/components/ea-carousel-item/src/style/stylesheet.js +0 -1
  206. package/build/components/ea-checkbox/index.js +0 -1
  207. package/build/components/ea-checkbox/src/style/stylesheet.js +0 -1
  208. package/build/components/ea-checkbox-group/index.js +0 -1
  209. package/build/components/ea-checkbox-group/src/style/stylesheet.js +0 -1
  210. package/build/components/ea-collapse/index.js +0 -1
  211. package/build/components/ea-collapse-item/index.js +0 -1
  212. package/build/components/ea-collapse-item/src/style/stylesheet.js +0 -1
  213. package/build/components/ea-container/index.js +0 -1
  214. package/build/components/ea-date-picker/index.js +0 -1
  215. package/build/components/ea-date-picker/src/style/stylesheet.js +0 -1
  216. package/build/components/ea-descriptions/index.js +0 -1
  217. package/build/components/ea-descriptions/src/components/contentTemplate.js +0 -1
  218. package/build/components/ea-descriptions/src/components/getTdTemplate_border.js +0 -1
  219. package/build/components/ea-descriptions/src/components/getTdTemplate_direction.js +0 -1
  220. package/build/components/ea-descriptions/src/components/getThTemplate_direction.js +0 -1
  221. package/build/components/ea-descriptions/src/components/getThTemplate_normal.js +0 -1
  222. package/build/components/ea-descriptions/src/style/stylesheet.js +0 -1
  223. package/build/components/ea-descriptions-item/index.js +0 -1
  224. package/build/components/ea-descriptions-item/src/stylesheet.js +0 -1
  225. package/build/components/ea-drawer/index.js +0 -1
  226. package/build/components/ea-drawer/src/style/stylesheet.js +0 -1
  227. package/build/components/ea-empty/index.js +0 -1
  228. package/build/components/ea-empty/src/assets/emptyStatusSVG.js +0 -1
  229. package/build/components/ea-empty/src/style/stylesheet.js +0 -1
  230. package/build/components/ea-footer/index.js +0 -1
  231. package/build/components/ea-form/index.js +0 -1
  232. package/build/components/ea-form-item/index.js +0 -1
  233. package/build/components/ea-form-item/src/style/stylesheet.js +0 -1
  234. package/build/components/ea-header/index.js +0 -1
  235. package/build/components/ea-icon/config.json +0 -1030
  236. package/build/components/ea-icon/css/fontello.css +0 -312
  237. package/build/components/ea-icon/font/fontello.eot +0 -0
  238. package/build/components/ea-icon/font/fontello.svg +0 -350
  239. package/build/components/ea-icon/font/fontello.ttf +0 -0
  240. package/build/components/ea-icon/font/fontello.woff +0 -0
  241. package/build/components/ea-icon/font/fontello.woff2 +0 -0
  242. package/build/components/ea-icon/index.css +0 -1
  243. package/build/components/ea-icon/index.js +0 -1
  244. package/build/components/ea-image/index.js +0 -1
  245. package/build/components/ea-image/src/assets/errorImage.js +0 -1
  246. package/build/components/ea-image/src/style/stylesheet.js +0 -1
  247. package/build/components/ea-image/src/utils/createPreviewTools.js +0 -1
  248. package/build/components/ea-infinite-scroll/index.js +0 -1
  249. package/build/components/ea-infinite-scroll-item/index.js +0 -1
  250. package/build/components/ea-input/index.js +0 -1
  251. package/build/components/ea-input/src/components/createFixIcon.js +0 -1
  252. package/build/components/ea-input/src/components/createSuggestionBoard.js +0 -1
  253. package/build/components/ea-input/src/components/createWordLimitElement.js +0 -1
  254. package/build/components/ea-input/src/style/stylesheet.js +0 -1
  255. package/build/components/ea-input/src/utils/dispatchEvent.js +0 -1
  256. package/build/components/ea-input/src/utils/handleSearchResult.js +0 -1
  257. package/build/components/ea-input/src/utils/handleSuggestionBoardTrigger.js +0 -1
  258. package/build/components/ea-input-number/index.js +0 -1
  259. package/build/components/ea-input-number/src/style/stylesheet.js +0 -1
  260. package/build/components/ea-input-number/src/utils/handleCustomEvent.js +0 -1
  261. package/build/components/ea-link/index.js +0 -1
  262. package/build/components/ea-link/src/style/stylesheet.js +0 -1
  263. package/build/components/ea-loading/index.js +0 -1
  264. package/build/components/ea-loading/src/style/stylesheet.js +0 -1
  265. package/build/components/ea-main/index.js +0 -1
  266. package/build/components/ea-menu/index.js +0 -1
  267. package/build/components/ea-menu/src/style/stylesheet.js +0 -1
  268. package/build/components/ea-menu/src/utils/handleMenuItemEvent.js +0 -1
  269. package/build/components/ea-menu-item/index.js +0 -1
  270. package/build/components/ea-menu-item/src/style/stylesheet.js +0 -1
  271. package/build/components/ea-menu-item-group/index.js +0 -1
  272. package/build/components/ea-menu-item-group/src/style/stylesheet.js +0 -1
  273. package/build/components/ea-message/index.js +0 -1
  274. package/build/components/ea-message/src/style/stylesheet.js +0 -1
  275. package/build/components/ea-message/src/utils/MessageClass.js +0 -1
  276. package/build/components/ea-message-box/index.js +0 -1
  277. package/build/components/ea-message-box/src/style/stylesheet.js +0 -1
  278. package/build/components/ea-message-box/src/utils/EaMessageBoxClass.js +0 -1
  279. package/build/components/ea-option/index.js +0 -1
  280. package/build/components/ea-option/src/style/stylesheet.js +0 -1
  281. package/build/components/ea-option-gropu/index.js +0 -1
  282. package/build/components/ea-page-header/index.js +0 -1
  283. package/build/components/ea-page-header/src/style/stylesheet.js +0 -1
  284. package/build/components/ea-pagination/index.js +0 -1
  285. package/build/components/ea-pagination/src/components/getMoreItem.js +0 -1
  286. package/build/components/ea-pagination/src/components/getPageItem.js +0 -1
  287. package/build/components/ea-pagination/src/components/getShowTotalItem.js +0 -1
  288. package/build/components/ea-pagination/src/style/stylesheet.js +0 -1
  289. package/build/components/ea-pane/index.js +0 -1
  290. package/build/components/ea-pane/src/stylesheet.js +0 -1
  291. package/build/components/ea-progress/index.js +0 -1
  292. package/build/components/ea-progress/src/components/SVGComm.js +0 -1
  293. package/build/components/ea-progress/src/style/stylesheet.js +0 -1
  294. package/build/components/ea-radio/index.js +0 -1
  295. package/build/components/ea-radio/src/style/stylesheet.js +0 -1
  296. package/build/components/ea-radio-group/index.js +0 -1
  297. package/build/components/ea-rate/index.js +0 -1
  298. package/build/components/ea-rate/src/components/rateComm.js +0 -1
  299. package/build/components/ea-rate/src/style/stylesheet.js +0 -1
  300. package/build/components/ea-result/index.js +0 -1
  301. package/build/components/ea-result/src/style/stylesheet.js +0 -1
  302. package/build/components/ea-select/index.js +0 -1
  303. package/build/components/ea-select/src/style/stylesheet.js +0 -1
  304. package/build/components/ea-skeleton/index.js +0 -1
  305. package/build/components/ea-skeleton/src/style/stylesheet.js +0 -1
  306. package/build/components/ea-skeleton/src/utils/createSkeletonElement.js +0 -1
  307. package/build/components/ea-skeleton-item/index.js +0 -1
  308. package/build/components/ea-skeleton-item/src/assets/imageSVG.js +0 -1
  309. package/build/components/ea-skeleton-item/src/style/stylesheet.js +0 -1
  310. package/build/components/ea-step/index.js +0 -1
  311. package/build/components/ea-step/src/style/stylesheet.js +0 -1
  312. package/build/components/ea-steps/index.js +0 -1
  313. package/build/components/ea-steps/src/style/stylesheet.js +0 -1
  314. package/build/components/ea-submenu/index.js +0 -1
  315. package/build/components/ea-submenu/src/style/stylesheet.js +0 -1
  316. package/build/components/ea-switch/index.js +0 -1
  317. package/build/components/ea-switch/src/style/stylesheet.js +0 -1
  318. package/build/components/ea-tab/index.js +0 -1
  319. package/build/components/ea-tab/src/style/stylesheet.js +0 -1
  320. package/build/components/ea-table/index.js +0 -1
  321. package/build/components/ea-table/src/style/stylesheet.js +0 -1
  322. package/build/components/ea-table-column/index.js +0 -1
  323. package/build/components/ea-tabs/index.js +0 -1
  324. package/build/components/ea-tabs/src/style/stylesheet.js +0 -1
  325. package/build/components/ea-tag/index.js +0 -1
  326. package/build/components/ea-tag/src/style/stylesheet.js +0 -1
  327. package/build/components/ea-textarea/index.js +0 -1
  328. package/build/components/ea-textarea/src/style/stylesheet.js +0 -1
  329. package/build/components/ea-time-picker/index.js +0 -1
  330. package/build/components/ea-time-picker/src/style/stylesheet.js +0 -1
  331. package/build/components/ea-timeline/index.js +0 -1
  332. package/build/components/ea-timeline/style/stylesheet.js +0 -1
  333. package/build/components/ea-timeline-item/index.js +0 -1
  334. package/build/components/ea-timeline-item/src/style/stylesheet.js +0 -1
  335. package/build/components/globalConfig.js +0 -1
  336. package/build/components/index.js +0 -1
  337. package/build/utils/Validator.js +0 -1
  338. package/build/utils/createElement.js +0 -1
  339. package/build/utils/handleDefaultAttrIsTrue.js +0 -1
  340. package/build/utils/handleTemplate.js +0 -1
  341. package/build/utils/setStyle.js +0 -1
  342. package/build/utils/timeout.js +0 -1
  343. package/components/Base.js +0 -75
  344. package/components/ea-alert/index.css +0 -91
  345. package/components/ea-alert/index.js +0 -210
  346. package/components/ea-alert/index.scss +0 -108
  347. package/components/ea-alert/src/style/stylesheet.js +0 -85
  348. package/components/ea-aside/index.css +0 -9
  349. package/components/ea-aside/index.js +0 -54
  350. package/components/ea-aside/index.scss +0 -12
  351. package/components/ea-avatar/index.css +0 -66
  352. package/components/ea-avatar/index.js +0 -156
  353. package/components/ea-avatar/index.scss +0 -59
  354. package/components/ea-avatar/src/assets/defaultAvatar.js +0 -12
  355. package/components/ea-avatar/src/assets/errorAvatar.js +0 -9
  356. package/components/ea-avatar/src/assets/iconAndTextAvatar.js +0 -18
  357. package/components/ea-avatar/src/style/stylesheet.js +0 -61
  358. package/components/ea-backtop/index.css +0 -27
  359. package/components/ea-backtop/index.js +0 -167
  360. package/components/ea-backtop/index.scss +0 -29
  361. package/components/ea-backtop/src/style/stylesheet.js +0 -21
  362. package/components/ea-badge/index.css +0 -49
  363. package/components/ea-badge/index.js +0 -103
  364. package/components/ea-badge/index.scss +0 -56
  365. package/components/ea-badge/src/style/stylesheet.js +0 -43
  366. package/components/ea-breadcrumb/index.css +0 -6
  367. package/components/ea-breadcrumb/index.js +0 -90
  368. package/components/ea-breadcrumb/index.scss +0 -7
  369. package/components/ea-breadcrumb/src/style/stylesheet.js +0 -8
  370. package/components/ea-breadcrumb-item/index.css +0 -10
  371. package/components/ea-breadcrumb-item/index.js +0 -23
  372. package/components/ea-breadcrumb-item/index.scss +0 -12
  373. package/components/ea-breadcrumb-item/src/style/style.js +0 -12
  374. package/components/ea-button/index.css +0 -206
  375. package/components/ea-button/index.js +0 -198
  376. package/components/ea-button/index.scss +0 -143
  377. package/components/ea-button/src/components/ButtonComm.js +0 -5
  378. package/components/ea-button/src/components/HrefComm.js +0 -5
  379. package/components/ea-button/src/style/stylesheet.js +0 -208
  380. package/components/ea-button-group/index.css +0 -16
  381. package/components/ea-button-group/index.js +0 -44
  382. package/components/ea-button-group/index.scss +0 -20
  383. package/components/ea-button-group/src/style/stylesheet.js +0 -18
  384. package/components/ea-calendar/index.css +0 -72
  385. package/components/ea-calendar/index.js +0 -298
  386. package/components/ea-calendar/index.scss +0 -106
  387. package/components/ea-calendar/src/style/stylesheet.js +0 -74
  388. package/components/ea-calendar/src/utils/createChangerElement.js +0 -10
  389. package/components/ea-calendar/src/utils/createThead.js +0 -18
  390. package/components/ea-calendar/src/utils/getDate.js +0 -11
  391. package/components/ea-calendar/src/utils/getUserWeekStart.js +0 -11
  392. package/components/ea-card/index.css +0 -25
  393. package/components/ea-card/index.js +0 -51
  394. package/components/ea-card/index.scss +0 -24
  395. package/components/ea-card/src/style/stylesheet.js +0 -19
  396. package/components/ea-carousel/index.css +0 -103
  397. package/components/ea-carousel/index.js +0 -222
  398. package/components/ea-carousel/index.scss +0 -140
  399. package/components/ea-carousel/src/style/stylesheet.js +0 -105
  400. package/components/ea-carousel/src/utils/handleIndexOverflow.js +0 -9
  401. package/components/ea-carousel-item/index.css +0 -20
  402. package/components/ea-carousel-item/index.js +0 -23
  403. package/components/ea-carousel-item/index.scss +0 -26
  404. package/components/ea-carousel-item/src/style/stylesheet.js +0 -22
  405. package/components/ea-checkbox/index.css +0 -108
  406. package/components/ea-checkbox/index.js +0 -160
  407. package/components/ea-checkbox/index.scss +0 -141
  408. package/components/ea-checkbox/src/style/stylesheet.js +0 -110
  409. package/components/ea-checkbox-group/index.css +0 -6
  410. package/components/ea-checkbox-group/index.js +0 -120
  411. package/components/ea-checkbox-group/index.scss +0 -7
  412. package/components/ea-checkbox-group/src/style/stylesheet.js +0 -8
  413. package/components/ea-collapse/index.css +0 -0
  414. package/components/ea-collapse/index.js +0 -109
  415. package/components/ea-collapse/index.scss +0 -4
  416. package/components/ea-collapse-item/index.css +0 -31
  417. package/components/ea-collapse-item/index.js +0 -111
  418. package/components/ea-collapse-item/index.scss +0 -46
  419. package/components/ea-collapse-item/src/style/stylesheet.js +0 -33
  420. package/components/ea-container/index.css +0 -14
  421. package/components/ea-container/index.js +0 -85
  422. package/components/ea-container/index.scss +0 -18
  423. package/components/ea-date-picker/index.css +0 -17
  424. package/components/ea-date-picker/index.js +0 -191
  425. package/components/ea-date-picker/index.scss +0 -29
  426. package/components/ea-date-picker/src/style/stylesheet.js +0 -19
  427. package/components/ea-descriptions/index.css +0 -33
  428. package/components/ea-descriptions/index.js +0 -171
  429. package/components/ea-descriptions/index.scss +0 -45
  430. package/components/ea-descriptions/src/components/contentTemplate.js +0 -11
  431. package/components/ea-descriptions/src/components/getTdTemplate_border.js +0 -6
  432. package/components/ea-descriptions/src/components/getTdTemplate_direction.js +0 -7
  433. package/components/ea-descriptions/src/components/getThTemplate_direction.js +0 -7
  434. package/components/ea-descriptions/src/components/getThTemplate_normal.js +0 -8
  435. package/components/ea-descriptions/src/style/stylesheet.js +0 -35
  436. package/components/ea-descriptions-item/index.css +0 -21
  437. package/components/ea-descriptions-item/index.js +0 -71
  438. package/components/ea-descriptions-item/index.scss +0 -29
  439. package/components/ea-descriptions-item/src/stylesheet.js +0 -23
  440. package/components/ea-drawer/index.css +0 -138
  441. package/components/ea-drawer/index.js +0 -251
  442. package/components/ea-drawer/index.scss +0 -208
  443. package/components/ea-drawer/src/style/stylesheet.js +0 -141
  444. package/components/ea-empty/index.css +0 -30
  445. package/components/ea-empty/index.js +0 -93
  446. package/components/ea-empty/index.scss +0 -30
  447. package/components/ea-empty/src/assets/emptyStatusSVG.js +0 -6
  448. package/components/ea-empty/src/style/stylesheet.js +0 -24
  449. package/components/ea-footer/index.css +0 -7
  450. package/components/ea-footer/index.js +0 -57
  451. package/components/ea-footer/index.scss +0 -10
  452. package/components/ea-form/index.css +0 -0
  453. package/components/ea-form/index.js +0 -121
  454. package/components/ea-form/index.scss +0 -0
  455. package/components/ea-form-item/index.css +0 -62
  456. package/components/ea-form-item/index.js +0 -152
  457. package/components/ea-form-item/index.scss +0 -83
  458. package/components/ea-form-item/src/style/stylesheet.js +0 -64
  459. package/components/ea-header/index.css +0 -7
  460. package/components/ea-header/index.js +0 -55
  461. package/components/ea-header/index.scss +0 -10
  462. package/components/ea-icon/config.json +0 -1030
  463. package/components/ea-icon/css/fontello.css +0 -312
  464. package/components/ea-icon/font/fontello.eot +0 -0
  465. package/components/ea-icon/font/fontello.svg +0 -350
  466. package/components/ea-icon/font/fontello.ttf +0 -0
  467. package/components/ea-icon/font/fontello.woff +0 -0
  468. package/components/ea-icon/font/fontello.woff2 +0 -0
  469. package/components/ea-icon/index.css +0 -1
  470. package/components/ea-icon/index.js +0 -84
  471. package/components/ea-image/index.css +0 -84
  472. package/components/ea-image/index.js +0 -182
  473. package/components/ea-image/index.scss +0 -111
  474. package/components/ea-image/src/assets/errorImage.js +0 -9
  475. package/components/ea-image/src/assets/errorImage.svg +0 -7
  476. package/components/ea-image/src/style/stylesheet.js +0 -86
  477. package/components/ea-image/src/utils/createPreviewTools.js +0 -140
  478. package/components/ea-infinite-scroll/index.css +0 -0
  479. package/components/ea-infinite-scroll/index.js +0 -119
  480. package/components/ea-infinite-scroll/index.scss +0 -0
  481. package/components/ea-infinite-scroll-item/index.css +0 -0
  482. package/components/ea-infinite-scroll-item/index.js +0 -18
  483. package/components/ea-infinite-scroll-item/index.scss +0 -0
  484. package/components/ea-input/index.css +0 -139
  485. package/components/ea-input/index.js +0 -398
  486. package/components/ea-input/index.scss +0 -178
  487. package/components/ea-input/src/components/createFixIcon.js +0 -108
  488. package/components/ea-input/src/components/createSuggestionBoard.js +0 -43
  489. package/components/ea-input/src/components/createWordLimitElement.js +0 -18
  490. package/components/ea-input/src/style/stylesheet.js +0 -141
  491. package/components/ea-input/src/utils/dispatchEvent.js +0 -9
  492. package/components/ea-input/src/utils/handleSearchResult.js +0 -9
  493. package/components/ea-input/src/utils/handleSuggestionBoardTrigger.js +0 -31
  494. package/components/ea-input-number/index.css +0 -120
  495. package/components/ea-input-number/index.js +0 -308
  496. package/components/ea-input-number/index.scss +0 -132
  497. package/components/ea-input-number/src/style/stylesheet.js +0 -122
  498. package/components/ea-input-number/src/utils/handleCustomEvent.js +0 -5
  499. package/components/ea-link/index.css +0 -48
  500. package/components/ea-link/index.js +0 -122
  501. package/components/ea-link/index.scss +0 -36
  502. package/components/ea-link/src/style/stylesheet.js +0 -50
  503. package/components/ea-loading/index.css +0 -38
  504. package/components/ea-loading/index.js +0 -166
  505. package/components/ea-loading/index.scss +0 -55
  506. package/components/ea-loading/src/style/stylesheet.js +0 -40
  507. package/components/ea-main/index.css +0 -8
  508. package/components/ea-main/index.js +0 -32
  509. package/components/ea-main/index.scss +0 -11
  510. package/components/ea-menu/index.css +0 -19
  511. package/components/ea-menu/index.js +0 -131
  512. package/components/ea-menu/index.scss +0 -22
  513. package/components/ea-menu/src/style/stylesheet.js +0 -21
  514. package/components/ea-menu/src/utils/handleMenuItemEvent.js +0 -32
  515. package/components/ea-menu-item/index.css +0 -48
  516. package/components/ea-menu-item/index.js +0 -130
  517. package/components/ea-menu-item/index.scss +0 -62
  518. package/components/ea-menu-item/src/style/stylesheet.js +0 -50
  519. package/components/ea-menu-item-group/index.css +0 -42
  520. package/components/ea-menu-item-group/index.js +0 -130
  521. package/components/ea-menu-item-group/index.scss +0 -60
  522. package/components/ea-menu-item-group/src/style/stylesheet.js +0 -44
  523. package/components/ea-message/index.css +0 -47
  524. package/components/ea-message/index.js +0 -171
  525. package/components/ea-message/index.scss +0 -70
  526. package/components/ea-message/src/style/stylesheet.js +0 -48
  527. package/components/ea-message/src/utils/MessageClass.js +0 -67
  528. package/components/ea-message-box/index.css +0 -85
  529. package/components/ea-message-box/index.js +0 -211
  530. package/components/ea-message-box/index.scss +0 -113
  531. package/components/ea-message-box/src/style/stylesheet.js +0 -87
  532. package/components/ea-message-box/src/utils/EaMessageBoxClass.js +0 -60
  533. package/components/ea-option/index.css +0 -24
  534. package/components/ea-option/index.js +0 -74
  535. package/components/ea-option/index.scss +0 -31
  536. package/components/ea-option/src/style/stylesheet.js +0 -26
  537. package/components/ea-option-gropu/index.css +0 -6
  538. package/components/ea-option-gropu/index.js +0 -57
  539. package/components/ea-option-gropu/index.scss +0 -8
  540. package/components/ea-page-header/index.css +0 -33
  541. package/components/ea-page-header/index.js +0 -91
  542. package/components/ea-page-header/index.scss +0 -44
  543. package/components/ea-page-header/src/style/stylesheet.js +0 -35
  544. package/components/ea-pagination/index.css +0 -69
  545. package/components/ea-pagination/index.js +0 -305
  546. package/components/ea-pagination/index.scss +0 -89
  547. package/components/ea-pagination/src/components/getMoreItem.js +0 -20
  548. package/components/ea-pagination/src/components/getPageItem.js +0 -11
  549. package/components/ea-pagination/src/components/getShowTotalItem.js +0 -7
  550. package/components/ea-pagination/src/style/stylesheet.js +0 -71
  551. package/components/ea-pane/index.css +0 -6
  552. package/components/ea-pane/index.js +0 -52
  553. package/components/ea-pane/index.scss +0 -7
  554. package/components/ea-pane/src/stylesheet.js +0 -8
  555. package/components/ea-progress/index.css +0 -61
  556. package/components/ea-progress/index.js +0 -249
  557. package/components/ea-progress/index.scss +0 -74
  558. package/components/ea-progress/src/components/SVGComm.js +0 -18
  559. package/components/ea-progress/src/style/stylesheet.js +0 -55
  560. package/components/ea-radio/index.css +0 -82
  561. package/components/ea-radio/index.js +0 -137
  562. package/components/ea-radio/index.scss +0 -119
  563. package/components/ea-radio/src/style/stylesheet.js +0 -84
  564. package/components/ea-radio-group/index.css +0 -3
  565. package/components/ea-radio-group/index.js +0 -96
  566. package/components/ea-radio-group/index.scss +0 -3
  567. package/components/ea-rate/index.css +0 -44
  568. package/components/ea-rate/index.js +0 -243
  569. package/components/ea-rate/index.scss +0 -55
  570. package/components/ea-rate/src/components/rateComm.js +0 -20
  571. package/components/ea-rate/src/style/stylesheet.js +0 -45
  572. package/components/ea-result/index.css +0 -37
  573. package/components/ea-result/index.js +0 -109
  574. package/components/ea-result/index.scss +0 -46
  575. package/components/ea-result/src/style/stylesheet.js +0 -39
  576. package/components/ea-select/index.css +0 -47
  577. package/components/ea-select/index.js +0 -312
  578. package/components/ea-select/index.scss +0 -70
  579. package/components/ea-select/src/style/stylesheet.js +0 -49
  580. package/components/ea-skeleton/index.css +0 -12
  581. package/components/ea-skeleton/index.js +0 -148
  582. package/components/ea-skeleton/index.scss +0 -16
  583. package/components/ea-skeleton/src/style/stylesheet.js +0 -14
  584. package/components/ea-skeleton/src/utils/createSkeletonElement.js +0 -7
  585. package/components/ea-skeleton-item/index.css +0 -69
  586. package/components/ea-skeleton-item/index.js +0 -82
  587. package/components/ea-skeleton-item/index.scss +0 -107
  588. package/components/ea-skeleton-item/src/assets/imageSVG.js +0 -8
  589. package/components/ea-skeleton-item/src/style/stylesheet.js +0 -71
  590. package/components/ea-step/index.css +0 -84
  591. package/components/ea-step/index.js +0 -230
  592. package/components/ea-step/index.scss +0 -110
  593. package/components/ea-step/src/style/stylesheet.js +0 -86
  594. package/components/ea-steps/index.css +0 -19
  595. package/components/ea-steps/index.js +0 -104
  596. package/components/ea-steps/index.scss +0 -23
  597. package/components/ea-steps/src/style/stylesheet.js +0 -21
  598. package/components/ea-submenu/index.css +0 -65
  599. package/components/ea-submenu/index.js +0 -141
  600. package/components/ea-submenu/index.scss +0 -88
  601. package/components/ea-submenu/src/style/stylesheet.js +0 -67
  602. package/components/ea-switch/index.css +0 -90
  603. package/components/ea-switch/index.js +0 -189
  604. package/components/ea-switch/index.scss +0 -117
  605. package/components/ea-switch/src/style/stylesheet.js +0 -92
  606. package/components/ea-tab/index.css +0 -68
  607. package/components/ea-tab/index.js +0 -138
  608. package/components/ea-tab/index.scss +0 -96
  609. package/components/ea-tab/src/style/stylesheet.js +0 -70
  610. package/components/ea-table/index.css +0 -98
  611. package/components/ea-table/index.js +0 -555
  612. package/components/ea-table/index.scss +0 -90
  613. package/components/ea-table/src/style/stylesheet.js +0 -100
  614. package/components/ea-table-column/index.css +0 -0
  615. package/components/ea-table-column/index.js +0 -164
  616. package/components/ea-table-column/index.scss +0 -0
  617. package/components/ea-tabs/index.css +0 -45
  618. package/components/ea-tabs/index.js +0 -245
  619. package/components/ea-tabs/index.scss +0 -64
  620. package/components/ea-tabs/src/style/stylesheet.js +0 -47
  621. package/components/ea-tag/index.css +0 -90
  622. package/components/ea-tag/index.js +0 -107
  623. package/components/ea-tag/index.scss +0 -71
  624. package/components/ea-tag/src/style/stylesheet.js +0 -92
  625. package/components/ea-textarea/index.css +0 -37
  626. package/components/ea-textarea/index.js +0 -277
  627. package/components/ea-textarea/index.scss +0 -48
  628. package/components/ea-textarea/src/style/stylesheet.js +0 -39
  629. package/components/ea-time-picker/index.css +0 -82
  630. package/components/ea-time-picker/index.js +0 -379
  631. package/components/ea-time-picker/index.scss +0 -110
  632. package/components/ea-time-picker/src/style/stylesheet.js +0 -84
  633. package/components/ea-timeline/index.css +0 -0
  634. package/components/ea-timeline/index.js +0 -74
  635. package/components/ea-timeline/index.scss +0 -1
  636. package/components/ea-timeline/style/stylesheet.js +0 -3
  637. package/components/ea-timeline-item/index.css +0 -79
  638. package/components/ea-timeline-item/index.js +0 -146
  639. package/components/ea-timeline-item/index.scss +0 -92
  640. package/components/ea-timeline-item/src/style/stylesheet.js +0 -81
  641. package/components/ea-ui-base-style.css +0 -0
  642. package/components/ea-ui-base-style.scss +0 -153
  643. package/components/globalConfig.js +0 -10
  644. package/components/index.js +0 -67
  645. package/public/logo.png +0 -0
  646. package/utils/Validator.js +0 -16
  647. package/utils/createElement.js +0 -30
  648. package/utils/handleDefaultAttrIsTrue.js +0 -11
  649. package/utils/handleTemplate.js +0 -19
  650. package/utils/setStyle.js +0 -8
  651. package/utils/timeout.js +0 -16
@@ -0,0 +1,872 @@
1
+ var Ze = Object.defineProperty;
2
+ var he = (a) => {
3
+ throw TypeError(a);
4
+ };
5
+ var Je = (a, r, e) => r in a ? Ze(a, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[r] = e;
6
+ var it = (a, r, e) => Je(a, typeof r != "symbol" ? r + "" : r, e), Qe = (a, r, e) => r.has(a) || he("Cannot " + e);
7
+ var J = (a, r, e) => (Qe(a, r, "read from private field"), e ? e.call(a) : r.get(a)), Te = (a, r, e) => r.has(a) ? he("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(a) : r.set(a, e);
8
+ import { v as Ve } from "../css/ea-ui-component.style.js";
9
+ import "./ea-icon.js";
10
+ import { E as Ae } from "../utils/Utils.js";
11
+ /*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */
12
+ const {
13
+ entries: Ne,
14
+ setPrototypeOf: Ee,
15
+ isFrozen: tn,
16
+ getPrototypeOf: en,
17
+ getOwnPropertyDescriptor: nn
18
+ } = Object;
19
+ let {
20
+ freeze: L,
21
+ seal: x,
22
+ create: Gt
23
+ } = Object, {
24
+ apply: Wt,
25
+ construct: Yt
26
+ } = typeof Reflect < "u" && Reflect;
27
+ L || (L = function(r) {
28
+ return r;
29
+ });
30
+ x || (x = function(r) {
31
+ return r;
32
+ });
33
+ Wt || (Wt = function(r, e) {
34
+ for (var i = arguments.length, s = new Array(i > 2 ? i - 2 : 0), d = 2; d < i; d++)
35
+ s[d - 2] = arguments[d];
36
+ return r.apply(e, s);
37
+ });
38
+ Yt || (Yt = function(r) {
39
+ for (var e = arguments.length, i = new Array(e > 1 ? e - 1 : 0), s = 1; s < e; s++)
40
+ i[s - 1] = arguments[s];
41
+ return new r(...i);
42
+ });
43
+ const At = C(Array.prototype.forEach), rn = C(Array.prototype.lastIndexOf), ge = C(Array.prototype.pop), rt = C(Array.prototype.push), on = C(Array.prototype.splice), gt = C(String.prototype.toLowerCase), kt = C(String.prototype.toString), Ut = C(String.prototype.match), ot = C(String.prototype.replace), sn = C(String.prototype.indexOf), an = C(String.prototype.trim), w = C(Object.prototype.hasOwnProperty), D = C(RegExp.prototype.test), st = ln(TypeError);
44
+ function C(a) {
45
+ return function(r) {
46
+ r instanceof RegExp && (r.lastIndex = 0);
47
+ for (var e = arguments.length, i = new Array(e > 1 ? e - 1 : 0), s = 1; s < e; s++)
48
+ i[s - 1] = arguments[s];
49
+ return Wt(a, r, i);
50
+ };
51
+ }
52
+ function ln(a) {
53
+ return function() {
54
+ for (var r = arguments.length, e = new Array(r), i = 0; i < r; i++)
55
+ e[i] = arguments[i];
56
+ return Yt(a, e);
57
+ };
58
+ }
59
+ function f(a, r) {
60
+ let e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : gt;
61
+ Ee && Ee(a, null);
62
+ let i = r.length;
63
+ for (; i--; ) {
64
+ let s = r[i];
65
+ if (typeof s == "string") {
66
+ const d = e(s);
67
+ d !== s && (tn(r) || (r[i] = d), s = d);
68
+ }
69
+ a[s] = !0;
70
+ }
71
+ return a;
72
+ }
73
+ function cn(a) {
74
+ for (let r = 0; r < a.length; r++)
75
+ w(a, r) || (a[r] = null);
76
+ return a;
77
+ }
78
+ function k(a) {
79
+ const r = Gt(null);
80
+ for (const [e, i] of Ne(a))
81
+ w(a, e) && (Array.isArray(i) ? r[e] = cn(i) : i && typeof i == "object" && i.constructor === Object ? r[e] = k(i) : r[e] = i);
82
+ return r;
83
+ }
84
+ function at(a, r) {
85
+ for (; a !== null; ) {
86
+ const i = nn(a, r);
87
+ if (i) {
88
+ if (i.get)
89
+ return C(i.get);
90
+ if (typeof i.value == "function")
91
+ return C(i.value);
92
+ }
93
+ a = en(a);
94
+ }
95
+ function e() {
96
+ return null;
97
+ }
98
+ return e;
99
+ }
100
+ const _e = L(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Ft = L(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Ht = L(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), un = L(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), zt = L(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), fn = L(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Se = L(["#text"]), be = L(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Bt = L(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), ye = L(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Et = L(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), pn = x(/\{\{[\w\W]*|[\w\W]*\}\}/gm), mn = x(/<%[\w\W]*|[\w\W]*%>/gm), dn = x(/\$\{[\w\W]*/gm), hn = x(/^data-[\-\w.\u00B7-\uFFFF]+$/), Tn = x(/^aria-[\-\w]+$/), De = x(
101
+ /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
102
+ // eslint-disable-line no-useless-escape
103
+ ), An = x(/^(?:\w+script|data):/i), En = x(
104
+ /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
105
+ // eslint-disable-line no-control-regex
106
+ ), Le = x(/^html$/i), gn = x(/^[a-z][.\w]*(-[.\w]+)+$/i);
107
+ var Re = /* @__PURE__ */ Object.freeze({
108
+ __proto__: null,
109
+ ARIA_ATTR: Tn,
110
+ ATTR_WHITESPACE: En,
111
+ CUSTOM_ELEMENT: gn,
112
+ DATA_ATTR: hn,
113
+ DOCTYPE_NAME: Le,
114
+ ERB_EXPR: mn,
115
+ IS_ALLOWED_URI: De,
116
+ IS_SCRIPT_OR_DATA: An,
117
+ MUSTACHE_EXPR: pn,
118
+ TMPLIT_EXPR: dn
119
+ });
120
+ const lt = {
121
+ element: 1,
122
+ text: 3,
123
+ // Deprecated
124
+ progressingInstruction: 7,
125
+ comment: 8,
126
+ document: 9
127
+ }, _n = function() {
128
+ return typeof window > "u" ? null : window;
129
+ }, Sn = function(r, e) {
130
+ if (typeof r != "object" || typeof r.createPolicy != "function")
131
+ return null;
132
+ let i = null;
133
+ const s = "data-tt-policy-suffix";
134
+ e && e.hasAttribute(s) && (i = e.getAttribute(s));
135
+ const d = "dompurify" + (i ? "#" + i : "");
136
+ try {
137
+ return r.createPolicy(d, {
138
+ createHTML(c) {
139
+ return c;
140
+ },
141
+ createScriptURL(c) {
142
+ return c;
143
+ }
144
+ });
145
+ } catch {
146
+ return console.warn("TrustedTypes policy " + d + " could not be created."), null;
147
+ }
148
+ }, Oe = function() {
149
+ return {
150
+ afterSanitizeAttributes: [],
151
+ afterSanitizeElements: [],
152
+ afterSanitizeShadowDOM: [],
153
+ beforeSanitizeAttributes: [],
154
+ beforeSanitizeElements: [],
155
+ beforeSanitizeShadowDOM: [],
156
+ uponSanitizeAttribute: [],
157
+ uponSanitizeElement: [],
158
+ uponSanitizeShadowNode: []
159
+ };
160
+ };
161
+ function Ce() {
162
+ let a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : _n();
163
+ const r = (l) => Ce(l);
164
+ if (r.version = "3.3.1", r.removed = [], !a || !a.document || a.document.nodeType !== lt.document || !a.Element)
165
+ return r.isSupported = !1, r;
166
+ let {
167
+ document: e
168
+ } = a;
169
+ const i = e, s = i.currentScript, {
170
+ DocumentFragment: d,
171
+ HTMLTemplateElement: c,
172
+ Node: u,
173
+ Element: p,
174
+ NodeFilter: m,
175
+ NamedNodeMap: T = a.NamedNodeMap || a.MozNamedAttrMap,
176
+ HTMLFormElement: y,
177
+ DOMParser: M,
178
+ trustedTypes: B
179
+ } = a, Q = p.prototype, Ie = at(Q, "cloneNode"), Me = at(Q, "remove"), xe = at(Q, "nextSibling"), we = at(Q, "childNodes"), ct = at(Q, "parentNode");
180
+ if (typeof c == "function") {
181
+ const l = e.createElement("template");
182
+ l.content && l.content.ownerDocument && (e = l.content.ownerDocument);
183
+ }
184
+ let O, V = "";
185
+ const {
186
+ implementation: _t,
187
+ createNodeIterator: Pe,
188
+ createDocumentFragment: ve,
189
+ getElementsByTagName: ke
190
+ } = e, {
191
+ importNode: Ue
192
+ } = i;
193
+ let N = Oe();
194
+ r.isSupported = typeof Ne == "function" && typeof ct == "function" && _t && _t.createHTMLDocument !== void 0;
195
+ const {
196
+ MUSTACHE_EXPR: St,
197
+ ERB_EXPR: bt,
198
+ TMPLIT_EXPR: yt,
199
+ DATA_ATTR: Fe,
200
+ ARIA_ATTR: He,
201
+ IS_SCRIPT_OR_DATA: ze,
202
+ ATTR_WHITESPACE: jt,
203
+ CUSTOM_ELEMENT: Be
204
+ } = Re;
205
+ let {
206
+ IS_ALLOWED_URI: $t
207
+ } = Re, _ = null;
208
+ const Xt = f({}, [..._e, ...Ft, ...Ht, ...zt, ...Se]);
209
+ let S = null;
210
+ const qt = f({}, [...be, ...Bt, ...ye, ...Et]);
211
+ let A = Object.seal(Gt(null, {
212
+ tagNameCheck: {
213
+ writable: !0,
214
+ configurable: !1,
215
+ enumerable: !0,
216
+ value: null
217
+ },
218
+ attributeNameCheck: {
219
+ writable: !0,
220
+ configurable: !1,
221
+ enumerable: !0,
222
+ value: null
223
+ },
224
+ allowCustomizedBuiltInElements: {
225
+ writable: !0,
226
+ configurable: !1,
227
+ enumerable: !0,
228
+ value: !1
229
+ }
230
+ })), tt = null, Rt = null;
231
+ const Y = Object.seal(Gt(null, {
232
+ tagCheck: {
233
+ writable: !0,
234
+ configurable: !1,
235
+ enumerable: !0,
236
+ value: null
237
+ },
238
+ attributeCheck: {
239
+ writable: !0,
240
+ configurable: !1,
241
+ enumerable: !0,
242
+ value: null
243
+ }
244
+ }));
245
+ let Kt = !0, Ot = !0, Zt = !1, Jt = !0, j = !1, ut = !0, G = !1, Nt = !1, Dt = !1, $ = !1, ft = !1, pt = !1, Qt = !0, Vt = !1;
246
+ const Ge = "user-content-";
247
+ let Lt = !0, et = !1, X = {}, P = null;
248
+ const Ct = f({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
249
+ let te = null;
250
+ const ee = f({}, ["audio", "video", "img", "source", "image", "track"]);
251
+ let It = null;
252
+ const ne = f({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), mt = "http://www.w3.org/1998/Math/MathML", dt = "http://www.w3.org/2000/svg", U = "http://www.w3.org/1999/xhtml";
253
+ let q = U, Mt = !1, xt = null;
254
+ const We = f({}, [mt, dt, U], kt);
255
+ let ht = f({}, ["mi", "mo", "mn", "ms", "mtext"]), Tt = f({}, ["annotation-xml"]);
256
+ const Ye = f({}, ["title", "style", "font", "a", "script"]);
257
+ let nt = null;
258
+ const je = ["application/xhtml+xml", "text/html"], $e = "text/html";
259
+ let g = null, K = null;
260
+ const Xe = e.createElement("form"), ie = function(t) {
261
+ return t instanceof RegExp || t instanceof Function;
262
+ }, wt = function() {
263
+ let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
264
+ if (!(K && K === t)) {
265
+ if ((!t || typeof t != "object") && (t = {}), t = k(t), nt = // eslint-disable-next-line unicorn/prefer-includes
266
+ je.indexOf(t.PARSER_MEDIA_TYPE) === -1 ? $e : t.PARSER_MEDIA_TYPE, g = nt === "application/xhtml+xml" ? kt : gt, _ = w(t, "ALLOWED_TAGS") ? f({}, t.ALLOWED_TAGS, g) : Xt, S = w(t, "ALLOWED_ATTR") ? f({}, t.ALLOWED_ATTR, g) : qt, xt = w(t, "ALLOWED_NAMESPACES") ? f({}, t.ALLOWED_NAMESPACES, kt) : We, It = w(t, "ADD_URI_SAFE_ATTR") ? f(k(ne), t.ADD_URI_SAFE_ATTR, g) : ne, te = w(t, "ADD_DATA_URI_TAGS") ? f(k(ee), t.ADD_DATA_URI_TAGS, g) : ee, P = w(t, "FORBID_CONTENTS") ? f({}, t.FORBID_CONTENTS, g) : Ct, tt = w(t, "FORBID_TAGS") ? f({}, t.FORBID_TAGS, g) : k({}), Rt = w(t, "FORBID_ATTR") ? f({}, t.FORBID_ATTR, g) : k({}), X = w(t, "USE_PROFILES") ? t.USE_PROFILES : !1, Kt = t.ALLOW_ARIA_ATTR !== !1, Ot = t.ALLOW_DATA_ATTR !== !1, Zt = t.ALLOW_UNKNOWN_PROTOCOLS || !1, Jt = t.ALLOW_SELF_CLOSE_IN_ATTR !== !1, j = t.SAFE_FOR_TEMPLATES || !1, ut = t.SAFE_FOR_XML !== !1, G = t.WHOLE_DOCUMENT || !1, $ = t.RETURN_DOM || !1, ft = t.RETURN_DOM_FRAGMENT || !1, pt = t.RETURN_TRUSTED_TYPE || !1, Dt = t.FORCE_BODY || !1, Qt = t.SANITIZE_DOM !== !1, Vt = t.SANITIZE_NAMED_PROPS || !1, Lt = t.KEEP_CONTENT !== !1, et = t.IN_PLACE || !1, $t = t.ALLOWED_URI_REGEXP || De, q = t.NAMESPACE || U, ht = t.MATHML_TEXT_INTEGRATION_POINTS || ht, Tt = t.HTML_INTEGRATION_POINTS || Tt, A = t.CUSTOM_ELEMENT_HANDLING || {}, t.CUSTOM_ELEMENT_HANDLING && ie(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (A.tagNameCheck = t.CUSTOM_ELEMENT_HANDLING.tagNameCheck), t.CUSTOM_ELEMENT_HANDLING && ie(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (A.attributeNameCheck = t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), t.CUSTOM_ELEMENT_HANDLING && typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (A.allowCustomizedBuiltInElements = t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), j && (Ot = !1), ft && ($ = !0), X && (_ = f({}, Se), S = [], X.html === !0 && (f(_, _e), f(S, be)), X.svg === !0 && (f(_, Ft), f(S, Bt), f(S, Et)), X.svgFilters === !0 && (f(_, Ht), f(S, Bt), f(S, Et)), X.mathMl === !0 && (f(_, zt), f(S, ye), f(S, Et))), t.ADD_TAGS && (typeof t.ADD_TAGS == "function" ? Y.tagCheck = t.ADD_TAGS : (_ === Xt && (_ = k(_)), f(_, t.ADD_TAGS, g))), t.ADD_ATTR && (typeof t.ADD_ATTR == "function" ? Y.attributeCheck = t.ADD_ATTR : (S === qt && (S = k(S)), f(S, t.ADD_ATTR, g))), t.ADD_URI_SAFE_ATTR && f(It, t.ADD_URI_SAFE_ATTR, g), t.FORBID_CONTENTS && (P === Ct && (P = k(P)), f(P, t.FORBID_CONTENTS, g)), t.ADD_FORBID_CONTENTS && (P === Ct && (P = k(P)), f(P, t.ADD_FORBID_CONTENTS, g)), Lt && (_["#text"] = !0), G && f(_, ["html", "head", "body"]), _.table && (f(_, ["tbody"]), delete tt.tbody), t.TRUSTED_TYPES_POLICY) {
267
+ if (typeof t.TRUSTED_TYPES_POLICY.createHTML != "function")
268
+ throw st('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
269
+ if (typeof t.TRUSTED_TYPES_POLICY.createScriptURL != "function")
270
+ throw st('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
271
+ O = t.TRUSTED_TYPES_POLICY, V = O.createHTML("");
272
+ } else
273
+ O === void 0 && (O = Sn(B, s)), O !== null && typeof V == "string" && (V = O.createHTML(""));
274
+ L && L(t), K = t;
275
+ }
276
+ }, re = f({}, [...Ft, ...Ht, ...un]), oe = f({}, [...zt, ...fn]), qe = function(t) {
277
+ let n = ct(t);
278
+ (!n || !n.tagName) && (n = {
279
+ namespaceURI: q,
280
+ tagName: "template"
281
+ });
282
+ const o = gt(t.tagName), h = gt(n.tagName);
283
+ return xt[t.namespaceURI] ? t.namespaceURI === dt ? n.namespaceURI === U ? o === "svg" : n.namespaceURI === mt ? o === "svg" && (h === "annotation-xml" || ht[h]) : !!re[o] : t.namespaceURI === mt ? n.namespaceURI === U ? o === "math" : n.namespaceURI === dt ? o === "math" && Tt[h] : !!oe[o] : t.namespaceURI === U ? n.namespaceURI === dt && !Tt[h] || n.namespaceURI === mt && !ht[h] ? !1 : !oe[o] && (Ye[o] || !re[o]) : !!(nt === "application/xhtml+xml" && xt[t.namespaceURI]) : !1;
284
+ }, v = function(t) {
285
+ rt(r.removed, {
286
+ element: t
287
+ });
288
+ try {
289
+ ct(t).removeChild(t);
290
+ } catch {
291
+ Me(t);
292
+ }
293
+ }, W = function(t, n) {
294
+ try {
295
+ rt(r.removed, {
296
+ attribute: n.getAttributeNode(t),
297
+ from: n
298
+ });
299
+ } catch {
300
+ rt(r.removed, {
301
+ attribute: null,
302
+ from: n
303
+ });
304
+ }
305
+ if (n.removeAttribute(t), t === "is")
306
+ if ($ || ft)
307
+ try {
308
+ v(n);
309
+ } catch {
310
+ }
311
+ else
312
+ try {
313
+ n.setAttribute(t, "");
314
+ } catch {
315
+ }
316
+ }, se = function(t) {
317
+ let n = null, o = null;
318
+ if (Dt)
319
+ t = "<remove></remove>" + t;
320
+ else {
321
+ const E = Ut(t, /^[\r\n\t ]+/);
322
+ o = E && E[0];
323
+ }
324
+ nt === "application/xhtml+xml" && q === U && (t = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + t + "</body></html>");
325
+ const h = O ? O.createHTML(t) : t;
326
+ if (q === U)
327
+ try {
328
+ n = new M().parseFromString(h, nt);
329
+ } catch {
330
+ }
331
+ if (!n || !n.documentElement) {
332
+ n = _t.createDocument(q, "template", null);
333
+ try {
334
+ n.documentElement.innerHTML = Mt ? V : h;
335
+ } catch {
336
+ }
337
+ }
338
+ const R = n.body || n.documentElement;
339
+ return t && o && R.insertBefore(e.createTextNode(o), R.childNodes[0] || null), q === U ? ke.call(n, G ? "html" : "body")[0] : G ? n.documentElement : R;
340
+ }, ae = function(t) {
341
+ return Pe.call(
342
+ t.ownerDocument || t,
343
+ t,
344
+ // eslint-disable-next-line no-bitwise
345
+ m.SHOW_ELEMENT | m.SHOW_COMMENT | m.SHOW_TEXT | m.SHOW_PROCESSING_INSTRUCTION | m.SHOW_CDATA_SECTION,
346
+ null
347
+ );
348
+ }, Pt = function(t) {
349
+ return t instanceof y && (typeof t.nodeName != "string" || typeof t.textContent != "string" || typeof t.removeChild != "function" || !(t.attributes instanceof T) || typeof t.removeAttribute != "function" || typeof t.setAttribute != "function" || typeof t.namespaceURI != "string" || typeof t.insertBefore != "function" || typeof t.hasChildNodes != "function");
350
+ }, le = function(t) {
351
+ return typeof u == "function" && t instanceof u;
352
+ };
353
+ function F(l, t, n) {
354
+ At(l, (o) => {
355
+ o.call(r, t, n, K);
356
+ });
357
+ }
358
+ const ce = function(t) {
359
+ let n = null;
360
+ if (F(N.beforeSanitizeElements, t, null), Pt(t))
361
+ return v(t), !0;
362
+ const o = g(t.nodeName);
363
+ if (F(N.uponSanitizeElement, t, {
364
+ tagName: o,
365
+ allowedTags: _
366
+ }), ut && t.hasChildNodes() && !le(t.firstElementChild) && D(/<[/\w!]/g, t.innerHTML) && D(/<[/\w!]/g, t.textContent) || t.nodeType === lt.progressingInstruction || ut && t.nodeType === lt.comment && D(/<[/\w]/g, t.data))
367
+ return v(t), !0;
368
+ if (!(Y.tagCheck instanceof Function && Y.tagCheck(o)) && (!_[o] || tt[o])) {
369
+ if (!tt[o] && fe(o) && (A.tagNameCheck instanceof RegExp && D(A.tagNameCheck, o) || A.tagNameCheck instanceof Function && A.tagNameCheck(o)))
370
+ return !1;
371
+ if (Lt && !P[o]) {
372
+ const h = ct(t) || t.parentNode, R = we(t) || t.childNodes;
373
+ if (R && h) {
374
+ const E = R.length;
375
+ for (let I = E - 1; I >= 0; --I) {
376
+ const H = Ie(R[I], !0);
377
+ H.__removalCount = (t.__removalCount || 0) + 1, h.insertBefore(H, xe(t));
378
+ }
379
+ }
380
+ }
381
+ return v(t), !0;
382
+ }
383
+ return t instanceof p && !qe(t) || (o === "noscript" || o === "noembed" || o === "noframes") && D(/<\/no(script|embed|frames)/i, t.innerHTML) ? (v(t), !0) : (j && t.nodeType === lt.text && (n = t.textContent, At([St, bt, yt], (h) => {
384
+ n = ot(n, h, " ");
385
+ }), t.textContent !== n && (rt(r.removed, {
386
+ element: t.cloneNode()
387
+ }), t.textContent = n)), F(N.afterSanitizeElements, t, null), !1);
388
+ }, ue = function(t, n, o) {
389
+ if (Qt && (n === "id" || n === "name") && (o in e || o in Xe))
390
+ return !1;
391
+ if (!(Ot && !Rt[n] && D(Fe, n))) {
392
+ if (!(Kt && D(He, n))) {
393
+ if (!(Y.attributeCheck instanceof Function && Y.attributeCheck(n, t))) {
394
+ if (!S[n] || Rt[n]) {
395
+ if (
396
+ // First condition does a very basic check if a) it's basically a valid custom element tagname AND
397
+ // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
398
+ // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
399
+ !(fe(t) && (A.tagNameCheck instanceof RegExp && D(A.tagNameCheck, t) || A.tagNameCheck instanceof Function && A.tagNameCheck(t)) && (A.attributeNameCheck instanceof RegExp && D(A.attributeNameCheck, n) || A.attributeNameCheck instanceof Function && A.attributeNameCheck(n, t)) || // Alternative, second condition checks if it's an `is`-attribute, AND
400
+ // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
401
+ n === "is" && A.allowCustomizedBuiltInElements && (A.tagNameCheck instanceof RegExp && D(A.tagNameCheck, o) || A.tagNameCheck instanceof Function && A.tagNameCheck(o)))
402
+ ) return !1;
403
+ } else if (!It[n]) {
404
+ if (!D($t, ot(o, jt, ""))) {
405
+ if (!((n === "src" || n === "xlink:href" || n === "href") && t !== "script" && sn(o, "data:") === 0 && te[t])) {
406
+ if (!(Zt && !D(ze, ot(o, jt, "")))) {
407
+ if (o)
408
+ return !1;
409
+ }
410
+ }
411
+ }
412
+ }
413
+ }
414
+ }
415
+ }
416
+ return !0;
417
+ }, fe = function(t) {
418
+ return t !== "annotation-xml" && Ut(t, Be);
419
+ }, pe = function(t) {
420
+ F(N.beforeSanitizeAttributes, t, null);
421
+ const {
422
+ attributes: n
423
+ } = t;
424
+ if (!n || Pt(t))
425
+ return;
426
+ const o = {
427
+ attrName: "",
428
+ attrValue: "",
429
+ keepAttr: !0,
430
+ allowedAttributes: S,
431
+ forceKeepAttr: void 0
432
+ };
433
+ let h = n.length;
434
+ for (; h--; ) {
435
+ const R = n[h], {
436
+ name: E,
437
+ namespaceURI: I,
438
+ value: H
439
+ } = R, Z = g(E), vt = H;
440
+ let b = E === "value" ? vt : an(vt);
441
+ if (o.attrName = Z, o.attrValue = b, o.keepAttr = !0, o.forceKeepAttr = void 0, F(N.uponSanitizeAttribute, t, o), b = o.attrValue, Vt && (Z === "id" || Z === "name") && (W(E, t), b = Ge + b), ut && D(/((--!?|])>)|<\/(style|title|textarea)/i, b)) {
442
+ W(E, t);
443
+ continue;
444
+ }
445
+ if (Z === "attributename" && Ut(b, "href")) {
446
+ W(E, t);
447
+ continue;
448
+ }
449
+ if (o.forceKeepAttr)
450
+ continue;
451
+ if (!o.keepAttr) {
452
+ W(E, t);
453
+ continue;
454
+ }
455
+ if (!Jt && D(/\/>/i, b)) {
456
+ W(E, t);
457
+ continue;
458
+ }
459
+ j && At([St, bt, yt], (de) => {
460
+ b = ot(b, de, " ");
461
+ });
462
+ const me = g(t.nodeName);
463
+ if (!ue(me, Z, b)) {
464
+ W(E, t);
465
+ continue;
466
+ }
467
+ if (O && typeof B == "object" && typeof B.getAttributeType == "function" && !I)
468
+ switch (B.getAttributeType(me, Z)) {
469
+ case "TrustedHTML": {
470
+ b = O.createHTML(b);
471
+ break;
472
+ }
473
+ case "TrustedScriptURL": {
474
+ b = O.createScriptURL(b);
475
+ break;
476
+ }
477
+ }
478
+ if (b !== vt)
479
+ try {
480
+ I ? t.setAttributeNS(I, E, b) : t.setAttribute(E, b), Pt(t) ? v(t) : ge(r.removed);
481
+ } catch {
482
+ W(E, t);
483
+ }
484
+ }
485
+ F(N.afterSanitizeAttributes, t, null);
486
+ }, Ke = function l(t) {
487
+ let n = null;
488
+ const o = ae(t);
489
+ for (F(N.beforeSanitizeShadowDOM, t, null); n = o.nextNode(); )
490
+ F(N.uponSanitizeShadowNode, n, null), ce(n), pe(n), n.content instanceof d && l(n.content);
491
+ F(N.afterSanitizeShadowDOM, t, null);
492
+ };
493
+ return r.sanitize = function(l) {
494
+ let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = null, o = null, h = null, R = null;
495
+ if (Mt = !l, Mt && (l = "<!-->"), typeof l != "string" && !le(l))
496
+ if (typeof l.toString == "function") {
497
+ if (l = l.toString(), typeof l != "string")
498
+ throw st("dirty is not a string, aborting");
499
+ } else
500
+ throw st("toString is not a function");
501
+ if (!r.isSupported)
502
+ return l;
503
+ if (Nt || wt(t), r.removed = [], typeof l == "string" && (et = !1), et) {
504
+ if (l.nodeName) {
505
+ const H = g(l.nodeName);
506
+ if (!_[H] || tt[H])
507
+ throw st("root node is forbidden and cannot be sanitized in-place");
508
+ }
509
+ } else if (l instanceof u)
510
+ n = se("<!---->"), o = n.ownerDocument.importNode(l, !0), o.nodeType === lt.element && o.nodeName === "BODY" || o.nodeName === "HTML" ? n = o : n.appendChild(o);
511
+ else {
512
+ if (!$ && !j && !G && // eslint-disable-next-line unicorn/prefer-includes
513
+ l.indexOf("<") === -1)
514
+ return O && pt ? O.createHTML(l) : l;
515
+ if (n = se(l), !n)
516
+ return $ ? null : pt ? V : "";
517
+ }
518
+ n && Dt && v(n.firstChild);
519
+ const E = ae(et ? l : n);
520
+ for (; h = E.nextNode(); )
521
+ ce(h), pe(h), h.content instanceof d && Ke(h.content);
522
+ if (et)
523
+ return l;
524
+ if ($) {
525
+ if (ft)
526
+ for (R = ve.call(n.ownerDocument); n.firstChild; )
527
+ R.appendChild(n.firstChild);
528
+ else
529
+ R = n;
530
+ return (S.shadowroot || S.shadowrootmode) && (R = Ue.call(i, R, !0)), R;
531
+ }
532
+ let I = G ? n.outerHTML : n.innerHTML;
533
+ return G && _["!doctype"] && n.ownerDocument && n.ownerDocument.doctype && n.ownerDocument.doctype.name && D(Le, n.ownerDocument.doctype.name) && (I = "<!DOCTYPE " + n.ownerDocument.doctype.name + `>
534
+ ` + I), j && At([St, bt, yt], (H) => {
535
+ I = ot(I, H, " ");
536
+ }), O && pt ? O.createHTML(I) : I;
537
+ }, r.setConfig = function() {
538
+ let l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
539
+ wt(l), Nt = !0;
540
+ }, r.clearConfig = function() {
541
+ K = null, Nt = !1;
542
+ }, r.isValidAttribute = function(l, t, n) {
543
+ K || wt({});
544
+ const o = g(l), h = g(t);
545
+ return ue(o, h, n);
546
+ }, r.addHook = function(l, t) {
547
+ typeof t == "function" && rt(N[l], t);
548
+ }, r.removeHook = function(l, t) {
549
+ if (t !== void 0) {
550
+ const n = rn(N[l], t);
551
+ return n === -1 ? void 0 : on(N[l], n, 1)[0];
552
+ }
553
+ return ge(N[l]);
554
+ }, r.removeHooks = function(l) {
555
+ N[l] = [];
556
+ }, r.removeAllHooks = function() {
557
+ N = Oe();
558
+ }, r;
559
+ }
560
+ var bn = Ce();
561
+ const yn = bn(window), Rn = (a) => yn.sanitize(a, {
562
+ RETURN_TRUSTED_TYPE: !0,
563
+ USE_PROFILES: { html: !0 },
564
+ CUSTOM_ELEMENT_HANDLING: {
565
+ tagNameCheck: /^ea-/,
566
+ attributeNameCheck: /.*/,
567
+ allowCustomizedBuiltInElements: !0
568
+ }
569
+ });
570
+ var z;
571
+ class Cn extends HTMLElement {
572
+ constructor() {
573
+ super();
574
+ Te(this, z, {});
575
+ it(this, "isMounted", !0);
576
+ it(this, "props", {
577
+ locale: "en-US"
578
+ });
579
+ /**
580
+ * 创建响应式数据配置
581
+ * @param {Object.<string, {
582
+ * type: (Function|Array<*>),
583
+ * default: any,
584
+ * props?: Boolean,
585
+ * rawFunction?: Boolean,
586
+ * observer?: (newVal: any, oldVal?: any) => void
587
+ * }>} states 配置对象,每个 key 是一个响应式字段名
588
+ * @returns {void}
589
+ */
590
+ it(this, "properties", (e) => {
591
+ const i = (c) => {
592
+ if (c === Boolean)
593
+ return "Boolean";
594
+ if (c === Number)
595
+ return "Number";
596
+ if (c === String || Array.isArray(c))
597
+ return "String";
598
+ if (c === RegExp)
599
+ return "RegExp";
600
+ if (c === Date)
601
+ return "Date";
602
+ if (c === Array)
603
+ return "Array";
604
+ if (typeof c == "object" && c !== null)
605
+ try {
606
+ return Object.entries(c).filter(
607
+ (p) => typeof p[1] == "function" ? p[1]() : !1
608
+ )[0][0];
609
+ } catch {
610
+ console.error(
611
+ `[${this.tagName}] Every "type" entry must be a function. Received:`,
612
+ c
613
+ );
614
+ }
615
+ return c || "String";
616
+ }, s = (c) => typeof c == "function" ? c() : c || null, d = (c, u) => {
617
+ const p = e[c], m = p == null ? void 0 : p.type;
618
+ if (c === "Function" || m === Function)
619
+ return p.rawFunction ? u : u == null ? void 0 : u();
620
+ if (c === "Array" || m === Array)
621
+ return u;
622
+ if (m === Boolean)
623
+ return u === "" || u === "true" || u === !0;
624
+ if (m === Number) {
625
+ const T = Number(u);
626
+ return isNaN(T) ? s(p == null ? void 0 : p.default) : T;
627
+ }
628
+ if (m === Date)
629
+ return new Date(u);
630
+ if (Array.isArray(m))
631
+ return m.includes(u) ? u : s(p == null ? void 0 : p.default);
632
+ if (m === RegExp)
633
+ return u.match(m) ? JSON.stringify(u) : s(p == null ? void 0 : p.default);
634
+ if (m === String)
635
+ return typeof u == "function" ? u() : u;
636
+ if (typeof m == "object" && m !== null) {
637
+ const T = Object.entries(m).filter((y) => y[1]());
638
+ return T && (T != null && T.length) ? d(T[0][0], u) : s(p == null ? void 0 : p.default);
639
+ }
640
+ return u || (p == null ? void 0 : p.default);
641
+ };
642
+ for (const [c, u] of Object.entries(e)) {
643
+ const p = Ae.String.toLowerCamelCase(c);
644
+ J(this, z)[p] = u, Object.getOwnPropertyDescriptor(this, p) && delete this[p], Object.getOwnPropertyDescriptor(this, c) && delete this[c], u != null && u.props ? Object.defineProperty(this, c, {
645
+ get: () => {
646
+ var m;
647
+ return d(
648
+ c,
649
+ ((m = this.props) == null ? void 0 : m[c]) || s(u.default)
650
+ );
651
+ },
652
+ set: (m) => {
653
+ var y, M;
654
+ const T = (y = this.props) == null ? void 0 : y[c];
655
+ this.props[c] = m, (M = u == null ? void 0 : u.observer) == null || M.call(u, m, T);
656
+ },
657
+ configurable: !0,
658
+ enumerable: !0
659
+ }) : Object.defineProperty(this, p, {
660
+ get: () => {
661
+ const m = i(u.type);
662
+ return this[`getAttr${m}`](
663
+ p,
664
+ s(u == null ? void 0 : u.default)
665
+ );
666
+ },
667
+ set: (m) => {
668
+ this.setAttr(p, d(p, m));
669
+ },
670
+ configurable: !0,
671
+ enumerable: !0
672
+ });
673
+ }
674
+ });
675
+ /**
676
+ * 触发事件
677
+ * @param {String} eventName
678
+ * @param {CustomEventInit} options
679
+ */
680
+ it(this, "emit", (e, i) => {
681
+ super.dispatchEvent(new CustomEvent(e, i));
682
+ });
683
+ this.attachShadow({ mode: "open" }), this.shadowRoot;
684
+ }
685
+ static get observedAttributes() {
686
+ return ["locale"];
687
+ }
688
+ // ------- locale -------
689
+ // #region
690
+ get locale() {
691
+ return this.getAttrString("locale") || this.props.locale || "en-US";
692
+ }
693
+ set locale(e) {
694
+ this.setAttribute("locale", e);
695
+ }
696
+ // #endregion
697
+ // ------- end -------
698
+ /**
699
+ * 样式导入
700
+ * @param {string} stylesheet 静态样式(vite:`xxx.css?inline`)
701
+ */
702
+ adoptedStyle(e) {
703
+ const i = new CSSStyleSheet(), s = new CSSStyleSheet();
704
+ i.replaceSync(e), s.replaceSync(Ve), this.shadowRoot.adoptedStyleSheets = [i, s];
705
+ }
706
+ assignedStyle(e) {
707
+ const i = new CSSStyleSheet();
708
+ i.replaceSync(e), this.shadowRoot.adoptedStyleSheets = [
709
+ ...this.shadowRoot.adoptedStyleSheets,
710
+ i
711
+ ];
712
+ }
713
+ /**
714
+ * 计算classlist
715
+ * @param {string} block 块级元素名称
716
+ * @param {object} classListObj classList对象
717
+ * @param {object} stateClassListObj 状态classList对象
718
+ * @returns {string} classList
719
+ */
720
+ computedClasslist(e = "", i = {}, s = {}) {
721
+ return [
722
+ e,
723
+ ...Object.entries(i).filter(([, d]) => d).map(([d]) => `${e}${d}`),
724
+ ...Object.entries(s).filter(([, d]) => d).map(([d]) => `is-${d}`)
725
+ ].join(" ");
726
+ }
727
+ attributeChangedCallback(e, i, s) {
728
+ var d, c, u;
729
+ if (!(s === i || !this.isMounted)) {
730
+ if (e === "locale") {
731
+ this.props.locale = s, this.$updateLocalization(s);
732
+ return;
733
+ }
734
+ try {
735
+ if ((d = J(this, z)[e]) != null && d.props) return;
736
+ const p = (m, T) => {
737
+ const y = J(this, z)[m], M = y == null ? void 0 : y.type;
738
+ if (m === "Array" || M === Array)
739
+ return T;
740
+ if (M === Boolean)
741
+ return T === "" || T === "true" || T === !0;
742
+ if (M === Number) {
743
+ const B = Number(T);
744
+ return isNaN(B) ? y.default : B;
745
+ }
746
+ return Array.isArray(M) ? M.includes(T) ? T : y.default : M === RegExp ? T.match(M) ? JSON.stringify(T) : y.default : T || (y == null ? void 0 : y.default);
747
+ };
748
+ (u = (c = J(this, z)[e]) == null ? void 0 : c.observer) == null || u.call(
749
+ c,
750
+ this[e],
751
+ p(e, i)
752
+ );
753
+ } catch (p) {
754
+ process.env.NODE_ENV === "development" && this.isMounted && console.error(p, this);
755
+ }
756
+ }
757
+ }
758
+ // ------- loading-full 属性 -------
759
+ // #region
760
+ get "loading-full"() {
761
+ return this.getAttrBoolean("loading-full") || !1;
762
+ }
763
+ set "loading-full"(e) {
764
+ this.toggleAttribute("loading-full", e), this.getAttrBoolean("disabled") || this.toggleAttribute("disabled", e);
765
+ }
766
+ // #endregion
767
+ // ------- end -------
768
+ html(e) {
769
+ return Rn(e);
770
+ }
771
+ /**
772
+ * @abstract 更新组件语言
773
+ * @param {string} locale
774
+ */
775
+ // eslint-disable-next-line no-unused-vars
776
+ $updateLocalization(e) {
777
+ }
778
+ /** @abstract 组件渲染 */
779
+ $render() {
780
+ }
781
+ /** @abstract 组件销毁前调用 */
782
+ $beforeUnmounted() {
783
+ }
784
+ /** @abstract 组件销毁后调用 */
785
+ $unmounted() {
786
+ }
787
+ /**
788
+ *
789
+ * @param {Object} data
790
+ * @param {any} data.key 键
791
+ * @param {any} data.newVal 值
792
+ * @param {any} data.oldVal 旧值
793
+ */
794
+ $updated(e) {
795
+ this.emit("updated", {
796
+ detail: e,
797
+ bubbles: !1,
798
+ composed: !0
799
+ });
800
+ }
801
+ connectedCallback() {
802
+ this.adoptedStyle(this.stylesheet), this.tabIndex = this.getAttrNumber("tabindex") || 0;
803
+ }
804
+ disconnectedCallback() {
805
+ var e, i;
806
+ (e = this.$beforeUnmounted) == null || e.call(this), this.emit("beforeUnmount", {
807
+ detail: this,
808
+ bubbles: !1,
809
+ composed: !0
810
+ }), (i = this.$unmounted) == null || i.call(this), this.emit("unmounted", {
811
+ detail: this,
812
+ bubbles: !1,
813
+ composed: !0
814
+ }), this.state = null;
815
+ }
816
+ /**
817
+ * 设置属性值,并切换className
818
+ * @param {string} attr 属性名
819
+ * @param {boolean} flag 属性值
820
+ */
821
+ toggleAttribute(e, i) {
822
+ i ? this.setAttribute(e, i) : this.hasAttribute(e) && this.removeAttribute(e);
823
+ }
824
+ /**
825
+ * 设置属性值
826
+ * @param {string} attr 属性名
827
+ * @param {boolean} flag 属性值
828
+ */
829
+ toggleAttr(e, i) {
830
+ i ? this.setAttribute(e, i) : this.removeAttribute(e);
831
+ }
832
+ /**
833
+ * 获取属性值,并转换为布尔值
834
+ * @param {string} attrName 属性名
835
+ * @returns {boolean}
836
+ */
837
+ getAttrBoolean(e, i) {
838
+ const s = this.getAttribute(e);
839
+ return s === "true" || s === "" ? !0 : s === "false" ? !1 : i;
840
+ }
841
+ /**
842
+ * 获取属性值,并转换为数字
843
+ * @param {string} attrName 属性名
844
+ * @returns {number}
845
+ */
846
+ getAttrNumber(e, i) {
847
+ const s = this.getAttribute(e);
848
+ return s ? Number(s) : i || 0;
849
+ }
850
+ getAttrString(e, i) {
851
+ const s = this.getAttribute(e);
852
+ return s || i || "";
853
+ }
854
+ getAttrDate(e, i) {
855
+ let s = this.getAttrNumber(e);
856
+ return (isNaN(s) || !s) && (s = this.getAttrString(e)), isNaN(new Date(s)) ? i || null : new Date(s);
857
+ }
858
+ setAttr(e, i) {
859
+ if (i || J(this, z)[e].default || i === 0) {
860
+ const s = Ae.JSON.stringify(i);
861
+ this.setAttribute(
862
+ e,
863
+ Array.isArray(i) || typeof i == "object" && i !== null ? s : i
864
+ );
865
+ } else
866
+ this.removeAttribute(e);
867
+ }
868
+ }
869
+ z = new WeakMap();
870
+ export {
871
+ Cn as B
872
+ };