@acedatacloud/nexior 3.70.0 → 3.72.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (399) hide show
  1. package/dist/_redirects +5 -0
  2. package/dist/assets/Auth-BdkuzIHM.js +1 -0
  3. package/dist/assets/{BotPlaceholder-wxOBe7fb.js → BotPlaceholder-DwjA2X5o.js} +1 -1
  4. package/dist/assets/{Callback-DzV7eqG1.js → Callback-CVuzeeJC.js} +1 -1
  5. package/dist/assets/{Console-Csax2Y59.js → Console-BBzqNjLR.js} +1 -1
  6. package/dist/assets/Console-CMyBoRi3.css +1 -0
  7. package/dist/assets/{Consumption-BlgDnSfV.js → Consumption-ClDpG-vO.js} +1 -1
  8. package/dist/assets/Conversation-BXWsR8yK.css +1 -0
  9. package/dist/assets/{Conversation-D3TUFJGX.js → Conversation-CDQp3dwl.js} +11 -11
  10. package/dist/assets/{CopyToClipboard-DwmtBnyv.js → CopyToClipboard-ukgGSz9P.js} +1 -1
  11. package/dist/assets/Detail-C56tmkrN.js +2 -0
  12. package/dist/assets/{Detail-yqZdJR17.css → Detail-CtZKrEZO.css} +1 -1
  13. package/dist/assets/{EditArray-Co5Vn-A-.js → EditArray-CQPRQB13.js} +1 -1
  14. package/dist/assets/{Extra-DnRcRylZ.js → Extra-DHIyvRP3.js} +1 -1
  15. package/dist/assets/{FilePreview-B_pda4h3.js → FilePreview-C5lhvsQ_.js} +1 -1
  16. package/dist/assets/{History-PZpJ7Ui9.js → History-BP2HZXDb.js} +1 -1
  17. package/dist/assets/IconPark.vue_vue_type_script_setup_true_lang-cuGZPyOZ.js +1 -0
  18. package/dist/assets/{ImagePreview-yWy9cTRi.js → ImagePreview-Cb8JiRgS.js} +1 -1
  19. package/dist/assets/ImageWrapper-BDH0aMfC.css +1 -0
  20. package/dist/assets/{ImageWrapper-Ce8hQunY.js → ImageWrapper-u3FDGD1p.js} +1 -1
  21. package/dist/assets/Index-3tL_3lJG.css +1 -0
  22. package/dist/assets/Index-6KbY8XR0.js +1 -0
  23. package/dist/assets/Index-AjFOesRA.css +1 -0
  24. package/dist/assets/Index-B20wLHHS.css +1 -0
  25. package/dist/assets/{Index-CQyK7u3D.js → Index-B3hOKjnj.js} +1 -1
  26. package/dist/assets/Index-B57yWxkX.js +1 -0
  27. package/dist/assets/Index-BBu8qoFi.css +1 -0
  28. package/dist/assets/{Index-DZ9mERd5.js → Index-BMCQk8x6.js} +1 -1
  29. package/dist/assets/Index-BSDwM_Lb.js +1 -0
  30. package/dist/assets/{Index-R74Ldn_d.js → Index-BWZxfjxV.js} +1 -1
  31. package/dist/assets/Index-BnoNpDIe.css +1 -0
  32. package/dist/assets/Index-Bo6yREGq.js +4 -0
  33. package/dist/assets/{Index-DtYumWG2.js → Index-BsUGgsg3.js} +1 -1
  34. package/dist/assets/Index-BuiSPO43.css +1 -0
  35. package/dist/assets/Index-BxLCgj_e.css +1 -0
  36. package/dist/assets/{Index-C3JufUt1.js → Index-C41aXiSU.js} +1 -1
  37. package/dist/assets/{Index-T1MmnqOD.js → Index-C4SnOMFi.js} +1 -1
  38. package/dist/assets/{Index-Bt00lwps.js → Index-C5VeG1Lp.js} +1 -1
  39. package/dist/assets/{Index-x9mhTmun.css → Index-CVV3tZf8.css} +1 -1
  40. package/dist/assets/{Index-CaeRQNV3.js → Index-CWo6CkmS.js} +1 -1
  41. package/dist/assets/{Index-D67A-3u_.js → Index-CY8jQkM8.js} +1 -1
  42. package/dist/assets/Index-CYmt28Xk.css +1 -0
  43. package/dist/assets/Index-CaUHDiuw.css +1 -0
  44. package/dist/assets/{Index-kxbiKg49.js → Index-CmHIvwFw.js} +1 -1
  45. package/dist/assets/Index-Cu5EiLHU.css +1 -0
  46. package/dist/assets/Index-CyUHJimx.css +1 -0
  47. package/dist/assets/Index-D-LmBQN6.js +1 -0
  48. package/dist/assets/{Index-BDmY1SY6.css → Index-D0je4Hb5.css} +1 -1
  49. package/dist/assets/Index-D2EsZH9f.css +1 -0
  50. package/dist/assets/{Index-B2Iy8Wiw.js → Index-D6qCjiTO.js} +1 -1
  51. package/dist/assets/{Index-BDq-z4Up.js → Index-DBfquiJV.js} +1 -1
  52. package/dist/assets/{Index-Job2p-Xo.js → Index-DFxQPHqB.js} +1 -1
  53. package/dist/assets/{Index-DRMdQL6l.js → Index-DIISZQnx.js} +1 -1
  54. package/dist/assets/Index-DL0n7P22.css +1 -0
  55. package/dist/assets/Index-DLDhvT8p.css +1 -0
  56. package/dist/assets/Index-DPkPxXHv.css +1 -0
  57. package/dist/assets/Index-DQk0wl28.css +1 -0
  58. package/dist/assets/{Index-BFbBHdW9.js → Index-DSudVw-1.js} +1 -1
  59. package/dist/assets/Index-DbT-X3k0.css +1 -0
  60. package/dist/assets/{Index-DpBD1CMl.js → Index-Dilo1kvb.js} +1 -1
  61. package/dist/assets/{Index-CgZ6CMgQ.css → Index-DmyWn1AP.css} +1 -1
  62. package/dist/assets/{Index-BRJhaQpG.js → Index-DvG__cXk.js} +1 -1
  63. package/dist/assets/Index-MGLFaXUD.js +1 -0
  64. package/dist/assets/{Index-ByvnJkoh.js → Index-NkxbEAhL.js} +1 -1
  65. package/dist/assets/Index-RCOtIT_Q.css +1 -0
  66. package/dist/assets/{Index-DeGfvkPk.js → Index-WBU0sclR.js} +1 -1
  67. package/dist/assets/Index-YjwgX-jh.css +1 -0
  68. package/dist/assets/Index-jKhtDc4E.css +1 -0
  69. package/dist/assets/{Invitees-B1V4mwm_.js → Invitees-kfgj1230.js} +1 -1
  70. package/dist/assets/{List-e3S6kfw5.js → List-B_HERD7h.js} +1 -1
  71. package/dist/assets/{List-D6oKRMnT.js → List-Bx2TWIon.js} +1 -1
  72. package/dist/assets/{List-CKr-DgFa.js → List-BxxIfwc7.js} +1 -1
  73. package/dist/assets/{Login-CYI_9wpe.js → Login-C-ujW_LY.js} +1 -1
  74. package/dist/assets/{Main-C_ygftjQ.js → Main-CJHeAyfJ.js} +1 -1
  75. package/dist/assets/Main-Cc9b6nwL.css +1 -0
  76. package/dist/assets/Navigator-B4spKU1u.css +1 -0
  77. package/dist/assets/{Navigator-4el-hpB2.js → Navigator-BheWA4Me.js} +1 -1
  78. package/dist/assets/NoTasks-E8exbJKH.js +1 -0
  79. package/dist/assets/{NotFound-KeZ-2edV.js → NotFound-CBxboMya.js} +1 -1
  80. package/dist/assets/NotFound-ktrJq8Vf.css +1 -0
  81. package/dist/assets/{OAuthCallback-DrACch4k.js → OAuthCallback-CTV89-EI.js} +1 -1
  82. package/dist/assets/{Pagination-D1ppBajR.js → Pagination-dKuJ_hFh.js} +1 -1
  83. package/dist/assets/{ScrollList-BwDvv6UZ.js → ScrollList-C-Srq-7J.js} +1 -1
  84. package/dist/assets/{Status-D_qsBfjl.js → Status-n5fqYT5p.js} +1 -1
  85. package/dist/assets/Subscribe-CMdOTK41.js +1 -0
  86. package/dist/assets/TransportWebHID-D3JlLBn7.js +1 -0
  87. package/dist/assets/{VideoPlayer-CB158g6Z.js → VideoPlayer-CXOBuLlR.js} +1 -1
  88. package/dist/assets/_Uint8Array-B48uXja2.js +1 -0
  89. package/dist/assets/_baseClone-Bo4uXFE7.js +1 -0
  90. package/dist/assets/_baseIteratee-CBVcPA7j.js +1 -0
  91. package/dist/assets/_commonjs-dynamic-modules-TDtrdbi3.js +1 -0
  92. package/dist/assets/_initCloneObject-N_RdILDo.js +1 -0
  93. package/dist/assets/{add-DAOdLwPv.js → add-E3XAajxL.js} +1 -1
  94. package/dist/assets/{all-wallets-vjVnwgsO.js → all-wallets-BOCyNito.js} +1 -1
  95. package/dist/assets/{app-store-Dqlp_dd5.js → app-store-BL0PVhW4.js} +1 -1
  96. package/dist/assets/{apple-C_Gx1fYg.js → apple-BeIodUwt.js} +1 -1
  97. package/dist/assets/{arrow-bottom-Bf4IfxmZ.js → arrow-bottom-BiHDOITa.js} +1 -1
  98. package/dist/assets/{arrow-bottom-circle-2BWPqWIt.js → arrow-bottom-circle-CLV4Jgl2.js} +1 -1
  99. package/dist/assets/{arrow-left-vmHuxs92.js → arrow-left-Cv255v3T.js} +1 -1
  100. package/dist/assets/{arrow-right-BdpeedLd.js → arrow-right-B4VEmn53.js} +1 -1
  101. package/dist/assets/{arrow-top-Ufh2r2Rd.js → arrow-top-CpXTTIry.js} +1 -1
  102. package/dist/assets/{avatar-DRb5wZiL.js → avatar-Bfm4A7TY.js} +1 -1
  103. package/dist/assets/{bank-CeKroJWh.js → bank-Dn2VmTu-.js} +1 -1
  104. package/dist/assets/{basic-Ca5mEGjy.js → basic-BcMWR9ru.js} +16 -20
  105. package/dist/assets/bignumber-C3amavAD.js +1 -0
  106. package/dist/assets/{browser-BG_d5y0A.js → browser-CMNjfuAC.js} +1 -1
  107. package/dist/assets/{card-COINfE2v.js → card-gqlojh6g.js} +1 -1
  108. package/dist/assets/{castArray-DsfWcMKC.js → castArray-DOHoOdv9.js} +1 -1
  109. package/dist/assets/{chat-B0Crd5wv.js → chat-CxwtDN97.js} +1 -1
  110. package/dist/assets/{checkmark-ee31vWr0.js → checkmark-YBTLqHBW.js} +1 -1
  111. package/dist/assets/{checkmark-bold-Bhapl42F.js → checkmark-bold-rxEvnEUd.js} +1 -1
  112. package/dist/assets/chevron-bottom-B7NZWz_1.js +8 -0
  113. package/dist/assets/chevron-left-DrNiPYiA.js +8 -0
  114. package/dist/assets/chevron-right-B9g1oAQY.js +8 -0
  115. package/dist/assets/chevron-top-DXRZpktS.js +8 -0
  116. package/dist/assets/{chrome-store-CFCBw3uQ.js → chrome-store-C8ULyJRG.js} +1 -1
  117. package/dist/assets/{clock-CxWFWb_j.js → clock-B-_qwBYA.js} +1 -1
  118. package/dist/assets/{close-BPfx5q_o.js → close-8bpoj0Jp.js} +1 -1
  119. package/dist/assets/{coinPlaceholder-DI1V8lUl.js → coinPlaceholder-Cuedw1Op.js} +1 -1
  120. package/dist/assets/{common-BUgppnu3.js → common-B0OACs6O.js} +1 -1
  121. package/dist/assets/{common-BjTyswUh.js → common-CRFibXKv.js} +1 -1
  122. package/dist/assets/{compass-DsV-rBLu.js → compass-CyaL9O3q.js} +1 -1
  123. package/dist/assets/{copy-CJgqaSJx.js → copy-CSAx1ijo.js} +1 -1
  124. package/dist/assets/cursor-UtbUZZ2_.js +3 -0
  125. package/dist/assets/{cursor-transparent-C5iQCxzP.js → cursor-transparent-BBh5EBmc.js} +1 -1
  126. package/dist/assets/{debounce-Dy-sHQCK.js → debounce-BUsIETU9.js} +1 -1
  127. package/dist/assets/{desktop-lmp4ZS1L.js → desktop-QNx37hFp.js} +1 -1
  128. package/dist/assets/{disconnect-DFRGn-cC.js → disconnect-C9bb7De0.js} +1 -1
  129. package/dist/assets/{discord-CFASEEOh.js → discord-wan8GbbE.js} +1 -1
  130. package/dist/assets/{distribution-BSsunzDl.js → distribution-lEp5Gch8.js} +1 -1
  131. package/dist/assets/draggabilly-C9AcGLUK.js +1 -0
  132. package/dist/assets/{dropdown-BKdzgOfl.js → dropdown-OsM0Nuqn.js} +1 -1
  133. package/dist/assets/{etherscan-Cc2cKLzg.js → etherscan-8_DU791Y.js} +1 -1
  134. package/dist/assets/{exclamation-triangle-h3vn6-KW.js → exclamation-triangle-DSBEaMG1.js} +1 -1
  135. package/dist/assets/{extension-qlpxJ6ej.js → extension-Zb14XSCh.js} +1 -1
  136. package/dist/assets/external-link-DN4ybhO_.js +8 -0
  137. package/dist/assets/{facebook-Ctcj5yIa.js → facebook-ZT9RSgiQ.js} +1 -1
  138. package/dist/assets/{farcaster-9cl9_Fa3.js → farcaster-Chv7Mgpk.js} +1 -1
  139. package/dist/assets/{filters-BpFhUpl2.js → filters-BdwaCHQL.js} +1 -1
  140. package/dist/assets/{flux-CjFCDCO2.js → flux-PcsGcOlv.js} +1 -1
  141. package/dist/assets/{fp.esm-CNHUICNe.js → fp.esm-DHUg1SIa.js} +1 -1
  142. package/dist/assets/{github-Cn7Ms9Ja.js → github-Dj3FfdHs.js} +1 -1
  143. package/dist/assets/{google-BdPBQaCv.js → google-DDjNMclN.js} +1 -1
  144. package/dist/assets/{hailuo-7HDGXQU_.js → hailuo-BQqd93QT.js} +1 -1
  145. package/dist/assets/{headshots-57d25ktA.js → headshots-U93jQ-rK.js} +1 -1
  146. package/dist/assets/{help-circle-BAvhinLE.js → help-circle-CAUMwEi0.js} +1 -1
  147. package/dist/assets/{id-Dz5FHLaa.js → id-CXidlkKo.js} +1 -1
  148. package/dist/assets/{image-D22OxaAn.js → image-CJasdWpe.js} +1 -1
  149. package/dist/assets/index-1hPDOqjR.js +911 -0
  150. package/dist/assets/index-1l_4Xky1.js +1 -0
  151. package/dist/assets/{index-DVXBVpFd.js → index-9jNdh_L_.js} +1 -1
  152. package/dist/assets/{index-CSTFj_ip.js → index-B-V2U0Bv.js} +1 -1
  153. package/dist/assets/index-B2Qsts5i.js +1 -0
  154. package/dist/assets/index-BC-Ir3YT.js +3 -0
  155. package/dist/assets/{index-Bb7O2JP3.js → index-BHU0zbZw.js} +1 -1
  156. package/dist/assets/{index-B3CSqPOd.js → index-BMp2gttm.js} +1 -1
  157. package/dist/assets/{index-C1BcnA6u.js → index-BMv64ViG.js} +1 -1
  158. package/dist/assets/index-BNJXtkMy.js +1 -0
  159. package/dist/assets/index-BNeGq9PP.js +1 -0
  160. package/dist/assets/index-BSwdI6da.js +1 -0
  161. package/dist/assets/{index-D1WAKtJ7.js → index-BXk15Vhu.js} +1 -1
  162. package/dist/assets/{index-C6wAqV-8.js → index-BZbLpolE.js} +1 -14
  163. package/dist/assets/{index-C4zA0_MP.js → index-BbigSgk6.js} +1 -1
  164. package/dist/assets/{index-BebHJvfj.js → index-BcUxzWdb.js} +2 -2
  165. package/dist/assets/index-BdS5qOyQ.js +1 -0
  166. package/dist/assets/{index-Bmj6EIz8.js → index-Be4k0eOz.js} +1 -1
  167. package/dist/assets/{index-r5W6hzzQ.js → index-BuyEbX8F.js} +1 -1
  168. package/dist/assets/{index-CeKWrnu8.js → index-ByqbLZqy.js} +1 -1
  169. package/dist/assets/index-BzEesNbY.js +1 -0
  170. package/dist/assets/{index-JN3SZ_HC.js → index-C0242lZ2.js} +1 -1
  171. package/dist/assets/{index-CKHIsc1s.js → index-C8fxfvRG.js} +1 -1
  172. package/dist/assets/{index-DjV4KyN6.js → index-C9plo9FA.js} +1 -1
  173. package/dist/assets/{index-BBmh0RLR.js → index-CKOU1IRF.js} +1 -1
  174. package/dist/assets/{index-WTxQtAHr.js → index-CMxtuA2x.js} +1 -1
  175. package/dist/assets/{index-GlRUH_hW.js → index-CRKINsfk.js} +1 -1
  176. package/dist/assets/{index-B3kuAFS6.js → index-CT81WBJC.js} +1 -1
  177. package/dist/assets/index-CVHPJfCy.js +1 -0
  178. package/dist/assets/index-CWB7Mic0.js +1 -0
  179. package/dist/assets/index-CYfhW27u.js +1 -0
  180. package/dist/assets/{index-CY3m9R2Y.js → index-CdUDrz-0.js} +1 -1
  181. package/dist/assets/{index-DG_KYMhi.js → index-Cfzcj396.js} +1 -1
  182. package/dist/assets/index-CiL5zS_Y.js +569 -0
  183. package/dist/assets/{index-BRx2ZEJw.js → index-Ckkdjl4o.js} +1 -1
  184. package/dist/assets/{index-CivSwoty.js → index-Cqt9uEFx.js} +1 -1
  185. package/dist/assets/index-CvZ0WBct.js +1 -0
  186. package/dist/assets/index-CxUeIbEw.js +1 -0
  187. package/dist/assets/index-CxaRJ5N9.js +12 -0
  188. package/dist/assets/{index-e4Ucs8dS.js → index-CyKEfMms.js} +1 -1
  189. package/dist/assets/{index-DN_nDY-3.js → index-D-SG8-o4.js} +1 -1
  190. package/dist/assets/{index-BOpdP6_7.js → index-D-qg-A9-.js} +1 -1
  191. package/dist/assets/{index-vODJIDCO.js → index-D0YGMLaa.js} +6 -42
  192. package/dist/assets/{index-YcTZTxX9.js → index-D1zEyLS1.js} +1 -1
  193. package/dist/assets/{index-ByZJwHkk.js → index-D2EIjiEw.js} +1 -1
  194. package/dist/assets/index-DBtC5OKc.css +1 -0
  195. package/dist/assets/index-DMpm5n3O.js +1 -0
  196. package/dist/assets/{index-CG0M_Xjj.js → index-DS1cpklm.js} +1 -1
  197. package/dist/assets/{index-CIip78ya.js → index-DZMxtLlk.js} +1 -1
  198. package/dist/assets/{index-vu1NWxyz.js → index-DaMl81Go.js} +1 -1
  199. package/dist/assets/index-Dkj_pbgy.js +1 -0
  200. package/dist/assets/{index-CvOp7eAb.js → index-DrscMfSA.js} +1 -1
  201. package/dist/assets/{index-BOHN3quG.js → index-Du8c8Lti.js} +1 -1
  202. package/dist/assets/index-EkXmx7jl.js +290 -0
  203. package/dist/assets/index-Fkw9jC5h.js +1 -0
  204. package/dist/assets/{index-BXrYTjO5.js → index-LXJ-lEG9.js} +1 -1
  205. package/dist/assets/{index-DU0LxlNY.js → index-Mbnml_gj.js} +1 -1
  206. package/dist/assets/index-PjJyX4LY.js +1 -0
  207. package/dist/assets/index-T9ReFIbu.js +1 -0
  208. package/dist/assets/index-TU25xuBO.js +151 -0
  209. package/dist/assets/index-V-0NaV8M.js +1 -0
  210. package/dist/assets/index-YfhrB5oC.js +1 -0
  211. package/dist/assets/{index-Cza-Zh4N.js → index-apXsdKD7.js} +1 -1
  212. package/dist/assets/{index-QDys96KY.js → index-lqoFqELT.js} +1 -1
  213. package/dist/assets/{index-BoIqosCX.js → index-pkXhSlco.js} +1 -1
  214. package/dist/assets/index-qW0zbSTP.js +30 -0
  215. package/dist/assets/index-r9l_zsnl.js +1 -0
  216. package/dist/assets/index.browser.esm-B8sZzfvA.js +8 -0
  217. package/dist/assets/index.es-B4XrJ6Ck.js +2 -0
  218. package/dist/assets/{info-BR9-RIE3.js → info-D0QfpcGE.js} +1 -1
  219. package/dist/assets/{info-circle-ZQdVUVaw.js → info-circle-D-tuP-BH.js} +1 -1
  220. package/dist/assets/{isEqual-dWoxkm7g.js → isEqual-C9TwAWsI.js} +1 -1
  221. package/dist/assets/{isPlainObject-DMxVSf-5.js → isPlainObject-OPz3IU4I.js} +1 -1
  222. package/dist/assets/{kling-C-TtpFcr.js → kling-CvicUQt9.js} +1 -1
  223. package/dist/assets/{lightbulb-DISlyM2t.js → lightbulb-BHOX-ww8.js} +1 -1
  224. package/dist/assets/{luma-DfjEMVgI.js → luma-BofZMmXm.js} +1 -1
  225. package/dist/assets/{mail-C0if4M_0.js → mail-CKNVOcOG.js} +1 -1
  226. package/dist/assets/{midjourney-Bu34rdB8.js → midjourney-Daydxxax.js} +1 -1
  227. package/dist/assets/{mobile-Db85aH_c.js → mobile-4iz15Q7n.js} +1 -1
  228. package/dist/assets/{more-Bx27V5Hg.js → more-jLE7owF4.js} +1 -1
  229. package/dist/assets/{nanobanana-BFrzpGfz.js → nanobanana-RAJH5Bki.js} +1 -1
  230. package/dist/assets/{network-placeholder-BHfdFyxe.js → network-placeholder-DPv8tMFN.js} +1 -1
  231. package/dist/assets/{nftPlaceholder-CVRqFE_z.js → nftPlaceholder-DweCvDHy.js} +1 -1
  232. package/dist/assets/{off-C7JMUIQO.js → off-CWmAJ_Bh.js} +1 -1
  233. package/dist/assets/{openaiimage-CyILu5mJ.js → openaiimage-BIYM8aTR.js} +1 -1
  234. package/dist/assets/{order-BblybwA8.js → order-CB5rrsbd.js} +1 -1
  235. package/dist/assets/{pagination-D8R-vY3J.js → pagination-D5yjLyAE.js} +1 -1
  236. package/dist/assets/{pika-Rf7-3GiX.js → pika-B_MGEpGC.js} +1 -1
  237. package/dist/assets/{pixverse-BjeNzf9Q.js → pixverse-CktQiTnV.js} +1 -1
  238. package/dist/assets/{play-store-Bgx1GLJI.js → play-store-DJmJlrvD.js} +1 -1
  239. package/dist/assets/{plus-7_ZtHut8.js → plus-CfrxKz2z.js} +1 -1
  240. package/dist/assets/{price-ZlsAJ3mE.js → price-BbA-vCnj.js} +1 -1
  241. package/dist/assets/{producer-BolO9gWp.js → producer-BdU4yFQY.js} +1 -1
  242. package/dist/assets/{qr-code-CUpVDQ5I.js → qr-code-D7yhiwWt.js} +1 -1
  243. package/dist/assets/{qrart-zWjen1L4.js → qrart-BKb1AuHl.js} +1 -1
  244. package/dist/assets/{recycle-horizontal-CyFvw8p6.js → recycle-horizontal-DtPDb72h.js} +1 -1
  245. package/dist/assets/{refresh-P7MLe3jv.js → refresh--_0EwAxr.js} +1 -1
  246. package/dist/assets/{reown-logo-qk_sulrz.js → reown-logo-C37QZC73.js} +1 -1
  247. package/dist/assets/{search-0g3mdDNF.js → search-DCvamvkJ.js} +1 -1
  248. package/dist/assets/secp256k1-ClnamsoT.js +1 -0
  249. package/dist/assets/secp256k1-DqPr1lCO.js +1 -0
  250. package/dist/assets/{seedance-ChexdROD.js → seedance-BsJB4E-e.js} +1 -1
  251. package/dist/assets/{seedream-CrIlndFE.js → seedream-85MCS8No.js} +1 -1
  252. package/dist/assets/{send-DSUwJkiF.js → send-DnVI9fa_.js} +1 -1
  253. package/dist/assets/{service-DSCzWYou.js → service-Dw0Kg7uB.js} +1 -1
  254. package/dist/assets/{events-C1bJOe9X.js → signer-Bt6hppoz.js} +1 -1
  255. package/dist/assets/solana-wallets-CUEQ9T8b.js +2 -0
  256. package/dist/assets/solana-wallets-vue-BUCglD0v.js +16 -0
  257. package/dist/assets/solanaEmbed.esm-CIXgQqxL.js +10 -0
  258. package/dist/assets/{sora-DyMvs6QM.js → sora-CITs83tx.js} +1 -1
  259. package/dist/assets/standard-BSrJCQ5C.js +1 -0
  260. package/dist/assets/{string_decoder-UGcZFaBE.js → string_decoder-BQ1X-_GY.js} +1 -1
  261. package/dist/assets/{strings-DfoVy23u.js → strings-DGr9fDRd.js} +1 -1
  262. package/dist/assets/{styles-CY2j0e5U.css → styles-Bce9hoao.css} +1 -1
  263. package/dist/assets/subsite-BJjgnvmA.js +1 -0
  264. package/dist/assets/subsite-BYqXQYsJ.js +1 -0
  265. package/dist/assets/{suno-owWyrgGo.js → suno-D8KCD8AJ.js} +1 -1
  266. package/dist/assets/{swapHorizontal-CLxl-iqJ.js → swapHorizontal-CmC3DPkd.js} +1 -1
  267. package/dist/assets/{swapHorizontalBold-CyFfYPp_.js → swapHorizontalBold-C8S_lp1L.js} +1 -1
  268. package/dist/assets/{swapHorizontalMedium-24RfzFvN.js → swapHorizontalMedium-rSlgXXj7.js} +1 -1
  269. package/dist/assets/{swapHorizontalRoundedBold-HkK2creD.js → swapHorizontalRoundedBold-BqDTlWwx.js} +1 -1
  270. package/dist/assets/{swapVertical-CeN59yUy.js → swapVertical-doMIyRGx.js} +1 -1
  271. package/dist/assets/{telegram-iJkRX7Vb.js → telegram-B_vA_I9M.js} +1 -1
  272. package/dist/assets/{three-dots-Bn6lvDgL.js → three-dots-Dd_EJ2Ms.js} +1 -1
  273. package/dist/assets/tslib.es6-ooV_ZcXm.js +1 -0
  274. package/dist/assets/{twitch-QBZMynna.js → twitch-Pcx2WO3G.js} +1 -1
  275. package/dist/assets/{twitterIcon-oTe1Ec9G.js → twitterIcon-zRw84JwO.js} +1 -1
  276. package/dist/assets/{typescript-BielEcXb.js → typescript-D5Znjm8Y.js} +1 -1
  277. package/dist/assets/use-form-item-Z5soaKHo.js +1 -0
  278. package/dist/assets/validator-C2dHpJyD.js +1 -0
  279. package/dist/assets/vendor-axios-B8_nURbH.js +9 -0
  280. package/dist/assets/vendor-chart-DO4KpSoW.js +3 -0
  281. package/dist/assets/vendor-dayjs-Cvgzdobq.js +1 -0
  282. package/dist/assets/{vendor-highlight-CyWCyJuM.js → vendor-highlight-Mh8RTITr.js} +1 -1
  283. package/dist/assets/vendor-katex-nYbbTT06.js +257 -0
  284. package/dist/assets/vendor-katex-wklAmtGL.css +1 -0
  285. package/dist/assets/vendor-vue-C5BV5QrY.js +1 -0
  286. package/dist/assets/vendor-vue-router-Bl-Po99g.js +1 -0
  287. package/dist/assets/{veo-C7ffXTRz.js → veo-CmvfIRv-.js} +1 -1
  288. package/dist/assets/{verify-fO5IzrMA.js → verify-C05wHG59.js} +1 -1
  289. package/dist/assets/{verify-filled-BOhbaRgn.js → verify-filled-CaaZnOtk.js} +1 -1
  290. package/dist/assets/vue-plyr-BO2nlN4c.js +2 -0
  291. package/dist/assets/vue-plyr-u3nFiCZB.css +1 -0
  292. package/dist/assets/{w3m-modal-DmTyn3UQ.js → w3m-modal-D1gQSCaS.js} +1 -1
  293. package/dist/assets/{wallet-lrdY3S_9.js → wallet-DtVsgmf5.js} +1 -1
  294. package/dist/assets/{wallet-placeholder-CcRD4eCm.js → wallet-placeholder-CRhCMpO5.js} +1 -1
  295. package/dist/assets/{walletconnect-Cshc70lG.js → walletconnect-C7IGwOsd.js} +1 -1
  296. package/dist/assets/{wan-CzRzbYcW.js → wan-DFnSTm2j.js} +1 -1
  297. package/dist/assets/{warning-circle-BC4eX20s.js → warning-circle-Bher3OiN.js} +1 -1
  298. package/dist/assets/{web-BaXmWEJl.js → web-Clrev4CH.js} +1 -1
  299. package/dist/assets/{web-BHYeVLgQ.js → web-vbINopKb.js} +1 -1
  300. package/dist/assets/{x-BDb1CG20.js → x-D659JFhP.js} +1 -1
  301. package/dist/index.html +6 -6
  302. package/package.json +2 -2
  303. package/dist/assets/Auth-p0aUBurT.js +0 -1
  304. package/dist/assets/Console-ay69lL9t.css +0 -1
  305. package/dist/assets/Conversation-62u6yrYy.css +0 -1
  306. package/dist/assets/Detail-Dgom96yF.js +0 -2
  307. package/dist/assets/IconPark.vue_vue_type_script_setup_true_lang-BLZRv4JK.js +0 -1
  308. package/dist/assets/ImageWrapper-CCC9KDpV.css +0 -1
  309. package/dist/assets/Index-AE8zHRaI.css +0 -1
  310. package/dist/assets/Index-B6zzHZBJ.css +0 -1
  311. package/dist/assets/Index-BI75bQ5K.css +0 -1
  312. package/dist/assets/Index-BWcq7tEj.css +0 -1
  313. package/dist/assets/Index-BrSZra1u.css +0 -1
  314. package/dist/assets/Index-C0juYDGI.css +0 -1
  315. package/dist/assets/Index-C9xKbtsc.css +0 -1
  316. package/dist/assets/Index-CGa5D6En.css +0 -1
  317. package/dist/assets/Index-CN1ddowY.css +0 -1
  318. package/dist/assets/Index-CST3Vr3w.css +0 -1
  319. package/dist/assets/Index-CSd17KSo.css +0 -1
  320. package/dist/assets/Index-CTnAfcwW.css +0 -1
  321. package/dist/assets/Index-DGqf994l.css +0 -1
  322. package/dist/assets/Index-DHsViUQQ.css +0 -1
  323. package/dist/assets/Index-DNpYnrrw.js +0 -1
  324. package/dist/assets/Index-DNrqFYl3.css +0 -1
  325. package/dist/assets/Index-DPVlQRDk.css +0 -1
  326. package/dist/assets/Index-D_PXMa9B.js +0 -1
  327. package/dist/assets/Index-E0MNopju.css +0 -1
  328. package/dist/assets/Index-UT_BGnW3.css +0 -1
  329. package/dist/assets/Index-_JA55NiP.css +0 -1
  330. package/dist/assets/Index-q-UmnTSo.js +0 -4
  331. package/dist/assets/Index-tzb7wo1T.js +0 -1
  332. package/dist/assets/Index-vbKyMGL5.js +0 -1
  333. package/dist/assets/Main-AkuYy9g7.css +0 -1
  334. package/dist/assets/Navigator-HvqoZTM0.css +0 -1
  335. package/dist/assets/NoTasks-B9eIbaLK.js +0 -1
  336. package/dist/assets/NotFound-DaqDgZ5V.css +0 -1
  337. package/dist/assets/Subscribe-Ch3B3jV0.js +0 -1
  338. package/dist/assets/TransportWebHID-CmAIbPWz.js +0 -1
  339. package/dist/assets/_Uint8Array-qNVo5ea4.js +0 -1
  340. package/dist/assets/_baseClone-Bup-DzXu.js +0 -1
  341. package/dist/assets/_baseIteratee-BrMXi8Cl.js +0 -1
  342. package/dist/assets/_initCloneObject-2M8DSHsa.js +0 -1
  343. package/dist/assets/bignumber-CgXu4W5r.js +0 -1
  344. package/dist/assets/chevron-bottom-Dy2ruk5s.js +0 -8
  345. package/dist/assets/chevron-left-BM4AfAxB.js +0 -8
  346. package/dist/assets/chevron-right-3MtXKs7R.js +0 -8
  347. package/dist/assets/chevron-top-B6MlUF74.js +0 -8
  348. package/dist/assets/cursor-8LKSMB8q.js +0 -3
  349. package/dist/assets/draggabilly-BOTxFV0F.js +0 -14
  350. package/dist/assets/external-link-DtYsxpdG.js +0 -8
  351. package/dist/assets/index-4erIVwAR.js +0 -1
  352. package/dist/assets/index-8n1SfE5_.js +0 -1
  353. package/dist/assets/index-B9auo8Tr.js +0 -3
  354. package/dist/assets/index-BFp1iBvs.js +0 -1
  355. package/dist/assets/index-BGUVRf0J.js +0 -1
  356. package/dist/assets/index-BIoOrNI4.js +0 -1
  357. package/dist/assets/index-BLceYS6J.css +0 -1
  358. package/dist/assets/index-BLy_0GNg.js +0 -9
  359. package/dist/assets/index-BOd36kea.js +0 -1
  360. package/dist/assets/index-Bh_D6Zkl.js +0 -1
  361. package/dist/assets/index-C8kqnvB0.js +0 -1
  362. package/dist/assets/index-CBcoqUOg.js +0 -1
  363. package/dist/assets/index-CCCO6HqS.js +0 -1
  364. package/dist/assets/index-CDXHGYxq.js +0 -1
  365. package/dist/assets/index-CDv4QMYh.js +0 -1
  366. package/dist/assets/index-Cb5FFmZL.js +0 -48
  367. package/dist/assets/index-CfXhGOkl.js +0 -303
  368. package/dist/assets/index-CwEC1pzi.js +0 -196
  369. package/dist/assets/index-D8rcHdZy.js +0 -955
  370. package/dist/assets/index-DK5balFu.js +0 -1
  371. package/dist/assets/index-Dae_a4rL.js +0 -1
  372. package/dist/assets/index-DaqQUjqN.js +0 -1
  373. package/dist/assets/index-DbE1BkXJ.js +0 -1
  374. package/dist/assets/index-DjOkYvHy.js +0 -3
  375. package/dist/assets/index-DsVJU19e.js +0 -12
  376. package/dist/assets/index-RGjBjS1Y.js +0 -1
  377. package/dist/assets/index-ak3wrFnL.js +0 -605
  378. package/dist/assets/index-dVVTwW9K.js +0 -1
  379. package/dist/assets/index-kuL-MU16.js +0 -1
  380. package/dist/assets/index.browser.esm-CPr1OW46.js +0 -13
  381. package/dist/assets/index.es-BDv8itLa.js +0 -1
  382. package/dist/assets/secp256k1-Dsb3S-tf.js +0 -1
  383. package/dist/assets/secp256k1-LJ-UbB4J.js +0 -1
  384. package/dist/assets/solana-wallets-fEthObZH.js +0 -2
  385. package/dist/assets/solana-wallets-vue-Ya9YPIgy.js +0 -21
  386. package/dist/assets/solanaEmbed.esm-pvKp9J7H.js +0 -10
  387. package/dist/assets/standard-CDjM418q.js +0 -1
  388. package/dist/assets/tslib.es6-BvfLneQN.js +0 -1
  389. package/dist/assets/use-form-item-DT5f4JMo.js +0 -1
  390. package/dist/assets/validator-DoEZ3swm.js +0 -1
  391. package/dist/assets/vendor-axios-NIGUFBhG.js +0 -6
  392. package/dist/assets/vendor-chart-CNPpQrIt.js +0 -18
  393. package/dist/assets/vendor-dayjs-D7e3rSuL.js +0 -1
  394. package/dist/assets/vendor-katex-CIur2ABi.css +0 -1
  395. package/dist/assets/vendor-katex-DHBGsivc.js +0 -261
  396. package/dist/assets/vendor-vue-CpN3YBVJ.js +0 -17
  397. package/dist/assets/vendor-vue-router-DjvMdekB.js +0 -5
  398. package/dist/assets/vue-plyr-BqJN4-Iw.css +0 -1
  399. package/dist/assets/vue-plyr-QZFBikSk.js +0 -2
@@ -1 +1 @@
1
- import{g as ue,ai as k,d as _,r as de,f as V,q as U,x as y,y as R,I as L,z as $,O as ke,N as Ee,U as ce,u as t,Q as m,J as g,E as N,M as B,C as w,F as Z,R as Ce,al as $e,e as Re,s as J,an as x,m as Fe,w as ee,a6 as Pe,p as we,j as Le,af as te,A as se}from"./vendor-vue-CpN3YBVJ.js";import{S as Y,bz as pe,H as q,I as v,y as M,ae as Se,z as A,P as z,R as D,bN as Te,X as Ue,Z as _e,$ as Oe,bl as De,bO as Be,bP as je,T as Ne,A as Ae}from"./index-ak3wrFnL.js";import{E as qe}from"./index-BebHJvfj.js";import{m as W,b as Me}from"./typescript-BielEcXb.js";import{b as ze}from"./_baseClone-Bup-DzXu.js";import{i as He}from"./isEqual-dWoxkm7g.js";var Ke=1,Ie=4;function ae(o){return ze(o,Ke|Ie)}const fe=Symbol("uploadContextKey"),Xe="ElUpload";class Ge extends Error{constructor(l,a,c,i){super(l),this.name="UploadAjaxError",this.status=a,this.method=c,this.url=i}}function oe(o,l,a){let c;return a.response?c=`${a.response.error||a.response}`:a.responseText?c=`${a.responseText}`:c=`fail to ${l.method} ${o} ${a.status}`,new Ge(c,a.status,l.method,o)}function Ve(o){const l=o.responseText||o.response;if(!l)return l;try{return JSON.parse(l)}catch{return l}}const Je=o=>{typeof XMLHttpRequest>"u"&&Y(Xe,"XMLHttpRequest is undefined");const l=new XMLHttpRequest,a=o.action;l.upload&&l.upload.addEventListener("progress",d=>{const f=d;f.percent=d.total>0?d.loaded/d.total*100:0,o.onProgress(f)});const c=new FormData;if(o.data)for(const[d,f]of Object.entries(o.data))ue(f)&&f.length?c.append(d,...f):c.append(d,f);c.append(o.filename,o.file,o.file.name),l.addEventListener("error",()=>{o.onError(oe(a,o,l))}),l.addEventListener("load",()=>{if(l.status<200||l.status>=300)return o.onError(oe(a,o,l));o.onSuccess(Ve(l))}),l.open(o.method,a,!0),o.withCredentials&&"withCredentials"in l&&(l.withCredentials=!0);const i=o.headers||{};if(i instanceof Headers)i.forEach((d,f)=>l.setRequestHeader(f,d));else for(const[d,f]of Object.entries(i))pe(f)||l.setRequestHeader(d,String(f));return l.send(c),l},ve=["text","picture","picture-card"];let We=1;const Q=()=>Date.now()+We++,me=q({action:{type:String,default:"#"},headers:{type:v(Object)},method:{type:String,default:"post"},data:{type:v([Object,Function,Promise]),default:()=>W({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:v(Array),default:()=>W([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:ve,default:"text"},httpRequest:{type:v(Function),default:Je},disabled:Boolean,limit:Number}),Qe=q({...me,beforeUpload:{type:v(Function),default:k},beforeRemove:{type:v(Function)},onRemove:{type:v(Function),default:k},onChange:{type:v(Function),default:k},onPreview:{type:v(Function),default:k},onSuccess:{type:v(Function),default:k},onProgress:{type:v(Function),default:k},onError:{type:v(Function),default:k},onExceed:{type:v(Function),default:k},crossorigin:{type:v(String)}}),Ye=q({files:{type:v(Array),default:()=>W([])},disabled:Boolean,handlePreview:{type:v(Function),default:k},listType:{type:String,values:ve,default:"text"},crossorigin:{type:v(String)}}),Ze={remove:o=>!!o},xe=_({name:"ElUploadList"}),et=_({...xe,props:Ye,emits:Ze,setup(o,{emit:l}){const a=o,{t:c}=Se(),i=A("upload"),d=A("icon"),f=A("list"),C=z(),h=de(!1),b=V(()=>[i.b("list"),i.bm("list",a.listType),i.is("disabled",a.disabled)]),E=p=>{l("remove",p)};return(p,S)=>(y(),U($e,{tag:"ul",class:m(t(b)),name:t(f).b()},{default:R(()=>[(y(!0),L(ke,null,Ee(p.files,(s,n)=>(y(),L("li",{key:s.uid||s.name,class:m([t(i).be("list","item"),t(i).is(s.status),{focusing:h.value}]),tabindex:"0",onKeydown:ce(e=>!t(C)&&E(s),["delete"]),onFocus:e=>h.value=!0,onBlur:e=>h.value=!1,onClick:e=>h.value=!1},[$(p.$slots,"default",{file:s,index:n},()=>[p.listType==="picture"||s.status!=="uploading"&&p.listType==="picture-card"?(y(),L("img",{key:0,class:m(t(i).be("list","item-thumbnail")),src:s.url,crossorigin:p.crossorigin,alt:""},null,10,["src","crossorigin"])):g("v-if",!0),s.status==="uploading"||p.listType!=="picture-card"?(y(),L("div",{key:1,class:m(t(i).be("list","item-info"))},[N("a",{class:m(t(i).be("list","item-name")),onClick:B(e=>p.handlePreview(s),["prevent"])},[w(t(D),{class:m(t(d).m("document"))},{default:R(()=>[w(t(Te))]),_:1},8,["class"]),N("span",{class:m(t(i).be("list","item-file-name")),title:s.name},Z(s.name),11,["title"])],10,["onClick"]),s.status==="uploading"?(y(),U(t(qe),{key:0,type:p.listType==="picture-card"?"circle":"line","stroke-width":p.listType==="picture-card"?6:2,percentage:Number(s.percentage),style:Ce(p.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):g("v-if",!0)],2)):g("v-if",!0),N("label",{class:m(t(i).be("list","item-status-label"))},[p.listType==="text"?(y(),U(t(D),{key:0,class:m([t(d).m("upload-success"),t(d).m("circle-check")])},{default:R(()=>[w(t(Ue))]),_:1},8,["class"])):["picture-card","picture"].includes(p.listType)?(y(),U(t(D),{key:1,class:m([t(d).m("upload-success"),t(d).m("check")])},{default:R(()=>[w(t(_e))]),_:1},8,["class"])):g("v-if",!0)],2),t(C)?g("v-if",!0):(y(),U(t(D),{key:2,class:m(t(d).m("close")),onClick:e=>E(s)},{default:R(()=>[w(t(Oe))]),_:2},1032,["class","onClick"])),g(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),g(" This is a bug which needs to be fixed "),g(" TODO: Fix the incorrect navigation interaction "),t(C)?g("v-if",!0):(y(),L("i",{key:3,class:m(t(d).m("close-tip"))},Z(t(c)("el.upload.deleteTip")),3)),p.listType==="picture-card"?(y(),L("span",{key:4,class:m(t(i).be("list","item-actions"))},[N("span",{class:m(t(i).be("list","item-preview")),onClick:e=>p.handlePreview(s)},[w(t(D),{class:m(t(d).m("zoom-in"))},{default:R(()=>[w(t(De))]),_:1},8,["class"])],10,["onClick"]),t(C)?g("v-if",!0):(y(),L("span",{key:0,class:m(t(i).be("list","item-delete")),onClick:e=>E(s)},[w(t(D),{class:m(t(d).m("delete"))},{default:R(()=>[w(t(Be))]),_:1},8,["class"])],10,["onClick"]))],2)):g("v-if",!0)])],42,["onKeydown","onFocus","onBlur","onClick"]))),128)),$(p.$slots,"append")]),_:3},8,["class","name"]))}});var ne=M(et,[["__file","upload-list.vue"]]);const tt=q({disabled:Boolean}),st={file:o=>ue(o)},ye="ElUploadDrag",at=_({name:ye}),ot=_({...at,props:tt,emits:st,setup(o,{emit:l}){Re(fe)||Y(ye,"usage: <el-upload><el-upload-dragger /></el-upload>");const c=A("upload"),i=de(!1),d=z(),f=b=>{if(d.value)return;i.value=!1,b.stopPropagation();const E=Array.from(b.dataTransfer.files),p=b.dataTransfer.items||[];E.forEach((S,s)=>{var n;const e=p[s],u=(n=e?.webkitGetAsEntry)==null?void 0:n.call(e);u&&(S.isDirectory=u.isDirectory)}),l("file",E)},C=()=>{d.value||(i.value=!0)},h=b=>{b.currentTarget.contains(b.relatedTarget)||(i.value=!1)};return(b,E)=>(y(),L("div",{class:m([t(c).b("dragger"),t(c).is("dragover",i.value)]),onDrop:B(f,["prevent"]),onDragover:B(C,["prevent"]),onDragleave:B(h,["prevent"])},[$(b.$slots,"default")],42,["onDrop","onDragover","onDragleave"]))}});var nt=M(ot,[["__file","upload-dragger.vue"]]);const rt=q({...me,beforeUpload:{type:v(Function),default:k},onRemove:{type:v(Function),default:k},onStart:{type:v(Function),default:k},onSuccess:{type:v(Function),default:k},onProgress:{type:v(Function),default:k},onError:{type:v(Function),default:k},onExceed:{type:v(Function),default:k}}),lt=_({name:"ElUploadContent",inheritAttrs:!1}),it=_({...lt,props:rt,setup(o,{expose:l}){const a=o,c=A("upload"),i=z(),d=J({}),f=J(),C=e=>{if(e.length===0)return;const{autoUpload:u,limit:r,fileList:F,multiple:P,onStart:T,onExceed:H}=a;if(r&&F.length+e.length>r){H(e,F);return}P||(e=e.slice(0,1));for(const K of e){const j=K;j.uid=Q(),T(j),u&&h(j)}},h=async e=>{if(f.value.value="",!a.beforeUpload)return E(e);let u,r={};try{const P=a.data,T=a.beforeUpload(e);r=x(a.data)?ae(a.data):a.data,u=await T,x(a.data)&&He(P,r)&&(r=ae(a.data))}catch{u=!1}if(u===!1){a.onRemove(e);return}let F=e;u instanceof Blob&&(u instanceof File?F=u:F=new File([u],e.name,{type:e.type})),E(Object.assign(F,{uid:e.uid}),r)},b=async(e,u)=>Fe(e)?e(u):e,E=async(e,u)=>{const{headers:r,data:F,method:P,withCredentials:T,name:H,action:K,onProgress:j,onSuccess:ge,onError:be,httpRequest:he}=a;try{u=await b(u??F,e)}catch{a.onRemove(e);return}const{uid:I}=e,X={headers:r||{},withCredentials:T,file:e,data:u,method:P,filename:H,action:K,onProgress:O=>{j(O,e)},onSuccess:O=>{ge(O,e),delete d.value[I]},onError:O=>{be(O,e),delete d.value[I]}},G=he(X);d.value[I]=G,G instanceof Promise&&G.then(X.onSuccess,X.onError)},p=e=>{const u=e.target.files;u&&C(Array.from(u))},S=()=>{i.value||(f.value.value="",f.value.click())},s=()=>{S()};return l({abort:e=>{je(d.value).filter(e?([r])=>String(e.uid)===r:()=>!0).forEach(([r,F])=>{F instanceof XMLHttpRequest&&F.abort(),delete d.value[r]})},upload:h}),(e,u)=>(y(),L("div",{class:m([t(c).b(),t(c).m(e.listType),t(c).is("drag",e.drag),t(c).is("disabled",t(i))]),tabindex:t(i)?"-1":"0",onClick:S,onKeydown:ce(B(s,["self"]),["enter","space"])},[e.drag?(y(),U(nt,{key:0,disabled:t(i),onFile:C},{default:R(()=>[$(e.$slots,"default")]),_:3},8,["disabled"])):$(e.$slots,"default",{key:1}),N("input",{ref_key:"inputRef",ref:f,class:m(t(c).e("input")),name:e.name,disabled:t(i),multiple:e.multiple,accept:e.accept,type:"file",onChange:p,onClick:B(()=>{},["stop"])},null,42,["name","disabled","multiple","accept","onClick"])],42,["tabindex","onKeydown"]))}});var re=M(it,[["__file","upload-content.vue"]]);const le="ElUpload",ie=o=>{var l;(l=o.url)!=null&&l.startsWith("blob:")&&URL.revokeObjectURL(o.url)},ut=(o,l)=>{const a=Me(o,"fileList",void 0,{passive:!0}),c=s=>a.value.find(n=>n.uid===s.uid);function i(s){var n;(n=l.value)==null||n.abort(s)}function d(s=["ready","uploading","success","fail"]){a.value=a.value.filter(n=>!s.includes(n.status))}function f(s){a.value=a.value.filter(n=>n.uid!==s.uid)}const C=(s,n)=>{const e=c(n);e&&(console.error(s),e.status="fail",f(e),o.onError(s,e,a.value),o.onChange(e,a.value))},h=(s,n)=>{const e=c(n);e&&(o.onProgress(s,e,a.value),e.status="uploading",e.percentage=Math.round(s.percent))},b=(s,n)=>{const e=c(n);e&&(e.status="success",e.response=s,o.onSuccess(s,e,a.value),o.onChange(e,a.value))},E=s=>{pe(s.uid)&&(s.uid=Q());const n={name:s.name,percentage:0,status:"ready",size:s.size,raw:s,uid:s.uid};if(o.listType==="picture-card"||o.listType==="picture")try{n.url=URL.createObjectURL(s)}catch(e){Ne(le,e.message),o.onError(e,n,a.value)}a.value=[...a.value,n],o.onChange(n,a.value)},p=async s=>{const n=s instanceof File?c(s):s;n||Y(le,"file to be removed not found");const e=u=>{i(u),f(u),o.onRemove(u,a.value),ie(u)};o.beforeRemove?await o.beforeRemove(n,a.value)!==!1&&e(n):e(n)};function S(){a.value.filter(({status:s})=>s==="ready").forEach(({raw:s})=>{var n;return s&&((n=l.value)==null?void 0:n.upload(s))})}return ee(()=>o.listType,s=>{s!=="picture-card"&&s!=="picture"||(a.value=a.value.map(n=>{const{raw:e,url:u}=n;if(!u&&e)try{n.url=URL.createObjectURL(e)}catch(r){o.onError(r,n,a.value)}return n}))}),ee(a,s=>{for(const n of s)n.uid||(n.uid=Q()),n.status||(n.status="success")},{immediate:!0,deep:!0}),{uploadFiles:a,abort:i,clearFiles:d,handleError:C,handleProgress:h,handleStart:E,handleSuccess:b,handleRemove:p,submit:S,revokeFileObjectURL:ie}},dt=_({name:"ElUpload"}),ct=_({...dt,props:Qe,setup(o,{expose:l}){const a=o,c=z(),i=J(),{abort:d,submit:f,clearFiles:C,uploadFiles:h,handleStart:b,handleError:E,handleRemove:p,handleSuccess:S,handleProgress:s,revokeFileObjectURL:n}=ut(a,i),e=V(()=>a.listType==="picture-card"),u=V(()=>({...a,fileList:h.value,onStart:b,onProgress:s,onSuccess:S,onError:E,onRemove:p}));return Pe(()=>{h.value.forEach(n)}),we(fe,{accept:Le(a,"accept")}),l({abort:d,submit:f,clearFiles:C,handleStart:b,handleRemove:p}),(r,F)=>(y(),L("div",null,[t(e)&&r.showFileList?(y(),U(ne,{key:0,disabled:t(c),"list-type":r.listType,files:t(h),crossorigin:r.crossorigin,"handle-preview":r.onPreview,onRemove:t(p)},te({append:R(()=>[w(re,se({ref_key:"uploadRef",ref:i},t(u)),{default:R(()=>[r.$slots.trigger?$(r.$slots,"trigger",{key:0}):g("v-if",!0),!r.$slots.trigger&&r.$slots.default?$(r.$slots,"default",{key:1}):g("v-if",!0)]),_:3},16)]),_:2},[r.$slots.file?{name:"default",fn:R(({file:P,index:T})=>[$(r.$slots,"file",{file:P,index:T})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):g("v-if",!0),!t(e)||t(e)&&!r.showFileList?(y(),U(re,se({key:1,ref_key:"uploadRef",ref:i},t(u)),{default:R(()=>[r.$slots.trigger?$(r.$slots,"trigger",{key:0}):g("v-if",!0),!r.$slots.trigger&&r.$slots.default?$(r.$slots,"default",{key:1}):g("v-if",!0)]),_:3},16)):g("v-if",!0),r.$slots.trigger?$(r.$slots,"default",{key:2}):g("v-if",!0),$(r.$slots,"tip"),!t(e)&&r.showFileList?(y(),U(ne,{key:3,disabled:t(c),"list-type":r.listType,files:t(h),crossorigin:r.crossorigin,"handle-preview":r.onPreview,onRemove:t(p)},te({_:2},[r.$slots.file?{name:"default",fn:R(({file:P,index:T})=>[$(r.$slots,"file",{file:P,index:T})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):g("v-if",!0)]))}});var pt=M(ct,[["__file","upload.vue"]]);const ht=Ae(pt);export{ht as E};
1
+ import{g as ue,ai as k,d as _,q as y,x as U,y as $,H as L,O as ke,N as Ee,U as de,u as t,Q as m,z as R,J as g,E as N,M as B,C as w,F as Z,R as Ce,al as Re,b as ce,c as V,i as $e,a as Q,an as x,m as Fe,w as ee,a6 as Pe,af as te,A as se,p as we,j as Le}from"./vendor-vue-C5BV5QrY.js";import{T as Y,bB as pe,H as q,I as v,y as M,ae as Se,z as A,P as H,R as D,bP as Te,X as Ue,Z as _e,$ as Oe,bn as De,bQ as Be,bR as je,Q as Ne,A as Ae}from"./index-CiL5zS_Y.js";import{E as qe}from"./index-BcUxzWdb.js";import{m as J,b as Me}from"./typescript-D5Znjm8Y.js";import{b as He}from"./_baseClone-Bo4uXFE7.js";import{i as Ke}from"./isEqual-C9TwAWsI.js";var ze=1,Ie=4;function ae(o){return He(o,ze|Ie)}const fe=Symbol("uploadContextKey"),Xe="ElUpload";class Ge extends Error{constructor(l,a,c,i){super(l),this.name="UploadAjaxError",this.status=a,this.method=c,this.url=i}}function oe(o,l,a){let c;return a.response?c=`${a.response.error||a.response}`:a.responseText?c=`${a.responseText}`:c=`fail to ${l.method} ${o} ${a.status}`,new Ge(c,a.status,l.method,o)}function Ve(o){const l=o.responseText||o.response;if(!l)return l;try{return JSON.parse(l)}catch{return l}}const Qe=o=>{typeof XMLHttpRequest>"u"&&Y(Xe,"XMLHttpRequest is undefined");const l=new XMLHttpRequest,a=o.action;l.upload&&l.upload.addEventListener("progress",d=>{const f=d;f.percent=d.total>0?d.loaded/d.total*100:0,o.onProgress(f)});const c=new FormData;if(o.data)for(const[d,f]of Object.entries(o.data))ue(f)&&f.length?c.append(d,...f):c.append(d,f);c.append(o.filename,o.file,o.file.name),l.addEventListener("error",()=>{o.onError(oe(a,o,l))}),l.addEventListener("load",()=>{if(l.status<200||l.status>=300)return o.onError(oe(a,o,l));o.onSuccess(Ve(l))}),l.open(o.method,a,!0),o.withCredentials&&"withCredentials"in l&&(l.withCredentials=!0);const i=o.headers||{};if(i instanceof Headers)i.forEach((d,f)=>l.setRequestHeader(f,d));else for(const[d,f]of Object.entries(i))pe(f)||l.setRequestHeader(d,String(f));return l.send(c),l},ve=["text","picture","picture-card"];let Je=1;const W=()=>Date.now()+Je++,me=q({action:{type:String,default:"#"},headers:{type:v(Object)},method:{type:String,default:"post"},data:{type:v([Object,Function,Promise]),default:()=>J({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:v(Array),default:()=>J([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:ve,default:"text"},httpRequest:{type:v(Function),default:Qe},disabled:Boolean,limit:Number}),We=q({...me,beforeUpload:{type:v(Function),default:k},beforeRemove:{type:v(Function)},onRemove:{type:v(Function),default:k},onChange:{type:v(Function),default:k},onPreview:{type:v(Function),default:k},onSuccess:{type:v(Function),default:k},onProgress:{type:v(Function),default:k},onError:{type:v(Function),default:k},onExceed:{type:v(Function),default:k},crossorigin:{type:v(String)}}),Ye=q({files:{type:v(Array),default:()=>J([])},disabled:Boolean,handlePreview:{type:v(Function),default:k},listType:{type:String,values:ve,default:"text"},crossorigin:{type:v(String)}}),Ze={remove:o=>!!o},xe=_({name:"ElUploadList"}),et=_({...xe,props:Ye,emits:Ze,setup(o,{emit:l}){const a=o,{t:c}=Se(),i=A("upload"),d=A("icon"),f=A("list"),C=H(),h=ce(!1),b=V(()=>[i.b("list"),i.bm("list",a.listType),i.is("disabled",a.disabled)]),E=p=>{l("remove",p)};return(p,S)=>(y(),U(Re,{tag:"ul",class:m(t(b)),name:t(f).b()},{default:$(()=>[(y(!0),L(ke,null,Ee(p.files,(s,n)=>(y(),L("li",{key:s.uid||s.name,class:m([t(i).be("list","item"),t(i).is(s.status),{focusing:h.value}]),tabindex:"0",onKeydown:de(e=>!t(C)&&E(s),["delete"]),onFocus:e=>h.value=!0,onBlur:e=>h.value=!1,onClick:e=>h.value=!1},[R(p.$slots,"default",{file:s,index:n},()=>[p.listType==="picture"||s.status!=="uploading"&&p.listType==="picture-card"?(y(),L("img",{key:0,class:m(t(i).be("list","item-thumbnail")),src:s.url,crossorigin:p.crossorigin,alt:""},null,10,["src","crossorigin"])):g("v-if",!0),s.status==="uploading"||p.listType!=="picture-card"?(y(),L("div",{key:1,class:m(t(i).be("list","item-info"))},[N("a",{class:m(t(i).be("list","item-name")),onClick:B(e=>p.handlePreview(s),["prevent"])},[w(t(D),{class:m(t(d).m("document"))},{default:$(()=>[w(t(Te))]),_:1},8,["class"]),N("span",{class:m(t(i).be("list","item-file-name")),title:s.name},Z(s.name),11,["title"])],10,["onClick"]),s.status==="uploading"?(y(),U(t(qe),{key:0,type:p.listType==="picture-card"?"circle":"line","stroke-width":p.listType==="picture-card"?6:2,percentage:Number(s.percentage),style:Ce(p.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):g("v-if",!0)],2)):g("v-if",!0),N("label",{class:m(t(i).be("list","item-status-label"))},[p.listType==="text"?(y(),U(t(D),{key:0,class:m([t(d).m("upload-success"),t(d).m("circle-check")])},{default:$(()=>[w(t(Ue))]),_:1},8,["class"])):["picture-card","picture"].includes(p.listType)?(y(),U(t(D),{key:1,class:m([t(d).m("upload-success"),t(d).m("check")])},{default:$(()=>[w(t(_e))]),_:1},8,["class"])):g("v-if",!0)],2),t(C)?g("v-if",!0):(y(),U(t(D),{key:2,class:m(t(d).m("close")),onClick:e=>E(s)},{default:$(()=>[w(t(Oe))]),_:2},1032,["class","onClick"])),g(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),g(" This is a bug which needs to be fixed "),g(" TODO: Fix the incorrect navigation interaction "),t(C)?g("v-if",!0):(y(),L("i",{key:3,class:m(t(d).m("close-tip"))},Z(t(c)("el.upload.deleteTip")),3)),p.listType==="picture-card"?(y(),L("span",{key:4,class:m(t(i).be("list","item-actions"))},[N("span",{class:m(t(i).be("list","item-preview")),onClick:e=>p.handlePreview(s)},[w(t(D),{class:m(t(d).m("zoom-in"))},{default:$(()=>[w(t(De))]),_:1},8,["class"])],10,["onClick"]),t(C)?g("v-if",!0):(y(),L("span",{key:0,class:m(t(i).be("list","item-delete")),onClick:e=>E(s)},[w(t(D),{class:m(t(d).m("delete"))},{default:$(()=>[w(t(Be))]),_:1},8,["class"])],10,["onClick"]))],2)):g("v-if",!0)])],42,["onKeydown","onFocus","onBlur","onClick"]))),128)),R(p.$slots,"append")]),_:3},8,["class","name"]))}});var ne=M(et,[["__file","upload-list.vue"]]);const tt=q({disabled:Boolean}),st={file:o=>ue(o)},ye="ElUploadDrag",at=_({name:ye}),ot=_({...at,props:tt,emits:st,setup(o,{emit:l}){$e(fe)||Y(ye,"usage: <el-upload><el-upload-dragger /></el-upload>");const c=A("upload"),i=ce(!1),d=H(),f=b=>{if(d.value)return;i.value=!1,b.stopPropagation();const E=Array.from(b.dataTransfer.files),p=b.dataTransfer.items||[];E.forEach((S,s)=>{var n;const e=p[s],u=(n=e?.webkitGetAsEntry)==null?void 0:n.call(e);u&&(S.isDirectory=u.isDirectory)}),l("file",E)},C=()=>{d.value||(i.value=!0)},h=b=>{b.currentTarget.contains(b.relatedTarget)||(i.value=!1)};return(b,E)=>(y(),L("div",{class:m([t(c).b("dragger"),t(c).is("dragover",i.value)]),onDrop:B(f,["prevent"]),onDragover:B(C,["prevent"]),onDragleave:B(h,["prevent"])},[R(b.$slots,"default")],42,["onDrop","onDragover","onDragleave"]))}});var nt=M(ot,[["__file","upload-dragger.vue"]]);const rt=q({...me,beforeUpload:{type:v(Function),default:k},onRemove:{type:v(Function),default:k},onStart:{type:v(Function),default:k},onSuccess:{type:v(Function),default:k},onProgress:{type:v(Function),default:k},onError:{type:v(Function),default:k},onExceed:{type:v(Function),default:k}}),lt=_({name:"ElUploadContent",inheritAttrs:!1}),it=_({...lt,props:rt,setup(o,{expose:l}){const a=o,c=A("upload"),i=H(),d=Q({}),f=Q(),C=e=>{if(e.length===0)return;const{autoUpload:u,limit:r,fileList:F,multiple:P,onStart:T,onExceed:K}=a;if(r&&F.length+e.length>r){K(e,F);return}P||(e=e.slice(0,1));for(const z of e){const j=z;j.uid=W(),T(j),u&&h(j)}},h=async e=>{if(f.value.value="",!a.beforeUpload)return E(e);let u,r={};try{const P=a.data,T=a.beforeUpload(e);r=x(a.data)?ae(a.data):a.data,u=await T,x(a.data)&&Ke(P,r)&&(r=ae(a.data))}catch{u=!1}if(u===!1){a.onRemove(e);return}let F=e;u instanceof Blob&&(u instanceof File?F=u:F=new File([u],e.name,{type:e.type})),E(Object.assign(F,{uid:e.uid}),r)},b=async(e,u)=>Fe(e)?e(u):e,E=async(e,u)=>{const{headers:r,data:F,method:P,withCredentials:T,name:K,action:z,onProgress:j,onSuccess:ge,onError:be,httpRequest:he}=a;try{u=await b(u??F,e)}catch{a.onRemove(e);return}const{uid:I}=e,X={headers:r||{},withCredentials:T,file:e,data:u,method:P,filename:K,action:z,onProgress:O=>{j(O,e)},onSuccess:O=>{ge(O,e),delete d.value[I]},onError:O=>{be(O,e),delete d.value[I]}},G=he(X);d.value[I]=G,G instanceof Promise&&G.then(X.onSuccess,X.onError)},p=e=>{const u=e.target.files;u&&C(Array.from(u))},S=()=>{i.value||(f.value.value="",f.value.click())},s=()=>{S()};return l({abort:e=>{je(d.value).filter(e?([r])=>String(e.uid)===r:()=>!0).forEach(([r,F])=>{F instanceof XMLHttpRequest&&F.abort(),delete d.value[r]})},upload:h}),(e,u)=>(y(),L("div",{class:m([t(c).b(),t(c).m(e.listType),t(c).is("drag",e.drag),t(c).is("disabled",t(i))]),tabindex:t(i)?"-1":"0",onClick:S,onKeydown:de(B(s,["self"]),["enter","space"])},[e.drag?(y(),U(nt,{key:0,disabled:t(i),onFile:C},{default:$(()=>[R(e.$slots,"default")]),_:3},8,["disabled"])):R(e.$slots,"default",{key:1}),N("input",{ref_key:"inputRef",ref:f,class:m(t(c).e("input")),name:e.name,disabled:t(i),multiple:e.multiple,accept:e.accept,type:"file",onChange:p,onClick:B(()=>{},["stop"])},null,42,["name","disabled","multiple","accept","onClick"])],42,["tabindex","onKeydown"]))}});var re=M(it,[["__file","upload-content.vue"]]);const le="ElUpload",ie=o=>{var l;(l=o.url)!=null&&l.startsWith("blob:")&&URL.revokeObjectURL(o.url)},ut=(o,l)=>{const a=Me(o,"fileList",void 0,{passive:!0}),c=s=>a.value.find(n=>n.uid===s.uid);function i(s){var n;(n=l.value)==null||n.abort(s)}function d(s=["ready","uploading","success","fail"]){a.value=a.value.filter(n=>!s.includes(n.status))}function f(s){a.value=a.value.filter(n=>n.uid!==s.uid)}const C=(s,n)=>{const e=c(n);e&&(console.error(s),e.status="fail",f(e),o.onError(s,e,a.value),o.onChange(e,a.value))},h=(s,n)=>{const e=c(n);e&&(o.onProgress(s,e,a.value),e.status="uploading",e.percentage=Math.round(s.percent))},b=(s,n)=>{const e=c(n);e&&(e.status="success",e.response=s,o.onSuccess(s,e,a.value),o.onChange(e,a.value))},E=s=>{pe(s.uid)&&(s.uid=W());const n={name:s.name,percentage:0,status:"ready",size:s.size,raw:s,uid:s.uid};if(o.listType==="picture-card"||o.listType==="picture")try{n.url=URL.createObjectURL(s)}catch(e){Ne(le,e.message),o.onError(e,n,a.value)}a.value=[...a.value,n],o.onChange(n,a.value)},p=async s=>{const n=s instanceof File?c(s):s;n||Y(le,"file to be removed not found");const e=u=>{i(u),f(u),o.onRemove(u,a.value),ie(u)};o.beforeRemove?await o.beforeRemove(n,a.value)!==!1&&e(n):e(n)};function S(){a.value.filter(({status:s})=>s==="ready").forEach(({raw:s})=>{var n;return s&&((n=l.value)==null?void 0:n.upload(s))})}return ee(()=>o.listType,s=>{s!=="picture-card"&&s!=="picture"||(a.value=a.value.map(n=>{const{raw:e,url:u}=n;if(!u&&e)try{n.url=URL.createObjectURL(e)}catch(r){o.onError(r,n,a.value)}return n}))}),ee(a,s=>{for(const n of s)n.uid||(n.uid=W()),n.status||(n.status="success")},{immediate:!0,deep:!0}),{uploadFiles:a,abort:i,clearFiles:d,handleError:C,handleProgress:h,handleStart:E,handleSuccess:b,handleRemove:p,submit:S,revokeFileObjectURL:ie}},dt=_({name:"ElUpload"}),ct=_({...dt,props:We,setup(o,{expose:l}){const a=o,c=H(),i=Q(),{abort:d,submit:f,clearFiles:C,uploadFiles:h,handleStart:b,handleError:E,handleRemove:p,handleSuccess:S,handleProgress:s,revokeFileObjectURL:n}=ut(a,i),e=V(()=>a.listType==="picture-card"),u=V(()=>({...a,fileList:h.value,onStart:b,onProgress:s,onSuccess:S,onError:E,onRemove:p}));return Pe(()=>{h.value.forEach(n)}),we(fe,{accept:Le(a,"accept")}),l({abort:d,submit:f,clearFiles:C,handleStart:b,handleRemove:p}),(r,F)=>(y(),L("div",null,[t(e)&&r.showFileList?(y(),U(ne,{key:0,disabled:t(c),"list-type":r.listType,files:t(h),crossorigin:r.crossorigin,"handle-preview":r.onPreview,onRemove:t(p)},te({append:$(()=>[w(re,se({ref_key:"uploadRef",ref:i},t(u)),{default:$(()=>[r.$slots.trigger?R(r.$slots,"trigger",{key:0}):g("v-if",!0),!r.$slots.trigger&&r.$slots.default?R(r.$slots,"default",{key:1}):g("v-if",!0)]),_:3},16)]),_:2},[r.$slots.file?{name:"default",fn:$(({file:P,index:T})=>[R(r.$slots,"file",{file:P,index:T})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):g("v-if",!0),!t(e)||t(e)&&!r.showFileList?(y(),U(re,se({key:1,ref_key:"uploadRef",ref:i},t(u)),{default:$(()=>[r.$slots.trigger?R(r.$slots,"trigger",{key:0}):g("v-if",!0),!r.$slots.trigger&&r.$slots.default?R(r.$slots,"default",{key:1}):g("v-if",!0)]),_:3},16)):g("v-if",!0),r.$slots.trigger?R(r.$slots,"default",{key:2}):g("v-if",!0),R(r.$slots,"tip"),!t(e)&&r.showFileList?(y(),U(ne,{key:3,disabled:t(c),"list-type":r.listType,files:t(h),crossorigin:r.crossorigin,"handle-preview":r.onPreview,onRemove:t(p)},te({_:2},[r.$slots.file?{name:"default",fn:$(({file:P,index:T})=>[R(r.$slots,"file",{file:P,index:T})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):g("v-if",!0)]))}});var pt=M(ct,[["__file","upload.vue"]]);const ht=Ae(pt);export{ht as E};
@@ -1 +1 @@
1
- function h(r,t){F(r)&&(r="100%");var e=I(r);return r=t===360?r:Math.min(t,Math.max(0,parseFloat(r))),e&&(r=parseInt(String(r*t),10)/100),Math.abs(r-t)<1e-6?1:(t===360?r=(r<0?r%t+t:r%t)/parseFloat(String(t)):r=r%t/parseFloat(String(t)),r)}function v(r){return Math.min(1,Math.max(0,r))}function F(r){return typeof r=="string"&&r.indexOf(".")!==-1&&parseFloat(r)===1}function I(r){return typeof r=="string"&&r.indexOf("%")!==-1}function A(r){return r=parseFloat(r),(isNaN(r)||r<0||r>1)&&(r=1),r}function p(r){return r<=1?"".concat(Number(r)*100,"%"):r}function b(r){return r.length===1?"0"+r:String(r)}function E(r,t,e){return{r:h(r,255)*255,g:h(t,255)*255,b:h(e,255)*255}}function M(r,t,e){r=h(r,255),t=h(t,255),e=h(e,255);var a=Math.max(r,t,e),n=Math.min(r,t,e),i=0,f=0,s=(a+n)/2;if(a===n)f=0,i=0;else{var u=a-n;switch(f=s>.5?u/(2-a-n):u/(a+n),a){case r:i=(t-e)/u+(t<e?6:0);break;case t:i=(e-r)/u+2;break;case e:i=(r-t)/u+4;break}i/=6}return{h:i,s:f,l:s}}function l(r,t,e){return e<0&&(e+=1),e>1&&(e-=1),e<1/6?r+(t-r)*(6*e):e<1/2?t:e<2/3?r+(t-r)*(2/3-e)*6:r}function B(r,t,e){var a,n,i;if(r=h(r,360),t=h(t,100),e=h(e,100),t===0)n=e,i=e,a=e;else{var f=e<.5?e*(1+t):e+t-e*t,s=2*e-f;a=l(s,f,r+1/3),n=l(s,f,r),i=l(s,f,r-1/3)}return{r:a*255,g:n*255,b:i*255}}function S(r,t,e){r=h(r,255),t=h(t,255),e=h(e,255);var a=Math.max(r,t,e),n=Math.min(r,t,e),i=0,f=a,s=a-n,u=a===0?0:s/a;if(a===n)i=0;else{switch(a){case r:i=(t-e)/s+(t<e?6:0);break;case t:i=(e-r)/s+2;break;case e:i=(r-t)/s+4;break}i/=6}return{h:i,s:u,v:f}}function N(r,t,e){r=h(r,360)*6,t=h(t,100),e=h(e,100);var a=Math.floor(r),n=r-a,i=e*(1-t),f=e*(1-n*t),s=e*(1-(1-n)*t),u=a%6,H=[e,f,i,i,s,e][u],R=[s,e,e,f,i,i][u],T=[i,i,s,e,e,f][u];return{r:H*255,g:R*255,b:T*255}}function k(r,t,e,a){var n=[b(Math.round(r).toString(16)),b(Math.round(t).toString(16)),b(Math.round(e).toString(16))];return a&&n[0].startsWith(n[0].charAt(1))&&n[1].startsWith(n[1].charAt(1))&&n[2].startsWith(n[2].charAt(1))?n[0].charAt(0)+n[1].charAt(0)+n[2].charAt(0):n.join("")}function P(r,t,e,a,n){var i=[b(Math.round(r).toString(16)),b(Math.round(t).toString(16)),b(Math.round(e).toString(16)),b(j(a))];return n&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function j(r){return Math.round(parseFloat(r)*255).toString(16)}function w(r){return o(r)/255}function o(r){return parseInt(r,16)}function O(r){return{r:r>>16,g:(r&65280)>>8,b:r&255}}var x={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function W(r){var t={r:0,g:0,b:0},e=1,a=null,n=null,i=null,f=!1,s=!1;return typeof r=="string"&&(r=U(r)),typeof r=="object"&&(g(r.r)&&g(r.g)&&g(r.b)?(t=E(r.r,r.g,r.b),f=!0,s=String(r.r).substr(-1)==="%"?"prgb":"rgb"):g(r.h)&&g(r.s)&&g(r.v)?(a=p(r.s),n=p(r.v),t=N(r.h,a,n),f=!0,s="hsv"):g(r.h)&&g(r.s)&&g(r.l)&&(a=p(r.s),i=p(r.l),t=B(r.h,a,i),f=!0,s="hsl"),Object.prototype.hasOwnProperty.call(r,"a")&&(e=r.a)),e=A(e),{ok:f,format:r.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:e}}var G="[-\\+]?\\d+%?",q="[-\\+]?\\d*\\.\\d+%?",d="(?:".concat(q,")|(?:").concat(G,")"),y="[\\s|\\(]+(".concat(d,")[,|\\s]+(").concat(d,")[,|\\s]+(").concat(d,")\\s*\\)?"),m="[\\s|\\(]+(".concat(d,")[,|\\s]+(").concat(d,")[,|\\s]+(").concat(d,")[,|\\s]+(").concat(d,")\\s*\\)?"),c={CSS_UNIT:new RegExp(d),rgb:new RegExp("rgb"+y),rgba:new RegExp("rgba"+m),hsl:new RegExp("hsl"+y),hsla:new RegExp("hsla"+m),hsv:new RegExp("hsv"+y),hsva:new RegExp("hsva"+m),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function U(r){if(r=r.trim().toLowerCase(),r.length===0)return!1;var t=!1;if(x[r])r=x[r],t=!0;else if(r==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var e=c.rgb.exec(r);return e?{r:e[1],g:e[2],b:e[3]}:(e=c.rgba.exec(r),e?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=c.hsl.exec(r),e?{h:e[1],s:e[2],l:e[3]}:(e=c.hsla.exec(r),e?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=c.hsv.exec(r),e?{h:e[1],s:e[2],v:e[3]}:(e=c.hsva.exec(r),e?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=c.hex8.exec(r),e?{r:o(e[1]),g:o(e[2]),b:o(e[3]),a:w(e[4]),format:t?"name":"hex8"}:(e=c.hex6.exec(r),e?{r:o(e[1]),g:o(e[2]),b:o(e[3]),format:t?"name":"hex"}:(e=c.hex4.exec(r),e?{r:o(e[1]+e[1]),g:o(e[2]+e[2]),b:o(e[3]+e[3]),a:w(e[4]+e[4]),format:t?"name":"hex8"}:(e=c.hex3.exec(r),e?{r:o(e[1]+e[1]),g:o(e[2]+e[2]),b:o(e[3]+e[3]),format:t?"name":"hex"}:!1)))))))))}function g(r){return!!c.CSS_UNIT.exec(String(r))}var D=function(){function r(t,e){t===void 0&&(t=""),e===void 0&&(e={});var a;if(t instanceof r)return t;typeof t=="number"&&(t=O(t)),this.originalInput=t;var n=W(t);this.originalInput=t,this.r=n.r,this.g=n.g,this.b=n.b,this.a=n.a,this.roundA=Math.round(100*this.a)/100,this.format=(a=e.format)!==null&&a!==void 0?a:n.format,this.gradientType=e.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=n.ok}return r.prototype.isDark=function(){return this.getBrightness()<128},r.prototype.isLight=function(){return!this.isDark()},r.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},r.prototype.getLuminance=function(){var t=this.toRgb(),e,a,n,i=t.r/255,f=t.g/255,s=t.b/255;return i<=.03928?e=i/12.92:e=Math.pow((i+.055)/1.055,2.4),f<=.03928?a=f/12.92:a=Math.pow((f+.055)/1.055,2.4),s<=.03928?n=s/12.92:n=Math.pow((s+.055)/1.055,2.4),.2126*e+.7152*a+.0722*n},r.prototype.getAlpha=function(){return this.a},r.prototype.setAlpha=function(t){return this.a=A(t),this.roundA=Math.round(100*this.a)/100,this},r.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},r.prototype.toHsv=function(){var t=S(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},r.prototype.toHsvString=function(){var t=S(this.r,this.g,this.b),e=Math.round(t.h*360),a=Math.round(t.s*100),n=Math.round(t.v*100);return this.a===1?"hsv(".concat(e,", ").concat(a,"%, ").concat(n,"%)"):"hsva(".concat(e,", ").concat(a,"%, ").concat(n,"%, ").concat(this.roundA,")")},r.prototype.toHsl=function(){var t=M(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},r.prototype.toHslString=function(){var t=M(this.r,this.g,this.b),e=Math.round(t.h*360),a=Math.round(t.s*100),n=Math.round(t.l*100);return this.a===1?"hsl(".concat(e,", ").concat(a,"%, ").concat(n,"%)"):"hsla(".concat(e,", ").concat(a,"%, ").concat(n,"%, ").concat(this.roundA,")")},r.prototype.toHex=function(t){return t===void 0&&(t=!1),k(this.r,this.g,this.b,t)},r.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},r.prototype.toHex8=function(t){return t===void 0&&(t=!1),P(this.r,this.g,this.b,this.a,t)},r.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},r.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},r.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},r.prototype.toRgbString=function(){var t=Math.round(this.r),e=Math.round(this.g),a=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(e,", ").concat(a,")"):"rgba(".concat(t,", ").concat(e,", ").concat(a,", ").concat(this.roundA,")")},r.prototype.toPercentageRgb=function(){var t=function(e){return"".concat(Math.round(h(e,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},r.prototype.toPercentageRgbString=function(){var t=function(e){return Math.round(h(e,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},r.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+k(this.r,this.g,this.b,!1),e=0,a=Object.entries(x);e<a.length;e++){var n=a[e],i=n[0],f=n[1];if(t===f)return i}return!1},r.prototype.toString=function(t){var e=!!t;t=t??this.format;var a=!1,n=this.a<1&&this.a>=0,i=!e&&n&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(a=this.toRgbString()),t==="prgb"&&(a=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(a=this.toHexString()),t==="hex3"&&(a=this.toHexString(!0)),t==="hex4"&&(a=this.toHex8String(!0)),t==="hex8"&&(a=this.toHex8String()),t==="name"&&(a=this.toName()),t==="hsl"&&(a=this.toHslString()),t==="hsv"&&(a=this.toHsvString()),a||this.toHexString())},r.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},r.prototype.clone=function(){return new r(this.toString())},r.prototype.lighten=function(t){t===void 0&&(t=10);var e=this.toHsl();return e.l+=t/100,e.l=v(e.l),new r(e)},r.prototype.brighten=function(t){t===void 0&&(t=10);var e=this.toRgb();return e.r=Math.max(0,Math.min(255,e.r-Math.round(255*-(t/100)))),e.g=Math.max(0,Math.min(255,e.g-Math.round(255*-(t/100)))),e.b=Math.max(0,Math.min(255,e.b-Math.round(255*-(t/100)))),new r(e)},r.prototype.darken=function(t){t===void 0&&(t=10);var e=this.toHsl();return e.l-=t/100,e.l=v(e.l),new r(e)},r.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},r.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},r.prototype.desaturate=function(t){t===void 0&&(t=10);var e=this.toHsl();return e.s-=t/100,e.s=v(e.s),new r(e)},r.prototype.saturate=function(t){t===void 0&&(t=10);var e=this.toHsl();return e.s+=t/100,e.s=v(e.s),new r(e)},r.prototype.greyscale=function(){return this.desaturate(100)},r.prototype.spin=function(t){var e=this.toHsl(),a=(e.h+t)%360;return e.h=a<0?360+a:a,new r(e)},r.prototype.mix=function(t,e){e===void 0&&(e=50);var a=this.toRgb(),n=new r(t).toRgb(),i=e/100,f={r:(n.r-a.r)*i+a.r,g:(n.g-a.g)*i+a.g,b:(n.b-a.b)*i+a.b,a:(n.a-a.a)*i+a.a};return new r(f)},r.prototype.analogous=function(t,e){t===void 0&&(t=6),e===void 0&&(e=30);var a=this.toHsl(),n=360/e,i=[this];for(a.h=(a.h-(n*t>>1)+720)%360;--t;)a.h=(a.h+n)%360,i.push(new r(a));return i},r.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new r(t)},r.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var e=this.toHsv(),a=e.h,n=e.s,i=e.v,f=[],s=1/t;t--;)f.push(new r({h:a,s:n,v:i})),i=(i+s)%1;return f},r.prototype.splitcomplement=function(){var t=this.toHsl(),e=t.h;return[this,new r({h:(e+72)%360,s:t.s,l:t.l}),new r({h:(e+216)%360,s:t.s,l:t.l})]},r.prototype.onBackground=function(t){var e=this.toRgb(),a=new r(t).toRgb(),n=e.a+a.a*(1-e.a);return new r({r:(e.r*e.a+a.r*a.a*(1-e.a))/n,g:(e.g*e.a+a.g*a.a*(1-e.a))/n,b:(e.b*e.a+a.b*a.a*(1-e.a))/n,a:n})},r.prototype.triad=function(){return this.polyad(3)},r.prototype.tetrad=function(){return this.polyad(4)},r.prototype.polyad=function(t){for(var e=this.toHsl(),a=e.h,n=[this],i=360/t,f=1;f<t;f++)n.push(new r({h:(a+f*i)%360,s:e.s,l:e.l}));return n},r.prototype.equals=function(t){return this.toRgbString()===new r(t).toRgbString()},r}();export{D as T};
1
+ function h(r,t){F(r)&&(r="100%");var e=I(r);return r=t===360?r:Math.min(t,Math.max(0,parseFloat(r))),e&&(r=parseInt(String(r*t),10)/100),Math.abs(r-t)<1e-6?1:(t===360?r=(r<0?r%t+t:r%t)/parseFloat(String(t)):r=r%t/parseFloat(String(t)),r)}function v(r){return Math.min(1,Math.max(0,r))}function F(r){return typeof r=="string"&&r.indexOf(".")!==-1&&parseFloat(r)===1}function I(r){return typeof r=="string"&&r.indexOf("%")!==-1}function A(r){return r=parseFloat(r),(isNaN(r)||r<0||r>1)&&(r=1),r}function p(r){return r<=1?"".concat(Number(r)*100,"%"):r}function b(r){return r.length===1?"0"+r:String(r)}function E(r,t,e){return{r:h(r,255)*255,g:h(t,255)*255,b:h(e,255)*255}}function M(r,t,e){r=h(r,255),t=h(t,255),e=h(e,255);var a=Math.max(r,t,e),n=Math.min(r,t,e),i=0,f=0,s=(a+n)/2;if(a===n)f=0,i=0;else{var u=a-n;switch(f=s>.5?u/(2-a-n):u/(a+n),a){case r:i=(t-e)/u+(t<e?6:0);break;case t:i=(e-r)/u+2;break;case e:i=(r-t)/u+4;break}i/=6}return{h:i,s:f,l:s}}function l(r,t,e){return e<0&&(e+=1),e>1&&(e-=1),e<1/6?r+(t-r)*(6*e):e<1/2?t:e<2/3?r+(t-r)*(2/3-e)*6:r}function B(r,t,e){var a,n,i;if(r=h(r,360),t=h(t,100),e=h(e,100),t===0)n=e,i=e,a=e;else{var f=e<.5?e*(1+t):e+t-e*t,s=2*e-f;a=l(s,f,r+1/3),n=l(s,f,r),i=l(s,f,r-1/3)}return{r:a*255,g:n*255,b:i*255}}function S(r,t,e){r=h(r,255),t=h(t,255),e=h(e,255);var a=Math.max(r,t,e),n=Math.min(r,t,e),i=0,f=a,s=a-n,u=a===0?0:s/a;if(a===n)i=0;else{switch(a){case r:i=(t-e)/s+(t<e?6:0);break;case t:i=(e-r)/s+2;break;case e:i=(r-t)/s+4;break}i/=6}return{h:i,s:u,v:f}}function N(r,t,e){r=h(r,360)*6,t=h(t,100),e=h(e,100);var a=Math.floor(r),n=r-a,i=e*(1-t),f=e*(1-n*t),s=e*(1-(1-n)*t),u=a%6,H=[e,f,i,i,s,e][u],R=[s,e,e,f,i,i][u],T=[i,i,s,e,e,f][u];return{r:H*255,g:R*255,b:T*255}}function k(r,t,e,a){var n=[b(Math.round(r).toString(16)),b(Math.round(t).toString(16)),b(Math.round(e).toString(16))];return a&&n[0].startsWith(n[0].charAt(1))&&n[1].startsWith(n[1].charAt(1))&&n[2].startsWith(n[2].charAt(1))?n[0].charAt(0)+n[1].charAt(0)+n[2].charAt(0):n.join("")}function P(r,t,e,a,n){var i=[b(Math.round(r).toString(16)),b(Math.round(t).toString(16)),b(Math.round(e).toString(16)),b(j(a))];return n&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function j(r){return Math.round(parseFloat(r)*255).toString(16)}function w(r){return o(r)/255}function o(r){return parseInt(r,16)}function O(r){return{r:r>>16,g:(r&65280)>>8,b:r&255}}var x={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function W(r){var t={r:0,g:0,b:0},e=1,a=null,n=null,i=null,f=!1,s=!1;return typeof r=="string"&&(r=U(r)),typeof r=="object"&&(g(r.r)&&g(r.g)&&g(r.b)?(t=E(r.r,r.g,r.b),f=!0,s=String(r.r).substr(-1)==="%"?"prgb":"rgb"):g(r.h)&&g(r.s)&&g(r.v)?(a=p(r.s),n=p(r.v),t=N(r.h,a,n),f=!0,s="hsv"):g(r.h)&&g(r.s)&&g(r.l)&&(a=p(r.s),i=p(r.l),t=B(r.h,a,i),f=!0,s="hsl"),Object.prototype.hasOwnProperty.call(r,"a")&&(e=r.a)),e=A(e),{ok:f,format:r.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:e}}var G="[-\\+]?\\d+%?",q="[-\\+]?\\d*\\.\\d+%?",d="(?:".concat(q,")|(?:").concat(G,")"),y="[\\s|\\(]+(".concat(d,")[,|\\s]+(").concat(d,")[,|\\s]+(").concat(d,")\\s*\\)?"),m="[\\s|\\(]+(".concat(d,")[,|\\s]+(").concat(d,")[,|\\s]+(").concat(d,")[,|\\s]+(").concat(d,")\\s*\\)?"),c={CSS_UNIT:new RegExp(d),rgb:new RegExp("rgb"+y),rgba:new RegExp("rgba"+m),hsl:new RegExp("hsl"+y),hsla:new RegExp("hsla"+m),hsv:new RegExp("hsv"+y),hsva:new RegExp("hsva"+m),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function U(r){if(r=r.trim().toLowerCase(),r.length===0)return!1;var t=!1;if(x[r])r=x[r],t=!0;else if(r==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var e=c.rgb.exec(r);return e?{r:e[1],g:e[2],b:e[3]}:(e=c.rgba.exec(r),e?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=c.hsl.exec(r),e?{h:e[1],s:e[2],l:e[3]}:(e=c.hsla.exec(r),e?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=c.hsv.exec(r),e?{h:e[1],s:e[2],v:e[3]}:(e=c.hsva.exec(r),e?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=c.hex8.exec(r),e?{r:o(e[1]),g:o(e[2]),b:o(e[3]),a:w(e[4]),format:t?"name":"hex8"}:(e=c.hex6.exec(r),e?{r:o(e[1]),g:o(e[2]),b:o(e[3]),format:t?"name":"hex"}:(e=c.hex4.exec(r),e?{r:o(e[1]+e[1]),g:o(e[2]+e[2]),b:o(e[3]+e[3]),a:w(e[4]+e[4]),format:t?"name":"hex8"}:(e=c.hex3.exec(r),e?{r:o(e[1]+e[1]),g:o(e[2]+e[2]),b:o(e[3]+e[3]),format:t?"name":"hex"}:!1)))))))))}function g(r){return!!c.CSS_UNIT.exec(String(r))}var D=(function(){function r(t,e){t===void 0&&(t=""),e===void 0&&(e={});var a;if(t instanceof r)return t;typeof t=="number"&&(t=O(t)),this.originalInput=t;var n=W(t);this.originalInput=t,this.r=n.r,this.g=n.g,this.b=n.b,this.a=n.a,this.roundA=Math.round(100*this.a)/100,this.format=(a=e.format)!==null&&a!==void 0?a:n.format,this.gradientType=e.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=n.ok}return r.prototype.isDark=function(){return this.getBrightness()<128},r.prototype.isLight=function(){return!this.isDark()},r.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},r.prototype.getLuminance=function(){var t=this.toRgb(),e,a,n,i=t.r/255,f=t.g/255,s=t.b/255;return i<=.03928?e=i/12.92:e=Math.pow((i+.055)/1.055,2.4),f<=.03928?a=f/12.92:a=Math.pow((f+.055)/1.055,2.4),s<=.03928?n=s/12.92:n=Math.pow((s+.055)/1.055,2.4),.2126*e+.7152*a+.0722*n},r.prototype.getAlpha=function(){return this.a},r.prototype.setAlpha=function(t){return this.a=A(t),this.roundA=Math.round(100*this.a)/100,this},r.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},r.prototype.toHsv=function(){var t=S(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},r.prototype.toHsvString=function(){var t=S(this.r,this.g,this.b),e=Math.round(t.h*360),a=Math.round(t.s*100),n=Math.round(t.v*100);return this.a===1?"hsv(".concat(e,", ").concat(a,"%, ").concat(n,"%)"):"hsva(".concat(e,", ").concat(a,"%, ").concat(n,"%, ").concat(this.roundA,")")},r.prototype.toHsl=function(){var t=M(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},r.prototype.toHslString=function(){var t=M(this.r,this.g,this.b),e=Math.round(t.h*360),a=Math.round(t.s*100),n=Math.round(t.l*100);return this.a===1?"hsl(".concat(e,", ").concat(a,"%, ").concat(n,"%)"):"hsla(".concat(e,", ").concat(a,"%, ").concat(n,"%, ").concat(this.roundA,")")},r.prototype.toHex=function(t){return t===void 0&&(t=!1),k(this.r,this.g,this.b,t)},r.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},r.prototype.toHex8=function(t){return t===void 0&&(t=!1),P(this.r,this.g,this.b,this.a,t)},r.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},r.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},r.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},r.prototype.toRgbString=function(){var t=Math.round(this.r),e=Math.round(this.g),a=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(e,", ").concat(a,")"):"rgba(".concat(t,", ").concat(e,", ").concat(a,", ").concat(this.roundA,")")},r.prototype.toPercentageRgb=function(){var t=function(e){return"".concat(Math.round(h(e,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},r.prototype.toPercentageRgbString=function(){var t=function(e){return Math.round(h(e,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},r.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+k(this.r,this.g,this.b,!1),e=0,a=Object.entries(x);e<a.length;e++){var n=a[e],i=n[0],f=n[1];if(t===f)return i}return!1},r.prototype.toString=function(t){var e=!!t;t=t??this.format;var a=!1,n=this.a<1&&this.a>=0,i=!e&&n&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(a=this.toRgbString()),t==="prgb"&&(a=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(a=this.toHexString()),t==="hex3"&&(a=this.toHexString(!0)),t==="hex4"&&(a=this.toHex8String(!0)),t==="hex8"&&(a=this.toHex8String()),t==="name"&&(a=this.toName()),t==="hsl"&&(a=this.toHslString()),t==="hsv"&&(a=this.toHsvString()),a||this.toHexString())},r.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},r.prototype.clone=function(){return new r(this.toString())},r.prototype.lighten=function(t){t===void 0&&(t=10);var e=this.toHsl();return e.l+=t/100,e.l=v(e.l),new r(e)},r.prototype.brighten=function(t){t===void 0&&(t=10);var e=this.toRgb();return e.r=Math.max(0,Math.min(255,e.r-Math.round(255*-(t/100)))),e.g=Math.max(0,Math.min(255,e.g-Math.round(255*-(t/100)))),e.b=Math.max(0,Math.min(255,e.b-Math.round(255*-(t/100)))),new r(e)},r.prototype.darken=function(t){t===void 0&&(t=10);var e=this.toHsl();return e.l-=t/100,e.l=v(e.l),new r(e)},r.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},r.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},r.prototype.desaturate=function(t){t===void 0&&(t=10);var e=this.toHsl();return e.s-=t/100,e.s=v(e.s),new r(e)},r.prototype.saturate=function(t){t===void 0&&(t=10);var e=this.toHsl();return e.s+=t/100,e.s=v(e.s),new r(e)},r.prototype.greyscale=function(){return this.desaturate(100)},r.prototype.spin=function(t){var e=this.toHsl(),a=(e.h+t)%360;return e.h=a<0?360+a:a,new r(e)},r.prototype.mix=function(t,e){e===void 0&&(e=50);var a=this.toRgb(),n=new r(t).toRgb(),i=e/100,f={r:(n.r-a.r)*i+a.r,g:(n.g-a.g)*i+a.g,b:(n.b-a.b)*i+a.b,a:(n.a-a.a)*i+a.a};return new r(f)},r.prototype.analogous=function(t,e){t===void 0&&(t=6),e===void 0&&(e=30);var a=this.toHsl(),n=360/e,i=[this];for(a.h=(a.h-(n*t>>1)+720)%360;--t;)a.h=(a.h+n)%360,i.push(new r(a));return i},r.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new r(t)},r.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var e=this.toHsv(),a=e.h,n=e.s,i=e.v,f=[],s=1/t;t--;)f.push(new r({h:a,s:n,v:i})),i=(i+s)%1;return f},r.prototype.splitcomplement=function(){var t=this.toHsl(),e=t.h;return[this,new r({h:(e+72)%360,s:t.s,l:t.l}),new r({h:(e+216)%360,s:t.s,l:t.l})]},r.prototype.onBackground=function(t){var e=this.toRgb(),a=new r(t).toRgb(),n=e.a+a.a*(1-e.a);return new r({r:(e.r*e.a+a.r*a.a*(1-e.a))/n,g:(e.g*e.a+a.g*a.a*(1-e.a))/n,b:(e.b*e.a+a.b*a.a*(1-e.a))/n,a:n})},r.prototype.triad=function(){return this.polyad(3)},r.prototype.tetrad=function(){return this.polyad(4)},r.prototype.polyad=function(t){for(var e=this.toHsl(),a=e.h,n=[this],i=360/t,f=1;f<t;f++)n.push(new r({h:(a+f*i)%360,s:e.s,l:e.l}));return n},r.prototype.equals=function(t){return this.toRgbString()===new r(t).toRgbString()},r})();export{D as T};
@@ -1 +1 @@
1
- import{K as M,H as B,M as A,U as T,I as y,z as N,J as j,S as z,y as V,bj as U,N as W,bt as G,R as L,a_ as q,A as J}from"./index-ak3wrFnL.js";import{m as Q}from"./typescript-BielEcXb.js";import{S as R,g as X,r as K,w as Y,f as d,p as Z,W as k,d as E,I as D,x as g,z as _,Q as f,u as e,e as ee,E as h,C as x,K as se,F as te,y as P,q as ae,V as oe,U as le,M as ne,G as ie,L as ce}from"./vendor-vue-CpN3YBVJ.js";import{c as $}from"./castArray-DsfWcMKC.js";import{E as re}from"./index-BBmh0RLR.js";const S=t=>M(t)||R(t)||X(t),de=B({accordion:Boolean,modelValue:{type:y([Array,String,Number]),default:()=>Q([])},expandIconPosition:{type:y([String]),default:"right"},beforeCollapse:{type:y(Function)}}),ue={[T]:S,[A]:S},F=Symbol("collapseContextKey"),pe="ElCollapse",me=(t,n)=>{const a=K($(t.modelValue)),i=o=>{a.value=o;const l=t.accordion?a.value[0]:a.value;n(T,l),n(A,l)},s=o=>{if(t.accordion)i([a.value[0]===o?"":o]);else{const l=[...a.value],r=l.indexOf(o);r>-1?l.splice(r,1):l.push(o),i(l)}},c=async o=>{const{beforeCollapse:l}=t;if(!l){s(o);return}const r=l(o);[k(r),j(r)].includes(!0)||z(pe,"beforeCollapse must return type `Promise<boolean>` or `boolean`"),k(r)?r.then(p=>{p!==!1&&s(o)}).catch(p=>{}):r&&s(o)};return Y(()=>t.modelValue,()=>a.value=$(t.modelValue),{deep:!0}),Z(F,{activeNames:a,handleItemClick:c}),{activeNames:a,setActiveNames:i}},fe=t=>{const n=N("collapse");return{rootKls:d(()=>[n.b(),n.b(`icon-position-${t.expandIconPosition}`)])}},ve=E({name:"ElCollapse"}),Ce=E({...ve,props:de,emits:ue,setup(t,{expose:n,emit:a}){const i=t,{activeNames:s,setActiveNames:c}=me(i,a),{rootKls:o}=fe(i);return n({activeNames:s,setActiveNames:c}),(l,r)=>(g(),D("div",{class:f(e(o))},[_(l.$slots,"default")],2))}});var be=V(Ce,[["__file","collapse.vue"]]);const he=B({title:{type:String,default:""},name:{type:y([String,Number]),default:void 0},icon:{type:W,default:U},disabled:Boolean}),ye=t=>{const n=ee(F),{namespace:a}=N("collapse"),i=K(!1),s=K(!1),c=G(),o=d(()=>c.current++),l=d(()=>{var u;return(u=t.name)!=null?u:`${a.value}-id-${c.prefix}-${e(o)}`}),r=d(()=>n?.activeNames.value.includes(e(l)));return{focusing:i,id:o,isActive:r,handleFocus:()=>{setTimeout(()=>{s.value?s.value=!1:i.value=!0},50)},handleHeaderClick:u=>{if(t.disabled)return;const m=u.target;m?.closest("input, textarea, select")||(n?.handleItemClick(e(l)),i.value=!1,s.value=!0)},handleEnterClick:u=>{const m=u.target;m?.closest("input, textarea, select")||(u.preventDefault(),n?.handleItemClick(e(l)))}}},_e=(t,{focusing:n,isActive:a,id:i})=>{const s=N("collapse"),c=d(()=>[s.b("item"),s.is("active",e(a)),s.is("disabled",t.disabled)]),o=d(()=>[s.be("item","header"),s.is("active",e(a)),{focusing:e(n)&&!t.disabled}]),l=d(()=>[s.be("item","arrow"),s.is("active",e(a))]),r=d(()=>[s.be("item","title")]),C=d(()=>s.be("item","wrap")),p=d(()=>s.be("item","content")),b=d(()=>s.b(`content-${e(i)}`)),u=d(()=>s.b(`head-${e(i)}`));return{itemTitleKls:r,arrowKls:l,headKls:o,rootKls:c,itemWrapperKls:C,itemContentKls:p,scopedContentId:b,scopedHeadId:u}},Ee=E({name:"ElCollapseItem"}),Ie=E({...Ee,props:he,setup(t,{expose:n}){const a=t,{focusing:i,id:s,isActive:c,handleFocus:o,handleHeaderClick:l,handleEnterClick:r}=ye(a),{arrowKls:C,headKls:p,rootKls:b,itemTitleKls:u,itemWrapperKls:m,itemContentKls:O,scopedContentId:I,scopedHeadId:w}=_e(a,{focusing:i,isActive:c,id:s});return n({isActive:c}),(v,Ke)=>(g(),D("div",{class:f(e(b))},[h("div",{id:e(w),class:f(e(p)),"aria-expanded":e(c),"aria-controls":e(I),"aria-describedby":e(I),tabindex:v.disabled?-1:0,role:"button",onClick:e(l),onKeydown:le(ne(e(r),["stop"]),["space","enter"]),onFocus:e(o),onBlur:ge=>i.value=!1},[h("span",{class:f(e(u))},[_(v.$slots,"title",{isActive:e(c)},()=>[se(te(v.title),1)])],2),_(v.$slots,"icon",{isActive:e(c)},()=>[x(e(L),{class:f(e(C))},{default:P(()=>[(g(),ae(oe(v.icon)))]),_:1},8,["class"])])],42,["id","aria-expanded","aria-controls","aria-describedby","tabindex","onClick","onKeydown","onFocus","onBlur"]),x(e(re),null,{default:P(()=>[ie(h("div",{id:e(I),role:"region",class:f(e(m)),"aria-hidden":!e(c),"aria-labelledby":e(w)},[h("div",{class:f(e(O))},[_(v.$slots,"default")],2)],10,["id","aria-hidden","aria-labelledby"]),[[ce,e(c)]])]),_:3})],2))}});var H=V(Ie,[["__file","collapse-item.vue"]]);const $e=J(be,{CollapseItem:H}),Se=q(H);export{Se as E,$e as a};
1
+ import{M as S,U as T,L as M,H as A,I as y,z as N,K as j,T as z,y as V,bl as L,N as U,bv as W,R as G,a_ as q,A as Q}from"./index-CiL5zS_Y.js";import{m as R}from"./typescript-D5Znjm8Y.js";import{S as J,g as X,b as K,w as Y,c as d,p as Z,W as k,d as E,q as g,H as D,z as _,Q as f,u as e,i as ee,E as h,I as se,F as te,C as x,y as P,x as ae,V as oe,U as le,M as ne,G as ie,L as ce}from"./vendor-vue-C5BV5QrY.js";import{c as $}from"./castArray-DOHoOdv9.js";import{E as re}from"./index-CKOU1IRF.js";const B=t=>M(t)||J(t)||X(t),de=A({accordion:Boolean,modelValue:{type:y([Array,String,Number]),default:()=>R([])},expandIconPosition:{type:y([String]),default:"right"},beforeCollapse:{type:y(Function)}}),ue={[T]:B,[S]:B},F=Symbol("collapseContextKey"),pe="ElCollapse",me=(t,n)=>{const a=K($(t.modelValue)),i=o=>{a.value=o;const l=t.accordion?a.value[0]:a.value;n(T,l),n(S,l)},s=o=>{if(t.accordion)i([a.value[0]===o?"":o]);else{const l=[...a.value],r=l.indexOf(o);r>-1?l.splice(r,1):l.push(o),i(l)}},c=async o=>{const{beforeCollapse:l}=t;if(!l){s(o);return}const r=l(o);[k(r),j(r)].includes(!0)||z(pe,"beforeCollapse must return type `Promise<boolean>` or `boolean`"),k(r)?r.then(p=>{p!==!1&&s(o)}).catch(p=>{}):r&&s(o)};return Y(()=>t.modelValue,()=>a.value=$(t.modelValue),{deep:!0}),Z(F,{activeNames:a,handleItemClick:c}),{activeNames:a,setActiveNames:i}},fe=t=>{const n=N("collapse");return{rootKls:d(()=>[n.b(),n.b(`icon-position-${t.expandIconPosition}`)])}},ve=E({name:"ElCollapse"}),Ce=E({...ve,props:de,emits:ue,setup(t,{expose:n,emit:a}){const i=t,{activeNames:s,setActiveNames:c}=me(i,a),{rootKls:o}=fe(i);return n({activeNames:s,setActiveNames:c}),(l,r)=>(g(),D("div",{class:f(e(o))},[_(l.$slots,"default")],2))}});var be=V(Ce,[["__file","collapse.vue"]]);const he=A({title:{type:String,default:""},name:{type:y([String,Number]),default:void 0},icon:{type:U,default:L},disabled:Boolean}),ye=t=>{const n=ee(F),{namespace:a}=N("collapse"),i=K(!1),s=K(!1),c=W(),o=d(()=>c.current++),l=d(()=>{var u;return(u=t.name)!=null?u:`${a.value}-id-${c.prefix}-${e(o)}`}),r=d(()=>n?.activeNames.value.includes(e(l)));return{focusing:i,id:o,isActive:r,handleFocus:()=>{setTimeout(()=>{s.value?s.value=!1:i.value=!0},50)},handleHeaderClick:u=>{if(t.disabled)return;const m=u.target;m?.closest("input, textarea, select")||(n?.handleItemClick(e(l)),i.value=!1,s.value=!0)},handleEnterClick:u=>{const m=u.target;m?.closest("input, textarea, select")||(u.preventDefault(),n?.handleItemClick(e(l)))}}},_e=(t,{focusing:n,isActive:a,id:i})=>{const s=N("collapse"),c=d(()=>[s.b("item"),s.is("active",e(a)),s.is("disabled",t.disabled)]),o=d(()=>[s.be("item","header"),s.is("active",e(a)),{focusing:e(n)&&!t.disabled}]),l=d(()=>[s.be("item","arrow"),s.is("active",e(a))]),r=d(()=>[s.be("item","title")]),C=d(()=>s.be("item","wrap")),p=d(()=>s.be("item","content")),b=d(()=>s.b(`content-${e(i)}`)),u=d(()=>s.b(`head-${e(i)}`));return{itemTitleKls:r,arrowKls:l,headKls:o,rootKls:c,itemWrapperKls:C,itemContentKls:p,scopedContentId:b,scopedHeadId:u}},Ee=E({name:"ElCollapseItem"}),Ie=E({...Ee,props:he,setup(t,{expose:n}){const a=t,{focusing:i,id:s,isActive:c,handleFocus:o,handleHeaderClick:l,handleEnterClick:r}=ye(a),{arrowKls:C,headKls:p,rootKls:b,itemTitleKls:u,itemWrapperKls:m,itemContentKls:O,scopedContentId:I,scopedHeadId:w}=_e(a,{focusing:i,isActive:c,id:s});return n({isActive:c}),(v,Ke)=>(g(),D("div",{class:f(e(b))},[h("div",{id:e(w),class:f(e(p)),"aria-expanded":e(c),"aria-controls":e(I),"aria-describedby":e(I),tabindex:v.disabled?-1:0,role:"button",onClick:e(l),onKeydown:le(ne(e(r),["stop"]),["space","enter"]),onFocus:e(o),onBlur:ge=>i.value=!1},[h("span",{class:f(e(u))},[_(v.$slots,"title",{isActive:e(c)},()=>[se(te(v.title),1)])],2),_(v.$slots,"icon",{isActive:e(c)},()=>[x(e(G),{class:f(e(C))},{default:P(()=>[(g(),ae(oe(v.icon)))]),_:1},8,["class"])])],42,["id","aria-expanded","aria-controls","aria-describedby","tabindex","onClick","onKeydown","onFocus","onBlur"]),x(e(re),null,{default:P(()=>[ie(h("div",{id:e(I),role:"region",class:f(e(m)),"aria-hidden":!e(c),"aria-labelledby":e(w)},[h("div",{class:f(e(O))},[_(v.$slots,"default")],2)],10,["id","aria-hidden","aria-labelledby"]),[[ce,e(c)]])]),_:3})],2))}});var H=V(Ie,[["__file","collapse-item.vue"]]);const $e=Q(be,{CollapseItem:H}),Be=q(H);export{Be as E,$e as a};
@@ -0,0 +1 @@
1
+ import{b as r,c as d,E as T}from"./index-BNeGq9PP.js";import{d as f}from"./dropdown-OsM0Nuqn.js";import{K as R,H as U,y as K,z as $,S as D,A as H,aO as O}from"./index-CiL5zS_Y.js";import{d as y,q as u,x as V,y as c,z as v,J as b,H as z,Q as I,u as p,F as g,I as F,A as L,c as n,b as q}from"./vendor-vue-C5BV5QrY.js";const J=U({trigger:d.trigger,triggerKeys:d.triggerKeys,placement:f.placement,disabled:d.disabled,visible:r.visible,transition:r.transition,popperOptions:f.popperOptions,tabindex:f.tabindex,content:r.content,popperStyle:r.popperStyle,popperClass:r.popperClass,enterable:{...r.enterable,default:!0},effect:{...r.effect,default:"light"},teleported:r.teleported,appendTo:r.appendTo,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),Q={"update:visible":t=>R(t),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},j="onUpdate:visible",G=y({name:"ElPopover"}),M=y({...G,props:J,emits:Q,setup(t,{expose:s,emit:a}){const o=t,h=n(()=>o[j]),i=$("popover"),l=q(),w=n(()=>{var e;return(e=p(l))==null?void 0:e.popperRef}),E=n(()=>[{width:D(o.width)},o.popperStyle]),P=n(()=>[i.b(),o.popperClass,{[i.m("plain")]:!!o.content}]),C=n(()=>o.transition===`${i.namespace.value}-fade-in-linear`),S=()=>{var e;(e=l.value)==null||e.hide()},k=()=>{a("before-enter")},A=()=>{a("before-leave")},B=()=>{a("after-enter")},N=()=>{a("update:visible",!1),a("after-leave")};return s({popperRef:w,hide:S}),(e,_)=>(u(),V(p(T),L({ref_key:"tooltipRef",ref:l},e.$attrs,{trigger:e.trigger,"trigger-keys":e.triggerKeys,placement:e.placement,disabled:e.disabled,visible:e.visible,transition:e.transition,"popper-options":e.popperOptions,tabindex:e.tabindex,content:e.content,offset:e.offset,"show-after":e.showAfter,"hide-after":e.hideAfter,"auto-close":e.autoClose,"show-arrow":e.showArrow,"aria-label":e.title,effect:e.effect,enterable:e.enterable,"popper-class":p(P),"popper-style":p(E),teleported:e.teleported,"append-to":e.appendTo,persistent:e.persistent,"gpu-acceleration":p(C),"onUpdate:visible":p(h),onBeforeShow:k,onBeforeHide:A,onShow:B,onHide:N}),{content:c(()=>[e.title?(u(),z("div",{key:0,class:I(p(i).e("title")),role:"title"},g(e.title),3)):b("v-if",!0),v(e.$slots,"default",{},()=>[F(g(e.content),1)])]),default:c(()=>[e.$slots.reference?v(e.$slots,"reference",{key:0}):b("v-if",!0)]),_:3},16,["trigger","trigger-keys","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","append-to","persistent","gpu-acceleration","onUpdate:visible"]))}});var W=K(M,[["__file","popover.vue"]]);const m=(t,s)=>{const a=s.arg||s.value,o=a?.popperRef;o&&(o.triggerRef=t)};var X={mounted(t,s){m(t,s)},updated(t,s){m(t,s)}};const Y="popover",Z=O(X,Y),re=H(W,{directive:Z});export{re as E};
@@ -1 +1 @@
1
- import{aq as T,ao as n,a6 as f,ax as u}from"./index-ak3wrFnL.js";import{V as g}from"./veo-Bf1gjuGB.js";import{s as b}from"./service-DSCzWYou.js";import{v as S}from"./veo-C7ffXTRz.js";import{m as w}from"./merge-C5jDS2au.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-dayjs-D7e3rSuL.js";import"./vendor-vue-router-DjvMdekB.js";const C=({commit:t})=>{t("resetAll")},I=async({commit:t,dispatch:e},s)=>{if(console.debug("set application",s),t("setApplication",s),!s){console.debug("application is null, return");return}const o=s?.credentials?.find(a=>a?.host===window.location.origin);o?(console.debug("credential exists, set credential",o),t("setCredential",o)):(console.debug("credential not exists, start to create credential for application",s),await e("createCredential"))},$=async({commit:t},e)=>{console.debug("set applications",e),t("setApplications",e)},h=async({commit:t},e)=>{console.debug("set service",e),t("setService",e)},y=async({commit:t},e)=>{console.debug("set credential",e),t("setCredential",e)},x=async({commit:t,state:e})=>{const s=e.application;if(console.debug("prepare to create credential for application",s),!s){console.error("Application not found");return}console.debug("creating create credential for application",s);const{data:o}=await T.create({application_id:s?.id,host:window.location.origin});return console.debug("created credential success",o),t("setCredential",o),console.debug("end createCredential"),o},O=async({commit:t,state:e})=>{e.status.getService=n.Request;try{const{data:s}=await b.get(g);return e.status.getService=n.Success,t("setService",s),s}catch{e.status.getService=n.Error,t("setService",void 0)}},E=async({commit:t,state:e,rootState:s})=>{console.debug("start to get applications for chat"),e.status.getApplications=n.Request;const o=e.application;console.debug("current application",o);try{const{data:a}=await f.getAll({user_id:s?.user?.id,service_id:g});return e.status.getApplications=n.Success,t("setApplications",a.items),a.items}catch(a){console.error("get applications failed",a),e.status.getApplications=n.Error,t("setApplications",void 0),t("setApplication",void 0)}},_=({commit:t},e)=>{t("setConfig",e)},P=({commit:t},e)=>{t("setTasks",e)},q=({commit:t},e)=>{t("setTasksItems",e)},R=({commit:t},e)=>{t("setTasksTotal",e)},V=({commit:t},e)=>{t("setTasksActive",e)},D=async({commit:t,state:e,rootState:s},{offset:o,limit:a,createdAtMin:k,createdAtMax:v})=>new Promise((m,c)=>{console.debug("start to get tasks",o,a);const r=e.credential;console.debug("current credential",r);const l=r?.token;if(!l)return c("no token");S.tasks({userId:s?.user?.id,createdAtMin:k,createdAtMax:v,type:"videos"},{token:l}).then(i=>{console.debug("get videos tasks success",i.data.items);const p=e?.tasks?.items||[];console.debug("existing items",p);const d=i.data.items||[];console.debug("new items",d);const A=w(p,d);t("setTasksItems",A),t("setTasksTotal",i.data.count),m(i.data.items)}).catch(i=>c(i))}),L={setService:h,getService:O,resetAll:C,setCredential:y,setConfig:_,setApplication:I,setApplications:$,getApplications:E,setTasks:P,setTasksItems:q,setTasksTotal:R,setTasksActive:V,getTasks:D,createCredential:x},j=t=>{Object.assign(t,u())},z=(t,e)=>{t.service=e},B=(t,e)=>{t.credential=e},F=(t,e)=>{t.application=e},G=(t,e)=>{t.applications=e},H=(t,e)=>{t.config=e},J=(t,e)=>{const s={...t.tasks,items:e};t.tasks=s},K=(t,e)=>{const s={...t.tasks,total:e};t.tasks=s},M=(t,e)=>{const s={...t.tasks,active:e};t.tasks=s},N=(t,e)=>{t.tasks=e},Q={setTasks:N,setApplication:F,setApplications:G,setConfig:H,setCredential:B,setService:z,setTasksActive:M,setTasksItems:J,setTasksTotal:K,resetAll:j},at={namespaced:!0,state:u,mutations:Q,actions:L};export{at as default,at as veo};
1
+ import{aq as T,ao as n,a6 as f,ax as u}from"./index-CiL5zS_Y.js";import{V as g}from"./veo-Bf1gjuGB.js";import{s as b}from"./service-Dw0Kg7uB.js";import{v as S}from"./veo-CmvfIRv-.js";import{m as w}from"./merge-C5jDS2au.js";import"./vendor-vue-C5BV5QrY.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-dayjs-Cvgzdobq.js";import"./vendor-vue-router-Bl-Po99g.js";const C=({commit:t})=>{t("resetAll")},I=async({commit:t,dispatch:e},s)=>{if(console.debug("set application",s),t("setApplication",s),!s){console.debug("application is null, return");return}const o=s?.credentials?.find(a=>a?.host===window.location.origin);o?(console.debug("credential exists, set credential",o),t("setCredential",o)):(console.debug("credential not exists, start to create credential for application",s),await e("createCredential"))},$=async({commit:t},e)=>{console.debug("set applications",e),t("setApplications",e)},h=async({commit:t},e)=>{console.debug("set service",e),t("setService",e)},y=async({commit:t},e)=>{console.debug("set credential",e),t("setCredential",e)},x=async({commit:t,state:e})=>{const s=e.application;if(console.debug("prepare to create credential for application",s),!s){console.error("Application not found");return}console.debug("creating create credential for application",s);const{data:o}=await T.create({application_id:s?.id,host:window.location.origin});return console.debug("created credential success",o),t("setCredential",o),console.debug("end createCredential"),o},O=async({commit:t,state:e})=>{e.status.getService=n.Request;try{const{data:s}=await b.get(g);return e.status.getService=n.Success,t("setService",s),s}catch{e.status.getService=n.Error,t("setService",void 0)}},E=async({commit:t,state:e,rootState:s})=>{console.debug("start to get applications for chat"),e.status.getApplications=n.Request;const o=e.application;console.debug("current application",o);try{const{data:a}=await f.getAll({user_id:s?.user?.id,service_id:g});return e.status.getApplications=n.Success,t("setApplications",a.items),a.items}catch(a){console.error("get applications failed",a),e.status.getApplications=n.Error,t("setApplications",void 0),t("setApplication",void 0)}},_=({commit:t},e)=>{t("setConfig",e)},P=({commit:t},e)=>{t("setTasks",e)},q=({commit:t},e)=>{t("setTasksItems",e)},R=({commit:t},e)=>{t("setTasksTotal",e)},V=({commit:t},e)=>{t("setTasksActive",e)},D=async({commit:t,state:e,rootState:s},{offset:o,limit:a,createdAtMin:k,createdAtMax:v})=>new Promise((m,c)=>{console.debug("start to get tasks",o,a);const r=e.credential;console.debug("current credential",r);const l=r?.token;if(!l)return c("no token");S.tasks({userId:s?.user?.id,createdAtMin:k,createdAtMax:v,type:"videos"},{token:l}).then(i=>{console.debug("get videos tasks success",i.data.items);const p=e?.tasks?.items||[];console.debug("existing items",p);const d=i.data.items||[];console.debug("new items",d);const A=w(p,d);t("setTasksItems",A),t("setTasksTotal",i.data.count),m(i.data.items)}).catch(i=>c(i))}),L={setService:h,getService:O,resetAll:C,setCredential:y,setConfig:_,setApplication:I,setApplications:$,getApplications:E,setTasks:P,setTasksItems:q,setTasksTotal:R,setTasksActive:V,getTasks:D,createCredential:x},j=t=>{Object.assign(t,u())},z=(t,e)=>{t.service=e},B=(t,e)=>{t.credential=e},F=(t,e)=>{t.application=e},G=(t,e)=>{t.applications=e},H=(t,e)=>{t.config=e},J=(t,e)=>{const s={...t.tasks,items:e};t.tasks=s},K=(t,e)=>{const s={...t.tasks,total:e};t.tasks=s},M=(t,e)=>{const s={...t.tasks,active:e};t.tasks=s},N=(t,e)=>{t.tasks=e},Q={setTasks:N,setApplication:F,setApplications:G,setConfig:H,setCredential:B,setService:z,setTasksActive:M,setTasksItems:J,setTasksTotal:K,resetAll:j},at={namespaced:!0,state:u,mutations:Q,actions:L};export{at as default,at as veo};
@@ -1 +1 @@
1
- import{g}from"./vendor-vue-CpN3YBVJ.js";import{a as x,b as C}from"./index-ak3wrFnL.js";const s=new Map;if(C){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const n of s.values())for(const{documentHandler:o}of n)o(t,e);e=void 0}})}function i(e,t){let n=[];return g(t.arg)?n=t.arg:x(t.arg)&&n.push(t.arg),function(o,a){const r=t.instance.popperRef,c=o.target,d=a?.target,l=!t||!t.instance,f=!c||!d,p=e.contains(c)||e.contains(d),m=e===c,h=n.length&&n.some(u=>u?.contains(c))||n.length&&n.includes(d),v=r&&(r.contains(c)||r.contains(d));l||f||p||m||h||v||t.value(o,a)}}const T={beforeMount(e,t){s.has(e)||s.set(e,[]),s.get(e).push({documentHandler:i(e,t),bindingFn:t.value})},updated(e,t){s.has(e)||s.set(e,[]);const n=s.get(e),o=n.findIndex(r=>r.bindingFn===t.oldValue),a={documentHandler:i(e,t),bindingFn:t.value};o>=0?n.splice(o,1,a):n.push(a)},unmounted(e){s.delete(e)}};export{T as C};
1
+ import{g}from"./vendor-vue-C5BV5QrY.js";import{a as x,b as C}from"./index-CiL5zS_Y.js";const s=new Map;if(C){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const n of s.values())for(const{documentHandler:o}of n)o(t,e);e=void 0}})}function i(e,t){let n=[];return g(t.arg)?n=t.arg:x(t.arg)&&n.push(t.arg),function(o,a){const r=t.instance.popperRef,c=o.target,d=a?.target,l=!t||!t.instance,f=!c||!d,p=e.contains(c)||e.contains(d),m=e===c,h=n.length&&n.some(u=>u?.contains(c))||n.length&&n.includes(d),v=r&&(r.contains(c)||r.contains(d));l||f||p||m||h||v||t.value(o,a)}}const T={beforeMount(e,t){s.has(e)||s.set(e,[]),s.get(e).push({documentHandler:i(e,t),bindingFn:t.value})},updated(e,t){s.has(e)||s.set(e,[]);const n=s.get(e),o=n.findIndex(r=>r.bindingFn===t.oldValue),a={documentHandler:i(e,t),bindingFn:t.value};o>=0?n.splice(o,1,a):n.push(a)},unmounted(e){s.delete(e)}};export{T as C};
@@ -1 +1 @@
1
- import{aq as T,ao as i,a6 as f,aM as u}from"./index-ak3wrFnL.js";import{W as g}from"./wan-DKq-jYOo.js";import{s as b}from"./service-DSCzWYou.js";import{w}from"./wan-CzRzbYcW.js";import{m as S}from"./merge-C5jDS2au.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-dayjs-D7e3rSuL.js";import"./vendor-vue-router-DjvMdekB.js";const C=({commit:t})=>{t("resetAll")},I=async({commit:t,dispatch:e},s)=>{if(console.debug("set application",s),t("setApplication",s),!s){console.debug("application is null, return");return}const a=s?.credentials?.find(n=>n?.host===window.location.origin);a?(console.debug("credential exists, set credential",a),t("setCredential",a)):(console.debug("credential not exists, start to create credential for application",s),await e("createCredential"))},$=async({commit:t},e)=>{console.debug("set applications",e),t("setApplications",e)},h=async({commit:t},e)=>{console.debug("set service",e),t("setService",e)},y=async({commit:t},e)=>{console.debug("set credential",e),t("setCredential",e)},x=async({commit:t,state:e})=>{const s=e.application;if(console.debug("prepare to create credential for application",s),!s){console.error("Application not found");return}console.debug("creating create credential for application",s);const{data:a}=await T.create({application_id:s?.id,host:window.location.origin});return console.debug("created credential success",a),t("setCredential",a),console.debug("end createCredential"),a},O=async({commit:t,state:e})=>{e.status.getService=i.Request;try{const{data:s}=await b.get(g);return e.status.getService=i.Success,t("setService",s),s}catch{e.status.getService=i.Error,t("setService",void 0)}},_=async({commit:t,state:e,rootState:s})=>{console.debug("start to get applications for chat"),e.status.getApplications=i.Request;const a=e.application;console.debug("current application",a);try{const{data:n}=await f.getAll({user_id:s?.user?.id,service_id:g});return e.status.getApplications=i.Success,t("setApplications",n.items),n.items}catch(n){console.error("get applications failed",n),e.status.getApplications=i.Error,t("setApplications",void 0),t("setApplication",void 0)}},E=({commit:t},e)=>{t("setConfig",e)},P=({commit:t},e)=>{t("setTasks",e)},q=({commit:t},e)=>{t("setTasksItems",e)},R=({commit:t},e)=>{t("setTasksTotal",e)},W=({commit:t},e)=>{t("setTasksActive",e)},D=async({commit:t,state:e,rootState:s},{offset:a,limit:n,createdAtMin:k,createdAtMax:A})=>new Promise((m,c)=>{console.debug("start to get tasks",a,n);const r=e.credential;console.debug("current credential",r);const l=r?.token;if(!l)return c("no token");w.tasks({userId:s?.user?.id,createdAtMin:k,createdAtMax:A,type:"videos"},{token:l}).then(o=>{console.debug("get videos tasks success",o.data.items);const p=e?.tasks?.items||[];console.debug("existing items",p);const d=o.data.items||[];console.debug("new items",d);const v=S(p,d);t("setTasksItems",v),t("setTasksTotal",o.data.count),m(o.data.items)}).catch(o=>c(o))}),L={setService:h,getService:O,resetAll:C,setCredential:y,setConfig:E,setApplication:I,setApplications:$,getApplications:_,setTasks:P,setTasksItems:q,setTasksTotal:R,setTasksActive:W,getTasks:D,createCredential:x},M=t=>{Object.assign(t,u())},N=(t,e)=>{t.service=e},V=(t,e)=>{t.credential=e},j=(t,e)=>{t.application=e},z=(t,e)=>{t.applications=e},B=(t,e)=>{t.config=e},F=(t,e)=>{const s={...t.tasks,items:e};t.tasks=s},G=(t,e)=>{const s={...t.tasks,total:e};t.tasks=s},H=(t,e)=>{const s={...t.tasks,active:e};t.tasks=s},J=(t,e)=>{t.tasks=e},K={setTasks:J,setApplication:j,setApplications:z,setConfig:B,setCredential:V,setService:N,setTasksActive:H,setTasksItems:F,setTasksTotal:G,resetAll:M},nt={namespaced:!0,state:u,mutations:K,actions:L};export{nt as default,nt as wan};
1
+ import{aq as T,ao as i,a6 as f,aM as u}from"./index-CiL5zS_Y.js";import{W as g}from"./wan-DKq-jYOo.js";import{s as b}from"./service-Dw0Kg7uB.js";import{w}from"./wan-DFnSTm2j.js";import{m as S}from"./merge-C5jDS2au.js";import"./vendor-vue-C5BV5QrY.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-dayjs-Cvgzdobq.js";import"./vendor-vue-router-Bl-Po99g.js";const C=({commit:t})=>{t("resetAll")},I=async({commit:t,dispatch:e},s)=>{if(console.debug("set application",s),t("setApplication",s),!s){console.debug("application is null, return");return}const a=s?.credentials?.find(n=>n?.host===window.location.origin);a?(console.debug("credential exists, set credential",a),t("setCredential",a)):(console.debug("credential not exists, start to create credential for application",s),await e("createCredential"))},$=async({commit:t},e)=>{console.debug("set applications",e),t("setApplications",e)},h=async({commit:t},e)=>{console.debug("set service",e),t("setService",e)},y=async({commit:t},e)=>{console.debug("set credential",e),t("setCredential",e)},x=async({commit:t,state:e})=>{const s=e.application;if(console.debug("prepare to create credential for application",s),!s){console.error("Application not found");return}console.debug("creating create credential for application",s);const{data:a}=await T.create({application_id:s?.id,host:window.location.origin});return console.debug("created credential success",a),t("setCredential",a),console.debug("end createCredential"),a},O=async({commit:t,state:e})=>{e.status.getService=i.Request;try{const{data:s}=await b.get(g);return e.status.getService=i.Success,t("setService",s),s}catch{e.status.getService=i.Error,t("setService",void 0)}},_=async({commit:t,state:e,rootState:s})=>{console.debug("start to get applications for chat"),e.status.getApplications=i.Request;const a=e.application;console.debug("current application",a);try{const{data:n}=await f.getAll({user_id:s?.user?.id,service_id:g});return e.status.getApplications=i.Success,t("setApplications",n.items),n.items}catch(n){console.error("get applications failed",n),e.status.getApplications=i.Error,t("setApplications",void 0),t("setApplication",void 0)}},E=({commit:t},e)=>{t("setConfig",e)},P=({commit:t},e)=>{t("setTasks",e)},q=({commit:t},e)=>{t("setTasksItems",e)},R=({commit:t},e)=>{t("setTasksTotal",e)},W=({commit:t},e)=>{t("setTasksActive",e)},D=async({commit:t,state:e,rootState:s},{offset:a,limit:n,createdAtMin:k,createdAtMax:A})=>new Promise((m,c)=>{console.debug("start to get tasks",a,n);const r=e.credential;console.debug("current credential",r);const l=r?.token;if(!l)return c("no token");w.tasks({userId:s?.user?.id,createdAtMin:k,createdAtMax:A,type:"videos"},{token:l}).then(o=>{console.debug("get videos tasks success",o.data.items);const p=e?.tasks?.items||[];console.debug("existing items",p);const d=o.data.items||[];console.debug("new items",d);const v=S(p,d);t("setTasksItems",v),t("setTasksTotal",o.data.count),m(o.data.items)}).catch(o=>c(o))}),L={setService:h,getService:O,resetAll:C,setCredential:y,setConfig:E,setApplication:I,setApplications:$,getApplications:_,setTasks:P,setTasksItems:q,setTasksTotal:R,setTasksActive:W,getTasks:D,createCredential:x},M=t=>{Object.assign(t,u())},N=(t,e)=>{t.service=e},V=(t,e)=>{t.credential=e},j=(t,e)=>{t.application=e},z=(t,e)=>{t.applications=e},B=(t,e)=>{t.config=e},F=(t,e)=>{const s={...t.tasks,items:e};t.tasks=s},G=(t,e)=>{const s={...t.tasks,total:e};t.tasks=s},H=(t,e)=>{const s={...t.tasks,active:e};t.tasks=s},J=(t,e)=>{t.tasks=e},K={setTasks:J,setApplication:j,setApplications:z,setConfig:B,setCredential:V,setService:N,setTasksActive:H,setTasksItems:F,setTasksTotal:G,resetAll:M},nt={namespaced:!0,state:u,mutations:K,actions:L};export{nt as default,nt as wan};
@@ -1 +1 @@
1
- import{d as s,q as d,x as i,y as n,z as r,A as l,B as p,u as g,T as m}from"./vendor-vue-CpN3YBVJ.js";import{y as f,z as y,A as h}from"./index-ak3wrFnL.js";const c=s({name:"ElCollapseTransition"}),x=s({...c,setup(H){const e=y("collapse-transition"),a=t=>{t.style.maxHeight="",t.style.overflow=t.dataset.oldOverflow,t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom},o={beforeEnter(t){t.dataset||(t.dataset={}),t.dataset.oldPaddingTop=t.style.paddingTop,t.dataset.oldPaddingBottom=t.style.paddingBottom,t.style.height&&(t.dataset.elExistsHeight=t.style.height),t.style.maxHeight=0,t.style.paddingTop=0,t.style.paddingBottom=0},enter(t){requestAnimationFrame(()=>{t.dataset.oldOverflow=t.style.overflow,t.dataset.elExistsHeight?t.style.maxHeight=t.dataset.elExistsHeight:t.scrollHeight!==0?t.style.maxHeight=`${t.scrollHeight}px`:t.style.maxHeight=0,t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom,t.style.overflow="hidden"})},afterEnter(t){t.style.maxHeight="",t.style.overflow=t.dataset.oldOverflow},enterCancelled(t){a(t)},beforeLeave(t){t.dataset||(t.dataset={}),t.dataset.oldPaddingTop=t.style.paddingTop,t.dataset.oldPaddingBottom=t.style.paddingBottom,t.dataset.oldOverflow=t.style.overflow,t.style.maxHeight=`${t.scrollHeight}px`,t.style.overflow="hidden"},leave(t){t.scrollHeight!==0&&(t.style.maxHeight=0,t.style.paddingTop=0,t.style.paddingBottom=0)},afterLeave(t){a(t)},leaveCancelled(t){a(t)}};return(t,T)=>(i(),d(m,l({name:g(e).b()},p(o)),{default:n(()=>[r(t.$slots,"default")]),_:3},16,["name"]))}});var v=f(x,[["__file","collapse-transition.vue"]]);const w=h(v);export{w as E};
1
+ import{d as s,q as d,x as i,y as n,z as r,A as l,B as p,u as g,T as m}from"./vendor-vue-C5BV5QrY.js";import{y as f,z as y,A as h}from"./index-CiL5zS_Y.js";const c=s({name:"ElCollapseTransition"}),x=s({...c,setup(H){const e=y("collapse-transition"),a=t=>{t.style.maxHeight="",t.style.overflow=t.dataset.oldOverflow,t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom},o={beforeEnter(t){t.dataset||(t.dataset={}),t.dataset.oldPaddingTop=t.style.paddingTop,t.dataset.oldPaddingBottom=t.style.paddingBottom,t.style.height&&(t.dataset.elExistsHeight=t.style.height),t.style.maxHeight=0,t.style.paddingTop=0,t.style.paddingBottom=0},enter(t){requestAnimationFrame(()=>{t.dataset.oldOverflow=t.style.overflow,t.dataset.elExistsHeight?t.style.maxHeight=t.dataset.elExistsHeight:t.scrollHeight!==0?t.style.maxHeight=`${t.scrollHeight}px`:t.style.maxHeight=0,t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom,t.style.overflow="hidden"})},afterEnter(t){t.style.maxHeight="",t.style.overflow=t.dataset.oldOverflow},enterCancelled(t){a(t)},beforeLeave(t){t.dataset||(t.dataset={}),t.dataset.oldPaddingTop=t.style.paddingTop,t.dataset.oldPaddingBottom=t.style.paddingBottom,t.dataset.oldOverflow=t.style.overflow,t.style.maxHeight=`${t.scrollHeight}px`,t.style.overflow="hidden"},leave(t){t.scrollHeight!==0&&(t.style.maxHeight=0,t.style.paddingTop=0,t.style.paddingBottom=0)},afterLeave(t){a(t)},leaveCancelled(t){a(t)}};return(t,T)=>(d(),i(m,l({name:g(e).b()},p(o)),{default:n(()=>[r(t.$slots,"default")]),_:3},16,["name"]))}});var v=f(x,[["__file","collapse-transition.vue"]]);const w=h(v);export{w as E};
@@ -1 +1 @@
1
- import{aq as T,ao as n,a6 as f,aB as u}from"./index-ak3wrFnL.js";import{H as g}from"./hailuo-C8Dw-0xR.js";import{s as b}from"./service-DSCzWYou.js";import{h as S}from"./hailuo-7HDGXQU_.js";import{m as w}from"./merge-C5jDS2au.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-dayjs-D7e3rSuL.js";import"./vendor-vue-router-DjvMdekB.js";const C=({commit:t})=>{t("resetAll")},I=async({commit:t,dispatch:e},s)=>{if(console.debug("set application",s),t("setApplication",s),!s){console.debug("application is null, return");return}const a=s?.credentials?.find(o=>o?.host===window.location.origin);a?(console.debug("credential exists, set credential",a),t("setCredential",a)):(console.debug("credential not exists, start to create credential for application",s),await e("createCredential"))},h=async({commit:t},e)=>{console.debug("set applications",e),t("setApplications",e)},$=async({commit:t},e)=>{console.debug("set service",e),t("setService",e)},y=async({commit:t},e)=>{console.debug("set credential",e),t("setCredential",e)},O=async({commit:t,state:e})=>{const s=e.application;if(console.debug("prepare to create credential for application",s),!s){console.error("Application not found");return}console.debug("creating create credential for application",s);const{data:a}=await T.create({application_id:s?.id,host:window.location.origin});return console.debug("created credential success",a),t("setCredential",a),console.debug("end createCredential"),a},x=async({commit:t,state:e})=>{e.status.getService=n.Request;try{const{data:s}=await b.get(g);return e.status.getService=n.Success,t("setService",s),s}catch{e.status.getService=n.Error,t("setService",void 0)}},_=async({commit:t,state:e,rootState:s})=>{console.debug("start to get applications for chat"),e.status.getApplications=n.Request;const a=e.application;console.debug("current application",a);try{const{data:o}=await f.getAll({user_id:s?.user?.id,service_id:g});return e.status.getApplications=n.Success,t("setApplications",o.items),o.items}catch(o){console.error("get applications failed",o),e.status.getApplications=n.Error,t("setApplications",void 0),t("setApplication",void 0)}},E=({commit:t},e)=>{t("setConfig",e)},P=({commit:t},e)=>{t("setTasks",e)},q=({commit:t},e)=>{t("setTasksItems",e)},R=({commit:t},e)=>{t("setTasksTotal",e)},H=({commit:t},e)=>{t("setTasksActive",e)},L=async({commit:t,state:e,rootState:s},{offset:a,limit:o,createdAtMin:k,createdAtMax:A})=>new Promise((m,c)=>{console.debug("start to get tasks",a,o);const r=e.credential;console.debug("current credential",r);const l=r?.token;if(!l)return c("no token");S.tasks({userId:s?.user?.id,createdAtMin:k,createdAtMax:A,type:"videos"},{token:l}).then(i=>{console.debug("get videos tasks success",i.data.items);const p=e?.tasks?.items||[];console.debug("existing items",p);const d=i.data.items||[];console.debug("new items",d);const v=w(p,d);t("setTasksItems",v),t("setTasksTotal",i.data.count),m(i.data.items)}).catch(i=>c(i))}),B={setService:$,getService:x,resetAll:C,setCredential:y,setConfig:E,setApplication:I,setApplications:h,getApplications:_,setTasks:P,setTasksItems:q,setTasksTotal:R,setTasksActive:H,getTasks:L,createCredential:O},D=t=>{Object.assign(t,u())},U=(t,e)=>{t.service=e},V=(t,e)=>{t.credential=e},j=(t,e)=>{t.application=e},z=(t,e)=>{t.applications=e},F=(t,e)=>{t.config=e},G=(t,e)=>{const s={...t.tasks,items:e};t.tasks=s},J=(t,e)=>{const s={...t.tasks,total:e};t.tasks=s},K=(t,e)=>{const s={...t.tasks,active:e};t.tasks=s},M=(t,e)=>{t.tasks=e},N={setTasks:M,setApplication:j,setApplications:z,setConfig:F,setCredential:V,setService:U,setTasksActive:K,setTasksItems:G,setTasksTotal:J,resetAll:D},ot={namespaced:!0,state:u,mutations:N,actions:B};export{ot as default,ot as hailuo};
1
+ import{aq as T,ao as n,a6 as f,aB as u}from"./index-CiL5zS_Y.js";import{H as g}from"./hailuo-C8Dw-0xR.js";import{s as b}from"./service-Dw0Kg7uB.js";import{h as S}from"./hailuo-BQqd93QT.js";import{m as w}from"./merge-C5jDS2au.js";import"./vendor-vue-C5BV5QrY.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-dayjs-Cvgzdobq.js";import"./vendor-vue-router-Bl-Po99g.js";const C=({commit:t})=>{t("resetAll")},I=async({commit:t,dispatch:e},s)=>{if(console.debug("set application",s),t("setApplication",s),!s){console.debug("application is null, return");return}const a=s?.credentials?.find(o=>o?.host===window.location.origin);a?(console.debug("credential exists, set credential",a),t("setCredential",a)):(console.debug("credential not exists, start to create credential for application",s),await e("createCredential"))},h=async({commit:t},e)=>{console.debug("set applications",e),t("setApplications",e)},$=async({commit:t},e)=>{console.debug("set service",e),t("setService",e)},y=async({commit:t},e)=>{console.debug("set credential",e),t("setCredential",e)},O=async({commit:t,state:e})=>{const s=e.application;if(console.debug("prepare to create credential for application",s),!s){console.error("Application not found");return}console.debug("creating create credential for application",s);const{data:a}=await T.create({application_id:s?.id,host:window.location.origin});return console.debug("created credential success",a),t("setCredential",a),console.debug("end createCredential"),a},x=async({commit:t,state:e})=>{e.status.getService=n.Request;try{const{data:s}=await b.get(g);return e.status.getService=n.Success,t("setService",s),s}catch{e.status.getService=n.Error,t("setService",void 0)}},_=async({commit:t,state:e,rootState:s})=>{console.debug("start to get applications for chat"),e.status.getApplications=n.Request;const a=e.application;console.debug("current application",a);try{const{data:o}=await f.getAll({user_id:s?.user?.id,service_id:g});return e.status.getApplications=n.Success,t("setApplications",o.items),o.items}catch(o){console.error("get applications failed",o),e.status.getApplications=n.Error,t("setApplications",void 0),t("setApplication",void 0)}},E=({commit:t},e)=>{t("setConfig",e)},P=({commit:t},e)=>{t("setTasks",e)},q=({commit:t},e)=>{t("setTasksItems",e)},R=({commit:t},e)=>{t("setTasksTotal",e)},H=({commit:t},e)=>{t("setTasksActive",e)},L=async({commit:t,state:e,rootState:s},{offset:a,limit:o,createdAtMin:k,createdAtMax:A})=>new Promise((m,c)=>{console.debug("start to get tasks",a,o);const r=e.credential;console.debug("current credential",r);const l=r?.token;if(!l)return c("no token");S.tasks({userId:s?.user?.id,createdAtMin:k,createdAtMax:A,type:"videos"},{token:l}).then(i=>{console.debug("get videos tasks success",i.data.items);const p=e?.tasks?.items||[];console.debug("existing items",p);const d=i.data.items||[];console.debug("new items",d);const v=w(p,d);t("setTasksItems",v),t("setTasksTotal",i.data.count),m(i.data.items)}).catch(i=>c(i))}),B={setService:$,getService:x,resetAll:C,setCredential:y,setConfig:E,setApplication:I,setApplications:h,getApplications:_,setTasks:P,setTasksItems:q,setTasksTotal:R,setTasksActive:H,getTasks:L,createCredential:O},D=t=>{Object.assign(t,u())},U=(t,e)=>{t.service=e},V=(t,e)=>{t.credential=e},j=(t,e)=>{t.application=e},z=(t,e)=>{t.applications=e},F=(t,e)=>{t.config=e},G=(t,e)=>{const s={...t.tasks,items:e};t.tasks=s},J=(t,e)=>{const s={...t.tasks,total:e};t.tasks=s},K=(t,e)=>{const s={...t.tasks,active:e};t.tasks=s},M=(t,e)=>{t.tasks=e},N={setTasks:M,setApplication:j,setApplications:z,setConfig:F,setCredential:V,setService:U,setTasksActive:K,setTasksItems:G,setTasksTotal:J,resetAll:D},ot={namespaced:!0,state:u,mutations:N,actions:B};export{ot as default,ot as hailuo};
@@ -1 +1 @@
1
- import{H as g,I as r,y as _,z as $,K as b,A as h}from"./index-ak3wrFnL.js";import{m as u}from"./typescript-BielEcXb.js";import{d as f,e as O,f as o,ab as S,q as v,x as w,y as j,z as N,R as x,Q as C,u as c,V as E,p as K}from"./vendor-vue-CpN3YBVJ.js";const P=g({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:r([Number,Object]),default:()=>u({})},sm:{type:r([Number,Object]),default:()=>u({})},md:{type:r([Number,Object]),default:()=>u({})},lg:{type:r([Number,Object]),default:()=>u({})},xl:{type:r([Number,Object]),default:()=>u({})}}),R=Symbol("rowContextKey"),k=f({name:"ElCol"}),A=f({...k,props:P,setup(p){const e=p,{gutter:l}=O(R,{gutter:o(()=>0)}),a=$("col"),i=o(()=>{const t={};return l.value&&(t.paddingLeft=t.paddingRight=`${l.value/2}px`),t}),d=o(()=>{const t=[];return["span","offset","pull","push"].forEach(s=>{const n=e[s];b(n)&&(s==="span"?t.push(a.b(`${e[s]}`)):n>0&&t.push(a.b(`${s}-${e[s]}`)))}),["xs","sm","md","lg","xl"].forEach(s=>{b(e[s])?t.push(a.b(`${s}-${e[s]}`)):S(e[s])&&Object.entries(e[s]).forEach(([n,y])=>{t.push(n!=="span"?a.b(`${s}-${n}-${y}`):a.b(`${s}-${y}`))})}),l.value&&t.push(a.is("guttered")),[a.b(),t]});return(t,m)=>(w(),v(E(t.tag),{class:C(c(d)),style:x(c(i))},{default:j(()=>[N(t.$slots,"default")]),_:3},8,["class","style"]))}});var B=_(A,[["__file","col.vue"]]);const F=h(B),I=["start","center","end","space-around","space-between","space-evenly"],L=["top","middle","bottom"],q=g({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:I,default:"start"},align:{type:String,values:L}}),D=f({name:"ElRow"}),H=f({...D,props:q,setup(p){const e=p,l=$("row"),a=o(()=>e.gutter);K(R,{gutter:a});const i=o(()=>{const t={};return e.gutter&&(t.marginRight=t.marginLeft=`-${e.gutter/2}px`),t}),d=o(()=>[l.b(),l.is(`justify-${e.justify}`,e.justify!=="start"),l.is(`align-${e.align}`,!!e.align)]);return(t,m)=>(w(),v(E(t.tag),{class:C(c(d)),style:x(c(i))},{default:j(()=>[N(t.$slots,"default")]),_:3},8,["class","style"]))}});var J=_(H,[["__file","row.vue"]]);const G=h(J);export{F as E,G as a};
1
+ import{H as g,I as r,y as _,z as $,L as b,A as h}from"./index-CiL5zS_Y.js";import{m as u}from"./typescript-D5Znjm8Y.js";import{d as p,i as O,c as o,q as v,x as w,y as j,z as N,R as x,u as c,Q as C,V as E,ab as S,p as K}from"./vendor-vue-C5BV5QrY.js";const L=g({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:r([Number,Object]),default:()=>u({})},sm:{type:r([Number,Object]),default:()=>u({})},md:{type:r([Number,Object]),default:()=>u({})},lg:{type:r([Number,Object]),default:()=>u({})},xl:{type:r([Number,Object]),default:()=>u({})}}),R=Symbol("rowContextKey"),P=p({name:"ElCol"}),k=p({...P,props:L,setup(f){const e=f,{gutter:l}=O(R,{gutter:o(()=>0)}),a=$("col"),i=o(()=>{const t={};return l.value&&(t.paddingLeft=t.paddingRight=`${l.value/2}px`),t}),d=o(()=>{const t=[];return["span","offset","pull","push"].forEach(s=>{const n=e[s];b(n)&&(s==="span"?t.push(a.b(`${e[s]}`)):n>0&&t.push(a.b(`${s}-${e[s]}`)))}),["xs","sm","md","lg","xl"].forEach(s=>{b(e[s])?t.push(a.b(`${s}-${e[s]}`)):S(e[s])&&Object.entries(e[s]).forEach(([n,y])=>{t.push(n!=="span"?a.b(`${s}-${n}-${y}`):a.b(`${s}-${y}`))})}),l.value&&t.push(a.is("guttered")),[a.b(),t]});return(t,m)=>(v(),w(E(t.tag),{class:C(c(d)),style:x(c(i))},{default:j(()=>[N(t.$slots,"default")]),_:3},8,["class","style"]))}});var A=_(k,[["__file","col.vue"]]);const F=h(A),B=["start","center","end","space-around","space-between","space-evenly"],I=["top","middle","bottom"],q=g({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:B,default:"start"},align:{type:String,values:I}}),D=p({name:"ElRow"}),H=p({...D,props:q,setup(f){const e=f,l=$("row"),a=o(()=>e.gutter);K(R,{gutter:a});const i=o(()=>{const t={};return e.gutter&&(t.marginRight=t.marginLeft=`-${e.gutter/2}px`),t}),d=o(()=>[l.b(),l.is(`justify-${e.justify}`,e.justify!=="start"),l.is(`align-${e.align}`,!!e.align)]);return(t,m)=>(v(),w(E(t.tag),{class:C(c(d)),style:x(c(i))},{default:j(()=>[N(t.$slots,"default")]),_:3},8,["class","style"]))}});var J=_(H,[["__file","row.vue"]]);const G=h(J);export{F as E,G as a};
@@ -1 +1 @@
1
- import{aq as T,ao as o,a6 as v,at as d}from"./index-ak3wrFnL.js";import{q as f,Q as u}from"./qrart-zWjen1L4.js";import{s as b}from"./service-DSCzWYou.js";import{m as S}from"./merge-C5jDS2au.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-dayjs-D7e3rSuL.js";import"./vendor-vue-router-DjvMdekB.js";const w=({commit:t})=>{t("resetAll")},C=async({commit:t,dispatch:e},s)=>{if(console.debug("set application",s),t("setApplication",s),!s){console.debug("application is null, return");return}const a=s?.credentials?.find(n=>n?.host===window.location.origin);a?(console.debug("credential exists, set credential",a),t("setCredential",a)):(console.debug("credential not exists, start to create credential for application",s),await e("createCredential"))},I=async({commit:t},e)=>{console.debug("set applications",e),t("setApplications",e)},$=async({commit:t},e)=>{console.debug("set service",e),t("setService",e)},h=async({commit:t},e)=>{console.debug("set credential",e),t("setCredential",e)},q=async({commit:t,state:e})=>{const s=e.application;if(console.debug("prepare to create credential for application",s),!s){console.error("Application not found");return}console.debug("creating create credential for application",s);const{data:a}=await T.create({application_id:s?.id,host:window.location.origin});return console.debug("created credential success",a),t("setCredential",a),console.debug("end createCredential"),a},y=async({commit:t,state:e})=>{e.status.getService=o.Request;try{const{data:s}=await b.get(u);return e.status.getService=o.Success,t("setService",s),s}catch{e.status.getService=o.Error,t("setService",void 0)}},x=async({commit:t,state:e,rootState:s})=>{console.debug("start to get applications for chat"),e.status.getApplications=o.Request;const a=e.application;console.debug("current application",a);try{const{data:n}=await v.getAll({user_id:s?.user?.id,service_id:u});return e.status.getApplications=o.Success,t("setApplications",n.items),n.items}catch(n){console.error("get applications failed",n),e.status.getApplications=o.Error,t("setApplications",void 0),t("setApplication",void 0)}},O=({commit:t},e)=>{t("setConfig",e)},R=({commit:t},e)=>{t("setTasks",e)},_=({commit:t},e)=>{t("setTasksItems",e)},E=({commit:t},e)=>{t("setTasksTotal",e)},P=({commit:t},e)=>{t("setTasksActive",e)},Q=async({commit:t,state:e,rootState:s},{offset:a,limit:n,createdAtMin:g,createdAtMax:k})=>new Promise((A,c)=>{console.debug("start to get tasks",a,n);const r=e.credential?.token;if(!r)return c("no token");f.tasks({userId:s?.user?.id,createdAtMin:g,createdAtMax:k},{token:r}).then(i=>{console.debug("get qrart tasks success",i.data.items);const l=e?.tasks?.items||[];console.debug("existing items",l);const p=i.data.items||[];console.debug("new items",p);const m=S(l,p);t("setTasksItems",m),t("setTasksTotal",i.data.count),A(i.data.items)}).catch(i=>c(i))}),D={setService:$,getService:y,resetAll:w,setCredential:h,setConfig:O,setApplication:C,setApplications:I,getApplications:x,setTasks:R,setTasksItems:_,setTasksTotal:E,setTasksActive:P,getTasks:Q,createCredential:q},L=t=>{Object.assign(t,d())},V=(t,e)=>{t.service=e},j=(t,e)=>{t.applications=e},z=(t,e)=>{t.credential=e},B=(t,e)=>{t.application=e},F=(t,e)=>{t.config=e},G=(t,e)=>{const s={...t.tasks,items:e};t.tasks=s},H=(t,e)=>{const s={...t.tasks,total:e};t.tasks=s},J=(t,e)=>{const s={...t.tasks,active:e};t.tasks=s},K=(t,e)=>{t.tasks=e},M={setTasks:K,setApplication:B,setApplications:j,setConfig:F,setCredential:z,setService:V,setTasksActive:J,setTasksItems:G,setTasksTotal:H,resetAll:L},at={namespaced:!0,state:d,mutations:M,actions:D};export{at as default,at as qrart};
1
+ import{aq as T,ao as o,a6 as v,at as d}from"./index-CiL5zS_Y.js";import{q as f,Q as u}from"./qrart-BKb1AuHl.js";import{s as b}from"./service-Dw0Kg7uB.js";import{m as S}from"./merge-C5jDS2au.js";import"./vendor-vue-C5BV5QrY.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-dayjs-Cvgzdobq.js";import"./vendor-vue-router-Bl-Po99g.js";const w=({commit:t})=>{t("resetAll")},C=async({commit:t,dispatch:e},s)=>{if(console.debug("set application",s),t("setApplication",s),!s){console.debug("application is null, return");return}const a=s?.credentials?.find(n=>n?.host===window.location.origin);a?(console.debug("credential exists, set credential",a),t("setCredential",a)):(console.debug("credential not exists, start to create credential for application",s),await e("createCredential"))},I=async({commit:t},e)=>{console.debug("set applications",e),t("setApplications",e)},$=async({commit:t},e)=>{console.debug("set service",e),t("setService",e)},h=async({commit:t},e)=>{console.debug("set credential",e),t("setCredential",e)},q=async({commit:t,state:e})=>{const s=e.application;if(console.debug("prepare to create credential for application",s),!s){console.error("Application not found");return}console.debug("creating create credential for application",s);const{data:a}=await T.create({application_id:s?.id,host:window.location.origin});return console.debug("created credential success",a),t("setCredential",a),console.debug("end createCredential"),a},y=async({commit:t,state:e})=>{e.status.getService=o.Request;try{const{data:s}=await b.get(u);return e.status.getService=o.Success,t("setService",s),s}catch{e.status.getService=o.Error,t("setService",void 0)}},x=async({commit:t,state:e,rootState:s})=>{console.debug("start to get applications for chat"),e.status.getApplications=o.Request;const a=e.application;console.debug("current application",a);try{const{data:n}=await v.getAll({user_id:s?.user?.id,service_id:u});return e.status.getApplications=o.Success,t("setApplications",n.items),n.items}catch(n){console.error("get applications failed",n),e.status.getApplications=o.Error,t("setApplications",void 0),t("setApplication",void 0)}},O=({commit:t},e)=>{t("setConfig",e)},R=({commit:t},e)=>{t("setTasks",e)},_=({commit:t},e)=>{t("setTasksItems",e)},E=({commit:t},e)=>{t("setTasksTotal",e)},P=({commit:t},e)=>{t("setTasksActive",e)},Q=async({commit:t,state:e,rootState:s},{offset:a,limit:n,createdAtMin:g,createdAtMax:k})=>new Promise((A,c)=>{console.debug("start to get tasks",a,n);const r=e.credential?.token;if(!r)return c("no token");f.tasks({userId:s?.user?.id,createdAtMin:g,createdAtMax:k},{token:r}).then(i=>{console.debug("get qrart tasks success",i.data.items);const l=e?.tasks?.items||[];console.debug("existing items",l);const p=i.data.items||[];console.debug("new items",p);const m=S(l,p);t("setTasksItems",m),t("setTasksTotal",i.data.count),A(i.data.items)}).catch(i=>c(i))}),D={setService:$,getService:y,resetAll:w,setCredential:h,setConfig:O,setApplication:C,setApplications:I,getApplications:x,setTasks:R,setTasksItems:_,setTasksTotal:E,setTasksActive:P,getTasks:Q,createCredential:q},L=t=>{Object.assign(t,d())},V=(t,e)=>{t.service=e},j=(t,e)=>{t.applications=e},z=(t,e)=>{t.credential=e},B=(t,e)=>{t.application=e},F=(t,e)=>{t.config=e},G=(t,e)=>{const s={...t.tasks,items:e};t.tasks=s},H=(t,e)=>{const s={...t.tasks,total:e};t.tasks=s},J=(t,e)=>{const s={...t.tasks,active:e};t.tasks=s},K=(t,e)=>{t.tasks=e},M={setTasks:K,setApplication:B,setApplications:j,setConfig:F,setCredential:z,setService:V,setTasksActive:J,setTasksItems:G,setTasksTotal:H,resetAll:L},at={namespaced:!0,state:d,mutations:M,actions:D};export{at as default,at as qrart};
@@ -0,0 +1 @@
1
+ import{g as L}from"./vendor-dayjs-Cvgzdobq.js";var x={exports:{}},E;function C(){return E||(E=1,(function(g){var w=Object.prototype.hasOwnProperty,c="~";function h(){}Object.create&&(h.prototype=Object.create(null),new h().__proto__||(c=!1));function d(s,t,n){this.fn=s,this.context=t,this.once=n||!1}function m(s,t,n,r,l){if(typeof n!="function")throw new TypeError("The listener must be a function");var u=new d(n,r||s,l),o=c?c+t:t;return s._events[o]?s._events[o].fn?s._events[o]=[s._events[o],u]:s._events[o].push(u):(s._events[o]=u,s._eventsCount++),s}function y(s,t){--s._eventsCount===0?s._events=new h:delete s._events[t]}function f(){this._events=new h,this._eventsCount=0}f.prototype.eventNames=function(){var t=[],n,r;if(this._eventsCount===0)return t;for(r in n=this._events)w.call(n,r)&&t.push(c?r.slice(1):r);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(n)):t},f.prototype.listeners=function(t){var n=c?c+t:t,r=this._events[n];if(!r)return[];if(r.fn)return[r.fn];for(var l=0,u=r.length,o=new Array(u);l<u;l++)o[l]=r[l].fn;return o},f.prototype.listenerCount=function(t){var n=c?c+t:t,r=this._events[n];return r?r.fn?1:r.length:0},f.prototype.emit=function(t,n,r,l,u,o){var a=c?c+t:t;if(!this._events[a])return!1;var e=this._events[a],v=arguments.length,p,i;if(e.fn){switch(e.once&&this.removeListener(t,e.fn,void 0,!0),v){case 1:return e.fn.call(e.context),!0;case 2:return e.fn.call(e.context,n),!0;case 3:return e.fn.call(e.context,n,r),!0;case 4:return e.fn.call(e.context,n,r,l),!0;case 5:return e.fn.call(e.context,n,r,l,u),!0;case 6:return e.fn.call(e.context,n,r,l,u,o),!0}for(i=1,p=new Array(v-1);i<v;i++)p[i-1]=arguments[i];e.fn.apply(e.context,p)}else{var b=e.length,_;for(i=0;i<b;i++)switch(e[i].once&&this.removeListener(t,e[i].fn,void 0,!0),v){case 1:e[i].fn.call(e[i].context);break;case 2:e[i].fn.call(e[i].context,n);break;case 3:e[i].fn.call(e[i].context,n,r);break;case 4:e[i].fn.call(e[i].context,n,r,l);break;default:if(!p)for(_=1,p=new Array(v-1);_<v;_++)p[_-1]=arguments[_];e[i].fn.apply(e[i].context,p)}}return!0},f.prototype.on=function(t,n,r){return m(this,t,n,r,!1)},f.prototype.once=function(t,n,r){return m(this,t,n,r,!0)},f.prototype.removeListener=function(t,n,r,l){var u=c?c+t:t;if(!this._events[u])return this;if(!n)return y(this,u),this;var o=this._events[u];if(o.fn)o.fn===n&&(!l||o.once)&&(!r||o.context===r)&&y(this,u);else{for(var a=0,e=[],v=o.length;a<v;a++)(o[a].fn!==n||l&&!o[a].once||r&&o[a].context!==r)&&e.push(o[a]);e.length?this._events[u]=e.length===1?e[0]:e:y(this,u)}return this},f.prototype.removeAllListeners=function(t){var n;return t?(n=c?c+t:t,this._events[n]&&y(this,n)):(this._events=new h,this._eventsCount=0),this},f.prototype.off=f.prototype.removeListener,f.prototype.addListener=f.prototype.on,f.prefixed=c,f.EventEmitter=f,g.exports=f})(x)),x.exports}var O=C();const k=L(O);export{k as E};
@@ -0,0 +1 @@
1
+ import{e as l}from"./index-CiL5zS_Y.js";import{c as e,k as u}from"./vendor-vue-C5BV5QrY.js";const i=["class","style"],E=/^on[A-Z]/,m=(c={})=>{const{excludeListeners:o=!1,excludeKeys:t}=c,a=e(()=>(t?.value||[]).concat(i)),s=u();return s?e(()=>{var r;return l(Object.entries((r=s.proxy)==null?void 0:r.$attrs).filter(([n])=>!a.value.includes(n)&&!(o&&E.test(n))))}):e(()=>({}))};export{m as u};
@@ -0,0 +1 @@
1
+ import{H as c,I as p,y as u,z as f,A as v}from"./index-CiL5zS_Y.js";import{d as a,q as s,H as o,Q as i,u as r,z as m,J as y,R as S,c as _}from"./vendor-vue-C5BV5QrY.js";const z=c({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:p(String),default:"solid"}}),b=a({name:"ElDivider"}),h=a({...b,props:z,setup(n){const l=n,e=f("divider"),d=_(()=>e.cssVar({"border-style":l.borderStyle}));return(t,g)=>(s(),o("div",{class:i([r(e).b(),r(e).m(t.direction)]),style:S(r(d)),role:"separator"},[t.$slots.default&&t.direction!=="vertical"?(s(),o("div",{key:0,class:i([r(e).e("text"),r(e).is(t.contentPosition)])},[m(t.$slots,"default")],2)):y("v-if",!0)],6))}});var P=u(h,[["__file","divider.vue"]]);const C=v(P);export{C as E};
@@ -1 +1 @@
1
- import{aq as A,ao as c,a6 as m,aC as T}from"./index-ak3wrFnL.js";import{S as f}from"./suno-DFuCGH70.js";import{s as b}from"./service-DSCzWYou.js";import{s as l}from"./suno-owWyrgGo.js";import{m as w}from"./merge-C5jDS2au.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-dayjs-D7e3rSuL.js";import"./vendor-vue-router-DjvMdekB.js";const S=({commit:e})=>{e("resetAll")},C=async({commit:e,dispatch:s},t)=>{if(console.debug("set application",t),e("setApplication",t),!t){console.debug("application is null, return");return}const o=t?.credentials?.find(n=>n?.host===window.location.origin);o?(console.debug("credential exists, set credential",o),e("setCredential",o)):(console.debug("credential not exists, start to create credential for application",t),await s("createCredential"))},I=async({commit:e},s)=>{console.debug("set applications",s),e("setApplications",s)},P=async({commit:e},s)=>{console.debug("set service",s),e("setService",s)},y=async({commit:e},s)=>{console.debug("set credential",s),e("setCredential",s)},$=async({commit:e,state:s})=>{const t=s.application;if(console.debug("prepare to create credential for application",t),!t){console.error("Application not found");return}console.debug("creating create credential for application",t);const{data:o}=await A.create({application_id:t?.id,host:window.location.origin});return console.debug("created credential success",o),e("setCredential",o),console.debug("end createCredential"),o},h=async({commit:e,state:s})=>{s.status.getService=c.Request;try{const{data:t}=await b.get(f);return s.status.getService=c.Success,e("setService",t),t}catch{s.status.getService=c.Error,e("setService",void 0)}},_=async({commit:e,state:s,rootState:t})=>{console.debug("start to get applications for chat"),s.status.getApplications=c.Request;const o=s.application;console.debug("current application",o);try{const{data:n}=await m.getAll({user_id:t?.user?.id,service_id:f});return s.status.getApplications=c.Success,e("setApplications",n.items),n.items}catch(n){console.error("get applications failed",n),s.status.getApplications=c.Error,e("setApplications",void 0),e("setApplication",void 0)}},x=({commit:e},s)=>{e("setConfig",s)},O=({commit:e},s)=>{e("setTasks",s)},E=({commit:e},s)=>{e("setTasksItems",s)},q=({commit:e},s)=>{e("setTasksTotal",s)},R=({commit:e},s)=>{e("setTasksActive",s)},D=({commit:e},s)=>{e("setAudio",s)},L=async({commit:e,state:s,rootState:t},{offset:o,limit:n,createdAtMin:a,createdAtMax:i})=>new Promise((k,d)=>{console.debug("start to get tasks",o,n,i,a);const p=s.credential?.token;if(!p)return d("no token");l.tasks({userId:t?.user?.id,createdAtMin:a,createdAtMax:i,type:"audios"},{token:p}).then(r=>{console.debug("get imagine tasks success",r.data.items);const u=s?.tasks?.items||[];console.debug("existing items",u);const g=r.data.items||[];console.debug("new items",g);const v=w(u,g);e("setTasksItems",v),e("setTasksTotal",r.data.count),k(r.data.items)}).catch(r=>d(r))}),F=async({commit:e,state:s,rootState:t})=>{const n=s.credential?.token;if(!n)return[];const a=t?.user?.id;if(!a)return[];try{const{data:i}=await l.personasList({user_id:a},{token:n});return e("setPersonas",i.items||[]),i.items||[]}catch(i){return console.error("get personas failed",i),[]}},N=async({state:e,dispatch:s,rootState:t},o)=>{const a=e.credential?.token;if(!a)return!1;try{return await l.personasDelete({persona_id:o,user_id:t?.user?.id},{token:a}),await s("getPersonas"),!0}catch(i){return console.error("delete persona failed",i),!1}},U={setService:P,getService:h,resetAll:S,setCredential:y,setConfig:x,setApplication:C,setApplications:I,getApplications:_,setTasks:O,setTasksItems:E,setTasksTotal:q,setTasksActive:R,getTasks:L,setAudio:D,getPersonas:F,deletePersona:N,createCredential:$},V=e=>{e.service=void 0,e.application=void 0,e.applications=void 0,e.config=void 0,e.credential=void 0,e.tasks=void 0,e.personas=void 0},z=(e,s)=>{e.applications=s},B=(e,s)=>{e.service=s},G=(e,s)=>{e.credential=s},H=(e,s)=>{e.application=s},J=(e,s)=>{e.config=s},K=(e,s)=>{const t={...e.tasks,items:s};e.tasks=t},Q=(e,s)=>{const t={...e.tasks,total:s};e.tasks=t},W=(e,s)=>{const t={...e.tasks,active:s};e.tasks=t},X=(e,s)=>{e.audio=s},Y=(e,s)=>{e.tasks=s},Z=(e,s)=>{e.personas=s},j=(e,s)=>{if(!s)return;Array.isArray(e.favoritePersonaIds)||(e.favoritePersonaIds=[]);const t=e.favoritePersonaIds.indexOf(s);t>=0?e.favoritePersonaIds.splice(t,1):e.favoritePersonaIds.push(s)},M={setTasks:Y,setApplication:H,setApplications:z,setConfig:J,setCredential:G,setService:B,setTasksActive:W,setTasksItems:K,setTasksTotal:Q,setAudio:X,setPersonas:Z,togglePersonaFavorite:j,resetAll:V},de={namespaced:!0,state:T,mutations:M,actions:U};export{de as default,de as suno};
1
+ import{aq as A,ao as c,a6 as m,aC as T}from"./index-CiL5zS_Y.js";import{S as f}from"./suno-DFuCGH70.js";import{s as b}from"./service-Dw0Kg7uB.js";import{s as l}from"./suno-D8KCD8AJ.js";import{m as w}from"./merge-C5jDS2au.js";import"./vendor-vue-C5BV5QrY.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-dayjs-Cvgzdobq.js";import"./vendor-vue-router-Bl-Po99g.js";const S=({commit:e})=>{e("resetAll")},C=async({commit:e,dispatch:s},t)=>{if(console.debug("set application",t),e("setApplication",t),!t){console.debug("application is null, return");return}const o=t?.credentials?.find(n=>n?.host===window.location.origin);o?(console.debug("credential exists, set credential",o),e("setCredential",o)):(console.debug("credential not exists, start to create credential for application",t),await s("createCredential"))},I=async({commit:e},s)=>{console.debug("set applications",s),e("setApplications",s)},P=async({commit:e},s)=>{console.debug("set service",s),e("setService",s)},y=async({commit:e},s)=>{console.debug("set credential",s),e("setCredential",s)},$=async({commit:e,state:s})=>{const t=s.application;if(console.debug("prepare to create credential for application",t),!t){console.error("Application not found");return}console.debug("creating create credential for application",t);const{data:o}=await A.create({application_id:t?.id,host:window.location.origin});return console.debug("created credential success",o),e("setCredential",o),console.debug("end createCredential"),o},h=async({commit:e,state:s})=>{s.status.getService=c.Request;try{const{data:t}=await b.get(f);return s.status.getService=c.Success,e("setService",t),t}catch{s.status.getService=c.Error,e("setService",void 0)}},_=async({commit:e,state:s,rootState:t})=>{console.debug("start to get applications for chat"),s.status.getApplications=c.Request;const o=s.application;console.debug("current application",o);try{const{data:n}=await m.getAll({user_id:t?.user?.id,service_id:f});return s.status.getApplications=c.Success,e("setApplications",n.items),n.items}catch(n){console.error("get applications failed",n),s.status.getApplications=c.Error,e("setApplications",void 0),e("setApplication",void 0)}},x=({commit:e},s)=>{e("setConfig",s)},O=({commit:e},s)=>{e("setTasks",s)},E=({commit:e},s)=>{e("setTasksItems",s)},q=({commit:e},s)=>{e("setTasksTotal",s)},R=({commit:e},s)=>{e("setTasksActive",s)},D=({commit:e},s)=>{e("setAudio",s)},L=async({commit:e,state:s,rootState:t},{offset:o,limit:n,createdAtMin:a,createdAtMax:i})=>new Promise((k,d)=>{console.debug("start to get tasks",o,n,i,a);const p=s.credential?.token;if(!p)return d("no token");l.tasks({userId:t?.user?.id,createdAtMin:a,createdAtMax:i,type:"audios"},{token:p}).then(r=>{console.debug("get imagine tasks success",r.data.items);const u=s?.tasks?.items||[];console.debug("existing items",u);const g=r.data.items||[];console.debug("new items",g);const v=w(u,g);e("setTasksItems",v),e("setTasksTotal",r.data.count),k(r.data.items)}).catch(r=>d(r))}),F=async({commit:e,state:s,rootState:t})=>{const n=s.credential?.token;if(!n)return[];const a=t?.user?.id;if(!a)return[];try{const{data:i}=await l.personasList({user_id:a},{token:n});return e("setPersonas",i.items||[]),i.items||[]}catch(i){return console.error("get personas failed",i),[]}},N=async({state:e,dispatch:s,rootState:t},o)=>{const a=e.credential?.token;if(!a)return!1;try{return await l.personasDelete({persona_id:o,user_id:t?.user?.id},{token:a}),await s("getPersonas"),!0}catch(i){return console.error("delete persona failed",i),!1}},U={setService:P,getService:h,resetAll:S,setCredential:y,setConfig:x,setApplication:C,setApplications:I,getApplications:_,setTasks:O,setTasksItems:E,setTasksTotal:q,setTasksActive:R,getTasks:L,setAudio:D,getPersonas:F,deletePersona:N,createCredential:$},V=e=>{e.service=void 0,e.application=void 0,e.applications=void 0,e.config=void 0,e.credential=void 0,e.tasks=void 0,e.personas=void 0},z=(e,s)=>{e.applications=s},B=(e,s)=>{e.service=s},G=(e,s)=>{e.credential=s},H=(e,s)=>{e.application=s},J=(e,s)=>{e.config=s},K=(e,s)=>{const t={...e.tasks,items:s};e.tasks=t},Q=(e,s)=>{const t={...e.tasks,total:s};e.tasks=t},W=(e,s)=>{const t={...e.tasks,active:s};e.tasks=t},X=(e,s)=>{e.audio=s},Y=(e,s)=>{e.tasks=s},Z=(e,s)=>{e.personas=s},j=(e,s)=>{if(!s)return;Array.isArray(e.favoritePersonaIds)||(e.favoritePersonaIds=[]);const t=e.favoritePersonaIds.indexOf(s);t>=0?e.favoritePersonaIds.splice(t,1):e.favoritePersonaIds.push(s)},M={setTasks:Y,setApplication:H,setApplications:z,setConfig:J,setCredential:G,setService:B,setTasksActive:W,setTasksItems:K,setTasksTotal:Q,setAudio:X,setPersonas:Z,togglePersonaFavorite:j,resetAll:V},de={namespaced:!0,state:T,mutations:M,actions:U};export{de as default,de as suno};
@@ -1 +1 @@
1
- import{ao as n,a6 as b,aE as g,aq as f,aF as k}from"./index-ak3wrFnL.js";import{s as S}from"./service-DSCzWYou.js";import{n as w}from"./nanobanana-BFrzpGfz.js";import{m as C}from"./merge-C5jDS2au.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-dayjs-D7e3rSuL.js";import"./vendor-vue-router-DjvMdekB.js";const I=({commit:t})=>{t("resetAll")},$=async({commit:t,dispatch:s},e)=>{if(console.debug("set application",e),t("setApplication",e),!e){console.debug("application is null, return");return}const a=e?.credentials?.find(i=>i?.host===window.location.origin);a?(console.debug("credential exists, set credential",a),t("setCredential",a)):(console.debug("credential not exists, start to create credential for application",e),await s("createCredential"))},y=async({commit:t},s)=>{console.debug("set applications",s),t("setApplications",s)},E=async({commit:t},s)=>{console.debug("set service",s),t("setService",s)},h=async({commit:t},s)=>{console.debug("set credential",s),t("setCredential",s)},O=async({commit:t,state:s})=>{const e=s.application;if(console.debug("prepare to create credential for application",e),!e){console.error("Application not found");return}console.debug("creating create credential for application",e);const{data:a}=await f.create({application_id:e?.id,host:window.location.origin});return console.debug("created credential success",a),t("setCredential",a),console.debug("end createCredential"),a},x=async({commit:t,state:s})=>{s.status.getService=n.Request;try{const{data:e}=await S.get(g);return s.status.getService=n.Success,t("setService",e),e}catch{s.status.getService=n.Error,t("setService",void 0)}},_=async({commit:t,state:s,rootState:e})=>{console.debug("start to get applications for nanobanana"),s.status.getApplications=n.Request;try{const{data:a}=await b.getAll({user_id:e?.user?.id,service_id:g});return s.status.getApplications=n.Success,t("setApplications",a.items),a.items}catch(a){console.error("get applications failed",a),s.status.getApplications=n.Error,t("setApplications",void 0),t("setApplication",void 0)}},q=({commit:t},s)=>{t("setConfig",s)},N=({commit:t},s)=>{t("setTasks",s)},P=({commit:t},s)=>{t("setTasksItems",s)},R=({commit:t},s)=>{t("setTasksTotal",s)},B=({commit:t},s)=>{t("setTasksActive",s)},D=async({commit:t,state:s,rootState:e},{offset:a,limit:i,createdAtMin:A,createdAtMax:T})=>(s.status.getTasks=n.Request,new Promise((v,r)=>{console.debug("start to get tasks",a,i);const l=s.credential;console.debug("current credential",l);const d=l?.token;if(!d)return s.status.getTasks=n.Error,r("no token");w.tasks({userId:e?.user?.id,offset:a,limit:i,createdAtMin:A,createdAtMax:T,type:"images"},{token:d}).then(o=>{console.debug("get images tasks success",o.data.items);const p=s?.tasks?.items||[];console.debug("existing items",p);const u=o.data.items||[];console.debug("new items",u);const m=C(p,u);t("setTasksItems",m),t("setTasksTotal",o.data.count),s.status.getTasks=n.Success,v(o.data.items)}).catch(o=>(s.status.getTasks=n.Error,r(o)))})),F={createCredential:O,setService:E,getService:x,resetAll:I,setCredential:h,setConfig:q,setApplications:y,setApplication:$,getApplications:_,setTasks:N,setTasksItems:P,setTasksTotal:R,setTasksActive:B,getTasks:D},c={items:void 0,total:void 0,active:void 0},L=t=>{Object.assign(t,k())},V=(t,s)=>{t.service=s},j=(t,s)=>{t.credential=s},z=(t,s)=>{t.application=s},G=(t,s)=>{t.applications=s},H=(t,s)=>{t.config=s},J=(t,s)=>{const e={...t.tasks||c,items:s};t.tasks=e},K=(t,s)=>{const e={...t.tasks||c,total:s};t.tasks=e},M=(t,s)=>{const e={...t.tasks||c,active:s};t.tasks=e},Q=(t,s)=>{t.tasks=s},U={setTasks:Q,setApplication:z,setApplications:G,setConfig:H,setCredential:j,setService:V,setTasksActive:M,setTasksItems:J,setTasksTotal:K,resetAll:L},nt={namespaced:!0,state:k,mutations:U,actions:F};export{nt as default,nt as nanobanana};
1
+ import{ao as n,a6 as b,aE as g,aq as f,aF as k}from"./index-CiL5zS_Y.js";import{s as S}from"./service-Dw0Kg7uB.js";import{n as w}from"./nanobanana-RAJH5Bki.js";import{m as C}from"./merge-C5jDS2au.js";import"./vendor-vue-C5BV5QrY.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-dayjs-Cvgzdobq.js";import"./vendor-vue-router-Bl-Po99g.js";const I=({commit:t})=>{t("resetAll")},$=async({commit:t,dispatch:s},e)=>{if(console.debug("set application",e),t("setApplication",e),!e){console.debug("application is null, return");return}const a=e?.credentials?.find(i=>i?.host===window.location.origin);a?(console.debug("credential exists, set credential",a),t("setCredential",a)):(console.debug("credential not exists, start to create credential for application",e),await s("createCredential"))},y=async({commit:t},s)=>{console.debug("set applications",s),t("setApplications",s)},E=async({commit:t},s)=>{console.debug("set service",s),t("setService",s)},h=async({commit:t},s)=>{console.debug("set credential",s),t("setCredential",s)},O=async({commit:t,state:s})=>{const e=s.application;if(console.debug("prepare to create credential for application",e),!e){console.error("Application not found");return}console.debug("creating create credential for application",e);const{data:a}=await f.create({application_id:e?.id,host:window.location.origin});return console.debug("created credential success",a),t("setCredential",a),console.debug("end createCredential"),a},x=async({commit:t,state:s})=>{s.status.getService=n.Request;try{const{data:e}=await S.get(g);return s.status.getService=n.Success,t("setService",e),e}catch{s.status.getService=n.Error,t("setService",void 0)}},_=async({commit:t,state:s,rootState:e})=>{console.debug("start to get applications for nanobanana"),s.status.getApplications=n.Request;try{const{data:a}=await b.getAll({user_id:e?.user?.id,service_id:g});return s.status.getApplications=n.Success,t("setApplications",a.items),a.items}catch(a){console.error("get applications failed",a),s.status.getApplications=n.Error,t("setApplications",void 0),t("setApplication",void 0)}},q=({commit:t},s)=>{t("setConfig",s)},N=({commit:t},s)=>{t("setTasks",s)},P=({commit:t},s)=>{t("setTasksItems",s)},R=({commit:t},s)=>{t("setTasksTotal",s)},B=({commit:t},s)=>{t("setTasksActive",s)},D=async({commit:t,state:s,rootState:e},{offset:a,limit:i,createdAtMin:A,createdAtMax:T})=>(s.status.getTasks=n.Request,new Promise((v,r)=>{console.debug("start to get tasks",a,i);const l=s.credential;console.debug("current credential",l);const d=l?.token;if(!d)return s.status.getTasks=n.Error,r("no token");w.tasks({userId:e?.user?.id,offset:a,limit:i,createdAtMin:A,createdAtMax:T,type:"images"},{token:d}).then(o=>{console.debug("get images tasks success",o.data.items);const p=s?.tasks?.items||[];console.debug("existing items",p);const u=o.data.items||[];console.debug("new items",u);const m=C(p,u);t("setTasksItems",m),t("setTasksTotal",o.data.count),s.status.getTasks=n.Success,v(o.data.items)}).catch(o=>(s.status.getTasks=n.Error,r(o)))})),F={createCredential:O,setService:E,getService:x,resetAll:I,setCredential:h,setConfig:q,setApplications:y,setApplication:$,getApplications:_,setTasks:N,setTasksItems:P,setTasksTotal:R,setTasksActive:B,getTasks:D},c={items:void 0,total:void 0,active:void 0},L=t=>{Object.assign(t,k())},V=(t,s)=>{t.service=s},j=(t,s)=>{t.credential=s},z=(t,s)=>{t.application=s},G=(t,s)=>{t.applications=s},H=(t,s)=>{t.config=s},J=(t,s)=>{const e={...t.tasks||c,items:s};t.tasks=e},K=(t,s)=>{const e={...t.tasks||c,total:s};t.tasks=e},M=(t,s)=>{const e={...t.tasks||c,active:s};t.tasks=e},Q=(t,s)=>{t.tasks=s},U={setTasks:Q,setApplication:z,setApplications:G,setConfig:H,setCredential:j,setService:V,setTasksActive:M,setTasksItems:J,setTasksTotal:K,resetAll:L},nt={namespaced:!0,state:k,mutations:U,actions:F};export{nt as default,nt as nanobanana};