@abtnode/blocklet-services 1.16.39-beta-20250220-073620-4f1d9e2b → 1.16.39-beta-20250220-212222-627e9ea7

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 (164) hide show
  1. package/api/index.js +1 -1
  2. package/api/services/auth/index.js +1 -2
  3. package/api/services/dashboard/index.js +32 -48
  4. package/api/util/attach-shared-utils.js +11 -4
  5. package/dist/assets/{Add-DFSveMnk.js → Add-qzAc2S9X.js} +1 -1
  6. package/dist/assets/{ArrowDropDown-7bhybSNS.js → ArrowDropDown-CH-FgtE-.js} +1 -1
  7. package/dist/assets/{CheckCircle-v1VkHRMG.js → CheckCircle-Bk5vNiEj.js} +1 -1
  8. package/dist/assets/{ChevronLeft-DRxUR95x.js → ChevronLeft-CtdCxfvp.js} +1 -1
  9. package/dist/assets/{ChevronRight-i646QaQM.js → ChevronRight-C0FYeIUm.js} +1 -1
  10. package/dist/assets/{DeleteOutline-Bz_v29yL.js → DeleteOutline-DJPUGW0c.js} +1 -1
  11. package/dist/assets/{Done-DgXsjFiE.js → Done-BBJndopl.js} +1 -1
  12. package/dist/assets/{Download-B4jg-r_R.js → Download-DR7jogQn.js} +1 -1
  13. package/dist/assets/{Error-BmZqW6ED.js → Error-DtmzeQ7l.js} +1 -1
  14. package/dist/assets/{Google-DommwMxL.js → Google-DLwblvhu.js} +1 -1
  15. package/dist/assets/{InfoOutlined-O-yom1i3.js → InfoOutlined-D5FF63tH.js} +1 -1
  16. package/dist/assets/{Launch-DdeGpTqR.js → Launch-CmFwRERO.js} +1 -1
  17. package/dist/assets/{LaunchOutlined-CqCuGAlJ.js → LaunchOutlined-DBHgr88s.js} +1 -1
  18. package/dist/assets/{Loop-BLtclgGI.js → Loop-Bca4uFY8.js} +1 -1
  19. package/dist/assets/{MoreHoriz-ZQMFN5Xr.js → MoreHoriz-Dye919yY.js} +1 -1
  20. package/dist/assets/{PlayArrow-BwPeitOG.js → PlayArrow-C2iusqXD.js} +1 -1
  21. package/dist/assets/{ViewList-DXzyy-yJ.js → ViewList-DKhSCuMV.js} +1 -1
  22. package/dist/assets/{access-control-DyE6zHOK.js → access-control-B0LaD0k_.js} +1 -1
  23. package/dist/assets/{actions-CnBTZ7ol.js → actions-yv07Sweq.js} +1 -1
  24. package/dist/assets/{add-component-core-D7dzV3Qd.js → add-component-core-C2j8WeZe.js} +2 -2
  25. package/dist/assets/{add-resource-D05K6Dv6.js → add-resource-BqHzz2Ig.js} +1 -1
  26. package/dist/assets/addon-B-oiJMyb.js +31 -0
  27. package/dist/assets/{analytics-C8YyBJKc.js → analytics-Djm-FxYj.js} +1 -1
  28. package/dist/assets/{ar-cJwIGRaP.js → ar-BIivBIFd.js} +1 -1
  29. package/dist/assets/ar-COZYSjgL.js +3 -0
  30. package/dist/assets/{audit-logs-P3wQXAao.js → audit-logs-e69kZ-on.js} +1 -1
  31. package/dist/assets/{base32-CJh0eRRM.js → base32-CD3Vv-Tv.js} +1 -1
  32. package/dist/assets/{branding-Ncf_YrEF.js → branding-BxqW8Sc9.js} +2 -2
  33. package/dist/assets/{bundle-avatar-CWErnWDS.js → bundle-avatar-BHE5y99P.js} +1 -1
  34. package/dist/assets/{button-D8dCYKMu.js → button-DYvqAiv_.js} +1 -1
  35. package/dist/assets/{click-to-copy-U6qR4HAG.js → click-to-copy-Do3l3xtT.js} +1 -1
  36. package/dist/assets/complete-BHA60Kfa.js +45 -0
  37. package/dist/assets/{component-CVXkLilJ.js → component-CkH8Sb15.js} +1 -1
  38. package/dist/assets/config-CGVl3CyQ.js +32 -0
  39. package/dist/assets/{config-CEnHCyaW.js → config-CZ4gUB4m.js} +1 -1
  40. package/dist/assets/{config-navigation-7bbsR1c5.js → config-navigation-B_PVAliu.js} +3 -3
  41. package/dist/assets/{config-space-DWTUkGA7.js → config-space-Cjs4lh6z.js} +1 -1
  42. package/dist/assets/{confirm-R-3mjfrE.js → confirm-HOW8FaxK.js} +1 -1
  43. package/dist/assets/{connect-DeAQgH0y.js → connect--Oy8GGMA.js} +1 -1
  44. package/dist/assets/{connect-D99JO5F1.js → connect-D4PAe19d.js} +1 -1
  45. package/dist/assets/{connect-to-B_177EMY.js → connect-to-aA5MeDcj.js} +1 -1
  46. package/dist/assets/{dashboard-DvxSnwfd.js → dashboard-CiOynIcf.js} +3 -3
  47. package/dist/assets/de-C2zBBjYP.js +3 -0
  48. package/dist/assets/{de-CwhZYhES.js → de-CQlYxUo4.js} +1 -1
  49. package/dist/assets/{delete-confirm-CO-OBmsy.js → delete-confirm-CsLJksmh.js} +1 -1
  50. package/dist/assets/{did-address-Cg3bCLTF.js → did-address-5heyoc8D.js} +1 -1
  51. package/dist/assets/domain-DH9NJU3V.js +9 -0
  52. package/dist/assets/domain-action-card-COoKhuua.js +15 -0
  53. package/dist/assets/domains-CyoWnOlx.js +1 -0
  54. package/dist/assets/{email-DubyyWP-.js → email-kdvuQq1P.js} +1 -1
  55. package/dist/assets/es-BeW3ehjv.js +3 -0
  56. package/dist/assets/{es-Cw5ZN2jL.js → es-CiFVrJLk.js} +1 -1
  57. package/dist/assets/{exchange-passport-C0_ELMge.js → exchange-passport-DC5cSNtB.js} +1 -1
  58. package/dist/assets/{form-text-input-DXbUuC1I.js → form-text-input-Vg6k4hxG.js} +1 -1
  59. package/dist/assets/{fr-au5rpiTp.js → fr-ByVHFXxu.js} +1 -1
  60. package/dist/assets/fr-D2xyGusB.js +3 -0
  61. package/dist/assets/{fuel-DJOYYGMp.js → fuel-BtUPmbM2.js} +1 -1
  62. package/dist/assets/{fullpage-D4VuPAFa.js → fullpage-9ClXH1L9.js} +1 -1
  63. package/dist/assets/{get-safe-url-D9gDTOPT.js → get-safe-url-BRR4RLgg.js} +1 -1
  64. package/dist/assets/{get-safe-url-DQLIWkQo.js → get-safe-url-bdLdP6Lf.js} +1 -1
  65. package/dist/assets/{hi-DBPvM90p.js → hi-BIS_6XAM.js} +1 -1
  66. package/dist/assets/hi-OH9OAZfb.js +1 -0
  67. package/dist/assets/{home-dxFc3wRZ.js → home-DERpglCy.js} +1 -1
  68. package/dist/assets/{id-CmJlzYVA.js → id-BK78HolG.js} +1 -1
  69. package/dist/assets/id-BNCctHPN.js +3 -0
  70. package/dist/assets/{iframe-6gS_ODJa.js → iframe-D3k1dg5d.js} +1 -1
  71. package/dist/assets/{index-Cx-u2b1r.js → index-8p3WpvMR.js} +1 -1
  72. package/dist/assets/{index-CbY5jzJ1.js → index-B0unYdcz.js} +1 -1
  73. package/dist/assets/{index-jjJ9S0nm.js → index-B3zo8s95.js} +1 -1
  74. package/dist/assets/{index-oxDvnRnk.js → index-BQSYz_Lo.js} +1 -1
  75. package/dist/assets/{index-jkazPG2A.js → index-BbnozP7b.js} +1 -1
  76. package/dist/assets/index-BelkkFch.js +228 -0
  77. package/dist/assets/{index-BdfFmrlk.js → index-BtWvJbA-.js} +3 -3
  78. package/dist/assets/{index-g5Holpv4.js → index-BwEZdySL.js} +1 -1
  79. package/dist/assets/{index-C3vLeBLv.js → index-Bygo8biQ.js} +1 -1
  80. package/dist/assets/{index-BkvRoX7I.js → index-CR0qrcky.js} +1 -1
  81. package/dist/assets/{index-PMG7ikk5.js → index-CfM3rPHl.js} +1 -1
  82. package/dist/assets/{index-XGnyowjM.js → index-DV2omMe2.js} +1 -1
  83. package/dist/assets/{index-T6-QS5Qh.js → index-H3wqK9-u.js} +1 -1
  84. package/dist/assets/{index-CPQbFQvu.js → index-XiSmd1mo.js} +1 -1
  85. package/dist/assets/{index-B7_xeF0z.js → index-dZzRZ2ZY.js} +38 -38
  86. package/dist/assets/{invitation-CRTc-7F5.js → invitation-CxmBuTs1.js} +1 -1
  87. package/dist/assets/{invite-BpFDZ5-a.js → invite-B874TDmG.js} +1 -1
  88. package/dist/assets/{issue-passport-fnOu8MGg.js → issue-passport-D9TAuz7P.js} +1 -1
  89. package/dist/assets/{item-C5q00bCP.js → item-Bl6VQtAH.js} +1 -1
  90. package/dist/assets/ja-BP7svMm3.js +3 -0
  91. package/dist/assets/{ja-DqY-EkRB.js → ja-C_qbKn0g.js} +1 -1
  92. package/dist/assets/ko-Bucx3EaX.js +3 -0
  93. package/dist/assets/{ko-CZIpaPXf.js → ko-Dlp9c2u9.js} +1 -1
  94. package/dist/assets/{layout-DztchTRR.js → layout--JdBWkq8.js} +1 -1
  95. package/dist/assets/{list-CM99uwf8.js → list-D6KYwBs8.js} +1 -1
  96. package/dist/assets/{list-header-Bvl4MqSl.js → list-header-CRB0LxnL.js} +1 -1
  97. package/dist/assets/{localization-Ddv2MmrZ.js → localization-CfyOuYf8.js} +1 -1
  98. package/dist/assets/{log-BJ_7gOwg.js → log-CY8wNU8M.js} +1 -1
  99. package/dist/assets/{login-Bkg5cKeY.js → login-B248a-js.js} +1 -1
  100. package/dist/assets/{login-oauth-callback-5wm53L-h.js → login-oauth-callback-BLrbomPI.js} +1 -1
  101. package/dist/assets/{logo-uploader-BDepocdq.js → logo-uploader-CXyCerZA.js} +3 -3
  102. package/dist/assets/{lost-passport-DPzX8lrb.js → lost-passport-BviMxb1A.js} +1 -1
  103. package/dist/assets/{open-window-DhCTV7Bc.js → open-window-Ch1rgFaC.js} +1 -1
  104. package/dist/assets/{overview-VqjuJhSH.js → overview-B6x2PVnm.js} +1 -1
  105. package/dist/assets/{page-header-BltW3zCL.js → page-header-BVxfqM_P.js} +1 -1
  106. package/dist/assets/{permission-BlstaDqI.js → permission-Ct9GXCMW.js} +1 -1
  107. package/dist/assets/{preferences-DXoyvj-J.js → preferences-BhZaRM6Y.js} +1 -1
  108. package/dist/assets/pt-DWx2CRwy.js +1 -0
  109. package/dist/assets/{pt-D8E5L8AA.js → pt-SFZ6JUYf.js} +1 -1
  110. package/dist/assets/publish-resource-DcoLPJys.js +1 -0
  111. package/dist/assets/{react-beautiful-dnd.esm-C4CQz9M9.js → react-beautiful-dnd.esm-Bj96SiFV.js} +1 -1
  112. package/dist/assets/{relative-time-D6fIGce1.js → relative-time-cY8dsU43.js} +1 -1
  113. package/dist/assets/{ru-D3jVM1bn.js → ru-Bz5lOwmE.js} +1 -1
  114. package/dist/assets/ru-CCmcxEDp.js +1 -0
  115. package/dist/assets/sdk-DQoMrTNt.js +1 -0
  116. package/dist/assets/{session-BwIJ2AMz.js → session-CldqrK3N.js} +1 -1
  117. package/dist/assets/{setup-XOZiTiWW.js → setup-AfPc0iVj.js} +4 -4
  118. package/dist/assets/{start-DqBWR6sD.js → start-D-vJAX65.js} +1 -1
  119. package/dist/assets/{step-actions-B0Ln8Y3M.js → step-actions-EEz4d7kn.js} +1 -1
  120. package/dist/assets/{studio-D2tmKoYZ.js → studio-BfuxFzVZ.js} +1 -1
  121. package/dist/assets/{switch-control-DUPDUbJY.js → switch-control-DkVbfEAf.js} +1 -1
  122. package/dist/assets/{th-PmtZzBF0.js → th-B1jLPjfm.js} +1 -1
  123. package/dist/assets/th-yhtyMUEz.js +1 -0
  124. package/dist/assets/{traffic-CtRInz6z.js → traffic-DIdLhQbQ.js} +1 -1
  125. package/dist/assets/{transfer-CFQNTYY4.js → transfer-CSUEJJtc.js} +1 -1
  126. package/dist/assets/{unsubscribe-CucwJ1I1.js → unsubscribe-Dma6eGwK.js} +1 -1
  127. package/dist/assets/{useLocalStorage-DyOKhTaE.js → useLocalStorage-CM7gP1Ni.js} +1 -1
  128. package/dist/assets/{user-center-ByJfst4h.js → user-center-BkMU0Sgl.js} +1 -1
  129. package/dist/assets/{util-lWapOC8r.js → util-C5G3YrVZ.js} +1 -1
  130. package/dist/assets/{util-BpyQ3K0Z.js → util-Dn2l5LdV.js} +1 -1
  131. package/dist/assets/{vendor-arcblock-EnQG-qe7.js → vendor-arcblock-CLdpcBR_.js} +68 -68
  132. package/dist/assets/{vi-I3mwa-6h.js → vi-C8K3TxgS.js} +1 -1
  133. package/dist/assets/{vi-mGKYGc30.js → vi-RXH5xiEz.js} +1 -1
  134. package/dist/assets/wrap-locale-fZXg9Dsd.js +1 -0
  135. package/dist/assets/zh-BZ_tPxRT.js +4 -0
  136. package/dist/assets/{zh-wUbdzdUJ.js → zh-NJ5wkDCG.js} +1 -1
  137. package/dist/assets/{zh-tw-Bq7yIqtg.js → zh-tw-BpuS6s2j.js} +1 -1
  138. package/dist/assets/zh-tw-DKnxL7q7.js +3 -0
  139. package/dist/index.html +2 -2
  140. package/dist/service-worker.js +1 -1
  141. package/package.json +32 -32
  142. package/dist/assets/addon-CgdcWRru.js +0 -31
  143. package/dist/assets/ar-CEnzg81O.js +0 -3
  144. package/dist/assets/complete-CWreL5lV.js +0 -45
  145. package/dist/assets/config-BursEDKY.js +0 -32
  146. package/dist/assets/de-nDH0KZYC.js +0 -3
  147. package/dist/assets/domain-DjAqr47g.js +0 -9
  148. package/dist/assets/domain-action-card-CtYAFJMQ.js +0 -15
  149. package/dist/assets/domains-BAkyeUtK.js +0 -1
  150. package/dist/assets/es-NUrGcplI.js +0 -3
  151. package/dist/assets/fr-8uzI0ztX.js +0 -3
  152. package/dist/assets/hi-DsL0Qpdc.js +0 -1
  153. package/dist/assets/id-BbsIe6fu.js +0 -3
  154. package/dist/assets/index-ClijH1KU.js +0 -228
  155. package/dist/assets/ja-bjSIThln.js +0 -3
  156. package/dist/assets/ko-BjX8mQKL.js +0 -3
  157. package/dist/assets/pt-FXpLOB0Y.js +0 -1
  158. package/dist/assets/publish-resource-4NNLT144.js +0 -1
  159. package/dist/assets/ru-BnGih0Ix.js +0 -1
  160. package/dist/assets/sdk-9YRmE3Kk.js +0 -1
  161. package/dist/assets/th-C1ZTykFq.js +0 -1
  162. package/dist/assets/wrap-locale-DUxawgkX.js +0 -1
  163. package/dist/assets/zh-DB42-Qer.js +0 -4
  164. package/dist/assets/zh-tw-9ERTu6uD.js +0 -3
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-BdfFmrlk.js","assets/vendor-arcblock-EnQG-qe7.js","assets/vendor-react-D-afvo_7.js","assets/vendor-utils-5TjOM6td.js","assets/vendor-mui-core-DrGFkjqr.js","assets/vendor-hooks-ZnvK17j8.js","assets/vendor-arcblock-DhgPdlEj.css","assets/index-C2fPoxDR.js","assets/index-B7_xeF0z.js","assets/index-DoZ2YM4T.js","assets/index-AgKpYdvC.css"])))=>i.map(i=>d[i]);
2
- import{_ as Se}from"./index-B7_xeF0z.js";import{a1 as Ie,j as e,ac as z,T as P,a3 as m,aM as Pe,a4 as re,I as F,D as ue,E as w,ab as Re,r as ke,bK as Ee,K as oe,y as _e,x as $,aa as Oe}from"./vendor-mui-core-DrGFkjqr.js";import{a0 as De,e as Le,ap as Ve,b as L}from"./vendor-arcblock-EnQG-qe7.js";import{E as M,D as ie,C as se,P as ne}from"./react-beautiful-dnd.esm-C4CQz9M9.js";import{d as ae}from"./DeleteOutline-Bz_v29yL.js";import{o as Te,f as $e}from"./vendor-hooks-ZnvK17j8.js";import{r as h}from"./vendor-react-D-afvo_7.js";import{S as K}from"./studio-D2tmKoYZ.js";import"./vendor-utils-5TjOM6td.js";import"./raf-schd.esm-Cxhj8umC.js";var C={};Object.defineProperty(C,"__esModule",{value:!0});C.getVideoId=V;var Ue=C.getEmbedUrl=ze,We=C.getVideoCoverUrl=Fe,Ae=C.getVideoCheckUrl=Ne;C.getYoutubeId=pe;C.getVimeoId=he;C.isVideoUrl=qe;function pe(r){var s,l,i;const t=r.trim();return t.includes("youtu.be/")?(s=t.split("youtu.be/")[1])==null?void 0:s.split("?")[0]:t.includes("/embed/")?(l=t.split("/embed/")[1])==null?void 0:l.split("?")[0]:t.includes("youtube.com/watch")?new URL(t).searchParams.get("v"):t.includes("youtube.com/shorts/")?(i=t.split("/shorts/")[1])==null?void 0:i.split("?")[0]:""}function he(r){var s,l,i,a,u,y,g;const t=r.trim();return t.includes("/embed/")?(s=t.split("/embed/")[1])==null?void 0:s.split("?")[0]:t.includes("vimeo.com/video/")?(l=t.split("/video/")[1])==null?void 0:l.split("?")[0]:t.includes("vimeo.com/channels/")?(a=(i=t.split("/channels/")[1])==null?void 0:i.split("/")[1])==null?void 0:a.split("?")[0]:t.includes("vimeo.com/groups/")?(y=(u=t.split("/groups/")[1])==null?void 0:u.split("/")[1])==null?void 0:y.split("?")[0]:t.includes("vimeo.com/")?(g=t.split("vimeo.com/")[1])==null?void 0:g.split("?")[0]:""}const U={};function V(r){const t=r.trim();return!t||!/^https?:\/\/.+\..+/.test(t)?[]:(U[t]||(U[t]=(()=>{const s=new URL(t);return s.host.includes("youtube.com")||s.host.includes("youtu.be")?[pe(t),"youtube"]:s.host.includes("vimeo.com")?[he(t),"vimeo"]:[]})()),U[t])}const k={};function ze(r,{modestbranding:t=1,controls:s=0,autoplay:l=0}={}){const i=r.trim();if(!i)return"";if(k[i]!==void 0)return k[i];const[a,u]=V(i);return u==="youtube"?k[i]=`https://www.youtube.com/embed/${a}?modestbranding=${t}&controls=${s}&autoplay=${l}`:u==="vimeo"?k[i]=`https://player.vimeo.com/video/${a}?autoplay=${l}`:k[i]="",k[i]}const E={};function Fe(r){const t=r.trim();if(!t)return"";if(E[t]!==void 0)return E[t];const[s,l]=V(t);return l==="youtube"?E[t]=`https://img.youtube.com/vi/${s}/mqdefault.jpg`:l==="vimeo"?E[t]=`https://i.vimeocdn.com/${s}/1000x563`:E[t]="",E[t]}function Ne(r){const t=r.trim();if(!t)return"";const[s,l]=V(t);return l==="youtube"?`https://www.youtube.com/oembed?url=https://www.youtube.com/watch?v=${s}&format=json`:l==="vimeo"?`https://vimeo.com/api/oembed.json?url=https://vimeo.com/${s}`:""}function qe(r){const t=r.trim();return V(t).length>0}var X={},He=Ie;Object.defineProperty(X,"__esModule",{value:!0});var me=X.default=void 0,Be=He(De()),Ke=e;me=X.default=(0,Be.default)((0,Ke.jsx)("path",{d:"M19 2h-4.18C14.4.84 13.3 0 12 0c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m7 18H5V4h2v3h10V4h2z"}),"ContentPaste");const le=h.lazy(()=>Se(()=>import("./index-BdfFmrlk.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10])).then(r=>({default:r.Uploader}))),Me=`${L.WELLKNOWN_SERVICE_PATH_PREFIX}/api/studio/logo/upload`,Xe=`${L.WELLKNOWN_SERVICE_PATH_PREFIX}/api/studio/screenshots/upload`,Ye=`${L.WELLKNOWN_SERVICE_PATH_PREFIX}/api/studio/logo`,W=`${L.WELLKNOWN_SERVICE_PATH_PREFIX}/api/studio/screenshots`,Je=`${L.WELLKNOWN_SERVICE_PATH_PREFIX}/api/studio/videos`,ce=5,de=3;function lt(){var ee;const{t:r,locale:t}=Le(),[s,l]=h.useState(!1),[i,a]=h.useState(!1),[u,y]=h.useState([]),[g,j]=h.useState([]),[x,S]=h.useState(""),[T,_]=h.useState(""),[N,q]=h.useState(Date.now()),p=Te(async()=>{var c;const n=await(await fetch(W)).json();return y(n.screenshots||[]),j(((c=n.videos)==null?void 0:c.filter(d=>!!d))||[]),n}),R=h.useRef(null),f=h.useRef(null);if(p.loading&&!p.data)return e.jsx(K,{children:e.jsx(M,{size:40})});if(p.error)return e.jsx(K,{children:e.jsx(z,{direction:"column",spacing:1,sx:{mb:3},children:e.jsx(P,{color:"error.main",sx:{fontWeight:"bold"},children:p.error.message})})});const v=async o=>{const n=o.filter(c=>!!c);j(n),await fetch(Je,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({videos:n})})},H=async o=>{const n=Array.from(g),[c]=n.splice(o.source.index,1);n.splice(o.destination.index,0,c),await v(n)},ge=async o=>{const n=Array.from(u),[c]=n.splice(o.source.index,1);n.splice(o.destination.index,0,c),y(n),await fetch(`${W}/reorder`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({screenshots:n})})},J=async o=>{o.destination&&(o.source.droppableId==="screenshots"?await ge(o):o.source.droppableId==="videos"&&await H(o),p.runAsync())},Z=o=>{_(o.trim()),a(!0)},G=async(o,n="")=>{let c=[];n?c=o?g.map(d=>d===n?o.trim():d):g.filter(d=>d!==n):o&&(c=[...g,o.trim()]),_(""),a(!1),(o||n)&&await v(c),p.runAsync()},xe=o=>{l(!0),S(o)},Q=()=>{l(!1),S("")};function be(){const o=[{label:r("studio.type"),value:"png, jpg, webp, svg"},{label:r("studio.ratio"),value:"256x256"},{label:r("studio.size"),value:"<500KB"}],n=[{label:r("studio.tip"),value:r("studio.change")}];return e.jsx(A,{title:r("common.logo"),rules:o,tips:n,children:e.jsx(m,{sx:{flex:1,cursor:"pointer"},children:e.jsx(Pe,{variant:"square",sx:{width:128,height:128},alt:"Blocklet Logo",src:`${Ye}?t=${N}`,onClick:()=>{var c;return(c=R.current)==null?void 0:c.open()}})})})}function ve(){const o=[{label:r("studio.ratio"),value:"16 / 9"},{label:r("studio.count"),value:`1~${ce}`},{label:r("studio.size"),value:"<5MB"}],n=[{label:r("studio.tip"),value:r("studio.orderTipLong")}];return e.jsx(A,{title:r("common.screenshot"),tips:n,rules:o,children:e.jsx(ie,{onDragEnd:J,children:e.jsx(se,{droppableId:"screenshots",direction:"horizontal",children:(d,O)=>e.jsxs(m,{display:"flex",alignItems:"center",sx:{flex:1,mt:1,flexWrap:"wrap",minHeight:225,background:O.isDraggingOver?"#f5f5f5":"transparent",transition:"background-color 0.2s ease",border:O.isDraggingOver?"2px dashed #999":"none",borderRadius:"4px"},ref:d.innerRef,...d.droppableProps,children:[u.map((b,B)=>e.jsx(ne,{draggableId:b,index:B,children:(I,D)=>{const te=`${W}/${b}`;return e.jsxs(m,{ref:I.innerRef,...I.draggableProps,...I.dragHandleProps,className:"image-wrapper",sx:{transform:D.isDragging?"scale(1.05)":"none",boxShadow:D.isDragging?"0 5px 10px rgba(0,0,0,0.15)":"none",transition:"transform 0.2s ease, box-shadow 0.2s ease"},children:[e.jsx("img",{alt:"screenshot",src:te,onClick:()=>xe(b),style:{cursor:"pointer"}}),e.jsx(re,{title:r("studio.deleteTooltip"),children:e.jsx(F,{className:"action",style:{top:10,color:"white",background:"red"},onClick:async()=>{await fetch(te,{method:"DELETE"}),p.runAsync()},children:e.jsx(ae,{})})})]})}},b)),d.placeholder,u.length<ce&&c()]})})})});function c(){return e.jsx(m,{display:"flex",justifyContent:"center",alignItems:"center",mb:2,width:400,height:225,fontSize:40,sx:{background:"#eee",cursor:"pointer",color:"#999"},onClick:()=>{var d;return(d=f.current)==null?void 0:d.open()},children:"+"})}}function je(){const o=[{label:r("studio.count"),value:`1~${de}`},{label:r("studio.videoType"),value:e.jsxs(e.Fragment,{children:[e.jsx("a",{href:"https://www.youtube.com/",target:"_blank",rel:"noreferrer",children:"Youtube"}),","," ",e.jsx("a",{href:"https://vimeo.com/",target:"_blank",rel:"noreferrer",children:"Vimeo"})]})}],n=[{label:`${r("studio.tip")}`,value:r("studio.videoTipLong")}];return e.jsxs(A,{title:r("studio.video"),tips:n,rules:o,children:[e.jsx(ie,{onDragEnd:J,children:e.jsx(se,{droppableId:"videos",direction:"horizontal",children:(d,O)=>e.jsxs(m,{display:"flex",alignItems:"center",sx:{flex:1,mt:1,flexWrap:"wrap",minHeight:225,background:O.isDraggingOver?"#f5f5f5":"transparent",transition:"background-color 0.2s ease",border:O.isDraggingOver?"2px dashed #999":"none",borderRadius:"4px"},ref:d.innerRef,...d.droppableProps,children:[g.map((b,B)=>e.jsx(ne,{draggableId:b,index:B,children:(I,D)=>e.jsxs(m,{ref:I.innerRef,...I.draggableProps,...I.dragHandleProps,className:"image-wrapper",sx:{transform:D.isDragging?"scale(1.05)":"none",boxShadow:D.isDragging?"0 5px 10px rgba(0,0,0,0.15)":"none",transition:"transform 0.2s ease, box-shadow 0.2s ease"},children:[e.jsx("img",{alt:"videos",src:We(b),onClick:()=>Z(b),style:{cursor:"pointer"}}),e.jsx(m,{sx:{position:"absolute",cursor:"pointer",fontSize:"3rem"},onClick:()=>Z(b),children:e.jsx(fe,{})}),e.jsx(re,{title:r("studio.deleteTooltip"),children:e.jsx(F,{className:"action",style:{top:10,color:"white",background:"red"},onClick:()=>G(null,b),children:e.jsx(ae,{})})})]})},b)),d.placeholder,g.length<de&&c()]})})}),i&&e.jsx(Y,{t:r,handleOperateVideo:G,defaultUrl:T,videos:g})]});function c(){return e.jsx(m,{display:"flex",justifyContent:"center",alignItems:"center",mb:2,width:400,height:225,fontSize:40,sx:{background:"#eee",cursor:"pointer",color:"#999"},onClick:()=>a(!0),children:"+"})}}function ye(){return e.jsx(ue,{open:s,onClose:Q,maxWidth:"xl",PaperProps:{style:{backgroundColor:"transparent",boxShadow:"none"}},children:e.jsx("img",{src:`${W}/${x}`,alt:"Screenshot Full",style:{maxWidth:"90vw",maxHeight:"90vh",objectFit:"contain"},onClick:Q})})}function we(){return e.jsxs(h.Suspense,{fallback:e.jsx(M,{size:40}),children:[e.jsx(le,{ref:R,locale:t,popup:!0,onUploadFinish:()=>{var o;(o=R.current)==null||o.close(),q(Date.now()),p.runAsync()},plugins:["ImageEditor"],installerProps:{disabled:!0},apiPathProps:{uploader:Me,disableMediaKitPrefix:!0,disableMediaKitStatus:!0},coreProps:{restrictions:{allowedFileTypes:["image/png","image/jpeg","image/webp","image/svg+xml"],maxFileSize:1024*1024*.5,maxNumberOfFiles:1}},dashboardProps:{autoOpen:"imageEditor"},imageEditorProps:{actions:{revert:!0,rotate:!0,granularRotate:!0,flip:!0,zoomIn:!0,zoomOut:!0,cropSquare:!1,cropWidescreen:!1,cropWidescreenVertical:!1},cropperOptions:{autoCrop:!0,aspectRatio:1,initialAspectRatio:1,autoCropArea:1,croppedCanvasOptions:{minWidth:256,minHeight:256}}}},"uploader-logo"),e.jsx(le,{ref:f,popup:!0,onUploadFinish:()=>{var o;(o=f.current)==null||o.close(),p.runAsync()},installerProps:{disabled:!0},plugins:["ImageEditor"],apiPathProps:{uploader:Xe,disableMediaKitPrefix:!0,disableMediaKitStatus:!0},coreProps:{restrictions:{allowedFileTypes:["image/*","application/svg+xml"],maxFileSize:1024*1024*5,maxNumberOfFiles:5-u.length}},dashboardProps:{autoOpen:"imageEditor"},imageEditorProps:{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:16/9,initialAspectRatio:16/9,croppedCanvasOptions:{minWidth:1280,minHeight:720,maxWidth:1280*2,maxHeight:720*2}}}},"uploader-screenshot")]})}const Ce=`https://www.arcblock.io/docs/blocklet-store/${t}/supplying-images`;return e.jsx(K,{children:e.jsxs(Ze,{children:[e.jsxs(z,{direction:"column",spacing:1,sx:{mb:3},children:[e.jsx(P,{variant:"h5",sx:{fontWeight:"bold"},children:r("studio.title",{title:(ee=p.data)==null?void 0:ee.title})}),e.jsxs(P,{variant:"body2",color:"text.secondary",children:[r("studio.description")," ",e.jsx("a",{href:Ce,target:"_blank",rel:"noreferrer",children:r("studio.documentation")})]})]}),be(),ve(),je(),ye(),we()]})})}function A({title:r,rules:t,tips:s,children:l}){return e.jsxs(m,{display:"flex",flexDirection:"column",sx:{mb:4},children:[e.jsxs(z,{direction:"column",spacing:1,sx:{mb:2},children:[e.jsx(P,{variant:"h6",sx:{fontWeight:"bold"},children:r}),e.jsx(z,{direction:"row",spacing:2,sx:{fontSize:"13px",opacity:.8},children:t.map(a=>i(a.label,a.value))}),s.map(a=>e.jsx(m,{sx:{fontSize:"13px",opacity:.8},children:i(a.label,a.value)}))]}),l]});function i(a,u){return e.jsxs(m,{component:"span",children:[e.jsxs(m,{component:"span",sx:{color:"#555",mr:.5},children:[a,":"]}),e.jsx(m,{component:"span",sx:{color:"#007ec6"},children:u})]})}}A.propTypes={title:w.string.isRequired,rules:w.array.isRequired,tips:w.array.isRequired,children:w.node.isRequired};function Y({handleOperateVideo:r,t,defaultUrl:s="",videos:l}){var R;const[i,a]=h.useState(s),[u,y]=h.useState(!1),[g,j]=h.useState(!1),x=h.useRef(i),S=i!==s&&l.includes(i),T=!i&&s,_=!S&&(i&&i!==x.current||u),N=!!((R=navigator.clipboard)!=null&&R.readText),{run:q}=$e(p,{wait:500,leading:!0});return e.jsxs(ue,{open:!0,fullWidth:!0,maxWidth:"sm",children:[e.jsx(Re,{children:t(s?"studio.videoDialogEditTitle":"studio.videoDialogTitle")}),e.jsxs(ke,{children:[e.jsx(Ee,{fullWidth:!0,value:i,onChange:f=>{const v=f.target.value.trim();a(v),v?q(v):j(!1)},placeholder:t("studio.videoInputLabel"),endAdornment:i?e.jsx(oe,{position:"end",children:e.jsx(F,{onClick:()=>{a(""),p("")},children:e.jsx(Ve,{})})}):N&&e.jsx(oe,{position:"end",children:e.jsx(F,{onClick:async()=>{try{const f=(await navigator.clipboard.readText()||"").trim();a(f),p(f)}catch(f){console.error(f)}},children:e.jsx(me,{})})})}),e.jsxs(m,{mb:2,mt:.5,children:[S&&e.jsx(P,{variant:"body2",color:"error",children:t("studio.duplicateVideo")}),!S&&g&&e.jsx(P,{variant:"body2",color:"error",children:t("studio.videoDialogNoSrc")})]}),x.current?e.jsx("iframe",{width:"100%",height:"315",title:`video-${x.current}`,src:Ue(x.current),allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,border:"1px solid #eee"}):e.jsx(m,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:315,width:"100%",border:"1px solid #eee"},children:u?e.jsx(M,{size:40}):e.jsx(P,{variant:"h5",color:"text.secondary",children:e.jsx(fe,{})})})]}),e.jsxs(_e,{children:[e.jsx($,{onClick:()=>r(),children:t("studio.cancel")}),T&&e.jsx($,{variant:"contained",color:"error",onClick:()=>r(null,s),children:t("studio.delete")}),_&&e.jsx($,{variant:"contained",onClick:()=>p(i),disabled:!i||u,children:t("studio.preview")}),!T&&!_&&e.jsx($,{variant:"contained",onClick:()=>r(x.current),disabled:!x.current||s===x.current||S,children:t("studio.confirm")})]})]});function p(f){x.current="";const v=Ae(f);j(f?!v:!1),v&&(y(!0),fetch(v).then(H=>{H.ok?(x.current=f,j(!1)):j(!0)}).catch(()=>{j(!0)}).finally(()=>y(!1)))}}Y.propTypes={handleOperateVideo:w.func.isRequired,t:w.func.isRequired,defaultUrl:w.string,videos:w.array.isRequired};Y.defaultProps={defaultUrl:""};function fe(){return e.jsxs("svg",{viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:48,width:48,children:[e.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M28 56C43.464 56 56 43.464 56 28C56 12.536 43.464 0 28 0C12.536 0 0 12.536 0 28C0 43.464 12.536 56 28 56Z",fill:"black","fill-opacity":"0.54"}),e.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M39.6667 28L21 17.5V38.5L39.6667 28Z",fill:"white"})]})}const Ze=Oe.div`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-BtWvJbA-.js","assets/vendor-arcblock-CLdpcBR_.js","assets/vendor-react-D-afvo_7.js","assets/vendor-utils-5TjOM6td.js","assets/vendor-mui-core-DrGFkjqr.js","assets/vendor-hooks-ZnvK17j8.js","assets/vendor-arcblock-DhgPdlEj.css","assets/index-C2fPoxDR.js","assets/index-dZzRZ2ZY.js","assets/index-DoZ2YM4T.js","assets/index-AgKpYdvC.css"])))=>i.map(i=>d[i]);
2
+ import{_ as Se}from"./index-dZzRZ2ZY.js";import{a1 as Ie,j as e,ac as z,T as P,a3 as m,aM as Pe,a4 as re,I as F,D as ue,E as w,ab as Re,r as ke,bK as Ee,K as oe,y as _e,x as $,aa as Oe}from"./vendor-mui-core-DrGFkjqr.js";import{a0 as De,e as Le,ap as Ve,b as L}from"./vendor-arcblock-CLdpcBR_.js";import{E as M,D as ie,C as se,P as ne}from"./react-beautiful-dnd.esm-Bj96SiFV.js";import{d as ae}from"./DeleteOutline-DJPUGW0c.js";import{o as Te,f as $e}from"./vendor-hooks-ZnvK17j8.js";import{r as h}from"./vendor-react-D-afvo_7.js";import{S as K}from"./studio-BfuxFzVZ.js";import"./vendor-utils-5TjOM6td.js";import"./raf-schd.esm-Cxhj8umC.js";var C={};Object.defineProperty(C,"__esModule",{value:!0});C.getVideoId=V;var Ue=C.getEmbedUrl=ze,We=C.getVideoCoverUrl=Fe,Ae=C.getVideoCheckUrl=Ne;C.getYoutubeId=pe;C.getVimeoId=he;C.isVideoUrl=qe;function pe(r){var s,l,i;const t=r.trim();return t.includes("youtu.be/")?(s=t.split("youtu.be/")[1])==null?void 0:s.split("?")[0]:t.includes("/embed/")?(l=t.split("/embed/")[1])==null?void 0:l.split("?")[0]:t.includes("youtube.com/watch")?new URL(t).searchParams.get("v"):t.includes("youtube.com/shorts/")?(i=t.split("/shorts/")[1])==null?void 0:i.split("?")[0]:""}function he(r){var s,l,i,a,u,y,g;const t=r.trim();return t.includes("/embed/")?(s=t.split("/embed/")[1])==null?void 0:s.split("?")[0]:t.includes("vimeo.com/video/")?(l=t.split("/video/")[1])==null?void 0:l.split("?")[0]:t.includes("vimeo.com/channels/")?(a=(i=t.split("/channels/")[1])==null?void 0:i.split("/")[1])==null?void 0:a.split("?")[0]:t.includes("vimeo.com/groups/")?(y=(u=t.split("/groups/")[1])==null?void 0:u.split("/")[1])==null?void 0:y.split("?")[0]:t.includes("vimeo.com/")?(g=t.split("vimeo.com/")[1])==null?void 0:g.split("?")[0]:""}const U={};function V(r){const t=r.trim();return!t||!/^https?:\/\/.+\..+/.test(t)?[]:(U[t]||(U[t]=(()=>{const s=new URL(t);return s.host.includes("youtube.com")||s.host.includes("youtu.be")?[pe(t),"youtube"]:s.host.includes("vimeo.com")?[he(t),"vimeo"]:[]})()),U[t])}const k={};function ze(r,{modestbranding:t=1,controls:s=0,autoplay:l=0}={}){const i=r.trim();if(!i)return"";if(k[i]!==void 0)return k[i];const[a,u]=V(i);return u==="youtube"?k[i]=`https://www.youtube.com/embed/${a}?modestbranding=${t}&controls=${s}&autoplay=${l}`:u==="vimeo"?k[i]=`https://player.vimeo.com/video/${a}?autoplay=${l}`:k[i]="",k[i]}const E={};function Fe(r){const t=r.trim();if(!t)return"";if(E[t]!==void 0)return E[t];const[s,l]=V(t);return l==="youtube"?E[t]=`https://img.youtube.com/vi/${s}/mqdefault.jpg`:l==="vimeo"?E[t]=`https://i.vimeocdn.com/${s}/1000x563`:E[t]="",E[t]}function Ne(r){const t=r.trim();if(!t)return"";const[s,l]=V(t);return l==="youtube"?`https://www.youtube.com/oembed?url=https://www.youtube.com/watch?v=${s}&format=json`:l==="vimeo"?`https://vimeo.com/api/oembed.json?url=https://vimeo.com/${s}`:""}function qe(r){const t=r.trim();return V(t).length>0}var X={},He=Ie;Object.defineProperty(X,"__esModule",{value:!0});var me=X.default=void 0,Be=He(De()),Ke=e;me=X.default=(0,Be.default)((0,Ke.jsx)("path",{d:"M19 2h-4.18C14.4.84 13.3 0 12 0c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m7 18H5V4h2v3h10V4h2z"}),"ContentPaste");const le=h.lazy(()=>Se(()=>import("./index-BtWvJbA-.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10])).then(r=>({default:r.Uploader}))),Me=`${L.WELLKNOWN_SERVICE_PATH_PREFIX}/api/studio/logo/upload`,Xe=`${L.WELLKNOWN_SERVICE_PATH_PREFIX}/api/studio/screenshots/upload`,Ye=`${L.WELLKNOWN_SERVICE_PATH_PREFIX}/api/studio/logo`,W=`${L.WELLKNOWN_SERVICE_PATH_PREFIX}/api/studio/screenshots`,Je=`${L.WELLKNOWN_SERVICE_PATH_PREFIX}/api/studio/videos`,ce=5,de=3;function lt(){var ee;const{t:r,locale:t}=Le(),[s,l]=h.useState(!1),[i,a]=h.useState(!1),[u,y]=h.useState([]),[g,j]=h.useState([]),[x,S]=h.useState(""),[T,_]=h.useState(""),[N,q]=h.useState(Date.now()),p=Te(async()=>{var c;const n=await(await fetch(W)).json();return y(n.screenshots||[]),j(((c=n.videos)==null?void 0:c.filter(d=>!!d))||[]),n}),R=h.useRef(null),f=h.useRef(null);if(p.loading&&!p.data)return e.jsx(K,{children:e.jsx(M,{size:40})});if(p.error)return e.jsx(K,{children:e.jsx(z,{direction:"column",spacing:1,sx:{mb:3},children:e.jsx(P,{color:"error.main",sx:{fontWeight:"bold"},children:p.error.message})})});const v=async o=>{const n=o.filter(c=>!!c);j(n),await fetch(Je,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({videos:n})})},H=async o=>{const n=Array.from(g),[c]=n.splice(o.source.index,1);n.splice(o.destination.index,0,c),await v(n)},ge=async o=>{const n=Array.from(u),[c]=n.splice(o.source.index,1);n.splice(o.destination.index,0,c),y(n),await fetch(`${W}/reorder`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({screenshots:n})})},J=async o=>{o.destination&&(o.source.droppableId==="screenshots"?await ge(o):o.source.droppableId==="videos"&&await H(o),p.runAsync())},Z=o=>{_(o.trim()),a(!0)},G=async(o,n="")=>{let c=[];n?c=o?g.map(d=>d===n?o.trim():d):g.filter(d=>d!==n):o&&(c=[...g,o.trim()]),_(""),a(!1),(o||n)&&await v(c),p.runAsync()},xe=o=>{l(!0),S(o)},Q=()=>{l(!1),S("")};function be(){const o=[{label:r("studio.type"),value:"png, jpg, webp, svg"},{label:r("studio.ratio"),value:"256x256"},{label:r("studio.size"),value:"<500KB"}],n=[{label:r("studio.tip"),value:r("studio.change")}];return e.jsx(A,{title:r("common.logo"),rules:o,tips:n,children:e.jsx(m,{sx:{flex:1,cursor:"pointer"},children:e.jsx(Pe,{variant:"square",sx:{width:128,height:128},alt:"Blocklet Logo",src:`${Ye}?t=${N}`,onClick:()=>{var c;return(c=R.current)==null?void 0:c.open()}})})})}function ve(){const o=[{label:r("studio.ratio"),value:"16 / 9"},{label:r("studio.count"),value:`1~${ce}`},{label:r("studio.size"),value:"<5MB"}],n=[{label:r("studio.tip"),value:r("studio.orderTipLong")}];return e.jsx(A,{title:r("common.screenshot"),tips:n,rules:o,children:e.jsx(ie,{onDragEnd:J,children:e.jsx(se,{droppableId:"screenshots",direction:"horizontal",children:(d,O)=>e.jsxs(m,{display:"flex",alignItems:"center",sx:{flex:1,mt:1,flexWrap:"wrap",minHeight:225,background:O.isDraggingOver?"#f5f5f5":"transparent",transition:"background-color 0.2s ease",border:O.isDraggingOver?"2px dashed #999":"none",borderRadius:"4px"},ref:d.innerRef,...d.droppableProps,children:[u.map((b,B)=>e.jsx(ne,{draggableId:b,index:B,children:(I,D)=>{const te=`${W}/${b}`;return e.jsxs(m,{ref:I.innerRef,...I.draggableProps,...I.dragHandleProps,className:"image-wrapper",sx:{transform:D.isDragging?"scale(1.05)":"none",boxShadow:D.isDragging?"0 5px 10px rgba(0,0,0,0.15)":"none",transition:"transform 0.2s ease, box-shadow 0.2s ease"},children:[e.jsx("img",{alt:"screenshot",src:te,onClick:()=>xe(b),style:{cursor:"pointer"}}),e.jsx(re,{title:r("studio.deleteTooltip"),children:e.jsx(F,{className:"action",style:{top:10,color:"white",background:"red"},onClick:async()=>{await fetch(te,{method:"DELETE"}),p.runAsync()},children:e.jsx(ae,{})})})]})}},b)),d.placeholder,u.length<ce&&c()]})})})});function c(){return e.jsx(m,{display:"flex",justifyContent:"center",alignItems:"center",mb:2,width:400,height:225,fontSize:40,sx:{background:"#eee",cursor:"pointer",color:"#999"},onClick:()=>{var d;return(d=f.current)==null?void 0:d.open()},children:"+"})}}function je(){const o=[{label:r("studio.count"),value:`1~${de}`},{label:r("studio.videoType"),value:e.jsxs(e.Fragment,{children:[e.jsx("a",{href:"https://www.youtube.com/",target:"_blank",rel:"noreferrer",children:"Youtube"}),","," ",e.jsx("a",{href:"https://vimeo.com/",target:"_blank",rel:"noreferrer",children:"Vimeo"})]})}],n=[{label:`${r("studio.tip")}`,value:r("studio.videoTipLong")}];return e.jsxs(A,{title:r("studio.video"),tips:n,rules:o,children:[e.jsx(ie,{onDragEnd:J,children:e.jsx(se,{droppableId:"videos",direction:"horizontal",children:(d,O)=>e.jsxs(m,{display:"flex",alignItems:"center",sx:{flex:1,mt:1,flexWrap:"wrap",minHeight:225,background:O.isDraggingOver?"#f5f5f5":"transparent",transition:"background-color 0.2s ease",border:O.isDraggingOver?"2px dashed #999":"none",borderRadius:"4px"},ref:d.innerRef,...d.droppableProps,children:[g.map((b,B)=>e.jsx(ne,{draggableId:b,index:B,children:(I,D)=>e.jsxs(m,{ref:I.innerRef,...I.draggableProps,...I.dragHandleProps,className:"image-wrapper",sx:{transform:D.isDragging?"scale(1.05)":"none",boxShadow:D.isDragging?"0 5px 10px rgba(0,0,0,0.15)":"none",transition:"transform 0.2s ease, box-shadow 0.2s ease"},children:[e.jsx("img",{alt:"videos",src:We(b),onClick:()=>Z(b),style:{cursor:"pointer"}}),e.jsx(m,{sx:{position:"absolute",cursor:"pointer",fontSize:"3rem"},onClick:()=>Z(b),children:e.jsx(fe,{})}),e.jsx(re,{title:r("studio.deleteTooltip"),children:e.jsx(F,{className:"action",style:{top:10,color:"white",background:"red"},onClick:()=>G(null,b),children:e.jsx(ae,{})})})]})},b)),d.placeholder,g.length<de&&c()]})})}),i&&e.jsx(Y,{t:r,handleOperateVideo:G,defaultUrl:T,videos:g})]});function c(){return e.jsx(m,{display:"flex",justifyContent:"center",alignItems:"center",mb:2,width:400,height:225,fontSize:40,sx:{background:"#eee",cursor:"pointer",color:"#999"},onClick:()=>a(!0),children:"+"})}}function ye(){return e.jsx(ue,{open:s,onClose:Q,maxWidth:"xl",PaperProps:{style:{backgroundColor:"transparent",boxShadow:"none"}},children:e.jsx("img",{src:`${W}/${x}`,alt:"Screenshot Full",style:{maxWidth:"90vw",maxHeight:"90vh",objectFit:"contain"},onClick:Q})})}function we(){return e.jsxs(h.Suspense,{fallback:e.jsx(M,{size:40}),children:[e.jsx(le,{ref:R,locale:t,popup:!0,onUploadFinish:()=>{var o;(o=R.current)==null||o.close(),q(Date.now()),p.runAsync()},plugins:["ImageEditor"],installerProps:{disabled:!0},apiPathProps:{uploader:Me,disableMediaKitPrefix:!0,disableMediaKitStatus:!0},coreProps:{restrictions:{allowedFileTypes:["image/png","image/jpeg","image/webp","image/svg+xml"],maxFileSize:1024*1024*.5,maxNumberOfFiles:1}},dashboardProps:{autoOpen:"imageEditor"},imageEditorProps:{actions:{revert:!0,rotate:!0,granularRotate:!0,flip:!0,zoomIn:!0,zoomOut:!0,cropSquare:!1,cropWidescreen:!1,cropWidescreenVertical:!1},cropperOptions:{autoCrop:!0,aspectRatio:1,initialAspectRatio:1,autoCropArea:1,croppedCanvasOptions:{minWidth:256,minHeight:256}}}},"uploader-logo"),e.jsx(le,{ref:f,popup:!0,onUploadFinish:()=>{var o;(o=f.current)==null||o.close(),p.runAsync()},installerProps:{disabled:!0},plugins:["ImageEditor"],apiPathProps:{uploader:Xe,disableMediaKitPrefix:!0,disableMediaKitStatus:!0},coreProps:{restrictions:{allowedFileTypes:["image/*","application/svg+xml"],maxFileSize:1024*1024*5,maxNumberOfFiles:5-u.length}},dashboardProps:{autoOpen:"imageEditor"},imageEditorProps:{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:16/9,initialAspectRatio:16/9,croppedCanvasOptions:{minWidth:1280,minHeight:720,maxWidth:1280*2,maxHeight:720*2}}}},"uploader-screenshot")]})}const Ce=`https://www.arcblock.io/docs/blocklet-store/${t}/supplying-images`;return e.jsx(K,{children:e.jsxs(Ze,{children:[e.jsxs(z,{direction:"column",spacing:1,sx:{mb:3},children:[e.jsx(P,{variant:"h5",sx:{fontWeight:"bold"},children:r("studio.title",{title:(ee=p.data)==null?void 0:ee.title})}),e.jsxs(P,{variant:"body2",color:"text.secondary",children:[r("studio.description")," ",e.jsx("a",{href:Ce,target:"_blank",rel:"noreferrer",children:r("studio.documentation")})]})]}),be(),ve(),je(),ye(),we()]})})}function A({title:r,rules:t,tips:s,children:l}){return e.jsxs(m,{display:"flex",flexDirection:"column",sx:{mb:4},children:[e.jsxs(z,{direction:"column",spacing:1,sx:{mb:2},children:[e.jsx(P,{variant:"h6",sx:{fontWeight:"bold"},children:r}),e.jsx(z,{direction:"row",spacing:2,sx:{fontSize:"13px",opacity:.8},children:t.map(a=>i(a.label,a.value))}),s.map(a=>e.jsx(m,{sx:{fontSize:"13px",opacity:.8},children:i(a.label,a.value)}))]}),l]});function i(a,u){return e.jsxs(m,{component:"span",children:[e.jsxs(m,{component:"span",sx:{color:"#555",mr:.5},children:[a,":"]}),e.jsx(m,{component:"span",sx:{color:"#007ec6"},children:u})]})}}A.propTypes={title:w.string.isRequired,rules:w.array.isRequired,tips:w.array.isRequired,children:w.node.isRequired};function Y({handleOperateVideo:r,t,defaultUrl:s="",videos:l}){var R;const[i,a]=h.useState(s),[u,y]=h.useState(!1),[g,j]=h.useState(!1),x=h.useRef(i),S=i!==s&&l.includes(i),T=!i&&s,_=!S&&(i&&i!==x.current||u),N=!!((R=navigator.clipboard)!=null&&R.readText),{run:q}=$e(p,{wait:500,leading:!0});return e.jsxs(ue,{open:!0,fullWidth:!0,maxWidth:"sm",children:[e.jsx(Re,{children:t(s?"studio.videoDialogEditTitle":"studio.videoDialogTitle")}),e.jsxs(ke,{children:[e.jsx(Ee,{fullWidth:!0,value:i,onChange:f=>{const v=f.target.value.trim();a(v),v?q(v):j(!1)},placeholder:t("studio.videoInputLabel"),endAdornment:i?e.jsx(oe,{position:"end",children:e.jsx(F,{onClick:()=>{a(""),p("")},children:e.jsx(Ve,{})})}):N&&e.jsx(oe,{position:"end",children:e.jsx(F,{onClick:async()=>{try{const f=(await navigator.clipboard.readText()||"").trim();a(f),p(f)}catch(f){console.error(f)}},children:e.jsx(me,{})})})}),e.jsxs(m,{mb:2,mt:.5,children:[S&&e.jsx(P,{variant:"body2",color:"error",children:t("studio.duplicateVideo")}),!S&&g&&e.jsx(P,{variant:"body2",color:"error",children:t("studio.videoDialogNoSrc")})]}),x.current?e.jsx("iframe",{width:"100%",height:"315",title:`video-${x.current}`,src:Ue(x.current),allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,border:"1px solid #eee"}):e.jsx(m,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:315,width:"100%",border:"1px solid #eee"},children:u?e.jsx(M,{size:40}):e.jsx(P,{variant:"h5",color:"text.secondary",children:e.jsx(fe,{})})})]}),e.jsxs(_e,{children:[e.jsx($,{onClick:()=>r(),children:t("studio.cancel")}),T&&e.jsx($,{variant:"contained",color:"error",onClick:()=>r(null,s),children:t("studio.delete")}),_&&e.jsx($,{variant:"contained",onClick:()=>p(i),disabled:!i||u,children:t("studio.preview")}),!T&&!_&&e.jsx($,{variant:"contained",onClick:()=>r(x.current),disabled:!x.current||s===x.current||S,children:t("studio.confirm")})]})]});function p(f){x.current="";const v=Ae(f);j(f?!v:!1),v&&(y(!0),fetch(v).then(H=>{H.ok?(x.current=f,j(!1)):j(!0)}).catch(()=>{j(!0)}).finally(()=>y(!1)))}}Y.propTypes={handleOperateVideo:w.func.isRequired,t:w.func.isRequired,defaultUrl:w.string,videos:w.array.isRequired};Y.defaultProps={defaultUrl:""};function fe(){return e.jsxs("svg",{viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",height:48,width:48,children:[e.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M28 56C43.464 56 56 43.464 56 28C56 12.536 43.464 0 28 0C12.536 0 0 12.536 0 28C0 43.464 12.536 56 28 56Z",fill:"black","fill-opacity":"0.54"}),e.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M39.6667 28L21 17.5V38.5L39.6667 28Z",fill:"white"})]})}const Ze=Oe.div`
3
3
  margin-top: 24px;
4
4
  .image-wrapper {
5
5
  margin-bottom: 16px;
@@ -1 +1 @@
1
- import{j as f,aM as v,E as a}from"./vendor-mui-core-DrGFkjqr.js";import{b as E,D as P}from"./vendor-arcblock-EnQG-qe7.js";import{x as g}from"./vendor-utils-5TjOM6td.js";import{z as x,A as $,W as j,X as h,Y as R}from"./index-B7_xeF0z.js";function A({blocklet:r,ancestors:p=[]}){var i;const s=x(),{inService:n}=s,e=$(r==null?void 0:r.status)||j(r==null?void 0:r.status),o=`?v=${(i=r==null?void 0:r.meta)==null?void 0:i.version}${e?"~":""}`;let t=n?`${g(R,E.WELLKNOWN_SERVICE_PATH_PREFIX,"/blocklet/logo-bundle")}${o}`:g(s.imgPrefix,"blocklet.png");if(r.source==="registry"&&r.deployedFrom&&r.meta.logo)t=`${g(r.deployedFrom,h(r.meta.bundleDid,r.meta.logo))}${o}`;else{const u=window.env.apiPrefix||"/",d=p.concat(r),m=n?d.slice(1):d;t=`${g(u,`/blocklet/logo-bundle${m.map(c=>`/${c.meta.did}`).join("")}`)}${o}`}return{logoUrl:t,inService:n}}function y({blocklet:r,style:p,size:s,ancestors:n,...e}){const o=x(),{logoUrl:t,inService:i}=A({blocklet:r,ancestors:n}),{variant:u}=e,d=i?()=>{}:c=>{c.target.src=`${o.imgPrefix}/blocklet.png`};let m=f.jsx("img",{src:t,onError:d,alt:r.meta.name,style:{width:s}});return r.meta.logo||(m=f.jsx(P,{did:r.meta.did||"",responsive:!0})),f.jsx(v,{variant:u||"square",style:Object.assign({backgroundColor:"transparent",width:s,height:s,borderRadius:10},p),...e,children:m})}y.propTypes={blocklet:a.object.isRequired,style:a.object,size:a.oneOfType([a.number,a.string]),ancestors:a.array};y.defaultProps={style:{},size:40,ancestors:[]};export{y as B};
1
+ import{j as f,aM as v,E as a}from"./vendor-mui-core-DrGFkjqr.js";import{b as E,D as P}from"./vendor-arcblock-CLdpcBR_.js";import{x as g}from"./vendor-utils-5TjOM6td.js";import{z as x,A as $,W as j,X as h,Y as R}from"./index-dZzRZ2ZY.js";function A({blocklet:r,ancestors:p=[]}){var i;const s=x(),{inService:n}=s,e=$(r==null?void 0:r.status)||j(r==null?void 0:r.status),o=`?v=${(i=r==null?void 0:r.meta)==null?void 0:i.version}${e?"~":""}`;let t=n?`${g(R,E.WELLKNOWN_SERVICE_PATH_PREFIX,"/blocklet/logo-bundle")}${o}`:g(s.imgPrefix,"blocklet.png");if(r.source==="registry"&&r.deployedFrom&&r.meta.logo)t=`${g(r.deployedFrom,h(r.meta.bundleDid,r.meta.logo))}${o}`;else{const u=window.env.apiPrefix||"/",d=p.concat(r),m=n?d.slice(1):d;t=`${g(u,`/blocklet/logo-bundle${m.map(c=>`/${c.meta.did}`).join("")}`)}${o}`}return{logoUrl:t,inService:n}}function y({blocklet:r,style:p,size:s,ancestors:n,...e}){const o=x(),{logoUrl:t,inService:i}=A({blocklet:r,ancestors:n}),{variant:u}=e,d=i?()=>{}:c=>{c.target.src=`${o.imgPrefix}/blocklet.png`};let m=f.jsx("img",{src:t,onError:d,alt:r.meta.name,style:{width:s}});return r.meta.logo||(m=f.jsx(P,{did:r.meta.did||"",responsive:!0})),f.jsx(v,{variant:u||"square",style:Object.assign({backgroundColor:"transparent",width:s,height:s,borderRadius:10},p),...e,children:m})}y.propTypes={blocklet:a.object.isRequired,style:a.object,size:a.oneOfType([a.number,a.string]),ancestors:a.array};y.defaultProps={style:{},size:40,ancestors:[]};export{y as B};
@@ -1 +1 @@
1
- import{j as o}from"./vendor-mui-core-DrGFkjqr.js";import{a3 as n}from"./vendor-arcblock-EnQG-qe7.js";function m({...t}){return o.jsx(n,{className:"bottom-button",variant:"contained",color:"primary",...t})}export{m as S};
1
+ import{j as o}from"./vendor-mui-core-DrGFkjqr.js";import{a3 as n}from"./vendor-arcblock-CLdpcBR_.js";function m({...t}){return o.jsx(n,{className:"bottom-button",variant:"contained",color:"primary",...t})}export{m as S};
@@ -1 +1 @@
1
- import{r as i}from"./vendor-react-D-afvo_7.js";import{j as t,E as e}from"./vendor-mui-core-DrGFkjqr.js";import{a2 as s,aU as c}from"./vendor-arcblock-EnQG-qe7.js";function n({children:p,...r}){const{t:o}=i.useContext(s);return t.jsx(c,{tip:o("common.copyTip"),copiedTip:o("common.copiedTip"),...r,children:p})}n.propTypes={children:e.any.isRequired};export{n as C};
1
+ import{r as i}from"./vendor-react-D-afvo_7.js";import{j as t,E as e}from"./vendor-mui-core-DrGFkjqr.js";import{a2 as s,aU as c}from"./vendor-arcblock-CLdpcBR_.js";function n({children:p,...r}){const{t:o}=i.useContext(s);return t.jsx(c,{tip:o("common.copyTip"),copiedTip:o("common.copiedTip"),...r,children:p})}n.propTypes={children:e.any.isRequired};export{n as C};
@@ -0,0 +1,45 @@
1
+ import{aa as d,j as e,a2 as T,a3 as h,E as C}from"./vendor-mui-core-DrGFkjqr.js";import{e as B,z as _,j as v,b as $}from"./vendor-arcblock-CLdpcBR_.js";import{o as A,q as F,ap as I,d as M,e as N,ah as z,aq as W,P as q}from"./index-dZzRZ2ZY.js";import{r as a}from"./vendor-react-D-afvo_7.js";import{x as O}from"./vendor-utils-5TjOM6td.js";import{L as V}from"./launch-result-message-B237vj_f.js";import{g as X}from"./get-safe-url-bdLdP6Lf.js";import{S as E}from"./button-DYvqAiv_.js";import{S as H}from"./layout--JdBWkq8.js";import"./vendor-hooks-ZnvK17j8.js";import"./content-layout-CE2kjm54.js";const K=d(V)`
2
+ && .result-footer {
3
+ height: 120px;
4
+ > div {
5
+ flex-wrap: wrap;
6
+ }
7
+ }
8
+ `,Q=K;function U({onPrevious:s}){const{t:r}=B(),[x,g]=a.useState(!1),[c,u]=a.useState("starting"),[i,k]=a.useState(),{blocklet:l}=A(),[n,P]=a.useState(""),w=F("fromLauncher"),m=!["starting","running"].includes(c),b=c==="starting",L={stopped:r("blocklet.start"),starting:r("blocklet.starting"),running:r("blocklet.open")},R=()=>{const t=new URL(window.location.href).searchParams.get("redirect");if(!n||!_(n)){v.error(r("blocklet.gotoVisitError"));return}let o=new URL(n);t&&(o=new URL(t,n));const j=I.get("login_token");o.host!==window.location.host&&j&&(o.pathname=O($.WELLKNOWN_SERVICE_PATH_PREFIX,"redirect-with-login"),o.searchParams.set("setupToken",j)),window.location.href=X(o.href)},f=async()=>{var p;g(!0),u("starting");try{await M.post("/blocklet/start",{fromSetup:!0});const{blocklet:{status:t}={}}=await N.getBlocklet({input:{did:l.meta.did}});g(!1),u(t),k(t==="running"?null:r("setup.complete.notRunning"))}catch(t){const o=((p=t==null?void 0:t.response)==null?void 0:p.data)||t.message;v.error(o),g(!1),u("stopped"),k(o)}};a.useEffect(()=>{u(l.status),["starting","running"].includes(l.status)||f()},[]),a.useEffect(()=>{n||(async()=>{const t=await z.evaluateURLs(l.site.domainAliases.map(o=>W(o.value,q)),{preferAccessible:!0});t.length>0&&P(t[0].url)})()},[l,n]);const S=localStorage.getItem("blocklet-server-url"),y=b||!n;return w&&!y&&(m?f():R()),e.jsx(D,{children:e.jsx(Q,{variant:i?"error":"success",title:r(i?"setup.complete.failedTitle":"setup.complete.title"),footer:e.jsxs(G,{children:[m&&e.jsx(E,{variant:"outlined",disabled:x,onClick:()=>s(),children:r("setup.previous")}),w?e.jsxs(J,{rel:"noreferrer",children:[e.jsx(T,{size:16,style:{marginRight:14}})," ",r("common.redirecting")]}):e.jsxs(e.Fragment,{children:[e.jsx(E,{style:{marginLeft:m?24:0},disabled:x||b,onClick:()=>m?f():R(),loading:y,children:L[c]||L.stopped}),(c==="running"||i)&&!!S&&e.jsx(h,{width:"100%",mt:2,children:e.jsx("a",{href:S,target:"_blank",rel:"noopener noreferrer",className:"back-to-server-link",children:r("setup.complete.backToServer")})}),i&&e.jsx(h,{className:"error-message",fontSize:14,color:"#888",mt:1,children:i})]})]})})})}const D=d(H)`
9
+ justify-content: center;
10
+ .icon-success {
11
+ width: 64px;
12
+ height: 64px;
13
+ color: ${s=>s.theme.palette.success.main};
14
+ }
15
+ .back-to-server-link {
16
+ color: ${s=>s.theme.palette.primary.main};
17
+ }
18
+ .error-message {
19
+ color: ${s=>s.theme.palette.error.main};
20
+ height: 15em;
21
+ overflow: hidden;
22
+ overflow-y: scroll;
23
+ }
24
+ `;U.propTypes={onPrevious:C.func};U.defaultProps={onPrevious:()=>{}};const G=d(h)`
25
+ width: 100%;
26
+ margin-top: auto;
27
+ padding-top: 24px;
28
+ display: flex;
29
+ align-items: center;
30
+ justify-content: center;
31
+ .bottom-button {
32
+ min-width: 200px;
33
+ }
34
+ ${s=>s.theme.breakpoints.down("md")} {
35
+ .bottom-button {
36
+ width: 100%;
37
+ }
38
+ }
39
+ `,J=d.a`
40
+ display: flex;
41
+ justify-content: center;
42
+ align-items: center;
43
+ height: 36px;
44
+ color: ${s=>s.theme.palette.primary.main};
45
+ `;export{U as default};
@@ -1,4 +1,4 @@
1
- var Nw=Object.defineProperty;var Fw=(e,t,n)=>t in e?Nw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ho=(e,t,n)=>Fw(e,typeof t!="symbol"?t+"":t,n);import{cE as zw,cs as Te,cr as Ze,cp as Ww,a1 as Se,j as w,a3 as Re,a4 as Wn,E as ie,cF as dv,cG as fv,cH as Vw,bs as pv,aa as Nt,cI as tl,bS as Kt,H as nl,cJ as pi,bo as Zn,c3 as dt,aw as It,cK as Uw,cL as qw,c as Pe,_ as L,cM as vr,cN as Ke,cO as Hw,cP as ys,b as Vn,cQ as Xa,cR as Gw,c4 as Kw,cS as Yw,bT as Xw,cl as Qw,cT as Zw,c5 as Jw,g as ze,a as Le,k as Fe,cU as mv,u as Gt,cV as eS,d as nn,cW as rl,cX as Up,o as on,cY as hv,i as Nr,cZ as tS,c_ as mi,c$ as nS,d0 as qp,f as Dd,d1 as gv,d2 as rS,d3 as oS,p as ol,J as aS,d4 as iS,bj as Hp,ad as Gp,M as Jt,I as vn,t as sS,al as Kn,T as Cs,a2 as Fr,e as lS,aM as cS,bp as al,d5 as uS,bx as dS,aN as Au,by as Kp,aK as bv,x as fS,D as Yp,ab as Xp,r as Qp,bL as Zp,bO as Li,y as pS,aO as mS}from"./vendor-mui-core-DrGFkjqr.js";import{$ as hS,az as gS,x as vv}from"./vendor-utils-5TjOM6td.js";import{r as S,R as bS,d as hi,a as $e,g as Rd,b as tt,e as yv,c as vS,k as Cv}from"./vendor-react-D-afvo_7.js";import{bE as Ce,a0 as Pr,e as Qt,j as ot,bQ as yS,bR as CS,ay as Jp,az as xS,aA as wS,aB as SS,aL as PS,aa as gi,ap as em,aJ as TS,bS as kS,bT as DS,a2 as Tr,an as RS,a7 as Ed,b as je,z as ES,ac as MS,aD as Qn,a3 as Ni,av as $S}from"./vendor-arcblock-EnQG-qe7.js";import{d as xv}from"./Add-DFSveMnk.js";import{F as OS,d as Md}from"./form-text-input-DXbUuC1I.js";import{z as Yt,C as Ur,Q as Qa,h as Yn,f as ht,O as yo,aC as IS,a8 as zr,a7 as $d,a6 as Bu,ap as wv,aD as Sv,b as Ia,m as gc,aE as _S}from"./index-B7_xeF0z.js";import{e as AS,W as Co,c as BS,f as Od,B as Pv,b as jS}from"./dashboard-DvxSnwfd.js";import{S as LS}from"./switch-control-DUPDUbJY.js";import{P as ju,w as Eo}from"./permission-BlstaDqI.js";import{d as tm,c as NS,b as nt,_ as Je,o as FS,e as zS,i as WS,p as VS,g as US,r as kr}from"./slicedToArray-DBh5Z78L.js";import{r as Ye,A as Id,B as Xt,C as xs,D as Lu,t as qe,E as Tv,F as kv,j as Nu,m as qS,G as sr,H as HS,I as GS,J as Fu,K as Dv,L as KS,M as YS,N as Rv,O as _d,P as nm,Q as XS,R as rm,S as QS,T as ZS,p as JS,e as om,g as e1,b as bc,a as am,c as t1,q as Fi,o as Qr,i as n1,d as r1,k as zi,l as vc,h as Wi,s as yc,f as Cc,x as o1,z as a1,n as i1,u as s1,v as l1,w as c1,U as u1,y as d1,V as f1,W as p1}from"./index-DQ3_atB3.js";import{a as Qe,u as Me,r as Za,d as qr,b as m1,w as ws,g as Ev,e as Mv,c as h1,o as zu}from"./raf-schd.esm-Cxhj8umC.js";import{C as im}from"./click-to-copy-U6qR4HAG.js";import{d as sm}from"./ChevronRight-i646QaQM.js";import{d as g1}from"./ChevronLeft-DRxUR95x.js";import{d as b1}from"./ArrowDropDown-7bhybSNS.js";import{f as pn}from"./format-error-C0Ke3VXF.js";import{A as v1,a as y1,b as C1,d as $v,B as x1,f as w1,c as S1}from"./add-component-core-D7dzV3Qd.js";import{C as Mo}from"./confirm-R-3mjfrE.js";import{v as P1,b as Ss}from"./util-lWapOC8r.js";import{d as T1}from"./LockIcon-BbWIWjve.js";import{d as Ov}from"./Launch-DdeGpTqR.js";import{D as k1}from"./delete-confirm-CO-OBmsy.js";import{d as D1}from"./InfoOutlined-O-yom1i3.js";import{B as R1}from"./bundle-avatar-CWErnWDS.js";import{d as E1}from"./PlayArrow-BwPeitOG.js";import{A as Iv}from"./actions-CnBTZ7ol.js";import{I as xc}from"./index-jjJ9S0nm.js";import{W as M1}from"./did-address-Cg3bCLTF.js";import"./vendor-hooks-ZnvK17j8.js";import"./Done-DgXsjFiE.js";import"./logo-uploader-BDepocdq.js";import"./index-DoZ2YM4T.js";import"./EditIcon-Mm3W5DE6.js";import"./useLocalStorage-DyOKhTaE.js";import"./get-safe-url-DQLIWkQo.js";import"./index-CbY5jzJ1.js";import"./session-BwIJ2AMz.js";import"./useAsyncRetry-BEB-tWmQ.js";import"./useAsync-CEZQNMFX.js";import"./useSetState-Crt4S51m.js";import"./item-C5q00bCP.js";import"./DeleteOutline-Bz_v29yL.js";import"./launch-result-message-B237vj_f.js";import"./page-header-BltW3zCL.js";import"./config-space-DWTUkGA7.js";import"./api-K65cLqol.js";import"./index-BkvRoX7I.js";import"./Google-DommwMxL.js";import"./cloneDeep-BRiLvZjr.js";import"./index-DcvnbXW2.js";import"./index-C2fPoxDR.js";import"./use-mobile-B7gJcr5J.js";import"./content-layout-CE2kjm54.js";import"./connect-to-B_177EMY.js";import"./shorten-label-la5sIm_0.js";import"./MoreHoriz-ZQMFN5Xr.js";var $1=36e5;function O1(e,t){Ye(2,arguments);var n=Xt(t);return Id(e,n*$1)}var I1=864e5;function _1(e,t){Ye(2,arguments);var n=xs(e),r=xs(t),o=n.getTime()-Lu(n),a=r.getTime()-Lu(r);return Math.round((o-a)/I1)}var A1=6e4;function B1(e,t){Ye(2,arguments);var n=Xt(t);return Id(e,n*A1)}function j1(e,t){Ye(2,arguments);var n=Xt(t);return Id(e,n*1e3)}function Fa(e,t){Ye(2,arguments);var n=qe(e),r=qe(t),o=n.getTime()-r.getTime();return o<0?-1:o>0?1:o}function L1(e,t){Ye(2,arguments);var n=qe(e),r=qe(t);return n.getFullYear()-r.getFullYear()}function lm(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function _v(e,t){Ye(2,arguments);var n=qe(e),r=qe(t),o=lm(n,r),a=Math.abs(_1(n,r));n.setDate(n.getDate()-o*a);var i=+(lm(n,r)===-o),s=o*(a-i);return s===0?0:s}function il(e,t){return Ye(2,arguments),qe(e).getTime()-qe(t).getTime()}var cm={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},N1="trunc";function bi(e){return e?cm[e]:cm[N1]}function F1(e,t,n){Ye(2,arguments);var r=il(e,t)/Tv;return bi(void 0)(r)}function z1(e,t,n){Ye(2,arguments);var r=il(e,t)/kv;return bi(void 0)(r)}function Wu(e){Ye(1,arguments);var t=qe(e);return t.setHours(23,59,59,999),t}function W1(e){Ye(1,arguments);var t=qe(e);return Wu(t).getTime()===Nu(t).getTime()}function Av(e,t){Ye(2,arguments);var n=qe(e),r=qe(t),o=Fa(n,r),a=Math.abs(qS(n,r)),i;if(a<1)i=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-o*a);var s=Fa(n,r)===-o;W1(qe(e))&&a===1&&Fa(e,r)===1&&(s=!1),i=o*(a-Number(s))}return i===0?0:i}function V1(e,t,n){Ye(2,arguments);var r=Av(e,t)/3;return bi(void 0)(r)}function U1(e,t,n){Ye(2,arguments);var r=il(e,t)/1e3;return bi(void 0)(r)}function q1(e,t,n){Ye(2,arguments);var r=_v(e,t)/7;return bi(void 0)(r)}function H1(e,t){Ye(2,arguments);var n=qe(e),r=qe(t),o=Fa(n,r),a=Math.abs(L1(n,r));n.setFullYear(1584),r.setFullYear(1584);var i=Fa(n,r)===-o,s=o*(a-Number(i));return s===0?0:s}function G1(e,t){var n;Ye(1,arguments);var r=e||{},o=qe(r.start),a=qe(r.end),i=a.getTime();if(!(o.getTime()<=i))throw new RangeError("Invalid interval");var s=[],c=o;c.setHours(0,0,0,0);var l=Number((n=void 0)!==null&&n!==void 0?n:1);if(l<1||isNaN(l))throw new RangeError("`options.step` must be a number greater than 1");for(;c.getTime()<=i;)s.push(qe(c)),c.setDate(c.getDate()+l),c.setHours(0,0,0,0);return s}function K1(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function Y1(e,t){var n,r;Ye(1,arguments);var o=qe(e);if(isNaN(o.getTime()))throw new RangeError("Invalid time value");var a=String((n=t==null?void 0:t.format)!==null&&n!==void 0?n:"extended"),i=String((r=t==null?void 0:t.representation)!==null&&r!==void 0?r:"complete");if(a!=="extended"&&a!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(i!=="date"&&i!=="time"&&i!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var s="",c="",l=a==="extended"?"-":"",d=a==="extended"?":":"";if(i!=="time"){var u=sr(o.getDate(),2),f=sr(o.getMonth()+1,2),m=sr(o.getFullYear(),4);s="".concat(m).concat(l).concat(f).concat(l).concat(u)}if(i!=="date"){var b=o.getTimezoneOffset();if(b!==0){var h=Math.abs(b),x=sr(Math.floor(h/60),2),v=sr(h%60,2),g=b<0?"+":"-";c="".concat(g).concat(x,":").concat(v)}else c="Z";var p=sr(o.getHours(),2),y=sr(o.getMinutes(),2),D=sr(o.getSeconds(),2),P=s===""?"":"T",T=[p,y,D].join(d);s="".concat(s).concat(P).concat(T).concat(c)}return s}function X1(e){Ye(1,arguments);var t=qe(e),n=t.getDay();return n}function Q1(e){Ye(1,arguments);var t=qe(e),n=t.getHours();return n}function Z1(e){Ye(1,arguments);var t=qe(e),n=t.getMinutes();return n}function J1(e){Ye(1,arguments);var t=qe(e),n=t.getSeconds();return n}function eP(e,t){Ye(2,arguments);var n=qe(e),r=qe(t);return n.getTime()===r.getTime()}function um(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=zw(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(l){throw l},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1
+ var Nw=Object.defineProperty;var Fw=(e,t,n)=>t in e?Nw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ho=(e,t,n)=>Fw(e,typeof t!="symbol"?t+"":t,n);import{cE as zw,cs as Te,cr as Ze,cp as Ww,a1 as Se,j as w,a3 as Re,a4 as Wn,E as ie,cF as dv,cG as fv,cH as Vw,bs as pv,aa as Nt,cI as tl,bS as Kt,H as nl,cJ as pi,bo as Zn,c3 as dt,aw as It,cK as Uw,cL as qw,c as Pe,_ as L,cM as vr,cN as Ke,cO as Hw,cP as ys,b as Vn,cQ as Xa,cR as Gw,c4 as Kw,cS as Yw,bT as Xw,cl as Qw,cT as Zw,c5 as Jw,g as ze,a as Le,k as Fe,cU as mv,u as Gt,cV as eS,d as nn,cW as rl,cX as Up,o as on,cY as hv,i as Nr,cZ as tS,c_ as mi,c$ as nS,d0 as qp,f as Dd,d1 as gv,d2 as rS,d3 as oS,p as ol,J as aS,d4 as iS,bj as Hp,ad as Gp,M as Jt,I as vn,t as sS,al as Kn,T as Cs,a2 as Fr,e as lS,aM as cS,bp as al,d5 as uS,bx as dS,aN as Au,by as Kp,aK as bv,x as fS,D as Yp,ab as Xp,r as Qp,bL as Zp,bO as Li,y as pS,aO as mS}from"./vendor-mui-core-DrGFkjqr.js";import{$ as hS,az as gS,x as vv}from"./vendor-utils-5TjOM6td.js";import{r as S,R as bS,d as hi,a as $e,g as Rd,b as tt,e as yv,c as vS,k as Cv}from"./vendor-react-D-afvo_7.js";import{bE as Ce,a0 as Pr,e as Qt,j as ot,bQ as yS,bR as CS,ay as Jp,az as xS,aA as wS,aB as SS,aL as PS,aa as gi,ap as em,aJ as TS,bS as kS,bT as DS,a2 as Tr,an as RS,a7 as Ed,b as je,z as ES,ac as MS,aD as Qn,a3 as Ni,av as $S}from"./vendor-arcblock-CLdpcBR_.js";import{d as xv}from"./Add-qzAc2S9X.js";import{F as OS,d as Md}from"./form-text-input-Vg6k4hxG.js";import{z as Yt,C as Ur,Q as Qa,h as Yn,f as ht,O as yo,aD as IS,a8 as zr,a7 as $d,a6 as Bu,aq as wv,aE as Sv,b as Ia,m as gc,aF as _S}from"./index-dZzRZ2ZY.js";import{e as AS,W as Co,c as BS,f as Od,B as Pv,b as jS}from"./dashboard-CiOynIcf.js";import{S as LS}from"./switch-control-DkVbfEAf.js";import{P as ju,w as Eo}from"./permission-Ct9GXCMW.js";import{d as tm,c as NS,b as nt,_ as Je,o as FS,e as zS,i as WS,p as VS,g as US,r as kr}from"./slicedToArray-DBh5Z78L.js";import{r as Ye,A as Id,B as Xt,C as xs,D as Lu,t as qe,E as Tv,F as kv,j as Nu,m as qS,G as sr,H as HS,I as GS,J as Fu,K as Dv,L as KS,M as YS,N as Rv,O as _d,P as nm,Q as XS,R as rm,S as QS,T as ZS,p as JS,e as om,g as e1,b as bc,a as am,c as t1,q as Fi,o as Qr,i as n1,d as r1,k as zi,l as vc,h as Wi,s as yc,f as Cc,x as o1,z as a1,n as i1,u as s1,v as l1,w as c1,U as u1,y as d1,V as f1,W as p1}from"./index-DQ3_atB3.js";import{a as Qe,u as Me,r as Za,d as qr,b as m1,w as ws,g as Ev,e as Mv,c as h1,o as zu}from"./raf-schd.esm-Cxhj8umC.js";import{C as im}from"./click-to-copy-Do3l3xtT.js";import{d as sm}from"./ChevronRight-C0FYeIUm.js";import{d as g1}from"./ChevronLeft-CtdCxfvp.js";import{d as b1}from"./ArrowDropDown-CH-FgtE-.js";import{f as pn}from"./format-error-C0Ke3VXF.js";import{A as v1,a as y1,b as C1,d as $v,B as x1,f as w1,c as S1}from"./add-component-core-C2j8WeZe.js";import{C as Mo}from"./confirm-HOW8FaxK.js";import{v as P1,b as Ss}from"./util-C5G3YrVZ.js";import{d as T1}from"./LockIcon-BbWIWjve.js";import{d as Ov}from"./Launch-CmFwRERO.js";import{D as k1}from"./delete-confirm-CsLJksmh.js";import{d as D1}from"./InfoOutlined-D5FF63tH.js";import{B as R1}from"./bundle-avatar-BHE5y99P.js";import{d as E1}from"./PlayArrow-C2iusqXD.js";import{A as Iv}from"./actions-yv07Sweq.js";import{I as xc}from"./index-B3zo8s95.js";import{W as M1}from"./did-address-5heyoc8D.js";import"./vendor-hooks-ZnvK17j8.js";import"./Done-BBJndopl.js";import"./logo-uploader-CXyCerZA.js";import"./index-DoZ2YM4T.js";import"./EditIcon-Mm3W5DE6.js";import"./useLocalStorage-CM7gP1Ni.js";import"./get-safe-url-BRR4RLgg.js";import"./index-B0unYdcz.js";import"./session-CldqrK3N.js";import"./useAsyncRetry-BEB-tWmQ.js";import"./useAsync-CEZQNMFX.js";import"./useSetState-Crt4S51m.js";import"./item-Bl6VQtAH.js";import"./DeleteOutline-DJPUGW0c.js";import"./launch-result-message-B237vj_f.js";import"./page-header-BVxfqM_P.js";import"./config-space-Cjs4lh6z.js";import"./api-K65cLqol.js";import"./index-CR0qrcky.js";import"./Google-DLwblvhu.js";import"./cloneDeep-BRiLvZjr.js";import"./index-DcvnbXW2.js";import"./index-C2fPoxDR.js";import"./use-mobile-B7gJcr5J.js";import"./content-layout-CE2kjm54.js";import"./connect-to-aA5MeDcj.js";import"./shorten-label-la5sIm_0.js";import"./MoreHoriz-Dye919yY.js";var $1=36e5;function O1(e,t){Ye(2,arguments);var n=Xt(t);return Id(e,n*$1)}var I1=864e5;function _1(e,t){Ye(2,arguments);var n=xs(e),r=xs(t),o=n.getTime()-Lu(n),a=r.getTime()-Lu(r);return Math.round((o-a)/I1)}var A1=6e4;function B1(e,t){Ye(2,arguments);var n=Xt(t);return Id(e,n*A1)}function j1(e,t){Ye(2,arguments);var n=Xt(t);return Id(e,n*1e3)}function Fa(e,t){Ye(2,arguments);var n=qe(e),r=qe(t),o=n.getTime()-r.getTime();return o<0?-1:o>0?1:o}function L1(e,t){Ye(2,arguments);var n=qe(e),r=qe(t);return n.getFullYear()-r.getFullYear()}function lm(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function _v(e,t){Ye(2,arguments);var n=qe(e),r=qe(t),o=lm(n,r),a=Math.abs(_1(n,r));n.setDate(n.getDate()-o*a);var i=+(lm(n,r)===-o),s=o*(a-i);return s===0?0:s}function il(e,t){return Ye(2,arguments),qe(e).getTime()-qe(t).getTime()}var cm={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},N1="trunc";function bi(e){return e?cm[e]:cm[N1]}function F1(e,t,n){Ye(2,arguments);var r=il(e,t)/Tv;return bi(void 0)(r)}function z1(e,t,n){Ye(2,arguments);var r=il(e,t)/kv;return bi(void 0)(r)}function Wu(e){Ye(1,arguments);var t=qe(e);return t.setHours(23,59,59,999),t}function W1(e){Ye(1,arguments);var t=qe(e);return Wu(t).getTime()===Nu(t).getTime()}function Av(e,t){Ye(2,arguments);var n=qe(e),r=qe(t),o=Fa(n,r),a=Math.abs(qS(n,r)),i;if(a<1)i=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-o*a);var s=Fa(n,r)===-o;W1(qe(e))&&a===1&&Fa(e,r)===1&&(s=!1),i=o*(a-Number(s))}return i===0?0:i}function V1(e,t,n){Ye(2,arguments);var r=Av(e,t)/3;return bi(void 0)(r)}function U1(e,t,n){Ye(2,arguments);var r=il(e,t)/1e3;return bi(void 0)(r)}function q1(e,t,n){Ye(2,arguments);var r=_v(e,t)/7;return bi(void 0)(r)}function H1(e,t){Ye(2,arguments);var n=qe(e),r=qe(t),o=Fa(n,r),a=Math.abs(L1(n,r));n.setFullYear(1584),r.setFullYear(1584);var i=Fa(n,r)===-o,s=o*(a-Number(i));return s===0?0:s}function G1(e,t){var n;Ye(1,arguments);var r=e||{},o=qe(r.start),a=qe(r.end),i=a.getTime();if(!(o.getTime()<=i))throw new RangeError("Invalid interval");var s=[],c=o;c.setHours(0,0,0,0);var l=Number((n=void 0)!==null&&n!==void 0?n:1);if(l<1||isNaN(l))throw new RangeError("`options.step` must be a number greater than 1");for(;c.getTime()<=i;)s.push(qe(c)),c.setDate(c.getDate()+l),c.setHours(0,0,0,0);return s}function K1(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function Y1(e,t){var n,r;Ye(1,arguments);var o=qe(e);if(isNaN(o.getTime()))throw new RangeError("Invalid time value");var a=String((n=t==null?void 0:t.format)!==null&&n!==void 0?n:"extended"),i=String((r=t==null?void 0:t.representation)!==null&&r!==void 0?r:"complete");if(a!=="extended"&&a!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(i!=="date"&&i!=="time"&&i!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var s="",c="",l=a==="extended"?"-":"",d=a==="extended"?":":"";if(i!=="time"){var u=sr(o.getDate(),2),f=sr(o.getMonth()+1,2),m=sr(o.getFullYear(),4);s="".concat(m).concat(l).concat(f).concat(l).concat(u)}if(i!=="date"){var b=o.getTimezoneOffset();if(b!==0){var h=Math.abs(b),x=sr(Math.floor(h/60),2),v=sr(h%60,2),g=b<0?"+":"-";c="".concat(g).concat(x,":").concat(v)}else c="Z";var p=sr(o.getHours(),2),y=sr(o.getMinutes(),2),D=sr(o.getSeconds(),2),P=s===""?"":"T",T=[p,y,D].join(d);s="".concat(s).concat(P).concat(T).concat(c)}return s}function X1(e){Ye(1,arguments);var t=qe(e),n=t.getDay();return n}function Q1(e){Ye(1,arguments);var t=qe(e),n=t.getHours();return n}function Z1(e){Ye(1,arguments);var t=qe(e),n=t.getMinutes();return n}function J1(e){Ye(1,arguments);var t=qe(e),n=t.getSeconds();return n}function eP(e,t){Ye(2,arguments);var n=qe(e),r=qe(t);return n.getTime()===r.getTime()}function um(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=zw(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(l){throw l},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var l=n.next();return i=l.done,l},e:function(l){s=!0,a=l},f:function(){try{i||n.return==null||n.return()}finally{if(s)throw a}}}}function Bv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Bv=function(){return!!e})()}function rt(e){var t=Bv();return function(){var n,r=tm(e);if(t){var o=tm(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return NS(this,n)}}var tP=10,jv=function(){function e(){Je(this,e),Ce(this,"priority",void 0),Ce(this,"subPriority",0)}return Ze(e,[{key:"validate",value:function(n,r){return!0}}]),e}(),nP=function(e){nt(n,e);var t=rt(n);function n(r,o,a,i,s){var c;return Je(this,n),c=t.call(this),c.value=r,c.validateValue=o,c.setValue=a,c.priority=i,s&&(c.subPriority=s),c}return Ze(n,[{key:"validate",value:function(o,a){return this.validateValue(o,this.value,a)}},{key:"set",value:function(o,a,i){return this.setValue(o,a,this.value,i)}}]),n}(jv),rP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",tP),Ce(Te(r),"subPriority",-1),r}return Ze(n,[{key:"set",value:function(o,a){if(a.timestampIsSet)return o;var i=new Date(0);return i.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),i.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),i}}]),n}(jv),at=function(){function e(){Je(this,e),Ce(this,"incompatibleTokens",void 0),Ce(this,"priority",void 0),Ce(this,"subPriority",void 0)}return Ze(e,[{key:"run",value:function(n,r,o,a){var i=this.parse(n,r,o,a);return i?{setter:new nP(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}},{key:"validate",value:function(n,r,o){return!0}}]),e}(),oP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",140),Ce(Te(r),"incompatibleTokens",["R","u","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){switch(a){case"G":case"GG":case"GGG":return i.era(o,{width:"abbreviated"})||i.era(o,{width:"narrow"});case"GGGGG":return i.era(o,{width:"narrow"});case"GGGG":default:return i.era(o,{width:"wide"})||i.era(o,{width:"abbreviated"})||i.era(o,{width:"narrow"})}}},{key:"set",value:function(o,a,i){return a.era=i,o.setUTCFullYear(i,0,1),o.setUTCHours(0,0,0,0),o}}]),n}(at),Dt={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Nn={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Rt(e,t){return e&&{value:t(e.value),rest:e.rest}}function vt(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Fn(e,t){var n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};var r=n[1]==="+"?1:-1,o=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,i=n[5]?parseInt(n[5],10):0;return{value:r*(o*Tv+a*kv+i*HS),rest:t.slice(n[0].length)}}function Lv(e){return vt(Dt.anyDigitsSigned,e)}function kt(e,t){switch(e){case 1:return vt(Dt.singleDigit,t);case 2:return vt(Dt.twoDigits,t);case 3:return vt(Dt.threeDigits,t);case 4:return vt(Dt.fourDigits,t);default:return vt(new RegExp("^\\d{1,"+e+"}"),t)}}function Ps(e,t){switch(e){case 1:return vt(Dt.singleDigitSigned,t);case 2:return vt(Dt.twoDigitsSigned,t);case 3:return vt(Dt.threeDigitsSigned,t);case 4:return vt(Dt.fourDigitsSigned,t);default:return vt(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Ad(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Nv(e,t){var n=t>0,r=n?t:1-t,o;if(r<=50)o=e||100;else{var a=r+50,i=Math.floor(a/100)*100,s=e>=a%100;o=e+i-(s?100:0)}return n?o:1-o}function Fv(e){return e%400===0||e%4===0&&e%100!==0}var aP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",130),Ce(Te(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){var s=function(l){return{year:l,isTwoDigitYear:a==="yy"}};switch(a){case"y":return Rt(kt(4,o),s);case"yo":return Rt(i.ordinalNumber(o,{unit:"year"}),s);default:return Rt(kt(a.length,o),s)}}},{key:"validate",value:function(o,a){return a.isTwoDigitYear||a.year>0}},{key:"set",value:function(o,a,i){var s=o.getUTCFullYear();if(i.isTwoDigitYear){var c=Nv(i.year,s);return o.setUTCFullYear(c,0,1),o.setUTCHours(0,0,0,0),o}var l=!("era"in a)||a.era===1?i.year:1-i.year;return o.setUTCFullYear(l,0,1),o.setUTCHours(0,0,0,0),o}}]),n}(at),iP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",130),Ce(Te(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){var s=function(l){return{year:l,isTwoDigitYear:a==="YY"}};switch(a){case"Y":return Rt(kt(4,o),s);case"Yo":return Rt(i.ordinalNumber(o,{unit:"year"}),s);default:return Rt(kt(a.length,o),s)}}},{key:"validate",value:function(o,a){return a.isTwoDigitYear||a.year>0}},{key:"set",value:function(o,a,i,s){var c=GS(o,s);if(i.isTwoDigitYear){var l=Nv(i.year,c);return o.setUTCFullYear(l,0,s.firstWeekContainsDate),o.setUTCHours(0,0,0,0),Fu(o,s)}var d=!("era"in a)||a.era===1?i.year:1-i.year;return o.setUTCFullYear(d,0,s.firstWeekContainsDate),o.setUTCHours(0,0,0,0),Fu(o,s)}}]),n}(at),sP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",130),Ce(Te(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a){return Ps(a==="R"?4:a.length,o)}},{key:"set",value:function(o,a,i){var s=new Date(0);return s.setUTCFullYear(i,0,4),s.setUTCHours(0,0,0,0),Dv(s)}}]),n}(at),lP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",130),Ce(Te(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a){return Ps(a==="u"?4:a.length,o)}},{key:"set",value:function(o,a,i){return o.setUTCFullYear(i,0,1),o.setUTCHours(0,0,0,0),o}}]),n}(at),cP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",120),Ce(Te(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){switch(a){case"Q":case"QQ":return kt(a.length,o);case"Qo":return i.ordinalNumber(o,{unit:"quarter"});case"QQQ":return i.quarter(o,{width:"abbreviated",context:"formatting"})||i.quarter(o,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(o,{width:"wide",context:"formatting"})||i.quarter(o,{width:"abbreviated",context:"formatting"})||i.quarter(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=1&&a<=4}},{key:"set",value:function(o,a,i){return o.setUTCMonth((i-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),n}(at),uP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",120),Ce(Te(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){switch(a){case"q":case"qq":return kt(a.length,o);case"qo":return i.ordinalNumber(o,{unit:"quarter"});case"qqq":return i.quarter(o,{width:"abbreviated",context:"standalone"})||i.quarter(o,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(o,{width:"wide",context:"standalone"})||i.quarter(o,{width:"abbreviated",context:"standalone"})||i.quarter(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,a){return a>=1&&a<=4}},{key:"set",value:function(o,a,i){return o.setUTCMonth((i-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),n}(at),dP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Ce(Te(r),"priority",110),r}return Ze(n,[{key:"parse",value:function(o,a,i){var s=function(l){return l-1};switch(a){case"M":return Rt(vt(Dt.month,o),s);case"MM":return Rt(kt(2,o),s);case"Mo":return Rt(i.ordinalNumber(o,{unit:"month"}),s);case"MMM":return i.month(o,{width:"abbreviated",context:"formatting"})||i.month(o,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(o,{width:"wide",context:"formatting"})||i.month(o,{width:"abbreviated",context:"formatting"})||i.month(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=11}},{key:"set",value:function(o,a,i){return o.setUTCMonth(i,1),o.setUTCHours(0,0,0,0),o}}]),n}(at),fP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",110),Ce(Te(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){var s=function(l){return l-1};switch(a){case"L":return Rt(vt(Dt.month,o),s);case"LL":return Rt(kt(2,o),s);case"Lo":return Rt(i.ordinalNumber(o,{unit:"month"}),s);case"LLL":return i.month(o,{width:"abbreviated",context:"standalone"})||i.month(o,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(o,{width:"wide",context:"standalone"})||i.month(o,{width:"abbreviated",context:"standalone"})||i.month(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=11}},{key:"set",value:function(o,a,i){return o.setUTCMonth(i,1),o.setUTCHours(0,0,0,0),o}}]),n}(at);function pP(e,t,n){Ye(2,arguments);var r=qe(e),o=Xt(t),a=KS(r,n)-o;return r.setUTCDate(r.getUTCDate()-a*7),r}var mP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",100),Ce(Te(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){switch(a){case"w":return vt(Dt.week,o);case"wo":return i.ordinalNumber(o,{unit:"week"});default:return kt(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=53}},{key:"set",value:function(o,a,i,s){return Fu(pP(o,i,s),s)}}]),n}(at);function hP(e,t){Ye(2,arguments);var n=qe(e),r=Xt(t),o=YS(n)-r;return n.setUTCDate(n.getUTCDate()-o*7),n}var gP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",100),Ce(Te(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){switch(a){case"I":return vt(Dt.week,o);case"Io":return i.ordinalNumber(o,{unit:"week"});default:return kt(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=53}},{key:"set",value:function(o,a,i){return Dv(hP(o,i))}}]),n}(at),bP=[31,28,31,30,31,30,31,31,30,31,30,31],vP=[31,29,31,30,31,30,31,31,30,31,30,31],yP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",90),Ce(Te(r),"subPriority",1),Ce(Te(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){switch(a){case"d":return vt(Dt.date,o);case"do":return i.ordinalNumber(o,{unit:"date"});default:return kt(a.length,o)}}},{key:"validate",value:function(o,a){var i=o.getUTCFullYear(),s=Fv(i),c=o.getUTCMonth();return s?a>=1&&a<=vP[c]:a>=1&&a<=bP[c]}},{key:"set",value:function(o,a,i){return o.setUTCDate(i),o.setUTCHours(0,0,0,0),o}}]),n}(at),CP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",90),Ce(Te(r),"subpriority",1),Ce(Te(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){switch(a){case"D":case"DD":return vt(Dt.dayOfYear,o);case"Do":return i.ordinalNumber(o,{unit:"date"});default:return kt(a.length,o)}}},{key:"validate",value:function(o,a){var i=o.getUTCFullYear(),s=Fv(i);return s?a>=1&&a<=366:a>=1&&a<=365}},{key:"set",value:function(o,a,i){return o.setUTCMonth(0,i),o.setUTCHours(0,0,0,0),o}}]),n}(at);function Bd(e,t,n){var r,o,a,i,s,c,l,d;Ye(2,arguments);var u=Rv(),f=Xt((r=(o=(a=(i=n==null?void 0:n.weekStartsOn)!==null&&i!==void 0?i:n==null||(s=n.locale)===null||s===void 0||(c=s.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&a!==void 0?a:u.weekStartsOn)!==null&&o!==void 0?o:(l=u.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=qe(e),b=Xt(t),h=m.getUTCDay(),x=b%7,v=(x+7)%7,g=(v<f?7:0)+b-h;return m.setUTCDate(m.getUTCDate()+g),m}var xP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",90),Ce(Te(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){switch(a){case"E":case"EE":case"EEE":return i.day(o,{width:"abbreviated",context:"formatting"})||i.day(o,{width:"short",context:"formatting"})||i.day(o,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(o,{width:"short",context:"formatting"})||i.day(o,{width:"narrow",context:"formatting"});case"EEEE":default:return i.day(o,{width:"wide",context:"formatting"})||i.day(o,{width:"abbreviated",context:"formatting"})||i.day(o,{width:"short",context:"formatting"})||i.day(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=6}},{key:"set",value:function(o,a,i,s){return o=Bd(o,i,s),o.setUTCHours(0,0,0,0),o}}]),n}(at),wP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",90),Ce(Te(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i,s){var c=function(d){var u=Math.floor((d-1)/7)*7;return(d+s.weekStartsOn+6)%7+u};switch(a){case"e":case"ee":return Rt(kt(a.length,o),c);case"eo":return Rt(i.ordinalNumber(o,{unit:"day"}),c);case"eee":return i.day(o,{width:"abbreviated",context:"formatting"})||i.day(o,{width:"short",context:"formatting"})||i.day(o,{width:"narrow",context:"formatting"});case"eeeee":return i.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(o,{width:"short",context:"formatting"})||i.day(o,{width:"narrow",context:"formatting"});case"eeee":default:return i.day(o,{width:"wide",context:"formatting"})||i.day(o,{width:"abbreviated",context:"formatting"})||i.day(o,{width:"short",context:"formatting"})||i.day(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=6}},{key:"set",value:function(o,a,i,s){return o=Bd(o,i,s),o.setUTCHours(0,0,0,0),o}}]),n}(at),SP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",90),Ce(Te(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i,s){var c=function(d){var u=Math.floor((d-1)/7)*7;return(d+s.weekStartsOn+6)%7+u};switch(a){case"c":case"cc":return Rt(kt(a.length,o),c);case"co":return Rt(i.ordinalNumber(o,{unit:"day"}),c);case"ccc":return i.day(o,{width:"abbreviated",context:"standalone"})||i.day(o,{width:"short",context:"standalone"})||i.day(o,{width:"narrow",context:"standalone"});case"ccccc":return i.day(o,{width:"narrow",context:"standalone"});case"cccccc":return i.day(o,{width:"short",context:"standalone"})||i.day(o,{width:"narrow",context:"standalone"});case"cccc":default:return i.day(o,{width:"wide",context:"standalone"})||i.day(o,{width:"abbreviated",context:"standalone"})||i.day(o,{width:"short",context:"standalone"})||i.day(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=6}},{key:"set",value:function(o,a,i,s){return o=Bd(o,i,s),o.setUTCHours(0,0,0,0),o}}]),n}(at);function PP(e,t){Ye(2,arguments);var n=Xt(t);n%7===0&&(n=n-7);var r=1,o=qe(e),a=o.getUTCDay(),i=n%7,s=(i+7)%7,c=(s<r?7:0)+n-a;return o.setUTCDate(o.getUTCDate()+c),o}var TP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",90),Ce(Te(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){var s=function(l){return l===0?7:l};switch(a){case"i":case"ii":return kt(a.length,o);case"io":return i.ordinalNumber(o,{unit:"day"});case"iii":return Rt(i.day(o,{width:"abbreviated",context:"formatting"})||i.day(o,{width:"short",context:"formatting"})||i.day(o,{width:"narrow",context:"formatting"}),s);case"iiiii":return Rt(i.day(o,{width:"narrow",context:"formatting"}),s);case"iiiiii":return Rt(i.day(o,{width:"short",context:"formatting"})||i.day(o,{width:"narrow",context:"formatting"}),s);case"iiii":default:return Rt(i.day(o,{width:"wide",context:"formatting"})||i.day(o,{width:"abbreviated",context:"formatting"})||i.day(o,{width:"short",context:"formatting"})||i.day(o,{width:"narrow",context:"formatting"}),s)}}},{key:"validate",value:function(o,a){return a>=1&&a<=7}},{key:"set",value:function(o,a,i){return o=PP(o,i),o.setUTCHours(0,0,0,0),o}}]),n}(at),kP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",80),Ce(Te(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){switch(a){case"a":case"aa":case"aaa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"})||i.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(o,{width:"wide",context:"formatting"})||i.dayPeriod(o,{width:"abbreviated",context:"formatting"})||i.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,a,i){return o.setUTCHours(Ad(i),0,0,0),o}}]),n}(at),DP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",80),Ce(Te(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){switch(a){case"b":case"bb":case"bbb":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"})||i.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(o,{width:"wide",context:"formatting"})||i.dayPeriod(o,{width:"abbreviated",context:"formatting"})||i.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,a,i){return o.setUTCHours(Ad(i),0,0,0),o}}]),n}(at),RP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",80),Ce(Te(r),"incompatibleTokens",["a","b","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){switch(a){case"B":case"BB":case"BBB":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"})||i.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(o,{width:"wide",context:"formatting"})||i.dayPeriod(o,{width:"abbreviated",context:"formatting"})||i.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,a,i){return o.setUTCHours(Ad(i),0,0,0),o}}]),n}(at),EP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",70),Ce(Te(r),"incompatibleTokens",["H","K","k","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){switch(a){case"h":return vt(Dt.hour12h,o);case"ho":return i.ordinalNumber(o,{unit:"hour"});default:return kt(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=12}},{key:"set",value:function(o,a,i){var s=o.getUTCHours()>=12;return s&&i<12?o.setUTCHours(i+12,0,0,0):!s&&i===12?o.setUTCHours(0,0,0,0):o.setUTCHours(i,0,0,0),o}}]),n}(at),MP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",70),Ce(Te(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){switch(a){case"H":return vt(Dt.hour23h,o);case"Ho":return i.ordinalNumber(o,{unit:"hour"});default:return kt(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=23}},{key:"set",value:function(o,a,i){return o.setUTCHours(i,0,0,0),o}}]),n}(at),$P=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",70),Ce(Te(r),"incompatibleTokens",["h","H","k","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){switch(a){case"K":return vt(Dt.hour11h,o);case"Ko":return i.ordinalNumber(o,{unit:"hour"});default:return kt(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=11}},{key:"set",value:function(o,a,i){var s=o.getUTCHours()>=12;return s&&i<12?o.setUTCHours(i+12,0,0,0):o.setUTCHours(i,0,0,0),o}}]),n}(at),OP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",70),Ce(Te(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){switch(a){case"k":return vt(Dt.hour24h,o);case"ko":return i.ordinalNumber(o,{unit:"hour"});default:return kt(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=24}},{key:"set",value:function(o,a,i){var s=i<=24?i%24:i;return o.setUTCHours(s,0,0,0),o}}]),n}(at),IP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",60),Ce(Te(r),"incompatibleTokens",["t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){switch(a){case"m":return vt(Dt.minute,o);case"mo":return i.ordinalNumber(o,{unit:"minute"});default:return kt(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=59}},{key:"set",value:function(o,a,i){return o.setUTCMinutes(i,0,0),o}}]),n}(at),_P=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",50),Ce(Te(r),"incompatibleTokens",["t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a,i){switch(a){case"s":return vt(Dt.second,o);case"so":return i.ordinalNumber(o,{unit:"second"});default:return kt(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=59}},{key:"set",value:function(o,a,i){return o.setUTCSeconds(i,0),o}}]),n}(at),AP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",30),Ce(Te(r),"incompatibleTokens",["t","T"]),r}return Ze(n,[{key:"parse",value:function(o,a){var i=function(c){return Math.floor(c*Math.pow(10,-a.length+3))};return Rt(kt(a.length,o),i)}},{key:"set",value:function(o,a,i){return o.setUTCMilliseconds(i),o}}]),n}(at),BP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",10),Ce(Te(r),"incompatibleTokens",["t","T","x"]),r}return Ze(n,[{key:"parse",value:function(o,a){switch(a){case"X":return Fn(Nn.basicOptionalMinutes,o);case"XX":return Fn(Nn.basic,o);case"XXXX":return Fn(Nn.basicOptionalSeconds,o);case"XXXXX":return Fn(Nn.extendedOptionalSeconds,o);case"XXX":default:return Fn(Nn.extended,o)}}},{key:"set",value:function(o,a,i){return a.timestampIsSet?o:new Date(o.getTime()-i)}}]),n}(at),jP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",10),Ce(Te(r),"incompatibleTokens",["t","T","X"]),r}return Ze(n,[{key:"parse",value:function(o,a){switch(a){case"x":return Fn(Nn.basicOptionalMinutes,o);case"xx":return Fn(Nn.basic,o);case"xxxx":return Fn(Nn.basicOptionalSeconds,o);case"xxxxx":return Fn(Nn.extendedOptionalSeconds,o);case"xxx":default:return Fn(Nn.extended,o)}}},{key:"set",value:function(o,a,i){return a.timestampIsSet?o:new Date(o.getTime()-i)}}]),n}(at),LP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",40),Ce(Te(r),"incompatibleTokens","*"),r}return Ze(n,[{key:"parse",value:function(o){return Lv(o)}},{key:"set",value:function(o,a,i){return[new Date(i*1e3),{timestampIsSet:!0}]}}]),n}(at),NP=function(e){nt(n,e);var t=rt(n);function n(){var r;Je(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),Ce(Te(r),"priority",20),Ce(Te(r),"incompatibleTokens","*"),r}return Ze(n,[{key:"parse",value:function(o){return Lv(o)}},{key:"set",value:function(o,a,i){return[new Date(i),{timestampIsSet:!0}]}}]),n}(at),FP={G:new oP,y:new aP,Y:new iP,R:new sP,u:new lP,Q:new cP,q:new uP,M:new dP,L:new fP,w:new mP,I:new gP,d:new yP,D:new CP,E:new xP,e:new wP,c:new SP,i:new TP,a:new kP,b:new DP,B:new RP,h:new EP,H:new MP,K:new $P,k:new OP,m:new IP,s:new _P,S:new AP,X:new BP,x:new jP,t:new LP,T:new NP},zP=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,WP=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,VP=/^'([^]*?)'?$/,UP=/''/g,qP=/\S/,HP=/[a-zA-Z]/;function GP(e,t,n,r){var o,a,i,s,c,l,d,u,f,m,b,h,x,v,g,p,y,D;Ye(3,arguments);var P=String(e),T=String(t),k=Rv(),C=(o=(a=r==null?void 0:r.locale)!==null&&a!==void 0?a:k.locale)!==null&&o!==void 0?o:_d;if(!C.match)throw new RangeError("locale must contain match property");var R=Xt((i=(s=(c=(l=r==null?void 0:r.firstWeekContainsDate)!==null&&l!==void 0?l:r==null||(d=r.locale)===null||d===void 0||(u=d.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&c!==void 0?c:k.firstWeekContainsDate)!==null&&s!==void 0?s:(f=k.locale)===null||f===void 0||(m=f.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(R>=1&&R<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var M=Xt((b=(h=(x=(v=r==null?void 0:r.weekStartsOn)!==null&&v!==void 0?v:r==null||(g=r.locale)===null||g===void 0||(p=g.options)===null||p===void 0?void 0:p.weekStartsOn)!==null&&x!==void 0?x:k.weekStartsOn)!==null&&h!==void 0?h:(y=k.locale)===null||y===void 0||(D=y.options)===null||D===void 0?void 0:D.weekStartsOn)!==null&&b!==void 0?b:0);if(!(M>=0&&M<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(T==="")return P===""?qe(n):new Date(NaN);var $={firstWeekContainsDate:R,weekStartsOn:M,locale:C},O=[new rP],I=T.match(WP).map(function(H){var K=H[0];if(K in nm){var Q=nm[K];return Q(H,C.formatLong)}return H}).join("").match(zP),A=[],B=um(I),N;try{var j=function(){var K=N.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&XS(K)&&rm(K,T,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&QS(K)&&rm(K,T,e);var Q=K[0],ae=FP[Q];if(ae){var Y=ae.incompatibleTokens;if(Array.isArray(Y)){var J=A.find(function(be){return Y.includes(be.token)||be.token===Q});if(J)throw new RangeError("The format string mustn't contain `".concat(J.fullToken,"` and `").concat(K,"` at the same time"))}else if(ae.incompatibleTokens==="*"&&A.length>0)throw new RangeError("The format string mustn't contain `".concat(K,"` and any other token at the same time"));A.push({token:Q,fullToken:K});var re=ae.run(P,K,C.match,$);if(!re)return{v:new Date(NaN)};O.push(re.setter),P=re.rest}else{if(Q.match(HP))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Q+"`");if(K==="''"?K="'":Q==="'"&&(K=KP(K)),P.indexOf(K)===0)P=P.slice(K.length);else return{v:new Date(NaN)}}};for(B.s();!(N=B.n()).done;){var W=j();if(Ww(W)==="object")return W.v}}catch(H){B.e(H)}finally{B.f()}if(P.length>0&&qP.test(P))return new Date(NaN);var G=O.map(function(H){return H.priority}).sort(function(H,K){return K-H}).filter(function(H,K,Q){return Q.indexOf(H)===K}).map(function(H){return O.filter(function(K){return K.priority===H}).sort(function(K,Q){return Q.subPriority-K.subPriority})}).map(function(H){return H[0]}),E=qe(n);if(isNaN(E.getTime()))return new Date(NaN);var U=ZS(E,Lu(E)),V={},_=um(G),z;try{for(_.s();!(z=_.n()).done;){var F=z.value;if(!F.validate(U,$))return new Date(NaN);var q=F.set(U,V,$);Array.isArray(q)?(U=q[0],K1(V,q[1])):U=q}}catch(H){_.e(H)}finally{_.f()}return U}function KP(e){return e.match(VP)[1].replace(UP,"'")}function dm(e){Ye(1,arguments);var t=qe(e);return t.setMinutes(0,0,0),t}function YP(e,t){Ye(2,arguments);var n=dm(e),r=dm(t);return n.getTime()===r.getTime()}function XP(e,t){Ye(2,arguments);var n=qe(e),r=qe(t);return n.getFullYear()===r.getFullYear()}function QP(e,t){Ye(2,arguments);var n=qe(e),r=Xt(t);return n.setDate(r),n}function ZP(e,t){Ye(2,arguments);var n=qe(e),r=Xt(t);return n.setHours(r),n}function JP(e,t){Ye(2,arguments);var n=qe(e),r=Xt(t);return n.setMinutes(r),n}function eT(e,t){Ye(2,arguments);var n=qe(e),r=Xt(t);return n.setSeconds(r),n}var jd={},tT=Se;Object.defineProperty(jd,"__esModule",{value:!0});var zv=jd.default=void 0,nT=tT(Pr()),rT=w;zv=jd.default=(0,nT.default)((0,rT.jsx)("path",{d:"M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79s7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.64 6.29-3.51 3.48-9.21 3.48-12.72 0-3.5-3.47-3.53-9.11-.02-12.58s9.14-3.47 12.65 0L21 3zM12.5 8v4.25l3.5 2.08-.72 1.21L11 13V8z"}),"Update");var Ld={},oT=Se;Object.defineProperty(Ld,"__esModule",{value:!0});var Wv=Ld.default=void 0,aT=oT(Pr()),iT=w;Wv=Ld.default=(0,aT.default)((0,iT.jsx)("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward");function Nd({children:e,...t}){var l;const{t:n}=Qt(),{api:r}=Yt(),{blocklet:o}=Ur(),a=(l=o==null?void 0:o.settings)==null?void 0:l.autoCheckUpdate,i=async d=>{await r.updateAutoCheckUpdate({input:{did:o.meta.did,autoCheckUpdate:d}})},s=async()=>{try{const d=!(a!=null&&a.enabled);await i({enabled:d}),ot.success(n(d?"storage.spaces.autoCheckUpdate.enabled":"storage.spaces.autoCheckUpdate.disabled"))}catch(d){ot.error(d.message)}},c=!!(a!=null&&a.enabled);return w.jsxs(Re,{display:"flex",flexDirection:"row",alignItems:"center",children:[e,w.jsx(Wn,{title:n("storage.spaces.autoCheckUpdate.title"),arrow:!0,placement:"right",children:w.jsx("div",{children:w.jsx(LS,{checked:c,onChange:s,name:"enableWelcomePage",style:{...t.style,zoom:.8}})})})]})}Nd.propTypes={children:ie.any};Nd.defaultProps={children:null};var Fd={},sT=Se;Object.defineProperty(Fd,"__esModule",{value:!0});var sl=Fd.default=void 0,lT=sT(Pr()),cT=w;sl=Fd.default=(0,lT.default)((0,cT.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit");var Vv={},Go={},wc={};function Uv(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Uv(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ye(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Uv(e))&&(r&&(r+=" "),r+=t);return r}function Ne(e,t,n=void 0){const r={};for(const o in e){const a=e[o];let i="",s=!0;for(let c=0;c<a.length;c+=1){const l=a[c];l&&(i+=(s===!0?"":" ")+t(l),s=!1,n&&n[l]&&(i+=" "+n[l]))}r[o]=i}return r}function Ts(e){return typeof e=="string"}function Vu(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}function qv(e){if(typeof e!="string")throw new Error(Vu(7));return e.charAt(0).toUpperCase()+e.slice(1)}function mr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Hv(e){if(!mr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Hv(e[n])}),t}function Lr(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return mr(e)&&mr(t)&&Object.keys(t).forEach(o=>{mr(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&mr(e[o])?r[o]=Lr(e[o],t[o],n):n.clone?r[o]=mr(t[o])?Hv(t[o]):t[o]:r[o]=t[o]}),r}function za(e,t){return t?Lr(e,t,{clone:!1}):e}function uT(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{var i,s;const a=/min-width:\s*([0-9.]+)/;return+(((i=r.match(a))==null?void 0:i[1])||0)-+(((s=o.match(a))==null?void 0:s[1])||0)});return n.length?n.reduce((r,o)=>{const a=t[o];return delete r[o],r[o]=a,r},{...t}):t}function dT(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function fT(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(a)}function pT(e){const t=(a,i)=>a.replace("@media",i?`@container ${i}`:"@container");function n(a,i){a.up=(...s)=>t(e.breakpoints.up(...s),i),a.down=(...s)=>t(e.breakpoints.down(...s),i),a.between=(...s)=>t(e.breakpoints.between(...s),i),a.only=(...s)=>t(e.breakpoints.only(...s),i),a.not=(...s)=>{const c=t(e.breakpoints.not(...s),i);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const r={},o=a=>(n(r,a),r);return n(o),{...e,containerQueries:o}}const ll={xs:0,sm:600,md:900,lg:1200,xl:1536},fm={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ll[e]}px)`},mT={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:ll[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Jn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||fm;return t.reduce((i,s,c)=>(i[a.up(a.keys[c])]=n(t[c]),i),{})}if(typeof t=="object"){const a=r.breakpoints||fm;return Object.keys(t).reduce((i,s)=>{if(dT(a.keys,s)){const c=fT(r.containerQueries?r:mT,s);c&&(i[c]=n(t[s],s))}else if(Object.keys(a.values||ll).includes(s)){const c=a.up(s);i[c]=n(t[s],s)}else{const c=s;i[c]=t[c]}return i},{})}return n(t)}function hT(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,o)=>{const a=e.up(o);return r[a]={},r},{}))||{}}function gT(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function cl(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function ks(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=cl(e,n)||r,t&&(o=t(o,r,e)),o}function Mt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=i=>{if(i[t]==null)return null;const s=i[t],c=i.theme,l=cl(c,r)||{};return Jn(i,s,u=>{let f=ks(l,o,u);return u===f&&typeof u=="string"&&(f=ks(l,o,`${t}${u==="default"?"":qv(u)}`,u)),n===!1?f:{[n]:f}})};return a.propTypes={},a.filterProps=[t],a}function bT(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const vT={m:"margin",p:"padding"},yT={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},pm={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},CT=bT(e=>{if(e.length>2)if(pm[e])e=pm[e];else return[e];const[t,n]=e.split(""),r=vT[t],o=yT[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]}),zd=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Wd=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...zd,...Wd];function vi(e,t,n,r){const o=cl(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?a=>typeof a=="string"?a:typeof o=="string"?`calc(${a} * ${o})`:o*a:Array.isArray(o)?a=>{if(typeof a=="string")return a;const i=Math.abs(a),s=o[i];return a>=0?s:typeof s=="number"?-s:`-${s}`}:typeof o=="function"?o:()=>{}}function Vd(e){return vi(e,"spacing",8)}function yi(e,t){return typeof t=="string"||t==null?t:e(t)}function xT(e,t){return n=>e.reduce((r,o)=>(r[o]=yi(t,n),r),{})}function wT(e,t,n,r){if(!t.includes(n))return null;const o=CT(n),a=xT(o,r),i=e[n];return Jn(e,i,a)}function Gv(e,t){const n=Vd(e.theme);return Object.keys(e).map(r=>wT(e,t,r,n)).reduce(za,{})}function xt(e){return Gv(e,zd)}xt.propTypes={};xt.filterProps=zd;function wt(e){return Gv(e,Wd)}wt.propTypes={};wt.filterProps=Wd;function ul(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(a=>{r[a]=o}),r),{}),n=r=>Object.keys(r).reduce((o,a)=>t[a]?za(o,t[a](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function mn(e){return typeof e!="number"?e:`${e}px solid`}function Tn(e,t){return Mt({prop:e,themeKey:"borders",transform:t})}const ST=Tn("border",mn),PT=Tn("borderTop",mn),TT=Tn("borderRight",mn),kT=Tn("borderBottom",mn),DT=Tn("borderLeft",mn),RT=Tn("borderColor"),ET=Tn("borderTopColor"),MT=Tn("borderRightColor"),$T=Tn("borderBottomColor"),OT=Tn("borderLeftColor"),IT=Tn("outline",mn),_T=Tn("outlineColor"),dl=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=vi(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:yi(t,r)});return Jn(e,e.borderRadius,n)}return null};dl.propTypes={};dl.filterProps=["borderRadius"];ul(ST,PT,TT,kT,DT,RT,ET,MT,$T,OT,dl,IT,_T);const fl=e=>{if(e.gap!==void 0&&e.gap!==null){const t=vi(e.theme,"spacing",8),n=r=>({gap:yi(t,r)});return Jn(e,e.gap,n)}return null};fl.propTypes={};fl.filterProps=["gap"];const pl=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=vi(e.theme,"spacing",8),n=r=>({columnGap:yi(t,r)});return Jn(e,e.columnGap,n)}return null};pl.propTypes={};pl.filterProps=["columnGap"];const ml=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=vi(e.theme,"spacing",8),n=r=>({rowGap:yi(t,r)});return Jn(e,e.rowGap,n)}return null};ml.propTypes={};ml.filterProps=["rowGap"];const AT=Mt({prop:"gridColumn"}),BT=Mt({prop:"gridRow"}),jT=Mt({prop:"gridAutoFlow"}),LT=Mt({prop:"gridAutoColumns"}),NT=Mt({prop:"gridAutoRows"}),FT=Mt({prop:"gridTemplateColumns"}),zT=Mt({prop:"gridTemplateRows"}),WT=Mt({prop:"gridTemplateAreas"}),VT=Mt({prop:"gridArea"});ul(fl,pl,ml,AT,BT,jT,LT,NT,FT,zT,WT,VT);function mo(e,t){return t==="grey"?t:e}const UT=Mt({prop:"color",themeKey:"palette",transform:mo}),qT=Mt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:mo}),HT=Mt({prop:"backgroundColor",themeKey:"palette",transform:mo});ul(UT,qT,HT);function en(e){return e<=1&&e!==0?`${e*100}%`:e}const GT=Mt({prop:"width",transform:en}),Ud=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,a,i,s,c;const r=((i=(a=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:a.values)==null?void 0:i[n])||ll[n];return r?((c=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:c.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:en(n)}};return Jn(e,e.maxWidth,t)}return null};Ud.filterProps=["maxWidth"];const KT=Mt({prop:"minWidth",transform:en}),YT=Mt({prop:"height",transform:en}),XT=Mt({prop:"maxHeight",transform:en}),QT=Mt({prop:"minHeight",transform:en});Mt({prop:"size",cssProperty:"width",transform:en});Mt({prop:"size",cssProperty:"height",transform:en});const ZT=Mt({prop:"boxSizing"});ul(GT,Ud,KT,YT,XT,QT,ZT);const Ci={border:{themeKey:"borders",transform:mn},borderTop:{themeKey:"borders",transform:mn},borderRight:{themeKey:"borders",transform:mn},borderBottom:{themeKey:"borders",transform:mn},borderLeft:{themeKey:"borders",transform:mn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:mn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:dl},color:{themeKey:"palette",transform:mo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:mo},backgroundColor:{themeKey:"palette",transform:mo},p:{style:wt},pt:{style:wt},pr:{style:wt},pb:{style:wt},pl:{style:wt},px:{style:wt},py:{style:wt},padding:{style:wt},paddingTop:{style:wt},paddingRight:{style:wt},paddingBottom:{style:wt},paddingLeft:{style:wt},paddingX:{style:wt},paddingY:{style:wt},paddingInline:{style:wt},paddingInlineStart:{style:wt},paddingInlineEnd:{style:wt},paddingBlock:{style:wt},paddingBlockStart:{style:wt},paddingBlockEnd:{style:wt},m:{style:xt},mt:{style:xt},mr:{style:xt},mb:{style:xt},ml:{style:xt},mx:{style:xt},my:{style:xt},margin:{style:xt},marginTop:{style:xt},marginRight:{style:xt},marginBottom:{style:xt},marginLeft:{style:xt},marginX:{style:xt},marginY:{style:xt},marginInline:{style:xt},marginInlineStart:{style:xt},marginInlineEnd:{style:xt},marginBlock:{style:xt},marginBlockStart:{style:xt},marginBlockEnd:{style:xt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:fl},rowGap:{style:ml},columnGap:{style:pl},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:en},maxWidth:{style:Ud},minWidth:{transform:en},height:{transform:en},maxHeight:{transform:en},minHeight:{transform:en},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function JT(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function ek(e,t){return typeof e=="function"?e(t):e}function tk(){function e(n,r,o,a){const i={[n]:r,theme:o},s=a[n];if(!s)return{[n]:r};const{cssProperty:c=n,themeKey:l,transform:d,style:u}=s;if(r==null)return null;if(l==="typography"&&r==="inherit")return{[n]:r};const f=cl(o,l)||{};return u?u(i):Jn(i,r,b=>{let h=ks(f,d,b);return b===h&&typeof b=="string"&&(h=ks(f,d,`${n}${b==="default"?"":qv(b)}`,b)),c===!1?h:{[c]:h}})}function t(n){const{sx:r,theme:o={}}=n||{};if(!r)return null;const a=o.unstable_sxConfig??Ci;function i(s){let c=s;if(typeof s=="function")c=s(o);else if(typeof s!="object")return s;if(!c)return null;const l=hT(o.breakpoints),d=Object.keys(l);let u=l;return Object.keys(c).forEach(f=>{const m=ek(c[f],o);if(m!=null)if(typeof m=="object")if(a[f])u=za(u,e(f,m,o,a));else{const b=Jn({theme:o},m,h=>({[f]:h}));JT(b,m)?u[f]=t({sx:m,theme:o}):u=za(u,b)}else u=za(u,e(f,m,o,a))}),uT(o,gT(d,u))}return Array.isArray(r)?r.map(i):i(r)}return t}const Hr=tk();Hr.filterProps=["sx"];const nk=e=>{var r;const t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??Ci;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function Kv(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=nk(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...i)=>{const s=t(...i);return mr(s)?{...r,...s}:r}:a={...r,...t},{...o,sx:a}}const rk=e=>{const t=fv(e);class n extends Vw{constructor(o){super(o),this.prepend=t.sheet.prepend}}return t.sheet=new n({key:t.key,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy,prepend:t.sheet.prepend,insertionPoint:t.sheet.insertionPoint}),t};let Uu;typeof document=="object"&&(Uu=rk({key:"css",prepend:!0}));function ok(e){const{injectFirst:t,children:n}=e;return t&&Uu?w.jsx(dv,{value:Uu,children:n}):n}function ak(e){return e==null||Object.keys(e).length===0}function Yv(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(ak(o)?n:o):t;return w.jsx(pv,{styles:r})}/**
3
3
  * @mui/styled-engine v6.1.0
4
4
  *
@@ -0,0 +1,32 @@
1
+ import{j as i,aa as U,E as f,t as q}from"./vendor-mui-core-DrGFkjqr.js";import{r as c}from"./vendor-react-D-afvo_7.js";import{x as F,U as G,ad as M,G as z}from"./vendor-utils-5TjOM6td.js";import{e as H,b as D,j as Y}from"./vendor-arcblock-CLdpcBR_.js";import{S as Q}from"./index-CR0qrcky.js";import{P as $}from"./page-header-BVxfqM_P.js";import{o as V,J as W,h as d,f as _}from"./index-dZzRZ2ZY.js";import{S as J}from"./layout--JdBWkq8.js";import{S as X}from"./step-actions-EEz4d7kn.js";import{S as Z}from"./button-DYvqAiv_.js";import"./vendor-hooks-ZnvK17j8.js";import"./Done-BBJndopl.js";import"./Google-DLwblvhu.js";import"./cloneDeep-BRiLvZjr.js";import"./logo-uploader-CXyCerZA.js";import"./index-DoZ2YM4T.js";import"./content-layout-CE2kjm54.js";function y({children:h,bottom:E,onBottomFix:m}){const p=c.useRef(null),o=c.useRef(null),u=c.useRef(null),l=c.useRef(null),[g,C]=c.useState(!1);return c.useEffect(()=>{let a;const t=()=>{a||(a=setTimeout(()=>{o.current&&(o.current.scrollHeight>p.current.clientHeight-u.current.clientHeight?(l.current!=="fix"&&(m("fix"),l.current="fix"),C(!0)):(l.current!=="scroll"&&(m("scroll"),l.current="scroll"),C(!1))),a=null},50))};let s;return window.ResizeObserver?s=new ResizeObserver(t):window.addEventListener("resize",t),s.observe(p.current),s.observe(o.current),()=>{s?s.disconnect():window.removeEventListener("resize",t),a&&clearTimeout(a)}},[m]),i.jsxs(ee,{ref:p,className:`${g?"scroll-mode":""}`,children:[i.jsx("div",{className:"compact-context",ref:o,children:h}),i.jsx("div",{className:"fix-container",ref:u,children:E})]})}const ee=U.div`
2
+ display: flex;
3
+ flex-direction: column;
4
+ width: 100%;
5
+ height: 100%;
6
+ animation: fadein ease 0.5s;
7
+
8
+ .fix-container {
9
+ margin-top: auto;
10
+ width: 100%;
11
+ }
12
+
13
+ &.scroll-mode {
14
+ .compact-context {
15
+ flex: 1;
16
+ overflow-y: auto;
17
+ }
18
+ .fix-container {
19
+ margin-top: auto;
20
+ flex-shrink: 0;
21
+ }
22
+ }
23
+
24
+ @keyframes fadein {
25
+ 0% {
26
+ opacity: 0;
27
+ }
28
+ 100% {
29
+ opacity: 1;
30
+ }
31
+ }
32
+ `;y.propTypes={children:f.any,bottom:f.element.isRequired,onBottomFix:f.func};y.defaultProps={children:[],onBottomFix:()=>{}};function P({onNext:h,onPrevious:E,buttonText:m}){var k;const p=q(e=>e.breakpoints.down("md")),{t:o}=H(),[u,l]=c.useState(!1),[g,C]=c.useState(null),{did:a,blocklet:t,actions:s}=V(),{prefix:S,getSessionInHeader:B}=W();let x=(t.configs||[]).filter(e=>!d.BLOCKLET_CONFIGURABLE_KEY[e.key]);const O=t.environments.find(e=>e.key==="BLOCKLET_PASSPORT_COLOR"),R=F(D.WELLKNOWN_SERVICE_PATH_PREFIX,`/blocklet/logo?v=${t==null?void 0:t.updatedAt}`),A=[{key:d.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_SQUARE,description:o("blocklet.config.logoSquare"),value:(k=t.environments.find(e=>e.key==="BLOCKLET_APP_LOGO_SQUARE"))==null?void 0:k.value,componentType:"uploader",solo:!0,componentProps:{url:R,height:120,width:120,type:"square",did:a,prefix:S,headers:B,onUploaded:s.refreshBlocklet}},{key:d.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_NAME,description:o("blocklet.config.name"),value:t.environments.find(e=>e.key==="BLOCKLET_APP_NAME").value},{key:d.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_DESCRIPTION,description:o("blocklet.config.description"),value:t.environments.find(e=>e.key==="BLOCKLET_APP_DESCRIPTION").value},{key:d.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_PASSPORT_COLOR,description:o("blocklet.config.passportColor"),value:O?O.value:"auto",hidden:!0,componentType:"passport",componentProps:{blocklet:t}}],v=[];_.forEachChildSync(t,(e,{ancestors:n})=>{const r=n.slice(1).map(L=>L.meta.did);v.push((e.configs||[]).map(L=>({...L,childDid:r.concat(e.meta.did)})))}),t.meta.group===d.BlockletGroup.gateway&&(x=x.filter(e=>!e.secure&&e.shared));const b=G(M([...x,...v]),"key").filter(e=>!!e.key).sort((e,n)=>e.required&&!n.required?-1:n.required&&!e.required?1:0),N=_.getAppMissingConfigs(t).length,K=async e=>{const{childDid:n,...r}=g,L=[{...z(r,["key","value","description"]),value:e}];try{l(!0),await s.configBlocklet({configs:L,childDid:n})}catch(I){Y.error(I.message)}finally{l(!1)}},T={},w=[...A,...b].map(e=>{const{value:n,...r}=e;return T[e.key]=n,{...r}}),j=()=>{E()};return i.jsxs(J,{children:[i.jsx("div",{className:"header",style:{marginBottom:16},children:i.jsx($,{title:o("setup.config.title"),subTitle:o("setup.config.subTitle"),onClickBack:j})}),i.jsx("div",{className:"container-main",children:i.jsx("div",{className:"container-inner",children:i.jsx(y,{bottom:i.jsx(X,{mt:8,disabled:u||g,blocklet:t,onStartNow:()=>h("complete"),children:i.jsx(Z,{variant:"contained",disabled:u||N||g,onClick:()=>{s.refreshFuel({showError:!1}),h()},children:m||o("setup.next")})}),children:i.jsx(Q,{style:{margin:"0 auto 20px",paddingTop:p?0:38},loading:u,schema:w,defaultValue:T,onChange:(e,{action:n,currentItem:r})=>{n==="edit"?C(r):["cancel","confirm"].includes(n)&&C(null),n==="confirm"&&K(e[r.key])}})})})})]})}P.propTypes={buttonText:f.string,onNext:f.func,onPrevious:f.func};P.defaultProps={buttonText:"",onNext:()=>{},onPrevious:()=>{}};export{P as default};
@@ -1 +1 @@
1
- import{a1 as t,j as a}from"./vendor-mui-core-DrGFkjqr.js";import{a0 as c,b as e}from"./vendor-arcblock-EnQG-qe7.js";var r={},p=t;Object.defineProperty(r,"__esModule",{value:!0});var l=r.default=void 0,_=p(c()),f=a;l=r.default=(0,_.default)((0,f.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");var o={},h=t;Object.defineProperty(o,"__esModule",{value:!0});var u=o.default=void 0,m=h(c()),s=a;u=o.default=(0,m.default)([(0,s.jsx)("path",{d:"M18 11c.7 0 1.37.1 2 .29V10c0-1.1-.9-2-2-2h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h6.26c-.79-1.13-1.26-2.51-1.26-4 0-3.87 3.13-7 7-7M8.9 6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2H8.9z"},"0"),(0,s.jsx)("path",{d:"M18 13c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5m0 2c.83 0 1.5.67 1.5 1.5S18.83 18 18 18s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5m0 6c-1.03 0-1.94-.52-2.48-1.32.73-.42 1.57-.68 2.48-.68s1.75.26 2.48.68c-.54.8-1.45 1.32-2.48 1.32"},"1")],"LockPerson");var i={},C=t;Object.defineProperty(i,"__esModule",{value:!0});var v=i.default=void 0,S=C(c()),j=a;v=i.default=(0,S.default)((0,j.jsx)("path",{d:"M21 8V7l-3 2-3-2v1l3 2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2M8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3m6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1zm8-6h-8V6h8z"}),"ContactMail");var n={},O=t;Object.defineProperty(n,"__esModule",{value:!0});var d=n.default=void 0,z=O(c()),A=a;d=n.default=(0,z.default)((0,A.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}),"Public");const $=[{value:e.WHO_CAN_ACCESS.ALL,icon:d,title:{zh:"所有人可访问",en:"Accessible to all"},description:{zh:"向所有人开放,无需通行证即可访问应用",en:"Open to the world anyone can access without passport"}},{value:e.WHO_CAN_ACCESS.INVITED,icon:v,title:{zh:"只有被邀请的人可以访问",en:"Only invited people can access"},description:{zh:"稍后您可以在管理页面中邀请成员",en:"You can invite members later in the admin page"}},{value:e.WHO_CAN_ACCESS.ADMIN,icon:u,title:{zh:"只有管理员可以访问",en:"Only Owner or Admin of the application can access"},description:{zh:"必须提供管理员通行证才能访问应用",en:"You must provide owner or admin passport to access this application"}},{value:e.WHO_CAN_ACCESS.OWNER,icon:l,title:{zh:"只有应用所有者可以访问",en:"Only Owner of the application can access"},description:{zh:"必须提供所有者通行证才能访问应用",en:"You must provide owner passport to access this application"}}];export{$ as A,l as d};
1
+ import{a1 as t,j as a}from"./vendor-mui-core-DrGFkjqr.js";import{a0 as c,b as e}from"./vendor-arcblock-CLdpcBR_.js";var r={},p=t;Object.defineProperty(r,"__esModule",{value:!0});var l=r.default=void 0,_=p(c()),f=a;l=r.default=(0,_.default)((0,f.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");var o={},h=t;Object.defineProperty(o,"__esModule",{value:!0});var u=o.default=void 0,m=h(c()),s=a;u=o.default=(0,m.default)([(0,s.jsx)("path",{d:"M18 11c.7 0 1.37.1 2 .29V10c0-1.1-.9-2-2-2h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h6.26c-.79-1.13-1.26-2.51-1.26-4 0-3.87 3.13-7 7-7M8.9 6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2H8.9z"},"0"),(0,s.jsx)("path",{d:"M18 13c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5m0 2c.83 0 1.5.67 1.5 1.5S18.83 18 18 18s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5m0 6c-1.03 0-1.94-.52-2.48-1.32.73-.42 1.57-.68 2.48-.68s1.75.26 2.48.68c-.54.8-1.45 1.32-2.48 1.32"},"1")],"LockPerson");var i={},C=t;Object.defineProperty(i,"__esModule",{value:!0});var v=i.default=void 0,S=C(c()),j=a;v=i.default=(0,S.default)((0,j.jsx)("path",{d:"M21 8V7l-3 2-3-2v1l3 2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2M8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3m6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1zm8-6h-8V6h8z"}),"ContactMail");var n={},O=t;Object.defineProperty(n,"__esModule",{value:!0});var d=n.default=void 0,z=O(c()),A=a;d=n.default=(0,z.default)((0,A.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}),"Public");const $=[{value:e.WHO_CAN_ACCESS.ALL,icon:d,title:{zh:"所有人可访问",en:"Accessible to all"},description:{zh:"向所有人开放,无需通行证即可访问应用",en:"Open to the world anyone can access without passport"}},{value:e.WHO_CAN_ACCESS.INVITED,icon:v,title:{zh:"只有被邀请的人可以访问",en:"Only invited people can access"},description:{zh:"稍后您可以在管理页面中邀请成员",en:"You can invite members later in the admin page"}},{value:e.WHO_CAN_ACCESS.ADMIN,icon:u,title:{zh:"只有管理员可以访问",en:"Only Owner or Admin of the application can access"},description:{zh:"必须提供管理员通行证才能访问应用",en:"You must provide owner or admin passport to access this application"}},{value:e.WHO_CAN_ACCESS.OWNER,icon:l,title:{zh:"只有应用所有者可以访问",en:"Only Owner of the application can access"},description:{zh:"必须提供所有者通行证才能访问应用",en:"You must provide owner passport to access this application"}}];export{$ as A,l as d};