@abtnode/webapp 1.16.47-beta-20250730-070104-87a128a5 → 1.16.47-beta-20250731-014139-e860268f

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 (209) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{AdapterDayjs-BtMrgFCS.js → AdapterDayjs-BiAcanOe.js} +5 -5
  4. package/dist/assets/{Add-D_yVrBZ2.js → Add-CMaOaJcy.js} +1 -1
  5. package/dist/assets/ArrowDropDown-BidZ6YZa.js +1 -0
  6. package/dist/assets/{Autocomplete-DFB-zfAj.js → Autocomplete-Jvr3OBqO.js} +1 -1
  7. package/dist/assets/{Breadcrumbs-Bn8z2ZUX.js → Breadcrumbs-CWrPLIEE.js} +1 -1
  8. package/dist/assets/{ButtonGroup-DEvYFpA9.js → ButtonGroup-BHDJ_xHw.js} +1 -1
  9. package/dist/assets/{CSSTransition-sQz5ESLI.js → CSSTransition-BKoPfTin.js} +1 -1
  10. package/dist/assets/{CallMerge-nqJcCofk.js → CallMerge-B_44wajA.js} +1 -1
  11. package/dist/assets/{CardContent-DBRqZcUi.js → CardContent-C9FF8zmo.js} +1 -1
  12. package/dist/assets/{ChevronLeft-4c5hb-O9.js → ChevronLeft-C_5SFpZ3.js} +1 -1
  13. package/dist/assets/{ChevronRight-gJV_CVk6.js → ChevronRight-D5Dv2KwC.js} +1 -1
  14. package/dist/assets/{Clear-CseZqtJJ.js → Clear-DUjqNsqY.js} +1 -1
  15. package/dist/assets/{DeleteOutline-Ce83cykk.js → DeleteOutline-BJkxA9W_.js} +1 -1
  16. package/dist/assets/{Done-TWYMo-78.js → Done-1e3LsE76.js} +1 -1
  17. package/dist/assets/{Edit-SaGMHxTB.js → Edit-Brfok_V9.js} +1 -1
  18. package/dist/assets/{ErrorOutline-Cpk6THeg.js → ErrorOutline-DU8Lm-me.js} +1 -1
  19. package/dist/assets/{FilterList-BAa4N29F.js → FilterList-DdUKcAm_.js} +1 -1
  20. package/dist/assets/{Google-oyxfoTny.js → Google-MHF3yZux.js} +1 -1
  21. package/dist/assets/{HelpOutline-CwK6RnYZ.js → HelpOutline-r64pe9r_.js} +1 -1
  22. package/dist/assets/{Launch-BGA2e5Nh.js → Launch-BSO75Y-o.js} +1 -1
  23. package/dist/assets/{Link-BuDft3kj.js → Link-DxZkbVyA.js} +1 -1
  24. package/dist/assets/{ListItemButton-Bc8Ct64X.js → ListItemButton-CWYI6B1i.js} +1 -1
  25. package/dist/assets/{ListSubheader-Dx1TAi_z.js → ListSubheader-B5z3JXVs.js} +1 -1
  26. package/dist/assets/{LoadingButton-_O3gAanO.js → LoadingButton-BvBtyajW.js} +1 -1
  27. package/dist/assets/{MoreVert-CPqEfvtL.js → MoreVert-B3-V93zF.js} +1 -1
  28. package/dist/assets/{OpenInNew-B8F3vFrA.js → OpenInNew-2p7Osi_B.js} +1 -1
  29. package/dist/assets/{Refresh-BGBC8bFM.js → Refresh-BwUIw44i.js} +1 -1
  30. package/dist/assets/{Search-B-mOt1mV.js → Search-CVsnDnpP.js} +1 -1
  31. package/dist/assets/{Slider-DtMbThDZ.js → Slider-BUlXyua5.js} +1 -1
  32. package/dist/assets/{Stepper-D3IZ8VnG.js → Stepper-Yd1ce1vv.js} +1 -1
  33. package/dist/assets/{Switch-BXS-cMbK.js → Switch-C1fxxz5n.js} +1 -1
  34. package/dist/assets/{TableSearch-Ba0268Ym.js → TableSearch-CKX4rVuU.js} +2 -2
  35. package/dist/assets/{ToggleButtonGroup-wz_HOnUh.js → ToggleButtonGroup-DrT1SlJe.js} +1 -1
  36. package/dist/assets/{Verified-BZYKWFMj.js → Verified-DYk2lw3M.js} +1 -1
  37. package/dist/assets/{VerifiedUser-C7uawhTO.js → VerifiedUser-NPP4tmwS.js} +1 -1
  38. package/dist/assets/{ViewList-Dnwh79y2.js → ViewList-Dxw4_fs_.js} +1 -1
  39. package/dist/assets/{_createAggregator-C-igeddN.js → _createAggregator-BgffVIEW.js} +1 -1
  40. package/dist/assets/{actions-BasLLFLB.js → actions-BWsi7i72.js} +2 -2
  41. package/dist/assets/{actions-DCyuilI2.js → actions-G3fsUkti.js} +1 -1
  42. package/dist/assets/{agreement-DZDzRKHa.js → agreement-DQuDFy25.js} +1 -1
  43. package/dist/assets/api-BJGpnzKK.js +1 -0
  44. package/dist/assets/{appearance-B9fu42ad.js → appearance-Se_lMnLq.js} +1 -1
  45. package/dist/assets/{ar-7eC8LKj2.js → ar-DKohTs5n.js} +1 -1
  46. package/dist/assets/{audit-logs-D8ZHDIr5.js → audit-logs-CqQ2o-hd.js} +2 -2
  47. package/dist/assets/{base-chart-CZ5IfPx1.js → base-chart-_QOGjOWD.js} +1 -1
  48. package/dist/assets/{blocklet-DTKRGXY2.js → blocklet-BWShyefZ.js} +1 -1
  49. package/dist/assets/{chain-D_LNFrKA.js → chain-4QRvY1Fq.js} +2 -2
  50. package/dist/assets/click-to-copy-BgnS-qFa.js +1 -0
  51. package/dist/assets/client-a5hg5ILL.js +1 -0
  52. package/dist/assets/cloneDeep-DUxbCdHx.js +1 -0
  53. package/dist/assets/{collapse-D8BjMRV-.js → collapse-DhWx6Fiz.js} +1 -1
  54. package/dist/assets/{config-navigation-HsCZP_KM.js → config-navigation-CsJNd9mk.js} +3 -3
  55. package/dist/assets/{connect-to-B93KdpBp.js → connect-to-BJU3I-tO.js} +1 -1
  56. package/dist/assets/{cssMode-BLx8QOT-.js → cssMode-BfuAy7Af.js} +1 -1
  57. package/dist/assets/{de-DgwOa_mf.js → de-CYm7FmiN.js} +1 -1
  58. package/dist/assets/{delete-confirm-DOAuBeZW.js → delete-confirm-DRlMHX1Z.js} +1 -1
  59. package/dist/assets/{depsEqual-KodVUXvV.js → depsEqual-D0AotRxG.js} +1 -1
  60. package/dist/assets/detail-D5mwafWs.js +58 -0
  61. package/dist/assets/{domains-Ba91DmOX.js → domains-Uw1IUOhz.js} +2 -2
  62. package/dist/assets/{download-BADzbUsd.js → download-BITZfYyH.js} +1 -1
  63. package/dist/assets/emotion-cache.browser.esm-BDnrC0c-.js +1 -0
  64. package/dist/assets/engine-3IdUdjkH.js +1 -0
  65. package/dist/assets/{es-B_gBSKp3.js → es-5zob_8Of.js} +1 -1
  66. package/dist/assets/{fr-Bm0AhLrO.js → fr-GNzEzJIo.js} +1 -1
  67. package/dist/assets/{freemarker2-BTTF114U.js → freemarker2-RPBEtbdT.js} +1 -1
  68. package/dist/assets/{get-safe-url-Ye2EWwkH.js → get-safe-url-Dqogbkdq.js} +1 -1
  69. package/dist/assets/getValidReactChildren-SkwQHrW1.js +1 -0
  70. package/dist/assets/{graphqlMode-CLyuuGgs.js → graphqlMode-CaadduEK.js} +2 -2
  71. package/dist/assets/{handlebars-D1wnOJww.js → handlebars-D8A3QMQA.js} +1 -1
  72. package/dist/assets/{hi-DO31L4at.js → hi-BMaS53lF.js} +1 -1
  73. package/dist/assets/{html-CAWHXH95.js → html-mPnmQbuN.js} +1 -1
  74. package/dist/assets/html-title-CacFoTyg.js +1 -0
  75. package/dist/assets/{htmlMode-BHaJrt3h.js → htmlMode-DI5mRJJV.js} +1 -1
  76. package/dist/assets/{id-BYCjnoK8.js → id-CbyxMpli.js} +1 -1
  77. package/dist/assets/{iframe-CUpb7ICB.js → iframe-Czk-UT3-.js} +1 -1
  78. package/dist/assets/{index-a7RH9Stt.js → index-9W_t0LqL.js} +1 -1
  79. package/dist/assets/{index-DmpIRzjQ.js → index-B-8U8lYj.js} +1 -1
  80. package/dist/assets/{index-Cft3_tM7.js → index-B1iMTf-1.js} +1 -1
  81. package/dist/assets/{index-Bmy8KBkN.js → index-B9eEN6Ex.js} +1 -1
  82. package/dist/assets/{index-Dvrc3qEy.js → index-BCt6EuqV.js} +1 -1
  83. package/dist/assets/{index-Dm9SjbUQ.js → index-BOGGfGZP.js} +1 -1
  84. package/dist/assets/{index-CkvSX6B-.js → index-BbLteX_9.js} +19 -19
  85. package/dist/assets/index-BeXjeW_D.js +79 -0
  86. package/dist/assets/{index-CU1U0Fbj.js → index-BiSZbdUR.js} +1 -1
  87. package/dist/assets/{index-CgI1wgSP.js → index-Bk2swyn_.js} +23 -23
  88. package/dist/assets/{index-DiZ8ImCf.js → index-BwAWqOYq.js} +1 -1
  89. package/dist/assets/index-C0IoSN2J.js +45 -0
  90. package/dist/assets/{index-CkqfZU31.js → index-C2SQKbgp.js} +1 -1
  91. package/dist/assets/index-C7H9Stfd.js +316 -0
  92. package/dist/assets/{index-BAmzwezR.js → index-C7J9Tf7N.js} +1 -1
  93. package/dist/assets/{index-jJRuEvFt.js → index-CC-3XMOt.js} +1 -1
  94. package/dist/assets/{index-BdnfHuZv.js → index-CGfr_Xf0.js} +1 -1
  95. package/dist/assets/{index-DMhD7EeU.js → index-CLTTHohk.js} +1 -1
  96. package/dist/assets/{index-BRb176tk.js → index-COsQ2pDX.js} +1 -1
  97. package/dist/assets/{index-BPfwFPum.js → index-CSsjxwWr.js} +1 -1
  98. package/dist/assets/{index-Dz2nYC7g.js → index-CWfqG7JG.js} +3 -3
  99. package/dist/assets/{index-BXRotQM-.js → index-CZj-IeN0.js} +1 -1
  100. package/dist/assets/{index-CFpyMQ_d.js → index-CagsSpuh.js} +9 -9
  101. package/dist/assets/{index-CX6gDshF.js → index-CjzEBnHB.js} +8 -8
  102. package/dist/assets/index-CmGv3elb.js +120 -0
  103. package/dist/assets/{index-BApymdtV.js → index-CmwksVS0.js} +1 -1
  104. package/dist/assets/{index-Nhy6IaeB.js → index-CqSRbifn.js} +1 -1
  105. package/dist/assets/{index-NS5A6eLA.js → index-CsVDrMMd.js} +2 -2
  106. package/dist/assets/{index-CUwyrdOY.js → index-CwxkXQDN.js} +1 -1
  107. package/dist/assets/{index-ijZD2Gee.js → index-Cyh9wrDu.js} +10 -10
  108. package/dist/assets/{index-zs5l3prb.js → index-Cz0waa_4.js} +1 -1
  109. package/dist/assets/{index-BqithI6e.js → index-D-Icpyc2.js} +1 -1
  110. package/dist/assets/{index-Dv62Si5m.js → index-D4Q12FU6.js} +1 -1
  111. package/dist/assets/{index-YPVihXU7.js → index-DFaykc-l.js} +1 -1
  112. package/dist/assets/{index-BfXbyXkW.js → index-DGqI12Zh.js} +1 -1
  113. package/dist/assets/{index-BLpgHHR-.js → index-DSZpPG9s.js} +3 -3
  114. package/dist/assets/{index-BUVEfL-H.js → index-D_ZRDcUb.js} +1 -1
  115. package/dist/assets/index-DcxGCVz2.js +1 -0
  116. package/dist/assets/{index-DNy1-otX.js → index-Df8aFWjk.js} +9 -9
  117. package/dist/assets/{index-Bo_5PZBY.js → index-DuWuA4Qr.js} +2 -2
  118. package/dist/assets/{index-vaPTgN2r.js → index-Pb0zzrzv.js} +20 -20
  119. package/dist/assets/index-WWc-YnJr.js +113 -0
  120. package/dist/assets/{index-D18Kk1fT.js → index-dQzdi1Hq.js} +1 -1
  121. package/dist/assets/{index-Bn2tsvZc.js → index-jUWkwezj.js} +4 -4
  122. package/dist/assets/{index-Dl_Ia9GM.js → index-n35bDjPH.js} +1 -1
  123. package/dist/assets/{index-CJc0rh4y.js → index-sraicR1d.js} +1 -1
  124. package/dist/assets/{index.esm-CSlUhA6z.js → index.esm-CXCRSK_f.js} +1 -1
  125. package/dist/assets/{install-from-url-DZxo6ZYF.js → install-from-url-Bpa-muAm.js} +1 -1
  126. package/dist/assets/{invitation-DuMro-DT.js → invitation-hZO0WzEZ.js} +1 -1
  127. package/dist/assets/{is-path-prefix-equal-BbciGE2u.js → is-path-prefix-equal-CpCr5Pp2.js} +1 -1
  128. package/dist/assets/{item-Bh3b7oE0.js → item-Ds6r8B85.js} +6 -6
  129. package/dist/assets/{ja-Ck2EVKeO.js → ja-BPCCKkW4.js} +1 -1
  130. package/dist/assets/{javascript-Bfi1s6Y8.js → javascript-CGPbA1CY.js} +1 -1
  131. package/dist/assets/{jsonMode-lekI5_I4.js → jsonMode-Dlg8sdnH.js} +1 -1
  132. package/dist/assets/{ko-Nk_6p6Jl.js → ko-Wbe93sio.js} +1 -1
  133. package/dist/assets/{liquid-DZv4bT5H.js → liquid-D13SNYj1.js} +1 -1
  134. package/dist/assets/{list-header-B5ciTDV9.js → list-header-DZTbN58s.js} +1 -1
  135. package/dist/assets/{log-H6ZEmpY1.js → log-C--AbUmH.js} +1 -1
  136. package/dist/assets/{lottie-react.esm-TmjsMLZQ.js → lottie-react.esm-bHdqVYkV.js} +1 -1
  137. package/dist/assets/{mdx-D7KGnBOI.js → mdx-geJ5pn3l.js} +1 -1
  138. package/dist/assets/{memory-BJvUF24N.js → memory-DLJFi013.js} +1 -1
  139. package/dist/assets/{metric-DqHLPUdD.js → metric-nF2Xx_cP.js} +1 -1
  140. package/dist/assets/omit-CMtjAJiD.js +1 -0
  141. package/dist/assets/{overview-N_ciTHKs.js → overview-DbcbGc2C.js} +1 -1
  142. package/dist/assets/{permission-xI7TPD_-.js → permission-DG9uH24n.js} +1 -1
  143. package/dist/assets/{preference-COzP_QI_.js → preference-DQfFXuWW.js} +3 -3
  144. package/dist/assets/{pt-C-JzkWqR.js → pt-C1fHGXQk.js} +1 -1
  145. package/dist/assets/{python-CJm_dsIE.js → python-Cdls_5iy.js} +1 -1
  146. package/dist/assets/{raf-schd.esm-s2KsxjyR.js → raf-schd.esm-BfNfEe8D.js} +1 -1
  147. package/dist/assets/{razor-BWHFGLFh.js → razor-DxOaQqxx.js} +1 -1
  148. package/dist/assets/{rotate-session-key-CowHvrJJ.js → rotate-session-key-BXcd-5Zn.js} +1 -1
  149. package/dist/assets/{ru-DR6is0tr.js → ru-DJ3aNml8.js} +1 -1
  150. package/dist/assets/{runtime-DgZNKPs1.js → runtime-CzuKUbuj.js} +1 -1
  151. package/dist/assets/schema-CgZR3vFp.js +1 -0
  152. package/dist/assets/sdk-CJb0Z10-.js +1 -0
  153. package/dist/assets/service-zTgtva4o.js +1 -0
  154. package/dist/assets/{shorten-label-NmOkB2cg.js → shorten-label-BCEJK9kd.js} +1 -1
  155. package/dist/assets/{simple-select-DVpAUW9K.js → simple-select-DGcxx-W-.js} +1 -1
  156. package/dist/assets/{spaces-CZFNtfbq.js → spaces-CUI-UEB-.js} +1 -1
  157. package/dist/assets/{status-CFt9_6p0.js → status-Bi_Pou8g.js} +1 -1
  158. package/dist/assets/{status-B-Brq_RM.js → status-mS0PFNHr.js} +1 -1
  159. package/dist/assets/{switch-control-B8ORvjoD.js → switch-control-BBKsCU2Y.js} +1 -1
  160. package/dist/assets/{table-icons-BKf29GdU.js → table-icons-hZGjJ2eg.js} +52 -68
  161. package/dist/assets/{team-Dk-2oEpZ.js → team-1bg7ZL8j.js} +1 -1
  162. package/dist/assets/{th-Cn3755Vi.js → th-C22KCFdo.js} +1 -1
  163. package/dist/assets/{toLower-CD8Z1e9D.js → toLower-p7cMPP8n.js} +1 -1
  164. package/dist/assets/toUpper-g96Av6xB.js +1 -0
  165. package/dist/assets/{traffic-DR9L6nFW.js → traffic-B8RUG_pS.js} +1 -1
  166. package/dist/assets/{tsMode-OD8H16VT.js → tsMode-B0Ss7AK7.js} +1 -1
  167. package/dist/assets/{typescript-CPkFJ71d.js → typescript-Cq9RZqPR.js} +1 -1
  168. package/dist/assets/{url-evaluation-c4Fe77Jg.js → url-evaluation-BMLhywvu.js} +1 -1
  169. package/dist/assets/{url-join-DA4AkRL3.js → url-join-CBh7FZtG.js} +1 -1
  170. package/dist/assets/{use-mobile-MMitRVbD.js → use-mobile-BHeriyen.js} +1 -1
  171. package/dist/assets/{use-mobile-s6Z2HXGw.js → use-mobile-Dn3IunVN.js} +1 -1
  172. package/dist/assets/{useAsync-BLbCNK6N.js → useAsync-ByzD9-iZ.js} +1 -1
  173. package/dist/assets/{useAsyncRetry-DruySzFm.js → useAsyncRetry-CrZGrFzH.js} +1 -1
  174. package/dist/assets/{useLocalStorage-DBFHYH4w.js → useLocalStorage-BHL7RS8q.js} +1 -1
  175. package/dist/assets/{useThemeProps-CHzERYQJ.js → useThemeProps-DooTQWd6.js} +1 -1
  176. package/dist/assets/{util-DcV9UPg-.js → util-BErsOHdh.js} +1 -1
  177. package/dist/assets/{vi-7MIaoDt9.js → vi-D_AWh4Q3.js} +1 -1
  178. package/dist/assets/{wait-container-C3t0_9pD.js → wait-container-DfL-msy6.js} +1 -1
  179. package/dist/assets/{without-wallet-C-NBCmOm.js → without-wallet-BwvrV6Xc.js} +1 -1
  180. package/dist/assets/wrap-locale-DdILYRop.js +1 -0
  181. package/dist/assets/{xml-ZnZT4dmm.js → xml-Cr_Y_Yft.js} +1 -1
  182. package/dist/assets/{yaml-COdysg5-.js → yaml-RBxoeLGe.js} +1 -1
  183. package/dist/assets/{zh-DswrR4Lx.js → zh-ZjW3xV_P.js} +1 -1
  184. package/dist/assets/{zh-tw-De_IfliP.js → zh-tw-BuqwZI-0.js} +1 -1
  185. package/dist/index.html +1 -1
  186. package/dist/service-worker.js +1 -1
  187. package/package.json +1 -1
  188. package/dist/assets/ArrowDropDown-xY2s7Ihq.js +0 -1
  189. package/dist/assets/api-Clj72YcZ.js +0 -1
  190. package/dist/assets/click-to-copy-B9VHrkLa.js +0 -1
  191. package/dist/assets/client-CKiDm4Sh.js +0 -1
  192. package/dist/assets/cloneDeep-ChKH-mUk.js +0 -1
  193. package/dist/assets/detail-DNxn6vzE.js +0 -58
  194. package/dist/assets/emotion-cache.browser.esm-LZWLgccN.js +0 -1
  195. package/dist/assets/engine-CnD_uEkh.js +0 -1
  196. package/dist/assets/getValidReactChildren-CcAo1bEa.js +0 -1
  197. package/dist/assets/index-BJi0KLKD.js +0 -113
  198. package/dist/assets/index-CUJnu-Cz.js +0 -316
  199. package/dist/assets/index-Ch95NoWO.js +0 -45
  200. package/dist/assets/index-D8Whs-QW.js +0 -120
  201. package/dist/assets/index-DtIGnfqA.js +0 -80
  202. package/dist/assets/index-SNFmscVU.js +0 -1
  203. package/dist/assets/index-rqx96NXG.js +0 -1
  204. package/dist/assets/omit-A7YJlIhK.js +0 -1
  205. package/dist/assets/schema-BCRuQHJw.js +0 -1
  206. package/dist/assets/sdk-Bv8uTx0n.js +0 -1
  207. package/dist/assets/service-C3ESAoY1.js +0 -1
  208. package/dist/assets/toUpper-B-KX3CuD.js +0 -1
  209. package/dist/assets/wrap-locale-DH63zt6h.js +0 -1
@@ -1,5 +1,5 @@
1
- import{c0 as ze,r as L,cq as xt,ba as yo,bb as vo,cR as Ot,f3 as tt,cr as ht,f4 as xo,f5 as wo,f6 as br,aG as $t,j as o,be as We,dd as So,ds as Ct,bd as ko,f as Ve,f7 as jo,a2 as To,e_ as Oo,f8 as Yr,aB as Co,aC as _n,N as H,aV as ve,f9 as Eo,fa as tn,cZ as yr,cv as Io,T as Q,fb as Po,f1 as Qr,C as Re,dE as Oe,fc as Jr,fd as _o,fe as Zr,dG as ei,ff as nn,t as ti,U as Ft,y as rt,at as Wt,fg as Ro,F as nt,aU as ni,V as ri,z as Rn,dk as Fe,G as vr,aP as Mo,eK as xr,cF as Lo,fh as Do,fi as zo,fj as Fo,cD as Wo,O as Ao,dH as No,fk as Bo,dF as $o,bu as Uo,_ as Ko,fl as Ho,fm as wr,dc as Ne,m as qe,az as Mn,aO as Sr,o as R,bk as Vo,fn as ii,b2 as qo,aE as Et,v as At,a7 as Go,a8 as oi,aF as Xo,fo as kr,a9 as Yo,bn as Ln,$ as Qo,D as Jo,X as Zo,cL as es,Y as ft,ez as ts,H as Ke,b as ns,n as rs,a$ as is,ad as os,E as si,cw as ss,b8 as as,W as ls}from"./index-CX6gDshF.js";import{P as cs}from"./ChevronLeft-4c5hb-O9.js";import{N as us}from"./ChevronRight-gJV_CVk6.js";import{S as ds}from"./Search-B-mOt1mV.js";import{y as hs}from"./index-D18Kk1fT.js";import{o as fs,u as ps}from"./blocklet-DTKRGXY2.js";import{A as ms}from"./Autocomplete-DFB-zfAj.js";import{V as gs}from"./Verified-BZYKWFMj.js";import{S as bs,V as ys}from"./VerifiedUser-C7uawhTO.js";import{A as vs}from"./Add-D_yVrBZ2.js";import{L as ai}from"./Launch-BGA2e5Nh.js";import{D as xs}from"./Done-TWYMo-78.js";import{D as li}from"./DeleteOutline-Ce83cykk.js";import{D as ws}from"./delete-confirm-DOAuBeZW.js";import{I as Ss}from"./MoreVert-CPqEfvtL.js";import{g as gt}from"./get-safe-url-Ye2EWwkH.js";import{B as jr}from"./ButtonGroup-DEvYFpA9.js";var ks=function(e){return e===document||e===document.documentElement||e===document.body?Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},Tr=function(e){return e.scrollHeight||Math.max(document.documentElement.scrollHeight,document.body.scrollHeight)},js=function(e){return e.clientHeight||Math.max(document.documentElement.clientHeight,document.body.clientHeight)},Ts=function(e,t){t===void 0&&(t={});var n=t.target,r=t.isNoMore,i=t.threshold,s=i===void 0?100:i,h=t.direction,u=h===void 0?"bottom":h,p=t.reloadDeps,g=p===void 0?[]:p,m=t.manual,v=t.onBefore,j=t.onSuccess,w=t.onError,k=t.onFinally,x=ze(L.useState(),2),C=x[0],_=x[1],T=ze(L.useState(!1),2),W=T[0],X=T[1],J=u==="top",A=L.useRef(void 0),V=L.useRef(0),Z=L.useMemo(function(){return r?r(C):!1},[C]),re=xt(function(ie){return yo(void 0,void 0,void 0,function(){var ee,me,Ie,Pe;return vo(this,function(wt){switch(wt.label){case 0:return[4,e(ie)];case 1:return ee=wt.sent(),_(ie?Ot(Ot({},ee),{list:J?tt(tt([],ze(ee.list),!1),ze((Ie=ie.list)!==null&&Ie!==void 0?Ie:[]),!1):tt(tt([],ze((Pe=ie.list)!==null&&Pe!==void 0?Pe:[]),!1),ze(ee.list),!1)}):Ot(Ot({},ee),{list:tt([],ze((me=ee.list)!==null&&me!==void 0?me:[]),!1)})),[2,ee]}})})},{manual:m,onFinally:function(ie,ee,me){X(!1),k?.(ee,me)},onBefore:function(){return v?.()},onSuccess:function(ie){setTimeout(function(){if(J){var ee=br(n);if(ee=ee===document?document.documentElement:ee,ee){var me=Tr(ee);ee.scrollTo(0,me-V.current)}}else ue()}),j?.(ie)},onError:function(ie){return w?.(ie)}}),$=re.loading,Ee=re.error,ge=re.run,Se=re.runAsync,pe=re.cancel,be=ht(function(){Z||(X(!0),ge(C))}),D=ht(function(){return Z?Promise.reject():(X(!0),Se(C))}),ae=function(){return X(!1),ge()},Te=function(){return X(!1),Se()},ue=function(){var ie=br(n);if(ie){var ee=ie===document?document.documentElement:ie,me=ks(ee),Ie=Tr(ee),Pe=js(ee);J?(A.current!==void 0&&A.current>me&&me<=s&&be(),A.current=me,V.current=Ie-me):Ie-me<=Pe+s&&be()}};return xo("scroll",function(){$||W||ue()},{target:n}),wo(function(){ge()},tt([],ze(g),!1)),{data:C,loading:!W&&$,error:Ee,loadingMore:W,noMore:Z,loadMore:be,loadMoreAsync:D,reload:ht(ae),reloadAsync:ht(Te),mutate:_,cancel:pe}};const Os=$t(o.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M19 18H6c-2.21 0-4-1.79-4-4 0-2.05 1.53-3.76 3.56-3.97l1.07-.11.5-.95C8.08 7.14 9.94 6 12 6c2.62 0 4.88 1.86 5.39 4.43l.3 1.5 1.53.11c1.56.1 2.78 1.41 2.78 2.96 0 1.65-1.35 3-3 3M8 13h2.55v3h2.9v-3H16l-4-4z"})),Cs=$t(o.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"})),Es=$t(o.jsx("path",{d:"M17 7h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1 0 1.43-.98 2.63-2.31 2.98l1.46 1.46C20.88 15.61 22 13.95 22 12c0-2.76-2.24-5-5-5m-1 4h-2.19l2 2H16zM2 4.27l3.11 3.11C3.29 8.12 2 9.91 2 12c0 2.76 2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1 0-1.59 1.21-2.9 2.76-3.07L8.73 11H8v2h2.73L13 15.27V17h1.73l4.01 4L20 19.74 3.27 3z"})),Is=$t(o.jsx("path",{d:"M17 7h-4v2h4c1.65 0 3 1.35 3 3s-1.35 3-3 3h-4v2h4c2.76 0 5-2.24 5-5s-2.24-5-5-5m-6 8H7c-1.65 0-3-1.35-3-3s1.35-3 3-3h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4zm-3-4h8v2H8z"})),gc="blocklet-add-component-registry",bc="server-add-registry",Ps={width:24,height:24,body:'<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="m8 16l2-6l6-2l-2 6l-6 2"/><path d="M3 12a9 9 0 1 0 18 0a9 9 0 1 0-18 0m9-9v2m0 14v2m-9-9h2m14 0h2"/></g>'},pt=/^[a-z0-9]+(-[a-z0-9]+)*$/,Ut=(e,t,n,r="")=>{const i=e.split(":");if(e.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const u=i.pop(),p=i.pop(),g={provider:i.length>0?i[0]:r,prefix:p,name:u};return t&&!Lt(g)?null:g}const s=i[0],h=s.split("-");if(h.length>1){const u={provider:r,prefix:h.shift(),name:h.join("-")};return t&&!Lt(u)?null:u}if(n&&r===""){const u={provider:r,prefix:"",name:s};return t&&!Lt(u,n)?null:u}return null},Lt=(e,t)=>e?!!((e.provider===""||e.provider.match(pt))&&(t&&e.prefix===""||e.prefix.match(pt))&&e.name.match(pt)):!1,ci=Object.freeze({left:0,top:0,width:16,height:16}),Nt=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Dn=Object.freeze({...ci,...Nt}),yn=Object.freeze({...Dn,body:"",hidden:!1});function _s(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function Or(e,t){const n=_s(e,t);for(const r in yn)r in Nt?r in e&&!(r in n)&&(n[r]=Nt[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function Rs(e,t){const n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function s(h){if(n[h])return i[h]=[];if(!(h in i)){i[h]=null;const u=r[h]&&r[h].parent,p=u&&s(u);p&&(i[h]=[u].concat(p))}return i[h]}return Object.keys(n).concat(Object.keys(r)).forEach(s),i}function Ms(e,t,n){const r=e.icons,i=e.aliases||Object.create(null);let s={};function h(u){s=Or(r[u]||i[u],s)}return h(t),n.forEach(h),Or(e,s)}function ui(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(i=>{t(i,null),n.push(i)});const r=Rs(e);for(const i in r){const s=r[i];s&&(t(i,Ms(e,i,s)),n.push(i))}return n}const Ls={provider:"",aliases:{},not_found:{},...ci};function rn(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function di(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!rn(e,Ls))return null;const n=t.icons;for(const i in n){const s=n[i];if(!i.match(pt)||typeof s.body!="string"||!rn(s,yn))return null}const r=t.aliases||Object.create(null);for(const i in r){const s=r[i],h=s.parent;if(!i.match(pt)||typeof h!="string"||!n[h]&&!r[h]||!rn(s,yn))return null}return t}const Cr=Object.create(null);function Ds(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function He(e,t){const n=Cr[e]||(Cr[e]=Object.create(null));return n[t]||(n[t]=Ds(e,t))}function zn(e,t){return di(t)?ui(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function zs(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let bt=!1;function hi(e){return typeof e=="boolean"&&(bt=e),bt}function Fs(e){const t=typeof e=="string"?Ut(e,!0,bt):e;if(t){const n=He(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function Ws(e,t){const n=Ut(e,!0,bt);if(!n)return!1;const r=He(n.provider,n.prefix);return zs(r,n.name,t)}function As(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),bt&&!t&&!e.prefix){let i=!1;return di(e)&&(e.prefix="",ui(e,(s,h)=>{h&&Ws(s,h)&&(i=!0)})),i}const n=e.prefix;if(!Lt({provider:t,prefix:n,name:"a"}))return!1;const r=He(t,n);return!!zn(r,e)}const fi=Object.freeze({width:null,height:null}),pi=Object.freeze({...fi,...Nt}),Ns=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Bs=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Er(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(Ns);if(r===null||!r.length)return e;const i=[];let s=r.shift(),h=Bs.test(s);for(;;){if(h){const u=parseFloat(s);isNaN(u)?i.push(s):i.push(Math.ceil(u*t*n)/n)}else i.push(s);if(s=r.shift(),s===void 0)return i.join("");h=!h}}const $s=e=>e==="unset"||e==="undefined"||e==="none";function Us(e,t){const n={...Dn,...e},r={...pi,...t},i={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(k=>{const x=[],C=k.hFlip,_=k.vFlip;let T=k.rotate;C?_?T+=2:(x.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),x.push("scale(-1 1)"),i.top=i.left=0):_&&(x.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),x.push("scale(1 -1)"),i.top=i.left=0);let W;switch(T<0&&(T-=Math.floor(T/4)*4),T=T%4,T){case 1:W=i.height/2+i.top,x.unshift("rotate(90 "+W.toString()+" "+W.toString()+")");break;case 2:x.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:W=i.width/2+i.left,x.unshift("rotate(-90 "+W.toString()+" "+W.toString()+")");break}T%2===1&&(i.left!==i.top&&(W=i.left,i.left=i.top,i.top=W),i.width!==i.height&&(W=i.width,i.width=i.height,i.height=W)),x.length&&(s='<g transform="'+x.join(" ")+'">'+s+"</g>")});const h=r.width,u=r.height,p=i.width,g=i.height;let m,v;h===null?(v=u===null?"1em":u==="auto"?g:u,m=Er(v,p/g)):(m=h==="auto"?p:h,v=u===null?Er(m,g/p):u==="auto"?g:u);const j={},w=(k,x)=>{$s(x)||(j[k]=x.toString())};return w("width",m),w("height",v),j.viewBox=i.left.toString()+" "+i.top.toString()+" "+p.toString()+" "+g.toString(),{attributes:j,body:s}}const Ks=/\sid="(\S+)"/g,Hs="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Vs=0;function qs(e,t=Hs){const n=[];let r;for(;r=Ks.exec(e);)n.push(r[1]);if(!n.length)return e;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const h=typeof t=="function"?t(s):t+(Vs++).toString(),u=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+u+')([")]|\\.[a-z])',"g"),"$1"+h+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}const vn=Object.create(null);function Gs(e,t){vn[e]=t}function xn(e){return vn[e]||vn[""]}function Fn(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Wn=Object.create(null),dt=["https://api.simplesvg.com","https://api.unisvg.com"],Dt=[];for(;dt.length>0;)dt.length===1||Math.random()>.5?Dt.push(dt.shift()):Dt.push(dt.pop());Wn[""]=Fn({resources:["https://api.iconify.design"].concat(Dt)});function Xs(e,t){const n=Fn(t);return n===null?!1:(Wn[e]=n,!0)}function An(e){return Wn[e]}const Ys=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Ir=Ys();function Qs(e,t){const n=An(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let i=0;n.resources.forEach(h=>{i=Math.max(i,h.length)});const s=t+".json?icons=";r=n.maxURL-i-n.path.length-s.length}return r}function Js(e){return e===404}const Zs=(e,t,n)=>{const r=[],i=Qs(e,t),s="icons";let h={type:s,provider:e,prefix:t,icons:[]},u=0;return n.forEach((p,g)=>{u+=p.length+1,u>=i&&g>0&&(r.push(h),h={type:s,provider:e,prefix:t,icons:[]},u=p.length),h.icons.push(p)}),r.push(h),r};function ea(e){if(typeof e=="string"){const t=An(e);if(t)return t.path}return"/"}const ta=(e,t,n)=>{if(!Ir){n("abort",424);return}let r=ea(t.provider);switch(t.type){case"icons":{const s=t.prefix,u=t.icons.join(","),p=new URLSearchParams({icons:u});r+=s+".json?"+p.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let i=503;Ir(e+r).then(s=>{const h=s.status;if(h!==200){setTimeout(()=>{n(Js(h)?"abort":"next",h)});return}return i=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",i)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",i)})},na={prepare:Zs,send:ta};function ra(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((i,s)=>i.provider!==s.provider?i.provider.localeCompare(s.provider):i.prefix!==s.prefix?i.prefix.localeCompare(s.prefix):i.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(i=>{if(r.name===i.name&&r.prefix===i.prefix&&r.provider===i.provider)return;r=i;const s=i.provider,h=i.prefix,u=i.name,p=n[s]||(n[s]=Object.create(null)),g=p[h]||(p[h]=He(s,h));let m;u in g.icons?m=t.loaded:h===""||g.missing.has(u)?m=t.missing:m=t.pending;const v={provider:s,prefix:h,name:u};m.push(v)}),t}function mi(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(i=>i.id!==t))})}function ia(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,i=e.prefix;t.forEach(s=>{const h=s.icons,u=h.pending.length;h.pending=h.pending.filter(p=>{if(p.prefix!==i)return!0;const g=p.name;if(e.icons[g])h.loaded.push({provider:r,prefix:i,name:g});else if(e.missing.has(g))h.missing.push({provider:r,prefix:i,name:g});else return n=!0,!0;return!1}),h.pending.length!==u&&(n||mi([e],s.id),s.callback(h.loaded.slice(0),h.missing.slice(0),h.pending.slice(0),s.abort))})}))}let oa=0;function sa(e,t,n){const r=oa++,i=mi.bind(null,n,r);if(!t.pending.length)return i;const s={id:r,icons:t,callback:e,abort:i};return n.forEach(h=>{(h.loaderCallbacks||(h.loaderCallbacks=[])).push(s)}),i}function aa(e,t=!0,n=!1){const r=[];return e.forEach(i=>{const s=typeof i=="string"?Ut(i,t,n):i;s&&r.push(s)}),r}var la={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function ca(e,t,n,r){const i=e.resources.length,s=e.random?Math.floor(Math.random()*i):e.index;let h;if(e.random){let A=e.resources.slice(0);for(h=[];A.length>1;){const V=Math.floor(Math.random()*A.length);h.push(A[V]),A=A.slice(0,V).concat(A.slice(V+1))}h=h.concat(A)}else h=e.resources.slice(s).concat(e.resources.slice(0,s));const u=Date.now();let p="pending",g=0,m,v=null,j=[],w=[];typeof r=="function"&&w.push(r);function k(){v&&(clearTimeout(v),v=null)}function x(){p==="pending"&&(p="aborted"),k(),j.forEach(A=>{A.status==="pending"&&(A.status="aborted")}),j=[]}function C(A,V){V&&(w=[]),typeof A=="function"&&w.push(A)}function _(){return{startTime:u,payload:t,status:p,queriesSent:g,queriesPending:j.length,subscribe:C,abort:x}}function T(){p="failed",w.forEach(A=>{A(void 0,m)})}function W(){j.forEach(A=>{A.status==="pending"&&(A.status="aborted")}),j=[]}function X(A,V,Z){const re=V!=="success";switch(j=j.filter($=>$!==A),p){case"pending":break;case"failed":if(re||!e.dataAfterTimeout)return;break;default:return}if(V==="abort"){m=Z,T();return}if(re){m=Z,j.length||(h.length?J():T());return}if(k(),W(),!e.random){const $=e.resources.indexOf(A.resource);$!==-1&&$!==e.index&&(e.index=$)}p="completed",w.forEach($=>{$(Z)})}function J(){if(p!=="pending")return;k();const A=h.shift();if(A===void 0){if(j.length){v=setTimeout(()=>{k(),p==="pending"&&(W(),T())},e.timeout);return}T();return}const V={status:"pending",resource:A,callback:(Z,re)=>{X(V,Z,re)}};j.push(V),g++,v=setTimeout(J,e.rotate),n(A,t,V.callback)}return setTimeout(J),_}function gi(e){const t={...la,...e};let n=[];function r(){n=n.filter(u=>u().status==="pending")}function i(u,p,g){const m=ca(t,u,p,(v,j)=>{r(),g&&g(v,j)});return n.push(m),m}function s(u){return n.find(p=>u(p))||null}return{query:i,find:s,setIndex:u=>{t.index=u},getIndex:()=>t.index,cleanup:r}}function Pr(){}const on=Object.create(null);function ua(e){if(!on[e]){const t=An(e);if(!t)return;const n=gi(t),r={config:t,redundancy:n};on[e]=r}return on[e]}function da(e,t,n){let r,i;if(typeof e=="string"){const s=xn(e);if(!s)return n(void 0,424),Pr;i=s.send;const h=ua(e);h&&(r=h.redundancy)}else{const s=Fn(e);if(s){r=gi(s);const h=e.resources?e.resources[0]:"",u=xn(h);u&&(i=u.send)}}return!r||!i?(n(void 0,424),Pr):r.query(t,i,n)().abort}const _r="iconify2",yt="iconify",bi=yt+"-count",Rr=yt+"-version",yi=36e5,ha=168;function wn(e,t){try{return e.getItem(t)}catch{}}function Nn(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Mr(e,t){try{e.removeItem(t)}catch{}}function Sn(e,t){return Nn(e,bi,t.toString())}function kn(e){return parseInt(wn(e,bi))||0}const Kt={local:!0,session:!0},vi={local:new Set,session:new Set};let Bn=!1;function fa(e){Bn=e}let It=typeof window>"u"?{}:window;function xi(e){const t=e+"Storage";try{if(It&&It[t]&&typeof It[t].length=="number")return It[t]}catch{}Kt[e]=!1}function wi(e,t){const n=xi(e);if(!n)return;const r=wn(n,Rr);if(r!==_r){if(r){const u=kn(n);for(let p=0;p<u;p++)Mr(n,yt+p.toString())}Nn(n,Rr,_r),Sn(n,0);return}const i=Math.floor(Date.now()/yi)-ha,s=u=>{const p=yt+u.toString(),g=wn(n,p);if(typeof g=="string"){try{const m=JSON.parse(g);if(typeof m=="object"&&typeof m.cached=="number"&&m.cached>i&&typeof m.provider=="string"&&typeof m.data=="object"&&typeof m.data.prefix=="string"&&t(m,u))return!0}catch{}Mr(n,p)}};let h=kn(n);for(let u=h-1;u>=0;u--)s(u)||(u===h-1?(h--,Sn(n,h)):vi[e].add(u))}function Si(){if(!Bn){fa(!0);for(const e in Kt)wi(e,t=>{const n=t.data,r=t.provider,i=n.prefix,s=He(r,i);if(!zn(s,n).length)return!1;const h=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,h):h,!0})}}function pa(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in Kt)wi(r,i=>{const s=i.data;return i.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function ma(e,t){Bn||Si();function n(r){let i;if(!Kt[r]||!(i=xi(r)))return;const s=vi[r];let h;if(s.size)s.delete(h=Array.from(s).shift());else if(h=kn(i),!Sn(i,h+1))return;const u={cached:Math.floor(Date.now()/yi),provider:e.provider,data:t};return Nn(i,yt+h.toString(),JSON.stringify(u))}t.lastModified&&!pa(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Lr(){}function ga(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,ia(e)}))}function ba(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,i=e.iconsToLoad;delete e.iconsToLoad;let s;if(!i||!(s=xn(n)))return;s.prepare(n,r,i).forEach(u=>{da(n,u,p=>{if(typeof p!="object")u.icons.forEach(g=>{e.missing.add(g)});else try{const g=zn(e,p);if(!g.length)return;const m=e.pendingIcons;m&&g.forEach(v=>{m.delete(v)}),ma(e,p)}catch(g){console.error(g)}ga(e)})})}))}const ya=(e,t)=>{const n=aa(e,!0,hi()),r=ra(n);if(!r.pending.length){let p=!0;return t&&setTimeout(()=>{p&&t(r.loaded,r.missing,r.pending,Lr)}),()=>{p=!1}}const i=Object.create(null),s=[];let h,u;return r.pending.forEach(p=>{const{provider:g,prefix:m}=p;if(m===u&&g===h)return;h=g,u=m,s.push(He(g,m));const v=i[g]||(i[g]=Object.create(null));v[m]||(v[m]=[])}),r.pending.forEach(p=>{const{provider:g,prefix:m,name:v}=p,j=He(g,m),w=j.pendingIcons||(j.pendingIcons=new Set);w.has(v)||(w.add(v),i[g][m].push(v))}),s.forEach(p=>{const{provider:g,prefix:m}=p;i[g][m].length&&ba(p,i[g][m])}),t?sa(t,r,s):Lr};function va(e,t){const n={...e};for(const r in t){const i=t[r],s=typeof i;r in fi?(i===null||i&&(s==="string"||s==="number"))&&(n[r]=i):s===typeof n[r]&&(n[r]=r==="rotate"?i%4:i)}return n}const xa=/[\s,]+/;function wa(e,t){t.split(xa).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function Sa(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(i){for(;i<0;)i+=4;return i%4}if(n===""){const i=parseInt(e);return isNaN(i)?0:r(i)}else if(n!==e){let i=0;switch(n){case"%":i=25;break;case"deg":i=90}if(i){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/i,s%1===0?r(s):0)}}return t}function ka(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function ja(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Ta(e){return"data:image/svg+xml,"+ja(e)}function Oa(e){return'url("'+Ta(e)+'")'}let mt;function Ca(){try{mt=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{mt=null}}function Ea(e){return mt===void 0&&Ca(),mt?mt.createHTML(e):e}const ki={...pi,inline:!1},Ia={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Pa={display:"inline-block"},jn={backgroundColor:"currentColor"},ji={backgroundColor:"transparent"},Dr={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},zr={WebkitMask:jn,mask:jn,background:ji};for(const e in zr){const t=zr[e];for(const n in Dr)t[e+n]=Dr[n]}const _a={...ki,inline:!0};function Fr(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Ra=(e,t,n,r)=>{const i=n?_a:ki,s=va(i,t),h=t.mode||"svg",u={},p=t.style||{},g={...h==="svg"?Ia:{},ref:r};for(let _ in t){const T=t[_];if(T!==void 0)switch(_){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":s[_]=T===!0||T==="true"||T===1;break;case"flip":typeof T=="string"&&wa(s,T);break;case"color":u.color=T;break;case"rotate":typeof T=="string"?s[_]=Sa(T):typeof T=="number"&&(s[_]=T);break;case"ariaHidden":case"aria-hidden":T!==!0&&T!=="true"&&delete g["aria-hidden"];break;default:i[_]===void 0&&(g[_]=T)}}const m=Us(e,s),v=m.attributes;if(s.inline&&(u.verticalAlign="-0.125em"),h==="svg"){g.style={...u,...p},Object.assign(g,v);let _=0,T=t.id;return typeof T=="string"&&(T=T.replace(/-/g,"_")),g.dangerouslySetInnerHTML={__html:Ea(qs(m.body,T?()=>T+"ID"+_++:"iconifyReact"))},We.createElement("svg",g)}const{body:j,width:w,height:k}=e,x=h==="mask"||(h==="bg"?!1:j.indexOf("currentColor")!==-1),C=ka(j,{...v,width:w+"",height:k+""});return g.style={...u,"--svg":Oa(C),width:Fr(v.width),height:Fr(v.height),...Pa,...x?jn:ji,...p},We.createElement("span",g)};hi(!0);Gs("",na);if(typeof document<"u"&&typeof window<"u"){Si();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!As(r))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const r="IconifyProviders["+n+"] is invalid.";try{const i=t[n];if(typeof i!="object"||!i||i.resources===void 0)continue;Xs(n,i)||console.error(r)}catch{console.error(r)}}}}class Ti extends We.Component{constructor(t){super(t),this.state={icon:null}}_abortLoading(){this._loading&&(this._loading.abort(),this._loading=null)}_setData(t){this.state.icon!==t&&this.setState({icon:t})}_checkIcon(t){const n=this.state,r=this.props.icon;if(typeof r=="object"&&r!==null&&typeof r.body=="string"){this._icon="",this._abortLoading(),(t||n.icon===null)&&this._setData({data:r});return}let i;if(typeof r!="string"||(i=Ut(r,!1,!0))===null){this._abortLoading(),this._setData(null);return}const s=Fs(i);if(!s){(!this._loading||this._loading.name!==r)&&(this._abortLoading(),this._icon="",this._setData(null),s!==null&&(this._loading={name:r,abort:ya([i],this._checkIcon.bind(this,!1))}));return}if(this._icon!==r||n.icon===null){this._abortLoading(),this._icon=r;const h=["iconify"];i.prefix!==""&&h.push("iconify--"+i.prefix),i.provider!==""&&h.push("iconify--"+i.provider),this._setData({data:s,classes:h}),this.props.onLoad&&this.props.onLoad(r)}}componentDidMount(){this._checkIcon(!1)}componentDidUpdate(t){t.icon!==this.props.icon&&this._checkIcon(!0)}componentWillUnmount(){this._abortLoading()}render(){const t=this.props,n=this.state.icon;if(n===null)return t.children?t.children:We.createElement("span",{});let r=t;return n.classes&&(r={...t,className:(typeof t.className=="string"?t.className+" ":"")+n.classes.join(" ")}),Ra({...Dn,...n.data},r,t._inline,t._ref)}}const Le=We.forwardRef(function(t,n){const r={...t,_ref:n,_inline:!1};return We.createElement(Ti,r)});We.forwardRef(function(t,n){const r={...t,_ref:n,_inline:!0};return We.createElement(Ti,r)});const Oi={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 18a3.5 3.5 0 0 0 0-7h-1A5 4.5 0 0 0 7 9a4.6 4.4 0 0 0-2.1 8.4M12 13v9m-3-3l3 3l3-3"/>'};var zt={exports:{}},Ma=zt.exports,Wr;function La(){return Wr||(Wr=1,function(e,t){(function(n,r){e.exports=r(So())})(Ma,n=>(()=>{var r={703:(u,p,g)=>{var m=g(414);function v(){}function j(){}j.resetWarningCache=v,u.exports=function(){function w(C,_,T,W,X,J){if(J!==m){var A=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw A.name="Invariant Violation",A}}function k(){return w}w.isRequired=w;var x={array:w,bool:w,func:w,number:w,object:w,string:w,symbol:w,any:w,arrayOf:k,element:w,elementType:w,instanceOf:k,node:w,objectOf:k,oneOf:k,oneOfType:k,shape:k,exact:k,checkPropTypes:j,resetWarningCache:v};return x.PropTypes=x,x}},697:(u,p,g)=>{u.exports=g(703)()},414:u=>{u.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},590:u=>{var p=typeof Element<"u",g=typeof Map=="function",m=typeof Set=="function",v=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function j(w,k){if(w===k)return!0;if(w&&k&&typeof w=="object"&&typeof k=="object"){if(w.constructor!==k.constructor)return!1;var x,C,_,T;if(Array.isArray(w)){if((x=w.length)!=k.length)return!1;for(C=x;C--!=0;)if(!j(w[C],k[C]))return!1;return!0}if(g&&w instanceof Map&&k instanceof Map){if(w.size!==k.size)return!1;for(T=w.entries();!(C=T.next()).done;)if(!k.has(C.value[0]))return!1;for(T=w.entries();!(C=T.next()).done;)if(!j(C.value[1],k.get(C.value[0])))return!1;return!0}if(m&&w instanceof Set&&k instanceof Set){if(w.size!==k.size)return!1;for(T=w.entries();!(C=T.next()).done;)if(!k.has(C.value[0]))return!1;return!0}if(v&&ArrayBuffer.isView(w)&&ArrayBuffer.isView(k)){if((x=w.length)!=k.length)return!1;for(C=x;C--!=0;)if(w[C]!==k[C])return!1;return!0}if(w.constructor===RegExp)return w.source===k.source&&w.flags===k.flags;if(w.valueOf!==Object.prototype.valueOf)return w.valueOf()===k.valueOf();if(w.toString!==Object.prototype.toString)return w.toString()===k.toString();if((x=(_=Object.keys(w)).length)!==Object.keys(k).length)return!1;for(C=x;C--!=0;)if(!Object.prototype.hasOwnProperty.call(k,_[C]))return!1;if(p&&w instanceof Element)return!1;for(C=x;C--!=0;)if((_[C]!=="_owner"&&_[C]!=="__v"&&_[C]!=="__o"||!w.$$typeof)&&!j(w[_[C]],k[_[C]]))return!1;return!0}return w!=w&&k!=k}u.exports=function(w,k){try{return j(w,k)}catch(x){if((x.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw x}}},359:u=>{u.exports=n}},i={};function s(u){var p=i[u];if(p!==void 0)return p.exports;var g=i[u]={exports:{}};return r[u](g,g.exports,s),g.exports}s.n=u=>{var p=u&&u.__esModule?()=>u.default:()=>u;return s.d(p,{a:p}),p},s.d=(u,p)=>{for(var g in p)s.o(p,g)&&!s.o(u,g)&&Object.defineProperty(u,g,{enumerable:!0,get:p[g]})},s.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),s.o=(u,p)=>Object.prototype.hasOwnProperty.call(u,p),s.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var h={};return(()=>{function u(d){var a,f,b="";if(typeof d=="string"||typeof d=="number")b+=d;else if(typeof d=="object")if(Array.isArray(d))for(a=0;a<d.length;a++)d[a]&&(f=u(d[a]))&&(b&&(b+=" "),b+=f);else for(a in d)d[a]&&(b&&(b+=" "),b+=a);return b}function p(){for(var d,a,f=0,b="";f<arguments.length;)(d=arguments[f++])&&(a=u(d))&&(b&&(b+=" "),b+=a);return b}s.r(h),s.d(h,{default:()=>go});var g=s(359),m=s.n(g);const v=function(d){var a=typeof d;return d!=null&&(a=="object"||a=="function")},j=typeof Ct=="object"&&Ct&&Ct.Object===Object&&Ct;var w=typeof self=="object"&&self&&self.Object===Object&&self;const k=j||w||Function("return this")(),x=function(){return k.Date.now()};var C=/\s/,_=/^\s+/;const T=function(d){return d&&d.slice(0,function(a){for(var f=a.length;f--&&C.test(a.charAt(f)););return f}(d)+1).replace(_,"")},W=k.Symbol;var X=Object.prototype,J=X.hasOwnProperty,A=X.toString,V=W?W.toStringTag:void 0,Z=Object.prototype.toString,re=W?W.toStringTag:void 0;const $=function(d){return d==null?d===void 0?"[object Undefined]":"[object Null]":re&&re in Object(d)?function(a){var f=J.call(a,V),b=a[V];try{a[V]=void 0;var I=!0}catch{}var N=A.call(a);return I&&(f?a[V]=b:delete a[V]),N}(d):function(a){return Z.call(a)}(d)};var Ee=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,Se=/^0o[0-7]+$/i,pe=parseInt;const be=function(d){if(typeof d=="number")return d;if(function(b){return typeof b=="symbol"||function(I){return I!=null&&typeof I=="object"}(b)&&$(b)=="[object Symbol]"}(d))return NaN;if(v(d)){var a=typeof d.valueOf=="function"?d.valueOf():d;d=v(a)?a+"":a}if(typeof d!="string")return d===0?d:+d;d=T(d);var f=ge.test(d);return f||Se.test(d)?pe(d.slice(2),f?2:8):Ee.test(d)?NaN:+d};var D=Math.max,ae=Math.min;const Te=function(d,a,f){var b,I,N,Y,c,l,y=0,O=!1,P=!1,E=!0;if(typeof d!="function")throw new TypeError("Expected a function");function K(B){var G=b,te=I;return b=I=void 0,y=B,Y=d.apply(te,G)}function U(B){return y=B,c=setTimeout(M,a),O?K(B):Y}function q(B){var G=B-l;return l===void 0||G>=a||G<0||P&&B-y>=N}function M(){var B=x();if(q(B))return z(B);c=setTimeout(M,function(G){var te=a-(G-l);return P?ae(te,N-(G-y)):te}(B))}function z(B){return c=void 0,E&&b?K(B):(b=I=void 0,Y)}function F(){var B=x(),G=q(B);if(b=arguments,I=this,l=B,G){if(c===void 0)return U(l);if(P)return clearTimeout(c),c=setTimeout(M,a),K(l)}return c===void 0&&(c=setTimeout(M,a)),Y}return a=be(a)||0,v(f)&&(O=!!f.leading,N=(P="maxWait"in f)?D(be(f.maxWait)||0,a):N,E="trailing"in f?!!f.trailing:E),F.cancel=function(){c!==void 0&&clearTimeout(c),y=0,b=l=I=c=void 0},F.flush=function(){return c===void 0?Y:z(x())},F},ue=function(d,a,f){var b=!0,I=!0;if(typeof d!="function")throw new TypeError("Expected a function");return v(f)&&(b="leading"in f?!!f.leading:b,I="trailing"in f?!!f.trailing:I),Te(d,a,{leading:b,maxWait:a,trailing:I})};var ie=s(590),ee=s.n(ie),me=function(){if(typeof Map<"u")return Map;function d(a,f){var b=-1;return a.some(function(I,N){return I[0]===f&&(b=N,!0)}),b}return function(){function a(){this.__entries__=[]}return Object.defineProperty(a.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),a.prototype.get=function(f){var b=d(this.__entries__,f),I=this.__entries__[b];return I&&I[1]},a.prototype.set=function(f,b){var I=d(this.__entries__,f);~I?this.__entries__[I][1]=b:this.__entries__.push([f,b])},a.prototype.delete=function(f){var b=this.__entries__,I=d(b,f);~I&&b.splice(I,1)},a.prototype.has=function(f){return!!~d(this.__entries__,f)},a.prototype.clear=function(){this.__entries__.splice(0)},a.prototype.forEach=function(f,b){b===void 0&&(b=null);for(var I=0,N=this.__entries__;I<N.length;I++){var Y=N[I];f.call(b,Y[1],Y[0])}},a}()}(),Ie=typeof window<"u"&&typeof document<"u"&&window.document===document,Pe=s.g!==void 0&&s.g.Math===Math?s.g:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")(),wt=typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Pe):function(d){return setTimeout(function(){return d(Date.now())},1e3/60)},Hi=["top","right","bottom","left","width","height","size","weight"],Vi=typeof MutationObserver<"u",qi=function(){function d(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(a,f){var b=!1,I=!1,N=0;function Y(){b&&(b=!1,a()),I&&l()}function c(){wt(Y)}function l(){var y=Date.now();if(b){if(y-N<2)return;I=!0}else b=!0,I=!1,setTimeout(c,20);N=y}return l}(this.refresh.bind(this))}return d.prototype.addObserver=function(a){~this.observers_.indexOf(a)||this.observers_.push(a),this.connected_||this.connect_()},d.prototype.removeObserver=function(a){var f=this.observers_,b=f.indexOf(a);~b&&f.splice(b,1),!f.length&&this.connected_&&this.disconnect_()},d.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},d.prototype.updateObservers_=function(){var a=this.observers_.filter(function(f){return f.gatherActive(),f.hasActive()});return a.forEach(function(f){return f.broadcastActive()}),a.length>0},d.prototype.connect_=function(){Ie&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Vi?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},d.prototype.disconnect_=function(){Ie&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},d.prototype.onTransitionEnd_=function(a){var f=a.propertyName,b=f===void 0?"":f;Hi.some(function(I){return!!~b.indexOf(I)})&&this.refresh()},d.getInstance=function(){return this.instance_||(this.instance_=new d),this.instance_},d.instance_=null,d}(),qn=function(d,a){for(var f=0,b=Object.keys(a);f<b.length;f++){var I=b[f];Object.defineProperty(d,I,{value:a[I],enumerable:!1,writable:!1,configurable:!0})}return d},Ge=function(d){return d&&d.ownerDocument&&d.ownerDocument.defaultView||Pe},Gn=kt(0,0,0,0);function St(d){return parseFloat(d)||0}function Xn(d){for(var a=[],f=1;f<arguments.length;f++)a[f-1]=arguments[f];return a.reduce(function(b,I){return b+St(d["border-"+I+"-width"])},0)}var Gi=typeof SVGGraphicsElement<"u"?function(d){return d instanceof Ge(d).SVGGraphicsElement}:function(d){return d instanceof Ge(d).SVGElement&&typeof d.getBBox=="function"};function Xi(d){return Ie?Gi(d)?function(a){var f=a.getBBox();return kt(0,0,f.width,f.height)}(d):function(a){var f=a.clientWidth,b=a.clientHeight;if(!f&&!b)return Gn;var I=Ge(a).getComputedStyle(a),N=function(E){for(var K={},U=0,q=["top","right","bottom","left"];U<q.length;U++){var M=q[U],z=E["padding-"+M];K[M]=St(z)}return K}(I),Y=N.left+N.right,c=N.top+N.bottom,l=St(I.width),y=St(I.height);if(I.boxSizing==="border-box"&&(Math.round(l+Y)!==f&&(l-=Xn(I,"left","right")+Y),Math.round(y+c)!==b&&(y-=Xn(I,"top","bottom")+c)),!function(E){return E===Ge(E).document.documentElement}(a)){var O=Math.round(l+Y)-f,P=Math.round(y+c)-b;Math.abs(O)!==1&&(l-=O),Math.abs(P)!==1&&(y-=P)}return kt(N.left,N.top,l,y)}(d):Gn}function kt(d,a,f,b){return{x:d,y:a,width:f,height:b}}var Yi=function(){function d(a){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=kt(0,0,0,0),this.target=a}return d.prototype.isActive=function(){var a=Xi(this.target);return this.contentRect_=a,a.width!==this.broadcastWidth||a.height!==this.broadcastHeight},d.prototype.broadcastRect=function(){var a=this.contentRect_;return this.broadcastWidth=a.width,this.broadcastHeight=a.height,a},d}(),Qi=function(d,a){var f,b,I,N,Y,c,l,y=(b=(f=a).x,I=f.y,N=f.width,Y=f.height,c=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,l=Object.create(c.prototype),qn(l,{x:b,y:I,width:N,height:Y,top:I,right:b+N,bottom:Y+I,left:b}),l);qn(this,{target:d,contentRect:y})},Ji=function(){function d(a,f,b){if(this.activeObservations_=[],this.observations_=new me,typeof a!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=a,this.controller_=f,this.callbackCtx_=b}return d.prototype.observe=function(a){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(typeof Element<"u"&&Element instanceof Object){if(!(a instanceof Ge(a).Element))throw new TypeError('parameter 1 is not of type "Element".');var f=this.observations_;f.has(a)||(f.set(a,new Yi(a)),this.controller_.addObserver(this),this.controller_.refresh())}},d.prototype.unobserve=function(a){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(typeof Element<"u"&&Element instanceof Object){if(!(a instanceof Ge(a).Element))throw new TypeError('parameter 1 is not of type "Element".');var f=this.observations_;f.has(a)&&(f.delete(a),f.size||this.controller_.removeObserver(this))}},d.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},d.prototype.gatherActive=function(){var a=this;this.clearActive(),this.observations_.forEach(function(f){f.isActive()&&a.activeObservations_.push(f)})},d.prototype.broadcastActive=function(){if(this.hasActive()){var a=this.callbackCtx_,f=this.activeObservations_.map(function(b){return new Qi(b.target,b.broadcastRect())});this.callback_.call(a,f,a),this.clearActive()}},d.prototype.clearActive=function(){this.activeObservations_.splice(0)},d.prototype.hasActive=function(){return this.activeObservations_.length>0},d}(),Yn=typeof WeakMap<"u"?new WeakMap:new me,Qn=function d(a){if(!(this instanceof d))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var f=qi.getInstance(),b=new Ji(a,f,this);Yn.set(this,b)};["observe","unobserve","disconnect"].forEach(function(d){Qn.prototype[d]=function(){var a;return(a=Yn.get(this))[d].apply(a,arguments)}});const Jn=Pe.ResizeObserver!==void 0?Pe.ResizeObserver:Qn,Xe="Left",Be="Right",Ye="Up",$e="Down",Qe={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},Vt={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},Zn="mousemove",er="mouseup";function tr(d,a){if(a===0)return d;const f=Math.PI/180*a;return[d[0]*Math.cos(f)+d[1]*Math.sin(f),d[1]*Math.cos(f)-d[0]*Math.sin(f)]}function Zi(d){const{trackMouse:a}=d,f=g.useRef(Object.assign({},Vt)),b=g.useRef(Object.assign({},Qe)),I=g.useRef(Object.assign({},b.current));let N;for(N in I.current=Object.assign({},b.current),b.current=Object.assign(Object.assign({},Qe),d),Qe)b.current[N]===void 0&&(b.current[N]=Qe[N]);const[Y,c]=g.useMemo(()=>function(l,y){const O=M=>{const z="touches"in M;z&&M.touches.length>1||l((F,B)=>{B.trackMouse&&!z&&(document.addEventListener(Zn,P),document.addEventListener(er,K));const{clientX:G,clientY:te}=z?M.touches[0]:M,le=tr([G,te],B.rotationAngle);return B.onTouchStartOrOnMouseDown&&B.onTouchStartOrOnMouseDown({event:M}),Object.assign(Object.assign(Object.assign({},F),Vt),{initial:le.slice(),xy:le,start:M.timeStamp||0})})},P=M=>{l((z,F)=>{const B="touches"in M;if(B&&M.touches.length>1)return z;if(M.timeStamp-z.start>F.swipeDuration)return z.swiping?Object.assign(Object.assign({},z),{swiping:!1}):z;const{clientX:G,clientY:te}=B?M.touches[0]:M,[le,we]=tr([G,te],F.rotationAngle),ye=le-z.xy[0],he=we-z.xy[1],se=Math.abs(ye),ne=Math.abs(he),De=(M.timeStamp||0)-z.start,at=Math.sqrt(se*se+ne*ne)/(De||1),lt=[ye/(De||1),he/(De||1)],Me=function(ct,et,ut,ke){return ct>et?ut>0?Be:Xe:ke>0?$e:Ye}(se,ne,ye,he),Ue=typeof F.delta=="number"?F.delta:F.delta[Me.toLowerCase()]||Qe.delta;if(se<Ue&&ne<Ue&&!z.swiping)return z;const _e={absX:se,absY:ne,deltaX:ye,deltaY:he,dir:Me,event:M,first:z.first,initial:z.initial,velocity:at,vxvy:lt};_e.first&&F.onSwipeStart&&F.onSwipeStart(_e),F.onSwiping&&F.onSwiping(_e);let Ze=!1;return(F.onSwiping||F.onSwiped||F[`onSwiped${Me}`])&&(Ze=!0),Ze&&F.preventScrollOnSwipe&&F.trackTouch&&M.cancelable&&M.preventDefault(),Object.assign(Object.assign({},z),{first:!1,eventData:_e,swiping:!0})})},E=M=>{l((z,F)=>{let B;if(z.swiping&&z.eventData){if(M.timeStamp-z.start<F.swipeDuration){B=Object.assign(Object.assign({},z.eventData),{event:M}),F.onSwiped&&F.onSwiped(B);const G=F[`onSwiped${B.dir}`];G&&G(B)}}else F.onTap&&F.onTap({event:M});return F.onTouchEndOrOnMouseUp&&F.onTouchEndOrOnMouseUp({event:M}),Object.assign(Object.assign(Object.assign({},z),Vt),{eventData:B})})},K=M=>{document.removeEventListener(Zn,P),document.removeEventListener(er,K),E(M)},U=(M,z)=>{let F=()=>{};if(M&&M.addEventListener){const B=Object.assign(Object.assign({},Qe.touchEventOptions),z.touchEventOptions),G=[["touchstart",O,B],["touchmove",P,Object.assign(Object.assign({},B),z.preventScrollOnSwipe?{passive:!1}:{})],["touchend",E,B]];G.forEach(([te,le,we])=>M.addEventListener(te,le,we)),F=()=>G.forEach(([te,le])=>M.removeEventListener(te,le))}return F},q={ref:M=>{M!==null&&l((z,F)=>{if(z.el===M)return z;const B={};return z.el&&z.el!==M&&z.cleanUpTouch&&(z.cleanUpTouch(),B.cleanUpTouch=void 0),F.trackTouch&&M&&(B.cleanUpTouch=U(M,F)),Object.assign(Object.assign(Object.assign({},z),{el:M}),B)})}};return y.trackMouse&&(q.onMouseDown=O),[q,U]}(l=>f.current=l(f.current,b.current),{trackMouse:a}),[a]);return f.current=function(l,y,O,P){return y.trackTouch&&l.el?l.cleanUpTouch?y.preventScrollOnSwipe!==O.preventScrollOnSwipe||y.touchEventOptions.passive!==O.touchEventOptions.passive?(l.cleanUpTouch(),Object.assign(Object.assign({},l),{cleanUpTouch:P(l.el,y)})):l:Object.assign(Object.assign({},l),{cleanUpTouch:P(l.el,y)}):(l.cleanUpTouch&&l.cleanUpTouch(),Object.assign(Object.assign({},l),{cleanUpTouch:void 0}))}(f.current,b.current,I.current,c),Y}var S=s(697);function it(d){return it=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},it(d)}function nr(d,a){var f=Object.keys(d);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(d);a&&(b=b.filter(function(I){return Object.getOwnPropertyDescriptor(d,I).enumerable})),f.push.apply(f,b)}return f}function rr(d){for(var a=1;a<arguments.length;a++){var f=arguments[a]!=null?arguments[a]:{};a%2?nr(Object(f),!0).forEach(function(b){eo(d,b,f[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(f)):nr(Object(f)).forEach(function(b){Object.defineProperty(d,b,Object.getOwnPropertyDescriptor(f,b))})}return d}function eo(d,a,f){return(a=function(b){var I=function(N,Y){if(it(N)!=="object"||N===null)return N;var c=N[Symbol.toPrimitive];if(c!==void 0){var l=c.call(N,Y);if(it(l)!=="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(N)}(b,"string");return it(I)==="symbol"?I:String(I)}(a))in d?Object.defineProperty(d,a,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[a]=f,d}var to={description:"",fullscreen:"",isFullscreen:!1,originalAlt:"",originalHeight:"",originalWidth:"",originalTitle:"",sizes:"",srcSet:"",loading:"eager"},qt=m().memo(function(d){var a=rr(rr({},to),d),f=a.description,b=a.fullscreen,I=a.handleImageLoaded,N=a.isFullscreen,Y=a.onImageError,c=a.original,l=a.originalAlt,y=a.originalHeight,O=a.originalWidth,P=a.originalTitle,E=a.sizes,K=a.srcSet,U=a.loading,q=N&&b||c;return m().createElement(m().Fragment,null,m().createElement("img",{className:"image-gallery-image",src:q,alt:l,srcSet:K,height:y,width:O,sizes:E,title:P,onLoad:function(M){return I(M,c)},onError:Y,loading:U}),f&&m().createElement("span",{className:"image-gallery-description"},f))});qt.displayName="Item",qt.propTypes={description:S.string,fullscreen:S.string,handleImageLoaded:S.func.isRequired,isFullscreen:S.bool,onImageError:S.func.isRequired,original:S.string.isRequired,originalAlt:S.string,originalHeight:S.string,originalWidth:S.string,originalTitle:S.string,sizes:S.string,srcSet:S.string,loading:S.string};const no=qt;function ot(d){return ot=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},ot(d)}function ir(d,a){var f=Object.keys(d);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(d);a&&(b=b.filter(function(I){return Object.getOwnPropertyDescriptor(d,I).enumerable})),f.push.apply(f,b)}return f}function or(d){for(var a=1;a<arguments.length;a++){var f=arguments[a]!=null?arguments[a]:{};a%2?ir(Object(f),!0).forEach(function(b){ro(d,b,f[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(f)):ir(Object(f)).forEach(function(b){Object.defineProperty(d,b,Object.getOwnPropertyDescriptor(f,b))})}return d}function ro(d,a,f){return(a=function(b){var I=function(N,Y){if(ot(N)!=="object"||N===null)return N;var c=N[Symbol.toPrimitive];if(c!==void 0){var l=c.call(N,Y);if(ot(l)!=="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(N)}(b,"string");return ot(I)==="symbol"?I:String(I)}(a))in d?Object.defineProperty(d,a,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[a]=f,d}var io={left:m().createElement("polyline",{points:"15 18 9 12 15 6"}),right:m().createElement("polyline",{points:"9 18 15 12 9 6"}),maximize:m().createElement("path",{d:"M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"}),minimize:m().createElement("path",{d:"M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3"}),play:m().createElement("polygon",{points:"5 3 19 12 5 21 5 3"}),pause:m().createElement(m().Fragment,null,m().createElement("rect",{x:"6",y:"4",width:"4",height:"16"}),m().createElement("rect",{x:"14",y:"4",width:"4",height:"16"}))},oo={strokeWidth:1,viewBox:"0 0 24 24"},sr=function(d){var a=or(or({},oo),d),f=a.strokeWidth,b=a.viewBox,I=a.icon;return m().createElement("svg",{className:"image-gallery-svg",xmlns:"http://www.w3.org/2000/svg",viewBox:b,fill:"none",stroke:"currentColor",strokeWidth:f,strokeLinecap:"round",strokeLinejoin:"round"},io[I])};sr.propTypes={strokeWidth:S.number,viewBox:S.string,icon:(0,S.oneOf)(["left","right","maximize","minimize","play","pause"]).isRequired};const jt=sr;var Gt=m().memo(function(d){var a=d.isFullscreen,f=d.onClick;return m().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-fullscreen-button",onClick:f,"aria-label":"Open Fullscreen"},m().createElement(jt,{strokeWidth:2,icon:a?"minimize":"maximize"}))});Gt.displayName="Fullscreen",Gt.propTypes={isFullscreen:S.bool.isRequired,onClick:S.func.isRequired};const so=Gt;var Xt=m().memo(function(d){var a=d.disabled,f=d.onClick;return m().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-left-nav",disabled:a,onClick:f,"aria-label":"Previous Slide"},m().createElement(jt,{icon:"left",viewBox:"6 0 12 24"}))});Xt.displayName="LeftNav",Xt.propTypes={disabled:S.bool.isRequired,onClick:S.func.isRequired};const ao=Xt;var Yt=m().memo(function(d){var a=d.disabled,f=d.onClick;return m().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-right-nav",disabled:a,onClick:f,"aria-label":"Next Slide"},m().createElement(jt,{icon:"right",viewBox:"6 0 12 24"}))});Yt.displayName="RightNav",Yt.propTypes={disabled:S.bool.isRequired,onClick:S.func.isRequired};const lo=Yt;var Qt=m().memo(function(d){var a=d.isPlaying,f=d.onClick;return m().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-play-button",onClick:f,"aria-label":"Play or Pause Slideshow"},m().createElement(jt,{strokeWidth:2,icon:a?"pause":"play"}))});Qt.displayName="PlayPause",Qt.propTypes={isPlaying:S.bool.isRequired,onClick:S.func.isRequired};const co=Qt;function st(d){return st=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},st(d)}function Jt(){return Jt=Object.assign?Object.assign.bind():function(d){for(var a=1;a<arguments.length;a++){var f=arguments[a];for(var b in f)Object.prototype.hasOwnProperty.call(f,b)&&(d[b]=f[b])}return d},Jt.apply(this,arguments)}function ar(d,a){var f=Object.keys(d);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(d);a&&(b=b.filter(function(I){return Object.getOwnPropertyDescriptor(d,I).enumerable})),f.push.apply(f,b)}return f}function lr(d){for(var a=1;a<arguments.length;a++){var f=arguments[a]!=null?arguments[a]:{};a%2?ar(Object(f),!0).forEach(function(b){uo(d,b,f[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(f)):ar(Object(f)).forEach(function(b){Object.defineProperty(d,b,Object.getOwnPropertyDescriptor(f,b))})}return d}function uo(d,a,f){return(a=function(b){var I=function(N,Y){if(st(N)!=="object"||N===null)return N;var c=N[Symbol.toPrimitive];if(c!==void 0){var l=c.call(N,Y);if(st(l)!=="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(N)}(b,"string");return st(I)==="symbol"?I:String(I)}(a))in d?Object.defineProperty(d,a,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[a]=f,d}var ho={className:"",delta:0,onSwiping:function(){},onSwiped:function(){}},cr=function(d){var a=lr(lr({},ho),d),f=a.children,b=a.className,I=Zi({delta:a.delta,onSwiping:a.onSwiping,onSwiped:a.onSwiped});return m().createElement("div",Jt({},I,{className:b}),f)};cr.propTypes={children:S.node.isRequired,className:S.string,delta:S.number,onSwiped:S.func,onSwiping:S.func};const ur=cr;function Je(d){return Je=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},Je(d)}function dr(d,a){var f=Object.keys(d);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(d);a&&(b=b.filter(function(I){return Object.getOwnPropertyDescriptor(d,I).enumerable})),f.push.apply(f,b)}return f}function hr(d){for(var a=1;a<arguments.length;a++){var f=arguments[a]!=null?arguments[a]:{};a%2?dr(Object(f),!0).forEach(function(b){fr(d,b,f[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(f)):dr(Object(f)).forEach(function(b){Object.defineProperty(d,b,Object.getOwnPropertyDescriptor(f,b))})}return d}function fo(d,a){for(var f=0;f<a.length;f++){var b=a[f];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(d,pr(b.key),b)}}function Zt(d,a){return Zt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,b){return f.__proto__=b,f},Zt(d,a)}function po(d,a){if(a&&(Je(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ce(d)}function ce(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function Tt(d){return Tt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},Tt(d)}function fr(d,a,f){return(a=pr(a))in d?Object.defineProperty(d,a,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[a]=f,d}function pr(d){var a=function(f,b){if(Je(f)!=="object"||f===null)return f;var I=f[Symbol.toPrimitive];if(I!==void 0){var N=I.call(f,b);if(Je(N)!=="object")return N;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(f)}(d,"string");return Je(a)==="symbol"?a:String(a)}var mr=["fullscreenchange","MSFullscreenChange","mozfullscreenchange","webkitfullscreenchange"],mo=(0,S.arrayOf)((0,S.shape)({srcSet:S.string,media:S.string}));function gr(d){var a=parseInt(d.keyCode||d.which||0,10);return a===66||a===62}var en=function(d){(function(c,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(l&&l.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),Object.defineProperty(c,"prototype",{writable:!1}),l&&Zt(c,l)})(Y,d);var a,f,b,I,N=(b=Y,I=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var c,l=Tt(b);if(I){var y=Tt(this).constructor;c=Reflect.construct(l,arguments,y)}else c=l.apply(this,arguments);return po(this,c)});function Y(c){var l;return function(y,O){if(!(y instanceof O))throw new TypeError("Cannot call a class as a function")}(this,Y),fr(ce(l=N.call(this,c)),"onBulletClick",function(y,O){var P=l.props,E=P.onBulletClick,K=P.items,U=l.state.currentIndex;y.target.blur(),U!==O&&(K.length===2?l.slideToIndexWithStyleReset(O,y):l.slideToIndex(O,y)),E&&E(y,O)}),l.state={currentIndex:c.startIndex,thumbsTranslate:0,thumbsSwipedTranslate:0,currentSlideOffset:0,galleryWidth:0,thumbnailsWrapperWidth:0,thumbnailsWrapperHeight:0,thumbsStyle:{transition:"all ".concat(c.slideDuration,"ms ease-out")},isFullscreen:!1,isSwipingThumbnail:!1,isPlaying:!1},l.loadedImages={},l.imageGallery=m().createRef(),l.thumbnailsWrapper=m().createRef(),l.thumbnails=m().createRef(),l.imageGallerySlideWrapper=m().createRef(),l.handleImageLoaded=l.handleImageLoaded.bind(ce(l)),l.handleKeyDown=l.handleKeyDown.bind(ce(l)),l.handleMouseDown=l.handleMouseDown.bind(ce(l)),l.handleResize=l.handleResize.bind(ce(l)),l.handleTouchMove=l.handleTouchMove.bind(ce(l)),l.handleOnSwiped=l.handleOnSwiped.bind(ce(l)),l.handleScreenChange=l.handleScreenChange.bind(ce(l)),l.handleSwiping=l.handleSwiping.bind(ce(l)),l.handleThumbnailSwiping=l.handleThumbnailSwiping.bind(ce(l)),l.handleOnThumbnailSwiped=l.handleOnThumbnailSwiped.bind(ce(l)),l.onThumbnailMouseLeave=l.onThumbnailMouseLeave.bind(ce(l)),l.handleImageError=l.handleImageError.bind(ce(l)),l.pauseOrPlay=l.pauseOrPlay.bind(ce(l)),l.renderThumbInner=l.renderThumbInner.bind(ce(l)),l.renderItem=l.renderItem.bind(ce(l)),l.slideLeft=l.slideLeft.bind(ce(l)),l.slideRight=l.slideRight.bind(ce(l)),l.toggleFullScreen=l.toggleFullScreen.bind(ce(l)),l.togglePlay=l.togglePlay.bind(ce(l)),l.unthrottledSlideToIndex=l.slideToIndex,l.slideToIndex=ue(l.unthrottledSlideToIndex,c.slideDuration,{trailing:!1}),c.lazyLoad&&(l.lazyLoaded=[]),l}return a=Y,f=[{key:"componentDidMount",value:function(){var c=this.props,l=c.autoPlay,y=c.useWindowKeyDown;l&&this.play(),y?window.addEventListener("keydown",this.handleKeyDown):this.imageGallery.current.addEventListener("keydown",this.handleKeyDown),window.addEventListener("mousedown",this.handleMouseDown),window.addEventListener("touchmove",this.handleTouchMove,{passive:!1}),this.initSlideWrapperResizeObserver(this.imageGallerySlideWrapper),this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper),this.addScreenChangeEvent()}},{key:"componentDidUpdate",value:function(c,l){var y=this.props,O=y.items,P=y.lazyLoad,E=y.slideDuration,K=y.slideInterval,U=y.startIndex,q=y.thumbnailPosition,M=y.showThumbnails,z=y.useWindowKeyDown,F=this.state,B=F.currentIndex,G=F.isPlaying,te=c.items.length!==O.length,le=!ee()(c.items,O),we=c.startIndex!==U,ye=c.thumbnailPosition!==q,he=c.showThumbnails!==M;K===c.slideInterval&&E===c.slideDuration||G&&(this.pause(),this.play()),ye&&(this.removeResizeObserver(),this.initSlideWrapperResizeObserver(this.imageGallerySlideWrapper),this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper)),he&&M&&this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper),he&&!M&&this.removeThumbnailsResizeObserver(),(te||he)&&this.handleResize(),l.currentIndex!==B&&this.slideThumbnailBar(),c.slideDuration!==E&&(this.slideToIndex=ue(this.unthrottledSlideToIndex,E,{trailing:!1})),!P||c.lazyLoad&&!le||(this.lazyLoaded=[]),z!==c.useWindowKeyDown&&(z?(this.imageGallery.current.removeEventListener("keydown",this.handleKeyDown),window.addEventListener("keydown",this.handleKeyDown)):(window.removeEventListener("keydown",this.handleKeyDown),this.imageGallery.current.addEventListener("keydown",this.handleKeyDown))),(we||le)&&this.setState({currentIndex:U,slideStyle:{transition:"none"}})}},{key:"componentWillUnmount",value:function(){var c=this.props.useWindowKeyDown;window.removeEventListener("mousedown",this.handleMouseDown),window.removeEventListener("touchmove",this.handleTouchMove),this.removeScreenChangeEvent(),this.removeResizeObserver(),this.playPauseIntervalId&&(window.clearInterval(this.playPauseIntervalId),this.playPauseIntervalId=null),this.transitionTimer&&window.clearTimeout(this.transitionTimer),c?window.removeEventListener("keydown",this.handleKeyDown):this.imageGallery.current.removeEventListener("keydown",this.handleKeyDown)}},{key:"onSliding",value:function(){var c=this,l=this.state,y=l.currentIndex,O=l.isTransitioning,P=this.props,E=P.onSlide,K=P.slideDuration;this.transitionTimer=window.setTimeout(function(){O&&(c.setState({isTransitioning:!O,isSwipingThumbnail:!1}),E&&E(y))},K+50)}},{key:"onThumbnailClick",value:function(c,l){var y=this.props,O=y.onThumbnailClick,P=y.items,E=this.state.currentIndex;c.target.parentNode.parentNode.blur(),E!==l&&(P.length===2?this.slideToIndexWithStyleReset(l,c):this.slideToIndex(l,c)),O&&O(c,l)}},{key:"onThumbnailMouseOver",value:function(c,l){var y=this;this.thumbnailMouseOverTimer&&(window.clearTimeout(this.thumbnailMouseOverTimer),this.thumbnailMouseOverTimer=null),this.thumbnailMouseOverTimer=window.setTimeout(function(){y.slideToIndex(l),y.pause()},300)}},{key:"onThumbnailMouseLeave",value:function(){if(this.thumbnailMouseOverTimer){var c=this.props.autoPlay;window.clearTimeout(this.thumbnailMouseOverTimer),this.thumbnailMouseOverTimer=null,c&&this.play()}}},{key:"setThumbsTranslate",value:function(c){this.setState({thumbsTranslate:c})}},{key:"setModalFullscreen",value:function(c){var l=this.props.onScreenChange;this.setState({modalFullscreen:c}),l&&l(c)}},{key:"getThumbsTranslate",value:function(c){var l,y=this.props,O=y.disableThumbnailScroll,P=y.items,E=this.state,K=E.thumbnailsWrapperWidth,U=E.thumbnailsWrapperHeight,q=this.thumbnails&&this.thumbnails.current;if(O)return 0;if(q){if(this.isThumbnailVertical()){if(q.scrollHeight<=U)return 0;l=q.scrollHeight-U}else{if(q.scrollWidth<=K||K<=0)return 0;l=q.scrollWidth-K}return c*(l/(P.length-1))}return 0}},{key:"getThumbnailPositionClassName",value:function(c){switch(c){case"left":c=" ".concat("image-gallery-thumbnails-left");break;case"right":c=" ".concat("image-gallery-thumbnails-right");break;case"bottom":c=" ".concat("image-gallery-thumbnails-bottom");break;case"top":c=" ".concat("image-gallery-thumbnails-top")}return c}},{key:"getAlignmentClassName",value:function(c){var l=this.state.currentIndex,y=this.props,O=y.infinite,P=y.items,E="",K="image-gallery-left",U="image-gallery-right";switch(c){case l-1:E=" ".concat(K);break;case l:E=" ".concat("image-gallery-center");break;case l+1:E=" ".concat(U)}return P.length>=3&&O&&(c===0&&l===P.length-1?E=" ".concat(U):c===P.length-1&&l===0&&(E=" ".concat(K))),E}},{key:"getTranslateXForTwoSlide",value:function(c){var l=this.state,y=l.currentIndex,O=l.currentSlideOffset,P=l.previousIndex,E=y!==P,K=c===0&&P===0,U=c===1&&P===1,q=c===0&&y===1,M=c===1&&y===0,z=O===0,F=-100*y+100*c+O;return O>0?this.direction="left":O<0&&(this.direction="right"),M&&O>0&&(F=-100+O),q&&O<0&&(F=100+O),E?K&&z&&this.direction==="left"?F=100:U&&z&&this.direction==="right"&&(F=-100):(M&&z&&this.direction==="left"&&(F=-100),q&&z&&this.direction==="right"&&(F=100)),F}},{key:"getThumbnailBarHeight",value:function(){return this.isThumbnailVertical()?{height:this.state.gallerySlideWrapperHeight}:{}}},{key:"getSlideStyle",value:function(c){var l=this.state,y=l.currentIndex,O=l.currentSlideOffset,P=l.slideStyle,E=this.props,K=E.infinite,U=E.items,q=E.useTranslate3D,M=E.isRTL,z=-100*y,F=U.length-1,B=(z+100*c)*(M?-1:1)+O;K&&U.length>2&&(y===0&&c===F?B=-100*(M?-1:1)+O:y===F&&c===0&&(B=100*(M?-1:1)+O)),K&&U.length===2&&(B=this.getTranslateXForTwoSlide(c));var G="translate(".concat(B,"%, 0)");return q&&(G="translate3d(".concat(B,"%, 0, 0)")),hr({display:this.isSlideVisible(c)?"inherit":"none",WebkitTransform:G,MozTransform:G,msTransform:G,OTransform:G,transform:G},P)}},{key:"getCurrentIndex",value:function(){return this.state.currentIndex}},{key:"getThumbnailStyle",value:function(){var c,l=this.props,y=l.useTranslate3D,O=l.isRTL,P=this.state,E=P.thumbsTranslate,K=P.thumbsStyle,U=O?-1*E:E;return this.isThumbnailVertical()?(c="translate(0, ".concat(E,"px)"),y&&(c="translate3d(0, ".concat(E,"px, 0)"))):(c="translate(".concat(U,"px, 0)"),y&&(c="translate3d(".concat(U,"px, 0, 0)"))),hr({WebkitTransform:c,MozTransform:c,msTransform:c,OTransform:c,transform:c},K)}},{key:"getSlideItems",value:function(){var c=this,l=this.state.currentIndex,y=this.props,O=y.items,P=y.slideOnThumbnailOver,E=y.onClick,K=y.lazyLoad,U=y.onTouchMove,q=y.onTouchEnd,M=y.onTouchStart,z=y.onMouseOver,F=y.onMouseLeave,B=y.renderItem,G=y.renderThumbInner,te=y.showThumbnails,le=y.showBullets,we=[],ye=[],he=[];return O.forEach(function(se,ne){var De=c.getAlignmentClassName(ne),at=se.originalClass?" ".concat(se.originalClass):"",lt=se.thumbnailClass?" ".concat(se.thumbnailClass):"",Me=se.renderItem||B||c.renderItem,Ue=se.renderThumbInner||G||c.renderThumbInner,_e=!K||De||c.lazyLoaded[ne];_e&&K&&!c.lazyLoaded[ne]&&(c.lazyLoaded[ne]=!0);var Ze=c.getSlideStyle(ne),ct=m().createElement("div",{"aria-label":"Go to Slide ".concat(ne+1),key:"slide-".concat(ne),tabIndex:"-1",className:"image-gallery-slide ".concat(De," ").concat(at),style:Ze,onClick:E,onKeyUp:c.handleSlideKeyUp,onTouchMove:U,onTouchEnd:q,onTouchStart:M,onMouseOver:z,onFocus:z,onMouseLeave:F,role:"button"},_e?Me(se):m().createElement("div",{style:{height:"100%"}}));if(we.push(ct),te&&se.thumbnail){var et=p("image-gallery-thumbnail",lt,{active:l===ne});ye.push(m().createElement("button",{key:"thumbnail-".concat(ne),type:"button",tabIndex:"0","aria-pressed":l===ne?"true":"false","aria-label":"Go to Slide ".concat(ne+1),className:et,onMouseLeave:P?c.onThumbnailMouseLeave:null,onMouseOver:function(ke){return c.handleThumbnailMouseOver(ke,ne)},onFocus:function(ke){return c.handleThumbnailMouseOver(ke,ne)},onKeyUp:function(ke){return c.handleThumbnailKeyUp(ke,ne)},onClick:function(ke){return c.onThumbnailClick(ke,ne)}},Ue(se)))}if(le){var ut=p("image-gallery-bullet",se.bulletClass,{active:l===ne});he.push(m().createElement("button",{type:"button",key:"bullet-".concat(ne),className:ut,onClick:function(ke){return c.onBulletClick(ke,ne)},"aria-pressed":l===ne?"true":"false","aria-label":"Go to Slide ".concat(ne+1)}))}}),{slides:we,thumbnails:ye,bullets:he}}},{key:"ignoreIsTransitioning",value:function(){var c=this.props.items,l=this.state,y=l.previousIndex,O=l.currentIndex,P=c.length-1;return Math.abs(y-O)>1&&!(y===0&&O===P)&&!(y===P&&O===0)}},{key:"isFirstOrLastSlide",value:function(c){return c===this.props.items.length-1||c===0}},{key:"slideIsTransitioning",value:function(c){var l=this.state,y=l.isTransitioning,O=l.previousIndex,P=l.currentIndex;return y&&!(c===O||c===P)}},{key:"isSlideVisible",value:function(c){return!this.slideIsTransitioning(c)||this.ignoreIsTransitioning()&&!this.isFirstOrLastSlide(c)}},{key:"slideThumbnailBar",value:function(){var c=this.state,l=c.currentIndex,y=c.isSwipingThumbnail,O=-this.getThumbsTranslate(l);y||(l===0?this.setState({thumbsTranslate:0,thumbsSwipedTranslate:0}):this.setState({thumbsTranslate:O,thumbsSwipedTranslate:O}))}},{key:"canSlide",value:function(){return this.props.items.length>=2}},{key:"canSlideLeft",value:function(){return this.props.infinite||this.canSlidePrevious()}},{key:"canSlideRight",value:function(){return this.props.infinite||this.canSlideNext()}},{key:"canSlidePrevious",value:function(){return this.state.currentIndex>0}},{key:"canSlideNext",value:function(){return this.state.currentIndex<this.props.items.length-1}},{key:"handleSwiping",value:function(c){var l=c.event,y=c.absX,O=c.dir,P=this.props,E=P.disableSwipe,K=P.stopPropagation,U=this.state,q=U.galleryWidth,M=U.isTransitioning,z=U.swipingUpDown,F=U.swipingLeftRight;if(O!==Ye&&O!==$e&&!z||F){if(O!==Xe&&O!==Be||F||this.setState({swipingLeftRight:!0}),!E){var B=this.props.swipingTransitionDuration;if(K&&l.preventDefault(),M)this.setState({currentSlideOffset:0});else{var G=O===Be?1:-1,te=y/q*100;Math.abs(te)>=100&&(te=100);var le={transition:"transform ".concat(B,"ms ease-out")};this.setState({currentSlideOffset:G*te,slideStyle:le})}}}else z||this.setState({swipingUpDown:!0})}},{key:"handleThumbnailSwiping",value:function(c){var l=c.event,y=c.absX,O=c.absY,P=c.dir,E=this.props,K=E.stopPropagation,U=E.swipingThumbnailTransitionDuration,q=this.state,M=q.thumbsSwipedTranslate,z=q.thumbnailsWrapperHeight,F=q.thumbnailsWrapperWidth,B=q.swipingUpDown,G=q.swipingLeftRight;if(this.isThumbnailVertical()){if((P===Xe||P===Be||G)&&!B)return void(G||this.setState({swipingLeftRight:!0}));P!==Ye&&P!==$e||B||this.setState({swipingUpDown:!0})}else{if((P===Ye||P===$e||B)&&!G)return void(B||this.setState({swipingUpDown:!0}));P!==Xe&&P!==Be||G||this.setState({swipingLeftRight:!0})}var te,le,we,ye,he,se=this.thumbnails&&this.thumbnails.current;if(this.isThumbnailVertical()?(te=M+(P===$e?O:-O),le=se.scrollHeight-z+20,we=Math.abs(te)>le,ye=te>20,he=se.scrollHeight<=z):(te=M+(P===Be?y:-y),le=se.scrollWidth-F+20,we=Math.abs(te)>le,ye=te>20,he=se.scrollWidth<=F),!he&&(P!==Xe&&P!==Ye||!we)&&(P!==Be&&P!==$e||!ye)){K&&l.stopPropagation();var ne={transition:"transform ".concat(U,"ms ease-out")};this.setState({thumbsTranslate:te,thumbsStyle:ne})}}},{key:"handleOnThumbnailSwiped",value:function(){var c=this.state.thumbsTranslate,l=this.props.slideDuration;this.resetSwipingDirection(),this.setState({isSwipingThumbnail:!0,thumbsSwipedTranslate:c,thumbsStyle:{transition:"all ".concat(l,"ms ease-out")}})}},{key:"sufficientSwipe",value:function(){var c=this.state.currentSlideOffset,l=this.props.swipeThreshold;return Math.abs(c)>l}},{key:"resetSwipingDirection",value:function(){var c=this.state,l=c.swipingUpDown,y=c.swipingLeftRight;l&&this.setState({swipingUpDown:!1}),y&&this.setState({swipingLeftRight:!1})}},{key:"handleOnSwiped",value:function(c){var l=c.event,y=c.dir,O=c.velocity,P=this.props,E=P.disableSwipe,K=P.stopPropagation,U=P.flickThreshold;if(!E){var q=this.props.isRTL;K&&l.stopPropagation(),this.resetSwipingDirection();var M=(y===Xe?1:-1)*(q?-1:1),z=O>U&&!(y===Ye||y===$e);this.handleOnSwipedTo(M,z)}}},{key:"handleOnSwipedTo",value:function(c,l){var y=this.state,O=y.currentIndex,P=y.isTransitioning,E=O;!this.sufficientSwipe()&&!l||P||(E+=c),(c===-1&&!this.canSlideLeft()||c===1&&!this.canSlideRight())&&(E=O),this.unthrottledSlideToIndex(E)}},{key:"handleTouchMove",value:function(c){this.state.swipingLeftRight&&c.preventDefault()}},{key:"handleMouseDown",value:function(){this.imageGallery.current.classList.add("image-gallery-using-mouse")}},{key:"handleKeyDown",value:function(c){var l=this.props,y=l.disableKeyDown,O=l.useBrowserFullscreen,P=this.state.isFullscreen;if(this.imageGallery.current.classList.remove("image-gallery-using-mouse"),!y)switch(parseInt(c.keyCode||c.which||0,10)){case 37:this.canSlideLeft()&&!this.playPauseIntervalId&&this.slideLeft(c);break;case 39:this.canSlideRight()&&!this.playPauseIntervalId&&this.slideRight(c);break;case 27:P&&!O&&this.exitFullScreen()}}},{key:"handleImageError",value:function(c){var l=this.props.onErrorImageURL;l&&c.target.src.indexOf(l)===-1&&(c.target.src=l)}},{key:"removeThumbnailsResizeObserver",value:function(){this.resizeThumbnailWrapperObserver&&this.thumbnailsWrapper&&this.thumbnailsWrapper.current&&(this.resizeThumbnailWrapperObserver.unobserve(this.thumbnailsWrapper.current),this.resizeThumbnailWrapperObserver=null)}},{key:"removeResizeObserver",value:function(){this.resizeSlideWrapperObserver&&this.imageGallerySlideWrapper&&this.imageGallerySlideWrapper.current&&(this.resizeSlideWrapperObserver.unobserve(this.imageGallerySlideWrapper.current),this.resizeSlideWrapperObserver=null),this.removeThumbnailsResizeObserver()}},{key:"handleResize",value:function(){var c=this.state.currentIndex;this.imageGallery&&(this.imageGallery&&this.imageGallery.current&&this.setState({galleryWidth:this.imageGallery.current.offsetWidth}),this.imageGallerySlideWrapper&&this.imageGallerySlideWrapper.current&&this.setState({gallerySlideWrapperHeight:this.imageGallerySlideWrapper.current.offsetHeight}),this.setThumbsTranslate(-this.getThumbsTranslate(c)))}},{key:"initSlideWrapperResizeObserver",value:function(c){var l=this;c&&!c.current||(this.resizeSlideWrapperObserver=new Jn(Te(function(y){y&&y.forEach(function(O){l.setState({thumbnailsWrapperWidth:O.contentRect.width},l.handleResize)})},50)),this.resizeSlideWrapperObserver.observe(c.current))}},{key:"initThumbnailWrapperResizeObserver",value:function(c){var l=this;c&&!c.current||(this.resizeThumbnailWrapperObserver=new Jn(Te(function(y){y&&y.forEach(function(O){l.setState({thumbnailsWrapperHeight:O.contentRect.height},l.handleResize)})},50)),this.resizeThumbnailWrapperObserver.observe(c.current))}},{key:"toggleFullScreen",value:function(){this.state.isFullscreen?this.exitFullScreen():this.fullScreen()}},{key:"togglePlay",value:function(){this.playPauseIntervalId?this.pause():this.play()}},{key:"handleScreenChange",value:function(){var c=this.props,l=c.onScreenChange,y=c.useBrowserFullscreen,O=document.fullscreenElement||document.msFullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement,P=this.imageGallery.current===O;l&&l(P),y&&this.setState({isFullscreen:P})}},{key:"slideToIndex",value:function(c,l){var y=this.state,O=y.currentIndex,P=y.isTransitioning,E=this.props,K=E.items,U=E.slideDuration,q=E.onBeforeSlide;if(!P){l&&this.playPauseIntervalId&&(this.pause(!1),this.play(!1));var M=K.length-1,z=c;c<0?z=M:c>M&&(z=0),q&&z!==O&&q(z),this.setState({previousIndex:O,currentIndex:z,isTransitioning:z!==O,currentSlideOffset:0,slideStyle:{transition:"all ".concat(U,"ms ease-out")}},this.onSliding)}}},{key:"slideLeft",value:function(c){var l=this.props.isRTL;this.slideTo(c,l?"right":"left")}},{key:"slideRight",value:function(c){var l=this.props.isRTL;this.slideTo(c,l?"left":"right")}},{key:"slideTo",value:function(c,l){var y=this.state,O=y.currentIndex,P=y.isTransitioning,E=this.props.items,K=O+(l==="left"?-1:1);P||(E.length===2?this.slideToIndexWithStyleReset(K,c):this.slideToIndex(K,c))}},{key:"slideToIndexWithStyleReset",value:function(c,l){var y=this,O=this.state,P=O.currentIndex,E=O.currentSlideOffset;this.setState({currentSlideOffset:E+(P>c?.001:-.001),slideStyle:{transition:"none"}},function(){window.setTimeout(function(){return y.slideToIndex(c,l)},25)})}},{key:"handleThumbnailMouseOver",value:function(c,l){this.props.slideOnThumbnailOver&&this.onThumbnailMouseOver(c,l)}},{key:"handleThumbnailKeyUp",value:function(c,l){gr(c)&&this.onThumbnailClick(c,l)}},{key:"handleSlideKeyUp",value:function(c){gr(c)&&(0,this.props.onClick)(c)}},{key:"isThumbnailVertical",value:function(){var c=this.props.thumbnailPosition;return c==="left"||c==="right"}},{key:"addScreenChangeEvent",value:function(){var c=this;mr.forEach(function(l){document.addEventListener(l,c.handleScreenChange)})}},{key:"removeScreenChangeEvent",value:function(){var c=this;mr.forEach(function(l){document.removeEventListener(l,c.handleScreenChange)})}},{key:"fullScreen",value:function(){var c=this.props.useBrowserFullscreen,l=this.imageGallery.current;c?l.requestFullscreen?l.requestFullscreen():l.msRequestFullscreen?l.msRequestFullscreen():l.mozRequestFullScreen?l.mozRequestFullScreen():l.webkitRequestFullscreen?l.webkitRequestFullscreen():this.setModalFullscreen(!0):this.setModalFullscreen(!0),this.setState({isFullscreen:!0})}},{key:"exitFullScreen",value:function(){var c=this.state.isFullscreen,l=this.props.useBrowserFullscreen;c&&(l?document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen?document.msExitFullscreen():this.setModalFullscreen(!1):this.setModalFullscreen(!1),this.setState({isFullscreen:!1}))}},{key:"pauseOrPlay",value:function(){var c=this.props.infinite,l=this.state.currentIndex;c||this.canSlideRight()?this.slideToIndex(l+1):this.pause()}},{key:"play",value:function(){var c=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],l=this.props,y=l.onPlay,O=l.slideInterval,P=l.slideDuration,E=this.state.currentIndex;this.playPauseIntervalId||(this.setState({isPlaying:!0}),this.playPauseIntervalId=window.setInterval(this.pauseOrPlay,Math.max(O,P)),y&&c&&y(E))}},{key:"pause",value:function(){var c=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],l=this.props.onPause,y=this.state.currentIndex;this.playPauseIntervalId&&(window.clearInterval(this.playPauseIntervalId),this.playPauseIntervalId=null,this.setState({isPlaying:!1}),l&&c&&l(y))}},{key:"isImageLoaded",value:function(c){return!!this.loadedImages[c.original]||(this.loadedImages[c.original]=!0,!1)}},{key:"handleImageLoaded",value:function(c,l){var y=this.props.onImageLoad;!this.loadedImages[l]&&y&&(this.loadedImages[l]=!0,y(c))}},{key:"renderItem",value:function(c){var l=this.state.isFullscreen,y=this.props.onImageError||this.handleImageError;return m().createElement(no,{description:c.description,fullscreen:c.fullscreen,handleImageLoaded:this.handleImageLoaded,isFullscreen:l,onImageError:y,original:c.original,originalAlt:c.originalAlt,originalHeight:c.originalHeight,originalWidth:c.originalWidth,originalTitle:c.originalTitle,sizes:c.sizes,loading:c.loading,srcSet:c.srcSet})}},{key:"renderThumbInner",value:function(c){var l=this.props.onThumbnailError||this.handleImageError;return m().createElement("span",{className:"image-gallery-thumbnail-inner"},m().createElement("img",{className:"image-gallery-thumbnail-image",src:c.thumbnail,height:c.thumbnailHeight,width:c.thumbnailWidth,alt:c.thumbnailAlt,title:c.thumbnailTitle,loading:c.thumbnailLoading,onError:l}),c.thumbnailLabel&&m().createElement("div",{className:"image-gallery-thumbnail-label"},c.thumbnailLabel))}},{key:"render",value:function(){var c=this.state,l=c.currentIndex,y=c.isFullscreen,O=c.modalFullscreen,P=c.isPlaying,E=this.props,K=E.additionalClass,U=E.disableThumbnailSwipe,q=E.indexSeparator,M=E.isRTL,z=E.items,F=E.thumbnailPosition,B=E.renderFullscreenButton,G=E.renderCustomControls,te=E.renderLeftNav,le=E.renderRightNav,we=E.showBullets,ye=E.showFullscreenButton,he=E.showIndex,se=E.showThumbnails,ne=E.showNav,De=E.showPlayButton,at=E.renderPlayPauseButton,lt=this.getThumbnailStyle(),Me=this.getSlideItems(),Ue=Me.slides,_e=Me.thumbnails,Ze=Me.bullets,ct=p("image-gallery-slide-wrapper",this.getThumbnailPositionClassName(F),{"image-gallery-rtl":M}),et=m().createElement("div",{ref:this.imageGallerySlideWrapper,className:ct},G&&G(),this.canSlide()?m().createElement(m().Fragment,null,ne&&m().createElement(m().Fragment,null,te(this.slideLeft,!this.canSlideLeft()),le(this.slideRight,!this.canSlideRight())),m().createElement(ur,{className:"image-gallery-swipe",delta:0,onSwiping:this.handleSwiping,onSwiped:this.handleOnSwiped},m().createElement("div",{className:"image-gallery-slides"},Ue))):m().createElement("div",{className:"image-gallery-slides"},Ue),De&&at(this.togglePlay,P),we&&m().createElement("div",{className:"image-gallery-bullets"},m().createElement("div",{className:"image-gallery-bullets-container",role:"navigation","aria-label":"Bullet Navigation"},Ze)),ye&&B(this.toggleFullScreen,y),he&&m().createElement("div",{className:"image-gallery-index"},m().createElement("span",{className:"image-gallery-index-current"},l+1),m().createElement("span",{className:"image-gallery-index-separator"},q),m().createElement("span",{className:"image-gallery-index-total"},z.length))),ut=p("image-gallery",K,{"fullscreen-modal":O}),ke=p("image-gallery-content",this.getThumbnailPositionClassName(F),{fullscreen:y}),bo=p("image-gallery-thumbnails-wrapper",this.getThumbnailPositionClassName(F),{"thumbnails-wrapper-rtl":!this.isThumbnailVertical()&&M},{"thumbnails-swipe-horizontal":!this.isThumbnailVertical()&&!U},{"thumbnails-swipe-vertical":this.isThumbnailVertical()&&!U});return m().createElement("div",{ref:this.imageGallery,className:ut,"aria-live":"polite"},m().createElement("div",{className:ke},(F==="bottom"||F==="right")&&et,se&&_e.length>0?m().createElement(ur,{className:bo,delta:0,onSwiping:!U&&this.handleThumbnailSwiping,onSwiped:!U&&this.handleOnThumbnailSwiped},m().createElement("div",{className:"image-gallery-thumbnails",ref:this.thumbnailsWrapper,style:this.getThumbnailBarHeight()},m().createElement("nav",{ref:this.thumbnails,className:"image-gallery-thumbnails-container",style:lt,"aria-label":"Thumbnail Navigation"},_e))):null,(F==="top"||F==="left")&&et))}}],f&&fo(a.prototype,f),Object.defineProperty(a,"prototype",{writable:!1}),Y}(m().Component);en.propTypes={flickThreshold:S.number,items:(0,S.arrayOf)((0,S.shape)({bulletClass:S.string,bulletOnClick:S.func,description:S.string,original:S.string,originalHeight:S.number,originalWidth:S.number,loading:S.string,thumbnailHeight:S.number,thumbnailWidth:S.number,thumbnailLoading:S.string,fullscreen:S.string,originalAlt:S.string,originalTitle:S.string,thumbnail:S.string,thumbnailAlt:S.string,thumbnailLabel:S.string,thumbnailTitle:S.string,originalClass:S.string,thumbnailClass:S.string,renderItem:S.func,renderThumbInner:S.func,imageSet:mo,srcSet:S.string,sizes:S.string})).isRequired,showNav:S.bool,autoPlay:S.bool,lazyLoad:S.bool,infinite:S.bool,showIndex:S.bool,showBullets:S.bool,showThumbnails:S.bool,showPlayButton:S.bool,showFullscreenButton:S.bool,disableThumbnailScroll:S.bool,disableKeyDown:S.bool,disableSwipe:S.bool,disableThumbnailSwipe:S.bool,useBrowserFullscreen:S.bool,onErrorImageURL:S.string,indexSeparator:S.string,thumbnailPosition:(0,S.oneOf)(["top","bottom","left","right"]),startIndex:S.number,slideDuration:S.number,slideInterval:S.number,slideOnThumbnailOver:S.bool,swipeThreshold:S.number,swipingTransitionDuration:S.number,swipingThumbnailTransitionDuration:S.number,onSlide:S.func,onBeforeSlide:S.func,onScreenChange:S.func,onPause:S.func,onPlay:S.func,onClick:S.func,onImageLoad:S.func,onImageError:S.func,onTouchMove:S.func,onTouchEnd:S.func,onTouchStart:S.func,onMouseOver:S.func,onMouseLeave:S.func,onBulletClick:S.func,onThumbnailError:S.func,onThumbnailClick:S.func,renderCustomControls:S.func,renderLeftNav:S.func,renderRightNav:S.func,renderPlayPauseButton:S.func,renderFullscreenButton:S.func,renderItem:S.func,renderThumbInner:S.func,stopPropagation:S.bool,additionalClass:S.string,useTranslate3D:S.bool,isRTL:S.bool,useWindowKeyDown:S.bool},en.defaultProps={onErrorImageURL:"",additionalClass:"",showNav:!0,autoPlay:!1,lazyLoad:!1,infinite:!0,showIndex:!1,showBullets:!1,showThumbnails:!0,showPlayButton:!0,showFullscreenButton:!0,disableThumbnailScroll:!1,disableKeyDown:!1,disableSwipe:!1,disableThumbnailSwipe:!1,useTranslate3D:!0,isRTL:!1,useBrowserFullscreen:!0,flickThreshold:.4,stopPropagation:!1,indexSeparator:" / ",thumbnailPosition:"bottom",startIndex:0,slideDuration:450,swipingTransitionDuration:0,swipingThumbnailTransitionDuration:0,onSlide:null,onBeforeSlide:null,onScreenChange:null,onPause:null,onPlay:null,onClick:null,onImageLoad:null,onImageError:null,onTouchMove:null,onTouchEnd:null,onTouchStart:null,onMouseOver:null,onMouseLeave:null,onBulletClick:null,onThumbnailError:null,onThumbnailClick:null,renderCustomControls:null,renderThumbInner:null,renderItem:null,slideInterval:3e3,slideOnThumbnailOver:!1,swipeThreshold:30,renderLeftNav:function(d,a){return m().createElement(ao,{onClick:d,disabled:a})},renderRightNav:function(d,a){return m().createElement(lo,{onClick:d,disabled:a})},renderPlayPauseButton:function(d,a){return m().createElement(co,{onClick:d,isPlaying:a})},renderFullscreenButton:function(d,a){return m().createElement(so,{onClick:d,isFullscreen:a})},useWindowKeyDown:!0};const go=en})(),h})())}(zt)),zt.exports}var Da=La();const za=ko(Da);function Fa(){var e=new Map;function t(n){var r=n.root,i=n.rootMargin,s=n.threshold,h=e.get(r);h||(h=new Map,e.set(r,h));var u=JSON.stringify({rootMargin:i,threshold:s}),p=h.get(u);if(!p){var g=new Map,m=new IntersectionObserver(function(v){v.forEach(function(j){var w=g.get(j.target);w?.(j)})},{root:r,rootMargin:i,threshold:s});p={observer:m,entryCallbacks:g},h.set(u,p)}return{observe:function(j,w){var k,x;(k=p)==null||k.entryCallbacks.set(j,w),(x=p)==null||x.observer.observe(j)},unobserve:function(j){var w,k;(w=p)==null||w.entryCallbacks.delete(j),(k=p)==null||k.observer.unobserve(j)}}}return{getObserver:t}}var Wa="0px",Aa=[0],Na=Fa();function Ba(e){var t,n,r=(t=e?.rootMargin)!=null?t:Wa,i=(n=e?.threshold)!=null?n:Aa,s=L.useRef(null),h=L.useRef(null),u=L.useRef(null),p=L.useState(),g=p[0],m=p[1],v=L.useCallback(function(){var x=s.current;if(!x){m(void 0);return}var C=Na.getObserver({root:h.current,rootMargin:r,threshold:i});C.observe(x,function(_){m(_)}),u.current=C},[r,i]),j=L.useCallback(function(){var x=u.current,C=s.current;C&&x?.unobserve(C),u.current=null},[]),w=L.useCallback(function(x){j(),s.current=x,v()},[v,j]),k=L.useCallback(function(x){j(),h.current=x,v()},[v,j]);return[w,{entry:g,rootRef:k}]}function Tn(){return Tn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tn.apply(this,arguments)}function $a(e){var t,n=Ba(e),r=n[0],i=n[1],s=!!((t=i.entry)!=null&&t.isIntersecting),h=L.useState(s),u=h[0],p=h[1];return s&&!u&&p(!0),[r,Tn({},i,{isVisible:s,wasEverVisible:u})]}var Ua=100;function Ka(e){var t=e.loading,n=e.hasNextPage,r=e.onLoadMore,i=e.rootMargin,s=e.disabled,h=e.delayInMs,u=h===void 0?Ua:h,p=$a({rootMargin:i}),g=p[0],m=p[1],v=m.rootRef,j=m.isVisible,w=!s&&!t&&j&&n;return L.useEffect(function(){if(w){var k=setTimeout(function(){r()},u);return function(){clearTimeout(k)}}},[r,w,u]),[g,{rootRef:v}]}const Ha={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/>'},Va={width:24,height:24,body:'<g fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M0 0h24v24H0z"/><path fill="currentColor" d="M18.333 2c1.96 0 3.56 1.537 3.662 3.472l.005.195v12.666c0 1.96-1.537 3.56-3.472 3.662l-.195.005H5.667a3.667 3.667 0 0 1-3.662-3.472L2 18.333V5.667c0-1.96 1.537-3.56 3.472-3.662L5.667 2h12.666zm-2.626 7.293a1 1 0 0 0-1.414 0L11 12.585l-1.293-1.292l-.094-.083a1 1 0 0 0-1.32 1.497l2 2l.094.083a1 1 0 0 0 1.32-.083l4-4l.083-.094a1 1 0 0 0-.083-1.32z"/></g>'},qa={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M18 6L6 18M6 6l12 12"/>'};var sn=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function an(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function Ci(e,t){for(var n=t.slice(0,t.length-1),r=0;r<n.length;r++)n[r]=e[n[r].toLowerCase()];return n}function Ei(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");for(var t=e.split(","),n=t.lastIndexOf("");n>=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function Ga(e,t){for(var n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,i=!0,s=0;s<n.length;s++)r.indexOf(n[s])===-1&&(i=!1);return i}var $n={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":sn?173:189,"=":sn?61:187,";":sn?59:186,"'":222,"[":219,"]":221,"\\":220},Ae={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},On={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},fe={16:!1,18:!1,17:!1,91:!1},de={};for(var Pt=1;Pt<20;Pt++)$n["f".concat(Pt)]=111+Pt;var oe=[],Ar=!1,Ii="all",Pi=[],Ht=function(t){return $n[t.toLowerCase()]||Ae[t.toLowerCase()]||t.toUpperCase().charCodeAt(0)};function _i(e){Ii=e||"all"}function vt(){return Ii||"all"}function Xa(){return oe.slice(0)}function Ya(e){var t=e.target||e.srcElement,n=t.tagName,r=!0;return(t.isContentEditable||(n==="INPUT"||n==="TEXTAREA"||n==="SELECT")&&!t.readOnly)&&(r=!1),r}function Qa(e){return typeof e=="string"&&(e=Ht(e)),oe.indexOf(e)!==-1}function Ja(e,t){var n,r;e||(e=vt());for(var i in de)if(Object.prototype.hasOwnProperty.call(de,i))for(n=de[i],r=0;r<n.length;)n[r].scope===e?n.splice(r,1):r++;vt()===e&&_i(t||"all")}function Za(e){var t=e.keyCode||e.which||e.charCode,n=oe.indexOf(t);if(n>=0&&oe.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&oe.splice(0,oe.length),(t===93||t===224)&&(t=91),t in fe){fe[t]=!1;for(var r in Ae)Ae[r]===t&&(je[r]=!1)}}function el(e){if(typeof e>"u")Object.keys(de).forEach(function(h){return delete de[h]});else if(Array.isArray(e))e.forEach(function(h){h.key&&ln(h)});else if(typeof e=="object")e.key&&ln(e);else if(typeof e=="string"){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=n[0],s=n[1];typeof i=="function"&&(s=i,i=""),ln({key:e,scope:i,method:s,splitKey:"+"})}}var ln=function(t){var n=t.key,r=t.scope,i=t.method,s=t.splitKey,h=s===void 0?"+":s,u=Ei(n);u.forEach(function(p){var g=p.split(h),m=g.length,v=g[m-1],j=v==="*"?"*":Ht(v);if(de[j]){r||(r=vt());var w=m>1?Ci(Ae,g):[];de[j]=de[j].filter(function(k){var x=i?k.method===i:!0;return!(x&&k.scope===r&&Ga(k.mods,w))})}})};function Nr(e,t,n,r){if(t.element===r){var i;if(t.scope===n||t.scope==="all"){i=t.mods.length>0;for(var s in fe)Object.prototype.hasOwnProperty.call(fe,s)&&(!fe[s]&&t.mods.indexOf(+s)>-1||fe[s]&&t.mods.indexOf(+s)===-1)&&(i=!1);(t.mods.length===0&&!fe[16]&&!fe[18]&&!fe[17]&&!fe[91]||i||t.shortcut==="*")&&t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}}function Br(e,t){var n=de["*"],r=e.keyCode||e.which||e.charCode;if(je.filter.call(this,e)){if((r===93||r===224)&&(r=91),oe.indexOf(r)===-1&&r!==229&&oe.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(k){var x=On[k];e[k]&&oe.indexOf(x)===-1?oe.push(x):!e[k]&&oe.indexOf(x)>-1?oe.splice(oe.indexOf(x),1):k==="metaKey"&&e[k]&&oe.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(oe=oe.slice(oe.indexOf(x))))}),r in fe){fe[r]=!0;for(var i in Ae)Ae[i]===r&&(je[i]=!0);if(!n)return}for(var s in fe)Object.prototype.hasOwnProperty.call(fe,s)&&(fe[s]=e[On[s]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(oe.indexOf(17)===-1&&oe.push(17),oe.indexOf(18)===-1&&oe.push(18),fe[17]=!0,fe[18]=!0);var h=vt();if(n)for(var u=0;u<n.length;u++)n[u].scope===h&&(e.type==="keydown"&&n[u].keydown||e.type==="keyup"&&n[u].keyup)&&Nr(e,n[u],h,t);if(r in de){for(var p=0;p<de[r].length;p++)if((e.type==="keydown"&&de[r][p].keydown||e.type==="keyup"&&de[r][p].keyup)&&de[r][p].key){for(var g=de[r][p],m=g.splitKey,v=g.key.split(m),j=[],w=0;w<v.length;w++)j.push(Ht(v[w]));j.sort().join("")===oe.sort().join("")&&Nr(e,g,h,t)}}}}function tl(e){return Pi.indexOf(e)>-1}function je(e,t,n){oe=[];var r=Ei(e),i=[],s="all",h=document,u=0,p=!1,g=!0,m="+",v=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(s=t.scope),t.element&&(h=t.element),t.keyup&&(p=t.keyup),t.keydown!==void 0&&(g=t.keydown),t.capture!==void 0&&(v=t.capture),typeof t.splitKey=="string"&&(m=t.splitKey)),typeof t=="string"&&(s=t);u<r.length;u++)e=r[u].split(m),i=[],e.length>1&&(i=Ci(Ae,e)),e=e[e.length-1],e=e==="*"?"*":Ht(e),e in de||(de[e]=[]),de[e].push({keyup:p,keydown:g,scope:s,mods:i,shortcut:r[u],method:n,key:r[u],splitKey:m,element:h});typeof h<"u"&&!tl(h)&&window&&(Pi.push(h),an(h,"keydown",function(j){Br(j,h)},v),Ar||(Ar=!0,an(window,"focus",function(){oe=[]},v)),an(h,"keyup",function(j){Br(j,h),Za(j)},v))}function nl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(de).forEach(function(n){var r=de[n].find(function(i){return i.scope===t&&i.shortcut===e});r&&r.method&&r.method()})}var cn={setScope:_i,getScope:vt,deleteScope:Ja,getPressedKeyCodes:Xa,isPressed:Qa,filter:Ya,trigger:nl,unbind:el,keyMap:$n,modifier:Ae,modifierMap:On};for(var un in cn)Object.prototype.hasOwnProperty.call(cn,un)&&(je[un]=cn[un]);if(typeof window<"u"){var rl=window.hotkeys;je.noConflict=function(e){return e&&window.hotkeys===je&&(window.hotkeys=rl),je},window.hotkeys=je}je.filter=function(){return!0};var Ri=function(t,n){var r=t.target,i=r&&r.tagName;return!!(i&&n&&n.includes(i))},il=function(t){return Ri(t,["INPUT","TEXTAREA","SELECT"])};function ol(e,t,n,r){n instanceof Array&&(r=n,n=void 0);var i=n||{},s=i.enableOnTags,h=i.filter,u=i.keyup,p=i.keydown,g=i.filterPreventDefault,m=g===void 0?!0:g,v=i.enabled,j=v===void 0?!0:v,w=i.enableOnContentEditable,k=w===void 0?!1:w,x=L.useRef(null),C=L.useCallback(function(_,T){var W,X;return h&&!h(_)?!m:il(_)&&!Ri(_,s)||(W=_.target)!=null&&W.isContentEditable&&!k?!0:x.current===null||document.activeElement===x.current||(X=x.current)!=null&&X.contains(document.activeElement)?(t(_,T),!0):!1},r?[x,s,h].concat(r):[x,s,h]);return L.useEffect(function(){if(!j){je.unbind(e,C);return}return u&&p!==!0&&(n.keydown=!1),je(e,n||{},C),function(){return je.unbind(e,C)}},[C,e,j]),x}je.isPressed;const Mi=L.createContext({open:!1,toggleOpen:e=>{}});function sl({children:e}){const[t,n]=L.useState(!1),r=s=>{n(s??!s)},i=L.useMemo(()=>({open:t,toggleOpen:r}),[t]);return o.jsx(Mi.Provider,{value:i,children:e})}function Un(){return L.useContext(Mi)}const Ce={nameAsc:"title",nameDesc:"title",popularity:"stats.downloads",publishAt:"lastPublishedAt",mobilePageSize:10,pageSize:18,currentPage:1,defaultCurrentPage:1,blockletsPath:"/api/v2/blocklets.json",categoriesPath:"/api/blocklets/categories",explorePath:"/api/blocklets/explore",exploreDidsPath:"/api/blocklets/dids",cacheSize:100},al=e=>xt(async()=>{const{data:t}=await e.get(Ce.categoriesPath);return Array.isArray(t)?t:[]},{manual:!0});function ll(e,t){const n=e.menu?{sortBy:"popularity",sortDirection:"desc",showResources:"true",...Eo(e,["sortBy","sortDirection","showResources"])}:{sortBy:"popularity",sortDirection:"desc",showResources:"true",...e,menu:void 0},{onFilterChange:r,onSearchSelect:i=u=>{t.onFilterChange({...n,keyword:u.title})},emptyCategory:s}=t;!n.category&&!s&&(n.category="All");const h=u=>{const p={...n,...u};r(tn(p,g=>g===""||g===void 0))};return{filters:e,cleanFilter:u=>{const p=u?tn(n,(g,m)=>u.includes(m)):{};r(tn(p,g=>g===""||g===void 0))},handleActiveMenu:u=>{u!==e.menu&&r({menu:u})},handleSort:(u,p)=>{h({sortBy:u,sortDirection:p||u==="nameAsc"?"asc":"desc"})},handleKeyword:u=>{h({category:void 0,keyword:u||void 0})},handlePrice:u=>{h({price:u===e.price?void 0:u})},handleCategory:u=>{h({category:u===e.category?"":u})},handleDeveloper:u=>{h({owner:u||void 0})},handlePage:u=>{h({currentPage:u})},handleSwitchShowResources:u=>{h({showResources:u})},handleSearchSelect:u=>{i(u)}}}const cl=(e,t,n)=>e&&t||!n,Li=e=>[{name:e("sort.popularity"),value:"popularity"},{name:e("sort.lastPublished"),value:"publishAt"}],Di=(e,t,n)=>{const r=Lo(e),i=Do(r.search);if(zo(e)?.endsWith(".gif"))return i.imageFilter?Fo({...r,search:""}):e;if(i.imageFilter)return e;const s=n||window.blocklet?.version,{w:h,h:u}=typeof t=="object"?{w:t.w,h:t.h}:{w:t,h:t};return Rn(e,{...h||u?{imageFilter:"resize",w:h,h:u}:{},v:s})},ul=e=>[{name:e("blocklet.free"),value:"free"},{name:e("blocklet.payment"),value:"payment"}],dl=(e=[],t="en")=>e.map(n=>({name:n.locales[t]||n.locales.en,value:n._id})),hl=e=>Array.isArray(e)?e.map(t=>t.message).join(`
2
- `):e.response?.data?.error?e.response.data.error.message||e.response.data.error:e.message||e,fl=(e,t)=>e?.replace(/{(\w*)}/g,(n,r)=>t.hasOwnProperty(r)?t[r]:""),pl=()=>window.innerWidth<=600,ml={common:{title:"Blocklet Store",searchStore:"Search Blocklet",showResources:"Show extensions",price:"Price",category:"Category",categories:"Categories",resourceType:"Resource Type",clear:"Clear",cancel:"Cancel",search:"Search",fetchError:"Failed to fetch data, please try again later",searchPlaceholder:"Search blocklet"},explore:{title:"Explore",trending:"Trending",topRated:"Top Rated",recentlyUpdated:"Recently Updated",viewDetail:"View Details"},sort:{sort:"Sort",rating:"Rating",popularity:"Most Popular",lastPublished:"Latest Published"},category:{all:"All",placeholder:"Category name",helperText:"Please select a category"},blocklet:{noResults:"No blocklet found.",free:"Free",search:'Results for "{keyword}"',authorTag:"Blocklet by {name}",resourceTag:"Extensions for {name}",resultCount:"{count} Blocklets",emptyTip:"Tips:",filterTip:"Appropriately reduce the filter conditions",keywordTip:"Try other keywords",owner:"Blocklets from {name}",noBlockletPart1:'No Blocklets associated with"',noBlockletPart2:'"were found',noCategoryResults1:'No "',noCategoryResults2:'" Blocklets'},autocomplete:{expandResult:'View all search results for "{name}"'}},gl={common:{title:"Blocklet 商店",searchStore:"搜索 Blocklet",showResources:"显示扩展",price:"价格",category:"类别",categories:"类别",resourceType:"资源类型",clear:"清除",cancel:"取消",search:"搜索",fetchError:"获取数据失败, 请稍后再试",searchPlaceholder:"搜索 Blocklet"},explore:{title:"探索",trending:"趋势",topRated:"评分最高",recentlyUpdated:"最近更新",viewDetail:"查看详情"},sort:{sort:"排序",rating:"评分",popularity:"最热门",lastPublished:"最新发布"},category:{all:"全部",placeholder:"分类名称",helperText:"请选择分类"},blocklet:{noResults:"未搜索到 Blocklet",free:"免费",search:'搜索 "{keyword}" 的结果',authorTag:"{name} 的 Blocklet",resourceTag:"{name} 的拓展",resultCount:"{count} 个 Blocklet",emptyTip:"建议:",filterTip:"适当减少筛选条件",keywordTip:"尝试其他关键字",owner:"来自 {name} 的 Blocklets",noBlockletPart1:'没有找到与"',noBlockletPart2:'"相关的 Blocklets',noCategoryResults1:'无 "',noCategoryResults2:'" 类别的 Blocklets'},autocomplete:{expandResult:"查看 “{name}” 的所有搜索结果"}},dn={en:yr(ml),zh:yr(gl)},zi=(e,t)=>{const n={};return e&&(n["x-blocklet-server-version"]=e),t&&(n["x-blocklet-store-version"]=t),n},bl=e=>(t,n)=>{const r=dn[e]?dn[e][t]:dn.en[t];return fl(r,n)||t},Fi={errors:{fetchCategoriesError:null},loadings:{fetchCategoriesLoading:!1},compact:!1,endpoint:"",wrapChildren:()=>null,t:e=>e,storeVersion:"",minItemWidth:350,serverVersion:"",layout:{},selectedCategory:void 0,categoryList:[],blockletRender:()=>null,locale:"en",categoryOptions:[],priceOptions:[],storeApi:null,baseSearch:!1,showResourcesSwitch:!1,showCategory:!1,tagFilters:[],developerName:"",onFilterChange:()=>{},updateDeveloperName:()=>{},getCategoryLocale:()=>null,search:{filters:{},cleanFilter:()=>{},handleActiveMenu:()=>{},handleSort:()=>{},handleKeyword:()=>{},handlePrice:()=>{},handleCategory:()=>{},handleDeveloper:()=>{},handleSwitchShowResources:()=>{},handleSearchSelect:()=>{},handlePage:()=>{}}},Wi=L.createContext(Fi),{Provider:yl,Consumer:yc}=Wi;function vl(e){const{locale:t="zh",filters:n={},serverVersion:r="",onFilterChange:i=()=>{},minItemWidth:s=350,queryFilter:h=!0,layout:u={},wrapChildren:p=ue=>ue,extraFilter:g=ue=>ue,baseSearch:m=!1,fetchCategoryDelay:v=0,showResourcesSwitch:j=!1,showCategory:w=!0,tagFilters:k=[],children:x,storeVersion:C,onSearchSelect:_=()=>{},endpoint:T,blockletRender:W,compact:X=!1}=e,J=zi(r,C),A=L.useMemo(()=>Yr({baseURL:T,headers:J}),[T]),V=ll(n,{onFilterChange:i,emptyCategory:!u.showExplore,onSearchSelect:_}),[Z,re]=L.useState(""),{data:$=[],error:Ee,loading:ge,run:Se}=al(A),pe=L.useMemo(()=>{const ue=fs($,[ee=>ee.name],["asc"]),ie=ue.findIndex(ee=>ee.name==="All"||ee.locales.en==="All");return ie>-1?[{...ue[ie],_id:"All"},...ue.slice(0,ie),...ue.slice(ie+1)]:ue},[$]),be=L.useCallback(bl(t),[t]),D=L.useMemo(()=>dl(pe,t),[pe,t]),ae=ul(be),Te={search:V,compact:X,errors:{fetchCategoriesError:Ee},loadings:{fetchCategoriesLoading:ge},extraFilter:g,endpoint:T,queryFilter:h,layout:{showExplore:u.showExplore??!1,showCategory:u.showCategory??!0,showTitle:u.showTitle??!0,showSearch:u.showSearch??!0},minItemWidth:s,wrapChildren:p,t:be,storeVersion:C,serverVersion:r,selectedCategory:V.filters.category||(u.showExplore?"":"All"),categoryList:pe,blockletRender:W,locale:t,categoryOptions:D,priceOptions:ae,storeApi:A,baseSearch:m,showResourcesSwitch:j,showCategory:w,tagFilters:k,onFilterChange:i,getCategoryLocale:ue=>{if(!ue)return null;const ie=$.find(ee=>ee._id===ue||ee.locales.en==="All");return ie?ie.locales[t]||ie.locales.en:null},get developerName(){return Z},updateDeveloperName:re};return L.useEffect(()=>{setTimeout(Se,v||0)},[T,Se,v]),o.jsx(yl,{value:Te,children:x})}function xe(){return L.useContext(Wi)||Fi}function Ai({children:e,onClick:t,size:n=32,...r}){return o.jsx(Oe,{...r,onClick:t,variant:"outlined",sx:[{minWidth:n,height:n,p:0,borderColor:"divider","&:hover":{borderColor:"divider"},borderRadius:2,color:"text.secondary"},...Array.isArray(r.sx)?r.sx:[r.sx]],children:e})}function _t(e,t){return e===void 0?t:e}function Kn({xs:e=void 0,sm:t=void 0,md:n=void 0,lg:r=void 0,xl:i=void 0,exact:s=!1}){const h=Ve(),u=nt(h.breakpoints.down("sm")),p=nt(h.breakpoints.between("sm","md")),g=nt(h.breakpoints.between("md","lg")),m=nt(h.breakpoints.between("lg","xl"));if(s)return u?e||null:p?t||null:g?n||null:m?r||null:i||null;let v=e;return u||(v=_t(t,v),p)||(v=_t(n,v),g)||(v=_t(r,v),m)?v:_t(i,v)}function xl({children:e}){const{open:t,toggleOpen:n}=Un();return o.jsx(Kn,{xs:o.jsx(Ro,{open:t,onClose:()=>n(!1),children:e}),md:o.jsx(H,{children:e})})}function wl({loading:e=!1,disabled:t,...n}){return o.jsx(Oe,{disableElevation:!0,disabled:t||e===!0,...n,sx:[{borderRadius:"4px"},...Array.isArray(n.sx)?n.sx:[n.sx]],startIcon:e&&o.jsx(Re,{size:"1em"})})}function Cn({value:e,options:t,onChange:n,placeholder:r="",...i}){const s=L.useRef(null),h=Ve(),[u,p]=L.useState(!1),[g,m]=L.useState(e!==null?e:""),v=nt(h.breakpoints.down("sm"));L.useEffect(()=>{m(e!==null?e:"")},[e]);const j=L.useCallback(()=>{p(!1)},[]),w=L.useCallback(()=>{p(!0)},[]);function k(C){m(C.value),n(C.value),v&&j()}function x(C){return C===g}return o.jsxs(o.Fragment,{children:[o.jsxs(Sl,{ref:s,onClick:w,variant:"outlined",size:"medium",className:["my-select__selector",Ao(g)?"":"my-select__selector--active"].join(" "),sx:{minWidth:{xs:"100px",md:"auto"},color:"text.primary",borderRadius:"8px"},...i,children:[t.find(C=>C.value===g)?.name||r,o.jsx(Wo,{className:"my-select__arrowdown",component:Cs,sx:{width:18,height:18}})]}),o.jsx(No,{open:u,anchorEl:s.current,transition:!0,sx:{zIndex:"9999"},children:({TransitionProps:C,placement:_})=>o.jsx(Bo,{...C,style:{transformOrigin:_==="bottom"?"center top":"center bottom"},children:o.jsx($o,{children:o.jsx(Uo,{onClickAway:j,children:o.jsx(kl,{autoFocusItem:u,onMouseEnter:w,onMouseLeave:j,children:t.map(T=>o.jsxs(Ft,{onClick:()=>k(T),sx:{fontSize:14},children:[o.jsx(Ko,{sx:{mr:1,fontSize:16,visibility:x(T.value)?"visible":"hidden"}}),T.name]},T.value))})})})})})]})}const Sl=Ne(wl)`
1
+ import{c0 as ze,r as L,cq as xt,ba as yo,bb as vo,cR as Ot,f5 as tt,cr as ht,f6 as xo,f7 as wo,f8 as br,aG as $t,j as o,be as We,df as So,du as Ct,bd as ko,f as Ve,f9 as jo,a2 as To,f0 as Oo,fa as Yr,aB as Co,aC as Rn,N as H,aV as ve,fb as Eo,fc as tn,cZ as yr,cv as Io,T as Q,fd as Po,f3 as Qr,C as _e,dG as Oe,fe as Jr,ff as Ro,fg as Zr,dI as ei,fh as nn,t as ti,U as Ft,y as rt,at as Wt,fi as _o,F as nt,aU as ni,V as ri,z as _n,dm as Fe,G as vr,aP as Mo,eM as xr,cF as Lo,fj as Do,fk as zo,fl as Fo,cD as Wo,O as Ao,dJ as No,fm as Bo,dH as $o,bu as Uo,_ as Ko,fn as Ho,fo as wr,dc as Ne,m as qe,az as Mn,aO as Sr,o as _,bk as Vo,fp as ii,b2 as qo,aE as Et,v as At,a7 as Go,a8 as oi,aF as Xo,fq as kr,a9 as Yo,bn as Ln,$ as Qo,D as Jo,X as Zo,cL as es,Y as ft,eB as ts,H as Ke,b as ns,n as rs,a$ as is,ad as os,E as si,cw as ss,b8 as as,W as ls}from"./index-CjzEBnHB.js";import{P as cs}from"./ChevronLeft-C_5SFpZ3.js";import{N as us}from"./ChevronRight-D5Dv2KwC.js";import{S as ds}from"./Search-CVsnDnpP.js";import{y as hs}from"./index-dQzdi1Hq.js";import{o as fs,u as ps}from"./blocklet-BWShyefZ.js";import{A as ms}from"./Autocomplete-Jvr3OBqO.js";import{V as gs}from"./Verified-DYk2lw3M.js";import{S as bs,V as ys}from"./VerifiedUser-NPP4tmwS.js";import{A as vs}from"./Add-CMaOaJcy.js";import{L as ai}from"./Launch-BSO75Y-o.js";import{D as xs}from"./Done-1e3LsE76.js";import{D as li}from"./DeleteOutline-BJkxA9W_.js";import{D as ws}from"./delete-confirm-DRlMHX1Z.js";import{I as Ss}from"./MoreVert-B3-V93zF.js";import{g as gt}from"./get-safe-url-Dqogbkdq.js";import{B as jr}from"./ButtonGroup-BHDJ_xHw.js";var ks=function(e){return e===document||e===document.documentElement||e===document.body?Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},Tr=function(e){return e.scrollHeight||Math.max(document.documentElement.scrollHeight,document.body.scrollHeight)},js=function(e){return e.clientHeight||Math.max(document.documentElement.clientHeight,document.body.clientHeight)},Ts=function(e,t){t===void 0&&(t={});var n=t.target,r=t.isNoMore,i=t.threshold,s=i===void 0?100:i,h=t.direction,u=h===void 0?"bottom":h,p=t.reloadDeps,g=p===void 0?[]:p,m=t.manual,v=t.onBefore,j=t.onSuccess,w=t.onError,k=t.onFinally,x=ze(L.useState(),2),C=x[0],R=x[1],T=ze(L.useState(!1),2),W=T[0],X=T[1],J=u==="top",A=L.useRef(void 0),V=L.useRef(0),Z=L.useMemo(function(){return r?r(C):!1},[C]),re=xt(function(ie){return yo(void 0,void 0,void 0,function(){var ee,me,Ie,Pe;return vo(this,function(wt){switch(wt.label){case 0:return[4,e(ie)];case 1:return ee=wt.sent(),R(ie?Ot(Ot({},ee),{list:J?tt(tt([],ze(ee.list),!1),ze((Ie=ie.list)!==null&&Ie!==void 0?Ie:[]),!1):tt(tt([],ze((Pe=ie.list)!==null&&Pe!==void 0?Pe:[]),!1),ze(ee.list),!1)}):Ot(Ot({},ee),{list:tt([],ze((me=ee.list)!==null&&me!==void 0?me:[]),!1)})),[2,ee]}})})},{manual:m,onFinally:function(ie,ee,me){X(!1),k?.(ee,me)},onBefore:function(){return v?.()},onSuccess:function(ie){setTimeout(function(){if(J){var ee=br(n);if(ee=ee===document?document.documentElement:ee,ee){var me=Tr(ee);ee.scrollTo(0,me-V.current)}}else ue()}),j?.(ie)},onError:function(ie){return w?.(ie)}}),$=re.loading,Ee=re.error,ge=re.run,Se=re.runAsync,pe=re.cancel,be=ht(function(){Z||(X(!0),ge(C))}),D=ht(function(){return Z?Promise.reject():(X(!0),Se(C))}),ae=function(){return X(!1),ge()},Te=function(){return X(!1),Se()},ue=function(){var ie=br(n);if(ie){var ee=ie===document?document.documentElement:ie,me=ks(ee),Ie=Tr(ee),Pe=js(ee);J?(A.current!==void 0&&A.current>me&&me<=s&&be(),A.current=me,V.current=Ie-me):Ie-me<=Pe+s&&be()}};return xo("scroll",function(){$||W||ue()},{target:n}),wo(function(){ge()},tt([],ze(g),!1)),{data:C,loading:!W&&$,error:Ee,loadingMore:W,noMore:Z,loadMore:be,loadMoreAsync:D,reload:ht(ae),reloadAsync:ht(Te),mutate:R,cancel:pe}};const Os=$t(o.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M19 18H6c-2.21 0-4-1.79-4-4 0-2.05 1.53-3.76 3.56-3.97l1.07-.11.5-.95C8.08 7.14 9.94 6 12 6c2.62 0 4.88 1.86 5.39 4.43l.3 1.5 1.53.11c1.56.1 2.78 1.41 2.78 2.96 0 1.65-1.35 3-3 3M8 13h2.55v3h2.9v-3H16l-4-4z"})),Cs=$t(o.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"})),Es=$t(o.jsx("path",{d:"M17 7h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1 0 1.43-.98 2.63-2.31 2.98l1.46 1.46C20.88 15.61 22 13.95 22 12c0-2.76-2.24-5-5-5m-1 4h-2.19l2 2H16zM2 4.27l3.11 3.11C3.29 8.12 2 9.91 2 12c0 2.76 2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1 0-1.59 1.21-2.9 2.76-3.07L8.73 11H8v2h2.73L13 15.27V17h1.73l4.01 4L20 19.74 3.27 3z"})),Is=$t(o.jsx("path",{d:"M17 7h-4v2h4c1.65 0 3 1.35 3 3s-1.35 3-3 3h-4v2h4c2.76 0 5-2.24 5-5s-2.24-5-5-5m-6 8H7c-1.65 0-3-1.35-3-3s1.35-3 3-3h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4zm-3-4h8v2H8z"})),gc="blocklet-add-component-registry",bc="server-add-registry",Ps={width:24,height:24,body:'<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="m8 16l2-6l6-2l-2 6l-6 2"/><path d="M3 12a9 9 0 1 0 18 0a9 9 0 1 0-18 0m9-9v2m0 14v2m-9-9h2m14 0h2"/></g>'},pt=/^[a-z0-9]+(-[a-z0-9]+)*$/,Ut=(e,t,n,r="")=>{const i=e.split(":");if(e.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const u=i.pop(),p=i.pop(),g={provider:i.length>0?i[0]:r,prefix:p,name:u};return t&&!Lt(g)?null:g}const s=i[0],h=s.split("-");if(h.length>1){const u={provider:r,prefix:h.shift(),name:h.join("-")};return t&&!Lt(u)?null:u}if(n&&r===""){const u={provider:r,prefix:"",name:s};return t&&!Lt(u,n)?null:u}return null},Lt=(e,t)=>e?!!((e.provider===""||e.provider.match(pt))&&(t&&e.prefix===""||e.prefix.match(pt))&&e.name.match(pt)):!1,ci=Object.freeze({left:0,top:0,width:16,height:16}),Nt=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Dn=Object.freeze({...ci,...Nt}),yn=Object.freeze({...Dn,body:"",hidden:!1});function Rs(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function Or(e,t){const n=Rs(e,t);for(const r in yn)r in Nt?r in e&&!(r in n)&&(n[r]=Nt[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function _s(e,t){const n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function s(h){if(n[h])return i[h]=[];if(!(h in i)){i[h]=null;const u=r[h]&&r[h].parent,p=u&&s(u);p&&(i[h]=[u].concat(p))}return i[h]}return Object.keys(n).concat(Object.keys(r)).forEach(s),i}function Ms(e,t,n){const r=e.icons,i=e.aliases||Object.create(null);let s={};function h(u){s=Or(r[u]||i[u],s)}return h(t),n.forEach(h),Or(e,s)}function ui(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(i=>{t(i,null),n.push(i)});const r=_s(e);for(const i in r){const s=r[i];s&&(t(i,Ms(e,i,s)),n.push(i))}return n}const Ls={provider:"",aliases:{},not_found:{},...ci};function rn(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function di(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!rn(e,Ls))return null;const n=t.icons;for(const i in n){const s=n[i];if(!i.match(pt)||typeof s.body!="string"||!rn(s,yn))return null}const r=t.aliases||Object.create(null);for(const i in r){const s=r[i],h=s.parent;if(!i.match(pt)||typeof h!="string"||!n[h]&&!r[h]||!rn(s,yn))return null}return t}const Cr=Object.create(null);function Ds(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function He(e,t){const n=Cr[e]||(Cr[e]=Object.create(null));return n[t]||(n[t]=Ds(e,t))}function zn(e,t){return di(t)?ui(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function zs(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let bt=!1;function hi(e){return typeof e=="boolean"&&(bt=e),bt}function Fs(e){const t=typeof e=="string"?Ut(e,!0,bt):e;if(t){const n=He(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function Ws(e,t){const n=Ut(e,!0,bt);if(!n)return!1;const r=He(n.provider,n.prefix);return zs(r,n.name,t)}function As(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),bt&&!t&&!e.prefix){let i=!1;return di(e)&&(e.prefix="",ui(e,(s,h)=>{h&&Ws(s,h)&&(i=!0)})),i}const n=e.prefix;if(!Lt({provider:t,prefix:n,name:"a"}))return!1;const r=He(t,n);return!!zn(r,e)}const fi=Object.freeze({width:null,height:null}),pi=Object.freeze({...fi,...Nt}),Ns=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Bs=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Er(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(Ns);if(r===null||!r.length)return e;const i=[];let s=r.shift(),h=Bs.test(s);for(;;){if(h){const u=parseFloat(s);isNaN(u)?i.push(s):i.push(Math.ceil(u*t*n)/n)}else i.push(s);if(s=r.shift(),s===void 0)return i.join("");h=!h}}const $s=e=>e==="unset"||e==="undefined"||e==="none";function Us(e,t){const n={...Dn,...e},r={...pi,...t},i={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(k=>{const x=[],C=k.hFlip,R=k.vFlip;let T=k.rotate;C?R?T+=2:(x.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),x.push("scale(-1 1)"),i.top=i.left=0):R&&(x.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),x.push("scale(1 -1)"),i.top=i.left=0);let W;switch(T<0&&(T-=Math.floor(T/4)*4),T=T%4,T){case 1:W=i.height/2+i.top,x.unshift("rotate(90 "+W.toString()+" "+W.toString()+")");break;case 2:x.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:W=i.width/2+i.left,x.unshift("rotate(-90 "+W.toString()+" "+W.toString()+")");break}T%2===1&&(i.left!==i.top&&(W=i.left,i.left=i.top,i.top=W),i.width!==i.height&&(W=i.width,i.width=i.height,i.height=W)),x.length&&(s='<g transform="'+x.join(" ")+'">'+s+"</g>")});const h=r.width,u=r.height,p=i.width,g=i.height;let m,v;h===null?(v=u===null?"1em":u==="auto"?g:u,m=Er(v,p/g)):(m=h==="auto"?p:h,v=u===null?Er(m,g/p):u==="auto"?g:u);const j={},w=(k,x)=>{$s(x)||(j[k]=x.toString())};return w("width",m),w("height",v),j.viewBox=i.left.toString()+" "+i.top.toString()+" "+p.toString()+" "+g.toString(),{attributes:j,body:s}}const Ks=/\sid="(\S+)"/g,Hs="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Vs=0;function qs(e,t=Hs){const n=[];let r;for(;r=Ks.exec(e);)n.push(r[1]);if(!n.length)return e;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const h=typeof t=="function"?t(s):t+(Vs++).toString(),u=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+u+')([")]|\\.[a-z])',"g"),"$1"+h+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}const vn=Object.create(null);function Gs(e,t){vn[e]=t}function xn(e){return vn[e]||vn[""]}function Fn(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Wn=Object.create(null),dt=["https://api.simplesvg.com","https://api.unisvg.com"],Dt=[];for(;dt.length>0;)dt.length===1||Math.random()>.5?Dt.push(dt.shift()):Dt.push(dt.pop());Wn[""]=Fn({resources:["https://api.iconify.design"].concat(Dt)});function Xs(e,t){const n=Fn(t);return n===null?!1:(Wn[e]=n,!0)}function An(e){return Wn[e]}const Ys=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Ir=Ys();function Qs(e,t){const n=An(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let i=0;n.resources.forEach(h=>{i=Math.max(i,h.length)});const s=t+".json?icons=";r=n.maxURL-i-n.path.length-s.length}return r}function Js(e){return e===404}const Zs=(e,t,n)=>{const r=[],i=Qs(e,t),s="icons";let h={type:s,provider:e,prefix:t,icons:[]},u=0;return n.forEach((p,g)=>{u+=p.length+1,u>=i&&g>0&&(r.push(h),h={type:s,provider:e,prefix:t,icons:[]},u=p.length),h.icons.push(p)}),r.push(h),r};function ea(e){if(typeof e=="string"){const t=An(e);if(t)return t.path}return"/"}const ta=(e,t,n)=>{if(!Ir){n("abort",424);return}let r=ea(t.provider);switch(t.type){case"icons":{const s=t.prefix,u=t.icons.join(","),p=new URLSearchParams({icons:u});r+=s+".json?"+p.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let i=503;Ir(e+r).then(s=>{const h=s.status;if(h!==200){setTimeout(()=>{n(Js(h)?"abort":"next",h)});return}return i=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",i)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",i)})},na={prepare:Zs,send:ta};function ra(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((i,s)=>i.provider!==s.provider?i.provider.localeCompare(s.provider):i.prefix!==s.prefix?i.prefix.localeCompare(s.prefix):i.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(i=>{if(r.name===i.name&&r.prefix===i.prefix&&r.provider===i.provider)return;r=i;const s=i.provider,h=i.prefix,u=i.name,p=n[s]||(n[s]=Object.create(null)),g=p[h]||(p[h]=He(s,h));let m;u in g.icons?m=t.loaded:h===""||g.missing.has(u)?m=t.missing:m=t.pending;const v={provider:s,prefix:h,name:u};m.push(v)}),t}function mi(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(i=>i.id!==t))})}function ia(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,i=e.prefix;t.forEach(s=>{const h=s.icons,u=h.pending.length;h.pending=h.pending.filter(p=>{if(p.prefix!==i)return!0;const g=p.name;if(e.icons[g])h.loaded.push({provider:r,prefix:i,name:g});else if(e.missing.has(g))h.missing.push({provider:r,prefix:i,name:g});else return n=!0,!0;return!1}),h.pending.length!==u&&(n||mi([e],s.id),s.callback(h.loaded.slice(0),h.missing.slice(0),h.pending.slice(0),s.abort))})}))}let oa=0;function sa(e,t,n){const r=oa++,i=mi.bind(null,n,r);if(!t.pending.length)return i;const s={id:r,icons:t,callback:e,abort:i};return n.forEach(h=>{(h.loaderCallbacks||(h.loaderCallbacks=[])).push(s)}),i}function aa(e,t=!0,n=!1){const r=[];return e.forEach(i=>{const s=typeof i=="string"?Ut(i,t,n):i;s&&r.push(s)}),r}var la={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function ca(e,t,n,r){const i=e.resources.length,s=e.random?Math.floor(Math.random()*i):e.index;let h;if(e.random){let A=e.resources.slice(0);for(h=[];A.length>1;){const V=Math.floor(Math.random()*A.length);h.push(A[V]),A=A.slice(0,V).concat(A.slice(V+1))}h=h.concat(A)}else h=e.resources.slice(s).concat(e.resources.slice(0,s));const u=Date.now();let p="pending",g=0,m,v=null,j=[],w=[];typeof r=="function"&&w.push(r);function k(){v&&(clearTimeout(v),v=null)}function x(){p==="pending"&&(p="aborted"),k(),j.forEach(A=>{A.status==="pending"&&(A.status="aborted")}),j=[]}function C(A,V){V&&(w=[]),typeof A=="function"&&w.push(A)}function R(){return{startTime:u,payload:t,status:p,queriesSent:g,queriesPending:j.length,subscribe:C,abort:x}}function T(){p="failed",w.forEach(A=>{A(void 0,m)})}function W(){j.forEach(A=>{A.status==="pending"&&(A.status="aborted")}),j=[]}function X(A,V,Z){const re=V!=="success";switch(j=j.filter($=>$!==A),p){case"pending":break;case"failed":if(re||!e.dataAfterTimeout)return;break;default:return}if(V==="abort"){m=Z,T();return}if(re){m=Z,j.length||(h.length?J():T());return}if(k(),W(),!e.random){const $=e.resources.indexOf(A.resource);$!==-1&&$!==e.index&&(e.index=$)}p="completed",w.forEach($=>{$(Z)})}function J(){if(p!=="pending")return;k();const A=h.shift();if(A===void 0){if(j.length){v=setTimeout(()=>{k(),p==="pending"&&(W(),T())},e.timeout);return}T();return}const V={status:"pending",resource:A,callback:(Z,re)=>{X(V,Z,re)}};j.push(V),g++,v=setTimeout(J,e.rotate),n(A,t,V.callback)}return setTimeout(J),R}function gi(e){const t={...la,...e};let n=[];function r(){n=n.filter(u=>u().status==="pending")}function i(u,p,g){const m=ca(t,u,p,(v,j)=>{r(),g&&g(v,j)});return n.push(m),m}function s(u){return n.find(p=>u(p))||null}return{query:i,find:s,setIndex:u=>{t.index=u},getIndex:()=>t.index,cleanup:r}}function Pr(){}const on=Object.create(null);function ua(e){if(!on[e]){const t=An(e);if(!t)return;const n=gi(t),r={config:t,redundancy:n};on[e]=r}return on[e]}function da(e,t,n){let r,i;if(typeof e=="string"){const s=xn(e);if(!s)return n(void 0,424),Pr;i=s.send;const h=ua(e);h&&(r=h.redundancy)}else{const s=Fn(e);if(s){r=gi(s);const h=e.resources?e.resources[0]:"",u=xn(h);u&&(i=u.send)}}return!r||!i?(n(void 0,424),Pr):r.query(t,i,n)().abort}const Rr="iconify2",yt="iconify",bi=yt+"-count",_r=yt+"-version",yi=36e5,ha=168;function wn(e,t){try{return e.getItem(t)}catch{}}function Nn(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Mr(e,t){try{e.removeItem(t)}catch{}}function Sn(e,t){return Nn(e,bi,t.toString())}function kn(e){return parseInt(wn(e,bi))||0}const Kt={local:!0,session:!0},vi={local:new Set,session:new Set};let Bn=!1;function fa(e){Bn=e}let It=typeof window>"u"?{}:window;function xi(e){const t=e+"Storage";try{if(It&&It[t]&&typeof It[t].length=="number")return It[t]}catch{}Kt[e]=!1}function wi(e,t){const n=xi(e);if(!n)return;const r=wn(n,_r);if(r!==Rr){if(r){const u=kn(n);for(let p=0;p<u;p++)Mr(n,yt+p.toString())}Nn(n,_r,Rr),Sn(n,0);return}const i=Math.floor(Date.now()/yi)-ha,s=u=>{const p=yt+u.toString(),g=wn(n,p);if(typeof g=="string"){try{const m=JSON.parse(g);if(typeof m=="object"&&typeof m.cached=="number"&&m.cached>i&&typeof m.provider=="string"&&typeof m.data=="object"&&typeof m.data.prefix=="string"&&t(m,u))return!0}catch{}Mr(n,p)}};let h=kn(n);for(let u=h-1;u>=0;u--)s(u)||(u===h-1?(h--,Sn(n,h)):vi[e].add(u))}function Si(){if(!Bn){fa(!0);for(const e in Kt)wi(e,t=>{const n=t.data,r=t.provider,i=n.prefix,s=He(r,i);if(!zn(s,n).length)return!1;const h=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,h):h,!0})}}function pa(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in Kt)wi(r,i=>{const s=i.data;return i.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function ma(e,t){Bn||Si();function n(r){let i;if(!Kt[r]||!(i=xi(r)))return;const s=vi[r];let h;if(s.size)s.delete(h=Array.from(s).shift());else if(h=kn(i),!Sn(i,h+1))return;const u={cached:Math.floor(Date.now()/yi),provider:e.provider,data:t};return Nn(i,yt+h.toString(),JSON.stringify(u))}t.lastModified&&!pa(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Lr(){}function ga(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,ia(e)}))}function ba(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,i=e.iconsToLoad;delete e.iconsToLoad;let s;if(!i||!(s=xn(n)))return;s.prepare(n,r,i).forEach(u=>{da(n,u,p=>{if(typeof p!="object")u.icons.forEach(g=>{e.missing.add(g)});else try{const g=zn(e,p);if(!g.length)return;const m=e.pendingIcons;m&&g.forEach(v=>{m.delete(v)}),ma(e,p)}catch(g){console.error(g)}ga(e)})})}))}const ya=(e,t)=>{const n=aa(e,!0,hi()),r=ra(n);if(!r.pending.length){let p=!0;return t&&setTimeout(()=>{p&&t(r.loaded,r.missing,r.pending,Lr)}),()=>{p=!1}}const i=Object.create(null),s=[];let h,u;return r.pending.forEach(p=>{const{provider:g,prefix:m}=p;if(m===u&&g===h)return;h=g,u=m,s.push(He(g,m));const v=i[g]||(i[g]=Object.create(null));v[m]||(v[m]=[])}),r.pending.forEach(p=>{const{provider:g,prefix:m,name:v}=p,j=He(g,m),w=j.pendingIcons||(j.pendingIcons=new Set);w.has(v)||(w.add(v),i[g][m].push(v))}),s.forEach(p=>{const{provider:g,prefix:m}=p;i[g][m].length&&ba(p,i[g][m])}),t?sa(t,r,s):Lr};function va(e,t){const n={...e};for(const r in t){const i=t[r],s=typeof i;r in fi?(i===null||i&&(s==="string"||s==="number"))&&(n[r]=i):s===typeof n[r]&&(n[r]=r==="rotate"?i%4:i)}return n}const xa=/[\s,]+/;function wa(e,t){t.split(xa).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function Sa(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(i){for(;i<0;)i+=4;return i%4}if(n===""){const i=parseInt(e);return isNaN(i)?0:r(i)}else if(n!==e){let i=0;switch(n){case"%":i=25;break;case"deg":i=90}if(i){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/i,s%1===0?r(s):0)}}return t}function ka(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function ja(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Ta(e){return"data:image/svg+xml,"+ja(e)}function Oa(e){return'url("'+Ta(e)+'")'}let mt;function Ca(){try{mt=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{mt=null}}function Ea(e){return mt===void 0&&Ca(),mt?mt.createHTML(e):e}const ki={...pi,inline:!1},Ia={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Pa={display:"inline-block"},jn={backgroundColor:"currentColor"},ji={backgroundColor:"transparent"},Dr={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},zr={WebkitMask:jn,mask:jn,background:ji};for(const e in zr){const t=zr[e];for(const n in Dr)t[e+n]=Dr[n]}const Ra={...ki,inline:!0};function Fr(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const _a=(e,t,n,r)=>{const i=n?Ra:ki,s=va(i,t),h=t.mode||"svg",u={},p=t.style||{},g={...h==="svg"?Ia:{},ref:r};for(let R in t){const T=t[R];if(T!==void 0)switch(R){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":s[R]=T===!0||T==="true"||T===1;break;case"flip":typeof T=="string"&&wa(s,T);break;case"color":u.color=T;break;case"rotate":typeof T=="string"?s[R]=Sa(T):typeof T=="number"&&(s[R]=T);break;case"ariaHidden":case"aria-hidden":T!==!0&&T!=="true"&&delete g["aria-hidden"];break;default:i[R]===void 0&&(g[R]=T)}}const m=Us(e,s),v=m.attributes;if(s.inline&&(u.verticalAlign="-0.125em"),h==="svg"){g.style={...u,...p},Object.assign(g,v);let R=0,T=t.id;return typeof T=="string"&&(T=T.replace(/-/g,"_")),g.dangerouslySetInnerHTML={__html:Ea(qs(m.body,T?()=>T+"ID"+R++:"iconifyReact"))},We.createElement("svg",g)}const{body:j,width:w,height:k}=e,x=h==="mask"||(h==="bg"?!1:j.indexOf("currentColor")!==-1),C=ka(j,{...v,width:w+"",height:k+""});return g.style={...u,"--svg":Oa(C),width:Fr(v.width),height:Fr(v.height),...Pa,...x?jn:ji,...p},We.createElement("span",g)};hi(!0);Gs("",na);if(typeof document<"u"&&typeof window<"u"){Si();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!As(r))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const r="IconifyProviders["+n+"] is invalid.";try{const i=t[n];if(typeof i!="object"||!i||i.resources===void 0)continue;Xs(n,i)||console.error(r)}catch{console.error(r)}}}}class Ti extends We.Component{constructor(t){super(t),this.state={icon:null}}_abortLoading(){this._loading&&(this._loading.abort(),this._loading=null)}_setData(t){this.state.icon!==t&&this.setState({icon:t})}_checkIcon(t){const n=this.state,r=this.props.icon;if(typeof r=="object"&&r!==null&&typeof r.body=="string"){this._icon="",this._abortLoading(),(t||n.icon===null)&&this._setData({data:r});return}let i;if(typeof r!="string"||(i=Ut(r,!1,!0))===null){this._abortLoading(),this._setData(null);return}const s=Fs(i);if(!s){(!this._loading||this._loading.name!==r)&&(this._abortLoading(),this._icon="",this._setData(null),s!==null&&(this._loading={name:r,abort:ya([i],this._checkIcon.bind(this,!1))}));return}if(this._icon!==r||n.icon===null){this._abortLoading(),this._icon=r;const h=["iconify"];i.prefix!==""&&h.push("iconify--"+i.prefix),i.provider!==""&&h.push("iconify--"+i.provider),this._setData({data:s,classes:h}),this.props.onLoad&&this.props.onLoad(r)}}componentDidMount(){this._checkIcon(!1)}componentDidUpdate(t){t.icon!==this.props.icon&&this._checkIcon(!0)}componentWillUnmount(){this._abortLoading()}render(){const t=this.props,n=this.state.icon;if(n===null)return t.children?t.children:We.createElement("span",{});let r=t;return n.classes&&(r={...t,className:(typeof t.className=="string"?t.className+" ":"")+n.classes.join(" ")}),_a({...Dn,...n.data},r,t._inline,t._ref)}}const Le=We.forwardRef(function(t,n){const r={...t,_ref:n,_inline:!1};return We.createElement(Ti,r)});We.forwardRef(function(t,n){const r={...t,_ref:n,_inline:!0};return We.createElement(Ti,r)});const Oi={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 18a3.5 3.5 0 0 0 0-7h-1A5 4.5 0 0 0 7 9a4.6 4.4 0 0 0-2.1 8.4M12 13v9m-3-3l3 3l3-3"/>'};var zt={exports:{}},Ma=zt.exports,Wr;function La(){return Wr||(Wr=1,function(e,t){(function(n,r){e.exports=r(So())})(Ma,n=>(()=>{var r={703:(u,p,g)=>{var m=g(414);function v(){}function j(){}j.resetWarningCache=v,u.exports=function(){function w(C,R,T,W,X,J){if(J!==m){var A=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw A.name="Invariant Violation",A}}function k(){return w}w.isRequired=w;var x={array:w,bool:w,func:w,number:w,object:w,string:w,symbol:w,any:w,arrayOf:k,element:w,elementType:w,instanceOf:k,node:w,objectOf:k,oneOf:k,oneOfType:k,shape:k,exact:k,checkPropTypes:j,resetWarningCache:v};return x.PropTypes=x,x}},697:(u,p,g)=>{u.exports=g(703)()},414:u=>{u.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},590:u=>{var p=typeof Element<"u",g=typeof Map=="function",m=typeof Set=="function",v=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function j(w,k){if(w===k)return!0;if(w&&k&&typeof w=="object"&&typeof k=="object"){if(w.constructor!==k.constructor)return!1;var x,C,R,T;if(Array.isArray(w)){if((x=w.length)!=k.length)return!1;for(C=x;C--!=0;)if(!j(w[C],k[C]))return!1;return!0}if(g&&w instanceof Map&&k instanceof Map){if(w.size!==k.size)return!1;for(T=w.entries();!(C=T.next()).done;)if(!k.has(C.value[0]))return!1;for(T=w.entries();!(C=T.next()).done;)if(!j(C.value[1],k.get(C.value[0])))return!1;return!0}if(m&&w instanceof Set&&k instanceof Set){if(w.size!==k.size)return!1;for(T=w.entries();!(C=T.next()).done;)if(!k.has(C.value[0]))return!1;return!0}if(v&&ArrayBuffer.isView(w)&&ArrayBuffer.isView(k)){if((x=w.length)!=k.length)return!1;for(C=x;C--!=0;)if(w[C]!==k[C])return!1;return!0}if(w.constructor===RegExp)return w.source===k.source&&w.flags===k.flags;if(w.valueOf!==Object.prototype.valueOf)return w.valueOf()===k.valueOf();if(w.toString!==Object.prototype.toString)return w.toString()===k.toString();if((x=(R=Object.keys(w)).length)!==Object.keys(k).length)return!1;for(C=x;C--!=0;)if(!Object.prototype.hasOwnProperty.call(k,R[C]))return!1;if(p&&w instanceof Element)return!1;for(C=x;C--!=0;)if((R[C]!=="_owner"&&R[C]!=="__v"&&R[C]!=="__o"||!w.$$typeof)&&!j(w[R[C]],k[R[C]]))return!1;return!0}return w!=w&&k!=k}u.exports=function(w,k){try{return j(w,k)}catch(x){if((x.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw x}}},359:u=>{u.exports=n}},i={};function s(u){var p=i[u];if(p!==void 0)return p.exports;var g=i[u]={exports:{}};return r[u](g,g.exports,s),g.exports}s.n=u=>{var p=u&&u.__esModule?()=>u.default:()=>u;return s.d(p,{a:p}),p},s.d=(u,p)=>{for(var g in p)s.o(p,g)&&!s.o(u,g)&&Object.defineProperty(u,g,{enumerable:!0,get:p[g]})},s.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),s.o=(u,p)=>Object.prototype.hasOwnProperty.call(u,p),s.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var h={};return(()=>{function u(d){var a,f,b="";if(typeof d=="string"||typeof d=="number")b+=d;else if(typeof d=="object")if(Array.isArray(d))for(a=0;a<d.length;a++)d[a]&&(f=u(d[a]))&&(b&&(b+=" "),b+=f);else for(a in d)d[a]&&(b&&(b+=" "),b+=a);return b}function p(){for(var d,a,f=0,b="";f<arguments.length;)(d=arguments[f++])&&(a=u(d))&&(b&&(b+=" "),b+=a);return b}s.r(h),s.d(h,{default:()=>go});var g=s(359),m=s.n(g);const v=function(d){var a=typeof d;return d!=null&&(a=="object"||a=="function")},j=typeof Ct=="object"&&Ct&&Ct.Object===Object&&Ct;var w=typeof self=="object"&&self&&self.Object===Object&&self;const k=j||w||Function("return this")(),x=function(){return k.Date.now()};var C=/\s/,R=/^\s+/;const T=function(d){return d&&d.slice(0,function(a){for(var f=a.length;f--&&C.test(a.charAt(f)););return f}(d)+1).replace(R,"")},W=k.Symbol;var X=Object.prototype,J=X.hasOwnProperty,A=X.toString,V=W?W.toStringTag:void 0,Z=Object.prototype.toString,re=W?W.toStringTag:void 0;const $=function(d){return d==null?d===void 0?"[object Undefined]":"[object Null]":re&&re in Object(d)?function(a){var f=J.call(a,V),b=a[V];try{a[V]=void 0;var I=!0}catch{}var N=A.call(a);return I&&(f?a[V]=b:delete a[V]),N}(d):function(a){return Z.call(a)}(d)};var Ee=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,Se=/^0o[0-7]+$/i,pe=parseInt;const be=function(d){if(typeof d=="number")return d;if(function(b){return typeof b=="symbol"||function(I){return I!=null&&typeof I=="object"}(b)&&$(b)=="[object Symbol]"}(d))return NaN;if(v(d)){var a=typeof d.valueOf=="function"?d.valueOf():d;d=v(a)?a+"":a}if(typeof d!="string")return d===0?d:+d;d=T(d);var f=ge.test(d);return f||Se.test(d)?pe(d.slice(2),f?2:8):Ee.test(d)?NaN:+d};var D=Math.max,ae=Math.min;const Te=function(d,a,f){var b,I,N,Y,c,l,y=0,O=!1,P=!1,E=!0;if(typeof d!="function")throw new TypeError("Expected a function");function K(B){var G=b,te=I;return b=I=void 0,y=B,Y=d.apply(te,G)}function U(B){return y=B,c=setTimeout(M,a),O?K(B):Y}function q(B){var G=B-l;return l===void 0||G>=a||G<0||P&&B-y>=N}function M(){var B=x();if(q(B))return z(B);c=setTimeout(M,function(G){var te=a-(G-l);return P?ae(te,N-(G-y)):te}(B))}function z(B){return c=void 0,E&&b?K(B):(b=I=void 0,Y)}function F(){var B=x(),G=q(B);if(b=arguments,I=this,l=B,G){if(c===void 0)return U(l);if(P)return clearTimeout(c),c=setTimeout(M,a),K(l)}return c===void 0&&(c=setTimeout(M,a)),Y}return a=be(a)||0,v(f)&&(O=!!f.leading,N=(P="maxWait"in f)?D(be(f.maxWait)||0,a):N,E="trailing"in f?!!f.trailing:E),F.cancel=function(){c!==void 0&&clearTimeout(c),y=0,b=l=I=c=void 0},F.flush=function(){return c===void 0?Y:z(x())},F},ue=function(d,a,f){var b=!0,I=!0;if(typeof d!="function")throw new TypeError("Expected a function");return v(f)&&(b="leading"in f?!!f.leading:b,I="trailing"in f?!!f.trailing:I),Te(d,a,{leading:b,maxWait:a,trailing:I})};var ie=s(590),ee=s.n(ie),me=function(){if(typeof Map<"u")return Map;function d(a,f){var b=-1;return a.some(function(I,N){return I[0]===f&&(b=N,!0)}),b}return function(){function a(){this.__entries__=[]}return Object.defineProperty(a.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),a.prototype.get=function(f){var b=d(this.__entries__,f),I=this.__entries__[b];return I&&I[1]},a.prototype.set=function(f,b){var I=d(this.__entries__,f);~I?this.__entries__[I][1]=b:this.__entries__.push([f,b])},a.prototype.delete=function(f){var b=this.__entries__,I=d(b,f);~I&&b.splice(I,1)},a.prototype.has=function(f){return!!~d(this.__entries__,f)},a.prototype.clear=function(){this.__entries__.splice(0)},a.prototype.forEach=function(f,b){b===void 0&&(b=null);for(var I=0,N=this.__entries__;I<N.length;I++){var Y=N[I];f.call(b,Y[1],Y[0])}},a}()}(),Ie=typeof window<"u"&&typeof document<"u"&&window.document===document,Pe=s.g!==void 0&&s.g.Math===Math?s.g:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")(),wt=typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Pe):function(d){return setTimeout(function(){return d(Date.now())},1e3/60)},Hi=["top","right","bottom","left","width","height","size","weight"],Vi=typeof MutationObserver<"u",qi=function(){function d(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(a,f){var b=!1,I=!1,N=0;function Y(){b&&(b=!1,a()),I&&l()}function c(){wt(Y)}function l(){var y=Date.now();if(b){if(y-N<2)return;I=!0}else b=!0,I=!1,setTimeout(c,20);N=y}return l}(this.refresh.bind(this))}return d.prototype.addObserver=function(a){~this.observers_.indexOf(a)||this.observers_.push(a),this.connected_||this.connect_()},d.prototype.removeObserver=function(a){var f=this.observers_,b=f.indexOf(a);~b&&f.splice(b,1),!f.length&&this.connected_&&this.disconnect_()},d.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},d.prototype.updateObservers_=function(){var a=this.observers_.filter(function(f){return f.gatherActive(),f.hasActive()});return a.forEach(function(f){return f.broadcastActive()}),a.length>0},d.prototype.connect_=function(){Ie&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Vi?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},d.prototype.disconnect_=function(){Ie&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},d.prototype.onTransitionEnd_=function(a){var f=a.propertyName,b=f===void 0?"":f;Hi.some(function(I){return!!~b.indexOf(I)})&&this.refresh()},d.getInstance=function(){return this.instance_||(this.instance_=new d),this.instance_},d.instance_=null,d}(),qn=function(d,a){for(var f=0,b=Object.keys(a);f<b.length;f++){var I=b[f];Object.defineProperty(d,I,{value:a[I],enumerable:!1,writable:!1,configurable:!0})}return d},Ge=function(d){return d&&d.ownerDocument&&d.ownerDocument.defaultView||Pe},Gn=kt(0,0,0,0);function St(d){return parseFloat(d)||0}function Xn(d){for(var a=[],f=1;f<arguments.length;f++)a[f-1]=arguments[f];return a.reduce(function(b,I){return b+St(d["border-"+I+"-width"])},0)}var Gi=typeof SVGGraphicsElement<"u"?function(d){return d instanceof Ge(d).SVGGraphicsElement}:function(d){return d instanceof Ge(d).SVGElement&&typeof d.getBBox=="function"};function Xi(d){return Ie?Gi(d)?function(a){var f=a.getBBox();return kt(0,0,f.width,f.height)}(d):function(a){var f=a.clientWidth,b=a.clientHeight;if(!f&&!b)return Gn;var I=Ge(a).getComputedStyle(a),N=function(E){for(var K={},U=0,q=["top","right","bottom","left"];U<q.length;U++){var M=q[U],z=E["padding-"+M];K[M]=St(z)}return K}(I),Y=N.left+N.right,c=N.top+N.bottom,l=St(I.width),y=St(I.height);if(I.boxSizing==="border-box"&&(Math.round(l+Y)!==f&&(l-=Xn(I,"left","right")+Y),Math.round(y+c)!==b&&(y-=Xn(I,"top","bottom")+c)),!function(E){return E===Ge(E).document.documentElement}(a)){var O=Math.round(l+Y)-f,P=Math.round(y+c)-b;Math.abs(O)!==1&&(l-=O),Math.abs(P)!==1&&(y-=P)}return kt(N.left,N.top,l,y)}(d):Gn}function kt(d,a,f,b){return{x:d,y:a,width:f,height:b}}var Yi=function(){function d(a){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=kt(0,0,0,0),this.target=a}return d.prototype.isActive=function(){var a=Xi(this.target);return this.contentRect_=a,a.width!==this.broadcastWidth||a.height!==this.broadcastHeight},d.prototype.broadcastRect=function(){var a=this.contentRect_;return this.broadcastWidth=a.width,this.broadcastHeight=a.height,a},d}(),Qi=function(d,a){var f,b,I,N,Y,c,l,y=(b=(f=a).x,I=f.y,N=f.width,Y=f.height,c=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,l=Object.create(c.prototype),qn(l,{x:b,y:I,width:N,height:Y,top:I,right:b+N,bottom:Y+I,left:b}),l);qn(this,{target:d,contentRect:y})},Ji=function(){function d(a,f,b){if(this.activeObservations_=[],this.observations_=new me,typeof a!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=a,this.controller_=f,this.callbackCtx_=b}return d.prototype.observe=function(a){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(typeof Element<"u"&&Element instanceof Object){if(!(a instanceof Ge(a).Element))throw new TypeError('parameter 1 is not of type "Element".');var f=this.observations_;f.has(a)||(f.set(a,new Yi(a)),this.controller_.addObserver(this),this.controller_.refresh())}},d.prototype.unobserve=function(a){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(typeof Element<"u"&&Element instanceof Object){if(!(a instanceof Ge(a).Element))throw new TypeError('parameter 1 is not of type "Element".');var f=this.observations_;f.has(a)&&(f.delete(a),f.size||this.controller_.removeObserver(this))}},d.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},d.prototype.gatherActive=function(){var a=this;this.clearActive(),this.observations_.forEach(function(f){f.isActive()&&a.activeObservations_.push(f)})},d.prototype.broadcastActive=function(){if(this.hasActive()){var a=this.callbackCtx_,f=this.activeObservations_.map(function(b){return new Qi(b.target,b.broadcastRect())});this.callback_.call(a,f,a),this.clearActive()}},d.prototype.clearActive=function(){this.activeObservations_.splice(0)},d.prototype.hasActive=function(){return this.activeObservations_.length>0},d}(),Yn=typeof WeakMap<"u"?new WeakMap:new me,Qn=function d(a){if(!(this instanceof d))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var f=qi.getInstance(),b=new Ji(a,f,this);Yn.set(this,b)};["observe","unobserve","disconnect"].forEach(function(d){Qn.prototype[d]=function(){var a;return(a=Yn.get(this))[d].apply(a,arguments)}});const Jn=Pe.ResizeObserver!==void 0?Pe.ResizeObserver:Qn,Xe="Left",Be="Right",Ye="Up",$e="Down",Qe={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},Vt={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},Zn="mousemove",er="mouseup";function tr(d,a){if(a===0)return d;const f=Math.PI/180*a;return[d[0]*Math.cos(f)+d[1]*Math.sin(f),d[1]*Math.cos(f)-d[0]*Math.sin(f)]}function Zi(d){const{trackMouse:a}=d,f=g.useRef(Object.assign({},Vt)),b=g.useRef(Object.assign({},Qe)),I=g.useRef(Object.assign({},b.current));let N;for(N in I.current=Object.assign({},b.current),b.current=Object.assign(Object.assign({},Qe),d),Qe)b.current[N]===void 0&&(b.current[N]=Qe[N]);const[Y,c]=g.useMemo(()=>function(l,y){const O=M=>{const z="touches"in M;z&&M.touches.length>1||l((F,B)=>{B.trackMouse&&!z&&(document.addEventListener(Zn,P),document.addEventListener(er,K));const{clientX:G,clientY:te}=z?M.touches[0]:M,le=tr([G,te],B.rotationAngle);return B.onTouchStartOrOnMouseDown&&B.onTouchStartOrOnMouseDown({event:M}),Object.assign(Object.assign(Object.assign({},F),Vt),{initial:le.slice(),xy:le,start:M.timeStamp||0})})},P=M=>{l((z,F)=>{const B="touches"in M;if(B&&M.touches.length>1)return z;if(M.timeStamp-z.start>F.swipeDuration)return z.swiping?Object.assign(Object.assign({},z),{swiping:!1}):z;const{clientX:G,clientY:te}=B?M.touches[0]:M,[le,we]=tr([G,te],F.rotationAngle),ye=le-z.xy[0],he=we-z.xy[1],se=Math.abs(ye),ne=Math.abs(he),De=(M.timeStamp||0)-z.start,at=Math.sqrt(se*se+ne*ne)/(De||1),lt=[ye/(De||1),he/(De||1)],Me=function(ct,et,ut,ke){return ct>et?ut>0?Be:Xe:ke>0?$e:Ye}(se,ne,ye,he),Ue=typeof F.delta=="number"?F.delta:F.delta[Me.toLowerCase()]||Qe.delta;if(se<Ue&&ne<Ue&&!z.swiping)return z;const Re={absX:se,absY:ne,deltaX:ye,deltaY:he,dir:Me,event:M,first:z.first,initial:z.initial,velocity:at,vxvy:lt};Re.first&&F.onSwipeStart&&F.onSwipeStart(Re),F.onSwiping&&F.onSwiping(Re);let Ze=!1;return(F.onSwiping||F.onSwiped||F[`onSwiped${Me}`])&&(Ze=!0),Ze&&F.preventScrollOnSwipe&&F.trackTouch&&M.cancelable&&M.preventDefault(),Object.assign(Object.assign({},z),{first:!1,eventData:Re,swiping:!0})})},E=M=>{l((z,F)=>{let B;if(z.swiping&&z.eventData){if(M.timeStamp-z.start<F.swipeDuration){B=Object.assign(Object.assign({},z.eventData),{event:M}),F.onSwiped&&F.onSwiped(B);const G=F[`onSwiped${B.dir}`];G&&G(B)}}else F.onTap&&F.onTap({event:M});return F.onTouchEndOrOnMouseUp&&F.onTouchEndOrOnMouseUp({event:M}),Object.assign(Object.assign(Object.assign({},z),Vt),{eventData:B})})},K=M=>{document.removeEventListener(Zn,P),document.removeEventListener(er,K),E(M)},U=(M,z)=>{let F=()=>{};if(M&&M.addEventListener){const B=Object.assign(Object.assign({},Qe.touchEventOptions),z.touchEventOptions),G=[["touchstart",O,B],["touchmove",P,Object.assign(Object.assign({},B),z.preventScrollOnSwipe?{passive:!1}:{})],["touchend",E,B]];G.forEach(([te,le,we])=>M.addEventListener(te,le,we)),F=()=>G.forEach(([te,le])=>M.removeEventListener(te,le))}return F},q={ref:M=>{M!==null&&l((z,F)=>{if(z.el===M)return z;const B={};return z.el&&z.el!==M&&z.cleanUpTouch&&(z.cleanUpTouch(),B.cleanUpTouch=void 0),F.trackTouch&&M&&(B.cleanUpTouch=U(M,F)),Object.assign(Object.assign(Object.assign({},z),{el:M}),B)})}};return y.trackMouse&&(q.onMouseDown=O),[q,U]}(l=>f.current=l(f.current,b.current),{trackMouse:a}),[a]);return f.current=function(l,y,O,P){return y.trackTouch&&l.el?l.cleanUpTouch?y.preventScrollOnSwipe!==O.preventScrollOnSwipe||y.touchEventOptions.passive!==O.touchEventOptions.passive?(l.cleanUpTouch(),Object.assign(Object.assign({},l),{cleanUpTouch:P(l.el,y)})):l:Object.assign(Object.assign({},l),{cleanUpTouch:P(l.el,y)}):(l.cleanUpTouch&&l.cleanUpTouch(),Object.assign(Object.assign({},l),{cleanUpTouch:void 0}))}(f.current,b.current,I.current,c),Y}var S=s(697);function it(d){return it=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},it(d)}function nr(d,a){var f=Object.keys(d);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(d);a&&(b=b.filter(function(I){return Object.getOwnPropertyDescriptor(d,I).enumerable})),f.push.apply(f,b)}return f}function rr(d){for(var a=1;a<arguments.length;a++){var f=arguments[a]!=null?arguments[a]:{};a%2?nr(Object(f),!0).forEach(function(b){eo(d,b,f[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(f)):nr(Object(f)).forEach(function(b){Object.defineProperty(d,b,Object.getOwnPropertyDescriptor(f,b))})}return d}function eo(d,a,f){return(a=function(b){var I=function(N,Y){if(it(N)!=="object"||N===null)return N;var c=N[Symbol.toPrimitive];if(c!==void 0){var l=c.call(N,Y);if(it(l)!=="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(N)}(b,"string");return it(I)==="symbol"?I:String(I)}(a))in d?Object.defineProperty(d,a,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[a]=f,d}var to={description:"",fullscreen:"",isFullscreen:!1,originalAlt:"",originalHeight:"",originalWidth:"",originalTitle:"",sizes:"",srcSet:"",loading:"eager"},qt=m().memo(function(d){var a=rr(rr({},to),d),f=a.description,b=a.fullscreen,I=a.handleImageLoaded,N=a.isFullscreen,Y=a.onImageError,c=a.original,l=a.originalAlt,y=a.originalHeight,O=a.originalWidth,P=a.originalTitle,E=a.sizes,K=a.srcSet,U=a.loading,q=N&&b||c;return m().createElement(m().Fragment,null,m().createElement("img",{className:"image-gallery-image",src:q,alt:l,srcSet:K,height:y,width:O,sizes:E,title:P,onLoad:function(M){return I(M,c)},onError:Y,loading:U}),f&&m().createElement("span",{className:"image-gallery-description"},f))});qt.displayName="Item",qt.propTypes={description:S.string,fullscreen:S.string,handleImageLoaded:S.func.isRequired,isFullscreen:S.bool,onImageError:S.func.isRequired,original:S.string.isRequired,originalAlt:S.string,originalHeight:S.string,originalWidth:S.string,originalTitle:S.string,sizes:S.string,srcSet:S.string,loading:S.string};const no=qt;function ot(d){return ot=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},ot(d)}function ir(d,a){var f=Object.keys(d);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(d);a&&(b=b.filter(function(I){return Object.getOwnPropertyDescriptor(d,I).enumerable})),f.push.apply(f,b)}return f}function or(d){for(var a=1;a<arguments.length;a++){var f=arguments[a]!=null?arguments[a]:{};a%2?ir(Object(f),!0).forEach(function(b){ro(d,b,f[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(f)):ir(Object(f)).forEach(function(b){Object.defineProperty(d,b,Object.getOwnPropertyDescriptor(f,b))})}return d}function ro(d,a,f){return(a=function(b){var I=function(N,Y){if(ot(N)!=="object"||N===null)return N;var c=N[Symbol.toPrimitive];if(c!==void 0){var l=c.call(N,Y);if(ot(l)!=="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(N)}(b,"string");return ot(I)==="symbol"?I:String(I)}(a))in d?Object.defineProperty(d,a,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[a]=f,d}var io={left:m().createElement("polyline",{points:"15 18 9 12 15 6"}),right:m().createElement("polyline",{points:"9 18 15 12 9 6"}),maximize:m().createElement("path",{d:"M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"}),minimize:m().createElement("path",{d:"M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3"}),play:m().createElement("polygon",{points:"5 3 19 12 5 21 5 3"}),pause:m().createElement(m().Fragment,null,m().createElement("rect",{x:"6",y:"4",width:"4",height:"16"}),m().createElement("rect",{x:"14",y:"4",width:"4",height:"16"}))},oo={strokeWidth:1,viewBox:"0 0 24 24"},sr=function(d){var a=or(or({},oo),d),f=a.strokeWidth,b=a.viewBox,I=a.icon;return m().createElement("svg",{className:"image-gallery-svg",xmlns:"http://www.w3.org/2000/svg",viewBox:b,fill:"none",stroke:"currentColor",strokeWidth:f,strokeLinecap:"round",strokeLinejoin:"round"},io[I])};sr.propTypes={strokeWidth:S.number,viewBox:S.string,icon:(0,S.oneOf)(["left","right","maximize","minimize","play","pause"]).isRequired};const jt=sr;var Gt=m().memo(function(d){var a=d.isFullscreen,f=d.onClick;return m().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-fullscreen-button",onClick:f,"aria-label":"Open Fullscreen"},m().createElement(jt,{strokeWidth:2,icon:a?"minimize":"maximize"}))});Gt.displayName="Fullscreen",Gt.propTypes={isFullscreen:S.bool.isRequired,onClick:S.func.isRequired};const so=Gt;var Xt=m().memo(function(d){var a=d.disabled,f=d.onClick;return m().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-left-nav",disabled:a,onClick:f,"aria-label":"Previous Slide"},m().createElement(jt,{icon:"left",viewBox:"6 0 12 24"}))});Xt.displayName="LeftNav",Xt.propTypes={disabled:S.bool.isRequired,onClick:S.func.isRequired};const ao=Xt;var Yt=m().memo(function(d){var a=d.disabled,f=d.onClick;return m().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-right-nav",disabled:a,onClick:f,"aria-label":"Next Slide"},m().createElement(jt,{icon:"right",viewBox:"6 0 12 24"}))});Yt.displayName="RightNav",Yt.propTypes={disabled:S.bool.isRequired,onClick:S.func.isRequired};const lo=Yt;var Qt=m().memo(function(d){var a=d.isPlaying,f=d.onClick;return m().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-play-button",onClick:f,"aria-label":"Play or Pause Slideshow"},m().createElement(jt,{strokeWidth:2,icon:a?"pause":"play"}))});Qt.displayName="PlayPause",Qt.propTypes={isPlaying:S.bool.isRequired,onClick:S.func.isRequired};const co=Qt;function st(d){return st=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},st(d)}function Jt(){return Jt=Object.assign?Object.assign.bind():function(d){for(var a=1;a<arguments.length;a++){var f=arguments[a];for(var b in f)Object.prototype.hasOwnProperty.call(f,b)&&(d[b]=f[b])}return d},Jt.apply(this,arguments)}function ar(d,a){var f=Object.keys(d);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(d);a&&(b=b.filter(function(I){return Object.getOwnPropertyDescriptor(d,I).enumerable})),f.push.apply(f,b)}return f}function lr(d){for(var a=1;a<arguments.length;a++){var f=arguments[a]!=null?arguments[a]:{};a%2?ar(Object(f),!0).forEach(function(b){uo(d,b,f[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(f)):ar(Object(f)).forEach(function(b){Object.defineProperty(d,b,Object.getOwnPropertyDescriptor(f,b))})}return d}function uo(d,a,f){return(a=function(b){var I=function(N,Y){if(st(N)!=="object"||N===null)return N;var c=N[Symbol.toPrimitive];if(c!==void 0){var l=c.call(N,Y);if(st(l)!=="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(N)}(b,"string");return st(I)==="symbol"?I:String(I)}(a))in d?Object.defineProperty(d,a,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[a]=f,d}var ho={className:"",delta:0,onSwiping:function(){},onSwiped:function(){}},cr=function(d){var a=lr(lr({},ho),d),f=a.children,b=a.className,I=Zi({delta:a.delta,onSwiping:a.onSwiping,onSwiped:a.onSwiped});return m().createElement("div",Jt({},I,{className:b}),f)};cr.propTypes={children:S.node.isRequired,className:S.string,delta:S.number,onSwiped:S.func,onSwiping:S.func};const ur=cr;function Je(d){return Je=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},Je(d)}function dr(d,a){var f=Object.keys(d);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(d);a&&(b=b.filter(function(I){return Object.getOwnPropertyDescriptor(d,I).enumerable})),f.push.apply(f,b)}return f}function hr(d){for(var a=1;a<arguments.length;a++){var f=arguments[a]!=null?arguments[a]:{};a%2?dr(Object(f),!0).forEach(function(b){fr(d,b,f[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(f)):dr(Object(f)).forEach(function(b){Object.defineProperty(d,b,Object.getOwnPropertyDescriptor(f,b))})}return d}function fo(d,a){for(var f=0;f<a.length;f++){var b=a[f];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(d,pr(b.key),b)}}function Zt(d,a){return Zt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,b){return f.__proto__=b,f},Zt(d,a)}function po(d,a){if(a&&(Je(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ce(d)}function ce(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function Tt(d){return Tt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},Tt(d)}function fr(d,a,f){return(a=pr(a))in d?Object.defineProperty(d,a,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[a]=f,d}function pr(d){var a=function(f,b){if(Je(f)!=="object"||f===null)return f;var I=f[Symbol.toPrimitive];if(I!==void 0){var N=I.call(f,b);if(Je(N)!=="object")return N;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(f)}(d,"string");return Je(a)==="symbol"?a:String(a)}var mr=["fullscreenchange","MSFullscreenChange","mozfullscreenchange","webkitfullscreenchange"],mo=(0,S.arrayOf)((0,S.shape)({srcSet:S.string,media:S.string}));function gr(d){var a=parseInt(d.keyCode||d.which||0,10);return a===66||a===62}var en=function(d){(function(c,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(l&&l.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),Object.defineProperty(c,"prototype",{writable:!1}),l&&Zt(c,l)})(Y,d);var a,f,b,I,N=(b=Y,I=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var c,l=Tt(b);if(I){var y=Tt(this).constructor;c=Reflect.construct(l,arguments,y)}else c=l.apply(this,arguments);return po(this,c)});function Y(c){var l;return function(y,O){if(!(y instanceof O))throw new TypeError("Cannot call a class as a function")}(this,Y),fr(ce(l=N.call(this,c)),"onBulletClick",function(y,O){var P=l.props,E=P.onBulletClick,K=P.items,U=l.state.currentIndex;y.target.blur(),U!==O&&(K.length===2?l.slideToIndexWithStyleReset(O,y):l.slideToIndex(O,y)),E&&E(y,O)}),l.state={currentIndex:c.startIndex,thumbsTranslate:0,thumbsSwipedTranslate:0,currentSlideOffset:0,galleryWidth:0,thumbnailsWrapperWidth:0,thumbnailsWrapperHeight:0,thumbsStyle:{transition:"all ".concat(c.slideDuration,"ms ease-out")},isFullscreen:!1,isSwipingThumbnail:!1,isPlaying:!1},l.loadedImages={},l.imageGallery=m().createRef(),l.thumbnailsWrapper=m().createRef(),l.thumbnails=m().createRef(),l.imageGallerySlideWrapper=m().createRef(),l.handleImageLoaded=l.handleImageLoaded.bind(ce(l)),l.handleKeyDown=l.handleKeyDown.bind(ce(l)),l.handleMouseDown=l.handleMouseDown.bind(ce(l)),l.handleResize=l.handleResize.bind(ce(l)),l.handleTouchMove=l.handleTouchMove.bind(ce(l)),l.handleOnSwiped=l.handleOnSwiped.bind(ce(l)),l.handleScreenChange=l.handleScreenChange.bind(ce(l)),l.handleSwiping=l.handleSwiping.bind(ce(l)),l.handleThumbnailSwiping=l.handleThumbnailSwiping.bind(ce(l)),l.handleOnThumbnailSwiped=l.handleOnThumbnailSwiped.bind(ce(l)),l.onThumbnailMouseLeave=l.onThumbnailMouseLeave.bind(ce(l)),l.handleImageError=l.handleImageError.bind(ce(l)),l.pauseOrPlay=l.pauseOrPlay.bind(ce(l)),l.renderThumbInner=l.renderThumbInner.bind(ce(l)),l.renderItem=l.renderItem.bind(ce(l)),l.slideLeft=l.slideLeft.bind(ce(l)),l.slideRight=l.slideRight.bind(ce(l)),l.toggleFullScreen=l.toggleFullScreen.bind(ce(l)),l.togglePlay=l.togglePlay.bind(ce(l)),l.unthrottledSlideToIndex=l.slideToIndex,l.slideToIndex=ue(l.unthrottledSlideToIndex,c.slideDuration,{trailing:!1}),c.lazyLoad&&(l.lazyLoaded=[]),l}return a=Y,f=[{key:"componentDidMount",value:function(){var c=this.props,l=c.autoPlay,y=c.useWindowKeyDown;l&&this.play(),y?window.addEventListener("keydown",this.handleKeyDown):this.imageGallery.current.addEventListener("keydown",this.handleKeyDown),window.addEventListener("mousedown",this.handleMouseDown),window.addEventListener("touchmove",this.handleTouchMove,{passive:!1}),this.initSlideWrapperResizeObserver(this.imageGallerySlideWrapper),this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper),this.addScreenChangeEvent()}},{key:"componentDidUpdate",value:function(c,l){var y=this.props,O=y.items,P=y.lazyLoad,E=y.slideDuration,K=y.slideInterval,U=y.startIndex,q=y.thumbnailPosition,M=y.showThumbnails,z=y.useWindowKeyDown,F=this.state,B=F.currentIndex,G=F.isPlaying,te=c.items.length!==O.length,le=!ee()(c.items,O),we=c.startIndex!==U,ye=c.thumbnailPosition!==q,he=c.showThumbnails!==M;K===c.slideInterval&&E===c.slideDuration||G&&(this.pause(),this.play()),ye&&(this.removeResizeObserver(),this.initSlideWrapperResizeObserver(this.imageGallerySlideWrapper),this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper)),he&&M&&this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper),he&&!M&&this.removeThumbnailsResizeObserver(),(te||he)&&this.handleResize(),l.currentIndex!==B&&this.slideThumbnailBar(),c.slideDuration!==E&&(this.slideToIndex=ue(this.unthrottledSlideToIndex,E,{trailing:!1})),!P||c.lazyLoad&&!le||(this.lazyLoaded=[]),z!==c.useWindowKeyDown&&(z?(this.imageGallery.current.removeEventListener("keydown",this.handleKeyDown),window.addEventListener("keydown",this.handleKeyDown)):(window.removeEventListener("keydown",this.handleKeyDown),this.imageGallery.current.addEventListener("keydown",this.handleKeyDown))),(we||le)&&this.setState({currentIndex:U,slideStyle:{transition:"none"}})}},{key:"componentWillUnmount",value:function(){var c=this.props.useWindowKeyDown;window.removeEventListener("mousedown",this.handleMouseDown),window.removeEventListener("touchmove",this.handleTouchMove),this.removeScreenChangeEvent(),this.removeResizeObserver(),this.playPauseIntervalId&&(window.clearInterval(this.playPauseIntervalId),this.playPauseIntervalId=null),this.transitionTimer&&window.clearTimeout(this.transitionTimer),c?window.removeEventListener("keydown",this.handleKeyDown):this.imageGallery.current.removeEventListener("keydown",this.handleKeyDown)}},{key:"onSliding",value:function(){var c=this,l=this.state,y=l.currentIndex,O=l.isTransitioning,P=this.props,E=P.onSlide,K=P.slideDuration;this.transitionTimer=window.setTimeout(function(){O&&(c.setState({isTransitioning:!O,isSwipingThumbnail:!1}),E&&E(y))},K+50)}},{key:"onThumbnailClick",value:function(c,l){var y=this.props,O=y.onThumbnailClick,P=y.items,E=this.state.currentIndex;c.target.parentNode.parentNode.blur(),E!==l&&(P.length===2?this.slideToIndexWithStyleReset(l,c):this.slideToIndex(l,c)),O&&O(c,l)}},{key:"onThumbnailMouseOver",value:function(c,l){var y=this;this.thumbnailMouseOverTimer&&(window.clearTimeout(this.thumbnailMouseOverTimer),this.thumbnailMouseOverTimer=null),this.thumbnailMouseOverTimer=window.setTimeout(function(){y.slideToIndex(l),y.pause()},300)}},{key:"onThumbnailMouseLeave",value:function(){if(this.thumbnailMouseOverTimer){var c=this.props.autoPlay;window.clearTimeout(this.thumbnailMouseOverTimer),this.thumbnailMouseOverTimer=null,c&&this.play()}}},{key:"setThumbsTranslate",value:function(c){this.setState({thumbsTranslate:c})}},{key:"setModalFullscreen",value:function(c){var l=this.props.onScreenChange;this.setState({modalFullscreen:c}),l&&l(c)}},{key:"getThumbsTranslate",value:function(c){var l,y=this.props,O=y.disableThumbnailScroll,P=y.items,E=this.state,K=E.thumbnailsWrapperWidth,U=E.thumbnailsWrapperHeight,q=this.thumbnails&&this.thumbnails.current;if(O)return 0;if(q){if(this.isThumbnailVertical()){if(q.scrollHeight<=U)return 0;l=q.scrollHeight-U}else{if(q.scrollWidth<=K||K<=0)return 0;l=q.scrollWidth-K}return c*(l/(P.length-1))}return 0}},{key:"getThumbnailPositionClassName",value:function(c){switch(c){case"left":c=" ".concat("image-gallery-thumbnails-left");break;case"right":c=" ".concat("image-gallery-thumbnails-right");break;case"bottom":c=" ".concat("image-gallery-thumbnails-bottom");break;case"top":c=" ".concat("image-gallery-thumbnails-top")}return c}},{key:"getAlignmentClassName",value:function(c){var l=this.state.currentIndex,y=this.props,O=y.infinite,P=y.items,E="",K="image-gallery-left",U="image-gallery-right";switch(c){case l-1:E=" ".concat(K);break;case l:E=" ".concat("image-gallery-center");break;case l+1:E=" ".concat(U)}return P.length>=3&&O&&(c===0&&l===P.length-1?E=" ".concat(U):c===P.length-1&&l===0&&(E=" ".concat(K))),E}},{key:"getTranslateXForTwoSlide",value:function(c){var l=this.state,y=l.currentIndex,O=l.currentSlideOffset,P=l.previousIndex,E=y!==P,K=c===0&&P===0,U=c===1&&P===1,q=c===0&&y===1,M=c===1&&y===0,z=O===0,F=-100*y+100*c+O;return O>0?this.direction="left":O<0&&(this.direction="right"),M&&O>0&&(F=-100+O),q&&O<0&&(F=100+O),E?K&&z&&this.direction==="left"?F=100:U&&z&&this.direction==="right"&&(F=-100):(M&&z&&this.direction==="left"&&(F=-100),q&&z&&this.direction==="right"&&(F=100)),F}},{key:"getThumbnailBarHeight",value:function(){return this.isThumbnailVertical()?{height:this.state.gallerySlideWrapperHeight}:{}}},{key:"getSlideStyle",value:function(c){var l=this.state,y=l.currentIndex,O=l.currentSlideOffset,P=l.slideStyle,E=this.props,K=E.infinite,U=E.items,q=E.useTranslate3D,M=E.isRTL,z=-100*y,F=U.length-1,B=(z+100*c)*(M?-1:1)+O;K&&U.length>2&&(y===0&&c===F?B=-100*(M?-1:1)+O:y===F&&c===0&&(B=100*(M?-1:1)+O)),K&&U.length===2&&(B=this.getTranslateXForTwoSlide(c));var G="translate(".concat(B,"%, 0)");return q&&(G="translate3d(".concat(B,"%, 0, 0)")),hr({display:this.isSlideVisible(c)?"inherit":"none",WebkitTransform:G,MozTransform:G,msTransform:G,OTransform:G,transform:G},P)}},{key:"getCurrentIndex",value:function(){return this.state.currentIndex}},{key:"getThumbnailStyle",value:function(){var c,l=this.props,y=l.useTranslate3D,O=l.isRTL,P=this.state,E=P.thumbsTranslate,K=P.thumbsStyle,U=O?-1*E:E;return this.isThumbnailVertical()?(c="translate(0, ".concat(E,"px)"),y&&(c="translate3d(0, ".concat(E,"px, 0)"))):(c="translate(".concat(U,"px, 0)"),y&&(c="translate3d(".concat(U,"px, 0, 0)"))),hr({WebkitTransform:c,MozTransform:c,msTransform:c,OTransform:c,transform:c},K)}},{key:"getSlideItems",value:function(){var c=this,l=this.state.currentIndex,y=this.props,O=y.items,P=y.slideOnThumbnailOver,E=y.onClick,K=y.lazyLoad,U=y.onTouchMove,q=y.onTouchEnd,M=y.onTouchStart,z=y.onMouseOver,F=y.onMouseLeave,B=y.renderItem,G=y.renderThumbInner,te=y.showThumbnails,le=y.showBullets,we=[],ye=[],he=[];return O.forEach(function(se,ne){var De=c.getAlignmentClassName(ne),at=se.originalClass?" ".concat(se.originalClass):"",lt=se.thumbnailClass?" ".concat(se.thumbnailClass):"",Me=se.renderItem||B||c.renderItem,Ue=se.renderThumbInner||G||c.renderThumbInner,Re=!K||De||c.lazyLoaded[ne];Re&&K&&!c.lazyLoaded[ne]&&(c.lazyLoaded[ne]=!0);var Ze=c.getSlideStyle(ne),ct=m().createElement("div",{"aria-label":"Go to Slide ".concat(ne+1),key:"slide-".concat(ne),tabIndex:"-1",className:"image-gallery-slide ".concat(De," ").concat(at),style:Ze,onClick:E,onKeyUp:c.handleSlideKeyUp,onTouchMove:U,onTouchEnd:q,onTouchStart:M,onMouseOver:z,onFocus:z,onMouseLeave:F,role:"button"},Re?Me(se):m().createElement("div",{style:{height:"100%"}}));if(we.push(ct),te&&se.thumbnail){var et=p("image-gallery-thumbnail",lt,{active:l===ne});ye.push(m().createElement("button",{key:"thumbnail-".concat(ne),type:"button",tabIndex:"0","aria-pressed":l===ne?"true":"false","aria-label":"Go to Slide ".concat(ne+1),className:et,onMouseLeave:P?c.onThumbnailMouseLeave:null,onMouseOver:function(ke){return c.handleThumbnailMouseOver(ke,ne)},onFocus:function(ke){return c.handleThumbnailMouseOver(ke,ne)},onKeyUp:function(ke){return c.handleThumbnailKeyUp(ke,ne)},onClick:function(ke){return c.onThumbnailClick(ke,ne)}},Ue(se)))}if(le){var ut=p("image-gallery-bullet",se.bulletClass,{active:l===ne});he.push(m().createElement("button",{type:"button",key:"bullet-".concat(ne),className:ut,onClick:function(ke){return c.onBulletClick(ke,ne)},"aria-pressed":l===ne?"true":"false","aria-label":"Go to Slide ".concat(ne+1)}))}}),{slides:we,thumbnails:ye,bullets:he}}},{key:"ignoreIsTransitioning",value:function(){var c=this.props.items,l=this.state,y=l.previousIndex,O=l.currentIndex,P=c.length-1;return Math.abs(y-O)>1&&!(y===0&&O===P)&&!(y===P&&O===0)}},{key:"isFirstOrLastSlide",value:function(c){return c===this.props.items.length-1||c===0}},{key:"slideIsTransitioning",value:function(c){var l=this.state,y=l.isTransitioning,O=l.previousIndex,P=l.currentIndex;return y&&!(c===O||c===P)}},{key:"isSlideVisible",value:function(c){return!this.slideIsTransitioning(c)||this.ignoreIsTransitioning()&&!this.isFirstOrLastSlide(c)}},{key:"slideThumbnailBar",value:function(){var c=this.state,l=c.currentIndex,y=c.isSwipingThumbnail,O=-this.getThumbsTranslate(l);y||(l===0?this.setState({thumbsTranslate:0,thumbsSwipedTranslate:0}):this.setState({thumbsTranslate:O,thumbsSwipedTranslate:O}))}},{key:"canSlide",value:function(){return this.props.items.length>=2}},{key:"canSlideLeft",value:function(){return this.props.infinite||this.canSlidePrevious()}},{key:"canSlideRight",value:function(){return this.props.infinite||this.canSlideNext()}},{key:"canSlidePrevious",value:function(){return this.state.currentIndex>0}},{key:"canSlideNext",value:function(){return this.state.currentIndex<this.props.items.length-1}},{key:"handleSwiping",value:function(c){var l=c.event,y=c.absX,O=c.dir,P=this.props,E=P.disableSwipe,K=P.stopPropagation,U=this.state,q=U.galleryWidth,M=U.isTransitioning,z=U.swipingUpDown,F=U.swipingLeftRight;if(O!==Ye&&O!==$e&&!z||F){if(O!==Xe&&O!==Be||F||this.setState({swipingLeftRight:!0}),!E){var B=this.props.swipingTransitionDuration;if(K&&l.preventDefault(),M)this.setState({currentSlideOffset:0});else{var G=O===Be?1:-1,te=y/q*100;Math.abs(te)>=100&&(te=100);var le={transition:"transform ".concat(B,"ms ease-out")};this.setState({currentSlideOffset:G*te,slideStyle:le})}}}else z||this.setState({swipingUpDown:!0})}},{key:"handleThumbnailSwiping",value:function(c){var l=c.event,y=c.absX,O=c.absY,P=c.dir,E=this.props,K=E.stopPropagation,U=E.swipingThumbnailTransitionDuration,q=this.state,M=q.thumbsSwipedTranslate,z=q.thumbnailsWrapperHeight,F=q.thumbnailsWrapperWidth,B=q.swipingUpDown,G=q.swipingLeftRight;if(this.isThumbnailVertical()){if((P===Xe||P===Be||G)&&!B)return void(G||this.setState({swipingLeftRight:!0}));P!==Ye&&P!==$e||B||this.setState({swipingUpDown:!0})}else{if((P===Ye||P===$e||B)&&!G)return void(B||this.setState({swipingUpDown:!0}));P!==Xe&&P!==Be||G||this.setState({swipingLeftRight:!0})}var te,le,we,ye,he,se=this.thumbnails&&this.thumbnails.current;if(this.isThumbnailVertical()?(te=M+(P===$e?O:-O),le=se.scrollHeight-z+20,we=Math.abs(te)>le,ye=te>20,he=se.scrollHeight<=z):(te=M+(P===Be?y:-y),le=se.scrollWidth-F+20,we=Math.abs(te)>le,ye=te>20,he=se.scrollWidth<=F),!he&&(P!==Xe&&P!==Ye||!we)&&(P!==Be&&P!==$e||!ye)){K&&l.stopPropagation();var ne={transition:"transform ".concat(U,"ms ease-out")};this.setState({thumbsTranslate:te,thumbsStyle:ne})}}},{key:"handleOnThumbnailSwiped",value:function(){var c=this.state.thumbsTranslate,l=this.props.slideDuration;this.resetSwipingDirection(),this.setState({isSwipingThumbnail:!0,thumbsSwipedTranslate:c,thumbsStyle:{transition:"all ".concat(l,"ms ease-out")}})}},{key:"sufficientSwipe",value:function(){var c=this.state.currentSlideOffset,l=this.props.swipeThreshold;return Math.abs(c)>l}},{key:"resetSwipingDirection",value:function(){var c=this.state,l=c.swipingUpDown,y=c.swipingLeftRight;l&&this.setState({swipingUpDown:!1}),y&&this.setState({swipingLeftRight:!1})}},{key:"handleOnSwiped",value:function(c){var l=c.event,y=c.dir,O=c.velocity,P=this.props,E=P.disableSwipe,K=P.stopPropagation,U=P.flickThreshold;if(!E){var q=this.props.isRTL;K&&l.stopPropagation(),this.resetSwipingDirection();var M=(y===Xe?1:-1)*(q?-1:1),z=O>U&&!(y===Ye||y===$e);this.handleOnSwipedTo(M,z)}}},{key:"handleOnSwipedTo",value:function(c,l){var y=this.state,O=y.currentIndex,P=y.isTransitioning,E=O;!this.sufficientSwipe()&&!l||P||(E+=c),(c===-1&&!this.canSlideLeft()||c===1&&!this.canSlideRight())&&(E=O),this.unthrottledSlideToIndex(E)}},{key:"handleTouchMove",value:function(c){this.state.swipingLeftRight&&c.preventDefault()}},{key:"handleMouseDown",value:function(){this.imageGallery.current.classList.add("image-gallery-using-mouse")}},{key:"handleKeyDown",value:function(c){var l=this.props,y=l.disableKeyDown,O=l.useBrowserFullscreen,P=this.state.isFullscreen;if(this.imageGallery.current.classList.remove("image-gallery-using-mouse"),!y)switch(parseInt(c.keyCode||c.which||0,10)){case 37:this.canSlideLeft()&&!this.playPauseIntervalId&&this.slideLeft(c);break;case 39:this.canSlideRight()&&!this.playPauseIntervalId&&this.slideRight(c);break;case 27:P&&!O&&this.exitFullScreen()}}},{key:"handleImageError",value:function(c){var l=this.props.onErrorImageURL;l&&c.target.src.indexOf(l)===-1&&(c.target.src=l)}},{key:"removeThumbnailsResizeObserver",value:function(){this.resizeThumbnailWrapperObserver&&this.thumbnailsWrapper&&this.thumbnailsWrapper.current&&(this.resizeThumbnailWrapperObserver.unobserve(this.thumbnailsWrapper.current),this.resizeThumbnailWrapperObserver=null)}},{key:"removeResizeObserver",value:function(){this.resizeSlideWrapperObserver&&this.imageGallerySlideWrapper&&this.imageGallerySlideWrapper.current&&(this.resizeSlideWrapperObserver.unobserve(this.imageGallerySlideWrapper.current),this.resizeSlideWrapperObserver=null),this.removeThumbnailsResizeObserver()}},{key:"handleResize",value:function(){var c=this.state.currentIndex;this.imageGallery&&(this.imageGallery&&this.imageGallery.current&&this.setState({galleryWidth:this.imageGallery.current.offsetWidth}),this.imageGallerySlideWrapper&&this.imageGallerySlideWrapper.current&&this.setState({gallerySlideWrapperHeight:this.imageGallerySlideWrapper.current.offsetHeight}),this.setThumbsTranslate(-this.getThumbsTranslate(c)))}},{key:"initSlideWrapperResizeObserver",value:function(c){var l=this;c&&!c.current||(this.resizeSlideWrapperObserver=new Jn(Te(function(y){y&&y.forEach(function(O){l.setState({thumbnailsWrapperWidth:O.contentRect.width},l.handleResize)})},50)),this.resizeSlideWrapperObserver.observe(c.current))}},{key:"initThumbnailWrapperResizeObserver",value:function(c){var l=this;c&&!c.current||(this.resizeThumbnailWrapperObserver=new Jn(Te(function(y){y&&y.forEach(function(O){l.setState({thumbnailsWrapperHeight:O.contentRect.height},l.handleResize)})},50)),this.resizeThumbnailWrapperObserver.observe(c.current))}},{key:"toggleFullScreen",value:function(){this.state.isFullscreen?this.exitFullScreen():this.fullScreen()}},{key:"togglePlay",value:function(){this.playPauseIntervalId?this.pause():this.play()}},{key:"handleScreenChange",value:function(){var c=this.props,l=c.onScreenChange,y=c.useBrowserFullscreen,O=document.fullscreenElement||document.msFullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement,P=this.imageGallery.current===O;l&&l(P),y&&this.setState({isFullscreen:P})}},{key:"slideToIndex",value:function(c,l){var y=this.state,O=y.currentIndex,P=y.isTransitioning,E=this.props,K=E.items,U=E.slideDuration,q=E.onBeforeSlide;if(!P){l&&this.playPauseIntervalId&&(this.pause(!1),this.play(!1));var M=K.length-1,z=c;c<0?z=M:c>M&&(z=0),q&&z!==O&&q(z),this.setState({previousIndex:O,currentIndex:z,isTransitioning:z!==O,currentSlideOffset:0,slideStyle:{transition:"all ".concat(U,"ms ease-out")}},this.onSliding)}}},{key:"slideLeft",value:function(c){var l=this.props.isRTL;this.slideTo(c,l?"right":"left")}},{key:"slideRight",value:function(c){var l=this.props.isRTL;this.slideTo(c,l?"left":"right")}},{key:"slideTo",value:function(c,l){var y=this.state,O=y.currentIndex,P=y.isTransitioning,E=this.props.items,K=O+(l==="left"?-1:1);P||(E.length===2?this.slideToIndexWithStyleReset(K,c):this.slideToIndex(K,c))}},{key:"slideToIndexWithStyleReset",value:function(c,l){var y=this,O=this.state,P=O.currentIndex,E=O.currentSlideOffset;this.setState({currentSlideOffset:E+(P>c?.001:-.001),slideStyle:{transition:"none"}},function(){window.setTimeout(function(){return y.slideToIndex(c,l)},25)})}},{key:"handleThumbnailMouseOver",value:function(c,l){this.props.slideOnThumbnailOver&&this.onThumbnailMouseOver(c,l)}},{key:"handleThumbnailKeyUp",value:function(c,l){gr(c)&&this.onThumbnailClick(c,l)}},{key:"handleSlideKeyUp",value:function(c){gr(c)&&(0,this.props.onClick)(c)}},{key:"isThumbnailVertical",value:function(){var c=this.props.thumbnailPosition;return c==="left"||c==="right"}},{key:"addScreenChangeEvent",value:function(){var c=this;mr.forEach(function(l){document.addEventListener(l,c.handleScreenChange)})}},{key:"removeScreenChangeEvent",value:function(){var c=this;mr.forEach(function(l){document.removeEventListener(l,c.handleScreenChange)})}},{key:"fullScreen",value:function(){var c=this.props.useBrowserFullscreen,l=this.imageGallery.current;c?l.requestFullscreen?l.requestFullscreen():l.msRequestFullscreen?l.msRequestFullscreen():l.mozRequestFullScreen?l.mozRequestFullScreen():l.webkitRequestFullscreen?l.webkitRequestFullscreen():this.setModalFullscreen(!0):this.setModalFullscreen(!0),this.setState({isFullscreen:!0})}},{key:"exitFullScreen",value:function(){var c=this.state.isFullscreen,l=this.props.useBrowserFullscreen;c&&(l?document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen?document.msExitFullscreen():this.setModalFullscreen(!1):this.setModalFullscreen(!1),this.setState({isFullscreen:!1}))}},{key:"pauseOrPlay",value:function(){var c=this.props.infinite,l=this.state.currentIndex;c||this.canSlideRight()?this.slideToIndex(l+1):this.pause()}},{key:"play",value:function(){var c=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],l=this.props,y=l.onPlay,O=l.slideInterval,P=l.slideDuration,E=this.state.currentIndex;this.playPauseIntervalId||(this.setState({isPlaying:!0}),this.playPauseIntervalId=window.setInterval(this.pauseOrPlay,Math.max(O,P)),y&&c&&y(E))}},{key:"pause",value:function(){var c=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],l=this.props.onPause,y=this.state.currentIndex;this.playPauseIntervalId&&(window.clearInterval(this.playPauseIntervalId),this.playPauseIntervalId=null,this.setState({isPlaying:!1}),l&&c&&l(y))}},{key:"isImageLoaded",value:function(c){return!!this.loadedImages[c.original]||(this.loadedImages[c.original]=!0,!1)}},{key:"handleImageLoaded",value:function(c,l){var y=this.props.onImageLoad;!this.loadedImages[l]&&y&&(this.loadedImages[l]=!0,y(c))}},{key:"renderItem",value:function(c){var l=this.state.isFullscreen,y=this.props.onImageError||this.handleImageError;return m().createElement(no,{description:c.description,fullscreen:c.fullscreen,handleImageLoaded:this.handleImageLoaded,isFullscreen:l,onImageError:y,original:c.original,originalAlt:c.originalAlt,originalHeight:c.originalHeight,originalWidth:c.originalWidth,originalTitle:c.originalTitle,sizes:c.sizes,loading:c.loading,srcSet:c.srcSet})}},{key:"renderThumbInner",value:function(c){var l=this.props.onThumbnailError||this.handleImageError;return m().createElement("span",{className:"image-gallery-thumbnail-inner"},m().createElement("img",{className:"image-gallery-thumbnail-image",src:c.thumbnail,height:c.thumbnailHeight,width:c.thumbnailWidth,alt:c.thumbnailAlt,title:c.thumbnailTitle,loading:c.thumbnailLoading,onError:l}),c.thumbnailLabel&&m().createElement("div",{className:"image-gallery-thumbnail-label"},c.thumbnailLabel))}},{key:"render",value:function(){var c=this.state,l=c.currentIndex,y=c.isFullscreen,O=c.modalFullscreen,P=c.isPlaying,E=this.props,K=E.additionalClass,U=E.disableThumbnailSwipe,q=E.indexSeparator,M=E.isRTL,z=E.items,F=E.thumbnailPosition,B=E.renderFullscreenButton,G=E.renderCustomControls,te=E.renderLeftNav,le=E.renderRightNav,we=E.showBullets,ye=E.showFullscreenButton,he=E.showIndex,se=E.showThumbnails,ne=E.showNav,De=E.showPlayButton,at=E.renderPlayPauseButton,lt=this.getThumbnailStyle(),Me=this.getSlideItems(),Ue=Me.slides,Re=Me.thumbnails,Ze=Me.bullets,ct=p("image-gallery-slide-wrapper",this.getThumbnailPositionClassName(F),{"image-gallery-rtl":M}),et=m().createElement("div",{ref:this.imageGallerySlideWrapper,className:ct},G&&G(),this.canSlide()?m().createElement(m().Fragment,null,ne&&m().createElement(m().Fragment,null,te(this.slideLeft,!this.canSlideLeft()),le(this.slideRight,!this.canSlideRight())),m().createElement(ur,{className:"image-gallery-swipe",delta:0,onSwiping:this.handleSwiping,onSwiped:this.handleOnSwiped},m().createElement("div",{className:"image-gallery-slides"},Ue))):m().createElement("div",{className:"image-gallery-slides"},Ue),De&&at(this.togglePlay,P),we&&m().createElement("div",{className:"image-gallery-bullets"},m().createElement("div",{className:"image-gallery-bullets-container",role:"navigation","aria-label":"Bullet Navigation"},Ze)),ye&&B(this.toggleFullScreen,y),he&&m().createElement("div",{className:"image-gallery-index"},m().createElement("span",{className:"image-gallery-index-current"},l+1),m().createElement("span",{className:"image-gallery-index-separator"},q),m().createElement("span",{className:"image-gallery-index-total"},z.length))),ut=p("image-gallery",K,{"fullscreen-modal":O}),ke=p("image-gallery-content",this.getThumbnailPositionClassName(F),{fullscreen:y}),bo=p("image-gallery-thumbnails-wrapper",this.getThumbnailPositionClassName(F),{"thumbnails-wrapper-rtl":!this.isThumbnailVertical()&&M},{"thumbnails-swipe-horizontal":!this.isThumbnailVertical()&&!U},{"thumbnails-swipe-vertical":this.isThumbnailVertical()&&!U});return m().createElement("div",{ref:this.imageGallery,className:ut,"aria-live":"polite"},m().createElement("div",{className:ke},(F==="bottom"||F==="right")&&et,se&&Re.length>0?m().createElement(ur,{className:bo,delta:0,onSwiping:!U&&this.handleThumbnailSwiping,onSwiped:!U&&this.handleOnThumbnailSwiped},m().createElement("div",{className:"image-gallery-thumbnails",ref:this.thumbnailsWrapper,style:this.getThumbnailBarHeight()},m().createElement("nav",{ref:this.thumbnails,className:"image-gallery-thumbnails-container",style:lt,"aria-label":"Thumbnail Navigation"},Re))):null,(F==="top"||F==="left")&&et))}}],f&&fo(a.prototype,f),Object.defineProperty(a,"prototype",{writable:!1}),Y}(m().Component);en.propTypes={flickThreshold:S.number,items:(0,S.arrayOf)((0,S.shape)({bulletClass:S.string,bulletOnClick:S.func,description:S.string,original:S.string,originalHeight:S.number,originalWidth:S.number,loading:S.string,thumbnailHeight:S.number,thumbnailWidth:S.number,thumbnailLoading:S.string,fullscreen:S.string,originalAlt:S.string,originalTitle:S.string,thumbnail:S.string,thumbnailAlt:S.string,thumbnailLabel:S.string,thumbnailTitle:S.string,originalClass:S.string,thumbnailClass:S.string,renderItem:S.func,renderThumbInner:S.func,imageSet:mo,srcSet:S.string,sizes:S.string})).isRequired,showNav:S.bool,autoPlay:S.bool,lazyLoad:S.bool,infinite:S.bool,showIndex:S.bool,showBullets:S.bool,showThumbnails:S.bool,showPlayButton:S.bool,showFullscreenButton:S.bool,disableThumbnailScroll:S.bool,disableKeyDown:S.bool,disableSwipe:S.bool,disableThumbnailSwipe:S.bool,useBrowserFullscreen:S.bool,onErrorImageURL:S.string,indexSeparator:S.string,thumbnailPosition:(0,S.oneOf)(["top","bottom","left","right"]),startIndex:S.number,slideDuration:S.number,slideInterval:S.number,slideOnThumbnailOver:S.bool,swipeThreshold:S.number,swipingTransitionDuration:S.number,swipingThumbnailTransitionDuration:S.number,onSlide:S.func,onBeforeSlide:S.func,onScreenChange:S.func,onPause:S.func,onPlay:S.func,onClick:S.func,onImageLoad:S.func,onImageError:S.func,onTouchMove:S.func,onTouchEnd:S.func,onTouchStart:S.func,onMouseOver:S.func,onMouseLeave:S.func,onBulletClick:S.func,onThumbnailError:S.func,onThumbnailClick:S.func,renderCustomControls:S.func,renderLeftNav:S.func,renderRightNav:S.func,renderPlayPauseButton:S.func,renderFullscreenButton:S.func,renderItem:S.func,renderThumbInner:S.func,stopPropagation:S.bool,additionalClass:S.string,useTranslate3D:S.bool,isRTL:S.bool,useWindowKeyDown:S.bool},en.defaultProps={onErrorImageURL:"",additionalClass:"",showNav:!0,autoPlay:!1,lazyLoad:!1,infinite:!0,showIndex:!1,showBullets:!1,showThumbnails:!0,showPlayButton:!0,showFullscreenButton:!0,disableThumbnailScroll:!1,disableKeyDown:!1,disableSwipe:!1,disableThumbnailSwipe:!1,useTranslate3D:!0,isRTL:!1,useBrowserFullscreen:!0,flickThreshold:.4,stopPropagation:!1,indexSeparator:" / ",thumbnailPosition:"bottom",startIndex:0,slideDuration:450,swipingTransitionDuration:0,swipingThumbnailTransitionDuration:0,onSlide:null,onBeforeSlide:null,onScreenChange:null,onPause:null,onPlay:null,onClick:null,onImageLoad:null,onImageError:null,onTouchMove:null,onTouchEnd:null,onTouchStart:null,onMouseOver:null,onMouseLeave:null,onBulletClick:null,onThumbnailError:null,onThumbnailClick:null,renderCustomControls:null,renderThumbInner:null,renderItem:null,slideInterval:3e3,slideOnThumbnailOver:!1,swipeThreshold:30,renderLeftNav:function(d,a){return m().createElement(ao,{onClick:d,disabled:a})},renderRightNav:function(d,a){return m().createElement(lo,{onClick:d,disabled:a})},renderPlayPauseButton:function(d,a){return m().createElement(co,{onClick:d,isPlaying:a})},renderFullscreenButton:function(d,a){return m().createElement(so,{onClick:d,isFullscreen:a})},useWindowKeyDown:!0};const go=en})(),h})())}(zt)),zt.exports}var Da=La();const za=ko(Da);function Fa(){var e=new Map;function t(n){var r=n.root,i=n.rootMargin,s=n.threshold,h=e.get(r);h||(h=new Map,e.set(r,h));var u=JSON.stringify({rootMargin:i,threshold:s}),p=h.get(u);if(!p){var g=new Map,m=new IntersectionObserver(function(v){v.forEach(function(j){var w=g.get(j.target);w?.(j)})},{root:r,rootMargin:i,threshold:s});p={observer:m,entryCallbacks:g},h.set(u,p)}return{observe:function(j,w){var k,x;(k=p)==null||k.entryCallbacks.set(j,w),(x=p)==null||x.observer.observe(j)},unobserve:function(j){var w,k;(w=p)==null||w.entryCallbacks.delete(j),(k=p)==null||k.observer.unobserve(j)}}}return{getObserver:t}}var Wa="0px",Aa=[0],Na=Fa();function Ba(e){var t,n,r=(t=e?.rootMargin)!=null?t:Wa,i=(n=e?.threshold)!=null?n:Aa,s=L.useRef(null),h=L.useRef(null),u=L.useRef(null),p=L.useState(),g=p[0],m=p[1],v=L.useCallback(function(){var x=s.current;if(!x){m(void 0);return}var C=Na.getObserver({root:h.current,rootMargin:r,threshold:i});C.observe(x,function(R){m(R)}),u.current=C},[r,i]),j=L.useCallback(function(){var x=u.current,C=s.current;C&&x?.unobserve(C),u.current=null},[]),w=L.useCallback(function(x){j(),s.current=x,v()},[v,j]),k=L.useCallback(function(x){j(),h.current=x,v()},[v,j]);return[w,{entry:g,rootRef:k}]}function Tn(){return Tn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tn.apply(this,arguments)}function $a(e){var t,n=Ba(e),r=n[0],i=n[1],s=!!((t=i.entry)!=null&&t.isIntersecting),h=L.useState(s),u=h[0],p=h[1];return s&&!u&&p(!0),[r,Tn({},i,{isVisible:s,wasEverVisible:u})]}var Ua=100;function Ka(e){var t=e.loading,n=e.hasNextPage,r=e.onLoadMore,i=e.rootMargin,s=e.disabled,h=e.delayInMs,u=h===void 0?Ua:h,p=$a({rootMargin:i}),g=p[0],m=p[1],v=m.rootRef,j=m.isVisible,w=!s&&!t&&j&&n;return L.useEffect(function(){if(w){var k=setTimeout(function(){r()},u);return function(){clearTimeout(k)}}},[r,w,u]),[g,{rootRef:v}]}const Ha={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/>'},Va={width:24,height:24,body:'<g fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M0 0h24v24H0z"/><path fill="currentColor" d="M18.333 2c1.96 0 3.56 1.537 3.662 3.472l.005.195v12.666c0 1.96-1.537 3.56-3.472 3.662l-.195.005H5.667a3.667 3.667 0 0 1-3.662-3.472L2 18.333V5.667c0-1.96 1.537-3.56 3.472-3.662L5.667 2h12.666zm-2.626 7.293a1 1 0 0 0-1.414 0L11 12.585l-1.293-1.292l-.094-.083a1 1 0 0 0-1.32 1.497l2 2l.094.083a1 1 0 0 0 1.32-.083l4-4l.083-.094a1 1 0 0 0-.083-1.32z"/></g>'},qa={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M18 6L6 18M6 6l12 12"/>'};var sn=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function an(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function Ci(e,t){for(var n=t.slice(0,t.length-1),r=0;r<n.length;r++)n[r]=e[n[r].toLowerCase()];return n}function Ei(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");for(var t=e.split(","),n=t.lastIndexOf("");n>=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function Ga(e,t){for(var n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,i=!0,s=0;s<n.length;s++)r.indexOf(n[s])===-1&&(i=!1);return i}var $n={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":sn?173:189,"=":sn?61:187,";":sn?59:186,"'":222,"[":219,"]":221,"\\":220},Ae={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},On={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},fe={16:!1,18:!1,17:!1,91:!1},de={};for(var Pt=1;Pt<20;Pt++)$n["f".concat(Pt)]=111+Pt;var oe=[],Ar=!1,Ii="all",Pi=[],Ht=function(t){return $n[t.toLowerCase()]||Ae[t.toLowerCase()]||t.toUpperCase().charCodeAt(0)};function Ri(e){Ii=e||"all"}function vt(){return Ii||"all"}function Xa(){return oe.slice(0)}function Ya(e){var t=e.target||e.srcElement,n=t.tagName,r=!0;return(t.isContentEditable||(n==="INPUT"||n==="TEXTAREA"||n==="SELECT")&&!t.readOnly)&&(r=!1),r}function Qa(e){return typeof e=="string"&&(e=Ht(e)),oe.indexOf(e)!==-1}function Ja(e,t){var n,r;e||(e=vt());for(var i in de)if(Object.prototype.hasOwnProperty.call(de,i))for(n=de[i],r=0;r<n.length;)n[r].scope===e?n.splice(r,1):r++;vt()===e&&Ri(t||"all")}function Za(e){var t=e.keyCode||e.which||e.charCode,n=oe.indexOf(t);if(n>=0&&oe.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&oe.splice(0,oe.length),(t===93||t===224)&&(t=91),t in fe){fe[t]=!1;for(var r in Ae)Ae[r]===t&&(je[r]=!1)}}function el(e){if(typeof e>"u")Object.keys(de).forEach(function(h){return delete de[h]});else if(Array.isArray(e))e.forEach(function(h){h.key&&ln(h)});else if(typeof e=="object")e.key&&ln(e);else if(typeof e=="string"){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=n[0],s=n[1];typeof i=="function"&&(s=i,i=""),ln({key:e,scope:i,method:s,splitKey:"+"})}}var ln=function(t){var n=t.key,r=t.scope,i=t.method,s=t.splitKey,h=s===void 0?"+":s,u=Ei(n);u.forEach(function(p){var g=p.split(h),m=g.length,v=g[m-1],j=v==="*"?"*":Ht(v);if(de[j]){r||(r=vt());var w=m>1?Ci(Ae,g):[];de[j]=de[j].filter(function(k){var x=i?k.method===i:!0;return!(x&&k.scope===r&&Ga(k.mods,w))})}})};function Nr(e,t,n,r){if(t.element===r){var i;if(t.scope===n||t.scope==="all"){i=t.mods.length>0;for(var s in fe)Object.prototype.hasOwnProperty.call(fe,s)&&(!fe[s]&&t.mods.indexOf(+s)>-1||fe[s]&&t.mods.indexOf(+s)===-1)&&(i=!1);(t.mods.length===0&&!fe[16]&&!fe[18]&&!fe[17]&&!fe[91]||i||t.shortcut==="*")&&t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}}function Br(e,t){var n=de["*"],r=e.keyCode||e.which||e.charCode;if(je.filter.call(this,e)){if((r===93||r===224)&&(r=91),oe.indexOf(r)===-1&&r!==229&&oe.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(k){var x=On[k];e[k]&&oe.indexOf(x)===-1?oe.push(x):!e[k]&&oe.indexOf(x)>-1?oe.splice(oe.indexOf(x),1):k==="metaKey"&&e[k]&&oe.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(oe=oe.slice(oe.indexOf(x))))}),r in fe){fe[r]=!0;for(var i in Ae)Ae[i]===r&&(je[i]=!0);if(!n)return}for(var s in fe)Object.prototype.hasOwnProperty.call(fe,s)&&(fe[s]=e[On[s]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(oe.indexOf(17)===-1&&oe.push(17),oe.indexOf(18)===-1&&oe.push(18),fe[17]=!0,fe[18]=!0);var h=vt();if(n)for(var u=0;u<n.length;u++)n[u].scope===h&&(e.type==="keydown"&&n[u].keydown||e.type==="keyup"&&n[u].keyup)&&Nr(e,n[u],h,t);if(r in de){for(var p=0;p<de[r].length;p++)if((e.type==="keydown"&&de[r][p].keydown||e.type==="keyup"&&de[r][p].keyup)&&de[r][p].key){for(var g=de[r][p],m=g.splitKey,v=g.key.split(m),j=[],w=0;w<v.length;w++)j.push(Ht(v[w]));j.sort().join("")===oe.sort().join("")&&Nr(e,g,h,t)}}}}function tl(e){return Pi.indexOf(e)>-1}function je(e,t,n){oe=[];var r=Ei(e),i=[],s="all",h=document,u=0,p=!1,g=!0,m="+",v=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(s=t.scope),t.element&&(h=t.element),t.keyup&&(p=t.keyup),t.keydown!==void 0&&(g=t.keydown),t.capture!==void 0&&(v=t.capture),typeof t.splitKey=="string"&&(m=t.splitKey)),typeof t=="string"&&(s=t);u<r.length;u++)e=r[u].split(m),i=[],e.length>1&&(i=Ci(Ae,e)),e=e[e.length-1],e=e==="*"?"*":Ht(e),e in de||(de[e]=[]),de[e].push({keyup:p,keydown:g,scope:s,mods:i,shortcut:r[u],method:n,key:r[u],splitKey:m,element:h});typeof h<"u"&&!tl(h)&&window&&(Pi.push(h),an(h,"keydown",function(j){Br(j,h)},v),Ar||(Ar=!0,an(window,"focus",function(){oe=[]},v)),an(h,"keyup",function(j){Br(j,h),Za(j)},v))}function nl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(de).forEach(function(n){var r=de[n].find(function(i){return i.scope===t&&i.shortcut===e});r&&r.method&&r.method()})}var cn={setScope:Ri,getScope:vt,deleteScope:Ja,getPressedKeyCodes:Xa,isPressed:Qa,filter:Ya,trigger:nl,unbind:el,keyMap:$n,modifier:Ae,modifierMap:On};for(var un in cn)Object.prototype.hasOwnProperty.call(cn,un)&&(je[un]=cn[un]);if(typeof window<"u"){var rl=window.hotkeys;je.noConflict=function(e){return e&&window.hotkeys===je&&(window.hotkeys=rl),je},window.hotkeys=je}je.filter=function(){return!0};var _i=function(t,n){var r=t.target,i=r&&r.tagName;return!!(i&&n&&n.includes(i))},il=function(t){return _i(t,["INPUT","TEXTAREA","SELECT"])};function ol(e,t,n,r){n instanceof Array&&(r=n,n=void 0);var i=n||{},s=i.enableOnTags,h=i.filter,u=i.keyup,p=i.keydown,g=i.filterPreventDefault,m=g===void 0?!0:g,v=i.enabled,j=v===void 0?!0:v,w=i.enableOnContentEditable,k=w===void 0?!1:w,x=L.useRef(null),C=L.useCallback(function(R,T){var W,X;return h&&!h(R)?!m:il(R)&&!_i(R,s)||(W=R.target)!=null&&W.isContentEditable&&!k?!0:x.current===null||document.activeElement===x.current||(X=x.current)!=null&&X.contains(document.activeElement)?(t(R,T),!0):!1},r?[x,s,h].concat(r):[x,s,h]);return L.useEffect(function(){if(!j){je.unbind(e,C);return}return u&&p!==!0&&(n.keydown=!1),je(e,n||{},C),function(){return je.unbind(e,C)}},[C,e,j]),x}je.isPressed;const Mi=L.createContext({open:!1,toggleOpen:e=>{}});function sl({children:e}){const[t,n]=L.useState(!1),r=s=>{n(s??!s)},i=L.useMemo(()=>({open:t,toggleOpen:r}),[t]);return o.jsx(Mi.Provider,{value:i,children:e})}function Un(){return L.useContext(Mi)}const Ce={nameAsc:"title",nameDesc:"title",popularity:"stats.downloads",publishAt:"lastPublishedAt",mobilePageSize:10,pageSize:18,currentPage:1,defaultCurrentPage:1,blockletsPath:"/api/v2/blocklets.json",categoriesPath:"/api/blocklets/categories",explorePath:"/api/blocklets/explore",exploreDidsPath:"/api/blocklets/dids",cacheSize:100},al=e=>xt(async()=>{const{data:t}=await e.get(Ce.categoriesPath);return Array.isArray(t)?t:[]},{manual:!0});function ll(e,t){const n=e.menu?{sortBy:"popularity",sortDirection:"desc",showResources:"true",...Eo(e,["sortBy","sortDirection","showResources"])}:{sortBy:"popularity",sortDirection:"desc",showResources:"true",...e,menu:void 0},{onFilterChange:r,onSearchSelect:i=u=>{t.onFilterChange({...n,keyword:u.title})},emptyCategory:s}=t;!n.category&&!s&&(n.category="All");const h=u=>{const p={...n,...u};r(tn(p,g=>g===""||g===void 0))};return{filters:e,cleanFilter:u=>{const p=u?tn(n,(g,m)=>u.includes(m)):{};r(tn(p,g=>g===""||g===void 0))},handleActiveMenu:u=>{u!==e.menu&&r({menu:u})},handleSort:(u,p)=>{h({sortBy:u,sortDirection:p||u==="nameAsc"?"asc":"desc"})},handleKeyword:u=>{h({category:void 0,keyword:u||void 0})},handlePrice:u=>{h({price:u===e.price?void 0:u})},handleCategory:u=>{h({category:u===e.category?"":u})},handleDeveloper:u=>{h({owner:u||void 0})},handlePage:u=>{h({currentPage:u})},handleSwitchShowResources:u=>{h({showResources:u})},handleSearchSelect:u=>{i(u)}}}const cl=(e,t,n)=>e&&t||!n,Li=e=>[{name:e("sort.popularity"),value:"popularity"},{name:e("sort.lastPublished"),value:"publishAt"}],Di=(e,t,n)=>{const r=Lo(e),i=Do(r.search);if(zo(e)?.endsWith(".gif"))return i.imageFilter?Fo({...r,search:""}):e;if(i.imageFilter)return e;const s=n||window.blocklet?.version,{w:h,h:u}=typeof t=="object"?{w:t.w,h:t.h}:{w:t,h:t};return _n(e,{...h||u?{imageFilter:"resize",w:h,h:u}:{},v:s})},ul=e=>[{name:e("blocklet.free"),value:"free"},{name:e("blocklet.payment"),value:"payment"}],dl=(e=[],t="en")=>e.map(n=>({name:n.locales[t]||n.locales.en,value:n._id})),hl=e=>Array.isArray(e)?e.map(t=>t.message).join(`
2
+ `):e.response?.data?.error?e.response.data.error.message||e.response.data.error:e.message||e,fl=(e,t)=>e?.replace(/{(\w*)}/g,(n,r)=>t.hasOwnProperty(r)?t[r]:""),pl=()=>window.innerWidth<=600,ml={common:{title:"Blocklet Store",searchStore:"Search Blocklet",showResources:"Show extensions",price:"Price",category:"Category",categories:"Categories",resourceType:"Resource Type",clear:"Clear",cancel:"Cancel",search:"Search",fetchError:"Failed to fetch data, please try again later",searchPlaceholder:"Search blocklet"},explore:{title:"Explore",trending:"Trending",topRated:"Top Rated",recentlyUpdated:"Recently Updated",viewDetail:"View Details"},sort:{sort:"Sort",rating:"Rating",popularity:"Most Popular",lastPublished:"Latest Published"},category:{all:"All",placeholder:"Category name",helperText:"Please select a category"},blocklet:{noResults:"No blocklet found.",free:"Free",search:'Results for "{keyword}"',authorTag:"Blocklet by {name}",resourceTag:"Extensions for {name}",resultCount:"{count} Blocklets",emptyTip:"Tips:",filterTip:"Appropriately reduce the filter conditions",keywordTip:"Try other keywords",owner:"Blocklets from {name}",noBlockletPart1:'No Blocklets associated with"',noBlockletPart2:'"were found',noCategoryResults1:'No "',noCategoryResults2:'" Blocklets'},autocomplete:{expandResult:'View all search results for "{name}"'}},gl={common:{title:"Blocklet 商店",searchStore:"搜索 Blocklet",showResources:"显示扩展",price:"价格",category:"类别",categories:"类别",resourceType:"资源类型",clear:"清除",cancel:"取消",search:"搜索",fetchError:"获取数据失败, 请稍后再试",searchPlaceholder:"搜索 Blocklet"},explore:{title:"探索",trending:"趋势",topRated:"评分最高",recentlyUpdated:"最近更新",viewDetail:"查看详情"},sort:{sort:"排序",rating:"评分",popularity:"最热门",lastPublished:"最新发布"},category:{all:"全部",placeholder:"分类名称",helperText:"请选择分类"},blocklet:{noResults:"未搜索到 Blocklet",free:"免费",search:'搜索 "{keyword}" 的结果',authorTag:"{name} 的 Blocklet",resourceTag:"{name} 的拓展",resultCount:"{count} 个 Blocklet",emptyTip:"建议:",filterTip:"适当减少筛选条件",keywordTip:"尝试其他关键字",owner:"来自 {name} 的 Blocklets",noBlockletPart1:'没有找到与"',noBlockletPart2:'"相关的 Blocklets',noCategoryResults1:'无 "',noCategoryResults2:'" 类别的 Blocklets'},autocomplete:{expandResult:"查看 “{name}” 的所有搜索结果"}},dn={en:yr(ml),zh:yr(gl)},zi=(e,t)=>{const n={};return e&&(n["x-blocklet-server-version"]=e),t&&(n["x-blocklet-store-version"]=t),n},bl=e=>(t,n)=>{const r=dn[e]?dn[e][t]:dn.en[t];return fl(r,n)||t},Fi={errors:{fetchCategoriesError:null},loadings:{fetchCategoriesLoading:!1},compact:!1,endpoint:"",wrapChildren:()=>null,t:e=>e,storeVersion:"",minItemWidth:350,serverVersion:"",layout:{},selectedCategory:void 0,categoryList:[],blockletRender:()=>null,locale:"en",categoryOptions:[],priceOptions:[],storeApi:null,baseSearch:!1,showResourcesSwitch:!1,showCategory:!1,tagFilters:[],developerName:"",onFilterChange:()=>{},updateDeveloperName:()=>{},getCategoryLocale:()=>null,search:{filters:{},cleanFilter:()=>{},handleActiveMenu:()=>{},handleSort:()=>{},handleKeyword:()=>{},handlePrice:()=>{},handleCategory:()=>{},handleDeveloper:()=>{},handleSwitchShowResources:()=>{},handleSearchSelect:()=>{},handlePage:()=>{}}},Wi=L.createContext(Fi),{Provider:yl,Consumer:yc}=Wi;function vl(e){const{locale:t="zh",filters:n={},serverVersion:r="",onFilterChange:i=()=>{},minItemWidth:s=350,queryFilter:h=!0,layout:u={},wrapChildren:p=ue=>ue,extraFilter:g=ue=>ue,baseSearch:m=!1,fetchCategoryDelay:v=0,showResourcesSwitch:j=!1,showCategory:w=!0,tagFilters:k=[],children:x,storeVersion:C,onSearchSelect:R=()=>{},endpoint:T,blockletRender:W,compact:X=!1}=e,J=zi(r,C),A=L.useMemo(()=>Yr({baseURL:T,headers:J}),[T]),V=ll(n,{onFilterChange:i,emptyCategory:!u.showExplore,onSearchSelect:R}),[Z,re]=L.useState(""),{data:$=[],error:Ee,loading:ge,run:Se}=al(A),pe=L.useMemo(()=>{const ue=fs($,[ee=>ee.name],["asc"]),ie=ue.findIndex(ee=>ee.name==="All"||ee.locales.en==="All");return ie>-1?[{...ue[ie],_id:"All"},...ue.slice(0,ie),...ue.slice(ie+1)]:ue},[$]),be=L.useCallback(bl(t),[t]),D=L.useMemo(()=>dl(pe,t),[pe,t]),ae=ul(be),Te={search:V,compact:X,errors:{fetchCategoriesError:Ee},loadings:{fetchCategoriesLoading:ge},extraFilter:g,endpoint:T,queryFilter:h,layout:{showExplore:u.showExplore??!1,showCategory:u.showCategory??!0,showTitle:u.showTitle??!0,showSearch:u.showSearch??!0},minItemWidth:s,wrapChildren:p,t:be,storeVersion:C,serverVersion:r,selectedCategory:V.filters.category||(u.showExplore?"":"All"),categoryList:pe,blockletRender:W,locale:t,categoryOptions:D,priceOptions:ae,storeApi:A,baseSearch:m,showResourcesSwitch:j,showCategory:w,tagFilters:k,onFilterChange:i,getCategoryLocale:ue=>{if(!ue)return null;const ie=$.find(ee=>ee._id===ue||ee.locales.en==="All");return ie?ie.locales[t]||ie.locales.en:null},get developerName(){return Z},updateDeveloperName:re};return L.useEffect(()=>{setTimeout(Se,v||0)},[T,Se,v]),o.jsx(yl,{value:Te,children:x})}function xe(){return L.useContext(Wi)||Fi}function Ai({children:e,onClick:t,size:n=32,...r}){return o.jsx(Oe,{...r,onClick:t,variant:"outlined",sx:[{minWidth:n,height:n,p:0,borderColor:"divider","&:hover":{borderColor:"divider"},borderRadius:2,color:"text.secondary"},...Array.isArray(r.sx)?r.sx:[r.sx]],children:e})}function Rt(e,t){return e===void 0?t:e}function Kn({xs:e=void 0,sm:t=void 0,md:n=void 0,lg:r=void 0,xl:i=void 0,exact:s=!1}){const h=Ve(),u=nt(h.breakpoints.down("sm")),p=nt(h.breakpoints.between("sm","md")),g=nt(h.breakpoints.between("md","lg")),m=nt(h.breakpoints.between("lg","xl"));if(s)return u?e||null:p?t||null:g?n||null:m?r||null:i||null;let v=e;return u||(v=Rt(t,v),p)||(v=Rt(n,v),g)||(v=Rt(r,v),m)?v:Rt(i,v)}function xl({children:e}){const{open:t,toggleOpen:n}=Un();return o.jsx(Kn,{xs:o.jsx(_o,{open:t,onClose:()=>n(!1),children:e}),md:o.jsx(H,{children:e})})}function wl({loading:e=!1,disabled:t,...n}){return o.jsx(Oe,{disableElevation:!0,disabled:t||e===!0,...n,sx:[{borderRadius:"4px"},...Array.isArray(n.sx)?n.sx:[n.sx]],startIcon:e&&o.jsx(_e,{size:"1em"})})}function Cn({value:e,options:t,onChange:n,placeholder:r="",...i}){const s=L.useRef(null),h=Ve(),[u,p]=L.useState(!1),[g,m]=L.useState(e!==null?e:""),v=nt(h.breakpoints.down("sm"));L.useEffect(()=>{m(e!==null?e:"")},[e]);const j=L.useCallback(()=>{p(!1)},[]),w=L.useCallback(()=>{p(!0)},[]);function k(C){m(C.value),n(C.value),v&&j()}function x(C){return C===g}return o.jsxs(o.Fragment,{children:[o.jsxs(Sl,{ref:s,onClick:w,variant:"outlined",size:"medium",className:["my-select__selector",Ao(g)?"":"my-select__selector--active"].join(" "),sx:{minWidth:{xs:"100px",md:"auto"},color:"text.primary",borderRadius:"8px"},...i,children:[t.find(C=>C.value===g)?.name||r,o.jsx(Wo,{className:"my-select__arrowdown",component:Cs,sx:{width:18,height:18}})]}),o.jsx(No,{open:u,anchorEl:s.current,transition:!0,sx:{zIndex:"9999"},children:({TransitionProps:C,placement:R})=>o.jsx(Bo,{...C,style:{transformOrigin:R==="bottom"?"center top":"center bottom"},children:o.jsx($o,{children:o.jsx(Uo,{onClickAway:j,children:o.jsx(kl,{autoFocusItem:u,onMouseEnter:w,onMouseLeave:j,children:t.map(T=>o.jsxs(Ft,{onClick:()=>k(T),sx:{fontSize:14},children:[o.jsx(Ko,{sx:{mr:1,fontSize:16,visibility:x(T.value)?"visible":"hidden"}}),T.name]},T.value))})})})})})]})}const Sl=Ne(wl)`
3
3
  border: 1px solid ${e=>e.theme.palette.divider};
4
4
  padding: 6px 8px 6px 12px;
5
5
  font-weight: ${e=>e.theme.typography.fontWeightRegular};
@@ -39,7 +39,7 @@ import{c0 as ze,r as L,cq as xt,ba as yo,bb as vo,cR as Ot,f3 as tt,cr as ht,f4
39
39
  color: ${e=>e.theme.palette.primary.main};
40
40
  }
41
41
  }
42
- `;function Ni(){const{search:e,t}=xe(),{filters:n,handleSort:r,handlePrice:i}=e,s=Li(t);return o.jsxs(ve,{direction:{xs:"row",md:"column"},sx:{alignItems:{xs:"center",md:"flex-start"},gap:{xs:1,md:2},width:{xs:"100%",md:"auto"},justifyContent:"space-between"},children:[o.jsx(ni,{control:o.jsx(ri,{checked:n.price==="free",size:"small",sx:{"& .MuiSvgIcon-fontSizeSmall":{fontSize:16,color:"text.hint"}},onChange:h=>i(h.target.checked?"free":"")}),label:t("blocklet.free")}),o.jsx(Cn,{value:n.sortBy||s[0].value,options:s,onChange:h=>r(h),placeholder:t("sort.sort")})]})}function jl({menus:e=[]}){const{selectedCategory:t,search:n,t:r,categoryOptions:i,loadings:s,layout:h,baseSearch:u,compact:p}=xe(),{filters:g,handleActiveMenu:m,handleCategory:v,cleanFilter:j}=n,{toggleOpen:w}=Un();L.useEffect(()=>{w(!1)},[Object.values(g).join("")]);const k=cl(u,h.showSearch,g.keyword);return h.showCategory&&!p?o.jsxs(xl,{children:[o.jsx(Kn,{xs:o.jsxs(ve,{direction:"row",justifyContent:"space-between",alignItems:"center",p:2,mb:.5,gap:2,borderBottom:1,borderColor:"divider",children:[o.jsx(Ai,{onClick:()=>w(!1),children:o.jsx(Qr,{})}),o.jsx(Q,{flex:1,variant:"body1",fontWeight:"fontWeightMedium",children:r("common.category")})]}),md:null}),o.jsx(ve,{visibility:s.fetchCategoriesLoading?"hidden":"visible",width:{xs:268,md:200},boxSizing:"content-box",p:{xs:2,md:0},pr:{md:6},children:k?o.jsxs(o.Fragment,{children:[h.showExplore&&o.jsxs(H,{mb:3,pb:3,borderBottom:1,borderColor:"divider",children:[o.jsxs(H,{display:"flex",alignItems:"center",gap:1,children:[o.jsx(Le,{icon:Ps,width:20,height:20}),o.jsx(Q,{variant:"body1",color:!t&&!g.menu?"text.primary":"grey.400",fontWeight:!t&&!g.menu?"fontWeightMedium":void 0,sx:{cursor:"pointer"},onClick:()=>{w(!1),j()},children:r("explore.title")})]}),e.map(x=>o.jsxs(H,{display:"flex",alignItems:"center",mt:2,gap:1,children:[typeof x.icon=="string"?o.jsx(Le,{icon:x.icon,width:20,height:20}):x.icon,o.jsx(Q,{variant:"body1",color:g.menu===x.key?"text.primary":"grey.400",fontWeight:g.menu===x.key?"fontWeightMedium":void 0,sx:{cursor:"pointer"},onClick:()=>{w(!1),m(x.key),x.onClick?.()},children:x.title})]},x.key))]}),!!i.length&&o.jsx(ve,{gap:2,children:i.map(x=>o.jsx(Q,{variant:"body1",title:x.name,sx:{cursor:"pointer"},"data-cy":"filter",color:t===x.value?"text.primary":"grey.400",textTransform:"capitalize",onClick:()=>{t===x.value?j():v(x.value),w(!1)},children:x.name},x.value))})]}):o.jsx(Ni,{})})]}):null}function Hn(){const{endpoint:e,serverVersion:t,storeVersion:n}=xe(),r=zi(t,n),i=L.useMemo(()=>Yr({baseURL:e,headers:r}),[e]);return{get:async s=>{const{data:h}=await i.get(s);return h},post:async(s,h)=>{const{data:u}=await i.post(s,h);return u}}}const Bi=L.memo(function(e){return o.jsx(H,{...e,sx:[{height:60,display:"flex",alignItems:"center",justifyContent:"center"},...Array.isArray(e.sx)?e.sx:[e.sx]],children:o.jsx(Re,{})})});function $r({icon:e=null,children:t=null,maxWidth:n=100,title:r=""}){return(t===0||t)&&o.jsxs(ve,{direction:"row",sx:{alignItems:"center",gap:1,maxWidth:n,overflow:"hidden"},children:[e,o.jsx(Q,{variant:"body2",title:r||(typeof t=="string"?t:void 0),sx:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:t})]})}const Tl=16/9,hn=292,En=189,Bt=336;function Ol(){const{t:e,search:t}=xe(),{get:n}=Hn(),r=Ve(),i=nt(r.breakpoints.down("md")),s=window.blocklet?.preferences?.homeBanner||[],{data:h=[],error:u,loading:p}=xt(async()=>{const x=await n(Rn(Ce.blockletsPath,{didList:s.map(C=>C.did).join(",")}));return x?.dataList?s.map(C=>x.dataList.find(_=>_.did===C.did)):[]});u&&console.error("Get Banner Blocklets error:",u);const g={position:"absolute",top:"50%",transform:"translateY(-50%)",zIndex:100,cursor:"pointer",color:"text.hint"};return!u&&s.length>0?o.jsxs(o.Fragment,{children:[o.jsx(Q,{component:"h2",variant:"h2",sx:{mt:{xs:2,md:0},mb:3},children:e("explore.title")}),o.jsx(H,{sx:{height:{xs:"auto",md:hn},minHeight:hn,position:"relative",border:1,borderColor:"divider",borderRadius:3,overflow:"hidden"},children:p?o.jsxs(H,{sx:{p:5,display:{md:"flex"},gap:5,alignItems:"center",justifyContent:"center"},children:[o.jsx(Fe,{variant:"rounded",height:En,width:Bt}),o.jsxs(H,{sx:{flex:1,height:"100%"},children:[o.jsx(Fe,{variant:"text",height:50,width:100}),o.jsx(Fe,{variant:"text",height:40,width:"100%"}),o.jsx(Fe,{variant:"text",height:40,width:300}),o.jsxs(H,{sx:{display:"flex",gap:1,my:2},children:[o.jsx(Fe,{variant:"circular",height:20,width:20}),o.jsx(Fe,{variant:"text",height:20,width:50})]}),o.jsx(Fe,{variant:"rounded",height:30,width:100})]})]}):o.jsx(za,{showNav:!0,autoPlay:!0,slideDuration:i?500:1e3,slideInterval:5e3,showPlayButton:!1,showIndex:!1,showBullets:!1,showThumbnails:!1,showFullscreenButton:!1,renderLeftNav:x=>o.jsx(H,{onClick:x,sx:{display:{xs:"none",md:"block"}},children:o.jsx(cs,{sx:{...g,left:5}})}),renderRightNav:x=>o.jsx(H,{onClick:x,sx:{display:{xs:"none",md:"block"}},children:o.jsx(us,{sx:{...g,right:5}})}),items:s.map((x,C)=>({original:x.did,renderItem:()=>{const _=h[C]||{},T=x.cover||El(x.did,_.screenshots?.[0]),W=Di(T,r.breakpoints.values.md*2);return o.jsxs(ve,{direction:{xs:"column",md:"row"},onClick:()=>t.handleSearchSelect(_),sx:{height:{xs:"auto",md:hn},display:"flex",justifyContent:"center",alignItems:{xs:"flex-start",md:"center"},p:{xs:2,md:5},gap:{xs:2,md:5},cursor:"pointer","&::before":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`url("${W}")`,backgroundSize:"cover",filter:"blur(50px)",opacity:.15,zIndex:0}},children:[m(W),o.jsxs(ve,{sx:{flex:1,height:"100%",gap:3},children:[o.jsxs(H,{sx:{flex:1},children:[v(x.name||_.title||x.name),j(x.desc||_.description)]}),_.did&&w(_,x.baseNum),k(_)]})]})}}))})})]}):null;function m(x){return o.jsx(H,{sx:{borderRadius:2,overflow:"hidden",position:"relative",width:{xs:"100%",md:Bt}},children:o.jsx(Il,{url:x})})}function v(x){return o.jsx(Q,{variant:"h2",sx:{width:"100%"},children:x})}function j(x){return o.jsx(Q,{variant:"body2",sx:{color:"text.secondary",textAlign:"left",width:"100%",minHeight:70,maxHeight:71,pt:1,display:"-webkit-box",lineClamp:3,WebkitLineClamp:3,textWrap:"wrap",overflow:"hidden",WebkitBoxOrient:"vertical"},children:x})}function w(x,C=0){const{did:_,owner:T,stats:W}=x;return o.jsxs(H,{sx:{display:"flex",alignItems:"center",gap:2,color:"text.secondary"},children:[o.jsx($r,{icon:o.jsx(Wt,{src:T.avatar,did:_,size:20,variant:"circle"}),children:T.fullName}),o.jsx($r,{icon:o.jsx(Le,{icon:Oi}),title:`${W.downloads+C}`,children:Cl(W.downloads+C)})]})}function k(x){return o.jsx(Oe,{variant:"outlined",size:"small",onClick:()=>t.handleSearchSelect(x),sx:{width:"fit-content",textTransform:"none",borderRadius:1,borderColor:"grey.300","&:hover":{borderColor:"divider"}},children:e("explore.viewDetail")})}}const Cl=e=>Number.isNaN(e)?0:e<1e3?e:e<1e6?`${(e/1e3).toFixed(1)}k`:e<1e9?`${(e/1e6).toFixed(1)}m`:`${(e/1e9).toFixed(1)}b`,El=(e,t)=>e&&t?`/assets/${e}/screenshots/${t}`:"";function Il({url:e}){const[t,n]=L.useState(!0);return o.jsxs(o.Fragment,{children:[t&&o.jsx(Fe,{variant:"rectangular",sx:{width:{xs:"100%",md:Bt},height:{xs:"auto",md:En}}}),o.jsx(H,{component:"img",src:e,alt:"",onLoad:()=>n(!1),onError:()=>n(!1),sx:{display:t?"none":"block",width:{xs:"100%",md:Bt},height:{xs:"auto",md:En},borderRadius:2,border:1,borderColor:"divider",objectFit:"container",cursor:"pointer",aspectRatio:Tl}})]})}function Pl({title:e,blocklets:t}){const{blockletRender:n,serverVersion:r}=xe();return o.jsxs(H,{sx:{mt:3},children:[o.jsx(Q,{component:"h3",variant:"h3",sx:{mb:2},children:e}),o.jsx(vr,{container:!0,spacing:2,sx:{boxSizing:"border-box",maxWidth:"calc(100vw - 16px)"},children:t.map(i=>o.jsx(vr,{"data-blocklet-did":i.did,sx:{p:"2px"},size:{xs:12,md:6},children:o.jsx(H,{sx:{padding:"1px"},children:n({blocklet:i,blocklets:t,serverVersion:r})})},i.did))})]})}function _l(){const{get:e}=Hn(),{t}=xe(),{data:n=[],error:r,loading:i}=xt(async()=>{const s=await e(Ce.explorePath);return Array.isArray(s)?s:[]});return r?o.jsx(_n,{error:new Error(`Failed to fetch blocklets from ${Ce.explorePath}`)}):i?o.jsx(Bi,{mt:15}):o.jsxs(o.Fragment,{children:[o.jsx(Ol,{}),n.map(s=>s.blocklets?.length>0?o.jsx(Pl,{title:t(`explore.${s.type}`),blocklets:s.blocklets},s.type):null)]})}const fn="__FREE_TEXT__",Ur="__NO_RESULT__",pn=40;function $i({endpoint:e,t,locale:n,filters:r,handleKeyword:i,handleSearchSelect:s,...h}){const u=L.useRef(null),p=L.useRef(!1),[g,m]=L.useState(!1),[v,j]=L.useState(""),[w,k]=L.useState(!1),x=Hn(),[C,_]=L.useState(!1),T=h?.placeholder||t("common.searchStore"),W=async D=>{_(!0);const ae=await x.get(rt(e,Rn(Ce.blockletsPath,D)));return _(!1),ae.dataList||[]},{data:X,run:J}=xt(D=>D?W({sortBy:Ce.nameDesc,page:1,pageSize:10,keyword:D,showResources:"true"}):Promise.resolve([]),{manual:!0});L.useEffect(()=>{_(!0),J(r.keyword),j(r.keyword||"")},[r.keyword,J]),ol("ctrl + k, command + k",D=>(D.stopPropagation(),D.preventDefault(),u.current?.querySelector("input")?.focus(),!1),{enableOnTags:["INPUT"]});const A=Jr(D=>J(D),{wait:300}),V={name:fn,title:v,did:""};let Z=[];return v&&(C?Z=[V]:X?.length?Z=[V,...X]:Z=[{name:Ur,title:t("blocklet.noResults"),did:""}]),o.jsxs(o.Fragment,{children:[o.jsxs(_o,{fullScreen:!0,open:w,sx:{display:{md:"none"}},children:[o.jsxs(H,{sx:{p:2,pb:0,display:"flex",alignItems:"center",gap:2},children:[o.jsx(Zr,{fullWidth:!0,sx:{bgcolor:"grey.50",px:1,py:.5,".MuiInputBase-input":{p:1},".MuiOutlinedInput-notchedOutline":{borderRadius:"8px",borderColor:"transparent"},"&&:hover .MuiOutlinedInput-notchedOutline, &&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"divider",borderWidth:"1px"}},autoFocus:!0,placeholder:T,className:"bl-autocomplete-input",value:v,onChange:D=>re(D.target.value),startAdornment:pe(w),endAdornment:be()}),o.jsx(Oe,{variant:"outlined",onClick:()=>{k(!1),j(r.keyword||"")},children:t("common.cancel")})]}),o.jsx(ei,{sx:{p:.5},children:Z.map(D=>ge(D))})]}),o.jsx(H,{sx:{display:{sx:"block",md:"none"},paddingTop:1,opacity:.5},children:o.jsx(Le,{icon:nn,style:{fontSize:22,color:"inherit"},onClick:()=>k(!0)})}),o.jsx(ms,{ref:u,open:!!v&&g,size:"small",onOpen:()=>m(!0),onClose:(D,ae)=>{m(!1),ae==="selectOption"&&!p.current&&i(v)},onKeyDown:D=>{D.key==="Enter"&&!v&&$()},disableClearable:!0,inputValue:v,onInputChange:(D,ae)=>re(ae),isOptionEqualToValue:(D,ae)=>D.name===ae.name,getOptionLabel:D=>D.title,getOptionKey:D=>D.name,noOptionsText:t("blocklet.noResults"),autoHighlight:!0,forcePopupIcon:!1,slotProps:{paper:{sx:{mt:.5,minWidth:"100%",width:"fit-content","& > ul":{p:.5}}}},renderInput:D=>o.jsx(ti,{...D,InputProps:{...D.InputProps,autoFocus:!0,placeholder:T,className:"bl-autocomplete-input",value:v,startAdornment:pe(g),endAdornment:be()}}),filterOptions:D=>D,...h,options:Z,renderOption:(D,ae)=>ge(ae),value:V,sx:[{bgcolor:"grey.50",borderRadius:"8px",overflow:"hidden",".MuiOutlinedInput-notchedOutline":{borderRadius:"8px",borderColor:"transparent"},"&&:hover .MuiOutlinedInput-notchedOutline, &&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"divider",borderWidth:"1px"}},...Array.isArray(h.sx)?h.sx:[h.sx]]})]});function re(D){_(!0),j(D),p.current=!1,A.run(D)}function $(){k(!1),j(""),re(""),i("")}function Ee(D){D?.did?(k(!1),p.current=!0,j(""),s(D)):D.name===fn&&(k(!1),i(v))}function ge(D){return o.jsxs(Ft,{sx:{display:"flex",alignItems:"center",gap:1,p:1.5,borderRadius:"8px"},onClick:()=>Ee(D),children:[Se(D),o.jsxs(Q,{variant:"body1",children:[o.jsx(Q,{sx:{fontWeight:"fontWeightMedium",display:"flex",alignItems:"center",gap:1},children:D.title}),o.jsx(Q,{sx:{fontSize:"13px",color:"text.hint"},children:D.category?.locales?.[n||"en"]||""})]})]},D.did)}function Se(D){if([fn,Ur].includes(D.name))return o.jsx(H,{sx:{width:pn,p:"6px",display:"flex",justifyContent:"center",alignItems:"center",color:"text.hint",bgcolor:"grey.100",borderRadius:"8px"},children:o.jsx(Le,{icon:nn,style:{fontSize:28}})});let ae="";return D.logo&&(ae=rt(e,"assets",D.did,Di(D.logo,pn,D.version))),o.jsx(Wt,{src:ae,size:pn,style:{borderRadius:"8px",overflow:"hidden"}})}function pe(D=!0){return o.jsx(H,{sx:{display:"flex",pl:.5,alignItems:"center",color:"text.hint"},children:D&&v&&C?o.jsx(Re,{color:"inherit",size:16}):o.jsx(Le,{icon:nn,style:{fontSize:16,cursor:"default"}})})}function be(){return v?o.jsx(H,{sx:{display:"flex",alignItems:"center",color:"text.hint"},children:o.jsx(Le,{icon:qa,style:{fontSize:20,cursor:"pointer",color:"inherit"},onClick:()=>$()})}):null}}function Rl({placeholder:e,...t}){const{search:n,t:r}=xe(),{filters:i,handleKeyword:s}=n,[h,u]=L.useState(i.keyword||""),p=Jr(s,{wait:300}),g=j=>{const{value:w}=j.target;u(w),p.run(w)},m=()=>{u(""),s("")};L.useEffect(()=>{u(i.keyword||"")},[i.keyword]);const v=e||r("common.searchPlaceholder");return o.jsx(Ml,{inputProps:{"data-cy":"search-blocklet"},startAdornment:o.jsx(wr,{position:"start",children:o.jsx(Ll,{sx:{fontSize:18,ml:-.5}})}),onChange:g,placeholder:v,value:h,title:v,"data-cy":"search",endAdornment:h&&o.jsx(wr,{position:"end",children:o.jsx(Dl,{"data-cy":"search-delete",onClick:m})}),...t})}const Ml=Ne(Zr)`
42
+ `;function Ni(){const{search:e,t}=xe(),{filters:n,handleSort:r,handlePrice:i}=e,s=Li(t);return o.jsxs(ve,{direction:{xs:"row",md:"column"},sx:{alignItems:{xs:"center",md:"flex-start"},gap:{xs:1,md:2},width:{xs:"100%",md:"auto"},justifyContent:"space-between"},children:[o.jsx(ni,{control:o.jsx(ri,{checked:n.price==="free",size:"small",sx:{"& .MuiSvgIcon-fontSizeSmall":{fontSize:16,color:"text.hint"}},onChange:h=>i(h.target.checked?"free":"")}),label:t("blocklet.free")}),o.jsx(Cn,{value:n.sortBy||s[0].value,options:s,onChange:h=>r(h),placeholder:t("sort.sort")})]})}function jl({menus:e=[]}){const{selectedCategory:t,search:n,t:r,categoryOptions:i,loadings:s,layout:h,baseSearch:u,compact:p}=xe(),{filters:g,handleActiveMenu:m,handleCategory:v,cleanFilter:j}=n,{toggleOpen:w}=Un();L.useEffect(()=>{w(!1)},[Object.values(g).join("")]);const k=cl(u,h.showSearch,g.keyword);return h.showCategory&&!p?o.jsxs(xl,{children:[o.jsx(Kn,{xs:o.jsxs(ve,{direction:"row",justifyContent:"space-between",alignItems:"center",p:2,mb:.5,gap:2,borderBottom:1,borderColor:"divider",children:[o.jsx(Ai,{onClick:()=>w(!1),children:o.jsx(Qr,{})}),o.jsx(Q,{flex:1,variant:"body1",fontWeight:"fontWeightMedium",children:r("common.category")})]}),md:null}),o.jsx(ve,{visibility:s.fetchCategoriesLoading?"hidden":"visible",width:{xs:268,md:200},boxSizing:"content-box",p:{xs:2,md:0},pr:{md:6},children:k?o.jsxs(o.Fragment,{children:[h.showExplore&&o.jsxs(H,{mb:3,pb:3,borderBottom:1,borderColor:"divider",children:[o.jsxs(H,{display:"flex",alignItems:"center",gap:1,children:[o.jsx(Le,{icon:Ps,width:20,height:20}),o.jsx(Q,{variant:"body1",color:!t&&!g.menu?"text.primary":"grey.400",fontWeight:!t&&!g.menu?"fontWeightMedium":void 0,sx:{cursor:"pointer"},onClick:()=>{w(!1),j()},children:r("explore.title")})]}),e.map(x=>o.jsxs(H,{display:"flex",alignItems:"center",mt:2,gap:1,children:[typeof x.icon=="string"?o.jsx(Le,{icon:x.icon,width:20,height:20}):x.icon,o.jsx(Q,{variant:"body1",color:g.menu===x.key?"text.primary":"grey.400",fontWeight:g.menu===x.key?"fontWeightMedium":void 0,sx:{cursor:"pointer"},onClick:()=>{w(!1),m(x.key),x.onClick?.()},children:x.title})]},x.key))]}),!!i.length&&o.jsx(ve,{gap:2,children:i.map(x=>o.jsx(Q,{variant:"body1",title:x.name,sx:{cursor:"pointer"},"data-cy":"filter",color:t===x.value?"text.primary":"grey.400",textTransform:"capitalize",onClick:()=>{t===x.value?j():v(x.value),w(!1)},children:x.name},x.value))})]}):o.jsx(Ni,{})})]}):null}function Hn(){const{endpoint:e,serverVersion:t,storeVersion:n}=xe(),r=zi(t,n),i=L.useMemo(()=>Yr({baseURL:e,headers:r}),[e]);return{get:async s=>{const{data:h}=await i.get(s);return h},post:async(s,h)=>{const{data:u}=await i.post(s,h);return u}}}const Bi=L.memo(function(e){return o.jsx(H,{...e,sx:[{height:60,display:"flex",alignItems:"center",justifyContent:"center"},...Array.isArray(e.sx)?e.sx:[e.sx]],children:o.jsx(_e,{})})});function $r({icon:e=null,children:t=null,maxWidth:n=100,title:r=""}){return(t===0||t)&&o.jsxs(ve,{direction:"row",sx:{alignItems:"center",gap:1,maxWidth:n,overflow:"hidden"},children:[e,o.jsx(Q,{variant:"body2",title:r||(typeof t=="string"?t:void 0),sx:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:t})]})}const Tl=16/9,hn=292,En=189,Bt=336;function Ol(){const{t:e,search:t}=xe(),{get:n}=Hn(),r=Ve(),i=nt(r.breakpoints.down("md")),s=window.blocklet?.preferences?.homeBanner||[],{data:h=[],error:u,loading:p}=xt(async()=>{const x=await n(_n(Ce.blockletsPath,{didList:s.map(C=>C.did).join(",")}));return x?.dataList?s.map(C=>x.dataList.find(R=>R.did===C.did)):[]});u&&console.error("Get Banner Blocklets error:",u);const g={position:"absolute",top:"50%",transform:"translateY(-50%)",zIndex:100,cursor:"pointer",color:"text.hint"};return!u&&s.length>0?o.jsxs(o.Fragment,{children:[o.jsx(Q,{component:"h2",variant:"h2",sx:{mt:{xs:2,md:0},mb:3},children:e("explore.title")}),o.jsx(H,{sx:{height:{xs:"auto",md:hn},minHeight:hn,position:"relative",border:1,borderColor:"divider",borderRadius:3,overflow:"hidden"},children:p?o.jsxs(H,{sx:{p:5,display:{md:"flex"},gap:5,alignItems:"center",justifyContent:"center"},children:[o.jsx(Fe,{variant:"rounded",height:En,width:Bt}),o.jsxs(H,{sx:{flex:1,height:"100%"},children:[o.jsx(Fe,{variant:"text",height:50,width:100}),o.jsx(Fe,{variant:"text",height:40,width:"100%"}),o.jsx(Fe,{variant:"text",height:40,width:300}),o.jsxs(H,{sx:{display:"flex",gap:1,my:2},children:[o.jsx(Fe,{variant:"circular",height:20,width:20}),o.jsx(Fe,{variant:"text",height:20,width:50})]}),o.jsx(Fe,{variant:"rounded",height:30,width:100})]})]}):o.jsx(za,{showNav:!0,autoPlay:!0,slideDuration:i?500:1e3,slideInterval:5e3,showPlayButton:!1,showIndex:!1,showBullets:!1,showThumbnails:!1,showFullscreenButton:!1,renderLeftNav:x=>o.jsx(H,{onClick:x,sx:{display:{xs:"none",md:"block"}},children:o.jsx(cs,{sx:{...g,left:5}})}),renderRightNav:x=>o.jsx(H,{onClick:x,sx:{display:{xs:"none",md:"block"}},children:o.jsx(us,{sx:{...g,right:5}})}),items:s.map((x,C)=>({original:x.did,renderItem:()=>{const R=h[C]||{},T=x.cover||El(x.did,R.screenshots?.[0]),W=Di(T,r.breakpoints.values.md*2);return o.jsxs(ve,{direction:{xs:"column",md:"row"},onClick:()=>t.handleSearchSelect(R),sx:{height:{xs:"auto",md:hn},display:"flex",justifyContent:"center",alignItems:{xs:"flex-start",md:"center"},p:{xs:2,md:5},gap:{xs:2,md:5},cursor:"pointer","&::before":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`url("${W}")`,backgroundSize:"cover",filter:"blur(50px)",opacity:.15,zIndex:0}},children:[m(W),o.jsxs(ve,{sx:{flex:1,height:"100%",gap:3},children:[o.jsxs(H,{sx:{flex:1},children:[v(x.name||R.title||x.name),j(x.desc||R.description)]}),R.did&&w(R,x.baseNum),k(R)]})]})}}))})})]}):null;function m(x){return o.jsx(H,{sx:{borderRadius:2,overflow:"hidden",position:"relative",width:{xs:"100%",md:Bt}},children:o.jsx(Il,{url:x})})}function v(x){return o.jsx(Q,{variant:"h2",sx:{width:"100%"},children:x})}function j(x){return o.jsx(Q,{variant:"body2",sx:{color:"text.secondary",textAlign:"left",width:"100%",minHeight:70,maxHeight:71,pt:1,display:"-webkit-box",lineClamp:3,WebkitLineClamp:3,textWrap:"wrap",overflow:"hidden",WebkitBoxOrient:"vertical"},children:x})}function w(x,C=0){const{did:R,owner:T,stats:W}=x;return o.jsxs(H,{sx:{display:"flex",alignItems:"center",gap:2,color:"text.secondary"},children:[o.jsx($r,{icon:o.jsx(Wt,{src:T.avatar,did:R,size:20,variant:"circle"}),children:T.fullName}),o.jsx($r,{icon:o.jsx(Le,{icon:Oi}),title:`${W.downloads+C}`,children:Cl(W.downloads+C)})]})}function k(x){return o.jsx(Oe,{variant:"outlined",size:"small",onClick:()=>t.handleSearchSelect(x),sx:{width:"fit-content",textTransform:"none",borderRadius:1,borderColor:"grey.300","&:hover":{borderColor:"divider"}},children:e("explore.viewDetail")})}}const Cl=e=>Number.isNaN(e)?0:e<1e3?e:e<1e6?`${(e/1e3).toFixed(1)}k`:e<1e9?`${(e/1e6).toFixed(1)}m`:`${(e/1e9).toFixed(1)}b`,El=(e,t)=>e&&t?`/assets/${e}/screenshots/${t}`:"";function Il({url:e}){const[t,n]=L.useState(!0);return o.jsxs(o.Fragment,{children:[t&&o.jsx(Fe,{variant:"rectangular",sx:{width:{xs:"100%",md:Bt},height:{xs:"auto",md:En}}}),o.jsx(H,{component:"img",src:e,alt:"",onLoad:()=>n(!1),onError:()=>n(!1),sx:{display:t?"none":"block",width:{xs:"100%",md:Bt},height:{xs:"auto",md:En},borderRadius:2,border:1,borderColor:"divider",objectFit:"container",cursor:"pointer",aspectRatio:Tl}})]})}function Pl({title:e,blocklets:t}){const{blockletRender:n,serverVersion:r}=xe();return o.jsxs(H,{sx:{mt:3},children:[o.jsx(Q,{component:"h3",variant:"h3",sx:{mb:2},children:e}),o.jsx(vr,{container:!0,spacing:2,sx:{boxSizing:"border-box",maxWidth:"calc(100vw - 16px)"},children:t.map(i=>o.jsx(vr,{"data-blocklet-did":i.did,sx:{p:"2px"},size:{xs:12,md:6},children:o.jsx(H,{sx:{padding:"1px"},children:n({blocklet:i,blocklets:t,serverVersion:r})})},i.did))})]})}function Rl(){const{get:e}=Hn(),{t}=xe(),{data:n=[],error:r,loading:i}=xt(async()=>{const s=await e(Ce.explorePath);return Array.isArray(s)?s:[]});return r?o.jsx(Rn,{error:new Error(`Failed to fetch blocklets from ${Ce.explorePath}`)}):i?o.jsx(Bi,{mt:15}):o.jsxs(o.Fragment,{children:[o.jsx(Ol,{}),n.map(s=>s.blocklets?.length>0?o.jsx(Pl,{title:t(`explore.${s.type}`),blocklets:s.blocklets},s.type):null)]})}const fn="__FREE_TEXT__",Ur="__NO_RESULT__",pn=40;function $i({endpoint:e,t,locale:n,filters:r,handleKeyword:i,handleSearchSelect:s,...h}){const u=L.useRef(null),p=L.useRef(!1),[g,m]=L.useState(!1),[v,j]=L.useState(""),[w,k]=L.useState(!1),x=Hn(),[C,R]=L.useState(!1),T=h?.placeholder||t("common.searchStore"),W=async D=>{R(!0);const ae=await x.get(rt(e,_n(Ce.blockletsPath,D)));return R(!1),ae.dataList||[]},{data:X,run:J}=xt(D=>D?W({sortBy:Ce.nameDesc,page:1,pageSize:10,keyword:D,showResources:"true"}):Promise.resolve([]),{manual:!0});L.useEffect(()=>{R(!0),J(r.keyword),j(r.keyword||"")},[r.keyword,J]),ol("ctrl + k, command + k",D=>(D.stopPropagation(),D.preventDefault(),u.current?.querySelector("input")?.focus(),!1),{enableOnTags:["INPUT"]});const A=Jr(D=>J(D),{wait:300}),V={name:fn,title:v,did:""};let Z=[];return v&&(C?Z=[V]:X?.length?Z=[V,...X]:Z=[{name:Ur,title:t("blocklet.noResults"),did:""}]),o.jsxs(o.Fragment,{children:[o.jsxs(Ro,{fullScreen:!0,open:w,sx:{display:{md:"none"}},children:[o.jsxs(H,{sx:{p:2,pb:0,display:"flex",alignItems:"center",gap:2},children:[o.jsx(Zr,{fullWidth:!0,sx:{bgcolor:"grey.50",px:1,py:.5,".MuiInputBase-input":{p:1},".MuiOutlinedInput-notchedOutline":{borderRadius:"8px",borderColor:"transparent"},"&&:hover .MuiOutlinedInput-notchedOutline, &&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"divider",borderWidth:"1px"}},autoFocus:!0,placeholder:T,className:"bl-autocomplete-input",value:v,onChange:D=>re(D.target.value),startAdornment:pe(w),endAdornment:be()}),o.jsx(Oe,{variant:"outlined",onClick:()=>{k(!1),j(r.keyword||"")},children:t("common.cancel")})]}),o.jsx(ei,{sx:{p:.5},children:Z.map(D=>ge(D))})]}),o.jsx(H,{sx:{display:{sx:"block",md:"none"},paddingTop:1,opacity:.5},children:o.jsx(Le,{icon:nn,style:{fontSize:22,color:"inherit"},onClick:()=>k(!0)})}),o.jsx(ms,{ref:u,open:!!v&&g,size:"small",onOpen:()=>m(!0),onClose:(D,ae)=>{m(!1),ae==="selectOption"&&!p.current&&i(v)},onKeyDown:D=>{D.key==="Enter"&&!v&&$()},disableClearable:!0,inputValue:v,onInputChange:(D,ae)=>re(ae),isOptionEqualToValue:(D,ae)=>D.name===ae.name,getOptionLabel:D=>D.title,getOptionKey:D=>D.name,noOptionsText:t("blocklet.noResults"),autoHighlight:!0,forcePopupIcon:!1,slotProps:{paper:{sx:{mt:.5,minWidth:"100%",width:"fit-content","& > ul":{p:.5}}}},renderInput:D=>o.jsx(ti,{...D,InputProps:{...D.InputProps,autoFocus:!0,placeholder:T,className:"bl-autocomplete-input",value:v,startAdornment:pe(g),endAdornment:be()}}),filterOptions:D=>D,...h,options:Z,renderOption:(D,ae)=>ge(ae),value:V,sx:[{bgcolor:"grey.50",borderRadius:"8px",overflow:"hidden",".MuiOutlinedInput-notchedOutline":{borderRadius:"8px",borderColor:"transparent"},"&&:hover .MuiOutlinedInput-notchedOutline, &&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"divider",borderWidth:"1px"}},...Array.isArray(h.sx)?h.sx:[h.sx]]})]});function re(D){R(!0),j(D),p.current=!1,A.run(D)}function $(){k(!1),j(""),re(""),i("")}function Ee(D){D?.did?(k(!1),p.current=!0,j(""),s(D)):D.name===fn&&(k(!1),i(v))}function ge(D){return o.jsxs(Ft,{sx:{display:"flex",alignItems:"center",gap:1,p:1.5,borderRadius:"8px"},onClick:()=>Ee(D),children:[Se(D),o.jsxs(Q,{variant:"body1",children:[o.jsx(Q,{sx:{fontWeight:"fontWeightMedium",display:"flex",alignItems:"center",gap:1},children:D.title}),o.jsx(Q,{sx:{fontSize:"13px",color:"text.hint"},children:D.category?.locales?.[n||"en"]||""})]})]},D.did)}function Se(D){if([fn,Ur].includes(D.name))return o.jsx(H,{sx:{width:pn,p:"6px",display:"flex",justifyContent:"center",alignItems:"center",color:"text.hint",bgcolor:"grey.100",borderRadius:"8px"},children:o.jsx(Le,{icon:nn,style:{fontSize:28}})});let ae="";return D.logo&&(ae=rt(e,"assets",D.did,Di(D.logo,pn,D.version))),o.jsx(Wt,{src:ae,size:pn,style:{borderRadius:"8px",overflow:"hidden"}})}function pe(D=!0){return o.jsx(H,{sx:{display:"flex",pl:.5,alignItems:"center",color:"text.hint"},children:D&&v&&C?o.jsx(_e,{color:"inherit",size:16}):o.jsx(Le,{icon:nn,style:{fontSize:16,cursor:"default"}})})}function be(){return v?o.jsx(H,{sx:{display:"flex",alignItems:"center",color:"text.hint"},children:o.jsx(Le,{icon:qa,style:{fontSize:20,cursor:"pointer",color:"inherit"},onClick:()=>$()})}):null}}function _l({placeholder:e,...t}){const{search:n,t:r}=xe(),{filters:i,handleKeyword:s}=n,[h,u]=L.useState(i.keyword||""),p=Jr(s,{wait:300}),g=j=>{const{value:w}=j.target;u(w),p.run(w)},m=()=>{u(""),s("")};L.useEffect(()=>{u(i.keyword||"")},[i.keyword]);const v=e||r("common.searchPlaceholder");return o.jsx(Ml,{inputProps:{"data-cy":"search-blocklet"},startAdornment:o.jsx(wr,{position:"start",children:o.jsx(Ll,{sx:{fontSize:18,ml:-.5}})}),onChange:g,placeholder:v,value:h,title:v,"data-cy":"search",endAdornment:h&&o.jsx(wr,{position:"end",children:o.jsx(Dl,{"data-cy":"search-delete",onClick:m})}),...t})}const Ml=Ne(Zr)`
43
43
  background-color: ${e=>e.theme.palette.grey[50]};
44
44
  font-size: 14px;
45
45
  border-radius: 6px;
@@ -62,7 +62,7 @@ import{c0 as ze,r as L,cq as xt,ba as yo,bb as vo,cR as Ot,f3 as tt,cr as ht,f4
62
62
  color: ${e=>e.theme.palette.grey[500]};
63
63
  font-size: 16px;
64
64
  cursor: pointer;
65
- `;function zl(){const{search:e,t,endpoint:n,locale:r,getCategoryLocale:i,developerName:s,showResourcesSwitch:h,layout:u,baseSearch:p,categoryOptions:g,compact:m}=xe(),{filters:v,handleSort:j,handlePrice:w,handleDeveloper:k,handleSwitchShowResources:x,cleanFilter:C,handleCategory:_}=e,T=Li(t);return o.jsxs(ve,{className:"filter-bar",direction:{xs:"column",md:"row"},spacing:{xs:1,md:0},sx:{position:"sticky",top:0,zIndex:1e3,alignItems:{xs:"flex-start",md:"center"},justifyContent:"space-between",gap:2,pt:{xs:2,md:0},px:0,pb:m?2:3,backgroundColor:"background.default"},children:[!m&&o.jsx(Q,{variant:"h2",sx:{textTransform:"capitalize"},children:i(v.category)}),o.jsxs(ve,{direction:"row",sx:{flex:1,alignItems:"center",flexWrap:{xs:"wrap",md:"nowrap"},width:"100%",justifyContent:{xs:"flex-start",md:"flex-end"},gap:2},children:[u.showSearch?o.jsx(H,{sx:{flex:1,flexBasis:{xs:"100%",md:"auto"}},children:p?o.jsx(Rl,{}):o.jsx($i,{locale:r,endpoint:n,sx:{display:{md:"block",xs:"none"},flex:1,mr:1,width:"350px"},t,filters:e.filters,handleKeyword:e.handleKeyword,handleSearchSelect:e.handleSearchSelect})}):null,v.owner&&s&&o.jsx(xr,{label:t("blocklet.authorTag",{name:s}),size:"small",onDelete:()=>k("")}),v.resourceDid&&v.resourceBlocklet&&o.jsx(xr,{label:t("blocklet.resourceTag",{name:v.resourceBlocklet}),size:"small",onDelete:()=>C(["resourceDid","resourceBlocklet","showResources"])}),h?o.jsx(Kr,{checked:v.showResources!=="false",onChange:W=>x(W?"true":"false"),label:t("common.showResources")}):null,o.jsx(Kr,{checked:v.price==="free",onChange:W=>w(W?"free":""),label:t("blocklet.free")}),m&&o.jsx(H,{children:o.jsx(Cn,{value:v.category||g[0]?.value,options:g,placeholder:t("common.category"),onChange:W=>_(W)})}),o.jsx(Cn,{value:v.sortBy||T[0].value,options:T,placeholder:t("sort.sort"),onChange:W=>j(W)})]})]})}function Kr({checked:e,onChange:t,label:n}){const r=Ve();return o.jsx(ni,{sx:{m:0,p:0},className:"check-button",control:o.jsx(ri,{checked:e,icon:o.jsx(Le,{style:{padding:0,color:r.palette.text.secondary},icon:Ha}),checkedIcon:o.jsx(Le,{style:{padding:0,color:r.palette.primary.main},icon:Va}),size:"large",sx:{p:0,mr:1},onChange:i=>t(i.target.checked)}),label:n})}function Rt({children:e}){return o.jsxs(H,{sx:{display:"flex",mt:2,flexDirection:"column",alignItems:"center",justifyContent:"center",color:"text.hint"},children:[o.jsx(hs,{}),e]})}function Hr(){const{t:e}=xe();return o.jsx(Q,{style:{textAlign:"center"},variant:"subtitle2",children:e("blocklet.noResults")})}function mn({filterTip:e=!1,keywordTip:t=!1}){const{t:n,locale:r}=xe(),i=()=>r==="zh"?"、":" , ";return o.jsxs(H,{sx:{mt:1,display:"flex"},children:[o.jsx(Q,{style:{marginRight:"16px"},children:n("blocklet.emptyTip")}),e&&o.jsx(Q,{children:n("blocklet.filterTip")}),e&&t&&i(),t&&o.jsx(Q,{children:n("blocklet.keywordTip")})]})}function gn({primaryStart:e,primaryEnd:t,filter:n}){return o.jsxs(Q,{variant:"subtitle2",sx:{display:"flex",gap:.5,mx:.5},children:[o.jsx(Q,{children:e}),o.jsx(Q,{title:n,color:"primary",sx:{maxWidth:"30vw",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:n}),o.jsxs(Q,{children:[t," "]})]})}function Fl(){const{t:e,search:t,getCategoryLocale:n,selectedCategory:r}=xe(),{filters:i}=t,s=!!r||!!i.price;if(i.keyword&&s)return o.jsxs(Rt,{children:[o.jsx(gn,{primaryStart:e("blocklet.noBlockletPart1"),primaryEnd:e("blocklet.noBlockletPart2"),filter:i.keyword}),o.jsx(mn,{keywordTip:!0,filterTip:!0})]});if(i.keyword)return o.jsxs(Rt,{children:[o.jsx(gn,{primaryStart:e("blocklet.noBlockletPart1"),primaryEnd:e("blocklet.noBlockletPart2"),filter:i.keyword}),o.jsx(mn,{keywordTip:!0})]});if(s){const h=n(r);return o.jsxs(Rt,{children:[h?o.jsx(gn,{primaryStart:e("blocklet.noCategoryResults1"),primaryEnd:e("blocklet.noCategoryResults2"),filter:h}):o.jsx(Hr,{}),o.jsx(mn,{filterTip:!0})]})}return o.jsx(Rt,{children:o.jsx(Hr,{})})}const Wl=(e,t,n,r)=>Ts(async i=>{i||(n.currentPage=n.defaultCurrentPage);const{currentPage:s,pageSize:h}=n,u={...t,category:t.category==="All"?"":t.category,sortBy:Ce[t.sortBy],page:s,pageSize:h};r(null);const{data:p={}}=await e.get(Ce.blockletsPath,{params:u});return n.currentPage++,{page:s,pageSize:h,list:p?.dataList||[],total:p?.total||0}},{isNoMore:i=>i?i.page*i.pageSize>=i.total:!1,reloadDeps:[e,Ho(t)],onError:r});function Al(){const{storeApi:e,search:t,extraFilter:n,errors:r,updateDeveloperName:i}=xe(),{filters:s}=t,h=Mo({currentPage:Ce.currentPage,pageSize:pl()?Ce.mobilePageSize:Ce.pageSize,defaultCurrentPage:Ce.defaultCurrentPage}),[u,p]=L.useState(null),g=Wl(e,s,h,p),m=L.useMemo(()=>n?n(g.data?.list||[]):g.data?.list||[],[g.data,n]);return L.useEffect(()=>{const v=m.find(j=>j.owner.did===s.owner);i(v?.owner.fullName||v?.author.name||"")},[s.owner,m,i]),{blocklets:m,fetchBlockletsError:u,loadMore:g.loadMore,hasNextPage:!g.noMore,total:g.data?.total||0,loadings:{fetchBlockletsLoading:g.loading,loadingMore:g.loadingMore},errors:{...r,fetchBlockletsError:u}}}function Nl(){const{t:e,search:t,endpoint:n,blockletRender:r,serverVersion:i,minItemWidth:s,layout:h,baseSearch:u,compact:p}=xe(),{filters:g}=t,{blocklets:m,errors:v,loadMore:j,loadings:w,hasNextPage:k,total:x}=Al(),[C]=Ka({loading:w.fetchBlockletsLoading||w.loadingMore,hasNextPage:k,onLoadMore:j});if(v.fetchBlockletsError){const X=new Error(`Failed to fetch blocklets from ${n}: ${hl(v.fetchBlockletsError)}`);return o.jsx(_n,{error:X})}const _=u&&h.showSearch||!g.keyword;return o.jsxs(o.Fragment,{children:[_?o.jsx(zl,{}):o.jsxs(o.Fragment,{children:[o.jsx(Kn,{xs:o.jsx(Ni,{}),md:null}),W()]}),T(),!w.fetchBlockletsLoading&&k&&o.jsx(H,{ref:C,sx:{height:70,minHeight:70,display:"flex",justifyContent:"center",py:2,overflow:"hidden"},children:w.loadingMore?o.jsx(Re,{}):null})]});function T(){return w.fetchBlockletsLoading?o.jsx(Bi,{mt:15}):m.length?o.jsx(H,{className:"blocklet-list",sx:{display:"grid",gridTemplateColumns:{xs:"1fr",sm:`repeat(auto-fill, minmax(${s}px, 1fr))`},p:"2px",rowGap:2,columnGap:p?0:2},children:m.map(X=>o.jsx(H,{"data-blocklet-did":X.did,sx:{minWidth:{xs:"100%",sm:s},maxWidth:"calc(100vw - 32px)"},children:r({blocklet:X,blocklets:m,serverVersion:i})},X.did))}):o.jsx(Fl,{})}function W(){return o.jsxs(ve,{direction:"row",className:"search-result-title",sx:{alignItems:"center",justifyContent:"space-between",mb:2,mt:{xs:2,md:0}},children:[o.jsx(Q,{variant:"h3",title:g.keyword,sx:{maxWidth:"50vw",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e("blocklet.search",{keyword:g.keyword})}),o.jsx(Q,{variant:"body1",sx:{color:"text.hint",fontSize:13},children:e("blocklet.resultCount",{count:x})})]})}}function Bl(){const{t:e,selectedCategory:t,getCategoryLocale:n,locale:r,search:i}=xe(),{toggleOpen:s}=Un(),h=Io().arcSphere,u=!!window.blocklet?.navigation?.some(p=>p.section==="bottomNavigation");return o.jsxs(H,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[o.jsxs(Q,{variant:"body1",sx:{display:{xs:"flex",md:"none"},alignItems:"center",gap:1,py:2,fontWeight:"fontWeightMedium"},children:[o.jsx(Ai,{onClick:()=>s(!0),children:o.jsx(Po,{})}),n(t)||e("common.category")]}),h&&u&&o.jsx($i,{locale:r,endpoint:window.blocklet?.prefix||"/",sx:{display:{md:"block",xs:"none"},mr:1,width:"350px"},t:e,filters:i.filters,handleKeyword:i.handleKeyword,handleSearchSelect:i.handleSearchSelect})]})}function $l({menus:e=[],children:t=void 0}){const{search:n,layout:r,compact:i}=xe(),{filters:s}=n,h=L.useRef(null),u=s.category||s.keyword||s.price,p=e.find(g=>g.key===s.menu)?.key;return o.jsx(sl,{children:o.jsxs(Co,{FallbackComponent:_n,children:[!i&&o.jsx(Bl,{}),o.jsxs(H,{ref:h,className:"list-container",sx:{display:"flex",height:"100%",pt:{xs:0,md:i?0:5}},children:[o.jsx(jl,{menus:e}),o.jsxs(ve,{sx:[{height:"100%",position:"relative",flex:1},i?{overflowY:"auto",ml:-2,pr:1,pb:2}:{overflow:"visible"}],children:[p&&t?.(p),!p&&(r.showExplore&&!u?o.jsx(_l,{}):o.jsx(Nl,{}))]})]})]})})}function vc(e){const{menus:t,children:n,...r}=e,i=Ve(),s=jo(To({},i,{typography:{h1:{fontSize:32,fontWeight:700,lineHeight:1.375,textAlign:"left"},h2:{fontSize:24,fontWeight:700,lineHeight:1.3333333,textAlign:"left"},h3:{fontSize:18,fontWeight:600,lineHeight:1.5,textAlign:"left"},fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:500,fontWeightBold:700}}));return o.jsx(Oo,{theme:s,children:o.jsx(vl,{...r,children:o.jsx($l,{menus:t,children:n})})})}const xc={width:24,height:24,body:'<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M22 12.54c-1.804-.345-2.701-1.08-3.523-2.94c-.487.696-1.102 1.568-.92 2.4c.028.238-.32 1-.557 1H3c0 5.208 3.164 7 6.196 7c4.124.022 7.828-1.376 9.854-5c1.146-.101 2.296-1.505 2.95-2.46z"/><path d="M5 10h3v3H5zm3 0h3v3H8zm3 0h3v3h-3zM8 7h3v3H8zm3 0h3v3h-3zm0-3h3v3h-3zM4.571 18c1.5 0 2.047-.074 2.958-.78M10 16v.01"/></g>'},Ul=(e,t)=>!t||!e?!0:Sr.satisfies(Sr.coerce(e),t);function Kl({children:e,serverVersion:t="",requirementVersion:n="",...r}){const{t:i}=qe();return Ul(t,n)?e:o.jsx(Mn,{title:i("store.tooltip.upgradeServer",{serverVersion:t,version:n}),arrow:!0,children:o.jsx(Q,{children:o.jsx(Oe,{disabled:!0,variant:"outlined",...r,children:i("common.upgradeServer")})})})}Kl.propTypes={children:R.node.isRequired,serverVersion:R.string,requirementVersion:R.string};Ne("div")`
65
+ `;function zl(){const{search:e,t,endpoint:n,locale:r,getCategoryLocale:i,developerName:s,showResourcesSwitch:h,layout:u,baseSearch:p,categoryOptions:g,compact:m}=xe(),{filters:v,handleSort:j,handlePrice:w,handleDeveloper:k,handleSwitchShowResources:x,cleanFilter:C,handleCategory:R}=e,T=Li(t);return o.jsxs(ve,{className:"filter-bar",direction:{xs:"column",md:"row"},spacing:{xs:1,md:0},sx:{position:"sticky",top:0,zIndex:1e3,alignItems:{xs:"flex-start",md:"center"},justifyContent:"space-between",gap:2,pt:{xs:2,md:0},px:0,pb:m?2:3,backgroundColor:"background.default"},children:[!m&&o.jsx(Q,{variant:"h2",sx:{textTransform:"capitalize"},children:i(v.category)}),o.jsxs(ve,{direction:"row",sx:{flex:1,alignItems:"center",flexWrap:{xs:"wrap",md:"nowrap"},width:"100%",justifyContent:{xs:"flex-start",md:"flex-end"},gap:2},children:[u.showSearch?o.jsx(H,{sx:{flex:1,flexBasis:{xs:"100%",md:"auto"}},children:p?o.jsx(_l,{}):o.jsx($i,{locale:r,endpoint:n,sx:{display:{md:"block",xs:"none"},flex:1,mr:1,width:"350px"},t,filters:e.filters,handleKeyword:e.handleKeyword,handleSearchSelect:e.handleSearchSelect})}):null,v.owner&&s&&o.jsx(xr,{label:t("blocklet.authorTag",{name:s}),size:"small",onDelete:()=>k("")}),v.resourceDid&&v.resourceBlocklet&&o.jsx(xr,{label:t("blocklet.resourceTag",{name:v.resourceBlocklet}),size:"small",onDelete:()=>C(["resourceDid","resourceBlocklet","showResources"])}),h?o.jsx(Kr,{checked:v.showResources!=="false",onChange:W=>x(W?"true":"false"),label:t("common.showResources")}):null,o.jsx(Kr,{checked:v.price==="free",onChange:W=>w(W?"free":""),label:t("blocklet.free")}),m&&o.jsx(H,{children:o.jsx(Cn,{value:v.category||g[0]?.value,options:g,placeholder:t("common.category"),onChange:W=>R(W)})}),o.jsx(Cn,{value:v.sortBy||T[0].value,options:T,placeholder:t("sort.sort"),onChange:W=>j(W)})]})]})}function Kr({checked:e,onChange:t,label:n}){const r=Ve();return o.jsx(ni,{sx:{m:0,p:0},className:"check-button",control:o.jsx(ri,{checked:e,icon:o.jsx(Le,{style:{padding:0,color:r.palette.text.secondary},icon:Ha}),checkedIcon:o.jsx(Le,{style:{padding:0,color:r.palette.primary.main},icon:Va}),size:"large",sx:{p:0,mr:1},onChange:i=>t(i.target.checked)}),label:n})}function _t({children:e}){return o.jsxs(H,{sx:{display:"flex",mt:2,flexDirection:"column",alignItems:"center",justifyContent:"center",color:"text.hint"},children:[o.jsx(hs,{}),e]})}function Hr(){const{t:e}=xe();return o.jsx(Q,{style:{textAlign:"center"},variant:"subtitle2",children:e("blocklet.noResults")})}function mn({filterTip:e=!1,keywordTip:t=!1}){const{t:n,locale:r}=xe(),i=()=>r==="zh"?"、":" , ";return o.jsxs(H,{sx:{mt:1,display:"flex"},children:[o.jsx(Q,{style:{marginRight:"16px"},children:n("blocklet.emptyTip")}),e&&o.jsx(Q,{children:n("blocklet.filterTip")}),e&&t&&i(),t&&o.jsx(Q,{children:n("blocklet.keywordTip")})]})}function gn({primaryStart:e,primaryEnd:t,filter:n}){return o.jsxs(Q,{variant:"subtitle2",sx:{display:"flex",gap:.5,mx:.5},children:[o.jsx(Q,{children:e}),o.jsx(Q,{title:n,color:"primary",sx:{maxWidth:"30vw",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:n}),o.jsxs(Q,{children:[t," "]})]})}function Fl(){const{t:e,search:t,getCategoryLocale:n,selectedCategory:r}=xe(),{filters:i}=t,s=!!r||!!i.price;if(i.keyword&&s)return o.jsxs(_t,{children:[o.jsx(gn,{primaryStart:e("blocklet.noBlockletPart1"),primaryEnd:e("blocklet.noBlockletPart2"),filter:i.keyword}),o.jsx(mn,{keywordTip:!0,filterTip:!0})]});if(i.keyword)return o.jsxs(_t,{children:[o.jsx(gn,{primaryStart:e("blocklet.noBlockletPart1"),primaryEnd:e("blocklet.noBlockletPart2"),filter:i.keyword}),o.jsx(mn,{keywordTip:!0})]});if(s){const h=n(r);return o.jsxs(_t,{children:[h?o.jsx(gn,{primaryStart:e("blocklet.noCategoryResults1"),primaryEnd:e("blocklet.noCategoryResults2"),filter:h}):o.jsx(Hr,{}),o.jsx(mn,{filterTip:!0})]})}return o.jsx(_t,{children:o.jsx(Hr,{})})}const Wl=(e,t,n,r)=>Ts(async i=>{i||(n.currentPage=n.defaultCurrentPage);const{currentPage:s,pageSize:h}=n,u={...t,category:t.category==="All"?"":t.category,sortBy:Ce[t.sortBy],page:s,pageSize:h};r(null);const{data:p={}}=await e.get(Ce.blockletsPath,{params:u});return n.currentPage++,{page:s,pageSize:h,list:p?.dataList||[],total:p?.total||0}},{isNoMore:i=>i?i.page*i.pageSize>=i.total:!1,reloadDeps:[e,Ho(t)],onError:r});function Al(){const{storeApi:e,search:t,extraFilter:n,errors:r,updateDeveloperName:i}=xe(),{filters:s}=t,h=Mo({currentPage:Ce.currentPage,pageSize:pl()?Ce.mobilePageSize:Ce.pageSize,defaultCurrentPage:Ce.defaultCurrentPage}),[u,p]=L.useState(null),g=Wl(e,s,h,p),m=L.useMemo(()=>n?n(g.data?.list||[]):g.data?.list||[],[g.data,n]);return L.useEffect(()=>{const v=m.find(j=>j.owner.did===s.owner);i(v?.owner.fullName||v?.author.name||"")},[s.owner,m,i]),{blocklets:m,fetchBlockletsError:u,loadMore:g.loadMore,hasNextPage:!g.noMore,total:g.data?.total||0,loadings:{fetchBlockletsLoading:g.loading,loadingMore:g.loadingMore},errors:{...r,fetchBlockletsError:u}}}function Nl(){const{t:e,search:t,endpoint:n,blockletRender:r,serverVersion:i,minItemWidth:s,layout:h,baseSearch:u,compact:p}=xe(),{filters:g}=t,{blocklets:m,errors:v,loadMore:j,loadings:w,hasNextPage:k,total:x}=Al(),[C]=Ka({loading:w.fetchBlockletsLoading||w.loadingMore,hasNextPage:k,onLoadMore:j});if(v.fetchBlockletsError){const X=new Error(`Failed to fetch blocklets from ${n}: ${hl(v.fetchBlockletsError)}`);return o.jsx(Rn,{error:X})}const R=u&&h.showSearch||!g.keyword;return o.jsxs(o.Fragment,{children:[R?o.jsx(zl,{}):o.jsxs(o.Fragment,{children:[o.jsx(Kn,{xs:o.jsx(Ni,{}),md:null}),W()]}),T(),!w.fetchBlockletsLoading&&k&&o.jsx(H,{ref:C,sx:{height:70,minHeight:70,display:"flex",justifyContent:"center",py:2,overflow:"hidden"},children:w.loadingMore?o.jsx(_e,{}):null})]});function T(){return w.fetchBlockletsLoading?o.jsx(Bi,{mt:15}):m.length?o.jsx(H,{className:"blocklet-list",sx:{display:"grid",gridTemplateColumns:{xs:"1fr",sm:`repeat(auto-fill, minmax(${s}px, 1fr))`},p:"2px",rowGap:2,columnGap:p?0:2},children:m.map(X=>o.jsx(H,{"data-blocklet-did":X.did,sx:{minWidth:{xs:"100%",sm:s},maxWidth:"calc(100vw - 32px)"},children:r({blocklet:X,blocklets:m,serverVersion:i})},X.did))}):o.jsx(Fl,{})}function W(){return o.jsxs(ve,{direction:"row",className:"search-result-title",sx:{alignItems:"center",justifyContent:"space-between",mb:2,mt:{xs:2,md:0}},children:[o.jsx(Q,{variant:"h3",title:g.keyword,sx:{maxWidth:"50vw",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e("blocklet.search",{keyword:g.keyword})}),o.jsx(Q,{variant:"body1",sx:{color:"text.hint",fontSize:13},children:e("blocklet.resultCount",{count:x})})]})}}function Bl(){const{t:e,selectedCategory:t,getCategoryLocale:n,locale:r,search:i}=xe(),{toggleOpen:s}=Un(),h=Io().arcSphere,u=!!window.blocklet?.navigation?.some(p=>p.section==="bottomNavigation");return o.jsxs(H,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[o.jsxs(Q,{variant:"body1",sx:{display:{xs:"flex",md:"none"},alignItems:"center",gap:1,py:2,fontWeight:"fontWeightMedium"},children:[o.jsx(Ai,{onClick:()=>s(!0),children:o.jsx(Po,{})}),n(t)||e("common.category")]}),h&&u&&o.jsx($i,{locale:r,endpoint:window.blocklet?.prefix||"/",sx:{display:{md:"block",xs:"none"},mr:1,width:"350px"},t:e,filters:i.filters,handleKeyword:i.handleKeyword,handleSearchSelect:i.handleSearchSelect})]})}function $l({menus:e=[],children:t=void 0}){const{search:n,layout:r,compact:i}=xe(),{filters:s}=n,h=L.useRef(null),u=s.category||s.keyword||s.price,p=e.find(g=>g.key===s.menu)?.key;return o.jsx(sl,{children:o.jsxs(Co,{FallbackComponent:Rn,children:[!i&&o.jsx(Bl,{}),o.jsxs(H,{ref:h,className:"list-container",sx:{display:"flex",height:"100%",pt:{xs:0,md:i?0:5}},children:[o.jsx(jl,{menus:e}),o.jsxs(ve,{sx:[{height:"100%",position:"relative",flex:1},i?{overflowY:"auto",ml:-2,pr:1,pb:2}:{overflow:"visible"}],children:[p&&t?.(p),!p&&(r.showExplore&&!u?o.jsx(Rl,{}):o.jsx(Nl,{}))]})]})]})})}function vc(e){const{menus:t,children:n,...r}=e,i=Ve(),s=jo(To({},i,{typography:{h1:{fontSize:32,fontWeight:700,lineHeight:1.375,textAlign:"left"},h2:{fontSize:24,fontWeight:700,lineHeight:1.3333333,textAlign:"left"},h3:{fontSize:18,fontWeight:600,lineHeight:1.5,textAlign:"left"},fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:500,fontWeightBold:700}}));return o.jsx(Oo,{theme:s,children:o.jsx(vl,{...r,children:o.jsx($l,{menus:t,children:n})})})}const xc={width:24,height:24,body:'<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M22 12.54c-1.804-.345-2.701-1.08-3.523-2.94c-.487.696-1.102 1.568-.92 2.4c.028.238-.32 1-.557 1H3c0 5.208 3.164 7 6.196 7c4.124.022 7.828-1.376 9.854-5c1.146-.101 2.296-1.505 2.95-2.46z"/><path d="M5 10h3v3H5zm3 0h3v3H8zm3 0h3v3h-3zM8 7h3v3H8zm3 0h3v3h-3zm0-3h3v3h-3zM4.571 18c1.5 0 2.047-.074 2.958-.78M10 16v.01"/></g>'},Ul=(e,t)=>!t||!e?!0:Sr.satisfies(Sr.coerce(e),t);function Kl({children:e,serverVersion:t="",requirementVersion:n="",...r}){const{t:i}=qe();return Ul(t,n)?e:o.jsx(Mn,{title:i("store.tooltip.upgradeServer",{serverVersion:t,version:n}),arrow:!0,children:o.jsx(Q,{children:o.jsx(Oe,{disabled:!0,variant:"outlined",...r,children:i("common.upgradeServer")})})})}Kl.propTypes={children:_.node.isRequired,serverVersion:_.string,requirementVersion:_.string};Ne("div")`
66
66
  background-color: transparent !important;
67
67
  & > :not(.Mui-disabled) {
68
68
  position: relative;
@@ -111,7 +111,7 @@ import{c0 as ze,r as L,cq as xt,ba as yo,bb as vo,cR as Ot,f3 as tt,cr as ht,f4
111
111
  color: ${e=>e.theme.palette.common.white}!important;
112
112
  }
113
113
  }
114
- `;const Vr=(e="")=>e.replace(/(<([^>]+)>)/gi,"").trim(),Hl=(e="")=>{const t=parseInt(e,10);return Number.isNaN(t)?e:t<1e3?t:t<1e6?`${(t/1e3).toFixed(1)}k`:t<1e9?`${(t/1e6).toFixed(1)}m`:`${(t/1e9).toFixed(1)}b`};function In({title:e,sx:t,children:n,slotProps:r,fontSize:i=12,fontWeight:s=500,color:h="text.contrast",...u}){return e?o.jsx(Mn,{title:e,placement:"top",...u,slotProps:{popper:{...r?.popper,sx:Vo({[`& .${ii.tooltip}`]:{fontSize:i,fontWeight:s,boxShadow:2,marginBottom:"6px !important",borderRadius:"8px",cursor:"default",color:h,display:"flex",alignItems:"center"}},r?.popper?.sx)}},children:n}):n}function Mt({icon:e=null,children:t=null,maxWidth:n=100,title:r=void 0,sx:i={}}){return(t===0||t)&&o.jsxs(ve,{direction:"row",sx:[{alignItems:"center",gap:.5},{maxWidth:n,overflow:"hidden"},...Array.isArray(i)?i:[i]],children:[e,o.jsx(In,{title:r||(typeof t=="string"?t:""),children:o.jsx(Q,{variant:"body2",sx:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",cursor:"default"},children:t})})]})}function wc({...e}){const{title:t,description:n="",cover:r="",avatar:i,author:s,download:h,did:u,official:p,buttonText:g="Install",buttonDisabled:m,buttonLoading:v,button:j,onButtonClick:w=()=>{},onMainClick:k,className:x,ref:C,icons:_,status:T,...W}=e,X=Ve(),J=($,Ee=()=>!1)=>(ge,...Se)=>{const pe=$ instanceof Function;(Ee()||pe)&&(ge.preventDefault(),ge.stopPropagation(),pe&&$(...Se))},A=k&&J(k),V=J(w,()=>!!(j||m||v)),Z=L.isValidElement(t)?{children:t}:{title:Vr(t),dangerouslySetInnerHTML:{__html:t}},re=L.isValidElement(n)?{children:n}:{title:Vr(n),dangerouslySetInnerHTML:{__html:n}};return o.jsxs(qo,{variant:"outlined",onClick:A,...W,sx:{p:{xs:2,md:3},borderRadius:1,...W.sx},children:[o.jsxs(ve,{direction:"row",sx:{flex:1,gap:1,alignItems:"center",overflow:"hidden","& > *":{flexShrink:0}},children:[o.jsx(Wt,{src:r,did:u,size:48,variant:"rounded",style:{borderRadius:"8px",overflow:"hidden"}}),o.jsx(Q,{className:"blocklet-title",...Z,sx:[{fontWeight:"fontWeightMedium",fontSize:16,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",cursor:"default",pl:.5,"&&":{flexShrink:1}},...Array.isArray(Z.sx)?Z.sx:[Z.sx]]}),o.jsxs(H,{sx:{flex:1,display:"flex",alignItems:"center",justifyContent:"flex-start",gap:1},children:[p&&o.jsx(In,{title:p.tooltip,children:o.jsx(gs,{sx:{color:p.color||"#D97706",fontSize:p.size||18}})}),_?.map($=>o.jsx(In,{title:$.title,children:typeof $.icon=="string"?o.jsx(Et,{icon:$.icon,style:{color:$.color}}):$.icon},$.key))]}),w&&o.jsxs(At,{variant:"outlined",size:"small",disabled:m||v,style:{color:X.palette.text.primary,borderColor:X.palette.grey[300],borderRadius:8,fontSize:13,fontWeight:X.typography.fontWeightMedium},onClick:V,children:[v&&o.jsx(Re,{size:15,style:{marginRight:3,color:"inherit"}}),g]}),j]}),o.jsx(ve,{sx:{py:2},children:o.jsx(Q,{className:"blocklet-description",variant:"body2",...re,sx:[{color:"text.secondary",display:"-webkit-box",lineClamp:2,WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",cursor:"default",height:40},...Array.isArray(re.sx)?re.sx:[re.sx]]})}),o.jsxs(ve,{direction:"row",sx:{alignItems:"center",gap:2,color:"text.secondary"},children:[o.jsx(Mt,{icon:o.jsx(Wt,{src:i,did:u,size:20,variant:"circle"}),maxWidth:200,children:s}),o.jsx(Mt,{icon:o.jsx(Et,{icon:Oi}),title:h,children:Hl(h)}),T?.filter($=>$.align!=="right").map($=>o.jsx(Mt,{icon:typeof $.icon=="string"?o.jsx(Et,{icon:$.icon}):$.icon,title:$.title,maxWidth:$.maxWidth,children:$.text},$.key)),o.jsx(H,{sx:{flex:1}}),T?.filter($=>$.align==="right").map($=>o.jsx(Mt,{icon:typeof $.icon=="string"?o.jsx(Et,{icon:$.icon}):$.icon,title:$.title,maxWidth:$.maxWidth,sx:{color:$.color},children:$.text},$.key))]})]})}const Sc=Ne("div")`
114
+ `;const Vr=(e="")=>e.replace(/(<([^>]+)>)/gi,"").trim(),Hl=(e="")=>{const t=parseInt(e,10);return Number.isNaN(t)?e:t<1e3?t:t<1e6?`${(t/1e3).toFixed(1)}k`:t<1e9?`${(t/1e6).toFixed(1)}m`:`${(t/1e9).toFixed(1)}b`};function In({title:e,sx:t,children:n,slotProps:r,fontSize:i=12,fontWeight:s=500,color:h="text.contrast",...u}){return e?o.jsx(Mn,{title:e,placement:"top",...u,slotProps:{popper:{...r?.popper,sx:Vo({[`& .${ii.tooltip}`]:{fontSize:i,fontWeight:s,boxShadow:2,marginBottom:"6px !important",borderRadius:"8px",cursor:"default",color:h,display:"flex",alignItems:"center"}},r?.popper?.sx)}},children:n}):n}function Mt({icon:e=null,children:t=null,maxWidth:n=100,title:r=void 0,sx:i={}}){return(t===0||t)&&o.jsxs(ve,{direction:"row",sx:[{alignItems:"center",gap:.5},{maxWidth:n,overflow:"hidden"},...Array.isArray(i)?i:[i]],children:[e,o.jsx(In,{title:r||(typeof t=="string"?t:""),children:o.jsx(Q,{variant:"body2",sx:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",cursor:"default"},children:t})})]})}function wc({...e}){const{title:t,description:n="",cover:r="",avatar:i,author:s,download:h,did:u,official:p,buttonText:g="Install",buttonDisabled:m,buttonLoading:v,button:j,onButtonClick:w=()=>{},onMainClick:k,className:x,ref:C,icons:R,status:T,...W}=e,X=Ve(),J=($,Ee=()=>!1)=>(ge,...Se)=>{const pe=$ instanceof Function;(Ee()||pe)&&(ge.preventDefault(),ge.stopPropagation(),pe&&$(...Se))},A=k&&J(k),V=J(w,()=>!!(j||m||v)),Z=L.isValidElement(t)?{children:t}:{title:Vr(t),dangerouslySetInnerHTML:{__html:t}},re=L.isValidElement(n)?{children:n}:{title:Vr(n),dangerouslySetInnerHTML:{__html:n}};return o.jsxs(qo,{variant:"outlined",onClick:A,...W,sx:{p:{xs:2,md:3},borderRadius:1,...W.sx},children:[o.jsxs(ve,{direction:"row",sx:{flex:1,gap:1,alignItems:"center",overflow:"hidden","& > *":{flexShrink:0}},children:[o.jsx(Wt,{src:r,did:u,size:48,variant:"rounded",style:{borderRadius:"8px",overflow:"hidden"}}),o.jsx(Q,{className:"blocklet-title",...Z,sx:[{fontWeight:"fontWeightMedium",fontSize:16,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",cursor:"default",pl:.5,"&&":{flexShrink:1}},...Array.isArray(Z.sx)?Z.sx:[Z.sx]]}),o.jsxs(H,{sx:{flex:1,display:"flex",alignItems:"center",justifyContent:"flex-start",gap:1},children:[p&&o.jsx(In,{title:p.tooltip,children:o.jsx(gs,{sx:{color:p.color||"#D97706",fontSize:p.size||18}})}),R?.map($=>o.jsx(In,{title:$.title,children:typeof $.icon=="string"?o.jsx(Et,{icon:$.icon,style:{color:$.color}}):$.icon},$.key))]}),w&&o.jsxs(At,{variant:"outlined",size:"small",disabled:m||v,style:{color:X.palette.text.primary,borderColor:X.palette.grey[300],borderRadius:8,fontSize:13,fontWeight:X.typography.fontWeightMedium},onClick:V,children:[v&&o.jsx(_e,{size:15,style:{marginRight:3,color:"inherit"}}),g]}),j]}),o.jsx(ve,{sx:{py:2},children:o.jsx(Q,{className:"blocklet-description",variant:"body2",...re,sx:[{color:"text.secondary",display:"-webkit-box",lineClamp:2,WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",cursor:"default",height:40},...Array.isArray(re.sx)?re.sx:[re.sx]]})}),o.jsxs(ve,{direction:"row",sx:{alignItems:"center",gap:2,color:"text.secondary"},children:[o.jsx(Mt,{icon:o.jsx(Wt,{src:i,did:u,size:20,variant:"circle"}),maxWidth:200,children:s}),o.jsx(Mt,{icon:o.jsx(Et,{icon:Oi}),title:h,children:Hl(h)}),T?.filter($=>$.align!=="right").map($=>o.jsx(Mt,{icon:typeof $.icon=="string"?o.jsx(Et,{icon:$.icon}):$.icon,title:$.title,maxWidth:$.maxWidth,children:$.text},$.key)),o.jsx(H,{sx:{flex:1}}),T?.filter($=>$.align==="right").map($=>o.jsx(Mt,{icon:typeof $.icon=="string"?o.jsx(Et,{icon:$.icon}):$.icon,title:$.title,maxWidth:$.maxWidth,sx:{color:$.color},children:$.text},$.key))]})]})}const Sc=Ne("div")`
115
115
  background-color: transparent !important;
116
116
  & > :not(.Mui-disabled) {
117
117
  position: relative;
@@ -270,4 +270,4 @@ import{c0 as ze,r as L,cq as xt,ba as yo,bb as vo,cR as Ot,f3 as tt,cr as ht,f4
270
270
  color: ${e=>e.theme.palette.grey[600]};
271
271
  font-size: 12px;
272
272
  }
273
- `;R.string||R.node,R.string,R.string||R.node,R.string,R.string,R.bool,R.bool,R.element,R.string,R.func,R.func,R.string;const kc={meta:R.object.isRequired,onCancel:R.func.isRequired};function Vl({action:e,onSelect:t,onNext:n}){const{t:r}=qe(),i=[{action:"purchase",title:r("store.purchase.purchase.title"),description:r("store.purchase.purchase.description")},{action:"verify",title:r("store.purchase.verify.title"),description:r("store.purchase.verify.description")}];return o.jsxs(o.Fragment,{children:[o.jsx(Go,{children:i.map(s=>o.jsxs(oi,{button:!0,selected:e===s.action,onClick:()=>t(s.action),children:[o.jsx(Xo,{sx:{minWidth:48},children:s.action==="purchase"?o.jsx(bs,{style:{color:e==="purchase"?kr.primary.main:"#AAA",fontSize:32}}):o.jsx(ys,{style:{color:e==="verify"?kr.primary.main:"#AAA",fontSize:32}})}),o.jsx(Yo,{primary:s.title,secondary:s.description})]},s.action))}),n&&o.jsx(At,{fullWidth:!0,disabled:!e,variant:"contained",color:"primary",style:{marginTop:16},onClick:n,children:r("common.next")})]})}Vl.propTypes={action:R.oneOf(["both","purchase","verify"]).isRequired,onSelect:R.func.isRequired,onNext:R.func.isRequired};function ql({disabled:e=!1,storeList:t=[],teamDid:n,onAdd:r=()=>{},scope:i="",hiddenChildren:s=!1,open:h=!1,onClose:u=()=>{}}){const{api:p}=Ln(),[g,m]=L.useState(!1),[v,j]=L.useState(!0),[w,k]=L.useState(!1),[x,C]=L.useState(""),[_,T]=L.useState(""),{t:W}=qe(),X=async()=>{m(!0);try{const{decoded:A}=es(x,t);await p.addBlockletStore({input:{teamDid:n,url:A,scope:i}}),r(A),k(!1),u()}catch(A){const V=`${W("store.blockletRegistry.addFailed")} ${ft(A)}`;T(V)}finally{m(!1)}},J=()=>{k(!1),u()};return o.jsxs(o.Fragment,{children:[!s&&o.jsxs(oi,{button:!0,disabled:e,sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:1},onClick:()=>{k(!0)},children:[o.jsx(vs,{font:!0}),o.jsx(Q,{variant:"inherit",children:W("store.blockletRegistry.addRegistry")})]}),o.jsxs(Qo,{title:W("store.blockletRegistry.addRegistry"),fullWidth:!0,maxWidth:"md",open:h||w,onClose:J,PaperProps:{style:{minHeight:"auto"}},actions:o.jsxs(o.Fragment,{children:[o.jsx(At,{onClick:A=>{A.stopPropagation(),J()},color:"inherit",children:W("common.cancel")}),o.jsxs(At,{onClick:A=>{A.stopPropagation(),X()},color:"primary","data-cy":"install-blocklet-next-step",disabled:g||!x||v,variant:"contained",autoFocus:!0,children:[g&&o.jsx(Re,{size:16}),W("common.confirm")]})]}),children:[o.jsx("div",{style:{paddingTop:12,overflowY:"hidden"},children:o.jsx(Jo,{component:"div",children:o.jsx(Q,{component:"div",children:o.jsx(ti,{label:W("store.blockletRegistry.registryUrl"),autoComplete:"off",variant:"outlined",name:"url","data-cy":"add-blocklet-store-url",fullWidth:!0,value:x,onChange:A=>{T(null);let V=!1;A.target.value.trim()||(V=!0),A.target.value.trim()||T(W("store.blockletRegistry.registryUrlEmpty")),C(A.target.value),j(V)},disabled:g,onKeyPress:A=>{A.key==="Enter"&&(A.preventDefault(),A.target.value.trim()?X():T(W("store.blockletRegistry.registryUrlEmpty")))}})})})}),!!_&&o.jsx(Zo,{severity:"error",style:{width:"100%"},children:_})]})]})}ql.propTypes={teamDid:R.string.isRequired,disabled:R.bool,storeList:R.array,onAdd:R.func,scope:R.string,hiddenChildren:R.bool,open:R.bool,onClose:R.func};var bn,qr;function Gl(){if(qr)return bn;qr=1;var e={};const{NODE_MODES:t}=ts();return bn={isInServerlessMode:({mode:r,previousMode:i}={})=>r===t.SERVERLESS||i===t.SERVERLESS||e.ABT_NODE_DEBUG_AS_SERVERLESS==="true"},bn}var Xl=Gl();function Vn({store:e,teamDid:t,onDelete:n=()=>{},children:r=null,projectId:i="",scope:s=""}){const{api:h}=Ln(),{t:u}=qe(),p=ps(),[g,m]=L.useState(!1),[v,j]=L.useState(null),w=Ve(),k=()=>{m(!1),j(null)},x=async()=>{try{m(!0),await h.deleteBlockletStore({input:{teamDid:t,url:e.url,projectId:i,scope:s}}),await p?.actions?.refreshBlocklet(),n&&typeof n=="function"&&n()}catch(T){Ke.error(`Remove Blocklet Store Error: ${ft(T)}`)}finally{m(!1),j(null)}},C={keyName:e.url,title:u("store.blockletRegistry.deleteRegistry"),description:u("store.blockletRegistry.deleteDesc",{name:`<b>${e.url}</b>`,color:w.palette.error.main}),confirmPlaceholder:u("store.blockletRegistry.confirmDesc",{name:e.url}),confirm:u("common.delConfirm"),cancel:u("common.cancel"),onConfirm:x,onCancel:k},_=T=>{e.protected||(T.stopPropagation(),j(C))};return o.jsxs(o.Fragment,{children:[r?o.jsx("span",{onClick:_,children:r}):o.jsx(Oe,{"data-cy":"store-action-delete",color:"primary",disabled:g,onClick:_,size:"small",children:o.jsx(li,{sx:{zoom:.95}})}),v&&o.jsx(ws,{keyName:v.keyName,title:v.title,description:v.description,confirmPlaceholder:v.confirmPlaceholder,confirm:v.confirm,cancel:v.cancel,params:v.params,onConfirm:v.onConfirm,onCancel:v.onCancel})]})}Vn.propTypes={children:R.node,teamDid:R.string.isRequired,store:R.object.isRequired,onDelete:R.func,projectId:R.string,scope:R.string};const Yl=({store:e,userDid:t})=>{const n=window.blocklet?.tenantMode!==ns.BLOCKLET_TENANT_MODES.MULTIPLE;return e.protected?!1:e.scope&&e.scope===t?!0:n?e.scope==="studio":!1};function Ui({connectedStore:e,onDisconnect:t=()=>{},onDelete:n=()=>{},store:r,teamDid:i,projectId:s=""}){const[h,u]=L.useState(null),p=!!h,{t:g}=qe(),{session:m}=rs(),[v,j]=L.useState(!1),w=T=>{T.stopPropagation(),window.open(gt(`${rt(r.url,"search?menu=my-blocklets")}`,{allowDomains:null}))},k=T=>{u(T.currentTarget)},x=()=>{u(null)},C=()=>{j(!1),t()},_=[{label:g("common.visitStore"),action:w,icon:ai},{label:g("common.disconnect"),action:()=>{x(),j(!0)},icon:Es,hidden:!e}];return o.jsxs(o.Fragment,{children:[o.jsx(Oe,{ref:h,color:"primary",onClick:k,size:"small",children:o.jsx(Ss,{sx:{zoom:.95}})}),o.jsxs(is,{anchorEl:h,open:p,onClose:x,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:[_.map(T=>T.hidden?null:o.jsxs(Ft,{dense:!0,onClick:T.action,disabled:T.disabled,children:[T.icon&&o.jsx(T.icon,{color:"action",sx:{marginRight:1}}),o.jsx(H,{sx:{color:"action"},children:T.label})]},T.label)),Yl({store:r,userDid:m?.user?.did})&&o.jsx(Vn,{store:r,onDelete:n,teamDid:i,projectId:s,scope:r.scope||"studio",children:o.jsxs(Ft,{dense:!0,disabled:r.protected,children:[o.jsx(li,{sx:{color:r.protected?"action":"error.main",marginRight:1}}),o.jsx(H,{sx:{color:r.protected?"action":"error.main"},children:g("common.delete")})]})})]}),v&&o.jsx(os,{displayError:!0,title:`${g("common.disconnect")} ${r.name}`,description:g("blocklet.publish.disconnectStoreTip"),confirm:g("common.confirm"),onConfirm:C,onCancel:()=>j(!1)})]})}Ui.propTypes={connectedStore:R.object.isRequired,onDisconnect:R.func,onDelete:R.func,store:R.object.isRequired,teamDid:R.string.isRequired,projectId:R.string};function Ql({messageType:e,onOpen:t,onClose:n}){const r=L.useRef(null),i=L.useRef(null),s=async u=>{setTimeout(()=>{try{n?.()}catch{}},10*1e3),r.current&&(clearInterval(i.current),r.current.close());const p=Math.random().toString(36).slice(2);r.current=window.open(`${si.WELLKNOWN_SERVICE_PATH_PREFIX}/open-window?key=${p}`,"_blank"),t?.(r.current),i.current=setInterval(()=>{(!r.current||r.current.closed)&&(r.current=null,clearInterval(i.current),setTimeout(()=>{n?.()},1100))},200),await Promise.resolve(u(r.current,g=>{if(!r.current){localStorage.setItem(`open-window-url-${p}`,JSON.stringify({url:g,time:Date.now()}));return}r.current.location.href=gt(g,{allowDomains:null})}))},h=ht(u=>{const{type:p,error:g}=u.data;r.current&&p===e&&g&&(Ke.error(g),n?.())});return L.useEffect(()=>(window.addEventListener("message",h),()=>{window.removeEventListener("message",h)}),[h]),s}function Pn({connectedStore:e,sx:t={},...n}){return o.jsx(ss,{sx:{width:24,height:24,...t},src:rt(e.storeUrl,si.WELLKNOWN_SERVICE_PATH_PREFIX,`/user/avatar/${e.developerDid}?imageFilter=resize&w=120&h=120`),...n})}Pn.propTypes={connectedStore:R.object.isRequired,sx:R.object};function Ki({storeUrl:e,storeName:t,published:n,did:r="",version:i=""}){const{t:s}=qe(),h=()=>{window.open(gt(`${rt(e,r&&i?`/blocklets/${r}/${i}`:"/search?menu=my-blocklets")}`,{allowDomains:null}))};return o.jsxs(H,{children:[o.jsx(Q,{variant:"subtitle2",children:s(n?"blocklet.publish.publishToStoreSuccess":"blocklet.publish.uploadToStoreSuccess",{name:t})}),o.jsx(Oe,{size:"small",sx:{mt:1},onClick:h,variant:"contained",color:"success",children:s("common.visitTarget",{name:t})})]})}Ki.propTypes={storeName:R.string.isRequired,storeUrl:R.string.isRequired,published:R.bool.isRequired,did:R.string,version:R.string};const Gr={CONNECT:"connect",SELECT:"select"},Xr=as(({className:e,...t})=>o.jsx(Mn,{...t,classes:{popper:e}}))(({theme:e})=>({[`& .${ii.tooltip}`]:{backgroundColor:"#fff",color:"rgba(0, 0, 0, 0.87)",borderRadius:8,padding:e.spacing(2),fontSize:e.typography.pxToRem(12),border:"1px solid rgba(0,0,0,0.08)",boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.05)"}}));function Jl({teamDid:e,projectId:t="",releaseId:n="",store:r,warningList:i=[],onDelete:s=()=>{},kind:h="store",published:u=!1,connectedStore:p=null,releaseType:g="",onPublish:m=()=>{},onOpenConnectStore:v=()=>{},onSelectConnectStore:j=()=>{},behavior:w=Gr.CONNECT,scope:k="",version:x=""}){const{t:C}=qe(),{api:_,info:T,inService:W}=Ln(),[X,J]=L.useState(!1),A=Ql({messageType:"connect-store-message",onOpen:()=>J(!0),onClose:()=>J(!1)}),V=h==="publish",Z=!!p,re=D=>{if(D.stopPropagation(),V){window.open(gt(rt(r.url,"developer/blocklets"),{allowDomains:null}));return}window.open(gt(r.url,{allowDomains:null}))},$=()=>{if(w===Gr.SELECT){j(r);return}A(async(D,ae)=>{try{const Te=await _.connectToStore({input:{did:e,storeUrl:r.url,storeId:r.id,storeName:r.name,projectId:t}});if(!Te?.url){Ke.error("failed to connect to store");return}ae(Te.url),await v({did:e,projectId:t,storeId:r.id}),J(!1)}catch(Te){const ue=ft(Te);Ke.error(ue),J(!1)}})},Ee=async()=>{try{await _.disconnectFromStore({input:{did:e,storeId:r.id,projectId:t,storeScope:k}}),s()}catch(D){Ke.error(ft(D))}},ge=()=>{J(!0),_.publishToStore({input:{did:e,storeId:r.id,storeName:r.name,projectId:t,releaseId:n,type:g}}).then(D=>{Ke.success(o.jsx(Ki,{storeName:p.storeName,storeUrl:p.storeUrl,did:t,version:x,published:D.url==="published"}),{duration:1e4}),m?.(null)}).catch(D=>{Ke.error(ft(D)),m?.(D)}).finally(()=>{J(!1)})};L.useEffect(()=>{Z&&J(!1)},[Z]);const Se=L.useMemo(()=>!(W&&Xl.isInServerlessMode(T)),[W,T]),pe=i.length>0,be=o.jsxs(Oe,{sx:{paddingLeft:2,paddingRight:2,fontSize:15,width:130,height:"100%"},disabled:pe,onClick:ge,children:[X?o.jsx(Re,{sx:{marginRight:1},size:16}):o.jsx(Os,{sx:{marginRight:1,fontSize:20}}),C("common.upload")]});return o.jsxs(H,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",overflow:"hidden",width:"100%"},children:[!V&&X&&o.jsx(Re,{sx:{marginRight:2},size:16}),o.jsxs(H,{sx:{flexShrink:1,display:"flex",flexDirection:"column",overflow:"hidden",flex:1},children:[o.jsx(H,{sx:{display:"flex",flexDirection:"row"},children:o.jsx(Q,{component:"span",sx:{fontSize:16,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},variant:"subtitle1",children:r.name})}),o.jsx(Q,{sx:{fontSize:14,opacity:.5,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},component:"span",variant:"inherit",children:`${r.url}`})]}),o.jsxs(H,{sx:{flex:1,display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"center"},children:[p&&o.jsx(Xr,{placement:"top",title:o.jsxs(H,{children:[o.jsx(Q,{component:"span",variant:"caption",sx:{opacity:.7},children:C("blocklet.publish.developerInfo")}),o.jsxs(H,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:1,mt:1},children:[o.jsx(Pn,{connectedStore:p,sx:{width:42,height:42}}),o.jsxs(H,{sx:{flex:1},children:[o.jsx(Q,{component:"span",variant:"subtitle1",children:p.developerName}),o.jsx(ls,{size:14,copyable:!0,compact:!0,responsive:!1,did:p.developerDid})]})]})]}),children:o.jsx(H,{children:o.jsx(Pn,{connectedStore:p,sx:{marginRight:1,cursor:"help"}})})}),V&&o.jsxs(jr,{disabled:X,variant:"outlined",sx:{height:38},size:"small",children:[!Z&&o.jsxs(Oe,{sx:{paddingLeft:2,paddingRight:2,fontSize:15,width:130},onClick:$,children:[X?o.jsx(Re,{sx:{marginRight:1},size:16}):o.jsx(Is,{sx:{marginRight:1}}),C("common.connect")]}),Z&&u&&o.jsxs(Oe,{disabled:!0,sx:{paddingLeft:2,paddingRight:2,fontSize:15,width:130},children:[X?o.jsx(Re,{sx:{marginRight:1},size:16}):o.jsx(xs,{sx:{marginRight:1}}),C("common.uploaded")]}),Z&&!u&&(pe?o.jsx(Xr,{title:o.jsxs(H,{children:[o.jsx(H,{sx:{color:"error.main",mb:.5},children:C("blocklet.publish.storeRule.warning")}),i.map((D,ae)=>o.jsxs(H,{sx:{color:"error.main"},children:[ae+1,". ",D]},D))]}),children:o.jsx("div",{children:be})}):be),o.jsx(Ui,{projectId:t,connectedStore:p,store:r,onDelete:s,teamDid:e,onDisconnect:Ee})]}),!V&&o.jsxs(jr,{disabled:X,variant:"outlined",sx:{height:36},size:"small",children:[o.jsx(Oe,{"data-cy":"store-open-url",onClick:re,children:o.jsx(ai,{sx:{zoom:.9}})}),!r.protected&&Se&&o.jsx(Vn,{store:r,onDelete:s,teamDid:e,scope:""})]})]})]})}Jl.propTypes={kind:R.string,teamDid:R.string.isRequired,published:R.bool,connectedStore:R.shape({storeName:R.string,storeId:R.string,storeUrl:R.string,developerDid:R.string,developerName:R.string}),warningList:R.array,projectId:R.string,releaseId:R.string,releaseType:R.string,store:R.shape({id:R.string.isRequired,name:R.string.isRequired,url:R.string.isRequired,protected:R.bool,connected:R.bool}).isRequired,scope:R.string,onDelete:R.func,onPublish:R.func,onOpenConnectStore:R.func,behavior:R.string,onSelectConnectStore:R.func,version:R.string};export{ql as A,Vl as C,bc as S,vc as _,Kl as a,Jl as b,kc as c,xc as d,Sc as e,Xl as f,gc as g,wc as s};
273
+ `;_.string||_.node,_.string,_.string||_.node,_.string,_.string,_.bool,_.bool,_.element,_.string,_.func,_.func,_.string;const kc={meta:_.object.isRequired,onCancel:_.func.isRequired};function Vl({action:e,onSelect:t,onNext:n}){const{t:r}=qe(),i=[{action:"purchase",title:r("store.purchase.purchase.title"),description:r("store.purchase.purchase.description")},{action:"verify",title:r("store.purchase.verify.title"),description:r("store.purchase.verify.description")}];return o.jsxs(o.Fragment,{children:[o.jsx(Go,{children:i.map(s=>o.jsxs(oi,{button:!0,selected:e===s.action,onClick:()=>t(s.action),children:[o.jsx(Xo,{sx:{minWidth:48},children:s.action==="purchase"?o.jsx(bs,{style:{color:e==="purchase"?kr.primary.main:"#AAA",fontSize:32}}):o.jsx(ys,{style:{color:e==="verify"?kr.primary.main:"#AAA",fontSize:32}})}),o.jsx(Yo,{primary:s.title,secondary:s.description})]},s.action))}),n&&o.jsx(At,{fullWidth:!0,disabled:!e,variant:"contained",color:"primary",style:{marginTop:16},onClick:n,children:r("common.next")})]})}Vl.propTypes={action:_.oneOf(["both","purchase","verify"]).isRequired,onSelect:_.func.isRequired,onNext:_.func.isRequired};function ql({disabled:e=!1,storeList:t=[],teamDid:n,onAdd:r=()=>{},scope:i="",hiddenChildren:s=!1,open:h=!1,onClose:u=()=>{}}){const{api:p}=Ln(),[g,m]=L.useState(!1),[v,j]=L.useState(!0),[w,k]=L.useState(!1),[x,C]=L.useState(""),[R,T]=L.useState(""),{t:W}=qe(),X=async()=>{m(!0);try{const{decoded:A}=es(x,t);await p.addBlockletStore({input:{teamDid:n,url:A,scope:i}}),r(A),k(!1),u()}catch(A){const V=`${W("store.blockletRegistry.addFailed")} ${ft(A)}`;T(V)}finally{m(!1)}},J=()=>{k(!1),u()};return o.jsxs(o.Fragment,{children:[!s&&o.jsxs(oi,{button:!0,disabled:e,sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:1},onClick:()=>{k(!0)},children:[o.jsx(vs,{font:!0}),o.jsx(Q,{variant:"inherit",children:W("store.blockletRegistry.addRegistry")})]}),o.jsxs(Qo,{title:W("store.blockletRegistry.addRegistry"),fullWidth:!0,maxWidth:"md",open:h||w,onClose:J,PaperProps:{style:{minHeight:"auto"}},actions:o.jsxs(o.Fragment,{children:[o.jsx(At,{onClick:A=>{A.stopPropagation(),J()},color:"inherit",children:W("common.cancel")}),o.jsxs(At,{onClick:A=>{A.stopPropagation(),X()},color:"primary","data-cy":"install-blocklet-next-step",disabled:g||!x||v,variant:"contained",autoFocus:!0,children:[g&&o.jsx(_e,{size:16}),W("common.confirm")]})]}),children:[o.jsx("div",{style:{paddingTop:12,overflowY:"hidden"},children:o.jsx(Jo,{component:"div",children:o.jsx(Q,{component:"div",children:o.jsx(ti,{label:W("store.blockletRegistry.registryUrl"),autoComplete:"off",variant:"outlined",name:"url","data-cy":"add-blocklet-store-url",fullWidth:!0,value:x,onChange:A=>{T(null);let V=!1;A.target.value.trim()||(V=!0),A.target.value.trim()||T(W("store.blockletRegistry.registryUrlEmpty")),C(A.target.value),j(V)},disabled:g,onKeyPress:A=>{A.key==="Enter"&&(A.preventDefault(),A.target.value.trim()?X():T(W("store.blockletRegistry.registryUrlEmpty")))}})})})}),!!R&&o.jsx(Zo,{severity:"error",style:{width:"100%"},children:R})]})]})}ql.propTypes={teamDid:_.string.isRequired,disabled:_.bool,storeList:_.array,onAdd:_.func,scope:_.string,hiddenChildren:_.bool,open:_.bool,onClose:_.func};var bn,qr;function Gl(){if(qr)return bn;qr=1;var e={};const{NODE_MODES:t}=ts();return bn={isInServerlessMode:({mode:r,previousMode:i}={})=>r===t.SERVERLESS||i===t.SERVERLESS||e.ABT_NODE_DEBUG_AS_SERVERLESS==="true"},bn}var Xl=Gl();function Vn({store:e,teamDid:t,onDelete:n=()=>{},children:r=null,projectId:i="",scope:s=""}){const{api:h}=Ln(),{t:u}=qe(),p=ps(),[g,m]=L.useState(!1),[v,j]=L.useState(null),w=Ve(),k=()=>{m(!1),j(null)},x=async()=>{try{m(!0),await h.deleteBlockletStore({input:{teamDid:t,url:e.url,projectId:i,scope:s}}),await p?.actions?.refreshBlocklet(),n&&typeof n=="function"&&n()}catch(T){Ke.error(`Remove Blocklet Store Error: ${ft(T)}`)}finally{m(!1),j(null)}},C={keyName:e.url,title:u("store.blockletRegistry.deleteRegistry"),description:u("store.blockletRegistry.deleteDesc",{name:`<b>${e.url}</b>`,color:w.palette.error.main}),confirmPlaceholder:u("store.blockletRegistry.confirmDesc",{name:e.url}),confirm:u("common.delConfirm"),cancel:u("common.cancel"),onConfirm:x,onCancel:k},R=T=>{e.protected||(T.stopPropagation(),j(C))};return o.jsxs(o.Fragment,{children:[r?o.jsx("span",{onClick:R,children:r}):o.jsx(Oe,{"data-cy":"store-action-delete",color:"primary",disabled:g,onClick:R,size:"small",children:o.jsx(li,{sx:{zoom:.95}})}),v&&o.jsx(ws,{keyName:v.keyName,title:v.title,description:v.description,confirmPlaceholder:v.confirmPlaceholder,confirm:v.confirm,cancel:v.cancel,params:v.params,onConfirm:v.onConfirm,onCancel:v.onCancel})]})}Vn.propTypes={children:_.node,teamDid:_.string.isRequired,store:_.object.isRequired,onDelete:_.func,projectId:_.string,scope:_.string};const Yl=({store:e,userDid:t})=>{const n=window.blocklet?.tenantMode!==ns.BLOCKLET_TENANT_MODES.MULTIPLE;return e.protected?!1:e.scope&&e.scope===t?!0:n?e.scope==="studio":!1};function Ui({connectedStore:e,onDisconnect:t=()=>{},onDelete:n=()=>{},store:r,teamDid:i,projectId:s=""}){const[h,u]=L.useState(null),p=!!h,{t:g}=qe(),{session:m}=rs(),[v,j]=L.useState(!1),w=T=>{T.stopPropagation(),window.open(gt(`${rt(r.url,"search?menu=my-blocklets")}`,{allowDomains:null}))},k=T=>{u(T.currentTarget)},x=()=>{u(null)},C=()=>{j(!1),t()},R=[{label:g("common.visitStore"),action:w,icon:ai},{label:g("common.disconnect"),action:()=>{x(),j(!0)},icon:Es,hidden:!e}];return o.jsxs(o.Fragment,{children:[o.jsx(Oe,{ref:h,color:"primary",onClick:k,size:"small",children:o.jsx(Ss,{sx:{zoom:.95}})}),o.jsxs(is,{anchorEl:h,open:p,onClose:x,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:[R.map(T=>T.hidden?null:o.jsxs(Ft,{dense:!0,onClick:T.action,disabled:T.disabled,children:[T.icon&&o.jsx(T.icon,{color:"action",sx:{marginRight:1}}),o.jsx(H,{sx:{color:"action"},children:T.label})]},T.label)),Yl({store:r,userDid:m?.user?.did})&&o.jsx(Vn,{store:r,onDelete:n,teamDid:i,projectId:s,scope:r.scope||"studio",children:o.jsxs(Ft,{dense:!0,disabled:r.protected,children:[o.jsx(li,{sx:{color:r.protected?"action":"error.main",marginRight:1}}),o.jsx(H,{sx:{color:r.protected?"action":"error.main"},children:g("common.delete")})]})})]}),v&&o.jsx(os,{displayError:!0,title:`${g("common.disconnect")} ${r.name}`,description:g("blocklet.publish.disconnectStoreTip"),confirm:g("common.confirm"),onConfirm:C,onCancel:()=>j(!1)})]})}Ui.propTypes={connectedStore:_.object.isRequired,onDisconnect:_.func,onDelete:_.func,store:_.object.isRequired,teamDid:_.string.isRequired,projectId:_.string};function Ql({messageType:e,onOpen:t,onClose:n}){const r=L.useRef(null),i=L.useRef(null),s=async u=>{setTimeout(()=>{try{n?.()}catch{}},10*1e3),r.current&&(clearInterval(i.current),r.current.close());const p=Math.random().toString(36).slice(2);r.current=window.open(`${si.WELLKNOWN_SERVICE_PATH_PREFIX}/open-window?key=${p}`,"_blank"),t?.(r.current),i.current=setInterval(()=>{(!r.current||r.current.closed)&&(r.current=null,clearInterval(i.current),setTimeout(()=>{n?.()},1100))},200),await Promise.resolve(u(r.current,g=>{if(!r.current){localStorage.setItem(`open-window-url-${p}`,JSON.stringify({url:g,time:Date.now()}));return}r.current.location.href=gt(g,{allowDomains:null})}))},h=ht(u=>{const{type:p,error:g}=u.data;r.current&&p===e&&g&&(Ke.error(g),n?.())});return L.useEffect(()=>(window.addEventListener("message",h),()=>{window.removeEventListener("message",h)}),[h]),s}function Pn({connectedStore:e,sx:t={},...n}){return o.jsx(ss,{sx:{width:24,height:24,...t},src:rt(e.storeUrl,si.WELLKNOWN_SERVICE_PATH_PREFIX,`/user/avatar/${e.developerDid}?imageFilter=resize&w=120&h=120`),...n})}Pn.propTypes={connectedStore:_.object.isRequired,sx:_.object};function Ki({storeUrl:e,storeName:t,published:n,did:r="",version:i=""}){const{t:s}=qe(),h=()=>{window.open(gt(`${rt(e,r&&i?`/blocklets/${r}/${i}`:"/search?menu=my-blocklets")}`,{allowDomains:null}))};return o.jsxs(H,{children:[o.jsx(Q,{variant:"subtitle2",children:s(n?"blocklet.publish.publishToStoreSuccess":"blocklet.publish.uploadToStoreSuccess",{name:t})}),o.jsx(Oe,{size:"small",sx:{mt:1},onClick:h,variant:"contained",color:"success",children:s("common.visitTarget",{name:t})})]})}Ki.propTypes={storeName:_.string.isRequired,storeUrl:_.string.isRequired,published:_.bool.isRequired,did:_.string,version:_.string};const Gr={CONNECT:"connect",SELECT:"select"},Xr=as(({className:e,...t})=>o.jsx(Mn,{...t,classes:{popper:e}}))(({theme:e})=>({[`& .${ii.tooltip}`]:{backgroundColor:"#fff",color:"rgba(0, 0, 0, 0.87)",borderRadius:8,padding:e.spacing(2),fontSize:e.typography.pxToRem(12),border:"1px solid rgba(0,0,0,0.08)",boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.05)"}}));function Jl({teamDid:e,projectId:t="",releaseId:n="",store:r,warningList:i=[],onDelete:s=()=>{},kind:h="store",published:u=!1,connectedStore:p=null,releaseType:g="",onPublish:m=()=>{},onOpenConnectStore:v=()=>{},onSelectConnectStore:j=()=>{},behavior:w=Gr.CONNECT,scope:k="",version:x=""}){const{t:C}=qe(),{api:R,info:T,inService:W}=Ln(),[X,J]=L.useState(!1),A=Ql({messageType:"connect-store-message",onOpen:()=>J(!0),onClose:()=>J(!1)}),V=h==="publish",Z=!!p,re=D=>{if(D.stopPropagation(),V){window.open(gt(rt(r.url,"developer/blocklets"),{allowDomains:null}));return}window.open(gt(r.url,{allowDomains:null}))},$=()=>{if(w===Gr.SELECT){j(r);return}A(async(D,ae)=>{try{const Te=await R.connectToStore({input:{did:e,storeUrl:r.url,storeId:r.id,storeName:r.name,projectId:t}});if(!Te?.url){Ke.error("failed to connect to store");return}ae(Te.url),await v({did:e,projectId:t,storeId:r.id}),J(!1)}catch(Te){const ue=ft(Te);Ke.error(ue),J(!1)}})},Ee=async()=>{try{await R.disconnectFromStore({input:{did:e,storeId:r.id,projectId:t,storeScope:k}}),s()}catch(D){Ke.error(ft(D))}},ge=()=>{J(!0),R.publishToStore({input:{did:e,storeId:r.id,storeName:r.name,projectId:t,releaseId:n,type:g}}).then(D=>{Ke.success(o.jsx(Ki,{storeName:p.storeName,storeUrl:p.storeUrl,did:t,version:x,published:D.url==="published"}),{duration:1e4}),m?.(null)}).catch(D=>{Ke.error(ft(D)),m?.(D)}).finally(()=>{J(!1)})};L.useEffect(()=>{Z&&J(!1)},[Z]);const Se=L.useMemo(()=>!(W&&Xl.isInServerlessMode(T)),[W,T]),pe=i.length>0,be=o.jsxs(Oe,{sx:{paddingLeft:2,paddingRight:2,fontSize:15,width:130,height:"100%"},disabled:pe,onClick:ge,children:[X?o.jsx(_e,{sx:{marginRight:1},size:16}):o.jsx(Os,{sx:{marginRight:1,fontSize:20}}),C("common.upload")]});return o.jsxs(H,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",overflow:"hidden",width:"100%"},children:[!V&&X&&o.jsx(_e,{sx:{marginRight:2},size:16}),o.jsxs(H,{sx:{flexShrink:1,display:"flex",flexDirection:"column",overflow:"hidden",flex:1},children:[o.jsx(H,{sx:{display:"flex",flexDirection:"row"},children:o.jsx(Q,{component:"span",sx:{fontSize:16,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},variant:"subtitle1",children:r.name})}),o.jsx(Q,{sx:{fontSize:14,opacity:.5,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},component:"span",variant:"inherit",children:`${r.url}`})]}),o.jsxs(H,{sx:{flex:1,display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"center"},children:[p&&o.jsx(Xr,{placement:"top",title:o.jsxs(H,{children:[o.jsx(Q,{component:"span",variant:"caption",sx:{opacity:.7},children:C("blocklet.publish.developerInfo")}),o.jsxs(H,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:1,mt:1},children:[o.jsx(Pn,{connectedStore:p,sx:{width:42,height:42}}),o.jsxs(H,{sx:{flex:1},children:[o.jsx(Q,{component:"span",variant:"subtitle1",children:p.developerName}),o.jsx(ls,{size:14,copyable:!0,compact:!0,responsive:!1,did:p.developerDid})]})]})]}),children:o.jsx(H,{children:o.jsx(Pn,{connectedStore:p,sx:{marginRight:1,cursor:"help"}})})}),V&&o.jsxs(jr,{disabled:X,variant:"outlined",sx:{height:38},size:"small",children:[!Z&&o.jsxs(Oe,{sx:{paddingLeft:2,paddingRight:2,fontSize:15,width:130},onClick:$,children:[X?o.jsx(_e,{sx:{marginRight:1},size:16}):o.jsx(Is,{sx:{marginRight:1}}),C("common.connect")]}),Z&&u&&o.jsxs(Oe,{disabled:!0,sx:{paddingLeft:2,paddingRight:2,fontSize:15,width:130},children:[X?o.jsx(_e,{sx:{marginRight:1},size:16}):o.jsx(xs,{sx:{marginRight:1}}),C("common.uploaded")]}),Z&&!u&&(pe?o.jsx(Xr,{title:o.jsxs(H,{children:[o.jsx(H,{sx:{color:"error.main",mb:.5},children:C("blocklet.publish.storeRule.warning")}),i.map((D,ae)=>o.jsxs(H,{sx:{color:"error.main"},children:[ae+1,". ",D]},D))]}),children:o.jsx("div",{children:be})}):be),o.jsx(Ui,{projectId:t,connectedStore:p,store:r,onDelete:s,teamDid:e,onDisconnect:Ee})]}),!V&&o.jsxs(jr,{disabled:X,variant:"outlined",sx:{height:36},size:"small",children:[o.jsx(Oe,{"data-cy":"store-open-url",onClick:re,children:o.jsx(ai,{sx:{zoom:.9}})}),!r.protected&&Se&&o.jsx(Vn,{store:r,onDelete:s,teamDid:e,scope:""})]})]})]})}Jl.propTypes={kind:_.string,teamDid:_.string.isRequired,published:_.bool,connectedStore:_.shape({storeName:_.string,storeId:_.string,storeUrl:_.string,developerDid:_.string,developerName:_.string}),warningList:_.array,projectId:_.string,releaseId:_.string,releaseType:_.string,store:_.shape({id:_.string.isRequired,name:_.string.isRequired,url:_.string.isRequired,protected:_.bool,connected:_.bool}).isRequired,scope:_.string,onDelete:_.func,onPublish:_.func,onOpenConnectStore:_.func,behavior:_.string,onSelectConnectStore:_.func,version:_.string};export{ql as A,Vl as C,bc as S,vc as _,Kl as a,Jl as b,kc as c,xc as d,Sc as e,Xl as f,gc as g,wc as s};