@abtnode/webapp 1.17.8-beta-20260205-074433-9d1114cf → 1.17.8

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 (188) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{AdapterDayjs-IaUSFlm4.js → AdapterDayjs-CXgBZcQU.js} +1 -1
  4. package/dist/assets/{Add-D1qtasGt.js → Add-B-lIYZBc.js} +1 -1
  5. package/dist/assets/ArrowDropDown-C1ynmK1V.js +1 -0
  6. package/dist/assets/{Autocomplete-DTKIP70z.js → Autocomplete-BHqH72uG.js} +1 -1
  7. package/dist/assets/{Breadcrumbs-DYu6Ih3W.js → Breadcrumbs-CpZ2DeBG.js} +1 -1
  8. package/dist/assets/{ButtonGroup-BmKH0AR_.js → ButtonGroup-CXwzM552.js} +1 -1
  9. package/dist/assets/{CSSTransition-By0IzEZz.js → CSSTransition-hTlKGu0l.js} +1 -1
  10. package/dist/assets/{CallMerge-CBsd3n82.js → CallMerge-V8M4tzIM.js} +1 -1
  11. package/dist/assets/{CardContent-uQht8_nO.js → CardContent-MdG6Fo_s.js} +1 -1
  12. package/dist/assets/{ChevronLeft-YHLhmhXY.js → ChevronLeft-BPs9Erbv.js} +1 -1
  13. package/dist/assets/{ChevronRight-Bry_Rp2n.js → ChevronRight-C_yvQN06.js} +1 -1
  14. package/dist/assets/{Clear-C9b1QEIp.js → Clear-XkW6YpHE.js} +1 -1
  15. package/dist/assets/{Delete-BR43GocU.js → Delete-CCasVLgy.js} +1 -1
  16. package/dist/assets/{DeleteOutline-BknUUIOQ.js → DeleteOutline-CocEa6gq.js} +1 -1
  17. package/dist/assets/{Done-D38mSa7e.js → Done-DfHgd6VN.js} +1 -1
  18. package/dist/assets/{Edit-Cezv9GPx.js → Edit-CGdW8_LW.js} +1 -1
  19. package/dist/assets/{ErrorOutline-DSSui5bs.js → ErrorOutline-D3nJBXYA.js} +1 -1
  20. package/dist/assets/{FilterList-ByiwX7w6.js → FilterList-BiaeVs0C.js} +1 -1
  21. package/dist/assets/{Google-DW20cCdB.js → Google-D9HgkG4U.js} +1 -1
  22. package/dist/assets/{HelpOutline-C8Ii5pdp.js → HelpOutline-s5mQqTw1.js} +1 -1
  23. package/dist/assets/{Launch-BjUxWdZ_.js → Launch-DHnB5pzO.js} +1 -1
  24. package/dist/assets/{Link-rwof5_jN.js → Link-DUSQD8mc.js} +1 -1
  25. package/dist/assets/{ListItemButton-CLYRGxS5.js → ListItemButton-BIo7wBNv.js} +1 -1
  26. package/dist/assets/{ListSubheader-BrZqDYTB.js → ListSubheader-rZisNvzB.js} +1 -1
  27. package/dist/assets/{LoadingButton-CEhniQ1z.js → LoadingButton-egcGN7yK.js} +1 -1
  28. package/dist/assets/{LottiePlayer.modern-BOVXfijb.js → LottiePlayer.modern-DuQJ5g1j.js} +1 -1
  29. package/dist/assets/{MoreVert-YQMFdAci.js → MoreVert-Cw1fjU9L.js} +1 -1
  30. package/dist/assets/{OpenInNew-D__db3UD.js → OpenInNew-2i4mGCRx.js} +1 -1
  31. package/dist/assets/{Refresh-CEyibS7R.js → Refresh-BIkqgW7p.js} +1 -1
  32. package/dist/assets/{Replay-DJEt53W0.js → Replay-3PaYn2br.js} +1 -1
  33. package/dist/assets/{Search-B-Kpov_x.js → Search-mc0LftDb.js} +1 -1
  34. package/dist/assets/{Stepper-BkvTFi6y.js → Stepper-CnqNXODv.js} +1 -1
  35. package/dist/assets/{TableSearch-QTEwGVjE.js → TableSearch-ZIwL7jK3.js} +1 -1
  36. package/dist/assets/{ToggleButtonGroup-leiBEwd_.js → ToggleButtonGroup-DeGfqT0G.js} +1 -1
  37. package/dist/assets/{UnfoldMore-BtGzVWNn.js → UnfoldMore-DFA58tLQ.js} +1 -1
  38. package/dist/assets/{Verified-GvGnFXRL.js → Verified-se8hbTqT.js} +1 -1
  39. package/dist/assets/{VerifiedUser-D8u3Hj9z.js → VerifiedUser-8QA2XNlm.js} +1 -1
  40. package/dist/assets/{ViewList-CI4jp_14.js → ViewList-DgyKMmIc.js} +1 -1
  41. package/dist/assets/{Visibility-Bmnp5dVh.js → Visibility-BqBwXDHr.js} +1 -1
  42. package/dist/assets/{_createAggregator-DcJLZ0MZ.js → _createAggregator-BS_ZCLsv.js} +1 -1
  43. package/dist/assets/{actions-CCjvPhEB.js → actions-BuX7-i-0.js} +1 -1
  44. package/dist/assets/{actions-DaRBxjah.js → actions-DR8B4Taf.js} +2 -2
  45. package/dist/assets/{actions-CAvjo_Ow.js → actions-Zy-oEKVg.js} +1 -1
  46. package/dist/assets/{agreement-B5uBdrUm.js → agreement-3SHQ4MuR.js} +1 -1
  47. package/dist/assets/api-DBq1KtcA.js +1 -0
  48. package/dist/assets/{appearance-BWTNqmDR.js → appearance-CRQaeOoe.js} +1 -1
  49. package/dist/assets/{audit-logs-BAppUNme.js → audit-logs-BGRhRsNS.js} +2 -2
  50. package/dist/assets/{babel-BttEwFDF.js → babel-BILHfcMU.js} +1 -1
  51. package/dist/assets/{base-chart-nzAgs-vq.js → base-chart-Cp-etWR-.js} +1 -1
  52. package/dist/assets/{blocklet-mQW2VRE3.js → blocklet-D7q_eJsm.js} +1 -1
  53. package/dist/assets/{chain-Bajmovwi.js → chain-DDmwEbOF.js} +1 -1
  54. package/dist/assets/{click-to-copy-BJwHXTAU.js → click-to-copy-wk3E32eY.js} +1 -1
  55. package/dist/assets/cloneDeep-BEJXcFgb.js +1 -0
  56. package/dist/assets/{config-navigation-DhuiKMvJ.js → config-navigation-iUuwjLA_.js} +17 -17
  57. package/dist/assets/{connect-lnVGHfaY.js → connect-DGRM2e01.js} +1 -1
  58. package/dist/assets/{connect-to-HWRwV1Zb.js → connect-to-BdinmIba.js} +3 -3
  59. package/dist/assets/{delete-confirm-D-pHWenk.js → delete-confirm-C8X53PNk.js} +1 -1
  60. package/dist/assets/{depsEqual-BTB47kAG.js → depsEqual-FU6HOfMn.js} +1 -1
  61. package/dist/assets/{detail-DPUG43Cf.js → detail-BX_klHKR.js} +2 -2
  62. package/dist/assets/domains-DlW2t7QG.js +28 -0
  63. package/dist/assets/{download-B_GCffOL.js → download-CHMW-VV9.js} +1 -1
  64. package/dist/assets/{edit.svg-DgkWXClh.js → edit.svg-CBqxioRV.js} +1 -1
  65. package/dist/assets/emotion-cache.browser.esm-D6kXFXIA.js +1 -0
  66. package/dist/assets/engine-hQAyActy.js +1 -0
  67. package/dist/assets/{federated-detail-dialog-BAAYkStt.js → federated-detail-dialog-C93dA_OW.js} +1 -1
  68. package/dist/assets/{get-safe-url-BmWKThk5.js → get-safe-url-n4nPkbEQ.js} +1 -1
  69. package/dist/assets/getValidReactChildren-dJeDeNuf.js +1 -0
  70. package/dist/assets/{graphql-DRZgDRnJ.js → graphql-BOG1t7Ob.js} +1 -1
  71. package/dist/assets/{graphqlMode-D6Ry3UyA.js → graphqlMode-BuOU6E0N.js} +2 -2
  72. package/dist/assets/{html-title-BO3r7YSd.js → html-title-DwrWBQUt.js} +1 -1
  73. package/dist/assets/{iframe-DaoKgbiQ.js → iframe-B0inMXzK.js} +1 -1
  74. package/dist/assets/{index-BsfgDen6.js → index-0lc-age1.js} +1 -1
  75. package/dist/assets/index-1nsTMIEw.js +1 -0
  76. package/dist/assets/{index-xie30Dh0.js → index-2jRJYLHP.js} +1 -1
  77. package/dist/assets/{index-DwPMkrzc.js → index-2tPqycMJ.js} +2 -2
  78. package/dist/assets/{index-Ohp5zy8G.js → index-4OvGI3tM.js} +1 -1
  79. package/dist/assets/{index-BA_zqSiS.js → index-7TgPZijh.js} +1 -1
  80. package/dist/assets/{index-IQ8RBJFB.js → index-8K8V7S7h.js} +1 -1
  81. package/dist/assets/{index-DgAeLiKC.js → index-B01of1n7.js} +1 -1
  82. package/dist/assets/{index-PZ2fx_h4.js → index-B8jKymjp.js} +3 -3
  83. package/dist/assets/{index-DUa2rZxk.js → index-B9oDQ5jy.js} +20 -20
  84. package/dist/assets/{index-CcXfL7E7.js → index-BDQexjSt.js} +1 -1
  85. package/dist/assets/{index-CAbi4Q6i.js → index-BFpYSXLl.js} +3 -3
  86. package/dist/assets/{index-CcPy8sB_.js → index-BIOcSTv1.js} +1 -1
  87. package/dist/assets/{index-BdqGdcv2.js → index-BJsW1I-W.js} +1 -1
  88. package/dist/assets/{index-DrKVMSE5.js → index-BPu5OFdR.js} +1 -1
  89. package/dist/assets/{index-DscVI0IV.js → index-BQ0GXRUy.js} +1 -1
  90. package/dist/assets/{index-C7RFlKtP.js → index-BbnbDlTc.js} +2 -2
  91. package/dist/assets/{index-I3asAR5r.js → index-Bg6xcyjD.js} +6 -6
  92. package/dist/assets/{index-N0aqGit9.js → index-BsmvyFtw.js} +1 -1
  93. package/dist/assets/{index-BfWiTV5L.js → index-C5xvmzdD.js} +1 -1
  94. package/dist/assets/{index-D7zthsmK.js → index-CGJGuomb.js} +3 -3
  95. package/dist/assets/{index-DEflHlyo.js → index-CP8e2zcP.js} +3 -3
  96. package/dist/assets/{index-CENTGsHb.js → index-CRRnOuLM.js} +3 -3
  97. package/dist/assets/{index-AGlbL6jT.js → index-Cm_CX9Km.js} +1 -1
  98. package/dist/assets/{index-C07Ljz-P.js → index-CqXuTw4d.js} +1 -1
  99. package/dist/assets/{index-Cj38JD_6.js → index-Cske9PWb.js} +3 -3
  100. package/dist/assets/{index-BWxIl7Zm.js → index-CyXVLDQI.js} +1 -1
  101. package/dist/assets/{index-DZ_f5Dfi.js → index-D3qtx7de.js} +1 -1
  102. package/dist/assets/{index-BcRKEX-z.js → index-DK8BRrRb.js} +2 -2
  103. package/dist/assets/{index-CWEDY4A2.js → index-DNGIFQtW.js} +4 -4
  104. package/dist/assets/{index-Bl5zzd5F.js → index-DX_ig3IR.js} +1 -1
  105. package/dist/assets/{index-CJe-L0_W.js → index-De_3fKYA.js} +1 -1
  106. package/dist/assets/{index-CXj3-Qmy.js → index-G4GuFOuO.js} +1 -1
  107. package/dist/assets/{index-DA3gthJ9.js → index-MLCJ7HJV.js} +2 -2
  108. package/dist/assets/{index-BlU32mL_.js → index-OZjARxbD.js} +1 -1
  109. package/dist/assets/{index-BbxLly-V.js → index-Oah-jRyx.js} +1 -1
  110. package/dist/assets/{index-22B4OxZa.js → index-PzC6rkTH.js} +1 -1
  111. package/dist/assets/{index-ll7_pfKU.js → index-StdVm_EG.js} +1 -1
  112. package/dist/assets/{index--_MX4Y7D.js → index-_qKxdWY4.js} +10 -10
  113. package/dist/assets/{index-C2XQ9Wkq.js → index-dKtf23Ej.js} +1 -1
  114. package/dist/assets/{index-C4zhyFnN.js → index-erCgIvu7.js} +1 -1
  115. package/dist/assets/{index-DzQavNm8.js → index-hxHDV4zb.js} +2 -2
  116. package/dist/assets/{index-PupLKSg6.js → index-mGRBDoXw.js} +1 -1
  117. package/dist/assets/{index-B9lrrb_O.js → index-p8ewFFuc.js} +5 -5
  118. package/dist/assets/{index-BI2ulEux.js → index-pMmL--Md.js} +1 -1
  119. package/dist/assets/{index.esm-uIPkYqTP.js → index.esm-DjcC6_YD.js} +1 -1
  120. package/dist/assets/{install-from-url-6nN6p8KI.js → install-from-url-DfM4lxPD.js} +1 -1
  121. package/dist/assets/{invitation-BwJczXLd.js → invitation-CyjIyIIY.js} +1 -1
  122. package/dist/assets/{is-path-prefix-equal-B5QaVi7p.js → is-path-prefix-equal-sWdIB_FI.js} +1 -1
  123. package/dist/assets/{isEmail-DYZ2ooZR.js → isEmail-CpvKmXxu.js} +1 -1
  124. package/dist/assets/{item-9r2fa-dg.js → item-NX8BCXwV.js} +6 -6
  125. package/dist/assets/{jsonMode--ELrQNuw.js → jsonMode-wNz3PCor.js} +1 -1
  126. package/dist/assets/{list-header-W2Zqfuhf.js → list-header-DXqt77-Y.js} +1 -1
  127. package/dist/assets/{lite-eb-MtGjP.js → lite-D7_0Kk8P.js} +2 -2
  128. package/dist/assets/{lock.svg-BAPv5bGI.js → lock.svg-D22_UbmU.js} +1 -1
  129. package/dist/assets/{log-DfRitFTN.js → log-BtG4l72D.js} +1 -1
  130. package/dist/assets/{login-method-item-duWmEQ4c.js → login-method-item-CGUaonon.js} +1 -1
  131. package/dist/assets/{lottie-react.esm-Dg4E2zZC.js → lottie-react.esm-Cj9O6Lld.js} +1 -1
  132. package/dist/assets/{memory-CVCAiVAD.js → memory-MEOErB2y.js} +1 -1
  133. package/dist/assets/{metric-DGyzAosW.js → metric-DzrjUE5P.js} +1 -1
  134. package/dist/assets/{monaco-editor-CIyTCq3w.js → monaco-editor-i4E7Erh-.js} +3 -3
  135. package/dist/assets/{mouseTarget-yzhGv1sN.js → mouseTarget-DHjy6bBl.js} +1 -1
  136. package/dist/assets/omit-C1X-CRrb.js +1 -0
  137. package/dist/assets/{overview-CjC2_6TA.js → overview-BPSzB7yi.js} +1 -1
  138. package/dist/assets/{permission-Dgeoh_gC.js → permission-D6xGjoP4.js} +1 -1
  139. package/dist/assets/{preference-DPXvsW07.js → preference-CWfaETuk.js} +9 -9
  140. package/dist/assets/{provider-icon-H03n2Hjs.js → provider-icon-D-a204Ay.js} +1 -1
  141. package/dist/assets/{raf-schd.esm-Dgds4zE-.js → raf-schd.esm-vaS856Rv.js} +1 -1
  142. package/dist/assets/{rotate-session-key-Cg34J7dQ.js → rotate-session-key-Cn3NVWRi.js} +1 -1
  143. package/dist/assets/runtime-BJVsSRvX.js +1 -0
  144. package/dist/assets/schema-DeNYz3hJ.js +1 -0
  145. package/dist/assets/sdk-CyaYnqk4.js +1 -0
  146. package/dist/assets/{service-DoInkZVF.js → service-COrrqY-3.js} +1 -1
  147. package/dist/assets/{shorten-label-Ct9vHiPy.js → shorten-label-j-itDv6J.js} +1 -1
  148. package/dist/assets/{simple-select-DUBD32-K.js → simple-select-DApzKMrW.js} +1 -1
  149. package/dist/assets/{spaces-Ca-nLDun.js → spaces-BqdEt5Dg.js} +1 -1
  150. package/dist/assets/{status-DJJQr33v.js → status-CFw68CfZ.js} +2 -2
  151. package/dist/assets/{status-B8aMCivY.js → status-vwaEURfH.js} +1 -1
  152. package/dist/assets/{switch-control-DN6AO5e-.js → switch-control-BEw34mlq.js} +1 -1
  153. package/dist/assets/{table-icons-DPN-ujpU.js → table-icons-V0nzUvpC.js} +1 -1
  154. package/dist/assets/team-Bp-ehLS6.js +1 -0
  155. package/dist/assets/toLower-C4OoJYWk.js +1 -0
  156. package/dist/assets/toUpper-P-IpqDCE.js +1 -0
  157. package/dist/assets/{traffic-Coyo0eln.js → traffic-BuuDuC5C.js} +1 -1
  158. package/dist/assets/trim-BrqZEf0Q.js +1 -0
  159. package/dist/assets/{url-evaluation-DF8LRV6u.js → url-evaluation-BotqjpOW.js} +1 -1
  160. package/dist/assets/{url-join-BAOkJVTN.js → url-join-BYRfgTzL.js} +1 -1
  161. package/dist/assets/{use-mobile-D8q1By2e.js → use-mobile-BIorytbM.js} +1 -1
  162. package/dist/assets/{use-mobile-DjOKbbdW.js → use-mobile-BxCxZMSF.js} +1 -1
  163. package/dist/assets/{useAsync-CpuSmv4M.js → useAsync-CbHsXkPS.js} +1 -1
  164. package/dist/assets/{useAsyncRetry-DQ-1kK3Z.js → useAsyncRetry-6ULbruV9.js} +1 -1
  165. package/dist/assets/{useLocalStorage-B1cIHaab.js → useLocalStorage-CBx2eW_l.js} +1 -1
  166. package/dist/assets/{useThemeProps-CaL-a5Z3.js → useThemeProps-BWD3Vp6O.js} +1 -1
  167. package/dist/assets/{util-Dk5V-b84.js → util-BF2dKFyL.js} +1 -1
  168. package/dist/assets/{wait-container-BxmUT_e8.js → wait-container-Cc0h_2b3.js} +1 -1
  169. package/dist/assets/{without-wallet-DdcteX-E.js → without-wallet-lUjEmpWw.js} +1 -1
  170. package/dist/assets/wrap-locale-CF87ubG3.js +1 -0
  171. package/dist/index.html +1 -1
  172. package/package.json +1 -1
  173. package/dist/assets/ArrowDropDown-CLtIK8Ds.js +0 -1
  174. package/dist/assets/api-CtY709C1.js +0 -1
  175. package/dist/assets/cloneDeep-DcL7wHTZ.js +0 -1
  176. package/dist/assets/domains-DgOFqkxv.js +0 -28
  177. package/dist/assets/emotion-cache.browser.esm-C9pXLaus.js +0 -1
  178. package/dist/assets/engine-CsOVDEBF.js +0 -1
  179. package/dist/assets/getValidReactChildren-CaUdxsqb.js +0 -1
  180. package/dist/assets/index-DTHqSol2.js +0 -1
  181. package/dist/assets/omit-C9i7Uayy.js +0 -1
  182. package/dist/assets/runtime-3p5sMXNX.js +0 -1
  183. package/dist/assets/schema-DtiemgGr.js +0 -1
  184. package/dist/assets/sdk-CChXw_FN.js +0 -1
  185. package/dist/assets/team-pgmvSiLk.js +0 -1
  186. package/dist/assets/toUpper-DWIvDS3T.js +0 -1
  187. package/dist/assets/trim-CGi2LMwA.js +0 -1
  188. package/dist/assets/wrap-locale-BD1k5sx5.js +0 -1
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-PZ2fx_h4.js","./index-DEflHlyo.js","./index-BLDnEtdF.css","./url-join-BAOkJVTN.js","./index-22B4OxZa.js","./_createAggregator-DcJLZ0MZ.js","./depsEqual-BTB47kAG.js","./index-DgAeLiKC.js","./index-D29L5UKE.js","./toUpper-DWIvDS3T.js","./index-_3Fxot8G.css"])))=>i.map(i=>d[i]);
2
- import{iM as pp,iN as hp,j as g,B as te,O as je,r as v,iO as gp,an as Yn,iP as vp,ab as et,V as ke,k as oe,gz as Lo,bF as _e,iQ as mp,bK as hc,hT as bp,iR as yp,iS as xp,fa as Sp,dq as gc,f2 as wp,f0 as Cp,f1 as Ip,f4 as vc,ai as Jn,iT as Rp,dr as _p,fg as Dp,iU as Tp,eG as kp,eF as Ep,eD as mc,iV as Pp,hX as Op,aq as Np,fw as Ap,gm as Mp,eS as nt,x as Oe,b6 as ur,dB as Mt,aT as Lp,f$ as zp,gY as jp,W as dt,al as Ue,aD as Fp,fT as Dr,ah as br,cH as bc,fS as Bp,iW as $p,fU as yc,bj as Qn,c4 as Gp,cf as q,cd as nr,U as Q,iX as xc,o as S,cb as Xn,eI as Wa,fx as zo,iY as jo,cC as gi,X as xe,a3 as tt,e6 as Wp,ao as Fo,ap as Yt,J as ye,au as Ge,fe as Qi,aA as ir,iZ as Hp,aR as Sc,ak as Xr,i_ as Up,i$ as Vp,at as Jt,fO as Xi,ad as qp,g1 as wc,C as Kp,G as Yp,j0 as ht,j1 as Zi,bt as Bo,aS as Jp,am as Cc,H as Tr,F as Ic,cu as Qp,bz as Rc,bf as Xp,bd as Zp,iG as _c,bc as Ar,cY as eh,cZ as th,j2 as Ha,j3 as Dc,j4 as rh,j5 as nh,co as ih,cq as oh,cr as ah,e5 as lh,j6 as sh,gX as ch,gv as Zn,hc as uh,gf as dh,fW as fh,j7 as An,j8 as Tc,aG as ph,Q as kc,j9 as Ua,ii as Ec,ja as eo,fB as hh,jb as gh,q as dr,jc as vh,eP as mh,fL as Va,cB as Pc,c$ as qa,jd as bh,bI as yh,je as xh,jf as Sh,jg as wh,jh as Ch,gH as Ih,ji as Oc,jj as Rh,cV as Nc,eK as Ac,jk as $o,gs as Mc,a4 as mt,jl as _h,bb as Dh,cG as Qt,jm as Th,jn as Lc,P as In,bq as Mn,gD as kh,dt as Eh,cA as Go,jo as Ph,iK as Oh,d6 as Nh,jp as zc,aH as Ah,jq as Mh,es as Lh,jr as zh,T as jh,bu as Ka,iL as Ya,js as Fh,eT as jc,bB as Ja,af as at,jt as Qa,aB as Bh,S as Xa,M as Za}from"./index-DEflHlyo.js";import{r as $h}from"./omit-C9i7Uayy.js";import{r as Gh}from"./cloneDeep-DcL7wHTZ.js";import{r as Wh}from"./index-22B4OxZa.js";import{c as Hh,u as Uh}from"./_createAggregator-DcJLZ0MZ.js";import{u as Bt}from"./blocklet-mQW2VRE3.js";import{r as Vh,b as qh,c as Kh,d as Yh,e as el,D as Jh,H as Qh}from"./index-BWxIl7Zm.js";import{_ as Fe,a as Se,b as Ce,c as Be,d as pe,e as Xh,f as Fc,u as ue,g as ie,r as Gr,w as Ln,h as Bc,i as $t,j as $c,k as Zh,l as eg,o as to}from"./raf-schd.esm-Dgds4zE-.js";import{_ as A,b as tl,c as tg,a as rg,d as ng}from"./redux-Ab4buSXY.js";import{_ as Gc}from"./typeof-QjJsDpFa.js";import{a as Wc,b as ig}from"./team-pgmvSiLk.js";import{a as og}from"./actions-CCjvPhEB.js";import{u as ag,a as lg,C as gt}from"./index.esm-uIPkYqTP.js";import{S as ro}from"./simple-select-DUBD32-K.js";import{a as sg,b as rl,T as cg}from"./html-title-BO3r7YSd.js";import{C as Hc}from"./Clear-C9b1QEIp.js";import{A as ug}from"./ArrowDropDown-CLtIK8Ds.js";import{a as dg}from"./api-CtY709C1.js";import{A as fg}from"./Autocomplete-DTKIP70z.js";import{L as pg}from"./ListItemButton-CLYRGxS5.js";import{u as Uc}from"./use-mobile-DjOKbbdW.js";import{t as hg}from"./index-C07Ljz-P.js";import{I as gg}from"./iframe-DaoKgbiQ.js";import{B as vi}from"./ButtonGroup-BmKH0AR_.js";import{L as nl}from"./LoadingButton-CEhniQ1z.js";import"./depsEqual-BTB47kAG.js";import"./url-evaluation-DF8LRV6u.js";import"./useLocalStorage-B1cIHaab.js";import"./MoreVert-YQMFdAci.js";import"./DeleteOutline-BknUUIOQ.js";import"./get-safe-url-BmWKThk5.js";import"./permission-Dgeoh_gC.js";import"./ListSubheader-BrZqDYTB.js";import"./getValidReactChildren-CaUdxsqb.js";var vg=pp(function(){return hp?sessionStorage:void 0});const mg=je(te)`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-B8jKymjp.js","./index-CP8e2zcP.js","./index-BLDnEtdF.css","./url-join-BYRfgTzL.js","./index-PzC6rkTH.js","./_createAggregator-BS_ZCLsv.js","./depsEqual-FU6HOfMn.js","./index-B01of1n7.js","./index-D29L5UKE.js","./toUpper-P-IpqDCE.js","./index-_3Fxot8G.css"])))=>i.map(i=>d[i]);
2
+ import{iM as pp,iN as hp,j as g,B as te,O as je,r as v,iO as gp,ao as Yn,iP as vp,ab as et,V as ke,k as oe,gz as Lo,bF as _e,iQ as mp,bK as hc,hT as bp,iR as yp,iS as xp,fa as Sp,dq as gc,f2 as wp,f0 as Cp,f1 as Ip,f4 as vc,ai as Jn,iT as Rp,dr as _p,fg as Dp,iU as Tp,eG as kp,eF as Ep,eD as mc,iV as Pp,hX as Op,ar as Np,fw as Mp,gm as Ap,eS as nt,x as Oe,b6 as ur,dB as At,aU as Lp,f$ as zp,gY as jp,W as dt,am as Ue,aE as Fp,fT as Dr,ah as br,cH as bc,fS as Bp,iW as $p,fU as yc,bj as Qn,c4 as Gp,cf as q,cd as nr,U as Q,iX as xc,o as S,cb as Xn,eI as Wa,fx as zo,iY as jo,cC as gi,X as xe,a3 as tt,e6 as Wp,ap as Fo,aq as Yt,J as ye,av as Ge,fe as Qi,aB as ir,iZ as Hp,aS as Sc,al as Xr,i_ as Up,i$ as Vp,au as Jt,fO as Xi,ad as qp,g1 as wc,C as Kp,G as Yp,j0 as ht,j1 as Zi,bt as Bo,aT as Jp,an as Cc,H as Tr,F as Ic,cu as Qp,bz as Rc,bf as Xp,bd as Zp,iG as _c,bc as Mr,cY as eh,cZ as th,j2 as Ha,j3 as Dc,j4 as rh,j5 as nh,co as ih,cq as oh,cr as ah,e5 as lh,j6 as sh,gX as ch,gv as Zn,hc as uh,gf as dh,fW as fh,j7 as Mn,j8 as Tc,aH as ph,Q as kc,j9 as Ua,ii as Ec,ja as eo,fB as hh,jb as gh,q as dr,jc as vh,eP as mh,fL as Va,cB as Pc,c$ as qa,jd as bh,bI as yh,je as xh,jf as Sh,jg as wh,jh as Ch,gH as Ih,ji as Oc,jj as Rh,cV as Nc,eK as Mc,jk as $o,gs as Ac,a4 as mt,jl as _h,bb as Dh,cG as Qt,jm as Th,jn as Lc,P as In,bq as An,gD as kh,dt as Eh,cA as Go,jo as Ph,iK as Oh,d6 as Nh,jp as zc,aI as Mh,jq as Ah,es as Lh,jr as zh,T as jh,bu as Ka,iL as Ya,js as Fh,eT as jc,bB as Ja,af as at,jt as Qa,aC as Bh,S as Xa,M as Za}from"./index-CP8e2zcP.js";import{r as $h}from"./omit-C1X-CRrb.js";import{r as Gh}from"./cloneDeep-BEJXcFgb.js";import{r as Wh}from"./index-PzC6rkTH.js";import{c as Hh,u as Uh}from"./_createAggregator-BS_ZCLsv.js";import{u as Bt}from"./blocklet-D7q_eJsm.js";import{r as Vh,b as qh,c as Kh,d as Yh,e as el,D as Jh,H as Qh}from"./index-CyXVLDQI.js";import{_ as Fe,a as Se,b as Ce,c as Be,d as pe,e as Xh,f as Fc,u as ue,g as ie,r as Gr,w as Ln,h as Bc,i as $t,j as $c,k as Zh,l as eg,o as to}from"./raf-schd.esm-vaS856Rv.js";import{_ as M,b as tl,c as tg,a as rg,d as ng}from"./redux-Ab4buSXY.js";import{_ as Gc}from"./typeof-QjJsDpFa.js";import{a as Wc,b as ig}from"./team-Bp-ehLS6.js";import{a as og}from"./actions-BuX7-i-0.js";import{u as ag,a as lg,C as gt}from"./index.esm-DjcC6_YD.js";import{S as ro}from"./simple-select-DApzKMrW.js";import{a as sg,b as rl,T as cg}from"./html-title-DwrWBQUt.js";import{C as Hc}from"./Clear-XkW6YpHE.js";import{A as ug}from"./ArrowDropDown-C1ynmK1V.js";import{a as dg}from"./api-DBq1KtcA.js";import{A as fg}from"./Autocomplete-BHqH72uG.js";import{L as pg}from"./ListItemButton-BIo7wBNv.js";import{u as Uc}from"./use-mobile-BxCxZMSF.js";import{t as hg}from"./index-CqXuTw4d.js";import{I as gg}from"./iframe-B0inMXzK.js";import{B as vi}from"./ButtonGroup-CXwzM552.js";import{L as nl}from"./LoadingButton-egcGN7yK.js";import"./depsEqual-FU6HOfMn.js";import"./url-evaluation-BotqjpOW.js";import"./useLocalStorage-CBx2eW_l.js";import"./MoreVert-Cw1fjU9L.js";import"./DeleteOutline-CocEa6gq.js";import"./get-safe-url-n4nPkbEQ.js";import"./permission-D6xGjoP4.js";import"./ListSubheader-rZisNvzB.js";import"./getValidReactChildren-dJeDeNuf.js";var vg=pp(function(){return hp?sessionStorage:void 0});const mg=je(te)`
3
3
  padding: 16px 24px;
4
4
  border-radius: 8px;
5
5
  background-color: ${({theme:e})=>e.palette.background.paper};
@@ -16,7 +16,7 @@ import{iM as pp,iN as hp,j as g,B as te,O as je,r as v,iO as gp,an as Yn,iP as v
16
16
  margin: 0;
17
17
  padding: 0;
18
18
  }
19
- `;function bg({label:e,children:t,className:r="",sx:n,...i}){return g.jsxs(mg,{className:`nav-menu-sub-item-group ${r}`,sx:{...n},...i,children:[g.jsx(te,{className:"group-label",children:e}),g.jsx(te,{component:"ul",className:"nav",children:t})]})}const yg=e=>v.createElement("svg",{width:120,height:120,viewBox:"0 0 120 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v.createElement("path",{opacity:.8,d:"M14.291 102.867c0 3.431 3.59 5.18 5.74 2.796l54.861-60.857-15.332-31.49H14.291v89.551z",fill:"url(#a)"}),v.createElement("path",{opacity:.8,d:"M105.709 17.849c0-3.429-3.585-5.178-5.736-2.8l-54.87 60.709 15.337 31.489h45.269V17.849z",fill:"url(#b)"}),v.createElement("path",{opacity:.8,d:"m105.709 107.247-45.867-93.93h-45.55l46.148 93.93h45.269z",fill:"url(#c)"}),v.createElement("defs",null,v.createElement("linearGradient",{id:"a",x1:58.95,y1:13.563,x2:1.148,y2:99.881,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#FF44B4"}),v.createElement("stop",{offset:1,stopColor:"#FFAB48"})),v.createElement("linearGradient",{id:"b",x1:105.788,y1:13.563,x2:48.861,y2:100.72,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#44B3FF"}),v.createElement("stop",{offset:1,stopColor:"#A448FF"})),v.createElement("linearGradient",{id:"c",x1:38.636,y1:11.296,x2:95.518,y2:102.845,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#FF44A9"}),v.createElement("stop",{offset:1,stopColor:"#7452FA"})))),xg=e=>v.createElement("svg",{width:120,height:120,viewBox:"0 0 120 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v.createElement("g",{clipPath:"url(#a)"},v.createElement("rect",{width:98,height:98,rx:16,transform:"matrix(1 0 0 -1 11 109)",fill:"url(#b)"}),v.createElement("g",{filter:"url(#c)"},v.createElement("path",{d:"M60 80V40c-11.04 0-20 8.96-20 20s8.96 20 20 20z",fill:"#fff",fillOpacity:.36,shapeRendering:"crispEdges"})),v.createElement("path",{d:"M60 100c-22.08 0-40-17.92-40-40s17.92-40 40-40 40 17.92 40 40-17.92 40-40 40zm0-60c-11.04 0-20 8.96-20 20s8.96 20 20 20 20-8.96 20-20-8.96-20-20-20z",fill:"url(#d)",style:{mixBlendMode:"plus-lighter"}})),v.createElement("defs",null,v.createElement("linearGradient",{id:"b",x1:7.273,y1:7.273,x2:90.152,y2:90.152,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#2563EB"}),v.createElement("stop",{offset:.333,stopColor:"#2998FF"}),v.createElement("stop",{offset:.667,stopColor:"#48E0A1"}),v.createElement("stop",{offset:1,stopColor:"#9BEF2F"})),v.createElement("linearGradient",{id:"d",x1:60,y1:100,x2:60,y2:20,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#C4C4C4"}),v.createElement("stop",{offset:1,stopColor:"#7D7D7D"})),v.createElement("clipPath",{id:"a"},v.createElement("rect",{width:98,height:98,rx:16,transform:"matrix(1 0 0 -1 11 109)",fill:"#fff"})),v.createElement("filter",{id:"c",x:-20,y:-20,width:140,height:160,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},v.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),v.createElement("feGaussianBlur",{in:"BackgroundImageFix",stdDeviation:30}),v.createElement("feComposite",{in2:"SourceAlpha",operator:"in",result:"effect1_backgroundBlur_3296_9356"}),v.createElement("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),v.createElement("feOffset",{dx:20}),v.createElement("feGaussianBlur",{stdDeviation:20}),v.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),v.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0.404508 0 0 0 0 0.283156 0 0 0 0.2 0"}),v.createElement("feBlend",{in2:"effect1_backgroundBlur_3296_9356",result:"effect2_dropShadow_3296_9356"}),v.createElement("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),v.createElement("feOffset",{dx:10}),v.createElement("feGaussianBlur",{stdDeviation:10}),v.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),v.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0.404508 0 0 0 0 0.283156 0 0 0 0.05 0"}),v.createElement("feBlend",{in2:"effect2_dropShadow_3296_9356",result:"effect3_dropShadow_3296_9356"}),v.createElement("feBlend",{in:"SourceGraphic",in2:"effect3_dropShadow_3296_9356",result:"shape"})))),Sg=e=>v.createElement("svg",{width:40,height:39,viewBox:"0 0 40 39",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v.createElement("path",{d:"m10.247 20.67-3.824-1.655c-.548-.22-.87-.62-.966-1.2-.096-.58.061-1.076.472-1.49l5.182-5.214a3.29 3.29 0 0 1 1.357-.828 3.156 3.156 0 0 1 1.604-.083l2.138.455c-1.453 1.739-2.611 3.318-3.475 4.74-.863 1.42-1.693 3.179-2.488 5.276zm24.18-16.14c.219 0 .438.055.658.166a2.174 2.174 0 0 1 .987.993c.11.22.164.441.164.662.11 2.566-.432 5.229-1.624 7.988-1.193 2.759-2.872 5.228-5.038 7.408-1.48 1.49-2.905 2.683-4.276 3.58-1.37.897-2.988 1.745-4.853 2.545-.356.138-.72.207-1.09.207-.37 0-.692-.138-.966-.414l-5.14-5.173a1.336 1.336 0 0 1-.411-.973c0-.372.068-.738.206-1.096.795-1.849 1.637-3.47 2.528-4.863.892-1.394 2.077-2.835 3.558-4.325 2.165-2.18 4.619-3.87 7.36-5.07 2.742-1.2 5.387-1.745 7.937-1.635zM23.982 16.863c.63.635 1.405.952 2.323.952.919 0 1.693-.317 2.324-.952.63-.634.945-1.414.945-2.338 0-.924-.315-1.704-.945-2.338-.63-.635-1.405-.952-2.324-.952-.918 0-1.693.317-2.323.952-.63.634-.946 1.414-.946 2.338 0 .924.315 1.704.946 2.338zm-3.783 13.824c2.083-.8 3.838-1.635 5.263-2.504 1.426-.87 3.002-2.035 4.73-3.497l.41 2.152c.11.552.083 1.096-.082 1.634-.164.538-.438 1-.822 1.387l-5.182 5.215c-.41.413-.904.565-1.48.455-.576-.11-.973-.442-1.193-.993l-1.644-3.85zm-13.365-3.56c.955-.965 2.121-1.455 3.499-1.469 1.378-.014 2.544.462 3.499 1.428.955.966 1.432 2.138 1.432 3.518s-.48 2.552-1.44 3.518c-.685.69-1.83 1.283-3.433 1.78-1.604.496-3.817.938-6.641 1.324.384-2.842.822-5.065 1.316-6.667.493-1.603 1.083-2.747 1.768-3.432z",fill:"url(#a)"}),v.createElement("defs",null,v.createElement("linearGradient",{id:"a",x1:34.187,y1:7.487,x2:7.292,y2:34.082,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#74D5D6"}),v.createElement("stop",{offset:1,stopColor:"#56AFBE"})))),wg=e=>v.createElement("svg",{width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v.createElement("path",{d:"M9.171 36a3.067 3.067 0 0 1-2.24-.923C6.312 34.46 6 33.72 6 32.857V14c0-.864.31-1.604.932-2.22a3.067 3.067 0 0 1 2.24-.923h3.17c0-2.174.773-4.027 2.32-5.559C16.206 3.766 18.076 3 20.27 3c2.194 0 4.063.766 5.61 2.298 1.545 1.532 2.318 3.385 2.318 5.56h3.171a3.07 3.07 0 0 1 2.24.922c.621.616.931 1.356.931 2.22v18.857c0 .864-.31 1.604-.931 2.22a3.067 3.067 0 0 1-2.24.923H9.171zm6.343-25.143h9.513c0-1.31-.463-2.422-1.387-3.34-.925-.916-2.049-1.374-3.37-1.374-1.321 0-2.444.458-3.37 1.375-.924.917-1.386 2.03-1.386 3.34zM20.23 23.43c1.955 0 3.726-.642 5.311-1.925 1.586-1.284 2.366-2.724 2.34-4.322a1.62 1.62 0 0 0-.437-1.14 1.445 1.445 0 0 0-1.11-.47c-.37 0-.7.117-.99.353-.291.236-.503.59-.635 1.06a4.367 4.367 0 0 1-1.705 2.397c-.845.602-1.77.904-2.774.904-1.005 0-1.936-.302-2.795-.904-.859-.602-1.42-1.401-1.685-2.396-.132-.498-.33-.858-.594-1.08a1.428 1.428 0 0 0-.952-.335c-.449 0-.825.158-1.13.472a1.58 1.58 0 0 0-.455 1.14c0 1.597.78 3.037 2.339 4.32 1.559 1.284 3.316 1.926 5.272 1.926z",fill:"url(#a)"}),v.createElement("defs",null,v.createElement("linearGradient",{id:"a",x1:12.342,y1:13.214,x2:36.685,y2:39.361,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#FF73B2"}),v.createElement("stop",{offset:.333,stopColor:"#E9ED7D"}),v.createElement("stop",{offset:.557,stopColor:"#74E583"}),v.createElement("stop",{offset:1,stopColor:"#01ACC8"})))),Cg=e=>v.createElement("svg",{width:120,height:120,viewBox:"0 0 120 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v.createElement("mask",{id:"a",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:0,y:0,width:120,height:120},v.createElement("path",{fill:"#fff",d:"M0 0h119.883v119.883H0z"})),v.createElement("g",{mask:"url(#a)"},v.createElement("path",{d:"M62.025 14.05A5.05 5.05 0 0 1 67.075 9h23.988a5.05 5.05 0 0 1 5.05 5.05v60.6a5.05 5.05 0 0 1-5.05 5.05H67.075a5.05 5.05 0 0 1-5.05-5.05v-60.6z",fill:"url(#b)"}),v.createElement("path",{d:"M24.15 32.987a5.05 5.05 0 0 1 5.05-5.05h40.4a5.05 5.05 0 0 1 5.05 5.05V74.65a5.05 5.05 0 0 1-5.05 5.05H29.2a5.05 5.05 0 0 1-5.05-5.05V32.987z",fill:"url(#c)"}),v.createElement("g",{filter:"url(#d)"},v.createElement("path",{d:"M16.575 64.55c0-5.578 4.522-10.1 10.1-10.1h64.388c5.578 0 10.1 4.522 10.1 10.1V99.9c0 5.578-4.522 10.1-10.1 10.1H26.675c-5.578 0-10.1-4.522-10.1-10.1V64.55z",fill:"url(#e)"})),v.createElement("g",{filter:"url(#f)"},v.createElement("path",{d:"M10.263 55.712a7.575 7.575 0 0 1 7.575-7.575H99.9a7.575 7.575 0 0 1 7.575 7.575v10.1a7.575 7.575 0 0 1-7.575 7.575H17.838a7.575 7.575 0 0 1-7.575-7.575v-10.1z",fill:"url(#g)"})),v.createElement("circle",{cx:58.869,cy:87.906,r:6.944,fill:"#6BADFF"})),v.createElement("defs",null,v.createElement("linearGradient",{id:"b",x1:86.013,y1:9,x2:86.644,y2:46.875,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#FF7575"}),v.createElement("stop",{offset:1,stopColor:"#C91C1C"})),v.createElement("linearGradient",{id:"c",x1:49.4,y1:56.975,x2:49.4,y2:27.938,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#ED7F1A"}),v.createElement("stop",{offset:1,stopColor:"#FFE074"})),v.createElement("linearGradient",{id:"e",x1:16.575,y1:75.281,x2:101.163,y2:114.419,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#54A0FD"}),v.createElement("stop",{offset:1,stopColor:"#136EDE"})),v.createElement("linearGradient",{id:"g",x1:16.575,y1:55.712,x2:58.789,y2:111.945,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#83BAFF"}),v.createElement("stop",{offset:1,stopColor:"#2482F6"})),v.createElement("filter",{id:"d",x:16.575,y:54.45,width:86.587,height:57.55,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},v.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),v.createElement("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),v.createElement("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),v.createElement("feMorphology",{radius:4,in:"SourceAlpha",result:"effect1_innerShadow_3296_9286"}),v.createElement("feOffset",{dx:2,dy:2}),v.createElement("feGaussianBlur",{stdDeviation:3}),v.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:-1,k3:1}),v.createElement("feColorMatrix",{values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.25 0"}),v.createElement("feBlend",{in2:"shape",result:"effect1_innerShadow_3296_9286"})),v.createElement("filter",{id:"f",x:10.263,y:48.138,width:99.212,height:27.25,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},v.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),v.createElement("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),v.createElement("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),v.createElement("feMorphology",{radius:4,in:"SourceAlpha",result:"effect1_innerShadow_3296_9286"}),v.createElement("feOffset",{dx:2,dy:2}),v.createElement("feGaussianBlur",{stdDeviation:3}),v.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:-1,k3:1}),v.createElement("feColorMatrix",{values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.25 0"}),v.createElement("feBlend",{in2:"shape",result:"effect1_innerShadow_3296_9286"})))),Ig=e=>v.createElement("svg",{width:68,height:68,viewBox:"0 0 68 68",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v.createElement("mask",{id:"c",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:4,y:3,width:59,height:62},v.createElement("path",{d:"M33.974 4.067 33.858 4l-.117.067-17.174 9.916-.117.068v13.187L5.117 33.78 5 33.848V53.95l.117.067 17.174 9.916.117.067.117-.067 11.303-6.527.03.017.03-.017 11.303 6.527.117.067.116-.067L62.6 54.017l.117-.068v-20.1l-.117-.067-11.333-6.543V14.05l-.117-.068-17.175-9.916zm15.037 11.286V25.97l-15.037-8.681-.116-.068-.117.067-15.036 8.682V15.353l15.153-8.749 15.153 8.749zm-3.703 46.043-9.166-5.292L51.15 47.44l.117-.067V29.842l9.195 5.309v17.496l-15.153 8.749zM16.566 47.44l15.007 8.664-9.165 5.292-15.153-8.749V35.151l9.195-5.309v17.531l.116.067zM32.73 35.37l-12.897-7.447 12.897-7.447V35.37zm-14.025 9.399V29.876l12.898 7.446-12.898 7.447zm16.28 9.4V39.274l12.898 7.447-12.898 7.446zm14.026-24.293v14.893l-12.898-7.447 12.898-7.446zm-16.28 9.4v14.892l-12.898-7.446 12.897-7.447zm2.254-3.907V20.476l12.898 7.447-12.898 7.446z",fill:"url(#a)",stroke:"url(#b)",strokeWidth:.5})),v.createElement("g",{mask:"url(#c)"},v.createElement("path",{d:"M68 0H0v68h68V0z",fill:"url(#d)"})),v.createElement("defs",null,v.createElement("linearGradient",{id:"a",x1:36.103,y1:-30.336,x2:-29.543,y2:21.525,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#4EF1BA"}),v.createElement("stop",{offset:.502,stopColor:"#16CED1"}),v.createElement("stop",{offset:1,stopColor:"#3773F2"})),v.createElement("linearGradient",{id:"b",x1:37.6,y1:-67.429,x2:-62.714,y2:20.675,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#4EF1BA"}),v.createElement("stop",{offset:.502,stopColor:"#16CED1"}),v.createElement("stop",{offset:1,stopColor:"#3773F2"})),v.createElement("linearGradient",{id:"d",x1:38.445,y1:-81.994,x2:-76.754,y2:23.094,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#4EF1BA"}),v.createElement("stop",{offset:.502,stopColor:"#16CED1"}),v.createElement("stop",{offset:1,stopColor:"#3773F2"})))),Rg=e=>v.createElement("svg",{width:200,height:200,viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v.createElement("mask",{id:"a",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:8,y:8,width:184,height:184},v.createElement("path",{d:"M192 100c0-50.81-41.19-92-92-92S8 49.19 8 100s41.19 92 92 92 92-41.19 92-92z",fill:"#fff"})),v.createElement("g",{mask:"url(#a)"},v.createElement("path",{d:"M192 100c0-50.81-41.19-92-92-92S8 49.19 8 100s41.19 92 92 92 92-41.19 92-92z",fill:"#fff"}),v.createElement("path",{d:"M192 8H8v184h184V8z",fill:"url(#b)"}),v.createElement("path",{opacity:.6,fillRule:"evenodd",clipRule:"evenodd",d:"M98.06 97.074v2.23l-1.942 1.115L40.2 132.536l1.941 3.344L100 102.648l57.859 33.232 1.941-3.344-55.918-32.117-1.941-1.115V32.84h-3.882v64.234z",fill:"#fff"}),v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m100.404 28.62 62.156 35.886v71.771l-62.156 35.886-62.155-35.886V64.506l62.155-35.886zM44.076 65.627l38.653 22.317 17.676-30.615 17.675 30.614 38.653-22.316-56.329-32.52-56.328 32.52zm114.599 3.364-38.653 22.317 17.676 30.615-35.351 20.41v24.223l56.328-32.522V68.991zm-60.213 97.565v-24.223l-35.35-20.41 17.675-30.615L42.133 68.99v65.043l56.329 32.522zM84.15 93.25l-15.733 27.251 30.045 17.346v-36.335l-1.942-1.121-12.37-7.14zm18.197 44.597 30.043-17.346-15.733-27.25-12.368 7.14-1.942 1.121v36.335zm12.368-47.96-14.311-24.789-14.311 24.788 14.311 8.263 14.311-8.263z",fill:"#fff"})),v.createElement("defs",null,v.createElement("linearGradient",{id:"b",x1:100,y1:-84,x2:-84,y2:100,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#4EF1BA"}),v.createElement("stop",{offset:.502,stopColor:"#16CED1"}),v.createElement("stop",{offset:1,stopColor:"#3773F2"})))),_g=e=>v.createElement("svg",{width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v.createElement("g",{clipPath:"url(#a)"},v.createElement("mask",{id:"b",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:40,height:40},v.createElement("path",{d:"M40 0H0v40h40V0z",fill:"#D9D9D9"})),v.createElement("g",{mask:"url(#b)"},v.createElement("path",{d:"M11.917 8.278c-.733 0-1.356.256-1.87.77a2.545 2.545 0 0 0-.77 1.869c0 .733.257 1.356.77 1.869.514.513 1.137.77 1.87.77.733 0 1.356-.257 1.869-.77.513-.513.77-1.136.77-1.87 0-.732-.257-1.355-.77-1.869a2.545 2.545 0 0 0-1.87-.77zm0 17.592c-.733 0-1.356.257-1.87.77a2.545 2.545 0 0 0-.77 1.87c0 .732.257 1.355.77 1.868.514.514 1.137.77 1.87.77.733 0 1.356-.256 1.869-.77.513-.513.77-1.136.77-1.869 0-.733-.257-1.356-.77-1.869a2.545 2.545 0 0 0-1.87-.77zM5.759 3h28.148c.499 0 .917.169 1.254.506.337.337.506.755.506 1.253v12.315c0 .498-.169.916-.506 1.254a1.703 1.703 0 0 1-1.254.505H5.76c-.498 0-.916-.168-1.253-.505A1.703 1.703 0 0 1 4 17.074V4.76c0-.498.169-.916.506-1.253A1.702 1.702 0 0 1 5.759 3zm0 17.593h28.148c.499 0 .917.168 1.254.505.337.338.506.756.506 1.254v12.315c0 .498-.169.916-.506 1.253a1.702 1.702 0 0 1-1.254.506H5.76c-.498 0-.916-.169-1.253-.506A1.702 1.702 0 0 1 4 34.667V22.352c0-.498.169-.916.506-1.254a1.702 1.702 0 0 1 1.253-.505z",fill:"url(#c)"}))),v.createElement("defs",null,v.createElement("linearGradient",{id:"c",x1:4,y1:19.713,x2:35.667,y2:19.713,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#2FD99C"}),v.createElement("stop",{offset:1,stopColor:"#8CE598"})),v.createElement("clipPath",{id:"a"},v.createElement("path",{fill:"#fff",d:"M0 0h40v40H0z"})))),Dg=e=>v.createElement("svg",{width:420,height:420,viewBox:"0 0 420 420",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v.createElement("path",{d:"M210.205 17.143V210m0 0 166.667 96.19M210.205 210 44.967 305.238",stroke:"url(#a)",strokeOpacity:.6,strokeWidth:18}),v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m247.638 178.49-37.433 21.613-37.284-21.527 27.416-47.8 1.297-2.26 8.571-14.945 8.571 14.866 1.337 2.316 27.525 47.737zm14.846-8.571-37.428-64.911-14.89-25.824-14.832 25.858-37.26 64.963-95.36-55.056 147.491-85.154 147.49 85.154-95.211 54.97zm-6.283 23.423-37.425 21.607v86.295l66.189-38.2 8.573-4.949-8.552-14.832-28.785-49.921zm-37.425 127.694 83.332-48.093 14.841-8.566-8.56-14.845-37.342-64.762 95.22-54.975v170.308l-147.491 85.153v-64.22zm-17.142-19.885v-86.202l-37.242-21.501-28.33 49.392-8.476 14.779 8.497 4.995 65.551 38.537zm-52.088-116.275-36.831 64.214-8.438 14.712 14.621 8.595 82.619 48.572.117.068v64.219L54.143 300.103V129.795l95.403 55.081zM210.205 10 45.571 105.051 37 110v200l164.634 95.051 8.571 4.949 8.571-4.949L383.41 310V110l-8.572-4.949L210.205 10z",fill:"url(#b)"}),v.createElement("defs",null,v.createElement("linearGradient",{id:"a",x1:632.433,y1:166.456,x2:334.741,y2:-292.388,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#4EF1BA"}),v.createElement("stop",{offset:.502,stopColor:"#16CED1"}),v.createElement("stop",{offset:1,stopColor:"#3773F2"})),v.createElement("linearGradient",{id:"b",x1:210.205,y1:-190,x2:-189.795,y2:210,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#4EF1BA"}),v.createElement("stop",{offset:.502,stopColor:"#16CED1"}),v.createElement("stop",{offset:1,stopColor:"#3773F2"})))),Tg=e=>v.createElement("svg",{viewBox:"0 0 90 65",xmlns:"http://www.w3.org/2000/svg",...e},v.createElement("path",{d:"M79.425.7c5.688 0 10.3 4.612 10.3 10.3v43.234c0 5.689-4.612 10.3-10.3 10.3H11.156c-5.688 0-10.3-4.611-10.3-10.3v-.215h4.6v.215a5.7 5.7 0 0 0 5.7 5.7h68.269a5.7 5.7 0 0 0 5.7-5.7V11a5.7 5.7 0 0 0-5.7-5.7H11.156a5.7 5.7 0 0 0-5.7 5.7v.49h-4.6V11C.856 5.312 5.468.7 11.156.7h68.269zM11.293 17.691c2.945 0 5.495.62 7.65 1.86 2.182 1.211 3.879 2.929 5.088 5.154 1.21 2.225 1.814 4.845 1.814 7.86 0 2.985-.604 5.577-1.814 7.774a12.78 12.78 0 0 1-5.088 5.112c-2.155 1.211-4.706 1.818-7.65 1.818H1V17.69h10.293zM35.206 47.27h-5.324V17.69h5.324v29.58zm15.677-29.58c2.944 0 5.494.62 7.65 1.86 2.182 1.21 3.878 2.929 5.087 5.154 1.21 2.225 1.815 4.846 1.815 7.86 0 2.985-.606 5.577-1.815 7.774a12.78 12.78 0 0 1-5.087 5.112c-2.156 1.211-4.706 1.818-7.65 1.818H40.59V17.69h10.293zm22.595 19.066a2.98 2.98 0 1 1-.001 5.958 2.98 2.98 0 0 1 .001-5.958zM6.325 42.494h4.812c2.97 0 5.257-.874 6.861-2.62 1.604-1.775 2.405-4.211 2.405-7.31 0-3.126-.801-5.591-2.405-7.394-1.604-1.803-3.89-2.704-6.861-2.704H6.324v20.028zm39.59 0h4.81c2.971 0 5.26-.873 6.863-2.62 1.603-1.775 2.405-4.211 2.405-7.31 0-3.126-.801-5.591-2.405-7.394-1.604-1.803-3.892-2.704-6.862-2.704h-4.81v20.028zm27.564-19.637a2.978 2.978 0 1 1 0 5.957 2.978 2.978 0 0 1 0-5.957z",fill:"currentColor"})),kg=e=>v.createElement("svg",{width:120,height:120,viewBox:"0 0 120 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v.createElement("rect",{x:9,y:9,width:102,height:102,rx:12,fill:"url(#a)"}),v.createElement("mask",{id:"b",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:9,y:9,width:102,height:102},v.createElement("rect",{x:9,y:9,width:102,height:102,rx:12,fill:"#fff"})),v.createElement("g",{mask:"url(#b)"},v.createElement("rect",{x:9,y:9,width:102,height:102,rx:12,fill:"url(#c)"}),v.createElement("path",{d:"M20.22 32.269a7.969 7.969 0 0 1 7.969-7.969H91.81a7.969 7.969 0 0 1 7.969 7.969V71.41a7.969 7.969 0 0 1-7.969 7.97H28.19a7.969 7.969 0 0 1-7.969-7.97V32.27z",fill:"#9FCBFF"}),v.createElement("path",{d:"M17.16 38.389a7.969 7.969 0 0 1 7.969-7.969H94.87a7.969 7.969 0 0 1 7.969 7.969V82.12a7.969 7.969 0 0 1-7.969 7.969H25.13a7.969 7.969 0 0 1-7.969-7.969V38.39z",fill:"url(#d)"}),v.createElement("path",{d:"M9 80.145 111 60.51V99c0 6.627-5.373 12-12 12H21c-6.627 0-12-5.373-12-12V80.145z",fill:"url(#e)"})),v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.84 54.153V39.44h7.781a3.791 3.791 0 0 1 3.528 3.782v7.138a3.791 3.791 0 0 1-3.791 3.792H21.84zM38.041 39.44h-2.02v14.734h2.02V39.441zm-14.18 12.691v-10.68h5.497c.978 0 1.77.793 1.77 1.771v7.138a1.77 1.77 0 0 1-1.77 1.771H23.86zm17.018-12.69v14.71h7.518a3.791 3.791 0 0 0 3.791-3.79v-7.139a3.791 3.791 0 0 0-3.528-3.782h-7.78zm13.88 3.413h2.259v2.259h-2.259v-2.259zm2.259 5.647h-2.259v2.259h2.259v-2.259zM42.9 41.452v10.68h5.497a1.77 1.77 0 0 0 1.77-1.77v-7.139a1.77 1.77 0 0 0-1.77-1.77H42.9z",fill:"#4598FA"}),v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M92.652 87.208v9.266l-.82.474 1.448.837.821-.474v-10.94l-6.945-4.01h-6.461v18.96h6.46l1.778-1.026-1.45-.837-.715.414h-4.624V83.81h4.624l5.884 3.397zm.96-4.846-1.774 1.025 1.449.836.714-.412h4.624v16.06H94l-5.884-3.397v-9.266l.823-.475-1.45-.837-.823.476V97.31l6.707 3.872c.156.09.334.138.515.138h6.185V82.36h-6.461z",fill:"#fff"}),v.createElement("defs",null,v.createElement("linearGradient",{id:"a",x1:9,y1:9,x2:9,y2:111,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#4F9DF6"}),v.createElement("stop",{offset:1,stopColor:"#0A79F8"})),v.createElement("linearGradient",{id:"c",x1:9,y1:9,x2:9,y2:111,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#4F9DF6"}),v.createElement("stop",{offset:1,stopColor:"#0A79F8"})),v.createElement("linearGradient",{id:"d",x1:17.16,y1:30.42,x2:17.16,y2:90.09,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#fff"}),v.createElement("stop",{offset:1,stopColor:"#ECEFFF"})),v.createElement("linearGradient",{id:"e",x1:20.156,y1:77.531,x2:26.73,y2:110.104,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{offset:.007,stopColor:"#77B2F6"}),v.createElement("stop",{offset:.206,stopColor:"#4F9DF6"}),v.createElement("stop",{offset:1,stopColor:"#4598FA"})))),Eg=e=>v.createElement("svg",{width:76,height:76,viewBox:"0 0 76 76",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 15a2 2 0 0 0-2 2v3.176H0V17a6 6 0 0 1 6-6h63.23a6 6 0 0 1 6 6v42.069a6 6 0 0 1-6 6H6a6 6 0 0 1-6-6v-2.945h4v2.945a2 2 0 0 0 2 2h63.23a2 2 0 0 0 2-2V17a2 2 0 0 0-2-2H6z",fill:"#4598FA"}),v.createElement("circle",{cx:32,cy:31,r:10,stroke:"#4598FA",strokeWidth:4}),v.createElement("path",{d:"m40.688 48.384 5.602 5.602 10.343-10.343m-6.966-5.073c3.253 0 5.891-3.166 5.891-7.07 0-3.905-2.638-7.07-5.891-7.07M32 41h-7.147a7 7 0 0 0-7 7v7.065",stroke:"#4598FA",strokeWidth:4})),Pg=""+new URL("payment-kit-DYSjmihw.png",import.meta.url).href,Og=e=>v.createElement("svg",{viewBox:"0 0 400 400",xmlns:"http://www.w3.org/2000/svg",...e},v.createElement("rect",{x:73.16,y:109.16,width:253.435,height:181.679,rx:36.641,fill:"none",stroke:"currentColor",strokeWidth:18.321}),v.createElement("ellipse",{cx:164,cy:199.618,rx:16.03,ry:28.626,fill:"currentColor"}),v.createElement("ellipse",{cx:234.991,cy:199.618,rx:16.03,ry:28.626,fill:"currentColor"})),Ng=e=>v.createElement("svg",{viewBox:"0 0 902 902",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v.createElement("rect",{width:902,height:902,rx:212,fill:"url(#a)"}),v.createElement("rect",{x:166,y:247,width:569,height:409,rx:80,stroke:"#fff",style:{stroke:"#fff",strokeOpacity:1},strokeWidth:40}),v.createElement("ellipse",{cx:371,cy:452,rx:37,ry:65,fill:"#fff",style:{fill:"#fff",fillOpacity:1}}),v.createElement("ellipse",{cx:531,cy:452,rx:37,ry:65,fill:"#fff",style:{fill:"#fff",fillOpacity:1}}),v.createElement("defs",null,v.createElement("linearGradient",{id:"a",x1:84,y1:78.5,x2:811.5,y2:850.5,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#AAF4EF",style:{stopColor:"color(display-p3 .6667 .9569 .9373)",stopOpacity:1}}),v.createElement("stop",{offset:.181,stopColor:"#C7F37F",style:{stopColor:"color(display-p3 .7798 .9512 .4996)",stopOpacity:1}}),v.createElement("stop",{offset:.361,stopColor:"#FFD071",style:{stopColor:"color(display-p3 1 .8141 .4422)",stopOpacity:1}}),v.createElement("stop",{offset:.546,stopColor:"#FF9898",style:{stopColor:"color(display-p3 1 .596 .596)",stopOpacity:1}}),v.createElement("stop",{offset:.722,stopColor:"#FF89E0",style:{stopColor:"color(display-p3 1 .536 .8769)",stopOpacity:1}}),v.createElement("stop",{offset:.899,stopColor:"#B695FE",style:{stopColor:"color(display-p3 .7137 .5843 .9961)",stopOpacity:1}}),v.createElement("stop",{offset:1,stopColor:"#7C8EED",style:{stopColor:"color(display-p3 .4863 .5569 .9294)",stopOpacity:1}})))),il=e=>v.createElement("svg",{width:1024,height:1024,viewBox:"0 0 1024 1024",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v.createElement("rect",{width:1024,height:1024,rx:250,fill:"url(#a)"}),v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M283.163 232.966c-9.334 5.389-9.334 18.86 0 24.249 4.331 2.5 9.668 2.5 14 0L402 196.687a14 14 0 0 0 7-12.125c0-10.777-11.666-17.513-21-12.124l-104.837 60.528zm-98.864 215.431a14 14 0 0 0-7-12.125c-9.333-5.388-21 1.347-21 12.125v123.207c0 10.777 11.667 17.513 21 12.124a14 14 0 0 0 7-12.124V448.397zm547.739 316.237a14 14 0 0 1 14 0c9.334 5.388 9.334 18.86 0 24.249L638 851.258c-9.333 5.389-21-1.347-21-12.124a14 14 0 0 1 7-12.124l108.038-62.376zm137.137-193.333c0 10.777-11.667 17.512-21 12.124a14.002 14.002 0 0 1-7-12.124V448.7a14 14 0 0 1 7-12.124c9.333-5.389 21 1.347 21 12.124v122.601zM409 839.438c0 10.777-11.666 17.513-21 12.124l-108.301-62.528c-9.334-5.388-9.334-18.86 0-24.248a14 14 0 0 1 14 0L402 827.313a14 14 0 0 1 7 12.125zm208-654.572c0-10.777 11.667-17.513 21-12.124l104.575 60.376c9.333 5.388 9.333 18.86 0 24.248a14 14 0 0 1-14 0L624 196.99a14 14 0 0 1-7-12.124z",fill:"#fff",fillOpacity:.12}),v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M513.689 175.068c-17.416 0-31.534-14.118-31.534-31.534 0-17.416 14.118-31.534 31.534-31.534 17.416 0 31.534 14.118 31.534 31.534 0 17.416-14.118 31.534-31.534 31.534zM560.723 321.5c0 26.858-21.773 48.631-48.631 48.631s-48.631-21.773-48.631-48.631c0-26.859 21.773-48.632 48.631-48.632s48.631 21.773 48.631 48.632zm130.926 355.386c-26.858 0-48.631-21.773-48.631-48.631 0-26.859 21.773-48.632 48.631-48.632 26.859 0 48.632 21.773 48.632 48.632 0 26.858-21.773 48.631-48.632 48.631zm-411.498-48.631c0 26.858 21.773 48.631 48.632 48.631 26.858 0 48.631-21.773 48.631-48.631 0-26.859-21.773-48.632-48.631-48.632-26.859 0-48.632 21.773-48.632 48.632zm231.935-44.897c-39.255 0-71.077-31.822-71.077-71.077 0-39.254 31.822-71.077 71.077-71.077 39.255 0 71.077 31.823 71.077 71.077 0 39.255-31.822 71.077-71.077 71.077zm310.488 136.265c0 17.416 14.118 31.534 31.534 31.534 17.415 0 31.534-14.118 31.534-31.534 0-17.415-14.119-31.534-31.534-31.534-17.416 0-31.534 14.119-31.534 31.534zm-684.565 0c0 17.416 14.119 31.534 31.534 31.534 17.416 0 31.534-14.118 31.534-31.534 0-17.415-14.118-31.534-31.534-31.534-17.415 0-31.534 14.119-31.534 31.534z",fill:"#fff"}),v.createElement("foreignObject",{x:118,y:252.842,width:787.643,height:679.157},v.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",style:{backdropFilter:"blur(10px)",clipPath:"url(#b)",height:"100%",width:"100%"}})),v.createElement("path",{"data-figma-bg-blur-radius":20,fillRule:"evenodd",clipRule:"evenodd",d:"M541.484 880.466c0-17.416-14.119-31.534-31.534-31.534-17.416 0-31.534 14.118-31.534 31.534 0 17.415 14.118 31.534 31.534 31.534 17.415 0 31.534-14.119 31.534-31.534zm-340.416-576.09c0-17.415-14.118-31.534-31.534-31.534-17.416 0-31.534 14.119-31.534 31.534 0 17.416 14.118 31.534 31.534 31.534 17.416 0 31.534-14.118 31.534-31.534zm653.041-31.534c17.416 0 31.534 14.119 31.534 31.534 0 17.416-14.118 31.534-31.534 31.534-17.416 0-31.534-14.118-31.534-31.534 0-17.415 14.118-31.534 31.534-31.534zm-473.483 122.92c0-26.858-21.773-48.631-48.631-48.631-26.859 0-48.632 21.773-48.632 48.631 0 26.859 21.773 48.632 48.632 48.632 26.858 0 48.631-21.773 48.631-48.632zm314.236-48.631c26.858 0 48.631 21.773 48.631 48.631 0 26.859-21.773 48.632-48.631 48.632-26.859 0-48.632-21.773-48.632-48.632 0-26.858 21.773-48.631 48.632-48.631zm-182.77 438.221c26.858 0 48.631-21.774 48.631-48.632 0-26.858-21.773-48.631-48.631-48.631-26.859 0-48.632 21.773-48.632 48.631s21.773 48.632 48.632 48.632z",fill:"#fff",fillOpacity:.56}),v.createElement("defs",null,v.createElement("linearGradient",{id:"a",x1:956,y1:962,x2:70,y2:65.5,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#060E13"}),v.createElement("stop",{offset:1,stopColor:"#313434"})),v.createElement("clipPath",{id:"b",transform:"translate(-118 -252.842)"},v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M541.484 880.466c0-17.416-14.119-31.534-31.534-31.534-17.416 0-31.534 14.118-31.534 31.534 0 17.415 14.118 31.534 31.534 31.534 17.415 0 31.534-14.119 31.534-31.534zm-340.416-576.09c0-17.415-14.118-31.534-31.534-31.534-17.416 0-31.534 14.119-31.534 31.534 0 17.416 14.118 31.534 31.534 31.534 17.416 0 31.534-14.118 31.534-31.534zm653.041-31.534c17.416 0 31.534 14.119 31.534 31.534 0 17.416-14.118 31.534-31.534 31.534-17.416 0-31.534-14.118-31.534-31.534 0-17.415 14.118-31.534 31.534-31.534zm-473.483 122.92c0-26.858-21.773-48.631-48.631-48.631-26.859 0-48.632 21.773-48.632 48.631 0 26.859 21.773 48.632 48.632 48.632 26.858 0 48.631-21.773 48.631-48.632zm314.236-48.631c26.858 0 48.631 21.773 48.631 48.631 0 26.859-21.773 48.632-48.631 48.632-26.859 0-48.632-21.773-48.632-48.632 0-26.858 21.773-48.631 48.632-48.631zm-182.77 438.221c26.858 0 48.631-21.774 48.631-48.632 0-26.858-21.773-48.631-48.631-48.631-26.859 0-48.632 21.773-48.632 48.631s21.773 48.632 48.632 48.632z"})))),Ag=""+new URL("aistro-NLUOUWwT.png",import.meta.url).href;function Mg(e){try{return new URL(e).origin!==window.location.origin}catch{return!1}}function Wo(e,t){try{if(!Mg(e))return e;const r=gp(e),n={utm_source:window.location.hostname,utm_medium:`${t}_nav`,utm_campaign:"default",utm_content:new URL(e).hostname,...r};return Yn(e,n)}catch(r){return console.error("Failed to generate UTM URL:",r),e}}const ol=260,Lg={en:{groups:{applications:"Applications",components:"Components",computeStorage:"Compute/Storage",identity:"Identity",frameworkTools:"Framework & tools",modelsAdapters:"Models adapters"},products:{nftStudio:{description:"Mint and manage NFTs"},creatorStudio:{description:"All-in-one creator tool"},aigne:{description:"The Agentic Ecosystem for AI Apps"},arcsphere:{description:"AI native browser"},aistro:{description:"AI-powered astrology"},blockletLauncher:{description:"One-click app launcher"},aiKit:{description:"Boost apps with AI"},paymentKit:{description:"Effortless Crypto & Card Payments"},blockletStore:{description:"Discover & deploy apps"},web3Kit:{description:"Web3 dev toolkit"},blockletFramework:{description:"Build and run blocklets"},didSpaces:{description:"Secure personal storage"},abtNetwork:{description:"Fast blockchain network"},blockletServer:{description:"Host your apps easily"},ocap:{description:"Multi-chain connector"},did:{description:"Self-sovereign ID"},didWallet:{description:"Smart digital wallet"},didNameService:{description:"Web3 domain names"},vc:{description:"Verifiable Credentials"},didConnect:{description:"Passwordless login"},aigneCodeSmith:{description:"Review and improve your code with AI"},aigneDocSmith:{description:"Generate and update docs with AI"},aigneWebSmith:{description:"Build and deploy AI-powered web apps"},aigneImageSmith:{description:"Generate and Refine Images with AI"},aigneCLI:{description:"Develop agents from the command line"},aigneObservability:{description:"Understand and inspect agent behavior"},aigneStudio:{description:"Create agents visually, no code needed"},aigneFramework:{description:"The functional core of agentic AI"},aigneHub:{description:"One API. Any Model"}}},zh:{groups:{applications:"应用",components:"组件",computeStorage:"计算/存储",identity:"身份",frameworkTools:"框架与工具",modelsAdapters:"模型适配器"},products:{nftStudio:{description:"铸造和管理 NFT"},creatorStudio:{description:"一体化创作工具"},aigne:{description:"AI 应用的代理生态系统"},arcsphere:{description:"AI 原生浏览器"},aistro:{description:"AI 占星术"},blockletLauncher:{description:"一键启动应用程序"},aiKit:{description:"AI 赋能应用"},paymentKit:{description:"便捷的加密货币和银行卡支付"},blockletStore:{description:"发现和部署应用程序"},web3Kit:{description:"Web3 开发工具包"},blockletFramework:{description:"构建并运行 Blocklet"},didSpaces:{description:"安全的个人存储"},abtNetwork:{description:"快速区块链网络"},blockletServer:{description:"轻松托管应用程序"},ocap:{description:"多链连接器"},did:{description:"自主身份"},didWallet:{description:"智能数字钱包"},didNameService:{description:"Web3 域名"},vc:{description:"可验证凭证"},didConnect:{description:"无密码登录"},aigneCodeSmith:{description:"使用 AI 审查并优化你的代码"},aigneDocSmith:{description:"用 AI 生成和更新项目文档"},aigneWebSmith:{description:"构建并部署 AI 驱动的 Web 应用"},aigneImageSmith:{description:"使用 AI 生成和优化图像"},aigneCLI:{description:"通过命令行开发 Agent"},aigneObservability:{description:"理解并分析 Agent 的行为"},aigneStudio:{description:"零代码构建 Agent"},aigneFramework:{description:"Agent AI 的功能核心框架"},aigneHub:{description:"一套 API,连接所有模型"}}},"zh-TW":{groups:{applications:"應用",components:"組件",computeStorage:"計算/儲存",identity:"身份",frameworkTools:"框架與工具",modelsAdapters:"模型適配器"},products:{nftStudio:{description:"鑄造和管理 NFT"},creatorStudio:{description:"一體化創作工具"},aigne:{description:"AI 應用的代理生態系統"},arcsphere:{description:"AI 原生瀏覽器"},aistro:{description:"AI 占星術"},blockletLauncher:{description:"一鍵啟動應用程式"},aiKit:{description:"AI 賦能應用"},paymentKit:{description:"便捷的加密貨幣和銀行卡支付"},blockletStore:{description:"發現和部署應用程式"},web3Kit:{description:"Web3 開發工具包"},blockletFramework:{description:"構建並運行 Blocklet"},didSpaces:{description:"安全的個人儲存"},abtNetwork:{description:"快速區塊鏈網路"},blockletServer:{description:"輕鬆託管應用程式"},ocap:{description:"多鏈連接器"},did:{description:"自主身份"},didWallet:{description:"智能數位錢包"},didNameService:{description:"Web3 域名"},vc:{description:"可驗證憑證"},didConnect:{description:"無密碼登入"},aigneCodeSmith:{description:"使用 AI 審查並優化你的程式碼"},aigneDocSmith:{description:"用 AI 生成和更新專案文件"},aigneWebSmith:{description:"構建並部署 AI 驅動的 Web 應用"},aigneImageSmith:{description:"使用 AI 生成和優化圖像"},aigneCLI:{description:"透過命令列開發 Agent"},aigneObservability:{description:"理解並分析 Agent 的行為"},aigneStudio:{description:"零程式碼構建 Agent"},aigneFramework:{description:"Agent AI 的功能核心框架"},aigneHub:{description:"一套 API,連接所有模型"}}},ja:{groups:{applications:"アプリケーション",components:"コンポーネント",computeStorage:"コンピューティング/ストレージ",identity:"アイデンティティ",frameworkTools:"フレームワークとツール",modelsAdapters:"モデルアダプター"},products:{nftStudio:{description:"NFTの作成と管理"},creatorStudio:{description:"オールインワンクリエイターツール"},aigne:{description:"AIアプリのためのエージェントエコシステム"},arcsphere:{description:"AIネイティブブラウザ"},aistro:{description:"AI駆動占星術"},blockletLauncher:{description:"ワンクリックアプリ起動"},aiKit:{description:"AIでアプリを強化"},paymentKit:{description:"簡単な暗号通貨とカード決済"},blockletStore:{description:"アプリの発見とデプロイ"},web3Kit:{description:"Web3開発ツールキット"},blockletFramework:{description:"Blockletの構築と実行"},didSpaces:{description:"安全な個人ストレージ"},abtNetwork:{description:"高速ブロックチェーンネットワーク"},blockletServer:{description:"アプリの簡単なホスティング"},ocap:{description:"マルチチェーンコネクター"},did:{description:"自己主権ID"},didWallet:{description:"スマートデジタルウォレット"},didNameService:{description:"Web3ドメイン名"},vc:{description:"検証可能な認証情報"},didConnect:{description:"パスワード不要ログイン"},aigneCodeSmith:{description:"AIでコードをレビューし改善"},aigneDocSmith:{description:"AIでドキュメントを生成・更新"},aigneWebSmith:{description:"AI駆動Webアプリの構築とデプロイ"},aigneImageSmith:{description:"AIで画像を生成・最適化"},aigneCLI:{description:"コマンドラインからエージェントを開発"},aigneObservability:{description:"エージェントの動作を理解・分析"},aigneStudio:{description:"コード不要でエージェントを視覚的に作成"},aigneFramework:{description:"エージェントAIの機能コアフレームワーク"},aigneHub:{description:"1つのAPIで全てのモデルに接続"}}}},zg=je(te)`
19
+ `;function bg({label:e,children:t,className:r="",sx:n,...i}){return g.jsxs(mg,{className:`nav-menu-sub-item-group ${r}`,sx:{...n},...i,children:[g.jsx(te,{className:"group-label",children:e}),g.jsx(te,{component:"ul",className:"nav",children:t})]})}const yg=e=>v.createElement("svg",{width:120,height:120,viewBox:"0 0 120 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v.createElement("path",{opacity:.8,d:"M14.291 102.867c0 3.431 3.59 5.18 5.74 2.796l54.861-60.857-15.332-31.49H14.291v89.551z",fill:"url(#a)"}),v.createElement("path",{opacity:.8,d:"M105.709 17.849c0-3.429-3.585-5.178-5.736-2.8l-54.87 60.709 15.337 31.489h45.269V17.849z",fill:"url(#b)"}),v.createElement("path",{opacity:.8,d:"m105.709 107.247-45.867-93.93h-45.55l46.148 93.93h45.269z",fill:"url(#c)"}),v.createElement("defs",null,v.createElement("linearGradient",{id:"a",x1:58.95,y1:13.563,x2:1.148,y2:99.881,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#FF44B4"}),v.createElement("stop",{offset:1,stopColor:"#FFAB48"})),v.createElement("linearGradient",{id:"b",x1:105.788,y1:13.563,x2:48.861,y2:100.72,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#44B3FF"}),v.createElement("stop",{offset:1,stopColor:"#A448FF"})),v.createElement("linearGradient",{id:"c",x1:38.636,y1:11.296,x2:95.518,y2:102.845,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#FF44A9"}),v.createElement("stop",{offset:1,stopColor:"#7452FA"})))),xg=e=>v.createElement("svg",{width:120,height:120,viewBox:"0 0 120 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v.createElement("g",{clipPath:"url(#a)"},v.createElement("rect",{width:98,height:98,rx:16,transform:"matrix(1 0 0 -1 11 109)",fill:"url(#b)"}),v.createElement("g",{filter:"url(#c)"},v.createElement("path",{d:"M60 80V40c-11.04 0-20 8.96-20 20s8.96 20 20 20z",fill:"#fff",fillOpacity:.36,shapeRendering:"crispEdges"})),v.createElement("path",{d:"M60 100c-22.08 0-40-17.92-40-40s17.92-40 40-40 40 17.92 40 40-17.92 40-40 40zm0-60c-11.04 0-20 8.96-20 20s8.96 20 20 20 20-8.96 20-20-8.96-20-20-20z",fill:"url(#d)",style:{mixBlendMode:"plus-lighter"}})),v.createElement("defs",null,v.createElement("linearGradient",{id:"b",x1:7.273,y1:7.273,x2:90.152,y2:90.152,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#2563EB"}),v.createElement("stop",{offset:.333,stopColor:"#2998FF"}),v.createElement("stop",{offset:.667,stopColor:"#48E0A1"}),v.createElement("stop",{offset:1,stopColor:"#9BEF2F"})),v.createElement("linearGradient",{id:"d",x1:60,y1:100,x2:60,y2:20,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#C4C4C4"}),v.createElement("stop",{offset:1,stopColor:"#7D7D7D"})),v.createElement("clipPath",{id:"a"},v.createElement("rect",{width:98,height:98,rx:16,transform:"matrix(1 0 0 -1 11 109)",fill:"#fff"})),v.createElement("filter",{id:"c",x:-20,y:-20,width:140,height:160,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},v.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),v.createElement("feGaussianBlur",{in:"BackgroundImageFix",stdDeviation:30}),v.createElement("feComposite",{in2:"SourceAlpha",operator:"in",result:"effect1_backgroundBlur_3296_9356"}),v.createElement("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),v.createElement("feOffset",{dx:20}),v.createElement("feGaussianBlur",{stdDeviation:20}),v.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),v.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0.404508 0 0 0 0 0.283156 0 0 0 0.2 0"}),v.createElement("feBlend",{in2:"effect1_backgroundBlur_3296_9356",result:"effect2_dropShadow_3296_9356"}),v.createElement("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),v.createElement("feOffset",{dx:10}),v.createElement("feGaussianBlur",{stdDeviation:10}),v.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),v.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0.404508 0 0 0 0 0.283156 0 0 0 0.05 0"}),v.createElement("feBlend",{in2:"effect2_dropShadow_3296_9356",result:"effect3_dropShadow_3296_9356"}),v.createElement("feBlend",{in:"SourceGraphic",in2:"effect3_dropShadow_3296_9356",result:"shape"})))),Sg=e=>v.createElement("svg",{width:40,height:39,viewBox:"0 0 40 39",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v.createElement("path",{d:"m10.247 20.67-3.824-1.655c-.548-.22-.87-.62-.966-1.2-.096-.58.061-1.076.472-1.49l5.182-5.214a3.29 3.29 0 0 1 1.357-.828 3.156 3.156 0 0 1 1.604-.083l2.138.455c-1.453 1.739-2.611 3.318-3.475 4.74-.863 1.42-1.693 3.179-2.488 5.276zm24.18-16.14c.219 0 .438.055.658.166a2.174 2.174 0 0 1 .987.993c.11.22.164.441.164.662.11 2.566-.432 5.229-1.624 7.988-1.193 2.759-2.872 5.228-5.038 7.408-1.48 1.49-2.905 2.683-4.276 3.58-1.37.897-2.988 1.745-4.853 2.545-.356.138-.72.207-1.09.207-.37 0-.692-.138-.966-.414l-5.14-5.173a1.336 1.336 0 0 1-.411-.973c0-.372.068-.738.206-1.096.795-1.849 1.637-3.47 2.528-4.863.892-1.394 2.077-2.835 3.558-4.325 2.165-2.18 4.619-3.87 7.36-5.07 2.742-1.2 5.387-1.745 7.937-1.635zM23.982 16.863c.63.635 1.405.952 2.323.952.919 0 1.693-.317 2.324-.952.63-.634.945-1.414.945-2.338 0-.924-.315-1.704-.945-2.338-.63-.635-1.405-.952-2.324-.952-.918 0-1.693.317-2.323.952-.63.634-.946 1.414-.946 2.338 0 .924.315 1.704.946 2.338zm-3.783 13.824c2.083-.8 3.838-1.635 5.263-2.504 1.426-.87 3.002-2.035 4.73-3.497l.41 2.152c.11.552.083 1.096-.082 1.634-.164.538-.438 1-.822 1.387l-5.182 5.215c-.41.413-.904.565-1.48.455-.576-.11-.973-.442-1.193-.993l-1.644-3.85zm-13.365-3.56c.955-.965 2.121-1.455 3.499-1.469 1.378-.014 2.544.462 3.499 1.428.955.966 1.432 2.138 1.432 3.518s-.48 2.552-1.44 3.518c-.685.69-1.83 1.283-3.433 1.78-1.604.496-3.817.938-6.641 1.324.384-2.842.822-5.065 1.316-6.667.493-1.603 1.083-2.747 1.768-3.432z",fill:"url(#a)"}),v.createElement("defs",null,v.createElement("linearGradient",{id:"a",x1:34.187,y1:7.487,x2:7.292,y2:34.082,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#74D5D6"}),v.createElement("stop",{offset:1,stopColor:"#56AFBE"})))),wg=e=>v.createElement("svg",{width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v.createElement("path",{d:"M9.171 36a3.067 3.067 0 0 1-2.24-.923C6.312 34.46 6 33.72 6 32.857V14c0-.864.31-1.604.932-2.22a3.067 3.067 0 0 1 2.24-.923h3.17c0-2.174.773-4.027 2.32-5.559C16.206 3.766 18.076 3 20.27 3c2.194 0 4.063.766 5.61 2.298 1.545 1.532 2.318 3.385 2.318 5.56h3.171a3.07 3.07 0 0 1 2.24.922c.621.616.931 1.356.931 2.22v18.857c0 .864-.31 1.604-.931 2.22a3.067 3.067 0 0 1-2.24.923H9.171zm6.343-25.143h9.513c0-1.31-.463-2.422-1.387-3.34-.925-.916-2.049-1.374-3.37-1.374-1.321 0-2.444.458-3.37 1.375-.924.917-1.386 2.03-1.386 3.34zM20.23 23.43c1.955 0 3.726-.642 5.311-1.925 1.586-1.284 2.366-2.724 2.34-4.322a1.62 1.62 0 0 0-.437-1.14 1.445 1.445 0 0 0-1.11-.47c-.37 0-.7.117-.99.353-.291.236-.503.59-.635 1.06a4.367 4.367 0 0 1-1.705 2.397c-.845.602-1.77.904-2.774.904-1.005 0-1.936-.302-2.795-.904-.859-.602-1.42-1.401-1.685-2.396-.132-.498-.33-.858-.594-1.08a1.428 1.428 0 0 0-.952-.335c-.449 0-.825.158-1.13.472a1.58 1.58 0 0 0-.455 1.14c0 1.597.78 3.037 2.339 4.32 1.559 1.284 3.316 1.926 5.272 1.926z",fill:"url(#a)"}),v.createElement("defs",null,v.createElement("linearGradient",{id:"a",x1:12.342,y1:13.214,x2:36.685,y2:39.361,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#FF73B2"}),v.createElement("stop",{offset:.333,stopColor:"#E9ED7D"}),v.createElement("stop",{offset:.557,stopColor:"#74E583"}),v.createElement("stop",{offset:1,stopColor:"#01ACC8"})))),Cg=e=>v.createElement("svg",{width:120,height:120,viewBox:"0 0 120 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v.createElement("mask",{id:"a",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:0,y:0,width:120,height:120},v.createElement("path",{fill:"#fff",d:"M0 0h119.883v119.883H0z"})),v.createElement("g",{mask:"url(#a)"},v.createElement("path",{d:"M62.025 14.05A5.05 5.05 0 0 1 67.075 9h23.988a5.05 5.05 0 0 1 5.05 5.05v60.6a5.05 5.05 0 0 1-5.05 5.05H67.075a5.05 5.05 0 0 1-5.05-5.05v-60.6z",fill:"url(#b)"}),v.createElement("path",{d:"M24.15 32.987a5.05 5.05 0 0 1 5.05-5.05h40.4a5.05 5.05 0 0 1 5.05 5.05V74.65a5.05 5.05 0 0 1-5.05 5.05H29.2a5.05 5.05 0 0 1-5.05-5.05V32.987z",fill:"url(#c)"}),v.createElement("g",{filter:"url(#d)"},v.createElement("path",{d:"M16.575 64.55c0-5.578 4.522-10.1 10.1-10.1h64.388c5.578 0 10.1 4.522 10.1 10.1V99.9c0 5.578-4.522 10.1-10.1 10.1H26.675c-5.578 0-10.1-4.522-10.1-10.1V64.55z",fill:"url(#e)"})),v.createElement("g",{filter:"url(#f)"},v.createElement("path",{d:"M10.263 55.712a7.575 7.575 0 0 1 7.575-7.575H99.9a7.575 7.575 0 0 1 7.575 7.575v10.1a7.575 7.575 0 0 1-7.575 7.575H17.838a7.575 7.575 0 0 1-7.575-7.575v-10.1z",fill:"url(#g)"})),v.createElement("circle",{cx:58.869,cy:87.906,r:6.944,fill:"#6BADFF"})),v.createElement("defs",null,v.createElement("linearGradient",{id:"b",x1:86.013,y1:9,x2:86.644,y2:46.875,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#FF7575"}),v.createElement("stop",{offset:1,stopColor:"#C91C1C"})),v.createElement("linearGradient",{id:"c",x1:49.4,y1:56.975,x2:49.4,y2:27.938,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#ED7F1A"}),v.createElement("stop",{offset:1,stopColor:"#FFE074"})),v.createElement("linearGradient",{id:"e",x1:16.575,y1:75.281,x2:101.163,y2:114.419,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#54A0FD"}),v.createElement("stop",{offset:1,stopColor:"#136EDE"})),v.createElement("linearGradient",{id:"g",x1:16.575,y1:55.712,x2:58.789,y2:111.945,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#83BAFF"}),v.createElement("stop",{offset:1,stopColor:"#2482F6"})),v.createElement("filter",{id:"d",x:16.575,y:54.45,width:86.587,height:57.55,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},v.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),v.createElement("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),v.createElement("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),v.createElement("feMorphology",{radius:4,in:"SourceAlpha",result:"effect1_innerShadow_3296_9286"}),v.createElement("feOffset",{dx:2,dy:2}),v.createElement("feGaussianBlur",{stdDeviation:3}),v.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:-1,k3:1}),v.createElement("feColorMatrix",{values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.25 0"}),v.createElement("feBlend",{in2:"shape",result:"effect1_innerShadow_3296_9286"})),v.createElement("filter",{id:"f",x:10.263,y:48.138,width:99.212,height:27.25,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},v.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),v.createElement("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),v.createElement("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),v.createElement("feMorphology",{radius:4,in:"SourceAlpha",result:"effect1_innerShadow_3296_9286"}),v.createElement("feOffset",{dx:2,dy:2}),v.createElement("feGaussianBlur",{stdDeviation:3}),v.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:-1,k3:1}),v.createElement("feColorMatrix",{values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.25 0"}),v.createElement("feBlend",{in2:"shape",result:"effect1_innerShadow_3296_9286"})))),Ig=e=>v.createElement("svg",{width:68,height:68,viewBox:"0 0 68 68",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v.createElement("mask",{id:"c",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:4,y:3,width:59,height:62},v.createElement("path",{d:"M33.974 4.067 33.858 4l-.117.067-17.174 9.916-.117.068v13.187L5.117 33.78 5 33.848V53.95l.117.067 17.174 9.916.117.067.117-.067 11.303-6.527.03.017.03-.017 11.303 6.527.117.067.116-.067L62.6 54.017l.117-.068v-20.1l-.117-.067-11.333-6.543V14.05l-.117-.068-17.175-9.916zm15.037 11.286V25.97l-15.037-8.681-.116-.068-.117.067-15.036 8.682V15.353l15.153-8.749 15.153 8.749zm-3.703 46.043-9.166-5.292L51.15 47.44l.117-.067V29.842l9.195 5.309v17.496l-15.153 8.749zM16.566 47.44l15.007 8.664-9.165 5.292-15.153-8.749V35.151l9.195-5.309v17.531l.116.067zM32.73 35.37l-12.897-7.447 12.897-7.447V35.37zm-14.025 9.399V29.876l12.898 7.446-12.898 7.447zm16.28 9.4V39.274l12.898 7.447-12.898 7.446zm14.026-24.293v14.893l-12.898-7.447 12.898-7.446zm-16.28 9.4v14.892l-12.898-7.446 12.897-7.447zm2.254-3.907V20.476l12.898 7.447-12.898 7.446z",fill:"url(#a)",stroke:"url(#b)",strokeWidth:.5})),v.createElement("g",{mask:"url(#c)"},v.createElement("path",{d:"M68 0H0v68h68V0z",fill:"url(#d)"})),v.createElement("defs",null,v.createElement("linearGradient",{id:"a",x1:36.103,y1:-30.336,x2:-29.543,y2:21.525,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#4EF1BA"}),v.createElement("stop",{offset:.502,stopColor:"#16CED1"}),v.createElement("stop",{offset:1,stopColor:"#3773F2"})),v.createElement("linearGradient",{id:"b",x1:37.6,y1:-67.429,x2:-62.714,y2:20.675,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#4EF1BA"}),v.createElement("stop",{offset:.502,stopColor:"#16CED1"}),v.createElement("stop",{offset:1,stopColor:"#3773F2"})),v.createElement("linearGradient",{id:"d",x1:38.445,y1:-81.994,x2:-76.754,y2:23.094,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#4EF1BA"}),v.createElement("stop",{offset:.502,stopColor:"#16CED1"}),v.createElement("stop",{offset:1,stopColor:"#3773F2"})))),Rg=e=>v.createElement("svg",{width:200,height:200,viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v.createElement("mask",{id:"a",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:8,y:8,width:184,height:184},v.createElement("path",{d:"M192 100c0-50.81-41.19-92-92-92S8 49.19 8 100s41.19 92 92 92 92-41.19 92-92z",fill:"#fff"})),v.createElement("g",{mask:"url(#a)"},v.createElement("path",{d:"M192 100c0-50.81-41.19-92-92-92S8 49.19 8 100s41.19 92 92 92 92-41.19 92-92z",fill:"#fff"}),v.createElement("path",{d:"M192 8H8v184h184V8z",fill:"url(#b)"}),v.createElement("path",{opacity:.6,fillRule:"evenodd",clipRule:"evenodd",d:"M98.06 97.074v2.23l-1.942 1.115L40.2 132.536l1.941 3.344L100 102.648l57.859 33.232 1.941-3.344-55.918-32.117-1.941-1.115V32.84h-3.882v64.234z",fill:"#fff"}),v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m100.404 28.62 62.156 35.886v71.771l-62.156 35.886-62.155-35.886V64.506l62.155-35.886zM44.076 65.627l38.653 22.317 17.676-30.615 17.675 30.614 38.653-22.316-56.329-32.52-56.328 32.52zm114.599 3.364-38.653 22.317 17.676 30.615-35.351 20.41v24.223l56.328-32.522V68.991zm-60.213 97.565v-24.223l-35.35-20.41 17.675-30.615L42.133 68.99v65.043l56.329 32.522zM84.15 93.25l-15.733 27.251 30.045 17.346v-36.335l-1.942-1.121-12.37-7.14zm18.197 44.597 30.043-17.346-15.733-27.25-12.368 7.14-1.942 1.121v36.335zm12.368-47.96-14.311-24.789-14.311 24.788 14.311 8.263 14.311-8.263z",fill:"#fff"})),v.createElement("defs",null,v.createElement("linearGradient",{id:"b",x1:100,y1:-84,x2:-84,y2:100,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#4EF1BA"}),v.createElement("stop",{offset:.502,stopColor:"#16CED1"}),v.createElement("stop",{offset:1,stopColor:"#3773F2"})))),_g=e=>v.createElement("svg",{width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v.createElement("g",{clipPath:"url(#a)"},v.createElement("mask",{id:"b",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:40,height:40},v.createElement("path",{d:"M40 0H0v40h40V0z",fill:"#D9D9D9"})),v.createElement("g",{mask:"url(#b)"},v.createElement("path",{d:"M11.917 8.278c-.733 0-1.356.256-1.87.77a2.545 2.545 0 0 0-.77 1.869c0 .733.257 1.356.77 1.869.514.513 1.137.77 1.87.77.733 0 1.356-.257 1.869-.77.513-.513.77-1.136.77-1.87 0-.732-.257-1.355-.77-1.869a2.545 2.545 0 0 0-1.87-.77zm0 17.592c-.733 0-1.356.257-1.87.77a2.545 2.545 0 0 0-.77 1.87c0 .732.257 1.355.77 1.868.514.514 1.137.77 1.87.77.733 0 1.356-.256 1.869-.77.513-.513.77-1.136.77-1.869 0-.733-.257-1.356-.77-1.869a2.545 2.545 0 0 0-1.87-.77zM5.759 3h28.148c.499 0 .917.169 1.254.506.337.337.506.755.506 1.253v12.315c0 .498-.169.916-.506 1.254a1.703 1.703 0 0 1-1.254.505H5.76c-.498 0-.916-.168-1.253-.505A1.703 1.703 0 0 1 4 17.074V4.76c0-.498.169-.916.506-1.253A1.702 1.702 0 0 1 5.759 3zm0 17.593h28.148c.499 0 .917.168 1.254.505.337.338.506.756.506 1.254v12.315c0 .498-.169.916-.506 1.253a1.702 1.702 0 0 1-1.254.506H5.76c-.498 0-.916-.169-1.253-.506A1.702 1.702 0 0 1 4 34.667V22.352c0-.498.169-.916.506-1.254a1.702 1.702 0 0 1 1.253-.505z",fill:"url(#c)"}))),v.createElement("defs",null,v.createElement("linearGradient",{id:"c",x1:4,y1:19.713,x2:35.667,y2:19.713,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#2FD99C"}),v.createElement("stop",{offset:1,stopColor:"#8CE598"})),v.createElement("clipPath",{id:"a"},v.createElement("path",{fill:"#fff",d:"M0 0h40v40H0z"})))),Dg=e=>v.createElement("svg",{width:420,height:420,viewBox:"0 0 420 420",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v.createElement("path",{d:"M210.205 17.143V210m0 0 166.667 96.19M210.205 210 44.967 305.238",stroke:"url(#a)",strokeOpacity:.6,strokeWidth:18}),v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m247.638 178.49-37.433 21.613-37.284-21.527 27.416-47.8 1.297-2.26 8.571-14.945 8.571 14.866 1.337 2.316 27.525 47.737zm14.846-8.571-37.428-64.911-14.89-25.824-14.832 25.858-37.26 64.963-95.36-55.056 147.491-85.154 147.49 85.154-95.211 54.97zm-6.283 23.423-37.425 21.607v86.295l66.189-38.2 8.573-4.949-8.552-14.832-28.785-49.921zm-37.425 127.694 83.332-48.093 14.841-8.566-8.56-14.845-37.342-64.762 95.22-54.975v170.308l-147.491 85.153v-64.22zm-17.142-19.885v-86.202l-37.242-21.501-28.33 49.392-8.476 14.779 8.497 4.995 65.551 38.537zm-52.088-116.275-36.831 64.214-8.438 14.712 14.621 8.595 82.619 48.572.117.068v64.219L54.143 300.103V129.795l95.403 55.081zM210.205 10 45.571 105.051 37 110v200l164.634 95.051 8.571 4.949 8.571-4.949L383.41 310V110l-8.572-4.949L210.205 10z",fill:"url(#b)"}),v.createElement("defs",null,v.createElement("linearGradient",{id:"a",x1:632.433,y1:166.456,x2:334.741,y2:-292.388,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#4EF1BA"}),v.createElement("stop",{offset:.502,stopColor:"#16CED1"}),v.createElement("stop",{offset:1,stopColor:"#3773F2"})),v.createElement("linearGradient",{id:"b",x1:210.205,y1:-190,x2:-189.795,y2:210,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#4EF1BA"}),v.createElement("stop",{offset:.502,stopColor:"#16CED1"}),v.createElement("stop",{offset:1,stopColor:"#3773F2"})))),Tg=e=>v.createElement("svg",{viewBox:"0 0 90 65",xmlns:"http://www.w3.org/2000/svg",...e},v.createElement("path",{d:"M79.425.7c5.688 0 10.3 4.612 10.3 10.3v43.234c0 5.689-4.612 10.3-10.3 10.3H11.156c-5.688 0-10.3-4.611-10.3-10.3v-.215h4.6v.215a5.7 5.7 0 0 0 5.7 5.7h68.269a5.7 5.7 0 0 0 5.7-5.7V11a5.7 5.7 0 0 0-5.7-5.7H11.156a5.7 5.7 0 0 0-5.7 5.7v.49h-4.6V11C.856 5.312 5.468.7 11.156.7h68.269zM11.293 17.691c2.945 0 5.495.62 7.65 1.86 2.182 1.211 3.879 2.929 5.088 5.154 1.21 2.225 1.814 4.845 1.814 7.86 0 2.985-.604 5.577-1.814 7.774a12.78 12.78 0 0 1-5.088 5.112c-2.155 1.211-4.706 1.818-7.65 1.818H1V17.69h10.293zM35.206 47.27h-5.324V17.69h5.324v29.58zm15.677-29.58c2.944 0 5.494.62 7.65 1.86 2.182 1.21 3.878 2.929 5.087 5.154 1.21 2.225 1.815 4.846 1.815 7.86 0 2.985-.606 5.577-1.815 7.774a12.78 12.78 0 0 1-5.087 5.112c-2.156 1.211-4.706 1.818-7.65 1.818H40.59V17.69h10.293zm22.595 19.066a2.98 2.98 0 1 1-.001 5.958 2.98 2.98 0 0 1 .001-5.958zM6.325 42.494h4.812c2.97 0 5.257-.874 6.861-2.62 1.604-1.775 2.405-4.211 2.405-7.31 0-3.126-.801-5.591-2.405-7.394-1.604-1.803-3.89-2.704-6.861-2.704H6.324v20.028zm39.59 0h4.81c2.971 0 5.26-.873 6.863-2.62 1.603-1.775 2.405-4.211 2.405-7.31 0-3.126-.801-5.591-2.405-7.394-1.604-1.803-3.892-2.704-6.862-2.704h-4.81v20.028zm27.564-19.637a2.978 2.978 0 1 1 0 5.957 2.978 2.978 0 0 1 0-5.957z",fill:"currentColor"})),kg=e=>v.createElement("svg",{width:120,height:120,viewBox:"0 0 120 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v.createElement("rect",{x:9,y:9,width:102,height:102,rx:12,fill:"url(#a)"}),v.createElement("mask",{id:"b",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:9,y:9,width:102,height:102},v.createElement("rect",{x:9,y:9,width:102,height:102,rx:12,fill:"#fff"})),v.createElement("g",{mask:"url(#b)"},v.createElement("rect",{x:9,y:9,width:102,height:102,rx:12,fill:"url(#c)"}),v.createElement("path",{d:"M20.22 32.269a7.969 7.969 0 0 1 7.969-7.969H91.81a7.969 7.969 0 0 1 7.969 7.969V71.41a7.969 7.969 0 0 1-7.969 7.97H28.19a7.969 7.969 0 0 1-7.969-7.97V32.27z",fill:"#9FCBFF"}),v.createElement("path",{d:"M17.16 38.389a7.969 7.969 0 0 1 7.969-7.969H94.87a7.969 7.969 0 0 1 7.969 7.969V82.12a7.969 7.969 0 0 1-7.969 7.969H25.13a7.969 7.969 0 0 1-7.969-7.969V38.39z",fill:"url(#d)"}),v.createElement("path",{d:"M9 80.145 111 60.51V99c0 6.627-5.373 12-12 12H21c-6.627 0-12-5.373-12-12V80.145z",fill:"url(#e)"})),v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.84 54.153V39.44h7.781a3.791 3.791 0 0 1 3.528 3.782v7.138a3.791 3.791 0 0 1-3.791 3.792H21.84zM38.041 39.44h-2.02v14.734h2.02V39.441zm-14.18 12.691v-10.68h5.497c.978 0 1.77.793 1.77 1.771v7.138a1.77 1.77 0 0 1-1.77 1.771H23.86zm17.018-12.69v14.71h7.518a3.791 3.791 0 0 0 3.791-3.79v-7.139a3.791 3.791 0 0 0-3.528-3.782h-7.78zm13.88 3.413h2.259v2.259h-2.259v-2.259zm2.259 5.647h-2.259v2.259h2.259v-2.259zM42.9 41.452v10.68h5.497a1.77 1.77 0 0 0 1.77-1.77v-7.139a1.77 1.77 0 0 0-1.77-1.77H42.9z",fill:"#4598FA"}),v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M92.652 87.208v9.266l-.82.474 1.448.837.821-.474v-10.94l-6.945-4.01h-6.461v18.96h6.46l1.778-1.026-1.45-.837-.715.414h-4.624V83.81h4.624l5.884 3.397zm.96-4.846-1.774 1.025 1.449.836.714-.412h4.624v16.06H94l-5.884-3.397v-9.266l.823-.475-1.45-.837-.823.476V97.31l6.707 3.872c.156.09.334.138.515.138h6.185V82.36h-6.461z",fill:"#fff"}),v.createElement("defs",null,v.createElement("linearGradient",{id:"a",x1:9,y1:9,x2:9,y2:111,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#4F9DF6"}),v.createElement("stop",{offset:1,stopColor:"#0A79F8"})),v.createElement("linearGradient",{id:"c",x1:9,y1:9,x2:9,y2:111,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#4F9DF6"}),v.createElement("stop",{offset:1,stopColor:"#0A79F8"})),v.createElement("linearGradient",{id:"d",x1:17.16,y1:30.42,x2:17.16,y2:90.09,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#fff"}),v.createElement("stop",{offset:1,stopColor:"#ECEFFF"})),v.createElement("linearGradient",{id:"e",x1:20.156,y1:77.531,x2:26.73,y2:110.104,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{offset:.007,stopColor:"#77B2F6"}),v.createElement("stop",{offset:.206,stopColor:"#4F9DF6"}),v.createElement("stop",{offset:1,stopColor:"#4598FA"})))),Eg=e=>v.createElement("svg",{width:76,height:76,viewBox:"0 0 76 76",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 15a2 2 0 0 0-2 2v3.176H0V17a6 6 0 0 1 6-6h63.23a6 6 0 0 1 6 6v42.069a6 6 0 0 1-6 6H6a6 6 0 0 1-6-6v-2.945h4v2.945a2 2 0 0 0 2 2h63.23a2 2 0 0 0 2-2V17a2 2 0 0 0-2-2H6z",fill:"#4598FA"}),v.createElement("circle",{cx:32,cy:31,r:10,stroke:"#4598FA",strokeWidth:4}),v.createElement("path",{d:"m40.688 48.384 5.602 5.602 10.343-10.343m-6.966-5.073c3.253 0 5.891-3.166 5.891-7.07 0-3.905-2.638-7.07-5.891-7.07M32 41h-7.147a7 7 0 0 0-7 7v7.065",stroke:"#4598FA",strokeWidth:4})),Pg=""+new URL("payment-kit-DYSjmihw.png",import.meta.url).href,Og=e=>v.createElement("svg",{viewBox:"0 0 400 400",xmlns:"http://www.w3.org/2000/svg",...e},v.createElement("rect",{x:73.16,y:109.16,width:253.435,height:181.679,rx:36.641,fill:"none",stroke:"currentColor",strokeWidth:18.321}),v.createElement("ellipse",{cx:164,cy:199.618,rx:16.03,ry:28.626,fill:"currentColor"}),v.createElement("ellipse",{cx:234.991,cy:199.618,rx:16.03,ry:28.626,fill:"currentColor"})),Ng=e=>v.createElement("svg",{viewBox:"0 0 902 902",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v.createElement("rect",{width:902,height:902,rx:212,fill:"url(#a)"}),v.createElement("rect",{x:166,y:247,width:569,height:409,rx:80,stroke:"#fff",style:{stroke:"#fff",strokeOpacity:1},strokeWidth:40}),v.createElement("ellipse",{cx:371,cy:452,rx:37,ry:65,fill:"#fff",style:{fill:"#fff",fillOpacity:1}}),v.createElement("ellipse",{cx:531,cy:452,rx:37,ry:65,fill:"#fff",style:{fill:"#fff",fillOpacity:1}}),v.createElement("defs",null,v.createElement("linearGradient",{id:"a",x1:84,y1:78.5,x2:811.5,y2:850.5,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#AAF4EF",style:{stopColor:"color(display-p3 .6667 .9569 .9373)",stopOpacity:1}}),v.createElement("stop",{offset:.181,stopColor:"#C7F37F",style:{stopColor:"color(display-p3 .7798 .9512 .4996)",stopOpacity:1}}),v.createElement("stop",{offset:.361,stopColor:"#FFD071",style:{stopColor:"color(display-p3 1 .8141 .4422)",stopOpacity:1}}),v.createElement("stop",{offset:.546,stopColor:"#FF9898",style:{stopColor:"color(display-p3 1 .596 .596)",stopOpacity:1}}),v.createElement("stop",{offset:.722,stopColor:"#FF89E0",style:{stopColor:"color(display-p3 1 .536 .8769)",stopOpacity:1}}),v.createElement("stop",{offset:.899,stopColor:"#B695FE",style:{stopColor:"color(display-p3 .7137 .5843 .9961)",stopOpacity:1}}),v.createElement("stop",{offset:1,stopColor:"#7C8EED",style:{stopColor:"color(display-p3 .4863 .5569 .9294)",stopOpacity:1}})))),il=e=>v.createElement("svg",{width:1024,height:1024,viewBox:"0 0 1024 1024",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v.createElement("rect",{width:1024,height:1024,rx:250,fill:"url(#a)"}),v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M283.163 232.966c-9.334 5.389-9.334 18.86 0 24.249 4.331 2.5 9.668 2.5 14 0L402 196.687a14 14 0 0 0 7-12.125c0-10.777-11.666-17.513-21-12.124l-104.837 60.528zm-98.864 215.431a14 14 0 0 0-7-12.125c-9.333-5.388-21 1.347-21 12.125v123.207c0 10.777 11.667 17.513 21 12.124a14 14 0 0 0 7-12.124V448.397zm547.739 316.237a14 14 0 0 1 14 0c9.334 5.388 9.334 18.86 0 24.249L638 851.258c-9.333 5.389-21-1.347-21-12.124a14 14 0 0 1 7-12.124l108.038-62.376zm137.137-193.333c0 10.777-11.667 17.512-21 12.124a14.002 14.002 0 0 1-7-12.124V448.7a14 14 0 0 1 7-12.124c9.333-5.389 21 1.347 21 12.124v122.601zM409 839.438c0 10.777-11.666 17.513-21 12.124l-108.301-62.528c-9.334-5.388-9.334-18.86 0-24.248a14 14 0 0 1 14 0L402 827.313a14 14 0 0 1 7 12.125zm208-654.572c0-10.777 11.667-17.513 21-12.124l104.575 60.376c9.333 5.388 9.333 18.86 0 24.248a14 14 0 0 1-14 0L624 196.99a14 14 0 0 1-7-12.124z",fill:"#fff",fillOpacity:.12}),v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M513.689 175.068c-17.416 0-31.534-14.118-31.534-31.534 0-17.416 14.118-31.534 31.534-31.534 17.416 0 31.534 14.118 31.534 31.534 0 17.416-14.118 31.534-31.534 31.534zM560.723 321.5c0 26.858-21.773 48.631-48.631 48.631s-48.631-21.773-48.631-48.631c0-26.859 21.773-48.632 48.631-48.632s48.631 21.773 48.631 48.632zm130.926 355.386c-26.858 0-48.631-21.773-48.631-48.631 0-26.859 21.773-48.632 48.631-48.632 26.859 0 48.632 21.773 48.632 48.632 0 26.858-21.773 48.631-48.632 48.631zm-411.498-48.631c0 26.858 21.773 48.631 48.632 48.631 26.858 0 48.631-21.773 48.631-48.631 0-26.859-21.773-48.632-48.631-48.632-26.859 0-48.632 21.773-48.632 48.632zm231.935-44.897c-39.255 0-71.077-31.822-71.077-71.077 0-39.254 31.822-71.077 71.077-71.077 39.255 0 71.077 31.823 71.077 71.077 0 39.255-31.822 71.077-71.077 71.077zm310.488 136.265c0 17.416 14.118 31.534 31.534 31.534 17.415 0 31.534-14.118 31.534-31.534 0-17.415-14.119-31.534-31.534-31.534-17.416 0-31.534 14.119-31.534 31.534zm-684.565 0c0 17.416 14.119 31.534 31.534 31.534 17.416 0 31.534-14.118 31.534-31.534 0-17.415-14.118-31.534-31.534-31.534-17.415 0-31.534 14.119-31.534 31.534z",fill:"#fff"}),v.createElement("foreignObject",{x:118,y:252.842,width:787.643,height:679.157},v.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",style:{backdropFilter:"blur(10px)",clipPath:"url(#b)",height:"100%",width:"100%"}})),v.createElement("path",{"data-figma-bg-blur-radius":20,fillRule:"evenodd",clipRule:"evenodd",d:"M541.484 880.466c0-17.416-14.119-31.534-31.534-31.534-17.416 0-31.534 14.118-31.534 31.534 0 17.415 14.118 31.534 31.534 31.534 17.415 0 31.534-14.119 31.534-31.534zm-340.416-576.09c0-17.415-14.118-31.534-31.534-31.534-17.416 0-31.534 14.119-31.534 31.534 0 17.416 14.118 31.534 31.534 31.534 17.416 0 31.534-14.118 31.534-31.534zm653.041-31.534c17.416 0 31.534 14.119 31.534 31.534 0 17.416-14.118 31.534-31.534 31.534-17.416 0-31.534-14.118-31.534-31.534 0-17.415 14.118-31.534 31.534-31.534zm-473.483 122.92c0-26.858-21.773-48.631-48.631-48.631-26.859 0-48.632 21.773-48.632 48.631 0 26.859 21.773 48.632 48.632 48.632 26.858 0 48.631-21.773 48.631-48.632zm314.236-48.631c26.858 0 48.631 21.773 48.631 48.631 0 26.859-21.773 48.632-48.631 48.632-26.859 0-48.632-21.773-48.632-48.632 0-26.858 21.773-48.631 48.632-48.631zm-182.77 438.221c26.858 0 48.631-21.774 48.631-48.632 0-26.858-21.773-48.631-48.631-48.631-26.859 0-48.632 21.773-48.632 48.631s21.773 48.632 48.632 48.632z",fill:"#fff",fillOpacity:.56}),v.createElement("defs",null,v.createElement("linearGradient",{id:"a",x1:956,y1:962,x2:70,y2:65.5,gradientUnits:"userSpaceOnUse"},v.createElement("stop",{stopColor:"#060E13"}),v.createElement("stop",{offset:1,stopColor:"#313434"})),v.createElement("clipPath",{id:"b",transform:"translate(-118 -252.842)"},v.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M541.484 880.466c0-17.416-14.119-31.534-31.534-31.534-17.416 0-31.534 14.118-31.534 31.534 0 17.415 14.118 31.534 31.534 31.534 17.415 0 31.534-14.119 31.534-31.534zm-340.416-576.09c0-17.415-14.118-31.534-31.534-31.534-17.416 0-31.534 14.119-31.534 31.534 0 17.416 14.118 31.534 31.534 31.534 17.416 0 31.534-14.118 31.534-31.534zm653.041-31.534c17.416 0 31.534 14.119 31.534 31.534 0 17.416-14.118 31.534-31.534 31.534-17.416 0-31.534-14.118-31.534-31.534 0-17.415 14.118-31.534 31.534-31.534zm-473.483 122.92c0-26.858-21.773-48.631-48.631-48.631-26.859 0-48.632 21.773-48.632 48.631 0 26.859 21.773 48.632 48.632 48.632 26.858 0 48.631-21.773 48.631-48.632zm314.236-48.631c26.858 0 48.631 21.773 48.631 48.631 0 26.859-21.773 48.632-48.631 48.632-26.859 0-48.632-21.773-48.632-48.632 0-26.858 21.773-48.631 48.632-48.631zm-182.77 438.221c26.858 0 48.631-21.774 48.631-48.632 0-26.858-21.773-48.631-48.631-48.631-26.859 0-48.632 21.773-48.632 48.631s21.773 48.632 48.632 48.632z"})))),Mg=""+new URL("aistro-NLUOUWwT.png",import.meta.url).href;function Ag(e){try{return new URL(e).origin!==window.location.origin}catch{return!1}}function Wo(e,t){try{if(!Ag(e))return e;const r=gp(e),n={utm_source:window.location.hostname,utm_medium:`${t}_nav`,utm_campaign:"default",utm_content:new URL(e).hostname,...r};return Yn(e,n)}catch(r){return console.error("Failed to generate UTM URL:",r),e}}const ol=260,Lg={en:{groups:{applications:"Applications",components:"Components",computeStorage:"Compute/Storage",identity:"Identity",frameworkTools:"Framework & tools",modelsAdapters:"Models adapters"},products:{nftStudio:{description:"Mint and manage NFTs"},creatorStudio:{description:"All-in-one creator tool"},aigne:{description:"The Agentic Ecosystem for AI Apps"},arcsphere:{description:"AI native browser"},aistro:{description:"AI-powered astrology"},blockletLauncher:{description:"One-click app launcher"},aiKit:{description:"Boost apps with AI"},paymentKit:{description:"Effortless Crypto & Card Payments"},blockletStore:{description:"Discover & deploy apps"},web3Kit:{description:"Web3 dev toolkit"},blockletFramework:{description:"Build and run blocklets"},didSpaces:{description:"Secure personal storage"},abtNetwork:{description:"Fast blockchain network"},blockletServer:{description:"Host your apps easily"},ocap:{description:"Multi-chain connector"},did:{description:"Self-sovereign ID"},didWallet:{description:"Smart digital wallet"},didNameService:{description:"Web3 domain names"},vc:{description:"Verifiable Credentials"},didConnect:{description:"Passwordless login"},aigneCodeSmith:{description:"Review and improve your code with AI"},aigneDocSmith:{description:"Generate and update docs with AI"},aigneWebSmith:{description:"Build and deploy AI-powered web apps"},aigneImageSmith:{description:"Generate and Refine Images with AI"},aigneCLI:{description:"Develop agents from the command line"},aigneObservability:{description:"Understand and inspect agent behavior"},aigneStudio:{description:"Create agents visually, no code needed"},aigneFramework:{description:"The functional core of agentic AI"},aigneHub:{description:"One API. Any Model"}}},zh:{groups:{applications:"应用",components:"组件",computeStorage:"计算/存储",identity:"身份",frameworkTools:"框架与工具",modelsAdapters:"模型适配器"},products:{nftStudio:{description:"铸造和管理 NFT"},creatorStudio:{description:"一体化创作工具"},aigne:{description:"AI 应用的代理生态系统"},arcsphere:{description:"AI 原生浏览器"},aistro:{description:"AI 占星术"},blockletLauncher:{description:"一键启动应用程序"},aiKit:{description:"AI 赋能应用"},paymentKit:{description:"便捷的加密货币和银行卡支付"},blockletStore:{description:"发现和部署应用程序"},web3Kit:{description:"Web3 开发工具包"},blockletFramework:{description:"构建并运行 Blocklet"},didSpaces:{description:"安全的个人存储"},abtNetwork:{description:"快速区块链网络"},blockletServer:{description:"轻松托管应用程序"},ocap:{description:"多链连接器"},did:{description:"自主身份"},didWallet:{description:"智能数字钱包"},didNameService:{description:"Web3 域名"},vc:{description:"可验证凭证"},didConnect:{description:"无密码登录"},aigneCodeSmith:{description:"使用 AI 审查并优化你的代码"},aigneDocSmith:{description:"用 AI 生成和更新项目文档"},aigneWebSmith:{description:"构建并部署 AI 驱动的 Web 应用"},aigneImageSmith:{description:"使用 AI 生成和优化图像"},aigneCLI:{description:"通过命令行开发 Agent"},aigneObservability:{description:"理解并分析 Agent 的行为"},aigneStudio:{description:"零代码构建 Agent"},aigneFramework:{description:"Agent AI 的功能核心框架"},aigneHub:{description:"一套 API,连接所有模型"}}},"zh-TW":{groups:{applications:"應用",components:"組件",computeStorage:"計算/儲存",identity:"身份",frameworkTools:"框架與工具",modelsAdapters:"模型適配器"},products:{nftStudio:{description:"鑄造和管理 NFT"},creatorStudio:{description:"一體化創作工具"},aigne:{description:"AI 應用的代理生態系統"},arcsphere:{description:"AI 原生瀏覽器"},aistro:{description:"AI 占星術"},blockletLauncher:{description:"一鍵啟動應用程式"},aiKit:{description:"AI 賦能應用"},paymentKit:{description:"便捷的加密貨幣和銀行卡支付"},blockletStore:{description:"發現和部署應用程式"},web3Kit:{description:"Web3 開發工具包"},blockletFramework:{description:"構建並運行 Blocklet"},didSpaces:{description:"安全的個人儲存"},abtNetwork:{description:"快速區塊鏈網路"},blockletServer:{description:"輕鬆託管應用程式"},ocap:{description:"多鏈連接器"},did:{description:"自主身份"},didWallet:{description:"智能數位錢包"},didNameService:{description:"Web3 域名"},vc:{description:"可驗證憑證"},didConnect:{description:"無密碼登入"},aigneCodeSmith:{description:"使用 AI 審查並優化你的程式碼"},aigneDocSmith:{description:"用 AI 生成和更新專案文件"},aigneWebSmith:{description:"構建並部署 AI 驅動的 Web 應用"},aigneImageSmith:{description:"使用 AI 生成和優化圖像"},aigneCLI:{description:"透過命令列開發 Agent"},aigneObservability:{description:"理解並分析 Agent 的行為"},aigneStudio:{description:"零程式碼構建 Agent"},aigneFramework:{description:"Agent AI 的功能核心框架"},aigneHub:{description:"一套 API,連接所有模型"}}},ja:{groups:{applications:"アプリケーション",components:"コンポーネント",computeStorage:"コンピューティング/ストレージ",identity:"アイデンティティ",frameworkTools:"フレームワークとツール",modelsAdapters:"モデルアダプター"},products:{nftStudio:{description:"NFTの作成と管理"},creatorStudio:{description:"オールインワンクリエイターツール"},aigne:{description:"AIアプリのためのエージェントエコシステム"},arcsphere:{description:"AIネイティブブラウザ"},aistro:{description:"AI駆動占星術"},blockletLauncher:{description:"ワンクリックアプリ起動"},aiKit:{description:"AIでアプリを強化"},paymentKit:{description:"簡単な暗号通貨とカード決済"},blockletStore:{description:"アプリの発見とデプロイ"},web3Kit:{description:"Web3開発ツールキット"},blockletFramework:{description:"Blockletの構築と実行"},didSpaces:{description:"安全な個人ストレージ"},abtNetwork:{description:"高速ブロックチェーンネットワーク"},blockletServer:{description:"アプリの簡単なホスティング"},ocap:{description:"マルチチェーンコネクター"},did:{description:"自己主権ID"},didWallet:{description:"スマートデジタルウォレット"},didNameService:{description:"Web3ドメイン名"},vc:{description:"検証可能な認証情報"},didConnect:{description:"パスワード不要ログイン"},aigneCodeSmith:{description:"AIでコードをレビューし改善"},aigneDocSmith:{description:"AIでドキュメントを生成・更新"},aigneWebSmith:{description:"AI駆動Webアプリの構築とデプロイ"},aigneImageSmith:{description:"AIで画像を生成・最適化"},aigneCLI:{description:"コマンドラインからエージェントを開発"},aigneObservability:{description:"エージェントの動作を理解・分析"},aigneStudio:{description:"コード不要でエージェントを視覚的に作成"},aigneFramework:{description:"エージェントAIの機能コアフレームワーク"},aigneHub:{description:"1つのAPIで全てのモデルに接続"}}}},zg=je(te)`
20
20
  padding: 8px;
21
21
  background: ${({theme:e})=>e.palette.grey[100]};
22
22
  border-radius: 8px;
@@ -37,7 +37,7 @@ import{iM as pp,iN as hp,j as g,B as te,O as je,r as v,iO as gp,an as Yn,iP as v
37
37
  .MuiGrid-container + .MuiGrid-container {
38
38
  margin-top: 0px;
39
39
  }
40
- `,jg=je(te,{shouldForwardProp:e=>e!=="maxContent"})(({theme:e,maxContent:t})=>({display:"grid",gap:e.spacing(1),gridTemplateColumns:`repeat(1, ${t}px)`,[e.breakpoints.up("md")]:{gridTemplateColumns:`repeat(2, ${t}px)`},[e.breakpoints.up("lg")]:{gridTemplateColumns:`repeat(3, ${t}px)`}}));function Vc({color:e="black",backgroundColor:t="transparent",children:r}){return g.jsx(te,{component:"span",sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",color:e,backgroundColor:t,borderRadius:"4px"},children:r})}function dn({color:e="black",backgroundColor:t="transparent"}){return g.jsx(Vc,{color:e,backgroundColor:t,children:g.jsx(Tg,{style:{width:"100%"}})})}function lt({color:e="black",backgroundColor:t="transparent"}){return g.jsx(Vc,{color:e,backgroundColor:t,children:g.jsx(Og,{style:{width:"100%",height:"100%"}})})}const Fg=(e="")=>e.startsWith("http:")||e.startsWith("https:"),Bg=e=>{try{return new URL(e).origin===window.location.origin}catch{return!1}};function he({to:e,children:t,className:r="",...n}){if(Fg(e)){const i=Bg(e)?"_self":"_blank";return g.jsx("a",{href:Wo(e,"header"),target:i,rel:"noreferrer noopener",className:r,...n,children:t})}return g.jsx(hc,{to:e,className:r,...n,children:t})}function $g({className:e="",type:t,...r}){const{mode:n}=vp(),i=et(),{locale:o="en"}=ke()||{},a=v.useRef(null),{palette:l}=i,s=oe((p,h={})=>Lo(Lg,p,o,"en",h)),[c,u]=v.useState(ol),d=oe(()=>{if(!a.current)return;const p=a.current.querySelectorAll(".navmenu-item__content");let h=ol;p.forEach(m=>{const b=m.getBoundingClientRect().width+64;b>h&&(h=b)}),u(h)});v.useEffect(()=>{d()},[i,o,t,d]),v.useEffect(()=>{if(!a.current)return;const p=a.current.querySelector(".navmenu-item__content");if(!p)return;const h=new ResizeObserver(()=>{d()});return h.observe(p),()=>{h.disconnect()}},[d]);const f=_e(()=>t==="ARCBLOCK"?[{type:"Group",label:s("groups.applications"),children:[{label:g.jsx(he,{to:`https://www.nftstudio.rocks/${o}`,children:"NFT Studio"}),description:s("products.nftStudio.description"),icon:g.jsx(yg,{})},{label:g.jsx(he,{to:`https://www.arcblock.io/content/collections/${o}/creator-studio`,children:"Creator Studio"}),description:s("products.creatorStudio.description"),icon:g.jsx(xg,{})},{label:g.jsx(he,{to:"https://www.aigne.io/",children:"AIGNE"}),description:s("products.aigne.description"),icon:g.jsx(lt,{color:l.mode==="dark"?"white":"black"})},{label:g.jsx(he,{to:`https://www.arcsphere.io/${o}`,children:"ArcSphere"}),description:s("products.arcsphere.description"),icon:g.jsx(il,{})}]},{type:"Group",label:s("groups.components"),children:[{label:g.jsx(he,{to:`https://launcher.arcblock.io/${o}`,children:"Blocklet Launcher"}),description:s("products.blockletLauncher.description"),icon:g.jsx(Sg,{})},{label:g.jsx(he,{to:`https://www.blocklet.io/${o}/payment-kit`,children:"Payment Kit"}),description:s("products.paymentKit.description"),icon:g.jsx("img",{src:Pg,alt:"Payment Kit"})},{label:g.jsx(he,{to:`https://store.blocklet.dev/?locale=${o}`,children:"Blocklet Store"}),description:s("products.blockletStore.description"),icon:g.jsx(wg,{})},{label:g.jsx(he,{to:`https://www.web3kit.rocks/${o}`,children:"Web3 Kit"}),description:s("products.web3Kit.description"),icon:g.jsx(Cg,{})}]},{type:"Group",label:s("groups.computeStorage"),children:[{label:g.jsx(he,{to:`https://www.arcblock.io/content/collections/${o}/blocklet`,children:"Blocklet Framework"}),description:s("products.blockletFramework.description"),icon:g.jsx(Ig,{})},{label:g.jsx(he,{to:`https://www.didspaces.com/${o}`,children:"DID Spaces"}),description:s("products.didSpaces.description"),icon:g.jsx(dn,{color:"#876bf4"})},{label:g.jsx(he,{to:"https://main.abtnetwork.io/",children:"ABT Network"}),description:s("products.abtNetwork.description"),icon:g.jsx(Rg,{})},{label:g.jsx(he,{to:`https://www.blocklet.io/${o}/blocklet-server`,children:"Blocklet Server"}),description:s("products.blockletServer.description"),icon:g.jsx(_g,{})},{label:g.jsx(he,{to:`https://www.arcblock.io/content/collections/${o}/ocap`,children:"ОСАР"}),description:s("products.ocap.description"),icon:g.jsx(Dg,{})}]},{type:"Group",label:s("groups.identity"),children:[{label:g.jsx(he,{to:`https://www.arcblock.io/content/collections/${o}/did`,children:"DID"}),description:s("products.did.description"),icon:g.jsx(dn,{color:"#5b96f3"})},{label:g.jsx(he,{to:`https://www.didwallet.io/${o}`,children:"DID Wallet"}),description:s("products.didWallet.description"),icon:g.jsx(kg,{})},{label:g.jsx(he,{to:`https://www.didnames.io/${o}`,children:"DID Names"}),description:s("products.didNameService.description"),icon:g.jsx(dn,{color:"#678ab0"})},{label:g.jsx(he,{to:`https://www.arcblock.io/content/collections/${o}/verifiable-credential`,children:"VC"}),description:s("products.vc.description"),icon:g.jsx(Eg,{})},{label:g.jsx(he,{to:`https://www.didconnect.io/${o}`,children:"DID Connect"}),description:s("products.didConnect.description"),icon:g.jsx(dn,{color:"#5bbec5"})}]}]:t==="AIGNE"?[{type:"Group",label:s("groups.applications"),children:[{label:g.jsx(he,{to:`https://www.arcsphere.io/${o}`,children:"ArcSphere"}),description:s("products.arcsphere.description"),icon:g.jsx(il,{})},{label:g.jsx(he,{to:`https://www.aistro.io/${o}`,children:"Aistro"}),description:s("products.aistro.description"),icon:g.jsx("img",{src:Ag,alt:"Aistro"})},{label:g.jsx(he,{to:"https://www.aigne.io/code-smith",children:"AIGNE CodeSmith"}),description:s("products.aigneCodeSmith.description"),icon:g.jsx(lt,{color:"#3E5DF7",backgroundColor:"#e9f0ff"})},{label:g.jsx(he,{to:"https://www.aigne.io/doc-smith",children:"AIGNE DocSmith"}),description:s("products.aigneDocSmith.description"),icon:g.jsx(lt,{color:"#02A996",backgroundColor:"#e6f7f5"})},{label:g.jsx(he,{to:"https://www.aigne.io/web-smith",children:"AIGNE WebSmith"}),description:s("products.aigneWebSmith.description"),icon:g.jsx(lt,{color:"#7c45eb",backgroundColor:"#f0e9ff"})},{label:g.jsx(he,{to:"https://imagesmith.aigne.io/",children:"AIGNE ImageSmith"}),description:s("products.aigneImageSmith.description"),icon:g.jsx(Ng,{})}]},{type:"Group",label:s("groups.frameworkTools"),children:[{label:g.jsx(he,{to:"https://www.aigne.io/cli",children:"AIGNE CLI"}),description:s("products.aigneCLI.description"),icon:g.jsx(lt,{color:"#d05d4e",backgroundColor:"#faeaea"})},{label:g.jsx(he,{to:"https://www.aigne.io/observability",children:"AIGNE Observability"}),description:s("products.aigneObservability.description"),icon:g.jsx(lt,{color:"#6ba456",backgroundColor:"#edfae8"})},{label:g.jsx(he,{to:"https://www.aigne.io/studio",children:"AIGNE Studio"}),description:s("products.aigneStudio.description"),icon:g.jsx(lt,{color:"#676cbf",backgroundColor:"#edeeff"})},{label:g.jsx(he,{to:"https://www.aigne.io/framework",children:"AIGNE Framework"}),description:s("products.aigneFramework.description"),icon:g.jsx(lt,{color:"#5086d0",backgroundColor:"#eef4ff"})}]},{type:"Group",label:s("groups.modelsAdapters"),children:[{label:g.jsx(he,{to:"https://www.aigne.io/hub",children:"AIGNE Hub"}),description:s("products.aigneHub.description"),icon:g.jsx(lt,{color:"#e4930b",backgroundColor:"#fbf4d4"})}]}]:[],[s,o,l]);return g.jsx(zg,{ref:a,className:`nav-menu-products is-${n} ${e}`,...r,children:f.map(p=>g.jsx(bg,{label:p.label,children:g.jsx(jg,{maxContent:c,children:p.children.map(h=>g.jsx(mp,{variant:"panel",style:{padding:"8px"},...h}))})},p.label))})}function Gg(e,t){return bp(t,function(r){return e[r]})}function Wg(e){return e==null?[]:Gg(e,yp(e))}var Hg=xp.isFinite;function al(e){return typeof e=="number"&&Hg(e)}function Ug(e){return typeof e=="number"&&e==Sp(e)}var Vg=Hh(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});const qg=Object.freeze(Object.defineProperty({__proto__:null,default:Vg},Symbol.toStringTag,{value:"Module"}));var Kg=gc(function(e){var t=wp(e);return t=typeof t=="function"?t:void 0,Cp(Ip(e,1,vc,!0),void 0,t)});const Yg=Object.freeze(Object.defineProperty({__proto__:null,default:Kg},Symbol.toStringTag,{value:"Module"}));var qc=gc(function(e,t){return vc(e)?og(e,t):[]}),yr={};const Jg=Jn(Yg),Qg=Jn(Rp),Xg=Jn(qg);var ll;function Zg(){return ll||(ll=1,(function(e){var t=yr&&yr.__importDefault||function(B){return B&&B.__esModule?B:{default:B}};Object.defineProperty(e,"__esModule",{value:!0}),e.sortRootNavigation=e.cleanOldNavigationHistory=e.checkLink=void 0,e.parseNavigation=ce,e.deepWalk=D,e.isMatchSection=w,e.nestNavigationList=Y,e.filterNavigation=X,e.cleanOrphanNavigation=U,e.joinLink=N,e.flattenNavigation=G,e.splitNavigationBySection=Z;const r=_p(),n=Dp(),i=t(Jg),o=t(Tp),a=t(kp),l=t(Qg),s=t(Ep),c=t($h),u=t(Gh),d=Mp(),f=t(Wh()),p=t(mc()),h=t(Pp),m=t(Op),b=t(Xg),y=Np(),x=Ap();Object.defineProperty(e,"checkLink",{enumerable:!0,get:function(){return x.checkLink}});const _="header",T="/",k="/",C="/";function D(B,$=()=>{},{key:E="children",order:O="first"}={}){function j(V,{index:ee=0,parent:ae=null,level:de=0}={}){Array.isArray(V)?V.forEach((be,Re)=>{j(be,{index:Re,parent:ae,level:de+1})}):V&&(O==="first"&&$(V,ae,{index:ee,level:de}),j(V[E],{parent:V,level:de}),O==="last"&&$(V,ae,{index:ee,level:de}))}j(B)}function w(B,$){return $===_&&(0,l.default)(B)?!0:Array.isArray(B)?B.includes($):B===$}function R(B){try{return JSON.parse(B)}catch{return B}}function I(B){return B.map($=>{const E={...$};return E.role&&(E.role=R(E.role)),E.section&&(E.section=R(E.section)),E.title&&(E.title=R(E.title)),E.description&&(E.description=R(E.description)),E.link&&(E.link=R(E.link)),E})}function P(B="/",$=""){if((0,p.default)($||""))return $;const E=f.default.join(B,$||k);return E.length>1&&E.endsWith("/")?E.slice(0,E.length-1):E}function L(B,$,{strict:E=!0}={}){let O=B,j=$;return E||(O=O||"/",j=j||"/"),(0,h.default)(O)&&(0,m.default)(j)&&(0,x.checkLink)(j)?Object.keys(O).reduce((V,ee)=>(V[ee]=P(O[ee],j),V),{}):(0,m.default)(O)&&(0,x.checkLink)(O)&&(0,h.default)(j)?Object.keys(j).reduce((V,ee)=>(V[ee]=P(O,j[ee]),V),{}):(0,m.default)(O)&&(0,m.default)(j)?(0,x.checkLink)(O)||(0,x.checkLink)(j)?P(O,j):j:(0,h.default)(O)&&(0,h.default)(j)?[...new Set([...Object.keys(O),...Object.keys(j)])].reduce((ee,ae)=>(ee[ae]=P(O[ae],j[ae]),ee),{}):j}function N(B,$){const E=(0,u.default)(B);return D(E,(O,j)=>{const V=O.component||O.child;if(V){const ee=$.find(ae=>ae.name===V);ee&&(O.link=L(ee.link,O.link,{strict:!1}))}else j&&(O.link=L(j.link,O.link))},{key:"items"}),E}function G(B=[],{depth:$=1,transform:E=O=>O}={}){const O=(0,u.default)(B),j=[];return D(O,(V,ee,{level:ae})=>{if(ae>=$){const{items:de=[]}=V;if(de&&Array.isArray(de)&&de.length>0){delete V.items;const be=de.map(Re=>E(Re,V));if(ee)ee.items.push(...be);else{const Re=E((0,c.default)(V,["items"]),ee);j.push(Re,...be)}}else if(ae===1){const be=E((0,c.default)(V,["items"]),ee);j.push(be)}}else ae===1&&j.push(V)},{key:"items",order:"last"}),j}function z(B){if(B.section!=="bottomNavigation")return B;const $={...B};return r.NAVIGATION_I18N_FIELDS.forEach(E=>{const O=$[E];typeof O=="string"&&($[E]={en:O})}),$}function F(B={}){const $=[];function E(j,V={}){const ee=[],{children:ae=[],meta:de={}}=j,be=(0,u.default)(de?.navigation||[]);(0,y.hasStartEngine)(de)&&j.meta?.capabilities?.navigation!==!1&&ee.push(...be);const Re=V.name||"",Ie=V.mountPoint||T,Ee=j===B?"":de.name||"",We=j===B?"":j.mountPoint||T;for(const Pe of ae){if(!(0,y.hasStartEngine)(Pe.meta))continue;const fe=Pe.meta.name,we=Pe.mountPoint,ft=[Re,Ee,fe].filter(Boolean).join("."),mr=Pe.meta.navigation||[],hi=(0,d.joinURL)(Ie,We,we);Pe.meta?.capabilities?.navigation!==!1&&$.push({did:Pe.meta.did,name:ft,link:hi,title:Pe.meta.title||"",navigation:mr.map(Ye=>({section:_,...Ye}))});const pt=be.find(Ye=>Ye.component?Ye.component===fe:!1);if(pt){if(!pt.link)if(Pe.meta.navigation&&Pe.meta.navigation.length>0){const Ye=E(Pe,{mountPoint:We,name:Ee});Ye.length>0&&(pt.items=pt.items??[],pt.items.push(...Ye))}else pt.link=k}else if(Pe.meta?.capabilities?.navigation!==!1){const Ye=E(Pe,{mountPoint:We,name:Ee}),un={title:Pe.meta.title,component:fe,id:Pe.meta.did};Ye.length>0?(un.items=Ye,un.link=void 0):un.link=k,ee.push(un)}}return ee}return{navigationList:E(B),components:$}}function W(B){const $=(0,u.default)(B).filter(E=>E.id);return D($,(E,O)=>{if(E.items&&E.items.length){for(let j=E.items.length-1;j>=0;j--)E.items[j].id||E.items.splice(j,1);E.items.length===0&&E.component&&(E.link=E.link||k)}O&&(E.parent=O.id,E.id=[O.id,E.id].join(C)),E.from=E.from||"yaml",E.visible=E.visible??!0},{key:"items"}),$}function H(B,$=2){const E=(0,u.default)(B),O=G(E,{depth:$,transform:(j,V)=>(V&&(j._parent||(j._parent=V.id,V.component||(j.link=L(V.link,j.link))),j.section=j.section||V.section||[_],j.visible=j.visible??V.visible,V.role&&(j.role=j.role||V.role)),j.component=[V.component,j.component].filter(Boolean).join("."),j)});return D(O,j=>{j.items&&j.items.length>0&&j.items.reduceRight((V,ee)=>{if(ee._parent){const ae=j.items.findIndex(de=>de.id===ee._parent);ae>=0&&j.items.splice(ae,1),delete ee._parent}return null},null)},{key:"items"}),O}function J(B,$){return $&&Array.isArray(B.items)?B.items.filter(E=>(0,l.default)(E.section)?w(B.section,$):!!w(E.section,$)).map(E=>({...E,section:$})):[]}function Z(B){const $=(0,u.default)(B),E=[];for(const O of $){let ee=function(ae,de){const be=J(ae,de);V.push({...j,section:de,items:be})};const j=(0,u.default)((0,c.default)(O,["items"])),V=[];if(Array.isArray(O.section))for(const ae of O.section)ee(O,ae);else if(O.section){const{section:ae}=O;ee(O,ae)}else if(O.items&&O.items.length>0){const ae=O.items.reduce((be,Re)=>{const{section:Ie=[_]}=Re||{};return be.push(...Ie),be},[]),de=[...new Set(ae)];for(const be of de)ee(O,be)}else V.push({...O,section:_});E.push(...V)}return E}function Y(B=[]){const $=(0,u.default)(B);return $.reduceRight((E,O,j)=>{if(O.parent){const V=$.find(ee=>O.section&&ee.section?ee.section===O.section&&ee.id===O.parent:ee.id===O.parent);V&&(V.items||(V.items=[]),V.items=[O,...V.items]),$.splice(j,1)}return null},null),$}function X(B,$=[]){const E=Y(B);return D(E,j=>{if(j?.component&&($.some(V=>V.name===j.component)||(j.visible=!1)),j.items&&j.items.length)for(let V=j.items.length-1;V>=0;V--)j.items[V].visible===!1&&j.items.splice(V,1)},{key:"items"}),E.filter(j=>!(j.visible===!1||j.items&&Array.isArray(j.items)&&j.items.length>0&&j.items?.every(V=>V.visible===!1)))}function U(B){return B.map($=>$.items&&Array.isArray($.items)&&$.items.length===1&&["header","footer","",void 0,null].includes($.section)?$.items[0]:$)}const re=B=>{const[$,E]=(0,b.default)(B,V=>V.id===n.NAV_GROUP_SYSTEM),[O,j]=(0,b.default)(E,V=>V.id===n.NAV_GROUP_SERVICES);return[...$,...O,...j]};e.sortRootNavigation=re;const ne=B=>{const[,$]=(0,b.default)(B,E=>{const O=typeof E.title=="string"?E.title:E.title?.en;return E.id===n.NAV_GROUP_TEAM||E.id==="/dashboard"&&O==="Blocklet"});return $};e.cleanOldNavigationHistory=ne;function ce(B={},$={}){const{beforeProcess:E=fe=>fe}=$,{navigationList:O,components:j}=F(B),V=new Map;O.forEach(fe=>{fe.items?.forEach(we=>{V.set((0,d.joinURL)(fe.id,we.id),we)})});const ee=(0,s.default)(B,"settings.org.enabled",!1),ae=[n.NAV_GROUP_TEAM,n.NAV_GROUP_SYSTEM,n.NAV_GROUP_SERVICES];B?.settings?.navigations&&(Array.isArray(B.settings.navigations)?B.settings.navigations=[...B.settings.navigations].filter(fe=>!(fe.from==="team-tmpl"&&ae.includes(fe?.parent))).map(fe=>{if(fe.section==="userCenter"&&!Object.prototype.hasOwnProperty.call(fe,"private")){const we=V.get(fe.id);we&&Object.prototype.hasOwnProperty.call(we,"private")&&(fe.private=we.private)}return!ee&&fe.section==="userCenter"&&fe.id==="/userCenter/orgs"?null:fe}).filter(Boolean):B.settings.navigations=[]);const de=I(ne(B?.settings?.navigations||[])).map(z),be=H(E(O)),Re=W(be),Ee=Z(Re).reduce((fe,we)=>["bottom","social","sessionManager","userCenter"].includes(we.section)&&we.items&&we.items.length>0?(fe.push(...we.items.map(mr=>{const{section:hi}=we,pt=L(we.link,mr.link),Ye=[we.component,mr.component].filter(Boolean).join(".");return{...mr,section:hi,link:pt,component:Ye,parent:""}})),fe):(fe.push(we),fe),[]),We=G(Ee,{transform(fe,we){let{component:ft}=fe;return we?.component&&(ft=[we.component,fe.component].filter(Boolean).join(".")),z({...fe,component:ft})}});return{navigationList:(0,i.default)(de,We,(fe,we)=>{const ft=["id","section"];return(0,o.default)((0,a.default)(fe,ft),(0,a.default)(we,ft))}),components:j,builtinList:We}}})(yr)),yr}var Me=Zg();const Kc=v.createContext(null),sl="/",ev="header",cl={userCenter:[{id:"/userCenter/notification",title:{en:"Notifications",zh:"通知"},icon:"ant-design:bell-outlined",link:Oe(dt,"/user/notifications"),from:"team-tmpl",section:["userCenter"]},{id:"/userCenter/orgs",title:{en:"Organizations",zh:"组织"},icon:"ant-design:team-outlined",link:Oe(dt,"/user/orgs"),from:"team-tmpl",section:["userCenter"],shouldDisplay:e=>e.settings?.org?.enabled},{id:"/userCenter/nfts",title:{en:"NFTs",zh:"NFTs"},icon:"ant-design:gold-outlined",link:Oe(dt,"/user/nfts"),from:"team-tmpl",section:["userCenter"]},{id:"/userCenter/settings",title:{en:"Settings",zh:"设置"},icon:"ant-design:setting-outlined",link:Oe(dt,"/user/settings"),from:"team-tmpl",section:["userCenter"]},{id:"/userCenter/did-spaces",title:{en:"DID Spaces",zh:"DID Spaces"},icon:"ant-design:cloud-outlined",link:Oe(dt,"/user/did-spaces"),from:"team-tmpl",section:["userCenter"]},{id:"/userCenter/user-followers",title:{en:"Follow",zh:"关注"},icon:"ant-design:user-outlined",link:Oe(dt,"/user/user-followers"),from:"team-tmpl",section:["userCenter"]}]};function mi(e,t){return e.section&&t.section?e.section===t.section&&e.id===t.id:e.id===t.id}const st=(e,t,r,n,i=!0)=>({id:e,from:"team-tmpl",title:t,icon:r,link:Oe(dt,n),visible:i}),ul=(e,t,r)=>({id:e,from:"team-tmpl",title:t,role:["owner","admin","member"],section:["dashboard"],link:"",items:r}),tv=(e,t)=>{const r=Me.cleanOldNavigationHistory(t),n=r.findIndex(a=>a.id===Ue.NAV_GROUP_TEAM);return n>=0&&r.splice(n,1),r.findIndex(a=>a.id===Ue.NAV_GROUP_SERVICES)===-1&&r.unshift(ul(Ue.NAV_GROUP_SERVICES,e("navigation.services"),[st("did-connect",e("navigation.didConnect"),"tabler:users","/admin/did-connect"),st("website",e("navigation.website"),"icon-park-twotone:upload-web","/admin/website"),st("notification",e("navigation.notification"),"ant-design:bell-outlined","/admin/notification"),st("aigne",e("navigation.aigne"),"hugeicons:artificial-intelligence-04","/admin/aigne"),st("did-spaces",e("navigation.didSpaces"),"icon-park-outline:cloud-storage","/admin/did-spaces"),st("studio",e("navigation.studio"),"eos-icons:subscriptions-created-outlined","/admin/publish/publish")])),r.findIndex(a=>a.id===Ue.NAV_GROUP_SYSTEM)===-1&&r.unshift(ul(Ue.NAV_GROUP_SYSTEM,e("navigation.system"),[st("dashboard",e("navigation.dashboard"),"ant-design:dashboard-outlined","/admin"),st("operation",e("navigation.operations"),"grommet-icons:configure","/admin/operations"),st("integration",e("navigation.integration"),"hugeicons:webhook","/admin/integrations")])),r};function dl({name:e}){return g.jsx(Fp,{label:`Uninstalled: ${e}`,color:"error",size:"small",variant:"outlined",sx:{fontSize:10,height:20}})}function rv({children:e}){const{blocklet:t,actions:r}=Bt(),{t:n}=ke(),{navigationList:i,components:o,builtinList:a}=Me.parseNavigation(t,{beforeProcess(C){const D=nt(C);return["dashboard","userCenter"].forEach(w=>{Object.prototype.hasOwnProperty.call(cl,w)&&cl[w].forEach(R=>{(R.shouldDisplay&&typeof R.shouldDisplay=="function"?R.shouldDisplay:()=>!0)(t)&&!D.some(P=>P.id===R.id)&&D.push(R)})}),tv(n,D)}}),l=ur({rawNavigation:nt(i),activeSection:ev,components:o}),s=v.useMemo(()=>Me.sortRootNavigation(Me.nestNavigationList(nt(l.rawNavigation))),[l.rawNavigation]),c=v.useMemo(()=>{const C=Me.filterNavigation(nt(l.rawNavigation),o);return Me.joinLink(C,o)},[o,l.rawNavigation]),u=v.useCallback(C=>{if(!C.id)return"";const D=Me.flattenNavigation(Me.joinLink(s,o)),w=D.find(R=>R.id===C.id);if(w?.component){if(!o.some(R=>R.name===w.component))return g.jsx(dl,{name:w.component})}else if(w.parent){const R=D.find(I=>I.id===w.parent);if(R?.component&&!o.some(I=>I.name===R.component))return g.jsx(dl,{name:R.component})}return w?.link},[s,o]),d=v.useCallback(C=>{l.activeSection=C},[l]),f=v.useCallback(C=>{const D=[];Me.deepWalk(C,(R,I)=>{const P={...Mt(R,["children","expand"]),parent:I?.id};D.push(P)});const w=nt(l.rawNavigation).filter(R=>{if(!l.activeSection)return!1;const I=D.find(P=>mi(P,R));return I?!Me.isMatchSection(I.section,l.activeSection):!0});l.rawNavigation=[...w,...D]},[l]),p=v.useCallback((C=[])=>{const D=nt(l.rawNavigation).map(w=>{const R=C.find(I=>mi({...I,section:l.activeSection},w));return R?{...w,...R}:w});l.rawNavigation=D},[l]),h=v.useCallback((C,D=sl)=>C.map(R=>{const P=o.find(G=>G.name===R.component)?.link||D,L=R.items||[],{link:N}=R;return{title:R.title,description:R.description,subtitle:u(R),link:N,icon:R.icon,children:h(L,N||sl),section:R.section,visible:R.visible,parent:R.parent,component:R.component,id:R.id,role:R.role,from:R.from,__base:P}}),[o,u]),m=v.useCallback(C=>{p([C])},[p]),b=v.useCallback(C=>{const D=l.rawNavigation.filter(w=>w.id===C||w.parent===C).map(w=>w.id);l.rawNavigation=nt(l.rawNavigation).filter(w=>!D.includes(w.id))},[l]),y=v.useCallback((C={},D=-1)=>{const w={...C,id:Lp.nanoid(),section:l.activeSection,visible:!0},R=[...l.rawNavigation],I=R.filter(P=>P.section===l.activeSection);if(D<0||D>I.length-1)R.push(w);else{const P=I[D],L=R.findIndex(N=>mi(N,P));R.splice(L,0,w)}return l.rawNavigation=R,w},[l]),x=v.useCallback(C=>{const w=nt(s).filter(R=>Me.isMatchSection(R.section,C));return h(w)},[s,h]),_=v.useCallback(async C=>{const w=C.map(R=>zp(R,jp)).map(R=>{const I={...R};return I.role&&Array.isArray(I.role)&&(I.role=JSON.stringify(I.role)),I.section&&Array.isArray(I.section)&&(I.section=JSON.stringify(I.section)),I.title&&I.title instanceof Object&&(I.title=JSON.stringify(I.title)),I.description&&I.description instanceof Object&&(I.description=JSON.stringify(I.description)),I.link&&I.link instanceof Object&&(I.link=JSON.stringify(I.link)),I});await r.configNavigations(w)},[r]),T=v.useCallback(async C=>{if(C){const D=a.filter(R=>Me.isMatchSection(R.section,C)),w=l.rawNavigation.filter(R=>!Me.isMatchSection(R.section,C));await _(w),l.rawNavigation=[...w,...D]}else await _([]),l.rawNavigation=nt(a)},[_,l,a]),k=v.useMemo(()=>({state:l,navigation:c,components:o,getNavigationFullLink:u,updateActiveSection:d,updateNavigationItem:m,delNavigationItem:b,addNavigationItem:y,updateNavigationTree:f,getNavigation:x,saveNavigationList:_,resetNavigation:T}),[l,c,o,u,d,m,b,y,f,x,_,T]);return g.jsx(Kc.Provider,{value:k,children:e})}function Yc(){const e=v.useContext(Kc);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}var Xe={},bi,fl;function nv(){if(fl)return bi;fl=1;var e="Expected a function",t=NaN,r="[object Symbol]",n=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,a=/^0o[0-7]+$/i,l=parseInt,s=typeof Dr=="object"&&Dr&&Dr.Object===Object&&Dr,c=typeof self=="object"&&self&&self.Object===Object&&self,u=s||c||Function("return this")(),d=Object.prototype,f=d.toString,p=Math.max,h=Math.min,m=function(){return u.Date.now()};function b(C,D,w){var R,I,P,L,N,G,z=0,F=!1,W=!1,H=!0;if(typeof C!="function")throw new TypeError(e);D=k(D)||0,x(w)&&(F=!!w.leading,W="maxWait"in w,P=W?p(k(w.maxWait)||0,D):P,H="trailing"in w?!!w.trailing:H);function J($){var E=R,O=I;return R=I=void 0,z=$,L=C.apply(O,E),L}function Z($){return z=$,N=setTimeout(U,D),F?J($):L}function Y($){var E=$-G,O=$-z,j=D-E;return W?h(j,P-O):j}function X($){var E=$-G,O=$-z;return G===void 0||E>=D||E<0||W&&O>=P}function U(){var $=m();if(X($))return re($);N=setTimeout(U,Y($))}function re($){return N=void 0,H&&R?J($):(R=I=void 0,L)}function ne(){N!==void 0&&clearTimeout(N),z=0,R=G=I=N=void 0}function ce(){return N===void 0?L:re(m())}function B(){var $=m(),E=X($);if(R=arguments,I=this,G=$,E){if(N===void 0)return Z(G);if(W)return N=setTimeout(U,D),J(G)}return N===void 0&&(N=setTimeout(U,D)),L}return B.cancel=ne,B.flush=ce,B}function y(C,D,w){var R=!0,I=!0;if(typeof C!="function")throw new TypeError(e);return x(w)&&(R="leading"in w?!!w.leading:R,I="trailing"in w?!!w.trailing:I),b(C,D,{leading:R,maxWait:D,trailing:I})}function x(C){var D=typeof C;return!!C&&(D=="object"||D=="function")}function _(C){return!!C&&typeof C=="object"}function T(C){return typeof C=="symbol"||_(C)&&f.call(C)==r}function k(C){if(typeof C=="number")return C;if(T(C))return t;if(x(C)){var D=typeof C.valueOf=="function"?C.valueOf():C;C=x(D)?D+"":D}if(typeof C!="string")return C===0?C:+C;C=C.replace(n,"");var w=o.test(C);return w||a.test(C)?l(C.slice(2),w?2:8):i.test(C)?t:+C}return bi=y,bi}var xr={exports:{}},Pt={exports:{}},iv=Pt.exports,pl;function ov(){return pl||(pl=1,(function(){var e,t,r,n,i,o;typeof performance<"u"&&performance!==null&&performance.now?Pt.exports=function(){return performance.now()}:typeof br<"u"&&br!==null&&br.hrtime?(Pt.exports=function(){return(e()-i)/1e6},t=br.hrtime,e=function(){var a;return a=t(),a[0]*1e9+a[1]},n=e(),o=br.uptime()*1e9,i=n-o):Date.now?(Pt.exports=function(){return Date.now()-r},r=Date.now()):(Pt.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(iv)),Pt.exports}var hl;function av(){if(hl)return xr.exports;hl=1;for(var e=ov(),t=typeof window>"u"?Dr:window,r=["moz","webkit"],n="AnimationFrame",i=t["request"+n],o=t["cancel"+n]||t["cancelRequest"+n],a=0;!i&&a<r.length;a++)i=t[r[a]+"Request"+n],o=t[r[a]+"Cancel"+n]||t[r[a]+"CancelRequest"+n];if(!i||!o){var l=0,s=0,c=[],u=1e3/60;i=function(d){if(c.length===0){var f=e(),p=Math.max(0,u-(f-l));l=p+f,setTimeout(function(){var h=c.slice(0);c.length=0;for(var m=0;m<h.length;m++)if(!h[m].cancelled)try{h[m].callback(l)}catch(b){setTimeout(function(){throw b},0)}},Math.round(p))}return c.push({handle:++s,callback:d,cancelled:!1}),s},o=function(d){for(var f=0;f<c.length;f++)c[f].handle===d&&(c[f].cancelled=!0)}}return xr.exports=function(d){return i.call(t,d)},xr.exports.cancel=function(){o.apply(t,arguments)},xr.exports.polyfill=function(d){d||(d=t),d.requestAnimationFrame=i,d.cancelAnimationFrame=o},xr.exports}var fn={},gl;function lv(){if(gl)return fn;gl=1,Object.defineProperty(fn,"__esModule",{value:!0}),fn.default=e;function e(t){return t.displayName||t.name||(typeof t=="string"&&t.length>0?t:"Unknown")}return fn}var Wt={},vl;function sv(){if(vl)return Wt;vl=1,Object.defineProperty(Wt,"__esModule",{value:!0}),Wt.noop=e,Wt.intBetween=t,Wt.getCoords=r;function e(){}function t(n,i,o){return Math.floor(Math.min(i,Math.max(n,o)))}function r(n){return n.type==="touchmove"?{x:n.changedTouches[0].clientX,y:n.changedTouches[0].clientY}:{x:n.clientX,y:n.clientY}}return Wt}var ml;function cv(){if(ml)return Xe;ml=1,Object.defineProperty(Xe,"__esModule",{value:!0}),Xe.createHorizontalStrength=R,Xe.createVerticalStrength=I,Xe.createScrollingComponent=N,Xe.default=G,Xe.defaultVerticalStrength=Xe.defaultHorizontalStrength=void 0;var e=u(bc()),t=c(yc()),r=Bp(),n=c(nv()),i=c(av()),o=c(lv()),a=Vh,l=c($p()),s=sv();function c(z){return z&&z.__esModule?z:{default:z}}function u(z){if(z&&z.__esModule)return z;var F={};if(z!=null){for(var W in z)if(Object.prototype.hasOwnProperty.call(z,W)){var H=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(z,W):{};H.get||H.set?Object.defineProperty(F,W,H):F[W]=z[W]}}return F.default=z,F}function d(z){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?d=function(W){return typeof W}:d=function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},d(z)}function f(){return f=Object.assign||function(z){for(var F=1;F<arguments.length;F++){var W=arguments[F];for(var H in W)Object.prototype.hasOwnProperty.call(W,H)&&(z[H]=W[H])}return z},f.apply(this,arguments)}function p(z,F){if(z==null)return{};var W=h(z,F),H,J;if(Object.getOwnPropertySymbols){var Z=Object.getOwnPropertySymbols(z);for(J=0;J<Z.length;J++)H=Z[J],!(F.indexOf(H)>=0)&&Object.prototype.propertyIsEnumerable.call(z,H)&&(W[H]=z[H])}return W}function h(z,F){if(z==null)return{};var W={},H=Object.keys(z),J,Z;for(Z=0;Z<H.length;Z++)J=H[Z],!(F.indexOf(J)>=0)&&(W[J]=z[J]);return W}function m(z,F){if(!(z instanceof F))throw new TypeError("Cannot call a class as a function")}function b(z,F){for(var W=0;W<F.length;W++){var H=F[W];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(z,H.key,H)}}function y(z,F,W){return F&&b(z.prototype,F),z}function x(z,F){return F&&(d(F)==="object"||typeof F=="function")?F:C(z)}function _(z){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(W){return W.__proto__||Object.getPrototypeOf(W)},_(z)}function T(z,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");z.prototype=Object.create(F&&F.prototype,{constructor:{value:z,writable:!0,configurable:!0}}),F&&k(z,F)}function k(z,F){return k=Object.setPrototypeOf||function(H,J){return H.__proto__=J,H},k(z,F)}function C(z){if(z===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z}function D(z,F,W){return F in z?Object.defineProperty(z,F,{value:W,enumerable:!0,configurable:!0,writable:!0}):z[F]=W,z}var w=150;function R(z){return function(W,H){var J=W.x,Z=W.w,Y=W.y,X=W.h,U=Math.min(Z/2,z),re=H.x>=J&&H.x<=J+Z,ne=re&&H.y>=Y&&H.y<=Y+X;if(ne){if(H.x<J+U)return(H.x-J-U)/U;if(H.x>J+Z-U)return-(J+Z-H.x-U)/U}return 0}}function I(z){return function(W,H){var J=W.y,Z=W.h,Y=W.x,X=W.w,U=Math.min(Z/2,z),re=H.y>=J&&H.y<=J+Z,ne=re&&H.x>=Y&&H.x<=Y+X;if(ne){if(H.y<J+U)return(H.y-J-U)/U;if(H.y>J+Z-U)return-(J+Z-H.y-U)/U}return 0}}var P=R(w);Xe.defaultHorizontalStrength=P;var L=I(w);Xe.defaultVerticalStrength=L;function N(z){var F=(function(W){T(H,W);function H(J,Z){var Y;return m(this,H),Y=x(this,_(H).call(this,J,Z)),D(C(C(Y)),"updateScrolling",(0,n.default)(function(X){var U=Y.container.getBoundingClientRect(),re=U.left,ne=U.top,ce=U.width,B=U.height,$={x:re,y:ne,w:ce,h:B},E=(0,s.getCoords)(X),O=Y.props,j=O.horizontalStrength,V=O.verticalStrength;Y.scaleX=j($,E),Y.scaleY=V($,E),!Y.frame&&(Y.scaleX||Y.scaleY)&&Y.startScrolling()},100,{trailing:!1})),D(C(C(Y)),"handleEvent",function(X){Y.dragging&&!Y.attached&&(Y.attach(),Y.updateScrolling(X))}),Y.wrappedInstance=e.default.createRef(),Y.scaleX=0,Y.scaleY=0,Y.frame=null,Y.attached=!1,Y.dragging=!1,Y}return y(H,[{key:"componentDidMount",value:function(){var Z=this;this.container=(0,r.findDOMNode)(this.wrappedInstance.current),this.container&&typeof this.container.addEventListener=="function"&&this.container.addEventListener("dragover",this.handleEvent),window.document.body.addEventListener("touchmove",this.handleEvent);var Y=this.props.dragDropManager;this.clearMonitorSubscription=Y.getMonitor().subscribeToStateChange(function(){return Z.handleMonitorChange()})}},{key:"componentWillUnmount",value:function(){this.container&&typeof this.container.removeEventListener=="function"&&this.container.removeEventListener("dragover",this.handleEvent),window.document.body.removeEventListener("touchmove",this.handleEvent),this.clearMonitorSubscription(),this.stopScrolling()}},{key:"handleMonitorChange",value:function(){var Z=this.props.dragDropManager,Y=Z.getMonitor().isDragging();!this.dragging&&Y?this.dragging=!0:this.dragging&&!Y&&(this.dragging=!1,this.stopScrolling())}},{key:"attach",value:function(){this.attached=!0,window.document.body.addEventListener("dragover",this.updateScrolling),window.document.body.addEventListener("touchmove",this.updateScrolling)}},{key:"detach",value:function(){this.attached=!1,window.document.body.removeEventListener("dragover",this.updateScrolling),window.document.body.removeEventListener("touchmove",this.updateScrolling)}},{key:"startScrolling",value:function(){var Z=this,Y=0,X=function U(){var re=Z.scaleX,ne=Z.scaleY,ce=Z.container,B=Z.props,$=B.strengthMultiplier,E=B.onScrollChange;if($===0||re+ne===0){Z.stopScrolling();return}if(Y+=1,Y%2){var O=ce.scrollLeft,j=ce.scrollTop,V=ce.scrollWidth,ee=ce.scrollHeight,ae=ce.clientWidth,de=ce.clientHeight,be=re?ce.scrollLeft=(0,s.intBetween)(0,V-ae,O+re*$):O,Re=ne?ce.scrollTop=(0,s.intBetween)(0,ee-de,j+ne*$):j;E(be,Re)}Z.frame=(0,i.default)(U)};X()}},{key:"stopScrolling",value:function(){this.detach(),this.scaleX=0,this.scaleY=0,this.frame&&(i.default.cancel(this.frame),this.frame=null)}},{key:"render",value:function(){var Z=this.props;Z.strengthMultiplier,Z.verticalStrength,Z.horizontalStrength,Z.onScrollChange;var Y=p(Z,["strengthMultiplier","verticalStrength","horizontalStrength","onScrollChange"]);return e.default.createElement(z,f({ref:this.wrappedInstance},Y))}}]),H})(e.Component);return D(F,"displayName","Scrolling(".concat((0,o.default)(z),")")),D(F,"propTypes",{dragDropManager:t.default.object.isRequired,onScrollChange:t.default.func,verticalStrength:t.default.func,horizontalStrength:t.default.func,strengthMultiplier:t.default.number}),D(F,"defaultProps",{onScrollChange:s.noop,verticalStrength:L,horizontalStrength:P,strengthMultiplier:30}),(0,l.default)(F,z)}function G(z){var F=N(z);return function(W){return e.default.createElement(a.DragDropContextConsumer,null,function(H){var J=H.dragDropManager;return J===void 0?null:e.default.createElement(F,f({},W,{dragDropManager:J}))})}}return Xe}var Rn=cv();const uv=Qn(Rn);var dv=qh();const bl=Qn(dv);function Jc(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function Qc(e){function t(r){var n=this.constructor.getDerivedStateFromProps(e,r);return n??null}this.setState(t.bind(this))}function Xc(e,t){try{var r=this.props,n=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,n)}finally{this.props=r,this.state=n}}Jc.__suppressDeprecationWarning=!0;Qc.__suppressDeprecationWarning=!0;Xc.__suppressDeprecationWarning=!0;function Zr(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if(typeof e.getDerivedStateFromProps!="function"&&typeof t.getSnapshotBeforeUpdate!="function")return e;var r=null,n=null,i=null;if(typeof t.componentWillMount=="function"?r="componentWillMount":typeof t.UNSAFE_componentWillMount=="function"&&(r="UNSAFE_componentWillMount"),typeof t.componentWillReceiveProps=="function"?n="componentWillReceiveProps":typeof t.UNSAFE_componentWillReceiveProps=="function"&&(n="UNSAFE_componentWillReceiveProps"),typeof t.componentWillUpdate=="function"?i="componentWillUpdate":typeof t.UNSAFE_componentWillUpdate=="function"&&(i="UNSAFE_componentWillUpdate"),r!==null||n!==null||i!==null){var o=e.displayName||e.name,a=typeof e.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
40
+ `,jg=je(te,{shouldForwardProp:e=>e!=="maxContent"})(({theme:e,maxContent:t})=>({display:"grid",gap:e.spacing(1),gridTemplateColumns:`repeat(1, ${t}px)`,[e.breakpoints.up("md")]:{gridTemplateColumns:`repeat(2, ${t}px)`},[e.breakpoints.up("lg")]:{gridTemplateColumns:`repeat(3, ${t}px)`}}));function Vc({color:e="black",backgroundColor:t="transparent",children:r}){return g.jsx(te,{component:"span",sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",color:e,backgroundColor:t,borderRadius:"4px"},children:r})}function dn({color:e="black",backgroundColor:t="transparent"}){return g.jsx(Vc,{color:e,backgroundColor:t,children:g.jsx(Tg,{style:{width:"100%"}})})}function lt({color:e="black",backgroundColor:t="transparent"}){return g.jsx(Vc,{color:e,backgroundColor:t,children:g.jsx(Og,{style:{width:"100%",height:"100%"}})})}const Fg=(e="")=>e.startsWith("http:")||e.startsWith("https:"),Bg=e=>{try{return new URL(e).origin===window.location.origin}catch{return!1}};function he({to:e,children:t,className:r="",...n}){if(Fg(e)){const i=Bg(e)?"_self":"_blank";return g.jsx("a",{href:Wo(e,"header"),target:i,rel:"noreferrer noopener",className:r,...n,children:t})}return g.jsx(hc,{to:e,className:r,...n,children:t})}function $g({className:e="",type:t,...r}){const{mode:n}=vp(),i=et(),{locale:o="en"}=ke()||{},a=v.useRef(null),{palette:l}=i,s=oe((p,h={})=>Lo(Lg,p,o,"en",h)),[c,u]=v.useState(ol),d=oe(()=>{if(!a.current)return;const p=a.current.querySelectorAll(".navmenu-item__content");let h=ol;p.forEach(m=>{const b=m.getBoundingClientRect().width+64;b>h&&(h=b)}),u(h)});v.useEffect(()=>{d()},[i,o,t,d]),v.useEffect(()=>{if(!a.current)return;const p=a.current.querySelector(".navmenu-item__content");if(!p)return;const h=new ResizeObserver(()=>{d()});return h.observe(p),()=>{h.disconnect()}},[d]);const f=_e(()=>t==="ARCBLOCK"?[{type:"Group",label:s("groups.applications"),children:[{label:g.jsx(he,{to:`https://www.nftstudio.rocks/${o}`,children:"NFT Studio"}),description:s("products.nftStudio.description"),icon:g.jsx(yg,{})},{label:g.jsx(he,{to:`https://www.arcblock.io/content/collections/${o}/creator-studio`,children:"Creator Studio"}),description:s("products.creatorStudio.description"),icon:g.jsx(xg,{})},{label:g.jsx(he,{to:"https://www.aigne.io/",children:"AIGNE"}),description:s("products.aigne.description"),icon:g.jsx(lt,{color:l.mode==="dark"?"white":"black"})},{label:g.jsx(he,{to:`https://www.arcsphere.io/${o}`,children:"ArcSphere"}),description:s("products.arcsphere.description"),icon:g.jsx(il,{})}]},{type:"Group",label:s("groups.components"),children:[{label:g.jsx(he,{to:`https://launcher.arcblock.io/${o}`,children:"Blocklet Launcher"}),description:s("products.blockletLauncher.description"),icon:g.jsx(Sg,{})},{label:g.jsx(he,{to:`https://www.blocklet.io/${o}/payment-kit`,children:"Payment Kit"}),description:s("products.paymentKit.description"),icon:g.jsx("img",{src:Pg,alt:"Payment Kit"})},{label:g.jsx(he,{to:`https://store.blocklet.dev/?locale=${o}`,children:"Blocklet Store"}),description:s("products.blockletStore.description"),icon:g.jsx(wg,{})},{label:g.jsx(he,{to:`https://www.web3kit.rocks/${o}`,children:"Web3 Kit"}),description:s("products.web3Kit.description"),icon:g.jsx(Cg,{})}]},{type:"Group",label:s("groups.computeStorage"),children:[{label:g.jsx(he,{to:`https://www.arcblock.io/content/collections/${o}/blocklet`,children:"Blocklet Framework"}),description:s("products.blockletFramework.description"),icon:g.jsx(Ig,{})},{label:g.jsx(he,{to:`https://www.didspaces.com/${o}`,children:"DID Spaces"}),description:s("products.didSpaces.description"),icon:g.jsx(dn,{color:"#876bf4"})},{label:g.jsx(he,{to:"https://main.abtnetwork.io/",children:"ABT Network"}),description:s("products.abtNetwork.description"),icon:g.jsx(Rg,{})},{label:g.jsx(he,{to:`https://www.blocklet.io/${o}/blocklet-server`,children:"Blocklet Server"}),description:s("products.blockletServer.description"),icon:g.jsx(_g,{})},{label:g.jsx(he,{to:`https://www.arcblock.io/content/collections/${o}/ocap`,children:"ОСАР"}),description:s("products.ocap.description"),icon:g.jsx(Dg,{})}]},{type:"Group",label:s("groups.identity"),children:[{label:g.jsx(he,{to:`https://www.arcblock.io/content/collections/${o}/did`,children:"DID"}),description:s("products.did.description"),icon:g.jsx(dn,{color:"#5b96f3"})},{label:g.jsx(he,{to:`https://www.didwallet.io/${o}`,children:"DID Wallet"}),description:s("products.didWallet.description"),icon:g.jsx(kg,{})},{label:g.jsx(he,{to:`https://www.didnames.io/${o}`,children:"DID Names"}),description:s("products.didNameService.description"),icon:g.jsx(dn,{color:"#678ab0"})},{label:g.jsx(he,{to:`https://www.arcblock.io/content/collections/${o}/verifiable-credential`,children:"VC"}),description:s("products.vc.description"),icon:g.jsx(Eg,{})},{label:g.jsx(he,{to:`https://www.didconnect.io/${o}`,children:"DID Connect"}),description:s("products.didConnect.description"),icon:g.jsx(dn,{color:"#5bbec5"})}]}]:t==="AIGNE"?[{type:"Group",label:s("groups.applications"),children:[{label:g.jsx(he,{to:`https://www.arcsphere.io/${o}`,children:"ArcSphere"}),description:s("products.arcsphere.description"),icon:g.jsx(il,{})},{label:g.jsx(he,{to:`https://www.aistro.io/${o}`,children:"Aistro"}),description:s("products.aistro.description"),icon:g.jsx("img",{src:Mg,alt:"Aistro"})},{label:g.jsx(he,{to:"https://www.aigne.io/code-smith",children:"AIGNE CodeSmith"}),description:s("products.aigneCodeSmith.description"),icon:g.jsx(lt,{color:"#3E5DF7",backgroundColor:"#e9f0ff"})},{label:g.jsx(he,{to:"https://www.aigne.io/doc-smith",children:"AIGNE DocSmith"}),description:s("products.aigneDocSmith.description"),icon:g.jsx(lt,{color:"#02A996",backgroundColor:"#e6f7f5"})},{label:g.jsx(he,{to:"https://www.aigne.io/web-smith",children:"AIGNE WebSmith"}),description:s("products.aigneWebSmith.description"),icon:g.jsx(lt,{color:"#7c45eb",backgroundColor:"#f0e9ff"})},{label:g.jsx(he,{to:"https://imagesmith.aigne.io/",children:"AIGNE ImageSmith"}),description:s("products.aigneImageSmith.description"),icon:g.jsx(Ng,{})}]},{type:"Group",label:s("groups.frameworkTools"),children:[{label:g.jsx(he,{to:"https://www.aigne.io/cli",children:"AIGNE CLI"}),description:s("products.aigneCLI.description"),icon:g.jsx(lt,{color:"#d05d4e",backgroundColor:"#faeaea"})},{label:g.jsx(he,{to:"https://www.aigne.io/observability",children:"AIGNE Observability"}),description:s("products.aigneObservability.description"),icon:g.jsx(lt,{color:"#6ba456",backgroundColor:"#edfae8"})},{label:g.jsx(he,{to:"https://www.aigne.io/studio",children:"AIGNE Studio"}),description:s("products.aigneStudio.description"),icon:g.jsx(lt,{color:"#676cbf",backgroundColor:"#edeeff"})},{label:g.jsx(he,{to:"https://www.aigne.io/framework",children:"AIGNE Framework"}),description:s("products.aigneFramework.description"),icon:g.jsx(lt,{color:"#5086d0",backgroundColor:"#eef4ff"})}]},{type:"Group",label:s("groups.modelsAdapters"),children:[{label:g.jsx(he,{to:"https://www.aigne.io/hub",children:"AIGNE Hub"}),description:s("products.aigneHub.description"),icon:g.jsx(lt,{color:"#e4930b",backgroundColor:"#fbf4d4"})}]}]:[],[s,o,l]);return g.jsx(zg,{ref:a,className:`nav-menu-products is-${n} ${e}`,...r,children:f.map(p=>g.jsx(bg,{label:p.label,children:g.jsx(jg,{maxContent:c,children:p.children.map(h=>g.jsx(mp,{variant:"panel",style:{padding:"8px"},...h}))})},p.label))})}function Gg(e,t){return bp(t,function(r){return e[r]})}function Wg(e){return e==null?[]:Gg(e,yp(e))}var Hg=xp.isFinite;function al(e){return typeof e=="number"&&Hg(e)}function Ug(e){return typeof e=="number"&&e==Sp(e)}var Vg=Hh(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});const qg=Object.freeze(Object.defineProperty({__proto__:null,default:Vg},Symbol.toStringTag,{value:"Module"}));var Kg=gc(function(e){var t=wp(e);return t=typeof t=="function"?t:void 0,Cp(Ip(e,1,vc,!0),void 0,t)});const Yg=Object.freeze(Object.defineProperty({__proto__:null,default:Kg},Symbol.toStringTag,{value:"Module"}));var qc=gc(function(e,t){return vc(e)?og(e,t):[]}),yr={};const Jg=Jn(Yg),Qg=Jn(Rp),Xg=Jn(qg);var ll;function Zg(){return ll||(ll=1,(function(e){var t=yr&&yr.__importDefault||function(B){return B&&B.__esModule?B:{default:B}};Object.defineProperty(e,"__esModule",{value:!0}),e.sortRootNavigation=e.cleanOldNavigationHistory=e.checkLink=void 0,e.parseNavigation=ce,e.deepWalk=D,e.isMatchSection=w,e.nestNavigationList=Y,e.filterNavigation=X,e.cleanOrphanNavigation=U,e.joinLink=N,e.flattenNavigation=G,e.splitNavigationBySection=Z;const r=_p(),n=Dp(),i=t(Jg),o=t(Tp),a=t(kp),l=t(Qg),s=t(Ep),c=t($h),u=t(Gh),d=Ap(),f=t(Wh()),p=t(mc()),h=t(Pp),m=t(Op),b=t(Xg),y=Np(),x=Mp();Object.defineProperty(e,"checkLink",{enumerable:!0,get:function(){return x.checkLink}});const _="header",T="/",k="/",C="/";function D(B,$=()=>{},{key:E="children",order:O="first"}={}){function j(V,{index:ee=0,parent:ae=null,level:de=0}={}){Array.isArray(V)?V.forEach((be,Re)=>{j(be,{index:Re,parent:ae,level:de+1})}):V&&(O==="first"&&$(V,ae,{index:ee,level:de}),j(V[E],{parent:V,level:de}),O==="last"&&$(V,ae,{index:ee,level:de}))}j(B)}function w(B,$){return $===_&&(0,l.default)(B)?!0:Array.isArray(B)?B.includes($):B===$}function R(B){try{return JSON.parse(B)}catch{return B}}function I(B){return B.map($=>{const E={...$};return E.role&&(E.role=R(E.role)),E.section&&(E.section=R(E.section)),E.title&&(E.title=R(E.title)),E.description&&(E.description=R(E.description)),E.link&&(E.link=R(E.link)),E})}function P(B="/",$=""){if((0,p.default)($||""))return $;const E=f.default.join(B,$||k);return E.length>1&&E.endsWith("/")?E.slice(0,E.length-1):E}function L(B,$,{strict:E=!0}={}){let O=B,j=$;return E||(O=O||"/",j=j||"/"),(0,h.default)(O)&&(0,m.default)(j)&&(0,x.checkLink)(j)?Object.keys(O).reduce((V,ee)=>(V[ee]=P(O[ee],j),V),{}):(0,m.default)(O)&&(0,x.checkLink)(O)&&(0,h.default)(j)?Object.keys(j).reduce((V,ee)=>(V[ee]=P(O,j[ee]),V),{}):(0,m.default)(O)&&(0,m.default)(j)?(0,x.checkLink)(O)||(0,x.checkLink)(j)?P(O,j):j:(0,h.default)(O)&&(0,h.default)(j)?[...new Set([...Object.keys(O),...Object.keys(j)])].reduce((ee,ae)=>(ee[ae]=P(O[ae],j[ae]),ee),{}):j}function N(B,$){const E=(0,u.default)(B);return D(E,(O,j)=>{const V=O.component||O.child;if(V){const ee=$.find(ae=>ae.name===V);ee&&(O.link=L(ee.link,O.link,{strict:!1}))}else j&&(O.link=L(j.link,O.link))},{key:"items"}),E}function G(B=[],{depth:$=1,transform:E=O=>O}={}){const O=(0,u.default)(B),j=[];return D(O,(V,ee,{level:ae})=>{if(ae>=$){const{items:de=[]}=V;if(de&&Array.isArray(de)&&de.length>0){delete V.items;const be=de.map(Re=>E(Re,V));if(ee)ee.items.push(...be);else{const Re=E((0,c.default)(V,["items"]),ee);j.push(Re,...be)}}else if(ae===1){const be=E((0,c.default)(V,["items"]),ee);j.push(be)}}else ae===1&&j.push(V)},{key:"items",order:"last"}),j}function z(B){if(B.section!=="bottomNavigation")return B;const $={...B};return r.NAVIGATION_I18N_FIELDS.forEach(E=>{const O=$[E];typeof O=="string"&&($[E]={en:O})}),$}function F(B={}){const $=[];function E(j,V={}){const ee=[],{children:ae=[],meta:de={}}=j,be=(0,u.default)(de?.navigation||[]);(0,y.hasStartEngine)(de)&&j.meta?.capabilities?.navigation!==!1&&ee.push(...be);const Re=V.name||"",Ie=V.mountPoint||T,Ee=j===B?"":de.name||"",We=j===B?"":j.mountPoint||T;for(const Pe of ae){if(!(0,y.hasStartEngine)(Pe.meta))continue;const fe=Pe.meta.name,we=Pe.mountPoint,ft=[Re,Ee,fe].filter(Boolean).join("."),mr=Pe.meta.navigation||[],hi=(0,d.joinURL)(Ie,We,we);Pe.meta?.capabilities?.navigation!==!1&&$.push({did:Pe.meta.did,name:ft,link:hi,title:Pe.meta.title||"",navigation:mr.map(Ye=>({section:_,...Ye}))});const pt=be.find(Ye=>Ye.component?Ye.component===fe:!1);if(pt){if(!pt.link)if(Pe.meta.navigation&&Pe.meta.navigation.length>0){const Ye=E(Pe,{mountPoint:We,name:Ee});Ye.length>0&&(pt.items=pt.items??[],pt.items.push(...Ye))}else pt.link=k}else if(Pe.meta?.capabilities?.navigation!==!1){const Ye=E(Pe,{mountPoint:We,name:Ee}),un={title:Pe.meta.title,component:fe,id:Pe.meta.did};Ye.length>0?(un.items=Ye,un.link=void 0):un.link=k,ee.push(un)}}return ee}return{navigationList:E(B),components:$}}function W(B){const $=(0,u.default)(B).filter(E=>E.id);return D($,(E,O)=>{if(E.items&&E.items.length){for(let j=E.items.length-1;j>=0;j--)E.items[j].id||E.items.splice(j,1);E.items.length===0&&E.component&&(E.link=E.link||k)}O&&(E.parent=O.id,E.id=[O.id,E.id].join(C)),E.from=E.from||"yaml",E.visible=E.visible??!0},{key:"items"}),$}function H(B,$=2){const E=(0,u.default)(B),O=G(E,{depth:$,transform:(j,V)=>(V&&(j._parent||(j._parent=V.id,V.component||(j.link=L(V.link,j.link))),j.section=j.section||V.section||[_],j.visible=j.visible??V.visible,V.role&&(j.role=j.role||V.role)),j.component=[V.component,j.component].filter(Boolean).join("."),j)});return D(O,j=>{j.items&&j.items.length>0&&j.items.reduceRight((V,ee)=>{if(ee._parent){const ae=j.items.findIndex(de=>de.id===ee._parent);ae>=0&&j.items.splice(ae,1),delete ee._parent}return null},null)},{key:"items"}),O}function J(B,$){return $&&Array.isArray(B.items)?B.items.filter(E=>(0,l.default)(E.section)?w(B.section,$):!!w(E.section,$)).map(E=>({...E,section:$})):[]}function Z(B){const $=(0,u.default)(B),E=[];for(const O of $){let ee=function(ae,de){const be=J(ae,de);V.push({...j,section:de,items:be})};const j=(0,u.default)((0,c.default)(O,["items"])),V=[];if(Array.isArray(O.section))for(const ae of O.section)ee(O,ae);else if(O.section){const{section:ae}=O;ee(O,ae)}else if(O.items&&O.items.length>0){const ae=O.items.reduce((be,Re)=>{const{section:Ie=[_]}=Re||{};return be.push(...Ie),be},[]),de=[...new Set(ae)];for(const be of de)ee(O,be)}else V.push({...O,section:_});E.push(...V)}return E}function Y(B=[]){const $=(0,u.default)(B);return $.reduceRight((E,O,j)=>{if(O.parent){const V=$.find(ee=>O.section&&ee.section?ee.section===O.section&&ee.id===O.parent:ee.id===O.parent);V&&(V.items||(V.items=[]),V.items=[O,...V.items]),$.splice(j,1)}return null},null),$}function X(B,$=[]){const E=Y(B);return D(E,j=>{if(j?.component&&($.some(V=>V.name===j.component)||(j.visible=!1)),j.items&&j.items.length)for(let V=j.items.length-1;V>=0;V--)j.items[V].visible===!1&&j.items.splice(V,1)},{key:"items"}),E.filter(j=>!(j.visible===!1||j.items&&Array.isArray(j.items)&&j.items.length>0&&j.items?.every(V=>V.visible===!1)))}function U(B){return B.map($=>$.items&&Array.isArray($.items)&&$.items.length===1&&["header","footer","",void 0,null].includes($.section)?$.items[0]:$)}const re=B=>{const[$,E]=(0,b.default)(B,V=>V.id===n.NAV_GROUP_SYSTEM),[O,j]=(0,b.default)(E,V=>V.id===n.NAV_GROUP_SERVICES);return[...$,...O,...j]};e.sortRootNavigation=re;const ne=B=>{const[,$]=(0,b.default)(B,E=>{const O=typeof E.title=="string"?E.title:E.title?.en;return E.id===n.NAV_GROUP_TEAM||E.id==="/dashboard"&&O==="Blocklet"});return $};e.cleanOldNavigationHistory=ne;function ce(B={},$={}){const{beforeProcess:E=fe=>fe}=$,{navigationList:O,components:j}=F(B),V=new Map;O.forEach(fe=>{fe.items?.forEach(we=>{V.set((0,d.joinURL)(fe.id,we.id),we)})});const ee=(0,s.default)(B,"settings.org.enabled",!1),ae=[n.NAV_GROUP_TEAM,n.NAV_GROUP_SYSTEM,n.NAV_GROUP_SERVICES];B?.settings?.navigations&&(Array.isArray(B.settings.navigations)?B.settings.navigations=[...B.settings.navigations].filter(fe=>!(fe.from==="team-tmpl"&&ae.includes(fe?.parent))).map(fe=>{if(fe.section==="userCenter"&&!Object.prototype.hasOwnProperty.call(fe,"private")){const we=V.get(fe.id);we&&Object.prototype.hasOwnProperty.call(we,"private")&&(fe.private=we.private)}return!ee&&fe.section==="userCenter"&&fe.id==="/userCenter/orgs"?null:fe}).filter(Boolean):B.settings.navigations=[]);const de=I(ne(B?.settings?.navigations||[])).map(z),be=H(E(O)),Re=W(be),Ee=Z(Re).reduce((fe,we)=>["bottom","social","sessionManager","userCenter"].includes(we.section)&&we.items&&we.items.length>0?(fe.push(...we.items.map(mr=>{const{section:hi}=we,pt=L(we.link,mr.link),Ye=[we.component,mr.component].filter(Boolean).join(".");return{...mr,section:hi,link:pt,component:Ye,parent:""}})),fe):(fe.push(we),fe),[]),We=G(Ee,{transform(fe,we){let{component:ft}=fe;return we?.component&&(ft=[we.component,fe.component].filter(Boolean).join(".")),z({...fe,component:ft})}});return{navigationList:(0,i.default)(de,We,(fe,we)=>{const ft=["id","section"];return(0,o.default)((0,a.default)(fe,ft),(0,a.default)(we,ft))}),components:j,builtinList:We}}})(yr)),yr}var Ae=Zg();const Kc=v.createContext(null),sl="/",ev="header",cl={userCenter:[{id:"/userCenter/notification",title:{en:"Notifications",zh:"通知"},icon:"ant-design:bell-outlined",link:Oe(dt,"/user/notifications"),from:"team-tmpl",section:["userCenter"]},{id:"/userCenter/orgs",title:{en:"Organizations",zh:"组织"},icon:"ant-design:team-outlined",link:Oe(dt,"/user/orgs"),from:"team-tmpl",section:["userCenter"],shouldDisplay:e=>e.settings?.org?.enabled},{id:"/userCenter/nfts",title:{en:"NFTs",zh:"NFTs"},icon:"ant-design:gold-outlined",link:Oe(dt,"/user/nfts"),from:"team-tmpl",section:["userCenter"]},{id:"/userCenter/settings",title:{en:"Settings",zh:"设置"},icon:"ant-design:setting-outlined",link:Oe(dt,"/user/settings"),from:"team-tmpl",section:["userCenter"]},{id:"/userCenter/did-spaces",title:{en:"DID Spaces",zh:"DID Spaces"},icon:"ant-design:cloud-outlined",link:Oe(dt,"/user/did-spaces"),from:"team-tmpl",section:["userCenter"]},{id:"/userCenter/user-followers",title:{en:"Follow",zh:"关注"},icon:"ant-design:user-outlined",link:Oe(dt,"/user/user-followers"),from:"team-tmpl",section:["userCenter"]}]};function mi(e,t){return e.section&&t.section?e.section===t.section&&e.id===t.id:e.id===t.id}const st=(e,t,r,n,i=!0)=>({id:e,from:"team-tmpl",title:t,icon:r,link:Oe(dt,n),visible:i}),ul=(e,t,r)=>({id:e,from:"team-tmpl",title:t,role:["owner","admin","member"],section:["dashboard"],link:"",items:r}),tv=(e,t)=>{const r=Ae.cleanOldNavigationHistory(t),n=r.findIndex(a=>a.id===Ue.NAV_GROUP_TEAM);return n>=0&&r.splice(n,1),r.findIndex(a=>a.id===Ue.NAV_GROUP_SERVICES)===-1&&r.unshift(ul(Ue.NAV_GROUP_SERVICES,e("navigation.services"),[st("did-connect",e("navigation.didConnect"),"tabler:users","/admin/did-connect"),st("website",e("navigation.website"),"icon-park-twotone:upload-web","/admin/website"),st("notification",e("navigation.notification"),"ant-design:bell-outlined","/admin/notification"),st("aigne",e("navigation.aigne"),"hugeicons:artificial-intelligence-04","/admin/aigne"),st("did-spaces",e("navigation.didSpaces"),"icon-park-outline:cloud-storage","/admin/did-spaces"),st("studio",e("navigation.studio"),"eos-icons:subscriptions-created-outlined","/admin/publish/publish")])),r.findIndex(a=>a.id===Ue.NAV_GROUP_SYSTEM)===-1&&r.unshift(ul(Ue.NAV_GROUP_SYSTEM,e("navigation.system"),[st("dashboard",e("navigation.dashboard"),"ant-design:dashboard-outlined","/admin"),st("operation",e("navigation.operations"),"grommet-icons:configure","/admin/operations"),st("integration",e("navigation.integration"),"hugeicons:webhook","/admin/integrations")])),r};function dl({name:e}){return g.jsx(Fp,{label:`Uninstalled: ${e}`,color:"error",size:"small",variant:"outlined",sx:{fontSize:10,height:20}})}function rv({children:e}){const{blocklet:t,actions:r}=Bt(),{t:n}=ke(),{navigationList:i,components:o,builtinList:a}=Ae.parseNavigation(t,{beforeProcess(C){const D=nt(C);return["dashboard","userCenter"].forEach(w=>{Object.prototype.hasOwnProperty.call(cl,w)&&cl[w].forEach(R=>{(R.shouldDisplay&&typeof R.shouldDisplay=="function"?R.shouldDisplay:()=>!0)(t)&&!D.some(P=>P.id===R.id)&&D.push(R)})}),tv(n,D)}}),l=ur({rawNavigation:nt(i),activeSection:ev,components:o}),s=v.useMemo(()=>Ae.sortRootNavigation(Ae.nestNavigationList(nt(l.rawNavigation))),[l.rawNavigation]),c=v.useMemo(()=>{const C=Ae.filterNavigation(nt(l.rawNavigation),o);return Ae.joinLink(C,o)},[o,l.rawNavigation]),u=v.useCallback(C=>{if(!C.id)return"";const D=Ae.flattenNavigation(Ae.joinLink(s,o)),w=D.find(R=>R.id===C.id);if(w?.component){if(!o.some(R=>R.name===w.component))return g.jsx(dl,{name:w.component})}else if(w.parent){const R=D.find(I=>I.id===w.parent);if(R?.component&&!o.some(I=>I.name===R.component))return g.jsx(dl,{name:R.component})}return w?.link},[s,o]),d=v.useCallback(C=>{l.activeSection=C},[l]),f=v.useCallback(C=>{const D=[];Ae.deepWalk(C,(R,I)=>{const P={...At(R,["children","expand"]),parent:I?.id};D.push(P)});const w=nt(l.rawNavigation).filter(R=>{if(!l.activeSection)return!1;const I=D.find(P=>mi(P,R));return I?!Ae.isMatchSection(I.section,l.activeSection):!0});l.rawNavigation=[...w,...D]},[l]),p=v.useCallback((C=[])=>{const D=nt(l.rawNavigation).map(w=>{const R=C.find(I=>mi({...I,section:l.activeSection},w));return R?{...w,...R}:w});l.rawNavigation=D},[l]),h=v.useCallback((C,D=sl)=>C.map(R=>{const P=o.find(G=>G.name===R.component)?.link||D,L=R.items||[],{link:N}=R;return{title:R.title,description:R.description,subtitle:u(R),link:N,icon:R.icon,children:h(L,N||sl),section:R.section,visible:R.visible,parent:R.parent,component:R.component,id:R.id,role:R.role,from:R.from,__base:P}}),[o,u]),m=v.useCallback(C=>{p([C])},[p]),b=v.useCallback(C=>{const D=l.rawNavigation.filter(w=>w.id===C||w.parent===C).map(w=>w.id);l.rawNavigation=nt(l.rawNavigation).filter(w=>!D.includes(w.id))},[l]),y=v.useCallback((C={},D=-1)=>{const w={...C,id:Lp.nanoid(),section:l.activeSection,visible:!0},R=[...l.rawNavigation],I=R.filter(P=>P.section===l.activeSection);if(D<0||D>I.length-1)R.push(w);else{const P=I[D],L=R.findIndex(N=>mi(N,P));R.splice(L,0,w)}return l.rawNavigation=R,w},[l]),x=v.useCallback(C=>{const w=nt(s).filter(R=>Ae.isMatchSection(R.section,C));return h(w)},[s,h]),_=v.useCallback(async C=>{const w=C.map(R=>zp(R,jp)).map(R=>{const I={...R};return I.role&&Array.isArray(I.role)&&(I.role=JSON.stringify(I.role)),I.section&&Array.isArray(I.section)&&(I.section=JSON.stringify(I.section)),I.title&&I.title instanceof Object&&(I.title=JSON.stringify(I.title)),I.description&&I.description instanceof Object&&(I.description=JSON.stringify(I.description)),I.link&&I.link instanceof Object&&(I.link=JSON.stringify(I.link)),I});await r.configNavigations(w)},[r]),T=v.useCallback(async C=>{if(C){const D=a.filter(R=>Ae.isMatchSection(R.section,C)),w=l.rawNavigation.filter(R=>!Ae.isMatchSection(R.section,C));await _(w),l.rawNavigation=[...w,...D]}else await _([]),l.rawNavigation=nt(a)},[_,l,a]),k=v.useMemo(()=>({state:l,navigation:c,components:o,getNavigationFullLink:u,updateActiveSection:d,updateNavigationItem:m,delNavigationItem:b,addNavigationItem:y,updateNavigationTree:f,getNavigation:x,saveNavigationList:_,resetNavigation:T}),[l,c,o,u,d,m,b,y,f,x,_,T]);return g.jsx(Kc.Provider,{value:k,children:e})}function Yc(){const e=v.useContext(Kc);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}var Xe={},bi,fl;function nv(){if(fl)return bi;fl=1;var e="Expected a function",t=NaN,r="[object Symbol]",n=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,a=/^0o[0-7]+$/i,l=parseInt,s=typeof Dr=="object"&&Dr&&Dr.Object===Object&&Dr,c=typeof self=="object"&&self&&self.Object===Object&&self,u=s||c||Function("return this")(),d=Object.prototype,f=d.toString,p=Math.max,h=Math.min,m=function(){return u.Date.now()};function b(C,D,w){var R,I,P,L,N,G,z=0,F=!1,W=!1,H=!0;if(typeof C!="function")throw new TypeError(e);D=k(D)||0,x(w)&&(F=!!w.leading,W="maxWait"in w,P=W?p(k(w.maxWait)||0,D):P,H="trailing"in w?!!w.trailing:H);function J($){var E=R,O=I;return R=I=void 0,z=$,L=C.apply(O,E),L}function Z($){return z=$,N=setTimeout(U,D),F?J($):L}function Y($){var E=$-G,O=$-z,j=D-E;return W?h(j,P-O):j}function X($){var E=$-G,O=$-z;return G===void 0||E>=D||E<0||W&&O>=P}function U(){var $=m();if(X($))return re($);N=setTimeout(U,Y($))}function re($){return N=void 0,H&&R?J($):(R=I=void 0,L)}function ne(){N!==void 0&&clearTimeout(N),z=0,R=G=I=N=void 0}function ce(){return N===void 0?L:re(m())}function B(){var $=m(),E=X($);if(R=arguments,I=this,G=$,E){if(N===void 0)return Z(G);if(W)return N=setTimeout(U,D),J(G)}return N===void 0&&(N=setTimeout(U,D)),L}return B.cancel=ne,B.flush=ce,B}function y(C,D,w){var R=!0,I=!0;if(typeof C!="function")throw new TypeError(e);return x(w)&&(R="leading"in w?!!w.leading:R,I="trailing"in w?!!w.trailing:I),b(C,D,{leading:R,maxWait:D,trailing:I})}function x(C){var D=typeof C;return!!C&&(D=="object"||D=="function")}function _(C){return!!C&&typeof C=="object"}function T(C){return typeof C=="symbol"||_(C)&&f.call(C)==r}function k(C){if(typeof C=="number")return C;if(T(C))return t;if(x(C)){var D=typeof C.valueOf=="function"?C.valueOf():C;C=x(D)?D+"":D}if(typeof C!="string")return C===0?C:+C;C=C.replace(n,"");var w=o.test(C);return w||a.test(C)?l(C.slice(2),w?2:8):i.test(C)?t:+C}return bi=y,bi}var xr={exports:{}},Pt={exports:{}},iv=Pt.exports,pl;function ov(){return pl||(pl=1,(function(){var e,t,r,n,i,o;typeof performance<"u"&&performance!==null&&performance.now?Pt.exports=function(){return performance.now()}:typeof br<"u"&&br!==null&&br.hrtime?(Pt.exports=function(){return(e()-i)/1e6},t=br.hrtime,e=function(){var a;return a=t(),a[0]*1e9+a[1]},n=e(),o=br.uptime()*1e9,i=n-o):Date.now?(Pt.exports=function(){return Date.now()-r},r=Date.now()):(Pt.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(iv)),Pt.exports}var hl;function av(){if(hl)return xr.exports;hl=1;for(var e=ov(),t=typeof window>"u"?Dr:window,r=["moz","webkit"],n="AnimationFrame",i=t["request"+n],o=t["cancel"+n]||t["cancelRequest"+n],a=0;!i&&a<r.length;a++)i=t[r[a]+"Request"+n],o=t[r[a]+"Cancel"+n]||t[r[a]+"CancelRequest"+n];if(!i||!o){var l=0,s=0,c=[],u=1e3/60;i=function(d){if(c.length===0){var f=e(),p=Math.max(0,u-(f-l));l=p+f,setTimeout(function(){var h=c.slice(0);c.length=0;for(var m=0;m<h.length;m++)if(!h[m].cancelled)try{h[m].callback(l)}catch(b){setTimeout(function(){throw b},0)}},Math.round(p))}return c.push({handle:++s,callback:d,cancelled:!1}),s},o=function(d){for(var f=0;f<c.length;f++)c[f].handle===d&&(c[f].cancelled=!0)}}return xr.exports=function(d){return i.call(t,d)},xr.exports.cancel=function(){o.apply(t,arguments)},xr.exports.polyfill=function(d){d||(d=t),d.requestAnimationFrame=i,d.cancelAnimationFrame=o},xr.exports}var fn={},gl;function lv(){if(gl)return fn;gl=1,Object.defineProperty(fn,"__esModule",{value:!0}),fn.default=e;function e(t){return t.displayName||t.name||(typeof t=="string"&&t.length>0?t:"Unknown")}return fn}var Wt={},vl;function sv(){if(vl)return Wt;vl=1,Object.defineProperty(Wt,"__esModule",{value:!0}),Wt.noop=e,Wt.intBetween=t,Wt.getCoords=r;function e(){}function t(n,i,o){return Math.floor(Math.min(i,Math.max(n,o)))}function r(n){return n.type==="touchmove"?{x:n.changedTouches[0].clientX,y:n.changedTouches[0].clientY}:{x:n.clientX,y:n.clientY}}return Wt}var ml;function cv(){if(ml)return Xe;ml=1,Object.defineProperty(Xe,"__esModule",{value:!0}),Xe.createHorizontalStrength=R,Xe.createVerticalStrength=I,Xe.createScrollingComponent=N,Xe.default=G,Xe.defaultVerticalStrength=Xe.defaultHorizontalStrength=void 0;var e=u(bc()),t=c(yc()),r=Bp(),n=c(nv()),i=c(av()),o=c(lv()),a=Vh,l=c($p()),s=sv();function c(z){return z&&z.__esModule?z:{default:z}}function u(z){if(z&&z.__esModule)return z;var F={};if(z!=null){for(var W in z)if(Object.prototype.hasOwnProperty.call(z,W)){var H=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(z,W):{};H.get||H.set?Object.defineProperty(F,W,H):F[W]=z[W]}}return F.default=z,F}function d(z){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?d=function(W){return typeof W}:d=function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},d(z)}function f(){return f=Object.assign||function(z){for(var F=1;F<arguments.length;F++){var W=arguments[F];for(var H in W)Object.prototype.hasOwnProperty.call(W,H)&&(z[H]=W[H])}return z},f.apply(this,arguments)}function p(z,F){if(z==null)return{};var W=h(z,F),H,J;if(Object.getOwnPropertySymbols){var Z=Object.getOwnPropertySymbols(z);for(J=0;J<Z.length;J++)H=Z[J],!(F.indexOf(H)>=0)&&Object.prototype.propertyIsEnumerable.call(z,H)&&(W[H]=z[H])}return W}function h(z,F){if(z==null)return{};var W={},H=Object.keys(z),J,Z;for(Z=0;Z<H.length;Z++)J=H[Z],!(F.indexOf(J)>=0)&&(W[J]=z[J]);return W}function m(z,F){if(!(z instanceof F))throw new TypeError("Cannot call a class as a function")}function b(z,F){for(var W=0;W<F.length;W++){var H=F[W];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(z,H.key,H)}}function y(z,F,W){return F&&b(z.prototype,F),z}function x(z,F){return F&&(d(F)==="object"||typeof F=="function")?F:C(z)}function _(z){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(W){return W.__proto__||Object.getPrototypeOf(W)},_(z)}function T(z,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");z.prototype=Object.create(F&&F.prototype,{constructor:{value:z,writable:!0,configurable:!0}}),F&&k(z,F)}function k(z,F){return k=Object.setPrototypeOf||function(H,J){return H.__proto__=J,H},k(z,F)}function C(z){if(z===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z}function D(z,F,W){return F in z?Object.defineProperty(z,F,{value:W,enumerable:!0,configurable:!0,writable:!0}):z[F]=W,z}var w=150;function R(z){return function(W,H){var J=W.x,Z=W.w,Y=W.y,X=W.h,U=Math.min(Z/2,z),re=H.x>=J&&H.x<=J+Z,ne=re&&H.y>=Y&&H.y<=Y+X;if(ne){if(H.x<J+U)return(H.x-J-U)/U;if(H.x>J+Z-U)return-(J+Z-H.x-U)/U}return 0}}function I(z){return function(W,H){var J=W.y,Z=W.h,Y=W.x,X=W.w,U=Math.min(Z/2,z),re=H.y>=J&&H.y<=J+Z,ne=re&&H.x>=Y&&H.x<=Y+X;if(ne){if(H.y<J+U)return(H.y-J-U)/U;if(H.y>J+Z-U)return-(J+Z-H.y-U)/U}return 0}}var P=R(w);Xe.defaultHorizontalStrength=P;var L=I(w);Xe.defaultVerticalStrength=L;function N(z){var F=(function(W){T(H,W);function H(J,Z){var Y;return m(this,H),Y=x(this,_(H).call(this,J,Z)),D(C(C(Y)),"updateScrolling",(0,n.default)(function(X){var U=Y.container.getBoundingClientRect(),re=U.left,ne=U.top,ce=U.width,B=U.height,$={x:re,y:ne,w:ce,h:B},E=(0,s.getCoords)(X),O=Y.props,j=O.horizontalStrength,V=O.verticalStrength;Y.scaleX=j($,E),Y.scaleY=V($,E),!Y.frame&&(Y.scaleX||Y.scaleY)&&Y.startScrolling()},100,{trailing:!1})),D(C(C(Y)),"handleEvent",function(X){Y.dragging&&!Y.attached&&(Y.attach(),Y.updateScrolling(X))}),Y.wrappedInstance=e.default.createRef(),Y.scaleX=0,Y.scaleY=0,Y.frame=null,Y.attached=!1,Y.dragging=!1,Y}return y(H,[{key:"componentDidMount",value:function(){var Z=this;this.container=(0,r.findDOMNode)(this.wrappedInstance.current),this.container&&typeof this.container.addEventListener=="function"&&this.container.addEventListener("dragover",this.handleEvent),window.document.body.addEventListener("touchmove",this.handleEvent);var Y=this.props.dragDropManager;this.clearMonitorSubscription=Y.getMonitor().subscribeToStateChange(function(){return Z.handleMonitorChange()})}},{key:"componentWillUnmount",value:function(){this.container&&typeof this.container.removeEventListener=="function"&&this.container.removeEventListener("dragover",this.handleEvent),window.document.body.removeEventListener("touchmove",this.handleEvent),this.clearMonitorSubscription(),this.stopScrolling()}},{key:"handleMonitorChange",value:function(){var Z=this.props.dragDropManager,Y=Z.getMonitor().isDragging();!this.dragging&&Y?this.dragging=!0:this.dragging&&!Y&&(this.dragging=!1,this.stopScrolling())}},{key:"attach",value:function(){this.attached=!0,window.document.body.addEventListener("dragover",this.updateScrolling),window.document.body.addEventListener("touchmove",this.updateScrolling)}},{key:"detach",value:function(){this.attached=!1,window.document.body.removeEventListener("dragover",this.updateScrolling),window.document.body.removeEventListener("touchmove",this.updateScrolling)}},{key:"startScrolling",value:function(){var Z=this,Y=0,X=function U(){var re=Z.scaleX,ne=Z.scaleY,ce=Z.container,B=Z.props,$=B.strengthMultiplier,E=B.onScrollChange;if($===0||re+ne===0){Z.stopScrolling();return}if(Y+=1,Y%2){var O=ce.scrollLeft,j=ce.scrollTop,V=ce.scrollWidth,ee=ce.scrollHeight,ae=ce.clientWidth,de=ce.clientHeight,be=re?ce.scrollLeft=(0,s.intBetween)(0,V-ae,O+re*$):O,Re=ne?ce.scrollTop=(0,s.intBetween)(0,ee-de,j+ne*$):j;E(be,Re)}Z.frame=(0,i.default)(U)};X()}},{key:"stopScrolling",value:function(){this.detach(),this.scaleX=0,this.scaleY=0,this.frame&&(i.default.cancel(this.frame),this.frame=null)}},{key:"render",value:function(){var Z=this.props;Z.strengthMultiplier,Z.verticalStrength,Z.horizontalStrength,Z.onScrollChange;var Y=p(Z,["strengthMultiplier","verticalStrength","horizontalStrength","onScrollChange"]);return e.default.createElement(z,f({ref:this.wrappedInstance},Y))}}]),H})(e.Component);return D(F,"displayName","Scrolling(".concat((0,o.default)(z),")")),D(F,"propTypes",{dragDropManager:t.default.object.isRequired,onScrollChange:t.default.func,verticalStrength:t.default.func,horizontalStrength:t.default.func,strengthMultiplier:t.default.number}),D(F,"defaultProps",{onScrollChange:s.noop,verticalStrength:L,horizontalStrength:P,strengthMultiplier:30}),(0,l.default)(F,z)}function G(z){var F=N(z);return function(W){return e.default.createElement(a.DragDropContextConsumer,null,function(H){var J=H.dragDropManager;return J===void 0?null:e.default.createElement(F,f({},W,{dragDropManager:J}))})}}return Xe}var Rn=cv();const uv=Qn(Rn);var dv=qh();const bl=Qn(dv);function Jc(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function Qc(e){function t(r){var n=this.constructor.getDerivedStateFromProps(e,r);return n??null}this.setState(t.bind(this))}function Xc(e,t){try{var r=this.props,n=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,n)}finally{this.props=r,this.state=n}}Jc.__suppressDeprecationWarning=!0;Qc.__suppressDeprecationWarning=!0;Xc.__suppressDeprecationWarning=!0;function Zr(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if(typeof e.getDerivedStateFromProps!="function"&&typeof t.getSnapshotBeforeUpdate!="function")return e;var r=null,n=null,i=null;if(typeof t.componentWillMount=="function"?r="componentWillMount":typeof t.UNSAFE_componentWillMount=="function"&&(r="UNSAFE_componentWillMount"),typeof t.componentWillReceiveProps=="function"?n="componentWillReceiveProps":typeof t.UNSAFE_componentWillReceiveProps=="function"&&(n="UNSAFE_componentWillReceiveProps"),typeof t.componentWillUpdate=="function"?i="componentWillUpdate":typeof t.UNSAFE_componentWillUpdate=="function"&&(i="UNSAFE_componentWillUpdate"),r!==null||n!==null||i!==null){var o=e.displayName||e.name,a=typeof e.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
41
41
 
42
42
  `+o+" uses "+a+" but also contains the following legacy lifecycles:"+(r!==null?`
43
43
  `+r:"")+(n!==null?`
@@ -45,10 +45,10 @@ import{iM as pp,iN as hp,j as g,B as te,O as je,r as v,iO as gp,an as Yn,iP as v
45
45
  `+i:"")+`
46
46
 
47
47
  The above lifecycles should be removed. Learn more about this warning here:
48
- https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=Jc,t.componentWillReceiveProps=Qc),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=Xc;var l=t.componentDidUpdate;t.componentDidUpdate=function(c,u,d){var f=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:d;l.call(this,c,u,f)}}return e}function yl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yl(Object(r),!0).forEach(function(n){A(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fv(e,t,r){return t=pe(t),Be(e,Zc()?Reflect.construct(t,r||[],pe(e).constructor):t.apply(e,r))}function Zc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Zc=function(){return!!e})()}var eu=(function(e){function t(){var r;Ce(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=fv(this,t,[].concat(i)),A(r,"state",{scrollToColumn:0,scrollToRow:0,instanceProps:{prevScrollToColumn:0,prevScrollToRow:0}}),A(r,"_columnStartIndex",0),A(r,"_columnStopIndex",0),A(r,"_rowStartIndex",0),A(r,"_rowStopIndex",0),A(r,"_onKeyDown",function(a){var l=r.props,s=l.columnCount,c=l.disabled,u=l.mode,d=l.rowCount;if(!c){var f=r._getScrollState(),p=f.scrollToColumn,h=f.scrollToRow,m=r._getScrollState(),b=m.scrollToColumn,y=m.scrollToRow;switch(a.key){case"ArrowDown":y=Math.min(u==="cells"?y+1:r._rowStopIndex+1,d-1);break;case"ArrowLeft":b=Math.max(u==="cells"?b-1:r._columnStartIndex-1,0);break;case"ArrowRight":b=Math.min(u==="cells"?b+1:r._columnStopIndex+1,s-1);break;case"ArrowUp":y=Math.max(u==="cells"?y-1:r._rowStartIndex-1,0);break}(b!==p||y!==h)&&(a.preventDefault(),r._updateScrollState({scrollToColumn:b,scrollToRow:y}))}}),A(r,"_onSectionRendered",function(a){var l=a.columnStartIndex,s=a.columnStopIndex,c=a.rowStartIndex,u=a.rowStopIndex;r._columnStartIndex=l,r._columnStopIndex=s,r._rowStartIndex=c,r._rowStopIndex=u}),r}return Fe(t,e),Se(t,[{key:"setScrollIndexes",value:function(n){var i=n.scrollToColumn,o=n.scrollToRow;this.setState({scrollToRow:o,scrollToColumn:i})}},{key:"render",value:function(){var n=this.props,i=n.className,o=n.children,a=this._getScrollState(),l=a.scrollToColumn,s=a.scrollToRow;return v.createElement("div",{className:i,onKeyDown:this._onKeyDown},o({onSectionRendered:this._onSectionRendered,scrollToColumn:l,scrollToRow:s}))}},{key:"_getScrollState",value:function(){return this.props.isControlled?this.props:this.state}},{key:"_updateScrollState",value:function(n){var i=n.scrollToColumn,o=n.scrollToRow,a=this.props,l=a.isControlled,s=a.onScrollToChange;typeof s=="function"&&s({scrollToColumn:i,scrollToRow:o}),l||this.setState({scrollToColumn:i,scrollToRow:o})}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.isControlled?{}:n.scrollToColumn!==i.instanceProps.prevScrollToColumn||n.scrollToRow!==i.instanceProps.prevScrollToRow?xl(xl({},i),{},{scrollToColumn:n.scrollToColumn,scrollToRow:n.scrollToRow,instanceProps:{prevScrollToColumn:n.scrollToColumn,prevScrollToRow:n.scrollToRow}}):{}}}])})(v.PureComponent);A(eu,"defaultProps",{disabled:!1,isControlled:!1,mode:"edges",scrollToColumn:0,scrollToRow:0});Zr(eu);function tu(e,t){var r;typeof t<"u"?r=t:typeof window<"u"?r=window:typeof self<"u"?r=self:r=Gp;var n=typeof r.document<"u"&&r.document.attachEvent;if(!n){var i=(function(){var D=r.requestAnimationFrame||r.mozRequestAnimationFrame||r.webkitRequestAnimationFrame||function(w){return r.setTimeout(w,20)};return function(w){return D(w)}})(),o=(function(){var D=r.cancelAnimationFrame||r.mozCancelAnimationFrame||r.webkitCancelAnimationFrame||r.clearTimeout;return function(w){return D(w)}})(),a=function(w){var R=w.__resizeTriggers__,I=R.firstElementChild,P=R.lastElementChild,L=I.firstElementChild;P.scrollLeft=P.scrollWidth,P.scrollTop=P.scrollHeight,L.style.width=I.offsetWidth+1+"px",L.style.height=I.offsetHeight+1+"px",I.scrollLeft=I.scrollWidth,I.scrollTop=I.scrollHeight},l=function(w){return w.offsetWidth!=w.__resizeLast__.width||w.offsetHeight!=w.__resizeLast__.height},s=function(w){if(!(w.target.className&&typeof w.target.className.indexOf=="function"&&w.target.className.indexOf("contract-trigger")<0&&w.target.className.indexOf("expand-trigger")<0)){var R=this;a(this),this.__resizeRAF__&&o(this.__resizeRAF__),this.__resizeRAF__=i(function(){l(R)&&(R.__resizeLast__.width=R.offsetWidth,R.__resizeLast__.height=R.offsetHeight,R.__resizeListeners__.forEach(function(I){I.call(R,w)}))})}},c=!1,u="",d="animationstart",f="Webkit Moz O ms".split(" "),p="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),h="";{var m=r.document.createElement("fakeelement");if(m.style.animationName!==void 0&&(c=!0),c===!1){for(var b=0;b<f.length;b++)if(m.style[f[b]+"AnimationName"]!==void 0){h=f[b],u="-"+h.toLowerCase()+"-",d=p[b],c=!0;break}}}var y="resizeanim",x="@"+u+"keyframes "+y+" { from { opacity: 0; } to { opacity: 0; } } ",_=u+"animation: 1ms "+y+"; "}var T=function(w){if(!w.getElementById("detectElementResize")){var R=(x||"")+".resize-triggers { "+(_||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',I=w.head||w.getElementsByTagName("head")[0],P=w.createElement("style");P.id="detectElementResize",P.type="text/css",e!=null&&P.setAttribute("nonce",e),P.styleSheet?P.styleSheet.cssText=R:P.appendChild(w.createTextNode(R)),I.appendChild(P)}},k=function(w,R){if(n)w.attachEvent("onresize",R);else{if(!w.__resizeTriggers__){var I=w.ownerDocument,P=r.getComputedStyle(w);P&&P.position=="static"&&(w.style.position="relative"),T(I),w.__resizeLast__={},w.__resizeListeners__=[],(w.__resizeTriggers__=I.createElement("div")).className="resize-triggers";var L=I.createElement("div");L.className="expand-trigger",L.appendChild(I.createElement("div"));var N=I.createElement("div");N.className="contract-trigger",w.__resizeTriggers__.appendChild(L),w.__resizeTriggers__.appendChild(N),w.appendChild(w.__resizeTriggers__),a(w),w.addEventListener("scroll",s,!0),d&&(w.__resizeTriggers__.__animationListener__=function(z){z.animationName==y&&a(w)},w.__resizeTriggers__.addEventListener(d,w.__resizeTriggers__.__animationListener__))}w.__resizeListeners__.push(R)}},C=function(w,R){if(n)w.detachEvent("onresize",R);else if(w.__resizeListeners__.splice(w.__resizeListeners__.indexOf(R),1),!w.__resizeListeners__.length){w.removeEventListener("scroll",s,!0),w.__resizeTriggers__.__animationListener__&&(w.__resizeTriggers__.removeEventListener(d,w.__resizeTriggers__.__animationListener__),w.__resizeTriggers__.__animationListener__=null);try{w.__resizeTriggers__=!w.removeChild(w.__resizeTriggers__)}catch{}}};return{addResizeListener:k,removeResizeListener:C}}function Sl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function wl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sl(Object(r),!0).forEach(function(n){A(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pv(e,t,r){return t=pe(t),Be(e,ru()?Reflect.construct(t,r||[],pe(e).constructor):t.apply(e,r))}function ru(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ru=function(){return!!e})()}var nu=(function(e){function t(){var r;Ce(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=pv(this,t,[].concat(i)),A(r,"state",{height:r.props.defaultHeight||0,width:r.props.defaultWidth||0}),A(r,"_parentNode",void 0),A(r,"_autoSizer",void 0),A(r,"_window",void 0),A(r,"_detectElementResize",void 0),A(r,"_onResize",function(){var a=r.props,l=a.disableHeight,s=a.disableWidth,c=a.onResize;if(r._parentNode){var u=r._parentNode.offsetHeight||0,d=r._parentNode.offsetWidth||0,f=r._window||window,p=f.getComputedStyle(r._parentNode)||{},h=parseInt(p.paddingLeft,10)||0,m=parseInt(p.paddingRight,10)||0,b=parseInt(p.paddingTop,10)||0,y=parseInt(p.paddingBottom,10)||0,x=u-b-y,_=d-h-m;(!l&&r.state.height!==x||!s&&r.state.width!==_)&&(r.setState({height:u-b-y,width:d-h-m}),c({height:u,width:d}))}}),A(r,"_setRef",function(a){r._autoSizer=a}),r}return Fe(t,e),Se(t,[{key:"componentDidMount",value:function(){var n=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._window=this._autoSizer.parentNode.ownerDocument.defaultView,this._detectElementResize=tu(n,this._window),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var n=this.props,i=n.children,o=n.className,a=n.disableHeight,l=n.disableWidth,s=n.style,c=this.state,u=c.height,d=c.width,f={overflow:"visible"},p={};return a||(f.height=0,p.height=u),l||(f.width=0,p.width=d),v.createElement("div",{className:o,ref:this._setRef,style:wl(wl({},f),s)},i(p))}}])})(v.Component);A(nu,"defaultProps",{onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}});function hv(e,t,r){return t=pe(t),Be(e,iu()?Reflect.construct(t,r||[],pe(e).constructor):t.apply(e,r))}function iu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(iu=function(){return!!e})()}var gv=(function(e){function t(){var r;Ce(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=hv(this,t,[].concat(i)),A(r,"_child",v.createRef()),A(r,"_measure",function(){var a=r.props,l=a.cache,s=a.columnIndex,c=s===void 0?0:s,u=a.parent,d=a.rowIndex,f=d===void 0?r.props.index||0:d,p=r._getCellMeasurements(),h=p.height,m=p.width;(h!==l.getHeight(f,c)||m!==l.getWidth(f,c))&&(l.set(f,c,m,h),u&&typeof u.recomputeGridSize=="function"&&u.recomputeGridSize({columnIndex:c,rowIndex:f}))}),A(r,"_registerChild",function(a){a&&!(a instanceof Element)&&console.warn("CellMeasurer registerChild expects to be passed Element or null"),r._child.current=a,a&&r._maybeMeasureCell()}),r}return Fe(t,e),Se(t,[{key:"componentDidMount",value:function(){this._maybeMeasureCell()}},{key:"componentDidUpdate",value:function(){this._maybeMeasureCell()}},{key:"render",value:function(){var n=this,i=this.props.children,o=typeof i=="function"?i({measure:this._measure,registerChild:this._registerChild}):i;return o===null?o:v.cloneElement(o,{ref:function(l){typeof o.ref=="function"?o.ref(l):o.ref&&(o.ref.current=l),n._child.current=l}})}},{key:"_getCellMeasurements",value:function(){var n=this.props.cache,i=this._child.current;if(i&&i.ownerDocument&&i.ownerDocument.defaultView&&i instanceof i.ownerDocument.defaultView.HTMLElement){var o=i.style.width,a=i.style.height;n.hasFixedWidth()||(i.style.width="auto"),n.hasFixedHeight()||(i.style.height="auto");var l=Math.ceil(i.offsetHeight),s=Math.ceil(i.offsetWidth);return o&&(i.style.width=o),a&&(i.style.height=a),{height:l,width:s}}else return{height:0,width:0}}},{key:"_maybeMeasureCell",value:function(){var n=this.props,i=n.cache,o=n.columnIndex,a=o===void 0?0:o,l=n.parent,s=n.rowIndex,c=s===void 0?this.props.index||0:s;if(!i.has(c,a)){var u=this._getCellMeasurements(),d=u.height,f=u.width;i.set(c,a,f,d),l&&typeof l.invalidateCellSizeAfterRender=="function"&&l.invalidateCellSizeAfterRender({columnIndex:a,rowIndex:c})}}}])})(v.PureComponent);A(gv,"__internalCellMeasurerFlag",!1);function vv(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function ou(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=ou(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Ze(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=ou(e))&&(n&&(n+=" "),n+=t);return n}function or(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,t={};return function(r){var n=r.callback,i=r.indices,o=Object.keys(i),a=!e||o.every(function(s){var c=i[s];return Array.isArray(c)?c.length>0:c>=0}),l=o.length!==Object.keys(t).length||o.some(function(s){var c=t[s],u=i[s];return Array.isArray(u)?c.join(",")!==u.join(","):c!==u});t=i,a&&l&&n(i)}}const mv=!!(typeof window<"u"&&window.document&&window.document.createElement);var pn;function no(e){if((!pn&&pn!==0||e)&&mv){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),pn=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return pn}function Cl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Il(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cl(Object(r),!0).forEach(function(n){A(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bv(e,t,r){return t=pe(t),Be(e,au()?Reflect.construct(t,r||[],pe(e).constructor):t.apply(e,r))}function au(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(au=function(){return!!e})()}var yv=150,Ht={OBSERVED:"observed",REQUESTED:"requested"},ei=(function(e){function t(){var r;Ce(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=bv(this,t,[].concat(i)),A(r,"state",{isScrolling:!1,scrollLeft:0,scrollTop:0}),A(r,"_calculateSizeAndPositionDataOnNextUpdate",!1),A(r,"_onSectionRenderedMemoizer",or()),A(r,"_onScrollMemoizer",or(!1)),A(r,"_invokeOnSectionRenderedHelper",function(){var a=r.props,l=a.cellLayoutManager,s=a.onSectionRendered;r._onSectionRenderedMemoizer({callback:s,indices:{indices:l.getLastRenderedIndices()}})}),A(r,"_setScrollingContainerRef",function(a){r._scrollingContainer=a}),A(r,"_updateScrollPositionForScrollToCell",function(){var a=r.props,l=a.cellLayoutManager,s=a.height,c=a.scrollToAlignment,u=a.scrollToCell,d=a.width,f=r.state,p=f.scrollLeft,h=f.scrollTop;if(u>=0){var m=l.getScrollPositionForCell({align:c,cellIndex:u,height:s,scrollLeft:p,scrollTop:h,width:d});(m.scrollLeft!==p||m.scrollTop!==h)&&r._setScrollPosition(m)}}),A(r,"_onScroll",function(a){if(a.target===r._scrollingContainer){r._enablePointerEventsAfterDelay();var l=r.props,s=l.cellLayoutManager,c=l.height,u=l.isScrollingChange,d=l.width,f=r._scrollbarSize,p=s.getTotalSize(),h=p.height,m=p.width,b=Math.max(0,Math.min(m-d+f,a.target.scrollLeft)),y=Math.max(0,Math.min(h-c+f,a.target.scrollTop));if(r.state.scrollLeft!==b||r.state.scrollTop!==y){var x=a.cancelable?Ht.OBSERVED:Ht.REQUESTED;r.state.isScrolling||u(!0),r.setState({isScrolling:!0,scrollLeft:b,scrollPositionChangeReason:x,scrollTop:y})}r._invokeOnScrollMemoizer({scrollLeft:b,scrollTop:y,totalWidth:m,totalHeight:h})}}),r._scrollbarSize=no(),r._scrollbarSize===void 0?(r._scrollbarSizeMeasured=!1,r._scrollbarSize=0):r._scrollbarSizeMeasured=!0,r}return Fe(t,e),Se(t,[{key:"recomputeCellSizesAndPositions",value:function(){this._calculateSizeAndPositionDataOnNextUpdate=!0,this.forceUpdate()}},{key:"componentDidMount",value:function(){var n=this.props,i=n.cellLayoutManager,o=n.scrollLeft,a=n.scrollToCell,l=n.scrollTop;this._scrollbarSizeMeasured||(this._scrollbarSize=no(),this._scrollbarSizeMeasured=!0,this.setState({})),a>=0?this._updateScrollPositionForScrollToCell():(o>=0||l>=0)&&this._setScrollPosition({scrollLeft:o,scrollTop:l}),this._invokeOnSectionRenderedHelper();var s=i.getTotalSize(),c=s.height,u=s.width;this._invokeOnScrollMemoizer({scrollLeft:o||0,scrollTop:l||0,totalHeight:c,totalWidth:u})}},{key:"componentDidUpdate",value:function(n,i){var o=this.props,a=o.height,l=o.scrollToAlignment,s=o.scrollToCell,c=o.width,u=this.state,d=u.scrollLeft,f=u.scrollPositionChangeReason,p=u.scrollTop;f===Ht.REQUESTED&&(d>=0&&d!==i.scrollLeft&&d!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=d),p>=0&&p!==i.scrollTop&&p!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=p)),(a!==n.height||l!==n.scrollToAlignment||s!==n.scrollToCell||c!==n.width)&&this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var n=this.props,i=n.autoHeight,o=n.cellCount,a=n.cellLayoutManager,l=n.className,s=n.height,c=n.horizontalOverscanSize,u=n.id,d=n.noContentRenderer,f=n.style,p=n.verticalOverscanSize,h=n.width,m=this.state,b=m.isScrolling,y=m.scrollLeft,x=m.scrollTop;(this._lastRenderedCellCount!==o||this._lastRenderedCellLayoutManager!==a||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=o,this._lastRenderedCellLayoutManager=a,this._calculateSizeAndPositionDataOnNextUpdate=!1,a.calculateSizeAndPositionData());var _=a.getTotalSize(),T=_.height,k=_.width,C=Math.max(0,y-c),D=Math.max(0,x-p),w=Math.min(k,y+h+c),R=Math.min(T,x+s+p),I=s>0&&h>0?a.cellRenderers({height:R-D,isScrolling:b,width:w-C,x:C,y:D}):[],P={boxSizing:"border-box",direction:"ltr",height:i?"auto":s,position:"relative",WebkitOverflowScrolling:"touch",width:h,willChange:"transform"},L=T>s?this._scrollbarSize:0,N=k>h?this._scrollbarSize:0;return P.overflowX=k+L<=h?"hidden":"auto",P.overflowY=T+N<=s?"hidden":"auto",v.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:Ze("ReactVirtualized__Collection",l),id:u,onScroll:this._onScroll,role:"grid",style:Il(Il({},P),f),tabIndex:0},o>0&&v.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:T,maxHeight:T,maxWidth:k,overflow:"hidden",pointerEvents:b?"none":"",width:k}},I),o===0&&d())}},{key:"_enablePointerEventsAfterDelay",value:function(){var n=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(function(){var i=n.props.isScrollingChange;i(!1),n._disablePointerEventsTimeoutId=null,n.setState({isScrolling:!1})},yv)}},{key:"_invokeOnScrollMemoizer",value:function(n){var i=this,o=n.scrollLeft,a=n.scrollTop,l=n.totalHeight,s=n.totalWidth;this._onScrollMemoizer({callback:function(u){var d=u.scrollLeft,f=u.scrollTop,p=i.props,h=p.height,m=p.onScroll,b=p.width;m({clientHeight:h,clientWidth:b,scrollHeight:l,scrollLeft:d,scrollTop:f,scrollWidth:s})},indices:{scrollLeft:o,scrollTop:a}})}},{key:"_setScrollPosition",value:function(n){var i=n.scrollLeft,o=n.scrollTop,a={scrollPositionChangeReason:Ht.REQUESTED};i>=0&&(a.scrollLeft=i),o>=0&&(a.scrollTop=o),(i>=0&&i!==this.state.scrollLeft||o>=0&&o!==this.state.scrollTop)&&this.setState(a)}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.cellCount===0&&(i.scrollLeft!==0||i.scrollTop!==0)?{scrollLeft:0,scrollTop:0,scrollPositionChangeReason:Ht.REQUESTED}:n.scrollLeft!==i.scrollLeft||n.scrollTop!==i.scrollTop?{scrollLeft:n.scrollLeft!=null?n.scrollLeft:i.scrollLeft,scrollTop:n.scrollTop!=null?n.scrollTop:i.scrollTop,scrollPositionChangeReason:Ht.REQUESTED}:null}}])})(v.PureComponent);A(ei,"defaultProps",{"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0});ei.propTypes={};Zr(ei);var xv=(function(){function e(t){var r=t.height,n=t.width,i=t.x,o=t.y;Ce(this,e),this.height=r,this.width=n,this.x=i,this.y=o,this._indexMap={},this._indices=[]}return Se(e,[{key:"addCellIndex",value:function(r){var n=r.index;this._indexMap[n]||(this._indexMap[n]=!0,this._indices.push(n))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return"".concat(this.x,",").concat(this.y," ").concat(this.width,"x").concat(this.height)}}])})(),Sv=100,wv=(function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Sv;Ce(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return Se(e,[{key:"getCellIndices",value:function(r){var n=r.height,i=r.width,o=r.x,a=r.y,l={};return this.getSections({height:n,width:i,x:o,y:a}).forEach(function(s){return s.getCellIndices().forEach(function(c){l[c]=c})}),Object.keys(l).map(function(s){return l[s]})}},{key:"getCellMetadata",value:function(r){var n=r.index;return this._cellMetadata[n]}},{key:"getSections",value:function(r){for(var n=r.height,i=r.width,o=r.x,a=r.y,l=Math.floor(o/this._sectionSize),s=Math.floor((o+i-1)/this._sectionSize),c=Math.floor(a/this._sectionSize),u=Math.floor((a+n-1)/this._sectionSize),d=[],f=l;f<=s;f++)for(var p=c;p<=u;p++){var h="".concat(f,".").concat(p);this._sections[h]||(this._sections[h]=new xv({height:this._sectionSize,width:this._sectionSize,x:f*this._sectionSize,y:p*this._sectionSize})),d.push(this._sections[h])}return d}},{key:"getTotalSectionCount",value:function(){return Object.keys(this._sections).length}},{key:"toString",value:function(){var r=this;return Object.keys(this._sections).map(function(n){return r._sections[n].toString()})}},{key:"registerCell",value:function(r){var n=r.cellMetadatum,i=r.index;this._cellMetadata[i]=n,this.getSections(n).forEach(function(o){return o.addCellIndex({index:i})})}}])})();function Cv(e){for(var t=e.cellCount,r=e.cellSizeAndPositionGetter,n=e.sectionSize,i=[],o=new wv(n),a=0,l=0,s=0;s<t;s++){var c=r({index:s});if(c.height==null||isNaN(c.height)||c.width==null||isNaN(c.width)||c.x==null||isNaN(c.x)||c.y==null||isNaN(c.y))throw Error("Invalid metadata returned for cell ".concat(s,`:
49
- x:`).concat(c.x,", y:").concat(c.y,", width:").concat(c.width,", height:").concat(c.height));a=Math.max(a,c.y+c.height),l=Math.max(l,c.x+c.width),i[s]=c,o.registerCell({cellMetadatum:c,index:s})}return{cellMetadata:i,height:a,sectionManager:o,width:l}}function Rl(e){var t=e.align,r=t===void 0?"auto":t,n=e.cellOffset,i=e.cellSize,o=e.containerSize,a=e.currentOffset,l=n,s=l-o+i;switch(r){case"start":return l;case"end":return s;case"center":return l-(o-i)/2;default:return Math.max(s,Math.min(l,a))}}function Iv(e,t,r){return t=pe(t),Be(e,lu()?Reflect.construct(t,r||[],pe(e).constructor):t.apply(e,r))}function lu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lu=function(){return!!e})()}var su=(function(e){function t(r,n){var i;return Ce(this,t),i=Iv(this,t,[r,n]),i._cellMetadata=[],i._lastRenderedCellIndices=[],i._cellCache=[],i._isScrollingChange=i._isScrollingChange.bind(i),i._setCollectionViewRef=i._setCollectionViewRef.bind(i),i}return Fe(t,e),Se(t,[{key:"forceUpdate",value:function(){this._collectionView!==void 0&&this._collectionView.forceUpdate()}},{key:"recomputeCellSizesAndPositions",value:function(){this._cellCache=[],this._collectionView.recomputeCellSizesAndPositions()}},{key:"render",value:function(){var n=q({},(vv(this.props),this.props));return v.createElement(ei,q({cellLayoutManager:this,isScrollingChange:this._isScrollingChange,ref:this._setCollectionViewRef},n))}},{key:"calculateSizeAndPositionData",value:function(){var n=this.props,i=n.cellCount,o=n.cellSizeAndPositionGetter,a=n.sectionSize,l=Cv({cellCount:i,cellSizeAndPositionGetter:o,sectionSize:a});this._cellMetadata=l.cellMetadata,this._sectionManager=l.sectionManager,this._height=l.height,this._width=l.width}},{key:"getLastRenderedIndices",value:function(){return this._lastRenderedCellIndices}},{key:"getScrollPositionForCell",value:function(n){var i=n.align,o=n.cellIndex,a=n.height,l=n.scrollLeft,s=n.scrollTop,c=n.width,u=this.props.cellCount;if(o>=0&&o<u){var d=this._cellMetadata[o];l=Rl({align:i,cellOffset:d.x,cellSize:d.width,containerSize:c,currentOffset:l}),s=Rl({align:i,cellOffset:d.y,cellSize:d.height,containerSize:a,currentOffset:s})}return{scrollLeft:l,scrollTop:s}}},{key:"getTotalSize",value:function(){return{height:this._height,width:this._width}}},{key:"cellRenderers",value:function(n){var i=this,o=n.height,a=n.isScrolling,l=n.width,s=n.x,c=n.y,u=this.props,d=u.cellGroupRenderer,f=u.cellRenderer;return this._lastRenderedCellIndices=this._sectionManager.getCellIndices({height:o,width:l,x:s,y:c}),d({cellCache:this._cellCache,cellRenderer:f,cellSizeAndPositionGetter:function(h){var m=h.index;return i._sectionManager.getCellMetadata({index:m})},indices:this._lastRenderedCellIndices,isScrolling:a})}},{key:"_isScrollingChange",value:function(n){n||(this._cellCache=[])}},{key:"_setCollectionViewRef",value:function(n){this._collectionView=n}}])})(v.PureComponent);A(su,"defaultProps",{"aria-label":"grid",cellGroupRenderer:Rv});su.propTypes={};function Rv(e){var t=e.cellCache,r=e.cellRenderer,n=e.cellSizeAndPositionGetter,i=e.indices,o=e.isScrolling;return i.map(function(a){var l=n({index:a}),s={index:a,isScrolling:o,key:a,style:{height:l.height,left:l.x,position:"absolute",top:l.y,width:l.width}};return o?(a in t||(t[a]=r(s)),t[a]):r(s)}).filter(function(a){return!!a})}function _v(e,t,r){return t=pe(t),Be(e,cu()?Reflect.construct(t,r||[],pe(e).constructor):t.apply(e,r))}function cu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(cu=function(){return!!e})()}var Dv=(function(e){function t(r,n){var i;return Ce(this,t),i=_v(this,t,[r,n]),i._registerChild=i._registerChild.bind(i),i}return Fe(t,e),Se(t,[{key:"componentDidUpdate",value:function(n){var i=this.props,o=i.columnMaxWidth,a=i.columnMinWidth,l=i.columnCount,s=i.width;(o!==n.columnMaxWidth||a!==n.columnMinWidth||l!==n.columnCount||s!==n.width)&&this._registeredChild&&this._registeredChild.recomputeGridSize()}},{key:"render",value:function(){var n=this.props,i=n.children,o=n.columnMaxWidth,a=n.columnMinWidth,l=n.columnCount,s=n.width,c=a||1,u=o?Math.min(o,s):s,d=s/l;d=Math.max(c,d),d=Math.min(u,d),d=Math.floor(d);var f=Math.min(s,d*l);return i({adjustedWidth:f,columnWidth:d,getColumnWidth:function(){return d},registerChild:this._registerChild})}},{key:"_registerChild",value:function(n){if(n&&typeof n.recomputeGridSize!="function")throw Error("Unexpected child type registered; only Grid/MultiGrid children are supported.");this._registeredChild=n,this._registeredChild&&this._registeredChild.recomputeGridSize()}}])})(v.PureComponent);Dv.propTypes={};function _l(e){var t=e.cellCount,r=e.cellSize,n=e.computeMetadataCallback,i=e.computeMetadataCallbackProps,o=e.nextCellsCount,a=e.nextCellSize,l=e.nextScrollToIndex,s=e.scrollToIndex,c=e.updateScrollOffsetForScrollToIndex;(t!==o||(typeof r=="number"||typeof a=="number")&&r!==a)&&(n(i),s>=0&&s===l&&c())}function Xt(e,t){if(e==null)return{};var r,n,i=nr(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var Tv=(function(){function e(t){var r=t.cellCount,n=t.cellSizeGetter,i=t.estimatedCellSize;Ce(this,e),A(this,"_cellSizeAndPositionData",{}),A(this,"_lastMeasuredIndex",-1),A(this,"_lastBatchedIndex",-1),A(this,"_cellCount",void 0),A(this,"_cellSizeGetter",void 0),A(this,"_estimatedCellSize",void 0),this._cellSizeGetter=n,this._cellCount=r,this._estimatedCellSize=i}return Se(e,[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(r){var n=r.cellCount,i=r.estimatedCellSize,o=r.cellSizeGetter;this._cellCount=n,this._estimatedCellSize=i,this._cellSizeGetter=o}},{key:"getCellCount",value:function(){return this._cellCount}},{key:"getEstimatedCellSize",value:function(){return this._estimatedCellSize}},{key:"getLastMeasuredIndex",value:function(){return this._lastMeasuredIndex}},{key:"getOffsetAdjustment",value:function(){return 0}},{key:"getSizeAndPositionOfCell",value:function(r){if(r<0||r>=this._cellCount)throw Error("Requested index ".concat(r," is outside of range 0..").concat(this._cellCount));if(r>this._lastMeasuredIndex)for(var n=this.getSizeAndPositionOfLastMeasuredCell(),i=n.offset+n.size,o=this._lastMeasuredIndex+1;o<=r;o++){var a=this._cellSizeGetter({index:o});if(a===void 0||isNaN(a))throw Error("Invalid size returned for cell ".concat(o," of value ").concat(a));a===null?(this._cellSizeAndPositionData[o]={offset:i,size:0},this._lastBatchedIndex=r):(this._cellSizeAndPositionData[o]={offset:i,size:a},i+=a,this._lastMeasuredIndex=r)}return this._cellSizeAndPositionData[r]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var r=this.getSizeAndPositionOfLastMeasuredCell(),n=r.offset+r.size,i=this._cellCount-this._lastMeasuredIndex-1,o=i*this._estimatedCellSize;return n+o}},{key:"getUpdatedOffsetForIndex",value:function(r){var n=r.align,i=n===void 0?"auto":n,o=r.containerSize,a=r.currentOffset,l=r.targetIndex;if(o<=0)return 0;var s=this.getSizeAndPositionOfCell(l),c=s.offset,u=c-o+s.size,d;switch(i){case"start":d=c;break;case"end":d=u;break;case"center":d=c-(o-s.size)/2;break;default:d=Math.max(u,Math.min(c,a));break}var f=this.getTotalSize();return Math.max(0,Math.min(f-o,d))}},{key:"getVisibleCellRange",value:function(r){var n=r.containerSize,i=r.offset,o=this.getTotalSize();if(o===0)return{};var a=i+n,l=this._findNearestCell(i),s=this.getSizeAndPositionOfCell(l);i=s.offset+s.size;for(var c=l;i<a&&c<this._cellCount-1;)c++,i+=this.getSizeAndPositionOfCell(c).size;return{start:l,stop:c}}},{key:"resetCell",value:function(r){this._lastMeasuredIndex=Math.min(this._lastMeasuredIndex,r-1)}},{key:"_binarySearch",value:function(r,n,i){for(;n<=r;){var o=n+Math.floor((r-n)/2),a=this.getSizeAndPositionOfCell(o).offset;if(a===i)return o;a<i?n=o+1:a>i&&(r=o-1)}return n>0?n-1:0}},{key:"_exponentialSearch",value:function(r,n){for(var i=1;r<this._cellCount&&this.getSizeAndPositionOfCell(r).offset<n;)r+=i,i*=2;return this._binarySearch(Math.min(r,this._cellCount-1),Math.floor(r/2),n)}},{key:"_findNearestCell",value:function(r){if(isNaN(r))throw Error("Invalid offset ".concat(r," specified"));r=Math.max(0,r);var n=this.getSizeAndPositionOfLastMeasuredCell(),i=Math.max(0,this._lastMeasuredIndex);return n.offset>=r?this._binarySearch(i,0,r):this._exponentialSearch(i,r)}}])})(),kv=15e5,Ev=16777100,Pv=function(){return typeof window<"u"},Ov=function(){return!!window.chrome},Nv=function(){return Pv()&&Ov()?Ev:kv},Av=["maxScrollSize"],Dl=(function(){function e(t){var r=t.maxScrollSize,n=r===void 0?Nv():r,i=Xt(t,Av);Ce(this,e),A(this,"_cellSizeAndPositionManager",void 0),A(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new Tv(i),this._maxScrollSize=n}return Se(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(r){this._cellSizeAndPositionManager.configure(r)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(r){var n=r.containerSize,i=r.offset,o=this._cellSizeAndPositionManager.getTotalSize(),a=this.getTotalSize(),l=this._getOffsetPercentage({containerSize:n,offset:i,totalSize:a});return Math.round(l*(a-o))}},{key:"getSizeAndPositionOfCell",value:function(r){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(r)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(r){var n=r.align,i=n===void 0?"auto":n,o=r.containerSize,a=r.currentOffset,l=r.targetIndex;a=this._safeOffsetToOffset({containerSize:o,offset:a});var s=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:i,containerSize:o,currentOffset:a,targetIndex:l});return this._offsetToSafeOffset({containerSize:o,offset:s})}},{key:"getVisibleCellRange",value:function(r){var n=r.containerSize,i=r.offset;return i=this._safeOffsetToOffset({containerSize:n,offset:i}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:n,offset:i})}},{key:"resetCell",value:function(r){this._cellSizeAndPositionManager.resetCell(r)}},{key:"_getOffsetPercentage",value:function(r){var n=r.containerSize,i=r.offset,o=r.totalSize;return o<=n?0:i/(o-n)}},{key:"_offsetToSafeOffset",value:function(r){var n=r.containerSize,i=r.offset,o=this._cellSizeAndPositionManager.getTotalSize(),a=this.getTotalSize();if(o===a)return i;var l=this._getOffsetPercentage({containerSize:n,offset:i,totalSize:o});return Math.round(l*(a-n))}},{key:"_safeOffsetToOffset",value:function(r){var n=r.containerSize,i=r.offset,o=this._cellSizeAndPositionManager.getTotalSize(),a=this.getTotalSize();if(o===a)return i;var l=this._getOffsetPercentage({containerSize:n,offset:i,totalSize:a});return Math.round(l*(o-n))}}])})(),hn=-1,ct=1;function Mv(e){var t=e.cellCount,r=e.overscanCellsCount,n=e.scrollDirection,i=e.startIndex,o=e.stopIndex;return n===ct?{overscanStartIndex:Math.max(0,i),overscanStopIndex:Math.min(t-1,o+r)}:{overscanStartIndex:Math.max(0,i-r),overscanStopIndex:Math.min(t-1,o)}}function Tl(e){var t=e.cellSize,r=e.cellSizeAndPositionManager,n=e.previousCellsCount,i=e.previousCellSize,o=e.previousScrollToAlignment,a=e.previousScrollToIndex,l=e.previousSize,s=e.scrollOffset,c=e.scrollToAlignment,u=e.scrollToIndex,d=e.size,f=e.sizeJustIncreasedFromZero,p=e.updateScrollIndexCallback,h=r.getCellCount(),m=u>=0&&u<h,b=d!==l||f||!i||typeof t=="number"&&t!==i;m&&(b||c!==o||u!==a)?p(u):!m&&h>0&&(d<l||h<n)&&s>r.getTotalSize()-d&&p(h-1)}function Lv(e){for(var t=e.cellCache,r=e.cellRenderer,n=e.columnSizeAndPositionManager,i=e.columnStartIndex,o=e.columnStopIndex,a=e.deferredMeasurementCache,l=e.horizontalOffsetAdjustment,s=e.isScrolling,c=e.isScrollingOptOut,u=e.parent,d=e.rowSizeAndPositionManager,f=e.rowStartIndex,p=e.rowStopIndex,h=e.styleCache,m=e.verticalOffsetAdjustment,b=e.visibleColumnIndices,y=e.visibleRowIndices,x=[],_=n.areOffsetsAdjusted()||d.areOffsetsAdjusted(),T=!s&&!_,k=f;k<=p;k++)for(var C=d.getSizeAndPositionOfCell(k),D=i;D<=o;D++){var w=n.getSizeAndPositionOfCell(D),R=D>=b.start&&D<=b.stop&&k>=y.start&&k<=y.stop,I="".concat(k,"-").concat(D),P=void 0;T&&h[I]?P=h[I]:a&&!a.has(k,D)?P={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(P={height:C.size,left:w.offset+l,position:"absolute",top:C.offset+m,width:w.size},h[I]=P);var L={columnIndex:D,isScrolling:s,isVisible:R,key:I,parent:u,rowIndex:k,style:P},N=void 0;(c||s)&&!l&&!m?(t[I]||(t[I]=r(L)),N=t[I]):N=r(L),!(N==null||N===!1)&&(N.props.role||(N=Q.cloneElement(N,{role:"gridcell"})),x.push(N))}return x}var ze;typeof window<"u"?ze=window:typeof self<"u"?ze=self:ze={};var zv=ze.requestAnimationFrame||ze.webkitRequestAnimationFrame||ze.mozRequestAnimationFrame||ze.oRequestAnimationFrame||ze.msRequestAnimationFrame||function(e){return ze.setTimeout(e,1e3/60)},jv=ze.cancelAnimationFrame||ze.webkitCancelAnimationFrame||ze.mozCancelAnimationFrame||ze.oCancelAnimationFrame||ze.msCancelAnimationFrame||function(e){ze.clearTimeout(e)},kl=zv,Fv=jv,ar=function(t){return Fv(t.id)},Ho=function(t,r){var n;Promise.resolve().then(function(){n=Date.now()});var i=function(){Date.now()-n>=r?t.call():o.id=kl(i)},o={id:kl(i)};return o};function El(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?El(Object(r),!0).forEach(function(n){A(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):El(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Bv(e,t,r){return t=pe(t),Be(e,uu()?Reflect.construct(t,r||[],pe(e).constructor):t.apply(e,r))}function uu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(uu=function(){return!!e})()}var $v=150,yi={OBSERVED:"observed",REQUESTED:"requested"},Gv=function(){return null},bt=(function(e){function t(r){var n;Ce(this,t),n=Bv(this,t,[r]),A(n,"_onGridRenderedMemoizer",or()),A(n,"_onScrollMemoizer",or(!1)),A(n,"_deferredInvalidateColumnIndex",null),A(n,"_deferredInvalidateRowIndex",null),A(n,"_recomputeScrollLeftFlag",!1),A(n,"_recomputeScrollTopFlag",!1),A(n,"_horizontalScrollBarSize",0),A(n,"_verticalScrollBarSize",0),A(n,"_scrollbarPresenceChanged",!1),A(n,"_scrollingContainer",void 0),A(n,"_childrenToDisplay",void 0),A(n,"_columnStartIndex",void 0),A(n,"_columnStopIndex",void 0),A(n,"_rowStartIndex",void 0),A(n,"_rowStopIndex",void 0),A(n,"_renderedColumnStartIndex",0),A(n,"_renderedColumnStopIndex",0),A(n,"_renderedRowStartIndex",0),A(n,"_renderedRowStopIndex",0),A(n,"_initialScrollTop",void 0),A(n,"_initialScrollLeft",void 0),A(n,"_disablePointerEventsTimeoutId",void 0),A(n,"_styleCache",{}),A(n,"_cellCache",{}),A(n,"_debounceScrollEndedCallback",function(){n._disablePointerEventsTimeoutId=null,n.setState({isScrolling:!1,needToResetStyleCache:!1})}),A(n,"_invokeOnGridRenderedHelper",function(){var a=n.props.onSectionRendered;n._onGridRenderedMemoizer({callback:a,indices:{columnOverscanStartIndex:n._columnStartIndex,columnOverscanStopIndex:n._columnStopIndex,columnStartIndex:n._renderedColumnStartIndex,columnStopIndex:n._renderedColumnStopIndex,rowOverscanStartIndex:n._rowStartIndex,rowOverscanStopIndex:n._rowStopIndex,rowStartIndex:n._renderedRowStartIndex,rowStopIndex:n._renderedRowStopIndex}})}),A(n,"_setScrollingContainerRef",function(a){n._scrollingContainer=a,typeof n.props.elementRef=="function"?n.props.elementRef(a):Gc(n.props.elementRef)==="object"&&(n.props.elementRef.current=a)}),A(n,"_onScroll",function(a){a.target===n._scrollingContainer&&n.handleScrollEvent(a.target)});var i=new Dl({cellCount:r.columnCount,cellSizeGetter:function(l){return t._wrapSizeGetter(r.columnWidth)(l)},estimatedCellSize:t._getEstimatedColumnSize(r)}),o=new Dl({cellCount:r.rowCount,cellSizeGetter:function(l){return t._wrapSizeGetter(r.rowHeight)(l)},estimatedCellSize:t._getEstimatedRowSize(r)});return n.state={instanceProps:{columnSizeAndPositionManager:i,rowSizeAndPositionManager:o,prevColumnWidth:r.columnWidth,prevRowHeight:r.rowHeight,prevColumnCount:r.columnCount,prevRowCount:r.rowCount,prevIsScrolling:r.isScrolling===!0,prevScrollToColumn:r.scrollToColumn,prevScrollToRow:r.scrollToRow,scrollbarSize:0,scrollbarSizeMeasured:!1},isScrolling:!1,scrollDirectionHorizontal:ct,scrollDirectionVertical:ct,scrollLeft:0,scrollTop:0,scrollPositionChangeReason:null,needToResetStyleCache:!1},r.scrollToRow>0&&(n._initialScrollTop=n._getCalculatedScrollTop(r,n.state)),r.scrollToColumn>0&&(n._initialScrollLeft=n._getCalculatedScrollLeft(r,n.state)),n}return Fe(t,e),Se(t,[{key:"getOffsetForCell",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=n.alignment,o=i===void 0?this.props.scrollToAlignment:i,a=n.columnIndex,l=a===void 0?this.props.scrollToColumn:a,s=n.rowIndex,c=s===void 0?this.props.scrollToRow:s,u=$e($e({},this.props),{},{scrollToAlignment:o,scrollToColumn:l,scrollToRow:c});return{scrollLeft:this._getCalculatedScrollLeft(u),scrollTop:this._getCalculatedScrollTop(u)}}},{key:"getTotalRowsHeight",value:function(){return this.state.instanceProps.rowSizeAndPositionManager.getTotalSize()}},{key:"getTotalColumnsWidth",value:function(){return this.state.instanceProps.columnSizeAndPositionManager.getTotalSize()}},{key:"handleScrollEvent",value:function(n){var i=n.scrollLeft,o=i===void 0?0:i,a=n.scrollTop,l=a===void 0?0:a;if(!(l<0)){this._debounceScrollEnded();var s=this.props,c=s.autoHeight,u=s.autoWidth,d=s.height,f=s.width,p=this.state.instanceProps,h=p.scrollbarSize,m=p.rowSizeAndPositionManager.getTotalSize(),b=p.columnSizeAndPositionManager.getTotalSize(),y=Math.min(Math.max(0,b-f+h),o),x=Math.min(Math.max(0,m-d+h),l);if(this.state.scrollLeft!==y||this.state.scrollTop!==x){var _=y!==this.state.scrollLeft?y>this.state.scrollLeft?ct:hn:this.state.scrollDirectionHorizontal,T=x!==this.state.scrollTop?x>this.state.scrollTop?ct:hn:this.state.scrollDirectionVertical,k={isScrolling:!0,scrollDirectionHorizontal:_,scrollDirectionVertical:T,scrollPositionChangeReason:yi.OBSERVED};c||(k.scrollTop=x),u||(k.scrollLeft=y),k.needToResetStyleCache=!1,this.setState(k)}this._invokeOnScrollMemoizer({scrollLeft:y,scrollTop:x,totalColumnsWidth:b,totalRowsHeight:m})}}},{key:"invalidateCellSizeAfterRender",value:function(n){var i=n.columnIndex,o=n.rowIndex;this._deferredInvalidateColumnIndex=typeof this._deferredInvalidateColumnIndex=="number"?Math.min(this._deferredInvalidateColumnIndex,i):i,this._deferredInvalidateRowIndex=typeof this._deferredInvalidateRowIndex=="number"?Math.min(this._deferredInvalidateRowIndex,o):o}},{key:"measureAllCells",value:function(){var n=this.props,i=n.columnCount,o=n.rowCount,a=this.state.instanceProps;a.columnSizeAndPositionManager.getSizeAndPositionOfCell(i-1),a.rowSizeAndPositionManager.getSizeAndPositionOfCell(o-1)}},{key:"recomputeGridSize",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=n.columnIndex,o=i===void 0?0:i,a=n.rowIndex,l=a===void 0?0:a,s=this.props,c=s.scrollToColumn,u=s.scrollToRow,d=this.state.instanceProps;d.columnSizeAndPositionManager.resetCell(o),d.rowSizeAndPositionManager.resetCell(l),this._recomputeScrollLeftFlag=c>=0&&(this.state.scrollDirectionHorizontal===ct?o<=c:o>=c),this._recomputeScrollTopFlag=u>=0&&(this.state.scrollDirectionVertical===ct?l<=u:l>=u),this._styleCache={},this._cellCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(n){var i=n.columnIndex,o=n.rowIndex,a=this.props.columnCount,l=this.props;a>1&&i!==void 0&&this._updateScrollLeftForScrollToColumn($e($e({},l),{},{scrollToColumn:i})),o!==void 0&&this._updateScrollTopForScrollToRow($e($e({},l),{},{scrollToRow:o}))}},{key:"componentDidMount",value:function(){var n=this.props,i=n.getScrollbarSize,o=n.height,a=n.scrollLeft,l=n.scrollToColumn,s=n.scrollTop,c=n.scrollToRow,u=n.width,d=this.state.instanceProps;if(this._initialScrollTop=0,this._initialScrollLeft=0,this._handleInvalidatedGridSize(),d.scrollbarSizeMeasured||this.setState(function(h){var m=$e($e({},h),{},{needToResetStyleCache:!1});return m.instanceProps.scrollbarSize=i(),m.instanceProps.scrollbarSizeMeasured=!0,m}),typeof a=="number"&&a>=0||typeof s=="number"&&s>=0){var f=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:a,scrollTop:s});f&&(f.needToResetStyleCache=!1,this.setState(f))}this._scrollingContainer&&(this._scrollingContainer.scrollLeft!==this.state.scrollLeft&&(this._scrollingContainer.scrollLeft=this.state.scrollLeft),this._scrollingContainer.scrollTop!==this.state.scrollTop&&(this._scrollingContainer.scrollTop=this.state.scrollTop));var p=o>0&&u>0;l>=0&&p&&this._updateScrollLeftForScrollToColumn(),c>=0&&p&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:a||0,scrollTop:s||0,totalColumnsWidth:d.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:d.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(n,i){var o=this,a=this.props,l=a.autoHeight,s=a.autoWidth,c=a.columnCount,u=a.height,d=a.rowCount,f=a.scrollToAlignment,p=a.scrollToColumn,h=a.scrollToRow,m=a.width,b=this.state,y=b.scrollLeft,x=b.scrollPositionChangeReason,_=b.scrollTop,T=b.instanceProps;this._handleInvalidatedGridSize();var k=c>0&&n.columnCount===0||d>0&&n.rowCount===0;x===yi.REQUESTED&&(!s&&y>=0&&(y!==this._scrollingContainer.scrollLeft||k)&&(this._scrollingContainer.scrollLeft=y),!l&&_>=0&&(_!==this._scrollingContainer.scrollTop||k)&&(this._scrollingContainer.scrollTop=_));var C=(n.width===0||n.height===0)&&u>0&&m>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):Tl({cellSizeAndPositionManager:T.columnSizeAndPositionManager,previousCellsCount:n.columnCount,previousCellSize:n.columnWidth,previousScrollToAlignment:n.scrollToAlignment,previousScrollToIndex:n.scrollToColumn,previousSize:n.width,scrollOffset:y,scrollToAlignment:f,scrollToIndex:p,size:m,sizeJustIncreasedFromZero:C,updateScrollIndexCallback:function(){return o._updateScrollLeftForScrollToColumn(o.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):Tl({cellSizeAndPositionManager:T.rowSizeAndPositionManager,previousCellsCount:n.rowCount,previousCellSize:n.rowHeight,previousScrollToAlignment:n.scrollToAlignment,previousScrollToIndex:n.scrollToRow,previousSize:n.height,scrollOffset:_,scrollToAlignment:f,scrollToIndex:h,size:u,sizeJustIncreasedFromZero:C,updateScrollIndexCallback:function(){return o._updateScrollTopForScrollToRow(o.props)}}),this._invokeOnGridRenderedHelper(),y!==i.scrollLeft||_!==i.scrollTop){var D=T.rowSizeAndPositionManager.getTotalSize(),w=T.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:y,scrollTop:_,totalColumnsWidth:w,totalRowsHeight:D})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&ar(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var n=this.props,i=n.autoContainerWidth,o=n.autoHeight,a=n.autoWidth,l=n.className,s=n.containerProps,c=n.containerRole,u=n.containerStyle,d=n.height,f=n.id,p=n.noContentRenderer,h=n.role,m=n.style,b=n.tabIndex,y=n.width,x=this.state,_=x.instanceProps,T=x.needToResetStyleCache,k=this._isScrolling(),C={boxSizing:"border-box",direction:"ltr",height:o?"auto":d,position:"relative",width:a?"auto":y,WebkitOverflowScrolling:"touch",willChange:"transform"};T&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var D=_.columnSizeAndPositionManager.getTotalSize(),w=_.rowSizeAndPositionManager.getTotalSize(),R=w>d?_.scrollbarSize:0,I=D>y?_.scrollbarSize:0;(I!==this._horizontalScrollBarSize||R!==this._verticalScrollBarSize)&&(this._horizontalScrollBarSize=I,this._verticalScrollBarSize=R,this._scrollbarPresenceChanged=!0),C.overflowX=D+R<=y?"hidden":"auto",C.overflowY=w+I<=d?"hidden":"auto";var P=this._childrenToDisplay,L=P.length===0&&d>0&&y>0;return v.createElement("div",q({ref:this._setScrollingContainerRef},s,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:Ze("ReactVirtualized__Grid",l),id:f,onScroll:this._onScroll,role:h,style:$e($e({},C),m),tabIndex:b}),P.length>0&&v.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:c,style:$e({width:i?"auto":D,height:w,maxWidth:D,maxHeight:w,overflow:"hidden",pointerEvents:k?"none":"",position:"relative"},u)},P),L&&p())}},{key:"_calculateChildrenToRender",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state,o=n.cellRenderer,a=n.cellRangeRenderer,l=n.columnCount,s=n.deferredMeasurementCache,c=n.height,u=n.overscanColumnCount,d=n.overscanIndicesGetter,f=n.overscanRowCount,p=n.rowCount,h=n.width,m=n.isScrollingOptOut,b=i.scrollDirectionHorizontal,y=i.scrollDirectionVertical,x=i.instanceProps,_=this._initialScrollTop>0?this._initialScrollTop:i.scrollTop,T=this._initialScrollLeft>0?this._initialScrollLeft:i.scrollLeft,k=this._isScrolling(n,i);if(this._childrenToDisplay=[],c>0&&h>0){var C=x.columnSizeAndPositionManager.getVisibleCellRange({containerSize:h,offset:T}),D=x.rowSizeAndPositionManager.getVisibleCellRange({containerSize:c,offset:_}),w=x.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:h,offset:T}),R=x.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:c,offset:_});this._renderedColumnStartIndex=C.start,this._renderedColumnStopIndex=C.stop,this._renderedRowStartIndex=D.start,this._renderedRowStopIndex=D.stop;var I=d({direction:"horizontal",cellCount:l,overscanCellsCount:u,scrollDirection:b,startIndex:typeof C.start=="number"?C.start:0,stopIndex:typeof C.stop=="number"?C.stop:-1}),P=d({direction:"vertical",cellCount:p,overscanCellsCount:f,scrollDirection:y,startIndex:typeof D.start=="number"?D.start:0,stopIndex:typeof D.stop=="number"?D.stop:-1}),L=I.overscanStartIndex,N=I.overscanStopIndex,G=P.overscanStartIndex,z=P.overscanStopIndex;if(s){if(!s.hasFixedHeight()){for(var F=G;F<=z;F++)if(!s.has(F,0)){L=0,N=l-1;break}}if(!s.hasFixedWidth()){for(var W=L;W<=N;W++)if(!s.has(0,W)){G=0,z=p-1;break}}}this._childrenToDisplay=a({cellCache:this._cellCache,cellRenderer:o,columnSizeAndPositionManager:x.columnSizeAndPositionManager,columnStartIndex:L,columnStopIndex:N,deferredMeasurementCache:s,horizontalOffsetAdjustment:w,isScrolling:k,isScrollingOptOut:m,parent:this,rowSizeAndPositionManager:x.rowSizeAndPositionManager,rowStartIndex:G,rowStopIndex:z,scrollLeft:T,scrollTop:_,styleCache:this._styleCache,verticalOffsetAdjustment:R,visibleColumnIndices:C,visibleRowIndices:D}),this._columnStartIndex=L,this._columnStopIndex=N,this._rowStartIndex=G,this._rowStopIndex=z}}},{key:"_debounceScrollEnded",value:function(){var n=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&ar(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=Ho(this._debounceScrollEndedCallback,n)}},{key:"_handleInvalidatedGridSize",value:function(){if(typeof this._deferredInvalidateColumnIndex=="number"&&typeof this._deferredInvalidateRowIndex=="number"){var n=this._deferredInvalidateColumnIndex,i=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:n,rowIndex:i})}}},{key:"_invokeOnScrollMemoizer",value:function(n){var i=this,o=n.scrollLeft,a=n.scrollTop,l=n.totalColumnsWidth,s=n.totalRowsHeight;this._onScrollMemoizer({callback:function(u){var d=u.scrollLeft,f=u.scrollTop,p=i.props,h=p.height,m=p.onScroll,b=p.width;m({clientHeight:h,clientWidth:b,scrollHeight:s,scrollLeft:d,scrollTop:f,scrollWidth:l})},indices:{scrollLeft:o,scrollTop:a}})}},{key:"_isScrolling",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state;return Object.hasOwnProperty.call(n,"isScrolling")?!!n.isScrolling:!!i.isScrolling}},{key:"_maybeCallOnScrollbarPresenceChange",value:function(){if(this._scrollbarPresenceChanged){var n=this.props.onScrollbarPresenceChange;this._scrollbarPresenceChanged=!1,n({horizontal:this._horizontalScrollBarSize>0,size:this.state.instanceProps.scrollbarSize,vertical:this._verticalScrollBarSize>0})}}},{key:"scrollToPosition",value:function(n){var i=n.scrollLeft,o=n.scrollTop,a=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:i,scrollTop:o});a&&(a.needToResetStyleCache=!1,this.setState(a))}},{key:"_getCalculatedScrollLeft",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state;return t._getCalculatedScrollLeft(n,i)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state,o=t._getScrollLeftForScrollToColumnStateUpdate(n,i);o&&(o.needToResetStyleCache=!1,this.setState(o))}},{key:"_getCalculatedScrollTop",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state;return t._getCalculatedScrollTop(n,i)}},{key:"_resetStyleCache",value:function(){var n=this._styleCache,i=this._cellCache,o=this.props.isScrollingOptOut;this._cellCache={},this._styleCache={};for(var a=this._rowStartIndex;a<=this._rowStopIndex;a++)for(var l=this._columnStartIndex;l<=this._columnStopIndex;l++){var s="".concat(a,"-").concat(l);this._styleCache[s]=n[s],o&&(this._cellCache[s]=i[s])}}},{key:"_updateScrollTopForScrollToRow",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state,o=t._getScrollTopForScrollToRowStateUpdate(n,i);o&&(o.needToResetStyleCache=!1,this.setState(o))}}],[{key:"getDerivedStateFromProps",value:function(n,i){var o={};n.columnCount===0&&i.scrollLeft!==0||n.rowCount===0&&i.scrollTop!==0?(o.scrollLeft=0,o.scrollTop=0):(n.scrollLeft!==i.scrollLeft&&n.scrollToColumn<0||n.scrollTop!==i.scrollTop&&n.scrollToRow<0)&&Object.assign(o,t._getScrollToPositionStateUpdate({prevState:i,scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}));var a=i.instanceProps;o.needToResetStyleCache=!1,(n.columnWidth!==a.prevColumnWidth||n.rowHeight!==a.prevRowHeight)&&(o.needToResetStyleCache=!0),a.columnSizeAndPositionManager.configure({cellCount:n.columnCount,estimatedCellSize:t._getEstimatedColumnSize(n),cellSizeGetter:t._wrapSizeGetter(n.columnWidth)}),a.rowSizeAndPositionManager.configure({cellCount:n.rowCount,estimatedCellSize:t._getEstimatedRowSize(n),cellSizeGetter:t._wrapSizeGetter(n.rowHeight)}),(a.prevColumnCount===0||a.prevRowCount===0)&&(a.prevColumnCount=0,a.prevRowCount=0),n.autoHeight&&n.isScrolling===!1&&a.prevIsScrolling===!0&&Object.assign(o,{isScrolling:!1});var l,s;return _l({cellCount:a.prevColumnCount,cellSize:typeof a.prevColumnWidth=="number"?a.prevColumnWidth:null,computeMetadataCallback:function(){return a.columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:n,nextCellsCount:n.columnCount,nextCellSize:typeof n.columnWidth=="number"?n.columnWidth:null,nextScrollToIndex:n.scrollToColumn,scrollToIndex:a.prevScrollToColumn,updateScrollOffsetForScrollToIndex:function(){l=t._getScrollLeftForScrollToColumnStateUpdate(n,i)}}),_l({cellCount:a.prevRowCount,cellSize:typeof a.prevRowHeight=="number"?a.prevRowHeight:null,computeMetadataCallback:function(){return a.rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:n,nextCellsCount:n.rowCount,nextCellSize:typeof n.rowHeight=="number"?n.rowHeight:null,nextScrollToIndex:n.scrollToRow,scrollToIndex:a.prevScrollToRow,updateScrollOffsetForScrollToIndex:function(){s=t._getScrollTopForScrollToRowStateUpdate(n,i)}}),a.prevColumnCount=n.columnCount,a.prevColumnWidth=n.columnWidth,a.prevIsScrolling=n.isScrolling===!0,a.prevRowCount=n.rowCount,a.prevRowHeight=n.rowHeight,a.prevScrollToColumn=n.scrollToColumn,a.prevScrollToRow=n.scrollToRow,a.scrollbarSize=n.getScrollbarSize(),a.scrollbarSize===void 0?(a.scrollbarSizeMeasured=!1,a.scrollbarSize=0):a.scrollbarSizeMeasured=!0,o.instanceProps=a,$e($e($e({},o),l),s)}},{key:"_getEstimatedColumnSize",value:function(n){return typeof n.columnWidth=="number"?n.columnWidth:n.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(n){return typeof n.rowHeight=="number"?n.rowHeight:n.estimatedRowSize}},{key:"_getScrollToPositionStateUpdate",value:function(n){var i=n.prevState,o=n.scrollLeft,a=n.scrollTop,l={scrollPositionChangeReason:yi.REQUESTED};return typeof o=="number"&&o>=0&&(l.scrollDirectionHorizontal=o>i.scrollLeft?ct:hn,l.scrollLeft=o),typeof a=="number"&&a>=0&&(l.scrollDirectionVertical=a>i.scrollTop?ct:hn,l.scrollTop=a),typeof o=="number"&&o>=0&&o!==i.scrollLeft||typeof a=="number"&&a>=0&&a!==i.scrollTop?l:{}}},{key:"_wrapSizeGetter",value:function(n){return typeof n=="function"?n:function(){return n}}},{key:"_getCalculatedScrollLeft",value:function(n,i){var o=n.columnCount,a=n.height,l=n.scrollToAlignment,s=n.scrollToColumn,c=n.width,u=i.scrollLeft,d=i.instanceProps;if(o>0){var f=o-1,p=s<0?f:Math.min(f,s),h=d.rowSizeAndPositionManager.getTotalSize(),m=d.scrollbarSizeMeasured&&h>a?d.scrollbarSize:0;return d.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:l,containerSize:c-m,currentOffset:u,targetIndex:p})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(n,i){var o=i.scrollLeft,a=t._getCalculatedScrollLeft(n,i);return typeof a=="number"&&a>=0&&o!==a?t._getScrollToPositionStateUpdate({prevState:i,scrollLeft:a,scrollTop:-1}):{}}},{key:"_getCalculatedScrollTop",value:function(n,i){var o=n.height,a=n.rowCount,l=n.scrollToAlignment,s=n.scrollToRow,c=n.width,u=i.scrollTop,d=i.instanceProps;if(a>0){var f=a-1,p=s<0?f:Math.min(f,s),h=d.columnSizeAndPositionManager.getTotalSize(),m=d.scrollbarSizeMeasured&&h>c?d.scrollbarSize:0;return d.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:l,containerSize:o-m,currentOffset:u,targetIndex:p})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(n,i){var o=i.scrollTop,a=t._getCalculatedScrollTop(n,i);return typeof a=="number"&&a>=0&&o!==a?t._getScrollToPositionStateUpdate({prevState:i,scrollLeft:-1,scrollTop:a}):{}}}])})(v.PureComponent);A(bt,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:Lv,containerRole:"row",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:no,noContentRenderer:Gv,onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:Mv,overscanRowCount:10,role:"grid",scrollingResetTimeInterval:$v,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1});Zr(bt);var Wv=1;function du(e){var t=e.cellCount,r=e.overscanCellsCount,n=e.scrollDirection,i=e.startIndex,o=e.stopIndex;return r=Math.max(1,r),n===Wv?{overscanStartIndex:Math.max(0,i-1),overscanStopIndex:Math.min(t-1,o+r)}:{overscanStartIndex:Math.max(0,i-r),overscanStopIndex:Math.min(t-1,o+1)}}function Hv(e){if(Array.isArray(e))return Xh(e)}function Uv(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Vv(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
50
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fu(e){return Hv(e)||Uv(e)||Fc(e)||Vv()}function qv(e,t,r){return t=pe(t),Be(e,pu()?Reflect.construct(t,r||[],pe(e).constructor):t.apply(e,r))}function pu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(pu=function(){return!!e})()}var hu=(function(e){function t(r,n){var i;return Ce(this,t),i=qv(this,t,[r,n]),i._loadMoreRowsMemoizer=or(),i._onRowsRendered=i._onRowsRendered.bind(i),i._registerChild=i._registerChild.bind(i),i}return Fe(t,e),Se(t,[{key:"resetLoadMoreRowsCache",value:function(n){this._loadMoreRowsMemoizer=or(),n&&this._doStuff(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"render",value:function(){var n=this.props.children;return n({onRowsRendered:this._onRowsRendered,registerChild:this._registerChild})}},{key:"_loadUnloadedRanges",value:function(n){var i=this,o=this.props.loadMoreRows;n.forEach(function(a){var l=o(a);l&&l.then(function(){Kv({lastRenderedStartIndex:i._lastRenderedStartIndex,lastRenderedStopIndex:i._lastRenderedStopIndex,startIndex:a.startIndex,stopIndex:a.stopIndex})&&i._registeredChild&&Jv(i._registeredChild,i._lastRenderedStartIndex)})})}},{key:"_onRowsRendered",value:function(n){var i=n.startIndex,o=n.stopIndex;this._lastRenderedStartIndex=i,this._lastRenderedStopIndex=o,this._doStuff(i,o)}},{key:"_doStuff",value:function(n,i){var o,a=this,l=this.props,s=l.isRowLoaded,c=l.minimumBatchSize,u=l.rowCount,d=l.threshold,f=Yv({isRowLoaded:s,minimumBatchSize:c,rowCount:u,startIndex:Math.max(0,n-d),stopIndex:Math.min(u-1,i+d)}),p=(o=[]).concat.apply(o,fu(f.map(function(h){var m=h.startIndex,b=h.stopIndex;return[m,b]})));this._loadMoreRowsMemoizer({callback:function(){a._loadUnloadedRanges(f)},indices:{squashedUnloadedRanges:p}})}},{key:"_registerChild",value:function(n){this._registeredChild=n}}])})(v.PureComponent);A(hu,"defaultProps",{minimumBatchSize:10,rowCount:0,threshold:15});hu.propTypes={};function Kv(e){var t=e.lastRenderedStartIndex,r=e.lastRenderedStopIndex,n=e.startIndex,i=e.stopIndex;return!(n>r||i<t)}function Yv(e){for(var t=e.isRowLoaded,r=e.minimumBatchSize,n=e.rowCount,i=e.startIndex,o=e.stopIndex,a=[],l=null,s=null,c=i;c<=o;c++){var u=t({index:c});u?s!==null&&(a.push({startIndex:l,stopIndex:s}),l=s=null):(s=c,l===null&&(l=c))}if(s!==null){for(var d=Math.min(Math.max(s,l+r-1),n-1),f=s+1;f<=d&&!t({index:f});f++)s=f;a.push({startIndex:l,stopIndex:s})}if(a.length)for(var p=a[0];p.stopIndex-p.startIndex+1<r&&p.startIndex>0;){var h=p.startIndex-1;if(!t({index:h}))p.startIndex=h;else break}return a}function Jv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=typeof e.recomputeGridSize=="function"?e.recomputeGridSize:e.recomputeRowHeights;r?r.call(e,t):e.forceUpdate()}function Qv(e,t,r){return t=pe(t),Be(e,gu()?Reflect.construct(t,r||[],pe(e).constructor):t.apply(e,r))}function gu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gu=function(){return!!e})()}var vu=(function(e){function t(){var r;Ce(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=Qv(this,t,[].concat(i)),A(r,"Grid",void 0),A(r,"_cellRenderer",function(a){var l=a.parent,s=a.rowIndex,c=a.style,u=a.isScrolling,d=a.isVisible,f=a.key,p=r.props.rowRenderer,h=Object.getOwnPropertyDescriptor(c,"width");return h&&h.writable&&(c.width="100%"),p({index:s,style:c,isScrolling:u,isVisible:d,key:f,parent:l})}),A(r,"_setRef",function(a){r.Grid=a}),A(r,"_onScroll",function(a){var l=a.clientHeight,s=a.scrollHeight,c=a.scrollTop,u=r.props.onScroll;u({clientHeight:l,scrollHeight:s,scrollTop:c})}),A(r,"_onSectionRendered",function(a){var l=a.rowOverscanStartIndex,s=a.rowOverscanStopIndex,c=a.rowStartIndex,u=a.rowStopIndex,d=r.props.onRowsRendered;d({overscanStartIndex:l,overscanStopIndex:s,startIndex:c,stopIndex:u})}),r}return Fe(t,e),Se(t,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(n){var i=n.alignment,o=n.index;if(this.Grid){var a=this.Grid.getOffsetForCell({alignment:i,rowIndex:o,columnIndex:0}),l=a.scrollTop;return l}return 0}},{key:"invalidateCellSizeAfterRender",value:function(n){var i=n.columnIndex,o=n.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:o,columnIndex:i})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=n.columnIndex,o=i===void 0?0:i,a=n.rowIndex,l=a===void 0?0:a;this.Grid&&this.Grid.recomputeGridSize({rowIndex:l,columnIndex:o})}},{key:"recomputeRowHeights",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:n,columnIndex:0})}},{key:"scrollToPosition",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:n})}},{key:"scrollToRow",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:n})}},{key:"render",value:function(){var n=this.props,i=n.className,o=n.noRowsRenderer,a=n.scrollToIndex,l=n.width,s=Ze("ReactVirtualized__List",i);return v.createElement(bt,q({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:s,columnWidth:l,columnCount:1,noContentRenderer:o,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:a}))}}])})(v.PureComponent);A(vu,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:du,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});function Xv(e){if(Array.isArray(e))return e}function Zv(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,l=[],s=!0,c=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(s=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(u){c=!0,i=u}finally{try{if(!s&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}function em(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
51
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tm(e,t){return Xv(e)||Zv(e,t)||Fc(e,t)||em()}function rm(e,t,r,n){for(var i=r+1;t<=r;){var o=t+r>>>1,a=e[o];a>=n?(i=o,r=o-1):t=o+1}return i}function nm(e,t,r,n,i){for(var o=r+1;t<=r;){var a=t+r>>>1,l=e[a];i(l,n)>=0?(o=a,r=a-1):t=a+1}return o}function im(e,t,r,n,i){return typeof r=="function"?nm(e,n===void 0?0:n|0,i===void 0?e.length-1:i|0,t,r):rm(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}function om(e,t,r,n){for(var i=r+1;t<=r;){var o=t+r>>>1,a=e[o];a>n?(i=o,r=o-1):t=o+1}return i}function am(e,t,r,n,i){for(var o=r+1;t<=r;){var a=t+r>>>1,l=e[a];i(l,n)>0?(o=a,r=a-1):t=a+1}return o}function lm(e,t,r,n,i){return typeof r=="function"?am(e,n===void 0?0:n|0,i===void 0?e.length-1:i|0,t,r):om(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}function sm(e,t,r,n){for(var i=t-1;t<=r;){var o=t+r>>>1,a=e[o];a<n?(i=o,t=o+1):r=o-1}return i}function cm(e,t,r,n,i){for(var o=t-1;t<=r;){var a=t+r>>>1,l=e[a];i(l,n)<0?(o=a,t=a+1):r=a-1}return o}function um(e,t,r,n,i){return typeof r=="function"?cm(e,n===void 0?0:n|0,i===void 0?e.length-1:i|0,t,r):sm(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}function dm(e,t,r,n){for(var i=t-1;t<=r;){var o=t+r>>>1,a=e[o];a<=n?(i=o,t=o+1):r=o-1}return i}function fm(e,t,r,n,i){for(var o=t-1;t<=r;){var a=t+r>>>1,l=e[a];i(l,n)<=0?(o=a,t=a+1):r=a-1}return o}function pm(e,t,r,n,i){return typeof r=="function"?fm(e,n===void 0?0:n|0,i===void 0?e.length-1:i|0,t,r):dm(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}function hm(e,t,r,n){for(;t<=r;){var i=t+r>>>1,o=e[i];if(o===n)return i;o<=n?t=i+1:r=i-1}return-1}function gm(e,t,r,n,i){for(;t<=r;){var o=t+r>>>1,a=e[o],l=i(a,n);if(l===0)return o;l<=0?t=o+1:r=o-1}return-1}function vm(e,t,r,n,i){return typeof r=="function"?gm(e,n===void 0?0:n|0,i===void 0?e.length-1:i|0,t,r):hm(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}const zn={ge:im,gt:lm,lt:um,le:pm,eq:vm};var Zt=0,Ot=1,_n=2;function Uo(e,t,r,n,i){this.mid=e,this.left=t,this.right=r,this.leftPoints=n,this.rightPoints=i,this.count=(t?t.count:0)+(r?r.count:0)+n.length}var en=Uo.prototype;function xi(e,t){e.mid=t.mid,e.left=t.left,e.right=t.right,e.leftPoints=t.leftPoints,e.rightPoints=t.rightPoints,e.count=t.count}function mu(e,t){var r=Wr(t);e.mid=r.mid,e.left=r.left,e.right=r.right,e.leftPoints=r.leftPoints,e.rightPoints=r.rightPoints,e.count=r.count}function Pl(e,t){var r=e.intervals([]);r.push(t),mu(e,r)}function Ol(e,t){var r=e.intervals([]),n=r.indexOf(t);return n<0?Zt:(r.splice(n,1),mu(e,r),Ot)}en.intervals=function(e){return e.push.apply(e,this.leftPoints),this.left&&this.left.intervals(e),this.right&&this.right.intervals(e),e};en.insert=function(e){var t=this.count-this.leftPoints.length;if(this.count+=1,e[1]<this.mid)this.left?4*(this.left.count+1)>3*(t+1)?Pl(this,e):this.left.insert(e):this.left=Wr([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?Pl(this,e):this.right.insert(e):this.right=Wr([e]);else{var r=zn.ge(this.leftPoints,e,Vo),n=zn.ge(this.rightPoints,e,qo);this.leftPoints.splice(r,0,e),this.rightPoints.splice(n,0,e)}};en.remove=function(e){var t=this.count-this.leftPoints;if(e[1]<this.mid){if(!this.left)return Zt;var r=this.right?this.right.count:0;if(4*r>3*(t-1))return Ol(this,e);var n=this.left.remove(e);return n===_n?(this.left=null,this.count-=1,Ot):(n===Ot&&(this.count-=1),n)}else if(e[0]>this.mid){if(!this.right)return Zt;var i=this.left?this.left.count:0;if(4*i>3*(t-1))return Ol(this,e);var n=this.right.remove(e);return n===_n?(this.right=null,this.count-=1,Ot):(n===Ot&&(this.count-=1),n)}else{if(this.count===1)return this.leftPoints[0]===e?_n:Zt;if(this.leftPoints.length===1&&this.leftPoints[0]===e){if(this.left&&this.right){for(var o=this,a=this.left;a.right;)o=a,a=a.right;if(o===this)a.right=this.right;else{var l=this.left,n=this.right;o.count-=a.count,o.right=a.left,a.left=l,a.right=n}xi(this,a),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?xi(this,this.left):xi(this,this.right);return Ot}for(var l=zn.ge(this.leftPoints,e,Vo);l<this.leftPoints.length&&this.leftPoints[l][0]===e[0];++l)if(this.leftPoints[l]===e){this.count-=1,this.leftPoints.splice(l,1);for(var n=zn.ge(this.rightPoints,e,qo);n<this.rightPoints.length&&this.rightPoints[n][1]===e[1];++n)if(this.rightPoints[n]===e)return this.rightPoints.splice(n,1),Ot}return Zt}};function bu(e,t,r){for(var n=0;n<e.length&&e[n][0]<=t;++n){var i=r(e[n]);if(i)return i}}function yu(e,t,r){for(var n=e.length-1;n>=0&&e[n][1]>=t;--n){var i=r(e[n]);if(i)return i}}function xu(e,t){for(var r=0;r<e.length;++r){var n=t(e[r]);if(n)return n}}en.queryPoint=function(e,t){if(e<this.mid){if(this.left){var r=this.left.queryPoint(e,t);if(r)return r}return bu(this.leftPoints,e,t)}else if(e>this.mid){if(this.right){var r=this.right.queryPoint(e,t);if(r)return r}return yu(this.rightPoints,e,t)}else return xu(this.leftPoints,t)};en.queryInterval=function(e,t,r){if(e<this.mid&&this.left){var n=this.left.queryInterval(e,t,r);if(n)return n}if(t>this.mid&&this.right){var n=this.right.queryInterval(e,t,r);if(n)return n}return t<this.mid?bu(this.leftPoints,t,r):e>this.mid?yu(this.rightPoints,e,r):xu(this.leftPoints,r)};function mm(e,t){return e-t}function Vo(e,t){var r=e[0]-t[0];return r||e[1]-t[1]}function qo(e,t){var r=e[1]-t[1];return r||e[0]-t[0]}function Wr(e){if(e.length===0)return null;for(var t=[],r=0;r<e.length;++r)t.push(e[r][0],e[r][1]);t.sort(mm);for(var n=t[t.length>>1],i=[],o=[],a=[],r=0;r<e.length;++r){var l=e[r];l[1]<n?i.push(l):n<l[0]?o.push(l):a.push(l)}var s=a,c=a.slice();return s.sort(Vo),c.sort(qo),new Uo(n,Wr(i),Wr(o),s,c)}function Su(e){this.root=e}var fr=Su.prototype;fr.insert=function(e){this.root?this.root.insert(e):this.root=new Uo(e[0],null,null,[e],[e])};fr.remove=function(e){if(this.root){var t=this.root.remove(e);return t===_n&&(this.root=null),t!==Zt}return!1};fr.queryPoint=function(e,t){if(this.root)return this.root.queryPoint(e,t)};fr.queryInterval=function(e,t,r){if(e<=t&&this.root)return this.root.queryInterval(e,t,r)};Object.defineProperty(fr,"count",{get:function(){return this.root?this.root.count:0}});Object.defineProperty(fr,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});function bm(e){return new Su(null)}var Si=(function(){function e(){Ce(this,e),A(this,"_columnSizeMap",{}),A(this,"_intervalTree",bm()),A(this,"_leftMap",{})}return Se(e,[{key:"estimateTotalHeight",value:function(r,n,i){var o=r-this.count;return this.tallestColumnSize+Math.ceil(o/n)*i}},{key:"range",value:function(r,n,i){var o=this;this._intervalTree.queryInterval(r,r+n,function(a){var l=tm(a,3),s=l[0];l[1];var c=l[2];return i(c,o._leftMap[c],s)})}},{key:"setPosition",value:function(r,n,i,o){this._intervalTree.insert([i,i+o,r]),this._leftMap[r]=n;var a=this._columnSizeMap,l=a[n];l===void 0?a[n]=i+o:a[n]=Math.max(l,i+o)}},{key:"count",get:function(){return this._intervalTree.count}},{key:"shortestColumnSize",get:function(){var r=this._columnSizeMap,n=0;for(var i in r){var o=r[i];n=n===0?o:Math.min(n,o)}return n}},{key:"tallestColumnSize",get:function(){var r=this._columnSizeMap,n=0;for(var i in r){var o=r[i];n=Math.max(n,o)}return n}}])})();function Nl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ym(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Nl(Object(r),!0).forEach(function(n){A(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xm(e,t,r){return t=pe(t),Be(e,wu()?Reflect.construct(t,r||[],pe(e).constructor):t.apply(e,r))}function wu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(wu=function(){return!!e})()}var Sm={},wm=150,Cu=(function(e){function t(){var r;Ce(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=xm(this,t,[].concat(i)),A(r,"state",{isScrolling:!1,scrollTop:0}),A(r,"_debounceResetIsScrollingId",void 0),A(r,"_invalidateOnUpdateStartIndex",null),A(r,"_invalidateOnUpdateStopIndex",null),A(r,"_positionCache",new Si),A(r,"_startIndex",null),A(r,"_startIndexMemoized",null),A(r,"_stopIndex",null),A(r,"_stopIndexMemoized",null),A(r,"_debounceResetIsScrollingCallback",function(){r.setState({isScrolling:!1})}),A(r,"_setScrollingContainerRef",function(a){r._scrollingContainer=a}),A(r,"_onScroll",function(a){var l=r.props.height,s=a.currentTarget.scrollTop,c=Math.min(Math.max(0,r._getEstimatedTotalHeight()-l),s);s===c&&(r._debounceResetIsScrolling(),r.state.scrollTop!==c&&r.setState({isScrolling:!0,scrollTop:c}))}),r}return Fe(t,e),Se(t,[{key:"clearCellPositions",value:function(){this._positionCache=new Si,this.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(n){var i=n.rowIndex;this._invalidateOnUpdateStartIndex===null?(this._invalidateOnUpdateStartIndex=i,this._invalidateOnUpdateStopIndex=i):(this._invalidateOnUpdateStartIndex=Math.min(this._invalidateOnUpdateStartIndex,i),this._invalidateOnUpdateStopIndex=Math.max(this._invalidateOnUpdateStopIndex,i))}},{key:"recomputeCellPositions",value:function(){var n=this._positionCache.count-1;this._positionCache=new Si,this._populatePositionCache(0,n),this.forceUpdate()}},{key:"componentDidMount",value:function(){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback()}},{key:"componentDidUpdate",value:function(n,i){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback(),this.props.scrollTop!==n.scrollTop&&this._debounceResetIsScrolling()}},{key:"componentWillUnmount",value:function(){this._debounceResetIsScrollingId&&ar(this._debounceResetIsScrollingId)}},{key:"render",value:function(){var n=this,i=this.props,o=i.autoHeight,a=i.cellCount,l=i.cellMeasurerCache,s=i.cellRenderer,c=i.className,u=i.height,d=i.id,f=i.keyMapper,p=i.overscanByPixels,h=i.role,m=i.style,b=i.tabIndex,y=i.width,x=i.rowDirection,_=this.state,T=_.isScrolling,k=_.scrollTop,C=[],D=this._getEstimatedTotalHeight(),w=this._positionCache.shortestColumnSize,R=this._positionCache.count,I=0,P;if(this._positionCache.range(Math.max(0,k-p),u+p*2,function(G,z,F){typeof P>"u"?(I=G,P=G):(I=Math.min(I,G),P=Math.max(P,G)),C.push(s({index:G,isScrolling:T,key:f(G),parent:n,style:A(A(A(A({height:l.getHeight(G)},x==="ltr"?"left":"right",z),"position","absolute"),"top",F),"width",l.getWidth(G))}))}),w<k+u+p&&R<a)for(var L=Math.min(a-R,Math.ceil((k+u+p-w)/l.defaultHeight*y/l.defaultWidth)),N=R;N<R+L;N++)P=N,C.push(s({index:N,isScrolling:T,key:f(N),parent:this,style:{width:l.getWidth(N)}}));return this._startIndex=I,this._stopIndex=P,v.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:Ze("ReactVirtualized__Masonry",c),id:d,onScroll:this._onScroll,role:h,style:ym({boxSizing:"border-box",direction:"ltr",height:o?"auto":u,overflowX:"hidden",overflowY:D<u?"hidden":"auto",position:"relative",width:y,WebkitOverflowScrolling:"touch",willChange:"transform"},m),tabIndex:b},v.createElement("div",{className:"ReactVirtualized__Masonry__innerScrollContainer",style:{width:"100%",height:D,maxWidth:"100%",maxHeight:D,overflow:"hidden",pointerEvents:T?"none":"",position:"relative"}},C))}},{key:"_checkInvalidateOnUpdate",value:function(){if(typeof this._invalidateOnUpdateStartIndex=="number"){var n=this._invalidateOnUpdateStartIndex,i=this._invalidateOnUpdateStopIndex;this._invalidateOnUpdateStartIndex=null,this._invalidateOnUpdateStopIndex=null,this._populatePositionCache(n,i),this.forceUpdate()}}},{key:"_debounceResetIsScrolling",value:function(){var n=this.props.scrollingResetTimeInterval;this._debounceResetIsScrollingId&&ar(this._debounceResetIsScrollingId),this._debounceResetIsScrollingId=Ho(this._debounceResetIsScrollingCallback,n)}},{key:"_getEstimatedTotalHeight",value:function(){var n=this.props,i=n.cellCount,o=n.cellMeasurerCache,a=n.width,l=Math.max(1,Math.floor(a/o.defaultWidth));return this._positionCache.estimateTotalHeight(i,l,o.defaultHeight)}},{key:"_invokeOnScrollCallback",value:function(){var n=this.props,i=n.height,o=n.onScroll,a=this.state.scrollTop;this._onScrollMemoized!==a&&(o({clientHeight:i,scrollHeight:this._getEstimatedTotalHeight(),scrollTop:a}),this._onScrollMemoized=a)}},{key:"_invokeOnCellsRenderedCallback",value:function(){if(this._startIndexMemoized!==this._startIndex||this._stopIndexMemoized!==this._stopIndex){var n=this.props.onCellsRendered;n({startIndex:this._startIndex,stopIndex:this._stopIndex}),this._startIndexMemoized=this._startIndex,this._stopIndexMemoized=this._stopIndex}}},{key:"_populatePositionCache",value:function(n,i){for(var o=this.props,a=o.cellMeasurerCache,l=o.cellPositioner,s=n;s<=i;s++){var c=l(s),u=c.left,d=c.top;this._positionCache.setPosition(s,u,d,a.getHeight(s))}}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.scrollTop!==void 0&&i.scrollTop!==n.scrollTop?{isScrolling:!0,scrollTop:n.scrollTop}:null}}])})(v.PureComponent);A(Cu,"defaultProps",{autoHeight:!1,keyMapper:Cm,onCellsRendered:Al,onScroll:Al,overscanByPixels:20,role:"grid",scrollingResetTimeInterval:wm,style:Sm,tabIndex:0,rowDirection:"ltr"});function Cm(e){return e}function Al(){}Zr(Cu);var wi=(function(){function e(){var t=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ce(this,e),A(this,"_cellMeasurerCache",void 0),A(this,"_columnIndexOffset",void 0),A(this,"_rowIndexOffset",void 0),A(this,"columnWidth",function(s){var c=s.index;t._cellMeasurerCache.columnWidth({index:c+t._columnIndexOffset})}),A(this,"rowHeight",function(s){var c=s.index;t._cellMeasurerCache.rowHeight({index:c+t._rowIndexOffset})});var n=r.cellMeasurerCache,i=r.columnIndexOffset,o=i===void 0?0:i,a=r.rowIndexOffset,l=a===void 0?0:a;this._cellMeasurerCache=n,this._columnIndexOffset=o,this._rowIndexOffset=l}return Se(e,[{key:"clear",value:function(r,n){this._cellMeasurerCache.clear(r+this._rowIndexOffset,n+this._columnIndexOffset)}},{key:"clearAll",value:function(){this._cellMeasurerCache.clearAll()}},{key:"defaultHeight",get:function(){return this._cellMeasurerCache.defaultHeight}},{key:"defaultWidth",get:function(){return this._cellMeasurerCache.defaultWidth}},{key:"hasFixedHeight",value:function(){return this._cellMeasurerCache.hasFixedHeight()}},{key:"hasFixedWidth",value:function(){return this._cellMeasurerCache.hasFixedWidth()}},{key:"getHeight",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this._cellMeasurerCache.getHeight(r+this._rowIndexOffset,n+this._columnIndexOffset)}},{key:"getWidth",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this._cellMeasurerCache.getWidth(r+this._rowIndexOffset,n+this._columnIndexOffset)}},{key:"has",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this._cellMeasurerCache.has(r+this._rowIndexOffset,n+this._columnIndexOffset)}},{key:"set",value:function(r,n,i,o){this._cellMeasurerCache.set(r+this._rowIndexOffset,n+this._columnIndexOffset,i,o)}}])})(),Im=["rowIndex"],Rm=["columnIndex","rowIndex"],_m=["columnIndex"],Dm=["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"];function Ml(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ve(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ml(Object(r),!0).forEach(function(n){A(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ml(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Tm(e,t,r){return t=pe(t),Be(e,Iu()?Reflect.construct(t,r||[],pe(e).constructor):t.apply(e,r))}function Iu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Iu=function(){return!!e})()}var Ll=20,Ko=(function(e){function t(r,n){var i;Ce(this,t),i=Tm(this,t,[r,n]),A(i,"state",{scrollLeft:0,scrollTop:0,scrollbarSize:0,showHorizontalScrollbar:!1,showVerticalScrollbar:!1}),A(i,"_deferredInvalidateColumnIndex",null),A(i,"_deferredInvalidateRowIndex",null),A(i,"_bottomLeftGridRef",function(s){i._bottomLeftGrid=s}),A(i,"_bottomRightGridRef",function(s){i._bottomRightGrid=s}),A(i,"_cellRendererBottomLeftGrid",function(s){var c=s.rowIndex,u=Xt(s,Im),d=i.props,f=d.cellRenderer,p=d.fixedRowCount,h=d.rowCount;return c===h-p?v.createElement("div",{key:u.key,style:ve(ve({},u.style),{},{height:Ll})}):f(ve(ve({},u),{},{parent:i,rowIndex:c+p}))}),A(i,"_cellRendererBottomRightGrid",function(s){var c=s.columnIndex,u=s.rowIndex,d=Xt(s,Rm),f=i.props,p=f.cellRenderer,h=f.fixedColumnCount,m=f.fixedRowCount;return p(ve(ve({},d),{},{columnIndex:c+h,parent:i,rowIndex:u+m}))}),A(i,"_cellRendererTopRightGrid",function(s){var c=s.columnIndex,u=Xt(s,_m),d=i.props,f=d.cellRenderer,p=d.columnCount,h=d.fixedColumnCount;return c===p-h?v.createElement("div",{key:u.key,style:ve(ve({},u.style),{},{width:Ll})}):f(ve(ve({},u),{},{columnIndex:c+h,parent:i}))}),A(i,"_columnWidthRightGrid",function(s){var c=s.index,u=i.props,d=u.columnCount,f=u.fixedColumnCount,p=u.columnWidth,h=i.state,m=h.scrollbarSize,b=h.showHorizontalScrollbar;return b&&c===d-f?m:typeof p=="function"?p({index:c+f}):p}),A(i,"_onScroll",function(s){var c=s.scrollLeft,u=s.scrollTop;i.setState({scrollLeft:c,scrollTop:u});var d=i.props.onScroll;d&&d(s)}),A(i,"_onScrollbarPresenceChange",function(s){var c=s.horizontal,u=s.size,d=s.vertical,f=i.state,p=f.showHorizontalScrollbar,h=f.showVerticalScrollbar;if(c!==p||d!==h){i.setState({scrollbarSize:u,showHorizontalScrollbar:c,showVerticalScrollbar:d});var m=i.props.onScrollbarPresenceChange;typeof m=="function"&&m({horizontal:c,size:u,vertical:d})}}),A(i,"_onScrollLeft",function(s){var c=s.scrollLeft;i._onScroll({scrollLeft:c,scrollTop:i.state.scrollTop})}),A(i,"_onScrollTop",function(s){var c=s.scrollTop;i._onScroll({scrollTop:c,scrollLeft:i.state.scrollLeft})}),A(i,"_rowHeightBottomGrid",function(s){var c=s.index,u=i.props,d=u.fixedRowCount,f=u.rowCount,p=u.rowHeight,h=i.state,m=h.scrollbarSize,b=h.showVerticalScrollbar;return b&&c===f-d?m:typeof p=="function"?p({index:c+d}):p}),A(i,"_topLeftGridRef",function(s){i._topLeftGrid=s}),A(i,"_topRightGridRef",function(s){i._topRightGrid=s});var o=r.deferredMeasurementCache,a=r.fixedColumnCount,l=r.fixedRowCount;return i._maybeCalculateCachedStyles(!0),o&&(i._deferredMeasurementCacheBottomLeftGrid=l>0?new wi({cellMeasurerCache:o,columnIndexOffset:0,rowIndexOffset:l}):o,i._deferredMeasurementCacheBottomRightGrid=a>0||l>0?new wi({cellMeasurerCache:o,columnIndexOffset:a,rowIndexOffset:l}):o,i._deferredMeasurementCacheTopRightGrid=a>0?new wi({cellMeasurerCache:o,columnIndexOffset:a,rowIndexOffset:0}):o),i}return Fe(t,e),Se(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=n.columnIndex,o=i===void 0?0:i,a=n.rowIndex,l=a===void 0?0:a;this._deferredInvalidateColumnIndex=typeof this._deferredInvalidateColumnIndex=="number"?Math.min(this._deferredInvalidateColumnIndex,o):o,this._deferredInvalidateRowIndex=typeof this._deferredInvalidateRowIndex=="number"?Math.min(this._deferredInvalidateRowIndex,l):l}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=n.columnIndex,o=i===void 0?0:i,a=n.rowIndex,l=a===void 0?0:a,s=this.props,c=s.fixedColumnCount,u=s.fixedRowCount,d=Math.max(0,o-c),f=Math.max(0,l-u);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:o,rowIndex:f}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:d,rowIndex:f}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:o,rowIndex:l}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:d,rowIndex:l}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(!0)}},{key:"componentDidMount",value:function(){var n=this.props,i=n.scrollLeft,o=n.scrollTop;if(i>0||o>0){var a={};i>0&&(a.scrollLeft=i),o>0&&(a.scrollTop=o),this.setState(a)}this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(){this._handleInvalidatedGridSize()}},{key:"render",value:function(){var n=this.props,i=n.onScroll,o=n.onSectionRendered;n.onScrollbarPresenceChange,n.scrollLeft;var a=n.scrollToColumn;n.scrollTop;var l=n.scrollToRow,s=Xt(n,Dm);if(this._prepareForRender(),this.props.width===0||this.props.height===0)return null;var c=this.state,u=c.scrollLeft,d=c.scrollTop;return v.createElement("div",{style:this._containerOuterStyle},v.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(s),this._renderTopRightGrid(ve(ve({},s),{},{onScroll:i,scrollLeft:u}))),v.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(ve(ve({},s),{},{onScroll:i,scrollTop:d})),this._renderBottomRightGrid(ve(ve({},s),{},{onScroll:i,onSectionRendered:o,scrollLeft:u,scrollToColumn:a,scrollToRow:l,scrollTop:d}))))}},{key:"_getBottomGridHeight",value:function(n){var i=n.height,o=this._getTopGridHeight(n);return i-o}},{key:"_getLeftGridWidth",value:function(n){var i=n.fixedColumnCount,o=n.columnWidth;if(this._leftGridWidth==null)if(typeof o=="function"){for(var a=0,l=0;l<i;l++)a+=o({index:l});this._leftGridWidth=a}else this._leftGridWidth=o*i;return this._leftGridWidth}},{key:"_getRightGridWidth",value:function(n){var i=n.width,o=this._getLeftGridWidth(n);return i-o}},{key:"_getTopGridHeight",value:function(n){var i=n.fixedRowCount,o=n.rowHeight;if(this._topGridHeight==null)if(typeof o=="function"){for(var a=0,l=0;l<i;l++)a+=o({index:l});this._topGridHeight=a}else this._topGridHeight=o*i;return this._topGridHeight}},{key:"_handleInvalidatedGridSize",value:function(){if(typeof this._deferredInvalidateColumnIndex=="number"){var n=this._deferredInvalidateColumnIndex,i=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:n,rowIndex:i}),this.forceUpdate()}}},{key:"_maybeCalculateCachedStyles",value:function(n){var i=this.props,o=i.columnWidth,a=i.enableFixedColumnScroll,l=i.enableFixedRowScroll,s=i.height,c=i.fixedColumnCount,u=i.fixedRowCount,d=i.rowHeight,f=i.style,p=i.styleBottomLeftGrid,h=i.styleBottomRightGrid,m=i.styleTopLeftGrid,b=i.styleTopRightGrid,y=i.width,x=n||s!==this._lastRenderedHeight||y!==this._lastRenderedWidth,_=n||o!==this._lastRenderedColumnWidth||c!==this._lastRenderedFixedColumnCount,T=n||u!==this._lastRenderedFixedRowCount||d!==this._lastRenderedRowHeight;(n||x||f!==this._lastRenderedStyle)&&(this._containerOuterStyle=ve({height:s,overflow:"visible",width:y},f)),(n||x||T)&&(this._containerTopStyle={height:this._getTopGridHeight(this.props),position:"relative",width:y},this._containerBottomStyle={height:s-this._getTopGridHeight(this.props),overflow:"visible",position:"relative",width:y}),(n||p!==this._lastRenderedStyleBottomLeftGrid)&&(this._bottomLeftGridStyle=ve({left:0,overflowX:"hidden",overflowY:a?"auto":"hidden",position:"absolute"},p)),(n||_||h!==this._lastRenderedStyleBottomRightGrid)&&(this._bottomRightGridStyle=ve({left:this._getLeftGridWidth(this.props),position:"absolute"},h)),(n||m!==this._lastRenderedStyleTopLeftGrid)&&(this._topLeftGridStyle=ve({left:0,overflowX:"hidden",overflowY:"hidden",position:"absolute",top:0},m)),(n||_||b!==this._lastRenderedStyleTopRightGrid)&&(this._topRightGridStyle=ve({left:this._getLeftGridWidth(this.props),overflowX:l?"auto":"hidden",overflowY:"hidden",position:"absolute",top:0},b)),this._lastRenderedColumnWidth=o,this._lastRenderedFixedColumnCount=c,this._lastRenderedFixedRowCount=u,this._lastRenderedHeight=s,this._lastRenderedRowHeight=d,this._lastRenderedStyle=f,this._lastRenderedStyleBottomLeftGrid=p,this._lastRenderedStyleBottomRightGrid=h,this._lastRenderedStyleTopLeftGrid=m,this._lastRenderedStyleTopRightGrid=b,this._lastRenderedWidth=y}},{key:"_prepareForRender",value:function(){(this._lastRenderedColumnWidth!==this.props.columnWidth||this._lastRenderedFixedColumnCount!==this.props.fixedColumnCount)&&(this._leftGridWidth=null),(this._lastRenderedFixedRowCount!==this.props.fixedRowCount||this._lastRenderedRowHeight!==this.props.rowHeight)&&(this._topGridHeight=null),this._maybeCalculateCachedStyles(),this._lastRenderedColumnWidth=this.props.columnWidth,this._lastRenderedFixedColumnCount=this.props.fixedColumnCount,this._lastRenderedFixedRowCount=this.props.fixedRowCount,this._lastRenderedRowHeight=this.props.rowHeight}},{key:"_renderBottomLeftGrid",value:function(n){var i=n.enableFixedColumnScroll,o=n.fixedColumnCount,a=n.fixedRowCount,l=n.rowCount,s=n.hideBottomLeftGridScrollbar,c=this.state.showVerticalScrollbar;if(!o)return null;var u=c?1:0,d=this._getBottomGridHeight(n),f=this._getLeftGridWidth(n),p=this.state.showVerticalScrollbar?this.state.scrollbarSize:0,h=s?f+p:f,m=v.createElement(bt,q({},n,{cellRenderer:this._cellRendererBottomLeftGrid,className:this.props.classNameBottomLeftGrid,columnCount:o,deferredMeasurementCache:this._deferredMeasurementCacheBottomLeftGrid,height:d,onScroll:i?this._onScrollTop:void 0,ref:this._bottomLeftGridRef,rowCount:Math.max(0,l-a)+u,rowHeight:this._rowHeightBottomGrid,style:this._bottomLeftGridStyle,tabIndex:null,width:h}));return s?v.createElement("div",{className:"BottomLeftGrid_ScrollWrapper",style:ve(ve({},this._bottomLeftGridStyle),{},{height:d,width:f,overflowY:"hidden"})},m):m}},{key:"_renderBottomRightGrid",value:function(n){var i=n.columnCount,o=n.fixedColumnCount,a=n.fixedRowCount,l=n.rowCount,s=n.scrollToColumn,c=n.scrollToRow;return v.createElement(bt,q({},n,{cellRenderer:this._cellRendererBottomRightGrid,className:this.props.classNameBottomRightGrid,columnCount:Math.max(0,i-o),columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheBottomRightGrid,height:this._getBottomGridHeight(n),onScroll:this._onScroll,onScrollbarPresenceChange:this._onScrollbarPresenceChange,ref:this._bottomRightGridRef,rowCount:Math.max(0,l-a),rowHeight:this._rowHeightBottomGrid,scrollToColumn:s-o,scrollToRow:c-a,style:this._bottomRightGridStyle,width:this._getRightGridWidth(n)}))}},{key:"_renderTopLeftGrid",value:function(n){var i=n.fixedColumnCount,o=n.fixedRowCount;return!i||!o?null:v.createElement(bt,q({},n,{className:this.props.classNameTopLeftGrid,columnCount:i,height:this._getTopGridHeight(n),ref:this._topLeftGridRef,rowCount:o,style:this._topLeftGridStyle,tabIndex:null,width:this._getLeftGridWidth(n)}))}},{key:"_renderTopRightGrid",value:function(n){var i=n.columnCount,o=n.enableFixedRowScroll,a=n.fixedColumnCount,l=n.fixedRowCount,s=n.scrollLeft,c=n.hideTopRightGridScrollbar,u=this.state,d=u.showHorizontalScrollbar,f=u.scrollbarSize;if(!l)return null;var p=d?1:0,h=this._getTopGridHeight(n),m=this._getRightGridWidth(n),b=d?f:0,y=h,x=this._topRightGridStyle;c&&(y=h+b,x=ve(ve({},this._topRightGridStyle),{},{left:0}));var _=v.createElement(bt,q({},n,{cellRenderer:this._cellRendererTopRightGrid,className:this.props.classNameTopRightGrid,columnCount:Math.max(0,i-a)+p,columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheTopRightGrid,height:y,onScroll:o?this._onScrollLeft:void 0,ref:this._topRightGridRef,rowCount:l,scrollLeft:s,style:x,tabIndex:null,width:m}));return c?v.createElement("div",{className:"TopRightGrid_ScrollWrapper",style:ve(ve({},this._topRightGridStyle),{},{height:h,width:m,overflowX:"hidden"})},_):_}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.scrollLeft!==i.scrollLeft||n.scrollTop!==i.scrollTop?{scrollLeft:n.scrollLeft!=null&&n.scrollLeft>=0?n.scrollLeft:i.scrollLeft,scrollTop:n.scrollTop!=null&&n.scrollTop>=0?n.scrollTop:i.scrollTop}:null}}])})(v.PureComponent);A(Ko,"defaultProps",{classNameBottomLeftGrid:"",classNameBottomRightGrid:"",classNameTopLeftGrid:"",classNameTopRightGrid:"",enableFixedColumnScroll:!1,enableFixedRowScroll:!1,fixedColumnCount:0,fixedRowCount:0,scrollToColumn:-1,scrollToRow:-1,style:{},styleBottomLeftGrid:{},styleBottomRightGrid:{},styleTopLeftGrid:{},styleTopRightGrid:{},hideTopRightGridScrollbar:!1,hideBottomLeftGridScrollbar:!1});Ko.propTypes={};Zr(Ko);function km(e,t,r){return t=pe(t),Be(e,Ru()?Reflect.construct(t,r||[],pe(e).constructor):t.apply(e,r))}function Ru(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ru=function(){return!!e})()}var Em=(function(e){function t(r,n){var i;return Ce(this,t),i=km(this,t,[r,n]),i.state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},i._onScroll=i._onScroll.bind(i),i}return Fe(t,e),Se(t,[{key:"render",value:function(){var n=this.props.children,i=this.state,o=i.clientHeight,a=i.clientWidth,l=i.scrollHeight,s=i.scrollLeft,c=i.scrollTop,u=i.scrollWidth;return n({clientHeight:o,clientWidth:a,onScroll:this._onScroll,scrollHeight:l,scrollLeft:s,scrollTop:c,scrollWidth:u})}},{key:"_onScroll",value:function(n){var i=n.clientHeight,o=n.clientWidth,a=n.scrollHeight,l=n.scrollLeft,s=n.scrollTop,c=n.scrollWidth;this.setState({clientHeight:i,clientWidth:o,scrollHeight:a,scrollLeft:l,scrollTop:s,scrollWidth:c})}}])})(v.PureComponent);Em.propTypes={};function Pm(e){var t=e.dataKey,r=e.rowData;return typeof r.get=="function"?r.get(t):r[t]}function Om(e){var t=e.cellData;return t==null?"":String(t)}function Nm(e){var t=e.className,r=e.columns,n=e.style;return v.createElement("div",{className:t,role:"row",style:n},r)}var yt={ASC:"ASC",DESC:"DESC"};function _u(e){var t=e.sortDirection,r=Ze("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":t===yt.ASC,"ReactVirtualized__Table__sortableHeaderIcon--DESC":t===yt.DESC});return v.createElement("svg",{className:r,width:18,height:18,viewBox:"0 0 24 24"},t===yt.ASC?v.createElement("path",{d:"M7 14l5-5 5 5z"}):v.createElement("path",{d:"M7 10l5 5 5-5z"}),v.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}_u.propTypes={};function Am(e){var t=e.dataKey,r=e.label,n=e.sortBy,i=e.sortDirection,o=n===t,a=[v.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:typeof r=="string"?r:null},r)];return o&&a.push(v.createElement(_u,{key:"SortIndicator",sortDirection:i})),a}function Mm(e){var t=e.className,r=e.columns,n=e.index,i=e.key,o=e.onRowClick,a=e.onRowDoubleClick,l=e.onRowMouseOut,s=e.onRowMouseOver,c=e.onRowRightClick,u=e.rowData,d=e.style,f={"aria-rowindex":n+1};return(o||a||l||s||c)&&(f["aria-label"]="row",f.tabIndex=0,o&&(f.onClick=function(p){return o({event:p,index:n,rowData:u})}),a&&(f.onDoubleClick=function(p){return a({event:p,index:n,rowData:u})}),l&&(f.onMouseOut=function(p){return l({event:p,index:n,rowData:u})}),s&&(f.onMouseOver=function(p){return s({event:p,index:n,rowData:u})}),c&&(f.onContextMenu=function(p){return c({event:p,index:n,rowData:u})})),v.createElement("div",q({},f,{className:t,key:i,role:"row",style:d}),r)}function Lm(e,t,r){return t=pe(t),Be(e,Du()?Reflect.construct(t,r||[],pe(e).constructor):t.apply(e,r))}function Du(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Du=function(){return!!e})()}var Yo=(function(e){function t(){return Ce(this,t),Lm(this,t,arguments)}return Fe(t,e),Se(t)})(v.Component);A(Yo,"defaultProps",{cellDataGetter:Pm,cellRenderer:Om,defaultSortDirection:yt.ASC,flexGrow:0,flexShrink:1,headerRenderer:Am,style:{}});Yo.propTypes={};function zl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function rt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zl(Object(r),!0).forEach(function(n){A(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zm(e,t,r){return t=pe(t),Be(e,Tu()?Reflect.construct(t,r||[],pe(e).constructor):t.apply(e,r))}function Tu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Tu=function(){return!!e})()}var ku=(function(e){function t(r){var n;return Ce(this,t),n=zm(this,t,[r]),n.state={scrollbarWidth:0},n._createColumn=n._createColumn.bind(n),n._createRow=n._createRow.bind(n),n._onScroll=n._onScroll.bind(n),n._onSectionRendered=n._onSectionRendered.bind(n),n._setRef=n._setRef.bind(n),n._setGridElementRef=n._setGridElementRef.bind(n),n}return Fe(t,e),Se(t,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(n){var i=n.alignment,o=n.index;if(this.Grid){var a=this.Grid.getOffsetForCell({alignment:i,rowIndex:o}),l=a.scrollTop;return l}return 0}},{key:"invalidateCellSizeAfterRender",value:function(n){var i=n.columnIndex,o=n.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:o,columnIndex:i})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=n.columnIndex,o=i===void 0?0:i,a=n.rowIndex,l=a===void 0?0:a;this.Grid&&this.Grid.recomputeGridSize({rowIndex:l,columnIndex:o})}},{key:"recomputeRowHeights",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:n})}},{key:"scrollToPosition",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:n})}},{key:"scrollToRow",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:n})}},{key:"getScrollbarWidth",value:function(){if(this.GridElement){var n=this.GridElement,i=n.clientWidth||0,o=n.offsetWidth||0;return o-i}return 0}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var n=this,i=this.props,o=i.children,a=i.className,l=i.disableHeader,s=i.gridClassName,c=i.gridStyle,u=i.headerHeight,d=i.headerRowRenderer,f=i.height,p=i.id,h=i.noRowsRenderer,m=i.rowClassName,b=i.rowStyle,y=i.scrollToIndex,x=i.style,_=i.width,T=this.state.scrollbarWidth,k=l?f:f-u,C=typeof m=="function"?m({index:-1}):m,D=typeof b=="function"?b({index:-1}):b;return this._cachedColumnStyles=[],v.Children.toArray(o).forEach(function(w,R){var I=n._getFlexStyleForColumn(w,w.props.style||Yo.defaultProps.style);n._cachedColumnStyles[R]=rt({overflow:"hidden"},I)}),v.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":v.Children.toArray(o).length,"aria-rowcount":this.props.rowCount,className:Ze("ReactVirtualized__Table",a),id:p,role:"grid",style:x},!l&&d({className:Ze("ReactVirtualized__Table__headerRow",C),columns:this._getHeaderColumns(),style:rt({height:u,overflow:"hidden",paddingRight:T,width:_},D)}),v.createElement(bt,q({},this.props,{elementRef:this._setGridElementRef,"aria-readonly":null,autoContainerWidth:!0,className:Ze("ReactVirtualized__Table__Grid",s),cellRenderer:this._createRow,columnWidth:_,columnCount:1,height:k,id:void 0,noContentRenderer:h,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:T,scrollToRow:y,style:rt(rt({},c),{},{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(n){var i=n.column,o=n.columnIndex,a=n.isScrolling,l=n.parent,s=n.rowData,c=n.rowIndex,u=this.props.onColumnClick,d=i.props,f=d.cellDataGetter,p=d.cellRenderer,h=d.className,m=d.columnData,b=d.dataKey,y=d.id,x=f({columnData:m,dataKey:b,rowData:s}),_=p({cellData:x,columnData:m,columnIndex:o,dataKey:b,isScrolling:a,parent:l,rowData:s,rowIndex:c}),T=function(w){u&&u({columnData:m,dataKey:b,event:w})},k=this._cachedColumnStyles[o],C=typeof _=="string"?_:null;return v.createElement("div",{"aria-colindex":o+1,"aria-describedby":y,className:Ze("ReactVirtualized__Table__rowColumn",h),key:"Row"+c+"-Col"+o,onClick:T,role:"gridcell",style:k,title:C},_)}},{key:"_createHeader",value:function(n){var i=n.column,o=n.index,a=this.props,l=a.headerClassName,s=a.headerStyle,c=a.onHeaderClick,u=a.sort,d=a.sortBy,f=a.sortDirection,p=i.props,h=p.columnData,m=p.dataKey,b=p.defaultSortDirection,y=p.disableSort,x=p.headerRenderer,_=p.id,T=p.label,k=!y&&u,C=Ze("ReactVirtualized__Table__headerColumn",l,i.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:k}),D=this._getFlexStyleForColumn(i,rt(rt({},s),i.props.headerStyle)),w=x({columnData:h,dataKey:m,disableSort:y,label:T,sortBy:d,sortDirection:f}),R,I,P,L,N;if(k||c){var G=d!==m,z=G?b:f===yt.DESC?yt.ASC:yt.DESC,F=function(J){k&&u({defaultSortDirection:b,event:J,sortBy:m,sortDirection:z}),c&&c({columnData:h,dataKey:m,event:J})},W=function(J){(J.key==="Enter"||J.key===" ")&&F(J)};N=i.props["aria-label"]||T||m,L="none",P=0,R=F,I=W}return d===m&&(L=f===yt.ASC?"ascending":"descending"),v.createElement("div",{"aria-label":N,"aria-sort":L,className:C,id:_,key:"Header-Col"+o,onClick:R,onKeyDown:I,role:"columnheader",style:D,tabIndex:P},w)}},{key:"_createRow",value:function(n){var i=this,o=n.rowIndex,a=n.isScrolling,l=n.key,s=n.parent,c=n.style,u=this.props,d=u.children,f=u.onRowClick,p=u.onRowDoubleClick,h=u.onRowRightClick,m=u.onRowMouseOver,b=u.onRowMouseOut,y=u.rowClassName,x=u.rowGetter,_=u.rowRenderer,T=u.rowStyle,k=this.state.scrollbarWidth,C=typeof y=="function"?y({index:o}):y,D=typeof T=="function"?T({index:o}):T,w=x({index:o}),R=v.Children.toArray(d).map(function(L,N){return i._createColumn({column:L,columnIndex:N,isScrolling:a,parent:s,rowData:w,rowIndex:o,scrollbarWidth:k})}),I=Ze("ReactVirtualized__Table__row",C),P=rt(rt({},c),{},{height:this._getRowHeight(o),overflow:"hidden",paddingRight:k},D);return _({className:I,columns:R,index:o,isScrolling:a,key:l,onRowClick:f,onRowDoubleClick:p,onRowRightClick:h,onRowMouseOver:m,onRowMouseOut:b,rowData:w,style:P})}},{key:"_getFlexStyleForColumn",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o="".concat(n.props.flexGrow," ").concat(n.props.flexShrink," ").concat(n.props.width,"px"),a=rt(rt({},i),{},{flex:o,msFlex:o,WebkitFlex:o});return n.props.maxWidth&&(a.maxWidth=n.props.maxWidth),n.props.minWidth&&(a.minWidth=n.props.minWidth),a}},{key:"_getHeaderColumns",value:function(){var n=this,i=this.props,o=i.children,a=i.disableHeader,l=a?[]:v.Children.toArray(o);return l.map(function(s,c){return n._createHeader({column:s,index:c})})}},{key:"_getRowHeight",value:function(n){var i=this.props.rowHeight;return typeof i=="function"?i({index:n}):i}},{key:"_onScroll",value:function(n){var i=n.clientHeight,o=n.scrollHeight,a=n.scrollTop,l=this.props.onScroll;l({clientHeight:i,scrollHeight:o,scrollTop:a})}},{key:"_onSectionRendered",value:function(n){var i=n.rowOverscanStartIndex,o=n.rowOverscanStopIndex,a=n.rowStartIndex,l=n.rowStopIndex,s=this.props.onRowsRendered;s({overscanStartIndex:i,overscanStopIndex:o,startIndex:a,stopIndex:l})}},{key:"_setRef",value:function(n){this.Grid=n}},{key:"_setGridElementRef",value:function(n){this.GridElement=n}},{key:"_setScrollbarWidth",value:function(){var n=this.getScrollbarWidth();this.setState({scrollbarWidth:n})}}])})(v.PureComponent);A(ku,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:du,overscanRowCount:10,rowRenderer:Mm,headerRowRenderer:Nm,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}});ku.propTypes={};var xt=[],Mr=null,Lt=null;function Eu(){Lt&&(Lt=null,document.body&&Mr!=null&&(document.body.style.pointerEvents=Mr),Mr=null)}function jm(){Eu(),xt.forEach(function(e){return e.__resetIsScrolling()})}function Fm(){Lt&&ar(Lt);var e=0;xt.forEach(function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)}),Lt=Ho(jm,e)}function Pu(e){e.currentTarget===window&&Mr==null&&document.body&&(Mr=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),Fm(),xt.forEach(function(t){t.props.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent()})}function jl(e,t){xt.some(function(r){return r.props.scrollElement===t})||t.addEventListener("scroll",Pu),xt.push(e)}function Fl(e,t){xt=xt.filter(function(r){return r!==e}),xt.length||(t.removeEventListener("scroll",Pu),Lt&&(ar(Lt),Eu()))}var Jo=function(t){return t===window},kr=function(t){return t.getBoundingClientRect()};function Bl(e,t){if(e)if(Jo(e)){var r=window,n=r.innerHeight,i=r.innerWidth;return{height:typeof n=="number"?n:0,width:typeof i=="number"?i:0}}else return kr(e);else return{height:t.serverHeight,width:t.serverWidth}}function Bm(e,t){if(Jo(t)&&document.documentElement){var r=document.documentElement,n=kr(e),i=kr(r);return{top:n.top-i.top,left:n.left-i.left}}else{var o=Ou(t),a=kr(e),l=kr(t);return{top:a.top+o.top-l.top,left:a.left+o.left-l.left}}}function Ou(e){return Jo(e)&&document.documentElement?{top:"scrollY"in window?window.scrollY:document.documentElement.scrollTop,left:"scrollX"in window?window.scrollX:document.documentElement.scrollLeft}:{top:e.scrollTop,left:e.scrollLeft}}function $l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Gl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$l(Object(r),!0).forEach(function(n){A(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$l(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $m(e,t,r){return t=pe(t),Be(e,Nu()?Reflect.construct(t,r||[],pe(e).constructor):t.apply(e,r))}function Nu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Nu=function(){return!!e})()}var Gm=150,Au=function(){return typeof window<"u"?window:void 0},Wm=(function(e){function t(){var r;Ce(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=$m(this,t,[].concat(i)),A(r,"_window",Au()),A(r,"_isMounted",!1),A(r,"_positionFromTop",0),A(r,"_positionFromLeft",0),A(r,"_detectElementResize",void 0),A(r,"_child",void 0),A(r,"_windowScrollerRef",v.createRef()),A(r,"state",Gl(Gl({},Bl(r.props.scrollElement,r.props)),{},{isScrolling:!1,scrollLeft:0,scrollTop:0})),A(r,"_registerChild",function(a){a&&!(a instanceof Element)&&console.warn("WindowScroller registerChild expects to be passed Element or null"),r._child=a,r.updatePosition()}),A(r,"_onChildScroll",function(a){var l=a.scrollTop;if(r.state.scrollTop!==l){var s=r.props.scrollElement;s&&(typeof s.scrollTo=="function"?s.scrollTo(0,l+r._positionFromTop):s.scrollTop=l+r._positionFromTop)}}),A(r,"_registerResizeListener",function(a){a===window?window.addEventListener("resize",r._onResize,!1):r._detectElementResize.addResizeListener(a,r._onResize)}),A(r,"_unregisterResizeListener",function(a){a===window?window.removeEventListener("resize",r._onResize,!1):a&&r._detectElementResize.removeResizeListener(a,r._onResize)}),A(r,"_onResize",function(){r.updatePosition()}),A(r,"__handleWindowScrollEvent",function(){if(r._isMounted){var a=r.props.onScroll,l=r.props.scrollElement;if(l){var s=Ou(l),c=Math.max(0,s.left-r._positionFromLeft),u=Math.max(0,s.top-r._positionFromTop);r.setState({isScrolling:!0,scrollLeft:c,scrollTop:u}),a({scrollLeft:c,scrollTop:u})}}}),A(r,"__resetIsScrolling",function(){r.setState({isScrolling:!1})}),r}return Fe(t,e),Se(t,[{key:"updatePosition",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.scrollElement,i=this.props.onResize,o=this.state,a=o.height,l=o.width,s=this._child||this._windowScrollerRef.current;if(s instanceof Element&&n){var c=Bm(s,n);this._positionFromTop=c.top,this._positionFromLeft=c.left}var u=Bl(n,this.props);(a!==u.height||l!==u.width)&&(this.setState({height:u.height,width:u.width}),i({height:u.height,width:u.width})),this.props.updateScrollTopOnUpdatePosition===!0&&(this.__handleWindowScrollEvent(),this.__resetIsScrolling())}},{key:"componentDidMount",value:function(){var n=this.props.scrollElement;this._detectElementResize=tu(),this.updatePosition(n),n&&(jl(this,n),this._registerResizeListener(n)),this._isMounted=!0}},{key:"componentDidUpdate",value:function(n,i){var o=this.props.scrollElement,a=n.scrollElement;a!==o&&a!=null&&o!=null&&(this.updatePosition(o),Fl(this,a),jl(this,o),this._unregisterResizeListener(a),this._registerResizeListener(o))}},{key:"componentWillUnmount",value:function(){var n=this.props.scrollElement;n&&(Fl(this,n),this._unregisterResizeListener(n)),this._isMounted=!1}},{key:"render",value:function(){var n=this.props.children,i=this.state,o=i.isScrolling,a=i.scrollTop,l=i.scrollLeft,s=i.height,c=i.width;return v.createElement("div",{ref:this._windowScrollerRef},n({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:s,isScrolling:o,scrollLeft:l,scrollTop:a,width:c}))}}])})(v.PureComponent);A(Wm,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:Gm,scrollElement:Au(),serverHeight:0,serverWidth:0});function tr(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?tr=function(t){return typeof t}:tr=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tr(e)}function tn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function rn(e,t,r){return t&&Wl(e.prototype,t),r&&Wl(e,r),e}function Hm(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function St(){return St=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},St.apply(this,arguments)}function Hl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function se(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hl(Object(r),!0).forEach(function(n){Hm(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ti(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&io(e,t)}function ot(e){return ot=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},ot(e)}function io(e,t){return io=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},io(e,t)}function Um(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Qo(e,t){if(e==null)return{};var r=Um(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ut(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ri(e,t){return t&&(typeof t=="object"||typeof t=="function")?t:ut(e)}function me(e){return Vm(e)||qm(e)||Km()}function Vm(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}function qm(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Km(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function Mu(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function Lu(e){function t(r){var n=this.constructor.getDerivedStateFromProps(e,r);return n??null}this.setState(t.bind(this))}function zu(e,t){try{var r=this.props,n=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,n)}finally{this.props=r,this.state=n}}Mu.__suppressDeprecationWarning=!0;Lu.__suppressDeprecationWarning=!0;zu.__suppressDeprecationWarning=!0;function Ym(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if(typeof e.getDerivedStateFromProps!="function"&&typeof t.getSnapshotBeforeUpdate!="function")return e;var r=null,n=null,i=null;if(typeof t.componentWillMount=="function"?r="componentWillMount":typeof t.UNSAFE_componentWillMount=="function"&&(r="UNSAFE_componentWillMount"),typeof t.componentWillReceiveProps=="function"?n="componentWillReceiveProps":typeof t.UNSAFE_componentWillReceiveProps=="function"&&(n="UNSAFE_componentWillReceiveProps"),typeof t.componentWillUpdate=="function"?i="componentWillUpdate":typeof t.UNSAFE_componentWillUpdate=="function"&&(i="UNSAFE_componentWillUpdate"),r!==null||n!==null||i!==null){var o=e.displayName||e.name,a=typeof e.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
48
+ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=Jc,t.componentWillReceiveProps=Qc),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=Xc;var l=t.componentDidUpdate;t.componentDidUpdate=function(c,u,d){var f=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:d;l.call(this,c,u,f)}}return e}function yl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yl(Object(r),!0).forEach(function(n){M(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fv(e,t,r){return t=pe(t),Be(e,Zc()?Reflect.construct(t,r||[],pe(e).constructor):t.apply(e,r))}function Zc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Zc=function(){return!!e})()}var eu=(function(e){function t(){var r;Ce(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=fv(this,t,[].concat(i)),M(r,"state",{scrollToColumn:0,scrollToRow:0,instanceProps:{prevScrollToColumn:0,prevScrollToRow:0}}),M(r,"_columnStartIndex",0),M(r,"_columnStopIndex",0),M(r,"_rowStartIndex",0),M(r,"_rowStopIndex",0),M(r,"_onKeyDown",function(a){var l=r.props,s=l.columnCount,c=l.disabled,u=l.mode,d=l.rowCount;if(!c){var f=r._getScrollState(),p=f.scrollToColumn,h=f.scrollToRow,m=r._getScrollState(),b=m.scrollToColumn,y=m.scrollToRow;switch(a.key){case"ArrowDown":y=Math.min(u==="cells"?y+1:r._rowStopIndex+1,d-1);break;case"ArrowLeft":b=Math.max(u==="cells"?b-1:r._columnStartIndex-1,0);break;case"ArrowRight":b=Math.min(u==="cells"?b+1:r._columnStopIndex+1,s-1);break;case"ArrowUp":y=Math.max(u==="cells"?y-1:r._rowStartIndex-1,0);break}(b!==p||y!==h)&&(a.preventDefault(),r._updateScrollState({scrollToColumn:b,scrollToRow:y}))}}),M(r,"_onSectionRendered",function(a){var l=a.columnStartIndex,s=a.columnStopIndex,c=a.rowStartIndex,u=a.rowStopIndex;r._columnStartIndex=l,r._columnStopIndex=s,r._rowStartIndex=c,r._rowStopIndex=u}),r}return Fe(t,e),Se(t,[{key:"setScrollIndexes",value:function(n){var i=n.scrollToColumn,o=n.scrollToRow;this.setState({scrollToRow:o,scrollToColumn:i})}},{key:"render",value:function(){var n=this.props,i=n.className,o=n.children,a=this._getScrollState(),l=a.scrollToColumn,s=a.scrollToRow;return v.createElement("div",{className:i,onKeyDown:this._onKeyDown},o({onSectionRendered:this._onSectionRendered,scrollToColumn:l,scrollToRow:s}))}},{key:"_getScrollState",value:function(){return this.props.isControlled?this.props:this.state}},{key:"_updateScrollState",value:function(n){var i=n.scrollToColumn,o=n.scrollToRow,a=this.props,l=a.isControlled,s=a.onScrollToChange;typeof s=="function"&&s({scrollToColumn:i,scrollToRow:o}),l||this.setState({scrollToColumn:i,scrollToRow:o})}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.isControlled?{}:n.scrollToColumn!==i.instanceProps.prevScrollToColumn||n.scrollToRow!==i.instanceProps.prevScrollToRow?xl(xl({},i),{},{scrollToColumn:n.scrollToColumn,scrollToRow:n.scrollToRow,instanceProps:{prevScrollToColumn:n.scrollToColumn,prevScrollToRow:n.scrollToRow}}):{}}}])})(v.PureComponent);M(eu,"defaultProps",{disabled:!1,isControlled:!1,mode:"edges",scrollToColumn:0,scrollToRow:0});Zr(eu);function tu(e,t){var r;typeof t<"u"?r=t:typeof window<"u"?r=window:typeof self<"u"?r=self:r=Gp;var n=typeof r.document<"u"&&r.document.attachEvent;if(!n){var i=(function(){var D=r.requestAnimationFrame||r.mozRequestAnimationFrame||r.webkitRequestAnimationFrame||function(w){return r.setTimeout(w,20)};return function(w){return D(w)}})(),o=(function(){var D=r.cancelAnimationFrame||r.mozCancelAnimationFrame||r.webkitCancelAnimationFrame||r.clearTimeout;return function(w){return D(w)}})(),a=function(w){var R=w.__resizeTriggers__,I=R.firstElementChild,P=R.lastElementChild,L=I.firstElementChild;P.scrollLeft=P.scrollWidth,P.scrollTop=P.scrollHeight,L.style.width=I.offsetWidth+1+"px",L.style.height=I.offsetHeight+1+"px",I.scrollLeft=I.scrollWidth,I.scrollTop=I.scrollHeight},l=function(w){return w.offsetWidth!=w.__resizeLast__.width||w.offsetHeight!=w.__resizeLast__.height},s=function(w){if(!(w.target.className&&typeof w.target.className.indexOf=="function"&&w.target.className.indexOf("contract-trigger")<0&&w.target.className.indexOf("expand-trigger")<0)){var R=this;a(this),this.__resizeRAF__&&o(this.__resizeRAF__),this.__resizeRAF__=i(function(){l(R)&&(R.__resizeLast__.width=R.offsetWidth,R.__resizeLast__.height=R.offsetHeight,R.__resizeListeners__.forEach(function(I){I.call(R,w)}))})}},c=!1,u="",d="animationstart",f="Webkit Moz O ms".split(" "),p="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),h="";{var m=r.document.createElement("fakeelement");if(m.style.animationName!==void 0&&(c=!0),c===!1){for(var b=0;b<f.length;b++)if(m.style[f[b]+"AnimationName"]!==void 0){h=f[b],u="-"+h.toLowerCase()+"-",d=p[b],c=!0;break}}}var y="resizeanim",x="@"+u+"keyframes "+y+" { from { opacity: 0; } to { opacity: 0; } } ",_=u+"animation: 1ms "+y+"; "}var T=function(w){if(!w.getElementById("detectElementResize")){var R=(x||"")+".resize-triggers { "+(_||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',I=w.head||w.getElementsByTagName("head")[0],P=w.createElement("style");P.id="detectElementResize",P.type="text/css",e!=null&&P.setAttribute("nonce",e),P.styleSheet?P.styleSheet.cssText=R:P.appendChild(w.createTextNode(R)),I.appendChild(P)}},k=function(w,R){if(n)w.attachEvent("onresize",R);else{if(!w.__resizeTriggers__){var I=w.ownerDocument,P=r.getComputedStyle(w);P&&P.position=="static"&&(w.style.position="relative"),T(I),w.__resizeLast__={},w.__resizeListeners__=[],(w.__resizeTriggers__=I.createElement("div")).className="resize-triggers";var L=I.createElement("div");L.className="expand-trigger",L.appendChild(I.createElement("div"));var N=I.createElement("div");N.className="contract-trigger",w.__resizeTriggers__.appendChild(L),w.__resizeTriggers__.appendChild(N),w.appendChild(w.__resizeTriggers__),a(w),w.addEventListener("scroll",s,!0),d&&(w.__resizeTriggers__.__animationListener__=function(z){z.animationName==y&&a(w)},w.__resizeTriggers__.addEventListener(d,w.__resizeTriggers__.__animationListener__))}w.__resizeListeners__.push(R)}},C=function(w,R){if(n)w.detachEvent("onresize",R);else if(w.__resizeListeners__.splice(w.__resizeListeners__.indexOf(R),1),!w.__resizeListeners__.length){w.removeEventListener("scroll",s,!0),w.__resizeTriggers__.__animationListener__&&(w.__resizeTriggers__.removeEventListener(d,w.__resizeTriggers__.__animationListener__),w.__resizeTriggers__.__animationListener__=null);try{w.__resizeTriggers__=!w.removeChild(w.__resizeTriggers__)}catch{}}};return{addResizeListener:k,removeResizeListener:C}}function Sl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function wl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sl(Object(r),!0).forEach(function(n){M(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pv(e,t,r){return t=pe(t),Be(e,ru()?Reflect.construct(t,r||[],pe(e).constructor):t.apply(e,r))}function ru(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ru=function(){return!!e})()}var nu=(function(e){function t(){var r;Ce(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=pv(this,t,[].concat(i)),M(r,"state",{height:r.props.defaultHeight||0,width:r.props.defaultWidth||0}),M(r,"_parentNode",void 0),M(r,"_autoSizer",void 0),M(r,"_window",void 0),M(r,"_detectElementResize",void 0),M(r,"_onResize",function(){var a=r.props,l=a.disableHeight,s=a.disableWidth,c=a.onResize;if(r._parentNode){var u=r._parentNode.offsetHeight||0,d=r._parentNode.offsetWidth||0,f=r._window||window,p=f.getComputedStyle(r._parentNode)||{},h=parseInt(p.paddingLeft,10)||0,m=parseInt(p.paddingRight,10)||0,b=parseInt(p.paddingTop,10)||0,y=parseInt(p.paddingBottom,10)||0,x=u-b-y,_=d-h-m;(!l&&r.state.height!==x||!s&&r.state.width!==_)&&(r.setState({height:u-b-y,width:d-h-m}),c({height:u,width:d}))}}),M(r,"_setRef",function(a){r._autoSizer=a}),r}return Fe(t,e),Se(t,[{key:"componentDidMount",value:function(){var n=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._window=this._autoSizer.parentNode.ownerDocument.defaultView,this._detectElementResize=tu(n,this._window),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var n=this.props,i=n.children,o=n.className,a=n.disableHeight,l=n.disableWidth,s=n.style,c=this.state,u=c.height,d=c.width,f={overflow:"visible"},p={};return a||(f.height=0,p.height=u),l||(f.width=0,p.width=d),v.createElement("div",{className:o,ref:this._setRef,style:wl(wl({},f),s)},i(p))}}])})(v.Component);M(nu,"defaultProps",{onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}});function hv(e,t,r){return t=pe(t),Be(e,iu()?Reflect.construct(t,r||[],pe(e).constructor):t.apply(e,r))}function iu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(iu=function(){return!!e})()}var gv=(function(e){function t(){var r;Ce(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=hv(this,t,[].concat(i)),M(r,"_child",v.createRef()),M(r,"_measure",function(){var a=r.props,l=a.cache,s=a.columnIndex,c=s===void 0?0:s,u=a.parent,d=a.rowIndex,f=d===void 0?r.props.index||0:d,p=r._getCellMeasurements(),h=p.height,m=p.width;(h!==l.getHeight(f,c)||m!==l.getWidth(f,c))&&(l.set(f,c,m,h),u&&typeof u.recomputeGridSize=="function"&&u.recomputeGridSize({columnIndex:c,rowIndex:f}))}),M(r,"_registerChild",function(a){a&&!(a instanceof Element)&&console.warn("CellMeasurer registerChild expects to be passed Element or null"),r._child.current=a,a&&r._maybeMeasureCell()}),r}return Fe(t,e),Se(t,[{key:"componentDidMount",value:function(){this._maybeMeasureCell()}},{key:"componentDidUpdate",value:function(){this._maybeMeasureCell()}},{key:"render",value:function(){var n=this,i=this.props.children,o=typeof i=="function"?i({measure:this._measure,registerChild:this._registerChild}):i;return o===null?o:v.cloneElement(o,{ref:function(l){typeof o.ref=="function"?o.ref(l):o.ref&&(o.ref.current=l),n._child.current=l}})}},{key:"_getCellMeasurements",value:function(){var n=this.props.cache,i=this._child.current;if(i&&i.ownerDocument&&i.ownerDocument.defaultView&&i instanceof i.ownerDocument.defaultView.HTMLElement){var o=i.style.width,a=i.style.height;n.hasFixedWidth()||(i.style.width="auto"),n.hasFixedHeight()||(i.style.height="auto");var l=Math.ceil(i.offsetHeight),s=Math.ceil(i.offsetWidth);return o&&(i.style.width=o),a&&(i.style.height=a),{height:l,width:s}}else return{height:0,width:0}}},{key:"_maybeMeasureCell",value:function(){var n=this.props,i=n.cache,o=n.columnIndex,a=o===void 0?0:o,l=n.parent,s=n.rowIndex,c=s===void 0?this.props.index||0:s;if(!i.has(c,a)){var u=this._getCellMeasurements(),d=u.height,f=u.width;i.set(c,a,f,d),l&&typeof l.invalidateCellSizeAfterRender=="function"&&l.invalidateCellSizeAfterRender({columnIndex:a,rowIndex:c})}}}])})(v.PureComponent);M(gv,"__internalCellMeasurerFlag",!1);function vv(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function ou(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=ou(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Ze(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=ou(e))&&(n&&(n+=" "),n+=t);return n}function or(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,t={};return function(r){var n=r.callback,i=r.indices,o=Object.keys(i),a=!e||o.every(function(s){var c=i[s];return Array.isArray(c)?c.length>0:c>=0}),l=o.length!==Object.keys(t).length||o.some(function(s){var c=t[s],u=i[s];return Array.isArray(u)?c.join(",")!==u.join(","):c!==u});t=i,a&&l&&n(i)}}const mv=!!(typeof window<"u"&&window.document&&window.document.createElement);var pn;function no(e){if((!pn&&pn!==0||e)&&mv){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),pn=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return pn}function Cl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Il(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cl(Object(r),!0).forEach(function(n){M(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bv(e,t,r){return t=pe(t),Be(e,au()?Reflect.construct(t,r||[],pe(e).constructor):t.apply(e,r))}function au(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(au=function(){return!!e})()}var yv=150,Ht={OBSERVED:"observed",REQUESTED:"requested"},ei=(function(e){function t(){var r;Ce(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=bv(this,t,[].concat(i)),M(r,"state",{isScrolling:!1,scrollLeft:0,scrollTop:0}),M(r,"_calculateSizeAndPositionDataOnNextUpdate",!1),M(r,"_onSectionRenderedMemoizer",or()),M(r,"_onScrollMemoizer",or(!1)),M(r,"_invokeOnSectionRenderedHelper",function(){var a=r.props,l=a.cellLayoutManager,s=a.onSectionRendered;r._onSectionRenderedMemoizer({callback:s,indices:{indices:l.getLastRenderedIndices()}})}),M(r,"_setScrollingContainerRef",function(a){r._scrollingContainer=a}),M(r,"_updateScrollPositionForScrollToCell",function(){var a=r.props,l=a.cellLayoutManager,s=a.height,c=a.scrollToAlignment,u=a.scrollToCell,d=a.width,f=r.state,p=f.scrollLeft,h=f.scrollTop;if(u>=0){var m=l.getScrollPositionForCell({align:c,cellIndex:u,height:s,scrollLeft:p,scrollTop:h,width:d});(m.scrollLeft!==p||m.scrollTop!==h)&&r._setScrollPosition(m)}}),M(r,"_onScroll",function(a){if(a.target===r._scrollingContainer){r._enablePointerEventsAfterDelay();var l=r.props,s=l.cellLayoutManager,c=l.height,u=l.isScrollingChange,d=l.width,f=r._scrollbarSize,p=s.getTotalSize(),h=p.height,m=p.width,b=Math.max(0,Math.min(m-d+f,a.target.scrollLeft)),y=Math.max(0,Math.min(h-c+f,a.target.scrollTop));if(r.state.scrollLeft!==b||r.state.scrollTop!==y){var x=a.cancelable?Ht.OBSERVED:Ht.REQUESTED;r.state.isScrolling||u(!0),r.setState({isScrolling:!0,scrollLeft:b,scrollPositionChangeReason:x,scrollTop:y})}r._invokeOnScrollMemoizer({scrollLeft:b,scrollTop:y,totalWidth:m,totalHeight:h})}}),r._scrollbarSize=no(),r._scrollbarSize===void 0?(r._scrollbarSizeMeasured=!1,r._scrollbarSize=0):r._scrollbarSizeMeasured=!0,r}return Fe(t,e),Se(t,[{key:"recomputeCellSizesAndPositions",value:function(){this._calculateSizeAndPositionDataOnNextUpdate=!0,this.forceUpdate()}},{key:"componentDidMount",value:function(){var n=this.props,i=n.cellLayoutManager,o=n.scrollLeft,a=n.scrollToCell,l=n.scrollTop;this._scrollbarSizeMeasured||(this._scrollbarSize=no(),this._scrollbarSizeMeasured=!0,this.setState({})),a>=0?this._updateScrollPositionForScrollToCell():(o>=0||l>=0)&&this._setScrollPosition({scrollLeft:o,scrollTop:l}),this._invokeOnSectionRenderedHelper();var s=i.getTotalSize(),c=s.height,u=s.width;this._invokeOnScrollMemoizer({scrollLeft:o||0,scrollTop:l||0,totalHeight:c,totalWidth:u})}},{key:"componentDidUpdate",value:function(n,i){var o=this.props,a=o.height,l=o.scrollToAlignment,s=o.scrollToCell,c=o.width,u=this.state,d=u.scrollLeft,f=u.scrollPositionChangeReason,p=u.scrollTop;f===Ht.REQUESTED&&(d>=0&&d!==i.scrollLeft&&d!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=d),p>=0&&p!==i.scrollTop&&p!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=p)),(a!==n.height||l!==n.scrollToAlignment||s!==n.scrollToCell||c!==n.width)&&this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var n=this.props,i=n.autoHeight,o=n.cellCount,a=n.cellLayoutManager,l=n.className,s=n.height,c=n.horizontalOverscanSize,u=n.id,d=n.noContentRenderer,f=n.style,p=n.verticalOverscanSize,h=n.width,m=this.state,b=m.isScrolling,y=m.scrollLeft,x=m.scrollTop;(this._lastRenderedCellCount!==o||this._lastRenderedCellLayoutManager!==a||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=o,this._lastRenderedCellLayoutManager=a,this._calculateSizeAndPositionDataOnNextUpdate=!1,a.calculateSizeAndPositionData());var _=a.getTotalSize(),T=_.height,k=_.width,C=Math.max(0,y-c),D=Math.max(0,x-p),w=Math.min(k,y+h+c),R=Math.min(T,x+s+p),I=s>0&&h>0?a.cellRenderers({height:R-D,isScrolling:b,width:w-C,x:C,y:D}):[],P={boxSizing:"border-box",direction:"ltr",height:i?"auto":s,position:"relative",WebkitOverflowScrolling:"touch",width:h,willChange:"transform"},L=T>s?this._scrollbarSize:0,N=k>h?this._scrollbarSize:0;return P.overflowX=k+L<=h?"hidden":"auto",P.overflowY=T+N<=s?"hidden":"auto",v.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:Ze("ReactVirtualized__Collection",l),id:u,onScroll:this._onScroll,role:"grid",style:Il(Il({},P),f),tabIndex:0},o>0&&v.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:T,maxHeight:T,maxWidth:k,overflow:"hidden",pointerEvents:b?"none":"",width:k}},I),o===0&&d())}},{key:"_enablePointerEventsAfterDelay",value:function(){var n=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(function(){var i=n.props.isScrollingChange;i(!1),n._disablePointerEventsTimeoutId=null,n.setState({isScrolling:!1})},yv)}},{key:"_invokeOnScrollMemoizer",value:function(n){var i=this,o=n.scrollLeft,a=n.scrollTop,l=n.totalHeight,s=n.totalWidth;this._onScrollMemoizer({callback:function(u){var d=u.scrollLeft,f=u.scrollTop,p=i.props,h=p.height,m=p.onScroll,b=p.width;m({clientHeight:h,clientWidth:b,scrollHeight:l,scrollLeft:d,scrollTop:f,scrollWidth:s})},indices:{scrollLeft:o,scrollTop:a}})}},{key:"_setScrollPosition",value:function(n){var i=n.scrollLeft,o=n.scrollTop,a={scrollPositionChangeReason:Ht.REQUESTED};i>=0&&(a.scrollLeft=i),o>=0&&(a.scrollTop=o),(i>=0&&i!==this.state.scrollLeft||o>=0&&o!==this.state.scrollTop)&&this.setState(a)}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.cellCount===0&&(i.scrollLeft!==0||i.scrollTop!==0)?{scrollLeft:0,scrollTop:0,scrollPositionChangeReason:Ht.REQUESTED}:n.scrollLeft!==i.scrollLeft||n.scrollTop!==i.scrollTop?{scrollLeft:n.scrollLeft!=null?n.scrollLeft:i.scrollLeft,scrollTop:n.scrollTop!=null?n.scrollTop:i.scrollTop,scrollPositionChangeReason:Ht.REQUESTED}:null}}])})(v.PureComponent);M(ei,"defaultProps",{"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0});ei.propTypes={};Zr(ei);var xv=(function(){function e(t){var r=t.height,n=t.width,i=t.x,o=t.y;Ce(this,e),this.height=r,this.width=n,this.x=i,this.y=o,this._indexMap={},this._indices=[]}return Se(e,[{key:"addCellIndex",value:function(r){var n=r.index;this._indexMap[n]||(this._indexMap[n]=!0,this._indices.push(n))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return"".concat(this.x,",").concat(this.y," ").concat(this.width,"x").concat(this.height)}}])})(),Sv=100,wv=(function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Sv;Ce(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return Se(e,[{key:"getCellIndices",value:function(r){var n=r.height,i=r.width,o=r.x,a=r.y,l={};return this.getSections({height:n,width:i,x:o,y:a}).forEach(function(s){return s.getCellIndices().forEach(function(c){l[c]=c})}),Object.keys(l).map(function(s){return l[s]})}},{key:"getCellMetadata",value:function(r){var n=r.index;return this._cellMetadata[n]}},{key:"getSections",value:function(r){for(var n=r.height,i=r.width,o=r.x,a=r.y,l=Math.floor(o/this._sectionSize),s=Math.floor((o+i-1)/this._sectionSize),c=Math.floor(a/this._sectionSize),u=Math.floor((a+n-1)/this._sectionSize),d=[],f=l;f<=s;f++)for(var p=c;p<=u;p++){var h="".concat(f,".").concat(p);this._sections[h]||(this._sections[h]=new xv({height:this._sectionSize,width:this._sectionSize,x:f*this._sectionSize,y:p*this._sectionSize})),d.push(this._sections[h])}return d}},{key:"getTotalSectionCount",value:function(){return Object.keys(this._sections).length}},{key:"toString",value:function(){var r=this;return Object.keys(this._sections).map(function(n){return r._sections[n].toString()})}},{key:"registerCell",value:function(r){var n=r.cellMetadatum,i=r.index;this._cellMetadata[i]=n,this.getSections(n).forEach(function(o){return o.addCellIndex({index:i})})}}])})();function Cv(e){for(var t=e.cellCount,r=e.cellSizeAndPositionGetter,n=e.sectionSize,i=[],o=new wv(n),a=0,l=0,s=0;s<t;s++){var c=r({index:s});if(c.height==null||isNaN(c.height)||c.width==null||isNaN(c.width)||c.x==null||isNaN(c.x)||c.y==null||isNaN(c.y))throw Error("Invalid metadata returned for cell ".concat(s,`:
49
+ x:`).concat(c.x,", y:").concat(c.y,", width:").concat(c.width,", height:").concat(c.height));a=Math.max(a,c.y+c.height),l=Math.max(l,c.x+c.width),i[s]=c,o.registerCell({cellMetadatum:c,index:s})}return{cellMetadata:i,height:a,sectionManager:o,width:l}}function Rl(e){var t=e.align,r=t===void 0?"auto":t,n=e.cellOffset,i=e.cellSize,o=e.containerSize,a=e.currentOffset,l=n,s=l-o+i;switch(r){case"start":return l;case"end":return s;case"center":return l-(o-i)/2;default:return Math.max(s,Math.min(l,a))}}function Iv(e,t,r){return t=pe(t),Be(e,lu()?Reflect.construct(t,r||[],pe(e).constructor):t.apply(e,r))}function lu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lu=function(){return!!e})()}var su=(function(e){function t(r,n){var i;return Ce(this,t),i=Iv(this,t,[r,n]),i._cellMetadata=[],i._lastRenderedCellIndices=[],i._cellCache=[],i._isScrollingChange=i._isScrollingChange.bind(i),i._setCollectionViewRef=i._setCollectionViewRef.bind(i),i}return Fe(t,e),Se(t,[{key:"forceUpdate",value:function(){this._collectionView!==void 0&&this._collectionView.forceUpdate()}},{key:"recomputeCellSizesAndPositions",value:function(){this._cellCache=[],this._collectionView.recomputeCellSizesAndPositions()}},{key:"render",value:function(){var n=q({},(vv(this.props),this.props));return v.createElement(ei,q({cellLayoutManager:this,isScrollingChange:this._isScrollingChange,ref:this._setCollectionViewRef},n))}},{key:"calculateSizeAndPositionData",value:function(){var n=this.props,i=n.cellCount,o=n.cellSizeAndPositionGetter,a=n.sectionSize,l=Cv({cellCount:i,cellSizeAndPositionGetter:o,sectionSize:a});this._cellMetadata=l.cellMetadata,this._sectionManager=l.sectionManager,this._height=l.height,this._width=l.width}},{key:"getLastRenderedIndices",value:function(){return this._lastRenderedCellIndices}},{key:"getScrollPositionForCell",value:function(n){var i=n.align,o=n.cellIndex,a=n.height,l=n.scrollLeft,s=n.scrollTop,c=n.width,u=this.props.cellCount;if(o>=0&&o<u){var d=this._cellMetadata[o];l=Rl({align:i,cellOffset:d.x,cellSize:d.width,containerSize:c,currentOffset:l}),s=Rl({align:i,cellOffset:d.y,cellSize:d.height,containerSize:a,currentOffset:s})}return{scrollLeft:l,scrollTop:s}}},{key:"getTotalSize",value:function(){return{height:this._height,width:this._width}}},{key:"cellRenderers",value:function(n){var i=this,o=n.height,a=n.isScrolling,l=n.width,s=n.x,c=n.y,u=this.props,d=u.cellGroupRenderer,f=u.cellRenderer;return this._lastRenderedCellIndices=this._sectionManager.getCellIndices({height:o,width:l,x:s,y:c}),d({cellCache:this._cellCache,cellRenderer:f,cellSizeAndPositionGetter:function(h){var m=h.index;return i._sectionManager.getCellMetadata({index:m})},indices:this._lastRenderedCellIndices,isScrolling:a})}},{key:"_isScrollingChange",value:function(n){n||(this._cellCache=[])}},{key:"_setCollectionViewRef",value:function(n){this._collectionView=n}}])})(v.PureComponent);M(su,"defaultProps",{"aria-label":"grid",cellGroupRenderer:Rv});su.propTypes={};function Rv(e){var t=e.cellCache,r=e.cellRenderer,n=e.cellSizeAndPositionGetter,i=e.indices,o=e.isScrolling;return i.map(function(a){var l=n({index:a}),s={index:a,isScrolling:o,key:a,style:{height:l.height,left:l.x,position:"absolute",top:l.y,width:l.width}};return o?(a in t||(t[a]=r(s)),t[a]):r(s)}).filter(function(a){return!!a})}function _v(e,t,r){return t=pe(t),Be(e,cu()?Reflect.construct(t,r||[],pe(e).constructor):t.apply(e,r))}function cu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(cu=function(){return!!e})()}var Dv=(function(e){function t(r,n){var i;return Ce(this,t),i=_v(this,t,[r,n]),i._registerChild=i._registerChild.bind(i),i}return Fe(t,e),Se(t,[{key:"componentDidUpdate",value:function(n){var i=this.props,o=i.columnMaxWidth,a=i.columnMinWidth,l=i.columnCount,s=i.width;(o!==n.columnMaxWidth||a!==n.columnMinWidth||l!==n.columnCount||s!==n.width)&&this._registeredChild&&this._registeredChild.recomputeGridSize()}},{key:"render",value:function(){var n=this.props,i=n.children,o=n.columnMaxWidth,a=n.columnMinWidth,l=n.columnCount,s=n.width,c=a||1,u=o?Math.min(o,s):s,d=s/l;d=Math.max(c,d),d=Math.min(u,d),d=Math.floor(d);var f=Math.min(s,d*l);return i({adjustedWidth:f,columnWidth:d,getColumnWidth:function(){return d},registerChild:this._registerChild})}},{key:"_registerChild",value:function(n){if(n&&typeof n.recomputeGridSize!="function")throw Error("Unexpected child type registered; only Grid/MultiGrid children are supported.");this._registeredChild=n,this._registeredChild&&this._registeredChild.recomputeGridSize()}}])})(v.PureComponent);Dv.propTypes={};function _l(e){var t=e.cellCount,r=e.cellSize,n=e.computeMetadataCallback,i=e.computeMetadataCallbackProps,o=e.nextCellsCount,a=e.nextCellSize,l=e.nextScrollToIndex,s=e.scrollToIndex,c=e.updateScrollOffsetForScrollToIndex;(t!==o||(typeof r=="number"||typeof a=="number")&&r!==a)&&(n(i),s>=0&&s===l&&c())}function Xt(e,t){if(e==null)return{};var r,n,i=nr(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var Tv=(function(){function e(t){var r=t.cellCount,n=t.cellSizeGetter,i=t.estimatedCellSize;Ce(this,e),M(this,"_cellSizeAndPositionData",{}),M(this,"_lastMeasuredIndex",-1),M(this,"_lastBatchedIndex",-1),M(this,"_cellCount",void 0),M(this,"_cellSizeGetter",void 0),M(this,"_estimatedCellSize",void 0),this._cellSizeGetter=n,this._cellCount=r,this._estimatedCellSize=i}return Se(e,[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(r){var n=r.cellCount,i=r.estimatedCellSize,o=r.cellSizeGetter;this._cellCount=n,this._estimatedCellSize=i,this._cellSizeGetter=o}},{key:"getCellCount",value:function(){return this._cellCount}},{key:"getEstimatedCellSize",value:function(){return this._estimatedCellSize}},{key:"getLastMeasuredIndex",value:function(){return this._lastMeasuredIndex}},{key:"getOffsetAdjustment",value:function(){return 0}},{key:"getSizeAndPositionOfCell",value:function(r){if(r<0||r>=this._cellCount)throw Error("Requested index ".concat(r," is outside of range 0..").concat(this._cellCount));if(r>this._lastMeasuredIndex)for(var n=this.getSizeAndPositionOfLastMeasuredCell(),i=n.offset+n.size,o=this._lastMeasuredIndex+1;o<=r;o++){var a=this._cellSizeGetter({index:o});if(a===void 0||isNaN(a))throw Error("Invalid size returned for cell ".concat(o," of value ").concat(a));a===null?(this._cellSizeAndPositionData[o]={offset:i,size:0},this._lastBatchedIndex=r):(this._cellSizeAndPositionData[o]={offset:i,size:a},i+=a,this._lastMeasuredIndex=r)}return this._cellSizeAndPositionData[r]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var r=this.getSizeAndPositionOfLastMeasuredCell(),n=r.offset+r.size,i=this._cellCount-this._lastMeasuredIndex-1,o=i*this._estimatedCellSize;return n+o}},{key:"getUpdatedOffsetForIndex",value:function(r){var n=r.align,i=n===void 0?"auto":n,o=r.containerSize,a=r.currentOffset,l=r.targetIndex;if(o<=0)return 0;var s=this.getSizeAndPositionOfCell(l),c=s.offset,u=c-o+s.size,d;switch(i){case"start":d=c;break;case"end":d=u;break;case"center":d=c-(o-s.size)/2;break;default:d=Math.max(u,Math.min(c,a));break}var f=this.getTotalSize();return Math.max(0,Math.min(f-o,d))}},{key:"getVisibleCellRange",value:function(r){var n=r.containerSize,i=r.offset,o=this.getTotalSize();if(o===0)return{};var a=i+n,l=this._findNearestCell(i),s=this.getSizeAndPositionOfCell(l);i=s.offset+s.size;for(var c=l;i<a&&c<this._cellCount-1;)c++,i+=this.getSizeAndPositionOfCell(c).size;return{start:l,stop:c}}},{key:"resetCell",value:function(r){this._lastMeasuredIndex=Math.min(this._lastMeasuredIndex,r-1)}},{key:"_binarySearch",value:function(r,n,i){for(;n<=r;){var o=n+Math.floor((r-n)/2),a=this.getSizeAndPositionOfCell(o).offset;if(a===i)return o;a<i?n=o+1:a>i&&(r=o-1)}return n>0?n-1:0}},{key:"_exponentialSearch",value:function(r,n){for(var i=1;r<this._cellCount&&this.getSizeAndPositionOfCell(r).offset<n;)r+=i,i*=2;return this._binarySearch(Math.min(r,this._cellCount-1),Math.floor(r/2),n)}},{key:"_findNearestCell",value:function(r){if(isNaN(r))throw Error("Invalid offset ".concat(r," specified"));r=Math.max(0,r);var n=this.getSizeAndPositionOfLastMeasuredCell(),i=Math.max(0,this._lastMeasuredIndex);return n.offset>=r?this._binarySearch(i,0,r):this._exponentialSearch(i,r)}}])})(),kv=15e5,Ev=16777100,Pv=function(){return typeof window<"u"},Ov=function(){return!!window.chrome},Nv=function(){return Pv()&&Ov()?Ev:kv},Mv=["maxScrollSize"],Dl=(function(){function e(t){var r=t.maxScrollSize,n=r===void 0?Nv():r,i=Xt(t,Mv);Ce(this,e),M(this,"_cellSizeAndPositionManager",void 0),M(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new Tv(i),this._maxScrollSize=n}return Se(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(r){this._cellSizeAndPositionManager.configure(r)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(r){var n=r.containerSize,i=r.offset,o=this._cellSizeAndPositionManager.getTotalSize(),a=this.getTotalSize(),l=this._getOffsetPercentage({containerSize:n,offset:i,totalSize:a});return Math.round(l*(a-o))}},{key:"getSizeAndPositionOfCell",value:function(r){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(r)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(r){var n=r.align,i=n===void 0?"auto":n,o=r.containerSize,a=r.currentOffset,l=r.targetIndex;a=this._safeOffsetToOffset({containerSize:o,offset:a});var s=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:i,containerSize:o,currentOffset:a,targetIndex:l});return this._offsetToSafeOffset({containerSize:o,offset:s})}},{key:"getVisibleCellRange",value:function(r){var n=r.containerSize,i=r.offset;return i=this._safeOffsetToOffset({containerSize:n,offset:i}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:n,offset:i})}},{key:"resetCell",value:function(r){this._cellSizeAndPositionManager.resetCell(r)}},{key:"_getOffsetPercentage",value:function(r){var n=r.containerSize,i=r.offset,o=r.totalSize;return o<=n?0:i/(o-n)}},{key:"_offsetToSafeOffset",value:function(r){var n=r.containerSize,i=r.offset,o=this._cellSizeAndPositionManager.getTotalSize(),a=this.getTotalSize();if(o===a)return i;var l=this._getOffsetPercentage({containerSize:n,offset:i,totalSize:o});return Math.round(l*(a-n))}},{key:"_safeOffsetToOffset",value:function(r){var n=r.containerSize,i=r.offset,o=this._cellSizeAndPositionManager.getTotalSize(),a=this.getTotalSize();if(o===a)return i;var l=this._getOffsetPercentage({containerSize:n,offset:i,totalSize:a});return Math.round(l*(o-n))}}])})(),hn=-1,ct=1;function Av(e){var t=e.cellCount,r=e.overscanCellsCount,n=e.scrollDirection,i=e.startIndex,o=e.stopIndex;return n===ct?{overscanStartIndex:Math.max(0,i),overscanStopIndex:Math.min(t-1,o+r)}:{overscanStartIndex:Math.max(0,i-r),overscanStopIndex:Math.min(t-1,o)}}function Tl(e){var t=e.cellSize,r=e.cellSizeAndPositionManager,n=e.previousCellsCount,i=e.previousCellSize,o=e.previousScrollToAlignment,a=e.previousScrollToIndex,l=e.previousSize,s=e.scrollOffset,c=e.scrollToAlignment,u=e.scrollToIndex,d=e.size,f=e.sizeJustIncreasedFromZero,p=e.updateScrollIndexCallback,h=r.getCellCount(),m=u>=0&&u<h,b=d!==l||f||!i||typeof t=="number"&&t!==i;m&&(b||c!==o||u!==a)?p(u):!m&&h>0&&(d<l||h<n)&&s>r.getTotalSize()-d&&p(h-1)}function Lv(e){for(var t=e.cellCache,r=e.cellRenderer,n=e.columnSizeAndPositionManager,i=e.columnStartIndex,o=e.columnStopIndex,a=e.deferredMeasurementCache,l=e.horizontalOffsetAdjustment,s=e.isScrolling,c=e.isScrollingOptOut,u=e.parent,d=e.rowSizeAndPositionManager,f=e.rowStartIndex,p=e.rowStopIndex,h=e.styleCache,m=e.verticalOffsetAdjustment,b=e.visibleColumnIndices,y=e.visibleRowIndices,x=[],_=n.areOffsetsAdjusted()||d.areOffsetsAdjusted(),T=!s&&!_,k=f;k<=p;k++)for(var C=d.getSizeAndPositionOfCell(k),D=i;D<=o;D++){var w=n.getSizeAndPositionOfCell(D),R=D>=b.start&&D<=b.stop&&k>=y.start&&k<=y.stop,I="".concat(k,"-").concat(D),P=void 0;T&&h[I]?P=h[I]:a&&!a.has(k,D)?P={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(P={height:C.size,left:w.offset+l,position:"absolute",top:C.offset+m,width:w.size},h[I]=P);var L={columnIndex:D,isScrolling:s,isVisible:R,key:I,parent:u,rowIndex:k,style:P},N=void 0;(c||s)&&!l&&!m?(t[I]||(t[I]=r(L)),N=t[I]):N=r(L),!(N==null||N===!1)&&(N.props.role||(N=Q.cloneElement(N,{role:"gridcell"})),x.push(N))}return x}var ze;typeof window<"u"?ze=window:typeof self<"u"?ze=self:ze={};var zv=ze.requestAnimationFrame||ze.webkitRequestAnimationFrame||ze.mozRequestAnimationFrame||ze.oRequestAnimationFrame||ze.msRequestAnimationFrame||function(e){return ze.setTimeout(e,1e3/60)},jv=ze.cancelAnimationFrame||ze.webkitCancelAnimationFrame||ze.mozCancelAnimationFrame||ze.oCancelAnimationFrame||ze.msCancelAnimationFrame||function(e){ze.clearTimeout(e)},kl=zv,Fv=jv,ar=function(t){return Fv(t.id)},Ho=function(t,r){var n;Promise.resolve().then(function(){n=Date.now()});var i=function(){Date.now()-n>=r?t.call():o.id=kl(i)},o={id:kl(i)};return o};function El(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?El(Object(r),!0).forEach(function(n){M(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):El(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Bv(e,t,r){return t=pe(t),Be(e,uu()?Reflect.construct(t,r||[],pe(e).constructor):t.apply(e,r))}function uu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(uu=function(){return!!e})()}var $v=150,yi={OBSERVED:"observed",REQUESTED:"requested"},Gv=function(){return null},bt=(function(e){function t(r){var n;Ce(this,t),n=Bv(this,t,[r]),M(n,"_onGridRenderedMemoizer",or()),M(n,"_onScrollMemoizer",or(!1)),M(n,"_deferredInvalidateColumnIndex",null),M(n,"_deferredInvalidateRowIndex",null),M(n,"_recomputeScrollLeftFlag",!1),M(n,"_recomputeScrollTopFlag",!1),M(n,"_horizontalScrollBarSize",0),M(n,"_verticalScrollBarSize",0),M(n,"_scrollbarPresenceChanged",!1),M(n,"_scrollingContainer",void 0),M(n,"_childrenToDisplay",void 0),M(n,"_columnStartIndex",void 0),M(n,"_columnStopIndex",void 0),M(n,"_rowStartIndex",void 0),M(n,"_rowStopIndex",void 0),M(n,"_renderedColumnStartIndex",0),M(n,"_renderedColumnStopIndex",0),M(n,"_renderedRowStartIndex",0),M(n,"_renderedRowStopIndex",0),M(n,"_initialScrollTop",void 0),M(n,"_initialScrollLeft",void 0),M(n,"_disablePointerEventsTimeoutId",void 0),M(n,"_styleCache",{}),M(n,"_cellCache",{}),M(n,"_debounceScrollEndedCallback",function(){n._disablePointerEventsTimeoutId=null,n.setState({isScrolling:!1,needToResetStyleCache:!1})}),M(n,"_invokeOnGridRenderedHelper",function(){var a=n.props.onSectionRendered;n._onGridRenderedMemoizer({callback:a,indices:{columnOverscanStartIndex:n._columnStartIndex,columnOverscanStopIndex:n._columnStopIndex,columnStartIndex:n._renderedColumnStartIndex,columnStopIndex:n._renderedColumnStopIndex,rowOverscanStartIndex:n._rowStartIndex,rowOverscanStopIndex:n._rowStopIndex,rowStartIndex:n._renderedRowStartIndex,rowStopIndex:n._renderedRowStopIndex}})}),M(n,"_setScrollingContainerRef",function(a){n._scrollingContainer=a,typeof n.props.elementRef=="function"?n.props.elementRef(a):Gc(n.props.elementRef)==="object"&&(n.props.elementRef.current=a)}),M(n,"_onScroll",function(a){a.target===n._scrollingContainer&&n.handleScrollEvent(a.target)});var i=new Dl({cellCount:r.columnCount,cellSizeGetter:function(l){return t._wrapSizeGetter(r.columnWidth)(l)},estimatedCellSize:t._getEstimatedColumnSize(r)}),o=new Dl({cellCount:r.rowCount,cellSizeGetter:function(l){return t._wrapSizeGetter(r.rowHeight)(l)},estimatedCellSize:t._getEstimatedRowSize(r)});return n.state={instanceProps:{columnSizeAndPositionManager:i,rowSizeAndPositionManager:o,prevColumnWidth:r.columnWidth,prevRowHeight:r.rowHeight,prevColumnCount:r.columnCount,prevRowCount:r.rowCount,prevIsScrolling:r.isScrolling===!0,prevScrollToColumn:r.scrollToColumn,prevScrollToRow:r.scrollToRow,scrollbarSize:0,scrollbarSizeMeasured:!1},isScrolling:!1,scrollDirectionHorizontal:ct,scrollDirectionVertical:ct,scrollLeft:0,scrollTop:0,scrollPositionChangeReason:null,needToResetStyleCache:!1},r.scrollToRow>0&&(n._initialScrollTop=n._getCalculatedScrollTop(r,n.state)),r.scrollToColumn>0&&(n._initialScrollLeft=n._getCalculatedScrollLeft(r,n.state)),n}return Fe(t,e),Se(t,[{key:"getOffsetForCell",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=n.alignment,o=i===void 0?this.props.scrollToAlignment:i,a=n.columnIndex,l=a===void 0?this.props.scrollToColumn:a,s=n.rowIndex,c=s===void 0?this.props.scrollToRow:s,u=$e($e({},this.props),{},{scrollToAlignment:o,scrollToColumn:l,scrollToRow:c});return{scrollLeft:this._getCalculatedScrollLeft(u),scrollTop:this._getCalculatedScrollTop(u)}}},{key:"getTotalRowsHeight",value:function(){return this.state.instanceProps.rowSizeAndPositionManager.getTotalSize()}},{key:"getTotalColumnsWidth",value:function(){return this.state.instanceProps.columnSizeAndPositionManager.getTotalSize()}},{key:"handleScrollEvent",value:function(n){var i=n.scrollLeft,o=i===void 0?0:i,a=n.scrollTop,l=a===void 0?0:a;if(!(l<0)){this._debounceScrollEnded();var s=this.props,c=s.autoHeight,u=s.autoWidth,d=s.height,f=s.width,p=this.state.instanceProps,h=p.scrollbarSize,m=p.rowSizeAndPositionManager.getTotalSize(),b=p.columnSizeAndPositionManager.getTotalSize(),y=Math.min(Math.max(0,b-f+h),o),x=Math.min(Math.max(0,m-d+h),l);if(this.state.scrollLeft!==y||this.state.scrollTop!==x){var _=y!==this.state.scrollLeft?y>this.state.scrollLeft?ct:hn:this.state.scrollDirectionHorizontal,T=x!==this.state.scrollTop?x>this.state.scrollTop?ct:hn:this.state.scrollDirectionVertical,k={isScrolling:!0,scrollDirectionHorizontal:_,scrollDirectionVertical:T,scrollPositionChangeReason:yi.OBSERVED};c||(k.scrollTop=x),u||(k.scrollLeft=y),k.needToResetStyleCache=!1,this.setState(k)}this._invokeOnScrollMemoizer({scrollLeft:y,scrollTop:x,totalColumnsWidth:b,totalRowsHeight:m})}}},{key:"invalidateCellSizeAfterRender",value:function(n){var i=n.columnIndex,o=n.rowIndex;this._deferredInvalidateColumnIndex=typeof this._deferredInvalidateColumnIndex=="number"?Math.min(this._deferredInvalidateColumnIndex,i):i,this._deferredInvalidateRowIndex=typeof this._deferredInvalidateRowIndex=="number"?Math.min(this._deferredInvalidateRowIndex,o):o}},{key:"measureAllCells",value:function(){var n=this.props,i=n.columnCount,o=n.rowCount,a=this.state.instanceProps;a.columnSizeAndPositionManager.getSizeAndPositionOfCell(i-1),a.rowSizeAndPositionManager.getSizeAndPositionOfCell(o-1)}},{key:"recomputeGridSize",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=n.columnIndex,o=i===void 0?0:i,a=n.rowIndex,l=a===void 0?0:a,s=this.props,c=s.scrollToColumn,u=s.scrollToRow,d=this.state.instanceProps;d.columnSizeAndPositionManager.resetCell(o),d.rowSizeAndPositionManager.resetCell(l),this._recomputeScrollLeftFlag=c>=0&&(this.state.scrollDirectionHorizontal===ct?o<=c:o>=c),this._recomputeScrollTopFlag=u>=0&&(this.state.scrollDirectionVertical===ct?l<=u:l>=u),this._styleCache={},this._cellCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(n){var i=n.columnIndex,o=n.rowIndex,a=this.props.columnCount,l=this.props;a>1&&i!==void 0&&this._updateScrollLeftForScrollToColumn($e($e({},l),{},{scrollToColumn:i})),o!==void 0&&this._updateScrollTopForScrollToRow($e($e({},l),{},{scrollToRow:o}))}},{key:"componentDidMount",value:function(){var n=this.props,i=n.getScrollbarSize,o=n.height,a=n.scrollLeft,l=n.scrollToColumn,s=n.scrollTop,c=n.scrollToRow,u=n.width,d=this.state.instanceProps;if(this._initialScrollTop=0,this._initialScrollLeft=0,this._handleInvalidatedGridSize(),d.scrollbarSizeMeasured||this.setState(function(h){var m=$e($e({},h),{},{needToResetStyleCache:!1});return m.instanceProps.scrollbarSize=i(),m.instanceProps.scrollbarSizeMeasured=!0,m}),typeof a=="number"&&a>=0||typeof s=="number"&&s>=0){var f=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:a,scrollTop:s});f&&(f.needToResetStyleCache=!1,this.setState(f))}this._scrollingContainer&&(this._scrollingContainer.scrollLeft!==this.state.scrollLeft&&(this._scrollingContainer.scrollLeft=this.state.scrollLeft),this._scrollingContainer.scrollTop!==this.state.scrollTop&&(this._scrollingContainer.scrollTop=this.state.scrollTop));var p=o>0&&u>0;l>=0&&p&&this._updateScrollLeftForScrollToColumn(),c>=0&&p&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:a||0,scrollTop:s||0,totalColumnsWidth:d.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:d.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(n,i){var o=this,a=this.props,l=a.autoHeight,s=a.autoWidth,c=a.columnCount,u=a.height,d=a.rowCount,f=a.scrollToAlignment,p=a.scrollToColumn,h=a.scrollToRow,m=a.width,b=this.state,y=b.scrollLeft,x=b.scrollPositionChangeReason,_=b.scrollTop,T=b.instanceProps;this._handleInvalidatedGridSize();var k=c>0&&n.columnCount===0||d>0&&n.rowCount===0;x===yi.REQUESTED&&(!s&&y>=0&&(y!==this._scrollingContainer.scrollLeft||k)&&(this._scrollingContainer.scrollLeft=y),!l&&_>=0&&(_!==this._scrollingContainer.scrollTop||k)&&(this._scrollingContainer.scrollTop=_));var C=(n.width===0||n.height===0)&&u>0&&m>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):Tl({cellSizeAndPositionManager:T.columnSizeAndPositionManager,previousCellsCount:n.columnCount,previousCellSize:n.columnWidth,previousScrollToAlignment:n.scrollToAlignment,previousScrollToIndex:n.scrollToColumn,previousSize:n.width,scrollOffset:y,scrollToAlignment:f,scrollToIndex:p,size:m,sizeJustIncreasedFromZero:C,updateScrollIndexCallback:function(){return o._updateScrollLeftForScrollToColumn(o.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):Tl({cellSizeAndPositionManager:T.rowSizeAndPositionManager,previousCellsCount:n.rowCount,previousCellSize:n.rowHeight,previousScrollToAlignment:n.scrollToAlignment,previousScrollToIndex:n.scrollToRow,previousSize:n.height,scrollOffset:_,scrollToAlignment:f,scrollToIndex:h,size:u,sizeJustIncreasedFromZero:C,updateScrollIndexCallback:function(){return o._updateScrollTopForScrollToRow(o.props)}}),this._invokeOnGridRenderedHelper(),y!==i.scrollLeft||_!==i.scrollTop){var D=T.rowSizeAndPositionManager.getTotalSize(),w=T.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:y,scrollTop:_,totalColumnsWidth:w,totalRowsHeight:D})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&ar(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var n=this.props,i=n.autoContainerWidth,o=n.autoHeight,a=n.autoWidth,l=n.className,s=n.containerProps,c=n.containerRole,u=n.containerStyle,d=n.height,f=n.id,p=n.noContentRenderer,h=n.role,m=n.style,b=n.tabIndex,y=n.width,x=this.state,_=x.instanceProps,T=x.needToResetStyleCache,k=this._isScrolling(),C={boxSizing:"border-box",direction:"ltr",height:o?"auto":d,position:"relative",width:a?"auto":y,WebkitOverflowScrolling:"touch",willChange:"transform"};T&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var D=_.columnSizeAndPositionManager.getTotalSize(),w=_.rowSizeAndPositionManager.getTotalSize(),R=w>d?_.scrollbarSize:0,I=D>y?_.scrollbarSize:0;(I!==this._horizontalScrollBarSize||R!==this._verticalScrollBarSize)&&(this._horizontalScrollBarSize=I,this._verticalScrollBarSize=R,this._scrollbarPresenceChanged=!0),C.overflowX=D+R<=y?"hidden":"auto",C.overflowY=w+I<=d?"hidden":"auto";var P=this._childrenToDisplay,L=P.length===0&&d>0&&y>0;return v.createElement("div",q({ref:this._setScrollingContainerRef},s,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:Ze("ReactVirtualized__Grid",l),id:f,onScroll:this._onScroll,role:h,style:$e($e({},C),m),tabIndex:b}),P.length>0&&v.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:c,style:$e({width:i?"auto":D,height:w,maxWidth:D,maxHeight:w,overflow:"hidden",pointerEvents:k?"none":"",position:"relative"},u)},P),L&&p())}},{key:"_calculateChildrenToRender",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state,o=n.cellRenderer,a=n.cellRangeRenderer,l=n.columnCount,s=n.deferredMeasurementCache,c=n.height,u=n.overscanColumnCount,d=n.overscanIndicesGetter,f=n.overscanRowCount,p=n.rowCount,h=n.width,m=n.isScrollingOptOut,b=i.scrollDirectionHorizontal,y=i.scrollDirectionVertical,x=i.instanceProps,_=this._initialScrollTop>0?this._initialScrollTop:i.scrollTop,T=this._initialScrollLeft>0?this._initialScrollLeft:i.scrollLeft,k=this._isScrolling(n,i);if(this._childrenToDisplay=[],c>0&&h>0){var C=x.columnSizeAndPositionManager.getVisibleCellRange({containerSize:h,offset:T}),D=x.rowSizeAndPositionManager.getVisibleCellRange({containerSize:c,offset:_}),w=x.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:h,offset:T}),R=x.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:c,offset:_});this._renderedColumnStartIndex=C.start,this._renderedColumnStopIndex=C.stop,this._renderedRowStartIndex=D.start,this._renderedRowStopIndex=D.stop;var I=d({direction:"horizontal",cellCount:l,overscanCellsCount:u,scrollDirection:b,startIndex:typeof C.start=="number"?C.start:0,stopIndex:typeof C.stop=="number"?C.stop:-1}),P=d({direction:"vertical",cellCount:p,overscanCellsCount:f,scrollDirection:y,startIndex:typeof D.start=="number"?D.start:0,stopIndex:typeof D.stop=="number"?D.stop:-1}),L=I.overscanStartIndex,N=I.overscanStopIndex,G=P.overscanStartIndex,z=P.overscanStopIndex;if(s){if(!s.hasFixedHeight()){for(var F=G;F<=z;F++)if(!s.has(F,0)){L=0,N=l-1;break}}if(!s.hasFixedWidth()){for(var W=L;W<=N;W++)if(!s.has(0,W)){G=0,z=p-1;break}}}this._childrenToDisplay=a({cellCache:this._cellCache,cellRenderer:o,columnSizeAndPositionManager:x.columnSizeAndPositionManager,columnStartIndex:L,columnStopIndex:N,deferredMeasurementCache:s,horizontalOffsetAdjustment:w,isScrolling:k,isScrollingOptOut:m,parent:this,rowSizeAndPositionManager:x.rowSizeAndPositionManager,rowStartIndex:G,rowStopIndex:z,scrollLeft:T,scrollTop:_,styleCache:this._styleCache,verticalOffsetAdjustment:R,visibleColumnIndices:C,visibleRowIndices:D}),this._columnStartIndex=L,this._columnStopIndex=N,this._rowStartIndex=G,this._rowStopIndex=z}}},{key:"_debounceScrollEnded",value:function(){var n=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&ar(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=Ho(this._debounceScrollEndedCallback,n)}},{key:"_handleInvalidatedGridSize",value:function(){if(typeof this._deferredInvalidateColumnIndex=="number"&&typeof this._deferredInvalidateRowIndex=="number"){var n=this._deferredInvalidateColumnIndex,i=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:n,rowIndex:i})}}},{key:"_invokeOnScrollMemoizer",value:function(n){var i=this,o=n.scrollLeft,a=n.scrollTop,l=n.totalColumnsWidth,s=n.totalRowsHeight;this._onScrollMemoizer({callback:function(u){var d=u.scrollLeft,f=u.scrollTop,p=i.props,h=p.height,m=p.onScroll,b=p.width;m({clientHeight:h,clientWidth:b,scrollHeight:s,scrollLeft:d,scrollTop:f,scrollWidth:l})},indices:{scrollLeft:o,scrollTop:a}})}},{key:"_isScrolling",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state;return Object.hasOwnProperty.call(n,"isScrolling")?!!n.isScrolling:!!i.isScrolling}},{key:"_maybeCallOnScrollbarPresenceChange",value:function(){if(this._scrollbarPresenceChanged){var n=this.props.onScrollbarPresenceChange;this._scrollbarPresenceChanged=!1,n({horizontal:this._horizontalScrollBarSize>0,size:this.state.instanceProps.scrollbarSize,vertical:this._verticalScrollBarSize>0})}}},{key:"scrollToPosition",value:function(n){var i=n.scrollLeft,o=n.scrollTop,a=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:i,scrollTop:o});a&&(a.needToResetStyleCache=!1,this.setState(a))}},{key:"_getCalculatedScrollLeft",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state;return t._getCalculatedScrollLeft(n,i)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state,o=t._getScrollLeftForScrollToColumnStateUpdate(n,i);o&&(o.needToResetStyleCache=!1,this.setState(o))}},{key:"_getCalculatedScrollTop",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state;return t._getCalculatedScrollTop(n,i)}},{key:"_resetStyleCache",value:function(){var n=this._styleCache,i=this._cellCache,o=this.props.isScrollingOptOut;this._cellCache={},this._styleCache={};for(var a=this._rowStartIndex;a<=this._rowStopIndex;a++)for(var l=this._columnStartIndex;l<=this._columnStopIndex;l++){var s="".concat(a,"-").concat(l);this._styleCache[s]=n[s],o&&(this._cellCache[s]=i[s])}}},{key:"_updateScrollTopForScrollToRow",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state,o=t._getScrollTopForScrollToRowStateUpdate(n,i);o&&(o.needToResetStyleCache=!1,this.setState(o))}}],[{key:"getDerivedStateFromProps",value:function(n,i){var o={};n.columnCount===0&&i.scrollLeft!==0||n.rowCount===0&&i.scrollTop!==0?(o.scrollLeft=0,o.scrollTop=0):(n.scrollLeft!==i.scrollLeft&&n.scrollToColumn<0||n.scrollTop!==i.scrollTop&&n.scrollToRow<0)&&Object.assign(o,t._getScrollToPositionStateUpdate({prevState:i,scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}));var a=i.instanceProps;o.needToResetStyleCache=!1,(n.columnWidth!==a.prevColumnWidth||n.rowHeight!==a.prevRowHeight)&&(o.needToResetStyleCache=!0),a.columnSizeAndPositionManager.configure({cellCount:n.columnCount,estimatedCellSize:t._getEstimatedColumnSize(n),cellSizeGetter:t._wrapSizeGetter(n.columnWidth)}),a.rowSizeAndPositionManager.configure({cellCount:n.rowCount,estimatedCellSize:t._getEstimatedRowSize(n),cellSizeGetter:t._wrapSizeGetter(n.rowHeight)}),(a.prevColumnCount===0||a.prevRowCount===0)&&(a.prevColumnCount=0,a.prevRowCount=0),n.autoHeight&&n.isScrolling===!1&&a.prevIsScrolling===!0&&Object.assign(o,{isScrolling:!1});var l,s;return _l({cellCount:a.prevColumnCount,cellSize:typeof a.prevColumnWidth=="number"?a.prevColumnWidth:null,computeMetadataCallback:function(){return a.columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:n,nextCellsCount:n.columnCount,nextCellSize:typeof n.columnWidth=="number"?n.columnWidth:null,nextScrollToIndex:n.scrollToColumn,scrollToIndex:a.prevScrollToColumn,updateScrollOffsetForScrollToIndex:function(){l=t._getScrollLeftForScrollToColumnStateUpdate(n,i)}}),_l({cellCount:a.prevRowCount,cellSize:typeof a.prevRowHeight=="number"?a.prevRowHeight:null,computeMetadataCallback:function(){return a.rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:n,nextCellsCount:n.rowCount,nextCellSize:typeof n.rowHeight=="number"?n.rowHeight:null,nextScrollToIndex:n.scrollToRow,scrollToIndex:a.prevScrollToRow,updateScrollOffsetForScrollToIndex:function(){s=t._getScrollTopForScrollToRowStateUpdate(n,i)}}),a.prevColumnCount=n.columnCount,a.prevColumnWidth=n.columnWidth,a.prevIsScrolling=n.isScrolling===!0,a.prevRowCount=n.rowCount,a.prevRowHeight=n.rowHeight,a.prevScrollToColumn=n.scrollToColumn,a.prevScrollToRow=n.scrollToRow,a.scrollbarSize=n.getScrollbarSize(),a.scrollbarSize===void 0?(a.scrollbarSizeMeasured=!1,a.scrollbarSize=0):a.scrollbarSizeMeasured=!0,o.instanceProps=a,$e($e($e({},o),l),s)}},{key:"_getEstimatedColumnSize",value:function(n){return typeof n.columnWidth=="number"?n.columnWidth:n.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(n){return typeof n.rowHeight=="number"?n.rowHeight:n.estimatedRowSize}},{key:"_getScrollToPositionStateUpdate",value:function(n){var i=n.prevState,o=n.scrollLeft,a=n.scrollTop,l={scrollPositionChangeReason:yi.REQUESTED};return typeof o=="number"&&o>=0&&(l.scrollDirectionHorizontal=o>i.scrollLeft?ct:hn,l.scrollLeft=o),typeof a=="number"&&a>=0&&(l.scrollDirectionVertical=a>i.scrollTop?ct:hn,l.scrollTop=a),typeof o=="number"&&o>=0&&o!==i.scrollLeft||typeof a=="number"&&a>=0&&a!==i.scrollTop?l:{}}},{key:"_wrapSizeGetter",value:function(n){return typeof n=="function"?n:function(){return n}}},{key:"_getCalculatedScrollLeft",value:function(n,i){var o=n.columnCount,a=n.height,l=n.scrollToAlignment,s=n.scrollToColumn,c=n.width,u=i.scrollLeft,d=i.instanceProps;if(o>0){var f=o-1,p=s<0?f:Math.min(f,s),h=d.rowSizeAndPositionManager.getTotalSize(),m=d.scrollbarSizeMeasured&&h>a?d.scrollbarSize:0;return d.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:l,containerSize:c-m,currentOffset:u,targetIndex:p})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(n,i){var o=i.scrollLeft,a=t._getCalculatedScrollLeft(n,i);return typeof a=="number"&&a>=0&&o!==a?t._getScrollToPositionStateUpdate({prevState:i,scrollLeft:a,scrollTop:-1}):{}}},{key:"_getCalculatedScrollTop",value:function(n,i){var o=n.height,a=n.rowCount,l=n.scrollToAlignment,s=n.scrollToRow,c=n.width,u=i.scrollTop,d=i.instanceProps;if(a>0){var f=a-1,p=s<0?f:Math.min(f,s),h=d.columnSizeAndPositionManager.getTotalSize(),m=d.scrollbarSizeMeasured&&h>c?d.scrollbarSize:0;return d.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:l,containerSize:o-m,currentOffset:u,targetIndex:p})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(n,i){var o=i.scrollTop,a=t._getCalculatedScrollTop(n,i);return typeof a=="number"&&a>=0&&o!==a?t._getScrollToPositionStateUpdate({prevState:i,scrollLeft:-1,scrollTop:a}):{}}}])})(v.PureComponent);M(bt,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:Lv,containerRole:"row",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:no,noContentRenderer:Gv,onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:Av,overscanRowCount:10,role:"grid",scrollingResetTimeInterval:$v,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1});Zr(bt);var Wv=1;function du(e){var t=e.cellCount,r=e.overscanCellsCount,n=e.scrollDirection,i=e.startIndex,o=e.stopIndex;return r=Math.max(1,r),n===Wv?{overscanStartIndex:Math.max(0,i-1),overscanStopIndex:Math.min(t-1,o+r)}:{overscanStartIndex:Math.max(0,i-r),overscanStopIndex:Math.min(t-1,o+1)}}function Hv(e){if(Array.isArray(e))return Xh(e)}function Uv(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Vv(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
50
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fu(e){return Hv(e)||Uv(e)||Fc(e)||Vv()}function qv(e,t,r){return t=pe(t),Be(e,pu()?Reflect.construct(t,r||[],pe(e).constructor):t.apply(e,r))}function pu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(pu=function(){return!!e})()}var hu=(function(e){function t(r,n){var i;return Ce(this,t),i=qv(this,t,[r,n]),i._loadMoreRowsMemoizer=or(),i._onRowsRendered=i._onRowsRendered.bind(i),i._registerChild=i._registerChild.bind(i),i}return Fe(t,e),Se(t,[{key:"resetLoadMoreRowsCache",value:function(n){this._loadMoreRowsMemoizer=or(),n&&this._doStuff(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"render",value:function(){var n=this.props.children;return n({onRowsRendered:this._onRowsRendered,registerChild:this._registerChild})}},{key:"_loadUnloadedRanges",value:function(n){var i=this,o=this.props.loadMoreRows;n.forEach(function(a){var l=o(a);l&&l.then(function(){Kv({lastRenderedStartIndex:i._lastRenderedStartIndex,lastRenderedStopIndex:i._lastRenderedStopIndex,startIndex:a.startIndex,stopIndex:a.stopIndex})&&i._registeredChild&&Jv(i._registeredChild,i._lastRenderedStartIndex)})})}},{key:"_onRowsRendered",value:function(n){var i=n.startIndex,o=n.stopIndex;this._lastRenderedStartIndex=i,this._lastRenderedStopIndex=o,this._doStuff(i,o)}},{key:"_doStuff",value:function(n,i){var o,a=this,l=this.props,s=l.isRowLoaded,c=l.minimumBatchSize,u=l.rowCount,d=l.threshold,f=Yv({isRowLoaded:s,minimumBatchSize:c,rowCount:u,startIndex:Math.max(0,n-d),stopIndex:Math.min(u-1,i+d)}),p=(o=[]).concat.apply(o,fu(f.map(function(h){var m=h.startIndex,b=h.stopIndex;return[m,b]})));this._loadMoreRowsMemoizer({callback:function(){a._loadUnloadedRanges(f)},indices:{squashedUnloadedRanges:p}})}},{key:"_registerChild",value:function(n){this._registeredChild=n}}])})(v.PureComponent);M(hu,"defaultProps",{minimumBatchSize:10,rowCount:0,threshold:15});hu.propTypes={};function Kv(e){var t=e.lastRenderedStartIndex,r=e.lastRenderedStopIndex,n=e.startIndex,i=e.stopIndex;return!(n>r||i<t)}function Yv(e){for(var t=e.isRowLoaded,r=e.minimumBatchSize,n=e.rowCount,i=e.startIndex,o=e.stopIndex,a=[],l=null,s=null,c=i;c<=o;c++){var u=t({index:c});u?s!==null&&(a.push({startIndex:l,stopIndex:s}),l=s=null):(s=c,l===null&&(l=c))}if(s!==null){for(var d=Math.min(Math.max(s,l+r-1),n-1),f=s+1;f<=d&&!t({index:f});f++)s=f;a.push({startIndex:l,stopIndex:s})}if(a.length)for(var p=a[0];p.stopIndex-p.startIndex+1<r&&p.startIndex>0;){var h=p.startIndex-1;if(!t({index:h}))p.startIndex=h;else break}return a}function Jv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=typeof e.recomputeGridSize=="function"?e.recomputeGridSize:e.recomputeRowHeights;r?r.call(e,t):e.forceUpdate()}function Qv(e,t,r){return t=pe(t),Be(e,gu()?Reflect.construct(t,r||[],pe(e).constructor):t.apply(e,r))}function gu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gu=function(){return!!e})()}var vu=(function(e){function t(){var r;Ce(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=Qv(this,t,[].concat(i)),M(r,"Grid",void 0),M(r,"_cellRenderer",function(a){var l=a.parent,s=a.rowIndex,c=a.style,u=a.isScrolling,d=a.isVisible,f=a.key,p=r.props.rowRenderer,h=Object.getOwnPropertyDescriptor(c,"width");return h&&h.writable&&(c.width="100%"),p({index:s,style:c,isScrolling:u,isVisible:d,key:f,parent:l})}),M(r,"_setRef",function(a){r.Grid=a}),M(r,"_onScroll",function(a){var l=a.clientHeight,s=a.scrollHeight,c=a.scrollTop,u=r.props.onScroll;u({clientHeight:l,scrollHeight:s,scrollTop:c})}),M(r,"_onSectionRendered",function(a){var l=a.rowOverscanStartIndex,s=a.rowOverscanStopIndex,c=a.rowStartIndex,u=a.rowStopIndex,d=r.props.onRowsRendered;d({overscanStartIndex:l,overscanStopIndex:s,startIndex:c,stopIndex:u})}),r}return Fe(t,e),Se(t,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(n){var i=n.alignment,o=n.index;if(this.Grid){var a=this.Grid.getOffsetForCell({alignment:i,rowIndex:o,columnIndex:0}),l=a.scrollTop;return l}return 0}},{key:"invalidateCellSizeAfterRender",value:function(n){var i=n.columnIndex,o=n.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:o,columnIndex:i})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=n.columnIndex,o=i===void 0?0:i,a=n.rowIndex,l=a===void 0?0:a;this.Grid&&this.Grid.recomputeGridSize({rowIndex:l,columnIndex:o})}},{key:"recomputeRowHeights",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:n,columnIndex:0})}},{key:"scrollToPosition",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:n})}},{key:"scrollToRow",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:n})}},{key:"render",value:function(){var n=this.props,i=n.className,o=n.noRowsRenderer,a=n.scrollToIndex,l=n.width,s=Ze("ReactVirtualized__List",i);return v.createElement(bt,q({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:s,columnWidth:l,columnCount:1,noContentRenderer:o,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:a}))}}])})(v.PureComponent);M(vu,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:du,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});function Xv(e){if(Array.isArray(e))return e}function Zv(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,l=[],s=!0,c=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(s=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(u){c=!0,i=u}finally{try{if(!s&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}function em(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
51
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tm(e,t){return Xv(e)||Zv(e,t)||Fc(e,t)||em()}function rm(e,t,r,n){for(var i=r+1;t<=r;){var o=t+r>>>1,a=e[o];a>=n?(i=o,r=o-1):t=o+1}return i}function nm(e,t,r,n,i){for(var o=r+1;t<=r;){var a=t+r>>>1,l=e[a];i(l,n)>=0?(o=a,r=a-1):t=a+1}return o}function im(e,t,r,n,i){return typeof r=="function"?nm(e,n===void 0?0:n|0,i===void 0?e.length-1:i|0,t,r):rm(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}function om(e,t,r,n){for(var i=r+1;t<=r;){var o=t+r>>>1,a=e[o];a>n?(i=o,r=o-1):t=o+1}return i}function am(e,t,r,n,i){for(var o=r+1;t<=r;){var a=t+r>>>1,l=e[a];i(l,n)>0?(o=a,r=a-1):t=a+1}return o}function lm(e,t,r,n,i){return typeof r=="function"?am(e,n===void 0?0:n|0,i===void 0?e.length-1:i|0,t,r):om(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}function sm(e,t,r,n){for(var i=t-1;t<=r;){var o=t+r>>>1,a=e[o];a<n?(i=o,t=o+1):r=o-1}return i}function cm(e,t,r,n,i){for(var o=t-1;t<=r;){var a=t+r>>>1,l=e[a];i(l,n)<0?(o=a,t=a+1):r=a-1}return o}function um(e,t,r,n,i){return typeof r=="function"?cm(e,n===void 0?0:n|0,i===void 0?e.length-1:i|0,t,r):sm(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}function dm(e,t,r,n){for(var i=t-1;t<=r;){var o=t+r>>>1,a=e[o];a<=n?(i=o,t=o+1):r=o-1}return i}function fm(e,t,r,n,i){for(var o=t-1;t<=r;){var a=t+r>>>1,l=e[a];i(l,n)<=0?(o=a,t=a+1):r=a-1}return o}function pm(e,t,r,n,i){return typeof r=="function"?fm(e,n===void 0?0:n|0,i===void 0?e.length-1:i|0,t,r):dm(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}function hm(e,t,r,n){for(;t<=r;){var i=t+r>>>1,o=e[i];if(o===n)return i;o<=n?t=i+1:r=i-1}return-1}function gm(e,t,r,n,i){for(;t<=r;){var o=t+r>>>1,a=e[o],l=i(a,n);if(l===0)return o;l<=0?t=o+1:r=o-1}return-1}function vm(e,t,r,n,i){return typeof r=="function"?gm(e,n===void 0?0:n|0,i===void 0?e.length-1:i|0,t,r):hm(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}const zn={ge:im,gt:lm,lt:um,le:pm,eq:vm};var Zt=0,Ot=1,_n=2;function Uo(e,t,r,n,i){this.mid=e,this.left=t,this.right=r,this.leftPoints=n,this.rightPoints=i,this.count=(t?t.count:0)+(r?r.count:0)+n.length}var en=Uo.prototype;function xi(e,t){e.mid=t.mid,e.left=t.left,e.right=t.right,e.leftPoints=t.leftPoints,e.rightPoints=t.rightPoints,e.count=t.count}function mu(e,t){var r=Wr(t);e.mid=r.mid,e.left=r.left,e.right=r.right,e.leftPoints=r.leftPoints,e.rightPoints=r.rightPoints,e.count=r.count}function Pl(e,t){var r=e.intervals([]);r.push(t),mu(e,r)}function Ol(e,t){var r=e.intervals([]),n=r.indexOf(t);return n<0?Zt:(r.splice(n,1),mu(e,r),Ot)}en.intervals=function(e){return e.push.apply(e,this.leftPoints),this.left&&this.left.intervals(e),this.right&&this.right.intervals(e),e};en.insert=function(e){var t=this.count-this.leftPoints.length;if(this.count+=1,e[1]<this.mid)this.left?4*(this.left.count+1)>3*(t+1)?Pl(this,e):this.left.insert(e):this.left=Wr([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?Pl(this,e):this.right.insert(e):this.right=Wr([e]);else{var r=zn.ge(this.leftPoints,e,Vo),n=zn.ge(this.rightPoints,e,qo);this.leftPoints.splice(r,0,e),this.rightPoints.splice(n,0,e)}};en.remove=function(e){var t=this.count-this.leftPoints;if(e[1]<this.mid){if(!this.left)return Zt;var r=this.right?this.right.count:0;if(4*r>3*(t-1))return Ol(this,e);var n=this.left.remove(e);return n===_n?(this.left=null,this.count-=1,Ot):(n===Ot&&(this.count-=1),n)}else if(e[0]>this.mid){if(!this.right)return Zt;var i=this.left?this.left.count:0;if(4*i>3*(t-1))return Ol(this,e);var n=this.right.remove(e);return n===_n?(this.right=null,this.count-=1,Ot):(n===Ot&&(this.count-=1),n)}else{if(this.count===1)return this.leftPoints[0]===e?_n:Zt;if(this.leftPoints.length===1&&this.leftPoints[0]===e){if(this.left&&this.right){for(var o=this,a=this.left;a.right;)o=a,a=a.right;if(o===this)a.right=this.right;else{var l=this.left,n=this.right;o.count-=a.count,o.right=a.left,a.left=l,a.right=n}xi(this,a),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?xi(this,this.left):xi(this,this.right);return Ot}for(var l=zn.ge(this.leftPoints,e,Vo);l<this.leftPoints.length&&this.leftPoints[l][0]===e[0];++l)if(this.leftPoints[l]===e){this.count-=1,this.leftPoints.splice(l,1);for(var n=zn.ge(this.rightPoints,e,qo);n<this.rightPoints.length&&this.rightPoints[n][1]===e[1];++n)if(this.rightPoints[n]===e)return this.rightPoints.splice(n,1),Ot}return Zt}};function bu(e,t,r){for(var n=0;n<e.length&&e[n][0]<=t;++n){var i=r(e[n]);if(i)return i}}function yu(e,t,r){for(var n=e.length-1;n>=0&&e[n][1]>=t;--n){var i=r(e[n]);if(i)return i}}function xu(e,t){for(var r=0;r<e.length;++r){var n=t(e[r]);if(n)return n}}en.queryPoint=function(e,t){if(e<this.mid){if(this.left){var r=this.left.queryPoint(e,t);if(r)return r}return bu(this.leftPoints,e,t)}else if(e>this.mid){if(this.right){var r=this.right.queryPoint(e,t);if(r)return r}return yu(this.rightPoints,e,t)}else return xu(this.leftPoints,t)};en.queryInterval=function(e,t,r){if(e<this.mid&&this.left){var n=this.left.queryInterval(e,t,r);if(n)return n}if(t>this.mid&&this.right){var n=this.right.queryInterval(e,t,r);if(n)return n}return t<this.mid?bu(this.leftPoints,t,r):e>this.mid?yu(this.rightPoints,e,r):xu(this.leftPoints,r)};function mm(e,t){return e-t}function Vo(e,t){var r=e[0]-t[0];return r||e[1]-t[1]}function qo(e,t){var r=e[1]-t[1];return r||e[0]-t[0]}function Wr(e){if(e.length===0)return null;for(var t=[],r=0;r<e.length;++r)t.push(e[r][0],e[r][1]);t.sort(mm);for(var n=t[t.length>>1],i=[],o=[],a=[],r=0;r<e.length;++r){var l=e[r];l[1]<n?i.push(l):n<l[0]?o.push(l):a.push(l)}var s=a,c=a.slice();return s.sort(Vo),c.sort(qo),new Uo(n,Wr(i),Wr(o),s,c)}function Su(e){this.root=e}var fr=Su.prototype;fr.insert=function(e){this.root?this.root.insert(e):this.root=new Uo(e[0],null,null,[e],[e])};fr.remove=function(e){if(this.root){var t=this.root.remove(e);return t===_n&&(this.root=null),t!==Zt}return!1};fr.queryPoint=function(e,t){if(this.root)return this.root.queryPoint(e,t)};fr.queryInterval=function(e,t,r){if(e<=t&&this.root)return this.root.queryInterval(e,t,r)};Object.defineProperty(fr,"count",{get:function(){return this.root?this.root.count:0}});Object.defineProperty(fr,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});function bm(e){return new Su(null)}var Si=(function(){function e(){Ce(this,e),M(this,"_columnSizeMap",{}),M(this,"_intervalTree",bm()),M(this,"_leftMap",{})}return Se(e,[{key:"estimateTotalHeight",value:function(r,n,i){var o=r-this.count;return this.tallestColumnSize+Math.ceil(o/n)*i}},{key:"range",value:function(r,n,i){var o=this;this._intervalTree.queryInterval(r,r+n,function(a){var l=tm(a,3),s=l[0];l[1];var c=l[2];return i(c,o._leftMap[c],s)})}},{key:"setPosition",value:function(r,n,i,o){this._intervalTree.insert([i,i+o,r]),this._leftMap[r]=n;var a=this._columnSizeMap,l=a[n];l===void 0?a[n]=i+o:a[n]=Math.max(l,i+o)}},{key:"count",get:function(){return this._intervalTree.count}},{key:"shortestColumnSize",get:function(){var r=this._columnSizeMap,n=0;for(var i in r){var o=r[i];n=n===0?o:Math.min(n,o)}return n}},{key:"tallestColumnSize",get:function(){var r=this._columnSizeMap,n=0;for(var i in r){var o=r[i];n=Math.max(n,o)}return n}}])})();function Nl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ym(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Nl(Object(r),!0).forEach(function(n){M(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xm(e,t,r){return t=pe(t),Be(e,wu()?Reflect.construct(t,r||[],pe(e).constructor):t.apply(e,r))}function wu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(wu=function(){return!!e})()}var Sm={},wm=150,Cu=(function(e){function t(){var r;Ce(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=xm(this,t,[].concat(i)),M(r,"state",{isScrolling:!1,scrollTop:0}),M(r,"_debounceResetIsScrollingId",void 0),M(r,"_invalidateOnUpdateStartIndex",null),M(r,"_invalidateOnUpdateStopIndex",null),M(r,"_positionCache",new Si),M(r,"_startIndex",null),M(r,"_startIndexMemoized",null),M(r,"_stopIndex",null),M(r,"_stopIndexMemoized",null),M(r,"_debounceResetIsScrollingCallback",function(){r.setState({isScrolling:!1})}),M(r,"_setScrollingContainerRef",function(a){r._scrollingContainer=a}),M(r,"_onScroll",function(a){var l=r.props.height,s=a.currentTarget.scrollTop,c=Math.min(Math.max(0,r._getEstimatedTotalHeight()-l),s);s===c&&(r._debounceResetIsScrolling(),r.state.scrollTop!==c&&r.setState({isScrolling:!0,scrollTop:c}))}),r}return Fe(t,e),Se(t,[{key:"clearCellPositions",value:function(){this._positionCache=new Si,this.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(n){var i=n.rowIndex;this._invalidateOnUpdateStartIndex===null?(this._invalidateOnUpdateStartIndex=i,this._invalidateOnUpdateStopIndex=i):(this._invalidateOnUpdateStartIndex=Math.min(this._invalidateOnUpdateStartIndex,i),this._invalidateOnUpdateStopIndex=Math.max(this._invalidateOnUpdateStopIndex,i))}},{key:"recomputeCellPositions",value:function(){var n=this._positionCache.count-1;this._positionCache=new Si,this._populatePositionCache(0,n),this.forceUpdate()}},{key:"componentDidMount",value:function(){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback()}},{key:"componentDidUpdate",value:function(n,i){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback(),this.props.scrollTop!==n.scrollTop&&this._debounceResetIsScrolling()}},{key:"componentWillUnmount",value:function(){this._debounceResetIsScrollingId&&ar(this._debounceResetIsScrollingId)}},{key:"render",value:function(){var n=this,i=this.props,o=i.autoHeight,a=i.cellCount,l=i.cellMeasurerCache,s=i.cellRenderer,c=i.className,u=i.height,d=i.id,f=i.keyMapper,p=i.overscanByPixels,h=i.role,m=i.style,b=i.tabIndex,y=i.width,x=i.rowDirection,_=this.state,T=_.isScrolling,k=_.scrollTop,C=[],D=this._getEstimatedTotalHeight(),w=this._positionCache.shortestColumnSize,R=this._positionCache.count,I=0,P;if(this._positionCache.range(Math.max(0,k-p),u+p*2,function(G,z,F){typeof P>"u"?(I=G,P=G):(I=Math.min(I,G),P=Math.max(P,G)),C.push(s({index:G,isScrolling:T,key:f(G),parent:n,style:M(M(M(M({height:l.getHeight(G)},x==="ltr"?"left":"right",z),"position","absolute"),"top",F),"width",l.getWidth(G))}))}),w<k+u+p&&R<a)for(var L=Math.min(a-R,Math.ceil((k+u+p-w)/l.defaultHeight*y/l.defaultWidth)),N=R;N<R+L;N++)P=N,C.push(s({index:N,isScrolling:T,key:f(N),parent:this,style:{width:l.getWidth(N)}}));return this._startIndex=I,this._stopIndex=P,v.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:Ze("ReactVirtualized__Masonry",c),id:d,onScroll:this._onScroll,role:h,style:ym({boxSizing:"border-box",direction:"ltr",height:o?"auto":u,overflowX:"hidden",overflowY:D<u?"hidden":"auto",position:"relative",width:y,WebkitOverflowScrolling:"touch",willChange:"transform"},m),tabIndex:b},v.createElement("div",{className:"ReactVirtualized__Masonry__innerScrollContainer",style:{width:"100%",height:D,maxWidth:"100%",maxHeight:D,overflow:"hidden",pointerEvents:T?"none":"",position:"relative"}},C))}},{key:"_checkInvalidateOnUpdate",value:function(){if(typeof this._invalidateOnUpdateStartIndex=="number"){var n=this._invalidateOnUpdateStartIndex,i=this._invalidateOnUpdateStopIndex;this._invalidateOnUpdateStartIndex=null,this._invalidateOnUpdateStopIndex=null,this._populatePositionCache(n,i),this.forceUpdate()}}},{key:"_debounceResetIsScrolling",value:function(){var n=this.props.scrollingResetTimeInterval;this._debounceResetIsScrollingId&&ar(this._debounceResetIsScrollingId),this._debounceResetIsScrollingId=Ho(this._debounceResetIsScrollingCallback,n)}},{key:"_getEstimatedTotalHeight",value:function(){var n=this.props,i=n.cellCount,o=n.cellMeasurerCache,a=n.width,l=Math.max(1,Math.floor(a/o.defaultWidth));return this._positionCache.estimateTotalHeight(i,l,o.defaultHeight)}},{key:"_invokeOnScrollCallback",value:function(){var n=this.props,i=n.height,o=n.onScroll,a=this.state.scrollTop;this._onScrollMemoized!==a&&(o({clientHeight:i,scrollHeight:this._getEstimatedTotalHeight(),scrollTop:a}),this._onScrollMemoized=a)}},{key:"_invokeOnCellsRenderedCallback",value:function(){if(this._startIndexMemoized!==this._startIndex||this._stopIndexMemoized!==this._stopIndex){var n=this.props.onCellsRendered;n({startIndex:this._startIndex,stopIndex:this._stopIndex}),this._startIndexMemoized=this._startIndex,this._stopIndexMemoized=this._stopIndex}}},{key:"_populatePositionCache",value:function(n,i){for(var o=this.props,a=o.cellMeasurerCache,l=o.cellPositioner,s=n;s<=i;s++){var c=l(s),u=c.left,d=c.top;this._positionCache.setPosition(s,u,d,a.getHeight(s))}}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.scrollTop!==void 0&&i.scrollTop!==n.scrollTop?{isScrolling:!0,scrollTop:n.scrollTop}:null}}])})(v.PureComponent);M(Cu,"defaultProps",{autoHeight:!1,keyMapper:Cm,onCellsRendered:Ml,onScroll:Ml,overscanByPixels:20,role:"grid",scrollingResetTimeInterval:wm,style:Sm,tabIndex:0,rowDirection:"ltr"});function Cm(e){return e}function Ml(){}Zr(Cu);var wi=(function(){function e(){var t=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ce(this,e),M(this,"_cellMeasurerCache",void 0),M(this,"_columnIndexOffset",void 0),M(this,"_rowIndexOffset",void 0),M(this,"columnWidth",function(s){var c=s.index;t._cellMeasurerCache.columnWidth({index:c+t._columnIndexOffset})}),M(this,"rowHeight",function(s){var c=s.index;t._cellMeasurerCache.rowHeight({index:c+t._rowIndexOffset})});var n=r.cellMeasurerCache,i=r.columnIndexOffset,o=i===void 0?0:i,a=r.rowIndexOffset,l=a===void 0?0:a;this._cellMeasurerCache=n,this._columnIndexOffset=o,this._rowIndexOffset=l}return Se(e,[{key:"clear",value:function(r,n){this._cellMeasurerCache.clear(r+this._rowIndexOffset,n+this._columnIndexOffset)}},{key:"clearAll",value:function(){this._cellMeasurerCache.clearAll()}},{key:"defaultHeight",get:function(){return this._cellMeasurerCache.defaultHeight}},{key:"defaultWidth",get:function(){return this._cellMeasurerCache.defaultWidth}},{key:"hasFixedHeight",value:function(){return this._cellMeasurerCache.hasFixedHeight()}},{key:"hasFixedWidth",value:function(){return this._cellMeasurerCache.hasFixedWidth()}},{key:"getHeight",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this._cellMeasurerCache.getHeight(r+this._rowIndexOffset,n+this._columnIndexOffset)}},{key:"getWidth",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this._cellMeasurerCache.getWidth(r+this._rowIndexOffset,n+this._columnIndexOffset)}},{key:"has",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this._cellMeasurerCache.has(r+this._rowIndexOffset,n+this._columnIndexOffset)}},{key:"set",value:function(r,n,i,o){this._cellMeasurerCache.set(r+this._rowIndexOffset,n+this._columnIndexOffset,i,o)}}])})(),Im=["rowIndex"],Rm=["columnIndex","rowIndex"],_m=["columnIndex"],Dm=["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"];function Al(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ve(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Al(Object(r),!0).forEach(function(n){M(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Al(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Tm(e,t,r){return t=pe(t),Be(e,Iu()?Reflect.construct(t,r||[],pe(e).constructor):t.apply(e,r))}function Iu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Iu=function(){return!!e})()}var Ll=20,Ko=(function(e){function t(r,n){var i;Ce(this,t),i=Tm(this,t,[r,n]),M(i,"state",{scrollLeft:0,scrollTop:0,scrollbarSize:0,showHorizontalScrollbar:!1,showVerticalScrollbar:!1}),M(i,"_deferredInvalidateColumnIndex",null),M(i,"_deferredInvalidateRowIndex",null),M(i,"_bottomLeftGridRef",function(s){i._bottomLeftGrid=s}),M(i,"_bottomRightGridRef",function(s){i._bottomRightGrid=s}),M(i,"_cellRendererBottomLeftGrid",function(s){var c=s.rowIndex,u=Xt(s,Im),d=i.props,f=d.cellRenderer,p=d.fixedRowCount,h=d.rowCount;return c===h-p?v.createElement("div",{key:u.key,style:ve(ve({},u.style),{},{height:Ll})}):f(ve(ve({},u),{},{parent:i,rowIndex:c+p}))}),M(i,"_cellRendererBottomRightGrid",function(s){var c=s.columnIndex,u=s.rowIndex,d=Xt(s,Rm),f=i.props,p=f.cellRenderer,h=f.fixedColumnCount,m=f.fixedRowCount;return p(ve(ve({},d),{},{columnIndex:c+h,parent:i,rowIndex:u+m}))}),M(i,"_cellRendererTopRightGrid",function(s){var c=s.columnIndex,u=Xt(s,_m),d=i.props,f=d.cellRenderer,p=d.columnCount,h=d.fixedColumnCount;return c===p-h?v.createElement("div",{key:u.key,style:ve(ve({},u.style),{},{width:Ll})}):f(ve(ve({},u),{},{columnIndex:c+h,parent:i}))}),M(i,"_columnWidthRightGrid",function(s){var c=s.index,u=i.props,d=u.columnCount,f=u.fixedColumnCount,p=u.columnWidth,h=i.state,m=h.scrollbarSize,b=h.showHorizontalScrollbar;return b&&c===d-f?m:typeof p=="function"?p({index:c+f}):p}),M(i,"_onScroll",function(s){var c=s.scrollLeft,u=s.scrollTop;i.setState({scrollLeft:c,scrollTop:u});var d=i.props.onScroll;d&&d(s)}),M(i,"_onScrollbarPresenceChange",function(s){var c=s.horizontal,u=s.size,d=s.vertical,f=i.state,p=f.showHorizontalScrollbar,h=f.showVerticalScrollbar;if(c!==p||d!==h){i.setState({scrollbarSize:u,showHorizontalScrollbar:c,showVerticalScrollbar:d});var m=i.props.onScrollbarPresenceChange;typeof m=="function"&&m({horizontal:c,size:u,vertical:d})}}),M(i,"_onScrollLeft",function(s){var c=s.scrollLeft;i._onScroll({scrollLeft:c,scrollTop:i.state.scrollTop})}),M(i,"_onScrollTop",function(s){var c=s.scrollTop;i._onScroll({scrollTop:c,scrollLeft:i.state.scrollLeft})}),M(i,"_rowHeightBottomGrid",function(s){var c=s.index,u=i.props,d=u.fixedRowCount,f=u.rowCount,p=u.rowHeight,h=i.state,m=h.scrollbarSize,b=h.showVerticalScrollbar;return b&&c===f-d?m:typeof p=="function"?p({index:c+d}):p}),M(i,"_topLeftGridRef",function(s){i._topLeftGrid=s}),M(i,"_topRightGridRef",function(s){i._topRightGrid=s});var o=r.deferredMeasurementCache,a=r.fixedColumnCount,l=r.fixedRowCount;return i._maybeCalculateCachedStyles(!0),o&&(i._deferredMeasurementCacheBottomLeftGrid=l>0?new wi({cellMeasurerCache:o,columnIndexOffset:0,rowIndexOffset:l}):o,i._deferredMeasurementCacheBottomRightGrid=a>0||l>0?new wi({cellMeasurerCache:o,columnIndexOffset:a,rowIndexOffset:l}):o,i._deferredMeasurementCacheTopRightGrid=a>0?new wi({cellMeasurerCache:o,columnIndexOffset:a,rowIndexOffset:0}):o),i}return Fe(t,e),Se(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=n.columnIndex,o=i===void 0?0:i,a=n.rowIndex,l=a===void 0?0:a;this._deferredInvalidateColumnIndex=typeof this._deferredInvalidateColumnIndex=="number"?Math.min(this._deferredInvalidateColumnIndex,o):o,this._deferredInvalidateRowIndex=typeof this._deferredInvalidateRowIndex=="number"?Math.min(this._deferredInvalidateRowIndex,l):l}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=n.columnIndex,o=i===void 0?0:i,a=n.rowIndex,l=a===void 0?0:a,s=this.props,c=s.fixedColumnCount,u=s.fixedRowCount,d=Math.max(0,o-c),f=Math.max(0,l-u);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:o,rowIndex:f}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:d,rowIndex:f}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:o,rowIndex:l}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:d,rowIndex:l}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(!0)}},{key:"componentDidMount",value:function(){var n=this.props,i=n.scrollLeft,o=n.scrollTop;if(i>0||o>0){var a={};i>0&&(a.scrollLeft=i),o>0&&(a.scrollTop=o),this.setState(a)}this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(){this._handleInvalidatedGridSize()}},{key:"render",value:function(){var n=this.props,i=n.onScroll,o=n.onSectionRendered;n.onScrollbarPresenceChange,n.scrollLeft;var a=n.scrollToColumn;n.scrollTop;var l=n.scrollToRow,s=Xt(n,Dm);if(this._prepareForRender(),this.props.width===0||this.props.height===0)return null;var c=this.state,u=c.scrollLeft,d=c.scrollTop;return v.createElement("div",{style:this._containerOuterStyle},v.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(s),this._renderTopRightGrid(ve(ve({},s),{},{onScroll:i,scrollLeft:u}))),v.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(ve(ve({},s),{},{onScroll:i,scrollTop:d})),this._renderBottomRightGrid(ve(ve({},s),{},{onScroll:i,onSectionRendered:o,scrollLeft:u,scrollToColumn:a,scrollToRow:l,scrollTop:d}))))}},{key:"_getBottomGridHeight",value:function(n){var i=n.height,o=this._getTopGridHeight(n);return i-o}},{key:"_getLeftGridWidth",value:function(n){var i=n.fixedColumnCount,o=n.columnWidth;if(this._leftGridWidth==null)if(typeof o=="function"){for(var a=0,l=0;l<i;l++)a+=o({index:l});this._leftGridWidth=a}else this._leftGridWidth=o*i;return this._leftGridWidth}},{key:"_getRightGridWidth",value:function(n){var i=n.width,o=this._getLeftGridWidth(n);return i-o}},{key:"_getTopGridHeight",value:function(n){var i=n.fixedRowCount,o=n.rowHeight;if(this._topGridHeight==null)if(typeof o=="function"){for(var a=0,l=0;l<i;l++)a+=o({index:l});this._topGridHeight=a}else this._topGridHeight=o*i;return this._topGridHeight}},{key:"_handleInvalidatedGridSize",value:function(){if(typeof this._deferredInvalidateColumnIndex=="number"){var n=this._deferredInvalidateColumnIndex,i=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:n,rowIndex:i}),this.forceUpdate()}}},{key:"_maybeCalculateCachedStyles",value:function(n){var i=this.props,o=i.columnWidth,a=i.enableFixedColumnScroll,l=i.enableFixedRowScroll,s=i.height,c=i.fixedColumnCount,u=i.fixedRowCount,d=i.rowHeight,f=i.style,p=i.styleBottomLeftGrid,h=i.styleBottomRightGrid,m=i.styleTopLeftGrid,b=i.styleTopRightGrid,y=i.width,x=n||s!==this._lastRenderedHeight||y!==this._lastRenderedWidth,_=n||o!==this._lastRenderedColumnWidth||c!==this._lastRenderedFixedColumnCount,T=n||u!==this._lastRenderedFixedRowCount||d!==this._lastRenderedRowHeight;(n||x||f!==this._lastRenderedStyle)&&(this._containerOuterStyle=ve({height:s,overflow:"visible",width:y},f)),(n||x||T)&&(this._containerTopStyle={height:this._getTopGridHeight(this.props),position:"relative",width:y},this._containerBottomStyle={height:s-this._getTopGridHeight(this.props),overflow:"visible",position:"relative",width:y}),(n||p!==this._lastRenderedStyleBottomLeftGrid)&&(this._bottomLeftGridStyle=ve({left:0,overflowX:"hidden",overflowY:a?"auto":"hidden",position:"absolute"},p)),(n||_||h!==this._lastRenderedStyleBottomRightGrid)&&(this._bottomRightGridStyle=ve({left:this._getLeftGridWidth(this.props),position:"absolute"},h)),(n||m!==this._lastRenderedStyleTopLeftGrid)&&(this._topLeftGridStyle=ve({left:0,overflowX:"hidden",overflowY:"hidden",position:"absolute",top:0},m)),(n||_||b!==this._lastRenderedStyleTopRightGrid)&&(this._topRightGridStyle=ve({left:this._getLeftGridWidth(this.props),overflowX:l?"auto":"hidden",overflowY:"hidden",position:"absolute",top:0},b)),this._lastRenderedColumnWidth=o,this._lastRenderedFixedColumnCount=c,this._lastRenderedFixedRowCount=u,this._lastRenderedHeight=s,this._lastRenderedRowHeight=d,this._lastRenderedStyle=f,this._lastRenderedStyleBottomLeftGrid=p,this._lastRenderedStyleBottomRightGrid=h,this._lastRenderedStyleTopLeftGrid=m,this._lastRenderedStyleTopRightGrid=b,this._lastRenderedWidth=y}},{key:"_prepareForRender",value:function(){(this._lastRenderedColumnWidth!==this.props.columnWidth||this._lastRenderedFixedColumnCount!==this.props.fixedColumnCount)&&(this._leftGridWidth=null),(this._lastRenderedFixedRowCount!==this.props.fixedRowCount||this._lastRenderedRowHeight!==this.props.rowHeight)&&(this._topGridHeight=null),this._maybeCalculateCachedStyles(),this._lastRenderedColumnWidth=this.props.columnWidth,this._lastRenderedFixedColumnCount=this.props.fixedColumnCount,this._lastRenderedFixedRowCount=this.props.fixedRowCount,this._lastRenderedRowHeight=this.props.rowHeight}},{key:"_renderBottomLeftGrid",value:function(n){var i=n.enableFixedColumnScroll,o=n.fixedColumnCount,a=n.fixedRowCount,l=n.rowCount,s=n.hideBottomLeftGridScrollbar,c=this.state.showVerticalScrollbar;if(!o)return null;var u=c?1:0,d=this._getBottomGridHeight(n),f=this._getLeftGridWidth(n),p=this.state.showVerticalScrollbar?this.state.scrollbarSize:0,h=s?f+p:f,m=v.createElement(bt,q({},n,{cellRenderer:this._cellRendererBottomLeftGrid,className:this.props.classNameBottomLeftGrid,columnCount:o,deferredMeasurementCache:this._deferredMeasurementCacheBottomLeftGrid,height:d,onScroll:i?this._onScrollTop:void 0,ref:this._bottomLeftGridRef,rowCount:Math.max(0,l-a)+u,rowHeight:this._rowHeightBottomGrid,style:this._bottomLeftGridStyle,tabIndex:null,width:h}));return s?v.createElement("div",{className:"BottomLeftGrid_ScrollWrapper",style:ve(ve({},this._bottomLeftGridStyle),{},{height:d,width:f,overflowY:"hidden"})},m):m}},{key:"_renderBottomRightGrid",value:function(n){var i=n.columnCount,o=n.fixedColumnCount,a=n.fixedRowCount,l=n.rowCount,s=n.scrollToColumn,c=n.scrollToRow;return v.createElement(bt,q({},n,{cellRenderer:this._cellRendererBottomRightGrid,className:this.props.classNameBottomRightGrid,columnCount:Math.max(0,i-o),columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheBottomRightGrid,height:this._getBottomGridHeight(n),onScroll:this._onScroll,onScrollbarPresenceChange:this._onScrollbarPresenceChange,ref:this._bottomRightGridRef,rowCount:Math.max(0,l-a),rowHeight:this._rowHeightBottomGrid,scrollToColumn:s-o,scrollToRow:c-a,style:this._bottomRightGridStyle,width:this._getRightGridWidth(n)}))}},{key:"_renderTopLeftGrid",value:function(n){var i=n.fixedColumnCount,o=n.fixedRowCount;return!i||!o?null:v.createElement(bt,q({},n,{className:this.props.classNameTopLeftGrid,columnCount:i,height:this._getTopGridHeight(n),ref:this._topLeftGridRef,rowCount:o,style:this._topLeftGridStyle,tabIndex:null,width:this._getLeftGridWidth(n)}))}},{key:"_renderTopRightGrid",value:function(n){var i=n.columnCount,o=n.enableFixedRowScroll,a=n.fixedColumnCount,l=n.fixedRowCount,s=n.scrollLeft,c=n.hideTopRightGridScrollbar,u=this.state,d=u.showHorizontalScrollbar,f=u.scrollbarSize;if(!l)return null;var p=d?1:0,h=this._getTopGridHeight(n),m=this._getRightGridWidth(n),b=d?f:0,y=h,x=this._topRightGridStyle;c&&(y=h+b,x=ve(ve({},this._topRightGridStyle),{},{left:0}));var _=v.createElement(bt,q({},n,{cellRenderer:this._cellRendererTopRightGrid,className:this.props.classNameTopRightGrid,columnCount:Math.max(0,i-a)+p,columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheTopRightGrid,height:y,onScroll:o?this._onScrollLeft:void 0,ref:this._topRightGridRef,rowCount:l,scrollLeft:s,style:x,tabIndex:null,width:m}));return c?v.createElement("div",{className:"TopRightGrid_ScrollWrapper",style:ve(ve({},this._topRightGridStyle),{},{height:h,width:m,overflowX:"hidden"})},_):_}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.scrollLeft!==i.scrollLeft||n.scrollTop!==i.scrollTop?{scrollLeft:n.scrollLeft!=null&&n.scrollLeft>=0?n.scrollLeft:i.scrollLeft,scrollTop:n.scrollTop!=null&&n.scrollTop>=0?n.scrollTop:i.scrollTop}:null}}])})(v.PureComponent);M(Ko,"defaultProps",{classNameBottomLeftGrid:"",classNameBottomRightGrid:"",classNameTopLeftGrid:"",classNameTopRightGrid:"",enableFixedColumnScroll:!1,enableFixedRowScroll:!1,fixedColumnCount:0,fixedRowCount:0,scrollToColumn:-1,scrollToRow:-1,style:{},styleBottomLeftGrid:{},styleBottomRightGrid:{},styleTopLeftGrid:{},styleTopRightGrid:{},hideTopRightGridScrollbar:!1,hideBottomLeftGridScrollbar:!1});Ko.propTypes={};Zr(Ko);function km(e,t,r){return t=pe(t),Be(e,Ru()?Reflect.construct(t,r||[],pe(e).constructor):t.apply(e,r))}function Ru(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ru=function(){return!!e})()}var Em=(function(e){function t(r,n){var i;return Ce(this,t),i=km(this,t,[r,n]),i.state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},i._onScroll=i._onScroll.bind(i),i}return Fe(t,e),Se(t,[{key:"render",value:function(){var n=this.props.children,i=this.state,o=i.clientHeight,a=i.clientWidth,l=i.scrollHeight,s=i.scrollLeft,c=i.scrollTop,u=i.scrollWidth;return n({clientHeight:o,clientWidth:a,onScroll:this._onScroll,scrollHeight:l,scrollLeft:s,scrollTop:c,scrollWidth:u})}},{key:"_onScroll",value:function(n){var i=n.clientHeight,o=n.clientWidth,a=n.scrollHeight,l=n.scrollLeft,s=n.scrollTop,c=n.scrollWidth;this.setState({clientHeight:i,clientWidth:o,scrollHeight:a,scrollLeft:l,scrollTop:s,scrollWidth:c})}}])})(v.PureComponent);Em.propTypes={};function Pm(e){var t=e.dataKey,r=e.rowData;return typeof r.get=="function"?r.get(t):r[t]}function Om(e){var t=e.cellData;return t==null?"":String(t)}function Nm(e){var t=e.className,r=e.columns,n=e.style;return v.createElement("div",{className:t,role:"row",style:n},r)}var yt={ASC:"ASC",DESC:"DESC"};function _u(e){var t=e.sortDirection,r=Ze("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":t===yt.ASC,"ReactVirtualized__Table__sortableHeaderIcon--DESC":t===yt.DESC});return v.createElement("svg",{className:r,width:18,height:18,viewBox:"0 0 24 24"},t===yt.ASC?v.createElement("path",{d:"M7 14l5-5 5 5z"}):v.createElement("path",{d:"M7 10l5 5 5-5z"}),v.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}_u.propTypes={};function Mm(e){var t=e.dataKey,r=e.label,n=e.sortBy,i=e.sortDirection,o=n===t,a=[v.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:typeof r=="string"?r:null},r)];return o&&a.push(v.createElement(_u,{key:"SortIndicator",sortDirection:i})),a}function Am(e){var t=e.className,r=e.columns,n=e.index,i=e.key,o=e.onRowClick,a=e.onRowDoubleClick,l=e.onRowMouseOut,s=e.onRowMouseOver,c=e.onRowRightClick,u=e.rowData,d=e.style,f={"aria-rowindex":n+1};return(o||a||l||s||c)&&(f["aria-label"]="row",f.tabIndex=0,o&&(f.onClick=function(p){return o({event:p,index:n,rowData:u})}),a&&(f.onDoubleClick=function(p){return a({event:p,index:n,rowData:u})}),l&&(f.onMouseOut=function(p){return l({event:p,index:n,rowData:u})}),s&&(f.onMouseOver=function(p){return s({event:p,index:n,rowData:u})}),c&&(f.onContextMenu=function(p){return c({event:p,index:n,rowData:u})})),v.createElement("div",q({},f,{className:t,key:i,role:"row",style:d}),r)}function Lm(e,t,r){return t=pe(t),Be(e,Du()?Reflect.construct(t,r||[],pe(e).constructor):t.apply(e,r))}function Du(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Du=function(){return!!e})()}var Yo=(function(e){function t(){return Ce(this,t),Lm(this,t,arguments)}return Fe(t,e),Se(t)})(v.Component);M(Yo,"defaultProps",{cellDataGetter:Pm,cellRenderer:Om,defaultSortDirection:yt.ASC,flexGrow:0,flexShrink:1,headerRenderer:Mm,style:{}});Yo.propTypes={};function zl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function rt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zl(Object(r),!0).forEach(function(n){M(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zm(e,t,r){return t=pe(t),Be(e,Tu()?Reflect.construct(t,r||[],pe(e).constructor):t.apply(e,r))}function Tu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Tu=function(){return!!e})()}var ku=(function(e){function t(r){var n;return Ce(this,t),n=zm(this,t,[r]),n.state={scrollbarWidth:0},n._createColumn=n._createColumn.bind(n),n._createRow=n._createRow.bind(n),n._onScroll=n._onScroll.bind(n),n._onSectionRendered=n._onSectionRendered.bind(n),n._setRef=n._setRef.bind(n),n._setGridElementRef=n._setGridElementRef.bind(n),n}return Fe(t,e),Se(t,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(n){var i=n.alignment,o=n.index;if(this.Grid){var a=this.Grid.getOffsetForCell({alignment:i,rowIndex:o}),l=a.scrollTop;return l}return 0}},{key:"invalidateCellSizeAfterRender",value:function(n){var i=n.columnIndex,o=n.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:o,columnIndex:i})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=n.columnIndex,o=i===void 0?0:i,a=n.rowIndex,l=a===void 0?0:a;this.Grid&&this.Grid.recomputeGridSize({rowIndex:l,columnIndex:o})}},{key:"recomputeRowHeights",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:n})}},{key:"scrollToPosition",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:n})}},{key:"scrollToRow",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:n})}},{key:"getScrollbarWidth",value:function(){if(this.GridElement){var n=this.GridElement,i=n.clientWidth||0,o=n.offsetWidth||0;return o-i}return 0}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var n=this,i=this.props,o=i.children,a=i.className,l=i.disableHeader,s=i.gridClassName,c=i.gridStyle,u=i.headerHeight,d=i.headerRowRenderer,f=i.height,p=i.id,h=i.noRowsRenderer,m=i.rowClassName,b=i.rowStyle,y=i.scrollToIndex,x=i.style,_=i.width,T=this.state.scrollbarWidth,k=l?f:f-u,C=typeof m=="function"?m({index:-1}):m,D=typeof b=="function"?b({index:-1}):b;return this._cachedColumnStyles=[],v.Children.toArray(o).forEach(function(w,R){var I=n._getFlexStyleForColumn(w,w.props.style||Yo.defaultProps.style);n._cachedColumnStyles[R]=rt({overflow:"hidden"},I)}),v.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":v.Children.toArray(o).length,"aria-rowcount":this.props.rowCount,className:Ze("ReactVirtualized__Table",a),id:p,role:"grid",style:x},!l&&d({className:Ze("ReactVirtualized__Table__headerRow",C),columns:this._getHeaderColumns(),style:rt({height:u,overflow:"hidden",paddingRight:T,width:_},D)}),v.createElement(bt,q({},this.props,{elementRef:this._setGridElementRef,"aria-readonly":null,autoContainerWidth:!0,className:Ze("ReactVirtualized__Table__Grid",s),cellRenderer:this._createRow,columnWidth:_,columnCount:1,height:k,id:void 0,noContentRenderer:h,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:T,scrollToRow:y,style:rt(rt({},c),{},{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(n){var i=n.column,o=n.columnIndex,a=n.isScrolling,l=n.parent,s=n.rowData,c=n.rowIndex,u=this.props.onColumnClick,d=i.props,f=d.cellDataGetter,p=d.cellRenderer,h=d.className,m=d.columnData,b=d.dataKey,y=d.id,x=f({columnData:m,dataKey:b,rowData:s}),_=p({cellData:x,columnData:m,columnIndex:o,dataKey:b,isScrolling:a,parent:l,rowData:s,rowIndex:c}),T=function(w){u&&u({columnData:m,dataKey:b,event:w})},k=this._cachedColumnStyles[o],C=typeof _=="string"?_:null;return v.createElement("div",{"aria-colindex":o+1,"aria-describedby":y,className:Ze("ReactVirtualized__Table__rowColumn",h),key:"Row"+c+"-Col"+o,onClick:T,role:"gridcell",style:k,title:C},_)}},{key:"_createHeader",value:function(n){var i=n.column,o=n.index,a=this.props,l=a.headerClassName,s=a.headerStyle,c=a.onHeaderClick,u=a.sort,d=a.sortBy,f=a.sortDirection,p=i.props,h=p.columnData,m=p.dataKey,b=p.defaultSortDirection,y=p.disableSort,x=p.headerRenderer,_=p.id,T=p.label,k=!y&&u,C=Ze("ReactVirtualized__Table__headerColumn",l,i.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:k}),D=this._getFlexStyleForColumn(i,rt(rt({},s),i.props.headerStyle)),w=x({columnData:h,dataKey:m,disableSort:y,label:T,sortBy:d,sortDirection:f}),R,I,P,L,N;if(k||c){var G=d!==m,z=G?b:f===yt.DESC?yt.ASC:yt.DESC,F=function(J){k&&u({defaultSortDirection:b,event:J,sortBy:m,sortDirection:z}),c&&c({columnData:h,dataKey:m,event:J})},W=function(J){(J.key==="Enter"||J.key===" ")&&F(J)};N=i.props["aria-label"]||T||m,L="none",P=0,R=F,I=W}return d===m&&(L=f===yt.ASC?"ascending":"descending"),v.createElement("div",{"aria-label":N,"aria-sort":L,className:C,id:_,key:"Header-Col"+o,onClick:R,onKeyDown:I,role:"columnheader",style:D,tabIndex:P},w)}},{key:"_createRow",value:function(n){var i=this,o=n.rowIndex,a=n.isScrolling,l=n.key,s=n.parent,c=n.style,u=this.props,d=u.children,f=u.onRowClick,p=u.onRowDoubleClick,h=u.onRowRightClick,m=u.onRowMouseOver,b=u.onRowMouseOut,y=u.rowClassName,x=u.rowGetter,_=u.rowRenderer,T=u.rowStyle,k=this.state.scrollbarWidth,C=typeof y=="function"?y({index:o}):y,D=typeof T=="function"?T({index:o}):T,w=x({index:o}),R=v.Children.toArray(d).map(function(L,N){return i._createColumn({column:L,columnIndex:N,isScrolling:a,parent:s,rowData:w,rowIndex:o,scrollbarWidth:k})}),I=Ze("ReactVirtualized__Table__row",C),P=rt(rt({},c),{},{height:this._getRowHeight(o),overflow:"hidden",paddingRight:k},D);return _({className:I,columns:R,index:o,isScrolling:a,key:l,onRowClick:f,onRowDoubleClick:p,onRowRightClick:h,onRowMouseOver:m,onRowMouseOut:b,rowData:w,style:P})}},{key:"_getFlexStyleForColumn",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o="".concat(n.props.flexGrow," ").concat(n.props.flexShrink," ").concat(n.props.width,"px"),a=rt(rt({},i),{},{flex:o,msFlex:o,WebkitFlex:o});return n.props.maxWidth&&(a.maxWidth=n.props.maxWidth),n.props.minWidth&&(a.minWidth=n.props.minWidth),a}},{key:"_getHeaderColumns",value:function(){var n=this,i=this.props,o=i.children,a=i.disableHeader,l=a?[]:v.Children.toArray(o);return l.map(function(s,c){return n._createHeader({column:s,index:c})})}},{key:"_getRowHeight",value:function(n){var i=this.props.rowHeight;return typeof i=="function"?i({index:n}):i}},{key:"_onScroll",value:function(n){var i=n.clientHeight,o=n.scrollHeight,a=n.scrollTop,l=this.props.onScroll;l({clientHeight:i,scrollHeight:o,scrollTop:a})}},{key:"_onSectionRendered",value:function(n){var i=n.rowOverscanStartIndex,o=n.rowOverscanStopIndex,a=n.rowStartIndex,l=n.rowStopIndex,s=this.props.onRowsRendered;s({overscanStartIndex:i,overscanStopIndex:o,startIndex:a,stopIndex:l})}},{key:"_setRef",value:function(n){this.Grid=n}},{key:"_setGridElementRef",value:function(n){this.GridElement=n}},{key:"_setScrollbarWidth",value:function(){var n=this.getScrollbarWidth();this.setState({scrollbarWidth:n})}}])})(v.PureComponent);M(ku,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:du,overscanRowCount:10,rowRenderer:Am,headerRowRenderer:Nm,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}});ku.propTypes={};var xt=[],Ar=null,Lt=null;function Eu(){Lt&&(Lt=null,document.body&&Ar!=null&&(document.body.style.pointerEvents=Ar),Ar=null)}function jm(){Eu(),xt.forEach(function(e){return e.__resetIsScrolling()})}function Fm(){Lt&&ar(Lt);var e=0;xt.forEach(function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)}),Lt=Ho(jm,e)}function Pu(e){e.currentTarget===window&&Ar==null&&document.body&&(Ar=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),Fm(),xt.forEach(function(t){t.props.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent()})}function jl(e,t){xt.some(function(r){return r.props.scrollElement===t})||t.addEventListener("scroll",Pu),xt.push(e)}function Fl(e,t){xt=xt.filter(function(r){return r!==e}),xt.length||(t.removeEventListener("scroll",Pu),Lt&&(ar(Lt),Eu()))}var Jo=function(t){return t===window},kr=function(t){return t.getBoundingClientRect()};function Bl(e,t){if(e)if(Jo(e)){var r=window,n=r.innerHeight,i=r.innerWidth;return{height:typeof n=="number"?n:0,width:typeof i=="number"?i:0}}else return kr(e);else return{height:t.serverHeight,width:t.serverWidth}}function Bm(e,t){if(Jo(t)&&document.documentElement){var r=document.documentElement,n=kr(e),i=kr(r);return{top:n.top-i.top,left:n.left-i.left}}else{var o=Ou(t),a=kr(e),l=kr(t);return{top:a.top+o.top-l.top,left:a.left+o.left-l.left}}}function Ou(e){return Jo(e)&&document.documentElement?{top:"scrollY"in window?window.scrollY:document.documentElement.scrollTop,left:"scrollX"in window?window.scrollX:document.documentElement.scrollLeft}:{top:e.scrollTop,left:e.scrollLeft}}function $l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Gl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$l(Object(r),!0).forEach(function(n){M(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$l(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $m(e,t,r){return t=pe(t),Be(e,Nu()?Reflect.construct(t,r||[],pe(e).constructor):t.apply(e,r))}function Nu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Nu=function(){return!!e})()}var Gm=150,Mu=function(){return typeof window<"u"?window:void 0},Wm=(function(e){function t(){var r;Ce(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=$m(this,t,[].concat(i)),M(r,"_window",Mu()),M(r,"_isMounted",!1),M(r,"_positionFromTop",0),M(r,"_positionFromLeft",0),M(r,"_detectElementResize",void 0),M(r,"_child",void 0),M(r,"_windowScrollerRef",v.createRef()),M(r,"state",Gl(Gl({},Bl(r.props.scrollElement,r.props)),{},{isScrolling:!1,scrollLeft:0,scrollTop:0})),M(r,"_registerChild",function(a){a&&!(a instanceof Element)&&console.warn("WindowScroller registerChild expects to be passed Element or null"),r._child=a,r.updatePosition()}),M(r,"_onChildScroll",function(a){var l=a.scrollTop;if(r.state.scrollTop!==l){var s=r.props.scrollElement;s&&(typeof s.scrollTo=="function"?s.scrollTo(0,l+r._positionFromTop):s.scrollTop=l+r._positionFromTop)}}),M(r,"_registerResizeListener",function(a){a===window?window.addEventListener("resize",r._onResize,!1):r._detectElementResize.addResizeListener(a,r._onResize)}),M(r,"_unregisterResizeListener",function(a){a===window?window.removeEventListener("resize",r._onResize,!1):a&&r._detectElementResize.removeResizeListener(a,r._onResize)}),M(r,"_onResize",function(){r.updatePosition()}),M(r,"__handleWindowScrollEvent",function(){if(r._isMounted){var a=r.props.onScroll,l=r.props.scrollElement;if(l){var s=Ou(l),c=Math.max(0,s.left-r._positionFromLeft),u=Math.max(0,s.top-r._positionFromTop);r.setState({isScrolling:!0,scrollLeft:c,scrollTop:u}),a({scrollLeft:c,scrollTop:u})}}}),M(r,"__resetIsScrolling",function(){r.setState({isScrolling:!1})}),r}return Fe(t,e),Se(t,[{key:"updatePosition",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.scrollElement,i=this.props.onResize,o=this.state,a=o.height,l=o.width,s=this._child||this._windowScrollerRef.current;if(s instanceof Element&&n){var c=Bm(s,n);this._positionFromTop=c.top,this._positionFromLeft=c.left}var u=Bl(n,this.props);(a!==u.height||l!==u.width)&&(this.setState({height:u.height,width:u.width}),i({height:u.height,width:u.width})),this.props.updateScrollTopOnUpdatePosition===!0&&(this.__handleWindowScrollEvent(),this.__resetIsScrolling())}},{key:"componentDidMount",value:function(){var n=this.props.scrollElement;this._detectElementResize=tu(),this.updatePosition(n),n&&(jl(this,n),this._registerResizeListener(n)),this._isMounted=!0}},{key:"componentDidUpdate",value:function(n,i){var o=this.props.scrollElement,a=n.scrollElement;a!==o&&a!=null&&o!=null&&(this.updatePosition(o),Fl(this,a),jl(this,o),this._unregisterResizeListener(a),this._registerResizeListener(o))}},{key:"componentWillUnmount",value:function(){var n=this.props.scrollElement;n&&(Fl(this,n),this._unregisterResizeListener(n)),this._isMounted=!1}},{key:"render",value:function(){var n=this.props.children,i=this.state,o=i.isScrolling,a=i.scrollTop,l=i.scrollLeft,s=i.height,c=i.width;return v.createElement("div",{ref:this._windowScrollerRef},n({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:s,isScrolling:o,scrollLeft:l,scrollTop:a,width:c}))}}])})(v.PureComponent);M(Wm,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:Gm,scrollElement:Mu(),serverHeight:0,serverWidth:0});function tr(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?tr=function(t){return typeof t}:tr=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tr(e)}function tn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function rn(e,t,r){return t&&Wl(e.prototype,t),r&&Wl(e,r),e}function Hm(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function St(){return St=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},St.apply(this,arguments)}function Hl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function se(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hl(Object(r),!0).forEach(function(n){Hm(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ti(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&io(e,t)}function ot(e){return ot=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},ot(e)}function io(e,t){return io=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},io(e,t)}function Um(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Qo(e,t){if(e==null)return{};var r=Um(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ut(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ri(e,t){return t&&(typeof t=="object"||typeof t=="function")?t:ut(e)}function me(e){return Vm(e)||qm(e)||Km()}function Vm(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}function qm(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Km(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function Au(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function Lu(e){function t(r){var n=this.constructor.getDerivedStateFromProps(e,r);return n??null}this.setState(t.bind(this))}function zu(e,t){try{var r=this.props,n=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,n)}finally{this.props=r,this.state=n}}Au.__suppressDeprecationWarning=!0;Lu.__suppressDeprecationWarning=!0;zu.__suppressDeprecationWarning=!0;function Ym(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if(typeof e.getDerivedStateFromProps!="function"&&typeof t.getSnapshotBeforeUpdate!="function")return e;var r=null,n=null,i=null;if(typeof t.componentWillMount=="function"?r="componentWillMount":typeof t.UNSAFE_componentWillMount=="function"&&(r="UNSAFE_componentWillMount"),typeof t.componentWillReceiveProps=="function"?n="componentWillReceiveProps":typeof t.UNSAFE_componentWillReceiveProps=="function"&&(n="UNSAFE_componentWillReceiveProps"),typeof t.componentWillUpdate=="function"?i="componentWillUpdate":typeof t.UNSAFE_componentWillUpdate=="function"&&(i="UNSAFE_componentWillUpdate"),r!==null||n!==null||i!==null){var o=e.displayName||e.name,a=typeof e.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
52
52
 
53
53
  `+o+" uses "+a+" but also contains the following legacy lifecycles:"+(r!==null?`
54
54
  `+r:"")+(n!==null?`
@@ -56,13 +56,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
56
56
  `+i:"")+`
57
57
 
58
58
  The above lifecycles should be removed. Learn more about this warning here:
59
- https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=Mu,t.componentWillReceiveProps=Lu),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=zu;var l=t.componentDidUpdate;t.componentDidUpdate=function(c,u,d){var f=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:d;l.call(this,c,u,f)}}return e}function ju(e){var t=e.targetIndex,r=e.node,n=e.currentIndex,i=e.getNodeKey,o=e.path,a=o===void 0?[]:o,l=e.lowerSiblingCounts,s=l===void 0?[]:l,c=e.ignoreCollapsed,u=c===void 0?!0:c,d=e.isPseudoRoot,f=d===void 0?!1:d,p=f?[]:[].concat(me(a),[i({node:r,treeIndex:n})]);if(n===t)return{node:r,lowerSiblingCounts:s,path:p};if(!r.children||u&&r.expanded!==!0)return{nextIndex:n+1};for(var h=n+1,m=r.children.length,b=0;b<m;b+=1){var y=ju({ignoreCollapsed:u,getNodeKey:i,targetIndex:t,node:r.children[b],currentIndex:h,lowerSiblingCounts:[].concat(me(s),[m-b-1]),path:p});if(y.node)return y;h=y.nextIndex}return{nextIndex:h}}function Xo(e){var t=e.node,r=e.ignoreCollapsed,n=r===void 0?!0:r;return ju({getNodeKey:function(){},ignoreCollapsed:n,node:t,currentIndex:0,targetIndex:-1}).nextIndex-1}function Fu(e){var t=e.callback,r=e.getNodeKey,n=e.ignoreCollapsed,i=e.isPseudoRoot,o=i===void 0?!1:i,a=e.node,l=e.parentNode,s=l===void 0?null:l,c=e.currentIndex,u=e.path,d=u===void 0?[]:u,f=e.lowerSiblingCounts,p=f===void 0?[]:f,h=o?[]:[].concat(me(d),[r({node:a,treeIndex:c})]),m=o?null:{node:a,parentNode:s,path:h,lowerSiblingCounts:p,treeIndex:c};if(!o){var b=t(m);if(b===!1)return!1}if(!a.children||a.expanded!==!0&&n&&!o)return c;var y=c,x=a.children.length;if(typeof a.children!="function"){for(var _=0;_<x;_+=1)if(y=Fu({callback:t,getNodeKey:r,ignoreCollapsed:n,node:a.children[_],parentNode:o?null:a,currentIndex:y+1,lowerSiblingCounts:[].concat(me(p),[x-_-1]),path:h}),y===!1)return!1}return y}function Bu(e){var t=e.callback,r=e.getNodeKey,n=e.ignoreCollapsed,i=e.isPseudoRoot,o=i===void 0?!1:i,a=e.node,l=e.parentNode,s=l===void 0?null:l,c=e.currentIndex,u=e.path,d=u===void 0?[]:u,f=e.lowerSiblingCounts,p=f===void 0?[]:f,h=se({},a),m=o?[]:[].concat(me(d),[r({node:h,treeIndex:c})]),b={node:h,parentNode:s,path:m,lowerSiblingCounts:p,treeIndex:c};if(!h.children||h.expanded!==!0&&n&&!o)return{treeIndex:c,node:t(b)};var y=c,x=h.children.length;return typeof h.children!="function"&&(h.children=h.children.map(function(_,T){var k=Bu({callback:t,getNodeKey:r,ignoreCollapsed:n,node:_,parentNode:o?null:h,currentIndex:y+1,lowerSiblingCounts:[].concat(me(p),[x-T-1]),path:m});return y=k.treeIndex,k.node})),{node:t(b),treeIndex:y}}function $u(e){var t=e.treeData,r=e.getNodeKey,n=e.callback,i=e.ignoreCollapsed,o=i===void 0?!0:i;!t||t.length<1||Fu({callback:n,getNodeKey:r,ignoreCollapsed:o,isPseudoRoot:!0,node:{children:t},currentIndex:-1,path:[],lowerSiblingCounts:[]})}function Jm(e){var t=e.treeData,r=e.getNodeKey,n=e.callback,i=e.ignoreCollapsed,o=i;return!t||t.length<1?[]:Bu({callback:n,getNodeKey:r,ignoreCollapsed:o,isPseudoRoot:!0,node:{children:t},currentIndex:-1,path:[],lowerSiblingCounts:[]}).node.children}function Qm(e){var t=e.treeData,r=e.expanded,n=r===void 0?!0:r;return Jm({treeData:t,callback:function(o){var a=o.node;return se(se({},a),{},{expanded:n})},getNodeKey:function(o){var a=o.treeIndex;return a},ignoreCollapsed:!1})}function Er(e){var t=e.treeData,r=e.path,n=e.newNode,i=e.getNodeKey,o=e.ignoreCollapsed,a=o===void 0?!0:o,l="RESULT_MISS",s=function u(d){var f=d.isPseudoRoot,p=f===void 0?!1:f,h=d.node,m=d.currentTreeIndex,b=d.pathIndex;if(!p&&i({node:h,treeIndex:m})!==r[b])return l;if(b>=r.length-1)return typeof n=="function"?n({node:h,treeIndex:m}):n;if(!h.children)throw new Error("Path referenced children of node with no children.");for(var y=m+1,x=0;x<h.children.length;x+=1){var _=u({node:h.children[x],currentTreeIndex:y,pathIndex:b+1});if(_!==l)return _?se(se({},h),{},{children:[].concat(me(h.children.slice(0,x)),[_],me(h.children.slice(x+1)))}):se(se({},h),{},{children:[].concat(me(h.children.slice(0,x)),me(h.children.slice(x+1)))});y+=1+Xo({node:h.children[x],ignoreCollapsed:a})}return l},c=s({node:{children:t},currentTreeIndex:-1,pathIndex:-1,isPseudoRoot:!0});if(c===l)throw new Error("No node found at the given path.");return c.children}function Xm(e){var t=e.treeData,r=e.path,n=e.getNodeKey,i=e.ignoreCollapsed,o=i===void 0?!0:i,a=null,l=null,s=Er({treeData:t,path:r,getNodeKey:n,ignoreCollapsed:o,newNode:function(u){var d=u.node,f=u.treeIndex;return a=d,l=f,null}});return{treeData:s,node:a,treeIndex:l}}function Gu(e){var t=e.targetDepth,r=e.minimumTreeIndex,n=e.newNode,i=e.ignoreCollapsed,o=e.expandParent,a=e.isPseudoRoot,l=a===void 0?!1:a,s=e.isLastChild,c=e.node,u=e.currentIndex,d=e.currentDepth,f=e.getNodeKey,p=e.path,h=p===void 0?[]:p,m=function(z){return l?[]:[].concat(me(h),[f({node:z,treeIndex:u})])};if(u>=r-1||s&&!(c.children&&c.children.length)){if(typeof c.children=="function")throw new Error("Cannot add to children defined by a function");var b=o?{expanded:!0}:{},y=se(se(se({},c),b),{},{children:c.children?[n].concat(me(c.children)):[n]});return{node:y,nextIndex:u+2,insertedTreeIndex:u+1,parentPath:m(y),parentNode:l?null:y}}if(d>=t-1){if(!c.children||typeof c.children=="function"||c.expanded!==!0&&i&&!l)return{node:c,nextIndex:u+1};for(var x=u+1,_=null,T=null,k=0;k<c.children.length;k+=1){if(x>=r){_=x,T=k;break}x+=1+Xo({node:c.children[k],ignoreCollapsed:i})}if(T===null){if(x<r&&!s)return{node:c,nextIndex:x};_=x,T=c.children.length}var C=se(se({},c),{},{children:[].concat(me(c.children.slice(0,T)),[n],me(c.children.slice(T)))});return{node:C,nextIndex:x,insertedTreeIndex:_,parentPath:m(C),parentNode:l?null:C}}if(!c.children||typeof c.children=="function"||c.expanded!==!0&&i&&!l)return{node:c,nextIndex:u+1};var D=null,w=null,R=null,I=u+1,P=c.children;typeof P!="function"&&(P=P.map(function(G,z){if(D!==null)return G;var F=Gu({targetDepth:t,minimumTreeIndex:r,newNode:n,ignoreCollapsed:i,expandParent:o,isLastChild:s&&z===P.length-1,node:G,currentIndex:I,currentDepth:d+1,getNodeKey:f,path:[]});return"insertedTreeIndex"in F&&(D=F.insertedTreeIndex,R=F.parentNode,w=F.parentPath),I=F.nextIndex,F.node}));var L=se(se({},c),{},{children:P}),N={node:L,nextIndex:I};return D!==null&&(N.insertedTreeIndex=D,N.parentPath=[].concat(me(m(L)),me(w)),N.parentNode=R),N}function Wu(e){var t=e.treeData,r=e.depth,n=e.minimumTreeIndex,i=e.newNode,o=e.getNodeKey,a=o===void 0?function(){}:o,l=e.ignoreCollapsed,s=l===void 0?!0:l,c=e.expandParent,u=c===void 0?!1:c;if(!t&&r===0)return{treeData:[i],treeIndex:0,path:[a({node:i,treeIndex:0})],parentNode:null};var d=Gu({targetDepth:r,minimumTreeIndex:n,newNode:i,ignoreCollapsed:s,expandParent:u,getNodeKey:a,isPseudoRoot:!0,isLastChild:!0,node:{children:t},currentIndex:-1,currentDepth:-1});if(!("insertedTreeIndex"in d))throw new Error("No suitable position found to insert.");var f=d.insertedTreeIndex;return{treeData:d.node.children,treeIndex:f,path:[].concat(me(d.parentPath),[a({node:i,treeIndex:f})]),parentNode:d.parentNode}}function Zm(e){var t=e.treeData,r=e.getNodeKey,n=e.ignoreCollapsed,i=n===void 0?!0:n;if(!t||t.length<1)return[];var o=[];return $u({treeData:t,getNodeKey:r,ignoreCollapsed:i,callback:function(l){o.push(l)}}),o}function Hu(e,t){return!!e.children&&typeof e.children!="function"&&e.children.some(function(r){return r===t||Hu(r,t)})}function Uu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.children?typeof e.children=="function"?t+1:e.children.reduce(function(r,n){return Math.max(r,Uu(n,t+1))},t):t}function eb(e){var t=e.getNodeKey,r=e.treeData,n=e.searchQuery,i=e.searchMethod,o=e.searchFocusOffset,a=e.expandAllMatchPaths,l=a===void 0?!1:a,s=e.expandFocusMatchPaths,c=s===void 0?!0:s,u=0,d=function p(h){var m=h.isPseudoRoot,b=m===void 0?!1:m,y=h.node,x=h.currentIndex,_=h.path,T=_===void 0?[]:_,k=[],C=!1,D=!1,w=b?[]:[].concat(me(T),[t({node:y,treeIndex:x})]),R=b?null:{path:w,treeIndex:x},I=y.children&&typeof y.children!="function"&&y.children.length>0;!b&&i(se(se({},R),{},{node:y,searchQuery:n}))&&(u===o&&(D=!0),u+=1,C=!0);var P=x,L=se({},y);return I&&(L.children=L.children.map(function(N){var G=p({node:N,currentIndex:P+1,path:w});return G.node.expanded?P=G.treeIndex:P+=1,(G.matches.length>0||G.hasFocusMatch)&&(k=[].concat(me(k),me(G.matches)),G.hasFocusMatch&&(D=!0),(l&&G.matches.length>0||(l||c)&&G.hasFocusMatch)&&(L.expanded=!0)),G.node})),!b&&!L.expanded&&(k=k.map(function(N){return se(se({},N),{},{treeIndex:null})})),C&&(k=[se(se({},R),{},{node:L})].concat(me(k))),{node:k.length>0?L:y,matches:k,hasFocusMatch:D,treeIndex:P}},f=d({node:{children:r},isPseudoRoot:!0,currentIndex:-1});return{matches:f.matches,treeData:f.node.children}}function He(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(Boolean).join(" ")}function tb(e){function t(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}return function(){var r=ot(e),n;if(t()){var i=ot(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ri(this,n)}}var Zo=(function(e){ti(r,e);var t=tb(r);function r(){return tn(this,r),t.apply(this,arguments)}return rn(r,[{key:"render",value:function(){var i=this.props,o=i.scaffoldBlockPxWidth,a=i.toggleChildrenVisibility,l=i.connectDragPreview,s=i.connectDragSource,c=i.isDragging,u=i.canDrop,d=i.canDrag,f=i.node,p=i.title,h=i.subtitle,m=i.draggedNode,b=i.path,y=i.treeIndex,x=i.isSearchMatch,_=i.isSearchFocus,T=i.buttons,k=i.className,C=i.style,D=i.didDrop;i.treeId,i.isOver,i.parentNode;var w=i.rowDirection,R=Qo(i,["scaffoldBlockPxWidth","toggleChildrenVisibility","connectDragPreview","connectDragSource","isDragging","canDrop","canDrag","node","title","subtitle","draggedNode","path","treeIndex","isSearchMatch","isSearchFocus","buttons","className","style","didDrop","treeId","isOver","parentNode","rowDirection"]),I=p||f.title,P=h||f.subtitle,L=w==="rtl"?"rst__rtl":null,N;d&&(typeof f.children=="function"&&f.expanded?N=Q.createElement("div",{className:"rst__loadingHandle"},Q.createElement("div",{className:"rst__loadingCircle"},me(new Array(12)).map(function(W,H){return Q.createElement("div",{key:H,className:He("rst__loadingCirclePoint",L)})}))):N=s(Q.createElement("div",{className:"rst__moveHandle"}),{dropEffect:"copy"}));var G=m&&Hu(m,f),z=!D&&c,F={left:-.5*o};return w==="rtl"&&(F={right:-.5*o}),Q.createElement("div",St({style:{height:"100%"}},R),a&&f.children&&(f.children.length>0||typeof f.children=="function")&&Q.createElement("div",null,Q.createElement("button",{type:"button","aria-label":f.expanded?"Collapse":"Expand",className:He(f.expanded?"rst__collapseButton":"rst__expandButton",L),style:F,onClick:function(){return a({node:f,path:b,treeIndex:y})}}),f.expanded&&!c&&Q.createElement("div",{style:{width:o},className:He("rst__lineChildren",L)})),Q.createElement("div",{className:He("rst__rowWrapper",L)},l(Q.createElement("div",{className:He("rst__row",z&&"rst__rowLandingPad",z&&!u&&"rst__rowCancelPad",x&&"rst__rowSearchMatch",_&&"rst__rowSearchFocus",L,k),style:se({opacity:G?.5:1},C)},N,Q.createElement("div",{className:He("rst__rowContents",!d&&"rst__rowContentsDragDisabled",L)},Q.createElement("div",{className:He("rst__rowLabel",L)},Q.createElement("span",{className:He("rst__rowTitle",f.subtitle&&"rst__rowTitleWithSubtitle")},typeof I=="function"?I({node:f,path:b,treeIndex:y}):I),P&&Q.createElement("span",{className:"rst__rowSubtitle"},typeof P=="function"?P({node:f,path:b,treeIndex:y}):P)),Q.createElement("div",{className:"rst__rowToolbar"},T.map(function(W,H){return Q.createElement("div",{key:H,className:"rst__toolbarButton"},W)})))))))}}]),r})(v.Component);Zo.defaultProps={isSearchMatch:!1,isSearchFocus:!1,canDrag:!1,toggleChildrenVisibility:null,buttons:[],className:"",style:{},parentNode:null,draggedNode:null,canDrop:!1,title:null,subtitle:null,rowDirection:"ltr"};Zo.propTypes={node:S.shape({}).isRequired,title:S.oneOfType([S.func,S.node]),subtitle:S.oneOfType([S.func,S.node]),path:S.arrayOf(S.oneOfType([S.string,S.number])).isRequired,treeIndex:S.number.isRequired,treeId:S.string.isRequired,isSearchMatch:S.bool,isSearchFocus:S.bool,canDrag:S.bool,scaffoldBlockPxWidth:S.number.isRequired,toggleChildrenVisibility:S.func,buttons:S.arrayOf(S.node),className:S.string,style:S.shape({}),connectDragPreview:S.func.isRequired,connectDragSource:S.func.isRequired,parentNode:S.shape({}),isDragging:S.bool.isRequired,didDrop:S.bool.isRequired,draggedNode:S.shape({}),isOver:S.bool.isRequired,canDrop:S.bool,rowDirection:S.string};var ea=function(t){var r=t.isOver,n=t.canDrop;return Q.createElement("div",{className:He("rst__placeholder",n&&"rst__placeholderLandingPad",n&&!r&&"rst__placeholderCancelPad")})};ea.defaultProps={isOver:!1,canDrop:!1};ea.propTypes={isOver:S.bool,canDrop:S.bool};function rb(e){function t(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}return function(){var r=ot(e),n;if(t()){var i=ot(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ri(this,n)}}var ta=(function(e){ti(r,e);var t=rb(r);function r(){return tn(this,r),t.apply(this,arguments)}return rn(r,[{key:"render",value:function(){var i=this.props,o=i.children,a=i.listIndex,l=i.swapFrom,s=i.swapLength,c=i.swapDepth,u=i.scaffoldBlockPxWidth,d=i.lowerSiblingCounts,f=i.connectDropTarget,p=i.isOver,h=i.draggedNode,m=i.canDrop,b=i.treeIndex;i.treeId,i.getPrevRow,i.node,i.path;var y=i.rowDirection,x=Qo(i,["children","listIndex","swapFrom","swapLength","swapDepth","scaffoldBlockPxWidth","lowerSiblingCounts","connectDropTarget","isOver","draggedNode","canDrop","treeIndex","treeId","getPrevRow","node","path","rowDirection"]),_=y==="rtl"?"rst__rtl":null,T=d.length,k=[];d.forEach(function(D,w){var R="";if(D>0?a===0?R="rst__lineHalfHorizontalRight rst__lineHalfVerticalBottom":w===T-1?R="rst__lineHalfHorizontalRight rst__lineFullVertical":R="rst__lineFullVertical":a===0?R="rst__lineHalfHorizontalRight":w===T-1&&(R="rst__lineHalfVerticalTop rst__lineHalfHorizontalRight"),k.push(Q.createElement("div",{key:"pre_".concat(1+w),style:{width:u},className:He("rst__lineBlock",R,_)})),b!==a&&w===c){var I="";a===l+s-1?I="rst__highlightBottomLeftCorner":b===l?I="rst__highlightTopLeftCorner":I="rst__highlightLineVertical";var P;y==="rtl"?P={width:u,right:u*w}:P={width:u,left:u*w},k.push(Q.createElement("div",{key:w,style:P,className:He("rst__absoluteLineBlock",I,_)}))}});var C;return y==="rtl"?C={right:u*T}:C={left:u*T},f(Q.createElement("div",St({},x,{className:He("rst__node",_)}),k,Q.createElement("div",{className:"rst__nodeContent",style:C},v.Children.map(o,function(D){return v.cloneElement(D,{isOver:p,canDrop:m,draggedNode:h})}))))}}]),r})(v.Component);ta.defaultProps={swapFrom:null,swapDepth:null,swapLength:null,canDrop:!1,draggedNode:null,rowDirection:"ltr"};ta.propTypes={treeIndex:S.number.isRequired,treeId:S.string.isRequired,swapFrom:S.number,swapDepth:S.number,swapLength:S.number,scaffoldBlockPxWidth:S.number.isRequired,lowerSiblingCounts:S.arrayOf(S.number).isRequired,listIndex:S.number.isRequired,children:S.node.isRequired,connectDropTarget:S.func.isRequired,isOver:S.bool.isRequired,canDrop:S.bool,draggedNode:S.shape({}),getPrevRow:S.func.isRequired,node:S.shape({}).isRequired,path:S.arrayOf(S.oneOfType([S.string,S.number])).isRequired,rowDirection:S.string};function nb(e){function t(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}return function(){var r=ot(e),n;if(t()){var i=ot(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ri(this,n)}}var ra=(function(e){ti(r,e);var t=nb(r);function r(){return tn(this,r),t.apply(this,arguments)}return rn(r,[{key:"render",value:function(){var i=this.props,o=i.children,a=i.connectDropTarget;i.treeId,i.drop;var l=Qo(i,["children","connectDropTarget","treeId","drop"]);return a(Q.createElement("div",null,v.Children.map(o,function(s){return v.cloneElement(s,se({},l))})))}}]),r})(v.Component);ra.defaultProps={canDrop:!1,draggedNode:null};ra.propTypes={children:S.node.isRequired,connectDropTarget:S.func.isRequired,isOver:S.bool.isRequired,canDrop:S.bool,draggedNode:S.shape({}),treeId:S.string.isRequired,drop:S.func.isRequired};function ib(e){var t=e.treeIndex;return t}function Vu(e){return typeof e=="string"?e:e===null||tr(e)!=="object"||!e.props||!e.props.children||typeof e.props.children!="string"&&tr(e.props.children)!=="object"?"":typeof e.props.children=="string"?e.props.children:e.props.children.map(function(t){return Vu(t)}).join("")}function Ul(e,t,r,n,i){return typeof r[e]=="function"?String(r[e]({node:r,path:n,treeIndex:i})).indexOf(t)>-1:tr(r[e])==="object"?Vu(r[e]).indexOf(t)>-1:r[e]&&String(r[e]).indexOf(t)>-1}function ob(e){var t=e.node,r=e.path,n=e.treeIndex,i=e.searchQuery;return Ul("title",i,t,r,n)||Ul("subtitle",i,t,r,n)}var na=function(t){var r=[],n=[],i=null;return function(o){var a=Object.keys(o).sort(),l=a.map(function(s){return o[s]});return(l.length!==r.length||l.some(function(s,c){return s!==r[c]})||a.some(function(s,c){return s!==n[c]}))&&(r=l,n=a,i=t(o)),i}},oo=na(Wu),ab=na(Zm),lb=na(Xo),sb=(function(){function e(t){tn(this,e),this.treeRef=t}return rn(e,[{key:"getTargetDepth",value:function(r,n,i){var o=0,a=r.getPrevRow();if(a){var l=a.path,s=!this.treeRef.canNodeHaveChildren(a.node);s&&(l=l.slice(0,l.length-1)),o=Math.min(l.length,r.path.length)}var c,u=(n.getItem().path||[]).length;if(n.getItem().treeId!==this.treeId)if(u=0,i){var d=xc.findDOMNode(i).getBoundingClientRect(),f=n.getSourceClientOffset().x-d.left;c=Math.round(f/r.scaffoldBlockPxWidth)}else c=r.path.length;else{var p=r.rowDirection==="rtl"?-1:1;c=Math.round(p*n.getDifferenceFromInitialOffset().x/r.scaffoldBlockPxWidth)}var h=Math.min(o,Math.max(0,u+c-1));if(typeof this.maxDepth<"u"&&this.maxDepth!==null){var m=n.getItem().node,b=Uu(m);h=Math.max(0,Math.min(h,this.maxDepth-b-1))}return h}},{key:"canDrop",value:function(r,n){if(!n.isOver())return!1;var i=r.getPrevRow(),o=i?i.path:[],a=i?i.node:{},l=this.getTargetDepth(r,n,null);if(l>=o.length&&typeof a.children=="function")return!1;if(typeof this.customCanDrop=="function"){var s=n.getItem(),c=s.node,u=oo({treeData:this.treeData,newNode:c,depth:l,getNodeKey:this.getNodeKey,minimumTreeIndex:r.listIndex,expandParent:!0});return this.customCanDrop({node:c,prevPath:n.getItem().path,prevParent:n.getItem().parentNode,prevTreeIndex:n.getItem().treeIndex,nextPath:u.path,nextParent:u.parentNode,nextTreeIndex:u.treeIndex})}return!0}},{key:"wrapSource",value:function(r){var n=this,i={beginDrag:function(l){return n.startDrag(l),{node:l.node,parentNode:l.parentNode,path:l.path,treeIndex:l.treeIndex,treeId:l.treeId}},endDrag:function(l,s){n.endDrag(s.getDropResult())},isDragging:function(l,s){var c=s.getItem().node,u=l.node;return u===c}};function o(a,l){return{connectDragSource:a.dragSource(),connectDragPreview:a.dragPreview(),isDragging:l.isDragging(),didDrop:l.didDrop()}}return Yh(this.dndType,i,o)(r)}},{key:"wrapTarget",value:function(r){var n=this,i={drop:function(l,s,c){var u={node:s.getItem().node,path:s.getItem().path,treeIndex:s.getItem().treeIndex,treeId:n.treeId,minimumTreeIndex:l.treeIndex,depth:n.getTargetDepth(l,s,c)};return n.drop(u),u},hover:function(l,s,c){var u=n.getTargetDepth(l,s,c),d=s.getItem().node,f=l.node!==d||u!==l.path.length-1;f&&(cancelAnimationFrame(n.rafId),n.rafId=requestAnimationFrame(function(){n.dragHover({node:d,path:s.getItem().path,minimumTreeIndex:l.listIndex,depth:u})}))},canDrop:this.canDrop.bind(this)};function o(a,l){var s=l.getItem();return{connectDropTarget:a.dropTarget(),isOver:l.isOver(),canDrop:l.canDrop(),draggedNode:s?s.node:null}}return el(this.dndType,i,o)(r)}},{key:"wrapPlaceholder",value:function(r){var n=this,i={drop:function(l,s){var c=s.getItem(),u=c.node,d=c.path,f=c.treeIndex,p={node:u,path:d,treeIndex:f,treeId:n.treeId,minimumTreeIndex:0,depth:0};return n.drop(p),p}};function o(a,l){var s=l.getItem();return{connectDropTarget:a.dropTarget(),isOver:l.isOver(),canDrop:l.canDrop(),draggedNode:s?s.node:null}}return el(this.dndType,i,o)(r)}},{key:"startDrag",get:function(){return this.treeRef.startDrag}},{key:"dragHover",get:function(){return this.treeRef.dragHover}},{key:"endDrag",get:function(){return this.treeRef.endDrag}},{key:"drop",get:function(){return this.treeRef.drop}},{key:"treeId",get:function(){return this.treeRef.treeId}},{key:"dndType",get:function(){return this.treeRef.dndType}},{key:"treeData",get:function(){return this.treeRef.state.draggingTreeData||this.treeRef.props.treeData}},{key:"getNodeKey",get:function(){return this.treeRef.props.getNodeKey}},{key:"customCanDrop",get:function(){return this.treeRef.props.canDrop}},{key:"maxDepth",get:function(){return this.treeRef.props.maxDepth}}]),e})();function cb(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,i=[].concat(me(e.slice(0,t)),me(e.slice(t+n)));return[].concat(me(i.slice(0,r)),me(e.slice(t,t+n)),me(i.slice(r)))}function ub(e){function t(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}return function(){var r=ot(e),n;if(t()){var i=ot(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ri(this,n)}}var Vl=1,Ci=function(t){var r=se(se({},t),{},{style:se(se({},t.theme.style),t.style),innerStyle:se(se({},t.theme.innerStyle),t.innerStyle),reactVirtualizedListProps:se(se({},t.theme.reactVirtualizedListProps),t.reactVirtualizedListProps)}),n={nodeContentRenderer:Zo,placeholderRenderer:ea,rowHeight:62,scaffoldBlockPxWidth:44,slideRegionSize:100,treeNodeRenderer:ta};return Object.keys(n).forEach(function(i){t[i]===null&&(r[i]=typeof t.theme[i]<"u"?t.theme[i]:n[i])}),r},ni=(function(e){ti(r,e);var t=ub(r);function r(n){var i;tn(this,r),i=t.call(this,n);var o=Ci(n),a=o.dndType,l=o.nodeContentRenderer,s=o.treeNodeRenderer,c=o.isVirtualized,u=o.slideRegionSize;return i.dndManager=new sb(ut(i)),i.treeId="rst__".concat(Vl),Vl+=1,i.dndType=a||i.treeId,i.nodeContentRenderer=i.dndManager.wrapSource(l),i.treePlaceholderRenderer=i.dndManager.wrapPlaceholder(ra),i.treeNodeRenderer=i.dndManager.wrapTarget(s),c&&(i.scrollZoneVirtualList=(Rn.createScrollingComponent||uv)(vu),i.vStrength=Rn.createVerticalStrength(u),i.hStrength=Rn.createHorizontalStrength(u)),i.state={draggingTreeData:null,draggedNode:null,draggedMinimumTreeIndex:null,draggedDepth:null,searchMatches:[],searchFocusTreeIndex:null,dragging:!1,instanceProps:{treeData:[],ignoreOneTreeUpdate:!1,searchQuery:null,searchFocusOffset:null}},i.toggleChildrenVisibility=i.toggleChildrenVisibility.bind(ut(i)),i.moveNode=i.moveNode.bind(ut(i)),i.startDrag=i.startDrag.bind(ut(i)),i.dragHover=i.dragHover.bind(ut(i)),i.endDrag=i.endDrag.bind(ut(i)),i.drop=i.drop.bind(ut(i)),i.handleDndMonitorChange=i.handleDndMonitorChange.bind(ut(i)),i}return rn(r,[{key:"componentDidMount",value:function(){r.loadLazyChildren(this.props,this.state);var i=r.search(this.props,this.state,!0,!0,!1);this.setState(i),this.clearMonitorSubscription=this.props.dragDropManager.getMonitor().subscribeToStateChange(this.handleDndMonitorChange)}},{key:"componentDidUpdate",value:function(i,o){this.state.dragging!==o.dragging&&this.props.onDragStateChanged&&this.props.onDragStateChanged({isDragging:this.state.dragging,draggedNode:this.state.draggedNode})}},{key:"componentWillUnmount",value:function(){this.clearMonitorSubscription()}},{key:"getRows",value:function(i){return ab({ignoreCollapsed:!0,getNodeKey:this.props.getNodeKey,treeData:i})}},{key:"handleDndMonitorChange",value:function(){var i=this.props.dragDropManager.getMonitor();!i.isDragging()&&this.state.draggingTreeData&&this.endDrag()}},{key:"toggleChildrenVisibility",value:function(i){var o=i.node,a=i.path,l=this.state.instanceProps,s=Er({treeData:l.treeData,path:a,newNode:function(u){var d=u.node;return se(se({},d),{},{expanded:!d.expanded})},getNodeKey:this.props.getNodeKey});this.props.onChange(s),this.props.onVisibilityToggle({treeData:s,node:o,expanded:!o.expanded,path:a})}},{key:"moveNode",value:function(i){var o=i.node,a=i.path,l=i.treeIndex,s=i.depth,c=i.minimumTreeIndex,u=Wu({treeData:this.state.draggingTreeData,newNode:o,depth:s,minimumTreeIndex:c,expandParent:!0,getNodeKey:this.props.getNodeKey}),d=u.treeData,f=u.treeIndex,p=u.path,h=u.parentNode;this.props.onChange(d),this.props.onMoveNode({treeData:d,node:o,treeIndex:f,path:p,nextPath:p,nextTreeIndex:f,prevPath:a,prevTreeIndex:l,nextParentNode:h})}},{key:"startDrag",value:function(i){var o=this,a=i.path;this.setState(function(l){var s=Xm({treeData:l.instanceProps.treeData,path:a,getNodeKey:o.props.getNodeKey}),c=s.treeData,u=s.node,d=s.treeIndex;return{draggingTreeData:c,draggedNode:u,draggedDepth:a.length-1,draggedMinimumTreeIndex:d,dragging:!0}})}},{key:"dragHover",value:function(i){var o=this,a=i.node,l=i.depth,s=i.minimumTreeIndex;this.state.draggedDepth===l&&this.state.draggedMinimumTreeIndex===s||this.setState(function(c){var u=c.draggingTreeData,d=c.instanceProps,f=u||d.treeData,p=oo({treeData:f,newNode:a,depth:l,minimumTreeIndex:s,expandParent:!0,getNodeKey:o.props.getNodeKey}),h=o.getRows(p.treeData),m=h[p.treeIndex].path;return{draggedNode:a,draggedDepth:l,draggedMinimumTreeIndex:s,draggingTreeData:Er({treeData:f,path:m.slice(0,-1),newNode:function(y){var x=y.node;return se(se({},x),{},{expanded:!0})},getNodeKey:o.props.getNodeKey}),searchFocusTreeIndex:null,dragging:!0}})}},{key:"endDrag",value:function(i){var o=this,a=this.state.instanceProps,l=function(){return o.setState({draggingTreeData:null,draggedNode:null,draggedMinimumTreeIndex:null,draggedDepth:null,dragging:!1})};if(!i)l();else if(i.treeId!==this.treeId){var s=i.node,c=i.path,u=i.treeIndex,d=this.props.shouldCopyOnOutsideDrop;typeof d=="function"&&(d=d({node:s,prevTreeIndex:u,prevPath:c}));var f=this.state.draggingTreeData||a.treeData;d&&(f=Er({treeData:a.treeData,path:c,newNode:function(h){var m=h.node;return se({},m)},getNodeKey:this.props.getNodeKey})),this.props.onChange(f),this.props.onMoveNode({treeData:f,node:s,treeIndex:null,path:null,nextPath:null,nextTreeIndex:null,prevPath:c,prevTreeIndex:u})}}},{key:"drop",value:function(i){this.moveNode(i)}},{key:"canNodeHaveChildren",value:function(i){var o=this.props.canNodeHaveChildren;return o?o(i):!0}},{key:"renderRow",value:function(i,o){var a=o.listIndex,l=o.style,s=o.getPrevRow,c=o.matchKeys,u=o.swapFrom,d=o.swapDepth,f=o.swapLength,p=i.node,h=i.parentNode,m=i.path,b=i.lowerSiblingCounts,y=i.treeIndex,x=Ci(this.props),_=x.canDrag,T=x.generateNodeProps,k=x.scaffoldBlockPxWidth,C=x.searchFocusOffset,D=x.rowDirection,w=this.treeNodeRenderer,R=this.nodeContentRenderer,I=m[m.length-1],P=I in c,L=P&&c[I]===C,N={node:p,parentNode:h,path:m,lowerSiblingCounts:b,treeIndex:y,isSearchMatch:P,isSearchFocus:L},G=T?T(N):{},z=typeof _!="function"?_:_(N),F={treeIndex:y,scaffoldBlockPxWidth:k,node:p,path:m,treeId:this.treeId,rowDirection:D};return Q.createElement(w,St({style:l,key:I,listIndex:a,getPrevRow:s,lowerSiblingCounts:b,swapFrom:u,swapLength:f,swapDepth:d},F),Q.createElement(R,St({parentNode:h,isSearchMatch:P,isSearchFocus:L,canDrag:z,toggleChildrenVisibility:this.toggleChildrenVisibility},F,G)))}},{key:"render",value:function(){var i=this,o=Ci(this.props),a=o.dragDropManager,l=o.style,s=o.className,c=o.innerStyle,u=o.rowHeight,d=o.isVirtualized,f=o.placeholderRenderer,p=o.reactVirtualizedListProps,h=o.getNodeKey,m=o.rowDirection,b=this.state,y=b.searchMatches,x=b.searchFocusTreeIndex,_=b.draggedNode,T=b.draggedDepth,k=b.draggedMinimumTreeIndex,C=b.instanceProps,D=this.state.draggingTreeData||C.treeData,w=m==="rtl"?"rst__rtl":null,R,I=null,P=null;if(_&&k!==null){var L=oo({treeData:D,newNode:_,depth:T,minimumTreeIndex:k,expandParent:!0,getNodeKey:h}),N=k;I=L.treeIndex,P=1+lb({node:_}),R=cb(this.getRows(L.treeData),I,N,P)}else R=this.getRows(D);var G={};y.forEach(function(Y,X){var U=Y.path;G[U[U.length-1]]=X});var z=x!==null?{scrollToIndex:x}:{},F=l,W;if(R.length<1){var H=this.treePlaceholderRenderer,J=f;W=Q.createElement(H,{treeId:this.treeId,drop:this.drop},Q.createElement(J,null))}else if(d){F=se({height:"100%"},F);var Z=this.scrollZoneVirtualList;W=Q.createElement(nu,null,function(Y){var X=Y.height,U=Y.width;return Q.createElement(Z,St({},z,{dragDropManager:a,verticalStrength:i.vStrength,horizontalStrength:i.hStrength,speed:30,scrollToAlignment:"start",className:"rst__virtualScrollOverride",width:U,onScroll:function(ne){var ce=ne.scrollTop;i.scrollTop=ce},height:X,style:c,rowCount:R.length,estimatedRowSize:typeof u!="function"?u:void 0,rowHeight:typeof u!="function"?u:function(re){var ne=re.index;return u({index:ne,treeIndex:ne,node:R[ne].node,path:R[ne].path})},rowRenderer:function(ne){var ce=ne.index,B=ne.style;return i.renderRow(R[ce],{listIndex:ce,style:B,getPrevRow:function(){return R[ce-1]||null},matchKeys:G,swapFrom:I,swapDepth:T,swapLength:P})}},p))})}else W=R.map(function(Y,X){return i.renderRow(Y,{listIndex:X,style:{height:typeof u!="function"?u:u({index:X,treeIndex:X,node:Y.node,path:Y.path})},getPrevRow:function(){return R[X-1]||null},matchKeys:G,swapFrom:I,swapDepth:T,swapLength:P})});return Q.createElement("div",{className:He("rst__tree",s,w),style:F},W)}}],[{key:"getDerivedStateFromProps",value:function(i,o){var a=o.instanceProps,l={},s=bl(a.treeData,i.treeData);return a.treeData=i.treeData,s?bl(a.searchQuery,i.searchQuery)?a.searchFocusOffset!==i.searchFocusOffset&&Object.assign(l,r.search(i,o,!0,!0,!0)):Object.assign(l,r.search(i,o,!0,!0,!1)):(a.ignoreOneTreeUpdate?a.ignoreOneTreeUpdate=!1:(l.searchFocusTreeIndex=null,r.loadLazyChildren(i,o),Object.assign(l,r.search(i,o,!1,!1,!1))),l.draggingTreeData=null,l.draggedNode=null,l.draggedMinimumTreeIndex=null,l.draggedDepth=null,l.dragging=!1),a.searchQuery=i.searchQuery,a.searchFocusOffset=i.searchFocusOffset,l.instanceProps=se(se({},a),l.instanceProps),l}},{key:"search",value:function(i,o,a,l,s){var c=i.onChange,u=i.getNodeKey,d=i.searchFinishCallback,f=i.searchQuery,p=i.searchMethod,h=i.searchFocusOffset,m=i.onlyExpandSearchedNodes,b=o.instanceProps;if(!f&&!p)return d&&d([]),{searchMatches:[]};var y={instanceProps:{}},x=eb({getNodeKey:u,treeData:m?Qm({treeData:b.treeData,expanded:!1}):b.treeData,searchQuery:f,searchMethod:p||ob,searchFocusOffset:h,expandAllMatchPaths:l&&!s,expandFocusMatchPaths:!!l}),_=x.treeData,T=x.matches;l&&(y.instanceProps.ignoreOneTreeUpdate=!0,c(_)),d&&d(T);var k=null;return a&&h!==null&&h<T.length&&(k=T[h].treeIndex),y.searchMatches=T,y.searchFocusTreeIndex=k,y}},{key:"loadLazyChildren",value:function(i,o){var a=o.instanceProps;$u({treeData:a.treeData,getNodeKey:i.getNodeKey,callback:function(s){var c=s.node,u=s.path,d=s.lowerSiblingCounts,f=s.treeIndex;c.children&&typeof c.children=="function"&&(c.expanded||i.loadCollapsedLazyChildren)&&c.children({node:c,path:u,lowerSiblingCounts:d,treeIndex:f,done:function(h){return i.onChange(Er({treeData:a.treeData,path:u,newNode:function(b){var y=b.node;return y===c?se(se({},y),{},{children:h}):y},getNodeKey:i.getNodeKey}))}})}})}}]),r})(v.Component);ni.propTypes={dragDropManager:S.shape({getMonitor:S.func}).isRequired,treeData:S.arrayOf(S.object).isRequired,style:S.shape({}),className:S.string,innerStyle:S.shape({}),rowHeight:S.oneOfType([S.number,S.func]),slideRegionSize:S.number,reactVirtualizedListProps:S.shape({}),scaffoldBlockPxWidth:S.number,maxDepth:S.number,searchMethod:S.func,searchQuery:S.any,searchFocusOffset:S.number,searchFinishCallback:S.func,generateNodeProps:S.func,isVirtualized:S.bool,treeNodeRenderer:S.func,nodeContentRenderer:S.func,placeholderRenderer:S.func,theme:S.shape({style:S.shape({}),innerStyle:S.shape({}),reactVirtualizedListProps:S.shape({}),scaffoldBlockPxWidth:S.number,slideRegionSize:S.number,rowHeight:S.oneOfType([S.number,S.func]),treeNodeRenderer:S.func,nodeContentRenderer:S.func,placeholderRenderer:S.func}),getNodeKey:S.func,onChange:S.func.isRequired,onMoveNode:S.func,canDrag:S.oneOfType([S.func,S.bool]),canDrop:S.func,canNodeHaveChildren:S.func,shouldCopyOnOutsideDrop:S.oneOfType([S.func,S.bool]),onVisibilityToggle:S.func,dndType:S.string,onDragStateChanged:S.func,onlyExpandSearchedNodes:S.bool,rowDirection:S.string};ni.defaultProps={canDrag:!0,canDrop:null,canNodeHaveChildren:function(){return!0},className:"",dndType:null,generateNodeProps:null,getNodeKey:ib,innerStyle:{},isVirtualized:!0,maxDepth:null,treeNodeRenderer:null,nodeContentRenderer:null,onMoveNode:function(){},onVisibilityToggle:function(){},placeholderRenderer:null,reactVirtualizedListProps:{},rowHeight:null,scaffoldBlockPxWidth:null,searchFinishCallback:null,searchFocusOffset:null,searchMethod:null,searchQuery:null,shouldCopyOnOutsideDrop:!1,slideRegionSize:null,style:{},theme:{},onDragStateChanged:function(){},onlyExpandSearchedNodes:!1,rowDirection:"ltr"};Ym(ni);var db=function(t){return Q.createElement(Kh.Consumer,null,function(r){var n=r.dragDropManager;return n===void 0?null:Q.createElement(ni,St({},t,{dragDropManager:n}))})},Dn={exports:{}},ql=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nn=(typeof window>"u"?"undefined":ql(window))==="object"&&(typeof document>"u"?"undefined":ql(document))==="object"&&document.nodeType===9,fb={}.constructor;function ao(e){if(e==null||typeof e!="object")return e;if(Array.isArray(e))return e.map(ao);if(e.constructor!==fb)return e;var t={};for(var r in e)t[r]=ao(e[r]);return t}function ia(e,t,r){e===void 0&&(e="unnamed");var n=r.jss,i=ao(t),o=n.plugins.onCreateRule(e,i,r);return o||(e[0],null)}var Kl=function(t,r){for(var n="",i=0;i<t.length&&t[i]!=="!important";i++)n&&(n+=r),n+=t[i];return n},zt=function(t){if(!Array.isArray(t))return t;var r="";if(Array.isArray(t[0]))for(var n=0;n<t.length&&t[n]!=="!important";n++)r&&(r+=", "),r+=Kl(t[n]," ");else r=Kl(t,", ");return t[t.length-1]==="!important"&&(r+=" !important"),r};function pr(e){return e&&e.format===!1?{linebreak:"",space:""}:{linebreak:`
59
+ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=Au,t.componentWillReceiveProps=Lu),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=zu;var l=t.componentDidUpdate;t.componentDidUpdate=function(c,u,d){var f=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:d;l.call(this,c,u,f)}}return e}function ju(e){var t=e.targetIndex,r=e.node,n=e.currentIndex,i=e.getNodeKey,o=e.path,a=o===void 0?[]:o,l=e.lowerSiblingCounts,s=l===void 0?[]:l,c=e.ignoreCollapsed,u=c===void 0?!0:c,d=e.isPseudoRoot,f=d===void 0?!1:d,p=f?[]:[].concat(me(a),[i({node:r,treeIndex:n})]);if(n===t)return{node:r,lowerSiblingCounts:s,path:p};if(!r.children||u&&r.expanded!==!0)return{nextIndex:n+1};for(var h=n+1,m=r.children.length,b=0;b<m;b+=1){var y=ju({ignoreCollapsed:u,getNodeKey:i,targetIndex:t,node:r.children[b],currentIndex:h,lowerSiblingCounts:[].concat(me(s),[m-b-1]),path:p});if(y.node)return y;h=y.nextIndex}return{nextIndex:h}}function Xo(e){var t=e.node,r=e.ignoreCollapsed,n=r===void 0?!0:r;return ju({getNodeKey:function(){},ignoreCollapsed:n,node:t,currentIndex:0,targetIndex:-1}).nextIndex-1}function Fu(e){var t=e.callback,r=e.getNodeKey,n=e.ignoreCollapsed,i=e.isPseudoRoot,o=i===void 0?!1:i,a=e.node,l=e.parentNode,s=l===void 0?null:l,c=e.currentIndex,u=e.path,d=u===void 0?[]:u,f=e.lowerSiblingCounts,p=f===void 0?[]:f,h=o?[]:[].concat(me(d),[r({node:a,treeIndex:c})]),m=o?null:{node:a,parentNode:s,path:h,lowerSiblingCounts:p,treeIndex:c};if(!o){var b=t(m);if(b===!1)return!1}if(!a.children||a.expanded!==!0&&n&&!o)return c;var y=c,x=a.children.length;if(typeof a.children!="function"){for(var _=0;_<x;_+=1)if(y=Fu({callback:t,getNodeKey:r,ignoreCollapsed:n,node:a.children[_],parentNode:o?null:a,currentIndex:y+1,lowerSiblingCounts:[].concat(me(p),[x-_-1]),path:h}),y===!1)return!1}return y}function Bu(e){var t=e.callback,r=e.getNodeKey,n=e.ignoreCollapsed,i=e.isPseudoRoot,o=i===void 0?!1:i,a=e.node,l=e.parentNode,s=l===void 0?null:l,c=e.currentIndex,u=e.path,d=u===void 0?[]:u,f=e.lowerSiblingCounts,p=f===void 0?[]:f,h=se({},a),m=o?[]:[].concat(me(d),[r({node:h,treeIndex:c})]),b={node:h,parentNode:s,path:m,lowerSiblingCounts:p,treeIndex:c};if(!h.children||h.expanded!==!0&&n&&!o)return{treeIndex:c,node:t(b)};var y=c,x=h.children.length;return typeof h.children!="function"&&(h.children=h.children.map(function(_,T){var k=Bu({callback:t,getNodeKey:r,ignoreCollapsed:n,node:_,parentNode:o?null:h,currentIndex:y+1,lowerSiblingCounts:[].concat(me(p),[x-T-1]),path:m});return y=k.treeIndex,k.node})),{node:t(b),treeIndex:y}}function $u(e){var t=e.treeData,r=e.getNodeKey,n=e.callback,i=e.ignoreCollapsed,o=i===void 0?!0:i;!t||t.length<1||Fu({callback:n,getNodeKey:r,ignoreCollapsed:o,isPseudoRoot:!0,node:{children:t},currentIndex:-1,path:[],lowerSiblingCounts:[]})}function Jm(e){var t=e.treeData,r=e.getNodeKey,n=e.callback,i=e.ignoreCollapsed,o=i;return!t||t.length<1?[]:Bu({callback:n,getNodeKey:r,ignoreCollapsed:o,isPseudoRoot:!0,node:{children:t},currentIndex:-1,path:[],lowerSiblingCounts:[]}).node.children}function Qm(e){var t=e.treeData,r=e.expanded,n=r===void 0?!0:r;return Jm({treeData:t,callback:function(o){var a=o.node;return se(se({},a),{},{expanded:n})},getNodeKey:function(o){var a=o.treeIndex;return a},ignoreCollapsed:!1})}function Er(e){var t=e.treeData,r=e.path,n=e.newNode,i=e.getNodeKey,o=e.ignoreCollapsed,a=o===void 0?!0:o,l="RESULT_MISS",s=function u(d){var f=d.isPseudoRoot,p=f===void 0?!1:f,h=d.node,m=d.currentTreeIndex,b=d.pathIndex;if(!p&&i({node:h,treeIndex:m})!==r[b])return l;if(b>=r.length-1)return typeof n=="function"?n({node:h,treeIndex:m}):n;if(!h.children)throw new Error("Path referenced children of node with no children.");for(var y=m+1,x=0;x<h.children.length;x+=1){var _=u({node:h.children[x],currentTreeIndex:y,pathIndex:b+1});if(_!==l)return _?se(se({},h),{},{children:[].concat(me(h.children.slice(0,x)),[_],me(h.children.slice(x+1)))}):se(se({},h),{},{children:[].concat(me(h.children.slice(0,x)),me(h.children.slice(x+1)))});y+=1+Xo({node:h.children[x],ignoreCollapsed:a})}return l},c=s({node:{children:t},currentTreeIndex:-1,pathIndex:-1,isPseudoRoot:!0});if(c===l)throw new Error("No node found at the given path.");return c.children}function Xm(e){var t=e.treeData,r=e.path,n=e.getNodeKey,i=e.ignoreCollapsed,o=i===void 0?!0:i,a=null,l=null,s=Er({treeData:t,path:r,getNodeKey:n,ignoreCollapsed:o,newNode:function(u){var d=u.node,f=u.treeIndex;return a=d,l=f,null}});return{treeData:s,node:a,treeIndex:l}}function Gu(e){var t=e.targetDepth,r=e.minimumTreeIndex,n=e.newNode,i=e.ignoreCollapsed,o=e.expandParent,a=e.isPseudoRoot,l=a===void 0?!1:a,s=e.isLastChild,c=e.node,u=e.currentIndex,d=e.currentDepth,f=e.getNodeKey,p=e.path,h=p===void 0?[]:p,m=function(z){return l?[]:[].concat(me(h),[f({node:z,treeIndex:u})])};if(u>=r-1||s&&!(c.children&&c.children.length)){if(typeof c.children=="function")throw new Error("Cannot add to children defined by a function");var b=o?{expanded:!0}:{},y=se(se(se({},c),b),{},{children:c.children?[n].concat(me(c.children)):[n]});return{node:y,nextIndex:u+2,insertedTreeIndex:u+1,parentPath:m(y),parentNode:l?null:y}}if(d>=t-1){if(!c.children||typeof c.children=="function"||c.expanded!==!0&&i&&!l)return{node:c,nextIndex:u+1};for(var x=u+1,_=null,T=null,k=0;k<c.children.length;k+=1){if(x>=r){_=x,T=k;break}x+=1+Xo({node:c.children[k],ignoreCollapsed:i})}if(T===null){if(x<r&&!s)return{node:c,nextIndex:x};_=x,T=c.children.length}var C=se(se({},c),{},{children:[].concat(me(c.children.slice(0,T)),[n],me(c.children.slice(T)))});return{node:C,nextIndex:x,insertedTreeIndex:_,parentPath:m(C),parentNode:l?null:C}}if(!c.children||typeof c.children=="function"||c.expanded!==!0&&i&&!l)return{node:c,nextIndex:u+1};var D=null,w=null,R=null,I=u+1,P=c.children;typeof P!="function"&&(P=P.map(function(G,z){if(D!==null)return G;var F=Gu({targetDepth:t,minimumTreeIndex:r,newNode:n,ignoreCollapsed:i,expandParent:o,isLastChild:s&&z===P.length-1,node:G,currentIndex:I,currentDepth:d+1,getNodeKey:f,path:[]});return"insertedTreeIndex"in F&&(D=F.insertedTreeIndex,R=F.parentNode,w=F.parentPath),I=F.nextIndex,F.node}));var L=se(se({},c),{},{children:P}),N={node:L,nextIndex:I};return D!==null&&(N.insertedTreeIndex=D,N.parentPath=[].concat(me(m(L)),me(w)),N.parentNode=R),N}function Wu(e){var t=e.treeData,r=e.depth,n=e.minimumTreeIndex,i=e.newNode,o=e.getNodeKey,a=o===void 0?function(){}:o,l=e.ignoreCollapsed,s=l===void 0?!0:l,c=e.expandParent,u=c===void 0?!1:c;if(!t&&r===0)return{treeData:[i],treeIndex:0,path:[a({node:i,treeIndex:0})],parentNode:null};var d=Gu({targetDepth:r,minimumTreeIndex:n,newNode:i,ignoreCollapsed:s,expandParent:u,getNodeKey:a,isPseudoRoot:!0,isLastChild:!0,node:{children:t},currentIndex:-1,currentDepth:-1});if(!("insertedTreeIndex"in d))throw new Error("No suitable position found to insert.");var f=d.insertedTreeIndex;return{treeData:d.node.children,treeIndex:f,path:[].concat(me(d.parentPath),[a({node:i,treeIndex:f})]),parentNode:d.parentNode}}function Zm(e){var t=e.treeData,r=e.getNodeKey,n=e.ignoreCollapsed,i=n===void 0?!0:n;if(!t||t.length<1)return[];var o=[];return $u({treeData:t,getNodeKey:r,ignoreCollapsed:i,callback:function(l){o.push(l)}}),o}function Hu(e,t){return!!e.children&&typeof e.children!="function"&&e.children.some(function(r){return r===t||Hu(r,t)})}function Uu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.children?typeof e.children=="function"?t+1:e.children.reduce(function(r,n){return Math.max(r,Uu(n,t+1))},t):t}function eb(e){var t=e.getNodeKey,r=e.treeData,n=e.searchQuery,i=e.searchMethod,o=e.searchFocusOffset,a=e.expandAllMatchPaths,l=a===void 0?!1:a,s=e.expandFocusMatchPaths,c=s===void 0?!0:s,u=0,d=function p(h){var m=h.isPseudoRoot,b=m===void 0?!1:m,y=h.node,x=h.currentIndex,_=h.path,T=_===void 0?[]:_,k=[],C=!1,D=!1,w=b?[]:[].concat(me(T),[t({node:y,treeIndex:x})]),R=b?null:{path:w,treeIndex:x},I=y.children&&typeof y.children!="function"&&y.children.length>0;!b&&i(se(se({},R),{},{node:y,searchQuery:n}))&&(u===o&&(D=!0),u+=1,C=!0);var P=x,L=se({},y);return I&&(L.children=L.children.map(function(N){var G=p({node:N,currentIndex:P+1,path:w});return G.node.expanded?P=G.treeIndex:P+=1,(G.matches.length>0||G.hasFocusMatch)&&(k=[].concat(me(k),me(G.matches)),G.hasFocusMatch&&(D=!0),(l&&G.matches.length>0||(l||c)&&G.hasFocusMatch)&&(L.expanded=!0)),G.node})),!b&&!L.expanded&&(k=k.map(function(N){return se(se({},N),{},{treeIndex:null})})),C&&(k=[se(se({},R),{},{node:L})].concat(me(k))),{node:k.length>0?L:y,matches:k,hasFocusMatch:D,treeIndex:P}},f=d({node:{children:r},isPseudoRoot:!0,currentIndex:-1});return{matches:f.matches,treeData:f.node.children}}function He(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(Boolean).join(" ")}function tb(e){function t(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}return function(){var r=ot(e),n;if(t()){var i=ot(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ri(this,n)}}var Zo=(function(e){ti(r,e);var t=tb(r);function r(){return tn(this,r),t.apply(this,arguments)}return rn(r,[{key:"render",value:function(){var i=this.props,o=i.scaffoldBlockPxWidth,a=i.toggleChildrenVisibility,l=i.connectDragPreview,s=i.connectDragSource,c=i.isDragging,u=i.canDrop,d=i.canDrag,f=i.node,p=i.title,h=i.subtitle,m=i.draggedNode,b=i.path,y=i.treeIndex,x=i.isSearchMatch,_=i.isSearchFocus,T=i.buttons,k=i.className,C=i.style,D=i.didDrop;i.treeId,i.isOver,i.parentNode;var w=i.rowDirection,R=Qo(i,["scaffoldBlockPxWidth","toggleChildrenVisibility","connectDragPreview","connectDragSource","isDragging","canDrop","canDrag","node","title","subtitle","draggedNode","path","treeIndex","isSearchMatch","isSearchFocus","buttons","className","style","didDrop","treeId","isOver","parentNode","rowDirection"]),I=p||f.title,P=h||f.subtitle,L=w==="rtl"?"rst__rtl":null,N;d&&(typeof f.children=="function"&&f.expanded?N=Q.createElement("div",{className:"rst__loadingHandle"},Q.createElement("div",{className:"rst__loadingCircle"},me(new Array(12)).map(function(W,H){return Q.createElement("div",{key:H,className:He("rst__loadingCirclePoint",L)})}))):N=s(Q.createElement("div",{className:"rst__moveHandle"}),{dropEffect:"copy"}));var G=m&&Hu(m,f),z=!D&&c,F={left:-.5*o};return w==="rtl"&&(F={right:-.5*o}),Q.createElement("div",St({style:{height:"100%"}},R),a&&f.children&&(f.children.length>0||typeof f.children=="function")&&Q.createElement("div",null,Q.createElement("button",{type:"button","aria-label":f.expanded?"Collapse":"Expand",className:He(f.expanded?"rst__collapseButton":"rst__expandButton",L),style:F,onClick:function(){return a({node:f,path:b,treeIndex:y})}}),f.expanded&&!c&&Q.createElement("div",{style:{width:o},className:He("rst__lineChildren",L)})),Q.createElement("div",{className:He("rst__rowWrapper",L)},l(Q.createElement("div",{className:He("rst__row",z&&"rst__rowLandingPad",z&&!u&&"rst__rowCancelPad",x&&"rst__rowSearchMatch",_&&"rst__rowSearchFocus",L,k),style:se({opacity:G?.5:1},C)},N,Q.createElement("div",{className:He("rst__rowContents",!d&&"rst__rowContentsDragDisabled",L)},Q.createElement("div",{className:He("rst__rowLabel",L)},Q.createElement("span",{className:He("rst__rowTitle",f.subtitle&&"rst__rowTitleWithSubtitle")},typeof I=="function"?I({node:f,path:b,treeIndex:y}):I),P&&Q.createElement("span",{className:"rst__rowSubtitle"},typeof P=="function"?P({node:f,path:b,treeIndex:y}):P)),Q.createElement("div",{className:"rst__rowToolbar"},T.map(function(W,H){return Q.createElement("div",{key:H,className:"rst__toolbarButton"},W)})))))))}}]),r})(v.Component);Zo.defaultProps={isSearchMatch:!1,isSearchFocus:!1,canDrag:!1,toggleChildrenVisibility:null,buttons:[],className:"",style:{},parentNode:null,draggedNode:null,canDrop:!1,title:null,subtitle:null,rowDirection:"ltr"};Zo.propTypes={node:S.shape({}).isRequired,title:S.oneOfType([S.func,S.node]),subtitle:S.oneOfType([S.func,S.node]),path:S.arrayOf(S.oneOfType([S.string,S.number])).isRequired,treeIndex:S.number.isRequired,treeId:S.string.isRequired,isSearchMatch:S.bool,isSearchFocus:S.bool,canDrag:S.bool,scaffoldBlockPxWidth:S.number.isRequired,toggleChildrenVisibility:S.func,buttons:S.arrayOf(S.node),className:S.string,style:S.shape({}),connectDragPreview:S.func.isRequired,connectDragSource:S.func.isRequired,parentNode:S.shape({}),isDragging:S.bool.isRequired,didDrop:S.bool.isRequired,draggedNode:S.shape({}),isOver:S.bool.isRequired,canDrop:S.bool,rowDirection:S.string};var ea=function(t){var r=t.isOver,n=t.canDrop;return Q.createElement("div",{className:He("rst__placeholder",n&&"rst__placeholderLandingPad",n&&!r&&"rst__placeholderCancelPad")})};ea.defaultProps={isOver:!1,canDrop:!1};ea.propTypes={isOver:S.bool,canDrop:S.bool};function rb(e){function t(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}return function(){var r=ot(e),n;if(t()){var i=ot(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ri(this,n)}}var ta=(function(e){ti(r,e);var t=rb(r);function r(){return tn(this,r),t.apply(this,arguments)}return rn(r,[{key:"render",value:function(){var i=this.props,o=i.children,a=i.listIndex,l=i.swapFrom,s=i.swapLength,c=i.swapDepth,u=i.scaffoldBlockPxWidth,d=i.lowerSiblingCounts,f=i.connectDropTarget,p=i.isOver,h=i.draggedNode,m=i.canDrop,b=i.treeIndex;i.treeId,i.getPrevRow,i.node,i.path;var y=i.rowDirection,x=Qo(i,["children","listIndex","swapFrom","swapLength","swapDepth","scaffoldBlockPxWidth","lowerSiblingCounts","connectDropTarget","isOver","draggedNode","canDrop","treeIndex","treeId","getPrevRow","node","path","rowDirection"]),_=y==="rtl"?"rst__rtl":null,T=d.length,k=[];d.forEach(function(D,w){var R="";if(D>0?a===0?R="rst__lineHalfHorizontalRight rst__lineHalfVerticalBottom":w===T-1?R="rst__lineHalfHorizontalRight rst__lineFullVertical":R="rst__lineFullVertical":a===0?R="rst__lineHalfHorizontalRight":w===T-1&&(R="rst__lineHalfVerticalTop rst__lineHalfHorizontalRight"),k.push(Q.createElement("div",{key:"pre_".concat(1+w),style:{width:u},className:He("rst__lineBlock",R,_)})),b!==a&&w===c){var I="";a===l+s-1?I="rst__highlightBottomLeftCorner":b===l?I="rst__highlightTopLeftCorner":I="rst__highlightLineVertical";var P;y==="rtl"?P={width:u,right:u*w}:P={width:u,left:u*w},k.push(Q.createElement("div",{key:w,style:P,className:He("rst__absoluteLineBlock",I,_)}))}});var C;return y==="rtl"?C={right:u*T}:C={left:u*T},f(Q.createElement("div",St({},x,{className:He("rst__node",_)}),k,Q.createElement("div",{className:"rst__nodeContent",style:C},v.Children.map(o,function(D){return v.cloneElement(D,{isOver:p,canDrop:m,draggedNode:h})}))))}}]),r})(v.Component);ta.defaultProps={swapFrom:null,swapDepth:null,swapLength:null,canDrop:!1,draggedNode:null,rowDirection:"ltr"};ta.propTypes={treeIndex:S.number.isRequired,treeId:S.string.isRequired,swapFrom:S.number,swapDepth:S.number,swapLength:S.number,scaffoldBlockPxWidth:S.number.isRequired,lowerSiblingCounts:S.arrayOf(S.number).isRequired,listIndex:S.number.isRequired,children:S.node.isRequired,connectDropTarget:S.func.isRequired,isOver:S.bool.isRequired,canDrop:S.bool,draggedNode:S.shape({}),getPrevRow:S.func.isRequired,node:S.shape({}).isRequired,path:S.arrayOf(S.oneOfType([S.string,S.number])).isRequired,rowDirection:S.string};function nb(e){function t(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}return function(){var r=ot(e),n;if(t()){var i=ot(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ri(this,n)}}var ra=(function(e){ti(r,e);var t=nb(r);function r(){return tn(this,r),t.apply(this,arguments)}return rn(r,[{key:"render",value:function(){var i=this.props,o=i.children,a=i.connectDropTarget;i.treeId,i.drop;var l=Qo(i,["children","connectDropTarget","treeId","drop"]);return a(Q.createElement("div",null,v.Children.map(o,function(s){return v.cloneElement(s,se({},l))})))}}]),r})(v.Component);ra.defaultProps={canDrop:!1,draggedNode:null};ra.propTypes={children:S.node.isRequired,connectDropTarget:S.func.isRequired,isOver:S.bool.isRequired,canDrop:S.bool,draggedNode:S.shape({}),treeId:S.string.isRequired,drop:S.func.isRequired};function ib(e){var t=e.treeIndex;return t}function Vu(e){return typeof e=="string"?e:e===null||tr(e)!=="object"||!e.props||!e.props.children||typeof e.props.children!="string"&&tr(e.props.children)!=="object"?"":typeof e.props.children=="string"?e.props.children:e.props.children.map(function(t){return Vu(t)}).join("")}function Ul(e,t,r,n,i){return typeof r[e]=="function"?String(r[e]({node:r,path:n,treeIndex:i})).indexOf(t)>-1:tr(r[e])==="object"?Vu(r[e]).indexOf(t)>-1:r[e]&&String(r[e]).indexOf(t)>-1}function ob(e){var t=e.node,r=e.path,n=e.treeIndex,i=e.searchQuery;return Ul("title",i,t,r,n)||Ul("subtitle",i,t,r,n)}var na=function(t){var r=[],n=[],i=null;return function(o){var a=Object.keys(o).sort(),l=a.map(function(s){return o[s]});return(l.length!==r.length||l.some(function(s,c){return s!==r[c]})||a.some(function(s,c){return s!==n[c]}))&&(r=l,n=a,i=t(o)),i}},oo=na(Wu),ab=na(Zm),lb=na(Xo),sb=(function(){function e(t){tn(this,e),this.treeRef=t}return rn(e,[{key:"getTargetDepth",value:function(r,n,i){var o=0,a=r.getPrevRow();if(a){var l=a.path,s=!this.treeRef.canNodeHaveChildren(a.node);s&&(l=l.slice(0,l.length-1)),o=Math.min(l.length,r.path.length)}var c,u=(n.getItem().path||[]).length;if(n.getItem().treeId!==this.treeId)if(u=0,i){var d=xc.findDOMNode(i).getBoundingClientRect(),f=n.getSourceClientOffset().x-d.left;c=Math.round(f/r.scaffoldBlockPxWidth)}else c=r.path.length;else{var p=r.rowDirection==="rtl"?-1:1;c=Math.round(p*n.getDifferenceFromInitialOffset().x/r.scaffoldBlockPxWidth)}var h=Math.min(o,Math.max(0,u+c-1));if(typeof this.maxDepth<"u"&&this.maxDepth!==null){var m=n.getItem().node,b=Uu(m);h=Math.max(0,Math.min(h,this.maxDepth-b-1))}return h}},{key:"canDrop",value:function(r,n){if(!n.isOver())return!1;var i=r.getPrevRow(),o=i?i.path:[],a=i?i.node:{},l=this.getTargetDepth(r,n,null);if(l>=o.length&&typeof a.children=="function")return!1;if(typeof this.customCanDrop=="function"){var s=n.getItem(),c=s.node,u=oo({treeData:this.treeData,newNode:c,depth:l,getNodeKey:this.getNodeKey,minimumTreeIndex:r.listIndex,expandParent:!0});return this.customCanDrop({node:c,prevPath:n.getItem().path,prevParent:n.getItem().parentNode,prevTreeIndex:n.getItem().treeIndex,nextPath:u.path,nextParent:u.parentNode,nextTreeIndex:u.treeIndex})}return!0}},{key:"wrapSource",value:function(r){var n=this,i={beginDrag:function(l){return n.startDrag(l),{node:l.node,parentNode:l.parentNode,path:l.path,treeIndex:l.treeIndex,treeId:l.treeId}},endDrag:function(l,s){n.endDrag(s.getDropResult())},isDragging:function(l,s){var c=s.getItem().node,u=l.node;return u===c}};function o(a,l){return{connectDragSource:a.dragSource(),connectDragPreview:a.dragPreview(),isDragging:l.isDragging(),didDrop:l.didDrop()}}return Yh(this.dndType,i,o)(r)}},{key:"wrapTarget",value:function(r){var n=this,i={drop:function(l,s,c){var u={node:s.getItem().node,path:s.getItem().path,treeIndex:s.getItem().treeIndex,treeId:n.treeId,minimumTreeIndex:l.treeIndex,depth:n.getTargetDepth(l,s,c)};return n.drop(u),u},hover:function(l,s,c){var u=n.getTargetDepth(l,s,c),d=s.getItem().node,f=l.node!==d||u!==l.path.length-1;f&&(cancelAnimationFrame(n.rafId),n.rafId=requestAnimationFrame(function(){n.dragHover({node:d,path:s.getItem().path,minimumTreeIndex:l.listIndex,depth:u})}))},canDrop:this.canDrop.bind(this)};function o(a,l){var s=l.getItem();return{connectDropTarget:a.dropTarget(),isOver:l.isOver(),canDrop:l.canDrop(),draggedNode:s?s.node:null}}return el(this.dndType,i,o)(r)}},{key:"wrapPlaceholder",value:function(r){var n=this,i={drop:function(l,s){var c=s.getItem(),u=c.node,d=c.path,f=c.treeIndex,p={node:u,path:d,treeIndex:f,treeId:n.treeId,minimumTreeIndex:0,depth:0};return n.drop(p),p}};function o(a,l){var s=l.getItem();return{connectDropTarget:a.dropTarget(),isOver:l.isOver(),canDrop:l.canDrop(),draggedNode:s?s.node:null}}return el(this.dndType,i,o)(r)}},{key:"startDrag",get:function(){return this.treeRef.startDrag}},{key:"dragHover",get:function(){return this.treeRef.dragHover}},{key:"endDrag",get:function(){return this.treeRef.endDrag}},{key:"drop",get:function(){return this.treeRef.drop}},{key:"treeId",get:function(){return this.treeRef.treeId}},{key:"dndType",get:function(){return this.treeRef.dndType}},{key:"treeData",get:function(){return this.treeRef.state.draggingTreeData||this.treeRef.props.treeData}},{key:"getNodeKey",get:function(){return this.treeRef.props.getNodeKey}},{key:"customCanDrop",get:function(){return this.treeRef.props.canDrop}},{key:"maxDepth",get:function(){return this.treeRef.props.maxDepth}}]),e})();function cb(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,i=[].concat(me(e.slice(0,t)),me(e.slice(t+n)));return[].concat(me(i.slice(0,r)),me(e.slice(t,t+n)),me(i.slice(r)))}function ub(e){function t(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}return function(){var r=ot(e),n;if(t()){var i=ot(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ri(this,n)}}var Vl=1,Ci=function(t){var r=se(se({},t),{},{style:se(se({},t.theme.style),t.style),innerStyle:se(se({},t.theme.innerStyle),t.innerStyle),reactVirtualizedListProps:se(se({},t.theme.reactVirtualizedListProps),t.reactVirtualizedListProps)}),n={nodeContentRenderer:Zo,placeholderRenderer:ea,rowHeight:62,scaffoldBlockPxWidth:44,slideRegionSize:100,treeNodeRenderer:ta};return Object.keys(n).forEach(function(i){t[i]===null&&(r[i]=typeof t.theme[i]<"u"?t.theme[i]:n[i])}),r},ni=(function(e){ti(r,e);var t=ub(r);function r(n){var i;tn(this,r),i=t.call(this,n);var o=Ci(n),a=o.dndType,l=o.nodeContentRenderer,s=o.treeNodeRenderer,c=o.isVirtualized,u=o.slideRegionSize;return i.dndManager=new sb(ut(i)),i.treeId="rst__".concat(Vl),Vl+=1,i.dndType=a||i.treeId,i.nodeContentRenderer=i.dndManager.wrapSource(l),i.treePlaceholderRenderer=i.dndManager.wrapPlaceholder(ra),i.treeNodeRenderer=i.dndManager.wrapTarget(s),c&&(i.scrollZoneVirtualList=(Rn.createScrollingComponent||uv)(vu),i.vStrength=Rn.createVerticalStrength(u),i.hStrength=Rn.createHorizontalStrength(u)),i.state={draggingTreeData:null,draggedNode:null,draggedMinimumTreeIndex:null,draggedDepth:null,searchMatches:[],searchFocusTreeIndex:null,dragging:!1,instanceProps:{treeData:[],ignoreOneTreeUpdate:!1,searchQuery:null,searchFocusOffset:null}},i.toggleChildrenVisibility=i.toggleChildrenVisibility.bind(ut(i)),i.moveNode=i.moveNode.bind(ut(i)),i.startDrag=i.startDrag.bind(ut(i)),i.dragHover=i.dragHover.bind(ut(i)),i.endDrag=i.endDrag.bind(ut(i)),i.drop=i.drop.bind(ut(i)),i.handleDndMonitorChange=i.handleDndMonitorChange.bind(ut(i)),i}return rn(r,[{key:"componentDidMount",value:function(){r.loadLazyChildren(this.props,this.state);var i=r.search(this.props,this.state,!0,!0,!1);this.setState(i),this.clearMonitorSubscription=this.props.dragDropManager.getMonitor().subscribeToStateChange(this.handleDndMonitorChange)}},{key:"componentDidUpdate",value:function(i,o){this.state.dragging!==o.dragging&&this.props.onDragStateChanged&&this.props.onDragStateChanged({isDragging:this.state.dragging,draggedNode:this.state.draggedNode})}},{key:"componentWillUnmount",value:function(){this.clearMonitorSubscription()}},{key:"getRows",value:function(i){return ab({ignoreCollapsed:!0,getNodeKey:this.props.getNodeKey,treeData:i})}},{key:"handleDndMonitorChange",value:function(){var i=this.props.dragDropManager.getMonitor();!i.isDragging()&&this.state.draggingTreeData&&this.endDrag()}},{key:"toggleChildrenVisibility",value:function(i){var o=i.node,a=i.path,l=this.state.instanceProps,s=Er({treeData:l.treeData,path:a,newNode:function(u){var d=u.node;return se(se({},d),{},{expanded:!d.expanded})},getNodeKey:this.props.getNodeKey});this.props.onChange(s),this.props.onVisibilityToggle({treeData:s,node:o,expanded:!o.expanded,path:a})}},{key:"moveNode",value:function(i){var o=i.node,a=i.path,l=i.treeIndex,s=i.depth,c=i.minimumTreeIndex,u=Wu({treeData:this.state.draggingTreeData,newNode:o,depth:s,minimumTreeIndex:c,expandParent:!0,getNodeKey:this.props.getNodeKey}),d=u.treeData,f=u.treeIndex,p=u.path,h=u.parentNode;this.props.onChange(d),this.props.onMoveNode({treeData:d,node:o,treeIndex:f,path:p,nextPath:p,nextTreeIndex:f,prevPath:a,prevTreeIndex:l,nextParentNode:h})}},{key:"startDrag",value:function(i){var o=this,a=i.path;this.setState(function(l){var s=Xm({treeData:l.instanceProps.treeData,path:a,getNodeKey:o.props.getNodeKey}),c=s.treeData,u=s.node,d=s.treeIndex;return{draggingTreeData:c,draggedNode:u,draggedDepth:a.length-1,draggedMinimumTreeIndex:d,dragging:!0}})}},{key:"dragHover",value:function(i){var o=this,a=i.node,l=i.depth,s=i.minimumTreeIndex;this.state.draggedDepth===l&&this.state.draggedMinimumTreeIndex===s||this.setState(function(c){var u=c.draggingTreeData,d=c.instanceProps,f=u||d.treeData,p=oo({treeData:f,newNode:a,depth:l,minimumTreeIndex:s,expandParent:!0,getNodeKey:o.props.getNodeKey}),h=o.getRows(p.treeData),m=h[p.treeIndex].path;return{draggedNode:a,draggedDepth:l,draggedMinimumTreeIndex:s,draggingTreeData:Er({treeData:f,path:m.slice(0,-1),newNode:function(y){var x=y.node;return se(se({},x),{},{expanded:!0})},getNodeKey:o.props.getNodeKey}),searchFocusTreeIndex:null,dragging:!0}})}},{key:"endDrag",value:function(i){var o=this,a=this.state.instanceProps,l=function(){return o.setState({draggingTreeData:null,draggedNode:null,draggedMinimumTreeIndex:null,draggedDepth:null,dragging:!1})};if(!i)l();else if(i.treeId!==this.treeId){var s=i.node,c=i.path,u=i.treeIndex,d=this.props.shouldCopyOnOutsideDrop;typeof d=="function"&&(d=d({node:s,prevTreeIndex:u,prevPath:c}));var f=this.state.draggingTreeData||a.treeData;d&&(f=Er({treeData:a.treeData,path:c,newNode:function(h){var m=h.node;return se({},m)},getNodeKey:this.props.getNodeKey})),this.props.onChange(f),this.props.onMoveNode({treeData:f,node:s,treeIndex:null,path:null,nextPath:null,nextTreeIndex:null,prevPath:c,prevTreeIndex:u})}}},{key:"drop",value:function(i){this.moveNode(i)}},{key:"canNodeHaveChildren",value:function(i){var o=this.props.canNodeHaveChildren;return o?o(i):!0}},{key:"renderRow",value:function(i,o){var a=o.listIndex,l=o.style,s=o.getPrevRow,c=o.matchKeys,u=o.swapFrom,d=o.swapDepth,f=o.swapLength,p=i.node,h=i.parentNode,m=i.path,b=i.lowerSiblingCounts,y=i.treeIndex,x=Ci(this.props),_=x.canDrag,T=x.generateNodeProps,k=x.scaffoldBlockPxWidth,C=x.searchFocusOffset,D=x.rowDirection,w=this.treeNodeRenderer,R=this.nodeContentRenderer,I=m[m.length-1],P=I in c,L=P&&c[I]===C,N={node:p,parentNode:h,path:m,lowerSiblingCounts:b,treeIndex:y,isSearchMatch:P,isSearchFocus:L},G=T?T(N):{},z=typeof _!="function"?_:_(N),F={treeIndex:y,scaffoldBlockPxWidth:k,node:p,path:m,treeId:this.treeId,rowDirection:D};return Q.createElement(w,St({style:l,key:I,listIndex:a,getPrevRow:s,lowerSiblingCounts:b,swapFrom:u,swapLength:f,swapDepth:d},F),Q.createElement(R,St({parentNode:h,isSearchMatch:P,isSearchFocus:L,canDrag:z,toggleChildrenVisibility:this.toggleChildrenVisibility},F,G)))}},{key:"render",value:function(){var i=this,o=Ci(this.props),a=o.dragDropManager,l=o.style,s=o.className,c=o.innerStyle,u=o.rowHeight,d=o.isVirtualized,f=o.placeholderRenderer,p=o.reactVirtualizedListProps,h=o.getNodeKey,m=o.rowDirection,b=this.state,y=b.searchMatches,x=b.searchFocusTreeIndex,_=b.draggedNode,T=b.draggedDepth,k=b.draggedMinimumTreeIndex,C=b.instanceProps,D=this.state.draggingTreeData||C.treeData,w=m==="rtl"?"rst__rtl":null,R,I=null,P=null;if(_&&k!==null){var L=oo({treeData:D,newNode:_,depth:T,minimumTreeIndex:k,expandParent:!0,getNodeKey:h}),N=k;I=L.treeIndex,P=1+lb({node:_}),R=cb(this.getRows(L.treeData),I,N,P)}else R=this.getRows(D);var G={};y.forEach(function(Y,X){var U=Y.path;G[U[U.length-1]]=X});var z=x!==null?{scrollToIndex:x}:{},F=l,W;if(R.length<1){var H=this.treePlaceholderRenderer,J=f;W=Q.createElement(H,{treeId:this.treeId,drop:this.drop},Q.createElement(J,null))}else if(d){F=se({height:"100%"},F);var Z=this.scrollZoneVirtualList;W=Q.createElement(nu,null,function(Y){var X=Y.height,U=Y.width;return Q.createElement(Z,St({},z,{dragDropManager:a,verticalStrength:i.vStrength,horizontalStrength:i.hStrength,speed:30,scrollToAlignment:"start",className:"rst__virtualScrollOverride",width:U,onScroll:function(ne){var ce=ne.scrollTop;i.scrollTop=ce},height:X,style:c,rowCount:R.length,estimatedRowSize:typeof u!="function"?u:void 0,rowHeight:typeof u!="function"?u:function(re){var ne=re.index;return u({index:ne,treeIndex:ne,node:R[ne].node,path:R[ne].path})},rowRenderer:function(ne){var ce=ne.index,B=ne.style;return i.renderRow(R[ce],{listIndex:ce,style:B,getPrevRow:function(){return R[ce-1]||null},matchKeys:G,swapFrom:I,swapDepth:T,swapLength:P})}},p))})}else W=R.map(function(Y,X){return i.renderRow(Y,{listIndex:X,style:{height:typeof u!="function"?u:u({index:X,treeIndex:X,node:Y.node,path:Y.path})},getPrevRow:function(){return R[X-1]||null},matchKeys:G,swapFrom:I,swapDepth:T,swapLength:P})});return Q.createElement("div",{className:He("rst__tree",s,w),style:F},W)}}],[{key:"getDerivedStateFromProps",value:function(i,o){var a=o.instanceProps,l={},s=bl(a.treeData,i.treeData);return a.treeData=i.treeData,s?bl(a.searchQuery,i.searchQuery)?a.searchFocusOffset!==i.searchFocusOffset&&Object.assign(l,r.search(i,o,!0,!0,!0)):Object.assign(l,r.search(i,o,!0,!0,!1)):(a.ignoreOneTreeUpdate?a.ignoreOneTreeUpdate=!1:(l.searchFocusTreeIndex=null,r.loadLazyChildren(i,o),Object.assign(l,r.search(i,o,!1,!1,!1))),l.draggingTreeData=null,l.draggedNode=null,l.draggedMinimumTreeIndex=null,l.draggedDepth=null,l.dragging=!1),a.searchQuery=i.searchQuery,a.searchFocusOffset=i.searchFocusOffset,l.instanceProps=se(se({},a),l.instanceProps),l}},{key:"search",value:function(i,o,a,l,s){var c=i.onChange,u=i.getNodeKey,d=i.searchFinishCallback,f=i.searchQuery,p=i.searchMethod,h=i.searchFocusOffset,m=i.onlyExpandSearchedNodes,b=o.instanceProps;if(!f&&!p)return d&&d([]),{searchMatches:[]};var y={instanceProps:{}},x=eb({getNodeKey:u,treeData:m?Qm({treeData:b.treeData,expanded:!1}):b.treeData,searchQuery:f,searchMethod:p||ob,searchFocusOffset:h,expandAllMatchPaths:l&&!s,expandFocusMatchPaths:!!l}),_=x.treeData,T=x.matches;l&&(y.instanceProps.ignoreOneTreeUpdate=!0,c(_)),d&&d(T);var k=null;return a&&h!==null&&h<T.length&&(k=T[h].treeIndex),y.searchMatches=T,y.searchFocusTreeIndex=k,y}},{key:"loadLazyChildren",value:function(i,o){var a=o.instanceProps;$u({treeData:a.treeData,getNodeKey:i.getNodeKey,callback:function(s){var c=s.node,u=s.path,d=s.lowerSiblingCounts,f=s.treeIndex;c.children&&typeof c.children=="function"&&(c.expanded||i.loadCollapsedLazyChildren)&&c.children({node:c,path:u,lowerSiblingCounts:d,treeIndex:f,done:function(h){return i.onChange(Er({treeData:a.treeData,path:u,newNode:function(b){var y=b.node;return y===c?se(se({},y),{},{children:h}):y},getNodeKey:i.getNodeKey}))}})}})}}]),r})(v.Component);ni.propTypes={dragDropManager:S.shape({getMonitor:S.func}).isRequired,treeData:S.arrayOf(S.object).isRequired,style:S.shape({}),className:S.string,innerStyle:S.shape({}),rowHeight:S.oneOfType([S.number,S.func]),slideRegionSize:S.number,reactVirtualizedListProps:S.shape({}),scaffoldBlockPxWidth:S.number,maxDepth:S.number,searchMethod:S.func,searchQuery:S.any,searchFocusOffset:S.number,searchFinishCallback:S.func,generateNodeProps:S.func,isVirtualized:S.bool,treeNodeRenderer:S.func,nodeContentRenderer:S.func,placeholderRenderer:S.func,theme:S.shape({style:S.shape({}),innerStyle:S.shape({}),reactVirtualizedListProps:S.shape({}),scaffoldBlockPxWidth:S.number,slideRegionSize:S.number,rowHeight:S.oneOfType([S.number,S.func]),treeNodeRenderer:S.func,nodeContentRenderer:S.func,placeholderRenderer:S.func}),getNodeKey:S.func,onChange:S.func.isRequired,onMoveNode:S.func,canDrag:S.oneOfType([S.func,S.bool]),canDrop:S.func,canNodeHaveChildren:S.func,shouldCopyOnOutsideDrop:S.oneOfType([S.func,S.bool]),onVisibilityToggle:S.func,dndType:S.string,onDragStateChanged:S.func,onlyExpandSearchedNodes:S.bool,rowDirection:S.string};ni.defaultProps={canDrag:!0,canDrop:null,canNodeHaveChildren:function(){return!0},className:"",dndType:null,generateNodeProps:null,getNodeKey:ib,innerStyle:{},isVirtualized:!0,maxDepth:null,treeNodeRenderer:null,nodeContentRenderer:null,onMoveNode:function(){},onVisibilityToggle:function(){},placeholderRenderer:null,reactVirtualizedListProps:{},rowHeight:null,scaffoldBlockPxWidth:null,searchFinishCallback:null,searchFocusOffset:null,searchMethod:null,searchQuery:null,shouldCopyOnOutsideDrop:!1,slideRegionSize:null,style:{},theme:{},onDragStateChanged:function(){},onlyExpandSearchedNodes:!1,rowDirection:"ltr"};Ym(ni);var db=function(t){return Q.createElement(Kh.Consumer,null,function(r){var n=r.dragDropManager;return n===void 0?null:Q.createElement(ni,St({},t,{dragDropManager:n}))})},Dn={exports:{}},ql=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nn=(typeof window>"u"?"undefined":ql(window))==="object"&&(typeof document>"u"?"undefined":ql(document))==="object"&&document.nodeType===9,fb={}.constructor;function ao(e){if(e==null||typeof e!="object")return e;if(Array.isArray(e))return e.map(ao);if(e.constructor!==fb)return e;var t={};for(var r in e)t[r]=ao(e[r]);return t}function ia(e,t,r){e===void 0&&(e="unnamed");var n=r.jss,i=ao(t),o=n.plugins.onCreateRule(e,i,r);return o||(e[0],null)}var Kl=function(t,r){for(var n="",i=0;i<t.length&&t[i]!=="!important";i++)n&&(n+=r),n+=t[i];return n},zt=function(t){if(!Array.isArray(t))return t;var r="";if(Array.isArray(t[0]))for(var n=0;n<t.length&&t[n]!=="!important";n++)r&&(r+=", "),r+=Kl(t[n]," ");else r=Kl(t,", ");return t[t.length-1]==="!important"&&(r+=" !important"),r};function pr(e){return e&&e.format===!1?{linebreak:"",space:""}:{linebreak:`
60
60
  `,space:" "}}function Sr(e,t){for(var r="",n=0;n<t;n++)r+=" ";return r+e}function Hr(e,t,r){r===void 0&&(r={});var n="";if(!t)return n;var i=r,o=i.indent,a=o===void 0?0:o,l=t.fallbacks;r.format===!1&&(a=-1/0);var s=pr(r),c=s.linebreak,u=s.space;if(e&&a++,l)if(Array.isArray(l))for(var d=0;d<l.length;d++){var f=l[d];for(var p in f){var h=f[p];h!=null&&(n&&(n+=c),n+=Sr(p+":"+u+zt(h)+";",a))}}else for(var m in l){var b=l[m];b!=null&&(n&&(n+=c),n+=Sr(m+":"+u+zt(b)+";",a))}for(var y in t){var x=t[y];x!=null&&y!=="fallbacks"&&(n&&(n+=c),n+=Sr(y+":"+u+zt(x)+";",a))}return!n&&!r.allowEmpty||!e?n:(a--,n&&(n=""+c+n+c),Sr(""+e+u+"{"+n,a)+Sr("}",a))}var pb=/([[\].#*$><+~=|^:(),"'`\s])/g,Yl=typeof CSS<"u"&&CSS.escape,oa=(function(e){return Yl?Yl(e):e.replace(pb,"\\$1")}),qu=(function(){function e(r,n,i){this.type="style",this.isProcessed=!1;var o=i.sheet,a=i.Renderer;this.key=r,this.options=i,this.style=n,o?this.renderer=o.renderer:a&&(this.renderer=new a)}var t=e.prototype;return t.prop=function(n,i,o){if(i===void 0)return this.style[n];var a=o?o.force:!1;if(!a&&this.style[n]===i)return this;var l=i;(!o||o.process!==!1)&&(l=this.options.jss.plugins.onChangeValue(i,n,this));var s=l==null||l===!1,c=n in this.style;if(s&&!c&&!a)return this;var u=s&&c;if(u?delete this.style[n]:this.style[n]=l,this.renderable&&this.renderer)return u?this.renderer.removeProperty(this.renderable,n):this.renderer.setProperty(this.renderable,n,l),this;var d=this.options.sheet;return d&&d.attached,this},e})(),lo=(function(e){Xn(t,e);function t(n,i,o){var a;a=e.call(this,n,i,o)||this;var l=o.selector,s=o.scoped,c=o.sheet,u=o.generateId;return l?a.selectorText=l:s!==!1&&(a.id=u(Wa(Wa(a)),c),a.selectorText="."+oa(a.id)),a}var r=t.prototype;return r.applyTo=function(i){var o=this.renderer;if(o){var a=this.toJSON();for(var l in a)o.setProperty(i,l,a[l])}return this},r.toJSON=function(){var i={};for(var o in this.style){var a=this.style[o];typeof a!="object"?i[o]=a:Array.isArray(a)&&(i[o]=zt(a))}return i},r.toString=function(i){var o=this.options.sheet,a=o?o.options.link:!1,l=a?q({},i,{allowEmpty:!0}):i;return Hr(this.selectorText,this.style,l)},Se(t,[{key:"selector",set:function(i){if(i!==this.selectorText){this.selectorText=i;var o=this.renderer,a=this.renderable;if(!(!a||!o)){var l=o.setSelector(a,i);l||o.replaceRule(a,this)}}},get:function(){return this.selectorText}}]),t})(qu),hb={onCreateRule:function(t,r,n){return t[0]==="@"||n.parent&&n.parent.type==="keyframes"?null:new lo(t,r,n)}},Ii={indent:1,children:!0},gb=/@([\w-]+)/,vb=(function(){function e(r,n,i){this.type="conditional",this.isProcessed=!1,this.key=r;var o=r.match(gb);this.at=o?o[1]:"unknown",this.query=i.name||"@"+this.at,this.options=i,this.rules=new ii(q({},i,{parent:this}));for(var a in n)this.rules.add(a,n[a]);this.rules.process()}var t=e.prototype;return t.getRule=function(n){return this.rules.get(n)},t.indexOf=function(n){return this.rules.indexOf(n)},t.addRule=function(n,i,o){var a=this.rules.add(n,i,o);return a?(this.options.jss.plugins.onProcessRule(a),a):null},t.replaceRule=function(n,i,o){var a=this.rules.replace(n,i,o);return a&&this.options.jss.plugins.onProcessRule(a),a},t.toString=function(n){n===void 0&&(n=Ii);var i=pr(n),o=i.linebreak;if(n.indent==null&&(n.indent=Ii.indent),n.children==null&&(n.children=Ii.children),n.children===!1)return this.query+" {}";var a=this.rules.toString(n);return a?this.query+" {"+o+a+o+"}":""},e})(),mb=/@container|@media|@supports\s+/,bb={onCreateRule:function(t,r,n){return mb.test(t)?new vb(t,r,n):null}},Ri={indent:1,children:!0},yb=/@keyframes\s+([\w-]+)/,so=(function(){function e(r,n,i){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var o=r.match(yb);o&&o[1]?this.name=o[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=i;var a=i.scoped,l=i.sheet,s=i.generateId;this.id=a===!1?this.name:oa(s(this,l)),this.rules=new ii(q({},i,{parent:this}));for(var c in n)this.rules.add(c,n[c],q({},i,{parent:this}));this.rules.process()}var t=e.prototype;return t.toString=function(n){n===void 0&&(n=Ri);var i=pr(n),o=i.linebreak;if(n.indent==null&&(n.indent=Ri.indent),n.children==null&&(n.children=Ri.children),n.children===!1)return this.at+" "+this.id+" {}";var a=this.rules.toString(n);return a&&(a=""+o+a+o),this.at+" "+this.id+" {"+a+"}"},e})(),xb=/@keyframes\s+/,Sb=/\$([\w-]+)/g,co=function(t,r){return typeof t=="string"?t.replace(Sb,function(n,i){return i in r?r[i]:n}):t},Jl=function(t,r,n){var i=t[r],o=co(i,n);o!==i&&(t[r]=o)},wb={onCreateRule:function(t,r,n){return typeof t=="string"&&xb.test(t)?new so(t,r,n):null},onProcessStyle:function(t,r,n){return r.type!=="style"||!n||("animation-name"in t&&Jl(t,"animation-name",n.keyframes),"animation"in t&&Jl(t,"animation",n.keyframes)),t},onChangeValue:function(t,r,n){var i=n.options.sheet;if(!i)return t;switch(r){case"animation":return co(t,i.keyframes);case"animation-name":return co(t,i.keyframes);default:return t}}},Cb=(function(e){Xn(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.toString=function(i){var o=this.options.sheet,a=o?o.options.link:!1,l=a?q({},i,{allowEmpty:!0}):i;return Hr(this.key,this.style,l)},t})(qu),Ib={onCreateRule:function(t,r,n){return n.parent&&n.parent.type==="keyframes"?new Cb(t,r,n):null}},Rb=(function(){function e(r,n,i){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=r,this.style=n,this.options=i}var t=e.prototype;return t.toString=function(n){var i=pr(n),o=i.linebreak;if(Array.isArray(this.style)){for(var a="",l=0;l<this.style.length;l++)a+=Hr(this.at,this.style[l]),this.style[l+1]&&(a+=o);return a}return Hr(this.at,this.style,n)},e})(),_b=/@font-face/,Db={onCreateRule:function(t,r,n){return _b.test(t)?new Rb(t,r,n):null}},Tb=(function(){function e(r,n,i){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=r,this.style=n,this.options=i}var t=e.prototype;return t.toString=function(n){return Hr(this.key,this.style,n)},e})(),kb={onCreateRule:function(t,r,n){return t==="@viewport"||t==="@-ms-viewport"?new Tb(t,r,n):null}},Eb=(function(){function e(r,n,i){this.type="simple",this.isProcessed=!1,this.key=r,this.value=n,this.options=i}var t=e.prototype;return t.toString=function(n){if(Array.isArray(this.value)){for(var i="",o=0;o<this.value.length;o++)i+=this.key+" "+this.value[o]+";",this.value[o+1]&&(i+=`
61
- `);return i}return this.key+" "+this.value+";"},e})(),Pb={"@charset":!0,"@import":!0,"@namespace":!0},Ob={onCreateRule:function(t,r,n){return t in Pb?new Eb(t,r,n):null}},Ql=[hb,bb,wb,Ib,Db,kb,Ob],Nb={process:!0},Xl={force:!0,process:!0},ii=(function(){function e(r){this.map={},this.raw={},this.index=[],this.counter=0,this.options=r,this.classes=r.classes,this.keyframes=r.keyframes}var t=e.prototype;return t.add=function(n,i,o){var a=this.options,l=a.parent,s=a.sheet,c=a.jss,u=a.Renderer,d=a.generateId,f=a.scoped,p=q({classes:this.classes,parent:l,sheet:s,jss:c,Renderer:u,generateId:d,scoped:f,name:n,keyframes:this.keyframes,selector:void 0},o),h=n;n in this.raw&&(h=n+"-d"+this.counter++),this.raw[h]=i,h in this.classes&&(p.selector="."+oa(this.classes[h]));var m=ia(h,i,p);if(!m)return null;this.register(m);var b=p.index===void 0?this.index.length:p.index;return this.index.splice(b,0,m),m},t.replace=function(n,i,o){var a=this.get(n),l=this.index.indexOf(a);a&&this.remove(a);var s=o;return l!==-1&&(s=q({},o,{index:l})),this.add(n,i,s)},t.get=function(n){return this.map[n]},t.remove=function(n){this.unregister(n),delete this.raw[n.key],this.index.splice(this.index.indexOf(n),1)},t.indexOf=function(n){return this.index.indexOf(n)},t.process=function(){var n=this.options.jss.plugins;this.index.slice(0).forEach(n.onProcessRule,n)},t.register=function(n){this.map[n.key]=n,n instanceof lo?(this.map[n.selector]=n,n.id&&(this.classes[n.key]=n.id)):n instanceof so&&this.keyframes&&(this.keyframes[n.name]=n.id)},t.unregister=function(n){delete this.map[n.key],n instanceof lo?(delete this.map[n.selector],delete this.classes[n.key]):n instanceof so&&delete this.keyframes[n.name]},t.update=function(){var n,i,o;if(typeof(arguments.length<=0?void 0:arguments[0])=="string"?(n=arguments.length<=0?void 0:arguments[0],i=arguments.length<=1?void 0:arguments[1],o=arguments.length<=2?void 0:arguments[2]):(i=arguments.length<=0?void 0:arguments[0],o=arguments.length<=1?void 0:arguments[1],n=null),n)this.updateOne(this.get(n),i,o);else for(var a=0;a<this.index.length;a++)this.updateOne(this.index[a],i,o)},t.updateOne=function(n,i,o){o===void 0&&(o=Nb);var a=this.options,l=a.jss.plugins,s=a.sheet;if(n.rules instanceof e){n.rules.update(i,o);return}var c=n.style;if(l.onUpdate(i,n,s,o),o.process&&c&&c!==n.style){l.onProcessStyle(n.style,n,s);for(var u in n.style){var d=n.style[u],f=c[u];d!==f&&n.prop(u,d,Xl)}for(var p in c){var h=n.style[p],m=c[p];h==null&&h!==m&&n.prop(p,null,Xl)}}},t.toString=function(n){for(var i="",o=this.options.sheet,a=o?o.options.link:!1,l=pr(n),s=l.linebreak,c=0;c<this.index.length;c++){var u=this.index[c],d=u.toString(n);!d&&!a||(i&&(i+=s),i+=d)}return i},e})(),Ku=(function(){function e(r,n){this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=q({},n,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),n.Renderer&&(this.renderer=new n.Renderer(this)),this.rules=new ii(this.options);for(var i in r)this.rules.add(i,r[i]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached?this:(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy(),this)},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(n,i,o){var a=this.queue;this.attached&&!a&&(this.queue=[]);var l=this.rules.add(n,i,o);return l?(this.options.jss.plugins.onProcessRule(l),this.attached?(this.deployed&&(a?a.push(l):(this.insertRule(l),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0))),l):(this.deployed=!1,l)):null},t.replaceRule=function(n,i,o){var a=this.rules.get(n);if(!a)return this.addRule(n,i,o);var l=this.rules.replace(n,i,o);return l&&this.options.jss.plugins.onProcessRule(l),this.attached?(this.deployed&&this.renderer&&(l?a.renderable&&this.renderer.replaceRule(a.renderable,l):this.renderer.deleteRule(a)),l):(this.deployed=!1,l)},t.insertRule=function(n){this.renderer&&this.renderer.insertRule(n)},t.addRules=function(n,i){var o=[];for(var a in n){var l=this.addRule(a,n[a],i);l&&o.push(l)}return o},t.getRule=function(n){return this.rules.get(n)},t.deleteRule=function(n){var i=typeof n=="object"?n:this.rules.get(n);return!i||this.attached&&!i.renderable?!1:(this.rules.remove(i),this.attached&&i.renderable&&this.renderer?this.renderer.deleteRule(i.renderable):!0)},t.indexOf=function(n){return this.rules.indexOf(n)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var n;return(n=this.rules).update.apply(n,arguments),this},t.updateOne=function(n,i,o){return this.rules.updateOne(n,i,o),this},t.toString=function(n){return this.rules.toString(n)},e})(),Ab=(function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(n,i,o){for(var a=0;a<this.registry.onCreateRule.length;a++){var l=this.registry.onCreateRule[a](n,i,o);if(l)return l}return null},t.onProcessRule=function(n){if(!n.isProcessed){for(var i=n.options.sheet,o=0;o<this.registry.onProcessRule.length;o++)this.registry.onProcessRule[o](n,i);n.style&&this.onProcessStyle(n.style,n,i),n.isProcessed=!0}},t.onProcessStyle=function(n,i,o){for(var a=0;a<this.registry.onProcessStyle.length;a++)i.style=this.registry.onProcessStyle[a](i.style,i,o)},t.onProcessSheet=function(n){for(var i=0;i<this.registry.onProcessSheet.length;i++)this.registry.onProcessSheet[i](n)},t.onUpdate=function(n,i,o,a){for(var l=0;l<this.registry.onUpdate.length;l++)this.registry.onUpdate[l](n,i,o,a)},t.onChangeValue=function(n,i,o){for(var a=n,l=0;l<this.registry.onChangeValue.length;l++)a=this.registry.onChangeValue[l](a,i,o);return a},t.use=function(n,i){i===void 0&&(i={queue:"external"});var o=this.plugins[i.queue];o.indexOf(n)===-1&&(o.push(n),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(a,l){for(var s in l)s in a&&a[s].push(l[s]);return a},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e})(),Mb=(function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(n){var i=this.registry,o=n.options.index;if(i.indexOf(n)===-1){if(i.length===0||o>=this.index){i.push(n);return}for(var a=0;a<i.length;a++)if(i[a].options.index>o){i.splice(a,0,n);return}}},t.reset=function(){this.registry=[]},t.remove=function(n){var i=this.registry.indexOf(n);this.registry.splice(i,1)},t.toString=function(n){for(var i=n===void 0?{}:n,o=i.attached,a=nr(i,["attached"]),l=pr(a),s=l.linebreak,c="",u=0;u<this.registry.length;u++){var d=this.registry[u];o!=null&&d.attached!==o||(c&&(c+=s),c+=d.toString(a))}return c},Se(e,[{key:"index",get:function(){return this.registry.length===0?0:this.registry[this.registry.length-1].options.index}}]),e})(),Lr=new Mb,uo=typeof globalThis<"u"?globalThis:typeof window<"u"&&window.Math===Math?window:typeof self<"u"&&self.Math===Math?self:Function("return this")(),fo="2f1acc6c3a606b082e5eef5e54414ffb";uo[fo]==null&&(uo[fo]=0);var Zl=uo[fo]++,es=function(t){t===void 0&&(t={});var r=0,n=function(o,a){r+=1;var l="",s="";return a&&(a.options.classNamePrefix&&(s=a.options.classNamePrefix),a.options.jss.id!=null&&(l=String(a.options.jss.id))),t.minify?""+(s||"c")+Zl+l+r:s+o.key+"-"+Zl+(l?"-"+l:"")+"-"+r};return n},Yu=function(t){var r;return function(){return r||(r=t()),r}},Lb=function(t,r){try{return t.attributeStyleMap?t.attributeStyleMap.get(r):t.style.getPropertyValue(r)}catch{return""}},zb=function(t,r,n){try{var i=n;if(Array.isArray(n)&&(i=zt(n)),t.attributeStyleMap)t.attributeStyleMap.set(r,i);else{var o=i?i.indexOf("!important"):-1,a=o>-1?i.substr(0,o-1):i;t.style.setProperty(r,a,o>-1?"important":"")}}catch{return!1}return!0},jb=function(t,r){try{t.attributeStyleMap?t.attributeStyleMap.delete(r):t.style.removeProperty(r)}catch{}},Fb=function(t,r){return t.selectorText=r,t.selectorText===r},Ju=Yu(function(){return document.querySelector("head")});function Bb(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(n.attached&&n.options.index>t.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}function $b(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}function Gb(e){for(var t=Ju(),r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];if(n.nodeType===8&&n.nodeValue.trim()===e)return n}return null}function Wb(e){var t=Lr.registry;if(t.length>0){var r=Bb(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=$b(t,e),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&typeof n=="string"){var i=Gb(n);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}function Hb(e,t){var r=t.insertionPoint,n=Wb(t);if(n!==!1&&n.parent){n.parent.insertBefore(e,n.node);return}if(r&&typeof r.nodeType=="number"){var i=r,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling);return}Ju().appendChild(e)}var Ub=Yu(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),ts=function(t,r,n){try{"insertRule"in t?t.insertRule(r,n):"appendRule"in t&&t.appendRule(r)}catch{return!1}return t.cssRules[n]},rs=function(t,r){var n=t.cssRules.length;return r===void 0||r>n?n:r},Vb=function(){var t=document.createElement("style");return t.textContent=`
61
+ `);return i}return this.key+" "+this.value+";"},e})(),Pb={"@charset":!0,"@import":!0,"@namespace":!0},Ob={onCreateRule:function(t,r,n){return t in Pb?new Eb(t,r,n):null}},Ql=[hb,bb,wb,Ib,Db,kb,Ob],Nb={process:!0},Xl={force:!0,process:!0},ii=(function(){function e(r){this.map={},this.raw={},this.index=[],this.counter=0,this.options=r,this.classes=r.classes,this.keyframes=r.keyframes}var t=e.prototype;return t.add=function(n,i,o){var a=this.options,l=a.parent,s=a.sheet,c=a.jss,u=a.Renderer,d=a.generateId,f=a.scoped,p=q({classes:this.classes,parent:l,sheet:s,jss:c,Renderer:u,generateId:d,scoped:f,name:n,keyframes:this.keyframes,selector:void 0},o),h=n;n in this.raw&&(h=n+"-d"+this.counter++),this.raw[h]=i,h in this.classes&&(p.selector="."+oa(this.classes[h]));var m=ia(h,i,p);if(!m)return null;this.register(m);var b=p.index===void 0?this.index.length:p.index;return this.index.splice(b,0,m),m},t.replace=function(n,i,o){var a=this.get(n),l=this.index.indexOf(a);a&&this.remove(a);var s=o;return l!==-1&&(s=q({},o,{index:l})),this.add(n,i,s)},t.get=function(n){return this.map[n]},t.remove=function(n){this.unregister(n),delete this.raw[n.key],this.index.splice(this.index.indexOf(n),1)},t.indexOf=function(n){return this.index.indexOf(n)},t.process=function(){var n=this.options.jss.plugins;this.index.slice(0).forEach(n.onProcessRule,n)},t.register=function(n){this.map[n.key]=n,n instanceof lo?(this.map[n.selector]=n,n.id&&(this.classes[n.key]=n.id)):n instanceof so&&this.keyframes&&(this.keyframes[n.name]=n.id)},t.unregister=function(n){delete this.map[n.key],n instanceof lo?(delete this.map[n.selector],delete this.classes[n.key]):n instanceof so&&delete this.keyframes[n.name]},t.update=function(){var n,i,o;if(typeof(arguments.length<=0?void 0:arguments[0])=="string"?(n=arguments.length<=0?void 0:arguments[0],i=arguments.length<=1?void 0:arguments[1],o=arguments.length<=2?void 0:arguments[2]):(i=arguments.length<=0?void 0:arguments[0],o=arguments.length<=1?void 0:arguments[1],n=null),n)this.updateOne(this.get(n),i,o);else for(var a=0;a<this.index.length;a++)this.updateOne(this.index[a],i,o)},t.updateOne=function(n,i,o){o===void 0&&(o=Nb);var a=this.options,l=a.jss.plugins,s=a.sheet;if(n.rules instanceof e){n.rules.update(i,o);return}var c=n.style;if(l.onUpdate(i,n,s,o),o.process&&c&&c!==n.style){l.onProcessStyle(n.style,n,s);for(var u in n.style){var d=n.style[u],f=c[u];d!==f&&n.prop(u,d,Xl)}for(var p in c){var h=n.style[p],m=c[p];h==null&&h!==m&&n.prop(p,null,Xl)}}},t.toString=function(n){for(var i="",o=this.options.sheet,a=o?o.options.link:!1,l=pr(n),s=l.linebreak,c=0;c<this.index.length;c++){var u=this.index[c],d=u.toString(n);!d&&!a||(i&&(i+=s),i+=d)}return i},e})(),Ku=(function(){function e(r,n){this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=q({},n,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),n.Renderer&&(this.renderer=new n.Renderer(this)),this.rules=new ii(this.options);for(var i in r)this.rules.add(i,r[i]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached?this:(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy(),this)},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(n,i,o){var a=this.queue;this.attached&&!a&&(this.queue=[]);var l=this.rules.add(n,i,o);return l?(this.options.jss.plugins.onProcessRule(l),this.attached?(this.deployed&&(a?a.push(l):(this.insertRule(l),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0))),l):(this.deployed=!1,l)):null},t.replaceRule=function(n,i,o){var a=this.rules.get(n);if(!a)return this.addRule(n,i,o);var l=this.rules.replace(n,i,o);return l&&this.options.jss.plugins.onProcessRule(l),this.attached?(this.deployed&&this.renderer&&(l?a.renderable&&this.renderer.replaceRule(a.renderable,l):this.renderer.deleteRule(a)),l):(this.deployed=!1,l)},t.insertRule=function(n){this.renderer&&this.renderer.insertRule(n)},t.addRules=function(n,i){var o=[];for(var a in n){var l=this.addRule(a,n[a],i);l&&o.push(l)}return o},t.getRule=function(n){return this.rules.get(n)},t.deleteRule=function(n){var i=typeof n=="object"?n:this.rules.get(n);return!i||this.attached&&!i.renderable?!1:(this.rules.remove(i),this.attached&&i.renderable&&this.renderer?this.renderer.deleteRule(i.renderable):!0)},t.indexOf=function(n){return this.rules.indexOf(n)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var n;return(n=this.rules).update.apply(n,arguments),this},t.updateOne=function(n,i,o){return this.rules.updateOne(n,i,o),this},t.toString=function(n){return this.rules.toString(n)},e})(),Mb=(function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(n,i,o){for(var a=0;a<this.registry.onCreateRule.length;a++){var l=this.registry.onCreateRule[a](n,i,o);if(l)return l}return null},t.onProcessRule=function(n){if(!n.isProcessed){for(var i=n.options.sheet,o=0;o<this.registry.onProcessRule.length;o++)this.registry.onProcessRule[o](n,i);n.style&&this.onProcessStyle(n.style,n,i),n.isProcessed=!0}},t.onProcessStyle=function(n,i,o){for(var a=0;a<this.registry.onProcessStyle.length;a++)i.style=this.registry.onProcessStyle[a](i.style,i,o)},t.onProcessSheet=function(n){for(var i=0;i<this.registry.onProcessSheet.length;i++)this.registry.onProcessSheet[i](n)},t.onUpdate=function(n,i,o,a){for(var l=0;l<this.registry.onUpdate.length;l++)this.registry.onUpdate[l](n,i,o,a)},t.onChangeValue=function(n,i,o){for(var a=n,l=0;l<this.registry.onChangeValue.length;l++)a=this.registry.onChangeValue[l](a,i,o);return a},t.use=function(n,i){i===void 0&&(i={queue:"external"});var o=this.plugins[i.queue];o.indexOf(n)===-1&&(o.push(n),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(a,l){for(var s in l)s in a&&a[s].push(l[s]);return a},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e})(),Ab=(function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(n){var i=this.registry,o=n.options.index;if(i.indexOf(n)===-1){if(i.length===0||o>=this.index){i.push(n);return}for(var a=0;a<i.length;a++)if(i[a].options.index>o){i.splice(a,0,n);return}}},t.reset=function(){this.registry=[]},t.remove=function(n){var i=this.registry.indexOf(n);this.registry.splice(i,1)},t.toString=function(n){for(var i=n===void 0?{}:n,o=i.attached,a=nr(i,["attached"]),l=pr(a),s=l.linebreak,c="",u=0;u<this.registry.length;u++){var d=this.registry[u];o!=null&&d.attached!==o||(c&&(c+=s),c+=d.toString(a))}return c},Se(e,[{key:"index",get:function(){return this.registry.length===0?0:this.registry[this.registry.length-1].options.index}}]),e})(),Lr=new Ab,uo=typeof globalThis<"u"?globalThis:typeof window<"u"&&window.Math===Math?window:typeof self<"u"&&self.Math===Math?self:Function("return this")(),fo="2f1acc6c3a606b082e5eef5e54414ffb";uo[fo]==null&&(uo[fo]=0);var Zl=uo[fo]++,es=function(t){t===void 0&&(t={});var r=0,n=function(o,a){r+=1;var l="",s="";return a&&(a.options.classNamePrefix&&(s=a.options.classNamePrefix),a.options.jss.id!=null&&(l=String(a.options.jss.id))),t.minify?""+(s||"c")+Zl+l+r:s+o.key+"-"+Zl+(l?"-"+l:"")+"-"+r};return n},Yu=function(t){var r;return function(){return r||(r=t()),r}},Lb=function(t,r){try{return t.attributeStyleMap?t.attributeStyleMap.get(r):t.style.getPropertyValue(r)}catch{return""}},zb=function(t,r,n){try{var i=n;if(Array.isArray(n)&&(i=zt(n)),t.attributeStyleMap)t.attributeStyleMap.set(r,i);else{var o=i?i.indexOf("!important"):-1,a=o>-1?i.substr(0,o-1):i;t.style.setProperty(r,a,o>-1?"important":"")}}catch{return!1}return!0},jb=function(t,r){try{t.attributeStyleMap?t.attributeStyleMap.delete(r):t.style.removeProperty(r)}catch{}},Fb=function(t,r){return t.selectorText=r,t.selectorText===r},Ju=Yu(function(){return document.querySelector("head")});function Bb(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(n.attached&&n.options.index>t.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}function $b(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}function Gb(e){for(var t=Ju(),r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];if(n.nodeType===8&&n.nodeValue.trim()===e)return n}return null}function Wb(e){var t=Lr.registry;if(t.length>0){var r=Bb(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=$b(t,e),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&typeof n=="string"){var i=Gb(n);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}function Hb(e,t){var r=t.insertionPoint,n=Wb(t);if(n!==!1&&n.parent){n.parent.insertBefore(e,n.node);return}if(r&&typeof r.nodeType=="number"){var i=r,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling);return}Ju().appendChild(e)}var Ub=Yu(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),ts=function(t,r,n){try{"insertRule"in t?t.insertRule(r,n):"appendRule"in t&&t.appendRule(r)}catch{return!1}return t.cssRules[n]},rs=function(t,r){var n=t.cssRules.length;return r===void 0||r>n?n:r},Vb=function(){var t=document.createElement("style");return t.textContent=`
62
62
  `,t},qb=(function(){function e(r){this.getPropertyValue=Lb,this.setProperty=zb,this.removeProperty=jb,this.setSelector=Fb,this.hasInsertedRules=!1,this.cssRules=[],r&&Lr.add(r),this.sheet=r;var n=this.sheet?this.sheet.options:{},i=n.media,o=n.meta,a=n.element;this.element=a||Vb(),this.element.setAttribute("data-jss",""),i&&this.element.setAttribute("media",i),o&&this.element.setAttribute("data-meta",o);var l=Ub();l&&this.element.setAttribute("nonce",l)}var t=e.prototype;return t.attach=function(){if(!(this.element.parentNode||!this.sheet)){Hb(this.element,this.sheet.options);var n=!!(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&n&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var n=this.element.parentNode;n&&n.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent=`
63
63
  `)}},t.deploy=function(){var n=this.sheet;if(n){if(n.options.link){this.insertRules(n.rules);return}this.element.textContent=`
64
64
  `+n.toString()+`
65
- `}},t.insertRules=function(n,i){for(var o=0;o<n.index.length;o++)this.insertRule(n.index[o],o,i)},t.insertRule=function(n,i,o){if(o===void 0&&(o=this.element.sheet),n.rules){var a=n,l=o;if(n.type==="conditional"||n.type==="keyframes"){var s=rs(o,i);if(l=ts(o,a.toString({children:!1}),s),l===!1)return!1;this.refCssRule(n,s,l)}return this.insertRules(a.rules,l),l}var c=n.toString();if(!c)return!1;var u=rs(o,i),d=ts(o,c,u);return d===!1?!1:(this.hasInsertedRules=!0,this.refCssRule(n,u,d),d)},t.refCssRule=function(n,i,o){n.renderable=o,n.options.parent instanceof Ku&&this.cssRules.splice(i,0,o)},t.deleteRule=function(n){var i=this.element.sheet,o=this.indexOf(n);return o===-1?!1:(i.deleteRule(o),this.cssRules.splice(o,1),!0)},t.indexOf=function(n){return this.cssRules.indexOf(n)},t.replaceRule=function(n,i){var o=this.indexOf(n);return o===-1?!1:(this.element.sheet.deleteRule(o),this.cssRules.splice(o,1),this.insertRule(i,o))},t.getRules=function(){return this.element.sheet.cssRules},e})(),Kb=0,Yb=(function(){function e(r){this.id=Kb++,this.version="10.10.0",this.plugins=new Ab,this.options={id:{minify:!1},createGenerateId:es,Renderer:nn?qb:null,plugins:[]},this.generateId=es({minify:!1});for(var n=0;n<Ql.length;n++)this.plugins.use(Ql[n],{queue:"internal"});this.setup(r)}var t=e.prototype;return t.setup=function(n){return n===void 0&&(n={}),n.createGenerateId&&(this.options.createGenerateId=n.createGenerateId),n.id&&(this.options.id=q({},this.options.id,n.id)),(n.createGenerateId||n.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),n.insertionPoint!=null&&(this.options.insertionPoint=n.insertionPoint),"Renderer"in n&&(this.options.Renderer=n.Renderer),n.plugins&&this.use.apply(this,n.plugins),this},t.createStyleSheet=function(n,i){i===void 0&&(i={});var o=i,a=o.index;typeof a!="number"&&(a=Lr.index===0?0:Lr.index+1);var l=new Ku(n,q({},i,{jss:this,generateId:i.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:a}));return this.plugins.onProcessSheet(l),l},t.removeStyleSheet=function(n){return n.detach(),Lr.remove(n),this},t.createRule=function(n,i,o){if(i===void 0&&(i={}),o===void 0&&(o={}),typeof n=="object")return this.createRule(void 0,n,i);var a=q({},o,{name:n,jss:this,Renderer:this.options.Renderer});a.generateId||(a.generateId=this.generateId),a.classes||(a.classes={}),a.keyframes||(a.keyframes={});var l=ia(n,i,a);return l&&this.plugins.onProcessRule(l),l},t.use=function(){for(var n=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return o.forEach(function(l){n.plugins.use(l)}),this},e})(),Qu=function(t){return new Yb(t)},aa=typeof CSS=="object"&&CSS!=null&&"number"in CSS;function Xu(e){var t=null;for(var r in e){var n=e[r],i=typeof n;if(i==="function")t||(t={}),t[r]=n;else if(i==="object"&&n!==null&&!Array.isArray(n)){var o=Xu(n);o&&(t||(t={}),t[r]=o)}}return t}Qu();function _i(e){return e&&Gc(e)==="object"&&e.constructor===Object}function Zu(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{clone:!0},n=r.clone?q({},e):e;return _i(e)&&_i(t)&&Object.keys(t).forEach(function(i){i!=="__proto__"&&(_i(t[i])&&i in e?n[i]=Zu(e[i],t[i],r):n[i]=t[i])}),n}function ed(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.baseClasses,r=e.newClasses;if(e.Component,!r)return t;var n=q({},t);return Object.keys(r).forEach(function(i){r[i]&&(n[i]="".concat(t[i]," ").concat(r[i]))}),n}var er={set:function(t,r,n,i){var o=t.get(r);o||(o=new Map,t.set(r,o)),o.set(n,i)},get:function(t,r,n){var i=t.get(r);return i?i.get(n):void 0},delete:function(t,r,n){var i=t.get(r);i.delete(n)}},Jb=Q.createContext(null);function Qb(){var e=Q.useContext(Jb);return e}var Xb=typeof Symbol=="function"&&Symbol.for;const Zb=Xb?Symbol.for("mui.nested"):"__THEME_NESTED__";var ey=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function ty(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.disableGlobal,r=t===void 0?!1:t,n=e.productionPrefix,i=n===void 0?"jss":n,o=e.seed,a=o===void 0?"":o,l=a===""?"":"".concat(a,"-"),s=0,c=function(){return s+=1,s};return function(u,d){var f=d.options.name;if(f&&f.indexOf("Mui")===0&&!d.options.link&&!r){if(ey.indexOf(u.key)!==-1)return"Mui-".concat(u.key);var p="".concat(l).concat(f,"-").concat(u.key);return!d.options.theme[Zb]||a!==""?p:"".concat(p,"-").concat(c())}return"".concat(l).concat(i).concat(c())}}var td=Date.now(),Di="fnValues"+td,Ti="fnStyle"+ ++td,ry=function(){return{onCreateRule:function(r,n,i){if(typeof n!="function")return null;var o=ia(r,{},i);return o[Ti]=n,o},onProcessStyle:function(r,n){if(Di in n||Ti in n)return r;var i={};for(var o in r){var a=r[o];typeof a=="function"&&(delete r[o],i[o]=a)}return n[Di]=i,r},onUpdate:function(r,n,i,o){var a=n,l=a[Ti];l&&(a.style=l(r)||{});var s=a[Di];if(s)for(var c in s)a.prop(c,s[c](r),o)}}},wt="@global",po="@global ",ny=(function(){function e(r,n,i){this.type="global",this.at=wt,this.isProcessed=!1,this.key=r,this.options=i,this.rules=new ii(q({},i,{parent:this}));for(var o in n)this.rules.add(o,n[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(n){return this.rules.get(n)},t.addRule=function(n,i,o){var a=this.rules.add(n,i,o);return a&&this.options.jss.plugins.onProcessRule(a),a},t.replaceRule=function(n,i,o){var a=this.rules.replace(n,i,o);return a&&this.options.jss.plugins.onProcessRule(a),a},t.indexOf=function(n){return this.rules.indexOf(n)},t.toString=function(n){return this.rules.toString(n)},e})(),iy=(function(){function e(r,n,i){this.type="global",this.at=wt,this.isProcessed=!1,this.key=r,this.options=i;var o=r.substr(po.length);this.rule=i.jss.createRule(o,n,q({},i,{parent:this}))}var t=e.prototype;return t.toString=function(n){return this.rule?this.rule.toString(n):""},e})(),oy=/\s*,\s*/g;function rd(e,t){for(var r=e.split(oy),n="",i=0;i<r.length;i++)n+=t+" "+r[i].trim(),r[i+1]&&(n+=", ");return n}function ay(e,t){var r=e.options,n=e.style,i=n?n[wt]:null;if(i){for(var o in i)t.addRule(o,i[o],q({},r,{selector:rd(o,e.selector)}));delete n[wt]}}function ly(e,t){var r=e.options,n=e.style;for(var i in n)if(!(i[0]!=="@"||i.substr(0,wt.length)!==wt)){var o=rd(i.substr(wt.length),e.selector);t.addRule(o,n[i],q({},r,{selector:o})),delete n[i]}}function sy(){function e(r,n,i){if(!r)return null;if(r===wt)return new ny(r,n,i);if(r[0]==="@"&&r.substr(0,po.length)===po)return new iy(r,n,i);var o=i.parent;return o&&(o.type==="global"||o.options.parent&&o.options.parent.type==="global")&&(i.scoped=!1),!i.selector&&i.scoped===!1&&(i.selector=r),null}function t(r,n){r.type!=="style"||!n||(ay(r,n),ly(r,n))}return{onCreateRule:e,onProcessRule:t}}var ns=/\s*,\s*/g,cy=/&/g,uy=/\$([\w-]+)/g;function dy(){function e(i,o){return function(a,l){var s=i.getRule(l)||o&&o.getRule(l);return s?s.selector:l}}function t(i,o){for(var a=o.split(ns),l=i.split(ns),s="",c=0;c<a.length;c++)for(var u=a[c],d=0;d<l.length;d++){var f=l[d];s&&(s+=", "),s+=f.indexOf("&")!==-1?f.replace(cy,u):u+" "+f}return s}function r(i,o,a){if(a)return q({},a,{index:a.index+1});var l=i.options.nestingLevel;l=l===void 0?1:l+1;var s=q({},i.options,{nestingLevel:l,index:o.indexOf(i)+1});return delete s.name,s}function n(i,o,a){if(o.type!=="style")return i;var l=o,s=l.options.parent,c,u;for(var d in i){var f=d.indexOf("&")!==-1,p=d[0]==="@";if(!(!f&&!p)){if(c=r(l,s,c),f){var h=t(d,l.selector);u||(u=e(s,a)),h=h.replace(uy,u);var m=l.key+"-"+d;"replaceRule"in s?s.replaceRule(m,i[d],q({},c,{selector:h})):s.addRule(m,i[d],q({},c,{selector:h}))}else p&&s.addRule(d,{},c).addRule(l.key,i[d],{selector:l.selector});delete i[d]}}return i}return{onProcessStyle:n}}var fy=/[A-Z]/g,py=/^ms-/,ki={};function hy(e){return"-"+e.toLowerCase()}function nd(e){if(ki.hasOwnProperty(e))return ki[e];var t=e.replace(fy,hy);return ki[e]=py.test(t)?"-"+t:t}function jn(e){var t={};for(var r in e){var n=r.indexOf("--")===0?r:nd(r);t[n]=e[r]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(jn):t.fallbacks=jn(e.fallbacks)),t}function gy(){function e(r){if(Array.isArray(r)){for(var n=0;n<r.length;n++)r[n]=jn(r[n]);return r}return jn(r)}function t(r,n,i){if(n.indexOf("--")===0)return r;var o=nd(n);return n===o?r:(i.prop(o,r),null)}return{onProcessStyle:e,onChangeValue:t}}var M=aa&&CSS?CSS.px:"px",gn=aa&&CSS?CSS.ms:"ms",Ut=aa&&CSS?CSS.percent:"%",vy={"animation-delay":gn,"animation-duration":gn,"background-position":M,"background-position-x":M,"background-position-y":M,"background-size":M,border:M,"border-bottom":M,"border-bottom-left-radius":M,"border-bottom-right-radius":M,"border-bottom-width":M,"border-left":M,"border-left-width":M,"border-radius":M,"border-right":M,"border-right-width":M,"border-top":M,"border-top-left-radius":M,"border-top-right-radius":M,"border-top-width":M,"border-width":M,"border-block":M,"border-block-end":M,"border-block-end-width":M,"border-block-start":M,"border-block-start-width":M,"border-block-width":M,"border-inline":M,"border-inline-end":M,"border-inline-end-width":M,"border-inline-start":M,"border-inline-start-width":M,"border-inline-width":M,"border-start-start-radius":M,"border-start-end-radius":M,"border-end-start-radius":M,"border-end-end-radius":M,margin:M,"margin-bottom":M,"margin-left":M,"margin-right":M,"margin-top":M,"margin-block":M,"margin-block-end":M,"margin-block-start":M,"margin-inline":M,"margin-inline-end":M,"margin-inline-start":M,padding:M,"padding-bottom":M,"padding-left":M,"padding-right":M,"padding-top":M,"padding-block":M,"padding-block-end":M,"padding-block-start":M,"padding-inline":M,"padding-inline-end":M,"padding-inline-start":M,"mask-position-x":M,"mask-position-y":M,"mask-size":M,height:M,width:M,"min-height":M,"max-height":M,"min-width":M,"max-width":M,bottom:M,left:M,top:M,right:M,inset:M,"inset-block":M,"inset-block-end":M,"inset-block-start":M,"inset-inline":M,"inset-inline-end":M,"inset-inline-start":M,"box-shadow":M,"text-shadow":M,"column-gap":M,"column-rule":M,"column-rule-width":M,"column-width":M,"font-size":M,"font-size-delta":M,"letter-spacing":M,"text-decoration-thickness":M,"text-indent":M,"text-stroke":M,"text-stroke-width":M,"word-spacing":M,motion:M,"motion-offset":M,outline:M,"outline-offset":M,"outline-width":M,perspective:M,"perspective-origin-x":Ut,"perspective-origin-y":Ut,"transform-origin":Ut,"transform-origin-x":Ut,"transform-origin-y":Ut,"transform-origin-z":Ut,"transition-delay":gn,"transition-duration":gn,"vertical-align":M,"flex-basis":M,"shape-margin":M,size:M,gap:M,grid:M,"grid-gap":M,"row-gap":M,"grid-row-gap":M,"grid-column-gap":M,"grid-template-rows":M,"grid-template-columns":M,"grid-auto-rows":M,"grid-auto-columns":M,"box-shadow-x":M,"box-shadow-y":M,"box-shadow-blur":M,"box-shadow-spread":M,"font-line-height":M,"text-shadow-x":M,"text-shadow-y":M,"text-shadow-blur":M};function id(e){var t=/(-[a-z])/g,r=function(a){return a[1].toUpperCase()},n={};for(var i in e)n[i]=e[i],n[i.replace(t,r)]=e[i];return n}var my=id(vy);function zr(e,t,r){if(t==null)return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=zr(e,t[n],r);else if(typeof t=="object")if(e==="fallbacks")for(var i in t)t[i]=zr(i,t[i],r);else for(var o in t)t[o]=zr(e+"-"+o,t[o],r);else if(typeof t=="number"&&isNaN(t)===!1){var a=r[e]||my[e];return a&&!(t===0&&a===M)?typeof a=="function"?a(t).toString():""+t+a:t.toString()}return t}function by(e){e===void 0&&(e={});var t=id(e);function r(i,o){if(o.type!=="style")return i;for(var a in i)i[a]=zr(a,i[a],t);return i}function n(i,o){return zr(o,i,t)}return{onProcessStyle:r,onChangeValue:n}}var Pr="",ho="",od="",ad="",yy=nn&&"ontouchstart"in document.documentElement;if(nn){var Ei={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},xy=document.createElement("p"),Pi=xy.style,Sy="Transform";for(var Oi in Ei)if(Oi+Sy in Pi){Pr=Oi,ho=Ei[Oi];break}Pr==="Webkit"&&"msHyphens"in Pi&&(Pr="ms",ho=Ei.ms,ad="edge"),Pr==="Webkit"&&"-apple-trailing-word"in Pi&&(od="apple")}var le={js:Pr,css:ho,vendor:od,browser:ad,isTouch:yy};function wy(e){return e[1]==="-"||le.js==="ms"?e:"@"+le.css+"keyframes"+e.substr(10)}var Cy={noPrefill:["appearance"],supportedProperty:function(t){return t!=="appearance"?!1:le.js==="ms"?"-webkit-"+t:le.css+t}},Iy={noPrefill:["color-adjust"],supportedProperty:function(t){return t!=="color-adjust"?!1:le.js==="Webkit"?le.css+"print-"+t:t}},Ry=/[-\s]+(.)?/g;function _y(e,t){return t?t.toUpperCase():""}function la(e){return e.replace(Ry,_y)}function _t(e){return la("-"+e)}var Dy={noPrefill:["mask"],supportedProperty:function(t,r){if(!/^mask/.test(t))return!1;if(le.js==="Webkit"){var n="mask-image";if(la(n)in r)return t;if(le.js+_t(n)in r)return le.css+t}return t}},Ty={noPrefill:["text-orientation"],supportedProperty:function(t){return t!=="text-orientation"?!1:le.vendor==="apple"&&!le.isTouch?le.css+t:t}},ky={noPrefill:["transform"],supportedProperty:function(t,r,n){return t!=="transform"?!1:n.transform?t:le.css+t}},Ey={noPrefill:["transition"],supportedProperty:function(t,r,n){return t!=="transition"?!1:n.transition?t:le.css+t}},Py={noPrefill:["writing-mode"],supportedProperty:function(t){return t!=="writing-mode"?!1:le.js==="Webkit"||le.js==="ms"&&le.browser!=="edge"?le.css+t:t}},Oy={noPrefill:["user-select"],supportedProperty:function(t){return t!=="user-select"?!1:le.js==="Moz"||le.js==="ms"||le.vendor==="apple"?le.css+t:t}},Ny={supportedProperty:function(t,r){if(!/^break-/.test(t))return!1;if(le.js==="Webkit"){var n="WebkitColumn"+_t(t);return n in r?le.css+"column-"+t:!1}if(le.js==="Moz"){var i="page"+_t(t);return i in r?"page-"+t:!1}return!1}},Ay={supportedProperty:function(t,r){if(!/^(border|margin|padding)-inline/.test(t))return!1;if(le.js==="Moz")return t;var n=t.replace("-inline","");return le.js+_t(n)in r?le.css+n:!1}},My={supportedProperty:function(t,r){return la(t)in r?t:!1}},Ly={supportedProperty:function(t,r){var n=_t(t);return t[0]==="-"||t[0]==="-"&&t[1]==="-"?t:le.js+n in r?le.css+t:le.js!=="Webkit"&&"Webkit"+n in r?"-webkit-"+t:!1}},zy={supportedProperty:function(t){return t.substring(0,11)!=="scroll-snap"?!1:le.js==="ms"?""+le.css+t:t}},jy={supportedProperty:function(t){return t!=="overscroll-behavior"?!1:le.js==="ms"?le.css+"scroll-chaining":t}},Fy={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},By={supportedProperty:function(t,r){var n=Fy[t];return n&&le.js+_t(n)in r?le.css+n:!1}},ld={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},$y=Object.keys(ld),Gy=function(t){return le.css+t},Wy={supportedProperty:function(t,r,n){var i=n.multiple;if($y.indexOf(t)>-1){var o=ld[t];if(!Array.isArray(o))return le.js+_t(o)in r?le.css+o:!1;if(!i)return!1;for(var a=0;a<o.length;a++)if(!(le.js+_t(o[0])in r))return!1;return o.map(Gy)}return!1}},sd=[Cy,Iy,Dy,Ty,ky,Ey,Py,Oy,Ny,Ay,My,Ly,zy,jy,By,Wy],is=sd.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),Hy=sd.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,fu(t.noPrefill)),e},[]),Or,At={};if(nn){Or=document.createElement("p");var Ni=window.getComputedStyle(document.documentElement,"");for(var Ai in Ni)isNaN(Ai)||(At[Ni[Ai]]=Ni[Ai]);Hy.forEach(function(e){return delete At[e]})}function go(e,t){if(t===void 0&&(t={}),!Or)return e;if(At[e]!=null)return At[e];(e==="transition"||e==="transform")&&(t[e]=e in Or.style);for(var r=0;r<is.length&&(At[e]=is[r](e,Or.style,t),!At[e]);r++);try{Or.style[e]=""}catch{return!1}return At[e]}var Vt={},Uy={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Vy=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g,vt;function qy(e,t,r){if(t==="var")return"var";if(t==="all")return"all";if(r==="all")return", all";var n=t?go(t):", "+go(r);return n||t||r}nn&&(vt=document.createElement("p"));function os(e,t){var r=t;if(!vt||e==="content")return t;if(typeof r!="string"||!isNaN(parseInt(r,10)))return r;var n=e+r;if(Vt[n]!=null)return Vt[n];try{vt.style[e]=r}catch{return Vt[n]=!1,!1}if(Uy[e])r=r.replace(Vy,qy);else if(vt.style[e]===""&&(r=le.css+r,r==="-ms-flex"&&(vt.style[e]="-ms-flexbox"),vt.style[e]=r,vt.style[e]===""))return Vt[n]=!1,!1;return vt.style[e]="",Vt[n]=r,Vt[n]}function Ky(){function e(i){if(i.type==="keyframes"){var o=i;o.at=wy(o.at)}}function t(i){for(var o in i){var a=i[o];if(o==="fallbacks"&&Array.isArray(a)){i[o]=a.map(t);continue}var l=!1,s=go(o);s&&s!==o&&(l=!0);var c=!1,u=os(s,zt(a));u&&u!==a&&(c=!0),(l||c)&&(l&&delete i[o],i[s||o]=u||a)}return i}function r(i,o){return o.type!=="style"?i:t(i)}function n(i,o){return os(o,zt(i))||i}return{onProcessRule:e,onProcessStyle:r,onChangeValue:n}}function Yy(){var e=function(r,n){return r.length===n.length?r>n?1:-1:r.length-n.length};return{onProcessStyle:function(r,n){if(n.type!=="style")return r;for(var i={},o=Object.keys(r).sort(e),a=0;a<o.length;a++)i[o[a]]=r[o[a]];return i}}}function Jy(){return{plugins:[ry(),sy(),dy(),gy(),by(),typeof window>"u"?null:Ky(),Yy()]}}var Qy=Qu(Jy()),Xy=ty(),Zy=new Map,e0={disableGeneration:!1,generateClassName:Xy,jss:Qy,sheetsCache:null,sheetsManager:Zy,sheetsRegistry:null},t0=Q.createContext(e0),as=-1e9;function r0(){return as+=1,as}var n0={};function i0(e){var t=typeof e=="function";return{create:function(n,i){var o;try{o=t?e(n):e}catch(s){throw s}if(!i||!n.overrides||!n.overrides[i])return o;var a=n.overrides[i],l=q({},o);return Object.keys(a).forEach(function(s){l[s]=Zu(l[s],a[s])}),l},options:{}}}function o0(e,t,r){var n=e.state,i=e.stylesOptions;if(i.disableGeneration)return t||{};n.cacheClasses||(n.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return n.classes!==n.cacheClasses.lastJSS&&(n.cacheClasses.lastJSS=n.classes,o=!0),t!==n.cacheClasses.lastProp&&(n.cacheClasses.lastProp=t,o=!0),o&&(n.cacheClasses.value=ed({baseClasses:n.cacheClasses.lastJSS,newClasses:t,Component:r})),n.cacheClasses.value}function a0(e,t){var r=e.state,n=e.theme,i=e.stylesOptions,o=e.stylesCreator,a=e.name;if(!i.disableGeneration){var l=er.get(i.sheetsManager,o,n);l||(l={refs:0,staticSheet:null,dynamicStyles:null},er.set(i.sheetsManager,o,n,l));var s=q({},o.options,i,{theme:n,flip:typeof i.flip=="boolean"?i.flip:n.direction==="rtl"});s.generateId=s.serverGenerateClassName||s.generateClassName;var c=i.sheetsRegistry;if(l.refs===0){var u;i.sheetsCache&&(u=er.get(i.sheetsCache,o,n));var d=o.create(n,a);u||(u=i.jss.createStyleSheet(d,q({link:!1},s)),u.attach(),i.sheetsCache&&er.set(i.sheetsCache,o,n,u)),c&&c.add(u),l.staticSheet=u,l.dynamicStyles=Xu(d)}if(l.dynamicStyles){var f=i.jss.createStyleSheet(l.dynamicStyles,q({link:!0},s));f.update(t),f.attach(),r.dynamicSheet=f,r.classes=ed({baseClasses:l.staticSheet.classes,newClasses:f.classes}),c&&c.add(f)}else r.classes=l.staticSheet.classes;l.refs+=1}}function l0(e,t){var r=e.state;r.dynamicSheet&&r.dynamicSheet.update(t)}function s0(e){var t=e.state,r=e.theme,n=e.stylesOptions,i=e.stylesCreator;if(!n.disableGeneration){var o=er.get(n.sheetsManager,i,r);o.refs-=1;var a=n.sheetsRegistry;o.refs===0&&(er.delete(n.sheetsManager,i,r),n.jss.removeStyleSheet(o.staticSheet),a&&a.remove(o.staticSheet)),t.dynamicSheet&&(n.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}function c0(e,t){var r=Q.useRef([]),n,i=Q.useMemo(function(){return{}},t);r.current!==i&&(r.current=i,n=e()),Q.useEffect(function(){return function(){n&&n()}},[i])}function u0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.name,n=t.classNamePrefix,i=t.Component,o=t.defaultTheme,a=o===void 0?n0:o,l=Xt(t,["name","classNamePrefix","Component","defaultTheme"]),s=i0(e),c=r||n||"makeStyles";s.options={index:r0(),name:r,meta:c,classNamePrefix:c};var u=function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p=Qb()||a,h=q({},Q.useContext(t0),l),m=Q.useRef(),b=Q.useRef();c0(function(){var x={name:r,state:{},stylesCreator:s,stylesOptions:h,theme:p};return a0(x,f),b.current=!1,m.current=x,function(){s0(x)}},[p,s]),Q.useEffect(function(){b.current&&l0(m.current,f),b.current=!0});var y=o0(m.current,f.classes,i);return y};return u}const d0=Object.freeze(Object.defineProperty({__proto__:null,default:u0},Symbol.toStringTag,{value:"Module"})),f0=Jn(d0);var p0=Dn.exports,ls;function h0(){return ls||(ls=1,(function(e,t){(function(r,n){e.exports=n()})(typeof self<"u"?self:p0,function(){return(function(r){function n(o){if(i[o])return i[o].exports;var a=i[o]={i:o,l:!1,exports:{}};return r[o].call(a.exports,a,a.exports,n),a.l=!0,a.exports}var i={};return n.m=r,n.c=i,n.d=function(o,a,l){n.o(o,a)||Object.defineProperty(o,a,{configurable:!1,enumerable:!0,get:l})},n.n=function(o){var a=o&&o.__esModule?function(){return o.default}:function(){return o};return n.d(a,"a",a),a},n.o=function(o,a){return Object.prototype.hasOwnProperty.call(o,a)},n.p="",n(n.s=3)})([function(r,n){r.exports=bc()},function(r,n){r.exports=yc()},function(r,n){r.exports=f0},function(r,n,i){function o(u){return u&&u.__esModule?u:{default:u}}Object.defineProperty(n,"__esModule",{value:!0});var a=i(4),l=o(a),s=i(6),c=o(s);n.default={isVirtualized:!1,nodeContentRenderer:l.default,scaffoldBlockPxWidth:25,treeNodeRenderer:c.default}},function(r,n,i){function o(x){return x&&x.__esModule?x:{default:x}}function a(x,_){return!!x.children&&typeof x.children!="function"&&x.children.some(function(T){return T===_||a(T,_)})}function l(x){var _=x.scaffoldBlockPxWidth,T=x.connectDragPreview,k=x.connectDragSource,C=x.isDragging,D=x.canDrop,w=x.canDrag,R=x.node,I=x.title,P=x.draggedNode,L=x.path,N=x.treeIndex,G=x.isSearchMatch,z=x.isSearchFocus,F=x.icons,W=x.buttons,H=x.className,J=x.style,Z=x.didDrop,Y=x.lowerSiblingCounts,X=x.listIndex,U=x.swapFrom,re=x.swapLength,ne=x.swapDepth,ce=x.onItemClick,B=y(),$=I||R.title,E=P&&a(P,R),O=!Z&&C,j=[];Y.forEach(function(ee,ae){if(ae>0&&(j.push(u.default.createElement("div",{className:B.lineBlock,key:"pre_"+(1+ae),style:{width:_}})),N!==X&&ae===ne)){var de="";de=X===U+re-1?B.highlightBottomLeftCorner:N===U?B.highlightTopLeftCorner:B.highlightLineVertical,j.push(u.default.createElement("div",{className:B.absoluteLineBlock+" "+de,key:"highlight_"+(1+ae),style:{left:_*ae,width:_}}))}});var V=u.default.createElement("div",{className:B.contentNode},T(u.default.createElement("div",{className:B.row+(R.active?" "+B.activeRow:"")+(O?" "+B.rowLandingPad:"")+(C?" "+B.rowLandingPadDisable:"")+(O&&!D?" "+B.rowCancelPad:"")+(G?" "+B.rowSearchMatch:"")+(z?" "+B.rowSearchFocus:"")+(w?"":" "+B.rowWrapperDragDisabled)+(H?" "+H:""),onClick:function(){return ce?ce(s({},R,{index:N})):null},style:s({opacity:E?.5:1},J)},R.type==="divider"?u.default.createElement("div",{className:B.divider}):u.default.createElement(c.Fragment,null,j,u.default.createElement("div",{className:B.rowIcon},F),u.default.createElement("div",{className:B.rowLabel},typeof $=="string"?u.default.createElement("span",{className:B.rowTitle},$):typeof $=="function"?$({node:R,path:L,treeIndex:N}):$),u.default.createElement("div",{className:B.rowToolbar},W)))));return w?k(V,{dropEffect:"copy"}):V}Object.defineProperty(n,"__esModule",{value:!0});var s=Object.assign||function(x){for(var _=1;_<arguments.length;_++){var T=arguments[_];for(var k in T)Object.prototype.hasOwnProperty.call(T,k)&&(x[k]=T[k])}return x},c=i(0),u=o(c),d=i(1),f=o(d),p=i(2),h=o(p),m=i(5),b=o(m),y=(0,h.default)(b.default,{name:"MuiNodeContent"});l.defaultProps={buttons:null,canDrag:!1,canDrop:!1,className:"",draggedNode:null,icons:null,isSearchFocus:!1,isSearchMatch:!1,parentNode:null,style:{},swapDepth:null,swapFrom:null,swapLength:null,title:null,toggleChildrenVisibility:null},l.propTypes={buttons:f.default.node,canDrag:f.default.bool,canDrop:f.default.bool,className:f.default.string,connectDragPreview:f.default.func.isRequired,connectDragSource:f.default.func.isRequired,didDrop:f.default.bool.isRequired,draggedNode:f.default.shape({}),icons:f.default.node,isDragging:f.default.bool.isRequired,isOver:f.default.bool.isRequired,isSearchFocus:f.default.bool,isSearchMatch:f.default.bool,listIndex:f.default.number.isRequired,lowerSiblingCounts:f.default.arrayOf(f.default.number).isRequired,node:f.default.shape({}).isRequired,parentNode:f.default.shape({}),path:f.default.arrayOf(f.default.oneOfType([f.default.string,f.default.number])).isRequired,rowDirection:f.default.string.isRequired,scaffoldBlockPxWidth:f.default.number.isRequired,style:f.default.shape({}),swapDepth:f.default.number,swapFrom:f.default.number,swapLength:f.default.number,title:f.default.oneOfType([f.default.func,f.default.node]),toggleChildrenVisibility:f.default.func,treeId:f.default.string.isRequired,treeIndex:f.default.number.isRequired},n.default=l},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){return{"@keyframes arrow-pulse":{"0%":{opacity:0,transform:"translate(0, 0)"},"100%":{opacity:0,transform:"translate(0, 1000%)"},"30%":{opacity:1,transform:"translate(0, 300%)"},"70%":{opacity:1,transform:"translate(0, 700%)"}},absoluteLineBlock:{position:"absolute",top:0},activeRow:{},collapseButton:{},contentNode:{width:"100%"},divider:{backgroundColor:"#D8D8D8",height:1,width:"100%"},expandButton:{},highlightBottomLeftCorner:{zIndex:3},highlightLineVertical:{zIndex:3},highlightTopLeftCorner:{},lineBlock:{display:"inline-block",flex:"0 0 auto",height:"100%",position:"relative"},lineChildren:{display:"inline-block",height:"100%"},nodeContent:{"& $collapseButton, & $expandButton":{"&::after":{border:"solid transparent 10px",borderLeftWidth:7,borderRightWidth:7,borderTopColor:"gray",content:'""',position:"absolute",transform:"translate3d(-50%, -20%, 0)",transformOrigin:"7px 4px"},"&:focus":{"&::after":{filter:"drop-shadow(0 0 1px #83bef9) drop-shadow(0 0 1px #83bef9) drop-shadow(0 0 1px #83bef9)"},outline:"none"},"&:hover::after":{borderTopColor:"black"},appearance:"none",background:"transparent",border:"none",cursor:"pointer",height:30,padding:0,position:"absolute",top:"45%",transform:"translate3d(-50%, -50%, 0)",width:30,zIndex:2},"& $lineBlock, & $absoluteLineBlock":{display:"inline-block",flex:"0 0 auto",height:"100%",position:"relative"},"& $rowContents":{alignItems:"center",borderRadius:"3px",color:"#595959",display:"flex",height:"100%",justifyContent:"space-between",padding:10,position:"relative"}},row:{"& $rowIcon, & $rowLabel,& $rowToolbar":{alignItems:"center",display:"flex"},"& $rowLabel":{flex:1,overflow:"hidden",padding:"0px 6px"},"& $rowToolbar":{cursor:"pointer"},"&$activeRow":{backgroundColor:"#F3FBFF",color:"#1890FF"},"&$rowCancelPad":{"&::before":{backgroundColor:"#ffd2d6",border:"2px dotted #e6a8ad"}},"&$rowLandingPad":{"&::before":{backgroundColor:"#dddddd",border:"2px dotted #b5b5b5"}},"&$rowLandingPad, &$rowCancelPad":{"& *":{opacity:".6 !important"},"&::before":{bottom:0,content:'""',left:0,position:"absolute",right:0,top:0,zIndex:-1},backgroundColor:"transparent",border:"none",boxShadow:"none",outline:"none"},"&$rowLandingPadDisable":{"&:hover":{backgroundColor:"white"}},backgroundColor:"white",cursor:"grab",display:"flex",flex:1,padding:6,position:"relative"},rowCancelPad:{},rowContents:{},rowIcon:{color:"#D9D9D9"},rowLabel:{},rowLandingPad:{},rowLandingPadDisable:{},rowSearchFocus:{boxShadow:"inset 0 -7px 7px -3px #fc6421"},rowSearchMatch:{boxShadow:"inset 0 -7px 7px -3px #0080ff"},rowToolbar:{},rowWrapper:{"&:active":{backgroundColor:"transparent"},"&:hover":{backgroundColor:"#F3FBFF"},boxSizing:"border-box",cursor:"grab",display:"flex",height:"100%"},rowWrapperDragDisabled:{cursor:"default"}}}},function(r,n,i){function o(b){return b&&b.__esModule?b:{default:b}}function a(b){var y=b.children,x=b.listIndex,_=b.swapFrom,T=b.swapLength,k=b.swapDepth,C=b.lowerSiblingCounts,D=b.connectDropTarget,w=b.isOver,R=b.draggedNode,I=b.canDrop,P=m();return D(s.default.createElement("div",{className:P.node},l.Children.map(y,function(L){return(0,l.cloneElement)(L,{canDrop:I,draggedNode:R,isOver:w,listIndex:x,lowerSiblingCounts:C,swapDepth:k,swapFrom:_,swapLength:T})})))}Object.defineProperty(n,"__esModule",{value:!0});var l=i(0),s=o(l),c=i(1),u=o(c),d=i(2),f=o(d),p=i(7),h=o(p),m=(0,f.default)(h.default,{name:"MuiTreeNode"});a.defaultProps={canDrop:!1,draggedNode:null,swapDepth:null,swapFrom:null,swapLength:null},a.propTypes={canDrop:u.default.bool,children:u.default.node.isRequired,connectDropTarget:u.default.func.isRequired,draggedNode:u.default.shape({}),getPrevRow:u.default.func.isRequired,isOver:u.default.bool.isRequired,listIndex:u.default.number.isRequired,lowerSiblingCounts:u.default.arrayOf(u.default.number).isRequired,node:u.default.shape({}).isRequired,path:u.default.arrayOf(u.default.oneOfType([u.default.string,u.default.number])).isRequired,rowDirection:u.default.string.isRequired,scaffoldBlockPxWidth:u.default.number.isRequired,swapDepth:u.default.number,swapFrom:u.default.number,swapLength:u.default.number,treeId:u.default.string.isRequired,treeIndex:u.default.number.isRequired},n.default=a},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){return{node:{display:"flex"}}}}])})})(Dn)),Dn.exports}var g0=h0();const v0=Qn(g0);const cd=Object.freeze({left:0,top:0,width:16,height:16}),Fn=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),on=Object.freeze({...cd,...Fn}),vo=Object.freeze({...on,body:"",hidden:!1}),m0=Object.freeze({width:null,height:null}),ud=Object.freeze({...m0,...Fn});function b0(e,t=0){const r=e.replace(/^-?[0-9.]*/,"");function n(i){for(;i<0;)i+=4;return i%4}if(r===""){const i=parseInt(e);return isNaN(i)?0:n(i)}else if(r!==e){let i=0;switch(r){case"%":i=25;break;case"deg":i=90}if(i){let o=parseFloat(e.slice(0,e.length-r.length));return isNaN(o)?0:(o=o/i,o%1===0?n(o):0)}}return t}const y0=/[\s,]+/;function x0(e,t){t.split(y0).forEach(r=>{switch(r.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const dd={...ud,preserveAspectRatio:""};function ss(e){const t={...dd},r=(n,i)=>e.getAttribute(n)||i;return t.width=r("width",null),t.height=r("height",null),t.rotate=b0(r("rotate","")),x0(t,r("flip","")),t.preserveAspectRatio=r("preserveAspectRatio",r("preserveaspectratio","")),t}function S0(e,t){for(const r in dd)if(e[r]!==t[r])return!0;return!1}const jr=/^[a-z0-9]+(-[a-z0-9]+)*$/,an=(e,t,r,n="")=>{const i=e.split(":");if(e.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;n=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const l=i.pop(),s=i.pop(),c={provider:i.length>0?i[0]:n,prefix:s,name:l};return t&&!Tn(c)?null:c}const o=i[0],a=o.split("-");if(a.length>1){const l={provider:n,prefix:a.shift(),name:a.join("-")};return t&&!Tn(l)?null:l}if(r&&n===""){const l={provider:n,prefix:"",name:o};return t&&!Tn(l,r)?null:l}return null},Tn=(e,t)=>e?!!((e.provider===""||e.provider.match(jr))&&(t&&e.prefix===""||e.prefix.match(jr))&&e.name.match(jr)):!1;function w0(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const n=((e.rotate||0)+(t.rotate||0))%4;return n&&(r.rotate=n),r}function cs(e,t){const r=w0(e,t);for(const n in vo)n in Fn?n in e&&!(n in r)&&(r[n]=Fn[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}function C0(e,t){const r=e.icons,n=e.aliases||Object.create(null),i=Object.create(null);function o(a){if(r[a])return i[a]=[];if(!(a in i)){i[a]=null;const l=n[a]&&n[a].parent,s=l&&o(l);s&&(i[a]=[l].concat(s))}return i[a]}return Object.keys(r).concat(Object.keys(n)).forEach(o),i}function I0(e,t,r){const n=e.icons,i=e.aliases||Object.create(null);let o={};function a(l){o=cs(n[l]||i[l],o)}return a(t),r.forEach(a),cs(e,o)}function fd(e,t){const r=[];if(typeof e!="object"||typeof e.icons!="object")return r;e.not_found instanceof Array&&e.not_found.forEach(i=>{t(i,null),r.push(i)});const n=C0(e);for(const i in n){const o=n[i];o&&(t(i,I0(e,i,o)),r.push(i))}return r}const R0={provider:"",aliases:{},not_found:{},...cd};function Mi(e,t){for(const r in t)if(r in e&&typeof e[r]!=typeof t[r])return!1;return!0}function pd(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!Mi(e,R0))return null;const r=t.icons;for(const i in r){const o=r[i];if(!i.match(jr)||typeof o.body!="string"||!Mi(o,vo))return null}const n=t.aliases||Object.create(null);for(const i in n){const o=n[i],a=o.parent;if(!i.match(jr)||typeof a!="string"||!r[a]&&!n[a]||!Mi(o,vo))return null}return t}const Bn=Object.create(null);function _0(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Dt(e,t){const r=Bn[e]||(Bn[e]=Object.create(null));return r[t]||(r[t]=_0(e,t))}function sa(e,t){return pd(t)?fd(t,(r,n)=>{n?e.icons[r]=n:e.missing.add(r)}):[]}function D0(e,t,r){try{if(typeof r.body=="string")return e.icons[t]={...r},!0}catch{}return!1}function T0(e,t){let r=[];return(typeof e=="string"?[e]:Object.keys(Bn)).forEach(i=>{(typeof i=="string"&&typeof t=="string"?[t]:Object.keys(Bn[i]||{})).forEach(a=>{const l=Dt(i,a);r=r.concat(Object.keys(l.icons).map(s=>(i!==""?"@"+i+":":"")+a+":"+s))})}),r}let Ur=!1;function hd(e){return typeof e=="boolean"&&(Ur=e),Ur}function Vr(e){const t=typeof e=="string"?an(e,!0,Ur):e;if(t){const r=Dt(t.provider,t.prefix),n=t.name;return r.icons[n]||(r.missing.has(n)?null:void 0)}}function gd(e,t){const r=an(e,!0,Ur);if(!r)return!1;const n=Dt(r.provider,r.prefix);return D0(n,r.name,t)}function us(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Ur&&!t&&!e.prefix){let i=!1;return pd(e)&&(e.prefix="",fd(e,(o,a)=>{a&&gd(o,a)&&(i=!0)})),i}const r=e.prefix;if(!Tn({provider:t,prefix:r,name:"a"}))return!1;const n=Dt(t,r);return!!sa(n,e)}function k0(e){return!!Vr(e)}function E0(e){const t=Vr(e);return t?{...on,...t}:null}function P0(e){const t={loaded:[],missing:[],pending:[]},r=Object.create(null);e.sort((i,o)=>i.provider!==o.provider?i.provider.localeCompare(o.provider):i.prefix!==o.prefix?i.prefix.localeCompare(o.prefix):i.name.localeCompare(o.name));let n={provider:"",prefix:"",name:""};return e.forEach(i=>{if(n.name===i.name&&n.prefix===i.prefix&&n.provider===i.provider)return;n=i;const o=i.provider,a=i.prefix,l=i.name,s=r[o]||(r[o]=Object.create(null)),c=s[a]||(s[a]=Dt(o,a));let u;l in c.icons?u=t.loaded:a===""||c.missing.has(l)?u=t.missing:u=t.pending;const d={provider:o,prefix:a,name:l};u.push(d)}),t}function vd(e,t){e.forEach(r=>{const n=r.loaderCallbacks;n&&(r.loaderCallbacks=n.filter(i=>i.id!==t))})}function O0(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let r=!1;const n=e.provider,i=e.prefix;t.forEach(o=>{const a=o.icons,l=a.pending.length;a.pending=a.pending.filter(s=>{if(s.prefix!==i)return!0;const c=s.name;if(e.icons[c])a.loaded.push({provider:n,prefix:i,name:c});else if(e.missing.has(c))a.missing.push({provider:n,prefix:i,name:c});else return r=!0,!0;return!1}),a.pending.length!==l&&(r||vd([e],o.id),o.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),o.abort))})}))}let N0=0;function A0(e,t,r){const n=N0++,i=vd.bind(null,r,n);if(!t.pending.length)return i;const o={id:n,icons:t,callback:e,abort:i};return r.forEach(a=>{(a.loaderCallbacks||(a.loaderCallbacks=[])).push(o)}),i}const mo=Object.create(null);function ds(e,t){mo[e]=t}function bo(e){return mo[e]||mo[""]}function M0(e,t=!0,r=!1){const n=[];return e.forEach(i=>{const o=typeof i=="string"?an(i,t,r):i;o&&n.push(o)}),n}var L0={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function z0(e,t,r,n){const i=e.resources.length,o=e.random?Math.floor(Math.random()*i):e.index;let a;if(e.random){let C=e.resources.slice(0);for(a=[];C.length>1;){const D=Math.floor(Math.random()*C.length);a.push(C[D]),C=C.slice(0,D).concat(C.slice(D+1))}a=a.concat(C)}else a=e.resources.slice(o).concat(e.resources.slice(0,o));const l=Date.now();let s="pending",c=0,u,d=null,f=[],p=[];typeof n=="function"&&p.push(n);function h(){d&&(clearTimeout(d),d=null)}function m(){s==="pending"&&(s="aborted"),h(),f.forEach(C=>{C.status==="pending"&&(C.status="aborted")}),f=[]}function b(C,D){D&&(p=[]),typeof C=="function"&&p.push(C)}function y(){return{startTime:l,payload:t,status:s,queriesSent:c,queriesPending:f.length,subscribe:b,abort:m}}function x(){s="failed",p.forEach(C=>{C(void 0,u)})}function _(){f.forEach(C=>{C.status==="pending"&&(C.status="aborted")}),f=[]}function T(C,D,w){const R=D!=="success";switch(f=f.filter(I=>I!==C),s){case"pending":break;case"failed":if(R||!e.dataAfterTimeout)return;break;default:return}if(D==="abort"){u=w,x();return}if(R){u=w,f.length||(a.length?k():x());return}if(h(),_(),!e.random){const I=e.resources.indexOf(C.resource);I!==-1&&I!==e.index&&(e.index=I)}s="completed",p.forEach(I=>{I(w)})}function k(){if(s!=="pending")return;h();const C=a.shift();if(C===void 0){if(f.length){d=setTimeout(()=>{h(),s==="pending"&&(_(),x())},e.timeout);return}x();return}const D={status:"pending",resource:C,callback:(w,R)=>{T(D,w,R)}};f.push(D),c++,d=setTimeout(k,e.rotate),r(C,t,D.callback)}return setTimeout(k),y}function md(e){const t={...L0,...e};let r=[];function n(){r=r.filter(l=>l().status==="pending")}function i(l,s,c){const u=z0(t,l,s,(d,f)=>{n(),c&&c(d,f)});return r.push(u),u}function o(l){return r.find(s=>l(s))||null}return{query:i,find:o,setIndex:l=>{t.index=l},getIndex:()=>t.index,cleanup:n}}function ca(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 oi=Object.create(null),wr=["https://api.simplesvg.com","https://api.unisvg.com"],kn=[];for(;wr.length>0;)wr.length===1||Math.random()>.5?kn.push(wr.shift()):kn.push(wr.pop());oi[""]=ca({resources:["https://api.iconify.design"].concat(kn)});function fs(e,t){const r=ca(t);return r===null?!1:(oi[e]=r,!0)}function ai(e){return oi[e]}function j0(){return Object.keys(oi)}function ps(){}const Li=Object.create(null);function F0(e){if(!Li[e]){const t=ai(e);if(!t)return;const r=md(t),n={config:t,redundancy:r};Li[e]=n}return Li[e]}function bd(e,t,r){let n,i;if(typeof e=="string"){const o=bo(e);if(!o)return r(void 0,424),ps;i=o.send;const a=F0(e);a&&(n=a.redundancy)}else{const o=ca(e);if(o){n=md(o);const a=e.resources?e.resources[0]:"",l=bo(a);l&&(i=l.send)}}return!n||!i?(r(void 0,424),ps):n.query(t,i,r)().abort}const hs="iconify2",qr="iconify",yd=qr+"-count",gs=qr+"-version",xd=36e5,B0=168;function yo(e,t){try{return e.getItem(t)}catch{}}function ua(e,t,r){try{return e.setItem(t,r),!0}catch{}}function vs(e,t){try{e.removeItem(t)}catch{}}function xo(e,t){return ua(e,yd,t.toString())}function So(e){return parseInt(yo(e,yd))||0}const jt={local:!0,session:!0},Sd={local:new Set,session:new Set};let da=!1;function $0(e){da=e}let vn=typeof window>"u"?{}:window;function wd(e){const t=e+"Storage";try{if(vn&&vn[t]&&typeof vn[t].length=="number")return vn[t]}catch{}jt[e]=!1}function Cd(e,t){const r=wd(e);if(!r)return;const n=yo(r,gs);if(n!==hs){if(n){const l=So(r);for(let s=0;s<l;s++)vs(r,qr+s.toString())}ua(r,gs,hs),xo(r,0);return}const i=Math.floor(Date.now()/xd)-B0,o=l=>{const s=qr+l.toString(),c=yo(r,s);if(typeof c=="string"){try{const u=JSON.parse(c);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>i&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,l))return!0}catch{}vs(r,s)}};let a=So(r);for(let l=a-1;l>=0;l--)o(l)||(l===a-1?(a--,xo(r,a)):Sd[e].add(l))}function Id(){if(!da){$0(!0);for(const e in jt)Cd(e,t=>{const r=t.data,n=t.provider,i=r.prefix,o=Dt(n,i);if(!sa(o,r).length)return!1;const a=r.lastModified||-1;return o.lastModifiedCached=o.lastModifiedCached?Math.min(o.lastModifiedCached,a):a,!0})}}function G0(e,t){const r=e.lastModifiedCached;if(r&&r>=t)return r===t;if(e.lastModifiedCached=t,r)for(const n in jt)Cd(n,i=>{const o=i.data;return i.provider!==e.provider||o.prefix!==e.prefix||o.lastModified===t});return!0}function W0(e,t){da||Id();function r(n){let i;if(!jt[n]||!(i=wd(n)))return;const o=Sd[n];let a;if(o.size)o.delete(a=Array.from(o).shift());else if(a=So(i),!xo(i,a+1))return;const l={cached:Math.floor(Date.now()/xd),provider:e.provider,data:t};return ua(i,qr+a.toString(),JSON.stringify(l))}t.lastModified&&!G0(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),r("local")||r("session"))}function ms(){}function H0(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,O0(e)}))}function U0(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:r,prefix:n}=e,i=e.iconsToLoad;delete e.iconsToLoad;let o;if(!i||!(o=bo(r)))return;o.prepare(r,n,i).forEach(l=>{bd(r,l,s=>{if(typeof s!="object")l.icons.forEach(c=>{e.missing.add(c)});else try{const c=sa(e,s);if(!c.length)return;const u=e.pendingIcons;u&&c.forEach(d=>{u.delete(d)}),W0(e,s)}catch(c){console.error(c)}H0(e)})})}))}const fa=(e,t)=>{const r=M0(e,!0,hd()),n=P0(r);if(!n.pending.length){let s=!0;return t&&setTimeout(()=>{s&&t(n.loaded,n.missing,n.pending,ms)}),()=>{s=!1}}const i=Object.create(null),o=[];let a,l;return n.pending.forEach(s=>{const{provider:c,prefix:u}=s;if(u===l&&c===a)return;a=c,l=u,o.push(Dt(c,u));const d=i[c]||(i[c]=Object.create(null));d[u]||(d[u]=[])}),n.pending.forEach(s=>{const{provider:c,prefix:u,name:d}=s,f=Dt(c,u),p=f.pendingIcons||(f.pendingIcons=new Set);p.has(d)||(p.add(d),i[c][u].push(d))}),o.forEach(s=>{const{provider:c,prefix:u}=s;i[c][u].length&&U0(s,i[c][u])}),t?A0(t,n,o):ms},V0=e=>new Promise((t,r)=>{const n=typeof e=="string"?an(e,!0):e;if(!n){r(e);return}fa([n||e],i=>{if(i.length&&n){const o=Vr(n);if(o){t({...on,...o});return}}r(e)})});function q0(e){try{const t=typeof e=="string"?JSON.parse(e):e;if(typeof t.body=="string")return{...t}}catch{}}function K0(e,t){const r=typeof e=="string"?an(e,!0,!0):null;if(!r){const o=q0(e);return{value:e,data:o}}const n=Vr(r);if(n!==void 0||!r.prefix)return{value:e,name:r,data:n};const i=fa([r],()=>t(e,r,Vr(r)));return{value:e,name:r,loading:i}}function zi(e){return e.hasAttribute("inline")}let Rd=!1;try{Rd=navigator.vendor.indexOf("Apple")===0}catch{}function Y0(e,t){switch(t){case"svg":case"bg":case"mask":return t}return t!=="style"&&(Rd||e.indexOf("<a")===-1)?"svg":e.indexOf("currentColor")===-1?"bg":"mask"}const J0=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Q0=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function wo(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const n=e.split(J0);if(n===null||!n.length)return e;const i=[];let o=n.shift(),a=Q0.test(o);for(;;){if(a){const l=parseFloat(o);isNaN(l)?i.push(o):i.push(Math.ceil(l*t*r)/r)}else i.push(o);if(o=n.shift(),o===void 0)return i.join("");a=!a}}const X0=e=>e==="unset"||e==="undefined"||e==="none";function _d(e,t){const r={...on,...e},n={...ud,...t},i={left:r.left,top:r.top,width:r.width,height:r.height};let o=r.body;[r,n].forEach(h=>{const m=[],b=h.hFlip,y=h.vFlip;let x=h.rotate;b?y?x+=2:(m.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),m.push("scale(-1 1)"),i.top=i.left=0):y&&(m.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),m.push("scale(1 -1)"),i.top=i.left=0);let _;switch(x<0&&(x-=Math.floor(x/4)*4),x=x%4,x){case 1:_=i.height/2+i.top,m.unshift("rotate(90 "+_.toString()+" "+_.toString()+")");break;case 2:m.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:_=i.width/2+i.left,m.unshift("rotate(-90 "+_.toString()+" "+_.toString()+")");break}x%2===1&&(i.left!==i.top&&(_=i.left,i.left=i.top,i.top=_),i.width!==i.height&&(_=i.width,i.width=i.height,i.height=_)),m.length&&(o='<g transform="'+m.join(" ")+'">'+o+"</g>")});const a=n.width,l=n.height,s=i.width,c=i.height;let u,d;a===null?(d=l===null?"1em":l==="auto"?c:l,u=wo(d,s/c)):(u=a==="auto"?s:a,d=l===null?wo(u,c/s):l==="auto"?c:l);const f={},p=(h,m)=>{X0(m)||(f[h]=m.toString())};return p("width",u),p("height",d),f.viewBox=i.left.toString()+" "+i.top.toString()+" "+s.toString()+" "+c.toString(),{attributes:f,body:o}}const Z0=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let $n=Z0();function e1(e){$n=e}function t1(){return $n}function r1(e,t){const r=ai(e);if(!r)return 0;let n;if(!r.maxURL)n=0;else{let i=0;r.resources.forEach(a=>{i=Math.max(i,a.length)});const o=t+".json?icons=";n=r.maxURL-i-r.path.length-o.length}return n}function n1(e){return e===404}const i1=(e,t,r)=>{const n=[],i=r1(e,t),o="icons";let a={type:o,provider:e,prefix:t,icons:[]},l=0;return r.forEach((s,c)=>{l+=s.length+1,l>=i&&c>0&&(n.push(a),a={type:o,provider:e,prefix:t,icons:[]},l=s.length),a.icons.push(s)}),n.push(a),n};function o1(e){if(typeof e=="string"){const t=ai(e);if(t)return t.path}return"/"}const a1=(e,t,r)=>{if(!$n){r("abort",424);return}let n=o1(t.provider);switch(t.type){case"icons":{const o=t.prefix,l=t.icons.join(","),s=new URLSearchParams({icons:l});n+=o+".json?"+s.toString();break}case"custom":{const o=t.uri;n+=o.slice(0,1)==="/"?o.slice(1):o;break}default:r("abort",400);return}let i=503;$n(e+n).then(o=>{const a=o.status;if(a!==200){setTimeout(()=>{r(n1(a)?"abort":"next",a)});return}return i=501,o.json()}).then(o=>{if(typeof o!="object"||o===null){setTimeout(()=>{o===404?r("abort",o):r("next",i)});return}setTimeout(()=>{r("success",o)})}).catch(()=>{r("next",i)})},l1={prepare:i1,send:a1};function bs(e,t){switch(e){case"local":case"session":jt[e]=t;break;case"all":for(const r in jt)jt[r]=t;break}}const ji="data-style";let Dd="";function s1(e){Dd=e}function ys(e,t){let r=Array.from(e.childNodes).find(n=>n.hasAttribute&&n.hasAttribute(ji));r||(r=document.createElement("style"),r.setAttribute(ji,ji),e.appendChild(r)),r.textContent=":host{display:inline-block;vertical-align:"+(t?"-0.125em":"0")+"}span,svg{display:block}"+Dd}function Td(){ds("",l1),hd(!0);let e;try{e=window}catch{}if(e){if(Id(),e.IconifyPreload!==void 0){const r=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof r=="object"&&r!==null&&(r instanceof Array?r:[r]).forEach(i=>{try{(typeof i!="object"||i===null||i instanceof Array||typeof i.icons!="object"||typeof i.prefix!="string"||!us(i))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const r=e.IconifyProviders;if(typeof r=="object"&&r!==null)for(const n in r){const i="IconifyProviders["+n+"] is invalid.";try{const o=r[n];if(typeof o!="object"||!o||o.resources===void 0)continue;fs(n,o)||console.error(i)}catch{console.error(i)}}}}return{enableCache:r=>bs(r,!0),disableCache:r=>bs(r,!1),iconExists:k0,getIcon:E0,listIcons:T0,addIcon:gd,addCollection:us,calculateSize:wo,buildIcon:_d,loadIcons:fa,loadIcon:V0,addAPIProvider:fs,appendCustomStyle:s1,_api:{getAPIConfig:ai,setAPIModule:ds,sendAPIQuery:bd,setFetch:e1,getFetch:t1,listAPIProviders:j0}}}function kd(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in t)r+=" "+n+'="'+t[n]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+e+"</svg>"}function c1(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function u1(e){return"data:image/svg+xml,"+c1(e)}function d1(e){return'url("'+u1(e)+'")'}const Co={"background-color":"currentColor"},Ed={"background-color":"transparent"},xs={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Ss={"-webkit-mask":Co,mask:Co,background:Ed};for(const e in Ss){const t=Ss[e];for(const r in xs)t[e+"-"+r]=xs[r]}function ws(e){return e?e+(e.match(/^[-0-9.]+$/)?"px":""):"inherit"}function f1(e,t,r){const n=document.createElement("span");let i=e.body;i.indexOf("<a")!==-1&&(i+="<!-- "+Date.now()+" -->");const o=e.attributes,a=kd(i,{...o,width:t.width+"",height:t.height+""}),l=d1(a),s=n.style,c={"--svg":l,width:ws(o.width),height:ws(o.height),...r?Co:Ed};for(const u in c)s.setProperty(u,c[u]);return n}let Fr;function p1(){try{Fr=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{Fr=null}}function h1(e){return Fr===void 0&&p1(),Fr?Fr.createHTML(e):e}function g1(e){const t=document.createElement("span"),r=e.attributes;let n="";r.width||(n="width: inherit;"),r.height||(n+="height: inherit;"),n&&(r.style=n);const i=kd(e.body,r);return t.innerHTML=h1(i),t.firstChild}function Cs(e,t){const r=t.icon.data,n=t.customisations,i=_d(r,n);n.preserveAspectRatio&&(i.attributes.preserveAspectRatio=n.preserveAspectRatio);const o=t.renderedMode;let a;o==="svg"?a=g1(i):a=f1(i,{...on,...r},o==="mask");const l=Array.from(e.childNodes).find(s=>{const c=s.tagName&&s.tagName.toUpperCase();return c==="SPAN"||c==="SVG"});l?a.tagName==="SPAN"&&l.tagName===a.tagName?l.setAttribute("style",a.getAttribute("style")):e.replaceChild(a,l):e.appendChild(a)}function Is(e,t,r){const n=r&&(r.rendered?r:r.lastRender);return{rendered:!1,inline:t,icon:e,lastRender:n}}function v1(e="iconify-icon"){let t,r;try{t=window.customElements,r=window.HTMLElement}catch{return}if(!t||!r)return;const n=t.get(e);if(n)return n;const i=["icon","mode","inline","width","height","rotate","flip"],o=class extends r{_shadowRoot;_state;_checkQueued=!1;constructor(){super();const l=this._shadowRoot=this.attachShadow({mode:"open"}),s=zi(this);ys(l,s),this._state=Is({value:""},s),this._queueCheck()}static get observedAttributes(){return i.slice(0)}attributeChangedCallback(l){if(l==="inline"){const s=zi(this),c=this._state;s!==c.inline&&(c.inline=s,ys(this._shadowRoot,s))}else this._queueCheck()}get icon(){const l=this.getAttribute("icon");if(l&&l.slice(0,1)==="{")try{return JSON.parse(l)}catch{}return l}set icon(l){typeof l=="object"&&(l=JSON.stringify(l)),this.setAttribute("icon",l)}get inline(){return zi(this)}set inline(l){l?this.setAttribute("inline","true"):this.removeAttribute("inline")}restartAnimation(){const l=this._state;if(l.rendered){const s=this._shadowRoot;if(l.renderedMode==="svg")try{s.lastChild.setCurrentTime(0);return}catch{}Cs(s,l)}}get status(){const l=this._state;return l.rendered?"rendered":l.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;const l=this._state,s=this.getAttribute("icon");if(s!==l.icon.value){this._iconChanged(s);return}if(!l.rendered)return;const c=this.getAttribute("mode"),u=ss(this);(l.attrMode!==c||S0(l.customisations,u))&&this._renderIcon(l.icon,u,c)}_iconChanged(l){const s=K0(l,(c,u,d)=>{const f=this._state;if(f.rendered||this.getAttribute("icon")!==c)return;const p={value:c,name:u,data:d};p.data?this._gotIconData(p):f.icon=p});s.data?this._gotIconData(s):this._state=Is(s,this._state.inline,this._state)}_gotIconData(l){this._checkQueued=!1,this._renderIcon(l,ss(this),this.getAttribute("mode"))}_renderIcon(l,s,c){const u=Y0(l.data.body,c),d=this._state.inline;Cs(this._shadowRoot,this._state={rendered:!0,icon:l,inline:d,customisations:s,attrMode:c,renderedMode:u})}};i.forEach(l=>{l in o.prototype||Object.defineProperty(o.prototype,l,{get:function(){return this.getAttribute(l)},set:function(s){s!==null?this.setAttribute(l,s):this.removeAttribute(l)}})});const a=Td();for(const l in a)o[l]=o.prototype[l]=a[l];return t.define(e,o),o}const m1=v1()||Td(),{enableCache:V2,disableCache:q2,iconExists:K2,getIcon:Y2,listIcons:J2,addIcon:Q2,addCollection:X2,calculateSize:Z2,buildIcon:e_,loadIcons:t_,loadIcon:r_,addAPIProvider:n_,_api:i_}=m1,Gt=(e,t,r="children")=>e.map(n=>Array.isArray(n[r])?t({...n,[r]:Gt(n[r],t,r)}):t(n)),Pd=(e,t="children")=>{const r=[];return Gt(e,n=>r.push(n),t),r},pa=(e,t,r="children")=>e.map(n=>({...n})).filter(n=>{const i=n[r];if(Array.isArray(i)){const a=pa(i,t,r);n[r]=a?.length?a:void 0}const o={filteredChildren:n[r],isLeaf:!i?.length};return t(n,o)}),Od=e=>/^https?:\/\//.test(e),Nd=e=>/^mailto:/i.test(e.trim()),b1=e=>{if(!e||!e?.startsWith("/"))return!1;const t=i=>i.endsWith("/")?i:`${i}/`,r=t(window.location.pathname),n=t(new URL(e,window.location.origin).pathname);return r.startsWith(n)},Ad=(e=[])=>{const t=e.map((r,n)=>({path:r,index:n})).filter(r=>b1(r.path));return t?.length?t.slice(1).reduce((r,n)=>r.path.length>=n.path.length?r:n,t[0]).index:-1},y1=(e,t={})=>{const{columns:r=1,breakInside:n=!1,groupHeight:i=48,itemHeight:o=24,childrenKey:a="items"}=t,l=e.length,s=e.reduce((m,b)=>m+i+(b[a]?.length||0)*o,0),c=Math.ceil(s/r),u=[[]];let d=0,f=0;const p=c*.2,h=m=>f>c-p&&d<r-1&&f+m>c+p;return e.forEach(m=>{const b=i+(m[a]?.length||0)*o;n&&h(i)&&(d++,f=0,u[d]=[]),!n&&f>0&&(l<=r||h(b))&&(d++,f=0,u[d]=[]),u[d].push({...m,group:!0}),f+=i,m[a]&&m[a].forEach(y=>{n&&h(o)&&(d++,f=0,u[d]=[]),u[d].push({...y,group:!1}),f+=o})}),u};function it({icon:e,size:t=void 0,sx:r={},...n}){const i=[...Array.isArray(r)?r:[r]];t&&i.push({width:t,height:t});const[o,a]=v.useState(!1),[l,s]=v.useState(!0);if(zo(async()=>{s(!0);try{await jo(e),a(!0)}catch{a(!1)}s(!1)},[e]),n.variant||i.push({"&.MuiAvatar-root":{color:"inherit",fontWeight:"bold",backgroundColor:"transparent",borderRadius:0},"&.MuiAvatar-root svg":{width:"100%",height:"100%"}}),Od(e))return g.jsx(gi,{component:"span",...n,src:e,sx:i});const c=t?.6*t+4:0;return l?g.jsx(xe,{icon:"codicon:blank",height:c||void 0}):o?g.jsx(gi,{component:"span",...n,sx:i,children:g.jsx(xe,{icon:e,height:c||void 0})}):e&&typeof e=="string"?(i.push({"&.MuiAvatar-root":{display:"inline-flex",...t&&{fontSize:t-2}}}),g.jsx(gi,{component:"span",...n,sx:i,children:Array.from(e)[0]})):null}function ha(e=["en","zh"]){const{blocklet:t}=Bt();return v.useMemo(()=>{const n=t.environments.find(c=>c.key==="BLOCKLET_APP_LANGUAGES"),i=n?n.value.split(","):e,o=i[0]||"en",a=i.filter(c=>Ue.SUPPORTED_LANGUAGES[c]),l=a.reduce((c,u)=>(c[u]=Ue.SUPPORTED_LANGUAGES[u].nativeName,c),{}),s=a.map(c=>({code:c,name:Ue.SUPPORTED_LANGUAGES[c].nativeName}));return{locales:i,localeMap:l,defaultLocale:o,languages:s}},[t.environments,e])}const x1=e=>e.from!=="team-tmpl";function S1({prevPath:e,nextPath:t,node:r}){if(r.from==="team-tmpl")return!1;const n=e.length,i=t.length;return!!(n===i&&Wp(e.slice(0,n-1),t.slice(0,i-1)))}function Md({treeNode:e}){const{locale:t}=ke(),{blocklet:r}=Bt(),{defaultLocale:n}=ha(),i=r.environments.find(l=>l.key===Ue.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_URL),o=oe(l=>{if(l?.startsWith("/"))try{return new URL(l,i?.value).href}catch{console.error("Failed to parse url",{url:l,origin:i?.value})}return l});function a(){const{title:l,subtitle:s}=e;let c=l,u=s;return Yt(l)&&(c=l[t]||l[n]||l.en),!v.isValidElement(s)&&Yt(s)&&(u=s[t]||s[n]||s.en),g.jsxs(te,{sx:{display:"flex",alignItems:"center"},children:[g.jsx(ye,{variant:"subtitle1",sx:{fontSize:16},children:c}),s&&g.jsx(ye,{variant:"body2",color:"gray",sx:{ml:1.5,lineHeight:1},children:u})]})}return g.jsxs(g.Fragment,{children:[e.icon&&(Fo(o(e.icon))?g.jsx(it,{size:16,style:{marginRight:4},icon:o(e.icon)}):g.jsx(xe,{size:16,style:{marginRight:4},icon:e.icon})),a()]})}Md.propTypes={treeNode:S.object.isRequired};const w1=tt(te)(({theme:e})=>({"& .MuiNodeContent-row":{backgroundColor:e.palette.background.default}}));function Ld({treeData:e,setTreeData:t=()=>{},renderActions:r=()=>{}}){const n=e.map(o=>({...o,expanded:!0})),i={};return typeof window<"u"&&(i.context=window),g.jsx(w1,{children:g.jsx(Jh,{backend:Qh,...i,children:g.jsx(db,{generateNodeProps:o=>{const a=x1(o.node);return{buttons:r({data:o.node,className:"list-item-actions"}),icons:a?g.jsx(xe,{icon:"ic:round-drag-indicator"}):g.jsx(te,{sx:{width:16,height:16}}),title:g.jsx(Md,{treeNode:o.node})}},maxDepth:2,isVirtualized:!1,treeData:n,onChange:t,canDrop:S1,theme:v0})})})}Ld.propTypes={treeData:S.object.isRequired,setTreeData:S.func,renderActions:S.func};var C1=mc();const I1=Qn(C1);function zd({sx:e=null,onAdd:t=()=>{},onChange:r=()=>{},defaultLocale:n="en",locale:i="",locales:o=[],localeMap:a={},onRemoveLocale:l=()=>{}}){const{t:s}=ke(),c=v.useRef(),[u,d]=v.useState(null),f=ur({localeList:[],inputLocale:"",localeError:""}),p=v.useMemo(()=>!!u,[u]),h=v.useMemo(()=>o.includes(i)?i:n,[o,i]),m=v.useMemo(()=>f.localeList.filter(w=>!!a[w]),[f.localeList,a]),b=v.useMemo(()=>Object.keys(Mt(a,[...f.localeList,n])).map(w=>({title:a[w],value:w})),[f.localeList]),y=v.useMemo(()=>`Default (${a[n]||Object.values(a)?.[0]})`,[a]),x=oe(w=>w?w===n||f.localeList.includes(w)?s("navigation.form.localeExists",{value:w}):!0:s("common.requiredErrorText",{name:"Locale"})),_=oe((w="")=>{const R=w?.trim(),I=x(R);return I!==!0?f.localeError=I:f.localeError="",I}),T=oe(()=>{d(null),f.inputLocale="",f.localeError=""}),k=oe(()=>{const w=f.inputLocale?.trim();_(w)===!0&&(T(),f.localeList.push(w),t(w))}),C=oe((w,R)=>{w.preventDefault(),w.stopPropagation(),f.localeList=qc(f.localeList,R),l(R)}),D=oe(w=>{const{value:R}=w.target;_(R),f.inputLocale=R});return v.useEffect(()=>{f.localeList=[...o]},[o,f]),Uh("enter",()=>{setTimeout(()=>{k()})},{target:c}),g.jsxs(g.Fragment,{children:[g.jsxs(sg,{sx:e,value:h,onChange:(w,R)=>{r(R)},children:[g.jsx(rl,{label:y,value:n}),m.map(w=>g.jsx(rl,{sx:{position:"relative"},label:g.jsxs(g.Fragment,{children:[a[w],g.jsx(Ge,{size:"small",color:"inherit",sx:{position:"absolute",top:0,right:0},onClick:R=>{C(R,w)},children:g.jsx(xe,{icon:"mdi:close",height:14})})]}),value:w},w)),g.jsx(Ge,{color:"primary",disableFocusRipple:!0,sx:{width:"48px"},onClick:w=>{d(w.currentTarget)},children:g.jsx(xe,{icon:"mdi:plus"})})]}),g.jsx(Qi,{open:p,anchorEl:u,onClose:T,anchorOrigin:{vertical:"bottom",horizontal:"left"},children:g.jsxs(te,{sx:{p:2,width:"270px"},children:[g.jsx(ye,{variant:"subtitle2",children:s("navigation.form.localePlaceholder")}),g.jsx(te,{sx:{mt:1},children:g.jsx(ro,{required:!0,fullWidth:!0,label:"Locale",value:f.inputLocale,options:b,onChange:D,error:!!f.localeError,helperText:f.localeError||" "})}),g.jsx(te,{sx:{display:"flex",justifyContent:"flex-end"},children:g.jsx(ir,{size:"small",variant:"contained",onClick:k,children:s("common.confirm")})})]})})]})}zd.propTypes={sx:S.any,onAdd:S.func,onChange:S.func,onRemoveLocale:S.func,defaultLocale:S.string,locale:S.string,localeMap:S.object,locales:S.array};const ga=["https://api.iconify.design","https://api.unisvg.com","https://api.simplesvg.com"];async function jd(e,t,r=5e3){for(const n of ga){const i=Oe(n,e);try{return await dg.get(i,{params:t,timeout:r})}catch(o){console.warn(`Failed to fetch from ${i}:`,o)}}throw new Error(`All icon API endpoints ${e} failed`)}async function R1({keyword:e,limit:t=999,start:r=0,palette:n=!1}){let i="",o=e;e.includes(":")&&([i,o]=e.split(":"));const{data:a}=await jd("/search",{query:`${o} palette=${n}`||e,start:r,limit:t,...i&&{prefix:i}});return a}const mn=new Map;async function _1(e){if(mn.has(e))return mn.get(e);const t=(async()=>{const{data:r}=await jd("/collection",{prefix:e}),n=new Set;return r.uncategorized?.forEach(i=>n.add(`${e}:${i}`)),Object.values(r.categories??{}).forEach(i=>{i.forEach(o=>n.add(`${e}:${o}`))}),Array.from(n)})();mn.set(e,t);try{return await t}catch(r){throw mn.delete(e),r}}function D1(e){return Oe(ga[0],`${e}.svg`)}function T1(e){try{const t=new URL(e);for(const r of ga)if(t.origin===r)return Hp(t.pathname).replace(".svg","");return""}catch{return""}}function k1(e){let t=!0,r=e;return e&&(e.startsWith("/")?(t=!1,r=""):Fo(e)&&(r=T1(e))),{isIconId:t,iconId:r}}const E1=v.lazy(()=>Yp(()=>import("./index-PZ2fx_h4.js").then(e=>e.i),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url).then(e=>({default:e.Uploader}))),Rs=je(it)(({theme:e})=>({"&&":{color:e.palette.text.primary},"> img":{filter:e.palette.mode==="dark"?"invert(1)":"none"}}));function Fd({icon:e,...t}){const[r,n]=v.useState(!1);return zo(async()=>{n(!1),await jo(e),n(!0)},[e]),e?r?g.jsx(xe,{icon:e,...t}):g.jsx(xe,{color:"#f06f6e",icon:"ic:baseline-error",...t}):g.jsx(xe,{icon:"material-symbols-light:select-rounded",...t})}Fd.propTypes={icon:S.string.isRequired};function Io({value:e,helperText:t,label:r,placeholder:n,methods:i=["select"],iconifyShape:o="id",...a}){const{getSessionInHeader:l,prefix:s,inService:c}=Sc(),{blocklet:u}=Bt(),d=Xr(X=>X.breakpoints.down("md")),f=u.environments.find(X=>X.key===Ue.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_URL),p=l(),h=v.useRef(null),m=v.useRef(null),b=v.useRef(null),{t:y,locale:x}=ke(),{isIconId:_,iconId:T}=k1(e),[k,C]=v.useState(null),{onChange:D,onBlur:w,sx:R,...I}=a,P=i.includes("upload"),L=i.includes("select"),N=Oe(s,"/api/media/upload",u.appPid),G=ur({showPopover:!1}),z=oe(X=>{if(X?.startsWith("/"))try{const U=c?window.location.origin:f?.value;return new URL(X,U).href}catch{console.error("Failed to resolve url: ",X)}return X},[f?.value,c]),F=oe(async X=>await h.current.getUploader().uploadFile(X)),W=oe(()=>{C(null)}),H=oe(()=>{L&&C(b.current)}),J=oe(async X=>{try{if(o==="url"){const U=D1(X),re=await Up(U,{width:128,height:128}),ne=await Vp(re,X);await F(ne)}else D?.(X)}catch(U){console.error("Failed to pick icon:",U)}W()}),Z=oe(X=>{X.stopPropagation(),m.current.open(),W()}),Y=oe(X=>{a?.onChange?.(X.data.url)});return g.jsxs(g.Fragment,{children:[g.jsx(Jt,{helperText:t,value:e,sx:{"& .MuiInputBase-root,.MuiInputBase-input":{cursor:"pointer"},...R},onClick:L?H:void 0,...I,label:r,placeholder:n,slotProps:{input:{ref:b,readOnly:!0,startAdornment:g.jsx(Xi,{position:"start",sx:{cursor:"auto"},onMouseEnter:()=>{e&&(G.showPopover=!0)},onMouseLeave:()=>{G.showPopover=!1},children:g.jsx(Rs,{size:28,icon:z(e),alt:"Error"})}),endAdornment:g.jsxs(Xi,{position:"end",children:[g.jsx(Ge,{sx:{visibility:e?"visible":"hidden"},onClick:X=>{X.stopPropagation(),D("")},children:g.jsx(Hc,{style:{fontSize:18}})}),P&&g.jsx(qp,{title:y("common.upload"),children:g.jsx(Ge,{disableFocusRipple:!1,disableRipple:!1,onClick:Z,children:g.jsx(Fd,{icon:"material-symbols:upload-file-outline-rounded",width:24,height:24})})}),L&&g.jsx(te,{component:ug,sx:{mr:"-6px",fontSize:24,transform:k?"rotate(180deg)":"rotate(0deg)",transition:"transform 200ms",pointerEvents:"none"}})]})}}}),L&&g.jsx(Qi,{open:!!k,anchorEl:k,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},slotProps:{paper:{style:{...d&&{width:"100vw",height:"100vh",boxShadow:"none"}}}},onClose:W,children:g.jsx(Bd,{label:r,placeholder:n,value:_?T:"",sx:{width:b.current?.offsetWidth??"auto"},onPick:J,onClose:W})}),g.jsx(Ro,{ref:h,locale:x,apiPath:N,headers:p,imageEditorProps:{},onUploadFinish:Y}),g.jsx(Ro,{ref:m,locale:x,apiPath:N,headers:p,onUploadFinish:Y}),g.jsx(Qi,{sx:{pointerEvents:"none"},open:G.showPopover,anchorEl:b.current,anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"center"},onClose:()=>{G.showPopover=!1},disableRestoreFocus:!0,children:g.jsx(Rs,{size:120,icon:z(e),alt:"Error"})})]})}Io.propTypes={value:S.string.isRequired,label:S.any,placeholder:S.any,helperText:S.string,methods:S.arrayOf(S.oneOf(["select","upload"])),iconifyShape:S.oneOf(["id","url"])};function Bd({label:e,placeholder:t,value:r="",sx:n,onPick:i,onClose:o,...a}){const[l,s]=v.useState([]),[c,u]=v.useState(!0),[d,f]=v.useState(r),[p,h]=v.useState(!1),m=v.useRef(null),b=v.useRef([]),y=v.useRef(1),x=v.useRef(!0),{t:_}=ke(),T=96,k=oe(()=>{!x.current||c||(u(!0),setTimeout(()=>{const w=y.current+1,R=(w-1)*T,I=w*T,P=b.current.slice(R,I);s(L=>[...L,...P]),y.current=w,x.current=I<b.current.length,u(!1)},300))}),C=oe(w=>{b.current=w,y.current=1,x.current=w.length>T;const R=w.slice(0,T);s(R),h(w.length===0),x.current&&k()}),{run:D}=wc(async w=>{if(w){u(!0);try{const{icons:R}=await R1({keyword:w});C(R)}catch(R){console.error("Failed to search icons:",R),h(!0)}finally{u(!1)}}},{wait:300,trailing:!0});return v.useEffect(()=>{const w=()=>{if(!m.current)return;const{scrollTop:I,scrollHeight:P,clientHeight:L}=m.current;(I+L>=P-150||P<=L)&&k()},R=m.current;return R&&(R.addEventListener("scroll",w),w()),()=>{R&&R.removeEventListener("scroll",w)}},[k,c]),zo(async()=>{if(d)D(d);else{u(!0);try{const w=await _1("mdi-light");C(w)}catch(w){console.error("Failed to fetch default icons:",w),h(!0)}finally{u(!1)}}},[d,D,C]),g.jsxs(P1,{ref:m,sx:n,...a,children:[g.jsxs(te,{className:"icon-picker-input",children:[g.jsx(Jt,{label:_("navigation.form.searchIcons"),placeholder:_("navigation.form.searchIconsPlaceholder"),size:"small",value:d,sx:{flexGrow:1},autoFocus:!0,onChange:w=>f(w.target.value),slotProps:{input:{endAdornment:g.jsx(Ge,{sx:{visibility:d?"visible":"hidden"},onClick:()=>f(""),children:g.jsx(Hc,{style:{fontSize:18}})})}}}),g.jsx(ir,{onClick:o,children:_("common.cancel")})]}),g.jsxs(te,{children:[l.length>0&&g.jsx(te,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(32px, auto))",gridAutoRows:"min-content",alignItems:"center",gap:1,p:2},children:l.map(w=>g.jsx(O1,{$active:r===w,onClick:()=>{i(w)},children:g.jsx(xe,{icon:w,width:"32",height:"32"})},w))}),p&&g.jsx(te,{sx:{p:2,display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},children:g.jsx(te,{sx:{textAlign:"center"},children:"No matching results"})}),c&&g.jsx(te,{sx:{p:2,display:"flex",justifyContent:"center"},children:g.jsx(Kp,{size:20})})]})]})}Bd.propTypes={label:S.any,placeholder:S.any,value:S.string,sx:S.object,onPick:S.func.isRequired,onClose:S.func.isRequired};const P1=je(te)(({theme:e})=>({minWidth:"100%",height:"100%",padding:0,overflow:"auto",[e.breakpoints.up("md")]:{minWidth:"480px",maxHeight:"400px",padding:e.spacing(1),paddingTop:0,".icon-picker-input":{paddingTop:e.spacing(2),paddingBottom:e.spacing(1),paddingLeft:e.spacing(2),paddingRight:e.spacing(2)}},".icon-picker-input":{position:"sticky",display:"flex",alignItems:"center",gap:e.spacing(1),top:0,zIndex:1,backgroundColor:e.palette.background.paper}})),O1=je(Ge,{shouldForwardProp:e=>e!=="$active"})(({$active:e,theme:t})=>({boxSizing:"content-box",backgroundColor:e?t.palette.action.hover:"transparent",borderRadius:4,padding:1,width:32,height:32,"&:hover":{backgroundColor:t.palette.action.hover}}));function Ro({ref:e=null,locale:t,apiPath:r,headers:n,imageEditorProps:i={actions:{revert:!0,rotate:!0,granularRotate:!0,flip:!0,zoomIn:!0,zoomOut:!0,cropSquare:!1,cropWidescreen:!1,cropWidescreenVertical:!1},cropperOptions:{autoCrop:!0,autoCropArea:1,aspectRatio:1,initialAspectRatio:1,croppedCanvasOptions:{minWidth:120,minHeight:120}}},onUploadFinish:o}){return g.jsx(v.Suspense,{children:g.jsx(E1,{locale:t,ref:e,popup:!0,installerProps:{disabled:!0},plugins:["ImageEditor"],onUploadFinish:a=>o?.(a),coreProps:{restrictions:{allowedFileTypes:["image/*"],maxFileSize:1024*1024*1,maxNumberOfFiles:1}},dashboardProps:{autoOpen:"imageEditor"},imageEditorProps:i,apiPathProps:{uploader:r,disableMediaKitPrefix:!0,disableAutoPrefix:!0,disableMediaKitStatus:!0},tusProps:{headers:n}})})}Ro.propTypes={ref:S.any,locale:S.string,apiPath:S.string,headers:S.object,imageEditorProps:S.object,onUploadFinish:S.func};const _s=24,Ds=48,Ts="add";S.string.isRequired;function va({ref:e=null,section:t="",components:r=[],rawNavigations:n=[],onChange:i=()=>{},...o}){const{roles:a}=Wc(),{t:l,locale:s}=ke(),{localeMap:c,defaultLocale:u}=ha(),d=oe(()=>({title:{[u]:""},description:{[u]:""},link:{[u]:""}})),f=oe(E=>qc(Array.from(new Set(ht.flatMap(O=>Yt(E[O])?Object.keys(E[O]):[]))),u)),p=v.useRef(()=>{}),h=ur({isRoot:!0,type:Ts,linkDisabled:!1,locale:u,formState:d(),get localeList(){return f(h.formState)}}),{handleSubmit:m,control:b,reset:y,setValue:x,clearErrors:_,formState:{errors:T}}=ag({mode:"onChange",defaultValues:{id:"",title:"",description:"",icon:"",link:"",component:"",parent:"",role:[]}});v.useEffect(()=>{ht.forEach(E=>x(E,h.formState[E][h.locale]))},[x,h.locale]);const k=lg({control:b}),C=k.component,D=k.title,w=k.description,R=k.link,I=k.parent;v.useEffect(()=>{h.formState.title[h.locale]=D},[D]),v.useEffect(()=>{h.formState.description[h.locale]=w},[w]),v.useEffect(()=>{h.formState.link[h.locale]=R},[R]),v.useEffect(()=>{i?.(k)},[k,i]);const P=v.useMemo(()=>n.find(O=>C?r.find(V=>V.name===C).did===O.id:O.id===I),[r,n,C,I]),L=v.useMemo(()=>{if(P?.component){const E=r.find(ee=>ee.name===P.component),{link:O}=E||{},j=Yt(O)?O[h.locale]:O;if(C)return Zi(j);const V=Yt(P.link)?P.link[h.locale]:P.link;return Zi(Oe(j,V||"/"))}return null},[r,h.locale,P,C]),N=v.useMemo(()=>{const{component:E}=P||{},O=r.find(ee=>ee.name===E),{navigation:j=[]}=O||{};return Me.flattenNavigation(j,{transform(ee,ae){return ae?.section&&(ee.section=ee.section||ae.section),ee}}).filter(ee=>ee.link).filter(ee=>Me.isMatchSection(ee.section,t)).map(ee=>({label:ee.link,title:ee.title[s]||ee.title}))},[P,r,t,s]),G=oe(()=>{h.isRoot=!0,h.locale=u,h.type=Ts,h.linkDisabled=!1,h.formState=d(),y(),_(),p.current=()=>{}}),z=oe((E={})=>(h.localeList.length>0&&ht.forEach(O=>{Wg(h.formState[O]).length>1&&(E[O]=h.formState[O])}),Bo(E.role)&&(E.role=void 0),E)),F=oe(({parent:E}={},O=()=>{})=>{h.type="add",h.isRoot=!E,x("parent",E?.id),p.current=j=>{O(j)}}),W=oe((E={},O=()=>{})=>{const{id:j,icon:V,parent:ee,component:ae,role:de=[]}=E;x("id",j),x("icon",V),E.from==="team-tmpl"&&(h.linkDisabled=!0);const be=f(E),Re=(Ie,Ee)=>{Cc(Ie)?h.formState[Ee]=be.reduce((We,Pe)=>(We[Pe]=Ie,We),{[u]:Ie}):Yt(Ie)?h.formState[Ee]=nt(Ie):h.formState[Ee]={}};ht.forEach(Ie=>Re(E[Ie],Ie)),ht.forEach(Ie=>x(Ie,h.formState[Ie][h.locale])),x("component",ae),x("parent",ee),x("role",de||[]),h.type="edit",h.isRoot=!ee,p.current=Ie=>{const Ee=Jp(Ie,["id","title","description","icon","component","link","role"]);O(Ee)}}),H=oe(E=>{const O=E?.trim();if(t!=="bottomNavigation"){if(!O)return l("common.requiredErrorText",{name:l("navigation.form.title")});if(O.length>_s)return l("navigation.form.titleTooLong",{len:_s})}return!0}),J=oe(E=>{const O=E?.trim();return O&&O.length>Ds?l("navigation.form.descriptionTooLong",{len:Ds}):!0}),Z=oe(E=>E?.startsWith("/")?new URL(E,window.location.origin).href:E),Y=oe(async E=>{const O=E?.trim();if(O){if(Fo(Z(O)))return!0;try{await jo(O)}catch{return l("navigation.form.invalidIcon")}}return!0}),X=oe(E=>{const O=E?.trim();return O?Y(O):l("common.requiredErrorText",{name:l("navigation.form.icon")})}),U=oe(E=>{const O=E?.trim();return O?Me.checkLink(O)?!0:l("navigation.form.invalidLink"):h.isRoot?!0:l("common.requiredErrorText",{name:l("navigation.form.link")})}),re=oe(E=>{h.locale=E,ht.forEach(O=>{h.formState[O][E]||(h.formState[O][E]="")}),setTimeout(()=>{_()})}),ne=oe(()=>{const{title:E,link:O}=h.formState;if(t!=="bottomNavigation")for(const j of Object.keys(E)){const V=H(E[j]);if(V!==!0)return V}for(const j of Object.keys(O)){const V=U(O[j]);if(V!==!0)return V}return!0}),ce=oe(E=>{const O=ne();O===!0?p.current(z(E)):Tr.error(O)}),B=oe(E=>{h.locale=u,ht.forEach(O=>{h.formState[O]=Mt(h.formState[O],E)}),i?.(k)}),$=oe(E=>{h.locale=E,ht.forEach(O=>{h.formState[O][E]=h.formState[O][u]}),i?.(k),setTimeout(()=>{_()})});return v.useImperativeHandle(e,()=>({add:F,edit:W,resetImmediate:()=>G(),reset:()=>setTimeout(()=>G(),0),submit:m(ce)}),[F,G,W,m,ce]),g.jsxs(te,{...o,children:[g.jsx(zd,{sx:{mb:1},onAdd:$,onChange:re,onRemoveLocale:B,defaultLocale:u,locale:h.locale,localeMap:c,locales:h.localeList}),g.jsxs("form",{noValidate:!0,autoComplete:"off",children:[t!=="bottomNavigation"&&g.jsx(gt,{name:"title",control:b,rules:{validate:H},render:({field:E})=>g.jsx(Jt,{fullWidth:!0,variant:"outlined",margin:"dense",required:!0,placeholder:l("navigation.form.titlePlaceholder"),label:l("navigation.form.title"),disabled:h.isEdit,error:!!T?.title?.message,helperText:T?.title?.message||" ",...E})}),t==="bottomNavigation"?g.jsx(gt,{name:"icon",control:b,rules:{validate:X},render:({field:E})=>g.jsx(Io,{fullWidth:!0,required:!0,variant:"outlined",margin:"dense",placeholder:l("navigation.form.iconPlaceholder"),label:l("navigation.form.icon"),error:!!T?.icon?.message,helperText:T?.icon?.message,disabled:h.locale!==u,methods:["select"],iconifyShape:"url",...E})}):g.jsx(gt,{name:"icon",control:b,rules:{validate:Y},render:({field:E})=>g.jsx(Io,{fullWidth:!0,variant:"outlined",margin:"dense",placeholder:l("navigation.form.iconPlaceholder"),label:l("navigation.form.icon"),error:!!T?.icon?.message,helperText:T?.icon?.message,disabled:h.locale!==u,...E})}),h.isRoot&&g.jsx(gt,{name:"component",control:b,render:({field:E})=>g.jsx(ro,{fullWidth:!0,margin:"dense",disabled:h.locale!==u&&E.value,label:l("navigation.form.component"),placeholder:l("navigation.form.componentPlaceholder"),options:r.map(O=>({title:O.title,value:O.name,description:O.link})),error:!!T?.component?.message,helperText:T?.component?.message||" ",...Mt(E,"ref")})}),!h.isRoot&&["header"].includes(t)&&g.jsx(gt,{name:"description",control:b,rules:{validate:J},render:({field:E})=>g.jsx(Jt,{fullWidth:!0,variant:"outlined",margin:"dense",placeholder:l("navigation.form.descriptionPlaceholder"),label:l("navigation.form.description"),disabled:h.isEdit,error:!!T?.description?.message,helperText:T?.description?.message||" ",...E})}),g.jsx(gt,{name:"link",control:b,rules:{validate:U},render:({field:E})=>g.jsx(Ic,{fullWidth:!0,margin:"dense",children:g.jsx(fg,{disablePortal:!0,freeSolo:!0,blurOnSelect:!0,autoSelect:!0,fullWidth:!0,disabled:h.linkDisabled,isOptionEqualToValue:O=>O.label,options:N,renderInput:O=>g.jsx(Jt,{...O,placeholder:l("navigation.form.linkPlaceholder"),label:l("navigation.form.link"),error:!!T?.link?.message,helperText:T?.link?.message||"/abc/bcd or /abc or https://arcblock.io",slotProps:{input:{startAdornment:L?g.jsx(Xi,{position:"start",sx:{textDecoration:I1(R||"")?"line-through":""},children:L}):null}}}),renderOption:(O,j)=>g.jsxs(te,{component:"li",...O,children:[j.label,g.jsx(ye,{component:"span",variant:"body2",sx:{marginLeft:1,color:"text.secondary"},children:j.title})]}),margin:"dense",...E,onChange:()=>{},onInputChange:(O,j)=>{E.onChange(j)}})})}),["dashboard","sessionManager"].includes(t)&&g.jsx(gt,{name:"role",control:b,render:({field:E})=>g.jsx(ro,{fullWidth:!0,multiple:!0,margin:"dense",label:l("navigation.form.role"),placeholder:l("navigation.form.rolePlaceholder"),options:a.map(O=>({title:O.title,value:O.name})),error:!!T?.role?.message,helperText:T?.role?.message||" ",...Mt(E,"ref")})}),t==="bottomNavigation"&&g.jsx(gt,{name:"title",control:b,rules:{validate:H},render:({field:E})=>g.jsx(Jt,{fullWidth:!0,variant:"outlined",margin:"dense",placeholder:l("navigation.form.titlePlaceholder"),label:l("navigation.form.title"),disabled:h.isEdit,error:!!T?.title?.message,helperText:T?.title?.message||" ",...E})})]})]})}va.propTypes={ref:S.any,section:S.string,components:S.array,rawNavigations:S.array,onChange:S.func};function ma({ref:e=null,section:t="",components:r=[],rawNavigations:n=[]}){const{t:i}=ke(),[o,{setTrue:a,setFalse:l}]=ig(),[s,c]=v.useState("add"),u=v.useRef(null),d=v.useMemo(()=>{const b={add:i("common.create"),edit:i("common.edit")}[s];return b?`${b} ${i("navigation.navigation")}`:"--"},[i,s]),f=v.useCallback(()=>{l(),u.current?.reset()},[l]),p=v.useCallback((m={},b=()=>{})=>{c("add"),u.current?.add(m,y=>b(f,y)),a()},[a,f]),h=v.useCallback((m={},b=()=>{})=>{c("edit"),u.current?.edit(m,y=>b(f,y)),a()},[a,f]);return v.useImperativeHandle(e,()=>({add:p,edit:h,close:f}),[p,h,f]),g.jsx(Qp,{open:o,title:d,keepMounted:!0,onClose:f,sx:{".MuiDialogContent-root":{pt:0}},actions:g.jsx(Rc,{color:"primary",variant:"contained",onClick:()=>u.current?.submit(),children:i("common.confirm")}),children:g.jsx(va,{ref:u,section:t,components:r,rawNavigations:n})})}ma.propTypes={ref:S.any,section:S.string,components:S.array,rawNavigations:S.array};function $d({className:e="",add:t=()=>{},edit:r=()=>{},toggle:n=()=>{},del:i=()=>{},data:o,section:a=""}){const{t:l}=ke(),s=["yaml","team-tmpl"].includes(o.from),c=v.isValidElement(o.subtitle);function u(m){m.preventDefault(),m.stopPropagation()}const d=v.useCallback(m=>{u(m),t(o)},[t,o]),f=v.useCallback(m=>{u(m),r(o)},[r,o]),p=v.useCallback(m=>{u(m),n(o)},[n,o]),h=v.useCallback(m=>{u(m),i(o)},[i,o]);return g.jsxs("div",{className:e,children:[!o.parent&&["header","footer","dashboard"].includes(a)&&g.jsx("span",{title:l(c?"navigation.action.noAddSub":"navigation.action.addSub"),children:g.jsx(Ge,{size:"small",color:"success",onClick:d,disabled:c,children:g.jsx(xe,{icon:"mdi:plus-box-outline"})})}),g.jsx("span",{title:l(c?"navigation.action.noEdit":"navigation.action.edit"),children:g.jsx(Ge,{size:"small",color:"primary",onClick:f,disabled:c||o.from==="team-tmpl",children:g.jsx(xe,{icon:"mdi:pencil-outline"})})}),g.jsx("span",{title:c?l("navigation.action.noEdit"):o.visible?l("navigation.action.hide"):l("navigation.action.show"),children:g.jsx(Ge,{size:"small",color:"warning",onClick:p,disabled:c,children:o.visible===!1?g.jsx(xe,{icon:"mdi:eye-off-outline"}):g.jsx(xe,{icon:"mdi:eye-outline"})})}),g.jsx("span",{title:l(s&&!c?"navigation.action.noDel":"navigation.action.del"),children:g.jsx(Ge,{disabled:s&&!c,size:"small",color:"error",onClick:h,children:g.jsx(xe,{icon:"mdi:delete"})})})]})}$d.propTypes={data:S.object.isRequired,className:S.string,add:S.func,edit:S.func,toggle:S.func,del:S.func,section:S.string};const En=window?.blocklet?.groupPrefix||window?.blocklet?.prefix||"/",N1=e=>{const t={...e},r=e?.background;return typeof r=="string"?t.background={header:r,footer:r,default:r}:r&&typeof r=="object"&&(t.background={header:r.header||r.default,footer:r.footer||r.default,default:r.default}),t},A1=(e,t="en",r="en")=>{if(typeof e=="string"){if(Od(e)){const i=new URL(e);return i.searchParams.set("locale",t),i.href}if(Nd(e))return e;const n=new URL(e,window.location.origin);return n.searchParams.set("locale",t),n.pathname+n.search}return typeof e=="object"?e[t]||e[r]||e.en:e},rr=({navigation:e,locale:t,defaultLocale:r,section:n="header"})=>{if(!e?.length)return e;const i=(o,a)=>o&&typeof o=="object"?o[a]||o[r]||o.en:o;return Gt(e,o=>({...o,title:i(o.title,t),description:i(o.description,t),link:Wo(o.items?.length?o.link:A1(o.link,t,r),n),_rawLink:o.link}),"items")},M1=e=>Gt(e,t=>t.role?{...t,role:Array.isArray(t.role)?t.role:[t.role]}:t,"items"),L1=e=>{if(!e?.length)return null;const t=M1(e),r={header:[],footer:[],social:[],bottom:[],dashboard:[],sessionManager:[],userCenter:[]};return t.forEach(n=>{n.section?Array.isArray(n.section)?n.section.forEach(i=>{r[i]?.push(n)}):typeof n.section=="string"&&r[n.section]?.push(n):r.header.push(n)}),r},ba=e=>{if(!e)return null;const t={...e};return t.theme=N1(t.theme),t.navigation=L1(z1(t.navigation)),t},z1=(e=[])=>pa(e,(t,r)=>!!t.link||r.filteredChildren?.length,"items"),Gd=(e,t)=>pa(e,(r,n)=>{const i=!r.role||t&&(r.role.includes(t)||r.role.includes("guest"));return n.isLeaf?i:i&&n.filteredChildren?.length},"items"),j1={top:-960,width:960,height:960,body:'<path fill="currentColor" d="M510-600v-210q0-12.75 8.625-21.375T540-840h270q12.75 0 21.375 8.625T840-810v210q0 12.75-8.625 21.375T810-570H540q-12.75 0-21.375-8.625T510-600M120-480v-330q0-12.75 8.625-21.375T150-840h270q12.75 0 21.375 8.625T450-810v330q0 12.75-8.625 21.375T420-450H150q-12.75 0-21.375-8.625T120-480m390 330v-330q0-12.75 8.625-21.375T540-510h270q12.75 0 21.375 8.625T840-480v330q0 12.75-8.625 21.375T810-120H540q-12.75 0-21.375-8.625T510-150m-390 0v-210q0-12.75 8.625-21.375T150-390h270q12.75 0 21.375 8.625T450-360v210q0 12.75-8.625 21.375T420-120H150q-12.75 0-21.375-8.625T120-150m60-360h210v-270H180zm390 330h210v-270H570zm0-450h210v-150H570zM180-180h210v-150H180zm210-150"/>'},F1={width:24,height:24,body:'<path fill="currentColor" d="M15.95 12.3L11.7 8.05q-.15-.15-.212-.325t-.063-.375q0-.2.063-.375t.212-.325l4.25-4.25q.15-.15.325-.212t.375-.063q.2 0 .375.063t.325.212l4.25 4.25q.15.15.213.325t.062.375q0 .2-.063.375t-.212.325l-4.25 4.25q-.15.15-.325.213t-.375.062q-.2 0-.375-.062t-.325-.213ZM3 10V4q0-.425.288-.713T4 3h6q.425 0 .713.288T11 4v6q0 .425-.288.713T10 11H4q-.425 0-.713-.288T3 10Zm10 10v-6q0-.425.288-.713T14 13h6q.425 0 .713.288T21 14v6q0 .425-.288.713T20 21h-6q-.425 0-.713-.288T13 20ZM3 20v-6q0-.425.288-.713T4 13h6q.425 0 .713.288T11 14v6q0 .425-.288.713T10 21H4q-.425 0-.713-.288T3 20ZM5 9h4V5H5v4Zm11.675 1.2L19.5 7.375L16.675 4.55L13.85 7.375l2.825 2.825ZM15 19h4v-4h-4v4ZM5 19h4v-4H5v4ZM9 9Zm4.85-1.625ZM9 15Zm6 0Z"/>'};function B1({session:e,locale:t="zh",size:r=24,popperType:n="click",sx:i,...o}){const a=window?.blocklet||{},l=(a.navigation||[]).filter(p=>p.section==="sessionManager"&&!["/sessionManager"].includes(p.id)).filter(p=>!!(p?.role||[]).includes(e?.user?.role||"guest")).map(p=>{const h=(a?.componentMountPoints||[]).find(m=>p.component===m.name);return{...p,component:h}}),s=et(),c=v.useRef(null),u=ur({open:!1}),d=oe((p=!u.open)=>{u.open=p}),f=n==="hover"?{onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1)}:{onClick:()=>d()};return l.length===0||!e?.user?null:g.jsxs(te,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",...i},...o,...f,children:[g.jsx(Ge,{size:"medium",ref:c,children:g.jsx(xe,{icon:j1,fontSize:r,style:{transform:"scale(1.08)"}})}),g.jsx(Xp,{open:u.open,anchorEl:c.current,transition:!0,placement:"bottom-end",sx:{zIndex:1600},children:({TransitionProps:p})=>g.jsx(Zp,{onClickAway:h=>{h.preventDefault(),h.stopPropagation(),d(!1)},children:g.jsx(_c,{...p,timeout:350,children:g.jsxs(Ar,{variant:"outlined",sx:{borderRadius:1.5,width:350,maxWidth:"90vw",p:2},children:[g.jsx(eh,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, 100px)",gridAutoRows:"minmax(100px, max-content)",justifyContent:"space-between",maxHeight:350,overflowY:"auto",p:0},children:l.map(h=>g.jsx(th,{disablePadding:!0,children:g.jsxs(pg,{href:Ha(h.link,t),sx:{p:1,display:"flex",flexDirection:"column",alignItems:"center",gap:1,width:"100%",height:"100%",borderRadius:1,"&:hover":{backgroundColor:"action.hover"}},children:[h?.component?.did?g.jsx(te,{component:"img",src:`${Dc}/blocklet/logo-bundle/${h.component.did}`,sx:{borderRadius:1,width:50,height:50,objectFit:"contain"},alt:"SessionBlocklet component icon"}):g.jsx(xe,{fontSize:50,icon:h.icon||F1,color:s.palette.text.secondary}),g.jsx(ye,{sx:{fontSize:"12px",color:"text.primary",textAlign:"center",lineHeight:"normal"},children:Ha(h.title,t)})]})},h.id))}),g.jsx(rh,{session:e,children:g.jsx(Rc,{variant:"outlined",fullWidth:!0,href:nh,sx:{mt:1},children:t==="zh"?"管理":"Manage"})})]})})})})]})}const Wd=S.shape({appLogo:S.node,appName:S.string,theme:S.shape({background:S.string}),enableConnect:S.bool,enableLocale:S.bool,navigation:S.arrayOf(S.shape({title:S.oneOfType([S.string,S.object]),link:S.oneOfType([S.string,S.object]),icon:S.string,items:S.arrayOf(S.shape({title:S.oneOfType([S.string,S.object]),link:S.oneOfType([S.string,S.object])}))}))}),Hd=S.shape({showText:S.bool,showRole:S.bool,switchDid:S.bool,switchProfile:S.bool,switchPassport:S.bool,disableLogout:S.bool,onLogin:S.func,onLogout:S.func,onSwitchDid:S.func,onSwitchProfile:S.func,onSwitchPassport:S.func,menu:S.array,menuRender:S.func,dark:S.bool,size:S.number,profileUrl:S.string,renderUserButton:S.func}),$1=["admin","owner"],G1=e=>e.endsWith(".ip.abtnet.io"),W1=e=>e.endsWith(".did.abtnet.io"),H1={en:{guest:{title:"Notice: You are using a temporary domain",description:"You are accessing this site through a temporary domain. For a better experience, please contact the site administrator to configure a custom domain. Using a custom domain not only makes access more convenient but also ensures your access is more secure."},owner:{title:"Enhance Your Website Security",description:"Dear administrator, we recommend configuring your custom domain immediately, which will:",benefits1:"Automatically obtain HTTPS certificates to ensure secure data transmission",benefits2:"Create an exclusive brand image and increase website credibility",benefits3:"Get a shorter, more memorable access address",benefits4:"Provide visitors with a more professional experience",benefits5:"Domain configuration takes just minutes to complete, taking your website to the next level!"},skip:"Remind Me Later",bindDomain:"Configure Domain"},zh:{guest:{title:"温馨提示:当前使用的是临时域名",description:"您正在通过临时域名访问本站点。为了获得更好的访问体验,请联系站点管理员配置自定义域名。使用自定义域名不仅访问更便捷,还能确保您的访问更加安全。"},owner:{title:"提升网站安全性与专业度",description:"尊敬的管理员,我们建议您尽快配置自定义域名,这样可以:",benefits1:"自动获取 HTTPS 证书,确保数据传输安全",benefits2:"打造专属品牌形象,提升网站可信度",benefits3:"获得更简短、易记的访问地址",benefits4:"为访客提供更专业的访问体验",benefits5:"只需几分钟即可完成域名配置,全面提升您的网站品质!"},skip:"稍后提醒",bindDomain:"配置域名"}},U1=1e3*60*60*24*30,ks=".well-known/service/admin/domains";function Ud({locale:e="en",session:t={}}){const r=t?.user,n=Uc(),[i,o]=v.useState(()=>{const f=window.localStorage.getItem("domain-warning-skip");if(!f)return!0;const p=+new Date,h=+new Date(f);return p-h>U1}),a=oe((f,p={})=>Lo(H1,f,e,"en",p)),l=v.useMemo(()=>{try{const{hostname:f}=new URL(window.location.href);return f}catch{return""}},[]),s=v.useMemo(()=>[a("owner.benefits1"),a("owner.benefits2"),a("owner.benefits3"),a("owner.benefits4"),a("owner.benefits5")],[a]),c=v.useCallback(()=>{window.localStorage.setItem("domain-warning-skip",new Date().toISOString()),o(!1)},[]),u=v.useCallback(()=>{const f=Oe(window.location.origin,ks);f.startsWith("http")&&window.open(f,"_blank"),o(!1)},[]),d=r?.role&&$1.includes(r.role);return window.location.href.includes(ks)||n||!G1(l)&&!W1(l)?null:g.jsxs(ih,{open:i,disableEscapeKeyDown:!0,fullWidth:!0,maxWidth:"sm",onClose:()=>o(!1),children:[g.jsxs(oh,{sx:{padding:"20px !important"},children:[g.jsx(ye,{sx:{fontSize:"20px",fontWeight:"500"},children:a(d?"owner.title":"guest.title")}),g.jsx(ye,{sx:{marginTop:"20px",fontSize:"14px",color:"text.secondary"},children:a(d?"owner.description":"guest.description")}),d&&g.jsx(te,{component:"ul",children:s.map(f=>g.jsx(ye,{component:"li",sx:{fontSize:"14px",color:"text.secondary"},children:f},f))})]}),g.jsxs(ah,{sx:{px:"12px !important"},children:[g.jsx(ir,{onClick:c,children:a("skip")}),d&&g.jsx(ir,{variant:"contained",onClick:u,children:a("bindDomain")})]})]})}Ud.propTypes={locale:S.string,session:S.object};var V1=(e,t=!1)=>{const r=lh(["@arcblock/ws",e].join(":"));return{debug:r,warn:r,info:r,trace:t?r:console.error,error:t?r:console.error}},q1=(e,t,r)=>class extends e{constructor(i,o={}){super(i,{transport:r,...o}),this._logger=V1("client",o.silent),this.emitter=new t,this.onOpen(()=>{this._logger.debug("socket open",i)}),this.onClose(()=>{this._logger.debug("socket close",i)}),this.onError(a=>{this._logger.error("socket error",a.error)}),this.onMessage(a=>{this._logger.debug("socket message",a)})}on(i,o,a={}){this.ensureJoinChannel(i,a),this.emitter.on(i,o)}off(i,o){o?this.emitter.off(i,o):this.emitter.removeAllListeners(i),this.ensureLeaveChannel(i)}disconnect(i,o,a){this.emitter.eventNames().forEach(l=>{this.emitter.removeAllListeners(l)}),super.disconnect(i,o,a)}ensureJoinChannel(i,o={}){if(this.emitter.listenerCount(i)>0)return;const a=this.channel(i,o);a.join().receive("ok",l=>{this._logger.debug("join success",{topic:i,message:l})}).receive("error",l=>{this._logger.error("join error",{topic:i,error:l})}).receive("timeout",()=>{this._logger.debug("join timeout",{topic:i})}),a.on(i,({status:l,response:s})=>{l==="ok"?this.emitter.emit(i,s):this._logger.debug("response error",{topic:i,status:l,data:s})})}ensureLeaveChannel(i){if(this.emitter.listenerCount(i)>0)return;const o=this.channels.find(a=>a.topic===i);o&&(this.remove(o),o.leave().receive("ok",a=>{this._logger.debug("leave success",{topic:i,message:a})}).receive("error",a=>{this._logger.error("leave error",{topic:i,err:a})}).receive("timeout",()=>{this._logger.debug("leave timeout",{topic:i})}),o.off(i))}subscribe(i,o={}){let a=this.channels.find(l=>l.topic===i);return a||(a=this.channel(i,o),a.join().receive("ok",l=>{this._logger.debug("join success",{topic:i,message:l})}).receive("error",l=>{this._logger.error("join error",{topic:i,error:l})}).receive("timeout",()=>{this._logger.debug("join timeout",{topic:i})}),a)}unsubscribe(i){this.ensureLeaveChannel(i)}},K1=q1(ch,sh);const Ae={};function Y1(e="admin"){let t="/";!window?.blocklet&&window?.env?.apiPrefix&&(t=window.env.apiPrefix);const r=Oe(t,Dc,e);return new K1(r,{heartbeatIntervalMs:100*1e3})}function J1(e="admin"){return Ae[e]||(Ae[e]=Y1(e)),Ae[e]}const Q1=(e="admin")=>{const t=v.use(Zn),{session:r}=t??{},n=_e(()=>r.user?.did,[r.user]),i=uh(n);return dh(()=>{Object.keys(Ae).forEach(o=>{Ae[o]?.isConnected()&&Ae[o]?.disconnect(),delete Ae[o]})}),n?(i&&i!==n&&Object.keys(Ae).forEach(o=>{Ae[o]&&(Ae[o].isConnected()&&Ae[o].disconnect(),Ae[o].connect())}),!Ae[e]&&r.user&&(Ae[e]=J1(e),Ae[e].connect()),Ae[e]):null},X1={width:24,height:24,body:'<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M3 12a9 9 0 1 0 18 0a9 9 0 1 0-18 0"/><path d="m9 12l2 2l4-4"/></g>'},Z1={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12a9 9 0 1 0 18 0a9 9 0 1 0-18 0m9-3v4m0 3v.01"/>'},ex={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 21a9 9 0 0 0 9-9a9 9 0 0 0-9-9a9 9 0 0 0-9 9a9 9 0 0 0 9 9zM9 8l6 8m0-8l-6 8"/>'};function tx(){const e=et();return[...e.breakpoints.keys].reverse().reduce((t,r)=>{const n=Xr(e.breakpoints.up(r));return!t&&n?r:t},null)||"xs"}const rx=e=>!Bo(e.activity)&&!!e.activity?.type&&!!e.activity?.actor,nx=e=>{if(!e)return null;const{meta:t,target:r}=e;return{metaLink:t?.id,targetLink:r?.id}},ix=async(e,t)=>{try{return await ph().user.getProfileUrl({did:e,locale:t})}catch(r){console.error(r);return}},ox=async(e,t)=>{const{type:r,did:n}=e;return Tc.isSameAddr(r,"did")?await ix(n,t)||An.getLink(e):An.getLink(e)},ax=async(e,t,r=!0)=>{const n=An.toTextList(e);return await Promise.all(n.map(async i=>{if(i instanceof An.Link){if(r){const o=await ox(i,t),{type:a,chainId:l,did:s}=i;return Tc.isSameAddr(a,"dapp")?`<em class="dapp" data-type="${a}" data-chain-id="${l}" data-did="${s}">${i.text}</em>`:o?`<a target="_blank" rel="noopener noreferrer" class="link" href="${o}">${i.text}</a>`:`<em class="common" data-type="${a}" data-chain-id="${l}" data-did="${s}">${i.text}</em>`}return i.text}return i})).then(i=>i.join(""))},lx=e=>fh.sanitize(e,{ALLOWED_ATTR:["href","target","rel","class","id","style"]}),sx={comment:(e,t)=>t&&t>1?g.jsxs(g.Fragment,{children:["left ",t," comments on your ",e]}):g.jsxs(g.Fragment,{children:["commented on your ",e]}),like:e=>g.jsxs(g.Fragment,{children:["liked your ",e]}),follow:()=>g.jsx(g.Fragment,{children:"followed you"}),tips:e=>g.jsxs(g.Fragment,{children:["gave tips to your ",e]}),mention:e=>g.jsxs(g.Fragment,{children:["mentioned you in ",e]}),assign:()=>g.jsx(g.Fragment,{children:"assigned you a task"})};function Kt({user:e,color:t=void 0}){const{palette:r}=et(),n=Yn(Oe(dt,"user"),{did:e.did}),i=t||r.text.primary;return g.jsx(kc,{href:n,color:i,target:"_blank",onClick:o=>{o.customPreventRedirect=!0},sx:{fontWeight:600,textDecoration:"none","&:hover":{cursor:"pointer"}},children:e.fullName||"System"})}Kt.displayName="UserLink";function cx({activity:e,users:t,actors:r,extra:n={},mountPoint:i=""}){const{palette:o}=et(),{type:a,target:l}=e||{},{type:s}=l||{},{linkColor:c=o.text.primary}=n||{},u=_e(()=>{if(!Array.isArray(t))return new Map;const b=new Map;return t.forEach(y=>{y?.did&&!b.has(y.did)&&b.set(y.did,y)}),b},[t]),d=_e(()=>Array.isArray(r)?r.map(b=>b?u.get(b)||{did:b,fullName:"System"}:null).filter(Boolean):[],[r,u]),f=oe(()=>{if(!Array.isArray(d)||d.length===0)return null;if(d.length===1)return g.jsx(Kt,{user:d[0],color:c});const b=d.slice(0,-1),y=d[d.length-1];if(d.length===2)return g.jsxs(g.Fragment,{children:[g.jsx(Kt,{user:b[0],color:c})," and ",g.jsx(Kt,{user:y,color:c})]});const x=d.length>3,_=x?d.slice(0,2):b;return g.jsxs(g.Fragment,{children:[_.map((T,k)=>g.jsxs(Q.Fragment,{children:[g.jsx(Kt,{user:T,color:c}),k<_.length-1?", ":""]},T.did)),x?`, and ${d.length-2} others`:g.jsxs(g.Fragment,{children:[", and ",g.jsx(Kt,{user:y,color:c})]})]})}),p=oe(()=>{const b=a?sx[a]:null;return b?b(s,t.length):null}),h=_e(()=>{const b=f(),y=p();return!b||!y?null:g.jsxs(g.Fragment,{children:[b," ",y]})},[a,s,d,f,p]),m=_e(()=>{if(!e)return null;const b=nx(e);return b?.targetLink?Oe(i,b.targetLink):null},[e,i]);return!a||Bo(l)?null:g.jsxs(g.Fragment,{children:[h," ",m&&g.jsx(kc,{href:m,color:c,target:"_blank",sx:{textDecoration:"none"},onClick:b=>{b.customPreventRedirect=!0},children:l.name})]})}const ux={normal:Ua,success:X1,info:Ua,warning:Z1,error:ex},dx=dr(mh)`
65
+ `}},t.insertRules=function(n,i){for(var o=0;o<n.index.length;o++)this.insertRule(n.index[o],o,i)},t.insertRule=function(n,i,o){if(o===void 0&&(o=this.element.sheet),n.rules){var a=n,l=o;if(n.type==="conditional"||n.type==="keyframes"){var s=rs(o,i);if(l=ts(o,a.toString({children:!1}),s),l===!1)return!1;this.refCssRule(n,s,l)}return this.insertRules(a.rules,l),l}var c=n.toString();if(!c)return!1;var u=rs(o,i),d=ts(o,c,u);return d===!1?!1:(this.hasInsertedRules=!0,this.refCssRule(n,u,d),d)},t.refCssRule=function(n,i,o){n.renderable=o,n.options.parent instanceof Ku&&this.cssRules.splice(i,0,o)},t.deleteRule=function(n){var i=this.element.sheet,o=this.indexOf(n);return o===-1?!1:(i.deleteRule(o),this.cssRules.splice(o,1),!0)},t.indexOf=function(n){return this.cssRules.indexOf(n)},t.replaceRule=function(n,i){var o=this.indexOf(n);return o===-1?!1:(this.element.sheet.deleteRule(o),this.cssRules.splice(o,1),this.insertRule(i,o))},t.getRules=function(){return this.element.sheet.cssRules},e})(),Kb=0,Yb=(function(){function e(r){this.id=Kb++,this.version="10.10.0",this.plugins=new Mb,this.options={id:{minify:!1},createGenerateId:es,Renderer:nn?qb:null,plugins:[]},this.generateId=es({minify:!1});for(var n=0;n<Ql.length;n++)this.plugins.use(Ql[n],{queue:"internal"});this.setup(r)}var t=e.prototype;return t.setup=function(n){return n===void 0&&(n={}),n.createGenerateId&&(this.options.createGenerateId=n.createGenerateId),n.id&&(this.options.id=q({},this.options.id,n.id)),(n.createGenerateId||n.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),n.insertionPoint!=null&&(this.options.insertionPoint=n.insertionPoint),"Renderer"in n&&(this.options.Renderer=n.Renderer),n.plugins&&this.use.apply(this,n.plugins),this},t.createStyleSheet=function(n,i){i===void 0&&(i={});var o=i,a=o.index;typeof a!="number"&&(a=Lr.index===0?0:Lr.index+1);var l=new Ku(n,q({},i,{jss:this,generateId:i.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:a}));return this.plugins.onProcessSheet(l),l},t.removeStyleSheet=function(n){return n.detach(),Lr.remove(n),this},t.createRule=function(n,i,o){if(i===void 0&&(i={}),o===void 0&&(o={}),typeof n=="object")return this.createRule(void 0,n,i);var a=q({},o,{name:n,jss:this,Renderer:this.options.Renderer});a.generateId||(a.generateId=this.generateId),a.classes||(a.classes={}),a.keyframes||(a.keyframes={});var l=ia(n,i,a);return l&&this.plugins.onProcessRule(l),l},t.use=function(){for(var n=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return o.forEach(function(l){n.plugins.use(l)}),this},e})(),Qu=function(t){return new Yb(t)},aa=typeof CSS=="object"&&CSS!=null&&"number"in CSS;function Xu(e){var t=null;for(var r in e){var n=e[r],i=typeof n;if(i==="function")t||(t={}),t[r]=n;else if(i==="object"&&n!==null&&!Array.isArray(n)){var o=Xu(n);o&&(t||(t={}),t[r]=o)}}return t}Qu();function _i(e){return e&&Gc(e)==="object"&&e.constructor===Object}function Zu(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{clone:!0},n=r.clone?q({},e):e;return _i(e)&&_i(t)&&Object.keys(t).forEach(function(i){i!=="__proto__"&&(_i(t[i])&&i in e?n[i]=Zu(e[i],t[i],r):n[i]=t[i])}),n}function ed(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.baseClasses,r=e.newClasses;if(e.Component,!r)return t;var n=q({},t);return Object.keys(r).forEach(function(i){r[i]&&(n[i]="".concat(t[i]," ").concat(r[i]))}),n}var er={set:function(t,r,n,i){var o=t.get(r);o||(o=new Map,t.set(r,o)),o.set(n,i)},get:function(t,r,n){var i=t.get(r);return i?i.get(n):void 0},delete:function(t,r,n){var i=t.get(r);i.delete(n)}},Jb=Q.createContext(null);function Qb(){var e=Q.useContext(Jb);return e}var Xb=typeof Symbol=="function"&&Symbol.for;const Zb=Xb?Symbol.for("mui.nested"):"__THEME_NESTED__";var ey=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function ty(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.disableGlobal,r=t===void 0?!1:t,n=e.productionPrefix,i=n===void 0?"jss":n,o=e.seed,a=o===void 0?"":o,l=a===""?"":"".concat(a,"-"),s=0,c=function(){return s+=1,s};return function(u,d){var f=d.options.name;if(f&&f.indexOf("Mui")===0&&!d.options.link&&!r){if(ey.indexOf(u.key)!==-1)return"Mui-".concat(u.key);var p="".concat(l).concat(f,"-").concat(u.key);return!d.options.theme[Zb]||a!==""?p:"".concat(p,"-").concat(c())}return"".concat(l).concat(i).concat(c())}}var td=Date.now(),Di="fnValues"+td,Ti="fnStyle"+ ++td,ry=function(){return{onCreateRule:function(r,n,i){if(typeof n!="function")return null;var o=ia(r,{},i);return o[Ti]=n,o},onProcessStyle:function(r,n){if(Di in n||Ti in n)return r;var i={};for(var o in r){var a=r[o];typeof a=="function"&&(delete r[o],i[o]=a)}return n[Di]=i,r},onUpdate:function(r,n,i,o){var a=n,l=a[Ti];l&&(a.style=l(r)||{});var s=a[Di];if(s)for(var c in s)a.prop(c,s[c](r),o)}}},wt="@global",po="@global ",ny=(function(){function e(r,n,i){this.type="global",this.at=wt,this.isProcessed=!1,this.key=r,this.options=i,this.rules=new ii(q({},i,{parent:this}));for(var o in n)this.rules.add(o,n[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(n){return this.rules.get(n)},t.addRule=function(n,i,o){var a=this.rules.add(n,i,o);return a&&this.options.jss.plugins.onProcessRule(a),a},t.replaceRule=function(n,i,o){var a=this.rules.replace(n,i,o);return a&&this.options.jss.plugins.onProcessRule(a),a},t.indexOf=function(n){return this.rules.indexOf(n)},t.toString=function(n){return this.rules.toString(n)},e})(),iy=(function(){function e(r,n,i){this.type="global",this.at=wt,this.isProcessed=!1,this.key=r,this.options=i;var o=r.substr(po.length);this.rule=i.jss.createRule(o,n,q({},i,{parent:this}))}var t=e.prototype;return t.toString=function(n){return this.rule?this.rule.toString(n):""},e})(),oy=/\s*,\s*/g;function rd(e,t){for(var r=e.split(oy),n="",i=0;i<r.length;i++)n+=t+" "+r[i].trim(),r[i+1]&&(n+=", ");return n}function ay(e,t){var r=e.options,n=e.style,i=n?n[wt]:null;if(i){for(var o in i)t.addRule(o,i[o],q({},r,{selector:rd(o,e.selector)}));delete n[wt]}}function ly(e,t){var r=e.options,n=e.style;for(var i in n)if(!(i[0]!=="@"||i.substr(0,wt.length)!==wt)){var o=rd(i.substr(wt.length),e.selector);t.addRule(o,n[i],q({},r,{selector:o})),delete n[i]}}function sy(){function e(r,n,i){if(!r)return null;if(r===wt)return new ny(r,n,i);if(r[0]==="@"&&r.substr(0,po.length)===po)return new iy(r,n,i);var o=i.parent;return o&&(o.type==="global"||o.options.parent&&o.options.parent.type==="global")&&(i.scoped=!1),!i.selector&&i.scoped===!1&&(i.selector=r),null}function t(r,n){r.type!=="style"||!n||(ay(r,n),ly(r,n))}return{onCreateRule:e,onProcessRule:t}}var ns=/\s*,\s*/g,cy=/&/g,uy=/\$([\w-]+)/g;function dy(){function e(i,o){return function(a,l){var s=i.getRule(l)||o&&o.getRule(l);return s?s.selector:l}}function t(i,o){for(var a=o.split(ns),l=i.split(ns),s="",c=0;c<a.length;c++)for(var u=a[c],d=0;d<l.length;d++){var f=l[d];s&&(s+=", "),s+=f.indexOf("&")!==-1?f.replace(cy,u):u+" "+f}return s}function r(i,o,a){if(a)return q({},a,{index:a.index+1});var l=i.options.nestingLevel;l=l===void 0?1:l+1;var s=q({},i.options,{nestingLevel:l,index:o.indexOf(i)+1});return delete s.name,s}function n(i,o,a){if(o.type!=="style")return i;var l=o,s=l.options.parent,c,u;for(var d in i){var f=d.indexOf("&")!==-1,p=d[0]==="@";if(!(!f&&!p)){if(c=r(l,s,c),f){var h=t(d,l.selector);u||(u=e(s,a)),h=h.replace(uy,u);var m=l.key+"-"+d;"replaceRule"in s?s.replaceRule(m,i[d],q({},c,{selector:h})):s.addRule(m,i[d],q({},c,{selector:h}))}else p&&s.addRule(d,{},c).addRule(l.key,i[d],{selector:l.selector});delete i[d]}}return i}return{onProcessStyle:n}}var fy=/[A-Z]/g,py=/^ms-/,ki={};function hy(e){return"-"+e.toLowerCase()}function nd(e){if(ki.hasOwnProperty(e))return ki[e];var t=e.replace(fy,hy);return ki[e]=py.test(t)?"-"+t:t}function jn(e){var t={};for(var r in e){var n=r.indexOf("--")===0?r:nd(r);t[n]=e[r]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(jn):t.fallbacks=jn(e.fallbacks)),t}function gy(){function e(r){if(Array.isArray(r)){for(var n=0;n<r.length;n++)r[n]=jn(r[n]);return r}return jn(r)}function t(r,n,i){if(n.indexOf("--")===0)return r;var o=nd(n);return n===o?r:(i.prop(o,r),null)}return{onProcessStyle:e,onChangeValue:t}}var A=aa&&CSS?CSS.px:"px",gn=aa&&CSS?CSS.ms:"ms",Ut=aa&&CSS?CSS.percent:"%",vy={"animation-delay":gn,"animation-duration":gn,"background-position":A,"background-position-x":A,"background-position-y":A,"background-size":A,border:A,"border-bottom":A,"border-bottom-left-radius":A,"border-bottom-right-radius":A,"border-bottom-width":A,"border-left":A,"border-left-width":A,"border-radius":A,"border-right":A,"border-right-width":A,"border-top":A,"border-top-left-radius":A,"border-top-right-radius":A,"border-top-width":A,"border-width":A,"border-block":A,"border-block-end":A,"border-block-end-width":A,"border-block-start":A,"border-block-start-width":A,"border-block-width":A,"border-inline":A,"border-inline-end":A,"border-inline-end-width":A,"border-inline-start":A,"border-inline-start-width":A,"border-inline-width":A,"border-start-start-radius":A,"border-start-end-radius":A,"border-end-start-radius":A,"border-end-end-radius":A,margin:A,"margin-bottom":A,"margin-left":A,"margin-right":A,"margin-top":A,"margin-block":A,"margin-block-end":A,"margin-block-start":A,"margin-inline":A,"margin-inline-end":A,"margin-inline-start":A,padding:A,"padding-bottom":A,"padding-left":A,"padding-right":A,"padding-top":A,"padding-block":A,"padding-block-end":A,"padding-block-start":A,"padding-inline":A,"padding-inline-end":A,"padding-inline-start":A,"mask-position-x":A,"mask-position-y":A,"mask-size":A,height:A,width:A,"min-height":A,"max-height":A,"min-width":A,"max-width":A,bottom:A,left:A,top:A,right:A,inset:A,"inset-block":A,"inset-block-end":A,"inset-block-start":A,"inset-inline":A,"inset-inline-end":A,"inset-inline-start":A,"box-shadow":A,"text-shadow":A,"column-gap":A,"column-rule":A,"column-rule-width":A,"column-width":A,"font-size":A,"font-size-delta":A,"letter-spacing":A,"text-decoration-thickness":A,"text-indent":A,"text-stroke":A,"text-stroke-width":A,"word-spacing":A,motion:A,"motion-offset":A,outline:A,"outline-offset":A,"outline-width":A,perspective:A,"perspective-origin-x":Ut,"perspective-origin-y":Ut,"transform-origin":Ut,"transform-origin-x":Ut,"transform-origin-y":Ut,"transform-origin-z":Ut,"transition-delay":gn,"transition-duration":gn,"vertical-align":A,"flex-basis":A,"shape-margin":A,size:A,gap:A,grid:A,"grid-gap":A,"row-gap":A,"grid-row-gap":A,"grid-column-gap":A,"grid-template-rows":A,"grid-template-columns":A,"grid-auto-rows":A,"grid-auto-columns":A,"box-shadow-x":A,"box-shadow-y":A,"box-shadow-blur":A,"box-shadow-spread":A,"font-line-height":A,"text-shadow-x":A,"text-shadow-y":A,"text-shadow-blur":A};function id(e){var t=/(-[a-z])/g,r=function(a){return a[1].toUpperCase()},n={};for(var i in e)n[i]=e[i],n[i.replace(t,r)]=e[i];return n}var my=id(vy);function zr(e,t,r){if(t==null)return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=zr(e,t[n],r);else if(typeof t=="object")if(e==="fallbacks")for(var i in t)t[i]=zr(i,t[i],r);else for(var o in t)t[o]=zr(e+"-"+o,t[o],r);else if(typeof t=="number"&&isNaN(t)===!1){var a=r[e]||my[e];return a&&!(t===0&&a===A)?typeof a=="function"?a(t).toString():""+t+a:t.toString()}return t}function by(e){e===void 0&&(e={});var t=id(e);function r(i,o){if(o.type!=="style")return i;for(var a in i)i[a]=zr(a,i[a],t);return i}function n(i,o){return zr(o,i,t)}return{onProcessStyle:r,onChangeValue:n}}var Pr="",ho="",od="",ad="",yy=nn&&"ontouchstart"in document.documentElement;if(nn){var Ei={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},xy=document.createElement("p"),Pi=xy.style,Sy="Transform";for(var Oi in Ei)if(Oi+Sy in Pi){Pr=Oi,ho=Ei[Oi];break}Pr==="Webkit"&&"msHyphens"in Pi&&(Pr="ms",ho=Ei.ms,ad="edge"),Pr==="Webkit"&&"-apple-trailing-word"in Pi&&(od="apple")}var le={js:Pr,css:ho,vendor:od,browser:ad,isTouch:yy};function wy(e){return e[1]==="-"||le.js==="ms"?e:"@"+le.css+"keyframes"+e.substr(10)}var Cy={noPrefill:["appearance"],supportedProperty:function(t){return t!=="appearance"?!1:le.js==="ms"?"-webkit-"+t:le.css+t}},Iy={noPrefill:["color-adjust"],supportedProperty:function(t){return t!=="color-adjust"?!1:le.js==="Webkit"?le.css+"print-"+t:t}},Ry=/[-\s]+(.)?/g;function _y(e,t){return t?t.toUpperCase():""}function la(e){return e.replace(Ry,_y)}function _t(e){return la("-"+e)}var Dy={noPrefill:["mask"],supportedProperty:function(t,r){if(!/^mask/.test(t))return!1;if(le.js==="Webkit"){var n="mask-image";if(la(n)in r)return t;if(le.js+_t(n)in r)return le.css+t}return t}},Ty={noPrefill:["text-orientation"],supportedProperty:function(t){return t!=="text-orientation"?!1:le.vendor==="apple"&&!le.isTouch?le.css+t:t}},ky={noPrefill:["transform"],supportedProperty:function(t,r,n){return t!=="transform"?!1:n.transform?t:le.css+t}},Ey={noPrefill:["transition"],supportedProperty:function(t,r,n){return t!=="transition"?!1:n.transition?t:le.css+t}},Py={noPrefill:["writing-mode"],supportedProperty:function(t){return t!=="writing-mode"?!1:le.js==="Webkit"||le.js==="ms"&&le.browser!=="edge"?le.css+t:t}},Oy={noPrefill:["user-select"],supportedProperty:function(t){return t!=="user-select"?!1:le.js==="Moz"||le.js==="ms"||le.vendor==="apple"?le.css+t:t}},Ny={supportedProperty:function(t,r){if(!/^break-/.test(t))return!1;if(le.js==="Webkit"){var n="WebkitColumn"+_t(t);return n in r?le.css+"column-"+t:!1}if(le.js==="Moz"){var i="page"+_t(t);return i in r?"page-"+t:!1}return!1}},My={supportedProperty:function(t,r){if(!/^(border|margin|padding)-inline/.test(t))return!1;if(le.js==="Moz")return t;var n=t.replace("-inline","");return le.js+_t(n)in r?le.css+n:!1}},Ay={supportedProperty:function(t,r){return la(t)in r?t:!1}},Ly={supportedProperty:function(t,r){var n=_t(t);return t[0]==="-"||t[0]==="-"&&t[1]==="-"?t:le.js+n in r?le.css+t:le.js!=="Webkit"&&"Webkit"+n in r?"-webkit-"+t:!1}},zy={supportedProperty:function(t){return t.substring(0,11)!=="scroll-snap"?!1:le.js==="ms"?""+le.css+t:t}},jy={supportedProperty:function(t){return t!=="overscroll-behavior"?!1:le.js==="ms"?le.css+"scroll-chaining":t}},Fy={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},By={supportedProperty:function(t,r){var n=Fy[t];return n&&le.js+_t(n)in r?le.css+n:!1}},ld={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},$y=Object.keys(ld),Gy=function(t){return le.css+t},Wy={supportedProperty:function(t,r,n){var i=n.multiple;if($y.indexOf(t)>-1){var o=ld[t];if(!Array.isArray(o))return le.js+_t(o)in r?le.css+o:!1;if(!i)return!1;for(var a=0;a<o.length;a++)if(!(le.js+_t(o[0])in r))return!1;return o.map(Gy)}return!1}},sd=[Cy,Iy,Dy,Ty,ky,Ey,Py,Oy,Ny,My,Ay,Ly,zy,jy,By,Wy],is=sd.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),Hy=sd.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,fu(t.noPrefill)),e},[]),Or,Mt={};if(nn){Or=document.createElement("p");var Ni=window.getComputedStyle(document.documentElement,"");for(var Mi in Ni)isNaN(Mi)||(Mt[Ni[Mi]]=Ni[Mi]);Hy.forEach(function(e){return delete Mt[e]})}function go(e,t){if(t===void 0&&(t={}),!Or)return e;if(Mt[e]!=null)return Mt[e];(e==="transition"||e==="transform")&&(t[e]=e in Or.style);for(var r=0;r<is.length&&(Mt[e]=is[r](e,Or.style,t),!Mt[e]);r++);try{Or.style[e]=""}catch{return!1}return Mt[e]}var Vt={},Uy={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Vy=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g,vt;function qy(e,t,r){if(t==="var")return"var";if(t==="all")return"all";if(r==="all")return", all";var n=t?go(t):", "+go(r);return n||t||r}nn&&(vt=document.createElement("p"));function os(e,t){var r=t;if(!vt||e==="content")return t;if(typeof r!="string"||!isNaN(parseInt(r,10)))return r;var n=e+r;if(Vt[n]!=null)return Vt[n];try{vt.style[e]=r}catch{return Vt[n]=!1,!1}if(Uy[e])r=r.replace(Vy,qy);else if(vt.style[e]===""&&(r=le.css+r,r==="-ms-flex"&&(vt.style[e]="-ms-flexbox"),vt.style[e]=r,vt.style[e]===""))return Vt[n]=!1,!1;return vt.style[e]="",Vt[n]=r,Vt[n]}function Ky(){function e(i){if(i.type==="keyframes"){var o=i;o.at=wy(o.at)}}function t(i){for(var o in i){var a=i[o];if(o==="fallbacks"&&Array.isArray(a)){i[o]=a.map(t);continue}var l=!1,s=go(o);s&&s!==o&&(l=!0);var c=!1,u=os(s,zt(a));u&&u!==a&&(c=!0),(l||c)&&(l&&delete i[o],i[s||o]=u||a)}return i}function r(i,o){return o.type!=="style"?i:t(i)}function n(i,o){return os(o,zt(i))||i}return{onProcessRule:e,onProcessStyle:r,onChangeValue:n}}function Yy(){var e=function(r,n){return r.length===n.length?r>n?1:-1:r.length-n.length};return{onProcessStyle:function(r,n){if(n.type!=="style")return r;for(var i={},o=Object.keys(r).sort(e),a=0;a<o.length;a++)i[o[a]]=r[o[a]];return i}}}function Jy(){return{plugins:[ry(),sy(),dy(),gy(),by(),typeof window>"u"?null:Ky(),Yy()]}}var Qy=Qu(Jy()),Xy=ty(),Zy=new Map,e0={disableGeneration:!1,generateClassName:Xy,jss:Qy,sheetsCache:null,sheetsManager:Zy,sheetsRegistry:null},t0=Q.createContext(e0),as=-1e9;function r0(){return as+=1,as}var n0={};function i0(e){var t=typeof e=="function";return{create:function(n,i){var o;try{o=t?e(n):e}catch(s){throw s}if(!i||!n.overrides||!n.overrides[i])return o;var a=n.overrides[i],l=q({},o);return Object.keys(a).forEach(function(s){l[s]=Zu(l[s],a[s])}),l},options:{}}}function o0(e,t,r){var n=e.state,i=e.stylesOptions;if(i.disableGeneration)return t||{};n.cacheClasses||(n.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return n.classes!==n.cacheClasses.lastJSS&&(n.cacheClasses.lastJSS=n.classes,o=!0),t!==n.cacheClasses.lastProp&&(n.cacheClasses.lastProp=t,o=!0),o&&(n.cacheClasses.value=ed({baseClasses:n.cacheClasses.lastJSS,newClasses:t,Component:r})),n.cacheClasses.value}function a0(e,t){var r=e.state,n=e.theme,i=e.stylesOptions,o=e.stylesCreator,a=e.name;if(!i.disableGeneration){var l=er.get(i.sheetsManager,o,n);l||(l={refs:0,staticSheet:null,dynamicStyles:null},er.set(i.sheetsManager,o,n,l));var s=q({},o.options,i,{theme:n,flip:typeof i.flip=="boolean"?i.flip:n.direction==="rtl"});s.generateId=s.serverGenerateClassName||s.generateClassName;var c=i.sheetsRegistry;if(l.refs===0){var u;i.sheetsCache&&(u=er.get(i.sheetsCache,o,n));var d=o.create(n,a);u||(u=i.jss.createStyleSheet(d,q({link:!1},s)),u.attach(),i.sheetsCache&&er.set(i.sheetsCache,o,n,u)),c&&c.add(u),l.staticSheet=u,l.dynamicStyles=Xu(d)}if(l.dynamicStyles){var f=i.jss.createStyleSheet(l.dynamicStyles,q({link:!0},s));f.update(t),f.attach(),r.dynamicSheet=f,r.classes=ed({baseClasses:l.staticSheet.classes,newClasses:f.classes}),c&&c.add(f)}else r.classes=l.staticSheet.classes;l.refs+=1}}function l0(e,t){var r=e.state;r.dynamicSheet&&r.dynamicSheet.update(t)}function s0(e){var t=e.state,r=e.theme,n=e.stylesOptions,i=e.stylesCreator;if(!n.disableGeneration){var o=er.get(n.sheetsManager,i,r);o.refs-=1;var a=n.sheetsRegistry;o.refs===0&&(er.delete(n.sheetsManager,i,r),n.jss.removeStyleSheet(o.staticSheet),a&&a.remove(o.staticSheet)),t.dynamicSheet&&(n.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}function c0(e,t){var r=Q.useRef([]),n,i=Q.useMemo(function(){return{}},t);r.current!==i&&(r.current=i,n=e()),Q.useEffect(function(){return function(){n&&n()}},[i])}function u0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.name,n=t.classNamePrefix,i=t.Component,o=t.defaultTheme,a=o===void 0?n0:o,l=Xt(t,["name","classNamePrefix","Component","defaultTheme"]),s=i0(e),c=r||n||"makeStyles";s.options={index:r0(),name:r,meta:c,classNamePrefix:c};var u=function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p=Qb()||a,h=q({},Q.useContext(t0),l),m=Q.useRef(),b=Q.useRef();c0(function(){var x={name:r,state:{},stylesCreator:s,stylesOptions:h,theme:p};return a0(x,f),b.current=!1,m.current=x,function(){s0(x)}},[p,s]),Q.useEffect(function(){b.current&&l0(m.current,f),b.current=!0});var y=o0(m.current,f.classes,i);return y};return u}const d0=Object.freeze(Object.defineProperty({__proto__:null,default:u0},Symbol.toStringTag,{value:"Module"})),f0=Jn(d0);var p0=Dn.exports,ls;function h0(){return ls||(ls=1,(function(e,t){(function(r,n){e.exports=n()})(typeof self<"u"?self:p0,function(){return(function(r){function n(o){if(i[o])return i[o].exports;var a=i[o]={i:o,l:!1,exports:{}};return r[o].call(a.exports,a,a.exports,n),a.l=!0,a.exports}var i={};return n.m=r,n.c=i,n.d=function(o,a,l){n.o(o,a)||Object.defineProperty(o,a,{configurable:!1,enumerable:!0,get:l})},n.n=function(o){var a=o&&o.__esModule?function(){return o.default}:function(){return o};return n.d(a,"a",a),a},n.o=function(o,a){return Object.prototype.hasOwnProperty.call(o,a)},n.p="",n(n.s=3)})([function(r,n){r.exports=bc()},function(r,n){r.exports=yc()},function(r,n){r.exports=f0},function(r,n,i){function o(u){return u&&u.__esModule?u:{default:u}}Object.defineProperty(n,"__esModule",{value:!0});var a=i(4),l=o(a),s=i(6),c=o(s);n.default={isVirtualized:!1,nodeContentRenderer:l.default,scaffoldBlockPxWidth:25,treeNodeRenderer:c.default}},function(r,n,i){function o(x){return x&&x.__esModule?x:{default:x}}function a(x,_){return!!x.children&&typeof x.children!="function"&&x.children.some(function(T){return T===_||a(T,_)})}function l(x){var _=x.scaffoldBlockPxWidth,T=x.connectDragPreview,k=x.connectDragSource,C=x.isDragging,D=x.canDrop,w=x.canDrag,R=x.node,I=x.title,P=x.draggedNode,L=x.path,N=x.treeIndex,G=x.isSearchMatch,z=x.isSearchFocus,F=x.icons,W=x.buttons,H=x.className,J=x.style,Z=x.didDrop,Y=x.lowerSiblingCounts,X=x.listIndex,U=x.swapFrom,re=x.swapLength,ne=x.swapDepth,ce=x.onItemClick,B=y(),$=I||R.title,E=P&&a(P,R),O=!Z&&C,j=[];Y.forEach(function(ee,ae){if(ae>0&&(j.push(u.default.createElement("div",{className:B.lineBlock,key:"pre_"+(1+ae),style:{width:_}})),N!==X&&ae===ne)){var de="";de=X===U+re-1?B.highlightBottomLeftCorner:N===U?B.highlightTopLeftCorner:B.highlightLineVertical,j.push(u.default.createElement("div",{className:B.absoluteLineBlock+" "+de,key:"highlight_"+(1+ae),style:{left:_*ae,width:_}}))}});var V=u.default.createElement("div",{className:B.contentNode},T(u.default.createElement("div",{className:B.row+(R.active?" "+B.activeRow:"")+(O?" "+B.rowLandingPad:"")+(C?" "+B.rowLandingPadDisable:"")+(O&&!D?" "+B.rowCancelPad:"")+(G?" "+B.rowSearchMatch:"")+(z?" "+B.rowSearchFocus:"")+(w?"":" "+B.rowWrapperDragDisabled)+(H?" "+H:""),onClick:function(){return ce?ce(s({},R,{index:N})):null},style:s({opacity:E?.5:1},J)},R.type==="divider"?u.default.createElement("div",{className:B.divider}):u.default.createElement(c.Fragment,null,j,u.default.createElement("div",{className:B.rowIcon},F),u.default.createElement("div",{className:B.rowLabel},typeof $=="string"?u.default.createElement("span",{className:B.rowTitle},$):typeof $=="function"?$({node:R,path:L,treeIndex:N}):$),u.default.createElement("div",{className:B.rowToolbar},W)))));return w?k(V,{dropEffect:"copy"}):V}Object.defineProperty(n,"__esModule",{value:!0});var s=Object.assign||function(x){for(var _=1;_<arguments.length;_++){var T=arguments[_];for(var k in T)Object.prototype.hasOwnProperty.call(T,k)&&(x[k]=T[k])}return x},c=i(0),u=o(c),d=i(1),f=o(d),p=i(2),h=o(p),m=i(5),b=o(m),y=(0,h.default)(b.default,{name:"MuiNodeContent"});l.defaultProps={buttons:null,canDrag:!1,canDrop:!1,className:"",draggedNode:null,icons:null,isSearchFocus:!1,isSearchMatch:!1,parentNode:null,style:{},swapDepth:null,swapFrom:null,swapLength:null,title:null,toggleChildrenVisibility:null},l.propTypes={buttons:f.default.node,canDrag:f.default.bool,canDrop:f.default.bool,className:f.default.string,connectDragPreview:f.default.func.isRequired,connectDragSource:f.default.func.isRequired,didDrop:f.default.bool.isRequired,draggedNode:f.default.shape({}),icons:f.default.node,isDragging:f.default.bool.isRequired,isOver:f.default.bool.isRequired,isSearchFocus:f.default.bool,isSearchMatch:f.default.bool,listIndex:f.default.number.isRequired,lowerSiblingCounts:f.default.arrayOf(f.default.number).isRequired,node:f.default.shape({}).isRequired,parentNode:f.default.shape({}),path:f.default.arrayOf(f.default.oneOfType([f.default.string,f.default.number])).isRequired,rowDirection:f.default.string.isRequired,scaffoldBlockPxWidth:f.default.number.isRequired,style:f.default.shape({}),swapDepth:f.default.number,swapFrom:f.default.number,swapLength:f.default.number,title:f.default.oneOfType([f.default.func,f.default.node]),toggleChildrenVisibility:f.default.func,treeId:f.default.string.isRequired,treeIndex:f.default.number.isRequired},n.default=l},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){return{"@keyframes arrow-pulse":{"0%":{opacity:0,transform:"translate(0, 0)"},"100%":{opacity:0,transform:"translate(0, 1000%)"},"30%":{opacity:1,transform:"translate(0, 300%)"},"70%":{opacity:1,transform:"translate(0, 700%)"}},absoluteLineBlock:{position:"absolute",top:0},activeRow:{},collapseButton:{},contentNode:{width:"100%"},divider:{backgroundColor:"#D8D8D8",height:1,width:"100%"},expandButton:{},highlightBottomLeftCorner:{zIndex:3},highlightLineVertical:{zIndex:3},highlightTopLeftCorner:{},lineBlock:{display:"inline-block",flex:"0 0 auto",height:"100%",position:"relative"},lineChildren:{display:"inline-block",height:"100%"},nodeContent:{"& $collapseButton, & $expandButton":{"&::after":{border:"solid transparent 10px",borderLeftWidth:7,borderRightWidth:7,borderTopColor:"gray",content:'""',position:"absolute",transform:"translate3d(-50%, -20%, 0)",transformOrigin:"7px 4px"},"&:focus":{"&::after":{filter:"drop-shadow(0 0 1px #83bef9) drop-shadow(0 0 1px #83bef9) drop-shadow(0 0 1px #83bef9)"},outline:"none"},"&:hover::after":{borderTopColor:"black"},appearance:"none",background:"transparent",border:"none",cursor:"pointer",height:30,padding:0,position:"absolute",top:"45%",transform:"translate3d(-50%, -50%, 0)",width:30,zIndex:2},"& $lineBlock, & $absoluteLineBlock":{display:"inline-block",flex:"0 0 auto",height:"100%",position:"relative"},"& $rowContents":{alignItems:"center",borderRadius:"3px",color:"#595959",display:"flex",height:"100%",justifyContent:"space-between",padding:10,position:"relative"}},row:{"& $rowIcon, & $rowLabel,& $rowToolbar":{alignItems:"center",display:"flex"},"& $rowLabel":{flex:1,overflow:"hidden",padding:"0px 6px"},"& $rowToolbar":{cursor:"pointer"},"&$activeRow":{backgroundColor:"#F3FBFF",color:"#1890FF"},"&$rowCancelPad":{"&::before":{backgroundColor:"#ffd2d6",border:"2px dotted #e6a8ad"}},"&$rowLandingPad":{"&::before":{backgroundColor:"#dddddd",border:"2px dotted #b5b5b5"}},"&$rowLandingPad, &$rowCancelPad":{"& *":{opacity:".6 !important"},"&::before":{bottom:0,content:'""',left:0,position:"absolute",right:0,top:0,zIndex:-1},backgroundColor:"transparent",border:"none",boxShadow:"none",outline:"none"},"&$rowLandingPadDisable":{"&:hover":{backgroundColor:"white"}},backgroundColor:"white",cursor:"grab",display:"flex",flex:1,padding:6,position:"relative"},rowCancelPad:{},rowContents:{},rowIcon:{color:"#D9D9D9"},rowLabel:{},rowLandingPad:{},rowLandingPadDisable:{},rowSearchFocus:{boxShadow:"inset 0 -7px 7px -3px #fc6421"},rowSearchMatch:{boxShadow:"inset 0 -7px 7px -3px #0080ff"},rowToolbar:{},rowWrapper:{"&:active":{backgroundColor:"transparent"},"&:hover":{backgroundColor:"#F3FBFF"},boxSizing:"border-box",cursor:"grab",display:"flex",height:"100%"},rowWrapperDragDisabled:{cursor:"default"}}}},function(r,n,i){function o(b){return b&&b.__esModule?b:{default:b}}function a(b){var y=b.children,x=b.listIndex,_=b.swapFrom,T=b.swapLength,k=b.swapDepth,C=b.lowerSiblingCounts,D=b.connectDropTarget,w=b.isOver,R=b.draggedNode,I=b.canDrop,P=m();return D(s.default.createElement("div",{className:P.node},l.Children.map(y,function(L){return(0,l.cloneElement)(L,{canDrop:I,draggedNode:R,isOver:w,listIndex:x,lowerSiblingCounts:C,swapDepth:k,swapFrom:_,swapLength:T})})))}Object.defineProperty(n,"__esModule",{value:!0});var l=i(0),s=o(l),c=i(1),u=o(c),d=i(2),f=o(d),p=i(7),h=o(p),m=(0,f.default)(h.default,{name:"MuiTreeNode"});a.defaultProps={canDrop:!1,draggedNode:null,swapDepth:null,swapFrom:null,swapLength:null},a.propTypes={canDrop:u.default.bool,children:u.default.node.isRequired,connectDropTarget:u.default.func.isRequired,draggedNode:u.default.shape({}),getPrevRow:u.default.func.isRequired,isOver:u.default.bool.isRequired,listIndex:u.default.number.isRequired,lowerSiblingCounts:u.default.arrayOf(u.default.number).isRequired,node:u.default.shape({}).isRequired,path:u.default.arrayOf(u.default.oneOfType([u.default.string,u.default.number])).isRequired,rowDirection:u.default.string.isRequired,scaffoldBlockPxWidth:u.default.number.isRequired,swapDepth:u.default.number,swapFrom:u.default.number,swapLength:u.default.number,treeId:u.default.string.isRequired,treeIndex:u.default.number.isRequired},n.default=a},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){return{node:{display:"flex"}}}}])})})(Dn)),Dn.exports}var g0=h0();const v0=Qn(g0);const cd=Object.freeze({left:0,top:0,width:16,height:16}),Fn=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),on=Object.freeze({...cd,...Fn}),vo=Object.freeze({...on,body:"",hidden:!1}),m0=Object.freeze({width:null,height:null}),ud=Object.freeze({...m0,...Fn});function b0(e,t=0){const r=e.replace(/^-?[0-9.]*/,"");function n(i){for(;i<0;)i+=4;return i%4}if(r===""){const i=parseInt(e);return isNaN(i)?0:n(i)}else if(r!==e){let i=0;switch(r){case"%":i=25;break;case"deg":i=90}if(i){let o=parseFloat(e.slice(0,e.length-r.length));return isNaN(o)?0:(o=o/i,o%1===0?n(o):0)}}return t}const y0=/[\s,]+/;function x0(e,t){t.split(y0).forEach(r=>{switch(r.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const dd={...ud,preserveAspectRatio:""};function ss(e){const t={...dd},r=(n,i)=>e.getAttribute(n)||i;return t.width=r("width",null),t.height=r("height",null),t.rotate=b0(r("rotate","")),x0(t,r("flip","")),t.preserveAspectRatio=r("preserveAspectRatio",r("preserveaspectratio","")),t}function S0(e,t){for(const r in dd)if(e[r]!==t[r])return!0;return!1}const jr=/^[a-z0-9]+(-[a-z0-9]+)*$/,an=(e,t,r,n="")=>{const i=e.split(":");if(e.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;n=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const l=i.pop(),s=i.pop(),c={provider:i.length>0?i[0]:n,prefix:s,name:l};return t&&!Tn(c)?null:c}const o=i[0],a=o.split("-");if(a.length>1){const l={provider:n,prefix:a.shift(),name:a.join("-")};return t&&!Tn(l)?null:l}if(r&&n===""){const l={provider:n,prefix:"",name:o};return t&&!Tn(l,r)?null:l}return null},Tn=(e,t)=>e?!!((e.provider===""||e.provider.match(jr))&&(t&&e.prefix===""||e.prefix.match(jr))&&e.name.match(jr)):!1;function w0(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const n=((e.rotate||0)+(t.rotate||0))%4;return n&&(r.rotate=n),r}function cs(e,t){const r=w0(e,t);for(const n in vo)n in Fn?n in e&&!(n in r)&&(r[n]=Fn[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}function C0(e,t){const r=e.icons,n=e.aliases||Object.create(null),i=Object.create(null);function o(a){if(r[a])return i[a]=[];if(!(a in i)){i[a]=null;const l=n[a]&&n[a].parent,s=l&&o(l);s&&(i[a]=[l].concat(s))}return i[a]}return Object.keys(r).concat(Object.keys(n)).forEach(o),i}function I0(e,t,r){const n=e.icons,i=e.aliases||Object.create(null);let o={};function a(l){o=cs(n[l]||i[l],o)}return a(t),r.forEach(a),cs(e,o)}function fd(e,t){const r=[];if(typeof e!="object"||typeof e.icons!="object")return r;e.not_found instanceof Array&&e.not_found.forEach(i=>{t(i,null),r.push(i)});const n=C0(e);for(const i in n){const o=n[i];o&&(t(i,I0(e,i,o)),r.push(i))}return r}const R0={provider:"",aliases:{},not_found:{},...cd};function Ai(e,t){for(const r in t)if(r in e&&typeof e[r]!=typeof t[r])return!1;return!0}function pd(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!Ai(e,R0))return null;const r=t.icons;for(const i in r){const o=r[i];if(!i.match(jr)||typeof o.body!="string"||!Ai(o,vo))return null}const n=t.aliases||Object.create(null);for(const i in n){const o=n[i],a=o.parent;if(!i.match(jr)||typeof a!="string"||!r[a]&&!n[a]||!Ai(o,vo))return null}return t}const Bn=Object.create(null);function _0(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Dt(e,t){const r=Bn[e]||(Bn[e]=Object.create(null));return r[t]||(r[t]=_0(e,t))}function sa(e,t){return pd(t)?fd(t,(r,n)=>{n?e.icons[r]=n:e.missing.add(r)}):[]}function D0(e,t,r){try{if(typeof r.body=="string")return e.icons[t]={...r},!0}catch{}return!1}function T0(e,t){let r=[];return(typeof e=="string"?[e]:Object.keys(Bn)).forEach(i=>{(typeof i=="string"&&typeof t=="string"?[t]:Object.keys(Bn[i]||{})).forEach(a=>{const l=Dt(i,a);r=r.concat(Object.keys(l.icons).map(s=>(i!==""?"@"+i+":":"")+a+":"+s))})}),r}let Ur=!1;function hd(e){return typeof e=="boolean"&&(Ur=e),Ur}function Vr(e){const t=typeof e=="string"?an(e,!0,Ur):e;if(t){const r=Dt(t.provider,t.prefix),n=t.name;return r.icons[n]||(r.missing.has(n)?null:void 0)}}function gd(e,t){const r=an(e,!0,Ur);if(!r)return!1;const n=Dt(r.provider,r.prefix);return D0(n,r.name,t)}function us(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Ur&&!t&&!e.prefix){let i=!1;return pd(e)&&(e.prefix="",fd(e,(o,a)=>{a&&gd(o,a)&&(i=!0)})),i}const r=e.prefix;if(!Tn({provider:t,prefix:r,name:"a"}))return!1;const n=Dt(t,r);return!!sa(n,e)}function k0(e){return!!Vr(e)}function E0(e){const t=Vr(e);return t?{...on,...t}:null}function P0(e){const t={loaded:[],missing:[],pending:[]},r=Object.create(null);e.sort((i,o)=>i.provider!==o.provider?i.provider.localeCompare(o.provider):i.prefix!==o.prefix?i.prefix.localeCompare(o.prefix):i.name.localeCompare(o.name));let n={provider:"",prefix:"",name:""};return e.forEach(i=>{if(n.name===i.name&&n.prefix===i.prefix&&n.provider===i.provider)return;n=i;const o=i.provider,a=i.prefix,l=i.name,s=r[o]||(r[o]=Object.create(null)),c=s[a]||(s[a]=Dt(o,a));let u;l in c.icons?u=t.loaded:a===""||c.missing.has(l)?u=t.missing:u=t.pending;const d={provider:o,prefix:a,name:l};u.push(d)}),t}function vd(e,t){e.forEach(r=>{const n=r.loaderCallbacks;n&&(r.loaderCallbacks=n.filter(i=>i.id!==t))})}function O0(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let r=!1;const n=e.provider,i=e.prefix;t.forEach(o=>{const a=o.icons,l=a.pending.length;a.pending=a.pending.filter(s=>{if(s.prefix!==i)return!0;const c=s.name;if(e.icons[c])a.loaded.push({provider:n,prefix:i,name:c});else if(e.missing.has(c))a.missing.push({provider:n,prefix:i,name:c});else return r=!0,!0;return!1}),a.pending.length!==l&&(r||vd([e],o.id),o.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),o.abort))})}))}let N0=0;function M0(e,t,r){const n=N0++,i=vd.bind(null,r,n);if(!t.pending.length)return i;const o={id:n,icons:t,callback:e,abort:i};return r.forEach(a=>{(a.loaderCallbacks||(a.loaderCallbacks=[])).push(o)}),i}const mo=Object.create(null);function ds(e,t){mo[e]=t}function bo(e){return mo[e]||mo[""]}function A0(e,t=!0,r=!1){const n=[];return e.forEach(i=>{const o=typeof i=="string"?an(i,t,r):i;o&&n.push(o)}),n}var L0={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function z0(e,t,r,n){const i=e.resources.length,o=e.random?Math.floor(Math.random()*i):e.index;let a;if(e.random){let C=e.resources.slice(0);for(a=[];C.length>1;){const D=Math.floor(Math.random()*C.length);a.push(C[D]),C=C.slice(0,D).concat(C.slice(D+1))}a=a.concat(C)}else a=e.resources.slice(o).concat(e.resources.slice(0,o));const l=Date.now();let s="pending",c=0,u,d=null,f=[],p=[];typeof n=="function"&&p.push(n);function h(){d&&(clearTimeout(d),d=null)}function m(){s==="pending"&&(s="aborted"),h(),f.forEach(C=>{C.status==="pending"&&(C.status="aborted")}),f=[]}function b(C,D){D&&(p=[]),typeof C=="function"&&p.push(C)}function y(){return{startTime:l,payload:t,status:s,queriesSent:c,queriesPending:f.length,subscribe:b,abort:m}}function x(){s="failed",p.forEach(C=>{C(void 0,u)})}function _(){f.forEach(C=>{C.status==="pending"&&(C.status="aborted")}),f=[]}function T(C,D,w){const R=D!=="success";switch(f=f.filter(I=>I!==C),s){case"pending":break;case"failed":if(R||!e.dataAfterTimeout)return;break;default:return}if(D==="abort"){u=w,x();return}if(R){u=w,f.length||(a.length?k():x());return}if(h(),_(),!e.random){const I=e.resources.indexOf(C.resource);I!==-1&&I!==e.index&&(e.index=I)}s="completed",p.forEach(I=>{I(w)})}function k(){if(s!=="pending")return;h();const C=a.shift();if(C===void 0){if(f.length){d=setTimeout(()=>{h(),s==="pending"&&(_(),x())},e.timeout);return}x();return}const D={status:"pending",resource:C,callback:(w,R)=>{T(D,w,R)}};f.push(D),c++,d=setTimeout(k,e.rotate),r(C,t,D.callback)}return setTimeout(k),y}function md(e){const t={...L0,...e};let r=[];function n(){r=r.filter(l=>l().status==="pending")}function i(l,s,c){const u=z0(t,l,s,(d,f)=>{n(),c&&c(d,f)});return r.push(u),u}function o(l){return r.find(s=>l(s))||null}return{query:i,find:o,setIndex:l=>{t.index=l},getIndex:()=>t.index,cleanup:n}}function ca(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 oi=Object.create(null),wr=["https://api.simplesvg.com","https://api.unisvg.com"],kn=[];for(;wr.length>0;)wr.length===1||Math.random()>.5?kn.push(wr.shift()):kn.push(wr.pop());oi[""]=ca({resources:["https://api.iconify.design"].concat(kn)});function fs(e,t){const r=ca(t);return r===null?!1:(oi[e]=r,!0)}function ai(e){return oi[e]}function j0(){return Object.keys(oi)}function ps(){}const Li=Object.create(null);function F0(e){if(!Li[e]){const t=ai(e);if(!t)return;const r=md(t),n={config:t,redundancy:r};Li[e]=n}return Li[e]}function bd(e,t,r){let n,i;if(typeof e=="string"){const o=bo(e);if(!o)return r(void 0,424),ps;i=o.send;const a=F0(e);a&&(n=a.redundancy)}else{const o=ca(e);if(o){n=md(o);const a=e.resources?e.resources[0]:"",l=bo(a);l&&(i=l.send)}}return!n||!i?(r(void 0,424),ps):n.query(t,i,r)().abort}const hs="iconify2",qr="iconify",yd=qr+"-count",gs=qr+"-version",xd=36e5,B0=168;function yo(e,t){try{return e.getItem(t)}catch{}}function ua(e,t,r){try{return e.setItem(t,r),!0}catch{}}function vs(e,t){try{e.removeItem(t)}catch{}}function xo(e,t){return ua(e,yd,t.toString())}function So(e){return parseInt(yo(e,yd))||0}const jt={local:!0,session:!0},Sd={local:new Set,session:new Set};let da=!1;function $0(e){da=e}let vn=typeof window>"u"?{}:window;function wd(e){const t=e+"Storage";try{if(vn&&vn[t]&&typeof vn[t].length=="number")return vn[t]}catch{}jt[e]=!1}function Cd(e,t){const r=wd(e);if(!r)return;const n=yo(r,gs);if(n!==hs){if(n){const l=So(r);for(let s=0;s<l;s++)vs(r,qr+s.toString())}ua(r,gs,hs),xo(r,0);return}const i=Math.floor(Date.now()/xd)-B0,o=l=>{const s=qr+l.toString(),c=yo(r,s);if(typeof c=="string"){try{const u=JSON.parse(c);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>i&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,l))return!0}catch{}vs(r,s)}};let a=So(r);for(let l=a-1;l>=0;l--)o(l)||(l===a-1?(a--,xo(r,a)):Sd[e].add(l))}function Id(){if(!da){$0(!0);for(const e in jt)Cd(e,t=>{const r=t.data,n=t.provider,i=r.prefix,o=Dt(n,i);if(!sa(o,r).length)return!1;const a=r.lastModified||-1;return o.lastModifiedCached=o.lastModifiedCached?Math.min(o.lastModifiedCached,a):a,!0})}}function G0(e,t){const r=e.lastModifiedCached;if(r&&r>=t)return r===t;if(e.lastModifiedCached=t,r)for(const n in jt)Cd(n,i=>{const o=i.data;return i.provider!==e.provider||o.prefix!==e.prefix||o.lastModified===t});return!0}function W0(e,t){da||Id();function r(n){let i;if(!jt[n]||!(i=wd(n)))return;const o=Sd[n];let a;if(o.size)o.delete(a=Array.from(o).shift());else if(a=So(i),!xo(i,a+1))return;const l={cached:Math.floor(Date.now()/xd),provider:e.provider,data:t};return ua(i,qr+a.toString(),JSON.stringify(l))}t.lastModified&&!G0(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),r("local")||r("session"))}function ms(){}function H0(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,O0(e)}))}function U0(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:r,prefix:n}=e,i=e.iconsToLoad;delete e.iconsToLoad;let o;if(!i||!(o=bo(r)))return;o.prepare(r,n,i).forEach(l=>{bd(r,l,s=>{if(typeof s!="object")l.icons.forEach(c=>{e.missing.add(c)});else try{const c=sa(e,s);if(!c.length)return;const u=e.pendingIcons;u&&c.forEach(d=>{u.delete(d)}),W0(e,s)}catch(c){console.error(c)}H0(e)})})}))}const fa=(e,t)=>{const r=A0(e,!0,hd()),n=P0(r);if(!n.pending.length){let s=!0;return t&&setTimeout(()=>{s&&t(n.loaded,n.missing,n.pending,ms)}),()=>{s=!1}}const i=Object.create(null),o=[];let a,l;return n.pending.forEach(s=>{const{provider:c,prefix:u}=s;if(u===l&&c===a)return;a=c,l=u,o.push(Dt(c,u));const d=i[c]||(i[c]=Object.create(null));d[u]||(d[u]=[])}),n.pending.forEach(s=>{const{provider:c,prefix:u,name:d}=s,f=Dt(c,u),p=f.pendingIcons||(f.pendingIcons=new Set);p.has(d)||(p.add(d),i[c][u].push(d))}),o.forEach(s=>{const{provider:c,prefix:u}=s;i[c][u].length&&U0(s,i[c][u])}),t?M0(t,n,o):ms},V0=e=>new Promise((t,r)=>{const n=typeof e=="string"?an(e,!0):e;if(!n){r(e);return}fa([n||e],i=>{if(i.length&&n){const o=Vr(n);if(o){t({...on,...o});return}}r(e)})});function q0(e){try{const t=typeof e=="string"?JSON.parse(e):e;if(typeof t.body=="string")return{...t}}catch{}}function K0(e,t){const r=typeof e=="string"?an(e,!0,!0):null;if(!r){const o=q0(e);return{value:e,data:o}}const n=Vr(r);if(n!==void 0||!r.prefix)return{value:e,name:r,data:n};const i=fa([r],()=>t(e,r,Vr(r)));return{value:e,name:r,loading:i}}function zi(e){return e.hasAttribute("inline")}let Rd=!1;try{Rd=navigator.vendor.indexOf("Apple")===0}catch{}function Y0(e,t){switch(t){case"svg":case"bg":case"mask":return t}return t!=="style"&&(Rd||e.indexOf("<a")===-1)?"svg":e.indexOf("currentColor")===-1?"bg":"mask"}const J0=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Q0=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function wo(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const n=e.split(J0);if(n===null||!n.length)return e;const i=[];let o=n.shift(),a=Q0.test(o);for(;;){if(a){const l=parseFloat(o);isNaN(l)?i.push(o):i.push(Math.ceil(l*t*r)/r)}else i.push(o);if(o=n.shift(),o===void 0)return i.join("");a=!a}}const X0=e=>e==="unset"||e==="undefined"||e==="none";function _d(e,t){const r={...on,...e},n={...ud,...t},i={left:r.left,top:r.top,width:r.width,height:r.height};let o=r.body;[r,n].forEach(h=>{const m=[],b=h.hFlip,y=h.vFlip;let x=h.rotate;b?y?x+=2:(m.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),m.push("scale(-1 1)"),i.top=i.left=0):y&&(m.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),m.push("scale(1 -1)"),i.top=i.left=0);let _;switch(x<0&&(x-=Math.floor(x/4)*4),x=x%4,x){case 1:_=i.height/2+i.top,m.unshift("rotate(90 "+_.toString()+" "+_.toString()+")");break;case 2:m.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:_=i.width/2+i.left,m.unshift("rotate(-90 "+_.toString()+" "+_.toString()+")");break}x%2===1&&(i.left!==i.top&&(_=i.left,i.left=i.top,i.top=_),i.width!==i.height&&(_=i.width,i.width=i.height,i.height=_)),m.length&&(o='<g transform="'+m.join(" ")+'">'+o+"</g>")});const a=n.width,l=n.height,s=i.width,c=i.height;let u,d;a===null?(d=l===null?"1em":l==="auto"?c:l,u=wo(d,s/c)):(u=a==="auto"?s:a,d=l===null?wo(u,c/s):l==="auto"?c:l);const f={},p=(h,m)=>{X0(m)||(f[h]=m.toString())};return p("width",u),p("height",d),f.viewBox=i.left.toString()+" "+i.top.toString()+" "+s.toString()+" "+c.toString(),{attributes:f,body:o}}const Z0=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let $n=Z0();function e1(e){$n=e}function t1(){return $n}function r1(e,t){const r=ai(e);if(!r)return 0;let n;if(!r.maxURL)n=0;else{let i=0;r.resources.forEach(a=>{i=Math.max(i,a.length)});const o=t+".json?icons=";n=r.maxURL-i-r.path.length-o.length}return n}function n1(e){return e===404}const i1=(e,t,r)=>{const n=[],i=r1(e,t),o="icons";let a={type:o,provider:e,prefix:t,icons:[]},l=0;return r.forEach((s,c)=>{l+=s.length+1,l>=i&&c>0&&(n.push(a),a={type:o,provider:e,prefix:t,icons:[]},l=s.length),a.icons.push(s)}),n.push(a),n};function o1(e){if(typeof e=="string"){const t=ai(e);if(t)return t.path}return"/"}const a1=(e,t,r)=>{if(!$n){r("abort",424);return}let n=o1(t.provider);switch(t.type){case"icons":{const o=t.prefix,l=t.icons.join(","),s=new URLSearchParams({icons:l});n+=o+".json?"+s.toString();break}case"custom":{const o=t.uri;n+=o.slice(0,1)==="/"?o.slice(1):o;break}default:r("abort",400);return}let i=503;$n(e+n).then(o=>{const a=o.status;if(a!==200){setTimeout(()=>{r(n1(a)?"abort":"next",a)});return}return i=501,o.json()}).then(o=>{if(typeof o!="object"||o===null){setTimeout(()=>{o===404?r("abort",o):r("next",i)});return}setTimeout(()=>{r("success",o)})}).catch(()=>{r("next",i)})},l1={prepare:i1,send:a1};function bs(e,t){switch(e){case"local":case"session":jt[e]=t;break;case"all":for(const r in jt)jt[r]=t;break}}const ji="data-style";let Dd="";function s1(e){Dd=e}function ys(e,t){let r=Array.from(e.childNodes).find(n=>n.hasAttribute&&n.hasAttribute(ji));r||(r=document.createElement("style"),r.setAttribute(ji,ji),e.appendChild(r)),r.textContent=":host{display:inline-block;vertical-align:"+(t?"-0.125em":"0")+"}span,svg{display:block}"+Dd}function Td(){ds("",l1),hd(!0);let e;try{e=window}catch{}if(e){if(Id(),e.IconifyPreload!==void 0){const r=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof r=="object"&&r!==null&&(r instanceof Array?r:[r]).forEach(i=>{try{(typeof i!="object"||i===null||i instanceof Array||typeof i.icons!="object"||typeof i.prefix!="string"||!us(i))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const r=e.IconifyProviders;if(typeof r=="object"&&r!==null)for(const n in r){const i="IconifyProviders["+n+"] is invalid.";try{const o=r[n];if(typeof o!="object"||!o||o.resources===void 0)continue;fs(n,o)||console.error(i)}catch{console.error(i)}}}}return{enableCache:r=>bs(r,!0),disableCache:r=>bs(r,!1),iconExists:k0,getIcon:E0,listIcons:T0,addIcon:gd,addCollection:us,calculateSize:wo,buildIcon:_d,loadIcons:fa,loadIcon:V0,addAPIProvider:fs,appendCustomStyle:s1,_api:{getAPIConfig:ai,setAPIModule:ds,sendAPIQuery:bd,setFetch:e1,getFetch:t1,listAPIProviders:j0}}}function kd(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in t)r+=" "+n+'="'+t[n]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+e+"</svg>"}function c1(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function u1(e){return"data:image/svg+xml,"+c1(e)}function d1(e){return'url("'+u1(e)+'")'}const Co={"background-color":"currentColor"},Ed={"background-color":"transparent"},xs={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Ss={"-webkit-mask":Co,mask:Co,background:Ed};for(const e in Ss){const t=Ss[e];for(const r in xs)t[e+"-"+r]=xs[r]}function ws(e){return e?e+(e.match(/^[-0-9.]+$/)?"px":""):"inherit"}function f1(e,t,r){const n=document.createElement("span");let i=e.body;i.indexOf("<a")!==-1&&(i+="<!-- "+Date.now()+" -->");const o=e.attributes,a=kd(i,{...o,width:t.width+"",height:t.height+""}),l=d1(a),s=n.style,c={"--svg":l,width:ws(o.width),height:ws(o.height),...r?Co:Ed};for(const u in c)s.setProperty(u,c[u]);return n}let Fr;function p1(){try{Fr=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{Fr=null}}function h1(e){return Fr===void 0&&p1(),Fr?Fr.createHTML(e):e}function g1(e){const t=document.createElement("span"),r=e.attributes;let n="";r.width||(n="width: inherit;"),r.height||(n+="height: inherit;"),n&&(r.style=n);const i=kd(e.body,r);return t.innerHTML=h1(i),t.firstChild}function Cs(e,t){const r=t.icon.data,n=t.customisations,i=_d(r,n);n.preserveAspectRatio&&(i.attributes.preserveAspectRatio=n.preserveAspectRatio);const o=t.renderedMode;let a;o==="svg"?a=g1(i):a=f1(i,{...on,...r},o==="mask");const l=Array.from(e.childNodes).find(s=>{const c=s.tagName&&s.tagName.toUpperCase();return c==="SPAN"||c==="SVG"});l?a.tagName==="SPAN"&&l.tagName===a.tagName?l.setAttribute("style",a.getAttribute("style")):e.replaceChild(a,l):e.appendChild(a)}function Is(e,t,r){const n=r&&(r.rendered?r:r.lastRender);return{rendered:!1,inline:t,icon:e,lastRender:n}}function v1(e="iconify-icon"){let t,r;try{t=window.customElements,r=window.HTMLElement}catch{return}if(!t||!r)return;const n=t.get(e);if(n)return n;const i=["icon","mode","inline","width","height","rotate","flip"],o=class extends r{_shadowRoot;_state;_checkQueued=!1;constructor(){super();const l=this._shadowRoot=this.attachShadow({mode:"open"}),s=zi(this);ys(l,s),this._state=Is({value:""},s),this._queueCheck()}static get observedAttributes(){return i.slice(0)}attributeChangedCallback(l){if(l==="inline"){const s=zi(this),c=this._state;s!==c.inline&&(c.inline=s,ys(this._shadowRoot,s))}else this._queueCheck()}get icon(){const l=this.getAttribute("icon");if(l&&l.slice(0,1)==="{")try{return JSON.parse(l)}catch{}return l}set icon(l){typeof l=="object"&&(l=JSON.stringify(l)),this.setAttribute("icon",l)}get inline(){return zi(this)}set inline(l){l?this.setAttribute("inline","true"):this.removeAttribute("inline")}restartAnimation(){const l=this._state;if(l.rendered){const s=this._shadowRoot;if(l.renderedMode==="svg")try{s.lastChild.setCurrentTime(0);return}catch{}Cs(s,l)}}get status(){const l=this._state;return l.rendered?"rendered":l.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;const l=this._state,s=this.getAttribute("icon");if(s!==l.icon.value){this._iconChanged(s);return}if(!l.rendered)return;const c=this.getAttribute("mode"),u=ss(this);(l.attrMode!==c||S0(l.customisations,u))&&this._renderIcon(l.icon,u,c)}_iconChanged(l){const s=K0(l,(c,u,d)=>{const f=this._state;if(f.rendered||this.getAttribute("icon")!==c)return;const p={value:c,name:u,data:d};p.data?this._gotIconData(p):f.icon=p});s.data?this._gotIconData(s):this._state=Is(s,this._state.inline,this._state)}_gotIconData(l){this._checkQueued=!1,this._renderIcon(l,ss(this),this.getAttribute("mode"))}_renderIcon(l,s,c){const u=Y0(l.data.body,c),d=this._state.inline;Cs(this._shadowRoot,this._state={rendered:!0,icon:l,inline:d,customisations:s,attrMode:c,renderedMode:u})}};i.forEach(l=>{l in o.prototype||Object.defineProperty(o.prototype,l,{get:function(){return this.getAttribute(l)},set:function(s){s!==null?this.setAttribute(l,s):this.removeAttribute(l)}})});const a=Td();for(const l in a)o[l]=o.prototype[l]=a[l];return t.define(e,o),o}const m1=v1()||Td(),{enableCache:V2,disableCache:q2,iconExists:K2,getIcon:Y2,listIcons:J2,addIcon:Q2,addCollection:X2,calculateSize:Z2,buildIcon:e_,loadIcons:t_,loadIcon:r_,addAPIProvider:n_,_api:i_}=m1,Gt=(e,t,r="children")=>e.map(n=>Array.isArray(n[r])?t({...n,[r]:Gt(n[r],t,r)}):t(n)),Pd=(e,t="children")=>{const r=[];return Gt(e,n=>r.push(n),t),r},pa=(e,t,r="children")=>e.map(n=>({...n})).filter(n=>{const i=n[r];if(Array.isArray(i)){const a=pa(i,t,r);n[r]=a?.length?a:void 0}const o={filteredChildren:n[r],isLeaf:!i?.length};return t(n,o)}),Od=e=>/^https?:\/\//.test(e),Nd=e=>/^mailto:/i.test(e.trim()),b1=e=>{if(!e||!e?.startsWith("/"))return!1;const t=i=>i.endsWith("/")?i:`${i}/`,r=t(window.location.pathname),n=t(new URL(e,window.location.origin).pathname);return r.startsWith(n)},Md=(e=[])=>{const t=e.map((r,n)=>({path:r,index:n})).filter(r=>b1(r.path));return t?.length?t.slice(1).reduce((r,n)=>r.path.length>=n.path.length?r:n,t[0]).index:-1},y1=(e,t={})=>{const{columns:r=1,breakInside:n=!1,groupHeight:i=48,itemHeight:o=24,childrenKey:a="items"}=t,l=e.length,s=e.reduce((m,b)=>m+i+(b[a]?.length||0)*o,0),c=Math.ceil(s/r),u=[[]];let d=0,f=0;const p=c*.2,h=m=>f>c-p&&d<r-1&&f+m>c+p;return e.forEach(m=>{const b=i+(m[a]?.length||0)*o;n&&h(i)&&(d++,f=0,u[d]=[]),!n&&f>0&&(l<=r||h(b))&&(d++,f=0,u[d]=[]),u[d].push({...m,group:!0}),f+=i,m[a]&&m[a].forEach(y=>{n&&h(o)&&(d++,f=0,u[d]=[]),u[d].push({...y,group:!1}),f+=o})}),u};function it({icon:e,size:t=void 0,sx:r={},...n}){const i=[...Array.isArray(r)?r:[r]];t&&i.push({width:t,height:t});const[o,a]=v.useState(!1),[l,s]=v.useState(!0);if(zo(async()=>{s(!0);try{await jo(e),a(!0)}catch{a(!1)}s(!1)},[e]),n.variant||i.push({"&.MuiAvatar-root":{color:"inherit",fontWeight:"bold",backgroundColor:"transparent",borderRadius:0},"&.MuiAvatar-root svg":{width:"100%",height:"100%"}}),Od(e))return g.jsx(gi,{component:"span",...n,src:e,sx:i});const c=t?.6*t+4:0;return l?g.jsx(xe,{icon:"codicon:blank",height:c||void 0}):o?g.jsx(gi,{component:"span",...n,sx:i,children:g.jsx(xe,{icon:e,height:c||void 0})}):e&&typeof e=="string"?(i.push({"&.MuiAvatar-root":{display:"inline-flex",...t&&{fontSize:t-2}}}),g.jsx(gi,{component:"span",...n,sx:i,children:Array.from(e)[0]})):null}function ha(e=["en","zh"]){const{blocklet:t}=Bt();return v.useMemo(()=>{const n=t.environments.find(c=>c.key==="BLOCKLET_APP_LANGUAGES"),i=n?n.value.split(","):e,o=i[0]||"en",a=i.filter(c=>Ue.SUPPORTED_LANGUAGES[c]),l=a.reduce((c,u)=>(c[u]=Ue.SUPPORTED_LANGUAGES[u].nativeName,c),{}),s=a.map(c=>({code:c,name:Ue.SUPPORTED_LANGUAGES[c].nativeName}));return{locales:i,localeMap:l,defaultLocale:o,languages:s}},[t.environments,e])}const x1=e=>e.from!=="team-tmpl";function S1({prevPath:e,nextPath:t,node:r}){if(r.from==="team-tmpl")return!1;const n=e.length,i=t.length;return!!(n===i&&Wp(e.slice(0,n-1),t.slice(0,i-1)))}function Ad({treeNode:e}){const{locale:t}=ke(),{blocklet:r}=Bt(),{defaultLocale:n}=ha(),i=r.environments.find(l=>l.key===Ue.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_URL),o=oe(l=>{if(l?.startsWith("/"))try{return new URL(l,i?.value).href}catch{console.error("Failed to parse url",{url:l,origin:i?.value})}return l});function a(){const{title:l,subtitle:s}=e;let c=l,u=s;return Yt(l)&&(c=l[t]||l[n]||l.en),!v.isValidElement(s)&&Yt(s)&&(u=s[t]||s[n]||s.en),g.jsxs(te,{sx:{display:"flex",alignItems:"center"},children:[g.jsx(ye,{variant:"subtitle1",sx:{fontSize:16},children:c}),s&&g.jsx(ye,{variant:"body2",color:"gray",sx:{ml:1.5,lineHeight:1},children:u})]})}return g.jsxs(g.Fragment,{children:[e.icon&&(Fo(o(e.icon))?g.jsx(it,{size:16,style:{marginRight:4},icon:o(e.icon)}):g.jsx(xe,{size:16,style:{marginRight:4},icon:e.icon})),a()]})}Ad.propTypes={treeNode:S.object.isRequired};const w1=tt(te)(({theme:e})=>({"& .MuiNodeContent-row":{backgroundColor:e.palette.background.default}}));function Ld({treeData:e,setTreeData:t=()=>{},renderActions:r=()=>{}}){const n=e.map(o=>({...o,expanded:!0})),i={};return typeof window<"u"&&(i.context=window),g.jsx(w1,{children:g.jsx(Jh,{backend:Qh,...i,children:g.jsx(db,{generateNodeProps:o=>{const a=x1(o.node);return{buttons:r({data:o.node,className:"list-item-actions"}),icons:a?g.jsx(xe,{icon:"ic:round-drag-indicator"}):g.jsx(te,{sx:{width:16,height:16}}),title:g.jsx(Ad,{treeNode:o.node})}},maxDepth:2,isVirtualized:!1,treeData:n,onChange:t,canDrop:S1,theme:v0})})})}Ld.propTypes={treeData:S.object.isRequired,setTreeData:S.func,renderActions:S.func};var C1=mc();const I1=Qn(C1);function zd({sx:e=null,onAdd:t=()=>{},onChange:r=()=>{},defaultLocale:n="en",locale:i="",locales:o=[],localeMap:a={},onRemoveLocale:l=()=>{}}){const{t:s}=ke(),c=v.useRef(),[u,d]=v.useState(null),f=ur({localeList:[],inputLocale:"",localeError:""}),p=v.useMemo(()=>!!u,[u]),h=v.useMemo(()=>o.includes(i)?i:n,[o,i]),m=v.useMemo(()=>f.localeList.filter(w=>!!a[w]),[f.localeList,a]),b=v.useMemo(()=>Object.keys(At(a,[...f.localeList,n])).map(w=>({title:a[w],value:w})),[f.localeList]),y=v.useMemo(()=>`Default (${a[n]||Object.values(a)?.[0]})`,[a]),x=oe(w=>w?w===n||f.localeList.includes(w)?s("navigation.form.localeExists",{value:w}):!0:s("common.requiredErrorText",{name:"Locale"})),_=oe((w="")=>{const R=w?.trim(),I=x(R);return I!==!0?f.localeError=I:f.localeError="",I}),T=oe(()=>{d(null),f.inputLocale="",f.localeError=""}),k=oe(()=>{const w=f.inputLocale?.trim();_(w)===!0&&(T(),f.localeList.push(w),t(w))}),C=oe((w,R)=>{w.preventDefault(),w.stopPropagation(),f.localeList=qc(f.localeList,R),l(R)}),D=oe(w=>{const{value:R}=w.target;_(R),f.inputLocale=R});return v.useEffect(()=>{f.localeList=[...o]},[o,f]),Uh("enter",()=>{setTimeout(()=>{k()})},{target:c}),g.jsxs(g.Fragment,{children:[g.jsxs(sg,{sx:e,value:h,onChange:(w,R)=>{r(R)},children:[g.jsx(rl,{label:y,value:n}),m.map(w=>g.jsx(rl,{sx:{position:"relative"},label:g.jsxs(g.Fragment,{children:[a[w],g.jsx(Ge,{size:"small",color:"inherit",sx:{position:"absolute",top:0,right:0},onClick:R=>{C(R,w)},children:g.jsx(xe,{icon:"mdi:close",height:14})})]}),value:w},w)),g.jsx(Ge,{color:"primary",disableFocusRipple:!0,sx:{width:"48px"},onClick:w=>{d(w.currentTarget)},children:g.jsx(xe,{icon:"mdi:plus"})})]}),g.jsx(Qi,{open:p,anchorEl:u,onClose:T,anchorOrigin:{vertical:"bottom",horizontal:"left"},children:g.jsxs(te,{sx:{p:2,width:"270px"},children:[g.jsx(ye,{variant:"subtitle2",children:s("navigation.form.localePlaceholder")}),g.jsx(te,{sx:{mt:1},children:g.jsx(ro,{required:!0,fullWidth:!0,label:"Locale",value:f.inputLocale,options:b,onChange:D,error:!!f.localeError,helperText:f.localeError||" "})}),g.jsx(te,{sx:{display:"flex",justifyContent:"flex-end"},children:g.jsx(ir,{size:"small",variant:"contained",onClick:k,children:s("common.confirm")})})]})})]})}zd.propTypes={sx:S.any,onAdd:S.func,onChange:S.func,onRemoveLocale:S.func,defaultLocale:S.string,locale:S.string,localeMap:S.object,locales:S.array};const ga=["https://api.iconify.design","https://api.unisvg.com","https://api.simplesvg.com"];async function jd(e,t,r=5e3){for(const n of ga){const i=Oe(n,e);try{return await dg.get(i,{params:t,timeout:r})}catch(o){console.warn(`Failed to fetch from ${i}:`,o)}}throw new Error(`All icon API endpoints ${e} failed`)}async function R1({keyword:e,limit:t=999,start:r=0,palette:n=!1}){let i="",o=e;e.includes(":")&&([i,o]=e.split(":"));const{data:a}=await jd("/search",{query:`${o} palette=${n}`||e,start:r,limit:t,...i&&{prefix:i}});return a}const mn=new Map;async function _1(e){if(mn.has(e))return mn.get(e);const t=(async()=>{const{data:r}=await jd("/collection",{prefix:e}),n=new Set;return r.uncategorized?.forEach(i=>n.add(`${e}:${i}`)),Object.values(r.categories??{}).forEach(i=>{i.forEach(o=>n.add(`${e}:${o}`))}),Array.from(n)})();mn.set(e,t);try{return await t}catch(r){throw mn.delete(e),r}}function D1(e){return Oe(ga[0],`${e}.svg`)}function T1(e){try{const t=new URL(e);for(const r of ga)if(t.origin===r)return Hp(t.pathname).replace(".svg","");return""}catch{return""}}function k1(e){let t=!0,r=e;return e&&(e.startsWith("/")?(t=!1,r=""):Fo(e)&&(r=T1(e))),{isIconId:t,iconId:r}}const E1=v.lazy(()=>Yp(()=>import("./index-B8jKymjp.js").then(e=>e.i),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url).then(e=>({default:e.Uploader}))),Rs=je(it)(({theme:e})=>({"&&":{color:e.palette.text.primary},"> img":{filter:e.palette.mode==="dark"?"invert(1)":"none"}}));function Fd({icon:e,...t}){const[r,n]=v.useState(!1);return zo(async()=>{n(!1),await jo(e),n(!0)},[e]),e?r?g.jsx(xe,{icon:e,...t}):g.jsx(xe,{color:"#f06f6e",icon:"ic:baseline-error",...t}):g.jsx(xe,{icon:"material-symbols-light:select-rounded",...t})}Fd.propTypes={icon:S.string.isRequired};function Io({value:e,helperText:t,label:r,placeholder:n,methods:i=["select"],iconifyShape:o="id",...a}){const{getSessionInHeader:l,prefix:s,inService:c}=Sc(),{blocklet:u}=Bt(),d=Xr(X=>X.breakpoints.down("md")),f=u.environments.find(X=>X.key===Ue.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_URL),p=l(),h=v.useRef(null),m=v.useRef(null),b=v.useRef(null),{t:y,locale:x}=ke(),{isIconId:_,iconId:T}=k1(e),[k,C]=v.useState(null),{onChange:D,onBlur:w,sx:R,...I}=a,P=i.includes("upload"),L=i.includes("select"),N=Oe(s,"/api/media/upload",u.appPid),G=ur({showPopover:!1}),z=oe(X=>{if(X?.startsWith("/"))try{const U=c?window.location.origin:f?.value;return new URL(X,U).href}catch{console.error("Failed to resolve url: ",X)}return X},[f?.value,c]),F=oe(async X=>await h.current.getUploader().uploadFile(X)),W=oe(()=>{C(null)}),H=oe(()=>{L&&C(b.current)}),J=oe(async X=>{try{if(o==="url"){const U=D1(X),re=await Up(U,{width:128,height:128}),ne=await Vp(re,X);await F(ne)}else D?.(X)}catch(U){console.error("Failed to pick icon:",U)}W()}),Z=oe(X=>{X.stopPropagation(),m.current.open(),W()}),Y=oe(X=>{a?.onChange?.(X.data.url)});return g.jsxs(g.Fragment,{children:[g.jsx(Jt,{helperText:t,value:e,sx:{"& .MuiInputBase-root,.MuiInputBase-input":{cursor:"pointer"},...R},onClick:L?H:void 0,...I,label:r,placeholder:n,slotProps:{input:{ref:b,readOnly:!0,startAdornment:g.jsx(Xi,{position:"start",sx:{cursor:"auto"},onMouseEnter:()=>{e&&(G.showPopover=!0)},onMouseLeave:()=>{G.showPopover=!1},children:g.jsx(Rs,{size:28,icon:z(e),alt:"Error"})}),endAdornment:g.jsxs(Xi,{position:"end",children:[g.jsx(Ge,{sx:{visibility:e?"visible":"hidden"},onClick:X=>{X.stopPropagation(),D("")},children:g.jsx(Hc,{style:{fontSize:18}})}),P&&g.jsx(qp,{title:y("common.upload"),children:g.jsx(Ge,{disableFocusRipple:!1,disableRipple:!1,onClick:Z,children:g.jsx(Fd,{icon:"material-symbols:upload-file-outline-rounded",width:24,height:24})})}),L&&g.jsx(te,{component:ug,sx:{mr:"-6px",fontSize:24,transform:k?"rotate(180deg)":"rotate(0deg)",transition:"transform 200ms",pointerEvents:"none"}})]})}}}),L&&g.jsx(Qi,{open:!!k,anchorEl:k,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},slotProps:{paper:{style:{...d&&{width:"100vw",height:"100vh",boxShadow:"none"}}}},onClose:W,children:g.jsx(Bd,{label:r,placeholder:n,value:_?T:"",sx:{width:b.current?.offsetWidth??"auto"},onPick:J,onClose:W})}),g.jsx(Ro,{ref:h,locale:x,apiPath:N,headers:p,imageEditorProps:{},onUploadFinish:Y}),g.jsx(Ro,{ref:m,locale:x,apiPath:N,headers:p,onUploadFinish:Y}),g.jsx(Qi,{sx:{pointerEvents:"none"},open:G.showPopover,anchorEl:b.current,anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"center"},onClose:()=>{G.showPopover=!1},disableRestoreFocus:!0,children:g.jsx(Rs,{size:120,icon:z(e),alt:"Error"})})]})}Io.propTypes={value:S.string.isRequired,label:S.any,placeholder:S.any,helperText:S.string,methods:S.arrayOf(S.oneOf(["select","upload"])),iconifyShape:S.oneOf(["id","url"])};function Bd({label:e,placeholder:t,value:r="",sx:n,onPick:i,onClose:o,...a}){const[l,s]=v.useState([]),[c,u]=v.useState(!0),[d,f]=v.useState(r),[p,h]=v.useState(!1),m=v.useRef(null),b=v.useRef([]),y=v.useRef(1),x=v.useRef(!0),{t:_}=ke(),T=96,k=oe(()=>{!x.current||c||(u(!0),setTimeout(()=>{const w=y.current+1,R=(w-1)*T,I=w*T,P=b.current.slice(R,I);s(L=>[...L,...P]),y.current=w,x.current=I<b.current.length,u(!1)},300))}),C=oe(w=>{b.current=w,y.current=1,x.current=w.length>T;const R=w.slice(0,T);s(R),h(w.length===0),x.current&&k()}),{run:D}=wc(async w=>{if(w){u(!0);try{const{icons:R}=await R1({keyword:w});C(R)}catch(R){console.error("Failed to search icons:",R),h(!0)}finally{u(!1)}}},{wait:300,trailing:!0});return v.useEffect(()=>{const w=()=>{if(!m.current)return;const{scrollTop:I,scrollHeight:P,clientHeight:L}=m.current;(I+L>=P-150||P<=L)&&k()},R=m.current;return R&&(R.addEventListener("scroll",w),w()),()=>{R&&R.removeEventListener("scroll",w)}},[k,c]),zo(async()=>{if(d)D(d);else{u(!0);try{const w=await _1("mdi-light");C(w)}catch(w){console.error("Failed to fetch default icons:",w),h(!0)}finally{u(!1)}}},[d,D,C]),g.jsxs(P1,{ref:m,sx:n,...a,children:[g.jsxs(te,{className:"icon-picker-input",children:[g.jsx(Jt,{label:_("navigation.form.searchIcons"),placeholder:_("navigation.form.searchIconsPlaceholder"),size:"small",value:d,sx:{flexGrow:1},autoFocus:!0,onChange:w=>f(w.target.value),slotProps:{input:{endAdornment:g.jsx(Ge,{sx:{visibility:d?"visible":"hidden"},onClick:()=>f(""),children:g.jsx(Hc,{style:{fontSize:18}})})}}}),g.jsx(ir,{onClick:o,children:_("common.cancel")})]}),g.jsxs(te,{children:[l.length>0&&g.jsx(te,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(32px, auto))",gridAutoRows:"min-content",alignItems:"center",gap:1,p:2},children:l.map(w=>g.jsx(O1,{$active:r===w,onClick:()=>{i(w)},children:g.jsx(xe,{icon:w,width:"32",height:"32"})},w))}),p&&g.jsx(te,{sx:{p:2,display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},children:g.jsx(te,{sx:{textAlign:"center"},children:"No matching results"})}),c&&g.jsx(te,{sx:{p:2,display:"flex",justifyContent:"center"},children:g.jsx(Kp,{size:20})})]})]})}Bd.propTypes={label:S.any,placeholder:S.any,value:S.string,sx:S.object,onPick:S.func.isRequired,onClose:S.func.isRequired};const P1=je(te)(({theme:e})=>({minWidth:"100%",height:"100%",padding:0,overflow:"auto",[e.breakpoints.up("md")]:{minWidth:"480px",maxHeight:"400px",padding:e.spacing(1),paddingTop:0,".icon-picker-input":{paddingTop:e.spacing(2),paddingBottom:e.spacing(1),paddingLeft:e.spacing(2),paddingRight:e.spacing(2)}},".icon-picker-input":{position:"sticky",display:"flex",alignItems:"center",gap:e.spacing(1),top:0,zIndex:1,backgroundColor:e.palette.background.paper}})),O1=je(Ge,{shouldForwardProp:e=>e!=="$active"})(({$active:e,theme:t})=>({boxSizing:"content-box",backgroundColor:e?t.palette.action.hover:"transparent",borderRadius:4,padding:1,width:32,height:32,"&:hover":{backgroundColor:t.palette.action.hover}}));function Ro({ref:e=null,locale:t,apiPath:r,headers:n,imageEditorProps:i={actions:{revert:!0,rotate:!0,granularRotate:!0,flip:!0,zoomIn:!0,zoomOut:!0,cropSquare:!1,cropWidescreen:!1,cropWidescreenVertical:!1},cropperOptions:{autoCrop:!0,autoCropArea:1,aspectRatio:1,initialAspectRatio:1,croppedCanvasOptions:{minWidth:120,minHeight:120}}},onUploadFinish:o}){return g.jsx(v.Suspense,{children:g.jsx(E1,{locale:t,ref:e,popup:!0,installerProps:{disabled:!0},plugins:["ImageEditor"],onUploadFinish:a=>o?.(a),coreProps:{restrictions:{allowedFileTypes:["image/*"],maxFileSize:1024*1024*1,maxNumberOfFiles:1}},dashboardProps:{autoOpen:"imageEditor"},imageEditorProps:i,apiPathProps:{uploader:r,disableMediaKitPrefix:!0,disableAutoPrefix:!0,disableMediaKitStatus:!0},tusProps:{headers:n}})})}Ro.propTypes={ref:S.any,locale:S.string,apiPath:S.string,headers:S.object,imageEditorProps:S.object,onUploadFinish:S.func};const _s=24,Ds=48,Ts="add";S.string.isRequired;function va({ref:e=null,section:t="",components:r=[],rawNavigations:n=[],onChange:i=()=>{},...o}){const{roles:a}=Wc(),{t:l,locale:s}=ke(),{localeMap:c,defaultLocale:u}=ha(),d=oe(()=>({title:{[u]:""},description:{[u]:""},link:{[u]:""}})),f=oe(E=>qc(Array.from(new Set(ht.flatMap(O=>Yt(E[O])?Object.keys(E[O]):[]))),u)),p=v.useRef(()=>{}),h=ur({isRoot:!0,type:Ts,linkDisabled:!1,locale:u,formState:d(),get localeList(){return f(h.formState)}}),{handleSubmit:m,control:b,reset:y,setValue:x,clearErrors:_,formState:{errors:T}}=ag({mode:"onChange",defaultValues:{id:"",title:"",description:"",icon:"",link:"",component:"",parent:"",role:[]}});v.useEffect(()=>{ht.forEach(E=>x(E,h.formState[E][h.locale]))},[x,h.locale]);const k=lg({control:b}),C=k.component,D=k.title,w=k.description,R=k.link,I=k.parent;v.useEffect(()=>{h.formState.title[h.locale]=D},[D]),v.useEffect(()=>{h.formState.description[h.locale]=w},[w]),v.useEffect(()=>{h.formState.link[h.locale]=R},[R]),v.useEffect(()=>{i?.(k)},[k,i]);const P=v.useMemo(()=>n.find(O=>C?r.find(V=>V.name===C).did===O.id:O.id===I),[r,n,C,I]),L=v.useMemo(()=>{if(P?.component){const E=r.find(ee=>ee.name===P.component),{link:O}=E||{},j=Yt(O)?O[h.locale]:O;if(C)return Zi(j);const V=Yt(P.link)?P.link[h.locale]:P.link;return Zi(Oe(j,V||"/"))}return null},[r,h.locale,P,C]),N=v.useMemo(()=>{const{component:E}=P||{},O=r.find(ee=>ee.name===E),{navigation:j=[]}=O||{};return Ae.flattenNavigation(j,{transform(ee,ae){return ae?.section&&(ee.section=ee.section||ae.section),ee}}).filter(ee=>ee.link).filter(ee=>Ae.isMatchSection(ee.section,t)).map(ee=>({label:ee.link,title:ee.title[s]||ee.title}))},[P,r,t,s]),G=oe(()=>{h.isRoot=!0,h.locale=u,h.type=Ts,h.linkDisabled=!1,h.formState=d(),y(),_(),p.current=()=>{}}),z=oe((E={})=>(h.localeList.length>0&&ht.forEach(O=>{Wg(h.formState[O]).length>1&&(E[O]=h.formState[O])}),Bo(E.role)&&(E.role=void 0),E)),F=oe(({parent:E}={},O=()=>{})=>{h.type="add",h.isRoot=!E,x("parent",E?.id),p.current=j=>{O(j)}}),W=oe((E={},O=()=>{})=>{const{id:j,icon:V,parent:ee,component:ae,role:de=[]}=E;x("id",j),x("icon",V),E.from==="team-tmpl"&&(h.linkDisabled=!0);const be=f(E),Re=(Ie,Ee)=>{Cc(Ie)?h.formState[Ee]=be.reduce((We,Pe)=>(We[Pe]=Ie,We),{[u]:Ie}):Yt(Ie)?h.formState[Ee]=nt(Ie):h.formState[Ee]={}};ht.forEach(Ie=>Re(E[Ie],Ie)),ht.forEach(Ie=>x(Ie,h.formState[Ie][h.locale])),x("component",ae),x("parent",ee),x("role",de||[]),h.type="edit",h.isRoot=!ee,p.current=Ie=>{const Ee=Jp(Ie,["id","title","description","icon","component","link","role"]);O(Ee)}}),H=oe(E=>{const O=E?.trim();if(t!=="bottomNavigation"){if(!O)return l("common.requiredErrorText",{name:l("navigation.form.title")});if(O.length>_s)return l("navigation.form.titleTooLong",{len:_s})}return!0}),J=oe(E=>{const O=E?.trim();return O&&O.length>Ds?l("navigation.form.descriptionTooLong",{len:Ds}):!0}),Z=oe(E=>E?.startsWith("/")?new URL(E,window.location.origin).href:E),Y=oe(async E=>{const O=E?.trim();if(O){if(Fo(Z(O)))return!0;try{await jo(O)}catch{return l("navigation.form.invalidIcon")}}return!0}),X=oe(E=>{const O=E?.trim();return O?Y(O):l("common.requiredErrorText",{name:l("navigation.form.icon")})}),U=oe(E=>{const O=E?.trim();return O?Ae.checkLink(O)?!0:l("navigation.form.invalidLink"):h.isRoot?!0:l("common.requiredErrorText",{name:l("navigation.form.link")})}),re=oe(E=>{h.locale=E,ht.forEach(O=>{h.formState[O][E]||(h.formState[O][E]="")}),setTimeout(()=>{_()})}),ne=oe(()=>{const{title:E,link:O}=h.formState;if(t!=="bottomNavigation")for(const j of Object.keys(E)){const V=H(E[j]);if(V!==!0)return V}for(const j of Object.keys(O)){const V=U(O[j]);if(V!==!0)return V}return!0}),ce=oe(E=>{const O=ne();O===!0?p.current(z(E)):Tr.error(O)}),B=oe(E=>{h.locale=u,ht.forEach(O=>{h.formState[O]=At(h.formState[O],E)}),i?.(k)}),$=oe(E=>{h.locale=E,ht.forEach(O=>{h.formState[O][E]=h.formState[O][u]}),i?.(k),setTimeout(()=>{_()})});return v.useImperativeHandle(e,()=>({add:F,edit:W,resetImmediate:()=>G(),reset:()=>setTimeout(()=>G(),0),submit:m(ce)}),[F,G,W,m,ce]),g.jsxs(te,{...o,children:[g.jsx(zd,{sx:{mb:1},onAdd:$,onChange:re,onRemoveLocale:B,defaultLocale:u,locale:h.locale,localeMap:c,locales:h.localeList}),g.jsxs("form",{noValidate:!0,autoComplete:"off",children:[t!=="bottomNavigation"&&g.jsx(gt,{name:"title",control:b,rules:{validate:H},render:({field:E})=>g.jsx(Jt,{fullWidth:!0,variant:"outlined",margin:"dense",required:!0,placeholder:l("navigation.form.titlePlaceholder"),label:l("navigation.form.title"),disabled:h.isEdit,error:!!T?.title?.message,helperText:T?.title?.message||" ",...E})}),t==="bottomNavigation"?g.jsx(gt,{name:"icon",control:b,rules:{validate:X},render:({field:E})=>g.jsx(Io,{fullWidth:!0,required:!0,variant:"outlined",margin:"dense",placeholder:l("navigation.form.iconPlaceholder"),label:l("navigation.form.icon"),error:!!T?.icon?.message,helperText:T?.icon?.message,disabled:h.locale!==u,methods:["select"],iconifyShape:"url",...E})}):g.jsx(gt,{name:"icon",control:b,rules:{validate:Y},render:({field:E})=>g.jsx(Io,{fullWidth:!0,variant:"outlined",margin:"dense",placeholder:l("navigation.form.iconPlaceholder"),label:l("navigation.form.icon"),error:!!T?.icon?.message,helperText:T?.icon?.message,disabled:h.locale!==u,...E})}),h.isRoot&&g.jsx(gt,{name:"component",control:b,render:({field:E})=>g.jsx(ro,{fullWidth:!0,margin:"dense",disabled:h.locale!==u&&E.value,label:l("navigation.form.component"),placeholder:l("navigation.form.componentPlaceholder"),options:r.map(O=>({title:O.title,value:O.name,description:O.link})),error:!!T?.component?.message,helperText:T?.component?.message||" ",...At(E,"ref")})}),!h.isRoot&&["header"].includes(t)&&g.jsx(gt,{name:"description",control:b,rules:{validate:J},render:({field:E})=>g.jsx(Jt,{fullWidth:!0,variant:"outlined",margin:"dense",placeholder:l("navigation.form.descriptionPlaceholder"),label:l("navigation.form.description"),disabled:h.isEdit,error:!!T?.description?.message,helperText:T?.description?.message||" ",...E})}),g.jsx(gt,{name:"link",control:b,rules:{validate:U},render:({field:E})=>g.jsx(Ic,{fullWidth:!0,margin:"dense",children:g.jsx(fg,{disablePortal:!0,freeSolo:!0,blurOnSelect:!0,autoSelect:!0,fullWidth:!0,disabled:h.linkDisabled,isOptionEqualToValue:O=>O.label,options:N,renderInput:O=>g.jsx(Jt,{...O,placeholder:l("navigation.form.linkPlaceholder"),label:l("navigation.form.link"),error:!!T?.link?.message,helperText:T?.link?.message||"/abc/bcd or /abc or https://arcblock.io",slotProps:{input:{startAdornment:L?g.jsx(Xi,{position:"start",sx:{textDecoration:I1(R||"")?"line-through":""},children:L}):null}}}),renderOption:(O,j)=>g.jsxs(te,{component:"li",...O,children:[j.label,g.jsx(ye,{component:"span",variant:"body2",sx:{marginLeft:1,color:"text.secondary"},children:j.title})]}),margin:"dense",...E,onChange:()=>{},onInputChange:(O,j)=>{E.onChange(j)}})})}),["dashboard","sessionManager"].includes(t)&&g.jsx(gt,{name:"role",control:b,render:({field:E})=>g.jsx(ro,{fullWidth:!0,multiple:!0,margin:"dense",label:l("navigation.form.role"),placeholder:l("navigation.form.rolePlaceholder"),options:a.map(O=>({title:O.title,value:O.name})),error:!!T?.role?.message,helperText:T?.role?.message||" ",...At(E,"ref")})}),t==="bottomNavigation"&&g.jsx(gt,{name:"title",control:b,rules:{validate:H},render:({field:E})=>g.jsx(Jt,{fullWidth:!0,variant:"outlined",margin:"dense",placeholder:l("navigation.form.titlePlaceholder"),label:l("navigation.form.title"),disabled:h.isEdit,error:!!T?.title?.message,helperText:T?.title?.message||" ",...E})})]})]})}va.propTypes={ref:S.any,section:S.string,components:S.array,rawNavigations:S.array,onChange:S.func};function ma({ref:e=null,section:t="",components:r=[],rawNavigations:n=[]}){const{t:i}=ke(),[o,{setTrue:a,setFalse:l}]=ig(),[s,c]=v.useState("add"),u=v.useRef(null),d=v.useMemo(()=>{const b={add:i("common.create"),edit:i("common.edit")}[s];return b?`${b} ${i("navigation.navigation")}`:"--"},[i,s]),f=v.useCallback(()=>{l(),u.current?.reset()},[l]),p=v.useCallback((m={},b=()=>{})=>{c("add"),u.current?.add(m,y=>b(f,y)),a()},[a,f]),h=v.useCallback((m={},b=()=>{})=>{c("edit"),u.current?.edit(m,y=>b(f,y)),a()},[a,f]);return v.useImperativeHandle(e,()=>({add:p,edit:h,close:f}),[p,h,f]),g.jsx(Qp,{open:o,title:d,keepMounted:!0,onClose:f,sx:{".MuiDialogContent-root":{pt:0}},actions:g.jsx(Rc,{color:"primary",variant:"contained",onClick:()=>u.current?.submit(),children:i("common.confirm")}),children:g.jsx(va,{ref:u,section:t,components:r,rawNavigations:n})})}ma.propTypes={ref:S.any,section:S.string,components:S.array,rawNavigations:S.array};function $d({className:e="",add:t=()=>{},edit:r=()=>{},toggle:n=()=>{},del:i=()=>{},data:o,section:a=""}){const{t:l}=ke(),s=["yaml","team-tmpl"].includes(o.from),c=v.isValidElement(o.subtitle);function u(m){m.preventDefault(),m.stopPropagation()}const d=v.useCallback(m=>{u(m),t(o)},[t,o]),f=v.useCallback(m=>{u(m),r(o)},[r,o]),p=v.useCallback(m=>{u(m),n(o)},[n,o]),h=v.useCallback(m=>{u(m),i(o)},[i,o]);return g.jsxs("div",{className:e,children:[!o.parent&&["header","footer","dashboard"].includes(a)&&g.jsx("span",{title:l(c?"navigation.action.noAddSub":"navigation.action.addSub"),children:g.jsx(Ge,{size:"small",color:"success",onClick:d,disabled:c,children:g.jsx(xe,{icon:"mdi:plus-box-outline"})})}),g.jsx("span",{title:l(c?"navigation.action.noEdit":"navigation.action.edit"),children:g.jsx(Ge,{size:"small",color:"primary",onClick:f,disabled:c||o.from==="team-tmpl",children:g.jsx(xe,{icon:"mdi:pencil-outline"})})}),g.jsx("span",{title:c?l("navigation.action.noEdit"):o.visible?l("navigation.action.hide"):l("navigation.action.show"),children:g.jsx(Ge,{size:"small",color:"warning",onClick:p,disabled:c,children:o.visible===!1?g.jsx(xe,{icon:"mdi:eye-off-outline"}):g.jsx(xe,{icon:"mdi:eye-outline"})})}),g.jsx("span",{title:l(s&&!c?"navigation.action.noDel":"navigation.action.del"),children:g.jsx(Ge,{disabled:s&&!c,size:"small",color:"error",onClick:h,children:g.jsx(xe,{icon:"mdi:delete"})})})]})}$d.propTypes={data:S.object.isRequired,className:S.string,add:S.func,edit:S.func,toggle:S.func,del:S.func,section:S.string};const En=window?.blocklet?.groupPrefix||window?.blocklet?.prefix||"/",N1=e=>{const t={...e},r=e?.background;return typeof r=="string"?t.background={header:r,footer:r,default:r}:r&&typeof r=="object"&&(t.background={header:r.header||r.default,footer:r.footer||r.default,default:r.default}),t},M1=(e,t="en",r="en")=>{if(typeof e=="string"){if(Od(e)){const i=new URL(e);return i.searchParams.set("locale",t),i.href}if(Nd(e))return e;const n=new URL(e,window.location.origin);return n.searchParams.set("locale",t),n.pathname+n.search}return typeof e=="object"?e[t]||e[r]||e.en:e},rr=({navigation:e,locale:t,defaultLocale:r,section:n="header"})=>{if(!e?.length)return e;const i=(o,a)=>o&&typeof o=="object"?o[a]||o[r]||o.en:o;return Gt(e,o=>({...o,title:i(o.title,t),description:i(o.description,t),link:Wo(o.items?.length?o.link:M1(o.link,t,r),n),_rawLink:o.link}),"items")},A1=e=>Gt(e,t=>t.role?{...t,role:Array.isArray(t.role)?t.role:[t.role]}:t,"items"),L1=e=>{if(!e?.length)return null;const t=A1(e),r={header:[],footer:[],social:[],bottom:[],dashboard:[],sessionManager:[],userCenter:[]};return t.forEach(n=>{n.section?Array.isArray(n.section)?n.section.forEach(i=>{r[i]?.push(n)}):typeof n.section=="string"&&r[n.section]?.push(n):r.header.push(n)}),r},ba=e=>{if(!e)return null;const t={...e};return t.theme=N1(t.theme),t.navigation=L1(z1(t.navigation)),t},z1=(e=[])=>pa(e,(t,r)=>!!t.link||r.filteredChildren?.length,"items"),Gd=(e,t)=>pa(e,(r,n)=>{const i=!r.role||t&&(r.role.includes(t)||r.role.includes("guest"));return n.isLeaf?i:i&&n.filteredChildren?.length},"items"),j1={top:-960,width:960,height:960,body:'<path fill="currentColor" d="M510-600v-210q0-12.75 8.625-21.375T540-840h270q12.75 0 21.375 8.625T840-810v210q0 12.75-8.625 21.375T810-570H540q-12.75 0-21.375-8.625T510-600M120-480v-330q0-12.75 8.625-21.375T150-840h270q12.75 0 21.375 8.625T450-810v330q0 12.75-8.625 21.375T420-450H150q-12.75 0-21.375-8.625T120-480m390 330v-330q0-12.75 8.625-21.375T540-510h270q12.75 0 21.375 8.625T840-480v330q0 12.75-8.625 21.375T810-120H540q-12.75 0-21.375-8.625T510-150m-390 0v-210q0-12.75 8.625-21.375T150-390h270q12.75 0 21.375 8.625T450-360v210q0 12.75-8.625 21.375T420-120H150q-12.75 0-21.375-8.625T120-150m60-360h210v-270H180zm390 330h210v-270H570zm0-450h210v-150H570zM180-180h210v-150H180zm210-150"/>'},F1={width:24,height:24,body:'<path fill="currentColor" d="M15.95 12.3L11.7 8.05q-.15-.15-.212-.325t-.063-.375q0-.2.063-.375t.212-.325l4.25-4.25q.15-.15.325-.212t.375-.063q.2 0 .375.063t.325.212l4.25 4.25q.15.15.213.325t.062.375q0 .2-.063.375t-.212.325l-4.25 4.25q-.15.15-.325.213t-.375.062q-.2 0-.375-.062t-.325-.213ZM3 10V4q0-.425.288-.713T4 3h6q.425 0 .713.288T11 4v6q0 .425-.288.713T10 11H4q-.425 0-.713-.288T3 10Zm10 10v-6q0-.425.288-.713T14 13h6q.425 0 .713.288T21 14v6q0 .425-.288.713T20 21h-6q-.425 0-.713-.288T13 20ZM3 20v-6q0-.425.288-.713T4 13h6q.425 0 .713.288T11 14v6q0 .425-.288.713T10 21H4q-.425 0-.713-.288T3 20ZM5 9h4V5H5v4Zm11.675 1.2L19.5 7.375L16.675 4.55L13.85 7.375l2.825 2.825ZM15 19h4v-4h-4v4ZM5 19h4v-4H5v4ZM9 9Zm4.85-1.625ZM9 15Zm6 0Z"/>'};function B1({session:e,locale:t="zh",size:r=24,popperType:n="click",sx:i,...o}){const a=window?.blocklet||{},l=(a.navigation||[]).filter(p=>p.section==="sessionManager"&&!["/sessionManager"].includes(p.id)).filter(p=>!!(p?.role||[]).includes(e?.user?.role||"guest")).map(p=>{const h=(a?.componentMountPoints||[]).find(m=>p.component===m.name);return{...p,component:h}}),s=et(),c=v.useRef(null),u=ur({open:!1}),d=oe((p=!u.open)=>{u.open=p}),f=n==="hover"?{onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1)}:{onClick:()=>d()};return l.length===0||!e?.user?null:g.jsxs(te,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",...i},...o,...f,children:[g.jsx(Ge,{size:"medium",ref:c,children:g.jsx(xe,{icon:j1,fontSize:r,style:{transform:"scale(1.08)"}})}),g.jsx(Xp,{open:u.open,anchorEl:c.current,transition:!0,placement:"bottom-end",sx:{zIndex:1600},children:({TransitionProps:p})=>g.jsx(Zp,{onClickAway:h=>{h.preventDefault(),h.stopPropagation(),d(!1)},children:g.jsx(_c,{...p,timeout:350,children:g.jsxs(Mr,{variant:"outlined",sx:{borderRadius:1.5,width:350,maxWidth:"90vw",p:2},children:[g.jsx(eh,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, 100px)",gridAutoRows:"minmax(100px, max-content)",justifyContent:"space-between",maxHeight:350,overflowY:"auto",p:0},children:l.map(h=>g.jsx(th,{disablePadding:!0,children:g.jsxs(pg,{href:Ha(h.link,t),sx:{p:1,display:"flex",flexDirection:"column",alignItems:"center",gap:1,width:"100%",height:"100%",borderRadius:1,"&:hover":{backgroundColor:"action.hover"}},children:[h?.component?.did?g.jsx(te,{component:"img",src:`${Dc}/blocklet/logo-bundle/${h.component.did}`,sx:{borderRadius:1,width:50,height:50,objectFit:"contain"},alt:"SessionBlocklet component icon"}):g.jsx(xe,{fontSize:50,icon:h.icon||F1,color:s.palette.text.secondary}),g.jsx(ye,{sx:{fontSize:"12px",color:"text.primary",textAlign:"center",lineHeight:"normal"},children:Ha(h.title,t)})]})},h.id))}),g.jsx(rh,{session:e,children:g.jsx(Rc,{variant:"outlined",fullWidth:!0,href:nh,sx:{mt:1},children:t==="zh"?"管理":"Manage"})})]})})})})]})}const Wd=S.shape({appLogo:S.node,appName:S.string,theme:S.shape({background:S.string}),enableConnect:S.bool,enableLocale:S.bool,navigation:S.arrayOf(S.shape({title:S.oneOfType([S.string,S.object]),link:S.oneOfType([S.string,S.object]),icon:S.string,items:S.arrayOf(S.shape({title:S.oneOfType([S.string,S.object]),link:S.oneOfType([S.string,S.object])}))}))}),Hd=S.shape({showText:S.bool,showRole:S.bool,switchDid:S.bool,switchProfile:S.bool,switchPassport:S.bool,disableLogout:S.bool,onLogin:S.func,onLogout:S.func,onSwitchDid:S.func,onSwitchProfile:S.func,onSwitchPassport:S.func,menu:S.array,menuRender:S.func,dark:S.bool,size:S.number,profileUrl:S.string,renderUserButton:S.func}),$1=["admin","owner"],G1=e=>e.endsWith(".ip.abtnet.io"),W1=e=>e.endsWith(".did.abtnet.io"),H1={en:{guest:{title:"Notice: You are using a temporary domain",description:"You are accessing this site through a temporary domain. For a better experience, please contact the site administrator to configure a custom domain. Using a custom domain not only makes access more convenient but also ensures your access is more secure."},owner:{title:"Enhance Your Website Security",description:"Dear administrator, we recommend configuring your custom domain immediately, which will:",benefits1:"Automatically obtain HTTPS certificates to ensure secure data transmission",benefits2:"Create an exclusive brand image and increase website credibility",benefits3:"Get a shorter, more memorable access address",benefits4:"Provide visitors with a more professional experience",benefits5:"Domain configuration takes just minutes to complete, taking your website to the next level!"},skip:"Remind Me Later",bindDomain:"Configure Domain"},zh:{guest:{title:"温馨提示:当前使用的是临时域名",description:"您正在通过临时域名访问本站点。为了获得更好的访问体验,请联系站点管理员配置自定义域名。使用自定义域名不仅访问更便捷,还能确保您的访问更加安全。"},owner:{title:"提升网站安全性与专业度",description:"尊敬的管理员,我们建议您尽快配置自定义域名,这样可以:",benefits1:"自动获取 HTTPS 证书,确保数据传输安全",benefits2:"打造专属品牌形象,提升网站可信度",benefits3:"获得更简短、易记的访问地址",benefits4:"为访客提供更专业的访问体验",benefits5:"只需几分钟即可完成域名配置,全面提升您的网站品质!"},skip:"稍后提醒",bindDomain:"配置域名"}},U1=1e3*60*60*24*30,ks=".well-known/service/admin/domains";function Ud({locale:e="en",session:t={}}){const r=t?.user,n=Uc(),[i,o]=v.useState(()=>{const f=window.localStorage.getItem("domain-warning-skip");if(!f)return!0;const p=+new Date,h=+new Date(f);return p-h>U1}),a=oe((f,p={})=>Lo(H1,f,e,"en",p)),l=v.useMemo(()=>{try{const{hostname:f}=new URL(window.location.href);return f}catch{return""}},[]),s=v.useMemo(()=>[a("owner.benefits1"),a("owner.benefits2"),a("owner.benefits3"),a("owner.benefits4"),a("owner.benefits5")],[a]),c=v.useCallback(()=>{window.localStorage.setItem("domain-warning-skip",new Date().toISOString()),o(!1)},[]),u=v.useCallback(()=>{const f=Oe(window.location.origin,ks);f.startsWith("http")&&window.open(f,"_blank"),o(!1)},[]),d=r?.role&&$1.includes(r.role);return window.location.href.includes(ks)||n||!G1(l)&&!W1(l)?null:g.jsxs(ih,{open:i,disableEscapeKeyDown:!0,fullWidth:!0,maxWidth:"sm",onClose:()=>o(!1),children:[g.jsxs(oh,{sx:{padding:"20px !important"},children:[g.jsx(ye,{sx:{fontSize:"20px",fontWeight:"500"},children:a(d?"owner.title":"guest.title")}),g.jsx(ye,{sx:{marginTop:"20px",fontSize:"14px",color:"text.secondary"},children:a(d?"owner.description":"guest.description")}),d&&g.jsx(te,{component:"ul",children:s.map(f=>g.jsx(ye,{component:"li",sx:{fontSize:"14px",color:"text.secondary"},children:f},f))})]}),g.jsxs(ah,{sx:{px:"12px !important"},children:[g.jsx(ir,{onClick:c,children:a("skip")}),d&&g.jsx(ir,{variant:"contained",onClick:u,children:a("bindDomain")})]})]})}Ud.propTypes={locale:S.string,session:S.object};var V1=(e,t=!1)=>{const r=lh(["@arcblock/ws",e].join(":"));return{debug:r,warn:r,info:r,trace:t?r:console.error,error:t?r:console.error}},q1=(e,t,r)=>class extends e{constructor(i,o={}){super(i,{transport:r,...o}),this._logger=V1("client",o.silent),this.emitter=new t,this.onOpen(()=>{this._logger.debug("socket open",i)}),this.onClose(()=>{this._logger.debug("socket close",i)}),this.onError(a=>{this._logger.error("socket error",a.error)}),this.onMessage(a=>{this._logger.debug("socket message",a)})}on(i,o,a={}){this.ensureJoinChannel(i,a),this.emitter.on(i,o)}off(i,o){o?this.emitter.off(i,o):this.emitter.removeAllListeners(i),this.ensureLeaveChannel(i)}disconnect(i,o,a){this.emitter.eventNames().forEach(l=>{this.emitter.removeAllListeners(l)}),super.disconnect(i,o,a)}ensureJoinChannel(i,o={}){if(this.emitter.listenerCount(i)>0)return;const a=this.channel(i,o);a.join().receive("ok",l=>{this._logger.debug("join success",{topic:i,message:l})}).receive("error",l=>{this._logger.error("join error",{topic:i,error:l})}).receive("timeout",()=>{this._logger.debug("join timeout",{topic:i})}),a.on(i,({status:l,response:s})=>{l==="ok"?this.emitter.emit(i,s):this._logger.debug("response error",{topic:i,status:l,data:s})})}ensureLeaveChannel(i){if(this.emitter.listenerCount(i)>0)return;const o=this.channels.find(a=>a.topic===i);o&&(this.remove(o),o.leave().receive("ok",a=>{this._logger.debug("leave success",{topic:i,message:a})}).receive("error",a=>{this._logger.error("leave error",{topic:i,err:a})}).receive("timeout",()=>{this._logger.debug("leave timeout",{topic:i})}),o.off(i))}subscribe(i,o={}){let a=this.channels.find(l=>l.topic===i);return a||(a=this.channel(i,o),a.join().receive("ok",l=>{this._logger.debug("join success",{topic:i,message:l})}).receive("error",l=>{this._logger.error("join error",{topic:i,error:l})}).receive("timeout",()=>{this._logger.debug("join timeout",{topic:i})}),a)}unsubscribe(i){this.ensureLeaveChannel(i)}},K1=q1(ch,sh);const Me={};function Y1(e="admin"){let t="/";!window?.blocklet&&window?.env?.apiPrefix&&(t=window.env.apiPrefix);const r=Oe(t,Dc,e);return new K1(r,{heartbeatIntervalMs:100*1e3})}function J1(e="admin"){return Me[e]||(Me[e]=Y1(e)),Me[e]}const Q1=(e="admin")=>{const t=v.use(Zn),{session:r}=t??{},n=_e(()=>r.user?.did,[r.user]),i=uh(n);return dh(()=>{Object.keys(Me).forEach(o=>{Me[o]?.isConnected()&&Me[o]?.disconnect(),delete Me[o]})}),n?(i&&i!==n&&Object.keys(Me).forEach(o=>{Me[o]&&(Me[o].isConnected()&&Me[o].disconnect(),Me[o].connect())}),!Me[e]&&r.user&&(Me[e]=J1(e),Me[e].connect()),Me[e]):null},X1={width:24,height:24,body:'<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M3 12a9 9 0 1 0 18 0a9 9 0 1 0-18 0"/><path d="m9 12l2 2l4-4"/></g>'},Z1={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12a9 9 0 1 0 18 0a9 9 0 1 0-18 0m9-3v4m0 3v.01"/>'},ex={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 21a9 9 0 0 0 9-9a9 9 0 0 0-9-9a9 9 0 0 0-9 9a9 9 0 0 0 9 9zM9 8l6 8m0-8l-6 8"/>'};function tx(){const e=et();return[...e.breakpoints.keys].reverse().reduce((t,r)=>{const n=Xr(e.breakpoints.up(r));return!t&&n?r:t},null)||"xs"}const rx=e=>!Bo(e.activity)&&!!e.activity?.type&&!!e.activity?.actor,nx=e=>{if(!e)return null;const{meta:t,target:r}=e;return{metaLink:t?.id,targetLink:r?.id}},ix=async(e,t)=>{try{return await ph().user.getProfileUrl({did:e,locale:t})}catch(r){console.error(r);return}},ox=async(e,t)=>{const{type:r,did:n}=e;return Tc.isSameAddr(r,"did")?await ix(n,t)||Mn.getLink(e):Mn.getLink(e)},ax=async(e,t,r=!0)=>{const n=Mn.toTextList(e);return await Promise.all(n.map(async i=>{if(i instanceof Mn.Link){if(r){const o=await ox(i,t),{type:a,chainId:l,did:s}=i;return Tc.isSameAddr(a,"dapp")?`<em class="dapp" data-type="${a}" data-chain-id="${l}" data-did="${s}">${i.text}</em>`:o?`<a target="_blank" rel="noopener noreferrer" class="link" href="${o}">${i.text}</a>`:`<em class="common" data-type="${a}" data-chain-id="${l}" data-did="${s}">${i.text}</em>`}return i.text}return i})).then(i=>i.join(""))},lx=e=>fh.sanitize(e,{ALLOWED_ATTR:["href","target","rel","class","id","style"]}),sx={comment:(e,t)=>t&&t>1?g.jsxs(g.Fragment,{children:["left ",t," comments on your ",e]}):g.jsxs(g.Fragment,{children:["commented on your ",e]}),like:e=>g.jsxs(g.Fragment,{children:["liked your ",e]}),follow:()=>g.jsx(g.Fragment,{children:"followed you"}),tips:e=>g.jsxs(g.Fragment,{children:["gave tips to your ",e]}),mention:e=>g.jsxs(g.Fragment,{children:["mentioned you in ",e]}),assign:()=>g.jsx(g.Fragment,{children:"assigned you a task"})};function Kt({user:e,color:t=void 0}){const{palette:r}=et(),n=Yn(Oe(dt,"user"),{did:e.did}),i=t||r.text.primary;return g.jsx(kc,{href:n,color:i,target:"_blank",onClick:o=>{o.customPreventRedirect=!0},sx:{fontWeight:600,textDecoration:"none","&:hover":{cursor:"pointer"}},children:e.fullName||"System"})}Kt.displayName="UserLink";function cx({activity:e,users:t,actors:r,extra:n={},mountPoint:i=""}){const{palette:o}=et(),{type:a,target:l}=e||{},{type:s}=l||{},{linkColor:c=o.text.primary}=n||{},u=_e(()=>{if(!Array.isArray(t))return new Map;const b=new Map;return t.forEach(y=>{y?.did&&!b.has(y.did)&&b.set(y.did,y)}),b},[t]),d=_e(()=>Array.isArray(r)?r.map(b=>b?u.get(b)||{did:b,fullName:"System"}:null).filter(Boolean):[],[r,u]),f=oe(()=>{if(!Array.isArray(d)||d.length===0)return null;if(d.length===1)return g.jsx(Kt,{user:d[0],color:c});const b=d.slice(0,-1),y=d[d.length-1];if(d.length===2)return g.jsxs(g.Fragment,{children:[g.jsx(Kt,{user:b[0],color:c})," and ",g.jsx(Kt,{user:y,color:c})]});const x=d.length>3,_=x?d.slice(0,2):b;return g.jsxs(g.Fragment,{children:[_.map((T,k)=>g.jsxs(Q.Fragment,{children:[g.jsx(Kt,{user:T,color:c}),k<_.length-1?", ":""]},T.did)),x?`, and ${d.length-2} others`:g.jsxs(g.Fragment,{children:[", and ",g.jsx(Kt,{user:y,color:c})]})]})}),p=oe(()=>{const b=a?sx[a]:null;return b?b(s,t.length):null}),h=_e(()=>{const b=f(),y=p();return!b||!y?null:g.jsxs(g.Fragment,{children:[b," ",y]})},[a,s,d,f,p]),m=_e(()=>{if(!e)return null;const b=nx(e);return b?.targetLink?Oe(i,b.targetLink):null},[e,i]);return!a||Bo(l)?null:g.jsxs(g.Fragment,{children:[h," ",m&&g.jsx(kc,{href:m,color:c,target:"_blank",sx:{textDecoration:"none"},onClick:b=>{b.customPreventRedirect=!0},children:l.name})]})}const ux={normal:Ua,success:X1,info:Ua,warning:Z1,error:ex},dx=dr(mh)`
66
66
  font-size: 20px;
67
67
  `,fx=dr.div`
68
68
  display: flex;
@@ -129,7 +129,7 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStat
129
129
  color: ${eo.white};
130
130
  }
131
131
  }
132
- `;function mx({ref:e=void 0,keyId:t,notification:r={},viewAllUrl:n,content:i=null}){const o=tx(),[a,l]=v.useState(r.description||""),s=ux[r.severity||""],{closeSnackbar:c}=Ec(),u=()=>c(t);v.useEffect(()=>{ax(r.description||"","en").then(b=>{l(b)})},[r.description]);const d=b=>{b.stopPropagation(),c(t),b?.customPreventRedirect||window.open(n,"_blank")},f=_e(()=>rx(r),[r]),p=_e(()=>r?.activity,[r]),h=_e(()=>!p||p.type==="tips"?null:p?.meta,[p]),m=cx({activity:p,users:[r?.actorInfo],actors:[r?.activity?.actor],extra:{linkColor:eo.white}});return g.jsxs(gx,{ref:e,severity:r.severity,breakpoint:o,children:[g.jsxs(fx,{children:[s?g.jsx(xe,{icon:s,fontSize:24}):null,g.jsx(vx,{onClick:d,style:{width:"calc(100% - 30px)"},children:g.jsx(te,{children:f?g.jsxs(g.Fragment,{children:[g.jsx("span",{className:"title",children:m}),h?g.jsx(ye,{variant:"subtitle2",component:"p",sx:{fontSize:16,display:"-webkit-box",overflow:"hidden",textOverflow:"ellipsis",WebkitLineClamp:3,WebkitBoxOrient:"vertical",color:eo.white,lineHeight:1.2},children:h?.content}):null]}):g.jsxs(g.Fragment,{children:[g.jsx("span",{className:"title",children:r.title}),i||g.jsx(ye,{component:"span",className:"desc",dangerouslySetInnerHTML:{__html:lx(a)}})]})})})]}),g.jsx(px,{children:g.jsx(Ge,{"aria-label":"close",color:"inherit",onClick:u,size:"large",children:g.jsx(dx,{})},"close")})]})}const _o=Oe(dt,"user","notifications"),bx=e=>Yn(_o,{id:e.id,severity:e.severity||"all",componentDid:e.source==="system"?"system":e.componentDid||"all"});function Vd({session:e={}}){const{unReadCount:t,user:r,setUnReadCount:n}=e,i=_e(()=>r?.did,[r]),o=_e(()=>r?.role&&[Va.ADMIN,Va.OWNER].includes(r?.role),[r?.role]),{enqueueSnackbar:a}=Ec(),l=Pc(),s=v.useMemo(()=>!i||r?.isPreviewUser||i===window.blocklet.did,[i,r]),c=v.useMemo(()=>l.arcSphere||l.wallet,[l]),u=_e(()=>window.blocklet?.serverVersion,[]),d=Q1("user"),f=_e(()=>`${window.blocklet.did}/${i}/${qa.NOTIFICATION_BLOCKLET_CREATE}`,[i]),p=_e(()=>`${window.blocklet.did}/${i}/${qa.NOTIFICATION_BLOCKLET_READ}`,[i]),h=v.useCallback(b=>{const{receivers:y,source:x}=b??{},{receiver:_}=y[0]??{};if(_===i&&(o||x!=="system")){n(k=>k+1);const T=bh(u,"1.16.42-beta-20250407");if(!c&&b.source==="component"&&T){const k=bx(b),{severity:C,description:D}=b||{},w=["error","warning"].includes(C)||b.sticky;a(D,{variant:C,autoHideDuration:w?null:5e3,anchorOrigin:{vertical:"top",horizontal:"center"},content:R=>g.jsx(mx,{viewAllUrl:k,keyId:R,notification:b})})}}},[i,n,a,u,c,o]),m=v.useCallback(b=>{const{receiver:y,readCount:x}=b??{};y===i&&n(_=>Math.max(_-x,0))},[i,n]);return v.useEffect(()=>(d&&!s&&(d.on(f,h),d.on(p,m)),()=>{d&&!s&&(d.off(f,h),d.off(p,m))}),[d,n,h,f,m,p,s]),!e.user||!_o?null:g.jsx(Ge,{size:"medium",variant:"outlined",href:Yn(_o,{read:t<=0}),sx:{"&:hover":{borderRadius:"50%"}},children:g.jsx(yh,{badgeContent:t,color:"error",invisible:t===0,children:g.jsx(xh,{style:{width:"auto",height:24}})})})}Vd.propTypes={session:S.object};const yx=()=>!!(window?.blocklet?.navigation??[]).find(e=>e.id==="/userCenter/notification");function ya({formattedBlocklet:e,addons:t=null,showDomainWarningDialog:r=!0,sessionManagerProps:n={showRole:!0}}){const i=v.use(Zn),{locale:o,languages:a,defaultLocale:l}=ke()||{},{enableConnect:s=!0,enableLocale:c=!0}=e,u=!!i?.session?.user;let d=rr({navigation:e?.navigation?.sessionManager,locale:o,defaultLocale:l})||[];d=Gd(d,i?.session?.user?.role);const f=(()=>{if(t&&typeof t!="function")return Array.isArray(t)?t:[t];let m=[];if(yx()&&m.push(g.jsx(Vd,{session:i.session},"notification-addon")),c&&o&&a.length>1&&m.push(g.jsx(Sh,{showText:!1},"locale-selector")),m.push(g.jsx(wh,{},"theme-mode-toggle")),s&&i){const b=[];u&&(d?d.slice(0,5):[]).forEach(y=>{b.push({label:y.title,icon:y.icon?g.jsx("iconify-icon",{icon:y.icon,height:24,style:{marginRight:8}}):null,component:"a",href:y.link,key:y.link})}),m.push(g.jsx(B1,{session:i.session,locale:o},"session-blocklet")),m.push(g.jsx(Ch,{session:i.session,locale:o,menu:b,showRole:!0,...n},"session-user"))}return typeof t=="function"&&(m=t(m)||[]),m})(),p=Array.isArray(f)?f:[f],h=[r?g.jsx(Ud,{session:i?.session,locale:o}):null,...p].filter(Boolean);return v.createElement(g.Fragment,null,...h)}ya.propTypes={formattedBlocklet:S.object.isRequired,addons:S.oneOfType([S.func,S.node]),sessionManagerProps:Hd,showDomainWarningDialog:S.bool};const qd=()=>{const e=Pc();v.useEffect(()=>{(e.wallet||e.arcSphere)&&Ih.call("arcHideTopBar","{}")},[e])},xx="blocklet-ui-react-embed-mode";function Kd(e){const t=e.displayName||e.name||"Component";function r(n){const[i]=vg(xx,{defaultValue:0,listenStorageChange:!0});return i===1?null:g.jsx(e,{...n})}return r.displayName=`withHideWhenEmbed(${t})`,r}const Sx={en:{products:"Products"},zh:{products:"产品"},"zh-TW":{products:"產品"},ja:{products:"製品"}},wx=e=>{if(!e?.length)return{navItems:[],activeId:null};let t=1;const r=Gt(e,o=>{const a=o.icon?g.jsx(it,{icon:o.icon}):null;if(o.items)return{id:`${t++}`,label:o.title,icon:a,children:o.items};let l={};return(o.link?.startsWith("http")||o.link?.startsWith("//"))&&(l={target:"_blank",rel:"noreferrer"}),{id:`${t++}`,label:g.jsx("a",{href:Wo(o.link,"header"),...l,children:o.title}),icon:a,description:o.description,link:o.link}},"items"),n=Pd(r),i=Ad(n.map(o=>o.link));return{navItems:r,activeId:i>=0?n[i].id:null}};function Cx({meta:e={},addons:t=void 0,sessionManagerProps:r={showRole:!0},homeLink:n=En,theme:i={},hideNavMenu:o=!1,showDomainWarningDialog:a=!0,...l}){qd();const s=et(),{locale:c,defaultLocale:u}=ke()||{},d=oe((k,C={})=>Lo(Sx,k,c,"en",C)),f=v.useMemo(()=>{const k=Object.assign({},window.blocklet,e);try{return ba(k)}catch(C){return console.error("Failed to format blocklet info",C,k),k}},[e]),p=v.useMemo(()=>Ac(s,i),[s,i]),h=$o({meta:e,theme:i}),{productsOrder:m,productsType:b}=v.useMemo(()=>{let{USE_ARCBLOCK_THEME:k,USE_AIGNE_THEME:C}=f;return k=parseInt(k,10),C=parseInt(C,10),al(C)?{productsOrder:C,productsType:"AIGNE"}:al(k)?{productsOrder:k,productsType:"ARCBLOCK"}:{productsOrder:null,productsType:null}},[f]);if(!f.appName)return null;const y=rr({navigation:f?.navigation?.header,locale:c,defaultLocale:u}),x=wx(y),{navItems:_,activeId:T}=x;return b&&Number.isInteger(m)&&_.splice(m,0,{label:d("products"),children:()=>g.jsx($g,{type:b})}),g.jsx(Mc,{theme:p,children:g.jsx(Ix,{homeLink:n,logo:g.jsx("img",{src:h,alt:"logo"}),addons:g.jsx(ya,{formattedBlocklet:f,addons:typeof t=="function"?k=>t(k,{navigation:x}):t,sessionManagerProps:r,showDomainWarningDialog:a}),...Mt(l,["bordered"]),$bordered:l?.bordered,$bgcolor:p.palette.background.default,className:mt("blocklet__header",l.className),children:o||!_?.length?null:({isMobile:k})=>g.jsx(_h,{mode:k?"inline":"horizontal",activeId:T,items:_,className:"header-nav",bgColor:"transparent",textColor:p.palette.grey[500],activeTextColor:p.palette.text.primary})})})}const Ix=je(Rh)`
132
+ `;function mx({ref:e=void 0,keyId:t,notification:r={},viewAllUrl:n,content:i=null}){const o=tx(),[a,l]=v.useState(r.description||""),s=ux[r.severity||""],{closeSnackbar:c}=Ec(),u=()=>c(t);v.useEffect(()=>{ax(r.description||"","en").then(b=>{l(b)})},[r.description]);const d=b=>{b.stopPropagation(),c(t),b?.customPreventRedirect||window.open(n,"_blank")},f=_e(()=>rx(r),[r]),p=_e(()=>r?.activity,[r]),h=_e(()=>!p||p.type==="tips"?null:p?.meta,[p]),m=cx({activity:p,users:[r?.actorInfo],actors:[r?.activity?.actor],extra:{linkColor:eo.white}});return g.jsxs(gx,{ref:e,severity:r.severity,breakpoint:o,children:[g.jsxs(fx,{children:[s?g.jsx(xe,{icon:s,fontSize:24}):null,g.jsx(vx,{onClick:d,style:{width:"calc(100% - 30px)"},children:g.jsx(te,{children:f?g.jsxs(g.Fragment,{children:[g.jsx("span",{className:"title",children:m}),h?g.jsx(ye,{variant:"subtitle2",component:"p",sx:{fontSize:16,display:"-webkit-box",overflow:"hidden",textOverflow:"ellipsis",WebkitLineClamp:3,WebkitBoxOrient:"vertical",color:eo.white,lineHeight:1.2},children:h?.content}):null]}):g.jsxs(g.Fragment,{children:[g.jsx("span",{className:"title",children:r.title}),i||g.jsx(ye,{component:"span",className:"desc",dangerouslySetInnerHTML:{__html:lx(a)}})]})})})]}),g.jsx(px,{children:g.jsx(Ge,{"aria-label":"close",color:"inherit",onClick:u,size:"large",children:g.jsx(dx,{})},"close")})]})}const _o=Oe(dt,"user","notifications"),bx=e=>Yn(_o,{id:e.id,severity:e.severity||"all",componentDid:e.source==="system"?"system":e.componentDid||"all"});function Vd({session:e={}}){const{unReadCount:t,user:r,setUnReadCount:n}=e,i=_e(()=>r?.did,[r]),o=_e(()=>r?.role&&[Va.ADMIN,Va.OWNER].includes(r?.role),[r?.role]),{enqueueSnackbar:a}=Ec(),l=Pc(),s=v.useMemo(()=>!i||r?.isPreviewUser||i===window.blocklet.did,[i,r]),c=v.useMemo(()=>l.arcSphere||l.wallet,[l]),u=_e(()=>window.blocklet?.serverVersion,[]),d=Q1("user"),f=_e(()=>`${window.blocklet.did}/${i}/${qa.NOTIFICATION_BLOCKLET_CREATE}`,[i]),p=_e(()=>`${window.blocklet.did}/${i}/${qa.NOTIFICATION_BLOCKLET_READ}`,[i]),h=v.useCallback(b=>{const{receivers:y,source:x}=b??{},{receiver:_}=y[0]??{};if(_===i&&(o||x!=="system")){n(k=>k+1);const T=bh(u,"1.16.42-beta-20250407");if(!c&&b.source==="component"&&T){const k=bx(b),{severity:C,description:D}=b||{},w=["error","warning"].includes(C)||b.sticky;a(D,{variant:C,autoHideDuration:w?null:5e3,anchorOrigin:{vertical:"top",horizontal:"center"},content:R=>g.jsx(mx,{viewAllUrl:k,keyId:R,notification:b})})}}},[i,n,a,u,c,o]),m=v.useCallback(b=>{const{receiver:y,readCount:x}=b??{};y===i&&n(_=>Math.max(_-x,0))},[i,n]);return v.useEffect(()=>(d&&!s&&(d.on(f,h),d.on(p,m)),()=>{d&&!s&&(d.off(f,h),d.off(p,m))}),[d,n,h,f,m,p,s]),!e.user||!_o?null:g.jsx(Ge,{size:"medium",variant:"outlined",href:Yn(_o,{read:t<=0}),sx:{"&:hover":{borderRadius:"50%"}},children:g.jsx(yh,{badgeContent:t,color:"error",invisible:t===0,children:g.jsx(xh,{style:{width:"auto",height:24}})})})}Vd.propTypes={session:S.object};const yx=()=>!!(window?.blocklet?.navigation??[]).find(e=>e.id==="/userCenter/notification");function ya({formattedBlocklet:e,addons:t=null,showDomainWarningDialog:r=!0,sessionManagerProps:n={showRole:!0}}){const i=v.use(Zn),{locale:o,languages:a,defaultLocale:l}=ke()||{},{enableConnect:s=!0,enableLocale:c=!0}=e,u=!!i?.session?.user;let d=rr({navigation:e?.navigation?.sessionManager,locale:o,defaultLocale:l})||[];d=Gd(d,i?.session?.user?.role);const f=(()=>{if(t&&typeof t!="function")return Array.isArray(t)?t:[t];let m=[];if(yx()&&m.push(g.jsx(Vd,{session:i.session},"notification-addon")),c&&o&&a.length>1&&m.push(g.jsx(Sh,{showText:!1},"locale-selector")),m.push(g.jsx(wh,{},"theme-mode-toggle")),s&&i){const b=[];u&&(d?d.slice(0,5):[]).forEach(y=>{b.push({label:y.title,icon:y.icon?g.jsx("iconify-icon",{icon:y.icon,height:24,style:{marginRight:8}}):null,component:"a",href:y.link,key:y.link})}),m.push(g.jsx(B1,{session:i.session,locale:o},"session-blocklet")),m.push(g.jsx(Ch,{session:i.session,locale:o,menu:b,showRole:!0,...n},"session-user"))}return typeof t=="function"&&(m=t(m)||[]),m})(),p=Array.isArray(f)?f:[f],h=[r?g.jsx(Ud,{session:i?.session,locale:o}):null,...p].filter(Boolean);return v.createElement(g.Fragment,null,...h)}ya.propTypes={formattedBlocklet:S.object.isRequired,addons:S.oneOfType([S.func,S.node]),sessionManagerProps:Hd,showDomainWarningDialog:S.bool};const qd=()=>{const e=Pc();v.useEffect(()=>{(e.wallet||e.arcSphere)&&Ih.call("arcHideTopBar","{}")},[e])},xx="blocklet-ui-react-embed-mode";function Kd(e){const t=e.displayName||e.name||"Component";function r(n){const[i]=vg(xx,{defaultValue:0,listenStorageChange:!0});return i===1?null:g.jsx(e,{...n})}return r.displayName=`withHideWhenEmbed(${t})`,r}const Sx={en:{products:"Products"},zh:{products:"产品"},"zh-TW":{products:"產品"},ja:{products:"製品"}},wx=e=>{if(!e?.length)return{navItems:[],activeId:null};let t=1;const r=Gt(e,o=>{const a=o.icon?g.jsx(it,{icon:o.icon}):null;if(o.items)return{id:`${t++}`,label:o.title,icon:a,children:o.items};let l={};return(o.link?.startsWith("http")||o.link?.startsWith("//"))&&(l={target:"_blank",rel:"noreferrer"}),{id:`${t++}`,label:g.jsx("a",{href:Wo(o.link,"header"),...l,children:o.title}),icon:a,description:o.description,link:o.link}},"items"),n=Pd(r),i=Md(n.map(o=>o.link));return{navItems:r,activeId:i>=0?n[i].id:null}};function Cx({meta:e={},addons:t=void 0,sessionManagerProps:r={showRole:!0},homeLink:n=En,theme:i={},hideNavMenu:o=!1,showDomainWarningDialog:a=!0,...l}){qd();const s=et(),{locale:c,defaultLocale:u}=ke()||{},d=oe((k,C={})=>Lo(Sx,k,c,"en",C)),f=v.useMemo(()=>{const k=Object.assign({},window.blocklet,e);try{return ba(k)}catch(C){return console.error("Failed to format blocklet info",C,k),k}},[e]),p=v.useMemo(()=>Mc(s,i),[s,i]),h=$o({meta:e,theme:i}),{productsOrder:m,productsType:b}=v.useMemo(()=>{let{USE_ARCBLOCK_THEME:k,USE_AIGNE_THEME:C}=f;return k=parseInt(k,10),C=parseInt(C,10),al(C)?{productsOrder:C,productsType:"AIGNE"}:al(k)?{productsOrder:k,productsType:"ARCBLOCK"}:{productsOrder:null,productsType:null}},[f]);if(!f.appName)return null;const y=rr({navigation:f?.navigation?.header,locale:c,defaultLocale:u}),x=wx(y),{navItems:_,activeId:T}=x;return b&&Number.isInteger(m)&&_.splice(m,0,{label:d("products"),children:()=>g.jsx($g,{type:b})}),g.jsx(Ac,{theme:p,children:g.jsx(Ix,{homeLink:n,logo:g.jsx("img",{src:h,alt:"logo"}),addons:g.jsx(ya,{formattedBlocklet:f,addons:typeof t=="function"?k=>t(k,{navigation:x}):t,sessionManagerProps:r,showDomainWarningDialog:a}),...At(l,["bordered"]),$bordered:l?.bordered,$bgcolor:p.palette.background.default,className:mt("blocklet__header",l.className),children:o||!_?.length?null:({isMobile:k})=>g.jsx(_h,{mode:k?"inline":"horizontal",activeId:T,items:_,className:"header-nav",bgColor:"transparent",textColor:p.palette.grey[500],activeTextColor:p.palette.text.primary})})})}const Ix=je(Rh)`
133
133
  ${({$bgcolor:e})=>`background-color: ${e||"#fff"};`}
134
134
  .header-logo {
135
135
  min-width: 44px;
@@ -405,18 +405,18 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStat
405
405
  flex-wrap: wrap;
406
406
  gap: 8px;
407
407
  }
408
- `,ef=[{name:"plain",support:(e,t)=>!t.navigation?.length&&!t.socialMedia?.length,component:Zd},{name:"standard",support:()=>!0,component:Xd}],Nx=ef.reduce((e,t)=>({...e,[t.name]:t}),{});function tf({...e}){const{brand:t=null,navigation:r=null,socialMedia:n=null,copyright:i=null,links:o=null,layout:a="auto",...l}=e,s=()=>t?g.jsx(Yd,{...t}):null,c=()=>r?.length?g.jsx(Do,{links:r,minColumns:3}):null,u=()=>n?.length?g.jsx(Jd,{items:n}):null,d=()=>{const m=i?.owner||t?.name;return m?g.jsx(Qd,{owner:m,year:i?.year||void 0}):null},f=()=>o?.length?g.jsx(Do,{flowLayout:!0,links:o}):null,p={brand:s(),navigation:c(),socialMedia:u(),copyright:d(),links:f()};let h=null;if(a==="auto"?h=ef.find(m=>m.support(p,e)).component:h=Nx[a]?.component,!h)throw new Error(`layout ${a} is not supported.`);return g.jsxs(te,{...l,className:mt("blocklet__footer",l.className),sx:[{position:"relative"},...Array.isArray(l.sx)?l.sx:[l.sx]],children:[g.jsx(h,{elements:p,data:e}),g.jsx(te,{sx:{position:"absolute",right:16,bottom:0,fontSize:12,color:"transparent","::selection":{background:"#000",color:"#fff"}},children:window?.blocklet?.version})]})}tf.propTypes={brand:S.shape({name:S.node,description:S.string,logo:S.node}),navigation:S.arrayOf(S.shape({label:S.node,link:S.string})),socialMedia:S.arrayOf(S.shape({icon:S.node,link:S.string})),copyright:S.shape({owner:S.string,year:S.oneOfType([S.string,S.number])}),links:S.arrayOf(S.shape({label:S.node,link:S.string})),layout:S.oneOf(["auto","standard","plain"])};function rf({meta:e={},theme:t={},...r}){const{locale:n,defaultLocale:i}=ke()||{},o=et(),a=v.useMemo(()=>{const b=Object.assign({},window.blocklet,e);try{return ba(b)}catch(y){return console.error("Failed to format blocklet info",y,b),b}},[e]),l=v.useMemo(()=>Ac(o,t),[o,t]),s=$o({key:"xs",meta:e,theme:t});if(!a.appName)return null;const{appName:c,appDescription:u,description:d,copyright:f}=a,p=l.palette.background.default,h={footerNav:rr({navigation:a?.navigation?.footer,locale:n,defaultLocale:i,section:"footer"})||[],socialMedia:rr({navigation:a?.navigation?.social,locale:n,defaultLocale:i,section:"footer"})||[],links:rr({navigation:a?.navigation?.bottom,locale:n,defaultLocale:i,section:"footer"})||[]},m={brand:{name:c,description:u||d,logo:s},navigation:Gt(h.footerNav,b=>({...b,label:b.title,link:b.link}),"items"),copyright:f,socialMedia:h.socialMedia,links:h.links.map(b=>({...b,label:b.title}))};return g.jsx(Mc,{theme:l,children:g.jsx(Ax,{...m,...Mt(r,["bordered"]),$bordered:r?.bordered,$bgcolor:p})})}rf.propTypes={meta:Wd,theme:S.object};const Ax=je(tf)`
408
+ `,ef=[{name:"plain",support:(e,t)=>!t.navigation?.length&&!t.socialMedia?.length,component:Zd},{name:"standard",support:()=>!0,component:Xd}],Nx=ef.reduce((e,t)=>({...e,[t.name]:t}),{});function tf({...e}){const{brand:t=null,navigation:r=null,socialMedia:n=null,copyright:i=null,links:o=null,layout:a="auto",...l}=e,s=()=>t?g.jsx(Yd,{...t}):null,c=()=>r?.length?g.jsx(Do,{links:r,minColumns:3}):null,u=()=>n?.length?g.jsx(Jd,{items:n}):null,d=()=>{const m=i?.owner||t?.name;return m?g.jsx(Qd,{owner:m,year:i?.year||void 0}):null},f=()=>o?.length?g.jsx(Do,{flowLayout:!0,links:o}):null,p={brand:s(),navigation:c(),socialMedia:u(),copyright:d(),links:f()};let h=null;if(a==="auto"?h=ef.find(m=>m.support(p,e)).component:h=Nx[a]?.component,!h)throw new Error(`layout ${a} is not supported.`);return g.jsxs(te,{...l,className:mt("blocklet__footer",l.className),sx:[{position:"relative"},...Array.isArray(l.sx)?l.sx:[l.sx]],children:[g.jsx(h,{elements:p,data:e}),g.jsx(te,{sx:{position:"absolute",right:16,bottom:0,fontSize:12,color:"transparent","::selection":{background:"#000",color:"#fff"}},children:window?.blocklet?.version})]})}tf.propTypes={brand:S.shape({name:S.node,description:S.string,logo:S.node}),navigation:S.arrayOf(S.shape({label:S.node,link:S.string})),socialMedia:S.arrayOf(S.shape({icon:S.node,link:S.string})),copyright:S.shape({owner:S.string,year:S.oneOfType([S.string,S.number])}),links:S.arrayOf(S.shape({label:S.node,link:S.string})),layout:S.oneOf(["auto","standard","plain"])};function rf({meta:e={},theme:t={},...r}){const{locale:n,defaultLocale:i}=ke()||{},o=et(),a=v.useMemo(()=>{const b=Object.assign({},window.blocklet,e);try{return ba(b)}catch(y){return console.error("Failed to format blocklet info",y,b),b}},[e]),l=v.useMemo(()=>Mc(o,t),[o,t]),s=$o({key:"xs",meta:e,theme:t});if(!a.appName)return null;const{appName:c,appDescription:u,description:d,copyright:f}=a,p=l.palette.background.default,h={footerNav:rr({navigation:a?.navigation?.footer,locale:n,defaultLocale:i,section:"footer"})||[],socialMedia:rr({navigation:a?.navigation?.social,locale:n,defaultLocale:i,section:"footer"})||[],links:rr({navigation:a?.navigation?.bottom,locale:n,defaultLocale:i,section:"footer"})||[]},m={brand:{name:c,description:u||d,logo:s},navigation:Gt(h.footerNav,b=>({...b,label:b.title,link:b.link}),"items"),copyright:f,socialMedia:h.socialMedia,links:h.links.map(b=>({...b,label:b.title}))};return g.jsx(Ac,{theme:l,children:g.jsx(Mx,{...m,...At(r,["bordered"]),$bordered:r?.bordered,$bgcolor:p})})}rf.propTypes={meta:Wd,theme:S.object};const Mx=je(tf)`
409
409
  ${({$bordered:e,theme:t})=>`border-top: 1px solid ${e&&t.palette.divider};`}
410
410
  color: ${({theme:e})=>e.palette.text.secondary};
411
411
  ${({$bgcolor:e})=>e&&`background-color: ${e};`}
412
- `,Mx=Oc(Kd(rf),{FallbackComponent:Nc});Th();var Pn={exports:{}},Lx=Pn.exports,Es;function zx(){return Es||(Es=1,(function(e,t){(function(r,n){e.exports=n(Lc())})(Lx,(function(r){function n(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var i=n(r),o={name:"zh-tw",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(a,l){return l==="W"?a+"週":a+"日"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"},meridiem:function(a,l){var s=100*a+l;return s<600?"凌晨":s<900?"早上":s<1100?"上午":s<1300?"中午":s<1800?"下午":"晚上"}};return i.default.locale(o,null,!0),o}))})(Pn)),Pn.exports}zx();var On={exports:{}},jx=On.exports,Ps;function Fx(){return Ps||(Ps=1,(function(e,t){(function(r,n){e.exports=n(Lc())})(jx,(function(r){function n(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var i=n(r),o={name:"ja",weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(a){return a+"日"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiem:function(a){return a<12?"午前":"午後"},relativeTime:{future:"%s後",past:"%s前",s:"数秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}};return i.default.locale(o,null,!0),o}))})(On)),On.exports}Fx();const Bx=(e="")=>e.startsWith("http:")||e.startsWith("https:"),$x=e=>{try{return new URL(e).origin===window.location.origin}catch{return!1}};tt("span")(({theme:e,color:t})=>({position:"relative",display:"inline-block",width:e.spacing(1),height:e.spacing(1),borderRadius:"50%",backgroundColor:t,marginRight:e.spacing(1)}));const bn=tt(te)(({theme:e})=>({position:"relative",display:"inline-flex",alignItems:"center",height:e.spacing(3),paddingLeft:e.spacing(1.5),paddingRight:e.spacing(1.5),border:"1px solid",borderColor:e.palette.divider,borderRadius:e.shape.borderRadius*.5,fontSize:12,overflow:"hidden","& .app-badge-label":{display:"inline-flex",gap:e.spacing(1),alignItems:"center",lineHeight:e.spacing(3),marginLeft:e.spacing(-1.5),paddingLeft:e.spacing(1.5),marginRight:e.spacing(1),fontSize:12,backgroundColor:e.palette.grey[100],color:e.palette.text.secondary,"&::after":{content:'""',height:e.spacing(3),borderRight:"1px solid",borderColor:e.palette.divider,backgroundColor:e.palette.grey[100]}},"& .app-badge-value":{color:e.palette.text.primary,fontSize:12}}));function ln({loading:e=!1,children:t=null,to:r="",...n}){const i=g.jsx(bn,{className:"app-badge",component:r?"a":"div",href:r,...n,children:t});if(e)return g.jsx(In,{variant:"rounded",children:i});if(r){if(Bx(r)){const o=$x(r)?"_self":"_blank";return g.jsx(bn,{className:"app-badge",component:"a",href:r,target:o,rel:"noreferrer noopener",...n,children:t})}return g.jsx(bn,{className:"app-badge",component:hc,to:r,...n,children:t})}return g.jsx(bn,{className:"app-badge",component:"div",...n,children:t})}function Fi({icon:e="",label:t="",value:r="",loading:n=!1,...i}){return g.jsxs(ln,{loading:n,...i,children:[t&&g.jsxs(ye,{className:"app-badge-label",children:[e&&g.jsx(xe,{icon:e}),t]}),g.jsx(ye,{className:"app-badge-value",children:r})]})}function Gx({label:e="",value:t=void 0,trueValue:r=!0,falseValue:n=!1,loading:i=!1,onChange:o=void 0,...a}){const l=et();let s=!1;const c=oe(()=>o?.(!s));return t===r?s=!0:t===n?s=!1:s=!!t,g.jsxs(ln,{loading:i,sx:{cursor:"pointer",backgroundColor:s?"primary.main":"grey.100",borderColor:s?"primary.main":"divider",transition:"background-color 0.3s ease"},onClick:c,...a,children:[g.jsx(ye,{sx:{fontWeight:400,paddingLeft:s?0:l.spacing(2.5),paddingRight:s?l.spacing(2.5):0,color:s?"common.white":"text.secondary",transition:"color 0.3s ease"},children:e}),g.jsx(te,{sx:{width:l.spacing(2.5),height:l.spacing(2.5),borderRadius:`${l.shape.borderRadius*.5}px`,backgroundColor:"common.white",position:"absolute",top:"50%",left:s?`calc(100% - ${l.spacing(3)})`:l.spacing(.5),transform:"translateY(-50%)",transition:"left 0.3s ease",boxShadow:1}})]})}const Gn={primary:e=>e.palette.primary,info:e=>e.palette.info,success:e=>e.palette.success,error:e=>e.palette.error,warning:e=>e.palette.warning},nf=(e,t)=>{if(Gn[t]){const r=Gn[t](e).main;return Mn(r,.1)}return Mn(t,.1)},To=(e,t)=>Gn[t]?Gn[t](e).main:t;function Wx({icon:e="",value:t="",color:r="info",loading:n=!1,...i}){const o=et(),a=To(o,r),l=nf(o,r);return g.jsxs(ln,{loading:n,sx:{borderColor:Mn(a,.2),bgcolor:l},...i,children:[g.jsx(xe,{icon:e||"lucide:orbit",style:{marginRight:6}}),g.jsxs(ye,{className:"app-badge-value",style:{color:a},children:["v ",t]})]})}const Hx=tt("span")(({theme:e,color:t})=>({position:"relative",display:"inline-block",width:e.spacing(1),height:e.spacing(1),borderRadius:"50%",backgroundColor:t,marginRight:e.spacing(1)}));function Ux({value:e="",color:t="primary",loading:r=!1,...n}){const i=et(),o=To(i,t),a=nf(i,t);return g.jsxs(ln,{loading:r,sx:{borderColor:Mn(o,.2),bgcolor:a},...n,children:[g.jsx(Hx,{color:To(i,t)}),g.jsx(ye,{className:"app-badge-value",style:{color:o},children:e})]})}function Vx({value:e="",loading:t=!1,...r}){const n=_e(()=>`DID:${kh(e)?"ETH":"ABT"}`,[e]);return g.jsxs(ln,{loading:t,...r,children:[g.jsx(ye,{className:"app-badge-label",children:n}),g.jsx(ye,{className:"app-badge-value",children:g.jsx(Eh,{inline:!0,size:14,compact:!0,responsive:!1,children:e})})]})}Go.extend(Ph);Go.extend(Oh);const qx=(e,t=0)=>{if(typeof e!="number")return"";const r=Math.abs(e);let n,i="";return r>=1e12?(i="T",n=`${(e/1e12).toFixed(t)}`):r>=1e9?(i="B",n=`${(e/1e9).toFixed(t)}`):r>=1e6?(i="M",n=`${(e/1e6).toFixed(t)}`):r>=1e3?(i="K",n=`${(e/1e3).toFixed(t)}`):n=e.toString(),t>0&&(n=n.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,"")),`${n}${i}`},Kx=(e,t="en")=>e?Go(e).locale(t).fromNow():"",Yx={switch:Gx,version:Wx,state:Ux,did:Vx};function Jx(e){const{locale:t="en"}=ke()||{};if(e.variant==="number"){const{value:r,round:n=0,...i}=e,o=qx(Number(r),n);return g.jsx(Fi,{value:o,...i})}if(e.variant==="time"){const{value:r,...n}=e,i=Kx(r,t);return g.jsx(Fi,{value:i,...n})}if(e.variant){const r=Yx[e.variant];if(r)return g.jsx(r,{...e})}return g.jsx(Fi,{...e})}const of=v.createContext({inService:!1,currentTab:"",TabComponent:null,navItem:void 0,updateAppInfo:()=>{}}),Nr=(e,t,r="en")=>{const n=e?.[t];return zc(n)?n[r]||n.en:n},Qx=(e,t="",r="en")=>{const n=t==="/"?["/"]:t.split("/").filter(Boolean);let i=null,o=0;return e.forEach(a=>{const l=Nr(a,"link",r)||"",s=l==="/"?["/"]:l.split("/").filter(Boolean);if(s.length>n.length)return;let c=!0;for(let u=0;u<s.length;u++)if(s[u]!==n[u]){c=!1;break}c&&s.length>o&&(i=a,o=s.length)}),i};function Xx({path:e=window?.location?.pathname||"",currentTab:t="",meta:r=void 0,children:n=null}){const{locale:i="en"}=ke()||{},o=Zi(e),a=o.startsWith(Nh),l=_e(()=>Object.assign({},window.blocklet,r),[r]),s=_e(()=>{const p=l.navigation?.filter(x=>Array.isArray(x.section)?x.section.includes("dashboard"):x.section==="dashboard"),h=p?.flatMap(x=>x.items||[]),m=Qx(h,o,i);if(!m)return;const b=p.find(x=>x.id===m.parent);let y=Nr(m,"title",i)||"";return a||(y=`${Nr(b,"title",i)||""} - ${y}`),{id:m.id,parent:m.parent,title:y,link:Nr(m,"link",i)||"",description:Nr(m,"description",i)||""}},[e,a,i,l]),[c,u]=v.useState({}),d=oe(p=>{u(h=>({...h,...p}))}),f=v.useMemo(()=>{const{tabs:p=[]}=c,h=p.find(y=>y.value===t);let m=t,b=null;return!h&&p.length>0?(m=p[0].value,b=p[0].render||null):b=h?.render||null,{...c,inService:a,navItem:s,currentTab:m,TabComponent:b,updateAppInfo:d}},[c,s,a,t,d]);return g.jsx(of.Provider,{value:f,children:n})}function Zx(){return v.useContext(of)}function af(){return Xr(e=>e.breakpoints.down("md"))}function Os({sx:e={}}){const t=af();return g.jsx(te,{sx:{mx:t?-2:-3,borderBottom:"1px solid",borderColor:"divider",mt:1.5,mb:1,...e}})}function eS({onTabChange:e=void 0}){const t=af(),{inService:r,navItem:n,icon:i=void 0,name:o="",description:a=void 0,actions:l=void 0,badges:s=[],tabs:c=[],currentTab:u="",updateAppInfo:d}=Zx();return v.useEffect(()=>{r||d({name:n?.title||"",description:n?.description||""})},[n?.title,n?.description,r,d]),o?g.jsxs(te,{className:"app-header",sx:{mt:3,mb:3},children:[g.jsxs(te,{sx:{display:"flex",alignItems:"center",gap:1},children:[i&&g.jsx(te,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:i}),g.jsxs(Ah,{sx:{flexGrow:1},children:[g.jsx(ye,{variant:"h1",sx:{mb:.5},children:o}),a&&g.jsx(ye,{variant:"body2",color:"text.secondary",sx:{lineHeight:1.6,"& a":{color:"primary.main"},maxWidth:980},children:a})]}),!t&&l&&g.jsx(te,{sx:{ml:1},children:l})]}),s.length>0&&g.jsx(te,{sx:{display:"flex",flexWrap:"wrap",gap:1,alignItems:"center",mt:2},children:s.map((f,p)=>v.isValidElement(f)?f:g.jsx(Jx,{...f},f.label||p))}),t&&l&&g.jsx(te,{sx:{mt:t?2:0},children:l}),c.length<=1&&g.jsx(Os,{}),c.length>1&&g.jsxs(g.Fragment,{children:[g.jsx(cg,{tabs:c,current:u,onChange:e,scrollButtons:"auto",sx:{mt:2.5}}),g.jsx(Os,{sx:{mt:0}})]})]}):null}function lf({meta:e=void 0,fallbackUrl:t=En,invalidPathFallback:r=null,headerAddons:n=void 0,sessionManagerProps:i={showRole:!0,onLogout:()=>{window.location.href=En}},links:o=[],showDomainWarningDialog:a=!0,appPath:l=void 0,appTab:s=void 0,onAppTabChange:c=void 0,children:u=void 0,...d}){qd();const f=v.use(Zn)?.session?.user,p=f?.role,{locale:h,defaultLocale:m}=ke()||{},b=v.useMemo(()=>{const D=Object.assign({},window.blocklet,e);try{return ba(D)}catch(w){return console.error("Failed to format blocklet info",w,D),D}},[e]),{localizedNav:y,flattened:x,matchedIndex:_}=v.useMemo(()=>{let D=rr({navigation:b?.navigation?.dashboard,locale:h,defaultLocale:m})||[];D=Gd(D,p),D=Gt(D,I=>{let P=null;return I.icon&&(I.icon.startsWith("http")||I.icon.startsWith("data:")?P=g.jsx(Lh,{src:I.icon}):P=g.jsx("iconify-icon",{height:"100%",width:"100%",icon:I.icon})),{id:I.id,title:I.title,url:I.link,icon:P,external:!0,children:I.items}},"items");const w=Pd(D).filter(I=>!!I.url),R=Ad(w.map(I=>I.url));return R!==-1&&(w[R].active=!0),{localizedNav:D,flattened:w,matchedIndex:R}},[b,h,m,p]),T=typeof o=="function"?o(y):[...y,...o],k=$o({meta:e});if(v.useLayoutEffect(()=>{f&&!x?.length&&t&&(window.location.href=t)},[t]),v.useLayoutEffect(()=>{f&&x?.length&&_===-1&&r&&r()},[r,x,_]),!b.appName)return null;const{appName:C}=b;return g.jsx(Mh,{title:C,fullWidth:!0,sidebarWidth:128,legacy:!1,links:T,...d,headerProps:{homeLink:En,logo:g.jsx("img",{src:k,alt:"logo"}),addons:g.jsx(ya,{formattedBlocklet:b,addons:n,sessionManagerProps:i,showDomainWarningDialog:a}),...d.headerProps},children:g.jsxs(Xx,{path:l,currentTab:s,meta:e,children:[g.jsx(eS,{onTabChange:c}),u]})})}lf.propTypes={meta:Wd,fallbackUrl:S.string,invalidPathFallback:S.func,headerAddons:S.oneOfType([S.func,S.node]),sessionManagerProps:Hd,links:S.oneOfType([S.array,S.func]),showDomainWarningDialog:S.bool,appPath:S.string,appTab:S.string,onAppTabChange:S.func,children:S.node};function sf(e,t){return e?t===e.nodeName?!0:sf(e.parentNode,t):!1}function tS({...e}){return g.jsx("div",{onClick:t=>{sf(t.target,"A")&&t.preventDefault()},...e})}function cf({className:e="",navigation:t=[]}){const{blocklet:r}=Bt(),{locale:n}=ke(),{languages:i}=ha(),o=zh({blocklet:r,square:!0}),a=r?.environments?.find(u=>u.key===Ue.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_COPYRIGHT_OWNER)?.value,l=r?.environments?.find(u=>u.key===Ue.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_COPYRIGHT_YEAR)?.value,s=a||l?{owner:a,year:l}:void 0,c={appId:r.appDid,appLogo:o,appName:r.meta.title,enableConnect:!0,enableLocale:!1,navigation:t,copyright:s};return g.jsx(jh,{translations:hg,locale:n,languages:i,children:g.jsx(tS,{children:g.jsxs(te,{className:e,children:[g.jsx(Rx,{meta:c,showDomainWarningDialog:!1,sx:{".header-container":{maxWidth:"none"}}}),g.jsx(te,{children:g.jsx(lf,{meta:c,invalidPathFallback:()=>{},headerProps:{style:{display:"none"}},hideHtmlTitle:!0,showDomainWarningDialog:!1,children:g.jsx(Ka,{container:!0,spacing:2,children:new Array(6).fill().map((u,d)=>g.jsxs(Ka,{size:4,children:[g.jsx(In,{animation:!1,variant:"rectangular",width:"100%",height:120}),g.jsxs(te,{sx:{pt:.5},children:[g.jsx(In,{animation:!1}),g.jsx(In,{width:"60%",animation:!1})]})]},d))})})}),g.jsx(Mx,{meta:c,sx:{".MuiContainer-root":{maxWidth:"none"}}})]})})})}cf.propTypes={className:S.string,navigation:S.array};const rS=dr(cf)`
412
+ `,Ax=Oc(Kd(rf),{FallbackComponent:Nc});Th();var Pn={exports:{}},Lx=Pn.exports,Es;function zx(){return Es||(Es=1,(function(e,t){(function(r,n){e.exports=n(Lc())})(Lx,(function(r){function n(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var i=n(r),o={name:"zh-tw",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(a,l){return l==="W"?a+"週":a+"日"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"},meridiem:function(a,l){var s=100*a+l;return s<600?"凌晨":s<900?"早上":s<1100?"上午":s<1300?"中午":s<1800?"下午":"晚上"}};return i.default.locale(o,null,!0),o}))})(Pn)),Pn.exports}zx();var On={exports:{}},jx=On.exports,Ps;function Fx(){return Ps||(Ps=1,(function(e,t){(function(r,n){e.exports=n(Lc())})(jx,(function(r){function n(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var i=n(r),o={name:"ja",weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(a){return a+"日"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiem:function(a){return a<12?"午前":"午後"},relativeTime:{future:"%s後",past:"%s前",s:"数秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}};return i.default.locale(o,null,!0),o}))})(On)),On.exports}Fx();const Bx=(e="")=>e.startsWith("http:")||e.startsWith("https:"),$x=e=>{try{return new URL(e).origin===window.location.origin}catch{return!1}};tt("span")(({theme:e,color:t})=>({position:"relative",display:"inline-block",width:e.spacing(1),height:e.spacing(1),borderRadius:"50%",backgroundColor:t,marginRight:e.spacing(1)}));const bn=tt(te)(({theme:e})=>({position:"relative",display:"inline-flex",alignItems:"center",height:e.spacing(3),paddingLeft:e.spacing(1.5),paddingRight:e.spacing(1.5),border:"1px solid",borderColor:e.palette.divider,borderRadius:e.shape.borderRadius*.5,fontSize:12,overflow:"hidden","& .app-badge-label":{display:"inline-flex",gap:e.spacing(1),alignItems:"center",lineHeight:e.spacing(3),marginLeft:e.spacing(-1.5),paddingLeft:e.spacing(1.5),marginRight:e.spacing(1),fontSize:12,backgroundColor:e.palette.grey[100],color:e.palette.text.secondary,"&::after":{content:'""',height:e.spacing(3),borderRight:"1px solid",borderColor:e.palette.divider,backgroundColor:e.palette.grey[100]}},"& .app-badge-value":{color:e.palette.text.primary,fontSize:12}}));function ln({loading:e=!1,children:t=null,to:r="",...n}){const i=g.jsx(bn,{className:"app-badge",component:r?"a":"div",href:r,...n,children:t});if(e)return g.jsx(In,{variant:"rounded",children:i});if(r){if(Bx(r)){const o=$x(r)?"_self":"_blank";return g.jsx(bn,{className:"app-badge",component:"a",href:r,target:o,rel:"noreferrer noopener",...n,children:t})}return g.jsx(bn,{className:"app-badge",component:hc,to:r,...n,children:t})}return g.jsx(bn,{className:"app-badge",component:"div",...n,children:t})}function Fi({icon:e="",label:t="",value:r="",loading:n=!1,...i}){return g.jsxs(ln,{loading:n,...i,children:[t&&g.jsxs(ye,{className:"app-badge-label",children:[e&&g.jsx(xe,{icon:e}),t]}),g.jsx(ye,{className:"app-badge-value",children:r})]})}function Gx({label:e="",value:t=void 0,trueValue:r=!0,falseValue:n=!1,loading:i=!1,onChange:o=void 0,...a}){const l=et();let s=!1;const c=oe(()=>o?.(!s));return t===r?s=!0:t===n?s=!1:s=!!t,g.jsxs(ln,{loading:i,sx:{cursor:"pointer",backgroundColor:s?"primary.main":"grey.100",borderColor:s?"primary.main":"divider",transition:"background-color 0.3s ease"},onClick:c,...a,children:[g.jsx(ye,{sx:{fontWeight:400,paddingLeft:s?0:l.spacing(2.5),paddingRight:s?l.spacing(2.5):0,color:s?"common.white":"text.secondary",transition:"color 0.3s ease"},children:e}),g.jsx(te,{sx:{width:l.spacing(2.5),height:l.spacing(2.5),borderRadius:`${l.shape.borderRadius*.5}px`,backgroundColor:"common.white",position:"absolute",top:"50%",left:s?`calc(100% - ${l.spacing(3)})`:l.spacing(.5),transform:"translateY(-50%)",transition:"left 0.3s ease",boxShadow:1}})]})}const Gn={primary:e=>e.palette.primary,info:e=>e.palette.info,success:e=>e.palette.success,error:e=>e.palette.error,warning:e=>e.palette.warning},nf=(e,t)=>{if(Gn[t]){const r=Gn[t](e).main;return An(r,.1)}return An(t,.1)},To=(e,t)=>Gn[t]?Gn[t](e).main:t;function Wx({icon:e="",value:t="",color:r="info",loading:n=!1,...i}){const o=et(),a=To(o,r),l=nf(o,r);return g.jsxs(ln,{loading:n,sx:{borderColor:An(a,.2),bgcolor:l},...i,children:[g.jsx(xe,{icon:e||"lucide:orbit",style:{marginRight:6}}),g.jsxs(ye,{className:"app-badge-value",style:{color:a},children:["v ",t]})]})}const Hx=tt("span")(({theme:e,color:t})=>({position:"relative",display:"inline-block",width:e.spacing(1),height:e.spacing(1),borderRadius:"50%",backgroundColor:t,marginRight:e.spacing(1)}));function Ux({value:e="",color:t="primary",loading:r=!1,...n}){const i=et(),o=To(i,t),a=nf(i,t);return g.jsxs(ln,{loading:r,sx:{borderColor:An(o,.2),bgcolor:a},...n,children:[g.jsx(Hx,{color:To(i,t)}),g.jsx(ye,{className:"app-badge-value",style:{color:o},children:e})]})}function Vx({value:e="",loading:t=!1,...r}){const n=_e(()=>`DID:${kh(e)?"ETH":"ABT"}`,[e]);return g.jsxs(ln,{loading:t,...r,children:[g.jsx(ye,{className:"app-badge-label",children:n}),g.jsx(ye,{className:"app-badge-value",children:g.jsx(Eh,{inline:!0,size:14,compact:!0,responsive:!1,children:e})})]})}Go.extend(Ph);Go.extend(Oh);const qx=(e,t=0)=>{if(typeof e!="number")return"";const r=Math.abs(e);let n,i="";return r>=1e12?(i="T",n=`${(e/1e12).toFixed(t)}`):r>=1e9?(i="B",n=`${(e/1e9).toFixed(t)}`):r>=1e6?(i="M",n=`${(e/1e6).toFixed(t)}`):r>=1e3?(i="K",n=`${(e/1e3).toFixed(t)}`):n=e.toString(),t>0&&(n=n.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,"")),`${n}${i}`},Kx=(e,t="en")=>e?Go(e).locale(t).fromNow():"",Yx={switch:Gx,version:Wx,state:Ux,did:Vx};function Jx(e){const{locale:t="en"}=ke()||{};if(e.variant==="number"){const{value:r,round:n=0,...i}=e,o=qx(Number(r),n);return g.jsx(Fi,{value:o,...i})}if(e.variant==="time"){const{value:r,...n}=e,i=Kx(r,t);return g.jsx(Fi,{value:i,...n})}if(e.variant){const r=Yx[e.variant];if(r)return g.jsx(r,{...e})}return g.jsx(Fi,{...e})}const of=v.createContext({inService:!1,currentTab:"",TabComponent:null,navItem:void 0,updateAppInfo:()=>{}}),Nr=(e,t,r="en")=>{const n=e?.[t];return zc(n)?n[r]||n.en:n},Qx=(e,t="",r="en")=>{const n=t==="/"?["/"]:t.split("/").filter(Boolean);let i=null,o=0;return e.forEach(a=>{const l=Nr(a,"link",r)||"",s=l==="/"?["/"]:l.split("/").filter(Boolean);if(s.length>n.length)return;let c=!0;for(let u=0;u<s.length;u++)if(s[u]!==n[u]){c=!1;break}c&&s.length>o&&(i=a,o=s.length)}),i};function Xx({path:e=window?.location?.pathname||"",currentTab:t="",meta:r=void 0,children:n=null}){const{locale:i="en"}=ke()||{},o=Zi(e),a=o.startsWith(Nh),l=_e(()=>Object.assign({},window.blocklet,r),[r]),s=_e(()=>{const p=l.navigation?.filter(x=>Array.isArray(x.section)?x.section.includes("dashboard"):x.section==="dashboard"),h=p?.flatMap(x=>x.items||[]),m=Qx(h,o,i);if(!m)return;const b=p.find(x=>x.id===m.parent);let y=Nr(m,"title",i)||"";return a||(y=`${Nr(b,"title",i)||""} - ${y}`),{id:m.id,parent:m.parent,title:y,link:Nr(m,"link",i)||"",description:Nr(m,"description",i)||""}},[e,a,i,l]),[c,u]=v.useState({}),d=oe(p=>{u(h=>({...h,...p}))}),f=v.useMemo(()=>{const{tabs:p=[]}=c,h=p.find(y=>y.value===t);let m=t,b=null;return!h&&p.length>0?(m=p[0].value,b=p[0].render||null):b=h?.render||null,{...c,inService:a,navItem:s,currentTab:m,TabComponent:b,updateAppInfo:d}},[c,s,a,t,d]);return g.jsx(of.Provider,{value:f,children:n})}function Zx(){return v.useContext(of)}function af(){return Xr(e=>e.breakpoints.down("md"))}function Os({sx:e={}}){const t=af();return g.jsx(te,{sx:{mx:t?-2:-3,borderBottom:"1px solid",borderColor:"divider",mt:1.5,mb:1,...e}})}function eS({onTabChange:e=void 0}){const t=af(),{inService:r,navItem:n,icon:i=void 0,name:o="",description:a=void 0,actions:l=void 0,badges:s=[],tabs:c=[],currentTab:u="",updateAppInfo:d}=Zx();return v.useEffect(()=>{r||d({name:n?.title||"",description:n?.description||""})},[n?.title,n?.description,r,d]),o?g.jsxs(te,{className:"app-header",sx:{mt:3,mb:3},children:[g.jsxs(te,{sx:{display:"flex",alignItems:"center",gap:1},children:[i&&g.jsx(te,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:i}),g.jsxs(Mh,{sx:{flexGrow:1},children:[g.jsx(ye,{variant:"h1",sx:{mb:.5},children:o}),a&&g.jsx(ye,{variant:"body2",color:"text.secondary",sx:{lineHeight:1.6,"& a":{color:"primary.main"},maxWidth:980},children:a})]}),!t&&l&&g.jsx(te,{sx:{ml:1},children:l})]}),s.length>0&&g.jsx(te,{sx:{display:"flex",flexWrap:"wrap",gap:1,alignItems:"center",mt:2},children:s.map((f,p)=>v.isValidElement(f)?f:g.jsx(Jx,{...f},f.label||p))}),t&&l&&g.jsx(te,{sx:{mt:t?2:0},children:l}),c.length<=1&&g.jsx(Os,{}),c.length>1&&g.jsxs(g.Fragment,{children:[g.jsx(cg,{tabs:c,current:u,onChange:e,scrollButtons:"auto",sx:{mt:2.5}}),g.jsx(Os,{sx:{mt:0}})]})]}):null}function lf({meta:e=void 0,fallbackUrl:t=En,invalidPathFallback:r=null,headerAddons:n=void 0,sessionManagerProps:i={showRole:!0,onLogout:()=>{window.location.href=En}},links:o=[],showDomainWarningDialog:a=!0,appPath:l=void 0,appTab:s=void 0,onAppTabChange:c=void 0,children:u=void 0,...d}){qd();const f=v.use(Zn)?.session?.user,p=f?.role,{locale:h,defaultLocale:m}=ke()||{},b=v.useMemo(()=>{const D=Object.assign({},window.blocklet,e);try{return ba(D)}catch(w){return console.error("Failed to format blocklet info",w,D),D}},[e]),{localizedNav:y,flattened:x,matchedIndex:_}=v.useMemo(()=>{let D=rr({navigation:b?.navigation?.dashboard,locale:h,defaultLocale:m})||[];D=Gd(D,p),D=Gt(D,I=>{let P=null;return I.icon&&(I.icon.startsWith("http")||I.icon.startsWith("data:")?P=g.jsx(Lh,{src:I.icon}):P=g.jsx("iconify-icon",{height:"100%",width:"100%",icon:I.icon})),{id:I.id,title:I.title,url:I.link,icon:P,external:!0,children:I.items}},"items");const w=Pd(D).filter(I=>!!I.url),R=Md(w.map(I=>I.url));return R!==-1&&(w[R].active=!0),{localizedNav:D,flattened:w,matchedIndex:R}},[b,h,m,p]),T=typeof o=="function"?o(y):[...y,...o],k=$o({meta:e});if(v.useLayoutEffect(()=>{f&&!x?.length&&t&&(window.location.href=t)},[t]),v.useLayoutEffect(()=>{f&&x?.length&&_===-1&&r&&r()},[r,x,_]),!b.appName)return null;const{appName:C}=b;return g.jsx(Ah,{title:C,fullWidth:!0,sidebarWidth:128,legacy:!1,links:T,...d,headerProps:{homeLink:En,logo:g.jsx("img",{src:k,alt:"logo"}),addons:g.jsx(ya,{formattedBlocklet:b,addons:n,sessionManagerProps:i,showDomainWarningDialog:a}),...d.headerProps},children:g.jsxs(Xx,{path:l,currentTab:s,meta:e,children:[g.jsx(eS,{onTabChange:c}),u]})})}lf.propTypes={meta:Wd,fallbackUrl:S.string,invalidPathFallback:S.func,headerAddons:S.oneOfType([S.func,S.node]),sessionManagerProps:Hd,links:S.oneOfType([S.array,S.func]),showDomainWarningDialog:S.bool,appPath:S.string,appTab:S.string,onAppTabChange:S.func,children:S.node};function sf(e,t){return e?t===e.nodeName?!0:sf(e.parentNode,t):!1}function tS({...e}){return g.jsx("div",{onClick:t=>{sf(t.target,"A")&&t.preventDefault()},...e})}function cf({className:e="",navigation:t=[]}){const{blocklet:r}=Bt(),{locale:n}=ke(),{languages:i}=ha(),o=zh({blocklet:r,square:!0}),a=r?.environments?.find(u=>u.key===Ue.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_COPYRIGHT_OWNER)?.value,l=r?.environments?.find(u=>u.key===Ue.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_COPYRIGHT_YEAR)?.value,s=a||l?{owner:a,year:l}:void 0,c={appId:r.appDid,appLogo:o,appName:r.meta.title,enableConnect:!0,enableLocale:!1,navigation:t,copyright:s};return g.jsx(jh,{translations:hg,locale:n,languages:i,children:g.jsx(tS,{children:g.jsxs(te,{className:e,children:[g.jsx(Rx,{meta:c,showDomainWarningDialog:!1,sx:{".header-container":{maxWidth:"none"}}}),g.jsx(te,{children:g.jsx(lf,{meta:c,invalidPathFallback:()=>{},headerProps:{style:{display:"none"}},hideHtmlTitle:!0,showDomainWarningDialog:!1,children:g.jsx(Ka,{container:!0,spacing:2,children:new Array(6).fill().map((u,d)=>g.jsxs(Ka,{size:4,children:[g.jsx(In,{animation:!1,variant:"rectangular",width:"100%",height:120}),g.jsxs(te,{sx:{pt:.5},children:[g.jsx(In,{animation:!1}),g.jsx(In,{width:"60%",animation:!1})]})]},d))})})}),g.jsx(Ax,{meta:c,sx:{".MuiContainer-root":{maxWidth:"none"}}})]})})})}cf.propTypes={className:S.string,navigation:S.array};const rS=dr(cf)`
413
413
  .dashboard {
414
414
  height: auto !important;
415
415
  }
416
416
  .dashboard-content + div {
417
417
  display: none;
418
418
  }
419
- `;var uf=Q.createContext(null);function nS(e){e()}var df=nS,iS=function(t){return df=t},oS=function(){return df};function aS(){var e=oS(),t=null,r=null;return{clear:function(){t=null,r=null},notify:function(){e(function(){for(var i=t;i;)i.callback(),i=i.next})},get:function(){for(var i=[],o=t;o;)i.push(o),o=o.next;return i},subscribe:function(i){var o=!0,a=r={callback:i,next:null,prev:r};return a.prev?a.prev.next=a:t=a,function(){!o||t===null||(o=!1,a.next?a.next.prev=a.prev:r=a.prev,a.prev?a.prev.next=a.next:t=a.next)}}}}var Ns={notify:function(){},get:function(){return[]}};function ff(e,t){var r,n=Ns;function i(d){return s(),n.subscribe(d)}function o(){n.notify()}function a(){u.onStateChange&&u.onStateChange()}function l(){return!!r}function s(){r||(r=t?t.addNestedSub(a):e.subscribe(a),n=aS())}function c(){r&&(r(),r=void 0,n.clear(),n=Ns)}var u={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:a,isSubscribed:l,trySubscribe:s,tryUnsubscribe:c,getListeners:function(){return n}};return u}var pf=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?v.useLayoutEffect:v.useEffect;function lS(e){var t=e.store,r=e.context,n=e.children,i=v.useMemo(function(){var l=ff(t);return{store:t,subscription:l}},[t]),o=v.useMemo(function(){return t.getState()},[t]);pf(function(){var l=i.subscription;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),o!==t.getState()&&l.notifyNestedSubs(),function(){l.tryUnsubscribe(),l.onStateChange=null}},[i,o]);var a=r||uf;return Q.createElement(a.Provider,{value:i},n)}var Bi={exports:{}},ge={};var As;function sS(){if(As)return ge;As=1;var e=60103,t=60106,r=60107,n=60108,i=60114,o=60109,a=60110,l=60112,s=60113,c=60120,u=60115,d=60116,f=60121,p=60122,h=60117,m=60129,b=60131;if(typeof Symbol=="function"&&Symbol.for){var y=Symbol.for;e=y("react.element"),t=y("react.portal"),r=y("react.fragment"),n=y("react.strict_mode"),i=y("react.profiler"),o=y("react.provider"),a=y("react.context"),l=y("react.forward_ref"),s=y("react.suspense"),c=y("react.suspense_list"),u=y("react.memo"),d=y("react.lazy"),f=y("react.block"),p=y("react.server.block"),h=y("react.fundamental"),m=y("react.debug_trace_mode"),b=y("react.legacy_hidden")}function x(N){if(typeof N=="object"&&N!==null){var G=N.$$typeof;switch(G){case e:switch(N=N.type,N){case r:case i:case n:case s:case c:return N;default:switch(N=N&&N.$$typeof,N){case a:case l:case d:case u:case o:return N;default:return G}}case t:return G}}}var _=o,T=e,k=l,C=r,D=d,w=u,R=t,I=i,P=n,L=s;return ge.ContextConsumer=a,ge.ContextProvider=_,ge.Element=T,ge.ForwardRef=k,ge.Fragment=C,ge.Lazy=D,ge.Memo=w,ge.Portal=R,ge.Profiler=I,ge.StrictMode=P,ge.Suspense=L,ge.isAsyncMode=function(){return!1},ge.isConcurrentMode=function(){return!1},ge.isContextConsumer=function(N){return x(N)===a},ge.isContextProvider=function(N){return x(N)===o},ge.isElement=function(N){return typeof N=="object"&&N!==null&&N.$$typeof===e},ge.isForwardRef=function(N){return x(N)===l},ge.isFragment=function(N){return x(N)===r},ge.isLazy=function(N){return x(N)===d},ge.isMemo=function(N){return x(N)===u},ge.isPortal=function(N){return x(N)===t},ge.isProfiler=function(N){return x(N)===i},ge.isStrictMode=function(N){return x(N)===n},ge.isSuspense=function(N){return x(N)===s},ge.isValidElementType=function(N){return typeof N=="string"||typeof N=="function"||N===r||N===i||N===m||N===n||N===s||N===c||N===b||typeof N=="object"&&N!==null&&(N.$$typeof===d||N.$$typeof===u||N.$$typeof===o||N.$$typeof===a||N.$$typeof===l||N.$$typeof===h||N.$$typeof===f||N[0]===p)},ge.typeOf=x,ge}var Ms;function cS(){return Ms||(Ms=1,Bi.exports=sS()),Bi.exports}var uS=cS(),dS=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],fS=["reactReduxForwardedRef"],pS=[],hS=[null,null];function gS(e,t){var r=e[1];return[t.payload,r+1]}function Ls(e,t,r){pf(function(){return e.apply(void 0,t)},r)}function vS(e,t,r,n,i,o,a){e.current=n,t.current=i,r.current=!1,o.current&&(o.current=null,a())}function mS(e,t,r,n,i,o,a,l,s,c){if(e){var u=!1,d=null,f=function(){if(!u){var m=t.getState(),b,y;try{b=n(m,i.current)}catch(x){y=x,d=x}y||(d=null),b===o.current?a.current||s():(o.current=b,l.current=b,a.current=!0,c({type:"STORE_UPDATED",payload:{error:y}}))}};r.onStateChange=f,r.trySubscribe(),f();var p=function(){if(u=!0,r.tryUnsubscribe(),r.onStateChange=null,d)throw d};return p}}var bS=function(){return[null,0]};function yS(e,t){t===void 0&&(t={});var r=t,n=r.getDisplayName,i=n===void 0?function(_){return"ConnectAdvanced("+_+")"}:n,o=r.methodName,a=o===void 0?"connectAdvanced":o,l=r.renderCountProp,s=l===void 0?void 0:l,c=r.shouldHandleStateChanges,u=c===void 0?!0:c,d=r.storeKey,f=d===void 0?"store":d;r.withRef;var p=r.forwardRef,h=p===void 0?!1:p,m=r.context,b=m===void 0?uf:m,y=nr(r,dS),x=b;return function(T){var k=T.displayName||T.name||"Component",C=i(k),D=q({},y,{getDisplayName:i,methodName:a,renderCountProp:s,shouldHandleStateChanges:u,storeKey:f,displayName:C,wrappedComponentName:k,WrappedComponent:T}),w=y.pure;function R(G){return e(G.dispatch,D)}var I=w?v.useMemo:function(G){return G()};function P(G){var z=v.useMemo(function(){var Ee=G.reactReduxForwardedRef,We=nr(G,fS);return[G.context,Ee,We]},[G]),F=z[0],W=z[1],H=z[2],J=v.useMemo(function(){return F&&F.Consumer&&uS.isContextConsumer(Q.createElement(F.Consumer,null))?F:x},[F,x]),Z=v.useContext(J),Y=!!G.store&&!!G.store.getState&&!!G.store.dispatch;Z&&Z.store;var X=Y?G.store:Z.store,U=v.useMemo(function(){return R(X)},[X]),re=v.useMemo(function(){if(!u)return hS;var Ee=ff(X,Y?null:Z.subscription),We=Ee.notifyNestedSubs.bind(Ee);return[Ee,We]},[X,Y,Z]),ne=re[0],ce=re[1],B=v.useMemo(function(){return Y?Z:q({},Z,{subscription:ne})},[Y,Z,ne]),$=v.useReducer(gS,pS,bS),E=$[0],O=E[0],j=$[1];if(O&&O.error)throw O.error;var V=v.useRef(),ee=v.useRef(H),ae=v.useRef(),de=v.useRef(!1),be=I(function(){return ae.current&&H===ee.current?ae.current:U(X.getState(),H)},[X,O,H]);Ls(vS,[ee,V,de,H,be,ae,ce]),Ls(mS,[u,X,ne,U,ee,V,de,ae,ce,j],[X,ne,U]);var Re=v.useMemo(function(){return Q.createElement(T,q({},be,{ref:W}))},[W,T,be]),Ie=v.useMemo(function(){return u?Q.createElement(J.Provider,{value:B},Re):Re},[J,Re,B]);return Ie}var L=w?Q.memo(P):P;if(L.WrappedComponent=T,L.displayName=P.displayName=C,h){var N=Q.forwardRef(function(z,F){return Q.createElement(L,q({},z,{reactReduxForwardedRef:F}))});return N.displayName=C,N.WrappedComponent=T,Ya(N,T)}return Ya(L,T)}}function zs(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function $i(e,t){if(zs(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var i=0;i<r.length;i++)if(!Object.prototype.hasOwnProperty.call(t,r[i])||!zs(e[r[i]],t[r[i]]))return!1;return!0}function xS(e,t){var r={},n=function(a){var l=e[a];typeof l=="function"&&(r[a]=function(){return t(l.apply(void 0,arguments))})};for(var i in e)n(i);return r}function Sa(e){return function(r,n){var i=e(r,n);function o(){return i}return o.dependsOnOwnProps=!1,o}}function js(e){return e.dependsOnOwnProps!==null&&e.dependsOnOwnProps!==void 0?!!e.dependsOnOwnProps:e.length!==1}function hf(e,t){return function(n,i){i.displayName;var o=function(l,s){return o.dependsOnOwnProps?o.mapToProps(l,s):o.mapToProps(l)};return o.dependsOnOwnProps=!0,o.mapToProps=function(l,s){o.mapToProps=e,o.dependsOnOwnProps=js(e);var c=o(l,s);return typeof c=="function"&&(o.mapToProps=c,o.dependsOnOwnProps=js(c),c=o(l,s)),c},o}}function SS(e){return typeof e=="function"?hf(e):void 0}function wS(e){return e?void 0:Sa(function(t){return{dispatch:t}})}function CS(e){return e&&typeof e=="object"?Sa(function(t){return xS(e,t)}):void 0}const IS=[SS,wS,CS];function RS(e){return typeof e=="function"?hf(e):void 0}function _S(e){return e?void 0:Sa(function(){return{}})}const DS=[RS,_S];function TS(e,t,r){return q({},r,e,t)}function kS(e){return function(r,n){n.displayName;var i=n.pure,o=n.areMergedPropsEqual,a=!1,l;return function(c,u,d){var f=e(c,u,d);return a?(!i||!o(f,l))&&(l=f):(a=!0,l=f),l}}}function ES(e){return typeof e=="function"?kS(e):void 0}function PS(e){return e?void 0:function(){return TS}}const OS=[ES,PS];var NS=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function AS(e,t,r,n){return function(o,a){return r(e(o,a),t(n,a),a)}}function MS(e,t,r,n,i){var o=i.areStatesEqual,a=i.areOwnPropsEqual,l=i.areStatePropsEqual,s=!1,c,u,d,f,p;function h(_,T){return c=_,u=T,d=e(c,u),f=t(n,u),p=r(d,f,u),s=!0,p}function m(){return d=e(c,u),t.dependsOnOwnProps&&(f=t(n,u)),p=r(d,f,u),p}function b(){return e.dependsOnOwnProps&&(d=e(c,u)),t.dependsOnOwnProps&&(f=t(n,u)),p=r(d,f,u),p}function y(){var _=e(c,u),T=!l(_,d);return d=_,T&&(p=r(d,f,u)),p}function x(_,T){var k=!a(T,u),C=!o(_,c,T,u);return c=_,u=T,k&&C?m():k?b():C?y():p}return function(T,k){return s?x(T,k):h(T,k)}}function LS(e,t){var r=t.initMapStateToProps,n=t.initMapDispatchToProps,i=t.initMergeProps,o=nr(t,NS),a=r(e,o),l=n(e,o),s=i(e,o),c=o.pure?MS:AS;return c(a,l,s,e,o)}var zS=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function Gi(e,t,r){for(var n=t.length-1;n>=0;n--){var i=t[n](e);if(i)return i}return function(o,a){throw new Error("Invalid value of type "+typeof e+" for "+r+" argument when connecting component "+a.wrappedComponentName+".")}}function jS(e,t){return e===t}function FS(e){var t=e===void 0?{}:e,r=t.connectHOC,n=r===void 0?yS:r,i=t.mapStateToPropsFactories,o=i===void 0?DS:i,a=t.mapDispatchToPropsFactories,l=a===void 0?IS:a,s=t.mergePropsFactories,c=s===void 0?OS:s,u=t.selectorFactory,d=u===void 0?LS:u;return function(p,h,m,b){b===void 0&&(b={});var y=b,x=y.pure,_=x===void 0?!0:x,T=y.areStatesEqual,k=T===void 0?jS:T,C=y.areOwnPropsEqual,D=C===void 0?$i:C,w=y.areStatePropsEqual,R=w===void 0?$i:w,I=y.areMergedPropsEqual,P=I===void 0?$i:I,L=nr(y,zS),N=Gi(p,o,"mapStateToProps"),G=Gi(h,l,"mapDispatchToProps"),z=Gi(m,c,"mergeProps");return n(d,q({methodName:"connect",getDisplayName:function(W){return"Connect("+W+")"},shouldHandleStateChanges:!!p,initMapStateToProps:N,initMapDispatchToProps:G,initMergeProps:z,pure:_,areStatesEqual:k,areOwnPropsEqual:D,areStatePropsEqual:R,areMergedPropsEqual:P},L))}}const gf=FS();iS(xc.unstable_batchedUpdates);var Fs=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function BS(e,t){return!!(e===t||Fs(e)&&Fs(t))}function $S(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!BS(e[r],t[r]))return!1;return!0}function De(e,t){t===void 0&&(t=$S);var r,n=[],i,o=!1;function a(){for(var l=[],s=0;s<arguments.length;s++)l[s]=arguments[s];return o&&r===this&&t(l,n)||(i=e.apply(this,l),o=!0,r=this,n=l),i}return a}function vf(e,t){}vf.bind(null,"warn");vf.bind(null,"error");function Ct(){}function GS(e,t){return q({},e,{},t)}function Je(e,t,r){var n=t.map(function(i){var o=GS(r,i.options);return e.addEventListener(i.eventName,i.fn,o),function(){e.removeEventListener(i.eventName,i.fn,o)}});return function(){n.forEach(function(o){o()})}}var WS="Invariant failed";function Wn(e){this.message=e}Wn.prototype.toString=function(){return this.message};function K(e,t){throw new Wn(WS)}var HS=(function(e){Xn(t,e);function t(){for(var n,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=e.call.apply(e,[this].concat(o))||this,n.callbacks=null,n.unbind=Ct,n.onWindowError=function(l){var s=n.getCallbacks();s.isDragging()&&s.tryAbort();var c=l.error;c instanceof Wn&&l.preventDefault()},n.getCallbacks=function(){if(!n.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return n.callbacks},n.setCallbacks=function(l){n.callbacks=l},n}var r=t.prototype;return r.componentDidMount=function(){this.unbind=Je(window,[{eventName:"error",fn:this.onWindowError}])},r.componentDidCatch=function(i){if(i instanceof Wn){this.setState({});return}throw i},r.componentWillUnmount=function(){this.unbind()},r.render=function(){return this.props.children(this.setCallbacks)},t})(Q.Component),US=`
419
+ `;var uf=Q.createContext(null);function nS(e){e()}var df=nS,iS=function(t){return df=t},oS=function(){return df};function aS(){var e=oS(),t=null,r=null;return{clear:function(){t=null,r=null},notify:function(){e(function(){for(var i=t;i;)i.callback(),i=i.next})},get:function(){for(var i=[],o=t;o;)i.push(o),o=o.next;return i},subscribe:function(i){var o=!0,a=r={callback:i,next:null,prev:r};return a.prev?a.prev.next=a:t=a,function(){!o||t===null||(o=!1,a.next?a.next.prev=a.prev:r=a.prev,a.prev?a.prev.next=a.next:t=a.next)}}}}var Ns={notify:function(){},get:function(){return[]}};function ff(e,t){var r,n=Ns;function i(d){return s(),n.subscribe(d)}function o(){n.notify()}function a(){u.onStateChange&&u.onStateChange()}function l(){return!!r}function s(){r||(r=t?t.addNestedSub(a):e.subscribe(a),n=aS())}function c(){r&&(r(),r=void 0,n.clear(),n=Ns)}var u={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:a,isSubscribed:l,trySubscribe:s,tryUnsubscribe:c,getListeners:function(){return n}};return u}var pf=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?v.useLayoutEffect:v.useEffect;function lS(e){var t=e.store,r=e.context,n=e.children,i=v.useMemo(function(){var l=ff(t);return{store:t,subscription:l}},[t]),o=v.useMemo(function(){return t.getState()},[t]);pf(function(){var l=i.subscription;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),o!==t.getState()&&l.notifyNestedSubs(),function(){l.tryUnsubscribe(),l.onStateChange=null}},[i,o]);var a=r||uf;return Q.createElement(a.Provider,{value:i},n)}var Bi={exports:{}},ge={};var Ms;function sS(){if(Ms)return ge;Ms=1;var e=60103,t=60106,r=60107,n=60108,i=60114,o=60109,a=60110,l=60112,s=60113,c=60120,u=60115,d=60116,f=60121,p=60122,h=60117,m=60129,b=60131;if(typeof Symbol=="function"&&Symbol.for){var y=Symbol.for;e=y("react.element"),t=y("react.portal"),r=y("react.fragment"),n=y("react.strict_mode"),i=y("react.profiler"),o=y("react.provider"),a=y("react.context"),l=y("react.forward_ref"),s=y("react.suspense"),c=y("react.suspense_list"),u=y("react.memo"),d=y("react.lazy"),f=y("react.block"),p=y("react.server.block"),h=y("react.fundamental"),m=y("react.debug_trace_mode"),b=y("react.legacy_hidden")}function x(N){if(typeof N=="object"&&N!==null){var G=N.$$typeof;switch(G){case e:switch(N=N.type,N){case r:case i:case n:case s:case c:return N;default:switch(N=N&&N.$$typeof,N){case a:case l:case d:case u:case o:return N;default:return G}}case t:return G}}}var _=o,T=e,k=l,C=r,D=d,w=u,R=t,I=i,P=n,L=s;return ge.ContextConsumer=a,ge.ContextProvider=_,ge.Element=T,ge.ForwardRef=k,ge.Fragment=C,ge.Lazy=D,ge.Memo=w,ge.Portal=R,ge.Profiler=I,ge.StrictMode=P,ge.Suspense=L,ge.isAsyncMode=function(){return!1},ge.isConcurrentMode=function(){return!1},ge.isContextConsumer=function(N){return x(N)===a},ge.isContextProvider=function(N){return x(N)===o},ge.isElement=function(N){return typeof N=="object"&&N!==null&&N.$$typeof===e},ge.isForwardRef=function(N){return x(N)===l},ge.isFragment=function(N){return x(N)===r},ge.isLazy=function(N){return x(N)===d},ge.isMemo=function(N){return x(N)===u},ge.isPortal=function(N){return x(N)===t},ge.isProfiler=function(N){return x(N)===i},ge.isStrictMode=function(N){return x(N)===n},ge.isSuspense=function(N){return x(N)===s},ge.isValidElementType=function(N){return typeof N=="string"||typeof N=="function"||N===r||N===i||N===m||N===n||N===s||N===c||N===b||typeof N=="object"&&N!==null&&(N.$$typeof===d||N.$$typeof===u||N.$$typeof===o||N.$$typeof===a||N.$$typeof===l||N.$$typeof===h||N.$$typeof===f||N[0]===p)},ge.typeOf=x,ge}var As;function cS(){return As||(As=1,Bi.exports=sS()),Bi.exports}var uS=cS(),dS=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],fS=["reactReduxForwardedRef"],pS=[],hS=[null,null];function gS(e,t){var r=e[1];return[t.payload,r+1]}function Ls(e,t,r){pf(function(){return e.apply(void 0,t)},r)}function vS(e,t,r,n,i,o,a){e.current=n,t.current=i,r.current=!1,o.current&&(o.current=null,a())}function mS(e,t,r,n,i,o,a,l,s,c){if(e){var u=!1,d=null,f=function(){if(!u){var m=t.getState(),b,y;try{b=n(m,i.current)}catch(x){y=x,d=x}y||(d=null),b===o.current?a.current||s():(o.current=b,l.current=b,a.current=!0,c({type:"STORE_UPDATED",payload:{error:y}}))}};r.onStateChange=f,r.trySubscribe(),f();var p=function(){if(u=!0,r.tryUnsubscribe(),r.onStateChange=null,d)throw d};return p}}var bS=function(){return[null,0]};function yS(e,t){t===void 0&&(t={});var r=t,n=r.getDisplayName,i=n===void 0?function(_){return"ConnectAdvanced("+_+")"}:n,o=r.methodName,a=o===void 0?"connectAdvanced":o,l=r.renderCountProp,s=l===void 0?void 0:l,c=r.shouldHandleStateChanges,u=c===void 0?!0:c,d=r.storeKey,f=d===void 0?"store":d;r.withRef;var p=r.forwardRef,h=p===void 0?!1:p,m=r.context,b=m===void 0?uf:m,y=nr(r,dS),x=b;return function(T){var k=T.displayName||T.name||"Component",C=i(k),D=q({},y,{getDisplayName:i,methodName:a,renderCountProp:s,shouldHandleStateChanges:u,storeKey:f,displayName:C,wrappedComponentName:k,WrappedComponent:T}),w=y.pure;function R(G){return e(G.dispatch,D)}var I=w?v.useMemo:function(G){return G()};function P(G){var z=v.useMemo(function(){var Ee=G.reactReduxForwardedRef,We=nr(G,fS);return[G.context,Ee,We]},[G]),F=z[0],W=z[1],H=z[2],J=v.useMemo(function(){return F&&F.Consumer&&uS.isContextConsumer(Q.createElement(F.Consumer,null))?F:x},[F,x]),Z=v.useContext(J),Y=!!G.store&&!!G.store.getState&&!!G.store.dispatch;Z&&Z.store;var X=Y?G.store:Z.store,U=v.useMemo(function(){return R(X)},[X]),re=v.useMemo(function(){if(!u)return hS;var Ee=ff(X,Y?null:Z.subscription),We=Ee.notifyNestedSubs.bind(Ee);return[Ee,We]},[X,Y,Z]),ne=re[0],ce=re[1],B=v.useMemo(function(){return Y?Z:q({},Z,{subscription:ne})},[Y,Z,ne]),$=v.useReducer(gS,pS,bS),E=$[0],O=E[0],j=$[1];if(O&&O.error)throw O.error;var V=v.useRef(),ee=v.useRef(H),ae=v.useRef(),de=v.useRef(!1),be=I(function(){return ae.current&&H===ee.current?ae.current:U(X.getState(),H)},[X,O,H]);Ls(vS,[ee,V,de,H,be,ae,ce]),Ls(mS,[u,X,ne,U,ee,V,de,ae,ce,j],[X,ne,U]);var Re=v.useMemo(function(){return Q.createElement(T,q({},be,{ref:W}))},[W,T,be]),Ie=v.useMemo(function(){return u?Q.createElement(J.Provider,{value:B},Re):Re},[J,Re,B]);return Ie}var L=w?Q.memo(P):P;if(L.WrappedComponent=T,L.displayName=P.displayName=C,h){var N=Q.forwardRef(function(z,F){return Q.createElement(L,q({},z,{reactReduxForwardedRef:F}))});return N.displayName=C,N.WrappedComponent=T,Ya(N,T)}return Ya(L,T)}}function zs(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function $i(e,t){if(zs(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var i=0;i<r.length;i++)if(!Object.prototype.hasOwnProperty.call(t,r[i])||!zs(e[r[i]],t[r[i]]))return!1;return!0}function xS(e,t){var r={},n=function(a){var l=e[a];typeof l=="function"&&(r[a]=function(){return t(l.apply(void 0,arguments))})};for(var i in e)n(i);return r}function Sa(e){return function(r,n){var i=e(r,n);function o(){return i}return o.dependsOnOwnProps=!1,o}}function js(e){return e.dependsOnOwnProps!==null&&e.dependsOnOwnProps!==void 0?!!e.dependsOnOwnProps:e.length!==1}function hf(e,t){return function(n,i){i.displayName;var o=function(l,s){return o.dependsOnOwnProps?o.mapToProps(l,s):o.mapToProps(l)};return o.dependsOnOwnProps=!0,o.mapToProps=function(l,s){o.mapToProps=e,o.dependsOnOwnProps=js(e);var c=o(l,s);return typeof c=="function"&&(o.mapToProps=c,o.dependsOnOwnProps=js(c),c=o(l,s)),c},o}}function SS(e){return typeof e=="function"?hf(e):void 0}function wS(e){return e?void 0:Sa(function(t){return{dispatch:t}})}function CS(e){return e&&typeof e=="object"?Sa(function(t){return xS(e,t)}):void 0}const IS=[SS,wS,CS];function RS(e){return typeof e=="function"?hf(e):void 0}function _S(e){return e?void 0:Sa(function(){return{}})}const DS=[RS,_S];function TS(e,t,r){return q({},r,e,t)}function kS(e){return function(r,n){n.displayName;var i=n.pure,o=n.areMergedPropsEqual,a=!1,l;return function(c,u,d){var f=e(c,u,d);return a?(!i||!o(f,l))&&(l=f):(a=!0,l=f),l}}}function ES(e){return typeof e=="function"?kS(e):void 0}function PS(e){return e?void 0:function(){return TS}}const OS=[ES,PS];var NS=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function MS(e,t,r,n){return function(o,a){return r(e(o,a),t(n,a),a)}}function AS(e,t,r,n,i){var o=i.areStatesEqual,a=i.areOwnPropsEqual,l=i.areStatePropsEqual,s=!1,c,u,d,f,p;function h(_,T){return c=_,u=T,d=e(c,u),f=t(n,u),p=r(d,f,u),s=!0,p}function m(){return d=e(c,u),t.dependsOnOwnProps&&(f=t(n,u)),p=r(d,f,u),p}function b(){return e.dependsOnOwnProps&&(d=e(c,u)),t.dependsOnOwnProps&&(f=t(n,u)),p=r(d,f,u),p}function y(){var _=e(c,u),T=!l(_,d);return d=_,T&&(p=r(d,f,u)),p}function x(_,T){var k=!a(T,u),C=!o(_,c,T,u);return c=_,u=T,k&&C?m():k?b():C?y():p}return function(T,k){return s?x(T,k):h(T,k)}}function LS(e,t){var r=t.initMapStateToProps,n=t.initMapDispatchToProps,i=t.initMergeProps,o=nr(t,NS),a=r(e,o),l=n(e,o),s=i(e,o),c=o.pure?AS:MS;return c(a,l,s,e,o)}var zS=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function Gi(e,t,r){for(var n=t.length-1;n>=0;n--){var i=t[n](e);if(i)return i}return function(o,a){throw new Error("Invalid value of type "+typeof e+" for "+r+" argument when connecting component "+a.wrappedComponentName+".")}}function jS(e,t){return e===t}function FS(e){var t=e===void 0?{}:e,r=t.connectHOC,n=r===void 0?yS:r,i=t.mapStateToPropsFactories,o=i===void 0?DS:i,a=t.mapDispatchToPropsFactories,l=a===void 0?IS:a,s=t.mergePropsFactories,c=s===void 0?OS:s,u=t.selectorFactory,d=u===void 0?LS:u;return function(p,h,m,b){b===void 0&&(b={});var y=b,x=y.pure,_=x===void 0?!0:x,T=y.areStatesEqual,k=T===void 0?jS:T,C=y.areOwnPropsEqual,D=C===void 0?$i:C,w=y.areStatePropsEqual,R=w===void 0?$i:w,I=y.areMergedPropsEqual,P=I===void 0?$i:I,L=nr(y,zS),N=Gi(p,o,"mapStateToProps"),G=Gi(h,l,"mapDispatchToProps"),z=Gi(m,c,"mergeProps");return n(d,q({methodName:"connect",getDisplayName:function(W){return"Connect("+W+")"},shouldHandleStateChanges:!!p,initMapStateToProps:N,initMapDispatchToProps:G,initMergeProps:z,pure:_,areStatesEqual:k,areOwnPropsEqual:D,areStatePropsEqual:R,areMergedPropsEqual:P},L))}}const gf=FS();iS(xc.unstable_batchedUpdates);var Fs=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function BS(e,t){return!!(e===t||Fs(e)&&Fs(t))}function $S(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!BS(e[r],t[r]))return!1;return!0}function De(e,t){t===void 0&&(t=$S);var r,n=[],i,o=!1;function a(){for(var l=[],s=0;s<arguments.length;s++)l[s]=arguments[s];return o&&r===this&&t(l,n)||(i=e.apply(this,l),o=!0,r=this,n=l),i}return a}function vf(e,t){}vf.bind(null,"warn");vf.bind(null,"error");function Ct(){}function GS(e,t){return q({},e,{},t)}function Je(e,t,r){var n=t.map(function(i){var o=GS(r,i.options);return e.addEventListener(i.eventName,i.fn,o),function(){e.removeEventListener(i.eventName,i.fn,o)}});return function(){n.forEach(function(o){o()})}}var WS="Invariant failed";function Wn(e){this.message=e}Wn.prototype.toString=function(){return this.message};function K(e,t){throw new Wn(WS)}var HS=(function(e){Xn(t,e);function t(){for(var n,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=e.call.apply(e,[this].concat(o))||this,n.callbacks=null,n.unbind=Ct,n.onWindowError=function(l){var s=n.getCallbacks();s.isDragging()&&s.tryAbort();var c=l.error;c instanceof Wn&&l.preventDefault()},n.getCallbacks=function(){if(!n.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return n.callbacks},n.setCallbacks=function(l){n.callbacks=l},n}var r=t.prototype;return r.componentDidMount=function(){this.unbind=Je(window,[{eventName:"error",fn:this.onWindowError}])},r.componentDidCatch=function(i){if(i instanceof Wn){this.setState({});return}throw i},r.componentWillUnmount=function(){this.unbind()},r.render=function(){return this.props.children(this.setCallbacks)},t})(Q.Component),US=`
420
420
  Press space bar to start a drag.
421
421
  When dragging you can use the arrow keys to move the item around and escape to cancel.
422
422
  Some screen readers may require you to be in focus mode or to use your pass through key
@@ -452,7 +452,7 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStat
452
452
  `:`
453
453
  The item has been dropped while not over a drop area.
454
454
  `+Bs(t.source)+`
455
- `},Nn={dragHandleUsageInstructions:US,onDragStart:VS,onDragUpdate:qS,onDragEnd:KS},Te={x:0,y:0},Ne=function(t,r){return{x:t.x+r.x,y:t.y+r.y}},Ve=function(t,r){return{x:t.x-r.x,y:t.y-r.y}},It=function(t,r){return t.x===r.x&&t.y===r.y},hr=function(t){return{x:t.x!==0?-t.x:0,y:t.y!==0?-t.y:0}},Ft=function(t,r,n){var i;return n===void 0&&(n=0),i={},i[t]=r,i[t==="x"?"y":"x"]=n,i},Kr=function(t,r){return Math.sqrt(Math.pow(r.x-t.x,2)+Math.pow(r.y-t.y,2))},$s=function(t,r){return Math.min.apply(Math,r.map(function(n){return Kr(t,n)}))},yf=function(t){return function(r){return{x:t(r.x),y:t(r.y)}}},YS=(function(e,t){var r=$t({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return r.width<=0||r.height<=0?null:r}),sn=function(t,r){return{top:t.top+r.y,left:t.left+r.x,bottom:t.bottom+r.y,right:t.right+r.x}},Gs=function(t){return[{x:t.left,y:t.top},{x:t.right,y:t.top},{x:t.left,y:t.bottom},{x:t.right,y:t.bottom}]},JS={top:0,right:0,bottom:0,left:0},QS=function(t,r){return r?sn(t,r.scroll.diff.displacement):t},XS=function(t,r,n){if(n&&n.increasedBy){var i;return q({},t,(i={},i[r.end]=t[r.end]+n.increasedBy[r.line],i))}return t},ZS=function(t,r){return r&&r.shouldClipSubject?YS(r.pageMarginBox,t):$t(t)},lr=(function(e){var t=e.page,r=e.withPlaceholder,n=e.axis,i=e.frame,o=QS(t.marginBox,i),a=XS(o,n,r),l=ZS(a,i);return{page:t,withPlaceholder:r,active:l}}),wa=(function(e,t){e.frame||K();var r=e.frame,n=Ve(t,r.scroll.initial),i=hr(n),o=q({},r,{scroll:{initial:r.scroll.initial,current:t,diff:{value:n,displacement:i},max:r.scroll.max}}),a=lr({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:o}),l=q({},e,{frame:o,subject:a});return l});function Un(e){return Object.values?Object.values(e):Object.keys(e).map(function(t){return e[t]})}function Ca(e,t){if(e.findIndex)return e.findIndex(t);for(var r=0;r<e.length;r++)if(t(e[r]))return r;return-1}function kt(e,t){if(e.find)return e.find(t);var r=Ca(e,t);if(r!==-1)return e[r]}function xf(e){return Array.prototype.slice.call(e)}var Sf=De(function(e){return e.reduce(function(t,r){return t[r.descriptor.id]=r,t},{})}),wf=De(function(e){return e.reduce(function(t,r){return t[r.descriptor.id]=r,t},{})}),li=De(function(e){return Un(e)}),ew=De(function(e){return Un(e)}),gr=De(function(e,t){var r=ew(t).filter(function(n){return e===n.descriptor.droppableId}).sort(function(n,i){return n.descriptor.index-i.descriptor.index});return r});function Ia(e){return e.at&&e.at.type==="REORDER"?e.at.destination:null}function si(e){return e.at&&e.at.type==="COMBINE"?e.at.combine:null}var ci=De(function(e,t){return t.filter(function(r){return r.descriptor.id!==e.descriptor.id})}),tw=(function(e){var t=e.isMovingForward,r=e.draggable,n=e.destination,i=e.insideDestination,o=e.previousImpact;if(!n.isCombineEnabled)return null;var a=Ia(o);if(!a)return null;function l(m){var b={type:"COMBINE",combine:{draggableId:m,droppableId:n.descriptor.id}};return q({},o,{at:b})}var s=o.displaced.all,c=s.length?s[0]:null;if(t)return c?l(c):null;var u=ci(r,i);if(!c){if(!u.length)return null;var d=u[u.length-1];return l(d.descriptor.id)}var f=Ca(u,function(m){return m.descriptor.id===c});f===-1&&K();var p=f-1;if(p<0)return null;var h=u[p];return l(h.descriptor.id)}),vr=(function(e,t){return e.descriptor.droppableId===t.descriptor.id}),Cf={point:Te,value:0},Yr={invisible:{},visible:{},all:[]},rw={displaced:Yr,displacedBy:Cf,at:null},Qe=(function(e,t){return function(r){return e<=r&&r<=t}}),If=(function(e){var t=Qe(e.top,e.bottom),r=Qe(e.left,e.right);return function(n){var i=t(n.top)&&t(n.bottom)&&r(n.left)&&r(n.right);if(i)return!0;var o=t(n.top)||t(n.bottom),a=r(n.left)||r(n.right),l=o&&a;if(l)return!0;var s=n.top<e.top&&n.bottom>e.bottom,c=n.left<e.left&&n.right>e.right,u=s&&c;if(u)return!0;var d=s&&a||c&&o;return d}}),nw=(function(e){var t=Qe(e.top,e.bottom),r=Qe(e.left,e.right);return function(n){var i=t(n.top)&&t(n.bottom)&&r(n.left)&&r(n.right);return i}}),Ra={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},Rf={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},iw=(function(e){return function(t){var r=Qe(t.top,t.bottom),n=Qe(t.left,t.right);return function(i){return e===Ra?r(i.top)&&r(i.bottom):n(i.left)&&n(i.right)}}}),ow=function(t,r){var n=r.frame?r.frame.scroll.diff.displacement:Te;return sn(t,n)},aw=function(t,r,n){return r.subject.active?n(r.subject.active)(t):!1},lw=function(t,r,n){return n(r)(t)},_a=function(t){var r=t.target,n=t.destination,i=t.viewport,o=t.withDroppableDisplacement,a=t.isVisibleThroughFrameFn,l=o?ow(r,n):r;return aw(l,n,a)&&lw(l,i,a)},sw=function(t){return _a(q({},t,{isVisibleThroughFrameFn:If}))},_f=function(t){return _a(q({},t,{isVisibleThroughFrameFn:nw}))},cw=function(t){return _a(q({},t,{isVisibleThroughFrameFn:iw(t.destination.axis)}))},uw=function(t,r,n){if(typeof n=="boolean")return n;if(!r)return!0;var i=r.invisible,o=r.visible;if(i[t])return!1;var a=o[t];return a?a.shouldAnimate:!0};function dw(e,t){var r=e.page.marginBox,n={top:t.point.y,right:0,bottom:0,left:t.point.x};return $t($c(r,n))}function Jr(e){var t=e.afterDragging,r=e.destination,n=e.displacedBy,i=e.viewport,o=e.forceShouldAnimate,a=e.last;return t.reduce(function(s,c){var u=dw(c,n),d=c.descriptor.id;s.all.push(d);var f=sw({target:u,destination:r,viewport:i,withDroppableDisplacement:!0});if(!f)return s.invisible[c.descriptor.id]=!0,s;var p=uw(d,a,o),h={draggableId:d,shouldAnimate:p};return s.visible[d]=h,s},{all:[],visible:{},invisible:{}})}function fw(e,t){if(!e.length)return 0;var r=e[e.length-1].descriptor.index;return t.inHomeList?r:r+1}function Ws(e){var t=e.insideDestination,r=e.inHomeList,n=e.displacedBy,i=e.destination,o=fw(t,{inHomeList:r});return{displaced:Yr,displacedBy:n,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:o}}}}function Vn(e){var t=e.draggable,r=e.insideDestination,n=e.destination,i=e.viewport,o=e.displacedBy,a=e.last,l=e.index,s=e.forceShouldAnimate,c=vr(t,n);if(l==null)return Ws({insideDestination:r,inHomeList:c,displacedBy:o,destination:n});var u=kt(r,function(m){return m.descriptor.index===l});if(!u)return Ws({insideDestination:r,inHomeList:c,displacedBy:o,destination:n});var d=ci(t,r),f=r.indexOf(u),p=d.slice(f),h=Jr({afterDragging:p,destination:n,displacedBy:o,last:a,viewport:i.frame,forceShouldAnimate:s});return{displaced:h,displacedBy:o,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:l}}}}function Tt(e,t){return!!t.effected[e]}var pw=(function(e){var t=e.isMovingForward,r=e.destination,n=e.draggables,i=e.combine,o=e.afterCritical;if(!r.isCombineEnabled)return null;var a=i.draggableId,l=n[a],s=l.descriptor.index,c=Tt(a,o);return c?t?s:s-1:t?s+1:s}),hw=(function(e){var t=e.isMovingForward,r=e.isInHomeList,n=e.insideDestination,i=e.location;if(!n.length)return null;var o=i.index,a=t?o+1:o-1,l=n[0].descriptor.index,s=n[n.length-1].descriptor.index,c=r?s:s+1;return a<l||a>c?null:a}),gw=(function(e){var t=e.isMovingForward,r=e.isInHomeList,n=e.draggable,i=e.draggables,o=e.destination,a=e.insideDestination,l=e.previousImpact,s=e.viewport,c=e.afterCritical,u=l.at;if(u||K(),u.type==="REORDER"){var d=hw({isMovingForward:t,isInHomeList:r,location:u.destination,insideDestination:a});return d==null?null:Vn({draggable:n,insideDestination:a,destination:o,viewport:s,last:l.displaced,displacedBy:l.displacedBy,index:d})}var f=pw({isMovingForward:t,destination:o,displaced:l.displaced,draggables:i,combine:u.combine,afterCritical:c});return f==null?null:Vn({draggable:n,insideDestination:a,destination:o,viewport:s,last:l.displaced,displacedBy:l.displacedBy,index:f})}),vw=(function(e){var t=e.displaced,r=e.afterCritical,n=e.combineWith,i=e.displacedBy,o=!!(t.visible[n]||t.invisible[n]);return Tt(n,r)?o?Te:hr(i.point):o?i.point:Te}),mw=(function(e){var t=e.afterCritical,r=e.impact,n=e.draggables,i=si(r);i||K();var o=i.draggableId,a=n[o].page.borderBox.center,l=vw({displaced:r.displaced,afterCritical:t,combineWith:o,displacedBy:r.displacedBy});return Ne(a,l)}),Df=function(t,r){return r.margin[t.start]+r.borderBox[t.size]/2},bw=function(t,r){return r.margin[t.end]+r.borderBox[t.size]/2},Da=function(t,r,n){return r[t.crossAxisStart]+n.margin[t.crossAxisStart]+n.borderBox[t.crossAxisSize]/2},Hs=function(t){var r=t.axis,n=t.moveRelativeTo,i=t.isMoving;return Ft(r.line,n.marginBox[r.end]+Df(r,i),Da(r,n.marginBox,i))},Us=function(t){var r=t.axis,n=t.moveRelativeTo,i=t.isMoving;return Ft(r.line,n.marginBox[r.start]-bw(r,i),Da(r,n.marginBox,i))},yw=function(t){var r=t.axis,n=t.moveInto,i=t.isMoving;return Ft(r.line,n.contentBox[r.start]+Df(r,i),Da(r,n.contentBox,i))},xw=(function(e){var t=e.impact,r=e.draggable,n=e.draggables,i=e.droppable,o=e.afterCritical,a=gr(i.descriptor.id,n),l=r.page,s=i.axis;if(!a.length)return yw({axis:s,moveInto:i.page,isMoving:l});var c=t.displaced,u=t.displacedBy,d=c.all[0];if(d){var f=n[d];if(Tt(d,o))return Us({axis:s,moveRelativeTo:f.page,isMoving:l});var p=to(f.page,u.point);return Us({axis:s,moveRelativeTo:p,isMoving:l})}var h=a[a.length-1];if(h.descriptor.id===r.descriptor.id)return l.borderBox.center;if(Tt(h.descriptor.id,o)){var m=to(h.page,hr(o.displacedBy.point));return Hs({axis:s,moveRelativeTo:m,isMoving:l})}return Hs({axis:s,moveRelativeTo:h.page,isMoving:l})}),ko=(function(e,t){var r=e.frame;return r?Ne(t,r.scroll.diff.displacement):t}),Sw=function(t){var r=t.impact,n=t.draggable,i=t.droppable,o=t.draggables,a=t.afterCritical,l=n.page.borderBox.center,s=r.at;return!i||!s?l:s.type==="REORDER"?xw({impact:r,draggable:n,draggables:o,droppable:i,afterCritical:a}):mw({impact:r,draggables:o,afterCritical:a})},ui=(function(e){var t=Sw(e),r=e.droppable,n=r?ko(r,t):t;return n}),Tf=(function(e,t){var r=Ve(t,e.scroll.initial),n=hr(r),i=$t({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),o={frame:i,scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:r,displacement:n}}};return o});function Vs(e,t){return e.map(function(r){return t[r]})}function ww(e,t){for(var r=0;r<t.length;r++){var n=t[r].visible[e];if(n)return n}return null}var Cw=(function(e){var t=e.impact,r=e.viewport,n=e.destination,i=e.draggables,o=e.maxScrollChange,a=Tf(r,Ne(r.scroll.current,o)),l=n.frame?wa(n,Ne(n.frame.scroll.current,o)):n,s=t.displaced,c=Jr({afterDragging:Vs(s.all,i),destination:n,displacedBy:t.displacedBy,viewport:a.frame,last:s,forceShouldAnimate:!1}),u=Jr({afterDragging:Vs(s.all,i),destination:l,displacedBy:t.displacedBy,viewport:r.frame,last:s,forceShouldAnimate:!1}),d={},f={},p=[s,c,u];s.all.forEach(function(m){var b=ww(m,p);if(b){f[m]=b;return}d[m]=!0});var h=q({},t,{displaced:{all:s.all,invisible:d,visible:f}});return h}),Iw=(function(e,t){return Ne(e.scroll.diff.displacement,t)}),Ta=(function(e){var t=e.pageBorderBoxCenter,r=e.draggable,n=e.viewport,i=Iw(n,t),o=Ve(i,r.page.borderBox.center);return Ne(r.client.borderBox.center,o)}),kf=(function(e){var t=e.draggable,r=e.destination,n=e.newPageBorderBoxCenter,i=e.viewport,o=e.withDroppableDisplacement,a=e.onlyOnMainAxis,l=a===void 0?!1:a,s=Ve(n,t.page.borderBox.center),c=sn(t.page.borderBox,s),u={target:c,destination:r,withDroppableDisplacement:o,viewport:i};return l?cw(u):_f(u)}),Rw=(function(e){var t=e.isMovingForward,r=e.draggable,n=e.destination,i=e.draggables,o=e.previousImpact,a=e.viewport,l=e.previousPageBorderBoxCenter,s=e.previousClientSelection,c=e.afterCritical;if(!n.isEnabled)return null;var u=gr(n.descriptor.id,i),d=vr(r,n),f=tw({isMovingForward:t,draggable:r,destination:n,insideDestination:u,previousImpact:o})||gw({isMovingForward:t,isInHomeList:d,draggable:r,draggables:i,destination:n,insideDestination:u,previousImpact:o,viewport:a,afterCritical:c});if(!f)return null;var p=ui({impact:f,draggable:r,droppable:n,draggables:i,afterCritical:c}),h=kf({draggable:r,destination:n,newPageBorderBoxCenter:p,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(h){var m=Ta({pageBorderBoxCenter:p,draggable:r,viewport:a});return{clientSelection:m,impact:f,scrollJumpRequest:null}}var b=Ve(p,l),y=Cw({impact:f,viewport:a,destination:n,draggables:i,maxScrollChange:b});return{clientSelection:s,impact:y,scrollJumpRequest:b}}),Le=function(t){var r=t.subject.active;return r||K(),r},_w=(function(e){var t=e.isMovingForward,r=e.pageBorderBoxCenter,n=e.source,i=e.droppables,o=e.viewport,a=n.subject.active;if(!a)return null;var l=n.axis,s=Qe(a[l.start],a[l.end]),c=li(i).filter(function(d){return d!==n}).filter(function(d){return d.isEnabled}).filter(function(d){return!!d.subject.active}).filter(function(d){return If(o.frame)(Le(d))}).filter(function(d){var f=Le(d);return t?a[l.crossAxisEnd]<f[l.crossAxisEnd]:f[l.crossAxisStart]<a[l.crossAxisStart]}).filter(function(d){var f=Le(d),p=Qe(f[l.start],f[l.end]);return s(f[l.start])||s(f[l.end])||p(a[l.start])||p(a[l.end])}).sort(function(d,f){var p=Le(d)[l.crossAxisStart],h=Le(f)[l.crossAxisStart];return t?p-h:h-p}).filter(function(d,f,p){return Le(d)[l.crossAxisStart]===Le(p[0])[l.crossAxisStart]});if(!c.length)return null;if(c.length===1)return c[0];var u=c.filter(function(d){var f=Qe(Le(d)[l.start],Le(d)[l.end]);return f(r[l.line])});return u.length===1?u[0]:u.length>1?u.sort(function(d,f){return Le(d)[l.start]-Le(f)[l.start]})[0]:c.sort(function(d,f){var p=$s(r,Gs(Le(d))),h=$s(r,Gs(Le(f)));return p!==h?p-h:Le(d)[l.start]-Le(f)[l.start]})[0]}),qs=function(t,r){var n=t.page.borderBox.center;return Tt(t.descriptor.id,r)?Ve(n,r.displacedBy.point):n},Dw=function(t,r){var n=t.page.borderBox;return Tt(t.descriptor.id,r)?sn(n,hr(r.displacedBy.point)):n},Tw=(function(e){var t=e.pageBorderBoxCenter,r=e.viewport,n=e.destination,i=e.insideDestination,o=e.afterCritical,a=i.filter(function(l){return _f({target:Dw(l,o),destination:n,viewport:r.frame,withDroppableDisplacement:!0})}).sort(function(l,s){var c=Kr(t,ko(n,qs(l,o))),u=Kr(t,ko(n,qs(s,o)));return c<u?-1:u<c?1:l.descriptor.index-s.descriptor.index});return a[0]||null}),cn=De(function(t,r){var n=r[t.line];return{value:n,point:Ft(t.line,n)}}),kw=function(t,r,n){var i=t.axis;if(t.descriptor.mode==="virtual")return Ft(i.line,r[i.line]);var o=t.subject.page.contentBox[i.size],a=gr(t.descriptor.id,n),l=a.reduce(function(u,d){return u+d.client.marginBox[i.size]},0),s=l+r[i.line],c=s-o;return c<=0?null:Ft(i.line,c)},Ef=function(t,r){return q({},t,{scroll:q({},t.scroll,{max:r})})},Pf=function(t,r,n){var i=t.frame;vr(r,t)&&K(),t.subject.withPlaceholder&&K();var o=cn(t.axis,r.displaceBy).point,a=kw(t,o,n),l={placeholderSize:o,increasedBy:a,oldFrameMaxScroll:t.frame?t.frame.scroll.max:null};if(!i){var s=lr({page:t.subject.page,withPlaceholder:l,axis:t.axis,frame:t.frame});return q({},t,{subject:s})}var c=a?Ne(i.scroll.max,a):i.scroll.max,u=Ef(i,c),d=lr({page:t.subject.page,withPlaceholder:l,axis:t.axis,frame:u});return q({},t,{subject:d,frame:u})},Ew=function(t){var r=t.subject.withPlaceholder;r||K();var n=t.frame;if(!n){var i=lr({page:t.subject.page,axis:t.axis,frame:null,withPlaceholder:null});return q({},t,{subject:i})}var o=r.oldFrameMaxScroll;o||K();var a=Ef(n,o),l=lr({page:t.subject.page,axis:t.axis,frame:a,withPlaceholder:null});return q({},t,{subject:l,frame:a})},Pw=(function(e){var t=e.previousPageBorderBoxCenter,r=e.moveRelativeTo,n=e.insideDestination,i=e.draggable,o=e.draggables,a=e.destination,l=e.viewport,s=e.afterCritical;if(!r){if(n.length)return null;var c={displaced:Yr,displacedBy:Cf,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},u=ui({impact:c,draggable:i,droppable:a,draggables:o,afterCritical:s}),d=vr(i,a)?a:Pf(a,i,o),f=kf({draggable:i,destination:d,newPageBorderBoxCenter:u,viewport:l.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return f?c:null}var p=t[a.axis.line]<=r.page.borderBox.center[a.axis.line],h=(function(){var b=r.descriptor.index;return r.descriptor.id===i.descriptor.id||p?b:b+1})(),m=cn(a.axis,i.displaceBy);return Vn({draggable:i,insideDestination:n,destination:a,viewport:l,displacedBy:m,last:Yr,index:h})}),Ow=(function(e){var t=e.isMovingForward,r=e.previousPageBorderBoxCenter,n=e.draggable,i=e.isOver,o=e.draggables,a=e.droppables,l=e.viewport,s=e.afterCritical,c=_w({isMovingForward:t,pageBorderBoxCenter:r,source:i,droppables:a,viewport:l});if(!c)return null;var u=gr(c.descriptor.id,o),d=Tw({pageBorderBoxCenter:r,viewport:l,destination:c,insideDestination:u,afterCritical:s}),f=Pw({previousPageBorderBoxCenter:r,destination:c,draggable:n,draggables:o,moveRelativeTo:d,insideDestination:u,viewport:l,afterCritical:s});if(!f)return null;var p=ui({impact:f,draggable:n,droppable:c,draggables:o,afterCritical:s}),h=Ta({pageBorderBoxCenter:p,draggable:n,viewport:l});return{clientSelection:h,impact:f,scrollJumpRequest:null}}),qe=(function(e){var t=e.at;return t?t.type==="REORDER"?t.destination.droppableId:t.combine.droppableId:null}),Nw=function(t,r){var n=qe(t);return n?r[n]:null},Aw=(function(e){var t=e.state,r=e.type,n=Nw(t.impact,t.dimensions.droppables),i=!!n,o=t.dimensions.droppables[t.critical.droppable.id],a=n||o,l=a.axis.direction,s=l==="vertical"&&(r==="MOVE_UP"||r==="MOVE_DOWN")||l==="horizontal"&&(r==="MOVE_LEFT"||r==="MOVE_RIGHT");if(s&&!i)return null;var c=r==="MOVE_DOWN"||r==="MOVE_RIGHT",u=t.dimensions.draggables[t.critical.draggable.id],d=t.current.page.borderBoxCenter,f=t.dimensions,p=f.draggables,h=f.droppables;return s?Rw({isMovingForward:c,previousPageBorderBoxCenter:d,draggable:u,destination:a,draggables:p,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):Ow({isMovingForward:c,previousPageBorderBoxCenter:d,draggable:u,isOver:a,draggables:p,droppables:h,viewport:t.viewport,afterCritical:t.afterCritical})});function Nt(e){return e.phase==="DRAGGING"||e.phase==="COLLECTING"}function Of(e){var t=Qe(e.top,e.bottom),r=Qe(e.left,e.right);return function(i){return t(i.y)&&r(i.x)}}function Mw(e,t){return e.left<t.right&&e.right>t.left&&e.top<t.bottom&&e.bottom>t.top}function Lw(e){var t=e.pageBorderBox,r=e.draggable,n=e.candidates,i=r.page.borderBox.center,o=n.map(function(a){var l=a.axis,s=Ft(a.axis.line,t.center[l.line],a.page.borderBox.center[l.crossAxisLine]);return{id:a.descriptor.id,distance:Kr(i,s)}}).sort(function(a,l){return l.distance-a.distance});return o[0]?o[0].id:null}function zw(e){var t=e.pageBorderBox,r=e.draggable,n=e.droppables,i=li(n).filter(function(o){if(!o.isEnabled)return!1;var a=o.subject.active;if(!a||!Mw(t,a))return!1;if(Of(a)(t.center))return!0;var l=o.axis,s=a.center[l.crossAxisLine],c=t[l.crossAxisStart],u=t[l.crossAxisEnd],d=Qe(a[l.crossAxisStart],a[l.crossAxisEnd]),f=d(c),p=d(u);return!f&&!p?!0:f?c<s:u>s});return i.length?i.length===1?i[0].descriptor.id:Lw({pageBorderBox:t,draggable:r,candidates:i}):null}var Nf=function(t,r){return $t(sn(t,r))},jw=(function(e,t){var r=e.frame;return r?Nf(t,r.scroll.diff.value):t});function Af(e){var t=e.displaced,r=e.id;return!!(t.visible[r]||t.invisible[r])}function Fw(e){var t=e.draggable,r=e.closest,n=e.inHomeList;return r?n&&r.descriptor.index>t.descriptor.index?r.descriptor.index-1:r.descriptor.index:null}var Bw=(function(e){var t=e.pageBorderBoxWithDroppableScroll,r=e.draggable,n=e.destination,i=e.insideDestination,o=e.last,a=e.viewport,l=e.afterCritical,s=n.axis,c=cn(n.axis,r.displaceBy),u=c.value,d=t[s.start],f=t[s.end],p=ci(r,i),h=kt(p,function(b){var y=b.descriptor.id,x=b.page.borderBox.center[s.line],_=Tt(y,l),T=Af({displaced:o,id:y});return _?T?f<=x:d<x-u:T?f<=x+u:d<x}),m=Fw({draggable:r,closest:h,inHomeList:vr(r,n)});return Vn({draggable:r,insideDestination:i,destination:n,viewport:a,last:o,displacedBy:c,index:m})}),$w=4,Gw=(function(e){var t=e.draggable,r=e.pageBorderBoxWithDroppableScroll,n=e.previousImpact,i=e.destination,o=e.insideDestination,a=e.afterCritical;if(!i.isCombineEnabled)return null;var l=i.axis,s=cn(i.axis,t.displaceBy),c=s.value,u=r[l.start],d=r[l.end],f=ci(t,o),p=kt(f,function(m){var b=m.descriptor.id,y=m.page.borderBox,x=y[l.size],_=x/$w,T=Tt(b,a),k=Af({displaced:n.displaced,id:b});return T?k?d>y[l.start]+_&&d<y[l.end]-_:u>y[l.start]-c+_&&u<y[l.end]-c-_:k?d>y[l.start]+c+_&&d<y[l.end]+c-_:u>y[l.start]+_&&u<y[l.end]-_});if(!p)return null;var h={displacedBy:s,displaced:n.displaced,at:{type:"COMBINE",combine:{draggableId:p.descriptor.id,droppableId:i.descriptor.id}}};return h}),Mf=(function(e){var t=e.pageOffset,r=e.draggable,n=e.draggables,i=e.droppables,o=e.previousImpact,a=e.viewport,l=e.afterCritical,s=Nf(r.page.borderBox,t),c=zw({pageBorderBox:s,draggable:r,droppables:i});if(!c)return rw;var u=i[c],d=gr(u.descriptor.id,n),f=jw(u,s);return Gw({pageBorderBoxWithDroppableScroll:f,draggable:r,previousImpact:o,destination:u,insideDestination:d,afterCritical:l})||Bw({pageBorderBoxWithDroppableScroll:f,draggable:r,destination:u,insideDestination:d,last:o.displaced,viewport:a,afterCritical:l})}),ka=(function(e,t){var r;return q({},e,(r={},r[t.descriptor.id]=t,r))}),Ww=function(t){var r=t.previousImpact,n=t.impact,i=t.droppables,o=qe(r),a=qe(n);if(!o||o===a)return i;var l=i[o];if(!l.subject.withPlaceholder)return i;var s=Ew(l);return ka(i,s)},Hw=(function(e){var t=e.draggable,r=e.draggables,n=e.droppables,i=e.previousImpact,o=e.impact,a=Ww({previousImpact:i,impact:o,droppables:n}),l=qe(o);if(!l)return a;var s=n[l];if(vr(t,s)||s.subject.withPlaceholder)return a;var c=Pf(s,t,r);return ka(a,c)}),Br=(function(e){var t=e.state,r=e.clientSelection,n=e.dimensions,i=e.viewport,o=e.impact,a=e.scrollJumpRequest,l=i||t.viewport,s=n||t.dimensions,c=r||t.current.client.selection,u=Ve(c,t.initial.client.selection),d={offset:u,selection:c,borderBoxCenter:Ne(t.initial.client.borderBoxCenter,u)},f={selection:Ne(d.selection,l.scroll.current),borderBoxCenter:Ne(d.borderBoxCenter,l.scroll.current),offset:Ne(d.offset,l.scroll.diff.value)},p={client:d,page:f};if(t.phase==="COLLECTING")return q({phase:"COLLECTING"},t,{dimensions:s,viewport:l,current:p});var h=s.draggables[t.critical.draggable.id],m=o||Mf({pageOffset:f.offset,draggable:h,draggables:s.draggables,droppables:s.droppables,previousImpact:t.impact,viewport:l,afterCritical:t.afterCritical}),b=Hw({draggable:h,impact:m,previousImpact:t.impact,draggables:s.draggables,droppables:s.droppables}),y=q({},t,{current:p,dimensions:{draggables:s.draggables,droppables:b},impact:m,viewport:l,scrollJumpRequest:a||null,forceShouldAnimate:a?!1:null});return y});function Uw(e,t){return e.map(function(r){return t[r]})}var Lf=(function(e){var t=e.impact,r=e.viewport,n=e.draggables,i=e.destination,o=e.forceShouldAnimate,a=t.displaced,l=Uw(a.all,n),s=Jr({afterDragging:l,destination:i,displacedBy:t.displacedBy,viewport:r.frame,forceShouldAnimate:o,last:a});return q({},t,{displaced:s})}),zf=(function(e){var t=e.impact,r=e.draggable,n=e.droppable,i=e.draggables,o=e.viewport,a=e.afterCritical,l=ui({impact:t,draggable:r,draggables:i,droppable:n,afterCritical:a});return Ta({pageBorderBoxCenter:l,draggable:r,viewport:o})}),jf=(function(e){var t=e.state,r=e.dimensions,n=e.viewport;t.movementMode!=="SNAP"&&K();var i=t.impact,o=n||t.viewport,a=r||t.dimensions,l=a.draggables,s=a.droppables,c=l[t.critical.draggable.id],u=qe(i);u||K();var d=s[u],f=Lf({impact:i,viewport:o,destination:d,draggables:l}),p=zf({impact:f,draggable:c,droppable:d,draggables:l,viewport:o,afterCritical:t.afterCritical});return Br({impact:f,clientSelection:p,state:t,dimensions:a,viewport:o})}),Vw=(function(e){return{index:e.index,droppableId:e.droppableId}}),Ff=(function(e){var t=e.draggable,r=e.home,n=e.draggables,i=e.viewport,o=cn(r.axis,t.displaceBy),a=gr(r.descriptor.id,n),l=a.indexOf(t);l===-1&&K();var s=a.slice(l+1),c=s.reduce(function(p,h){return p[h.descriptor.id]=!0,p},{}),u={inVirtualList:r.descriptor.mode==="virtual",displacedBy:o,effected:c},d=Jr({afterDragging:s,destination:r,displacedBy:o,last:null,viewport:i.frame,forceShouldAnimate:!1}),f={displaced:d,displacedBy:o,at:{type:"REORDER",destination:Vw(t.descriptor)}};return{impact:f,afterCritical:u}}),qw=(function(e,t){return{draggables:e.draggables,droppables:ka(e.droppables,t)}}),Kw=(function(e){var t=e.draggable,r=e.offset,n=e.initialWindowScroll,i=to(t.client,r),o=Ln(i,n),a=q({},t,{placeholder:q({},t.placeholder,{client:i}),client:i,page:o});return a}),Yw=(function(e){var t=e.frame;return t||K(),t}),Jw=(function(e){var t=e.additions,r=e.updatedDroppables,n=e.viewport,i=n.scroll.diff.value;return t.map(function(o){var a=o.descriptor.droppableId,l=r[a],s=Yw(l),c=s.scroll.diff.value,u=Ne(i,c),d=Kw({draggable:o,offset:u,initialWindowScroll:n.scroll.initial});return d})}),Qw=(function(e){var t=e.state,r=e.published,n=r.modified.map(function(_){var T=t.dimensions.droppables[_.droppableId],k=wa(T,_.scroll);return k}),i=q({},t.dimensions.droppables,{},Sf(n)),o=wf(Jw({additions:r.additions,updatedDroppables:i,viewport:t.viewport})),a=q({},t.dimensions.draggables,{},o);r.removals.forEach(function(_){delete a[_]});var l={droppables:i,draggables:a},s=qe(t.impact),c=s?l.droppables[s]:null,u=l.draggables[t.critical.draggable.id],d=l.droppables[t.critical.droppable.id],f=Ff({draggable:u,home:d,draggables:a,viewport:t.viewport}),p=f.impact,h=f.afterCritical,m=c&&c.isCombineEnabled?t.impact:p,b=Mf({pageOffset:t.current.page.offset,draggable:l.draggables[t.critical.draggable.id],draggables:l.draggables,droppables:l.droppables,previousImpact:m,viewport:t.viewport,afterCritical:h}),y=q({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:b,onLiftImpact:p,dimensions:l,afterCritical:h,forceShouldAnimate:!1});if(t.phase==="COLLECTING")return y;var x=q({phase:"DROP_PENDING"},y,{phase:"DROP_PENDING",reason:t.reason,isWaiting:!1});return x}),Eo=function(t){return t.movementMode==="SNAP"},Wi=function(t,r,n){var i=qw(t.dimensions,r);return!Eo(t)||n?Br({state:t,dimensions:i}):jf({state:t,dimensions:i})};function Hi(e){return e.isDragging&&e.movementMode==="SNAP"?q({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var Ks={phase:"IDLE",completed:null,shouldFlush:!1},Xw=(function(e,t){if(e===void 0&&(e=Ks),t.type==="FLUSH")return q({},Ks,{shouldFlush:!0});if(t.type==="INITIAL_PUBLISH"){e.phase!=="IDLE"&&K();var r=t.payload,n=r.critical,i=r.clientSelection,o=r.viewport,a=r.dimensions,l=r.movementMode,s=a.draggables[n.draggable.id],c=a.droppables[n.droppable.id],u={selection:i,borderBoxCenter:s.client.borderBox.center,offset:Te},d={client:u,page:{selection:Ne(u.selection,o.scroll.initial),borderBoxCenter:Ne(u.selection,o.scroll.initial),offset:Ne(u.selection,o.scroll.diff.value)}},f=li(a.droppables).every(function(j){return!j.isFixedOnPage}),p=Ff({draggable:s,home:c,draggables:a.draggables,viewport:o}),h=p.impact,m=p.afterCritical,b={phase:"DRAGGING",isDragging:!0,critical:n,movementMode:l,dimensions:a,initial:d,current:d,isWindowScrollAllowed:f,impact:h,afterCritical:m,onLiftImpact:h,viewport:o,scrollJumpRequest:null,forceShouldAnimate:null};return b}if(t.type==="COLLECTION_STARTING"){if(e.phase==="COLLECTING"||e.phase==="DROP_PENDING")return e;e.phase!=="DRAGGING"&&K();var y=q({phase:"COLLECTING"},e,{phase:"COLLECTING"});return y}if(t.type==="PUBLISH_WHILE_DRAGGING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"||K(),Qw({state:e,published:t.payload});if(t.type==="MOVE"){if(e.phase==="DROP_PENDING")return e;Nt(e)||K();var x=t.payload.client;return It(x,e.current.client.selection)?e:Br({state:e,clientSelection:x,impact:Eo(e)?e.impact:null})}if(t.type==="UPDATE_DROPPABLE_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="COLLECTING")return Hi(e);Nt(e)||K();var _=t.payload,T=_.id,k=_.newScroll,C=e.dimensions.droppables[T];if(!C)return e;var D=wa(C,k);return Wi(e,D,!1)}if(t.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(e.phase==="DROP_PENDING")return e;Nt(e)||K();var w=t.payload,R=w.id,I=w.isEnabled,P=e.dimensions.droppables[R];P||K(),P.isEnabled===I&&K();var L=q({},P,{isEnabled:I});return Wi(e,L,!0)}if(t.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(e.phase==="DROP_PENDING")return e;Nt(e)||K();var N=t.payload,G=N.id,z=N.isCombineEnabled,F=e.dimensions.droppables[G];F||K(),F.isCombineEnabled===z&&K();var W=q({},F,{isCombineEnabled:z});return Wi(e,W,!0)}if(t.type==="MOVE_BY_WINDOW_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="DROP_ANIMATING")return e;Nt(e)||K(),e.isWindowScrollAllowed||K();var H=t.payload.newScroll;if(It(e.viewport.scroll.current,H))return Hi(e);var J=Tf(e.viewport,H);return Eo(e)?jf({state:e,viewport:J}):Br({state:e,viewport:J})}if(t.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!Nt(e))return e;var Z=t.payload.maxScroll;if(It(Z,e.viewport.scroll.max))return e;var Y=q({},e.viewport,{scroll:q({},e.viewport.scroll,{max:Z})});return q({phase:"DRAGGING"},e,{viewport:Y})}if(t.type==="MOVE_UP"||t.type==="MOVE_DOWN"||t.type==="MOVE_LEFT"||t.type==="MOVE_RIGHT"){if(e.phase==="COLLECTING"||e.phase==="DROP_PENDING")return e;e.phase!=="DRAGGING"&&K();var X=Aw({state:e,type:t.type});return X?Br({state:e,impact:X.impact,clientSelection:X.clientSelection,scrollJumpRequest:X.scrollJumpRequest}):e}if(t.type==="DROP_PENDING"){var U=t.payload.reason;e.phase!=="COLLECTING"&&K();var re=q({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:U});return re}if(t.type==="DROP_ANIMATE"){var ne=t.payload,ce=ne.completed,B=ne.dropDuration,$=ne.newHomeClientOffset;e.phase==="DRAGGING"||e.phase==="DROP_PENDING"||K();var E={phase:"DROP_ANIMATING",completed:ce,dropDuration:B,newHomeClientOffset:$,dimensions:e.dimensions};return E}if(t.type==="DROP_COMPLETE"){var O=t.payload.completed;return{phase:"IDLE",completed:O,shouldFlush:!1}}return e}),Zw=function(t){return{type:"BEFORE_INITIAL_CAPTURE",payload:t}},eC=function(t){return{type:"LIFT",payload:t}},tC=function(t){return{type:"INITIAL_PUBLISH",payload:t}},rC=function(t){return{type:"PUBLISH_WHILE_DRAGGING",payload:t}},nC=function(){return{type:"COLLECTION_STARTING",payload:null}},iC=function(t){return{type:"UPDATE_DROPPABLE_SCROLL",payload:t}},oC=function(t){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:t}},aC=function(t){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:t}},Bf=function(t){return{type:"MOVE",payload:t}},lC=function(t){return{type:"MOVE_BY_WINDOW_SCROLL",payload:t}},sC=function(t){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:t}},cC=function(){return{type:"MOVE_UP",payload:null}},uC=function(){return{type:"MOVE_DOWN",payload:null}},dC=function(){return{type:"MOVE_RIGHT",payload:null}},fC=function(){return{type:"MOVE_LEFT",payload:null}},Ea=function(){return{type:"FLUSH",payload:null}},pC=function(t){return{type:"DROP_ANIMATE",payload:t}},Pa=function(t){return{type:"DROP_COMPLETE",payload:t}},$f=function(t){return{type:"DROP",payload:t}},hC=function(t){return{type:"DROP_PENDING",payload:t}},Gf=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}},gC=(function(e){return function(t){var r=t.getState,n=t.dispatch;return function(i){return function(o){if(o.type!=="LIFT"){i(o);return}var a=o.payload,l=a.id,s=a.clientSelection,c=a.movementMode,u=r();u.phase==="DROP_ANIMATING"&&n(Pa({completed:u.completed})),r().phase!=="IDLE"&&K(),n(Ea()),n(Zw({draggableId:l,movementMode:c}));var d={shouldPublishImmediately:c==="SNAP"},f={draggableId:l,scrollOptions:d},p=e.startPublishing(f),h=p.critical,m=p.dimensions,b=p.viewport;n(tC({critical:h,dimensions:m,clientSelection:s,movementMode:c,viewport:b}))}}}}),vC=(function(e){return function(){return function(t){return function(r){r.type==="INITIAL_PUBLISH"&&e.dragging(),r.type==="DROP_ANIMATE"&&e.dropping(r.payload.completed.result.reason),(r.type==="FLUSH"||r.type==="DROP_COMPLETE")&&e.resting(),t(r)}}}}),Oa={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Qr={opacity:{drop:0,combining:.7},scale:{drop:.75}},Na={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},Et=Na.outOfTheWay+"s "+Oa.outOfTheWay,$r={fluid:"opacity "+Et,snap:"transform "+Et+", opacity "+Et,drop:function(t){var r=t+"s "+Oa.drop;return"transform "+r+", opacity "+r},outOfTheWay:"transform "+Et,placeholder:"height "+Et+", width "+Et+", margin "+Et},Ys=function(t){return It(t,Te)?null:"translate("+t.x+"px, "+t.y+"px)"},Po={moveTo:Ys,drop:function(t,r){var n=Ys(t);return n?r?n+" scale("+Qr.scale.drop+")":n:null}},Oo=Na.minDropTime,Wf=Na.maxDropTime,mC=Wf-Oo,Js=1500,bC=.6,yC=(function(e){var t=e.current,r=e.destination,n=e.reason,i=Kr(t,r);if(i<=0)return Oo;if(i>=Js)return Wf;var o=i/Js,a=Oo+mC*o,l=n==="CANCEL"?a*bC:a;return Number(l.toFixed(2))}),xC=(function(e){var t=e.impact,r=e.draggable,n=e.dimensions,i=e.viewport,o=e.afterCritical,a=n.draggables,l=n.droppables,s=qe(t),c=s?l[s]:null,u=l[r.descriptor.droppableId],d=zf({impact:t,draggable:r,draggables:a,afterCritical:o,droppable:c||u,viewport:i}),f=Ve(d,r.client.borderBox.center);return f}),SC=(function(e){var t=e.draggables,r=e.reason,n=e.lastImpact,i=e.home,o=e.viewport,a=e.onLiftImpact;if(!n.at||r!=="DROP"){var l=Lf({draggables:t,impact:a,destination:i,viewport:o,forceShouldAnimate:!0});return{impact:l,didDropInsideDroppable:!1}}if(n.at.type==="REORDER")return{impact:n,didDropInsideDroppable:!0};var s=q({},n,{displaced:Yr});return{impact:s,didDropInsideDroppable:!0}}),wC=(function(e){var t=e.getState,r=e.dispatch;return function(n){return function(i){if(i.type!=="DROP"){n(i);return}var o=t(),a=i.payload.reason;if(o.phase==="COLLECTING"){r(hC({reason:a}));return}if(o.phase!=="IDLE"){var l=o.phase==="DROP_PENDING"&&o.isWaiting;l&&K(),o.phase==="DRAGGING"||o.phase==="DROP_PENDING"||K();var s=o.critical,c=o.dimensions,u=c.draggables[o.critical.draggable.id],d=SC({reason:a,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),f=d.impact,p=d.didDropInsideDroppable,h=p?Ia(f):null,m=p?si(f):null,b={index:s.draggable.index,droppableId:s.droppable.id},y={draggableId:u.descriptor.id,type:u.descriptor.type,source:b,reason:a,mode:o.movementMode,destination:h,combine:m},x=xC({impact:f,draggable:u,dimensions:c,viewport:o.viewport,afterCritical:o.afterCritical}),_={critical:o.critical,afterCritical:o.afterCritical,result:y,impact:f},T=!It(o.current.client.offset,x)||!!y.combine;if(!T){r(Pa({completed:_}));return}var k=yC({current:o.current.client.offset,destination:x,reason:a}),C={newHomeClientOffset:x,dropDuration:k,completed:_};r(pC(C))}}}}),Hf=(function(){return{x:window.pageXOffset,y:window.pageYOffset}});function CC(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(r){r.target!==window&&r.target!==window.document||e()}}}function IC(e){var t=e.onWindowScroll;function r(){t(Hf())}var n=Gr(r),i=CC(n),o=Ct;function a(){return o!==Ct}function l(){a()&&K(),o=Je(window,[i])}function s(){a()||K(),n.cancel(),o(),o=Ct}return{start:l,stop:s,isActive:a}}var RC=function(t){return t.type==="DROP_COMPLETE"||t.type==="DROP_ANIMATE"||t.type==="FLUSH"},_C=(function(e){var t=IC({onWindowScroll:function(n){e.dispatch(lC({newScroll:n}))}});return function(r){return function(n){!t.isActive()&&n.type==="INITIAL_PUBLISH"&&t.start(),t.isActive()&&RC(n)&&t.stop(),r(n)}}}),DC=(function(e){var t=!1,r=!1,n=setTimeout(function(){r=!0}),i=function(a){t||r||(t=!0,e(a),clearTimeout(n))};return i.wasCalled=function(){return t},i}),TC=(function(){var e=[],t=function(o){var a=Ca(e,function(c){return c.timerId===o});a===-1&&K();var l=e.splice(a,1),s=l[0];s.callback()},r=function(o){var a=setTimeout(function(){return t(a)}),l={timerId:a,callback:o};e.push(l)},n=function(){if(e.length){var o=[].concat(e);e.length=0,o.forEach(function(a){clearTimeout(a.timerId),a.callback()})}};return{add:r,flush:n}}),kC=function(t,r){return t==null&&r==null?!0:t==null||r==null?!1:t.droppableId===r.droppableId&&t.index===r.index},EC=function(t,r){return t==null&&r==null?!0:t==null||r==null?!1:t.draggableId===r.draggableId&&t.droppableId===r.droppableId},PC=function(t,r){if(t===r)return!0;var n=t.draggable.id===r.draggable.id&&t.draggable.droppableId===r.draggable.droppableId&&t.draggable.type===r.draggable.type&&t.draggable.index===r.draggable.index,i=t.droppable.id===r.droppable.id&&t.droppable.type===r.droppable.type;return n&&i},Cr=function(t,r){r()},yn=function(t,r){return{draggableId:t.draggable.id,type:t.droppable.type,source:{droppableId:t.droppable.id,index:t.draggable.index},mode:r}},Ui=function(t,r,n,i){if(!t){n(i(r));return}var o=DC(n),a={announce:o};t(r,a),o.wasCalled()||n(i(r))},OC=(function(e,t){var r=TC(),n=null,i=function(f,p){n&&K(),Cr("onBeforeCapture",function(){var h=e().onBeforeCapture;if(h){var m={draggableId:f,mode:p};h(m)}})},o=function(f,p){n&&K(),Cr("onBeforeDragStart",function(){var h=e().onBeforeDragStart;h&&h(yn(f,p))})},a=function(f,p){n&&K();var h=yn(f,p);n={mode:p,lastCritical:f,lastLocation:h.source,lastCombine:null},r.add(function(){Cr("onDragStart",function(){return Ui(e().onDragStart,h,t,Nn.onDragStart)})})},l=function(f,p){var h=Ia(p),m=si(p);n||K();var b=!PC(f,n.lastCritical);b&&(n.lastCritical=f);var y=!kC(n.lastLocation,h);y&&(n.lastLocation=h);var x=!EC(n.lastCombine,m);if(x&&(n.lastCombine=m),!(!b&&!y&&!x)){var _=q({},yn(f,n.mode),{combine:m,destination:h});r.add(function(){Cr("onDragUpdate",function(){return Ui(e().onDragUpdate,_,t,Nn.onDragUpdate)})})}},s=function(){n||K(),r.flush()},c=function(f){n||K(),n=null,Cr("onDragEnd",function(){return Ui(e().onDragEnd,f,t,Nn.onDragEnd)})},u=function(){if(n){var f=q({},yn(n.lastCritical,n.mode),{combine:null,destination:null,reason:"CANCEL"});c(f)}};return{beforeCapture:i,beforeStart:o,start:a,update:l,flush:s,drop:c,abort:u}}),NC=(function(e,t){var r=OC(e,t);return function(n){return function(i){return function(o){if(o.type==="BEFORE_INITIAL_CAPTURE"){r.beforeCapture(o.payload.draggableId,o.payload.movementMode);return}if(o.type==="INITIAL_PUBLISH"){var a=o.payload.critical;r.beforeStart(a,o.payload.movementMode),i(o),r.start(a,o.payload.movementMode);return}if(o.type==="DROP_COMPLETE"){var l=o.payload.completed.result;r.flush(),i(o),r.drop(l);return}if(i(o),o.type==="FLUSH"){r.abort();return}var s=n.getState();s.phase==="DRAGGING"&&r.update(s.critical,s.impact)}}}}),AC=(function(e){return function(t){return function(r){if(r.type!=="DROP_ANIMATION_FINISHED"){t(r);return}var n=e.getState();n.phase!=="DROP_ANIMATING"&&K(),e.dispatch(Pa({completed:n.completed}))}}}),MC=(function(e){var t=null,r=null;function n(){r&&(cancelAnimationFrame(r),r=null),t&&(t(),t=null)}return function(i){return function(o){if((o.type==="FLUSH"||o.type==="DROP_COMPLETE"||o.type==="DROP_ANIMATION_FINISHED")&&n(),i(o),o.type==="DROP_ANIMATE"){var a={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var s=e.getState();s.phase==="DROP_ANIMATING"&&e.dispatch(Gf())}};r=requestAnimationFrame(function(){r=null,t=Je(window,[a])})}}}}),LC=(function(e){return function(){return function(t){return function(r){(r.type==="DROP_COMPLETE"||r.type==="FLUSH"||r.type==="DROP_ANIMATE")&&e.stopPublishing(),t(r)}}}}),zC=(function(e){var t=!1;return function(){return function(r){return function(n){if(n.type==="INITIAL_PUBLISH"){t=!0,e.tryRecordFocus(n.payload.critical.draggable.id),r(n),e.tryRestoreFocusRecorded();return}if(r(n),!!t){if(n.type==="FLUSH"){t=!1,e.tryRestoreFocusRecorded();return}if(n.type==="DROP_COMPLETE"){t=!1;var i=n.payload.completed.result;i.combine&&e.tryShiftRecord(i.draggableId,i.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}),jC=function(t){return t.type==="DROP_COMPLETE"||t.type==="DROP_ANIMATE"||t.type==="FLUSH"},FC=(function(e){return function(t){return function(r){return function(n){if(jC(n)){e.stop(),r(n);return}if(n.type==="INITIAL_PUBLISH"){r(n);var i=t.getState();i.phase!=="DRAGGING"&&K(),e.start(i);return}r(n),e.scroll(t.getState())}}}}),BC=(function(e){return function(t){return function(r){if(t(r),r.type==="PUBLISH_WHILE_DRAGGING"){var n=e.getState();n.phase==="DROP_PENDING"&&(n.isWaiting||e.dispatch($f({reason:n.reason})))}}}}),$C=rg,GC=(function(e){var t=e.dimensionMarshal,r=e.focusMarshal,n=e.styleMarshal,i=e.getResponders,o=e.announce,a=e.autoScroller;return tg(Xw,$C(ng(vC(n),LC(t),gC(t),wC,AC,MC,BC,FC(a),_C,zC(r),NC(i,o))))}),Vi=function(){return{additions:{},removals:{},modified:{}}};function WC(e){var t=e.registry,r=e.callbacks,n=Vi(),i=null,o=function(){i||(r.collectionStarting(),i=requestAnimationFrame(function(){i=null;var u=n,d=u.additions,f=u.removals,p=u.modified,h=Object.keys(d).map(function(y){return t.draggable.getById(y).getDimension(Te)}).sort(function(y,x){return y.descriptor.index-x.descriptor.index}),m=Object.keys(p).map(function(y){var x=t.droppable.getById(y),_=x.callbacks.getScrollWhileDragging();return{droppableId:y,scroll:_}}),b={additions:h,removals:Object.keys(f),modified:m};n=Vi(),r.publish(b)}))},a=function(u){var d=u.descriptor.id;n.additions[d]=u,n.modified[u.descriptor.droppableId]=!0,n.removals[d]&&delete n.removals[d],o()},l=function(u){var d=u.descriptor;n.removals[d.id]=!0,n.modified[d.droppableId]=!0,n.additions[d.id]&&delete n.additions[d.id],o()},s=function(){i&&(cancelAnimationFrame(i),i=null,n=Vi())};return{add:a,remove:l,stop:s}}var Uf=(function(e){var t=e.scrollHeight,r=e.scrollWidth,n=e.height,i=e.width,o=Ve({x:r,y:t},{x:i,y:n}),a={x:Math.max(0,o.x),y:Math.max(0,o.y)};return a}),Vf=(function(){var e=document.documentElement;return e||K(),e}),qf=(function(){var e=Vf(),t=Uf({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight});return t}),HC=(function(){var e=Hf(),t=qf(),r=e.y,n=e.x,i=Vf(),o=i.clientWidth,a=i.clientHeight,l=n+o,s=r+a,c=$t({top:r,left:n,right:l,bottom:s}),u={frame:c,scroll:{initial:e,current:e,max:t,diff:{value:Te,displacement:Te}}};return u}),UC=(function(e){var t=e.critical,r=e.scrollOptions,n=e.registry,i=HC(),o=i.scroll.current,a=t.droppable,l=n.droppable.getAllByType(a.type).map(function(d){return d.callbacks.getDimensionAndWatchScroll(o,r)}),s=n.draggable.getAllByType(t.draggable.type).map(function(d){return d.getDimension(o)}),c={draggables:wf(s),droppables:Sf(l)},u={dimensions:c,critical:t,viewport:i};return u});function Qs(e,t,r){if(r.descriptor.id===t.id||r.descriptor.type!==t.type)return!1;var n=e.droppable.getById(r.descriptor.droppableId);return n.descriptor.mode==="virtual"}var VC=(function(e,t){var r=null,n=WC({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),i=function(p,h){e.droppable.exists(p)||K(),r&&t.updateDroppableIsEnabled({id:p,isEnabled:h})},o=function(p,h){r&&(e.droppable.exists(p)||K(),t.updateDroppableIsCombineEnabled({id:p,isCombineEnabled:h}))},a=function(p,h){r&&(e.droppable.exists(p)||K(),t.updateDroppableScroll({id:p,newScroll:h}))},l=function(p,h){r&&e.droppable.getById(p).callbacks.scroll(h)},s=function(){if(r){n.stop();var p=r.critical.droppable;e.droppable.getAllByType(p.type).forEach(function(h){return h.callbacks.dragStopped()}),r.unsubscribe(),r=null}},c=function(p){r||K();var h=r.critical.draggable;p.type==="ADDITION"&&Qs(e,h,p.value)&&n.add(p.value),p.type==="REMOVAL"&&Qs(e,h,p.value)&&n.remove(p.value)},u=function(p){r&&K();var h=e.draggable.getById(p.draggableId),m=e.droppable.getById(h.descriptor.droppableId),b={draggable:h.descriptor,droppable:m.descriptor},y=e.subscribe(c);return r={critical:b,unsubscribe:y},UC({critical:b,registry:e,scrollOptions:p.scrollOptions})},d={updateDroppableIsEnabled:i,updateDroppableIsCombineEnabled:o,scrollDroppable:l,updateDroppableScroll:a,startPublishing:u,stopPublishing:s};return d}),Kf=(function(e,t){return e.phase==="IDLE"?!0:e.phase!=="DROP_ANIMATING"||e.completed.result.draggableId===t?!1:e.completed.result.reason==="DROP"}),qC=(function(e){window.scrollBy(e.x,e.y)}),KC=De(function(e){return li(e).filter(function(t){return!(!t.isEnabled||!t.frame)})}),YC=function(t,r){var n=kt(KC(r),function(i){return i.frame||K(),Of(i.frame.pageMarginBox)(t)});return n},JC=(function(e){var t=e.center,r=e.destination,n=e.droppables;if(r){var i=n[r];return i.frame?i:null}var o=YC(t,n);return o}),Rt={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(t){return Math.pow(t,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},QC=(function(e,t){var r=e[t.size]*Rt.startFromPercentage,n=e[t.size]*Rt.maxScrollAtPercentage,i={startScrollingFrom:r,maxScrollValueAt:n};return i}),Yf=(function(e){var t=e.startOfRange,r=e.endOfRange,n=e.current,i=r-t;if(i===0)return 0;var o=n-t,a=o/i;return a}),Aa=1,XC=(function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return Rt.maxPixelScroll;if(e===t.startScrollingFrom)return Aa;var r=Yf({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),n=1-r,i=Rt.maxPixelScroll*Rt.ease(n);return Math.ceil(i)}),Xs=Rt.durationDampening.accelerateAt,Zs=Rt.durationDampening.stopDampeningAt,ZC=(function(e,t){var r=t,n=Zs,i=Date.now(),o=i-r;if(o>=Zs)return e;if(o<Xs)return Aa;var a=Yf({startOfRange:Xs,endOfRange:n,current:o}),l=e*Rt.ease(a);return Math.ceil(l)}),ec=(function(e){var t=e.distanceToEdge,r=e.thresholds,n=e.dragStartTime,i=e.shouldUseTimeDampening,o=XC(t,r);return o===0?0:i?Math.max(ZC(o,n),Aa):o}),tc=(function(e){var t=e.container,r=e.distanceToEdges,n=e.dragStartTime,i=e.axis,o=e.shouldUseTimeDampening,a=QC(t,i),l=r[i.end]<r[i.start];return l?ec({distanceToEdge:r[i.end],thresholds:a,dragStartTime:n,shouldUseTimeDampening:o}):-1*ec({distanceToEdge:r[i.start],thresholds:a,dragStartTime:n,shouldUseTimeDampening:o})}),eI=(function(e){var t=e.container,r=e.subject,n=e.proposedScroll,i=r.height>t.height,o=r.width>t.width;return!o&&!i?n:o&&i?null:{x:o?0:n.x,y:i?0:n.y}}),tI=yf(function(e){return e===0?0:e}),Jf=(function(e){var t=e.dragStartTime,r=e.container,n=e.subject,i=e.center,o=e.shouldUseTimeDampening,a={top:i.y-r.top,right:r.right-i.x,bottom:r.bottom-i.y,left:i.x-r.left},l=tc({container:r,distanceToEdges:a,dragStartTime:t,axis:Ra,shouldUseTimeDampening:o}),s=tc({container:r,distanceToEdges:a,dragStartTime:t,axis:Rf,shouldUseTimeDampening:o}),c=tI({x:s,y:l});if(It(c,Te))return null;var u=eI({container:r,subject:n,proposedScroll:c});return u?It(u,Te)?null:u:null}),rI=yf(function(e){return e===0?0:e>0?1:-1}),Ma=(function(){var e=function(r,n){return r<0?r:r>n?r-n:0};return function(t){var r=t.current,n=t.max,i=t.change,o=Ne(r,i),a={x:e(o.x,n.x),y:e(o.y,n.y)};return It(a,Te)?null:a}})(),Qf=function(t){var r=t.max,n=t.current,i=t.change,o={x:Math.max(n.x,r.x),y:Math.max(n.y,r.y)},a=rI(i),l=Ma({max:o,current:n,change:a});return!l||a.x!==0&&l.x===0||a.y!==0&&l.y===0},La=function(t,r){return Qf({current:t.scroll.current,max:t.scroll.max,change:r})},nI=function(t,r){if(!La(t,r))return null;var n=t.scroll.max,i=t.scroll.current;return Ma({current:i,max:n,change:r})},za=function(t,r){var n=t.frame;return n?Qf({current:n.scroll.current,max:n.scroll.max,change:r}):!1},iI=function(t,r){var n=t.frame;return!n||!za(t,r)?null:Ma({current:n.scroll.current,max:n.scroll.max,change:r})},oI=(function(e){var t=e.viewport,r=e.subject,n=e.center,i=e.dragStartTime,o=e.shouldUseTimeDampening,a=Jf({dragStartTime:i,container:t.frame,subject:r,center:n,shouldUseTimeDampening:o});return a&&La(t,a)?a:null}),aI=(function(e){var t=e.droppable,r=e.subject,n=e.center,i=e.dragStartTime,o=e.shouldUseTimeDampening,a=t.frame;if(!a)return null;var l=Jf({dragStartTime:i,container:a.pageMarginBox,subject:r,center:n,shouldUseTimeDampening:o});return l&&za(t,l)?l:null}),rc=(function(e){var t=e.state,r=e.dragStartTime,n=e.shouldUseTimeDampening,i=e.scrollWindow,o=e.scrollDroppable,a=t.current.page.borderBoxCenter,l=t.dimensions.draggables[t.critical.draggable.id],s=l.page.marginBox;if(t.isWindowScrollAllowed){var c=t.viewport,u=oI({dragStartTime:r,viewport:c,subject:s,center:a,shouldUseTimeDampening:n});if(u){i(u);return}}var d=JC({center:a,destination:qe(t.impact),droppables:t.dimensions.droppables});if(d){var f=aI({dragStartTime:r,droppable:d,subject:s,center:a,shouldUseTimeDampening:n});f&&o(d.descriptor.id,f)}}),lI=(function(e){var t=e.scrollWindow,r=e.scrollDroppable,n=Gr(t),i=Gr(r),o=null,a=function(u){o||K();var d=o,f=d.shouldUseTimeDampening,p=d.dragStartTime;rc({state:u,scrollWindow:n,scrollDroppable:i,dragStartTime:p,shouldUseTimeDampening:f})},l=function(u){o&&K();var d=Date.now(),f=!1,p=function(){f=!0};rc({state:u,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:p,scrollDroppable:p}),o={dragStartTime:d,shouldUseTimeDampening:f},f&&a(u)},s=function(){o&&(n.cancel(),i.cancel(),o=null)};return{start:l,stop:s,scroll:a}}),sI=(function(e){var t=e.move,r=e.scrollDroppable,n=e.scrollWindow,i=function(c,u){var d=Ne(c.current.client.selection,u);t({client:d})},o=function(c,u){if(!za(c,u))return u;var d=iI(c,u);if(!d)return r(c.descriptor.id,u),null;var f=Ve(u,d);r(c.descriptor.id,f);var p=Ve(u,f);return p},a=function(c,u,d){if(!c||!La(u,d))return d;var f=nI(u,d);if(!f)return n(d),null;var p=Ve(d,f);n(p);var h=Ve(d,p);return h},l=function(c){var u=c.scrollJumpRequest;if(u){var d=qe(c.impact);d||K();var f=o(c.dimensions.droppables[d],u);if(f){var p=c.viewport,h=a(c.isWindowScrollAllowed,p,f);h&&i(c,h)}}};return l}),cI=(function(e){var t=e.scrollDroppable,r=e.scrollWindow,n=e.move,i=lI({scrollWindow:r,scrollDroppable:t}),o=sI({move:n,scrollWindow:r,scrollDroppable:t}),a=function(c){if(c.phase==="DRAGGING"){if(c.movementMode==="FLUID"){i.scroll(c);return}c.scrollJumpRequest&&o(c)}},l={scroll:a,start:i.start,stop:i.stop};return l}),sr="data-rbd",cr=(function(){var e=sr+"-drag-handle";return{base:e,draggableId:e+"-draggable-id",contextId:e+"-context-id"}})(),No=(function(){var e=sr+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}})(),uI=(function(){var e=sr+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}})(),nc={contextId:sr+"-scroll-container-context-id"},dI=function(t){return function(r){return"["+r+'="'+t+'"]'}},Ir=function(t,r){return t.map(function(n){var i=n.styles[r];return i?n.selector+" { "+i+" }":""}).join(" ")},fI="pointer-events: none;",pI=(function(e){var t=dI(e),r=(function(){var l=`
455
+ `},Nn={dragHandleUsageInstructions:US,onDragStart:VS,onDragUpdate:qS,onDragEnd:KS},Te={x:0,y:0},Ne=function(t,r){return{x:t.x+r.x,y:t.y+r.y}},Ve=function(t,r){return{x:t.x-r.x,y:t.y-r.y}},It=function(t,r){return t.x===r.x&&t.y===r.y},hr=function(t){return{x:t.x!==0?-t.x:0,y:t.y!==0?-t.y:0}},Ft=function(t,r,n){var i;return n===void 0&&(n=0),i={},i[t]=r,i[t==="x"?"y":"x"]=n,i},Kr=function(t,r){return Math.sqrt(Math.pow(r.x-t.x,2)+Math.pow(r.y-t.y,2))},$s=function(t,r){return Math.min.apply(Math,r.map(function(n){return Kr(t,n)}))},yf=function(t){return function(r){return{x:t(r.x),y:t(r.y)}}},YS=(function(e,t){var r=$t({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return r.width<=0||r.height<=0?null:r}),sn=function(t,r){return{top:t.top+r.y,left:t.left+r.x,bottom:t.bottom+r.y,right:t.right+r.x}},Gs=function(t){return[{x:t.left,y:t.top},{x:t.right,y:t.top},{x:t.left,y:t.bottom},{x:t.right,y:t.bottom}]},JS={top:0,right:0,bottom:0,left:0},QS=function(t,r){return r?sn(t,r.scroll.diff.displacement):t},XS=function(t,r,n){if(n&&n.increasedBy){var i;return q({},t,(i={},i[r.end]=t[r.end]+n.increasedBy[r.line],i))}return t},ZS=function(t,r){return r&&r.shouldClipSubject?YS(r.pageMarginBox,t):$t(t)},lr=(function(e){var t=e.page,r=e.withPlaceholder,n=e.axis,i=e.frame,o=QS(t.marginBox,i),a=XS(o,n,r),l=ZS(a,i);return{page:t,withPlaceholder:r,active:l}}),wa=(function(e,t){e.frame||K();var r=e.frame,n=Ve(t,r.scroll.initial),i=hr(n),o=q({},r,{scroll:{initial:r.scroll.initial,current:t,diff:{value:n,displacement:i},max:r.scroll.max}}),a=lr({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:o}),l=q({},e,{frame:o,subject:a});return l});function Un(e){return Object.values?Object.values(e):Object.keys(e).map(function(t){return e[t]})}function Ca(e,t){if(e.findIndex)return e.findIndex(t);for(var r=0;r<e.length;r++)if(t(e[r]))return r;return-1}function kt(e,t){if(e.find)return e.find(t);var r=Ca(e,t);if(r!==-1)return e[r]}function xf(e){return Array.prototype.slice.call(e)}var Sf=De(function(e){return e.reduce(function(t,r){return t[r.descriptor.id]=r,t},{})}),wf=De(function(e){return e.reduce(function(t,r){return t[r.descriptor.id]=r,t},{})}),li=De(function(e){return Un(e)}),ew=De(function(e){return Un(e)}),gr=De(function(e,t){var r=ew(t).filter(function(n){return e===n.descriptor.droppableId}).sort(function(n,i){return n.descriptor.index-i.descriptor.index});return r});function Ia(e){return e.at&&e.at.type==="REORDER"?e.at.destination:null}function si(e){return e.at&&e.at.type==="COMBINE"?e.at.combine:null}var ci=De(function(e,t){return t.filter(function(r){return r.descriptor.id!==e.descriptor.id})}),tw=(function(e){var t=e.isMovingForward,r=e.draggable,n=e.destination,i=e.insideDestination,o=e.previousImpact;if(!n.isCombineEnabled)return null;var a=Ia(o);if(!a)return null;function l(m){var b={type:"COMBINE",combine:{draggableId:m,droppableId:n.descriptor.id}};return q({},o,{at:b})}var s=o.displaced.all,c=s.length?s[0]:null;if(t)return c?l(c):null;var u=ci(r,i);if(!c){if(!u.length)return null;var d=u[u.length-1];return l(d.descriptor.id)}var f=Ca(u,function(m){return m.descriptor.id===c});f===-1&&K();var p=f-1;if(p<0)return null;var h=u[p];return l(h.descriptor.id)}),vr=(function(e,t){return e.descriptor.droppableId===t.descriptor.id}),Cf={point:Te,value:0},Yr={invisible:{},visible:{},all:[]},rw={displaced:Yr,displacedBy:Cf,at:null},Qe=(function(e,t){return function(r){return e<=r&&r<=t}}),If=(function(e){var t=Qe(e.top,e.bottom),r=Qe(e.left,e.right);return function(n){var i=t(n.top)&&t(n.bottom)&&r(n.left)&&r(n.right);if(i)return!0;var o=t(n.top)||t(n.bottom),a=r(n.left)||r(n.right),l=o&&a;if(l)return!0;var s=n.top<e.top&&n.bottom>e.bottom,c=n.left<e.left&&n.right>e.right,u=s&&c;if(u)return!0;var d=s&&a||c&&o;return d}}),nw=(function(e){var t=Qe(e.top,e.bottom),r=Qe(e.left,e.right);return function(n){var i=t(n.top)&&t(n.bottom)&&r(n.left)&&r(n.right);return i}}),Ra={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},Rf={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},iw=(function(e){return function(t){var r=Qe(t.top,t.bottom),n=Qe(t.left,t.right);return function(i){return e===Ra?r(i.top)&&r(i.bottom):n(i.left)&&n(i.right)}}}),ow=function(t,r){var n=r.frame?r.frame.scroll.diff.displacement:Te;return sn(t,n)},aw=function(t,r,n){return r.subject.active?n(r.subject.active)(t):!1},lw=function(t,r,n){return n(r)(t)},_a=function(t){var r=t.target,n=t.destination,i=t.viewport,o=t.withDroppableDisplacement,a=t.isVisibleThroughFrameFn,l=o?ow(r,n):r;return aw(l,n,a)&&lw(l,i,a)},sw=function(t){return _a(q({},t,{isVisibleThroughFrameFn:If}))},_f=function(t){return _a(q({},t,{isVisibleThroughFrameFn:nw}))},cw=function(t){return _a(q({},t,{isVisibleThroughFrameFn:iw(t.destination.axis)}))},uw=function(t,r,n){if(typeof n=="boolean")return n;if(!r)return!0;var i=r.invisible,o=r.visible;if(i[t])return!1;var a=o[t];return a?a.shouldAnimate:!0};function dw(e,t){var r=e.page.marginBox,n={top:t.point.y,right:0,bottom:0,left:t.point.x};return $t($c(r,n))}function Jr(e){var t=e.afterDragging,r=e.destination,n=e.displacedBy,i=e.viewport,o=e.forceShouldAnimate,a=e.last;return t.reduce(function(s,c){var u=dw(c,n),d=c.descriptor.id;s.all.push(d);var f=sw({target:u,destination:r,viewport:i,withDroppableDisplacement:!0});if(!f)return s.invisible[c.descriptor.id]=!0,s;var p=uw(d,a,o),h={draggableId:d,shouldAnimate:p};return s.visible[d]=h,s},{all:[],visible:{},invisible:{}})}function fw(e,t){if(!e.length)return 0;var r=e[e.length-1].descriptor.index;return t.inHomeList?r:r+1}function Ws(e){var t=e.insideDestination,r=e.inHomeList,n=e.displacedBy,i=e.destination,o=fw(t,{inHomeList:r});return{displaced:Yr,displacedBy:n,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:o}}}}function Vn(e){var t=e.draggable,r=e.insideDestination,n=e.destination,i=e.viewport,o=e.displacedBy,a=e.last,l=e.index,s=e.forceShouldAnimate,c=vr(t,n);if(l==null)return Ws({insideDestination:r,inHomeList:c,displacedBy:o,destination:n});var u=kt(r,function(m){return m.descriptor.index===l});if(!u)return Ws({insideDestination:r,inHomeList:c,displacedBy:o,destination:n});var d=ci(t,r),f=r.indexOf(u),p=d.slice(f),h=Jr({afterDragging:p,destination:n,displacedBy:o,last:a,viewport:i.frame,forceShouldAnimate:s});return{displaced:h,displacedBy:o,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:l}}}}function Tt(e,t){return!!t.effected[e]}var pw=(function(e){var t=e.isMovingForward,r=e.destination,n=e.draggables,i=e.combine,o=e.afterCritical;if(!r.isCombineEnabled)return null;var a=i.draggableId,l=n[a],s=l.descriptor.index,c=Tt(a,o);return c?t?s:s-1:t?s+1:s}),hw=(function(e){var t=e.isMovingForward,r=e.isInHomeList,n=e.insideDestination,i=e.location;if(!n.length)return null;var o=i.index,a=t?o+1:o-1,l=n[0].descriptor.index,s=n[n.length-1].descriptor.index,c=r?s:s+1;return a<l||a>c?null:a}),gw=(function(e){var t=e.isMovingForward,r=e.isInHomeList,n=e.draggable,i=e.draggables,o=e.destination,a=e.insideDestination,l=e.previousImpact,s=e.viewport,c=e.afterCritical,u=l.at;if(u||K(),u.type==="REORDER"){var d=hw({isMovingForward:t,isInHomeList:r,location:u.destination,insideDestination:a});return d==null?null:Vn({draggable:n,insideDestination:a,destination:o,viewport:s,last:l.displaced,displacedBy:l.displacedBy,index:d})}var f=pw({isMovingForward:t,destination:o,displaced:l.displaced,draggables:i,combine:u.combine,afterCritical:c});return f==null?null:Vn({draggable:n,insideDestination:a,destination:o,viewport:s,last:l.displaced,displacedBy:l.displacedBy,index:f})}),vw=(function(e){var t=e.displaced,r=e.afterCritical,n=e.combineWith,i=e.displacedBy,o=!!(t.visible[n]||t.invisible[n]);return Tt(n,r)?o?Te:hr(i.point):o?i.point:Te}),mw=(function(e){var t=e.afterCritical,r=e.impact,n=e.draggables,i=si(r);i||K();var o=i.draggableId,a=n[o].page.borderBox.center,l=vw({displaced:r.displaced,afterCritical:t,combineWith:o,displacedBy:r.displacedBy});return Ne(a,l)}),Df=function(t,r){return r.margin[t.start]+r.borderBox[t.size]/2},bw=function(t,r){return r.margin[t.end]+r.borderBox[t.size]/2},Da=function(t,r,n){return r[t.crossAxisStart]+n.margin[t.crossAxisStart]+n.borderBox[t.crossAxisSize]/2},Hs=function(t){var r=t.axis,n=t.moveRelativeTo,i=t.isMoving;return Ft(r.line,n.marginBox[r.end]+Df(r,i),Da(r,n.marginBox,i))},Us=function(t){var r=t.axis,n=t.moveRelativeTo,i=t.isMoving;return Ft(r.line,n.marginBox[r.start]-bw(r,i),Da(r,n.marginBox,i))},yw=function(t){var r=t.axis,n=t.moveInto,i=t.isMoving;return Ft(r.line,n.contentBox[r.start]+Df(r,i),Da(r,n.contentBox,i))},xw=(function(e){var t=e.impact,r=e.draggable,n=e.draggables,i=e.droppable,o=e.afterCritical,a=gr(i.descriptor.id,n),l=r.page,s=i.axis;if(!a.length)return yw({axis:s,moveInto:i.page,isMoving:l});var c=t.displaced,u=t.displacedBy,d=c.all[0];if(d){var f=n[d];if(Tt(d,o))return Us({axis:s,moveRelativeTo:f.page,isMoving:l});var p=to(f.page,u.point);return Us({axis:s,moveRelativeTo:p,isMoving:l})}var h=a[a.length-1];if(h.descriptor.id===r.descriptor.id)return l.borderBox.center;if(Tt(h.descriptor.id,o)){var m=to(h.page,hr(o.displacedBy.point));return Hs({axis:s,moveRelativeTo:m,isMoving:l})}return Hs({axis:s,moveRelativeTo:h.page,isMoving:l})}),ko=(function(e,t){var r=e.frame;return r?Ne(t,r.scroll.diff.displacement):t}),Sw=function(t){var r=t.impact,n=t.draggable,i=t.droppable,o=t.draggables,a=t.afterCritical,l=n.page.borderBox.center,s=r.at;return!i||!s?l:s.type==="REORDER"?xw({impact:r,draggable:n,draggables:o,droppable:i,afterCritical:a}):mw({impact:r,draggables:o,afterCritical:a})},ui=(function(e){var t=Sw(e),r=e.droppable,n=r?ko(r,t):t;return n}),Tf=(function(e,t){var r=Ve(t,e.scroll.initial),n=hr(r),i=$t({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),o={frame:i,scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:r,displacement:n}}};return o});function Vs(e,t){return e.map(function(r){return t[r]})}function ww(e,t){for(var r=0;r<t.length;r++){var n=t[r].visible[e];if(n)return n}return null}var Cw=(function(e){var t=e.impact,r=e.viewport,n=e.destination,i=e.draggables,o=e.maxScrollChange,a=Tf(r,Ne(r.scroll.current,o)),l=n.frame?wa(n,Ne(n.frame.scroll.current,o)):n,s=t.displaced,c=Jr({afterDragging:Vs(s.all,i),destination:n,displacedBy:t.displacedBy,viewport:a.frame,last:s,forceShouldAnimate:!1}),u=Jr({afterDragging:Vs(s.all,i),destination:l,displacedBy:t.displacedBy,viewport:r.frame,last:s,forceShouldAnimate:!1}),d={},f={},p=[s,c,u];s.all.forEach(function(m){var b=ww(m,p);if(b){f[m]=b;return}d[m]=!0});var h=q({},t,{displaced:{all:s.all,invisible:d,visible:f}});return h}),Iw=(function(e,t){return Ne(e.scroll.diff.displacement,t)}),Ta=(function(e){var t=e.pageBorderBoxCenter,r=e.draggable,n=e.viewport,i=Iw(n,t),o=Ve(i,r.page.borderBox.center);return Ne(r.client.borderBox.center,o)}),kf=(function(e){var t=e.draggable,r=e.destination,n=e.newPageBorderBoxCenter,i=e.viewport,o=e.withDroppableDisplacement,a=e.onlyOnMainAxis,l=a===void 0?!1:a,s=Ve(n,t.page.borderBox.center),c=sn(t.page.borderBox,s),u={target:c,destination:r,withDroppableDisplacement:o,viewport:i};return l?cw(u):_f(u)}),Rw=(function(e){var t=e.isMovingForward,r=e.draggable,n=e.destination,i=e.draggables,o=e.previousImpact,a=e.viewport,l=e.previousPageBorderBoxCenter,s=e.previousClientSelection,c=e.afterCritical;if(!n.isEnabled)return null;var u=gr(n.descriptor.id,i),d=vr(r,n),f=tw({isMovingForward:t,draggable:r,destination:n,insideDestination:u,previousImpact:o})||gw({isMovingForward:t,isInHomeList:d,draggable:r,draggables:i,destination:n,insideDestination:u,previousImpact:o,viewport:a,afterCritical:c});if(!f)return null;var p=ui({impact:f,draggable:r,droppable:n,draggables:i,afterCritical:c}),h=kf({draggable:r,destination:n,newPageBorderBoxCenter:p,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(h){var m=Ta({pageBorderBoxCenter:p,draggable:r,viewport:a});return{clientSelection:m,impact:f,scrollJumpRequest:null}}var b=Ve(p,l),y=Cw({impact:f,viewport:a,destination:n,draggables:i,maxScrollChange:b});return{clientSelection:s,impact:y,scrollJumpRequest:b}}),Le=function(t){var r=t.subject.active;return r||K(),r},_w=(function(e){var t=e.isMovingForward,r=e.pageBorderBoxCenter,n=e.source,i=e.droppables,o=e.viewport,a=n.subject.active;if(!a)return null;var l=n.axis,s=Qe(a[l.start],a[l.end]),c=li(i).filter(function(d){return d!==n}).filter(function(d){return d.isEnabled}).filter(function(d){return!!d.subject.active}).filter(function(d){return If(o.frame)(Le(d))}).filter(function(d){var f=Le(d);return t?a[l.crossAxisEnd]<f[l.crossAxisEnd]:f[l.crossAxisStart]<a[l.crossAxisStart]}).filter(function(d){var f=Le(d),p=Qe(f[l.start],f[l.end]);return s(f[l.start])||s(f[l.end])||p(a[l.start])||p(a[l.end])}).sort(function(d,f){var p=Le(d)[l.crossAxisStart],h=Le(f)[l.crossAxisStart];return t?p-h:h-p}).filter(function(d,f,p){return Le(d)[l.crossAxisStart]===Le(p[0])[l.crossAxisStart]});if(!c.length)return null;if(c.length===1)return c[0];var u=c.filter(function(d){var f=Qe(Le(d)[l.start],Le(d)[l.end]);return f(r[l.line])});return u.length===1?u[0]:u.length>1?u.sort(function(d,f){return Le(d)[l.start]-Le(f)[l.start]})[0]:c.sort(function(d,f){var p=$s(r,Gs(Le(d))),h=$s(r,Gs(Le(f)));return p!==h?p-h:Le(d)[l.start]-Le(f)[l.start]})[0]}),qs=function(t,r){var n=t.page.borderBox.center;return Tt(t.descriptor.id,r)?Ve(n,r.displacedBy.point):n},Dw=function(t,r){var n=t.page.borderBox;return Tt(t.descriptor.id,r)?sn(n,hr(r.displacedBy.point)):n},Tw=(function(e){var t=e.pageBorderBoxCenter,r=e.viewport,n=e.destination,i=e.insideDestination,o=e.afterCritical,a=i.filter(function(l){return _f({target:Dw(l,o),destination:n,viewport:r.frame,withDroppableDisplacement:!0})}).sort(function(l,s){var c=Kr(t,ko(n,qs(l,o))),u=Kr(t,ko(n,qs(s,o)));return c<u?-1:u<c?1:l.descriptor.index-s.descriptor.index});return a[0]||null}),cn=De(function(t,r){var n=r[t.line];return{value:n,point:Ft(t.line,n)}}),kw=function(t,r,n){var i=t.axis;if(t.descriptor.mode==="virtual")return Ft(i.line,r[i.line]);var o=t.subject.page.contentBox[i.size],a=gr(t.descriptor.id,n),l=a.reduce(function(u,d){return u+d.client.marginBox[i.size]},0),s=l+r[i.line],c=s-o;return c<=0?null:Ft(i.line,c)},Ef=function(t,r){return q({},t,{scroll:q({},t.scroll,{max:r})})},Pf=function(t,r,n){var i=t.frame;vr(r,t)&&K(),t.subject.withPlaceholder&&K();var o=cn(t.axis,r.displaceBy).point,a=kw(t,o,n),l={placeholderSize:o,increasedBy:a,oldFrameMaxScroll:t.frame?t.frame.scroll.max:null};if(!i){var s=lr({page:t.subject.page,withPlaceholder:l,axis:t.axis,frame:t.frame});return q({},t,{subject:s})}var c=a?Ne(i.scroll.max,a):i.scroll.max,u=Ef(i,c),d=lr({page:t.subject.page,withPlaceholder:l,axis:t.axis,frame:u});return q({},t,{subject:d,frame:u})},Ew=function(t){var r=t.subject.withPlaceholder;r||K();var n=t.frame;if(!n){var i=lr({page:t.subject.page,axis:t.axis,frame:null,withPlaceholder:null});return q({},t,{subject:i})}var o=r.oldFrameMaxScroll;o||K();var a=Ef(n,o),l=lr({page:t.subject.page,axis:t.axis,frame:a,withPlaceholder:null});return q({},t,{subject:l,frame:a})},Pw=(function(e){var t=e.previousPageBorderBoxCenter,r=e.moveRelativeTo,n=e.insideDestination,i=e.draggable,o=e.draggables,a=e.destination,l=e.viewport,s=e.afterCritical;if(!r){if(n.length)return null;var c={displaced:Yr,displacedBy:Cf,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},u=ui({impact:c,draggable:i,droppable:a,draggables:o,afterCritical:s}),d=vr(i,a)?a:Pf(a,i,o),f=kf({draggable:i,destination:d,newPageBorderBoxCenter:u,viewport:l.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return f?c:null}var p=t[a.axis.line]<=r.page.borderBox.center[a.axis.line],h=(function(){var b=r.descriptor.index;return r.descriptor.id===i.descriptor.id||p?b:b+1})(),m=cn(a.axis,i.displaceBy);return Vn({draggable:i,insideDestination:n,destination:a,viewport:l,displacedBy:m,last:Yr,index:h})}),Ow=(function(e){var t=e.isMovingForward,r=e.previousPageBorderBoxCenter,n=e.draggable,i=e.isOver,o=e.draggables,a=e.droppables,l=e.viewport,s=e.afterCritical,c=_w({isMovingForward:t,pageBorderBoxCenter:r,source:i,droppables:a,viewport:l});if(!c)return null;var u=gr(c.descriptor.id,o),d=Tw({pageBorderBoxCenter:r,viewport:l,destination:c,insideDestination:u,afterCritical:s}),f=Pw({previousPageBorderBoxCenter:r,destination:c,draggable:n,draggables:o,moveRelativeTo:d,insideDestination:u,viewport:l,afterCritical:s});if(!f)return null;var p=ui({impact:f,draggable:n,droppable:c,draggables:o,afterCritical:s}),h=Ta({pageBorderBoxCenter:p,draggable:n,viewport:l});return{clientSelection:h,impact:f,scrollJumpRequest:null}}),qe=(function(e){var t=e.at;return t?t.type==="REORDER"?t.destination.droppableId:t.combine.droppableId:null}),Nw=function(t,r){var n=qe(t);return n?r[n]:null},Mw=(function(e){var t=e.state,r=e.type,n=Nw(t.impact,t.dimensions.droppables),i=!!n,o=t.dimensions.droppables[t.critical.droppable.id],a=n||o,l=a.axis.direction,s=l==="vertical"&&(r==="MOVE_UP"||r==="MOVE_DOWN")||l==="horizontal"&&(r==="MOVE_LEFT"||r==="MOVE_RIGHT");if(s&&!i)return null;var c=r==="MOVE_DOWN"||r==="MOVE_RIGHT",u=t.dimensions.draggables[t.critical.draggable.id],d=t.current.page.borderBoxCenter,f=t.dimensions,p=f.draggables,h=f.droppables;return s?Rw({isMovingForward:c,previousPageBorderBoxCenter:d,draggable:u,destination:a,draggables:p,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):Ow({isMovingForward:c,previousPageBorderBoxCenter:d,draggable:u,isOver:a,draggables:p,droppables:h,viewport:t.viewport,afterCritical:t.afterCritical})});function Nt(e){return e.phase==="DRAGGING"||e.phase==="COLLECTING"}function Of(e){var t=Qe(e.top,e.bottom),r=Qe(e.left,e.right);return function(i){return t(i.y)&&r(i.x)}}function Aw(e,t){return e.left<t.right&&e.right>t.left&&e.top<t.bottom&&e.bottom>t.top}function Lw(e){var t=e.pageBorderBox,r=e.draggable,n=e.candidates,i=r.page.borderBox.center,o=n.map(function(a){var l=a.axis,s=Ft(a.axis.line,t.center[l.line],a.page.borderBox.center[l.crossAxisLine]);return{id:a.descriptor.id,distance:Kr(i,s)}}).sort(function(a,l){return l.distance-a.distance});return o[0]?o[0].id:null}function zw(e){var t=e.pageBorderBox,r=e.draggable,n=e.droppables,i=li(n).filter(function(o){if(!o.isEnabled)return!1;var a=o.subject.active;if(!a||!Aw(t,a))return!1;if(Of(a)(t.center))return!0;var l=o.axis,s=a.center[l.crossAxisLine],c=t[l.crossAxisStart],u=t[l.crossAxisEnd],d=Qe(a[l.crossAxisStart],a[l.crossAxisEnd]),f=d(c),p=d(u);return!f&&!p?!0:f?c<s:u>s});return i.length?i.length===1?i[0].descriptor.id:Lw({pageBorderBox:t,draggable:r,candidates:i}):null}var Nf=function(t,r){return $t(sn(t,r))},jw=(function(e,t){var r=e.frame;return r?Nf(t,r.scroll.diff.value):t});function Mf(e){var t=e.displaced,r=e.id;return!!(t.visible[r]||t.invisible[r])}function Fw(e){var t=e.draggable,r=e.closest,n=e.inHomeList;return r?n&&r.descriptor.index>t.descriptor.index?r.descriptor.index-1:r.descriptor.index:null}var Bw=(function(e){var t=e.pageBorderBoxWithDroppableScroll,r=e.draggable,n=e.destination,i=e.insideDestination,o=e.last,a=e.viewport,l=e.afterCritical,s=n.axis,c=cn(n.axis,r.displaceBy),u=c.value,d=t[s.start],f=t[s.end],p=ci(r,i),h=kt(p,function(b){var y=b.descriptor.id,x=b.page.borderBox.center[s.line],_=Tt(y,l),T=Mf({displaced:o,id:y});return _?T?f<=x:d<x-u:T?f<=x+u:d<x}),m=Fw({draggable:r,closest:h,inHomeList:vr(r,n)});return Vn({draggable:r,insideDestination:i,destination:n,viewport:a,last:o,displacedBy:c,index:m})}),$w=4,Gw=(function(e){var t=e.draggable,r=e.pageBorderBoxWithDroppableScroll,n=e.previousImpact,i=e.destination,o=e.insideDestination,a=e.afterCritical;if(!i.isCombineEnabled)return null;var l=i.axis,s=cn(i.axis,t.displaceBy),c=s.value,u=r[l.start],d=r[l.end],f=ci(t,o),p=kt(f,function(m){var b=m.descriptor.id,y=m.page.borderBox,x=y[l.size],_=x/$w,T=Tt(b,a),k=Mf({displaced:n.displaced,id:b});return T?k?d>y[l.start]+_&&d<y[l.end]-_:u>y[l.start]-c+_&&u<y[l.end]-c-_:k?d>y[l.start]+c+_&&d<y[l.end]+c-_:u>y[l.start]+_&&u<y[l.end]-_});if(!p)return null;var h={displacedBy:s,displaced:n.displaced,at:{type:"COMBINE",combine:{draggableId:p.descriptor.id,droppableId:i.descriptor.id}}};return h}),Af=(function(e){var t=e.pageOffset,r=e.draggable,n=e.draggables,i=e.droppables,o=e.previousImpact,a=e.viewport,l=e.afterCritical,s=Nf(r.page.borderBox,t),c=zw({pageBorderBox:s,draggable:r,droppables:i});if(!c)return rw;var u=i[c],d=gr(u.descriptor.id,n),f=jw(u,s);return Gw({pageBorderBoxWithDroppableScroll:f,draggable:r,previousImpact:o,destination:u,insideDestination:d,afterCritical:l})||Bw({pageBorderBoxWithDroppableScroll:f,draggable:r,destination:u,insideDestination:d,last:o.displaced,viewport:a,afterCritical:l})}),ka=(function(e,t){var r;return q({},e,(r={},r[t.descriptor.id]=t,r))}),Ww=function(t){var r=t.previousImpact,n=t.impact,i=t.droppables,o=qe(r),a=qe(n);if(!o||o===a)return i;var l=i[o];if(!l.subject.withPlaceholder)return i;var s=Ew(l);return ka(i,s)},Hw=(function(e){var t=e.draggable,r=e.draggables,n=e.droppables,i=e.previousImpact,o=e.impact,a=Ww({previousImpact:i,impact:o,droppables:n}),l=qe(o);if(!l)return a;var s=n[l];if(vr(t,s)||s.subject.withPlaceholder)return a;var c=Pf(s,t,r);return ka(a,c)}),Br=(function(e){var t=e.state,r=e.clientSelection,n=e.dimensions,i=e.viewport,o=e.impact,a=e.scrollJumpRequest,l=i||t.viewport,s=n||t.dimensions,c=r||t.current.client.selection,u=Ve(c,t.initial.client.selection),d={offset:u,selection:c,borderBoxCenter:Ne(t.initial.client.borderBoxCenter,u)},f={selection:Ne(d.selection,l.scroll.current),borderBoxCenter:Ne(d.borderBoxCenter,l.scroll.current),offset:Ne(d.offset,l.scroll.diff.value)},p={client:d,page:f};if(t.phase==="COLLECTING")return q({phase:"COLLECTING"},t,{dimensions:s,viewport:l,current:p});var h=s.draggables[t.critical.draggable.id],m=o||Af({pageOffset:f.offset,draggable:h,draggables:s.draggables,droppables:s.droppables,previousImpact:t.impact,viewport:l,afterCritical:t.afterCritical}),b=Hw({draggable:h,impact:m,previousImpact:t.impact,draggables:s.draggables,droppables:s.droppables}),y=q({},t,{current:p,dimensions:{draggables:s.draggables,droppables:b},impact:m,viewport:l,scrollJumpRequest:a||null,forceShouldAnimate:a?!1:null});return y});function Uw(e,t){return e.map(function(r){return t[r]})}var Lf=(function(e){var t=e.impact,r=e.viewport,n=e.draggables,i=e.destination,o=e.forceShouldAnimate,a=t.displaced,l=Uw(a.all,n),s=Jr({afterDragging:l,destination:i,displacedBy:t.displacedBy,viewport:r.frame,forceShouldAnimate:o,last:a});return q({},t,{displaced:s})}),zf=(function(e){var t=e.impact,r=e.draggable,n=e.droppable,i=e.draggables,o=e.viewport,a=e.afterCritical,l=ui({impact:t,draggable:r,draggables:i,droppable:n,afterCritical:a});return Ta({pageBorderBoxCenter:l,draggable:r,viewport:o})}),jf=(function(e){var t=e.state,r=e.dimensions,n=e.viewport;t.movementMode!=="SNAP"&&K();var i=t.impact,o=n||t.viewport,a=r||t.dimensions,l=a.draggables,s=a.droppables,c=l[t.critical.draggable.id],u=qe(i);u||K();var d=s[u],f=Lf({impact:i,viewport:o,destination:d,draggables:l}),p=zf({impact:f,draggable:c,droppable:d,draggables:l,viewport:o,afterCritical:t.afterCritical});return Br({impact:f,clientSelection:p,state:t,dimensions:a,viewport:o})}),Vw=(function(e){return{index:e.index,droppableId:e.droppableId}}),Ff=(function(e){var t=e.draggable,r=e.home,n=e.draggables,i=e.viewport,o=cn(r.axis,t.displaceBy),a=gr(r.descriptor.id,n),l=a.indexOf(t);l===-1&&K();var s=a.slice(l+1),c=s.reduce(function(p,h){return p[h.descriptor.id]=!0,p},{}),u={inVirtualList:r.descriptor.mode==="virtual",displacedBy:o,effected:c},d=Jr({afterDragging:s,destination:r,displacedBy:o,last:null,viewport:i.frame,forceShouldAnimate:!1}),f={displaced:d,displacedBy:o,at:{type:"REORDER",destination:Vw(t.descriptor)}};return{impact:f,afterCritical:u}}),qw=(function(e,t){return{draggables:e.draggables,droppables:ka(e.droppables,t)}}),Kw=(function(e){var t=e.draggable,r=e.offset,n=e.initialWindowScroll,i=to(t.client,r),o=Ln(i,n),a=q({},t,{placeholder:q({},t.placeholder,{client:i}),client:i,page:o});return a}),Yw=(function(e){var t=e.frame;return t||K(),t}),Jw=(function(e){var t=e.additions,r=e.updatedDroppables,n=e.viewport,i=n.scroll.diff.value;return t.map(function(o){var a=o.descriptor.droppableId,l=r[a],s=Yw(l),c=s.scroll.diff.value,u=Ne(i,c),d=Kw({draggable:o,offset:u,initialWindowScroll:n.scroll.initial});return d})}),Qw=(function(e){var t=e.state,r=e.published,n=r.modified.map(function(_){var T=t.dimensions.droppables[_.droppableId],k=wa(T,_.scroll);return k}),i=q({},t.dimensions.droppables,{},Sf(n)),o=wf(Jw({additions:r.additions,updatedDroppables:i,viewport:t.viewport})),a=q({},t.dimensions.draggables,{},o);r.removals.forEach(function(_){delete a[_]});var l={droppables:i,draggables:a},s=qe(t.impact),c=s?l.droppables[s]:null,u=l.draggables[t.critical.draggable.id],d=l.droppables[t.critical.droppable.id],f=Ff({draggable:u,home:d,draggables:a,viewport:t.viewport}),p=f.impact,h=f.afterCritical,m=c&&c.isCombineEnabled?t.impact:p,b=Af({pageOffset:t.current.page.offset,draggable:l.draggables[t.critical.draggable.id],draggables:l.draggables,droppables:l.droppables,previousImpact:m,viewport:t.viewport,afterCritical:h}),y=q({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:b,onLiftImpact:p,dimensions:l,afterCritical:h,forceShouldAnimate:!1});if(t.phase==="COLLECTING")return y;var x=q({phase:"DROP_PENDING"},y,{phase:"DROP_PENDING",reason:t.reason,isWaiting:!1});return x}),Eo=function(t){return t.movementMode==="SNAP"},Wi=function(t,r,n){var i=qw(t.dimensions,r);return!Eo(t)||n?Br({state:t,dimensions:i}):jf({state:t,dimensions:i})};function Hi(e){return e.isDragging&&e.movementMode==="SNAP"?q({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var Ks={phase:"IDLE",completed:null,shouldFlush:!1},Xw=(function(e,t){if(e===void 0&&(e=Ks),t.type==="FLUSH")return q({},Ks,{shouldFlush:!0});if(t.type==="INITIAL_PUBLISH"){e.phase!=="IDLE"&&K();var r=t.payload,n=r.critical,i=r.clientSelection,o=r.viewport,a=r.dimensions,l=r.movementMode,s=a.draggables[n.draggable.id],c=a.droppables[n.droppable.id],u={selection:i,borderBoxCenter:s.client.borderBox.center,offset:Te},d={client:u,page:{selection:Ne(u.selection,o.scroll.initial),borderBoxCenter:Ne(u.selection,o.scroll.initial),offset:Ne(u.selection,o.scroll.diff.value)}},f=li(a.droppables).every(function(j){return!j.isFixedOnPage}),p=Ff({draggable:s,home:c,draggables:a.draggables,viewport:o}),h=p.impact,m=p.afterCritical,b={phase:"DRAGGING",isDragging:!0,critical:n,movementMode:l,dimensions:a,initial:d,current:d,isWindowScrollAllowed:f,impact:h,afterCritical:m,onLiftImpact:h,viewport:o,scrollJumpRequest:null,forceShouldAnimate:null};return b}if(t.type==="COLLECTION_STARTING"){if(e.phase==="COLLECTING"||e.phase==="DROP_PENDING")return e;e.phase!=="DRAGGING"&&K();var y=q({phase:"COLLECTING"},e,{phase:"COLLECTING"});return y}if(t.type==="PUBLISH_WHILE_DRAGGING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"||K(),Qw({state:e,published:t.payload});if(t.type==="MOVE"){if(e.phase==="DROP_PENDING")return e;Nt(e)||K();var x=t.payload.client;return It(x,e.current.client.selection)?e:Br({state:e,clientSelection:x,impact:Eo(e)?e.impact:null})}if(t.type==="UPDATE_DROPPABLE_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="COLLECTING")return Hi(e);Nt(e)||K();var _=t.payload,T=_.id,k=_.newScroll,C=e.dimensions.droppables[T];if(!C)return e;var D=wa(C,k);return Wi(e,D,!1)}if(t.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(e.phase==="DROP_PENDING")return e;Nt(e)||K();var w=t.payload,R=w.id,I=w.isEnabled,P=e.dimensions.droppables[R];P||K(),P.isEnabled===I&&K();var L=q({},P,{isEnabled:I});return Wi(e,L,!0)}if(t.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(e.phase==="DROP_PENDING")return e;Nt(e)||K();var N=t.payload,G=N.id,z=N.isCombineEnabled,F=e.dimensions.droppables[G];F||K(),F.isCombineEnabled===z&&K();var W=q({},F,{isCombineEnabled:z});return Wi(e,W,!0)}if(t.type==="MOVE_BY_WINDOW_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="DROP_ANIMATING")return e;Nt(e)||K(),e.isWindowScrollAllowed||K();var H=t.payload.newScroll;if(It(e.viewport.scroll.current,H))return Hi(e);var J=Tf(e.viewport,H);return Eo(e)?jf({state:e,viewport:J}):Br({state:e,viewport:J})}if(t.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!Nt(e))return e;var Z=t.payload.maxScroll;if(It(Z,e.viewport.scroll.max))return e;var Y=q({},e.viewport,{scroll:q({},e.viewport.scroll,{max:Z})});return q({phase:"DRAGGING"},e,{viewport:Y})}if(t.type==="MOVE_UP"||t.type==="MOVE_DOWN"||t.type==="MOVE_LEFT"||t.type==="MOVE_RIGHT"){if(e.phase==="COLLECTING"||e.phase==="DROP_PENDING")return e;e.phase!=="DRAGGING"&&K();var X=Mw({state:e,type:t.type});return X?Br({state:e,impact:X.impact,clientSelection:X.clientSelection,scrollJumpRequest:X.scrollJumpRequest}):e}if(t.type==="DROP_PENDING"){var U=t.payload.reason;e.phase!=="COLLECTING"&&K();var re=q({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:U});return re}if(t.type==="DROP_ANIMATE"){var ne=t.payload,ce=ne.completed,B=ne.dropDuration,$=ne.newHomeClientOffset;e.phase==="DRAGGING"||e.phase==="DROP_PENDING"||K();var E={phase:"DROP_ANIMATING",completed:ce,dropDuration:B,newHomeClientOffset:$,dimensions:e.dimensions};return E}if(t.type==="DROP_COMPLETE"){var O=t.payload.completed;return{phase:"IDLE",completed:O,shouldFlush:!1}}return e}),Zw=function(t){return{type:"BEFORE_INITIAL_CAPTURE",payload:t}},eC=function(t){return{type:"LIFT",payload:t}},tC=function(t){return{type:"INITIAL_PUBLISH",payload:t}},rC=function(t){return{type:"PUBLISH_WHILE_DRAGGING",payload:t}},nC=function(){return{type:"COLLECTION_STARTING",payload:null}},iC=function(t){return{type:"UPDATE_DROPPABLE_SCROLL",payload:t}},oC=function(t){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:t}},aC=function(t){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:t}},Bf=function(t){return{type:"MOVE",payload:t}},lC=function(t){return{type:"MOVE_BY_WINDOW_SCROLL",payload:t}},sC=function(t){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:t}},cC=function(){return{type:"MOVE_UP",payload:null}},uC=function(){return{type:"MOVE_DOWN",payload:null}},dC=function(){return{type:"MOVE_RIGHT",payload:null}},fC=function(){return{type:"MOVE_LEFT",payload:null}},Ea=function(){return{type:"FLUSH",payload:null}},pC=function(t){return{type:"DROP_ANIMATE",payload:t}},Pa=function(t){return{type:"DROP_COMPLETE",payload:t}},$f=function(t){return{type:"DROP",payload:t}},hC=function(t){return{type:"DROP_PENDING",payload:t}},Gf=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}},gC=(function(e){return function(t){var r=t.getState,n=t.dispatch;return function(i){return function(o){if(o.type!=="LIFT"){i(o);return}var a=o.payload,l=a.id,s=a.clientSelection,c=a.movementMode,u=r();u.phase==="DROP_ANIMATING"&&n(Pa({completed:u.completed})),r().phase!=="IDLE"&&K(),n(Ea()),n(Zw({draggableId:l,movementMode:c}));var d={shouldPublishImmediately:c==="SNAP"},f={draggableId:l,scrollOptions:d},p=e.startPublishing(f),h=p.critical,m=p.dimensions,b=p.viewport;n(tC({critical:h,dimensions:m,clientSelection:s,movementMode:c,viewport:b}))}}}}),vC=(function(e){return function(){return function(t){return function(r){r.type==="INITIAL_PUBLISH"&&e.dragging(),r.type==="DROP_ANIMATE"&&e.dropping(r.payload.completed.result.reason),(r.type==="FLUSH"||r.type==="DROP_COMPLETE")&&e.resting(),t(r)}}}}),Oa={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Qr={opacity:{drop:0,combining:.7},scale:{drop:.75}},Na={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},Et=Na.outOfTheWay+"s "+Oa.outOfTheWay,$r={fluid:"opacity "+Et,snap:"transform "+Et+", opacity "+Et,drop:function(t){var r=t+"s "+Oa.drop;return"transform "+r+", opacity "+r},outOfTheWay:"transform "+Et,placeholder:"height "+Et+", width "+Et+", margin "+Et},Ys=function(t){return It(t,Te)?null:"translate("+t.x+"px, "+t.y+"px)"},Po={moveTo:Ys,drop:function(t,r){var n=Ys(t);return n?r?n+" scale("+Qr.scale.drop+")":n:null}},Oo=Na.minDropTime,Wf=Na.maxDropTime,mC=Wf-Oo,Js=1500,bC=.6,yC=(function(e){var t=e.current,r=e.destination,n=e.reason,i=Kr(t,r);if(i<=0)return Oo;if(i>=Js)return Wf;var o=i/Js,a=Oo+mC*o,l=n==="CANCEL"?a*bC:a;return Number(l.toFixed(2))}),xC=(function(e){var t=e.impact,r=e.draggable,n=e.dimensions,i=e.viewport,o=e.afterCritical,a=n.draggables,l=n.droppables,s=qe(t),c=s?l[s]:null,u=l[r.descriptor.droppableId],d=zf({impact:t,draggable:r,draggables:a,afterCritical:o,droppable:c||u,viewport:i}),f=Ve(d,r.client.borderBox.center);return f}),SC=(function(e){var t=e.draggables,r=e.reason,n=e.lastImpact,i=e.home,o=e.viewport,a=e.onLiftImpact;if(!n.at||r!=="DROP"){var l=Lf({draggables:t,impact:a,destination:i,viewport:o,forceShouldAnimate:!0});return{impact:l,didDropInsideDroppable:!1}}if(n.at.type==="REORDER")return{impact:n,didDropInsideDroppable:!0};var s=q({},n,{displaced:Yr});return{impact:s,didDropInsideDroppable:!0}}),wC=(function(e){var t=e.getState,r=e.dispatch;return function(n){return function(i){if(i.type!=="DROP"){n(i);return}var o=t(),a=i.payload.reason;if(o.phase==="COLLECTING"){r(hC({reason:a}));return}if(o.phase!=="IDLE"){var l=o.phase==="DROP_PENDING"&&o.isWaiting;l&&K(),o.phase==="DRAGGING"||o.phase==="DROP_PENDING"||K();var s=o.critical,c=o.dimensions,u=c.draggables[o.critical.draggable.id],d=SC({reason:a,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),f=d.impact,p=d.didDropInsideDroppable,h=p?Ia(f):null,m=p?si(f):null,b={index:s.draggable.index,droppableId:s.droppable.id},y={draggableId:u.descriptor.id,type:u.descriptor.type,source:b,reason:a,mode:o.movementMode,destination:h,combine:m},x=xC({impact:f,draggable:u,dimensions:c,viewport:o.viewport,afterCritical:o.afterCritical}),_={critical:o.critical,afterCritical:o.afterCritical,result:y,impact:f},T=!It(o.current.client.offset,x)||!!y.combine;if(!T){r(Pa({completed:_}));return}var k=yC({current:o.current.client.offset,destination:x,reason:a}),C={newHomeClientOffset:x,dropDuration:k,completed:_};r(pC(C))}}}}),Hf=(function(){return{x:window.pageXOffset,y:window.pageYOffset}});function CC(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(r){r.target!==window&&r.target!==window.document||e()}}}function IC(e){var t=e.onWindowScroll;function r(){t(Hf())}var n=Gr(r),i=CC(n),o=Ct;function a(){return o!==Ct}function l(){a()&&K(),o=Je(window,[i])}function s(){a()||K(),n.cancel(),o(),o=Ct}return{start:l,stop:s,isActive:a}}var RC=function(t){return t.type==="DROP_COMPLETE"||t.type==="DROP_ANIMATE"||t.type==="FLUSH"},_C=(function(e){var t=IC({onWindowScroll:function(n){e.dispatch(lC({newScroll:n}))}});return function(r){return function(n){!t.isActive()&&n.type==="INITIAL_PUBLISH"&&t.start(),t.isActive()&&RC(n)&&t.stop(),r(n)}}}),DC=(function(e){var t=!1,r=!1,n=setTimeout(function(){r=!0}),i=function(a){t||r||(t=!0,e(a),clearTimeout(n))};return i.wasCalled=function(){return t},i}),TC=(function(){var e=[],t=function(o){var a=Ca(e,function(c){return c.timerId===o});a===-1&&K();var l=e.splice(a,1),s=l[0];s.callback()},r=function(o){var a=setTimeout(function(){return t(a)}),l={timerId:a,callback:o};e.push(l)},n=function(){if(e.length){var o=[].concat(e);e.length=0,o.forEach(function(a){clearTimeout(a.timerId),a.callback()})}};return{add:r,flush:n}}),kC=function(t,r){return t==null&&r==null?!0:t==null||r==null?!1:t.droppableId===r.droppableId&&t.index===r.index},EC=function(t,r){return t==null&&r==null?!0:t==null||r==null?!1:t.draggableId===r.draggableId&&t.droppableId===r.droppableId},PC=function(t,r){if(t===r)return!0;var n=t.draggable.id===r.draggable.id&&t.draggable.droppableId===r.draggable.droppableId&&t.draggable.type===r.draggable.type&&t.draggable.index===r.draggable.index,i=t.droppable.id===r.droppable.id&&t.droppable.type===r.droppable.type;return n&&i},Cr=function(t,r){r()},yn=function(t,r){return{draggableId:t.draggable.id,type:t.droppable.type,source:{droppableId:t.droppable.id,index:t.draggable.index},mode:r}},Ui=function(t,r,n,i){if(!t){n(i(r));return}var o=DC(n),a={announce:o};t(r,a),o.wasCalled()||n(i(r))},OC=(function(e,t){var r=TC(),n=null,i=function(f,p){n&&K(),Cr("onBeforeCapture",function(){var h=e().onBeforeCapture;if(h){var m={draggableId:f,mode:p};h(m)}})},o=function(f,p){n&&K(),Cr("onBeforeDragStart",function(){var h=e().onBeforeDragStart;h&&h(yn(f,p))})},a=function(f,p){n&&K();var h=yn(f,p);n={mode:p,lastCritical:f,lastLocation:h.source,lastCombine:null},r.add(function(){Cr("onDragStart",function(){return Ui(e().onDragStart,h,t,Nn.onDragStart)})})},l=function(f,p){var h=Ia(p),m=si(p);n||K();var b=!PC(f,n.lastCritical);b&&(n.lastCritical=f);var y=!kC(n.lastLocation,h);y&&(n.lastLocation=h);var x=!EC(n.lastCombine,m);if(x&&(n.lastCombine=m),!(!b&&!y&&!x)){var _=q({},yn(f,n.mode),{combine:m,destination:h});r.add(function(){Cr("onDragUpdate",function(){return Ui(e().onDragUpdate,_,t,Nn.onDragUpdate)})})}},s=function(){n||K(),r.flush()},c=function(f){n||K(),n=null,Cr("onDragEnd",function(){return Ui(e().onDragEnd,f,t,Nn.onDragEnd)})},u=function(){if(n){var f=q({},yn(n.lastCritical,n.mode),{combine:null,destination:null,reason:"CANCEL"});c(f)}};return{beforeCapture:i,beforeStart:o,start:a,update:l,flush:s,drop:c,abort:u}}),NC=(function(e,t){var r=OC(e,t);return function(n){return function(i){return function(o){if(o.type==="BEFORE_INITIAL_CAPTURE"){r.beforeCapture(o.payload.draggableId,o.payload.movementMode);return}if(o.type==="INITIAL_PUBLISH"){var a=o.payload.critical;r.beforeStart(a,o.payload.movementMode),i(o),r.start(a,o.payload.movementMode);return}if(o.type==="DROP_COMPLETE"){var l=o.payload.completed.result;r.flush(),i(o),r.drop(l);return}if(i(o),o.type==="FLUSH"){r.abort();return}var s=n.getState();s.phase==="DRAGGING"&&r.update(s.critical,s.impact)}}}}),MC=(function(e){return function(t){return function(r){if(r.type!=="DROP_ANIMATION_FINISHED"){t(r);return}var n=e.getState();n.phase!=="DROP_ANIMATING"&&K(),e.dispatch(Pa({completed:n.completed}))}}}),AC=(function(e){var t=null,r=null;function n(){r&&(cancelAnimationFrame(r),r=null),t&&(t(),t=null)}return function(i){return function(o){if((o.type==="FLUSH"||o.type==="DROP_COMPLETE"||o.type==="DROP_ANIMATION_FINISHED")&&n(),i(o),o.type==="DROP_ANIMATE"){var a={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var s=e.getState();s.phase==="DROP_ANIMATING"&&e.dispatch(Gf())}};r=requestAnimationFrame(function(){r=null,t=Je(window,[a])})}}}}),LC=(function(e){return function(){return function(t){return function(r){(r.type==="DROP_COMPLETE"||r.type==="FLUSH"||r.type==="DROP_ANIMATE")&&e.stopPublishing(),t(r)}}}}),zC=(function(e){var t=!1;return function(){return function(r){return function(n){if(n.type==="INITIAL_PUBLISH"){t=!0,e.tryRecordFocus(n.payload.critical.draggable.id),r(n),e.tryRestoreFocusRecorded();return}if(r(n),!!t){if(n.type==="FLUSH"){t=!1,e.tryRestoreFocusRecorded();return}if(n.type==="DROP_COMPLETE"){t=!1;var i=n.payload.completed.result;i.combine&&e.tryShiftRecord(i.draggableId,i.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}),jC=function(t){return t.type==="DROP_COMPLETE"||t.type==="DROP_ANIMATE"||t.type==="FLUSH"},FC=(function(e){return function(t){return function(r){return function(n){if(jC(n)){e.stop(),r(n);return}if(n.type==="INITIAL_PUBLISH"){r(n);var i=t.getState();i.phase!=="DRAGGING"&&K(),e.start(i);return}r(n),e.scroll(t.getState())}}}}),BC=(function(e){return function(t){return function(r){if(t(r),r.type==="PUBLISH_WHILE_DRAGGING"){var n=e.getState();n.phase==="DROP_PENDING"&&(n.isWaiting||e.dispatch($f({reason:n.reason})))}}}}),$C=rg,GC=(function(e){var t=e.dimensionMarshal,r=e.focusMarshal,n=e.styleMarshal,i=e.getResponders,o=e.announce,a=e.autoScroller;return tg(Xw,$C(ng(vC(n),LC(t),gC(t),wC,MC,AC,BC,FC(a),_C,zC(r),NC(i,o))))}),Vi=function(){return{additions:{},removals:{},modified:{}}};function WC(e){var t=e.registry,r=e.callbacks,n=Vi(),i=null,o=function(){i||(r.collectionStarting(),i=requestAnimationFrame(function(){i=null;var u=n,d=u.additions,f=u.removals,p=u.modified,h=Object.keys(d).map(function(y){return t.draggable.getById(y).getDimension(Te)}).sort(function(y,x){return y.descriptor.index-x.descriptor.index}),m=Object.keys(p).map(function(y){var x=t.droppable.getById(y),_=x.callbacks.getScrollWhileDragging();return{droppableId:y,scroll:_}}),b={additions:h,removals:Object.keys(f),modified:m};n=Vi(),r.publish(b)}))},a=function(u){var d=u.descriptor.id;n.additions[d]=u,n.modified[u.descriptor.droppableId]=!0,n.removals[d]&&delete n.removals[d],o()},l=function(u){var d=u.descriptor;n.removals[d.id]=!0,n.modified[d.droppableId]=!0,n.additions[d.id]&&delete n.additions[d.id],o()},s=function(){i&&(cancelAnimationFrame(i),i=null,n=Vi())};return{add:a,remove:l,stop:s}}var Uf=(function(e){var t=e.scrollHeight,r=e.scrollWidth,n=e.height,i=e.width,o=Ve({x:r,y:t},{x:i,y:n}),a={x:Math.max(0,o.x),y:Math.max(0,o.y)};return a}),Vf=(function(){var e=document.documentElement;return e||K(),e}),qf=(function(){var e=Vf(),t=Uf({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight});return t}),HC=(function(){var e=Hf(),t=qf(),r=e.y,n=e.x,i=Vf(),o=i.clientWidth,a=i.clientHeight,l=n+o,s=r+a,c=$t({top:r,left:n,right:l,bottom:s}),u={frame:c,scroll:{initial:e,current:e,max:t,diff:{value:Te,displacement:Te}}};return u}),UC=(function(e){var t=e.critical,r=e.scrollOptions,n=e.registry,i=HC(),o=i.scroll.current,a=t.droppable,l=n.droppable.getAllByType(a.type).map(function(d){return d.callbacks.getDimensionAndWatchScroll(o,r)}),s=n.draggable.getAllByType(t.draggable.type).map(function(d){return d.getDimension(o)}),c={draggables:wf(s),droppables:Sf(l)},u={dimensions:c,critical:t,viewport:i};return u});function Qs(e,t,r){if(r.descriptor.id===t.id||r.descriptor.type!==t.type)return!1;var n=e.droppable.getById(r.descriptor.droppableId);return n.descriptor.mode==="virtual"}var VC=(function(e,t){var r=null,n=WC({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),i=function(p,h){e.droppable.exists(p)||K(),r&&t.updateDroppableIsEnabled({id:p,isEnabled:h})},o=function(p,h){r&&(e.droppable.exists(p)||K(),t.updateDroppableIsCombineEnabled({id:p,isCombineEnabled:h}))},a=function(p,h){r&&(e.droppable.exists(p)||K(),t.updateDroppableScroll({id:p,newScroll:h}))},l=function(p,h){r&&e.droppable.getById(p).callbacks.scroll(h)},s=function(){if(r){n.stop();var p=r.critical.droppable;e.droppable.getAllByType(p.type).forEach(function(h){return h.callbacks.dragStopped()}),r.unsubscribe(),r=null}},c=function(p){r||K();var h=r.critical.draggable;p.type==="ADDITION"&&Qs(e,h,p.value)&&n.add(p.value),p.type==="REMOVAL"&&Qs(e,h,p.value)&&n.remove(p.value)},u=function(p){r&&K();var h=e.draggable.getById(p.draggableId),m=e.droppable.getById(h.descriptor.droppableId),b={draggable:h.descriptor,droppable:m.descriptor},y=e.subscribe(c);return r={critical:b,unsubscribe:y},UC({critical:b,registry:e,scrollOptions:p.scrollOptions})},d={updateDroppableIsEnabled:i,updateDroppableIsCombineEnabled:o,scrollDroppable:l,updateDroppableScroll:a,startPublishing:u,stopPublishing:s};return d}),Kf=(function(e,t){return e.phase==="IDLE"?!0:e.phase!=="DROP_ANIMATING"||e.completed.result.draggableId===t?!1:e.completed.result.reason==="DROP"}),qC=(function(e){window.scrollBy(e.x,e.y)}),KC=De(function(e){return li(e).filter(function(t){return!(!t.isEnabled||!t.frame)})}),YC=function(t,r){var n=kt(KC(r),function(i){return i.frame||K(),Of(i.frame.pageMarginBox)(t)});return n},JC=(function(e){var t=e.center,r=e.destination,n=e.droppables;if(r){var i=n[r];return i.frame?i:null}var o=YC(t,n);return o}),Rt={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(t){return Math.pow(t,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},QC=(function(e,t){var r=e[t.size]*Rt.startFromPercentage,n=e[t.size]*Rt.maxScrollAtPercentage,i={startScrollingFrom:r,maxScrollValueAt:n};return i}),Yf=(function(e){var t=e.startOfRange,r=e.endOfRange,n=e.current,i=r-t;if(i===0)return 0;var o=n-t,a=o/i;return a}),Ma=1,XC=(function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return Rt.maxPixelScroll;if(e===t.startScrollingFrom)return Ma;var r=Yf({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),n=1-r,i=Rt.maxPixelScroll*Rt.ease(n);return Math.ceil(i)}),Xs=Rt.durationDampening.accelerateAt,Zs=Rt.durationDampening.stopDampeningAt,ZC=(function(e,t){var r=t,n=Zs,i=Date.now(),o=i-r;if(o>=Zs)return e;if(o<Xs)return Ma;var a=Yf({startOfRange:Xs,endOfRange:n,current:o}),l=e*Rt.ease(a);return Math.ceil(l)}),ec=(function(e){var t=e.distanceToEdge,r=e.thresholds,n=e.dragStartTime,i=e.shouldUseTimeDampening,o=XC(t,r);return o===0?0:i?Math.max(ZC(o,n),Ma):o}),tc=(function(e){var t=e.container,r=e.distanceToEdges,n=e.dragStartTime,i=e.axis,o=e.shouldUseTimeDampening,a=QC(t,i),l=r[i.end]<r[i.start];return l?ec({distanceToEdge:r[i.end],thresholds:a,dragStartTime:n,shouldUseTimeDampening:o}):-1*ec({distanceToEdge:r[i.start],thresholds:a,dragStartTime:n,shouldUseTimeDampening:o})}),eI=(function(e){var t=e.container,r=e.subject,n=e.proposedScroll,i=r.height>t.height,o=r.width>t.width;return!o&&!i?n:o&&i?null:{x:o?0:n.x,y:i?0:n.y}}),tI=yf(function(e){return e===0?0:e}),Jf=(function(e){var t=e.dragStartTime,r=e.container,n=e.subject,i=e.center,o=e.shouldUseTimeDampening,a={top:i.y-r.top,right:r.right-i.x,bottom:r.bottom-i.y,left:i.x-r.left},l=tc({container:r,distanceToEdges:a,dragStartTime:t,axis:Ra,shouldUseTimeDampening:o}),s=tc({container:r,distanceToEdges:a,dragStartTime:t,axis:Rf,shouldUseTimeDampening:o}),c=tI({x:s,y:l});if(It(c,Te))return null;var u=eI({container:r,subject:n,proposedScroll:c});return u?It(u,Te)?null:u:null}),rI=yf(function(e){return e===0?0:e>0?1:-1}),Aa=(function(){var e=function(r,n){return r<0?r:r>n?r-n:0};return function(t){var r=t.current,n=t.max,i=t.change,o=Ne(r,i),a={x:e(o.x,n.x),y:e(o.y,n.y)};return It(a,Te)?null:a}})(),Qf=function(t){var r=t.max,n=t.current,i=t.change,o={x:Math.max(n.x,r.x),y:Math.max(n.y,r.y)},a=rI(i),l=Aa({max:o,current:n,change:a});return!l||a.x!==0&&l.x===0||a.y!==0&&l.y===0},La=function(t,r){return Qf({current:t.scroll.current,max:t.scroll.max,change:r})},nI=function(t,r){if(!La(t,r))return null;var n=t.scroll.max,i=t.scroll.current;return Aa({current:i,max:n,change:r})},za=function(t,r){var n=t.frame;return n?Qf({current:n.scroll.current,max:n.scroll.max,change:r}):!1},iI=function(t,r){var n=t.frame;return!n||!za(t,r)?null:Aa({current:n.scroll.current,max:n.scroll.max,change:r})},oI=(function(e){var t=e.viewport,r=e.subject,n=e.center,i=e.dragStartTime,o=e.shouldUseTimeDampening,a=Jf({dragStartTime:i,container:t.frame,subject:r,center:n,shouldUseTimeDampening:o});return a&&La(t,a)?a:null}),aI=(function(e){var t=e.droppable,r=e.subject,n=e.center,i=e.dragStartTime,o=e.shouldUseTimeDampening,a=t.frame;if(!a)return null;var l=Jf({dragStartTime:i,container:a.pageMarginBox,subject:r,center:n,shouldUseTimeDampening:o});return l&&za(t,l)?l:null}),rc=(function(e){var t=e.state,r=e.dragStartTime,n=e.shouldUseTimeDampening,i=e.scrollWindow,o=e.scrollDroppable,a=t.current.page.borderBoxCenter,l=t.dimensions.draggables[t.critical.draggable.id],s=l.page.marginBox;if(t.isWindowScrollAllowed){var c=t.viewport,u=oI({dragStartTime:r,viewport:c,subject:s,center:a,shouldUseTimeDampening:n});if(u){i(u);return}}var d=JC({center:a,destination:qe(t.impact),droppables:t.dimensions.droppables});if(d){var f=aI({dragStartTime:r,droppable:d,subject:s,center:a,shouldUseTimeDampening:n});f&&o(d.descriptor.id,f)}}),lI=(function(e){var t=e.scrollWindow,r=e.scrollDroppable,n=Gr(t),i=Gr(r),o=null,a=function(u){o||K();var d=o,f=d.shouldUseTimeDampening,p=d.dragStartTime;rc({state:u,scrollWindow:n,scrollDroppable:i,dragStartTime:p,shouldUseTimeDampening:f})},l=function(u){o&&K();var d=Date.now(),f=!1,p=function(){f=!0};rc({state:u,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:p,scrollDroppable:p}),o={dragStartTime:d,shouldUseTimeDampening:f},f&&a(u)},s=function(){o&&(n.cancel(),i.cancel(),o=null)};return{start:l,stop:s,scroll:a}}),sI=(function(e){var t=e.move,r=e.scrollDroppable,n=e.scrollWindow,i=function(c,u){var d=Ne(c.current.client.selection,u);t({client:d})},o=function(c,u){if(!za(c,u))return u;var d=iI(c,u);if(!d)return r(c.descriptor.id,u),null;var f=Ve(u,d);r(c.descriptor.id,f);var p=Ve(u,f);return p},a=function(c,u,d){if(!c||!La(u,d))return d;var f=nI(u,d);if(!f)return n(d),null;var p=Ve(d,f);n(p);var h=Ve(d,p);return h},l=function(c){var u=c.scrollJumpRequest;if(u){var d=qe(c.impact);d||K();var f=o(c.dimensions.droppables[d],u);if(f){var p=c.viewport,h=a(c.isWindowScrollAllowed,p,f);h&&i(c,h)}}};return l}),cI=(function(e){var t=e.scrollDroppable,r=e.scrollWindow,n=e.move,i=lI({scrollWindow:r,scrollDroppable:t}),o=sI({move:n,scrollWindow:r,scrollDroppable:t}),a=function(c){if(c.phase==="DRAGGING"){if(c.movementMode==="FLUID"){i.scroll(c);return}c.scrollJumpRequest&&o(c)}},l={scroll:a,start:i.start,stop:i.stop};return l}),sr="data-rbd",cr=(function(){var e=sr+"-drag-handle";return{base:e,draggableId:e+"-draggable-id",contextId:e+"-context-id"}})(),No=(function(){var e=sr+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}})(),uI=(function(){var e=sr+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}})(),nc={contextId:sr+"-scroll-container-context-id"},dI=function(t){return function(r){return"["+r+'="'+t+'"]'}},Ir=function(t,r){return t.map(function(n){var i=n.styles[r];return i?n.selector+" { "+i+" }":""}).join(" ")},fI="pointer-events: none;",pI=(function(e){var t=dI(e),r=(function(){var l=`
456
456
  cursor: -webkit-grab;
457
457
  cursor: grab;
458
458
  `;return{selector:t(cr.contextId),styles:{always:`
@@ -469,4 +469,4 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStat
469
469
  -moz-user-select: none;
470
470
  -ms-user-select: none;
471
471
  overflow-anchor: none;
472
- `}},a=[n,r,i,o];return{always:Ir(a,"always"),resting:Ir(a,"resting"),dragging:Ir(a,"dragging"),dropAnimating:Ir(a,"dropAnimating"),userCancel:Ir(a,"userCancel")}}),Ke=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?v.useLayoutEffect:v.useEffect,qi=function(){var t=document.querySelector("head");return t||K(),t},ic=function(t){var r=document.createElement("style");return t&&r.setAttribute("nonce",t),r.type="text/css",r};function hI(e,t){var r=ue(function(){return pI(e)},[e]),n=v.useRef(null),i=v.useRef(null),o=ie(De(function(d){var f=i.current;f||K(),f.textContent=d}),[]),a=ie(function(d){var f=n.current;f||K(),f.textContent=d},[]);Ke(function(){!n.current&&!i.current||K();var d=ic(t),f=ic(t);return n.current=d,i.current=f,d.setAttribute(sr+"-always",e),f.setAttribute(sr+"-dynamic",e),qi().appendChild(d),qi().appendChild(f),a(r.always),o(r.resting),function(){var p=function(m){var b=m.current;b||K(),qi().removeChild(b),m.current=null};p(n),p(i)}},[t,a,o,r.always,r.resting,e]);var l=ie(function(){return o(r.dragging)},[o,r.dragging]),s=ie(function(d){if(d==="DROP"){o(r.dropAnimating);return}o(r.userCancel)},[o,r.dropAnimating,r.userCancel]),c=ie(function(){i.current&&o(r.resting)},[o,r.resting]),u=ue(function(){return{dragging:l,dropping:s,resting:c}},[l,s,c]);return u}var Xf=(function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window});function di(e){return e instanceof Xf(e).HTMLElement}function gI(e,t){var r="["+cr.contextId+'="'+e+'"]',n=xf(document.querySelectorAll(r));if(!n.length)return null;var i=kt(n,function(o){return o.getAttribute(cr.draggableId)===t});return!i||!di(i)?null:i}function vI(e){var t=v.useRef({}),r=v.useRef(null),n=v.useRef(null),i=v.useRef(!1),o=ie(function(f,p){var h={id:f,focus:p};return t.current[f]=h,function(){var b=t.current,y=b[f];y!==h&&delete b[f]}},[]),a=ie(function(f){var p=gI(e,f);p&&p!==document.activeElement&&p.focus()},[e]),l=ie(function(f,p){r.current===f&&(r.current=p)},[]),s=ie(function(){n.current||i.current&&(n.current=requestAnimationFrame(function(){n.current=null;var f=r.current;f&&a(f)}))},[a]),c=ie(function(f){r.current=null;var p=document.activeElement;p&&p.getAttribute(cr.draggableId)===f&&(r.current=f)},[]);Ke(function(){return i.current=!0,function(){i.current=!1;var f=n.current;f&&cancelAnimationFrame(f)}},[]);var u=ue(function(){return{register:o,tryRecordFocus:c,tryRestoreFocusRecorded:s,tryShiftRecord:l}},[o,c,s,l]);return u}function mI(){var e={draggables:{},droppables:{}},t=[];function r(d){return t.push(d),function(){var p=t.indexOf(d);p!==-1&&t.splice(p,1)}}function n(d){t.length&&t.forEach(function(f){return f(d)})}function i(d){return e.draggables[d]||null}function o(d){var f=i(d);return f||K(),f}var a={register:function(f){e.draggables[f.descriptor.id]=f,n({type:"ADDITION",value:f})},update:function(f,p){var h=e.draggables[p.descriptor.id];h&&h.uniqueId===f.uniqueId&&(delete e.draggables[p.descriptor.id],e.draggables[f.descriptor.id]=f)},unregister:function(f){var p=f.descriptor.id,h=i(p);h&&f.uniqueId===h.uniqueId&&(delete e.draggables[p],n({type:"REMOVAL",value:f}))},getById:o,findById:i,exists:function(f){return!!i(f)},getAllByType:function(f){return Un(e.draggables).filter(function(p){return p.descriptor.type===f})}};function l(d){return e.droppables[d]||null}function s(d){var f=l(d);return f||K(),f}var c={register:function(f){e.droppables[f.descriptor.id]=f},unregister:function(f){var p=l(f.descriptor.id);p&&f.uniqueId===p.uniqueId&&delete e.droppables[f.descriptor.id]},getById:s,findById:l,exists:function(f){return!!l(f)},getAllByType:function(f){return Un(e.droppables).filter(function(p){return p.descriptor.type===f})}};function u(){e.draggables={},e.droppables={},t.length=0}return{draggable:a,droppable:c,subscribe:r,clean:u}}function bI(){var e=ue(mI,[]);return v.useEffect(function(){return function(){requestAnimationFrame(e.clean)}},[e]),e}var ja=Q.createContext(null),qn=(function(){var e=document.body;return e||K(),e}),yI={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},xI=function(t){return"rbd-announcement-"+t};function SI(e){var t=ue(function(){return xI(e)},[e]),r=v.useRef(null);v.useEffect(function(){var o=document.createElement("div");return r.current=o,o.id=t,o.setAttribute("aria-live","assertive"),o.setAttribute("aria-atomic","true"),q(o.style,yI),qn().appendChild(o),function(){setTimeout(function(){var s=qn();s.contains(o)&&s.removeChild(o),o===r.current&&(r.current=null)})}},[t]);var n=ie(function(i){var o=r.current;if(o){o.textContent=i;return}},[]);return n}var wI=0,CI={separator:"::"};function Fa(e,t){return t===void 0&&(t=CI),ue(function(){return""+e+t.separator+wI++},[t.separator,e])}function II(e){var t=e.contextId,r=e.uniqueId;return"rbd-hidden-text-"+t+"-"+r}function RI(e){var t=e.contextId,r=e.text,n=Fa("hidden-text",{separator:"-"}),i=ue(function(){return II({contextId:t,uniqueId:n})},[n,t]);return v.useEffect(function(){var a=document.createElement("div");return a.id=i,a.textContent=r,a.style.display="none",qn().appendChild(a),function(){var s=qn();s.contains(a)&&s.removeChild(a)}},[i,r]),i}var fi=Q.createContext(null);function Zf(e){var t=v.useRef(e);return v.useEffect(function(){t.current=e}),t}function _I(){var e=null;function t(){return!!e}function r(a){return a===e}function n(a){e&&K();var l={abandon:a};return e=l,l}function i(){e||K(),e=null}function o(){e&&(e.abandon(),i())}return{isClaimed:t,isActive:r,claim:n,release:i,tryAbandon:o}}var DI=9,TI=13,Ba=27,ep=32,kI=33,EI=34,PI=35,OI=36,NI=37,AI=38,MI=39,LI=40,xn,zI=(xn={},xn[TI]=!0,xn[DI]=!0,xn),tp=(function(e){zI[e.keyCode]&&e.preventDefault()}),pi=(function(){var e="visibilitychange";if(typeof document>"u")return e;var t=[e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],r=kt(t,function(n){return"on"+n in document});return r||e})(),rp=0,oc=5;function jI(e,t){return Math.abs(t.x-e.x)>=oc||Math.abs(t.y-e.y)>=oc}var ac={type:"IDLE"};function FI(e){var t=e.cancel,r=e.completed,n=e.getPhase,i=e.setPhase;return[{eventName:"mousemove",fn:function(a){var l=a.button,s=a.clientX,c=a.clientY;if(l===rp){var u={x:s,y:c},d=n();if(d.type==="DRAGGING"){a.preventDefault(),d.actions.move(u);return}d.type!=="PENDING"&&K();var f=d.point;if(jI(f,u)){a.preventDefault();var p=d.actions.fluidLift(u);i({type:"DRAGGING",actions:p})}}}},{eventName:"mouseup",fn:function(a){var l=n();if(l.type!=="DRAGGING"){t();return}a.preventDefault(),l.actions.drop({shouldBlockNextClick:!0}),r()}},{eventName:"mousedown",fn:function(a){n().type==="DRAGGING"&&a.preventDefault(),t()}},{eventName:"keydown",fn:function(a){var l=n();if(l.type==="PENDING"){t();return}if(a.keyCode===Ba){a.preventDefault(),t();return}tp(a)}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){n().type==="PENDING"&&t()}},{eventName:"webkitmouseforcedown",fn:function(a){var l=n();if(l.type==="IDLE"&&K(),l.actions.shouldRespectForcePress()){t();return}a.preventDefault()}},{eventName:pi,fn:t}]}function BI(e){var t=v.useRef(ac),r=v.useRef(Ct),n=ue(function(){return{eventName:"mousedown",fn:function(d){if(!d.defaultPrevented&&d.button===rp&&!(d.ctrlKey||d.metaKey||d.shiftKey||d.altKey)){var f=e.findClosestDraggableId(d);if(f){var p=e.tryGetLock(f,a,{sourceEvent:d});if(p){d.preventDefault();var h={x:d.clientX,y:d.clientY};r.current(),c(p,h)}}}}}},[e]),i=ue(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(d){if(!d.defaultPrevented){var f=e.findClosestDraggableId(d);if(f){var p=e.findOptionsForDraggable(f);p&&(p.shouldRespectForcePress||e.canGetLock(f)&&d.preventDefault())}}}}},[e]),o=ie(function(){var d={passive:!1,capture:!0};r.current=Je(window,[i,n],d)},[i,n]),a=ie(function(){var u=t.current;u.type!=="IDLE"&&(t.current=ac,r.current(),o())},[o]),l=ie(function(){var u=t.current;a(),u.type==="DRAGGING"&&u.actions.cancel({shouldBlockNextClick:!0}),u.type==="PENDING"&&u.actions.abort()},[a]),s=ie(function(){var d={capture:!0,passive:!1},f=FI({cancel:l,completed:a,getPhase:function(){return t.current},setPhase:function(h){t.current=h}});r.current=Je(window,f,d)},[l,a]),c=ie(function(d,f){t.current.type!=="IDLE"&&K(),t.current={type:"PENDING",point:f,actions:d},s()},[s]);Ke(function(){return o(),function(){r.current()}},[o])}var qt;function $I(){}var GI=(qt={},qt[EI]=!0,qt[kI]=!0,qt[OI]=!0,qt[PI]=!0,qt);function WI(e,t){function r(){t(),e.cancel()}function n(){t(),e.drop()}return[{eventName:"keydown",fn:function(o){if(o.keyCode===Ba){o.preventDefault(),r();return}if(o.keyCode===ep){o.preventDefault(),n();return}if(o.keyCode===LI){o.preventDefault(),e.moveDown();return}if(o.keyCode===AI){o.preventDefault(),e.moveUp();return}if(o.keyCode===MI){o.preventDefault(),e.moveRight();return}if(o.keyCode===NI){o.preventDefault(),e.moveLeft();return}if(GI[o.keyCode]){o.preventDefault();return}tp(o)}},{eventName:"mousedown",fn:r},{eventName:"mouseup",fn:r},{eventName:"click",fn:r},{eventName:"touchstart",fn:r},{eventName:"resize",fn:r},{eventName:"wheel",fn:r,options:{passive:!0}},{eventName:pi,fn:r}]}function HI(e){var t=v.useRef($I),r=ue(function(){return{eventName:"keydown",fn:function(o){if(o.defaultPrevented||o.keyCode!==ep)return;var a=e.findClosestDraggableId(o);if(!a)return;var l=e.tryGetLock(a,u,{sourceEvent:o});if(!l)return;o.preventDefault();var s=!0,c=l.snapLift();t.current();function u(){s||K(),s=!1,t.current(),n()}t.current=Je(window,WI(c,u),{capture:!0,passive:!1})}}},[e]),n=ie(function(){var o={passive:!1,capture:!0};t.current=Je(window,[r],o)},[r]);Ke(function(){return n(),function(){t.current()}},[n])}var Ki={type:"IDLE"},UI=120,VI=.15;function qI(e){var t=e.cancel,r=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(i){i.preventDefault()}},{eventName:"keydown",fn:function(i){if(r().type!=="DRAGGING"){t();return}i.keyCode===Ba&&i.preventDefault(),t()}},{eventName:pi,fn:t}]}function KI(e){var t=e.cancel,r=e.completed,n=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(o){var a=n();if(a.type!=="DRAGGING"){t();return}a.hasMoved=!0;var l=o.touches[0],s=l.clientX,c=l.clientY,u={x:s,y:c};o.preventDefault(),a.actions.move(u)}},{eventName:"touchend",fn:function(o){var a=n();if(a.type!=="DRAGGING"){t();return}o.preventDefault(),a.actions.drop({shouldBlockNextClick:!0}),r()}},{eventName:"touchcancel",fn:function(o){if(n().type!=="DRAGGING"){t();return}o.preventDefault(),t()}},{eventName:"touchforcechange",fn:function(o){var a=n();a.type==="IDLE"&&K();var l=o.touches[0];if(l){var s=l.force>=VI;if(s){var c=a.actions.shouldRespectForcePress();if(a.type==="PENDING"){c&&t();return}if(c){if(a.hasMoved){o.preventDefault();return}t();return}o.preventDefault()}}}},{eventName:pi,fn:t}]}function YI(e){var t=v.useRef(Ki),r=v.useRef(Ct),n=ie(function(){return t.current},[]),i=ie(function(p){t.current=p},[]),o=ue(function(){return{eventName:"touchstart",fn:function(p){if(!p.defaultPrevented){var h=e.findClosestDraggableId(p);if(h){var m=e.tryGetLock(h,l,{sourceEvent:p});if(m){var b=p.touches[0],y=b.clientX,x=b.clientY,_={x:y,y:x};r.current(),d(m,_)}}}}}},[e]),a=ie(function(){var p={capture:!0,passive:!1};r.current=Je(window,[o],p)},[o]),l=ie(function(){var f=t.current;f.type!=="IDLE"&&(f.type==="PENDING"&&clearTimeout(f.longPressTimerId),i(Ki),r.current(),a())},[a,i]),s=ie(function(){var f=t.current;l(),f.type==="DRAGGING"&&f.actions.cancel({shouldBlockNextClick:!0}),f.type==="PENDING"&&f.actions.abort()},[l]),c=ie(function(){var p={capture:!0,passive:!1},h={cancel:s,completed:l,getPhase:n},m=Je(window,KI(h),p),b=Je(window,qI(h),p);r.current=function(){m(),b()}},[s,n,l]),u=ie(function(){var p=n();p.type!=="PENDING"&&K();var h=p.actions.fluidLift(p.point);i({type:"DRAGGING",actions:h,hasMoved:!1})},[n,i]),d=ie(function(p,h){n().type!=="IDLE"&&K();var m=setTimeout(u,UI);i({type:"PENDING",point:h,actions:p,longPressTimerId:m}),c()},[c,n,i,u]);Ke(function(){return a(),function(){r.current();var h=n();h.type==="PENDING"&&(clearTimeout(h.longPressTimerId),i(Ki))}},[n,a,i]),Ke(function(){var p=Je(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return p},[])}var JI={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function np(e,t){if(t==null)return!1;var r=!!JI[t.tagName.toLowerCase()];if(r)return!0;var n=t.getAttribute("contenteditable");return n==="true"||n===""?!0:t===e?!1:np(e,t.parentElement)}function QI(e,t){var r=t.target;return di(r)?np(e,r):!1}var XI=(function(e){return $t(e.getBoundingClientRect()).center});function ZI(e){return e instanceof Xf(e).Element}var eR=(function(){var e="matches";if(typeof document>"u")return e;var t=[e,"msMatchesSelector","webkitMatchesSelector"],r=kt(t,function(n){return n in Element.prototype});return r||e})();function ip(e,t){return e==null?null:e[eR](t)?e:ip(e.parentElement,t)}function tR(e,t){return e.closest?e.closest(t):ip(e,t)}function rR(e){return"["+cr.contextId+'="'+e+'"]'}function nR(e,t){var r=t.target;if(!ZI(r))return null;var n=rR(e),i=tR(r,n);return!i||!di(i)?null:i}function iR(e,t){var r=nR(e,t);return r?r.getAttribute(cr.draggableId):null}function oR(e,t){var r="["+No.contextId+'="'+e+'"]',n=xf(document.querySelectorAll(r)),i=kt(n,function(o){return o.getAttribute(No.id)===t});return!i||!di(i)?null:i}function aR(e){e.preventDefault()}function Sn(e){var t=e.expected,r=e.phase,n=e.isLockActive;return e.shouldWarn,!(!n()||t!==r)}function op(e){var t=e.lockAPI,r=e.store,n=e.registry,i=e.draggableId;if(t.isClaimed())return!1;var o=n.draggable.findById(i);return!(!o||!o.options.isEnabled||!Kf(r.getState(),i))}function lR(e){var t=e.lockAPI,r=e.contextId,n=e.store,i=e.registry,o=e.draggableId,a=e.forceSensorStop,l=e.sourceEvent,s=op({lockAPI:t,store:n,registry:i,draggableId:o});if(!s)return null;var c=i.draggable.getById(o),u=oR(r,c.descriptor.id);if(!u||l&&!c.options.canDragInteractiveElements&&QI(u,l))return null;var d=t.claim(a||Ct),f="PRE_DRAG";function p(){return c.options.shouldRespectForcePress}function h(){return t.isActive(d)}function m(C,D){Sn({expected:C,phase:f,isLockActive:h,shouldWarn:!0})&&n.dispatch(D())}var b=m.bind(null,"DRAGGING");function y(C){function D(){t.release(),f="COMPLETED"}f!=="PRE_DRAG"&&(D(),f!=="PRE_DRAG"&&K()),n.dispatch(eC(C.liftActionArgs)),f="DRAGGING";function w(R,I){if(I===void 0&&(I={shouldBlockNextClick:!1}),C.cleanup(),I.shouldBlockNextClick){var P=Je(window,[{eventName:"click",fn:aR,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(P)}D(),n.dispatch($f({reason:R}))}return q({isActive:function(){return Sn({expected:"DRAGGING",phase:f,isLockActive:h,shouldWarn:!1})},shouldRespectForcePress:p,drop:function(I){return w("DROP",I)},cancel:function(I){return w("CANCEL",I)}},C.actions)}function x(C){var D=Gr(function(R){b(function(){return Bf({client:R})})}),w=y({liftActionArgs:{id:o,clientSelection:C,movementMode:"FLUID"},cleanup:function(){return D.cancel()},actions:{move:D}});return q({},w,{move:D})}function _(){var C={moveUp:function(){return b(cC)},moveRight:function(){return b(dC)},moveDown:function(){return b(uC)},moveLeft:function(){return b(fC)}};return y({liftActionArgs:{id:o,clientSelection:XI(u),movementMode:"SNAP"},cleanup:Ct,actions:C})}function T(){var C=Sn({expected:"PRE_DRAG",phase:f,isLockActive:h,shouldWarn:!0});C&&t.release()}var k={isActive:function(){return Sn({expected:"PRE_DRAG",phase:f,isLockActive:h,shouldWarn:!1})},shouldRespectForcePress:p,fluidLift:x,snapLift:_,abort:T};return k}var sR=[BI,HI,YI];function cR(e){var t=e.contextId,r=e.store,n=e.registry,i=e.customSensors,o=e.enableDefaultSensors,a=[].concat(o?sR:[],i||[]),l=v.useState(function(){return _I()})[0],s=ie(function(x,_){x.isDragging&&!_.isDragging&&l.tryAbandon()},[l]);Ke(function(){var x=r.getState(),_=r.subscribe(function(){var T=r.getState();s(x,T),x=T});return _},[l,r,s]),Ke(function(){return l.tryAbandon},[l.tryAbandon]);for(var c=ie(function(y){return op({lockAPI:l,registry:n,store:r,draggableId:y})},[l,n,r]),u=ie(function(y,x,_){return lR({lockAPI:l,registry:n,contextId:t,store:r,draggableId:y,forceSensorStop:x,sourceEvent:_&&_.sourceEvent?_.sourceEvent:null})},[t,l,n,r]),d=ie(function(y){return iR(t,y)},[t]),f=ie(function(y){var x=n.draggable.findById(y);return x?x.options:null},[n.draggable]),p=ie(function(){l.isClaimed()&&(l.tryAbandon(),r.getState().phase!=="IDLE"&&r.dispatch(Ea()))},[l,r]),h=ie(l.isClaimed,[l]),m=ue(function(){return{canGetLock:c,tryGetLock:u,findClosestDraggableId:d,findOptionsForDraggable:f,tryReleaseLock:p,isLockClaimed:h}},[c,u,d,f,p,h]),b=0;b<a.length;b++)a[b](m)}var uR=function(t){return{onBeforeCapture:t.onBeforeCapture,onBeforeDragStart:t.onBeforeDragStart,onDragStart:t.onDragStart,onDragEnd:t.onDragEnd,onDragUpdate:t.onDragUpdate}};function Rr(e){return e.current||K(),e.current}function dR(e){var t=e.contextId,r=e.setCallbacks,n=e.sensors,i=e.nonce,o=e.dragHandleUsageInstructions,a=v.useRef(null),l=Zf(e),s=ie(function(){return uR(l.current)},[l]),c=SI(t),u=RI({contextId:t,text:o}),d=hI(t,i),f=ie(function(R){Rr(a).dispatch(R)},[]),p=ue(function(){return tl({publishWhileDragging:rC,updateDroppableScroll:iC,updateDroppableIsEnabled:oC,updateDroppableIsCombineEnabled:aC,collectionStarting:nC},f)},[f]),h=bI(),m=ue(function(){return VC(h,p)},[h,p]),b=ue(function(){return cI(q({scrollWindow:qC,scrollDroppable:m.scrollDroppable},tl({move:Bf},f)))},[m.scrollDroppable,f]),y=vI(t),x=ue(function(){return GC({announce:c,autoScroller:b,dimensionMarshal:m,focusMarshal:y,getResponders:s,styleMarshal:d})},[c,b,m,y,s,d]);a.current=x;var _=ie(function(){var R=Rr(a),I=R.getState();I.phase!=="IDLE"&&R.dispatch(Ea())},[]),T=ie(function(){var R=Rr(a).getState();return R.isDragging||R.phase==="DROP_ANIMATING"},[]),k=ue(function(){return{isDragging:T,tryAbort:_}},[T,_]);r(k);var C=ie(function(R){return Kf(Rr(a).getState(),R)},[]),D=ie(function(){return Nt(Rr(a).getState())},[]),w=ue(function(){return{marshal:m,focus:y,contextId:t,canLift:C,isMovementAllowed:D,dragHandleUsageInstructionsId:u,registry:h}},[t,m,u,y,C,D,h]);return cR({contextId:t,store:x,registry:h,customSensors:n,enableDefaultSensors:e.enableDefaultSensors!==!1}),v.useEffect(function(){return _},[_]),Q.createElement(fi.Provider,{value:w},Q.createElement(lS,{context:ja,store:x},e.children))}var fR=0;function pR(){return ue(function(){return""+fR++},[])}function hR(e){var t=pR(),r=e.dragHandleUsageInstructions||Nn.dragHandleUsageInstructions;return Q.createElement(HS,null,function(n){return Q.createElement(dR,{nonce:e.nonce,contextId:t,setCallbacks:n,dragHandleUsageInstructions:r,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd},e.children)})}var ap=function(t){return function(r){return t===r}},gR=ap("scroll"),vR=ap("auto"),lc=function(t,r){return r(t.overflowX)||r(t.overflowY)},mR=function(t){var r=window.getComputedStyle(t),n={overflowX:r.overflowX,overflowY:r.overflowY};return lc(n,gR)||lc(n,vR)},bR=function(){return!1},yR=function e(t){return t==null?null:t===document.body?bR()?t:null:t===document.documentElement?null:mR(t)?t:e(t.parentElement)},Ao=(function(e){return{x:e.scrollLeft,y:e.scrollTop}}),xR=function e(t){if(!t)return!1;var r=window.getComputedStyle(t);return r.position==="fixed"?!0:e(t.parentElement)},SR=(function(e){var t=yR(e),r=xR(e);return{closestScrollable:t,isFixedOnPage:r}}),wR=(function(e){var t=e.descriptor,r=e.isEnabled,n=e.isCombineEnabled,i=e.isFixedOnPage,o=e.direction,a=e.client,l=e.page,s=e.closest,c=(function(){if(!s)return null;var p=s.scrollSize,h=s.client,m=Uf({scrollHeight:p.scrollHeight,scrollWidth:p.scrollWidth,height:h.paddingBox.height,width:h.paddingBox.width});return{pageMarginBox:s.page.marginBox,frameClient:h,scrollSize:p,shouldClipSubject:s.shouldClipSubject,scroll:{initial:s.scroll,current:s.scroll,max:m,diff:{value:Te,displacement:Te}}}})(),u=o==="vertical"?Ra:Rf,d=lr({page:l,withPlaceholder:null,axis:u,frame:c}),f={descriptor:t,isCombineEnabled:n,isFixedOnPage:i,axis:u,isEnabled:r,client:a,page:l,frame:c,subject:d};return f}),CR=function(t,r){var n=Bc(t);if(!r||t!==r)return n;var i=n.paddingBox.top-r.scrollTop,o=n.paddingBox.left-r.scrollLeft,a=i+r.scrollHeight,l=o+r.scrollWidth,s={top:i,right:l,bottom:a,left:o},c=$c(s,n.border),u=Zh({borderBox:c,margin:n.margin,border:n.border,padding:n.padding});return u},IR=(function(e){var t=e.ref,r=e.descriptor,n=e.env,i=e.windowScroll,o=e.direction,a=e.isDropDisabled,l=e.isCombineEnabled,s=e.shouldClipSubject,c=n.closestScrollable,u=CR(t,c),d=Ln(u,i),f=(function(){if(!c)return null;var h=Bc(c),m={scrollHeight:c.scrollHeight,scrollWidth:c.scrollWidth};return{client:h,page:Ln(h,i),scroll:Ao(c),scrollSize:m,shouldClipSubject:s}})(),p=wR({descriptor:r,isEnabled:!a,isCombineEnabled:l,isFixedOnPage:n.isFixedOnPage,direction:o,client:u,page:d,closest:f});return p}),RR={passive:!1},_R={passive:!0},sc=(function(e){return e.shouldPublishImmediately?RR:_R});function Kn(e){var t=v.useContext(e);return t||K(),t}var wn=function(t){return t&&t.env.closestScrollable||null};function DR(e){var t=v.useRef(null),r=Kn(fi),n=Fa("droppable"),i=r.registry,o=r.marshal,a=Zf(e),l=ue(function(){return{id:e.droppableId,type:e.type,mode:e.mode}},[e.droppableId,e.mode,e.type]),s=v.useRef(l),c=ue(function(){return De(function(T,k){t.current||K();var C={x:T,y:k};o.updateDroppableScroll(l.id,C)})},[l.id,o]),u=ie(function(){var T=t.current;return!T||!T.env.closestScrollable?Te:Ao(T.env.closestScrollable)},[]),d=ie(function(){var T=u();c(T.x,T.y)},[u,c]),f=ue(function(){return Gr(d)},[d]),p=ie(function(){var T=t.current,k=wn(T);T&&k||K();var C=T.scrollOptions;if(C.shouldPublishImmediately){d();return}f()},[f,d]),h=ie(function(T,k){t.current&&K();var C=a.current,D=C.getDroppableRef();D||K();var w=SR(D),R={ref:D,descriptor:l,env:w,scrollOptions:k};t.current=R;var I=IR({ref:D,descriptor:l,env:w,windowScroll:T,direction:C.direction,isDropDisabled:C.isDropDisabled,isCombineEnabled:C.isCombineEnabled,shouldClipSubject:!C.ignoreContainerClipping}),P=w.closestScrollable;return P&&(P.setAttribute(nc.contextId,r.contextId),P.addEventListener("scroll",p,sc(R.scrollOptions))),I},[r.contextId,l,p,a]),m=ie(function(){var T=t.current,k=wn(T);return T&&k||K(),Ao(k)},[]),b=ie(function(){var T=t.current;T||K();var k=wn(T);t.current=null,k&&(f.cancel(),k.removeAttribute(nc.contextId),k.removeEventListener("scroll",p,sc(T.scrollOptions)))},[p,f]),y=ie(function(T){var k=t.current;k||K();var C=wn(k);C||K(),C.scrollTop+=T.y,C.scrollLeft+=T.x},[]),x=ue(function(){return{getDimensionAndWatchScroll:h,getScrollWhileDragging:m,dragStopped:b,scroll:y}},[b,h,m,y]),_=ue(function(){return{uniqueId:n,descriptor:l,callbacks:x}},[x,l,n]);Ke(function(){return s.current=_.descriptor,i.droppable.register(_),function(){t.current&&b(),i.droppable.unregister(_)}},[x,l,b,_,o,i.droppable]),Ke(function(){t.current&&o.updateDroppableIsEnabled(s.current.id,!e.isDropDisabled)},[e.isDropDisabled,o]),Ke(function(){t.current&&o.updateDroppableIsCombineEnabled(s.current.id,e.isCombineEnabled)},[e.isCombineEnabled,o])}function Yi(){}var cc={width:0,height:0,margin:JS},TR=function(t){var r=t.isAnimatingOpenOnMount,n=t.placeholder,i=t.animate;return r||i==="close"?cc:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin}},kR=function(t){var r=t.isAnimatingOpenOnMount,n=t.placeholder,i=t.animate,o=TR({isAnimatingOpenOnMount:r,placeholder:n,animate:i});return{display:n.display,boxSizing:"border-box",width:o.width,height:o.height,marginTop:o.margin.top,marginRight:o.margin.right,marginBottom:o.margin.bottom,marginLeft:o.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:i!=="none"?$r.placeholder:null}};function ER(e){var t=v.useRef(null),r=ie(function(){t.current&&(clearTimeout(t.current),t.current=null)},[]),n=e.animate,i=e.onTransitionEnd,o=e.onClose,a=e.contextId,l=v.useState(e.animate==="open"),s=l[0],c=l[1];v.useEffect(function(){return s?n!=="open"?(r(),c(!1),Yi):t.current?Yi:(t.current=setTimeout(function(){t.current=null,c(!1)}),r):Yi},[n,s,r]);var u=ie(function(f){f.propertyName==="height"&&(i(),n==="close"&&o())},[n,o,i]),d=kR({isAnimatingOpenOnMount:s,animate:e.animate,placeholder:e.placeholder});return Q.createElement(e.placeholder.tagName,{style:d,"data-rbd-placeholder-context-id":a,onTransitionEnd:u,ref:e.innerRef})}var PR=Q.memo(ER),$a=Q.createContext(null),OR=(function(e){Xn(t,e);function t(){for(var n,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=e.call.apply(e,[this].concat(o))||this,n.state={isVisible:!!n.props.on,data:n.props.on,animate:n.props.shouldAnimate&&n.props.on?"open":"none"},n.onClose=function(){n.state.animate==="close"&&n.setState({isVisible:!1})},n}t.getDerivedStateFromProps=function(i,o){return i.shouldAnimate?i.on?{isVisible:!0,data:i.on,animate:"open"}:o.isVisible?{isVisible:!0,data:o.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!i.on,data:i.on,animate:"none"}};var r=t.prototype;return r.render=function(){if(!this.state.isVisible)return null;var i={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(i)},t})(Q.PureComponent),uc={dragging:5e3,dropAnimating:4500},NR=function(t,r){return r?$r.drop(r.duration):t?$r.snap:$r.fluid},AR=function(t,r){return t?r?Qr.opacity.drop:Qr.opacity.combining:null},MR=function(t){return t.forceShouldAnimate!=null?t.forceShouldAnimate:t.mode==="SNAP"};function LR(e){var t=e.dimension,r=t.client,n=e.offset,i=e.combineWith,o=e.dropping,a=!!i,l=MR(e),s=!!o,c=s?Po.drop(n,a):Po.moveTo(n),u={position:"fixed",top:r.marginBox.top,left:r.marginBox.left,boxSizing:"border-box",width:r.borderBox.width,height:r.borderBox.height,transition:NR(l,o),transform:c,opacity:AR(a,s),zIndex:s?uc.dropAnimating:uc.dragging,pointerEvents:"none"};return u}function zR(e){return{transform:Po.moveTo(e.offset),transition:e.shouldAnimateDisplacement?null:"none"}}function jR(e){return e.type==="DRAGGING"?LR(e):zR(e)}function FR(e,t,r){r===void 0&&(r=Te);var n=window.getComputedStyle(t),i=t.getBoundingClientRect(),o=eg(i,n),a=Ln(o,r),l={client:o,tagName:t.tagName.toLowerCase(),display:n.display},s={x:o.marginBox.width,y:o.marginBox.height},c={descriptor:e,placeholder:l,displaceBy:s,client:o,page:a};return c}function BR(e){var t=Fa("draggable"),r=e.descriptor,n=e.registry,i=e.getDraggableRef,o=e.canDragInteractiveElements,a=e.shouldRespectForcePress,l=e.isEnabled,s=ue(function(){return{canDragInteractiveElements:o,shouldRespectForcePress:a,isEnabled:l}},[o,l,a]),c=ie(function(p){var h=i();return h||K(),FR(r,h,p)},[r,i]),u=ue(function(){return{uniqueId:t,descriptor:r,options:s,getDimension:c}},[r,c,s,t]),d=v.useRef(u),f=v.useRef(!0);Ke(function(){return n.draggable.register(d.current),function(){return n.draggable.unregister(d.current)}},[n.draggable]),Ke(function(){if(f.current){f.current=!1;return}var p=d.current;d.current=u,n.draggable.update(u,p)},[u,n.draggable])}function $R(e){e.preventDefault()}function GR(e){var t=v.useRef(null),r=ie(function(R){t.current=R},[]),n=ie(function(){return t.current},[]),i=Kn(fi),o=i.contextId,a=i.dragHandleUsageInstructionsId,l=i.registry,s=Kn($a),c=s.type,u=s.droppableId,d=ue(function(){return{id:e.draggableId,index:e.index,type:c,droppableId:u}},[e.draggableId,e.index,c,u]),f=e.children,p=e.draggableId,h=e.isEnabled,m=e.shouldRespectForcePress,b=e.canDragInteractiveElements,y=e.isClone,x=e.mapped,_=e.dropAnimationFinished;if(!y){var T=ue(function(){return{descriptor:d,registry:l,getDraggableRef:n,canDragInteractiveElements:b,shouldRespectForcePress:m,isEnabled:h}},[d,l,n,b,m,h]);BR(T)}var k=ue(function(){return h?{tabIndex:0,role:"button","aria-describedby":a,"data-rbd-drag-handle-draggable-id":p,"data-rbd-drag-handle-context-id":o,draggable:!1,onDragStart:$R}:null},[o,a,p,h]),C=ie(function(R){x.type==="DRAGGING"&&x.dropping&&R.propertyName==="transform"&&_()},[_,x]),D=ue(function(){var R=jR(x),I=x.type==="DRAGGING"&&x.dropping?C:null,P={innerRef:r,draggableProps:{"data-rbd-draggable-context-id":o,"data-rbd-draggable-id":p,style:R,onTransitionEnd:I},dragHandleProps:k};return P},[o,k,p,x,C,r]),w=ue(function(){return{draggableId:d.id,type:d.type,source:{index:d.index,droppableId:d.droppableId}}},[d.droppableId,d.id,d.index,d.type]);return f(D,x.snapshot,w)}var lp=(function(e,t){return e===t}),sp=(function(e){var t=e.combine,r=e.destination;return r?r.droppableId:t?t.droppableId:null}),WR=function(t){return t.combine?t.combine.draggableId:null},HR=function(t){return t.at&&t.at.type==="COMBINE"?t.at.combine.draggableId:null};function UR(){var e=De(function(i,o){return{x:i,y:o}}),t=De(function(i,o,a,l,s){return{isDragging:!0,isClone:o,isDropAnimating:!!s,dropAnimation:s,mode:i,draggingOver:a,combineWith:l,combineTargetFor:null}}),r=De(function(i,o,a,l,s,c,u){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:s,combineWith:c,mode:o,offset:i,dimension:a,forceShouldAnimate:u,snapshot:t(o,l,s,c,null)}}}),n=function(o,a){if(o.isDragging){if(o.critical.draggable.id!==a.draggableId)return null;var l=o.current.client.offset,s=o.dimensions.draggables[a.draggableId],c=qe(o.impact),u=HR(o.impact),d=o.forceShouldAnimate;return r(e(l.x,l.y),o.movementMode,s,a.isClone,c,u,d)}if(o.phase==="DROP_ANIMATING"){var f=o.completed;if(f.result.draggableId!==a.draggableId)return null;var p=a.isClone,h=o.dimensions.draggables[a.draggableId],m=f.result,b=m.mode,y=sp(m),x=WR(m),_=o.dropDuration,T={duration:_,curve:Oa.drop,moveTo:o.newHomeClientOffset,opacity:x?Qr.opacity.drop:null,scale:x?Qr.scale.drop:null};return{mapped:{type:"DRAGGING",offset:o.newHomeClientOffset,dimension:h,dropping:T,draggingOver:y,combineWith:x,mode:b,forceShouldAnimate:null,snapshot:t(b,p,y,x,T)}}}return null};return n}function cp(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var VR={mapped:{type:"SECONDARY",offset:Te,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:cp(null)}};function qR(){var e=De(function(a,l){return{x:a,y:l}}),t=De(cp),r=De(function(a,l,s){return l===void 0&&(l=null),{mapped:{type:"SECONDARY",offset:a,combineTargetFor:l,shouldAnimateDisplacement:s,snapshot:t(l)}}}),n=function(l){return l?r(Te,l,!0):null},i=function(l,s,c,u){var d=c.displaced.visible[l],f=!!(u.inVirtualList&&u.effected[l]),p=si(c),h=p&&p.draggableId===l?s:null;if(!d){if(!f)return n(h);if(c.displaced.invisible[l])return null;var m=hr(u.displacedBy.point),b=e(m.x,m.y);return r(b,h,!0)}if(f)return n(h);var y=c.displacedBy.point,x=e(y.x,y.y);return r(x,h,d.shouldAnimate)},o=function(l,s){if(l.isDragging)return l.critical.draggable.id===s.draggableId?null:i(s.draggableId,l.critical.draggable.id,l.impact,l.afterCritical);if(l.phase==="DROP_ANIMATING"){var c=l.completed;return c.result.draggableId===s.draggableId?null:i(s.draggableId,c.result.draggableId,c.impact,c.afterCritical)}return null};return o}var KR=function(){var t=UR(),r=qR(),n=function(o,a){return t(o,a)||r(o,a)||VR};return n},YR={dropAnimationFinished:Gf},JR=gf(KR,YR,null,{context:ja,pure:!0,areStatePropsEqual:lp})(GR);function up(e){var t=Kn($a),r=t.isUsingCloneFor;return r===e.draggableId&&!e.isClone?null:Q.createElement(JR,e)}function QR(e){var t=typeof e.isDragDisabled=="boolean"?!e.isDragDisabled:!0,r=!!e.disableInteractiveElementBlocking,n=!!e.shouldRespectForcePress;return Q.createElement(up,q({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:r,shouldRespectForcePress:n}))}function XR(e){var t=v.useContext(fi);t||K();var r=t.contextId,n=t.isMovementAllowed,i=v.useRef(null),o=v.useRef(null),a=e.children,l=e.droppableId,s=e.type,c=e.mode,u=e.direction,d=e.ignoreContainerClipping,f=e.isDropDisabled,p=e.isCombineEnabled,h=e.snapshot,m=e.useClone,b=e.updateViewportMaxScroll,y=e.getContainerForClone,x=ie(function(){return i.current},[]),_=ie(function(P){i.current=P},[]);ie(function(){return o.current},[]);var T=ie(function(P){o.current=P},[]),k=ie(function(){n()&&b({maxScroll:qf()})},[n,b]);DR({droppableId:l,type:s,mode:c,direction:u,isDropDisabled:f,isCombineEnabled:p,ignoreContainerClipping:d,getDroppableRef:x});var C=Q.createElement(OR,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},function(P){var L=P.onClose,N=P.data,G=P.animate;return Q.createElement(PR,{placeholder:N,onClose:L,innerRef:T,animate:G,contextId:r,onTransitionEnd:k})}),D=ue(function(){return{innerRef:_,placeholder:C,droppableProps:{"data-rbd-droppable-id":l,"data-rbd-droppable-context-id":r}}},[r,l,C,_]),w=m?m.dragging.draggableId:null,R=ue(function(){return{droppableId:l,type:s,isUsingCloneFor:w}},[l,w,s]);function I(){if(!m)return null;var P=m.dragging,L=m.render,N=Q.createElement(up,{draggableId:P.draggableId,index:P.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(G,z){return L(G,z,P)});return Fh.createPortal(N,y())}return Q.createElement($a.Provider,{value:R},a(D,h),I())}var Ji=function(t,r){return t===r.droppable.type},dc=function(t,r){return r.draggables[t.draggable.id]},ZR=function(){var t={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},r=q({},t,{shouldAnimatePlaceholder:!1}),n=De(function(a){return{draggableId:a.id,type:a.type,source:{index:a.index,droppableId:a.droppableId}}}),i=De(function(a,l,s,c,u,d){var f=u.descriptor.id,p=u.descriptor.droppableId===a;if(p){var h=d?{render:d,dragging:n(u.descriptor)}:null,m={isDraggingOver:s,draggingOverWith:s?f:null,draggingFromThisWith:f,isUsingPlaceholder:!0};return{placeholder:u.placeholder,shouldAnimatePlaceholder:!1,snapshot:m,useClone:h}}if(!l)return r;if(!c)return t;var b={isDraggingOver:s,draggingOverWith:f,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:u.placeholder,shouldAnimatePlaceholder:!0,snapshot:b,useClone:null}}),o=function(l,s){var c=s.droppableId,u=s.type,d=!s.isDropDisabled,f=s.renderClone;if(l.isDragging){var p=l.critical;if(!Ji(u,p))return r;var h=dc(p,l.dimensions),m=qe(l.impact)===c;return i(c,d,m,m,h,f)}if(l.phase==="DROP_ANIMATING"){var b=l.completed;if(!Ji(u,b.critical))return r;var y=dc(b.critical,l.dimensions);return i(c,d,sp(b.result)===c,qe(b.impact)===c,y,f)}if(l.phase==="IDLE"&&l.completed&&!l.shouldFlush){var x=l.completed;if(!Ji(u,x.critical))return r;var _=qe(x.impact)===c,T=!!(x.impact.at&&x.impact.at.type==="COMBINE"),k=x.critical.droppable.id===c;return _?T?t:r:k?t:r}return r};return o},e2={updateViewportMaxScroll:sC};function t2(){return document.body||K(),document.body}var r2={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:t2},dp=gf(ZR,e2,null,{context:ja,pure:!0,areStatePropsEqual:lp})(XR);dp.defaultProps=r2;const n2=e=>{const t=e.replace("#","");if(!/^([A-Fa-f0-9]{3}){1,2}$/.test(t))return{r:0,g:0,b:0};const r=t.length===3?t.split("").map(n=>n+n).join(""):t;return{r:parseInt(r.substr(0,2),16),g:parseInt(r.substr(2,2),16),b:parseInt(r.substr(4,2),16)}};function i2({src:e,color:t,size:r=24,...n}){const[i,o]=v.useState("");return v.useEffect(()=>{const a=new Image;return a.crossOrigin="anonymous",a.onload=()=>{const l=document.createElement("canvas");l.width=a.width,l.height=a.height;const s=l.getContext("2d");s.drawImage(a,0,0);const c=s.getImageData(0,0,l.width,l.height),{data:u}=c,d=n2(t);for(let f=0;f<u.length;f+=4)if(u[f+3]>0){const p=u[f+3]/255;u[f]=d.r*p,u[f+1]=d.g*p,u[f+2]=d.b*p}s.putImageData(c,0,0),o(l.toDataURL("image/png"))},a.src=e,()=>{a.onload=null}},[e,t]),g.jsx(te,{component:"img",src:i||e,sx:{width:r,height:r,display:"block",opacity:i?1:.5,transition:"opacity 0.2s"},...n})}const Mo=375,fp=667,Ga=56,o2=tt(Ar)(({theme:e})=>({width:Mo,height:fp,display:"flex",flexDirection:"column",overflow:"hidden",border:`1px solid ${e.palette.divider}`,borderRadius:32,position:"relative"})),fc=tt(te)(({theme:e})=>({height:Ga,borderTop:`1px solid ${e.palette.divider}`,display:"flex",backgroundColor:e.palette.background.paper})),pc=tt(te)(({theme:e,active:t})=>({flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",cursor:"pointer",position:"relative",color:t?e.palette.primary.main:e.palette.text.secondary,"&:hover":{backgroundColor:e.palette.action.hover}})),a2=tt(te)(({theme:e,left:t})=>({position:"absolute",bottom:-Ga,left:t,transform:"translateX(-50%)",display:"flex",alignItems:"center",backgroundColor:e.palette.background.paper,borderRadius:e.shape.borderRadius,padding:`${e.spacing(.5)} ${e.spacing(1)}`,boxShadow:e.shadows[2],zIndex:1})),Cn=tt(Ge)(({theme:e})=>({padding:e.spacing(.5),"&:not(:last-child)":{marginRight:e.spacing(.5)}})),l2=tt(te)({flexGrow:1,height:"100%",position:"relative",overflow:"hidden"}),s2=tt(te)(({theme:e})=>({width:400,paddingLeft:e.spacing(3),backgroundColor:e.palette.background.default,height:fp,overflowY:"auto"}));function c2(){const{t:e,locale:t}=ke(),{blocklet:r}=Bt(),n=et(),i=Xr(n.breakpoints.down("md")),{state:o,getNavigation:a,updateNavigationItem:l,addNavigationItem:s,delNavigationItem:c,updateNavigationTree:u}=Yc(),{inService:d}=Sc(),f=v.useRef(null),p=v.useRef(null),h=v.useRef(null),m=r.environments.find(U=>U.key===Ue.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_URL),b=r?.settings?.theme?.light?.palette?.primary?.main,[y,x]=v.useState(0),[_,T]=v.useState(!1),k=v.useRef(0),C=v.useRef(null),D=a("bottomNavigation"),w=D.length>0,R=D.length<5,[I,P]=v.useState(D.length>0?D[0]:null),L=D.findIndex(U=>U.id===I?.id),N=oe((U,re)=>{const ne=U?.[re];return zc(ne)?ne[t]||ne.en:ne}),G=oe(U=>{U.id!==I?.id&&P(U)}),z=oe(U=>{C.current=U,h.current?.add({},(re,ne)=>{const ce=s(ne,C.current);P(ce),re()})}),F=oe(()=>{T(!0)}),W=oe(()=>{h.current?.edit(I,(U,re)=>{l(re),U()})}),{run:H}=wc(()=>{p.current?.submit()},{wait:300}),J=oe(H),Z=oe(U=>{if(U?.startsWith("/"))try{const re=d?window.location.origin:m?.value;return new URL(U,re).href}catch{console.error("Failed to resolve url: ",U)}return U},[m?.value,d]),Y=oe(U=>{if(!U.destination)return;const re=Array.from(D),[ne]=re.splice(U.source.index,1);re.splice(U.destination.index,0,ne),u(re)}),X=oe(()=>{const U=D.find(ne=>ne.id===I?.id);if(!U)return"";let re=N(U,"link")||"/";if(re.startsWith("/"))try{re=Z(Oe(U.__base||"/",re))}catch(ne){return console.error("Failed to get active tab link",ne),""}return re});return v.useEffect(()=>{I&&!i&&(p.current?.resetImmediate(),p.current?.edit(I,U=>{l(U)}))},[I,l,i]),v.useEffect(()=>{const U=D.findIndex(O=>O.id===I?.id);if(U===-1||!f.current)return x(k.current);const ne=Mo/D.length*(U+.5),ce=f.current.getBoundingClientRect().width,B=ce/2+16,$=Mo-(ce/2+16),E=Math.min(Math.max(ne,B),$);return k.current=E,x(E)},[I,D,k]),v.useEffect(()=>{D.length>0&&!I&&P(D[0])},[D,I]),g.jsx(te,{sx:{display:"flex",justifyContent:"center"},children:g.jsxs(te,{sx:{position:"relative",display:"inline-flex",alignItems:"flex-start",margin:"4px auto 0"},children:[g.jsxs(o2,{elevation:2,children:[g.jsx(l2,{children:w&&g.jsx(gg,{url:X(),width:"100%",height:"100%",id:"tabbar-preview",className:"tabbar-preview-iframe",display:"block",position:"relative",styles:{border:"none",background:"#fff"}})}),g.jsxs(te,{sx:{height:Ga,overflowY:"auto",flexShrink:0},children:[w&&g.jsx(hR,{onDragEnd:Y,children:g.jsx(dp,{droppableId:"tabbar",direction:"horizontal",children:U=>g.jsxs(fc,{ref:U.innerRef,...U.droppableProps,children:[D.map((re,ne)=>g.jsx(QR,{draggableId:re.id,index:ne,children:(ce,B)=>g.jsxs(pc,{className:"tab-item",ref:ce.innerRef,...ce.draggableProps,...ce.dragHandleProps,active:re.id===I?.id,onClick:$=>G(re,$),sx:{color:re.id===I?.id?b:"text.secondary",opacity:B.isDragging?.5:1},children:[g.jsx(i2,{src:Z(re.icon),color:re.id===I?.id?b:n.palette.text.secondary,size:24}),g.jsx(ye,{variant:"caption",children:N(re,"title")})]})},re.id)),U.placeholder]})})}),!w&&g.jsx(fc,{children:g.jsx(pc,{className:"tab-item",onClick:()=>z(0),children:g.jsx(it,{icon:"mdi:plus-circle-outline",size:28})})})]})]}),!i&&w&&g.jsx(s2,{children:I&&g.jsx(va,{ref:p,sx:{p:0},section:"bottomNavigation",components:o.components,rawNavigations:o.rawNavigation,onChange:J})}),g.jsx(_c,{in:I!==null,children:g.jsxs(a2,{ref:f,left:y,children:[g.jsx(Cn,{size:"small",disabled:!R,onClick:()=>z(L),children:g.jsx(it,{icon:"mdi:plus-circle-outline",size:28})}),i&&g.jsx(Cn,{size:"small",onClick:()=>W(),children:g.jsx(it,{icon:"mdi:edit-box-outline",size:28})}),g.jsx(Cn,{size:"small",onClick:()=>F(),children:g.jsx(it,{icon:"mdi:delete-outline",size:28})}),g.jsx(Cn,{size:"small",disabled:!R,onClick:()=>z(L+1),children:g.jsx(it,{icon:"mdi:plus-circle-outline",size:28})})]})}),g.jsx(ma,{ref:h,section:"bottomNavigation",components:o.components,rawNavigations:o.rawNavigation}),g.jsx(jc,{confirmButton:{text:e("common.confirm"),props:{variant:"contained",color:"error"}},cancelButton:{text:e("common.cancel"),props:{color:"primary"}},open:_,title:e("navigation.action.delTabBarTitle"),onConfirm:()=>{T(!1),c(I.id),D.length>1?L>0?P(D[L-1]):P(D[L+1]):P(null)},onCancel:()=>{T(!1)},children:g.jsx("p",{children:e("navigation.action.delTabBarDesc")})})]})})}const u2={login:at,logout:at,switch:at,switchDid:at,switchProfile:at,switchPassport:at,useDid:()=>({walletDid:"abcdefghijklmnopqrstuvwxyz"}),useOAuth:()=>({logoutOAuth:at,bindOAuth:at,configs:{},switchOAuthPassport:at})},_r={header:"Header",footer:"Footer",bottom:"Footer Link",social:"Footer Social",dashboard:"Dashboard",sessionManager:"Session Blocklet",userCenter:"User Center",bottomNavigation:"Tab Bar"};function d2(){const{t:e}=ke(),{blocklet:t}=Bt(),r=v.useRef(null),{roles:n}=Wc(),i=Xr(I=>I.breakpoints.down("md")),o=ur({saveLoading:!1,resetLoading:!1,showResetConfirm:!1,mockRole:"owner"}),{state:a,navigation:l,getNavigation:s,saveNavigationList:c,resetNavigation:u,updateActiveSection:d,updateNavigationTree:f,updateNavigationItem:p,delNavigationItem:h,addNavigationItem:m}=Yc(),b=a.activeSection==="bottomNavigation",y=v.useCallback(I=>{r.current.add({parent:I},(P,L)=>{m(L),P()})},[m]),x=v.useCallback((I,P={})=>{switch(I){case"edit":r.current.edit(P,(L,N)=>{p(N),L()});break;case"toggle":p({id:P.id,visible:!P.visible});break;case"del":h(P.id);break}},[h,p]),_=v.useCallback(async()=>{try{o.saveLoading=!0,await c(a.rawNavigation),Tr.success(e("common.succeeded"))}catch(I){Tr.error(g.jsxs(te,{children:[g.jsx(ye,{variant:"subtitle2",children:e("navigation.actionFailed")}),g.jsx(ye,{variant:"body1",children:Ja(I)||I.error})]}))}finally{o.saveLoading=!1}},[a.rawNavigation,o,c,e]),T=v.useCallback(async()=>{try{o.resetLoading=!0,await u(a.activeSection),Tr.success(e("navigation.action.resetSuccessful"),{variant:"success"})}catch(I){Tr.error(g.jsxs(te,{children:[g.jsx(ye,{variant:"subtitle2",children:e("navigation.actionFailed")}),g.jsx(ye,{variant:"body1",children:Ja(I)||I.error})]}))}finally{o.resetLoading=!1}},[o,u,a.activeSection,e]),k=v.useMemo(()=>({session:{...u2,user:{did:t.appDid,fullName:"Preview User",role:o.mockRole,isPreviewUser:!0}}}),[t.appDid,o.mockRole]),C=s(a.activeSection),D=_e(()=>a.activeSection!=="bottomNavigation"?!1:C.length>=5,[a.activeSection,C.length]),w=g.jsxs(g.Fragment,{children:[g.jsx(Ar,{variant:"outlined",sx:{display:"flex",height:660,overflow:"hidden",bgcolor:"background.default"},children:g.jsx(Ar,{elevation:0,sx:{flex:1,overflow:"auto",bgcolor:"background.default"},children:g.jsx(Ld,{treeData:C,setTreeData:f,renderActions:({data:I,className:P})=>g.jsx($d,{data:I,className:P,section:a.activeSection,add:(...L)=>y(...L),del:(...L)=>x("del",...L),edit:(...L)=>x("edit",...L),toggle:(...L)=>x("toggle",...L)})})})}),g.jsxs(Qa,{variant:"dense",sx:{paddingLeft:"0px !important",paddingRight:"0px !important",mt:3},children:[g.jsx(ye,{variant:"h6",component:"div",sx:{flexGrow:1},children:e("common.preview")}),g.jsxs(Ic,{sx:{m:1,minWidth:120},size:"small",children:[g.jsx(Bh,{children:e("common.role")}),g.jsx(Xa,{value:o.mockRole,label:"Role",onChange:I=>{o.mockRole=I.target.value},children:n.map(I=>g.jsx(Za,{value:I.name,children:I.title},I.name))})]})]}),g.jsx(Ar,{variant:"outlined",children:g.jsx(Zn.Provider,{value:k,children:g.jsx(rS,{navigation:l})})})]}),R=g.jsx(c2,{});return g.jsxs(g.Fragment,{children:[i&&g.jsx(Xa,{fullWidth:!0,size:"small",value:a.activeSection,onChange:I=>d(I.target.value),children:Object.keys(_r).map(I=>g.jsxs(Za,{value:I,children:[_r[I],` (${s(I).length})`]}))}),!i&&g.jsx(vi,{variant:"outlined",children:Object.keys(_r).map(I=>g.jsxs(ir,{variant:a.activeSection===I?"contained":void 0,onClick:()=>d(I),children:[_r[I],` (${s(I).length})`]},I))}),g.jsxs(Qa,{variant:"dense",sx:{paddingLeft:"0px !important",paddingRight:"0px !important",mt:2},children:[g.jsx(ye,{variant:"h6",component:"div",sx:{flexGrow:1},children:e("common.config")}),g.jsx(vi,{variant:"outlined",children:g.jsx(nl,{size:"small",variant:"outlined",color:"error",startIcon:g.jsx(xe,{icon:"system-uicons:reset"}),sx:{mr:2},loading:o.resetLoading,loadingPosition:"start",onClick:()=>{o.showResetConfirm=!0},children:e("navigation.action.reset")})}),g.jsxs(vi,{variant:"outlined",children:[a.activeSection!=="bottomNavigation"&&g.jsx(ir,{size:"small",variant:"outlined",disabled:D,startIcon:g.jsx(xe,{icon:"mdi:plus"}),onClick:()=>y(),children:e("navigation.action.new")}),g.jsx(nl,{size:"small",variant:"contained",startIcon:g.jsx(xe,{icon:"mdi:content-save"}),loading:o.saveLoading,loadingPosition:"start",onClick:_,children:e("common.save")})]})]}),b?R:w,g.jsx(ma,{ref:r,section:a.activeSection,components:a.components,rawNavigations:a.rawNavigation}),g.jsx(jc,{confirmButton:{text:e("common.confirm"),props:{variant:"contained",color:"error"}},cancelButton:{text:e("common.cancel"),props:{color:"primary"}},open:o.showResetConfirm,title:e("navigation.action.restConfirmTitle",{section:_r[a.activeSection]}),onConfirm:async()=>{await T(),o.showResetConfirm=!1},onCancel:()=>{o.showResetConfirm=!1},children:g.jsx("p",{children:e("navigation.action.restConfirmDesc")})})]})}function a_(){return g.jsx(rv,{children:g.jsx(d2,{})})}export{a_ as default};
472
+ `}},a=[n,r,i,o];return{always:Ir(a,"always"),resting:Ir(a,"resting"),dragging:Ir(a,"dragging"),dropAnimating:Ir(a,"dropAnimating"),userCancel:Ir(a,"userCancel")}}),Ke=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?v.useLayoutEffect:v.useEffect,qi=function(){var t=document.querySelector("head");return t||K(),t},ic=function(t){var r=document.createElement("style");return t&&r.setAttribute("nonce",t),r.type="text/css",r};function hI(e,t){var r=ue(function(){return pI(e)},[e]),n=v.useRef(null),i=v.useRef(null),o=ie(De(function(d){var f=i.current;f||K(),f.textContent=d}),[]),a=ie(function(d){var f=n.current;f||K(),f.textContent=d},[]);Ke(function(){!n.current&&!i.current||K();var d=ic(t),f=ic(t);return n.current=d,i.current=f,d.setAttribute(sr+"-always",e),f.setAttribute(sr+"-dynamic",e),qi().appendChild(d),qi().appendChild(f),a(r.always),o(r.resting),function(){var p=function(m){var b=m.current;b||K(),qi().removeChild(b),m.current=null};p(n),p(i)}},[t,a,o,r.always,r.resting,e]);var l=ie(function(){return o(r.dragging)},[o,r.dragging]),s=ie(function(d){if(d==="DROP"){o(r.dropAnimating);return}o(r.userCancel)},[o,r.dropAnimating,r.userCancel]),c=ie(function(){i.current&&o(r.resting)},[o,r.resting]),u=ue(function(){return{dragging:l,dropping:s,resting:c}},[l,s,c]);return u}var Xf=(function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window});function di(e){return e instanceof Xf(e).HTMLElement}function gI(e,t){var r="["+cr.contextId+'="'+e+'"]',n=xf(document.querySelectorAll(r));if(!n.length)return null;var i=kt(n,function(o){return o.getAttribute(cr.draggableId)===t});return!i||!di(i)?null:i}function vI(e){var t=v.useRef({}),r=v.useRef(null),n=v.useRef(null),i=v.useRef(!1),o=ie(function(f,p){var h={id:f,focus:p};return t.current[f]=h,function(){var b=t.current,y=b[f];y!==h&&delete b[f]}},[]),a=ie(function(f){var p=gI(e,f);p&&p!==document.activeElement&&p.focus()},[e]),l=ie(function(f,p){r.current===f&&(r.current=p)},[]),s=ie(function(){n.current||i.current&&(n.current=requestAnimationFrame(function(){n.current=null;var f=r.current;f&&a(f)}))},[a]),c=ie(function(f){r.current=null;var p=document.activeElement;p&&p.getAttribute(cr.draggableId)===f&&(r.current=f)},[]);Ke(function(){return i.current=!0,function(){i.current=!1;var f=n.current;f&&cancelAnimationFrame(f)}},[]);var u=ue(function(){return{register:o,tryRecordFocus:c,tryRestoreFocusRecorded:s,tryShiftRecord:l}},[o,c,s,l]);return u}function mI(){var e={draggables:{},droppables:{}},t=[];function r(d){return t.push(d),function(){var p=t.indexOf(d);p!==-1&&t.splice(p,1)}}function n(d){t.length&&t.forEach(function(f){return f(d)})}function i(d){return e.draggables[d]||null}function o(d){var f=i(d);return f||K(),f}var a={register:function(f){e.draggables[f.descriptor.id]=f,n({type:"ADDITION",value:f})},update:function(f,p){var h=e.draggables[p.descriptor.id];h&&h.uniqueId===f.uniqueId&&(delete e.draggables[p.descriptor.id],e.draggables[f.descriptor.id]=f)},unregister:function(f){var p=f.descriptor.id,h=i(p);h&&f.uniqueId===h.uniqueId&&(delete e.draggables[p],n({type:"REMOVAL",value:f}))},getById:o,findById:i,exists:function(f){return!!i(f)},getAllByType:function(f){return Un(e.draggables).filter(function(p){return p.descriptor.type===f})}};function l(d){return e.droppables[d]||null}function s(d){var f=l(d);return f||K(),f}var c={register:function(f){e.droppables[f.descriptor.id]=f},unregister:function(f){var p=l(f.descriptor.id);p&&f.uniqueId===p.uniqueId&&delete e.droppables[f.descriptor.id]},getById:s,findById:l,exists:function(f){return!!l(f)},getAllByType:function(f){return Un(e.droppables).filter(function(p){return p.descriptor.type===f})}};function u(){e.draggables={},e.droppables={},t.length=0}return{draggable:a,droppable:c,subscribe:r,clean:u}}function bI(){var e=ue(mI,[]);return v.useEffect(function(){return function(){requestAnimationFrame(e.clean)}},[e]),e}var ja=Q.createContext(null),qn=(function(){var e=document.body;return e||K(),e}),yI={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},xI=function(t){return"rbd-announcement-"+t};function SI(e){var t=ue(function(){return xI(e)},[e]),r=v.useRef(null);v.useEffect(function(){var o=document.createElement("div");return r.current=o,o.id=t,o.setAttribute("aria-live","assertive"),o.setAttribute("aria-atomic","true"),q(o.style,yI),qn().appendChild(o),function(){setTimeout(function(){var s=qn();s.contains(o)&&s.removeChild(o),o===r.current&&(r.current=null)})}},[t]);var n=ie(function(i){var o=r.current;if(o){o.textContent=i;return}},[]);return n}var wI=0,CI={separator:"::"};function Fa(e,t){return t===void 0&&(t=CI),ue(function(){return""+e+t.separator+wI++},[t.separator,e])}function II(e){var t=e.contextId,r=e.uniqueId;return"rbd-hidden-text-"+t+"-"+r}function RI(e){var t=e.contextId,r=e.text,n=Fa("hidden-text",{separator:"-"}),i=ue(function(){return II({contextId:t,uniqueId:n})},[n,t]);return v.useEffect(function(){var a=document.createElement("div");return a.id=i,a.textContent=r,a.style.display="none",qn().appendChild(a),function(){var s=qn();s.contains(a)&&s.removeChild(a)}},[i,r]),i}var fi=Q.createContext(null);function Zf(e){var t=v.useRef(e);return v.useEffect(function(){t.current=e}),t}function _I(){var e=null;function t(){return!!e}function r(a){return a===e}function n(a){e&&K();var l={abandon:a};return e=l,l}function i(){e||K(),e=null}function o(){e&&(e.abandon(),i())}return{isClaimed:t,isActive:r,claim:n,release:i,tryAbandon:o}}var DI=9,TI=13,Ba=27,ep=32,kI=33,EI=34,PI=35,OI=36,NI=37,MI=38,AI=39,LI=40,xn,zI=(xn={},xn[TI]=!0,xn[DI]=!0,xn),tp=(function(e){zI[e.keyCode]&&e.preventDefault()}),pi=(function(){var e="visibilitychange";if(typeof document>"u")return e;var t=[e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],r=kt(t,function(n){return"on"+n in document});return r||e})(),rp=0,oc=5;function jI(e,t){return Math.abs(t.x-e.x)>=oc||Math.abs(t.y-e.y)>=oc}var ac={type:"IDLE"};function FI(e){var t=e.cancel,r=e.completed,n=e.getPhase,i=e.setPhase;return[{eventName:"mousemove",fn:function(a){var l=a.button,s=a.clientX,c=a.clientY;if(l===rp){var u={x:s,y:c},d=n();if(d.type==="DRAGGING"){a.preventDefault(),d.actions.move(u);return}d.type!=="PENDING"&&K();var f=d.point;if(jI(f,u)){a.preventDefault();var p=d.actions.fluidLift(u);i({type:"DRAGGING",actions:p})}}}},{eventName:"mouseup",fn:function(a){var l=n();if(l.type!=="DRAGGING"){t();return}a.preventDefault(),l.actions.drop({shouldBlockNextClick:!0}),r()}},{eventName:"mousedown",fn:function(a){n().type==="DRAGGING"&&a.preventDefault(),t()}},{eventName:"keydown",fn:function(a){var l=n();if(l.type==="PENDING"){t();return}if(a.keyCode===Ba){a.preventDefault(),t();return}tp(a)}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){n().type==="PENDING"&&t()}},{eventName:"webkitmouseforcedown",fn:function(a){var l=n();if(l.type==="IDLE"&&K(),l.actions.shouldRespectForcePress()){t();return}a.preventDefault()}},{eventName:pi,fn:t}]}function BI(e){var t=v.useRef(ac),r=v.useRef(Ct),n=ue(function(){return{eventName:"mousedown",fn:function(d){if(!d.defaultPrevented&&d.button===rp&&!(d.ctrlKey||d.metaKey||d.shiftKey||d.altKey)){var f=e.findClosestDraggableId(d);if(f){var p=e.tryGetLock(f,a,{sourceEvent:d});if(p){d.preventDefault();var h={x:d.clientX,y:d.clientY};r.current(),c(p,h)}}}}}},[e]),i=ue(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(d){if(!d.defaultPrevented){var f=e.findClosestDraggableId(d);if(f){var p=e.findOptionsForDraggable(f);p&&(p.shouldRespectForcePress||e.canGetLock(f)&&d.preventDefault())}}}}},[e]),o=ie(function(){var d={passive:!1,capture:!0};r.current=Je(window,[i,n],d)},[i,n]),a=ie(function(){var u=t.current;u.type!=="IDLE"&&(t.current=ac,r.current(),o())},[o]),l=ie(function(){var u=t.current;a(),u.type==="DRAGGING"&&u.actions.cancel({shouldBlockNextClick:!0}),u.type==="PENDING"&&u.actions.abort()},[a]),s=ie(function(){var d={capture:!0,passive:!1},f=FI({cancel:l,completed:a,getPhase:function(){return t.current},setPhase:function(h){t.current=h}});r.current=Je(window,f,d)},[l,a]),c=ie(function(d,f){t.current.type!=="IDLE"&&K(),t.current={type:"PENDING",point:f,actions:d},s()},[s]);Ke(function(){return o(),function(){r.current()}},[o])}var qt;function $I(){}var GI=(qt={},qt[EI]=!0,qt[kI]=!0,qt[OI]=!0,qt[PI]=!0,qt);function WI(e,t){function r(){t(),e.cancel()}function n(){t(),e.drop()}return[{eventName:"keydown",fn:function(o){if(o.keyCode===Ba){o.preventDefault(),r();return}if(o.keyCode===ep){o.preventDefault(),n();return}if(o.keyCode===LI){o.preventDefault(),e.moveDown();return}if(o.keyCode===MI){o.preventDefault(),e.moveUp();return}if(o.keyCode===AI){o.preventDefault(),e.moveRight();return}if(o.keyCode===NI){o.preventDefault(),e.moveLeft();return}if(GI[o.keyCode]){o.preventDefault();return}tp(o)}},{eventName:"mousedown",fn:r},{eventName:"mouseup",fn:r},{eventName:"click",fn:r},{eventName:"touchstart",fn:r},{eventName:"resize",fn:r},{eventName:"wheel",fn:r,options:{passive:!0}},{eventName:pi,fn:r}]}function HI(e){var t=v.useRef($I),r=ue(function(){return{eventName:"keydown",fn:function(o){if(o.defaultPrevented||o.keyCode!==ep)return;var a=e.findClosestDraggableId(o);if(!a)return;var l=e.tryGetLock(a,u,{sourceEvent:o});if(!l)return;o.preventDefault();var s=!0,c=l.snapLift();t.current();function u(){s||K(),s=!1,t.current(),n()}t.current=Je(window,WI(c,u),{capture:!0,passive:!1})}}},[e]),n=ie(function(){var o={passive:!1,capture:!0};t.current=Je(window,[r],o)},[r]);Ke(function(){return n(),function(){t.current()}},[n])}var Ki={type:"IDLE"},UI=120,VI=.15;function qI(e){var t=e.cancel,r=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(i){i.preventDefault()}},{eventName:"keydown",fn:function(i){if(r().type!=="DRAGGING"){t();return}i.keyCode===Ba&&i.preventDefault(),t()}},{eventName:pi,fn:t}]}function KI(e){var t=e.cancel,r=e.completed,n=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(o){var a=n();if(a.type!=="DRAGGING"){t();return}a.hasMoved=!0;var l=o.touches[0],s=l.clientX,c=l.clientY,u={x:s,y:c};o.preventDefault(),a.actions.move(u)}},{eventName:"touchend",fn:function(o){var a=n();if(a.type!=="DRAGGING"){t();return}o.preventDefault(),a.actions.drop({shouldBlockNextClick:!0}),r()}},{eventName:"touchcancel",fn:function(o){if(n().type!=="DRAGGING"){t();return}o.preventDefault(),t()}},{eventName:"touchforcechange",fn:function(o){var a=n();a.type==="IDLE"&&K();var l=o.touches[0];if(l){var s=l.force>=VI;if(s){var c=a.actions.shouldRespectForcePress();if(a.type==="PENDING"){c&&t();return}if(c){if(a.hasMoved){o.preventDefault();return}t();return}o.preventDefault()}}}},{eventName:pi,fn:t}]}function YI(e){var t=v.useRef(Ki),r=v.useRef(Ct),n=ie(function(){return t.current},[]),i=ie(function(p){t.current=p},[]),o=ue(function(){return{eventName:"touchstart",fn:function(p){if(!p.defaultPrevented){var h=e.findClosestDraggableId(p);if(h){var m=e.tryGetLock(h,l,{sourceEvent:p});if(m){var b=p.touches[0],y=b.clientX,x=b.clientY,_={x:y,y:x};r.current(),d(m,_)}}}}}},[e]),a=ie(function(){var p={capture:!0,passive:!1};r.current=Je(window,[o],p)},[o]),l=ie(function(){var f=t.current;f.type!=="IDLE"&&(f.type==="PENDING"&&clearTimeout(f.longPressTimerId),i(Ki),r.current(),a())},[a,i]),s=ie(function(){var f=t.current;l(),f.type==="DRAGGING"&&f.actions.cancel({shouldBlockNextClick:!0}),f.type==="PENDING"&&f.actions.abort()},[l]),c=ie(function(){var p={capture:!0,passive:!1},h={cancel:s,completed:l,getPhase:n},m=Je(window,KI(h),p),b=Je(window,qI(h),p);r.current=function(){m(),b()}},[s,n,l]),u=ie(function(){var p=n();p.type!=="PENDING"&&K();var h=p.actions.fluidLift(p.point);i({type:"DRAGGING",actions:h,hasMoved:!1})},[n,i]),d=ie(function(p,h){n().type!=="IDLE"&&K();var m=setTimeout(u,UI);i({type:"PENDING",point:h,actions:p,longPressTimerId:m}),c()},[c,n,i,u]);Ke(function(){return a(),function(){r.current();var h=n();h.type==="PENDING"&&(clearTimeout(h.longPressTimerId),i(Ki))}},[n,a,i]),Ke(function(){var p=Je(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return p},[])}var JI={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function np(e,t){if(t==null)return!1;var r=!!JI[t.tagName.toLowerCase()];if(r)return!0;var n=t.getAttribute("contenteditable");return n==="true"||n===""?!0:t===e?!1:np(e,t.parentElement)}function QI(e,t){var r=t.target;return di(r)?np(e,r):!1}var XI=(function(e){return $t(e.getBoundingClientRect()).center});function ZI(e){return e instanceof Xf(e).Element}var eR=(function(){var e="matches";if(typeof document>"u")return e;var t=[e,"msMatchesSelector","webkitMatchesSelector"],r=kt(t,function(n){return n in Element.prototype});return r||e})();function ip(e,t){return e==null?null:e[eR](t)?e:ip(e.parentElement,t)}function tR(e,t){return e.closest?e.closest(t):ip(e,t)}function rR(e){return"["+cr.contextId+'="'+e+'"]'}function nR(e,t){var r=t.target;if(!ZI(r))return null;var n=rR(e),i=tR(r,n);return!i||!di(i)?null:i}function iR(e,t){var r=nR(e,t);return r?r.getAttribute(cr.draggableId):null}function oR(e,t){var r="["+No.contextId+'="'+e+'"]',n=xf(document.querySelectorAll(r)),i=kt(n,function(o){return o.getAttribute(No.id)===t});return!i||!di(i)?null:i}function aR(e){e.preventDefault()}function Sn(e){var t=e.expected,r=e.phase,n=e.isLockActive;return e.shouldWarn,!(!n()||t!==r)}function op(e){var t=e.lockAPI,r=e.store,n=e.registry,i=e.draggableId;if(t.isClaimed())return!1;var o=n.draggable.findById(i);return!(!o||!o.options.isEnabled||!Kf(r.getState(),i))}function lR(e){var t=e.lockAPI,r=e.contextId,n=e.store,i=e.registry,o=e.draggableId,a=e.forceSensorStop,l=e.sourceEvent,s=op({lockAPI:t,store:n,registry:i,draggableId:o});if(!s)return null;var c=i.draggable.getById(o),u=oR(r,c.descriptor.id);if(!u||l&&!c.options.canDragInteractiveElements&&QI(u,l))return null;var d=t.claim(a||Ct),f="PRE_DRAG";function p(){return c.options.shouldRespectForcePress}function h(){return t.isActive(d)}function m(C,D){Sn({expected:C,phase:f,isLockActive:h,shouldWarn:!0})&&n.dispatch(D())}var b=m.bind(null,"DRAGGING");function y(C){function D(){t.release(),f="COMPLETED"}f!=="PRE_DRAG"&&(D(),f!=="PRE_DRAG"&&K()),n.dispatch(eC(C.liftActionArgs)),f="DRAGGING";function w(R,I){if(I===void 0&&(I={shouldBlockNextClick:!1}),C.cleanup(),I.shouldBlockNextClick){var P=Je(window,[{eventName:"click",fn:aR,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(P)}D(),n.dispatch($f({reason:R}))}return q({isActive:function(){return Sn({expected:"DRAGGING",phase:f,isLockActive:h,shouldWarn:!1})},shouldRespectForcePress:p,drop:function(I){return w("DROP",I)},cancel:function(I){return w("CANCEL",I)}},C.actions)}function x(C){var D=Gr(function(R){b(function(){return Bf({client:R})})}),w=y({liftActionArgs:{id:o,clientSelection:C,movementMode:"FLUID"},cleanup:function(){return D.cancel()},actions:{move:D}});return q({},w,{move:D})}function _(){var C={moveUp:function(){return b(cC)},moveRight:function(){return b(dC)},moveDown:function(){return b(uC)},moveLeft:function(){return b(fC)}};return y({liftActionArgs:{id:o,clientSelection:XI(u),movementMode:"SNAP"},cleanup:Ct,actions:C})}function T(){var C=Sn({expected:"PRE_DRAG",phase:f,isLockActive:h,shouldWarn:!0});C&&t.release()}var k={isActive:function(){return Sn({expected:"PRE_DRAG",phase:f,isLockActive:h,shouldWarn:!1})},shouldRespectForcePress:p,fluidLift:x,snapLift:_,abort:T};return k}var sR=[BI,HI,YI];function cR(e){var t=e.contextId,r=e.store,n=e.registry,i=e.customSensors,o=e.enableDefaultSensors,a=[].concat(o?sR:[],i||[]),l=v.useState(function(){return _I()})[0],s=ie(function(x,_){x.isDragging&&!_.isDragging&&l.tryAbandon()},[l]);Ke(function(){var x=r.getState(),_=r.subscribe(function(){var T=r.getState();s(x,T),x=T});return _},[l,r,s]),Ke(function(){return l.tryAbandon},[l.tryAbandon]);for(var c=ie(function(y){return op({lockAPI:l,registry:n,store:r,draggableId:y})},[l,n,r]),u=ie(function(y,x,_){return lR({lockAPI:l,registry:n,contextId:t,store:r,draggableId:y,forceSensorStop:x,sourceEvent:_&&_.sourceEvent?_.sourceEvent:null})},[t,l,n,r]),d=ie(function(y){return iR(t,y)},[t]),f=ie(function(y){var x=n.draggable.findById(y);return x?x.options:null},[n.draggable]),p=ie(function(){l.isClaimed()&&(l.tryAbandon(),r.getState().phase!=="IDLE"&&r.dispatch(Ea()))},[l,r]),h=ie(l.isClaimed,[l]),m=ue(function(){return{canGetLock:c,tryGetLock:u,findClosestDraggableId:d,findOptionsForDraggable:f,tryReleaseLock:p,isLockClaimed:h}},[c,u,d,f,p,h]),b=0;b<a.length;b++)a[b](m)}var uR=function(t){return{onBeforeCapture:t.onBeforeCapture,onBeforeDragStart:t.onBeforeDragStart,onDragStart:t.onDragStart,onDragEnd:t.onDragEnd,onDragUpdate:t.onDragUpdate}};function Rr(e){return e.current||K(),e.current}function dR(e){var t=e.contextId,r=e.setCallbacks,n=e.sensors,i=e.nonce,o=e.dragHandleUsageInstructions,a=v.useRef(null),l=Zf(e),s=ie(function(){return uR(l.current)},[l]),c=SI(t),u=RI({contextId:t,text:o}),d=hI(t,i),f=ie(function(R){Rr(a).dispatch(R)},[]),p=ue(function(){return tl({publishWhileDragging:rC,updateDroppableScroll:iC,updateDroppableIsEnabled:oC,updateDroppableIsCombineEnabled:aC,collectionStarting:nC},f)},[f]),h=bI(),m=ue(function(){return VC(h,p)},[h,p]),b=ue(function(){return cI(q({scrollWindow:qC,scrollDroppable:m.scrollDroppable},tl({move:Bf},f)))},[m.scrollDroppable,f]),y=vI(t),x=ue(function(){return GC({announce:c,autoScroller:b,dimensionMarshal:m,focusMarshal:y,getResponders:s,styleMarshal:d})},[c,b,m,y,s,d]);a.current=x;var _=ie(function(){var R=Rr(a),I=R.getState();I.phase!=="IDLE"&&R.dispatch(Ea())},[]),T=ie(function(){var R=Rr(a).getState();return R.isDragging||R.phase==="DROP_ANIMATING"},[]),k=ue(function(){return{isDragging:T,tryAbort:_}},[T,_]);r(k);var C=ie(function(R){return Kf(Rr(a).getState(),R)},[]),D=ie(function(){return Nt(Rr(a).getState())},[]),w=ue(function(){return{marshal:m,focus:y,contextId:t,canLift:C,isMovementAllowed:D,dragHandleUsageInstructionsId:u,registry:h}},[t,m,u,y,C,D,h]);return cR({contextId:t,store:x,registry:h,customSensors:n,enableDefaultSensors:e.enableDefaultSensors!==!1}),v.useEffect(function(){return _},[_]),Q.createElement(fi.Provider,{value:w},Q.createElement(lS,{context:ja,store:x},e.children))}var fR=0;function pR(){return ue(function(){return""+fR++},[])}function hR(e){var t=pR(),r=e.dragHandleUsageInstructions||Nn.dragHandleUsageInstructions;return Q.createElement(HS,null,function(n){return Q.createElement(dR,{nonce:e.nonce,contextId:t,setCallbacks:n,dragHandleUsageInstructions:r,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd},e.children)})}var ap=function(t){return function(r){return t===r}},gR=ap("scroll"),vR=ap("auto"),lc=function(t,r){return r(t.overflowX)||r(t.overflowY)},mR=function(t){var r=window.getComputedStyle(t),n={overflowX:r.overflowX,overflowY:r.overflowY};return lc(n,gR)||lc(n,vR)},bR=function(){return!1},yR=function e(t){return t==null?null:t===document.body?bR()?t:null:t===document.documentElement?null:mR(t)?t:e(t.parentElement)},Mo=(function(e){return{x:e.scrollLeft,y:e.scrollTop}}),xR=function e(t){if(!t)return!1;var r=window.getComputedStyle(t);return r.position==="fixed"?!0:e(t.parentElement)},SR=(function(e){var t=yR(e),r=xR(e);return{closestScrollable:t,isFixedOnPage:r}}),wR=(function(e){var t=e.descriptor,r=e.isEnabled,n=e.isCombineEnabled,i=e.isFixedOnPage,o=e.direction,a=e.client,l=e.page,s=e.closest,c=(function(){if(!s)return null;var p=s.scrollSize,h=s.client,m=Uf({scrollHeight:p.scrollHeight,scrollWidth:p.scrollWidth,height:h.paddingBox.height,width:h.paddingBox.width});return{pageMarginBox:s.page.marginBox,frameClient:h,scrollSize:p,shouldClipSubject:s.shouldClipSubject,scroll:{initial:s.scroll,current:s.scroll,max:m,diff:{value:Te,displacement:Te}}}})(),u=o==="vertical"?Ra:Rf,d=lr({page:l,withPlaceholder:null,axis:u,frame:c}),f={descriptor:t,isCombineEnabled:n,isFixedOnPage:i,axis:u,isEnabled:r,client:a,page:l,frame:c,subject:d};return f}),CR=function(t,r){var n=Bc(t);if(!r||t!==r)return n;var i=n.paddingBox.top-r.scrollTop,o=n.paddingBox.left-r.scrollLeft,a=i+r.scrollHeight,l=o+r.scrollWidth,s={top:i,right:l,bottom:a,left:o},c=$c(s,n.border),u=Zh({borderBox:c,margin:n.margin,border:n.border,padding:n.padding});return u},IR=(function(e){var t=e.ref,r=e.descriptor,n=e.env,i=e.windowScroll,o=e.direction,a=e.isDropDisabled,l=e.isCombineEnabled,s=e.shouldClipSubject,c=n.closestScrollable,u=CR(t,c),d=Ln(u,i),f=(function(){if(!c)return null;var h=Bc(c),m={scrollHeight:c.scrollHeight,scrollWidth:c.scrollWidth};return{client:h,page:Ln(h,i),scroll:Mo(c),scrollSize:m,shouldClipSubject:s}})(),p=wR({descriptor:r,isEnabled:!a,isCombineEnabled:l,isFixedOnPage:n.isFixedOnPage,direction:o,client:u,page:d,closest:f});return p}),RR={passive:!1},_R={passive:!0},sc=(function(e){return e.shouldPublishImmediately?RR:_R});function Kn(e){var t=v.useContext(e);return t||K(),t}var wn=function(t){return t&&t.env.closestScrollable||null};function DR(e){var t=v.useRef(null),r=Kn(fi),n=Fa("droppable"),i=r.registry,o=r.marshal,a=Zf(e),l=ue(function(){return{id:e.droppableId,type:e.type,mode:e.mode}},[e.droppableId,e.mode,e.type]),s=v.useRef(l),c=ue(function(){return De(function(T,k){t.current||K();var C={x:T,y:k};o.updateDroppableScroll(l.id,C)})},[l.id,o]),u=ie(function(){var T=t.current;return!T||!T.env.closestScrollable?Te:Mo(T.env.closestScrollable)},[]),d=ie(function(){var T=u();c(T.x,T.y)},[u,c]),f=ue(function(){return Gr(d)},[d]),p=ie(function(){var T=t.current,k=wn(T);T&&k||K();var C=T.scrollOptions;if(C.shouldPublishImmediately){d();return}f()},[f,d]),h=ie(function(T,k){t.current&&K();var C=a.current,D=C.getDroppableRef();D||K();var w=SR(D),R={ref:D,descriptor:l,env:w,scrollOptions:k};t.current=R;var I=IR({ref:D,descriptor:l,env:w,windowScroll:T,direction:C.direction,isDropDisabled:C.isDropDisabled,isCombineEnabled:C.isCombineEnabled,shouldClipSubject:!C.ignoreContainerClipping}),P=w.closestScrollable;return P&&(P.setAttribute(nc.contextId,r.contextId),P.addEventListener("scroll",p,sc(R.scrollOptions))),I},[r.contextId,l,p,a]),m=ie(function(){var T=t.current,k=wn(T);return T&&k||K(),Mo(k)},[]),b=ie(function(){var T=t.current;T||K();var k=wn(T);t.current=null,k&&(f.cancel(),k.removeAttribute(nc.contextId),k.removeEventListener("scroll",p,sc(T.scrollOptions)))},[p,f]),y=ie(function(T){var k=t.current;k||K();var C=wn(k);C||K(),C.scrollTop+=T.y,C.scrollLeft+=T.x},[]),x=ue(function(){return{getDimensionAndWatchScroll:h,getScrollWhileDragging:m,dragStopped:b,scroll:y}},[b,h,m,y]),_=ue(function(){return{uniqueId:n,descriptor:l,callbacks:x}},[x,l,n]);Ke(function(){return s.current=_.descriptor,i.droppable.register(_),function(){t.current&&b(),i.droppable.unregister(_)}},[x,l,b,_,o,i.droppable]),Ke(function(){t.current&&o.updateDroppableIsEnabled(s.current.id,!e.isDropDisabled)},[e.isDropDisabled,o]),Ke(function(){t.current&&o.updateDroppableIsCombineEnabled(s.current.id,e.isCombineEnabled)},[e.isCombineEnabled,o])}function Yi(){}var cc={width:0,height:0,margin:JS},TR=function(t){var r=t.isAnimatingOpenOnMount,n=t.placeholder,i=t.animate;return r||i==="close"?cc:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin}},kR=function(t){var r=t.isAnimatingOpenOnMount,n=t.placeholder,i=t.animate,o=TR({isAnimatingOpenOnMount:r,placeholder:n,animate:i});return{display:n.display,boxSizing:"border-box",width:o.width,height:o.height,marginTop:o.margin.top,marginRight:o.margin.right,marginBottom:o.margin.bottom,marginLeft:o.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:i!=="none"?$r.placeholder:null}};function ER(e){var t=v.useRef(null),r=ie(function(){t.current&&(clearTimeout(t.current),t.current=null)},[]),n=e.animate,i=e.onTransitionEnd,o=e.onClose,a=e.contextId,l=v.useState(e.animate==="open"),s=l[0],c=l[1];v.useEffect(function(){return s?n!=="open"?(r(),c(!1),Yi):t.current?Yi:(t.current=setTimeout(function(){t.current=null,c(!1)}),r):Yi},[n,s,r]);var u=ie(function(f){f.propertyName==="height"&&(i(),n==="close"&&o())},[n,o,i]),d=kR({isAnimatingOpenOnMount:s,animate:e.animate,placeholder:e.placeholder});return Q.createElement(e.placeholder.tagName,{style:d,"data-rbd-placeholder-context-id":a,onTransitionEnd:u,ref:e.innerRef})}var PR=Q.memo(ER),$a=Q.createContext(null),OR=(function(e){Xn(t,e);function t(){for(var n,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=e.call.apply(e,[this].concat(o))||this,n.state={isVisible:!!n.props.on,data:n.props.on,animate:n.props.shouldAnimate&&n.props.on?"open":"none"},n.onClose=function(){n.state.animate==="close"&&n.setState({isVisible:!1})},n}t.getDerivedStateFromProps=function(i,o){return i.shouldAnimate?i.on?{isVisible:!0,data:i.on,animate:"open"}:o.isVisible?{isVisible:!0,data:o.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!i.on,data:i.on,animate:"none"}};var r=t.prototype;return r.render=function(){if(!this.state.isVisible)return null;var i={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(i)},t})(Q.PureComponent),uc={dragging:5e3,dropAnimating:4500},NR=function(t,r){return r?$r.drop(r.duration):t?$r.snap:$r.fluid},MR=function(t,r){return t?r?Qr.opacity.drop:Qr.opacity.combining:null},AR=function(t){return t.forceShouldAnimate!=null?t.forceShouldAnimate:t.mode==="SNAP"};function LR(e){var t=e.dimension,r=t.client,n=e.offset,i=e.combineWith,o=e.dropping,a=!!i,l=AR(e),s=!!o,c=s?Po.drop(n,a):Po.moveTo(n),u={position:"fixed",top:r.marginBox.top,left:r.marginBox.left,boxSizing:"border-box",width:r.borderBox.width,height:r.borderBox.height,transition:NR(l,o),transform:c,opacity:MR(a,s),zIndex:s?uc.dropAnimating:uc.dragging,pointerEvents:"none"};return u}function zR(e){return{transform:Po.moveTo(e.offset),transition:e.shouldAnimateDisplacement?null:"none"}}function jR(e){return e.type==="DRAGGING"?LR(e):zR(e)}function FR(e,t,r){r===void 0&&(r=Te);var n=window.getComputedStyle(t),i=t.getBoundingClientRect(),o=eg(i,n),a=Ln(o,r),l={client:o,tagName:t.tagName.toLowerCase(),display:n.display},s={x:o.marginBox.width,y:o.marginBox.height},c={descriptor:e,placeholder:l,displaceBy:s,client:o,page:a};return c}function BR(e){var t=Fa("draggable"),r=e.descriptor,n=e.registry,i=e.getDraggableRef,o=e.canDragInteractiveElements,a=e.shouldRespectForcePress,l=e.isEnabled,s=ue(function(){return{canDragInteractiveElements:o,shouldRespectForcePress:a,isEnabled:l}},[o,l,a]),c=ie(function(p){var h=i();return h||K(),FR(r,h,p)},[r,i]),u=ue(function(){return{uniqueId:t,descriptor:r,options:s,getDimension:c}},[r,c,s,t]),d=v.useRef(u),f=v.useRef(!0);Ke(function(){return n.draggable.register(d.current),function(){return n.draggable.unregister(d.current)}},[n.draggable]),Ke(function(){if(f.current){f.current=!1;return}var p=d.current;d.current=u,n.draggable.update(u,p)},[u,n.draggable])}function $R(e){e.preventDefault()}function GR(e){var t=v.useRef(null),r=ie(function(R){t.current=R},[]),n=ie(function(){return t.current},[]),i=Kn(fi),o=i.contextId,a=i.dragHandleUsageInstructionsId,l=i.registry,s=Kn($a),c=s.type,u=s.droppableId,d=ue(function(){return{id:e.draggableId,index:e.index,type:c,droppableId:u}},[e.draggableId,e.index,c,u]),f=e.children,p=e.draggableId,h=e.isEnabled,m=e.shouldRespectForcePress,b=e.canDragInteractiveElements,y=e.isClone,x=e.mapped,_=e.dropAnimationFinished;if(!y){var T=ue(function(){return{descriptor:d,registry:l,getDraggableRef:n,canDragInteractiveElements:b,shouldRespectForcePress:m,isEnabled:h}},[d,l,n,b,m,h]);BR(T)}var k=ue(function(){return h?{tabIndex:0,role:"button","aria-describedby":a,"data-rbd-drag-handle-draggable-id":p,"data-rbd-drag-handle-context-id":o,draggable:!1,onDragStart:$R}:null},[o,a,p,h]),C=ie(function(R){x.type==="DRAGGING"&&x.dropping&&R.propertyName==="transform"&&_()},[_,x]),D=ue(function(){var R=jR(x),I=x.type==="DRAGGING"&&x.dropping?C:null,P={innerRef:r,draggableProps:{"data-rbd-draggable-context-id":o,"data-rbd-draggable-id":p,style:R,onTransitionEnd:I},dragHandleProps:k};return P},[o,k,p,x,C,r]),w=ue(function(){return{draggableId:d.id,type:d.type,source:{index:d.index,droppableId:d.droppableId}}},[d.droppableId,d.id,d.index,d.type]);return f(D,x.snapshot,w)}var lp=(function(e,t){return e===t}),sp=(function(e){var t=e.combine,r=e.destination;return r?r.droppableId:t?t.droppableId:null}),WR=function(t){return t.combine?t.combine.draggableId:null},HR=function(t){return t.at&&t.at.type==="COMBINE"?t.at.combine.draggableId:null};function UR(){var e=De(function(i,o){return{x:i,y:o}}),t=De(function(i,o,a,l,s){return{isDragging:!0,isClone:o,isDropAnimating:!!s,dropAnimation:s,mode:i,draggingOver:a,combineWith:l,combineTargetFor:null}}),r=De(function(i,o,a,l,s,c,u){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:s,combineWith:c,mode:o,offset:i,dimension:a,forceShouldAnimate:u,snapshot:t(o,l,s,c,null)}}}),n=function(o,a){if(o.isDragging){if(o.critical.draggable.id!==a.draggableId)return null;var l=o.current.client.offset,s=o.dimensions.draggables[a.draggableId],c=qe(o.impact),u=HR(o.impact),d=o.forceShouldAnimate;return r(e(l.x,l.y),o.movementMode,s,a.isClone,c,u,d)}if(o.phase==="DROP_ANIMATING"){var f=o.completed;if(f.result.draggableId!==a.draggableId)return null;var p=a.isClone,h=o.dimensions.draggables[a.draggableId],m=f.result,b=m.mode,y=sp(m),x=WR(m),_=o.dropDuration,T={duration:_,curve:Oa.drop,moveTo:o.newHomeClientOffset,opacity:x?Qr.opacity.drop:null,scale:x?Qr.scale.drop:null};return{mapped:{type:"DRAGGING",offset:o.newHomeClientOffset,dimension:h,dropping:T,draggingOver:y,combineWith:x,mode:b,forceShouldAnimate:null,snapshot:t(b,p,y,x,T)}}}return null};return n}function cp(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var VR={mapped:{type:"SECONDARY",offset:Te,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:cp(null)}};function qR(){var e=De(function(a,l){return{x:a,y:l}}),t=De(cp),r=De(function(a,l,s){return l===void 0&&(l=null),{mapped:{type:"SECONDARY",offset:a,combineTargetFor:l,shouldAnimateDisplacement:s,snapshot:t(l)}}}),n=function(l){return l?r(Te,l,!0):null},i=function(l,s,c,u){var d=c.displaced.visible[l],f=!!(u.inVirtualList&&u.effected[l]),p=si(c),h=p&&p.draggableId===l?s:null;if(!d){if(!f)return n(h);if(c.displaced.invisible[l])return null;var m=hr(u.displacedBy.point),b=e(m.x,m.y);return r(b,h,!0)}if(f)return n(h);var y=c.displacedBy.point,x=e(y.x,y.y);return r(x,h,d.shouldAnimate)},o=function(l,s){if(l.isDragging)return l.critical.draggable.id===s.draggableId?null:i(s.draggableId,l.critical.draggable.id,l.impact,l.afterCritical);if(l.phase==="DROP_ANIMATING"){var c=l.completed;return c.result.draggableId===s.draggableId?null:i(s.draggableId,c.result.draggableId,c.impact,c.afterCritical)}return null};return o}var KR=function(){var t=UR(),r=qR(),n=function(o,a){return t(o,a)||r(o,a)||VR};return n},YR={dropAnimationFinished:Gf},JR=gf(KR,YR,null,{context:ja,pure:!0,areStatePropsEqual:lp})(GR);function up(e){var t=Kn($a),r=t.isUsingCloneFor;return r===e.draggableId&&!e.isClone?null:Q.createElement(JR,e)}function QR(e){var t=typeof e.isDragDisabled=="boolean"?!e.isDragDisabled:!0,r=!!e.disableInteractiveElementBlocking,n=!!e.shouldRespectForcePress;return Q.createElement(up,q({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:r,shouldRespectForcePress:n}))}function XR(e){var t=v.useContext(fi);t||K();var r=t.contextId,n=t.isMovementAllowed,i=v.useRef(null),o=v.useRef(null),a=e.children,l=e.droppableId,s=e.type,c=e.mode,u=e.direction,d=e.ignoreContainerClipping,f=e.isDropDisabled,p=e.isCombineEnabled,h=e.snapshot,m=e.useClone,b=e.updateViewportMaxScroll,y=e.getContainerForClone,x=ie(function(){return i.current},[]),_=ie(function(P){i.current=P},[]);ie(function(){return o.current},[]);var T=ie(function(P){o.current=P},[]),k=ie(function(){n()&&b({maxScroll:qf()})},[n,b]);DR({droppableId:l,type:s,mode:c,direction:u,isDropDisabled:f,isCombineEnabled:p,ignoreContainerClipping:d,getDroppableRef:x});var C=Q.createElement(OR,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},function(P){var L=P.onClose,N=P.data,G=P.animate;return Q.createElement(PR,{placeholder:N,onClose:L,innerRef:T,animate:G,contextId:r,onTransitionEnd:k})}),D=ue(function(){return{innerRef:_,placeholder:C,droppableProps:{"data-rbd-droppable-id":l,"data-rbd-droppable-context-id":r}}},[r,l,C,_]),w=m?m.dragging.draggableId:null,R=ue(function(){return{droppableId:l,type:s,isUsingCloneFor:w}},[l,w,s]);function I(){if(!m)return null;var P=m.dragging,L=m.render,N=Q.createElement(up,{draggableId:P.draggableId,index:P.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(G,z){return L(G,z,P)});return Fh.createPortal(N,y())}return Q.createElement($a.Provider,{value:R},a(D,h),I())}var Ji=function(t,r){return t===r.droppable.type},dc=function(t,r){return r.draggables[t.draggable.id]},ZR=function(){var t={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},r=q({},t,{shouldAnimatePlaceholder:!1}),n=De(function(a){return{draggableId:a.id,type:a.type,source:{index:a.index,droppableId:a.droppableId}}}),i=De(function(a,l,s,c,u,d){var f=u.descriptor.id,p=u.descriptor.droppableId===a;if(p){var h=d?{render:d,dragging:n(u.descriptor)}:null,m={isDraggingOver:s,draggingOverWith:s?f:null,draggingFromThisWith:f,isUsingPlaceholder:!0};return{placeholder:u.placeholder,shouldAnimatePlaceholder:!1,snapshot:m,useClone:h}}if(!l)return r;if(!c)return t;var b={isDraggingOver:s,draggingOverWith:f,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:u.placeholder,shouldAnimatePlaceholder:!0,snapshot:b,useClone:null}}),o=function(l,s){var c=s.droppableId,u=s.type,d=!s.isDropDisabled,f=s.renderClone;if(l.isDragging){var p=l.critical;if(!Ji(u,p))return r;var h=dc(p,l.dimensions),m=qe(l.impact)===c;return i(c,d,m,m,h,f)}if(l.phase==="DROP_ANIMATING"){var b=l.completed;if(!Ji(u,b.critical))return r;var y=dc(b.critical,l.dimensions);return i(c,d,sp(b.result)===c,qe(b.impact)===c,y,f)}if(l.phase==="IDLE"&&l.completed&&!l.shouldFlush){var x=l.completed;if(!Ji(u,x.critical))return r;var _=qe(x.impact)===c,T=!!(x.impact.at&&x.impact.at.type==="COMBINE"),k=x.critical.droppable.id===c;return _?T?t:r:k?t:r}return r};return o},e2={updateViewportMaxScroll:sC};function t2(){return document.body||K(),document.body}var r2={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:t2},dp=gf(ZR,e2,null,{context:ja,pure:!0,areStatePropsEqual:lp})(XR);dp.defaultProps=r2;const n2=e=>{const t=e.replace("#","");if(!/^([A-Fa-f0-9]{3}){1,2}$/.test(t))return{r:0,g:0,b:0};const r=t.length===3?t.split("").map(n=>n+n).join(""):t;return{r:parseInt(r.substr(0,2),16),g:parseInt(r.substr(2,2),16),b:parseInt(r.substr(4,2),16)}};function i2({src:e,color:t,size:r=24,...n}){const[i,o]=v.useState("");return v.useEffect(()=>{const a=new Image;return a.crossOrigin="anonymous",a.onload=()=>{const l=document.createElement("canvas");l.width=a.width,l.height=a.height;const s=l.getContext("2d");s.drawImage(a,0,0);const c=s.getImageData(0,0,l.width,l.height),{data:u}=c,d=n2(t);for(let f=0;f<u.length;f+=4)if(u[f+3]>0){const p=u[f+3]/255;u[f]=d.r*p,u[f+1]=d.g*p,u[f+2]=d.b*p}s.putImageData(c,0,0),o(l.toDataURL("image/png"))},a.src=e,()=>{a.onload=null}},[e,t]),g.jsx(te,{component:"img",src:i||e,sx:{width:r,height:r,display:"block",opacity:i?1:.5,transition:"opacity 0.2s"},...n})}const Ao=375,fp=667,Ga=56,o2=tt(Mr)(({theme:e})=>({width:Ao,height:fp,display:"flex",flexDirection:"column",overflow:"hidden",border:`1px solid ${e.palette.divider}`,borderRadius:32,position:"relative"})),fc=tt(te)(({theme:e})=>({height:Ga,borderTop:`1px solid ${e.palette.divider}`,display:"flex",backgroundColor:e.palette.background.paper})),pc=tt(te)(({theme:e,active:t})=>({flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",cursor:"pointer",position:"relative",color:t?e.palette.primary.main:e.palette.text.secondary,"&:hover":{backgroundColor:e.palette.action.hover}})),a2=tt(te)(({theme:e,left:t})=>({position:"absolute",bottom:-Ga,left:t,transform:"translateX(-50%)",display:"flex",alignItems:"center",backgroundColor:e.palette.background.paper,borderRadius:e.shape.borderRadius,padding:`${e.spacing(.5)} ${e.spacing(1)}`,boxShadow:e.shadows[2],zIndex:1})),Cn=tt(Ge)(({theme:e})=>({padding:e.spacing(.5),"&:not(:last-child)":{marginRight:e.spacing(.5)}})),l2=tt(te)({flexGrow:1,height:"100%",position:"relative",overflow:"hidden"}),s2=tt(te)(({theme:e})=>({width:400,paddingLeft:e.spacing(3),backgroundColor:e.palette.background.default,height:fp,overflowY:"auto"}));function c2(){const{t:e,locale:t}=ke(),{blocklet:r}=Bt(),n=et(),i=Xr(n.breakpoints.down("md")),{state:o,getNavigation:a,updateNavigationItem:l,addNavigationItem:s,delNavigationItem:c,updateNavigationTree:u}=Yc(),{inService:d}=Sc(),f=v.useRef(null),p=v.useRef(null),h=v.useRef(null),m=r.environments.find(U=>U.key===Ue.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_URL),b=r?.settings?.theme?.light?.palette?.primary?.main,[y,x]=v.useState(0),[_,T]=v.useState(!1),k=v.useRef(0),C=v.useRef(null),D=a("bottomNavigation"),w=D.length>0,R=D.length<5,[I,P]=v.useState(D.length>0?D[0]:null),L=D.findIndex(U=>U.id===I?.id),N=oe((U,re)=>{const ne=U?.[re];return zc(ne)?ne[t]||ne.en:ne}),G=oe(U=>{U.id!==I?.id&&P(U)}),z=oe(U=>{C.current=U,h.current?.add({},(re,ne)=>{const ce=s(ne,C.current);P(ce),re()})}),F=oe(()=>{T(!0)}),W=oe(()=>{h.current?.edit(I,(U,re)=>{l(re),U()})}),{run:H}=wc(()=>{p.current?.submit()},{wait:300}),J=oe(H),Z=oe(U=>{if(U?.startsWith("/"))try{const re=d?window.location.origin:m?.value;return new URL(U,re).href}catch{console.error("Failed to resolve url: ",U)}return U},[m?.value,d]),Y=oe(U=>{if(!U.destination)return;const re=Array.from(D),[ne]=re.splice(U.source.index,1);re.splice(U.destination.index,0,ne),u(re)}),X=oe(()=>{const U=D.find(ne=>ne.id===I?.id);if(!U)return"";let re=N(U,"link")||"/";if(re.startsWith("/"))try{re=Z(Oe(U.__base||"/",re))}catch(ne){return console.error("Failed to get active tab link",ne),""}return re});return v.useEffect(()=>{I&&!i&&(p.current?.resetImmediate(),p.current?.edit(I,U=>{l(U)}))},[I,l,i]),v.useEffect(()=>{const U=D.findIndex(O=>O.id===I?.id);if(U===-1||!f.current)return x(k.current);const ne=Ao/D.length*(U+.5),ce=f.current.getBoundingClientRect().width,B=ce/2+16,$=Ao-(ce/2+16),E=Math.min(Math.max(ne,B),$);return k.current=E,x(E)},[I,D,k]),v.useEffect(()=>{D.length>0&&!I&&P(D[0])},[D,I]),g.jsx(te,{sx:{display:"flex",justifyContent:"center"},children:g.jsxs(te,{sx:{position:"relative",display:"inline-flex",alignItems:"flex-start",margin:"4px auto 0"},children:[g.jsxs(o2,{elevation:2,children:[g.jsx(l2,{children:w&&g.jsx(gg,{url:X(),width:"100%",height:"100%",id:"tabbar-preview",className:"tabbar-preview-iframe",display:"block",position:"relative",styles:{border:"none",background:"#fff"}})}),g.jsxs(te,{sx:{height:Ga,overflowY:"auto",flexShrink:0},children:[w&&g.jsx(hR,{onDragEnd:Y,children:g.jsx(dp,{droppableId:"tabbar",direction:"horizontal",children:U=>g.jsxs(fc,{ref:U.innerRef,...U.droppableProps,children:[D.map((re,ne)=>g.jsx(QR,{draggableId:re.id,index:ne,children:(ce,B)=>g.jsxs(pc,{className:"tab-item",ref:ce.innerRef,...ce.draggableProps,...ce.dragHandleProps,active:re.id===I?.id,onClick:$=>G(re,$),sx:{color:re.id===I?.id?b:"text.secondary",opacity:B.isDragging?.5:1},children:[g.jsx(i2,{src:Z(re.icon),color:re.id===I?.id?b:n.palette.text.secondary,size:24}),g.jsx(ye,{variant:"caption",children:N(re,"title")})]})},re.id)),U.placeholder]})})}),!w&&g.jsx(fc,{children:g.jsx(pc,{className:"tab-item",onClick:()=>z(0),children:g.jsx(it,{icon:"mdi:plus-circle-outline",size:28})})})]})]}),!i&&w&&g.jsx(s2,{children:I&&g.jsx(va,{ref:p,sx:{p:0},section:"bottomNavigation",components:o.components,rawNavigations:o.rawNavigation,onChange:J})}),g.jsx(_c,{in:I!==null,children:g.jsxs(a2,{ref:f,left:y,children:[g.jsx(Cn,{size:"small",disabled:!R,onClick:()=>z(L),children:g.jsx(it,{icon:"mdi:plus-circle-outline",size:28})}),i&&g.jsx(Cn,{size:"small",onClick:()=>W(),children:g.jsx(it,{icon:"mdi:edit-box-outline",size:28})}),g.jsx(Cn,{size:"small",onClick:()=>F(),children:g.jsx(it,{icon:"mdi:delete-outline",size:28})}),g.jsx(Cn,{size:"small",disabled:!R,onClick:()=>z(L+1),children:g.jsx(it,{icon:"mdi:plus-circle-outline",size:28})})]})}),g.jsx(ma,{ref:h,section:"bottomNavigation",components:o.components,rawNavigations:o.rawNavigation}),g.jsx(jc,{confirmButton:{text:e("common.confirm"),props:{variant:"contained",color:"error"}},cancelButton:{text:e("common.cancel"),props:{color:"primary"}},open:_,title:e("navigation.action.delTabBarTitle"),onConfirm:()=>{T(!1),c(I.id),D.length>1?L>0?P(D[L-1]):P(D[L+1]):P(null)},onCancel:()=>{T(!1)},children:g.jsx("p",{children:e("navigation.action.delTabBarDesc")})})]})})}const u2={login:at,logout:at,switch:at,switchDid:at,switchProfile:at,switchPassport:at,useDid:()=>({walletDid:"abcdefghijklmnopqrstuvwxyz"}),useOAuth:()=>({logoutOAuth:at,bindOAuth:at,configs:{},switchOAuthPassport:at})},_r={header:"Header",footer:"Footer",bottom:"Footer Link",social:"Footer Social",dashboard:"Dashboard",sessionManager:"Session Blocklet",userCenter:"User Center",bottomNavigation:"Tab Bar"};function d2(){const{t:e}=ke(),{blocklet:t}=Bt(),r=v.useRef(null),{roles:n}=Wc(),i=Xr(I=>I.breakpoints.down("md")),o=ur({saveLoading:!1,resetLoading:!1,showResetConfirm:!1,mockRole:"owner"}),{state:a,navigation:l,getNavigation:s,saveNavigationList:c,resetNavigation:u,updateActiveSection:d,updateNavigationTree:f,updateNavigationItem:p,delNavigationItem:h,addNavigationItem:m}=Yc(),b=a.activeSection==="bottomNavigation",y=v.useCallback(I=>{r.current.add({parent:I},(P,L)=>{m(L),P()})},[m]),x=v.useCallback((I,P={})=>{switch(I){case"edit":r.current.edit(P,(L,N)=>{p(N),L()});break;case"toggle":p({id:P.id,visible:!P.visible});break;case"del":h(P.id);break}},[h,p]),_=v.useCallback(async()=>{try{o.saveLoading=!0,await c(a.rawNavigation),Tr.success(e("common.succeeded"))}catch(I){Tr.error(g.jsxs(te,{children:[g.jsx(ye,{variant:"subtitle2",children:e("navigation.actionFailed")}),g.jsx(ye,{variant:"body1",children:Ja(I)||I.error})]}))}finally{o.saveLoading=!1}},[a.rawNavigation,o,c,e]),T=v.useCallback(async()=>{try{o.resetLoading=!0,await u(a.activeSection),Tr.success(e("navigation.action.resetSuccessful"),{variant:"success"})}catch(I){Tr.error(g.jsxs(te,{children:[g.jsx(ye,{variant:"subtitle2",children:e("navigation.actionFailed")}),g.jsx(ye,{variant:"body1",children:Ja(I)||I.error})]}))}finally{o.resetLoading=!1}},[o,u,a.activeSection,e]),k=v.useMemo(()=>({session:{...u2,user:{did:t.appDid,fullName:"Preview User",role:o.mockRole,isPreviewUser:!0}}}),[t.appDid,o.mockRole]),C=s(a.activeSection),D=_e(()=>a.activeSection!=="bottomNavigation"?!1:C.length>=5,[a.activeSection,C.length]),w=g.jsxs(g.Fragment,{children:[g.jsx(Mr,{variant:"outlined",sx:{display:"flex",height:660,overflow:"hidden",bgcolor:"background.default"},children:g.jsx(Mr,{elevation:0,sx:{flex:1,overflow:"auto",bgcolor:"background.default"},children:g.jsx(Ld,{treeData:C,setTreeData:f,renderActions:({data:I,className:P})=>g.jsx($d,{data:I,className:P,section:a.activeSection,add:(...L)=>y(...L),del:(...L)=>x("del",...L),edit:(...L)=>x("edit",...L),toggle:(...L)=>x("toggle",...L)})})})}),g.jsxs(Qa,{variant:"dense",sx:{paddingLeft:"0px !important",paddingRight:"0px !important",mt:3},children:[g.jsx(ye,{variant:"h6",component:"div",sx:{flexGrow:1},children:e("common.preview")}),g.jsxs(Ic,{sx:{m:1,minWidth:120},size:"small",children:[g.jsx(Bh,{children:e("common.role")}),g.jsx(Xa,{value:o.mockRole,label:"Role",onChange:I=>{o.mockRole=I.target.value},children:n.map(I=>g.jsx(Za,{value:I.name,children:I.title},I.name))})]})]}),g.jsx(Mr,{variant:"outlined",children:g.jsx(Zn.Provider,{value:k,children:g.jsx(rS,{navigation:l})})})]}),R=g.jsx(c2,{});return g.jsxs(g.Fragment,{children:[i&&g.jsx(Xa,{fullWidth:!0,size:"small",value:a.activeSection,onChange:I=>d(I.target.value),children:Object.keys(_r).map(I=>g.jsxs(Za,{value:I,children:[_r[I],` (${s(I).length})`]}))}),!i&&g.jsx(vi,{variant:"outlined",children:Object.keys(_r).map(I=>g.jsxs(ir,{variant:a.activeSection===I?"contained":void 0,onClick:()=>d(I),children:[_r[I],` (${s(I).length})`]},I))}),g.jsxs(Qa,{variant:"dense",sx:{paddingLeft:"0px !important",paddingRight:"0px !important",mt:2},children:[g.jsx(ye,{variant:"h6",component:"div",sx:{flexGrow:1},children:e("common.config")}),g.jsx(vi,{variant:"outlined",children:g.jsx(nl,{size:"small",variant:"outlined",color:"error",startIcon:g.jsx(xe,{icon:"system-uicons:reset"}),sx:{mr:2},loading:o.resetLoading,loadingPosition:"start",onClick:()=>{o.showResetConfirm=!0},children:e("navigation.action.reset")})}),g.jsxs(vi,{variant:"outlined",children:[a.activeSection!=="bottomNavigation"&&g.jsx(ir,{size:"small",variant:"outlined",disabled:D,startIcon:g.jsx(xe,{icon:"mdi:plus"}),onClick:()=>y(),children:e("navigation.action.new")}),g.jsx(nl,{size:"small",variant:"contained",startIcon:g.jsx(xe,{icon:"mdi:content-save"}),loading:o.saveLoading,loadingPosition:"start",onClick:_,children:e("common.save")})]})]}),b?R:w,g.jsx(ma,{ref:r,section:a.activeSection,components:a.components,rawNavigations:a.rawNavigation}),g.jsx(jc,{confirmButton:{text:e("common.confirm"),props:{variant:"contained",color:"error"}},cancelButton:{text:e("common.cancel"),props:{color:"primary"}},open:o.showResetConfirm,title:e("navigation.action.restConfirmTitle",{section:_r[a.activeSection]}),onConfirm:async()=>{await T(),o.showResetConfirm=!1},onCancel:()=>{o.showResetConfirm=!1},children:g.jsx("p",{children:e("navigation.action.restConfirmDesc")})})]})}function a_(){return g.jsx(rv,{children:g.jsx(d2,{})})}export{a_ as default};