@abtnode/blocklet-services 1.16.21-beta-bd0e2503 → 1.16.21-beta-445a8baa

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 (176) hide show
  1. package/api/routes/blocklet.js +2 -2
  2. package/api/services/dashboard/index.js +8 -0
  3. package/api/util/index.js +2 -29
  4. package/dist/assets/{Add-0fa52156.js → Add-3a4e9bf2.js} +1 -1
  5. package/dist/assets/{Alert-037193c9.js → Alert-88ccddfd.js} +1 -1
  6. package/dist/assets/{ArrowDropDown-72517964.js → ArrowDropDown-a2deccb8.js} +1 -1
  7. package/dist/assets/{Autocomplete-a10f99e0.js → Autocomplete-a2328d71.js} +1 -1
  8. package/dist/assets/{Avatar-45cfefc3.js → Avatar-31b251b1.js} +1 -1
  9. package/dist/assets/{ButtonGroup-f91d24e2.js → ButtonGroup-d9cd68eb.js} +1 -1
  10. package/dist/assets/{CardContent-3db164ef.js → CardContent-e96dbcb2.js} +1 -1
  11. package/dist/assets/{CheckCircle-272b0fa1.js → CheckCircle-a6858d5d.js} +1 -1
  12. package/dist/assets/{Checkbox-e5abf3e7.js → Checkbox-bf851887.js} +1 -1
  13. package/dist/assets/{ChevronRight-ad424d62.js → ChevronRight-0de6ef39.js} +1 -1
  14. package/dist/assets/{DeleteOutline-9cba8fb2.js → DeleteOutline-978854b1.js} +1 -1
  15. package/dist/assets/{DialogContentText-83546651.js → DialogContentText-6418436c.js} +1 -1
  16. package/dist/assets/{Done-515b6971.js → Done-e501bd33.js} +1 -1
  17. package/dist/assets/{Download-2be25bd9.js → Download-ee01aba6.js} +1 -1
  18. package/dist/assets/{Edit-acf0e713.js → Edit-fd7c9bed.js} +1 -1
  19. package/dist/assets/{EditIcon-9f26e207.js → EditIcon-b1d73915.js} +1 -1
  20. package/dist/assets/{ExpandMore-affb00ec.js → ExpandMore-7c173148.js} +1 -1
  21. package/dist/assets/{FilterList-4d23556a.js → FilterList-4f490637.js} +3 -3
  22. package/dist/assets/{FormControl-776d5fa1.js → FormControl-a1fbecf5.js} +1 -1
  23. package/dist/assets/{FormControlLabel-2ee3fa4b.js → FormControlLabel-4a842c06.js} +1 -1
  24. package/dist/assets/{FormGroup-502e9f4e.js → FormGroup-b7d9ef97.js} +1 -1
  25. package/dist/assets/{Google-8aa094b0.js → Google-91a8c0fe.js} +1 -1
  26. package/dist/assets/{Grid-e588a591.js → Grid-c5601a70.js} +1 -1
  27. package/dist/assets/{Hidden-4855abd5.js → Hidden-35230dda.js} +1 -1
  28. package/dist/assets/{Icon-7576b0de.js → Icon-29934361.js} +1 -1
  29. package/dist/assets/{InfoOutlined-516f0f5e.js → InfoOutlined-eb4ab650.js} +1 -1
  30. package/dist/assets/{InputAdornment-6977d85a.js → InputAdornment-e4c90a63.js} +1 -1
  31. package/dist/assets/{InputLabel-4899f2ad.js → InputLabel-49e6958a.js} +1 -1
  32. package/dist/assets/{LastPage-68881e08.js → LastPage-c187ae76.js} +1 -1
  33. package/dist/assets/{Launch-40ac7bb5.js → Launch-8e54c9a5.js} +1 -1
  34. package/dist/assets/{LaunchOutlined-f2e3acb1.js → LaunchOutlined-9dd9c853.js} +1 -1
  35. package/dist/assets/ListItem-e314bf12.js +1 -0
  36. package/dist/assets/{LockIcon-f7bc794a.js → LockIcon-93d28688.js} +1 -1
  37. package/dist/assets/{Loop-74bde14b.js → Loop-9bace654.js} +1 -1
  38. package/dist/assets/{MoreVert-07b57b33.js → MoreVert-3d0977ab.js} +1 -1
  39. package/dist/assets/{OpenInNew-acb47561.js → OpenInNew-e7cd0cc2.js} +1 -1
  40. package/dist/assets/{Pagination-fc24638e.js → Pagination-6fcfcfda.js} +1 -1
  41. package/dist/assets/{PlayArrow-d3193b6d.js → PlayArrow-961eaacd.js} +1 -1
  42. package/dist/assets/{RadioGroup-3beb2b33.js → RadioGroup-8d4ab553.js} +1 -1
  43. package/dist/assets/{Search-d3d559ed.js → Search-f8fe0d11.js} +1 -1
  44. package/dist/assets/{Select-c9c71312.js → Select-86168230.js} +2 -2
  45. package/dist/assets/{ServerLogo-6cf48c4f.js → ServerLogo-b9434abe.js} +1 -1
  46. package/dist/assets/{Slider-6bcdb3ad.js → Slider-dc450dee.js} +1 -1
  47. package/dist/assets/{Stepper-58c95989.js → Stepper-0951e629.js} +1 -1
  48. package/dist/assets/{Switch-572c6623.js → Switch-183772a5.js} +1 -1
  49. package/dist/assets/{TableRow-2ff7461b.js → TableRow-c019aa76.js} +1 -1
  50. package/dist/assets/{TextField-9def9dd1.js → TextField-fedebf1f.js} +1 -1
  51. package/dist/assets/{Toolbar-58430b9d.js → Toolbar-3eef999e.js} +1 -1
  52. package/dist/assets/{access-control-17d1ef9c.js → access-control-9ae6bc7e.js} +1 -1
  53. package/dist/assets/{actions-6a1d12bc.js → actions-28620eeb.js} +1 -1
  54. package/dist/assets/{add-component-core-0b1b4342.js → add-component-core-a389deaa.js} +54 -54
  55. package/dist/assets/add-resource-9509ff95.js +1 -0
  56. package/dist/assets/{addon-6378289d.js → addon-67a138a5.js} +1 -1
  57. package/dist/assets/{analytics-41b1c113.js → analytics-1cc14b8d.js} +8 -8
  58. package/dist/assets/api-cf320b38.js +1 -0
  59. package/dist/assets/{audit-logs-aa0926e8.js → audit-logs-b77b5880.js} +1 -1
  60. package/dist/assets/{button-b9e224ed.js → button-df38f255.js} +1 -1
  61. package/dist/assets/{click-to-copy-011eba01.js → click-to-copy-aea6a9bd.js} +1 -1
  62. package/dist/assets/{complete-c2324df2.js → complete-50b01711.js} +2 -2
  63. package/dist/assets/{component-a8ae0bd3.js → component-ca8cf1c6.js} +33 -33
  64. package/dist/assets/{config-d5e2cf8e.js → config-d3b02cb4.js} +2 -2
  65. package/dist/assets/{config-1833951a.js → config-df87ad09.js} +1 -1
  66. package/dist/assets/{config-navigation-753fcb5c.js → config-navigation-cecc3eed.js} +2 -2
  67. package/dist/assets/{confirm-0a872969.js → confirm-06053193.js} +1 -1
  68. package/dist/assets/{confirm-37e025f8.js → confirm-ddc8b167.js} +1 -1
  69. package/dist/assets/{connect-fe6d1f89.js → connect-b9415d0d.js} +1 -1
  70. package/dist/assets/{connect-a95acc3b.js → connect-eb42cf82.js} +1 -1
  71. package/dist/assets/{content-layout-3e926711.js → content-layout-c45180bc.js} +1 -1
  72. package/dist/assets/dashboard-869969b3.js +126 -0
  73. package/dist/assets/{did-address-75f80f5d.js → did-address-6f8ac748.js} +1 -1
  74. package/dist/assets/{did-utils-4012db50.js → did-utils-e5a93c03.js} +1 -1
  75. package/dist/assets/{domain-e4165149.js → domain-ce3d68ba.js} +1 -1
  76. package/dist/assets/domain-list-c01d42a2.js +12 -0
  77. package/dist/assets/{exchange-passport-488fb54a.js → exchange-passport-49de9567.js} +1 -1
  78. package/dist/assets/{fallback-e6908990.js → fallback-0a2aea38.js} +2 -2
  79. package/dist/assets/{format-error-89fc5b13.js → format-error-cb03fbac.js} +1 -1
  80. package/dist/assets/{fuel-8062b1cb.js → fuel-60fee1f9.js} +1 -1
  81. package/dist/assets/{home-e193c644.js → home-13a41811.js} +1 -1
  82. package/dist/assets/{iframe-fa15b0d6.js → iframe-e27aa5eb.js} +1 -1
  83. package/dist/assets/index-0f945049.js +54 -0
  84. package/dist/assets/{index-32a94750.js → index-1bb44511.js} +1 -1
  85. package/dist/assets/{index-95ed5c0e.js → index-263c5c47.js} +1 -1
  86. package/dist/assets/{index-03db2990.js → index-40d4e6fe.js} +1 -1
  87. package/dist/assets/{index-4b84d3b2.js → index-48a58a22.js} +1 -1
  88. package/dist/assets/{index-2c4ca7b3.js → index-564c075f.js} +1 -1
  89. package/dist/assets/{index-82b46fb5.js → index-5ecec248.js} +1 -1
  90. package/dist/assets/{index-5e26b138.js → index-63a4e02a.js} +1 -1
  91. package/dist/assets/{index-78c79b7d.js → index-67652289.js} +2 -2
  92. package/dist/assets/{index-ab44e574.js → index-6d7aa2de.js} +1 -1
  93. package/dist/assets/{index-74681384.js → index-710f1958.js} +5 -5
  94. package/dist/assets/{index-45230b38.js → index-81318943.js} +8 -8
  95. package/dist/assets/{index-4f076ed3.js → index-88adaebe.js} +5 -5
  96. package/dist/assets/{index-110fb170.js → index-a472b88f.js} +1 -1
  97. package/dist/assets/{index-f43e988e.js → index-a575450e.js} +2 -2
  98. package/dist/assets/{index-9871b95b.js → index-a8342096.js} +10 -10
  99. package/dist/assets/{index-7cfe9bef.js → index-aadc33f3.js} +1 -1
  100. package/dist/assets/{index-4effadb2.js → index-ad20f5d3.js} +1 -1
  101. package/dist/assets/{index-f2a9779e.js → index-b68f9890.js} +1 -1
  102. package/dist/assets/{index-408ef489.js → index-b938b74f.js} +1 -1
  103. package/dist/assets/{index-c014ee1d.js → index-c093e71f.js} +1 -1
  104. package/dist/assets/{index-f112ae7e.js → index-c284b28f.js} +1 -1
  105. package/dist/assets/{index-ed3b9f25.js → index-ca1233b4.js} +1 -1
  106. package/dist/assets/{index-24e445a7.js → index-ca434966.js} +1 -1
  107. package/dist/assets/{index-35962c8a.js → index-d5c608a0.js} +1 -1
  108. package/dist/assets/{index-2668c3ea.js → index-f5164e7a.js} +197 -197
  109. package/dist/assets/{index-2580c7d8.js → index-fb610e48.js} +1 -1
  110. package/dist/assets/{index-0ce26e3b.js → index-ffef1c73.js} +1 -1
  111. package/dist/assets/{index.es-c9de3081.js → index.es-9b2db4aa.js} +3 -3
  112. package/dist/assets/{index.esm-3acd0530.js → index.esm-8eb4e6fc.js} +1 -1
  113. package/dist/assets/{invite-46602c25.js → invite-0ce1ce33.js} +1 -1
  114. package/dist/assets/{issue-passport-c6316a00.js → issue-passport-eeb74a6b.js} +1 -1
  115. package/dist/assets/jss-plugin-props-sort.esm-bce6f159.js +14 -0
  116. package/dist/assets/{launch-result-message-bc3d34f8.js → launch-result-message-b57dfcd0.js} +1 -1
  117. package/dist/assets/{layout-d2846d27.js → layout-30e687a6.js} +1 -1
  118. package/dist/assets/{list-header-4d0954bf.js → list-header-cc4af7a1.js} +1 -1
  119. package/dist/assets/listItemButtonClasses-811dce88.js +1 -0
  120. package/dist/assets/localization-586c2161.js +1 -0
  121. package/dist/assets/{log-957c206d.js → log-30bb3f7c.js} +7 -7
  122. package/dist/assets/{login-7abb482f.js → login-c8bbda83.js} +1 -1
  123. package/dist/assets/{logo-uploader-2897cb85.js → logo-uploader-f1f683e3.js} +4 -4
  124. package/dist/assets/{lost-passport-ca597911.js → lost-passport-8d3360a7.js} +2 -2
  125. package/dist/assets/{lottie-a8abc821.js → lottie-ed0144dd.js} +1 -1
  126. package/dist/assets/{memoize-one.esm-c8bea7a2.js → memoize-one.esm-9b916d19.js} +1 -1
  127. package/dist/assets/{nav-menu-33b9a238.js → nav-menu-2e0bf9b0.js} +3 -3
  128. package/dist/assets/notifications-9acb30be.js +62 -0
  129. package/dist/assets/overview-b5205c37.js +12 -0
  130. package/dist/assets/{page-header-8a4c9c50.js → page-header-bd167e51.js} +1 -1
  131. package/dist/assets/{permission-dd5ceeea.js → permission-1721d6ff.js} +1 -1
  132. package/dist/assets/{preferences-0280505b.js → preferences-2cc81c57.js} +1 -1
  133. package/dist/assets/publish-resource-309461c6.js +1 -0
  134. package/dist/assets/{react-8bf99ad0.js → react-a6e6612e.js} +2 -2
  135. package/dist/assets/{redux-4a13b1ee.js → redux-2be0c609.js} +1 -1
  136. package/dist/assets/{selector-e7537a43.js → selector-8aed4b44.js} +1 -1
  137. package/dist/assets/session-5cca81f2.js +1 -0
  138. package/dist/assets/{setup-017ee02c.js → setup-4a3ca937.js} +2 -2
  139. package/dist/assets/{slicedToArray-b9314e6c.js → slicedToArray-44714d87.js} +2 -2
  140. package/dist/assets/{spaces-4402bfd9.js → spaces-884bd1bc.js} +1 -1
  141. package/dist/assets/{start-95b58f88.js → start-b1f2c2fa.js} +1 -1
  142. package/dist/assets/step-actions-e2c31c4a.js +31 -0
  143. package/dist/assets/{studio-e0d343f5.js → studio-6d583ba0.js} +1 -1
  144. package/dist/assets/{switch-control-944b9c84.js → switch-control-97423316.js} +1 -1
  145. package/dist/assets/toPropertyKey-acc744d8.js +1 -0
  146. package/dist/assets/{transfer-a19f0df2.js → transfer-38c48c41.js} +1 -1
  147. package/dist/assets/uniqBy-1a4484bb.js +1 -0
  148. package/dist/assets/{unsubscribe-84f56731.js → unsubscribe-7c8ecf1f.js} +1 -1
  149. package/dist/assets/{use-blocklet-info-for-connect-did-spaces-2c0b4729.js → use-blocklet-info-for-connect-did-spaces-02cb5725.js} +1 -1
  150. package/dist/assets/useAsync-e9cdf811.js +1 -0
  151. package/dist/assets/{useFormControl-1b3cb36f.js → useFormControl-be0583f6.js} +1 -1
  152. package/dist/assets/useLocalStorage-6f44c0e8.js +1 -0
  153. package/dist/assets/{useSetState-483ba319.js → useSetState-6d3b66bd.js} +1 -1
  154. package/dist/assets/{user-6d82a43f.js → user-b04d443a.js} +2 -2
  155. package/dist/assets/{util-c52b3ea9.js → util-9fdf979a.js} +1 -1
  156. package/dist/assets/{wallet-hidden-topbar-91b1f489.js → wallet-hidden-topbar-30953049.js} +2 -2
  157. package/dist/assets/wrap-locale-c74ee18c.js +1 -0
  158. package/dist/index.html +1 -1
  159. package/package.json +18 -18
  160. package/dist/assets/ListItem-768ed029.js +0 -1
  161. package/dist/assets/add-resource-6825acb3.js +0 -1
  162. package/dist/assets/api-75ef978a.js +0 -1
  163. package/dist/assets/dashboard-adcdef94.js +0 -146
  164. package/dist/assets/domain-list-8a8a0d19.js +0 -12
  165. package/dist/assets/index-171ab69f.js +0 -54
  166. package/dist/assets/localization-0b26d7a6.js +0 -1
  167. package/dist/assets/makeStyles-af672e02.js +0 -14
  168. package/dist/assets/notifications-97251050.js +0 -62
  169. package/dist/assets/overview-97d0a79e.js +0 -12
  170. package/dist/assets/publish-resource-9e2fd88b.js +0 -1
  171. package/dist/assets/session-f52f379b.js +0 -1
  172. package/dist/assets/step-actions-c99de83a.js +0 -31
  173. package/dist/assets/toPropertyKey-ceeedea6.js +0 -1
  174. package/dist/assets/uniqBy-11474d2a.js +0 -1
  175. package/dist/assets/useAsync-2a7bf586.js +0 -1
  176. package/dist/assets/wrap-locale-7898963f.js +0 -1
@@ -1,12 +1,12 @@
1
- import{aj as yo,j as t,az as ce,aH as Co,aD as F,er as xt,aC as Ne,ax as Qe,ay as Ze,T as Z,r as c,aB as et,aE as To,aF as He,aG as tt,B as j,S as Ge,P as W,u as Me,a7 as Oe,a$ as _e,bE as Le,L as re,G as le,cW as Nt,av as Ue,n as _,y as je,e as vt,x as So,b5 as Io,cY as wo,X as ne,c as ot,w as Ae,aL as Ro,bp as Eo,dq as Po,aM as $t,dp as bt,c5 as Bt,aJ as ze,db as Dt,es as No,bW as gt,bI as vo,M as $o,et as Ke,cd as Bo,au as Do,ag as Ao,ah as We}from"./index-2668c3ea.js";import{d as At,_ as Mo}from"./useSetState-483ba319.js";import{D as Mt}from"./index-2c4ca7b3.js";import{T as Ot}from"./MoreVert-07b57b33.js";import{W as Oo}from"./did-address-75f80f5d.js";import{C as _t}from"./confirm-0a872969.js";import{B as Lt,d as _o}from"./ChevronRight-ad424d62.js";import{_ as Lo}from"./toPropertyKey-ceeedea6.js";import{u as Vo}from"./session-f52f379b.js";import{T as ke}from"./TextField-9def9dd1.js";import{M as Ye}from"./InputAdornment-6977d85a.js";import{d as kt}from"./Download-2be25bd9.js";import{d as Fo}from"./DeleteOutline-9cba8fb2.js";import{T as zo}from"./index-0ce26e3b.js";import{c as Vt}from"./index-f2a9779e.js";import{i as Wo}from"./index-35962c8a.js";import{d as Ko}from"./ExpandMore-affb00ec.js";import{d as Uo}from"./OpenInNew-acb47561.js";import{F as Ho}from"./FormControlLabel-2ee3fa4b.js";import{C as qo}from"./Checkbox-e5abf3e7.js";import"./api-75ef978a.js";import{A as Jo}from"./Avatar-45cfefc3.js";import{f as Je}from"./format-error-89fc5b13.js";import"./FilterList-4d23556a.js";import"./TableRow-2ff7461b.js";import"./FormControl-776d5fa1.js";import"./useFormControl-1b3cb36f.js";import"./FormGroup-502e9f4e.js";import"./InputLabel-4899f2ad.js";import"./Select-c9c71312.js";import"./LastPage-68881e08.js";import"./Toolbar-58430b9d.js";import"./index-4f076ed3.js";import"./redux-4a13b1ee.js";import"./Grid-e588a591.js";import"./Search-d3d559ed.js";import"./DialogContentText-83546651.js";import"./Alert-037193c9.js";const Xo=yo(t.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),Go=["slots","slotProps"],Yo=ce(Co)(({theme:e})=>F({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`},e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":F({},e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":F({boxShadow:e.shadows[0]},e.palette.mode==="light"?{backgroundColor:xt(e.palette.grey[200],.12)}:{backgroundColor:xt(e.palette.grey[600],.12)})})),Qo=ce(Xo)({width:24,height:16});function Zo(e){const{slots:n={},slotProps:r={}}=e,l=Ne(e,Go),m=e;return t.jsx("li",{children:t.jsx(Yo,F({focusRipple:!0},l,{ownerState:m,children:t.jsx(Qo,F({as:n.CollapsedIcon,ownerState:m},r.collapsedIcon))}))})}function es(e){return Ze("MuiBreadcrumbs",e)}const ts=Qe("MuiBreadcrumbs",["root","ol","li","separator"]),os=ts,ss=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],ns=e=>{const{classes:n}=e;return tt({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},es,n)},rs=ce(Z,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,n)=>[{[`& .${os.li}`]:n.li},n.root]})({}),ls=ce("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,n)=>n.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),as=ce("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,n)=>n.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function is(e,n,r,l){return e.reduce((m,d,b)=>(b<e.length-1?m=m.concat(d,t.jsx(as,{"aria-hidden":!0,className:n,ownerState:l,children:r},`separator-${b}`)):m.push(d),m),[])}const cs=c.forwardRef(function(n,r){const l=et({props:n,name:"MuiBreadcrumbs"}),{children:m,className:d,component:b="nav",slots:u={},slotProps:y={},expandText:g="Show path",itemsAfterCollapse:S=1,itemsBeforeCollapse:I=1,maxItems:E=8,separator:i="/"}=l,k=Ne(l,ss),[a,C]=c.useState(!1),v=F({},l,{component:b,expanded:a,expandText:g,itemsAfterCollapse:S,itemsBeforeCollapse:I,maxItems:E,separator:i}),$=ns(v),p=To({elementType:u.CollapsedIcon,externalSlotProps:y.collapsedIcon,ownerState:v}),w=c.useRef(null),K=N=>{const U=()=>{C(!0);const ee=w.current.querySelector("a[href],button,[tabindex]");ee&&ee.focus()};return I+S>=N.length?N:[...N.slice(0,I),t.jsx(Zo,{"aria-label":g,slots:{CollapsedIcon:u.CollapsedIcon},slotProps:{collapsedIcon:p},onClick:U},"ellipsis"),...N.slice(N.length-S,N.length)]},h=c.Children.toArray(m).filter(N=>c.isValidElement(N)).map((N,U)=>t.jsx("li",{className:$.li,children:N},`child-${U}`));return t.jsx(rs,F({ref:r,component:b,color:"text.secondary",className:He($.root,d),ownerState:v},k,{children:t.jsx(ls,{className:$.ol,ref:w,ownerState:v,children:is(a||E&&h.length<=E?h:K(h),$.separator,i,v)})}))}),st=cs;function Ve({size:e,...n}){return t.jsx(j,{display:"flex",mt:4,...n,children:t.jsx(Ge,{size:e})})}Ve.propTypes={size:W.number};Ve.defaultProps={size:24};function Ft(){const{t:e,locale:n}=Me(),{api:r}=Oe(),[l,m]=c.useState(!0),{blocklet:d}=_e(),[b,u]=c.useState(null),{componentDid:y=""}=Le(),[g,S]=c.useState(null),I=()=>{r.getProjects({input:{did:d.meta.did,componentDid:y}}).then(a=>{const C=(a==null?void 0:a.projects)||[];m(!1),S(C)}).catch(a=>{m(!1),_.error(a.message)})},E=a=>{u(a)},i=()=>{m(!1);const a=b.id;r.deleteProject({input:{did:d.meta.did,projectId:a}}).then(()=>{m(!1),I(),_.success(e("common.removeSuccess")),u(null)}).catch(C=>{m(!1),_.error(C.message)})};if(c.useEffect(()=>{I()},[]),!g&&l)return t.jsx(Ve,{});if(!g)return null;if(!g.length)return t.jsxs(j,{display:"flex",flexDirection:"column",alignItems:"center",pt:10,children:[t.jsx(j,{sx:{fontSize:20,fontWeight:"bold",mb:3},children:e("blocklet.publish.blockletEmptyTip")}),t.jsx(j,{sx:{fontSize:14,color:"text.secondary",mb:3},children:e("blocklet.publish.createBlockletTip")}),t.jsx(re,{to:"create",children:t.jsx(le,{variant:"contained",children:e("blocklet.publish.createBlocklet")})})]});const k=[{label:"Blocklet",name:"blockletTitle",options:{customBodyRenderLite:a=>{const C=g[a];return t.jsx(re,{to:`${C.id}`,children:C.blockletTitle||"/"})}}},{label:"DID",name:"blockletDid",options:{customBodyRender:a=>t.jsx(Oo,{size:14,responsive:!0,did:a})}},{label:"Version",name:"blockletVersion",options:{customBodyRender:a=>a?t.jsx(Ot,{type:"success",children:a}):""}},y?null:{label:e("common.scope"),name:"componentDid",options:{customBodyRender:a=>{const C=(d.children||[]).find(v=>v.meta.did===a);return C?t.jsxs(j,{display:"flex",alignItems:"center",justifyContent:"flex-start",children:[t.jsx(Lt,{size:14,blocklet:C,ancestors:[d]}),t.jsx(j,{ml:.5,sx:{ml:.5,color:"text.primary",fontSize:14},children:C.meta.title})]},a):""}}},{label:e("common.updatedAt"),name:"updatedAt",options:{customBodyRender:a=>t.jsx(Nt,{value:Number(a),locale:n})}},{label:e("common.actions"),name:"actions",options:{customBodyRenderLite:a=>{const C=g[a];return t.jsx(j,{display:"flex",children:t.jsx(Ue,{color:"error","aria-label":"delete",onClick:()=>E(C),children:t.jsx(At,{sx:{fontSize:18}})})})}}}].filter(Boolean);return t.jsxs(ds,{children:[t.jsx(j,{sx:{textAlign:"right"},children:t.jsx(re,{to:"create",children:t.jsx(le,{variant:"contained",children:e("blocklet.publish.createBlocklet")})})}),t.jsx(Mt,{className:"main-table",locale:n,data:g,columns:k,options:{sort:!1,download:!1,filter:!1,print:!1,search:!1}}),b&&t.jsx(_t,{title:`${e("common.delete")} ${b.blockletTitle}`,description:e("blocklet.publish.deleteBlockletTip"),confirm:e("common.confirm"),onConfirm:i,onCancel:()=>u(null)})]})}Ft.propTypes={};const ds=je(j)`
1
+ import{aj as yo,j as t,az as ce,aH as Co,aD as F,eo as xt,aC as Ne,ax as Qe,ay as Ze,T as Z,r as c,aB as et,aE as To,aF as He,aG as tt,B as j,S as Ge,P as K,u as Oe,a7 as Me,a$ as _e,bz as Le,L as re,G as le,cO as Nt,av as Ue,n as _,y as je,e as vt,x as So,b5 as Io,cQ as wo,X as ne,c as ot,w as Ae,aL as Ro,bp as Eo,di as Po,aM as $t,dh as bt,bZ as Bt,aJ as ze,d3 as Dt,ep as No,bS as gt,bD as vo,M as $o,eq as We,c5 as Bo,au as Do,ag as Ao,ah as Ke}from"./index-f5164e7a.js";import{d as At,_ as Oo}from"./useSetState-6d3b66bd.js";import{D as Ot}from"./index-564c075f.js";import{T as Mt}from"./MoreVert-3d0977ab.js";import{W as Mo}from"./did-address-6f8ac748.js";import{C as _t}from"./confirm-06053193.js";import{B as Lt,d as _o}from"./ChevronRight-0de6ef39.js";import{_ as Lo}from"./useLocalStorage-6f44c0e8.js";import{u as Vo}from"./session-5cca81f2.js";import{T as ke}from"./TextField-fedebf1f.js";import{M as Ye}from"./InputAdornment-e4c90a63.js";import{d as kt}from"./Download-ee01aba6.js";import{d as Fo}from"./DeleteOutline-978854b1.js";import{T as zo}from"./index-ffef1c73.js";import{c as Vt}from"./index-b68f9890.js";import{i as Ko}from"./index-d5c608a0.js";import{d as Wo}from"./ExpandMore-7c173148.js";import{d as Uo}from"./OpenInNew-e7cd0cc2.js";import{F as Ho}from"./FormControlLabel-4a842c06.js";import{C as qo}from"./Checkbox-bf851887.js";import"./api-cf320b38.js";import{A as Jo}from"./Avatar-31b251b1.js";import{f as Je}from"./format-error-cb03fbac.js";import"./FilterList-4f490637.js";import"./TableRow-c019aa76.js";import"./FormControl-a1fbecf5.js";import"./useFormControl-be0583f6.js";import"./FormGroup-b7d9ef97.js";import"./InputLabel-49e6958a.js";import"./Select-86168230.js";import"./LastPage-c187ae76.js";import"./Toolbar-3eef999e.js";import"./index-88adaebe.js";import"./redux-2be0c609.js";import"./toPropertyKey-acc744d8.js";import"./Grid-c5601a70.js";import"./Search-f8fe0d11.js";import"./DialogContentText-6418436c.js";import"./Alert-88ccddfd.js";const Xo=yo(t.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),Go=["slots","slotProps"],Yo=ce(Co)(({theme:e})=>F({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`},e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":F({},e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":F({boxShadow:e.shadows[0]},e.palette.mode==="light"?{backgroundColor:xt(e.palette.grey[200],.12)}:{backgroundColor:xt(e.palette.grey[600],.12)})})),Qo=ce(Xo)({width:24,height:16});function Zo(e){const{slots:n={},slotProps:r={}}=e,l=Ne(e,Go),m=e;return t.jsx("li",{children:t.jsx(Yo,F({focusRipple:!0},l,{ownerState:m,children:t.jsx(Qo,F({as:n.CollapsedIcon,ownerState:m},r.collapsedIcon))}))})}function es(e){return Ze("MuiBreadcrumbs",e)}const ts=Qe("MuiBreadcrumbs",["root","ol","li","separator"]),os=ts,ss=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],ns=e=>{const{classes:n}=e;return tt({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},es,n)},rs=ce(Z,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,n)=>[{[`& .${os.li}`]:n.li},n.root]})({}),ls=ce("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,n)=>n.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),as=ce("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,n)=>n.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function is(e,n,r,l){return e.reduce((m,d,b)=>(b<e.length-1?m=m.concat(d,t.jsx(as,{"aria-hidden":!0,className:n,ownerState:l,children:r},`separator-${b}`)):m.push(d),m),[])}const cs=c.forwardRef(function(n,r){const l=et({props:n,name:"MuiBreadcrumbs"}),{children:m,className:d,component:b="nav",slots:u={},slotProps:y={},expandText:g="Show path",itemsAfterCollapse:S=1,itemsBeforeCollapse:I=1,maxItems:E=8,separator:i="/"}=l,k=Ne(l,ss),[a,C]=c.useState(!1),$=F({},l,{component:b,expanded:a,expandText:g,itemsAfterCollapse:S,itemsBeforeCollapse:I,maxItems:E,separator:i}),B=ns($),p=To({elementType:u.CollapsedIcon,externalSlotProps:y.collapsedIcon,ownerState:$}),w=c.useRef(null),W=N=>{const U=()=>{C(!0);const ee=w.current.querySelector("a[href],button,[tabindex]");ee&&ee.focus()};return I+S>=N.length?N:[...N.slice(0,I),t.jsx(Zo,{"aria-label":g,slots:{CollapsedIcon:u.CollapsedIcon},slotProps:{collapsedIcon:p},onClick:U},"ellipsis"),...N.slice(N.length-S,N.length)]},h=c.Children.toArray(m).filter(N=>c.isValidElement(N)).map((N,U)=>t.jsx("li",{className:B.li,children:N},`child-${U}`));return t.jsx(rs,F({ref:r,component:b,color:"text.secondary",className:He(B.root,d),ownerState:$},k,{children:t.jsx(ls,{className:B.ol,ref:w,ownerState:$,children:is(a||E&&h.length<=E?h:W(h),B.separator,i,$)})}))}),st=cs;function Ve({size:e,...n}){return t.jsx(j,{display:"flex",mt:4,...n,children:t.jsx(Ge,{size:e})})}Ve.propTypes={size:K.number};Ve.defaultProps={size:24};function Ft(){const{t:e,locale:n}=Oe(),{api:r}=Me(),[l,m]=c.useState(!0),{blocklet:d}=_e(),[b,u]=c.useState(null),{componentDid:y=""}=Le(),[g,S]=c.useState(null),I=()=>{r.getProjects({input:{did:d.meta.did,componentDid:y}}).then(a=>{const C=(a==null?void 0:a.projects)||[];m(!1),S(C)}).catch(a=>{m(!1),_.error(a.message)})},E=a=>{u(a)},i=()=>{m(!1);const a=b.id;r.deleteProject({input:{did:d.meta.did,projectId:a}}).then(()=>{m(!1),I(),_.success(e("common.removeSuccess")),u(null)}).catch(C=>{m(!1),_.error(C.message)})};if(c.useEffect(()=>{I()},[]),!g&&l)return t.jsx(Ve,{});if(!g)return null;if(!g.length)return t.jsxs(j,{display:"flex",flexDirection:"column",alignItems:"center",pt:10,children:[t.jsx(j,{sx:{fontSize:20,fontWeight:"bold",mb:3},children:e("blocklet.publish.blockletEmptyTip")}),t.jsx(j,{sx:{fontSize:14,color:"text.secondary",mb:3},children:e("blocklet.publish.createBlockletTip")}),t.jsx(re,{to:"create",children:t.jsx(le,{variant:"contained",children:e("blocklet.publish.createBlocklet")})})]});const k=[{label:"Blocklet",name:"blockletTitle",options:{customBodyRenderLite:a=>{const C=g[a];return t.jsx(re,{to:`${C.id}`,children:C.blockletTitle||"/"})}}},{label:"DID",name:"blockletDid",options:{customBodyRender:a=>t.jsx(Mo,{size:14,responsive:!0,did:a})}},{label:"Version",name:"blockletVersion",options:{customBodyRender:a=>a?t.jsx(Mt,{type:"success",children:a}):""}},y?null:{label:e("common.scope"),name:"componentDid",options:{customBodyRender:a=>{const C=(d.children||[]).find($=>$.meta.did===a);return C?t.jsxs(j,{display:"flex",alignItems:"center",justifyContent:"flex-start",children:[t.jsx(Lt,{size:14,blocklet:C,ancestors:[d]}),t.jsx(j,{ml:.5,sx:{ml:.5,color:"text.primary",fontSize:14},children:C.meta.title})]},a):""}}},{label:e("common.updatedAt"),name:"updatedAt",options:{customBodyRender:a=>t.jsx(Nt,{value:Number(a),locale:n})}},{label:e("common.actions"),name:"actions",options:{customBodyRenderLite:a=>{const C=g[a];return t.jsx(j,{display:"flex",children:t.jsx(Ue,{color:"error","aria-label":"delete",onClick:()=>E(C),children:t.jsx(At,{sx:{fontSize:18}})})})}}}].filter(Boolean);return t.jsxs(ds,{children:[t.jsx(j,{sx:{textAlign:"right"},children:t.jsx(re,{to:"create",children:t.jsx(le,{variant:"contained",children:e("blocklet.publish.createBlocklet")})})}),t.jsx(Ot,{className:"main-table",locale:n,data:g,columns:k,options:{sort:!1,download:!1,filter:!1,print:!1,search:!1}}),b&&t.jsx(_t,{title:`${e("common.delete")} ${b.blockletTitle}`,description:e("blocklet.publish.deleteBlockletTip"),confirm:e("common.confirm"),onConfirm:i,onCancel:()=>u(null)})]})}Ft.propTypes={};const ds=je(j)`
2
2
  .main-table > div:first-child {
3
3
  display: none;
4
4
  }
5
- `,us=[{label:{en:"Resource",zh:"资源"},value:"resource"},{label:{en:"Application",zh:"应用"},value:"pack",disabled:!0}];function nt({...e}){const n=vt(),{t:r,locale:l}=Me(),{blocklet:m}=_e(),[d,b]=c.useState(""),[u,y]=c.useState(!1),[g,S]=c.useState("resource"),{api:I}=Vo(),{api:E}=Oe(),[i,k]=c.useState(),[a,C]=c.useState(!1),[v]=Lo("manual-create-blocklet-did",!1),{componentDid:$=""}=Le(),p=h=>{_.error(h.message),C(!1)},w=h=>{var U;const N=(U=h==null?void 0:h.blockletWallet)==null?void 0:U.address;N?k(N):_.error("Empty Blocklet DID"),C(!1)},K=()=>{if(!i){_.error(r("blocklet.publish.errorTip.noDid"));return}if(!d){_.error(r("blocklet.publish.errorTip.noTitle"));return}y(!0),E.createProject({input:{did:m.meta.did,blockletTitle:d||"",blockletDid:i,type:g,componentDid:$}}).then(()=>{y(!1),n("../",{replace:!0})}).catch(h=>{y(!1),_.error(h.message)})};return t.jsxs(ps,{...e,children:[t.jsxs(st,{className:"breadcrumbs","aria-label":"breadcrumb",children:[t.jsx(re,{to:"..",children:r("common.publish")}),t.jsxs(Z,{color:"text.primary",children:[r("common.create")," Blocklet"]})]}),t.jsxs(j,{style:{maxWidth:500},children:[t.jsx(ke,{required:!0,sx:{mb:4},label:"Blocklet DID",fullWidth:!0,readonly:!0,autoComplete:"off",variant:"outlined",onChange:h=>v&&k(h.target.value),onClick:()=>!v&&!i&&C(!0),InputProps:{"data-cy":"export-blocklet-did",endAdornment:!v&&t.jsx(Ye,{position:"end",children:t.jsx(le,{onClick:()=>C(!0),children:r(i?"common.update":"common.create")})})},helperText:"",value:i||""}),a&&t.jsx(So,{open:!0,popup:!0,onClose:()=>C(!1),action:"gen-blocklet-key-pair",locale:l,checkFn:I.get,saveConnect:!1,forceConnected:!1,checkTimeout:5*60*1e3,onSuccess:w,onError:p,extraParams:{did:m.meta.did},messages:{title:r("blocklet.publish.connect.title"),scan:r("blocklet.publish.connect.scan"),confirm:r("blocklet.publish.connect.confirm"),success:r("blocklet.publish.connect.success")}}),t.jsx(ke,{required:!0,label:`Blocklet ${r("common.title")}`,autoComplete:"off",variant:"outlined",InputProps:{"data-cy":"export-blocklet-title"},fullWidth:!0,helperText:"",value:d||"",onChange:h=>{b(h.target.value)}}),t.jsx(ke,{sx:{my:4},id:"blocklet-type",select:!0,label:`Blocklet ${r("common.type")}`,helperText:"",fullWidth:!0,value:g,onChange:h=>S(h.target.value),children:us.map(h=>t.jsx(Io,{value:h.value,disabled:h.disabled,children:h.label[l]||h.label.en},h.value))})]}),t.jsx(le,{variant:"contained",disabled:u,onClick:K,children:r("common.create")})]})}nt.propTypes={};nt.defaultProps={};const ps=je.div`
5
+ `,us=[{label:{en:"Resource",zh:"资源"},value:"resource"},{label:{en:"Application",zh:"应用"},value:"pack",disabled:!0}];function nt({...e}){const n=vt(),{t:r,locale:l}=Oe(),{blocklet:m}=_e(),[d,b]=c.useState(""),[u,y]=c.useState(!1),[g,S]=c.useState("resource"),{api:I}=Vo(),{api:E}=Me(),[i,k]=c.useState(),[a,C]=c.useState(!1),[$]=Lo("manual-create-blocklet-did",!1),{componentDid:B=""}=Le(),p=h=>{_.error(h.message),C(!1)},w=h=>{var U;const N=(U=h==null?void 0:h.blockletWallet)==null?void 0:U.address;N?k(N):_.error("Empty Blocklet DID"),C(!1)},W=()=>{if(!i){_.error(r("blocklet.publish.errorTip.noDid"));return}if(!d){_.error(r("blocklet.publish.errorTip.noTitle"));return}y(!0),E.createProject({input:{did:m.meta.did,blockletTitle:d||"",blockletDid:i,type:g,componentDid:B}}).then(()=>{y(!1),n("../",{replace:!0})}).catch(h=>{y(!1),_.error(h.message)})};return t.jsxs(ps,{...e,children:[t.jsxs(st,{className:"breadcrumbs","aria-label":"breadcrumb",children:[t.jsx(re,{to:"..",children:r("common.publish")}),t.jsxs(Z,{color:"text.primary",children:[r("common.create")," Blocklet"]})]}),t.jsxs(j,{style:{maxWidth:500},children:[t.jsx(ke,{required:!0,sx:{mb:4},label:"Blocklet DID",fullWidth:!0,readonly:!0,autoComplete:"off",variant:"outlined",onChange:h=>$&&k(h.target.value),onClick:()=>!$&&!i&&C(!0),InputProps:{"data-cy":"export-blocklet-did",endAdornment:!$&&t.jsx(Ye,{position:"end",children:t.jsx(le,{onClick:()=>C(!0),children:r(i?"common.update":"common.create")})})},helperText:"",value:i||""}),a&&t.jsx(So,{open:!0,popup:!0,onClose:()=>C(!1),action:"gen-blocklet-key-pair",locale:l,checkFn:I.get,saveConnect:!1,forceConnected:!1,checkTimeout:5*60*1e3,onSuccess:w,onError:p,extraParams:{did:m.meta.did},messages:{title:r("blocklet.publish.connect.title"),scan:r("blocklet.publish.connect.scan"),confirm:r("blocklet.publish.connect.confirm"),success:r("blocklet.publish.connect.success")}}),t.jsx(ke,{required:!0,label:`Blocklet ${r("common.title")}`,autoComplete:"off",variant:"outlined",InputProps:{"data-cy":"export-blocklet-title"},fullWidth:!0,helperText:"",value:d||"",onChange:h=>{b(h.target.value)}}),t.jsx(ke,{sx:{my:4},id:"blocklet-type",select:!0,label:`Blocklet ${r("common.type")}`,helperText:"",fullWidth:!0,value:g,onChange:h=>S(h.target.value),children:us.map(h=>t.jsx(Io,{value:h.value,disabled:h.disabled,children:h.label[l]||h.label.en},h.value))})]}),t.jsx(le,{variant:"contained",disabled:u,onClick:W,children:r("common.create")})]})}nt.propTypes={};nt.defaultProps={};const ps=je.div`
6
6
  .breadcrumbs {
7
7
  margin-bottom: 24px;
8
8
  }
9
- `;function zt(){const{t:e,locale:n}=Me(),{projectId:r}=Le(),{api:l}=Oe(),[m,d]=c.useState(!0),{blocklet:b}=_e(),[u,y]=c.useState(null),[g,S]=c.useState(null),[I,E]=c.useState(null),i=()=>{l.getReleases({input:{did:b.meta.did,projectId:r}}).then(p=>{const w=(p==null?void 0:p.releases)||[];d(!1),y(w)}).catch(p=>{d(!1),_.error(p.message)})},k=()=>{l.doBatchQuery({getProject:{input:{did:b.meta.did,projectId:r}},getReleases:{input:{did:b.meta.did,projectId:r}}}).then(p=>{S(p.getProject.project||{}),y(p.getReleases.releases||[]),d(!1)}).catch(p=>{d(!1),_.error(p.message)})};c.useEffect(()=>{k()},[]);const a=()=>{d(!1);const p=I.id;l.deleteRelease({input:{did:b.meta.did,projectId:r,releaseId:p}}).then(()=>{d(!1),i(),_.success(e("common.removeSuccess")),E(null)}).catch(w=>{d(!1),_.error(w.message)})},C=p=>{E(p)};if(!u&&m)return t.jsx(Ve,{});if(!u)return null;const v=t.jsxs(st,{className:"breadcrumbs","aria-label":"breadcrumb",children:[t.jsx(re,{to:"..",children:e("common.publish")}),t.jsx(Z,{color:"text.primary",children:g.blockletTitle})]});if(!u.length)return t.jsxs(t.Fragment,{children:[v,t.jsxs(j,{display:"flex",flexDirection:"column",alignItems:"center",pt:10,children:[t.jsx(j,{sx:{fontSize:20,fontWeight:"bold",mb:3},children:e("blocklet.publish.releaseEmptyTip")}),t.jsx(j,{sx:{fontSize:14,color:"text.secondary",mb:3},children:e("blocklet.publish.createReleaseTip")}),t.jsx(re,{to:"create",children:t.jsx(le,{variant:"contained",children:e("blocklet.publish.createRelease")})})]})]});const $=[{label:e("common.version"),name:"blockletVersion",options:{customBodyRenderLite:p=>{const w=u[p];return t.jsx(re,{to:`${w.id}`,children:w.blockletVersion||"/"})}}},{label:e("blocklet.publish.releaseNote"),name:"note",options:{customBodyRenderLite:p=>{const w=u[p];return t.jsx(Z,{className:"note",children:w.note||""})}}},{label:e("common.status"),name:"status",options:{customBodyRender:p=>t.jsx(Ot,{type:p==="published"?"success":"warning",children:wo(p)})}},{label:e("common.lastPublishedAt"),name:"updatedAt",options:{customBodyRenderLite:p=>{const w=u[p];return w.status!==ne.PROJECT.RELEASE_STATUS.published?"":t.jsx(Nt,{value:Number(w.updatedAt),locale:n})}}},{label:e("common.actions"),name:"actions",options:{customBodyRenderLite:p=>{const w=u[p];return t.jsxs(j,{display:"flex",alignItems:"center",children:[t.jsx(Ue,{color:"primary","aria-label":"download",disabled:w.status!=="published",children:w.status==="published"?t.jsx("a",{style:{display:"flex"},href:ot(`${Ae.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${b.meta.did}/${g.id}/${w.id}/download/${(w.files||[])[0]}`),children:t.jsx(kt,{sx:{fontSize:18}})}):t.jsx(kt,{sx:{fontSize:18}})}),t.jsx(Ue,{color:"error","aria-label":"delete",onClick:()=>C(w),children:t.jsx(At,{sx:{fontSize:18}})})]})}}}];return t.jsxs(fs,{children:[t.jsxs(j,{className:"header",children:[v,t.jsx(re,{to:"create",children:t.jsx(le,{variant:"contained",children:e("blocklet.publish.createRelease")})})]}),t.jsx(Mt,{className:"main-table",verticalKeyWidth:100,locale:n,data:u,columns:$,options:{sort:!1,download:!1,filter:!1,print:!1,search:!1}}),I&&t.jsx(_t,{title:e(`${e("common.delete")} ${I.blockletVersion}`),description:e("blocklet.publish.deleteReleaseTip"),confirm:e("common.confirm"),onConfirm:a,onCancel:()=>E(null)})]})}zt.propTypes={};const fs=je(j)`
9
+ `;function zt(){const{t:e,locale:n}=Oe(),{projectId:r}=Le(),{api:l}=Me(),[m,d]=c.useState(!0),{blocklet:b}=_e(),[u,y]=c.useState(null),[g,S]=c.useState(null),[I,E]=c.useState(null),i=()=>{l.getReleases({input:{did:b.meta.did,projectId:r}}).then(p=>{const w=(p==null?void 0:p.releases)||[];d(!1),y(w)}).catch(p=>{d(!1),_.error(p.message)})},k=()=>{l.doBatchQuery({getProject:{input:{did:b.meta.did,projectId:r}},getReleases:{input:{did:b.meta.did,projectId:r}}}).then(p=>{S(p.getProject.project||{}),y(p.getReleases.releases||[]),d(!1)}).catch(p=>{d(!1),_.error(p.message)})};c.useEffect(()=>{k()},[]);const a=()=>{d(!1);const p=I.id;l.deleteRelease({input:{did:b.meta.did,projectId:r,releaseId:p}}).then(()=>{d(!1),i(),_.success(e("common.removeSuccess")),E(null)}).catch(w=>{d(!1),_.error(w.message)})},C=p=>{E(p)};if(!u&&m)return t.jsx(Ve,{});if(!u)return null;const $=t.jsxs(st,{className:"breadcrumbs","aria-label":"breadcrumb",children:[t.jsx(re,{to:"..",children:e("common.publish")}),t.jsx(Z,{color:"text.primary",children:g.blockletTitle})]});if(!u.length)return t.jsxs(t.Fragment,{children:[$,t.jsxs(j,{display:"flex",flexDirection:"column",alignItems:"center",pt:10,children:[t.jsx(j,{sx:{fontSize:20,fontWeight:"bold",mb:3},children:e("blocklet.publish.releaseEmptyTip")}),t.jsx(j,{sx:{fontSize:14,color:"text.secondary",mb:3},children:e("blocklet.publish.createReleaseTip")}),t.jsx(re,{to:"create",children:t.jsx(le,{variant:"contained",children:e("blocklet.publish.createRelease")})})]})]});const B=[{label:e("common.version"),name:"blockletVersion",options:{customBodyRenderLite:p=>{const w=u[p];return t.jsx(re,{to:`${w.id}`,children:w.blockletVersion||"/"})}}},{label:e("blocklet.publish.releaseNote"),name:"note",options:{customBodyRenderLite:p=>{const w=u[p];return t.jsx(Z,{className:"note",children:w.note||""})}}},{label:e("common.status"),name:"status",options:{customBodyRender:p=>t.jsx(Mt,{type:p==="published"?"success":"warning",children:wo(p)})}},{label:e("common.lastPublishedAt"),name:"updatedAt",options:{customBodyRenderLite:p=>{const w=u[p];return w.status!==ne.PROJECT.RELEASE_STATUS.published?"":t.jsx(Nt,{value:Number(w.updatedAt),locale:n})}}},{label:e("common.actions"),name:"actions",options:{customBodyRenderLite:p=>{const w=u[p];return t.jsxs(j,{display:"flex",alignItems:"center",children:[t.jsx(Ue,{color:"primary","aria-label":"download",disabled:w.status!=="published",children:w.status==="published"?t.jsx("a",{style:{display:"flex"},href:ot(`${Ae.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${b.meta.did}/${g.id}/${w.id}/download/${(w.files||[])[0]}`),children:t.jsx(kt,{sx:{fontSize:18}})}):t.jsx(kt,{sx:{fontSize:18}})}),t.jsx(Ue,{color:"error","aria-label":"delete",onClick:()=>C(w),children:t.jsx(At,{sx:{fontSize:18}})})]})}}}];return t.jsxs(fs,{children:[t.jsxs(j,{className:"header",children:[$,t.jsx(re,{to:"create",children:t.jsx(le,{variant:"contained",children:e("blocklet.publish.createRelease")})})]}),t.jsx(Ot,{className:"main-table",verticalKeyWidth:100,locale:n,data:u,columns:B,options:{sort:!1,download:!1,filter:!1,print:!1,search:!1}}),I&&t.jsx(_t,{title:e(`${e("common.delete")} ${I.blockletVersion}`),description:e("blocklet.publish.deleteReleaseTip"),confirm:e("common.confirm"),onConfirm:a,onCancel:()=>E(null)})]})}zt.propTypes={};const fs=je(j)`
10
10
  .header {
11
11
  display: flex;
12
12
  align-items: center;
@@ -19,9 +19,9 @@ import{aj as yo,j as t,az as ce,aH as Co,aD as F,er as xt,aC as Ne,ax as Qe,ay a
19
19
  word-break: break-all;
20
20
  white-space: pre-line;
21
21
  }
22
- `,rt=c.createContext({registerNode:()=>{},unregisterNode:()=>{},isFocused:()=>!1,isSelected:()=>!1,isExpanded:()=>!1,isExpandable:()=>!1,isDisabled:()=>!1,mapFirstChar:()=>{},unMapFirstChar:()=>{},focus:()=>{},toggleExpansion:()=>{},selectNode:()=>{},selectRange:()=>{},multiSelect:!1,disabledItemsFocusable:!1,treeId:void 0,icons:{defaultCollapseIcon:null,defaultExpandIcon:null,defaultParentIcon:null,defaultEndIcon:null}}),ms=["element"];function hs(e,n){for(let r=0;r<e.length;r+=1)if(n(e[r]))return r;return-1}function xs(e,n){let r=0,l=e.length-1;for(;r<=l;){const m=Math.floor((r+l)/2);if(e[m].element===n)return m;e[m].element.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_PRECEDING?l=m-1:r=m+1}return r}const Wt=c.createContext({});function bs(e){const n=c.useRef(null);return c.useEffect(()=>{n.current=e},[e]),n.current}const jt=()=>{};function gs(e){const[,n]=c.useState(),{registerDescendant:r=jt,unregisterDescendant:l=jt,descendants:m=[],parentId:d=null}=c.useContext(Wt),b=hs(m,g=>g.element===e.element),u=bs(m),y=m.some((g,S)=>u&&u[S]&&u[S].element!==g.element);return Ro(()=>{if(e.element)return r(F({},e,{index:b})),()=>{l(e.element)};n({})},[r,l,b,y,e]),{parentId:d,index:b}}function Kt(e){const{children:n,id:r}=e,[l,m]=c.useState([]),d=c.useCallback(y=>{let{element:g}=y,S=Ne(y,ms);m(I=>{if(I.length===0)return[F({},S,{element:g,index:0})];const E=xs(I,g);let i;if(I[E]&&I[E].element===g)i=I;else{const k=F({},S,{element:g,index:E});i=I.slice(),i.splice(E,0,k)}return i.forEach((k,a)=>{k.index=a}),i})},[]),b=c.useCallback(y=>{m(g=>g.filter(S=>y!==S.element))},[]),u=c.useMemo(()=>({descendants:l,registerDescendant:d,unregisterDescendant:b,parentId:r}),[l,d,b,r]);return t.jsx(Wt.Provider,{value:u,children:n})}function ks(e){return Ze("MuiTreeView",e)}Qe("MuiTreeView",["root"]);const js=["children","className","defaultCollapseIcon","defaultEndIcon","defaultExpanded","defaultExpandIcon","defaultParentIcon","defaultSelected","disabledItemsFocusable","disableSelection","expanded","id","multiSelect","onBlur","onFocus","onKeyDown","onNodeFocus","onNodeSelect","onNodeToggle","selected"],ys=e=>{const{classes:n}=e;return tt({root:["root"]},ks,n)},Cs=ce("ul",{name:"MuiTreeView",slot:"Root",overridesResolver:(e,n)=>n.root})({padding:0,margin:0,listStyle:"none",outline:0});function Ts(e){return e&&e.length===1&&e.match(/\S/)}function yt(e,n,r){for(let l=n;l<e.length;l+=1)if(r===e[l])return l;return-1}function Ct(){return!1}const Ss=[],Is=[],ws=c.forwardRef(function(n,r){var l,m,d,b,u;const y=et({props:n,name:"MuiTreeView"}),g=F({},y,{disabledItemsFocusable:(l=y.disabledItemsFocusable)!=null?l:!1,disableSelection:(m=y.disableSelection)!=null?m:!1,multiSelect:(d=y.multiSelect)!=null?d:!1,defaultExpanded:(b=y.defaultExpanded)!=null?b:Ss,defaultSelected:(u=y.defaultSelected)!=null?u:Is}),{children:S,className:I,defaultCollapseIcon:E,defaultEndIcon:i,defaultExpanded:k,defaultExpandIcon:a,defaultParentIcon:C,defaultSelected:v,disabledItemsFocusable:$,disableSelection:p,expanded:w,id:K,multiSelect:h,onBlur:N,onFocus:U,onKeyDown:ee,onNodeFocus:ae,onNodeSelect:z,onNodeToggle:de,selected:ue}=g,pe=Ne(g,js),ie=Eo().direction==="rtl",fe=ys(g),te=Po(K),oe=c.useRef(null),we=$t(oe,r),[R,Ce]=c.useState(null),M=c.useRef({}),Y=c.useRef({}),[G,x]=bt({controlled:w,default:k,name:"TreeView",state:"expanded"}),[B,O]=bt({controlled:ue,default:v,name:"TreeView",state:"selected"}),L=c.useCallback(o=>Array.isArray(G)?G.indexOf(o)!==-1:!1,[G]),H=c.useCallback(o=>M.current[o]&&M.current[o].expandable,[]),Te=c.useCallback(o=>Array.isArray(B)?B.indexOf(o)!==-1:B===o,[B]),V=c.useCallback(o=>{if(o==null)return!1;let s=M.current[o];if(!s)return!1;if(s.disabled)return!0;for(;s.parentId!=null;)if(s=M.current[s.parentId],s.disabled)return!0;return!1},[]),ve=o=>R===o,me=o=>Object.keys(M.current).map(s=>M.current[s]).filter(s=>s.parentId===o).sort((s,f)=>s.index-f.index).map(s=>s.id),X=o=>{let s=me(o);return $||(s=s.filter(f=>!V(f))),s},Re=o=>{if(L(o)&&X(o).length>0)return X(o)[0];let s=M.current[o];for(;s!=null;){const f=X(s.parentId),T=f[f.indexOf(s.id)+1];if(T)return T;s=M.current[s.parentId]}return null},J=o=>{const s=M.current[o],f=X(s.parentId),T=f.indexOf(o);if(T===0)return s.parentId;let P=f[T-1];for(;L(P)&&X(P).length>0;)P=X(P).pop();return P},he=()=>{let o=X(null).pop();for(;L(o);)o=X(o).pop();return o},Se=()=>X(null)[0],Jt=o=>M.current[o].parentId,Xt=(o,s)=>{if(o===s)return[o,s];const f=M.current[o],T=M.current[s];if(f.parentId===T.id||T.parentId===f.id)return T.parentId===f.id?[f.id,T.id]:[T.id,f.id];const P=[f.id],D=[T.id];let A=f.parentId,q=T.parentId,Q=D.indexOf(A)!==-1,Pe=P.indexOf(q)!==-1,Be=!0,De=!0;for(;!Pe&&!Q;)Be&&(P.push(A),Q=D.indexOf(A)!==-1,Be=A!==null,!Q&&Be&&(A=M.current[A].parentId)),De&&!Q&&(D.push(q),Pe=P.indexOf(q)!==-1,De=q!==null,!Pe&&De&&(q=M.current[q].parentId));const qe=Q?A:q,ht=me(qe),ko=P[P.indexOf(qe)-1],jo=D[D.indexOf(qe)-1];return ht.indexOf(ko)<ht.indexOf(jo)?[o,s]:[s,o]},Gt=(o,s)=>{const[f,T]=Xt(o,s),P=[f];let D=f;for(;D!==T;)D=Re(D),P.push(D);return P},xe=(o,s)=>{s&&(Ce(s),ae&&ae(o,s))},ut=(o,s)=>xe(o,Re(s)),Yt=(o,s)=>xe(o,J(s)),Qt=o=>xe(o,Se()),Zt=o=>xe(o,he()),eo=(o,s,f)=>{let T,P;const D=f.toLowerCase(),A=[],q=[];Object.keys(Y.current).forEach(Q=>{const Pe=M.current[Q],Be=Pe.parentId?L(Pe.parentId):!0,De=$?!1:V(Q);Be&&!De&&(A.push(Q),q.push(Y.current[Q]))}),T=A.indexOf(s)+1,T>=A.length&&(T=0),P=yt(q,T,D),P===-1&&(P=yt(q,0,D)),P>-1&&xe(o,A[P])},Fe=(o,s=R)=>{if(s==null)return;let f;G.indexOf(s)!==-1?f=G.filter(T=>T!==s):f=[s].concat(G),de&&de(o,f),x(f)},to=(o,s)=>{const f=M.current[s],P=me(f.parentId).filter(A=>H(A)&&!L(A)),D=G.concat(P);P.length>0&&(x(D),de&&de(o,D))},be=c.useRef(null),Ee=c.useRef(!1),se=c.useRef([]),oo=(o,s)=>{let f=B.slice();const{start:T,next:P,current:D}=s;!P||!D||(se.current.indexOf(D)===-1&&(se.current=[]),Ee.current?se.current.indexOf(P)!==-1?(f=f.filter(A=>A===T||A!==D),se.current=se.current.filter(A=>A===T||A!==D)):(f.push(P),se.current.push(P)):(f.push(P),se.current.push(D,P)),z&&z(o,f),O(f))},so=(o,s)=>{let f=B.slice();const{start:T,end:P}=s;Ee.current&&(f=f.filter(q=>se.current.indexOf(q)===-1));let D=Gt(T,P);D=D.filter(q=>!V(q)),se.current=D;let A=f.concat(D);A=A.filter((q,Q)=>A.indexOf(q)===Q),z&&z(o,A),O(A)},no=(o,s)=>{if(!Array.isArray(B))return;let f;B.indexOf(s)!==-1?f=B.filter(T=>T!==s):f=[s].concat(B),z&&z(o,f),O(f)},ro=(o,s)=>{const f=h?[s]:s;z&&z(o,f),O(f)},$e=(o,s,f=!1)=>s?(f?no(o,s):ro(o,s),be.current=s,Ee.current=!1,se.current=[],!0):!1,Ie=(o,s,f=!1)=>{const{start:T=be.current,end:P,current:D}=s;f?oo(o,{start:T,next:P,current:D}):T!=null&&P!=null&&so(o,{start:T,end:P}),Ee.current=!0},lo=(o,s)=>{be.current||(be.current=s);const f=Ee.current?be.current:s;Ie(o,{start:f,end:Se()})},ao=(o,s)=>{be.current||(be.current=s);const f=Ee.current?be.current:s;Ie(o,{start:f,end:he()})},io=(o,s)=>{V(Re(s))||Ie(o,{end:Re(s),current:s},!0)},co=(o,s)=>{V(J(s))||Ie(o,{end:J(s),current:s},!0)},uo=o=>{Ie(o,{start:Se(),end:he()})},po=c.useCallback(o=>{const{id:s,index:f,parentId:T,expandable:P,idAttribute:D,disabled:A}=o;M.current[s]={id:s,index:f,parentId:T,expandable:P,idAttribute:D,disabled:A}},[]),fo=c.useCallback(o=>{const s=F({},M.current);delete s[o],M.current=s,Ce(f=>f===o&&oe.current===Bt(oe.current).activeElement?me(null)[0]:f)},[]),mo=c.useCallback((o,s)=>{Y.current[o]=s},[]),ho=c.useCallback(o=>{const s=F({},Y.current);delete s[o],Y.current=s},[]),pt=o=>(R!=null&&H(R)&&(L(R)?ut(o,R):V(R)||Fe(o)),!0),ft=o=>{if(R==null)return!1;if(L(R)&&!V(R))return Fe(o,R),!0;const s=Jt(R);return s?(xe(o,s),!0):!1},xo=o=>{let s=!1;const f=o.key;if(o.altKey||o.currentTarget!==o.target||!R)return;const T=o.ctrlKey||o.metaKey;switch(f){case" ":!p&&R!=null&&!V(R)&&(h&&o.shiftKey?(Ie(o,{end:R}),s=!0):h?s=$e(o,R,!0):s=$e(o,R)),o.stopPropagation();break;case"Enter":V(R)||(H(R)?(Fe(o),s=!0):h?s=$e(o,R,!0):s=$e(o,R)),o.stopPropagation();break;case"ArrowDown":h&&o.shiftKey&&!p&&io(o,R),ut(o,R),s=!0;break;case"ArrowUp":h&&o.shiftKey&&!p&&co(o,R),Yt(o,R),s=!0;break;case"ArrowRight":ie?s=ft(o):s=pt(o);break;case"ArrowLeft":ie?s=pt(o):s=ft(o);break;case"Home":h&&T&&o.shiftKey&&!p&&!V(R)&&lo(o,R),Qt(o),s=!0;break;case"End":h&&T&&o.shiftKey&&!p&&!V(R)&&ao(o,R),Zt(o),s=!0;break;default:f==="*"?(to(o,R),s=!0):h&&T&&f.toLowerCase()==="a"&&!p?(uo(o),s=!0):!T&&!o.shiftKey&&Ts(f)&&(eo(o,R,f),s=!0)}s&&(o.preventDefault(),o.stopPropagation()),ee&&ee(o)},bo=o=>{if(o.target===o.currentTarget){const s=Array.isArray(B)?B[0]:B;xe(o,s||X(null)[0])}U&&U(o)},go=o=>{Ce(null),N&&N(o)},mt=M.current[R]?M.current[R].idAttribute:null;return t.jsx(rt.Provider,{value:{icons:{defaultCollapseIcon:E,defaultExpandIcon:a,defaultParentIcon:C,defaultEndIcon:i},focus:xe,toggleExpansion:Fe,isExpanded:L,isExpandable:H,isFocused:ve,isSelected:Te,isDisabled:V,selectNode:p?Ct:$e,selectRange:p?Ct:Ie,multiSelect:h,disabledItemsFocusable:$,mapFirstChar:mo,unMapFirstChar:ho,registerNode:po,unregisterNode:fo,treeId:te},children:t.jsx(Kt,{children:t.jsx(Cs,F({role:"tree",id:te,"aria-activedescendant":mt??void 0,"aria-multiselectable":h,className:He(fe.root,I),tabIndex:0,onKeyDown:xo,onFocus:bo,onBlur:go,ownerState:g},pe,{ref:we,children:S}))})})});let Tt=!1;const Rs=()=>{Tt||(console.warn(["MUI: The TreeView component was moved from `@mui/lab` to `@mui/x-tree-view`.","The component will no longer be exported from `@mui/lab` in the first release of October 2023.","","You should use `import { TreeView } from '@mui/x-tree-view'`","or `import { TreeView } from '@mui/x-tree-view/TreeView'`","","More information about this migration on our blog: https://mui.com/blog/lab-tree-view-to-mui-x/."].join(`
23
- `)),Tt=!0)},Es=c.forwardRef(function(n,r){return Rs(),t.jsx(ws,F({},n,{ref:r}))}),Ps=Es;function Ns(e){const{focus:n,isExpanded:r,isExpandable:l,isFocused:m,isDisabled:d,isSelected:b,multiSelect:u,selectNode:y,selectRange:g,toggleExpansion:S}=c.useContext(rt),I=l?l(e):!1,E=r?r(e):!1,i=m?m(e):!1,k=d?d(e):!1,a=b?b(e):!1;return{disabled:k,expanded:E,selected:a,focused:i,handleExpansion:p=>{if(!k){i||n(p,e);const w=u&&(p.shiftKey||p.ctrlKey||p.metaKey);I&&!(w&&r(e))&&S(p,e)}},handleSelection:p=>{k||(i||n(p,e),u&&(p.shiftKey||p.ctrlKey||p.metaKey)?p.shiftKey?g(p,{end:e}):y(p,e,!0):y(p,e))},preventSelection:p=>{(p.shiftKey||p.ctrlKey||p.metaKey||k)&&p.preventDefault()}}}const vs=["classes","className","displayIcon","expansionIcon","icon","label","nodeId","onClick","onMouseDown"],Ut=c.forwardRef(function(n,r){const{classes:l,className:m,displayIcon:d,expansionIcon:b,icon:u,label:y,nodeId:g,onClick:S,onMouseDown:I}=n,E=Ne(n,vs),{disabled:i,expanded:k,selected:a,focused:C,handleExpansion:v,handleSelection:$,preventSelection:p}=Ns(g),w=u||b||d,K=N=>{p(N),I&&I(N)},h=N=>{v(N),$(N),S&&S(N)};return t.jsxs("div",F({},E,{className:He(m,l.root,k&&l.expanded,a&&l.selected,C&&l.focused,i&&l.disabled),onClick:h,onMouseDown:K,ref:r,children:[t.jsx("div",{className:l.iconContainer,children:w}),t.jsx("div",{className:l.label,children:y})]}))});function $s(e){return Ze("MuiTreeItem",e)}const ge=Qe("MuiTreeItem",["root","group","content","expanded","selected","focused","disabled","iconContainer","label"]),Bs=["children","className","collapseIcon","ContentComponent","ContentProps","endIcon","expandIcon","disabled","icon","id","label","nodeId","onClick","onMouseDown","TransitionComponent","TransitionProps"],Ds=e=>{const{classes:n}=e;return tt({root:["root"],content:["content"],expanded:["expanded"],selected:["selected"],focused:["focused"],disabled:["disabled"],iconContainer:["iconContainer"],label:["label"],group:["group"]},$s,n)},As=ce("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,n)=>n.root})({listStyle:"none",margin:0,padding:0,outline:0}),Ms=ce(Ut,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,n)=>[n.content,n.iconContainer&&{[`& .${ge.iconContainer}`]:n.iconContainer},n.label&&{[`& .${ge.label}`]:n.label}]})(({theme:e})=>({padding:"0 8px",width:"100%",display:"flex",alignItems:"center",cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ge.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${ge.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ge.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ze(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ze(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ze(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ge.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ze(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${ge.iconContainer}`]:{marginRight:4,width:15,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${ge.label}`]:F({width:"100%",minWidth:0,paddingLeft:4,position:"relative"},e.typography.body1)})),Os=ce(Dt,{name:"MuiTreeItem",slot:"Group",overridesResolver:(e,n)=>n.group})({margin:0,padding:0,marginLeft:17}),_s=c.forwardRef(function(n,r){const l=et({props:n,name:"MuiTreeItem"}),{children:m,className:d,collapseIcon:b,ContentComponent:u=Ut,ContentProps:y,endIcon:g,expandIcon:S,disabled:I,icon:E,id:i,label:k,nodeId:a,onClick:C,onMouseDown:v,TransitionComponent:$=Dt,TransitionProps:p}=l,w=Ne(l,Bs),{icons:K,focus:h,isExpanded:N,isFocused:U,isSelected:ee,isDisabled:ae,multiSelect:z,disabledItemsFocusable:de,mapFirstChar:ue,unMapFirstChar:pe,registerNode:ye,unregisterNode:ie,treeId:fe}=c.useContext(rt);let te;i!=null?te=i:fe&&a&&(te=`${fe}-${a}`);const[oe,we]=c.useState(null),R=c.useRef(null),Ce=$t(we,r),M=c.useMemo(()=>({element:oe,id:a}),[a,oe]),{index:Y,parentId:G}=gs(M),x=!!(Array.isArray(m)?m.length:m),B=N?N(a):!1,O=U?U(a):!1,L=ee?ee(a):!1,H=ae?ae(a):!1,Te=F({},l,{expanded:B,focused:O,selected:L,disabled:H}),V=Ds(Te);let ve,me;x&&(B?me=b||K.defaultCollapseIcon:me=S||K.defaultExpandIcon),x?ve=K.defaultParentIcon:ve=g||K.defaultEndIcon,c.useEffect(()=>{if(ye&&ie&&Y!==-1)return ye({id:a,idAttribute:te,index:Y,parentId:G,expandable:x,disabled:I}),()=>{ie(a)}},[ye,ie,G,Y,a,x,I,te]),c.useEffect(()=>{if(ue&&pe&&k){var J,he;return ue(a,((J=(he=R.current)==null?void 0:he.textContent)!=null?J:"").substring(0,1).toLowerCase()),()=>{pe(a)}}},[ue,pe,a,k]);let X;z?X=L:L&&(X=!0);function Re(J){if(J.target===J.currentTarget){let Se;typeof J.target.getRootNode=="function"?Se=J.target.getRootNode():Se=Bt(J.target),Se.getElementById(fe).focus({preventScroll:!0})}const he=!de&&H;!O&&J.currentTarget===J.target&&!he&&h(J,a)}return t.jsxs(As,F({className:He(V.root,d),role:"treeitem","aria-expanded":x?B:void 0,"aria-selected":X,"aria-disabled":H||void 0,id:te,tabIndex:-1},w,{ownerState:Te,onFocus:Re,ref:Ce,children:[t.jsx(Ms,F({as:u,ref:R,classes:{root:V.content,expanded:V.expanded,selected:V.selected,focused:V.focused,disabled:V.disabled,iconContainer:V.iconContainer,label:V.label},label:k,nodeId:a,onClick:C,onMouseDown:v,icon:E,expansionIcon:me,displayIcon:ve,ownerState:Te},y)),m&&t.jsx(Kt,{id:a,children:t.jsx(Os,F({as:$,unmountOnExit:!0,className:V.group,in:B,component:"ul",role:"group"},p,{children:m}))})]}))});let St=!1;const Ls=()=>{St||(console.warn(["MUI: The TreeItem component was moved from `@mui/lab` to `@mui/x-tree-view`.","The component will no longer be exported from `@mui/lab` in the first release of October 2023.","","You should use `import { TreeItem } from '@mui/x-tree-view'`","or `import { TreeItem } from '@mui/x-tree-view/TreeItem'`","","More information about this migration on our blog: https://mui.com/blog/lab-tree-view-to-mui-x/."].join(`
24
- `)),St=!0)},Vs=c.forwardRef(function(n,r){return Ls(),t.jsx(_s,F({},n,{ref:r}))}),Fs=Vs;function lt({data:e,...n}){return!e||!e.length?null:t.jsx(zs,{...n,children:e.map(r=>t.jsx("a",{href:r.url,target:"_blank",rel:"noreferrer",children:t.jsx("img",{src:r.url,alt:r.alt||""})},r.url))})}lt.propTypes={data:W.arrayOf(W.shape({url:W.string,alt:W.string}))};lt.defaultProps={data:[]};const zs=je(j)`
22
+ `,rt=c.createContext({registerNode:()=>{},unregisterNode:()=>{},isFocused:()=>!1,isSelected:()=>!1,isExpanded:()=>!1,isExpandable:()=>!1,isDisabled:()=>!1,mapFirstChar:()=>{},unMapFirstChar:()=>{},focus:()=>{},toggleExpansion:()=>{},selectNode:()=>{},selectRange:()=>{},multiSelect:!1,disabledItemsFocusable:!1,treeId:void 0,icons:{defaultCollapseIcon:null,defaultExpandIcon:null,defaultParentIcon:null,defaultEndIcon:null}}),ms=["element"];function hs(e,n){for(let r=0;r<e.length;r+=1)if(n(e[r]))return r;return-1}function xs(e,n){let r=0,l=e.length-1;for(;r<=l;){const m=Math.floor((r+l)/2);if(e[m].element===n)return m;e[m].element.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_PRECEDING?l=m-1:r=m+1}return r}const Kt=c.createContext({});function bs(e){const n=c.useRef(null);return c.useEffect(()=>{n.current=e},[e]),n.current}const jt=()=>{};function gs(e){const[,n]=c.useState(),{registerDescendant:r=jt,unregisterDescendant:l=jt,descendants:m=[],parentId:d=null}=c.useContext(Kt),b=hs(m,g=>g.element===e.element),u=bs(m),y=m.some((g,S)=>u&&u[S]&&u[S].element!==g.element);return Ro(()=>{if(e.element)return r(F({},e,{index:b})),()=>{l(e.element)};n({})},[r,l,b,y,e]),{parentId:d,index:b}}function Wt(e){const{children:n,id:r}=e,[l,m]=c.useState([]),d=c.useCallback(y=>{let{element:g}=y,S=Ne(y,ms);m(I=>{if(I.length===0)return[F({},S,{element:g,index:0})];const E=xs(I,g);let i;if(I[E]&&I[E].element===g)i=I;else{const k=F({},S,{element:g,index:E});i=I.slice(),i.splice(E,0,k)}return i.forEach((k,a)=>{k.index=a}),i})},[]),b=c.useCallback(y=>{m(g=>g.filter(S=>y!==S.element))},[]),u=c.useMemo(()=>({descendants:l,registerDescendant:d,unregisterDescendant:b,parentId:r}),[l,d,b,r]);return t.jsx(Kt.Provider,{value:u,children:n})}function ks(e){return Ze("MuiTreeView",e)}Qe("MuiTreeView",["root"]);const js=["children","className","defaultCollapseIcon","defaultEndIcon","defaultExpanded","defaultExpandIcon","defaultParentIcon","defaultSelected","disabledItemsFocusable","disableSelection","expanded","id","multiSelect","onBlur","onFocus","onKeyDown","onNodeFocus","onNodeSelect","onNodeToggle","selected"],ys=e=>{const{classes:n}=e;return tt({root:["root"]},ks,n)},Cs=ce("ul",{name:"MuiTreeView",slot:"Root",overridesResolver:(e,n)=>n.root})({padding:0,margin:0,listStyle:"none",outline:0});function Ts(e){return e&&e.length===1&&e.match(/\S/)}function yt(e,n,r){for(let l=n;l<e.length;l+=1)if(r===e[l])return l;return-1}function Ct(){return!1}const Ss=[],Is=[],ws=c.forwardRef(function(n,r){var l,m,d,b,u;const y=et({props:n,name:"MuiTreeView"}),g=F({},y,{disabledItemsFocusable:(l=y.disabledItemsFocusable)!=null?l:!1,disableSelection:(m=y.disableSelection)!=null?m:!1,multiSelect:(d=y.multiSelect)!=null?d:!1,defaultExpanded:(b=y.defaultExpanded)!=null?b:Ss,defaultSelected:(u=y.defaultSelected)!=null?u:Is}),{children:S,className:I,defaultCollapseIcon:E,defaultEndIcon:i,defaultExpanded:k,defaultExpandIcon:a,defaultParentIcon:C,defaultSelected:$,disabledItemsFocusable:B,disableSelection:p,expanded:w,id:W,multiSelect:h,onBlur:N,onFocus:U,onKeyDown:ee,onNodeFocus:ae,onNodeSelect:z,onNodeToggle:de,selected:ue}=g,pe=Ne(g,js),ie=Eo().direction==="rtl",fe=ys(g),te=Po(W),oe=c.useRef(null),we=$t(oe,r),[R,Ce]=c.useState(null),O=c.useRef({}),Y=c.useRef({}),[G,x]=bt({controlled:w,default:k,name:"TreeView",state:"expanded"}),[v,M]=bt({controlled:ue,default:$,name:"TreeView",state:"selected"}),L=c.useCallback(o=>Array.isArray(G)?G.indexOf(o)!==-1:!1,[G]),H=c.useCallback(o=>O.current[o]&&O.current[o].expandable,[]),Te=c.useCallback(o=>Array.isArray(v)?v.indexOf(o)!==-1:v===o,[v]),V=c.useCallback(o=>{if(o==null)return!1;let s=O.current[o];if(!s)return!1;if(s.disabled)return!0;for(;s.parentId!=null;)if(s=O.current[s.parentId],s.disabled)return!0;return!1},[]),ve=o=>R===o,me=o=>Object.keys(O.current).map(s=>O.current[s]).filter(s=>s.parentId===o).sort((s,f)=>s.index-f.index).map(s=>s.id),X=o=>{let s=me(o);return B||(s=s.filter(f=>!V(f))),s},Re=o=>{if(L(o)&&X(o).length>0)return X(o)[0];let s=O.current[o];for(;s!=null;){const f=X(s.parentId),T=f[f.indexOf(s.id)+1];if(T)return T;s=O.current[s.parentId]}return null},J=o=>{const s=O.current[o],f=X(s.parentId),T=f.indexOf(o);if(T===0)return s.parentId;let P=f[T-1];for(;L(P)&&X(P).length>0;)P=X(P).pop();return P},he=()=>{let o=X(null).pop();for(;L(o);)o=X(o).pop();return o},Se=()=>X(null)[0],Jt=o=>O.current[o].parentId,Xt=(o,s)=>{if(o===s)return[o,s];const f=O.current[o],T=O.current[s];if(f.parentId===T.id||T.parentId===f.id)return T.parentId===f.id?[f.id,T.id]:[T.id,f.id];const P=[f.id],D=[T.id];let A=f.parentId,q=T.parentId,Q=D.indexOf(A)!==-1,Pe=P.indexOf(q)!==-1,Be=!0,De=!0;for(;!Pe&&!Q;)Be&&(P.push(A),Q=D.indexOf(A)!==-1,Be=A!==null,!Q&&Be&&(A=O.current[A].parentId)),De&&!Q&&(D.push(q),Pe=P.indexOf(q)!==-1,De=q!==null,!Pe&&De&&(q=O.current[q].parentId));const qe=Q?A:q,ht=me(qe),ko=P[P.indexOf(qe)-1],jo=D[D.indexOf(qe)-1];return ht.indexOf(ko)<ht.indexOf(jo)?[o,s]:[s,o]},Gt=(o,s)=>{const[f,T]=Xt(o,s),P=[f];let D=f;for(;D!==T;)D=Re(D),P.push(D);return P},xe=(o,s)=>{s&&(Ce(s),ae&&ae(o,s))},ut=(o,s)=>xe(o,Re(s)),Yt=(o,s)=>xe(o,J(s)),Qt=o=>xe(o,Se()),Zt=o=>xe(o,he()),eo=(o,s,f)=>{let T,P;const D=f.toLowerCase(),A=[],q=[];Object.keys(Y.current).forEach(Q=>{const Pe=O.current[Q],Be=Pe.parentId?L(Pe.parentId):!0,De=B?!1:V(Q);Be&&!De&&(A.push(Q),q.push(Y.current[Q]))}),T=A.indexOf(s)+1,T>=A.length&&(T=0),P=yt(q,T,D),P===-1&&(P=yt(q,0,D)),P>-1&&xe(o,A[P])},Fe=(o,s=R)=>{if(s==null)return;let f;G.indexOf(s)!==-1?f=G.filter(T=>T!==s):f=[s].concat(G),de&&de(o,f),x(f)},to=(o,s)=>{const f=O.current[s],P=me(f.parentId).filter(A=>H(A)&&!L(A)),D=G.concat(P);P.length>0&&(x(D),de&&de(o,D))},be=c.useRef(null),Ee=c.useRef(!1),se=c.useRef([]),oo=(o,s)=>{let f=v.slice();const{start:T,next:P,current:D}=s;!P||!D||(se.current.indexOf(D)===-1&&(se.current=[]),Ee.current?se.current.indexOf(P)!==-1?(f=f.filter(A=>A===T||A!==D),se.current=se.current.filter(A=>A===T||A!==D)):(f.push(P),se.current.push(P)):(f.push(P),se.current.push(D,P)),z&&z(o,f),M(f))},so=(o,s)=>{let f=v.slice();const{start:T,end:P}=s;Ee.current&&(f=f.filter(q=>se.current.indexOf(q)===-1));let D=Gt(T,P);D=D.filter(q=>!V(q)),se.current=D;let A=f.concat(D);A=A.filter((q,Q)=>A.indexOf(q)===Q),z&&z(o,A),M(A)},no=(o,s)=>{if(!Array.isArray(v))return;let f;v.indexOf(s)!==-1?f=v.filter(T=>T!==s):f=[s].concat(v),z&&z(o,f),M(f)},ro=(o,s)=>{const f=h?[s]:s;z&&z(o,f),M(f)},$e=(o,s,f=!1)=>s?(f?no(o,s):ro(o,s),be.current=s,Ee.current=!1,se.current=[],!0):!1,Ie=(o,s,f=!1)=>{const{start:T=be.current,end:P,current:D}=s;f?oo(o,{start:T,next:P,current:D}):T!=null&&P!=null&&so(o,{start:T,end:P}),Ee.current=!0},lo=(o,s)=>{be.current||(be.current=s);const f=Ee.current?be.current:s;Ie(o,{start:f,end:Se()})},ao=(o,s)=>{be.current||(be.current=s);const f=Ee.current?be.current:s;Ie(o,{start:f,end:he()})},io=(o,s)=>{V(Re(s))||Ie(o,{end:Re(s),current:s},!0)},co=(o,s)=>{V(J(s))||Ie(o,{end:J(s),current:s},!0)},uo=o=>{Ie(o,{start:Se(),end:he()})},po=c.useCallback(o=>{const{id:s,index:f,parentId:T,expandable:P,idAttribute:D,disabled:A}=o;O.current[s]={id:s,index:f,parentId:T,expandable:P,idAttribute:D,disabled:A}},[]),fo=c.useCallback(o=>{const s=F({},O.current);delete s[o],O.current=s,Ce(f=>f===o&&oe.current===Bt(oe.current).activeElement?me(null)[0]:f)},[]),mo=c.useCallback((o,s)=>{Y.current[o]=s},[]),ho=c.useCallback(o=>{const s=F({},Y.current);delete s[o],Y.current=s},[]),pt=o=>(R!=null&&H(R)&&(L(R)?ut(o,R):V(R)||Fe(o)),!0),ft=o=>{if(R==null)return!1;if(L(R)&&!V(R))return Fe(o,R),!0;const s=Jt(R);return s?(xe(o,s),!0):!1},xo=o=>{let s=!1;const f=o.key;if(o.altKey||o.currentTarget!==o.target||!R)return;const T=o.ctrlKey||o.metaKey;switch(f){case" ":!p&&R!=null&&!V(R)&&(h&&o.shiftKey?(Ie(o,{end:R}),s=!0):h?s=$e(o,R,!0):s=$e(o,R)),o.stopPropagation();break;case"Enter":V(R)||(H(R)?(Fe(o),s=!0):h?s=$e(o,R,!0):s=$e(o,R)),o.stopPropagation();break;case"ArrowDown":h&&o.shiftKey&&!p&&io(o,R),ut(o,R),s=!0;break;case"ArrowUp":h&&o.shiftKey&&!p&&co(o,R),Yt(o,R),s=!0;break;case"ArrowRight":ie?s=ft(o):s=pt(o);break;case"ArrowLeft":ie?s=pt(o):s=ft(o);break;case"Home":h&&T&&o.shiftKey&&!p&&!V(R)&&lo(o,R),Qt(o),s=!0;break;case"End":h&&T&&o.shiftKey&&!p&&!V(R)&&ao(o,R),Zt(o),s=!0;break;default:f==="*"?(to(o,R),s=!0):h&&T&&f.toLowerCase()==="a"&&!p?(uo(o),s=!0):!T&&!o.shiftKey&&Ts(f)&&(eo(o,R,f),s=!0)}s&&(o.preventDefault(),o.stopPropagation()),ee&&ee(o)},bo=o=>{if(o.target===o.currentTarget){const s=Array.isArray(v)?v[0]:v;xe(o,s||X(null)[0])}U&&U(o)},go=o=>{Ce(null),N&&N(o)},mt=O.current[R]?O.current[R].idAttribute:null;return t.jsx(rt.Provider,{value:{icons:{defaultCollapseIcon:E,defaultExpandIcon:a,defaultParentIcon:C,defaultEndIcon:i},focus:xe,toggleExpansion:Fe,isExpanded:L,isExpandable:H,isFocused:ve,isSelected:Te,isDisabled:V,selectNode:p?Ct:$e,selectRange:p?Ct:Ie,multiSelect:h,disabledItemsFocusable:B,mapFirstChar:mo,unMapFirstChar:ho,registerNode:po,unregisterNode:fo,treeId:te},children:t.jsx(Wt,{children:t.jsx(Cs,F({role:"tree",id:te,"aria-activedescendant":mt??void 0,"aria-multiselectable":h,className:He(fe.root,I),tabIndex:0,onKeyDown:xo,onFocus:bo,onBlur:go,ownerState:g},pe,{ref:we,children:S}))})})});let Tt=!1;const Rs=()=>{Tt||(console.warn(["MUI: The TreeView component was moved from `@mui/lab` to `@mui/x-tree-view`.","The component will no longer be exported from `@mui/lab` in the first release of October 2023.","","You should use `import { TreeView } from '@mui/x-tree-view'`","or `import { TreeView } from '@mui/x-tree-view/TreeView'`","","More information about this migration on our blog: https://mui.com/blog/lab-tree-view-to-mui-x/."].join(`
23
+ `)),Tt=!0)},Es=c.forwardRef(function(n,r){return Rs(),t.jsx(ws,F({},n,{ref:r}))}),Ps=Es;function Ns(e){const{focus:n,isExpanded:r,isExpandable:l,isFocused:m,isDisabled:d,isSelected:b,multiSelect:u,selectNode:y,selectRange:g,toggleExpansion:S}=c.useContext(rt),I=l?l(e):!1,E=r?r(e):!1,i=m?m(e):!1,k=d?d(e):!1,a=b?b(e):!1;return{disabled:k,expanded:E,selected:a,focused:i,handleExpansion:p=>{if(!k){i||n(p,e);const w=u&&(p.shiftKey||p.ctrlKey||p.metaKey);I&&!(w&&r(e))&&S(p,e)}},handleSelection:p=>{k||(i||n(p,e),u&&(p.shiftKey||p.ctrlKey||p.metaKey)?p.shiftKey?g(p,{end:e}):y(p,e,!0):y(p,e))},preventSelection:p=>{(p.shiftKey||p.ctrlKey||p.metaKey||k)&&p.preventDefault()}}}const vs=["classes","className","displayIcon","expansionIcon","icon","label","nodeId","onClick","onMouseDown"],Ut=c.forwardRef(function(n,r){const{classes:l,className:m,displayIcon:d,expansionIcon:b,icon:u,label:y,nodeId:g,onClick:S,onMouseDown:I}=n,E=Ne(n,vs),{disabled:i,expanded:k,selected:a,focused:C,handleExpansion:$,handleSelection:B,preventSelection:p}=Ns(g),w=u||b||d,W=N=>{p(N),I&&I(N)},h=N=>{$(N),B(N),S&&S(N)};return t.jsxs("div",F({},E,{className:He(m,l.root,k&&l.expanded,a&&l.selected,C&&l.focused,i&&l.disabled),onClick:h,onMouseDown:W,ref:r,children:[t.jsx("div",{className:l.iconContainer,children:w}),t.jsx("div",{className:l.label,children:y})]}))});function $s(e){return Ze("MuiTreeItem",e)}const ge=Qe("MuiTreeItem",["root","group","content","expanded","selected","focused","disabled","iconContainer","label"]),Bs=["children","className","collapseIcon","ContentComponent","ContentProps","endIcon","expandIcon","disabled","icon","id","label","nodeId","onClick","onMouseDown","TransitionComponent","TransitionProps"],Ds=e=>{const{classes:n}=e;return tt({root:["root"],content:["content"],expanded:["expanded"],selected:["selected"],focused:["focused"],disabled:["disabled"],iconContainer:["iconContainer"],label:["label"],group:["group"]},$s,n)},As=ce("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,n)=>n.root})({listStyle:"none",margin:0,padding:0,outline:0}),Os=ce(Ut,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,n)=>[n.content,n.iconContainer&&{[`& .${ge.iconContainer}`]:n.iconContainer},n.label&&{[`& .${ge.label}`]:n.label}]})(({theme:e})=>({padding:"0 8px",width:"100%",display:"flex",alignItems:"center",cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ge.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${ge.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ge.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ze(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ze(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ze(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ge.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ze(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${ge.iconContainer}`]:{marginRight:4,width:15,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${ge.label}`]:F({width:"100%",minWidth:0,paddingLeft:4,position:"relative"},e.typography.body1)})),Ms=ce(Dt,{name:"MuiTreeItem",slot:"Group",overridesResolver:(e,n)=>n.group})({margin:0,padding:0,marginLeft:17}),_s=c.forwardRef(function(n,r){const l=et({props:n,name:"MuiTreeItem"}),{children:m,className:d,collapseIcon:b,ContentComponent:u=Ut,ContentProps:y,endIcon:g,expandIcon:S,disabled:I,icon:E,id:i,label:k,nodeId:a,onClick:C,onMouseDown:$,TransitionComponent:B=Dt,TransitionProps:p}=l,w=Ne(l,Bs),{icons:W,focus:h,isExpanded:N,isFocused:U,isSelected:ee,isDisabled:ae,multiSelect:z,disabledItemsFocusable:de,mapFirstChar:ue,unMapFirstChar:pe,registerNode:ye,unregisterNode:ie,treeId:fe}=c.useContext(rt);let te;i!=null?te=i:fe&&a&&(te=`${fe}-${a}`);const[oe,we]=c.useState(null),R=c.useRef(null),Ce=$t(we,r),O=c.useMemo(()=>({element:oe,id:a}),[a,oe]),{index:Y,parentId:G}=gs(O),x=!!(Array.isArray(m)?m.length:m),v=N?N(a):!1,M=U?U(a):!1,L=ee?ee(a):!1,H=ae?ae(a):!1,Te=F({},l,{expanded:v,focused:M,selected:L,disabled:H}),V=Ds(Te);let ve,me;x&&(v?me=b||W.defaultCollapseIcon:me=S||W.defaultExpandIcon),x?ve=W.defaultParentIcon:ve=g||W.defaultEndIcon,c.useEffect(()=>{if(ye&&ie&&Y!==-1)return ye({id:a,idAttribute:te,index:Y,parentId:G,expandable:x,disabled:I}),()=>{ie(a)}},[ye,ie,G,Y,a,x,I,te]),c.useEffect(()=>{if(ue&&pe&&k){var J,he;return ue(a,((J=(he=R.current)==null?void 0:he.textContent)!=null?J:"").substring(0,1).toLowerCase()),()=>{pe(a)}}},[ue,pe,a,k]);let X;z?X=L:L&&(X=!0);function Re(J){if(J.target===J.currentTarget){let Se;typeof J.target.getRootNode=="function"?Se=J.target.getRootNode():Se=Bt(J.target),Se.getElementById(fe).focus({preventScroll:!0})}const he=!de&&H;!M&&J.currentTarget===J.target&&!he&&h(J,a)}return t.jsxs(As,F({className:He(V.root,d),role:"treeitem","aria-expanded":x?v:void 0,"aria-selected":X,"aria-disabled":H||void 0,id:te,tabIndex:-1},w,{ownerState:Te,onFocus:Re,ref:Ce,children:[t.jsx(Os,F({as:u,ref:R,classes:{root:V.content,expanded:V.expanded,selected:V.selected,focused:V.focused,disabled:V.disabled,iconContainer:V.iconContainer,label:V.label},label:k,nodeId:a,onClick:C,onMouseDown:$,icon:E,expansionIcon:me,displayIcon:ve,ownerState:Te},y)),m&&t.jsx(Wt,{id:a,children:t.jsx(Ms,F({as:B,unmountOnExit:!0,className:V.group,in:v,component:"ul",role:"group"},p,{children:m}))})]}))});let St=!1;const Ls=()=>{St||(console.warn(["MUI: The TreeItem component was moved from `@mui/lab` to `@mui/x-tree-view`.","The component will no longer be exported from `@mui/lab` in the first release of October 2023.","","You should use `import { TreeItem } from '@mui/x-tree-view'`","or `import { TreeItem } from '@mui/x-tree-view/TreeItem'`","","More information about this migration on our blog: https://mui.com/blog/lab-tree-view-to-mui-x/."].join(`
24
+ `)),St=!0)},Vs=c.forwardRef(function(n,r){return Ls(),t.jsx(_s,F({},n,{ref:r}))}),Fs=Vs;function lt({data:e,...n}){return!e||!e.length?null:t.jsx(zs,{...n,children:e.map(r=>t.jsx("a",{href:r.url,target:"_blank",rel:"noreferrer",children:t.jsx("img",{src:r.url,alt:r.alt||""})},r.url))})}lt.propTypes={data:K.arrayOf(K.shape({url:K.string,alt:K.string}))};lt.defaultProps={data:[]};const zs=je(j)`
25
25
  display: flex;
26
26
  justify-content: flex-start;
27
27
  flex-wrap: wrap;
@@ -35,7 +35,7 @@ import{aj as yo,j as t,az as ce,aH as Co,aD as F,er as xt,aC as Ne,ax as Qe,ay a
35
35
  margin-right: 12px;
36
36
  margin-bottom: 12px;
37
37
  }
38
- `,Xe=(e,n)=>{const r=[...e];for(;r.length>0;){const l=r.shift();if(l.id===n)return l;l.children&&r.push(...l.children)}return[]};function at({icon:e}){return e?Wo(e)?t.jsx("img",{className:"resource-icon",src:e,alt:"icon"}):t.jsx(No,{className:"resource-icon",icon:e}):null}at.propTypes={icon:W.string};at.defaultProps={icon:""};function it({disabled:e,data:n,onChange:r,value:l}){const m=l;function d(i,k=[]){return k.push(i.id),i.children&&i.children.forEach(a=>d(a,k)),k}const b=i=>d(Xe(n,i)),u=(i,k=[])=>{const a=Xe(n,i);return a.parent?(k.push(a.parent),u(a.parent,k)):k};function y(i,k){const a=b(i.id),C=a.indexOf(i.id);return a.splice(C,1),a.every(v=>m.concat(k).includes(v))}const g=(i,k)=>{i.stopPropagation();const a=b(k),C=u(k);if(m.includes(k)){const v=m.filter($=>!a.concat(C).includes($));r(v)}else{const v=a;for(let $=0;$<C.length;++$)y(Xe(n,C[$]),v)&&v.push(C[$]);r([...m].concat(v))}},S=i=>{i.stopPropagation()},I=n.some(i=>{var k;return((k=i.children)==null?void 0:k.length)>0}),E=i=>{var k;return t.jsx(Fs,{nodeId:i.id,label:t.jsx(Ho,{onClick:S,control:t.jsx(qo,{size:"small",checked:m.indexOf(i.id)!==-1,tabIndex:-1,disableRipple:!0,onClick:a=>g(a,i.id),disabled:e}),label:t.jsxs(j,{className:"content",children:[t.jsxs(j,{display:"flex",alignItems:"center",children:[i.icon&&t.jsx(at,{icon:i.icon}),t.jsx(j,{className:"name",children:i.name}),i.url&&t.jsx("a",{href:i.url,target:"_blank",rel:"noreferrer",className:"link",children:t.jsx(Uo,{className:"link-icon"})})]}),!!i.description&&t.jsx(j,{className:"description",children:i.description}),!!((k=i.images)!=null&&k.length)&&t.jsx(lt,{className:"images",data:i.images})]})}),children:Array.isArray(i.children)?i.children.map(E):null},i.id)};return t.jsx(Ws,{className:Vt(!I&&"no-children"),multiSelect:!0,defaultCollapseIcon:t.jsx(Ko,{}),defaultExpandIcon:t.jsx(_o,{}),selected:m,children:n.map(i=>E(i))})}it.propTypes={data:W.array,value:W.array,onChange:W.func,disabled:W.bool};it.defaultProps={data:[],value:[],onChange:()=>{},disabled:!1};const Ws=je(Ps)`
38
+ `,Xe=(e,n)=>{const r=[...e];for(;r.length>0;){const l=r.shift();if(l.id===n)return l;l.children&&r.push(...l.children)}return[]};function at({icon:e}){return e?Ko(e)?t.jsx("img",{className:"resource-icon",src:e,alt:"icon"}):t.jsx(No,{className:"resource-icon",icon:e}):null}at.propTypes={icon:K.string};at.defaultProps={icon:""};function it({disabled:e,data:n,onChange:r,value:l}){const m=l;function d(i,k=[]){return k.push(i.id),i.children&&i.children.forEach(a=>d(a,k)),k}const b=i=>d(Xe(n,i)),u=(i,k=[])=>{const a=Xe(n,i);return a.parent?(k.push(a.parent),u(a.parent,k)):k};function y(i,k){const a=b(i.id),C=a.indexOf(i.id);return a.splice(C,1),a.every($=>m.concat(k).includes($))}const g=(i,k)=>{i.stopPropagation();const a=b(k),C=u(k);if(m.includes(k)){const $=m.filter(B=>!a.concat(C).includes(B));r($)}else{const $=a;for(let B=0;B<C.length;++B)y(Xe(n,C[B]),$)&&$.push(C[B]);r([...m].concat($))}},S=i=>{i.stopPropagation()},I=n.some(i=>{var k;return((k=i.children)==null?void 0:k.length)>0}),E=i=>{var k;return t.jsx(Fs,{nodeId:i.id,label:t.jsx(Ho,{onClick:S,control:t.jsx(qo,{size:"small",checked:m.indexOf(i.id)!==-1,tabIndex:-1,disableRipple:!0,onClick:a=>g(a,i.id),disabled:e}),label:t.jsxs(j,{className:"content",children:[t.jsxs(j,{display:"flex",alignItems:"center",children:[i.icon&&t.jsx(at,{icon:i.icon}),t.jsx(j,{className:"name",children:i.name}),i.url&&t.jsx("a",{href:i.url,target:"_blank",rel:"noreferrer",className:"link",children:t.jsx(Uo,{className:"link-icon"})})]}),!!i.description&&t.jsx(j,{className:"description",children:i.description}),!!((k=i.images)!=null&&k.length)&&t.jsx(lt,{className:"images",data:i.images})]})}),children:Array.isArray(i.children)?i.children.map(E):null},i.id)};return t.jsx(Ks,{className:Vt(!I&&"no-children"),multiSelect:!0,defaultCollapseIcon:t.jsx(Wo,{}),defaultExpandIcon:t.jsx(_o,{}),selected:m,children:n.map(i=>E(i))})}it.propTypes={data:K.array,value:K.array,onChange:K.func,disabled:K.bool};it.defaultProps={data:[],value:[],onChange:()=>{},disabled:!1};const Ks=je(Ps)`
39
39
  &.no-children {
40
40
  .MuiTreeItem-content {
41
41
  padding: 0;
@@ -90,7 +90,7 @@ import{aj as yo,j as t,az as ce,aH as Co,aD as F,er as xt,aC as Ne,ax as Qe,ay a
90
90
  font-size: 14px;
91
91
  color: ${({theme:e})=>e.palette.text.secondary};
92
92
  }
93
- `,Ht=(e,n)=>(e.forEach(r=>{n&&(r.parent=n),(r.children||[]).forEach(l=>{l.parent=r.id,Ht(l.children||[],l.id)})}),e);function ct({app:e,component:n,projectId:r,release:l,error:m,onSave:d}){const{t:b,locale:u}=Me(),{api:y}=Oe(),[g,S]=c.useState([]),[I,E]=c.useState([]),[i,k]=c.useState(!1),a=l.id,C=l.status==="published",{resourceExportApi:v="/"}=(n==null?void 0:n.meta.capabilities)||{},$=new URL(ot("http://127.0.0.1",n.mountPoint,v||"/").replace(/\/+/g,"/"));$.searchParams.set("projectId",r),$.searchParams.set("releaseId",a),$.searchParams.set("local",u);const p=`${$.pathname}${$.search}`,w=async h=>{try{await y.updateSelectedResources({input:{did:e.meta.did,projectId:r,releaseId:a,componentDid:n.meta.did,resources:h}})}catch(N){_.error(N.message)}},K=async()=>{const h=I;try{k(!0),await gt.post(p,{resources:h,projectId:r,releaseId:a,locale:u}),_.success(b("common.saveSuccess")),k(!1),w(I),d(I)}catch(N){k(!1),_.error(N.message)}};return c.useEffect(()=>{gt.get(p).then(h=>{var U;const N=Ht(((U=h.data)==null?void 0:U.resources)||[]);S(N)}).catch(h=>{_.error(h.message)}),y.getSelectedResources({input:{did:e.meta.did,projectId:r,releaseId:a,componentDid:n.meta.did}}).then(h=>{const N=(h==null?void 0:h.resources)||[];E(N)}).catch(h=>{_.error(h.message)})},[p]),n.status!=="running"?t.jsx(It,{children:t.jsx(j,{pt:6,children:b("blocklet.publish.componentNotRunning",{name:n.meta.title})})}):[t.jsx(It,{className:Vt(m&&"error"),children:t.jsxs(j,{children:[t.jsx(it,{data:g,value:I,onChange:h=>{E(h)},disabled:i||C}),!C&&t.jsx(j,{className:"footer",children:t.jsx(le,{variant:"contained",disabled:i,onClick:()=>K(),children:b("common.save")})})]})}),!!m&&t.jsx(j,{color:"error.main",mt:1,fontSize:14,children:m})]}ct.propTypes={component:W.object.isRequired,app:W.object.isRequired,projectId:W.string.isRequired,error:W.string,release:W.shape({id:W.string.isRequired,status:W.string}),onSave:W.func};ct.defaultProps={error:"",release:{id:""},onSave:()=>{}};const It=je(j)`
93
+ `,Ht=(e,n)=>(e.forEach(r=>{n&&(r.parent=n),(r.children||[]).forEach(l=>{l.parent=r.id,Ht(l.children||[],l.id)})}),e);function ct({app:e,component:n,projectId:r,release:l,error:m,onSave:d}){const{t:b,locale:u}=Oe(),{api:y}=Me(),[g,S]=c.useState([]),[I,E]=c.useState([]),[i,k]=c.useState(!1),a=l.id,C=l.status==="published",{exportApi:$="/"}=(n==null?void 0:n.meta.resource)||{},B=new URL(ot("http://127.0.0.1",n.mountPoint,$||"/").replace(/\/+/g,"/"));B.searchParams.set("projectId",r),B.searchParams.set("releaseId",a),B.searchParams.set("local",u);const p=`${B.pathname}${B.search}`,w=async h=>{try{await y.updateSelectedResources({input:{did:e.meta.did,projectId:r,releaseId:a,componentDid:n.meta.did,resources:h}})}catch(N){_.error(N.message)}},W=async()=>{const h=I;try{k(!0),await gt.post(p,{resources:h,projectId:r,releaseId:a,locale:u}),_.success(b("common.saveSuccess")),k(!1),w(I),d(I)}catch(N){k(!1),_.error(N.message)}};return c.useEffect(()=>{gt.get(p).then(h=>{var U;const N=Ht(((U=h.data)==null?void 0:U.resources)||[]);S(N)}).catch(h=>{_.error(h.message)}),y.getSelectedResources({input:{did:e.meta.did,projectId:r,releaseId:a,componentDid:n.meta.did}}).then(h=>{const N=(h==null?void 0:h.resources)||[];E(N)}).catch(h=>{_.error(h.message)})},[p]),n.status!=="running"?t.jsx(It,{children:t.jsx(j,{pt:6,children:b("blocklet.publish.componentNotRunning",{name:n.meta.title})})}):[t.jsx(It,{className:Vt(m&&"error"),children:t.jsxs(j,{children:[t.jsx(it,{data:g,value:I,onChange:h=>{E(h)},disabled:i||C}),!C&&t.jsx(j,{className:"footer",children:t.jsx(le,{variant:"contained",disabled:i,onClick:()=>W(),children:b("common.save")})})]})}),!!m&&t.jsx(j,{color:"error.main",mt:1,fontSize:14,children:m})]}ct.propTypes={component:K.object.isRequired,app:K.object.isRequired,projectId:K.string.isRequired,error:K.string,release:K.shape({id:K.string.isRequired,status:K.string}),onSave:K.func};ct.defaultProps={error:"",release:{id:""},onSave:()=>{}};const It=je(j)`
94
94
  border: 1px solid #ccc;
95
95
  &.error {
96
96
  border-color: ${e=>e.theme.palette.error.main};
@@ -110,7 +110,7 @@ import{aj as yo,j as t,az as ce,aH as Co,aD as F,er as xt,aC as Ne,ax as Qe,ay a
110
110
  background: #fff;
111
111
  z-index: 10;
112
112
  }
113
- `,wt=["image/*",".jpg",".jpeg",".png",".gif",".svg"],Rt=1024*1024*10,Et=c.lazy(()=>$o(()=>import("./react-8bf99ad0.js").then(e=>e.r),["assets/react-8bf99ad0.js","assets/index-2668c3ea.js","assets/index-d8bbb108.css","assets/index-110fb170.js","assets/preact.module-783a6d9f.js","assets/index-f112ae7e.js","assets/index-f2a9779e.js","assets/memoize-one.esm-c8bea7a2.js","assets/uniqBy-11474d2a.js","assets/react-1ee50eda.css"]).then(e=>({default:e.Uploader}))),Ks=(e,n,r)=>{const l=[];return e.blockletTitle||l.push({param:"blockletTitle",message:r("blocklet.publish.errorTip.noTitle")}),e.blockletVersion?Ke.valid(e.blockletVersion)||l.push({param:"blockletVersion",message:"Invalid Blocklet Version"}):l.push({param:"blockletVersion",message:r("blocklet.publish.errorTip.noVersion")}),n===ne.PROJECT.RELEASE_STATUS.published&&(e.blockletDescription||l.push({param:"blockletDescription",message:r("blocklet.publish.errorTip.noDescription")}),e.note||l.push({param:"note",message:r("blocklet.publish.errorTip.noNote")})),l.length?l:null},Us=({tabs:e,blocklet:n,ancestors:r=[]})=>{const l=n.meta.did;e.push({label:t.jsxs(j,{display:"flex",alignItems:"center",justifyContent:"flex-start",children:[t.jsx(Lt,{size:24,blocklet:n,ancestors:r}),t.jsx(j,{ml:"4px",className:"text",children:t.jsx(j,{children:n.meta.title})})]},l),value:l})},Pt=e=>{const n=Bo(e,["blockletVersion","blockletTitle","blockletDescription","blockletLogo","blockletIntroduction","blockletScreenshots","note"]);return n.blockletScreenshots||(n.blockletScreenshots=[]),n};function dt({...e}){var M,Y,G;const n=vt(),{projectId:r,releaseId:l,componentDid:m}=Le(),{t:d}=Me(),{blocklet:b}=_e(),[u,y]=Mo(null),[g,S]=c.useState({}),[I,E]=c.useState(!1),[i,k]=c.useState(!1),[a,C]=c.useState(null),{api:v}=Oe(),$=c.useRef(null),p=c.useRef(null),w=l==="create"?"":l,K=l==="create"?"create":"edit",h=[],N=((b==null?void 0:b.children)||[]).filter(x=>x.meta.capabilities.resourceExportApi).filter(x=>!m||x.meta.did===m);N.forEach(x=>{Us({tabs:h,blocklet:x,t:d,ancestors:[b]})});const[U,ee]=c.useState((M=h[0])==null?void 0:M.value),ae=(a==null?void 0:a.status)==="published",z=ae,de=()=>{v.getProject({input:{did:b.meta.did,projectId:r}}).then(x=>{E(!1);const B=x.project||{};B.blockletVersion?Ke.valid(B.blockletVersion)&&(B.blockletVersion=Ke.inc(B.blockletVersion,"patch")):B.blockletVersion="1.0.0",y(Pt(B))}).catch(x=>{E(!1),_.error(Je(x))})},ue=()=>{v.getRelease({input:{did:b.meta.did,projectId:r,releaseId:w}}).then(x=>{E(!1),y(Pt(x==null?void 0:x.release)),C(x==null?void 0:x.release)}).catch(x=>{E(!1),_.error(Je(x))})},pe=c.useCallback(()=>{if(K==="edit"){if(!w){_.error("Empty release id");return}ue()}K==="create"&&de()},[K,w]);c.useEffect(()=>{pe()},[pe]);const ye=x=>{const B=Ks(u,x,d);if(B){_.error(B.map(L=>L.message).join("; ")),S(B.reduce((L,H)=>({...L,[H.param]:H.message}),{}));return}const O={...u};if(O.blockletVersion=Ke.valid(O.blockletVersion),!O.blockletVersion){_.error("Invalid Blocklet Version"),S({blockletVersion:"Invalid Blocklet Version"});return}O.blockletTitle=(O.blockletTitle||"").trim(),O.blockletDescription=(O.blockletDescription||"").trim(),O.blockletIntroduction=(O.blockletIntroduction||"").trim(),O.note=(O.note||"").trim(),k(x),E(!0),v.createRelease({input:{...O,did:b.meta.did,projectId:r,releaseId:w,status:x}}).then(L=>{var H;if(k(!1),E(!1),x==="draft"?_.success(d("blocklet.publish.saveDraftSuccess")):_.success(d("blocklet.publish.createReleaseSuccess")),K==="create"){const Te=(H=L==null?void 0:L.release)==null?void 0:H.id;n(`../${r}/${Te}`,{replace:!0})}else ue()}).catch(L=>{k(!1),E(!1);const H=Je(L);_.error(H),/resource.*empty/.test(H)&&S({blockletResource:H})})};if(!u&&I)return t.jsx(Ve,{});if(!u)return null;const ie=`${Ae.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${b.meta.did}/${r}/logo/upload`,fe=`${Ae.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${b.meta.did}/${r}/screenshot/upload`,te=u!=null&&u.blockletLogo?`${ie}/${u.blockletLogo}`:`${Ae.WELLKNOWN_SERVICE_PATH_PREFIX}/static/images/logo.png`,oe=((u==null?void 0:u.blockletScreenshots)||[]).filter(Boolean).map(x=>`${fe}/${x}`),we=N.find(x=>x.meta.did===U),R=we?t.jsx(j,{children:t.jsx(ct,{error:g.blockletResource,app:b,component:we,projectId:r,release:{...a,id:w},onSave:x=>{x.length&&S({blockletResource:""})}})}):t.jsx(j,{display:"flex",mt:-3,children:t.jsx(vo,{children:d("common.empty")})}),Ce=x=>{ee(x)};return t.jsxs(Hs,{...e,children:[t.jsxs(j,{className:"sticky-header",children:[t.jsxs(st,{className:"breadcrumbs","aria-label":"breadcrumb",children:[t.jsx(re,{to:"../",children:d("common.publish")}),t.jsx(re,{to:`../${r}`,children:(u==null?void 0:u.blockletTitle)||"Blocklet"}),t.jsx(Z,{color:"text.primary",children:K==="create"?d("common.create"):(u==null?void 0:u.blockletVersion)||d("common.edit")})]}),t.jsxs(j,{display:"flex",children:[!ae&&t.jsxs(t.Fragment,{children:[t.jsxs(le,{variant:"outlined",disabled:I||i,onClick:()=>ye(ne.PROJECT.RELEASE_STATUS.draft),style:{marginRight:12},children:[i===ne.PROJECT.RELEASE_STATUS.draft&&t.jsx(Ge,{size:14,sx:{mr:.5}}),d("blocklet.publish.saveDraft")]}),t.jsxs(le,{variant:"contained",disabled:I||i,onClick:()=>ye(ne.PROJECT.RELEASE_STATUS.published),children:[i===ne.PROJECT.RELEASE_STATUS.published&&t.jsx(Ge,{size:14,sx:{mr:.5},color:"inherit"}),d("common.release")]})]}),ae&&t.jsx(le,{variant:"contained",children:t.jsx("a",{href:ot(`${Ae.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${b.meta.did}/${r}/${w}/download/${(a.files||[])[0]}`),children:d("common.download")})})]})]}),t.jsxs(j,{pt:3,children:[t.jsxs(j,{display:"flex",className:"section",children:[t.jsx(Z,{variant:"h3",className:"left",children:d("blocklet.publish.productTitle")}),t.jsxs(j,{sx:{flex:1},children:[t.jsx(ke,{label:`Blocklet ${d("common.title")}`,placeholder:`Blocklet ${d("common.title")}`,InputProps:{"data-cy":"blocklet-title",readOnly:z},autoComplete:"off",variant:"outlined",fullWidth:!0,required:!0,value:u.blockletTitle||"",onChange:x=>{S({blockletTitle:""}),y({blockletTitle:x.target.value})},error:!!g.blockletTitle,helperText:g.blockletTitle||""}),t.jsx(ke,{label:`Blocklet ${d("common.description")}`,placeholder:`Blocklet ${d("common.description")}`,InputProps:{"data-cy":"blocklet-description",readOnly:z},required:!0,autoComplete:"off",variant:"outlined",fullWidth:!0,value:u.blockletDescription||"",onChange:x=>{S({blockletDescription:""}),y({blockletDescription:x.target.value})},error:!!g.blockletDescription,helperText:g.blockletDescription||"",sx:{mt:3}}),t.jsx(ke,{label:`Blocklet ${d("common.introduction")}`,placeholder:`Blocklet ${d("common.introduction")}`,InputProps:{"data-cy":"export-blocklet-introduction",readOnly:z,endAdornment:t.jsxs(Ye,{position:"end",children:[((Y=u==null?void 0:u.blockletIntroduction)==null?void 0:Y.length)||0," / ",ne.PROJECT.MAX_INTRO_LENGTH]})},autoComplete:"off",variant:"outlined",fullWidth:!0,multiline:!0,minRows:4,value:u.blockletIntroduction||"",onChange:x=>{S({blockletIntroduction:""}),y({blockletIntroduction:x.target.value.slice(0,ne.PROJECT.MAX_INTRO_LENGTH)})},error:!!g.blockletIntroduction,helperText:g.blockletIntroduction||"",sx:{mt:3}})]})]}),t.jsxs(j,{display:"flex",mt:3,className:"section",children:[t.jsx(Z,{variant:"h3",className:"left",children:d("blocklet.publish.versionTitle")}),t.jsxs(j,{sx:{flex:1},children:[t.jsx(ke,{required:!0,label:`Blocklet ${d("common.version")}`,placeholder:`Blocklet ${d("common.version")}`,InputProps:{"data-cy":"blocklet-version",readOnly:z},autoComplete:"off",variant:"outlined",fullWidth:!0,value:u.blockletVersion,onChange:x=>{S({blockletVersion:""}),y({blockletVersion:x.target.value})},error:!!g.blockletVersion,helperText:g.blockletVersion||""}),t.jsx(ke,{label:d("blocklet.publish.releaseNote"),autoComplete:"off",variant:"outlined",InputProps:{"data-cy":"release-note",readOnly:z,endAdornment:t.jsxs(Ye,{position:"end",children:[((G=u==null?void 0:u.note)==null?void 0:G.length)||0," / ",ne.PROJECT.MAX_NOTE_LENGTH]})},fullWidth:!0,multiline:!0,minRows:4,required:!0,value:u.note,onChange:x=>{S({note:""}),y({note:x.target.value.slice(0,ne.PROJECT.MAX_NOTE_LENGTH)})},error:!!g.note,helperText:g.note||"",sx:{mt:3}})]})]}),t.jsxs(j,{display:"flex",mt:3,className:"section full-width",children:[t.jsx(Z,{variant:"h3",className:"left",children:d("blocklet.publish.imgTitle")}),t.jsxs(j,{sx:{flex:1},children:[t.jsxs(j,{display:"flex",children:[t.jsx(Z,{variant:"subtitle1",sx:{mr:2},children:d("common.logo")}),t.jsx(j,{sx:{flex:1,cursor:z?"default":"pointer"},children:t.jsx(Jo,{variant:"square",sx:{width:80,height:80},alt:"Blocklet Logo",src:te,onClick:()=>!z&&$.current.open()})})]}),t.jsxs(j,{display:"flex",mt:3,children:[t.jsx(Z,{variant:"subtitle1",sx:{mr:2},children:d("common.screenshot")}),t.jsxs(j,{display:"flex",alignItems:"center",sx:{flex:1,flexWrap:"wrap"},children:[oe.map((x,B)=>t.jsxs(j,{className:"screenshot",children:[t.jsx("img",{alt:"screenshot",src:x}),!z&&t.jsx(Ue,{className:"action",onClick:()=>{const O=[...u.blockletScreenshots];O.splice(B,1),y({blockletScreenshots:O})},children:t.jsx(Fo,{})})]})),oe.length<5&&t.jsx(j,{sx:{width:200,height:140,background:"#eee",cursor:z?"default":"pointer",color:"#999",mb:2},display:"flex",justifyContent:"center",alignItems:"center",fontSize:40,onClick:()=>!z&&p.current.open(),children:"+"})]})]})]}),t.jsx(Et,{id:"​uploader-logo",ref:$,popup:!0,onUploadFinish:x=>{y({blockletLogo:x.data.filename}),$.current.close()},plugins:["ImageEditor"],apiPathProps:{uploader:ie,disableMediaKitPrefix:!0},coreProps:{restrictions:{allowedFileTypes:wt,maxFileSize:Rt,maxNumberOfFiles:1}}},"uploader-logo"),t.jsx(Et,{id:"​uploader-screenshot",ref:p,popup:!0,onUploadFinish:x=>{var O;const B=u.blockletScreenshots||[];B.push((O=x.data)==null?void 0:O.filename),y({blockletScreenshots:B}),p.current.close()},plugins:["ImageEditor"],apiPathProps:{uploader:fe,disableMediaKitPrefix:!0},coreProps:{restrictions:{allowedFileTypes:wt,maxFileSize:Rt,maxNumberOfFiles:5-oe.length}}},"uploader-screenshot")]}),t.jsxs(j,{display:"flex",mt:3,className:"section full-width",children:[t.jsx(j,{className:"left",children:t.jsx(Z,{variant:"h3",children:d("blocklet.publish.resourceTitle")})}),t.jsxs(j,{sx:{flex:1},children:[t.jsx(zo,{tabs:h,current:U,onChange:Ce,sx:{ml:-2,mt:-1.5}}),t.jsx(j,{children:R})]})]})]})]})}dt.propTypes={};dt.defaultProps={};const Hs=je.div`
113
+ `,wt=["image/*",".jpg",".jpeg",".png",".gif",".svg"],Rt=1024*1024*10,Et=c.lazy(()=>$o(()=>import("./react-a6e6612e.js").then(e=>e.r),["assets/react-a6e6612e.js","assets/index-f5164e7a.js","assets/index-d8bbb108.css","assets/index-a472b88f.js","assets/preact.module-783a6d9f.js","assets/index-c284b28f.js","assets/index-b68f9890.js","assets/memoize-one.esm-9b916d19.js","assets/uniqBy-1a4484bb.js","assets/react-1ee50eda.css"]).then(e=>({default:e.Uploader}))),Ws=(e,n,r)=>{const l=[];return e.blockletTitle||l.push({param:"blockletTitle",message:r("blocklet.publish.errorTip.noTitle")}),e.blockletVersion?We.valid(e.blockletVersion)||l.push({param:"blockletVersion",message:"Invalid Blocklet Version"}):l.push({param:"blockletVersion",message:r("blocklet.publish.errorTip.noVersion")}),n===ne.PROJECT.RELEASE_STATUS.published&&(e.blockletDescription||l.push({param:"blockletDescription",message:r("blocklet.publish.errorTip.noDescription")}),e.note||l.push({param:"note",message:r("blocklet.publish.errorTip.noNote")})),l.length?l:null},Us=({tabs:e,blocklet:n,ancestors:r=[]})=>{const l=n.meta.did;e.push({label:t.jsxs(j,{display:"flex",alignItems:"center",justifyContent:"flex-start",children:[t.jsx(Lt,{size:24,blocklet:n,ancestors:r}),t.jsx(j,{ml:"4px",className:"text",children:t.jsx(j,{children:n.meta.title})})]},l),value:l})},Pt=e=>{const n=Bo(e,["blockletVersion","blockletTitle","blockletDescription","blockletLogo","blockletIntroduction","blockletScreenshots","note"]);return n.blockletScreenshots||(n.blockletScreenshots=[]),n};function dt({...e}){var O,Y,G;const n=vt(),{projectId:r,releaseId:l,componentDid:m}=Le(),{t:d}=Oe(),{blocklet:b}=_e(),[u,y]=Oo(null),[g,S]=c.useState({}),[I,E]=c.useState(!1),[i,k]=c.useState(!1),[a,C]=c.useState(null),{api:$}=Me(),B=c.useRef(null),p=c.useRef(null),w=l==="create"?"":l,W=l==="create"?"create":"edit",h=[],N=((b==null?void 0:b.children)||[]).filter(x=>{var v;return(v=x.meta.resource)==null?void 0:v.exportApi}).filter(x=>!m||x.meta.did===m);N.forEach(x=>{Us({tabs:h,blocklet:x,t:d,ancestors:[b]})});const[U,ee]=c.useState((O=h[0])==null?void 0:O.value),ae=(a==null?void 0:a.status)==="published",z=ae,de=()=>{$.getProject({input:{did:b.meta.did,projectId:r}}).then(x=>{E(!1);const v=x.project||{};v.blockletVersion?We.valid(v.blockletVersion)&&(v.blockletVersion=We.inc(v.blockletVersion,"patch")):v.blockletVersion="1.0.0",y(Pt(v))}).catch(x=>{E(!1),_.error(Je(x))})},ue=()=>{$.getRelease({input:{did:b.meta.did,projectId:r,releaseId:w}}).then(x=>{E(!1),y(Pt(x==null?void 0:x.release)),C(x==null?void 0:x.release)}).catch(x=>{E(!1),_.error(Je(x))})},pe=c.useCallback(()=>{if(W==="edit"){if(!w){_.error("Empty release id");return}ue()}W==="create"&&de()},[W,w]);c.useEffect(()=>{pe()},[pe]);const ye=x=>{const v=Ws(u,x,d);if(v){_.error(v.map(L=>L.message).join("; ")),S(v.reduce((L,H)=>({...L,[H.param]:H.message}),{}));return}const M={...u};if(M.blockletVersion=We.valid(M.blockletVersion),!M.blockletVersion){_.error("Invalid Blocklet Version"),S({blockletVersion:"Invalid Blocklet Version"});return}M.blockletTitle=(M.blockletTitle||"").trim(),M.blockletDescription=(M.blockletDescription||"").trim(),M.blockletIntroduction=(M.blockletIntroduction||"").trim(),M.note=(M.note||"").trim(),k(x),E(!0),$.createRelease({input:{...M,did:b.meta.did,projectId:r,releaseId:w,status:x}}).then(L=>{var H;if(k(!1),E(!1),x==="draft"?_.success(d("blocklet.publish.saveDraftSuccess")):_.success(d("blocklet.publish.createReleaseSuccess")),W==="create"){const Te=(H=L==null?void 0:L.release)==null?void 0:H.id;n(`../${r}/${Te}`,{replace:!0})}else ue()}).catch(L=>{k(!1),E(!1);const H=Je(L);_.error(H),/resource.*empty/.test(H)&&S({blockletResource:H})})};if(!u&&I)return t.jsx(Ve,{});if(!u)return null;const ie=`${Ae.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${b.meta.did}/${r}/logo/upload`,fe=`${Ae.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${b.meta.did}/${r}/screenshot/upload`,te=u!=null&&u.blockletLogo?`${ie}/${u.blockletLogo}`:`${Ae.WELLKNOWN_SERVICE_PATH_PREFIX}/static/images/logo.png`,oe=((u==null?void 0:u.blockletScreenshots)||[]).filter(Boolean).map(x=>`${fe}/${x}`),we=N.find(x=>x.meta.did===U),R=we?t.jsx(j,{children:t.jsx(ct,{error:g.blockletResource,app:b,component:we,projectId:r,release:{...a,id:w},onSave:x=>{x.length&&S({blockletResource:""})}})}):t.jsx(j,{display:"flex",mt:-3,children:t.jsx(vo,{children:d("common.empty")})}),Ce=x=>{ee(x)};return t.jsxs(Hs,{...e,children:[t.jsxs(j,{className:"sticky-header",children:[t.jsxs(st,{className:"breadcrumbs","aria-label":"breadcrumb",children:[t.jsx(re,{to:"../",children:d("common.publish")}),t.jsx(re,{to:`../${r}`,children:(u==null?void 0:u.blockletTitle)||"Blocklet"}),t.jsx(Z,{color:"text.primary",children:W==="create"?d("common.create"):(u==null?void 0:u.blockletVersion)||d("common.edit")})]}),t.jsxs(j,{display:"flex",children:[!ae&&t.jsxs(t.Fragment,{children:[t.jsxs(le,{variant:"outlined",disabled:I||i,onClick:()=>ye(ne.PROJECT.RELEASE_STATUS.draft),style:{marginRight:12},children:[i===ne.PROJECT.RELEASE_STATUS.draft&&t.jsx(Ge,{size:14,sx:{mr:.5}}),d("blocklet.publish.saveDraft")]}),t.jsxs(le,{variant:"contained",disabled:I||i,onClick:()=>ye(ne.PROJECT.RELEASE_STATUS.published),children:[i===ne.PROJECT.RELEASE_STATUS.published&&t.jsx(Ge,{size:14,sx:{mr:.5},color:"inherit"}),d("common.release")]})]}),ae&&t.jsx(le,{variant:"contained",children:t.jsx("a",{href:ot(`${Ae.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${b.meta.did}/${r}/${w}/download/${(a.files||[])[0]}`),children:d("common.download")})})]})]}),t.jsxs(j,{pt:3,children:[t.jsxs(j,{display:"flex",className:"section",children:[t.jsx(Z,{variant:"h3",className:"left",children:d("blocklet.publish.productTitle")}),t.jsxs(j,{sx:{flex:1},children:[t.jsx(ke,{label:`Blocklet ${d("common.title")}`,placeholder:`Blocklet ${d("common.title")}`,InputProps:{"data-cy":"blocklet-title",readOnly:z},autoComplete:"off",variant:"outlined",fullWidth:!0,required:!0,value:u.blockletTitle||"",onChange:x=>{S({blockletTitle:""}),y({blockletTitle:x.target.value})},error:!!g.blockletTitle,helperText:g.blockletTitle||""}),t.jsx(ke,{label:`Blocklet ${d("common.description")}`,placeholder:`Blocklet ${d("common.description")}`,InputProps:{"data-cy":"blocklet-description",readOnly:z},required:!0,autoComplete:"off",variant:"outlined",fullWidth:!0,value:u.blockletDescription||"",onChange:x=>{S({blockletDescription:""}),y({blockletDescription:x.target.value})},error:!!g.blockletDescription,helperText:g.blockletDescription||"",sx:{mt:3}}),t.jsx(ke,{label:`Blocklet ${d("common.introduction")}`,placeholder:`Blocklet ${d("common.introduction")}`,InputProps:{"data-cy":"export-blocklet-introduction",readOnly:z,endAdornment:t.jsxs(Ye,{position:"end",children:[((Y=u==null?void 0:u.blockletIntroduction)==null?void 0:Y.length)||0," / ",ne.PROJECT.MAX_INTRO_LENGTH]})},autoComplete:"off",variant:"outlined",fullWidth:!0,multiline:!0,minRows:4,value:u.blockletIntroduction||"",onChange:x=>{S({blockletIntroduction:""}),y({blockletIntroduction:x.target.value.slice(0,ne.PROJECT.MAX_INTRO_LENGTH)})},error:!!g.blockletIntroduction,helperText:g.blockletIntroduction||"",sx:{mt:3}})]})]}),t.jsxs(j,{display:"flex",mt:3,className:"section",children:[t.jsx(Z,{variant:"h3",className:"left",children:d("blocklet.publish.versionTitle")}),t.jsxs(j,{sx:{flex:1},children:[t.jsx(ke,{required:!0,label:`Blocklet ${d("common.version")}`,placeholder:`Blocklet ${d("common.version")}`,InputProps:{"data-cy":"blocklet-version",readOnly:z},autoComplete:"off",variant:"outlined",fullWidth:!0,value:u.blockletVersion,onChange:x=>{S({blockletVersion:""}),y({blockletVersion:x.target.value})},error:!!g.blockletVersion,helperText:g.blockletVersion||""}),t.jsx(ke,{label:d("blocklet.publish.releaseNote"),autoComplete:"off",variant:"outlined",InputProps:{"data-cy":"release-note",readOnly:z,endAdornment:t.jsxs(Ye,{position:"end",children:[((G=u==null?void 0:u.note)==null?void 0:G.length)||0," / ",ne.PROJECT.MAX_NOTE_LENGTH]})},fullWidth:!0,multiline:!0,minRows:4,required:!0,value:u.note,onChange:x=>{S({note:""}),y({note:x.target.value.slice(0,ne.PROJECT.MAX_NOTE_LENGTH)})},error:!!g.note,helperText:g.note||"",sx:{mt:3}})]})]}),t.jsxs(j,{display:"flex",mt:3,className:"section full-width",children:[t.jsx(Z,{variant:"h3",className:"left",children:d("blocklet.publish.imgTitle")}),t.jsxs(j,{sx:{flex:1},children:[t.jsxs(j,{display:"flex",children:[t.jsx(Z,{variant:"subtitle1",sx:{mr:2},children:d("common.logo")}),t.jsx(j,{sx:{flex:1,cursor:z?"default":"pointer"},children:t.jsx(Jo,{variant:"square",sx:{width:80,height:80},alt:"Blocklet Logo",src:te,onClick:()=>!z&&B.current.open()})})]}),t.jsxs(j,{display:"flex",mt:3,children:[t.jsx(Z,{variant:"subtitle1",sx:{mr:2},children:d("common.screenshot")}),t.jsxs(j,{display:"flex",alignItems:"center",sx:{flex:1,flexWrap:"wrap"},children:[oe.map((x,v)=>t.jsxs(j,{className:"screenshot",children:[t.jsx("img",{alt:"screenshot",src:x}),!z&&t.jsx(Ue,{className:"action",onClick:()=>{const M=[...u.blockletScreenshots];M.splice(v,1),y({blockletScreenshots:M})},children:t.jsx(Fo,{})})]})),oe.length<5&&t.jsx(j,{sx:{width:200,height:140,background:"#eee",cursor:z?"default":"pointer",color:"#999",mb:2},display:"flex",justifyContent:"center",alignItems:"center",fontSize:40,onClick:()=>!z&&p.current.open(),children:"+"})]})]})]}),t.jsx(Et,{id:"​uploader-logo",ref:B,popup:!0,onUploadFinish:x=>{y({blockletLogo:x.data.filename}),B.current.close()},plugins:["ImageEditor"],apiPathProps:{uploader:ie,disableMediaKitPrefix:!0},coreProps:{restrictions:{allowedFileTypes:wt,maxFileSize:Rt,maxNumberOfFiles:1}}},"uploader-logo"),t.jsx(Et,{id:"​uploader-screenshot",ref:p,popup:!0,onUploadFinish:x=>{var M;const v=u.blockletScreenshots||[];v.push((M=x.data)==null?void 0:M.filename),y({blockletScreenshots:v}),p.current.close()},plugins:["ImageEditor"],apiPathProps:{uploader:fe,disableMediaKitPrefix:!0},coreProps:{restrictions:{allowedFileTypes:wt,maxFileSize:Rt,maxNumberOfFiles:5-oe.length}}},"uploader-screenshot")]}),t.jsxs(j,{display:"flex",mt:3,className:"section full-width",children:[t.jsx(j,{className:"left",children:t.jsx(Z,{variant:"h3",children:d("blocklet.publish.resourceTitle")})}),t.jsxs(j,{sx:{flex:1},children:[t.jsx(zo,{tabs:h,current:U,onChange:Ce,sx:{ml:-2,mt:-1.5}}),t.jsx(j,{children:R})]})]})]})]})}dt.propTypes={};dt.defaultProps={};const Hs=je.div`
114
114
  .sticky-header {
115
115
  margin-top: -12px;
116
116
  padding: 12px 0;
@@ -190,7 +190,7 @@ import{aj as yo,j as t,az as ce,aH as Co,aD as F,er as xt,aC as Ne,ax as Qe,ay a
190
190
  }
191
191
  font-size: 0.8rem;
192
192
  }
193
- `;function qt({padding:e}){const{blocklet:n}=_e(),r=Do(),{componentDid:l}=Le();if(c.useEffect(()=>{if(l&&window.parent){const d=`${r.pathname}${r.search}`;window.parent.postMessage({event:"popstate",page:"publish",componentDid:l,path:d},"*")}},[l,r]),!n)return null;const m={};return e&&(m.padding=e),t.jsx(qs,{style:m,children:t.jsxs(Ao,{children:[t.jsx(We,{path:"/",element:t.jsx(Ft,{})}),t.jsx(We,{path:"/create",element:t.jsx(nt,{})}),t.jsx(We,{path:"/:projectId",element:t.jsx(zt,{})}),t.jsx(We,{path:"/:projectId/:releaseId",element:t.jsx(dt,{})})]})})}qt.propTypes={padding:W.oneOfType([W.string,W.number])};qt.defaultProps={padding:""};const qs=je(j)`
193
+ `;function qt({padding:e}){const{blocklet:n}=_e(),r=Do(),{componentDid:l}=Le();if(c.useEffect(()=>{if(l&&window.parent){const d=`${r.pathname}${r.search}`;window.parent.postMessage({event:"popstate",page:"publish",componentDid:l,path:d},"*")}},[l,r]),!n)return null;const m={};return e&&(m.padding=e),t.jsx(qs,{style:m,children:t.jsxs(Ao,{children:[t.jsx(Ke,{path:"/",element:t.jsx(Ft,{})}),t.jsx(Ke,{path:"/create",element:t.jsx(nt,{})}),t.jsx(Ke,{path:"/:projectId",element:t.jsx(zt,{})}),t.jsx(Ke,{path:"/:projectId/:releaseId",element:t.jsx(dt,{})})]})})}qt.propTypes={padding:K.oneOfType([K.string,K.number])};qt.defaultProps={padding:""};const qs=je(j)`
194
194
  a {
195
195
  color: ${({theme:e})=>e.palette.primary.main};
196
196
  }
@@ -1,4 +1,4 @@
1
- import{H as je,I as De,j as n,P as U,y as ge,bs as ts,r as F,bQ as ns,B as p,bx as Sn,bj as Gn,av as Le,S as ut,u as _e,a7 as de,G as ae,n as te,a$ as pe,w as ye,d3 as as,a_ as ss,x as Wn,bh as rs,T as vn,d4 as is,bo as os,ak as ze,X as ne,br as cs,F as Ee,cx as ls,bH as we,ba as wt,b4 as Pe,d5 as us,d6 as ds,aW as He,cd as st,J as dt,f as W,v as $e,bI as Ht,b5 as qn,bp as Ge,V as Gt,d7 as fs,d8 as gs,d9 as ps,da as ms,a as Nn,db as hs,b as Be,aO as bs,aP as _s,dc as Es,cD as xs,aV as ys,bJ as Ie,c as Lt,dd as It,cX as Ss,bu as Yn,bM as vs,c1 as ve,bL as Ns,de as Vn,q as As}from"./index-2668c3ea.js";import{I as Cs}from"./iframe-fa15b0d6.js";import{I as Rs,F as Mt,d as Ts,L as Os,a as ws}from"./Edit-acf0e713.js";import{B as Zn,d as Xn}from"./ChevronRight-ad424d62.js";import{d as Jn}from"./ExpandMore-affb00ec.js";import{T as Wt}from"./index-0ce26e3b.js";import{u as qt,a as Ls,b as Is,c as Ms}from"./dashboard-adcdef94.js";import{d as js}from"./Loop-74bde14b.js";import{d as Ds}from"./Done-515b6971.js";import{F as ks,R as Ps,L as Et}from"./logo-uploader-2897cb85.js";import{a as An,A as Bs}from"./Autocomplete-a10f99e0.js";import{T as le,F as Fs}from"./TextField-9def9dd1.js";import{e as $s,S as Us}from"./switch-control-944b9c84.js";import{w as Qn,P as Ks}from"./permission-dd5ceeea.js";import{C as ea,a as zs}from"./confirm-0a872969.js";import{f as Yt}from"./format-error-89fc5b13.js";import{_ as Hs}from"./useSetState-483ba319.js";import{u as Gs}from"./session-f52f379b.js";import{A as Ws}from"./index-03db2990.js";import{C as qs}from"./click-to-copy-011eba01.js";import{F as rt,S as Ys}from"./FormControlLabel-2ee3fa4b.js";import{C as ta}from"./Checkbox-e5abf3e7.js";import{D as Vs}from"./DialogContentText-83546651.js";import{S as it}from"./Switch-572c6623.js";import{u as Vt,C as ue}from"./index.esm-3acd0530.js";import{u as na}from"./confirm-37e025f8.js";import{F as be}from"./FormControl-776d5fa1.js";import{d as Zs}from"./Launch-40ac7bb5.js";import{d as Xs}from"./EditIcon-9f26e207.js";import{A as jt}from"./config-1833951a.js";import{S as Js}from"./Slider-6bcdb3ad.js";import{D as Qs}from"./index-2c4ca7b3.js";import{I as er}from"./index-24e445a7.js";import"./index-4effadb2.js";import{i as aa}from"./index-35962c8a.js";import{G as xt}from"./Grid-e588a591.js";import"./index-c014ee1d.js";import"./nav-menu-33b9a238.js";import"./Toolbar-58430b9d.js";import"./Hidden-4855abd5.js";import"./ArrowDropDown-72517964.js";import"./ButtonGroup-f91d24e2.js";import"./Avatar-45cfefc3.js";import"./MoreVert-07b57b33.js";import"./toPropertyKey-ceeedea6.js";import"./PlayArrow-d3193b6d.js";import"./Alert-037193c9.js";import"./RadioGroup-3beb2b33.js";import"./FormGroup-502e9f4e.js";import"./useFormControl-1b3cb36f.js";import"./spaces-4402bfd9.js";import"./api-75ef978a.js";import"./fallback-e6908990.js";import"./wallet-hidden-topbar-91b1f489.js";import"./selector-e7537a43.js";import"./makeStyles-af672e02.js";import"./index-f2a9779e.js";import"./Select-c9c71312.js";import"./InputLabel-4899f2ad.js";import"./useAsync-2a7bf586.js";import"./FilterList-4d23556a.js";import"./TableRow-2ff7461b.js";import"./LastPage-68881e08.js";import"./index-4f076ed3.js";import"./redux-4a13b1ee.js";import"./Search-d3d559ed.js";var Zt={},tr=De;Object.defineProperty(Zt,"__esModule",{value:!0});var sa=Zt.default=void 0,nr=tr(je()),ar=n,sr=(0,nr.default)((0,ar.jsx)("path",{d:"M3 18c0 .55.45 1 1 1h5v-2H4c-.55 0-1 .45-1 1zM3 6c0 .55.45 1 1 1h9V5H4c-.55 0-1 .45-1 1zm10 14v-1h7c.55 0 1-.45 1-1s-.45-1-1-1h-7v-1c0-.55-.45-1-1-1s-1 .45-1 1v4c0 .55.45 1 1 1s1-.45 1-1zM7 10v1H4c-.55 0-1 .45-1 1s.45 1 1 1h3v1c0 .55.45 1 1 1s1-.45 1-1v-4c0-.55-.45-1-1-1s-1 .45-1 1zm14 2c0-.55-.45-1-1-1h-9v2h9c.55 0 1-.45 1-1zm-5-3c.55 0 1-.45 1-1V7h3c.55 0 1-.45 1-1s-.45-1-1-1h-3V4c0-.55-.45-1-1-1s-1 .45-1 1v4c0 .55.45 1 1 1z"}),"TuneRounded");sa=Zt.default=sr;var Xt={},rr=De;Object.defineProperty(Xt,"__esModule",{value:!0});var ra=Xt.default=void 0,ir=rr(je()),or=n,cr=(0,ir.default)((0,or.jsx)("path",{d:"M21 10h-8.35C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H13l2 2 2-2 2 2 4-4.04L21 10zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3z"}),"Key");ra=Xt.default=cr;var Jt={},lr=De;Object.defineProperty(Jt,"__esModule",{value:!0});var ia=Jt.default=void 0,ur=lr(je()),dr=n,fr=(0,ur.default)((0,dr.jsx)("path",{d:"M11 7 9.6 8.4l2.6 2.6H2v2h10.2l-2.6 2.6L11 17l5-5-5-5zm9 12h-8v2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-8v2h8v14z"}),"Login");ia=Jt.default=fr;var Qt={},gr=De;Object.defineProperty(Qt,"__esModule",{value:!0});var oa=Qt.default=void 0,pr=gr(je()),mr=n,hr=(0,pr.default)((0,mr.jsx)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zm6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2zm-2 1H8v-6c0-2.48 1.51-4.5 4-4.5s4 2.02 4 4.5v6z"}),"NotificationsNone");oa=Qt.default=hr;function en({label:e,disabled:t,required:a,initialValue:r,onChange:u,style:c,onSubmit:o,triggers:s,options:i,formatterBeforeSubmit:l,helperText:d,placeholder:E,renderImage:m,renderLabel:_,filterKeys:A,noEmpty:C,...T}){const[$,f]=F.useState(!1),[h,v]=F.useState(!1),[y,L]=ns.useState(""),[M,B]=F.useState(r),[R,b]=F.useState(M),j=F.useMemo(()=>{if(!i)return{};const k={};return i.forEach(g=>{k[g.code]=g}),k},[i]),S=()=>{if(!i)return[];if(!y)return i.map(g=>g.code);const k=new RegExp(y.toLowerCase());return i.filter(g=>{var x;for(let I=0;I<A.length;I++){const K=A[I];if(k.test((x=g[K])==null?void 0:x.toLowerCase()))return!0}return!1}).map(g=>g.code)},O=async()=>{v(!0);try{await o(typeof l=="function"?l(R):R)===!1?b(M):C&&!R.length?(b(r),B(r)):(b(R),B(R))}catch{b(M)}finally{v(!1),f(!1)}},P=(k,g)=>{if(!Array.isArray(g)){b([]),u([]);return}const x=g.filter(I=>j[I]);if(!x.length){b([]),u([]);return}b(x),u(x)},q=$?n.jsx(Bs,{options:i,value:R,onChange:P,inputValue:y,onInputChange:(k,g)=>{L(g)},PopperComponent:_r,fullWidth:!0,multiple:!0,variant:"outlined",margin:"dense",filterOptions:S,getOptionLabel:k=>{var g;return(g=j[k])==null?void 0:g.name},renderInput:k=>n.jsx(le,{...k,label:"",placeholder:E}),renderOption:(k,g)=>{var I;const x=R.indexOf(g)!==-1;return F.createElement(br,{component:"li",...k,key:g},m(j[g]||{}),n.jsx(p,{sx:{"& > img":{mr:2,flexShrink:0}},style:{flex:1,fontWeight:x?"700":"normal"},children:_(g,j[g])||((I=j[g])==null?void 0:I.name)}),n.jsx(p,{component:Sn,sx:{opacity:.5,width:18,height:18},style:{visibility:x?"visible":"hidden"}}))},...T}):n.jsx(p,{px:1,className:"form-item-input slot",style:{whiteSpace:"pre-wrap"},children:R.filter(k=>i.some(g=>g.code===k)).map(k=>n.jsx(Gn,{label:i.find(g=>g.code===k).name,style:{marginRight:8},size:"small"},k))});return n.jsx(ks,{className:"form",style:c,children:n.jsxs(p,{className:"form-item",children:[n.jsxs(p,{className:"form-item-label",children:[e,a&&n.jsx(Ps,{})]}),n.jsxs(p,{className:"form-item-body",children:[n.jsx(p,{className:"form-item-input",children:q}),n.jsx(p,{className:"form-item-action",children:$?n.jsxs(n.Fragment,{children:[n.jsx(Le,{"data-cy":"schema-form-item-confirm",onClick:O,disabled:t||h,size:"large",children:h?n.jsx(ut,{size:24}):n.jsx(Ds,{})}),n.jsx(Le,{"data-cy":"schema-form-item-cancel",onClick:()=>{b(M),f(!1)},disabled:t||h,size:"large",children:n.jsx(Sn,{})})]}):n.jsx(Rs,{triggers:s,onEnterEdit:()=>f(!0),disabled:t})})]}),$&&d&&n.jsx(Fs,{children:d})]})})}en.propTypes={style:U.object,onSubmit:U.func,onChange:U.func,label:U.string,initialValue:U.string,required:U.bool,disabled:U.bool,triggers:U.array,options:U.array,helperText:U.string,formatterBeforeSubmit:U.func,placeholder:U.string,renderImage:U.func,filterKeys:U.arrayOf(U.string),noEmpty:U.bool,renderLabel:U.func};en.defaultProps={style:{},onSubmit:()=>{},onChange:()=>{},label:"",initialValue:"",required:!1,disabled:!1,triggers:[],options:[],helperText:"",formatterBeforeSubmit:e=>e.join(","),placeholder:"",filterKeys:["name"],renderImage:()=>null,renderLabel:(e,t)=>"",noEmpty:!1};const br=ge.div`
1
+ import{H as je,I as De,j as n,P as U,y as ge,bs as ts,r as F,bL as ns,B as p,bR as Sn,bj as Gn,av as Le,S as ut,u as _e,a7 as de,G as ae,n as te,a$ as pe,w as ye,cX as as,a_ as ss,x as Wn,bh as rs,T as vn,cY as is,bo as os,ak as ze,X as ne,br as cs,F as Ee,cp as ls,bC as we,ba as wt,b4 as Pe,cZ as us,c_ as ds,aW as He,c5 as st,J as dt,f as W,v as $e,bD as Ht,b5 as qn,bp as Ge,V as Gt,c$ as fs,d0 as gs,d1 as ps,d2 as ms,a as Nn,d3 as hs,b as Be,aO as bs,aP as _s,d4 as Es,cv as xs,aV as ys,bE as Ie,c as Lt,d5 as It,cP as Ss,d6 as Yn,bH as vs,bV as ve,bG as Ns,d7 as Vn,q as As}from"./index-f5164e7a.js";import{I as Cs}from"./iframe-e27aa5eb.js";import{I as Rs,F as Mt,d as Ts,L as Os,a as ws}from"./Edit-fd7c9bed.js";import{B as Zn,d as Xn}from"./ChevronRight-0de6ef39.js";import{d as Jn}from"./ExpandMore-7c173148.js";import{T as Wt}from"./index-ffef1c73.js";import{u as qt,a as Ls,b as Is,c as Ms}from"./dashboard-869969b3.js";import{d as js}from"./Loop-9bace654.js";import{d as Ds}from"./Done-e501bd33.js";import{F as ks,R as Ps,L as Et}from"./logo-uploader-f1f683e3.js";import{a as An,A as Bs}from"./Autocomplete-a2328d71.js";import{T as le,F as Fs}from"./TextField-fedebf1f.js";import{e as $s,S as Us}from"./switch-control-97423316.js";import{w as Qn,P as Ks}from"./permission-1721d6ff.js";import{C as ea,a as zs}from"./confirm-06053193.js";import{f as Yt}from"./format-error-cb03fbac.js";import{_ as Hs}from"./useSetState-6d3b66bd.js";import{u as Gs}from"./session-5cca81f2.js";import{A as Ws}from"./index-40d4e6fe.js";import{C as qs}from"./click-to-copy-aea6a9bd.js";import{F as rt,S as Ys}from"./FormControlLabel-4a842c06.js";import{C as ta}from"./Checkbox-bf851887.js";import{D as Vs}from"./DialogContentText-6418436c.js";import{S as it}from"./Switch-183772a5.js";import{u as Vt,C as ue}from"./index.esm-8eb4e6fc.js";import{u as na}from"./confirm-ddc8b167.js";import{F as be}from"./FormControl-a1fbecf5.js";import{d as Zs}from"./Launch-8e54c9a5.js";import{d as Xs}from"./EditIcon-b1d73915.js";import{A as jt}from"./config-df87ad09.js";import{S as Js}from"./Slider-dc450dee.js";import{D as Qs}from"./index-564c075f.js";import{I as er}from"./index-ca434966.js";import"./index-ad20f5d3.js";import{i as aa}from"./index-d5c608a0.js";import{G as xt}from"./Grid-c5601a70.js";import"./index-c093e71f.js";import"./nav-menu-2e0bf9b0.js";import"./Toolbar-3eef999e.js";import"./Hidden-35230dda.js";import"./ArrowDropDown-a2deccb8.js";import"./ButtonGroup-d9cd68eb.js";import"./Avatar-31b251b1.js";import"./MoreVert-3d0977ab.js";import"./useLocalStorage-6f44c0e8.js";import"./PlayArrow-961eaacd.js";import"./Alert-88ccddfd.js";import"./RadioGroup-8d4ab553.js";import"./FormGroup-b7d9ef97.js";import"./useFormControl-be0583f6.js";import"./spaces-884bd1bc.js";import"./api-cf320b38.js";import"./fallback-0a2aea38.js";import"./wallet-hidden-topbar-30953049.js";import"./selector-8aed4b44.js";import"./listItemButtonClasses-811dce88.js";import"./index-b68f9890.js";import"./Select-86168230.js";import"./InputLabel-49e6958a.js";import"./useAsync-e9cdf811.js";import"./FilterList-4f490637.js";import"./TableRow-c019aa76.js";import"./LastPage-c187ae76.js";import"./index-88adaebe.js";import"./redux-2be0c609.js";import"./toPropertyKey-acc744d8.js";import"./Search-f8fe0d11.js";var Zt={},tr=De;Object.defineProperty(Zt,"__esModule",{value:!0});var sa=Zt.default=void 0,nr=tr(je()),ar=n,sr=(0,nr.default)((0,ar.jsx)("path",{d:"M3 18c0 .55.45 1 1 1h5v-2H4c-.55 0-1 .45-1 1zM3 6c0 .55.45 1 1 1h9V5H4c-.55 0-1 .45-1 1zm10 14v-1h7c.55 0 1-.45 1-1s-.45-1-1-1h-7v-1c0-.55-.45-1-1-1s-1 .45-1 1v4c0 .55.45 1 1 1s1-.45 1-1zM7 10v1H4c-.55 0-1 .45-1 1s.45 1 1 1h3v1c0 .55.45 1 1 1s1-.45 1-1v-4c0-.55-.45-1-1-1s-1 .45-1 1zm14 2c0-.55-.45-1-1-1h-9v2h9c.55 0 1-.45 1-1zm-5-3c.55 0 1-.45 1-1V7h3c.55 0 1-.45 1-1s-.45-1-1-1h-3V4c0-.55-.45-1-1-1s-1 .45-1 1v4c0 .55.45 1 1 1z"}),"TuneRounded");sa=Zt.default=sr;var Xt={},rr=De;Object.defineProperty(Xt,"__esModule",{value:!0});var ra=Xt.default=void 0,ir=rr(je()),or=n,cr=(0,ir.default)((0,or.jsx)("path",{d:"M21 10h-8.35C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H13l2 2 2-2 2 2 4-4.04L21 10zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3z"}),"Key");ra=Xt.default=cr;var Jt={},lr=De;Object.defineProperty(Jt,"__esModule",{value:!0});var ia=Jt.default=void 0,ur=lr(je()),dr=n,fr=(0,ur.default)((0,dr.jsx)("path",{d:"M11 7 9.6 8.4l2.6 2.6H2v2h10.2l-2.6 2.6L11 17l5-5-5-5zm9 12h-8v2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-8v2h8v14z"}),"Login");ia=Jt.default=fr;var Qt={},gr=De;Object.defineProperty(Qt,"__esModule",{value:!0});var oa=Qt.default=void 0,pr=gr(je()),mr=n,hr=(0,pr.default)((0,mr.jsx)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zm6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2zm-2 1H8v-6c0-2.48 1.51-4.5 4-4.5s4 2.02 4 4.5v6z"}),"NotificationsNone");oa=Qt.default=hr;function en({label:e,disabled:t,required:a,initialValue:r,onChange:u,style:c,onSubmit:o,triggers:s,options:i,formatterBeforeSubmit:l,helperText:d,placeholder:E,renderImage:m,renderLabel:_,filterKeys:A,noEmpty:C,...T}){const[$,f]=F.useState(!1),[h,v]=F.useState(!1),[y,L]=ns.useState(""),[M,B]=F.useState(r),[R,b]=F.useState(M),j=F.useMemo(()=>{if(!i)return{};const k={};return i.forEach(g=>{k[g.code]=g}),k},[i]),S=()=>{if(!i)return[];if(!y)return i.map(g=>g.code);const k=new RegExp(y.toLowerCase());return i.filter(g=>{var x;for(let I=0;I<A.length;I++){const K=A[I];if(k.test((x=g[K])==null?void 0:x.toLowerCase()))return!0}return!1}).map(g=>g.code)},O=async()=>{v(!0);try{await o(typeof l=="function"?l(R):R)===!1?b(M):C&&!R.length?(b(r),B(r)):(b(R),B(R))}catch{b(M)}finally{v(!1),f(!1)}},P=(k,g)=>{if(!Array.isArray(g)){b([]),u([]);return}const x=g.filter(I=>j[I]);if(!x.length){b([]),u([]);return}b(x),u(x)},q=$?n.jsx(Bs,{options:i,value:R,onChange:P,inputValue:y,onInputChange:(k,g)=>{L(g)},PopperComponent:_r,fullWidth:!0,multiple:!0,variant:"outlined",margin:"dense",filterOptions:S,getOptionLabel:k=>{var g;return(g=j[k])==null?void 0:g.name},renderInput:k=>n.jsx(le,{...k,label:"",placeholder:E}),renderOption:(k,g)=>{var I;const x=R.indexOf(g)!==-1;return F.createElement(br,{component:"li",...k,key:g},m(j[g]||{}),n.jsx(p,{sx:{"& > img":{mr:2,flexShrink:0}},style:{flex:1,fontWeight:x?"700":"normal"},children:_(g,j[g])||((I=j[g])==null?void 0:I.name)}),n.jsx(p,{component:Sn,sx:{opacity:.5,width:18,height:18},style:{visibility:x?"visible":"hidden"}}))},...T}):n.jsx(p,{px:1,className:"form-item-input slot",style:{whiteSpace:"pre-wrap"},children:R.filter(k=>i.some(g=>g.code===k)).map(k=>n.jsx(Gn,{label:i.find(g=>g.code===k).name,style:{marginRight:8},size:"small"},k))});return n.jsx(ks,{className:"form",style:c,children:n.jsxs(p,{className:"form-item",children:[n.jsxs(p,{className:"form-item-label",children:[e,a&&n.jsx(Ps,{})]}),n.jsxs(p,{className:"form-item-body",children:[n.jsx(p,{className:"form-item-input",children:q}),n.jsx(p,{className:"form-item-action",children:$?n.jsxs(n.Fragment,{children:[n.jsx(Le,{"data-cy":"schema-form-item-confirm",onClick:O,disabled:t||h,size:"large",children:h?n.jsx(ut,{size:24}):n.jsx(Ds,{})}),n.jsx(Le,{"data-cy":"schema-form-item-cancel",onClick:()=>{b(M),f(!1)},disabled:t||h,size:"large",children:n.jsx(Sn,{})})]}):n.jsx(Rs,{triggers:s,onEnterEdit:()=>f(!0),disabled:t})})]}),$&&d&&n.jsx(Fs,{children:d})]})})}en.propTypes={style:U.object,onSubmit:U.func,onChange:U.func,label:U.string,initialValue:U.string,required:U.bool,disabled:U.bool,triggers:U.array,options:U.array,helperText:U.string,formatterBeforeSubmit:U.func,placeholder:U.string,renderImage:U.func,filterKeys:U.arrayOf(U.string),noEmpty:U.bool,renderLabel:U.func};en.defaultProps={style:{},onSubmit:()=>{},onChange:()=>{},label:"",initialValue:"",required:!1,disabled:!1,triggers:[],options:[],helperText:"",formatterBeforeSubmit:e=>e.join(","),placeholder:"",filterKeys:["name"],renderImage:()=>null,renderLabel:(e,t)=>"",noEmpty:!1};const br=ge.div`
2
2
  display: flex;
3
3
  justify-content: space-between;
4
4
  align-items: center;
@@ -1 +1 @@
1
- import{r as f,j as c,P as s,G as d}from"./index-2668c3ea.js";var o={};Object.defineProperty(o,"__esModule",{value:!0});var v=o.default=void 0;m(f);var n=c;function m(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(p){return Object.getOwnPropertyDescriptor(e,p).enumerable})),r.push.apply(r,a)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(a){y(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function y(e,t,r){return t=g(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(e){var t=j(e,"string");return typeof t=="symbol"?t:String(t)}function j(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var l=function(t){return(0,n.jsxs)("svg",u(u({},t),{},{children:[(0,n.jsx)("path",{d:"M24.604 2.263L28.524 0H42.79v41.862H28.79a1 1 0 0 1-.5-.134l-15.103-8.72V8.854l1.817-1.05 3.2 1.848-1.817 1.05V31.16l12.993 7.502H39.59V3.2H29.38l-1.576.91-3.2-1.847z"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26.402 31.16V10.701L13.409 3.2H3.2v35.462h10.21l1.58-.913 3.2 1.847-3.923 2.266H0V0h14.267l15.335 8.854v24.154l-1.813 1.046-3.2-1.847 1.813-1.047z"}),(0,n.jsx)("path",{d:"M138.44 27.684c.192 0 .357.075.496.224l1.344 1.472a9.584 9.584 0 0 1-3.44 2.576c-1.344.608-2.965.912-4.864.912-1.664 0-3.173-.288-4.528-.864a10.056 10.056 0 0 1-3.456-2.416c-.949-1.035-1.685-2.272-2.208-3.712-.523-1.44-.784-3.024-.784-4.752 0-1.728.272-3.312.816-4.752.555-1.44 1.328-2.677 2.32-3.712a10.444 10.444 0 0 1 3.552-2.416c1.387-.576 2.917-.864 4.592-.864 1.632 0 3.083.267 4.352.8a10.973 10.973 0 0 1 3.312 2.128l-1.12 1.584a.936.936 0 0 1-.288.288.742.742 0 0 1-.432.112c-.203 0-.443-.101-.72-.304a8.802 8.802 0 0 0-1.072-.672c-.437-.256-.981-.485-1.632-.688-.651-.203-1.461-.304-2.432-.304-1.141 0-2.187.203-3.136.608a6.885 6.885 0 0 0-2.464 1.728c-.683.747-1.216 1.67-1.6 2.768-.373 1.088-.56 2.32-.56 3.696 0 1.397.197 2.64.592 3.728.395 1.088.939 2.01 1.632 2.768a6.914 6.914 0 0 0 2.448 1.728 7.764 7.764 0 0 0 3.04.592c.661 0 1.253-.037 1.776-.112a7.843 7.843 0 0 0 1.456-.368c.448-.16.869-.363 1.264-.608a8.89 8.89 0 0 0 1.168-.912c.085-.075.176-.133.272-.176a.616.616 0 0 1 .304-.08zM149.68 16.1c1.195 0 2.272.197 3.232.592a6.54 6.54 0 0 1 2.464 1.68c.683.725 1.205 1.605 1.568 2.64.363 1.024.544 2.176.544 3.456 0 1.28-.181 2.437-.544 3.472-.363 1.035-.885 1.915-1.568 2.64a6.795 6.795 0 0 1-2.464 1.68c-.96.384-2.037.576-3.232.576-1.205 0-2.293-.192-3.264-.576a6.987 6.987 0 0 1-2.464-1.68c-.683-.725-1.211-1.605-1.584-2.64-.363-1.035-.544-2.192-.544-3.472 0-1.28.181-2.432.544-3.456.373-1.035.901-1.915 1.584-2.64a6.717 6.717 0 0 1 2.464-1.68c.971-.395 2.059-.592 3.264-.592zm0 14.304c1.536 0 2.683-.517 3.44-1.552.757-1.035 1.136-2.49 1.136-4.368 0-1.877-.379-3.333-1.136-4.368-.757-1.045-1.904-1.568-3.44-1.568-1.557 0-2.72.523-3.488 1.568-.757 1.035-1.136 2.49-1.136 4.368 0 1.877.379 3.333 1.136 4.368.768 1.035 1.931 1.552 3.488 1.552zM163.899 18.612c.352-.373.72-.715 1.104-1.024a6.73 6.73 0 0 1 1.216-.784 6.195 6.195 0 0 1 1.392-.512 6.442 6.442 0 0 1 1.6-.192c.896 0 1.68.15 2.352.448.682.299 1.253.72 1.712 1.264.458.533.805 1.179 1.04 1.936.234.757.352 1.595.352 2.512v10.352h-3.136V22.26c0-1.163-.267-2.064-.8-2.704-.534-.65-1.35-.976-2.448-.976-.8 0-1.552.192-2.256.576a7.38 7.38 0 0 0-1.936 1.536v11.92h-3.12V16.356h1.872c.437 0 .709.208.816.624l.24 1.632zM181.805 18.612c.352-.373.72-.715 1.104-1.024a6.73 6.73 0 0 1 1.216-.784 6.195 6.195 0 0 1 1.392-.512 6.448 6.448 0 0 1 1.6-.192c.896 0 1.68.15 2.352.448a4.63 4.63 0 0 1 1.712 1.264c.459.533.805 1.179 1.04 1.936.235.757.352 1.595.352 2.512v10.352h-3.136V22.26c0-1.163-.267-2.064-.8-2.704-.533-.65-1.349-.976-2.448-.976-.8 0-1.552.192-2.256.576a7.396 7.396 0 0 0-1.936 1.536v11.92h-3.12V16.356h1.872c.437 0 .709.208.816.624l.24 1.632zM207.551 22.676c0-.619-.09-1.19-.272-1.712a3.77 3.77 0 0 0-.768-1.36 3.521 3.521 0 0 0-1.248-.896c-.49-.213-1.056-.32-1.696-.32-1.312 0-2.346.379-3.104 1.136-.746.757-1.221 1.808-1.424 3.152h8.512zm2.576 7.616a6.311 6.311 0 0 1-1.328 1.168 7.926 7.926 0 0 1-1.6.784 9.664 9.664 0 0 1-1.76.448c-.597.096-1.189.144-1.776.144-1.12 0-2.16-.187-3.12-.56a7.159 7.159 0 0 1-2.48-1.664c-.693-.736-1.237-1.643-1.632-2.72-.384-1.088-.576-2.336-.576-3.744 0-1.13.176-2.181.528-3.152a7.67 7.67 0 0 1 1.504-2.56 7.064 7.064 0 0 1 2.416-1.712c.95-.416 2.016-.624 3.2-.624.992 0 1.904.165 2.736.496.843.32 1.568.79 2.176 1.408.608.619 1.083 1.381 1.424 2.288.352.907.528 1.941.528 3.104 0 .48-.053.805-.16.976-.106.16-.304.24-.592.24h-10.656c.032.97.171 1.819.416 2.544.246.715.582 1.312 1.008 1.792.438.48.955.837 1.552 1.072.598.235 1.264.352 2 .352.694 0 1.291-.08 1.792-.24.512-.16.95-.33 1.312-.512.374-.192.683-.368.928-.528.256-.16.48-.24.672-.24.256 0 .454.096.592.288l.896 1.152zM225.113 19.396a1.836 1.836 0 0 1-.288.288c-.086.064-.214.096-.384.096-.171 0-.352-.064-.544-.192a4.872 4.872 0 0 0-.704-.432 5.21 5.21 0 0 0-1.024-.432c-.395-.139-.886-.208-1.472-.208-.768 0-1.446.139-2.032.416a3.972 3.972 0 0 0-1.472 1.184c-.384.512-.678 1.136-.88 1.872-.203.736-.304 1.563-.304 2.48 0 .95.106 1.797.32 2.544.213.736.517 1.36.912 1.872.394.501.874.885 1.44 1.152a4.522 4.522 0 0 0 1.888.384c.672 0 1.226-.08 1.664-.24.437-.17.8-.352 1.088-.544.288-.192.528-.368.72-.528.192-.17.389-.256.592-.256.256 0 .453.096.592.288l.896 1.152a5.966 5.966 0 0 1-1.264 1.168c-.459.32-.95.581-1.472.784a8.34 8.34 0 0 1-1.648.448c-.566.096-1.142.144-1.728.144a7.25 7.25 0 0 1-2.848-.56 6.52 6.52 0 0 1-2.288-1.632c-.64-.715-1.147-1.59-1.52-2.624-.374-1.045-.56-2.23-.56-3.552 0-1.205.165-2.32.496-3.344.341-1.024.837-1.904 1.488-2.64a6.821 6.821 0 0 1 2.432-1.744c.96-.427 2.058-.64 3.296-.64 1.162 0 2.186.187 3.072.56a7.514 7.514 0 0 1 2.368 1.584l-.832 1.152zM234.121 32.868c-1.312 0-2.325-.368-3.04-1.104-.704-.736-1.056-1.787-1.056-3.152v-9.728h-1.888a.701.701 0 0 1-.464-.16c-.117-.117-.176-.288-.176-.512v-1.264l2.64-.368.704-4.848a.738.738 0 0 1 .24-.416.724.724 0 0 1 .48-.16h1.584v5.456h4.608v2.272h-4.608v9.52c0 .64.155 1.12.464 1.44.32.31.726.464 1.216.464.288 0 .534-.037.736-.112a3.27 3.27 0 0 0 .544-.24c.15-.096.278-.181.384-.256a.521.521 0 0 1 .288-.112c.107 0 .187.027.24.08a.694.694 0 0 1 .192.224l.928 1.504c-.512.47-1.12.832-1.824 1.088a6.362 6.362 0 0 1-2.192.384z"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M57.815 33.284V9H70.66a6.259 6.259 0 0 1 5.823 6.243v11.783a6.258 6.258 0 0 1-6.258 6.258h-12.41zM84.56 9h-3.335v24.321h3.335V9zM61.15 29.95V12.32h9.075a2.923 2.923 0 0 1 2.923 2.923v11.783a2.923 2.923 0 0 1-2.923 2.923H61.15zM89.243 9v24.284h12.409a6.258 6.258 0 0 0 6.259-6.258V15.243A6.259 6.259 0 0 0 102.087 9H89.243zm22.912 5.636h3.728v3.728h-3.728v-3.729zm3.728 9.321h-3.728v3.729h3.728v-3.729zM92.578 12.32v17.63h9.074a2.924 2.924 0 0 0 2.924-2.924V15.243a2.924 2.924 0 0 0-2.924-2.923h-9.074z"})]}))};l.defaultProps={width:"239",height:"42",viewBox:"0 0 239 42",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};l.displayName="connect-logo";var O=l;v=o.default=O;function h({children:e,...t}){return c.jsxs(d,{color:"did",variant:"contained",...t,children:[c.jsx("span",{style:{fontWeight:400},children:e||"Continue With"}),c.jsx(v,{style:{width:"auto",height:"1.2em",margin:"0 4px 0 8px"}})]})}h.propTypes={children:s.any};h.defaultProps={children:""};export{h as C};
1
+ import{r as f,j as c,P as s,G as d}from"./index-f5164e7a.js";var o={};Object.defineProperty(o,"__esModule",{value:!0});var v=o.default=void 0;m(f);var n=c;function m(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(p){return Object.getOwnPropertyDescriptor(e,p).enumerable})),r.push.apply(r,a)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(a){y(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function y(e,t,r){return t=g(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(e){var t=j(e,"string");return typeof t=="symbol"?t:String(t)}function j(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var l=function(t){return(0,n.jsxs)("svg",u(u({},t),{},{children:[(0,n.jsx)("path",{d:"M24.604 2.263L28.524 0H42.79v41.862H28.79a1 1 0 0 1-.5-.134l-15.103-8.72V8.854l1.817-1.05 3.2 1.848-1.817 1.05V31.16l12.993 7.502H39.59V3.2H29.38l-1.576.91-3.2-1.847z"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26.402 31.16V10.701L13.409 3.2H3.2v35.462h10.21l1.58-.913 3.2 1.847-3.923 2.266H0V0h14.267l15.335 8.854v24.154l-1.813 1.046-3.2-1.847 1.813-1.047z"}),(0,n.jsx)("path",{d:"M138.44 27.684c.192 0 .357.075.496.224l1.344 1.472a9.584 9.584 0 0 1-3.44 2.576c-1.344.608-2.965.912-4.864.912-1.664 0-3.173-.288-4.528-.864a10.056 10.056 0 0 1-3.456-2.416c-.949-1.035-1.685-2.272-2.208-3.712-.523-1.44-.784-3.024-.784-4.752 0-1.728.272-3.312.816-4.752.555-1.44 1.328-2.677 2.32-3.712a10.444 10.444 0 0 1 3.552-2.416c1.387-.576 2.917-.864 4.592-.864 1.632 0 3.083.267 4.352.8a10.973 10.973 0 0 1 3.312 2.128l-1.12 1.584a.936.936 0 0 1-.288.288.742.742 0 0 1-.432.112c-.203 0-.443-.101-.72-.304a8.802 8.802 0 0 0-1.072-.672c-.437-.256-.981-.485-1.632-.688-.651-.203-1.461-.304-2.432-.304-1.141 0-2.187.203-3.136.608a6.885 6.885 0 0 0-2.464 1.728c-.683.747-1.216 1.67-1.6 2.768-.373 1.088-.56 2.32-.56 3.696 0 1.397.197 2.64.592 3.728.395 1.088.939 2.01 1.632 2.768a6.914 6.914 0 0 0 2.448 1.728 7.764 7.764 0 0 0 3.04.592c.661 0 1.253-.037 1.776-.112a7.843 7.843 0 0 0 1.456-.368c.448-.16.869-.363 1.264-.608a8.89 8.89 0 0 0 1.168-.912c.085-.075.176-.133.272-.176a.616.616 0 0 1 .304-.08zM149.68 16.1c1.195 0 2.272.197 3.232.592a6.54 6.54 0 0 1 2.464 1.68c.683.725 1.205 1.605 1.568 2.64.363 1.024.544 2.176.544 3.456 0 1.28-.181 2.437-.544 3.472-.363 1.035-.885 1.915-1.568 2.64a6.795 6.795 0 0 1-2.464 1.68c-.96.384-2.037.576-3.232.576-1.205 0-2.293-.192-3.264-.576a6.987 6.987 0 0 1-2.464-1.68c-.683-.725-1.211-1.605-1.584-2.64-.363-1.035-.544-2.192-.544-3.472 0-1.28.181-2.432.544-3.456.373-1.035.901-1.915 1.584-2.64a6.717 6.717 0 0 1 2.464-1.68c.971-.395 2.059-.592 3.264-.592zm0 14.304c1.536 0 2.683-.517 3.44-1.552.757-1.035 1.136-2.49 1.136-4.368 0-1.877-.379-3.333-1.136-4.368-.757-1.045-1.904-1.568-3.44-1.568-1.557 0-2.72.523-3.488 1.568-.757 1.035-1.136 2.49-1.136 4.368 0 1.877.379 3.333 1.136 4.368.768 1.035 1.931 1.552 3.488 1.552zM163.899 18.612c.352-.373.72-.715 1.104-1.024a6.73 6.73 0 0 1 1.216-.784 6.195 6.195 0 0 1 1.392-.512 6.442 6.442 0 0 1 1.6-.192c.896 0 1.68.15 2.352.448.682.299 1.253.72 1.712 1.264.458.533.805 1.179 1.04 1.936.234.757.352 1.595.352 2.512v10.352h-3.136V22.26c0-1.163-.267-2.064-.8-2.704-.534-.65-1.35-.976-2.448-.976-.8 0-1.552.192-2.256.576a7.38 7.38 0 0 0-1.936 1.536v11.92h-3.12V16.356h1.872c.437 0 .709.208.816.624l.24 1.632zM181.805 18.612c.352-.373.72-.715 1.104-1.024a6.73 6.73 0 0 1 1.216-.784 6.195 6.195 0 0 1 1.392-.512 6.448 6.448 0 0 1 1.6-.192c.896 0 1.68.15 2.352.448a4.63 4.63 0 0 1 1.712 1.264c.459.533.805 1.179 1.04 1.936.235.757.352 1.595.352 2.512v10.352h-3.136V22.26c0-1.163-.267-2.064-.8-2.704-.533-.65-1.349-.976-2.448-.976-.8 0-1.552.192-2.256.576a7.396 7.396 0 0 0-1.936 1.536v11.92h-3.12V16.356h1.872c.437 0 .709.208.816.624l.24 1.632zM207.551 22.676c0-.619-.09-1.19-.272-1.712a3.77 3.77 0 0 0-.768-1.36 3.521 3.521 0 0 0-1.248-.896c-.49-.213-1.056-.32-1.696-.32-1.312 0-2.346.379-3.104 1.136-.746.757-1.221 1.808-1.424 3.152h8.512zm2.576 7.616a6.311 6.311 0 0 1-1.328 1.168 7.926 7.926 0 0 1-1.6.784 9.664 9.664 0 0 1-1.76.448c-.597.096-1.189.144-1.776.144-1.12 0-2.16-.187-3.12-.56a7.159 7.159 0 0 1-2.48-1.664c-.693-.736-1.237-1.643-1.632-2.72-.384-1.088-.576-2.336-.576-3.744 0-1.13.176-2.181.528-3.152a7.67 7.67 0 0 1 1.504-2.56 7.064 7.064 0 0 1 2.416-1.712c.95-.416 2.016-.624 3.2-.624.992 0 1.904.165 2.736.496.843.32 1.568.79 2.176 1.408.608.619 1.083 1.381 1.424 2.288.352.907.528 1.941.528 3.104 0 .48-.053.805-.16.976-.106.16-.304.24-.592.24h-10.656c.032.97.171 1.819.416 2.544.246.715.582 1.312 1.008 1.792.438.48.955.837 1.552 1.072.598.235 1.264.352 2 .352.694 0 1.291-.08 1.792-.24.512-.16.95-.33 1.312-.512.374-.192.683-.368.928-.528.256-.16.48-.24.672-.24.256 0 .454.096.592.288l.896 1.152zM225.113 19.396a1.836 1.836 0 0 1-.288.288c-.086.064-.214.096-.384.096-.171 0-.352-.064-.544-.192a4.872 4.872 0 0 0-.704-.432 5.21 5.21 0 0 0-1.024-.432c-.395-.139-.886-.208-1.472-.208-.768 0-1.446.139-2.032.416a3.972 3.972 0 0 0-1.472 1.184c-.384.512-.678 1.136-.88 1.872-.203.736-.304 1.563-.304 2.48 0 .95.106 1.797.32 2.544.213.736.517 1.36.912 1.872.394.501.874.885 1.44 1.152a4.522 4.522 0 0 0 1.888.384c.672 0 1.226-.08 1.664-.24.437-.17.8-.352 1.088-.544.288-.192.528-.368.72-.528.192-.17.389-.256.592-.256.256 0 .453.096.592.288l.896 1.152a5.966 5.966 0 0 1-1.264 1.168c-.459.32-.95.581-1.472.784a8.34 8.34 0 0 1-1.648.448c-.566.096-1.142.144-1.728.144a7.25 7.25 0 0 1-2.848-.56 6.52 6.52 0 0 1-2.288-1.632c-.64-.715-1.147-1.59-1.52-2.624-.374-1.045-.56-2.23-.56-3.552 0-1.205.165-2.32.496-3.344.341-1.024.837-1.904 1.488-2.64a6.821 6.821 0 0 1 2.432-1.744c.96-.427 2.058-.64 3.296-.64 1.162 0 2.186.187 3.072.56a7.514 7.514 0 0 1 2.368 1.584l-.832 1.152zM234.121 32.868c-1.312 0-2.325-.368-3.04-1.104-.704-.736-1.056-1.787-1.056-3.152v-9.728h-1.888a.701.701 0 0 1-.464-.16c-.117-.117-.176-.288-.176-.512v-1.264l2.64-.368.704-4.848a.738.738 0 0 1 .24-.416.724.724 0 0 1 .48-.16h1.584v5.456h4.608v2.272h-4.608v9.52c0 .64.155 1.12.464 1.44.32.31.726.464 1.216.464.288 0 .534-.037.736-.112a3.27 3.27 0 0 0 .544-.24c.15-.096.278-.181.384-.256a.521.521 0 0 1 .288-.112c.107 0 .187.027.24.08a.694.694 0 0 1 .192.224l.928 1.504c-.512.47-1.12.832-1.824 1.088a6.362 6.362 0 0 1-2.192.384z"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M57.815 33.284V9H70.66a6.259 6.259 0 0 1 5.823 6.243v11.783a6.258 6.258 0 0 1-6.258 6.258h-12.41zM84.56 9h-3.335v24.321h3.335V9zM61.15 29.95V12.32h9.075a2.923 2.923 0 0 1 2.923 2.923v11.783a2.923 2.923 0 0 1-2.923 2.923H61.15zM89.243 9v24.284h12.409a6.258 6.258 0 0 0 6.259-6.258V15.243A6.259 6.259 0 0 0 102.087 9H89.243zm22.912 5.636h3.728v3.728h-3.728v-3.729zm3.728 9.321h-3.728v3.729h3.728v-3.729zM92.578 12.32v17.63h9.074a2.924 2.924 0 0 0 2.924-2.924V15.243a2.924 2.924 0 0 0-2.924-2.923h-9.074z"})]}))};l.defaultProps={width:"239",height:"42",viewBox:"0 0 239 42",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};l.displayName="connect-logo";var O=l;v=o.default=O;function h({children:e,...t}){return c.jsxs(d,{color:"did",variant:"contained",...t,children:[c.jsx("span",{style:{fontWeight:400},children:e||"Continue With"}),c.jsx(v,{style:{width:"auto",height:"1.2em",margin:"0 4px 0 8px"}})]})}h.propTypes={children:s.any};h.defaultProps={children:""};export{h as C};
@@ -1,4 +1,4 @@
1
- import{aW as l}from"./index-2668c3ea.js";var c={exports:{}};/*!
1
+ import{aW as l}from"./index-f5164e7a.js";var c={exports:{}};/*!
2
2
  Copyright (c) 2018 Jed Watson.
3
3
  Licensed under the MIT License (MIT), see
4
4
  http://jedwatson.github.io/classnames
@@ -1,2 +1,2 @@
1
- import{aW as G}from"./index-2668c3ea.js";class w{constructor(e,t,o){this.property=e,this.normal=t,o&&(this.space=o)}}w.prototype.property={};w.prototype.normal={};w.prototype.space=null;function B(l,e){const t={},o={};let c=-1;for(;++c<l.length;)Object.assign(t,l[c].property),Object.assign(o,l[c].normal);return new w(t,o,e)}function L(l){return l.toLowerCase()}class h{constructor(e,t){this.property=e,this.attribute=t}}h.prototype.space=null;h.prototype.boolean=!1;h.prototype.booleanish=!1;h.prototype.overloadedBoolean=!1;h.prototype.number=!1;h.prototype.commaSeparated=!1;h.prototype.spaceSeparated=!1;h.prototype.commaOrSpaceSeparated=!1;h.prototype.mustUseProperty=!1;h.prototype.defined=!1;let $=0;const r=k(),p=k(),H=k(),n=k(),u=k(),x=k(),g=k();function k(){return 2**++$}const P=Object.freeze(Object.defineProperty({__proto__:null,boolean:r,booleanish:p,commaOrSpaceSeparated:g,commaSeparated:x,number:n,overloadedBoolean:H,spaceSeparated:u},Symbol.toStringTag,{value:"Module"})),C=Object.keys(P);class E extends h{constructor(e,t,o,c){let s=-1;if(super(e,t),R(this,"space",c),typeof o=="number")for(;++s<C.length;){const d=C[s];R(this,C[s],(o&P[d])===P[d])}}}E.prototype.defined=!0;function R(l,e,t){t&&(l[e]=t)}const Z={}.hasOwnProperty;function S(l){const e={},t={};let o;for(o in l.properties)if(Z.call(l.properties,o)){const c=l.properties[o],s=new E(o,l.transform(l.attributes||{},o),c,l.space);l.mustUseProperty&&l.mustUseProperty.includes(o)&&(s.mustUseProperty=!0),e[o]=s,t[L(o)]=o,t[L(s.attribute)]=o}return new w(e,t,l.space)}const F=S({space:"xlink",transform(l,e){return"xlink:"+e.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),j=S({space:"xml",transform(l,e){return"xml:"+e.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function N(l,e){return e in l?l[e]:e}function X(l,e){return N(l,e.toLowerCase())}const _=S({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:X,properties:{xmlns:null,xmlnsXLink:null}}),W=S({transform(l,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:p,ariaAutoComplete:null,ariaBusy:p,ariaChecked:p,ariaColCount:n,ariaColIndex:n,ariaColSpan:n,ariaControls:u,ariaCurrent:null,ariaDescribedBy:u,ariaDetails:null,ariaDisabled:p,ariaDropEffect:u,ariaErrorMessage:null,ariaExpanded:p,ariaFlowTo:u,ariaGrabbed:p,ariaHasPopup:null,ariaHidden:p,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:u,ariaLevel:n,ariaLive:null,ariaModal:p,ariaMultiLine:p,ariaMultiSelectable:p,ariaOrientation:null,ariaOwns:u,ariaPlaceholder:null,ariaPosInSet:n,ariaPressed:p,ariaReadOnly:p,ariaRelevant:null,ariaRequired:p,ariaRoleDescription:u,ariaRowCount:n,ariaRowIndex:n,ariaRowSpan:n,ariaSelected:p,ariaSetSize:n,ariaSort:null,ariaValueMax:n,ariaValueMin:n,ariaValueNow:n,ariaValueText:null,role:null}}),J=S({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:X,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:x,acceptCharset:u,accessKey:u,action:null,allow:null,allowFullScreen:r,allowPaymentRequest:r,allowUserMedia:r,alt:null,as:null,async:r,autoCapitalize:null,autoComplete:u,autoFocus:r,autoPlay:r,capture:r,charSet:null,checked:r,cite:null,className:u,cols:n,colSpan:null,content:null,contentEditable:p,controls:r,controlsList:u,coords:n|x,crossOrigin:null,data:null,dateTime:null,decoding:null,default:r,defer:r,dir:null,dirName:null,disabled:r,download:H,draggable:p,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:r,formTarget:null,headers:u,height:n,hidden:r,high:n,href:null,hrefLang:null,htmlFor:u,httpEquiv:u,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:r,itemId:null,itemProp:u,itemRef:u,itemScope:r,itemType:u,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:r,low:n,manifest:null,max:null,maxLength:n,media:null,method:null,min:null,minLength:n,multiple:r,muted:r,name:null,nonce:null,noModule:r,noValidate:r,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:r,optimum:n,pattern:null,ping:u,placeholder:null,playsInline:r,poster:null,preload:null,readOnly:r,referrerPolicy:null,rel:u,required:r,reversed:r,rows:n,rowSpan:n,sandbox:u,scope:null,scoped:r,seamless:r,selected:r,shape:null,size:n,sizes:null,slot:null,span:n,spellCheck:p,src:null,srcDoc:null,srcLang:null,srcSet:null,start:n,step:null,style:null,tabIndex:n,target:null,title:null,translate:null,type:null,typeMustMatch:r,useMap:null,value:p,width:n,wrap:null,align:null,aLink:null,archive:u,axis:null,background:null,bgColor:null,border:n,borderColor:null,bottomMargin:n,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:r,declare:r,event:null,face:null,frame:null,frameBorder:null,hSpace:n,leftMargin:n,link:null,longDesc:null,lowSrc:null,marginHeight:n,marginWidth:n,noResize:r,noHref:r,noShade:r,noWrap:r,object:null,profile:null,prompt:null,rev:null,rightMargin:n,rules:null,scheme:null,scrolling:p,standby:null,summary:null,text:null,topMargin:n,valueType:null,version:null,vAlign:null,vLink:null,vSpace:n,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:r,disableRemotePlayback:r,prefix:null,property:null,results:n,security:null,unselectable:null}}),Q=S({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:N,properties:{about:g,accentHeight:n,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:n,amplitude:n,arabicForm:null,ascent:n,attributeName:null,attributeType:null,azimuth:n,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:n,by:null,calcMode:null,capHeight:n,className:u,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:n,diffuseConstant:n,direction:null,display:null,dur:null,divisor:n,dominantBaseline:null,download:r,dx:null,dy:null,edgeMode:null,editable:null,elevation:n,enableBackground:null,end:null,event:null,exponent:n,externalResourcesRequired:null,fill:null,fillOpacity:n,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:x,g2:x,glyphName:x,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:n,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:n,horizOriginX:n,horizOriginY:n,id:null,ideographic:n,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:n,k:n,k1:n,k2:n,k3:n,k4:n,kernelMatrix:g,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:n,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:n,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:n,overlineThickness:n,paintOrder:null,panose1:null,path:null,pathLength:n,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:u,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:n,pointsAtY:n,pointsAtZ:n,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:g,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:g,rev:g,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:g,requiredFeatures:g,requiredFonts:g,requiredFormats:g,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:n,specularExponent:n,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:n,strikethroughThickness:n,string:null,stroke:null,strokeDashArray:g,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:n,strokeOpacity:n,strokeWidth:null,style:null,surfaceScale:n,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:g,tabIndex:n,tableValues:null,target:null,targetX:n,targetY:n,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:g,to:null,transform:null,u1:null,u2:null,underlinePosition:n,underlineThickness:n,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:n,values:null,vAlphabetic:n,vMathematical:n,vectorEffect:null,vHanging:n,vIdeographic:n,version:null,vertAdvY:n,vertOriginX:n,vertOriginY:n,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:n,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),nn=/^data[-\w.:]+$/i,T=/-[a-z]/g,ln=/[A-Z]/g;function kn(l,e){const t=L(e);let o=e,c=h;if(t in l.normal)return l.property[l.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&nn.test(e)){if(e.charAt(4)==="-"){const s=e.slice(5).replace(T,on);o="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=e.slice(4);if(!T.test(s)){let d=s.replace(ln,en);d.charAt(0)!=="-"&&(d="-"+d),e="data"+d}}c=E}return new c(o,e)}function en(l){return"-"+l.toLowerCase()}function on(l){return l.charAt(1).toUpperCase()}const xn={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Sn=B([j,F,_,W,J],"html"),wn=B([j,F,_,W,Q],"svg");function bn(l){const e=String(l||"").trim();return e?e.split(/[ \t\n\r\f]+/g):[]}function Cn(l){return l.join(" ").trim()}function Ln(l){const e=[],t=String(l||"");let o=t.indexOf(","),c=0,s=!1;for(;!s;){o===-1&&(o=t.length,s=!0);const d=t.slice(c,o).trim();(d||!s)&&e.push(d),c=o+1,o=t.indexOf(",",c)}return e}function Pn(l,e){const t=e||{};return(l[l.length-1]===""?[...l,""]:l).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}var O={exports:{}},A=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,tn=/\n/g,rn=/^\s*/,an=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,un=/^:\s*/,sn=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,cn=/^[;\s]*/,pn=/^\s+|\s+$/g,dn=`
1
+ import{aW as G}from"./index-f5164e7a.js";class w{constructor(e,t,o){this.property=e,this.normal=t,o&&(this.space=o)}}w.prototype.property={};w.prototype.normal={};w.prototype.space=null;function B(l,e){const t={},o={};let c=-1;for(;++c<l.length;)Object.assign(t,l[c].property),Object.assign(o,l[c].normal);return new w(t,o,e)}function L(l){return l.toLowerCase()}class h{constructor(e,t){this.property=e,this.attribute=t}}h.prototype.space=null;h.prototype.boolean=!1;h.prototype.booleanish=!1;h.prototype.overloadedBoolean=!1;h.prototype.number=!1;h.prototype.commaSeparated=!1;h.prototype.spaceSeparated=!1;h.prototype.commaOrSpaceSeparated=!1;h.prototype.mustUseProperty=!1;h.prototype.defined=!1;let $=0;const r=k(),p=k(),H=k(),n=k(),u=k(),x=k(),g=k();function k(){return 2**++$}const P=Object.freeze(Object.defineProperty({__proto__:null,boolean:r,booleanish:p,commaOrSpaceSeparated:g,commaSeparated:x,number:n,overloadedBoolean:H,spaceSeparated:u},Symbol.toStringTag,{value:"Module"})),C=Object.keys(P);class E extends h{constructor(e,t,o,c){let s=-1;if(super(e,t),R(this,"space",c),typeof o=="number")for(;++s<C.length;){const d=C[s];R(this,C[s],(o&P[d])===P[d])}}}E.prototype.defined=!0;function R(l,e,t){t&&(l[e]=t)}const Z={}.hasOwnProperty;function S(l){const e={},t={};let o;for(o in l.properties)if(Z.call(l.properties,o)){const c=l.properties[o],s=new E(o,l.transform(l.attributes||{},o),c,l.space);l.mustUseProperty&&l.mustUseProperty.includes(o)&&(s.mustUseProperty=!0),e[o]=s,t[L(o)]=o,t[L(s.attribute)]=o}return new w(e,t,l.space)}const F=S({space:"xlink",transform(l,e){return"xlink:"+e.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),j=S({space:"xml",transform(l,e){return"xml:"+e.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function N(l,e){return e in l?l[e]:e}function X(l,e){return N(l,e.toLowerCase())}const _=S({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:X,properties:{xmlns:null,xmlnsXLink:null}}),W=S({transform(l,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:p,ariaAutoComplete:null,ariaBusy:p,ariaChecked:p,ariaColCount:n,ariaColIndex:n,ariaColSpan:n,ariaControls:u,ariaCurrent:null,ariaDescribedBy:u,ariaDetails:null,ariaDisabled:p,ariaDropEffect:u,ariaErrorMessage:null,ariaExpanded:p,ariaFlowTo:u,ariaGrabbed:p,ariaHasPopup:null,ariaHidden:p,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:u,ariaLevel:n,ariaLive:null,ariaModal:p,ariaMultiLine:p,ariaMultiSelectable:p,ariaOrientation:null,ariaOwns:u,ariaPlaceholder:null,ariaPosInSet:n,ariaPressed:p,ariaReadOnly:p,ariaRelevant:null,ariaRequired:p,ariaRoleDescription:u,ariaRowCount:n,ariaRowIndex:n,ariaRowSpan:n,ariaSelected:p,ariaSetSize:n,ariaSort:null,ariaValueMax:n,ariaValueMin:n,ariaValueNow:n,ariaValueText:null,role:null}}),J=S({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:X,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:x,acceptCharset:u,accessKey:u,action:null,allow:null,allowFullScreen:r,allowPaymentRequest:r,allowUserMedia:r,alt:null,as:null,async:r,autoCapitalize:null,autoComplete:u,autoFocus:r,autoPlay:r,capture:r,charSet:null,checked:r,cite:null,className:u,cols:n,colSpan:null,content:null,contentEditable:p,controls:r,controlsList:u,coords:n|x,crossOrigin:null,data:null,dateTime:null,decoding:null,default:r,defer:r,dir:null,dirName:null,disabled:r,download:H,draggable:p,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:r,formTarget:null,headers:u,height:n,hidden:r,high:n,href:null,hrefLang:null,htmlFor:u,httpEquiv:u,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:r,itemId:null,itemProp:u,itemRef:u,itemScope:r,itemType:u,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:r,low:n,manifest:null,max:null,maxLength:n,media:null,method:null,min:null,minLength:n,multiple:r,muted:r,name:null,nonce:null,noModule:r,noValidate:r,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:r,optimum:n,pattern:null,ping:u,placeholder:null,playsInline:r,poster:null,preload:null,readOnly:r,referrerPolicy:null,rel:u,required:r,reversed:r,rows:n,rowSpan:n,sandbox:u,scope:null,scoped:r,seamless:r,selected:r,shape:null,size:n,sizes:null,slot:null,span:n,spellCheck:p,src:null,srcDoc:null,srcLang:null,srcSet:null,start:n,step:null,style:null,tabIndex:n,target:null,title:null,translate:null,type:null,typeMustMatch:r,useMap:null,value:p,width:n,wrap:null,align:null,aLink:null,archive:u,axis:null,background:null,bgColor:null,border:n,borderColor:null,bottomMargin:n,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:r,declare:r,event:null,face:null,frame:null,frameBorder:null,hSpace:n,leftMargin:n,link:null,longDesc:null,lowSrc:null,marginHeight:n,marginWidth:n,noResize:r,noHref:r,noShade:r,noWrap:r,object:null,profile:null,prompt:null,rev:null,rightMargin:n,rules:null,scheme:null,scrolling:p,standby:null,summary:null,text:null,topMargin:n,valueType:null,version:null,vAlign:null,vLink:null,vSpace:n,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:r,disableRemotePlayback:r,prefix:null,property:null,results:n,security:null,unselectable:null}}),Q=S({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:N,properties:{about:g,accentHeight:n,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:n,amplitude:n,arabicForm:null,ascent:n,attributeName:null,attributeType:null,azimuth:n,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:n,by:null,calcMode:null,capHeight:n,className:u,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:n,diffuseConstant:n,direction:null,display:null,dur:null,divisor:n,dominantBaseline:null,download:r,dx:null,dy:null,edgeMode:null,editable:null,elevation:n,enableBackground:null,end:null,event:null,exponent:n,externalResourcesRequired:null,fill:null,fillOpacity:n,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:x,g2:x,glyphName:x,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:n,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:n,horizOriginX:n,horizOriginY:n,id:null,ideographic:n,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:n,k:n,k1:n,k2:n,k3:n,k4:n,kernelMatrix:g,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:n,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:n,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:n,overlineThickness:n,paintOrder:null,panose1:null,path:null,pathLength:n,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:u,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:n,pointsAtY:n,pointsAtZ:n,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:g,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:g,rev:g,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:g,requiredFeatures:g,requiredFonts:g,requiredFormats:g,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:n,specularExponent:n,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:n,strikethroughThickness:n,string:null,stroke:null,strokeDashArray:g,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:n,strokeOpacity:n,strokeWidth:null,style:null,surfaceScale:n,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:g,tabIndex:n,tableValues:null,target:null,targetX:n,targetY:n,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:g,to:null,transform:null,u1:null,u2:null,underlinePosition:n,underlineThickness:n,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:n,values:null,vAlphabetic:n,vMathematical:n,vectorEffect:null,vHanging:n,vIdeographic:n,version:null,vertAdvY:n,vertOriginX:n,vertOriginY:n,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:n,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),nn=/^data[-\w.:]+$/i,T=/-[a-z]/g,ln=/[A-Z]/g;function kn(l,e){const t=L(e);let o=e,c=h;if(t in l.normal)return l.property[l.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&nn.test(e)){if(e.charAt(4)==="-"){const s=e.slice(5).replace(T,on);o="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=e.slice(4);if(!T.test(s)){let d=s.replace(ln,en);d.charAt(0)!=="-"&&(d="-"+d),e="data"+d}}c=E}return new c(o,e)}function en(l){return"-"+l.toLowerCase()}function on(l){return l.charAt(1).toUpperCase()}const xn={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Sn=B([j,F,_,W,J],"html"),wn=B([j,F,_,W,Q],"svg");function bn(l){const e=String(l||"").trim();return e?e.split(/[ \t\n\r\f]+/g):[]}function Cn(l){return l.join(" ").trim()}function Ln(l){const e=[],t=String(l||"");let o=t.indexOf(","),c=0,s=!1;for(;!s;){o===-1&&(o=t.length,s=!0);const d=t.slice(c,o).trim();(d||!s)&&e.push(d),c=o+1,o=t.indexOf(",",c)}return e}function Pn(l,e){const t=e||{};return(l[l.length-1]===""?[...l,""]:l).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}var O={exports:{}},A=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,tn=/\n/g,rn=/^\s*/,an=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,un=/^:\s*/,sn=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,cn=/^[;\s]*/,pn=/^\s+|\s+$/g,dn=`
2
2
  `,I="/",U="*",y="",gn="comment",hn="declaration",mn=function(l,e){if(typeof l!="string")throw new TypeError("First argument must be a string");if(!l)return[];e=e||{};var t=1,o=1;function c(i){var a=i.match(tn);a&&(t+=a.length);var m=i.lastIndexOf(dn);o=~m?i.length-m:o+i.length}function s(){var i={line:t,column:o};return function(a){return a.position=new d(i),b(),a}}function d(i){this.start=i,this.end={line:t,column:o},this.source=e.source}d.prototype.content=l;function v(i){var a=new Error(e.source+":"+t+":"+o+": "+i);if(a.reason=i,a.filename=e.source,a.line=t,a.column=o,a.source=l,!e.silent)throw a}function f(i){var a=i.exec(l);if(a){var m=a[0];return c(m),l=l.slice(m.length),a}}function b(){f(rn)}function M(i){var a;for(i=i||[];a=D();)a!==!1&&i.push(a);return i}function D(){var i=s();if(!(I!=l.charAt(0)||U!=l.charAt(1))){for(var a=2;y!=l.charAt(a)&&(U!=l.charAt(a)||I!=l.charAt(a+1));)++a;if(a+=2,y===l.charAt(a-1))return v("End of comment missing");var m=l.slice(2,a-2);return o+=2,c(m),l=l.slice(a),o+=2,i({type:gn,comment:m})}}function K(){var i=s(),a=f(an);if(a){if(D(),!f(un))return v("property missing ':'");var m=f(sn),q=i({type:hn,property:z(a[0].replace(A,y)),value:m?z(m[0].replace(A,y)):y});return f(cn),q}}function Y(){var i=[];M(i);for(var a;a=K();)a!==!1&&(i.push(a),M(i));return i}return b(),Y()};function z(l){return l?l.replace(pn,y):y}var fn=mn;function V(l,e){var t=null;if(!l||typeof l!="string")return t;for(var o,c=fn(l),s=typeof e=="function",d,v,f=0,b=c.length;f<b;f++)o=c[f],d=o.property,v=o.value,s?e(d,v,o):v&&(t||(t={}),t[d]=v);return t}O.exports=V;O.exports.default=V;var vn=O.exports;const En=G(vn),On={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Mn(l){const e=l&&typeof l=="object"&&l.type==="text"?l.value||"":l;return typeof e=="string"&&e.replace(/[ \t\n\f\r]/g,"")===""}export{En as S,Pn as a,Cn as b,xn as c,Mn as d,Ln as e,kn as f,Sn as h,L as n,bn as p,wn as s,On as w};
@@ -1,4 +1,4 @@
1
- import{ay as Ve,ax as We,az as Ye,a5 as Ge,aA as G,aD as I,r as A,aB as Xe,aC as Qe,j as a,aF as Z,aG as Je,aW as ae,bP as Ae,bQ as B,P as s,H as je,I as Ee,bM as C,a2 as Ze,bp as Ce,au as ie,L as X,T as k,b as Ke,av as et,B as L,bR as tt,K as se,bS as rt,bT as nt,bU as ot,bV as at}from"./index-2668c3ea.js";import{d as it,R as st,N as lt}from"./nav-menu-33b9a238.js";import{T as ct}from"./Toolbar-58430b9d.js";import{H as Pe}from"./Hidden-4855abd5.js";const dt={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",A100:"#a7ffeb",A200:"#64ffda",A400:"#1de9b6",A700:"#00bfa5"},te=dt;function ut(t){return Ve("MuiAppBar",t)}We("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const pt=["className","color","enableColorOnDark","position"],ft=t=>{const{color:e,position:r,classes:n}=t,o={root:["root",`color${G(e)}`,`position${G(r)}`]};return Je(o,ut,n)},W=(t,e)=>t?`${t==null?void 0:t.replace(")","")}, ${e})`:e,ht=Ye(Ge,{name:"MuiAppBar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`position${G(r.position)}`],e[`color${G(r.color)}`]]}})(({theme:t,ownerState:e})=>{const r=t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[900];return I({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},e.position==="fixed"&&{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},e.position==="absolute"&&{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},e.position==="sticky"&&{position:"sticky",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},e.position==="static"&&{position:"static"},e.position==="relative"&&{position:"relative"},!t.vars&&I({},e.color==="default"&&{backgroundColor:r,color:t.palette.getContrastText(r)},e.color&&e.color!=="default"&&e.color!=="inherit"&&e.color!=="transparent"&&{backgroundColor:t.palette[e.color].main,color:t.palette[e.color].contrastText},e.color==="inherit"&&{color:"inherit"},t.palette.mode==="dark"&&!e.enableColorOnDark&&{backgroundColor:null,color:null},e.color==="transparent"&&I({backgroundColor:"transparent",color:"inherit"},t.palette.mode==="dark"&&{backgroundImage:"none"})),t.vars&&I({},e.color==="default"&&{"--AppBar-background":e.enableColorOnDark?t.vars.palette.AppBar.defaultBg:W(t.vars.palette.AppBar.darkBg,t.vars.palette.AppBar.defaultBg),"--AppBar-color":e.enableColorOnDark?t.vars.palette.text.primary:W(t.vars.palette.AppBar.darkColor,t.vars.palette.text.primary)},e.color&&!e.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":e.enableColorOnDark?t.vars.palette[e.color].main:W(t.vars.palette.AppBar.darkBg,t.vars.palette[e.color].main),"--AppBar-color":e.enableColorOnDark?t.vars.palette[e.color].contrastText:W(t.vars.palette.AppBar.darkColor,t.vars.palette[e.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:e.color==="inherit"?"inherit":"var(--AppBar-color)"},e.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),gt=A.forwardRef(function(e,r){const n=Xe({props:e,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:d=!1,position:l="fixed"}=n,c=Qe(n,pt),u=I({},n,{color:i,position:l,enableColorOnDark:d}),p=ft(u);return a.jsx(ht,I({square:!0,component:"header",ownerState:u,elevation:4,className:Z(p.root,o,l==="fixed"&&"mui-fixed"),ref:r},c))}),mt=gt;function bt(t){return t&&typeof t=="object"&&"default"in t?t.default:t}var Oe=A,xt=bt(Oe);function be(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function yt(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var vt=!!(typeof window<"u"&&window.document&&window.document.createElement);function Tt(t,e,r){if(typeof t!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof e!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof r<"u"&&typeof r!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function n(o){return o.displayName||o.name||"Component"}return function(i){if(typeof i!="function")throw new Error("Expected WrappedComponent to be a React component.");var d=[],l;function c(){l=t(d.map(function(p){return p.props})),u.canUseDOM?e(l):r&&(l=r(l))}var u=function(p){yt(f,p);function f(){return p.apply(this,arguments)||this}f.peek=function(){return l},f.rewind=function(){if(f.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var y=l;return l=void 0,d=[],y};var m=f.prototype;return m.UNSAFE_componentWillMount=function(){d.push(this),c()},m.componentDidUpdate=function(){c()},m.componentWillUnmount=function(){var y=d.indexOf(this);d.splice(y,1),c()},m.render=function(){return xt.createElement(i,this.props)},f}(Oe.PureComponent);return be(u,"displayName","SideEffect("+n(i)+")"),be(u,"canUseDOM",vt),u}}var wt=Tt;const At=ae(wt);var jt=typeof Element<"u",Et=typeof Map=="function",Ct=typeof Set=="function",Pt=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Y(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var r,n,o;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(n=r;n--!==0;)if(!Y(t[n],e[n]))return!1;return!0}var i;if(Et&&t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i=t.entries();!(n=i.next()).done;)if(!e.has(n.value[0]))return!1;for(i=t.entries();!(n=i.next()).done;)if(!Y(n.value[1],e.get(n.value[0])))return!1;return!0}if(Ct&&t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i=t.entries();!(n=i.next()).done;)if(!e.has(n.value[0]))return!1;return!0}if(Pt&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){if(r=t.length,r!=e.length)return!1;for(n=r;n--!==0;)if(t[n]!==e[n])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf&&typeof t.valueOf=="function"&&typeof e.valueOf=="function")return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString&&typeof t.toString=="function"&&typeof e.toString=="function")return t.toString()===e.toString();if(o=Object.keys(t),r=o.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[n]))return!1;if(jt&&t instanceof Element)return!1;for(n=r;n--!==0;)if(!((o[n]==="_owner"||o[n]==="__v"||o[n]==="__o")&&t.$$typeof)&&!Y(t[o[n]],e[o[n]]))return!1;return!0}return t!==t&&e!==e}var Ot=function(e,r){try{return Y(e,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const St=ae(Ot);/*
1
+ import{ay as Ve,ax as We,az as Ye,a5 as Ge,aA as G,aD as I,r as A,aB as Xe,aC as Qe,j as a,aF as Z,aG as Je,aW as ae,bK as Ae,bL as B,P as s,H as je,I as Ee,bH as C,a2 as Ze,bp as Ce,au as ie,L as X,T as k,b as Ke,av as et,B as L,bM as tt,K as se,bN as rt,bO as nt,bP as ot,bQ as at}from"./index-f5164e7a.js";import{d as it,R as st,N as lt}from"./nav-menu-2e0bf9b0.js";import{T as ct}from"./Toolbar-3eef999e.js";import{H as Pe}from"./Hidden-35230dda.js";const dt={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",A100:"#a7ffeb",A200:"#64ffda",A400:"#1de9b6",A700:"#00bfa5"},te=dt;function ut(t){return Ve("MuiAppBar",t)}We("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const pt=["className","color","enableColorOnDark","position"],ft=t=>{const{color:e,position:r,classes:n}=t,o={root:["root",`color${G(e)}`,`position${G(r)}`]};return Je(o,ut,n)},W=(t,e)=>t?`${t==null?void 0:t.replace(")","")}, ${e})`:e,ht=Ye(Ge,{name:"MuiAppBar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`position${G(r.position)}`],e[`color${G(r.color)}`]]}})(({theme:t,ownerState:e})=>{const r=t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[900];return I({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},e.position==="fixed"&&{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},e.position==="absolute"&&{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},e.position==="sticky"&&{position:"sticky",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},e.position==="static"&&{position:"static"},e.position==="relative"&&{position:"relative"},!t.vars&&I({},e.color==="default"&&{backgroundColor:r,color:t.palette.getContrastText(r)},e.color&&e.color!=="default"&&e.color!=="inherit"&&e.color!=="transparent"&&{backgroundColor:t.palette[e.color].main,color:t.palette[e.color].contrastText},e.color==="inherit"&&{color:"inherit"},t.palette.mode==="dark"&&!e.enableColorOnDark&&{backgroundColor:null,color:null},e.color==="transparent"&&I({backgroundColor:"transparent",color:"inherit"},t.palette.mode==="dark"&&{backgroundImage:"none"})),t.vars&&I({},e.color==="default"&&{"--AppBar-background":e.enableColorOnDark?t.vars.palette.AppBar.defaultBg:W(t.vars.palette.AppBar.darkBg,t.vars.palette.AppBar.defaultBg),"--AppBar-color":e.enableColorOnDark?t.vars.palette.text.primary:W(t.vars.palette.AppBar.darkColor,t.vars.palette.text.primary)},e.color&&!e.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":e.enableColorOnDark?t.vars.palette[e.color].main:W(t.vars.palette.AppBar.darkBg,t.vars.palette[e.color].main),"--AppBar-color":e.enableColorOnDark?t.vars.palette[e.color].contrastText:W(t.vars.palette.AppBar.darkColor,t.vars.palette[e.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:e.color==="inherit"?"inherit":"var(--AppBar-color)"},e.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),gt=A.forwardRef(function(e,r){const n=Xe({props:e,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:d=!1,position:l="fixed"}=n,c=Qe(n,pt),u=I({},n,{color:i,position:l,enableColorOnDark:d}),p=ft(u);return a.jsx(ht,I({square:!0,component:"header",ownerState:u,elevation:4,className:Z(p.root,o,l==="fixed"&&"mui-fixed"),ref:r},c))}),mt=gt;function bt(t){return t&&typeof t=="object"&&"default"in t?t.default:t}var Oe=A,xt=bt(Oe);function be(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function yt(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var vt=!!(typeof window<"u"&&window.document&&window.document.createElement);function Tt(t,e,r){if(typeof t!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof e!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof r<"u"&&typeof r!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function n(o){return o.displayName||o.name||"Component"}return function(i){if(typeof i!="function")throw new Error("Expected WrappedComponent to be a React component.");var d=[],l;function c(){l=t(d.map(function(p){return p.props})),u.canUseDOM?e(l):r&&(l=r(l))}var u=function(p){yt(f,p);function f(){return p.apply(this,arguments)||this}f.peek=function(){return l},f.rewind=function(){if(f.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var y=l;return l=void 0,d=[],y};var m=f.prototype;return m.UNSAFE_componentWillMount=function(){d.push(this),c()},m.componentDidUpdate=function(){c()},m.componentWillUnmount=function(){var y=d.indexOf(this);d.splice(y,1),c()},m.render=function(){return xt.createElement(i,this.props)},f}(Oe.PureComponent);return be(u,"displayName","SideEffect("+n(i)+")"),be(u,"canUseDOM",vt),u}}var wt=Tt;const At=ae(wt);var jt=typeof Element<"u",Et=typeof Map=="function",Ct=typeof Set=="function",Pt=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Y(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var r,n,o;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(n=r;n--!==0;)if(!Y(t[n],e[n]))return!1;return!0}var i;if(Et&&t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i=t.entries();!(n=i.next()).done;)if(!e.has(n.value[0]))return!1;for(i=t.entries();!(n=i.next()).done;)if(!Y(n.value[1],e.get(n.value[0])))return!1;return!0}if(Ct&&t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i=t.entries();!(n=i.next()).done;)if(!e.has(n.value[0]))return!1;return!0}if(Pt&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){if(r=t.length,r!=e.length)return!1;for(n=r;n--!==0;)if(t[n]!==e[n])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf&&typeof t.valueOf=="function"&&typeof e.valueOf=="function")return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString&&typeof t.toString=="function"&&typeof e.toString=="function")return t.toString()===e.toString();if(o=Object.keys(t),r=o.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[n]))return!1;if(jt&&t instanceof Element)return!1;for(n=r;n--!==0;)if(!((o[n]==="_owner"||o[n]==="__v"||o[n]==="__o")&&t.$$typeof)&&!Y(t[o[n]],e[o[n]]))return!1;return!0}return t!==t&&e!==e}var Ot=function(e,r){try{return Y(e,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const St=ae(Ot);/*
2
2
  object-assign
3
3
  (c) Sindre Sorhus
4
4
  @license MIT
@@ -1 +1 @@
1
- import{aW as y}from"./index-2668c3ea.js";var c={};function u(e,i){typeof i=="boolean"&&(i={forever:i}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=i||{},this._maxRetryTime=i&&i.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}var T=u;u.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};u.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};u.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var i=new Date().getTime();if(e&&i-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var t=this._timeouts.shift();if(t===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),t=this._cachedTimeouts.slice(-1);else return!1;var r=this;return this._timer=setTimeout(function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)},t),this._options.unref&&this._timer.unref(),!0};u.prototype.attempt=function(e,i){this._fn=e,i&&(i.timeout&&(this._operationTimeout=i.timeout),i.cb&&(this._operationTimeoutCb=i.cb));var t=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){t._operationTimeoutCb()},t._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};u.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};u.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};u.prototype.start=u.prototype.try;u.prototype.errors=function(){return this._errors};u.prototype.attempts=function(){return this._attempts};u.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},i=null,t=0,r=0;r<this._errors.length;r++){var a=this._errors[r],o=a.message,n=(e[o]||0)+1;e[o]=n,n>=t&&(i=a,t=n)}return i};(function(e){var i=T;e.operation=function(t){var r=e.timeouts(t);return new i(r,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},e.timeouts=function(t){if(t instanceof Array)return[].concat(t);var r={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var a in t)r[a]=t[a];if(r.minTimeout>r.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var o=[],n=0;n<r.retries;n++)o.push(this.createTimeout(n,r));return t&&t.forever&&!o.length&&o.push(this.createTimeout(n,r)),o.sort(function(s,m){return s-m}),o},e.createTimeout=function(t,r){var a=r.randomize?Math.random()+1:1,o=Math.round(a*Math.max(r.minTimeout,1)*Math.pow(r.factor,t));return o=Math.min(o,r.maxTimeout),o},e.wrap=function(t,r,a){if(r instanceof Array&&(a=r,r=null),!a){a=[];for(var o in t)typeof t[o]=="function"&&a.push(o)}for(var n=0;n<a.length;n++){var s=a[n],m=t[s];t[s]=(function(p){var f=e.operation(r),h=Array.prototype.slice.call(arguments,1),l=h.pop();h.push(function(_){f.retry(_)||(_&&(arguments[0]=f.mainError()),l.apply(this,arguments))}),f.attempt(function(){p.apply(t,h)})}).bind(t,m),t[s].options=r}}})(c);var v=c;const R=y(v);export{R as a,v as r};
1
+ import{aW as y}from"./index-f5164e7a.js";var c={};function u(e,i){typeof i=="boolean"&&(i={forever:i}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=i||{},this._maxRetryTime=i&&i.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}var T=u;u.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};u.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};u.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var i=new Date().getTime();if(e&&i-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var t=this._timeouts.shift();if(t===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),t=this._cachedTimeouts.slice(-1);else return!1;var r=this;return this._timer=setTimeout(function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)},t),this._options.unref&&this._timer.unref(),!0};u.prototype.attempt=function(e,i){this._fn=e,i&&(i.timeout&&(this._operationTimeout=i.timeout),i.cb&&(this._operationTimeoutCb=i.cb));var t=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){t._operationTimeoutCb()},t._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};u.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};u.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};u.prototype.start=u.prototype.try;u.prototype.errors=function(){return this._errors};u.prototype.attempts=function(){return this._attempts};u.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},i=null,t=0,r=0;r<this._errors.length;r++){var a=this._errors[r],o=a.message,n=(e[o]||0)+1;e[o]=n,n>=t&&(i=a,t=n)}return i};(function(e){var i=T;e.operation=function(t){var r=e.timeouts(t);return new i(r,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},e.timeouts=function(t){if(t instanceof Array)return[].concat(t);var r={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var a in t)r[a]=t[a];if(r.minTimeout>r.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var o=[],n=0;n<r.retries;n++)o.push(this.createTimeout(n,r));return t&&t.forever&&!o.length&&o.push(this.createTimeout(n,r)),o.sort(function(s,m){return s-m}),o},e.createTimeout=function(t,r){var a=r.randomize?Math.random()+1:1,o=Math.round(a*Math.max(r.minTimeout,1)*Math.pow(r.factor,t));return o=Math.min(o,r.maxTimeout),o},e.wrap=function(t,r,a){if(r instanceof Array&&(a=r,r=null),!a){a=[];for(var o in t)typeof t[o]=="function"&&a.push(o)}for(var n=0;n<a.length;n++){var s=a[n],m=t[s];t[s]=(function(p){var f=e.operation(r),h=Array.prototype.slice.call(arguments,1),l=h.pop();h.push(function(_){f.retry(_)||(_&&(arguments[0]=f.mainError()),l.apply(this,arguments))}),f.attempt(function(){p.apply(t,h)})}).bind(t,m),t[s].options=r}}})(c);var v=c;const R=y(v);export{R as a,v as r};