@abtnode/webapp 1.16.30-beta-cd65989e → 1.16.30

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 (178) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{Add-DcfqNj9w.js → Add-B6ZIiZST.js} +1 -1
  4. package/dist/assets/{ArrowDropDown-DYMMZRTO.js → ArrowDropDown-CTOfLnwc.js} +1 -1
  5. package/dist/assets/{Autocomplete-B3WY_LBb.js → Autocomplete-BRgMnZ52.js} +1 -1
  6. package/dist/assets/{Breadcrumbs-C3Ukk_Va.js → Breadcrumbs-s9U9zLgF.js} +1 -1
  7. package/dist/assets/{ButtonGroup-Dyh7V3R_.js → ButtonGroup-3w5LvaA0.js} +1 -1
  8. package/dist/assets/{CheckCircle-DFyRfRNK.js → CheckCircle-DE_y9vib.js} +1 -1
  9. package/dist/assets/{ChevronLeft-BP608n3q.js → ChevronLeft-CvWKad8W.js} +1 -1
  10. package/dist/assets/{ChevronRight-DXthvSJU.js → ChevronRight-93HrdGCM.js} +1 -1
  11. package/dist/assets/{Close-DRCHgHGm.js → Close-DzKkufzk.js} +1 -1
  12. package/dist/assets/{Delete-Db11NFpL.js → Delete-DFFe3xyW.js} +1 -1
  13. package/dist/assets/DeleteOutline-yYcRq6ni.js +1 -0
  14. package/dist/assets/{Done-8K83c718.js → Done-3-QQ_TOf.js} +1 -1
  15. package/dist/assets/{Edit-D7NzY4U7.js → Edit-wLc7o2cw.js} +1 -1
  16. package/dist/assets/{EditIcon-C7JFIq8b.js → EditIcon-BCVTD6hP.js} +1 -1
  17. package/dist/assets/{ExpandMore-DQZgaGQn.js → ExpandMore-CFYbzpsT.js} +1 -1
  18. package/dist/assets/{FilterList-FpqscjJw.js → FilterList-FEjK2Fox.js} +1 -1
  19. package/dist/assets/{Google-kRiNbyHh.js → Google-C9I0SVEJ.js} +1 -1
  20. package/dist/assets/{Https-s4r-e05W.js → Https-BPSFFlg6.js} +1 -1
  21. package/dist/assets/{InputAdornment-B5quKKO5.js → InputAdornment-DT4h3g9o.js} +1 -1
  22. package/dist/assets/{InputLabel-Dh6H4BIb.js → InputLabel-BOR0LpK5.js} +1 -1
  23. package/dist/assets/{LastPage-DT2e5BXx.js → LastPage-BmNCoOR7.js} +1 -1
  24. package/dist/assets/{Launch-cwgW1pSn.js → Launch-BN3gZaS3.js} +1 -1
  25. package/dist/assets/{Link-DEgDwuSo.js → Link-Dxx2K6Ua.js} +1 -1
  26. package/dist/assets/{LoadingButton-DDckTsBs.js → LoadingButton-DdNqcAhj.js} +1 -1
  27. package/dist/assets/{LockIcon-DuSbMAm7.js → LockIcon-BB4v3xDA.js} +1 -1
  28. package/dist/assets/{Loop-ZSIw_P5f.js → Loop-COqhNCYW.js} +1 -1
  29. package/dist/assets/{MoreHoriz-DAjkNEHz.js → MoreHoriz-IPlU_Vvy.js} +1 -1
  30. package/dist/assets/{MoreVert-BWsZ-BJo.js → MoreVert-C_-FQbwq.js} +1 -1
  31. package/dist/assets/{Pagination-BJP77u5l.js → Pagination-BfGbGnHW.js} +1 -1
  32. package/dist/assets/{Public-DDWrr2XN.js → Public-CcSZDx4-.js} +1 -1
  33. package/dist/assets/{SchemaReference.es-k9Z767eT.js → SchemaReference.es-DmaLWYOX.js} +1 -1
  34. package/dist/assets/{Search-SYh-6ZOz.js → Search-CjX0JQkS.js} +1 -1
  35. package/dist/assets/{Select-BLXgoX9k.js → Select-C44-YCyD.js} +1 -1
  36. package/dist/assets/{Skeleton-Dyu5Ax0I.js → Skeleton-4s7n7VqF.js} +1 -1
  37. package/dist/assets/{Slider-B0276czb.js → Slider-C0JALcDq.js} +1 -1
  38. package/dist/assets/{Stepper-CZPI8cC9.js → Stepper-BRwbb4LL.js} +1 -1
  39. package/dist/assets/{TextField-DwK_GXoo.js → TextField-BjNW7Bjw.js} +1 -1
  40. package/dist/assets/{ToggleButtonGroup-DYNoxLKb.js → ToggleButtonGroup-DtqIWzr-.js} +1 -1
  41. package/dist/assets/{ViewList-BuaOPxVQ.js → ViewList-CHj6lFwi.js} +1 -1
  42. package/dist/assets/actions-DGcLEhc9.js +11 -0
  43. package/dist/assets/{actions-CCXhc7Af.js → actions-TtrKwsqz.js} +1 -1
  44. package/dist/assets/{agreement-zGj-Qfxf.js → agreement-DXIl-xR_.js} +1 -1
  45. package/dist/assets/api-Rcl-3MyM.js +1 -0
  46. package/dist/assets/{app-avatar-CHPdyNGu.js → app-avatar-BvOjNwzf.js} +1 -1
  47. package/dist/assets/{audit-logs-D956eiA3.js → audit-logs-D4-Bez8p.js} +1 -1
  48. package/dist/assets/blocklet-d8bc_SQ4.js +1 -0
  49. package/dist/assets/{brace-fold.es-Ceo3WJ-_.js → brace-fold.es-B1LEOxqn.js} +1 -1
  50. package/dist/assets/{bundle-avatar-BmpkX0gn.js → bundle-avatar-CW4zHZR5.js} +1 -1
  51. package/dist/assets/{chart-C1MBEatU.js → chart-TIGkq42g.js} +1 -1
  52. package/dist/assets/{click-to-copy-BE3dtZl9.js → click-to-copy-ZbSHXJko.js} +1 -1
  53. package/dist/assets/{closebrackets.es-DRptbCUu.js → closebrackets.es-hz2Jou3O.js} +1 -1
  54. package/dist/assets/{codemirror.es-ZszZWF0R.js → codemirror.es-DRCfXk0r.js} +1 -1
  55. package/dist/assets/{comment.es-cnLgD8Uc.js → comment.es-BmnkGJwk.js} +1 -1
  56. package/dist/assets/{config-navigation-BOrH5Hvb.js → config-navigation-DS08ePOc.js} +1 -1
  57. package/dist/assets/{delete-confirm-DpRBeIKH.js → delete-confirm-CGv3y6py.js} +1 -1
  58. package/dist/assets/{detail-vJPrtqvp.js → detail-DmU03eC7.js} +3 -3
  59. package/dist/assets/{dialog.es-CfQUxsPX.js → dialog.es-CSYXNrcw.js} +1 -1
  60. package/dist/assets/{download-cFw_E2Hj.js → download-CAroNPKK.js} +1 -1
  61. package/dist/assets/{foldgutter.es-CgkrTV35.js → foldgutter.es-BSRJoBoZ.js} +1 -1
  62. package/dist/assets/getValidReactChildren-Y-QNoefA.js +1 -0
  63. package/dist/assets/{hint.es-eNWKZSbN.js → hint.es-DuHUgHT3.js} +1 -1
  64. package/dist/assets/{hint.es2-BhkzwSZo.js → hint.es2-CLzxOo96.js} +1 -1
  65. package/dist/assets/{iframe-BIwxy4ip.js → iframe-C3LtsJmK.js} +1 -1
  66. package/dist/assets/index-3tln4L6C.js +21 -0
  67. package/dist/assets/{index-CInfPT7W.js → index-8azRnZez.js} +1 -1
  68. package/dist/assets/{index-Dntt1eil.js → index-BApbAOLy.js} +1 -1
  69. package/dist/assets/{index-DMFar3I1.js → index-BN-HHDJJ.js} +1 -1
  70. package/dist/assets/{index-D1PLfduk.js → index-BQmNmoac.js} +1 -1
  71. package/dist/assets/{index-cvAtg-Od.js → index-BZCt88Kn.js} +14 -14
  72. package/dist/assets/{index-AgJrAiSK.js → index-BatYQHX2.js} +3 -3
  73. package/dist/assets/{index-BSMELOgI.js → index-BdL0EBBo.js} +1 -1
  74. package/dist/assets/{index-Bd4i9E1O.js → index-BfvNFce6.js} +1 -1
  75. package/dist/assets/{index-Dcdxfmgi.js → index-BrDzj3_R.js} +1 -1
  76. package/dist/assets/{index-Cd1cCAJE.js → index-C3UQMAkF.js} +1 -1
  77. package/dist/assets/{index-DBx2-m_Y.js → index-C3q33eZl.js} +1 -1
  78. package/dist/assets/{index-CrQS5iun.js → index-C4LMPu9u.js} +1 -1
  79. package/dist/assets/{index-BL7aEYjP.js → index-CJBZPdm6.js} +1 -1
  80. package/dist/assets/{index-ZSHqTs4i.js → index-CR_2MaC1.js} +1 -1
  81. package/dist/assets/{index-77OEIYM-.js → index-CUztA_gz.js} +1 -1
  82. package/dist/assets/{index-D3Cozcmh.js → index-CkbP6S_A.js} +1 -1
  83. package/dist/assets/{index-KJ30jnaf.js → index-Cmy0GHU-.js} +1 -1
  84. package/dist/assets/{index-Cw-_inHl.js → index-Ctog4pYE.js} +1 -1
  85. package/dist/assets/{index-D9Y3tfXV.js → index-CveYHk3t.js} +1 -1
  86. package/dist/assets/{index-bivCnspX.js → index-D0RT0rzU.js} +1 -1
  87. package/dist/assets/index-D53ihNsv.js +292 -0
  88. package/dist/assets/{index-NkzSJ_BT.js → index-D6q9zEjn.js} +5 -5
  89. package/dist/assets/{index-Dw1w1qL3.js → index-DQo_Dew3.js} +1 -1
  90. package/dist/assets/{index-Dqs8xtQE.js → index-DTSardYw.js} +1 -1
  91. package/dist/assets/{index-Dd6xY134.js → index-DfTYGL67.js} +3 -3
  92. package/dist/assets/index-DnLx-UdH.js +68 -0
  93. package/dist/assets/{index-DD1cWFOC.js → index-DpVeIVbC.js} +1 -1
  94. package/dist/assets/{index-BtBRSL1d.js → index-DrdqOXJL.js} +3 -3
  95. package/dist/assets/{index-wZRHPQoX.js → index-DtsnjFBd.js} +1 -1
  96. package/dist/assets/{index-C74bQC6L.js → index-Dy-ye0PE.js} +1 -1
  97. package/dist/assets/{index-Cwi3bFQC.js → index-DzlR4ROA.js} +4 -4
  98. package/dist/assets/{index-BkdBfB4w.js → index-EKqCJff8.js} +1 -1
  99. package/dist/assets/{index-Dp2GTeOn.js → index-RRgjvIfT.js} +1 -1
  100. package/dist/assets/{index-H_NjEuu9.js → index-RrRN76hq.js} +1 -1
  101. package/dist/assets/{index-C42qq7Ec.js → index-UbiaSDM9.js} +1 -1
  102. package/dist/assets/{index-DEPFtOhR.js → index-aiikLstk.js} +1 -1
  103. package/dist/assets/{index-B07CNOuw.js → index-ffNDefbl.js} +1 -1
  104. package/dist/assets/{index-Dpoqj6Jo.js → index-fiBRRSS-.js} +1 -1
  105. package/dist/assets/{index-BHeHy1vA.js → index-po1Du4Ca.js} +1 -1
  106. package/dist/assets/{index-D4xfc6Js.js → index-qSHb4AGp.js} +1 -1
  107. package/dist/assets/{index-BBKwIw61.js → index-sw48VBzs.js} +1 -1
  108. package/dist/assets/{index-Bq5tRfCd.js → index-vCyUMIWI.js} +1 -1
  109. package/dist/assets/{index-CRniQIuD.js → index-x2vTLzR6.js} +1 -1
  110. package/dist/assets/{index.es-tDltq_DZ.js → index.es-C2y5LgUg.js} +1 -1
  111. package/dist/assets/{index.esm-DhpdxP8T.js → index.esm-DNLYWMPY.js} +1 -1
  112. package/dist/assets/{info-addon.es-DMX0vTB2.js → info-addon.es-OU9D4WD4.js} +1 -1
  113. package/dist/assets/{info.es-C_it_PXd.js → info.es-BYpWwfiq.js} +1 -1
  114. package/dist/assets/{install-from-url-BCD5VkoR.js → install-from-url-BHRJMyoo.js} +1 -1
  115. package/dist/assets/{invitation-BumVTtN2.js → invitation-4BcBcG3g.js} +1 -1
  116. package/dist/assets/{is-path-prefix-equal-DubKYq2T.js → is-path-prefix-equal-QODAXh-c.js} +1 -1
  117. package/dist/assets/{isEqual-BkbmgPj_.js → isEqual-CFOAIOWs.js} +1 -1
  118. package/dist/assets/{item-DrPKfKmr.js → item-DinHwjuB.js} +1 -1
  119. package/dist/assets/{javascript.es-DMQy9e7V.js → javascript.es-BZ4hu16-.js} +1 -1
  120. package/dist/assets/{jump-to-line.es-CnkPzf5y.js → jump-to-line.es-ds6uZCNW.js} +1 -1
  121. package/dist/assets/{jump.es-C9HLQdHA.js → jump.es-Dow2EsmT.js} +1 -1
  122. package/dist/assets/{line-4lY_Qb2m.js → line-Cpeu8572.js} +3 -3
  123. package/dist/assets/{lint.es-C5Vl7JPf.js → lint.es-BumMccTK.js} +1 -1
  124. package/dist/assets/{lint.es2-Bm4ZHXqa.js → lint.es2-BzVHBAgd.js} +1 -1
  125. package/dist/assets/{lint.es3-BB9pBVnq.js → lint.es3-ziEStM1n.js} +1 -1
  126. package/dist/assets/{list-header-BCtVonO4.js → list-header-5GKfEIKg.js} +1 -1
  127. package/dist/assets/{log-wlfixqXj.js → log-BzeVufdm.js} +1 -1
  128. package/dist/assets/{lottie-iTUSD55o.js → lottie-Dittdj4N.js} +1 -1
  129. package/dist/assets/{matchbrackets.es-Bl0t_qCA.js → matchbrackets.es-DqPFoH1c.js} +1 -1
  130. package/dist/assets/{memory-wEAomQNC.js → memory-CVFS6lDi.js} +1 -1
  131. package/dist/assets/{mode.es-rKbkm8lU.js → mode.es-tUbE6Sz4.js} +1 -1
  132. package/dist/assets/{mode.es2-ytsRZP0t.js → mode.es2-DOWb3-oK.js} +1 -1
  133. package/dist/assets/{mode.es3-DfHDE8XK.js → mode.es3-BcjY2hx8.js} +1 -1
  134. package/dist/assets/{onlineParser.es-wDu05TUX.js → onlineParser.es-BdeAPFTn.js} +1 -1
  135. package/dist/assets/{overview-1N_1lpT0.js → overview-D7vbgmTw.js} +1 -1
  136. package/dist/assets/{react-B4m6RLMM.js → react-Dervdh0W.js} +16 -16
  137. package/dist/assets/{redux-CxE33JOf.js → redux-C4Q_CSvp.js} +1 -1
  138. package/dist/assets/{resource-dialog-C-7qKAQl.js → resource-dialog-Byph1CoJ.js} +1 -1
  139. package/dist/assets/{runtime-5KBAFD-g.js → runtime-7TSih23R.js} +1 -1
  140. package/dist/assets/{schema-B4kKlOTb.js → schema-Bq2ly-4o.js} +1 -1
  141. package/dist/assets/sdk-aTAcQDv-.js +1 -0
  142. package/dist/assets/{search.es-CQuNoVSc.js → search.es-CMLj29wb.js} +1 -1
  143. package/dist/assets/{searchcursor.es-Bbgmgmrg.js → searchcursor.es-eHb4SABv.js} +1 -1
  144. package/dist/assets/service-FolPIcUS.js +1 -0
  145. package/dist/assets/{shorten-label-C_WwZ4ZV.js → shorten-label-BSQEIROA.js} +1 -1
  146. package/dist/assets/{show-hint.es-tSocwxSB.js → show-hint.es-Bn3zEE4X.js} +1 -1
  147. package/dist/assets/{slicedToArray-CmalbWCs.js → slicedToArray-ROu8OO6l.js} +1 -1
  148. package/dist/assets/{spaces-1KfYd8Qs.js → spaces-CKLphlMZ.js} +1 -1
  149. package/dist/assets/{status-V0qJ0HIh.js → status-6F7XJ5dp.js} +1 -1
  150. package/dist/assets/{sublime.es-CLH5NL12.js → sublime.es-CYqGOBLs.js} +1 -1
  151. package/dist/assets/{switch-control-CdkyWsoc.js → switch-control-BxRwCbFm.js} +1 -1
  152. package/dist/assets/{table-icons-Baq11dUV.js → table-icons-BXeoVsYd.js} +2 -2
  153. package/dist/assets/{team-Cup7T2o5.js → team-nBwKhOsv.js} +1 -1
  154. package/dist/assets/{toUpper-Dy6OxPnp.js → toUpper-BBB_TInl.js} +1 -1
  155. package/dist/assets/{traffic-BL6WX1d5.js → traffic-BgMFjNc5.js} +1 -1
  156. package/dist/assets/{url-evaluation-DDt3hytj.js → url-evaluation-C7b_jErN.js} +1 -1
  157. package/dist/assets/{url-join-H8M29juk.js → url-join-LN7aIhdX.js} +1 -1
  158. package/dist/assets/{use-blocklet-info-for-connect-did-spaces-Z2TSdCJw.js → use-blocklet-info-for-connect-did-spaces-Dw7UZ6Jz.js} +1 -1
  159. package/dist/assets/{useLocalStorage-6mPZ-rWo.js → useLocalStorage-F8gidp1W.js} +1 -1
  160. package/dist/assets/{useThemeProps-rDwpoqme.js → useThemeProps-CRpVKi5P.js} +1 -1
  161. package/dist/assets/{util-DThpIciT.js → util-DjDIVQpP.js} +1 -1
  162. package/dist/assets/{wait-container-DHDQHqIH.js → wait-container-fwTsXfbb.js} +1 -1
  163. package/dist/assets/{withStyles-CXCpzdMR.js → withStyles-unQnV9F2.js} +1 -1
  164. package/dist/assets/{wrap-locale-Kr9QT-Cb.js → wrap-locale-CCm3KObK.js} +1 -1
  165. package/dist/index.html +1 -1
  166. package/dist/service-worker.js +1 -1
  167. package/package.json +1 -1
  168. package/dist/assets/DeleteOutline-CZIY0Jkx.js +0 -1
  169. package/dist/assets/DeleteOutline-FodRCvrE.js +0 -1
  170. package/dist/assets/actions-CWKaEmCe.js +0 -11
  171. package/dist/assets/api-CG6YJvRD.js +0 -1
  172. package/dist/assets/blocklet-DsP8dvbD.js +0 -1
  173. package/dist/assets/getValidReactChildren-BAhSJfgG.js +0 -1
  174. package/dist/assets/index-BReI-Zee.js +0 -68
  175. package/dist/assets/index-FIMmdaZK.js +0 -21
  176. package/dist/assets/index-YpvJfazn.js +0 -292
  177. package/dist/assets/sdk-CV4QPi_Q.js +0 -1
  178. package/dist/assets/service-Bwn6NSxE.js +0 -1
@@ -0,0 +1,11 @@
1
+ import{bs as Te,bt as ze,bu as qe,bv as Ne,bw as ke,bx as Ve,by as He,bz as Fe,bA as Ge,g as We,bB as Ke,bC as Xe,bD as Ze,r as v,j as n,P as S,aK as j,aL as y,bE as Qe,n as Ye,A as Je,bl as et,f as ve,N as M,b as V,bF as z,a2 as tt,a$ as nt,K as at,O as rt,bd as ot,U as st,aD as it,C as ie,a8 as lt,ac as le,B as ct,H,m as q,aZ as ce,E as ue,a9 as ut,aQ as dt,M as mt,bG as pt,bH as ft,bI as vt}from"./index-DzlR4ROA.js";import{_ as de}from"./useLocalStorage-F8gidp1W.js";import{d as ht}from"./MoreVert-C_-FQbwq.js";import{d as gt}from"./Delete-DFFe3xyW.js";import{B as _t}from"./ButtonGroup-3w5LvaA0.js";import{R as xt,a as me}from"./status-6F7XJ5dp.js";import{u as St}from"./url-evaluation-C7b_jErN.js";var jt=Te,yt=Ne,Dt=ke,Ct=ze,Rt=qe,$t=Ve,bt=200;function Lt(e,r,i,l){var o=-1,m=yt,g=!0,_=e.length,u=[],s=r.length;if(!_)return u;i&&(r=Ct(r,Rt(i))),l?(m=Dt,g=!1):r.length>=bt&&(m=$t,g=!1,r=new jt(r));e:for(;++o<_;){var p=e[o],f=i==null?p:i(p);if(p=l||p!==0?p:0,g&&f===f){for(var R=s;R--;)if(r[R]===f)continue e;u.push(p)}else m(r,f,l)||u.push(p)}return u}var wt=Lt,Mt=wt,At=He,pe=Fe;function Bt(e,r,i){var l=e.length;if(l<2)return l?pe(e[0]):[];for(var o=-1,m=Array(l);++o<l;)for(var g=e[o],_=-1;++_<l;)_!=o&&(m[o]=Mt(m[o]||g,e[_],r,i));return pe(At(m,1),r,i)}var Et=Bt,It=Ke,Pt=Ge,Ut=Et,Ot=Ze,Tt=Xe,zt=Pt(function(e){var r=Tt(e);return r=typeof r=="function"?r:void 0,Ut(It(e,Ot),void 0,r)}),qt=zt;const Nt=We(qt),he=v.createContext({});function ge({children:e,type:r}){const[i,l]=v.useState([]),o=v.useRef([]),m=u=>{if(!o.current.includes(u)){const s=[...o.current,u];l(s),o.current=s}},g=u=>{if(o.current.includes(u)){const s=o.current.filter(p=>p!==u);l(s),o.current=s}},_=u=>{const s=i.filter(f=>u.find(R=>R===f));Nt(s,i).forEach(f=>g(f))};return n.jsx(he.Provider,{value:{type:r,deletingBlocklets:i,addDeletingDid:m,removeDeletingDid:g,matchDeletingDid:_},children:e})}ge.propTypes={type:S.string,children:S.node.isRequired};ge.defaultProps={type:"blocklets"};function Rn(){return v.useContext(he)}var F={},kt=y;Object.defineProperty(F,"__esModule",{value:!0});var _e=F.default=void 0,Vt=kt(j()),Ht=n;_e=F.default=(0,Vt.default)((0,Ht.jsx)("path",{d:"M8 5v14l11-7z"}),"PlayArrow");var G={},Ft=y;Object.defineProperty(G,"__esModule",{value:!0});var xe=G.default=void 0,Gt=Ft(j()),Wt=n;xe=G.default=(0,Gt.default)((0,Wt.jsx)("path",{d:"M6 6h12v12H6z"}),"Stop");var W={},Kt=y;Object.defineProperty(W,"__esModule",{value:!0});var Se=W.default=void 0,Xt=Kt(j()),Zt=n;Se=W.default=(0,Xt.default)((0,Zt.jsx)("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8"}),"Replay");var K={},Qt=y;Object.defineProperty(K,"__esModule",{value:!0});var je=K.default=void 0,Yt=Qt(j()),Jt=n;je=K.default=(0,Yt.default)((0,Jt.jsx)("path",{d:"M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6m6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26"}),"Autorenew");var X={},en=y;Object.defineProperty(X,"__esModule",{value:!0});var ye=X.default=void 0,tn=en(j()),nn=n;ye=X.default=(0,tn.default)((0,nn.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings");var Z={},an=y;Object.defineProperty(Z,"__esModule",{value:!0});var De=Z.default=void 0,rn=an(j()),on=n;De=Z.default=(0,rn.default)((0,on.jsx)("path",{d:"M18 17H6v-2h12zm0-4H6v-2h12zm0-4H6V7h12zM3 22l1.5-1.5L6 22l1.5-1.5L9 22l1.5-1.5L12 22l1.5-1.5L15 22l1.5-1.5L18 22l1.5-1.5L21 22V2l-1.5 1.5L18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2 4.5 3.5 3 2z"}),"Receipt");var Q={},sn=y;Object.defineProperty(Q,"__esModule",{value:!0});var Ce=Q.default=void 0,ln=sn(j()),cn=n;Ce=Q.default=(0,ln.default)((0,cn.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"Group");var Y={},un=y;Object.defineProperty(Y,"__esModule",{value:!0});var Re=Y.default=void 0,dn=un(j()),mn=n;Re=Y.default=(0,dn.default)((0,mn.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20m6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9"}),"NotInterested");var J={},pn=y;Object.defineProperty(J,"__esModule",{value:!0});var $e=J.default=void 0,fn=pn(j()),vn=n;$e=J.default=(0,fn.default)((0,vn.jsx)("path",{d:"m18.25 7.6-5.5-3.18c-.46-.27-1.04-.27-1.5 0L5.75 7.6c-.46.27-.75.76-.75 1.3v6.35c0 .54.29 1.03.75 1.3l5.5 3.18c.46.27 1.04.27 1.5 0l5.5-3.18c.46-.27.75-.76.75-1.3V8.9c0-.54-.29-1.03-.75-1.3M7 14.96v-4.62l4 2.32v4.61zm5-4.03L8 8.61l4-2.31 4 2.31zm1 6.34v-4.61l4-2.32v4.62zM7 2H3.5C2.67 2 2 2.67 2 3.5V7h2V4h3zm10 0h3.5c.83 0 1.5.67 1.5 1.5V7h-2V4h-3zM7 22H3.5c-.83 0-1.5-.67-1.5-1.5V17h2v3h3zm10 0h3.5c.83 0 1.5-.67 1.5-1.5V17h-2v3h-3z"}),"ViewInAr");const A={Start:_e,Stop:xe,Restart:Se,Reload:je,Remove:gt,Config:ye,Log:De,Group:Ce,Cancel:Re,Dashboard:Qe,Overview:$e},hn="internal",gn="external";function ee({blocklet:e,onStart:r,onComplete:i,variant:l,hasPermission:o,getComponentUrl:m,useBlockletUrlEvaluation:g,..._}){const u=Je(),s=et(),[p,f]=v.useState(null),[R,te]=v.useState(null),[B,E]=v.useState(!1),[c,N]=v.useState(null),{t:a}=v.useContext(ve),[be]=de("skip-blocklet-setup",!1),{loading:Le,recommendedUrl:we}=g(e),[Me]=de("blocklet-type-filter",hn),ne=M.isInProgress(e.status),[ae,re]=v.useState(!1);v.useEffect(()=>{var d,D;if(!(e!=null&&e.controller))return;re(((D=(d=e==null?void 0:e.controller)==null?void 0:d.status)==null?void 0:D.value)===V.BLOCKLET_CONTROLLER_STATUS.suspended),(async()=>{var C,$,b;try{const h=await s.api.getLauncherSession({input:{launcherSessionId:(C=e==null?void 0:e.controller)==null?void 0:C.launcherSessionId,launcherUrl:($=e==null?void 0:e.controller)==null?void 0:$.launcherUrl}});if(h!=null&&h.error){console.error("get launcher session failed",h.error);return}re([H.LAUNCH_SESSION_STATUS.overdue,H.LAUNCH_SESSION_STATUS.canceled,H.LAUNCH_SESSION_STATUS.terminated].includes((b=h==null?void 0:h.launcherSession)==null?void 0:b.status))}catch(h){console.error("call getLauncherSession error",h)}})()},[]);const{inService:k}=s,I=(t,d,D=!1)=>async()=>{const C=async U=>{var T;r({action:t,blocklet:e}),E(!0),te(t);let O=!1;try{if(t==="remove")await d(U);else if(t==="start"){if(!M.hasRunnableComponent(e)){ue.error(a("blocklet.noComponent"));return}if(!k&&!be&&!((T=e.settings)!=null&&T.initialized)&&e.mode!==V.BLOCKLET_MODES.DEVELOPMENT){const x=ut(s.info),se=new URL(we);se.searchParams.set("serverUrl",x),window.open(se.href),i({action:t,blocklet:e});return}const L=e.children.filter(x=>!M.isInProgress(x.status)&&x.status!=="running").map(x=>x.meta.did),w={did:e.meta.did,componentDids:L};await d({input:w})}else if(["stop","restart","reload"].includes(t)){const L=e.children.filter(x=>x.status==="running").map(x=>x.meta.did),w={did:e.meta.did,componentDids:L};await d({input:w})}else{const L={did:e.meta.did};await d({input:L})}t==="remove"?O=!0:await dt(1e3),t==="reload"&&ue.success(a("blocklet.reloadSuccess")),N(null),i({action:t,blocklet:e})}catch(L){const w=`Blocklet ${t} failed: ${mt(L)}`;throw i({action:t,blocklet:e,error:new Error(w)}),new Error(w)}finally{O||E(!1)}},$=()=>{E(!1),N(null)},b=M.getDisplayName(e,!0),h=e.mode===V.BLOCKLET_MODES.DEVELOPMENT?{description:()=>n.jsx(q,{component:"div",children:n.jsx(q,{gutterBottom:!0,children:a("blocklet.action.removeApplicationDescription")})}),params:{removeType:"complete"}}:{description:(U,O)=>n.jsxs(q,{component:"div",children:[n.jsx(q,{gutterBottom:!0,children:a("blocklet.action.removeApplicationDescription")}),n.jsxs(xt,{name:"removeType",value:U.removeType,onChange:T=>O({...U,removeType:T.target.value}),children:[n.jsx(ce,{value:"backup",control:n.jsx(me,{}),label:a("blocklet.action.removeApplicationAfterBackup")}),n.jsx(ce,{value:"complete",control:n.jsx(me,{}),label:a("blocklet.action.removeApplicationComplete")})]})]}),params:{removeType:"backup"}},Oe={stop:{title:`${a("common.stop")} ${b}`,description:a("blocklet.action.stopDescription"),confirm:a("blocklet.action.confirmStop"),cancel:a("common.cancel"),onConfirm:C,onCancel:$},restart:{title:`${a("common.restart")} ${b}`,description:a("blocklet.action.restartDescription"),confirm:a("blocklet.action.confirmRestart"),cancel:a("common.cancel"),onConfirm:C,onCancel:$},remove:{title:`${a("common.remove")} ${b}`,confirm:a("blocklet.action.confirmRemove"),cancel:a("common.cancel"),onConfirm:C,onCancel:$,...h},cancelDownload:{title:`${a("common.cancel")}`,description:a("blocklet.action.cancelDownloadDescription",{name:b}),confirm:a("common.confirm"),cancel:a("common.cancel"),onConfirm:C,onCancel:$}};D?N(Oe[t]):await C()},Ae=!!p,Be=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}f(t.currentTarget)},Ee=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}f(null)},oe=async(t,d)=>{try{d.stopPropagation(),d.preventDefault()}catch{}if(typeof t.handler=="function")try{E(!0),te(t.action),await t.handler()}catch(D){console.error(`Blocklet ${t.name} failed: `,D)}finally{E(!1),f(null)}else f(null)},Ie=!k&&M.isDeletableBlocklet(e)?{action:"remove",icon:A.Remove,name:a("common.remove"),handler:I("remove",async({removeType:t})=>{t==="backup"&&await s.api.backupBlocklet({input:{appDid:e.appDid,to:"disk"}}),await s.api.deleteBlocklet({input:{did:e.meta.did,keepData:!1}})},!0),disabled:ne}:null,Pe={action:"remove",icon:({sx:t,...d})=>n.jsx(A.Cancel,{sx:{...t,paddingRight:"2px",zoom:.95},...d}),name:a("common.cancel"),handler:I("cancelDownload",s.api.cancelDownloadBlocklet,!0)},Ue=M.getAppMissingConfigs(e);let P=[{action:"start",icon:A.Start,name:a("common.start"),handler:I("start",s.api.startBlocklet),disabled:ae||e.children.every(t=>t.status==="running")||z(e.status)||Le||ne},{action:"stop",icon:A.Stop,name:a("common.stop"),handler:I("stop",s.api.stopBlocklet,!0),disabled:!["running","starting"].includes(e.status)},{action:"restart",icon:A.Restart,name:a("common.restart"),handler:I("restart",s.api.restartBlocklet,!0),disabled:ae||e.status!=="running"},z(e.status)?Pe:Ie,{separator:!0},k?null:{onlyInMenu:!0,action:"overview",icon:A.Overview,name:a("common.overview"),handler:()=>{u(`/blocklets/${e.meta.did}/overview`)},disabled:z(e.status)}].filter(Boolean);return Me===gn&&(P=P.filter(t=>t.onlyInMenu)),l==="menu"?n.jsxs(fe,{"data-cy":"blocklet-actions",children:[n.jsx(tt,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"trigger-blocklet-actions","actions-blocklet-did":e.meta.did,onClick:Be,size:"small",disabled:!o||!z(e.status)&&B,children:n.jsx(ht,{})}),n.jsxs(nt,{id:"actions-menu",anchorEl:p,keepMounted:!0,open:Ae,onClose:Ee,PaperProps:{},children:[Ue.length>0&&n.jsxs(at,{style:{maxWidth:"400px"},severity:"error",children:[a("blocklet.config.missingRequired"),n.jsx("br",{}),n.jsx(rt,{to:`/blocklets/${e.meta.did}/components`,children:a("blocklet.config.gotoFix")})]}),P.map((t,d)=>t.separator?n.jsx(ot,{},`separator-${d}`):n.jsxs(st,{dense:!0,onClick:D=>oe(t,D),disabled:B||t.disabled,"data-cy":`${t.action}-blocklet`,children:[n.jsx(it,{style:{minWidth:24},children:R===t.action&&B?n.jsx(ie,{size:16,sx:{marginRight:1}}):n.jsx(t.icon,{fontSize:"small"})}),n.jsx(lt,{primary:t.name})]},t.name))]}),c&&n.jsx(le,{title:c.title,description:c.description,confirm:c.confirm,cancel:c.cancel,params:c.params,onConfirm:c.onConfirm,onCancel:c.onCancel})]}):n.jsxs(fe,{"data-cy":"blocklet-actions",..._,children:[n.jsx(_t,{children:P.filter(t=>!t.separator&&!t.onlyInMenu).map(t=>n.jsxs(ct,{title:t.name,"data-cy":`${t.action}-blocklet`,onClick:()=>oe(t),disabled:!!t.disabled||B,children:[R===t.action&&B?n.jsx(ie,{size:16,sx:{marginRight:1}}):n.jsx(t.icon,{}),n.jsx("span",{className:"blocklet-action-text",children:t.name})]},t.name))}),c&&n.jsx(le,{title:c.title,description:c.description,confirm:c.confirm,cancel:c.cancel,params:c.params,onConfirm:c.onConfirm,onCancel:c.onCancel})]})}ee.propTypes={getComponentUrl:S.func,blocklet:S.object.isRequired,onStart:S.func.isRequired,onComplete:S.func.isRequired,variant:S.oneOf(["menu","group"]),hasPermission:S.bool,useBlockletUrlEvaluation:S.func};ee.defaultProps={getComponentUrl:null,variant:"menu",hasPermission:!1,useBlockletUrlEvaluation:()=>{var e;return{loading:!1,recommendedUrl:(e=window==null?void 0:window.location)==null?void 0:e.href}}};const fe=Ye.div`
2
+ display: flex;
3
+ align-items: center;
4
+
5
+ @media (max-width: ${e=>e.theme.breakpoints.values.sm}px) {
6
+ .MuiButton-root {
7
+ padding: 4px;
8
+ font-size: 10px;
9
+ }
10
+ }
11
+ `;function $n({...e}){const{locale:r}=v.useContext(ve),i=pt(ee,"mutate_blocklets"),l=({mountPoint:o,blocklet:m})=>ft({blocklet:m,mountPoint:o,params:vt(m,r)});return n.jsx(i,{...e,getComponentUrl:l,useBlockletUrlEvaluation:St})}export{$n as B,ge as D,W as R,wt as _,xe as a,A as b,_e as c,Ce as d,Se as e,Rn as u};
@@ -1 +1 @@
1
- import{r as c,j as e,a2 as P,a$ as E,bd as v,U as D,aD as I,a8 as b,P as l,n as T}from"./index-Cwi3bFQC.js";import{d as k}from"./MoreHoriz-DAjkNEHz.js";function p({actions:u,size:m,...d}){const[o,r]=c.useState(null),y=!!o,f=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}r(t.currentTarget)},a=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}r(null)};return e.jsxs(z,{...d,children:[e.jsx(P,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"actions-menu-icon",onClick:f,size:m,children:e.jsx(k,{})}),e.jsx(E,{id:"actions-menu","data-cy":"actions-menu",anchorEl:o,keepMounted:!0,open:y,onClose:a,slotProps:{paper:{}},children:u.map((t,s)=>{if(typeof t=="function")return t({close:a});if(t.separator)return e.jsx(v,{},`separator-${s}`);const{icon:h,text:x,render:A,onClick:n,disabled:j=!1,...g}=t;return c.createElement(D,{...g,disabled:j,dense:!0,onClick:async i=>{i.stopPropagation(),await(n==null?void 0:n(i)),a()},key:s,"data-cy":`actions-menu-${s}`},e.jsx(I,{style:{minWidth:24,marginRight:8},children:h}),e.jsx(b,{primary:x}))})})]})}p.propTypes={actions:l.array,size:l.oneOf(["small","medium","large"])};p.defaultProps={actions:[],size:"small"};const z=T.div``;export{p as A};
1
+ import{r as c,j as e,a2 as P,a$ as E,bd as v,U as D,aD as I,a8 as b,P as l,n as T}from"./index-DzlR4ROA.js";import{d as k}from"./MoreHoriz-IPlU_Vvy.js";function p({actions:u,size:m,...d}){const[o,r]=c.useState(null),y=!!o,f=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}r(t.currentTarget)},a=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}r(null)};return e.jsxs(z,{...d,children:[e.jsx(P,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"actions-menu-icon",onClick:f,size:m,children:e.jsx(k,{})}),e.jsx(E,{id:"actions-menu","data-cy":"actions-menu",anchorEl:o,keepMounted:!0,open:y,onClose:a,slotProps:{paper:{}},children:u.map((t,s)=>{if(typeof t=="function")return t({close:a});if(t.separator)return e.jsx(v,{},`separator-${s}`);const{icon:h,text:x,render:A,onClick:n,disabled:j=!1,...g}=t;return c.createElement(D,{...g,disabled:j,dense:!0,onClick:async i=>{i.stopPropagation(),await(n==null?void 0:n(i)),a()},key:s,"data-cy":`actions-menu-${s}`},e.jsx(I,{style:{minWidth:24,marginRight:8},children:h}),e.jsx(b,{primary:x}))})})]})}p.propTypes={actions:l.array,size:l.oneOf(["small","medium","large"])};p.defaultProps={actions:[],size:"small"};const z=T.div``;export{p as A};
@@ -1,4 +1,4 @@
1
- import{P as m,n as k,j as i,aK as oe,aL as ae,r as E,B as se,C as le,D as X,g as K,Q as g,N as _,cg as ce,fd as pe,k as y,dE as ue,m as H,H as de,t as V,J as fe,fM as N,bl as me,F as he,A as xe,aZ as ge,a_ as ye,a2 as ve}from"./index-Cwi3bFQC.js";import{a as Y,h as be,w as we,f as je,b as Ee,d as ke,e as Ce,M as Ne}from"./index-bivCnspX.js";import{j as L}from"./url-join-H8M29juk.js";function Se({children:e,...t}){return i.jsx(Te,{...t,children:e})}Se.propTypes={children:m.any.isRequired};const Te=k.div`
1
+ import{P as m,n as k,j as i,aK as oe,aL as ae,r as E,B as se,C as le,D as X,g as K,Q as g,N as _,cg as ce,fd as pe,k as y,dE as ue,m as H,H as de,t as V,J as fe,fM as N,bl as me,F as he,A as xe,aZ as ge,a_ as ye,a2 as ve}from"./index-DzlR4ROA.js";import{a as Y,h as be,w as we,f as je,b as Ee,d as ke,e as Ce,M as Ne}from"./index-D0RT0rzU.js";import{j as L}from"./url-join-LN7aIhdX.js";function Se({children:e,...t}){return i.jsx(Te,{...t,children:e})}Se.propTypes={children:m.any.isRequired};const Te=k.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: center;
@@ -0,0 +1 @@
1
+ import{av as a}from"./index-DzlR4ROA.js";a.defaults.timeout=10*1e3;const o=a.create();export{o as a};
@@ -1 +1 @@
1
- import{bl as A,b as L,q as u,cV as B,bo as $,P as o,j as E,cd as y}from"./index-Cwi3bFQC.js";const d=(s,a)=>{var r;let n="?v=";return a?n+=B(a):n+=`${(r=s==null?void 0:s.meta)==null?void 0:r.version}${$(s==null?void 0:s.status)?"~":""}`,n};function P({blocklet:s}){var O,g,p,v;const{inService:a}=A(),n=(O=((s==null?void 0:s.environments)||[]).find(e=>e.key===L.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_SQUARE))==null?void 0:O.value,r=(g=((s==null?void 0:s.environments)||[]).find(e=>e.key===L.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_RECT))==null?void 0:g.value,t=(p=((s==null?void 0:s.environments)||[]).find(e=>e.key===L.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_FAVICON))==null?void 0:p.value,i=((v=window.env)==null?void 0:v.apiPrefix)||"/",m=`${u(i,`/blocklet/logo/${a?"":s.meta.did}`)}${d(s,n)}`,f=`${u(i,`/blocklet/logo-rect/${a?"":s.meta.did}`)}${d(s,r)}`,C=`${u(i,`/blocklet/logo-favicon/${a?"":s.meta.did}`)}${d(s,t)}`;return{logoUrl:m,rectLogoUrl:f,faviconUrl:C}}function _({blocklet:s,style:a,size:n,...r}){const{logoUrl:t}=P({blocklet:s}),{variant:i}=r;return E.jsx(y,{variant:i||"square",style:Object.assign({backgroundColor:"transparent",width:n,height:n,borderRadius:10},a),...r,children:E.jsx("img",{src:t,alt:"",style:{width:n}})})}_.propTypes={blocklet:o.object.isRequired,style:o.object,size:o.oneOfType([o.number,o.string])};_.defaultProps={style:{},size:40};export{_ as B,P as u};
1
+ import{bl as A,b as L,q as u,cV as B,bo as $,P as o,j as E,cd as y}from"./index-DzlR4ROA.js";const d=(s,a)=>{var r;let n="?v=";return a?n+=B(a):n+=`${(r=s==null?void 0:s.meta)==null?void 0:r.version}${$(s==null?void 0:s.status)?"~":""}`,n};function P({blocklet:s}){var O,g,p,v;const{inService:a}=A(),n=(O=((s==null?void 0:s.environments)||[]).find(e=>e.key===L.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_SQUARE))==null?void 0:O.value,r=(g=((s==null?void 0:s.environments)||[]).find(e=>e.key===L.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_RECT))==null?void 0:g.value,t=(p=((s==null?void 0:s.environments)||[]).find(e=>e.key===L.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_FAVICON))==null?void 0:p.value,i=((v=window.env)==null?void 0:v.apiPrefix)||"/",m=`${u(i,`/blocklet/logo/${a?"":s.meta.did}`)}${d(s,n)}`,f=`${u(i,`/blocklet/logo-rect/${a?"":s.meta.did}`)}${d(s,r)}`,C=`${u(i,`/blocklet/logo-favicon/${a?"":s.meta.did}`)}${d(s,t)}`;return{logoUrl:m,rectLogoUrl:f,faviconUrl:C}}function _({blocklet:s,style:a,size:n,...r}){const{logoUrl:t}=P({blocklet:s}),{variant:i}=r;return E.jsx(y,{variant:i||"square",style:Object.assign({backgroundColor:"transparent",width:n,height:n,borderRadius:10},a),...r,children:E.jsx("img",{src:t,alt:"",style:{width:n}})})}_.propTypes={blocklet:o.object.isRequired,style:o.object,size:o.oneOfType([o.number,o.string])};_.defaultProps={style:{},size:40};export{_ as B,P as u};
@@ -1,4 +1,4 @@
1
- import{bl as N,r as u,j as t,E as I,t as B,C as M,Q as b,U as R,n as W,as as E,m as f,O as S,T as O,fu as z,H as U}from"./index-Cwi3bFQC.js";import{c as F,v as D,p as G,s as C,M as H}from"./index-bivCnspX.js";import{E as Z}from"./index-BHeHy1vA.js";import{_ as K}from"./useLocalStorage-6mPZ-rWo.js";import{F as X,S as Q}from"./Select-BLXgoX9k.js";import{I as q}from"./InputLabel-Dh6H4BIb.js";import{P as J}from"./Pagination-BJP77u5l.js";import"./LastPage-DT2e5BXx.js";const V=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,Y=/^[a-zA-Z]:\\/;function ee(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return Y.test(e)?!1:V.test(e)}const te=["http","https"],re=["nofollow"],se={};function ae(e){const r=e||se,o=r.protocols||te,n=F(r.test);return function(p){D(p,"element",function(s,i,c){if(s.tagName==="a"&&typeof s.properties.href=="string"&&n(s,i,c)){const a=s.properties.href;if(ee(a)?o.includes(a.slice(0,a.indexOf(":"))):a.startsWith("//")){const l=x(r.content,s),y=l&&!Array.isArray(l)?[l]:l,g=x(r.rel,s)||re,m=typeof g=="string"?G(g):g,d=x(r.target,s),v=x(r.properties,s);if(v&&Object.assign(s.properties,C(v)),m.length>0&&(s.properties.rel=[...m]),d&&(s.properties.target=d),y){const w=x(r.contentProperties,s)||{};s.children.push({type:"element",tagName:"span",properties:C(w),children:C(y)})}}}})}}function x(e,r){return typeof e=="function"?e(r):e}const k=u.createContext({}),{Provider:oe,Consumer:ve}=k;function ne({children:e,scope:r="",categories:o=[],showScope:n,scopeFormatter:p}){const{api:s,info:i}=N(),[c,a]=u.useState([]),[l,y]=u.useState({total:0,pageSize:20,pageCount:0,page:1}),[g,m]=u.useState(!1),[d,v]=K(`audit-log-category-${r}`,"all"),$=[{value:"all",label:"All",description:""},{value:"blocklet",label:"Blocklet Management",description:""},{value:"server",label:"Server Management",description:""},{value:"team",label:"Team Management",description:""},{value:"security",label:"Security",description:""},{value:"certificates",label:"Certificate Management",description:""},{value:"integrations",label:"Integration Management",description:""},{value:"gateway",label:"Gateway",description:""}].filter(j=>o.length?j.value==="all"||o.includes(j.value):!0),L=async({page:j=1,silent:_=!0}={})=>{if(!g){_||m(!0);try{const h=await s.getAuditLogs({input:{paging:{page:j},category:d==="all"?"":d,scope:r}});n&&(h.list||[]).forEach(A=>{A.scope!==i.did&&(A.link=`/blocklets/${A.scope}/components`)}),a(h.list),y(h.paging),m(!1)}catch(h){I.error(h.message),m(!1)}}};u.useEffect(()=>{L({page:1,silent:!1})},[]),u.useEffect(()=>{L({page:1,silent:!1})},[d]);const T={loading:g,fetch:L,filter:{category:d,scope:r},categories:$,setCategory:v,data:c,paging:l,showScope:n,scopeFormatter:p};return t.jsx(oe,{value:{auditLogs:T},children:e})}function P(){const{auditLogs:e}=u.useContext(k);return e}const ie=({log:e,info:r,inService:o})=>o?`${U.WELLKNOWN_BLOCKLET_ADMIN_PATH}/members?did=${e.actor.did}`:e.scope===r.did?`/team/members?did=${e.actor.did}`:`/blocklets/${e.scope}/members?did=${e.actor.did}`;function ce({log:e}){var i,c;const{inService:r,info:o}=N(),{showScope:n,scopeFormatter:p=a=>a}=P();if(!e.actor.did)return null;const s=!["blocklet",""].includes(e.actor.role);return t.jsxs(b,{className:"log-entry","data-cy":"log-entry",children:[t.jsx("div",{className:"log-author",children:s?t.jsx(E,{did:e.actor.did,size:36,shape:"circle"}):t.jsx(E,{did:e.actor.did,size:36})}),t.jsxs("div",{className:"log-body",children:[t.jsxs(f,{className:"log-header",color:"textSecondary",component:"p",gutterBottom:!0,display:"flex",alignItems:"center",children:[n&&t.jsx(S,{to:e.link,children:t.jsx(O,{style:{marginRight:8},children:p(e.scope)})}),s?t.jsxs(S,{to:ie({log:e,inService:r,info:o}),target:"_blank",children:[e.actor.fullName,e.actor.role?`(${e.actor.role})`:""]}):t.jsxs("span",{children:[e.actor.fullName,e.actor.role?`(${e.actor.role})`:""]})," ",t.jsx("span",{style:{margin:"0 4px"},children:"-"})," ",e.action]}),t.jsx(f,{className:"log-content",maxWidth:"lg",color:"textPrimary",component:"div","data-color-mode":"light",gutterBottom:!0,children:t.jsx(H,{source:e.content,rehypePlugins:[[ae,{target:"_blank"}]]})}),t.jsxs(b,{className:"log-meta",variant:"body2",children:[!!e.ip&&t.jsx(f,{component:"span",color:"textSecondary",children:`IP: ${e.ip}`}),!!((i=e.env.os)!=null&&i.name)&&t.jsxs(f,{component:"span",color:"textSecondary",children:[e.env.os.name,"(",e.env.os.version,")"]}),!!((c=e.env.browser)!=null&&c.name)&&t.jsxs(f,{component:"span",color:"textSecondary",children:[e.env.browser.name,"(",e.env.browser.version,")"]}),t.jsx(f,{component:"span",color:"textSecondary",children:t.jsx(z,{value:e.createdAt})})]})]})]})}function le(){const{t:e}=B(),{data:r,loading:o,paging:n,filter:p,categories:s,setCategory:i,fetch:c}=P();return o?t.jsx("div",{style:{textAlign:"center",marginTop:"50px"},children:t.jsx(M,{})}):t.jsxs(pe,{"data-cy":"audit-logs",children:[t.jsx(b,{className:"log-controls",children:t.jsxs(X,{style:{width:"240px"},variant:"outlined",children:[t.jsx(q,{children:e("common.filter")}),t.jsx(Q,{"data-cy":"filter-by-category-trigger",value:p.category,onChange:a=>i(a.target.value),fullWidth:!0,label:e("common.category"),disabled:o,children:s.map(a=>t.jsx(R,{value:a.value,"data-cy":`filter-by-category-${a.value}`,children:t.jsx(b,{children:t.jsx("span",{children:a.label})})},a.label))})]})}),r.length===0&&t.jsx(Z,{children:e("common.empty")}),r.length>0&&r.map(a=>t.jsx(ce,{log:a},a.id)),n.pageCount>1&&t.jsx(J,{page:n.page,count:n.pageCount,onChange:(a,l)=>c({page:l}),showFirstButton:!0,showLastButton:!0})]})}function je({scope:e,categories:r,showScope:o,scopeFormatter:n}){return t.jsx(ne,{scope:e,categories:r,showScope:o,scopeFormatter:n,children:t.jsx(le,{})})}const pe=W.div`
1
+ import{bl as N,r as u,j as t,E as I,t as B,C as M,Q as b,U as R,n as W,as as E,m as f,O as S,T as O,fu as z,H as U}from"./index-DzlR4ROA.js";import{c as F,v as D,p as G,s as C,M as H}from"./index-D0RT0rzU.js";import{E as Z}from"./index-po1Du4Ca.js";import{_ as K}from"./useLocalStorage-F8gidp1W.js";import{F as X,S as Q}from"./Select-C44-YCyD.js";import{I as q}from"./InputLabel-BOR0LpK5.js";import{P as J}from"./Pagination-BfGbGnHW.js";import"./LastPage-BmNCoOR7.js";const V=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,Y=/^[a-zA-Z]:\\/;function ee(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return Y.test(e)?!1:V.test(e)}const te=["http","https"],re=["nofollow"],se={};function ae(e){const r=e||se,o=r.protocols||te,n=F(r.test);return function(p){D(p,"element",function(s,i,c){if(s.tagName==="a"&&typeof s.properties.href=="string"&&n(s,i,c)){const a=s.properties.href;if(ee(a)?o.includes(a.slice(0,a.indexOf(":"))):a.startsWith("//")){const l=x(r.content,s),y=l&&!Array.isArray(l)?[l]:l,g=x(r.rel,s)||re,m=typeof g=="string"?G(g):g,d=x(r.target,s),v=x(r.properties,s);if(v&&Object.assign(s.properties,C(v)),m.length>0&&(s.properties.rel=[...m]),d&&(s.properties.target=d),y){const w=x(r.contentProperties,s)||{};s.children.push({type:"element",tagName:"span",properties:C(w),children:C(y)})}}}})}}function x(e,r){return typeof e=="function"?e(r):e}const k=u.createContext({}),{Provider:oe,Consumer:ve}=k;function ne({children:e,scope:r="",categories:o=[],showScope:n,scopeFormatter:p}){const{api:s,info:i}=N(),[c,a]=u.useState([]),[l,y]=u.useState({total:0,pageSize:20,pageCount:0,page:1}),[g,m]=u.useState(!1),[d,v]=K(`audit-log-category-${r}`,"all"),$=[{value:"all",label:"All",description:""},{value:"blocklet",label:"Blocklet Management",description:""},{value:"server",label:"Server Management",description:""},{value:"team",label:"Team Management",description:""},{value:"security",label:"Security",description:""},{value:"certificates",label:"Certificate Management",description:""},{value:"integrations",label:"Integration Management",description:""},{value:"gateway",label:"Gateway",description:""}].filter(j=>o.length?j.value==="all"||o.includes(j.value):!0),L=async({page:j=1,silent:_=!0}={})=>{if(!g){_||m(!0);try{const h=await s.getAuditLogs({input:{paging:{page:j},category:d==="all"?"":d,scope:r}});n&&(h.list||[]).forEach(A=>{A.scope!==i.did&&(A.link=`/blocklets/${A.scope}/components`)}),a(h.list),y(h.paging),m(!1)}catch(h){I.error(h.message),m(!1)}}};u.useEffect(()=>{L({page:1,silent:!1})},[]),u.useEffect(()=>{L({page:1,silent:!1})},[d]);const T={loading:g,fetch:L,filter:{category:d,scope:r},categories:$,setCategory:v,data:c,paging:l,showScope:n,scopeFormatter:p};return t.jsx(oe,{value:{auditLogs:T},children:e})}function P(){const{auditLogs:e}=u.useContext(k);return e}const ie=({log:e,info:r,inService:o})=>o?`${U.WELLKNOWN_BLOCKLET_ADMIN_PATH}/members?did=${e.actor.did}`:e.scope===r.did?`/team/members?did=${e.actor.did}`:`/blocklets/${e.scope}/members?did=${e.actor.did}`;function ce({log:e}){var i,c;const{inService:r,info:o}=N(),{showScope:n,scopeFormatter:p=a=>a}=P();if(!e.actor.did)return null;const s=!["blocklet",""].includes(e.actor.role);return t.jsxs(b,{className:"log-entry","data-cy":"log-entry",children:[t.jsx("div",{className:"log-author",children:s?t.jsx(E,{did:e.actor.did,size:36,shape:"circle"}):t.jsx(E,{did:e.actor.did,size:36})}),t.jsxs("div",{className:"log-body",children:[t.jsxs(f,{className:"log-header",color:"textSecondary",component:"p",gutterBottom:!0,display:"flex",alignItems:"center",children:[n&&t.jsx(S,{to:e.link,children:t.jsx(O,{style:{marginRight:8},children:p(e.scope)})}),s?t.jsxs(S,{to:ie({log:e,inService:r,info:o}),target:"_blank",children:[e.actor.fullName,e.actor.role?`(${e.actor.role})`:""]}):t.jsxs("span",{children:[e.actor.fullName,e.actor.role?`(${e.actor.role})`:""]})," ",t.jsx("span",{style:{margin:"0 4px"},children:"-"})," ",e.action]}),t.jsx(f,{className:"log-content",maxWidth:"lg",color:"textPrimary",component:"div","data-color-mode":"light",gutterBottom:!0,children:t.jsx(H,{source:e.content,rehypePlugins:[[ae,{target:"_blank"}]]})}),t.jsxs(b,{className:"log-meta",variant:"body2",children:[!!e.ip&&t.jsx(f,{component:"span",color:"textSecondary",children:`IP: ${e.ip}`}),!!((i=e.env.os)!=null&&i.name)&&t.jsxs(f,{component:"span",color:"textSecondary",children:[e.env.os.name,"(",e.env.os.version,")"]}),!!((c=e.env.browser)!=null&&c.name)&&t.jsxs(f,{component:"span",color:"textSecondary",children:[e.env.browser.name,"(",e.env.browser.version,")"]}),t.jsx(f,{component:"span",color:"textSecondary",children:t.jsx(z,{value:e.createdAt})})]})]})]})}function le(){const{t:e}=B(),{data:r,loading:o,paging:n,filter:p,categories:s,setCategory:i,fetch:c}=P();return o?t.jsx("div",{style:{textAlign:"center",marginTop:"50px"},children:t.jsx(M,{})}):t.jsxs(pe,{"data-cy":"audit-logs",children:[t.jsx(b,{className:"log-controls",children:t.jsxs(X,{style:{width:"240px"},variant:"outlined",children:[t.jsx(q,{children:e("common.filter")}),t.jsx(Q,{"data-cy":"filter-by-category-trigger",value:p.category,onChange:a=>i(a.target.value),fullWidth:!0,label:e("common.category"),disabled:o,children:s.map(a=>t.jsx(R,{value:a.value,"data-cy":`filter-by-category-${a.value}`,children:t.jsx(b,{children:t.jsx("span",{children:a.label})})},a.label))})]})}),r.length===0&&t.jsx(Z,{children:e("common.empty")}),r.length>0&&r.map(a=>t.jsx(ce,{log:a},a.id)),n.pageCount>1&&t.jsx(J,{page:n.page,count:n.pageCount,onChange:(a,l)=>c({page:l}),showFirstButton:!0,showLastButton:!0})]})}function je({scope:e,categories:r,showScope:o,scopeFormatter:n}){return t.jsx(ne,{scope:e,categories:r,showScope:o,scopeFormatter:n,children:t.jsx(le,{})})}const pe=W.div`
2
2
  .log-controls {
3
3
  display: flex;
4
4
  justify-content: space-between;
@@ -0,0 +1 @@
1
+ import{r as t}from"./index-DzlR4ROA.js";const e=t.createContext({});function r(){return t.useContext(e)}export{e as B,r as u};
@@ -1 +1 @@
1
- import{a as I}from"./codemirror.es-ZszZWF0R.js";import"./index-NkzSJ_BT.js";import"./index-Cwi3bFQC.js";var H=Object.defineProperty,L=(k,m)=>H(k,"name",{value:m,configurable:!0});function j(k,m){return m.forEach(function(e){e&&typeof e!="string"&&!Array.isArray(e)&&Object.keys(e).forEach(function(u){if(u!=="default"&&!(u in k)){var n=Object.getOwnPropertyDescriptor(e,u);Object.defineProperty(k,u,n.get?n:{enumerable:!0,get:function(){return e[u]}})}})}),Object.freeze(k)}L(j,"_mergeNamespaces");var F={exports:{}};(function(k,m){(function(e){e(I.exports)})(function(e){function u(n){return function(o,a){var r=a.line,s=o.getLine(r);function c(i){for(var l,v=a.ch,p=0;;){var b=v<=0?-1:s.lastIndexOf(i[0],v-1);if(b==-1){if(p==1)break;p=1,v=s.length;continue}if(p==1&&b<a.ch)break;if(l=o.getTokenTypeAt(e.Pos(r,b+1)),!/^(comment|string)/.test(l))return{ch:b+1,tokenType:l,pair:i};v=b-1}}L(c,"findOpening");function h(i){var l=1,v=o.lastLine(),p,b=i.ch,A;e:for(var d=r;d<=v;++d)for(var T=o.getLine(d),P=d==r?b:0;;){var O=T.indexOf(i.pair[0],P),_=T.indexOf(i.pair[1],P);if(O<0&&(O=T.length),_<0&&(_=T.length),P=Math.min(O,_),P==T.length)break;if(o.getTokenTypeAt(e.Pos(d,P+1))==i.tokenType){if(P==O)++l;else if(!--l){p=d,A=P;break e}}++P}return p==null||r==p?null:{from:e.Pos(r,b),to:e.Pos(p,A)}}L(h,"findRange");for(var f=[],t=0;t<n.length;t++){var g=c(n[t]);g&&f.push(g)}f.sort(function(i,l){return i.ch-l.ch});for(var t=0;t<f.length;t++){var y=h(f[t]);if(y)return y}return null}}L(u,"bracketFolding"),e.registerHelper("fold","brace",u([["{","}"],["[","]"]])),e.registerHelper("fold","brace-paren",u([["{","}"],["[","]"],["(",")"]])),e.registerHelper("fold","import",function(n,o){function a(t){if(t<n.firstLine()||t>n.lastLine())return null;var g=n.getTokenAt(e.Pos(t,1));if(/\S/.test(g.string)||(g=n.getTokenAt(e.Pos(t,g.end+1))),g.type!="keyword"||g.string!="import")return null;for(var y=t,i=Math.min(n.lastLine(),t+10);y<=i;++y){var l=n.getLine(y),v=l.indexOf(";");if(v!=-1)return{startCh:g.end,end:e.Pos(y,v)}}}L(a,"hasImport");var r=o.line,s=a(r),c;if(!s||a(r-1)||(c=a(r-2))&&c.end.line==r-1)return null;for(var h=s.end;;){var f=a(h.line+1);if(f==null)break;h=f.end}return{from:n.clipPos(e.Pos(r,s.startCh+1)),to:h}}),e.registerHelper("fold","include",function(n,o){function a(f){if(f<n.firstLine()||f>n.lastLine())return null;var t=n.getTokenAt(e.Pos(f,1));if(/\S/.test(t.string)||(t=n.getTokenAt(e.Pos(f,t.end+1))),t.type=="meta"&&t.string.slice(0,8)=="#include")return t.start+8}L(a,"hasInclude");var r=o.line,s=a(r);if(s==null||a(r-1)!=null)return null;for(var c=r;;){var h=a(c+1);if(h==null)break;++c}return{from:e.Pos(r,s+1),to:n.clipPos(e.Pos(c))}})})})();var S=F.exports,E=Object.freeze(j({__proto__:null,[Symbol.toStringTag]:"Module",default:S},[F.exports]));export{E as b};
1
+ import{a as I}from"./codemirror.es-DRCfXk0r.js";import"./index-D6q9zEjn.js";import"./index-DzlR4ROA.js";var H=Object.defineProperty,L=(k,m)=>H(k,"name",{value:m,configurable:!0});function j(k,m){return m.forEach(function(e){e&&typeof e!="string"&&!Array.isArray(e)&&Object.keys(e).forEach(function(u){if(u!=="default"&&!(u in k)){var n=Object.getOwnPropertyDescriptor(e,u);Object.defineProperty(k,u,n.get?n:{enumerable:!0,get:function(){return e[u]}})}})}),Object.freeze(k)}L(j,"_mergeNamespaces");var F={exports:{}};(function(k,m){(function(e){e(I.exports)})(function(e){function u(n){return function(o,a){var r=a.line,s=o.getLine(r);function c(i){for(var l,v=a.ch,p=0;;){var b=v<=0?-1:s.lastIndexOf(i[0],v-1);if(b==-1){if(p==1)break;p=1,v=s.length;continue}if(p==1&&b<a.ch)break;if(l=o.getTokenTypeAt(e.Pos(r,b+1)),!/^(comment|string)/.test(l))return{ch:b+1,tokenType:l,pair:i};v=b-1}}L(c,"findOpening");function h(i){var l=1,v=o.lastLine(),p,b=i.ch,A;e:for(var d=r;d<=v;++d)for(var T=o.getLine(d),P=d==r?b:0;;){var O=T.indexOf(i.pair[0],P),_=T.indexOf(i.pair[1],P);if(O<0&&(O=T.length),_<0&&(_=T.length),P=Math.min(O,_),P==T.length)break;if(o.getTokenTypeAt(e.Pos(d,P+1))==i.tokenType){if(P==O)++l;else if(!--l){p=d,A=P;break e}}++P}return p==null||r==p?null:{from:e.Pos(r,b),to:e.Pos(p,A)}}L(h,"findRange");for(var f=[],t=0;t<n.length;t++){var g=c(n[t]);g&&f.push(g)}f.sort(function(i,l){return i.ch-l.ch});for(var t=0;t<f.length;t++){var y=h(f[t]);if(y)return y}return null}}L(u,"bracketFolding"),e.registerHelper("fold","brace",u([["{","}"],["[","]"]])),e.registerHelper("fold","brace-paren",u([["{","}"],["[","]"],["(",")"]])),e.registerHelper("fold","import",function(n,o){function a(t){if(t<n.firstLine()||t>n.lastLine())return null;var g=n.getTokenAt(e.Pos(t,1));if(/\S/.test(g.string)||(g=n.getTokenAt(e.Pos(t,g.end+1))),g.type!="keyword"||g.string!="import")return null;for(var y=t,i=Math.min(n.lastLine(),t+10);y<=i;++y){var l=n.getLine(y),v=l.indexOf(";");if(v!=-1)return{startCh:g.end,end:e.Pos(y,v)}}}L(a,"hasImport");var r=o.line,s=a(r),c;if(!s||a(r-1)||(c=a(r-2))&&c.end.line==r-1)return null;for(var h=s.end;;){var f=a(h.line+1);if(f==null)break;h=f.end}return{from:n.clipPos(e.Pos(r,s.startCh+1)),to:h}}),e.registerHelper("fold","include",function(n,o){function a(f){if(f<n.firstLine()||f>n.lastLine())return null;var t=n.getTokenAt(e.Pos(f,1));if(/\S/.test(t.string)||(t=n.getTokenAt(e.Pos(f,t.end+1))),t.type=="meta"&&t.string.slice(0,8)=="#include")return t.start+8}L(a,"hasInclude");var r=o.line,s=a(r);if(s==null||a(r-1)!=null)return null;for(var c=r;;){var h=a(c+1);if(h==null)break;++c}return{from:e.Pos(r,s+1),to:n.clipPos(e.Pos(c))}})})})();var S=F.exports,E=Object.freeze(j({__proto__:null,[Symbol.toStringTag]:"Module",default:S},[F.exports]));export{E as b};
@@ -1 +1 @@
1
- import{bl as f,bF as x,gt as P,q as m,aB as $,H as j,gu as E,j as y,as as h,cd as R,P as r}from"./index-Cwi3bFQC.js";function A({blocklet:s,ancestors:u=[]}){var i;const a=f(),{inService:n}=a,o=x(s==null?void 0:s.status)||P(s==null?void 0:s.status),e=`?v=${(i=s==null?void 0:s.meta)==null?void 0:i.version}${o?"~":""}`;let t=n?`${m(E,j.WELLKNOWN_SERVICE_PATH_PREFIX,"/blocklet/logo-bundle")}${e}`:m(a.imgPrefix,"blocklet.png");if(s.source==="registry"&&s.deployedFrom&&s.meta.logo)t=`${m(s.deployedFrom,$(s.meta.bundleDid,s.meta.logo))}${e}`;else{const p=window.env.apiPrefix||"/",d=u.concat(s),g=n?d.slice(1):d;t=`${m(p,`/blocklet/logo-bundle${g.map(c=>`/${c.meta.did}`).join("")}`)}${e}`}return{logoUrl:t,inService:n}}function v({blocklet:s,style:u,size:a,ancestors:n,...o}){const e=f(),{logoUrl:t,inService:i}=A({blocklet:s,ancestors:n}),{variant:p}=o,d=i?()=>{}:c=>{c.target.src=`${e.imgPrefix}/blocklet.png`};let g=y.jsx("img",{src:t,onError:d,alt:s.meta.name,style:{width:a}});return s.meta.logo||(g=y.jsx(h,{did:s.meta.did||"",responsive:!0})),y.jsx(R,{variant:p||"square",style:Object.assign({backgroundColor:"transparent",width:a,height:a,borderRadius:10},u),...o,children:g})}v.propTypes={blocklet:r.object.isRequired,style:r.object,size:r.oneOfType([r.number,r.string]),ancestors:r.array};v.defaultProps={style:{},size:40,ancestors:[]};export{v as B};
1
+ import{bl as f,bF as x,gt as P,q as m,aB as $,H as j,gu as E,j as y,as as h,cd as R,P as r}from"./index-DzlR4ROA.js";function A({blocklet:s,ancestors:u=[]}){var i;const a=f(),{inService:n}=a,o=x(s==null?void 0:s.status)||P(s==null?void 0:s.status),e=`?v=${(i=s==null?void 0:s.meta)==null?void 0:i.version}${o?"~":""}`;let t=n?`${m(E,j.WELLKNOWN_SERVICE_PATH_PREFIX,"/blocklet/logo-bundle")}${e}`:m(a.imgPrefix,"blocklet.png");if(s.source==="registry"&&s.deployedFrom&&s.meta.logo)t=`${m(s.deployedFrom,$(s.meta.bundleDid,s.meta.logo))}${e}`;else{const p=window.env.apiPrefix||"/",d=u.concat(s),g=n?d.slice(1):d;t=`${m(p,`/blocklet/logo-bundle${g.map(c=>`/${c.meta.did}`).join("")}`)}${e}`}return{logoUrl:t,inService:n}}function v({blocklet:s,style:u,size:a,ancestors:n,...o}){const e=f(),{logoUrl:t,inService:i}=A({blocklet:s,ancestors:n}),{variant:p}=o,d=i?()=>{}:c=>{c.target.src=`${e.imgPrefix}/blocklet.png`};let g=y.jsx("img",{src:t,onError:d,alt:s.meta.name,style:{width:a}});return s.meta.logo||(g=y.jsx(h,{did:s.meta.did||"",responsive:!0})),y.jsx(R,{variant:p||"square",style:Object.assign({backgroundColor:"transparent",width:a,height:a,borderRadius:10},u),...o,children:g})}v.propTypes={blocklet:r.object.isRequired,style:r.object,size:r.oneOfType([r.number,r.string]),ancestors:r.array};v.defaultProps={style:{},size:40,ancestors:[]};export{v as B};
@@ -1,4 +1,4 @@
1
- import{j as u,b3 as H,m as L,Q,P as a,n as V,b2 as Z,r as j,aO as G,fh as J}from"./index-Cwi3bFQC.js";function z(t,e,n,s){return parseFloat((e-s*e/t+n).toFixed(2))}function K(t){[...t.querySelectorAll("*")].forEach(e=>t.removeChild(e))}function U(t){return t.value}function C(t,e){const n=document.createElementNS("http://www.w3.org/2000/svg",t);for(const s in e)n.setAttribute(s,e[s]);return n}function _(t,e,n){if(K(t),e.length<=1)return;n=n||{},typeof e[0]=="number"&&(e=e.map(o=>({value:o})));const{onmousemove:s}=n,{onmouseout:d}=n,R="interactive"in n?n.interactive:!!s,f=n.spotRadius||2,i=f*2,A=n.cursorWidth||2,r=parseFloat(t.attributes["stroke-width"].value),F=n.fetch||U,p=e.map(o=>F(o)),y=parseFloat(t.attributes.width.value)-i*2,x=parseFloat(t.attributes.height.value),S=x-r*2-i,g=Math.max(...p)===0?1:Math.max(...p),l=-1e3,w=p.length-1,N=y/w,k=[],O=z(g,S,r+f,p[0]);let E=`M${i} ${O}`;p.forEach((o,m)=>{const c=m*N+i,h=z(g,S,r+f,o);k.push(Object.assign({},e[m],{index:m,x:c,y:h})),E+=` L ${c} ${h}`});const W=C("path",{class:"sparkline--line",d:E,fill:"none"}),M=`${E} V ${x} L ${i} ${x} Z`,X=C("path",{class:"sparkline--fill",d:M,stroke:"none"});if(t.appendChild(X),t.appendChild(W),!R)return;const b=C("line",{class:"sparkline--cursor",x1:l,x2:l,y1:0,y2:x,"stroke-width":A}),$=C("circle",{class:"sparkline--spot",cx:l,cy:l,r:f});t.appendChild(b),t.appendChild($);const T=C("rect",{width:t.attributes.width.value,height:t.attributes.height.value,style:"fill: transparent; stroke: transparent",class:"sparkline--interaction-layer"});t.appendChild(T),T.addEventListener("mouseout",o=>{b.setAttribute("x1",l),b.setAttribute("x2",l),$.setAttribute("cx",l),d&&d(o)}),T.addEventListener("mousemove",o=>{const m=o.offsetX;let c=k.find(B=>B.x>=m);c||(c=k[w]);const h=k[k.indexOf(c)-1];let v,I;h?(I=h.x+(c.x-h.x)/2,v=m>=I?c:h):v=c;const{x:P}=v,{y:Y}=v;$.setAttribute("cx",P),$.setAttribute("cy",Y),b.setAttribute("x1",P),b.setAttribute("x2",P),s&&s(o,v)})}function q({style:t,title:e,value:n,graph:s,description:d}){return u.jsx(tt,{children:u.jsxs(H,{style:{...t},children:[u.jsx(L,{sx:{fontSize:14},color:"text.secondary",children:e}),u.jsx(L,{variant:"h5",component:"div",mt:1,children:n}),s,!!d&&u.jsx(Q,{display:"flex",sx:{fontSize:12,marginTop:3},color:"text.secondary",children:d})]})})}q.propTypes={style:a.object,title:a.node,value:a.node,graph:a.node,description:a.any};q.defaultProps={style:{},title:null,value:null,graph:null,description:null};const tt=V(Z)`
1
+ import{j as u,b3 as H,m as L,Q,P as a,n as V,b2 as Z,r as j,aO as G,fh as J}from"./index-DzlR4ROA.js";function z(t,e,n,s){return parseFloat((e-s*e/t+n).toFixed(2))}function K(t){[...t.querySelectorAll("*")].forEach(e=>t.removeChild(e))}function U(t){return t.value}function C(t,e){const n=document.createElementNS("http://www.w3.org/2000/svg",t);for(const s in e)n.setAttribute(s,e[s]);return n}function _(t,e,n){if(K(t),e.length<=1)return;n=n||{},typeof e[0]=="number"&&(e=e.map(o=>({value:o})));const{onmousemove:s}=n,{onmouseout:d}=n,R="interactive"in n?n.interactive:!!s,f=n.spotRadius||2,i=f*2,A=n.cursorWidth||2,r=parseFloat(t.attributes["stroke-width"].value),F=n.fetch||U,p=e.map(o=>F(o)),y=parseFloat(t.attributes.width.value)-i*2,x=parseFloat(t.attributes.height.value),S=x-r*2-i,g=Math.max(...p)===0?1:Math.max(...p),l=-1e3,w=p.length-1,N=y/w,k=[],O=z(g,S,r+f,p[0]);let E=`M${i} ${O}`;p.forEach((o,m)=>{const c=m*N+i,h=z(g,S,r+f,o);k.push(Object.assign({},e[m],{index:m,x:c,y:h})),E+=` L ${c} ${h}`});const W=C("path",{class:"sparkline--line",d:E,fill:"none"}),M=`${E} V ${x} L ${i} ${x} Z`,X=C("path",{class:"sparkline--fill",d:M,stroke:"none"});if(t.appendChild(X),t.appendChild(W),!R)return;const b=C("line",{class:"sparkline--cursor",x1:l,x2:l,y1:0,y2:x,"stroke-width":A}),$=C("circle",{class:"sparkline--spot",cx:l,cy:l,r:f});t.appendChild(b),t.appendChild($);const T=C("rect",{width:t.attributes.width.value,height:t.attributes.height.value,style:"fill: transparent; stroke: transparent",class:"sparkline--interaction-layer"});t.appendChild(T),T.addEventListener("mouseout",o=>{b.setAttribute("x1",l),b.setAttribute("x2",l),$.setAttribute("cx",l),d&&d(o)}),T.addEventListener("mousemove",o=>{const m=o.offsetX;let c=k.find(B=>B.x>=m);c||(c=k[w]);const h=k[k.indexOf(c)-1];let v,I;h?(I=h.x+(c.x-h.x)/2,v=m>=I?c:h):v=c;const{x:P}=v,{y:Y}=v;$.setAttribute("cx",P),$.setAttribute("cy",Y),b.setAttribute("x1",P),b.setAttribute("x2",P),s&&s(o,v)})}function q({style:t,title:e,value:n,graph:s,description:d}){return u.jsx(tt,{children:u.jsxs(H,{style:{...t},children:[u.jsx(L,{sx:{fontSize:14},color:"text.secondary",children:e}),u.jsx(L,{variant:"h5",component:"div",mt:1,children:n}),s,!!d&&u.jsx(Q,{display:"flex",sx:{fontSize:12,marginTop:3},color:"text.secondary",children:d})]})})}q.propTypes={style:a.object,title:a.node,value:a.node,graph:a.node,description:a.any};q.defaultProps={style:{},title:null,value:null,graph:null,description:null};const tt=V(Z)`
2
2
  .card-content {
3
3
  height: 150px;
4
4
  }
@@ -1 +1 @@
1
- import{r as i,f as s,j as t,d6 as r,P as c}from"./index-Cwi3bFQC.js";function n({children:p,...e}){const{t:o}=i.useContext(s);return t.jsx(r,{tip:o("common.copyTip"),copiedTip:o("common.copiedTip"),...e,children:p})}n.propTypes={children:c.any.isRequired};export{n as C};
1
+ import{r as i,f as s,j as t,d6 as r,P as c}from"./index-DzlR4ROA.js";function n({children:p,...e}){const{t:o}=i.useContext(s);return t.jsx(r,{tip:o("common.copyTip"),copiedTip:o("common.copiedTip"),...e,children:p})}n.propTypes={children:c.any.isRequired};export{n as C};
@@ -1,2 +1,2 @@
1
- import{a as G}from"./codemirror.es-ZszZWF0R.js";import"./index-NkzSJ_BT.js";import"./index-Cwi3bFQC.js";var H=Object.defineProperty,h=(O,B)=>H(O,"name",{value:B,configurable:!0});function D(O,B){return B.forEach(function(n){n&&typeof n!="string"&&!Array.isArray(n)&&Object.keys(n).forEach(function(d){if(d!=="default"&&!(d in O)){var o=Object.getOwnPropertyDescriptor(n,d);Object.defineProperty(O,d,o.get?o:{enumerable:!0,get:function(){return n[d]}})}})}),Object.freeze(O)}h(D,"_mergeNamespaces");var q={exports:{}};(function(O,B){(function(n){n(G.exports)})(function(n){var d={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},o=n.Pos;n.defineOption("autoCloseBrackets",!1,function(e,t,a){a&&a!=n.Init&&(e.removeKeyMap(y),e.state.closeBrackets=null),t&&(_(b(t,"pairs")),e.state.closeBrackets=t,e.addKeyMap(y))});function b(e,t){return t=="pairs"&&typeof e=="string"?e:typeof e=="object"&&e[t]!=null?e[t]:d[t]}h(b,"getOption");var y={Backspace:$,Enter:z};function _(e){for(var t=0;t<e.length;t++){var a=e.charAt(t),i="'"+a+"'";y[i]||(y[i]=I(a))}}h(_,"ensureBound"),_(d.pairs+"`");function I(e){return function(t){return K(t,e)}}h(I,"handler");function x(e){var t=e.state.closeBrackets;if(!t||t.override)return t;var a=e.getModeAt(e.getCursor());return a.closeBrackets||t}h(x,"getConfig");function $(e){var t=x(e);if(!t||e.getOption("disableInput"))return n.Pass;for(var a=b(t,"pairs"),i=e.listSelections(),r=0;r<i.length;r++){if(!i[r].empty())return n.Pass;var f=j(e,i[r].head);if(!f||a.indexOf(f)%2!=0)return n.Pass}for(var r=i.length-1;r>=0;r--){var l=i[r].head;e.replaceRange("",o(l.line,l.ch-1),o(l.line,l.ch+1),"+delete")}}h($,"handleBackspace");function z(e){var t=x(e),a=t&&b(t,"explode");if(!a||e.getOption("disableInput"))return n.Pass;for(var i=e.listSelections(),r=0;r<i.length;r++){if(!i[r].empty())return n.Pass;var f=j(e,i[r].head);if(!f||a.indexOf(f)%2!=0)return n.Pass}e.operation(function(){var l=e.lineSeparator()||`
1
+ import{a as G}from"./codemirror.es-DRCfXk0r.js";import"./index-D6q9zEjn.js";import"./index-DzlR4ROA.js";var H=Object.defineProperty,h=(O,B)=>H(O,"name",{value:B,configurable:!0});function D(O,B){return B.forEach(function(n){n&&typeof n!="string"&&!Array.isArray(n)&&Object.keys(n).forEach(function(d){if(d!=="default"&&!(d in O)){var o=Object.getOwnPropertyDescriptor(n,d);Object.defineProperty(O,d,o.get?o:{enumerable:!0,get:function(){return n[d]}})}})}),Object.freeze(O)}h(D,"_mergeNamespaces");var q={exports:{}};(function(O,B){(function(n){n(G.exports)})(function(n){var d={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},o=n.Pos;n.defineOption("autoCloseBrackets",!1,function(e,t,a){a&&a!=n.Init&&(e.removeKeyMap(y),e.state.closeBrackets=null),t&&(_(b(t,"pairs")),e.state.closeBrackets=t,e.addKeyMap(y))});function b(e,t){return t=="pairs"&&typeof e=="string"?e:typeof e=="object"&&e[t]!=null?e[t]:d[t]}h(b,"getOption");var y={Backspace:$,Enter:z};function _(e){for(var t=0;t<e.length;t++){var a=e.charAt(t),i="'"+a+"'";y[i]||(y[i]=I(a))}}h(_,"ensureBound"),_(d.pairs+"`");function I(e){return function(t){return K(t,e)}}h(I,"handler");function x(e){var t=e.state.closeBrackets;if(!t||t.override)return t;var a=e.getModeAt(e.getCursor());return a.closeBrackets||t}h(x,"getConfig");function $(e){var t=x(e);if(!t||e.getOption("disableInput"))return n.Pass;for(var a=b(t,"pairs"),i=e.listSelections(),r=0;r<i.length;r++){if(!i[r].empty())return n.Pass;var f=j(e,i[r].head);if(!f||a.indexOf(f)%2!=0)return n.Pass}for(var r=i.length-1;r>=0;r--){var l=i[r].head;e.replaceRange("",o(l.line,l.ch-1),o(l.line,l.ch+1),"+delete")}}h($,"handleBackspace");function z(e){var t=x(e),a=t&&b(t,"explode");if(!a||e.getOption("disableInput"))return n.Pass;for(var i=e.listSelections(),r=0;r<i.length;r++){if(!i[r].empty())return n.Pass;var f=j(e,i[r].head);if(!f||a.indexOf(f)%2!=0)return n.Pass}e.operation(function(){var l=e.lineSeparator()||`
2
2
  `;e.replaceSelection(l+l,null),P(e,-1),i=e.listSelections();for(var g=0;g<i.length;g++){var k=i[g].head.line;e.indentLine(k,null,!0),e.indentLine(k+1,null,!0)}})}h(z,"handleEnter");function P(e,t){for(var a=[],i=e.listSelections(),r=0,f=0;f<i.length;f++){var l=i[f];l.head==e.getCursor()&&(r=f);var g=l.head.ch||t>0?{line:l.head.line,ch:l.head.ch+t}:{line:l.head.line-1};a.push({anchor:g,head:g})}e.setSelections(a,r)}h(P,"moveSel");function F(e){var t=n.cmpPos(e.anchor,e.head)>0;return{anchor:new o(e.anchor.line,e.anchor.ch+(t?-1:1)),head:new o(e.head.line,e.head.ch+(t?1:-1))}}h(F,"contractSelection");function K(e,t){var a=x(e);if(!a||e.getOption("disableInput"))return n.Pass;var i=b(a,"pairs"),r=i.indexOf(t);if(r==-1)return n.Pass;for(var f=b(a,"closeBefore"),l=b(a,"triples"),g=i.charAt(r+1)==t,k=e.listSelections(),R=r%2==0,c,E=0;E<k.length;E++){var N=k[E],s=N.head,p,A=e.getRange(s,o(s.line,s.ch+1));if(R&&!N.empty())p="surround";else if((g||!R)&&A==t)g&&L(e,s)?p="both":l.indexOf(t)>=0&&e.getRange(s,o(s.line,s.ch+3))==t+t+t?p="skipThree":p="skip";else if(g&&s.ch>1&&l.indexOf(t)>=0&&e.getRange(o(s.line,s.ch-2),s)==t+t){if(s.ch>2&&/\bstring/.test(e.getTokenTypeAt(o(s.line,s.ch-2))))return n.Pass;p="addFour"}else if(g){var W=s.ch==0?" ":e.getRange(o(s.line,s.ch-1),s);if(!n.isWordChar(A)&&W!=t&&!n.isWordChar(W))p="both";else return n.Pass}else if(R&&(A.length===0||/\s/.test(A)||f.indexOf(A)>-1))p="both";else return n.Pass;if(!c)c=p;else if(c!=p)return n.Pass}var S=r%2?i.charAt(r-1):t,w=r%2?t:i.charAt(r+1);e.operation(function(){if(c=="skip")P(e,1);else if(c=="skipThree")P(e,3);else if(c=="surround"){for(var u=e.getSelections(),v=0;v<u.length;v++)u[v]=S+u[v]+w;e.replaceSelections(u,"around"),u=e.listSelections().slice();for(var v=0;v<u.length;v++)u[v]=F(u[v]);e.setSelections(u)}else c=="both"?(e.replaceSelection(S+w,null),e.triggerElectric(S+w),P(e,-1)):c=="addFour"&&(e.replaceSelection(S+S+S+S,"before"),P(e,1))})}h(K,"handleChar");function j(e,t){var a=e.getRange(o(t.line,t.ch-1),o(t.line,t.ch+1));return a.length==2?a:null}h(j,"charsAround");function L(e,t){var a=e.getTokenAt(o(t.line,t.ch+1));return/\bstring/.test(a.type)&&a.start==t.ch&&(t.ch==0||!/\bstring/.test(e.getTokenTypeAt(t)))}h(L,"stringStartsAfter")})})();var J=q.exports,V=Object.freeze(D({__proto__:null,[Symbol.toStringTag]:"Module",default:J},[q.exports]));export{V as c};
@@ -1,4 +1,4 @@
1
- import{c as su}from"./index-NkzSJ_BT.js";import"./index-Cwi3bFQC.js";var uu=Object.defineProperty,u=(ht,ei)=>uu(ht,"name",{value:ei,configurable:!0});function Ks(ht,ei){return ei.forEach(function(z){z&&typeof z!="string"&&!Array.isArray(z)&&Object.keys(z).forEach(function(Ne){if(Ne!=="default"&&!(Ne in ht)){var Ce=Object.getOwnPropertyDescriptor(z,Ne);Object.defineProperty(ht,Ne,Ce.get?Ce:{enumerable:!0,get:function(){return z[Ne]}})}})}),Object.freeze(ht)}u(Ks,"_mergeNamespaces");var Al={exports:{}};(function(ht,ei){(function(z,Ne){ht.exports=Ne()})(su,function(){var z=navigator.userAgent,Ne=navigator.platform,Ce=/gecko\/\d/i.test(z),Ol=/MSIE \d/.test(z),Nl=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(z),ti=/Edge\/(\d+)/.exec(z),N=Ol||Nl||ti,I=N&&(Ol?document.documentMode||6:+(ti||Nl)[1]),oe=!ti&&/WebKit\//.test(z),_s=oe&&/Qt\/\d+\.\d+/.test(z),ri=!ti&&/Chrome\//.test(z),Te=/Opera\//.test(z),ii=/Apple Computer/.test(navigator.vendor),Xs=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(z),Ys=/PhantomJS/.test(z),hr=ii&&(/Mobile\/\w+/.test(z)||navigator.maxTouchPoints>2),ni=/Android/.test(z),dr=hr||ni||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(z),Se=hr||/Mac/.test(Ne),qs=/\bCrOS\b/.test(z),Zs=/win/i.test(Ne),dt=Te&&z.match(/Version\/(\d*\.\d*)/);dt&&(dt=Number(dt[1])),dt&&dt>=15&&(Te=!1,oe=!0);var Wl=Se&&(_s||Te&&(dt==null||dt<12.11)),gn=Ce||N&&I>=9;function ct(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}u(ct,"classTest");var pt=u(function(e,t){var i=e.className,r=ct(t).exec(i);if(r){var n=i.slice(r.index+r[0].length);e.className=i.slice(0,r.index)+(n?r[1]+n:"")}},"rmClass");function Be(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}u(Be,"removeChildren");function ve(e,t){return Be(e).appendChild(t)}u(ve,"removeChildrenAndAdd");function T(e,t,i,r){var n=document.createElement(e);if(i&&(n.className=i),r&&(n.style.cssText=r),typeof t=="string")n.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)n.appendChild(t[o]);return n}u(T,"elt");function vt(e,t,i,r){var n=T(e,t,i,r);return n.setAttribute("role","presentation"),n}u(vt,"eltP");var gt;document.createRange?gt=u(function(e,t,i,r){var n=document.createRange();return n.setEnd(r||e,i),n.setStart(e,t),n},"range"):gt=u(function(e,t,i){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch{return r}return r.collapse(!0),r.moveEnd("character",i),r.moveStart("character",t),r},"range");function Re(e,t){if(t.nodeType==3&&(t=t.parentNode),e.contains)return e.contains(t);do if(t.nodeType==11&&(t=t.host),t==e)return!0;while(t=t.parentNode)}u(Re,"contains");function ye(){var e;try{e=document.activeElement}catch{e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}u(ye,"activeElt");function Je(e,t){var i=e.className;ct(t).test(i)||(e.className+=(i?" ":"")+t)}u(Je,"addClass");function oi(e,t){for(var i=e.split(" "),r=0;r<i.length;r++)i[r]&&!ct(i[r]).test(t)&&(t+=" "+i[r]);return t}u(oi,"joinClasses");var cr=u(function(e){e.select()},"selectInput");hr?cr=u(function(e){e.selectionStart=0,e.selectionEnd=e.value.length},"selectInput"):N&&(cr=u(function(e){try{e.select()}catch{}},"selectInput"));function li(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}u(li,"bind");function je(e,t,i){t||(t={});for(var r in e)e.hasOwnProperty(r)&&(i!==!1||!t.hasOwnProperty(r))&&(t[r]=e[r]);return t}u(je,"copyObj");function me(e,t,i,r,n){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var o=r||0,l=n||0;;){var a=e.indexOf(" ",o);if(a<0||a>=t)return l+(t-o);l+=a-o,l+=i-l%i,o=a+1}}u(me,"countColumn");var Ve=u(function(){this.id=null,this.f=null,this.time=0,this.handler=li(this.onTimeout,this)},"Delayed");Ve.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},Ve.prototype.set=function(e,t){this.f=t;var i=+new Date+e;(!this.id||i<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=i)};function ee(e,t){for(var i=0;i<e.length;++i)if(e[i]==t)return i;return-1}u(ee,"indexOf");var Hl=50,ai={toString:function(){return"CodeMirror.Pass"}},We={scroll:!1},yn={origin:"*mouse"},pr={origin:"+move"};function si(e,t,i){for(var r=0,n=0;;){var o=e.indexOf(" ",r);o==-1&&(o=e.length);var l=o-r;if(o==e.length||n+l>=t)return r+Math.min(l,t-n);if(n+=o-r,n+=i-n%i,r=o+1,n>=t)return r}}u(si,"findColumn");var ui=[""];function fi(e){for(;ui.length<=e;)ui.push(W(ui)+" ");return ui[e]}u(fi,"spaceStr");function W(e){return e[e.length-1]}u(W,"lst");function vr(e,t){for(var i=[],r=0;r<e.length;r++)i[r]=t(e[r],r);return i}u(vr,"map");function Pl(e,t,i){for(var r=0,n=i(t);r<e.length&&i(e[r])<=n;)r++;e.splice(r,0,t)}u(Pl,"insertSorted");function mn(){}u(mn,"nothing");function bn(e,t){var i;return Object.create?i=Object.create(e):(mn.prototype=e,i=new mn),t&&je(t,i),i}u(bn,"createObj");var Qs=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function hi(e){return/\w/.test(e)||e>"€"&&(e.toUpperCase()!=e.toLowerCase()||Qs.test(e))}u(hi,"isWordCharBasic");function gr(e,t){return t?t.source.indexOf("\\w")>-1&&hi(e)?!0:t.test(e):hi(e)}u(gr,"isWordChar");function xn(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}u(xn,"isEmpty");var Js=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function di(e){return e.charCodeAt(0)>=768&&Js.test(e)}u(di,"isExtendingChar");function Cn(e,t,i){for(;(i<0?t>0:t<e.length)&&di(e.charAt(t));)t+=i;return t}u(Cn,"skipExtendingChars");function Et(e,t,i){for(var r=t>i?-1:1;;){if(t==i)return t;var n=(t+i)/2,o=r<0?Math.ceil(n):Math.floor(n);if(o==t)return e(o)?t:i;e(o)?i=o:t=o+r}}u(Et,"findFirst");function Fl(e,t,i,r){if(!e)return r(t,i,"ltr",0);for(var n=!1,o=0;o<e.length;++o){var l=e[o];(l.from<i&&l.to>t||t==i&&l.to==t)&&(r(Math.max(l.from,t),Math.min(l.to,i),l.level==1?"rtl":"ltr",o),n=!0)}n||r(t,i,"ltr")}u(Fl,"iterateBidiSections");var yr=null;function It(e,t,i){var r;yr=null;for(var n=0;n<e.length;++n){var o=e[n];if(o.from<t&&o.to>t)return n;o.to==t&&(o.from!=o.to&&i=="before"?r=n:yr=n),o.from==t&&(o.from!=o.to&&i!="before"?r=n:yr=n)}return r??yr}u(It,"getBidiPartAt");var js=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function i(f){return f<=247?e.charAt(f):1424<=f&&f<=1524?"R":1536<=f&&f<=1785?t.charAt(f-1536):1774<=f&&f<=2220?"r":8192<=f&&f<=8203?"w":f==8204?"b":"L"}u(i,"charType");var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,n=/[stwN]/,o=/[LRr]/,l=/[Lb1n]/,a=/[1n]/;function s(f,h,d){this.level=f,this.from=h,this.to=d}return u(s,"BidiSpan"),function(f,h){var d=h=="ltr"?"L":"R";if(f.length==0||h=="ltr"&&!r.test(f))return!1;for(var p=f.length,c=[],v=0;v<p;++v)c.push(i(f.charCodeAt(v)));for(var g=0,m=d;g<p;++g){var b=c[g];b=="m"?c[g]=m:m=b}for(var C=0,x=d;C<p;++C){var S=c[C];S=="1"&&x=="r"?c[C]="n":o.test(S)&&(x=S,S=="r"&&(c[C]="R"))}for(var k=1,L=c[0];k<p-1;++k){var O=c[k];O=="+"&&L=="1"&&c[k+1]=="1"?c[k]="1":O==","&&L==c[k+1]&&(L=="1"||L=="n")&&(c[k]=L),L=O}for(var E=0;E<p;++E){var V=c[E];if(V==",")c[E]="N";else if(V=="%"){var R=void 0;for(R=E+1;R<p&&c[R]=="%";++R);for(var he=E&&c[E-1]=="!"||R<p&&c[R]=="1"?"1":"N",de=E;de<R;++de)c[de]=he;E=R-1}}for(var X=0,ce=d;X<p;++X){var re=c[X];ce=="L"&&re=="1"?c[X]="L":o.test(re)&&(ce=re)}for(var j=0;j<p;++j)if(n.test(c[j])){var Y=void 0;for(Y=j+1;Y<p&&n.test(c[Y]);++Y);for(var G=(j?c[j-1]:d)=="L",pe=(Y<p?c[Y]:d)=="L",ur=G==pe?G?"L":"R":d,ft=j;ft<Y;++ft)c[ft]=ur;j=Y-1}for(var ne=[],Ie,$=0;$<p;)if(l.test(c[$])){var Ml=$;for(++$;$<p&&l.test(c[$]);++$);ne.push(new s(0,Ml,$))}else{var Qe=$,Pt=ne.length,Ft=h=="rtl"?1:0;for(++$;$<p&&c[$]!="L";++$);for(var se=Qe;se<$;)if(a.test(c[se])){Qe<se&&(ne.splice(Pt,0,new s(1,Qe,se)),Pt+=Ft);var fr=se;for(++se;se<$&&a.test(c[se]);++se);ne.splice(Pt,0,new s(2,fr,se)),Pt+=Ft,Qe=se}else++se;Qe<$&&ne.splice(Pt,0,new s(1,Qe,$))}return h=="ltr"&&(ne[0].level==1&&(Ie=f.match(/^\s+/))&&(ne[0].from=Ie[0].length,ne.unshift(new s(0,0,Ie[0].length))),W(ne).level==1&&(Ie=f.match(/\s+$/))&&(W(ne).to-=Ie[0].length,ne.push(new s(0,p-Ie[0].length,p)))),h=="rtl"?ne.reverse():ne}}();function He(e,t){var i=e.order;return i==null&&(i=e.order=js(e.text,t)),i}u(He,"getOrder");var El=[],M=u(function(e,t,i){if(e.addEventListener)e.addEventListener(t,i,!1);else if(e.attachEvent)e.attachEvent("on"+t,i);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||El).concat(i)}},"on");function ci(e,t){return e._handlers&&e._handlers[t]||El}u(ci,"getHandlers");function ge(e,t,i){if(e.removeEventListener)e.removeEventListener(t,i,!1);else if(e.detachEvent)e.detachEvent("on"+t,i);else{var r=e._handlers,n=r&&r[t];if(n){var o=ee(n,i);o>-1&&(r[t]=n.slice(0,o).concat(n.slice(o+1)))}}}u(ge,"off");function U(e,t){var i=ci(e,t);if(i.length)for(var r=Array.prototype.slice.call(arguments,2),n=0;n<i.length;++n)i[n].apply(null,r)}u(U,"signal");function q(e,t,i){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),U(e,i||t.type,e,t),pi(t)||t.codemirrorIgnore}u(q,"signalDOMEvent");function Sn(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var i=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)ee(i,t[r])==-1&&i.push(t[r])}u(Sn,"signalCursorActivity");function be(e,t){return ci(e,t).length>0}u(be,"hasHandler");function yt(e){e.prototype.on=function(t,i){M(this,t,i)},e.prototype.off=function(t,i){ge(this,t,i)}}u(yt,"eventMixin");function le(e){e.preventDefault?e.preventDefault():e.returnValue=!1}u(le,"e_preventDefault");function wn(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}u(wn,"e_stopPropagation");function pi(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}u(pi,"e_defaultPrevented");function Bt(e){le(e),wn(e)}u(Bt,"e_stop");function vi(e){return e.target||e.srcElement}u(vi,"e_target");function Ln(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),Se&&e.ctrlKey&&t==1&&(t=3),t}u(Ln,"e_button");var Vs=function(){if(N&&I<9)return!1;var e=T("div");return"draggable"in e||"dragDrop"in e}(),kn;function Il(e){if(kn==null){var t=T("span","​");ve(e,T("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(kn=t.offsetWidth<=1&&t.offsetHeight>2&&!(N&&I<8))}var i=kn?T("span","​"):T("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}u(Il,"zeroWidthElement");var Tn;function Bl(e){if(Tn!=null)return Tn;var t=ve(e,document.createTextNode("AخA")),i=gt(t,0,1).getBoundingClientRect(),r=gt(t,1,2).getBoundingClientRect();return Be(e),!i||i.left==i.right?!1:Tn=r.right-i.right<3}u(Bl,"hasBadBidiRects");var Mn=`
1
+ import{c as su}from"./index-D6q9zEjn.js";import"./index-DzlR4ROA.js";var uu=Object.defineProperty,u=(ht,ei)=>uu(ht,"name",{value:ei,configurable:!0});function Ks(ht,ei){return ei.forEach(function(z){z&&typeof z!="string"&&!Array.isArray(z)&&Object.keys(z).forEach(function(Ne){if(Ne!=="default"&&!(Ne in ht)){var Ce=Object.getOwnPropertyDescriptor(z,Ne);Object.defineProperty(ht,Ne,Ce.get?Ce:{enumerable:!0,get:function(){return z[Ne]}})}})}),Object.freeze(ht)}u(Ks,"_mergeNamespaces");var Al={exports:{}};(function(ht,ei){(function(z,Ne){ht.exports=Ne()})(su,function(){var z=navigator.userAgent,Ne=navigator.platform,Ce=/gecko\/\d/i.test(z),Ol=/MSIE \d/.test(z),Nl=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(z),ti=/Edge\/(\d+)/.exec(z),N=Ol||Nl||ti,I=N&&(Ol?document.documentMode||6:+(ti||Nl)[1]),oe=!ti&&/WebKit\//.test(z),_s=oe&&/Qt\/\d+\.\d+/.test(z),ri=!ti&&/Chrome\//.test(z),Te=/Opera\//.test(z),ii=/Apple Computer/.test(navigator.vendor),Xs=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(z),Ys=/PhantomJS/.test(z),hr=ii&&(/Mobile\/\w+/.test(z)||navigator.maxTouchPoints>2),ni=/Android/.test(z),dr=hr||ni||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(z),Se=hr||/Mac/.test(Ne),qs=/\bCrOS\b/.test(z),Zs=/win/i.test(Ne),dt=Te&&z.match(/Version\/(\d*\.\d*)/);dt&&(dt=Number(dt[1])),dt&&dt>=15&&(Te=!1,oe=!0);var Wl=Se&&(_s||Te&&(dt==null||dt<12.11)),gn=Ce||N&&I>=9;function ct(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}u(ct,"classTest");var pt=u(function(e,t){var i=e.className,r=ct(t).exec(i);if(r){var n=i.slice(r.index+r[0].length);e.className=i.slice(0,r.index)+(n?r[1]+n:"")}},"rmClass");function Be(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}u(Be,"removeChildren");function ve(e,t){return Be(e).appendChild(t)}u(ve,"removeChildrenAndAdd");function T(e,t,i,r){var n=document.createElement(e);if(i&&(n.className=i),r&&(n.style.cssText=r),typeof t=="string")n.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)n.appendChild(t[o]);return n}u(T,"elt");function vt(e,t,i,r){var n=T(e,t,i,r);return n.setAttribute("role","presentation"),n}u(vt,"eltP");var gt;document.createRange?gt=u(function(e,t,i,r){var n=document.createRange();return n.setEnd(r||e,i),n.setStart(e,t),n},"range"):gt=u(function(e,t,i){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch{return r}return r.collapse(!0),r.moveEnd("character",i),r.moveStart("character",t),r},"range");function Re(e,t){if(t.nodeType==3&&(t=t.parentNode),e.contains)return e.contains(t);do if(t.nodeType==11&&(t=t.host),t==e)return!0;while(t=t.parentNode)}u(Re,"contains");function ye(){var e;try{e=document.activeElement}catch{e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}u(ye,"activeElt");function Je(e,t){var i=e.className;ct(t).test(i)||(e.className+=(i?" ":"")+t)}u(Je,"addClass");function oi(e,t){for(var i=e.split(" "),r=0;r<i.length;r++)i[r]&&!ct(i[r]).test(t)&&(t+=" "+i[r]);return t}u(oi,"joinClasses");var cr=u(function(e){e.select()},"selectInput");hr?cr=u(function(e){e.selectionStart=0,e.selectionEnd=e.value.length},"selectInput"):N&&(cr=u(function(e){try{e.select()}catch{}},"selectInput"));function li(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}u(li,"bind");function je(e,t,i){t||(t={});for(var r in e)e.hasOwnProperty(r)&&(i!==!1||!t.hasOwnProperty(r))&&(t[r]=e[r]);return t}u(je,"copyObj");function me(e,t,i,r,n){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var o=r||0,l=n||0;;){var a=e.indexOf(" ",o);if(a<0||a>=t)return l+(t-o);l+=a-o,l+=i-l%i,o=a+1}}u(me,"countColumn");var Ve=u(function(){this.id=null,this.f=null,this.time=0,this.handler=li(this.onTimeout,this)},"Delayed");Ve.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},Ve.prototype.set=function(e,t){this.f=t;var i=+new Date+e;(!this.id||i<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=i)};function ee(e,t){for(var i=0;i<e.length;++i)if(e[i]==t)return i;return-1}u(ee,"indexOf");var Hl=50,ai={toString:function(){return"CodeMirror.Pass"}},We={scroll:!1},yn={origin:"*mouse"},pr={origin:"+move"};function si(e,t,i){for(var r=0,n=0;;){var o=e.indexOf(" ",r);o==-1&&(o=e.length);var l=o-r;if(o==e.length||n+l>=t)return r+Math.min(l,t-n);if(n+=o-r,n+=i-n%i,r=o+1,n>=t)return r}}u(si,"findColumn");var ui=[""];function fi(e){for(;ui.length<=e;)ui.push(W(ui)+" ");return ui[e]}u(fi,"spaceStr");function W(e){return e[e.length-1]}u(W,"lst");function vr(e,t){for(var i=[],r=0;r<e.length;r++)i[r]=t(e[r],r);return i}u(vr,"map");function Pl(e,t,i){for(var r=0,n=i(t);r<e.length&&i(e[r])<=n;)r++;e.splice(r,0,t)}u(Pl,"insertSorted");function mn(){}u(mn,"nothing");function bn(e,t){var i;return Object.create?i=Object.create(e):(mn.prototype=e,i=new mn),t&&je(t,i),i}u(bn,"createObj");var Qs=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function hi(e){return/\w/.test(e)||e>"€"&&(e.toUpperCase()!=e.toLowerCase()||Qs.test(e))}u(hi,"isWordCharBasic");function gr(e,t){return t?t.source.indexOf("\\w")>-1&&hi(e)?!0:t.test(e):hi(e)}u(gr,"isWordChar");function xn(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}u(xn,"isEmpty");var Js=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function di(e){return e.charCodeAt(0)>=768&&Js.test(e)}u(di,"isExtendingChar");function Cn(e,t,i){for(;(i<0?t>0:t<e.length)&&di(e.charAt(t));)t+=i;return t}u(Cn,"skipExtendingChars");function Et(e,t,i){for(var r=t>i?-1:1;;){if(t==i)return t;var n=(t+i)/2,o=r<0?Math.ceil(n):Math.floor(n);if(o==t)return e(o)?t:i;e(o)?i=o:t=o+r}}u(Et,"findFirst");function Fl(e,t,i,r){if(!e)return r(t,i,"ltr",0);for(var n=!1,o=0;o<e.length;++o){var l=e[o];(l.from<i&&l.to>t||t==i&&l.to==t)&&(r(Math.max(l.from,t),Math.min(l.to,i),l.level==1?"rtl":"ltr",o),n=!0)}n||r(t,i,"ltr")}u(Fl,"iterateBidiSections");var yr=null;function It(e,t,i){var r;yr=null;for(var n=0;n<e.length;++n){var o=e[n];if(o.from<t&&o.to>t)return n;o.to==t&&(o.from!=o.to&&i=="before"?r=n:yr=n),o.from==t&&(o.from!=o.to&&i!="before"?r=n:yr=n)}return r??yr}u(It,"getBidiPartAt");var js=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function i(f){return f<=247?e.charAt(f):1424<=f&&f<=1524?"R":1536<=f&&f<=1785?t.charAt(f-1536):1774<=f&&f<=2220?"r":8192<=f&&f<=8203?"w":f==8204?"b":"L"}u(i,"charType");var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,n=/[stwN]/,o=/[LRr]/,l=/[Lb1n]/,a=/[1n]/;function s(f,h,d){this.level=f,this.from=h,this.to=d}return u(s,"BidiSpan"),function(f,h){var d=h=="ltr"?"L":"R";if(f.length==0||h=="ltr"&&!r.test(f))return!1;for(var p=f.length,c=[],v=0;v<p;++v)c.push(i(f.charCodeAt(v)));for(var g=0,m=d;g<p;++g){var b=c[g];b=="m"?c[g]=m:m=b}for(var C=0,x=d;C<p;++C){var S=c[C];S=="1"&&x=="r"?c[C]="n":o.test(S)&&(x=S,S=="r"&&(c[C]="R"))}for(var k=1,L=c[0];k<p-1;++k){var O=c[k];O=="+"&&L=="1"&&c[k+1]=="1"?c[k]="1":O==","&&L==c[k+1]&&(L=="1"||L=="n")&&(c[k]=L),L=O}for(var E=0;E<p;++E){var V=c[E];if(V==",")c[E]="N";else if(V=="%"){var R=void 0;for(R=E+1;R<p&&c[R]=="%";++R);for(var he=E&&c[E-1]=="!"||R<p&&c[R]=="1"?"1":"N",de=E;de<R;++de)c[de]=he;E=R-1}}for(var X=0,ce=d;X<p;++X){var re=c[X];ce=="L"&&re=="1"?c[X]="L":o.test(re)&&(ce=re)}for(var j=0;j<p;++j)if(n.test(c[j])){var Y=void 0;for(Y=j+1;Y<p&&n.test(c[Y]);++Y);for(var G=(j?c[j-1]:d)=="L",pe=(Y<p?c[Y]:d)=="L",ur=G==pe?G?"L":"R":d,ft=j;ft<Y;++ft)c[ft]=ur;j=Y-1}for(var ne=[],Ie,$=0;$<p;)if(l.test(c[$])){var Ml=$;for(++$;$<p&&l.test(c[$]);++$);ne.push(new s(0,Ml,$))}else{var Qe=$,Pt=ne.length,Ft=h=="rtl"?1:0;for(++$;$<p&&c[$]!="L";++$);for(var se=Qe;se<$;)if(a.test(c[se])){Qe<se&&(ne.splice(Pt,0,new s(1,Qe,se)),Pt+=Ft);var fr=se;for(++se;se<$&&a.test(c[se]);++se);ne.splice(Pt,0,new s(2,fr,se)),Pt+=Ft,Qe=se}else++se;Qe<$&&ne.splice(Pt,0,new s(1,Qe,$))}return h=="ltr"&&(ne[0].level==1&&(Ie=f.match(/^\s+/))&&(ne[0].from=Ie[0].length,ne.unshift(new s(0,0,Ie[0].length))),W(ne).level==1&&(Ie=f.match(/\s+$/))&&(W(ne).to-=Ie[0].length,ne.push(new s(0,p-Ie[0].length,p)))),h=="rtl"?ne.reverse():ne}}();function He(e,t){var i=e.order;return i==null&&(i=e.order=js(e.text,t)),i}u(He,"getOrder");var El=[],M=u(function(e,t,i){if(e.addEventListener)e.addEventListener(t,i,!1);else if(e.attachEvent)e.attachEvent("on"+t,i);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||El).concat(i)}},"on");function ci(e,t){return e._handlers&&e._handlers[t]||El}u(ci,"getHandlers");function ge(e,t,i){if(e.removeEventListener)e.removeEventListener(t,i,!1);else if(e.detachEvent)e.detachEvent("on"+t,i);else{var r=e._handlers,n=r&&r[t];if(n){var o=ee(n,i);o>-1&&(r[t]=n.slice(0,o).concat(n.slice(o+1)))}}}u(ge,"off");function U(e,t){var i=ci(e,t);if(i.length)for(var r=Array.prototype.slice.call(arguments,2),n=0;n<i.length;++n)i[n].apply(null,r)}u(U,"signal");function q(e,t,i){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),U(e,i||t.type,e,t),pi(t)||t.codemirrorIgnore}u(q,"signalDOMEvent");function Sn(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var i=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)ee(i,t[r])==-1&&i.push(t[r])}u(Sn,"signalCursorActivity");function be(e,t){return ci(e,t).length>0}u(be,"hasHandler");function yt(e){e.prototype.on=function(t,i){M(this,t,i)},e.prototype.off=function(t,i){ge(this,t,i)}}u(yt,"eventMixin");function le(e){e.preventDefault?e.preventDefault():e.returnValue=!1}u(le,"e_preventDefault");function wn(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}u(wn,"e_stopPropagation");function pi(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}u(pi,"e_defaultPrevented");function Bt(e){le(e),wn(e)}u(Bt,"e_stop");function vi(e){return e.target||e.srcElement}u(vi,"e_target");function Ln(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),Se&&e.ctrlKey&&t==1&&(t=3),t}u(Ln,"e_button");var Vs=function(){if(N&&I<9)return!1;var e=T("div");return"draggable"in e||"dragDrop"in e}(),kn;function Il(e){if(kn==null){var t=T("span","​");ve(e,T("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(kn=t.offsetWidth<=1&&t.offsetHeight>2&&!(N&&I<8))}var i=kn?T("span","​"):T("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}u(Il,"zeroWidthElement");var Tn;function Bl(e){if(Tn!=null)return Tn;var t=ve(e,document.createTextNode("AخA")),i=gt(t,0,1).getBoundingClientRect(),r=gt(t,1,2).getBoundingClientRect();return Be(e),!i||i.left==i.right?!1:Tn=r.right-i.right<3}u(Bl,"hasBadBidiRects");var Mn=`
2
2
 
3
3
  b`.split(/\n/).length!=3?function(e){for(var t=0,i=[],r=e.length;t<=r;){var n=e.indexOf(`
4
4
  `,t);n==-1&&(n=e.length);var o=e.slice(t,e.charAt(n-1)=="\r"?n-1:n),l=o.indexOf("\r");l!=-1?(i.push(o.slice(0,l)),t+=l+1):(i.push(o),t=n+1)}return i}:function(e){return e.split(/\r\n?|\n/)},$s=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch{}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},eu=function(){var e=T("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Dn=null;function Rl(e){if(Dn!=null)return Dn;var t=ve(e,T("span","x")),i=t.getBoundingClientRect(),r=gt(t,0,1).getBoundingClientRect();return Dn=Math.abs(i.left-r.left)>1}u(Rl,"hasBadZoomedRects");var An={},Rt={};function zl(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),An[e]=t}u(zl,"defineMode");function Gl(e,t){Rt[e]=t}u(Gl,"defineMIME");function mr(e){if(typeof e=="string"&&Rt.hasOwnProperty(e))e=Rt[e];else if(e&&typeof e.name=="string"&&Rt.hasOwnProperty(e.name)){var t=Rt[e.name];typeof t=="string"&&(t={name:t}),e=bn(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return mr("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return mr("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}u(mr,"resolveMode");function gi(e,t){t=mr(t);var i=An[t.name];if(!i)return gi(e,"text/plain");var r=i(e,t);if(zt.hasOwnProperty(t.name)){var n=zt[t.name];for(var o in n)n.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=n[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var l in t.modeProps)r[l]=t.modeProps[l];return r}u(gi,"getMode");var zt={};function Ul(e,t){var i=zt.hasOwnProperty(e)?zt[e]:zt[e]={};je(t,i)}u(Ul,"extendMode");function $e(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var i={};for(var r in t){var n=t[r];n instanceof Array&&(n=n.concat([])),i[r]=n}return i}u($e,"copyState");function yi(e,t){for(var i;e.innerMode&&(i=e.innerMode(t),!(!i||i.mode==e));)t=i.state,e=i.mode;return i||{mode:e,state:t}}u(yi,"innerMode");function On(e,t,i){return e.startState?e.startState(t,i):!0}u(On,"startState");var _=u(function(e,t,i){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=i},"StringStream");_.prototype.eol=function(){return this.pos>=this.string.length},_.prototype.sol=function(){return this.pos==this.lineStart},_.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},_.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},_.prototype.eat=function(e){var t=this.string.charAt(this.pos),i;if(typeof e=="string"?i=t==e:i=t&&(e.test?e.test(t):e(t)),i)return++this.pos,t},_.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},_.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},_.prototype.skipToEnd=function(){this.pos=this.string.length},_.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},_.prototype.backUp=function(e){this.pos-=e},_.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=me(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?me(this.string,this.lineStart,this.tabSize):0)},_.prototype.indentation=function(){return me(this.string,null,this.tabSize)-(this.lineStart?me(this.string,this.lineStart,this.tabSize):0)},_.prototype.match=function(e,t,i){if(typeof e=="string"){var r=u(function(l){return i?l.toLowerCase():l},"cased"),n=this.string.substr(this.pos,e.length);if(r(n)==r(e))return t!==!1&&(this.pos+=e.length),!0}else{var o=this.string.slice(this.pos).match(e);return o&&o.index>0?null:(o&&t!==!1&&(this.pos+=o[0].length),o)}},_.prototype.current=function(){return this.string.slice(this.start,this.pos)},_.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},_.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},_.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function w(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var i=e;!i.lines;)for(var r=0;;++r){var n=i.children[r],o=n.chunkSize();if(t<o){i=n;break}t-=o}return i.lines[t]}u(w,"getLine");function et(e,t,i){var r=[],n=t.line;return e.iter(t.line,i.line+1,function(o){var l=o.text;n==i.line&&(l=l.slice(0,i.ch)),n==t.line&&(l=l.slice(t.ch)),r.push(l),++n}),r}u(et,"getBetween");function mi(e,t,i){var r=[];return e.iter(t,i,function(n){r.push(n.text)}),r}u(mi,"getLines");function Me(e,t){var i=t-e.height;if(i)for(var r=e;r;r=r.parent)r.height+=i}u(Me,"updateLineHeight");function P(e){if(e.parent==null)return null;for(var t=e.parent,i=ee(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var n=0;r.children[n]!=t;++n)i+=r.children[n].chunkSize();return i+t.first}u(P,"lineNo");function tt(e,t){var i=e.first;e:do{for(var r=0;r<e.children.length;++r){var n=e.children[r],o=n.height;if(t<o){e=n;continue e}t-=o,i+=n.chunkSize()}return i}while(!e.lines);for(var l=0;l<e.lines.length;++l){var a=e.lines[l],s=a.height;if(t<s)break;t-=s}return i+l}u(tt,"lineAtHeight");function Gt(e,t){return t>=e.first&&t<e.first+e.size}u(Gt,"isLine");function bi(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}u(bi,"lineNumberFor");function y(e,t,i){if(i===void 0&&(i=null),!(this instanceof y))return new y(e,t,i);this.line=e,this.ch=t,this.sticky=i}u(y,"Pos");function D(e,t){return e.line-t.line||e.ch-t.ch}u(D,"cmp");function xi(e,t){return e.sticky==t.sticky&&D(e,t)==0}u(xi,"equalCursorPos");function Ci(e){return y(e.line,e.ch)}u(Ci,"copyPos");function br(e,t){return D(e,t)<0?t:e}u(br,"maxPos");function xr(e,t){return D(e,t)<0?e:t}u(xr,"minPos");function Nn(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}u(Nn,"clipLine");function A(e,t){if(t.line<e.first)return y(e.first,0);var i=e.first+e.size-1;return t.line>i?y(i,w(e,i).text.length):Kl(t,w(e,t.line).text.length)}u(A,"clipPos");function Kl(e,t){var i=e.ch;return i==null||i>t?y(e.line,t):i<0?y(e.line,0):e}u(Kl,"clipToLen");function Wn(e,t){for(var i=[],r=0;r<t.length;r++)i[r]=A(e,t[r]);return i}u(Wn,"clipPosArray");var Si=u(function(e,t){this.state=e,this.lookAhead=t},"SavedContext"),Pe=u(function(e,t,i,r){this.state=t,this.doc=e,this.line=i,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1},"Context");Pe.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},Pe.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Pe.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Pe.fromSaved=function(e,t,i){return t instanceof Si?new Pe(e,$e(e.mode,t.state),i,t.lookAhead):new Pe(e,$e(e.mode,t),i)},Pe.prototype.save=function(e){var t=e!==!1?$e(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Si(t,this.maxLookAhead):t};function Hn(e,t,i,r){var n=[e.state.modeGen],o={};Bn(e,t.text,e.doc.mode,i,function(f,h){return n.push(f,h)},o,r);for(var l=i.state,a=u(function(f){i.baseTokens=n;var h=e.state.overlays[f],d=1,p=0;i.state=!0,Bn(e,t.text,h.mode,i,function(c,v){for(var g=d;p<c;){var m=n[d];m>c&&n.splice(d,1,c,n[d+1],m),d+=2,p=Math.min(c,m)}if(v)if(h.opaque)n.splice(g,d-g,c,"overlay "+v),d=g+2;else for(;g<d;g+=2){var b=n[g+1];n[g+1]=(b?b+" ":"")+"overlay "+v}},o),i.state=l,i.baseTokens=null,i.baseTokenPos=1},"loop"),s=0;s<e.state.overlays.length;++s)a(s);return{styles:n,classes:o.bgClass||o.textClass?o:null}}u(Hn,"highlightLine");function Pn(e,t,i){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=Ut(e,P(t)),n=t.text.length>e.options.maxHighlightLength&&$e(e.doc.mode,r.state),o=Hn(e,t,r);n&&(r.state=n),t.stateAfter=r.save(!n),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),i===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}u(Pn,"getLineStyles");function Ut(e,t,i){var r=e.doc,n=e.display;if(!r.mode.startState)return new Pe(r,!0,t);var o=Xl(e,t,i),l=o>r.first&&w(r,o-1).stateAfter,a=l?Pe.fromSaved(r,l,o):new Pe(r,On(r.mode),o);return r.iter(o,t,function(s){wi(e,s.text,a);var f=a.line;s.stateAfter=f==t-1||f%5==0||f>=n.viewFrom&&f<n.viewTo?a.save():null,a.nextLine()}),i&&(r.modeFrontier=a.line),a}u(Ut,"getContextBefore");function wi(e,t,i,r){var n=e.doc.mode,o=new _(t,e.options.tabSize,i);for(o.start=o.pos=r||0,t==""&&Fn(n,i.state);!o.eol();)Li(n,o,i.state),o.start=o.pos}u(wi,"processLine");function Fn(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var i=yi(e,t);if(i.mode.blankLine)return i.mode.blankLine(i.state)}}u(Fn,"callBlankLine");function Li(e,t,i,r){for(var n=0;n<10;n++){r&&(r[0]=yi(e,i).mode);var o=e.token(t,i);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}u(Li,"readToken");var _l=u(function(e,t,i){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=i},"Token");function En(e,t,i,r){var n=e.doc,o=n.mode,l;t=A(n,t);var a=w(n,t.line),s=Ut(e,t.line,i),f=new _(a.text,e.options.tabSize,s),h;for(r&&(h=[]);(r||f.pos<t.ch)&&!f.eol();)f.start=f.pos,l=Li(o,f,s.state),r&&h.push(new _l(f,l,$e(n.mode,s.state)));return r?h:new _l(f,l,s.state)}u(En,"takeToken");function In(e,t){if(e)for(;;){var i=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!i)break;e=e.slice(0,i.index)+e.slice(i.index+i[0].length);var r=i[1]?"bgClass":"textClass";t[r]==null?t[r]=i[2]:new RegExp("(?:^|\\s)"+i[2]+"(?:$|\\s)").test(t[r])||(t[r]+=" "+i[2])}return e}u(In,"extractLineClasses");function Bn(e,t,i,r,n,o,l){var a=i.flattenSpans;a==null&&(a=e.options.flattenSpans);var s=0,f=null,h=new _(t,e.options.tabSize,r),d,p=e.options.addModeClass&&[null];for(t==""&&In(Fn(i,r.state),o);!h.eol();){if(h.pos>e.options.maxHighlightLength?(a=!1,l&&wi(e,t,r,h.pos),h.pos=t.length,d=null):d=In(Li(i,h,r.state,p),o),p){var c=p[0].name;c&&(d="m-"+(d?c+" "+d:c))}if(!a||f!=d){for(;s<h.start;)s=Math.min(h.start,s+5e3),n(s,f);f=d}h.start=h.pos}for(;s<h.pos;){var v=Math.min(h.pos,s+5e3);n(v,f),s=v}}u(Bn,"runMode");function Xl(e,t,i){for(var r,n,o=e.doc,l=i?-1:t-(e.doc.mode.innerMode?1e3:100),a=t;a>l;--a){if(a<=o.first)return o.first;var s=w(o,a-1),f=s.stateAfter;if(f&&(!i||a+(f instanceof Si?f.lookAhead:0)<=o.modeFrontier))return a;var h=me(s.text,null,e.options.tabSize);(n==null||r>h)&&(n=a-1,r=h)}return n}u(Xl,"findStartLine");function Yl(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var i=e.first,r=t-1;r>i;r--){var n=w(e,r).stateAfter;if(n&&(!(n instanceof Si)||r+n.lookAhead<t)){i=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,i)}}u(Yl,"retreatFrontier");var ql=!1,ze=!1;function Zl(){ql=!0}u(Zl,"seeReadOnlySpans");function Ql(){ze=!0}u(Ql,"seeCollapsedSpans");function Cr(e,t,i){this.marker=e,this.from=t,this.to=i}u(Cr,"MarkedSpan");function Kt(e,t){if(e)for(var i=0;i<e.length;++i){var r=e[i];if(r.marker==t)return r}}u(Kt,"getMarkedSpanFor");function Jl(e,t){for(var i,r=0;r<e.length;++r)e[r]!=t&&(i||(i=[])).push(e[r]);return i}u(Jl,"removeMarkedSpan");function jl(e,t,i){var r=i&&window.WeakSet&&(i.markedSpans||(i.markedSpans=new WeakSet));r&&e.markedSpans&&r.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],r&&r.add(e.markedSpans)),t.marker.attachLine(e)}u(jl,"addMarkedSpan");function Vl(e,t,i){var r;if(e)for(var n=0;n<e.length;++n){var o=e[n],l=o.marker,a=o.from==null||(l.inclusiveLeft?o.from<=t:o.from<t);if(a||o.from==t&&l.type=="bookmark"&&(!i||!o.marker.insertLeft)){var s=o.to==null||(l.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new Cr(l,o.from,s?null:o.to))}}return r}u(Vl,"markedSpansBefore");function $l(e,t,i){var r;if(e)for(var n=0;n<e.length;++n){var o=e[n],l=o.marker,a=o.to==null||(l.inclusiveRight?o.to>=t:o.to>t);if(a||o.from==t&&l.type=="bookmark"&&(!i||o.marker.insertLeft)){var s=o.from==null||(l.inclusiveLeft?o.from<=t:o.from<t);(r||(r=[])).push(new Cr(l,s?null:o.from-t,o.to==null?null:o.to-t))}}return r}u($l,"markedSpansAfter");function ki(e,t){if(t.full)return null;var i=Gt(e,t.from.line)&&w(e,t.from.line).markedSpans,r=Gt(e,t.to.line)&&w(e,t.to.line).markedSpans;if(!i&&!r)return null;var n=t.from.ch,o=t.to.ch,l=D(t.from,t.to)==0,a=Vl(i,n,l),s=$l(r,o,l),f=t.text.length==1,h=W(t.text).length+(f?n:0);if(a)for(var d=0;d<a.length;++d){var p=a[d];if(p.to==null){var c=Kt(s,p.marker);c?f&&(p.to=c.to==null?null:c.to+h):p.to=n}}if(s)for(var v=0;v<s.length;++v){var g=s[v];if(g.to!=null&&(g.to+=h),g.from==null){var m=Kt(a,g.marker);m||(g.from=h,f&&(a||(a=[])).push(g))}else g.from+=h,f&&(a||(a=[])).push(g)}a&&(a=Rn(a)),s&&s!=a&&(s=Rn(s));var b=[a];if(!f){var C=t.text.length-2,x;if(C>0&&a)for(var S=0;S<a.length;++S)a[S].to==null&&(x||(x=[])).push(new Cr(a[S].marker,null,null));for(var k=0;k<C;++k)b.push(x);b.push(s)}return b}u(ki,"stretchSpansOverChange");function Rn(e){for(var t=0;t<e.length;++t){var i=e[t];i.from!=null&&i.from==i.to&&i.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}u(Rn,"clearEmptySpans");function ea(e,t,i){var r=null;if(e.iter(t.line,i.line+1,function(c){if(c.markedSpans)for(var v=0;v<c.markedSpans.length;++v){var g=c.markedSpans[v].marker;g.readOnly&&(!r||ee(r,g)==-1)&&(r||(r=[])).push(g)}}),!r)return null;for(var n=[{from:t,to:i}],o=0;o<r.length;++o)for(var l=r[o],a=l.find(0),s=0;s<n.length;++s){var f=n[s];if(!(D(f.to,a.from)<0||D(f.from,a.to)>0)){var h=[s,1],d=D(f.from,a.from),p=D(f.to,a.to);(d<0||!l.inclusiveLeft&&!d)&&h.push({from:f.from,to:a.from}),(p>0||!l.inclusiveRight&&!p)&&h.push({from:a.to,to:f.to}),n.splice.apply(n,h),s+=h.length-3}}return n}u(ea,"removeReadOnlyRanges");function zn(e){var t=e.markedSpans;if(t){for(var i=0;i<t.length;++i)t[i].marker.detachLine(e);e.markedSpans=null}}u(zn,"detachMarkedSpans");function Gn(e,t){if(t){for(var i=0;i<t.length;++i)t[i].marker.attachLine(e);e.markedSpans=t}}u(Gn,"attachMarkedSpans");function Sr(e){return e.inclusiveLeft?-1:0}u(Sr,"extraLeft");function wr(e){return e.inclusiveRight?1:0}u(wr,"extraRight");function Ti(e,t){var i=e.lines.length-t.lines.length;if(i!=0)return i;var r=e.find(),n=t.find(),o=D(r.from,n.from)||Sr(e)-Sr(t);if(o)return-o;var l=D(r.to,n.to)||wr(e)-wr(t);return l||t.id-e.id}u(Ti,"compareCollapsedMarkers");function Un(e,t){var i=ze&&e.markedSpans,r;if(i)for(var n=void 0,o=0;o<i.length;++o)n=i[o],n.marker.collapsed&&(t?n.from:n.to)==null&&(!r||Ti(r,n.marker)<0)&&(r=n.marker);return r}u(Un,"collapsedSpanAtSide");function Kn(e){return Un(e,!0)}u(Kn,"collapsedSpanAtStart");function Lr(e){return Un(e,!1)}u(Lr,"collapsedSpanAtEnd");function ta(e,t){var i=ze&&e.markedSpans,r;if(i)for(var n=0;n<i.length;++n){var o=i[n];o.marker.collapsed&&(o.from==null||o.from<t)&&(o.to==null||o.to>t)&&(!r||Ti(r,o.marker)<0)&&(r=o.marker)}return r}u(ta,"collapsedSpanAround");function _n(e,t,i,r,n){var o=w(e,t),l=ze&&o.markedSpans;if(l)for(var a=0;a<l.length;++a){var s=l[a];if(s.marker.collapsed){var f=s.marker.find(0),h=D(f.from,i)||Sr(s.marker)-Sr(n),d=D(f.to,r)||wr(s.marker)-wr(n);if(!(h>=0&&d<=0||h<=0&&d>=0)&&(h<=0&&(s.marker.inclusiveRight&&n.inclusiveLeft?D(f.to,i)>=0:D(f.to,i)>0)||h>=0&&(s.marker.inclusiveRight&&n.inclusiveLeft?D(f.from,r)<=0:D(f.from,r)<0)))return!0}}}u(_n,"conflictingCollapsedRange");function we(e){for(var t;t=Kn(e);)e=t.find(-1,!0).line;return e}u(we,"visualLine");function ra(e){for(var t;t=Lr(e);)e=t.find(1,!0).line;return e}u(ra,"visualLineEnd");function ia(e){for(var t,i;t=Lr(e);)e=t.find(1,!0).line,(i||(i=[])).push(e);return i}u(ia,"visualLineContinued");function Mi(e,t){var i=w(e,t),r=we(i);return i==r?t:P(r)}u(Mi,"visualLineNo");function Xn(e,t){if(t>e.lastLine())return t;var i=w(e,t),r;if(!Ge(e,i))return t;for(;r=Lr(i);)i=r.find(1,!0).line;return P(i)+1}u(Xn,"visualLineEndNo");function Ge(e,t){var i=ze&&t.markedSpans;if(i){for(var r=void 0,n=0;n<i.length;++n)if(r=i[n],!!r.marker.collapsed){if(r.from==null)return!0;if(!r.marker.widgetNode&&r.from==0&&r.marker.inclusiveLeft&&Di(e,t,r))return!0}}}u(Ge,"lineIsHidden");function Di(e,t,i){if(i.to==null){var r=i.marker.find(1,!0);return Di(e,r.line,Kt(r.line.markedSpans,i.marker))}if(i.marker.inclusiveRight&&i.to==t.text.length)return!0;for(var n=void 0,o=0;o<t.markedSpans.length;++o)if(n=t.markedSpans[o],n.marker.collapsed&&!n.marker.widgetNode&&n.from==i.to&&(n.to==null||n.to!=i.from)&&(n.marker.inclusiveLeft||i.marker.inclusiveRight)&&Di(e,t,n))return!0}u(Di,"lineIsHiddenInner");function Fe(e){e=we(e);for(var t=0,i=e.parent,r=0;r<i.lines.length;++r){var n=i.lines[r];if(n==e)break;t+=n.height}for(var o=i.parent;o;i=o,o=i.parent)for(var l=0;l<o.children.length;++l){var a=o.children[l];if(a==i)break;t+=a.height}return t}u(Fe,"heightAtLine");function kr(e){if(e.height==0)return 0;for(var t=e.text.length,i,r=e;i=Kn(r);){var n=i.find(0,!0);r=n.from.line,t+=n.from.ch-n.to.ch}for(r=e;i=Lr(r);){var o=i.find(0,!0);t-=r.text.length-o.from.ch,r=o.to.line,t+=r.text.length-o.to.ch}return t}u(kr,"lineLength");function Ai(e){var t=e.display,i=e.doc;t.maxLine=w(i,i.first),t.maxLineLength=kr(t.maxLine),t.maxLineChanged=!0,i.iter(function(r){var n=kr(r);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=r)})}u(Ai,"findMaxLine");var _t=u(function(e,t,i){this.text=e,Gn(this,t),this.height=i?i(this):1},"Line");_t.prototype.lineNo=function(){return P(this)},yt(_t);function na(e,t,i,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),zn(e),Gn(e,i);var n=r?r(e):1;n!=e.height&&Me(e,n)}u(na,"updateLine");function oa(e){e.parent=null,zn(e)}u(oa,"cleanUpLine");var tu={},ru={};function Yn(e,t){if(!e||/^\s*$/.test(e))return null;var i=t.addModeClass?ru:tu;return i[e]||(i[e]=e.replace(/\S+/g,"cm-$&"))}u(Yn,"interpretTokenStyle");function qn(e,t){var i=vt("span",null,null,oe?"padding-right: .1px":null),r={pre:vt("pre",[i],"CodeMirror-line"),content:i,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var n=0;n<=(t.rest?t.rest.length:0);n++){var o=n?t.rest[n-1]:t.line,l=void 0;r.pos=0,r.addToken=aa,Bl(e.display.measure)&&(l=He(o,e.doc.direction))&&(r.addToken=ua(r.addToken,l)),r.map=[];var a=t!=e.display.externalMeasured&&P(o);fa(o,r,Pn(e,o,a)),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=oi(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=oi(o.styleClasses.textClass,r.textClass||""))),r.map.length==0&&r.map.push(0,0,r.content.appendChild(Il(e.display.measure))),n==0?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(oe){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return U(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=oi(r.pre.className,r.textClass||"")),r}u(qn,"buildLineContent");function la(e){var t=T("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}u(la,"defaultSpecialCharPlaceholder");function aa(e,t,i,r,n,o,l){if(t){var a=e.splitSpaces?sa(t,e.trailingSpace):t,s=e.cm.state.specialChars,f=!1,h;if(!s.test(t))e.col+=t.length,h=document.createTextNode(a),e.map.push(e.pos,e.pos+t.length,h),N&&I<9&&(f=!0),e.pos+=t.length;else{h=document.createDocumentFragment();for(var d=0;;){s.lastIndex=d;var p=s.exec(t),c=p?p.index-d:t.length-d;if(c){var v=document.createTextNode(a.slice(d,d+c));N&&I<9?h.appendChild(T("span",[v])):h.appendChild(v),e.map.push(e.pos,e.pos+c,v),e.col+=c,e.pos+=c}if(!p)break;d+=c+1;var g=void 0;if(p[0]==" "){var m=e.cm.options.tabSize,b=m-e.col%m;g=h.appendChild(T("span",fi(b),"cm-tab")),g.setAttribute("role","presentation"),g.setAttribute("cm-text"," "),e.col+=b}else p[0]=="\r"||p[0]==`
@@ -1,2 +1,2 @@
1
- import{a as G}from"./codemirror.es-ZszZWF0R.js";import"./index-NkzSJ_BT.js";import"./index-Cwi3bFQC.js";var H=Object.defineProperty,N=(O,A)=>H(O,"name",{value:A,configurable:!0});function q(O,A){return A.forEach(function(s){s&&typeof s!="string"&&!Array.isArray(s)&&Object.keys(s).forEach(function(b){if(b!=="default"&&!(b in O)){var d=Object.getOwnPropertyDescriptor(s,b);Object.defineProperty(O,b,d.get?d:{enumerable:!0,get:function(){return s[b]}})}})}),Object.freeze(O)}N(q,"_mergeNamespaces");var w={exports:{}};(function(O,A){(function(s){s(G.exports)})(function(s){var b={},d=/[^\s\u00a0]/,m=s.Pos,F=s.cmpPos;function P(t){var a=t.search(d);return a==-1?0:a}N(P,"firstNonWS"),s.commands.toggleComment=function(t){t.toggleComment()},s.defineExtension("toggleComment",function(t){t||(t=b);for(var a=this,n=1/0,e=this.listSelections(),g=null,c=e.length-1;c>=0;c--){var l=e[c].from(),r=e[c].to();l.line>=n||(r.line>=n&&(r=m(n,0)),n=l.line,g==null?a.uncomment(l,r,t)?g="un":(a.lineComment(l,r,t),g="line"):g=="un"?a.uncomment(l,r,t):a.lineComment(l,r,t))}});function $(t,a,n){return/\bstring\b/.test(t.getTokenTypeAt(m(a.line,0)))&&!/^[\'\"\`]/.test(n)}N($,"probablyInsideString");function j(t,a){var n=t.getMode();return n.useInnerComments===!1||!n.innerMode?n:t.getModeAt(a)}N(j,"getMode"),s.defineExtension("lineComment",function(t,a,n){n||(n=b);var e=this,g=j(e,t),c=e.getLine(t.line);if(!(c==null||$(e,t,c))){var l=n.lineComment||g.lineComment;if(!l){(n.blockCommentStart||g.blockCommentStart)&&(n.fullLines=!0,e.blockComment(t,a,n));return}var r=Math.min(a.ch!=0||a.line==t.line?a.line+1:a.line,e.lastLine()+1),C=n.padding==null?" ":n.padding,f=n.commentBlankLines||t.line==a.line;e.operation(function(){if(n.indent){for(var v=null,i=t.line;i<r;++i){var u=e.getLine(i),h=u.slice(0,P(u));(v==null||v.length>h.length)&&(v=h)}for(var i=t.line;i<r;++i){var u=e.getLine(i),o=v.length;!f&&!d.test(u)||(u.slice(0,o)!=v&&(o=P(u)),e.replaceRange(v+l+C,m(i,0),m(i,o)))}}else for(var i=t.line;i<r;++i)(f||d.test(e.getLine(i)))&&e.replaceRange(l+C,m(i,0))})}}),s.defineExtension("blockComment",function(t,a,n){n||(n=b);var e=this,g=j(e,t),c=n.blockCommentStart||g.blockCommentStart,l=n.blockCommentEnd||g.blockCommentEnd;if(!c||!l){(n.lineComment||g.lineComment)&&n.fullLines!=!1&&e.lineComment(t,a,n);return}if(!/\bcomment\b/.test(e.getTokenTypeAt(m(t.line,0)))){var r=Math.min(a.line,e.lastLine());r!=t.line&&a.ch==0&&d.test(e.getLine(r))&&--r;var C=n.padding==null?" ":n.padding;t.line>r||e.operation(function(){if(n.fullLines!=!1){var f=d.test(e.getLine(r));e.replaceRange(C+l,m(r)),e.replaceRange(c+C,m(t.line,0));var v=n.blockCommentLead||g.blockCommentLead;if(v!=null)for(var i=t.line+1;i<=r;++i)(i!=r||f)&&e.replaceRange(v+C,m(i,0))}else{var u=F(e.getCursor("to"),a)==0,h=!e.somethingSelected();e.replaceRange(l,a),u&&e.setSelection(h?a:e.getCursor("from"),a),e.replaceRange(c,t)}})}}),s.defineExtension("uncomment",function(t,a,n){n||(n=b);var e=this,g=j(e,t),c=Math.min(a.ch!=0||a.line==t.line?a.line:a.line-1,e.lastLine()),l=Math.min(t.line,c),r=n.lineComment||g.lineComment,C=[],f=n.padding==null?" ":n.padding,v;e:{if(!r)break e;for(var i=l;i<=c;++i){var u=e.getLine(i),h=u.indexOf(r);if(h>-1&&!/comment/.test(e.getTokenTypeAt(m(i,h+1)))&&(h=-1),h==-1&&d.test(u)||h>-1&&d.test(u.slice(0,h)))break e;C.push(u)}if(e.operation(function(){for(var L=l;L<=c;++L){var p=C[L-l],x=p.indexOf(r),k=x+r.length;x<0||(p.slice(k,k+f.length)==f&&(k+=f.length),v=!0,e.replaceRange("",m(L,x),m(L,k)))}}),v)return!0}var o=n.blockCommentStart||g.blockCommentStart,S=n.blockCommentEnd||g.blockCommentEnd;if(!o||!S)return!1;var W=n.blockCommentLead||g.blockCommentLead,E=e.getLine(l),_=E.indexOf(o);if(_==-1)return!1;var I=c==l?E:e.getLine(c),y=I.indexOf(S,c==l?_+o.length:0),z=m(l,_+1),B=m(c,y+1);if(y==-1||!/comment/.test(e.getTokenTypeAt(z))||!/comment/.test(e.getTokenTypeAt(B))||e.getRange(z,B,`
1
+ import{a as G}from"./codemirror.es-DRCfXk0r.js";import"./index-D6q9zEjn.js";import"./index-DzlR4ROA.js";var H=Object.defineProperty,N=(O,A)=>H(O,"name",{value:A,configurable:!0});function q(O,A){return A.forEach(function(s){s&&typeof s!="string"&&!Array.isArray(s)&&Object.keys(s).forEach(function(b){if(b!=="default"&&!(b in O)){var d=Object.getOwnPropertyDescriptor(s,b);Object.defineProperty(O,b,d.get?d:{enumerable:!0,get:function(){return s[b]}})}})}),Object.freeze(O)}N(q,"_mergeNamespaces");var w={exports:{}};(function(O,A){(function(s){s(G.exports)})(function(s){var b={},d=/[^\s\u00a0]/,m=s.Pos,F=s.cmpPos;function P(t){var a=t.search(d);return a==-1?0:a}N(P,"firstNonWS"),s.commands.toggleComment=function(t){t.toggleComment()},s.defineExtension("toggleComment",function(t){t||(t=b);for(var a=this,n=1/0,e=this.listSelections(),g=null,c=e.length-1;c>=0;c--){var l=e[c].from(),r=e[c].to();l.line>=n||(r.line>=n&&(r=m(n,0)),n=l.line,g==null?a.uncomment(l,r,t)?g="un":(a.lineComment(l,r,t),g="line"):g=="un"?a.uncomment(l,r,t):a.lineComment(l,r,t))}});function $(t,a,n){return/\bstring\b/.test(t.getTokenTypeAt(m(a.line,0)))&&!/^[\'\"\`]/.test(n)}N($,"probablyInsideString");function j(t,a){var n=t.getMode();return n.useInnerComments===!1||!n.innerMode?n:t.getModeAt(a)}N(j,"getMode"),s.defineExtension("lineComment",function(t,a,n){n||(n=b);var e=this,g=j(e,t),c=e.getLine(t.line);if(!(c==null||$(e,t,c))){var l=n.lineComment||g.lineComment;if(!l){(n.blockCommentStart||g.blockCommentStart)&&(n.fullLines=!0,e.blockComment(t,a,n));return}var r=Math.min(a.ch!=0||a.line==t.line?a.line+1:a.line,e.lastLine()+1),C=n.padding==null?" ":n.padding,f=n.commentBlankLines||t.line==a.line;e.operation(function(){if(n.indent){for(var v=null,i=t.line;i<r;++i){var u=e.getLine(i),h=u.slice(0,P(u));(v==null||v.length>h.length)&&(v=h)}for(var i=t.line;i<r;++i){var u=e.getLine(i),o=v.length;!f&&!d.test(u)||(u.slice(0,o)!=v&&(o=P(u)),e.replaceRange(v+l+C,m(i,0),m(i,o)))}}else for(var i=t.line;i<r;++i)(f||d.test(e.getLine(i)))&&e.replaceRange(l+C,m(i,0))})}}),s.defineExtension("blockComment",function(t,a,n){n||(n=b);var e=this,g=j(e,t),c=n.blockCommentStart||g.blockCommentStart,l=n.blockCommentEnd||g.blockCommentEnd;if(!c||!l){(n.lineComment||g.lineComment)&&n.fullLines!=!1&&e.lineComment(t,a,n);return}if(!/\bcomment\b/.test(e.getTokenTypeAt(m(t.line,0)))){var r=Math.min(a.line,e.lastLine());r!=t.line&&a.ch==0&&d.test(e.getLine(r))&&--r;var C=n.padding==null?" ":n.padding;t.line>r||e.operation(function(){if(n.fullLines!=!1){var f=d.test(e.getLine(r));e.replaceRange(C+l,m(r)),e.replaceRange(c+C,m(t.line,0));var v=n.blockCommentLead||g.blockCommentLead;if(v!=null)for(var i=t.line+1;i<=r;++i)(i!=r||f)&&e.replaceRange(v+C,m(i,0))}else{var u=F(e.getCursor("to"),a)==0,h=!e.somethingSelected();e.replaceRange(l,a),u&&e.setSelection(h?a:e.getCursor("from"),a),e.replaceRange(c,t)}})}}),s.defineExtension("uncomment",function(t,a,n){n||(n=b);var e=this,g=j(e,t),c=Math.min(a.ch!=0||a.line==t.line?a.line:a.line-1,e.lastLine()),l=Math.min(t.line,c),r=n.lineComment||g.lineComment,C=[],f=n.padding==null?" ":n.padding,v;e:{if(!r)break e;for(var i=l;i<=c;++i){var u=e.getLine(i),h=u.indexOf(r);if(h>-1&&!/comment/.test(e.getTokenTypeAt(m(i,h+1)))&&(h=-1),h==-1&&d.test(u)||h>-1&&d.test(u.slice(0,h)))break e;C.push(u)}if(e.operation(function(){for(var L=l;L<=c;++L){var p=C[L-l],x=p.indexOf(r),k=x+r.length;x<0||(p.slice(k,k+f.length)==f&&(k+=f.length),v=!0,e.replaceRange("",m(L,x),m(L,k)))}}),v)return!0}var o=n.blockCommentStart||g.blockCommentStart,S=n.blockCommentEnd||g.blockCommentEnd;if(!o||!S)return!1;var W=n.blockCommentLead||g.blockCommentLead,E=e.getLine(l),_=E.indexOf(o);if(_==-1)return!1;var I=c==l?E:e.getLine(c),y=I.indexOf(S,c==l?_+o.length:0),z=m(l,_+1),B=m(c,y+1);if(y==-1||!/comment/.test(e.getTokenTypeAt(z))||!/comment/.test(e.getTokenTypeAt(B))||e.getRange(z,B,`
2
2
  `).indexOf(S)>-1)return!1;var R=E.lastIndexOf(o,t.ch),T=R==-1?-1:E.slice(0,t.ch).indexOf(S,R+o.length);if(R!=-1&&T!=-1&&T+S.length!=t.ch)return!1;T=I.indexOf(S,a.ch);var D=I.slice(a.ch).lastIndexOf(o,T-a.ch);return R=T==-1||D==-1?-1:a.ch+D,T!=-1&&R!=-1&&R!=a.ch?!1:(e.operation(function(){e.replaceRange("",m(c,y-(f&&I.slice(y-f.length,y)==f?f.length:0)),m(c,y+S.length));var L=_+o.length;if(f&&E.slice(L,L+f.length)==f&&(L+=f.length),e.replaceRange("",m(l,_),m(l,L)),W)for(var p=l+1;p<=c;++p){var x=e.getLine(p),k=x.indexOf(W);if(!(k==-1||d.test(x.slice(0,k)))){var M=k+W.length;f&&x.slice(M,M+f.length)==f&&(M+=f.length),e.replaceRange("",m(p,k),m(p,M))}}}),!0)})})})();var J=w.exports,V=Object.freeze(q({__proto__:null,[Symbol.toStringTag]:"Module",default:J},[w.exports]));export{V as c};
@@ -1,4 +1,4 @@
1
- import{cj as Br,r as P,cN as De,eU as nt,Z as Vr,gW as ri,dk as wt,g as ve,bM as ie,cL as oi,P as b,bb as V,bO as ii,gl as ai,gX as li,gY as si,gZ as ci,g_ as di,g$ as ui,h0 as hi,h1 as fi,h2 as pi,h3 as gi,cI as vi,j as T,fM as se,t as et,dt as Ve,Q as fe,m as ge,bt as mi,dp as Si,bA as qr,bD as Kr,by as yi,bz as Ci,bC as _i,dz as wi,h4 as xi,h5 as bi,dC as Ri,fU as Ti,eV as Ii,a0 as hn,gG as zi,aC as Di,ez as Qr,U as vt,a8 as Pi,aO as Bt,a2 as We,b1 as Oi,dM as fn,b as Wt,du as ke,h6 as Fn,q as Xr,R as ki,h7 as Wn,gO as Ni,E as ct,c3 as dt,D as Mi,B as Li,h8 as Ei,aP as Ai,fY as Yr,H as jt,h9 as ji,ha as Gi,hb as Fi,n as Wi,G as Hn,J as Hi,M as $n,eP as Un,dN as Zt,fK as $i,a3 as Ui,ds as Te}from"./index-Cwi3bFQC.js";import{r as Bi,b as Vi,i as Bn,c as qi,d as Vn,D as Ki,H as Qi}from"./index-77OEIYM-.js";import{r as Xi,a as Yi,b as Ji,c as Zi,d as ea,e as ta,f as na,g as ra,h as oa,i as ia}from"./slicedToArray-CmalbWCs.js";import{i as aa,a as la}from"./isEqual-BkbmgPj_.js";import{_ as sa}from"./actions-CWKaEmCe.js";import{u as ca,C as rt}from"./index.esm-DhpdxP8T.js";import{p as da}from"./index-CrQS5iun.js";import{u as ua}from"./index-C42qq7Ec.js";import{F as Cn,S as pn,O as ha}from"./Select-BLXgoX9k.js";import{I as Jr}from"./InputLabel-Dh6H4BIb.js";import{F as fa,T as en}from"./TextField-DwK_GXoo.js";import{a as pa,b as qn}from"./index-KJ30jnaf.js";import{a as Zr}from"./team-Cup7T2o5.js";import{u as Vt}from"./blocklet-DsP8dvbD.js";import{I as Kn}from"./InputAdornment-B5quKKO5.js";import{A as ga}from"./Autocomplete-B3WY_LBb.js";import{H as va,D as ma,F as Sa}from"./index-B07CNOuw.js";import{u as ya}from"./app-avatar-CHPdyNGu.js";import{S as tn}from"./Skeleton-Dyu5Ax0I.js";import{B as nn}from"./ButtonGroup-Dyh7V3R_.js";import{L as Qn}from"./LoadingButton-DDckTsBs.js";import"./redux-CxE33JOf.js";import"./useLocalStorage-6mPZ-rWo.js";import"./MoreVert-BWsZ-BJo.js";import"./Delete-Db11NFpL.js";import"./status-V0qJ0HIh.js";import"./url-evaluation-DDt3hytj.js";import"./ExpandMore-DQZgaGQn.js";import"./getValidReactChildren-BAhSJfgG.js";import"./useThemeProps-rDwpoqme.js";function Ca(n,o){var r=Br(P.useState(n),2),e=r[0],t=r[1],i=P.useMemo(function(){var a=!n,l=function(){return t(function(u){return u===n?a:n})},s=function(u){return t(u)},d=function(){return t(n)},c=function(){return t(a)};return{toggle:l,set:s,setLeft:d,setRight:c}},[]);return[e,i]}function _a(n){var o=Br(Ca(!!n),2),r=o[0],e=o[1],t=e.toggle,i=e.set,a=P.useMemo(function(){var l=function(){return i(!0)},s=function(){return i(!1)};return{toggle:t,set:function(d){return i(!!d)},setTrue:l,setFalse:s}},[]);return[r,a]}var Oe={},eo="Expected a function",Xn=NaN,wa="[object Symbol]",xa=/^\s+|\s+$/g,ba=/^[-+]0x[0-9a-f]+$/i,Ra=/^0b[01]+$/i,Ta=/^0o[0-7]+$/i,Ia=parseInt,za=typeof De=="object"&&De&&De.Object===Object&&De,Da=typeof self=="object"&&self&&self.Object===Object&&self,Pa=za||Da||Function("return this")(),Oa=Object.prototype,ka=Oa.toString,Na=Math.max,Ma=Math.min,rn=function(){return Pa.Date.now()};function La(n,o,r){var e,t,i,a,l,s,d=0,c=!1,u=!1,h=!0;if(typeof n!="function")throw new TypeError(eo);o=Yn(o)||0,Ht(r)&&(c=!!r.leading,u="maxWait"in r,i=u?Na(Yn(r.maxWait)||0,o):i,h="trailing"in r?!!r.trailing:h);function p(x){var R=e,y=t;return e=t=void 0,d=x,a=n.apply(y,R),a}function f(x){return d=x,l=setTimeout(_,o),c?p(x):a}function m(x){var R=x-s,y=x-d,O=o-R;return u?Ma(O,i-y):O}function S(x){var R=x-s,y=x-d;return s===void 0||R>=o||R<0||u&&y>=i}function _(){var x=rn();if(S(x))return g(x);l=setTimeout(_,m(x))}function g(x){return l=void 0,h&&e?p(x):(e=t=void 0,a)}function z(){l!==void 0&&clearTimeout(l),d=0,e=s=t=l=void 0}function C(){return l===void 0?a:g(rn())}function v(){var x=rn(),R=S(x);if(e=arguments,t=this,s=x,R){if(l===void 0)return f(s);if(u)return l=setTimeout(_,o),p(s)}return l===void 0&&(l=setTimeout(_,o)),a}return v.cancel=z,v.flush=C,v}function Ea(n,o,r){var e=!0,t=!0;if(typeof n!="function")throw new TypeError(eo);return Ht(r)&&(e="leading"in r?!!r.leading:e,t="trailing"in r?!!r.trailing:t),La(n,o,{leading:e,maxWait:o,trailing:t})}function Ht(n){var o=typeof n;return!!n&&(o=="object"||o=="function")}function Aa(n){return!!n&&typeof n=="object"}function ja(n){return typeof n=="symbol"||Aa(n)&&ka.call(n)==wa}function Yn(n){if(typeof n=="number")return n;if(ja(n))return Xn;if(Ht(n)){var o=typeof n.valueOf=="function"?n.valueOf():n;n=Ht(o)?o+"":o}if(typeof n!="string")return n===0?n:+n;n=n.replace(xa,"");var r=Ra.test(n);return r||Ta.test(n)?Ia(n.slice(2),r?2:8):ba.test(n)?Xn:+n}var Ga=Ea,qt={exports:{}},ut={exports:{}};(function(){var n,o,r,e,t,i;typeof performance<"u"&&performance!==null&&performance.now?ut.exports=function(){return performance.now()}:typeof nt<"u"&&nt!==null&&nt.hrtime?(ut.exports=function(){return(n()-t)/1e6},o=nt.hrtime,n=function(){var a;return a=o(),a[0]*1e9+a[1]},e=n(),i=nt.uptime()*1e9,t=e-i):Date.now?(ut.exports=function(){return Date.now()-r},r=Date.now()):(ut.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(De);var Fa=ut.exports,Wa=Fa,Pe=typeof window>"u"?De:window,Nt=["moz","webkit"],Qe="AnimationFrame",Ye=Pe["request"+Qe],yt=Pe["cancel"+Qe]||Pe["cancelRequest"+Qe];for(var ot=0;!Ye&&ot<Nt.length;ot++)Ye=Pe[Nt[ot]+"Request"+Qe],yt=Pe[Nt[ot]+"Cancel"+Qe]||Pe[Nt[ot]+"CancelRequest"+Qe];if(!Ye||!yt){var on=0,Jn=0,je=[],Ha=1e3/60;Ye=function(n){if(je.length===0){var o=Wa(),r=Math.max(0,Ha-(o-on));on=r+o,setTimeout(function(){var e=je.slice(0);je.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(on)}catch(i){setTimeout(function(){throw i},0)}},Math.round(r))}return je.push({handle:++Jn,callback:n,cancelled:!1}),Jn},yt=function(n){for(var o=0;o<je.length;o++)je[o].handle===n&&(je[o].cancelled=!0)}}qt.exports=function(n){return Ye.call(Pe,n)};qt.exports.cancel=function(){yt.apply(Pe,arguments)};qt.exports.polyfill=function(n){n||(n=Pe),n.requestAnimationFrame=Ye,n.cancelAnimationFrame=yt};var $a=qt.exports,_n={};Object.defineProperty(_n,"__esModule",{value:!0});_n.default=Ua;function Ua(n){return n.displayName||n.name||(typeof n=="string"&&n.length>0?n:"Unknown")}var xt={};Object.defineProperty(xt,"__esModule",{value:!0});xt.noop=Ba;xt.intBetween=Va;xt.getCoords=qa;function Ba(){}function Va(n,o,r){return Math.floor(Math.min(o,Math.max(n,r)))}function qa(n){return n.type==="touchmove"?{x:n.changedTouches[0].clientX,y:n.changedTouches[0].clientY}:{x:n.clientX,y:n.clientY}}Object.defineProperty(Oe,"__esModule",{value:!0});var Ka=Oe.createHorizontalStrength=no,Qa=Oe.createVerticalStrength=ro,Xa=Oe.createScrollingComponent=ao,Ya=Oe.default=ul;Oe.defaultVerticalStrength=Oe.defaultHorizontalStrength=void 0;var mt=rl(P),it=bt(Vr),Ja=wt,Za=bt(Ga),Zn=bt($a),el=bt(_n),tl=Bi,nl=bt(ri),Mt=xt;function bt(n){return n&&n.__esModule?n:{default:n}}function rl(n){if(n&&n.__esModule)return n;var o={};if(n!=null){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var e=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(n,r):{};e.get||e.set?Object.defineProperty(o,r,e):o[r]=n[r]}}return o.default=n,o}function Gt(n){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Gt=function(r){return typeof r}:Gt=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Gt(n)}function $t(){return $t=Object.assign||function(n){for(var o=1;o<arguments.length;o++){var r=arguments[o];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(n[e]=r[e])}return n},$t.apply(this,arguments)}function ol(n,o){if(n==null)return{};var r=il(n,o),e,t;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);for(t=0;t<i.length;t++)e=i[t],!(o.indexOf(e)>=0)&&Object.prototype.propertyIsEnumerable.call(n,e)&&(r[e]=n[e])}return r}function il(n,o){if(n==null)return{};var r={},e=Object.keys(n),t,i;for(i=0;i<e.length;i++)t=e[i],!(o.indexOf(t)>=0)&&(r[t]=n[t]);return r}function al(n,o){if(!(n instanceof o))throw new TypeError("Cannot call a class as a function")}function ll(n,o){for(var r=0;r<o.length;r++){var e=o[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,e.key,e)}}function sl(n,o,r){return o&&ll(n.prototype,o),n}function cl(n,o){return o&&(Gt(o)==="object"||typeof o=="function")?o:ht(n)}function gn(n){return gn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},gn(n)}function dl(n,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(o&&o.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),o&&vn(n,o)}function vn(n,o){return vn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},vn(n,o)}function ht(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function at(n,o,r){return o in n?Object.defineProperty(n,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[o]=r,n}var to=150;function no(n){return function(r,e){var t=r.x,i=r.w,a=r.y,l=r.h,s=Math.min(i/2,n),d=e.x>=t&&e.x<=t+i,c=d&&e.y>=a&&e.y<=a+l;if(c){if(e.x<t+s)return(e.x-t-s)/s;if(e.x>t+i-s)return-(t+i-e.x-s)/s}return 0}}function ro(n){return function(r,e){var t=r.y,i=r.h,a=r.x,l=r.w,s=Math.min(i/2,n),d=e.y>=t&&e.y<=t+i,c=d&&e.x>=a&&e.x<=a+l;if(c){if(e.y<t+s)return(e.y-t-s)/s;if(e.y>t+i-s)return-(t+i-e.y-s)/s}return 0}}var oo=no(to);Oe.defaultHorizontalStrength=oo;var io=ro(to);Oe.defaultVerticalStrength=io;function ao(n){var o=function(r){dl(e,r);function e(t,i){var a;return al(this,e),a=cl(this,gn(e).call(this,t,i)),at(ht(ht(a)),"updateScrolling",(0,Za.default)(function(l){var s=a.container.getBoundingClientRect(),d=s.left,c=s.top,u=s.width,h=s.height,p={x:d,y:c,w:u,h},f=(0,Mt.getCoords)(l),m=a.props,S=m.horizontalStrength,_=m.verticalStrength;a.scaleX=S(p,f),a.scaleY=_(p,f),!a.frame&&(a.scaleX||a.scaleY)&&a.startScrolling()},100,{trailing:!1})),at(ht(ht(a)),"handleEvent",function(l){a.dragging&&!a.attached&&(a.attach(),a.updateScrolling(l))}),a.wrappedInstance=mt.default.createRef(),a.scaleX=0,a.scaleY=0,a.frame=null,a.attached=!1,a.dragging=!1,a}return sl(e,[{key:"componentDidMount",value:function(){var i=this;this.container=(0,Ja.findDOMNode)(this.wrappedInstance.current),this.container&&typeof this.container.addEventListener=="function"&&this.container.addEventListener("dragover",this.handleEvent),window.document.body.addEventListener("touchmove",this.handleEvent);var a=this.props.dragDropManager;this.clearMonitorSubscription=a.getMonitor().subscribeToStateChange(function(){return i.handleMonitorChange()})}},{key:"componentWillUnmount",value:function(){this.container&&typeof this.container.removeEventListener=="function"&&this.container.removeEventListener("dragover",this.handleEvent),window.document.body.removeEventListener("touchmove",this.handleEvent),this.clearMonitorSubscription(),this.stopScrolling()}},{key:"handleMonitorChange",value:function(){var i=this.props.dragDropManager,a=i.getMonitor().isDragging();!this.dragging&&a?this.dragging=!0:this.dragging&&!a&&(this.dragging=!1,this.stopScrolling())}},{key:"attach",value:function(){this.attached=!0,window.document.body.addEventListener("dragover",this.updateScrolling),window.document.body.addEventListener("touchmove",this.updateScrolling)}},{key:"detach",value:function(){this.attached=!1,window.document.body.removeEventListener("dragover",this.updateScrolling),window.document.body.removeEventListener("touchmove",this.updateScrolling)}},{key:"startScrolling",value:function(){var i=this,a=0,l=function s(){var d=i.scaleX,c=i.scaleY,u=i.container,h=i.props,p=h.strengthMultiplier,f=h.onScrollChange;if(p===0||d+c===0){i.stopScrolling();return}if(a+=1,a%2){var m=u.scrollLeft,S=u.scrollTop,_=u.scrollWidth,g=u.scrollHeight,z=u.clientWidth,C=u.clientHeight,v=d?u.scrollLeft=(0,Mt.intBetween)(0,_-z,m+d*p):m,x=c?u.scrollTop=(0,Mt.intBetween)(0,g-C,S+c*p):S;f(v,x)}i.frame=(0,Zn.default)(s)};l()}},{key:"stopScrolling",value:function(){this.detach(),this.scaleX=0,this.scaleY=0,this.frame&&(Zn.default.cancel(this.frame),this.frame=null)}},{key:"render",value:function(){var i=this.props;i.strengthMultiplier,i.verticalStrength,i.horizontalStrength,i.onScrollChange;var a=ol(i,["strengthMultiplier","verticalStrength","horizontalStrength","onScrollChange"]);return mt.default.createElement(n,$t({ref:this.wrappedInstance},a))}}]),e}(mt.Component);return at(o,"displayName","Scrolling(".concat((0,el.default)(n),")")),at(o,"propTypes",{dragDropManager:it.default.object.isRequired,onScrollChange:it.default.func,verticalStrength:it.default.func,horizontalStrength:it.default.func,strengthMultiplier:it.default.number}),at(o,"defaultProps",{onScrollChange:Mt.noop,verticalStrength:io,horizontalStrength:oo,strengthMultiplier:30}),(0,nl.default)(o,n)}function ul(n){var o=ao(n);return function(r){return mt.default.createElement(tl.DragDropContextConsumer,null,function(e){var t=e.dragDropManager;return t===void 0?null:mt.default.createElement(o,$t({},r,{dragDropManager:t}))})}}var hl=Xi();const te=ve(hl);var fl=Yi();const re=ve(fl);var pl=Ji();const me=ve(pl);var gl=Zi();const Se=ve(gl);var vl=ea();const D=ve(vl);var ml=ta();const ye=ve(ml);var Sl=na();const w=ve(Sl);function lo(){var n=this.constructor.getDerivedStateFromProps(this.props,this.state);n!=null&&this.setState(n)}function so(n){function o(r){var e=this.constructor.getDerivedStateFromProps(n,r);return e??null}this.setState(o.bind(this))}function co(n,o){try{var r=this.props,e=this.state;this.props=n,this.state=o,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,e)}finally{this.props=r,this.state=e}}lo.__suppressDeprecationWarning=!0;so.__suppressDeprecationWarning=!0;co.__suppressDeprecationWarning=!0;function Rt(n){var o=n.prototype;if(!o||!o.isReactComponent)throw new Error("Can only polyfill class components");if(typeof n.getDerivedStateFromProps!="function"&&typeof o.getSnapshotBeforeUpdate!="function")return n;var r=null,e=null,t=null;if(typeof o.componentWillMount=="function"?r="componentWillMount":typeof o.UNSAFE_componentWillMount=="function"&&(r="UNSAFE_componentWillMount"),typeof o.componentWillReceiveProps=="function"?e="componentWillReceiveProps":typeof o.UNSAFE_componentWillReceiveProps=="function"&&(e="UNSAFE_componentWillReceiveProps"),typeof o.componentWillUpdate=="function"?t="componentWillUpdate":typeof o.UNSAFE_componentWillUpdate=="function"&&(t="UNSAFE_componentWillUpdate"),r!==null||e!==null||t!==null){var i=n.displayName||n.name,a=typeof n.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
1
+ import{cj as Br,r as P,cN as De,eU as nt,Z as Vr,gW as ri,dk as wt,g as ve,bM as ie,cL as oi,P as b,bb as V,bO as ii,gl as ai,gX as li,gY as si,gZ as ci,g_ as di,g$ as ui,h0 as hi,h1 as fi,h2 as pi,h3 as gi,cI as vi,j as T,fM as se,t as et,dt as Ve,Q as fe,m as ge,bt as mi,dp as Si,bA as qr,bD as Kr,by as yi,bz as Ci,bC as _i,dz as wi,h4 as xi,h5 as bi,dC as Ri,fU as Ti,eV as Ii,a0 as hn,gG as zi,aC as Di,ez as Qr,U as vt,a8 as Pi,aO as Bt,a2 as We,b1 as Oi,dM as fn,b as Wt,du as ke,h6 as Fn,q as Xr,R as ki,h7 as Wn,gO as Ni,E as ct,c3 as dt,D as Mi,B as Li,h8 as Ei,aP as Ai,fY as Yr,H as jt,h9 as ji,ha as Gi,hb as Fi,n as Wi,G as Hn,J as Hi,M as $n,eP as Un,dN as Zt,fK as $i,a3 as Ui,ds as Te}from"./index-DzlR4ROA.js";import{r as Bi,b as Vi,i as Bn,c as qi,d as Vn,D as Ki,H as Qi}from"./index-CUztA_gz.js";import{r as Xi,a as Yi,b as Ji,c as Zi,d as ea,e as ta,f as na,g as ra,h as oa,i as ia}from"./slicedToArray-ROu8OO6l.js";import{i as aa,a as la}from"./isEqual-CFOAIOWs.js";import{_ as sa}from"./actions-DGcLEhc9.js";import{u as ca,C as rt}from"./index.esm-DNLYWMPY.js";import{p as da}from"./index-C4LMPu9u.js";import{u as ua}from"./index-UbiaSDM9.js";import{F as Cn,S as pn,O as ha}from"./Select-C44-YCyD.js";import{I as Jr}from"./InputLabel-BOR0LpK5.js";import{F as fa,T as en}from"./TextField-BjNW7Bjw.js";import{a as pa,b as qn}from"./index-Cmy0GHU-.js";import{a as Zr}from"./team-nBwKhOsv.js";import{u as Vt}from"./blocklet-d8bc_SQ4.js";import{I as Kn}from"./InputAdornment-DT4h3g9o.js";import{A as ga}from"./Autocomplete-BRgMnZ52.js";import{H as va,D as ma,F as Sa}from"./index-ffNDefbl.js";import{u as ya}from"./app-avatar-BvOjNwzf.js";import{S as tn}from"./Skeleton-4s7n7VqF.js";import{B as nn}from"./ButtonGroup-3w5LvaA0.js";import{L as Qn}from"./LoadingButton-DdNqcAhj.js";import"./redux-C4Q_CSvp.js";import"./useLocalStorage-F8gidp1W.js";import"./MoreVert-C_-FQbwq.js";import"./Delete-DFFe3xyW.js";import"./status-6F7XJ5dp.js";import"./url-evaluation-C7b_jErN.js";import"./ExpandMore-CFYbzpsT.js";import"./getValidReactChildren-Y-QNoefA.js";import"./useThemeProps-CRpVKi5P.js";function Ca(n,o){var r=Br(P.useState(n),2),e=r[0],t=r[1],i=P.useMemo(function(){var a=!n,l=function(){return t(function(u){return u===n?a:n})},s=function(u){return t(u)},d=function(){return t(n)},c=function(){return t(a)};return{toggle:l,set:s,setLeft:d,setRight:c}},[]);return[e,i]}function _a(n){var o=Br(Ca(!!n),2),r=o[0],e=o[1],t=e.toggle,i=e.set,a=P.useMemo(function(){var l=function(){return i(!0)},s=function(){return i(!1)};return{toggle:t,set:function(d){return i(!!d)},setTrue:l,setFalse:s}},[]);return[r,a]}var Oe={},eo="Expected a function",Xn=NaN,wa="[object Symbol]",xa=/^\s+|\s+$/g,ba=/^[-+]0x[0-9a-f]+$/i,Ra=/^0b[01]+$/i,Ta=/^0o[0-7]+$/i,Ia=parseInt,za=typeof De=="object"&&De&&De.Object===Object&&De,Da=typeof self=="object"&&self&&self.Object===Object&&self,Pa=za||Da||Function("return this")(),Oa=Object.prototype,ka=Oa.toString,Na=Math.max,Ma=Math.min,rn=function(){return Pa.Date.now()};function La(n,o,r){var e,t,i,a,l,s,d=0,c=!1,u=!1,h=!0;if(typeof n!="function")throw new TypeError(eo);o=Yn(o)||0,Ht(r)&&(c=!!r.leading,u="maxWait"in r,i=u?Na(Yn(r.maxWait)||0,o):i,h="trailing"in r?!!r.trailing:h);function p(x){var R=e,y=t;return e=t=void 0,d=x,a=n.apply(y,R),a}function f(x){return d=x,l=setTimeout(_,o),c?p(x):a}function m(x){var R=x-s,y=x-d,O=o-R;return u?Ma(O,i-y):O}function S(x){var R=x-s,y=x-d;return s===void 0||R>=o||R<0||u&&y>=i}function _(){var x=rn();if(S(x))return g(x);l=setTimeout(_,m(x))}function g(x){return l=void 0,h&&e?p(x):(e=t=void 0,a)}function z(){l!==void 0&&clearTimeout(l),d=0,e=s=t=l=void 0}function C(){return l===void 0?a:g(rn())}function v(){var x=rn(),R=S(x);if(e=arguments,t=this,s=x,R){if(l===void 0)return f(s);if(u)return l=setTimeout(_,o),p(s)}return l===void 0&&(l=setTimeout(_,o)),a}return v.cancel=z,v.flush=C,v}function Ea(n,o,r){var e=!0,t=!0;if(typeof n!="function")throw new TypeError(eo);return Ht(r)&&(e="leading"in r?!!r.leading:e,t="trailing"in r?!!r.trailing:t),La(n,o,{leading:e,maxWait:o,trailing:t})}function Ht(n){var o=typeof n;return!!n&&(o=="object"||o=="function")}function Aa(n){return!!n&&typeof n=="object"}function ja(n){return typeof n=="symbol"||Aa(n)&&ka.call(n)==wa}function Yn(n){if(typeof n=="number")return n;if(ja(n))return Xn;if(Ht(n)){var o=typeof n.valueOf=="function"?n.valueOf():n;n=Ht(o)?o+"":o}if(typeof n!="string")return n===0?n:+n;n=n.replace(xa,"");var r=Ra.test(n);return r||Ta.test(n)?Ia(n.slice(2),r?2:8):ba.test(n)?Xn:+n}var Ga=Ea,qt={exports:{}},ut={exports:{}};(function(){var n,o,r,e,t,i;typeof performance<"u"&&performance!==null&&performance.now?ut.exports=function(){return performance.now()}:typeof nt<"u"&&nt!==null&&nt.hrtime?(ut.exports=function(){return(n()-t)/1e6},o=nt.hrtime,n=function(){var a;return a=o(),a[0]*1e9+a[1]},e=n(),i=nt.uptime()*1e9,t=e-i):Date.now?(ut.exports=function(){return Date.now()-r},r=Date.now()):(ut.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(De);var Fa=ut.exports,Wa=Fa,Pe=typeof window>"u"?De:window,Nt=["moz","webkit"],Qe="AnimationFrame",Ye=Pe["request"+Qe],yt=Pe["cancel"+Qe]||Pe["cancelRequest"+Qe];for(var ot=0;!Ye&&ot<Nt.length;ot++)Ye=Pe[Nt[ot]+"Request"+Qe],yt=Pe[Nt[ot]+"Cancel"+Qe]||Pe[Nt[ot]+"CancelRequest"+Qe];if(!Ye||!yt){var on=0,Jn=0,je=[],Ha=1e3/60;Ye=function(n){if(je.length===0){var o=Wa(),r=Math.max(0,Ha-(o-on));on=r+o,setTimeout(function(){var e=je.slice(0);je.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(on)}catch(i){setTimeout(function(){throw i},0)}},Math.round(r))}return je.push({handle:++Jn,callback:n,cancelled:!1}),Jn},yt=function(n){for(var o=0;o<je.length;o++)je[o].handle===n&&(je[o].cancelled=!0)}}qt.exports=function(n){return Ye.call(Pe,n)};qt.exports.cancel=function(){yt.apply(Pe,arguments)};qt.exports.polyfill=function(n){n||(n=Pe),n.requestAnimationFrame=Ye,n.cancelAnimationFrame=yt};var $a=qt.exports,_n={};Object.defineProperty(_n,"__esModule",{value:!0});_n.default=Ua;function Ua(n){return n.displayName||n.name||(typeof n=="string"&&n.length>0?n:"Unknown")}var xt={};Object.defineProperty(xt,"__esModule",{value:!0});xt.noop=Ba;xt.intBetween=Va;xt.getCoords=qa;function Ba(){}function Va(n,o,r){return Math.floor(Math.min(o,Math.max(n,r)))}function qa(n){return n.type==="touchmove"?{x:n.changedTouches[0].clientX,y:n.changedTouches[0].clientY}:{x:n.clientX,y:n.clientY}}Object.defineProperty(Oe,"__esModule",{value:!0});var Ka=Oe.createHorizontalStrength=no,Qa=Oe.createVerticalStrength=ro,Xa=Oe.createScrollingComponent=ao,Ya=Oe.default=ul;Oe.defaultVerticalStrength=Oe.defaultHorizontalStrength=void 0;var mt=rl(P),it=bt(Vr),Ja=wt,Za=bt(Ga),Zn=bt($a),el=bt(_n),tl=Bi,nl=bt(ri),Mt=xt;function bt(n){return n&&n.__esModule?n:{default:n}}function rl(n){if(n&&n.__esModule)return n;var o={};if(n!=null){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var e=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(n,r):{};e.get||e.set?Object.defineProperty(o,r,e):o[r]=n[r]}}return o.default=n,o}function Gt(n){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Gt=function(r){return typeof r}:Gt=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Gt(n)}function $t(){return $t=Object.assign||function(n){for(var o=1;o<arguments.length;o++){var r=arguments[o];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(n[e]=r[e])}return n},$t.apply(this,arguments)}function ol(n,o){if(n==null)return{};var r=il(n,o),e,t;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);for(t=0;t<i.length;t++)e=i[t],!(o.indexOf(e)>=0)&&Object.prototype.propertyIsEnumerable.call(n,e)&&(r[e]=n[e])}return r}function il(n,o){if(n==null)return{};var r={},e=Object.keys(n),t,i;for(i=0;i<e.length;i++)t=e[i],!(o.indexOf(t)>=0)&&(r[t]=n[t]);return r}function al(n,o){if(!(n instanceof o))throw new TypeError("Cannot call a class as a function")}function ll(n,o){for(var r=0;r<o.length;r++){var e=o[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,e.key,e)}}function sl(n,o,r){return o&&ll(n.prototype,o),n}function cl(n,o){return o&&(Gt(o)==="object"||typeof o=="function")?o:ht(n)}function gn(n){return gn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},gn(n)}function dl(n,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(o&&o.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),o&&vn(n,o)}function vn(n,o){return vn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},vn(n,o)}function ht(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function at(n,o,r){return o in n?Object.defineProperty(n,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[o]=r,n}var to=150;function no(n){return function(r,e){var t=r.x,i=r.w,a=r.y,l=r.h,s=Math.min(i/2,n),d=e.x>=t&&e.x<=t+i,c=d&&e.y>=a&&e.y<=a+l;if(c){if(e.x<t+s)return(e.x-t-s)/s;if(e.x>t+i-s)return-(t+i-e.x-s)/s}return 0}}function ro(n){return function(r,e){var t=r.y,i=r.h,a=r.x,l=r.w,s=Math.min(i/2,n),d=e.y>=t&&e.y<=t+i,c=d&&e.x>=a&&e.x<=a+l;if(c){if(e.y<t+s)return(e.y-t-s)/s;if(e.y>t+i-s)return-(t+i-e.y-s)/s}return 0}}var oo=no(to);Oe.defaultHorizontalStrength=oo;var io=ro(to);Oe.defaultVerticalStrength=io;function ao(n){var o=function(r){dl(e,r);function e(t,i){var a;return al(this,e),a=cl(this,gn(e).call(this,t,i)),at(ht(ht(a)),"updateScrolling",(0,Za.default)(function(l){var s=a.container.getBoundingClientRect(),d=s.left,c=s.top,u=s.width,h=s.height,p={x:d,y:c,w:u,h},f=(0,Mt.getCoords)(l),m=a.props,S=m.horizontalStrength,_=m.verticalStrength;a.scaleX=S(p,f),a.scaleY=_(p,f),!a.frame&&(a.scaleX||a.scaleY)&&a.startScrolling()},100,{trailing:!1})),at(ht(ht(a)),"handleEvent",function(l){a.dragging&&!a.attached&&(a.attach(),a.updateScrolling(l))}),a.wrappedInstance=mt.default.createRef(),a.scaleX=0,a.scaleY=0,a.frame=null,a.attached=!1,a.dragging=!1,a}return sl(e,[{key:"componentDidMount",value:function(){var i=this;this.container=(0,Ja.findDOMNode)(this.wrappedInstance.current),this.container&&typeof this.container.addEventListener=="function"&&this.container.addEventListener("dragover",this.handleEvent),window.document.body.addEventListener("touchmove",this.handleEvent);var a=this.props.dragDropManager;this.clearMonitorSubscription=a.getMonitor().subscribeToStateChange(function(){return i.handleMonitorChange()})}},{key:"componentWillUnmount",value:function(){this.container&&typeof this.container.removeEventListener=="function"&&this.container.removeEventListener("dragover",this.handleEvent),window.document.body.removeEventListener("touchmove",this.handleEvent),this.clearMonitorSubscription(),this.stopScrolling()}},{key:"handleMonitorChange",value:function(){var i=this.props.dragDropManager,a=i.getMonitor().isDragging();!this.dragging&&a?this.dragging=!0:this.dragging&&!a&&(this.dragging=!1,this.stopScrolling())}},{key:"attach",value:function(){this.attached=!0,window.document.body.addEventListener("dragover",this.updateScrolling),window.document.body.addEventListener("touchmove",this.updateScrolling)}},{key:"detach",value:function(){this.attached=!1,window.document.body.removeEventListener("dragover",this.updateScrolling),window.document.body.removeEventListener("touchmove",this.updateScrolling)}},{key:"startScrolling",value:function(){var i=this,a=0,l=function s(){var d=i.scaleX,c=i.scaleY,u=i.container,h=i.props,p=h.strengthMultiplier,f=h.onScrollChange;if(p===0||d+c===0){i.stopScrolling();return}if(a+=1,a%2){var m=u.scrollLeft,S=u.scrollTop,_=u.scrollWidth,g=u.scrollHeight,z=u.clientWidth,C=u.clientHeight,v=d?u.scrollLeft=(0,Mt.intBetween)(0,_-z,m+d*p):m,x=c?u.scrollTop=(0,Mt.intBetween)(0,g-C,S+c*p):S;f(v,x)}i.frame=(0,Zn.default)(s)};l()}},{key:"stopScrolling",value:function(){this.detach(),this.scaleX=0,this.scaleY=0,this.frame&&(Zn.default.cancel(this.frame),this.frame=null)}},{key:"render",value:function(){var i=this.props;i.strengthMultiplier,i.verticalStrength,i.horizontalStrength,i.onScrollChange;var a=ol(i,["strengthMultiplier","verticalStrength","horizontalStrength","onScrollChange"]);return mt.default.createElement(n,$t({ref:this.wrappedInstance},a))}}]),e}(mt.Component);return at(o,"displayName","Scrolling(".concat((0,el.default)(n),")")),at(o,"propTypes",{dragDropManager:it.default.object.isRequired,onScrollChange:it.default.func,verticalStrength:it.default.func,horizontalStrength:it.default.func,strengthMultiplier:it.default.number}),at(o,"defaultProps",{onScrollChange:Mt.noop,verticalStrength:io,horizontalStrength:oo,strengthMultiplier:30}),(0,nl.default)(o,n)}function ul(n){var o=ao(n);return function(r){return mt.default.createElement(tl.DragDropContextConsumer,null,function(e){var t=e.dragDropManager;return t===void 0?null:mt.default.createElement(o,$t({},r,{dragDropManager:t}))})}}var hl=Xi();const te=ve(hl);var fl=Yi();const re=ve(fl);var pl=Ji();const me=ve(pl);var gl=Zi();const Se=ve(gl);var vl=ea();const D=ve(vl);var ml=ta();const ye=ve(ml);var Sl=na();const w=ve(Sl);function lo(){var n=this.constructor.getDerivedStateFromProps(this.props,this.state);n!=null&&this.setState(n)}function so(n){function o(r){var e=this.constructor.getDerivedStateFromProps(n,r);return e??null}this.setState(o.bind(this))}function co(n,o){try{var r=this.props,e=this.state;this.props=n,this.state=o,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,e)}finally{this.props=r,this.state=e}}lo.__suppressDeprecationWarning=!0;so.__suppressDeprecationWarning=!0;co.__suppressDeprecationWarning=!0;function Rt(n){var o=n.prototype;if(!o||!o.isReactComponent)throw new Error("Can only polyfill class components");if(typeof n.getDerivedStateFromProps!="function"&&typeof o.getSnapshotBeforeUpdate!="function")return n;var r=null,e=null,t=null;if(typeof o.componentWillMount=="function"?r="componentWillMount":typeof o.UNSAFE_componentWillMount=="function"&&(r="UNSAFE_componentWillMount"),typeof o.componentWillReceiveProps=="function"?e="componentWillReceiveProps":typeof o.UNSAFE_componentWillReceiveProps=="function"&&(e="UNSAFE_componentWillReceiveProps"),typeof o.componentWillUpdate=="function"?t="componentWillUpdate":typeof o.UNSAFE_componentWillUpdate=="function"&&(t="UNSAFE_componentWillUpdate"),r!==null||e!==null||t!==null){var i=n.displayName||n.name,a=typeof n.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
2
2
 
3
3
  `+i+" uses "+a+" but also contains the following legacy lifecycles:"+(r!==null?`
4
4
  `+r:"")+(e!==null?`
@@ -1 +1 @@
1
- import{t as h,j as n,K as g,m as j,ac as _,P as i}from"./index-Cwi3bFQC.js";import{C as v}from"./click-to-copy-BE3dtZl9.js";import{S as T}from"./shorten-label-C_WwZ4ZV.js";import{T as b}from"./TextField-DwK_GXoo.js";function s({title:c,description:l,confirmPlaceholder:m,cancel:d,confirm:p,params:u,onCancel:f,onConfirm:C,keyName:r}){const{t}=h(),e={title:()=>n.jsxs("div",{children:[c,n.jsx(T,{sx:{fontSize:"14px"},maxLength:64,children:` (${r})`})]}),description:(a,x)=>{const y=o=>{x({...o,__disableConfirm:o.__disableConfirm})};return n.jsxs("div",{children:[n.jsx(g,{severity:"warning",style:{width:"100%"},children:t("common.notice")}),n.jsx("div",{style:{marginTop:24,marginBottom:24},dangerouslySetInnerHTML:{__html:l}}),n.jsxs("div",{style:{marginBottom:24},children:[t("common.click"),":",n.jsx(v,{"data-cy":"click-copy",children:r})]}),n.jsx(j,{component:"div",children:n.jsx(b,{label:m,autoComplete:"off","data-cy":"delete-confirm-input",variant:"outlined",fullWidth:!0,autoFocus:!0,value:a.inputVal,onChange:o=>{y({...a,inputVal:o.target.value,__disableConfirm:r!==o.target.value})}})})]})},confirm:p,cancel:d,onConfirm:C,onCancel:f,params:{inputVal:"",__disableConfirm:!0,...u}};return n.jsx(_,{title:e.title,description:e.description,confirm:e.confirm,cancel:e.cancel,params:e.params,onConfirm:e.onConfirm,onCancel:e.onCancel})}s.propTypes={title:i.any.isRequired,keyName:i.any.isRequired,description:i.any.isRequired,confirmPlaceholder:i.any.isRequired,cancel:i.string,confirm:i.string,params:i.object,onCancel:i.func,onConfirm:i.func.isRequired};s.defaultProps={onCancel:()=>{},cancel:"",confirm:"Confirm",params:{}};export{s as C};
1
+ import{t as h,j as n,K as g,m as j,ac as _,P as i}from"./index-DzlR4ROA.js";import{C as v}from"./click-to-copy-ZbSHXJko.js";import{S as T}from"./shorten-label-BSQEIROA.js";import{T as b}from"./TextField-BjNW7Bjw.js";function s({title:c,description:l,confirmPlaceholder:m,cancel:d,confirm:p,params:u,onCancel:f,onConfirm:C,keyName:r}){const{t}=h(),e={title:()=>n.jsxs("div",{children:[c,n.jsx(T,{sx:{fontSize:"14px"},maxLength:64,children:` (${r})`})]}),description:(a,x)=>{const y=o=>{x({...o,__disableConfirm:o.__disableConfirm})};return n.jsxs("div",{children:[n.jsx(g,{severity:"warning",style:{width:"100%"},children:t("common.notice")}),n.jsx("div",{style:{marginTop:24,marginBottom:24},dangerouslySetInnerHTML:{__html:l}}),n.jsxs("div",{style:{marginBottom:24},children:[t("common.click"),":",n.jsx(v,{"data-cy":"click-copy",children:r})]}),n.jsx(j,{component:"div",children:n.jsx(b,{label:m,autoComplete:"off","data-cy":"delete-confirm-input",variant:"outlined",fullWidth:!0,autoFocus:!0,value:a.inputVal,onChange:o=>{y({...a,inputVal:o.target.value,__disableConfirm:r!==o.target.value})}})})]})},confirm:p,cancel:d,onConfirm:C,onCancel:f,params:{inputVal:"",__disableConfirm:!0,...u}};return n.jsx(_,{title:e.title,description:e.description,confirm:e.confirm,cancel:e.cancel,params:e.params,onConfirm:e.onConfirm,onCancel:e.onCancel})}s.propTypes={title:i.any.isRequired,keyName:i.any.isRequired,description:i.any.isRequired,confirmPlaceholder:i.any.isRequired,cancel:i.string,confirm:i.string,params:i.object,onCancel:i.func,onConfirm:i.func.isRequired};s.defaultProps={onCancel:()=>{},cancel:"",confirm:"Confirm",params:{}};export{s as C};