@openc3/vue-common 6.2.1 → 6.3.0

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 (489) hide show
  1. package/dist/{ArrayWidget-BxEO5hEG.js → ArrayWidget-BbsN1dzF.js} +5 -5
  2. package/dist/{ArrayWidget-BxEO5hEG.js.map → ArrayWidget-BbsN1dzF.js.map} +1 -1
  3. package/dist/{ArrayWidget-BIQi_bWC.cjs → ArrayWidget-DkjHrXsu.cjs} +3 -3
  4. package/dist/{ArrayWidget-BIQi_bWC.cjs.map → ArrayWidget-DkjHrXsu.cjs.map} +1 -1
  5. package/dist/{ArrayplotWidget-B_VPoV4v.js → ArrayplotWidget-CCKEyYIx.js} +4 -4
  6. package/dist/{ArrayplotWidget-B_VPoV4v.js.map → ArrayplotWidget-CCKEyYIx.js.map} +1 -1
  7. package/dist/ArrayplotWidget-COeaK_Lz.cjs +2 -0
  8. package/dist/{ArrayplotWidget-Donxhd8_.cjs.map → ArrayplotWidget-COeaK_Lz.cjs.map} +1 -1
  9. package/dist/{BarColumn-C9dkpg2O.js → BarColumn-C6p07yWK.js} +3 -3
  10. package/dist/{BarColumn-C9dkpg2O.js.map → BarColumn-C6p07yWK.js.map} +1 -1
  11. package/dist/BarColumn-CJLW1nXy.cjs +2 -0
  12. package/dist/{BarColumn-CyRSZHMh.cjs.map → BarColumn-CJLW1nXy.cjs.map} +1 -1
  13. package/dist/BlockWidget-BFVYgbd_.cjs +3 -0
  14. package/dist/{BlockWidget-DPLN1jgj.cjs.map → BlockWidget-BFVYgbd_.cjs.map} +1 -1
  15. package/dist/{BlockWidget-CuefOin6.js → BlockWidget-DlCHbqZX.js} +5 -5
  16. package/dist/{BlockWidget-CuefOin6.js.map → BlockWidget-DlCHbqZX.js.map} +1 -1
  17. package/dist/{ButtonWidget-B6HM0Doo.js → ButtonWidget-CtfJzCBR.js} +15 -15
  18. package/dist/{ButtonWidget-B6HM0Doo.js.map → ButtonWidget-CtfJzCBR.js.map} +1 -1
  19. package/dist/ButtonWidget-HN8UHsme.cjs +3 -0
  20. package/dist/{ButtonWidget-DccYzIY3.cjs.map → ButtonWidget-HN8UHsme.cjs.map} +1 -1
  21. package/dist/CanvasWidget-CHmkxxMO.cjs +2 -0
  22. package/dist/{CanvasWidget-BzTU9rc9.cjs.map → CanvasWidget-CHmkxxMO.cjs.map} +1 -1
  23. package/dist/{CanvasWidget-DZQGG-yQ.js → CanvasWidget-CqRlXc4r.js} +3 -3
  24. package/dist/{CanvasWidget-DZQGG-yQ.js.map → CanvasWidget-CqRlXc4r.js.map} +1 -1
  25. package/dist/{CanvasdotWidget-6wuCSnw_.js → CanvasdotWidget--Xr_KsZs.js} +3 -3
  26. package/dist/{CanvasdotWidget-6wuCSnw_.js.map → CanvasdotWidget--Xr_KsZs.js.map} +1 -1
  27. package/dist/CanvasdotWidget-B4bUcKRc.cjs +2 -0
  28. package/dist/{CanvasdotWidget-B7VTS1QI.cjs.map → CanvasdotWidget-B4bUcKRc.cjs.map} +1 -1
  29. package/dist/CanvasimageWidget-B5YozXoI.cjs +2 -0
  30. package/dist/{CanvasimageWidget-BwYpfmDE.cjs.map → CanvasimageWidget-B5YozXoI.cjs.map} +1 -1
  31. package/dist/{CanvasimageWidget-mhcPpAuN.js → CanvasimageWidget-BPlj5QYK.js} +4 -4
  32. package/dist/{CanvasimageWidget-mhcPpAuN.js.map → CanvasimageWidget-BPlj5QYK.js.map} +1 -1
  33. package/dist/{CanvasimagevalueWidget-Cx-dH8Gc.js → CanvasimagevalueWidget-DVFGLt8f.js} +4 -4
  34. package/dist/{CanvasimagevalueWidget-Cx-dH8Gc.js.map → CanvasimagevalueWidget-DVFGLt8f.js.map} +1 -1
  35. package/dist/CanvasimagevalueWidget-Dx1HnbEw.cjs +2 -0
  36. package/dist/{CanvasimagevalueWidget-E_NsZ82T.cjs.map → CanvasimagevalueWidget-Dx1HnbEw.cjs.map} +1 -1
  37. package/dist/{CanvaslabelWidget-CQZCeohU.js → CanvaslabelWidget-CYNqmyP0.js} +3 -3
  38. package/dist/{CanvaslabelWidget-CQZCeohU.js.map → CanvaslabelWidget-CYNqmyP0.js.map} +1 -1
  39. package/dist/CanvaslabelWidget-DgadQD-D.cjs +2 -0
  40. package/dist/{CanvaslabelWidget-BBDuXWfU.cjs.map → CanvaslabelWidget-DgadQD-D.cjs.map} +1 -1
  41. package/dist/{CanvaslabelvalueWidget-CwmYDCjr.js → CanvaslabelvalueWidget-B7yIDmsn.js} +3 -3
  42. package/dist/{CanvaslabelvalueWidget-CwmYDCjr.js.map → CanvaslabelvalueWidget-B7yIDmsn.js.map} +1 -1
  43. package/dist/CanvaslabelvalueWidget-C3k5gx5c.cjs +2 -0
  44. package/dist/{CanvaslabelvalueWidget-DAdu7ujn.cjs.map → CanvaslabelvalueWidget-C3k5gx5c.cjs.map} +1 -1
  45. package/dist/{CanvaslineWidget-nTP3fJB4.js → CanvaslineWidget-BICdxX0Q.js} +3 -3
  46. package/dist/{CanvaslineWidget-nTP3fJB4.js.map → CanvaslineWidget-BICdxX0Q.js.map} +1 -1
  47. package/dist/CanvaslineWidget-CYHkes0a.cjs +2 -0
  48. package/dist/{CanvaslineWidget-Bv5da1Vy.cjs.map → CanvaslineWidget-CYHkes0a.cjs.map} +1 -1
  49. package/dist/CanvaslinevalueWidget-5DzhZ22p.cjs +2 -0
  50. package/dist/{CanvaslinevalueWidget-BVfUB96K.cjs.map → CanvaslinevalueWidget-5DzhZ22p.cjs.map} +1 -1
  51. package/dist/{CanvaslinevalueWidget-C3sJnjLQ.js → CanvaslinevalueWidget-Cq-Ddh0P.js} +3 -3
  52. package/dist/{CanvaslinevalueWidget-C3sJnjLQ.js.map → CanvaslinevalueWidget-Cq-Ddh0P.js.map} +1 -1
  53. package/dist/{CheckbuttonWidget-5-8YDsQL.js → CheckbuttonWidget-B74AWeaW.js} +3 -3
  54. package/dist/{CheckbuttonWidget-5-8YDsQL.js.map → CheckbuttonWidget-B74AWeaW.js.map} +1 -1
  55. package/dist/CheckbuttonWidget-BCzsXnIF.cjs +2 -0
  56. package/dist/{CheckbuttonWidget-BGqD-BGc.cjs.map → CheckbuttonWidget-BCzsXnIF.cjs.map} +1 -1
  57. package/dist/{ComboboxWidget-DzBL8h9f.js → ComboboxWidget-CtyKbEWb.js} +3 -3
  58. package/dist/{ComboboxWidget-DzBL8h9f.js.map → ComboboxWidget-CtyKbEWb.js.map} +1 -1
  59. package/dist/ComboboxWidget-DQgDyDAC.cjs +2 -0
  60. package/dist/{ComboboxWidget-DoHMlSAr.cjs.map → ComboboxWidget-DQgDyDAC.cjs.map} +1 -1
  61. package/dist/CriticalCmdDialog-BnxZlt7W.cjs +2 -0
  62. package/dist/{CriticalCmdDialog-DoLBrU2k.cjs.map → CriticalCmdDialog-BnxZlt7W.cjs.map} +1 -1
  63. package/dist/{CriticalCmdDialog-DLEasFsx.js → CriticalCmdDialog-DPIZOBeP.js} +4 -4
  64. package/dist/{CriticalCmdDialog-DLEasFsx.js.map → CriticalCmdDialog-DPIZOBeP.js.map} +1 -1
  65. package/dist/CustomIcon-Bop2mEnu.cjs +2 -0
  66. package/dist/CustomIcon-Bop2mEnu.cjs.map +1 -0
  67. package/dist/CustomIcon-h5X7369N.js +50 -0
  68. package/dist/CustomIcon-h5X7369N.js.map +1 -0
  69. package/dist/DateWidget-BB4cIuUS.cjs +2 -0
  70. package/dist/{DateWidget-DKZz1J9J.cjs.map → DateWidget-BB4cIuUS.cjs.map} +1 -1
  71. package/dist/{DateWidget-CW7Od7lB.js → DateWidget-BEVSczU8.js} +3 -3
  72. package/dist/{DateWidget-CW7Od7lB.js.map → DateWidget-BEVSczU8.js.map} +1 -1
  73. package/dist/{DetailsDialog-BvbziA7Y.js → DetailsDialog-DmEC5BTs.js} +6 -6
  74. package/dist/{DetailsDialog-BvbziA7Y.js.map → DetailsDialog-DmEC5BTs.js.map} +1 -1
  75. package/dist/DetailsDialog-mvxMFmgV.cjs +2 -0
  76. package/dist/{DetailsDialog-CiuQYvJK.cjs.map → DetailsDialog-mvxMFmgV.cjs.map} +1 -1
  77. package/dist/DynamicWidget-BWEVCUfd.cjs +2 -0
  78. package/dist/{DynamicWidget-3wHr6Ng-.cjs.map → DynamicWidget-BWEVCUfd.cjs.map} +1 -1
  79. package/dist/{DynamicWidget-gFSYxzvT.js → DynamicWidget-CfMtj7H8.js} +2 -2
  80. package/dist/{DynamicWidget-gFSYxzvT.js.map → DynamicWidget-CfMtj7H8.js.map} +1 -1
  81. package/dist/EventListDialog-BHZLl28V.cjs +2 -0
  82. package/dist/EventListDialog-BHZLl28V.cjs.map +1 -0
  83. package/dist/EventListDialog-CSMSmCIT.js +1586 -0
  84. package/dist/EventListDialog-CSMSmCIT.js.map +1 -0
  85. package/dist/FormatvalueWidget-CdjCEAI7.cjs +2 -0
  86. package/dist/{FormatvalueWidget-DFrbeKb9.cjs.map → FormatvalueWidget-CdjCEAI7.cjs.map} +1 -1
  87. package/dist/{FormatvalueWidget-CGpnTqVH.js → FormatvalueWidget-DN12xymS.js} +4 -4
  88. package/dist/{FormatvalueWidget-CGpnTqVH.js.map → FormatvalueWidget-DN12xymS.js.map} +1 -1
  89. package/dist/{Graph-3rkhFP3G.js → Graph-Bgo0cjl3.js} +214 -209
  90. package/dist/Graph-Bgo0cjl3.js.map +1 -0
  91. package/dist/Graph-Ujd2yaeI.cjs +2 -0
  92. package/dist/Graph-Ujd2yaeI.cjs.map +1 -0
  93. package/dist/{GraphWidget-Dycey-mj.js → GraphWidget-DurWDmpg.js} +2 -2
  94. package/dist/{GraphWidget-Dycey-mj.js.map → GraphWidget-DurWDmpg.js.map} +1 -1
  95. package/dist/{GraphWidget-22NxFa9k.cjs → GraphWidget-sid4Ws9H.cjs} +2 -2
  96. package/dist/{GraphWidget-22NxFa9k.cjs.map → GraphWidget-sid4Ws9H.cjs.map} +1 -1
  97. package/dist/{HorizontalWidget-D31NRWy5.js → HorizontalWidget-Cd_wl1b3.js} +3 -3
  98. package/dist/{HorizontalWidget-D31NRWy5.js.map → HorizontalWidget-Cd_wl1b3.js.map} +1 -1
  99. package/dist/HorizontalWidget-_6IR0cR8.cjs +2 -0
  100. package/dist/{HorizontalWidget-BBeB0eBI.cjs.map → HorizontalWidget-_6IR0cR8.cjs.map} +1 -1
  101. package/dist/HorizontalboxWidget-BcMTFBU-.js +47 -0
  102. package/dist/HorizontalboxWidget-BcMTFBU-.js.map +1 -0
  103. package/dist/HorizontalboxWidget-zmnurtv1.cjs +2 -0
  104. package/dist/HorizontalboxWidget-zmnurtv1.cjs.map +1 -0
  105. package/dist/HorizontallineWidget-CM-6WqCj.cjs +2 -0
  106. package/dist/{HorizontallineWidget-BCKOQase.cjs.map → HorizontallineWidget-CM-6WqCj.cjs.map} +1 -1
  107. package/dist/HorizontallineWidget-CXFqHclf.js +16 -0
  108. package/dist/{HorizontallineWidget-CbxREBYI.js.map → HorizontallineWidget-CXFqHclf.js.map} +1 -1
  109. package/dist/{IframeWidget-Ctj8OIcG.js → IframeWidget-BPerHCCa.js} +3 -3
  110. package/dist/{IframeWidget-Ctj8OIcG.js.map → IframeWidget-BPerHCCa.js.map} +1 -1
  111. package/dist/IframeWidget-EhncMob0.cjs +2 -0
  112. package/dist/{IframeWidget-CZwsTgvX.cjs.map → IframeWidget-EhncMob0.cjs.map} +1 -1
  113. package/dist/{ImageLoader-BrNrCBvi.js → ImageLoader-4N-7Gj61.js} +2 -2
  114. package/dist/{ImageLoader-BrNrCBvi.js.map → ImageLoader-4N-7Gj61.js.map} +1 -1
  115. package/dist/ImageLoader-cRmBcpU9.cjs +2 -0
  116. package/dist/{ImageLoader-D_Gq-KxR.cjs.map → ImageLoader-cRmBcpU9.cjs.map} +1 -1
  117. package/dist/ImageviewerWidget-Bv3CreXd.cjs +2 -0
  118. package/dist/{ImageviewerWidget-DwRPFSLR.cjs.map → ImageviewerWidget-Bv3CreXd.cjs.map} +1 -1
  119. package/dist/{ImageviewerWidget-XrsqxmLo.js → ImageviewerWidget-Cw_H_HmZ.js} +3 -3
  120. package/dist/{ImageviewerWidget-XrsqxmLo.js.map → ImageviewerWidget-Cw_H_HmZ.js.map} +1 -1
  121. package/dist/{InterfacesTab-DAeNlGlB.js → InterfacesTab-B4glsR9Z.js} +4 -4
  122. package/dist/{InterfacesTab-DAeNlGlB.js.map → InterfacesTab-B4glsR9Z.js.map} +1 -1
  123. package/dist/InterfacesTab-Co1Kd6Fa.cjs +2 -0
  124. package/dist/{InterfacesTab-CLaicsHA.cjs.map → InterfacesTab-Co1Kd6Fa.cjs.map} +1 -1
  125. package/dist/LabelWidget-mMcf5S8K.cjs +2 -0
  126. package/dist/LabelWidget-mMcf5S8K.cjs.map +1 -0
  127. package/dist/{LabelWidget-t7I87dp7.js → LabelWidget-xrmcVeq8.js} +5 -5
  128. package/dist/LabelWidget-xrmcVeq8.js.map +1 -0
  129. package/dist/LabelledWidget-BoYCuDaH.cjs +2 -0
  130. package/dist/{LabelledWidget-DUpHxc9z.cjs.map → LabelledWidget-BoYCuDaH.cjs.map} +1 -1
  131. package/dist/{LabelledWidget-C7TDf92M.js → LabelledWidget-D48QoyMk.js} +5 -5
  132. package/dist/{LabelledWidget-C7TDf92M.js.map → LabelledWidget-D48QoyMk.js.map} +1 -1
  133. package/dist/{LabelprogressbarWidget-wwLURt1u.js → LabelprogressbarWidget-C_950t6g.js} +5 -5
  134. package/dist/{LabelprogressbarWidget-wwLURt1u.js.map → LabelprogressbarWidget-C_950t6g.js.map} +1 -1
  135. package/dist/LabelprogressbarWidget-DiucKsT2.cjs +2 -0
  136. package/dist/{LabelprogressbarWidget-D6cpayCR.cjs.map → LabelprogressbarWidget-DiucKsT2.cjs.map} +1 -1
  137. package/dist/{LabelsparklineWidget-B3awLUyP.js → LabelsparklineWidget-0KXQyPoU.js} +5 -5
  138. package/dist/{LabelsparklineWidget-B3awLUyP.js.map → LabelsparklineWidget-0KXQyPoU.js.map} +1 -1
  139. package/dist/LabelsparklineWidget-A3MTEhQc.cjs +2 -0
  140. package/dist/{LabelsparklineWidget-CJRnLETe.cjs.map → LabelsparklineWidget-A3MTEhQc.cjs.map} +1 -1
  141. package/dist/{LabelvalueWidget-Zx_yHCtl.js → LabelvalueWidget-CQ06wWDK.js} +5 -5
  142. package/dist/{LabelvalueWidget-Zx_yHCtl.js.map → LabelvalueWidget-CQ06wWDK.js.map} +1 -1
  143. package/dist/LabelvalueWidget-DnKoz0-N.cjs +2 -0
  144. package/dist/{LabelvalueWidget-owiMSCYl.cjs.map → LabelvalueWidget-DnKoz0-N.cjs.map} +1 -1
  145. package/dist/{LabelvaluedescWidget-BBSBh4vI.js → LabelvaluedescWidget-Bo8zT01X.js} +6 -6
  146. package/dist/{LabelvaluedescWidget-BBSBh4vI.js.map → LabelvaluedescWidget-Bo8zT01X.js.map} +1 -1
  147. package/dist/LabelvaluedescWidget-I6ljK--Y.cjs +2 -0
  148. package/dist/{LabelvaluedescWidget-MRmZBUc0.cjs.map → LabelvaluedescWidget-I6ljK--Y.cjs.map} +1 -1
  149. package/dist/{LabelvaluelimitsbarWidget-CZueHYWG.js → LabelvaluelimitsbarWidget-BucTw8Yk.js} +5 -5
  150. package/dist/{LabelvaluelimitsbarWidget-CZueHYWG.js.map → LabelvaluelimitsbarWidget-BucTw8Yk.js.map} +1 -1
  151. package/dist/LabelvaluelimitsbarWidget-Cb6i_Ixc.cjs +2 -0
  152. package/dist/{LabelvaluelimitsbarWidget-BQ2XYPNE.cjs.map → LabelvaluelimitsbarWidget-Cb6i_Ixc.cjs.map} +1 -1
  153. package/dist/LabelvaluelimitscolumnWidget-ClY5OxUC.cjs +2 -0
  154. package/dist/{LabelvaluelimitscolumnWidget-DNmVpU8J.cjs.map → LabelvaluelimitscolumnWidget-ClY5OxUC.cjs.map} +1 -1
  155. package/dist/{LabelvaluelimitscolumnWidget-BTvzyQMq.js → LabelvaluelimitscolumnWidget-Dflb1hNd.js} +6 -6
  156. package/dist/{LabelvaluelimitscolumnWidget-BTvzyQMq.js.map → LabelvaluelimitscolumnWidget-Dflb1hNd.js.map} +1 -1
  157. package/dist/LabelvaluerangebarWidget-9S5rVZaS.cjs +2 -0
  158. package/dist/{LabelvaluerangebarWidget-DL0U8cbw.cjs.map → LabelvaluerangebarWidget-9S5rVZaS.cjs.map} +1 -1
  159. package/dist/{LabelvaluerangebarWidget-BhYTBgDq.js → LabelvaluerangebarWidget-D8cbfXFM.js} +5 -5
  160. package/dist/{LabelvaluerangebarWidget-BhYTBgDq.js.map → LabelvaluerangebarWidget-D8cbfXFM.js.map} +1 -1
  161. package/dist/Layout-DuCYyOw4.cjs +2 -0
  162. package/dist/{Layout-DRL0EeSA.cjs.map → Layout-DuCYyOw4.cjs.map} +1 -1
  163. package/dist/{Layout-Bh7VzCZd.js → Layout-Tf--nruw.js} +2 -2
  164. package/dist/{Layout-Bh7VzCZd.js.map → Layout-Tf--nruw.js.map} +1 -1
  165. package/dist/LedWidget-B2BcwiYF.cjs +2 -0
  166. package/dist/LedWidget-B2BcwiYF.cjs.map +1 -0
  167. package/dist/LedWidget-qH_FthkK.js +145 -0
  168. package/dist/LedWidget-qH_FthkK.js.map +1 -0
  169. package/dist/{LimitsbarWidget-Djui0IpK.js → LimitsbarWidget-B9lAB2RD.js} +3 -3
  170. package/dist/{LimitsbarWidget-Djui0IpK.js.map → LimitsbarWidget-B9lAB2RD.js.map} +1 -1
  171. package/dist/LimitsbarWidget-CVCLFIhG.cjs +2 -0
  172. package/dist/{LimitsbarWidget-CYIH8fdp.cjs.map → LimitsbarWidget-CVCLFIhG.cjs.map} +1 -1
  173. package/dist/LimitscolorWidget-DORhDxRo.cjs +2 -0
  174. package/dist/{LimitscolorWidget-CS0wpX9A.cjs.map → LimitscolorWidget-DORhDxRo.cjs.map} +1 -1
  175. package/dist/{LimitscolorWidget-DdmvKzmx.js → LimitscolorWidget-c6Qa6su7.js} +3 -3
  176. package/dist/{LimitscolorWidget-DdmvKzmx.js.map → LimitscolorWidget-c6Qa6su7.js.map} +1 -1
  177. package/dist/LimitscolumnWidget-C9Uyg7Fh.cjs +2 -0
  178. package/dist/{LimitscolumnWidget-C_UW6xKq.cjs.map → LimitscolumnWidget-C9Uyg7Fh.cjs.map} +1 -1
  179. package/dist/{LimitscolumnWidget-Cc19IEjq.js → LimitscolumnWidget-CcLs_443.js} +3 -3
  180. package/dist/{LimitscolumnWidget-Cc19IEjq.js.map → LimitscolumnWidget-CcLs_443.js.map} +1 -1
  181. package/dist/{LinegraphWidget-BtieJxeL.js → LinegraphWidget-BSVYLFo1.js} +5 -5
  182. package/dist/{LinegraphWidget-BtieJxeL.js.map → LinegraphWidget-BSVYLFo1.js.map} +1 -1
  183. package/dist/LinegraphWidget-Bf8DIwEn.cjs +2 -0
  184. package/dist/{LinegraphWidget-8td_PqgU.cjs.map → LinegraphWidget-Bf8DIwEn.cjs.map} +1 -1
  185. package/dist/{MatrixbycolumnsWidget-DnExVRF8.js → MatrixbycolumnsWidget-DXFpZTre.js} +4 -4
  186. package/dist/{MatrixbycolumnsWidget-DnExVRF8.js.map → MatrixbycolumnsWidget-DXFpZTre.js.map} +1 -1
  187. package/dist/MatrixbycolumnsWidget-DpdFzNeP.cjs +2 -0
  188. package/dist/{MatrixbycolumnsWidget-CGOeCNW2.cjs.map → MatrixbycolumnsWidget-DpdFzNeP.cjs.map} +1 -1
  189. package/dist/MicroservicesTab-B5n-mN8G.cjs +2 -0
  190. package/dist/MicroservicesTab-B5n-mN8G.cjs.map +1 -0
  191. package/dist/{MicroservicesTab-IbTmbPxO.js → MicroservicesTab-mCdS0v39.js} +17 -21
  192. package/dist/MicroservicesTab-mCdS0v39.js.map +1 -0
  193. package/dist/Openc3Screen-BYhHaH_I.cjs +5 -0
  194. package/dist/Openc3Screen-BYhHaH_I.cjs.map +1 -0
  195. package/dist/Openc3Screen-Cud0OCFu.js +1789 -0
  196. package/dist/Openc3Screen-Cud0OCFu.js.map +1 -0
  197. package/dist/{OutputDialog-B4Q0QMJ1.cjs → OutputDialog-DXoL9VPw.cjs} +2 -2
  198. package/dist/OutputDialog-DXoL9VPw.cjs.map +1 -0
  199. package/dist/{OutputDialog-Ci5OT_fH.js → OutputDialog-zVPZiZay.js} +3 -6
  200. package/dist/OutputDialog-zVPZiZay.js.map +1 -0
  201. package/dist/PackagesTab-CvT2JyMA.cjs +2 -0
  202. package/dist/{PackagesTab-eYbk2vw7.cjs.map → PackagesTab-CvT2JyMA.cjs.map} +1 -1
  203. package/dist/{PackagesTab-BX8YP3H1.js → PackagesTab-SWcXumpK.js} +4 -4
  204. package/dist/{PackagesTab-BX8YP3H1.js.map → PackagesTab-SWcXumpK.js.map} +1 -1
  205. package/dist/{PluginsTab-Ds3jk64b.js → PluginsTab-B64OvayB.js} +4 -4
  206. package/dist/{PluginsTab-Ds3jk64b.js.map → PluginsTab-B64OvayB.js.map} +1 -1
  207. package/dist/{PluginsTab-Ck3DvEGm.cjs → PluginsTab-CfpwWsqv.cjs} +4 -4
  208. package/dist/{PluginsTab-Ck3DvEGm.cjs.map → PluginsTab-CfpwWsqv.cjs.map} +1 -1
  209. package/dist/ProgressbarWidget-fGWa6ipm.cjs +2 -0
  210. package/dist/{ProgressbarWidget-CUIAYySg.cjs.map → ProgressbarWidget-fGWa6ipm.cjs.map} +1 -1
  211. package/dist/{ProgressbarWidget-DIfqhHRE.js → ProgressbarWidget-iYGw8-Dc.js} +3 -3
  212. package/dist/{ProgressbarWidget-DIfqhHRE.js.map → ProgressbarWidget-iYGw8-Dc.js.map} +1 -1
  213. package/dist/RadiobuttonWidget-ZEPJbOp_.cjs +2 -0
  214. package/dist/{RadiobuttonWidget-Cjk1JAP_.cjs.map → RadiobuttonWidget-ZEPJbOp_.cjs.map} +1 -1
  215. package/dist/{RadiobuttonWidget-QzIkNP7m.js → RadiobuttonWidget-ytmoVZ3u.js} +3 -3
  216. package/dist/{RadiobuttonWidget-QzIkNP7m.js.map → RadiobuttonWidget-ytmoVZ3u.js.map} +1 -1
  217. package/dist/{RadiogroupWidget-Ci9sCX39.js → RadiogroupWidget-CusMBhKH.js} +3 -3
  218. package/dist/{RadiogroupWidget-Ci9sCX39.js.map → RadiogroupWidget-CusMBhKH.js.map} +1 -1
  219. package/dist/RadiogroupWidget-EK4rEGUC.cjs +2 -0
  220. package/dist/{RadiogroupWidget-B4lkYWaC.cjs.map → RadiogroupWidget-EK4rEGUC.cjs.map} +1 -1
  221. package/dist/{RangebarWidget-CN0YuHqy.js → RangebarWidget-D_zGTtCa.js} +3 -3
  222. package/dist/{RangebarWidget-CN0YuHqy.js.map → RangebarWidget-D_zGTtCa.js.map} +1 -1
  223. package/dist/RangebarWidget-DwIs-L5k.cjs +2 -0
  224. package/dist/{RangebarWidget-nl0rzj93.cjs.map → RangebarWidget-DwIs-L5k.cjs.map} +1 -1
  225. package/dist/RedisTab-67UcKoPf.cjs +2 -0
  226. package/dist/{RedisTab-DhS4GHDj.cjs.map → RedisTab-67UcKoPf.cjs.map} +1 -1
  227. package/dist/{RedisTab-CVimDkIE.js → RedisTab-CyPo6ADN.js} +14 -14
  228. package/dist/{RedisTab-CVimDkIE.js.map → RedisTab-CyPo6ADN.js.map} +1 -1
  229. package/dist/RollupWidget-DC3OIP6G.cjs +2 -0
  230. package/dist/{RollupWidget-Bgudi_bt.cjs.map → RollupWidget-DC3OIP6G.cjs.map} +1 -1
  231. package/dist/{RollupWidget-y4jBtJB2.js → RollupWidget-Dolsixyt.js} +3 -3
  232. package/dist/{RollupWidget-y4jBtJB2.js.map → RollupWidget-Dolsixyt.js.map} +1 -1
  233. package/dist/RoutersTab-BBPlFi_z.cjs +2 -0
  234. package/dist/{RoutersTab-CzO10cVP.cjs.map → RoutersTab-BBPlFi_z.cjs.map} +1 -1
  235. package/dist/{RoutersTab-Dki_66av.js → RoutersTab-Cs2dFVNA.js} +4 -4
  236. package/dist/{RoutersTab-Dki_66av.js.map → RoutersTab-Cs2dFVNA.js.map} +1 -1
  237. package/dist/{ScriptChooser-l5i8c8KP.js → ScriptChooser-EV65rbWx.js} +3 -3
  238. package/dist/{ScriptChooser-l5i8c8KP.js.map → ScriptChooser-EV65rbWx.js.map} +1 -1
  239. package/dist/ScriptChooser-vyZwngrz.cjs +2 -0
  240. package/dist/{ScriptChooser-BNm_zXxX.cjs.map → ScriptChooser-vyZwngrz.cjs.map} +1 -1
  241. package/dist/ScrollwindowWidget-BWeqSUPc.cjs +2 -0
  242. package/dist/{ScrollwindowWidget-BIiV7xwi.cjs.map → ScrollwindowWidget-BWeqSUPc.cjs.map} +1 -1
  243. package/dist/{ScrollwindowWidget-CBzYk4Y3.js → ScrollwindowWidget-DV2nZuNi.js} +4 -4
  244. package/dist/{ScrollwindowWidget-CBzYk4Y3.js.map → ScrollwindowWidget-DV2nZuNi.js.map} +1 -1
  245. package/dist/SecretsTab-0IFqUxNJ.cjs +2 -0
  246. package/dist/{SecretsTab-BSzFZ81X.cjs.map → SecretsTab-0IFqUxNJ.cjs.map} +1 -1
  247. package/dist/{SecretsTab-BjviaTxh.js → SecretsTab-DVyyyGlG.js} +3 -3
  248. package/dist/{SecretsTab-BjviaTxh.js.map → SecretsTab-DVyyyGlG.js.map} +1 -1
  249. package/dist/SettingsTab-B1LvOLG2.cjs +3 -0
  250. package/dist/SettingsTab-B1LvOLG2.cjs.map +1 -0
  251. package/dist/{SettingsTab-Bo_dYXgb.js → SettingsTab-g29K6FyC.js} +198 -135
  252. package/dist/SettingsTab-g29K6FyC.js.map +1 -0
  253. package/dist/SignalWidget-RvRwpE8T.cjs +2 -0
  254. package/dist/{SignalWidget-CvZkvejy.cjs.map → SignalWidget-RvRwpE8T.cjs.map} +1 -1
  255. package/dist/{SignalWidget-DQ5Uc2uV.js → SignalWidget-d9-6h85k.js} +3 -3
  256. package/dist/{SignalWidget-DQ5Uc2uV.js.map → SignalWidget-d9-6h85k.js.map} +1 -1
  257. package/dist/SimpleTextDialog-Cpbt7Q-8.cjs +2 -0
  258. package/dist/{SimpleTextDialog-DmeNMMCR.cjs.map → SimpleTextDialog-Cpbt7Q-8.cjs.map} +1 -1
  259. package/dist/{SimpleTextDialog-CheuP_ls.js → SimpleTextDialog-pwN8oRy1.js} +9 -10
  260. package/dist/{SimpleTextDialog-CheuP_ls.js.map → SimpleTextDialog-pwN8oRy1.js.map} +1 -1
  261. package/dist/SpacerWidget-7_8bpLCb.cjs +2 -0
  262. package/dist/{SpacerWidget-BBJR6HBQ.cjs.map → SpacerWidget-7_8bpLCb.cjs.map} +1 -1
  263. package/dist/{SpacerWidget-6rsc_dSM.js → SpacerWidget-BH0p2OLi.js} +3 -3
  264. package/dist/{SpacerWidget-6rsc_dSM.js.map → SpacerWidget-BH0p2OLi.js.map} +1 -1
  265. package/dist/SparklineWidget-60jVlbHA.cjs +2 -0
  266. package/dist/{SparklineWidget-BxBLnjAO.cjs.map → SparklineWidget-60jVlbHA.cjs.map} +1 -1
  267. package/dist/{SparklineWidget-CZtvu2ss.js → SparklineWidget-coxi9r2g.js} +5 -5
  268. package/dist/{SparklineWidget-CZtvu2ss.js.map → SparklineWidget-coxi9r2g.js.map} +1 -1
  269. package/dist/{TabbookWidget-DNALU0jl.js → TabbookWidget-B1XKplGH.js} +3 -3
  270. package/dist/{TabbookWidget-DNALU0jl.js.map → TabbookWidget-B1XKplGH.js.map} +1 -1
  271. package/dist/TabbookWidget-D1CVT9IK.cjs +2 -0
  272. package/dist/{TabbookWidget-DyFQnA10.cjs.map → TabbookWidget-D1CVT9IK.cjs.map} +1 -1
  273. package/dist/{TargetsTab-Cd8U1aN_.js → TargetsTab-BkBkXn9A.js} +12 -12
  274. package/dist/{TargetsTab-Cd8U1aN_.js.map → TargetsTab-BkBkXn9A.js.map} +1 -1
  275. package/dist/TargetsTab-C-m26Eqq.cjs +2 -0
  276. package/dist/{TargetsTab-DMiOliqg.cjs.map → TargetsTab-C-m26Eqq.cjs.map} +1 -1
  277. package/dist/{TextBoxDialog-fHkDTtzI.js → TextBoxDialog-DOJ5d2RM.js} +2 -2
  278. package/dist/{TextBoxDialog-fHkDTtzI.js.map → TextBoxDialog-DOJ5d2RM.js.map} +1 -1
  279. package/dist/TextBoxDialog-DfMXg_5C.cjs +2 -0
  280. package/dist/{TextBoxDialog-DvUf3Cak.cjs.map → TextBoxDialog-DfMXg_5C.cjs.map} +1 -1
  281. package/dist/TextboxWidget-BDG4NxRw.cjs +2 -0
  282. package/dist/{TextboxWidget-D6lW_dsU.cjs.map → TextboxWidget-BDG4NxRw.cjs.map} +1 -1
  283. package/dist/{TextboxWidget-5hqPj74D.js → TextboxWidget-C-_M2M4l.js} +5 -5
  284. package/dist/{TextboxWidget-5hqPj74D.js.map → TextboxWidget-C-_M2M4l.js.map} +1 -1
  285. package/dist/TextfieldWidget-BGJv9Lox.cjs +2 -0
  286. package/dist/{TextfieldWidget-iHN7-fyF.cjs.map → TextfieldWidget-BGJv9Lox.cjs.map} +1 -1
  287. package/dist/{TextfieldWidget-Df0ANSiU.js → TextfieldWidget-C08N4JE8.js} +3 -3
  288. package/dist/{TextfieldWidget-Df0ANSiU.js.map → TextfieldWidget-C08N4JE8.js.map} +1 -1
  289. package/dist/TimeWidget-CGCOIouj.cjs +2 -0
  290. package/dist/{TimeWidget-C3NZqTEG.cjs.map → TimeWidget-CGCOIouj.cjs.map} +1 -1
  291. package/dist/{TimeWidget-C6XQMUG2.js → TimeWidget-DtwdEcFg.js} +3 -3
  292. package/dist/{TimeWidget-C6XQMUG2.js.map → TimeWidget-DtwdEcFg.js.map} +1 -1
  293. package/dist/TitleWidget-BljFH9RB.cjs +2 -0
  294. package/dist/{TitleWidget-CWZs33c4.cjs.map → TitleWidget-BljFH9RB.cjs.map} +1 -1
  295. package/dist/{TitleWidget-B9SPUlbW.js → TitleWidget-CT-aLcNb.js} +3 -3
  296. package/dist/{TitleWidget-B9SPUlbW.js.map → TitleWidget-CT-aLcNb.js.map} +1 -1
  297. package/dist/{ToolsTab-Cgpb2nAW.js → ToolsTab-NveeVXz2.js} +4 -4
  298. package/dist/{ToolsTab-Cgpb2nAW.js.map → ToolsTab-NveeVXz2.js.map} +1 -1
  299. package/dist/{ToolsTab-CUpUmkZL.cjs → ToolsTab-RMTst_Sy.cjs} +3 -3
  300. package/dist/{ToolsTab-CUpUmkZL.cjs.map → ToolsTab-RMTst_Sy.cjs.map} +1 -1
  301. package/dist/{TopBar-F1jHuFan.js → TopBar-CnJNNJlV.js} +104 -74
  302. package/dist/TopBar-CnJNNJlV.js.map +1 -0
  303. package/dist/TopBar-Cnmb6DyC.cjs +2 -0
  304. package/dist/TopBar-Cnmb6DyC.cjs.map +1 -0
  305. package/dist/{UpgradeToEnterpriseDialog-DVcAH30Y.js → UpgradeToEnterpriseDialog-BvfgoNB1.js} +9 -10
  306. package/dist/{UpgradeToEnterpriseDialog-DVcAH30Y.js.map → UpgradeToEnterpriseDialog-BvfgoNB1.js.map} +1 -1
  307. package/dist/UpgradeToEnterpriseDialog-sUipOVpB.cjs +2 -0
  308. package/dist/{UpgradeToEnterpriseDialog-DfIKahNK.cjs.map → UpgradeToEnterpriseDialog-sUipOVpB.cjs.map} +1 -1
  309. package/dist/{VWidget-C2x_zSC2.cjs → VWidget-2N2cOosI.cjs} +2 -2
  310. package/dist/{VWidget-C2x_zSC2.cjs.map → VWidget-2N2cOosI.cjs.map} +1 -1
  311. package/dist/{VWidget-C4spAawK.js → VWidget-DQqb7NVW.js} +2 -2
  312. package/dist/{VWidget-C4spAawK.js.map → VWidget-DQqb7NVW.js.map} +1 -1
  313. package/dist/{ValueWidget-D4RrYVEK.js → ValueWidget-C6RanBj3.js} +5 -5
  314. package/dist/{ValueWidget-D4RrYVEK.js.map → ValueWidget-C6RanBj3.js.map} +1 -1
  315. package/dist/ValueWidget-Cu7hgKja.cjs +2 -0
  316. package/dist/{ValueWidget-Do3Yn47P.cjs.map → ValueWidget-Cu7hgKja.cjs.map} +1 -1
  317. package/dist/{ValuelimitsbarWidget-Bc9_Vj_f.js → ValuelimitsbarWidget-B3bvjfxc.js} +5 -5
  318. package/dist/{ValuelimitsbarWidget-Bc9_Vj_f.js.map → ValuelimitsbarWidget-B3bvjfxc.js.map} +1 -1
  319. package/dist/ValuelimitsbarWidget-C0HROxrb.cjs +2 -0
  320. package/dist/{ValuelimitsbarWidget-DJuh7FOs.cjs.map → ValuelimitsbarWidget-C0HROxrb.cjs.map} +1 -1
  321. package/dist/ValuelimitscolumnWidget-CWvLfg8u.cjs +2 -0
  322. package/dist/{ValuelimitscolumnWidget-BFpG-H7v.cjs.map → ValuelimitscolumnWidget-CWvLfg8u.cjs.map} +1 -1
  323. package/dist/{ValuelimitscolumnWidget-DHKIL7sf.js → ValuelimitscolumnWidget-QvhI6EcE.js} +5 -5
  324. package/dist/{ValuelimitscolumnWidget-DHKIL7sf.js.map → ValuelimitscolumnWidget-QvhI6EcE.js.map} +1 -1
  325. package/dist/{ValuerangebarWidget-CecQRIok.js → ValuerangebarWidget-Dt3K9BnC.js} +5 -5
  326. package/dist/{ValuerangebarWidget-CecQRIok.js.map → ValuerangebarWidget-Dt3K9BnC.js.map} +1 -1
  327. package/dist/ValuerangebarWidget-DyN78cQl.cjs +2 -0
  328. package/dist/{ValuerangebarWidget-BlZSaiXo.cjs.map → ValuerangebarWidget-DyN78cQl.cjs.map} +1 -1
  329. package/dist/{VerticalWidget-D8jUFxjS.js → VerticalWidget-BIIViZgI.js} +3 -3
  330. package/dist/{VerticalWidget-D8jUFxjS.js.map → VerticalWidget-BIIViZgI.js.map} +1 -1
  331. package/dist/VerticalWidget-CFTOu4H8.cjs +2 -0
  332. package/dist/{VerticalWidget--8UErB4q.cjs.map → VerticalWidget-CFTOu4H8.cjs.map} +1 -1
  333. package/dist/VerticalboxWidget-DY72fLHW.js +46 -0
  334. package/dist/VerticalboxWidget-DY72fLHW.js.map +1 -0
  335. package/dist/VerticalboxWidget-Z8-DWI8t.cjs +2 -0
  336. package/dist/VerticalboxWidget-Z8-DWI8t.cjs.map +1 -0
  337. package/dist/Widget-ChoIB2dd.cjs +2 -0
  338. package/dist/{Widget-DNf52jRQ.cjs.map → Widget-ChoIB2dd.cjs.map} +1 -1
  339. package/dist/{Widget-fRCERxGf.js → Widget-oyqWpFXJ.js} +18 -18
  340. package/dist/{Widget-fRCERxGf.js.map → Widget-oyqWpFXJ.js.map} +1 -1
  341. package/dist/WidgetComponents-C1lSLZ0I.js +30205 -0
  342. package/dist/WidgetComponents-C1lSLZ0I.js.map +1 -0
  343. package/dist/WidgetComponents-utpQ592X.cjs +1493 -0
  344. package/dist/WidgetComponents-utpQ592X.cjs.map +1 -0
  345. package/dist/components.cjs +3 -6
  346. package/dist/components.cjs.map +1 -1
  347. package/dist/components.js +372 -1966
  348. package/dist/components.js.map +1 -1
  349. package/dist/icons.cjs +1 -1
  350. package/dist/icons.cjs.map +1 -1
  351. package/dist/icons.js +59 -52
  352. package/dist/icons.js.map +1 -1
  353. package/dist/index-BX05anye.cjs +7 -0
  354. package/dist/index-BX05anye.cjs.map +1 -0
  355. package/dist/{index-CFQnWdPA.js → index-DwP8ryNM.js} +385 -396
  356. package/dist/index-DwP8ryNM.js.map +1 -0
  357. package/dist/plugins.cjs +4 -4
  358. package/dist/plugins.cjs.map +1 -1
  359. package/dist/plugins.js +71 -67
  360. package/dist/plugins.js.map +1 -1
  361. package/dist/tools/admin.cjs +7 -7
  362. package/dist/tools/admin.cjs.map +1 -1
  363. package/dist/tools/admin.js +824 -744
  364. package/dist/tools/admin.js.map +1 -1
  365. package/dist/tools/base.cjs +1 -1
  366. package/dist/tools/base.cjs.map +1 -1
  367. package/dist/tools/base.js +10 -16
  368. package/dist/tools/base.js.map +1 -1
  369. package/dist/tools/calendar.cjs +1 -1
  370. package/dist/tools/calendar.cjs.map +1 -1
  371. package/dist/tools/calendar.js +9 -1583
  372. package/dist/tools/calendar.js.map +1 -1
  373. package/dist/tools/scriptrunner.cjs +86 -0
  374. package/dist/tools/scriptrunner.cjs.map +1 -0
  375. package/dist/tools/scriptrunner.js +4564 -0
  376. package/dist/tools/scriptrunner.js.map +1 -0
  377. package/dist/vue-common.css +1 -1
  378. package/dist/widgets.cjs +1 -1
  379. package/dist/widgets.js +64 -64
  380. package/package.json +20 -15
  381. package/dist/ArrayplotWidget-Donxhd8_.cjs +0 -2
  382. package/dist/BarColumn-CyRSZHMh.cjs +0 -2
  383. package/dist/BlockWidget-DPLN1jgj.cjs +0 -3
  384. package/dist/ButtonWidget-DccYzIY3.cjs +0 -3
  385. package/dist/CanvasWidget-BzTU9rc9.cjs +0 -2
  386. package/dist/CanvasdotWidget-B7VTS1QI.cjs +0 -2
  387. package/dist/CanvasimageWidget-BwYpfmDE.cjs +0 -2
  388. package/dist/CanvasimagevalueWidget-E_NsZ82T.cjs +0 -2
  389. package/dist/CanvaslabelWidget-BBDuXWfU.cjs +0 -2
  390. package/dist/CanvaslabelvalueWidget-DAdu7ujn.cjs +0 -2
  391. package/dist/CanvaslineWidget-Bv5da1Vy.cjs +0 -2
  392. package/dist/CanvaslinevalueWidget-BVfUB96K.cjs +0 -2
  393. package/dist/CheckbuttonWidget-BGqD-BGc.cjs +0 -2
  394. package/dist/ComboboxWidget-DoHMlSAr.cjs +0 -2
  395. package/dist/CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-BHFhmbuH.cjs +0 -2
  396. package/dist/CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-BHFhmbuH.cjs.map +0 -1
  397. package/dist/CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-CHgC5LLL.js +0 -10
  398. package/dist/CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-CHgC5LLL.js.map +0 -1
  399. package/dist/CriticalCmdDialog-DoLBrU2k.cjs +0 -2
  400. package/dist/DateWidget-DKZz1J9J.cjs +0 -2
  401. package/dist/DetailsDialog-CiuQYvJK.cjs +0 -2
  402. package/dist/DynamicWidget-3wHr6Ng-.cjs +0 -2
  403. package/dist/FormatvalueWidget-DFrbeKb9.cjs +0 -2
  404. package/dist/Graph-3rkhFP3G.js.map +0 -1
  405. package/dist/Graph-C3vGMcos.cjs +0 -2
  406. package/dist/Graph-C3vGMcos.cjs.map +0 -1
  407. package/dist/HorizontalWidget-BBeB0eBI.cjs +0 -2
  408. package/dist/HorizontalboxWidget-Br8dSVHD.js +0 -38
  409. package/dist/HorizontalboxWidget-Br8dSVHD.js.map +0 -1
  410. package/dist/HorizontalboxWidget-DsdzrCJx.cjs +0 -2
  411. package/dist/HorizontalboxWidget-DsdzrCJx.cjs.map +0 -1
  412. package/dist/HorizontallineWidget-BCKOQase.cjs +0 -2
  413. package/dist/HorizontallineWidget-CbxREBYI.js +0 -11
  414. package/dist/IframeWidget-CZwsTgvX.cjs +0 -2
  415. package/dist/ImageLoader-D_Gq-KxR.cjs +0 -2
  416. package/dist/ImageviewerWidget-DwRPFSLR.cjs +0 -2
  417. package/dist/InterfacesTab-CLaicsHA.cjs +0 -2
  418. package/dist/LabelWidget-C-s8OVmA.cjs +0 -2
  419. package/dist/LabelWidget-C-s8OVmA.cjs.map +0 -1
  420. package/dist/LabelWidget-t7I87dp7.js.map +0 -1
  421. package/dist/LabelledWidget-DUpHxc9z.cjs +0 -2
  422. package/dist/LabelprogressbarWidget-D6cpayCR.cjs +0 -2
  423. package/dist/LabelsparklineWidget-CJRnLETe.cjs +0 -2
  424. package/dist/LabelvalueWidget-owiMSCYl.cjs +0 -2
  425. package/dist/LabelvaluedescWidget-MRmZBUc0.cjs +0 -2
  426. package/dist/LabelvaluelimitsbarWidget-BQ2XYPNE.cjs +0 -2
  427. package/dist/LabelvaluelimitscolumnWidget-DNmVpU8J.cjs +0 -2
  428. package/dist/LabelvaluerangebarWidget-DL0U8cbw.cjs +0 -2
  429. package/dist/Layout-DRL0EeSA.cjs +0 -2
  430. package/dist/LedWidget-B8rjFe1b.cjs +0 -2
  431. package/dist/LedWidget-B8rjFe1b.cjs.map +0 -1
  432. package/dist/LedWidget-CxJjJBBS.js +0 -71
  433. package/dist/LedWidget-CxJjJBBS.js.map +0 -1
  434. package/dist/LimitsbarWidget-CYIH8fdp.cjs +0 -2
  435. package/dist/LimitscolorWidget-CS0wpX9A.cjs +0 -2
  436. package/dist/LimitscolumnWidget-C_UW6xKq.cjs +0 -2
  437. package/dist/LinegraphWidget-8td_PqgU.cjs +0 -2
  438. package/dist/MatrixbycolumnsWidget-CGOeCNW2.cjs +0 -2
  439. package/dist/MicroservicesTab-IbTmbPxO.js.map +0 -1
  440. package/dist/MicroservicesTab-uMC8NebS.cjs +0 -2
  441. package/dist/MicroservicesTab-uMC8NebS.cjs.map +0 -1
  442. package/dist/OutputDialog-B4Q0QMJ1.cjs.map +0 -1
  443. package/dist/OutputDialog-Ci5OT_fH.js.map +0 -1
  444. package/dist/PackagesTab-eYbk2vw7.cjs +0 -2
  445. package/dist/ProgressbarWidget-CUIAYySg.cjs +0 -2
  446. package/dist/RadiobuttonWidget-Cjk1JAP_.cjs +0 -2
  447. package/dist/RadiogroupWidget-B4lkYWaC.cjs +0 -2
  448. package/dist/RangebarWidget-nl0rzj93.cjs +0 -2
  449. package/dist/RedisTab-DhS4GHDj.cjs +0 -2
  450. package/dist/RollupWidget-Bgudi_bt.cjs +0 -2
  451. package/dist/RoutersTab-CzO10cVP.cjs +0 -2
  452. package/dist/ScriptChooser-BNm_zXxX.cjs +0 -2
  453. package/dist/ScrollwindowWidget-BIiV7xwi.cjs +0 -2
  454. package/dist/SecretsTab-BSzFZ81X.cjs +0 -2
  455. package/dist/SettingsTab-Bo_dYXgb.js.map +0 -1
  456. package/dist/SettingsTab-DH8LAAoG.cjs +0 -3
  457. package/dist/SettingsTab-DH8LAAoG.cjs.map +0 -1
  458. package/dist/SignalWidget-CvZkvejy.cjs +0 -2
  459. package/dist/SimpleTextDialog-DmeNMMCR.cjs +0 -2
  460. package/dist/SpacerWidget-BBJR6HBQ.cjs +0 -2
  461. package/dist/SparklineWidget-BxBLnjAO.cjs +0 -2
  462. package/dist/TabbookWidget-DyFQnA10.cjs +0 -2
  463. package/dist/TargetsTab-DMiOliqg.cjs +0 -2
  464. package/dist/TextBoxDialog-DvUf3Cak.cjs +0 -2
  465. package/dist/TextboxWidget-D6lW_dsU.cjs +0 -2
  466. package/dist/TextfieldWidget-iHN7-fyF.cjs +0 -2
  467. package/dist/TimeWidget-C3NZqTEG.cjs +0 -2
  468. package/dist/TitleWidget-CWZs33c4.cjs +0 -2
  469. package/dist/TopBar-DuXL27iD.cjs +0 -2
  470. package/dist/TopBar-DuXL27iD.cjs.map +0 -1
  471. package/dist/TopBar-F1jHuFan.js.map +0 -1
  472. package/dist/UpgradeToEnterpriseDialog-DfIKahNK.cjs +0 -2
  473. package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-DJX55UPj.cjs +0 -1417
  474. package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-DJX55UPj.cjs.map +0 -1
  475. package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-iq-jp8dD.js +0 -26941
  476. package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-iq-jp8dD.js.map +0 -1
  477. package/dist/ValueWidget-Do3Yn47P.cjs +0 -2
  478. package/dist/ValuelimitsbarWidget-DJuh7FOs.cjs +0 -2
  479. package/dist/ValuelimitscolumnWidget-BFpG-H7v.cjs +0 -2
  480. package/dist/ValuerangebarWidget-BlZSaiXo.cjs +0 -2
  481. package/dist/VerticalWidget--8UErB4q.cjs +0 -2
  482. package/dist/VerticalboxWidget-B4eGUSYH.js +0 -37
  483. package/dist/VerticalboxWidget-B4eGUSYH.js.map +0 -1
  484. package/dist/VerticalboxWidget-cxHq1WKQ.cjs +0 -2
  485. package/dist/VerticalboxWidget-cxHq1WKQ.cjs.map +0 -1
  486. package/dist/Widget-DNf52jRQ.cjs +0 -2
  487. package/dist/index-Bz_jHTkl.cjs +0 -7
  488. package/dist/index-Bz_jHTkl.cjs.map +0 -1
  489. package/dist/index-CFQnWdPA.js.map +0 -1
@@ -1,13 +1,13 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const oe=require("../index-Bz_jHTkl.cjs"),n=require("vue"),T=require("../CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-BHFhmbuH.cjs"),k=require("../UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-DJX55UPj.cjs");require("single-spa");const re=require("../TopBar-DuXL27iD.cjs"),le={props:{modelValue:Boolean},data(){return{url:"",type:null,response:null,activeDownload:!1,disableSearch:!1,expanded:[]}},computed:{show:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}},listData:function(){return this.response?this.type==="github"?this.parseGithub():this.parseRuby():[]}},methods:{parseGithub:function(){const e=/\w+.gem/;return this.response.tree.filter(t=>e.exec(t.path)).map(t=>({name:t.path,url:`https://raw.github.com/OpenC3/openc3-tools/main/${t.path}`}))},getResponse:function(){this.disableSearch=!0,oe.axios.get(this.url).then(e=>{this.response=e.data}),setTimeout(()=>{this.disableSearch=!1},1e4)},searchGithub:function(){this.type="github",this.url="https://api.github.com/repos/OpenC3/openc3-tools/git/trees/main?recursive=1",this.getResponse()},downloadGem:function(e){const t=document.createElement("a");t.href=e.url,t.setAttribute("download",e.name),t.click(),t.remove()}}},se={class:"pa-3"},ae={class:"px-2"},ce={key:0,class:"mt-4"},de={key:1,class:"mt-4"},fe={key:0},he={key:1};function ue(e,t,i,r,l,o){const s=n.resolveComponent("v-spacer"),a=n.resolveComponent("v-toolbar"),c=n.resolveComponent("v-row"),d=n.resolveComponent("v-icon"),u=n.resolveComponent("v-btn"),f=n.resolveComponent("v-col"),g=n.resolveComponent("v-list-item-title"),p=n.resolveComponent("v-progress-circular"),_=n.resolveComponent("v-tooltip"),w=n.resolveComponent("v-list-item"),b=n.resolveComponent("v-divider"),m=n.resolveComponent("v-card-text"),x=n.resolveComponent("v-card"),C=n.resolveComponent("v-dialog");return n.openBlock(),n.createBlock(C,{modelValue:o.show,"onUpdate:modelValue":t[0]||(t[0]=v=>o.show=v),width:"600"},{default:n.withCtx(()=>[n.createVNode(x,null,{default:n.withCtx(()=>[n.createVNode(a,{height:"24"},{default:n.withCtx(()=>[n.createVNode(s),t[1]||(t[1]=n.createElementVNode("span",null," Download Gems ",-1)),n.createVNode(s)]),_:1}),n.createVNode(m,null,{default:n.withCtx(()=>[n.createElementVNode("div",se,[n.createVNode(c,{class:"my-2"},{default:n.withCtx(()=>t[2]||(t[2]=[n.createTextVNode(" Select a download option ")])),_:1}),n.createVNode(c,null,{default:n.withCtx(()=>[n.createVNode(f,null,{default:n.withCtx(()=>[n.createElementVNode("div",ae,[n.createVNode(u,{onClick:o.searchGithub,block:"","data-test":"searchGithub",color:"primary",disabled:l.disableSearch},{default:n.withCtx(()=>[t[4]||(t[4]=n.createTextVNode(" Github ")),n.createVNode(d,{end:"",theme:"dark"},{default:n.withCtx(()=>t[3]||(t[3]=[n.createTextVNode(" mdi-github ")])),_:1})]),_:1},8,["onClick","disabled"])])]),_:1})]),_:1}),n.createVNode(c,{class:"mt-5"},{default:n.withCtx(()=>t[5]||(t[5]=[n.createTextVNode(" Community Gems ")])),_:1}),o.listData.length<1?(n.openBlock(),n.createElementBlock("div",ce,[n.createVNode(c,{class:"mx-2"},{default:n.withCtx(()=>t[6]||(t[6]=[n.createElementVNode("span",null," I’m sorry, Dave. No gems available.... ",-1)])),_:1})])):(n.openBlock(),n.createElementBlock("div",de,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.listData,(v,y)=>(n.openBlock(),n.createElementBlock("div",{key:y},[n.createVNode(w,null,{default:n.withCtx(()=>[n.createVNode(g,null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(v.name),1)]),_:2},1024),n.createVNode(w,{icon:""},{default:n.withCtx(()=>[l.activeDownload?(n.openBlock(),n.createElementBlock("div",fe,[n.createVNode(p,{indeterminate:"",color:"primary"})])):(n.openBlock(),n.createElementBlock("div",he,[n.createVNode(_,{location:"top"},{activator:n.withCtx(({props:V})=>[n.createVNode(d,n.mergeProps({ref_for:!0},V,{onClick:N=>o.downloadGem(v),disabled:l.activeDownload}),{default:n.withCtx(()=>t[7]||(t[7]=[n.createTextVNode(" mdi-cloud-download ")])),_:2},1040,["onClick","disabled"])]),default:n.withCtx(()=>[t[8]||(t[8]=n.createElementVNode("span",null,"Download Gem",-1))]),_:2},1024)]))]),_:2},1024)]),_:2},1024),y<o.listData.length-1?(n.openBlock(),n.createBlock(b,{key:y})):n.createCommentVNode("",!0)]))),128))]))])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const ge=T._export_sfc(le,[["render",ue]]),pe={props:{content:{type:String,required:!0},type:String,name:String,modelValue:Boolean,readonly:Boolean},data(){return{editor:null}},mounted(){const e=this.buildPluginMode();this.editor=k.aceExports.edit(this.$refs.editor),this.editor.setTheme("ace/theme/twilight"),this.editor.session.setMode(new e),this.editor.session.setTabSize(2),this.editor.session.setUseWrapMode(!0),this.editor.$blockScrolling=1/0,this.editor.setHighlightActiveLine(!1),this.editor.setValue(this.content),this.editor.clearSelection(),this.editor.focus(),this.readonly&&this.editor.setReadOnly(!0)},beforeUnmount(){this.editor&&this.editor.destroy()},computed:{show:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}},title:function(){return`${this.type}: ${this.name}`},error:function(){return this.editor&&this.editor.getValue()===""&&!this.file?"Input can not be blank.":null}},methods:{submit:function(){this.$emit("submit",this.editor.getValue()),this.show=!this.show},close:function(){this.show=!this.show},download:function(){const e=new Blob([this.editor.getValue()],{type:"text/plain"}),t=document.createElement("a");t.href=URL.createObjectURL(e),t.setAttribute("download",`${this.type.toLowerCase()}_${this.name.toLowerCase()}.json`),t.click()},buildPluginMode(){let e=k.aceExports.require("ace/lib/oop"),t=k.aceExports.require("ace/mode/json_highlight_rules").JsonHighlightRules,i=k.aceExports.require("ace/mode/matching_brace_outdent").MatchingBraceOutdent,r=k.aceExports.require("ace/mode/behaviour/cstyle").CstyleBehaviour,l=k.aceExports.require("ace/mode/folding/ruby").FoldMode,o=function(){this.HighlightRules=t,this.$outdent=new i,this.$behaviour=new r,this.foldingRules=new l,this.indentKeywords=this.foldingRules.indentKeywords},s=k.aceExports.require("ace/mode/ruby").Mode;return e.inherits(o,s),(function(){this.$id="ace/mode/openc3"}).call(o.prototype),o}}},me=["textContent"],_e={class:"mx-2"},be={class:"pa-3"},we={key:0},Ce={class:"editor",ref:"editor"},xe=["textContent"];function ve(e,t,i,r,l,o){const s=n.resolveComponent("v-spacer"),a=n.resolveComponent("v-icon"),c=n.resolveComponent("v-tooltip"),d=n.resolveComponent("v-toolbar"),u=n.resolveComponent("v-row"),f=n.resolveComponent("v-btn"),g=n.resolveComponent("v-col"),p=n.resolveComponent("v-file-input"),_=n.resolveComponent("v-card-text"),w=n.resolveComponent("v-card"),b=n.resolveComponent("v-dialog");return n.openBlock(),n.createBlock(b,{persistent:!i.readonly,modelValue:o.show,"onUpdate:modelValue":t[2]||(t[2]=m=>o.show=m),width:"80vw"},{default:n.withCtx(()=>[n.createVNode(w,null,{default:n.withCtx(()=>[n.createElementVNode("form",{onSubmit:t[1]||(t[1]=n.withModifiers((...m)=>o.submit&&o.submit(...m),["prevent"]))},[n.createVNode(d,{height:"24"},{default:n.withCtx(()=>[n.createVNode(s),n.createElementVNode("span",{textContent:n.toDisplayString(o.title)},null,8,me),n.createVNode(s),n.createElementVNode("div",_e,[n.createVNode(c,{location:"top"},{activator:n.withCtx(({props:m})=>[n.createElementVNode("div",n.normalizeProps(n.guardReactiveProps(m)),[n.createVNode(a,{"data-test":"downloadIcon",onClick:o.download},{default:n.withCtx(()=>t[3]||(t[3]=[n.createTextVNode(" mdi-download ")])),_:1},8,["onClick"])],16)]),default:n.withCtx(()=>[t[4]||(t[4]=n.createElementVNode("span",null," Download ",-1))]),_:1})])]),_:1}),n.createVNode(_,null,{default:n.withCtx(()=>[n.createElementVNode("div",be,[i.readonly?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",we,[n.createVNode(u,{class:"mt-3"},{default:n.withCtx(()=>t[5]||(t[5]=[n.createTextVNode(" Upload a file. ")])),_:1}),n.createVNode(u,{"no-gutters":"",align:"center"},{default:n.withCtx(()=>[n.createVNode(g,{cols:"3"},{default:n.withCtx(()=>[n.createVNode(f,{block:"",color:"success",onClick:e.loadFile,disabled:!e.file||e.loadingFile||i.readonly,loading:e.loadingFile,"data-test":"editScreenLoadBtn"},{loader:n.withCtx(()=>t[6]||(t[6]=[n.createElementVNode("span",null,"Loading...",-1)])),default:n.withCtx(()=>[t[7]||(t[7]=n.createTextVNode(" Load "))]),_:1},8,["onClick","disabled","loading"])]),_:1}),n.createVNode(g,{cols:"9"},{default:n.withCtx(()=>[n.createVNode(p,{modelValue:e.file,"onUpdate:modelValue":t[0]||(t[0]=m=>e.file=m),accept:".json",label:"Click to select .json file.",disabled:i.readonly},null,8,["modelValue","disabled"])]),_:1})]),_:1})])),n.createVNode(u,{"no-gutters":""},{default:n.withCtx(()=>[n.createElementVNode("pre",Ce,null,512)]),_:1}),n.createVNode(u,{class:"my-3"},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("span",{class:"text-red",textContent:n.toDisplayString(o.error)},null,8,xe),[[n.vShow,o.error]])]),_:1}),n.createVNode(u,null,{default:n.withCtx(()=>[n.createVNode(s),n.createVNode(f,{onClick:n.withModifiers(o.close,["prevent"]),variant:"outlined",class:"mx-2","data-test":"editCancelBtn"},{default:n.withCtx(()=>t[8]||(t[8]=[n.createTextVNode(" Cancel ")])),_:1},8,["onClick"]),i.readonly?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(f,{key:0,class:"mx-2",color:"primary",type:"submit","data-test":"editSubmitBtn",disabled:!!o.error||i.readonly},{default:n.withCtx(()=>t[9]||(t[9]=[n.createTextVNode(" Save ")])),_:1},8,["disabled"]))]),_:1})])]),_:1})],32)]),_:1})]),_:1},8,["persistent","modelValue"])}const ye=T._export_sfc(pe,[["render",ve],["__scopeId","data-v-74f3ff47"]]),Ee={props:{modelValue:Boolean,plugin:String,targets:Array,pluginDelete:Boolean},data(){return{modifiedTargets:[],deleteModified:!1}},computed:{show:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}},created(){for(const e of this.targets)k.ui.get(`/openc3-api/targets/${e.name}/modified_files`).then(t=>{t.data.length!==0&&this.modifiedTargets.push({name:e.name,files:t.data})})}};function Ve(e,t,i,r,l,o){const s=n.resolveComponent("v-spacer"),a=n.resolveComponent("v-toolbar"),c=n.resolveComponent("v-list-item-title"),d=n.resolveComponent("v-list-item-subtitle"),u=n.resolveComponent("v-list-item"),f=n.resolveComponent("v-checkbox"),g=n.resolveComponent("v-card-text"),p=n.resolveComponent("v-btn"),_=n.resolveComponent("v-card-actions"),w=n.resolveComponent("v-card"),b=n.resolveComponent("v-dialog");return n.openBlock(),n.createBlock(b,{modelValue:o.show,"onUpdate:modelValue":t[3]||(t[3]=m=>o.show=m),width:"600"},{default:n.withCtx(()=>[n.createVNode(w,null,{default:n.withCtx(()=>[n.createVNode(a,{height:"24"},{default:n.withCtx(()=>[n.createVNode(s),t[4]||(t[4]=n.createElementVNode("span",null," Modified Plugin ",-1)),n.createVNode(s)]),_:1}),n.createVNode(g,{class:"pa-3"},{default:n.withCtx(()=>[n.createElementVNode("div",null," Plugin "+n.toDisplayString(i.plugin)+" was modified. Would you like to delete the existing modified files? ",1),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(l.modifiedTargets,(m,x)=>(n.openBlock(),n.createBlock(u,{lines:"two",key:x},{default:n.withCtx(()=>[n.createVNode(c,null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(m.name),1)]),_:2},1024),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(m.files,(C,v)=>(n.openBlock(),n.createBlock(d,{key:v},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(C),1)]),_:2},1024))),128))]),_:2},1024))),128)),n.createVNode(f,{modelValue:l.deleteModified,"onUpdate:modelValue":t[0]||(t[0]=m=>l.deleteModified=m),label:"DELETE MODIFIED! THIS CAN NOT BE UNDONE!!!",color:"error","data-test":"modified-plugin-delete-checkbox"},null,8,["modelValue"])]),_:1}),n.createVNode(_,{class:"px-2"},{default:n.withCtx(()=>[n.createVNode(s),n.createVNode(p,{variant:"outlined","data-test":"modified-plugin-cancel",onClick:t[1]||(t[1]=()=>{o.show=!1,e.$emit("cancel")})},{default:n.withCtx(()=>t[5]||(t[5]=[n.createTextVNode(" Cancel ")])),_:1}),n.createVNode(p,{variant:"flat","data-test":"modified-plugin-submit",onClick:t[2]||(t[2]=()=>{o.show=!1,e.$emit("submit",l.deleteModified)})},{default:n.withCtx(()=>t[6]||(t[6]=[n.createTextVNode(" Confirm ")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}const ke=T._export_sfc(Ee,[["render",Ve]]),X=[{displayName:"Plugins",name:"PluginsTab",path:"plugins",component:()=>Promise.resolve().then(()=>require("../PluginsTab-Ck3DvEGm.cjs"))},{displayName:"Targets",name:"TargetsTab",path:"targets",component:()=>Promise.resolve().then(()=>require("../TargetsTab-DMiOliqg.cjs"))},{displayName:"Interfaces",name:"InterfacesTab",path:"interfaces",component:()=>Promise.resolve().then(()=>require("../InterfacesTab-CLaicsHA.cjs"))},{displayName:"Routers",name:"RoutersTab",path:"routers",component:()=>Promise.resolve().then(()=>require("../RoutersTab-CzO10cVP.cjs"))},{displayName:"Microservices",name:"MicroservicesTab",path:"microservices",component:()=>Promise.resolve().then(()=>require("../MicroservicesTab-uMC8NebS.cjs"))},{displayName:"Packages",name:"PackagesTab",path:"packages",component:()=>Promise.resolve().then(()=>require("../PackagesTab-eYbk2vw7.cjs"))},{displayName:"Tools",name:"ToolsTab",path:"tools",component:()=>Promise.resolve().then(()=>require("../ToolsTab-CUpUmkZL.cjs"))},{displayName:"Redis",name:"RedisTab",path:"redis",component:()=>Promise.resolve().then(()=>require("../RedisTab-DhS4GHDj.cjs"))},{displayName:"Secrets",name:"SecretsTab",path:"secrets",component:()=>Promise.resolve().then(()=>require("../SecretsTab-BSzFZ81X.cjs"))},{displayName:"Settings",name:"SettingsTab",path:"settings",component:()=>Promise.resolve().then(()=>require("../SettingsTab-DH8LAAoG.cjs"))}],Ne={components:{TopBar:re.TopBar},data(){return{title:"Administrator Console",curTab:null}},computed:{tabs:function(){return X.map(e=>({displayName:e.displayName,path:{name:e.name}}))}}};function Se(e,t,i,r,l,o){const s=n.resolveComponent("top-bar"),a=n.resolveComponent("v-tab"),c=n.resolveComponent("v-tabs"),d=n.resolveComponent("router-view"),u=n.resolveComponent("v-card");return n.openBlock(),n.createElementBlock("div",null,[n.createVNode(s,{title:l.title},null,8,["title"]),n.createVNode(u,null,{default:n.withCtx(()=>[n.createVNode(c,{modelValue:l.curTab,"onUpdate:modelValue":t[0]||(t[0]=f=>l.curTab=f),"fixed-tabs":""},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.tabs,(f,g)=>(n.openBlock(),n.createBlock(a,{key:g,to:f.path},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(f.displayName),1)]),_:2},1032,["to"]))),128))]),_:1},8,["modelValue"]),n.createVNode(d)]),_:1})])}const Te=T._export_sfc(Ne,[["render",Se]]),h=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32};h.Diff=function(e,t){this[0]=e,this[1]=t};h.Diff.prototype.length=2;h.Diff.prototype.toString=function(){return this[0]+","+this[1]};h.prototype.diff_main=function(e,t,i,r){typeof r>"u"&&(this.Diff_Timeout<=0?r=Number.MAX_VALUE:r=new Date().getTime()+this.Diff_Timeout*1e3);let l=r;if(e==null||t==null)throw new Error("Null input. (diff_main)");if(e==t)return e?[new h.Diff(0,e)]:[];typeof i>"u"&&(i=!0);let o=i,s=this.diff_commonPrefix(e,t),a=e.substring(0,s);e=e.substring(s),t=t.substring(s),s=this.diff_commonSuffix(e,t);let c=e.substring(e.length-s);e=e.substring(0,e.length-s),t=t.substring(0,t.length-s);let d=this.diff_compute_(e,t,o,l);return a&&d.unshift(new h.Diff(0,a)),c&&d.push(new h.Diff(0,c)),this.diff_cleanupMerge(d),d};h.prototype.diff_compute_=function(e,t,i,r){let l;if(!e)return[new h.Diff(1,t)];if(!t)return[new h.Diff(-1,e)];let o=e.length>t.length?e:t,s=e.length>t.length?t:e,a=o.indexOf(s);return a!=-1?(l=[new h.Diff(1,o.substring(0,a)),new h.Diff(0,s),new h.Diff(1,o.substring(a+s.length))],e.length>t.length&&(l[0][0]=l[2][0]=-1),l):s.length==1?[new h.Diff(-1,e),new h.Diff(1,t)]:i&&e.length>100&&t.length>100?this.diff_lineMode_(e,t,r):this.diff_bisect_(e,t,r)};h.prototype.diff_lineMode_=function(e,t,i){let r=this.diff_linesToChars_(e,t);e=r.chars1,t=r.chars2;let l=r.lineArray,o=this.diff_main(e,t,!1,i);this.diff_charsToLines_(o,l),this.diff_cleanupSemantic(o),o.push(new h.Diff(0,""));let s=0,a=0,c=0,d="",u="";for(;s<o.length;){switch(o[s][0]){case 1:c++,u+=o[s][1];break;case-1:a++,d+=o[s][1];break;case 0:if(a>=1&&c>=1){o.splice(s-a-c,a+c),s=s-a-c;let f=this.diff_main(d,u,!1,i);for(let g=f.length-1;g>=0;g--)o.splice(s,0,f[g]);s=s+f.length}c=0,a=0,d="",u="";break}s++}return o.pop(),o};h.prototype.diff_bisect_=function(e,t,i){let r=e.length,l=t.length,o=Math.ceil((r+l)/2),s=o,a=2*o,c=new Array(a),d=new Array(a);for(let b=0;b<a;b++)c[b]=-1,d[b]=-1;c[s+1]=0,d[s+1]=0;let u=r-l,f=u%2!=0,g=0,p=0,_=0,w=0;for(let b=0;b<o&&!(new Date().getTime()>i);b++){for(let m=-b+g;m<=b-p;m+=2){let x=s+m,C;m==-b||m!=b&&c[x-1]<c[x+1]?C=c[x+1]:C=c[x-1]+1;let v=C-m;for(;C<r&&v<l&&e.charAt(C)==t.charAt(v);)C++,v++;if(c[x]=C,C>r)p+=2;else if(v>l)g+=2;else if(f){let y=s+u-m;if(y>=0&&y<a&&d[y]!=-1){let V=r-d[y];if(C>=V)return this.diff_bisectSplit_(e,t,C,v,i)}}}for(let m=-b+_;m<=b-w;m+=2){let x=s+m,C;m==-b||m!=b&&d[x-1]<d[x+1]?C=d[x+1]:C=d[x-1]+1;let v=C-m;for(;C<r&&v<l&&e.charAt(r-C-1)==t.charAt(l-v-1);)C++,v++;if(d[x]=C,C>r)w+=2;else if(v>l)_+=2;else if(!f){let y=s+u-m;if(y>=0&&y<a&&c[y]!=-1){let V=c[y],N=s+V-y;if(C=r-C,V>=C)return this.diff_bisectSplit_(e,t,V,N,i)}}}}return[new h.Diff(-1,e),new h.Diff(1,t)]};h.prototype.diff_bisectSplit_=function(e,t,i,r,l){let o=e.substring(0,i),s=t.substring(0,r),a=e.substring(i),c=t.substring(r),d=this.diff_main(o,s,!1,l),u=this.diff_main(a,c,!1,l);return d.concat(u)};h.prototype.diff_linesToChars_=function(e,t){let i=[],r={};i[0]="";function l(c){let d="",u=0,f=-1,g=i.length;for(;f<c.length-1;){f=c.indexOf(`
2
- `,u),f==-1&&(f=c.length-1);let p=c.substring(u,f+1);(r.hasOwnProperty?r.hasOwnProperty(p):r[p]!==void 0)?d+=String.fromCharCode(r[p]):(g==o&&(p=c.substring(u),f=c.length),d+=String.fromCharCode(g),r[p]=g,i[g++]=p),u=f+1}return d}let o=4e4,s=l(e);o=65535;let a=l(t);return{chars1:s,chars2:a,lineArray:i}};h.prototype.diff_charsToLines_=function(e,t){for(let i=0;i<e.length;i++){let r=e[i][1],l=[];for(let o=0;o<r.length;o++)l[o]=t[r.charCodeAt(o)];e[i][1]=l.join("")}};h.prototype.diff_commonPrefix=function(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;let i=0,r=Math.min(e.length,t.length),l=r,o=0;for(;i<l;)e.substring(o,l)==t.substring(o,l)?(i=l,o=i):r=l,l=Math.floor((r-i)/2+i);return l};h.prototype.diff_commonSuffix=function(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;let i=0,r=Math.min(e.length,t.length),l=r,o=0;for(;i<l;)e.substring(e.length-l,e.length-o)==t.substring(t.length-l,t.length-o)?(i=l,o=i):r=l,l=Math.floor((r-i)/2+i);return l};h.prototype.diff_commonOverlap_=function(e,t){let i=e.length,r=t.length;if(i==0||r==0)return 0;i>r?e=e.substring(i-r):i<r&&(t=t.substring(0,i));let l=Math.min(i,r);if(e==t)return l;let o=0,s=1;for(;;){let a=e.substring(l-s),c=t.indexOf(a);if(c==-1)return o;s+=c,(c==0||e.substring(l-s)==t.substring(0,s))&&(o=s,s++)}};h.prototype.diff_halfMatch_=function(e,t){if(this.Diff_Timeout<=0)return null;let i=e.length>t.length?e:t,r=e.length>t.length?t:e;if(i.length<4||r.length*2<i.length)return null;let l=this;function o(_,w,b){let m=_.substring(b,b+Math.floor(_.length/4)),x=-1,C="",v,y,V,N;for(;(x=w.indexOf(m,x+1))!=-1;){let L=l.diff_commonPrefix(_.substring(b),w.substring(x)),D=l.diff_commonSuffix(_.substring(0,b),w.substring(0,x));C.length<D+L&&(C=w.substring(x-D,x)+w.substring(x,x+L),v=_.substring(0,b-D),y=_.substring(b+L),V=w.substring(0,x-D),N=w.substring(x+L))}return C.length*2>=_.length?[v,y,V,N,C]:null}let s=o(i,r,Math.ceil(i.length/4)),a=o(i,r,Math.ceil(i.length/2)),c;if(!s&&!a)return null;a?s?c=s[4].length>a[4].length?s:a:c=a:c=s;let d,u,f,g;e.length>t.length?(d=c[0],u=c[1],f=c[2],g=c[3]):(f=c[0],g=c[1],d=c[2],u=c[3]);let p=c[4];return[d,u,f,g,p]};h.prototype.diff_cleanupSemantic=function(e){let t=!1,i=[],r=0,l=null,o=0,s=0,a=0,c=0,d=0;for(;o<e.length;)e[o][0]==0?(i[r++]=o,s=c,a=d,c=0,d=0,l=e[o][1]):(e[o][0]==1?c+=e[o][1].length:d+=e[o][1].length,l&&l.length<=Math.max(s,a)&&l.length<=Math.max(c,d)&&(e.splice(i[r-1],0,new h.Diff(-1,l)),e[i[r-1]+1][0]=1,r--,r--,o=r>0?i[r-1]:-1,s=0,a=0,c=0,d=0,l=null,t=!0)),o++;for(t&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),o=1;o<e.length;){if(e[o-1][0]==-1&&e[o][0]==1){let u=e[o-1][1],f=e[o][1],g=this.diff_commonOverlap_(u,f),p=this.diff_commonOverlap_(f,u);g>=p?(g>=u.length/2||g>=f.length/2)&&(e.splice(o,0,new h.Diff(0,f.substring(0,g))),e[o-1][1]=u.substring(0,u.length-g),e[o+1][1]=f.substring(g),o++):(p>=u.length/2||p>=f.length/2)&&(e.splice(o,0,new h.Diff(0,u.substring(0,p))),e[o-1][0]=1,e[o-1][1]=f.substring(0,f.length-p),e[o+1][0]=-1,e[o+1][1]=u.substring(p),o++),o++}o++}};h.prototype.diff_cleanupSemanticLossless=function(e){function t(r,l){if(!r||!l)return 6;let o=r.charAt(r.length-1),s=l.charAt(0),a=o.match(h.nonAlphaNumericRegex_),c=s.match(h.nonAlphaNumericRegex_),d=a&&o.match(h.whitespaceRegex_),u=c&&s.match(h.whitespaceRegex_),f=d&&o.match(h.linebreakRegex_),g=u&&s.match(h.linebreakRegex_),p=f&&r.match(h.blanklineEndRegex_),_=g&&l.match(h.blanklineStartRegex_);return p||_?5:f||g?4:a&&!d&&u?3:d||u?2:a||c?1:0}let i=1;for(;i<e.length-1;){if(e[i-1][0]==0&&e[i+1][0]==0){let r=e[i-1][1],l=e[i][1],o=e[i+1][1],s=this.diff_commonSuffix(r,l);if(s){r[r.length-s]===`
3
- `&&(s-=1);let f=l.substring(l.length-s);r=r.substring(0,r.length-s),l=f+l.substring(0,l.length-s),o=f+o}let a=r,c=l,d=o,u=t(r,l)+t(l,o);for(;l.charAt(0)===o.charAt(0);){r+=l.charAt(0),l=l.substring(1)+o.charAt(0),o=o.substring(1);let f=t(r,l)+t(l,o);f>=u&&(u=f,a=r,c=l,d=o)}e[i-1][1]!=a&&(a?e[i-1][1]=a:(e.splice(i-1,1),i--),e[i][1]=c,d?e[i+1][1]=d:(e.splice(i+1,1),i--))}i++}};h.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/;h.whitespaceRegex_=/\s/;h.linebreakRegex_=/[\r\n]/;h.blanklineEndRegex_=/\n\r?\n$/;h.blanklineStartRegex_=/^\r?\n\r?\n/;h.prototype.diff_cleanupEfficiency=function(e){let t=!1,i=[],r=0,l=null,o=0,s=!1,a=!1,c=!1,d=!1;for(;o<e.length;)e[o][0]==0?(e[o][1].length<this.Diff_EditCost&&(c||d)?(i[r++]=o,s=c,a=d,l=e[o][1]):(r=0,l=null),c=d=!1):(e[o][0]==-1?d=!0:c=!0,l&&(s&&a&&c&&d||l.length<this.Diff_EditCost/2&&s+a+c+d==3)&&(e.splice(i[r-1],0,new h.Diff(-1,l)),e[i[r-1]+1][0]=1,r--,l=null,s&&a?(c=d=!0,r=0):(r--,o=r>0?i[r-1]:-1,c=d=!1),t=!0)),o++;t&&this.diff_cleanupMerge(e)};h.prototype.diff_cleanupMerge=function(e){e.push(new h.Diff(0,""));let t=0,i=0,r=0,l="",o="",s;for(;t<e.length;)switch(e[t][0]){case 1:r++,o+=e[t][1],t++;break;case-1:i++,l+=e[t][1],t++;break;case 0:i+r>1?(i!==0&&r!==0&&(s=this.diff_commonPrefix(o,l),s!==0&&(t-i-r>0&&e[t-i-r-1][0]==0?e[t-i-r-1][1]+=o.substring(0,s):(e.splice(0,0,new h.Diff(0,o.substring(0,s))),t++),o=o.substring(s),l=l.substring(s)),s=this.diff_commonSuffix(o,l),s!==0&&(e[t][1]=o.substring(o.length-s)+e[t][1],o=o.substring(0,o.length-s),l=l.substring(0,l.length-s))),t-=i+r,e.splice(t,i+r),l.length&&(e.splice(t,0,new h.Diff(-1,l)),t++),o.length&&(e.splice(t,0,new h.Diff(1,o)),t++),t++):t!==0&&e[t-1][0]==0?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,r=0,i=0,l="",o="";break}e[e.length-1][1]===""&&e.pop();let a=!1;for(t=1;t<e.length-1;)e[t-1][0]==0&&e[t+1][0]==0&&(e[t][1].substring(e[t][1].length-e[t-1][1].length)==e[t-1][1]?(e[t][1]=e[t-1][1]+e[t][1].substring(0,e[t][1].length-e[t-1][1].length),e[t+1][1]=e[t-1][1]+e[t+1][1],e.splice(t-1,1),a=!0):e[t][1].substring(0,e[t+1][1].length)==e[t+1][1]&&(e[t-1][1]+=e[t+1][1],e[t][1]=e[t][1].substring(e[t+1][1].length)+e[t+1][1],e.splice(t+1,1),a=!0)),t++;a&&this.diff_cleanupMerge(e)};h.prototype.diff_cleanupSplitSurrogates=function(e){let t;for(let i=0;i<e.length;i++){let r=e[i],l=r[1][0],o=r[1][r[1].length-1];if(r[1].length===0){e.splice(i--,1);continue}if(o&&this.isHighSurrogate(o)&&(t=o,r[1]=r[1].slice(0,-1)),t&&l&&this.isHighSurrogate(t)&&this.isLowSurrogate(l)&&(r[1]=t+r[1]),r[1].length===0){e.splice(i--,1);continue}}return e};h.prototype.isHighSurrogate=function(e){let t=e.charCodeAt(0);return t>=55296&&t<=56319};h.prototype.isLowSurrogate=function(e){let t=e.charCodeAt(0);return t>=56320&&t<=57343};h.prototype.digit16=function(e){switch(e){case"0":return 0;case"1":return 1;case"2":return 2;case"3":return 3;case"4":return 4;case"5":return 5;case"6":return 6;case"7":return 7;case"8":return 8;case"9":return 9;case"A":case"a":return 10;case"B":case"b":return 11;case"C":case"c":return 12;case"D":case"d":return 13;case"E":case"e":return 14;case"F":case"f":return 15;default:throw new Error("Invalid hex-code")}};h.prototype.decodeURI=function(e){try{return decodeURI(e)}catch{let t=0,i="";for(;t<e.length;){if(e[t]!=="%"){i+=e[t++];continue}let r=(this.digit16(e[t+1])<<4)+this.digit16(e[t+2]);if(!(r&128)){i+=String.fromCharCode(r),t+=3;continue}if(e[t+3]!=="%")throw new URIError("URI malformed");let l=(this.digit16(e[t+4])<<4)+this.digit16(e[t+5]);if((l&192)!==128)throw new URIError("URI malformed");if(l=l&63,(r&224)===192){i+=String.fromCharCode((r&31)<<6|l),t+=6;continue}if(e[t+6]!=="%")throw new URIError("URI malformed");let o=(this.digit16(e[t+7])<<4)+this.digit16(e[t+8]);if((o&192)!==128)throw new URIError("URI malformed");if(o=o&63,(r&240)===224){i+=String.fromCharCode((r&15)<<12|l<<6|o),t+=9;continue}if(e[t+9]!=="%")throw new URIError("URI malformed");let s=(this.digit16(e[t+10])<<4)+this.digit16(e[t+11]);if((s&192)!==128)throw new URIError("URI malformed");if(s=s&63,(r&248)===240){let a=(r&7)<<18|l<<12|o<<6|s;if(a>=65536&&a<=1114111){i+=String.fromCharCode((a&65535)>>>10&1023|55296),i+=String.fromCharCode(56320|a&65535&1023),t+=12;continue}}throw new URIError("URI malformed")}return i}};h.prototype.diff_xIndex=function(e,t){let i=0,r=0,l=0,o=0,s;for(s=0;s<e.length&&(e[s][0]!==1&&(i+=e[s][1].length),e[s][0]!==-1&&(r+=e[s][1].length),!(i>t));s++)l=i,o=r;return e.length!=s&&e[s][0]===-1?o:o+(t-l)};h.prototype.diff_prettyHtml=function(e){e=this.diff_cleanupSplitSurrogates(e);let t=[],i=/&/g,r=/</g,l=/>/g,o=/\n/g;for(let s=0;s<e.length;s++){let a=e[s][0],c=e[s][1].replace(i,"&amp;").replace(r,"&lt;").replace(l,"&gt;").replace(o,"&para;<br>");switch(a){case 1:t[s]='<ins style="background:#e6ffe6;">'+c+"</ins>";break;case-1:t[s]='<del style="background:#ffe6e6;">'+c+"</del>";break;case 0:t[s]="<span>"+c+"</span>";break}}return t.join("")};h.prototype.diff_text1=function(e){let t=[];for(let i=0;i<e.length;i++)e[i][0]!==1&&(t[i]=e[i][1]);return t.join("")};h.prototype.diff_text2=function(e){let t=[];for(let i=0;i<e.length;i++)e[i][0]!==-1&&(t[i]=e[i][1]);return t.join("")};h.prototype.diff_levenshtein=function(e){let t=0,i=0,r=0;for(let l=0;l<e.length;l++){let o=e[l][0],s=e[l][1];switch(o){case 1:i+=s.length;break;case-1:r+=s.length;break;case 0:t+=Math.max(i,r),i=0,r=0;break}}return t+=Math.max(i,r),t};h.prototype.diff_toDelta=function(e){e=this.diff_cleanupSplitSurrogates(e);let t=[];for(let i=0;i<e.length;i++)switch(e[i][0]){case 1:t[i]="+"+encodeURI(e[i][1]);break;case-1:t[i]="-"+e[i][1].length;break;case 0:t[i]="="+e[i][1].length;break}return t.join(" ").replace(/%20/g," ")};h.prototype.diff_fromDelta=function(e,t){let i=0,r="",l=[],o=0,s=0,a=t.split(/\t/g);for(let c=0;c<a.length;c++){let d=a[c].substring(1);switch(a[c].charAt(0)){case"+":try{l[o++]=new h.Diff(1,this.decodeURI(d))}catch{throw new Error("Illegal escape in diff_fromDelta: "+d)}break;case"-":case"=":if(i=parseInt(d,10),isNaN(i)||i<0)throw new Error("Invalid number in diff_fromDelta: "+d);r=e.substring(s,s+=i),a[c].charAt(0)=="="?l[o++]=new h.Diff(0,r):l[o++]=new h.Diff(-1,r);break;default:if(a[c])throw new Error("Invalid diff operation in diff_fromDelta: "+a[c])}}if(s!=e.length)throw new Error("Delta length ("+s+") does not equal source text length ("+e.length+").");return l};h.prototype.match_main=function(e,t,i){if(e==null||t==null||i==null)throw new Error("Null input. (match_main)");return i=Math.max(0,Math.min(i,e.length)),e==t?0:e.length?e.substring(i,i+t.length)==t?i:this.match_bitap_(e,t,i):-1};h.prototype.match_bitap_=function(e,t,i){if(t.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");let r=this.match_alphabet_(t),l=this;function o(p,_){let w=p/t.length,b=Math.abs(i-_);return l.Match_Distance?w+b/l.Match_Distance:b?1:w}let s=this.Match_Threshold,a=e.indexOf(t,i);a!=-1&&(s=Math.min(o(0,a),s),a=e.lastIndexOf(t,i+t.length),a!=-1&&(s=Math.min(o(0,a),s)));let c=1<<t.length-1;a=-1;let d,u,f=t.length+e.length,g;for(let p=0;p<t.length;p++){for(d=0,u=f;d<u;)o(p,i+u)<=s?d=u:f=u,u=Math.floor((f-d)/2+d);f=u;let _=Math.max(1,i-u+1),w=Math.min(i+u,e.length)+t.length,b=Array(w+2);b[w+1]=(1<<p)-1;for(let m=w;m>=_;m--){let x=r[e.charAt(m-1)];if(p===0?b[m]=(b[m+1]<<1|1)&x:b[m]=(b[m+1]<<1|1)&x|((g[m+1]|g[m])<<1|1)|g[m+1],b[m]&c){let C=o(p,m-1);if(C<=s)if(s=C,a=m-1,a>i)_=Math.max(1,2*i-a);else break}}if(o(p+1,i)>s)break;g=b}return a};h.prototype.match_alphabet_=function(e){let t={};for(let i=0;i<e.length;i++)t[e.charAt(i)]=0;for(let i=0;i<e.length;i++)t[e.charAt(i)]|=1<<e.length-i-1;return t};h.prototype.patch_addContext_=function(e,t){if(t.length==0)return;if(e.start2===null)throw Error("patch not initialized");let i=t.substring(e.start2,e.start2+e.length1),r=0;for(;t.indexOf(i)!=t.lastIndexOf(i)&&i.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)r+=this.Patch_Margin,i=t.substring(e.start2-r,e.start2+e.length1+r);r+=this.Patch_Margin,e.start2-r>0&&h.prototype.isLowSurrogate(t[e.start2-r])&&r++;let l=t.substring(e.start2-r,e.start2);l&&e.diffs.unshift(new h.Diff(0,l)),e.start2+e.length1+r<t.length&&h.prototype.isHighSurrogate(t[e.start2+e.length1+r])&&r++;let o=t.substring(e.start2+e.length1,e.start2+e.length1+r);o&&e.diffs.push(new h.Diff(0,o)),e.start1-=l.length,e.start2-=l.length,e.length1+=l.length+o.length,e.length2+=l.length+o.length};h.prototype.patch_make=function(e,t,i){let r,l;if(typeof e=="string"&&typeof t=="string"&&typeof i>"u")r=e,l=this.diff_main(r,t,!0),l.length>2&&(this.diff_cleanupSemantic(l),this.diff_cleanupEfficiency(l));else if(e&&typeof e=="object"&&typeof t>"u"&&typeof i>"u")l=e,r=this.diff_text1(l);else if(typeof e=="string"&&t&&typeof t=="object"&&typeof i>"u")r=e,l=t;else if(typeof e=="string"&&typeof t=="string"&&i&&typeof i=="object")r=e,l=i;else throw new Error("Unknown call format to patch_make.");if(l.length===0)return[];l=this.diff_cleanupSplitSurrogates(l);let o=[],s=new h.patch_obj,a=0,c=0,d=0,u=r,f=r;for(let g=0;g<l.length;g++){let p=l[g][0],_=l[g][1];switch(!a&&p!==0&&(s.start1=c,s.start2=d),p){case 1:s.diffs[a++]=l[g],s.length2+=_.length,f=f.substring(0,d)+_+f.substring(d);break;case-1:s.length1+=_.length,s.diffs[a++]=l[g],f=f.substring(0,d)+f.substring(d+_.length);break;case 0:_.length<=2*this.Patch_Margin&&a&&l.length!=g+1?(s.diffs[a++]=l[g],s.length1+=_.length,s.length2+=_.length):_.length>=2*this.Patch_Margin&&a&&(this.patch_addContext_(s,u),o.push(s),s=new h.patch_obj,a=0,u=f,c=d);break}p!==1&&(c+=_.length),p!==-1&&(d+=_.length)}return a&&(this.patch_addContext_(s,u),o.push(s)),o};h.prototype.patch_deepCopy=function(e){let t=[];for(let i=0;i<e.length;i++){let r=e[i],l=new h.patch_obj;l.diffs=[];for(let o=0;o<r.diffs.length;o++)l.diffs[o]=new h.Diff(r.diffs[o][0],r.diffs[o][1]);l.start1=r.start1,l.start2=r.start2,l.length1=r.length1,l.length2=r.length2,t[i]=l}return t};h.prototype.patch_apply=function(e,t){if(e.length==0)return[t,[]];e=this.patch_deepCopy(e);let i=this.patch_addPadding(e);t=i+t+i,this.patch_splitMax(e);let r=0,l=[];for(let o=0;o<e.length;o++){let s=e[o].start2+r,a=this.diff_text1(e[o].diffs),c,d=-1;if(a.length>this.Match_MaxBits?(c=this.match_main(t,a.substring(0,this.Match_MaxBits),s),c!=-1&&(d=this.match_main(t,a.substring(a.length-this.Match_MaxBits),s+a.length-this.Match_MaxBits),(d==-1||c>=d)&&(c=-1))):c=this.match_main(t,a,s),c==-1)l[o]=!1,r-=e[o].length2-e[o].length1;else{l[o]=!0,r=c-s;let u;if(d==-1?u=t.substring(c,c+a.length):u=t.substring(c,d+this.Match_MaxBits),a==u)t=t.substring(0,c)+this.diff_text2(e[o].diffs)+t.substring(c+a.length);else{let f=this.diff_main(a,u,!1);if(a.length>this.Match_MaxBits&&this.diff_levenshtein(f)/a.length>this.Patch_DeleteThreshold)l[o]=!1;else{this.diff_cleanupSemanticLossless(f);let g=0,p;for(let _=0;_<e[o].diffs.length;_++){let w=e[o].diffs[_];w[0]!==0&&(p=this.diff_xIndex(f,g)),w[0]===1?t=t.substring(0,c+p)+w[1]+t.substring(c+p):w[0]===-1&&(t=t.substring(0,c+p)+t.substring(c+this.diff_xIndex(f,g+w[1].length))),w[0]!==-1&&(g+=w[1].length)}}}}}return t=t.substring(i.length,t.length-i.length),[t,l]};h.prototype.patch_addPadding=function(e){let t=this.Patch_Margin,i="";for(let o=1;o<=t;o++)i+=String.fromCharCode(o);for(let o=0;o<e.length;o++)e[o].start1+=t,e[o].start2+=t;let r=e[0],l=r.diffs;if(l.length==0||l[0][0]!=0)l.unshift(new h.Diff(0,i)),r.start1-=t,r.start2-=t,r.length1+=t,r.length2+=t;else if(t>l[0][1].length){let o=t-l[0][1].length;l[0][1]=i.substring(l[0][1].length)+l[0][1],r.start1-=o,r.start2-=o,r.length1+=o,r.length2+=o}if(r=e[e.length-1],l=r.diffs,l.length==0||l[l.length-1][0]!=0)l.push(new h.Diff(0,i)),r.length1+=t,r.length2+=t;else if(t>l[l.length-1][1].length){let o=t-l[l.length-1][1].length;l[l.length-1][1]+=i.substring(0,o),r.length1+=o,r.length2+=o}return i};h.prototype.patch_splitMax=function(e){let t=this.Match_MaxBits;for(let i=0;i<e.length;i++){if(e[i].length1<=t)continue;let r=e[i];e.splice(i--,1);let l=r.start1,o=r.start2,s="";for(;r.diffs.length!==0;){let a=new h.patch_obj,c=!0;for(a.start1=l-s.length,a.start2=o-s.length,s!==""&&(a.length1=a.length2=s.length,a.diffs.push(new h.Diff(0,s)));r.diffs.length!==0&&a.length1<t-this.Patch_Margin;){let u=r.diffs[0][0],f=r.diffs[0][1];u===1?(a.length2+=f.length,o+=f.length,a.diffs.push(r.diffs.shift()),c=!1):u===-1&&a.diffs.length==1&&a.diffs[0][0]==0&&f.length>2*t?(a.length1+=f.length,l+=f.length,c=!1,a.diffs.push(new h.Diff(u,f)),r.diffs.shift()):(f=f.substring(0,t-a.length1-this.Patch_Margin),a.length1+=f.length,l+=f.length,u===0?(a.length2+=f.length,o+=f.length):c=!1,a.diffs.push(new h.Diff(u,f)),f==r.diffs[0][1]?r.diffs.shift():r.diffs[0][1]=r.diffs[0][1].substring(f.length))}s=this.diff_text2(a.diffs),s=s.substring(s.length-this.Patch_Margin);let d=this.diff_text1(r.diffs).substring(0,this.Patch_Margin);d!==""&&(a.length1+=d.length,a.length2+=d.length,a.diffs.length!==0&&a.diffs[a.diffs.length-1][0]===0?a.diffs[a.diffs.length-1][1]+=d:a.diffs.push(new h.Diff(0,d))),c||e.splice(++i,0,a)}}};h.prototype.patch_toText=function(e){let t=[];for(let i=0;i<e.length;i++)t[i]=e[i];return t.join("")};h.prototype.patch_fromText=function(e){let t=[];if(!e)return t;let i=e.split(`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ae=require("../index-BX05anye.cjs"),n=require("vue"),I=require("../CustomIcon-Bop2mEnu.cjs"),E=require("../WidgetComponents-utpQ592X.cjs"),T=require("../TopBar-Cnmb6DyC.cjs");require("single-spa");const ce={props:{modelValue:Boolean},data(){return{url:"",type:null,response:null,activeDownload:!1,disableSearch:!1,expanded:[]}},computed:{show:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}},listData:function(){return this.response?this.type==="github"?this.parseGithub():this.parseRuby():[]}},methods:{parseGithub:function(){const e=/\w+.gem/;return this.response.tree.filter(t=>e.exec(t.path)).map(t=>({name:t.path,url:`https://raw.github.com/OpenC3/openc3-tools/main/${t.path}`}))},getResponse:function(){this.disableSearch=!0,ae.axios.get(this.url).then(e=>{this.response=e.data}),setTimeout(()=>{this.disableSearch=!1},1e4)},searchGithub:function(){this.type="github",this.url="https://api.github.com/repos/OpenC3/openc3-tools/git/trees/main?recursive=1",this.getResponse()},downloadGem:function(e){const t=document.createElement("a");t.href=e.url,t.setAttribute("download",e.name),t.click(),t.remove()}}},de={class:"pa-3"},fe={class:"px-2"},he={key:0,class:"mt-4"},ue={key:1,class:"mt-4"},ge={key:0},pe={key:1};function me(e,t,i,r,l,o){const s=n.resolveComponent("v-spacer"),a=n.resolveComponent("v-toolbar"),c=n.resolveComponent("v-row"),d=n.resolveComponent("v-icon"),u=n.resolveComponent("v-btn"),f=n.resolveComponent("v-col"),g=n.resolveComponent("v-list-item-title"),p=n.resolveComponent("v-progress-circular"),_=n.resolveComponent("v-tooltip"),x=n.resolveComponent("v-list-item"),b=n.resolveComponent("v-divider"),m=n.resolveComponent("v-card-text"),v=n.resolveComponent("v-card"),C=n.resolveComponent("v-dialog");return n.openBlock(),n.createBlock(C,{modelValue:o.show,"onUpdate:modelValue":t[0]||(t[0]=w=>o.show=w),width:"600"},{default:n.withCtx(()=>[n.createVNode(v,null,{default:n.withCtx(()=>[n.createVNode(a,{height:"24"},{default:n.withCtx(()=>[n.createVNode(s),t[1]||(t[1]=n.createElementVNode("span",null," Download Gems ",-1)),n.createVNode(s)]),_:1}),n.createVNode(m,null,{default:n.withCtx(()=>[n.createElementVNode("div",de,[n.createVNode(c,{class:"my-2"},{default:n.withCtx(()=>t[2]||(t[2]=[n.createTextVNode(" Select a download option ")])),_:1}),n.createVNode(c,null,{default:n.withCtx(()=>[n.createVNode(f,null,{default:n.withCtx(()=>[n.createElementVNode("div",fe,[n.createVNode(u,{onClick:o.searchGithub,block:"","data-test":"searchGithub",color:"primary",disabled:l.disableSearch},{default:n.withCtx(()=>[t[4]||(t[4]=n.createTextVNode(" Github ")),n.createVNode(d,{end:"",theme:"dark"},{default:n.withCtx(()=>t[3]||(t[3]=[n.createTextVNode(" mdi-github ")])),_:1})]),_:1},8,["onClick","disabled"])])]),_:1})]),_:1}),n.createVNode(c,{class:"mt-5"},{default:n.withCtx(()=>t[5]||(t[5]=[n.createTextVNode(" Community Gems ")])),_:1}),o.listData.length<1?(n.openBlock(),n.createElementBlock("div",he,[n.createVNode(c,{class:"mx-2"},{default:n.withCtx(()=>t[6]||(t[6]=[n.createElementVNode("span",null," I’m sorry, Dave. No gems available.... ",-1)])),_:1})])):(n.openBlock(),n.createElementBlock("div",ue,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.listData,(w,V)=>(n.openBlock(),n.createElementBlock("div",{key:V},[n.createVNode(x,null,{default:n.withCtx(()=>[n.createVNode(g,null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(w.name),1)]),_:2},1024),n.createVNode(x,{icon:""},{default:n.withCtx(()=>[l.activeDownload?(n.openBlock(),n.createElementBlock("div",ge,[n.createVNode(p,{indeterminate:"",color:"primary"})])):(n.openBlock(),n.createElementBlock("div",pe,[n.createVNode(_,{location:"top"},{activator:n.withCtx(({props:k})=>[n.createVNode(d,n.mergeProps({ref_for:!0},k,{onClick:S=>o.downloadGem(w),disabled:l.activeDownload}),{default:n.withCtx(()=>t[7]||(t[7]=[n.createTextVNode(" mdi-cloud-download ")])),_:2},1040,["onClick","disabled"])]),default:n.withCtx(()=>[t[8]||(t[8]=n.createElementVNode("span",null,"Download Gem",-1))]),_:2},1024)]))]),_:2},1024)]),_:2},1024),V<o.listData.length-1?(n.openBlock(),n.createBlock(b,{key:V})):n.createCommentVNode("",!0)]))),128))]))])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const _e=I._export_sfc(ce,[["render",me]]),be={props:{content:{type:String,required:!0},type:String,name:String,modelValue:Boolean,readonly:Boolean},data(){return{editor:null,contextMenu:!1,menuX:0,menuY:0}},mounted(){const e=this.buildPluginMode();this.editor=E.aceExports.edit(this.$refs.editor),this.editor.setTheme("ace/theme/twilight"),this.editor.session.setMode(new e),this.editor.session.setTabSize(2),this.editor.session.setUseWrapMode(!0),this.editor.$blockScrolling=1/0,this.editor.setHighlightActiveLine(!1),this.editor.setValue(this.content),this.editor.clearSelection(),T.AceEditorUtils.applyVimModeIfEnabled(this.editor),this.editor.focus(),this.readonly&&this.editor.setReadOnly(!0)},beforeUnmount(){this.editor&&this.editor.destroy()},computed:{show:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}},title:function(){return`${this.type}: ${this.name}`},error:function(){return this.editor&&this.editor.getValue()===""&&!this.file?"Input can not be blank.":null}},methods:{submit:function(){this.$emit("submit",this.editor.getValue()),this.show=!this.show},close:function(){this.show=!this.show},download:function(){const e=new Blob([this.editor.getValue()],{type:"text/plain"}),t=document.createElement("a");t.href=URL.createObjectURL(e),t.setAttribute("download",`${this.type.toLowerCase()}_${this.name.toLowerCase()}.json`),t.click()},buildPluginMode(){let e=E.aceExports.require("ace/lib/oop"),t=E.aceExports.require("ace/mode/json_highlight_rules").JsonHighlightRules,i=E.aceExports.require("ace/mode/matching_brace_outdent").MatchingBraceOutdent,r=E.aceExports.require("ace/mode/behaviour/cstyle").CstyleBehaviour,l=E.aceExports.require("ace/mode/folding/ruby").FoldMode,o=function(){this.HighlightRules=t,this.$outdent=new i,this.$behaviour=new r,this.foldingRules=new l,this.indentKeywords=this.foldingRules.indentKeywords},s=E.aceExports.require("ace/mode/ruby").Mode;return e.inherits(o,s),(function(){this.$id="ace/mode/openc3"}).call(o.prototype),o},showContextMenu:function(e){this.menuX=e.pageX,this.menuY=e.pageY;let t=this.editor.getCursorPosition(),i=this.editor.session.getTokenAt(t.row,t.column);if(i){let r=i.value.trim();r.includes(" ")?this.docsKeyword=r.split(" ")[0]:this.docsKeyword=r,this.contextMenu=!0}},toggleVimMode:function(){T.AceEditorUtils.toggleVimMode(this.editor)}}},we=["textContent"],Ce={class:"mx-2"},xe={class:"pa-3"},ve={key:0},ye=["textContent"];function Ve(e,t,i,r,l,o){const s=n.resolveComponent("v-spacer"),a=n.resolveComponent("v-icon"),c=n.resolveComponent("v-tooltip"),d=n.resolveComponent("v-toolbar"),u=n.resolveComponent("v-row"),f=n.resolveComponent("v-btn"),g=n.resolveComponent("v-col"),p=n.resolveComponent("v-file-input"),_=n.resolveComponent("v-list-item"),x=n.resolveComponent("v-list"),b=n.resolveComponent("v-menu"),m=n.resolveComponent("v-card-text"),v=n.resolveComponent("v-card"),C=n.resolveComponent("v-dialog");return n.openBlock(),n.createBlock(C,{persistent:!i.readonly,modelValue:o.show,"onUpdate:modelValue":t[4]||(t[4]=w=>o.show=w),width:"80vw"},{default:n.withCtx(()=>[n.createVNode(v,null,{default:n.withCtx(()=>[n.createElementVNode("form",{onSubmit:t[3]||(t[3]=n.withModifiers((...w)=>o.submit&&o.submit(...w),["prevent"]))},[n.createVNode(d,{height:"24"},{default:n.withCtx(()=>[n.createVNode(s),n.createElementVNode("span",{textContent:n.toDisplayString(o.title)},null,8,we),n.createVNode(s),n.createElementVNode("div",Ce,[n.createVNode(c,{location:"top"},{activator:n.withCtx(({props:w})=>[n.createElementVNode("div",n.normalizeProps(n.guardReactiveProps(w)),[n.createVNode(a,{"data-test":"downloadIcon",onClick:o.download},{default:n.withCtx(()=>t[5]||(t[5]=[n.createTextVNode(" mdi-download ")])),_:1},8,["onClick"])],16)]),default:n.withCtx(()=>[t[6]||(t[6]=n.createElementVNode("span",null," Download ",-1))]),_:1})])]),_:1}),n.createVNode(m,null,{default:n.withCtx(()=>[n.createElementVNode("div",xe,[i.readonly?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",ve,[n.createVNode(u,{class:"mt-3"},{default:n.withCtx(()=>t[7]||(t[7]=[n.createTextVNode(" Upload a file. ")])),_:1}),n.createVNode(u,{"no-gutters":"",align:"center"},{default:n.withCtx(()=>[n.createVNode(g,{cols:"3"},{default:n.withCtx(()=>[n.createVNode(f,{block:"",color:"success",onClick:e.loadFile,disabled:!e.file||e.loadingFile||i.readonly,loading:e.loadingFile,"data-test":"editScreenLoadBtn"},{loader:n.withCtx(()=>t[8]||(t[8]=[n.createElementVNode("span",null,"Loading...",-1)])),default:n.withCtx(()=>[t[9]||(t[9]=n.createTextVNode(" Load "))]),_:1},8,["onClick","disabled","loading"])]),_:1}),n.createVNode(g,{cols:"9"},{default:n.withCtx(()=>[n.createVNode(p,{modelValue:e.file,"onUpdate:modelValue":t[0]||(t[0]=w=>e.file=w),accept:".json",label:"Click to select .json file.",disabled:i.readonly},null,8,["modelValue","disabled"])]),_:1})]),_:1})])),n.createVNode(u,{"no-gutters":""},{default:n.withCtx(()=>[n.createElementVNode("pre",{class:"editor",ref:"editor",onContextmenu:t[1]||(t[1]=n.withModifiers((...w)=>o.showContextMenu&&o.showContextMenu(...w),["prevent"]))},null,544),n.createVNode(b,{modelValue:l.contextMenu,"onUpdate:modelValue":t[2]||(t[2]=w=>l.contextMenu=w),target:[l.menuX,l.menuY]},{default:n.withCtx(()=>[n.createVNode(x,null,{default:n.withCtx(()=>[n.createVNode(_,{title:"Toggle Vim mode","prepend-icon":"extras:vim",onClick:o.toggleVimMode},null,8,["onClick"])]),_:1})]),_:1},8,["modelValue","target"])]),_:1}),n.createVNode(u,{class:"my-3"},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("span",{class:"text-red",textContent:n.toDisplayString(o.error)},null,8,ye),[[n.vShow,o.error]])]),_:1}),n.createVNode(u,null,{default:n.withCtx(()=>[n.createVNode(s),n.createVNode(f,{onClick:n.withModifiers(o.close,["prevent"]),variant:"outlined",class:"mx-2","data-test":"editCancelBtn"},{default:n.withCtx(()=>t[10]||(t[10]=[n.createTextVNode(" Cancel ")])),_:1},8,["onClick"]),i.readonly?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(f,{key:0,class:"mx-2",color:"primary",type:"submit","data-test":"editSubmitBtn",disabled:!!o.error||i.readonly},{default:n.withCtx(()=>t[11]||(t[11]=[n.createTextVNode(" Save ")])),_:1},8,["disabled"]))]),_:1})])]),_:1})],32)]),_:1})]),_:1},8,["persistent","modelValue"])}const Ee=I._export_sfc(be,[["render",Ve],["__scopeId","data-v-4b6b190e"]]),ke={props:{modelValue:Boolean,plugin:String,targets:Array,pluginDelete:Boolean},data(){return{modifiedTargets:[],deleteModified:!1}},computed:{show:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}},created(){for(const e of this.targets)E.oi.get(`/openc3-api/targets/${e.name}/modified_files`).then(t=>{t.data.length!==0&&this.modifiedTargets.push({name:e.name,files:t.data})})}};function Ne(e,t,i,r,l,o){const s=n.resolveComponent("v-spacer"),a=n.resolveComponent("v-toolbar"),c=n.resolveComponent("v-list-item-title"),d=n.resolveComponent("v-list-item-subtitle"),u=n.resolveComponent("v-list-item"),f=n.resolveComponent("v-checkbox"),g=n.resolveComponent("v-card-text"),p=n.resolveComponent("v-btn"),_=n.resolveComponent("v-card-actions"),x=n.resolveComponent("v-card"),b=n.resolveComponent("v-dialog");return n.openBlock(),n.createBlock(b,{modelValue:o.show,"onUpdate:modelValue":t[3]||(t[3]=m=>o.show=m),width:"600"},{default:n.withCtx(()=>[n.createVNode(x,null,{default:n.withCtx(()=>[n.createVNode(a,{height:"24"},{default:n.withCtx(()=>[n.createVNode(s),t[4]||(t[4]=n.createElementVNode("span",null," Modified Plugin ",-1)),n.createVNode(s)]),_:1}),n.createVNode(g,{class:"pa-3"},{default:n.withCtx(()=>[n.createElementVNode("div",null," Plugin "+n.toDisplayString(i.plugin)+" was modified. Would you like to delete the existing modified files? ",1),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(l.modifiedTargets,(m,v)=>(n.openBlock(),n.createBlock(u,{lines:"two",key:v},{default:n.withCtx(()=>[n.createVNode(c,null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(m.name),1)]),_:2},1024),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(m.files,(C,w)=>(n.openBlock(),n.createBlock(d,{key:w},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(C),1)]),_:2},1024))),128))]),_:2},1024))),128)),n.createVNode(f,{modelValue:l.deleteModified,"onUpdate:modelValue":t[0]||(t[0]=m=>l.deleteModified=m),label:"DELETE MODIFIED! THIS CAN NOT BE UNDONE!!!",color:"error","data-test":"modified-plugin-delete-checkbox"},null,8,["modelValue"])]),_:1}),n.createVNode(_,{class:"px-2"},{default:n.withCtx(()=>[n.createVNode(s),n.createVNode(p,{variant:"outlined","data-test":"modified-plugin-cancel",onClick:t[1]||(t[1]=()=>{o.show=!1,e.$emit("cancel")})},{default:n.withCtx(()=>t[5]||(t[5]=[n.createTextVNode(" Cancel ")])),_:1}),n.createVNode(p,{variant:"flat","data-test":"modified-plugin-submit",onClick:t[2]||(t[2]=()=>{o.show=!1,e.$emit("submit",l.deleteModified)})},{default:n.withCtx(()=>t[6]||(t[6]=[n.createTextVNode(" Confirm ")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}const Se=I._export_sfc(ke,[["render",Ne]]),te=[{displayName:"Plugins",name:"PluginsTab",path:"plugins",component:()=>Promise.resolve().then(()=>require("../PluginsTab-CfpwWsqv.cjs"))},{displayName:"Targets",name:"TargetsTab",path:"targets",component:()=>Promise.resolve().then(()=>require("../TargetsTab-C-m26Eqq.cjs"))},{displayName:"Interfaces",name:"InterfacesTab",path:"interfaces",component:()=>Promise.resolve().then(()=>require("../InterfacesTab-Co1Kd6Fa.cjs"))},{displayName:"Routers",name:"RoutersTab",path:"routers",component:()=>Promise.resolve().then(()=>require("../RoutersTab-BBPlFi_z.cjs"))},{displayName:"Microservices",name:"MicroservicesTab",path:"microservices",component:()=>Promise.resolve().then(()=>require("../MicroservicesTab-B5n-mN8G.cjs"))},{displayName:"Packages",name:"PackagesTab",path:"packages",component:()=>Promise.resolve().then(()=>require("../PackagesTab-CvT2JyMA.cjs"))},{displayName:"Tools",name:"ToolsTab",path:"tools",component:()=>Promise.resolve().then(()=>require("../ToolsTab-RMTst_Sy.cjs"))},{displayName:"Redis",name:"RedisTab",path:"redis",component:()=>Promise.resolve().then(()=>require("../RedisTab-67UcKoPf.cjs"))},{displayName:"Secrets",name:"SecretsTab",path:"secrets",component:()=>Promise.resolve().then(()=>require("../SecretsTab-0IFqUxNJ.cjs"))},{displayName:"Settings",name:"SettingsTab",path:"settings",component:()=>Promise.resolve().then(()=>require("../SettingsTab-B1LvOLG2.cjs"))}],Te={components:{TopBar:T.TopBar},data(){return{title:"Administrator Console",curTab:null}},computed:{tabs:function(){return te.map(e=>({displayName:e.displayName,path:{name:e.name}}))}}};function Le(e,t,i,r,l,o){const s=n.resolveComponent("top-bar"),a=n.resolveComponent("v-tab"),c=n.resolveComponent("v-tabs"),d=n.resolveComponent("router-view"),u=n.resolveComponent("v-card");return n.openBlock(),n.createElementBlock("div",null,[n.createVNode(s,{title:l.title},null,8,["title"]),n.createVNode(u,null,{default:n.withCtx(()=>[n.createVNode(c,{modelValue:l.curTab,"onUpdate:modelValue":t[0]||(t[0]=f=>l.curTab=f),"fixed-tabs":""},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.tabs,(f,g)=>(n.openBlock(),n.createBlock(a,{key:g,to:f.path},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(f.displayName),1)]),_:2},1032,["to"]))),128))]),_:1},8,["modelValue"]),n.createVNode(d)]),_:1})])}const De=I._export_sfc(Te,[["render",Le]]),h=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32};h.Diff=function(e,t){this[0]=e,this[1]=t};h.Diff.prototype.length=2;h.Diff.prototype.toString=function(){return this[0]+","+this[1]};h.prototype.diff_main=function(e,t,i,r){typeof r>"u"&&(this.Diff_Timeout<=0?r=Number.MAX_VALUE:r=new Date().getTime()+this.Diff_Timeout*1e3);let l=r;if(e==null||t==null)throw new Error("Null input. (diff_main)");if(e==t)return e?[new h.Diff(0,e)]:[];typeof i>"u"&&(i=!0);let o=i,s=this.diff_commonPrefix(e,t),a=e.substring(0,s);e=e.substring(s),t=t.substring(s),s=this.diff_commonSuffix(e,t);let c=e.substring(e.length-s);e=e.substring(0,e.length-s),t=t.substring(0,t.length-s);let d=this.diff_compute_(e,t,o,l);return a&&d.unshift(new h.Diff(0,a)),c&&d.push(new h.Diff(0,c)),this.diff_cleanupMerge(d),d};h.prototype.diff_compute_=function(e,t,i,r){let l;if(!e)return[new h.Diff(1,t)];if(!t)return[new h.Diff(-1,e)];let o=e.length>t.length?e:t,s=e.length>t.length?t:e,a=o.indexOf(s);return a!=-1?(l=[new h.Diff(1,o.substring(0,a)),new h.Diff(0,s),new h.Diff(1,o.substring(a+s.length))],e.length>t.length&&(l[0][0]=l[2][0]=-1),l):s.length==1?[new h.Diff(-1,e),new h.Diff(1,t)]:i&&e.length>100&&t.length>100?this.diff_lineMode_(e,t,r):this.diff_bisect_(e,t,r)};h.prototype.diff_lineMode_=function(e,t,i){let r=this.diff_linesToChars_(e,t);e=r.chars1,t=r.chars2;let l=r.lineArray,o=this.diff_main(e,t,!1,i);this.diff_charsToLines_(o,l),this.diff_cleanupSemantic(o),o.push(new h.Diff(0,""));let s=0,a=0,c=0,d="",u="";for(;s<o.length;){switch(o[s][0]){case 1:c++,u+=o[s][1];break;case-1:a++,d+=o[s][1];break;case 0:if(a>=1&&c>=1){o.splice(s-a-c,a+c),s=s-a-c;let f=this.diff_main(d,u,!1,i);for(let g=f.length-1;g>=0;g--)o.splice(s,0,f[g]);s=s+f.length}c=0,a=0,d="",u="";break}s++}return o.pop(),o};h.prototype.diff_bisect_=function(e,t,i){let r=e.length,l=t.length,o=Math.ceil((r+l)/2),s=o,a=2*o,c=new Array(a),d=new Array(a);for(let b=0;b<a;b++)c[b]=-1,d[b]=-1;c[s+1]=0,d[s+1]=0;let u=r-l,f=u%2!=0,g=0,p=0,_=0,x=0;for(let b=0;b<o&&!(new Date().getTime()>i);b++){for(let m=-b+g;m<=b-p;m+=2){let v=s+m,C;m==-b||m!=b&&c[v-1]<c[v+1]?C=c[v+1]:C=c[v-1]+1;let w=C-m;for(;C<r&&w<l&&e.charAt(C)==t.charAt(w);)C++,w++;if(c[v]=C,C>r)p+=2;else if(w>l)g+=2;else if(f){let V=s+u-m;if(V>=0&&V<a&&d[V]!=-1){let k=r-d[V];if(C>=k)return this.diff_bisectSplit_(e,t,C,w,i)}}}for(let m=-b+_;m<=b-x;m+=2){let v=s+m,C;m==-b||m!=b&&d[v-1]<d[v+1]?C=d[v+1]:C=d[v-1]+1;let w=C-m;for(;C<r&&w<l&&e.charAt(r-C-1)==t.charAt(l-w-1);)C++,w++;if(d[v]=C,C>r)x+=2;else if(w>l)_+=2;else if(!f){let V=s+u-m;if(V>=0&&V<a&&c[V]!=-1){let k=c[V],S=s+k-V;if(C=r-C,k>=C)return this.diff_bisectSplit_(e,t,k,S,i)}}}}return[new h.Diff(-1,e),new h.Diff(1,t)]};h.prototype.diff_bisectSplit_=function(e,t,i,r,l){let o=e.substring(0,i),s=t.substring(0,r),a=e.substring(i),c=t.substring(r),d=this.diff_main(o,s,!1,l),u=this.diff_main(a,c,!1,l);return d.concat(u)};h.prototype.diff_linesToChars_=function(e,t){let i=[],r={};i[0]="";function l(c){let d="",u=0,f=-1,g=i.length;for(;f<c.length-1;){f=c.indexOf(`
2
+ `,u),f==-1&&(f=c.length-1);let p=c.substring(u,f+1);(r.hasOwnProperty?r.hasOwnProperty(p):r[p]!==void 0)?d+=String.fromCharCode(r[p]):(g==o&&(p=c.substring(u),f=c.length),d+=String.fromCharCode(g),r[p]=g,i[g++]=p),u=f+1}return d}let o=4e4,s=l(e);o=65535;let a=l(t);return{chars1:s,chars2:a,lineArray:i}};h.prototype.diff_charsToLines_=function(e,t){for(let i=0;i<e.length;i++){let r=e[i][1],l=[];for(let o=0;o<r.length;o++)l[o]=t[r.charCodeAt(o)];e[i][1]=l.join("")}};h.prototype.diff_commonPrefix=function(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;let i=0,r=Math.min(e.length,t.length),l=r,o=0;for(;i<l;)e.substring(o,l)==t.substring(o,l)?(i=l,o=i):r=l,l=Math.floor((r-i)/2+i);return l};h.prototype.diff_commonSuffix=function(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;let i=0,r=Math.min(e.length,t.length),l=r,o=0;for(;i<l;)e.substring(e.length-l,e.length-o)==t.substring(t.length-l,t.length-o)?(i=l,o=i):r=l,l=Math.floor((r-i)/2+i);return l};h.prototype.diff_commonOverlap_=function(e,t){let i=e.length,r=t.length;if(i==0||r==0)return 0;i>r?e=e.substring(i-r):i<r&&(t=t.substring(0,i));let l=Math.min(i,r);if(e==t)return l;let o=0,s=1;for(;;){let a=e.substring(l-s),c=t.indexOf(a);if(c==-1)return o;s+=c,(c==0||e.substring(l-s)==t.substring(0,s))&&(o=s,s++)}};h.prototype.diff_halfMatch_=function(e,t){if(this.Diff_Timeout<=0)return null;let i=e.length>t.length?e:t,r=e.length>t.length?t:e;if(i.length<4||r.length*2<i.length)return null;let l=this;function o(_,x,b){let m=_.substring(b,b+Math.floor(_.length/4)),v=-1,C="",w,V,k,S;for(;(v=x.indexOf(m,v+1))!=-1;){let L=l.diff_commonPrefix(_.substring(b),x.substring(v)),D=l.diff_commonSuffix(_.substring(0,b),x.substring(0,v));C.length<D+L&&(C=x.substring(v-D,v)+x.substring(v,v+L),w=_.substring(0,b-D),V=_.substring(b+L),k=x.substring(0,v-D),S=x.substring(v+L))}return C.length*2>=_.length?[w,V,k,S,C]:null}let s=o(i,r,Math.ceil(i.length/4)),a=o(i,r,Math.ceil(i.length/2)),c;if(!s&&!a)return null;a?s?c=s[4].length>a[4].length?s:a:c=a:c=s;let d,u,f,g;e.length>t.length?(d=c[0],u=c[1],f=c[2],g=c[3]):(f=c[0],g=c[1],d=c[2],u=c[3]);let p=c[4];return[d,u,f,g,p]};h.prototype.diff_cleanupSemantic=function(e){let t=!1,i=[],r=0,l=null,o=0,s=0,a=0,c=0,d=0;for(;o<e.length;)e[o][0]==0?(i[r++]=o,s=c,a=d,c=0,d=0,l=e[o][1]):(e[o][0]==1?c+=e[o][1].length:d+=e[o][1].length,l&&l.length<=Math.max(s,a)&&l.length<=Math.max(c,d)&&(e.splice(i[r-1],0,new h.Diff(-1,l)),e[i[r-1]+1][0]=1,r--,r--,o=r>0?i[r-1]:-1,s=0,a=0,c=0,d=0,l=null,t=!0)),o++;for(t&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),o=1;o<e.length;){if(e[o-1][0]==-1&&e[o][0]==1){let u=e[o-1][1],f=e[o][1],g=this.diff_commonOverlap_(u,f),p=this.diff_commonOverlap_(f,u);g>=p?(g>=u.length/2||g>=f.length/2)&&(e.splice(o,0,new h.Diff(0,f.substring(0,g))),e[o-1][1]=u.substring(0,u.length-g),e[o+1][1]=f.substring(g),o++):(p>=u.length/2||p>=f.length/2)&&(e.splice(o,0,new h.Diff(0,u.substring(0,p))),e[o-1][0]=1,e[o-1][1]=f.substring(0,f.length-p),e[o+1][0]=-1,e[o+1][1]=u.substring(p),o++),o++}o++}};h.prototype.diff_cleanupSemanticLossless=function(e){function t(r,l){if(!r||!l)return 6;let o=r.charAt(r.length-1),s=l.charAt(0),a=o.match(h.nonAlphaNumericRegex_),c=s.match(h.nonAlphaNumericRegex_),d=a&&o.match(h.whitespaceRegex_),u=c&&s.match(h.whitespaceRegex_),f=d&&o.match(h.linebreakRegex_),g=u&&s.match(h.linebreakRegex_),p=f&&r.match(h.blanklineEndRegex_),_=g&&l.match(h.blanklineStartRegex_);return p||_?5:f||g?4:a&&!d&&u?3:d||u?2:a||c?1:0}let i=1;for(;i<e.length-1;){if(e[i-1][0]==0&&e[i+1][0]==0){let r=e[i-1][1],l=e[i][1],o=e[i+1][1],s=this.diff_commonSuffix(r,l);if(s){r[r.length-s]===`
3
+ `&&(s-=1);let f=l.substring(l.length-s);r=r.substring(0,r.length-s),l=f+l.substring(0,l.length-s),o=f+o}let a=r,c=l,d=o,u=t(r,l)+t(l,o);for(;l.charAt(0)===o.charAt(0);){r+=l.charAt(0),l=l.substring(1)+o.charAt(0),o=o.substring(1);let f=t(r,l)+t(l,o);f>=u&&(u=f,a=r,c=l,d=o)}e[i-1][1]!=a&&(a?e[i-1][1]=a:(e.splice(i-1,1),i--),e[i][1]=c,d?e[i+1][1]=d:(e.splice(i+1,1),i--))}i++}};h.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/;h.whitespaceRegex_=/\s/;h.linebreakRegex_=/[\r\n]/;h.blanklineEndRegex_=/\n\r?\n$/;h.blanklineStartRegex_=/^\r?\n\r?\n/;h.prototype.diff_cleanupEfficiency=function(e){let t=!1,i=[],r=0,l=null,o=0,s=!1,a=!1,c=!1,d=!1;for(;o<e.length;)e[o][0]==0?(e[o][1].length<this.Diff_EditCost&&(c||d)?(i[r++]=o,s=c,a=d,l=e[o][1]):(r=0,l=null),c=d=!1):(e[o][0]==-1?d=!0:c=!0,l&&(s&&a&&c&&d||l.length<this.Diff_EditCost/2&&s+a+c+d==3)&&(e.splice(i[r-1],0,new h.Diff(-1,l)),e[i[r-1]+1][0]=1,r--,l=null,s&&a?(c=d=!0,r=0):(r--,o=r>0?i[r-1]:-1,c=d=!1),t=!0)),o++;t&&this.diff_cleanupMerge(e)};h.prototype.diff_cleanupMerge=function(e){e.push(new h.Diff(0,""));let t=0,i=0,r=0,l="",o="",s;for(;t<e.length;)switch(e[t][0]){case 1:r++,o+=e[t][1],t++;break;case-1:i++,l+=e[t][1],t++;break;case 0:i+r>1?(i!==0&&r!==0&&(s=this.diff_commonPrefix(o,l),s!==0&&(t-i-r>0&&e[t-i-r-1][0]==0?e[t-i-r-1][1]+=o.substring(0,s):(e.splice(0,0,new h.Diff(0,o.substring(0,s))),t++),o=o.substring(s),l=l.substring(s)),s=this.diff_commonSuffix(o,l),s!==0&&(e[t][1]=o.substring(o.length-s)+e[t][1],o=o.substring(0,o.length-s),l=l.substring(0,l.length-s))),t-=i+r,e.splice(t,i+r),l.length&&(e.splice(t,0,new h.Diff(-1,l)),t++),o.length&&(e.splice(t,0,new h.Diff(1,o)),t++),t++):t!==0&&e[t-1][0]==0?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,r=0,i=0,l="",o="";break}e[e.length-1][1]===""&&e.pop();let a=!1;for(t=1;t<e.length-1;)e[t-1][0]==0&&e[t+1][0]==0&&(e[t][1].substring(e[t][1].length-e[t-1][1].length)==e[t-1][1]?(e[t][1]=e[t-1][1]+e[t][1].substring(0,e[t][1].length-e[t-1][1].length),e[t+1][1]=e[t-1][1]+e[t+1][1],e.splice(t-1,1),a=!0):e[t][1].substring(0,e[t+1][1].length)==e[t+1][1]&&(e[t-1][1]+=e[t+1][1],e[t][1]=e[t][1].substring(e[t+1][1].length)+e[t+1][1],e.splice(t+1,1),a=!0)),t++;a&&this.diff_cleanupMerge(e)};h.prototype.diff_cleanupSplitSurrogates=function(e){let t;for(let i=0;i<e.length;i++){let r=e[i],l=r[1][0],o=r[1][r[1].length-1];if(r[1].length===0){e.splice(i--,1);continue}if(o&&this.isHighSurrogate(o)&&(t=o,r[1]=r[1].slice(0,-1)),t&&l&&this.isHighSurrogate(t)&&this.isLowSurrogate(l)&&(r[1]=t+r[1]),r[1].length===0){e.splice(i--,1);continue}}return e};h.prototype.isHighSurrogate=function(e){let t=e.charCodeAt(0);return t>=55296&&t<=56319};h.prototype.isLowSurrogate=function(e){let t=e.charCodeAt(0);return t>=56320&&t<=57343};h.prototype.digit16=function(e){switch(e){case"0":return 0;case"1":return 1;case"2":return 2;case"3":return 3;case"4":return 4;case"5":return 5;case"6":return 6;case"7":return 7;case"8":return 8;case"9":return 9;case"A":case"a":return 10;case"B":case"b":return 11;case"C":case"c":return 12;case"D":case"d":return 13;case"E":case"e":return 14;case"F":case"f":return 15;default:throw new Error("Invalid hex-code")}};h.prototype.decodeURI=function(e){try{return decodeURI(e)}catch{let t=0,i="";for(;t<e.length;){if(e[t]!=="%"){i+=e[t++];continue}let r=(this.digit16(e[t+1])<<4)+this.digit16(e[t+2]);if((r&128)===0){i+=String.fromCharCode(r),t+=3;continue}if(e[t+3]!=="%")throw new URIError("URI malformed");let l=(this.digit16(e[t+4])<<4)+this.digit16(e[t+5]);if((l&192)!==128)throw new URIError("URI malformed");if(l=l&63,(r&224)===192){i+=String.fromCharCode((r&31)<<6|l),t+=6;continue}if(e[t+6]!=="%")throw new URIError("URI malformed");let o=(this.digit16(e[t+7])<<4)+this.digit16(e[t+8]);if((o&192)!==128)throw new URIError("URI malformed");if(o=o&63,(r&240)===224){i+=String.fromCharCode((r&15)<<12|l<<6|o),t+=9;continue}if(e[t+9]!=="%")throw new URIError("URI malformed");let s=(this.digit16(e[t+10])<<4)+this.digit16(e[t+11]);if((s&192)!==128)throw new URIError("URI malformed");if(s=s&63,(r&248)===240){let a=(r&7)<<18|l<<12|o<<6|s;if(a>=65536&&a<=1114111){i+=String.fromCharCode((a&65535)>>>10&1023|55296),i+=String.fromCharCode(56320|a&65535&1023),t+=12;continue}}throw new URIError("URI malformed")}return i}};h.prototype.diff_xIndex=function(e,t){let i=0,r=0,l=0,o=0,s;for(s=0;s<e.length&&(e[s][0]!==1&&(i+=e[s][1].length),e[s][0]!==-1&&(r+=e[s][1].length),!(i>t));s++)l=i,o=r;return e.length!=s&&e[s][0]===-1?o:o+(t-l)};h.prototype.diff_prettyHtml=function(e){e=this.diff_cleanupSplitSurrogates(e);let t=[],i=/&/g,r=/</g,l=/>/g,o=/\n/g;for(let s=0;s<e.length;s++){let a=e[s][0],c=e[s][1].replace(i,"&amp;").replace(r,"&lt;").replace(l,"&gt;").replace(o,"&para;<br>");switch(a){case 1:t[s]='<ins style="background:#e6ffe6;">'+c+"</ins>";break;case-1:t[s]='<del style="background:#ffe6e6;">'+c+"</del>";break;case 0:t[s]="<span>"+c+"</span>";break}}return t.join("")};h.prototype.diff_text1=function(e){let t=[];for(let i=0;i<e.length;i++)e[i][0]!==1&&(t[i]=e[i][1]);return t.join("")};h.prototype.diff_text2=function(e){let t=[];for(let i=0;i<e.length;i++)e[i][0]!==-1&&(t[i]=e[i][1]);return t.join("")};h.prototype.diff_levenshtein=function(e){let t=0,i=0,r=0;for(let l=0;l<e.length;l++){let o=e[l][0],s=e[l][1];switch(o){case 1:i+=s.length;break;case-1:r+=s.length;break;case 0:t+=Math.max(i,r),i=0,r=0;break}}return t+=Math.max(i,r),t};h.prototype.diff_toDelta=function(e){e=this.diff_cleanupSplitSurrogates(e);let t=[];for(let i=0;i<e.length;i++)switch(e[i][0]){case 1:t[i]="+"+encodeURI(e[i][1]);break;case-1:t[i]="-"+e[i][1].length;break;case 0:t[i]="="+e[i][1].length;break}return t.join(" ").replace(/%20/g," ")};h.prototype.diff_fromDelta=function(e,t){let i=0,r="",l=[],o=0,s=0,a=t.split(/\t/g);for(let c=0;c<a.length;c++){let d=a[c].substring(1);switch(a[c].charAt(0)){case"+":try{l[o++]=new h.Diff(1,this.decodeURI(d))}catch{throw new Error("Illegal escape in diff_fromDelta: "+d)}break;case"-":case"=":if(i=parseInt(d,10),isNaN(i)||i<0)throw new Error("Invalid number in diff_fromDelta: "+d);r=e.substring(s,s+=i),a[c].charAt(0)=="="?l[o++]=new h.Diff(0,r):l[o++]=new h.Diff(-1,r);break;default:if(a[c])throw new Error("Invalid diff operation in diff_fromDelta: "+a[c])}}if(s!=e.length)throw new Error("Delta length ("+s+") does not equal source text length ("+e.length+").");return l};h.prototype.match_main=function(e,t,i){if(e==null||t==null||i==null)throw new Error("Null input. (match_main)");return i=Math.max(0,Math.min(i,e.length)),e==t?0:e.length?e.substring(i,i+t.length)==t?i:this.match_bitap_(e,t,i):-1};h.prototype.match_bitap_=function(e,t,i){if(t.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");let r=this.match_alphabet_(t),l=this;function o(p,_){let x=p/t.length,b=Math.abs(i-_);return l.Match_Distance?x+b/l.Match_Distance:b?1:x}let s=this.Match_Threshold,a=e.indexOf(t,i);a!=-1&&(s=Math.min(o(0,a),s),a=e.lastIndexOf(t,i+t.length),a!=-1&&(s=Math.min(o(0,a),s)));let c=1<<t.length-1;a=-1;let d,u,f=t.length+e.length,g;for(let p=0;p<t.length;p++){for(d=0,u=f;d<u;)o(p,i+u)<=s?d=u:f=u,u=Math.floor((f-d)/2+d);f=u;let _=Math.max(1,i-u+1),x=Math.min(i+u,e.length)+t.length,b=Array(x+2);b[x+1]=(1<<p)-1;for(let m=x;m>=_;m--){let v=r[e.charAt(m-1)];if(p===0?b[m]=(b[m+1]<<1|1)&v:b[m]=(b[m+1]<<1|1)&v|((g[m+1]|g[m])<<1|1)|g[m+1],b[m]&c){let C=o(p,m-1);if(C<=s)if(s=C,a=m-1,a>i)_=Math.max(1,2*i-a);else break}}if(o(p+1,i)>s)break;g=b}return a};h.prototype.match_alphabet_=function(e){let t={};for(let i=0;i<e.length;i++)t[e.charAt(i)]=0;for(let i=0;i<e.length;i++)t[e.charAt(i)]|=1<<e.length-i-1;return t};h.prototype.patch_addContext_=function(e,t){if(t.length==0)return;if(e.start2===null)throw Error("patch not initialized");let i=t.substring(e.start2,e.start2+e.length1),r=0;for(;t.indexOf(i)!=t.lastIndexOf(i)&&i.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)r+=this.Patch_Margin,i=t.substring(e.start2-r,e.start2+e.length1+r);r+=this.Patch_Margin,e.start2-r>0&&h.prototype.isLowSurrogate(t[e.start2-r])&&r++;let l=t.substring(e.start2-r,e.start2);l&&e.diffs.unshift(new h.Diff(0,l)),e.start2+e.length1+r<t.length&&h.prototype.isHighSurrogate(t[e.start2+e.length1+r])&&r++;let o=t.substring(e.start2+e.length1,e.start2+e.length1+r);o&&e.diffs.push(new h.Diff(0,o)),e.start1-=l.length,e.start2-=l.length,e.length1+=l.length+o.length,e.length2+=l.length+o.length};h.prototype.patch_make=function(e,t,i){let r,l;if(typeof e=="string"&&typeof t=="string"&&typeof i>"u")r=e,l=this.diff_main(r,t,!0),l.length>2&&(this.diff_cleanupSemantic(l),this.diff_cleanupEfficiency(l));else if(e&&typeof e=="object"&&typeof t>"u"&&typeof i>"u")l=e,r=this.diff_text1(l);else if(typeof e=="string"&&t&&typeof t=="object"&&typeof i>"u")r=e,l=t;else if(typeof e=="string"&&typeof t=="string"&&i&&typeof i=="object")r=e,l=i;else throw new Error("Unknown call format to patch_make.");if(l.length===0)return[];l=this.diff_cleanupSplitSurrogates(l);let o=[],s=new h.patch_obj,a=0,c=0,d=0,u=r,f=r;for(let g=0;g<l.length;g++){let p=l[g][0],_=l[g][1];switch(!a&&p!==0&&(s.start1=c,s.start2=d),p){case 1:s.diffs[a++]=l[g],s.length2+=_.length,f=f.substring(0,d)+_+f.substring(d);break;case-1:s.length1+=_.length,s.diffs[a++]=l[g],f=f.substring(0,d)+f.substring(d+_.length);break;case 0:_.length<=2*this.Patch_Margin&&a&&l.length!=g+1?(s.diffs[a++]=l[g],s.length1+=_.length,s.length2+=_.length):_.length>=2*this.Patch_Margin&&a&&(this.patch_addContext_(s,u),o.push(s),s=new h.patch_obj,a=0,u=f,c=d);break}p!==1&&(c+=_.length),p!==-1&&(d+=_.length)}return a&&(this.patch_addContext_(s,u),o.push(s)),o};h.prototype.patch_deepCopy=function(e){let t=[];for(let i=0;i<e.length;i++){let r=e[i],l=new h.patch_obj;l.diffs=[];for(let o=0;o<r.diffs.length;o++)l.diffs[o]=new h.Diff(r.diffs[o][0],r.diffs[o][1]);l.start1=r.start1,l.start2=r.start2,l.length1=r.length1,l.length2=r.length2,t[i]=l}return t};h.prototype.patch_apply=function(e,t){if(e.length==0)return[t,[]];e=this.patch_deepCopy(e);let i=this.patch_addPadding(e);t=i+t+i,this.patch_splitMax(e);let r=0,l=[];for(let o=0;o<e.length;o++){let s=e[o].start2+r,a=this.diff_text1(e[o].diffs),c,d=-1;if(a.length>this.Match_MaxBits?(c=this.match_main(t,a.substring(0,this.Match_MaxBits),s),c!=-1&&(d=this.match_main(t,a.substring(a.length-this.Match_MaxBits),s+a.length-this.Match_MaxBits),(d==-1||c>=d)&&(c=-1))):c=this.match_main(t,a,s),c==-1)l[o]=!1,r-=e[o].length2-e[o].length1;else{l[o]=!0,r=c-s;let u;if(d==-1?u=t.substring(c,c+a.length):u=t.substring(c,d+this.Match_MaxBits),a==u)t=t.substring(0,c)+this.diff_text2(e[o].diffs)+t.substring(c+a.length);else{let f=this.diff_main(a,u,!1);if(a.length>this.Match_MaxBits&&this.diff_levenshtein(f)/a.length>this.Patch_DeleteThreshold)l[o]=!1;else{this.diff_cleanupSemanticLossless(f);let g=0,p;for(let _=0;_<e[o].diffs.length;_++){let x=e[o].diffs[_];x[0]!==0&&(p=this.diff_xIndex(f,g)),x[0]===1?t=t.substring(0,c+p)+x[1]+t.substring(c+p):x[0]===-1&&(t=t.substring(0,c+p)+t.substring(c+this.diff_xIndex(f,g+x[1].length))),x[0]!==-1&&(g+=x[1].length)}}}}}return t=t.substring(i.length,t.length-i.length),[t,l]};h.prototype.patch_addPadding=function(e){let t=this.Patch_Margin,i="";for(let o=1;o<=t;o++)i+=String.fromCharCode(o);for(let o=0;o<e.length;o++)e[o].start1+=t,e[o].start2+=t;let r=e[0],l=r.diffs;if(l.length==0||l[0][0]!=0)l.unshift(new h.Diff(0,i)),r.start1-=t,r.start2-=t,r.length1+=t,r.length2+=t;else if(t>l[0][1].length){let o=t-l[0][1].length;l[0][1]=i.substring(l[0][1].length)+l[0][1],r.start1-=o,r.start2-=o,r.length1+=o,r.length2+=o}if(r=e[e.length-1],l=r.diffs,l.length==0||l[l.length-1][0]!=0)l.push(new h.Diff(0,i)),r.length1+=t,r.length2+=t;else if(t>l[l.length-1][1].length){let o=t-l[l.length-1][1].length;l[l.length-1][1]+=i.substring(0,o),r.length1+=o,r.length2+=o}return i};h.prototype.patch_splitMax=function(e){let t=this.Match_MaxBits;for(let i=0;i<e.length;i++){if(e[i].length1<=t)continue;let r=e[i];e.splice(i--,1);let l=r.start1,o=r.start2,s="";for(;r.diffs.length!==0;){let a=new h.patch_obj,c=!0;for(a.start1=l-s.length,a.start2=o-s.length,s!==""&&(a.length1=a.length2=s.length,a.diffs.push(new h.Diff(0,s)));r.diffs.length!==0&&a.length1<t-this.Patch_Margin;){let u=r.diffs[0][0],f=r.diffs[0][1];u===1?(a.length2+=f.length,o+=f.length,a.diffs.push(r.diffs.shift()),c=!1):u===-1&&a.diffs.length==1&&a.diffs[0][0]==0&&f.length>2*t?(a.length1+=f.length,l+=f.length,c=!1,a.diffs.push(new h.Diff(u,f)),r.diffs.shift()):(f=f.substring(0,t-a.length1-this.Patch_Margin),a.length1+=f.length,l+=f.length,u===0?(a.length2+=f.length,o+=f.length):c=!1,a.diffs.push(new h.Diff(u,f)),f==r.diffs[0][1]?r.diffs.shift():r.diffs[0][1]=r.diffs[0][1].substring(f.length))}s=this.diff_text2(a.diffs),s=s.substring(s.length-this.Patch_Margin);let d=this.diff_text1(r.diffs).substring(0,this.Patch_Margin);d!==""&&(a.length1+=d.length,a.length2+=d.length,a.diffs.length!==0&&a.diffs[a.diffs.length-1][0]===0?a.diffs[a.diffs.length-1][1]+=d:a.diffs.push(new h.Diff(0,d))),c||e.splice(++i,0,a)}}};h.prototype.patch_toText=function(e){let t=[];for(let i=0;i<e.length;i++)t[i]=e[i];return t.join("")};h.prototype.patch_fromText=function(e){let t=[];if(!e)return t;let i=e.split(`
4
4
  `),r=0,l=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;for(;r<i.length;){let o=i[r].match(l);if(!o)throw new Error("Invalid patch string: "+i[r]);let s=new h.patch_obj;for(t.push(s),s.start1=parseInt(o[1],10),o[2]===""?(s.start1--,s.length1=1):o[2]=="0"?s.length1=0:(s.start1--,s.length1=parseInt(o[2],10)),s.start2=parseInt(o[3],10),o[4]===""?(s.start2--,s.length2=1):o[4]=="0"?s.length2=0:(s.start2--,s.length2=parseInt(o[4],10)),r++;r<i.length;){let a=i[r].charAt(0),c="";try{c=decodeURI(i[r].substring(1))}catch{throw new Error("Illegal escape in patch_fromText: "+c)}if(a=="-")s.diffs.push(new h.Diff(-1,c));else if(a=="+")s.diffs.push(new h.Diff(1,c));else if(a==" ")s.diffs.push(new h.Diff(0,c));else{if(a=="@")break;if(a!=="")throw new Error('Invalid patch mode "'+a+'" in: '+c)}r++}}return t};h.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0};h.patch_obj.prototype.toString=function(){let e,t;this.length1===0?e=this.start1+",0":this.length1==1?e=this.start1+1:e=this.start1+1+","+this.length1,this.length2===0?t=this.start2+",0":this.length2==1?t=this.start2+1:t=this.start2+1+","+this.length2;let i=["@@ -"+e+" +"+t+` @@
5
5
  `],r;h.prototype.diff_cleanupSplitSurrogates(this.diffs);for(let l=0;l<this.diffs.length;l++){switch(this.diffs[l][0]){case 1:r="+";break;case-1:r="-";break;case 0:r=" ";break}i[l+1]=r+encodeURI(this.diffs[l][1])+`
6
- `}return i.join("").replace(/%20/g," ")};function M(e){return e&&typeof e=="object"&&!Array.isArray(e)&&e!==null}function A(e,t){return M(e)&&M(t)&&Object.keys(t).forEach(i=>{i==="__proto__"||i==="constructor"||(M(t[i])?((!e[i]||!M(e[i]))&&(e[i]=t[i]),A(e[i],t[i])):Object.assign(e,{[i]:t[i]}))}),e}function P(e,t,i=!1){let r=null,l=!0;return(...o)=>{const s=i&&l,a=()=>{e.apply(this,o),r=null};s&&(l=!1,a()),r||(r=setTimeout(a,t))}}function Le(e,t){let i;return(...r)=>{const l=this;clearTimeout(i),i=setTimeout(()=>e.apply(l,r),t)}}function O(e=""){return e.replace(/\r\n/g,`
7
- `)}function F(e,t,i,r){const l=i-e,o=e+l/2;return`M ${e} ${t} C ${o},${t} ${o},${r} ${i},${r}`}const E={DIFF_EQUAL:0,DIFF_DELETE:-1,DIFF_INSERT:1,EDITOR_RIGHT:"right",EDITOR_LEFT:"left",RTL:"rtl",LTR:"ltr",SVG_NS:"http://www.w3.org/2000/svg",DIFF_GRANULARITY_SPECIFIC:"specific",DIFF_GRANULARITY_BROAD:"broad"};function U(e,t){let{mode:i}=e.options;return t===E.EDITOR_LEFT&&e.options.left.mode!==null&&(i=e.options.left.mode),t===E.EDITOR_RIGHT&&e.options.right.mode!==null&&(i=e.options.right.mode),i}function H(e,t){let{theme:i}=e.options;return t===E.EDITOR_LEFT&&e.options.left.theme!==null&&(i=e.options.left.theme),t===E.EDITOR_RIGHT&&e.options.right.theme!==null&&(i=e.options.right.theme),i}function Z(e,t){return e.ace.getSession().doc.getLine(t)}function De(e){return document.getElementById(e.options.left.id).offsetHeight}function $(e){const t=document.createElement("div"),i={class:e.className,style:`top:${e.topOffset}px`,title:e.tooltip,"data-diff-index":e.diffIndex};for(const r in i)t.setAttribute(r,i[r]);return t.innerHTML=e.arrowContent,t}function B(e,t){const i=Math.random().toString(36).substr(2,5),r=`js-${t}-${i}`,l=e.querySelector(`.${t}`);if(l)return l.id=l.id||r,l.id;const o=document.createElement("div");return e.appendChild(o),o.className=t,o.id=r,o.id}function q(e,t,i,r){const l=e==="document"?document:document.querySelector(e);l.addEventListener(t,o=>{const s=l.querySelectorAll(i),{target:a}=o;for(let c=0,d=s.length;c<d;c+=1){let u=a;const f=s[c];for(;u&&u!==l;)u===f&&r.call(f,o),u=u.parentNode}})}let I;function Me(e){if(e.Range)return e.Range;const t=e.acequire||e.require;return t?t("ace/range"):!1}function R(e={}){if(!(this instanceof R))return new R(e);const t=this,i=()=>window?window.ace:void 0;t.options=A({ace:i(),mode:null,theme:null,element:null,diffGranularity:E.DIFF_GRANULARITY_BROAD,lockScrolling:!1,showDiffs:!0,showConnectors:!0,maxDiffs:5e3,left:{id:null,content:null,mode:null,theme:null,editable:!0,copyLinkEnabled:!0},right:{id:null,content:null,mode:null,theme:null,editable:!0,copyLinkEnabled:!0},classes:{gutterID:"acediff__gutter",diff:"acediff__diffLine",connector:"acediff__connector",newCodeConnectorLink:"acediff__newCodeConnector",newCodeConnectorLinkContent:"&#8594;",deletedCodeConnectorLink:"acediff__deletedCodeConnector",deletedCodeConnectorLinkContent:"&#8592;",copyRightContainer:"acediff__copy--right",copyLeftContainer:"acediff__copy--left"},connectorYOffset:0},e);const{ace:r}=t.options;if(!r){const l="No ace editor found nor supplied - `options.ace` or `window.ace` is missing";return console.error(l),new Error(l)}if(I=Me(r),!I){const l="Could not require Range module for Ace. Depends on your bundling strategy, but it usually comes with Ace itself. See https://ace.c9.io/api/range.html, open an issue on GitHub ace-diff/ace-diff";return console.error(l),new Error(l)}if(t.options.element===null){const l="You need to specify an element for Ace-diff - `options.element` is missing";return console.error(l),new Error(l)}if(t.options.element instanceof HTMLElement?t.el=t.options.element:t.el=document.body.querySelector(t.options.element),!t.el){const l=`Can't find the specified element ${t.options.element}`;return console.error(l),new Error(l)}t.options.left.id=B(t.el,"acediff__left"),t.options.classes.gutterID=B(t.el,"acediff__gutter"),t.options.right.id=B(t.el,"acediff__right"),t.el.innerHTML=`<div class="acediff__wrap">${t.el.innerHTML}</div>`,t.editors={left:{ace:r.edit(t.options.left.id),markers:[],lineLengths:[]},right:{ace:r.edit(t.options.right.id),markers:[],lineLengths:[]},editorHeight:null},t.editors.left.ace.getSession().setMode(U(t,E.EDITOR_LEFT)),t.editors.right.ace.getSession().setMode(U(t,E.EDITOR_RIGHT)),t.editors.left.ace.setReadOnly(!t.options.left.editable),t.editors.right.ace.setReadOnly(!t.options.right.editable),t.editors.left.ace.setTheme(H(t,E.EDITOR_LEFT)),t.editors.right.ace.setTheme(H(t,E.EDITOR_RIGHT)),t.editors.left.ace.setValue(O(t.options.left.content),-1),t.editors.right.ace.setValue(O(t.options.right.content),-1),t.editors.editorHeight=De(t),setTimeout(()=>{t.lineHeight=t.editors.left.ace.renderer.lineHeight,Ie(t),Pe(t),ne(t),t.diff()},1)}R.prototype={setOptions(e){A(this.options,e),this.diff()},getNumDiffs(){return this.diffs.length},getEditors(){return{left:this.editors.left.ace,right:this.editors.right.ace}},diff(){const e=new h,t=this.editors.left.ace.getSession().getValue(),i=this.editors.right.ace.getSession().getValue(),r=e.diff_main(i,t);e.diff_cleanupSemantic(r),this.editors.left.lineLengths=j(this.editors.left),this.editors.right.lineLengths=j(this.editors.right);const l=[],o={left:0,right:0};r.forEach(s=>{const a=s[0];let c=s[1];c.length!==0&&(a===E.DIFF_EQUAL?(o.left+=c.length,o.right+=c.length):a===E.DIFF_DELETE?(l.push(W(this,E.DIFF_DELETE,o.left,o.right,c)),o.right+=c.length):a===E.DIFF_INSERT&&(l.push(W(this,E.DIFF_INSERT,o.left,o.right,c)),o.left+=c.length))},this),this.diffs=Ue(this,l),!(this.diffs.length>this.options.maxDiffs)&&(te(this),ie(this))},destroy(){const e=this.editors.left.ace.getValue();this.editors.left.ace.destroy();let t=this.editors.left.ace.container,i=t.cloneNode(!1);i.textContent=e,t.parentNode.replaceChild(i,t);const r=this.editors.right.ace.getValue();this.editors.right.ace.destroy(),t=this.editors.right.ace.container,i=t.cloneNode(!1),i.textContent=r,t.parentNode.replaceChild(i,t),document.getElementById(this.options.classes.gutterID).innerHTML="",ee()}};let ee=()=>{};function Ie(e){e.editors.left.ace.getSession().on("changeScrollTop",P(()=>{Y(e)},16)),e.editors.right.ace.getSession().on("changeScrollTop",P(()=>{Y(e)},16));const t=e.diff.bind(e);e.editors.left.ace.on("change",t),e.editors.right.ace.on("change",t),e.options.left.copyLinkEnabled&&q(`#${e.options.classes.gutterID}`,"click",`.${e.options.classes.newCodeConnectorLink}`,r=>{G(e,r,E.LTR)}),e.options.right.copyLinkEnabled&&q(`#${e.options.classes.gutterID}`,"click",`.${e.options.classes.deletedCodeConnectorLink}`,r=>{G(e,r,E.RTL)});const i=Le(()=>{e.editors.availableHeight=document.getElementById(e.options.left.id).offsetHeight,e.diff()},250);window.addEventListener("resize",i),ee=()=>{window.removeEventListener("resize",i)}}function G(e,t,i){const r=parseInt(t.target.getAttribute("data-diff-index"),10),l=e.diffs[r];let o,s,a,c,d,u;i===E.LTR?(o=e.editors.left,s=e.editors.right,a=l.leftStartLine,c=l.leftEndLine,d=l.rightStartLine,u=l.rightEndLine):(o=e.editors.right,s=e.editors.left,a=l.rightStartLine,c=l.rightEndLine,d=l.leftStartLine,u=l.leftEndLine);let f="";for(let p=a;p<c;p+=1)f+=Z(o,p),p===a&&f===""&&d!=0&&(f+=`
6
+ `}return i.join("").replace(/%20/g," ")};function B(e){return e&&typeof e=="object"&&!Array.isArray(e)&&e!==null}function U(e,t){return B(e)&&B(t)&&Object.keys(t).forEach(i=>{i==="__proto__"||i==="constructor"||(B(t[i])?((!e[i]||!B(e[i]))&&(e[i]=t[i]),U(e[i],t[i])):Object.assign(e,{[i]:t[i]}))}),e}function F(e,t,i=!1){let r=null,l=!0;return(...o)=>{const s=i&&l,a=()=>{e.apply(this,o),r=null};s&&(l=!1,a()),r||(r=setTimeout(a,t))}}function Me(e,t){let i;return(...r)=>{const l=this;clearTimeout(i),i=setTimeout(()=>e.apply(l,r),t)}}function H(e=""){return e.replace(/\r\n/g,`
7
+ `)}function q(e,t,i,r){const l=i-e,o=e+l/2;return`M ${e} ${t} C ${o},${t} ${o},${r} ${i},${r}`}const y={DIFF_EQUAL:0,DIFF_DELETE:-1,DIFF_INSERT:1,EDITOR_RIGHT:"right",EDITOR_LEFT:"left",RTL:"rtl",LTR:"ltr",SVG_NS:"http://www.w3.org/2000/svg",DIFF_GRANULARITY_SPECIFIC:"specific",DIFF_GRANULARITY_BROAD:"broad"};function G(e,t){let{mode:i}=e.options;return t===y.EDITOR_LEFT&&e.options.left.mode!==null&&(i=e.options.left.mode),t===y.EDITOR_RIGHT&&e.options.right.mode!==null&&(i=e.options.right.mode),i}function $(e,t){let{theme:i}=e.options;return t===y.EDITOR_LEFT&&e.options.left.theme!==null&&(i=e.options.left.theme),t===y.EDITOR_RIGHT&&e.options.right.theme!==null&&(i=e.options.right.theme),i}function ne(e,t){return e.ace.getSession().doc.getLine(t)}function Ie(e){return document.getElementById(e.options.left.id).offsetHeight}function j(e){const t=document.createElement("div"),i={class:e.className,style:`top:${e.topOffset}px`,title:e.tooltip,"data-diff-index":e.diffIndex};for(const r in i)t.setAttribute(r,i[r]);return t.innerHTML=e.arrowContent,t}function O(e,t){const i=Math.random().toString(36).substr(2,5),r=`js-${t}-${i}`,l=e.querySelector(`.${t}`);if(l)return l.id=l.id||r,l.id;const o=document.createElement("div");return e.appendChild(o),o.className=t,o.id=r,o.id}function Y(e,t,i,r){const l=e==="document"?document:document.querySelector(e);l.addEventListener(t,o=>{const s=l.querySelectorAll(i),{target:a}=o;for(let c=0,d=s.length;c<d;c+=1){let u=a;const f=s[c];for(;u&&u!==l;)u===f&&r.call(f,o),u=u.parentNode}})}let A;function Re(e){if(e.Range)return e.Range;const t=e.acequire||e.require;return t?t("ace/range"):!1}function P(e={}){if(!(this instanceof P))return new P(e);const t=this,i=()=>window?window.ace:void 0;t.options=U({ace:i(),mode:null,theme:null,element:null,diffGranularity:y.DIFF_GRANULARITY_BROAD,lockScrolling:!1,showDiffs:!0,showConnectors:!0,maxDiffs:5e3,left:{id:null,content:null,mode:null,theme:null,editable:!0,copyLinkEnabled:!0},right:{id:null,content:null,mode:null,theme:null,editable:!0,copyLinkEnabled:!0},classes:{gutterID:"acediff__gutter",diff:"acediff__diffLine",connector:"acediff__connector",newCodeConnectorLink:"acediff__newCodeConnector",newCodeConnectorLinkContent:"&#8594;",deletedCodeConnectorLink:"acediff__deletedCodeConnector",deletedCodeConnectorLinkContent:"&#8592;",copyRightContainer:"acediff__copy--right",copyLeftContainer:"acediff__copy--left"},connectorYOffset:0},e);const{ace:r}=t.options;if(!r){const l="No ace editor found nor supplied - `options.ace` or `window.ace` is missing";return console.error(l),new Error(l)}if(A=Re(r),!A){const l="Could not require Range module for Ace. Depends on your bundling strategy, but it usually comes with Ace itself. See https://ace.c9.io/api/range.html, open an issue on GitHub ace-diff/ace-diff";return console.error(l),new Error(l)}if(t.options.element===null){const l="You need to specify an element for Ace-diff - `options.element` is missing";return console.error(l),new Error(l)}if(t.options.element instanceof HTMLElement?t.el=t.options.element:t.el=document.body.querySelector(t.options.element),!t.el){const l=`Can't find the specified element ${t.options.element}`;return console.error(l),new Error(l)}t.options.left.id=O(t.el,"acediff__left"),t.options.classes.gutterID=O(t.el,"acediff__gutter"),t.options.right.id=O(t.el,"acediff__right"),t.el.innerHTML=`<div class="acediff__wrap">${t.el.innerHTML}</div>`,t.editors={left:{ace:r.edit(t.options.left.id),markers:[],lineLengths:[]},right:{ace:r.edit(t.options.right.id),markers:[],lineLengths:[]},editorHeight:null},t.editors.left.ace.getSession().setMode(G(t,y.EDITOR_LEFT)),t.editors.right.ace.getSession().setMode(G(t,y.EDITOR_RIGHT)),t.editors.left.ace.setReadOnly(!t.options.left.editable),t.editors.right.ace.setReadOnly(!t.options.right.editable),t.editors.left.ace.setTheme($(t,y.EDITOR_LEFT)),t.editors.right.ace.setTheme($(t,y.EDITOR_RIGHT)),t.editors.left.ace.setValue(H(t.options.left.content),-1),t.editors.right.ace.setValue(H(t.options.right.content),-1),t.editors.editorHeight=Ie(t),setTimeout(()=>{t.lineHeight=t.editors.left.ace.renderer.lineHeight,Be(t),Ue(t),re(t),t.diff()},1)}P.prototype={setOptions(e){U(this.options,e),this.diff()},getNumDiffs(){return this.diffs.length},getEditors(){return{left:this.editors.left.ace,right:this.editors.right.ace}},diff(){const e=new h,t=this.editors.left.ace.getSession().getValue(),i=this.editors.right.ace.getSession().getValue(),r=e.diff_main(i,t);e.diff_cleanupSemantic(r),this.editors.left.lineLengths=K(this.editors.left),this.editors.right.lineLengths=K(this.editors.right);const l=[],o={left:0,right:0};r.forEach(s=>{const a=s[0];let c=s[1];c.length!==0&&(a===y.DIFF_EQUAL?(o.left+=c.length,o.right+=c.length):a===y.DIFF_DELETE?(l.push(J(this,y.DIFF_DELETE,o.left,o.right,c)),o.right+=c.length):a===y.DIFF_INSERT&&(l.push(J(this,y.DIFF_INSERT,o.left,o.right,c)),o.left+=c.length))},this),this.diffs=qe(this,l),!(this.diffs.length>this.options.maxDiffs)&&(oe(this),le(this))},destroy(){const e=this.editors.left.ace.getValue();this.editors.left.ace.destroy();let t=this.editors.left.ace.container,i=t.cloneNode(!1);i.textContent=e,t.parentNode.replaceChild(i,t);const r=this.editors.right.ace.getValue();this.editors.right.ace.destroy(),t=this.editors.right.ace.container,i=t.cloneNode(!1),i.textContent=r,t.parentNode.replaceChild(i,t),document.getElementById(this.options.classes.gutterID).innerHTML="",ie()}};let ie=()=>{};function Be(e){e.editors.left.ace.getSession().on("changeScrollTop",F(()=>{X(e)},16)),e.editors.right.ace.getSession().on("changeScrollTop",F(()=>{X(e)},16));const t=e.diff.bind(e);e.editors.left.ace.on("change",t),e.editors.right.ace.on("change",t),e.options.left.copyLinkEnabled&&Y(`#${e.options.classes.gutterID}`,"click",`.${e.options.classes.newCodeConnectorLink}`,r=>{z(e,r,y.LTR)}),e.options.right.copyLinkEnabled&&Y(`#${e.options.classes.gutterID}`,"click",`.${e.options.classes.deletedCodeConnectorLink}`,r=>{z(e,r,y.RTL)});const i=Me(()=>{e.editors.availableHeight=document.getElementById(e.options.left.id).offsetHeight,e.diff()},250);window.addEventListener("resize",i),ie=()=>{window.removeEventListener("resize",i)}}function z(e,t,i){const r=parseInt(t.target.getAttribute("data-diff-index"),10),l=e.diffs[r];let o,s,a,c,d,u;i===y.LTR?(o=e.editors.left,s=e.editors.right,a=l.leftStartLine,c=l.leftEndLine,d=l.rightStartLine,u=l.rightEndLine):(o=e.editors.right,s=e.editors.left,a=l.rightStartLine,c=l.rightEndLine,d=l.leftStartLine,u=l.leftEndLine);let f="";for(let p=a;p<c;p+=1)f+=ne(o,p),p===a&&f===""&&d!=0&&(f+=`
8
8
  `),p<o.ace.getSession().getLength()-1&&(f+=`
9
- `);const g=s.ace.getSession().getScrollTop();s.ace.getSession().replace(new I(d,0,u,0),f),s.ace.getSession().setScrollTop(parseInt(g,10)),e.diff()}function j(e){const t=e.ace.getSession().doc.getAllLines(),i=[];return t.forEach(r=>{i.push(r.length+1)}),i}function z(e,t,i,r,l){const o=e.editors[t];r<i&&(r=i);const s=`${l} ${r>i?"lines":"targetOnly"}`;r>i&&(r-=1),o.markers.push(o.ace.session.addMarker(new I(i,0,r,1),s,"fullLine"))}function Y(e){te(e),ie(e),Ae(e)}function te(e){e.editors.left.markers.forEach(t=>{e.editors.left.ace.getSession().removeMarker(t)},e),e.editors.right.markers.forEach(t=>{e.editors.right.ace.getSession().removeMarker(t)},e)}function Re(e,t,i,r,l){const o=e.editors.left.ace.getSession().getScrollTop(),s=e.editors.right.ace.getSession().getScrollTop();e.connectorYOffset=1;const a=-1,c=t*e.lineHeight-o+.5,d=e.gutterWidth+1,u=r*e.lineHeight-s+.5,f=-1,g=i*e.lineHeight-o+e.connectorYOffset+.5,p=e.gutterWidth+1,_=l*e.lineHeight-s+e.connectorYOffset+.5,w=F(a,c,d,u),b=F(p,_,f,g),m=`L${d},${u} ${p},${_}`,x=`L${f},${g} ${a},${c}`,C=`${w} ${m} ${b} ${x}`,v=document.createElementNS(E.SVG_NS,"path");v.setAttribute("d",C),v.setAttribute("class",e.options.classes.connector),e.gutterSVG.appendChild(v)}function Be(e,t,i){if(t.leftEndLine>t.leftStartLine&&e.options.left.copyLinkEnabled){const r=$({className:e.options.classes.newCodeConnectorLink,topOffset:t.leftStartLine*e.lineHeight,tooltip:"Copy to right",diffIndex:i,arrowContent:e.options.classes.newCodeConnectorLinkContent});e.copyRightContainer.appendChild(r)}if(t.rightEndLine>t.rightStartLine&&e.options.right.copyLinkEnabled){const r=$({className:e.options.classes.deletedCodeConnectorLink,topOffset:t.rightStartLine*e.lineHeight,tooltip:"Copy to left",diffIndex:i,arrowContent:e.options.classes.deletedCodeConnectorLinkContent});e.copyLeftContainer.appendChild(r)}}function Ae(e){const t=e.editors.left.ace.getSession().getScrollTop(),i=e.editors.right.ace.getSession().getScrollTop();e.copyRightContainer.style.cssText=`top: ${-t}px`,e.copyLeftContainer.style.cssText=`top: ${-i}px`}function W(e,t,i,r,l){let o={};if(t===E.DIFF_INSERT){let s=J(e.editors.left,i,l),a=K(e.editors.right,r),c=S(e.editors.right,a);const d=S(e.editors.left,s.startLine);let u=a,f=s.startLine===s.endLine,g=0;(s.startChar>0||f&&l.length<d)&&c>0&&s.startChar<d&&g++,o={leftStartLine:s.startLine,leftEndLine:s.endLine+1,rightStartLine:u,rightEndLine:u+g}}else{let s=J(e.editors.right,r,l),a=K(e.editors.left,i),c=S(e.editors.left,a);const d=S(e.editors.right,s.startLine);let u=a,f=s.startLine===s.endLine,g=0;(s.startChar>0||f&&l.length<d)&&c>0&&s.startChar<d&&g++,o={leftStartLine:u,leftEndLine:u+g,rightStartLine:s.startLine,rightEndLine:s.endLine+1}}return o}function J(e,t,i){const r={startLine:0,startChar:0,endLine:0,endChar:0},l=t+i.length;let o=0,s=!1,a=!1;e.lineLengths.forEach((d,u)=>{o+=d,!s&&t<o&&(r.startLine=u,r.startChar=t-o+d,s=!0),!a&&l<=o&&(r.endLine=u,r.endChar=l-o+d,a=!0)}),r.startChar>0&&S(e,r.startLine)===r.startChar&&(r.startLine++,r.startChar=0),r.endChar===0&&r.endLine--;const c=/\n$/.test(i);return r.startChar>0&&c&&r.endLine++,r}function S(e,t){return Z(e,t).length}function K(e,t){const i=e.ace.getSession().doc.getAllLines();let r=0,l=0;for(let o=0;o<i.length;o+=1)if(l+=i[o].length+1,t<l){r=o;break}return l>e.ace.getSession().getValue().length&&(r+=1),r}function ne(e){e.gutterHeight=document.getElementById(e.options.classes.gutterID).clientHeight,e.gutterWidth=document.getElementById(e.options.classes.gutterID).clientWidth;const t=Q(e,E.EDITOR_LEFT),i=Q(e,E.EDITOR_RIGHT),r=Math.max(t,i,e.gutterHeight);e.gutterSVG=document.createElementNS(E.SVG_NS,"svg"),e.gutterSVG.setAttribute("width",e.gutterWidth),e.gutterSVG.setAttribute("height",r),document.getElementById(e.options.classes.gutterID).appendChild(e.gutterSVG)}function Q(e,t){return(t===E.EDITOR_LEFT?e.editors.left:e.editors.right).ace.getSession().getLength()*e.lineHeight}function Pe(e){e.copyRightContainer=document.createElement("div"),e.copyRightContainer.setAttribute("class",e.options.classes.copyRightContainer),e.copyLeftContainer=document.createElement("div"),e.copyLeftContainer.setAttribute("class",e.options.classes.copyLeftContainer),document.getElementById(e.options.classes.gutterID).appendChild(e.copyRightContainer),document.getElementById(e.options.classes.gutterID).appendChild(e.copyLeftContainer)}function Oe(e){document.getElementById(e.options.classes.gutterID).removeChild(e.gutterSVG),ne(e)}function Fe(e){e.copyLeftContainer.innerHTML="",e.copyRightContainer.innerHTML=""}function Ue(e,t){const i=[];function r(o){return e.options.diffGranularity===E.DIFF_GRANULARITY_SPECIFIC?o<1:o<=1}t.forEach((o,s)=>{if(s===0){i.push(o);return}let a=!1;for(let c=0;c<i.length;c+=1)if(r(Math.abs(o.leftStartLine-i[c].leftEndLine))&&r(Math.abs(o.rightStartLine-i[c].rightEndLine))){i[c].leftStartLine=Math.min(o.leftStartLine,i[c].leftStartLine),i[c].rightStartLine=Math.min(o.rightStartLine,i[c].rightStartLine),i[c].leftEndLine=Math.max(o.leftEndLine,i[c].leftEndLine),i[c].rightEndLine=Math.max(o.rightEndLine,i[c].rightEndLine),a=!0;break}a||i.push(o)});const l=[];return i.forEach(o=>{o.leftStartLine===o.leftEndLine&&o.rightStartLine===o.rightEndLine||l.push(o)}),l}function ie(e){Oe(e),Fe(e),e.diffs.forEach((t,i)=>{e.options.showDiffs&&(z(e,E.EDITOR_LEFT,t.leftStartLine,t.leftEndLine,e.options.classes.diff),z(e,E.EDITOR_RIGHT,t.rightStartLine,t.rightEndLine,e.options.classes.diff),e.options.showConnectors&&Re(e,t.leftStartLine,t.leftEndLine,t.rightStartLine,t.rightEndLine),Be(e,t,i))},e)}const He={props:{pluginName:{type:String,required:!0},variables:{type:Object,required:!0},pluginTxt:{type:String,required:!0},existingPluginTxt:{type:String,required:!1},modelValue:Boolean},data(){return{tab:0,localVariables:[],localPluginTxt:"",localExistingPluginTxt:null,editor:null,differ:null}},mounted(){const e=this.buildPluginMode();this.existingPluginTxt===null?(this.editor=k.aceExports.edit(this.$refs.editor),this.editor.setTheme("ace/theme/twilight"),this.editor.session.setMode(new e),this.editor.session.setTabSize(2),this.editor.session.setUseWrapMode(!0),this.editor.$blockScrolling=1/0,this.editor.setHighlightActiveLine(!1),this.editor.setValue(this.localPluginTxt),this.editor.clearSelection(),this.editor.focus()):(this.tab=1,this.differ=new R({element:this.$refs.editor,mode:new e,theme:"ace/theme/twilight",left:{content:this.localExistingPluginTxt,copyLinkEnabled:!1},right:{content:this.localPluginTxt,editable:!1}}),this.differ.getEditors().left.setFontSize(16),this.differ.getEditors().right.setFontSize(16),this.curDiff=-1)},beforeUnmount(){this.editor&&this.editor.destroy(),this.differ&&this.differ.destroy()},computed:{show:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}},watch:{value:{immediate:!0,handler:function(){this.localVariables=JSON.parse(JSON.stringify(this.variables)),this.localPluginTxt=this.pluginTxt.slice(),this.existingPluginTxt!==null&&(this.localExistingPluginTxt=this.existingPluginTxt.slice())}}},methods:{previousDiff(){this.curDiff--,this.curDiff<0&&(this.curDiff=this.differ.diffs.length-1),this.scrollToCurDiff()},nextDiff(){this.curDiff++,this.curDiff>=this.differ.diffs.length&&(this.curDiff=0),this.scrollToCurDiff()},scrollToCurDiff(){if(this.differ.diffs.length===0)return;let e=this.differ.diffs[this.curDiff].leftStartLine,t=this.differ.diffs[this.curDiff].rightStartLine;e>5&&(e-=5),t>5&&(t-=5),this.differ.getEditors().left.scrollToLine(e),this.differ.getEditors().right.scrollToLine(t)},buildPluginMode(){let e=k.aceExports.require("ace/lib/oop"),t=k.aceExports.require("ace/mode/ruby_highlight_rules").RubyHighlightRules,i=["VARIABLE"],r=new RegExp(`(\\b${i.join("\\b|\\b")}\\b)`),l=function(){t.call(this);for(let u in this.$rules)this.$rules[u].unshift({regex:r,token:"support.function"})};e.inherits(l,t);let o=k.aceExports.require("ace/mode/matching_brace_outdent").MatchingBraceOutdent,s=k.aceExports.require("ace/mode/behaviour/cstyle").CstyleBehaviour,a=k.aceExports.require("ace/mode/folding/ruby").FoldMode,c=function(){this.HighlightRules=l,this.$outdent=new o,this.$behaviour=new s,this.foldingRules=new a,this.indentKeywords=this.foldingRules.indentKeywords},d=k.aceExports.require("ace/mode/ruby").Mode;return e.inherits(c,d),(function(){this.$id="ace/mode/openc3"}).call(c.prototype),c},submit:function(){this.existingPluginTxt===null?this.emitSubmit(this.editor.getValue().split(`
9
+ `);const g=s.ace.getSession().getScrollTop();s.ace.getSession().replace(new A(d,0,u,0),f),s.ace.getSession().setScrollTop(parseInt(g,10)),e.diff()}function K(e){const t=e.ace.getSession().doc.getAllLines(),i=[];return t.forEach(r=>{i.push(r.length+1)}),i}function W(e,t,i,r,l){const o=e.editors[t];r<i&&(r=i);const s=`${l} ${r>i?"lines":"targetOnly"}`;r>i&&(r-=1),o.markers.push(o.ace.session.addMarker(new A(i,0,r,1),s,"fullLine"))}function X(e){oe(e),le(e),Oe(e)}function oe(e){e.editors.left.markers.forEach(t=>{e.editors.left.ace.getSession().removeMarker(t)},e),e.editors.right.markers.forEach(t=>{e.editors.right.ace.getSession().removeMarker(t)},e)}function Ae(e,t,i,r,l){const o=e.editors.left.ace.getSession().getScrollTop(),s=e.editors.right.ace.getSession().getScrollTop();e.connectorYOffset=1;const a=-1,c=t*e.lineHeight-o+.5,d=e.gutterWidth+1,u=r*e.lineHeight-s+.5,f=-1,g=i*e.lineHeight-o+e.connectorYOffset+.5,p=e.gutterWidth+1,_=l*e.lineHeight-s+e.connectorYOffset+.5,x=q(a,c,d,u),b=q(p,_,f,g),m=`L${d},${u} ${p},${_}`,v=`L${f},${g} ${a},${c}`,C=`${x} ${m} ${b} ${v}`,w=document.createElementNS(y.SVG_NS,"path");w.setAttribute("d",C),w.setAttribute("class",e.options.classes.connector),e.gutterSVG.appendChild(w)}function Pe(e,t,i){if(t.leftEndLine>t.leftStartLine&&e.options.left.copyLinkEnabled){const r=j({className:e.options.classes.newCodeConnectorLink,topOffset:t.leftStartLine*e.lineHeight,tooltip:"Copy to right",diffIndex:i,arrowContent:e.options.classes.newCodeConnectorLinkContent});e.copyRightContainer.appendChild(r)}if(t.rightEndLine>t.rightStartLine&&e.options.right.copyLinkEnabled){const r=j({className:e.options.classes.deletedCodeConnectorLink,topOffset:t.rightStartLine*e.lineHeight,tooltip:"Copy to left",diffIndex:i,arrowContent:e.options.classes.deletedCodeConnectorLinkContent});e.copyLeftContainer.appendChild(r)}}function Oe(e){const t=e.editors.left.ace.getSession().getScrollTop(),i=e.editors.right.ace.getSession().getScrollTop();e.copyRightContainer.style.cssText=`top: ${-t}px`,e.copyLeftContainer.style.cssText=`top: ${-i}px`}function J(e,t,i,r,l){let o={};if(t===y.DIFF_INSERT){let s=Q(e.editors.left,i,l),a=Z(e.editors.right,r),c=M(e.editors.right,a);const d=M(e.editors.left,s.startLine);let u=a,f=s.startLine===s.endLine,g=0;(s.startChar>0||f&&l.length<d)&&c>0&&s.startChar<d&&g++,o={leftStartLine:s.startLine,leftEndLine:s.endLine+1,rightStartLine:u,rightEndLine:u+g}}else{let s=Q(e.editors.right,r,l),a=Z(e.editors.left,i),c=M(e.editors.left,a);const d=M(e.editors.right,s.startLine);let u=a,f=s.startLine===s.endLine,g=0;(s.startChar>0||f&&l.length<d)&&c>0&&s.startChar<d&&g++,o={leftStartLine:u,leftEndLine:u+g,rightStartLine:s.startLine,rightEndLine:s.endLine+1}}return o}function Q(e,t,i){const r={startLine:0,startChar:0,endLine:0,endChar:0},l=t+i.length;let o=0,s=!1,a=!1;e.lineLengths.forEach((d,u)=>{o+=d,!s&&t<o&&(r.startLine=u,r.startChar=t-o+d,s=!0),!a&&l<=o&&(r.endLine=u,r.endChar=l-o+d,a=!0)}),r.startChar>0&&M(e,r.startLine)===r.startChar&&(r.startLine++,r.startChar=0),r.endChar===0&&r.endLine--;const c=/\n$/.test(i);return r.startChar>0&&c&&r.endLine++,r}function M(e,t){return ne(e,t).length}function Z(e,t){const i=e.ace.getSession().doc.getAllLines();let r=0,l=0;for(let o=0;o<i.length;o+=1)if(l+=i[o].length+1,t<l){r=o;break}return l>e.ace.getSession().getValue().length&&(r+=1),r}function re(e){e.gutterHeight=document.getElementById(e.options.classes.gutterID).clientHeight,e.gutterWidth=document.getElementById(e.options.classes.gutterID).clientWidth;const t=ee(e,y.EDITOR_LEFT),i=ee(e,y.EDITOR_RIGHT),r=Math.max(t,i,e.gutterHeight);e.gutterSVG=document.createElementNS(y.SVG_NS,"svg"),e.gutterSVG.setAttribute("width",e.gutterWidth),e.gutterSVG.setAttribute("height",r),document.getElementById(e.options.classes.gutterID).appendChild(e.gutterSVG)}function ee(e,t){return(t===y.EDITOR_LEFT?e.editors.left:e.editors.right).ace.getSession().getLength()*e.lineHeight}function Ue(e){e.copyRightContainer=document.createElement("div"),e.copyRightContainer.setAttribute("class",e.options.classes.copyRightContainer),e.copyLeftContainer=document.createElement("div"),e.copyLeftContainer.setAttribute("class",e.options.classes.copyLeftContainer),document.getElementById(e.options.classes.gutterID).appendChild(e.copyRightContainer),document.getElementById(e.options.classes.gutterID).appendChild(e.copyLeftContainer)}function Fe(e){document.getElementById(e.options.classes.gutterID).removeChild(e.gutterSVG),re(e)}function He(e){e.copyLeftContainer.innerHTML="",e.copyRightContainer.innerHTML=""}function qe(e,t){const i=[];function r(o){return e.options.diffGranularity===y.DIFF_GRANULARITY_SPECIFIC?o<1:o<=1}t.forEach((o,s)=>{if(s===0){i.push(o);return}let a=!1;for(let c=0;c<i.length;c+=1)if(r(Math.abs(o.leftStartLine-i[c].leftEndLine))&&r(Math.abs(o.rightStartLine-i[c].rightEndLine))){i[c].leftStartLine=Math.min(o.leftStartLine,i[c].leftStartLine),i[c].rightStartLine=Math.min(o.rightStartLine,i[c].rightStartLine),i[c].leftEndLine=Math.max(o.leftEndLine,i[c].leftEndLine),i[c].rightEndLine=Math.max(o.rightEndLine,i[c].rightEndLine),a=!0;break}a||i.push(o)});const l=[];return i.forEach(o=>{o.leftStartLine===o.leftEndLine&&o.rightStartLine===o.rightEndLine||l.push(o)}),l}function le(e){Fe(e),He(e),e.diffs.forEach((t,i)=>{e.options.showDiffs&&(W(e,y.EDITOR_LEFT,t.leftStartLine,t.leftEndLine,e.options.classes.diff),W(e,y.EDITOR_RIGHT,t.rightStartLine,t.rightEndLine,e.options.classes.diff),e.options.showConnectors&&Ae(e,t.leftStartLine,t.leftEndLine,t.rightStartLine,t.rightEndLine),Pe(e,t,i))},e)}const Ge={props:{pluginName:{type:String,required:!0},variables:{type:Object,required:!0},pluginTxt:{type:String,required:!0},existingPluginTxt:{type:String,required:!1},modelValue:Boolean},data(){return{tab:0,localVariables:[],localPluginTxt:"",localExistingPluginTxt:null,editor:null,differ:null,contextMenu:!1,menuX:0,menuY:0}},mounted(){const e=this.buildPluginMode();this.existingPluginTxt===null?(this.editor=E.aceExports.edit(this.$refs.editor),this.editor.setTheme("ace/theme/twilight"),this.editor.session.setMode(new e),this.editor.session.setTabSize(2),this.editor.session.setUseWrapMode(!0),this.editor.$blockScrolling=1/0,this.editor.setHighlightActiveLine(!1),this.editor.setValue(this.localPluginTxt),this.editor.clearSelection(),T.AceEditorUtils.applyVimModeIfEnabled(this.editor),this.editor.focus()):(this.tab=1,this.differ=new P({element:this.$refs.editor,mode:new e,theme:"ace/theme/twilight",left:{content:this.localExistingPluginTxt,copyLinkEnabled:!1},right:{content:this.localPluginTxt,editable:!1}}),this.differ.getEditors().left.setFontSize(16),this.differ.getEditors().right.setFontSize(16),T.AceEditorUtils.applyVimModeIfEnabled(this.differ.getEditors().left),T.AceEditorUtils.applyVimModeIfEnabled(this.differ.getEditors().right),this.curDiff=-1)},beforeUnmount(){this.editor&&this.editor.destroy(),this.differ&&this.differ.destroy()},computed:{show:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}},watch:{value:{immediate:!0,handler:function(){this.localVariables=JSON.parse(JSON.stringify(this.variables)),this.localPluginTxt=this.pluginTxt.slice(),this.existingPluginTxt!==null&&(this.localExistingPluginTxt=this.existingPluginTxt.slice())}}},methods:{previousDiff(){this.curDiff--,this.curDiff<0&&(this.curDiff=this.differ.diffs.length-1),this.scrollToCurDiff()},nextDiff(){this.curDiff++,this.curDiff>=this.differ.diffs.length&&(this.curDiff=0),this.scrollToCurDiff()},scrollToCurDiff(){if(this.differ.diffs.length===0)return;let e=this.differ.diffs[this.curDiff].leftStartLine,t=this.differ.diffs[this.curDiff].rightStartLine;e>5&&(e-=5),t>5&&(t-=5),this.differ.getEditors().left.scrollToLine(e),this.differ.getEditors().right.scrollToLine(t)},buildPluginMode(){let e=E.aceExports.require("ace/lib/oop"),t=E.aceExports.require("ace/mode/ruby_highlight_rules").RubyHighlightRules,i=["VARIABLE"],r=new RegExp(`(\\b${i.join("\\b|\\b")}\\b)`),l=function(){t.call(this);for(let u in this.$rules)this.$rules[u].unshift({regex:r,token:"support.function"})};e.inherits(l,t);let o=E.aceExports.require("ace/mode/matching_brace_outdent").MatchingBraceOutdent,s=E.aceExports.require("ace/mode/behaviour/cstyle").CstyleBehaviour,a=E.aceExports.require("ace/mode/folding/ruby").FoldMode,c=function(){this.HighlightRules=l,this.$outdent=new o,this.$behaviour=new s,this.foldingRules=new a,this.indentKeywords=this.foldingRules.indentKeywords},d=E.aceExports.require("ace/mode/ruby").Mode;return e.inherits(c,d),(function(){this.$id="ace/mode/openc3"}).call(c.prototype),c},submit:function(){this.existingPluginTxt===null?this.emitSubmit(this.editor.getValue().split(`
10
10
  `)):this.differ.diffs.length===0?this.emitSubmit(this.differ.getEditors().left.getValue().split(`
11
11
  `)):this.$dialog.confirm("Diffs still detected! Install using 'Existing plugin.txt' (left) and ignore additional changes in the new plugin.txt (right)?",{okText:"Install",cancelText:"Cancel"}).then(e=>{this.emitSubmit(this.differ.getEditors().left.getValue().split(`
12
- `))}).catch(e=>{})},emitSubmit(e){let t={name:this.pluginName,variables:n.toRaw(this.localVariables),plugin_txt_lines:e};this.$emit("callback",t)},close:function(){this.show=!this.show}}},$e={style:{flex:"1"}},qe={class:"pa-3"},Ge={ref:"editor",class:"editor"},je={ref:"editor",class:"editor"},ze={key:0};function Ye(e,t,i,r,l,o){const s=n.resolveComponent("v-card-title"),a=n.resolveComponent("v-icon"),c=n.resolveComponent("v-row"),d=n.resolveComponent("v-tab"),u=n.resolveComponent("v-tabs"),f=n.resolveComponent("v-text-field"),g=n.resolveComponent("v-col"),p=n.resolveComponent("v-window-item"),_=n.resolveComponent("v-window"),w=n.resolveComponent("v-btn"),b=n.resolveComponent("v-spacer"),m=n.resolveComponent("v-card-actions"),x=n.resolveComponent("v-card-text"),C=n.resolveComponent("v-card"),v=n.resolveComponent("v-dialog");return n.openBlock(),n.createBlock(v,{persistent:"",modelValue:o.show,"onUpdate:modelValue":t[3]||(t[3]=y=>o.show=y),width:"80vw"},{default:n.withCtx(()=>[n.createVNode(C,null,{default:n.withCtx(()=>[n.createVNode(x,null,{default:n.withCtx(()=>[n.createVNode(s,null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(i.pluginName),1)]),_:1}),i.existingPluginTxt!==null?(n.openBlock(),n.createBlock(c,{key:0,class:"notice d-flex flex-row"},{default:n.withCtx(()=>[n.createVNode(a,{size:"x-large",start:"",color:"yellow"},{default:n.withCtx(()=>t[4]||(t[4]=[n.createTextVNode(" mdi-alert-box ")])),_:1}),n.createElementVNode("div",$e," The existing plugin.txt is different from the "+n.toDisplayString(i.pluginName)+"'s plugin.txt. Navigate the diffs making whatever edits you want before installing. You may want to update "+n.toDisplayString(i.pluginName)+"'s plugin.txt going forward. ",1)]),_:1})):n.createCommentVNode("",!0),n.createVNode(c,{class:"pb-3 pr-3"},{default:n.withCtx(()=>[n.createVNode(u,{modelValue:l.tab,"onUpdate:modelValue":t[0]||(t[0]=y=>l.tab=y),class:"ml-3"},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(d,{key:0},{default:n.withCtx(()=>t[5]||(t[5]=[n.createTextVNode(" Variables ")])),_:1})),(n.openBlock(),n.createBlock(d,{key:1},{default:n.withCtx(()=>t[6]||(t[6]=[n.createTextVNode(" plugin.txt ")])),_:1}))]),_:1},8,["modelValue"])]),_:1}),n.createElementVNode("form",{onSubmit:t[2]||(t[2]=n.withModifiers((...y)=>e.onSubmit&&e.onSubmit(...y),["prevent"]))},[n.createVNode(_,{modelValue:l.tab,"onUpdate:modelValue":t[1]||(t[1]=y=>l.tab=y)},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(p,{key:0,eager:"true",class:"tab"},{default:n.withCtx(()=>[n.createElementVNode("div",qe,[n.createVNode(c,{class:"mt-3"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(l.localVariables,(y,V)=>(n.openBlock(),n.createElementBlock("div",{key:V},[n.createVNode(g,{style:{width:"220px"}},{default:n.withCtx(()=>[n.createVNode(f,{clearable:"",type:"text",label:V,modelValue:l.localVariables[V],"onUpdate:modelValue":N=>l.localVariables[V]=N},null,8,["label","modelValue","onUpdate:modelValue"])]),_:2},1024)]))),128))]),_:1})])]),_:1})),i.existingPluginTxt===null?(n.openBlock(),n.createBlock(p,{key:"1-new",eager:"true",class:"tab"},{default:n.withCtx(()=>[n.createVNode(c,{class:"pa-3"},{default:n.withCtx(()=>[n.createVNode(g,null,{default:n.withCtx(()=>t[7]||(t[7]=[n.createTextVNode(" This can be edited before installation. ")])),_:1})]),_:1}),n.createElementVNode("pre",Ge,null,512)]),_:1})):(n.openBlock(),n.createBlock(p,{key:"1-existing",eager:"true",class:"tab"},{default:n.withCtx(()=>[n.createVNode(c,{class:"pa-3"},{default:n.withCtx(()=>[n.createVNode(g,null,{default:n.withCtx(()=>t[8]||(t[8]=[n.createTextVNode(" Existing plugin.txt. This can be edited before installation. ")])),_:1}),n.createVNode(g,{class:"ml-6"},{default:n.withCtx(()=>t[9]||(t[9]=[n.createTextVNode(" Uneditable plugin.txt from the new plugin. ")])),_:1})]),_:1}),n.createElementVNode("pre",je,null,512)]),_:1}))]),_:1},8,["modelValue"]),n.createVNode(m,{class:"px-2 mt-2"},{default:n.withCtx(()=>[i.existingPluginTxt!==null?(n.openBlock(),n.createElementBlock("div",ze,[n.createVNode(w,{variant:"text",onClick:o.nextDiff},{default:n.withCtx(()=>t[10]||(t[10]=[n.createTextVNode(" Next Diff ")])),_:1},8,["onClick"]),n.createVNode(w,{variant:"text",onClick:o.previousDiff},{default:n.withCtx(()=>t[11]||(t[11]=[n.createTextVNode(" Previous Diff ")])),_:1},8,["onClick"])])):n.createCommentVNode("",!0),n.createVNode(b),n.createVNode(w,{variant:"outlined",onClick:n.withModifiers(o.close,["prevent"]),"data-test":"edit-cancel"},{default:n.withCtx(()=>t[12]||(t[12]=[n.createTextVNode(" Cancel ")])),_:1},8,["onClick"]),n.createVNode(w,{variant:"flat",onClick:o.submit,"data-test":"edit-submit"},{default:n.withCtx(()=>t[13]||(t[13]=[n.createTextVNode(" Install ")])),_:1},8,["onClick"])]),_:1})],32)]),_:1})]),_:1})]),_:1},8,["modelValue"])}const We=T._export_sfc(He,[["render",Ye],["__scopeId","data-v-4a504453"]]);exports.DownloadDialog=ge;exports.EditDialog=ye;exports.ModifiedPluginDialog=ke;exports.OpenC3Admin=Te;exports.PluginDialog=We;exports.TabsList=X;
12
+ `))}).catch(e=>{})},emitSubmit(e){let t={name:this.pluginName,variables:n.toRaw(this.localVariables),plugin_txt_lines:e};this.$emit("callback",t)},close:function(){this.show=!this.show},showContextMenu:function(e){this.menuX=e.pageX,this.menuY=e.pageY;let t=this.editor.getCursorPosition(),i=this.editor.session.getTokenAt(t.row,t.column);if(i){let r=i.value.trim();r.includes(" ")?this.docsKeyword=r.split(" ")[0]:this.docsKeyword=r,this.contextMenu=!0}},toggleVimMode:function(){this.editor&&T.AceEditorUtils.toggleVimMode(this.editor)}}},$e={style:{flex:"1"}},je={class:"pa-3"},Ye={ref:"editor",class:"editor"},ze={key:0};function Ke(e,t,i,r,l,o){const s=n.resolveComponent("v-card-title"),a=n.resolveComponent("v-icon"),c=n.resolveComponent("v-row"),d=n.resolveComponent("v-tab"),u=n.resolveComponent("v-tabs"),f=n.resolveComponent("v-text-field"),g=n.resolveComponent("v-col"),p=n.resolveComponent("v-window-item"),_=n.resolveComponent("v-list-item-title"),x=n.resolveComponent("v-list-item"),b=n.resolveComponent("v-divider"),m=n.resolveComponent("v-list"),v=n.resolveComponent("v-menu"),C=n.resolveComponent("v-window"),w=n.resolveComponent("v-btn"),V=n.resolveComponent("v-spacer"),k=n.resolveComponent("v-card-actions"),S=n.resolveComponent("v-card-text"),L=n.resolveComponent("v-card"),D=n.resolveComponent("v-dialog");return n.openBlock(),n.createBlock(D,{persistent:"",modelValue:o.show,"onUpdate:modelValue":t[5]||(t[5]=N=>o.show=N),width:"80vw"},{default:n.withCtx(()=>[n.createVNode(L,null,{default:n.withCtx(()=>[n.createVNode(S,null,{default:n.withCtx(()=>[n.createVNode(s,null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(i.pluginName),1)]),_:1}),i.existingPluginTxt!==null?(n.openBlock(),n.createBlock(c,{key:0,class:"notice d-flex flex-row"},{default:n.withCtx(()=>[n.createVNode(a,{size:"x-large",start:"",color:"yellow"},{default:n.withCtx(()=>t[6]||(t[6]=[n.createTextVNode(" mdi-alert-box ")])),_:1}),n.createElementVNode("div",$e," The existing plugin.txt is different from the "+n.toDisplayString(i.pluginName)+"'s plugin.txt. Navigate the diffs making whatever edits you want before installing. You may want to update "+n.toDisplayString(i.pluginName)+"'s plugin.txt going forward. ",1)]),_:1})):n.createCommentVNode("",!0),n.createVNode(c,{class:"pb-3 pr-3"},{default:n.withCtx(()=>[n.createVNode(u,{modelValue:l.tab,"onUpdate:modelValue":t[0]||(t[0]=N=>l.tab=N),class:"ml-3"},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(d,{key:0},{default:n.withCtx(()=>t[7]||(t[7]=[n.createTextVNode(" Variables ")])),_:1})),(n.openBlock(),n.createBlock(d,{key:1},{default:n.withCtx(()=>t[8]||(t[8]=[n.createTextVNode(" plugin.txt ")])),_:1}))]),_:1},8,["modelValue"])]),_:1}),n.createElementVNode("form",{onSubmit:t[4]||(t[4]=n.withModifiers((...N)=>e.onSubmit&&e.onSubmit(...N),["prevent"]))},[n.createVNode(C,{modelValue:l.tab,"onUpdate:modelValue":t[3]||(t[3]=N=>l.tab=N)},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(p,{key:0,eager:"true",class:"tab"},{default:n.withCtx(()=>[n.createElementVNode("div",je,[n.createVNode(c,{class:"mt-3"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(l.localVariables,(N,R)=>(n.openBlock(),n.createElementBlock("div",{key:R},[n.createVNode(g,{style:{width:"220px"}},{default:n.withCtx(()=>[n.createVNode(f,{clearable:"",type:"text",label:R,modelValue:l.localVariables[R],"onUpdate:modelValue":se=>l.localVariables[R]=se},null,8,["label","modelValue","onUpdate:modelValue"])]),_:2},1024)]))),128))]),_:1})])]),_:1})),i.existingPluginTxt===null?(n.openBlock(),n.createBlock(p,{key:"1-new",eager:"true",class:"tab"},{default:n.withCtx(()=>[n.createVNode(c,{class:"pa-3"},{default:n.withCtx(()=>[n.createVNode(g,null,{default:n.withCtx(()=>t[9]||(t[9]=[n.createTextVNode(" This can be edited before installation. ")])),_:1})]),_:1}),n.createElementVNode("pre",{ref:"editor",class:"editor",onContextmenu:t[1]||(t[1]=n.withModifiers((...N)=>o.showContextMenu&&o.showContextMenu(...N),["prevent"]))},null,544),n.createVNode(v,{modelValue:l.contextMenu,"onUpdate:modelValue":t[2]||(t[2]=N=>l.contextMenu=N),target:[l.menuX,l.menuY]},{default:n.withCtx(()=>[n.createVNode(m,null,{default:n.withCtx(()=>[n.createVNode(x,{link:""},{default:n.withCtx(()=>[n.createVNode(_,{onClick:e.openDocumentation},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.docsKeyword)+" documentation ",1)]),_:1},8,["onClick"])]),_:1}),n.createVNode(b),n.createVNode(x,{title:"Toggle Vim mode","prepend-icon":"extras:vim",onClick:o.toggleVimMode},null,8,["onClick"])]),_:1})]),_:1},8,["modelValue","target"])]),_:1})):(n.openBlock(),n.createBlock(p,{key:"1-existing",eager:"true",class:"tab"},{default:n.withCtx(()=>[n.createVNode(c,{class:"pa-3"},{default:n.withCtx(()=>[n.createVNode(g,null,{default:n.withCtx(()=>t[10]||(t[10]=[n.createTextVNode(" Existing plugin.txt. This can be edited before installation. ")])),_:1}),n.createVNode(g,{class:"ml-6"},{default:n.withCtx(()=>t[11]||(t[11]=[n.createTextVNode(" Uneditable plugin.txt from the new plugin. ")])),_:1})]),_:1}),n.createElementVNode("pre",Ye,null,512)]),_:1}))]),_:1},8,["modelValue"]),n.createVNode(k,{class:"px-2 mt-2"},{default:n.withCtx(()=>[i.existingPluginTxt!==null?(n.openBlock(),n.createElementBlock("div",ze,[n.createVNode(w,{variant:"text",onClick:o.nextDiff},{default:n.withCtx(()=>t[12]||(t[12]=[n.createTextVNode(" Next Diff ")])),_:1},8,["onClick"]),n.createVNode(w,{variant:"text",onClick:o.previousDiff},{default:n.withCtx(()=>t[13]||(t[13]=[n.createTextVNode(" Previous Diff ")])),_:1},8,["onClick"])])):n.createCommentVNode("",!0),n.createVNode(V),n.createVNode(w,{variant:"outlined",onClick:n.withModifiers(o.close,["prevent"]),"data-test":"edit-cancel"},{default:n.withCtx(()=>t[14]||(t[14]=[n.createTextVNode(" Cancel ")])),_:1},8,["onClick"]),n.createVNode(w,{variant:"flat",onClick:o.submit,"data-test":"edit-submit"},{default:n.withCtx(()=>t[15]||(t[15]=[n.createTextVNode(" Install ")])),_:1},8,["onClick"])]),_:1})],32)]),_:1})]),_:1})]),_:1},8,["modelValue"])}const We=I._export_sfc(Ge,[["render",Ke],["__scopeId","data-v-0c2b3caa"]]);exports.DownloadDialog=_e;exports.EditDialog=Ee;exports.ModifiedPluginDialog=Se;exports.OpenC3Admin=De;exports.PluginDialog=We;exports.TabsList=te;
13
13
  //# sourceMappingURL=admin.cjs.map