@abtnode/webapp 1.16.29-beta-88bdefe8 → 1.16.29-beta-a076832b

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 (180) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{Add-C7T4l8Gn.js → Add-BhAOgw8n.js} +1 -1
  4. package/dist/assets/{ArrowDropDown-xKgJDEqt.js → ArrowDropDown-BhDZI_jd.js} +1 -1
  5. package/dist/assets/{Autocomplete-C3WalQVV.js → Autocomplete-chf9WG4F.js} +1 -1
  6. package/dist/assets/{Breadcrumbs-DiRwLDj9.js → Breadcrumbs-Un40qFmK.js} +1 -1
  7. package/dist/assets/{ButtonGroup-9uv0Ooq-.js → ButtonGroup-BE_QoGeC.js} +1 -1
  8. package/dist/assets/{CheckCircle-BAlxEMPQ.js → CheckCircle-B2UAY6EW.js} +1 -1
  9. package/dist/assets/{ChevronLeft-CgKR1kBR.js → ChevronLeft-LgQFTPg9.js} +1 -1
  10. package/dist/assets/{ChevronRight-BaIDXj-9.js → ChevronRight-R1AD6T8t.js} +1 -1
  11. package/dist/assets/{Close-DezaeAwH.js → Close-BA4_6LGT.js} +1 -1
  12. package/dist/assets/{Delete-BowxIQ2G.js → Delete-BuQlLthh.js} +1 -1
  13. package/dist/assets/DeleteOutline-BuR7k_j3.js +1 -0
  14. package/dist/assets/{DeleteOutline-B7YDwBp1.js → DeleteOutline-CfWsbc1a.js} +1 -1
  15. package/dist/assets/{Done-CU5E5wfS.js → Done-CbG1n7TV.js} +1 -1
  16. package/dist/assets/{Edit-C8H0dz0H.js → Edit-D2R20RFt.js} +1 -1
  17. package/dist/assets/{EditIcon-CVWLBr12.js → EditIcon-DWIVTczi.js} +1 -1
  18. package/dist/assets/{FilterList-Cg3ZLCqO.js → FilterList-gGx11q-p.js} +1 -1
  19. package/dist/assets/{Google-C4EY8MZF.js → Google-CpcA0NCN.js} +1 -1
  20. package/dist/assets/{Https-fzXY6T48.js → Https-YbDZUE--.js} +1 -1
  21. package/dist/assets/{InputAdornment-DEjon0jx.js → InputAdornment-BPwm2dnh.js} +1 -1
  22. package/dist/assets/{InputLabel--N-sf10A.js → InputLabel-CfRvg3E0.js} +1 -1
  23. package/dist/assets/{LastPage-Bxb1l4rW.js → LastPage-BkIsmfi2.js} +1 -1
  24. package/dist/assets/{Launch-BYR-opH7.js → Launch-BFRTKCgX.js} +1 -1
  25. package/dist/assets/{Link-S1oS3eUR.js → Link-BZodiBIz.js} +1 -1
  26. package/dist/assets/{LoadingButton-B4rGIi7i.js → LoadingButton-DQ3wXyLh.js} +1 -1
  27. package/dist/assets/{LockIcon-C2Y-MNOG.js → LockIcon-CF3Yl9tf.js} +1 -1
  28. package/dist/assets/{Loop-D3gmJHoj.js → Loop-DJX-NWYU.js} +1 -1
  29. package/dist/assets/{MoreVert-D9URE0XQ.js → MoreVert-Cw5JqD-n.js} +1 -1
  30. package/dist/assets/{Pagination-Dm9dYmcU.js → Pagination-Dw6rLiDa.js} +1 -1
  31. package/dist/assets/{Public-De2nIgej.js → Public-4ZipZDUd.js} +1 -1
  32. package/dist/assets/{SchemaReference.es-DrQygD3_.js → SchemaReference.es-C2JY9xEh.js} +1 -1
  33. package/dist/assets/{Search-Cc01SYnZ.js → Search-Co3tOmY1.js} +1 -1
  34. package/dist/assets/{Select-DoQcGrX-.js → Select-BHyxLJXO.js} +1 -1
  35. package/dist/assets/{Skeleton-CIWFpRU-.js → Skeleton-FWWrVymY.js} +1 -1
  36. package/dist/assets/{Slider-DRcICbfc.js → Slider-CTrqzFQ0.js} +1 -1
  37. package/dist/assets/{Stepper-BRAY6Izr.js → Stepper-BYinN7qr.js} +1 -1
  38. package/dist/assets/{TextField-C9bTzhlw.js → TextField-DsYRZFfL.js} +1 -1
  39. package/dist/assets/{ToggleButtonGroup-puPvtUnk.js → ToggleButtonGroup-LuLWYYav.js} +1 -1
  40. package/dist/assets/{ViewList-CvkmEUQS.js → ViewList-IW1QaH_L.js} +1 -1
  41. package/dist/assets/actions-DCJ-sSPn.js +11 -0
  42. package/dist/assets/{actions-BeFI0W-v.js → actions-DkgRiPBw.js} +1 -1
  43. package/dist/assets/agreement-DByQv9ZX.js +231 -0
  44. package/dist/assets/api-Bm6QocBj.js +1 -0
  45. package/dist/assets/{app-avatar-C44MPSmF.js → app-avatar-Cx6kCeuS.js} +1 -1
  46. package/dist/assets/{audit-logs-C4Bkb7ih.js → audit-logs-XHAxITYC.js} +1 -1
  47. package/dist/assets/blocklet-sVlwX65X.js +1 -0
  48. package/dist/assets/{brace-fold.es-D29aZcEW.js → brace-fold.es-LH9Jpy3f.js} +1 -1
  49. package/dist/assets/{bundle-avatar-DLDLpTjG.js → bundle-avatar-D3srwykJ.js} +1 -1
  50. package/dist/assets/{chart-D3IJWJTo.js → chart-CwUcOCm9.js} +1 -1
  51. package/dist/assets/{click-to-copy-BZk-riG0.js → click-to-copy-CPgkX4m2.js} +1 -1
  52. package/dist/assets/{closebrackets.es-BtbnCp8E.js → closebrackets.es-CZSR_3xe.js} +1 -1
  53. package/dist/assets/{codemirror.es-Bg0J_Vhd.js → codemirror.es-CDBPSM3n.js} +1 -1
  54. package/dist/assets/{comment.es-KgrOxmKR.js → comment.es-DGH4itKk.js} +1 -1
  55. package/dist/assets/{config-navigation-W-s37kH4.js → config-navigation-NRSeF0zB.js} +2 -2
  56. package/dist/assets/delete-confirm-DGNC6LoB.js +1 -0
  57. package/dist/assets/{detail-DMi56K6Z.js → detail-gUZ7dE3r.js} +4 -4
  58. package/dist/assets/{dialog.es-Btz2OrY2.js → dialog.es-BCpHrEUI.js} +1 -1
  59. package/dist/assets/{download-ky0BUIxG.js → download-cKQNB8IS.js} +1 -1
  60. package/dist/assets/{foldgutter.es-Byi2WM5Z.js → foldgutter.es-B4z5FPpx.js} +1 -1
  61. package/dist/assets/getValidReactChildren-CYcUTCCR.js +1 -0
  62. package/dist/assets/{hint.es-bXHOvgiA.js → hint.es-CjtvhU7v.js} +1 -1
  63. package/dist/assets/{hint.es2-BuXXm3d7.js → hint.es2-C3fkpJdT.js} +1 -1
  64. package/dist/assets/{iframe-DFAAx8uu.js → iframe-a4uHsJw3.js} +1 -1
  65. package/dist/assets/{index-C_F9o0jW.js → index-223JGPy0.js} +1 -1
  66. package/dist/assets/{index--LZZdVAf.js → index-7DZ48QpY.js} +1 -1
  67. package/dist/assets/{index-BPjkkjfw.js → index-987rzvE8.js} +1 -1
  68. package/dist/assets/{index-D7MQ5-AL.js → index-9D4yHZMO.js} +1 -1
  69. package/dist/assets/{index-DqcTovzf.js → index-Asa_0R8u.js} +1 -1
  70. package/dist/assets/{index-BPpN0lNJ.js → index-B6yK_bzX.js} +3 -3
  71. package/dist/assets/{index-Dp6pATta.js → index-BH5Du5OK.js} +3 -3
  72. package/dist/assets/{index-C6MLTD6I.js → index-BPGGylov.js} +1 -1
  73. package/dist/assets/{index-kfiCvbxf.js → index-BS3cETry.js} +5 -5
  74. package/dist/assets/{index-pxiyYxy4.js → index-BdXc-VnA.js} +3 -3
  75. package/dist/assets/{index-Cxap6zBz.js → index-Bl4RVAyg.js} +1 -1
  76. package/dist/assets/{index-1lHVG0J4.js → index-BooGyAWJ.js} +1 -1
  77. package/dist/assets/{index-DnQZI3GF.js → index-BsnWcB_C.js} +4 -4
  78. package/dist/assets/{index-xo0TJDhj.js → index-ByUD-X5g.js} +1 -1
  79. package/dist/assets/{index-D2squebi.js → index-Byw0qEee.js} +1 -1
  80. package/dist/assets/index-C32jjYE0.js +54 -0
  81. package/dist/assets/{index-BDE88jyc.js → index-C4vYMHes.js} +1 -1
  82. package/dist/assets/{index-CQf7Z4so.js → index-C7XdmdZm.js} +9 -9
  83. package/dist/assets/{index-CG9nBfwn.js → index-CaILkSHA.js} +14 -14
  84. package/dist/assets/{index-umXw3jlJ.js → index-CbVpP-kP.js} +1 -1
  85. package/dist/assets/{index-B_C7Ukrz.js → index-CiHdSPzG.js} +1 -1
  86. package/dist/assets/{index-BdYHpT6r.js → index-CmnxH5_7.js} +1 -1
  87. package/dist/assets/{index-CV3SX2WR.js → index-CuDSWVTP.js} +3 -3
  88. package/dist/assets/{index-CC9w0fHg.js → index-CuQoWTSG.js} +1 -1
  89. package/dist/assets/{index-DyJXzwsm.js → index-D21hPRpg.js} +1 -1
  90. package/dist/assets/{index-MJrUxd75.js → index-D2bnoRiO.js} +1 -1
  91. package/dist/assets/{index-C3gTEzW2.js → index-D3BiJZx7.js} +1 -1
  92. package/dist/assets/{index-D7cQz7_Z.js → index-D858U3Qw.js} +1 -1
  93. package/dist/assets/{index-r0bswAIE.js → index-DCdEnHXm.js} +1 -1
  94. package/dist/assets/index-DECoPT7p.js +21 -0
  95. package/dist/assets/{index-Bh7w8cMA.js → index-DGMii6rV.js} +1 -1
  96. package/dist/assets/{index-BPa9nOoF.js → index-DLXcR0K0.js} +1 -1
  97. package/dist/assets/{index-BjPXP-LF.js → index-DesqGCgv.js} +1 -1
  98. package/dist/assets/{index-CO7eWdfJ.js → index-DlnomLD1.js} +24 -24
  99. package/dist/assets/index-Do9FcEok.js +1 -0
  100. package/dist/assets/{index-DNPIbpGG.js → index-Dp7ygnu_.js} +1 -1
  101. package/dist/assets/index-DtSAlyAb.js +2491 -0
  102. package/dist/assets/{index-y-DD9Mzo.js → index-QpveLXno.js} +1 -1
  103. package/dist/assets/{index-DuWuyaHf.js → index-ZT9QeB3O.js} +2 -2
  104. package/dist/assets/{index-BJCSughs.js → index-dI-5DMUE.js} +1 -1
  105. package/dist/assets/{index-BwuLBlzz.js → index-erVE_nO9.js} +1 -1
  106. package/dist/assets/{index-Dqxd0b83.js → index-iAyUVxpq.js} +1 -1
  107. package/dist/assets/{index-7Me1Cz-7.js → index-ltfZ8gtL.js} +1 -1
  108. package/dist/assets/index-rDmYbmrh.js +231 -0
  109. package/dist/assets/{index.es-B2L-IBL1.js → index.es-D7AXw11H.js} +1 -1
  110. package/dist/assets/{index.esm-C5nq6pfE.js → index.esm-UKhIq9Zf.js} +1 -1
  111. package/dist/assets/{info-addon.es-CCQiccea.js → info-addon.es-BOBKDmMJ.js} +1 -1
  112. package/dist/assets/{info.es-D2fdwp1x.js → info.es-TxCSWnxL.js} +1 -1
  113. package/dist/assets/{install-from-url-EkPiGZjl.js → install-from-url-C2MMBwn8.js} +1 -1
  114. package/dist/assets/{invitation-D-sDraGF.js → invitation-fKgtV8Zz.js} +1 -1
  115. package/dist/assets/{is-path-prefix-equal-D073Bxne.js → is-path-prefix-equal-DSWbb6Lw.js} +1 -1
  116. package/dist/assets/{isEqual-BScl5EI5.js → isEqual-j-zS_8Gf.js} +1 -1
  117. package/dist/assets/item-DafV54vj.js +414 -0
  118. package/dist/assets/{javascript.es-CNx1DVdE.js → javascript.es-Bs8LWftY.js} +1 -1
  119. package/dist/assets/{jump-to-line.es-DKBOLLFr.js → jump-to-line.es-D-yW_11z.js} +1 -1
  120. package/dist/assets/{jump.es-C4h7D0Yt.js → jump.es-BOkuipP6.js} +1 -1
  121. package/dist/assets/{line-B97TVPTR.js → line-BT-CqrvO.js} +3 -3
  122. package/dist/assets/{lint.es-CKXF2FYr.js → lint.es-Bnw9EvpL.js} +1 -1
  123. package/dist/assets/{lint.es2-BxGfi6X7.js → lint.es2-ClUYPmWE.js} +1 -1
  124. package/dist/assets/{lint.es3-B12DVmNt.js → lint.es3-Wt4762FH.js} +1 -1
  125. package/dist/assets/{list-header-DelQMctR.js → list-header-D8gIqGsc.js} +1 -1
  126. package/dist/assets/{log-Y4UQmvxx.js → log-B4RGVLfQ.js} +1 -1
  127. package/dist/assets/{lottie-CyI6L8JT.js → lottie-DPC4uwjn.js} +1 -1
  128. package/dist/assets/{matchbrackets.es-Do6AWdK4.js → matchbrackets.es-B_DBzsmq.js} +1 -1
  129. package/dist/assets/{memory-BLzA7ZEK.js → memory-BkPehB2B.js} +1 -1
  130. package/dist/assets/{mode.es-D8LjDWYU.js → mode.es-Rcfl9bQx.js} +1 -1
  131. package/dist/assets/{mode.es2-CRmRh6re.js → mode.es2-q3QJyvaG.js} +1 -1
  132. package/dist/assets/{mode.es3-DEi3kmJe.js → mode.es3-BFNoOjTH.js} +1 -1
  133. package/dist/assets/{onlineParser.es-pusjEINe.js → onlineParser.es-Co9RB_dz.js} +1 -1
  134. package/dist/assets/overview-B0Vrv3iN.js +23 -0
  135. package/dist/assets/{react-cXpxtC8N.js → react-DspsQPdu.js} +3 -3
  136. package/dist/assets/{redux-pf-VcEfR.js → redux-CW-2wISG.js} +1 -1
  137. package/dist/assets/{resource-dialog-BTNy_Oow.js → resource-dialog-B2JtbLNW.js} +1 -1
  138. package/dist/assets/runtime-Cdoj20eA.js +1 -0
  139. package/dist/assets/{search.es-C1_2ny1P.js → search.es-CZGl1gJE.js} +1 -1
  140. package/dist/assets/{searchcursor.es-yZD5Ys71.js → searchcursor.es-CV5CjRq7.js} +1 -1
  141. package/dist/assets/service-DM6evFxx.js +1 -0
  142. package/dist/assets/shorten-label-MNOvw9uc.js +1 -0
  143. package/dist/assets/{show-hint.es-oyOlXLi7.js → show-hint.es-Dv8MKhoo.js} +1 -1
  144. package/dist/assets/{slicedToArray-Ce9LLBq3.js → slicedToArray-BjdTUeMu.js} +1 -1
  145. package/dist/assets/{spaces-Dbjo2WCq.js → spaces-CJAn8A_O.js} +1 -1
  146. package/dist/assets/{sublime.es-B3yg_Xen.js → sublime.es-CeJNrSLR.js} +1 -1
  147. package/dist/assets/{switch-control-C0TEfCiJ.js → switch-control-DRGFY74g.js} +1 -1
  148. package/dist/assets/{table-icons-CjO-fhj2.js → table-icons-BL8xSB3P.js} +2 -2
  149. package/dist/assets/{tag-c4l-gLNY.js → tag-BcsNyCIC.js} +1 -1
  150. package/dist/assets/team-BwAkC099.js +1 -0
  151. package/dist/assets/{toUpper-CXm9kpSD.js → toUpper-Cc1D9AuZ.js} +1 -1
  152. package/dist/assets/{traffic-DtFFDlh6.js → traffic-D8r3k_ae.js} +1 -1
  153. package/dist/assets/{url-evaluation-D_jo15CE.js → url-evaluation-Ddzyc50Z.js} +1 -1
  154. package/dist/assets/{url-join-C7-zBUdN.js → url-join-BdHqt1dS.js} +1 -1
  155. package/dist/assets/{use-blocklet-info-for-connect-did-spaces-BAUuYPIl.js → use-blocklet-info-for-connect-did-spaces-ByiBXoYS.js} +1 -1
  156. package/dist/assets/{useLocalStorage-4kEeUWaD.js → useLocalStorage-xuSREX68.js} +1 -1
  157. package/dist/assets/{util-DHUp8byb.js → util-BxfggyNA.js} +1 -1
  158. package/dist/assets/wait-container-Cb5wu-yb.js +181 -0
  159. package/dist/assets/{withStyles-viKl7Y2N.js → withStyles-Bix6STf4.js} +1 -1
  160. package/dist/assets/{wrap-locale-BFLBF298.js → wrap-locale-C2eTlgXw.js} +1 -1
  161. package/dist/index.html +1 -1
  162. package/dist/service-worker.js +1 -1
  163. package/package.json +1 -1
  164. package/dist/assets/DeleteOutline-DtDq0PRx.js +0 -1
  165. package/dist/assets/actions-Hh89UiOD.js +0 -11
  166. package/dist/assets/agreement-EpNiWD7U.js +0 -231
  167. package/dist/assets/api-BG4nC5Xk.js +0 -1
  168. package/dist/assets/delete-confirm-CSZ3OQjS.js +0 -1
  169. package/dist/assets/getValidReactChildren-Bgc9rgRS.js +0 -1
  170. package/dist/assets/index-4rMgZX4U.js +0 -231
  171. package/dist/assets/index-BF8aCpwD.js +0 -2485
  172. package/dist/assets/index-Bm8EtRPV.js +0 -21
  173. package/dist/assets/index-Cbo401VV.js +0 -1
  174. package/dist/assets/index-DBaPghHu.js +0 -54
  175. package/dist/assets/item-yETh_FJZ.js +0 -408
  176. package/dist/assets/overview-8H6-ZDnY.js +0 -23
  177. package/dist/assets/runtime-Cq_Acbof.js +0 -1
  178. package/dist/assets/service-C2WlGo6H.js +0 -1
  179. package/dist/assets/team-wvWuVfZc.js +0 -1
  180. package/dist/assets/wait-container-BTUIgvS9.js +0 -171
@@ -1,4 +1,4 @@
1
- import{c as su}from"./index-kfiCvbxf.js";import"./index-BF8aCpwD.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-BS3cETry.js";import"./index-DtSAlyAb.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-Bg0J_Vhd.js";import"./index-kfiCvbxf.js";import"./index-BF8aCpwD.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-CDBPSM3n.js";import"./index-BS3cETry.js";import"./index-DtSAlyAb.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{ck as qr,r as P,cz as De,cu as rt,Y as Kr,gP as oi,dt as wt,g as ve,bN as ie,cU as ii,P as b,b9 as V,bP as ai,gd as li,gQ as si,gR as ci,gS as di,gT as ui,gU as hi,gV as fi,gW as pi,gX as gi,gY as vi,cv as mi,j as T,fR as se,q as tt,dB as Ve,O as fe,m as ge,bt as Si,dx as yi,bA as Qr,bD as Xr,by as Ci,bz as _i,bC as wi,dF as xi,gZ as bi,g_ as Ri,ga as Ti,fK as Ii,cA as zi,$ as hn,gz as Di,aC as Pi,eB as Yr,S as mt,a9 as Oi,cn as Ut,a2 as We,a_ as ki,dO as fn,b as Wt,dC as ke,g$ as Wn,a1 as Jr,Q as Ni,h0 as Hn,gH as Mi,A as dt,c8 as ut,D as Li,B as Ei,h1 as Ai,bm as ji,h2 as Zr,F as jt,h3 as Fi,h4 as Gi,h5 as Wi,n as Hi,G as $n,H as $i,K as Bn,eR as Un,dP as Zt,fB as Bi,a3 as Ui,dA as Te}from"./index-BF8aCpwD.js";import{r as Vi,b as qi,i as Vn,c as Ki,d as qn,D as Qi,H as Xi}from"./index--LZZdVAf.js";import{r as Yi,a as Ji,b as Zi,c as ea,d as ta,e as na,f as ra,g as oa,h as ia,i as aa}from"./slicedToArray-Ce9LLBq3.js";import{i as la,a as sa}from"./isEqual-BScl5EI5.js";import{_ as ca}from"./actions-Hh89UiOD.js";import{u as da,C as ot}from"./index.esm-C5nq6pfE.js";import{p as ua}from"./index-DyJXzwsm.js";import{u as ha}from"./index-Bh7w8cMA.js";import{F as _n,S as pn,O as fa}from"./Select-DoQcGrX-.js";import{I as eo}from"./InputLabel--N-sf10A.js";import{F as pa,T as en}from"./TextField-C9bTzhlw.js";import{a as ga,b as Kn}from"./index-Cbo401VV.js";import{b as to,u as Vt}from"./team-wvWuVfZc.js";import{I as Qn}from"./InputAdornment-DEjon0jx.js";import{A as va}from"./Autocomplete-C3WalQVV.js";import{H as ma,D as Sa,F as ya}from"./index-D7cQz7_Z.js";import{u as Ca}from"./app-avatar-C44MPSmF.js";import{S as tn}from"./Skeleton-CIWFpRU-.js";import{B as nn}from"./ButtonGroup-9uv0Ooq-.js";import{L as Xn}from"./LoadingButton-B4rGIi7i.js";import"./redux-pf-VcEfR.js";import"./useLocalStorage-4kEeUWaD.js";import"./MoreVert-D9URE0XQ.js";import"./Delete-BowxIQ2G.js";import"./url-evaluation-D_jo15CE.js";import"./tag-c4l-gLNY.js";import"./getValidReactChildren-Bgc9rgRS.js";function _a(t,o){t===void 0&&(t=!1);var r=qr(P.useState(t),2),e=r[0],n=r[1],i=P.useMemo(function(){var a=o===void 0?!t:o,l=function(){return n(function(u){return u===t?a:t})},s=function(u){return n(u)},d=function(){return n(t)},c=function(){return n(a)};return{toggle:l,set:s,setLeft:d,setRight:c}},[]);return[e,i]}function wa(t){t===void 0&&(t=!1);var o=qr(_a(!!t),2),r=o[0],e=o[1],n=e.toggle,i=e.set,a=P.useMemo(function(){var l=function(){return i(!0)},s=function(){return i(!1)};return{toggle:n,set:function(d){return i(!!d)},setTrue:l,setFalse:s}},[]);return[r,a]}var Oe={},no="Expected a function",Yn=NaN,xa="[object Symbol]",ba=/^\s+|\s+$/g,Ra=/^[-+]0x[0-9a-f]+$/i,Ta=/^0b[01]+$/i,Ia=/^0o[0-7]+$/i,za=parseInt,Da=typeof De=="object"&&De&&De.Object===Object&&De,Pa=typeof self=="object"&&self&&self.Object===Object&&self,Oa=Da||Pa||Function("return this")(),ka=Object.prototype,Na=ka.toString,Ma=Math.max,La=Math.min,rn=function(){return Oa.Date.now()};function Ea(t,o,r){var e,n,i,a,l,s,d=0,c=!1,u=!1,h=!0;if(typeof t!="function")throw new TypeError(no);o=Jn(o)||0,Ht(r)&&(c=!!r.leading,u="maxWait"in r,i=u?Ma(Jn(r.maxWait)||0,o):i,h="trailing"in r?!!r.trailing:h);function p(x){var R=e,y=n;return e=n=void 0,d=x,a=t.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?La(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=n=void 0,a)}function z(){l!==void 0&&clearTimeout(l),d=0,e=s=n=l=void 0}function C(){return l===void 0?a:g(rn())}function v(){var x=rn(),R=S(x);if(e=arguments,n=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 Aa(t,o,r){var e=!0,n=!0;if(typeof t!="function")throw new TypeError(no);return Ht(r)&&(e="leading"in r?!!r.leading:e,n="trailing"in r?!!r.trailing:n),Ea(t,o,{leading:e,maxWait:o,trailing:n})}function Ht(t){var o=typeof t;return!!t&&(o=="object"||o=="function")}function ja(t){return!!t&&typeof t=="object"}function Fa(t){return typeof t=="symbol"||ja(t)&&Na.call(t)==xa}function Jn(t){if(typeof t=="number")return t;if(Fa(t))return Yn;if(Ht(t)){var o=typeof t.valueOf=="function"?t.valueOf():t;t=Ht(o)?o+"":o}if(typeof t!="string")return t===0?t:+t;t=t.replace(ba,"");var r=Ta.test(t);return r||Ia.test(t)?za(t.slice(2),r?2:8):Ra.test(t)?Yn:+t}var Ga=Aa,qt={exports:{}},ht={exports:{}};(function(){var t,o,r,e,n,i;typeof performance<"u"&&performance!==null&&performance.now?ht.exports=function(){return performance.now()}:typeof rt<"u"&&rt!==null&&rt.hrtime?(ht.exports=function(){return(t()-n)/1e6},o=rt.hrtime,t=function(){var a;return a=o(),a[0]*1e9+a[1]},e=t(),i=rt.uptime()*1e9,n=e-i):Date.now?(ht.exports=function(){return Date.now()-r},r=Date.now()):(ht.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(De);var Wa=ht.exports,Ha=Wa,Pe=typeof window>"u"?De:window,Nt=["moz","webkit"],Qe="AnimationFrame",Ye=Pe["request"+Qe],Ct=Pe["cancel"+Qe]||Pe["cancelRequest"+Qe];for(var it=0;!Ye&&it<Nt.length;it++)Ye=Pe[Nt[it]+"Request"+Qe],Ct=Pe[Nt[it]+"Cancel"+Qe]||Pe[Nt[it]+"CancelRequest"+Qe];if(!Ye||!Ct){var on=0,Zn=0,je=[],$a=1e3/60;Ye=function(t){if(je.length===0){var o=Ha(),r=Math.max(0,$a-(o-on));on=r+o,setTimeout(function(){var e=je.slice(0);je.length=0;for(var n=0;n<e.length;n++)if(!e[n].cancelled)try{e[n].callback(on)}catch(i){setTimeout(function(){throw i},0)}},Math.round(r))}return je.push({handle:++Zn,callback:t,cancelled:!1}),Zn},Ct=function(t){for(var o=0;o<je.length;o++)je[o].handle===t&&(je[o].cancelled=!0)}}qt.exports=function(t){return Ye.call(Pe,t)};qt.exports.cancel=function(){Ct.apply(Pe,arguments)};qt.exports.polyfill=function(t){t||(t=Pe),t.requestAnimationFrame=Ye,t.cancelAnimationFrame=Ct};var Ba=qt.exports,wn={};Object.defineProperty(wn,"__esModule",{value:!0});wn.default=Ua;function Ua(t){return t.displayName||t.name||(typeof t=="string"&&t.length>0?t:"Unknown")}var xt={};Object.defineProperty(xt,"__esModule",{value:!0});xt.noop=Va;xt.intBetween=qa;xt.getCoords=Ka;function Va(){}function qa(t,o,r){return Math.floor(Math.min(o,Math.max(t,r)))}function Ka(t){return t.type==="touchmove"?{x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY}:{x:t.clientX,y:t.clientY}}Object.defineProperty(Oe,"__esModule",{value:!0});var Qa=Oe.createHorizontalStrength=oo,Xa=Oe.createVerticalStrength=io,Ya=Oe.createScrollingComponent=so,Ja=Oe.default=ul;Oe.defaultVerticalStrength=Oe.defaultHorizontalStrength=void 0;var St=ol(P),at=bt(Kr),Za=wt,el=bt(Ga),er=bt(Ba),tl=bt(wn),nl=Vi,rl=bt(oi),Mt=xt;function bt(t){return t&&t.__esModule?t:{default:t}}function ol(t){if(t&&t.__esModule)return t;var o={};if(t!=null){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var e=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,r):{};e.get||e.set?Object.defineProperty(o,r,e):o[r]=t[r]}}return o.default=t,o}function Ft(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ft=function(r){return typeof r}:Ft=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ft(t)}function $t(){return $t=Object.assign||function(t){for(var o=1;o<arguments.length;o++){var r=arguments[o];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t},$t.apply(this,arguments)}function il(t,o){if(t==null)return{};var r=al(t,o),e,n;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)e=i[n],!(o.indexOf(e)>=0)&&Object.prototype.propertyIsEnumerable.call(t,e)&&(r[e]=t[e])}return r}function al(t,o){if(t==null)return{};var r={},e=Object.keys(t),n,i;for(i=0;i<e.length;i++)n=e[i],!(o.indexOf(n)>=0)&&(r[n]=t[n]);return r}function ll(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}function tr(t,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(t,e.key,e)}}function sl(t,o,r){return o&&tr(t.prototype,o),r&&tr(t,r),t}function cl(t,o){return o&&(Ft(o)==="object"||typeof o=="function")?o:ft(t)}function gn(t){return gn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},gn(t)}function dl(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(o&&o.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),o&&vn(t,o)}function vn(t,o){return vn=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},vn(t,o)}function ft(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function lt(t,o,r){return o in t?Object.defineProperty(t,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[o]=r,t}var ro=150;function oo(t){return function(r,e){var n=r.x,i=r.w,a=r.y,l=r.h,s=Math.min(i/2,t),d=e.x>=n&&e.x<=n+i,c=d&&e.y>=a&&e.y<=a+l;if(c){if(e.x<n+s)return(e.x-n-s)/s;if(e.x>n+i-s)return-(n+i-e.x-s)/s}return 0}}function io(t){return function(r,e){var n=r.y,i=r.h,a=r.x,l=r.w,s=Math.min(i/2,t),d=e.y>=n&&e.y<=n+i,c=d&&e.x>=a&&e.x<=a+l;if(c){if(e.y<n+s)return(e.y-n-s)/s;if(e.y>n+i-s)return-(n+i-e.y-s)/s}return 0}}var ao=oo(ro);Oe.defaultHorizontalStrength=ao;var lo=io(ro);Oe.defaultVerticalStrength=lo;function so(t){var o=function(r){dl(e,r);function e(n,i){var a;return ll(this,e),a=cl(this,gn(e).call(this,n,i)),lt(ft(ft(a)),"updateScrolling",(0,el.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})),lt(ft(ft(a)),"handleEvent",function(l){a.dragging&&!a.attached&&(a.attach(),a.updateScrolling(l))}),a.wrappedInstance=St.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,Za.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,er.default)(s)};l()}},{key:"stopScrolling",value:function(){this.detach(),this.scaleX=0,this.scaleY=0,this.frame&&(er.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=il(i,["strengthMultiplier","verticalStrength","horizontalStrength","onScrollChange"]);return St.default.createElement(t,$t({ref:this.wrappedInstance},a))}}]),e}(St.Component);return lt(o,"displayName","Scrolling(".concat((0,tl.default)(t),")")),lt(o,"propTypes",{dragDropManager:at.default.object.isRequired,onScrollChange:at.default.func,verticalStrength:at.default.func,horizontalStrength:at.default.func,strengthMultiplier:at.default.number}),lt(o,"defaultProps",{onScrollChange:Mt.noop,verticalStrength:lo,horizontalStrength:ao,strengthMultiplier:30}),(0,rl.default)(o,t)}function ul(t){var o=so(t);return function(r){return St.default.createElement(nl.DragDropContextConsumer,null,function(e){var n=e.dragDropManager;return n===void 0?null:St.default.createElement(o,$t({},r,{dragDropManager:n}))})}}var hl=Yi();const te=ve(hl);var fl=Ji();const re=ve(fl);var pl=Zi();const me=ve(pl);var gl=ea();const Se=ve(gl);var vl=ta();const D=ve(vl);var ml=na();const ye=ve(ml);var Sl=ra();const w=ve(Sl);function co(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state);t!=null&&this.setState(t)}function uo(t){function o(r){var e=this.constructor.getDerivedStateFromProps(t,r);return e??null}this.setState(o.bind(this))}function ho(t,o){try{var r=this.props,e=this.state;this.props=t,this.state=o,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,e)}finally{this.props=r,this.state=e}}co.__suppressDeprecationWarning=!0;uo.__suppressDeprecationWarning=!0;ho.__suppressDeprecationWarning=!0;function Rt(t){var o=t.prototype;if(!o||!o.isReactComponent)throw new Error("Can only polyfill class components");if(typeof t.getDerivedStateFromProps!="function"&&typeof o.getSnapshotBeforeUpdate!="function")return t;var r=null,e=null,n=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"?n="componentWillUpdate":typeof o.UNSAFE_componentWillUpdate=="function"&&(n="UNSAFE_componentWillUpdate"),r!==null||e!==null||n!==null){var i=t.displayName||t.name,a=typeof t.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
1
+ import{ck as qr,r as P,cz as De,cu as rt,Y as Kr,gS as oi,dt as wt,g as ve,bN as ie,cU as ii,P as b,b9 as V,bP as ai,gh as li,gT as si,gU as ci,gV as di,gW as ui,gX as hi,gY as fi,gZ as pi,g_ as gi,g$ as vi,cv as mi,j as T,fR as se,q as tt,dB as Ve,O as fe,m as ge,bt as Si,dx as yi,bA as Qr,bD as Xr,by as Ci,bz as _i,bC as wi,dF as xi,h0 as bi,h1 as Ri,ga as Ti,fK as Ii,cA as zi,$ as hn,gf as Di,aC as Pi,eB as Yr,S as mt,a9 as Oi,cn as Ut,a2 as We,a_ as ki,dO as fn,b as Wt,dC as ke,h2 as Wn,a1 as Jr,Q as Ni,h3 as Hn,gK as Mi,A as dt,c8 as ut,D as Li,B as Ei,h4 as Ai,bm as ji,h5 as Zr,F as jt,h6 as Fi,h7 as Gi,h8 as Wi,n as Hi,G as $n,H as $i,K as Bn,eR as Un,dP as Zt,fB as Bi,a3 as Ui,dA as Te}from"./index-DtSAlyAb.js";import{r as Vi,b as qi,i as Vn,c as Ki,d as qn,D as Qi,H as Xi}from"./index-7DZ48QpY.js";import{r as Yi,a as Ji,b as Zi,c as ea,d as ta,e as na,f as ra,g as oa,h as ia,i as aa}from"./slicedToArray-BjdTUeMu.js";import{i as la,a as sa}from"./isEqual-j-zS_8Gf.js";import{_ as ca}from"./actions-DCJ-sSPn.js";import{u as da,C as ot}from"./index.esm-UKhIq9Zf.js";import{p as ua}from"./index-D21hPRpg.js";import{u as ha}from"./index-DGMii6rV.js";import{F as _n,S as pn,O as fa}from"./Select-BHyxLJXO.js";import{I as eo}from"./InputLabel-CfRvg3E0.js";import{F as pa,T as en}from"./TextField-DsYRZFfL.js";import{a as ga,b as Kn}from"./index-Do9FcEok.js";import{a as to}from"./team-BwAkC099.js";import{u as Vt}from"./blocklet-sVlwX65X.js";import{I as Qn}from"./InputAdornment-BPwm2dnh.js";import{A as va}from"./Autocomplete-chf9WG4F.js";import{H as ma,D as Sa,F as ya}from"./index-D858U3Qw.js";import{u as Ca}from"./app-avatar-Cx6kCeuS.js";import{S as tn}from"./Skeleton-FWWrVymY.js";import{B as nn}from"./ButtonGroup-BE_QoGeC.js";import{L as Xn}from"./LoadingButton-DQ3wXyLh.js";import"./redux-CW-2wISG.js";import"./useLocalStorage-xuSREX68.js";import"./MoreVert-Cw5JqD-n.js";import"./Delete-BuQlLthh.js";import"./url-evaluation-Ddzyc50Z.js";import"./tag-BcsNyCIC.js";import"./getValidReactChildren-CYcUTCCR.js";function _a(t,o){t===void 0&&(t=!1);var r=qr(P.useState(t),2),e=r[0],n=r[1],i=P.useMemo(function(){var a=o===void 0?!t:o,l=function(){return n(function(u){return u===t?a:t})},s=function(u){return n(u)},d=function(){return n(t)},c=function(){return n(a)};return{toggle:l,set:s,setLeft:d,setRight:c}},[]);return[e,i]}function wa(t){t===void 0&&(t=!1);var o=qr(_a(!!t),2),r=o[0],e=o[1],n=e.toggle,i=e.set,a=P.useMemo(function(){var l=function(){return i(!0)},s=function(){return i(!1)};return{toggle:n,set:function(d){return i(!!d)},setTrue:l,setFalse:s}},[]);return[r,a]}var Oe={},no="Expected a function",Yn=NaN,xa="[object Symbol]",ba=/^\s+|\s+$/g,Ra=/^[-+]0x[0-9a-f]+$/i,Ta=/^0b[01]+$/i,Ia=/^0o[0-7]+$/i,za=parseInt,Da=typeof De=="object"&&De&&De.Object===Object&&De,Pa=typeof self=="object"&&self&&self.Object===Object&&self,Oa=Da||Pa||Function("return this")(),ka=Object.prototype,Na=ka.toString,Ma=Math.max,La=Math.min,rn=function(){return Oa.Date.now()};function Ea(t,o,r){var e,n,i,a,l,s,d=0,c=!1,u=!1,h=!0;if(typeof t!="function")throw new TypeError(no);o=Jn(o)||0,Ht(r)&&(c=!!r.leading,u="maxWait"in r,i=u?Ma(Jn(r.maxWait)||0,o):i,h="trailing"in r?!!r.trailing:h);function p(x){var R=e,y=n;return e=n=void 0,d=x,a=t.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?La(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=n=void 0,a)}function z(){l!==void 0&&clearTimeout(l),d=0,e=s=n=l=void 0}function C(){return l===void 0?a:g(rn())}function v(){var x=rn(),R=S(x);if(e=arguments,n=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 Aa(t,o,r){var e=!0,n=!0;if(typeof t!="function")throw new TypeError(no);return Ht(r)&&(e="leading"in r?!!r.leading:e,n="trailing"in r?!!r.trailing:n),Ea(t,o,{leading:e,maxWait:o,trailing:n})}function Ht(t){var o=typeof t;return!!t&&(o=="object"||o=="function")}function ja(t){return!!t&&typeof t=="object"}function Fa(t){return typeof t=="symbol"||ja(t)&&Na.call(t)==xa}function Jn(t){if(typeof t=="number")return t;if(Fa(t))return Yn;if(Ht(t)){var o=typeof t.valueOf=="function"?t.valueOf():t;t=Ht(o)?o+"":o}if(typeof t!="string")return t===0?t:+t;t=t.replace(ba,"");var r=Ta.test(t);return r||Ia.test(t)?za(t.slice(2),r?2:8):Ra.test(t)?Yn:+t}var Ga=Aa,qt={exports:{}},ht={exports:{}};(function(){var t,o,r,e,n,i;typeof performance<"u"&&performance!==null&&performance.now?ht.exports=function(){return performance.now()}:typeof rt<"u"&&rt!==null&&rt.hrtime?(ht.exports=function(){return(t()-n)/1e6},o=rt.hrtime,t=function(){var a;return a=o(),a[0]*1e9+a[1]},e=t(),i=rt.uptime()*1e9,n=e-i):Date.now?(ht.exports=function(){return Date.now()-r},r=Date.now()):(ht.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(De);var Wa=ht.exports,Ha=Wa,Pe=typeof window>"u"?De:window,Nt=["moz","webkit"],Qe="AnimationFrame",Ye=Pe["request"+Qe],Ct=Pe["cancel"+Qe]||Pe["cancelRequest"+Qe];for(var it=0;!Ye&&it<Nt.length;it++)Ye=Pe[Nt[it]+"Request"+Qe],Ct=Pe[Nt[it]+"Cancel"+Qe]||Pe[Nt[it]+"CancelRequest"+Qe];if(!Ye||!Ct){var on=0,Zn=0,je=[],$a=1e3/60;Ye=function(t){if(je.length===0){var o=Ha(),r=Math.max(0,$a-(o-on));on=r+o,setTimeout(function(){var e=je.slice(0);je.length=0;for(var n=0;n<e.length;n++)if(!e[n].cancelled)try{e[n].callback(on)}catch(i){setTimeout(function(){throw i},0)}},Math.round(r))}return je.push({handle:++Zn,callback:t,cancelled:!1}),Zn},Ct=function(t){for(var o=0;o<je.length;o++)je[o].handle===t&&(je[o].cancelled=!0)}}qt.exports=function(t){return Ye.call(Pe,t)};qt.exports.cancel=function(){Ct.apply(Pe,arguments)};qt.exports.polyfill=function(t){t||(t=Pe),t.requestAnimationFrame=Ye,t.cancelAnimationFrame=Ct};var Ba=qt.exports,wn={};Object.defineProperty(wn,"__esModule",{value:!0});wn.default=Ua;function Ua(t){return t.displayName||t.name||(typeof t=="string"&&t.length>0?t:"Unknown")}var xt={};Object.defineProperty(xt,"__esModule",{value:!0});xt.noop=Va;xt.intBetween=qa;xt.getCoords=Ka;function Va(){}function qa(t,o,r){return Math.floor(Math.min(o,Math.max(t,r)))}function Ka(t){return t.type==="touchmove"?{x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY}:{x:t.clientX,y:t.clientY}}Object.defineProperty(Oe,"__esModule",{value:!0});var Qa=Oe.createHorizontalStrength=oo,Xa=Oe.createVerticalStrength=io,Ya=Oe.createScrollingComponent=so,Ja=Oe.default=ul;Oe.defaultVerticalStrength=Oe.defaultHorizontalStrength=void 0;var St=ol(P),at=bt(Kr),Za=wt,el=bt(Ga),er=bt(Ba),tl=bt(wn),nl=Vi,rl=bt(oi),Mt=xt;function bt(t){return t&&t.__esModule?t:{default:t}}function ol(t){if(t&&t.__esModule)return t;var o={};if(t!=null){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var e=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,r):{};e.get||e.set?Object.defineProperty(o,r,e):o[r]=t[r]}}return o.default=t,o}function Ft(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ft=function(r){return typeof r}:Ft=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ft(t)}function $t(){return $t=Object.assign||function(t){for(var o=1;o<arguments.length;o++){var r=arguments[o];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t},$t.apply(this,arguments)}function il(t,o){if(t==null)return{};var r=al(t,o),e,n;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)e=i[n],!(o.indexOf(e)>=0)&&Object.prototype.propertyIsEnumerable.call(t,e)&&(r[e]=t[e])}return r}function al(t,o){if(t==null)return{};var r={},e=Object.keys(t),n,i;for(i=0;i<e.length;i++)n=e[i],!(o.indexOf(n)>=0)&&(r[n]=t[n]);return r}function ll(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}function tr(t,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(t,e.key,e)}}function sl(t,o,r){return o&&tr(t.prototype,o),r&&tr(t,r),t}function cl(t,o){return o&&(Ft(o)==="object"||typeof o=="function")?o:ft(t)}function gn(t){return gn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},gn(t)}function dl(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(o&&o.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),o&&vn(t,o)}function vn(t,o){return vn=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},vn(t,o)}function ft(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function lt(t,o,r){return o in t?Object.defineProperty(t,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[o]=r,t}var ro=150;function oo(t){return function(r,e){var n=r.x,i=r.w,a=r.y,l=r.h,s=Math.min(i/2,t),d=e.x>=n&&e.x<=n+i,c=d&&e.y>=a&&e.y<=a+l;if(c){if(e.x<n+s)return(e.x-n-s)/s;if(e.x>n+i-s)return-(n+i-e.x-s)/s}return 0}}function io(t){return function(r,e){var n=r.y,i=r.h,a=r.x,l=r.w,s=Math.min(i/2,t),d=e.y>=n&&e.y<=n+i,c=d&&e.x>=a&&e.x<=a+l;if(c){if(e.y<n+s)return(e.y-n-s)/s;if(e.y>n+i-s)return-(n+i-e.y-s)/s}return 0}}var ao=oo(ro);Oe.defaultHorizontalStrength=ao;var lo=io(ro);Oe.defaultVerticalStrength=lo;function so(t){var o=function(r){dl(e,r);function e(n,i){var a;return ll(this,e),a=cl(this,gn(e).call(this,n,i)),lt(ft(ft(a)),"updateScrolling",(0,el.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})),lt(ft(ft(a)),"handleEvent",function(l){a.dragging&&!a.attached&&(a.attach(),a.updateScrolling(l))}),a.wrappedInstance=St.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,Za.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,er.default)(s)};l()}},{key:"stopScrolling",value:function(){this.detach(),this.scaleX=0,this.scaleY=0,this.frame&&(er.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=il(i,["strengthMultiplier","verticalStrength","horizontalStrength","onScrollChange"]);return St.default.createElement(t,$t({ref:this.wrappedInstance},a))}}]),e}(St.Component);return lt(o,"displayName","Scrolling(".concat((0,tl.default)(t),")")),lt(o,"propTypes",{dragDropManager:at.default.object.isRequired,onScrollChange:at.default.func,verticalStrength:at.default.func,horizontalStrength:at.default.func,strengthMultiplier:at.default.number}),lt(o,"defaultProps",{onScrollChange:Mt.noop,verticalStrength:lo,horizontalStrength:ao,strengthMultiplier:30}),(0,rl.default)(o,t)}function ul(t){var o=so(t);return function(r){return St.default.createElement(nl.DragDropContextConsumer,null,function(e){var n=e.dragDropManager;return n===void 0?null:St.default.createElement(o,$t({},r,{dragDropManager:n}))})}}var hl=Yi();const te=ve(hl);var fl=Ji();const re=ve(fl);var pl=Zi();const me=ve(pl);var gl=ea();const Se=ve(gl);var vl=ta();const D=ve(vl);var ml=na();const ye=ve(ml);var Sl=ra();const w=ve(Sl);function co(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state);t!=null&&this.setState(t)}function uo(t){function o(r){var e=this.constructor.getDerivedStateFromProps(t,r);return e??null}this.setState(o.bind(this))}function ho(t,o){try{var r=this.props,e=this.state;this.props=t,this.state=o,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,e)}finally{this.props=r,this.state=e}}co.__suppressDeprecationWarning=!0;uo.__suppressDeprecationWarning=!0;ho.__suppressDeprecationWarning=!0;function Rt(t){var o=t.prototype;if(!o||!o.isReactComponent)throw new Error("Can only polyfill class components");if(typeof t.getDerivedStateFromProps!="function"&&typeof o.getSnapshotBeforeUpdate!="function")return t;var r=null,e=null,n=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"?n="componentWillUpdate":typeof o.UNSAFE_componentWillUpdate=="function"&&(n="UNSAFE_componentWillUpdate"),r!==null||e!==null||n!==null){var i=t.displayName||t.name,a=typeof t.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?`
@@ -22,4 +22,4 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof t.getDerivedStat
22
22
  .dashboard-content + div {
23
23
  display: none;
24
24
  }
25
- `,Jc={login:Te,logout:Te,switch:Te,switchDid:Te,switchProfile:Te,switchPassport:Te,useDid:()=>({walletDid:"abcdefghijklmnopqrstuvwxyz"}),useOAuth:()=>({logoutOAuth:Te,bindOAuth:Te,configs:{},switchOAuthPassport:Te})},At={header:"Header",footer:"Footer",bottom:"Footer Link",social:"Footer Social",dashboard:"Dashboard",sessionManager:"SessionBlocklet",userCenter:"UserCenter"};function Td(){const{t}=tt(),{blocklet:o}=Vt(),r=P.useRef(null),{roles:e}=to(),n=$i(v=>v.breakpoints.down("md")),i=Ut({saveLoading:!1,resetLoading:!1,showResetConfirm:!1,mockRole:"owner"}),{state:a,navigation:l,getNavigation:s,saveNavigationList:d,resetNavigation:c,updateActiveSection:u,updateNavigationTree:h,updateNavigationItem:p,delNavigationItem:f,addNavigationItem:m}=Qc(),S=P.useCallback(v=>{r.current.add({parent:v},(x,R)=>{m(R),x()})},[m]),_=P.useCallback((v,x={})=>{switch(v){case"edit":r.current.edit(x,(R,y)=>{p(y),R()});break;case"toggle":p({id:x.id,visible:!x.visible});break;case"del":f(x.id);break}},[f,p]),g=P.useCallback(async()=>{try{i.saveLoading=!0,await d(a.rawNavigation),dt.success(t("common.succeeded"))}catch(v){dt.error(T.jsxs(fe,{children:[T.jsx(ge,{variant:"subtitle2",children:t("navigation.actionFailed")}),T.jsx(ge,{variant:"body1",children:Bn(v)||v.error})]}))}finally{i.saveLoading=!1}},[a.rawNavigation,i,d,t]),z=P.useCallback(async()=>{try{i.resetLoading=!0,await c(),dt.success(t("navigation.action.resetSuccessful"),{variant:"success"})}catch(v){dt.error(T.jsxs(fe,{children:[T.jsx(ge,{variant:"subtitle2",children:t("navigation.actionFailed")}),T.jsx(ge,{variant:"body1",children:Bn(v)||v.error})]}))}finally{i.resetLoading=!1}},[i,c,t]),C=P.useMemo(()=>({session:{...Jc,user:{did:o.appDid,fullName:"Preview User",role:i.mockRole}}}),[o.appDid,i.mockRole]);return T.jsxs(T.Fragment,{children:[n&&T.jsx(pn,{fullWidth:!0,size:"small",value:a.activeSection,onChange:v=>u(v.target.value),children:Object.keys(At).map(v=>T.jsxs(mt,{value:v,children:[At[v],` (${s(v).length})`]}))}),!n&&T.jsx(nn,{variant:"outlined",children:Object.keys(At).map(v=>T.jsxs(fn,{variant:a.activeSection===v?"contained":void 0,onClick:()=>u(v),children:[At[v],` (${s(v).length})`]},v))}),T.jsxs(Un,{variant:"dense",sx:{paddingLeft:"0px !important",paddingRight:"0px !important",mt:2},children:[T.jsx(ge,{variant:"h6",component:"div",sx:{flexGrow:1},children:t("common.config")}),T.jsx(nn,{variant:"outlined",children:T.jsx(Xn,{size:"small",variant:"outlined",color:"error",startIcon:T.jsx(se,{icon:"system-uicons:reset"}),sx:{mr:2},loading:i.resetLoading,loadingPosition:"start",onClick:()=>{i.showResetConfirm=!0},children:t("navigation.action.reset")})}),T.jsxs(nn,{variant:"outlined",children:[T.jsx(fn,{size:"small",variant:"outlined",startIcon:T.jsx(se,{icon:"mdi:plus"}),onClick:()=>S(),children:t("navigation.action.new")}),T.jsx(Xn,{size:"small",variant:"contained",startIcon:T.jsx(se,{icon:"mdi:content-save"}),loading:i.saveLoading,loadingPosition:"start",onClick:g,children:t("common.save")})]})]}),T.jsx(Zt,{variant:"outlined",sx:{display:"flex",height:280,overflow:"hidden"},children:T.jsx(Zt,{elevation:0,sx:{flex:1,overflow:"auto"},children:T.jsx(En,{treeData:s(a.activeSection),setTreeData:h,renderActions:({data:v,className:x})=>T.jsx(Fn,{data:v,className:x,section:a.activeSection,add:(...R)=>S(...R),del:(...R)=>_("del",...R),edit:(...R)=>_("edit",...R),toggle:(...R)=>_("toggle",...R)})})})}),T.jsxs(Un,{variant:"dense",sx:{paddingLeft:"0px !important",paddingRight:"0px !important",mt:3},children:[T.jsx(ge,{variant:"h6",component:"div",sx:{flexGrow:1},children:t("common.preview")}),T.jsxs(_n,{sx:{m:1,minWidth:120},size:"small",children:[T.jsx(eo,{children:t("common.role")}),T.jsx(pn,{value:i.mockRole,label:"Role",onChange:v=>{i.mockRole=v.target.value},children:e.map(v=>T.jsx(mt,{value:v.name,children:v.title},v.name))})]})]}),T.jsx(Zt,{variant:"outlined",children:T.jsx(Bi.Provider,{value:C,children:T.jsx(Yc,{navigation:l})})}),T.jsx(jn,{ref:r,section:a.activeSection,components:a.components,rawNavigations:a.rawNavigation}),T.jsx(Ui,{confirmButton:{text:t("common.confirm"),props:{variant:"contained",color:"error"}},cancelButton:{text:t("common.cancel"),props:{color:"primary"}},open:i.showResetConfirm,title:t("navigation.action.restConfirmTitle"),onConfirm:async()=>{await z(),i.showResetConfirm=!1},onCancel:()=>{i.showResetConfirm=!1},children:T.jsx("p",{children:t("navigation.action.restConfirmDesc")})})]})}export{Td as default};
25
+ `,Jc={login:Te,logout:Te,switch:Te,switchDid:Te,switchProfile:Te,switchPassport:Te,useDid:()=>({walletDid:"abcdefghijklmnopqrstuvwxyz"}),useOAuth:()=>({logoutOAuth:Te,bindOAuth:Te,configs:{},switchOAuthPassport:Te})},At={header:"Header",footer:"Footer",bottom:"Footer Link",social:"Footer Social",dashboard:"Dashboard",sessionManager:"SessionBlocklet",userCenter:"UserCenter"};function Id(){const{t}=tt(),{blocklet:o}=Vt(),r=P.useRef(null),{roles:e}=to(),n=$i(v=>v.breakpoints.down("md")),i=Ut({saveLoading:!1,resetLoading:!1,showResetConfirm:!1,mockRole:"owner"}),{state:a,navigation:l,getNavigation:s,saveNavigationList:d,resetNavigation:c,updateActiveSection:u,updateNavigationTree:h,updateNavigationItem:p,delNavigationItem:f,addNavigationItem:m}=Qc(),S=P.useCallback(v=>{r.current.add({parent:v},(x,R)=>{m(R),x()})},[m]),_=P.useCallback((v,x={})=>{switch(v){case"edit":r.current.edit(x,(R,y)=>{p(y),R()});break;case"toggle":p({id:x.id,visible:!x.visible});break;case"del":f(x.id);break}},[f,p]),g=P.useCallback(async()=>{try{i.saveLoading=!0,await d(a.rawNavigation),dt.success(t("common.succeeded"))}catch(v){dt.error(T.jsxs(fe,{children:[T.jsx(ge,{variant:"subtitle2",children:t("navigation.actionFailed")}),T.jsx(ge,{variant:"body1",children:Bn(v)||v.error})]}))}finally{i.saveLoading=!1}},[a.rawNavigation,i,d,t]),z=P.useCallback(async()=>{try{i.resetLoading=!0,await c(),dt.success(t("navigation.action.resetSuccessful"),{variant:"success"})}catch(v){dt.error(T.jsxs(fe,{children:[T.jsx(ge,{variant:"subtitle2",children:t("navigation.actionFailed")}),T.jsx(ge,{variant:"body1",children:Bn(v)||v.error})]}))}finally{i.resetLoading=!1}},[i,c,t]),C=P.useMemo(()=>({session:{...Jc,user:{did:o.appDid,fullName:"Preview User",role:i.mockRole}}}),[o.appDid,i.mockRole]);return T.jsxs(T.Fragment,{children:[n&&T.jsx(pn,{fullWidth:!0,size:"small",value:a.activeSection,onChange:v=>u(v.target.value),children:Object.keys(At).map(v=>T.jsxs(mt,{value:v,children:[At[v],` (${s(v).length})`]}))}),!n&&T.jsx(nn,{variant:"outlined",children:Object.keys(At).map(v=>T.jsxs(fn,{variant:a.activeSection===v?"contained":void 0,onClick:()=>u(v),children:[At[v],` (${s(v).length})`]},v))}),T.jsxs(Un,{variant:"dense",sx:{paddingLeft:"0px !important",paddingRight:"0px !important",mt:2},children:[T.jsx(ge,{variant:"h6",component:"div",sx:{flexGrow:1},children:t("common.config")}),T.jsx(nn,{variant:"outlined",children:T.jsx(Xn,{size:"small",variant:"outlined",color:"error",startIcon:T.jsx(se,{icon:"system-uicons:reset"}),sx:{mr:2},loading:i.resetLoading,loadingPosition:"start",onClick:()=>{i.showResetConfirm=!0},children:t("navigation.action.reset")})}),T.jsxs(nn,{variant:"outlined",children:[T.jsx(fn,{size:"small",variant:"outlined",startIcon:T.jsx(se,{icon:"mdi:plus"}),onClick:()=>S(),children:t("navigation.action.new")}),T.jsx(Xn,{size:"small",variant:"contained",startIcon:T.jsx(se,{icon:"mdi:content-save"}),loading:i.saveLoading,loadingPosition:"start",onClick:g,children:t("common.save")})]})]}),T.jsx(Zt,{variant:"outlined",sx:{display:"flex",height:280,overflow:"hidden"},children:T.jsx(Zt,{elevation:0,sx:{flex:1,overflow:"auto"},children:T.jsx(En,{treeData:s(a.activeSection),setTreeData:h,renderActions:({data:v,className:x})=>T.jsx(Fn,{data:v,className:x,section:a.activeSection,add:(...R)=>S(...R),del:(...R)=>_("del",...R),edit:(...R)=>_("edit",...R),toggle:(...R)=>_("toggle",...R)})})})}),T.jsxs(Un,{variant:"dense",sx:{paddingLeft:"0px !important",paddingRight:"0px !important",mt:3},children:[T.jsx(ge,{variant:"h6",component:"div",sx:{flexGrow:1},children:t("common.preview")}),T.jsxs(_n,{sx:{m:1,minWidth:120},size:"small",children:[T.jsx(eo,{children:t("common.role")}),T.jsx(pn,{value:i.mockRole,label:"Role",onChange:v=>{i.mockRole=v.target.value},children:e.map(v=>T.jsx(mt,{value:v.name,children:v.title},v.name))})]})]}),T.jsx(Zt,{variant:"outlined",children:T.jsx(Bi.Provider,{value:C,children:T.jsx(Yc,{navigation:l})})}),T.jsx(jn,{ref:r,section:a.activeSection,components:a.components,rawNavigations:a.rawNavigation}),T.jsx(Ui,{confirmButton:{text:t("common.confirm"),props:{variant:"contained",color:"error"}},cancelButton:{text:t("common.cancel"),props:{color:"primary"}},open:i.showResetConfirm,title:t("navigation.action.restConfirmTitle"),onConfirm:async()=>{await z(),i.showResetConfirm=!1},onCancel:()=>{i.showResetConfirm=!1},children:T.jsx("p",{children:t("navigation.action.restConfirmDesc")})})]})}export{Id as default};
@@ -0,0 +1 @@
1
+ import{q as h,j as n,J as g,m as j,ad as _,P as i}from"./index-DtSAlyAb.js";import{C as v}from"./click-to-copy-CPgkX4m2.js";import{S as T}from"./shorten-label-MNOvw9uc.js";import{T as b}from"./TextField-DsYRZFfL.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,5 +1,5 @@
1
- const __vite__fileDeps=["./overview-8H6-ZDnY.js","./index-BF8aCpwD.js","./index-D7K8de1w.css","./index-D7MQ5-AL.js","./team-wvWuVfZc.js","./url-evaluation-D_jo15CE.js","./Delete-BowxIQ2G.js","./tag-c4l-gLNY.js","./Add-C7T4l8Gn.js","./LockIcon-C2Y-MNOG.js","./index-DNPIbpGG.js","./Https-fzXY6T48.js","./is-path-prefix-equal-D073Bxne.js","./index-BDE88jyc.js","./api-BG4nC5Xk.js","./util-DHUp8byb.js","./TextField-C9bTzhlw.js","./Select-DoQcGrX-.js","./InputLabel--N-sf10A.js","./LoadingButton-B4rGIi7i.js","./actions-BeFI0W-v.js","./index-CQf7Z4so.js","./iframe-DFAAx8uu.js","./line-B97TVPTR.js","./Done-CU5E5wfS.js","./EditIcon-CVWLBr12.js","./ArrowDropDown-xKgJDEqt.js","./ButtonGroup-9uv0Ooq-.js","./getValidReactChildren-Bgc9rgRS.js","./index-7Me1Cz-7.js","./ChevronRight-BaIDXj-9.js","./index-Cbo401VV.js","./bundle-avatar-DLDLpTjG.js","./app-avatar-C44MPSmF.js","./isEqual-BScl5EI5.js","./Loop-D3gmJHoj.js","./Autocomplete-C3WalQVV.js","./mode-B2dWMeTO.js","./Public-De2nIgej.js","./click-to-copy-BZk-riG0.js","./index-MJrUxd75.js","./index.esm-C5nq6pfE.js","./Launch-BYR-opH7.js","./Edit-C8H0dz0H.js","./actions-Hh89UiOD.js","./useLocalStorage-4kEeUWaD.js","./MoreVert-D9URE0XQ.js","./index--LZZdVAf.js","./redux-pf-VcEfR.js","./switch-control-C0TEfCiJ.js","./Slider-DRcICbfc.js","./index-CO7eWdfJ.js","./FilterList-Cg3ZLCqO.js","./LastPage-Bxb1l4rW.js","./Search-Cc01SYnZ.js","./index-BjPXP-LF.js","./index-DU3JORH0.css","./config-navigation-W-s37kH4.js","./slicedToArray-Ce9LLBq3.js","./index-DyJXzwsm.js","./index-Bh7w8cMA.js","./InputAdornment-DEjon0jx.js","./index-D7cQz7_Z.js","./Skeleton-CIWFpRU-.js","./audit-logs-C4Bkb7ih.js","./index-Dqxd0b83.js","./index-D4PP6P2d.css","./Pagination-Dm9dYmcU.js","./index-CV3SX2WR.js","./index-C6MLTD6I.js","./list-header-DelQMctR.js","./Google-C4EY8MZF.js","./index-umXw3jlJ.js","./index-BJCSughs.js","./ToggleButtonGroup-puPvtUnk.js","./index-4rMgZX4U.js","./ViewList-CvkmEUQS.js","./resource-dialog-BTNy_Oow.js","./index-C3gTEzW2.js","./service-C2WlGo6H.js","./table-icons-CjO-fhj2.js","./ChevronLeft-CgKR1kBR.js","./DeleteOutline-B7YDwBp1.js","./memoize-one.esm-BdPwpGay.js","./index-CG9nBfwn.js","./agreement-EpNiWD7U.js","./url-join-C7-zBUdN.js","./Link-S1oS3eUR.js","./item-yETh_FJZ.js","./preact.module-B1z5cdvs.js","./DeleteOutline-DtDq0PRx.js","./delete-confirm-CSZ3OQjS.js","./item-CxkJY_14.css","./index-DuWuyaHf.js","./Close-DezaeAwH.js","./lottie-CyI6L8JT.js","./toUpper-CXm9kpSD.js","./spaces-Dbjo2WCq.js","./install-from-url-EkPiGZjl.js","./Stepper-BRAY6Izr.js","./use-blocklet-info-for-connect-did-spaces-BAUuYPIl.js","./Breadcrumbs-DiRwLDj9.js","./log-Y4UQmvxx.js","./download-ky0BUIxG.js","./download-D33dFtt_.css","./runtime-Cq_Acbof.js","./memory-BLzA7ZEK.js","./chart-D3IJWJTo.js","./traffic-DtFFDlh6.js","./index-DBaPghHu.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
2
- import{q as Ae,t as Gt,bk as M,r as m,F as z,j as p,J as Ye,O as ne,B as Xe,x as qt,bl as Ht,M as A,A as D,K as ce,$ as Be,bm as ae,b as be,P as Kt,bf as Ze,bn as P,z as Qt,u as Wt,bo as pe,bp as Jt,V as Fe,C as Ue,N as Yt,bq as Xt,m as he,U as Zt,n as en,br as tn}from"./index-BF8aCpwD.js";import{T as nn}from"./index-Cbo401VV.js";import{B as on}from"./url-evaluation-D_jo15CE.js";import{D as sn,B as rn}from"./actions-Hh89UiOD.js";import{B as cn}from"./app-avatar-C44MPSmF.js";import{u as F,B as an,a as ln,T as un}from"./team-wvWuVfZc.js";import{a as fn,b as dn}from"./spaces-Dbjo2WCq.js";import{B as pn}from"./Breadcrumbs-DiRwLDj9.js";/**
1
+ const __vite__fileDeps=["./overview-B0Vrv3iN.js","./index-DtSAlyAb.js","./index-D7K8de1w.css","./index-9D4yHZMO.js","./blocklet-sVlwX65X.js","./url-evaluation-Ddzyc50Z.js","./Delete-BuQlLthh.js","./tag-BcsNyCIC.js","./Add-BhAOgw8n.js","./LockIcon-CF3Yl9tf.js","./index-Dp7ygnu_.js","./Https-YbDZUE--.js","./is-path-prefix-equal-DSWbb6Lw.js","./index-C4vYMHes.js","./api-Bm6QocBj.js","./util-BxfggyNA.js","./TextField-DsYRZFfL.js","./Select-BHyxLJXO.js","./InputLabel-CfRvg3E0.js","./LoadingButton-DQ3wXyLh.js","./actions-DkgRiPBw.js","./index-C7XdmdZm.js","./iframe-a4uHsJw3.js","./line-BT-CqrvO.js","./Done-CbG1n7TV.js","./EditIcon-DWIVTczi.js","./ArrowDropDown-BhDZI_jd.js","./ButtonGroup-BE_QoGeC.js","./getValidReactChildren-CYcUTCCR.js","./index-ltfZ8gtL.js","./ChevronRight-R1AD6T8t.js","./index-Do9FcEok.js","./bundle-avatar-D3srwykJ.js","./app-avatar-Cx6kCeuS.js","./isEqual-j-zS_8Gf.js","./Loop-DJX-NWYU.js","./Autocomplete-chf9WG4F.js","./mode-B2dWMeTO.js","./Public-4ZipZDUd.js","./click-to-copy-CPgkX4m2.js","./team-BwAkC099.js","./index-D2bnoRiO.js","./index.esm-UKhIq9Zf.js","./Launch-BFRTKCgX.js","./Edit-D2R20RFt.js","./actions-DCJ-sSPn.js","./useLocalStorage-xuSREX68.js","./MoreVert-Cw5JqD-n.js","./index-7DZ48QpY.js","./redux-CW-2wISG.js","./switch-control-DRGFY74g.js","./Slider-CTrqzFQ0.js","./index-DlnomLD1.js","./FilterList-gGx11q-p.js","./LastPage-BkIsmfi2.js","./Search-Co3tOmY1.js","./index-DesqGCgv.js","./index-DU3JORH0.css","./config-navigation-NRSeF0zB.js","./slicedToArray-BjdTUeMu.js","./index-D21hPRpg.js","./index-DGMii6rV.js","./InputAdornment-BPwm2dnh.js","./index-D858U3Qw.js","./Skeleton-FWWrVymY.js","./audit-logs-XHAxITYC.js","./index-iAyUVxpq.js","./index-D4PP6P2d.css","./Pagination-Dw6rLiDa.js","./index-CuDSWVTP.js","./index-BPGGylov.js","./list-header-D8gIqGsc.js","./Google-CpcA0NCN.js","./index-CbVpP-kP.js","./index-dI-5DMUE.js","./ToggleButtonGroup-LuLWYYav.js","./index-rDmYbmrh.js","./ViewList-IW1QaH_L.js","./resource-dialog-B2JtbLNW.js","./index-D3BiJZx7.js","./shorten-label-MNOvw9uc.js","./service-DM6evFxx.js","./table-icons-BL8xSB3P.js","./ChevronLeft-LgQFTPg9.js","./DeleteOutline-CfWsbc1a.js","./memoize-one.esm-BdPwpGay.js","./index-CaILkSHA.js","./agreement-DByQv9ZX.js","./url-join-BdHqt1dS.js","./Link-BZodiBIz.js","./item-DafV54vj.js","./preact.module-B1z5cdvs.js","./DeleteOutline-BuR7k_j3.js","./delete-confirm-DGNC6LoB.js","./item-CxkJY_14.css","./index-ZT9QeB3O.js","./Close-BA4_6LGT.js","./lottie-DPC4uwjn.js","./toUpper-Cc1D9AuZ.js","./spaces-CJAn8A_O.js","./install-from-url-C2MMBwn8.js","./Stepper-BYinN7qr.js","./use-blocklet-info-for-connect-did-spaces-ByiBXoYS.js","./Breadcrumbs-Un40qFmK.js","./log-B4RGVLfQ.js","./download-cKQNB8IS.js","./download-D33dFtt_.css","./runtime-Cdoj20eA.js","./memory-BkPehB2B.js","./chart-CwUcOCm9.js","./traffic-D8r3k_ae.js","./index-C32jjYE0.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
2
+ import{q as Ae,t as Gt,bk as M,r as m,F as z,j as p,J as Ye,O as ne,B as Xe,x as qt,bl as Ht,M as A,A as D,K as ce,$ as Be,bm as ae,b as be,P as Kt,bf as Ze,bn as P,z as Qt,u as Wt,bo as pe,bp as Jt,V as Fe,C as Ue,N as Yt,bq as Xt,m as he,U as Zt,n as en,br as tn}from"./index-DtSAlyAb.js";import{T as nn}from"./index-Do9FcEok.js";import{B as on}from"./url-evaluation-Ddzyc50Z.js";import{D as sn,B as rn}from"./actions-DCJ-sSPn.js";import{B as cn}from"./app-avatar-Cx6kCeuS.js";import{u as F}from"./blocklet-sVlwX65X.js";import{a as an,b as ln}from"./spaces-CJAn8A_O.js";import{B as un,u as fn,T as dn}from"./team-BwAkC099.js";import{B as pn}from"./Breadcrumbs-Un40qFmK.js";/**
3
3
  * (c) Iconify
4
4
  *
5
5
  * For the full copyright and license information, please view the license.txt or license.gpl.txt
@@ -9,7 +9,7 @@ import{q as Ae,t as Gt,bk as M,r as m,F as z,j as p,J as Ye,O as ne,B as Xe,x as
9
9
  *
10
10
  * @license MIT
11
11
  * @version 3.1.1
12
- */const et=Object.freeze({left:0,top:0,width:16,height:16}),oe=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Q=Object.freeze({...et,...oe}),ve=Object.freeze({...Q,body:"",hidden:!1});function hn(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const o=((e.rotate||0)+(t.rotate||0))%4;return o&&(n.rotate=o),n}function Ve(e,t){const n=hn(e,t);for(const o in ve)o in oe?o in e&&!(o in n)&&(n[o]=oe[o]):o in t?n[o]=t[o]:o in e&&(n[o]=e[o]);return n}function mn(e,t){const n=e.icons,o=e.aliases||Object.create(null),s=Object.create(null);function r(i){if(n[i])return s[i]=[];if(!(i in s)){s[i]=null;const c=o[i]&&o[i].parent,a=c&&r(c);a&&(s[i]=[c].concat(a))}return s[i]}return(t||Object.keys(n).concat(Object.keys(o))).forEach(r),s}function gn(e,t,n){const o=e.icons,s=e.aliases||Object.create(null);let r={};function i(c){r=Ve(o[c]||s[c],r)}return i(t),n.forEach(i),Ve(e,r)}function tt(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(s=>{t(s,null),n.push(s)});const o=mn(e);for(const s in o){const r=o[s];r&&(t(s,gn(e,s,r)),n.push(s))}return n}const $=/^[a-z0-9]+(-[a-z0-9]+)*$/,U=(e,t,n,o="")=>{const s=e.split(":");if(e.slice(0,1)==="@"){if(s.length<2||s.length>3)return null;o=s.shift().slice(1)}if(s.length>3||!s.length)return null;if(s.length>1){const c=s.pop(),a=s.pop(),l={provider:s.length>0?s[0]:o,prefix:a,name:c};return t&&!ee(l)?null:l}const r=s[0],i=r.split("-");if(i.length>1){const c={provider:o,prefix:i.shift(),name:i.join("-")};return t&&!ee(c)?null:c}if(n&&o===""){const c={provider:o,prefix:"",name:r};return t&&!ee(c,n)?null:c}return null},ee=(e,t)=>e?!!((e.provider===""||e.provider.match($))&&(t&&e.prefix===""||e.prefix.match($))&&e.name.match($)):!1,yn={provider:"",aliases:{},not_found:{},...et};function me(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function nt(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!me(e,yn))return null;const n=t.icons;for(const s in n){const r=n[s];if(!s.match($)||typeof r.body!="string"||!me(r,ve))return null}const o=t.aliases||Object.create(null);for(const s in o){const r=o[s],i=r.parent;if(!s.match($)||typeof i!="string"||!n[i]&&!o[i]||!me(r,ve))return null}return t}const se=Object.create(null);function bn(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function _(e,t){const n=se[e]||(se[e]=Object.create(null));return n[t]||(n[t]=bn(e,t))}function je(e,t){return nt(t)?tt(t,(n,o)=>{o?e.icons[n]=o:e.missing.add(n)}):[]}function vn(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function xn(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(se)).forEach(s=>{(typeof s=="string"&&typeof t=="string"?[t]:Object.keys(se[s]||{})).forEach(i=>{const c=_(s,i);n=n.concat(Object.keys(c.icons).map(a=>(s!==""?"@"+s+":":"")+i+":"+a))})}),n}let H=!1;function Sn(e){return typeof e=="boolean"&&(H=e),H}function W(e){const t=typeof e=="string"?U(e,!0,H):e;if(t){const n=_(t.provider,t.prefix),o=t.name;return n.icons[o]||(n.missing.has(o)?null:void 0)}}function ot(e,t){const n=U(e,!0,H);if(!n)return!1;const o=_(n.provider,n.prefix);return vn(o,n.name,t)}function st(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),H&&!t&&!e.prefix){let s=!1;return nt(e)&&(e.prefix="",tt(e,(r,i)=>{i&&ot(r,i)&&(s=!0)})),s}const n=e.prefix;if(!ee({provider:t,prefix:n,name:"a"}))return!1;const o=_(t,n);return!!je(o,e)}function wn(e){return!!W(e)}function kn(e){const t=W(e);return t?{...Q,...t}:null}const rt=Object.freeze({width:null,height:null}),it=Object.freeze({...rt,...oe}),In=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Cn=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function xe(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const o=e.split(In);if(o===null||!o.length)return e;const s=[];let r=o.shift(),i=Cn.test(r);for(;;){if(i){const c=parseFloat(r);isNaN(c)?s.push(r):s.push(Math.ceil(c*t*n)/n)}else s.push(r);if(r=o.shift(),r===void 0)return s.join("");i=!i}}const En=e=>e==="unset"||e==="undefined"||e==="none";function le(e,t){const n={...Q,...e},o={...it,...t},s={left:n.left,top:n.top,width:n.width,height:n.height};let r=n.body;[n,o].forEach(v=>{const x=[],C=v.hFlip,S=v.vFlip;let w=v.rotate;C?S?w+=2:(x.push("translate("+(s.width+s.left).toString()+" "+(0-s.top).toString()+")"),x.push("scale(-1 1)"),s.top=s.left=0):S&&(x.push("translate("+(0-s.left).toString()+" "+(s.height+s.top).toString()+")"),x.push("scale(1 -1)"),s.top=s.left=0);let k;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:k=s.height/2+s.top,x.unshift("rotate(90 "+k.toString()+" "+k.toString()+")");break;case 2:x.unshift("rotate(180 "+(s.width/2+s.left).toString()+" "+(s.height/2+s.top).toString()+")");break;case 3:k=s.width/2+s.left,x.unshift("rotate(-90 "+k.toString()+" "+k.toString()+")");break}w%2===1&&(s.left!==s.top&&(k=s.left,s.left=s.top,s.top=k),s.width!==s.height&&(k=s.width,s.width=s.height,s.height=k)),x.length&&(r='<g transform="'+x.join(" ")+'">'+r+"</g>")});const i=o.width,c=o.height,a=s.width,l=s.height;let u,d;i===null?(d=c===null?"1em":c==="auto"?l:c,u=xe(d,a/l)):(u=i==="auto"?a:i,d=c===null?xe(u,l/a):c==="auto"?l:c);const f={},y=(v,x)=>{En(x)||(f[v]=x.toString())};return y("width",u),y("height",d),f.viewBox=s.left.toString()+" "+s.top.toString()+" "+a.toString()+" "+l.toString(),{attributes:f,body:r}}const Pn=/\sid="(\S+)"/g,Tn="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let _n=0;function ct(e,t=Tn){const n=[];let o;for(;o=Pn.exec(e);)n.push(o[1]);if(!n.length)return e;const s="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(r=>{const i=typeof t=="function"?t(r):t+(_n++).toString(),c=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+i+s+"$3")}),e=e.replace(new RegExp(s,"g"),""),e}const L={local:!0,session:!0},at={local:new Set,session:new Set};let Oe=!1;function An(e){Oe=e}const ze="iconify2",K="iconify",lt=K+"-count",$e=K+"-version",ut=36e5,Bn=168;function Se(e,t){try{return e.getItem(t)}catch{}}function De(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Ge(e,t){try{e.removeItem(t)}catch{}}function we(e,t){return De(e,lt,t.toString())}function ke(e){return parseInt(Se(e,lt))||0}let X=typeof window>"u"?{}:window;function ft(e){const t=e+"Storage";try{if(X&&X[t]&&typeof X[t].length=="number")return X[t]}catch{}L[e]=!1}function dt(e,t){const n=ft(e);if(!n)return;const o=Se(n,$e);if(o!==ze){if(o){const c=ke(n);for(let a=0;a<c;a++)Ge(n,K+a.toString())}De(n,$e,ze),we(n,0);return}const s=Math.floor(Date.now()/ut)-Bn,r=c=>{const a=K+c.toString(),l=Se(n,a);if(typeof l=="string"){try{const u=JSON.parse(l);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>s&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,c))return!0}catch{}Ge(n,a)}};let i=ke(n);for(let c=i-1;c>=0;c--)r(c)||(c===i-1?(i--,we(n,i)):at[e].add(c))}function pt(){if(!Oe){An(!0);for(const e in L)dt(e,t=>{const n=t.data,o=t.provider,s=n.prefix,r=_(o,s);if(!je(r,n).length)return!1;const i=n.lastModified||-1;return r.lastModifiedCached=r.lastModifiedCached?Math.min(r.lastModifiedCached,i):i,!0})}}function ht(e,t){switch(e){case"local":case"session":L[e]=t;break;case"all":for(const n in L)L[n]=t;break}}const Ie=Object.create(null);function mt(e,t){Ie[e]=t}function Ce(e){return Ie[e]||Ie[""]}function Le(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const ue=Object.create(null),V=["https://api.simplesvg.com","https://api.unisvg.com"],te=[];for(;V.length>0;)V.length===1||Math.random()>.5?te.push(V.shift()):te.push(V.pop());ue[""]=Le({resources:["https://api.iconify.design"].concat(te)});function gt(e,t){const n=Le(t);return n===null?!1:(ue[e]=n,!0)}function fe(e){return ue[e]}function jn(){return Object.keys(ue)}const On=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let re=On();function Dn(e){re=e}function Ln(){return re}function Nn(e,t){const n=fe(e);if(!n)return 0;let o;if(!n.maxURL)o=0;else{let s=0;n.resources.forEach(i=>{s=Math.max(s,i.length)});const r=t+".json?icons=";o=n.maxURL-s-n.path.length-r.length}return o}function Mn(e){return e===404}const Rn=(e,t,n)=>{const o=[],s=Nn(e,t),r="icons";let i={type:r,provider:e,prefix:t,icons:[]},c=0;return n.forEach((a,l)=>{c+=a.length+1,c>=s&&l>0&&(o.push(i),i={type:r,provider:e,prefix:t,icons:[]},c=a.length),i.icons.push(a)}),o.push(i),o};function Fn(e){if(typeof e=="string"){const t=fe(e);if(t)return t.path}return"/"}const Un=(e,t,n)=>{if(!re){n("abort",424);return}let o=Fn(t.provider);switch(t.type){case"icons":{const r=t.prefix,c=t.icons.join(","),a=new URLSearchParams({icons:c});o+=r+".json?"+a.toString();break}case"custom":{const r=t.uri;o+=r.slice(0,1)==="/"?r.slice(1):r;break}default:n("abort",400);return}let s=503;re(e+o).then(r=>{const i=r.status;if(i!==200){setTimeout(()=>{n(Mn(i)?"abort":"next",i)});return}return s=501,r.json()}).then(r=>{if(typeof r!="object"||r===null){setTimeout(()=>{r===404?n("abort",r):n("next",s)});return}setTimeout(()=>{n("success",r)})}).catch(()=>{n("next",s)})},Vn={prepare:Rn,send:Un};function zn(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((s,r)=>s.provider!==r.provider?s.provider.localeCompare(r.provider):s.prefix!==r.prefix?s.prefix.localeCompare(r.prefix):s.name.localeCompare(r.name));let o={provider:"",prefix:"",name:""};return e.forEach(s=>{if(o.name===s.name&&o.prefix===s.prefix&&o.provider===s.provider)return;o=s;const r=s.provider,i=s.prefix,c=s.name,a=n[r]||(n[r]=Object.create(null)),l=a[i]||(a[i]=_(r,i));let u;c in l.icons?u=t.loaded:i===""||l.missing.has(c)?u=t.missing:u=t.pending;const d={provider:r,prefix:i,name:c};u.push(d)}),t}function yt(e,t){e.forEach(n=>{const o=n.loaderCallbacks;o&&(n.loaderCallbacks=o.filter(s=>s.id!==t))})}function $n(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const o=e.provider,s=e.prefix;t.forEach(r=>{const i=r.icons,c=i.pending.length;i.pending=i.pending.filter(a=>{if(a.prefix!==s)return!0;const l=a.name;if(e.icons[l])i.loaded.push({provider:o,prefix:s,name:l});else if(e.missing.has(l))i.missing.push({provider:o,prefix:s,name:l});else return n=!0,!0;return!1}),i.pending.length!==c&&(n||yt([e],r.id),r.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),r.abort))})}))}let Gn=0;function qn(e,t,n){const o=Gn++,s=yt.bind(null,n,o);if(!t.pending.length)return s;const r={id:o,icons:t,callback:e,abort:s};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(r)}),s}function Hn(e,t=!0,n=!1){const o=[];return e.forEach(s=>{const r=typeof s=="string"?U(s,t,n):s;r&&o.push(r)}),o}var Kn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Qn(e,t,n,o){const s=e.resources.length,r=e.random?Math.floor(Math.random()*s):e.index;let i;if(e.random){let g=e.resources.slice(0);for(i=[];g.length>1;){const I=Math.floor(Math.random()*g.length);i.push(g[I]),g=g.slice(0,I).concat(g.slice(I+1))}i=i.concat(g)}else i=e.resources.slice(r).concat(e.resources.slice(0,r));const c=Date.now();let a="pending",l=0,u,d=null,f=[],y=[];typeof o=="function"&&y.push(o);function v(){d&&(clearTimeout(d),d=null)}function x(){a==="pending"&&(a="aborted"),v(),f.forEach(g=>{g.status==="pending"&&(g.status="aborted")}),f=[]}function C(g,I){I&&(y=[]),typeof g=="function"&&y.push(g)}function S(){return{startTime:c,payload:t,status:a,queriesSent:l,queriesPending:f.length,subscribe:C,abort:x}}function w(){a="failed",y.forEach(g=>{g(void 0,u)})}function k(){f.forEach(g=>{g.status==="pending"&&(g.status="aborted")}),f=[]}function j(g,I,b){const T=I!=="success";switch(f=f.filter(E=>E!==g),a){case"pending":break;case"failed":if(T||!e.dataAfterTimeout)return;break;default:return}if(I==="abort"){u=b,w();return}if(T){u=b,f.length||(i.length?O():w());return}if(v(),k(),!e.random){const E=e.resources.indexOf(g.resource);E!==-1&&E!==e.index&&(e.index=E)}a="completed",y.forEach(E=>{E(b)})}function O(){if(a!=="pending")return;v();const g=i.shift();if(g===void 0){if(f.length){d=setTimeout(()=>{v(),a==="pending"&&(k(),w())},e.timeout);return}w();return}const I={status:"pending",resource:g,callback:(b,T)=>{j(I,b,T)}};f.push(I),l++,d=setTimeout(O,e.rotate),n(g,t,I.callback)}return setTimeout(O),S}function bt(e){const t={...Kn,...e};let n=[];function o(){n=n.filter(c=>c().status==="pending")}function s(c,a,l){const u=Qn(t,c,a,(d,f)=>{o(),l&&l(d,f)});return n.push(u),u}function r(c){return n.find(a=>c(a))||null}return{query:s,find:r,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:o}}function qe(){}const ge=Object.create(null);function Wn(e){if(!ge[e]){const t=fe(e);if(!t)return;const n=bt(t),o={config:t,redundancy:n};ge[e]=o}return ge[e]}function vt(e,t,n){let o,s;if(typeof e=="string"){const r=Ce(e);if(!r)return n(void 0,424),qe;s=r.send;const i=Wn(e);i&&(o=i.redundancy)}else{const r=Le(e);if(r){o=bt(r);const i=e.resources?e.resources[0]:"",c=Ce(i);c&&(s=c.send)}}return!o||!s?(n(void 0,424),qe):o.query(t,s,n)().abort}function Jn(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const o in L)dt(o,s=>{const r=s.data;return s.provider!==e.provider||r.prefix!==e.prefix||r.lastModified===t});return!0}function Yn(e,t){Oe||pt();function n(o){let s;if(!L[o]||!(s=ft(o)))return;const r=at[o];let i;if(r.size)r.delete(i=Array.from(r).shift());else if(i=ke(s),!we(s,i+1))return;const c={cached:Math.floor(Date.now()/ut),provider:e.provider,data:t};return De(s,K+i.toString(),JSON.stringify(c))}t.lastModified&&!Jn(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function He(){}function Xn(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,$n(e)}))}function Zn(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:o}=e,s=e.iconsToLoad;delete e.iconsToLoad;let r;if(!s||!(r=Ce(n)))return;r.prepare(n,o,s).forEach(c=>{vt(n,c,a=>{if(typeof a!="object")c.icons.forEach(l=>{e.missing.add(l)});else try{const l=je(e,a);if(!l.length)return;const u=e.pendingIcons;u&&l.forEach(d=>{u.delete(d)}),Yn(e,a)}catch(l){console.error(l)}Xn(e)})})}))}const eo=e=>{const n=_(e.provider,e.prefix).pendingIcons;return!!(n&&n.has(e.name))},Ne=(e,t)=>{const n=Hn(e,!0,Sn()),o=zn(n);if(!o.pending.length){let a=!0;return t&&setTimeout(()=>{a&&t(o.loaded,o.missing,o.pending,He)}),()=>{a=!1}}const s=Object.create(null),r=[];let i,c;return o.pending.forEach(a=>{const{provider:l,prefix:u}=a;if(u===c&&l===i)return;i=l,c=u,r.push(_(l,u));const d=s[l]||(s[l]=Object.create(null));d[u]||(d[u]=[])}),o.pending.forEach(a=>{const{provider:l,prefix:u,name:d}=a,f=_(l,u),y=f.pendingIcons||(f.pendingIcons=new Set);y.has(d)||(y.add(d),s[l][u].push(d))}),r.forEach(a=>{const{provider:l,prefix:u}=a;s[l][u].length&&Zn(a,s[l][u])}),t?qn(t,o,r):He},to=e=>new Promise((t,n)=>{const o=typeof e=="string"?U(e,!0):e;if(!o){n(e);return}Ne([o||e],s=>{if(s.length&&o){const r=W(o);if(r){t({...Q,...r});return}}n(e)})});function xt(e,t){const n={...e};for(const o in t){const s=t[o],r=typeof s;o in rt?(s===null||s&&(r==="string"||r==="number"))&&(n[o]=s):r===typeof n[o]&&(n[o]=o==="rotate"?s%4:s)}return n}const de={...it,inline:!1},ye="iconify",Ee="iconify-inline",B="iconifyData"+Date.now();let N=[];function J(e){for(let t=0;t<N.length;t++){const n=N[t];if((typeof n.node=="function"?n.node():n.node)===e)return n}}function St(e,t=!1){let n=J(e);return n?(n.temporary&&(n.temporary=t),n):(n={node:e,temporary:t},N.push(n),n)}function no(){if(document.documentElement)return St(document.documentElement);N.push({node:()=>document.documentElement})}function oo(e){N=N.filter(t=>e!==t&&e!==(typeof t.node=="function"?t.node():t.node))}function Y(){return N}function so(e){const t=document;t.readyState&&t.readyState!=="loading"?e():t.addEventListener("DOMContentLoaded",e)}let G=null;const ro={childList:!0,subtree:!0,attributes:!0};function wt(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout(()=>{delete t.pendingScan,G&&G(e)}))}function io(e,t){if(!e.observer)return;const n=e.observer;if(!n.pendingScan)for(let o=0;o<t.length;o++){const s=t[o];if(s.addedNodes&&s.addedNodes.length>0||s.type==="attributes"&&s.target[B]!==void 0){n.paused||wt(e);return}}}function kt(e,t){e.observer.instance.observe(t,ro)}function ie(e){let t=e.observer;if(t&&t.instance)return;const n=typeof e.node=="function"?e.node():e.node;!n||!window||(t||(t={paused:0},e.observer=t),t.instance=new window.MutationObserver(io.bind(null,e)),kt(e,n),t.paused||wt(e))}function Ke(){Y().forEach(ie)}function It(e){if(!e.observer)return;const t=e.observer;t.pendingScan&&(clearTimeout(t.pendingScan),delete t.pendingScan),t.instance&&(t.instance.disconnect(),delete t.instance)}function co(e){const t=G!==null;if(G!==e&&(G=e,t&&Y().forEach(It)),t){Ke();return}so(Ke)}function Pe(e){(e?[e]:Y()).forEach(t=>{if(!t.observer){t.observer={paused:1};return}const n=t.observer;if(n.paused++,n.paused>1||!n.instance)return;n.instance.disconnect()})}function ao(e){if(e){const t=J(e);t&&Pe(t)}else Pe()}function Te(e){(e?[e]:Y()).forEach(t=>{if(!t.observer){ie(t);return}const n=t.observer;if(n.paused&&(n.paused--,!n.paused)){const o=typeof t.node=="function"?t.node():t.node;if(o)n.instance?kt(t,o):ie(t);else return}})}function lo(e){if(e){const t=J(e);t&&Te(t)}else Te()}function Ct(e,t=!1){const n=St(e,t);return ie(n),n}function Et(e){const t=J(e);t&&(It(t),oo(e))}function uo(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const n=e.customisations,o=t.customisations;for(const s in de)if(n[s]!==o[s])return!0;return!1}function fo(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function o(s){for(;s<0;)s+=4;return s%4}if(n===""){const s=parseInt(e);return isNaN(s)?0:o(s)}else if(n!==e){let s=0;switch(n){case"%":s=25;break;case"deg":s=90}if(s){let r=parseFloat(e.slice(0,e.length-n.length));return isNaN(r)?0:(r=r/s,r%1===0?o(r):0)}}return t}const po=/[\s,]+/;function ho(e,t){t.split(po).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const mo=["width","height"],go=["inline","hFlip","vFlip"];function yo(e,t){return e===t||e==="true"?!0:e===""||e==="false"?!1:null}function bo(e){const t=e.getAttribute("data-icon"),n=typeof t=="string"&&U(t,!0);if(!n)return null;const o={...de,inline:e.classList&&e.classList.contains(Ee)};mo.forEach(c=>{const a=e.getAttribute("data-"+c);a&&(o[c]=a)});const s=e.getAttribute("data-rotate");typeof s=="string"&&(o.rotate=fo(s));const r=e.getAttribute("data-flip");typeof r=="string"&&ho(o,r),go.forEach(c=>{const a="data-"+c,l=yo(e.getAttribute(a),a);typeof l=="boolean"&&(o[c]=l)});const i=e.getAttribute("data-mode");return{name:t,icon:n,customisations:o,mode:i}}const vo="svg."+ye+", i."+ye+", span."+ye+", i."+Ee+", span."+Ee;function xo(e){const t=[];return e.querySelectorAll(vo).forEach(n=>{const o=n[B]||n.tagName.toLowerCase()!=="svg"?bo(n):null;o&&t.push({node:n,props:o})}),t}function Pt(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const o in t)n+=" "+o+'="'+t[o]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}let q;function So(){try{q=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{q=null}}function wo(e){return q===void 0&&So(),q?q.createHTML(e):e}function Tt(e){const t=new Set(["iconify"]);return["provider","prefix"].forEach(n=>{e[n]&&t.add("iconify--"+e[n])}),t}function _t(e,t,n,o){const s=e.classList;if(o){const i=o.classList;Array.from(i).forEach(c=>{s.add(c)})}const r=[];return t.forEach(i=>{s.contains(i)?n.has(i)&&r.push(i):(s.add(i),r.push(i))}),n.forEach(i=>{t.has(i)||s.remove(i)}),r}function At(e,t,n){const o=e.style;(n||[]).forEach(r=>{o.removeProperty(r)});const s=[];for(const r in t)o.getPropertyValue(r)||(s.push(r),o.setProperty(r,t[r]));return s}function Bt(e,t,n){let o;try{o=document.createElement("span")}catch{return e}const s=t.customisations,r=le(n,s),i=e[B],c=Pt(ct(r.body),{"aria-hidden":"true",role:"img",...r.attributes});o.innerHTML=wo(c);const a=o.childNodes[0],l=e.attributes;for(let v=0;v<l.length;v++){const x=l.item(v),C=x.name;C!=="class"&&!a.hasAttribute(C)&&a.setAttribute(C,x.value)}const u=Tt(t.icon),d=_t(a,u,new Set(i&&i.addedClasses),e),f=At(a,s.inline?{"vertical-align":"-0.125em"}:{},i&&i.addedStyles),y={...t,status:"loaded",addedClasses:d,addedStyles:f};return a[B]=y,e.parentNode&&e.parentNode.replaceChild(a,e),a}function ko(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Io(e){return"data:image/svg+xml,"+ko(e)}function Co(e){return'url("'+Io(e)+'")'}const Eo={display:"inline-block"},_e={"background-color":"currentColor"},jt={"background-color":"transparent"},Qe={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},We={"-webkit-mask":_e,mask:_e,background:jt};for(const e in We){const t=We[e];for(const n in Qe)t[e+"-"+n]=Qe[n]}function Je(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}function Po(e,t,n,o){const s=t.customisations,r=le(n,s),i=r.attributes,c=e[B],a=Pt(r.body,{...i,width:n.width+"",height:n.height+""}),l=Tt(t.icon),u=_t(e,l,new Set(c&&c.addedClasses)),f={"--svg":Co(a),width:Je(i.width),height:Je(i.height),...Eo,...o?_e:jt};s.inline&&(f["vertical-align"]="-0.125em");const y=At(e,f,c&&c.addedStyles),v={...t,status:"loaded",addedClasses:u,addedStyles:y};return e[B]=v,e}let Z=!1;function To(){Z||(Z=!0,setTimeout(()=>{Z&&(Z=!1,R())}))}function R(e,t=!1){const n=Object.create(null);function o(s,r){const{provider:i,prefix:c,name:a}=s,l=_(i,c),u=l.icons[a];if(u)return{status:"loaded",icon:u};if(l.missing.has(a))return{status:"missing"};if(r&&!eo(s)){const d=n[i]||(n[i]=Object.create(null));(d[c]||(d[c]=new Set)).add(a)}return{status:"loading"}}(e?[e]:Y()).forEach(s=>{const r=typeof s.node=="function"?s.node():s.node;if(!r||!r.querySelectorAll)return;let i=!1,c=!1;function a(l,u,d){if(c||(c=!0,Pe(s)),l.tagName.toUpperCase()!=="SVG"){const f=u.mode,y=f==="mask"||(f==="bg"?!1:f==="style"?d.body.indexOf("currentColor")!==-1:null);if(typeof y=="boolean"){Po(l,u,{...Q,...d},y);return}}Bt(l,u,d)}xo(r).forEach(({node:l,props:u})=>{const d=l[B];if(!d){const{status:y,icon:v}=o(u.icon,!0);if(v){a(l,u,v);return}i=i||y==="loading",l[B]={...u,status:y};return}let f;if(uo(d,u)){if(f=o(u.icon,d.name!==u.name),!f.icon){i=i||f.status==="loading",Object.assign(d,{...u,status:f.status});return}}else{if(d.status!=="loading")return;if(f=o(u.icon,!1),!f.icon){d.status=f.status;return}}a(l,u,f.icon)}),s.temporary&&!i?Et(r):t&&i?Ct(r,!0):c&&s.observer&&Te(s)});for(const s in n){const r=n[s];for(const i in r){const c=r[i];Ne(Array.from(c).map(a=>({provider:s,prefix:i,name:a})),To)}}}function _o(e){const t=J(e);t?R(t):R({node:e,temporary:!0},!0)}function Ot(e,t,n=!1){const o=W(e);if(!o)return null;const s=U(e),r=xt(de,t||{}),i=Bt(document.createElement("span"),{name:e,icon:s,customisations:r},o);return n?i.outerHTML:i}function Ao(){return"3.1.1"}function Bo(e,t){return Ot(e,t,!1)}function jo(e,t){return Ot(e,t,!0)}function Oo(e,t){const n=W(e);if(!n)return null;const o=xt(de,t||{});return le(n,o)}function Do(e){e?_o(e):R()}if(typeof document<"u"&&typeof window<"u"){no();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!st(o))&&console.error(n)}catch{console.error(n)}})}setTimeout(()=>{co(R),R()})}function Lo(e,t){ht(e,t!==!1)}function No(e){ht(e,!0)}mt("",Vn);if(typeof document<"u"&&typeof window<"u"){pt();const e=window;if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(const n in t){const o="IconifyProviders["+n+"] is invalid.";try{const s=t[n];if(typeof s!="object"||!s||s.resources===void 0)continue;gt(n,s)||console.error(o)}catch{console.error(o)}}}}const Mo={getAPIConfig:fe,setAPIModule:mt,sendAPIQuery:vt,setFetch:Dn,getFetch:Ln,listAPIProviders:jn},Ro={_api:Mo,addAPIProvider:gt,loadIcons:Ne,loadIcon:to,iconExists:wn,getIcon:kn,listIcons:xn,addIcon:ot,addCollection:st,replaceIDs:ct,calculateSize:xe,buildIcon:le,getVersion:Ao,renderSVG:Bo,renderHTML:jo,renderIcon:Oo,scan:Do,observe:Ct,stopObserving:Et,pauseObserver:ao,resumeObserver:lo,enableCache:Lo,disableCache:No};try{self.Iconify===void 0&&(self.Iconify=Ro)}catch{}const Fo=e=>{const t={};let n=null;return A.forEachBlockletSync(e,o=>{t[o.meta.bundleDid]?n=A.getDisplayName(o,!0):o.meta.bundleDid&&(t[o.meta.bundleDid]=!0)}),n},Uo=(e,t,n)=>{var r;const{hostname:o,href:s}=e;if(!t)return s;if(n){const c=/\d+[-.]\d+[-.]\d+[-.]\d+/.exec(o);if(!c)return s;const a=c[0],u=((((r=t.site)==null?void 0:r.domainAliases)||[]).map(d=>d.value).filter(Boolean).find(d=>d.endsWith(z.DEFAULT_DID_DOMAIN))||"").replace(`.${z.DEFAULT_DID_DOMAIN}`,"");return u?s.replace(o,`${u}-${a}.${z.DEFAULT_IP_DOMAIN_SUFFIX}`):s}return s.replace(t.meta.bundleDid,t.appPid)};function Dt(){const{t:e}=Ae(),{api:t}=Gt(),{blocklet:n}=F(),{inService:o}=M(),[s,r]=m.useState(!1),[i,c]=m.useState(5),a=n&&n.structVersion!==z.APP_STRUCT_VERSION,l=()=>{try{if(n.status==="running"){D.error(e("blocklet.migrate.tip.running"));return}const f=Fo(n);if(f){D.error(e("blocklet.migrate.tip.duplicate",{name:f}));return}r(!0)}catch(f){D.error(ce(f))}},u=()=>{const f=Uo(window.location,n,o);setTimeout(()=>{window.location.href=f},5e3),c(5),setInterval(()=>{c(y=>y-1)},1e3)},d=()=>r(!1);return[a&&p.jsxs(Ye,{severity:"warning",style:{margin:"12px 0"},children:[p.jsxs(ne,{display:"flex",alignItems:"center",children:[p.jsx(Xe,{variant:"contained",size:"small",color:"primary",onClick:()=>l(),style:{marginRight:8},children:e("blocklet.migrate.intro.l1")}),p.jsx("span",{children:e("blocklet.migrate.intro.l2")})]}),["l3","l4","l5","l6"].map(f=>p.jsx(ne,{display:"flex",alignItems:"center",children:e(`blocklet.migrate.intro.${f}`)},f))]},"alert"),n&&p.jsx(qt,{popup:!0,open:s,saveConnect:!1,forceConnected:!1,action:"migrate-app-to-struct-v2",checkFn:t.get,checkTimeout:5*60*1e3,onSuccess:u,extraParams:{appDid:n.appDid,did:n.meta.did,wt:Ht(n,!0),title:A.getDisplayName(n)},messages:{title:e("blocklet.migrate.title"),scan:e("blocklet.migrate.scan"),confirm:e("blocklet.migrate.confirm"),success:i>=0?e("blocklet.migrate.success",{sec:i}):"Redirecting..."},onClose:d},"connect")]}Dt.propTypes={};async function Vo({blockletDid:e,nodeApi:t,spaceGateways:n}){let o=!1;const s=await Promise.all(n.map(async r=>{let{name:i}=r;const c=await fn(r.endpoint);return!Be.isEmpty(c)&&c!==i&&(i=c,o=!0),{...r,name:i}}));return o&&await Promise.all(s.filter(r=>r.did).map(r=>t.updateBlockletSpaceGateway({input:{did:e,where:{did:r.did},spaceGateway:{...r}}}))),s}function zo({setLoading:e,refresh:t}={}){var a;const{blocklet:n,actions:{refreshBlocklet:o}}=F(),s=(a=n==null?void 0:n.meta)==null?void 0:a.did,[r,i]=m.useState([]),{api:c}=M();return ae(async()=>{try{if(!s){i([]);return}e==null||e(!0);const{spaceGateways:l}=await c.getBlockletSpaceGateways({input:{did:s}}),u=await Vo({blockletDid:s,nodeApi:c,spaceGateways:l});i(u??[])}catch(l){console.error(l),D.error(ce(l))}finally{e==null||e(!1)}},[s,o,t]),{spaceGateways:r}}function Lt({deps:e,setLoading:t}={deps:[],setLoading:()=>{}}){var c;const{blocklet:n}=F(),[o,s]=m.useState([]),{api:r}=M(),i=Be.debounce(async()=>{try{if(t(!0),!n){s([]);return}const{backups:a}=await r.getBlockletBackups({input:{did:n.meta.did}});s(a??[])}catch(a){console.error(a),D.error(ce(a))}finally{t(!1)}},2e3);return ae(async()=>{i()},[(c=n==null?void 0:n.meta)==null?void 0:c.did].concat(e)),{backups:o}}function $o({appDid:e}){const{backups:t}=Lt(),[n,o]=m.useState({message:"",progress:0,completed:!1}),s=M(),{ws:{useSubscription:r}}=s;return r(be.BlockletEvents.backupProgress,i=>{e===(i==null?void 0:i.appDid)&&o(()=>({...i}))},[e]),m.useEffect(()=>{var i;if(t!=null&&t.length&&Be.isNull((i=t[0])==null?void 0:i.status)){const[c]=t;o(()=>({message:c.message,progress:c.progress,completed:c.progress>=100}))}},[t]),n}function Go({deps:e}={deps:[]}){var r;const{blocklet:t}=F(),{api:n}=M(),[o,s]=m.useState(null);return ae(async()=>{var i;if((i=t==null?void 0:t.meta)!=null&&i.did){const{autoBackup:c}=await n.getAutoBackup({input:{did:t.meta.did}});s(c)}},[(r=t==null?void 0:t.meta)==null?void 0:r.did].concat(e)),o}function qo({deps:e}={deps:[]}){var r;const{blocklet:t}=F(),{api:n}=M(),[o,s]=m.useState(null);return ae(async()=>{var i;if((i=t==null?void 0:t.meta)!=null&&i.did){const{autoCheckUpdate:c}=await n.getAutoCheckUpdate({input:{did:t.meta.did}});s(c)}},[(r=t==null?void 0:t.meta)==null?void 0:r.did].concat(e)),o}const Nt=m.createContext({}),{Provider:Ho,Consumer:ys}=Nt;function Me({children:e}){const{t}=Ae(),{api:n}=M(),{blocklet:o}=F(),[s,r]=m.useState(!1),[i,c]=m.useState(!1),{spaceGateways:a}=zo({refresh:i,setLoading:r}),l=$o({appDid:o==null?void 0:o.appDid}),[u,d]=m.useState(!1),f=m.useMemo(()=>dn(o==null?void 0:o.environments),[o,i,u]),[y,v]=m.useState(!1),{backups:x}=Lt({deps:[l],setLoading:v}),[C,S]=m.useState(a==null?void 0:a.find(h=>h.endpoint===f)),[w,k]=m.useState(!1),j=Go({deps:[w]}),[O,g]=m.useState(!1),I=qo({deps:[O]}),b=()=>{c(h=>!h)},T=()=>{d(h=>!h)},E=()=>{k(h=>!h)},Mt=()=>{g(h=>!h)},Rt=async(h,Re)=>{a.push({...h,loading:!0}),await n.addBlockletSpaceGateway({input:{did:o.meta.did,spaceGateway:h}}),f!==Re&&await n.configBlocklet({input:{did:[o.meta.did],configs:[{key:be.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:Re}]}}),b(),S(h)},Ft=async h=>{h&&(await n.deleteBlockletSpaceGateway({input:{did:o.meta.did,spaceGatewayDid:h==null?void 0:h.did}}),b(),S(h))},Ut=async h=>{await n.updateBlockletSpaceGateway({input:{did:o.meta.did,where:{did:h.did},spaceGateway:h}}),f!==h.endpoint&&await n.configBlocklet({input:{did:[o.meta.did],configs:[{key:be.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:h.endpoint}]}}),D.success(t("storage.spaces.connectedWithName",{name:(h==null?void 0:h.name)??"DID Spaces"})),b()},Vt=h=>(h==null?void 0:h.endpoint)===f,zt=async h=>{await n.updateAutoBackup({input:{did:o.meta.did,autoBackup:h}}),E()},$t=async h=>{await n.updateAutoCheckUpdate({input:{did:o.meta.did,autoCheckUpdate:h}}),Mt()};return p.jsx(Ho,{value:{spaceGateways:a,selectedSpaceGateway:C,addSpaceGateway:Rt,deleteSpaceGateway:Ft,updateSpaceGateway:Ut,refreshSpaceGateways:b,spaceGatewaysLoading:s,spaceGatewayIsSelected:Vt,updateAutoBackup:zt,updateAutoCheckUpdate:$t,autoCheckUpdate:I,backupEndpoint:f,backupProgress:l,backups:x,backupsLoading:y,refreshBackupEndpoint:T,autoBackup:j},children:e})}Me.propTypes={children:Kt.any.isRequired};Me.defaultProps={};function bs(){return m.useContext(Nt)}const Ko=m.lazy(()=>P(()=>import("./overview-8H6-ZDnY.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]),import.meta.url)),Qo=m.lazy(()=>P(()=>import("./index-CQf7Z4so.js"),__vite__mapDeps([21,1,2,22,23,24,25,26,27,28,16,17,18,29,30,31,6,32,33,34,35,36,37,38,4,39,40,10,41,42,43,44,45,46,5,7,47,48,49,50,51,52,53,54,3,55,56]),import.meta.url)),Wo=m.lazy(()=>P(()=>import("./config-navigation-W-s37kH4.js"),__vite__mapDeps([57,1,2,47,48,58,34,44,45,46,6,27,28,5,7,41,59,60,17,18,16,31,4,61,36,62,33,63,19]),import.meta.url)),Jo=m.lazy(()=>P(()=>import("./audit-logs-C4Bkb7ih.js"),__vite__mapDeps([64,1,2,65,66,10,45,17,18,67,53]),import.meta.url)),Yo=m.lazy(()=>P(()=>import("./index-CV3SX2WR.js"),__vite__mapDeps([68,1,2,8,69,27,28,25,9,70,54,16,17,18,4,71,10,72,34,73,61,74]),import.meta.url)),Xo=m.lazy(()=>P(()=>import("./index-4rMgZX4U.js").then(e=>e.i),__vite__mapDeps([75,1,2,29,8,35,76,70,54,16,17,18,51,52,6,53,47,48,10,46,62,77,78,31,40,7,4,39,3,20]),import.meta.url)),Zo=m.lazy(()=>P(()=>import("./service-C2WlGo6H.js"),__vite__mapDeps([79,1,2,80,52,17,6,18,16,53,58,54,44,45,46,27,28,5,7,81,43,30,82,48,63,61,31,83,8,26]),import.meta.url)),es=m.lazy(()=>P(()=>import("./index-CG9nBfwn.js"),__vite__mapDeps([84,1,2,8,23,24,25,26,27,28,16,17,18,29,85,65,66,86,10,44,45,46,6,5,7,49,40,43,31,80,52,53,58,54,81,30,82,48,63,61,83,39,87,88,73,89,42,90,91,92,93,94,95,96,4,97,14,71,98,3,99,15,12,100,78,69,9,32,20,33,101]),import.meta.url)),ts=m.lazy(()=>P(()=>import("./log-Y4UQmvxx.js"),__vite__mapDeps([102,1,2,45,103,27,28,17,104]),import.meta.url)),ns=m.lazy(()=>P(()=>import("./runtime-Cq_Acbof.js"),__vite__mapDeps([105,1,2,51,52,17,6,18,16,53,47,48,54,10,46,4,106,107,32]),import.meta.url)),os=m.lazy(()=>P(()=>import("./traffic-DtFFDlh6.js"),__vite__mapDeps([108,1,2,22,81,30,17,107,16,18,61]),import.meta.url)),ss=m.lazy(()=>P(()=>import("./index-DBaPghHu.js"),__vite__mapDeps([109,1,2,4,69,27,28,14,100,78,97,16,17,18,3,49,40,46,90,82,37,51,52,6,53,47,48,54,10,31,5,7,44,45,33,101]),import.meta.url)),rs=({children:e})=>e;function is(){var g,I;const e=Qt(),{tab:t="overview"}=Ze(),{did:n,blocklet:o,error:s,client:r,actions:{setBlocklet:i,refreshBlocklet:c}}=ln(),{refresh:a}=Wt(),{t:l}=Ae(),u=m.useCallback(()=>p.jsx(Jo,{scope:n}),[n]),d=((g=o==null?void 0:o.environments.find(b=>b.key==="BLOCKLET_APP_URL"))==null?void 0:g.value)||window.location.origin,f=b=>tn(b,d),y=b=>{e(`/blocklets/${n}/${b}`)},v=b=>{b&&i(b),c()},x=!o||pe(o.status)?[]:A.getAppMissingConfigs(o);let C=null;const S=[{label:l("common.overview"),value:"overview"},{breadcrumbsLabel:l("common.components"),label:p.jsx(Jt,{"data-cy":"blocklet-list",color:"error",variant:"dot",invisible:!x.length,children:l("common.components")}),value:"components"}];if(s)C=p.jsxs(p.Fragment,{children:[p.jsx(Ye,{severity:"error",variant:"icon",children:ce(s)}),p.jsx(Xe,{onClick:()=>c(),children:p.jsx("span",{style:{textDecoration:"underline"},children:l("common.retry")})})]});else if(o){const b={overview:p.jsx(Ko,{}),configuration:Qo,navigation:Wo,services:Zo,members:p.jsx(Xo,{type:"blocklet",createPassportSvg:f}),passports:Yo,components:es,"audit-logs":u,logs:ts,runtime:p.jsx(ns,{}),traffic:p.jsx(os,{client:r,did:n}),storage:p.jsx(ss,{})};t==="configuration"&&pe(o.status)&&y("overview"),pe(o.status)||(S.push({label:l("common.members"),value:"members"}),S.push({label:l("common.passport"),value:"passports"}),S.push({label:l("common.configuration"),value:"configuration"})),S.push({label:l("common.auditLogs"),value:"audit-logs"}),o&&((I=o.children)!=null&&I.length)&&o.structVersion===z.APP_STRUCT_VERSION&&S.push({label:l("common.logs"),value:"logs"}),S.push({label:l("common.configNavigation"),value:"navigation"}),S.push({label:l("common.runtime"),value:"runtime"}),S.push({label:l("common.traffic"),value:"traffic"}),S.push({label:l("common.storage"),value:"storage"}),A.getBlockletServices(o).length&&S.splice(2,0,{label:l("blocklet.services"),value:"services"});const E=b[t]||b.overview;C=p.jsxs(sn,{type:"components",children:[!A.isExternalBlocklet(o)&&p.jsx(nn,{tabs:S,current:t,onChange:y,scrollButtons:"auto"}),p.jsx("div",{className:"page-content",children:p.jsx(m.Suspense,{fallback:p.jsx(Fe,{relative:"parent",children:p.jsx(Ue,{})}),children:m.isValidElement(E)?E:p.jsx(E,{blocklet:o,onUpdate:v,createPassportSvg:f})})})]})}else C=p.jsx(Fe,{relative:"parent",children:p.jsx(Ue,{})});const w=()=>{},k=({action:b,error:T})=>{if(T){D.error(T.message);return}b==="remove"?(a(),e("/blocklets")):c()},j=S.find(b=>b.value===t),O=o?un:rs;return p.jsx(O,{teamDid:n,children:p.jsxs(as,{children:[p.jsxs(pn,{separator:"›","aria-label":"breadcrumb",className:"page-breadcrumb",children:[p.jsx(Yt,{color:"textSecondary",to:"/blocklets",children:l("common.blocklets")}),p.jsx(Xt,{to:`/blocklets/${n}/overview`,style:b=>b?{color:"inherit"}:{},children:l("common.detail")}),p.jsx(he,{color:"textSecondary",children:j?j.breadcrumbsLabel||j.label:""})]}),p.jsxs(he,{component:"div",className:"page-header",children:[p.jsxs(he,{component:"h2",variant:"h4",className:"page-title",color:"textPrimary",children:[o?p.jsx(cn,{blocklet:o,style:{marginRight:16}}):null,o?p.jsxs(ne,{display:"flex",alignItems:"center",flexWrap:"wrap",gap:1,children:[p.jsx(ne,{children:A.getDisplayName(o)}),(o==null?void 0:o.status)!=="unknown"&&p.jsx(on,{size:"12px",status:o.status,source:o.source,progress:o.progress})]}):`${l("common.blocklet")} ${l("common.detail")}`]}),p.jsx(Zt,{permission:"mutate_blocklets",children:!!o&&!A.isExternalBlocklet(o)&&p.jsx(rn,{className:"page-actions",blocklet:o,onStart:w,onComplete:k,variant:"group"})})]}),p.jsx(Dt,{}),C]})})}function cs(){const{did:e}=Ze();return e?p.jsx(an,{did:e,children:p.jsx(Me,{children:p.jsx(is,{})})}):null}const as=en.main`
12
+ */const et=Object.freeze({left:0,top:0,width:16,height:16}),oe=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Q=Object.freeze({...et,...oe}),ve=Object.freeze({...Q,body:"",hidden:!1});function hn(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const o=((e.rotate||0)+(t.rotate||0))%4;return o&&(n.rotate=o),n}function Ve(e,t){const n=hn(e,t);for(const o in ve)o in oe?o in e&&!(o in n)&&(n[o]=oe[o]):o in t?n[o]=t[o]:o in e&&(n[o]=e[o]);return n}function mn(e,t){const n=e.icons,o=e.aliases||Object.create(null),s=Object.create(null);function r(i){if(n[i])return s[i]=[];if(!(i in s)){s[i]=null;const c=o[i]&&o[i].parent,a=c&&r(c);a&&(s[i]=[c].concat(a))}return s[i]}return(t||Object.keys(n).concat(Object.keys(o))).forEach(r),s}function gn(e,t,n){const o=e.icons,s=e.aliases||Object.create(null);let r={};function i(c){r=Ve(o[c]||s[c],r)}return i(t),n.forEach(i),Ve(e,r)}function tt(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(s=>{t(s,null),n.push(s)});const o=mn(e);for(const s in o){const r=o[s];r&&(t(s,gn(e,s,r)),n.push(s))}return n}const $=/^[a-z0-9]+(-[a-z0-9]+)*$/,U=(e,t,n,o="")=>{const s=e.split(":");if(e.slice(0,1)==="@"){if(s.length<2||s.length>3)return null;o=s.shift().slice(1)}if(s.length>3||!s.length)return null;if(s.length>1){const c=s.pop(),a=s.pop(),l={provider:s.length>0?s[0]:o,prefix:a,name:c};return t&&!ee(l)?null:l}const r=s[0],i=r.split("-");if(i.length>1){const c={provider:o,prefix:i.shift(),name:i.join("-")};return t&&!ee(c)?null:c}if(n&&o===""){const c={provider:o,prefix:"",name:r};return t&&!ee(c,n)?null:c}return null},ee=(e,t)=>e?!!((e.provider===""||e.provider.match($))&&(t&&e.prefix===""||e.prefix.match($))&&e.name.match($)):!1,yn={provider:"",aliases:{},not_found:{},...et};function me(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function nt(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!me(e,yn))return null;const n=t.icons;for(const s in n){const r=n[s];if(!s.match($)||typeof r.body!="string"||!me(r,ve))return null}const o=t.aliases||Object.create(null);for(const s in o){const r=o[s],i=r.parent;if(!s.match($)||typeof i!="string"||!n[i]&&!o[i]||!me(r,ve))return null}return t}const se=Object.create(null);function bn(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function _(e,t){const n=se[e]||(se[e]=Object.create(null));return n[t]||(n[t]=bn(e,t))}function je(e,t){return nt(t)?tt(t,(n,o)=>{o?e.icons[n]=o:e.missing.add(n)}):[]}function vn(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function xn(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(se)).forEach(s=>{(typeof s=="string"&&typeof t=="string"?[t]:Object.keys(se[s]||{})).forEach(i=>{const c=_(s,i);n=n.concat(Object.keys(c.icons).map(a=>(s!==""?"@"+s+":":"")+i+":"+a))})}),n}let H=!1;function Sn(e){return typeof e=="boolean"&&(H=e),H}function W(e){const t=typeof e=="string"?U(e,!0,H):e;if(t){const n=_(t.provider,t.prefix),o=t.name;return n.icons[o]||(n.missing.has(o)?null:void 0)}}function ot(e,t){const n=U(e,!0,H);if(!n)return!1;const o=_(n.provider,n.prefix);return vn(o,n.name,t)}function st(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),H&&!t&&!e.prefix){let s=!1;return nt(e)&&(e.prefix="",tt(e,(r,i)=>{i&&ot(r,i)&&(s=!0)})),s}const n=e.prefix;if(!ee({provider:t,prefix:n,name:"a"}))return!1;const o=_(t,n);return!!je(o,e)}function wn(e){return!!W(e)}function kn(e){const t=W(e);return t?{...Q,...t}:null}const rt=Object.freeze({width:null,height:null}),it=Object.freeze({...rt,...oe}),In=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Cn=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function xe(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const o=e.split(In);if(o===null||!o.length)return e;const s=[];let r=o.shift(),i=Cn.test(r);for(;;){if(i){const c=parseFloat(r);isNaN(c)?s.push(r):s.push(Math.ceil(c*t*n)/n)}else s.push(r);if(r=o.shift(),r===void 0)return s.join("");i=!i}}const En=e=>e==="unset"||e==="undefined"||e==="none";function le(e,t){const n={...Q,...e},o={...it,...t},s={left:n.left,top:n.top,width:n.width,height:n.height};let r=n.body;[n,o].forEach(v=>{const x=[],C=v.hFlip,S=v.vFlip;let w=v.rotate;C?S?w+=2:(x.push("translate("+(s.width+s.left).toString()+" "+(0-s.top).toString()+")"),x.push("scale(-1 1)"),s.top=s.left=0):S&&(x.push("translate("+(0-s.left).toString()+" "+(s.height+s.top).toString()+")"),x.push("scale(1 -1)"),s.top=s.left=0);let k;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:k=s.height/2+s.top,x.unshift("rotate(90 "+k.toString()+" "+k.toString()+")");break;case 2:x.unshift("rotate(180 "+(s.width/2+s.left).toString()+" "+(s.height/2+s.top).toString()+")");break;case 3:k=s.width/2+s.left,x.unshift("rotate(-90 "+k.toString()+" "+k.toString()+")");break}w%2===1&&(s.left!==s.top&&(k=s.left,s.left=s.top,s.top=k),s.width!==s.height&&(k=s.width,s.width=s.height,s.height=k)),x.length&&(r='<g transform="'+x.join(" ")+'">'+r+"</g>")});const i=o.width,c=o.height,a=s.width,l=s.height;let u,d;i===null?(d=c===null?"1em":c==="auto"?l:c,u=xe(d,a/l)):(u=i==="auto"?a:i,d=c===null?xe(u,l/a):c==="auto"?l:c);const f={},y=(v,x)=>{En(x)||(f[v]=x.toString())};return y("width",u),y("height",d),f.viewBox=s.left.toString()+" "+s.top.toString()+" "+a.toString()+" "+l.toString(),{attributes:f,body:r}}const Pn=/\sid="(\S+)"/g,Tn="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let _n=0;function ct(e,t=Tn){const n=[];let o;for(;o=Pn.exec(e);)n.push(o[1]);if(!n.length)return e;const s="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(r=>{const i=typeof t=="function"?t(r):t+(_n++).toString(),c=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+i+s+"$3")}),e=e.replace(new RegExp(s,"g"),""),e}const L={local:!0,session:!0},at={local:new Set,session:new Set};let Oe=!1;function An(e){Oe=e}const ze="iconify2",K="iconify",lt=K+"-count",$e=K+"-version",ut=36e5,Bn=168;function Se(e,t){try{return e.getItem(t)}catch{}}function De(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Ge(e,t){try{e.removeItem(t)}catch{}}function we(e,t){return De(e,lt,t.toString())}function ke(e){return parseInt(Se(e,lt))||0}let X=typeof window>"u"?{}:window;function ft(e){const t=e+"Storage";try{if(X&&X[t]&&typeof X[t].length=="number")return X[t]}catch{}L[e]=!1}function dt(e,t){const n=ft(e);if(!n)return;const o=Se(n,$e);if(o!==ze){if(o){const c=ke(n);for(let a=0;a<c;a++)Ge(n,K+a.toString())}De(n,$e,ze),we(n,0);return}const s=Math.floor(Date.now()/ut)-Bn,r=c=>{const a=K+c.toString(),l=Se(n,a);if(typeof l=="string"){try{const u=JSON.parse(l);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>s&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,c))return!0}catch{}Ge(n,a)}};let i=ke(n);for(let c=i-1;c>=0;c--)r(c)||(c===i-1?(i--,we(n,i)):at[e].add(c))}function pt(){if(!Oe){An(!0);for(const e in L)dt(e,t=>{const n=t.data,o=t.provider,s=n.prefix,r=_(o,s);if(!je(r,n).length)return!1;const i=n.lastModified||-1;return r.lastModifiedCached=r.lastModifiedCached?Math.min(r.lastModifiedCached,i):i,!0})}}function ht(e,t){switch(e){case"local":case"session":L[e]=t;break;case"all":for(const n in L)L[n]=t;break}}const Ie=Object.create(null);function mt(e,t){Ie[e]=t}function Ce(e){return Ie[e]||Ie[""]}function Le(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const ue=Object.create(null),V=["https://api.simplesvg.com","https://api.unisvg.com"],te=[];for(;V.length>0;)V.length===1||Math.random()>.5?te.push(V.shift()):te.push(V.pop());ue[""]=Le({resources:["https://api.iconify.design"].concat(te)});function gt(e,t){const n=Le(t);return n===null?!1:(ue[e]=n,!0)}function fe(e){return ue[e]}function jn(){return Object.keys(ue)}const On=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let re=On();function Dn(e){re=e}function Ln(){return re}function Nn(e,t){const n=fe(e);if(!n)return 0;let o;if(!n.maxURL)o=0;else{let s=0;n.resources.forEach(i=>{s=Math.max(s,i.length)});const r=t+".json?icons=";o=n.maxURL-s-n.path.length-r.length}return o}function Mn(e){return e===404}const Rn=(e,t,n)=>{const o=[],s=Nn(e,t),r="icons";let i={type:r,provider:e,prefix:t,icons:[]},c=0;return n.forEach((a,l)=>{c+=a.length+1,c>=s&&l>0&&(o.push(i),i={type:r,provider:e,prefix:t,icons:[]},c=a.length),i.icons.push(a)}),o.push(i),o};function Fn(e){if(typeof e=="string"){const t=fe(e);if(t)return t.path}return"/"}const Un=(e,t,n)=>{if(!re){n("abort",424);return}let o=Fn(t.provider);switch(t.type){case"icons":{const r=t.prefix,c=t.icons.join(","),a=new URLSearchParams({icons:c});o+=r+".json?"+a.toString();break}case"custom":{const r=t.uri;o+=r.slice(0,1)==="/"?r.slice(1):r;break}default:n("abort",400);return}let s=503;re(e+o).then(r=>{const i=r.status;if(i!==200){setTimeout(()=>{n(Mn(i)?"abort":"next",i)});return}return s=501,r.json()}).then(r=>{if(typeof r!="object"||r===null){setTimeout(()=>{r===404?n("abort",r):n("next",s)});return}setTimeout(()=>{n("success",r)})}).catch(()=>{n("next",s)})},Vn={prepare:Rn,send:Un};function zn(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((s,r)=>s.provider!==r.provider?s.provider.localeCompare(r.provider):s.prefix!==r.prefix?s.prefix.localeCompare(r.prefix):s.name.localeCompare(r.name));let o={provider:"",prefix:"",name:""};return e.forEach(s=>{if(o.name===s.name&&o.prefix===s.prefix&&o.provider===s.provider)return;o=s;const r=s.provider,i=s.prefix,c=s.name,a=n[r]||(n[r]=Object.create(null)),l=a[i]||(a[i]=_(r,i));let u;c in l.icons?u=t.loaded:i===""||l.missing.has(c)?u=t.missing:u=t.pending;const d={provider:r,prefix:i,name:c};u.push(d)}),t}function yt(e,t){e.forEach(n=>{const o=n.loaderCallbacks;o&&(n.loaderCallbacks=o.filter(s=>s.id!==t))})}function $n(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const o=e.provider,s=e.prefix;t.forEach(r=>{const i=r.icons,c=i.pending.length;i.pending=i.pending.filter(a=>{if(a.prefix!==s)return!0;const l=a.name;if(e.icons[l])i.loaded.push({provider:o,prefix:s,name:l});else if(e.missing.has(l))i.missing.push({provider:o,prefix:s,name:l});else return n=!0,!0;return!1}),i.pending.length!==c&&(n||yt([e],r.id),r.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),r.abort))})}))}let Gn=0;function qn(e,t,n){const o=Gn++,s=yt.bind(null,n,o);if(!t.pending.length)return s;const r={id:o,icons:t,callback:e,abort:s};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(r)}),s}function Hn(e,t=!0,n=!1){const o=[];return e.forEach(s=>{const r=typeof s=="string"?U(s,t,n):s;r&&o.push(r)}),o}var Kn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Qn(e,t,n,o){const s=e.resources.length,r=e.random?Math.floor(Math.random()*s):e.index;let i;if(e.random){let g=e.resources.slice(0);for(i=[];g.length>1;){const I=Math.floor(Math.random()*g.length);i.push(g[I]),g=g.slice(0,I).concat(g.slice(I+1))}i=i.concat(g)}else i=e.resources.slice(r).concat(e.resources.slice(0,r));const c=Date.now();let a="pending",l=0,u,d=null,f=[],y=[];typeof o=="function"&&y.push(o);function v(){d&&(clearTimeout(d),d=null)}function x(){a==="pending"&&(a="aborted"),v(),f.forEach(g=>{g.status==="pending"&&(g.status="aborted")}),f=[]}function C(g,I){I&&(y=[]),typeof g=="function"&&y.push(g)}function S(){return{startTime:c,payload:t,status:a,queriesSent:l,queriesPending:f.length,subscribe:C,abort:x}}function w(){a="failed",y.forEach(g=>{g(void 0,u)})}function k(){f.forEach(g=>{g.status==="pending"&&(g.status="aborted")}),f=[]}function j(g,I,b){const T=I!=="success";switch(f=f.filter(E=>E!==g),a){case"pending":break;case"failed":if(T||!e.dataAfterTimeout)return;break;default:return}if(I==="abort"){u=b,w();return}if(T){u=b,f.length||(i.length?O():w());return}if(v(),k(),!e.random){const E=e.resources.indexOf(g.resource);E!==-1&&E!==e.index&&(e.index=E)}a="completed",y.forEach(E=>{E(b)})}function O(){if(a!=="pending")return;v();const g=i.shift();if(g===void 0){if(f.length){d=setTimeout(()=>{v(),a==="pending"&&(k(),w())},e.timeout);return}w();return}const I={status:"pending",resource:g,callback:(b,T)=>{j(I,b,T)}};f.push(I),l++,d=setTimeout(O,e.rotate),n(g,t,I.callback)}return setTimeout(O),S}function bt(e){const t={...Kn,...e};let n=[];function o(){n=n.filter(c=>c().status==="pending")}function s(c,a,l){const u=Qn(t,c,a,(d,f)=>{o(),l&&l(d,f)});return n.push(u),u}function r(c){return n.find(a=>c(a))||null}return{query:s,find:r,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:o}}function qe(){}const ge=Object.create(null);function Wn(e){if(!ge[e]){const t=fe(e);if(!t)return;const n=bt(t),o={config:t,redundancy:n};ge[e]=o}return ge[e]}function vt(e,t,n){let o,s;if(typeof e=="string"){const r=Ce(e);if(!r)return n(void 0,424),qe;s=r.send;const i=Wn(e);i&&(o=i.redundancy)}else{const r=Le(e);if(r){o=bt(r);const i=e.resources?e.resources[0]:"",c=Ce(i);c&&(s=c.send)}}return!o||!s?(n(void 0,424),qe):o.query(t,s,n)().abort}function Jn(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const o in L)dt(o,s=>{const r=s.data;return s.provider!==e.provider||r.prefix!==e.prefix||r.lastModified===t});return!0}function Yn(e,t){Oe||pt();function n(o){let s;if(!L[o]||!(s=ft(o)))return;const r=at[o];let i;if(r.size)r.delete(i=Array.from(r).shift());else if(i=ke(s),!we(s,i+1))return;const c={cached:Math.floor(Date.now()/ut),provider:e.provider,data:t};return De(s,K+i.toString(),JSON.stringify(c))}t.lastModified&&!Jn(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function He(){}function Xn(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,$n(e)}))}function Zn(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:o}=e,s=e.iconsToLoad;delete e.iconsToLoad;let r;if(!s||!(r=Ce(n)))return;r.prepare(n,o,s).forEach(c=>{vt(n,c,a=>{if(typeof a!="object")c.icons.forEach(l=>{e.missing.add(l)});else try{const l=je(e,a);if(!l.length)return;const u=e.pendingIcons;u&&l.forEach(d=>{u.delete(d)}),Yn(e,a)}catch(l){console.error(l)}Xn(e)})})}))}const eo=e=>{const n=_(e.provider,e.prefix).pendingIcons;return!!(n&&n.has(e.name))},Ne=(e,t)=>{const n=Hn(e,!0,Sn()),o=zn(n);if(!o.pending.length){let a=!0;return t&&setTimeout(()=>{a&&t(o.loaded,o.missing,o.pending,He)}),()=>{a=!1}}const s=Object.create(null),r=[];let i,c;return o.pending.forEach(a=>{const{provider:l,prefix:u}=a;if(u===c&&l===i)return;i=l,c=u,r.push(_(l,u));const d=s[l]||(s[l]=Object.create(null));d[u]||(d[u]=[])}),o.pending.forEach(a=>{const{provider:l,prefix:u,name:d}=a,f=_(l,u),y=f.pendingIcons||(f.pendingIcons=new Set);y.has(d)||(y.add(d),s[l][u].push(d))}),r.forEach(a=>{const{provider:l,prefix:u}=a;s[l][u].length&&Zn(a,s[l][u])}),t?qn(t,o,r):He},to=e=>new Promise((t,n)=>{const o=typeof e=="string"?U(e,!0):e;if(!o){n(e);return}Ne([o||e],s=>{if(s.length&&o){const r=W(o);if(r){t({...Q,...r});return}}n(e)})});function xt(e,t){const n={...e};for(const o in t){const s=t[o],r=typeof s;o in rt?(s===null||s&&(r==="string"||r==="number"))&&(n[o]=s):r===typeof n[o]&&(n[o]=o==="rotate"?s%4:s)}return n}const de={...it,inline:!1},ye="iconify",Ee="iconify-inline",B="iconifyData"+Date.now();let N=[];function J(e){for(let t=0;t<N.length;t++){const n=N[t];if((typeof n.node=="function"?n.node():n.node)===e)return n}}function St(e,t=!1){let n=J(e);return n?(n.temporary&&(n.temporary=t),n):(n={node:e,temporary:t},N.push(n),n)}function no(){if(document.documentElement)return St(document.documentElement);N.push({node:()=>document.documentElement})}function oo(e){N=N.filter(t=>e!==t&&e!==(typeof t.node=="function"?t.node():t.node))}function Y(){return N}function so(e){const t=document;t.readyState&&t.readyState!=="loading"?e():t.addEventListener("DOMContentLoaded",e)}let G=null;const ro={childList:!0,subtree:!0,attributes:!0};function wt(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout(()=>{delete t.pendingScan,G&&G(e)}))}function io(e,t){if(!e.observer)return;const n=e.observer;if(!n.pendingScan)for(let o=0;o<t.length;o++){const s=t[o];if(s.addedNodes&&s.addedNodes.length>0||s.type==="attributes"&&s.target[B]!==void 0){n.paused||wt(e);return}}}function kt(e,t){e.observer.instance.observe(t,ro)}function ie(e){let t=e.observer;if(t&&t.instance)return;const n=typeof e.node=="function"?e.node():e.node;!n||!window||(t||(t={paused:0},e.observer=t),t.instance=new window.MutationObserver(io.bind(null,e)),kt(e,n),t.paused||wt(e))}function Ke(){Y().forEach(ie)}function It(e){if(!e.observer)return;const t=e.observer;t.pendingScan&&(clearTimeout(t.pendingScan),delete t.pendingScan),t.instance&&(t.instance.disconnect(),delete t.instance)}function co(e){const t=G!==null;if(G!==e&&(G=e,t&&Y().forEach(It)),t){Ke();return}so(Ke)}function Pe(e){(e?[e]:Y()).forEach(t=>{if(!t.observer){t.observer={paused:1};return}const n=t.observer;if(n.paused++,n.paused>1||!n.instance)return;n.instance.disconnect()})}function ao(e){if(e){const t=J(e);t&&Pe(t)}else Pe()}function Te(e){(e?[e]:Y()).forEach(t=>{if(!t.observer){ie(t);return}const n=t.observer;if(n.paused&&(n.paused--,!n.paused)){const o=typeof t.node=="function"?t.node():t.node;if(o)n.instance?kt(t,o):ie(t);else return}})}function lo(e){if(e){const t=J(e);t&&Te(t)}else Te()}function Ct(e,t=!1){const n=St(e,t);return ie(n),n}function Et(e){const t=J(e);t&&(It(t),oo(e))}function uo(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const n=e.customisations,o=t.customisations;for(const s in de)if(n[s]!==o[s])return!0;return!1}function fo(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function o(s){for(;s<0;)s+=4;return s%4}if(n===""){const s=parseInt(e);return isNaN(s)?0:o(s)}else if(n!==e){let s=0;switch(n){case"%":s=25;break;case"deg":s=90}if(s){let r=parseFloat(e.slice(0,e.length-n.length));return isNaN(r)?0:(r=r/s,r%1===0?o(r):0)}}return t}const po=/[\s,]+/;function ho(e,t){t.split(po).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const mo=["width","height"],go=["inline","hFlip","vFlip"];function yo(e,t){return e===t||e==="true"?!0:e===""||e==="false"?!1:null}function bo(e){const t=e.getAttribute("data-icon"),n=typeof t=="string"&&U(t,!0);if(!n)return null;const o={...de,inline:e.classList&&e.classList.contains(Ee)};mo.forEach(c=>{const a=e.getAttribute("data-"+c);a&&(o[c]=a)});const s=e.getAttribute("data-rotate");typeof s=="string"&&(o.rotate=fo(s));const r=e.getAttribute("data-flip");typeof r=="string"&&ho(o,r),go.forEach(c=>{const a="data-"+c,l=yo(e.getAttribute(a),a);typeof l=="boolean"&&(o[c]=l)});const i=e.getAttribute("data-mode");return{name:t,icon:n,customisations:o,mode:i}}const vo="svg."+ye+", i."+ye+", span."+ye+", i."+Ee+", span."+Ee;function xo(e){const t=[];return e.querySelectorAll(vo).forEach(n=>{const o=n[B]||n.tagName.toLowerCase()!=="svg"?bo(n):null;o&&t.push({node:n,props:o})}),t}function Pt(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const o in t)n+=" "+o+'="'+t[o]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}let q;function So(){try{q=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{q=null}}function wo(e){return q===void 0&&So(),q?q.createHTML(e):e}function Tt(e){const t=new Set(["iconify"]);return["provider","prefix"].forEach(n=>{e[n]&&t.add("iconify--"+e[n])}),t}function _t(e,t,n,o){const s=e.classList;if(o){const i=o.classList;Array.from(i).forEach(c=>{s.add(c)})}const r=[];return t.forEach(i=>{s.contains(i)?n.has(i)&&r.push(i):(s.add(i),r.push(i))}),n.forEach(i=>{t.has(i)||s.remove(i)}),r}function At(e,t,n){const o=e.style;(n||[]).forEach(r=>{o.removeProperty(r)});const s=[];for(const r in t)o.getPropertyValue(r)||(s.push(r),o.setProperty(r,t[r]));return s}function Bt(e,t,n){let o;try{o=document.createElement("span")}catch{return e}const s=t.customisations,r=le(n,s),i=e[B],c=Pt(ct(r.body),{"aria-hidden":"true",role:"img",...r.attributes});o.innerHTML=wo(c);const a=o.childNodes[0],l=e.attributes;for(let v=0;v<l.length;v++){const x=l.item(v),C=x.name;C!=="class"&&!a.hasAttribute(C)&&a.setAttribute(C,x.value)}const u=Tt(t.icon),d=_t(a,u,new Set(i&&i.addedClasses),e),f=At(a,s.inline?{"vertical-align":"-0.125em"}:{},i&&i.addedStyles),y={...t,status:"loaded",addedClasses:d,addedStyles:f};return a[B]=y,e.parentNode&&e.parentNode.replaceChild(a,e),a}function ko(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Io(e){return"data:image/svg+xml,"+ko(e)}function Co(e){return'url("'+Io(e)+'")'}const Eo={display:"inline-block"},_e={"background-color":"currentColor"},jt={"background-color":"transparent"},Qe={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},We={"-webkit-mask":_e,mask:_e,background:jt};for(const e in We){const t=We[e];for(const n in Qe)t[e+"-"+n]=Qe[n]}function Je(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}function Po(e,t,n,o){const s=t.customisations,r=le(n,s),i=r.attributes,c=e[B],a=Pt(r.body,{...i,width:n.width+"",height:n.height+""}),l=Tt(t.icon),u=_t(e,l,new Set(c&&c.addedClasses)),f={"--svg":Co(a),width:Je(i.width),height:Je(i.height),...Eo,...o?_e:jt};s.inline&&(f["vertical-align"]="-0.125em");const y=At(e,f,c&&c.addedStyles),v={...t,status:"loaded",addedClasses:u,addedStyles:y};return e[B]=v,e}let Z=!1;function To(){Z||(Z=!0,setTimeout(()=>{Z&&(Z=!1,R())}))}function R(e,t=!1){const n=Object.create(null);function o(s,r){const{provider:i,prefix:c,name:a}=s,l=_(i,c),u=l.icons[a];if(u)return{status:"loaded",icon:u};if(l.missing.has(a))return{status:"missing"};if(r&&!eo(s)){const d=n[i]||(n[i]=Object.create(null));(d[c]||(d[c]=new Set)).add(a)}return{status:"loading"}}(e?[e]:Y()).forEach(s=>{const r=typeof s.node=="function"?s.node():s.node;if(!r||!r.querySelectorAll)return;let i=!1,c=!1;function a(l,u,d){if(c||(c=!0,Pe(s)),l.tagName.toUpperCase()!=="SVG"){const f=u.mode,y=f==="mask"||(f==="bg"?!1:f==="style"?d.body.indexOf("currentColor")!==-1:null);if(typeof y=="boolean"){Po(l,u,{...Q,...d},y);return}}Bt(l,u,d)}xo(r).forEach(({node:l,props:u})=>{const d=l[B];if(!d){const{status:y,icon:v}=o(u.icon,!0);if(v){a(l,u,v);return}i=i||y==="loading",l[B]={...u,status:y};return}let f;if(uo(d,u)){if(f=o(u.icon,d.name!==u.name),!f.icon){i=i||f.status==="loading",Object.assign(d,{...u,status:f.status});return}}else{if(d.status!=="loading")return;if(f=o(u.icon,!1),!f.icon){d.status=f.status;return}}a(l,u,f.icon)}),s.temporary&&!i?Et(r):t&&i?Ct(r,!0):c&&s.observer&&Te(s)});for(const s in n){const r=n[s];for(const i in r){const c=r[i];Ne(Array.from(c).map(a=>({provider:s,prefix:i,name:a})),To)}}}function _o(e){const t=J(e);t?R(t):R({node:e,temporary:!0},!0)}function Ot(e,t,n=!1){const o=W(e);if(!o)return null;const s=U(e),r=xt(de,t||{}),i=Bt(document.createElement("span"),{name:e,icon:s,customisations:r},o);return n?i.outerHTML:i}function Ao(){return"3.1.1"}function Bo(e,t){return Ot(e,t,!1)}function jo(e,t){return Ot(e,t,!0)}function Oo(e,t){const n=W(e);if(!n)return null;const o=xt(de,t||{});return le(n,o)}function Do(e){e?_o(e):R()}if(typeof document<"u"&&typeof window<"u"){no();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!st(o))&&console.error(n)}catch{console.error(n)}})}setTimeout(()=>{co(R),R()})}function Lo(e,t){ht(e,t!==!1)}function No(e){ht(e,!0)}mt("",Vn);if(typeof document<"u"&&typeof window<"u"){pt();const e=window;if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(const n in t){const o="IconifyProviders["+n+"] is invalid.";try{const s=t[n];if(typeof s!="object"||!s||s.resources===void 0)continue;gt(n,s)||console.error(o)}catch{console.error(o)}}}}const Mo={getAPIConfig:fe,setAPIModule:mt,sendAPIQuery:vt,setFetch:Dn,getFetch:Ln,listAPIProviders:jn},Ro={_api:Mo,addAPIProvider:gt,loadIcons:Ne,loadIcon:to,iconExists:wn,getIcon:kn,listIcons:xn,addIcon:ot,addCollection:st,replaceIDs:ct,calculateSize:xe,buildIcon:le,getVersion:Ao,renderSVG:Bo,renderHTML:jo,renderIcon:Oo,scan:Do,observe:Ct,stopObserving:Et,pauseObserver:ao,resumeObserver:lo,enableCache:Lo,disableCache:No};try{self.Iconify===void 0&&(self.Iconify=Ro)}catch{}const Fo=e=>{const t={};let n=null;return A.forEachBlockletSync(e,o=>{t[o.meta.bundleDid]?n=A.getDisplayName(o,!0):o.meta.bundleDid&&(t[o.meta.bundleDid]=!0)}),n},Uo=(e,t,n)=>{var r;const{hostname:o,href:s}=e;if(!t)return s;if(n){const c=/\d+[-.]\d+[-.]\d+[-.]\d+/.exec(o);if(!c)return s;const a=c[0],u=((((r=t.site)==null?void 0:r.domainAliases)||[]).map(d=>d.value).filter(Boolean).find(d=>d.endsWith(z.DEFAULT_DID_DOMAIN))||"").replace(`.${z.DEFAULT_DID_DOMAIN}`,"");return u?s.replace(o,`${u}-${a}.${z.DEFAULT_IP_DOMAIN_SUFFIX}`):s}return s.replace(t.meta.bundleDid,t.appPid)};function Dt(){const{t:e}=Ae(),{api:t}=Gt(),{blocklet:n}=F(),{inService:o}=M(),[s,r]=m.useState(!1),[i,c]=m.useState(5),a=n&&n.structVersion!==z.APP_STRUCT_VERSION,l=()=>{try{if(n.status==="running"){D.error(e("blocklet.migrate.tip.running"));return}const f=Fo(n);if(f){D.error(e("blocklet.migrate.tip.duplicate",{name:f}));return}r(!0)}catch(f){D.error(ce(f))}},u=()=>{const f=Uo(window.location,n,o);setTimeout(()=>{window.location.href=f},5e3),c(5),setInterval(()=>{c(y=>y-1)},1e3)},d=()=>r(!1);return[a&&p.jsxs(Ye,{severity:"warning",style:{margin:"12px 0"},children:[p.jsxs(ne,{display:"flex",alignItems:"center",children:[p.jsx(Xe,{variant:"contained",size:"small",color:"primary",onClick:()=>l(),style:{marginRight:8},children:e("blocklet.migrate.intro.l1")}),p.jsx("span",{children:e("blocklet.migrate.intro.l2")})]}),["l3","l4","l5","l6"].map(f=>p.jsx(ne,{display:"flex",alignItems:"center",children:e(`blocklet.migrate.intro.${f}`)},f))]},"alert"),n&&p.jsx(qt,{popup:!0,open:s,saveConnect:!1,forceConnected:!1,action:"migrate-app-to-struct-v2",checkFn:t.get,checkTimeout:5*60*1e3,onSuccess:u,extraParams:{appDid:n.appDid,did:n.meta.did,wt:Ht(n,!0),title:A.getDisplayName(n)},messages:{title:e("blocklet.migrate.title"),scan:e("blocklet.migrate.scan"),confirm:e("blocklet.migrate.confirm"),success:i>=0?e("blocklet.migrate.success",{sec:i}):"Redirecting..."},onClose:d},"connect")]}Dt.propTypes={};async function Vo({blockletDid:e,nodeApi:t,spaceGateways:n}){let o=!1;const s=await Promise.all(n.map(async r=>{let{name:i}=r;const c=await an(r.endpoint);return!Be.isEmpty(c)&&c!==i&&(i=c,o=!0),{...r,name:i}}));return o&&await Promise.all(s.filter(r=>r.did).map(r=>t.updateBlockletSpaceGateway({input:{did:e,where:{did:r.did},spaceGateway:{...r}}}))),s}function zo({setLoading:e,refresh:t}={}){var a;const{blocklet:n,actions:{refreshBlocklet:o}}=F(),s=(a=n==null?void 0:n.meta)==null?void 0:a.did,[r,i]=m.useState([]),{api:c}=M();return ae(async()=>{try{if(!s){i([]);return}e==null||e(!0);const{spaceGateways:l}=await c.getBlockletSpaceGateways({input:{did:s}}),u=await Vo({blockletDid:s,nodeApi:c,spaceGateways:l});i(u??[])}catch(l){console.error(l),D.error(ce(l))}finally{e==null||e(!1)}},[s,o,t]),{spaceGateways:r}}function Lt({deps:e,setLoading:t}={deps:[],setLoading:()=>{}}){var c;const{blocklet:n}=F(),[o,s]=m.useState([]),{api:r}=M(),i=Be.debounce(async()=>{try{if(t(!0),!n){s([]);return}const{backups:a}=await r.getBlockletBackups({input:{did:n.meta.did}});s(a??[])}catch(a){console.error(a),D.error(ce(a))}finally{t(!1)}},2e3);return ae(async()=>{i()},[(c=n==null?void 0:n.meta)==null?void 0:c.did].concat(e)),{backups:o}}function $o({appDid:e}){const{backups:t}=Lt(),[n,o]=m.useState({message:"",progress:0,completed:!1}),s=M(),{ws:{useSubscription:r}}=s;return r(be.BlockletEvents.backupProgress,i=>{e===(i==null?void 0:i.appDid)&&o(()=>({...i}))},[e]),m.useEffect(()=>{var i;if(t!=null&&t.length&&Be.isNull((i=t[0])==null?void 0:i.status)){const[c]=t;o(()=>({message:c.message,progress:c.progress,completed:c.progress>=100}))}},[t]),n}function Go({deps:e}={deps:[]}){var r;const{blocklet:t}=F(),{api:n}=M(),[o,s]=m.useState(null);return ae(async()=>{var i;if((i=t==null?void 0:t.meta)!=null&&i.did){const{autoBackup:c}=await n.getAutoBackup({input:{did:t.meta.did}});s(c)}},[(r=t==null?void 0:t.meta)==null?void 0:r.did].concat(e)),o}function qo({deps:e}={deps:[]}){var r;const{blocklet:t}=F(),{api:n}=M(),[o,s]=m.useState(null);return ae(async()=>{var i;if((i=t==null?void 0:t.meta)!=null&&i.did){const{autoCheckUpdate:c}=await n.getAutoCheckUpdate({input:{did:t.meta.did}});s(c)}},[(r=t==null?void 0:t.meta)==null?void 0:r.did].concat(e)),o}const Nt=m.createContext({}),{Provider:Ho,Consumer:bs}=Nt;function Me({children:e}){const{t}=Ae(),{api:n}=M(),{blocklet:o}=F(),[s,r]=m.useState(!1),[i,c]=m.useState(!1),{spaceGateways:a}=zo({refresh:i,setLoading:r}),l=$o({appDid:o==null?void 0:o.appDid}),[u,d]=m.useState(!1),f=m.useMemo(()=>ln(o==null?void 0:o.environments),[o,i,u]),[y,v]=m.useState(!1),{backups:x}=Lt({deps:[l],setLoading:v}),[C,S]=m.useState(a==null?void 0:a.find(h=>h.endpoint===f)),[w,k]=m.useState(!1),j=Go({deps:[w]}),[O,g]=m.useState(!1),I=qo({deps:[O]}),b=()=>{c(h=>!h)},T=()=>{d(h=>!h)},E=()=>{k(h=>!h)},Mt=()=>{g(h=>!h)},Rt=async(h,Re)=>{a.push({...h,loading:!0}),await n.addBlockletSpaceGateway({input:{did:o.meta.did,spaceGateway:h}}),f!==Re&&await n.configBlocklet({input:{did:[o.meta.did],configs:[{key:be.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:Re}]}}),b(),S(h)},Ft=async h=>{h&&(await n.deleteBlockletSpaceGateway({input:{did:o.meta.did,spaceGatewayDid:h==null?void 0:h.did}}),b(),S(h))},Ut=async h=>{await n.updateBlockletSpaceGateway({input:{did:o.meta.did,where:{did:h.did},spaceGateway:h}}),f!==h.endpoint&&await n.configBlocklet({input:{did:[o.meta.did],configs:[{key:be.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:h.endpoint}]}}),D.success(t("storage.spaces.connectedWithName",{name:(h==null?void 0:h.name)??"DID Spaces"})),b()},Vt=h=>(h==null?void 0:h.endpoint)===f,zt=async h=>{await n.updateAutoBackup({input:{did:o.meta.did,autoBackup:h}}),E()},$t=async h=>{await n.updateAutoCheckUpdate({input:{did:o.meta.did,autoCheckUpdate:h}}),Mt()};return p.jsx(Ho,{value:{spaceGateways:a,selectedSpaceGateway:C,addSpaceGateway:Rt,deleteSpaceGateway:Ft,updateSpaceGateway:Ut,refreshSpaceGateways:b,spaceGatewaysLoading:s,spaceGatewayIsSelected:Vt,updateAutoBackup:zt,updateAutoCheckUpdate:$t,autoCheckUpdate:I,backupEndpoint:f,backupProgress:l,backups:x,backupsLoading:y,refreshBackupEndpoint:T,autoBackup:j},children:e})}Me.propTypes={children:Kt.any.isRequired};Me.defaultProps={};function vs(){return m.useContext(Nt)}const Ko=m.lazy(()=>P(()=>import("./overview-B0Vrv3iN.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]),import.meta.url)),Qo=m.lazy(()=>P(()=>import("./index-C7XdmdZm.js"),__vite__mapDeps([21,1,2,22,23,24,25,26,27,28,16,17,18,29,30,31,6,32,33,34,35,36,37,38,4,39,40,41,10,42,43,44,45,46,47,5,7,48,49,50,51,52,53,54,55,3,56,57]),import.meta.url)),Wo=m.lazy(()=>P(()=>import("./config-navigation-NRSeF0zB.js"),__vite__mapDeps([58,1,2,48,49,59,34,45,46,47,6,27,28,5,7,42,60,61,17,18,16,31,40,4,62,36,63,33,64,19]),import.meta.url)),Jo=m.lazy(()=>P(()=>import("./audit-logs-XHAxITYC.js"),__vite__mapDeps([65,1,2,66,67,10,46,17,18,68,54]),import.meta.url)),Yo=m.lazy(()=>P(()=>import("./index-CuDSWVTP.js"),__vite__mapDeps([69,1,2,8,70,27,28,25,9,71,55,16,17,18,40,4,72,10,73,34,74,62,75]),import.meta.url)),Xo=m.lazy(()=>P(()=>import("./index-rDmYbmrh.js").then(e=>e.i),__vite__mapDeps([76,1,2,29,8,35,77,71,55,16,17,18,52,53,6,54,48,49,10,47,63,78,79,31,41,7,40,4,39,3,20,80]),import.meta.url)),Zo=m.lazy(()=>P(()=>import("./service-DM6evFxx.js"),__vite__mapDeps([81,1,2,82,53,17,6,18,16,54,59,55,45,46,47,27,28,5,7,83,44,30,84,49,64,62,31,85,8,26]),import.meta.url)),es=m.lazy(()=>P(()=>import("./index-CaILkSHA.js"),__vite__mapDeps([86,1,2,8,23,24,25,26,27,28,16,17,18,29,87,66,67,88,10,45,46,47,6,5,7,50,41,44,31,82,53,54,59,55,83,30,84,49,64,62,85,39,89,90,74,91,43,92,93,80,4,94,95,96,97,98,99,14,72,100,3,101,15,12,102,79,70,9,32,20,40,33,103]),import.meta.url)),ts=m.lazy(()=>P(()=>import("./log-B4RGVLfQ.js"),__vite__mapDeps([104,1,2,46,105,27,28,17,106]),import.meta.url)),ns=m.lazy(()=>P(()=>import("./runtime-Cdoj20eA.js"),__vite__mapDeps([107,1,2,52,53,17,6,18,16,54,48,49,55,10,47,4,108,109,32]),import.meta.url)),os=m.lazy(()=>P(()=>import("./traffic-D8r3k_ae.js"),__vite__mapDeps([110,1,2,22,83,30,17,109,16,18,62]),import.meta.url)),ss=m.lazy(()=>P(()=>import("./index-C32jjYE0.js"),__vite__mapDeps([111,1,2,4,70,27,28,14,102,79,99,16,17,18,3,50,41,47,92,84,37,52,53,6,54,48,49,55,10,31,5,7,45,46,33,40,103]),import.meta.url)),rs=({children:e})=>e;function is(){var g,I;const e=Qt(),{tab:t="overview"}=Ze(),{did:n,blocklet:o,error:s,client:r,actions:{setBlocklet:i,refreshBlocklet:c}}=fn(),{refresh:a}=Wt(),{t:l}=Ae(),u=m.useCallback(()=>p.jsx(Jo,{scope:n}),[n]),d=((g=o==null?void 0:o.environments.find(b=>b.key==="BLOCKLET_APP_URL"))==null?void 0:g.value)||window.location.origin,f=b=>tn(b,d),y=b=>{e(`/blocklets/${n}/${b}`)},v=b=>{b&&i(b),c()},x=!o||pe(o.status)?[]:A.getAppMissingConfigs(o);let C=null;const S=[{label:l("common.overview"),value:"overview"},{breadcrumbsLabel:l("common.components"),label:p.jsx(Jt,{"data-cy":"blocklet-list",color:"error",variant:"dot",invisible:!x.length,children:l("common.components")}),value:"components"}];if(s)C=p.jsxs(p.Fragment,{children:[p.jsx(Ye,{severity:"error",variant:"icon",children:ce(s)}),p.jsx(Xe,{onClick:()=>c(),children:p.jsx("span",{style:{textDecoration:"underline"},children:l("common.retry")})})]});else if(o){const b={overview:p.jsx(Ko,{}),configuration:Qo,navigation:Wo,services:Zo,members:p.jsx(Xo,{type:"blocklet",createPassportSvg:f}),passports:Yo,components:es,"audit-logs":u,logs:ts,runtime:p.jsx(ns,{}),traffic:p.jsx(os,{client:r,did:n}),storage:p.jsx(ss,{})};t==="configuration"&&pe(o.status)&&y("overview"),pe(o.status)||(S.push({label:l("common.members"),value:"members"}),S.push({label:l("common.passport"),value:"passports"}),S.push({label:l("common.configuration"),value:"configuration"})),S.push({label:l("common.auditLogs"),value:"audit-logs"}),o&&((I=o.children)!=null&&I.length)&&o.structVersion===z.APP_STRUCT_VERSION&&S.push({label:l("common.logs"),value:"logs"}),S.push({label:l("common.configNavigation"),value:"navigation"}),S.push({label:l("common.runtime"),value:"runtime"}),S.push({label:l("common.traffic"),value:"traffic"}),S.push({label:l("common.storage"),value:"storage"}),A.getBlockletServices(o).length&&S.splice(2,0,{label:l("blocklet.services"),value:"services"});const E=b[t]||b.overview;C=p.jsxs(sn,{type:"components",children:[!A.isExternalBlocklet(o)&&p.jsx(nn,{tabs:S,current:t,onChange:y,scrollButtons:"auto"}),p.jsx("div",{className:"page-content",children:p.jsx(m.Suspense,{fallback:p.jsx(Fe,{relative:"parent",children:p.jsx(Ue,{})}),children:m.isValidElement(E)?E:p.jsx(E,{blocklet:o,onUpdate:v,createPassportSvg:f})})})]})}else C=p.jsx(Fe,{relative:"parent",children:p.jsx(Ue,{})});const w=()=>{},k=({action:b,error:T})=>{if(T){D.error(T.message);return}b==="remove"?(a(),e("/blocklets")):c()},j=S.find(b=>b.value===t),O=o?dn:rs;return p.jsx(O,{teamDid:n,children:p.jsxs(as,{children:[p.jsxs(pn,{separator:"›","aria-label":"breadcrumb",className:"page-breadcrumb",children:[p.jsx(Yt,{color:"textSecondary",to:"/blocklets",children:l("common.blocklets")}),p.jsx(Xt,{to:`/blocklets/${n}/overview`,style:b=>b?{color:"inherit"}:{},children:l("common.detail")}),p.jsx(he,{color:"textSecondary",children:j?j.breadcrumbsLabel||j.label:""})]}),p.jsxs(he,{component:"div",className:"page-header",children:[p.jsxs(he,{component:"h2",variant:"h4",className:"page-title",color:"textPrimary",children:[o?p.jsx(cn,{blocklet:o,style:{marginRight:16}}):null,o?p.jsxs(ne,{display:"flex",alignItems:"center",flexWrap:"wrap",gap:1,children:[p.jsx(ne,{children:A.getDisplayName(o)}),(o==null?void 0:o.status)!=="unknown"&&p.jsx(on,{size:"12px",status:o.status,source:o.source,progress:o.progress})]}):`${l("common.blocklet")} ${l("common.detail")}`]}),p.jsx(Zt,{permission:"mutate_blocklets",children:!!o&&!A.isExternalBlocklet(o)&&p.jsx(rn,{className:"page-actions",blocklet:o,onStart:w,onComplete:k,variant:"group"})})]}),p.jsx(Dt,{}),C]})})}function cs(){const{did:e}=Ze();return e?p.jsx(un,{did:e,children:p.jsx(Me,{children:p.jsx(is,{})})}):null}const as=en.main`
13
13
  .page-header {
14
14
  display: flex;
15
15
  justify-content: space-between;
@@ -55,4 +55,4 @@ import{q as Ae,t as Gt,bk as M,r as m,F as z,j as p,J as Ye,O as ne,B as Xe,x as
55
55
  margin-bottom: 15px;
56
56
  }
57
57
  }
58
- `,vs=Object.freeze(Object.defineProperty({__proto__:null,default:cs},Symbol.toStringTag,{value:"Module"}));export{vs as d,bs as u};
58
+ `,xs=Object.freeze(Object.defineProperty({__proto__:null,default:cs},Symbol.toStringTag,{value:"Module"}));export{xs as d,vs as u};
@@ -1 +1 @@
1
- import{a as _}from"./codemirror.es-Bg0J_Vhd.js";import"./index-kfiCvbxf.js";import"./index-BF8aCpwD.js";var O=Object.defineProperty,m=(g,v)=>O(g,"name",{value:v,configurable:!0});function N(g,v){return v.forEach(function(e){e&&typeof e!="string"&&!Array.isArray(e)&&Object.keys(e).forEach(function(c){if(c!=="default"&&!(c in g)){var d=Object.getOwnPropertyDescriptor(e,c);Object.defineProperty(g,c,d.get?d:{enumerable:!0,get:function(){return e[c]}})}})}),Object.freeze(g)}m(N,"_mergeNamespaces");var b={exports:{}};(function(g,v){(function(e){e(_.exports)})(function(e){function c(f,u,n){var o=f.getWrapperElement(),l;return l=o.appendChild(document.createElement("div")),n?l.className="CodeMirror-dialog CodeMirror-dialog-bottom":l.className="CodeMirror-dialog CodeMirror-dialog-top",typeof u=="string"?l.innerHTML=u:l.appendChild(u),e.addClass(o,"dialog-opened"),l}m(c,"dialogDiv");function d(f,u){f.state.currentNotificationClose&&f.state.currentNotificationClose(),f.state.currentNotificationClose=u}m(d,"closeNotification"),e.defineExtension("openDialog",function(f,u,n){n||(n={}),d(this,null);var o=c(this,f,n.bottom),l=!1,r=this;function i(t){if(typeof t=="string")a.value=t;else{if(l)return;l=!0,e.rmClass(o.parentNode,"dialog-opened"),o.parentNode.removeChild(o),r.focus(),n.onClose&&n.onClose(o)}}m(i,"close");var a=o.getElementsByTagName("input")[0],s;return a?(a.focus(),n.value&&(a.value=n.value,n.selectValueOnOpen!==!1&&a.select()),n.onInput&&e.on(a,"input",function(t){n.onInput(t,a.value,i)}),n.onKeyUp&&e.on(a,"keyup",function(t){n.onKeyUp(t,a.value,i)}),e.on(a,"keydown",function(t){n&&n.onKeyDown&&n.onKeyDown(t,a.value,i)||((t.keyCode==27||n.closeOnEnter!==!1&&t.keyCode==13)&&(a.blur(),e.e_stop(t),i()),t.keyCode==13&&u(a.value,t))}),n.closeOnBlur!==!1&&e.on(o,"focusout",function(t){t.relatedTarget!==null&&i()})):(s=o.getElementsByTagName("button")[0])&&(e.on(s,"click",function(){i(),r.focus()}),n.closeOnBlur!==!1&&e.on(s,"blur",i),s.focus()),i}),e.defineExtension("openConfirm",function(f,u,n){d(this,null);var o=c(this,f,n&&n.bottom),l=o.getElementsByTagName("button"),r=!1,i=this,a=1;function s(){r||(r=!0,e.rmClass(o.parentNode,"dialog-opened"),o.parentNode.removeChild(o),i.focus())}m(s,"close"),l[0].focus();for(var t=0;t<l.length;++t){var p=l[t];(function(y){e.on(p,"click",function(h){e.e_preventDefault(h),s(),y&&y(i)})})(u[t]),e.on(p,"blur",function(){--a,setTimeout(function(){a<=0&&s()},200)}),e.on(p,"focus",function(){++a})}}),e.defineExtension("openNotification",function(f,u){d(this,i);var n=c(this,f,u&&u.bottom),o=!1,l,r=u&&typeof u.duration<"u"?u.duration:5e3;function i(){o||(o=!0,clearTimeout(l),e.rmClass(n.parentNode,"dialog-opened"),n.parentNode.removeChild(n))}return m(i,"close"),e.on(n,"click",function(a){e.e_preventDefault(a),i()}),r&&(l=setTimeout(i,r)),i})})})();var E=b.exports,j=Object.freeze(N({__proto__:null,[Symbol.toStringTag]:"Module",default:E},[b.exports]));export{b as a,j as d};
1
+ import{a as _}from"./codemirror.es-CDBPSM3n.js";import"./index-BS3cETry.js";import"./index-DtSAlyAb.js";var O=Object.defineProperty,m=(g,v)=>O(g,"name",{value:v,configurable:!0});function N(g,v){return v.forEach(function(e){e&&typeof e!="string"&&!Array.isArray(e)&&Object.keys(e).forEach(function(c){if(c!=="default"&&!(c in g)){var d=Object.getOwnPropertyDescriptor(e,c);Object.defineProperty(g,c,d.get?d:{enumerable:!0,get:function(){return e[c]}})}})}),Object.freeze(g)}m(N,"_mergeNamespaces");var b={exports:{}};(function(g,v){(function(e){e(_.exports)})(function(e){function c(f,u,n){var o=f.getWrapperElement(),l;return l=o.appendChild(document.createElement("div")),n?l.className="CodeMirror-dialog CodeMirror-dialog-bottom":l.className="CodeMirror-dialog CodeMirror-dialog-top",typeof u=="string"?l.innerHTML=u:l.appendChild(u),e.addClass(o,"dialog-opened"),l}m(c,"dialogDiv");function d(f,u){f.state.currentNotificationClose&&f.state.currentNotificationClose(),f.state.currentNotificationClose=u}m(d,"closeNotification"),e.defineExtension("openDialog",function(f,u,n){n||(n={}),d(this,null);var o=c(this,f,n.bottom),l=!1,r=this;function i(t){if(typeof t=="string")a.value=t;else{if(l)return;l=!0,e.rmClass(o.parentNode,"dialog-opened"),o.parentNode.removeChild(o),r.focus(),n.onClose&&n.onClose(o)}}m(i,"close");var a=o.getElementsByTagName("input")[0],s;return a?(a.focus(),n.value&&(a.value=n.value,n.selectValueOnOpen!==!1&&a.select()),n.onInput&&e.on(a,"input",function(t){n.onInput(t,a.value,i)}),n.onKeyUp&&e.on(a,"keyup",function(t){n.onKeyUp(t,a.value,i)}),e.on(a,"keydown",function(t){n&&n.onKeyDown&&n.onKeyDown(t,a.value,i)||((t.keyCode==27||n.closeOnEnter!==!1&&t.keyCode==13)&&(a.blur(),e.e_stop(t),i()),t.keyCode==13&&u(a.value,t))}),n.closeOnBlur!==!1&&e.on(o,"focusout",function(t){t.relatedTarget!==null&&i()})):(s=o.getElementsByTagName("button")[0])&&(e.on(s,"click",function(){i(),r.focus()}),n.closeOnBlur!==!1&&e.on(s,"blur",i),s.focus()),i}),e.defineExtension("openConfirm",function(f,u,n){d(this,null);var o=c(this,f,n&&n.bottom),l=o.getElementsByTagName("button"),r=!1,i=this,a=1;function s(){r||(r=!0,e.rmClass(o.parentNode,"dialog-opened"),o.parentNode.removeChild(o),i.focus())}m(s,"close"),l[0].focus();for(var t=0;t<l.length;++t){var p=l[t];(function(y){e.on(p,"click",function(h){e.e_preventDefault(h),s(),y&&y(i)})})(u[t]),e.on(p,"blur",function(){--a,setTimeout(function(){a<=0&&s()},200)}),e.on(p,"focus",function(){++a})}}),e.defineExtension("openNotification",function(f,u){d(this,i);var n=c(this,f,u&&u.bottom),o=!1,l,r=u&&typeof u.duration<"u"?u.duration:5e3;function i(){o||(o=!0,clearTimeout(l),e.rmClass(n.parentNode,"dialog-opened"),n.parentNode.removeChild(n))}return m(i,"close"),e.on(n,"click",function(a){e.e_preventDefault(a),i()}),r&&(l=setTimeout(i,r)),i})})})();var E=b.exports,j=Object.freeze(N({__proto__:null,[Symbol.toStringTag]:"Module",default:E},[b.exports]));export{b as a,j as d};