@abtnode/blocklet-services 1.16.21-beta-445a8baa → 1.16.21-beta-2e75c75c

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 (278) hide show
  1. package/api/index.js +14 -3
  2. package/api/libs/connect/session.js +9 -4
  3. package/api/libs/connect/v2.js +1 -2
  4. package/api/libs/email.js +1 -1
  5. package/api/libs/logger.js +13 -0
  6. package/api/libs/open-graph/index.js +1 -1
  7. package/api/middlewares/check-blocklet.js +1 -1
  8. package/api/middlewares/check-running.js +1 -1
  9. package/api/routes/blocklet.js +1 -1
  10. package/api/routes/federated.js +1 -2
  11. package/api/routes/oauth.js +13 -1
  12. package/api/routes/user-session.js +10 -1
  13. package/api/routes/user.js +13 -1
  14. package/api/services/auth/connect/bind-wallet.js +1 -2
  15. package/api/services/auth/connect/exchange-passport.js +2 -2
  16. package/api/services/auth/connect/fuel.js +2 -1
  17. package/api/services/auth/connect/gen-blocklet-key-pair.js +2 -1
  18. package/api/services/auth/connect/invite.js +7 -1
  19. package/api/services/auth/connect/login.js +1 -2
  20. package/api/services/auth/connect/migrate-app-to-struct-v2.js +1 -2
  21. package/api/services/auth/connect/pre-setup.js +1 -1
  22. package/api/services/auth/connect/receive-transfer-app-owner.js +1 -1
  23. package/api/services/auth/connect/setup.js +1 -1
  24. package/api/services/auth/connect/transfer-app-owner.js +2 -1
  25. package/api/services/auth/index.js +1 -1
  26. package/api/services/dashboard/index.js +1 -2
  27. package/api/services/image/index.js +1 -1
  28. package/api/services/notification/blocklet-events-notifier.js +1 -1
  29. package/api/services/notification/index.js +1 -4
  30. package/api/services/oauth/index.js +2 -1
  31. package/api/services/relay/index.js +1 -4
  32. package/api/socket/channel/component.js +1 -1
  33. package/api/socket/channel/did.js +1 -2
  34. package/api/socket/util.js +1 -3
  35. package/api/state/index.js +1 -1
  36. package/api/util/blocklet-utils.js +1 -1
  37. package/dist/assets/{Add-3a4e9bf2.js → Add-aQrnrfzf.js} +1 -1
  38. package/dist/assets/Alert-TRn-W2uZ.js +1 -0
  39. package/dist/assets/{ArrowDropDown-a2deccb8.js → ArrowDropDown-CH040cMg.js} +1 -1
  40. package/dist/assets/Autocomplete-tXxDeUFr.js +1 -0
  41. package/dist/assets/{Avatar-31b251b1.js → Avatar-rHHH0tYI.js} +1 -1
  42. package/dist/assets/ButtonGroup-wdx9FsdX.js +1 -0
  43. package/dist/assets/CardContent-aTkzcvcb.js +1 -0
  44. package/dist/assets/{CheckCircle-a6858d5d.js → CheckCircle-n6sFL-ik.js} +1 -1
  45. package/dist/assets/Checkbox-j_1e5eTr.js +1 -0
  46. package/dist/assets/{ChevronRight-0de6ef39.js → ChevronRight-Z1HFANQM.js} +1 -1
  47. package/dist/assets/{DeleteOutline-978854b1.js → DeleteOutline-W9qfFaBp.js} +1 -1
  48. package/dist/assets/DialogContentText-OScaEdVl.js +1 -0
  49. package/dist/assets/{Done-e501bd33.js → Done-lojMP8XA.js} +1 -1
  50. package/dist/assets/{Download-ee01aba6.js → Download-zIigmX7y.js} +1 -1
  51. package/dist/assets/{Edit-fd7c9bed.js → Edit-9ZK8H_Fl.js} +1 -1
  52. package/dist/assets/{EditIcon-b1d73915.js → EditIcon-yhAmfbJG.js} +1 -1
  53. package/dist/assets/{ExpandMore-7c173148.js → ExpandMore-JKQWi6LF.js} +1 -1
  54. package/dist/assets/FilterList-4kCG8LRc.js +25 -0
  55. package/dist/assets/FormControl-PQjEXXGg.js +1 -0
  56. package/dist/assets/FormControlLabel-mJkBkk_g.js +1 -0
  57. package/dist/assets/FormGroup-vpdPgGk-.js +1 -0
  58. package/dist/assets/Google-VdMmJxwT.js +27 -0
  59. package/dist/assets/{Grid-c5601a70.js → Grid-p48e3xhB.js} +1 -1
  60. package/dist/assets/Hidden-ETMkRLtp.js +1 -0
  61. package/dist/assets/{Icon-29934361.js → Icon-44EJb3WR.js} +1 -1
  62. package/dist/assets/{InfoOutlined-eb4ab650.js → InfoOutlined-6gb2VM7I.js} +1 -1
  63. package/dist/assets/InputAdornment-Aryxdlq1.js +1 -0
  64. package/dist/assets/InputLabel-h-1ztqT6.js +1 -0
  65. package/dist/assets/{LastPage-c187ae76.js → LastPage-mfo1tUHa.js} +1 -1
  66. package/dist/assets/{Launch-8e54c9a5.js → Launch-AFmXeao0.js} +1 -1
  67. package/dist/assets/{LaunchOutlined-9dd9c853.js → LaunchOutlined-Bq_DfYoo.js} +1 -1
  68. package/dist/assets/ListItem-EJFW5_aw.js +1 -0
  69. package/dist/assets/{LockIcon-93d28688.js → LockIcon-D2isnori.js} +1 -1
  70. package/dist/assets/{Loop-9bace654.js → Loop-EkXTC6vo.js} +1 -1
  71. package/dist/assets/MoreHoriz-M3NU6QRD.js +1 -0
  72. package/dist/assets/{MoreVert-3d0977ab.js → MoreVert-0G7nxjS1.js} +2 -2
  73. package/dist/assets/{OpenInNew-e7cd0cc2.js → OpenInNew-hRo2SIn6.js} +1 -1
  74. package/dist/assets/{Pagination-6fcfcfda.js → Pagination-nXChL-n4.js} +2 -2
  75. package/dist/assets/{PlayArrow-961eaacd.js → PlayArrow-CyzooC2w.js} +1 -1
  76. package/dist/assets/RadioGroup-qU1ho8Ao.js +1 -0
  77. package/dist/assets/{Search-f8fe0d11.js → Search-k3UVP7sV.js} +1 -1
  78. package/dist/assets/{Select-86168230.js → Select-SiGR5MWy.js} +2 -2
  79. package/dist/assets/{ServerLogo-b9434abe.js → ServerLogo--wztj3ua.js} +1 -1
  80. package/dist/assets/Skeleton-EToYSB3k.js +51 -0
  81. package/dist/assets/Slider-CNwMVLkd.js +1 -0
  82. package/dist/assets/Stepper-ycMUSRhL.js +1 -0
  83. package/dist/assets/{TableRow-c019aa76.js → TableRow-0s5gqtkd.js} +2 -2
  84. package/dist/assets/TextField-5mqig0lI.js +1 -0
  85. package/dist/assets/{Toolbar-3eef999e.js → Toolbar-lPJJUJ1m.js} +1 -1
  86. package/dist/assets/{access-control-9ae6bc7e.js → access-control-ydDah6D7.js} +1 -1
  87. package/dist/assets/actions-KV6_T4pn.js +1 -0
  88. package/dist/assets/{add-component-core-a389deaa.js → add-component-core-j8O0sdKT.js} +40 -40
  89. package/dist/assets/add-component-core-wegghUnI.css +1 -0
  90. package/dist/assets/add-resource-qYTftMuf.js +1 -0
  91. package/dist/assets/addon-PObek_gJ.js +26 -0
  92. package/dist/assets/analytics-yABECUBU.js +52 -0
  93. package/dist/assets/api-taacukW-.js +1 -0
  94. package/dist/assets/{audit-logs-b77b5880.js → audit-logs-YVY6A7wy.js} +6 -6
  95. package/dist/assets/{button-df38f255.js → button-MNFZKmGM.js} +1 -1
  96. package/dist/assets/{click-to-copy-aea6a9bd.js → click-to-copy-vjabm7J5.js} +1 -1
  97. package/dist/assets/{complete-50b01711.js → complete-GGXUF0LK.js} +3 -3
  98. package/dist/assets/{component-ca8cf1c6.js → component-4ZMFkbkH.js} +38 -38
  99. package/dist/assets/{config-df87ad09.js → config-5i0Otxmz.js} +1 -1
  100. package/dist/assets/{config-d3b02cb4.js → config-d8eAy9AQ.js} +2 -2
  101. package/dist/assets/{config-navigation-cecc3eed.js → config-navigation-igDecGk9.js} +13 -13
  102. package/dist/assets/{confirm-ddc8b167.js → confirm-McA4faDz.js} +1 -1
  103. package/dist/assets/confirm-YPm7YFIn.js +7 -0
  104. package/dist/assets/{connect-b9415d0d.js → connect-KuguHe9k.js} +1 -1
  105. package/dist/assets/connect-tJMWKdid.js +1 -0
  106. package/dist/assets/{content-layout-c45180bc.js → content-layout-G5-XilZ6.js} +1 -1
  107. package/dist/assets/dashboard-50D9Dr3p.js +132 -0
  108. package/dist/assets/{did-address-6f8ac748.js → did-address-utn80azk.js} +1 -1
  109. package/dist/assets/{did-utils-e5a93c03.js → did-utils-4YEK01Hu.js} +1 -1
  110. package/dist/assets/domain-l69EGiWi.js +9 -0
  111. package/dist/assets/domain-list-WIxoLqLh.js +12 -0
  112. package/dist/assets/{exchange-passport-49de9567.js → exchange-passport-4MwJchuG.js} +1 -1
  113. package/dist/assets/{fallback-0a2aea38.js → fallback-qea1DwWv.js} +2 -2
  114. package/dist/assets/{format-error-cb03fbac.js → format-error-j9iyo8Yt.js} +1 -1
  115. package/dist/assets/{fuel-60fee1f9.js → fuel-0OwtGCtK.js} +1 -1
  116. package/dist/assets/fullpage-Oekyc1Xj.js +6 -0
  117. package/dist/assets/home-g-wTEPg3.js +1 -0
  118. package/dist/assets/{iframe-e27aa5eb.js → iframe-Ssz096D4.js} +1 -1
  119. package/dist/assets/index--kHy2X7X.js +57 -0
  120. package/dist/assets/index-3vHCMpvy.js +180 -0
  121. package/dist/assets/{index-263c5c47.js → index-4gQJ4T4X.js} +1 -1
  122. package/dist/assets/index-5ZgcPEtO.js +1 -0
  123. package/dist/assets/{index-d5c608a0.js → index-8eSZR55e.js} +1 -1
  124. package/dist/assets/{index-564c075f.js → index-BfVuEv33.js} +14 -14
  125. package/dist/assets/{index-710f1958.js → index-CcwxHzov.js} +5 -5
  126. package/dist/assets/index-CrzXvgtx.js +1 -0
  127. package/dist/assets/{index-a8342096.js → index-Czx_Yp7n.js} +11 -5
  128. package/dist/assets/{index-1bb44511.js → index-F_S38T2q.js} +1 -1
  129. package/dist/assets/{index-d8bbb108.css → index-Fay2ci-b.css} +1 -1
  130. package/dist/assets/{index-b938b74f.js → index-GGXNmXwI.js} +2 -2
  131. package/dist/assets/{index-ffef1c73.js → index-Gjml824M.js} +1 -1
  132. package/dist/assets/{index-63a4e02a.js → index-Iq8E4Lsq.js} +1 -1
  133. package/dist/assets/{index-c284b28f.js → index-JUPNeZG5.js} +1 -1
  134. package/dist/assets/{index-88adaebe.js → index-ORGg9jKv.js} +9 -9
  135. package/dist/assets/index-Pk6ACq9L.js +54 -0
  136. package/dist/assets/index-YtTdwnwX.js +16 -0
  137. package/dist/assets/{index-81318943.js → index-awu4CdLA.js} +8 -8
  138. package/dist/assets/index-b19Yrn_0.js +37 -0
  139. package/dist/assets/{index-aadc33f3.js → index-gaqdjuPF.js} +12 -12
  140. package/dist/assets/{index-6d7aa2de.js → index-jSUvqhlP.js} +24 -24
  141. package/dist/assets/index-pPYPIBlE.js +1443 -0
  142. package/dist/assets/{index-ad20f5d3.js → index-qZqgv8yB.js} +1 -1
  143. package/dist/assets/index-tFlExYQQ.js +1 -0
  144. package/dist/assets/{index-c093e71f.js → index-tJTwzBb_.js} +12 -12
  145. package/dist/assets/{index-b68f9890.js → index-w1Cpmbnp.js} +1 -1
  146. package/dist/assets/{index-ca434966.js → index-wZvmUWED.js} +1 -1
  147. package/dist/assets/{index.es-9b2db4aa.js → index.es--c4ru_97.js} +3 -3
  148. package/dist/assets/{index.esm-8eb4e6fc.js → index.esm-ShjBgrpC.js} +1 -1
  149. package/dist/assets/{invite-0ce1ce33.js → invite-XWTjq6KS.js} +3 -3
  150. package/dist/assets/issue-passport-qvaKDelt.js +23 -0
  151. package/dist/assets/{jss-plugin-props-sort.esm-bce6f159.js → jss-plugin-props-sort.esm-zfUHJiac.js} +6 -6
  152. package/dist/assets/{launch-result-message-b57dfcd0.js → launch-result-message-fsq6UHAu.js} +1 -1
  153. package/dist/assets/{layout-30e687a6.js → layout-VUay_GRX.js} +1 -1
  154. package/dist/assets/{list-header-cc4af7a1.js → list-header-93nr5oB-.js} +1 -1
  155. package/dist/assets/localization-yv9kIu3G.js +1 -0
  156. package/dist/assets/{log-30bb3f7c.js → log-U6xlWa4y.js} +8 -8
  157. package/dist/assets/{login-c8bbda83.js → login-atHIgY1G.js} +1 -1
  158. package/dist/assets/login-bg-m34fVHNm.png +0 -0
  159. package/dist/assets/{logo-uploader-f1f683e3.js → logo-uploader-FMfBEamH.js} +10 -4
  160. package/dist/assets/{lost-passport-8d3360a7.js → lost-passport-mht-nQzc.js} +8 -2
  161. package/dist/assets/{lottie-ed0144dd.js → lottie-ADPdpha1.js} +2 -2
  162. package/dist/assets/{memoize-one.esm-9b916d19.js → memoize-one.esm-lesmZsqu.js} +1 -1
  163. package/dist/assets/mode-Ip8p6ZjP.js +1 -0
  164. package/dist/assets/nav-menu-rYrXDg0l.js +305 -0
  165. package/dist/assets/notifications-fuSVFN6r.js +62 -0
  166. package/dist/assets/overview-iCb3XBvN.js +12 -0
  167. package/dist/assets/{page-header-bd167e51.js → page-header-zhjbpE4d.js} +1 -1
  168. package/dist/assets/{permission-1721d6ff.js → permission-_9JEBgjE.js} +4 -4
  169. package/dist/assets/preferences-raGCxSAm.js +1 -0
  170. package/dist/assets/publish-resource-_xR0SqTQ.js +1 -0
  171. package/dist/assets/react-IpGwX7Xn.js +87 -0
  172. package/dist/assets/{react-1ee50eda.css → react-yqGXLqWb.css} +1 -1
  173. package/dist/assets/{redux-2be0c609.js → redux-XOuz_cVf.js} +1 -1
  174. package/dist/assets/selector-jHLMIir9.js +46 -0
  175. package/dist/assets/session-_d807uES.js +1 -0
  176. package/dist/assets/setup-fevmOmkt.js +19 -0
  177. package/dist/assets/{slicedToArray-44714d87.js → slicedToArray-lYfsf7tU.js} +2 -2
  178. package/dist/assets/{spaces-884bd1bc.js → spaces-uqF3-sWW.js} +1 -1
  179. package/dist/assets/start-t3LoVjvu.js +186 -0
  180. package/dist/assets/{step-actions-e2c31c4a.js → step-actions-FSJC0U6T.js} +1 -1
  181. package/dist/assets/{studio-6d583ba0.js → studio-DC0Wz_Lu.js} +1 -1
  182. package/dist/assets/switch-control-MAwqpbvg.js +13 -0
  183. package/dist/assets/{transfer-38c48c41.js → transfer-FNwkS78F.js} +2 -2
  184. package/dist/assets/{uniqBy-1a4484bb.js → uniqBy-09zFKL9T.js} +1 -1
  185. package/dist/assets/unsubscribe-TpNUimcc.js +1 -0
  186. package/dist/assets/{use-blocklet-info-for-connect-did-spaces-02cb5725.js → use-blocklet-info-for-connect-did-spaces-3VT2_Z5z.js} +1 -1
  187. package/dist/assets/{use-passport-id-7bbe3403.js → use-passport-id-pXgWCnyq.js} +1 -1
  188. package/dist/assets/{useAsync-e9cdf811.js → useAsync-IU1dWu3c.js} +1 -1
  189. package/dist/assets/useFormControl-048JKEU7.js +1 -0
  190. package/dist/assets/useLocalStorage-YCi9UL9H.js +1 -0
  191. package/dist/assets/{useSetState-6d3b66bd.js → useSetState-UpmVsjwc.js} +1 -1
  192. package/dist/assets/user-DpBEcTCg.js +22 -0
  193. package/dist/assets/{util-9fdf979a.js → util-YhTYpH34.js} +1 -1
  194. package/dist/assets/wallet-hidden-topbar-PzOecHVw.js +17 -0
  195. package/dist/assets/wrap-locale-jESJ2pw3.js +1 -0
  196. package/dist/index.html +2 -3
  197. package/dist/service-worker.js +2 -2
  198. package/package.json +37 -37
  199. package/dist/assets/Alert-88ccddfd.js +0 -1
  200. package/dist/assets/Autocomplete-a2328d71.js +0 -1
  201. package/dist/assets/ButtonGroup-d9cd68eb.js +0 -1
  202. package/dist/assets/CardContent-e96dbcb2.js +0 -1
  203. package/dist/assets/Checkbox-bf851887.js +0 -1
  204. package/dist/assets/DialogContentText-6418436c.js +0 -1
  205. package/dist/assets/FilterList-4f490637.js +0 -25
  206. package/dist/assets/FormControl-a1fbecf5.js +0 -1
  207. package/dist/assets/FormControlLabel-4a842c06.js +0 -1
  208. package/dist/assets/FormGroup-b7d9ef97.js +0 -1
  209. package/dist/assets/Google-91a8c0fe.js +0 -27
  210. package/dist/assets/Hidden-35230dda.js +0 -1
  211. package/dist/assets/InputAdornment-e4c90a63.js +0 -1
  212. package/dist/assets/InputLabel-49e6958a.js +0 -1
  213. package/dist/assets/ListItem-e314bf12.js +0 -1
  214. package/dist/assets/RadioGroup-8d4ab553.js +0 -1
  215. package/dist/assets/Slider-dc450dee.js +0 -1
  216. package/dist/assets/Stepper-0951e629.js +0 -1
  217. package/dist/assets/Switch-183772a5.js +0 -1
  218. package/dist/assets/TextField-fedebf1f.js +0 -1
  219. package/dist/assets/actions-28620eeb.js +0 -1
  220. package/dist/assets/add-component-core-d1824719.css +0 -1
  221. package/dist/assets/add-resource-9509ff95.js +0 -1
  222. package/dist/assets/addon-67a138a5.js +0 -26
  223. package/dist/assets/analytics-1cc14b8d.js +0 -52
  224. package/dist/assets/api-cf320b38.js +0 -1
  225. package/dist/assets/confirm-06053193.js +0 -7
  226. package/dist/assets/connect-eb42cf82.js +0 -1
  227. package/dist/assets/dashboard-869969b3.js +0 -126
  228. package/dist/assets/domain-ce3d68ba.js +0 -9
  229. package/dist/assets/domain-list-c01d42a2.js +0 -12
  230. package/dist/assets/home-13a41811.js +0 -1
  231. package/dist/assets/index-0f945049.js +0 -54
  232. package/dist/assets/index-40d4e6fe.js +0 -37
  233. package/dist/assets/index-48a58a22.js +0 -1
  234. package/dist/assets/index-5ecec248.js +0 -1
  235. package/dist/assets/index-67652289.js +0 -57
  236. package/dist/assets/index-a472b88f.js +0 -1
  237. package/dist/assets/index-a575450e.js +0 -174
  238. package/dist/assets/index-ca1233b4.js +0 -1
  239. package/dist/assets/index-f5164e7a.js +0 -1743
  240. package/dist/assets/index-fb610e48.js +0 -16
  241. package/dist/assets/issue-passport-eeb74a6b.js +0 -23
  242. package/dist/assets/listItemButtonClasses-811dce88.js +0 -1
  243. package/dist/assets/localization-586c2161.js +0 -1
  244. package/dist/assets/nav-menu-2e0bf9b0.js +0 -301
  245. package/dist/assets/notifications-9acb30be.js +0 -62
  246. package/dist/assets/overview-b5205c37.js +0 -12
  247. package/dist/assets/preferences-2cc81c57.js +0 -1
  248. package/dist/assets/publish-resource-309461c6.js +0 -1
  249. package/dist/assets/react-a6e6612e.js +0 -87
  250. package/dist/assets/selector-8aed4b44.js +0 -45
  251. package/dist/assets/session-5cca81f2.js +0 -1
  252. package/dist/assets/setup-4a3ca937.js +0 -13
  253. package/dist/assets/start-b1f2c2fa.js +0 -186
  254. package/dist/assets/switch-control-97423316.js +0 -13
  255. package/dist/assets/unsubscribe-7c8ecf1f.js +0 -1
  256. package/dist/assets/useFormControl-be0583f6.js +0 -1
  257. package/dist/assets/useLocalStorage-6f44c0e8.js +0 -1
  258. package/dist/assets/user-b04d443a.js +0 -22
  259. package/dist/assets/wallet-hidden-topbar-30953049.js +0 -11
  260. package/dist/assets/wrap-locale-c74ee18c.js +0 -1
  261. /package/dist/assets/{audit-logs-71685e49.css → audit-logs-QseNTS8s.css} +0 -0
  262. /package/dist/assets/{index-eac0d35b.css → index-1NyTkR9G.css} +0 -0
  263. /package/dist/assets/{lato-all-400-normal-8844f83a.woff → lato-all-400-normal-J9JTbfbq.woff} +0 -0
  264. /package/dist/assets/{lato-all-700-normal-4bfd21d1.woff → lato-all-700-normal-hoWrJF_J.woff} +0 -0
  265. /package/dist/assets/{lato-latin-400-normal-918b7dc3.woff2 → lato-latin-400-normal-RIbX5ua0.woff2} +0 -0
  266. /package/dist/assets/{lato-latin-700-normal-c447dd76.woff2 → lato-latin-700-normal-VBjIIp-A.woff2} +0 -0
  267. /package/dist/assets/{lato-latin-ext-400-normal-1c2fc265.woff2 → lato-latin-ext-400-normal-vHgWfo9s.woff2} +0 -0
  268. /package/dist/assets/{lato-latin-ext-700-normal-4ef7cd3d.woff2 → lato-latin-ext-700-normal-uVlnzcMZ.woff2} +0 -0
  269. /package/dist/assets/{log-27ad1df4.css → log-993Rbbf_.css} +0 -0
  270. /package/dist/assets/{preact.module-783a6d9f.js → preact.module-yJdvQMHZ.js} +0 -0
  271. /package/dist/assets/{toPropertyKey-acc744d8.js → toPropertyKey-NzAT2yhV.js} +0 -0
  272. /package/dist/assets/{ubuntu-mono-all-400-normal-f4a8f91f.woff → ubuntu-mono-all-400-normal-bPeWxOcj.woff} +0 -0
  273. /package/dist/assets/{ubuntu-mono-cyrillic-400-normal-b958f4d0.woff2 → ubuntu-mono-cyrillic-400-normal-1r_k7was.woff2} +0 -0
  274. /package/dist/assets/{ubuntu-mono-cyrillic-ext-400-normal-fcf55b87.woff2 → ubuntu-mono-cyrillic-ext-400-normal-Ni0K3o4l.woff2} +0 -0
  275. /package/dist/assets/{ubuntu-mono-greek-400-normal-6799188f.woff2 → ubuntu-mono-greek-400-normal-ZqeL-uKU.woff2} +0 -0
  276. /package/dist/assets/{ubuntu-mono-greek-ext-400-normal-8b0abaf5.woff2 → ubuntu-mono-greek-ext-400-normal-bPDHNzua.woff2} +0 -0
  277. /package/dist/assets/{ubuntu-mono-latin-400-normal-b07e4ebe.woff2 → ubuntu-mono-latin-400-normal-uDUzuIHS.woff2} +0 -0
  278. /package/dist/assets/{ubuntu-mono-latin-ext-400-normal-1fe80c26.woff2 → ubuntu-mono-latin-ext-400-normal-pKhfBlxE.woff2} +0 -0
@@ -1,2 +1,2 @@
1
- import{aW as G}from"./index-f5164e7a.js";class w{constructor(e,t,o){this.property=e,this.normal=t,o&&(this.space=o)}}w.prototype.property={};w.prototype.normal={};w.prototype.space=null;function B(l,e){const t={},o={};let c=-1;for(;++c<l.length;)Object.assign(t,l[c].property),Object.assign(o,l[c].normal);return new w(t,o,e)}function L(l){return l.toLowerCase()}class h{constructor(e,t){this.property=e,this.attribute=t}}h.prototype.space=null;h.prototype.boolean=!1;h.prototype.booleanish=!1;h.prototype.overloadedBoolean=!1;h.prototype.number=!1;h.prototype.commaSeparated=!1;h.prototype.spaceSeparated=!1;h.prototype.commaOrSpaceSeparated=!1;h.prototype.mustUseProperty=!1;h.prototype.defined=!1;let $=0;const r=k(),p=k(),H=k(),n=k(),u=k(),x=k(),g=k();function k(){return 2**++$}const P=Object.freeze(Object.defineProperty({__proto__:null,boolean:r,booleanish:p,commaOrSpaceSeparated:g,commaSeparated:x,number:n,overloadedBoolean:H,spaceSeparated:u},Symbol.toStringTag,{value:"Module"})),C=Object.keys(P);class E extends h{constructor(e,t,o,c){let s=-1;if(super(e,t),R(this,"space",c),typeof o=="number")for(;++s<C.length;){const d=C[s];R(this,C[s],(o&P[d])===P[d])}}}E.prototype.defined=!0;function R(l,e,t){t&&(l[e]=t)}const Z={}.hasOwnProperty;function S(l){const e={},t={};let o;for(o in l.properties)if(Z.call(l.properties,o)){const c=l.properties[o],s=new E(o,l.transform(l.attributes||{},o),c,l.space);l.mustUseProperty&&l.mustUseProperty.includes(o)&&(s.mustUseProperty=!0),e[o]=s,t[L(o)]=o,t[L(s.attribute)]=o}return new w(e,t,l.space)}const F=S({space:"xlink",transform(l,e){return"xlink:"+e.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),j=S({space:"xml",transform(l,e){return"xml:"+e.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function N(l,e){return e in l?l[e]:e}function X(l,e){return N(l,e.toLowerCase())}const _=S({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:X,properties:{xmlns:null,xmlnsXLink:null}}),W=S({transform(l,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:p,ariaAutoComplete:null,ariaBusy:p,ariaChecked:p,ariaColCount:n,ariaColIndex:n,ariaColSpan:n,ariaControls:u,ariaCurrent:null,ariaDescribedBy:u,ariaDetails:null,ariaDisabled:p,ariaDropEffect:u,ariaErrorMessage:null,ariaExpanded:p,ariaFlowTo:u,ariaGrabbed:p,ariaHasPopup:null,ariaHidden:p,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:u,ariaLevel:n,ariaLive:null,ariaModal:p,ariaMultiLine:p,ariaMultiSelectable:p,ariaOrientation:null,ariaOwns:u,ariaPlaceholder:null,ariaPosInSet:n,ariaPressed:p,ariaReadOnly:p,ariaRelevant:null,ariaRequired:p,ariaRoleDescription:u,ariaRowCount:n,ariaRowIndex:n,ariaRowSpan:n,ariaSelected:p,ariaSetSize:n,ariaSort:null,ariaValueMax:n,ariaValueMin:n,ariaValueNow:n,ariaValueText:null,role:null}}),J=S({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:X,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:x,acceptCharset:u,accessKey:u,action:null,allow:null,allowFullScreen:r,allowPaymentRequest:r,allowUserMedia:r,alt:null,as:null,async:r,autoCapitalize:null,autoComplete:u,autoFocus:r,autoPlay:r,capture:r,charSet:null,checked:r,cite:null,className:u,cols:n,colSpan:null,content:null,contentEditable:p,controls:r,controlsList:u,coords:n|x,crossOrigin:null,data:null,dateTime:null,decoding:null,default:r,defer:r,dir:null,dirName:null,disabled:r,download:H,draggable:p,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:r,formTarget:null,headers:u,height:n,hidden:r,high:n,href:null,hrefLang:null,htmlFor:u,httpEquiv:u,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:r,itemId:null,itemProp:u,itemRef:u,itemScope:r,itemType:u,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:r,low:n,manifest:null,max:null,maxLength:n,media:null,method:null,min:null,minLength:n,multiple:r,muted:r,name:null,nonce:null,noModule:r,noValidate:r,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:r,optimum:n,pattern:null,ping:u,placeholder:null,playsInline:r,poster:null,preload:null,readOnly:r,referrerPolicy:null,rel:u,required:r,reversed:r,rows:n,rowSpan:n,sandbox:u,scope:null,scoped:r,seamless:r,selected:r,shape:null,size:n,sizes:null,slot:null,span:n,spellCheck:p,src:null,srcDoc:null,srcLang:null,srcSet:null,start:n,step:null,style:null,tabIndex:n,target:null,title:null,translate:null,type:null,typeMustMatch:r,useMap:null,value:p,width:n,wrap:null,align:null,aLink:null,archive:u,axis:null,background:null,bgColor:null,border:n,borderColor:null,bottomMargin:n,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:r,declare:r,event:null,face:null,frame:null,frameBorder:null,hSpace:n,leftMargin:n,link:null,longDesc:null,lowSrc:null,marginHeight:n,marginWidth:n,noResize:r,noHref:r,noShade:r,noWrap:r,object:null,profile:null,prompt:null,rev:null,rightMargin:n,rules:null,scheme:null,scrolling:p,standby:null,summary:null,text:null,topMargin:n,valueType:null,version:null,vAlign:null,vLink:null,vSpace:n,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:r,disableRemotePlayback:r,prefix:null,property:null,results:n,security:null,unselectable:null}}),Q=S({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:N,properties:{about:g,accentHeight:n,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:n,amplitude:n,arabicForm:null,ascent:n,attributeName:null,attributeType:null,azimuth:n,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:n,by:null,calcMode:null,capHeight:n,className:u,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:n,diffuseConstant:n,direction:null,display:null,dur:null,divisor:n,dominantBaseline:null,download:r,dx:null,dy:null,edgeMode:null,editable:null,elevation:n,enableBackground:null,end:null,event:null,exponent:n,externalResourcesRequired:null,fill:null,fillOpacity:n,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:x,g2:x,glyphName:x,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:n,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:n,horizOriginX:n,horizOriginY:n,id:null,ideographic:n,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:n,k:n,k1:n,k2:n,k3:n,k4:n,kernelMatrix:g,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:n,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:n,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:n,overlineThickness:n,paintOrder:null,panose1:null,path:null,pathLength:n,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:u,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:n,pointsAtY:n,pointsAtZ:n,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:g,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:g,rev:g,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:g,requiredFeatures:g,requiredFonts:g,requiredFormats:g,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:n,specularExponent:n,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:n,strikethroughThickness:n,string:null,stroke:null,strokeDashArray:g,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:n,strokeOpacity:n,strokeWidth:null,style:null,surfaceScale:n,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:g,tabIndex:n,tableValues:null,target:null,targetX:n,targetY:n,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:g,to:null,transform:null,u1:null,u2:null,underlinePosition:n,underlineThickness:n,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:n,values:null,vAlphabetic:n,vMathematical:n,vectorEffect:null,vHanging:n,vIdeographic:n,version:null,vertAdvY:n,vertOriginX:n,vertOriginY:n,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:n,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),nn=/^data[-\w.:]+$/i,T=/-[a-z]/g,ln=/[A-Z]/g;function kn(l,e){const t=L(e);let o=e,c=h;if(t in l.normal)return l.property[l.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&nn.test(e)){if(e.charAt(4)==="-"){const s=e.slice(5).replace(T,on);o="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=e.slice(4);if(!T.test(s)){let d=s.replace(ln,en);d.charAt(0)!=="-"&&(d="-"+d),e="data"+d}}c=E}return new c(o,e)}function en(l){return"-"+l.toLowerCase()}function on(l){return l.charAt(1).toUpperCase()}const xn={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Sn=B([j,F,_,W,J],"html"),wn=B([j,F,_,W,Q],"svg");function bn(l){const e=String(l||"").trim();return e?e.split(/[ \t\n\r\f]+/g):[]}function Cn(l){return l.join(" ").trim()}function Ln(l){const e=[],t=String(l||"");let o=t.indexOf(","),c=0,s=!1;for(;!s;){o===-1&&(o=t.length,s=!0);const d=t.slice(c,o).trim();(d||!s)&&e.push(d),c=o+1,o=t.indexOf(",",c)}return e}function Pn(l,e){const t=e||{};return(l[l.length-1]===""?[...l,""]:l).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}var O={exports:{}},A=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,tn=/\n/g,rn=/^\s*/,an=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,un=/^:\s*/,sn=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,cn=/^[;\s]*/,pn=/^\s+|\s+$/g,dn=`
2
- `,I="/",U="*",y="",gn="comment",hn="declaration",mn=function(l,e){if(typeof l!="string")throw new TypeError("First argument must be a string");if(!l)return[];e=e||{};var t=1,o=1;function c(i){var a=i.match(tn);a&&(t+=a.length);var m=i.lastIndexOf(dn);o=~m?i.length-m:o+i.length}function s(){var i={line:t,column:o};return function(a){return a.position=new d(i),b(),a}}function d(i){this.start=i,this.end={line:t,column:o},this.source=e.source}d.prototype.content=l;function v(i){var a=new Error(e.source+":"+t+":"+o+": "+i);if(a.reason=i,a.filename=e.source,a.line=t,a.column=o,a.source=l,!e.silent)throw a}function f(i){var a=i.exec(l);if(a){var m=a[0];return c(m),l=l.slice(m.length),a}}function b(){f(rn)}function M(i){var a;for(i=i||[];a=D();)a!==!1&&i.push(a);return i}function D(){var i=s();if(!(I!=l.charAt(0)||U!=l.charAt(1))){for(var a=2;y!=l.charAt(a)&&(U!=l.charAt(a)||I!=l.charAt(a+1));)++a;if(a+=2,y===l.charAt(a-1))return v("End of comment missing");var m=l.slice(2,a-2);return o+=2,c(m),l=l.slice(a),o+=2,i({type:gn,comment:m})}}function K(){var i=s(),a=f(an);if(a){if(D(),!f(un))return v("property missing ':'");var m=f(sn),q=i({type:hn,property:z(a[0].replace(A,y)),value:m?z(m[0].replace(A,y)):y});return f(cn),q}}function Y(){var i=[];M(i);for(var a;a=K();)a!==!1&&(i.push(a),M(i));return i}return b(),Y()};function z(l){return l?l.replace(pn,y):y}var fn=mn;function V(l,e){var t=null;if(!l||typeof l!="string")return t;for(var o,c=fn(l),s=typeof e=="function",d,v,f=0,b=c.length;f<b;f++)o=c[f],d=o.property,v=o.value,s?e(d,v,o):v&&(t||(t={}),t[d]=v);return t}O.exports=V;O.exports.default=V;var vn=O.exports;const En=G(vn),On={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Mn(l){const e=l&&typeof l=="object"&&l.type==="text"?l.value||"":l;return typeof e=="string"&&e.replace(/[ \t\n\f\r]/g,"")===""}export{En as S,Pn as a,Cn as b,xn as c,Mn as d,Ln as e,kn as f,Sn as h,L as n,bn as p,wn as s,On as w};
1
+ import{aT as G}from"./index-pPYPIBlE.js";class w{constructor(e,t,o){this.property=e,this.normal=t,o&&(this.space=o)}}w.prototype.property={};w.prototype.normal={};w.prototype.space=null;function B(l,e){const t={},o={};let c=-1;for(;++c<l.length;)Object.assign(t,l[c].property),Object.assign(o,l[c].normal);return new w(t,o,e)}function L(l){return l.toLowerCase()}class h{constructor(e,t){this.property=e,this.attribute=t}}h.prototype.space=null;h.prototype.boolean=!1;h.prototype.booleanish=!1;h.prototype.overloadedBoolean=!1;h.prototype.number=!1;h.prototype.commaSeparated=!1;h.prototype.spaceSeparated=!1;h.prototype.commaOrSpaceSeparated=!1;h.prototype.mustUseProperty=!1;h.prototype.defined=!1;let $=0;const r=k(),p=k(),H=k(),n=k(),u=k(),x=k(),g=k();function k(){return 2**++$}const P=Object.freeze(Object.defineProperty({__proto__:null,boolean:r,booleanish:p,commaOrSpaceSeparated:g,commaSeparated:x,number:n,overloadedBoolean:H,spaceSeparated:u},Symbol.toStringTag,{value:"Module"})),C=Object.keys(P);class E extends h{constructor(e,t,o,c){let s=-1;if(super(e,t),R(this,"space",c),typeof o=="number")for(;++s<C.length;){const d=C[s];R(this,C[s],(o&P[d])===P[d])}}}E.prototype.defined=!0;function R(l,e,t){t&&(l[e]=t)}const Z={}.hasOwnProperty;function S(l){const e={},t={};let o;for(o in l.properties)if(Z.call(l.properties,o)){const c=l.properties[o],s=new E(o,l.transform(l.attributes||{},o),c,l.space);l.mustUseProperty&&l.mustUseProperty.includes(o)&&(s.mustUseProperty=!0),e[o]=s,t[L(o)]=o,t[L(s.attribute)]=o}return new w(e,t,l.space)}const F=S({space:"xlink",transform(l,e){return"xlink:"+e.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),j=S({space:"xml",transform(l,e){return"xml:"+e.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function N(l,e){return e in l?l[e]:e}function X(l,e){return N(l,e.toLowerCase())}const _=S({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:X,properties:{xmlns:null,xmlnsXLink:null}}),V=S({transform(l,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:p,ariaAutoComplete:null,ariaBusy:p,ariaChecked:p,ariaColCount:n,ariaColIndex:n,ariaColSpan:n,ariaControls:u,ariaCurrent:null,ariaDescribedBy:u,ariaDetails:null,ariaDisabled:p,ariaDropEffect:u,ariaErrorMessage:null,ariaExpanded:p,ariaFlowTo:u,ariaGrabbed:p,ariaHasPopup:null,ariaHidden:p,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:u,ariaLevel:n,ariaLive:null,ariaModal:p,ariaMultiLine:p,ariaMultiSelectable:p,ariaOrientation:null,ariaOwns:u,ariaPlaceholder:null,ariaPosInSet:n,ariaPressed:p,ariaReadOnly:p,ariaRelevant:null,ariaRequired:p,ariaRoleDescription:u,ariaRowCount:n,ariaRowIndex:n,ariaRowSpan:n,ariaSelected:p,ariaSetSize:n,ariaSort:null,ariaValueMax:n,ariaValueMin:n,ariaValueNow:n,ariaValueText:null,role:null}}),J=S({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:X,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:x,acceptCharset:u,accessKey:u,action:null,allow:null,allowFullScreen:r,allowPaymentRequest:r,allowUserMedia:r,alt:null,as:null,async:r,autoCapitalize:null,autoComplete:u,autoFocus:r,autoPlay:r,capture:r,charSet:null,checked:r,cite:null,className:u,cols:n,colSpan:null,content:null,contentEditable:p,controls:r,controlsList:u,coords:n|x,crossOrigin:null,data:null,dateTime:null,decoding:null,default:r,defer:r,dir:null,dirName:null,disabled:r,download:H,draggable:p,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:r,formTarget:null,headers:u,height:n,hidden:r,high:n,href:null,hrefLang:null,htmlFor:u,httpEquiv:u,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:r,itemId:null,itemProp:u,itemRef:u,itemScope:r,itemType:u,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:r,low:n,manifest:null,max:null,maxLength:n,media:null,method:null,min:null,minLength:n,multiple:r,muted:r,name:null,nonce:null,noModule:r,noValidate:r,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:r,optimum:n,pattern:null,ping:u,placeholder:null,playsInline:r,poster:null,preload:null,readOnly:r,referrerPolicy:null,rel:u,required:r,reversed:r,rows:n,rowSpan:n,sandbox:u,scope:null,scoped:r,seamless:r,selected:r,shape:null,size:n,sizes:null,slot:null,span:n,spellCheck:p,src:null,srcDoc:null,srcLang:null,srcSet:null,start:n,step:null,style:null,tabIndex:n,target:null,title:null,translate:null,type:null,typeMustMatch:r,useMap:null,value:p,width:n,wrap:null,align:null,aLink:null,archive:u,axis:null,background:null,bgColor:null,border:n,borderColor:null,bottomMargin:n,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:r,declare:r,event:null,face:null,frame:null,frameBorder:null,hSpace:n,leftMargin:n,link:null,longDesc:null,lowSrc:null,marginHeight:n,marginWidth:n,noResize:r,noHref:r,noShade:r,noWrap:r,object:null,profile:null,prompt:null,rev:null,rightMargin:n,rules:null,scheme:null,scrolling:p,standby:null,summary:null,text:null,topMargin:n,valueType:null,version:null,vAlign:null,vLink:null,vSpace:n,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:r,disableRemotePlayback:r,prefix:null,property:null,results:n,security:null,unselectable:null}}),Q=S({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:N,properties:{about:g,accentHeight:n,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:n,amplitude:n,arabicForm:null,ascent:n,attributeName:null,attributeType:null,azimuth:n,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:n,by:null,calcMode:null,capHeight:n,className:u,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:n,diffuseConstant:n,direction:null,display:null,dur:null,divisor:n,dominantBaseline:null,download:r,dx:null,dy:null,edgeMode:null,editable:null,elevation:n,enableBackground:null,end:null,event:null,exponent:n,externalResourcesRequired:null,fill:null,fillOpacity:n,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:x,g2:x,glyphName:x,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:n,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:n,horizOriginX:n,horizOriginY:n,id:null,ideographic:n,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:n,k:n,k1:n,k2:n,k3:n,k4:n,kernelMatrix:g,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:n,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:n,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:n,overlineThickness:n,paintOrder:null,panose1:null,path:null,pathLength:n,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:u,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:n,pointsAtY:n,pointsAtZ:n,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:g,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:g,rev:g,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:g,requiredFeatures:g,requiredFonts:g,requiredFormats:g,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:n,specularExponent:n,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:n,strikethroughThickness:n,string:null,stroke:null,strokeDashArray:g,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:n,strokeOpacity:n,strokeWidth:null,style:null,surfaceScale:n,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:g,tabIndex:n,tableValues:null,target:null,targetX:n,targetY:n,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:g,to:null,transform:null,u1:null,u2:null,underlinePosition:n,underlineThickness:n,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:n,values:null,vAlphabetic:n,vMathematical:n,vectorEffect:null,vHanging:n,vIdeographic:n,version:null,vertAdvY:n,vertOriginX:n,vertOriginY:n,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:n,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),nn=/^data[-\w.:]+$/i,T=/-[a-z]/g,ln=/[A-Z]/g;function kn(l,e){const t=L(e);let o=e,c=h;if(t in l.normal)return l.property[l.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&nn.test(e)){if(e.charAt(4)==="-"){const s=e.slice(5).replace(T,on);o="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=e.slice(4);if(!T.test(s)){let d=s.replace(ln,en);d.charAt(0)!=="-"&&(d="-"+d),e="data"+d}}c=E}return new c(o,e)}function en(l){return"-"+l.toLowerCase()}function on(l){return l.charAt(1).toUpperCase()}const xn={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Sn=B([j,F,_,V,J],"html"),wn=B([j,F,_,V,Q],"svg");function bn(l){const e=String(l||"").trim();return e?e.split(/[ \t\n\r\f]+/g):[]}function Cn(l){return l.join(" ").trim()}function Ln(l){const e=[],t=String(l||"");let o=t.indexOf(","),c=0,s=!1;for(;!s;){o===-1&&(o=t.length,s=!0);const d=t.slice(c,o).trim();(d||!s)&&e.push(d),c=o+1,o=t.indexOf(",",c)}return e}function Pn(l,e){const t=e||{};return(l[l.length-1]===""?[...l,""]:l).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}var O={exports:{}},A=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,tn=/\n/g,rn=/^\s*/,an=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,un=/^:\s*/,sn=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,cn=/^[;\s]*/,pn=/^\s+|\s+$/g,dn=`
2
+ `,I="/",U="*",y="",gn="comment",hn="declaration",mn=function(l,e){if(typeof l!="string")throw new TypeError("First argument must be a string");if(!l)return[];e=e||{};var t=1,o=1;function c(i){var a=i.match(tn);a&&(t+=a.length);var m=i.lastIndexOf(dn);o=~m?i.length-m:o+i.length}function s(){var i={line:t,column:o};return function(a){return a.position=new d(i),b(),a}}function d(i){this.start=i,this.end={line:t,column:o},this.source=e.source}d.prototype.content=l;function v(i){var a=new Error(e.source+":"+t+":"+o+": "+i);if(a.reason=i,a.filename=e.source,a.line=t,a.column=o,a.source=l,!e.silent)throw a}function f(i){var a=i.exec(l);if(a){var m=a[0];return c(m),l=l.slice(m.length),a}}function b(){f(rn)}function M(i){var a;for(i=i||[];a=D();)a!==!1&&i.push(a);return i}function D(){var i=s();if(!(I!=l.charAt(0)||U!=l.charAt(1))){for(var a=2;y!=l.charAt(a)&&(U!=l.charAt(a)||I!=l.charAt(a+1));)++a;if(a+=2,y===l.charAt(a-1))return v("End of comment missing");var m=l.slice(2,a-2);return o+=2,c(m),l=l.slice(a),o+=2,i({type:gn,comment:m})}}function K(){var i=s(),a=f(an);if(a){if(D(),!f(un))return v("property missing ':'");var m=f(sn),q=i({type:hn,property:z(a[0].replace(A,y)),value:m?z(m[0].replace(A,y)):y});return f(cn),q}}function Y(){var i=[];M(i);for(var a;a=K();)a!==!1&&(i.push(a),M(i));return i}return b(),Y()};function z(l){return l?l.replace(pn,y):y}var fn=mn;function W(l,e){var t=null;if(!l||typeof l!="string")return t;for(var o,c=fn(l),s=typeof e=="function",d,v,f=0,b=c.length;f<b;f++)o=c[f],d=o.property,v=o.value,s?e(d,v,o):v&&(t||(t={}),t[d]=v);return t}O.exports=W;O.exports.default=W;var vn=O.exports;const En=G(vn),On={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Mn(l){const e=l&&typeof l=="object"&&l.type==="text"?l.value||"":l;return typeof e=="string"&&e.replace(/[ \t\n\f\r]/g,"")===""}export{En as S,Pn as a,Cn as b,xn as c,Mn as d,Ln as e,kn as f,Sn as h,L as n,bn as p,wn as s,On as w};
@@ -1 +1 @@
1
- import{ax as ht,ay as vt,az as A,aH as Nt,aA as kt,aD as b,r as d,aB as St,aC as nt,aF as $,j as p,aG as mt,aj as Ft,aL as oe,bW as jt,bX as At,bp as Ot,aE as lt,bY as bt,bZ as le,bH as re,P as ft}from"./index-f5164e7a.js";let Y;function Ht(){if(Y)return Y;const t=document.createElement("div"),e=document.createElement("div");return e.style.width="10px",e.style.height="1px",t.appendChild(e),t.dir="rtl",t.style.fontSize="14px",t.style.width="4px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.overflow="scroll",document.body.appendChild(t),Y="reverse",t.scrollLeft>0?Y="default":(t.scrollLeft=1,t.scrollLeft===0&&(Y="negative")),document.body.removeChild(t),Y}function ne(t,e){const r=t.scrollLeft;if(e!=="rtl")return r;switch(Ht()){case"negative":return t.scrollWidth-t.clientWidth+r;case"reverse":return t.scrollWidth-t.clientWidth-r;default:return r}}function se(t){return vt("MuiTab",t)}const ae=ht("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),j=ae,ie=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],ce=t=>{const{classes:e,textColor:r,fullWidth:s,wrapped:n,icon:i,label:v,selected:h,disabled:u}=t,m={root:["root",i&&v&&"labelIcon",`textColor${kt(r)}`,s&&"fullWidth",n&&"wrapped",h&&"selected",u&&"disabled"],iconWrapper:["iconWrapper"]};return mt(m,se,e)},de=A(Nt,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.label&&r.icon&&e.labelIcon,e[`textColor${kt(r.textColor)}`],r.fullWidth&&e.fullWidth,r.wrapped&&e.wrapped]}})(({theme:t,ownerState:e})=>b({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:e.iconPosition==="top"||e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${j.iconWrapper}`]:b({},e.iconPosition==="top"&&{marginBottom:6},e.iconPosition==="bottom"&&{marginTop:6},e.iconPosition==="start"&&{marginRight:t.spacing(1)},e.iconPosition==="end"&&{marginLeft:t.spacing(1)})},e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${j.selected}`]:{opacity:1},[`&.${j.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${j.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${j.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${j.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${j.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),ue=d.forwardRef(function(e,r){const s=St({props:e,name:"MuiTab"}),{className:n,disabled:i=!1,disableFocusRipple:v=!1,fullWidth:h,icon:u,iconPosition:m="top",indicator:w,label:T,onChange:y,onClick:x,onFocus:O,selected:I,selectionFollowsFocus:g,textColor:H="inherit",value:C,wrapped:st=!1}=s,X=nt(s,ie),U=b({},s,{disabled:i,disableFocusRipple:v,selected:I,icon:!!u,iconPosition:m,label:!!T,fullWidth:h,textColor:H,wrapped:st}),D=ce(U),L=u&&T&&d.isValidElement(u)?d.cloneElement(u,{className:$(D.iconWrapper,u.props.className)}):u,Z=R=>{!I&&y&&y(R,C),x&&x(R)},_=R=>{g&&!I&&y&&y(R,C),O&&O(R)};return p.jsxs(de,b({focusRipple:!v,className:$(D.root,n),ref:r,role:"tab","aria-selected":I,disabled:i,onClick:Z,onFocus:_,ownerState:U,tabIndex:I?0:-1},X,{children:[m==="top"||m==="start"?p.jsxs(d.Fragment,{children:[L,T]}):p.jsxs(d.Fragment,{children:[T,L]}),w]}))}),be=ue,fe=Ft(p.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),pe=Ft(p.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function he(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function ve(t,e,r,s={},n=()=>{}){const{ease:i=he,duration:v=300}=s;let h=null;const u=e[t];let m=!1;const w=()=>{m=!0},T=y=>{if(m){n(new Error("Animation cancelled"));return}h===null&&(h=y);const x=Math.min(1,(y-h)/v);if(e[t]=i(x)*(r-u)+u,x>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(T)};return u===r?(n(new Error("Element already at target position")),w):(requestAnimationFrame(T),w)}const Se=["onChange"],me={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function xe(t){const{onChange:e}=t,r=nt(t,Se),s=d.useRef(),n=d.useRef(null),i=()=>{s.current=n.current.offsetHeight-n.current.clientHeight};return oe(()=>{const v=jt(()=>{const u=s.current;i(),u!==s.current&&e(s.current)}),h=At(n.current);return h.addEventListener("resize",v),()=>{v.clear(),h.removeEventListener("resize",v)}},[e]),d.useEffect(()=>{i(),e(s.current)},[e]),p.jsx("div",b({style:me,ref:n},r))}function ge(t){return vt("MuiTabScrollButton",t)}const ye=ht("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Ce=ye,Be=["className","slots","slotProps","direction","orientation","disabled"],we=t=>{const{classes:e,orientation:r,disabled:s}=t;return mt({root:["root",r,s&&"disabled"]},ge,e)},Te=A(Nt,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.orientation&&e[r.orientation]]}})(({ownerState:t})=>b({width:40,flexShrink:0,opacity:.8,[`&.${Ce.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),Ie=d.forwardRef(function(e,r){var s,n;const i=St({props:e,name:"MuiTabScrollButton"}),{className:v,slots:h={},slotProps:u={},direction:m}=i,w=nt(i,Be),y=Ot().direction==="rtl",x=b({isRtl:y},i),O=we(x),I=(s=h.StartScrollButtonIcon)!=null?s:fe,g=(n=h.EndScrollButtonIcon)!=null?n:pe,H=lt({elementType:I,externalSlotProps:u.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x}),C=lt({elementType:g,externalSlotProps:u.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x});return p.jsx(Te,b({component:"div",className:$(O.root,v),ref:r,role:null,ownerState:x,tabIndex:null},w,{children:m==="left"?p.jsx(I,b({},H)):p.jsx(g,b({},C))}))}),Ee=Ie;function Me(t){return vt("MuiTabs",t)}const Re=ht("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),pt=Re,ze=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Pt=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,Wt=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,ot=(t,e,r)=>{let s=!1,n=r(t,e);for(;n;){if(n===t.firstChild){if(s)return;s=!0}const i=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||i)n=r(t,n);else{n.focus();return}}},Pe=t=>{const{vertical:e,fixed:r,hideScrollbar:s,scrollableX:n,scrollableY:i,centered:v,scrollButtonsHideMobile:h,classes:u}=t;return mt({root:["root",e&&"vertical"],scroller:["scroller",r&&"fixed",s&&"hideScrollbar",n&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",v&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",h&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[s&&"hideScrollbar"]},Me,u)},We=A("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${pt.scrollButtons}`]:e.scrollButtons},{[`& .${pt.scrollButtons}`]:r.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,r.vertical&&e.vertical]}})(({ownerState:t,theme:e})=>b({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${pt.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}})),$e=A("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.scroller,r.fixed&&e.fixed,r.hideScrollbar&&e.hideScrollbar,r.scrollableX&&e.scrollableX,r.scrollableY&&e.scrollableY]}})(({ownerState:t})=>b({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Le=A("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.flexContainer,r.vertical&&e.flexContainerVertical,r.centered&&e.centered]}})(({ownerState:t})=>b({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})),Ne=A("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(({ownerState:t,theme:e})=>b({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},t.indicatorColor==="primary"&&{backgroundColor:(e.vars||e).palette.primary.main},t.indicatorColor==="secondary"&&{backgroundColor:(e.vars||e).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})),ke=A(xe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),$t={},Fe=d.forwardRef(function(e,r){const s=St({props:e,name:"MuiTabs"}),n=Ot(),i=n.direction==="rtl",{"aria-label":v,"aria-labelledby":h,action:u,centered:m=!1,children:w,className:T,component:y="div",allowScrollButtonsMobile:x=!1,indicatorColor:O="primary",onChange:I,orientation:g="horizontal",ScrollButtonComponent:H=Ee,scrollButtons:C="auto",selectionFollowsFocus:st,slots:X={},slotProps:U={},TabIndicatorProps:D={},TabScrollButtonProps:L={},textColor:Z="primary",value:_,variant:R="standard",visibleScrollbar:at=!1}=s,Xt=nt(s,ze),E=R==="scrollable",B=g==="vertical",K=B?"scrollTop":"scrollLeft",J=B?"top":"left",Q=B?"bottom":"right",it=B?"clientHeight":"clientWidth",V=B?"height":"width",N=b({},s,{component:y,allowScrollButtonsMobile:x,indicatorColor:O,orientation:g,vertical:B,scrollButtons:C,textColor:Z,variant:R,visibleScrollbar:at,fixed:!E,hideScrollbar:E&&!at,scrollableX:E&&!B,scrollableY:E&&B,centered:m&&!E,scrollButtonsHideMobile:!x}),P=Pe(N),Dt=lt({elementType:X.StartScrollButtonIcon,externalSlotProps:U.startScrollButtonIcon,ownerState:N}),_t=lt({elementType:X.EndScrollButtonIcon,externalSlotProps:U.endScrollButtonIcon,ownerState:N}),[xt,Yt]=d.useState(!1),[k,gt]=d.useState($t),[yt,Ut]=d.useState(!1),[Ct,Kt]=d.useState(!1),[Bt,Vt]=d.useState(!1),[wt,qt]=d.useState({overflow:"hidden",scrollbarWidth:0}),Tt=new Map,z=d.useRef(null),F=d.useRef(null),It=()=>{const o=z.current;let l;if(o){const a=o.getBoundingClientRect();l={clientWidth:o.clientWidth,scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollLeftNormalized:ne(o,n.direction),scrollWidth:o.scrollWidth,top:a.top,bottom:a.bottom,left:a.left,right:a.right}}let c;if(o&&_!==!1){const a=F.current.children;if(a.length>0){const f=a[Tt.get(_)];c=f?f.getBoundingClientRect():null}}return{tabsMeta:l,tabMeta:c}},q=bt(()=>{const{tabsMeta:o,tabMeta:l}=It();let c=0,a;if(B)a="top",l&&o&&(c=l.top-o.top+o.scrollTop);else if(a=i?"right":"left",l&&o){const S=i?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;c=(i?-1:1)*(l[a]-o[a]+S)}const f={[a]:c,[V]:l?l[V]:0};if(isNaN(k[a])||isNaN(k[V]))gt(f);else{const S=Math.abs(k[a]-f[a]),M=Math.abs(k[V]-f[V]);(S>=1||M>=1)&&gt(f)}}),ct=(o,{animation:l=!0}={})=>{l?ve(K,z.current,o,{duration:n.transitions.duration.standard}):z.current[K]=o},Et=o=>{let l=z.current[K];B?l+=o:(l+=o*(i?-1:1),l*=i&&Ht()==="reverse"?-1:1),ct(l)},Mt=()=>{const o=z.current[it];let l=0;const c=Array.from(F.current.children);for(let a=0;a<c.length;a+=1){const f=c[a];if(l+f[it]>o){a===0&&(l=o);break}l+=f[it]}return l},Gt=()=>{Et(-1*Mt())},Zt=()=>{Et(Mt())},Jt=d.useCallback(o=>{qt({overflow:null,scrollbarWidth:o})},[]),Qt=()=>{const o={};o.scrollbarSizeListener=E?p.jsx(ke,{onChange:Jt,className:$(P.scrollableX,P.hideScrollbar)}):null;const c=E&&(C==="auto"&&(yt||Ct)||C===!0);return o.scrollButtonStart=c?p.jsx(H,b({slots:{StartScrollButtonIcon:X.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Dt},orientation:g,direction:i?"right":"left",onClick:Gt,disabled:!yt},L,{className:$(P.scrollButtons,L.className)})):null,o.scrollButtonEnd=c?p.jsx(H,b({slots:{EndScrollButtonIcon:X.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:_t},orientation:g,direction:i?"left":"right",onClick:Zt,disabled:!Ct},L,{className:$(P.scrollButtons,L.className)})):null,o},Rt=bt(o=>{const{tabsMeta:l,tabMeta:c}=It();if(!(!c||!l)){if(c[J]<l[J]){const a=l[K]+(c[J]-l[J]);ct(a,{animation:o})}else if(c[Q]>l[Q]){const a=l[K]+(c[Q]-l[Q]);ct(a,{animation:o})}}}),tt=bt(()=>{E&&C!==!1&&Vt(!Bt)});d.useEffect(()=>{const o=jt(()=>{z.current&&q()});let l;const c=S=>{S.forEach(M=>{M.removedNodes.forEach(G=>{var W;(W=l)==null||W.unobserve(G)}),M.addedNodes.forEach(G=>{var W;(W=l)==null||W.observe(G)})}),o(),tt()},a=At(z.current);a.addEventListener("resize",o);let f;return typeof ResizeObserver<"u"&&(l=new ResizeObserver(o),Array.from(F.current.children).forEach(S=>{l.observe(S)})),typeof MutationObserver<"u"&&(f=new MutationObserver(c),f.observe(F.current,{childList:!0})),()=>{var S,M;o.clear(),a.removeEventListener("resize",o),(S=f)==null||S.disconnect(),(M=l)==null||M.disconnect()}},[q,tt]),d.useEffect(()=>{const o=Array.from(F.current.children),l=o.length;if(typeof IntersectionObserver<"u"&&l>0&&E&&C!==!1){const c=o[0],a=o[l-1],f={root:z.current,threshold:.99},S=ut=>{Ut(!ut[0].isIntersecting)},M=new IntersectionObserver(S,f);M.observe(c);const G=ut=>{Kt(!ut[0].isIntersecting)},W=new IntersectionObserver(G,f);return W.observe(a),()=>{M.disconnect(),W.disconnect()}}},[E,C,Bt,w==null?void 0:w.length]),d.useEffect(()=>{Yt(!0)},[]),d.useEffect(()=>{q()}),d.useEffect(()=>{Rt($t!==k)},[Rt,k]),d.useImperativeHandle(u,()=>({updateIndicator:q,updateScrollButtons:tt}),[q,tt]);const zt=p.jsx(Ne,b({},D,{className:$(P.indicator,D.className),ownerState:N,style:b({},k,D.style)}));let et=0;const te=d.Children.map(w,o=>{if(!d.isValidElement(o))return null;const l=o.props.value===void 0?et:o.props.value;Tt.set(l,et);const c=l===_;return et+=1,d.cloneElement(o,b({fullWidth:R==="fullWidth",indicator:c&&!xt&&zt,selected:c,selectionFollowsFocus:st,onChange:I,textColor:Z,value:l},et===1&&_===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),ee=o=>{const l=F.current,c=le(l).activeElement;if(c.getAttribute("role")!=="tab")return;let f=g==="horizontal"?"ArrowLeft":"ArrowUp",S=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&i&&(f="ArrowRight",S="ArrowLeft"),o.key){case f:o.preventDefault(),ot(l,c,Wt);break;case S:o.preventDefault(),ot(l,c,Pt);break;case"Home":o.preventDefault(),ot(l,null,Pt);break;case"End":o.preventDefault(),ot(l,null,Wt);break}},dt=Qt();return p.jsxs(We,b({className:$(P.root,T),ownerState:N,ref:r,as:y},Xt,{children:[dt.scrollButtonStart,dt.scrollbarSizeListener,p.jsxs($e,{className:P.scroller,ownerState:N,style:{overflow:wt.overflow,[B?`margin${i?"Left":"Right"}`:"marginBottom"]:at?void 0:-wt.scrollbarWidth},ref:z,children:[p.jsx(Le,{"aria-label":v,"aria-labelledby":h,"aria-orientation":g==="vertical"?"vertical":null,className:P.flexContainer,ownerState:N,onKeyDown:ee,ref:F,role:"tablist",children:te}),xt&&zt]}),dt.scrollButtonEnd]}))}),je=Fe,Lt="index",rt={tabs:`${Lt}-tabs`,tab:`${Lt}-tab`},Ae=re(je)(({theme:t})=>({[`& .${rt.tabs}`]:{},[`& .${rt.tab}`]:{fontSize:"0.875rem",[t.breakpoints.up("md")]:{fontSize:"1rem"}}}));function Oe({tabs:t,current:e,onChange:r,...s}){return p.jsx(Ae,{scrollButtons:"auto",variant:"scrollable",value:e,onChange:(n,i)=>r(i),indicatorColor:"primary",...s,className:[rt.tabs,s.className||""].join(" "),children:t.map(n=>p.jsx(be,{className:rt.tab,value:n.value,label:n.label,icon:n.icon||null},n.value))})}Oe.propTypes={tabs:ft.array.isRequired,current:ft.string.isRequired,onChange:ft.func.isRequired};export{pe as K,Oe as T,fe as a,je as b,be as c,pt as t};
1
+ import{az as ht,aA as vt,aB as j,bE as Lt,aC as kt,aF as b,r as d,aD as St,aE as nt,aH as $,j as p,aI as mt,al as Ft,bH as oe,c7 as At,c8 as jt,bm as Ot,aG as lt,c9 as bt,ca as le,bR as re,P as ft}from"./index-pPYPIBlE.js";let U;function Ht(){if(U)return U;const t=document.createElement("div"),e=document.createElement("div");return e.style.width="10px",e.style.height="1px",t.appendChild(e),t.dir="rtl",t.style.fontSize="14px",t.style.width="4px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.overflow="scroll",document.body.appendChild(t),U="reverse",t.scrollLeft>0?U="default":(t.scrollLeft=1,t.scrollLeft===0&&(U="negative")),document.body.removeChild(t),U}function ne(t,e){const r=t.scrollLeft;if(e!=="rtl")return r;switch(Ht()){case"negative":return t.scrollWidth-t.clientWidth+r;case"reverse":return t.scrollWidth-t.clientWidth-r;default:return r}}function se(t){return vt("MuiTab",t)}const ae=ht("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),A=ae,ie=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],ce=t=>{const{classes:e,textColor:r,fullWidth:s,wrapped:n,icon:i,label:v,selected:h,disabled:u}=t,m={root:["root",i&&v&&"labelIcon",`textColor${kt(r)}`,s&&"fullWidth",n&&"wrapped",h&&"selected",u&&"disabled"],iconWrapper:["iconWrapper"]};return mt(m,se,e)},de=j(Lt,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.label&&r.icon&&e.labelIcon,e[`textColor${kt(r.textColor)}`],r.fullWidth&&e.fullWidth,r.wrapped&&e.wrapped]}})(({theme:t,ownerState:e})=>b({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:e.iconPosition==="top"||e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${A.iconWrapper}`]:b({},e.iconPosition==="top"&&{marginBottom:6},e.iconPosition==="bottom"&&{marginTop:6},e.iconPosition==="start"&&{marginRight:t.spacing(1)},e.iconPosition==="end"&&{marginLeft:t.spacing(1)})},e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${A.selected}`]:{opacity:1},[`&.${A.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),ue=d.forwardRef(function(e,r){const s=St({props:e,name:"MuiTab"}),{className:n,disabled:i=!1,disableFocusRipple:v=!1,fullWidth:h,icon:u,iconPosition:m="top",indicator:w,label:T,onChange:y,onClick:x,onFocus:O,selected:I,selectionFollowsFocus:g,textColor:H="inherit",value:C,wrapped:st=!1}=s,D=nt(s,ie),Y=b({},s,{disabled:i,disableFocusRipple:v,selected:I,icon:!!u,iconPosition:m,label:!!T,fullWidth:h,textColor:H,wrapped:st}),X=ce(Y),N=u&&T&&d.isValidElement(u)?d.cloneElement(u,{className:$(X.iconWrapper,u.props.className)}):u,J=M=>{!I&&y&&y(M,C),x&&x(M)},_=M=>{g&&!I&&y&&y(M,C),O&&O(M)};return p.jsxs(de,b({focusRipple:!v,className:$(X.root,n),ref:r,role:"tab","aria-selected":I,disabled:i,onClick:J,onFocus:_,ownerState:Y,tabIndex:I?0:-1},D,{children:[m==="top"||m==="start"?p.jsxs(d.Fragment,{children:[N,T]}):p.jsxs(d.Fragment,{children:[T,N]}),w]}))}),be=ue,fe=Ft(p.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),pe=Ft(p.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function he(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function ve(t,e,r,s={},n=()=>{}){const{ease:i=he,duration:v=300}=s;let h=null;const u=e[t];let m=!1;const w=()=>{m=!0},T=y=>{if(m){n(new Error("Animation cancelled"));return}h===null&&(h=y);const x=Math.min(1,(y-h)/v);if(e[t]=i(x)*(r-u)+u,x>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(T)};return u===r?(n(new Error("Element already at target position")),w):(requestAnimationFrame(T),w)}const Se=["onChange"],me={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function xe(t){const{onChange:e}=t,r=nt(t,Se),s=d.useRef(),n=d.useRef(null),i=()=>{s.current=n.current.offsetHeight-n.current.clientHeight};return oe(()=>{const v=At(()=>{const u=s.current;i(),u!==s.current&&e(s.current)}),h=jt(n.current);return h.addEventListener("resize",v),()=>{v.clear(),h.removeEventListener("resize",v)}},[e]),d.useEffect(()=>{i(),e(s.current)},[e]),p.jsx("div",b({style:me,ref:n},r))}function ge(t){return vt("MuiTabScrollButton",t)}const ye=ht("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Ce=ye,Be=["className","slots","slotProps","direction","orientation","disabled"],we=t=>{const{classes:e,orientation:r,disabled:s}=t;return mt({root:["root",r,s&&"disabled"]},ge,e)},Te=j(Lt,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.orientation&&e[r.orientation]]}})(({ownerState:t})=>b({width:40,flexShrink:0,opacity:.8,[`&.${Ce.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),Ie=d.forwardRef(function(e,r){var s,n;const i=St({props:e,name:"MuiTabScrollButton"}),{className:v,slots:h={},slotProps:u={},direction:m}=i,w=nt(i,Be),y=Ot().direction==="rtl",x=b({isRtl:y},i),O=we(x),I=(s=h.StartScrollButtonIcon)!=null?s:fe,g=(n=h.EndScrollButtonIcon)!=null?n:pe,H=lt({elementType:I,externalSlotProps:u.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x}),C=lt({elementType:g,externalSlotProps:u.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x});return p.jsx(Te,b({component:"div",className:$(O.root,v),ref:r,role:null,ownerState:x,tabIndex:null},w,{children:m==="left"?p.jsx(I,b({},H)):p.jsx(g,b({},C))}))}),Ee=Ie;function Re(t){return vt("MuiTabs",t)}const Me=ht("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),pt=Me,ze=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Pt=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,Wt=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,ot=(t,e,r)=>{let s=!1,n=r(t,e);for(;n;){if(n===t.firstChild){if(s)return;s=!0}const i=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||i)n=r(t,n);else{n.focus();return}}},Pe=t=>{const{vertical:e,fixed:r,hideScrollbar:s,scrollableX:n,scrollableY:i,centered:v,scrollButtonsHideMobile:h,classes:u}=t;return mt({root:["root",e&&"vertical"],scroller:["scroller",r&&"fixed",s&&"hideScrollbar",n&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",v&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",h&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[s&&"hideScrollbar"]},Re,u)},We=j("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${pt.scrollButtons}`]:e.scrollButtons},{[`& .${pt.scrollButtons}`]:r.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,r.vertical&&e.vertical]}})(({ownerState:t,theme:e})=>b({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${pt.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}})),$e=j("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.scroller,r.fixed&&e.fixed,r.hideScrollbar&&e.hideScrollbar,r.scrollableX&&e.scrollableX,r.scrollableY&&e.scrollableY]}})(({ownerState:t})=>b({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Ne=j("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.flexContainer,r.vertical&&e.flexContainerVertical,r.centered&&e.centered]}})(({ownerState:t})=>b({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})),Le=j("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(({ownerState:t,theme:e})=>b({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},t.indicatorColor==="primary"&&{backgroundColor:(e.vars||e).palette.primary.main},t.indicatorColor==="secondary"&&{backgroundColor:(e.vars||e).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})),ke=j(xe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),$t={},Fe=d.forwardRef(function(e,r){const s=St({props:e,name:"MuiTabs"}),n=Ot(),i=n.direction==="rtl",{"aria-label":v,"aria-labelledby":h,action:u,centered:m=!1,children:w,className:T,component:y="div",allowScrollButtonsMobile:x=!1,indicatorColor:O="primary",onChange:I,orientation:g="horizontal",ScrollButtonComponent:H=Ee,scrollButtons:C="auto",selectionFollowsFocus:st,slots:D={},slotProps:Y={},TabIndicatorProps:X={},TabScrollButtonProps:N={},textColor:J="primary",value:_,variant:M="standard",visibleScrollbar:at=!1}=s,Dt=nt(s,ze),E=M==="scrollable",B=g==="vertical",K=B?"scrollTop":"scrollLeft",Q=B?"top":"left",Z=B?"bottom":"right",it=B?"clientHeight":"clientWidth",V=B?"height":"width",L=b({},s,{component:y,allowScrollButtonsMobile:x,indicatorColor:O,orientation:g,vertical:B,scrollButtons:C,textColor:J,variant:M,visibleScrollbar:at,fixed:!E,hideScrollbar:E&&!at,scrollableX:E&&!B,scrollableY:E&&B,centered:m&&!E,scrollButtonsHideMobile:!x}),P=Pe(L),Xt=lt({elementType:D.StartScrollButtonIcon,externalSlotProps:Y.startScrollButtonIcon,ownerState:L}),_t=lt({elementType:D.EndScrollButtonIcon,externalSlotProps:Y.endScrollButtonIcon,ownerState:L}),[xt,Ut]=d.useState(!1),[k,gt]=d.useState($t),[yt,Yt]=d.useState(!1),[Ct,Kt]=d.useState(!1),[Bt,Vt]=d.useState(!1),[wt,qt]=d.useState({overflow:"hidden",scrollbarWidth:0}),Tt=new Map,z=d.useRef(null),F=d.useRef(null),It=()=>{const o=z.current;let l;if(o){const a=o.getBoundingClientRect();l={clientWidth:o.clientWidth,scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollLeftNormalized:ne(o,n.direction),scrollWidth:o.scrollWidth,top:a.top,bottom:a.bottom,left:a.left,right:a.right}}let c;if(o&&_!==!1){const a=F.current.children;if(a.length>0){const f=a[Tt.get(_)];c=f?f.getBoundingClientRect():null}}return{tabsMeta:l,tabMeta:c}},q=bt(()=>{const{tabsMeta:o,tabMeta:l}=It();let c=0,a;if(B)a="top",l&&o&&(c=l.top-o.top+o.scrollTop);else if(a=i?"right":"left",l&&o){const S=i?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;c=(i?-1:1)*(l[a]-o[a]+S)}const f={[a]:c,[V]:l?l[V]:0};if(isNaN(k[a])||isNaN(k[V]))gt(f);else{const S=Math.abs(k[a]-f[a]),R=Math.abs(k[V]-f[V]);(S>=1||R>=1)&&gt(f)}}),ct=(o,{animation:l=!0}={})=>{l?ve(K,z.current,o,{duration:n.transitions.duration.standard}):z.current[K]=o},Et=o=>{let l=z.current[K];B?l+=o:(l+=o*(i?-1:1),l*=i&&Ht()==="reverse"?-1:1),ct(l)},Rt=()=>{const o=z.current[it];let l=0;const c=Array.from(F.current.children);for(let a=0;a<c.length;a+=1){const f=c[a];if(l+f[it]>o){a===0&&(l=o);break}l+=f[it]}return l},Gt=()=>{Et(-1*Rt())},Jt=()=>{Et(Rt())},Qt=d.useCallback(o=>{qt({overflow:null,scrollbarWidth:o})},[]),Zt=()=>{const o={};o.scrollbarSizeListener=E?p.jsx(ke,{onChange:Qt,className:$(P.scrollableX,P.hideScrollbar)}):null;const c=E&&(C==="auto"&&(yt||Ct)||C===!0);return o.scrollButtonStart=c?p.jsx(H,b({slots:{StartScrollButtonIcon:D.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Xt},orientation:g,direction:i?"right":"left",onClick:Gt,disabled:!yt},N,{className:$(P.scrollButtons,N.className)})):null,o.scrollButtonEnd=c?p.jsx(H,b({slots:{EndScrollButtonIcon:D.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:_t},orientation:g,direction:i?"left":"right",onClick:Jt,disabled:!Ct},N,{className:$(P.scrollButtons,N.className)})):null,o},Mt=bt(o=>{const{tabsMeta:l,tabMeta:c}=It();if(!(!c||!l)){if(c[Q]<l[Q]){const a=l[K]+(c[Q]-l[Q]);ct(a,{animation:o})}else if(c[Z]>l[Z]){const a=l[K]+(c[Z]-l[Z]);ct(a,{animation:o})}}}),tt=bt(()=>{E&&C!==!1&&Vt(!Bt)});d.useEffect(()=>{const o=At(()=>{z.current&&q()});let l;const c=S=>{S.forEach(R=>{R.removedNodes.forEach(G=>{var W;(W=l)==null||W.unobserve(G)}),R.addedNodes.forEach(G=>{var W;(W=l)==null||W.observe(G)})}),o(),tt()},a=jt(z.current);a.addEventListener("resize",o);let f;return typeof ResizeObserver<"u"&&(l=new ResizeObserver(o),Array.from(F.current.children).forEach(S=>{l.observe(S)})),typeof MutationObserver<"u"&&(f=new MutationObserver(c),f.observe(F.current,{childList:!0})),()=>{var S,R;o.clear(),a.removeEventListener("resize",o),(S=f)==null||S.disconnect(),(R=l)==null||R.disconnect()}},[q,tt]),d.useEffect(()=>{const o=Array.from(F.current.children),l=o.length;if(typeof IntersectionObserver<"u"&&l>0&&E&&C!==!1){const c=o[0],a=o[l-1],f={root:z.current,threshold:.99},S=ut=>{Yt(!ut[0].isIntersecting)},R=new IntersectionObserver(S,f);R.observe(c);const G=ut=>{Kt(!ut[0].isIntersecting)},W=new IntersectionObserver(G,f);return W.observe(a),()=>{R.disconnect(),W.disconnect()}}},[E,C,Bt,w==null?void 0:w.length]),d.useEffect(()=>{Ut(!0)},[]),d.useEffect(()=>{q()}),d.useEffect(()=>{Mt($t!==k)},[Mt,k]),d.useImperativeHandle(u,()=>({updateIndicator:q,updateScrollButtons:tt}),[q,tt]);const zt=p.jsx(Le,b({},X,{className:$(P.indicator,X.className),ownerState:L,style:b({},k,X.style)}));let et=0;const te=d.Children.map(w,o=>{if(!d.isValidElement(o))return null;const l=o.props.value===void 0?et:o.props.value;Tt.set(l,et);const c=l===_;return et+=1,d.cloneElement(o,b({fullWidth:M==="fullWidth",indicator:c&&!xt&&zt,selected:c,selectionFollowsFocus:st,onChange:I,textColor:J,value:l},et===1&&_===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),ee=o=>{const l=F.current,c=le(l).activeElement;if(c.getAttribute("role")!=="tab")return;let f=g==="horizontal"?"ArrowLeft":"ArrowUp",S=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&i&&(f="ArrowRight",S="ArrowLeft"),o.key){case f:o.preventDefault(),ot(l,c,Wt);break;case S:o.preventDefault(),ot(l,c,Pt);break;case"Home":o.preventDefault(),ot(l,null,Pt);break;case"End":o.preventDefault(),ot(l,null,Wt);break}},dt=Zt();return p.jsxs(We,b({className:$(P.root,T),ownerState:L,ref:r,as:y},Dt,{children:[dt.scrollButtonStart,dt.scrollbarSizeListener,p.jsxs($e,{className:P.scroller,ownerState:L,style:{overflow:wt.overflow,[B?`margin${i?"Left":"Right"}`:"marginBottom"]:at?void 0:-wt.scrollbarWidth},ref:z,children:[p.jsx(Ne,{"aria-label":v,"aria-labelledby":h,"aria-orientation":g==="vertical"?"vertical":null,className:P.flexContainer,ownerState:L,onKeyDown:ee,ref:F,role:"tablist",children:te}),xt&&zt]}),dt.scrollButtonEnd]}))}),Ae=Fe,Nt="index",rt={tabs:`${Nt}-tabs`,tab:`${Nt}-tab`},je=re(Ae)(({theme:t})=>({[`& .${rt.tabs}`]:{},[`& .${rt.tab}`]:{fontSize:"0.875rem",[t.breakpoints.up("md")]:{fontSize:"1rem"}}}));function Oe({tabs:t,current:e,onChange:r,...s}){return p.jsx(je,{scrollButtons:"auto",variant:"scrollable",value:e,onChange:(n,i)=>r(i),indicatorColor:"primary",...s,className:[rt.tabs,s.className||""].join(" "),children:t.map(n=>p.jsx(be,{className:rt.tab,value:n.value,label:n.label,icon:n.icon||null},n.value))})}Oe.propTypes={tabs:ft.array.isRequired,current:ft.string.isRequired,onChange:ft.func.isRequired};export{pe as K,Oe as T,fe as a,Ae as b,be as c,pt as t};
@@ -1 +1 @@
1
- import{P as o,r as x,j as e,B as u,bn as K,cT as v,cU as B,V as W,av as R,S as M,bR as U,y as $}from"./index-f5164e7a.js";import{d as A}from"./EditIcon-b1d73915.js";import{d as G}from"./Done-e501bd33.js";import{C as H}from"./Google-91a8c0fe.js";import{T as Y}from"./TextField-fedebf1f.js";import{R as J,F as Q,L as X}from"./logo-uploader-f1f683e3.js";const S={description:o.string,editing:o.bool,onChange:o.func,required:o.bool,value:o.any,componentProps:o.object,render:o.func,renderFormItem:o.func};function V({editing:n,value:r,onChange:s}){const[a,l]=x.useState(!1),c=x.useRef(),d=x.useRef(r);x.useEffect(()=>{let p=null;return n&&(p=setTimeout(()=>{l(!0)},50)),()=>{clearTimeout(p)}},[n]);const y=p=>{d.current=p,s(p)},g=()=>{l(!1),s(d.current)},b=e.jsx(u,{className:"form-item-input slot",px:1,children:e.jsxs(u,{display:"flex",alignItems:"center",children:[r,r!=="auto"&&e.jsx("div",{style:{marginLeft:4,backgroundColor:r,width:"1em",height:"1em",borderRadius:"0.2em"}})]})}),i=e.jsxs(u,{display:"flex",flexGrow:1,alignItems:"center",height:"40px",onKeyDown:g,children:[e.jsx(u,{display:"flex",alignItems:"center",onClick:()=>l(!0),children:e.jsx("div",{ref:c,style:{flexShrink:0,marginLeft:"8px",backgroundColor:r,width:"32px",height:"32px",boxSizing:"border-box",borderRadius:"8px",border:"1px solid #eee",cursor:r==="auto"?"default":"pointer"}})}),e.jsx(K,{open:a,anchorEl:c.current,onClose:()=>l(!1),anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:e.jsx(H,{color:r,onChange:p=>y(p.hex)})})]});return n?i:b}V.propTypes=S;function _({editing:n,description:r,value:s,onChange:a,componentProps:l,...c}){const{placeholder:d}=l,y=x.useRef(s),g=i=>{i.key==="Enter"&&a(y.current,"confirm")},b=i=>{y.current=i,a(i)};return n?e.jsx(Y,{style:{flex:1},fullWidth:!0,value:s,onChange:i=>{i.persist(),b(i.target.value)},autoFocus:!0,size:"small",variant:"outlined",placeholder:r||d,onKeyDown:g,...c}):e.jsx(u,{px:1,className:"form-item-input slot",children:s})}_.propTypes=S;_.defaultProps={componentProps:{}};function F({editing:n,value:r,onChange:s,componentProps:a,...l}){const{blocklet:c}=a,d=r==="auto"?v.getPassportColorFromDid(c.appDid):r;return e.jsxs(u,{display:"flex",alignItems:"center",children:[e.jsx("div",{style:{width:96,marginRight:12},dangerouslySetInnerHTML:{__html:B({title:"Owner",issuer:W(c),issuerDid:c.appDid,ownerName:"Your Name",ownerDid:c.appDid,preferredColor:r||"auto"})}}),e.jsx(V,{...l,editing:n,value:n?d:r,onChange:s,componentProps:a})]})}F.propTypes={...S,componentProps:o.shape({blocklet:o.object.isRequired}).isRequired};F.defaultProps={};const Z={input:_,color:V,passport:F,uploader:n=>e.jsx(X,{...n.componentProps})};function ee(n,{editing:r=!1}){const{componentType:s="input",render:a,renderFormItem:l}=n;return r&&l?l:!r&&a?a:Z[s==null?void 0:s.toLowerCase()]}function D({schema:n,loading:r,value:s,defaultValue:a,onChange:l,style:c,disabled:d}){const y=Object.prototype.toString.call(s)==="[object Object]",[g,b]=x.useState(null),[i,p]=x.useState(y?s:a),P=x.useRef();function I(t,m,h){const{key:f,secure:C}=t,k=i[f]!==m,j={...i,[f]:m};k&&p(j),l({[f]:m},{allValues:j,action:h,currentItem:t}),h==="confirm"&&C&&p({...i,[f]:"__encrypted__"}),["confirm","cancel"].includes(h)?T(null):T(t)}function T(t){if(t){P.current=i[t.key],b(t);return}P.current=null,b(null)}function E(t,{editing:m=!1}){const{key:h}=t,f=y?s[h]:i[h];return f==="__encrypted__"?m?"":"******":f}return e.jsx(re,{className:"form",style:c,children:n==null?void 0:n.map(t=>{const{key:m,description:h,required:f,solo:C=!1,hidden:N=!1,componentProps:k={}}=t;if(N)return null;const j=!!(g&&m===g.key),w=E(t,{editing:j}),z=ee(t,{editing:j}),q={inputProps:{"data-cy":"schema-form-item-component"},key:m,description:h,editing:j,value:w,onChange:(L,O="change")=>I(t,L,O),componentProps:k};return e.jsxs(u,{className:"form-item",children:[!C&&e.jsxs(u,{className:"form-item-label",style:{color:f&&!w?"#ff0000":"#333"},children:[h,f&&e.jsx(J,{})]}),e.jsxs(u,{className:"form-item-body",children:[e.jsx(u,{className:"form-item-input",sx:{textAlign:C?"center":"left"},children:e.jsx(z,{...q})}),!C&&e.jsx(u,{className:"form-item-action",children:j?e.jsxs(e.Fragment,{children:[e.jsx(R,{"data-cy":"schema-form-item-confirm",onClick:()=>{I(t,w,"confirm")},disabled:d||r,size:"large",children:r?e.jsx(M,{size:24}):e.jsx(G,{})}),e.jsx(R,{"data-cy":"schema-form-item-cancel",onClick:()=>{I(t,P.current,"cancel")},disabled:d||r,size:"large",children:e.jsx(U,{})})]}):e.jsx(R,{"data-cy":"schema-form-item-edit",onClick:()=>{I(t,i[m],"edit")},disabled:d||g,size:"large",children:e.jsx(A,{})})})]})]},m)})})}D.propTypes={schema:o.array.isRequired,loading:o.bool,onChange:o.func.isRequired,value:o.object,defaultValue:o.object,style:o.object,disabled:o.bool};D.defaultProps={loading:!1,value:void 0,defaultValue:{},style:{},disabled:!1};const re=$(Q)``;export{D as S};
1
+ import{P as o,r as h,j as e,B as u,bk as K,d4 as B,d5 as W,X as v,ax as R,S as M,c0 as $,y as A}from"./index-pPYPIBlE.js";import{d as G}from"./EditIcon-yhAmfbJG.js";import{d as H}from"./Done-lojMP8XA.js";import{C as U}from"./Google-VdMmJxwT.js";import{T as X}from"./TextField-5mqig0lI.js";import{R as Y,F as J,L as Q}from"./logo-uploader-FMfBEamH.js";const S={description:o.string,editing:o.bool,onChange:o.func,required:o.bool,value:o.any,componentProps:o.object,render:o.func,renderFormItem:o.func};function V({editing:n,value:r,onChange:s}){const[a,l]=h.useState(!1),c=h.useRef(),d=h.useRef(r);h.useEffect(()=>{let p=null;return n&&(p=setTimeout(()=>{l(!0)},50)),()=>{clearTimeout(p)}},[n]);const y=p=>{d.current=p,s(p)},g=()=>{l(!1),s(d.current)},b=e.jsx(u,{className:"form-item-input slot",px:1,children:e.jsxs(u,{display:"flex",alignItems:"center",children:[r,r!=="auto"&&e.jsx("div",{style:{marginLeft:4,backgroundColor:r,width:"1em",height:"1em",borderRadius:"0.2em"}})]})}),i=e.jsxs(u,{display:"flex",flexGrow:1,alignItems:"center",height:"40px",onKeyDown:g,children:[e.jsx(u,{display:"flex",alignItems:"center",onClick:()=>l(!0),children:e.jsx("div",{ref:c,style:{flexShrink:0,marginLeft:"8px",backgroundColor:r,width:"32px",height:"32px",boxSizing:"border-box",borderRadius:"8px",border:"1px solid #eee",cursor:r==="auto"?"default":"pointer"}})}),e.jsx(K,{open:a,anchorEl:c.current,onClose:()=>l(!1),anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:e.jsx(U,{color:r,onChange:p=>y(p.hex)})})]});return n?i:b}V.propTypes=S;function _({editing:n,description:r,value:s,onChange:a,componentProps:l,...c}){const{placeholder:d}=l,y=h.useRef(s),g=i=>{i.key==="Enter"&&a(y.current,"confirm")},b=i=>{y.current=i,a(i)};return n?e.jsx(X,{style:{flex:1},fullWidth:!0,value:s,onChange:i=>{i.persist(),b(i.target.value)},autoFocus:!0,size:"small",variant:"outlined",placeholder:r||d,onKeyDown:g,...c}):e.jsx(u,{px:1,className:"form-item-input slot",children:s})}_.propTypes=S;_.defaultProps={componentProps:{}};function F({editing:n,value:r,onChange:s,componentProps:a,...l}){const{blocklet:c}=a,d=r==="auto"?B.getPassportColorFromDid(c.appDid):r;return e.jsxs(u,{display:"flex",alignItems:"center",children:[e.jsx("div",{style:{width:96,marginRight:12},dangerouslySetInnerHTML:{__html:W({title:"Owner",issuer:v(c),issuerDid:c.appDid,ownerName:"Your Name",ownerDid:c.appDid,preferredColor:r||"auto"})}}),e.jsx(V,{...l,editing:n,value:n?d:r,onChange:s,componentProps:a})]})}F.propTypes={...S,componentProps:o.shape({blocklet:o.object.isRequired}).isRequired};F.defaultProps={};const Z={input:_,color:V,passport:F,uploader:n=>e.jsx(Q,{...n.componentProps})};function ee(n,{editing:r=!1}){const{componentType:s="input",render:a,renderFormItem:l}=n;return r&&l?l:!r&&a?a:Z[s==null?void 0:s.toLowerCase()]}function D({schema:n,loading:r,value:s,defaultValue:a,onChange:l,style:c,disabled:d}){const y=Object.prototype.toString.call(s)==="[object Object]",[g,b]=h.useState(null),[i,p]=h.useState(y?s:a),P=h.useRef();function I(t,m,x){const{key:f,secure:C}=t,k=i[f]!==m,j={...i,[f]:m};k&&p(j),l({[f]:m},{allValues:j,action:x,currentItem:t}),x==="confirm"&&C&&p({...i,[f]:"__encrypted__"}),["confirm","cancel"].includes(x)?N(null):N(t)}function N(t){if(t){P.current=i[t.key],b(t);return}P.current=null,b(null)}function E(t,{editing:m=!1}){const{key:x}=t,f=y?s[x]:i[x];return f==="__encrypted__"?m?"":"******":f}return e.jsx(re,{className:"form",style:c,children:n==null?void 0:n.map(t=>{const{key:m,description:x,required:f,solo:C=!1,hidden:T=!1,componentProps:k={}}=t;if(T)return null;const j=!!(g&&m===g.key),w=E(t,{editing:j}),z=ee(t,{editing:j}),q={inputProps:{"data-cy":"schema-form-item-component"},key:m,description:x,editing:j,value:w,onChange:(L,O="change")=>I(t,L,O),componentProps:k};return e.jsxs(u,{className:"form-item",children:[!C&&e.jsxs(u,{className:"form-item-label",style:{color:f&&!w?"#ff0000":"#333"},children:[x,f&&e.jsx(Y,{})]}),e.jsxs(u,{className:"form-item-body",children:[e.jsx(u,{className:"form-item-input",sx:{textAlign:C?"center":"left"},children:e.jsx(z,{...q})}),!C&&e.jsx(u,{className:"form-item-action",children:j?e.jsxs(e.Fragment,{children:[e.jsx(R,{"data-cy":"schema-form-item-confirm",onClick:()=>{I(t,w,"confirm")},disabled:d||r,size:"large",children:r?e.jsx(M,{size:24}):e.jsx(H,{})}),e.jsx(R,{"data-cy":"schema-form-item-cancel",onClick:()=>{I(t,P.current,"cancel")},disabled:d||r,size:"large",children:e.jsx($,{})})]}):e.jsx(R,{"data-cy":"schema-form-item-edit",onClick:()=>{I(t,i[m],"edit")},disabled:d||g,size:"large",children:e.jsx(G,{})})})]})]},m)})})}D.propTypes={schema:o.array.isRequired,loading:o.bool,onChange:o.func.isRequired,value:o.object,defaultValue:o.object,style:o.object,disabled:o.bool};D.defaultProps={loading:!1,value:void 0,defaultValue:{},style:{},disabled:!1};const re=A(J)``;export{D as S};
@@ -1 +1 @@
1
- import{aW as y}from"./index-f5164e7a.js";var c={};function u(e,i){typeof i=="boolean"&&(i={forever:i}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=i||{},this._maxRetryTime=i&&i.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}var T=u;u.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};u.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};u.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var i=new Date().getTime();if(e&&i-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var t=this._timeouts.shift();if(t===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),t=this._cachedTimeouts.slice(-1);else return!1;var r=this;return this._timer=setTimeout(function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)},t),this._options.unref&&this._timer.unref(),!0};u.prototype.attempt=function(e,i){this._fn=e,i&&(i.timeout&&(this._operationTimeout=i.timeout),i.cb&&(this._operationTimeoutCb=i.cb));var t=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){t._operationTimeoutCb()},t._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};u.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};u.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};u.prototype.start=u.prototype.try;u.prototype.errors=function(){return this._errors};u.prototype.attempts=function(){return this._attempts};u.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},i=null,t=0,r=0;r<this._errors.length;r++){var a=this._errors[r],o=a.message,n=(e[o]||0)+1;e[o]=n,n>=t&&(i=a,t=n)}return i};(function(e){var i=T;e.operation=function(t){var r=e.timeouts(t);return new i(r,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},e.timeouts=function(t){if(t instanceof Array)return[].concat(t);var r={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var a in t)r[a]=t[a];if(r.minTimeout>r.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var o=[],n=0;n<r.retries;n++)o.push(this.createTimeout(n,r));return t&&t.forever&&!o.length&&o.push(this.createTimeout(n,r)),o.sort(function(s,m){return s-m}),o},e.createTimeout=function(t,r){var a=r.randomize?Math.random()+1:1,o=Math.round(a*Math.max(r.minTimeout,1)*Math.pow(r.factor,t));return o=Math.min(o,r.maxTimeout),o},e.wrap=function(t,r,a){if(r instanceof Array&&(a=r,r=null),!a){a=[];for(var o in t)typeof t[o]=="function"&&a.push(o)}for(var n=0;n<a.length;n++){var s=a[n],m=t[s];t[s]=(function(p){var f=e.operation(r),h=Array.prototype.slice.call(arguments,1),l=h.pop();h.push(function(_){f.retry(_)||(_&&(arguments[0]=f.mainError()),l.apply(this,arguments))}),f.attempt(function(){p.apply(t,h)})}).bind(t,m),t[s].options=r}}})(c);var v=c;const R=y(v);export{R as a,v as r};
1
+ import{aT as T}from"./index-pPYPIBlE.js";var c={};function u(e,i){typeof i=="boolean"&&(i={forever:i}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=i||{},this._maxRetryTime=i&&i.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}var y=u;u.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};u.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};u.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var i=new Date().getTime();if(e&&i-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var t=this._timeouts.shift();if(t===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),t=this._cachedTimeouts.slice(-1);else return!1;var r=this;return this._timer=setTimeout(function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)},t),this._options.unref&&this._timer.unref(),!0};u.prototype.attempt=function(e,i){this._fn=e,i&&(i.timeout&&(this._operationTimeout=i.timeout),i.cb&&(this._operationTimeoutCb=i.cb));var t=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){t._operationTimeoutCb()},t._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};u.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};u.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};u.prototype.start=u.prototype.try;u.prototype.errors=function(){return this._errors};u.prototype.attempts=function(){return this._attempts};u.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},i=null,t=0,r=0;r<this._errors.length;r++){var a=this._errors[r],o=a.message,n=(e[o]||0)+1;e[o]=n,n>=t&&(i=a,t=n)}return i};(function(e){var i=y;e.operation=function(t){var r=e.timeouts(t);return new i(r,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},e.timeouts=function(t){if(t instanceof Array)return[].concat(t);var r={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var a in t)r[a]=t[a];if(r.minTimeout>r.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var o=[],n=0;n<r.retries;n++)o.push(this.createTimeout(n,r));return t&&t.forever&&!o.length&&o.push(this.createTimeout(n,r)),o.sort(function(s,m){return s-m}),o},e.createTimeout=function(t,r){var a=r.randomize?Math.random()+1:1,o=Math.round(a*Math.max(r.minTimeout,1)*Math.pow(r.factor,t));return o=Math.min(o,r.maxTimeout),o},e.wrap=function(t,r,a){if(r instanceof Array&&(a=r,r=null),!a){a=[];for(var o in t)typeof t[o]=="function"&&a.push(o)}for(var n=0;n<a.length;n++){var s=a[n],m=t[s];t[s]=(function(p){var f=e.operation(r),h=Array.prototype.slice.call(arguments,1),l=h.pop();h.push(function(_){f.retry(_)||(_&&(arguments[0]=f.mainError()),l.apply(this,arguments))}),f.attempt(function(){p.apply(t,h)})}).bind(t,m),t[s].options=r}}})(c);var v=c;const R=T(v);export{R as a,v as r};